Liferay.Loader.define("@liferay/content-dashboard-web@2.0.85/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,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),l=_interopRequireDefault(r("@frontend-taglib-clay$clayui/label")),n=_interopRequireDefault(r("@frontend-taglib-clay$clayui/popover")),o=(_interopRequireDefault(r("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 r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")));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}}var _default=({categories:e,vocabulary:t})=>{const[r,i]=(0,o.useState)(!1);return o.default.createElement(n.default,{alignPosition:"top",className:"categories-popover",closeOnClickOutside:!0,disableScroll:!0,header:"".concat(e.length," ").concat(t," ").concat(Liferay.Language.get("categories")),onShowChange:i,show:r,trigger:o.default.createElement(a.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(l.default,{key:t,large:!0},e))))};t.default=_default}}));
//# sourceMappingURL=CategoriesPopover.js.map