Liferay.Loader.define("@liferay/content-dashboard-web@2.0.69/js/components/CategoriesPopover",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/label","@frontend-taglib-clay$clayui/popover","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(a("@frontend-taglib-clay$clayui/button")),n=i(a("@frontend-taglib-clay$clayui/label")),l=i(a("@frontend-taglib-clay$clayui/popover")),o=(i(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=c();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")));function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}var u=({categories:e,vocabulary:t})=>{const[a,c]=(0,o.useState)(!1);return o.default.createElement(l.default,{alignPosition:"top",className:"categories-popover",closeOnClickOutside:!0,disableScroll:!0,header:"".concat(e.length," ").concat(t," ").concat(Liferay.Language.get("categories")),onShowChange:c,show:a,trigger:o.default.createElement(r.default,{className:"category-label category-label-see-more label label-lg label-secondary",displayType:"unstyled"},"+ ".concat(e.length))},e.map(((e,t)=>o.default.createElement(n.default,{key:t,large:!0},e))))};t.default=u}}));
//# sourceMappingURL=CategoriesPopover.js.map