Liferay.Loader.define("@liferay/object-web@1.0.132/js/components/Layout/LayoutScreen/HeaderDropdown",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","liferay!frontend-js-react-web$react","../objectLayoutContext"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderDropdown=function HeaderDropdown({addCategorization:e,deleteElement:t,disabled:a}){const[l,u]=(0,o.useState)(!1),[{enableCategorization:d,isViewOnly:c,objectLayout:{objectLayoutTabs:f}}]=(0,i.useLayoutContext)(),handleOnClick=e=>{e(),u(!1)};return o.default.createElement(n.default,{active:l,onActiveChange:u,trigger:o.default.createElement(r.ClayButtonWithIcon,{"aria-label":Liferay.Language.get("more-actions"),disabled:a,displayType:"unstyled",symbol:"ellipsis-v"})},o.default.createElement(n.default.ItemList,null,e&&o.default.createElement(n.default.Item,{disabled:(e=>{for(const e of f)if(e.objectLayoutBoxes.some((e=>"categorization"===e.type)))return!0;return!1})()||!d,onClick:()=>handleOnClick(e)},Liferay.Language.get("add-categorization")),o.default.createElement(n.default.Item,{disabled:c,onClick:()=>handleOnClick(t)},Liferay.Language.get("delete"))))};var r=a("@frontend-taglib-clay$clayui/button"),n=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("@frontend-taglib-clay$clayui/drop-down")),o=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 n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(a,n,o):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react")),i=a("../objectLayoutContext");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=HeaderDropdown.js.map