Liferay.Loader.define("asset-taglib@6.2.15/asset_categories_selector/AssetCategoriesSelector.es",["module","exports","require","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./AssetVocabularyCategoriesSelector.es"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;o(r("liferay!frontend-js-react-web$prop-types"));var a=o(r("liferay!frontend-js-react-web$react")),n=o(r("./AssetVocabularyCategoriesSelector.es"));function o(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=function({eventName:e,groupIds:t,id:r,inputName:o,onVocabulariesChange:c,portletURL:l,useFallbackInput:i,vocabularies:u=[]}){return a.default.createElement("div",{id:r},u.map(((r,d)=>{const p=r.group?"".concat(r.title," (").concat(r.group,")"):r.title,f=o+r.id;return a.default.createElement(n.default,{eventName:e,groupIds:t,id:"namespace_assetCategoriesSelector_".concat(r.id),inputName:f,key:r.id,label:p,onSelectedItemsChange:e=>{const t=s(s({},r),{},{selectedItems:e});c([...u.slice(0,d),t,...u.slice(d+1)])},portletURL:l,required:r.required,selectedItems:r.selectedItems,singleSelect:r.singleSelect,sourceItemsVocabularyIds:[r.id],useFallbackInput:i})})))};t.default=i}}));
//# sourceMappingURL=AssetCategoriesSelector.es.js.map