Liferay.Loader.define("@liferay/content-dashboard-web@2.0.85/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=_interopRequireDefault(t("@frontend-taglib-clay$clayui/label")),i=_interopRequireDefault(t("liferay!frontend-js-react-web$react")),r=t("./utils/taxonomiesUtils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const{default:e}=t("./CollapsibleSection"),{default:n}=t("./ItemVocabularies");var _default=({tags:a,vocabularies:t})=>{const[o,u]=(0,r.groupVocabulariesBy)({array:Object.values(t),key:"isPublic",value:!0}),s=(0,r.getCategoriesCountFromVocabularies)(u),c=(0,r.getCategoriesCountFromVocabularies)(o);return!!s||!!c||!!(null==a?void 0:a.length)?i.default.createElement(e,{expanded:!0,title:Liferay.Language.get("categorization")},!!c&&i.default.createElement(n,{title:Liferay.Language.get("public-categories"),vocabularies:o}),!!s&&i.default.createElement(n,{cssClassNames:"c-mt-4",title:Liferay.Language.get("internal-categories"),vocabularies:u}),!!a.length&&i.default.createElement("div",{className:"c-mb-4 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=_default}}));
//# sourceMappingURL=Categorization.js.map