const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./analytics-Beb4MpW8.css","./global-B0Vk3c1V.css","./vendor-vue3-html2pdf-DBfPfU4j.css","./vendor-datepicker-CWmBI_q2.css","./index-Xc5w86hz.css","./Skeleton-CDy0CNA2.css","./PieChart-By7vKXm6.css"])))=>i.map(i=>d[i]);
import{_ as n}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{m as y}from"./vendor-apexcharts-Dhew1LZV.js";import{u as D}from"./index-BzV9LDkq.js";import{S as E}from"./Skeleton-DgK7k6Ot.js";import{d as L,e as a,$ as d,a as V,f as r,i as t,x as o,F as l,r as p,k as b,t as m,j as x,v as A}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as h}from"./vendor-vue-reactivity-CheHbvBM.js";import{a as P,t as u}from"./vendor-vue-shared-DrzsEcag.js";import"./analytics-DsW96Oy3.js";import"./vendor-vue-runtime-dom-B2rky8vu.js";import"./vendor-pinia-BSPefQhS.js";/* empty css               */import"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";import"./vendor-datepicker--1DmXemW.js";import"./vendor-date-fns-DoIqsk4U.js";import"./vendor-axios-xsH4HHeE.js";const S={class:"ccb-dashboard-row"},B={class:"ccb-dashboard-content"},F={class:"ccb-dashboard-content-header"},I={class:"ccb-dashboard-title"},O={key:0,class:"ccb-dashboard-sub"},R={class:"ccb-dashboard-content-footer"},T={class:"ccb-dashboard-value"},w=["innerHTML"],M={class:"ccb-dashboard-chart"},N={class:"ccb-dashboard-charts-container"},ie=L({__name:"Dashboard",setup(H){const c=D(),v=a(()=>c.getDashboardCarts),f=a(()=>c.getDashboardCharts),k=a(()=>s=>{if(s==="bar")return d(()=>n(()=>import("./BarChart-DegHQEj5.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url));if(s==="columns")return d(()=>n(()=>import("./ColumnsChart-BgimGlXh.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url));if(s==="line")return d(()=>n(()=>import("./LinearChart-BRFIzREt.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url));if(s==="pie")return d(()=>n(()=>import("./PieChart-CvSZMPEO.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url))}),C=a(()=>s=>{const i=parseFloat(s);return i>1e3?(i/1e3).toFixed(1)+"k":i}),_=a(()=>c.isLoading);return V(()=>{setTimeout(()=>{},3e3)}),(s,i)=>(t(),r(l,null,[o("div",S,[(t(!0),r(l,null,p(v.value,(e,g)=>(t(),r("div",{class:"ccb-dashboard-card",key:g},[_.value?(t(),b(h(E),{key:0})):m("",!0),o("div",{class:P(["ccb-dashboard-card-wrapper",{"is-loading":_.value}])},[o("div",B,[o("div",F,[o("div",I,u(e.title),1),e.sub?(t(),r("div",O,u(e.sub),1)):m("",!0)]),o("div",R,[o("div",T,u(C.value(e.value)),1),e.extra?(t(),r("div",{key:0,class:"ccb-dashboard-extra",innerHTML:e.extra},null,8,w)):m("",!0)])]),o("div",M,[x(h(y),{options:e.options,series:e.series,width:"100%",height:"24"},null,8,["options","series"])])],2)]))),128))]),o("div",N,[(t(!0),r(l,null,p(f.value,e=>(t(),b(A(k.value(e.type)),{key:e.key,chart:e,page:"dashboard"},null,8,["chart"]))),128))])],64))}});export{ie as default};
//# sourceMappingURL=Dashboard-ujscyDXN.js.map
