import{b as t}from"./recharts-bmHCCfxU.js";function e(t){return"undefined"==typeof window?"":getComputedStyle(document.documentElement).getPropertyValue(t).trim()}const r={chart1:"#B39DF3",chart2:"#7857FE",chart3:"#80FCFF",chart4:"#FAD000",chart5:"#3AD900",chart6:"#FF2C70",chart7:"#FB94FF",chart8:"#6943FF"},c={received:"#3AD900",forwarded:"#7857FE",transmitted:"#FAD000",dropped:"#FF2C70",neutral:"#B0B0C3"},a={excellent:"#4CFFB5",good:"#39D98A",fair:"#F9D26F",poor:"#FF8A5C",critical:"#FF5C7A",unknown:"#5C5C61"};function n(){const[c,a]=t.useState(r);return t.useEffect(()=>{const t=()=>{const t={chart1:e("--chart-1")||r.chart1,chart2:e("--chart-2")||r.chart2,chart3:e("--chart-3")||r.chart3,chart4:e("--chart-4")||r.chart4,chart5:e("--chart-5")||r.chart5,chart6:e("--chart-6")||r.chart6,chart7:e("--chart-7")||r.chart7,chart8:e("--chart-8")||r.chart8};a(t)};t();const c=new MutationObserver(e=>{for(const r of e)if("data-theme"===r.attributeName){setTimeout(t,50);break}});return c.observe(document.documentElement,{attributes:!0}),()=>{c.disconnect()}},[]),c}function o(){const[r,a]=t.useState(c);return t.useEffect(()=>{const t=()=>{a({received:e("--metric-received")||c.received,forwarded:e("--metric-forwarded")||c.forwarded,transmitted:e("--metric-transmitted")||c.transmitted,dropped:e("--metric-dropped")||c.dropped,neutral:e("--metric-neutral")||c.neutral})};t();const r=new MutationObserver(e=>{for(const r of e)if("data-theme"===r.attributeName){setTimeout(t,50);break}});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),r}function i(){const[r,c]=t.useState(a);return t.useEffect(()=>{const t=()=>{c({excellent:e("--signal-excellent")||a.excellent,good:e("--signal-good")||a.good,fair:e("--signal-fair")||a.fair,poor:e("--signal-poor")||a.poor,critical:e("--signal-critical")||a.critical,unknown:e("--signal-unknown")||a.unknown})};t();const r=new MutationObserver(e=>{for(const r of e)if("data-theme"===r.attributeName){setTimeout(t,50);break}});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),r}function s(){const t=n();return[t.chart1,t.chart2,t.chart3,t.chart4,t.chart5,t.chart6,t.chart7,t.chart8]}export{s as a,i as b,n as c,o as u};
