import{i as e,n as t}from"./rolldown-runtime-ConPGZeh.js";import{Nn as n,Sr as r,Xn as i,Zn as a,er as o,ii as s,ir as c,jr as l,n as u,or as d,pr as f,t as p}from"./vendor-primevue-D1-E3-0M.js";var m,h,g,_=t((()=>{n(),p(),m={class:`flex flex-col gap-1`},h={class:`max-h-[48rem] rounded border p-4`},g=d({__name:`WidgetChart`,props:f({widget:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=l(e,`modelValue`),n=e,d=i(()=>n.widget.options?.type??`line`),f=i(()=>t.value||{labels:[],datasets:[]}),p=i(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{labels:{color:`#FFF`,usePointStyle:!0,pointStyle:`circle`}}},scales:{x:{ticks:{color:`#9FA2BD`},grid:{display:!0,color:`#9FA2BD`,drawTicks:!1,drawOnChartArea:!0,drawBorder:!1},border:{display:!0,color:`#9FA2BD`}},y:{ticks:{color:`#9FA2BD`},grid:{display:!1,drawTicks:!1,drawOnChartArea:!1,drawBorder:!1},border:{display:!0,color:`#9FA2BD`}}}}));return(e,t)=>(r(),o(`div`,m,[a(`div`,h,[c(s(u),{type:d.value,data:f.value,options:p.value,"aria-label":`${e.widget.name||e.$t(`g.chart`)} - ${d.value} ${e.$t(`g.chartLowercase`)}`},null,8,[`type`,`data`,`options`,`aria-label`])])]))}})})),v;t((()=>{_(),_(),v=g}))();export{v as default};
//# sourceMappingURL=WidgetChart-cjQLVhZD.js.map