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