@acronis-platform/ui-react 0.46.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/chart/chart.js +213 -0
- package/dist/components/ui/chart/chart.js.map +1 -0
- package/dist/index.js +226 -219
- package/dist/index.js.map +1 -1
- package/dist/react.js +226 -219
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/chart/chart.d.ts +55 -0
- package/dist/src/components/ui/chart/index.d.ts +2 -0
- package/dist/src/components/ui/sheet/sheet.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/ui-react.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { jsx as c, jsxs as v, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import * as C from "recharts";
|
|
4
|
+
import { cn as d } from "../../../lib/utils.js";
|
|
5
|
+
const I = { light: "", dark: "[data-theme='dark']" }, $ = b.createContext(null);
|
|
6
|
+
function L() {
|
|
7
|
+
const s = b.useContext($);
|
|
8
|
+
if (!s)
|
|
9
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
10
|
+
return s;
|
|
11
|
+
}
|
|
12
|
+
function M({
|
|
13
|
+
id: s,
|
|
14
|
+
className: e,
|
|
15
|
+
children: r,
|
|
16
|
+
config: o,
|
|
17
|
+
...n
|
|
18
|
+
}) {
|
|
19
|
+
const i = b.useId(), a = `chart-${s || i.replace(/:/g, "")}`;
|
|
20
|
+
return /* @__PURE__ */ c($.Provider, { value: { config: o }, children: /* @__PURE__ */ v(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
id: s,
|
|
24
|
+
"data-slot": "chart",
|
|
25
|
+
"data-chart": a,
|
|
26
|
+
className: d(
|
|
27
|
+
"[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
|
|
28
|
+
e
|
|
29
|
+
),
|
|
30
|
+
...n,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ c(R, { id: a, config: o }),
|
|
33
|
+
/* @__PURE__ */ c(C.ResponsiveContainer, { children: r })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
) });
|
|
37
|
+
}
|
|
38
|
+
const R = ({ id: s, config: e }) => {
|
|
39
|
+
const r = Object.entries(e).filter(
|
|
40
|
+
([, o]) => o.theme || o.color
|
|
41
|
+
);
|
|
42
|
+
return r.length ? /* @__PURE__ */ c("style", { children: Object.entries(I).map(
|
|
43
|
+
([o, n]) => `
|
|
44
|
+
${n} [data-chart=${s}] {
|
|
45
|
+
${r.map(([i, a]) => {
|
|
46
|
+
var l;
|
|
47
|
+
const h = ((l = a.theme) == null ? void 0 : l[o]) || a.color;
|
|
48
|
+
return h ? ` --color-${i}: ${h};` : null;
|
|
49
|
+
}).join(`
|
|
50
|
+
`)}
|
|
51
|
+
}
|
|
52
|
+
`
|
|
53
|
+
).join(`
|
|
54
|
+
`) }) : null;
|
|
55
|
+
}, O = C.Tooltip;
|
|
56
|
+
function q({
|
|
57
|
+
active: s,
|
|
58
|
+
payload: e,
|
|
59
|
+
label: r,
|
|
60
|
+
className: o,
|
|
61
|
+
indicator: n = "dot",
|
|
62
|
+
hideLabel: i = !1,
|
|
63
|
+
hideIndicator: a = !1,
|
|
64
|
+
labelFormatter: h,
|
|
65
|
+
formatter: l,
|
|
66
|
+
labelClassName: p,
|
|
67
|
+
color: P,
|
|
68
|
+
nameKey: T,
|
|
69
|
+
labelKey: _
|
|
70
|
+
}) {
|
|
71
|
+
const { config: m } = L(), N = b.useMemo(() => {
|
|
72
|
+
if (i || !(e != null && e.length))
|
|
73
|
+
return null;
|
|
74
|
+
const [t] = e, k = `${_ || (t == null ? void 0 : t.dataKey) || (t == null ? void 0 : t.name) || "value"}`, f = w(m, t, k), u = (() => {
|
|
75
|
+
var j;
|
|
76
|
+
const g = !_ && typeof r == "string" ? ((j = m[r]) == null ? void 0 : j.label) ?? r : f == null ? void 0 : f.label;
|
|
77
|
+
return typeof g == "string" || typeof g == "number" ? g : void 0;
|
|
78
|
+
})();
|
|
79
|
+
return h ? /* @__PURE__ */ c("div", { className: d("font-medium", p), children: h(u, e) }) : u ? /* @__PURE__ */ c("div", { className: d("font-medium", p), children: u }) : null;
|
|
80
|
+
}, [
|
|
81
|
+
r,
|
|
82
|
+
h,
|
|
83
|
+
e,
|
|
84
|
+
i,
|
|
85
|
+
p,
|
|
86
|
+
m,
|
|
87
|
+
_
|
|
88
|
+
]);
|
|
89
|
+
if (!s || !(e != null && e.length))
|
|
90
|
+
return null;
|
|
91
|
+
const x = e.length === 1 && n !== "dot";
|
|
92
|
+
return /* @__PURE__ */ v(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
className: d(
|
|
96
|
+
"grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border bg-background px-2.5 py-1.5 text-xs text-foreground shadow-xl",
|
|
97
|
+
o
|
|
98
|
+
),
|
|
99
|
+
children: [
|
|
100
|
+
x ? null : N,
|
|
101
|
+
/* @__PURE__ */ c("div", { className: "grid gap-1.5", children: e.map((t, k) => {
|
|
102
|
+
const f = `${T || t.name || t.dataKey || "value"}`, u = w(m, t, f), g = P || t.payload.fill || t.color;
|
|
103
|
+
return /* @__PURE__ */ c(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: d(
|
|
107
|
+
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
108
|
+
n === "dot" && "items-center"
|
|
109
|
+
),
|
|
110
|
+
children: l && (t == null ? void 0 : t.value) !== void 0 && t.name ? l(t.value, t.name, t, k, e) : /* @__PURE__ */ v(E, { children: [
|
|
111
|
+
u != null && u.icon ? /* @__PURE__ */ c(u.icon, {}) : !a && /* @__PURE__ */ c(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
className: d(
|
|
115
|
+
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
116
|
+
{
|
|
117
|
+
"h-2.5 w-2.5": n === "dot",
|
|
118
|
+
"h-4 w-1": n === "line",
|
|
119
|
+
"h-4 w-0 border-[1.5px] border-dashed bg-transparent": n === "dashed",
|
|
120
|
+
"my-0.5": x && n === "dashed"
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
style: {
|
|
124
|
+
"--color-bg": g,
|
|
125
|
+
"--color-border": g
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ v(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
className: d(
|
|
133
|
+
"flex flex-1 justify-between leading-none",
|
|
134
|
+
x ? "items-end" : "items-center"
|
|
135
|
+
),
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ v("div", { className: "grid gap-1.5", children: [
|
|
138
|
+
x ? N : null,
|
|
139
|
+
/* @__PURE__ */ c("span", { className: "text-muted-foreground", children: (u == null ? void 0 : u.label) || t.name })
|
|
140
|
+
] }),
|
|
141
|
+
t.value != null && /* @__PURE__ */ c("span", { className: "font-mono font-medium tabular-nums text-foreground", children: t.value.toLocaleString() })
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
] })
|
|
146
|
+
},
|
|
147
|
+
f
|
|
148
|
+
);
|
|
149
|
+
}) })
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
const H = C.Legend;
|
|
155
|
+
function z({
|
|
156
|
+
className: s,
|
|
157
|
+
hideIcon: e = !1,
|
|
158
|
+
payload: r,
|
|
159
|
+
verticalAlign: o = "bottom",
|
|
160
|
+
nameKey: n
|
|
161
|
+
}) {
|
|
162
|
+
const { config: i } = L();
|
|
163
|
+
return r != null && r.length ? /* @__PURE__ */ c(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
className: d(
|
|
167
|
+
"flex items-center justify-center gap-4",
|
|
168
|
+
o === "top" ? "pb-3" : "pt-3",
|
|
169
|
+
s
|
|
170
|
+
),
|
|
171
|
+
children: r.map((a) => {
|
|
172
|
+
const h = `${n || a.dataKey || "value"}`, l = w(i, a, h);
|
|
173
|
+
return /* @__PURE__ */ v(
|
|
174
|
+
"div",
|
|
175
|
+
{
|
|
176
|
+
className: d(
|
|
177
|
+
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
|
178
|
+
),
|
|
179
|
+
children: [
|
|
180
|
+
l != null && l.icon && !e ? /* @__PURE__ */ c(l.icon, {}) : /* @__PURE__ */ c(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
184
|
+
style: {
|
|
185
|
+
backgroundColor: a.color
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
l == null ? void 0 : l.label
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
a.value
|
|
193
|
+
);
|
|
194
|
+
})
|
|
195
|
+
}
|
|
196
|
+
) : null;
|
|
197
|
+
}
|
|
198
|
+
function w(s, e, r) {
|
|
199
|
+
if (typeof e != "object" || e === null)
|
|
200
|
+
return;
|
|
201
|
+
const o = "payload" in e && typeof e.payload == "object" && e.payload !== null ? e.payload : void 0;
|
|
202
|
+
let n = r;
|
|
203
|
+
return r in e && typeof e[r] == "string" ? n = e[r] : o && r in o && typeof o[r] == "string" && (n = o[r]), n in s ? s[n] : s[r];
|
|
204
|
+
}
|
|
205
|
+
export {
|
|
206
|
+
M as ChartContainer,
|
|
207
|
+
H as ChartLegend,
|
|
208
|
+
z as ChartLegendContent,
|
|
209
|
+
R as ChartStyle,
|
|
210
|
+
O as ChartTooltip,
|
|
211
|
+
q as ChartTooltipContent
|
|
212
|
+
};
|
|
213
|
+
//# sourceMappingURL=chart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chart.js","sources":["../../../../src/components/ui/chart/chart.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RechartsPrimitive from 'recharts';\nimport type { LegendPayload } from 'recharts/types/component/DefaultLegendContent';\nimport {\n NameType,\n Payload,\n ValueType,\n} from 'recharts/types/component/DefaultTooltipContent';\nimport type { Props as LegendProps } from 'recharts/types/component/Legend';\nimport { TooltipContentProps } from 'recharts/types/component/Tooltip';\n\nimport { cn } from '@/lib/utils';\n\n// Format: { THEME_NAME: CSS_SELECTOR }. ui-react flips light/dark via the\n// `[data-theme]` attribute (the tokens resolve `light-dark()` through\n// `color-scheme`), not the legacy `.dark` class — so per-series `theme` colors\n// scope their dark value under `[data-theme='dark']`.\nconst THEMES = { light: '', dark: \"[data-theme='dark']\" } as const;\n\nexport type ChartConfig = {\n [k in string]: {\n label?: React.ReactNode;\n icon?: React.ComponentType;\n } & (\n | { color?: string; theme?: never }\n | { color?: never; theme: Record<keyof typeof THEMES, string> }\n );\n};\n\ntype ChartContextProps = {\n config: ChartConfig;\n};\n\nexport type ChartTooltipContentProps = Partial<\n TooltipContentProps<ValueType, NameType>\n> & {\n className?: string;\n hideLabel?: boolean;\n hideIndicator?: boolean;\n indicator?: 'line' | 'dot' | 'dashed';\n nameKey?: string;\n labelKey?: string;\n labelFormatter?: (\n label: TooltipContentProps<number, string>['label'],\n payload: TooltipContentProps<number, string>['payload']\n ) => React.ReactNode;\n formatter?: (\n value: number | string,\n name: string,\n item: Payload<number | string, string>,\n index: number,\n payload: ReadonlyArray<Payload<number | string, string>>\n ) => React.ReactNode;\n labelClassName?: string;\n color?: string;\n};\n\nexport type ChartLegendContentProps = {\n className?: string;\n hideIcon?: boolean;\n verticalAlign?: LegendProps['verticalAlign'];\n payload?: LegendPayload[];\n nameKey?: string;\n};\n\nconst ChartContext = React.createContext<ChartContextProps | null>(null);\n\nfunction useChart() {\n const context = React.useContext(ChartContext);\n\n if (!context) {\n throw new Error('useChart must be used within a <ChartContainer />');\n }\n\n return context;\n}\n\nexport interface ChartContainerProps extends React.ComponentProps<'div'> {\n config: ChartConfig;\n children: React.ComponentProps<\n typeof RechartsPrimitive.ResponsiveContainer\n >['children'];\n}\n\nfunction ChartContainer({\n id,\n className,\n children,\n config,\n ...props\n}: ChartContainerProps) {\n const uniqueId = React.useId();\n const chartId = `chart-${id || uniqueId.replace(/:/g, '')}`;\n\n return (\n <ChartContext.Provider value={{ config }}>\n <div\n id={id}\n data-slot=\"chart\"\n data-chart={chartId}\n className={cn(\n \"[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden\",\n className\n )}\n {...props}\n >\n <ChartStyle id={chartId} config={config} />\n <RechartsPrimitive.ResponsiveContainer>\n {children}\n </RechartsPrimitive.ResponsiveContainer>\n </div>\n </ChartContext.Provider>\n );\n}\n\nconst ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {\n const colorConfig = Object.entries(config).filter(\n ([, config]) => config.theme || config.color\n );\n\n if (!colorConfig.length) {\n return null;\n }\n\n // Rendered as a text child (not dangerouslySetInnerHTML): React sets it via\n // textContent, which the browser does not HTML-parse, so a `</style>` in a\n // config color can't break out of the tag.\n return (\n <style>\n {Object.entries(THEMES)\n .map(\n ([theme, prefix]) => `\n ${prefix} [data-chart=${id}] {\n ${colorConfig\n .map(([key, itemConfig]) => {\n const color =\n itemConfig.theme?.[theme as keyof typeof itemConfig.theme] ||\n itemConfig.color;\n return color ? ` --color-${key}: ${color};` : null;\n })\n .join('\\n')}\n }\n `\n )\n .join('\\n')}\n </style>\n );\n};\n\nconst ChartTooltip = RechartsPrimitive.Tooltip;\n\nfunction ChartTooltipContent({\n active,\n payload,\n label,\n className,\n indicator = 'dot',\n hideLabel = false,\n hideIndicator = false,\n labelFormatter,\n formatter,\n labelClassName,\n color,\n nameKey,\n labelKey,\n}: ChartTooltipContentProps) {\n const { config } = useChart();\n\n const tooltipLabel = React.useMemo(() => {\n if (hideLabel || !payload?.length) {\n return null;\n }\n\n const [item] = payload;\n const key = `${labelKey || item?.dataKey || item?.name || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const value = (() => {\n const v =\n !labelKey && typeof label === 'string'\n ? (config[label as keyof typeof config]?.label ?? label)\n : itemConfig?.label;\n\n return typeof v === 'string' || typeof v === 'number' ? v : undefined;\n })();\n\n if (labelFormatter) {\n return (\n <div className={cn('font-medium', labelClassName)}>\n {labelFormatter(value, payload)}\n </div>\n );\n }\n\n if (!value) {\n return null;\n }\n\n return <div className={cn('font-medium', labelClassName)}>{value}</div>;\n }, [\n label,\n labelFormatter,\n payload,\n hideLabel,\n labelClassName,\n config,\n labelKey,\n ]);\n\n if (!active || !payload?.length) {\n return null;\n }\n\n const nestLabel = payload.length === 1 && indicator !== 'dot';\n\n return (\n <div\n className={cn(\n 'grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border bg-background px-2.5 py-1.5 text-xs text-foreground shadow-xl',\n className\n )}\n >\n {!nestLabel ? tooltipLabel : null}\n <div className=\"grid gap-1.5\">\n {payload.map((item, index) => {\n const key = `${nameKey || item.name || item.dataKey || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const indicatorColor = color || item.payload.fill || item.color;\n\n return (\n <div\n key={key}\n className={cn(\n 'flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground',\n indicator === 'dot' && 'items-center'\n )}\n >\n {formatter && item?.value !== undefined && item.name ? (\n formatter(item.value, item.name, item, index, payload)\n ) : (\n <>\n {itemConfig?.icon ? (\n <itemConfig.icon />\n ) : (\n !hideIndicator && (\n <div\n className={cn(\n 'shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)',\n {\n 'h-2.5 w-2.5': indicator === 'dot',\n 'h-4 w-1': indicator === 'line',\n 'h-4 w-0 border-[1.5px] border-dashed bg-transparent':\n indicator === 'dashed',\n 'my-0.5': nestLabel && indicator === 'dashed',\n }\n )}\n style={\n {\n '--color-bg': indicatorColor,\n '--color-border': indicatorColor,\n } as React.CSSProperties\n }\n />\n )\n )}\n <div\n className={cn(\n 'flex flex-1 justify-between leading-none',\n nestLabel ? 'items-end' : 'items-center'\n )}\n >\n <div className=\"grid gap-1.5\">\n {nestLabel ? tooltipLabel : null}\n <span className=\"text-muted-foreground\">\n {itemConfig?.label || item.name}\n </span>\n </div>\n {item.value != null && (\n <span className=\"font-mono font-medium tabular-nums text-foreground\">\n {item.value.toLocaleString()}\n </span>\n )}\n </div>\n </>\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n\nconst ChartLegend = RechartsPrimitive.Legend;\n\nfunction ChartLegendContent({\n className,\n hideIcon = false,\n payload,\n verticalAlign = 'bottom',\n nameKey,\n}: ChartLegendContentProps) {\n const { config } = useChart();\n\n if (!payload?.length) {\n return null;\n }\n\n return (\n <div\n className={cn(\n 'flex items-center justify-center gap-4',\n verticalAlign === 'top' ? 'pb-3' : 'pt-3',\n className\n )}\n >\n {payload.map((item) => {\n const key = `${nameKey || item.dataKey || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n\n return (\n <div\n key={item.value}\n className={cn(\n 'flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground'\n )}\n >\n {itemConfig?.icon && !hideIcon ? (\n <itemConfig.icon />\n ) : (\n <div\n className=\"h-2 w-2 shrink-0 rounded-[2px]\"\n style={{\n backgroundColor: item.color,\n }}\n />\n )}\n {itemConfig?.label}\n </div>\n );\n })}\n </div>\n );\n}\n\n// Helper to extract item config from a payload.\nfunction getPayloadConfigFromPayload(\n config: ChartConfig,\n payload: unknown,\n key: string\n) {\n if (typeof payload !== 'object' || payload === null) {\n return undefined;\n }\n\n const payloadPayload =\n 'payload' in payload &&\n typeof payload.payload === 'object' &&\n payload.payload !== null\n ? payload.payload\n : undefined;\n\n let configLabelKey: string = key;\n\n if (\n key in payload &&\n typeof payload[key as keyof typeof payload] === 'string'\n ) {\n configLabelKey = payload[key as keyof typeof payload] as string;\n } else if (\n payloadPayload &&\n key in payloadPayload &&\n typeof payloadPayload[key as keyof typeof payloadPayload] === 'string'\n ) {\n configLabelKey = payloadPayload[\n key as keyof typeof payloadPayload\n ] as string;\n }\n\n return configLabelKey in config\n ? config[configLabelKey]\n : config[key as keyof typeof config];\n}\n\nexport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n ChartLegend,\n ChartLegendContent,\n ChartStyle,\n};\n"],"names":["THEMES","ChartContext","React","useChart","context","ChartContainer","id","className","children","config","props","uniqueId","chartId","jsxs","cn","jsx","ChartStyle","RechartsPrimitive","colorConfig","theme","prefix","key","itemConfig","color","_a","ChartTooltip","ChartTooltipContent","active","payload","label","indicator","hideLabel","hideIndicator","labelFormatter","formatter","labelClassName","nameKey","labelKey","tooltipLabel","item","getPayloadConfigFromPayload","value","v","nestLabel","index","indicatorColor","Fragment","ChartLegend","ChartLegendContent","hideIcon","verticalAlign","payloadPayload","configLabelKey"],"mappings":";;;;AAmBA,MAAMA,IAAS,EAAE,OAAO,IAAI,MAAM,sBAAA,GAgD5BC,IAAeC,EAAM,cAAwC,IAAI;AAEvE,SAASC,IAAW;AAClB,QAAMC,IAAUF,EAAM,WAAWD,CAAY;AAE7C,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,mDAAmD;AAGrE,SAAOA;AACT;AASA,SAASC,EAAe;AAAA,EACtB,IAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,GAAGC;AACL,GAAwB;AACtB,QAAMC,IAAWT,EAAM,MAAA,GACjBU,IAAU,SAASN,KAAMK,EAAS,QAAQ,MAAM,EAAE,CAAC;AAEzD,2BACGV,EAAa,UAAb,EAAsB,OAAO,EAAE,QAAAQ,KAC9B,UAAA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAAP;AAAA,MACA,aAAU;AAAA,MACV,cAAYM;AAAA,MACZ,WAAWE;AAAA,QACT;AAAA,QACAP;AAAA,MAAA;AAAA,MAED,GAAGG;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAK,EAACC,GAAA,EAAW,IAAIJ,GAAS,QAAAH,EAAA,CAAgB;AAAA,QACzC,gBAAAM,EAACE,EAAkB,qBAAlB,EACE,UAAAT,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;AAEA,MAAMQ,IAAa,CAAC,EAAE,IAAAV,GAAI,QAAAG,QAAkD;AAC1E,QAAMS,IAAc,OAAO,QAAQT,CAAM,EAAE;AAAA,IACzC,CAAC,CAAA,EAAGA,CAAM,MAAMA,EAAO,SAASA,EAAO;AAAA,EAAA;AAGzC,SAAKS,EAAY,SAQf,gBAAAH,EAAC,SAAA,EACE,UAA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