Liferay.Loader.define("layout-admin-web@5.0.101/js/actions",["module","exports","require","frontend-js-web","./openDeleteLayoutModal"],(function(e,a,o){var t;window;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=o("frontend-js-web"),n=(t=o("./openDeleteLayoutModal"))&&t.__esModule?t:{default:t};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:()=>{(0,i.navigate)(e)}})},discardDraft:({discardDraftURL:e})=>{(0,i.openConfirmModal)({message:Liferay.Language.get("are-you-sure-you-want-to-discard-current-draft-and-apply-latest-published-changes"),onConfirm:a=>{a&&(0,i.navigate)(e)}})},exportTranslation:({exportTranslationURL:e})=>{(0,i.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