Liferay.Loader.define("@liferay/frontend-taglib@8.0.4/side_panel_content/SidePanelListenersInitializer",["module","exports","require","@liferay/frontend-data-set-web","frontend-js-web"],(function(e,n,a){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a("@liferay/frontend-data-set-web"),t=a("frontend-js-web");class e{constructor(){Liferay.on(r.DATA_SET_EVENT.OPEN_MODAL,this.handleOpenModalFromSidePanel),document.body.classList.remove("open"),document.querySelectorAll(".side-panel-iframe-close, .btn-cancel").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();(0,t.getOpener)().Liferay.fire(r.DATA_SET_EVENT.CLOSE_SIDE_PANEL)}))}))}dispose(){Liferay.detach(r.DATA_SET_EVENT.OPEN_MODAL,this.handleOpenModalFromSidePanel)}handleOpenModalFromSidePanel(e){(0,t.getTop)().Liferay.fire(r.DATA_SET_EVENT.OPEN_MODAL_FROM_IFRAME,e)}}var d=e;n.default=d}}));
//# sourceMappingURL=SidePanelListenersInitializer.js.map