Liferay.Loader.define("frontend-taglib-clay@12.0.6/Multiselect",["module","exports","require","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/multi-select","liferay!frontend-js-react-web$react"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let{additionalProps:l,clearAllTitle:o,componentId:u,cssClass:c,disabled:s,disabledClearAll:d,helpText:f,id:p,inputName:b,inputValue:m,isValid:y,label:g,locale:O,multiselectLocator:v,portletId:j,portletNamespace:I,selectedItems:h=[],sourceItems:w}=e,P=function(e,t){if(null==e)return{};var l,r,a=function(e,t){if(null==e)return{};var l,r,a={},n=Object.keys(e);for(r=0;r<n.length;r++)l=n[r],t.indexOf(l)>=0||(a[l]=e[l]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)l=n[r],t.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(a[l]=e[l])}return a}(e,["additionalProps","clearAllTitle","componentId","cssClass","disabled","disabledClearAll","helpText","id","inputName","inputValue","isValid","label","locale","multiselectLocator","portletId","portletNamespace","selectedItems","sourceItems"]);const[C,E]=(0,n.useState)(null!=m?m:""),[L,x]=(0,n.useState)(h);return n.default.createElement(r.default.Group,{className:y?"":"has-error"},g&&n.default.createElement("label",{htmlFor:p},g),n.default.createElement(r.ClayInput.Group,null,n.default.createElement(r.ClayInput.GroupItem,null,n.default.createElement(a.default,i({className:c,clearAllTitle:o,closeButtonAriaLabel:Liferay.Language.get("remove-x"),disabled:s,disabledClearAll:d,id:p,inputName:b,isValid:y,items:L,locator:v,onChange:E,onItemsChange:x,sourceItems:(0,a.itemLabelFilter)(w,C,null!==(t=null==v?void 0:v.label)&&void 0!==t?t:"label"),value:C},P)),f&&n.default.createElement(r.default.FeedbackGroup,null,n.default.createElement(r.default.Text,null,f)))))};var r=u(l("@frontend-taglib-clay$clayui/form")),a=u(l("@frontend-taglib-clay$clayui/multi-select")),n=u(l("liferay!frontend-js-react-web$react"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var l={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var n=r?Object.getOwnPropertyDescriptor(e,a):null;n&&(n.get||n.set)?Object.defineProperty(l,a,n):l[a]=e[a]}return l.default=e,t&&t.set(e,l),l}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e}).apply(this,arguments)}}}));
//# sourceMappingURL=Multiselect.js.map