import i from"./apexcharts.esm-CfSzfZrp.js";function b(){const s=window.adminOrderAnalytics||{},e=s.motion||{labels:[],new:[],cancel:[]},t=s.typeMix||{labels:["Renewal","Add-on","Cancel"],series:[0,0,0]},l={fontFamily:"Plus Jakarta Sans, system-ui, sans-serif"},c={borderColor:"#EFEBE0",strokeDashArray:4},o={colors:"#6B807C",fontSize:"11px"},n=document.querySelector("#chart-motion");n&&new i(n,{chart:{type:"bar",height:280,toolbar:{show:!1},...l,stacked:!0},series:[{name:"New",data:e.new},{name:"Cancel",data:(e.cancel||[]).map(a=>-Math.abs(a))}],colors:["#075E54","#E87A5D"],plotOptions:{bar:{columnWidth:"60%",borderRadius:4}},dataLabels:{enabled:!1},grid:c,xaxis:{categories:e.labels,tickAmount:Math.min(14,e.labels.length),labels:{style:o,rotate:-30,hideOverlappingLabels:!0,trim:!0,maxHeight:60}},yaxis:{labels:{style:o}},legend:{show:!1}}).render();const r=document.querySelector("#chart-type");if(r){const a=(t.series||[]).map(Number);new i(r,{chart:{type:"donut",height:200,...l},labels:t.labels.length?t.labels:["No data"],series:a.length?a:[1],colors:["#075E54","#13478A","#E87A5D"],dataLabels:{enabled:!1},legend:{show:!1},stroke:{colors:["#FBFAF6"],width:2}}).render()}}export{b as default};
