Liferay.Loader.define("layout-admin-web@5.0.117/js/actions",["module","exports","require","frontend-js-web","./openDeleteLayoutModal"],(function(e,a,t){window;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=t("frontend-js-web"),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(t("./openDeleteLayoutModal"));var n={convertToPageTemplate:()=>{Liferay.fire("convertToPageTemplate")},copyLayout:({copyLayoutURL:e})=>{(0,o.openModal)({height:"60vh",id:"addLayoutDialog",size:"md",title:Liferay.Language.get("copy-page"),url:e})},deleteLayout:({deleteLayoutURL:e,message:a})=>{(0,i.default)({message:a,onDelete:()=>{(0,o.navigate)(e)}})},discardDraft:({discardDraftURL:e})=>{(0,o.openConfirmModal)({message:Liferay.Language.get("are-you-sure-you-want-to-discard-current-draft-and-apply-latest-published-changes"),onConfirm:a=>{a&&(0,o.navigate)(e)}})},exportTranslation:({exportTranslationURL:e})=>{(0,o.navigate)(e)},permissionLayout:({permissionLayoutURL:e})=>{(0,o.openModal)({title:Liferay.Language.get("permissions"),url:e})},viewCollectionItems:({viewCollectionItemsURL:e})=>{(0,o.openModal)({title:Liferay.Language.get("collection-items"),url:e})}};a.default=n}));
//# sourceMappingURL=actions.js.map