import{a as g,h as b}from"./chunk-3XUGE6OX.js";import{Qa as h,Ua as M,jb as v}from"./chunk-XIRFPYPE.js";import"./chunk-J4EDY7XI.js";import"./chunk-J25JZ2M7.js";import"./chunk-S3BUZ4IQ.js";import"./chunk-3MVSFPA3.js";import"./chunk-DW7GLMNQ.js";import"./chunk-6XIKMLNI.js";import"./chunk-I4IOOA6S.js";import{Md as D,Mm as l,ef as N}from"./chunk-WIMIOQRC.js";import{j as i,z as n}from"./chunk-4BHXNIO3.js";import"./chunk-JQGR4KOB.js";import"./chunk-E7UTPDR3.js";import{k as S}from"./chunk-V2QDRVPR.js";import{Be as u,Ea as y,Fa as a,La as m,dc as c,pd as f}from"./chunk-CE3AMVMU.js";import{i as s}from"./chunk-I6BQZFSU.js";s();s();var w=(()=>{let t=class t{constructor(r,e,d){this.dashboardService=r,this.dashboardUtils=e,this.utils=d}resolve(r){let e=this.utils.editWidgetInfo,d={typeFullFqn:"system.customWidget",type:e.type,sizeX:e.sizeX*2,sizeY:e.sizeY*2,row:2,col:4,config:JSON.parse(e.defaultConfig)};return d.config.title=d.config.title||e.widgetName,this.dashboardUtils.createSingleWidgetDashboard(d)}};t.\u0275fac=function(e){return new(e||t)(m(D),m(N),m(S))},t.\u0275prov=y({token:t,factory:t.\u0275fac});let o=t;return o})(),U=[{path:"dashboard/:dashboardId",component:h,canDeactivate:[g],data:{breadcrumb:{skip:!0},auth:[n.TENANT_ADMIN,n.CUSTOMER_USER],title:"dashboard.dashboard",widgetEditMode:!1,singlePageMode:!0},resolve:{dashboard:b}},{path:"widget-editor",component:h,canDeactivate:[g],data:{breadcrumb:{skip:!0},auth:[n.SYS_ADMIN,n.TENANT_ADMIN],title:"widget.editor",widgetEditMode:!0,singlePageMode:!0},resolve:{dashboard:w}}],p=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c({type:t}),t.\u0275inj=a({providers:[w,b],imports:[i.forChild(U),i]});let o=t;return o})();(function(){f(p,{imports:[i],exports:[i]})})();var C=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=c({type:t}),t.\u0275inj=a({imports:[u,l,v,M,p]});let o=t;return o})();(function(){f(C,{imports:[u,l,v,M,p]})})();export{C as DashboardPagesModule};
