"use client";
import{m as p,n as i}from"./chunk-3CHPBNY2.js";import{p as s}from"./chunk-KEPQUAOX.js";import{forwardRef as u,useEffect as y,useState as m}from"react";var n=(t,e)=>{let r={chart:{backgroundColor:t.palette.background[300],style:{fontFamily:t.typography.fontFamily}},colors:[t.palette.green[500],t.palette.red[500],t.palette.orange[500]],credits:{enabled:!1},legend:{itemHoverStyle:{color:t.palette.text.subText},itemStyle:{color:t.palette.text.secondary}},subtitle:{style:{color:t.palette.text.subText}},title:{style:{color:t.palette.text.primary}},tooltip:{style:{transitionDuration:"150ms",transitionTimingFunction:"ease"}},xAxis:{gridLineColor:t.palette.background[500],labels:{style:{color:t.palette.text.subText}}},yAxis:{gridLineColor:t.palette.background[500],labels:{style:{color:t.palette.text.subText}}}};e?.setOptions(r)};var c=p("div")(()=>s`
    display: block;
  `);import{jsx as b}from"react/jsx-runtime";var f=u(({children:t,highcharts:e},r)=>{let a=i(),[o,l]=m(!1);return y(()=>{o||(n(a,e),l(!0))},[a,e,o,l]),b(c,{ref:r,children:o?t:null})});f.displayName="Chart";var x=f;export{x as a};
