Liferay.Loader.define("portlet-configuration-web@5.0.50/js/EditConfigurationEventHandler",["module","exports","require","frontend-js-web"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function _default({namespace:e,portletId:t}){const n=document.getElementById("".concat(e,"fm")),handleSubmit=()=>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",handleSubmit),Liferay.on("submitForm",handleSubmit),{dispose:()=>{null==n||n.removeEventListener("submit",handleSubmit),Liferay.detach("submitForm",handleSubmit)}}};var r=n("frontend-js-web")}));
//# sourceMappingURL=EditConfigurationEventHandler.js.map