const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue3-apexcharts-CDy0CNA2.css","./analytics-Beb4MpW8.css","./global-S_UTFf7O.css","./index-Xc5w86hz.css","./main-CWmBI_q2.css","./PieChart-By7vKXm6.css"])))=>i.map(i=>d[i]);
import{a as D,b as r,e as i,_ as d,o as y,m as a,g as t,p as s,F as l,H as b,f as p,q as u,u as h,I as E,D as _,n as L,r as V}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{S as x,m as A}from"./vue3-apexcharts-DJaiVsL5.js";import{u as I}from"./index-BzKDSPoe.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./analytics-CiIjvCz9.js";/* empty css               */import"./vue-datepicker-DJOolBJW.js";/* empty css             */import"./index-xsH4HHeE.js";const P={class:"ccb-dashboard-row"},S={class:"ccb-dashboard-content"},B={class:"ccb-dashboard-content-header"},F={class:"ccb-dashboard-title"},O={key:0,class:"ccb-dashboard-sub"},R={class:"ccb-dashboard-content-footer"},T={class:"ccb-dashboard-value"},w=["innerHTML"],H={class:"ccb-dashboard-chart"},M={class:"ccb-dashboard-charts-container"},X=D({__name:"Dashboard",setup(N){const c=I(),v=r(()=>c.getDashboardCarts),f=r(()=>c.getDashboardCharts),k=r(()=>o=>{if(o==="bar")return i(()=>d(()=>import("./BarChart-DkwODW1E.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url));if(o==="columns")return i(()=>d(()=>import("./ColumnsChart-CFKCTwkX.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url));if(o==="line")return i(()=>d(()=>import("./LinearChart-CvHuMiWn.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url));if(o==="pie")return i(()=>d(()=>import("./PieChart-BKnEIJdF.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url))}),g=r(()=>o=>{const n=parseFloat(o);return n>1e3?(n/1e3).toFixed(1)+"k":n}),m=r(()=>c.isLoading);return y(()=>{setTimeout(()=>{},3e3)}),(o,n)=>(t(),a(l,null,[s("div",P,[(t(!0),a(l,null,b(v.value,(e,C)=>(t(),a("div",{class:"ccb-dashboard-card",key:C},[m.value?(t(),p(h(x),{key:0})):u("",!0),s("div",{class:E(["ccb-dashboard-card-wrapper",{"is-loading":m.value}])},[s("div",S,[s("div",B,[s("div",F,_(e.title),1),e.sub?(t(),a("div",O,_(e.sub),1)):u("",!0)]),s("div",R,[s("div",T,_(g.value(e.value)),1),e.extra?(t(),a("div",{key:0,class:"ccb-dashboard-extra",innerHTML:e.extra},null,8,w)):u("",!0)])]),s("div",H,[L(h(A),{options:e.options,series:e.series,width:"100%",height:"24"},null,8,["options","series"])])],2)]))),128))]),s("div",M,[(t(!0),a(l,null,b(f.value,e=>(t(),p(V(k.value(e.type)),{key:e.key,chart:e,page:"dashboard"},null,8,["chart"]))),128))])],64))}});export{X as default};
//# sourceMappingURL=Dashboard-D61Q9xqY.js.map
