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