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