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