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