import{_ as u}from"./app-B4o_iLTT.js";async function y(){const l=await u(()=>import("./apexcharts.esm-CfSzfZrp.js"),[],import.meta.url).then(e=>e.default).catch(()=>null);if(!l)return;const i={fontFamily:"Plus Jakarta Sans, system-ui, sans-serif"},d={borderColor:"#EFEBE0",strokeDashArray:4},n={colors:"#6B807C",fontSize:"11px"},o=(e,t)=>{try{return JSON.parse(e.getAttribute("data-"+t)||"[]")}catch{return[]}},s=document.querySelector("#chart-mrr");if(s){const e=o(s,"series"),t=o(s,"categories");Array.isArray(e)&&e.some(a=>(a.data||[]).some(h=>h>0))?new l(s,{chart:{type:"area",height:260,toolbar:{show:!1},...i,stacked:!0},series:e,colors:["#075E54","#13478A","#E5A04E"],stroke:{curve:"smooth",width:2},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.3,opacityTo:.04}},dataLabels:{enabled:!1},grid:d,xaxis:{categories:t,labels:{style:n}},yaxis:{labels:{style:n,formatter:a=>(window.WA_CURRENCY||"$")+Number(a).toFixed(0)+"k"}},legend:{show:!1}}).render():s.innerHTML='<div class="h-full w-full flex items-center justify-center text-[12px] text-ink-500">No revenue in the selected window.</div>'}const r=document.querySelector("#chart-share");if(r){const e=o(r,"labels"),t=o(r,"series");Array.isArray(t)&&t.some(a=>a>0)?new l(r,{chart:{type:"donut",height:200,...i},labels:e,series:t,colors:["#075E54","#13478A","#E5A04E","#D6CDB6","#E87A5D"],dataLabels:{enabled:!1},legend:{show:!1},stroke:{colors:["#FBFAF6"],width:2}}).render():r.innerHTML='<div class="h-full w-full flex items-center justify-center text-[12px] text-ink-500">No subscribers yet.</div>'}}export{y as default};
