import{m as p}from"./vendor-apexcharts-Dhew1LZV.js";import{u as m}from"./index-BzV9LDkq.js";import{S as h}from"./Skeleton-DgK7k6Ot.js";import{d as b,e as u,f,i as r,k as x,t as g,x as e,j as v}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as _,r as o,u as s}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as y,a as k}from"./vendor-vue-shared-DrzsEcag.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.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 w={class:"ccb-dashboard-card ccb-dashboard-card-chart ccb-bar-chart"},C={class:"ccb-dashboard-chart-header"},S={class:"ccb-dashboard-chart-controls"},B={class:"ccb-dashboard-large-chart"},P=b({__name:"BarChart",props:{chart:{},page:{}},setup(i){const c=i,{chart:a}=_(c),l=o({chart:{type:"bar",toolbar:{show:!1}},plotOptions:{bar:{horizontal:!0,barHeight:"16px",borderRadius:6,distributed:!1}},dataLabels:{enabled:!1},xaxis:{categories:a.value.categories,min:Math.min(...a.value.series),max:Math.max(...a.value.series),labels:{style:{colors:"#888",fontSize:"13px"}},axisBorder:{show:!0,offsetX:-10},axisTicks:{show:!0}},yaxis:{labels:{style:{colors:"#222",fontSize:"14px"}}},grid:{borderColor:"#f1f1f1",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!1}},padding:{left:0,right:0}},colors:["#27ae60"],tooltip:{enabled:!0},legend:{show:!1}}),n=o([{name:a.value.title,data:a.value.series}]),t=u(()=>m().isLoading);return(d,z)=>(r(),f("div",w,[t.value?(r(),x(s(h),{key:0})):g("",!0),e("div",{class:k(["ccb-dashboard-card-wrapper",{"ccb-is-loading":t.value}])},[e("div",C,[e("div",S,[e("span",null,y(s(a).title),1)])]),e("div",B,[v(s(p),{type:"bar",height:"320",options:l.value,series:n.value},null,8,["options","series"])])],2)]))}});export{P as default};
//# sourceMappingURL=BarChart-DegHQEj5.js.map
