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