Liferay.Loader.define("@liferay/content-dashboard-web@2.0.69/js/components/SidebarPanelInfoView/Categorization",["module","exports","require","@frontend-taglib-clay$clayui/label","liferay!frontend-js-react-web$react","./utils/taxonomiesUtils","./CollapsibleSection","./ItemVocabularies"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=n(t("@frontend-taglib-clay$clayui/label")),i=n(t("liferay!frontend-js-react-web$react")),r=t("./utils/taxonomiesUtils");function n(e){return e&&e.__esModule?e:{default:e}}const{default:e}=t("./CollapsibleSection"),{default:s}=t("./ItemVocabularies");var o=({tags:a,vocabularies:t})=>{const[n,o]=(0,r.groupVocabulariesBy)({array:Object.values(t),key:"isPublic",value:!0}),c=(0,r.getCategoriesCountFromVocabularies)(o),u=(0,r.getCategoriesCountFromVocabularies)(n);return!!c||!!u||!!(null==a?void 0:a.length)?i.default.createElement(e,{expanded:!0,title:Liferay.Language.get("categorization")},!!u&&i.default.createElement(s,{title:Liferay.Language.get("public-categories"),vocabularies:n}),!!c&&i.default.createElement(s,{cssClassNames:"c-mt-4",title:Liferay.Language.get("internal-categories"),vocabularies:o}),!!a.length&&i.default.createElement("div",{className:"c-mb-4 sidebar-dl sidebar-section"},i.default.createElement("h5",{className:"c-mb-1 font-weight-semi-bold"},Liferay.Language.get("tags")),i.default.createElement("p",null,a.map((e=>i.default.createElement(l.default,{className:"c-mb-2 c-mr-2",displayType:"secondary",key:e,large:!0},e)))))):null};a.default=o}}));
//# sourceMappingURL=Categorization.js.map