import{j as e}from"./vendor-react-wBh_31cN.js";import{C as c,c as d,b as h}from"./card-DISTA6Ay.js";import{S as a}from"./skeleton-BgYOfhyh.js";import{T as p}from"./tooltip-Da8-EbK8.js";import{V as f}from"./value-76ihWpF6.js";import{C as i}from"./trinoUtils-DN18CYax.js";import{R as j,A as w,d as C}from"./vendor-recharts-DmJlpLaF.js";const k=({title:t,values:s,loading:n,tooltip:x,numberFormatter:l})=>{const r=s[s.length-1],o=s.map(m=>({t:m}));return e.jsx(c,{className:"border-none w-full min-w-0 overflow-hidden",children:e.jsx(d,{children:e.jsx(p,{content:x,children:e.jsx("div",{className:"min-w-0",children:n?e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex flex-row justify-between gap-2",children:[e.jsx(a,{className:"h-[15px] w-[60%] max-w-[200px] mb-2.5"}),e.jsx(a,{className:"h-[15px] w-5 mb-2.5"})]}),e.jsx(a,{className:"w-full h-[100px]"})]}):e.jsxs("div",{className:"flex flex-col min-w-0",children:[e.jsxs("div",{className:"flex flex-row justify-between gap-2 min-w-0",children:[e.jsx(h,{className:"text-[22px] leading-[30px] truncate",children:t}),e.jsx(f,{className:"text-[22px] -mb-[25px] shrink-0",children:l?l(r):r})]}),e.jsx(j,{width:"100%",height:100,children:e.jsx(w,{data:o,children:e.jsx(C,{dataKey:"t",fill:i.AriaChartFill,stroke:i.AreaChartStroke,type:"linear",isAnimationActive:!1})})})]})})})})})};export{k as C};
