import n from"./apexcharts.esm-CfSzfZrp.js";function l(){const e=window.adminBillingHistory||{trend:{labels:[],charges:[],refunds:[]}},r={fontFamily:"Plus Jakarta Sans, system-ui, sans-serif"},t={colors:"#6B807C",fontSize:"11px"},a=document.getElementById("chart-billing");a&&new n(a,{chart:{type:"area",height:260,toolbar:{show:!1},...r},series:[{name:"Charges",data:e.trend.charges},{name:"Refunds",data:e.trend.refunds}],colors:["#075E54","#E76A6A"],stroke:{curve:"smooth",width:2},fill:{type:"gradient",gradient:{opacityFrom:.35,opacityTo:.05}},dataLabels:{enabled:!1},grid:{borderColor:"#EFEBE0",strokeDashArray:4},xaxis:{categories:e.trend.labels,tickAmount:Math.min(12,e.trend.labels.length),labels:{style:t,rotate:-30,hideOverlappingLabels:!0,trim:!0,maxHeight:60}},yaxis:{labels:{style:t,formatter:s=>(window.WA_CURRENCY||"$")+Number(s).toLocaleString()}},legend:{show:!1}}).render()}export{l as default};
