Liferay.Loader.define("dynamic-data-mapping-form-field-type@6.0.124/Validation/StartEndDate",["module","exports","require","liferay!frontend-js-react-web$react","./CustomDate","./SelectDateType","./StartEndDate.scss"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(r("liferay!frontend-js-react-web$react")),a=_interopRequireDefault(r("./CustomDate")),o=_interopRequireDefault(r("./SelectDateType"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r("./StartEndDate.scss");var _default=({dateFieldOptions:e,eventType:t,label:r,name:i,onChange:l,options:d,parameters:p,readOnly:u,tooltip:c,visible:f})=>{const handleChange=e=>{l(t,_objectSpread(_objectSpread({},p),e))};return n.default.createElement(n.default.Fragment,null,n.default.createElement(o.default,{dateFieldName:p.dateFieldName,dateFieldOptions:e,label:r,onChange:(e,t)=>handleChange({dateFieldName:t,type:e}),options:d,tooltip:c,type:p.type}),"customDate"===(null==p?void 0:p.type)&&n.default.createElement(a.default,{dateFieldOptions:e,eventType:t,name:i,onChange:handleChange,options:d,parameters:p,readOnly:u,visible:f}))};t.default=_default}}));
//# sourceMappingURL=StartEndDate.js.map