@sakaniui/react 0.3.12 → 0.3.14
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/{TopBar-DYILMoxb.js → TopBar-CdIyPMAY.js} +6 -6
- package/dist/{TopBar-C5FgNkTr.cjs → TopBar-JgNNYQqS.cjs} +1 -1
- package/dist/blocks.cjs +1 -1
- package/dist/blocks.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +987 -944
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { ArrowRight as
|
|
5
|
-
import { Area as
|
|
6
|
-
var
|
|
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 ee, W as S, X as C, Y as te, Z as w, _ 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 A, Legend as _t, Line as vt, LineChart as yt, Pie as bt, PieChart as xt, PolarAngleAxis as St, PolarGrid as Ct, PolarRadiusAxis as wt, Radar as Tt, RadarChart as Et, RadialBar as Dt, RadialBarChart as Ot, Rectangle as kt, ResponsiveContainer as j, Sector as At, Tooltip as jt, XAxis as Mt, YAxis as Nt } from "recharts";
|
|
6
|
+
var Pt = {
|
|
7
7
|
announcement: "_announcement_1ba3c_1",
|
|
8
8
|
"announcement--neutral": "_announcement--neutral_1ba3c_13",
|
|
9
9
|
"announcement--urgent": "_announcement--urgent_1ba3c_16",
|
|
@@ -12,43 +12,43 @@ var Ft = {
|
|
|
12
12
|
icon__neutral: "_icon__neutral_1ba3c_32",
|
|
13
13
|
message: "_message_1ba3c_36",
|
|
14
14
|
link: "_link_1ba3c_52"
|
|
15
|
-
},
|
|
15
|
+
}, Ft = ({ 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
|
-
|
|
20
|
-
|
|
19
|
+
Pt.announcement,
|
|
20
|
+
Pt[`announcement--${a}`],
|
|
21
21
|
o ?? ""
|
|
22
22
|
].filter(Boolean).join(" "),
|
|
23
|
-
children: [/* @__PURE__ */
|
|
24
|
-
className:
|
|
23
|
+
children: [/* @__PURE__ */ k("div", {
|
|
24
|
+
className: Pt.content,
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
className:
|
|
26
|
+
/* @__PURE__ */ O("span", {
|
|
27
|
+
className: Pt.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",
|
|
40
40
|
stroke: "currentColor",
|
|
41
|
-
className:
|
|
41
|
+
className: Pt.icon__neutral
|
|
42
42
|
})
|
|
43
43
|
}),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
className:
|
|
44
|
+
/* @__PURE__ */ O("p", {
|
|
45
|
+
className: Pt.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
|
-
className:
|
|
51
|
+
className: Pt.link,
|
|
52
52
|
style: {
|
|
53
53
|
color: "var(--color-brand-fg)",
|
|
54
54
|
fontSize: 16,
|
|
@@ -57,15 +57,15 @@ 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",
|
|
65
65
|
onClick: i
|
|
66
66
|
})]
|
|
67
67
|
});
|
|
68
|
-
},
|
|
68
|
+
}, M = {
|
|
69
69
|
snippet: "_snippet_1ao90_1",
|
|
70
70
|
header: "_header_1ao90_12",
|
|
71
71
|
filename: "_filename_1ao90_19",
|
|
@@ -74,7 +74,7 @@ var Ft = {
|
|
|
74
74
|
tokenString: "_tokenString_1ao90_43",
|
|
75
75
|
editableBody: "_editableBody_1ao90_50",
|
|
76
76
|
textarea: "_textarea_1ao90_55"
|
|
77
|
-
},
|
|
77
|
+
}, It = [
|
|
78
78
|
"import",
|
|
79
79
|
"export",
|
|
80
80
|
"from",
|
|
@@ -96,31 +96,31 @@ var Ft = {
|
|
|
96
96
|
"as",
|
|
97
97
|
"of",
|
|
98
98
|
"in"
|
|
99
|
-
],
|
|
99
|
+
], Lt = RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${It.join("|")})\\b)`, "g"), Rt = (e) => e.split(Lt).map((e, t) => {
|
|
100
100
|
if (!e) return null;
|
|
101
|
-
let n = /^['"`]/.test(e), r = !n &&
|
|
102
|
-
return n ? /* @__PURE__ */
|
|
103
|
-
className:
|
|
101
|
+
let n = /^['"`]/.test(e), r = !n && It.includes(e);
|
|
102
|
+
return n ? /* @__PURE__ */ O("span", {
|
|
103
|
+
className: M.tokenString,
|
|
104
104
|
children: e
|
|
105
|
-
}, t) : r ? /* @__PURE__ */
|
|
106
|
-
className:
|
|
105
|
+
}, t) : r ? /* @__PURE__ */ O("span", {
|
|
106
|
+
className: M.tokenKeyword,
|
|
107
107
|
children: e
|
|
108
|
-
}, t) : /* @__PURE__ */
|
|
109
|
-
}),
|
|
110
|
-
let [s, c] =
|
|
111
|
-
|
|
108
|
+
}, t) : /* @__PURE__ */ O(D.Fragment, { children: e }, t);
|
|
109
|
+
}), zt = ({ code: e, filename: t, onCopy: n, editable: r = !1, onChange: i, placeholder: a, className: o }) => {
|
|
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__ */
|
|
117
|
-
className:
|
|
118
|
-
children: [/* @__PURE__ */
|
|
119
|
-
className:
|
|
116
|
+
}, p = r ? /* @__PURE__ */ k("div", {
|
|
117
|
+
className: M.editableBody,
|
|
118
|
+
children: [/* @__PURE__ */ O("pre", {
|
|
119
|
+
className: M.body,
|
|
120
120
|
"aria-hidden": "true",
|
|
121
|
-
children:
|
|
122
|
-
}), /* @__PURE__ */
|
|
123
|
-
className:
|
|
121
|
+
children: Rt(l)
|
|
122
|
+
}), /* @__PURE__ */ O("textarea", {
|
|
123
|
+
className: M.textarea,
|
|
124
124
|
value: l,
|
|
125
125
|
placeholder: a,
|
|
126
126
|
spellCheck: !1,
|
|
@@ -134,30 +134,30 @@ var Ft = {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
})]
|
|
137
|
-
}) : /* @__PURE__ */
|
|
138
|
-
className:
|
|
139
|
-
children:
|
|
137
|
+
}) : /* @__PURE__ */ O("pre", {
|
|
138
|
+
className: M.body,
|
|
139
|
+
children: Rt(l)
|
|
140
140
|
});
|
|
141
|
-
return t ? /* @__PURE__ */
|
|
142
|
-
className: [
|
|
143
|
-
children: [/* @__PURE__ */
|
|
144
|
-
className:
|
|
145
|
-
children: [/* @__PURE__ */
|
|
146
|
-
className:
|
|
141
|
+
return t ? /* @__PURE__ */ k("div", {
|
|
142
|
+
className: [M.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
143
|
+
children: [/* @__PURE__ */ k("div", {
|
|
144
|
+
className: M.header,
|
|
145
|
+
children: [/* @__PURE__ */ O("p", {
|
|
146
|
+
className: M.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__ */
|
|
157
|
-
className: [
|
|
156
|
+
}) : /* @__PURE__ */ O("div", {
|
|
157
|
+
className: [M.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
158
158
|
children: p
|
|
159
159
|
});
|
|
160
|
-
},
|
|
160
|
+
}, Bt = {
|
|
161
161
|
expenses: "_expenses_1imiq_1",
|
|
162
162
|
row: "_row_1imiq_10",
|
|
163
163
|
top: "_top_1imiq_18",
|
|
@@ -165,70 +165,70 @@ var Ft = {
|
|
|
165
165
|
icon: "_icon_1imiq_32",
|
|
166
166
|
label: "_label_1imiq_44",
|
|
167
167
|
amount: "_amount_1imiq_55"
|
|
168
|
-
},
|
|
168
|
+
}, Vt = (e) => e.toLocaleString("en-US", {
|
|
169
169
|
style: "currency",
|
|
170
170
|
currency: "USD"
|
|
171
|
-
}),
|
|
171
|
+
}), Ht = ({ categories: e, variant: t = "default", formatAmount: n = Vt, className: r }) => {
|
|
172
172
|
let i = t === "compact", a = Math.max(1, ...e.map((e) => e.amount));
|
|
173
|
-
return /* @__PURE__ */
|
|
174
|
-
className: [
|
|
175
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
176
|
-
className:
|
|
177
|
-
children: [/* @__PURE__ */
|
|
178
|
-
className:
|
|
179
|
-
children: [/* @__PURE__ */
|
|
180
|
-
className:
|
|
181
|
-
children: [/* @__PURE__ */
|
|
182
|
-
className:
|
|
173
|
+
return /* @__PURE__ */ O("div", {
|
|
174
|
+
className: [Bt.expenses, r ?? ""].filter(Boolean).join(" "),
|
|
175
|
+
children: e.map((e, t) => /* @__PURE__ */ k("div", {
|
|
176
|
+
className: Bt.row,
|
|
177
|
+
children: [/* @__PURE__ */ k("div", {
|
|
178
|
+
className: Bt.top,
|
|
179
|
+
children: [/* @__PURE__ */ k("div", {
|
|
180
|
+
className: Bt.left,
|
|
181
|
+
children: [/* @__PURE__ */ O("span", {
|
|
182
|
+
className: Bt.icon,
|
|
183
183
|
"aria-hidden": "true",
|
|
184
184
|
children: e.icon
|
|
185
|
-
}), /* @__PURE__ */
|
|
186
|
-
className:
|
|
185
|
+
}), /* @__PURE__ */ O("p", {
|
|
186
|
+
className: Bt.label,
|
|
187
187
|
children: e.label
|
|
188
188
|
})]
|
|
189
|
-
}), /* @__PURE__ */
|
|
190
|
-
className:
|
|
189
|
+
}), /* @__PURE__ */ O("p", {
|
|
190
|
+
className: Bt.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`
|
|
197
197
|
})]
|
|
198
198
|
}, e.id ?? t))
|
|
199
199
|
});
|
|
200
|
-
},
|
|
200
|
+
}, Ut = {
|
|
201
201
|
hint: "_hint_49nyi_1",
|
|
202
202
|
bar: "_bar_49nyi_9",
|
|
203
203
|
"hint--neutral": "_hint--neutral_49nyi_15",
|
|
204
204
|
"hint--warning": "_hint--warning_49nyi_16",
|
|
205
205
|
icon: "_icon_49nyi_18",
|
|
206
206
|
message: "_message_49nyi_24"
|
|
207
|
-
},
|
|
208
|
-
let r = t === "warning" ?
|
|
209
|
-
return /* @__PURE__ */
|
|
207
|
+
}, Wt = 14, Gt = ({ message: e, variant: t = "neutral", className: n }) => {
|
|
208
|
+
let r = t === "warning" ? lt : Xe;
|
|
209
|
+
return /* @__PURE__ */ k("div", {
|
|
210
210
|
className: [
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
Ut.hint,
|
|
212
|
+
Ut[`hint--${t}`],
|
|
213
213
|
n ?? ""
|
|
214
214
|
].filter(Boolean).join(" "),
|
|
215
215
|
children: [
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
className:
|
|
216
|
+
/* @__PURE__ */ O("span", {
|
|
217
|
+
className: Ut.bar,
|
|
218
218
|
"aria-hidden": "true"
|
|
219
219
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
221
|
-
size:
|
|
222
|
-
strokeWidth:
|
|
223
|
-
className:
|
|
220
|
+
/* @__PURE__ */ O(r, {
|
|
221
|
+
size: Wt,
|
|
222
|
+
strokeWidth: E(Wt),
|
|
223
|
+
className: Ut.icon
|
|
224
224
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
className:
|
|
225
|
+
/* @__PURE__ */ O("p", {
|
|
226
|
+
className: Ut.message,
|
|
227
227
|
children: e
|
|
228
228
|
})
|
|
229
229
|
]
|
|
230
230
|
});
|
|
231
|
-
},
|
|
231
|
+
}, N = {
|
|
232
232
|
item: "_item_mg6gs_1",
|
|
233
233
|
"item--horizontal": "_item--horizontal_mg6gs_6",
|
|
234
234
|
"item--vertical": "_item--vertical_mg6gs_11",
|
|
@@ -240,68 +240,68 @@ var Ft = {
|
|
|
240
240
|
text: "_text_mg6gs_59",
|
|
241
241
|
title: "_title_mg6gs_65",
|
|
242
242
|
description: "_description_mg6gs_73"
|
|
243
|
-
},
|
|
244
|
-
let s = i === "vertical", c = /* @__PURE__ */
|
|
245
|
-
className:
|
|
243
|
+
}, Kt = ({ step: e, title: t, description: n, completed: r = !1, orientation: i = "horizontal", isLast: a = !1, className: o }) => {
|
|
244
|
+
let s = i === "vertical", c = /* @__PURE__ */ O("span", {
|
|
245
|
+
className: N.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__ */
|
|
252
|
-
className:
|
|
253
|
-
children: [/* @__PURE__ */
|
|
254
|
-
className:
|
|
251
|
+
}), l = /* @__PURE__ */ k("div", {
|
|
252
|
+
className: N.text,
|
|
253
|
+
children: [/* @__PURE__ */ O("p", {
|
|
254
|
+
className: N.title,
|
|
255
255
|
children: t
|
|
256
|
-
}), n && /* @__PURE__ */
|
|
257
|
-
className:
|
|
256
|
+
}), n && /* @__PURE__ */ O("p", {
|
|
257
|
+
className: N.description,
|
|
258
258
|
children: n
|
|
259
259
|
})]
|
|
260
260
|
});
|
|
261
|
-
return s ? /* @__PURE__ */
|
|
261
|
+
return s ? /* @__PURE__ */ k("div", {
|
|
262
262
|
className: [
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
N.item,
|
|
264
|
+
N["item--vertical"],
|
|
265
265
|
o ?? ""
|
|
266
266
|
].filter(Boolean).join(" "),
|
|
267
|
-
children: [/* @__PURE__ */
|
|
268
|
-
className:
|
|
269
|
-
children: [c, !a && /* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ k("div", {
|
|
268
|
+
className: N.rail,
|
|
269
|
+
children: [c, !a && /* @__PURE__ */ O("div", { className: N.connectorVertical })]
|
|
270
270
|
}), l]
|
|
271
|
-
}) : /* @__PURE__ */
|
|
271
|
+
}) : /* @__PURE__ */ k("div", {
|
|
272
272
|
className: [
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
N.item,
|
|
274
|
+
N["item--horizontal"],
|
|
275
275
|
o ?? ""
|
|
276
276
|
].filter(Boolean).join(" "),
|
|
277
|
-
children: [/* @__PURE__ */
|
|
278
|
-
className:
|
|
279
|
-
children: [c, !a && /* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ k("div", {
|
|
278
|
+
className: N.topRow,
|
|
279
|
+
children: [c, !a && /* @__PURE__ */ O("div", { className: N.connectorHorizontal })]
|
|
280
280
|
}), l]
|
|
281
281
|
});
|
|
282
|
-
},
|
|
282
|
+
}, qt = {
|
|
283
283
|
separator: "_separator_pcfo8_1",
|
|
284
284
|
line: "_line_pcfo8_9",
|
|
285
285
|
overline: "_overline_pcfo8_19",
|
|
286
286
|
badge: "_badge_pcfo8_31",
|
|
287
287
|
iconWrap: "_iconWrap_pcfo8_37"
|
|
288
|
-
},
|
|
289
|
-
className: [
|
|
288
|
+
}, Jt = ({ children: t, label: n, className: r }) => /* @__PURE__ */ k("div", {
|
|
289
|
+
className: [qt.separator, r ?? ""].filter(Boolean).join(" "),
|
|
290
290
|
role: "separator",
|
|
291
291
|
children: [
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
t ?? (n && /* @__PURE__ */
|
|
294
|
-
className:
|
|
292
|
+
/* @__PURE__ */ O(e, { className: qt.line }),
|
|
293
|
+
t ?? (n && /* @__PURE__ */ O("span", {
|
|
294
|
+
className: qt.overline,
|
|
295
295
|
children: n
|
|
296
296
|
})),
|
|
297
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ O(e, { className: qt.line })
|
|
298
298
|
]
|
|
299
299
|
});
|
|
300
300
|
//#endregion
|
|
301
301
|
//#region src/lib/useChartTokens.ts
|
|
302
|
-
function
|
|
303
|
-
let [, t] =
|
|
304
|
-
return
|
|
302
|
+
function P(e) {
|
|
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]);
|
|
@@ -318,89 +318,89 @@ function N(e) {
|
|
|
318
318
|
}
|
|
319
319
|
//#endregion
|
|
320
320
|
//#region src/lib/chartPalette.ts
|
|
321
|
-
var
|
|
321
|
+
var Yt = [
|
|
322
322
|
"#ff4700",
|
|
323
323
|
"#5b92dd",
|
|
324
324
|
"#47a8a2",
|
|
325
325
|
"#9179d6",
|
|
326
326
|
"#dca84f",
|
|
327
327
|
"#12b76a"
|
|
328
|
-
],
|
|
328
|
+
], Xt = {
|
|
329
329
|
tooltip: "_tooltip_ic16u_3",
|
|
330
330
|
title: "_title_ic16u_23",
|
|
331
331
|
row: "_row_ic16u_27",
|
|
332
332
|
dot: "_dot_ic16u_34",
|
|
333
333
|
label: "_label_ic16u_41",
|
|
334
334
|
value: "_value_ic16u_42"
|
|
335
|
-
},
|
|
336
|
-
className:
|
|
337
|
-
children: [n !== void 0 && n !== "" && /* @__PURE__ */
|
|
338
|
-
className:
|
|
335
|
+
}, Zt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ k("div", {
|
|
336
|
+
className: Xt.tooltip,
|
|
337
|
+
children: [n !== void 0 && n !== "" && /* @__PURE__ */ O("span", {
|
|
338
|
+
className: Xt.title,
|
|
339
339
|
children: n
|
|
340
|
-
}), t.map((e, t) => /* @__PURE__ */
|
|
341
|
-
className:
|
|
340
|
+
}), t.map((e, t) => /* @__PURE__ */ k("div", {
|
|
341
|
+
className: Xt.row,
|
|
342
342
|
children: [
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
className:
|
|
343
|
+
/* @__PURE__ */ O("span", {
|
|
344
|
+
className: Xt.dot,
|
|
345
345
|
style: { background: e.color ?? e.payload?.fill ?? e.fill }
|
|
346
346
|
}),
|
|
347
|
-
/* @__PURE__ */
|
|
348
|
-
className:
|
|
347
|
+
/* @__PURE__ */ O("span", {
|
|
348
|
+
className: Xt.label,
|
|
349
349
|
children: e.name
|
|
350
350
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
className:
|
|
351
|
+
/* @__PURE__ */ O("span", {
|
|
352
|
+
className: Xt.value,
|
|
353
353
|
children: r ? r(e.value, e.name) : e.value
|
|
354
354
|
})
|
|
355
355
|
]
|
|
356
356
|
}, t))]
|
|
357
|
-
}),
|
|
357
|
+
}), Qt = {
|
|
358
358
|
chart: "_chart_1s6lv_2",
|
|
359
359
|
legend: "_legend_1s6lv_31",
|
|
360
360
|
legendItem: "_legendItem_1s6lv_41",
|
|
361
361
|
legendSwatch: "_legendSwatch_1s6lv_46"
|
|
362
|
-
},
|
|
362
|
+
}, $t = {
|
|
363
363
|
sm: 180,
|
|
364
364
|
md: 240,
|
|
365
365
|
lg: 320,
|
|
366
366
|
xl: 420
|
|
367
|
-
},
|
|
367
|
+
}, F = 6, en = (e) => {
|
|
368
368
|
if (e <= 0) return 1;
|
|
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
|
-
},
|
|
372
|
-
let [a, o] =
|
|
371
|
+
}, tn = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
|
|
372
|
+
let [a, o] = D.useState(null), [s, c] = D.useState(null), l = D.useRef(null), u = P(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,
|
|
376
376
|
4,
|
|
377
377
|
5,
|
|
378
378
|
6
|
|
379
|
-
].map((e) => u(`--color-chart-${e}`) ??
|
|
379
|
+
].map((e) => u(`--color-chart-${e}`) ?? Yt[e - 1]), h = u("--color-border-subtle") ?? "#e7e5e1", g = u("--color-fg-muted") ?? "#78716a", _ = t === "multiple" || t === "stacked", v = _ && e.some((e) => e.value2 !== void 0), y = u("--color-bg-canvas") ?? "#fafaf9", b = en(Math.max(1, ...e.map((e) => Math.abs(e.value)))), x = [
|
|
380
380
|
-b,
|
|
381
381
|
-b / 2,
|
|
382
382
|
0,
|
|
383
383
|
b / 2,
|
|
384
384
|
b
|
|
385
|
-
],
|
|
385
|
+
], ee = /* @__PURE__ */ O(jt, {
|
|
386
386
|
cursor: !1,
|
|
387
|
-
content: /* @__PURE__ */
|
|
387
|
+
content: /* @__PURE__ */ O(Zt, {}),
|
|
388
388
|
wrapperStyle: { zIndex: 50 },
|
|
389
389
|
position: s ? { y: s.y } : void 0
|
|
390
|
-
}),
|
|
390
|
+
}), S = (n) => t === "active" ? m[n % m.length] : t === "negative" && e[n].value < 0 ? p : d, C = (e) => a !== null && e !== a ? .45 : 1, te = (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
|
+
}), w = (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 } = te(t === "horizontal", i, a, o, s, u);
|
|
395
|
+
return t === "stacked" && n === "value" ? /* @__PURE__ */ O(kt, {
|
|
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(kt, {
|
|
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(te(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
|
-
className: [
|
|
438
|
-
children: /* @__PURE__ */
|
|
437
|
+
className: [Qt.chart, i ?? ""].filter(Boolean).join(" "),
|
|
438
|
+
children: /* @__PURE__ */ O(j, {
|
|
439
439
|
width: "100%",
|
|
440
|
-
height:
|
|
441
|
-
children: /* @__PURE__ */
|
|
440
|
+
height: $t[n],
|
|
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(Mt, {
|
|
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(Nt, {
|
|
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(Mt, {
|
|
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(Nt, {
|
|
480
480
|
hide: !0,
|
|
481
481
|
domain: [-b, b],
|
|
482
482
|
ticks: x
|
|
483
483
|
}),
|
|
484
|
-
|
|
485
|
-
_ && /* @__PURE__ */
|
|
486
|
-
className:
|
|
487
|
-
children: e.payload?.map((e) => /* @__PURE__ */
|
|
488
|
-
className:
|
|
489
|
-
children: [/* @__PURE__ */
|
|
490
|
-
className:
|
|
484
|
+
ee,
|
|
485
|
+
_ && /* @__PURE__ */ O(_t, { content: (e) => /* @__PURE__ */ O("ul", {
|
|
486
|
+
className: Qt.legend,
|
|
487
|
+
children: e.payload?.map((e) => /* @__PURE__ */ k("li", {
|
|
488
|
+
className: Qt.legendItem,
|
|
489
|
+
children: [/* @__PURE__ */ O("span", {
|
|
490
|
+
className: Qt.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,
|
|
@@ -503,70 +503,70 @@ var Xt = [
|
|
|
503
503
|
radius: t === "stacked" ? [
|
|
504
504
|
0,
|
|
505
505
|
0,
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
F,
|
|
507
|
+
F
|
|
508
508
|
] : [
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
509
|
+
F,
|
|
510
|
+
F,
|
|
511
|
+
F,
|
|
512
|
+
F
|
|
513
513
|
],
|
|
514
514
|
isAnimationActive: !1,
|
|
515
|
-
activeBar:
|
|
516
|
-
onMouseEnter:
|
|
517
|
-
onMouseLeave:
|
|
518
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
515
|
+
activeBar: w("value"),
|
|
516
|
+
onMouseEnter: ne("value"),
|
|
517
|
+
onMouseLeave: re,
|
|
518
|
+
children: e.map((e, t) => /* @__PURE__ */ O(A, {
|
|
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,
|
|
526
526
|
stackId: t === "stacked" ? "stack" : void 0,
|
|
527
527
|
radius: t === "stacked" ? [
|
|
528
|
-
|
|
529
|
-
|
|
528
|
+
F,
|
|
529
|
+
F,
|
|
530
530
|
0,
|
|
531
531
|
0
|
|
532
532
|
] : [
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
533
|
+
F,
|
|
534
|
+
F,
|
|
535
|
+
F,
|
|
536
|
+
F
|
|
537
537
|
],
|
|
538
538
|
isAnimationActive: !1,
|
|
539
|
-
activeBar:
|
|
540
|
-
onMouseEnter:
|
|
541
|
-
onMouseLeave:
|
|
542
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
539
|
+
activeBar: w("value2"),
|
|
540
|
+
onMouseEnter: ne("value2"),
|
|
541
|
+
onMouseLeave: re,
|
|
542
|
+
children: e.map((e, t) => /* @__PURE__ */ O(A, {
|
|
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
|
-
fill: a === null ? d :
|
|
549
|
+
fill: a === null ? d : S(a),
|
|
550
550
|
radius: [
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
551
|
+
F,
|
|
552
|
+
F,
|
|
553
|
+
F,
|
|
554
|
+
F
|
|
555
555
|
],
|
|
556
556
|
isAnimationActive: !1,
|
|
557
|
-
activeBar:
|
|
558
|
-
onMouseEnter:
|
|
559
|
-
onMouseLeave:
|
|
560
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
561
|
-
fill:
|
|
562
|
-
fillOpacity:
|
|
557
|
+
activeBar: w("value"),
|
|
558
|
+
onMouseEnter: ne("value"),
|
|
559
|
+
onMouseLeave: re,
|
|
560
|
+
children: e.map((e, t) => /* @__PURE__ */ O(A, {
|
|
561
|
+
fill: S(t),
|
|
562
|
+
fillOpacity: C(t)
|
|
563
563
|
}, t))
|
|
564
564
|
})
|
|
565
565
|
]
|
|
566
566
|
})
|
|
567
567
|
})
|
|
568
568
|
});
|
|
569
|
-
},
|
|
569
|
+
}, I = {
|
|
570
570
|
row: "_row_5wjem_2",
|
|
571
571
|
left: "_left_5wjem_16",
|
|
572
572
|
logo: "_logo_5wjem_23",
|
|
@@ -592,133 +592,133 @@ var Xt = [
|
|
|
592
592
|
changeRowLg: "_changeRowLg_5wjem_153",
|
|
593
593
|
changeTextLg: "_changeTextLg_5wjem_158",
|
|
594
594
|
chart: "_chart_5wjem_165"
|
|
595
|
-
},
|
|
595
|
+
}, nn = (e) => Math.abs(e).toLocaleString("en-US", {
|
|
596
596
|
style: "currency",
|
|
597
597
|
currency: "USD"
|
|
598
|
-
}),
|
|
599
|
-
let u = i.amount >= 0, d = u ?
|
|
600
|
-
return o ? /* @__PURE__ */
|
|
601
|
-
className: [
|
|
598
|
+
}), rn = ({ logo: e, symbol: t, name: n, price: r, change: i, formatAmount: a = nn, chart: o, periodLabel: s = "Last 6 months", onPeriodClick: c, className: l }) => {
|
|
599
|
+
let u = i.amount >= 0, d = u ? ct : st, f = u ? "+" : "-", p = `${f}${a(i.amount)} (${f}${Math.abs(i.percent)}%)`, m = u ? I.trendUp : I.trendDown;
|
|
600
|
+
return o ? /* @__PURE__ */ k("div", {
|
|
601
|
+
className: [I.card, l ?? ""].filter(Boolean).join(" "),
|
|
602
602
|
children: [
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
className:
|
|
605
|
-
children: [/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ k("div", {
|
|
604
|
+
className: I.header,
|
|
605
|
+
children: [/* @__PURE__ */ O(He, {
|
|
606
606
|
size: 16,
|
|
607
|
-
strokeWidth:
|
|
608
|
-
className:
|
|
609
|
-
}), /* @__PURE__ */
|
|
610
|
-
className:
|
|
607
|
+
strokeWidth: E(16),
|
|
608
|
+
className: I.headerIcon
|
|
609
|
+
}), /* @__PURE__ */ O("span", {
|
|
610
|
+
className: I.headerLabel,
|
|
611
611
|
children: "Stock market"
|
|
612
612
|
})]
|
|
613
613
|
}),
|
|
614
|
-
/* @__PURE__ */
|
|
615
|
-
className:
|
|
616
|
-
children: [/* @__PURE__ */
|
|
617
|
-
className:
|
|
614
|
+
/* @__PURE__ */ k("div", {
|
|
615
|
+
className: I.tickerRow,
|
|
616
|
+
children: [/* @__PURE__ */ O("span", {
|
|
617
|
+
className: I.logoLg,
|
|
618
618
|
"aria-hidden": "true",
|
|
619
619
|
children: e
|
|
620
|
-
}), /* @__PURE__ */
|
|
621
|
-
className:
|
|
622
|
-
children: [/* @__PURE__ */
|
|
623
|
-
className:
|
|
620
|
+
}), /* @__PURE__ */ k("div", {
|
|
621
|
+
className: I.text,
|
|
622
|
+
children: [/* @__PURE__ */ O("p", {
|
|
623
|
+
className: I.symbol,
|
|
624
624
|
children: t
|
|
625
|
-
}), /* @__PURE__ */
|
|
626
|
-
className:
|
|
625
|
+
}), /* @__PURE__ */ O("p", {
|
|
626
|
+
className: I.name,
|
|
627
627
|
children: n
|
|
628
628
|
})]
|
|
629
629
|
})]
|
|
630
630
|
}),
|
|
631
|
-
/* @__PURE__ */
|
|
632
|
-
className:
|
|
633
|
-
children: [/* @__PURE__ */
|
|
634
|
-
className:
|
|
635
|
-
children: [/* @__PURE__ */
|
|
636
|
-
className:
|
|
637
|
-
children: [/* @__PURE__ */
|
|
638
|
-
className:
|
|
631
|
+
/* @__PURE__ */ k("div", {
|
|
632
|
+
className: I.body,
|
|
633
|
+
children: [/* @__PURE__ */ k("div", {
|
|
634
|
+
className: I.priceRow,
|
|
635
|
+
children: [/* @__PURE__ */ k("div", {
|
|
636
|
+
className: I.priceGroup,
|
|
637
|
+
children: [/* @__PURE__ */ O("p", {
|
|
638
|
+
className: I.priceLg,
|
|
639
639
|
children: a(r)
|
|
640
|
-
}), /* @__PURE__ */
|
|
641
|
-
className:
|
|
642
|
-
children: [/* @__PURE__ */
|
|
640
|
+
}), /* @__PURE__ */ k("div", {
|
|
641
|
+
className: I.changeRowLg,
|
|
642
|
+
children: [/* @__PURE__ */ O(d, {
|
|
643
643
|
size: 24,
|
|
644
|
-
strokeWidth:
|
|
644
|
+
strokeWidth: E(24),
|
|
645
645
|
className: m
|
|
646
|
-
}), /* @__PURE__ */
|
|
647
|
-
className: [
|
|
646
|
+
}), /* @__PURE__ */ O("span", {
|
|
647
|
+
className: [I.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(tn, {
|
|
662
662
|
data: o,
|
|
663
|
-
className:
|
|
663
|
+
className: I.chart
|
|
664
664
|
})]
|
|
665
665
|
})
|
|
666
666
|
]
|
|
667
|
-
}) : /* @__PURE__ */
|
|
668
|
-
className: [
|
|
669
|
-
children: [/* @__PURE__ */
|
|
670
|
-
className:
|
|
671
|
-
children: [/* @__PURE__ */
|
|
672
|
-
className:
|
|
667
|
+
}) : /* @__PURE__ */ k("div", {
|
|
668
|
+
className: [I.row, l ?? ""].filter(Boolean).join(" "),
|
|
669
|
+
children: [/* @__PURE__ */ k("div", {
|
|
670
|
+
className: I.left,
|
|
671
|
+
children: [/* @__PURE__ */ O("span", {
|
|
672
|
+
className: I.logo,
|
|
673
673
|
"aria-hidden": "true",
|
|
674
674
|
children: e
|
|
675
|
-
}), /* @__PURE__ */
|
|
676
|
-
className:
|
|
677
|
-
children: [/* @__PURE__ */
|
|
678
|
-
className:
|
|
675
|
+
}), /* @__PURE__ */ k("div", {
|
|
676
|
+
className: I.text,
|
|
677
|
+
children: [/* @__PURE__ */ O("p", {
|
|
678
|
+
className: I.symbol,
|
|
679
679
|
children: t
|
|
680
|
-
}), /* @__PURE__ */
|
|
681
|
-
className:
|
|
680
|
+
}), /* @__PURE__ */ O("p", {
|
|
681
|
+
className: I.name,
|
|
682
682
|
children: n
|
|
683
683
|
})]
|
|
684
684
|
})]
|
|
685
|
-
}), /* @__PURE__ */
|
|
686
|
-
className:
|
|
687
|
-
children: [/* @__PURE__ */
|
|
688
|
-
className:
|
|
685
|
+
}), /* @__PURE__ */ k("div", {
|
|
686
|
+
className: I.right,
|
|
687
|
+
children: [/* @__PURE__ */ O("p", {
|
|
688
|
+
className: I.price,
|
|
689
689
|
children: a(r)
|
|
690
|
-
}), /* @__PURE__ */
|
|
691
|
-
className:
|
|
692
|
-
children: [/* @__PURE__ */
|
|
690
|
+
}), /* @__PURE__ */ k("div", {
|
|
691
|
+
className: I.changeRow,
|
|
692
|
+
children: [/* @__PURE__ */ O(d, {
|
|
693
693
|
size: 20,
|
|
694
|
-
strokeWidth:
|
|
694
|
+
strokeWidth: E(20),
|
|
695
695
|
className: m
|
|
696
|
-
}), /* @__PURE__ */
|
|
697
|
-
className: [
|
|
696
|
+
}), /* @__PURE__ */ O("span", {
|
|
697
|
+
className: [I.changeText, m].join(" "),
|
|
698
698
|
children: p
|
|
699
699
|
})]
|
|
700
700
|
})]
|
|
701
701
|
})]
|
|
702
702
|
});
|
|
703
|
-
},
|
|
703
|
+
}, an = {
|
|
704
704
|
tags: "_tags_acsad_1",
|
|
705
705
|
remove: "_remove_acsad_8"
|
|
706
|
-
},
|
|
707
|
-
className: [
|
|
708
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
709
|
-
rightIcon: t && /* @__PURE__ */
|
|
706
|
+
}, on = ({ tags: e, onRemove: t, className: n }) => /* @__PURE__ */ O("div", {
|
|
707
|
+
className: [an.tags, n ?? ""].filter(Boolean).join(" "),
|
|
708
|
+
children: e.map((e, n) => /* @__PURE__ */ O(u, {
|
|
709
|
+
rightIcon: t && /* @__PURE__ */ O("button", {
|
|
710
710
|
type: "button",
|
|
711
|
-
className:
|
|
711
|
+
className: an.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
|
|
720
720
|
}, e))
|
|
721
|
-
}),
|
|
721
|
+
}), L = {
|
|
722
722
|
ticker: "_ticker_6xnxy_1",
|
|
723
723
|
track: "_track_6xnxy_9",
|
|
724
724
|
"ticker-scroll": "_ticker-scroll_6xnxy_1",
|
|
@@ -730,33 +730,33 @@ var Xt = [
|
|
|
730
730
|
trendDown: "_trendDown_6xnxy_58",
|
|
731
731
|
fadeLeft: "_fadeLeft_6xnxy_60",
|
|
732
732
|
fadeRight: "_fadeRight_6xnxy_61"
|
|
733
|
-
},
|
|
734
|
-
className:
|
|
733
|
+
}, sn = (e) => `${e >= 0 ? "+" : ""}${e}%`, cn = ({ items: e, formatChange: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
|
|
734
|
+
className: L.row,
|
|
735
735
|
"aria-hidden": n,
|
|
736
736
|
children: e.map((e, n) => {
|
|
737
|
-
let r = e.changePercent >= 0, i = r ?
|
|
738
|
-
return /* @__PURE__ */
|
|
739
|
-
className:
|
|
737
|
+
let r = e.changePercent >= 0, i = r ? ct : st, a = r ? L.trendUp : L.trendDown;
|
|
738
|
+
return /* @__PURE__ */ k("div", {
|
|
739
|
+
className: L.item,
|
|
740
740
|
children: [
|
|
741
|
-
/* @__PURE__ */
|
|
742
|
-
className:
|
|
741
|
+
/* @__PURE__ */ O("span", {
|
|
742
|
+
className: L.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__ */
|
|
751
|
-
className: [
|
|
750
|
+
/* @__PURE__ */ O("span", {
|
|
751
|
+
className: [L.change, a].join(" "),
|
|
752
752
|
children: t(e.changePercent)
|
|
753
753
|
})
|
|
754
754
|
]
|
|
755
755
|
}, `${e.symbol}-${n}`);
|
|
756
756
|
})
|
|
757
|
-
}),
|
|
758
|
-
let i =
|
|
759
|
-
return
|
|
757
|
+
}), ln = ({ items: e, speed: t = 40, formatChange: n = sn, className: r }) => {
|
|
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,33 +768,33 @@ var Xt = [
|
|
|
768
768
|
r();
|
|
769
769
|
let a = new ResizeObserver(r);
|
|
770
770
|
return a.observe(n), () => a.disconnect();
|
|
771
|
-
}, [e, t]), /* @__PURE__ */
|
|
772
|
-
className: [
|
|
771
|
+
}, [e, t]), /* @__PURE__ */ k("div", {
|
|
772
|
+
className: [L.ticker, r ?? ""].filter(Boolean).join(" "),
|
|
773
773
|
children: [
|
|
774
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ k("div", {
|
|
775
775
|
ref: i,
|
|
776
|
-
className:
|
|
776
|
+
className: L.track,
|
|
777
777
|
style: { "--ticker-duration": `${a}s` },
|
|
778
|
-
children: [/* @__PURE__ */
|
|
778
|
+
children: [/* @__PURE__ */ O(cn, {
|
|
779
779
|
items: e,
|
|
780
780
|
formatChange: n
|
|
781
|
-
}), /* @__PURE__ */
|
|
781
|
+
}), /* @__PURE__ */ O(cn, {
|
|
782
782
|
items: e,
|
|
783
783
|
formatChange: n,
|
|
784
784
|
ariaHidden: !0
|
|
785
785
|
})]
|
|
786
786
|
}),
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
className:
|
|
787
|
+
/* @__PURE__ */ O("div", {
|
|
788
|
+
className: L.fadeLeft,
|
|
789
789
|
"aria-hidden": "true"
|
|
790
790
|
}),
|
|
791
|
-
/* @__PURE__ */
|
|
792
|
-
className:
|
|
791
|
+
/* @__PURE__ */ O("div", {
|
|
792
|
+
className: L.fadeRight,
|
|
793
793
|
"aria-hidden": "true"
|
|
794
794
|
})
|
|
795
795
|
]
|
|
796
796
|
});
|
|
797
|
-
},
|
|
797
|
+
}, R = {
|
|
798
798
|
list: "_list_ovxee_1",
|
|
799
799
|
row: "_row_ovxee_9",
|
|
800
800
|
rowLast: "_rowLast_ovxee_18",
|
|
@@ -810,55 +810,55 @@ var Xt = [
|
|
|
810
810
|
emptyIcon: "_emptyIcon_ovxee_86",
|
|
811
811
|
emptyTitle: "_emptyTitle_ovxee_89",
|
|
812
812
|
emptyDesc: "_emptyDesc_ovxee_96"
|
|
813
|
-
},
|
|
813
|
+
}, un = (e) => `${e >= 0 ? "+" : "-"}${Math.abs(e).toLocaleString("en-US", {
|
|
814
814
|
style: "currency",
|
|
815
815
|
currency: "USD"
|
|
816
|
-
})}`,
|
|
817
|
-
className: [
|
|
816
|
+
})}`, dn = ({ transactions: e, formatAmount: t = un, emptyTitle: n = "No transactions yet", emptyDescription: r = "Your activity will show up here.", className: i }) => e.length === 0 ? /* @__PURE__ */ k("div", {
|
|
817
|
+
className: [R.empty, i ?? ""].filter(Boolean).join(" "),
|
|
818
818
|
children: [
|
|
819
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ O(it, {
|
|
820
820
|
size: 24,
|
|
821
|
-
strokeWidth:
|
|
822
|
-
className:
|
|
821
|
+
strokeWidth: E(24),
|
|
822
|
+
className: R.emptyIcon
|
|
823
823
|
}),
|
|
824
|
-
/* @__PURE__ */
|
|
825
|
-
className:
|
|
824
|
+
/* @__PURE__ */ O("p", {
|
|
825
|
+
className: R.emptyTitle,
|
|
826
826
|
children: n
|
|
827
827
|
}),
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
-
className:
|
|
828
|
+
/* @__PURE__ */ O("p", {
|
|
829
|
+
className: R.emptyDesc,
|
|
830
830
|
children: r
|
|
831
831
|
})
|
|
832
832
|
]
|
|
833
|
-
}) : /* @__PURE__ */
|
|
834
|
-
className: [
|
|
833
|
+
}) : /* @__PURE__ */ O("div", {
|
|
834
|
+
className: [R.list, i ?? ""].filter(Boolean).join(" "),
|
|
835
835
|
children: e.map((n, r) => {
|
|
836
836
|
let i = n.amount >= 0;
|
|
837
|
-
return /* @__PURE__ */
|
|
838
|
-
className: [
|
|
839
|
-
children: [/* @__PURE__ */
|
|
840
|
-
className:
|
|
841
|
-
children: [/* @__PURE__ */
|
|
842
|
-
className:
|
|
837
|
+
return /* @__PURE__ */ k("div", {
|
|
838
|
+
className: [R.row, r === e.length - 1 ? R.rowLast : ""].filter(Boolean).join(" "),
|
|
839
|
+
children: [/* @__PURE__ */ k("div", {
|
|
840
|
+
className: R.left,
|
|
841
|
+
children: [/* @__PURE__ */ O("span", {
|
|
842
|
+
className: R.iconWrap,
|
|
843
843
|
"aria-hidden": "true",
|
|
844
844
|
children: n.icon
|
|
845
|
-
}), /* @__PURE__ */
|
|
846
|
-
className:
|
|
847
|
-
children: [/* @__PURE__ */
|
|
848
|
-
className:
|
|
845
|
+
}), /* @__PURE__ */ k("div", {
|
|
846
|
+
className: R.info,
|
|
847
|
+
children: [/* @__PURE__ */ O("p", {
|
|
848
|
+
className: R.name,
|
|
849
849
|
children: n.name
|
|
850
|
-
}), /* @__PURE__ */
|
|
851
|
-
className:
|
|
850
|
+
}), /* @__PURE__ */ O("p", {
|
|
851
|
+
className: R.category,
|
|
852
852
|
children: n.category
|
|
853
853
|
})]
|
|
854
854
|
})]
|
|
855
|
-
}), /* @__PURE__ */
|
|
856
|
-
className: [
|
|
855
|
+
}), /* @__PURE__ */ O("p", {
|
|
856
|
+
className: [R.amount, i ? R.amountUp : R.amountDown].join(" "),
|
|
857
857
|
children: t(n.amount)
|
|
858
858
|
})]
|
|
859
859
|
}, n.id ?? `${n.name}-${r}`);
|
|
860
860
|
})
|
|
861
|
-
}),
|
|
861
|
+
}), z = {
|
|
862
862
|
root: "_root_19qxp_1",
|
|
863
863
|
rootAttributed: "_rootAttributed_19qxp_10",
|
|
864
864
|
rootSimple: "_rootSimple_19qxp_18",
|
|
@@ -872,57 +872,57 @@ var Xt = [
|
|
|
872
872
|
author: "_author_19qxp_77",
|
|
873
873
|
authorText: "_authorText_19qxp_83",
|
|
874
874
|
authorName: "_authorName_19qxp_91"
|
|
875
|
-
},
|
|
875
|
+
}, fn = ({ quote: t, author: n, className: r }) => {
|
|
876
876
|
let i = !!n;
|
|
877
|
-
return /* @__PURE__ */
|
|
877
|
+
return /* @__PURE__ */ k("div", {
|
|
878
878
|
className: [
|
|
879
|
-
|
|
880
|
-
i ?
|
|
879
|
+
z.root,
|
|
880
|
+
i ? z.rootAttributed : z.rootSimple,
|
|
881
881
|
r ?? ""
|
|
882
882
|
].filter(Boolean).join(" "),
|
|
883
|
-
children: [/* @__PURE__ */
|
|
883
|
+
children: [/* @__PURE__ */ O(e, {
|
|
884
884
|
orientation: "vertical",
|
|
885
|
-
className:
|
|
886
|
-
}), /* @__PURE__ */
|
|
887
|
-
className:
|
|
885
|
+
className: z.rail
|
|
886
|
+
}), /* @__PURE__ */ k("div", {
|
|
887
|
+
className: z.body,
|
|
888
888
|
children: [
|
|
889
|
-
i && /* @__PURE__ */
|
|
890
|
-
className:
|
|
889
|
+
i && /* @__PURE__ */ O("span", {
|
|
890
|
+
className: z.markRow,
|
|
891
891
|
"aria-hidden": "true",
|
|
892
|
-
children: /* @__PURE__ */
|
|
892
|
+
children: /* @__PURE__ */ O(rt, {
|
|
893
893
|
size: 12,
|
|
894
|
-
strokeWidth:
|
|
895
|
-
className:
|
|
894
|
+
strokeWidth: E(12),
|
|
895
|
+
className: z.mark,
|
|
896
896
|
fill: "currentColor"
|
|
897
897
|
})
|
|
898
898
|
}),
|
|
899
|
-
/* @__PURE__ */
|
|
900
|
-
className: i ?
|
|
899
|
+
/* @__PURE__ */ O("p", {
|
|
900
|
+
className: i ? z.quoteAttributed : z.quoteSimple,
|
|
901
901
|
children: i ? t : `"${t}"`
|
|
902
902
|
}),
|
|
903
|
-
i && /* @__PURE__ */
|
|
904
|
-
className: [
|
|
903
|
+
i && /* @__PURE__ */ O("span", {
|
|
904
|
+
className: [z.markRow, z.markRowEnd].join(" "),
|
|
905
905
|
"aria-hidden": "true",
|
|
906
|
-
children: /* @__PURE__ */
|
|
906
|
+
children: /* @__PURE__ */ O(rt, {
|
|
907
907
|
size: 12,
|
|
908
|
-
strokeWidth:
|
|
909
|
-
className:
|
|
908
|
+
strokeWidth: E(12),
|
|
909
|
+
className: z.mark,
|
|
910
910
|
fill: "currentColor"
|
|
911
911
|
})
|
|
912
912
|
}),
|
|
913
|
-
n && /* @__PURE__ */
|
|
914
|
-
className:
|
|
915
|
-
children: [/* @__PURE__ */
|
|
913
|
+
n && /* @__PURE__ */ k("div", {
|
|
914
|
+
className: z.author,
|
|
915
|
+
children: [/* @__PURE__ */ O(oe, {
|
|
916
916
|
size: "sm",
|
|
917
917
|
src: n.avatarSrc,
|
|
918
918
|
alt: n.avatarAlt ?? n.name
|
|
919
|
-
}), /* @__PURE__ */
|
|
920
|
-
className:
|
|
921
|
-
children: [/* @__PURE__ */
|
|
922
|
-
className:
|
|
919
|
+
}), /* @__PURE__ */ k("p", {
|
|
920
|
+
className: z.authorText,
|
|
921
|
+
children: [/* @__PURE__ */ O("span", {
|
|
922
|
+
className: z.authorName,
|
|
923
923
|
children: n.name
|
|
924
|
-
}), /* @__PURE__ */
|
|
925
|
-
className:
|
|
924
|
+
}), /* @__PURE__ */ k("span", {
|
|
925
|
+
className: z.authorRole,
|
|
926
926
|
children: [", ", n.role]
|
|
927
927
|
})]
|
|
928
928
|
})]
|
|
@@ -930,51 +930,51 @@ var Xt = [
|
|
|
930
930
|
]
|
|
931
931
|
})]
|
|
932
932
|
});
|
|
933
|
-
},
|
|
933
|
+
}, pn = {
|
|
934
934
|
root: "_root_btuyr_1",
|
|
935
935
|
rootLeft: "_rootLeft_btuyr_13",
|
|
936
936
|
rootTop: "_rootTop_btuyr_19",
|
|
937
937
|
ruleLeft: "_ruleLeft_btuyr_24",
|
|
938
938
|
ruleTop: "_ruleTop_btuyr_31",
|
|
939
939
|
text: "_text_btuyr_39"
|
|
940
|
-
},
|
|
940
|
+
}, mn = ({ text: e, align: t = "left", className: n }) => /* @__PURE__ */ k("div", {
|
|
941
941
|
className: [
|
|
942
|
-
|
|
943
|
-
t === "top" ?
|
|
942
|
+
pn.root,
|
|
943
|
+
t === "top" ? pn.rootTop : pn.rootLeft,
|
|
944
944
|
n ?? ""
|
|
945
945
|
].filter(Boolean).join(" "),
|
|
946
|
-
children: [/* @__PURE__ */
|
|
947
|
-
className: t === "top" ?
|
|
946
|
+
children: [/* @__PURE__ */ O("span", {
|
|
947
|
+
className: t === "top" ? pn.ruleTop : pn.ruleLeft,
|
|
948
948
|
"aria-hidden": "true"
|
|
949
|
-
}), /* @__PURE__ */
|
|
950
|
-
className:
|
|
949
|
+
}), /* @__PURE__ */ O("p", {
|
|
950
|
+
className: pn.text,
|
|
951
951
|
children: e
|
|
952
952
|
})]
|
|
953
|
-
}),
|
|
953
|
+
}), hn = {
|
|
954
954
|
root: "_root_awxwk_1",
|
|
955
955
|
imageWrap: "_imageWrap_awxwk_10",
|
|
956
956
|
"root--large": "_root--large_awxwk_27",
|
|
957
957
|
"root--small": "_root--small_awxwk_33",
|
|
958
958
|
image: "_image_awxwk_10",
|
|
959
959
|
caption: "_caption_awxwk_47"
|
|
960
|
-
},
|
|
960
|
+
}, gn = ({ src: e, alt: t = "", size: n = "large", caption: r, className: i }) => /* @__PURE__ */ k("figure", {
|
|
961
961
|
className: [
|
|
962
|
-
|
|
963
|
-
|
|
962
|
+
hn.root,
|
|
963
|
+
hn[`root--${n}`],
|
|
964
964
|
i ?? ""
|
|
965
965
|
].filter(Boolean).join(" "),
|
|
966
|
-
children: [/* @__PURE__ */
|
|
967
|
-
className:
|
|
968
|
-
children: /* @__PURE__ */
|
|
966
|
+
children: [/* @__PURE__ */ O("span", {
|
|
967
|
+
className: hn.imageWrap,
|
|
968
|
+
children: /* @__PURE__ */ O("img", {
|
|
969
969
|
src: e,
|
|
970
970
|
alt: t,
|
|
971
|
-
className:
|
|
971
|
+
className: hn.image
|
|
972
972
|
})
|
|
973
|
-
}), r && /* @__PURE__ */
|
|
974
|
-
className:
|
|
973
|
+
}), r && /* @__PURE__ */ O("figcaption", {
|
|
974
|
+
className: hn.caption,
|
|
975
975
|
children: r
|
|
976
976
|
})]
|
|
977
|
-
}),
|
|
977
|
+
}), _n = {
|
|
978
978
|
root: "_root_uc5r9_1",
|
|
979
979
|
rootCenter: "_rootCenter_uc5r9_10",
|
|
980
980
|
rootLeft: "_rootLeft_uc5r9_15",
|
|
@@ -985,50 +985,50 @@ var Xt = [
|
|
|
985
985
|
avatarsCaption: "_avatarsCaption_uc5r9_57"
|
|
986
986
|
}, vn = ({ 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
|
+
_n.root,
|
|
991
|
+
s === "left" ? _n.rootLeft : _n.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: _n.title,
|
|
1002
1002
|
children: e
|
|
1003
1003
|
}),
|
|
1004
|
-
t && /* @__PURE__ */
|
|
1005
|
-
className:
|
|
1004
|
+
t && /* @__PURE__ */ O("p", {
|
|
1005
|
+
className: _n.description,
|
|
1006
1006
|
children: t
|
|
1007
1007
|
}),
|
|
1008
|
-
l && /* @__PURE__ */
|
|
1009
|
-
className:
|
|
1010
|
-
children: [r && /* @__PURE__ */
|
|
1008
|
+
l && /* @__PURE__ */ k("div", {
|
|
1009
|
+
className: _n.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: _n.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: _n.avatarsCaption,
|
|
1032
1032
|
children: o
|
|
1033
1033
|
})]
|
|
1034
1034
|
})
|
|
@@ -1040,25 +1040,25 @@ var Xt = [
|
|
|
1040
1040
|
marker: "_marker_5kajg_18",
|
|
1041
1041
|
dot: "_dot_5kajg_26",
|
|
1042
1042
|
label: "_label_5kajg_34"
|
|
1043
|
-
}, bn = ({ items: e, style: t = "check", className: n }) => /* @__PURE__ */
|
|
1043
|
+
}, bn = ({ items: e, style: t = "check", className: n }) => /* @__PURE__ */ O("ul", {
|
|
1044
1044
|
className: [yn.root, n ?? ""].filter(Boolean).join(" "),
|
|
1045
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
1045
|
+
children: e.map((e, n) => /* @__PURE__ */ k("li", {
|
|
1046
1046
|
className: yn.item,
|
|
1047
|
-
children: [/* @__PURE__ */
|
|
1047
|
+
children: [/* @__PURE__ */ k("span", {
|
|
1048
1048
|
className: yn.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: yn.dot })
|
|
1060
1060
|
]
|
|
1061
|
-
}), /* @__PURE__ */
|
|
1061
|
+
}), /* @__PURE__ */ O("span", {
|
|
1062
1062
|
className: yn.label,
|
|
1063
1063
|
children: e
|
|
1064
1064
|
})]
|
|
@@ -1070,20 +1070,20 @@ var Xt = [
|
|
|
1070
1070
|
item: "_item_1pc4i_25",
|
|
1071
1071
|
fadeLeft: "_fadeLeft_1pc4i_31",
|
|
1072
1072
|
fadeRight: "_fadeRight_1pc4i_32"
|
|
1073
|
-
}, Sn = ({ items: e, gap: t, ariaHidden: n }) => /* @__PURE__ */
|
|
1073
|
+
}, Sn = ({ items: e, gap: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
|
|
1074
1074
|
className: xn.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__ */
|
|
1080
|
+
children: e.map((e, t) => /* @__PURE__ */ O("div", {
|
|
1081
1081
|
className: xn.item,
|
|
1082
1082
|
children: e
|
|
1083
1083
|
}, t))
|
|
1084
1084
|
}), Cn = ({ items: e, speed: t = 40, gap: n, className: r }) => {
|
|
1085
|
-
let i =
|
|
1086
|
-
return
|
|
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,7 +1102,7 @@ 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__ */
|
|
1105
|
+
}, [t]), /* @__PURE__ */ k("div", {
|
|
1106
1106
|
className: [xn.marquee, r ?? ""].filter(Boolean).join(" "),
|
|
1107
1107
|
onMouseEnter: () => {
|
|
1108
1108
|
s.current = !0;
|
|
@@ -1111,23 +1111,23 @@ var Xt = [
|
|
|
1111
1111
|
s.current = !1;
|
|
1112
1112
|
},
|
|
1113
1113
|
children: [
|
|
1114
|
-
/* @__PURE__ */
|
|
1114
|
+
/* @__PURE__ */ k("div", {
|
|
1115
1115
|
ref: i,
|
|
1116
1116
|
className: xn.track,
|
|
1117
|
-
children: [/* @__PURE__ */
|
|
1117
|
+
children: [/* @__PURE__ */ O(Sn, {
|
|
1118
1118
|
items: e,
|
|
1119
1119
|
gap: n
|
|
1120
|
-
}), /* @__PURE__ */
|
|
1120
|
+
}), /* @__PURE__ */ O(Sn, {
|
|
1121
1121
|
items: e,
|
|
1122
1122
|
gap: n,
|
|
1123
1123
|
ariaHidden: !0
|
|
1124
1124
|
})]
|
|
1125
1125
|
}),
|
|
1126
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ O("div", {
|
|
1127
1127
|
className: xn.fadeLeft,
|
|
1128
1128
|
"aria-hidden": "true"
|
|
1129
1129
|
}),
|
|
1130
|
-
/* @__PURE__ */
|
|
1130
|
+
/* @__PURE__ */ O("div", {
|
|
1131
1131
|
className: xn.fadeRight,
|
|
1132
1132
|
"aria-hidden": "true"
|
|
1133
1133
|
})
|
|
@@ -1142,26 +1142,26 @@ var Xt = [
|
|
|
1142
1142
|
trendDown: "_trendDown_17a1b_39",
|
|
1143
1143
|
label: "_label_17a1b_43"
|
|
1144
1144
|
}, Tn = ({ value: e, label: t, trend: n, className: r }) => {
|
|
1145
|
-
let i = n !== void 0, a = i && n >= 0, o = a ?
|
|
1146
|
-
return /* @__PURE__ */
|
|
1145
|
+
let i = n !== void 0, a = i && n >= 0, o = a ? ct : st;
|
|
1146
|
+
return /* @__PURE__ */ k("div", {
|
|
1147
1147
|
className: [wn.root, r ?? ""].filter(Boolean).join(" "),
|
|
1148
|
-
children: [/* @__PURE__ */
|
|
1148
|
+
children: [/* @__PURE__ */ k("div", {
|
|
1149
1149
|
className: wn.numRow,
|
|
1150
|
-
children: [/* @__PURE__ */
|
|
1150
|
+
children: [/* @__PURE__ */ O("p", {
|
|
1151
1151
|
className: wn.value,
|
|
1152
1152
|
children: e
|
|
1153
|
-
}), i && /* @__PURE__ */
|
|
1153
|
+
}), i && /* @__PURE__ */ k("span", {
|
|
1154
1154
|
className: [wn.trend, a ? wn.trendUp : wn.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__ */
|
|
1164
|
+
}), /* @__PURE__ */ O("p", {
|
|
1165
1165
|
className: wn.label,
|
|
1166
1166
|
children: t
|
|
1167
1167
|
})]
|
|
@@ -1178,47 +1178,47 @@ var Xt = [
|
|
|
1178
1178
|
navLinks: "_navLinks_scbx4_91",
|
|
1179
1179
|
navLink: "_navLink_scbx4_91"
|
|
1180
1180
|
}, En = ({ 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] =
|
|
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__ */
|
|
1192
|
+
}, [n, r]), /* @__PURE__ */ k("div", {
|
|
1193
1193
|
className: [B.root, c ?? ""].filter(Boolean).join(" "),
|
|
1194
|
-
children: [/* @__PURE__ */
|
|
1194
|
+
children: [/* @__PURE__ */ k("div", {
|
|
1195
1195
|
className: B.header,
|
|
1196
|
-
children: [/* @__PURE__ */
|
|
1196
|
+
children: [/* @__PURE__ */ O("p", {
|
|
1197
1197
|
className: B.label,
|
|
1198
1198
|
children: t
|
|
1199
|
-
}), /* @__PURE__ */
|
|
1199
|
+
}), /* @__PURE__ */ O("button", {
|
|
1200
1200
|
type: "button",
|
|
1201
1201
|
className: B.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__ */
|
|
1210
|
+
}), /* @__PURE__ */ O("div", {
|
|
1211
1211
|
className: [B.collapse, f ? B.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
1216
|
className: B.collapseInner,
|
|
1217
1217
|
children: [
|
|
1218
|
-
/* @__PURE__ */
|
|
1218
|
+
/* @__PURE__ */ O("nav", {
|
|
1219
1219
|
className: B.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
1224
|
className: B.navLink,
|
|
@@ -1226,8 +1226,8 @@ var Xt = [
|
|
|
1226
1226
|
children: e.label
|
|
1227
1227
|
}, e.label))
|
|
1228
1228
|
}),
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
/* @__PURE__ */
|
|
1229
|
+
/* @__PURE__ */ O(e, { className: B.fullWidth }),
|
|
1230
|
+
/* @__PURE__ */ O(Ee, {
|
|
1231
1231
|
variant: "primary",
|
|
1232
1232
|
className: B.fullWidth,
|
|
1233
1233
|
onClick: i,
|
|
@@ -1249,17 +1249,17 @@ var Xt = [
|
|
|
1249
1249
|
md: 16,
|
|
1250
1250
|
lg: 18
|
|
1251
1251
|
}, kn = ({ size: e = "md", logo: t, label: n, className: r }) => {
|
|
1252
|
-
let i = On[e], a =
|
|
1252
|
+
let i = On[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
1260
|
className: Dn.defaultMark
|
|
1261
1261
|
});
|
|
1262
|
-
return /* @__PURE__ */
|
|
1262
|
+
return /* @__PURE__ */ O("span", {
|
|
1263
1263
|
className: [
|
|
1264
1264
|
Dn.root,
|
|
1265
1265
|
Dn[`root--${e}`],
|
|
@@ -1282,35 +1282,35 @@ var Xt = [
|
|
|
1282
1282
|
socialBtn: "_socialBtn_ibchq_71"
|
|
1283
1283
|
}, An = ({ 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
1287
|
V.root,
|
|
1288
1288
|
s ? V.rootDetailed : V.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__ */
|
|
1297
|
+
/* @__PURE__ */ k("div", {
|
|
1298
1298
|
className: s ? V.infoDetailed : V.infoCompact,
|
|
1299
|
-
children: [/* @__PURE__ */
|
|
1299
|
+
children: [/* @__PURE__ */ O("p", {
|
|
1300
1300
|
className: V.name,
|
|
1301
1301
|
children: e
|
|
1302
|
-
}), /* @__PURE__ */
|
|
1302
|
+
}), /* @__PURE__ */ O("p", {
|
|
1303
1303
|
className: V.role,
|
|
1304
1304
|
children: t
|
|
1305
1305
|
})]
|
|
1306
1306
|
}),
|
|
1307
|
-
s && i && /* @__PURE__ */
|
|
1307
|
+
s && i && /* @__PURE__ */ O("p", {
|
|
1308
1308
|
className: V.bio,
|
|
1309
1309
|
children: i
|
|
1310
1310
|
}),
|
|
1311
|
-
s && a.length > 0 && /* @__PURE__ */
|
|
1311
|
+
s && a.length > 0 && /* @__PURE__ */ O("div", {
|
|
1312
1312
|
className: V.social,
|
|
1313
|
-
children: a.map((e, t) => /* @__PURE__ */
|
|
1313
|
+
children: a.map((e, t) => /* @__PURE__ */ O("a", {
|
|
1314
1314
|
href: e.href,
|
|
1315
1315
|
onClick: e.onClick,
|
|
1316
1316
|
className: V.socialBtn,
|
|
@@ -1324,14 +1324,14 @@ var Xt = [
|
|
|
1324
1324
|
heading: "_heading_96cdx_1",
|
|
1325
1325
|
h2: "_h2_96cdx_8",
|
|
1326
1326
|
h3: "_h3_96cdx_14"
|
|
1327
|
-
}, Mn = ({ children: e, level: t = "h2", className: n }) => /* @__PURE__ */
|
|
1327
|
+
}, Mn = ({ children: e, level: t = "h2", className: n }) => /* @__PURE__ */ O(t, {
|
|
1328
1328
|
className: [
|
|
1329
1329
|
jn.heading,
|
|
1330
1330
|
jn[t],
|
|
1331
1331
|
n ?? ""
|
|
1332
1332
|
].filter(Boolean).join(" "),
|
|
1333
1333
|
children: e
|
|
1334
|
-
}), Nn = { paragraph: "_paragraph_8pqdi_1" }, Pn = ({ children: e, className: t }) => /* @__PURE__ */
|
|
1334
|
+
}), Nn = { paragraph: "_paragraph_8pqdi_1" }, Pn = ({ children: e, className: t }) => /* @__PURE__ */ O("p", {
|
|
1335
1335
|
className: [Nn.paragraph, t ?? ""].filter(Boolean).join(" "),
|
|
1336
1336
|
children: e
|
|
1337
1337
|
}), Fn = {
|
|
@@ -1344,44 +1344,44 @@ var Xt = [
|
|
|
1344
1344
|
title: "_title_5cgsj_49",
|
|
1345
1345
|
description: "_description_5cgsj_57"
|
|
1346
1346
|
}, In = ({ icon: t, title: n, description: r, layout: i = "horizontal", leftBorder: a = !1, className: o }) => {
|
|
1347
|
-
let s = i === "vertical", c = /* @__PURE__ */
|
|
1347
|
+
let s = i === "vertical", c = /* @__PURE__ */ k("div", {
|
|
1348
1348
|
className: s ? Fn.contentVertical : Fn.contentHorizontal,
|
|
1349
|
-
children: [/* @__PURE__ */
|
|
1349
|
+
children: [/* @__PURE__ */ O(p, {
|
|
1350
1350
|
icon: t,
|
|
1351
1351
|
size: "sm",
|
|
1352
1352
|
variant: "light"
|
|
1353
|
-
}), /* @__PURE__ */
|
|
1353
|
+
}), /* @__PURE__ */ k("div", {
|
|
1354
1354
|
className: s ? Fn.textVertical : Fn.textHorizontal,
|
|
1355
|
-
children: [/* @__PURE__ */
|
|
1355
|
+
children: [/* @__PURE__ */ O("p", {
|
|
1356
1356
|
className: Fn.title,
|
|
1357
1357
|
children: n
|
|
1358
|
-
}), /* @__PURE__ */
|
|
1358
|
+
}), /* @__PURE__ */ O("p", {
|
|
1359
1359
|
className: Fn.description,
|
|
1360
1360
|
children: r
|
|
1361
1361
|
})]
|
|
1362
1362
|
})]
|
|
1363
1363
|
});
|
|
1364
|
-
return a ? /* @__PURE__ */
|
|
1364
|
+
return a ? /* @__PURE__ */ k("div", {
|
|
1365
1365
|
className: [Fn.rootBordered, o ?? ""].filter(Boolean).join(" "),
|
|
1366
|
-
children: [/* @__PURE__ */
|
|
1366
|
+
children: [/* @__PURE__ */ O(e, {
|
|
1367
1367
|
orientation: "vertical",
|
|
1368
1368
|
className: Fn.rail
|
|
1369
1369
|
}), c]
|
|
1370
|
-
}) :
|
|
1370
|
+
}) : D.cloneElement(c, { className: [c.props.className, o ?? ""].filter(Boolean).join(" ") });
|
|
1371
1371
|
}, Ln = { chart: "_chart_qqaox_2" }, Rn = {
|
|
1372
1372
|
sm: 180,
|
|
1373
1373
|
md: 240,
|
|
1374
1374
|
lg: 320,
|
|
1375
1375
|
xl: 420
|
|
1376
1376
|
}, zn = ({ data: e, variant: t = "default", seriesLabels: n = ["Value", "Value 2"], size: r = "md", height: i, className: a }) => {
|
|
1377
|
-
let o =
|
|
1378
|
-
return /* @__PURE__ */
|
|
1377
|
+
let o = D.useRef(null), s = P(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
1380
|
className: [Ln.chart, a ?? ""].filter(Boolean).join(" "),
|
|
1381
|
-
children: /* @__PURE__ */
|
|
1381
|
+
children: /* @__PURE__ */ O(j, {
|
|
1382
1382
|
width: "100%",
|
|
1383
1383
|
height: i ?? Rn[r],
|
|
1384
|
-
children: /* @__PURE__ */
|
|
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(Mt, {
|
|
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(jt, {
|
|
1438
1438
|
cursor: {
|
|
1439
1439
|
stroke: s("--color-border-default") ?? "#dbdad7",
|
|
1440
1440
|
strokeWidth: 1
|
|
1441
1441
|
},
|
|
1442
|
-
content: /* @__PURE__ */
|
|
1442
|
+
content: /* @__PURE__ */ O(Zt, {}),
|
|
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",
|
|
@@ -1489,62 +1489,62 @@ 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
|
-
}, Bn = ({ state: e = "default", title: t, count: n, dotColor: r = "var(--color-chart-1)", children: i, onAdd: a, onMenu: o, className: s }) => /* @__PURE__ */
|
|
1492
|
+
}, Bn = ({ 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
1493
|
className: [H.col, s ?? ""].filter(Boolean).join(" "),
|
|
1494
1494
|
children: [
|
|
1495
|
-
/* @__PURE__ */
|
|
1495
|
+
/* @__PURE__ */ k("div", {
|
|
1496
1496
|
className: H.col__header,
|
|
1497
1497
|
children: [
|
|
1498
|
-
/* @__PURE__ */
|
|
1498
|
+
/* @__PURE__ */ O("span", {
|
|
1499
1499
|
className: H.col__dot,
|
|
1500
1500
|
style: { background: r },
|
|
1501
1501
|
"aria-hidden": "true"
|
|
1502
1502
|
}),
|
|
1503
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ O("span", {
|
|
1504
1504
|
className: H.col__title,
|
|
1505
1505
|
children: t
|
|
1506
1506
|
}),
|
|
1507
|
-
n != null && /* @__PURE__ */
|
|
1507
|
+
n != null && /* @__PURE__ */ O("span", {
|
|
1508
1508
|
className: H.col__count,
|
|
1509
1509
|
children: n
|
|
1510
1510
|
}),
|
|
1511
|
-
/* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1511
|
+
/* @__PURE__ */ O("span", { className: H.col__spacer }),
|
|
1512
|
+
/* @__PURE__ */ O("button", {
|
|
1513
1513
|
type: "button",
|
|
1514
1514
|
className: H.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
1524
|
className: H.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__ */
|
|
1534
|
+
/* @__PURE__ */ O("div", {
|
|
1535
1535
|
className: H.col__body,
|
|
1536
|
-
children: e === "empty" ? /* @__PURE__ */
|
|
1536
|
+
children: e === "empty" ? /* @__PURE__ */ O("div", {
|
|
1537
1537
|
className: H.col__drop,
|
|
1538
1538
|
children: "Drop tasks here"
|
|
1539
1539
|
}) : i
|
|
1540
1540
|
}),
|
|
1541
|
-
/* @__PURE__ */
|
|
1541
|
+
/* @__PURE__ */ k("button", {
|
|
1542
1542
|
type: "button",
|
|
1543
1543
|
className: H.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
|
})
|
|
@@ -1589,18 +1589,18 @@ var Xt = [
|
|
|
1589
1589
|
"November",
|
|
1590
1590
|
"December"
|
|
1591
1591
|
], Un = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Wn = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Gn = ({ 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] =
|
|
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 < Wn(s) || c && e > c, ee = (e) => {
|
|
1596
1596
|
r === void 0 && p(e), i?.(e);
|
|
1597
|
-
},
|
|
1597
|
+
}, S = (t) => {
|
|
1598
1598
|
if (e === "single") {
|
|
1599
1599
|
n?.(t);
|
|
1600
1600
|
return;
|
|
1601
1601
|
}
|
|
1602
1602
|
let { from: r, to: i } = m;
|
|
1603
|
-
|
|
1603
|
+
ee(!r || r && i ? {
|
|
1604
1604
|
from: t,
|
|
1605
1605
|
to: void 0
|
|
1606
1606
|
} : t < r ? {
|
|
@@ -1610,7 +1610,7 @@ var Xt = [
|
|
|
1610
1610
|
from: r,
|
|
1611
1611
|
to: t
|
|
1612
1612
|
});
|
|
1613
|
-
},
|
|
1613
|
+
}, C = (n) => {
|
|
1614
1614
|
if (x(n)) return "disabled";
|
|
1615
1615
|
if (e === "single") {
|
|
1616
1616
|
if (Un(n, t)) return "selected";
|
|
@@ -1620,45 +1620,45 @@ var Xt = [
|
|
|
1620
1620
|
if (e && t && n > e && n < t) return "in-range";
|
|
1621
1621
|
}
|
|
1622
1622
|
return n.getMonth() === _ ? Un(n, h) ? "today" : "default" : "outside";
|
|
1623
|
-
},
|
|
1624
|
-
return /* @__PURE__ */
|
|
1623
|
+
}, te = s ? s.getFullYear() : g - 10, w = c ? c.getFullYear() : g + 10, ne = Array.from({ length: w - te + 1 }, (e, t) => te + t);
|
|
1624
|
+
return /* @__PURE__ */ k("div", {
|
|
1625
1625
|
className: [U.calendar, l ?? ""].filter(Boolean).join(" "),
|
|
1626
1626
|
children: [
|
|
1627
|
-
/* @__PURE__ */
|
|
1627
|
+
/* @__PURE__ */ k("div", {
|
|
1628
1628
|
className: U.header,
|
|
1629
1629
|
children: [
|
|
1630
|
-
/* @__PURE__ */
|
|
1630
|
+
/* @__PURE__ */ O("button", {
|
|
1631
1631
|
type: "button",
|
|
1632
1632
|
className: U.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__ */
|
|
1640
|
+
a === "dropdowns" ? /* @__PURE__ */ k("span", {
|
|
1641
1641
|
className: U.dropdowns,
|
|
1642
|
-
children: [/* @__PURE__ */
|
|
1642
|
+
children: [/* @__PURE__ */ O("select", {
|
|
1643
1643
|
className: U.dropdown,
|
|
1644
1644
|
value: _,
|
|
1645
1645
|
onChange: (e) => d(new Date(g, Number(e.target.value), 1)),
|
|
1646
1646
|
"aria-label": "Month",
|
|
1647
|
-
children: Hn.map((e, t) => /* @__PURE__ */
|
|
1647
|
+
children: Hn.map((e, t) => /* @__PURE__ */ O("option", {
|
|
1648
1648
|
value: t,
|
|
1649
1649
|
children: e
|
|
1650
1650
|
}, e))
|
|
1651
|
-
}), /* @__PURE__ */
|
|
1651
|
+
}), /* @__PURE__ */ O("select", {
|
|
1652
1652
|
className: U.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__ */
|
|
1661
|
+
}) : /* @__PURE__ */ k("span", {
|
|
1662
1662
|
className: U.header__label,
|
|
1663
1663
|
children: [
|
|
1664
1664
|
Hn[_],
|
|
@@ -1666,30 +1666,30 @@ var Xt = [
|
|
|
1666
1666
|
g
|
|
1667
1667
|
]
|
|
1668
1668
|
}),
|
|
1669
|
-
/* @__PURE__ */
|
|
1669
|
+
/* @__PURE__ */ O("button", {
|
|
1670
1670
|
type: "button",
|
|
1671
1671
|
className: U.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__ */
|
|
1681
|
+
/* @__PURE__ */ O("div", {
|
|
1682
1682
|
className: U.weekdays,
|
|
1683
|
-
children: Vn.map((e) => /* @__PURE__ */
|
|
1683
|
+
children: Vn.map((e) => /* @__PURE__ */ O("span", {
|
|
1684
1684
|
className: U.weekday,
|
|
1685
1685
|
children: e
|
|
1686
1686
|
}, e))
|
|
1687
1687
|
}),
|
|
1688
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ O("div", {
|
|
1689
1689
|
className: U.grid,
|
|
1690
1690
|
children: b.map((e, t) => {
|
|
1691
|
-
let n =
|
|
1692
|
-
return /* @__PURE__ */
|
|
1691
|
+
let n = C(e);
|
|
1692
|
+
return /* @__PURE__ */ O("button", {
|
|
1693
1693
|
type: "button",
|
|
1694
1694
|
className: [U.day, U[`day--${n}`]].filter(Boolean).join(" "),
|
|
1695
1695
|
disabled: n === "disabled",
|
|
@@ -1701,7 +1701,7 @@ var Xt = [
|
|
|
1701
1701
|
month: "long",
|
|
1702
1702
|
day: "numeric"
|
|
1703
1703
|
}),
|
|
1704
|
-
onClick: () =>
|
|
1704
|
+
onClick: () => S(e),
|
|
1705
1705
|
children: e.getDate()
|
|
1706
1706
|
}, t);
|
|
1707
1707
|
})
|
|
@@ -1716,154 +1716,186 @@ 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
|
-
}, qn = ({ title: e, description: t, actions: n, interactive: r, children: i, className: a }) => /* @__PURE__ */
|
|
1719
|
+
}, qn = ({ title: e, description: t, actions: n, interactive: r, children: i, className: a }) => /* @__PURE__ */ k("div", {
|
|
1720
1720
|
className: [
|
|
1721
1721
|
Kn.card,
|
|
1722
1722
|
r ? Kn["card--interactive"] : "",
|
|
1723
1723
|
a ?? ""
|
|
1724
1724
|
].filter(Boolean).join(" "),
|
|
1725
1725
|
children: [
|
|
1726
|
-
(e || t) && /* @__PURE__ */
|
|
1726
|
+
(e || t) && /* @__PURE__ */ k("div", {
|
|
1727
1727
|
className: Kn.card__header,
|
|
1728
|
-
children: [e && /* @__PURE__ */
|
|
1728
|
+
children: [e && /* @__PURE__ */ O("h3", {
|
|
1729
1729
|
className: Kn.card__title,
|
|
1730
1730
|
children: e
|
|
1731
|
-
}), t && /* @__PURE__ */
|
|
1731
|
+
}), t && /* @__PURE__ */ O("p", {
|
|
1732
1732
|
className: Kn.card__description,
|
|
1733
1733
|
children: t
|
|
1734
1734
|
})]
|
|
1735
1735
|
}),
|
|
1736
|
-
i && /* @__PURE__ */
|
|
1736
|
+
i && /* @__PURE__ */ O("div", {
|
|
1737
1737
|
className: Kn.card__body,
|
|
1738
1738
|
children: i
|
|
1739
1739
|
}),
|
|
1740
|
-
n && /* @__PURE__ */
|
|
1740
|
+
n && /* @__PURE__ */ O("div", {
|
|
1741
1741
|
className: Kn.card__actions,
|
|
1742
1742
|
children: n
|
|
1743
1743
|
})
|
|
1744
1744
|
]
|
|
1745
1745
|
}), W = {
|
|
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
|
-
chip__remove: "
|
|
1765
|
-
panel: "
|
|
1766
|
-
"panel--entering": "_panel--
|
|
1767
|
-
"sakani-combobox-panel-in": "_sakani-combobox-panel-
|
|
1768
|
-
"panel--exiting": "_panel--
|
|
1769
|
-
"sakani-combobox-panel-out": "_sakani-combobox-panel-
|
|
1770
|
-
panel__empty: "
|
|
1771
|
-
option: "
|
|
1772
|
-
"option--
|
|
1773
|
-
"option--
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1746
|
+
field: "_field_kfksn_7",
|
|
1747
|
+
field__label: "_field__label_kfksn_8",
|
|
1748
|
+
field__description: "_field__description_kfksn_9",
|
|
1749
|
+
field__error: "_field__error_kfksn_10",
|
|
1750
|
+
control: "_control_kfksn_13",
|
|
1751
|
+
"control--sm": "_control--sm_kfksn_25",
|
|
1752
|
+
"control--md": "_control--md_kfksn_26",
|
|
1753
|
+
"control--lg": "_control--lg_kfksn_27",
|
|
1754
|
+
"control--open": "_control--open_kfksn_29",
|
|
1755
|
+
"control--error": "_control--error_kfksn_35",
|
|
1756
|
+
"control--disabled": "_control--disabled_kfksn_39",
|
|
1757
|
+
control__value: "_control__value_kfksn_45",
|
|
1758
|
+
"control__value--placeholder": "_control__value--placeholder_kfksn_55",
|
|
1759
|
+
control__input: "_control__input_kfksn_56",
|
|
1760
|
+
control__chevron: "_control__chevron_kfksn_76",
|
|
1761
|
+
"control__chevron--open": "_control__chevron--open_kfksn_77",
|
|
1762
|
+
chips: "_chips_kfksn_80",
|
|
1763
|
+
chip: "_chip_kfksn_80",
|
|
1764
|
+
chip__remove: "_chip__remove_kfksn_92",
|
|
1765
|
+
panel: "_panel_kfksn_103",
|
|
1766
|
+
"panel--entering": "_panel--entering_kfksn_127",
|
|
1767
|
+
"sakani-combobox-panel-in": "_sakani-combobox-panel-in_kfksn_1",
|
|
1768
|
+
"panel--exiting": "_panel--exiting_kfksn_128",
|
|
1769
|
+
"sakani-combobox-panel-out": "_sakani-combobox-panel-out_kfksn_1",
|
|
1770
|
+
panel__empty: "_panel__empty_kfksn_138",
|
|
1771
|
+
option: "_option_kfksn_146",
|
|
1772
|
+
"option--selected": "_option--selected_kfksn_171",
|
|
1773
|
+
"option--disabled": "_option--disabled_kfksn_172",
|
|
1774
|
+
optionHighlight: "_optionHighlight_kfksn_147",
|
|
1775
|
+
"optionHighlight--animated": "_optionHighlight--animated_kfksn_203",
|
|
1776
|
+
option__icon: "_option__icon_kfksn_206",
|
|
1777
|
+
option__label: "_option__label_kfksn_207",
|
|
1778
|
+
option__check: "_option__check_kfksn_208",
|
|
1779
|
+
panel__loading: "_panel__loading_kfksn_211",
|
|
1780
|
+
panel__spinner: "_panel__spinner_kfksn_215",
|
|
1781
|
+
"sakani-cb-spin": "_sakani-cb-spin_kfksn_1"
|
|
1781
1782
|
}, Jn = ({ 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 }) => {
|
|
1782
|
-
let f =
|
|
1783
|
-
|
|
1783
|
+
let f = D.useId(), [p, m] = D.useState(!1), [h, g] = D.useState(!1), [_, v] = D.useState(0), y = D.useRef(null), b = e;
|
|
1784
|
+
D.useEffect(() => {
|
|
1784
1785
|
p && g(!0);
|
|
1785
1786
|
}, [p]);
|
|
1786
|
-
let
|
|
1787
|
-
|
|
1787
|
+
let x = D.useRef({}), ee = D.useRef(null), [S, C] = D.useState(null), [te, w] = D.useState(!1);
|
|
1788
|
+
D.useLayoutEffect(() => {
|
|
1789
|
+
let e = x.current[_];
|
|
1790
|
+
if (!e) {
|
|
1791
|
+
C(null);
|
|
1792
|
+
return;
|
|
1793
|
+
}
|
|
1794
|
+
C({
|
|
1795
|
+
top: e.offsetTop,
|
|
1796
|
+
height: e.offsetHeight
|
|
1797
|
+
});
|
|
1798
|
+
}, [_, b.length]), D.useLayoutEffect(() => {
|
|
1799
|
+
if (!h) {
|
|
1800
|
+
w(!1);
|
|
1801
|
+
return;
|
|
1802
|
+
}
|
|
1803
|
+
w(!1);
|
|
1804
|
+
let e = window.requestAnimationFrame(() => w(!0));
|
|
1805
|
+
return () => window.cancelAnimationFrame(e);
|
|
1806
|
+
}, [h]), D.useEffect(() => {
|
|
1807
|
+
if (!ee.current) return;
|
|
1808
|
+
let e = new ResizeObserver(() => {
|
|
1809
|
+
let e = x.current[_];
|
|
1810
|
+
e && C({
|
|
1811
|
+
top: e.offsetTop,
|
|
1812
|
+
height: e.offsetHeight
|
|
1813
|
+
});
|
|
1814
|
+
});
|
|
1815
|
+
return e.observe(ee.current), () => e.disconnect();
|
|
1816
|
+
}, [h]);
|
|
1817
|
+
let [ne, re] = D.useState(t === "multi" ? [] : ""), ie = l === void 0 ? ne : l, T = Array.isArray(ie) ? ie : ie ? [ie] : [], ae = !!a;
|
|
1818
|
+
D.useEffect(() => {
|
|
1788
1819
|
let e = (e) => {
|
|
1789
1820
|
y.current && !y.current.contains(e.target) && m(!1);
|
|
1790
1821
|
};
|
|
1791
1822
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1792
1823
|
}, []);
|
|
1793
|
-
let
|
|
1794
|
-
l === void 0 &&
|
|
1795
|
-
},
|
|
1824
|
+
let oe = (e) => {
|
|
1825
|
+
l === void 0 && re(e), u?.(e);
|
|
1826
|
+
}, se = (e) => {
|
|
1796
1827
|
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__ */
|
|
1828
|
+
let t = new Set(T);
|
|
1829
|
+
t.has(e.value) ? t.delete(e.value) : t.add(e.value), oe([...t]);
|
|
1830
|
+
} else oe(e.value), m(!1);
|
|
1831
|
+
}, ce = (t) => e.find((e) => e.value === t)?.label ?? t, le = T.length ? ce(T[0]) : "", ue = (e) => {
|
|
1832
|
+
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[_] ? se(b[_]) : m(!0)) : e.key === "Escape" && m(!1));
|
|
1833
|
+
}, de = s ? "disabled" : ae ? "error" : p ? "open" : "default";
|
|
1834
|
+
return /* @__PURE__ */ k("div", {
|
|
1804
1835
|
className: [W.field, d ?? ""].filter(Boolean).join(" "),
|
|
1805
1836
|
ref: y,
|
|
1806
1837
|
children: [
|
|
1807
|
-
r && /* @__PURE__ */
|
|
1838
|
+
r && /* @__PURE__ */ O("label", {
|
|
1808
1839
|
htmlFor: `${f}-trigger`,
|
|
1809
1840
|
className: W.field__label,
|
|
1810
1841
|
children: r
|
|
1811
1842
|
}),
|
|
1812
|
-
/* @__PURE__ */
|
|
1843
|
+
/* @__PURE__ */ k("div", {
|
|
1813
1844
|
id: `${f}-trigger`,
|
|
1814
1845
|
role: "combobox",
|
|
1815
1846
|
tabIndex: s ? -1 : 0,
|
|
1816
1847
|
"aria-haspopup": "listbox",
|
|
1817
1848
|
"aria-expanded": p,
|
|
1818
1849
|
"aria-controls": `${f}-panel`,
|
|
1819
|
-
"aria-invalid":
|
|
1850
|
+
"aria-invalid": ae || void 0,
|
|
1820
1851
|
"aria-disabled": s || void 0,
|
|
1821
|
-
"aria-activedescendant": p &&
|
|
1852
|
+
"aria-activedescendant": p && b[_] ? `${f}-opt-${_}` : void 0,
|
|
1822
1853
|
className: [
|
|
1823
1854
|
W.control,
|
|
1824
1855
|
W[`control--${n}`],
|
|
1825
|
-
W[`control--${
|
|
1856
|
+
W[`control--${de}`]
|
|
1826
1857
|
].join(" "),
|
|
1827
1858
|
onClick: () => !s && m((e) => !e),
|
|
1828
|
-
onKeyDown:
|
|
1859
|
+
onKeyDown: ue,
|
|
1829
1860
|
children: [
|
|
1830
|
-
t === "multi" &&
|
|
1861
|
+
t === "multi" && T.length > 0 && /* @__PURE__ */ O("div", {
|
|
1831
1862
|
className: W.chips,
|
|
1832
|
-
children:
|
|
1863
|
+
children: T.map((t) => /* @__PURE__ */ k("span", {
|
|
1833
1864
|
className: W.chip,
|
|
1834
|
-
children: [
|
|
1865
|
+
children: [ce(t), /* @__PURE__ */ O("button", {
|
|
1835
1866
|
type: "button",
|
|
1836
1867
|
className: W.chip__remove,
|
|
1837
1868
|
onClick: (n) => {
|
|
1838
|
-
n.stopPropagation(),
|
|
1869
|
+
n.stopPropagation(), se(e.find((e) => e.value === t));
|
|
1839
1870
|
},
|
|
1840
|
-
"aria-label": `Remove ${
|
|
1871
|
+
"aria-label": `Remove ${ce(t)}`,
|
|
1841
1872
|
children: "×"
|
|
1842
1873
|
})]
|
|
1843
1874
|
}, t))
|
|
1844
1875
|
}),
|
|
1845
|
-
!(t === "multi" &&
|
|
1846
|
-
className: [W.control__value, t === "single" &&
|
|
1847
|
-
children: t === "single" &&
|
|
1876
|
+
!(t === "multi" && T.length > 0) && /* @__PURE__ */ O("span", {
|
|
1877
|
+
className: [W.control__value, t === "single" && le ? "" : W["control__value--placeholder"]].filter(Boolean).join(" "),
|
|
1878
|
+
children: t === "single" && le ? le : o
|
|
1848
1879
|
}),
|
|
1849
|
-
/* @__PURE__ */
|
|
1880
|
+
/* @__PURE__ */ O("span", {
|
|
1850
1881
|
className: [W.control__chevron, p ? W["control__chevron--open"] : ""].join(" "),
|
|
1851
1882
|
"aria-hidden": "true",
|
|
1852
|
-
children: /* @__PURE__ */
|
|
1883
|
+
children: /* @__PURE__ */ O("svg", {
|
|
1853
1884
|
width: 16,
|
|
1854
1885
|
height: 16,
|
|
1855
1886
|
viewBox: "0 0 24 24",
|
|
1856
1887
|
fill: "none",
|
|
1857
1888
|
stroke: "currentColor",
|
|
1858
|
-
strokeWidth:
|
|
1889
|
+
strokeWidth: E(16),
|
|
1859
1890
|
strokeLinecap: "round",
|
|
1860
1891
|
strokeLinejoin: "round",
|
|
1861
|
-
children: /* @__PURE__ */
|
|
1892
|
+
children: /* @__PURE__ */ O("path", { d: "m6 9 6 6 6-6" })
|
|
1862
1893
|
})
|
|
1863
1894
|
})
|
|
1864
1895
|
]
|
|
1865
1896
|
}),
|
|
1866
|
-
h && !s && /* @__PURE__ */
|
|
1897
|
+
h && !s && /* @__PURE__ */ O("div", {
|
|
1898
|
+
ref: ee,
|
|
1867
1899
|
className: [W.panel, p ? W["panel--entering"] : W["panel--exiting"]].filter(Boolean).join(" "),
|
|
1868
1900
|
id: `${f}-panel`,
|
|
1869
1901
|
role: "listbox",
|
|
@@ -1871,43 +1903,54 @@ var Xt = [
|
|
|
1871
1903
|
onAnimationEnd: () => {
|
|
1872
1904
|
p || g(!1);
|
|
1873
1905
|
},
|
|
1874
|
-
children: c ? /* @__PURE__ */
|
|
1906
|
+
children: c ? /* @__PURE__ */ k("div", {
|
|
1875
1907
|
className: W.panel__loading,
|
|
1876
|
-
children: [/* @__PURE__ */
|
|
1908
|
+
children: [/* @__PURE__ */ O("span", {
|
|
1877
1909
|
className: W.panel__spinner,
|
|
1878
1910
|
"aria-hidden": "true"
|
|
1879
1911
|
}), "Loading…"]
|
|
1880
|
-
}) :
|
|
1912
|
+
}) : b.length === 0 ? /* @__PURE__ */ O("div", {
|
|
1881
1913
|
className: W.panel__empty,
|
|
1882
1914
|
children: "No options available"
|
|
1883
|
-
}) :
|
|
1884
|
-
|
|
1885
|
-
|
|
1915
|
+
}) : /* @__PURE__ */ k(Be, { children: [S && /* @__PURE__ */ O("span", {
|
|
1916
|
+
"aria-hidden": "true",
|
|
1917
|
+
className: [W.optionHighlight, te ? W["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
|
|
1918
|
+
style: {
|
|
1919
|
+
transform: `translateY(${S.top}px)`,
|
|
1920
|
+
height: S.height
|
|
1921
|
+
}
|
|
1922
|
+
}), b.map((e, t) => {
|
|
1923
|
+
let n = T.includes(e.value);
|
|
1924
|
+
return /* @__PURE__ */ k("div", {
|
|
1925
|
+
ref: (e) => {
|
|
1926
|
+
x.current[t] = e;
|
|
1927
|
+
},
|
|
1886
1928
|
id: `${f}-opt-${t}`,
|
|
1887
1929
|
role: "option",
|
|
1888
1930
|
"aria-selected": n,
|
|
1889
1931
|
className: [
|
|
1890
1932
|
W.option,
|
|
1891
|
-
t === _ ? W["option--active"] : "",
|
|
1892
1933
|
n ? W["option--selected"] : "",
|
|
1893
1934
|
e.disabled ? W["option--disabled"] : ""
|
|
1894
1935
|
].filter(Boolean).join(" "),
|
|
1895
|
-
onMouseEnter: () =>
|
|
1896
|
-
|
|
1936
|
+
onMouseEnter: () => {
|
|
1937
|
+
e.disabled || v(t);
|
|
1938
|
+
},
|
|
1939
|
+
onClick: () => se(e),
|
|
1897
1940
|
children: [
|
|
1898
|
-
e.icon && /* @__PURE__ */
|
|
1941
|
+
e.icon && /* @__PURE__ */ O("span", {
|
|
1899
1942
|
className: W.option__icon,
|
|
1900
1943
|
"aria-hidden": "true",
|
|
1901
1944
|
children: e.icon
|
|
1902
1945
|
}),
|
|
1903
|
-
/* @__PURE__ */
|
|
1946
|
+
/* @__PURE__ */ O("span", {
|
|
1904
1947
|
className: W.option__label,
|
|
1905
1948
|
children: e.label
|
|
1906
1949
|
}),
|
|
1907
|
-
n && /* @__PURE__ */
|
|
1950
|
+
n && /* @__PURE__ */ O("span", {
|
|
1908
1951
|
className: W.option__check,
|
|
1909
1952
|
"aria-hidden": "true",
|
|
1910
|
-
children: /* @__PURE__ */
|
|
1953
|
+
children: /* @__PURE__ */ O("svg", {
|
|
1911
1954
|
width: 16,
|
|
1912
1955
|
height: 16,
|
|
1913
1956
|
viewBox: "0 0 24 24",
|
|
@@ -1916,15 +1959,15 @@ var Xt = [
|
|
|
1916
1959
|
strokeWidth: 2,
|
|
1917
1960
|
strokeLinecap: "round",
|
|
1918
1961
|
strokeLinejoin: "round",
|
|
1919
|
-
children: /* @__PURE__ */
|
|
1962
|
+
children: /* @__PURE__ */ O("polyline", { points: "20 6 9 17 4 12" })
|
|
1920
1963
|
})
|
|
1921
1964
|
})
|
|
1922
1965
|
]
|
|
1923
1966
|
}, e.value);
|
|
1924
|
-
})
|
|
1967
|
+
})] })
|
|
1925
1968
|
}),
|
|
1926
|
-
(i || a) && /* @__PURE__ */
|
|
1927
|
-
className:
|
|
1969
|
+
(i || a) && /* @__PURE__ */ O("span", {
|
|
1970
|
+
className: ae ? W.field__error : W.field__description,
|
|
1928
1971
|
children: a || i
|
|
1929
1972
|
})
|
|
1930
1973
|
]
|
|
@@ -1956,31 +1999,31 @@ var Xt = [
|
|
|
1956
1999
|
outer: 142
|
|
1957
2000
|
}
|
|
1958
2001
|
}, Zn = ({ data: e, size: t = "md", centerValue: n, centerCaption: r, height: i, className: a }) => {
|
|
1959
|
-
let [o, s] =
|
|
2002
|
+
let [o, s] = D.useState(null), [c, l] = D.useState(null), u = (e) => {
|
|
1960
2003
|
let t = e.currentTarget.getBoundingClientRect();
|
|
1961
2004
|
l({
|
|
1962
2005
|
x: e.clientX - t.left,
|
|
1963
2006
|
y: e.clientY - t.top
|
|
1964
2007
|
});
|
|
1965
|
-
}, d =
|
|
2008
|
+
}, d = D.useRef(null), f = P(d), p = [
|
|
1966
2009
|
1,
|
|
1967
2010
|
2,
|
|
1968
2011
|
3,
|
|
1969
2012
|
4,
|
|
1970
2013
|
5
|
|
1971
|
-
].map((e) => f(`--color-chart-${e}`) ??
|
|
2014
|
+
].map((e) => f(`--color-chart-${e}`) ?? Yt[e - 1]), m = {
|
|
1972
2015
|
...Xn[t],
|
|
1973
2016
|
h: i ?? Xn[t].h
|
|
1974
2017
|
}, h = (m.outer - m.inner) / 2 - 7;
|
|
1975
|
-
return /* @__PURE__ */
|
|
2018
|
+
return /* @__PURE__ */ k("div", {
|
|
1976
2019
|
ref: d,
|
|
1977
2020
|
className: [Yn.chart, a ?? ""].filter(Boolean).join(" "),
|
|
1978
2021
|
style: { height: m.h },
|
|
1979
2022
|
onMouseMove: u,
|
|
1980
|
-
children: [/* @__PURE__ */
|
|
2023
|
+
children: [/* @__PURE__ */ O(j, {
|
|
1981
2024
|
width: "100%",
|
|
1982
2025
|
height: "100%",
|
|
1983
|
-
children: /* @__PURE__ */
|
|
2026
|
+
children: /* @__PURE__ */ k(xt, { children: [/* @__PURE__ */ O(bt, {
|
|
1984
2027
|
data: e,
|
|
1985
2028
|
dataKey: "value",
|
|
1986
2029
|
nameKey: "label",
|
|
@@ -1994,21 +2037,21 @@ var Xt = [
|
|
|
1994
2037
|
onMouseLeave: () => {
|
|
1995
2038
|
s(null), l(null);
|
|
1996
2039
|
},
|
|
1997
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2040
|
+
children: e.map((e, t) => /* @__PURE__ */ O(A, {
|
|
1998
2041
|
fill: p[t % p.length],
|
|
1999
2042
|
fillOpacity: o !== null && t !== o ? .45 : 1
|
|
2000
2043
|
}, t))
|
|
2001
|
-
}), /* @__PURE__ */
|
|
2002
|
-
content: /* @__PURE__ */
|
|
2044
|
+
}), /* @__PURE__ */ O(jt, {
|
|
2045
|
+
content: /* @__PURE__ */ O(Zt, {}),
|
|
2003
2046
|
wrapperStyle: { zIndex: 50 },
|
|
2004
2047
|
position: c ?? void 0
|
|
2005
2048
|
})] })
|
|
2006
|
-
}), (n || r) && /* @__PURE__ */
|
|
2049
|
+
}), (n || r) && /* @__PURE__ */ k("div", {
|
|
2007
2050
|
className: Yn.center,
|
|
2008
|
-
children: [n && /* @__PURE__ */
|
|
2051
|
+
children: [n && /* @__PURE__ */ O("span", {
|
|
2009
2052
|
className: Yn.center__value,
|
|
2010
2053
|
children: n
|
|
2011
|
-
}), r && /* @__PURE__ */
|
|
2054
|
+
}), r && /* @__PURE__ */ O("span", {
|
|
2012
2055
|
className: Yn.center__caption,
|
|
2013
2056
|
children: r
|
|
2014
2057
|
})]
|
|
@@ -2029,16 +2072,16 @@ var Xt = [
|
|
|
2029
2072
|
file__name: "_file__name_1b5p5_46",
|
|
2030
2073
|
file__remove: "_file__remove_1b5p5_47"
|
|
2031
2074
|
}, Qn = ({ accept: e, multiple: t, hint: n = "SVG, PNG, JPG or PDF (max. 2MB)", onFilesChange: r, className: i }) => {
|
|
2032
|
-
let a =
|
|
2075
|
+
let a = D.useRef(null), [o, s] = D.useState(!1), [c, l] = D.useState([]), u = (e) => {
|
|
2033
2076
|
l(e), r?.(e);
|
|
2034
2077
|
}, d = (e) => {
|
|
2035
2078
|
if (!e) return;
|
|
2036
2079
|
let n = Array.from(e);
|
|
2037
2080
|
u(t ? [...c, ...n] : n.slice(0, 1));
|
|
2038
2081
|
}, f = (e) => u(c.filter((t, n) => n !== e));
|
|
2039
|
-
return /* @__PURE__ */
|
|
2082
|
+
return /* @__PURE__ */ k("div", {
|
|
2040
2083
|
className: [G.wrap, i ?? ""].filter(Boolean).join(" "),
|
|
2041
|
-
children: [/* @__PURE__ */
|
|
2084
|
+
children: [/* @__PURE__ */ k("div", {
|
|
2042
2085
|
className: [G.dropzone, o ? G["dropzone--dragging"] : ""].filter(Boolean).join(" "),
|
|
2043
2086
|
onClick: () => a.current?.click(),
|
|
2044
2087
|
onDragOver: (e) => {
|
|
@@ -2054,26 +2097,26 @@ var Xt = [
|
|
|
2054
2097
|
(e.key === "Enter" || e.key === " ") && a.current?.click();
|
|
2055
2098
|
},
|
|
2056
2099
|
children: [
|
|
2057
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ O("span", {
|
|
2058
2101
|
className: G.dropzone__icon,
|
|
2059
2102
|
"aria-hidden": "true",
|
|
2060
|
-
children: /* @__PURE__ */
|
|
2103
|
+
children: /* @__PURE__ */ O(ut, {
|
|
2061
2104
|
size: 22,
|
|
2062
|
-
strokeWidth:
|
|
2105
|
+
strokeWidth: E(22)
|
|
2063
2106
|
})
|
|
2064
2107
|
}),
|
|
2065
|
-
/* @__PURE__ */
|
|
2108
|
+
/* @__PURE__ */ k("span", {
|
|
2066
2109
|
className: G.dropzone__label,
|
|
2067
|
-
children: [/* @__PURE__ */
|
|
2110
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2068
2111
|
className: G.dropzone__link,
|
|
2069
2112
|
children: "Click to upload"
|
|
2070
2113
|
}), " or drag and drop"]
|
|
2071
2114
|
}),
|
|
2072
|
-
/* @__PURE__ */
|
|
2115
|
+
/* @__PURE__ */ O("span", {
|
|
2073
2116
|
className: G.dropzone__hint,
|
|
2074
2117
|
children: n
|
|
2075
2118
|
}),
|
|
2076
|
-
/* @__PURE__ */
|
|
2119
|
+
/* @__PURE__ */ O("input", {
|
|
2077
2120
|
ref: a,
|
|
2078
2121
|
type: "file",
|
|
2079
2122
|
accept: e,
|
|
@@ -2082,31 +2125,31 @@ var Xt = [
|
|
|
2082
2125
|
onChange: (e) => d(e.target.files)
|
|
2083
2126
|
})
|
|
2084
2127
|
]
|
|
2085
|
-
}), c.length > 0 && /* @__PURE__ */
|
|
2128
|
+
}), c.length > 0 && /* @__PURE__ */ O("ul", {
|
|
2086
2129
|
className: G.files,
|
|
2087
|
-
children: c.map((e, t) => /* @__PURE__ */
|
|
2130
|
+
children: c.map((e, t) => /* @__PURE__ */ k("li", {
|
|
2088
2131
|
className: G.file,
|
|
2089
2132
|
children: [
|
|
2090
|
-
/* @__PURE__ */
|
|
2133
|
+
/* @__PURE__ */ O("span", {
|
|
2091
2134
|
className: G.file__icon,
|
|
2092
2135
|
"aria-hidden": "true",
|
|
2093
|
-
children: /* @__PURE__ */
|
|
2136
|
+
children: /* @__PURE__ */ O(Ye, {
|
|
2094
2137
|
size: 16,
|
|
2095
|
-
strokeWidth:
|
|
2138
|
+
strokeWidth: E(16)
|
|
2096
2139
|
})
|
|
2097
2140
|
}),
|
|
2098
|
-
/* @__PURE__ */
|
|
2141
|
+
/* @__PURE__ */ O("span", {
|
|
2099
2142
|
className: G.file__name,
|
|
2100
2143
|
children: e.name
|
|
2101
2144
|
}),
|
|
2102
|
-
/* @__PURE__ */
|
|
2145
|
+
/* @__PURE__ */ O("button", {
|
|
2103
2146
|
type: "button",
|
|
2104
2147
|
className: G.file__remove,
|
|
2105
2148
|
onClick: () => f(t),
|
|
2106
2149
|
"aria-label": `Remove ${e.name}`,
|
|
2107
|
-
children: /* @__PURE__ */
|
|
2150
|
+
children: /* @__PURE__ */ O(dt, {
|
|
2108
2151
|
size: 14,
|
|
2109
|
-
strokeWidth:
|
|
2152
|
+
strokeWidth: E(14)
|
|
2110
2153
|
})
|
|
2111
2154
|
})
|
|
2112
2155
|
]
|
|
@@ -2132,15 +2175,15 @@ var Xt = [
|
|
|
2132
2175
|
lg: 320,
|
|
2133
2176
|
xl: 420
|
|
2134
2177
|
}, er = 560, tr = .3, nr = .55, rr = ({ data: e, size: t = "md", className: n }) => {
|
|
2135
|
-
let [r, i] =
|
|
2178
|
+
let [r, i] = D.useState(null), a = D.useRef(null), o = P(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-bg-canvas") ?? "#fafaf9", l = e[0]?.value || 1, u = $n[t], d = u * .66, f = d / 2 + 8, p = er / e.length, m = e[0]?.value || 1, h = (e) => e / m * d, g = e.map((e) => h(e.value));
|
|
2136
2179
|
g.push(h(e[e.length - 1]?.value ?? 0) * nr);
|
|
2137
2180
|
let _ = (t) => e.length <= 1 ? 1 : tr + t / (e.length - 1) * (1 - tr), v = r === null ? null : e[r], y = r === null ? 0 : f - g[r] / 2, b = r === null ? 0 : r * p + p / 2;
|
|
2138
|
-
return /* @__PURE__ */
|
|
2181
|
+
return /* @__PURE__ */ k("div", {
|
|
2139
2182
|
ref: a,
|
|
2140
2183
|
className: [K.chart, n ?? ""].filter(Boolean).join(" "),
|
|
2141
2184
|
style: { height: u },
|
|
2142
2185
|
children: [
|
|
2143
|
-
/* @__PURE__ */
|
|
2186
|
+
/* @__PURE__ */ O("svg", {
|
|
2144
2187
|
viewBox: `0 0 ${er} ${u}`,
|
|
2145
2188
|
width: "100%",
|
|
2146
2189
|
height: u,
|
|
@@ -2153,15 +2196,15 @@ var Xt = [
|
|
|
2153
2196
|
`C ${o} ${v} ${o} ${h} ${n} ${h}`,
|
|
2154
2197
|
"Z"
|
|
2155
2198
|
].join(" "), b = r === null ? _(t) : t === r ? 1 : .45, x = Math.round(e.value / l * 100);
|
|
2156
|
-
return /* @__PURE__ */
|
|
2199
|
+
return /* @__PURE__ */ k("g", {
|
|
2157
2200
|
className: K.segment,
|
|
2158
2201
|
onMouseEnter: () => i(t),
|
|
2159
2202
|
onMouseLeave: () => i(null),
|
|
2160
|
-
children: [/* @__PURE__ */
|
|
2203
|
+
children: [/* @__PURE__ */ O("path", {
|
|
2161
2204
|
d: y,
|
|
2162
2205
|
fill: s,
|
|
2163
2206
|
fillOpacity: b
|
|
2164
|
-
}), /* @__PURE__ */
|
|
2207
|
+
}), /* @__PURE__ */ k("text", {
|
|
2165
2208
|
x: o,
|
|
2166
2209
|
y: f,
|
|
2167
2210
|
textAnchor: "middle",
|
|
@@ -2172,36 +2215,36 @@ var Xt = [
|
|
|
2172
2215
|
}, t);
|
|
2173
2216
|
})
|
|
2174
2217
|
}),
|
|
2175
|
-
/* @__PURE__ */
|
|
2218
|
+
/* @__PURE__ */ O("div", {
|
|
2176
2219
|
className: K.labels,
|
|
2177
2220
|
style: { gridTemplateColumns: `repeat(${e.length}, 1fr)` },
|
|
2178
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2221
|
+
children: e.map((e, t) => /* @__PURE__ */ O("span", {
|
|
2179
2222
|
className: K.labelItem,
|
|
2180
2223
|
children: e.label
|
|
2181
2224
|
}, t))
|
|
2182
2225
|
}),
|
|
2183
|
-
v && /* @__PURE__ */
|
|
2226
|
+
v && /* @__PURE__ */ k("div", {
|
|
2184
2227
|
className: K.tooltip,
|
|
2185
2228
|
style: {
|
|
2186
2229
|
left: `${b / er * 100}%`,
|
|
2187
2230
|
top: `${y / u * 100}%`,
|
|
2188
2231
|
background: c
|
|
2189
2232
|
},
|
|
2190
|
-
children: [/* @__PURE__ */
|
|
2233
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2191
2234
|
className: K.tooltip__title,
|
|
2192
2235
|
children: v.label
|
|
2193
|
-
}), /* @__PURE__ */
|
|
2236
|
+
}), /* @__PURE__ */ k("div", {
|
|
2194
2237
|
className: K.tooltip__row,
|
|
2195
2238
|
children: [
|
|
2196
|
-
/* @__PURE__ */
|
|
2239
|
+
/* @__PURE__ */ O("span", {
|
|
2197
2240
|
className: K.tooltip__dot,
|
|
2198
2241
|
style: { background: s }
|
|
2199
2242
|
}),
|
|
2200
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ O("span", {
|
|
2201
2244
|
className: K.tooltip__label,
|
|
2202
2245
|
children: "Share"
|
|
2203
2246
|
}),
|
|
2204
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ k("span", {
|
|
2205
2248
|
className: K.tooltip__value,
|
|
2206
2249
|
children: [Math.round(v.value / l * 100), "%"]
|
|
2207
2250
|
})
|
|
@@ -2227,7 +2270,7 @@ var Xt = [
|
|
|
2227
2270
|
tooltip__label: "_tooltip__label_1yc8b_91",
|
|
2228
2271
|
tooltip__value: "_tooltip__value_1yc8b_92"
|
|
2229
2272
|
}, ir = .12, ar = .45, or = ({ data: e, rowLabels: t, colLabels: n, valueLabel: r = "Value", size: i = "md", className: a }) => {
|
|
2230
|
-
let o =
|
|
2273
|
+
let o = D.useRef(null), s = P(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
2274
|
let i = r.currentTarget.getBoundingClientRect(), a = c.current?.getBoundingClientRect();
|
|
2232
2275
|
a && u({
|
|
2233
2276
|
row: e,
|
|
@@ -2237,24 +2280,24 @@ var Xt = [
|
|
|
2237
2280
|
top: i.top - a.top
|
|
2238
2281
|
});
|
|
2239
2282
|
};
|
|
2240
|
-
return /* @__PURE__ */
|
|
2283
|
+
return /* @__PURE__ */ O("div", {
|
|
2241
2284
|
ref: o,
|
|
2242
2285
|
className: [
|
|
2243
2286
|
q.chart,
|
|
2244
2287
|
q[`chart--${i}`],
|
|
2245
2288
|
a ?? ""
|
|
2246
2289
|
].filter(Boolean).join(" "),
|
|
2247
|
-
children: /* @__PURE__ */
|
|
2290
|
+
children: /* @__PURE__ */ k("div", {
|
|
2248
2291
|
ref: c,
|
|
2249
2292
|
className: q.grid,
|
|
2250
2293
|
style: { gridTemplateColumns: `auto repeat(${p}, 1fr)` },
|
|
2251
2294
|
children: [
|
|
2252
|
-
e.map((e, n) => /* @__PURE__ */
|
|
2295
|
+
e.map((e, n) => /* @__PURE__ */ k(D.Fragment, { children: [/* @__PURE__ */ O("span", {
|
|
2253
2296
|
className: q.rowLabel,
|
|
2254
2297
|
children: t?.[n] ?? ""
|
|
2255
2298
|
}), e.map((e, t) => {
|
|
2256
2299
|
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 : ir + e / f * (1 - ir);
|
|
2257
|
-
return /* @__PURE__ */
|
|
2300
|
+
return /* @__PURE__ */ O("div", {
|
|
2258
2301
|
className: q.cell,
|
|
2259
2302
|
style: {
|
|
2260
2303
|
background: d,
|
|
@@ -2264,28 +2307,28 @@ var Xt = [
|
|
|
2264
2307
|
onMouseLeave: () => u(null)
|
|
2265
2308
|
}, t);
|
|
2266
2309
|
})] }, n)),
|
|
2267
|
-
n && /* @__PURE__ */
|
|
2310
|
+
n && /* @__PURE__ */ k(Be, { children: [/* @__PURE__ */ O("span", {}), n.map((e, t) => /* @__PURE__ */ O("span", {
|
|
2268
2311
|
className: q.colLabel,
|
|
2269
2312
|
children: e
|
|
2270
2313
|
}, t))] }),
|
|
2271
|
-
l && /* @__PURE__ */
|
|
2314
|
+
l && /* @__PURE__ */ k("div", {
|
|
2272
2315
|
className: q.tooltip,
|
|
2273
2316
|
style: {
|
|
2274
2317
|
left: l.left,
|
|
2275
2318
|
top: l.top
|
|
2276
2319
|
},
|
|
2277
|
-
children: [/* @__PURE__ */
|
|
2320
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2278
2321
|
className: q.tooltip__title,
|
|
2279
2322
|
children: [t?.[l.row], n?.[l.col]].filter(Boolean).join(" · ") || `Row ${l.row + 1}, Col ${l.col + 1}`
|
|
2280
|
-
}), /* @__PURE__ */
|
|
2323
|
+
}), /* @__PURE__ */ k("div", {
|
|
2281
2324
|
className: q.tooltip__row,
|
|
2282
2325
|
children: [
|
|
2283
|
-
/* @__PURE__ */
|
|
2284
|
-
/* @__PURE__ */
|
|
2326
|
+
/* @__PURE__ */ O("span", { className: q.tooltip__dot }),
|
|
2327
|
+
/* @__PURE__ */ O("span", {
|
|
2285
2328
|
className: q.tooltip__label,
|
|
2286
2329
|
children: r
|
|
2287
2330
|
}),
|
|
2288
|
-
/* @__PURE__ */
|
|
2331
|
+
/* @__PURE__ */ O("span", {
|
|
2289
2332
|
className: q.tooltip__value,
|
|
2290
2333
|
children: l.value
|
|
2291
2334
|
})
|
|
@@ -2295,17 +2338,17 @@ var Xt = [
|
|
|
2295
2338
|
]
|
|
2296
2339
|
})
|
|
2297
2340
|
});
|
|
2298
|
-
}, sr = { kbd: "_kbd_1cz4m_3" }, cr = ({ children: e, className: t }) => /* @__PURE__ */
|
|
2341
|
+
}, sr = { kbd: "_kbd_1cz4m_3" }, cr = ({ children: e, className: t }) => /* @__PURE__ */ O("kbd", {
|
|
2299
2342
|
className: [sr.kbd, t ?? ""].filter(Boolean).join(" "),
|
|
2300
2343
|
children: e
|
|
2301
2344
|
}), lr = {
|
|
2302
2345
|
label: "_label_rcdks_3",
|
|
2303
2346
|
label__required: "_label__required_rcdks_17"
|
|
2304
|
-
}, ur =
|
|
2347
|
+
}, ur = D.forwardRef(({ required: e, children: t, className: n, ...r }, i) => /* @__PURE__ */ k("label", {
|
|
2305
2348
|
ref: i,
|
|
2306
2349
|
className: [lr.label, n ?? ""].filter(Boolean).join(" "),
|
|
2307
2350
|
...r,
|
|
2308
|
-
children: [t, e && /* @__PURE__ */
|
|
2351
|
+
children: [t, e && /* @__PURE__ */ O("span", {
|
|
2309
2352
|
className: lr.label__required,
|
|
2310
2353
|
"aria-hidden": "true",
|
|
2311
2354
|
children: " *"
|
|
@@ -2324,36 +2367,36 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2324
2367
|
"label",
|
|
2325
2368
|
"custom-label"
|
|
2326
2369
|
]), mr = ({ data: e, series: t, xKey: n = "label", variant: r = "default", labelKey: i, size: a = "md", height: o, showLegend: s, className: c }) => {
|
|
2327
|
-
let l =
|
|
2370
|
+
let l = D.useRef(null), u = P(l), d = [
|
|
2328
2371
|
1,
|
|
2329
2372
|
2,
|
|
2330
2373
|
3,
|
|
2331
2374
|
4,
|
|
2332
2375
|
5
|
|
2333
|
-
].map((e) => u(`--color-chart-${e}`) ??
|
|
2376
|
+
].map((e) => u(`--color-chart-${e}`) ?? Yt[e - 1]), f = [
|
|
2334
2377
|
d[1],
|
|
2335
2378
|
d[0],
|
|
2336
2379
|
...d.slice(2)
|
|
2337
2380
|
], 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 = pr.has(r), y = (e) => (t) => {
|
|
2338
2381
|
let { cx: n, cy: r } = t;
|
|
2339
|
-
return /* @__PURE__ */
|
|
2382
|
+
return /* @__PURE__ */ k("g", {
|
|
2340
2383
|
stroke: e,
|
|
2341
2384
|
strokeWidth: 2,
|
|
2342
2385
|
strokeLinecap: "round",
|
|
2343
2386
|
children: [
|
|
2344
|
-
/* @__PURE__ */
|
|
2387
|
+
/* @__PURE__ */ O("line", {
|
|
2345
2388
|
x1: n,
|
|
2346
2389
|
y1: r - 3,
|
|
2347
2390
|
x2: n,
|
|
2348
2391
|
y2: r - 3 - 6
|
|
2349
2392
|
}),
|
|
2350
|
-
/* @__PURE__ */
|
|
2393
|
+
/* @__PURE__ */ O("line", {
|
|
2351
2394
|
x1: n,
|
|
2352
2395
|
y1: r + 3,
|
|
2353
2396
|
x2: n,
|
|
2354
2397
|
y2: r + 3 + 6
|
|
2355
2398
|
}),
|
|
2356
|
-
/* @__PURE__ */
|
|
2399
|
+
/* @__PURE__ */ O("circle", {
|
|
2357
2400
|
cx: n,
|
|
2358
2401
|
cy: r,
|
|
2359
2402
|
r: 3,
|
|
@@ -2364,7 +2407,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2364
2407
|
});
|
|
2365
2408
|
}, b = (e) => {
|
|
2366
2409
|
let { cx: t, cy: n, index: r } = e, i = d[(r ?? 0) % d.length];
|
|
2367
|
-
return /* @__PURE__ */
|
|
2410
|
+
return /* @__PURE__ */ O("circle", {
|
|
2368
2411
|
cx: t,
|
|
2369
2412
|
cy: n,
|
|
2370
2413
|
r: 4,
|
|
@@ -2374,7 +2417,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2374
2417
|
});
|
|
2375
2418
|
}, x = (t) => {
|
|
2376
2419
|
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__ */
|
|
2420
|
+
return c === void 0 ? /* @__PURE__ */ O("g", {}) : /* @__PURE__ */ O("text", {
|
|
2378
2421
|
x: n,
|
|
2379
2422
|
y: a - 12,
|
|
2380
2423
|
textAnchor: "middle",
|
|
@@ -2385,13 +2428,13 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2385
2428
|
children: c
|
|
2386
2429
|
});
|
|
2387
2430
|
};
|
|
2388
|
-
return /* @__PURE__ */
|
|
2431
|
+
return /* @__PURE__ */ O("div", {
|
|
2389
2432
|
ref: l,
|
|
2390
2433
|
className: [dr.chart, c ?? ""].filter(Boolean).join(" "),
|
|
2391
|
-
children: /* @__PURE__ */
|
|
2434
|
+
children: /* @__PURE__ */ O(j, {
|
|
2392
2435
|
width: "100%",
|
|
2393
2436
|
height: o ?? fr[a],
|
|
2394
|
-
children: /* @__PURE__ */
|
|
2437
|
+
children: /* @__PURE__ */ k(yt, {
|
|
2395
2438
|
data: e,
|
|
2396
2439
|
margin: {
|
|
2397
2440
|
top: 8,
|
|
@@ -2400,12 +2443,12 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2400
2443
|
left: 12
|
|
2401
2444
|
},
|
|
2402
2445
|
children: [
|
|
2403
|
-
/* @__PURE__ */
|
|
2446
|
+
/* @__PURE__ */ O(gt, {
|
|
2404
2447
|
strokeDasharray: "3 3",
|
|
2405
2448
|
stroke: p,
|
|
2406
2449
|
vertical: !1
|
|
2407
2450
|
}),
|
|
2408
|
-
/* @__PURE__ */
|
|
2451
|
+
/* @__PURE__ */ O(Mt, {
|
|
2409
2452
|
dataKey: n,
|
|
2410
2453
|
stroke: m,
|
|
2411
2454
|
fontSize: 12,
|
|
@@ -2413,15 +2456,15 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2413
2456
|
axisLine: !1,
|
|
2414
2457
|
interval: 0
|
|
2415
2458
|
}),
|
|
2416
|
-
/* @__PURE__ */
|
|
2459
|
+
/* @__PURE__ */ O(jt, {
|
|
2417
2460
|
cursor: {
|
|
2418
2461
|
stroke: u("--color-border-default") ?? "#dbdad7",
|
|
2419
2462
|
strokeWidth: 1
|
|
2420
2463
|
},
|
|
2421
|
-
content: /* @__PURE__ */
|
|
2464
|
+
content: /* @__PURE__ */ O(Zt, {}),
|
|
2422
2465
|
wrapperStyle: { zIndex: 50 }
|
|
2423
2466
|
}),
|
|
2424
|
-
s && /* @__PURE__ */
|
|
2467
|
+
s && /* @__PURE__ */ O(_t, { wrapperStyle: {
|
|
2425
2468
|
fontSize: 12,
|
|
2426
2469
|
fontFamily: "var(--font-sans)"
|
|
2427
2470
|
} }),
|
|
@@ -2432,7 +2475,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2432
2475
|
stroke: h,
|
|
2433
2476
|
strokeWidth: 1.5
|
|
2434
2477
|
} : !1;
|
|
2435
|
-
return /* @__PURE__ */
|
|
2478
|
+
return /* @__PURE__ */ O(vt, {
|
|
2436
2479
|
type: _,
|
|
2437
2480
|
dataKey: e,
|
|
2438
2481
|
stroke: n,
|
|
@@ -2460,7 +2503,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2460
2503
|
item__title: "_item__title_1b54h_22",
|
|
2461
2504
|
item__description: "_item__description_1b54h_23",
|
|
2462
2505
|
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__ */
|
|
2506
|
+
}, gr = ({ title: e, description: t, leading: n, trailing: r, selected: i, disabled: a, onClick: o, className: s }) => /* @__PURE__ */ k("button", {
|
|
2464
2507
|
type: "button",
|
|
2465
2508
|
disabled: a,
|
|
2466
2509
|
onClick: o,
|
|
@@ -2472,21 +2515,21 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2472
2515
|
s ?? ""
|
|
2473
2516
|
].filter(Boolean).join(" "),
|
|
2474
2517
|
children: [
|
|
2475
|
-
n && /* @__PURE__ */
|
|
2518
|
+
n && /* @__PURE__ */ O("span", {
|
|
2476
2519
|
className: hr.item__leading,
|
|
2477
2520
|
children: n
|
|
2478
2521
|
}),
|
|
2479
|
-
/* @__PURE__ */
|
|
2522
|
+
/* @__PURE__ */ k("span", {
|
|
2480
2523
|
className: hr.item__text,
|
|
2481
|
-
children: [/* @__PURE__ */
|
|
2524
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2482
2525
|
className: hr.item__title,
|
|
2483
2526
|
children: e
|
|
2484
|
-
}), t && /* @__PURE__ */
|
|
2527
|
+
}), t && /* @__PURE__ */ O("span", {
|
|
2485
2528
|
className: hr.item__description,
|
|
2486
2529
|
children: t
|
|
2487
2530
|
})]
|
|
2488
2531
|
}),
|
|
2489
|
-
r && /* @__PURE__ */
|
|
2532
|
+
r && /* @__PURE__ */ O("span", {
|
|
2490
2533
|
className: hr.item__trailing,
|
|
2491
2534
|
children: r
|
|
2492
2535
|
})
|
|
@@ -2494,13 +2537,13 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2494
2537
|
}), _r = {
|
|
2495
2538
|
menu: "_menu_psizn_2",
|
|
2496
2539
|
divider: "_divider_psizn_12"
|
|
2497
|
-
}, vr = ({ children: e, minWidth: t = 208, className: n, ...r }) => /* @__PURE__ */
|
|
2540
|
+
}, vr = ({ children: e, minWidth: t = 208, className: n, ...r }) => /* @__PURE__ */ O("div", {
|
|
2498
2541
|
role: "menu",
|
|
2499
2542
|
"aria-label": r["aria-label"],
|
|
2500
2543
|
style: { minWidth: t },
|
|
2501
2544
|
className: [_r.menu, n ?? ""].filter(Boolean).join(" "),
|
|
2502
2545
|
children: e
|
|
2503
|
-
}), yr = () => /* @__PURE__ */
|
|
2546
|
+
}), yr = () => /* @__PURE__ */ O("div", {
|
|
2504
2547
|
className: _r.divider,
|
|
2505
2548
|
role: "separator"
|
|
2506
2549
|
}), br = {
|
|
@@ -2514,7 +2557,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2514
2557
|
"item--destructive": "_item--destructive_1xzse_34"
|
|
2515
2558
|
}, xr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: i, className: a }) => {
|
|
2516
2559
|
let o = e === "disabled";
|
|
2517
|
-
return /* @__PURE__ */
|
|
2560
|
+
return /* @__PURE__ */ k("div", {
|
|
2518
2561
|
role: "menuitem",
|
|
2519
2562
|
"aria-disabled": o || void 0,
|
|
2520
2563
|
"aria-checked": e === "checked" || void 0,
|
|
@@ -2529,22 +2572,22 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2529
2572
|
a ?? ""
|
|
2530
2573
|
].filter(Boolean).join(" "),
|
|
2531
2574
|
children: [
|
|
2532
|
-
t && /* @__PURE__ */
|
|
2575
|
+
t && /* @__PURE__ */ O("span", {
|
|
2533
2576
|
className: br.item__icon,
|
|
2534
2577
|
"aria-hidden": "true",
|
|
2535
2578
|
children: t
|
|
2536
2579
|
}),
|
|
2537
|
-
/* @__PURE__ */
|
|
2580
|
+
/* @__PURE__ */ O("span", {
|
|
2538
2581
|
className: br.item__label,
|
|
2539
2582
|
children: r
|
|
2540
2583
|
}),
|
|
2541
|
-
n && /* @__PURE__ */
|
|
2584
|
+
n && /* @__PURE__ */ O("kbd", {
|
|
2542
2585
|
className: br.item__shortcut,
|
|
2543
2586
|
children: n
|
|
2544
2587
|
}),
|
|
2545
|
-
e === "checked" && /* @__PURE__ */
|
|
2588
|
+
e === "checked" && /* @__PURE__ */ O(Ue, {
|
|
2546
2589
|
size: 16,
|
|
2547
|
-
strokeWidth:
|
|
2590
|
+
strokeWidth: E(16),
|
|
2548
2591
|
className: br.item__check,
|
|
2549
2592
|
"aria-hidden": "true"
|
|
2550
2593
|
})
|
|
@@ -2578,15 +2621,15 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2578
2621
|
"donut-with-text",
|
|
2579
2622
|
"interactive"
|
|
2580
2623
|
]), 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 =
|
|
2624
|
+
let o = D.useRef(null), s = P(o), [c, l] = D.useState(void 0), u = [
|
|
2582
2625
|
1,
|
|
2583
2626
|
2,
|
|
2584
2627
|
3,
|
|
2585
2628
|
4,
|
|
2586
2629
|
5
|
|
2587
|
-
].map((e) => s(`--color-chart-${e}`) ??
|
|
2630
|
+
].map((e) => s(`--color-chart-${e}`) ?? Yt[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
2631
|
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__ */
|
|
2632
|
+
return l && g ? /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O(At, {
|
|
2590
2633
|
cx: t,
|
|
2591
2634
|
cy: n,
|
|
2592
2635
|
innerRadius: r,
|
|
@@ -2594,7 +2637,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2594
2637
|
startAngle: a,
|
|
2595
2638
|
endAngle: o,
|
|
2596
2639
|
fill: s
|
|
2597
|
-
}), /* @__PURE__ */
|
|
2640
|
+
}), /* @__PURE__ */ O(At, {
|
|
2598
2641
|
cx: t,
|
|
2599
2642
|
cy: n,
|
|
2600
2643
|
innerRadius: i + u + 3,
|
|
@@ -2602,7 +2645,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2602
2645
|
startAngle: a,
|
|
2603
2646
|
endAngle: o,
|
|
2604
2647
|
fill: s
|
|
2605
|
-
})] }) : /* @__PURE__ */
|
|
2648
|
+
})] }) : /* @__PURE__ */ O(At, {
|
|
2606
2649
|
cx: t,
|
|
2607
2650
|
cy: n,
|
|
2608
2651
|
innerRadius: r,
|
|
@@ -2619,14 +2662,14 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2619
2662
|
endY: d,
|
|
2620
2663
|
textAnchor: f ? "start" : "end"
|
|
2621
2664
|
};
|
|
2622
|
-
},
|
|
2665
|
+
}, ee = (e) => {
|
|
2623
2666
|
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__ */
|
|
2667
|
+
return /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O("path", {
|
|
2625
2668
|
d: r,
|
|
2626
2669
|
fill: "none",
|
|
2627
2670
|
stroke: n,
|
|
2628
2671
|
strokeWidth: 1
|
|
2629
|
-
}), /* @__PURE__ */
|
|
2672
|
+
}), /* @__PURE__ */ O("text", {
|
|
2630
2673
|
x: s,
|
|
2631
2674
|
y: a,
|
|
2632
2675
|
textAnchor: o,
|
|
@@ -2636,9 +2679,9 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2636
2679
|
fontFamily: "var(--font-sans)",
|
|
2637
2680
|
children: t
|
|
2638
2681
|
})] });
|
|
2639
|
-
},
|
|
2682
|
+
}, S = (e) => {
|
|
2640
2683
|
let { x: t, y: n, textAnchor: r, value: i } = e;
|
|
2641
|
-
return /* @__PURE__ */
|
|
2684
|
+
return /* @__PURE__ */ O("text", {
|
|
2642
2685
|
x: t,
|
|
2643
2686
|
y: n,
|
|
2644
2687
|
textAnchor: r,
|
|
@@ -2649,9 +2692,9 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2649
2692
|
fontFamily: "var(--font-sans)",
|
|
2650
2693
|
children: i
|
|
2651
2694
|
});
|
|
2652
|
-
},
|
|
2695
|
+
}, C = (t) => {
|
|
2653
2696
|
let { cx: n, cy: r, midAngle: i, innerRadius: a, outerRadius: o, index: s } = t, c = (a + o) / 2;
|
|
2654
|
-
return /* @__PURE__ */
|
|
2697
|
+
return /* @__PURE__ */ O("text", {
|
|
2655
2698
|
x: n + c * Math.cos(-i * Or),
|
|
2656
2699
|
y: r + c * Math.sin(-i * Or),
|
|
2657
2700
|
textAnchor: "middle",
|
|
@@ -2665,15 +2708,15 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2665
2708
|
};
|
|
2666
2709
|
if (t === "stacked") {
|
|
2667
2710
|
let t = (e) => c !== void 0 && c !== e ? .45 : 1;
|
|
2668
|
-
return /* @__PURE__ */
|
|
2711
|
+
return /* @__PURE__ */ O("div", {
|
|
2669
2712
|
ref: o,
|
|
2670
2713
|
className: [Sr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2671
2714
|
style: { height: p.h },
|
|
2672
|
-
children: /* @__PURE__ */
|
|
2715
|
+
children: /* @__PURE__ */ O(j, {
|
|
2673
2716
|
width: "100%",
|
|
2674
2717
|
height: "100%",
|
|
2675
|
-
children: /* @__PURE__ */
|
|
2676
|
-
/* @__PURE__ */
|
|
2718
|
+
children: /* @__PURE__ */ k(xt, { children: [
|
|
2719
|
+
/* @__PURE__ */ O(bt, {
|
|
2677
2720
|
data: e,
|
|
2678
2721
|
dataKey: "value",
|
|
2679
2722
|
nameKey: "label",
|
|
@@ -2684,12 +2727,12 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2684
2727
|
isAnimationActive: !1,
|
|
2685
2728
|
onMouseEnter: (e, t) => l(t),
|
|
2686
2729
|
onMouseLeave: () => l(void 0),
|
|
2687
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
2730
|
+
children: e.map((e, n) => /* @__PURE__ */ O(A, {
|
|
2688
2731
|
fill: u[n % u.length],
|
|
2689
2732
|
fillOpacity: t(n)
|
|
2690
2733
|
}, n))
|
|
2691
2734
|
}),
|
|
2692
|
-
/* @__PURE__ */
|
|
2735
|
+
/* @__PURE__ */ O(bt, {
|
|
2693
2736
|
data: e,
|
|
2694
2737
|
dataKey: "value",
|
|
2695
2738
|
nameKey: "label",
|
|
@@ -2700,27 +2743,27 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2700
2743
|
isAnimationActive: !1,
|
|
2701
2744
|
onMouseEnter: (e, t) => l(t),
|
|
2702
2745
|
onMouseLeave: () => l(void 0),
|
|
2703
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
2746
|
+
children: e.map((e, n) => /* @__PURE__ */ O(A, {
|
|
2704
2747
|
fill: u[n % u.length],
|
|
2705
2748
|
fillOpacity: t(n)
|
|
2706
2749
|
}, n))
|
|
2707
2750
|
}),
|
|
2708
|
-
/* @__PURE__ */
|
|
2709
|
-
content: /* @__PURE__ */
|
|
2751
|
+
/* @__PURE__ */ O(jt, {
|
|
2752
|
+
content: /* @__PURE__ */ O(Zt, {}),
|
|
2710
2753
|
wrapperStyle: { zIndex: 50 }
|
|
2711
2754
|
})
|
|
2712
2755
|
] })
|
|
2713
2756
|
})
|
|
2714
2757
|
});
|
|
2715
2758
|
}
|
|
2716
|
-
return /* @__PURE__ */
|
|
2759
|
+
return /* @__PURE__ */ k("div", {
|
|
2717
2760
|
ref: o,
|
|
2718
2761
|
className: [Sr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2719
2762
|
style: { height: p.h },
|
|
2720
|
-
children: [/* @__PURE__ */
|
|
2763
|
+
children: [/* @__PURE__ */ O(j, {
|
|
2721
2764
|
width: "100%",
|
|
2722
2765
|
height: "100%",
|
|
2723
|
-
children: /* @__PURE__ */
|
|
2766
|
+
children: /* @__PURE__ */ k(xt, { children: [/* @__PURE__ */ O(bt, {
|
|
2724
2767
|
data: e,
|
|
2725
2768
|
dataKey: "value",
|
|
2726
2769
|
nameKey: "label",
|
|
@@ -2731,21 +2774,21 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2731
2774
|
strokeWidth: t === "pie" ? 2 : 0,
|
|
2732
2775
|
isAnimationActive: !1,
|
|
2733
2776
|
shape: h || g ? b : void 0,
|
|
2734
|
-
label: t === "label" ?
|
|
2777
|
+
label: t === "label" ? ee : t === "custom-label" ? S : t === "label-list" ? C : void 0,
|
|
2735
2778
|
labelLine: !1,
|
|
2736
2779
|
onMouseEnter: (e, t) => l(t),
|
|
2737
2780
|
onMouseLeave: () => l(void 0),
|
|
2738
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2739
|
-
}), /* @__PURE__ */
|
|
2740
|
-
content: /* @__PURE__ */
|
|
2781
|
+
children: e.map((e, t) => /* @__PURE__ */ O(A, { fill: u[t % u.length] }, t))
|
|
2782
|
+
}), /* @__PURE__ */ O(jt, {
|
|
2783
|
+
content: /* @__PURE__ */ O(Zt, {}),
|
|
2741
2784
|
wrapperStyle: { zIndex: 50 }
|
|
2742
2785
|
})] })
|
|
2743
|
-
}), v && /* @__PURE__ */
|
|
2786
|
+
}), v && /* @__PURE__ */ k("div", {
|
|
2744
2787
|
className: Sr.center,
|
|
2745
|
-
children: [r && /* @__PURE__ */
|
|
2788
|
+
children: [r && /* @__PURE__ */ O("span", {
|
|
2746
2789
|
className: Sr.center__value,
|
|
2747
2790
|
children: r
|
|
2748
|
-
}), i && /* @__PURE__ */
|
|
2791
|
+
}), i && /* @__PURE__ */ O("span", {
|
|
2749
2792
|
className: Sr.center__caption,
|
|
2750
2793
|
children: i
|
|
2751
2794
|
})]
|
|
@@ -2770,14 +2813,14 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2770
2813
|
panel__body: "_panel__body_16f5u_77",
|
|
2771
2814
|
panel__actions: "_panel__actions_16f5u_78"
|
|
2772
2815
|
}, Ar = ({ trigger: e, title: t, description: n, actions: r, placement: i = "bottom-start", children: a, className: o }) => {
|
|
2773
|
-
let [s, c] =
|
|
2774
|
-
return
|
|
2816
|
+
let [s, c] = D.useState(!1), [l, u] = D.useState(!1), d = D.useRef(null), f = D.useRef(null);
|
|
2817
|
+
return D.useEffect(() => {
|
|
2775
2818
|
s && u(!0);
|
|
2776
|
-
}, [s]),
|
|
2819
|
+
}, [s]), D.useEffect(() => {
|
|
2777
2820
|
if (s || !l) return;
|
|
2778
2821
|
let e = setTimeout(() => u(!1), 240);
|
|
2779
2822
|
return () => clearTimeout(e);
|
|
2780
|
-
}, [s, l]),
|
|
2823
|
+
}, [s, l]), D.useEffect(() => {
|
|
2781
2824
|
if (!s) return;
|
|
2782
2825
|
let e = (e) => {
|
|
2783
2826
|
d.current && !d.current.contains(e.target) && c(!1);
|
|
@@ -2787,18 +2830,18 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2787
2830
|
return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
|
|
2788
2831
|
document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
|
|
2789
2832
|
};
|
|
2790
|
-
}, [s]),
|
|
2833
|
+
}, [s]), D.useEffect(() => {
|
|
2791
2834
|
!s && f.current && (f.current.focus(), f.current = null);
|
|
2792
|
-
}, [s]), /* @__PURE__ */
|
|
2835
|
+
}, [s]), /* @__PURE__ */ k("div", {
|
|
2793
2836
|
className: [J.root, o ?? ""].filter(Boolean).join(" "),
|
|
2794
2837
|
ref: d,
|
|
2795
|
-
children: [/* @__PURE__ */
|
|
2838
|
+
children: [/* @__PURE__ */ O("span", {
|
|
2796
2839
|
className: J.trigger,
|
|
2797
2840
|
onClick: () => {
|
|
2798
2841
|
s || (f.current = document.activeElement), c((e) => !e);
|
|
2799
2842
|
},
|
|
2800
2843
|
children: e
|
|
2801
|
-
}), l && /* @__PURE__ */
|
|
2844
|
+
}), l && /* @__PURE__ */ k("div", {
|
|
2802
2845
|
className: [
|
|
2803
2846
|
J.panel,
|
|
2804
2847
|
J[`panel--${i}`],
|
|
@@ -2809,19 +2852,19 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2809
2852
|
e.target === e.currentTarget && !s && u(!1);
|
|
2810
2853
|
},
|
|
2811
2854
|
children: [
|
|
2812
|
-
t && /* @__PURE__ */
|
|
2855
|
+
t && /* @__PURE__ */ O("div", {
|
|
2813
2856
|
className: J.panel__title,
|
|
2814
2857
|
children: t
|
|
2815
2858
|
}),
|
|
2816
|
-
n && /* @__PURE__ */
|
|
2859
|
+
n && /* @__PURE__ */ O("div", {
|
|
2817
2860
|
className: J.panel__description,
|
|
2818
2861
|
children: n
|
|
2819
2862
|
}),
|
|
2820
|
-
a && /* @__PURE__ */
|
|
2863
|
+
a && /* @__PURE__ */ O("div", {
|
|
2821
2864
|
className: J.panel__body,
|
|
2822
2865
|
children: a
|
|
2823
2866
|
}),
|
|
2824
|
-
r && /* @__PURE__ */
|
|
2867
|
+
r && /* @__PURE__ */ O("div", {
|
|
2825
2868
|
className: J.panel__actions,
|
|
2826
2869
|
children: r
|
|
2827
2870
|
})
|
|
@@ -2858,13 +2901,13 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2858
2901
|
.4,
|
|
2859
2902
|
.2
|
|
2860
2903
|
], Br = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
|
|
2861
|
-
let a =
|
|
2862
|
-
|
|
2904
|
+
let a = D.useRef(null), o = P(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);
|
|
2905
|
+
D.useEffect(() => {
|
|
2863
2906
|
if (!y || !a.current) return;
|
|
2864
2907
|
let e = a.current, t = new ResizeObserver(([e]) => x(e.contentRect.width));
|
|
2865
2908
|
return t.observe(e), () => t.disconnect();
|
|
2866
2909
|
}, [y]);
|
|
2867
|
-
let
|
|
2910
|
+
let ee = D.useMemo(() => {
|
|
2868
2911
|
if (!g) return e;
|
|
2869
2912
|
let t = Math.max(1, ...e.flatMap((e) => [e.value, e.value2 ?? 0]));
|
|
2870
2913
|
return e.map((e) => {
|
|
@@ -2876,9 +2919,9 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2876
2919
|
...n
|
|
2877
2920
|
};
|
|
2878
2921
|
});
|
|
2879
|
-
}, [e, g]),
|
|
2922
|
+
}, [e, g]), S = (t) => {
|
|
2880
2923
|
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__ */
|
|
2924
|
+
if (!c) return /* @__PURE__ */ O("g", {});
|
|
2882
2925
|
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
2926
|
if (p && d < 0) h = r - 4 - 6, m = h - 16;
|
|
2884
2927
|
else if (p) m = r + 4 + 10, h = m + 18;
|
|
@@ -2887,7 +2930,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2887
2930
|
m = e - 8, h = e + 12;
|
|
2888
2931
|
}
|
|
2889
2932
|
let g = p ? n : n + l / Math.sqrt(l * l + d * d || 1) * 4;
|
|
2890
|
-
return /* @__PURE__ */
|
|
2933
|
+
return /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O("text", {
|
|
2891
2934
|
x: g,
|
|
2892
2935
|
y: m,
|
|
2893
2936
|
textAnchor: s,
|
|
@@ -2896,7 +2939,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2896
2939
|
fontWeight: 600,
|
|
2897
2940
|
fontFamily: "var(--font-sans)",
|
|
2898
2941
|
children: f
|
|
2899
|
-
}), /* @__PURE__ */
|
|
2942
|
+
}), /* @__PURE__ */ O("text", {
|
|
2900
2943
|
x: g,
|
|
2901
2944
|
y: h,
|
|
2902
2945
|
textAnchor: s,
|
|
@@ -2905,56 +2948,56 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2905
2948
|
fontFamily: "var(--font-sans)",
|
|
2906
2949
|
children: c.label
|
|
2907
2950
|
})] });
|
|
2908
|
-
},
|
|
2909
|
-
return /* @__PURE__ */
|
|
2951
|
+
}, C = Mr[n], te = (b > 0 ? Math.min(b, C) / 2 - 5 : 0) * .7;
|
|
2952
|
+
return /* @__PURE__ */ k("div", {
|
|
2910
2953
|
ref: a,
|
|
2911
2954
|
className: [jr.chart, i ?? ""].filter(Boolean).join(" "),
|
|
2912
|
-
children: [y && b > 0 && /* @__PURE__ */
|
|
2955
|
+
children: [y && b > 0 && /* @__PURE__ */ O("svg", {
|
|
2913
2956
|
className: jr.circleFillSvg,
|
|
2914
2957
|
width: b,
|
|
2915
|
-
height:
|
|
2916
|
-
children: zr.map((e) => /* @__PURE__ */
|
|
2958
|
+
height: C,
|
|
2959
|
+
children: zr.map((e) => /* @__PURE__ */ O("circle", {
|
|
2917
2960
|
cx: b / 2,
|
|
2918
|
-
cy:
|
|
2919
|
-
r:
|
|
2961
|
+
cy: C / 2,
|
|
2962
|
+
r: te * e,
|
|
2920
2963
|
fill: c,
|
|
2921
2964
|
fillOpacity: .1
|
|
2922
2965
|
}, e))
|
|
2923
|
-
}), /* @__PURE__ */
|
|
2966
|
+
}), /* @__PURE__ */ O(j, {
|
|
2924
2967
|
width: "100%",
|
|
2925
|
-
height:
|
|
2926
|
-
children: /* @__PURE__ */
|
|
2927
|
-
data:
|
|
2968
|
+
height: C,
|
|
2969
|
+
children: /* @__PURE__ */ k(Et, {
|
|
2970
|
+
data: ee,
|
|
2928
2971
|
outerRadius: "70%",
|
|
2929
2972
|
children: [
|
|
2930
|
-
!g && !v && /* @__PURE__ */
|
|
2973
|
+
!g && !v && /* @__PURE__ */ O(Ct, {
|
|
2931
2974
|
gridType: Nr.has(t) ? "circle" : "polygon",
|
|
2932
2975
|
radialLines: t !== "circle-grid-no-lines" && !_,
|
|
2933
2976
|
stroke: l
|
|
2934
2977
|
}),
|
|
2935
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ O(St, {
|
|
2936
2979
|
dataKey: "label",
|
|
2937
2980
|
axisLine: !1,
|
|
2938
|
-
tick: t === "custom-label" ?
|
|
2981
|
+
tick: t === "custom-label" ? S : {
|
|
2939
2982
|
fill: u,
|
|
2940
2983
|
fontSize: 12,
|
|
2941
2984
|
fontFamily: "var(--font-sans)"
|
|
2942
2985
|
}
|
|
2943
2986
|
}),
|
|
2944
|
-
/* @__PURE__ */
|
|
2987
|
+
/* @__PURE__ */ O(wt, {
|
|
2945
2988
|
tick: !1,
|
|
2946
2989
|
axisLine: !1,
|
|
2947
2990
|
tickCount: _ ? 2 : void 0
|
|
2948
2991
|
}),
|
|
2949
|
-
/* @__PURE__ */
|
|
2950
|
-
content: /* @__PURE__ */
|
|
2992
|
+
/* @__PURE__ */ O(jt, {
|
|
2993
|
+
content: /* @__PURE__ */ O(Zt, {}),
|
|
2951
2994
|
wrapperStyle: { zIndex: 50 }
|
|
2952
2995
|
}),
|
|
2953
|
-
d && /* @__PURE__ */
|
|
2996
|
+
d && /* @__PURE__ */ O(_t, { wrapperStyle: {
|
|
2954
2997
|
fontSize: 12,
|
|
2955
2998
|
fontFamily: "var(--font-sans)"
|
|
2956
2999
|
} }),
|
|
2957
|
-
g && zr.map((e, t) => /* @__PURE__ */
|
|
3000
|
+
g && zr.map((e, t) => /* @__PURE__ */ O(Tt, {
|
|
2958
3001
|
dataKey: `ring${t}`,
|
|
2959
3002
|
stroke: "none",
|
|
2960
3003
|
fill: c,
|
|
@@ -2962,7 +3005,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2962
3005
|
isAnimationActive: !1,
|
|
2963
3006
|
legendType: "none"
|
|
2964
3007
|
}, `ring${t}`)),
|
|
2965
|
-
/* @__PURE__ */
|
|
3008
|
+
/* @__PURE__ */ O(Tt, {
|
|
2966
3009
|
name: d ? r[0] ?? "Value" : void 0,
|
|
2967
3010
|
dataKey: "value",
|
|
2968
3011
|
stroke: Rr.has(t) ? "none" : c,
|
|
@@ -2976,7 +3019,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
2976
3019
|
} : !1,
|
|
2977
3020
|
isAnimationActive: !1
|
|
2978
3021
|
}),
|
|
2979
|
-
p && /* @__PURE__ */
|
|
3022
|
+
p && /* @__PURE__ */ O(Tt, {
|
|
2980
3023
|
name: d ? r[1] ?? "Value 2" : void 0,
|
|
2981
3024
|
dataKey: "value2",
|
|
2982
3025
|
stroke: f ? s : "none",
|
|
@@ -3013,12 +3056,12 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3013
3056
|
text: ["76%", "100%"]
|
|
3014
3057
|
}, Gr = ({ value: e, max: t, color: n, track: r, centerValue: i, centerCaption: a, labelColor: o, captionColor: s }) => {
|
|
3015
3058
|
let c = Math.round(Math.min(e, t) / t * 40);
|
|
3016
|
-
return /* @__PURE__ */
|
|
3059
|
+
return /* @__PURE__ */ k("svg", {
|
|
3017
3060
|
viewBox: "0 0 200 120",
|
|
3018
3061
|
className: Y.gaugeSvg,
|
|
3019
3062
|
children: [Array.from({ length: 40 }).map((e, t) => {
|
|
3020
3063
|
let i = 180 + t / 39 * 180;
|
|
3021
|
-
return /* @__PURE__ */
|
|
3064
|
+
return /* @__PURE__ */ O("line", {
|
|
3022
3065
|
x1: Ur(100 + 78 * Math.cos(i * Hr)),
|
|
3023
3066
|
y1: Ur(100 + 78 * Math.sin(i * Hr)),
|
|
3024
3067
|
x2: Ur(100 + 92 * Math.cos(i * Hr)),
|
|
@@ -3027,17 +3070,17 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3027
3070
|
strokeWidth: 2.5,
|
|
3028
3071
|
strokeLinecap: "round"
|
|
3029
3072
|
}, t);
|
|
3030
|
-
}), (i || a) && /* @__PURE__ */
|
|
3073
|
+
}), (i || a) && /* @__PURE__ */ k("g", {
|
|
3031
3074
|
textAnchor: "middle",
|
|
3032
3075
|
fontFamily: "var(--font-sans)",
|
|
3033
|
-
children: [i && /* @__PURE__ */
|
|
3076
|
+
children: [i && /* @__PURE__ */ O("text", {
|
|
3034
3077
|
x: 100,
|
|
3035
3078
|
y: 92,
|
|
3036
3079
|
fontSize: 22,
|
|
3037
3080
|
fontWeight: 500,
|
|
3038
3081
|
fill: o,
|
|
3039
3082
|
children: i
|
|
3040
|
-
}), a && /* @__PURE__ */
|
|
3083
|
+
}), a && /* @__PURE__ */ O("text", {
|
|
3041
3084
|
x: 100,
|
|
3042
3085
|
y: 112,
|
|
3043
3086
|
fontSize: 12,
|
|
@@ -3046,10 +3089,10 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3046
3089
|
})]
|
|
3047
3090
|
})]
|
|
3048
3091
|
});
|
|
3049
|
-
}, Kr = ({ rings: e, spokes: t, color: n }) => /* @__PURE__ */
|
|
3092
|
+
}, Kr = ({ rings: e, spokes: t, color: n }) => /* @__PURE__ */ k("svg", {
|
|
3050
3093
|
viewBox: "0 0 200 200",
|
|
3051
3094
|
className: Y.gridSvg,
|
|
3052
|
-
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */
|
|
3095
|
+
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O("circle", {
|
|
3053
3096
|
cx: 100,
|
|
3054
3097
|
cy: 100,
|
|
3055
3098
|
r: (r + 1) / e * 96,
|
|
@@ -3058,7 +3101,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3058
3101
|
strokeWidth: 1
|
|
3059
3102
|
}, r)), Array.from({ length: t }).map((e, r) => {
|
|
3060
3103
|
let i = r / t * 360, a = 99.5 * 1.1;
|
|
3061
|
-
return /* @__PURE__ */
|
|
3104
|
+
return /* @__PURE__ */ O("line", {
|
|
3062
3105
|
x1: 100,
|
|
3063
3106
|
y1: 100,
|
|
3064
3107
|
x2: Ur(100 + a * Math.cos(i * Hr)),
|
|
@@ -3076,11 +3119,11 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3076
3119
|
fill: t[n % t.length]
|
|
3077
3120
|
};
|
|
3078
3121
|
});
|
|
3079
|
-
return /* @__PURE__ */
|
|
3122
|
+
return /* @__PURE__ */ k("svg", {
|
|
3080
3123
|
viewBox: "0 0 200 160",
|
|
3081
3124
|
className: Y.gaugeSvg,
|
|
3082
3125
|
children: [
|
|
3083
|
-
l.map((e, t) => /* @__PURE__ */
|
|
3126
|
+
l.map((e, t) => /* @__PURE__ */ O(At, {
|
|
3084
3127
|
cx: 100,
|
|
3085
3128
|
cy: 100,
|
|
3086
3129
|
innerRadius: 64,
|
|
@@ -3090,7 +3133,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3090
3133
|
fill: e.fill,
|
|
3091
3134
|
cornerRadius: 4
|
|
3092
3135
|
}, t)),
|
|
3093
|
-
c > -29.5 && /* @__PURE__ */
|
|
3136
|
+
c > -29.5 && /* @__PURE__ */ O(At, {
|
|
3094
3137
|
cx: 100,
|
|
3095
3138
|
cy: 100,
|
|
3096
3139
|
innerRadius: 64,
|
|
@@ -3100,17 +3143,17 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3100
3143
|
fill: n,
|
|
3101
3144
|
cornerRadius: 4
|
|
3102
3145
|
}),
|
|
3103
|
-
(r || i) && /* @__PURE__ */
|
|
3146
|
+
(r || i) && /* @__PURE__ */ k("g", {
|
|
3104
3147
|
textAnchor: "middle",
|
|
3105
3148
|
fontFamily: "var(--font-sans)",
|
|
3106
|
-
children: [r && /* @__PURE__ */
|
|
3149
|
+
children: [r && /* @__PURE__ */ O("text", {
|
|
3107
3150
|
x: 100,
|
|
3108
3151
|
y: 92,
|
|
3109
3152
|
fontSize: 22,
|
|
3110
3153
|
fontWeight: 500,
|
|
3111
3154
|
fill: a,
|
|
3112
3155
|
children: r
|
|
3113
|
-
}), i && /* @__PURE__ */
|
|
3156
|
+
}), i && /* @__PURE__ */ O("text", {
|
|
3114
3157
|
x: 100,
|
|
3115
3158
|
y: 112,
|
|
3116
3159
|
fontSize: 12,
|
|
@@ -3121,20 +3164,20 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3121
3164
|
]
|
|
3122
3165
|
});
|
|
3123
3166
|
}, Jr = ({ data: e, variant: t = "multi", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
3124
|
-
let o =
|
|
3167
|
+
let o = D.useRef(null), s = P(o), c = [
|
|
3125
3168
|
1,
|
|
3126
3169
|
2,
|
|
3127
3170
|
3,
|
|
3128
3171
|
4,
|
|
3129
3172
|
5
|
|
3130
|
-
].map((e) => s(`--color-chart-${e}`) ??
|
|
3173
|
+
].map((e) => s(`--color-chart-${e}`) ?? Yt[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
3174
|
if (t === "gauge-tick") {
|
|
3132
3175
|
let t = e[0];
|
|
3133
|
-
return /* @__PURE__ */
|
|
3176
|
+
return /* @__PURE__ */ O("div", {
|
|
3134
3177
|
ref: o,
|
|
3135
3178
|
className: [Y.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3136
3179
|
style: { height: p },
|
|
3137
|
-
children: /* @__PURE__ */
|
|
3180
|
+
children: /* @__PURE__ */ O(Gr, {
|
|
3138
3181
|
value: t?.value ?? 0,
|
|
3139
3182
|
max: t?.max ?? 100,
|
|
3140
3183
|
color: c[0],
|
|
@@ -3146,11 +3189,11 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3146
3189
|
})
|
|
3147
3190
|
});
|
|
3148
3191
|
}
|
|
3149
|
-
if (t === "shape" || t === "stacked" || t === "stacked-3-layers") return /* @__PURE__ */
|
|
3192
|
+
if (t === "shape" || t === "stacked" || t === "stacked-3-layers") return /* @__PURE__ */ O("div", {
|
|
3150
3193
|
ref: o,
|
|
3151
3194
|
className: [Y.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3152
3195
|
style: { height: p },
|
|
3153
|
-
children: /* @__PURE__ */
|
|
3196
|
+
children: /* @__PURE__ */ O(qr, {
|
|
3154
3197
|
data: e,
|
|
3155
3198
|
palette: c,
|
|
3156
3199
|
track: l,
|
|
@@ -3161,46 +3204,46 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3161
3204
|
})
|
|
3162
3205
|
});
|
|
3163
3206
|
let [m, h] = Wr[t] ?? ["30%", "100%"], g = (t === "stacked-label" || t === "text") && (r || i);
|
|
3164
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ k("div", {
|
|
3165
3208
|
ref: o,
|
|
3166
3209
|
className: [Y.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3167
3210
|
style: { height: p },
|
|
3168
3211
|
children: [
|
|
3169
|
-
t === "grid" && /* @__PURE__ */
|
|
3212
|
+
t === "grid" && /* @__PURE__ */ O(Kr, {
|
|
3170
3213
|
rings: 8,
|
|
3171
3214
|
spokes: 12,
|
|
3172
3215
|
color: u
|
|
3173
3216
|
}),
|
|
3174
|
-
/* @__PURE__ */
|
|
3217
|
+
/* @__PURE__ */ O(j, {
|
|
3175
3218
|
width: "100%",
|
|
3176
3219
|
height: "100%",
|
|
3177
|
-
children: /* @__PURE__ */
|
|
3220
|
+
children: /* @__PURE__ */ k(Ot, {
|
|
3178
3221
|
data: e,
|
|
3179
3222
|
innerRadius: m,
|
|
3180
3223
|
outerRadius: h,
|
|
3181
3224
|
startAngle: 90,
|
|
3182
3225
|
endAngle: -270,
|
|
3183
3226
|
barCategoryGap: "12%",
|
|
3184
|
-
children: [/* @__PURE__ */
|
|
3227
|
+
children: [/* @__PURE__ */ O(St, {
|
|
3185
3228
|
type: "number",
|
|
3186
3229
|
domain: [0, e[0]?.max ?? 100],
|
|
3187
3230
|
tick: !1,
|
|
3188
3231
|
axisLine: !1
|
|
3189
|
-
}), /* @__PURE__ */
|
|
3232
|
+
}), /* @__PURE__ */ O(Dt, {
|
|
3190
3233
|
dataKey: "value",
|
|
3191
3234
|
background: t !== "grid" && { fill: l },
|
|
3192
3235
|
cornerRadius: 8,
|
|
3193
3236
|
isAnimationActive: !1,
|
|
3194
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
3237
|
+
children: e.map((e, t) => /* @__PURE__ */ O(A, { fill: c[t % c.length] }, t))
|
|
3195
3238
|
})]
|
|
3196
3239
|
})
|
|
3197
3240
|
}),
|
|
3198
|
-
g && /* @__PURE__ */
|
|
3241
|
+
g && /* @__PURE__ */ k("div", {
|
|
3199
3242
|
className: Y.center,
|
|
3200
|
-
children: [r && /* @__PURE__ */
|
|
3243
|
+
children: [r && /* @__PURE__ */ O("span", {
|
|
3201
3244
|
className: Y.center__value,
|
|
3202
3245
|
children: r
|
|
3203
|
-
}), i && /* @__PURE__ */
|
|
3246
|
+
}), i && /* @__PURE__ */ O("span", {
|
|
3204
3247
|
className: Y.center__caption,
|
|
3205
3248
|
children: i
|
|
3206
3249
|
})]
|
|
@@ -3217,9 +3260,9 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3217
3260
|
text__label: "_text__label_5ueza_80",
|
|
3218
3261
|
text__description: "_text__description_5ueza_81",
|
|
3219
3262
|
"wrapper--withDescription": "_wrapper--withDescription_5ueza_85"
|
|
3220
|
-
}, Yr =
|
|
3221
|
-
let s =
|
|
3222
|
-
return /* @__PURE__ */
|
|
3263
|
+
}, Yr = D.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, ...a }, o) => {
|
|
3264
|
+
let s = D.useId(), c = r ?? s;
|
|
3265
|
+
return /* @__PURE__ */ k("label", {
|
|
3223
3266
|
htmlFor: c,
|
|
3224
3267
|
className: [
|
|
3225
3268
|
X.wrapper,
|
|
@@ -3228,7 +3271,7 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3228
3271
|
i ?? ""
|
|
3229
3272
|
].filter(Boolean).join(" "),
|
|
3230
3273
|
children: [
|
|
3231
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ O("input", {
|
|
3232
3275
|
ref: o,
|
|
3233
3276
|
id: c,
|
|
3234
3277
|
type: "radio",
|
|
@@ -3236,17 +3279,17 @@ var dr = { chart: "_chart_18fgd_2" }, fr = {
|
|
|
3236
3279
|
className: X.input,
|
|
3237
3280
|
...a
|
|
3238
3281
|
}),
|
|
3239
|
-
/* @__PURE__ */
|
|
3282
|
+
/* @__PURE__ */ O("span", {
|
|
3240
3283
|
className: X.circle,
|
|
3241
3284
|
"aria-hidden": "true",
|
|
3242
|
-
children: /* @__PURE__ */
|
|
3285
|
+
children: /* @__PURE__ */ O("span", { className: X.dot })
|
|
3243
3286
|
}),
|
|
3244
|
-
(e || t) && /* @__PURE__ */
|
|
3287
|
+
(e || t) && /* @__PURE__ */ k("span", {
|
|
3245
3288
|
className: X.text,
|
|
3246
|
-
children: [e && /* @__PURE__ */
|
|
3289
|
+
children: [e && /* @__PURE__ */ O("span", {
|
|
3247
3290
|
className: X.text__label,
|
|
3248
3291
|
children: e
|
|
3249
|
-
}), t && /* @__PURE__ */
|
|
3292
|
+
}), t && /* @__PURE__ */ O("span", {
|
|
3250
3293
|
className: X.text__description,
|
|
3251
3294
|
children: t
|
|
3252
3295
|
})]
|
|
@@ -3264,48 +3307,48 @@ var Z = {
|
|
|
3264
3307
|
footer__menu: "_footer__menu_sh6kz_17",
|
|
3265
3308
|
footer__action: "_footer__action_sh6kz_24"
|
|
3266
3309
|
}, Xr = ({ type: e = "user", title: t, subtitle: n, avatarSrc: r, avatarInitials: i, collapsed: a, onMenu: o, onSignOut: s }) => {
|
|
3267
|
-
let c = /* @__PURE__ */
|
|
3310
|
+
let c = /* @__PURE__ */ O(oe, {
|
|
3268
3311
|
size: "sm",
|
|
3269
3312
|
src: r,
|
|
3270
3313
|
initials: i,
|
|
3271
3314
|
alt: t ?? "User"
|
|
3272
3315
|
});
|
|
3273
|
-
return a ? /* @__PURE__ */
|
|
3316
|
+
return a ? /* @__PURE__ */ O("div", {
|
|
3274
3317
|
className: [Z.footer, Z["footer--collapsed"]].join(" "),
|
|
3275
3318
|
children: c
|
|
3276
|
-
}) : e === "actions" ? /* @__PURE__ */
|
|
3319
|
+
}) : e === "actions" ? /* @__PURE__ */ O("div", {
|
|
3277
3320
|
className: Z.footer,
|
|
3278
|
-
children: /* @__PURE__ */
|
|
3321
|
+
children: /* @__PURE__ */ k("button", {
|
|
3279
3322
|
type: "button",
|
|
3280
3323
|
className: Z.footer__action,
|
|
3281
3324
|
onClick: s,
|
|
3282
|
-
children: [/* @__PURE__ */
|
|
3325
|
+
children: [/* @__PURE__ */ O(Ze, {
|
|
3283
3326
|
size: 16,
|
|
3284
|
-
strokeWidth:
|
|
3327
|
+
strokeWidth: E(16)
|
|
3285
3328
|
}), " Sign out"]
|
|
3286
3329
|
})
|
|
3287
|
-
}) : /* @__PURE__ */
|
|
3330
|
+
}) : /* @__PURE__ */ k("div", {
|
|
3288
3331
|
className: Z.footer,
|
|
3289
3332
|
children: [
|
|
3290
3333
|
c,
|
|
3291
|
-
/* @__PURE__ */
|
|
3334
|
+
/* @__PURE__ */ k("span", {
|
|
3292
3335
|
className: Z.footer__text,
|
|
3293
|
-
children: [t && /* @__PURE__ */
|
|
3336
|
+
children: [t && /* @__PURE__ */ O("span", {
|
|
3294
3337
|
className: Z.footer__title,
|
|
3295
3338
|
children: t
|
|
3296
|
-
}), n && /* @__PURE__ */
|
|
3339
|
+
}), n && /* @__PURE__ */ O("span", {
|
|
3297
3340
|
className: Z.footer__subtitle,
|
|
3298
3341
|
children: n
|
|
3299
3342
|
})]
|
|
3300
3343
|
}),
|
|
3301
|
-
e === "user-menu" && /* @__PURE__ */
|
|
3344
|
+
e === "user-menu" && /* @__PURE__ */ O("button", {
|
|
3302
3345
|
type: "button",
|
|
3303
3346
|
className: Z.footer__menu,
|
|
3304
3347
|
onClick: o,
|
|
3305
3348
|
"aria-label": "Open menu",
|
|
3306
|
-
children: /* @__PURE__ */
|
|
3349
|
+
children: /* @__PURE__ */ O(Je, {
|
|
3307
3350
|
size: 16,
|
|
3308
|
-
strokeWidth:
|
|
3351
|
+
strokeWidth: E(16)
|
|
3309
3352
|
})
|
|
3310
3353
|
})
|
|
3311
3354
|
]
|
|
@@ -3318,41 +3361,41 @@ var Z = {
|
|
|
3318
3361
|
promo__dismiss: "_promo__dismiss_1dicm_18",
|
|
3319
3362
|
promo__desc: "_promo__desc_1dicm_25",
|
|
3320
3363
|
promo__cta: "_promo__cta_1dicm_28"
|
|
3321
|
-
}, Qr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: i, onDismiss: a, icon: o =
|
|
3364
|
+
}, Qr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: i, onDismiss: a, icon: o = ot }) => /* @__PURE__ */ k("div", {
|
|
3322
3365
|
className: [Zr.promo, Zr[`promo--${e}`]].join(" "),
|
|
3323
3366
|
children: [
|
|
3324
|
-
/* @__PURE__ */
|
|
3367
|
+
/* @__PURE__ */ k("div", {
|
|
3325
3368
|
className: Zr.promo__head,
|
|
3326
3369
|
children: [
|
|
3327
|
-
/* @__PURE__ */
|
|
3370
|
+
/* @__PURE__ */ O("span", {
|
|
3328
3371
|
className: Zr.promo__icon,
|
|
3329
3372
|
"aria-hidden": "true",
|
|
3330
|
-
children: /* @__PURE__ */
|
|
3373
|
+
children: /* @__PURE__ */ O(o, {
|
|
3331
3374
|
size: 16,
|
|
3332
|
-
strokeWidth:
|
|
3375
|
+
strokeWidth: E(16)
|
|
3333
3376
|
})
|
|
3334
3377
|
}),
|
|
3335
|
-
/* @__PURE__ */
|
|
3378
|
+
/* @__PURE__ */ O("span", {
|
|
3336
3379
|
className: Zr.promo__title,
|
|
3337
3380
|
children: t
|
|
3338
3381
|
}),
|
|
3339
|
-
a && /* @__PURE__ */
|
|
3382
|
+
a && /* @__PURE__ */ O("button", {
|
|
3340
3383
|
type: "button",
|
|
3341
3384
|
className: Zr.promo__dismiss,
|
|
3342
3385
|
onClick: a,
|
|
3343
3386
|
"aria-label": "Dismiss",
|
|
3344
|
-
children: /* @__PURE__ */
|
|
3387
|
+
children: /* @__PURE__ */ O(dt, {
|
|
3345
3388
|
size: 14,
|
|
3346
|
-
strokeWidth:
|
|
3389
|
+
strokeWidth: E(14)
|
|
3347
3390
|
})
|
|
3348
3391
|
})
|
|
3349
3392
|
]
|
|
3350
3393
|
}),
|
|
3351
|
-
n && /* @__PURE__ */
|
|
3394
|
+
n && /* @__PURE__ */ O("p", {
|
|
3352
3395
|
className: Zr.promo__desc,
|
|
3353
3396
|
children: n
|
|
3354
3397
|
}),
|
|
3355
|
-
r && /* @__PURE__ */
|
|
3398
|
+
r && /* @__PURE__ */ O("button", {
|
|
3356
3399
|
type: "button",
|
|
3357
3400
|
className: Zr.promo__cta,
|
|
3358
3401
|
onClick: i,
|
|
@@ -3366,41 +3409,41 @@ var Z = {
|
|
|
3366
3409
|
search__placeholder: "_search__placeholder_cvwic_31",
|
|
3367
3410
|
search__kbd: "_search__kbd_cvwic_32",
|
|
3368
3411
|
collapsed: "_collapsed_cvwic_42"
|
|
3369
|
-
}, ei = ({ type: e = "field", placeholder: t = "Search…", collapsed: n, value: r, onChange: i, onClick: a }) => n ? /* @__PURE__ */
|
|
3412
|
+
}, ei = ({ type: e = "field", placeholder: t = "Search…", collapsed: n, value: r, onChange: i, onClick: a }) => n ? /* @__PURE__ */ O("button", {
|
|
3370
3413
|
type: "button",
|
|
3371
3414
|
className: $r.collapsed,
|
|
3372
3415
|
onClick: a,
|
|
3373
3416
|
"aria-label": "Search",
|
|
3374
|
-
children: /* @__PURE__ */
|
|
3417
|
+
children: /* @__PURE__ */ O(at, {
|
|
3375
3418
|
size: 18,
|
|
3376
|
-
strokeWidth:
|
|
3419
|
+
strokeWidth: E(18)
|
|
3377
3420
|
})
|
|
3378
|
-
}) : e === "command" ? /* @__PURE__ */
|
|
3421
|
+
}) : e === "command" ? /* @__PURE__ */ k("button", {
|
|
3379
3422
|
type: "button",
|
|
3380
3423
|
className: $r.search,
|
|
3381
3424
|
onClick: a,
|
|
3382
3425
|
children: [
|
|
3383
|
-
/* @__PURE__ */
|
|
3426
|
+
/* @__PURE__ */ O(at, {
|
|
3384
3427
|
size: 16,
|
|
3385
|
-
strokeWidth:
|
|
3428
|
+
strokeWidth: E(16),
|
|
3386
3429
|
className: $r.search__icon
|
|
3387
3430
|
}),
|
|
3388
|
-
/* @__PURE__ */
|
|
3431
|
+
/* @__PURE__ */ O("span", {
|
|
3389
3432
|
className: $r.search__placeholder,
|
|
3390
3433
|
children: t
|
|
3391
3434
|
}),
|
|
3392
|
-
/* @__PURE__ */
|
|
3435
|
+
/* @__PURE__ */ O("kbd", {
|
|
3393
3436
|
className: $r.search__kbd,
|
|
3394
3437
|
children: "⌘K"
|
|
3395
3438
|
})
|
|
3396
3439
|
]
|
|
3397
|
-
}) : /* @__PURE__ */
|
|
3440
|
+
}) : /* @__PURE__ */ k("div", {
|
|
3398
3441
|
className: $r.search,
|
|
3399
|
-
children: [/* @__PURE__ */
|
|
3442
|
+
children: [/* @__PURE__ */ O(at, {
|
|
3400
3443
|
size: 16,
|
|
3401
|
-
strokeWidth:
|
|
3444
|
+
strokeWidth: E(16),
|
|
3402
3445
|
className: $r.search__icon
|
|
3403
|
-
}), /* @__PURE__ */
|
|
3446
|
+
}), /* @__PURE__ */ O("input", {
|
|
3404
3447
|
className: $r.search__input,
|
|
3405
3448
|
placeholder: t,
|
|
3406
3449
|
value: r,
|
|
@@ -3413,7 +3456,7 @@ var Z = {
|
|
|
3413
3456
|
"spinner--lg": "_spinner--lg_14r00_14",
|
|
3414
3457
|
spinner__svg: "_spinner__svg_14r00_17",
|
|
3415
3458
|
"spinner-rotate": "_spinner-rotate_14r00_1"
|
|
3416
|
-
}, ni = ({ size: e = "md", label: t = "Loading...", className: n }) => /* @__PURE__ */
|
|
3459
|
+
}, ni = ({ size: e = "md", label: t = "Loading...", className: n }) => /* @__PURE__ */ O("span", {
|
|
3417
3460
|
role: "status",
|
|
3418
3461
|
"aria-label": t,
|
|
3419
3462
|
className: [
|
|
@@ -3421,7 +3464,7 @@ var Z = {
|
|
|
3421
3464
|
ti[`spinner--${e}`],
|
|
3422
3465
|
n ?? ""
|
|
3423
3466
|
].filter(Boolean).join(" "),
|
|
3424
|
-
children: /* @__PURE__ */
|
|
3467
|
+
children: /* @__PURE__ */ k("svg", {
|
|
3425
3468
|
viewBox: "0 0 24 24",
|
|
3426
3469
|
fill: "none",
|
|
3427
3470
|
stroke: "currentColor",
|
|
@@ -3429,33 +3472,33 @@ var Z = {
|
|
|
3429
3472
|
strokeLinecap: "round",
|
|
3430
3473
|
"aria-hidden": "true",
|
|
3431
3474
|
className: ti.spinner__svg,
|
|
3432
|
-
children: [/* @__PURE__ */
|
|
3475
|
+
children: [/* @__PURE__ */ O("circle", {
|
|
3433
3476
|
cx: 12,
|
|
3434
3477
|
cy: 12,
|
|
3435
3478
|
r: 9,
|
|
3436
3479
|
opacity: .2
|
|
3437
|
-
}), /* @__PURE__ */
|
|
3480
|
+
}), /* @__PURE__ */ O("path", {
|
|
3438
3481
|
d: "M12 3a9 9 0 0 1 9 9",
|
|
3439
3482
|
className: ti.spinner__arc
|
|
3440
3483
|
})]
|
|
3441
3484
|
})
|
|
3442
3485
|
}), Q = {
|
|
3443
|
-
card: "
|
|
3444
|
-
"card--featured": "_card--
|
|
3445
|
-
card__head: "
|
|
3446
|
-
card__icon: "
|
|
3447
|
-
card__title: "
|
|
3448
|
-
card__menu: "
|
|
3449
|
-
card__value: "
|
|
3450
|
-
card__meta: "
|
|
3451
|
-
card__sparkline: "
|
|
3452
|
-
"card--trend-up": "_card--trend-
|
|
3453
|
-
"card--trend-down": "_card--trend-
|
|
3454
|
-
card__description: "
|
|
3486
|
+
card: "_card_u5kvg_4",
|
|
3487
|
+
"card--featured": "_card--featured_u5kvg_24",
|
|
3488
|
+
card__head: "_card__head_u5kvg_26",
|
|
3489
|
+
card__icon: "_card__icon_u5kvg_27",
|
|
3490
|
+
card__title: "_card__title_u5kvg_41",
|
|
3491
|
+
card__menu: "_card__menu_u5kvg_42",
|
|
3492
|
+
card__value: "_card__value_u5kvg_50",
|
|
3493
|
+
card__meta: "_card__meta_u5kvg_59",
|
|
3494
|
+
card__sparkline: "_card__sparkline_u5kvg_66",
|
|
3495
|
+
"card--trend-up": "_card--trend-up_u5kvg_68",
|
|
3496
|
+
"card--trend-down": "_card--trend-down_u5kvg_69",
|
|
3497
|
+
card__description: "_card__description_u5kvg_72"
|
|
3455
3498
|
}, ri = {
|
|
3456
|
-
up:
|
|
3457
|
-
down:
|
|
3458
|
-
flat:
|
|
3499
|
+
up: ct,
|
|
3500
|
+
down: st,
|
|
3501
|
+
flat: $e
|
|
3459
3502
|
}, ii = {
|
|
3460
3503
|
up: "success",
|
|
3461
3504
|
down: "danger",
|
|
@@ -3463,12 +3506,12 @@ var Z = {
|
|
|
3463
3506
|
}, ai = ({ data: e }) => {
|
|
3464
3507
|
if (e.length < 2) return null;
|
|
3465
3508
|
let t = Math.min(...e), n = Math.max(...e) - t || 1;
|
|
3466
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ O("svg", {
|
|
3467
3510
|
className: oi,
|
|
3468
3511
|
viewBox: "0 0 100 32",
|
|
3469
3512
|
preserveAspectRatio: "none",
|
|
3470
3513
|
"aria-hidden": "true",
|
|
3471
|
-
children: /* @__PURE__ */
|
|
3514
|
+
children: /* @__PURE__ */ O("polyline", {
|
|
3472
3515
|
points: e.map((r, i) => `${i / (e.length - 1) * 100},${30 - (r - t) / n * 26}`).join(" "),
|
|
3473
3516
|
fill: "none",
|
|
3474
3517
|
strokeWidth: 2,
|
|
@@ -3479,7 +3522,7 @@ var Z = {
|
|
|
3479
3522
|
});
|
|
3480
3523
|
}, 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
3524
|
let p = ri[a], m = (s === "icon" || s === "featured") && c;
|
|
3482
|
-
return /* @__PURE__ */
|
|
3525
|
+
return /* @__PURE__ */ k("div", {
|
|
3483
3526
|
className: [
|
|
3484
3527
|
Q.card,
|
|
3485
3528
|
Q[`card--${s}`],
|
|
@@ -3487,48 +3530,48 @@ var Z = {
|
|
|
3487
3530
|
f ?? ""
|
|
3488
3531
|
].filter(Boolean).join(" "),
|
|
3489
3532
|
children: [
|
|
3490
|
-
/* @__PURE__ */
|
|
3533
|
+
/* @__PURE__ */ k("div", {
|
|
3491
3534
|
className: Q.card__head,
|
|
3492
3535
|
children: [
|
|
3493
|
-
m && /* @__PURE__ */
|
|
3536
|
+
m && /* @__PURE__ */ O("span", {
|
|
3494
3537
|
className: Q.card__icon,
|
|
3495
3538
|
"aria-hidden": "true",
|
|
3496
|
-
children: /* @__PURE__ */
|
|
3539
|
+
children: /* @__PURE__ */ O(c, {
|
|
3497
3540
|
size: 18,
|
|
3498
|
-
strokeWidth:
|
|
3541
|
+
strokeWidth: E(18)
|
|
3499
3542
|
})
|
|
3500
3543
|
}),
|
|
3501
|
-
/* @__PURE__ */
|
|
3544
|
+
/* @__PURE__ */ O("span", {
|
|
3502
3545
|
className: Q.card__title,
|
|
3503
3546
|
children: e
|
|
3504
3547
|
}),
|
|
3505
|
-
l && /* @__PURE__ */
|
|
3548
|
+
l && /* @__PURE__ */ O("button", {
|
|
3506
3549
|
type: "button",
|
|
3507
3550
|
className: Q.card__menu,
|
|
3508
3551
|
onClick: d,
|
|
3509
3552
|
"aria-label": "More options",
|
|
3510
|
-
children: /* @__PURE__ */
|
|
3553
|
+
children: /* @__PURE__ */ O(et, {
|
|
3511
3554
|
size: 16,
|
|
3512
|
-
strokeWidth:
|
|
3555
|
+
strokeWidth: E(16)
|
|
3513
3556
|
})
|
|
3514
3557
|
})
|
|
3515
3558
|
]
|
|
3516
3559
|
}),
|
|
3517
|
-
/* @__PURE__ */
|
|
3560
|
+
/* @__PURE__ */ O("div", {
|
|
3518
3561
|
className: Q.card__value,
|
|
3519
3562
|
children: t
|
|
3520
3563
|
}),
|
|
3521
|
-
r && /* @__PURE__ */
|
|
3522
|
-
(i || n) && /* @__PURE__ */
|
|
3564
|
+
r && /* @__PURE__ */ O(ai, { data: r }),
|
|
3565
|
+
(i || n) && /* @__PURE__ */ k("div", {
|
|
3523
3566
|
className: Q.card__meta,
|
|
3524
|
-
children: [i && /* @__PURE__ */
|
|
3567
|
+
children: [i && /* @__PURE__ */ O(u, {
|
|
3525
3568
|
variant: o ?? ii[a],
|
|
3526
|
-
leftIcon: /* @__PURE__ */
|
|
3569
|
+
leftIcon: /* @__PURE__ */ O(p, {
|
|
3527
3570
|
size: 12,
|
|
3528
3571
|
strokeWidth: 2
|
|
3529
3572
|
}),
|
|
3530
3573
|
children: i
|
|
3531
|
-
}), n && /* @__PURE__ */
|
|
3574
|
+
}), n && /* @__PURE__ */ O("p", {
|
|
3532
3575
|
className: Q.card__description,
|
|
3533
3576
|
children: n
|
|
3534
3577
|
})]
|
|
@@ -3556,47 +3599,47 @@ var Z = {
|
|
|
3556
3599
|
"connector--horizontal": "_connector--horizontal_kxw14_47",
|
|
3557
3600
|
"connector--vertical": "_connector--vertical_kxw14_48",
|
|
3558
3601
|
"connector--filled": "_connector--filled_kxw14_49"
|
|
3559
|
-
}, ci = ({ index: e, state: t, label: n, description: r, orientation: i = "horizontal" }) => /* @__PURE__ */
|
|
3602
|
+
}, ci = ({ index: e, state: t, label: n, description: r, orientation: i = "horizontal" }) => /* @__PURE__ */ k("div", {
|
|
3560
3603
|
className: [$.step, $[`step--${i}`]].join(" "),
|
|
3561
|
-
children: [/* @__PURE__ */
|
|
3604
|
+
children: [/* @__PURE__ */ O("span", {
|
|
3562
3605
|
className: [$.circle, $[`circle--${t}`]].join(" "),
|
|
3563
3606
|
"aria-hidden": "true",
|
|
3564
|
-
children: t === "completed" ? /* @__PURE__ */
|
|
3607
|
+
children: t === "completed" ? /* @__PURE__ */ O(Ue, {
|
|
3565
3608
|
size: 14,
|
|
3566
|
-
strokeWidth:
|
|
3567
|
-
}) : /* @__PURE__ */
|
|
3609
|
+
strokeWidth: E(14)
|
|
3610
|
+
}) : /* @__PURE__ */ O("span", {
|
|
3568
3611
|
className: $.circle__num,
|
|
3569
3612
|
children: e + 1
|
|
3570
3613
|
})
|
|
3571
|
-
}), /* @__PURE__ */
|
|
3614
|
+
}), /* @__PURE__ */ k("span", {
|
|
3572
3615
|
className: $.step__text,
|
|
3573
|
-
children: [/* @__PURE__ */
|
|
3616
|
+
children: [/* @__PURE__ */ O("span", {
|
|
3574
3617
|
className: [
|
|
3575
3618
|
$.step__label,
|
|
3576
3619
|
t === "current" ? $["step__label--current"] : "",
|
|
3577
3620
|
t === "upcoming" ? $["step__label--upcoming"] : ""
|
|
3578
3621
|
].filter(Boolean).join(" "),
|
|
3579
3622
|
children: n
|
|
3580
|
-
}), r && /* @__PURE__ */
|
|
3623
|
+
}), r && /* @__PURE__ */ O("span", {
|
|
3581
3624
|
className: $.step__desc,
|
|
3582
3625
|
children: r
|
|
3583
3626
|
})]
|
|
3584
3627
|
})]
|
|
3585
3628
|
}), li = ({ steps: e, current: t, orientation: n = "horizontal", className: r }) => {
|
|
3586
3629
|
let i = (e) => e < t ? "completed" : e === t ? "current" : "upcoming";
|
|
3587
|
-
return /* @__PURE__ */
|
|
3630
|
+
return /* @__PURE__ */ O("div", {
|
|
3588
3631
|
className: [
|
|
3589
3632
|
$.stepper,
|
|
3590
3633
|
$[`stepper--${n}`],
|
|
3591
3634
|
r ?? ""
|
|
3592
3635
|
].filter(Boolean).join(" "),
|
|
3593
|
-
children: e.map((r, a) => /* @__PURE__ */
|
|
3636
|
+
children: e.map((r, a) => /* @__PURE__ */ k(D.Fragment, { children: [/* @__PURE__ */ O(ci, {
|
|
3594
3637
|
index: a,
|
|
3595
3638
|
state: i(a),
|
|
3596
3639
|
label: r.label,
|
|
3597
3640
|
description: r.description,
|
|
3598
3641
|
orientation: n
|
|
3599
|
-
}), a < e.length - 1 && /* @__PURE__ */
|
|
3642
|
+
}), a < e.length - 1 && /* @__PURE__ */ O("span", {
|
|
3600
3643
|
className: [
|
|
3601
3644
|
$.connector,
|
|
3602
3645
|
$[`connector--${n}`],
|
|
@@ -3612,9 +3655,9 @@ var Z = {
|
|
|
3612
3655
|
track: "_track_bkgd3_15",
|
|
3613
3656
|
thumb: "_thumb_bkgd3_28",
|
|
3614
3657
|
label: "_label_bkgd3_45"
|
|
3615
|
-
}, di =
|
|
3616
|
-
let o =
|
|
3617
|
-
return /* @__PURE__ */
|
|
3658
|
+
}, di = D.forwardRef(({ label: e, disabled: t, id: n, className: r, ...i }, a) => {
|
|
3659
|
+
let o = D.useId(), s = n ?? o;
|
|
3660
|
+
return /* @__PURE__ */ k("label", {
|
|
3618
3661
|
htmlFor: s,
|
|
3619
3662
|
className: [
|
|
3620
3663
|
ui.wrapper,
|
|
@@ -3622,7 +3665,7 @@ var Z = {
|
|
|
3622
3665
|
r ?? ""
|
|
3623
3666
|
].filter(Boolean).join(" "),
|
|
3624
3667
|
children: [
|
|
3625
|
-
/* @__PURE__ */
|
|
3668
|
+
/* @__PURE__ */ O("input", {
|
|
3626
3669
|
ref: a,
|
|
3627
3670
|
id: s,
|
|
3628
3671
|
type: "checkbox",
|
|
@@ -3631,12 +3674,12 @@ var Z = {
|
|
|
3631
3674
|
className: ui.input,
|
|
3632
3675
|
...i
|
|
3633
3676
|
}),
|
|
3634
|
-
/* @__PURE__ */
|
|
3677
|
+
/* @__PURE__ */ O("span", {
|
|
3635
3678
|
className: ui.track,
|
|
3636
3679
|
"aria-hidden": "true",
|
|
3637
|
-
children: /* @__PURE__ */
|
|
3680
|
+
children: /* @__PURE__ */ O("span", { className: ui.thumb })
|
|
3638
3681
|
}),
|
|
3639
|
-
e && /* @__PURE__ */
|
|
3682
|
+
e && /* @__PURE__ */ O("span", {
|
|
3640
3683
|
className: ui.label,
|
|
3641
3684
|
children: e
|
|
3642
3685
|
})
|
|
@@ -3652,17 +3695,17 @@ var fi = {
|
|
|
3652
3695
|
textarea: "_textarea_644oy_12",
|
|
3653
3696
|
"textarea--error": "_textarea--error_644oy_37",
|
|
3654
3697
|
"textarea--disabled": "_textarea--disabled_644oy_43"
|
|
3655
|
-
}, pi =
|
|
3656
|
-
let l =
|
|
3657
|
-
return /* @__PURE__ */
|
|
3698
|
+
}, pi = D.forwardRef(({ label: e, description: t, error: n, disabled: r, id: i, className: a, rows: o = 4, ...s }, c) => {
|
|
3699
|
+
let l = D.useId(), u = i ?? l, d = !!n;
|
|
3700
|
+
return /* @__PURE__ */ k("div", {
|
|
3658
3701
|
className: [fi.field, a ?? ""].filter(Boolean).join(" "),
|
|
3659
3702
|
children: [
|
|
3660
|
-
e && /* @__PURE__ */
|
|
3703
|
+
e && /* @__PURE__ */ O("label", {
|
|
3661
3704
|
htmlFor: u,
|
|
3662
3705
|
className: fi.field__label,
|
|
3663
3706
|
children: e
|
|
3664
3707
|
}),
|
|
3665
|
-
/* @__PURE__ */
|
|
3708
|
+
/* @__PURE__ */ O("textarea", {
|
|
3666
3709
|
ref: c,
|
|
3667
3710
|
id: u,
|
|
3668
3711
|
rows: o,
|
|
@@ -3675,7 +3718,7 @@ var fi = {
|
|
|
3675
3718
|
].filter(Boolean).join(" "),
|
|
3676
3719
|
...s
|
|
3677
3720
|
}),
|
|
3678
|
-
(t || n) && /* @__PURE__ */
|
|
3721
|
+
(t || n) && /* @__PURE__ */ O("span", {
|
|
3679
3722
|
className: d ? fi.field__error : fi.field__description,
|
|
3680
3723
|
children: n || t
|
|
3681
3724
|
})
|
|
@@ -3694,46 +3737,46 @@ var mi = {
|
|
|
3694
3737
|
toast__description: "_toast__description_8yqwj_24",
|
|
3695
3738
|
toast__dismiss: "_toast__dismiss_8yqwj_26"
|
|
3696
3739
|
}, hi = {
|
|
3697
|
-
success: /* @__PURE__ */
|
|
3698
|
-
error: /* @__PURE__ */
|
|
3699
|
-
/* @__PURE__ */
|
|
3740
|
+
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" })] }),
|
|
3741
|
+
error: /* @__PURE__ */ k(Be, { children: [
|
|
3742
|
+
/* @__PURE__ */ O("circle", {
|
|
3700
3743
|
cx: "12",
|
|
3701
3744
|
cy: "12",
|
|
3702
3745
|
r: "10"
|
|
3703
3746
|
}),
|
|
3704
|
-
/* @__PURE__ */
|
|
3747
|
+
/* @__PURE__ */ O("line", {
|
|
3705
3748
|
x1: "15",
|
|
3706
3749
|
y1: "9",
|
|
3707
3750
|
x2: "9",
|
|
3708
3751
|
y2: "15"
|
|
3709
3752
|
}),
|
|
3710
|
-
/* @__PURE__ */
|
|
3753
|
+
/* @__PURE__ */ O("line", {
|
|
3711
3754
|
x1: "9",
|
|
3712
3755
|
y1: "9",
|
|
3713
3756
|
x2: "15",
|
|
3714
3757
|
y2: "15"
|
|
3715
3758
|
})
|
|
3716
3759
|
] }),
|
|
3717
|
-
info: /* @__PURE__ */
|
|
3718
|
-
/* @__PURE__ */
|
|
3760
|
+
info: /* @__PURE__ */ k(Be, { children: [
|
|
3761
|
+
/* @__PURE__ */ O("circle", {
|
|
3719
3762
|
cx: "12",
|
|
3720
3763
|
cy: "12",
|
|
3721
3764
|
r: "10"
|
|
3722
3765
|
}),
|
|
3723
|
-
/* @__PURE__ */
|
|
3766
|
+
/* @__PURE__ */ O("line", {
|
|
3724
3767
|
x1: "12",
|
|
3725
3768
|
y1: "16",
|
|
3726
3769
|
x2: "12",
|
|
3727
3770
|
y2: "12"
|
|
3728
3771
|
}),
|
|
3729
|
-
/* @__PURE__ */
|
|
3772
|
+
/* @__PURE__ */ O("line", {
|
|
3730
3773
|
x1: "12",
|
|
3731
3774
|
y1: "8",
|
|
3732
3775
|
x2: "12.01",
|
|
3733
3776
|
y2: "8"
|
|
3734
3777
|
})
|
|
3735
3778
|
] })
|
|
3736
|
-
}, gi = ({ status: e = "info", title: t, description: n, onDismiss: r, className: i }) => /* @__PURE__ */
|
|
3779
|
+
}, gi = ({ status: e = "info", title: t, description: n, onDismiss: r, className: i }) => /* @__PURE__ */ k("div", {
|
|
3737
3780
|
role: e === "error" ? "alert" : "status",
|
|
3738
3781
|
"aria-live": e === "error" ? "assertive" : "polite",
|
|
3739
3782
|
className: [
|
|
@@ -3742,14 +3785,14 @@ var mi = {
|
|
|
3742
3785
|
i ?? ""
|
|
3743
3786
|
].filter(Boolean).join(" "),
|
|
3744
3787
|
children: [
|
|
3745
|
-
/* @__PURE__ */
|
|
3788
|
+
/* @__PURE__ */ O("span", {
|
|
3746
3789
|
className: mi.toast__icon,
|
|
3747
3790
|
"aria-hidden": "true",
|
|
3748
|
-
children: /* @__PURE__ */
|
|
3791
|
+
children: /* @__PURE__ */ O("svg", {
|
|
3749
3792
|
viewBox: "0 0 24 24",
|
|
3750
3793
|
fill: "none",
|
|
3751
3794
|
stroke: "currentColor",
|
|
3752
|
-
strokeWidth:
|
|
3795
|
+
strokeWidth: E(18),
|
|
3753
3796
|
strokeLinecap: "round",
|
|
3754
3797
|
strokeLinejoin: "round",
|
|
3755
3798
|
width: 18,
|
|
@@ -3757,36 +3800,36 @@ var mi = {
|
|
|
3757
3800
|
children: hi[e]
|
|
3758
3801
|
})
|
|
3759
3802
|
}),
|
|
3760
|
-
/* @__PURE__ */
|
|
3803
|
+
/* @__PURE__ */ k("div", {
|
|
3761
3804
|
className: mi.toast__content,
|
|
3762
|
-
children: [t && /* @__PURE__ */
|
|
3805
|
+
children: [t && /* @__PURE__ */ O("div", {
|
|
3763
3806
|
className: mi.toast__title,
|
|
3764
3807
|
children: t
|
|
3765
|
-
}), n && /* @__PURE__ */
|
|
3808
|
+
}), n && /* @__PURE__ */ O("div", {
|
|
3766
3809
|
className: mi.toast__description,
|
|
3767
3810
|
children: n
|
|
3768
3811
|
})]
|
|
3769
3812
|
}),
|
|
3770
|
-
r && /* @__PURE__ */
|
|
3813
|
+
r && /* @__PURE__ */ O("button", {
|
|
3771
3814
|
type: "button",
|
|
3772
3815
|
className: mi.toast__dismiss,
|
|
3773
3816
|
onClick: r,
|
|
3774
3817
|
"aria-label": "Dismiss",
|
|
3775
|
-
children: /* @__PURE__ */
|
|
3818
|
+
children: /* @__PURE__ */ k("svg", {
|
|
3776
3819
|
viewBox: "0 0 24 24",
|
|
3777
3820
|
fill: "none",
|
|
3778
3821
|
stroke: "currentColor",
|
|
3779
|
-
strokeWidth:
|
|
3822
|
+
strokeWidth: E(16),
|
|
3780
3823
|
strokeLinecap: "round",
|
|
3781
3824
|
strokeLinejoin: "round",
|
|
3782
3825
|
width: 16,
|
|
3783
3826
|
height: 16,
|
|
3784
|
-
children: [/* @__PURE__ */
|
|
3827
|
+
children: [/* @__PURE__ */ O("line", {
|
|
3785
3828
|
x1: "18",
|
|
3786
3829
|
y1: "6",
|
|
3787
3830
|
x2: "6",
|
|
3788
3831
|
y2: "18"
|
|
3789
|
-
}), /* @__PURE__ */
|
|
3832
|
+
}), /* @__PURE__ */ O("line", {
|
|
3790
3833
|
x1: "6",
|
|
3791
3834
|
y1: "6",
|
|
3792
3835
|
x2: "18",
|
|
@@ -3801,48 +3844,48 @@ var mi = {
|
|
|
3801
3844
|
bar__title: "_bar__title_14cqo_17",
|
|
3802
3845
|
"bar__title--center": "_bar__title--center_14cqo_21",
|
|
3803
3846
|
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__ */
|
|
3847
|
+
}, vi = ({ type: e = "title", title: t, trailing: n, search: r, onMenu: i, onAction: a, onClose: o, className: s }) => /* @__PURE__ */ k("header", {
|
|
3805
3848
|
className: [_i.bar, s ?? ""].filter(Boolean).join(" "),
|
|
3806
3849
|
children: [
|
|
3807
|
-
/* @__PURE__ */
|
|
3850
|
+
/* @__PURE__ */ O("button", {
|
|
3808
3851
|
type: "button",
|
|
3809
3852
|
className: _i.bar__icon,
|
|
3810
3853
|
onClick: i,
|
|
3811
3854
|
"aria-label": "Open menu",
|
|
3812
|
-
children: /* @__PURE__ */
|
|
3855
|
+
children: /* @__PURE__ */ O(Qe, {
|
|
3813
3856
|
size: 18,
|
|
3814
|
-
strokeWidth:
|
|
3857
|
+
strokeWidth: E(18)
|
|
3815
3858
|
})
|
|
3816
3859
|
}),
|
|
3817
|
-
e === "search" ? /* @__PURE__ */
|
|
3860
|
+
e === "search" ? /* @__PURE__ */ O("div", {
|
|
3818
3861
|
className: _i.bar__search,
|
|
3819
3862
|
children: r
|
|
3820
|
-
}) : /* @__PURE__ */
|
|
3863
|
+
}) : /* @__PURE__ */ O("span", {
|
|
3821
3864
|
className: [_i.bar__title, e === "title-centered" ? _i["bar__title--center"] : ""].join(" "),
|
|
3822
3865
|
children: t
|
|
3823
3866
|
}),
|
|
3824
|
-
e === "title-action" && /* @__PURE__ */
|
|
3867
|
+
e === "title-action" && /* @__PURE__ */ O("button", {
|
|
3825
3868
|
type: "button",
|
|
3826
3869
|
className: _i.bar__icon,
|
|
3827
3870
|
onClick: a,
|
|
3828
3871
|
"aria-label": "Add",
|
|
3829
|
-
children: /* @__PURE__ */
|
|
3872
|
+
children: /* @__PURE__ */ O(nt, {
|
|
3830
3873
|
size: 18,
|
|
3831
|
-
strokeWidth:
|
|
3874
|
+
strokeWidth: E(18)
|
|
3832
3875
|
})
|
|
3833
3876
|
}),
|
|
3834
|
-
e === "search" && /* @__PURE__ */
|
|
3877
|
+
e === "search" && /* @__PURE__ */ O("button", {
|
|
3835
3878
|
type: "button",
|
|
3836
3879
|
className: _i.bar__icon,
|
|
3837
3880
|
onClick: o,
|
|
3838
3881
|
"aria-label": "Close search",
|
|
3839
|
-
children: /* @__PURE__ */
|
|
3882
|
+
children: /* @__PURE__ */ O(dt, {
|
|
3840
3883
|
size: 18,
|
|
3841
|
-
strokeWidth:
|
|
3884
|
+
strokeWidth: E(18)
|
|
3842
3885
|
})
|
|
3843
3886
|
}),
|
|
3844
3887
|
(e === "title" || e === "title-centered") && n
|
|
3845
3888
|
]
|
|
3846
3889
|
});
|
|
3847
3890
|
//#endregion
|
|
3848
|
-
export {
|
|
3891
|
+
export { _e as Accordion, Me as AccordionItem, Se as ActivityFeed, Oe as ActivityFeedHighlight, a as Alert, Ft as Announcement, zn as AreaChart, oe as Avatar, me as AvatarGroup, be as AvatarUpload, u as Badge, Ae as Balance, tn as BarChart, fn as BlogBlockquote, mn as BlogFeatureText, gn as BlogImage, g as BlogListingCard, m as BlogListingFeaturedCard, b as BoardCard, Bn as BoardColumn, Pe as Breadcrumb, Ee as Button, Gn as Calendar, qn as Card, r as CardMetaItem, d as CartItem, y as ChatComposer, Fe as Checkbox, S as CheckoutSteps, zt as CodeSnippet, c as ColorSwatch, Jn as Combobox, T as ConversationItem, s as DEFAULT_CHECKOUT_STEPS, e as Divider, Zn as DonutChart, Ie as EmptyState, Ht as Expenses, p as FeaturedIcon, Qn as FileUpload, Ne as FilterChip, vn as FirstPageHeading, rr as FunnelChart, or as HeatmapChart, pe as IconButton, Gt as InlineHint, ne as Input, he as JobListing, cr as Kbd, ur as Label, mr as LineChart, ie as Link, bn as List, gr as ListItem, t as LocationDot, Cn as Marquee, vr as Menu, yr as MenuDivider, xr as MenuItem, ue as MessageBubble, Tn as Metric, En as MobileNavigationMenu, _ as Modal, w as NotificationItem, de as Pagination, kr as PieChart, kn as PlaceholderLogo, Ar as Popover, ee as PriceDisplay, Le as ProductCard, v as ProductGallery, An as ProfileCard, ce as Progress, Kt as ProgressItem, C as ProgressStat, we as QuantitySelector, Br as RadarChart, Jr as RadialChart, Yr as Radio, Jt as RichSeparator, Mn as RichTextHeading, Pn 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, te as SpendingBalance, ni as Spinner, l as StarRating, si as StatCard, li as Stepper, ci as StepperStep, rn as StockMarket, o as StockStatus, In as SubFeature, di as Switch, fe as Table, Te as Tabs, on as Tags, i as TeamCard, pi as Textarea, ln as Ticker, gi as Toast, ye as Tooltip, ke as TopBar, vi as TopBarMobile, dn as Transactions, n as WishlistButton, x as getContrastColor, E as iconStrokeWidth };
|