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