Liferay.Loader.define("@liferay/frontend-taglib@7.0.11/side_panel_content/SidePanelListenersInitializer",["module","exports","require","@liferay/frontend-data-set-web"],(function(e,a,i){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=i("@liferay/frontend-data-set-web");class e{constructor(){Liferay.on(n.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();Liferay.Util.getOpener().Liferay.fire(n.DATA_SET_EVENT.CLOSE_SIDE_PANEL)}))}))}dispose(){Liferay.detach(n.DATA_SET_EVENT.OPEN_MODAL,this.handleOpenModalFromSidePanel)}handleOpenModalFromSidePanel(e){Liferay.Util.getTop().Liferay.fire(n.DATA_SET_EVENT.OPEN_MODAL_FROM_IFRAME,e)}}var r=e;a.default=r}}));
//# sourceMappingURL=SidePanelListenersInitializer.js.map