@sakaniui/react 0.3.13 → 0.3.15
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/index.cjs +1 -1
- package/dist/index.mjs +1018 -935
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as
|
|
2
|
-
import
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { ArrowRight as
|
|
5
|
-
import { Area as
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as ee, Z as te, _ as ne, a as re, at as ie, b as T, c as ae, ct as oe, d as se, dt as E, et as ce, f as le, g as ue, h as de, i as fe, it as pe, j as me, k as he, l as ge, lt as _e, m as ve, n as ye, nt as be, o as xe, ot as Se, p as Ce, q as we, r as Te, rt as Ee, s as De, st as Oe, t as ke, tt as Ae, u as je, ut as Me, v as Ne, w as Pe, x as Fe, y as Ie, z as Le } from "./TopBar-CdIyPMAY.js";
|
|
2
|
+
import D, { useEffect as Re, useState as ze } from "react";
|
|
3
|
+
import { Fragment as Be, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
4
|
+
import { ArrowRight as Ve, ChartColumn as He, Check as Ue, ChevronDown as We, ChevronLeft as Ge, ChevronRight as Ke, Copy as qe, EllipsisVertical as Je, File as Ye, Info as Xe, LogOut as Ze, Menu as Qe, Minus as $e, MoreHorizontal as et, Play as tt, Plus as nt, Quote as rt, Receipt as it, Search as at, Sparkles as ot, TrendingDown as st, TrendingUp as ct, TriangleAlert as lt, UploadCloud as ut, X as dt } from "lucide-react";
|
|
5
|
+
import { Area as ft, AreaChart as pt, Bar as mt, BarChart as ht, CartesianGrid as gt, Cell as _t, Legend as vt, Line as yt, LineChart as bt, Pie as xt, PieChart as St, PolarAngleAxis as Ct, PolarGrid as wt, PolarRadiusAxis as Tt, Radar as Et, RadarChart as Dt, RadialBar as Ot, RadialBarChart as kt, Rectangle as At, ResponsiveContainer as A, Sector as jt, Tooltip as Mt, XAxis as Nt, YAxis as Pt } from "recharts";
|
|
6
6
|
var Ft = {
|
|
7
7
|
announcement: "_announcement_1ba3c_1",
|
|
8
8
|
"announcement--neutral": "_announcement--neutral_1ba3c_13",
|
|
@@ -14,26 +14,26 @@ var Ft = {
|
|
|
14
14
|
link: "_link_1ba3c_52"
|
|
15
15
|
}, It = ({ message: e, linkLabel: t, linkHref: n, onLinkClick: r, onDismiss: i, variant: a = "neutral", className: o }) => {
|
|
16
16
|
let s = a === "urgent";
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ k("div", {
|
|
18
18
|
className: [
|
|
19
19
|
Ft.announcement,
|
|
20
20
|
Ft[`announcement--${a}`],
|
|
21
21
|
o ?? ""
|
|
22
22
|
].filter(Boolean).join(" "),
|
|
23
|
-
children: [/* @__PURE__ */
|
|
23
|
+
children: [/* @__PURE__ */ k("div", {
|
|
24
24
|
className: Ft.content,
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ O("span", {
|
|
27
27
|
className: Ft.icon,
|
|
28
28
|
"aria-hidden": "true",
|
|
29
|
-
children: s ? /* @__PURE__ */
|
|
29
|
+
children: s ? /* @__PURE__ */ O(lt, {
|
|
30
30
|
size: 24,
|
|
31
31
|
strokeWidth: 1.5,
|
|
32
32
|
style: {
|
|
33
33
|
fill: "var(--color-info-solid)",
|
|
34
34
|
stroke: "var(--color-info-bg)"
|
|
35
35
|
}
|
|
36
|
-
}) : /* @__PURE__ */
|
|
36
|
+
}) : /* @__PURE__ */ O(ot, {
|
|
37
37
|
size: 24,
|
|
38
38
|
strokeWidth: 1.5,
|
|
39
39
|
fill: "currentColor",
|
|
@@ -41,11 +41,11 @@ var Ft = {
|
|
|
41
41
|
className: Ft.icon__neutral
|
|
42
42
|
})
|
|
43
43
|
}),
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ O("p", {
|
|
45
45
|
className: Ft.message,
|
|
46
46
|
children: e
|
|
47
47
|
}),
|
|
48
|
-
!s && t && /* @__PURE__ */
|
|
48
|
+
!s && t && /* @__PURE__ */ O(ie, {
|
|
49
49
|
href: n,
|
|
50
50
|
onClick: r,
|
|
51
51
|
className: Ft.link,
|
|
@@ -57,8 +57,8 @@ var Ft = {
|
|
|
57
57
|
children: t
|
|
58
58
|
})
|
|
59
59
|
]
|
|
60
|
-
}), i && /* @__PURE__ */
|
|
61
|
-
icon:
|
|
60
|
+
}), i && /* @__PURE__ */ O(pe, {
|
|
61
|
+
icon: dt,
|
|
62
62
|
size: "sm",
|
|
63
63
|
variant: "ghost",
|
|
64
64
|
"aria-label": "Dismiss",
|
|
@@ -99,27 +99,27 @@ var Ft = {
|
|
|
99
99
|
], Rt = RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${Lt.join("|")})\\b)`, "g"), zt = (e) => e.split(Rt).map((e, t) => {
|
|
100
100
|
if (!e) return null;
|
|
101
101
|
let n = /^['"`]/.test(e), r = !n && Lt.includes(e);
|
|
102
|
-
return n ? /* @__PURE__ */
|
|
102
|
+
return n ? /* @__PURE__ */ O("span", {
|
|
103
103
|
className: j.tokenString,
|
|
104
104
|
children: e
|
|
105
|
-
}, t) : r ? /* @__PURE__ */
|
|
105
|
+
}, t) : r ? /* @__PURE__ */ O("span", {
|
|
106
106
|
className: j.tokenKeyword,
|
|
107
107
|
children: e
|
|
108
|
-
}, t) : /* @__PURE__ */
|
|
108
|
+
}, t) : /* @__PURE__ */ O(D.Fragment, { children: e }, t);
|
|
109
109
|
}), Bt = ({ code: e, filename: t, onCopy: n, editable: r = !1, onChange: i, placeholder: a, className: o }) => {
|
|
110
|
-
let [s, c] =
|
|
111
|
-
|
|
110
|
+
let [s, c] = D.useState(!1), [l, u] = D.useState(e);
|
|
111
|
+
D.useEffect(() => u(e), [e]);
|
|
112
112
|
let d = () => {
|
|
113
113
|
navigator.clipboard?.writeText(l), n?.(l), c(!0), window.setTimeout(() => c(!1), 1500);
|
|
114
114
|
}, f = (e) => {
|
|
115
115
|
u(e), i?.(e);
|
|
116
|
-
}, p = r ? /* @__PURE__ */
|
|
116
|
+
}, p = r ? /* @__PURE__ */ k("div", {
|
|
117
117
|
className: j.editableBody,
|
|
118
|
-
children: [/* @__PURE__ */
|
|
118
|
+
children: [/* @__PURE__ */ O("pre", {
|
|
119
119
|
className: j.body,
|
|
120
120
|
"aria-hidden": "true",
|
|
121
121
|
children: zt(l)
|
|
122
|
-
}), /* @__PURE__ */
|
|
122
|
+
}), /* @__PURE__ */ O("textarea", {
|
|
123
123
|
className: j.textarea,
|
|
124
124
|
value: l,
|
|
125
125
|
placeholder: a,
|
|
@@ -134,26 +134,26 @@ var Ft = {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
})]
|
|
137
|
-
}) : /* @__PURE__ */
|
|
137
|
+
}) : /* @__PURE__ */ O("pre", {
|
|
138
138
|
className: j.body,
|
|
139
139
|
children: zt(l)
|
|
140
140
|
});
|
|
141
|
-
return t ? /* @__PURE__ */
|
|
141
|
+
return t ? /* @__PURE__ */ k("div", {
|
|
142
142
|
className: [j.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
143
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ k("div", {
|
|
144
144
|
className: j.header,
|
|
145
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ O("p", {
|
|
146
146
|
className: j.filename,
|
|
147
147
|
children: t
|
|
148
|
-
}), /* @__PURE__ */
|
|
149
|
-
icon: s ?
|
|
148
|
+
}), /* @__PURE__ */ O(pe, {
|
|
149
|
+
icon: s ? Ue : qe,
|
|
150
150
|
variant: "ghost",
|
|
151
151
|
size: "sm",
|
|
152
152
|
"aria-label": s ? "Copied" : "Copy code",
|
|
153
153
|
onClick: d
|
|
154
154
|
})]
|
|
155
155
|
}), p]
|
|
156
|
-
}) : /* @__PURE__ */
|
|
156
|
+
}) : /* @__PURE__ */ O("div", {
|
|
157
157
|
className: [j.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
158
158
|
children: p
|
|
159
159
|
});
|
|
@@ -170,27 +170,27 @@ var Ft = {
|
|
|
170
170
|
currency: "USD"
|
|
171
171
|
}), Ut = ({ categories: e, variant: t = "default", formatAmount: n = Ht, className: r }) => {
|
|
172
172
|
let i = t === "compact", a = Math.max(1, ...e.map((e) => e.amount));
|
|
173
|
-
return /* @__PURE__ */
|
|
173
|
+
return /* @__PURE__ */ O("div", {
|
|
174
174
|
className: [Vt.expenses, r ?? ""].filter(Boolean).join(" "),
|
|
175
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
175
|
+
children: e.map((e, t) => /* @__PURE__ */ k("div", {
|
|
176
176
|
className: Vt.row,
|
|
177
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ k("div", {
|
|
178
178
|
className: Vt.top,
|
|
179
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ k("div", {
|
|
180
180
|
className: Vt.left,
|
|
181
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ O("span", {
|
|
182
182
|
className: Vt.icon,
|
|
183
183
|
"aria-hidden": "true",
|
|
184
184
|
children: e.icon
|
|
185
|
-
}), /* @__PURE__ */
|
|
185
|
+
}), /* @__PURE__ */ O("p", {
|
|
186
186
|
className: Vt.label,
|
|
187
187
|
children: e.label
|
|
188
188
|
})]
|
|
189
|
-
}), /* @__PURE__ */
|
|
189
|
+
}), /* @__PURE__ */ O("p", {
|
|
190
190
|
className: Vt.amount,
|
|
191
191
|
children: n(e.amount)
|
|
192
192
|
})]
|
|
193
|
-
}), !i && /* @__PURE__ */
|
|
193
|
+
}), !i && /* @__PURE__ */ O(ce, {
|
|
194
194
|
value: e.amount / a * 100,
|
|
195
195
|
size: "lg",
|
|
196
196
|
label: `${e.label} spending`
|
|
@@ -205,24 +205,24 @@ var Ft = {
|
|
|
205
205
|
icon: "_icon_49nyi_18",
|
|
206
206
|
message: "_message_49nyi_24"
|
|
207
207
|
}, Gt = 14, Kt = ({ message: e, variant: t = "neutral", className: n }) => {
|
|
208
|
-
let r = t === "warning" ?
|
|
209
|
-
return /* @__PURE__ */
|
|
208
|
+
let r = t === "warning" ? lt : Xe;
|
|
209
|
+
return /* @__PURE__ */ k("div", {
|
|
210
210
|
className: [
|
|
211
211
|
Wt.hint,
|
|
212
212
|
Wt[`hint--${t}`],
|
|
213
213
|
n ?? ""
|
|
214
214
|
].filter(Boolean).join(" "),
|
|
215
215
|
children: [
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ O("span", {
|
|
217
217
|
className: Wt.bar,
|
|
218
218
|
"aria-hidden": "true"
|
|
219
219
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ O(r, {
|
|
221
221
|
size: Gt,
|
|
222
|
-
strokeWidth:
|
|
222
|
+
strokeWidth: E(Gt),
|
|
223
223
|
className: Wt.icon
|
|
224
224
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ O("p", {
|
|
226
226
|
className: Wt.message,
|
|
227
227
|
children: e
|
|
228
228
|
})
|
|
@@ -241,42 +241,42 @@ var Ft = {
|
|
|
241
241
|
title: "_title_mg6gs_65",
|
|
242
242
|
description: "_description_mg6gs_73"
|
|
243
243
|
}, qt = ({ step: e, title: t, description: n, completed: r = !1, orientation: i = "horizontal", isLast: a = !1, className: o }) => {
|
|
244
|
-
let s = i === "vertical", c = /* @__PURE__ */
|
|
244
|
+
let s = i === "vertical", c = /* @__PURE__ */ O("span", {
|
|
245
245
|
className: M.value,
|
|
246
246
|
"aria-hidden": "true",
|
|
247
|
-
children: r ? /* @__PURE__ */
|
|
247
|
+
children: r ? /* @__PURE__ */ O(Ue, {
|
|
248
248
|
size: 14,
|
|
249
|
-
strokeWidth:
|
|
249
|
+
strokeWidth: E(14)
|
|
250
250
|
}) : e
|
|
251
|
-
}), l = /* @__PURE__ */
|
|
251
|
+
}), l = /* @__PURE__ */ k("div", {
|
|
252
252
|
className: M.text,
|
|
253
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ O("p", {
|
|
254
254
|
className: M.title,
|
|
255
255
|
children: t
|
|
256
|
-
}), n && /* @__PURE__ */
|
|
256
|
+
}), n && /* @__PURE__ */ O("p", {
|
|
257
257
|
className: M.description,
|
|
258
258
|
children: n
|
|
259
259
|
})]
|
|
260
260
|
});
|
|
261
|
-
return s ? /* @__PURE__ */
|
|
261
|
+
return s ? /* @__PURE__ */ k("div", {
|
|
262
262
|
className: [
|
|
263
263
|
M.item,
|
|
264
264
|
M["item--vertical"],
|
|
265
265
|
o ?? ""
|
|
266
266
|
].filter(Boolean).join(" "),
|
|
267
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ k("div", {
|
|
268
268
|
className: M.rail,
|
|
269
|
-
children: [c, !a && /* @__PURE__ */
|
|
269
|
+
children: [c, !a && /* @__PURE__ */ O("div", { className: M.connectorVertical })]
|
|
270
270
|
}), l]
|
|
271
|
-
}) : /* @__PURE__ */
|
|
271
|
+
}) : /* @__PURE__ */ k("div", {
|
|
272
272
|
className: [
|
|
273
273
|
M.item,
|
|
274
274
|
M["item--horizontal"],
|
|
275
275
|
o ?? ""
|
|
276
276
|
].filter(Boolean).join(" "),
|
|
277
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ k("div", {
|
|
278
278
|
className: M.topRow,
|
|
279
|
-
children: [c, !a && /* @__PURE__ */
|
|
279
|
+
children: [c, !a && /* @__PURE__ */ O("div", { className: M.connectorHorizontal })]
|
|
280
280
|
}), l]
|
|
281
281
|
});
|
|
282
282
|
}, Jt = {
|
|
@@ -285,23 +285,23 @@ var Ft = {
|
|
|
285
285
|
overline: "_overline_pcfo8_19",
|
|
286
286
|
badge: "_badge_pcfo8_31",
|
|
287
287
|
iconWrap: "_iconWrap_pcfo8_37"
|
|
288
|
-
}, Yt = ({ children: t, label: n, className: r }) => /* @__PURE__ */
|
|
288
|
+
}, Yt = ({ children: t, label: n, className: r }) => /* @__PURE__ */ k("div", {
|
|
289
289
|
className: [Jt.separator, r ?? ""].filter(Boolean).join(" "),
|
|
290
290
|
role: "separator",
|
|
291
291
|
children: [
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
t ?? (n && /* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ O(e, { className: Jt.line }),
|
|
293
|
+
t ?? (n && /* @__PURE__ */ O("span", {
|
|
294
294
|
className: Jt.overline,
|
|
295
295
|
children: n
|
|
296
296
|
})),
|
|
297
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ O(e, { className: Jt.line })
|
|
298
298
|
]
|
|
299
299
|
});
|
|
300
300
|
//#endregion
|
|
301
301
|
//#region src/lib/useChartTokens.ts
|
|
302
302
|
function N(e) {
|
|
303
|
-
let [, t] =
|
|
304
|
-
return
|
|
303
|
+
let [, t] = ze(0);
|
|
304
|
+
return Re(() => {
|
|
305
305
|
if (typeof document > "u") return;
|
|
306
306
|
t((e) => e + 1);
|
|
307
307
|
let n = new MutationObserver(() => t((e) => e + 1)), r = /* @__PURE__ */ new Set([document.documentElement]);
|
|
@@ -332,23 +332,23 @@ var Xt = [
|
|
|
332
332
|
dot: "_dot_ic16u_34",
|
|
333
333
|
label: "_label_ic16u_41",
|
|
334
334
|
value: "_value_ic16u_42"
|
|
335
|
-
}, Qt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */
|
|
335
|
+
}, Qt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ k("div", {
|
|
336
336
|
className: Zt.tooltip,
|
|
337
|
-
children: [n !== void 0 && n !== "" && /* @__PURE__ */
|
|
337
|
+
children: [n !== void 0 && n !== "" && /* @__PURE__ */ O("span", {
|
|
338
338
|
className: Zt.title,
|
|
339
339
|
children: n
|
|
340
|
-
}), t.map((e, t) => /* @__PURE__ */
|
|
340
|
+
}), t.map((e, t) => /* @__PURE__ */ k("div", {
|
|
341
341
|
className: Zt.row,
|
|
342
342
|
children: [
|
|
343
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ O("span", {
|
|
344
344
|
className: Zt.dot,
|
|
345
345
|
style: { background: e.color ?? e.payload?.fill ?? e.fill }
|
|
346
346
|
}),
|
|
347
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ O("span", {
|
|
348
348
|
className: Zt.label,
|
|
349
349
|
children: e.name
|
|
350
350
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ O("span", {
|
|
352
352
|
className: Zt.value,
|
|
353
353
|
children: r ? r(e.value, e.name) : e.value
|
|
354
354
|
})
|
|
@@ -369,7 +369,7 @@ var Xt = [
|
|
|
369
369
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
370
370
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
371
371
|
}, nn = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
|
|
372
|
-
let [a, o] =
|
|
372
|
+
let [a, o] = D.useState(null), [s, c] = D.useState(null), l = D.useRef(null), u = N(l), d = u("--color-chart-2") ?? "#5b92dd", f = u("--color-chart-5") ?? "#dca84f", p = u("--color-chart-1") ?? "#ff4700", m = [
|
|
373
373
|
1,
|
|
374
374
|
2,
|
|
375
375
|
3,
|
|
@@ -382,25 +382,25 @@ var Xt = [
|
|
|
382
382
|
0,
|
|
383
383
|
b / 2,
|
|
384
384
|
b
|
|
385
|
-
], S = /* @__PURE__ */
|
|
385
|
+
], S = /* @__PURE__ */ O(Mt, {
|
|
386
386
|
cursor: !1,
|
|
387
|
-
content: /* @__PURE__ */
|
|
387
|
+
content: /* @__PURE__ */ O(Qt, {}),
|
|
388
388
|
wrapperStyle: { zIndex: 50 },
|
|
389
389
|
position: s ? { y: s.y } : void 0
|
|
390
|
-
}), C = (n) => t === "active" ? m[n % m.length] : t === "negative" && e[n].value < 0 ? p : d, w = (e) => a !== null && e !== a ? .45 : 1,
|
|
390
|
+
}), C = (n) => t === "active" ? m[n % m.length] : t === "negative" && e[n].value < 0 ? p : d, w = (e) => a !== null && e !== a ? .45 : 1, ee = (e, t, n, r, i, a) => ({
|
|
391
391
|
x: e ? t + r : t + r / 2,
|
|
392
392
|
y: e ? n + i / 2 : a < 0 ? n + i : n
|
|
393
|
-
}),
|
|
394
|
-
let { x: i, y: a, width: o, height: s, fill: c, radius: l } = r, u = Number(e[r.index]?.[n] ?? 0), { x: f, y: p } =
|
|
395
|
-
return t === "stacked" && n === "value" ? /* @__PURE__ */
|
|
393
|
+
}), te = (n) => (r) => {
|
|
394
|
+
let { x: i, y: a, width: o, height: s, fill: c, radius: l } = r, u = Number(e[r.index]?.[n] ?? 0), { x: f, y: p } = ee(t === "horizontal", i, a, o, s, u);
|
|
395
|
+
return t === "stacked" && n === "value" ? /* @__PURE__ */ O(At, {
|
|
396
396
|
x: i,
|
|
397
397
|
y: a,
|
|
398
398
|
width: o,
|
|
399
399
|
height: s,
|
|
400
400
|
fill: c,
|
|
401
401
|
radius: l
|
|
402
|
-
}) : /* @__PURE__ */
|
|
403
|
-
/* @__PURE__ */
|
|
402
|
+
}) : /* @__PURE__ */ k("g", { children: [
|
|
403
|
+
/* @__PURE__ */ O(At, {
|
|
404
404
|
x: i,
|
|
405
405
|
y: a,
|
|
406
406
|
width: o,
|
|
@@ -408,7 +408,7 @@ var Xt = [
|
|
|
408
408
|
fill: c,
|
|
409
409
|
radius: l
|
|
410
410
|
}),
|
|
411
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ O("circle", {
|
|
412
412
|
cx: f,
|
|
413
413
|
cy: p,
|
|
414
414
|
r: 4,
|
|
@@ -416,7 +416,7 @@ var Xt = [
|
|
|
416
416
|
stroke: y,
|
|
417
417
|
strokeWidth: 1.5
|
|
418
418
|
}),
|
|
419
|
-
t === "stacked" && n === "value2" && /* @__PURE__ */
|
|
419
|
+
t === "stacked" && n === "value2" && /* @__PURE__ */ O("circle", {
|
|
420
420
|
cx: i + o / 2,
|
|
421
421
|
cy: a + s,
|
|
422
422
|
r: 4,
|
|
@@ -425,20 +425,20 @@ var Xt = [
|
|
|
425
425
|
strokeWidth: 1.5
|
|
426
426
|
})
|
|
427
427
|
] });
|
|
428
|
-
},
|
|
428
|
+
}, ne = (n) => (r, i) => {
|
|
429
429
|
o(i);
|
|
430
430
|
let a = Number(e[i]?.[n] ?? 0);
|
|
431
|
-
c(
|
|
432
|
-
},
|
|
431
|
+
c(ee(t === "horizontal", r.x, r.y, r.width, r.height, a));
|
|
432
|
+
}, re = () => {
|
|
433
433
|
o(null), c(null);
|
|
434
434
|
};
|
|
435
|
-
return /* @__PURE__ */
|
|
435
|
+
return /* @__PURE__ */ O("div", {
|
|
436
436
|
ref: l,
|
|
437
437
|
className: [$t.chart, i ?? ""].filter(Boolean).join(" "),
|
|
438
|
-
children: /* @__PURE__ */
|
|
438
|
+
children: /* @__PURE__ */ O(A, {
|
|
439
439
|
width: "100%",
|
|
440
440
|
height: en[n],
|
|
441
|
-
children: /* @__PURE__ */
|
|
441
|
+
children: /* @__PURE__ */ k(ht, {
|
|
442
442
|
data: e,
|
|
443
443
|
layout: t === "horizontal" ? "vertical" : "horizontal",
|
|
444
444
|
margin: {
|
|
@@ -448,19 +448,19 @@ var Xt = [
|
|
|
448
448
|
left: t === "horizontal" ? 8 : 0
|
|
449
449
|
},
|
|
450
450
|
children: [
|
|
451
|
-
/* @__PURE__ */
|
|
451
|
+
/* @__PURE__ */ O(gt, {
|
|
452
452
|
strokeDasharray: "3 3",
|
|
453
453
|
stroke: h,
|
|
454
454
|
horizontal: !0,
|
|
455
455
|
vertical: t === "horizontal"
|
|
456
456
|
}),
|
|
457
|
-
t === "horizontal" ? /* @__PURE__ */
|
|
457
|
+
t === "horizontal" ? /* @__PURE__ */ k(Be, { children: [/* @__PURE__ */ O(Nt, {
|
|
458
458
|
type: "number",
|
|
459
459
|
stroke: g,
|
|
460
460
|
fontSize: 12,
|
|
461
461
|
tickLine: !1,
|
|
462
462
|
axisLine: !1
|
|
463
|
-
}), /* @__PURE__ */
|
|
463
|
+
}), /* @__PURE__ */ O(Pt, {
|
|
464
464
|
type: "category",
|
|
465
465
|
dataKey: "label",
|
|
466
466
|
stroke: g,
|
|
@@ -468,7 +468,7 @@ var Xt = [
|
|
|
468
468
|
tickLine: !1,
|
|
469
469
|
axisLine: !1,
|
|
470
470
|
width: 64
|
|
471
|
-
})] }) : /* @__PURE__ */
|
|
471
|
+
})] }) : /* @__PURE__ */ O(Nt, {
|
|
472
472
|
dataKey: "label",
|
|
473
473
|
stroke: g,
|
|
474
474
|
fontSize: 12,
|
|
@@ -476,26 +476,26 @@ var Xt = [
|
|
|
476
476
|
axisLine: !1,
|
|
477
477
|
interval: 0
|
|
478
478
|
}),
|
|
479
|
-
t === "negative" && /* @__PURE__ */
|
|
479
|
+
t === "negative" && /* @__PURE__ */ O(Pt, {
|
|
480
480
|
hide: !0,
|
|
481
481
|
domain: [-b, b],
|
|
482
482
|
ticks: x
|
|
483
483
|
}),
|
|
484
484
|
S,
|
|
485
|
-
_ && /* @__PURE__ */
|
|
485
|
+
_ && /* @__PURE__ */ O(vt, { content: (e) => /* @__PURE__ */ O("ul", {
|
|
486
486
|
className: $t.legend,
|
|
487
|
-
children: e.payload?.map((e) => /* @__PURE__ */
|
|
487
|
+
children: e.payload?.map((e) => /* @__PURE__ */ k("li", {
|
|
488
488
|
className: $t.legendItem,
|
|
489
|
-
children: [/* @__PURE__ */
|
|
489
|
+
children: [/* @__PURE__ */ O("span", {
|
|
490
490
|
className: $t.legendSwatch,
|
|
491
491
|
style: { background: e.color }
|
|
492
|
-
}), /* @__PURE__ */
|
|
492
|
+
}), /* @__PURE__ */ O("span", {
|
|
493
493
|
style: { color: e.color },
|
|
494
494
|
children: e.value
|
|
495
495
|
})]
|
|
496
496
|
}, e.value))
|
|
497
497
|
}) }),
|
|
498
|
-
_ ? /* @__PURE__ */
|
|
498
|
+
_ ? /* @__PURE__ */ k(Be, { children: [/* @__PURE__ */ O(mt, {
|
|
499
499
|
dataKey: "value",
|
|
500
500
|
name: r[0] ?? "Value",
|
|
501
501
|
fill: d,
|
|
@@ -512,14 +512,14 @@ var Xt = [
|
|
|
512
512
|
P
|
|
513
513
|
],
|
|
514
514
|
isAnimationActive: !1,
|
|
515
|
-
activeBar:
|
|
516
|
-
onMouseEnter:
|
|
517
|
-
onMouseLeave:
|
|
518
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
515
|
+
activeBar: te("value"),
|
|
516
|
+
onMouseEnter: ne("value"),
|
|
517
|
+
onMouseLeave: re,
|
|
518
|
+
children: e.map((e, t) => /* @__PURE__ */ O(_t, {
|
|
519
519
|
fill: d,
|
|
520
520
|
fillOpacity: a !== null && t !== a ? .45 : 1
|
|
521
521
|
}, t))
|
|
522
|
-
}), v && /* @__PURE__ */
|
|
522
|
+
}), v && /* @__PURE__ */ O(mt, {
|
|
523
523
|
dataKey: "value2",
|
|
524
524
|
name: r[1] ?? "Value 2",
|
|
525
525
|
fill: f,
|
|
@@ -536,14 +536,14 @@ var Xt = [
|
|
|
536
536
|
P
|
|
537
537
|
],
|
|
538
538
|
isAnimationActive: !1,
|
|
539
|
-
activeBar:
|
|
540
|
-
onMouseEnter:
|
|
541
|
-
onMouseLeave:
|
|
542
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
539
|
+
activeBar: te("value2"),
|
|
540
|
+
onMouseEnter: ne("value2"),
|
|
541
|
+
onMouseLeave: re,
|
|
542
|
+
children: e.map((e, t) => /* @__PURE__ */ O(_t, {
|
|
543
543
|
fill: f,
|
|
544
544
|
fillOpacity: a !== null && t !== a ? .45 : 1
|
|
545
545
|
}, t))
|
|
546
|
-
})] }) : /* @__PURE__ */
|
|
546
|
+
})] }) : /* @__PURE__ */ O(mt, {
|
|
547
547
|
dataKey: "value",
|
|
548
548
|
name: "Value",
|
|
549
549
|
fill: a === null ? d : C(a),
|
|
@@ -554,10 +554,10 @@ var Xt = [
|
|
|
554
554
|
P
|
|
555
555
|
],
|
|
556
556
|
isAnimationActive: !1,
|
|
557
|
-
activeBar:
|
|
558
|
-
onMouseEnter:
|
|
559
|
-
onMouseLeave:
|
|
560
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
557
|
+
activeBar: te("value"),
|
|
558
|
+
onMouseEnter: ne("value"),
|
|
559
|
+
onMouseLeave: re,
|
|
560
|
+
children: e.map((e, t) => /* @__PURE__ */ O(_t, {
|
|
561
561
|
fill: C(t),
|
|
562
562
|
fillOpacity: w(t)
|
|
563
563
|
}, t))
|
|
@@ -596,104 +596,104 @@ var Xt = [
|
|
|
596
596
|
style: "currency",
|
|
597
597
|
currency: "USD"
|
|
598
598
|
}), an = ({ logo: e, symbol: t, name: n, price: r, change: i, formatAmount: a = rn, chart: o, periodLabel: s = "Last 6 months", onPeriodClick: c, className: l }) => {
|
|
599
|
-
let u = i.amount >= 0, d = u ?
|
|
600
|
-
return o ? /* @__PURE__ */
|
|
599
|
+
let u = i.amount >= 0, d = u ? ct : st, f = u ? "+" : "-", p = `${f}${a(i.amount)} (${f}${Math.abs(i.percent)}%)`, m = u ? F.trendUp : F.trendDown;
|
|
600
|
+
return o ? /* @__PURE__ */ k("div", {
|
|
601
601
|
className: [F.card, l ?? ""].filter(Boolean).join(" "),
|
|
602
602
|
children: [
|
|
603
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ k("div", {
|
|
604
604
|
className: F.header,
|
|
605
|
-
children: [/* @__PURE__ */
|
|
605
|
+
children: [/* @__PURE__ */ O(He, {
|
|
606
606
|
size: 16,
|
|
607
|
-
strokeWidth:
|
|
607
|
+
strokeWidth: E(16),
|
|
608
608
|
className: F.headerIcon
|
|
609
|
-
}), /* @__PURE__ */
|
|
609
|
+
}), /* @__PURE__ */ O("span", {
|
|
610
610
|
className: F.headerLabel,
|
|
611
611
|
children: "Stock market"
|
|
612
612
|
})]
|
|
613
613
|
}),
|
|
614
|
-
/* @__PURE__ */
|
|
614
|
+
/* @__PURE__ */ k("div", {
|
|
615
615
|
className: F.tickerRow,
|
|
616
|
-
children: [/* @__PURE__ */
|
|
616
|
+
children: [/* @__PURE__ */ O("span", {
|
|
617
617
|
className: F.logoLg,
|
|
618
618
|
"aria-hidden": "true",
|
|
619
619
|
children: e
|
|
620
|
-
}), /* @__PURE__ */
|
|
620
|
+
}), /* @__PURE__ */ k("div", {
|
|
621
621
|
className: F.text,
|
|
622
|
-
children: [/* @__PURE__ */
|
|
622
|
+
children: [/* @__PURE__ */ O("p", {
|
|
623
623
|
className: F.symbol,
|
|
624
624
|
children: t
|
|
625
|
-
}), /* @__PURE__ */
|
|
625
|
+
}), /* @__PURE__ */ O("p", {
|
|
626
626
|
className: F.name,
|
|
627
627
|
children: n
|
|
628
628
|
})]
|
|
629
629
|
})]
|
|
630
630
|
}),
|
|
631
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ k("div", {
|
|
632
632
|
className: F.body,
|
|
633
|
-
children: [/* @__PURE__ */
|
|
633
|
+
children: [/* @__PURE__ */ k("div", {
|
|
634
634
|
className: F.priceRow,
|
|
635
|
-
children: [/* @__PURE__ */
|
|
635
|
+
children: [/* @__PURE__ */ k("div", {
|
|
636
636
|
className: F.priceGroup,
|
|
637
|
-
children: [/* @__PURE__ */
|
|
637
|
+
children: [/* @__PURE__ */ O("p", {
|
|
638
638
|
className: F.priceLg,
|
|
639
639
|
children: a(r)
|
|
640
|
-
}), /* @__PURE__ */
|
|
640
|
+
}), /* @__PURE__ */ k("div", {
|
|
641
641
|
className: F.changeRowLg,
|
|
642
|
-
children: [/* @__PURE__ */
|
|
642
|
+
children: [/* @__PURE__ */ O(d, {
|
|
643
643
|
size: 24,
|
|
644
|
-
strokeWidth:
|
|
644
|
+
strokeWidth: E(24),
|
|
645
645
|
className: m
|
|
646
|
-
}), /* @__PURE__ */
|
|
646
|
+
}), /* @__PURE__ */ O("span", {
|
|
647
647
|
className: [F.changeTextLg, m].join(" "),
|
|
648
648
|
children: p
|
|
649
649
|
})]
|
|
650
650
|
})]
|
|
651
|
-
}), /* @__PURE__ */
|
|
651
|
+
}), /* @__PURE__ */ O(Ee, {
|
|
652
652
|
variant: "outline",
|
|
653
653
|
size: "sm",
|
|
654
|
-
rightIcon: /* @__PURE__ */
|
|
654
|
+
rightIcon: /* @__PURE__ */ O(We, {
|
|
655
655
|
size: 16,
|
|
656
|
-
strokeWidth:
|
|
656
|
+
strokeWidth: E(16)
|
|
657
657
|
}),
|
|
658
658
|
onClick: c,
|
|
659
659
|
children: s
|
|
660
660
|
})]
|
|
661
|
-
}), /* @__PURE__ */
|
|
661
|
+
}), /* @__PURE__ */ O(nn, {
|
|
662
662
|
data: o,
|
|
663
663
|
className: F.chart
|
|
664
664
|
})]
|
|
665
665
|
})
|
|
666
666
|
]
|
|
667
|
-
}) : /* @__PURE__ */
|
|
667
|
+
}) : /* @__PURE__ */ k("div", {
|
|
668
668
|
className: [F.row, l ?? ""].filter(Boolean).join(" "),
|
|
669
|
-
children: [/* @__PURE__ */
|
|
669
|
+
children: [/* @__PURE__ */ k("div", {
|
|
670
670
|
className: F.left,
|
|
671
|
-
children: [/* @__PURE__ */
|
|
671
|
+
children: [/* @__PURE__ */ O("span", {
|
|
672
672
|
className: F.logo,
|
|
673
673
|
"aria-hidden": "true",
|
|
674
674
|
children: e
|
|
675
|
-
}), /* @__PURE__ */
|
|
675
|
+
}), /* @__PURE__ */ k("div", {
|
|
676
676
|
className: F.text,
|
|
677
|
-
children: [/* @__PURE__ */
|
|
677
|
+
children: [/* @__PURE__ */ O("p", {
|
|
678
678
|
className: F.symbol,
|
|
679
679
|
children: t
|
|
680
|
-
}), /* @__PURE__ */
|
|
680
|
+
}), /* @__PURE__ */ O("p", {
|
|
681
681
|
className: F.name,
|
|
682
682
|
children: n
|
|
683
683
|
})]
|
|
684
684
|
})]
|
|
685
|
-
}), /* @__PURE__ */
|
|
685
|
+
}), /* @__PURE__ */ k("div", {
|
|
686
686
|
className: F.right,
|
|
687
|
-
children: [/* @__PURE__ */
|
|
687
|
+
children: [/* @__PURE__ */ O("p", {
|
|
688
688
|
className: F.price,
|
|
689
689
|
children: a(r)
|
|
690
|
-
}), /* @__PURE__ */
|
|
690
|
+
}), /* @__PURE__ */ k("div", {
|
|
691
691
|
className: F.changeRow,
|
|
692
|
-
children: [/* @__PURE__ */
|
|
692
|
+
children: [/* @__PURE__ */ O(d, {
|
|
693
693
|
size: 20,
|
|
694
|
-
strokeWidth:
|
|
694
|
+
strokeWidth: E(20),
|
|
695
695
|
className: m
|
|
696
|
-
}), /* @__PURE__ */
|
|
696
|
+
}), /* @__PURE__ */ O("span", {
|
|
697
697
|
className: [F.changeText, m].join(" "),
|
|
698
698
|
children: p
|
|
699
699
|
})]
|
|
@@ -703,17 +703,17 @@ var Xt = [
|
|
|
703
703
|
}, on = {
|
|
704
704
|
tags: "_tags_acsad_1",
|
|
705
705
|
remove: "_remove_acsad_8"
|
|
706
|
-
}, sn = ({ tags: e, onRemove: t, className: n }) => /* @__PURE__ */
|
|
706
|
+
}, sn = ({ tags: e, onRemove: t, className: n }) => /* @__PURE__ */ O("div", {
|
|
707
707
|
className: [on.tags, n ?? ""].filter(Boolean).join(" "),
|
|
708
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
709
|
-
rightIcon: t && /* @__PURE__ */
|
|
708
|
+
children: e.map((e, n) => /* @__PURE__ */ O(u, {
|
|
709
|
+
rightIcon: t && /* @__PURE__ */ O("button", {
|
|
710
710
|
type: "button",
|
|
711
711
|
className: on.remove,
|
|
712
712
|
onClick: () => t(e, n),
|
|
713
713
|
"aria-label": `Remove ${e}`,
|
|
714
|
-
children: /* @__PURE__ */
|
|
714
|
+
children: /* @__PURE__ */ O(dt, {
|
|
715
715
|
size: 12,
|
|
716
|
-
strokeWidth:
|
|
716
|
+
strokeWidth: E(12)
|
|
717
717
|
})
|
|
718
718
|
}),
|
|
719
719
|
children: e
|
|
@@ -730,24 +730,24 @@ var Xt = [
|
|
|
730
730
|
trendDown: "_trendDown_6xnxy_58",
|
|
731
731
|
fadeLeft: "_fadeLeft_6xnxy_60",
|
|
732
732
|
fadeRight: "_fadeRight_6xnxy_61"
|
|
733
|
-
}, cn = (e) => `${e >= 0 ? "+" : ""}${e}%`, ln = ({ items: e, formatChange: t, ariaHidden: n }) => /* @__PURE__ */
|
|
733
|
+
}, cn = (e) => `${e >= 0 ? "+" : ""}${e}%`, ln = ({ items: e, formatChange: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
|
|
734
734
|
className: I.row,
|
|
735
735
|
"aria-hidden": n,
|
|
736
736
|
children: e.map((e, n) => {
|
|
737
|
-
let r = e.changePercent >= 0, i = r ?
|
|
738
|
-
return /* @__PURE__ */
|
|
737
|
+
let r = e.changePercent >= 0, i = r ? ct : st, a = r ? I.trendUp : I.trendDown;
|
|
738
|
+
return /* @__PURE__ */ k("div", {
|
|
739
739
|
className: I.item,
|
|
740
740
|
children: [
|
|
741
|
-
/* @__PURE__ */
|
|
741
|
+
/* @__PURE__ */ O("span", {
|
|
742
742
|
className: I.symbol,
|
|
743
743
|
children: e.symbol
|
|
744
744
|
}),
|
|
745
|
-
/* @__PURE__ */
|
|
745
|
+
/* @__PURE__ */ O(i, {
|
|
746
746
|
size: 14,
|
|
747
|
-
strokeWidth:
|
|
747
|
+
strokeWidth: E(14),
|
|
748
748
|
className: a
|
|
749
749
|
}),
|
|
750
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ O("span", {
|
|
751
751
|
className: [I.change, a].join(" "),
|
|
752
752
|
children: t(e.changePercent)
|
|
753
753
|
})
|
|
@@ -755,8 +755,8 @@ var Xt = [
|
|
|
755
755
|
}, `${e.symbol}-${n}`);
|
|
756
756
|
})
|
|
757
757
|
}), un = ({ items: e, speed: t = 40, formatChange: n = cn, className: r }) => {
|
|
758
|
-
let i =
|
|
759
|
-
return
|
|
758
|
+
let i = D.useRef(null), [a, o] = D.useState(20);
|
|
759
|
+
return D.useEffect(() => {
|
|
760
760
|
let e = i.current;
|
|
761
761
|
if (!e) return;
|
|
762
762
|
let n = e.firstElementChild;
|
|
@@ -768,27 +768,27 @@ var Xt = [
|
|
|
768
768
|
r();
|
|
769
769
|
let a = new ResizeObserver(r);
|
|
770
770
|
return a.observe(n), () => a.disconnect();
|
|
771
|
-
}, [e, t]), /* @__PURE__ */
|
|
771
|
+
}, [e, t]), /* @__PURE__ */ k("div", {
|
|
772
772
|
className: [I.ticker, r ?? ""].filter(Boolean).join(" "),
|
|
773
773
|
children: [
|
|
774
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ k("div", {
|
|
775
775
|
ref: i,
|
|
776
776
|
className: I.track,
|
|
777
777
|
style: { "--ticker-duration": `${a}s` },
|
|
778
|
-
children: [/* @__PURE__ */
|
|
778
|
+
children: [/* @__PURE__ */ O(ln, {
|
|
779
779
|
items: e,
|
|
780
780
|
formatChange: n
|
|
781
|
-
}), /* @__PURE__ */
|
|
781
|
+
}), /* @__PURE__ */ O(ln, {
|
|
782
782
|
items: e,
|
|
783
783
|
formatChange: n,
|
|
784
784
|
ariaHidden: !0
|
|
785
785
|
})]
|
|
786
786
|
}),
|
|
787
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ O("div", {
|
|
788
788
|
className: I.fadeLeft,
|
|
789
789
|
"aria-hidden": "true"
|
|
790
790
|
}),
|
|
791
|
-
/* @__PURE__ */
|
|
791
|
+
/* @__PURE__ */ O("div", {
|
|
792
792
|
className: I.fadeRight,
|
|
793
793
|
"aria-hidden": "true"
|
|
794
794
|
})
|
|
@@ -813,46 +813,46 @@ var Xt = [
|
|
|
813
813
|
}, dn = (e) => `${e >= 0 ? "+" : "-"}${Math.abs(e).toLocaleString("en-US", {
|
|
814
814
|
style: "currency",
|
|
815
815
|
currency: "USD"
|
|
816
|
-
})}`, fn = ({ transactions: e, formatAmount: t = dn, emptyTitle: n = "No transactions yet", emptyDescription: r = "Your activity will show up here.", className: i }) => e.length === 0 ? /* @__PURE__ */
|
|
816
|
+
})}`, fn = ({ transactions: e, formatAmount: t = dn, emptyTitle: n = "No transactions yet", emptyDescription: r = "Your activity will show up here.", className: i }) => e.length === 0 ? /* @__PURE__ */ k("div", {
|
|
817
817
|
className: [L.empty, i ?? ""].filter(Boolean).join(" "),
|
|
818
818
|
children: [
|
|
819
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ O(it, {
|
|
820
820
|
size: 24,
|
|
821
|
-
strokeWidth:
|
|
821
|
+
strokeWidth: E(24),
|
|
822
822
|
className: L.emptyIcon
|
|
823
823
|
}),
|
|
824
|
-
/* @__PURE__ */
|
|
824
|
+
/* @__PURE__ */ O("p", {
|
|
825
825
|
className: L.emptyTitle,
|
|
826
826
|
children: n
|
|
827
827
|
}),
|
|
828
|
-
/* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ O("p", {
|
|
829
829
|
className: L.emptyDesc,
|
|
830
830
|
children: r
|
|
831
831
|
})
|
|
832
832
|
]
|
|
833
|
-
}) : /* @__PURE__ */
|
|
833
|
+
}) : /* @__PURE__ */ O("div", {
|
|
834
834
|
className: [L.list, i ?? ""].filter(Boolean).join(" "),
|
|
835
835
|
children: e.map((n, r) => {
|
|
836
836
|
let i = n.amount >= 0;
|
|
837
|
-
return /* @__PURE__ */
|
|
837
|
+
return /* @__PURE__ */ k("div", {
|
|
838
838
|
className: [L.row, r === e.length - 1 ? L.rowLast : ""].filter(Boolean).join(" "),
|
|
839
|
-
children: [/* @__PURE__ */
|
|
839
|
+
children: [/* @__PURE__ */ k("div", {
|
|
840
840
|
className: L.left,
|
|
841
|
-
children: [/* @__PURE__ */
|
|
841
|
+
children: [/* @__PURE__ */ O("span", {
|
|
842
842
|
className: L.iconWrap,
|
|
843
843
|
"aria-hidden": "true",
|
|
844
844
|
children: n.icon
|
|
845
|
-
}), /* @__PURE__ */
|
|
845
|
+
}), /* @__PURE__ */ k("div", {
|
|
846
846
|
className: L.info,
|
|
847
|
-
children: [/* @__PURE__ */
|
|
847
|
+
children: [/* @__PURE__ */ O("p", {
|
|
848
848
|
className: L.name,
|
|
849
849
|
children: n.name
|
|
850
|
-
}), /* @__PURE__ */
|
|
850
|
+
}), /* @__PURE__ */ O("p", {
|
|
851
851
|
className: L.category,
|
|
852
852
|
children: n.category
|
|
853
853
|
})]
|
|
854
854
|
})]
|
|
855
|
-
}), /* @__PURE__ */
|
|
855
|
+
}), /* @__PURE__ */ O("p", {
|
|
856
856
|
className: [L.amount, i ? L.amountUp : L.amountDown].join(" "),
|
|
857
857
|
children: t(n.amount)
|
|
858
858
|
})]
|
|
@@ -874,54 +874,54 @@ var Xt = [
|
|
|
874
874
|
authorName: "_authorName_19qxp_91"
|
|
875
875
|
}, pn = ({ quote: t, author: n, className: r }) => {
|
|
876
876
|
let i = !!n;
|
|
877
|
-
return /* @__PURE__ */
|
|
877
|
+
return /* @__PURE__ */ k("div", {
|
|
878
878
|
className: [
|
|
879
879
|
R.root,
|
|
880
880
|
i ? R.rootAttributed : R.rootSimple,
|
|
881
881
|
r ?? ""
|
|
882
882
|
].filter(Boolean).join(" "),
|
|
883
|
-
children: [/* @__PURE__ */
|
|
883
|
+
children: [/* @__PURE__ */ O(e, {
|
|
884
884
|
orientation: "vertical",
|
|
885
885
|
className: R.rail
|
|
886
|
-
}), /* @__PURE__ */
|
|
886
|
+
}), /* @__PURE__ */ k("div", {
|
|
887
887
|
className: R.body,
|
|
888
888
|
children: [
|
|
889
|
-
i && /* @__PURE__ */
|
|
889
|
+
i && /* @__PURE__ */ O("span", {
|
|
890
890
|
className: R.markRow,
|
|
891
891
|
"aria-hidden": "true",
|
|
892
|
-
children: /* @__PURE__ */
|
|
892
|
+
children: /* @__PURE__ */ O(rt, {
|
|
893
893
|
size: 12,
|
|
894
|
-
strokeWidth:
|
|
894
|
+
strokeWidth: E(12),
|
|
895
895
|
className: R.mark,
|
|
896
896
|
fill: "currentColor"
|
|
897
897
|
})
|
|
898
898
|
}),
|
|
899
|
-
/* @__PURE__ */
|
|
899
|
+
/* @__PURE__ */ O("p", {
|
|
900
900
|
className: i ? R.quoteAttributed : R.quoteSimple,
|
|
901
901
|
children: i ? t : `"${t}"`
|
|
902
902
|
}),
|
|
903
|
-
i && /* @__PURE__ */
|
|
903
|
+
i && /* @__PURE__ */ O("span", {
|
|
904
904
|
className: [R.markRow, R.markRowEnd].join(" "),
|
|
905
905
|
"aria-hidden": "true",
|
|
906
|
-
children: /* @__PURE__ */
|
|
906
|
+
children: /* @__PURE__ */ O(rt, {
|
|
907
907
|
size: 12,
|
|
908
|
-
strokeWidth:
|
|
908
|
+
strokeWidth: E(12),
|
|
909
909
|
className: R.mark,
|
|
910
910
|
fill: "currentColor"
|
|
911
911
|
})
|
|
912
912
|
}),
|
|
913
|
-
n && /* @__PURE__ */
|
|
913
|
+
n && /* @__PURE__ */ k("div", {
|
|
914
914
|
className: R.author,
|
|
915
|
-
children: [/* @__PURE__ */
|
|
915
|
+
children: [/* @__PURE__ */ O(oe, {
|
|
916
916
|
size: "sm",
|
|
917
917
|
src: n.avatarSrc,
|
|
918
918
|
alt: n.avatarAlt ?? n.name
|
|
919
|
-
}), /* @__PURE__ */
|
|
919
|
+
}), /* @__PURE__ */ k("p", {
|
|
920
920
|
className: R.authorText,
|
|
921
|
-
children: [/* @__PURE__ */
|
|
921
|
+
children: [/* @__PURE__ */ O("span", {
|
|
922
922
|
className: R.authorName,
|
|
923
923
|
children: n.name
|
|
924
|
-
}), /* @__PURE__ */
|
|
924
|
+
}), /* @__PURE__ */ k("span", {
|
|
925
925
|
className: R.authorRole,
|
|
926
926
|
children: [", ", n.role]
|
|
927
927
|
})]
|
|
@@ -937,16 +937,16 @@ var Xt = [
|
|
|
937
937
|
ruleLeft: "_ruleLeft_btuyr_24",
|
|
938
938
|
ruleTop: "_ruleTop_btuyr_31",
|
|
939
939
|
text: "_text_btuyr_39"
|
|
940
|
-
}, hn = ({ text: e, align: t = "left", className: n }) => /* @__PURE__ */
|
|
940
|
+
}, hn = ({ text: e, align: t = "left", className: n }) => /* @__PURE__ */ k("div", {
|
|
941
941
|
className: [
|
|
942
942
|
mn.root,
|
|
943
943
|
t === "top" ? mn.rootTop : mn.rootLeft,
|
|
944
944
|
n ?? ""
|
|
945
945
|
].filter(Boolean).join(" "),
|
|
946
|
-
children: [/* @__PURE__ */
|
|
946
|
+
children: [/* @__PURE__ */ O("span", {
|
|
947
947
|
className: t === "top" ? mn.ruleTop : mn.ruleLeft,
|
|
948
948
|
"aria-hidden": "true"
|
|
949
|
-
}), /* @__PURE__ */
|
|
949
|
+
}), /* @__PURE__ */ O("p", {
|
|
950
950
|
className: mn.text,
|
|
951
951
|
children: e
|
|
952
952
|
})]
|
|
@@ -957,24 +957,24 @@ var Xt = [
|
|
|
957
957
|
"root--small": "_root--small_awxwk_33",
|
|
958
958
|
image: "_image_awxwk_10",
|
|
959
959
|
caption: "_caption_awxwk_47"
|
|
960
|
-
}, _n = ({ src: e, alt: t = "", size: n = "large", caption: r, className: i }) => /* @__PURE__ */
|
|
960
|
+
}, _n = ({ src: e, alt: t = "", size: n = "large", caption: r, className: i }) => /* @__PURE__ */ k("figure", {
|
|
961
961
|
className: [
|
|
962
962
|
gn.root,
|
|
963
963
|
gn[`root--${n}`],
|
|
964
964
|
i ?? ""
|
|
965
965
|
].filter(Boolean).join(" "),
|
|
966
|
-
children: [/* @__PURE__ */
|
|
966
|
+
children: [/* @__PURE__ */ O("span", {
|
|
967
967
|
className: gn.imageWrap,
|
|
968
|
-
children: /* @__PURE__ */
|
|
968
|
+
children: /* @__PURE__ */ O("img", {
|
|
969
969
|
src: e,
|
|
970
970
|
alt: t,
|
|
971
971
|
className: gn.image
|
|
972
972
|
})
|
|
973
|
-
}), r && /* @__PURE__ */
|
|
973
|
+
}), r && /* @__PURE__ */ O("figcaption", {
|
|
974
974
|
className: gn.caption,
|
|
975
975
|
children: r
|
|
976
976
|
})]
|
|
977
|
-
}),
|
|
977
|
+
}), vn = {
|
|
978
978
|
root: "_root_uc5r9_1",
|
|
979
979
|
rootCenter: "_rootCenter_uc5r9_10",
|
|
980
980
|
rootLeft: "_rootLeft_uc5r9_15",
|
|
@@ -983,107 +983,107 @@ var Xt = [
|
|
|
983
983
|
ctaRow: "_ctaRow_uc5r9_39",
|
|
984
984
|
avatarBlock: "_avatarBlock_uc5r9_45",
|
|
985
985
|
avatarsCaption: "_avatarsCaption_uc5r9_57"
|
|
986
|
-
},
|
|
986
|
+
}, yn = ({ title: e, description: t, badgeLabel: n, primaryCta: r, secondaryCta: i, avatars: a, avatarsCaption: o, align: s = "center", className: c }) => {
|
|
987
987
|
let l = !!(r || i), d = !!(a && a.length > 0);
|
|
988
|
-
return /* @__PURE__ */
|
|
988
|
+
return /* @__PURE__ */ k("div", {
|
|
989
989
|
className: [
|
|
990
|
-
|
|
991
|
-
s === "left" ?
|
|
990
|
+
vn.root,
|
|
991
|
+
s === "left" ? vn.rootLeft : vn.rootCenter,
|
|
992
992
|
c ?? ""
|
|
993
993
|
].filter(Boolean).join(" "),
|
|
994
994
|
children: [
|
|
995
|
-
n && /* @__PURE__ */
|
|
995
|
+
n && /* @__PURE__ */ O(u, {
|
|
996
996
|
variant: "accent",
|
|
997
997
|
emphasis: "subtle",
|
|
998
998
|
children: n
|
|
999
999
|
}),
|
|
1000
|
-
/* @__PURE__ */
|
|
1001
|
-
className:
|
|
1000
|
+
/* @__PURE__ */ O("p", {
|
|
1001
|
+
className: vn.title,
|
|
1002
1002
|
children: e
|
|
1003
1003
|
}),
|
|
1004
|
-
t && /* @__PURE__ */
|
|
1005
|
-
className:
|
|
1004
|
+
t && /* @__PURE__ */ O("p", {
|
|
1005
|
+
className: vn.description,
|
|
1006
1006
|
children: t
|
|
1007
1007
|
}),
|
|
1008
|
-
l && /* @__PURE__ */
|
|
1009
|
-
className:
|
|
1010
|
-
children: [r && /* @__PURE__ */
|
|
1008
|
+
l && /* @__PURE__ */ k("div", {
|
|
1009
|
+
className: vn.ctaRow,
|
|
1010
|
+
children: [r && /* @__PURE__ */ O(Ee, {
|
|
1011
1011
|
variant: "primary",
|
|
1012
1012
|
onClick: r.onClick,
|
|
1013
1013
|
children: r.label
|
|
1014
|
-
}), i && /* @__PURE__ */
|
|
1014
|
+
}), i && /* @__PURE__ */ O(Ee, {
|
|
1015
1015
|
variant: "secondary",
|
|
1016
|
-
leftIcon: /* @__PURE__ */
|
|
1016
|
+
leftIcon: /* @__PURE__ */ O(tt, {
|
|
1017
1017
|
size: 16,
|
|
1018
|
-
strokeWidth:
|
|
1018
|
+
strokeWidth: E(16),
|
|
1019
1019
|
fill: "currentColor"
|
|
1020
1020
|
}),
|
|
1021
1021
|
onClick: i.onClick,
|
|
1022
1022
|
children: i.label
|
|
1023
1023
|
})]
|
|
1024
1024
|
}),
|
|
1025
|
-
d && /* @__PURE__ */
|
|
1026
|
-
className:
|
|
1027
|
-
children: [/* @__PURE__ */
|
|
1025
|
+
d && /* @__PURE__ */ k("div", {
|
|
1026
|
+
className: vn.avatarBlock,
|
|
1027
|
+
children: [/* @__PURE__ */ O(me, {
|
|
1028
1028
|
size: "md",
|
|
1029
1029
|
avatars: a
|
|
1030
|
-
}), o && /* @__PURE__ */
|
|
1031
|
-
className:
|
|
1030
|
+
}), o && /* @__PURE__ */ O("p", {
|
|
1031
|
+
className: vn.avatarsCaption,
|
|
1032
1032
|
children: o
|
|
1033
1033
|
})]
|
|
1034
1034
|
})
|
|
1035
1035
|
]
|
|
1036
1036
|
});
|
|
1037
|
-
},
|
|
1037
|
+
}, bn = {
|
|
1038
1038
|
root: "_root_5kajg_1",
|
|
1039
1039
|
item: "_item_5kajg_12",
|
|
1040
1040
|
marker: "_marker_5kajg_18",
|
|
1041
1041
|
dot: "_dot_5kajg_26",
|
|
1042
1042
|
label: "_label_5kajg_34"
|
|
1043
|
-
},
|
|
1044
|
-
className: [
|
|
1045
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
1046
|
-
className:
|
|
1047
|
-
children: [/* @__PURE__ */
|
|
1048
|
-
className:
|
|
1043
|
+
}, xn = ({ items: e, style: t = "check", className: n }) => /* @__PURE__ */ O("ul", {
|
|
1044
|
+
className: [bn.root, n ?? ""].filter(Boolean).join(" "),
|
|
1045
|
+
children: e.map((e, n) => /* @__PURE__ */ k("li", {
|
|
1046
|
+
className: bn.item,
|
|
1047
|
+
children: [/* @__PURE__ */ k("span", {
|
|
1048
|
+
className: bn.marker,
|
|
1049
1049
|
"aria-hidden": "true",
|
|
1050
1050
|
children: [
|
|
1051
|
-
t === "check" && /* @__PURE__ */
|
|
1051
|
+
t === "check" && /* @__PURE__ */ O(Ue, {
|
|
1052
1052
|
size: 18,
|
|
1053
|
-
strokeWidth:
|
|
1053
|
+
strokeWidth: E(18)
|
|
1054
1054
|
}),
|
|
1055
|
-
t === "arrow" && /* @__PURE__ */
|
|
1055
|
+
t === "arrow" && /* @__PURE__ */ O(Ve, {
|
|
1056
1056
|
size: 16,
|
|
1057
|
-
strokeWidth:
|
|
1057
|
+
strokeWidth: E(16)
|
|
1058
1058
|
}),
|
|
1059
|
-
t === "bullet" && /* @__PURE__ */
|
|
1059
|
+
t === "bullet" && /* @__PURE__ */ O("span", { className: bn.dot })
|
|
1060
1060
|
]
|
|
1061
|
-
}), /* @__PURE__ */
|
|
1062
|
-
className:
|
|
1061
|
+
}), /* @__PURE__ */ O("span", {
|
|
1062
|
+
className: bn.label,
|
|
1063
1063
|
children: e
|
|
1064
1064
|
})]
|
|
1065
1065
|
}, n))
|
|
1066
|
-
}),
|
|
1066
|
+
}), Sn = {
|
|
1067
1067
|
marquee: "_marquee_1pc4i_1",
|
|
1068
1068
|
track: "_track_1pc4i_13",
|
|
1069
1069
|
row: "_row_1pc4i_19",
|
|
1070
1070
|
item: "_item_1pc4i_25",
|
|
1071
1071
|
fadeLeft: "_fadeLeft_1pc4i_31",
|
|
1072
1072
|
fadeRight: "_fadeRight_1pc4i_32"
|
|
1073
|
-
},
|
|
1074
|
-
className:
|
|
1073
|
+
}, Cn = ({ items: e, gap: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
|
|
1074
|
+
className: Sn.row,
|
|
1075
1075
|
style: {
|
|
1076
1076
|
gap: t,
|
|
1077
1077
|
paddingRight: t
|
|
1078
1078
|
},
|
|
1079
1079
|
"aria-hidden": n,
|
|
1080
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
1081
|
-
className:
|
|
1080
|
+
children: e.map((e, t) => /* @__PURE__ */ O("div", {
|
|
1081
|
+
className: Sn.item,
|
|
1082
1082
|
children: e
|
|
1083
1083
|
}, t))
|
|
1084
|
-
}),
|
|
1085
|
-
let i =
|
|
1086
|
-
return
|
|
1084
|
+
}), wn = ({ items: e, speed: t = 40, gap: n, className: r }) => {
|
|
1085
|
+
let i = D.useRef(null), a = D.useRef(0), o = D.useRef(0), s = D.useRef(!1);
|
|
1086
|
+
return D.useEffect(() => {
|
|
1087
1087
|
let e = i.current?.firstElementChild;
|
|
1088
1088
|
if (!e) return;
|
|
1089
1089
|
let t = () => {
|
|
@@ -1092,7 +1092,7 @@ var Xt = [
|
|
|
1092
1092
|
t();
|
|
1093
1093
|
let n = new ResizeObserver(t);
|
|
1094
1094
|
return n.observe(e), () => n.disconnect();
|
|
1095
|
-
}, [e, n]),
|
|
1095
|
+
}, [e, n]), D.useEffect(() => {
|
|
1096
1096
|
let e = i.current;
|
|
1097
1097
|
if (!e || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
1098
1098
|
let n, r = performance.now(), c = () => {
|
|
@@ -1102,8 +1102,8 @@ var Xt = [
|
|
|
1102
1102
|
d > 0 && (o.current = (o.current + u * l) % d, e.style.transform = `translateX(-${o.current}px)`), n = setTimeout(c, 16);
|
|
1103
1103
|
};
|
|
1104
1104
|
return n = setTimeout(c, 16), () => clearTimeout(n);
|
|
1105
|
-
}, [t]), /* @__PURE__ */
|
|
1106
|
-
className: [
|
|
1105
|
+
}, [t]), /* @__PURE__ */ k("div", {
|
|
1106
|
+
className: [Sn.marquee, r ?? ""].filter(Boolean).join(" "),
|
|
1107
1107
|
onMouseEnter: () => {
|
|
1108
1108
|
s.current = !0;
|
|
1109
1109
|
},
|
|
@@ -1111,29 +1111,29 @@ var Xt = [
|
|
|
1111
1111
|
s.current = !1;
|
|
1112
1112
|
},
|
|
1113
1113
|
children: [
|
|
1114
|
-
/* @__PURE__ */
|
|
1114
|
+
/* @__PURE__ */ k("div", {
|
|
1115
1115
|
ref: i,
|
|
1116
|
-
className:
|
|
1117
|
-
children: [/* @__PURE__ */
|
|
1116
|
+
className: Sn.track,
|
|
1117
|
+
children: [/* @__PURE__ */ O(Cn, {
|
|
1118
1118
|
items: e,
|
|
1119
1119
|
gap: n
|
|
1120
|
-
}), /* @__PURE__ */
|
|
1120
|
+
}), /* @__PURE__ */ O(Cn, {
|
|
1121
1121
|
items: e,
|
|
1122
1122
|
gap: n,
|
|
1123
1123
|
ariaHidden: !0
|
|
1124
1124
|
})]
|
|
1125
1125
|
}),
|
|
1126
|
-
/* @__PURE__ */
|
|
1127
|
-
className:
|
|
1126
|
+
/* @__PURE__ */ O("div", {
|
|
1127
|
+
className: Sn.fadeLeft,
|
|
1128
1128
|
"aria-hidden": "true"
|
|
1129
1129
|
}),
|
|
1130
|
-
/* @__PURE__ */
|
|
1131
|
-
className:
|
|
1130
|
+
/* @__PURE__ */ O("div", {
|
|
1131
|
+
className: Sn.fadeRight,
|
|
1132
1132
|
"aria-hidden": "true"
|
|
1133
1133
|
})
|
|
1134
1134
|
]
|
|
1135
1135
|
});
|
|
1136
|
-
},
|
|
1136
|
+
}, Tn = {
|
|
1137
1137
|
root: "_root_17a1b_1",
|
|
1138
1138
|
numRow: "_numRow_17a1b_9",
|
|
1139
1139
|
value: "_value_17a1b_15",
|
|
@@ -1141,32 +1141,32 @@ var Xt = [
|
|
|
1141
1141
|
trendUp: "_trendUp_17a1b_35",
|
|
1142
1142
|
trendDown: "_trendDown_17a1b_39",
|
|
1143
1143
|
label: "_label_17a1b_43"
|
|
1144
|
-
},
|
|
1145
|
-
let i = n !== void 0, a = i && n >= 0, o = a ?
|
|
1146
|
-
return /* @__PURE__ */
|
|
1147
|
-
className: [
|
|
1148
|
-
children: [/* @__PURE__ */
|
|
1149
|
-
className:
|
|
1150
|
-
children: [/* @__PURE__ */
|
|
1151
|
-
className:
|
|
1144
|
+
}, En = ({ value: e, label: t, trend: n, className: r }) => {
|
|
1145
|
+
let i = n !== void 0, a = i && n >= 0, o = a ? ct : st;
|
|
1146
|
+
return /* @__PURE__ */ k("div", {
|
|
1147
|
+
className: [Tn.root, r ?? ""].filter(Boolean).join(" "),
|
|
1148
|
+
children: [/* @__PURE__ */ k("div", {
|
|
1149
|
+
className: Tn.numRow,
|
|
1150
|
+
children: [/* @__PURE__ */ O("p", {
|
|
1151
|
+
className: Tn.value,
|
|
1152
1152
|
children: e
|
|
1153
|
-
}), i && /* @__PURE__ */
|
|
1154
|
-
className: [
|
|
1153
|
+
}), i && /* @__PURE__ */ k("span", {
|
|
1154
|
+
className: [Tn.trend, a ? Tn.trendUp : Tn.trendDown].join(" "),
|
|
1155
1155
|
children: [
|
|
1156
|
-
/* @__PURE__ */
|
|
1156
|
+
/* @__PURE__ */ O(o, {
|
|
1157
1157
|
size: 24,
|
|
1158
|
-
strokeWidth:
|
|
1158
|
+
strokeWidth: E(24)
|
|
1159
1159
|
}),
|
|
1160
1160
|
Math.abs(n),
|
|
1161
1161
|
"%"
|
|
1162
1162
|
]
|
|
1163
1163
|
})]
|
|
1164
|
-
}), /* @__PURE__ */
|
|
1165
|
-
className:
|
|
1164
|
+
}), /* @__PURE__ */ O("p", {
|
|
1165
|
+
className: Tn.label,
|
|
1166
1166
|
children: t
|
|
1167
1167
|
})]
|
|
1168
1168
|
});
|
|
1169
|
-
},
|
|
1169
|
+
}, z = {
|
|
1170
1170
|
root: "_root_scbx4_1",
|
|
1171
1171
|
header: "_header_scbx4_13",
|
|
1172
1172
|
label: "_label_scbx4_21",
|
|
@@ -1177,59 +1177,59 @@ var Xt = [
|
|
|
1177
1177
|
collapseInner: "_collapseInner_scbx4_78",
|
|
1178
1178
|
navLinks: "_navLinks_scbx4_91",
|
|
1179
1179
|
navLink: "_navLink_scbx4_91"
|
|
1180
|
-
},
|
|
1181
|
-
let l = a !== void 0, [u, d] =
|
|
1180
|
+
}, Dn = ({ label: t, links: n, ctaLabel: r = "Get started", onCtaClick: i, open: a, defaultOpen: o = !1, onOpenChange: s, className: c }) => {
|
|
1181
|
+
let l = a !== void 0, [u, d] = D.useState(o), f = l ? a : u, p = () => {
|
|
1182
1182
|
let e = !f;
|
|
1183
1183
|
l || d(e), s?.(e);
|
|
1184
|
-
}, m =
|
|
1185
|
-
return
|
|
1184
|
+
}, m = D.useRef(null), [h, g] = D.useState(0);
|
|
1185
|
+
return D.useEffect(() => {
|
|
1186
1186
|
let e = m.current;
|
|
1187
1187
|
if (!e) return;
|
|
1188
1188
|
let t = () => g(e.scrollHeight);
|
|
1189
1189
|
t();
|
|
1190
1190
|
let n = new ResizeObserver(t);
|
|
1191
1191
|
return n.observe(e), () => n.disconnect();
|
|
1192
|
-
}, [n, r]), /* @__PURE__ */
|
|
1193
|
-
className: [
|
|
1194
|
-
children: [/* @__PURE__ */
|
|
1195
|
-
className:
|
|
1196
|
-
children: [/* @__PURE__ */
|
|
1197
|
-
className:
|
|
1192
|
+
}, [n, r]), /* @__PURE__ */ k("div", {
|
|
1193
|
+
className: [z.root, c ?? ""].filter(Boolean).join(" "),
|
|
1194
|
+
children: [/* @__PURE__ */ k("div", {
|
|
1195
|
+
className: z.header,
|
|
1196
|
+
children: [/* @__PURE__ */ O("p", {
|
|
1197
|
+
className: z.label,
|
|
1198
1198
|
children: t
|
|
1199
|
-
}), /* @__PURE__ */
|
|
1199
|
+
}), /* @__PURE__ */ O("button", {
|
|
1200
1200
|
type: "button",
|
|
1201
|
-
className:
|
|
1201
|
+
className: z.toggle,
|
|
1202
1202
|
onClick: p,
|
|
1203
1203
|
"aria-expanded": f,
|
|
1204
1204
|
"aria-label": f ? "Close menu" : "Open menu",
|
|
1205
|
-
children:
|
|
1205
|
+
children: O(f ? dt : Qe, {
|
|
1206
1206
|
size: 16,
|
|
1207
|
-
strokeWidth:
|
|
1207
|
+
strokeWidth: E(16)
|
|
1208
1208
|
})
|
|
1209
1209
|
})]
|
|
1210
|
-
}), /* @__PURE__ */
|
|
1211
|
-
className: [
|
|
1210
|
+
}), /* @__PURE__ */ O("div", {
|
|
1211
|
+
className: [z.collapse, f ? z.collapseOpen : ""].filter(Boolean).join(" "),
|
|
1212
1212
|
style: { maxHeight: f ? `${h}px` : "0px" },
|
|
1213
1213
|
"aria-hidden": !f,
|
|
1214
|
-
children: /* @__PURE__ */
|
|
1214
|
+
children: /* @__PURE__ */ k("div", {
|
|
1215
1215
|
ref: m,
|
|
1216
|
-
className:
|
|
1216
|
+
className: z.collapseInner,
|
|
1217
1217
|
children: [
|
|
1218
|
-
/* @__PURE__ */
|
|
1219
|
-
className:
|
|
1218
|
+
/* @__PURE__ */ O("nav", {
|
|
1219
|
+
className: z.navLinks,
|
|
1220
1220
|
"aria-label": t,
|
|
1221
|
-
children: n.map((e) => /* @__PURE__ */
|
|
1221
|
+
children: n.map((e) => /* @__PURE__ */ O("a", {
|
|
1222
1222
|
href: e.href,
|
|
1223
1223
|
onClick: e.onClick,
|
|
1224
|
-
className:
|
|
1224
|
+
className: z.navLink,
|
|
1225
1225
|
tabIndex: f ? void 0 : -1,
|
|
1226
1226
|
children: e.label
|
|
1227
1227
|
}, e.label))
|
|
1228
1228
|
}),
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
/* @__PURE__ */
|
|
1229
|
+
/* @__PURE__ */ O(e, { className: z.fullWidth }),
|
|
1230
|
+
/* @__PURE__ */ O(Ee, {
|
|
1231
1231
|
variant: "primary",
|
|
1232
|
-
className:
|
|
1232
|
+
className: z.fullWidth,
|
|
1233
1233
|
onClick: i,
|
|
1234
1234
|
tabIndex: f ? void 0 : -1,
|
|
1235
1235
|
children: r
|
|
@@ -1238,38 +1238,38 @@ var Xt = [
|
|
|
1238
1238
|
})
|
|
1239
1239
|
})]
|
|
1240
1240
|
});
|
|
1241
|
-
},
|
|
1241
|
+
}, On = {
|
|
1242
1242
|
root: "_root_lrpdp_1",
|
|
1243
1243
|
"root--sm": "_root--sm_lrpdp_14",
|
|
1244
1244
|
"root--md": "_root--md_lrpdp_18",
|
|
1245
1245
|
"root--lg": "_root--lg_lrpdp_22",
|
|
1246
1246
|
defaultMark: "_defaultMark_lrpdp_27"
|
|
1247
|
-
},
|
|
1247
|
+
}, kn = {
|
|
1248
1248
|
sm: 14,
|
|
1249
1249
|
md: 16,
|
|
1250
1250
|
lg: 18
|
|
1251
|
-
},
|
|
1252
|
-
let i =
|
|
1251
|
+
}, An = ({ size: e = "md", logo: t, label: n, className: r }) => {
|
|
1252
|
+
let i = kn[e], a = D.isValidElement(t) ? D.cloneElement(t, {
|
|
1253
1253
|
size: i,
|
|
1254
|
-
strokeWidth:
|
|
1255
|
-
}) : t ?? /* @__PURE__ */
|
|
1254
|
+
strokeWidth: E(i)
|
|
1255
|
+
}) : t ?? /* @__PURE__ */ O("img", {
|
|
1256
1256
|
src: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H20C24.4183%200%2028%203.58172%2028%208V20C28%2024.4183%2024.4183%2028%2020%2028H8C3.58172%2028%200%2024.4183%200%2020V8Z'%20fill='%23FF4700'/%3e%3cpath%20d='M6.63704%2015.9944L20.6362%2014.491'%20stroke='%23FAFAF9'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14.208%2022.884C12.848%2022.884%2011.664%2022.636%2010.656%2022.14C9.664%2021.644%208.88%2020.956%208.304%2020.076C7.728%2019.196%207.392%2018.172%207.296%2017.004L9.96%2016.836C10.072%2017.636%2010.304%2018.316%2010.656%2018.876C11.008%2019.42%2011.48%2019.836%2012.072%2020.124C12.68%2020.396%2013.408%2020.532%2014.256%2020.532C14.992%2020.532%2015.616%2020.444%2016.128%2020.268C16.656%2020.076%2017.056%2019.796%2017.328%2019.428C17.6%2019.06%2017.736%2018.612%2017.736%2018.084C17.736%2017.604%2017.616%2017.18%2017.376%2016.812C17.152%2016.428%2016.712%2016.084%2016.056%2015.78C15.416%2015.46%2014.472%2015.148%2013.224%2014.844C11.864%2014.508%2010.776%2014.14%209.96%2013.74C9.144%2013.34%208.552%2012.844%208.184%2012.252C7.832%2011.644%207.656%2010.9%207.656%2010.02C7.656%209.044%207.888%208.188%208.352%207.452C8.832%206.7%209.512%206.116%2010.392%205.7C11.272%205.284%2012.328%205.076%2013.56%205.076C14.856%205.076%2015.96%205.316%2016.872%205.796C17.8%206.276%2018.528%206.932%2019.056%207.764C19.6%208.596%2019.936%209.548%2020.064%2010.62L17.4%2010.764C17.32%2010.108%2017.12%209.532%2016.8%209.036C16.48%208.524%2016.048%208.132%2015.504%207.86C14.96%207.572%2014.296%207.428%2013.512%207.428C12.52%207.428%2011.736%207.66%2011.16%208.124C10.6%208.572%2010.32%209.172%2010.32%209.924C10.32%2010.404%2010.432%2010.812%2010.656%2011.148C10.896%2011.468%2011.312%2011.748%2011.904%2011.988C12.512%2012.228%2013.368%2012.484%2014.472%2012.756C15.944%2013.092%2017.112%2013.508%2017.976%2014.004C18.856%2014.484%2019.48%2015.052%2019.848%2015.708C20.216%2016.364%2020.4%2017.108%2020.4%2017.94C20.4%2018.948%2020.136%2019.828%2019.608%2020.58C19.096%2021.316%2018.376%2021.884%2017.448%2022.284C16.52%2022.684%2015.44%2022.884%2014.208%2022.884Z'%20fill='%23FAFAF9'/%3e%3c/svg%3e",
|
|
1257
1257
|
alt: "",
|
|
1258
1258
|
width: i,
|
|
1259
1259
|
height: i,
|
|
1260
|
-
className:
|
|
1260
|
+
className: On.defaultMark
|
|
1261
1261
|
});
|
|
1262
|
-
return /* @__PURE__ */
|
|
1262
|
+
return /* @__PURE__ */ O("span", {
|
|
1263
1263
|
className: [
|
|
1264
|
-
|
|
1265
|
-
|
|
1264
|
+
On.root,
|
|
1265
|
+
On[`root--${e}`],
|
|
1266
1266
|
r ?? ""
|
|
1267
1267
|
].filter(Boolean).join(" "),
|
|
1268
1268
|
role: "img",
|
|
1269
1269
|
"aria-label": n ?? "Logo placeholder",
|
|
1270
1270
|
children: a
|
|
1271
1271
|
});
|
|
1272
|
-
},
|
|
1272
|
+
}, B = {
|
|
1273
1273
|
root: "_root_ibchq_1",
|
|
1274
1274
|
rootCompact: "_rootCompact_ibchq_7",
|
|
1275
1275
|
rootDetailed: "_rootDetailed_ibchq_14",
|
|
@@ -1280,61 +1280,61 @@ var Xt = [
|
|
|
1280
1280
|
bio: "_bio_ibchq_53",
|
|
1281
1281
|
social: "_social_ibchq_63",
|
|
1282
1282
|
socialBtn: "_socialBtn_ibchq_71"
|
|
1283
|
-
},
|
|
1283
|
+
}, jn = ({ name: e, role: t, avatarSrc: n, avatarAlt: r, bio: i, socialLinks: a = [], className: o }) => {
|
|
1284
1284
|
let s = !!i || a.length > 0;
|
|
1285
|
-
return /* @__PURE__ */
|
|
1285
|
+
return /* @__PURE__ */ k("div", {
|
|
1286
1286
|
className: [
|
|
1287
|
-
|
|
1288
|
-
s ?
|
|
1287
|
+
B.root,
|
|
1288
|
+
s ? B.rootDetailed : B.rootCompact,
|
|
1289
1289
|
o ?? ""
|
|
1290
1290
|
].filter(Boolean).join(" "),
|
|
1291
1291
|
children: [
|
|
1292
|
-
/* @__PURE__ */
|
|
1292
|
+
/* @__PURE__ */ O(oe, {
|
|
1293
1293
|
size: "xl",
|
|
1294
1294
|
src: n,
|
|
1295
1295
|
alt: r ?? e
|
|
1296
1296
|
}),
|
|
1297
|
-
/* @__PURE__ */
|
|
1298
|
-
className: s ?
|
|
1299
|
-
children: [/* @__PURE__ */
|
|
1300
|
-
className:
|
|
1297
|
+
/* @__PURE__ */ k("div", {
|
|
1298
|
+
className: s ? B.infoDetailed : B.infoCompact,
|
|
1299
|
+
children: [/* @__PURE__ */ O("p", {
|
|
1300
|
+
className: B.name,
|
|
1301
1301
|
children: e
|
|
1302
|
-
}), /* @__PURE__ */
|
|
1303
|
-
className:
|
|
1302
|
+
}), /* @__PURE__ */ O("p", {
|
|
1303
|
+
className: B.role,
|
|
1304
1304
|
children: t
|
|
1305
1305
|
})]
|
|
1306
1306
|
}),
|
|
1307
|
-
s && i && /* @__PURE__ */
|
|
1308
|
-
className:
|
|
1307
|
+
s && i && /* @__PURE__ */ O("p", {
|
|
1308
|
+
className: B.bio,
|
|
1309
1309
|
children: i
|
|
1310
1310
|
}),
|
|
1311
|
-
s && a.length > 0 && /* @__PURE__ */
|
|
1312
|
-
className:
|
|
1313
|
-
children: a.map((e, t) => /* @__PURE__ */
|
|
1311
|
+
s && a.length > 0 && /* @__PURE__ */ O("div", {
|
|
1312
|
+
className: B.social,
|
|
1313
|
+
children: a.map((e, t) => /* @__PURE__ */ O("a", {
|
|
1314
1314
|
href: e.href,
|
|
1315
1315
|
onClick: e.onClick,
|
|
1316
|
-
className:
|
|
1316
|
+
className: B.socialBtn,
|
|
1317
1317
|
"aria-label": e.label,
|
|
1318
1318
|
children: e.icon
|
|
1319
1319
|
}, e.label ?? t))
|
|
1320
1320
|
})
|
|
1321
1321
|
]
|
|
1322
1322
|
});
|
|
1323
|
-
},
|
|
1323
|
+
}, Mn = {
|
|
1324
1324
|
heading: "_heading_96cdx_1",
|
|
1325
1325
|
h2: "_h2_96cdx_8",
|
|
1326
1326
|
h3: "_h3_96cdx_14"
|
|
1327
|
-
},
|
|
1327
|
+
}, Nn = ({ children: e, level: t = "h2", className: n }) => /* @__PURE__ */ O(t, {
|
|
1328
1328
|
className: [
|
|
1329
|
-
|
|
1330
|
-
|
|
1329
|
+
Mn.heading,
|
|
1330
|
+
Mn[t],
|
|
1331
1331
|
n ?? ""
|
|
1332
1332
|
].filter(Boolean).join(" "),
|
|
1333
1333
|
children: e
|
|
1334
|
-
}),
|
|
1335
|
-
className: [
|
|
1334
|
+
}), Pn = { paragraph: "_paragraph_8pqdi_1" }, Fn = ({ children: e, className: t }) => /* @__PURE__ */ O("p", {
|
|
1335
|
+
className: [Pn.paragraph, t ?? ""].filter(Boolean).join(" "),
|
|
1336
1336
|
children: e
|
|
1337
|
-
}),
|
|
1337
|
+
}), In = {
|
|
1338
1338
|
rootBordered: "_rootBordered_5cgsj_1",
|
|
1339
1339
|
rail: "_rail_5cgsj_12",
|
|
1340
1340
|
contentHorizontal: "_contentHorizontal_5cgsj_18",
|
|
@@ -1343,45 +1343,45 @@ var Xt = [
|
|
|
1343
1343
|
textVertical: "_textVertical_5cgsj_41",
|
|
1344
1344
|
title: "_title_5cgsj_49",
|
|
1345
1345
|
description: "_description_5cgsj_57"
|
|
1346
|
-
},
|
|
1347
|
-
let s = i === "vertical", c = /* @__PURE__ */
|
|
1348
|
-
className: s ?
|
|
1349
|
-
children: [/* @__PURE__ */
|
|
1346
|
+
}, Ln = ({ icon: t, title: n, description: r, layout: i = "horizontal", leftBorder: a = !1, className: o }) => {
|
|
1347
|
+
let s = i === "vertical", c = /* @__PURE__ */ k("div", {
|
|
1348
|
+
className: s ? In.contentVertical : In.contentHorizontal,
|
|
1349
|
+
children: [/* @__PURE__ */ O(p, {
|
|
1350
1350
|
icon: t,
|
|
1351
1351
|
size: "sm",
|
|
1352
1352
|
variant: "light"
|
|
1353
|
-
}), /* @__PURE__ */
|
|
1354
|
-
className: s ?
|
|
1355
|
-
children: [/* @__PURE__ */
|
|
1356
|
-
className:
|
|
1353
|
+
}), /* @__PURE__ */ k("div", {
|
|
1354
|
+
className: s ? In.textVertical : In.textHorizontal,
|
|
1355
|
+
children: [/* @__PURE__ */ O("p", {
|
|
1356
|
+
className: In.title,
|
|
1357
1357
|
children: n
|
|
1358
|
-
}), /* @__PURE__ */
|
|
1359
|
-
className:
|
|
1358
|
+
}), /* @__PURE__ */ O("p", {
|
|
1359
|
+
className: In.description,
|
|
1360
1360
|
children: r
|
|
1361
1361
|
})]
|
|
1362
1362
|
})]
|
|
1363
1363
|
});
|
|
1364
|
-
return a ? /* @__PURE__ */
|
|
1365
|
-
className: [
|
|
1366
|
-
children: [/* @__PURE__ */
|
|
1364
|
+
return a ? /* @__PURE__ */ k("div", {
|
|
1365
|
+
className: [In.rootBordered, o ?? ""].filter(Boolean).join(" "),
|
|
1366
|
+
children: [/* @__PURE__ */ O(e, {
|
|
1367
1367
|
orientation: "vertical",
|
|
1368
|
-
className:
|
|
1368
|
+
className: In.rail
|
|
1369
1369
|
}), c]
|
|
1370
|
-
}) :
|
|
1371
|
-
},
|
|
1370
|
+
}) : D.cloneElement(c, { className: [c.props.className, o ?? ""].filter(Boolean).join(" ") });
|
|
1371
|
+
}, Rn = { chart: "_chart_qqaox_2" }, zn = {
|
|
1372
1372
|
sm: 180,
|
|
1373
1373
|
md: 240,
|
|
1374
1374
|
lg: 320,
|
|
1375
1375
|
xl: 420
|
|
1376
|
-
},
|
|
1377
|
-
let o =
|
|
1378
|
-
return /* @__PURE__ */
|
|
1376
|
+
}, Bn = ({ data: e, variant: t = "default", seriesLabels: n = ["Value", "Value 2"], size: r = "md", height: i, className: a }) => {
|
|
1377
|
+
let o = D.useRef(null), s = N(o), c = s("--color-chart-5") ?? "#dca84f", l = s("--color-chart-2") ?? "#5b92dd", u = s("--color-border-subtle") ?? "#e7e5e1", d = s("--color-fg-muted") ?? "#78716a", f = e.some((e) => e.value2 !== void 0), p = t === "step" ? "step" : t === "linear" ? "linear" : "monotone", m = t === "stacked" ? "stack" : void 0;
|
|
1378
|
+
return /* @__PURE__ */ O("div", {
|
|
1379
1379
|
ref: o,
|
|
1380
|
-
className: [
|
|
1381
|
-
children: /* @__PURE__ */
|
|
1380
|
+
className: [Rn.chart, a ?? ""].filter(Boolean).join(" "),
|
|
1381
|
+
children: /* @__PURE__ */ O(A, {
|
|
1382
1382
|
width: "100%",
|
|
1383
|
-
height: i ??
|
|
1384
|
-
children: /* @__PURE__ */
|
|
1383
|
+
height: i ?? zn[r],
|
|
1384
|
+
children: /* @__PURE__ */ k(pt, {
|
|
1385
1385
|
data: e,
|
|
1386
1386
|
margin: {
|
|
1387
1387
|
top: 8,
|
|
@@ -1390,43 +1390,43 @@ var Xt = [
|
|
|
1390
1390
|
left: 0
|
|
1391
1391
|
},
|
|
1392
1392
|
children: [
|
|
1393
|
-
/* @__PURE__ */
|
|
1393
|
+
/* @__PURE__ */ k("defs", { children: [/* @__PURE__ */ k("linearGradient", {
|
|
1394
1394
|
id: "sakani-area-1",
|
|
1395
1395
|
x1: "0",
|
|
1396
1396
|
y1: "0",
|
|
1397
1397
|
x2: "0",
|
|
1398
1398
|
y2: "1",
|
|
1399
|
-
children: [/* @__PURE__ */
|
|
1399
|
+
children: [/* @__PURE__ */ O("stop", {
|
|
1400
1400
|
offset: "5%",
|
|
1401
1401
|
stopColor: c,
|
|
1402
1402
|
stopOpacity: .35
|
|
1403
|
-
}), /* @__PURE__ */
|
|
1403
|
+
}), /* @__PURE__ */ O("stop", {
|
|
1404
1404
|
offset: "95%",
|
|
1405
1405
|
stopColor: c,
|
|
1406
1406
|
stopOpacity: .02
|
|
1407
1407
|
})]
|
|
1408
|
-
}), /* @__PURE__ */
|
|
1408
|
+
}), /* @__PURE__ */ k("linearGradient", {
|
|
1409
1409
|
id: "sakani-area-2",
|
|
1410
1410
|
x1: "0",
|
|
1411
1411
|
y1: "0",
|
|
1412
1412
|
x2: "0",
|
|
1413
1413
|
y2: "1",
|
|
1414
|
-
children: [/* @__PURE__ */
|
|
1414
|
+
children: [/* @__PURE__ */ O("stop", {
|
|
1415
1415
|
offset: "5%",
|
|
1416
1416
|
stopColor: l,
|
|
1417
1417
|
stopOpacity: .35
|
|
1418
|
-
}), /* @__PURE__ */
|
|
1418
|
+
}), /* @__PURE__ */ O("stop", {
|
|
1419
1419
|
offset: "95%",
|
|
1420
1420
|
stopColor: l,
|
|
1421
1421
|
stopOpacity: .02
|
|
1422
1422
|
})]
|
|
1423
1423
|
})] }),
|
|
1424
|
-
/* @__PURE__ */
|
|
1424
|
+
/* @__PURE__ */ O(gt, {
|
|
1425
1425
|
strokeDasharray: "3 3",
|
|
1426
1426
|
stroke: u,
|
|
1427
1427
|
vertical: !1
|
|
1428
1428
|
}),
|
|
1429
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ O(Nt, {
|
|
1430
1430
|
dataKey: "label",
|
|
1431
1431
|
stroke: d,
|
|
1432
1432
|
fontSize: 12,
|
|
@@ -1434,15 +1434,15 @@ var Xt = [
|
|
|
1434
1434
|
axisLine: !1,
|
|
1435
1435
|
interval: 0
|
|
1436
1436
|
}),
|
|
1437
|
-
/* @__PURE__ */
|
|
1437
|
+
/* @__PURE__ */ O(Mt, {
|
|
1438
1438
|
cursor: {
|
|
1439
1439
|
stroke: s("--color-border-default") ?? "#dbdad7",
|
|
1440
1440
|
strokeWidth: 1
|
|
1441
1441
|
},
|
|
1442
|
-
content: /* @__PURE__ */
|
|
1442
|
+
content: /* @__PURE__ */ O(Qt, {}),
|
|
1443
1443
|
wrapperStyle: { zIndex: 50 }
|
|
1444
1444
|
}),
|
|
1445
|
-
f && /* @__PURE__ */
|
|
1445
|
+
f && /* @__PURE__ */ O(ft, {
|
|
1446
1446
|
type: p,
|
|
1447
1447
|
dataKey: "value2",
|
|
1448
1448
|
name: n[1] ?? "Value 2",
|
|
@@ -1458,7 +1458,7 @@ var Xt = [
|
|
|
1458
1458
|
strokeWidth: 1.5
|
|
1459
1459
|
}
|
|
1460
1460
|
}),
|
|
1461
|
-
/* @__PURE__ */
|
|
1461
|
+
/* @__PURE__ */ O(ft, {
|
|
1462
1462
|
type: p,
|
|
1463
1463
|
dataKey: "value",
|
|
1464
1464
|
name: n[0] ?? "Value",
|
|
@@ -1478,7 +1478,7 @@ var Xt = [
|
|
|
1478
1478
|
})
|
|
1479
1479
|
})
|
|
1480
1480
|
});
|
|
1481
|
-
},
|
|
1481
|
+
}, V = {
|
|
1482
1482
|
col: "_col_1v24u_2",
|
|
1483
1483
|
col__header: "_col__header_1v24u_11",
|
|
1484
1484
|
col__dot: "_col__dot_1v24u_12",
|
|
@@ -1489,67 +1489,67 @@ var Xt = [
|
|
|
1489
1489
|
col__body: "_col__body_1v24u_24",
|
|
1490
1490
|
col__drop: "_col__drop_1v24u_25",
|
|
1491
1491
|
col__add: "_col__add_1v24u_31"
|
|
1492
|
-
},
|
|
1493
|
-
className: [
|
|
1492
|
+
}, Vn = ({ state: e = "default", title: t, count: n, dotColor: r = "var(--color-chart-1)", children: i, onAdd: a, onMenu: o, className: s }) => /* @__PURE__ */ k("div", {
|
|
1493
|
+
className: [V.col, s ?? ""].filter(Boolean).join(" "),
|
|
1494
1494
|
children: [
|
|
1495
|
-
/* @__PURE__ */
|
|
1496
|
-
className:
|
|
1495
|
+
/* @__PURE__ */ k("div", {
|
|
1496
|
+
className: V.col__header,
|
|
1497
1497
|
children: [
|
|
1498
|
-
/* @__PURE__ */
|
|
1499
|
-
className:
|
|
1498
|
+
/* @__PURE__ */ O("span", {
|
|
1499
|
+
className: V.col__dot,
|
|
1500
1500
|
style: { background: r },
|
|
1501
1501
|
"aria-hidden": "true"
|
|
1502
1502
|
}),
|
|
1503
|
-
/* @__PURE__ */
|
|
1504
|
-
className:
|
|
1503
|
+
/* @__PURE__ */ O("span", {
|
|
1504
|
+
className: V.col__title,
|
|
1505
1505
|
children: t
|
|
1506
1506
|
}),
|
|
1507
|
-
n != null && /* @__PURE__ */
|
|
1508
|
-
className:
|
|
1507
|
+
n != null && /* @__PURE__ */ O("span", {
|
|
1508
|
+
className: V.col__count,
|
|
1509
1509
|
children: n
|
|
1510
1510
|
}),
|
|
1511
|
-
/* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1511
|
+
/* @__PURE__ */ O("span", { className: V.col__spacer }),
|
|
1512
|
+
/* @__PURE__ */ O("button", {
|
|
1513
1513
|
type: "button",
|
|
1514
|
-
className:
|
|
1514
|
+
className: V.col__action,
|
|
1515
1515
|
onClick: a,
|
|
1516
1516
|
"aria-label": "Add task",
|
|
1517
|
-
children: /* @__PURE__ */
|
|
1517
|
+
children: /* @__PURE__ */ O(nt, {
|
|
1518
1518
|
size: 16,
|
|
1519
|
-
strokeWidth:
|
|
1519
|
+
strokeWidth: E(16)
|
|
1520
1520
|
})
|
|
1521
1521
|
}),
|
|
1522
|
-
/* @__PURE__ */
|
|
1522
|
+
/* @__PURE__ */ O("button", {
|
|
1523
1523
|
type: "button",
|
|
1524
|
-
className:
|
|
1524
|
+
className: V.col__action,
|
|
1525
1525
|
onClick: o,
|
|
1526
1526
|
"aria-label": "Column options",
|
|
1527
|
-
children: /* @__PURE__ */
|
|
1527
|
+
children: /* @__PURE__ */ O(et, {
|
|
1528
1528
|
size: 16,
|
|
1529
|
-
strokeWidth:
|
|
1529
|
+
strokeWidth: E(16)
|
|
1530
1530
|
})
|
|
1531
1531
|
})
|
|
1532
1532
|
]
|
|
1533
1533
|
}),
|
|
1534
|
-
/* @__PURE__ */
|
|
1535
|
-
className:
|
|
1536
|
-
children: e === "empty" ? /* @__PURE__ */
|
|
1537
|
-
className:
|
|
1534
|
+
/* @__PURE__ */ O("div", {
|
|
1535
|
+
className: V.col__body,
|
|
1536
|
+
children: e === "empty" ? /* @__PURE__ */ O("div", {
|
|
1537
|
+
className: V.col__drop,
|
|
1538
1538
|
children: "Drop tasks here"
|
|
1539
1539
|
}) : i
|
|
1540
1540
|
}),
|
|
1541
|
-
/* @__PURE__ */
|
|
1541
|
+
/* @__PURE__ */ k("button", {
|
|
1542
1542
|
type: "button",
|
|
1543
|
-
className:
|
|
1543
|
+
className: V.col__add,
|
|
1544
1544
|
onClick: a,
|
|
1545
|
-
children: [/* @__PURE__ */
|
|
1545
|
+
children: [/* @__PURE__ */ O(nt, {
|
|
1546
1546
|
size: 16,
|
|
1547
|
-
strokeWidth:
|
|
1547
|
+
strokeWidth: E(16),
|
|
1548
1548
|
"aria-hidden": "true"
|
|
1549
1549
|
}), "Add task"]
|
|
1550
1550
|
})
|
|
1551
1551
|
]
|
|
1552
|
-
}),
|
|
1552
|
+
}), H = {
|
|
1553
1553
|
calendar: "_calendar_1y1kb_2",
|
|
1554
1554
|
header: "_header_1y1kb_14",
|
|
1555
1555
|
header__label: "_header__label_1y1kb_15",
|
|
@@ -1567,7 +1567,7 @@ var Xt = [
|
|
|
1567
1567
|
"day--disabled": "_day--disabled_1y1kb_49",
|
|
1568
1568
|
dropdowns: "_dropdowns_1y1kb_52",
|
|
1569
1569
|
dropdown: "_dropdown_1y1kb_52"
|
|
1570
|
-
},
|
|
1570
|
+
}, Hn = [
|
|
1571
1571
|
"Su",
|
|
1572
1572
|
"Mo",
|
|
1573
1573
|
"Tu",
|
|
@@ -1575,7 +1575,7 @@ var Xt = [
|
|
|
1575
1575
|
"Th",
|
|
1576
1576
|
"Fr",
|
|
1577
1577
|
"Sa"
|
|
1578
|
-
],
|
|
1578
|
+
], Un = [
|
|
1579
1579
|
"January",
|
|
1580
1580
|
"February",
|
|
1581
1581
|
"March",
|
|
@@ -1588,11 +1588,11 @@ var Xt = [
|
|
|
1588
1588
|
"October",
|
|
1589
1589
|
"November",
|
|
1590
1590
|
"December"
|
|
1591
|
-
],
|
|
1592
|
-
let [u, d] =
|
|
1591
|
+
], Wn = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Gn = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Kn = ({ mode: e = "single", value: t, onChange: n, range: r, onRangeChange: i, headerType: a = "arrows", defaultMonth: o, minDate: s, maxDate: c, className: l }) => {
|
|
1592
|
+
let [u, d] = D.useState(() => {
|
|
1593
1593
|
let e = o ?? t ?? r?.from ?? /* @__PURE__ */ new Date();
|
|
1594
1594
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
1595
|
-
}), [f, p] =
|
|
1595
|
+
}), [f, p] = D.useState({}), m = r === void 0 ? f : r, h = /* @__PURE__ */ new Date(), g = u.getFullYear(), _ = u.getMonth(), v = new Date(g, _, 1).getDay(), y = new Date(g, _, 1 - v), b = Array.from({ length: 42 }, (e, t) => new Date(y.getFullYear(), y.getMonth(), y.getDate() + t)), x = (e) => s && e < Gn(s) || c && e > c, S = (e) => {
|
|
1596
1596
|
r === void 0 && p(e), i?.(e);
|
|
1597
1597
|
}, C = (t) => {
|
|
1598
1598
|
if (e === "single") {
|
|
@@ -1613,85 +1613,85 @@ var Xt = [
|
|
|
1613
1613
|
}, w = (n) => {
|
|
1614
1614
|
if (x(n)) return "disabled";
|
|
1615
1615
|
if (e === "single") {
|
|
1616
|
-
if (
|
|
1616
|
+
if (Wn(n, t)) return "selected";
|
|
1617
1617
|
} else {
|
|
1618
1618
|
let { from: e, to: t } = m;
|
|
1619
|
-
if (
|
|
1619
|
+
if (Wn(n, e) || Wn(n, t)) return "selected";
|
|
1620
1620
|
if (e && t && n > e && n < t) return "in-range";
|
|
1621
1621
|
}
|
|
1622
|
-
return n.getMonth() === _ ?
|
|
1623
|
-
},
|
|
1624
|
-
return /* @__PURE__ */
|
|
1625
|
-
className: [
|
|
1622
|
+
return n.getMonth() === _ ? Wn(n, h) ? "today" : "default" : "outside";
|
|
1623
|
+
}, ee = s ? s.getFullYear() : g - 10, te = c ? c.getFullYear() : g + 10, ne = Array.from({ length: te - ee + 1 }, (e, t) => ee + t);
|
|
1624
|
+
return /* @__PURE__ */ k("div", {
|
|
1625
|
+
className: [H.calendar, l ?? ""].filter(Boolean).join(" "),
|
|
1626
1626
|
children: [
|
|
1627
|
-
/* @__PURE__ */
|
|
1628
|
-
className:
|
|
1627
|
+
/* @__PURE__ */ k("div", {
|
|
1628
|
+
className: H.header,
|
|
1629
1629
|
children: [
|
|
1630
|
-
/* @__PURE__ */
|
|
1630
|
+
/* @__PURE__ */ O("button", {
|
|
1631
1631
|
type: "button",
|
|
1632
|
-
className:
|
|
1632
|
+
className: H.navBtn,
|
|
1633
1633
|
onClick: () => d(new Date(g, _ - 1, 1)),
|
|
1634
1634
|
"aria-label": "Previous month",
|
|
1635
|
-
children: /* @__PURE__ */
|
|
1635
|
+
children: /* @__PURE__ */ O(Ge, {
|
|
1636
1636
|
size: 16,
|
|
1637
|
-
strokeWidth:
|
|
1637
|
+
strokeWidth: E(16)
|
|
1638
1638
|
})
|
|
1639
1639
|
}),
|
|
1640
|
-
a === "dropdowns" ? /* @__PURE__ */
|
|
1641
|
-
className:
|
|
1642
|
-
children: [/* @__PURE__ */
|
|
1643
|
-
className:
|
|
1640
|
+
a === "dropdowns" ? /* @__PURE__ */ k("span", {
|
|
1641
|
+
className: H.dropdowns,
|
|
1642
|
+
children: [/* @__PURE__ */ O("select", {
|
|
1643
|
+
className: H.dropdown,
|
|
1644
1644
|
value: _,
|
|
1645
1645
|
onChange: (e) => d(new Date(g, Number(e.target.value), 1)),
|
|
1646
1646
|
"aria-label": "Month",
|
|
1647
|
-
children:
|
|
1647
|
+
children: Un.map((e, t) => /* @__PURE__ */ O("option", {
|
|
1648
1648
|
value: t,
|
|
1649
1649
|
children: e
|
|
1650
1650
|
}, e))
|
|
1651
|
-
}), /* @__PURE__ */
|
|
1652
|
-
className:
|
|
1651
|
+
}), /* @__PURE__ */ O("select", {
|
|
1652
|
+
className: H.dropdown,
|
|
1653
1653
|
value: g,
|
|
1654
1654
|
onChange: (e) => d(new Date(Number(e.target.value), _, 1)),
|
|
1655
1655
|
"aria-label": "Year",
|
|
1656
|
-
children:
|
|
1656
|
+
children: ne.map((e) => /* @__PURE__ */ O("option", {
|
|
1657
1657
|
value: e,
|
|
1658
1658
|
children: e
|
|
1659
1659
|
}, e))
|
|
1660
1660
|
})]
|
|
1661
|
-
}) : /* @__PURE__ */
|
|
1662
|
-
className:
|
|
1661
|
+
}) : /* @__PURE__ */ k("span", {
|
|
1662
|
+
className: H.header__label,
|
|
1663
1663
|
children: [
|
|
1664
|
-
|
|
1664
|
+
Un[_],
|
|
1665
1665
|
" ",
|
|
1666
1666
|
g
|
|
1667
1667
|
]
|
|
1668
1668
|
}),
|
|
1669
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ O("button", {
|
|
1670
1670
|
type: "button",
|
|
1671
|
-
className:
|
|
1671
|
+
className: H.navBtn,
|
|
1672
1672
|
onClick: () => d(new Date(g, _ + 1, 1)),
|
|
1673
1673
|
"aria-label": "Next month",
|
|
1674
|
-
children: /* @__PURE__ */
|
|
1674
|
+
children: /* @__PURE__ */ O(Ke, {
|
|
1675
1675
|
size: 16,
|
|
1676
|
-
strokeWidth:
|
|
1676
|
+
strokeWidth: E(16)
|
|
1677
1677
|
})
|
|
1678
1678
|
})
|
|
1679
1679
|
]
|
|
1680
1680
|
}),
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
className:
|
|
1683
|
-
children:
|
|
1684
|
-
className:
|
|
1681
|
+
/* @__PURE__ */ O("div", {
|
|
1682
|
+
className: H.weekdays,
|
|
1683
|
+
children: Hn.map((e) => /* @__PURE__ */ O("span", {
|
|
1684
|
+
className: H.weekday,
|
|
1685
1685
|
children: e
|
|
1686
1686
|
}, e))
|
|
1687
1687
|
}),
|
|
1688
|
-
/* @__PURE__ */
|
|
1689
|
-
className:
|
|
1688
|
+
/* @__PURE__ */ O("div", {
|
|
1689
|
+
className: H.grid,
|
|
1690
1690
|
children: b.map((e, t) => {
|
|
1691
1691
|
let n = w(e);
|
|
1692
|
-
return /* @__PURE__ */
|
|
1692
|
+
return /* @__PURE__ */ O("button", {
|
|
1693
1693
|
type: "button",
|
|
1694
|
-
className: [
|
|
1694
|
+
className: [H.day, H[`day--${n}`]].filter(Boolean).join(" "),
|
|
1695
1695
|
disabled: n === "disabled",
|
|
1696
1696
|
"aria-current": n === "today" ? "date" : void 0,
|
|
1697
1697
|
"aria-selected": n === "selected",
|
|
@@ -1708,7 +1708,7 @@ var Xt = [
|
|
|
1708
1708
|
})
|
|
1709
1709
|
]
|
|
1710
1710
|
});
|
|
1711
|
-
},
|
|
1711
|
+
}, qn = {
|
|
1712
1712
|
card: "_card_1mh1i_3",
|
|
1713
1713
|
"card--interactive": "_card--interactive_1mh1i_16",
|
|
1714
1714
|
card__header: "_card__header_1mh1i_24",
|
|
@@ -1716,198 +1716,281 @@ var Xt = [
|
|
|
1716
1716
|
card__description: "_card__description_1mh1i_32",
|
|
1717
1717
|
card__body: "_card__body_1mh1i_39",
|
|
1718
1718
|
card__actions: "_card__actions_1mh1i_42"
|
|
1719
|
-
},
|
|
1719
|
+
}, Jn = ({ title: e, description: t, actions: n, interactive: r, children: i, className: a }) => /* @__PURE__ */ k("div", {
|
|
1720
1720
|
className: [
|
|
1721
|
-
|
|
1722
|
-
r ?
|
|
1721
|
+
qn.card,
|
|
1722
|
+
r ? qn["card--interactive"] : "",
|
|
1723
1723
|
a ?? ""
|
|
1724
1724
|
].filter(Boolean).join(" "),
|
|
1725
1725
|
children: [
|
|
1726
|
-
(e || t) && /* @__PURE__ */
|
|
1727
|
-
className:
|
|
1728
|
-
children: [e && /* @__PURE__ */
|
|
1729
|
-
className:
|
|
1726
|
+
(e || t) && /* @__PURE__ */ k("div", {
|
|
1727
|
+
className: qn.card__header,
|
|
1728
|
+
children: [e && /* @__PURE__ */ O("h3", {
|
|
1729
|
+
className: qn.card__title,
|
|
1730
1730
|
children: e
|
|
1731
|
-
}), t && /* @__PURE__ */
|
|
1732
|
-
className:
|
|
1731
|
+
}), t && /* @__PURE__ */ O("p", {
|
|
1732
|
+
className: qn.card__description,
|
|
1733
1733
|
children: t
|
|
1734
1734
|
})]
|
|
1735
1735
|
}),
|
|
1736
|
-
i && /* @__PURE__ */
|
|
1737
|
-
className:
|
|
1736
|
+
i && /* @__PURE__ */ O("div", {
|
|
1737
|
+
className: qn.card__body,
|
|
1738
1738
|
children: i
|
|
1739
1739
|
}),
|
|
1740
|
-
n && /* @__PURE__ */
|
|
1741
|
-
className:
|
|
1740
|
+
n && /* @__PURE__ */ O("div", {
|
|
1741
|
+
className: qn.card__actions,
|
|
1742
1742
|
children: n
|
|
1743
1743
|
})
|
|
1744
1744
|
]
|
|
1745
|
-
}),
|
|
1746
|
-
field: "
|
|
1747
|
-
field__label: "
|
|
1748
|
-
field__description: "
|
|
1749
|
-
field__error: "
|
|
1750
|
-
control: "
|
|
1751
|
-
"control--sm": "_control--
|
|
1752
|
-
"control--md": "_control--
|
|
1753
|
-
"control--lg": "_control--
|
|
1754
|
-
"control--open": "_control--
|
|
1755
|
-
"control--error": "_control--
|
|
1756
|
-
"control--disabled": "_control--
|
|
1757
|
-
control__value: "
|
|
1758
|
-
"control__value--placeholder": "_control__value--
|
|
1759
|
-
control__input: "
|
|
1760
|
-
control__chevron: "
|
|
1761
|
-
"control__chevron--open": "_control__chevron--
|
|
1762
|
-
chips: "
|
|
1763
|
-
chip: "
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
"panel--
|
|
1769
|
-
"sakani-combobox-panel-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
"option--selected": "_option--
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1745
|
+
}), U = {
|
|
1746
|
+
field: "_field_931k2_7",
|
|
1747
|
+
field__label: "_field__label_931k2_8",
|
|
1748
|
+
field__description: "_field__description_931k2_9",
|
|
1749
|
+
field__error: "_field__error_931k2_10",
|
|
1750
|
+
control: "_control_931k2_13",
|
|
1751
|
+
"control--sm": "_control--sm_931k2_25",
|
|
1752
|
+
"control--md": "_control--md_931k2_26",
|
|
1753
|
+
"control--lg": "_control--lg_931k2_27",
|
|
1754
|
+
"control--open": "_control--open_931k2_29",
|
|
1755
|
+
"control--error": "_control--error_931k2_35",
|
|
1756
|
+
"control--disabled": "_control--disabled_931k2_39",
|
|
1757
|
+
control__value: "_control__value_931k2_45",
|
|
1758
|
+
"control__value--placeholder": "_control__value--placeholder_931k2_55",
|
|
1759
|
+
control__input: "_control__input_931k2_56",
|
|
1760
|
+
control__chevron: "_control__chevron_931k2_76",
|
|
1761
|
+
"control__chevron--open": "_control__chevron--open_931k2_77",
|
|
1762
|
+
chips: "_chips_931k2_83",
|
|
1763
|
+
chip: "_chip_931k2_83",
|
|
1764
|
+
"chip--leaving": "_chip--leaving_931k2_95",
|
|
1765
|
+
"sakani-combobox-chip-out": "_sakani-combobox-chip-out_931k2_1",
|
|
1766
|
+
chip__remove: "_chip__remove_931k2_103",
|
|
1767
|
+
panel: "_panel_931k2_114",
|
|
1768
|
+
"panel--entering": "_panel--entering_931k2_138",
|
|
1769
|
+
"sakani-combobox-panel-in": "_sakani-combobox-panel-in_931k2_1",
|
|
1770
|
+
"panel--exiting": "_panel--exiting_931k2_139",
|
|
1771
|
+
"sakani-combobox-panel-out": "_sakani-combobox-panel-out_931k2_1",
|
|
1772
|
+
panel__empty: "_panel__empty_931k2_149",
|
|
1773
|
+
option: "_option_931k2_157",
|
|
1774
|
+
"option--selected": "_option--selected_931k2_182",
|
|
1775
|
+
"option--disabled": "_option--disabled_931k2_183",
|
|
1776
|
+
optionHighlight: "_optionHighlight_931k2_158",
|
|
1777
|
+
"optionHighlight--animated": "_optionHighlight--animated_931k2_214",
|
|
1778
|
+
option__box: "_option__box_931k2_221",
|
|
1779
|
+
"option__box--checked": "_option__box--checked_931k2_238",
|
|
1780
|
+
option__icon: "_option__icon_931k2_243",
|
|
1781
|
+
option__label: "_option__label_931k2_244",
|
|
1782
|
+
option__check: "_option__check_931k2_245",
|
|
1783
|
+
panel__loading: "_panel__loading_931k2_248",
|
|
1784
|
+
panel__spinner: "_panel__spinner_931k2_252",
|
|
1785
|
+
"sakani-cb-spin": "_sakani-cb-spin_931k2_1"
|
|
1786
|
+
}, Yn = ({ options: e, mode: t = "single", size: n = "md", label: r, description: i, error: a, placeholder: o = "Select...", disabled: s, loading: c, value: l, onChange: u, className: d }) => {
|
|
1787
|
+
let f = D.useId(), [p, m] = D.useState(!1), [h, g] = D.useState(!1), [_, v] = D.useState(0), y = D.useRef(null), b = e;
|
|
1788
|
+
D.useEffect(() => {
|
|
1784
1789
|
p && g(!0);
|
|
1785
1790
|
}, [p]);
|
|
1786
|
-
let
|
|
1787
|
-
|
|
1791
|
+
let x = D.useRef({}), S = D.useRef(null), [C, w] = D.useState(null), [ee, te] = D.useState(!1);
|
|
1792
|
+
D.useLayoutEffect(() => {
|
|
1793
|
+
let e = x.current[_];
|
|
1794
|
+
if (!e) {
|
|
1795
|
+
w(null);
|
|
1796
|
+
return;
|
|
1797
|
+
}
|
|
1798
|
+
w({
|
|
1799
|
+
top: e.offsetTop,
|
|
1800
|
+
height: e.offsetHeight
|
|
1801
|
+
});
|
|
1802
|
+
}, [_, b.length]), D.useLayoutEffect(() => {
|
|
1803
|
+
if (!h) {
|
|
1804
|
+
te(!1);
|
|
1805
|
+
return;
|
|
1806
|
+
}
|
|
1807
|
+
te(!1);
|
|
1808
|
+
let e = window.requestAnimationFrame(() => te(!0));
|
|
1809
|
+
return () => window.cancelAnimationFrame(e);
|
|
1810
|
+
}, [h]), D.useEffect(() => {
|
|
1811
|
+
if (!S.current) return;
|
|
1812
|
+
let e = new ResizeObserver(() => {
|
|
1813
|
+
let e = x.current[_];
|
|
1814
|
+
e && w({
|
|
1815
|
+
top: e.offsetTop,
|
|
1816
|
+
height: e.offsetHeight
|
|
1817
|
+
});
|
|
1818
|
+
});
|
|
1819
|
+
return e.observe(S.current), () => e.disconnect();
|
|
1820
|
+
}, [h]);
|
|
1821
|
+
let [ne, re] = D.useState(t === "multi" ? [] : ""), ie = l === void 0 ? ne : l, T = Array.isArray(ie) ? ie : ie ? [ie] : [], [ae, oe] = D.useState(() => T.map((e) => ({
|
|
1822
|
+
value: e,
|
|
1823
|
+
leaving: !1
|
|
1824
|
+
}))), se = T.join("\0");
|
|
1825
|
+
D.useLayoutEffect(() => {
|
|
1826
|
+
oe((e) => {
|
|
1827
|
+
let t = e.map((e) => ({
|
|
1828
|
+
value: e.value,
|
|
1829
|
+
leaving: !T.includes(e.value)
|
|
1830
|
+
}));
|
|
1831
|
+
for (let e of T) t.some((t) => t.value === e) || t.push({
|
|
1832
|
+
value: e,
|
|
1833
|
+
leaving: !1
|
|
1834
|
+
});
|
|
1835
|
+
return t;
|
|
1836
|
+
});
|
|
1837
|
+
}, [se]);
|
|
1838
|
+
let ce = (e) => oe((t) => t.filter((t) => !(t.value === e && t.leaving))), le = !!a;
|
|
1839
|
+
D.useEffect(() => {
|
|
1788
1840
|
let e = (e) => {
|
|
1789
1841
|
y.current && !y.current.contains(e.target) && m(!1);
|
|
1790
1842
|
};
|
|
1791
1843
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1792
1844
|
}, []);
|
|
1793
|
-
let
|
|
1794
|
-
l === void 0 &&
|
|
1795
|
-
},
|
|
1845
|
+
let ue = (e) => {
|
|
1846
|
+
l === void 0 && re(e), u?.(e);
|
|
1847
|
+
}, de = (e) => {
|
|
1796
1848
|
if (!e.disabled) if (t === "multi") {
|
|
1797
|
-
let t = new Set(
|
|
1798
|
-
t.has(e.value) ? t.delete(e.value) : t.add(e.value),
|
|
1799
|
-
} else
|
|
1800
|
-
},
|
|
1801
|
-
s || (e.key === "ArrowDown" ? (e.preventDefault(), m(!0), v((e) => Math.min(e + 1,
|
|
1802
|
-
},
|
|
1803
|
-
return /* @__PURE__ */
|
|
1804
|
-
className: [
|
|
1849
|
+
let t = new Set(T);
|
|
1850
|
+
t.has(e.value) ? t.delete(e.value) : t.add(e.value), ue([...t]);
|
|
1851
|
+
} else ue(e.value), m(!1);
|
|
1852
|
+
}, fe = (t) => e.find((e) => e.value === t)?.label ?? t, pe = T.length ? fe(T[0]) : "", me = (e) => {
|
|
1853
|
+
s || (e.key === "ArrowDown" ? (e.preventDefault(), m(!0), v((e) => Math.min(e + 1, b.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), v((e) => Math.max(e - 1, 0))) : e.key === "Enter" ? (e.preventDefault(), p && b[_] ? de(b[_]) : m(!0)) : e.key === "Escape" && m(!1));
|
|
1854
|
+
}, he = s ? "disabled" : le ? "error" : p ? "open" : "default";
|
|
1855
|
+
return /* @__PURE__ */ k("div", {
|
|
1856
|
+
className: [U.field, d ?? ""].filter(Boolean).join(" "),
|
|
1805
1857
|
ref: y,
|
|
1806
1858
|
children: [
|
|
1807
|
-
r && /* @__PURE__ */
|
|
1859
|
+
r && /* @__PURE__ */ O("label", {
|
|
1808
1860
|
htmlFor: `${f}-trigger`,
|
|
1809
|
-
className:
|
|
1861
|
+
className: U.field__label,
|
|
1810
1862
|
children: r
|
|
1811
1863
|
}),
|
|
1812
|
-
/* @__PURE__ */
|
|
1864
|
+
/* @__PURE__ */ k("div", {
|
|
1813
1865
|
id: `${f}-trigger`,
|
|
1814
1866
|
role: "combobox",
|
|
1815
1867
|
tabIndex: s ? -1 : 0,
|
|
1816
1868
|
"aria-haspopup": "listbox",
|
|
1817
1869
|
"aria-expanded": p,
|
|
1818
1870
|
"aria-controls": `${f}-panel`,
|
|
1819
|
-
"aria-invalid":
|
|
1871
|
+
"aria-invalid": le || void 0,
|
|
1820
1872
|
"aria-disabled": s || void 0,
|
|
1821
|
-
"aria-activedescendant": p &&
|
|
1873
|
+
"aria-activedescendant": p && b[_] ? `${f}-opt-${_}` : void 0,
|
|
1822
1874
|
className: [
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1875
|
+
U.control,
|
|
1876
|
+
U[`control--${n}`],
|
|
1877
|
+
U[`control--${he}`]
|
|
1826
1878
|
].join(" "),
|
|
1827
1879
|
onClick: () => !s && m((e) => !e),
|
|
1828
|
-
onKeyDown:
|
|
1880
|
+
onKeyDown: me,
|
|
1829
1881
|
children: [
|
|
1830
|
-
t === "multi" &&
|
|
1831
|
-
className:
|
|
1832
|
-
children:
|
|
1833
|
-
className:
|
|
1834
|
-
|
|
1882
|
+
t === "multi" && ae.length > 0 && /* @__PURE__ */ O("div", {
|
|
1883
|
+
className: U.chips,
|
|
1884
|
+
children: ae.map(({ value: t, leaving: n }) => /* @__PURE__ */ k("span", {
|
|
1885
|
+
className: [U.chip, n ? U["chip--leaving"] : ""].filter(Boolean).join(" "),
|
|
1886
|
+
"aria-hidden": n || void 0,
|
|
1887
|
+
onAnimationEnd: n ? () => ce(t) : void 0,
|
|
1888
|
+
children: [fe(t), /* @__PURE__ */ O("button", {
|
|
1835
1889
|
type: "button",
|
|
1836
|
-
className:
|
|
1890
|
+
className: U.chip__remove,
|
|
1891
|
+
tabIndex: n ? -1 : void 0,
|
|
1837
1892
|
onClick: (n) => {
|
|
1838
|
-
n.stopPropagation(),
|
|
1893
|
+
n.stopPropagation(), de(e.find((e) => e.value === t));
|
|
1839
1894
|
},
|
|
1840
|
-
"aria-label": `Remove ${
|
|
1895
|
+
"aria-label": `Remove ${fe(t)}`,
|
|
1841
1896
|
children: "×"
|
|
1842
1897
|
})]
|
|
1843
1898
|
}, t))
|
|
1844
1899
|
}),
|
|
1845
|
-
!(t === "multi" &&
|
|
1846
|
-
className: [
|
|
1847
|
-
children: t === "single" &&
|
|
1900
|
+
!(t === "multi" && ae.length > 0) && /* @__PURE__ */ O("span", {
|
|
1901
|
+
className: [U.control__value, t === "single" && pe ? "" : U["control__value--placeholder"]].filter(Boolean).join(" "),
|
|
1902
|
+
children: t === "single" && pe ? pe : o
|
|
1848
1903
|
}),
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
className: [
|
|
1904
|
+
/* @__PURE__ */ O("span", {
|
|
1905
|
+
className: [U.control__chevron, p ? U["control__chevron--open"] : ""].join(" "),
|
|
1851
1906
|
"aria-hidden": "true",
|
|
1852
|
-
children: /* @__PURE__ */
|
|
1907
|
+
children: /* @__PURE__ */ O("svg", {
|
|
1853
1908
|
width: 16,
|
|
1854
1909
|
height: 16,
|
|
1855
1910
|
viewBox: "0 0 24 24",
|
|
1856
1911
|
fill: "none",
|
|
1857
1912
|
stroke: "currentColor",
|
|
1858
|
-
strokeWidth:
|
|
1913
|
+
strokeWidth: E(16),
|
|
1859
1914
|
strokeLinecap: "round",
|
|
1860
1915
|
strokeLinejoin: "round",
|
|
1861
|
-
children: /* @__PURE__ */
|
|
1916
|
+
children: /* @__PURE__ */ O("path", { d: "m6 9 6 6 6-6" })
|
|
1862
1917
|
})
|
|
1863
1918
|
})
|
|
1864
1919
|
]
|
|
1865
1920
|
}),
|
|
1866
|
-
h && !s && /* @__PURE__ */
|
|
1867
|
-
|
|
1921
|
+
h && !s && /* @__PURE__ */ O("div", {
|
|
1922
|
+
ref: S,
|
|
1923
|
+
className: [U.panel, p ? U["panel--entering"] : U["panel--exiting"]].filter(Boolean).join(" "),
|
|
1868
1924
|
id: `${f}-panel`,
|
|
1869
1925
|
role: "listbox",
|
|
1926
|
+
"aria-multiselectable": t === "multi" || void 0,
|
|
1870
1927
|
"aria-busy": c || void 0,
|
|
1871
1928
|
onAnimationEnd: () => {
|
|
1872
1929
|
p || g(!1);
|
|
1873
1930
|
},
|
|
1874
|
-
children: c ? /* @__PURE__ */
|
|
1875
|
-
className:
|
|
1876
|
-
children: [/* @__PURE__ */
|
|
1877
|
-
className:
|
|
1931
|
+
children: c ? /* @__PURE__ */ k("div", {
|
|
1932
|
+
className: U.panel__loading,
|
|
1933
|
+
children: [/* @__PURE__ */ O("span", {
|
|
1934
|
+
className: U.panel__spinner,
|
|
1878
1935
|
"aria-hidden": "true"
|
|
1879
1936
|
}), "Loading…"]
|
|
1880
|
-
}) :
|
|
1881
|
-
className:
|
|
1937
|
+
}) : b.length === 0 ? /* @__PURE__ */ O("div", {
|
|
1938
|
+
className: U.panel__empty,
|
|
1882
1939
|
children: "No options available"
|
|
1883
|
-
}) :
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1940
|
+
}) : /* @__PURE__ */ k(Be, { children: [C && /* @__PURE__ */ O("span", {
|
|
1941
|
+
"aria-hidden": "true",
|
|
1942
|
+
className: [U.optionHighlight, ee ? U["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
|
|
1943
|
+
style: {
|
|
1944
|
+
transform: `translateY(${C.top}px)`,
|
|
1945
|
+
height: C.height
|
|
1946
|
+
}
|
|
1947
|
+
}), b.map((e, n) => {
|
|
1948
|
+
let r = T.includes(e.value);
|
|
1949
|
+
return /* @__PURE__ */ k("div", {
|
|
1950
|
+
ref: (e) => {
|
|
1951
|
+
x.current[n] = e;
|
|
1952
|
+
},
|
|
1953
|
+
id: `${f}-opt-${n}`,
|
|
1887
1954
|
role: "option",
|
|
1888
|
-
"aria-selected":
|
|
1955
|
+
"aria-selected": r,
|
|
1889
1956
|
className: [
|
|
1890
|
-
|
|
1891
|
-
t ===
|
|
1892
|
-
|
|
1893
|
-
e.disabled ? W["option--disabled"] : ""
|
|
1957
|
+
U.option,
|
|
1958
|
+
r && t === "single" ? U["option--selected"] : "",
|
|
1959
|
+
e.disabled ? U["option--disabled"] : ""
|
|
1894
1960
|
].filter(Boolean).join(" "),
|
|
1895
|
-
onMouseEnter: () =>
|
|
1896
|
-
|
|
1961
|
+
onMouseEnter: () => {
|
|
1962
|
+
e.disabled || v(n);
|
|
1963
|
+
},
|
|
1964
|
+
onClick: () => de(e),
|
|
1897
1965
|
children: [
|
|
1898
|
-
|
|
1899
|
-
className:
|
|
1966
|
+
t === "multi" && /* @__PURE__ */ O("span", {
|
|
1967
|
+
className: [U.option__box, r ? U["option__box--checked"] : ""].filter(Boolean).join(" "),
|
|
1968
|
+
"aria-hidden": "true",
|
|
1969
|
+
children: /* @__PURE__ */ O("svg", {
|
|
1970
|
+
width: 12,
|
|
1971
|
+
height: 12,
|
|
1972
|
+
viewBox: "0 0 24 24",
|
|
1973
|
+
fill: "none",
|
|
1974
|
+
stroke: "currentColor",
|
|
1975
|
+
strokeWidth: E(12),
|
|
1976
|
+
strokeLinecap: "round",
|
|
1977
|
+
strokeLinejoin: "round",
|
|
1978
|
+
children: /* @__PURE__ */ O("polyline", { points: "20 6 9 17 4 12" })
|
|
1979
|
+
})
|
|
1980
|
+
}),
|
|
1981
|
+
e.icon && /* @__PURE__ */ O("span", {
|
|
1982
|
+
className: U.option__icon,
|
|
1900
1983
|
"aria-hidden": "true",
|
|
1901
1984
|
children: e.icon
|
|
1902
1985
|
}),
|
|
1903
|
-
/* @__PURE__ */
|
|
1904
|
-
className:
|
|
1986
|
+
/* @__PURE__ */ O("span", {
|
|
1987
|
+
className: U.option__label,
|
|
1905
1988
|
children: e.label
|
|
1906
1989
|
}),
|
|
1907
|
-
|
|
1908
|
-
className:
|
|
1990
|
+
r && t === "single" && /* @__PURE__ */ O("span", {
|
|
1991
|
+
className: U.option__check,
|
|
1909
1992
|
"aria-hidden": "true",
|
|
1910
|
-
children: /* @__PURE__ */
|
|
1993
|
+
children: /* @__PURE__ */ O("svg", {
|
|
1911
1994
|
width: 16,
|
|
1912
1995
|
height: 16,
|
|
1913
1996
|
viewBox: "0 0 24 24",
|
|
@@ -1916,25 +1999,25 @@ var Xt = [
|
|
|
1916
1999
|
strokeWidth: 2,
|
|
1917
2000
|
strokeLinecap: "round",
|
|
1918
2001
|
strokeLinejoin: "round",
|
|
1919
|
-
children: /* @__PURE__ */
|
|
2002
|
+
children: /* @__PURE__ */ O("polyline", { points: "20 6 9 17 4 12" })
|
|
1920
2003
|
})
|
|
1921
2004
|
})
|
|
1922
2005
|
]
|
|
1923
2006
|
}, e.value);
|
|
1924
|
-
})
|
|
2007
|
+
})] })
|
|
1925
2008
|
}),
|
|
1926
|
-
(i || a) && /* @__PURE__ */
|
|
1927
|
-
className:
|
|
2009
|
+
(i || a) && /* @__PURE__ */ O("span", {
|
|
2010
|
+
className: le ? U.field__error : U.field__description,
|
|
1928
2011
|
children: a || i
|
|
1929
2012
|
})
|
|
1930
2013
|
]
|
|
1931
2014
|
});
|
|
1932
|
-
},
|
|
2015
|
+
}, Xn = {
|
|
1933
2016
|
chart: "_chart_aiboa_2",
|
|
1934
2017
|
center: "_center_aiboa_26",
|
|
1935
2018
|
center__value: "_center__value_aiboa_35",
|
|
1936
2019
|
center__caption: "_center__caption_aiboa_36"
|
|
1937
|
-
},
|
|
2020
|
+
}, Zn = {
|
|
1938
2021
|
sm: {
|
|
1939
2022
|
h: 180,
|
|
1940
2023
|
inner: 50,
|
|
@@ -1955,32 +2038,32 @@ var Xt = [
|
|
|
1955
2038
|
inner: 98,
|
|
1956
2039
|
outer: 142
|
|
1957
2040
|
}
|
|
1958
|
-
},
|
|
1959
|
-
let [o, s] =
|
|
2041
|
+
}, Qn = ({ data: e, size: t = "md", centerValue: n, centerCaption: r, height: i, className: a }) => {
|
|
2042
|
+
let [o, s] = D.useState(null), [c, l] = D.useState(null), u = (e) => {
|
|
1960
2043
|
let t = e.currentTarget.getBoundingClientRect();
|
|
1961
2044
|
l({
|
|
1962
2045
|
x: e.clientX - t.left,
|
|
1963
2046
|
y: e.clientY - t.top
|
|
1964
2047
|
});
|
|
1965
|
-
}, d =
|
|
2048
|
+
}, d = D.useRef(null), f = N(d), p = [
|
|
1966
2049
|
1,
|
|
1967
2050
|
2,
|
|
1968
2051
|
3,
|
|
1969
2052
|
4,
|
|
1970
2053
|
5
|
|
1971
2054
|
].map((e) => f(`--color-chart-${e}`) ?? Xt[e - 1]), m = {
|
|
1972
|
-
...
|
|
1973
|
-
h: i ??
|
|
2055
|
+
...Zn[t],
|
|
2056
|
+
h: i ?? Zn[t].h
|
|
1974
2057
|
}, h = (m.outer - m.inner) / 2 - 7;
|
|
1975
|
-
return /* @__PURE__ */
|
|
2058
|
+
return /* @__PURE__ */ k("div", {
|
|
1976
2059
|
ref: d,
|
|
1977
|
-
className: [
|
|
2060
|
+
className: [Xn.chart, a ?? ""].filter(Boolean).join(" "),
|
|
1978
2061
|
style: { height: m.h },
|
|
1979
2062
|
onMouseMove: u,
|
|
1980
|
-
children: [/* @__PURE__ */
|
|
2063
|
+
children: [/* @__PURE__ */ O(A, {
|
|
1981
2064
|
width: "100%",
|
|
1982
2065
|
height: "100%",
|
|
1983
|
-
children: /* @__PURE__ */
|
|
2066
|
+
children: /* @__PURE__ */ k(St, { children: [/* @__PURE__ */ O(xt, {
|
|
1984
2067
|
data: e,
|
|
1985
2068
|
dataKey: "value",
|
|
1986
2069
|
nameKey: "label",
|
|
@@ -1994,27 +2077,27 @@ var Xt = [
|
|
|
1994
2077
|
onMouseLeave: () => {
|
|
1995
2078
|
s(null), l(null);
|
|
1996
2079
|
},
|
|
1997
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2080
|
+
children: e.map((e, t) => /* @__PURE__ */ O(_t, {
|
|
1998
2081
|
fill: p[t % p.length],
|
|
1999
2082
|
fillOpacity: o !== null && t !== o ? .45 : 1
|
|
2000
2083
|
}, t))
|
|
2001
|
-
}), /* @__PURE__ */
|
|
2002
|
-
content: /* @__PURE__ */
|
|
2084
|
+
}), /* @__PURE__ */ O(Mt, {
|
|
2085
|
+
content: /* @__PURE__ */ O(Qt, {}),
|
|
2003
2086
|
wrapperStyle: { zIndex: 50 },
|
|
2004
2087
|
position: c ?? void 0
|
|
2005
2088
|
})] })
|
|
2006
|
-
}), (n || r) && /* @__PURE__ */
|
|
2007
|
-
className:
|
|
2008
|
-
children: [n && /* @__PURE__ */
|
|
2009
|
-
className:
|
|
2089
|
+
}), (n || r) && /* @__PURE__ */ k("div", {
|
|
2090
|
+
className: Xn.center,
|
|
2091
|
+
children: [n && /* @__PURE__ */ O("span", {
|
|
2092
|
+
className: Xn.center__value,
|
|
2010
2093
|
children: n
|
|
2011
|
-
}), r && /* @__PURE__ */
|
|
2012
|
-
className:
|
|
2094
|
+
}), r && /* @__PURE__ */ O("span", {
|
|
2095
|
+
className: Xn.center__caption,
|
|
2013
2096
|
children: r
|
|
2014
2097
|
})]
|
|
2015
2098
|
})]
|
|
2016
2099
|
});
|
|
2017
|
-
},
|
|
2100
|
+
}, W = {
|
|
2018
2101
|
wrap: "_wrap_1b5p5_2",
|
|
2019
2102
|
dropzone: "_dropzone_1b5p5_4",
|
|
2020
2103
|
"dropzone--dragging": "_dropzone--dragging_1b5p5_21",
|
|
@@ -2028,18 +2111,18 @@ var Xt = [
|
|
|
2028
2111
|
file__icon: "_file__icon_1b5p5_45",
|
|
2029
2112
|
file__name: "_file__name_1b5p5_46",
|
|
2030
2113
|
file__remove: "_file__remove_1b5p5_47"
|
|
2031
|
-
},
|
|
2032
|
-
let a =
|
|
2114
|
+
}, $n = ({ accept: e, multiple: t, hint: n = "SVG, PNG, JPG or PDF (max. 2MB)", onFilesChange: r, className: i }) => {
|
|
2115
|
+
let a = D.useRef(null), [o, s] = D.useState(!1), [c, l] = D.useState([]), u = (e) => {
|
|
2033
2116
|
l(e), r?.(e);
|
|
2034
2117
|
}, d = (e) => {
|
|
2035
2118
|
if (!e) return;
|
|
2036
2119
|
let n = Array.from(e);
|
|
2037
2120
|
u(t ? [...c, ...n] : n.slice(0, 1));
|
|
2038
2121
|
}, f = (e) => u(c.filter((t, n) => n !== e));
|
|
2039
|
-
return /* @__PURE__ */
|
|
2040
|
-
className: [
|
|
2041
|
-
children: [/* @__PURE__ */
|
|
2042
|
-
className: [
|
|
2122
|
+
return /* @__PURE__ */ k("div", {
|
|
2123
|
+
className: [W.wrap, i ?? ""].filter(Boolean).join(" "),
|
|
2124
|
+
children: [/* @__PURE__ */ k("div", {
|
|
2125
|
+
className: [W.dropzone, o ? W["dropzone--dragging"] : ""].filter(Boolean).join(" "),
|
|
2043
2126
|
onClick: () => a.current?.click(),
|
|
2044
2127
|
onDragOver: (e) => {
|
|
2045
2128
|
e.preventDefault(), s(!0);
|
|
@@ -2054,66 +2137,66 @@ var Xt = [
|
|
|
2054
2137
|
(e.key === "Enter" || e.key === " ") && a.current?.click();
|
|
2055
2138
|
},
|
|
2056
2139
|
children: [
|
|
2057
|
-
/* @__PURE__ */
|
|
2058
|
-
className:
|
|
2140
|
+
/* @__PURE__ */ O("span", {
|
|
2141
|
+
className: W.dropzone__icon,
|
|
2059
2142
|
"aria-hidden": "true",
|
|
2060
|
-
children: /* @__PURE__ */
|
|
2143
|
+
children: /* @__PURE__ */ O(ut, {
|
|
2061
2144
|
size: 22,
|
|
2062
|
-
strokeWidth:
|
|
2145
|
+
strokeWidth: E(22)
|
|
2063
2146
|
})
|
|
2064
2147
|
}),
|
|
2065
|
-
/* @__PURE__ */
|
|
2066
|
-
className:
|
|
2067
|
-
children: [/* @__PURE__ */
|
|
2068
|
-
className:
|
|
2148
|
+
/* @__PURE__ */ k("span", {
|
|
2149
|
+
className: W.dropzone__label,
|
|
2150
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2151
|
+
className: W.dropzone__link,
|
|
2069
2152
|
children: "Click to upload"
|
|
2070
2153
|
}), " or drag and drop"]
|
|
2071
2154
|
}),
|
|
2072
|
-
/* @__PURE__ */
|
|
2073
|
-
className:
|
|
2155
|
+
/* @__PURE__ */ O("span", {
|
|
2156
|
+
className: W.dropzone__hint,
|
|
2074
2157
|
children: n
|
|
2075
2158
|
}),
|
|
2076
|
-
/* @__PURE__ */
|
|
2159
|
+
/* @__PURE__ */ O("input", {
|
|
2077
2160
|
ref: a,
|
|
2078
2161
|
type: "file",
|
|
2079
2162
|
accept: e,
|
|
2080
2163
|
multiple: t,
|
|
2081
|
-
className:
|
|
2164
|
+
className: W.input,
|
|
2082
2165
|
onChange: (e) => d(e.target.files)
|
|
2083
2166
|
})
|
|
2084
2167
|
]
|
|
2085
|
-
}), c.length > 0 && /* @__PURE__ */
|
|
2086
|
-
className:
|
|
2087
|
-
children: c.map((e, t) => /* @__PURE__ */
|
|
2088
|
-
className:
|
|
2168
|
+
}), c.length > 0 && /* @__PURE__ */ O("ul", {
|
|
2169
|
+
className: W.files,
|
|
2170
|
+
children: c.map((e, t) => /* @__PURE__ */ k("li", {
|
|
2171
|
+
className: W.file,
|
|
2089
2172
|
children: [
|
|
2090
|
-
/* @__PURE__ */
|
|
2091
|
-
className:
|
|
2173
|
+
/* @__PURE__ */ O("span", {
|
|
2174
|
+
className: W.file__icon,
|
|
2092
2175
|
"aria-hidden": "true",
|
|
2093
|
-
children: /* @__PURE__ */
|
|
2176
|
+
children: /* @__PURE__ */ O(Ye, {
|
|
2094
2177
|
size: 16,
|
|
2095
|
-
strokeWidth:
|
|
2178
|
+
strokeWidth: E(16)
|
|
2096
2179
|
})
|
|
2097
2180
|
}),
|
|
2098
|
-
/* @__PURE__ */
|
|
2099
|
-
className:
|
|
2181
|
+
/* @__PURE__ */ O("span", {
|
|
2182
|
+
className: W.file__name,
|
|
2100
2183
|
children: e.name
|
|
2101
2184
|
}),
|
|
2102
|
-
/* @__PURE__ */
|
|
2185
|
+
/* @__PURE__ */ O("button", {
|
|
2103
2186
|
type: "button",
|
|
2104
|
-
className:
|
|
2187
|
+
className: W.file__remove,
|
|
2105
2188
|
onClick: () => f(t),
|
|
2106
2189
|
"aria-label": `Remove ${e.name}`,
|
|
2107
|
-
children: /* @__PURE__ */
|
|
2190
|
+
children: /* @__PURE__ */ O(dt, {
|
|
2108
2191
|
size: 14,
|
|
2109
|
-
strokeWidth:
|
|
2192
|
+
strokeWidth: E(14)
|
|
2110
2193
|
})
|
|
2111
2194
|
})
|
|
2112
2195
|
]
|
|
2113
2196
|
}, t))
|
|
2114
2197
|
})]
|
|
2115
2198
|
});
|
|
2116
|
-
},
|
|
2199
|
+
}, G = {
|
|
2117
2200
|
chart: "_chart_1m9hd_1",
|
|
2118
2201
|
svg: "_svg_1m9hd_7",
|
|
2119
2202
|
segment: "_segment_1m9hd_12",
|
|
@@ -2126,25 +2209,25 @@ var Xt = [
|
|
|
2126
2209
|
tooltip__dot: "_tooltip__dot_1m9hd_68",
|
|
2127
2210
|
tooltip__label: "_tooltip__label_1m9hd_74",
|
|
2128
2211
|
tooltip__value: "_tooltip__value_1m9hd_75"
|
|
2129
|
-
},
|
|
2212
|
+
}, er = {
|
|
2130
2213
|
sm: 180,
|
|
2131
2214
|
md: 240,
|
|
2132
2215
|
lg: 320,
|
|
2133
2216
|
xl: 420
|
|
2134
|
-
},
|
|
2135
|
-
let [r, i] =
|
|
2136
|
-
g.push(h(e[e.length - 1]?.value ?? 0) *
|
|
2137
|
-
let _ = (t) => e.length <= 1 ? 1 :
|
|
2138
|
-
return /* @__PURE__ */
|
|
2217
|
+
}, tr = 560, nr = .3, rr = .55, ir = ({ data: e, size: t = "md", className: n }) => {
|
|
2218
|
+
let [r, i] = D.useState(null), a = D.useRef(null), o = N(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-bg-canvas") ?? "#fafaf9", l = e[0]?.value || 1, u = er[t], d = u * .66, f = d / 2 + 8, p = tr / e.length, m = e[0]?.value || 1, h = (e) => e / m * d, g = e.map((e) => h(e.value));
|
|
2219
|
+
g.push(h(e[e.length - 1]?.value ?? 0) * rr);
|
|
2220
|
+
let _ = (t) => e.length <= 1 ? 1 : nr + t / (e.length - 1) * (1 - nr), v = r === null ? null : e[r], y = r === null ? 0 : f - g[r] / 2, b = r === null ? 0 : r * p + p / 2;
|
|
2221
|
+
return /* @__PURE__ */ k("div", {
|
|
2139
2222
|
ref: a,
|
|
2140
|
-
className: [
|
|
2223
|
+
className: [G.chart, n ?? ""].filter(Boolean).join(" "),
|
|
2141
2224
|
style: { height: u },
|
|
2142
2225
|
children: [
|
|
2143
|
-
/* @__PURE__ */
|
|
2144
|
-
viewBox: `0 0 ${
|
|
2226
|
+
/* @__PURE__ */ O("svg", {
|
|
2227
|
+
viewBox: `0 0 ${tr} ${u}`,
|
|
2145
2228
|
width: "100%",
|
|
2146
2229
|
height: u,
|
|
2147
|
-
className:
|
|
2230
|
+
className: G.svg,
|
|
2148
2231
|
children: e.map((e, t) => {
|
|
2149
2232
|
let n = t * p, a = (t + 1) * p, o = (n + a) / 2, c = g[t] / 2, u = g[t + 1] / 2, d = f - c, m = f - u, h = f + c, v = f + u, y = [
|
|
2150
2233
|
`M ${n} ${d}`,
|
|
@@ -2153,56 +2236,56 @@ var Xt = [
|
|
|
2153
2236
|
`C ${o} ${v} ${o} ${h} ${n} ${h}`,
|
|
2154
2237
|
"Z"
|
|
2155
2238
|
].join(" "), b = r === null ? _(t) : t === r ? 1 : .45, x = Math.round(e.value / l * 100);
|
|
2156
|
-
return /* @__PURE__ */
|
|
2157
|
-
className:
|
|
2239
|
+
return /* @__PURE__ */ k("g", {
|
|
2240
|
+
className: G.segment,
|
|
2158
2241
|
onMouseEnter: () => i(t),
|
|
2159
2242
|
onMouseLeave: () => i(null),
|
|
2160
|
-
children: [/* @__PURE__ */
|
|
2243
|
+
children: [/* @__PURE__ */ O("path", {
|
|
2161
2244
|
d: y,
|
|
2162
2245
|
fill: s,
|
|
2163
2246
|
fillOpacity: b
|
|
2164
|
-
}), /* @__PURE__ */
|
|
2247
|
+
}), /* @__PURE__ */ k("text", {
|
|
2165
2248
|
x: o,
|
|
2166
2249
|
y: f,
|
|
2167
2250
|
textAnchor: "middle",
|
|
2168
2251
|
dominantBaseline: "middle",
|
|
2169
|
-
className:
|
|
2252
|
+
className: G.pctLabel,
|
|
2170
2253
|
children: [x, "%"]
|
|
2171
2254
|
})]
|
|
2172
2255
|
}, t);
|
|
2173
2256
|
})
|
|
2174
2257
|
}),
|
|
2175
|
-
/* @__PURE__ */
|
|
2176
|
-
className:
|
|
2258
|
+
/* @__PURE__ */ O("div", {
|
|
2259
|
+
className: G.labels,
|
|
2177
2260
|
style: { gridTemplateColumns: `repeat(${e.length}, 1fr)` },
|
|
2178
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2179
|
-
className:
|
|
2261
|
+
children: e.map((e, t) => /* @__PURE__ */ O("span", {
|
|
2262
|
+
className: G.labelItem,
|
|
2180
2263
|
children: e.label
|
|
2181
2264
|
}, t))
|
|
2182
2265
|
}),
|
|
2183
|
-
v && /* @__PURE__ */
|
|
2184
|
-
className:
|
|
2266
|
+
v && /* @__PURE__ */ k("div", {
|
|
2267
|
+
className: G.tooltip,
|
|
2185
2268
|
style: {
|
|
2186
|
-
left: `${b /
|
|
2269
|
+
left: `${b / tr * 100}%`,
|
|
2187
2270
|
top: `${y / u * 100}%`,
|
|
2188
2271
|
background: c
|
|
2189
2272
|
},
|
|
2190
|
-
children: [/* @__PURE__ */
|
|
2191
|
-
className:
|
|
2273
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2274
|
+
className: G.tooltip__title,
|
|
2192
2275
|
children: v.label
|
|
2193
|
-
}), /* @__PURE__ */
|
|
2194
|
-
className:
|
|
2276
|
+
}), /* @__PURE__ */ k("div", {
|
|
2277
|
+
className: G.tooltip__row,
|
|
2195
2278
|
children: [
|
|
2196
|
-
/* @__PURE__ */
|
|
2197
|
-
className:
|
|
2279
|
+
/* @__PURE__ */ O("span", {
|
|
2280
|
+
className: G.tooltip__dot,
|
|
2198
2281
|
style: { background: s }
|
|
2199
2282
|
}),
|
|
2200
|
-
/* @__PURE__ */
|
|
2201
|
-
className:
|
|
2283
|
+
/* @__PURE__ */ O("span", {
|
|
2284
|
+
className: G.tooltip__label,
|
|
2202
2285
|
children: "Share"
|
|
2203
2286
|
}),
|
|
2204
|
-
/* @__PURE__ */
|
|
2205
|
-
className:
|
|
2287
|
+
/* @__PURE__ */ k("span", {
|
|
2288
|
+
className: G.tooltip__value,
|
|
2206
2289
|
children: [Math.round(v.value / l * 100), "%"]
|
|
2207
2290
|
})
|
|
2208
2291
|
]
|
|
@@ -2210,7 +2293,7 @@ var Xt = [
|
|
|
2210
2293
|
})
|
|
2211
2294
|
]
|
|
2212
2295
|
});
|
|
2213
|
-
},
|
|
2296
|
+
}, K = {
|
|
2214
2297
|
chart: "_chart_1yc8b_1",
|
|
2215
2298
|
grid: "_grid_1yc8b_6",
|
|
2216
2299
|
rowLabel: "_rowLabel_1yc8b_13",
|
|
@@ -2226,8 +2309,8 @@ var Xt = [
|
|
|
2226
2309
|
tooltip__dot: "_tooltip__dot_1yc8b_84",
|
|
2227
2310
|
tooltip__label: "_tooltip__label_1yc8b_91",
|
|
2228
2311
|
tooltip__value: "_tooltip__value_1yc8b_92"
|
|
2229
|
-
},
|
|
2230
|
-
let o =
|
|
2312
|
+
}, ar = .12, or = .45, sr = ({ data: e, rowLabels: t, colLabels: n, valueLabel: r = "Value", size: i = "md", className: a }) => {
|
|
2313
|
+
let o = D.useRef(null), s = N(o), c = D.useRef(null), [l, u] = D.useState(null), d = s("--color-chart-1") ?? "#ff4700", f = Math.max(1, ...e.flat()), p = e[0]?.length ?? 0, m = (e, t, n) => (r) => {
|
|
2231
2314
|
let i = r.currentTarget.getBoundingClientRect(), a = c.current?.getBoundingClientRect();
|
|
2232
2315
|
a && u({
|
|
2233
2316
|
row: e,
|
|
@@ -2237,56 +2320,56 @@ var Xt = [
|
|
|
2237
2320
|
top: i.top - a.top
|
|
2238
2321
|
});
|
|
2239
2322
|
};
|
|
2240
|
-
return /* @__PURE__ */
|
|
2323
|
+
return /* @__PURE__ */ O("div", {
|
|
2241
2324
|
ref: o,
|
|
2242
2325
|
className: [
|
|
2243
|
-
|
|
2244
|
-
|
|
2326
|
+
K.chart,
|
|
2327
|
+
K[`chart--${i}`],
|
|
2245
2328
|
a ?? ""
|
|
2246
2329
|
].filter(Boolean).join(" "),
|
|
2247
|
-
children: /* @__PURE__ */
|
|
2330
|
+
children: /* @__PURE__ */ k("div", {
|
|
2248
2331
|
ref: c,
|
|
2249
|
-
className:
|
|
2332
|
+
className: K.grid,
|
|
2250
2333
|
style: { gridTemplateColumns: `auto repeat(${p}, 1fr)` },
|
|
2251
2334
|
children: [
|
|
2252
|
-
e.map((e, n) => /* @__PURE__ */
|
|
2253
|
-
className:
|
|
2335
|
+
e.map((e, n) => /* @__PURE__ */ k(D.Fragment, { children: [/* @__PURE__ */ O("span", {
|
|
2336
|
+
className: K.rowLabel,
|
|
2254
2337
|
children: t?.[n] ?? ""
|
|
2255
2338
|
}), e.map((e, t) => {
|
|
2256
|
-
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 :
|
|
2257
|
-
return /* @__PURE__ */
|
|
2258
|
-
className:
|
|
2339
|
+
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 : ar + e / f * (1 - ar);
|
|
2340
|
+
return /* @__PURE__ */ O("div", {
|
|
2341
|
+
className: K.cell,
|
|
2259
2342
|
style: {
|
|
2260
2343
|
background: d,
|
|
2261
|
-
opacity: i ?
|
|
2344
|
+
opacity: i ? or : a
|
|
2262
2345
|
},
|
|
2263
2346
|
onMouseEnter: m(n, t, e),
|
|
2264
2347
|
onMouseLeave: () => u(null)
|
|
2265
2348
|
}, t);
|
|
2266
2349
|
})] }, n)),
|
|
2267
|
-
n && /* @__PURE__ */
|
|
2268
|
-
className:
|
|
2350
|
+
n && /* @__PURE__ */ k(Be, { children: [/* @__PURE__ */ O("span", {}), n.map((e, t) => /* @__PURE__ */ O("span", {
|
|
2351
|
+
className: K.colLabel,
|
|
2269
2352
|
children: e
|
|
2270
2353
|
}, t))] }),
|
|
2271
|
-
l && /* @__PURE__ */
|
|
2272
|
-
className:
|
|
2354
|
+
l && /* @__PURE__ */ k("div", {
|
|
2355
|
+
className: K.tooltip,
|
|
2273
2356
|
style: {
|
|
2274
2357
|
left: l.left,
|
|
2275
2358
|
top: l.top
|
|
2276
2359
|
},
|
|
2277
|
-
children: [/* @__PURE__ */
|
|
2278
|
-
className:
|
|
2360
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2361
|
+
className: K.tooltip__title,
|
|
2279
2362
|
children: [t?.[l.row], n?.[l.col]].filter(Boolean).join(" · ") || `Row ${l.row + 1}, Col ${l.col + 1}`
|
|
2280
|
-
}), /* @__PURE__ */
|
|
2281
|
-
className:
|
|
2363
|
+
}), /* @__PURE__ */ k("div", {
|
|
2364
|
+
className: K.tooltip__row,
|
|
2282
2365
|
children: [
|
|
2283
|
-
/* @__PURE__ */
|
|
2284
|
-
/* @__PURE__ */
|
|
2285
|
-
className:
|
|
2366
|
+
/* @__PURE__ */ O("span", { className: K.tooltip__dot }),
|
|
2367
|
+
/* @__PURE__ */ O("span", {
|
|
2368
|
+
className: K.tooltip__label,
|
|
2286
2369
|
children: r
|
|
2287
2370
|
}),
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
className:
|
|
2371
|
+
/* @__PURE__ */ O("span", {
|
|
2372
|
+
className: K.tooltip__value,
|
|
2290
2373
|
children: l.value
|
|
2291
2374
|
})
|
|
2292
2375
|
]
|
|
@@ -2295,36 +2378,36 @@ var Xt = [
|
|
|
2295
2378
|
]
|
|
2296
2379
|
})
|
|
2297
2380
|
});
|
|
2298
|
-
},
|
|
2299
|
-
className: [
|
|
2381
|
+
}, cr = { kbd: "_kbd_1cz4m_3" }, lr = ({ children: e, className: t }) => /* @__PURE__ */ O("kbd", {
|
|
2382
|
+
className: [cr.kbd, t ?? ""].filter(Boolean).join(" "),
|
|
2300
2383
|
children: e
|
|
2301
|
-
}),
|
|
2384
|
+
}), ur = {
|
|
2302
2385
|
label: "_label_rcdks_3",
|
|
2303
2386
|
label__required: "_label__required_rcdks_17"
|
|
2304
|
-
},
|
|
2387
|
+
}, dr = D.forwardRef(({ required: e, children: t, className: n, ...r }, i) => /* @__PURE__ */ k("label", {
|
|
2305
2388
|
ref: i,
|
|
2306
|
-
className: [
|
|
2389
|
+
className: [ur.label, n ?? ""].filter(Boolean).join(" "),
|
|
2307
2390
|
...r,
|
|
2308
|
-
children: [t, e && /* @__PURE__ */
|
|
2309
|
-
className:
|
|
2391
|
+
children: [t, e && /* @__PURE__ */ O("span", {
|
|
2392
|
+
className: ur.label__required,
|
|
2310
2393
|
"aria-hidden": "true",
|
|
2311
2394
|
children: " *"
|
|
2312
2395
|
})]
|
|
2313
2396
|
}));
|
|
2314
|
-
|
|
2315
|
-
var
|
|
2397
|
+
dr.displayName = "Label";
|
|
2398
|
+
var fr = { chart: "_chart_18fgd_2" }, pr = {
|
|
2316
2399
|
sm: 180,
|
|
2317
2400
|
md: 240,
|
|
2318
2401
|
lg: 320,
|
|
2319
2402
|
xl: 420
|
|
2320
|
-
},
|
|
2403
|
+
}, mr = /* @__PURE__ */ new Set([
|
|
2321
2404
|
"dots",
|
|
2322
2405
|
"custom-dots",
|
|
2323
2406
|
"dots-colors",
|
|
2324
2407
|
"label",
|
|
2325
2408
|
"custom-label"
|
|
2326
|
-
]),
|
|
2327
|
-
let l =
|
|
2409
|
+
]), hr = ({ data: e, series: t, xKey: n = "label", variant: r = "default", labelKey: i, size: a = "md", height: o, showLegend: s, className: c }) => {
|
|
2410
|
+
let l = D.useRef(null), u = N(l), d = [
|
|
2328
2411
|
1,
|
|
2329
2412
|
2,
|
|
2330
2413
|
3,
|
|
@@ -2334,26 +2417,26 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2334
2417
|
d[1],
|
|
2335
2418
|
d[0],
|
|
2336
2419
|
...d.slice(2)
|
|
2337
|
-
], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v =
|
|
2420
|
+
], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v = mr.has(r), y = (e) => (t) => {
|
|
2338
2421
|
let { cx: n, cy: r } = t;
|
|
2339
|
-
return /* @__PURE__ */
|
|
2422
|
+
return /* @__PURE__ */ k("g", {
|
|
2340
2423
|
stroke: e,
|
|
2341
2424
|
strokeWidth: 2,
|
|
2342
2425
|
strokeLinecap: "round",
|
|
2343
2426
|
children: [
|
|
2344
|
-
/* @__PURE__ */
|
|
2427
|
+
/* @__PURE__ */ O("line", {
|
|
2345
2428
|
x1: n,
|
|
2346
2429
|
y1: r - 3,
|
|
2347
2430
|
x2: n,
|
|
2348
2431
|
y2: r - 3 - 6
|
|
2349
2432
|
}),
|
|
2350
|
-
/* @__PURE__ */
|
|
2433
|
+
/* @__PURE__ */ O("line", {
|
|
2351
2434
|
x1: n,
|
|
2352
2435
|
y1: r + 3,
|
|
2353
2436
|
x2: n,
|
|
2354
2437
|
y2: r + 3 + 6
|
|
2355
2438
|
}),
|
|
2356
|
-
/* @__PURE__ */
|
|
2439
|
+
/* @__PURE__ */ O("circle", {
|
|
2357
2440
|
cx: n,
|
|
2358
2441
|
cy: r,
|
|
2359
2442
|
r: 3,
|
|
@@ -2364,7 +2447,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2364
2447
|
});
|
|
2365
2448
|
}, b = (e) => {
|
|
2366
2449
|
let { cx: t, cy: n, index: r } = e, i = d[(r ?? 0) % d.length];
|
|
2367
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ O("circle", {
|
|
2368
2451
|
cx: t,
|
|
2369
2452
|
cy: n,
|
|
2370
2453
|
r: 4,
|
|
@@ -2374,7 +2457,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2374
2457
|
});
|
|
2375
2458
|
}, x = (t) => {
|
|
2376
2459
|
let { x: n, y: a, value: o, index: s } = t, c = r === "custom-label" && i ? e[s]?.[i] : o;
|
|
2377
|
-
return c === void 0 ? /* @__PURE__ */
|
|
2460
|
+
return c === void 0 ? /* @__PURE__ */ O("g", {}) : /* @__PURE__ */ O("text", {
|
|
2378
2461
|
x: n,
|
|
2379
2462
|
y: a - 12,
|
|
2380
2463
|
textAnchor: "middle",
|
|
@@ -2385,13 +2468,13 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2385
2468
|
children: c
|
|
2386
2469
|
});
|
|
2387
2470
|
};
|
|
2388
|
-
return /* @__PURE__ */
|
|
2471
|
+
return /* @__PURE__ */ O("div", {
|
|
2389
2472
|
ref: l,
|
|
2390
|
-
className: [
|
|
2391
|
-
children: /* @__PURE__ */
|
|
2473
|
+
className: [fr.chart, c ?? ""].filter(Boolean).join(" "),
|
|
2474
|
+
children: /* @__PURE__ */ O(A, {
|
|
2392
2475
|
width: "100%",
|
|
2393
|
-
height: o ??
|
|
2394
|
-
children: /* @__PURE__ */
|
|
2476
|
+
height: o ?? pr[a],
|
|
2477
|
+
children: /* @__PURE__ */ k(bt, {
|
|
2395
2478
|
data: e,
|
|
2396
2479
|
margin: {
|
|
2397
2480
|
top: 8,
|
|
@@ -2400,12 +2483,12 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2400
2483
|
left: 12
|
|
2401
2484
|
},
|
|
2402
2485
|
children: [
|
|
2403
|
-
/* @__PURE__ */
|
|
2486
|
+
/* @__PURE__ */ O(gt, {
|
|
2404
2487
|
strokeDasharray: "3 3",
|
|
2405
2488
|
stroke: p,
|
|
2406
2489
|
vertical: !1
|
|
2407
2490
|
}),
|
|
2408
|
-
/* @__PURE__ */
|
|
2491
|
+
/* @__PURE__ */ O(Nt, {
|
|
2409
2492
|
dataKey: n,
|
|
2410
2493
|
stroke: m,
|
|
2411
2494
|
fontSize: 12,
|
|
@@ -2413,15 +2496,15 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2413
2496
|
axisLine: !1,
|
|
2414
2497
|
interval: 0
|
|
2415
2498
|
}),
|
|
2416
|
-
/* @__PURE__ */
|
|
2499
|
+
/* @__PURE__ */ O(Mt, {
|
|
2417
2500
|
cursor: {
|
|
2418
2501
|
stroke: u("--color-border-default") ?? "#dbdad7",
|
|
2419
2502
|
strokeWidth: 1
|
|
2420
2503
|
},
|
|
2421
|
-
content: /* @__PURE__ */
|
|
2504
|
+
content: /* @__PURE__ */ O(Qt, {}),
|
|
2422
2505
|
wrapperStyle: { zIndex: 50 }
|
|
2423
2506
|
}),
|
|
2424
|
-
s && /* @__PURE__ */
|
|
2507
|
+
s && /* @__PURE__ */ O(vt, { wrapperStyle: {
|
|
2425
2508
|
fontSize: 12,
|
|
2426
2509
|
fontFamily: "var(--font-sans)"
|
|
2427
2510
|
} }),
|
|
@@ -2432,7 +2515,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2432
2515
|
stroke: h,
|
|
2433
2516
|
strokeWidth: 1.5
|
|
2434
2517
|
} : !1;
|
|
2435
|
-
return /* @__PURE__ */
|
|
2518
|
+
return /* @__PURE__ */ O(yt, {
|
|
2436
2519
|
type: _,
|
|
2437
2520
|
dataKey: e,
|
|
2438
2521
|
stroke: n,
|
|
@@ -2451,7 +2534,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2451
2534
|
})
|
|
2452
2535
|
})
|
|
2453
2536
|
});
|
|
2454
|
-
},
|
|
2537
|
+
}, q = {
|
|
2455
2538
|
item: "_item_1b54h_2",
|
|
2456
2539
|
"item--disabled": "_item--disabled_1b54h_16",
|
|
2457
2540
|
"item--selected": "_item--selected_1b54h_17",
|
|
@@ -2460,47 +2543,47 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2460
2543
|
item__title: "_item__title_1b54h_22",
|
|
2461
2544
|
item__description: "_item__description_1b54h_23",
|
|
2462
2545
|
item__trailing: "_item__trailing_1b54h_24"
|
|
2463
|
-
}, gr = ({ title: e, description: t, leading: n, trailing: r, selected: i, disabled: a, onClick: o, className: s }) => /* @__PURE__ */
|
|
2546
|
+
}, gr = ({ title: e, description: t, leading: n, trailing: r, selected: i, disabled: a, onClick: o, className: s }) => /* @__PURE__ */ k("button", {
|
|
2464
2547
|
type: "button",
|
|
2465
2548
|
disabled: a,
|
|
2466
2549
|
onClick: o,
|
|
2467
2550
|
"aria-current": i ? "true" : void 0,
|
|
2468
2551
|
className: [
|
|
2469
|
-
|
|
2470
|
-
i ?
|
|
2471
|
-
a ?
|
|
2552
|
+
q.item,
|
|
2553
|
+
i ? q["item--selected"] : "",
|
|
2554
|
+
a ? q["item--disabled"] : "",
|
|
2472
2555
|
s ?? ""
|
|
2473
2556
|
].filter(Boolean).join(" "),
|
|
2474
2557
|
children: [
|
|
2475
|
-
n && /* @__PURE__ */
|
|
2476
|
-
className:
|
|
2558
|
+
n && /* @__PURE__ */ O("span", {
|
|
2559
|
+
className: q.item__leading,
|
|
2477
2560
|
children: n
|
|
2478
2561
|
}),
|
|
2479
|
-
/* @__PURE__ */
|
|
2480
|
-
className:
|
|
2481
|
-
children: [/* @__PURE__ */
|
|
2482
|
-
className:
|
|
2562
|
+
/* @__PURE__ */ k("span", {
|
|
2563
|
+
className: q.item__text,
|
|
2564
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2565
|
+
className: q.item__title,
|
|
2483
2566
|
children: e
|
|
2484
|
-
}), t && /* @__PURE__ */
|
|
2485
|
-
className:
|
|
2567
|
+
}), t && /* @__PURE__ */ O("span", {
|
|
2568
|
+
className: q.item__description,
|
|
2486
2569
|
children: t
|
|
2487
2570
|
})]
|
|
2488
2571
|
}),
|
|
2489
|
-
r && /* @__PURE__ */
|
|
2490
|
-
className:
|
|
2572
|
+
r && /* @__PURE__ */ O("span", {
|
|
2573
|
+
className: q.item__trailing,
|
|
2491
2574
|
children: r
|
|
2492
2575
|
})
|
|
2493
2576
|
]
|
|
2494
2577
|
}), _r = {
|
|
2495
2578
|
menu: "_menu_psizn_2",
|
|
2496
2579
|
divider: "_divider_psizn_12"
|
|
2497
|
-
}, vr = ({ children: e, minWidth: t = 208, className: n, ...r }) => /* @__PURE__ */
|
|
2580
|
+
}, vr = ({ children: e, minWidth: t = 208, className: n, ...r }) => /* @__PURE__ */ O("div", {
|
|
2498
2581
|
role: "menu",
|
|
2499
2582
|
"aria-label": r["aria-label"],
|
|
2500
2583
|
style: { minWidth: t },
|
|
2501
2584
|
className: [_r.menu, n ?? ""].filter(Boolean).join(" "),
|
|
2502
2585
|
children: e
|
|
2503
|
-
}), yr = () => /* @__PURE__ */
|
|
2586
|
+
}), yr = () => /* @__PURE__ */ O("div", {
|
|
2504
2587
|
className: _r.divider,
|
|
2505
2588
|
role: "separator"
|
|
2506
2589
|
}), br = {
|
|
@@ -2514,7 +2597,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2514
2597
|
"item--destructive": "_item--destructive_1xzse_34"
|
|
2515
2598
|
}, xr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: i, className: a }) => {
|
|
2516
2599
|
let o = e === "disabled";
|
|
2517
|
-
return /* @__PURE__ */
|
|
2600
|
+
return /* @__PURE__ */ k("div", {
|
|
2518
2601
|
role: "menuitem",
|
|
2519
2602
|
"aria-disabled": o || void 0,
|
|
2520
2603
|
"aria-checked": e === "checked" || void 0,
|
|
@@ -2529,22 +2612,22 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2529
2612
|
a ?? ""
|
|
2530
2613
|
].filter(Boolean).join(" "),
|
|
2531
2614
|
children: [
|
|
2532
|
-
t && /* @__PURE__ */
|
|
2615
|
+
t && /* @__PURE__ */ O("span", {
|
|
2533
2616
|
className: br.item__icon,
|
|
2534
2617
|
"aria-hidden": "true",
|
|
2535
2618
|
children: t
|
|
2536
2619
|
}),
|
|
2537
|
-
/* @__PURE__ */
|
|
2620
|
+
/* @__PURE__ */ O("span", {
|
|
2538
2621
|
className: br.item__label,
|
|
2539
2622
|
children: r
|
|
2540
2623
|
}),
|
|
2541
|
-
n && /* @__PURE__ */
|
|
2624
|
+
n && /* @__PURE__ */ O("kbd", {
|
|
2542
2625
|
className: br.item__shortcut,
|
|
2543
2626
|
children: n
|
|
2544
2627
|
}),
|
|
2545
|
-
e === "checked" && /* @__PURE__ */
|
|
2628
|
+
e === "checked" && /* @__PURE__ */ O(Ue, {
|
|
2546
2629
|
size: 16,
|
|
2547
|
-
strokeWidth:
|
|
2630
|
+
strokeWidth: E(16),
|
|
2548
2631
|
className: br.item__check,
|
|
2549
2632
|
"aria-hidden": "true"
|
|
2550
2633
|
})
|
|
@@ -2578,7 +2661,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2578
2661
|
"donut-with-text",
|
|
2579
2662
|
"interactive"
|
|
2580
2663
|
]), Tr = /* @__PURE__ */ new Set(["donut-active"]), Er = /* @__PURE__ */ new Set(["interactive"]), Dr = /* @__PURE__ */ new Set(["donut-with-text"]), Or = Math.PI / 180, kr = ({ data: e, variant: t = "donut", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
2581
|
-
let o =
|
|
2664
|
+
let o = D.useRef(null), s = N(o), [c, l] = D.useState(void 0), u = [
|
|
2582
2665
|
1,
|
|
2583
2666
|
2,
|
|
2584
2667
|
3,
|
|
@@ -2586,7 +2669,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2586
2669
|
5
|
|
2587
2670
|
].map((e) => s(`--color-chart-${e}`) ?? Xt[e - 1]), d = s("--color-bg-surface") ?? "#ffffff", f = s("--color-fg-default") ?? "#141414", p = Cr[n], m = wr.has(t), h = Tr.has(t), g = Er.has(t), _ = m ? p.outer * .6 : 0, v = Dr.has(t) && (r || i), y = c ?? (h || g ? 0 : void 0), b = (e) => {
|
|
2588
2671
|
let { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, fill: s, index: c } = e, l = c === y, u = l && (h || g) ? 16 : 0;
|
|
2589
|
-
return l && g ? /* @__PURE__ */
|
|
2672
|
+
return l && g ? /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O(jt, {
|
|
2590
2673
|
cx: t,
|
|
2591
2674
|
cy: n,
|
|
2592
2675
|
innerRadius: r,
|
|
@@ -2594,7 +2677,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2594
2677
|
startAngle: a,
|
|
2595
2678
|
endAngle: o,
|
|
2596
2679
|
fill: s
|
|
2597
|
-
}), /* @__PURE__ */
|
|
2680
|
+
}), /* @__PURE__ */ O(jt, {
|
|
2598
2681
|
cx: t,
|
|
2599
2682
|
cy: n,
|
|
2600
2683
|
innerRadius: i + u + 3,
|
|
@@ -2602,7 +2685,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2602
2685
|
startAngle: a,
|
|
2603
2686
|
endAngle: o,
|
|
2604
2687
|
fill: s
|
|
2605
|
-
})] }) : /* @__PURE__ */
|
|
2688
|
+
})] }) : /* @__PURE__ */ O(jt, {
|
|
2606
2689
|
cx: t,
|
|
2607
2690
|
cy: n,
|
|
2608
2691
|
innerRadius: r,
|
|
@@ -2621,12 +2704,12 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2621
2704
|
};
|
|
2622
2705
|
}, S = (e) => {
|
|
2623
2706
|
let { value: t, fill: n } = e, { d: r, endX: i, endY: a, textAnchor: o } = x(e), s = i + (o === "start" ? 4 : -4);
|
|
2624
|
-
return /* @__PURE__ */
|
|
2707
|
+
return /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O("path", {
|
|
2625
2708
|
d: r,
|
|
2626
2709
|
fill: "none",
|
|
2627
2710
|
stroke: n,
|
|
2628
2711
|
strokeWidth: 1
|
|
2629
|
-
}), /* @__PURE__ */
|
|
2712
|
+
}), /* @__PURE__ */ O("text", {
|
|
2630
2713
|
x: s,
|
|
2631
2714
|
y: a,
|
|
2632
2715
|
textAnchor: o,
|
|
@@ -2638,7 +2721,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2638
2721
|
})] });
|
|
2639
2722
|
}, C = (e) => {
|
|
2640
2723
|
let { x: t, y: n, textAnchor: r, value: i } = e;
|
|
2641
|
-
return /* @__PURE__ */
|
|
2724
|
+
return /* @__PURE__ */ O("text", {
|
|
2642
2725
|
x: t,
|
|
2643
2726
|
y: n,
|
|
2644
2727
|
textAnchor: r,
|
|
@@ -2651,7 +2734,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2651
2734
|
});
|
|
2652
2735
|
}, w = (t) => {
|
|
2653
2736
|
let { cx: n, cy: r, midAngle: i, innerRadius: a, outerRadius: o, index: s } = t, c = (a + o) / 2;
|
|
2654
|
-
return /* @__PURE__ */
|
|
2737
|
+
return /* @__PURE__ */ O("text", {
|
|
2655
2738
|
x: n + c * Math.cos(-i * Or),
|
|
2656
2739
|
y: r + c * Math.sin(-i * Or),
|
|
2657
2740
|
textAnchor: "middle",
|
|
@@ -2665,15 +2748,15 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2665
2748
|
};
|
|
2666
2749
|
if (t === "stacked") {
|
|
2667
2750
|
let t = (e) => c !== void 0 && c !== e ? .45 : 1;
|
|
2668
|
-
return /* @__PURE__ */
|
|
2751
|
+
return /* @__PURE__ */ O("div", {
|
|
2669
2752
|
ref: o,
|
|
2670
2753
|
className: [Sr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2671
2754
|
style: { height: p.h },
|
|
2672
|
-
children: /* @__PURE__ */
|
|
2755
|
+
children: /* @__PURE__ */ O(A, {
|
|
2673
2756
|
width: "100%",
|
|
2674
2757
|
height: "100%",
|
|
2675
|
-
children: /* @__PURE__ */
|
|
2676
|
-
/* @__PURE__ */
|
|
2758
|
+
children: /* @__PURE__ */ k(St, { children: [
|
|
2759
|
+
/* @__PURE__ */ O(xt, {
|
|
2677
2760
|
data: e,
|
|
2678
2761
|
dataKey: "value",
|
|
2679
2762
|
nameKey: "label",
|
|
@@ -2684,12 +2767,12 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2684
2767
|
isAnimationActive: !1,
|
|
2685
2768
|
onMouseEnter: (e, t) => l(t),
|
|
2686
2769
|
onMouseLeave: () => l(void 0),
|
|
2687
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
2770
|
+
children: e.map((e, n) => /* @__PURE__ */ O(_t, {
|
|
2688
2771
|
fill: u[n % u.length],
|
|
2689
2772
|
fillOpacity: t(n)
|
|
2690
2773
|
}, n))
|
|
2691
2774
|
}),
|
|
2692
|
-
/* @__PURE__ */
|
|
2775
|
+
/* @__PURE__ */ O(xt, {
|
|
2693
2776
|
data: e,
|
|
2694
2777
|
dataKey: "value",
|
|
2695
2778
|
nameKey: "label",
|
|
@@ -2700,27 +2783,27 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2700
2783
|
isAnimationActive: !1,
|
|
2701
2784
|
onMouseEnter: (e, t) => l(t),
|
|
2702
2785
|
onMouseLeave: () => l(void 0),
|
|
2703
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
2786
|
+
children: e.map((e, n) => /* @__PURE__ */ O(_t, {
|
|
2704
2787
|
fill: u[n % u.length],
|
|
2705
2788
|
fillOpacity: t(n)
|
|
2706
2789
|
}, n))
|
|
2707
2790
|
}),
|
|
2708
|
-
/* @__PURE__ */
|
|
2709
|
-
content: /* @__PURE__ */
|
|
2791
|
+
/* @__PURE__ */ O(Mt, {
|
|
2792
|
+
content: /* @__PURE__ */ O(Qt, {}),
|
|
2710
2793
|
wrapperStyle: { zIndex: 50 }
|
|
2711
2794
|
})
|
|
2712
2795
|
] })
|
|
2713
2796
|
})
|
|
2714
2797
|
});
|
|
2715
2798
|
}
|
|
2716
|
-
return /* @__PURE__ */
|
|
2799
|
+
return /* @__PURE__ */ k("div", {
|
|
2717
2800
|
ref: o,
|
|
2718
2801
|
className: [Sr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2719
2802
|
style: { height: p.h },
|
|
2720
|
-
children: [/* @__PURE__ */
|
|
2803
|
+
children: [/* @__PURE__ */ O(A, {
|
|
2721
2804
|
width: "100%",
|
|
2722
2805
|
height: "100%",
|
|
2723
|
-
children: /* @__PURE__ */
|
|
2806
|
+
children: /* @__PURE__ */ k(St, { children: [/* @__PURE__ */ O(xt, {
|
|
2724
2807
|
data: e,
|
|
2725
2808
|
dataKey: "value",
|
|
2726
2809
|
nameKey: "label",
|
|
@@ -2735,17 +2818,17 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2735
2818
|
labelLine: !1,
|
|
2736
2819
|
onMouseEnter: (e, t) => l(t),
|
|
2737
2820
|
onMouseLeave: () => l(void 0),
|
|
2738
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2739
|
-
}), /* @__PURE__ */
|
|
2740
|
-
content: /* @__PURE__ */
|
|
2821
|
+
children: e.map((e, t) => /* @__PURE__ */ O(_t, { fill: u[t % u.length] }, t))
|
|
2822
|
+
}), /* @__PURE__ */ O(Mt, {
|
|
2823
|
+
content: /* @__PURE__ */ O(Qt, {}),
|
|
2741
2824
|
wrapperStyle: { zIndex: 50 }
|
|
2742
2825
|
})] })
|
|
2743
|
-
}), v && /* @__PURE__ */
|
|
2826
|
+
}), v && /* @__PURE__ */ k("div", {
|
|
2744
2827
|
className: Sr.center,
|
|
2745
|
-
children: [r && /* @__PURE__ */
|
|
2828
|
+
children: [r && /* @__PURE__ */ O("span", {
|
|
2746
2829
|
className: Sr.center__value,
|
|
2747
2830
|
children: r
|
|
2748
|
-
}), i && /* @__PURE__ */
|
|
2831
|
+
}), i && /* @__PURE__ */ O("span", {
|
|
2749
2832
|
className: Sr.center__caption,
|
|
2750
2833
|
children: i
|
|
2751
2834
|
})]
|
|
@@ -2770,14 +2853,14 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2770
2853
|
panel__body: "_panel__body_16f5u_77",
|
|
2771
2854
|
panel__actions: "_panel__actions_16f5u_78"
|
|
2772
2855
|
}, Ar = ({ trigger: e, title: t, description: n, actions: r, placement: i = "bottom-start", children: a, className: o }) => {
|
|
2773
|
-
let [s, c] =
|
|
2774
|
-
return
|
|
2856
|
+
let [s, c] = D.useState(!1), [l, u] = D.useState(!1), d = D.useRef(null), f = D.useRef(null);
|
|
2857
|
+
return D.useEffect(() => {
|
|
2775
2858
|
s && u(!0);
|
|
2776
|
-
}, [s]),
|
|
2859
|
+
}, [s]), D.useEffect(() => {
|
|
2777
2860
|
if (s || !l) return;
|
|
2778
2861
|
let e = setTimeout(() => u(!1), 240);
|
|
2779
2862
|
return () => clearTimeout(e);
|
|
2780
|
-
}, [s, l]),
|
|
2863
|
+
}, [s, l]), D.useEffect(() => {
|
|
2781
2864
|
if (!s) return;
|
|
2782
2865
|
let e = (e) => {
|
|
2783
2866
|
d.current && !d.current.contains(e.target) && c(!1);
|
|
@@ -2787,18 +2870,18 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2787
2870
|
return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
|
|
2788
2871
|
document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
|
|
2789
2872
|
};
|
|
2790
|
-
}, [s]),
|
|
2873
|
+
}, [s]), D.useEffect(() => {
|
|
2791
2874
|
!s && f.current && (f.current.focus(), f.current = null);
|
|
2792
|
-
}, [s]), /* @__PURE__ */
|
|
2875
|
+
}, [s]), /* @__PURE__ */ k("div", {
|
|
2793
2876
|
className: [J.root, o ?? ""].filter(Boolean).join(" "),
|
|
2794
2877
|
ref: d,
|
|
2795
|
-
children: [/* @__PURE__ */
|
|
2878
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2796
2879
|
className: J.trigger,
|
|
2797
2880
|
onClick: () => {
|
|
2798
2881
|
s || (f.current = document.activeElement), c((e) => !e);
|
|
2799
2882
|
},
|
|
2800
2883
|
children: e
|
|
2801
|
-
}), l && /* @__PURE__ */
|
|
2884
|
+
}), l && /* @__PURE__ */ k("div", {
|
|
2802
2885
|
className: [
|
|
2803
2886
|
J.panel,
|
|
2804
2887
|
J[`panel--${i}`],
|
|
@@ -2809,19 +2892,19 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2809
2892
|
e.target === e.currentTarget && !s && u(!1);
|
|
2810
2893
|
},
|
|
2811
2894
|
children: [
|
|
2812
|
-
t && /* @__PURE__ */
|
|
2895
|
+
t && /* @__PURE__ */ O("div", {
|
|
2813
2896
|
className: J.panel__title,
|
|
2814
2897
|
children: t
|
|
2815
2898
|
}),
|
|
2816
|
-
n && /* @__PURE__ */
|
|
2899
|
+
n && /* @__PURE__ */ O("div", {
|
|
2817
2900
|
className: J.panel__description,
|
|
2818
2901
|
children: n
|
|
2819
2902
|
}),
|
|
2820
|
-
a && /* @__PURE__ */
|
|
2903
|
+
a && /* @__PURE__ */ O("div", {
|
|
2821
2904
|
className: J.panel__body,
|
|
2822
2905
|
children: a
|
|
2823
2906
|
}),
|
|
2824
|
-
r && /* @__PURE__ */
|
|
2907
|
+
r && /* @__PURE__ */ O("div", {
|
|
2825
2908
|
className: J.panel__actions,
|
|
2826
2909
|
children: r
|
|
2827
2910
|
})
|
|
@@ -2858,13 +2941,13 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2858
2941
|
.4,
|
|
2859
2942
|
.2
|
|
2860
2943
|
], Br = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
|
|
2861
|
-
let a =
|
|
2862
|
-
|
|
2944
|
+
let a = D.useRef(null), o = N(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-chart-2") ?? "#5b92dd", l = o("--color-border-default") ?? "#dbdad7", u = o("--color-fg-subtle") ?? "#a8a29b", d = t === "multiple", f = t === "lines-only", p = d || t === "custom-label" || f, m = !f, h = t === "dots" || t === "dots-grid-none" || t === "circle-grid" || t === "circle-grid-no-lines", g = Ir.has(t), _ = Pr.has(t), v = Fr.has(t), y = Lr(t), [b, x] = D.useState(0);
|
|
2945
|
+
D.useEffect(() => {
|
|
2863
2946
|
if (!y || !a.current) return;
|
|
2864
2947
|
let e = a.current, t = new ResizeObserver(([e]) => x(e.contentRect.width));
|
|
2865
2948
|
return t.observe(e), () => t.disconnect();
|
|
2866
2949
|
}, [y]);
|
|
2867
|
-
let S =
|
|
2950
|
+
let S = D.useMemo(() => {
|
|
2868
2951
|
if (!g) return e;
|
|
2869
2952
|
let t = Math.max(1, ...e.flatMap((e) => [e.value, e.value2 ?? 0]));
|
|
2870
2953
|
return e.map((e) => {
|
|
@@ -2878,7 +2961,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2878
2961
|
});
|
|
2879
2962
|
}, [e, g]), C = (t) => {
|
|
2880
2963
|
let { x: n, y: r, cx: i, cy: a, payload: o, textAnchor: s } = t, c = e.find((e) => e.label === o?.value) ?? e[o?.index];
|
|
2881
|
-
if (!c) return /* @__PURE__ */
|
|
2964
|
+
if (!c) return /* @__PURE__ */ O("g", {});
|
|
2882
2965
|
let l = n - i, d = r - a, f = c.value2 === void 0 ? `${c.value}` : `${c.value}/${c.value2}`, p = Math.abs(d) > Math.abs(l), m, h;
|
|
2883
2966
|
if (p && d < 0) h = r - 4 - 6, m = h - 16;
|
|
2884
2967
|
else if (p) m = r + 4 + 10, h = m + 18;
|
|
@@ -2887,7 +2970,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2887
2970
|
m = e - 8, h = e + 12;
|
|
2888
2971
|
}
|
|
2889
2972
|
let g = p ? n : n + l / Math.sqrt(l * l + d * d || 1) * 4;
|
|
2890
|
-
return /* @__PURE__ */
|
|
2973
|
+
return /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O("text", {
|
|
2891
2974
|
x: g,
|
|
2892
2975
|
y: m,
|
|
2893
2976
|
textAnchor: s,
|
|
@@ -2896,7 +2979,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2896
2979
|
fontWeight: 600,
|
|
2897
2980
|
fontFamily: "var(--font-sans)",
|
|
2898
2981
|
children: f
|
|
2899
|
-
}), /* @__PURE__ */
|
|
2982
|
+
}), /* @__PURE__ */ O("text", {
|
|
2900
2983
|
x: g,
|
|
2901
2984
|
y: h,
|
|
2902
2985
|
textAnchor: s,
|
|
@@ -2905,34 +2988,34 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2905
2988
|
fontFamily: "var(--font-sans)",
|
|
2906
2989
|
children: c.label
|
|
2907
2990
|
})] });
|
|
2908
|
-
}, w = Mr[n],
|
|
2909
|
-
return /* @__PURE__ */
|
|
2991
|
+
}, w = Mr[n], ee = (b > 0 ? Math.min(b, w) / 2 - 5 : 0) * .7;
|
|
2992
|
+
return /* @__PURE__ */ k("div", {
|
|
2910
2993
|
ref: a,
|
|
2911
2994
|
className: [jr.chart, i ?? ""].filter(Boolean).join(" "),
|
|
2912
|
-
children: [y && b > 0 && /* @__PURE__ */
|
|
2995
|
+
children: [y && b > 0 && /* @__PURE__ */ O("svg", {
|
|
2913
2996
|
className: jr.circleFillSvg,
|
|
2914
2997
|
width: b,
|
|
2915
2998
|
height: w,
|
|
2916
|
-
children: zr.map((e) => /* @__PURE__ */
|
|
2999
|
+
children: zr.map((e) => /* @__PURE__ */ O("circle", {
|
|
2917
3000
|
cx: b / 2,
|
|
2918
3001
|
cy: w / 2,
|
|
2919
|
-
r:
|
|
3002
|
+
r: ee * e,
|
|
2920
3003
|
fill: c,
|
|
2921
3004
|
fillOpacity: .1
|
|
2922
3005
|
}, e))
|
|
2923
|
-
}), /* @__PURE__ */
|
|
3006
|
+
}), /* @__PURE__ */ O(A, {
|
|
2924
3007
|
width: "100%",
|
|
2925
3008
|
height: w,
|
|
2926
|
-
children: /* @__PURE__ */
|
|
3009
|
+
children: /* @__PURE__ */ k(Dt, {
|
|
2927
3010
|
data: S,
|
|
2928
3011
|
outerRadius: "70%",
|
|
2929
3012
|
children: [
|
|
2930
|
-
!g && !v && /* @__PURE__ */
|
|
3013
|
+
!g && !v && /* @__PURE__ */ O(wt, {
|
|
2931
3014
|
gridType: Nr.has(t) ? "circle" : "polygon",
|
|
2932
3015
|
radialLines: t !== "circle-grid-no-lines" && !_,
|
|
2933
3016
|
stroke: l
|
|
2934
3017
|
}),
|
|
2935
|
-
/* @__PURE__ */
|
|
3018
|
+
/* @__PURE__ */ O(Ct, {
|
|
2936
3019
|
dataKey: "label",
|
|
2937
3020
|
axisLine: !1,
|
|
2938
3021
|
tick: t === "custom-label" ? C : {
|
|
@@ -2941,20 +3024,20 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2941
3024
|
fontFamily: "var(--font-sans)"
|
|
2942
3025
|
}
|
|
2943
3026
|
}),
|
|
2944
|
-
/* @__PURE__ */
|
|
3027
|
+
/* @__PURE__ */ O(Tt, {
|
|
2945
3028
|
tick: !1,
|
|
2946
3029
|
axisLine: !1,
|
|
2947
3030
|
tickCount: _ ? 2 : void 0
|
|
2948
3031
|
}),
|
|
2949
|
-
/* @__PURE__ */
|
|
2950
|
-
content: /* @__PURE__ */
|
|
3032
|
+
/* @__PURE__ */ O(Mt, {
|
|
3033
|
+
content: /* @__PURE__ */ O(Qt, {}),
|
|
2951
3034
|
wrapperStyle: { zIndex: 50 }
|
|
2952
3035
|
}),
|
|
2953
|
-
d && /* @__PURE__ */
|
|
3036
|
+
d && /* @__PURE__ */ O(vt, { wrapperStyle: {
|
|
2954
3037
|
fontSize: 12,
|
|
2955
3038
|
fontFamily: "var(--font-sans)"
|
|
2956
3039
|
} }),
|
|
2957
|
-
g && zr.map((e, t) => /* @__PURE__ */
|
|
3040
|
+
g && zr.map((e, t) => /* @__PURE__ */ O(Et, {
|
|
2958
3041
|
dataKey: `ring${t}`,
|
|
2959
3042
|
stroke: "none",
|
|
2960
3043
|
fill: c,
|
|
@@ -2962,7 +3045,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2962
3045
|
isAnimationActive: !1,
|
|
2963
3046
|
legendType: "none"
|
|
2964
3047
|
}, `ring${t}`)),
|
|
2965
|
-
/* @__PURE__ */
|
|
3048
|
+
/* @__PURE__ */ O(Et, {
|
|
2966
3049
|
name: d ? r[0] ?? "Value" : void 0,
|
|
2967
3050
|
dataKey: "value",
|
|
2968
3051
|
stroke: Rr.has(t) ? "none" : c,
|
|
@@ -2976,7 +3059,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2976
3059
|
} : !1,
|
|
2977
3060
|
isAnimationActive: !1
|
|
2978
3061
|
}),
|
|
2979
|
-
p && /* @__PURE__ */
|
|
3062
|
+
p && /* @__PURE__ */ O(Et, {
|
|
2980
3063
|
name: d ? r[1] ?? "Value 2" : void 0,
|
|
2981
3064
|
dataKey: "value2",
|
|
2982
3065
|
stroke: f ? s : "none",
|
|
@@ -3013,12 +3096,12 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3013
3096
|
text: ["76%", "100%"]
|
|
3014
3097
|
}, Gr = ({ value: e, max: t, color: n, track: r, centerValue: i, centerCaption: a, labelColor: o, captionColor: s }) => {
|
|
3015
3098
|
let c = Math.round(Math.min(e, t) / t * 40);
|
|
3016
|
-
return /* @__PURE__ */
|
|
3099
|
+
return /* @__PURE__ */ k("svg", {
|
|
3017
3100
|
viewBox: "0 0 200 120",
|
|
3018
3101
|
className: Y.gaugeSvg,
|
|
3019
3102
|
children: [Array.from({ length: 40 }).map((e, t) => {
|
|
3020
3103
|
let i = 180 + t / 39 * 180;
|
|
3021
|
-
return /* @__PURE__ */
|
|
3104
|
+
return /* @__PURE__ */ O("line", {
|
|
3022
3105
|
x1: Ur(100 + 78 * Math.cos(i * Hr)),
|
|
3023
3106
|
y1: Ur(100 + 78 * Math.sin(i * Hr)),
|
|
3024
3107
|
x2: Ur(100 + 92 * Math.cos(i * Hr)),
|
|
@@ -3027,17 +3110,17 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3027
3110
|
strokeWidth: 2.5,
|
|
3028
3111
|
strokeLinecap: "round"
|
|
3029
3112
|
}, t);
|
|
3030
|
-
}), (i || a) && /* @__PURE__ */
|
|
3113
|
+
}), (i || a) && /* @__PURE__ */ k("g", {
|
|
3031
3114
|
textAnchor: "middle",
|
|
3032
3115
|
fontFamily: "var(--font-sans)",
|
|
3033
|
-
children: [i && /* @__PURE__ */
|
|
3116
|
+
children: [i && /* @__PURE__ */ O("text", {
|
|
3034
3117
|
x: 100,
|
|
3035
3118
|
y: 92,
|
|
3036
3119
|
fontSize: 22,
|
|
3037
3120
|
fontWeight: 500,
|
|
3038
3121
|
fill: o,
|
|
3039
3122
|
children: i
|
|
3040
|
-
}), a && /* @__PURE__ */
|
|
3123
|
+
}), a && /* @__PURE__ */ O("text", {
|
|
3041
3124
|
x: 100,
|
|
3042
3125
|
y: 112,
|
|
3043
3126
|
fontSize: 12,
|
|
@@ -3046,10 +3129,10 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3046
3129
|
})]
|
|
3047
3130
|
})]
|
|
3048
3131
|
});
|
|
3049
|
-
}, Kr = ({ rings: e, spokes: t, color: n }) => /* @__PURE__ */
|
|
3132
|
+
}, Kr = ({ rings: e, spokes: t, color: n }) => /* @__PURE__ */ k("svg", {
|
|
3050
3133
|
viewBox: "0 0 200 200",
|
|
3051
3134
|
className: Y.gridSvg,
|
|
3052
|
-
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */
|
|
3135
|
+
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O("circle", {
|
|
3053
3136
|
cx: 100,
|
|
3054
3137
|
cy: 100,
|
|
3055
3138
|
r: (r + 1) / e * 96,
|
|
@@ -3058,7 +3141,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3058
3141
|
strokeWidth: 1
|
|
3059
3142
|
}, r)), Array.from({ length: t }).map((e, r) => {
|
|
3060
3143
|
let i = r / t * 360, a = 99.5 * 1.1;
|
|
3061
|
-
return /* @__PURE__ */
|
|
3144
|
+
return /* @__PURE__ */ O("line", {
|
|
3062
3145
|
x1: 100,
|
|
3063
3146
|
y1: 100,
|
|
3064
3147
|
x2: Ur(100 + a * Math.cos(i * Hr)),
|
|
@@ -3076,11 +3159,11 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3076
3159
|
fill: t[n % t.length]
|
|
3077
3160
|
};
|
|
3078
3161
|
});
|
|
3079
|
-
return /* @__PURE__ */
|
|
3162
|
+
return /* @__PURE__ */ k("svg", {
|
|
3080
3163
|
viewBox: "0 0 200 160",
|
|
3081
3164
|
className: Y.gaugeSvg,
|
|
3082
3165
|
children: [
|
|
3083
|
-
l.map((e, t) => /* @__PURE__ */
|
|
3166
|
+
l.map((e, t) => /* @__PURE__ */ O(jt, {
|
|
3084
3167
|
cx: 100,
|
|
3085
3168
|
cy: 100,
|
|
3086
3169
|
innerRadius: 64,
|
|
@@ -3090,7 +3173,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3090
3173
|
fill: e.fill,
|
|
3091
3174
|
cornerRadius: 4
|
|
3092
3175
|
}, t)),
|
|
3093
|
-
c > -29.5 && /* @__PURE__ */
|
|
3176
|
+
c > -29.5 && /* @__PURE__ */ O(jt, {
|
|
3094
3177
|
cx: 100,
|
|
3095
3178
|
cy: 100,
|
|
3096
3179
|
innerRadius: 64,
|
|
@@ -3100,17 +3183,17 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3100
3183
|
fill: n,
|
|
3101
3184
|
cornerRadius: 4
|
|
3102
3185
|
}),
|
|
3103
|
-
(r || i) && /* @__PURE__ */
|
|
3186
|
+
(r || i) && /* @__PURE__ */ k("g", {
|
|
3104
3187
|
textAnchor: "middle",
|
|
3105
3188
|
fontFamily: "var(--font-sans)",
|
|
3106
|
-
children: [r && /* @__PURE__ */
|
|
3189
|
+
children: [r && /* @__PURE__ */ O("text", {
|
|
3107
3190
|
x: 100,
|
|
3108
3191
|
y: 92,
|
|
3109
3192
|
fontSize: 22,
|
|
3110
3193
|
fontWeight: 500,
|
|
3111
3194
|
fill: a,
|
|
3112
3195
|
children: r
|
|
3113
|
-
}), i && /* @__PURE__ */
|
|
3196
|
+
}), i && /* @__PURE__ */ O("text", {
|
|
3114
3197
|
x: 100,
|
|
3115
3198
|
y: 112,
|
|
3116
3199
|
fontSize: 12,
|
|
@@ -3121,7 +3204,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3121
3204
|
]
|
|
3122
3205
|
});
|
|
3123
3206
|
}, Jr = ({ data: e, variant: t = "multi", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
3124
|
-
let o =
|
|
3207
|
+
let o = D.useRef(null), s = N(o), c = [
|
|
3125
3208
|
1,
|
|
3126
3209
|
2,
|
|
3127
3210
|
3,
|
|
@@ -3130,11 +3213,11 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3130
3213
|
].map((e) => s(`--color-chart-${e}`) ?? Xt[e - 1]), l = s("--color-bg-subtle") ?? "#f5f4f2", u = s("--color-border-subtle") ?? "#e7e5e1", d = s("--color-fg-default") ?? "#141414", f = s("--color-fg-muted") ?? "#78716a", p = Vr[n];
|
|
3131
3214
|
if (t === "gauge-tick") {
|
|
3132
3215
|
let t = e[0];
|
|
3133
|
-
return /* @__PURE__ */
|
|
3216
|
+
return /* @__PURE__ */ O("div", {
|
|
3134
3217
|
ref: o,
|
|
3135
3218
|
className: [Y.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3136
3219
|
style: { height: p },
|
|
3137
|
-
children: /* @__PURE__ */
|
|
3220
|
+
children: /* @__PURE__ */ O(Gr, {
|
|
3138
3221
|
value: t?.value ?? 0,
|
|
3139
3222
|
max: t?.max ?? 100,
|
|
3140
3223
|
color: c[0],
|
|
@@ -3146,11 +3229,11 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3146
3229
|
})
|
|
3147
3230
|
});
|
|
3148
3231
|
}
|
|
3149
|
-
if (t === "shape" || t === "stacked" || t === "stacked-3-layers") return /* @__PURE__ */
|
|
3232
|
+
if (t === "shape" || t === "stacked" || t === "stacked-3-layers") return /* @__PURE__ */ O("div", {
|
|
3150
3233
|
ref: o,
|
|
3151
3234
|
className: [Y.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3152
3235
|
style: { height: p },
|
|
3153
|
-
children: /* @__PURE__ */
|
|
3236
|
+
children: /* @__PURE__ */ O(qr, {
|
|
3154
3237
|
data: e,
|
|
3155
3238
|
palette: c,
|
|
3156
3239
|
track: l,
|
|
@@ -3161,46 +3244,46 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3161
3244
|
})
|
|
3162
3245
|
});
|
|
3163
3246
|
let [m, h] = Wr[t] ?? ["30%", "100%"], g = (t === "stacked-label" || t === "text") && (r || i);
|
|
3164
|
-
return /* @__PURE__ */
|
|
3247
|
+
return /* @__PURE__ */ k("div", {
|
|
3165
3248
|
ref: o,
|
|
3166
3249
|
className: [Y.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3167
3250
|
style: { height: p },
|
|
3168
3251
|
children: [
|
|
3169
|
-
t === "grid" && /* @__PURE__ */
|
|
3252
|
+
t === "grid" && /* @__PURE__ */ O(Kr, {
|
|
3170
3253
|
rings: 8,
|
|
3171
3254
|
spokes: 12,
|
|
3172
3255
|
color: u
|
|
3173
3256
|
}),
|
|
3174
|
-
/* @__PURE__ */
|
|
3257
|
+
/* @__PURE__ */ O(A, {
|
|
3175
3258
|
width: "100%",
|
|
3176
3259
|
height: "100%",
|
|
3177
|
-
children: /* @__PURE__ */
|
|
3260
|
+
children: /* @__PURE__ */ k(kt, {
|
|
3178
3261
|
data: e,
|
|
3179
3262
|
innerRadius: m,
|
|
3180
3263
|
outerRadius: h,
|
|
3181
3264
|
startAngle: 90,
|
|
3182
3265
|
endAngle: -270,
|
|
3183
3266
|
barCategoryGap: "12%",
|
|
3184
|
-
children: [/* @__PURE__ */
|
|
3267
|
+
children: [/* @__PURE__ */ O(Ct, {
|
|
3185
3268
|
type: "number",
|
|
3186
3269
|
domain: [0, e[0]?.max ?? 100],
|
|
3187
3270
|
tick: !1,
|
|
3188
3271
|
axisLine: !1
|
|
3189
|
-
}), /* @__PURE__ */
|
|
3272
|
+
}), /* @__PURE__ */ O(Ot, {
|
|
3190
3273
|
dataKey: "value",
|
|
3191
3274
|
background: t !== "grid" && { fill: l },
|
|
3192
3275
|
cornerRadius: 8,
|
|
3193
3276
|
isAnimationActive: !1,
|
|
3194
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
3277
|
+
children: e.map((e, t) => /* @__PURE__ */ O(_t, { fill: c[t % c.length] }, t))
|
|
3195
3278
|
})]
|
|
3196
3279
|
})
|
|
3197
3280
|
}),
|
|
3198
|
-
g && /* @__PURE__ */
|
|
3281
|
+
g && /* @__PURE__ */ k("div", {
|
|
3199
3282
|
className: Y.center,
|
|
3200
|
-
children: [r && /* @__PURE__ */
|
|
3283
|
+
children: [r && /* @__PURE__ */ O("span", {
|
|
3201
3284
|
className: Y.center__value,
|
|
3202
3285
|
children: r
|
|
3203
|
-
}), i && /* @__PURE__ */
|
|
3286
|
+
}), i && /* @__PURE__ */ O("span", {
|
|
3204
3287
|
className: Y.center__caption,
|
|
3205
3288
|
children: i
|
|
3206
3289
|
})]
|
|
@@ -3217,9 +3300,9 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3217
3300
|
text__label: "_text__label_5ueza_80",
|
|
3218
3301
|
text__description: "_text__description_5ueza_81",
|
|
3219
3302
|
"wrapper--withDescription": "_wrapper--withDescription_5ueza_85"
|
|
3220
|
-
}, Yr =
|
|
3221
|
-
let s =
|
|
3222
|
-
return /* @__PURE__ */
|
|
3303
|
+
}, Yr = D.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, ...a }, o) => {
|
|
3304
|
+
let s = D.useId(), c = r ?? s;
|
|
3305
|
+
return /* @__PURE__ */ k("label", {
|
|
3223
3306
|
htmlFor: c,
|
|
3224
3307
|
className: [
|
|
3225
3308
|
X.wrapper,
|
|
@@ -3228,7 +3311,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3228
3311
|
i ?? ""
|
|
3229
3312
|
].filter(Boolean).join(" "),
|
|
3230
3313
|
children: [
|
|
3231
|
-
/* @__PURE__ */
|
|
3314
|
+
/* @__PURE__ */ O("input", {
|
|
3232
3315
|
ref: o,
|
|
3233
3316
|
id: c,
|
|
3234
3317
|
type: "radio",
|
|
@@ -3236,17 +3319,17 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3236
3319
|
className: X.input,
|
|
3237
3320
|
...a
|
|
3238
3321
|
}),
|
|
3239
|
-
/* @__PURE__ */
|
|
3322
|
+
/* @__PURE__ */ O("span", {
|
|
3240
3323
|
className: X.circle,
|
|
3241
3324
|
"aria-hidden": "true",
|
|
3242
|
-
children: /* @__PURE__ */
|
|
3325
|
+
children: /* @__PURE__ */ O("span", { className: X.dot })
|
|
3243
3326
|
}),
|
|
3244
|
-
(e || t) && /* @__PURE__ */
|
|
3327
|
+
(e || t) && /* @__PURE__ */ k("span", {
|
|
3245
3328
|
className: X.text,
|
|
3246
|
-
children: [e && /* @__PURE__ */
|
|
3329
|
+
children: [e && /* @__PURE__ */ O("span", {
|
|
3247
3330
|
className: X.text__label,
|
|
3248
3331
|
children: e
|
|
3249
|
-
}), t && /* @__PURE__ */
|
|
3332
|
+
}), t && /* @__PURE__ */ O("span", {
|
|
3250
3333
|
className: X.text__description,
|
|
3251
3334
|
children: t
|
|
3252
3335
|
})]
|
|
@@ -3264,48 +3347,48 @@ var Z = {
|
|
|
3264
3347
|
footer__menu: "_footer__menu_sh6kz_17",
|
|
3265
3348
|
footer__action: "_footer__action_sh6kz_24"
|
|
3266
3349
|
}, Xr = ({ type: e = "user", title: t, subtitle: n, avatarSrc: r, avatarInitials: i, collapsed: a, onMenu: o, onSignOut: s }) => {
|
|
3267
|
-
let c = /* @__PURE__ */
|
|
3350
|
+
let c = /* @__PURE__ */ O(oe, {
|
|
3268
3351
|
size: "sm",
|
|
3269
3352
|
src: r,
|
|
3270
3353
|
initials: i,
|
|
3271
3354
|
alt: t ?? "User"
|
|
3272
3355
|
});
|
|
3273
|
-
return a ? /* @__PURE__ */
|
|
3356
|
+
return a ? /* @__PURE__ */ O("div", {
|
|
3274
3357
|
className: [Z.footer, Z["footer--collapsed"]].join(" "),
|
|
3275
3358
|
children: c
|
|
3276
|
-
}) : e === "actions" ? /* @__PURE__ */
|
|
3359
|
+
}) : e === "actions" ? /* @__PURE__ */ O("div", {
|
|
3277
3360
|
className: Z.footer,
|
|
3278
|
-
children: /* @__PURE__ */
|
|
3361
|
+
children: /* @__PURE__ */ k("button", {
|
|
3279
3362
|
type: "button",
|
|
3280
3363
|
className: Z.footer__action,
|
|
3281
3364
|
onClick: s,
|
|
3282
|
-
children: [/* @__PURE__ */
|
|
3365
|
+
children: [/* @__PURE__ */ O(Ze, {
|
|
3283
3366
|
size: 16,
|
|
3284
|
-
strokeWidth:
|
|
3367
|
+
strokeWidth: E(16)
|
|
3285
3368
|
}), " Sign out"]
|
|
3286
3369
|
})
|
|
3287
|
-
}) : /* @__PURE__ */
|
|
3370
|
+
}) : /* @__PURE__ */ k("div", {
|
|
3288
3371
|
className: Z.footer,
|
|
3289
3372
|
children: [
|
|
3290
3373
|
c,
|
|
3291
|
-
/* @__PURE__ */
|
|
3374
|
+
/* @__PURE__ */ k("span", {
|
|
3292
3375
|
className: Z.footer__text,
|
|
3293
|
-
children: [t && /* @__PURE__ */
|
|
3376
|
+
children: [t && /* @__PURE__ */ O("span", {
|
|
3294
3377
|
className: Z.footer__title,
|
|
3295
3378
|
children: t
|
|
3296
|
-
}), n && /* @__PURE__ */
|
|
3379
|
+
}), n && /* @__PURE__ */ O("span", {
|
|
3297
3380
|
className: Z.footer__subtitle,
|
|
3298
3381
|
children: n
|
|
3299
3382
|
})]
|
|
3300
3383
|
}),
|
|
3301
|
-
e === "user-menu" && /* @__PURE__ */
|
|
3384
|
+
e === "user-menu" && /* @__PURE__ */ O("button", {
|
|
3302
3385
|
type: "button",
|
|
3303
3386
|
className: Z.footer__menu,
|
|
3304
3387
|
onClick: o,
|
|
3305
3388
|
"aria-label": "Open menu",
|
|
3306
|
-
children: /* @__PURE__ */
|
|
3389
|
+
children: /* @__PURE__ */ O(Je, {
|
|
3307
3390
|
size: 16,
|
|
3308
|
-
strokeWidth:
|
|
3391
|
+
strokeWidth: E(16)
|
|
3309
3392
|
})
|
|
3310
3393
|
})
|
|
3311
3394
|
]
|
|
@@ -3318,41 +3401,41 @@ var Z = {
|
|
|
3318
3401
|
promo__dismiss: "_promo__dismiss_1dicm_18",
|
|
3319
3402
|
promo__desc: "_promo__desc_1dicm_25",
|
|
3320
3403
|
promo__cta: "_promo__cta_1dicm_28"
|
|
3321
|
-
}, Qr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: i, onDismiss: a, icon: o =
|
|
3404
|
+
}, Qr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: i, onDismiss: a, icon: o = ot }) => /* @__PURE__ */ k("div", {
|
|
3322
3405
|
className: [Zr.promo, Zr[`promo--${e}`]].join(" "),
|
|
3323
3406
|
children: [
|
|
3324
|
-
/* @__PURE__ */
|
|
3407
|
+
/* @__PURE__ */ k("div", {
|
|
3325
3408
|
className: Zr.promo__head,
|
|
3326
3409
|
children: [
|
|
3327
|
-
/* @__PURE__ */
|
|
3410
|
+
/* @__PURE__ */ O("span", {
|
|
3328
3411
|
className: Zr.promo__icon,
|
|
3329
3412
|
"aria-hidden": "true",
|
|
3330
|
-
children: /* @__PURE__ */
|
|
3413
|
+
children: /* @__PURE__ */ O(o, {
|
|
3331
3414
|
size: 16,
|
|
3332
|
-
strokeWidth:
|
|
3415
|
+
strokeWidth: E(16)
|
|
3333
3416
|
})
|
|
3334
3417
|
}),
|
|
3335
|
-
/* @__PURE__ */
|
|
3418
|
+
/* @__PURE__ */ O("span", {
|
|
3336
3419
|
className: Zr.promo__title,
|
|
3337
3420
|
children: t
|
|
3338
3421
|
}),
|
|
3339
|
-
a && /* @__PURE__ */
|
|
3422
|
+
a && /* @__PURE__ */ O("button", {
|
|
3340
3423
|
type: "button",
|
|
3341
3424
|
className: Zr.promo__dismiss,
|
|
3342
3425
|
onClick: a,
|
|
3343
3426
|
"aria-label": "Dismiss",
|
|
3344
|
-
children: /* @__PURE__ */
|
|
3427
|
+
children: /* @__PURE__ */ O(dt, {
|
|
3345
3428
|
size: 14,
|
|
3346
|
-
strokeWidth:
|
|
3429
|
+
strokeWidth: E(14)
|
|
3347
3430
|
})
|
|
3348
3431
|
})
|
|
3349
3432
|
]
|
|
3350
3433
|
}),
|
|
3351
|
-
n && /* @__PURE__ */
|
|
3434
|
+
n && /* @__PURE__ */ O("p", {
|
|
3352
3435
|
className: Zr.promo__desc,
|
|
3353
3436
|
children: n
|
|
3354
3437
|
}),
|
|
3355
|
-
r && /* @__PURE__ */
|
|
3438
|
+
r && /* @__PURE__ */ O("button", {
|
|
3356
3439
|
type: "button",
|
|
3357
3440
|
className: Zr.promo__cta,
|
|
3358
3441
|
onClick: i,
|
|
@@ -3366,41 +3449,41 @@ var Z = {
|
|
|
3366
3449
|
search__placeholder: "_search__placeholder_cvwic_31",
|
|
3367
3450
|
search__kbd: "_search__kbd_cvwic_32",
|
|
3368
3451
|
collapsed: "_collapsed_cvwic_42"
|
|
3369
|
-
}, ei = ({ type: e = "field", placeholder: t = "Search…", collapsed: n, value: r, onChange: i, onClick: a }) => n ? /* @__PURE__ */
|
|
3452
|
+
}, ei = ({ type: e = "field", placeholder: t = "Search…", collapsed: n, value: r, onChange: i, onClick: a }) => n ? /* @__PURE__ */ O("button", {
|
|
3370
3453
|
type: "button",
|
|
3371
3454
|
className: $r.collapsed,
|
|
3372
3455
|
onClick: a,
|
|
3373
3456
|
"aria-label": "Search",
|
|
3374
|
-
children: /* @__PURE__ */
|
|
3457
|
+
children: /* @__PURE__ */ O(at, {
|
|
3375
3458
|
size: 18,
|
|
3376
|
-
strokeWidth:
|
|
3459
|
+
strokeWidth: E(18)
|
|
3377
3460
|
})
|
|
3378
|
-
}) : e === "command" ? /* @__PURE__ */
|
|
3461
|
+
}) : e === "command" ? /* @__PURE__ */ k("button", {
|
|
3379
3462
|
type: "button",
|
|
3380
3463
|
className: $r.search,
|
|
3381
3464
|
onClick: a,
|
|
3382
3465
|
children: [
|
|
3383
|
-
/* @__PURE__ */
|
|
3466
|
+
/* @__PURE__ */ O(at, {
|
|
3384
3467
|
size: 16,
|
|
3385
|
-
strokeWidth:
|
|
3468
|
+
strokeWidth: E(16),
|
|
3386
3469
|
className: $r.search__icon
|
|
3387
3470
|
}),
|
|
3388
|
-
/* @__PURE__ */
|
|
3471
|
+
/* @__PURE__ */ O("span", {
|
|
3389
3472
|
className: $r.search__placeholder,
|
|
3390
3473
|
children: t
|
|
3391
3474
|
}),
|
|
3392
|
-
/* @__PURE__ */
|
|
3475
|
+
/* @__PURE__ */ O("kbd", {
|
|
3393
3476
|
className: $r.search__kbd,
|
|
3394
3477
|
children: "⌘K"
|
|
3395
3478
|
})
|
|
3396
3479
|
]
|
|
3397
|
-
}) : /* @__PURE__ */
|
|
3480
|
+
}) : /* @__PURE__ */ k("div", {
|
|
3398
3481
|
className: $r.search,
|
|
3399
|
-
children: [/* @__PURE__ */
|
|
3482
|
+
children: [/* @__PURE__ */ O(at, {
|
|
3400
3483
|
size: 16,
|
|
3401
|
-
strokeWidth:
|
|
3484
|
+
strokeWidth: E(16),
|
|
3402
3485
|
className: $r.search__icon
|
|
3403
|
-
}), /* @__PURE__ */
|
|
3486
|
+
}), /* @__PURE__ */ O("input", {
|
|
3404
3487
|
className: $r.search__input,
|
|
3405
3488
|
placeholder: t,
|
|
3406
3489
|
value: r,
|
|
@@ -3413,7 +3496,7 @@ var Z = {
|
|
|
3413
3496
|
"spinner--lg": "_spinner--lg_14r00_14",
|
|
3414
3497
|
spinner__svg: "_spinner__svg_14r00_17",
|
|
3415
3498
|
"spinner-rotate": "_spinner-rotate_14r00_1"
|
|
3416
|
-
}, ni = ({ size: e = "md", label: t = "Loading...", className: n }) => /* @__PURE__ */
|
|
3499
|
+
}, ni = ({ size: e = "md", label: t = "Loading...", className: n }) => /* @__PURE__ */ O("span", {
|
|
3417
3500
|
role: "status",
|
|
3418
3501
|
"aria-label": t,
|
|
3419
3502
|
className: [
|
|
@@ -3421,7 +3504,7 @@ var Z = {
|
|
|
3421
3504
|
ti[`spinner--${e}`],
|
|
3422
3505
|
n ?? ""
|
|
3423
3506
|
].filter(Boolean).join(" "),
|
|
3424
|
-
children: /* @__PURE__ */
|
|
3507
|
+
children: /* @__PURE__ */ k("svg", {
|
|
3425
3508
|
viewBox: "0 0 24 24",
|
|
3426
3509
|
fill: "none",
|
|
3427
3510
|
stroke: "currentColor",
|
|
@@ -3429,12 +3512,12 @@ var Z = {
|
|
|
3429
3512
|
strokeLinecap: "round",
|
|
3430
3513
|
"aria-hidden": "true",
|
|
3431
3514
|
className: ti.spinner__svg,
|
|
3432
|
-
children: [/* @__PURE__ */
|
|
3515
|
+
children: [/* @__PURE__ */ O("circle", {
|
|
3433
3516
|
cx: 12,
|
|
3434
3517
|
cy: 12,
|
|
3435
3518
|
r: 9,
|
|
3436
3519
|
opacity: .2
|
|
3437
|
-
}), /* @__PURE__ */
|
|
3520
|
+
}), /* @__PURE__ */ O("path", {
|
|
3438
3521
|
d: "M12 3a9 9 0 0 1 9 9",
|
|
3439
3522
|
className: ti.spinner__arc
|
|
3440
3523
|
})]
|
|
@@ -3453,9 +3536,9 @@ var Z = {
|
|
|
3453
3536
|
"card--trend-down": "_card--trend-down_u5kvg_69",
|
|
3454
3537
|
card__description: "_card__description_u5kvg_72"
|
|
3455
3538
|
}, ri = {
|
|
3456
|
-
up:
|
|
3457
|
-
down:
|
|
3458
|
-
flat:
|
|
3539
|
+
up: ct,
|
|
3540
|
+
down: st,
|
|
3541
|
+
flat: $e
|
|
3459
3542
|
}, ii = {
|
|
3460
3543
|
up: "success",
|
|
3461
3544
|
down: "danger",
|
|
@@ -3463,12 +3546,12 @@ var Z = {
|
|
|
3463
3546
|
}, ai = ({ data: e }) => {
|
|
3464
3547
|
if (e.length < 2) return null;
|
|
3465
3548
|
let t = Math.min(...e), n = Math.max(...e) - t || 1;
|
|
3466
|
-
return /* @__PURE__ */
|
|
3549
|
+
return /* @__PURE__ */ O("svg", {
|
|
3467
3550
|
className: oi,
|
|
3468
3551
|
viewBox: "0 0 100 32",
|
|
3469
3552
|
preserveAspectRatio: "none",
|
|
3470
3553
|
"aria-hidden": "true",
|
|
3471
|
-
children: /* @__PURE__ */
|
|
3554
|
+
children: /* @__PURE__ */ O("polyline", {
|
|
3472
3555
|
points: e.map((r, i) => `${i / (e.length - 1) * 100},${30 - (r - t) / n * 26}`).join(" "),
|
|
3473
3556
|
fill: "none",
|
|
3474
3557
|
strokeWidth: 2,
|
|
@@ -3479,7 +3562,7 @@ var Z = {
|
|
|
3479
3562
|
});
|
|
3480
3563
|
}, oi = Q.card__sparkline, si = ({ title: e, value: t, description: n, sparkline: r, delta: i, trend: a = "up", badgeVariant: o, variant: s = "minimal", icon: c, showMenu: l, onMenu: d, className: f }) => {
|
|
3481
3564
|
let p = ri[a], m = (s === "icon" || s === "featured") && c;
|
|
3482
|
-
return /* @__PURE__ */
|
|
3565
|
+
return /* @__PURE__ */ k("div", {
|
|
3483
3566
|
className: [
|
|
3484
3567
|
Q.card,
|
|
3485
3568
|
Q[`card--${s}`],
|
|
@@ -3487,48 +3570,48 @@ var Z = {
|
|
|
3487
3570
|
f ?? ""
|
|
3488
3571
|
].filter(Boolean).join(" "),
|
|
3489
3572
|
children: [
|
|
3490
|
-
/* @__PURE__ */
|
|
3573
|
+
/* @__PURE__ */ k("div", {
|
|
3491
3574
|
className: Q.card__head,
|
|
3492
3575
|
children: [
|
|
3493
|
-
m && /* @__PURE__ */
|
|
3576
|
+
m && /* @__PURE__ */ O("span", {
|
|
3494
3577
|
className: Q.card__icon,
|
|
3495
3578
|
"aria-hidden": "true",
|
|
3496
|
-
children: /* @__PURE__ */
|
|
3579
|
+
children: /* @__PURE__ */ O(c, {
|
|
3497
3580
|
size: 18,
|
|
3498
|
-
strokeWidth:
|
|
3581
|
+
strokeWidth: E(18)
|
|
3499
3582
|
})
|
|
3500
3583
|
}),
|
|
3501
|
-
/* @__PURE__ */
|
|
3584
|
+
/* @__PURE__ */ O("span", {
|
|
3502
3585
|
className: Q.card__title,
|
|
3503
3586
|
children: e
|
|
3504
3587
|
}),
|
|
3505
|
-
l && /* @__PURE__ */
|
|
3588
|
+
l && /* @__PURE__ */ O("button", {
|
|
3506
3589
|
type: "button",
|
|
3507
3590
|
className: Q.card__menu,
|
|
3508
3591
|
onClick: d,
|
|
3509
3592
|
"aria-label": "More options",
|
|
3510
|
-
children: /* @__PURE__ */
|
|
3593
|
+
children: /* @__PURE__ */ O(et, {
|
|
3511
3594
|
size: 16,
|
|
3512
|
-
strokeWidth:
|
|
3595
|
+
strokeWidth: E(16)
|
|
3513
3596
|
})
|
|
3514
3597
|
})
|
|
3515
3598
|
]
|
|
3516
3599
|
}),
|
|
3517
|
-
/* @__PURE__ */
|
|
3600
|
+
/* @__PURE__ */ O("div", {
|
|
3518
3601
|
className: Q.card__value,
|
|
3519
3602
|
children: t
|
|
3520
3603
|
}),
|
|
3521
|
-
r && /* @__PURE__ */
|
|
3522
|
-
(i || n) && /* @__PURE__ */
|
|
3604
|
+
r && /* @__PURE__ */ O(ai, { data: r }),
|
|
3605
|
+
(i || n) && /* @__PURE__ */ k("div", {
|
|
3523
3606
|
className: Q.card__meta,
|
|
3524
|
-
children: [i && /* @__PURE__ */
|
|
3607
|
+
children: [i && /* @__PURE__ */ O(u, {
|
|
3525
3608
|
variant: o ?? ii[a],
|
|
3526
|
-
leftIcon: /* @__PURE__ */
|
|
3609
|
+
leftIcon: /* @__PURE__ */ O(p, {
|
|
3527
3610
|
size: 12,
|
|
3528
3611
|
strokeWidth: 2
|
|
3529
3612
|
}),
|
|
3530
3613
|
children: i
|
|
3531
|
-
}), n && /* @__PURE__ */
|
|
3614
|
+
}), n && /* @__PURE__ */ O("p", {
|
|
3532
3615
|
className: Q.card__description,
|
|
3533
3616
|
children: n
|
|
3534
3617
|
})]
|
|
@@ -3556,47 +3639,47 @@ var Z = {
|
|
|
3556
3639
|
"connector--horizontal": "_connector--horizontal_kxw14_47",
|
|
3557
3640
|
"connector--vertical": "_connector--vertical_kxw14_48",
|
|
3558
3641
|
"connector--filled": "_connector--filled_kxw14_49"
|
|
3559
|
-
}, ci = ({ index: e, state: t, label: n, description: r, orientation: i = "horizontal" }) => /* @__PURE__ */
|
|
3642
|
+
}, ci = ({ index: e, state: t, label: n, description: r, orientation: i = "horizontal" }) => /* @__PURE__ */ k("div", {
|
|
3560
3643
|
className: [$.step, $[`step--${i}`]].join(" "),
|
|
3561
|
-
children: [/* @__PURE__ */
|
|
3644
|
+
children: [/* @__PURE__ */ O("span", {
|
|
3562
3645
|
className: [$.circle, $[`circle--${t}`]].join(" "),
|
|
3563
3646
|
"aria-hidden": "true",
|
|
3564
|
-
children: t === "completed" ? /* @__PURE__ */
|
|
3647
|
+
children: t === "completed" ? /* @__PURE__ */ O(Ue, {
|
|
3565
3648
|
size: 14,
|
|
3566
|
-
strokeWidth:
|
|
3567
|
-
}) : /* @__PURE__ */
|
|
3649
|
+
strokeWidth: E(14)
|
|
3650
|
+
}) : /* @__PURE__ */ O("span", {
|
|
3568
3651
|
className: $.circle__num,
|
|
3569
3652
|
children: e + 1
|
|
3570
3653
|
})
|
|
3571
|
-
}), /* @__PURE__ */
|
|
3654
|
+
}), /* @__PURE__ */ k("span", {
|
|
3572
3655
|
className: $.step__text,
|
|
3573
|
-
children: [/* @__PURE__ */
|
|
3656
|
+
children: [/* @__PURE__ */ O("span", {
|
|
3574
3657
|
className: [
|
|
3575
3658
|
$.step__label,
|
|
3576
3659
|
t === "current" ? $["step__label--current"] : "",
|
|
3577
3660
|
t === "upcoming" ? $["step__label--upcoming"] : ""
|
|
3578
3661
|
].filter(Boolean).join(" "),
|
|
3579
3662
|
children: n
|
|
3580
|
-
}), r && /* @__PURE__ */
|
|
3663
|
+
}), r && /* @__PURE__ */ O("span", {
|
|
3581
3664
|
className: $.step__desc,
|
|
3582
3665
|
children: r
|
|
3583
3666
|
})]
|
|
3584
3667
|
})]
|
|
3585
3668
|
}), li = ({ steps: e, current: t, orientation: n = "horizontal", className: r }) => {
|
|
3586
3669
|
let i = (e) => e < t ? "completed" : e === t ? "current" : "upcoming";
|
|
3587
|
-
return /* @__PURE__ */
|
|
3670
|
+
return /* @__PURE__ */ O("div", {
|
|
3588
3671
|
className: [
|
|
3589
3672
|
$.stepper,
|
|
3590
3673
|
$[`stepper--${n}`],
|
|
3591
3674
|
r ?? ""
|
|
3592
3675
|
].filter(Boolean).join(" "),
|
|
3593
|
-
children: e.map((r, a) => /* @__PURE__ */
|
|
3676
|
+
children: e.map((r, a) => /* @__PURE__ */ k(D.Fragment, { children: [/* @__PURE__ */ O(ci, {
|
|
3594
3677
|
index: a,
|
|
3595
3678
|
state: i(a),
|
|
3596
3679
|
label: r.label,
|
|
3597
3680
|
description: r.description,
|
|
3598
3681
|
orientation: n
|
|
3599
|
-
}), a < e.length - 1 && /* @__PURE__ */
|
|
3682
|
+
}), a < e.length - 1 && /* @__PURE__ */ O("span", {
|
|
3600
3683
|
className: [
|
|
3601
3684
|
$.connector,
|
|
3602
3685
|
$[`connector--${n}`],
|
|
@@ -3612,9 +3695,9 @@ var Z = {
|
|
|
3612
3695
|
track: "_track_bkgd3_15",
|
|
3613
3696
|
thumb: "_thumb_bkgd3_28",
|
|
3614
3697
|
label: "_label_bkgd3_45"
|
|
3615
|
-
}, di =
|
|
3616
|
-
let o =
|
|
3617
|
-
return /* @__PURE__ */
|
|
3698
|
+
}, di = D.forwardRef(({ label: e, disabled: t, id: n, className: r, ...i }, a) => {
|
|
3699
|
+
let o = D.useId(), s = n ?? o;
|
|
3700
|
+
return /* @__PURE__ */ k("label", {
|
|
3618
3701
|
htmlFor: s,
|
|
3619
3702
|
className: [
|
|
3620
3703
|
ui.wrapper,
|
|
@@ -3622,7 +3705,7 @@ var Z = {
|
|
|
3622
3705
|
r ?? ""
|
|
3623
3706
|
].filter(Boolean).join(" "),
|
|
3624
3707
|
children: [
|
|
3625
|
-
/* @__PURE__ */
|
|
3708
|
+
/* @__PURE__ */ O("input", {
|
|
3626
3709
|
ref: a,
|
|
3627
3710
|
id: s,
|
|
3628
3711
|
type: "checkbox",
|
|
@@ -3631,12 +3714,12 @@ var Z = {
|
|
|
3631
3714
|
className: ui.input,
|
|
3632
3715
|
...i
|
|
3633
3716
|
}),
|
|
3634
|
-
/* @__PURE__ */
|
|
3717
|
+
/* @__PURE__ */ O("span", {
|
|
3635
3718
|
className: ui.track,
|
|
3636
3719
|
"aria-hidden": "true",
|
|
3637
|
-
children: /* @__PURE__ */
|
|
3720
|
+
children: /* @__PURE__ */ O("span", { className: ui.thumb })
|
|
3638
3721
|
}),
|
|
3639
|
-
e && /* @__PURE__ */
|
|
3722
|
+
e && /* @__PURE__ */ O("span", {
|
|
3640
3723
|
className: ui.label,
|
|
3641
3724
|
children: e
|
|
3642
3725
|
})
|
|
@@ -3652,17 +3735,17 @@ var fi = {
|
|
|
3652
3735
|
textarea: "_textarea_644oy_12",
|
|
3653
3736
|
"textarea--error": "_textarea--error_644oy_37",
|
|
3654
3737
|
"textarea--disabled": "_textarea--disabled_644oy_43"
|
|
3655
|
-
}, pi =
|
|
3656
|
-
let l =
|
|
3657
|
-
return /* @__PURE__ */
|
|
3738
|
+
}, pi = D.forwardRef(({ label: e, description: t, error: n, disabled: r, id: i, className: a, rows: o = 4, ...s }, c) => {
|
|
3739
|
+
let l = D.useId(), u = i ?? l, d = !!n;
|
|
3740
|
+
return /* @__PURE__ */ k("div", {
|
|
3658
3741
|
className: [fi.field, a ?? ""].filter(Boolean).join(" "),
|
|
3659
3742
|
children: [
|
|
3660
|
-
e && /* @__PURE__ */
|
|
3743
|
+
e && /* @__PURE__ */ O("label", {
|
|
3661
3744
|
htmlFor: u,
|
|
3662
3745
|
className: fi.field__label,
|
|
3663
3746
|
children: e
|
|
3664
3747
|
}),
|
|
3665
|
-
/* @__PURE__ */
|
|
3748
|
+
/* @__PURE__ */ O("textarea", {
|
|
3666
3749
|
ref: c,
|
|
3667
3750
|
id: u,
|
|
3668
3751
|
rows: o,
|
|
@@ -3675,7 +3758,7 @@ var fi = {
|
|
|
3675
3758
|
].filter(Boolean).join(" "),
|
|
3676
3759
|
...s
|
|
3677
3760
|
}),
|
|
3678
|
-
(t || n) && /* @__PURE__ */
|
|
3761
|
+
(t || n) && /* @__PURE__ */ O("span", {
|
|
3679
3762
|
className: d ? fi.field__error : fi.field__description,
|
|
3680
3763
|
children: n || t
|
|
3681
3764
|
})
|
|
@@ -3694,46 +3777,46 @@ var mi = {
|
|
|
3694
3777
|
toast__description: "_toast__description_8yqwj_24",
|
|
3695
3778
|
toast__dismiss: "_toast__dismiss_8yqwj_26"
|
|
3696
3779
|
}, hi = {
|
|
3697
|
-
success: /* @__PURE__ */
|
|
3698
|
-
error: /* @__PURE__ */
|
|
3699
|
-
/* @__PURE__ */
|
|
3780
|
+
success: /* @__PURE__ */ k(Be, { children: [/* @__PURE__ */ O("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ O("polyline", { points: "22 4 12 14.01 9 11.01" })] }),
|
|
3781
|
+
error: /* @__PURE__ */ k(Be, { children: [
|
|
3782
|
+
/* @__PURE__ */ O("circle", {
|
|
3700
3783
|
cx: "12",
|
|
3701
3784
|
cy: "12",
|
|
3702
3785
|
r: "10"
|
|
3703
3786
|
}),
|
|
3704
|
-
/* @__PURE__ */
|
|
3787
|
+
/* @__PURE__ */ O("line", {
|
|
3705
3788
|
x1: "15",
|
|
3706
3789
|
y1: "9",
|
|
3707
3790
|
x2: "9",
|
|
3708
3791
|
y2: "15"
|
|
3709
3792
|
}),
|
|
3710
|
-
/* @__PURE__ */
|
|
3793
|
+
/* @__PURE__ */ O("line", {
|
|
3711
3794
|
x1: "9",
|
|
3712
3795
|
y1: "9",
|
|
3713
3796
|
x2: "15",
|
|
3714
3797
|
y2: "15"
|
|
3715
3798
|
})
|
|
3716
3799
|
] }),
|
|
3717
|
-
info: /* @__PURE__ */
|
|
3718
|
-
/* @__PURE__ */
|
|
3800
|
+
info: /* @__PURE__ */ k(Be, { children: [
|
|
3801
|
+
/* @__PURE__ */ O("circle", {
|
|
3719
3802
|
cx: "12",
|
|
3720
3803
|
cy: "12",
|
|
3721
3804
|
r: "10"
|
|
3722
3805
|
}),
|
|
3723
|
-
/* @__PURE__ */
|
|
3806
|
+
/* @__PURE__ */ O("line", {
|
|
3724
3807
|
x1: "12",
|
|
3725
3808
|
y1: "16",
|
|
3726
3809
|
x2: "12",
|
|
3727
3810
|
y2: "12"
|
|
3728
3811
|
}),
|
|
3729
|
-
/* @__PURE__ */
|
|
3812
|
+
/* @__PURE__ */ O("line", {
|
|
3730
3813
|
x1: "12",
|
|
3731
3814
|
y1: "8",
|
|
3732
3815
|
x2: "12.01",
|
|
3733
3816
|
y2: "8"
|
|
3734
3817
|
})
|
|
3735
3818
|
] })
|
|
3736
|
-
}, gi = ({ status: e = "info", title: t, description: n, onDismiss: r, className: i }) => /* @__PURE__ */
|
|
3819
|
+
}, gi = ({ status: e = "info", title: t, description: n, onDismiss: r, className: i }) => /* @__PURE__ */ k("div", {
|
|
3737
3820
|
role: e === "error" ? "alert" : "status",
|
|
3738
3821
|
"aria-live": e === "error" ? "assertive" : "polite",
|
|
3739
3822
|
className: [
|
|
@@ -3742,14 +3825,14 @@ var mi = {
|
|
|
3742
3825
|
i ?? ""
|
|
3743
3826
|
].filter(Boolean).join(" "),
|
|
3744
3827
|
children: [
|
|
3745
|
-
/* @__PURE__ */
|
|
3828
|
+
/* @__PURE__ */ O("span", {
|
|
3746
3829
|
className: mi.toast__icon,
|
|
3747
3830
|
"aria-hidden": "true",
|
|
3748
|
-
children: /* @__PURE__ */
|
|
3831
|
+
children: /* @__PURE__ */ O("svg", {
|
|
3749
3832
|
viewBox: "0 0 24 24",
|
|
3750
3833
|
fill: "none",
|
|
3751
3834
|
stroke: "currentColor",
|
|
3752
|
-
strokeWidth:
|
|
3835
|
+
strokeWidth: E(18),
|
|
3753
3836
|
strokeLinecap: "round",
|
|
3754
3837
|
strokeLinejoin: "round",
|
|
3755
3838
|
width: 18,
|
|
@@ -3757,36 +3840,36 @@ var mi = {
|
|
|
3757
3840
|
children: hi[e]
|
|
3758
3841
|
})
|
|
3759
3842
|
}),
|
|
3760
|
-
/* @__PURE__ */
|
|
3843
|
+
/* @__PURE__ */ k("div", {
|
|
3761
3844
|
className: mi.toast__content,
|
|
3762
|
-
children: [t && /* @__PURE__ */
|
|
3845
|
+
children: [t && /* @__PURE__ */ O("div", {
|
|
3763
3846
|
className: mi.toast__title,
|
|
3764
3847
|
children: t
|
|
3765
|
-
}), n && /* @__PURE__ */
|
|
3848
|
+
}), n && /* @__PURE__ */ O("div", {
|
|
3766
3849
|
className: mi.toast__description,
|
|
3767
3850
|
children: n
|
|
3768
3851
|
})]
|
|
3769
3852
|
}),
|
|
3770
|
-
r && /* @__PURE__ */
|
|
3853
|
+
r && /* @__PURE__ */ O("button", {
|
|
3771
3854
|
type: "button",
|
|
3772
3855
|
className: mi.toast__dismiss,
|
|
3773
3856
|
onClick: r,
|
|
3774
3857
|
"aria-label": "Dismiss",
|
|
3775
|
-
children: /* @__PURE__ */
|
|
3858
|
+
children: /* @__PURE__ */ k("svg", {
|
|
3776
3859
|
viewBox: "0 0 24 24",
|
|
3777
3860
|
fill: "none",
|
|
3778
3861
|
stroke: "currentColor",
|
|
3779
|
-
strokeWidth:
|
|
3862
|
+
strokeWidth: E(16),
|
|
3780
3863
|
strokeLinecap: "round",
|
|
3781
3864
|
strokeLinejoin: "round",
|
|
3782
3865
|
width: 16,
|
|
3783
3866
|
height: 16,
|
|
3784
|
-
children: [/* @__PURE__ */
|
|
3867
|
+
children: [/* @__PURE__ */ O("line", {
|
|
3785
3868
|
x1: "18",
|
|
3786
3869
|
y1: "6",
|
|
3787
3870
|
x2: "6",
|
|
3788
3871
|
y2: "18"
|
|
3789
|
-
}), /* @__PURE__ */
|
|
3872
|
+
}), /* @__PURE__ */ O("line", {
|
|
3790
3873
|
x1: "6",
|
|
3791
3874
|
y1: "6",
|
|
3792
3875
|
x2: "18",
|
|
@@ -3801,48 +3884,48 @@ var mi = {
|
|
|
3801
3884
|
bar__title: "_bar__title_14cqo_17",
|
|
3802
3885
|
"bar__title--center": "_bar__title--center_14cqo_21",
|
|
3803
3886
|
bar__search: "_bar__search_14cqo_22"
|
|
3804
|
-
}, vi = ({ type: e = "title", title: t, trailing: n, search: r, onMenu: i, onAction: a, onClose: o, className: s }) => /* @__PURE__ */
|
|
3887
|
+
}, vi = ({ type: e = "title", title: t, trailing: n, search: r, onMenu: i, onAction: a, onClose: o, className: s }) => /* @__PURE__ */ k("header", {
|
|
3805
3888
|
className: [_i.bar, s ?? ""].filter(Boolean).join(" "),
|
|
3806
3889
|
children: [
|
|
3807
|
-
/* @__PURE__ */
|
|
3890
|
+
/* @__PURE__ */ O("button", {
|
|
3808
3891
|
type: "button",
|
|
3809
3892
|
className: _i.bar__icon,
|
|
3810
3893
|
onClick: i,
|
|
3811
3894
|
"aria-label": "Open menu",
|
|
3812
|
-
children: /* @__PURE__ */
|
|
3895
|
+
children: /* @__PURE__ */ O(Qe, {
|
|
3813
3896
|
size: 18,
|
|
3814
|
-
strokeWidth:
|
|
3897
|
+
strokeWidth: E(18)
|
|
3815
3898
|
})
|
|
3816
3899
|
}),
|
|
3817
|
-
e === "search" ? /* @__PURE__ */
|
|
3900
|
+
e === "search" ? /* @__PURE__ */ O("div", {
|
|
3818
3901
|
className: _i.bar__search,
|
|
3819
3902
|
children: r
|
|
3820
|
-
}) : /* @__PURE__ */
|
|
3903
|
+
}) : /* @__PURE__ */ O("span", {
|
|
3821
3904
|
className: [_i.bar__title, e === "title-centered" ? _i["bar__title--center"] : ""].join(" "),
|
|
3822
3905
|
children: t
|
|
3823
3906
|
}),
|
|
3824
|
-
e === "title-action" && /* @__PURE__ */
|
|
3907
|
+
e === "title-action" && /* @__PURE__ */ O("button", {
|
|
3825
3908
|
type: "button",
|
|
3826
3909
|
className: _i.bar__icon,
|
|
3827
3910
|
onClick: a,
|
|
3828
3911
|
"aria-label": "Add",
|
|
3829
|
-
children: /* @__PURE__ */
|
|
3912
|
+
children: /* @__PURE__ */ O(nt, {
|
|
3830
3913
|
size: 18,
|
|
3831
|
-
strokeWidth:
|
|
3914
|
+
strokeWidth: E(18)
|
|
3832
3915
|
})
|
|
3833
3916
|
}),
|
|
3834
|
-
e === "search" && /* @__PURE__ */
|
|
3917
|
+
e === "search" && /* @__PURE__ */ O("button", {
|
|
3835
3918
|
type: "button",
|
|
3836
3919
|
className: _i.bar__icon,
|
|
3837
3920
|
onClick: o,
|
|
3838
3921
|
"aria-label": "Close search",
|
|
3839
|
-
children: /* @__PURE__ */
|
|
3922
|
+
children: /* @__PURE__ */ O(dt, {
|
|
3840
3923
|
size: 18,
|
|
3841
|
-
strokeWidth:
|
|
3924
|
+
strokeWidth: E(18)
|
|
3842
3925
|
})
|
|
3843
3926
|
}),
|
|
3844
3927
|
(e === "title" || e === "title-centered") && n
|
|
3845
3928
|
]
|
|
3846
3929
|
});
|
|
3847
3930
|
//#endregion
|
|
3848
|
-
export {
|
|
3931
|
+
export { _e as Accordion, Me as AccordionItem, Se as ActivityFeed, Oe as ActivityFeedHighlight, a as Alert, It as Announcement, Bn as AreaChart, oe as Avatar, me as AvatarGroup, be as AvatarUpload, u as Badge, Ae as Balance, nn as BarChart, pn as BlogBlockquote, hn as BlogFeatureText, _n as BlogImage, g as BlogListingCard, m as BlogListingFeaturedCard, b as BoardCard, Vn as BoardColumn, Pe as Breadcrumb, Ee as Button, Kn as Calendar, Jn as Card, r as CardMetaItem, d as CartItem, y as ChatComposer, Fe as Checkbox, C as CheckoutSteps, Bt as CodeSnippet, c as ColorSwatch, Yn as Combobox, T as ConversationItem, s as DEFAULT_CHECKOUT_STEPS, e as Divider, Qn as DonutChart, Ie as EmptyState, Ut as Expenses, p as FeaturedIcon, $n as FileUpload, Ne as FilterChip, yn as FirstPageHeading, ir as FunnelChart, sr as HeatmapChart, pe as IconButton, Kt as InlineHint, ne as Input, he as JobListing, lr as Kbd, dr as Label, hr as LineChart, ie as Link, xn as List, gr as ListItem, t as LocationDot, wn as Marquee, vr as Menu, yr as MenuDivider, xr as MenuItem, ue as MessageBubble, En as Metric, Dn as MobileNavigationMenu, _ as Modal, te as NotificationItem, de as Pagination, kr as PieChart, An as PlaceholderLogo, Ar as Popover, S as PriceDisplay, Le as ProductCard, v as ProductGallery, jn as ProfileCard, ce as Progress, qt as ProgressItem, w as ProgressStat, we as QuantitySelector, Br as RadarChart, Jr as RadialChart, Yr as Radio, Yt as RichSeparator, Nn as RichTextHeading, Fn as RichTextParagraph, h as SectionHeading, ve as SegmentedControl, Ce as Select, le as Sidebar, se as SidebarDivider, Xr as SidebarFooter, je as SidebarGroupLabel, ge as SidebarHeader, ae as SidebarItem, Qr as SidebarPromo, ei as SidebarSearch, De as SidebarSubItem, f as SizeSelector, xe as Skeleton, re as Slider, ee as SpendingBalance, ni as Spinner, l as StarRating, si as StatCard, li as Stepper, ci as StepperStep, an as StockMarket, o as StockStatus, Ln as SubFeature, di as Switch, fe as Table, Te as Tabs, sn as Tags, i as TeamCard, pi as Textarea, un as Ticker, gi as Toast, ye as Tooltip, ke as TopBar, vi as TopBarMobile, fn as Transactions, n as WishlistButton, x as getContrastColor, E as iconStrokeWidth };
|