Liferay.Loader.define("@liferay/search-experiences-web@3.0.30/sxp_blueprint_admin/js/shared/sxp_element/DateInput",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/date-picker","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","liferay!search-experiences-web$moment","liferay!frontend-js-react-web$react"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=_interopRequireDefault(t("@frontend-taglib-clay$clayui/button")),n=_interopRequireDefault(t("@frontend-taglib-clay$clayui/date-picker")),r=t("@frontend-taglib-clay$clayui/form"),i=_interopRequireDefault(t("@frontend-taglib-clay$clayui/icon")),u=_interopRequireDefault(t("liferay!search-experiences-web$moment")),d=_interopRequireDefault(t("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=function DateInput({disabled:e,name:a,setFieldTouched:t,setFieldValue:o,value:c}){return d.default.createElement("div",{className:"date-picker-input",onBlur:()=>t(a)},d.default.createElement(n.default,{dateFormat:"MM/dd/yyyy",disabled:e,onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()},onValueChange:e=>{o(a,(0,u.default)(e,"MM/DD/YYYY").unix())},placeholder:"MM/DD/YYYY",readOnly:!0,sizing:"sm",value:c?u.default.unix(c).format("MM/DD/YYYY"):"",years:{end:2024,start:1997}}),!!c&&d.default.createElement(r.ClayInput.GroupItem,{shrink:!0},d.default.createElement(l.default,{"aria-label":Liferay.Language.get("delete"),disabled:e,displayType:"unstyled",monospaced:!0,onClick:()=>o(a,""),small:!0},d.default.createElement(i.default,{symbol:"times-circle"}))))};a.default=o}}));
//# sourceMappingURL=DateInput.js.map