Liferay.Loader.define("@liferay/search-experiences-web@3.0.30/sxp_blueprint_admin/js/shared/sxp_element/MultiSelectInput",["module","exports","require","@frontend-taglib-clay$clayui/multi-select","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("@frontend-taglib-clay$clayui/multi-select")),n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}var l=function MultiSelectInput({disabled:e,id:t,label:r,name:l,setFieldTouched:i,setFieldValue:u,value:c}){const[o,d]=(0,n.useState)("");return n.default.createElement(a.default,{"aria-label":r,disabled:e,id:t,items:c||[],onBlur:()=>{i(l),o&&(u(l,[...c,{label:o,value:o}]),d(""))},onChange:d,onItemsChange:e=>u(l,e),onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()},value:o})};t.default=l}}));
//# sourceMappingURL=MultiSelectInput.js.map