Liferay.Loader.define("@liferay/content-dashboard-web@2.0.85/js/components/SidebarPanelInfoView/utils/taxonomiesUtils",["module","exports","require"],(function(e,o,r){window;{Object.defineProperty(o,"__esModule",{value:!0}),o.sortByStrings=o.groupVocabulariesBy=o.getCategoriesCountFromVocabularies=void 0;const _formatValueForCompare=e=>"string"==typeof e?e.toLowerCase():e,getCategoriesCountFromVocabularies=e=>e.reduce(((e,{categories:o})=>e+o.length),0);o.getCategoriesCountFromVocabularies=getCategoriesCountFromVocabularies;const groupVocabulariesBy=({array:e,key:o,value:r})=>e.reduce((([e,t],a)=>((_formatValueForCompare(a[o])===_formatValueForCompare(r)?e:t).push(a),[e,t])),[[],[]]);o.groupVocabulariesBy=groupVocabulariesBy;const sortByStrings=({array:e,key:o})=>e.sort(((e,r)=>{const _getValue=e=>o&&o in e?e[o]:e,t=_getValue(e),a=_getValue(r);return t.localeCompare(a)}));o.sortByStrings=sortByStrings}}));
//# sourceMappingURL=taxonomiesUtils.js.map