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