Liferay.Loader.define("asset-taglib@8.0.17/asset_categories_selector/AssetCategoriesSelectorTag.es",["module","exports","require","@frontend-taglib-clay$clayui/link","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===i.ASSET_VOCABULARY_VISIBILITY_TYPES.public)),a=e.vocabularies.filter((e=>e.visibilityType===i.ASSET_VOCABULARY_VISIBILITY_TYPES.internal));return n.default.createElement(n.default.Fragment,null,e.learnHowLink&&n.default.createElement(r.default,{href:e.learnHowLink.url,target:"_blank"},e.learnHowLink.message),t&&!!t.length&&n.default.createElement(n.default.Fragment,null,n.default.createElement("div",{className:"border-0 mb-0 sheet-subtitle text-uppercase"},Liferay.Language.get("public-categories")),n.default.createElement("p",{className:"small text-secondary"},Liferay.Language.get("they-can-be-displayed-through-pages-widgets-fragments-and-searches")),n.default.createElement(c,o({},e,{initialVocabularies:t}))),a&&!!a.length&&n.default.createElement(n.default.Fragment,null,n.default.createElement("div",{className:"border-0 mb-0 sheet-subtitle text-uppercase"},Liferay.Language.get("internal-categories")),n.default.createElement("p",{className:"text-secondary"},Liferay.Language.get("they-are-displayed-inside-the-administration-only")),n.default.createElement(c,o({},e,{initialVocabularies:a}))))};var r=u(a("@frontend-taglib-clay$clayui/link")),n=(u(a("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();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"))),l=u(a("./AssetCategoriesSelector.es")),i=a("./assetVocabularyVisibilityTypes.es");function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(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 c({eventName:e,groupIds:t=[],id:a,initialVocabularies:r=[],inputName:i,portletURL:s}){const[u,o]=(0,n.useState)(r);return n.default.createElement(l.default,{eventName:e,groupIds:t,id:a,inputName:i,onVocabulariesChange:o,portletURL:s,vocabularies:u})}}}));
//# sourceMappingURL=AssetCategoriesSelectorTag.es.js.map