Liferay.Loader.define("@liferay/document-library-web@6.0.104/document_library/js/categorization/categories/EditCategories.es",["module","exports","require","@frontend-taglib-clay$clayui/modal","liferay!frontend-js-react-web$react","./EditCategoriesContext.es","./EditCategoriesModal.es"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({context:e,props:t}){return o.default.createElement(a.default.Provider,{value:e},o.default.createElement(c,t))};var n=r("@frontend-taglib-clay$clayui/modal"),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),a=i(r("./EditCategoriesContext.es")),l=i(r("./EditCategoriesModal.es"));function i(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function c(e){const[t,r]=(0,o.useState)(),[i,u]=(0,o.useState)(),[c,s]=(0,o.useState)(),[d,p]=(0,o.useState)(),{namespace:y}=(0,o.useContext)(a.default),{observer:b,onClose:g}=(0,n.useModal)({onClose:()=>{p(!1)}});return(0,o.useEffect)((()=>{const e="".concat(y,"EditCategoriesComponent");return Liferay.component(e)||Liferay.component(e,{open:(e,t,n)=>{r(e),u(t),s(n),p(!0)}},{destroyOnNavigate:!0}),()=>{Liferay.destroyComponent(e)}}),[y]),o.default.createElement(o.default.Fragment,null,d&&o.default.createElement(l.default,f({},e,{fileEntries:t,folderId:c,observer:b,onModalClose:g,selectAll:i})))}}}));
//# sourceMappingURL=EditCategories.es.js.map