Liferay.Loader.define("@liferay/content-dashboard-web@2.0.69/js/components/SidebarPanelInfoView/ItemVocabularies",["module","exports","require","@frontend-taglib-clay$clayui/label","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./utils/taxonomiesUtils"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(a("@frontend-taglib-clay$clayui/label")),l=(s(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=o();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=r?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(a,l,n):a[l]=e[l]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react"))),n=a("./utils/taxonomiesUtils");function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}const e=({cssClassNames:e="",title:t,vocabularies:a})=>{const[o,s]=(0,n.groupVocabulariesBy)({array:a,key:"groupName",value:"global"}),c=(0,n.sortByStrings)({array:o,key:"vocabularyName"}),i=(0,n.sortByStrings)({array:s,key:"vocabularyName"}).concat(c);return l.default.createElement("div",{className:"c-mb-4 item-vocabularies sidebar-dl sidebar-section ".concat(e)},l.default.createElement("h6",{className:"font-weight-semi-bold sidebar-section-subtitle-sm text-2 text-secondary text-uppercase"},t),l.default.createElement("div",null,i.map((({categories:e,groupName:t,vocabularyName:a})=>l.default.createElement(l.Fragment,{key:a},l.default.createElement("h5",{className:"c-mb-2 font-weight-semi-bold"},a,t?" (".concat(t,")"):""),l.default.createElement("p",null,(0,n.sortByStrings)({array:e}).map((e=>l.default.createElement(r.default,{className:"c-mb-2 c-mr-2",displayType:"secondary",key:e,large:!0},e)))))))))};e.defaultProps={cssClassNames:""};var c=e;t.default=c}}));
//# sourceMappingURL=ItemVocabularies.js.map