"use strict";const e=require("react/jsx-runtime"),u=require("lucide-react");function m({message:n,hint:r,icon:s,variant:l="full",id:t}){return l==="compact"?e.jsx("div",{id:t,role:"status","aria-live":"polite",className:"flex items-center justify-center w-full h-full px-4 py-6 text-sm text-[var(--text-secondary)]",children:n}):e.jsxs("div",{id:t,role:"status","aria-live":"polite",className:"flex flex-col items-center justify-center w-full h-full px-4 py-8 gap-3 text-center",children:[e.jsx("span",{className:"text-[var(--text-tertiary)]","aria-hidden":"true",children:s??e.jsx(u.Inbox,{className:"w-10 h-10"})}),e.jsx("p",{className:"text-sm font-medium text-[var(--text-secondary)]",children:n}),r&&e.jsx("p",{className:"text-xs text-[var(--text-tertiary)]",children:r})]})}function f({active:n,payload:r,label:s,labelFormatter:l,valueFormatter:t}){if(!n||!r||r.length===0)return null;const o=s==null?void 0:l?l(s):String(s);return e.jsxs("div",{className:"rounded-[var(--radius-card)] border px-3 py-2 min-w-[160px]",style:{backgroundColor:"var(--dataviz-surface)",borderColor:"var(--border-color)",boxShadow:"var(--shadow-md)"},role:"tooltip",children:[o!==void 0&&e.jsx("div",{className:"text-xs font-medium mb-1 text-[var(--text-secondary)]",children:o}),e.jsx("ul",{className:"flex flex-col gap-1",children:r.map((i,x)=>{const c=String(i.name??i.dataKey??""),a=i.value??"",d=typeof a=="number"&&t||t?t(a,c):typeof a=="number"?a.toLocaleString():String(a);return e.jsxs("li",{className:"flex items-center gap-2 text-xs",children:[e.jsx("span",{className:"inline-block w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:i.color??"var(--dataviz-accent)"},"aria-hidden":"true"}),e.jsx("span",{className:"text-[var(--text-secondary)] flex-1 truncate",children:c}),e.jsx("span",{className:"text-[var(--text-primary)] font-medium tabular-nums",children:d})]},`${c}-${x}`)})})]})}const p={sm:280,md:320,lg:400},h={top:8,right:24,left:8,bottom:8},v={inner:70,outer:110};exports.CHART_HEIGHTS=p;exports.CHART_MARGIN=h;exports.ChartTooltip=f;exports.NoDataState=m;exports.PIE_RADII=v;
//# sourceMappingURL=chartConstants-DyxWoEwB.js.map
