Liferay.Loader.define("asset-taglib@6.2.15/asset_categories_selector/AssetCategoriesSelectorTag.es",["module","exports","require","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./AssetCategoriesSelector.es","./assetVocabularyVisibilityTypes.es"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.vocabularies.filter((e=>e.visibilityType===l.ASSET_VOCABULARY_VISIBILITY_TYPES.public)),a=e.vocabularies.filter((e=>e.visibilityType===l.ASSET_VOCABULARY_VISIBILITY_TYPES.internal));return r.default.createElement(r.default.Fragment,null,e.learnHowURL&&r.default.createElement("p",{className:"small text-secondary",dangerouslySetInnerHTML:{__html:Liferay.Util.sub(Liferay.Language.get("x-learn-how-x-to-tailor-categories-to-your-needs"),"<a href=".concat(e.learnHowURL,' target="_blank">'),"</a>")}}),t&&t.length>0&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:"border-0 mb-0 sheet-subtitle text-uppercase"},Liferay.Language.get("public-categories")),r.default.createElement("p",{className:"small text-secondary"},Liferay.Language.get("they-can-be-displayed-through-pages-widgets-fragments-and-searches")),r.default.createElement(u,o({},e,{initialVocabularies:t}))),a&&a.length>0&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:"border-0 mb-0 sheet-subtitle text-uppercase"},Liferay.Language.get("internal-categories")),r.default.createElement("p",{className:"text-secondary"},Liferay.Language.get("they-are-displayed-inside-the-administration-only")),r.default.createElement(u,o({},e,{initialVocabularies:a}))))};s(a("liferay!frontend-js-react-web$prop-types"));var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),n=s(a("./AssetCategoriesSelector.es")),l=a("./assetVocabularyVisibilityTypes.es");function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(this,arguments)}function u({eventName:e,groupIds:t=[],id:a,initialVocabularies:l=[],inputName:i,portletURL:s}){const[o,u]=(0,r.useState)(l);return r.default.createElement(n.default,{eventName:e,groupIds:t,id:a,inputName:i,onVocabulariesChange:u,portletURL:s,vocabularies:o})}}}));
//# sourceMappingURL=AssetCategoriesSelectorTag.es.js.map