Liferay.Loader.define("blogs-web@6.0.52/blogs_admin/js/ElementsDefaultEventHandler.es",["module","exports","require","frontend-js-web","frontend-js-metal-web$metal-state"],(function(e,t,s){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=s("frontend-js-web"),o=s("frontend-js-metal-web$metal-state");class e extends a.DefaultEventHandler{delete(e){const t=Liferay.Language.get("are-you-sure-you-want-to-delete-this");(this.trashEnabled||confirm(t))&&this._send(e.deleteURL)}permissions(e){Liferay.Util.openWindow({dialog:{destroyOnHide:!0,modal:!0},dialogIframe:{bodyCssClass:"dialog-with-footer"},title:Liferay.Language.get("permissions"),uri:e.permissionsURL})}publishToLive(e){confirm(Liferay.Language.get("are-you-sure-you-want-to-publish-to-live"))&&this._send(e.publishEntryURL)}_send(e){submitForm(document.hrefFm,e)}}e.STATE={trashEnabled:o.Config.bool()};var n=e;t.default=n}}));
//# sourceMappingURL=ElementsDefaultEventHandler.es.js.map