Liferay.Loader.define("@liferay/content-dashboard-web@2.0.85/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=_interopRequireDefault(a("@frontend-taglib-clay$clayui/label")),l=(_interopRequireDefault(a("liferay!frontend-js-react-web$prop-types")),function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();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 _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const ItemVocabularies=({cssClassNames:e="",title:t,vocabularies:a})=>{const[o,i]=(0,n.groupVocabulariesBy)({array:a,key:"groupName",value:"global"}),c=(0,n.sortByStrings)({array:o,key:"vocabularyName"}),s=(0,n.sortByStrings)({array:i,key:"vocabularyName"}).concat(c);return l.default.createElement("div",{className:"c-mb-4 item-vocabularies 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,s.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)))))))))};ItemVocabularies.defaultProps={cssClassNames:""};var o=ItemVocabularies;t.default=o}}));
//# sourceMappingURL=ItemVocabularies.js.map