Liferay.Loader.define("journal-web@5.0.144/js/ai_creator/openAICreatorModal",["module","exports","require","@liferay/frontend-js-react-web","liferay!frontend-js-react-web$react","liferay!frontend-js-react-web$react-dom","./AICreatorModal"],(function(e,r,t){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function openAICreatorModal({namespace:r}){if(!Liferay.FeatureFlags["LPS-179483"])return;const t="".concat(r,"aiModal"),disposeModal=()=>{const e=document.getElementById(t);e&&((0,n.unmountComponentAtNode)(e),document.body.removeChild(e))},c=Liferay.on("".concat(r,"openAIModal"),(()=>{disposeModal();const n=document.createElement("div");n.id=t,n.classList.add("cadmin"),document.body.appendChild(n),(0,o.render)(a.default.createElement(d.AICreatorModal,{namespace:r,onClose:disposeModal}),e,n)}));return{dispose(){c.detach(),disposeModal()}}};var o=t("@liferay/frontend-js-react-web"),a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("liferay!frontend-js-react-web$react")),n=t("liferay!frontend-js-react-web$react-dom"),d=t("./AICreatorModal");const e={portletId:"UNKNOWN_PORTLET_ID"}}}));
//# sourceMappingURL=openAICreatorModal.js.map