Liferay.Loader.define("portlet-configuration-web@5.0.40/js/EditConfigurationEventHandler",["module","exports","require","frontend-js-web"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({namespace:e,portletId:t}){const n=document.getElementById("".concat(e,"fm")),o=()=>Liferay.once("destroyPortlet",(()=>{var e;return null===(e=(0,r.getOpener)())||void 0===e?void 0:e.Liferay.fire("editConfiguration",{portletId:t})}));return null==n||n.addEventListener("submit",o),Liferay.on("submitForm",o),{dispose:()=>{null==n||n.removeEventListener("submit",o),Liferay.detach("submitForm",o)}}};var r=n("frontend-js-web")}));
//# sourceMappingURL=EditConfigurationEventHandler.js.map