@sakaniui/react 0.4.1 → 0.4.2
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/README.md +4 -4
- package/dist/{TopBar-CqbWhR1n.js → TopBar-BN2DyH1y.js} +924 -633
- package/dist/TopBar-CepIdyw6.cjs +1 -0
- package/dist/blocks/LiquidDashboardBlock/parts/RailTooltip.d.ts +12 -0
- package/dist/blocks.cjs +2 -2
- package/dist/blocks.mjs +2138 -2021
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +528 -528
- package/dist/style.css +1 -1
- package/dist/tokens.css +24 -30
- package/package.json +1 -1
- package/dist/TopBar-D4DLhfly.cjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, Ct as i, D as a,
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, Ct as i, D as a, Dt as o, E as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as ee, S as te, St as S, T as ne, Tt as re, U as ie, V as ae, W as oe, X as C, Y as se, Z as ce, _ as le, a as ue, at as de, b as fe, bt as pe, c as me, ct as he, d as ge, dt as _e, et as ve, f as ye, ft as be, g as xe, gt as Se, h as Ce, ht as we, i as Te, it as Ee, j as De, k as Oe, kt as w, l as ke, lt as Ae, m as je, mt as Me, n as Ne, nt as Pe, o as Fe, ot as Ie, p as Le, pt as Re, q as ze, r as Be, rt as Ve, s as He, st as Ue, t as We, tt as Ge, u as Ke, ut as qe, v as Je, vt as Ye, w as Xe, wt as Ze, x as Qe, xt as $e, y as et, yt as tt, z as nt } from "./TopBar-BN2DyH1y.js";
|
|
2
2
|
import T from "react";
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { ArrowRight as
|
|
5
|
-
import { Area as
|
|
3
|
+
import { Fragment as rt, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
4
|
+
import { ArrowRight as it, ChartColumn as at, Check as ot, ChevronDown as st, ChevronLeft as ct, ChevronRight as lt, ChevronsUpDown as ut, Copy as dt, File as ft, Info as pt, LogOut as mt, Menu as ht, MoreHorizontal as gt, Play as _t, Plus as vt, Quote as yt, Receipt as bt, Search as xt, Sparkles as St, TrendingDown as Ct, TrendingUp as wt, TriangleAlert as Tt, UploadCloud as Et, X as Dt } from "lucide-react";
|
|
5
|
+
import { Area as Ot, AreaChart as kt, CartesianGrid as At, Cell as jt, Legend as Mt, Pie as Nt, PieChart as Pt, PolarAngleAxis as Ft, PolarGrid as It, PolarRadiusAxis as Lt, Radar as Rt, RadarChart as zt, RadialBar as Bt, RadialBarChart as Vt, ResponsiveContainer as Ht, Sector as Ut, Tooltip as Wt, XAxis as Gt } from "recharts";
|
|
6
6
|
var O = {
|
|
7
7
|
announcement: "_announcement_1ba3c_1",
|
|
8
8
|
"announcement--neutral": "_announcement--neutral_1ba3c_13",
|
|
@@ -12,13 +12,13 @@ var O = {
|
|
|
12
12
|
icon__neutral: "_icon__neutral_1ba3c_32",
|
|
13
13
|
message: "_message_1ba3c_36",
|
|
14
14
|
link: "_link_1ba3c_52"
|
|
15
|
-
},
|
|
16
|
-
let
|
|
15
|
+
}, Kt = ({ message: e, linkLabel: t, linkHref: n, onLinkClick: r, onDismiss: a, variant: o = "neutral", className: s }) => {
|
|
16
|
+
let c = o === "urgent";
|
|
17
17
|
return /* @__PURE__ */ D("div", {
|
|
18
18
|
className: [
|
|
19
19
|
O.announcement,
|
|
20
|
-
O[`announcement--${
|
|
21
|
-
|
|
20
|
+
O[`announcement--${o}`],
|
|
21
|
+
s ?? ""
|
|
22
22
|
].filter(Boolean).join(" "),
|
|
23
23
|
children: [/* @__PURE__ */ D("div", {
|
|
24
24
|
className: O.content,
|
|
@@ -26,14 +26,14 @@ var O = {
|
|
|
26
26
|
/* @__PURE__ */ E("span", {
|
|
27
27
|
className: O.icon,
|
|
28
28
|
"aria-hidden": "true",
|
|
29
|
-
children:
|
|
29
|
+
children: c ? /* @__PURE__ */ E(Tt, {
|
|
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__ */ E(
|
|
36
|
+
}) : /* @__PURE__ */ E(St, {
|
|
37
37
|
size: 24,
|
|
38
38
|
strokeWidth: 1.5,
|
|
39
39
|
fill: "currentColor",
|
|
@@ -45,7 +45,7 @@ var O = {
|
|
|
45
45
|
className: O.message,
|
|
46
46
|
children: e
|
|
47
47
|
}),
|
|
48
|
-
!
|
|
48
|
+
!c && t && /* @__PURE__ */ E(i, {
|
|
49
49
|
href: n,
|
|
50
50
|
onClick: r,
|
|
51
51
|
className: O.link,
|
|
@@ -57,12 +57,12 @@ var O = {
|
|
|
57
57
|
children: t
|
|
58
58
|
})
|
|
59
59
|
]
|
|
60
|
-
}),
|
|
61
|
-
icon:
|
|
60
|
+
}), a && /* @__PURE__ */ E(S, {
|
|
61
|
+
icon: Dt,
|
|
62
62
|
size: "sm",
|
|
63
63
|
variant: "ghost",
|
|
64
64
|
"aria-label": "Dismiss",
|
|
65
|
-
onClick:
|
|
65
|
+
onClick: a
|
|
66
66
|
})]
|
|
67
67
|
});
|
|
68
68
|
}, k = {
|
|
@@ -74,7 +74,7 @@ var O = {
|
|
|
74
74
|
tokenString: "_tokenString_1ao90_43",
|
|
75
75
|
editableBody: "_editableBody_1ao90_50",
|
|
76
76
|
textarea: "_textarea_1ao90_55"
|
|
77
|
-
},
|
|
77
|
+
}, qt = [
|
|
78
78
|
"import",
|
|
79
79
|
"export",
|
|
80
80
|
"from",
|
|
@@ -96,9 +96,9 @@ var O = {
|
|
|
96
96
|
"as",
|
|
97
97
|
"of",
|
|
98
98
|
"in"
|
|
99
|
-
],
|
|
99
|
+
], Jt = RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${qt.join("|")})\\b)`, "g"), Yt = (e) => e.split(Jt).map((e, t) => {
|
|
100
100
|
if (!e) return null;
|
|
101
|
-
let n = /^['"`]/.test(e), r = !n &&
|
|
101
|
+
let n = /^['"`]/.test(e), r = !n && qt.includes(e);
|
|
102
102
|
return n ? /* @__PURE__ */ E("span", {
|
|
103
103
|
className: k.tokenString,
|
|
104
104
|
children: e
|
|
@@ -106,7 +106,7 @@ var O = {
|
|
|
106
106
|
className: k.tokenKeyword,
|
|
107
107
|
children: e
|
|
108
108
|
}, t) : /* @__PURE__ */ E(T.Fragment, { children: e }, t);
|
|
109
|
-
}),
|
|
109
|
+
}), Xt = ({ code: e, filename: t, onCopy: n, editable: r = !1, onChange: i, placeholder: a, className: o }) => {
|
|
110
110
|
let [s, c] = T.useState(!1), [l, u] = T.useState(e);
|
|
111
111
|
T.useEffect(() => u(e), [e]);
|
|
112
112
|
let d = () => {
|
|
@@ -118,7 +118,7 @@ var O = {
|
|
|
118
118
|
children: [/* @__PURE__ */ E("pre", {
|
|
119
119
|
className: k.body,
|
|
120
120
|
"aria-hidden": "true",
|
|
121
|
-
children:
|
|
121
|
+
children: Yt(l)
|
|
122
122
|
}), /* @__PURE__ */ E("textarea", {
|
|
123
123
|
className: k.textarea,
|
|
124
124
|
value: l,
|
|
@@ -136,7 +136,7 @@ var O = {
|
|
|
136
136
|
})]
|
|
137
137
|
}) : /* @__PURE__ */ E("pre", {
|
|
138
138
|
className: k.body,
|
|
139
|
-
children:
|
|
139
|
+
children: Yt(l)
|
|
140
140
|
});
|
|
141
141
|
return t ? /* @__PURE__ */ D("div", {
|
|
142
142
|
className: [k.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
@@ -145,8 +145,8 @@ var O = {
|
|
|
145
145
|
children: [/* @__PURE__ */ E("p", {
|
|
146
146
|
className: k.filename,
|
|
147
147
|
children: t
|
|
148
|
-
}), /* @__PURE__ */ E(
|
|
149
|
-
icon: s ?
|
|
148
|
+
}), /* @__PURE__ */ E(S, {
|
|
149
|
+
icon: s ? ot : dt,
|
|
150
150
|
variant: "ghost",
|
|
151
151
|
size: "sm",
|
|
152
152
|
"aria-label": s ? "Copied" : "Copy code",
|
|
@@ -157,7 +157,7 @@ var O = {
|
|
|
157
157
|
className: [k.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
158
158
|
children: p
|
|
159
159
|
});
|
|
160
|
-
},
|
|
160
|
+
}, Zt = {
|
|
161
161
|
expenses: "_expenses_1imiq_1",
|
|
162
162
|
row: "_row_1imiq_10",
|
|
163
163
|
top: "_top_1imiq_18",
|
|
@@ -165,65 +165,65 @@ var O = {
|
|
|
165
165
|
icon: "_icon_1imiq_32",
|
|
166
166
|
label: "_label_1imiq_44",
|
|
167
167
|
amount: "_amount_1imiq_55"
|
|
168
|
-
},
|
|
168
|
+
}, Qt = (e) => e.toLocaleString("en-US", {
|
|
169
169
|
style: "currency",
|
|
170
170
|
currency: "USD"
|
|
171
|
-
}),
|
|
171
|
+
}), $t = ({ categories: e, variant: t = "default", formatAmount: n = Qt, className: r }) => {
|
|
172
172
|
let i = t === "compact", a = Math.max(1, ...e.map((e) => e.amount));
|
|
173
173
|
return /* @__PURE__ */ E("div", {
|
|
174
|
-
className: [
|
|
174
|
+
className: [Zt.expenses, r ?? ""].filter(Boolean).join(" "),
|
|
175
175
|
children: e.map((e, t) => /* @__PURE__ */ D("div", {
|
|
176
|
-
className:
|
|
176
|
+
className: Zt.row,
|
|
177
177
|
children: [/* @__PURE__ */ D("div", {
|
|
178
|
-
className:
|
|
178
|
+
className: Zt.top,
|
|
179
179
|
children: [/* @__PURE__ */ D("div", {
|
|
180
|
-
className:
|
|
180
|
+
className: Zt.left,
|
|
181
181
|
children: [/* @__PURE__ */ E("span", {
|
|
182
|
-
className:
|
|
182
|
+
className: Zt.icon,
|
|
183
183
|
"aria-hidden": "true",
|
|
184
184
|
children: e.icon
|
|
185
185
|
}), /* @__PURE__ */ E("p", {
|
|
186
|
-
className:
|
|
186
|
+
className: Zt.label,
|
|
187
187
|
children: e.label
|
|
188
188
|
})]
|
|
189
189
|
}), /* @__PURE__ */ E("p", {
|
|
190
|
-
className:
|
|
190
|
+
className: Zt.amount,
|
|
191
191
|
children: n(e.amount)
|
|
192
192
|
})]
|
|
193
|
-
}), !i && /* @__PURE__ */ E(
|
|
193
|
+
}), !i && /* @__PURE__ */ E(Ye, {
|
|
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
|
+
}, en = {
|
|
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" ?
|
|
207
|
+
}, tn = 14, nn = ({ message: e, variant: t = "neutral", className: n }) => {
|
|
208
|
+
let r = t === "warning" ? Tt : pt;
|
|
209
209
|
return /* @__PURE__ */ D("div", {
|
|
210
210
|
className: [
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
en.hint,
|
|
212
|
+
en[`hint--${t}`],
|
|
213
213
|
n ?? ""
|
|
214
214
|
].filter(Boolean).join(" "),
|
|
215
215
|
children: [
|
|
216
216
|
/* @__PURE__ */ E("span", {
|
|
217
|
-
className:
|
|
217
|
+
className: en.bar,
|
|
218
218
|
"aria-hidden": "true"
|
|
219
219
|
}),
|
|
220
220
|
/* @__PURE__ */ E(r, {
|
|
221
|
-
size:
|
|
222
|
-
strokeWidth:
|
|
223
|
-
className:
|
|
221
|
+
size: tn,
|
|
222
|
+
strokeWidth: w(tn),
|
|
223
|
+
className: en.icon
|
|
224
224
|
}),
|
|
225
225
|
/* @__PURE__ */ E("p", {
|
|
226
|
-
className:
|
|
226
|
+
className: en.message,
|
|
227
227
|
children: e
|
|
228
228
|
})
|
|
229
229
|
]
|
|
@@ -240,15 +240,15 @@ var O = {
|
|
|
240
240
|
text: "_text_mg6gs_59",
|
|
241
241
|
title: "_title_mg6gs_65",
|
|
242
242
|
description: "_description_mg6gs_73"
|
|
243
|
-
},
|
|
244
|
-
let
|
|
243
|
+
}, rn = ({ step: e, title: t, description: n, completed: r = !1, orientation: i = "horizontal", isLast: a = !1, className: o }) => {
|
|
244
|
+
let s = i === "vertical", c = /* @__PURE__ */ E("span", {
|
|
245
245
|
className: A.value,
|
|
246
246
|
"aria-hidden": "true",
|
|
247
|
-
children: r ? /* @__PURE__ */ E(
|
|
247
|
+
children: r ? /* @__PURE__ */ E(ot, {
|
|
248
248
|
size: 14,
|
|
249
|
-
strokeWidth:
|
|
249
|
+
strokeWidth: w(14)
|
|
250
250
|
}) : e
|
|
251
|
-
}),
|
|
251
|
+
}), l = /* @__PURE__ */ D("div", {
|
|
252
252
|
className: A.text,
|
|
253
253
|
children: [/* @__PURE__ */ E("p", {
|
|
254
254
|
className: A.title,
|
|
@@ -258,7 +258,7 @@ var O = {
|
|
|
258
258
|
children: n
|
|
259
259
|
})]
|
|
260
260
|
});
|
|
261
|
-
return
|
|
261
|
+
return s ? /* @__PURE__ */ D("div", {
|
|
262
262
|
className: [
|
|
263
263
|
A.item,
|
|
264
264
|
A["item--vertical"],
|
|
@@ -266,8 +266,8 @@ var O = {
|
|
|
266
266
|
].filter(Boolean).join(" "),
|
|
267
267
|
children: [/* @__PURE__ */ D("div", {
|
|
268
268
|
className: A.rail,
|
|
269
|
-
children: [
|
|
270
|
-
}),
|
|
269
|
+
children: [c, !a && /* @__PURE__ */ E("div", { className: A.connectorVertical })]
|
|
270
|
+
}), l]
|
|
271
271
|
}) : /* @__PURE__ */ D("div", {
|
|
272
272
|
className: [
|
|
273
273
|
A.item,
|
|
@@ -276,25 +276,25 @@ var O = {
|
|
|
276
276
|
].filter(Boolean).join(" "),
|
|
277
277
|
children: [/* @__PURE__ */ D("div", {
|
|
278
278
|
className: A.topRow,
|
|
279
|
-
children: [
|
|
280
|
-
}),
|
|
279
|
+
children: [c, !a && /* @__PURE__ */ E("div", { className: A.connectorHorizontal })]
|
|
280
|
+
}), l]
|
|
281
281
|
});
|
|
282
|
-
},
|
|
282
|
+
}, an = {
|
|
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
|
+
}, on = ({ children: e, label: t, className: n }) => /* @__PURE__ */ D("div", {
|
|
289
|
+
className: [an.separator, n ?? ""].filter(Boolean).join(" "),
|
|
290
290
|
role: "separator",
|
|
291
291
|
children: [
|
|
292
|
-
/* @__PURE__ */ E(
|
|
292
|
+
/* @__PURE__ */ E(be, { className: an.line }),
|
|
293
293
|
e ?? (t && /* @__PURE__ */ E("span", {
|
|
294
|
-
className:
|
|
294
|
+
className: an.overline,
|
|
295
295
|
children: t
|
|
296
296
|
})),
|
|
297
|
-
/* @__PURE__ */ E(
|
|
297
|
+
/* @__PURE__ */ E(be, { className: an.line })
|
|
298
298
|
]
|
|
299
299
|
}), j = {
|
|
300
300
|
row: "_row_5wjem_2",
|
|
@@ -322,19 +322,19 @@ var O = {
|
|
|
322
322
|
changeRowLg: "_changeRowLg_5wjem_153",
|
|
323
323
|
changeTextLg: "_changeTextLg_5wjem_158",
|
|
324
324
|
chart: "_chart_5wjem_165"
|
|
325
|
-
},
|
|
325
|
+
}, sn = (e) => Math.abs(e).toLocaleString("en-US", {
|
|
326
326
|
style: "currency",
|
|
327
327
|
currency: "USD"
|
|
328
|
-
}),
|
|
329
|
-
let
|
|
328
|
+
}), cn = ({ logo: e, symbol: t, name: n, price: r, change: i, formatAmount: a = sn, chart: o, periodLabel: s = "Last 6 months", onPeriodClick: c, className: l }) => {
|
|
329
|
+
let u = i.amount >= 0, d = u ? wt : Ct, f = u ? "+" : "-", p = `${f}${a(i.amount)} (${f}${Math.abs(i.percent)}%)`, m = u ? j.trendUp : j.trendDown;
|
|
330
330
|
return o ? /* @__PURE__ */ D("div", {
|
|
331
|
-
className: [j.card,
|
|
331
|
+
className: [j.card, l ?? ""].filter(Boolean).join(" "),
|
|
332
332
|
children: [
|
|
333
333
|
/* @__PURE__ */ D("div", {
|
|
334
334
|
className: j.header,
|
|
335
|
-
children: [/* @__PURE__ */ E(
|
|
335
|
+
children: [/* @__PURE__ */ E(at, {
|
|
336
336
|
size: 16,
|
|
337
|
-
strokeWidth:
|
|
337
|
+
strokeWidth: w(16),
|
|
338
338
|
className: j.headerIcon
|
|
339
339
|
}), /* @__PURE__ */ E("span", {
|
|
340
340
|
className: j.headerLabel,
|
|
@@ -369,33 +369,33 @@ var O = {
|
|
|
369
369
|
children: a(r)
|
|
370
370
|
}), /* @__PURE__ */ D("div", {
|
|
371
371
|
className: j.changeRowLg,
|
|
372
|
-
children: [/* @__PURE__ */ E(
|
|
372
|
+
children: [/* @__PURE__ */ E(d, {
|
|
373
373
|
size: 24,
|
|
374
|
-
strokeWidth:
|
|
375
|
-
className:
|
|
374
|
+
strokeWidth: w(24),
|
|
375
|
+
className: m
|
|
376
376
|
}), /* @__PURE__ */ E("span", {
|
|
377
|
-
className: [j.changeTextLg,
|
|
378
|
-
children:
|
|
377
|
+
className: [j.changeTextLg, m].join(" "),
|
|
378
|
+
children: p
|
|
379
379
|
})]
|
|
380
380
|
})]
|
|
381
|
-
}), /* @__PURE__ */ E(
|
|
381
|
+
}), /* @__PURE__ */ E($e, {
|
|
382
382
|
variant: "outline",
|
|
383
383
|
size: "sm",
|
|
384
|
-
rightIcon: /* @__PURE__ */ E(
|
|
384
|
+
rightIcon: /* @__PURE__ */ E(st, {
|
|
385
385
|
size: 16,
|
|
386
|
-
strokeWidth:
|
|
386
|
+
strokeWidth: w(16)
|
|
387
387
|
}),
|
|
388
|
-
onClick:
|
|
389
|
-
children:
|
|
388
|
+
onClick: c,
|
|
389
|
+
children: s
|
|
390
390
|
})]
|
|
391
|
-
}), /* @__PURE__ */ E(
|
|
391
|
+
}), /* @__PURE__ */ E(Ee, {
|
|
392
392
|
data: o,
|
|
393
393
|
className: j.chart
|
|
394
394
|
})]
|
|
395
395
|
})
|
|
396
396
|
]
|
|
397
397
|
}) : /* @__PURE__ */ D("div", {
|
|
398
|
-
className: [j.row,
|
|
398
|
+
className: [j.row, l ?? ""].filter(Boolean).join(" "),
|
|
399
399
|
children: [/* @__PURE__ */ D("div", {
|
|
400
400
|
className: j.left,
|
|
401
401
|
children: [/* @__PURE__ */ E("span", {
|
|
@@ -419,23 +419,23 @@ var O = {
|
|
|
419
419
|
children: a(r)
|
|
420
420
|
}), /* @__PURE__ */ D("div", {
|
|
421
421
|
className: j.changeRow,
|
|
422
|
-
children: [/* @__PURE__ */ E(
|
|
422
|
+
children: [/* @__PURE__ */ E(d, {
|
|
423
423
|
size: 20,
|
|
424
|
-
strokeWidth:
|
|
425
|
-
className:
|
|
424
|
+
strokeWidth: w(20),
|
|
425
|
+
className: m
|
|
426
426
|
}), /* @__PURE__ */ E("span", {
|
|
427
|
-
className: [j.changeText,
|
|
428
|
-
children:
|
|
427
|
+
className: [j.changeText, m].join(" "),
|
|
428
|
+
children: p
|
|
429
429
|
})]
|
|
430
430
|
})]
|
|
431
431
|
})]
|
|
432
432
|
});
|
|
433
|
-
},
|
|
433
|
+
}, ln = {
|
|
434
434
|
tags: "_tags_bsi1x_1",
|
|
435
435
|
remove: "_remove_bsi1x_8",
|
|
436
436
|
tag: "_tag_bsi1x_1",
|
|
437
437
|
"tag--leaving": "_tag--leaving_bsi1x_22"
|
|
438
|
-
},
|
|
438
|
+
}, un = 160, dn = ({ tags: e, onRemove: t, className: n }) => {
|
|
439
439
|
let [r, i] = T.useState(null), a = T.useRef(void 0);
|
|
440
440
|
T.useEffect(() => () => window.clearTimeout(a.current), []);
|
|
441
441
|
let o = (e, n) => {
|
|
@@ -446,21 +446,21 @@ var O = {
|
|
|
446
446
|
}
|
|
447
447
|
i(e), a.current = window.setTimeout(() => {
|
|
448
448
|
t(e, n), i(null);
|
|
449
|
-
},
|
|
449
|
+
}, un);
|
|
450
450
|
}
|
|
451
451
|
};
|
|
452
452
|
return /* @__PURE__ */ E("div", {
|
|
453
|
-
className: [
|
|
454
|
-
children: e.map((e, n) => /* @__PURE__ */ E(
|
|
455
|
-
className: [
|
|
453
|
+
className: [ln.tags, n ?? ""].filter(Boolean).join(" "),
|
|
454
|
+
children: e.map((e, n) => /* @__PURE__ */ E(Ve, {
|
|
455
|
+
className: [ln.tag, r === e ? ln["tag--leaving"] : ""].filter(Boolean).join(" "),
|
|
456
456
|
rightIcon: t && /* @__PURE__ */ E("button", {
|
|
457
457
|
type: "button",
|
|
458
|
-
className:
|
|
458
|
+
className: ln.remove,
|
|
459
459
|
onClick: () => o(e, n),
|
|
460
460
|
"aria-label": `Remove ${e}`,
|
|
461
|
-
children: /* @__PURE__ */ E(
|
|
461
|
+
children: /* @__PURE__ */ E(Dt, {
|
|
462
462
|
size: 12,
|
|
463
|
-
strokeWidth:
|
|
463
|
+
strokeWidth: w(12)
|
|
464
464
|
})
|
|
465
465
|
}),
|
|
466
466
|
children: e
|
|
@@ -478,11 +478,11 @@ var O = {
|
|
|
478
478
|
trendDown: "_trendDown_6xnxy_58",
|
|
479
479
|
fadeLeft: "_fadeLeft_6xnxy_60",
|
|
480
480
|
fadeRight: "_fadeRight_6xnxy_61"
|
|
481
|
-
},
|
|
481
|
+
}, fn = (e) => `${e >= 0 ? "+" : ""}${e}%`, pn = ({ items: e, formatChange: t, ariaHidden: n }) => /* @__PURE__ */ E("div", {
|
|
482
482
|
className: M.row,
|
|
483
483
|
"aria-hidden": n,
|
|
484
484
|
children: e.map((e, n) => {
|
|
485
|
-
let r = e.changePercent >= 0, i = r ?
|
|
485
|
+
let r = e.changePercent >= 0, i = r ? wt : Ct, a = r ? M.trendUp : M.trendDown;
|
|
486
486
|
return /* @__PURE__ */ D("div", {
|
|
487
487
|
className: M.item,
|
|
488
488
|
children: [
|
|
@@ -492,7 +492,7 @@ var O = {
|
|
|
492
492
|
}),
|
|
493
493
|
/* @__PURE__ */ E(i, {
|
|
494
494
|
size: 14,
|
|
495
|
-
strokeWidth:
|
|
495
|
+
strokeWidth: w(14),
|
|
496
496
|
className: a
|
|
497
497
|
}),
|
|
498
498
|
/* @__PURE__ */ E("span", {
|
|
@@ -502,7 +502,7 @@ var O = {
|
|
|
502
502
|
]
|
|
503
503
|
}, `${e.symbol}-${n}`);
|
|
504
504
|
})
|
|
505
|
-
}),
|
|
505
|
+
}), mn = ({ items: e, speed: t = 40, formatChange: n = fn, className: r }) => {
|
|
506
506
|
let i = T.useRef(null), [a, o] = T.useState(20);
|
|
507
507
|
return T.useEffect(() => {
|
|
508
508
|
let e = i.current;
|
|
@@ -523,10 +523,10 @@ var O = {
|
|
|
523
523
|
ref: i,
|
|
524
524
|
className: M.track,
|
|
525
525
|
style: { "--ticker-duration": `${a}s` },
|
|
526
|
-
children: [/* @__PURE__ */ E(
|
|
526
|
+
children: [/* @__PURE__ */ E(pn, {
|
|
527
527
|
items: e,
|
|
528
528
|
formatChange: n
|
|
529
|
-
}), /* @__PURE__ */ E(
|
|
529
|
+
}), /* @__PURE__ */ E(pn, {
|
|
530
530
|
items: e,
|
|
531
531
|
formatChange: n,
|
|
532
532
|
ariaHidden: !0
|
|
@@ -558,15 +558,15 @@ var O = {
|
|
|
558
558
|
emptyIcon: "_emptyIcon_ovxee_86",
|
|
559
559
|
emptyTitle: "_emptyTitle_ovxee_89",
|
|
560
560
|
emptyDesc: "_emptyDesc_ovxee_96"
|
|
561
|
-
},
|
|
561
|
+
}, hn = (e) => `${e >= 0 ? "+" : "-"}${Math.abs(e).toLocaleString("en-US", {
|
|
562
562
|
style: "currency",
|
|
563
563
|
currency: "USD"
|
|
564
|
-
})}`,
|
|
564
|
+
})}`, gn = ({ transactions: e, formatAmount: t = hn, emptyTitle: n = "No transactions yet", emptyDescription: r = "Your activity will show up here.", className: i }) => e.length === 0 ? /* @__PURE__ */ D("div", {
|
|
565
565
|
className: [N.empty, i ?? ""].filter(Boolean).join(" "),
|
|
566
566
|
children: [
|
|
567
|
-
/* @__PURE__ */ E(
|
|
567
|
+
/* @__PURE__ */ E(bt, {
|
|
568
568
|
size: 24,
|
|
569
|
-
strokeWidth:
|
|
569
|
+
strokeWidth: w(24),
|
|
570
570
|
className: N.emptyIcon
|
|
571
571
|
}),
|
|
572
572
|
/* @__PURE__ */ E("p", {
|
|
@@ -620,7 +620,7 @@ var O = {
|
|
|
620
620
|
author: "_author_19qxp_77",
|
|
621
621
|
authorText: "_authorText_19qxp_83",
|
|
622
622
|
authorName: "_authorName_19qxp_91"
|
|
623
|
-
},
|
|
623
|
+
}, _n = ({ quote: e, author: t, className: n }) => {
|
|
624
624
|
let r = !!t;
|
|
625
625
|
return /* @__PURE__ */ D("div", {
|
|
626
626
|
className: [
|
|
@@ -628,7 +628,7 @@ var O = {
|
|
|
628
628
|
r ? P.rootAttributed : P.rootSimple,
|
|
629
629
|
n ?? ""
|
|
630
630
|
].filter(Boolean).join(" "),
|
|
631
|
-
children: [/* @__PURE__ */ E(
|
|
631
|
+
children: [/* @__PURE__ */ E(be, {
|
|
632
632
|
orientation: "vertical",
|
|
633
633
|
className: P.rail
|
|
634
634
|
}), /* @__PURE__ */ D("div", {
|
|
@@ -637,9 +637,9 @@ var O = {
|
|
|
637
637
|
r && /* @__PURE__ */ E("span", {
|
|
638
638
|
className: P.markRow,
|
|
639
639
|
"aria-hidden": "true",
|
|
640
|
-
children: /* @__PURE__ */ E(
|
|
640
|
+
children: /* @__PURE__ */ E(yt, {
|
|
641
641
|
size: 12,
|
|
642
|
-
strokeWidth:
|
|
642
|
+
strokeWidth: w(12),
|
|
643
643
|
className: P.mark,
|
|
644
644
|
fill: "currentColor"
|
|
645
645
|
})
|
|
@@ -651,16 +651,16 @@ var O = {
|
|
|
651
651
|
r && /* @__PURE__ */ E("span", {
|
|
652
652
|
className: [P.markRow, P.markRowEnd].join(" "),
|
|
653
653
|
"aria-hidden": "true",
|
|
654
|
-
children: /* @__PURE__ */ E(
|
|
654
|
+
children: /* @__PURE__ */ E(yt, {
|
|
655
655
|
size: 12,
|
|
656
|
-
strokeWidth:
|
|
656
|
+
strokeWidth: w(12),
|
|
657
657
|
className: P.mark,
|
|
658
658
|
fill: "currentColor"
|
|
659
659
|
})
|
|
660
660
|
}),
|
|
661
661
|
t && /* @__PURE__ */ D("div", {
|
|
662
662
|
className: P.author,
|
|
663
|
-
children: [/* @__PURE__ */ E(
|
|
663
|
+
children: [/* @__PURE__ */ E(c, {
|
|
664
664
|
size: "sm",
|
|
665
665
|
src: t.avatarSrc,
|
|
666
666
|
alt: t.avatarAlt ?? t.name
|
|
@@ -678,48 +678,48 @@ var O = {
|
|
|
678
678
|
]
|
|
679
679
|
})]
|
|
680
680
|
});
|
|
681
|
-
},
|
|
681
|
+
}, vn = {
|
|
682
682
|
root: "_root_btuyr_1",
|
|
683
683
|
rootLeft: "_rootLeft_btuyr_13",
|
|
684
684
|
rootTop: "_rootTop_btuyr_19",
|
|
685
685
|
ruleLeft: "_ruleLeft_btuyr_24",
|
|
686
686
|
ruleTop: "_ruleTop_btuyr_31",
|
|
687
687
|
text: "_text_btuyr_39"
|
|
688
|
-
},
|
|
688
|
+
}, yn = ({ text: e, align: t = "left", className: n }) => /* @__PURE__ */ D("div", {
|
|
689
689
|
className: [
|
|
690
|
-
|
|
691
|
-
t === "top" ?
|
|
690
|
+
vn.root,
|
|
691
|
+
t === "top" ? vn.rootTop : vn.rootLeft,
|
|
692
692
|
n ?? ""
|
|
693
693
|
].filter(Boolean).join(" "),
|
|
694
694
|
children: [/* @__PURE__ */ E("span", {
|
|
695
|
-
className: t === "top" ?
|
|
695
|
+
className: t === "top" ? vn.ruleTop : vn.ruleLeft,
|
|
696
696
|
"aria-hidden": "true"
|
|
697
697
|
}), /* @__PURE__ */ E("p", {
|
|
698
|
-
className:
|
|
698
|
+
className: vn.text,
|
|
699
699
|
children: e
|
|
700
700
|
})]
|
|
701
|
-
}),
|
|
701
|
+
}), bn = {
|
|
702
702
|
root: "_root_awxwk_1",
|
|
703
703
|
imageWrap: "_imageWrap_awxwk_10",
|
|
704
704
|
"root--large": "_root--large_awxwk_27",
|
|
705
705
|
"root--small": "_root--small_awxwk_33",
|
|
706
706
|
image: "_image_awxwk_10",
|
|
707
707
|
caption: "_caption_awxwk_47"
|
|
708
|
-
},
|
|
708
|
+
}, xn = ({ src: e, alt: t = "", size: n = "large", caption: r, className: i }) => /* @__PURE__ */ D("figure", {
|
|
709
709
|
className: [
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
bn.root,
|
|
711
|
+
bn[`root--${n}`],
|
|
712
712
|
i ?? ""
|
|
713
713
|
].filter(Boolean).join(" "),
|
|
714
714
|
children: [/* @__PURE__ */ E("span", {
|
|
715
|
-
className:
|
|
715
|
+
className: bn.imageWrap,
|
|
716
716
|
children: /* @__PURE__ */ E("img", {
|
|
717
717
|
src: e,
|
|
718
718
|
alt: t,
|
|
719
|
-
className:
|
|
719
|
+
className: bn.image
|
|
720
720
|
})
|
|
721
721
|
}), r && /* @__PURE__ */ E("figcaption", {
|
|
722
|
-
className:
|
|
722
|
+
className: bn.caption,
|
|
723
723
|
children: r
|
|
724
724
|
})]
|
|
725
725
|
}), F = {
|
|
@@ -731,16 +731,16 @@ var O = {
|
|
|
731
731
|
ctaRow: "_ctaRow_uc5r9_39",
|
|
732
732
|
avatarBlock: "_avatarBlock_uc5r9_45",
|
|
733
733
|
avatarsCaption: "_avatarsCaption_uc5r9_57"
|
|
734
|
-
},
|
|
735
|
-
let
|
|
734
|
+
}, Sn = ({ title: e, description: t, badgeLabel: r, primaryCta: i, secondaryCta: a, avatars: o, avatarsCaption: s, align: c = "center", className: l }) => {
|
|
735
|
+
let u = !!(i || a), d = !!(o && o.length > 0);
|
|
736
736
|
return /* @__PURE__ */ D("div", {
|
|
737
737
|
className: [
|
|
738
738
|
F.root,
|
|
739
|
-
|
|
740
|
-
|
|
739
|
+
c === "left" ? F.rootLeft : F.rootCenter,
|
|
740
|
+
l ?? ""
|
|
741
741
|
].filter(Boolean).join(" "),
|
|
742
742
|
children: [
|
|
743
|
-
r && /* @__PURE__ */ E(
|
|
743
|
+
r && /* @__PURE__ */ E(Ve, {
|
|
744
744
|
variant: "accent",
|
|
745
745
|
emphasis: "subtle",
|
|
746
746
|
children: r
|
|
@@ -753,83 +753,83 @@ var O = {
|
|
|
753
753
|
className: F.description,
|
|
754
754
|
children: t
|
|
755
755
|
}),
|
|
756
|
-
|
|
756
|
+
u && /* @__PURE__ */ D("div", {
|
|
757
757
|
className: F.ctaRow,
|
|
758
|
-
children: [i && /* @__PURE__ */ E(
|
|
758
|
+
children: [i && /* @__PURE__ */ E($e, {
|
|
759
759
|
variant: "primary",
|
|
760
760
|
onClick: i.onClick,
|
|
761
761
|
children: i.label
|
|
762
|
-
}), a && /* @__PURE__ */ E(
|
|
762
|
+
}), a && /* @__PURE__ */ E($e, {
|
|
763
763
|
variant: "secondary",
|
|
764
|
-
leftIcon: /* @__PURE__ */ E(
|
|
764
|
+
leftIcon: /* @__PURE__ */ E(_t, {
|
|
765
765
|
size: 16,
|
|
766
|
-
strokeWidth:
|
|
766
|
+
strokeWidth: w(16),
|
|
767
767
|
fill: "currentColor"
|
|
768
768
|
}),
|
|
769
769
|
onClick: a.onClick,
|
|
770
770
|
children: a.label
|
|
771
771
|
})]
|
|
772
772
|
}),
|
|
773
|
-
|
|
773
|
+
d && /* @__PURE__ */ D("div", {
|
|
774
774
|
className: F.avatarBlock,
|
|
775
775
|
children: [/* @__PURE__ */ E(n, {
|
|
776
776
|
size: "md",
|
|
777
777
|
avatars: o
|
|
778
|
-
}),
|
|
778
|
+
}), s && /* @__PURE__ */ E("p", {
|
|
779
779
|
className: F.avatarsCaption,
|
|
780
|
-
children:
|
|
780
|
+
children: s
|
|
781
781
|
})]
|
|
782
782
|
})
|
|
783
783
|
]
|
|
784
784
|
});
|
|
785
|
-
},
|
|
785
|
+
}, Cn = {
|
|
786
786
|
root: "_root_5kajg_1",
|
|
787
787
|
item: "_item_5kajg_12",
|
|
788
788
|
marker: "_marker_5kajg_18",
|
|
789
789
|
dot: "_dot_5kajg_26",
|
|
790
790
|
label: "_label_5kajg_34"
|
|
791
|
-
},
|
|
792
|
-
className: [
|
|
791
|
+
}, wn = ({ items: e, style: t = "check", className: n }) => /* @__PURE__ */ E("ul", {
|
|
792
|
+
className: [Cn.root, n ?? ""].filter(Boolean).join(" "),
|
|
793
793
|
children: e.map((e, n) => /* @__PURE__ */ D("li", {
|
|
794
|
-
className:
|
|
794
|
+
className: Cn.item,
|
|
795
795
|
children: [/* @__PURE__ */ D("span", {
|
|
796
|
-
className:
|
|
796
|
+
className: Cn.marker,
|
|
797
797
|
"aria-hidden": "true",
|
|
798
798
|
children: [
|
|
799
|
-
t === "check" && /* @__PURE__ */ E(
|
|
799
|
+
t === "check" && /* @__PURE__ */ E(ot, {
|
|
800
800
|
size: 18,
|
|
801
|
-
strokeWidth:
|
|
801
|
+
strokeWidth: w(18)
|
|
802
802
|
}),
|
|
803
|
-
t === "arrow" && /* @__PURE__ */ E(
|
|
803
|
+
t === "arrow" && /* @__PURE__ */ E(it, {
|
|
804
804
|
size: 16,
|
|
805
|
-
strokeWidth:
|
|
805
|
+
strokeWidth: w(16)
|
|
806
806
|
}),
|
|
807
|
-
t === "bullet" && /* @__PURE__ */ E("span", { className:
|
|
807
|
+
t === "bullet" && /* @__PURE__ */ E("span", { className: Cn.dot })
|
|
808
808
|
]
|
|
809
809
|
}), /* @__PURE__ */ E("span", {
|
|
810
|
-
className:
|
|
810
|
+
className: Cn.label,
|
|
811
811
|
children: e
|
|
812
812
|
})]
|
|
813
813
|
}, n))
|
|
814
|
-
}),
|
|
814
|
+
}), Tn = {
|
|
815
815
|
marquee: "_marquee_1pc4i_1",
|
|
816
816
|
track: "_track_1pc4i_13",
|
|
817
817
|
row: "_row_1pc4i_19",
|
|
818
818
|
item: "_item_1pc4i_25",
|
|
819
819
|
fadeLeft: "_fadeLeft_1pc4i_31",
|
|
820
820
|
fadeRight: "_fadeRight_1pc4i_32"
|
|
821
|
-
},
|
|
822
|
-
className:
|
|
821
|
+
}, En = ({ items: e, gap: t, ariaHidden: n }) => /* @__PURE__ */ E("div", {
|
|
822
|
+
className: Tn.row,
|
|
823
823
|
style: {
|
|
824
824
|
gap: t,
|
|
825
825
|
paddingRight: t
|
|
826
826
|
},
|
|
827
827
|
"aria-hidden": n,
|
|
828
828
|
children: e.map((e, t) => /* @__PURE__ */ E("div", {
|
|
829
|
-
className:
|
|
829
|
+
className: Tn.item,
|
|
830
830
|
children: e
|
|
831
831
|
}, t))
|
|
832
|
-
}),
|
|
832
|
+
}), Dn = ({ items: e, speed: t = 40, gap: n, className: r }) => {
|
|
833
833
|
let i = T.useRef(null), a = T.useRef(0), o = T.useRef(0), s = T.useRef(!1);
|
|
834
834
|
return T.useEffect(() => {
|
|
835
835
|
let e = i.current?.firstElementChild;
|
|
@@ -851,7 +851,7 @@ var O = {
|
|
|
851
851
|
};
|
|
852
852
|
return n = setTimeout(c, 16), () => clearTimeout(n);
|
|
853
853
|
}, [t]), /* @__PURE__ */ D("div", {
|
|
854
|
-
className: [
|
|
854
|
+
className: [Tn.marquee, r ?? ""].filter(Boolean).join(" "),
|
|
855
855
|
onMouseEnter: () => {
|
|
856
856
|
s.current = !0;
|
|
857
857
|
},
|
|
@@ -861,27 +861,27 @@ var O = {
|
|
|
861
861
|
children: [
|
|
862
862
|
/* @__PURE__ */ D("div", {
|
|
863
863
|
ref: i,
|
|
864
|
-
className:
|
|
865
|
-
children: [/* @__PURE__ */ E(
|
|
864
|
+
className: Tn.track,
|
|
865
|
+
children: [/* @__PURE__ */ E(En, {
|
|
866
866
|
items: e,
|
|
867
867
|
gap: n
|
|
868
|
-
}), /* @__PURE__ */ E(
|
|
868
|
+
}), /* @__PURE__ */ E(En, {
|
|
869
869
|
items: e,
|
|
870
870
|
gap: n,
|
|
871
871
|
ariaHidden: !0
|
|
872
872
|
})]
|
|
873
873
|
}),
|
|
874
874
|
/* @__PURE__ */ E("div", {
|
|
875
|
-
className:
|
|
875
|
+
className: Tn.fadeLeft,
|
|
876
876
|
"aria-hidden": "true"
|
|
877
877
|
}),
|
|
878
878
|
/* @__PURE__ */ E("div", {
|
|
879
|
-
className:
|
|
879
|
+
className: Tn.fadeRight,
|
|
880
880
|
"aria-hidden": "true"
|
|
881
881
|
})
|
|
882
882
|
]
|
|
883
883
|
});
|
|
884
|
-
},
|
|
884
|
+
}, On = {
|
|
885
885
|
root: "_root_17a1b_1",
|
|
886
886
|
numRow: "_numRow_17a1b_9",
|
|
887
887
|
value: "_value_17a1b_15",
|
|
@@ -889,28 +889,28 @@ var O = {
|
|
|
889
889
|
trendUp: "_trendUp_17a1b_35",
|
|
890
890
|
trendDown: "_trendDown_17a1b_39",
|
|
891
891
|
label: "_label_17a1b_43"
|
|
892
|
-
},
|
|
893
|
-
let i = n !== void 0, a = i && n >= 0, o = a ?
|
|
892
|
+
}, kn = ({ value: e, label: t, trend: n, className: r }) => {
|
|
893
|
+
let i = n !== void 0, a = i && n >= 0, o = a ? wt : Ct;
|
|
894
894
|
return /* @__PURE__ */ D("div", {
|
|
895
|
-
className: [
|
|
895
|
+
className: [On.root, r ?? ""].filter(Boolean).join(" "),
|
|
896
896
|
children: [/* @__PURE__ */ D("div", {
|
|
897
|
-
className:
|
|
897
|
+
className: On.numRow,
|
|
898
898
|
children: [/* @__PURE__ */ E("p", {
|
|
899
|
-
className:
|
|
899
|
+
className: On.value,
|
|
900
900
|
children: e
|
|
901
901
|
}), i && /* @__PURE__ */ D("span", {
|
|
902
|
-
className: [
|
|
902
|
+
className: [On.trend, a ? On.trendUp : On.trendDown].join(" "),
|
|
903
903
|
children: [
|
|
904
904
|
/* @__PURE__ */ E(o, {
|
|
905
905
|
size: 24,
|
|
906
|
-
strokeWidth:
|
|
906
|
+
strokeWidth: w(24)
|
|
907
907
|
}),
|
|
908
908
|
Math.abs(n),
|
|
909
909
|
"%"
|
|
910
910
|
]
|
|
911
911
|
})]
|
|
912
912
|
}), /* @__PURE__ */ E("p", {
|
|
913
|
-
className:
|
|
913
|
+
className: On.label,
|
|
914
914
|
children: t
|
|
915
915
|
})]
|
|
916
916
|
});
|
|
@@ -925,20 +925,20 @@ var O = {
|
|
|
925
925
|
collapseInner: "_collapseInner_scbx4_78",
|
|
926
926
|
navLinks: "_navLinks_scbx4_91",
|
|
927
927
|
navLink: "_navLink_scbx4_91"
|
|
928
|
-
},
|
|
929
|
-
let
|
|
930
|
-
let e = !
|
|
931
|
-
|
|
932
|
-
},
|
|
928
|
+
}, An = ({ label: e, links: t, ctaLabel: n = "Get started", onCtaClick: r, open: i, defaultOpen: a = !1, onOpenChange: o, className: s }) => {
|
|
929
|
+
let c = i !== void 0, [l, u] = T.useState(a), d = c ? i : l, f = () => {
|
|
930
|
+
let e = !d;
|
|
931
|
+
c || u(e), o?.(e);
|
|
932
|
+
}, p = T.useRef(null), [m, h] = T.useState(0);
|
|
933
933
|
return T.useEffect(() => {
|
|
934
|
-
let e =
|
|
934
|
+
let e = p.current;
|
|
935
935
|
if (!e) return;
|
|
936
|
-
let t = () =>
|
|
936
|
+
let t = () => h(e.scrollHeight);
|
|
937
937
|
t();
|
|
938
938
|
let n = new ResizeObserver(t);
|
|
939
939
|
return n.observe(e), () => n.disconnect();
|
|
940
940
|
}, [t, n]), /* @__PURE__ */ D("div", {
|
|
941
|
-
className: [I.root,
|
|
941
|
+
className: [I.root, s ?? ""].filter(Boolean).join(" "),
|
|
942
942
|
children: [/* @__PURE__ */ D("div", {
|
|
943
943
|
className: I.header,
|
|
944
944
|
children: [/* @__PURE__ */ E("p", {
|
|
@@ -947,20 +947,20 @@ var O = {
|
|
|
947
947
|
}), /* @__PURE__ */ E("button", {
|
|
948
948
|
type: "button",
|
|
949
949
|
className: I.toggle,
|
|
950
|
-
onClick:
|
|
951
|
-
"aria-expanded":
|
|
952
|
-
"aria-label":
|
|
953
|
-
children: E(
|
|
950
|
+
onClick: f,
|
|
951
|
+
"aria-expanded": d,
|
|
952
|
+
"aria-label": d ? "Close menu" : "Open menu",
|
|
953
|
+
children: E(d ? Dt : ht, {
|
|
954
954
|
size: 16,
|
|
955
|
-
strokeWidth:
|
|
955
|
+
strokeWidth: w(16)
|
|
956
956
|
})
|
|
957
957
|
})]
|
|
958
958
|
}), /* @__PURE__ */ E("div", {
|
|
959
|
-
className: [I.collapse,
|
|
960
|
-
style: { maxHeight:
|
|
961
|
-
"aria-hidden": !
|
|
959
|
+
className: [I.collapse, d ? I.collapseOpen : ""].filter(Boolean).join(" "),
|
|
960
|
+
style: { maxHeight: d ? `${m}px` : "0px" },
|
|
961
|
+
"aria-hidden": !d,
|
|
962
962
|
children: /* @__PURE__ */ D("div", {
|
|
963
|
-
ref:
|
|
963
|
+
ref: p,
|
|
964
964
|
className: I.collapseInner,
|
|
965
965
|
children: [
|
|
966
966
|
/* @__PURE__ */ E("nav", {
|
|
@@ -970,47 +970,47 @@ var O = {
|
|
|
970
970
|
href: e.href,
|
|
971
971
|
onClick: e.onClick,
|
|
972
972
|
className: I.navLink,
|
|
973
|
-
tabIndex:
|
|
973
|
+
tabIndex: d ? void 0 : -1,
|
|
974
974
|
children: e.label
|
|
975
975
|
}, e.label))
|
|
976
976
|
}),
|
|
977
|
-
/* @__PURE__ */ E(
|
|
978
|
-
/* @__PURE__ */ E(
|
|
977
|
+
/* @__PURE__ */ E(be, { className: I.fullWidth }),
|
|
978
|
+
/* @__PURE__ */ E($e, {
|
|
979
979
|
variant: "primary",
|
|
980
980
|
className: I.fullWidth,
|
|
981
981
|
onClick: r,
|
|
982
|
-
tabIndex:
|
|
982
|
+
tabIndex: d ? void 0 : -1,
|
|
983
983
|
children: n
|
|
984
984
|
})
|
|
985
985
|
]
|
|
986
986
|
})
|
|
987
987
|
})]
|
|
988
988
|
});
|
|
989
|
-
},
|
|
989
|
+
}, jn = {
|
|
990
990
|
root: "_root_lrpdp_1",
|
|
991
991
|
"root--sm": "_root--sm_lrpdp_14",
|
|
992
992
|
"root--md": "_root--md_lrpdp_18",
|
|
993
993
|
"root--lg": "_root--lg_lrpdp_22",
|
|
994
994
|
defaultMark: "_defaultMark_lrpdp_27"
|
|
995
|
-
},
|
|
995
|
+
}, Mn = {
|
|
996
996
|
sm: 14,
|
|
997
997
|
md: 16,
|
|
998
998
|
lg: 18
|
|
999
|
-
},
|
|
1000
|
-
let i =
|
|
999
|
+
}, Nn = ({ size: e = "md", logo: t, label: n, className: r }) => {
|
|
1000
|
+
let i = Mn[e], a = T.isValidElement(t) ? T.cloneElement(t, {
|
|
1001
1001
|
size: i,
|
|
1002
|
-
strokeWidth:
|
|
1002
|
+
strokeWidth: w(i)
|
|
1003
1003
|
}) : t ?? /* @__PURE__ */ E("img", {
|
|
1004
1004
|
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",
|
|
1005
1005
|
alt: "",
|
|
1006
1006
|
width: i,
|
|
1007
1007
|
height: i,
|
|
1008
|
-
className:
|
|
1008
|
+
className: jn.defaultMark
|
|
1009
1009
|
});
|
|
1010
1010
|
return /* @__PURE__ */ E("span", {
|
|
1011
1011
|
className: [
|
|
1012
|
-
|
|
1013
|
-
|
|
1012
|
+
jn.root,
|
|
1013
|
+
jn[`root--${e}`],
|
|
1014
1014
|
r ?? ""
|
|
1015
1015
|
].filter(Boolean).join(" "),
|
|
1016
1016
|
role: "img",
|
|
@@ -1028,22 +1028,22 @@ var O = {
|
|
|
1028
1028
|
bio: "_bio_ibchq_53",
|
|
1029
1029
|
social: "_social_ibchq_63",
|
|
1030
1030
|
socialBtn: "_socialBtn_ibchq_71"
|
|
1031
|
-
},
|
|
1032
|
-
let
|
|
1031
|
+
}, Pn = ({ name: e, role: t, avatarSrc: n, avatarAlt: r, bio: i, socialLinks: a = [], className: o }) => {
|
|
1032
|
+
let s = !!i || a.length > 0;
|
|
1033
1033
|
return /* @__PURE__ */ D("div", {
|
|
1034
1034
|
className: [
|
|
1035
1035
|
L.root,
|
|
1036
|
-
|
|
1037
|
-
|
|
1036
|
+
s ? L.rootDetailed : L.rootCompact,
|
|
1037
|
+
o ?? ""
|
|
1038
1038
|
].filter(Boolean).join(" "),
|
|
1039
1039
|
children: [
|
|
1040
|
-
/* @__PURE__ */ E(
|
|
1040
|
+
/* @__PURE__ */ E(c, {
|
|
1041
1041
|
size: "xl",
|
|
1042
1042
|
src: n,
|
|
1043
1043
|
alt: r ?? e
|
|
1044
1044
|
}),
|
|
1045
1045
|
/* @__PURE__ */ D("div", {
|
|
1046
|
-
className:
|
|
1046
|
+
className: s ? L.infoDetailed : L.infoCompact,
|
|
1047
1047
|
children: [/* @__PURE__ */ E("p", {
|
|
1048
1048
|
className: L.name,
|
|
1049
1049
|
children: e
|
|
@@ -1052,13 +1052,13 @@ var O = {
|
|
|
1052
1052
|
children: t
|
|
1053
1053
|
})]
|
|
1054
1054
|
}),
|
|
1055
|
-
|
|
1055
|
+
s && i && /* @__PURE__ */ E("p", {
|
|
1056
1056
|
className: L.bio,
|
|
1057
|
-
children:
|
|
1057
|
+
children: i
|
|
1058
1058
|
}),
|
|
1059
|
-
|
|
1059
|
+
s && a.length > 0 && /* @__PURE__ */ E("div", {
|
|
1060
1060
|
className: L.social,
|
|
1061
|
-
children:
|
|
1061
|
+
children: a.map((e, t) => /* @__PURE__ */ E("a", {
|
|
1062
1062
|
href: e.href,
|
|
1063
1063
|
onClick: e.onClick,
|
|
1064
1064
|
className: L.socialBtn,
|
|
@@ -1068,19 +1068,19 @@ var O = {
|
|
|
1068
1068
|
})
|
|
1069
1069
|
]
|
|
1070
1070
|
});
|
|
1071
|
-
},
|
|
1071
|
+
}, Fn = {
|
|
1072
1072
|
heading: "_heading_96cdx_1",
|
|
1073
1073
|
h2: "_h2_96cdx_8",
|
|
1074
1074
|
h3: "_h3_96cdx_14"
|
|
1075
|
-
},
|
|
1075
|
+
}, In = ({ children: e, level: t = "h2", className: n }) => /* @__PURE__ */ E(t, {
|
|
1076
1076
|
className: [
|
|
1077
|
-
|
|
1078
|
-
|
|
1077
|
+
Fn.heading,
|
|
1078
|
+
Fn[t],
|
|
1079
1079
|
n ?? ""
|
|
1080
1080
|
].filter(Boolean).join(" "),
|
|
1081
1081
|
children: e
|
|
1082
|
-
}),
|
|
1083
|
-
className: [
|
|
1082
|
+
}), Ln = { paragraph: "_paragraph_8pqdi_1" }, Rn = ({ children: e, className: t }) => /* @__PURE__ */ E("p", {
|
|
1083
|
+
className: [Ln.paragraph, t ?? ""].filter(Boolean).join(" "),
|
|
1084
1084
|
children: e
|
|
1085
1085
|
}), R = {
|
|
1086
1086
|
rootBordered: "_rootBordered_5cgsj_1",
|
|
@@ -1091,10 +1091,10 @@ var O = {
|
|
|
1091
1091
|
textVertical: "_textVertical_5cgsj_41",
|
|
1092
1092
|
title: "_title_5cgsj_49",
|
|
1093
1093
|
description: "_description_5cgsj_57"
|
|
1094
|
-
},
|
|
1094
|
+
}, zn = ({ icon: e, title: t, description: n, layout: r = "horizontal", leftBorder: i = !1, className: a }) => {
|
|
1095
1095
|
let o = r === "vertical", s = /* @__PURE__ */ D("div", {
|
|
1096
1096
|
className: o ? R.contentVertical : R.contentHorizontal,
|
|
1097
|
-
children: [/* @__PURE__ */ E(
|
|
1097
|
+
children: [/* @__PURE__ */ E(ae, {
|
|
1098
1098
|
icon: e,
|
|
1099
1099
|
size: "sm",
|
|
1100
1100
|
variant: "light"
|
|
@@ -1111,25 +1111,25 @@ var O = {
|
|
|
1111
1111
|
});
|
|
1112
1112
|
return i ? /* @__PURE__ */ D("div", {
|
|
1113
1113
|
className: [R.rootBordered, a ?? ""].filter(Boolean).join(" "),
|
|
1114
|
-
children: [/* @__PURE__ */ E(
|
|
1114
|
+
children: [/* @__PURE__ */ E(be, {
|
|
1115
1115
|
orientation: "vertical",
|
|
1116
1116
|
className: R.rail
|
|
1117
1117
|
}), s]
|
|
1118
1118
|
}) : T.cloneElement(s, { className: [s.props.className, a ?? ""].filter(Boolean).join(" ") });
|
|
1119
|
-
},
|
|
1119
|
+
}, Bn = { chart: "_chart_qqaox_2" }, Vn = {
|
|
1120
1120
|
sm: 180,
|
|
1121
1121
|
md: 240,
|
|
1122
1122
|
lg: 320,
|
|
1123
1123
|
xl: 420
|
|
1124
|
-
},
|
|
1125
|
-
let o = T.useRef(null), s =
|
|
1124
|
+
}, Hn = ({ data: e, variant: t = "default", seriesLabels: n = ["Value", "Value 2"], size: r = "md", height: i, className: a }) => {
|
|
1125
|
+
let o = T.useRef(null), s = Ue(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;
|
|
1126
1126
|
return /* @__PURE__ */ E("div", {
|
|
1127
1127
|
ref: o,
|
|
1128
|
-
className: [
|
|
1129
|
-
children: /* @__PURE__ */ E(
|
|
1128
|
+
className: [Bn.chart, a ?? ""].filter(Boolean).join(" "),
|
|
1129
|
+
children: /* @__PURE__ */ E(Ht, {
|
|
1130
1130
|
width: "100%",
|
|
1131
|
-
height: i ??
|
|
1132
|
-
children: /* @__PURE__ */ D(
|
|
1131
|
+
height: i ?? Vn[r],
|
|
1132
|
+
children: /* @__PURE__ */ D(kt, {
|
|
1133
1133
|
data: e,
|
|
1134
1134
|
margin: {
|
|
1135
1135
|
top: 8,
|
|
@@ -1169,12 +1169,12 @@ var O = {
|
|
|
1169
1169
|
stopOpacity: .02
|
|
1170
1170
|
})]
|
|
1171
1171
|
})] }),
|
|
1172
|
-
/* @__PURE__ */ E(
|
|
1172
|
+
/* @__PURE__ */ E(At, {
|
|
1173
1173
|
strokeDasharray: "3 3",
|
|
1174
1174
|
stroke: u,
|
|
1175
1175
|
vertical: !1
|
|
1176
1176
|
}),
|
|
1177
|
-
/* @__PURE__ */ E(
|
|
1177
|
+
/* @__PURE__ */ E(Gt, {
|
|
1178
1178
|
dataKey: "label",
|
|
1179
1179
|
stroke: d,
|
|
1180
1180
|
fontSize: 12,
|
|
@@ -1182,15 +1182,15 @@ var O = {
|
|
|
1182
1182
|
axisLine: !1,
|
|
1183
1183
|
interval: 0
|
|
1184
1184
|
}),
|
|
1185
|
-
/* @__PURE__ */ E(
|
|
1185
|
+
/* @__PURE__ */ E(Wt, {
|
|
1186
1186
|
cursor: {
|
|
1187
1187
|
stroke: s("--color-border-default") ?? "#dbdad7",
|
|
1188
1188
|
strokeWidth: 1
|
|
1189
1189
|
},
|
|
1190
|
-
content: /* @__PURE__ */ E(
|
|
1190
|
+
content: /* @__PURE__ */ E(de, {}),
|
|
1191
1191
|
wrapperStyle: { zIndex: 50 }
|
|
1192
1192
|
}),
|
|
1193
|
-
f && /* @__PURE__ */ E(
|
|
1193
|
+
f && /* @__PURE__ */ E(Ot, {
|
|
1194
1194
|
type: p,
|
|
1195
1195
|
dataKey: "value2",
|
|
1196
1196
|
name: n[1] ?? "Value 2",
|
|
@@ -1206,7 +1206,7 @@ var O = {
|
|
|
1206
1206
|
strokeWidth: 1.5
|
|
1207
1207
|
}
|
|
1208
1208
|
}),
|
|
1209
|
-
/* @__PURE__ */ E(
|
|
1209
|
+
/* @__PURE__ */ E(Ot, {
|
|
1210
1210
|
type: p,
|
|
1211
1211
|
dataKey: "value",
|
|
1212
1212
|
name: n[0] ?? "Value",
|
|
@@ -1237,8 +1237,8 @@ var O = {
|
|
|
1237
1237
|
col__body: "_col__body_1v24u_24",
|
|
1238
1238
|
col__drop: "_col__drop_1v24u_25",
|
|
1239
1239
|
col__add: "_col__add_1v24u_31"
|
|
1240
|
-
},
|
|
1241
|
-
className: [z.col,
|
|
1240
|
+
}, Un = ({ state: e = "default", title: t, count: n, dotColor: r = "var(--color-chart-1)", children: i, onAdd: a, onMenu: o, className: s }) => /* @__PURE__ */ D("div", {
|
|
1241
|
+
className: [z.col, s ?? ""].filter(Boolean).join(" "),
|
|
1242
1242
|
children: [
|
|
1243
1243
|
/* @__PURE__ */ D("div", {
|
|
1244
1244
|
className: z.col__header,
|
|
@@ -1262,9 +1262,9 @@ var O = {
|
|
|
1262
1262
|
className: z.col__action,
|
|
1263
1263
|
onClick: a,
|
|
1264
1264
|
"aria-label": "Add task",
|
|
1265
|
-
children: /* @__PURE__ */ E(
|
|
1265
|
+
children: /* @__PURE__ */ E(vt, {
|
|
1266
1266
|
size: 16,
|
|
1267
|
-
strokeWidth:
|
|
1267
|
+
strokeWidth: w(16)
|
|
1268
1268
|
})
|
|
1269
1269
|
}),
|
|
1270
1270
|
/* @__PURE__ */ E("button", {
|
|
@@ -1272,9 +1272,9 @@ var O = {
|
|
|
1272
1272
|
className: z.col__action,
|
|
1273
1273
|
onClick: o,
|
|
1274
1274
|
"aria-label": "Column options",
|
|
1275
|
-
children: /* @__PURE__ */ E(
|
|
1275
|
+
children: /* @__PURE__ */ E(gt, {
|
|
1276
1276
|
size: 16,
|
|
1277
|
-
strokeWidth:
|
|
1277
|
+
strokeWidth: w(16)
|
|
1278
1278
|
})
|
|
1279
1279
|
})
|
|
1280
1280
|
]
|
|
@@ -1290,9 +1290,9 @@ var O = {
|
|
|
1290
1290
|
type: "button",
|
|
1291
1291
|
className: z.col__add,
|
|
1292
1292
|
onClick: a,
|
|
1293
|
-
children: [/* @__PURE__ */ E(
|
|
1293
|
+
children: [/* @__PURE__ */ E(vt, {
|
|
1294
1294
|
size: 16,
|
|
1295
|
-
strokeWidth:
|
|
1295
|
+
strokeWidth: w(16),
|
|
1296
1296
|
"aria-hidden": "true"
|
|
1297
1297
|
}), "Add task"]
|
|
1298
1298
|
})
|
|
@@ -1315,7 +1315,7 @@ var O = {
|
|
|
1315
1315
|
"day--disabled": "_day--disabled_qvyxg_55",
|
|
1316
1316
|
dropdowns: "_dropdowns_qvyxg_58",
|
|
1317
1317
|
dropdown: "_dropdown_qvyxg_58"
|
|
1318
|
-
},
|
|
1318
|
+
}, Wn = [
|
|
1319
1319
|
"Su",
|
|
1320
1320
|
"Mo",
|
|
1321
1321
|
"Tu",
|
|
@@ -1323,7 +1323,7 @@ var O = {
|
|
|
1323
1323
|
"Th",
|
|
1324
1324
|
"Fr",
|
|
1325
1325
|
"Sa"
|
|
1326
|
-
],
|
|
1326
|
+
], Gn = [
|
|
1327
1327
|
"January",
|
|
1328
1328
|
"February",
|
|
1329
1329
|
"March",
|
|
@@ -1336,19 +1336,19 @@ var O = {
|
|
|
1336
1336
|
"October",
|
|
1337
1337
|
"November",
|
|
1338
1338
|
"December"
|
|
1339
|
-
],
|
|
1340
|
-
let [
|
|
1339
|
+
], Kn = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), qn = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Jn = ({ mode: e = "single", value: t, onChange: n, range: r, onRangeChange: i, headerType: a = "arrows", defaultMonth: o, minDate: s, maxDate: c, className: l }) => {
|
|
1340
|
+
let [u, d] = T.useState(() => {
|
|
1341
1341
|
let e = o ?? t ?? r?.from ?? /* @__PURE__ */ new Date();
|
|
1342
1342
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
1343
|
-
}), [
|
|
1344
|
-
r === void 0 &&
|
|
1343
|
+
}), [f, p] = T.useState({}), m = _(), h = r === void 0 ? f : r, g = /* @__PURE__ */ new Date(), v = u.getFullYear(), y = u.getMonth(), b = new Date(v, y, 1).getDay(), x = new Date(v, y, 1 - b), ee = Array.from({ length: 42 }, (e, t) => new Date(x.getFullYear(), x.getMonth(), x.getDate() + t)), te = (e) => s && e < qn(s) || c && e > c, S = (e) => {
|
|
1344
|
+
r === void 0 && p(e), i?.(e);
|
|
1345
1345
|
}, ne = (t) => {
|
|
1346
1346
|
if (e === "single") {
|
|
1347
1347
|
n?.(t);
|
|
1348
1348
|
return;
|
|
1349
1349
|
}
|
|
1350
|
-
let { from: r, to: i } =
|
|
1351
|
-
|
|
1350
|
+
let { from: r, to: i } = h;
|
|
1351
|
+
S(!r || r && i ? {
|
|
1352
1352
|
from: t,
|
|
1353
1353
|
to: void 0
|
|
1354
1354
|
} : t < r ? {
|
|
@@ -1359,18 +1359,18 @@ var O = {
|
|
|
1359
1359
|
to: t
|
|
1360
1360
|
});
|
|
1361
1361
|
}, re = (n) => {
|
|
1362
|
-
if (
|
|
1362
|
+
if (te(n)) return "disabled";
|
|
1363
1363
|
if (e === "single") {
|
|
1364
|
-
if (
|
|
1364
|
+
if (Kn(n, t)) return "selected";
|
|
1365
1365
|
} else {
|
|
1366
|
-
let { from: e, to: t } =
|
|
1367
|
-
if (
|
|
1366
|
+
let { from: e, to: t } = h;
|
|
1367
|
+
if (Kn(n, e) || Kn(n, t)) return "selected";
|
|
1368
1368
|
if (e && t && n > e && n < t) return "in-range";
|
|
1369
1369
|
}
|
|
1370
|
-
return n.getMonth() ===
|
|
1371
|
-
}, ie =
|
|
1370
|
+
return n.getMonth() === y ? Kn(n, g) ? "today" : "default" : "outside";
|
|
1371
|
+
}, ie = s ? s.getFullYear() : v - 10, ae = c ? c.getFullYear() : v + 10, oe = Array.from({ length: ae - ie + 1 }, (e, t) => ie + t);
|
|
1372
1372
|
return /* @__PURE__ */ D("div", {
|
|
1373
|
-
className: [B.calendar,
|
|
1373
|
+
className: [B.calendar, l ?? ""].filter(Boolean).join(" "),
|
|
1374
1374
|
children: [
|
|
1375
1375
|
/* @__PURE__ */ D("div", {
|
|
1376
1376
|
className: B.header,
|
|
@@ -1378,28 +1378,28 @@ var O = {
|
|
|
1378
1378
|
/* @__PURE__ */ E("button", {
|
|
1379
1379
|
type: "button",
|
|
1380
1380
|
className: B.navBtn,
|
|
1381
|
-
onClick: () =>
|
|
1381
|
+
onClick: () => d(new Date(v, y - 1, 1)),
|
|
1382
1382
|
"aria-label": "Previous month",
|
|
1383
|
-
children: /* @__PURE__ */ E(
|
|
1383
|
+
children: /* @__PURE__ */ E(ct, {
|
|
1384
1384
|
size: 16,
|
|
1385
|
-
strokeWidth:
|
|
1385
|
+
strokeWidth: w(16)
|
|
1386
1386
|
})
|
|
1387
1387
|
}),
|
|
1388
1388
|
a === "dropdowns" ? /* @__PURE__ */ D("span", {
|
|
1389
1389
|
className: B.dropdowns,
|
|
1390
1390
|
children: [/* @__PURE__ */ E("select", {
|
|
1391
1391
|
className: B.dropdown,
|
|
1392
|
-
value:
|
|
1393
|
-
onChange: (e) =>
|
|
1392
|
+
value: y,
|
|
1393
|
+
onChange: (e) => d(new Date(v, Number(e.target.value), 1)),
|
|
1394
1394
|
"aria-label": "Month",
|
|
1395
|
-
children:
|
|
1395
|
+
children: Gn.map((e, t) => /* @__PURE__ */ E("option", {
|
|
1396
1396
|
value: t,
|
|
1397
1397
|
children: e
|
|
1398
1398
|
}, e))
|
|
1399
1399
|
}), /* @__PURE__ */ E("select", {
|
|
1400
1400
|
className: B.dropdown,
|
|
1401
|
-
value:
|
|
1402
|
-
onChange: (e) =>
|
|
1401
|
+
value: v,
|
|
1402
|
+
onChange: (e) => d(new Date(Number(e.target.value), y, 1)),
|
|
1403
1403
|
"aria-label": "Year",
|
|
1404
1404
|
children: oe.map((e) => /* @__PURE__ */ E("option", {
|
|
1405
1405
|
value: e,
|
|
@@ -1409,35 +1409,35 @@ var O = {
|
|
|
1409
1409
|
}) : /* @__PURE__ */ D("span", {
|
|
1410
1410
|
className: B.header__label,
|
|
1411
1411
|
children: [
|
|
1412
|
-
|
|
1412
|
+
Gn[y],
|
|
1413
1413
|
" ",
|
|
1414
|
-
|
|
1414
|
+
v
|
|
1415
1415
|
]
|
|
1416
1416
|
}),
|
|
1417
1417
|
/* @__PURE__ */ E("button", {
|
|
1418
1418
|
type: "button",
|
|
1419
1419
|
className: B.navBtn,
|
|
1420
|
-
onClick: () =>
|
|
1420
|
+
onClick: () => d(new Date(v, y + 1, 1)),
|
|
1421
1421
|
"aria-label": "Next month",
|
|
1422
|
-
children: /* @__PURE__ */ E(
|
|
1422
|
+
children: /* @__PURE__ */ E(lt, {
|
|
1423
1423
|
size: 16,
|
|
1424
|
-
strokeWidth:
|
|
1424
|
+
strokeWidth: w(16)
|
|
1425
1425
|
})
|
|
1426
1426
|
})
|
|
1427
1427
|
]
|
|
1428
1428
|
}),
|
|
1429
1429
|
/* @__PURE__ */ E("div", {
|
|
1430
1430
|
className: B.weekdays,
|
|
1431
|
-
children:
|
|
1431
|
+
children: Wn.map((e) => /* @__PURE__ */ E("span", {
|
|
1432
1432
|
className: B.weekday,
|
|
1433
1433
|
children: e
|
|
1434
1434
|
}, e))
|
|
1435
1435
|
}),
|
|
1436
1436
|
/* @__PURE__ */ D("div", {
|
|
1437
|
-
ref:
|
|
1438
|
-
...
|
|
1437
|
+
ref: m.ref,
|
|
1438
|
+
...m.groupProps,
|
|
1439
1439
|
className: B.grid,
|
|
1440
|
-
children: [
|
|
1440
|
+
children: [m.highlight, ee.map((e, t) => {
|
|
1441
1441
|
let n = re(e);
|
|
1442
1442
|
return /* @__PURE__ */ E("button", {
|
|
1443
1443
|
type: "button",
|
|
@@ -1469,7 +1469,7 @@ var O = {
|
|
|
1469
1469
|
card__actions: "_card__actions_1qpcc_57",
|
|
1470
1470
|
"card__actions--split": "_card__actions--split_1qpcc_66",
|
|
1471
1471
|
card__actionsGroup: "_card__actionsGroup_1qpcc_67"
|
|
1472
|
-
},
|
|
1472
|
+
}, Yn = ({ title: e, description: t, actions: n, leadingAction: r, interactive: i, children: a, className: o }) => /* @__PURE__ */ D("div", {
|
|
1473
1473
|
className: [
|
|
1474
1474
|
V.card,
|
|
1475
1475
|
i ? V["card--interactive"] : "",
|
|
@@ -1542,52 +1542,52 @@ var O = {
|
|
|
1542
1542
|
panel__loading: "_panel__loading_1oby0_255",
|
|
1543
1543
|
panel__spinner: "_panel__spinner_1oby0_259",
|
|
1544
1544
|
"sakani-cb-spin": "_sakani-cb-spin_1oby0_1"
|
|
1545
|
-
},
|
|
1546
|
-
let
|
|
1545
|
+
}, Xn = ({ 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 }) => {
|
|
1546
|
+
let f = T.useId(), [p, m] = T.useState(!1), [h, g] = T.useState(!1), [_, v] = T.useState(0), y = T.useRef(null), b = e;
|
|
1547
1547
|
T.useEffect(() => {
|
|
1548
|
-
|
|
1549
|
-
}, [
|
|
1550
|
-
let
|
|
1548
|
+
p && g(!0);
|
|
1549
|
+
}, [p]);
|
|
1550
|
+
let x = T.useRef({}), ee = T.useRef(null), [te, S] = T.useState(null), [ne, re] = T.useState(!1);
|
|
1551
1551
|
T.useLayoutEffect(() => {
|
|
1552
|
-
let e =
|
|
1552
|
+
let e = x.current[_];
|
|
1553
1553
|
if (!e) {
|
|
1554
|
-
|
|
1554
|
+
S(null);
|
|
1555
1555
|
return;
|
|
1556
1556
|
}
|
|
1557
|
-
|
|
1557
|
+
S({
|
|
1558
1558
|
top: e.offsetTop,
|
|
1559
1559
|
height: e.offsetHeight
|
|
1560
1560
|
});
|
|
1561
|
-
}, [
|
|
1562
|
-
if (!
|
|
1561
|
+
}, [_, b.length]), T.useLayoutEffect(() => {
|
|
1562
|
+
if (!h) {
|
|
1563
1563
|
re(!1);
|
|
1564
1564
|
return;
|
|
1565
1565
|
}
|
|
1566
1566
|
re(!1);
|
|
1567
1567
|
let e = window.requestAnimationFrame(() => re(!0));
|
|
1568
1568
|
return () => window.cancelAnimationFrame(e);
|
|
1569
|
-
}, [
|
|
1569
|
+
}, [h]), T.useEffect(() => {
|
|
1570
1570
|
if (!ee.current) return;
|
|
1571
1571
|
let e = new ResizeObserver(() => {
|
|
1572
|
-
let e =
|
|
1573
|
-
e &&
|
|
1572
|
+
let e = x.current[_];
|
|
1573
|
+
e && S({
|
|
1574
1574
|
top: e.offsetTop,
|
|
1575
1575
|
height: e.offsetHeight
|
|
1576
1576
|
});
|
|
1577
1577
|
});
|
|
1578
1578
|
return e.observe(ee.current), () => e.disconnect();
|
|
1579
|
-
}, [
|
|
1580
|
-
let [ie, ae] = T.useState(t === "multi" ? [] : ""), oe =
|
|
1579
|
+
}, [h]);
|
|
1580
|
+
let [ie, ae] = T.useState(t === "multi" ? [] : ""), oe = l === void 0 ? ie : l, C = Array.isArray(oe) ? oe : oe ? [oe] : [], [se, ce] = T.useState(() => C.map((e) => ({
|
|
1581
1581
|
value: e,
|
|
1582
1582
|
leaving: !1
|
|
1583
|
-
}))), le =
|
|
1583
|
+
}))), le = C.join("\0");
|
|
1584
1584
|
T.useLayoutEffect(() => {
|
|
1585
1585
|
ce((e) => {
|
|
1586
1586
|
let t = e.map((e) => ({
|
|
1587
1587
|
value: e.value,
|
|
1588
|
-
leaving: !
|
|
1588
|
+
leaving: !C.includes(e.value)
|
|
1589
1589
|
}));
|
|
1590
|
-
for (let e of
|
|
1590
|
+
for (let e of C) t.some((t) => t.value === e) || t.push({
|
|
1591
1591
|
value: e,
|
|
1592
1592
|
leaving: !1
|
|
1593
1593
|
});
|
|
@@ -1597,45 +1597,45 @@ var O = {
|
|
|
1597
1597
|
let ue = (e) => ce((t) => t.filter((t) => !(t.value === e && t.leaving))), de = !!a;
|
|
1598
1598
|
T.useEffect(() => {
|
|
1599
1599
|
let e = (e) => {
|
|
1600
|
-
|
|
1600
|
+
y.current && !y.current.contains(e.target) && m(!1);
|
|
1601
1601
|
};
|
|
1602
1602
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1603
1603
|
}, []);
|
|
1604
1604
|
let fe = (e) => {
|
|
1605
|
-
|
|
1605
|
+
l === void 0 && ae(e), u?.(e);
|
|
1606
1606
|
}, pe = (e) => {
|
|
1607
1607
|
if (!e.disabled) if (t === "multi") {
|
|
1608
|
-
let t = new Set(
|
|
1608
|
+
let t = new Set(C);
|
|
1609
1609
|
t.has(e.value) ? t.delete(e.value) : t.add(e.value), fe([...t]);
|
|
1610
|
-
} else fe(e.value),
|
|
1611
|
-
}, me = (t) => e.find((e) => e.value === t)?.label ?? t, he =
|
|
1612
|
-
|
|
1613
|
-
}, _e =
|
|
1610
|
+
} else fe(e.value), m(!1);
|
|
1611
|
+
}, me = (t) => e.find((e) => e.value === t)?.label ?? t, he = C.length ? me(C[0]) : "", ge = (e) => {
|
|
1612
|
+
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[_] ? pe(b[_]) : m(!0)) : e.key === "Escape" && m(!1));
|
|
1613
|
+
}, _e = s ? "disabled" : de ? "error" : p ? "open" : "default";
|
|
1614
1614
|
return /* @__PURE__ */ D("div", {
|
|
1615
|
-
className: [H.field,
|
|
1616
|
-
ref:
|
|
1615
|
+
className: [H.field, d ?? ""].filter(Boolean).join(" "),
|
|
1616
|
+
ref: y,
|
|
1617
1617
|
children: [
|
|
1618
1618
|
r && /* @__PURE__ */ E("label", {
|
|
1619
|
-
htmlFor: `${
|
|
1619
|
+
htmlFor: `${f}-trigger`,
|
|
1620
1620
|
className: H.field__label,
|
|
1621
1621
|
children: r
|
|
1622
1622
|
}),
|
|
1623
1623
|
/* @__PURE__ */ D("div", {
|
|
1624
|
-
id: `${
|
|
1624
|
+
id: `${f}-trigger`,
|
|
1625
1625
|
role: "combobox",
|
|
1626
|
-
tabIndex:
|
|
1626
|
+
tabIndex: s ? -1 : 0,
|
|
1627
1627
|
"aria-haspopup": "listbox",
|
|
1628
|
-
"aria-expanded":
|
|
1629
|
-
"aria-controls": `${
|
|
1628
|
+
"aria-expanded": p,
|
|
1629
|
+
"aria-controls": `${f}-panel`,
|
|
1630
1630
|
"aria-invalid": de || void 0,
|
|
1631
|
-
"aria-disabled":
|
|
1632
|
-
"aria-activedescendant":
|
|
1631
|
+
"aria-disabled": s || void 0,
|
|
1632
|
+
"aria-activedescendant": p && b[_] ? `${f}-opt-${_}` : void 0,
|
|
1633
1633
|
className: [
|
|
1634
1634
|
H.control,
|
|
1635
1635
|
H[`control--${n}`],
|
|
1636
1636
|
H[`control--${_e}`]
|
|
1637
1637
|
].join(" "),
|
|
1638
|
-
onClick: () => !
|
|
1638
|
+
onClick: () => !s && m((e) => !e),
|
|
1639
1639
|
onKeyDown: ge,
|
|
1640
1640
|
children: [
|
|
1641
1641
|
t === "multi" && se.length > 0 && /* @__PURE__ */ E("div", {
|
|
@@ -1661,7 +1661,7 @@ var O = {
|
|
|
1661
1661
|
children: t === "single" && he ? he : o
|
|
1662
1662
|
}),
|
|
1663
1663
|
/* @__PURE__ */ E("span", {
|
|
1664
|
-
className: [H.control__chevron,
|
|
1664
|
+
className: [H.control__chevron, p ? H["control__chevron--open"] : ""].join(" "),
|
|
1665
1665
|
"aria-hidden": "true",
|
|
1666
1666
|
children: /* @__PURE__ */ E("svg", {
|
|
1667
1667
|
width: 16,
|
|
@@ -1669,7 +1669,7 @@ var O = {
|
|
|
1669
1669
|
viewBox: "0 0 24 24",
|
|
1670
1670
|
fill: "none",
|
|
1671
1671
|
stroke: "currentColor",
|
|
1672
|
-
strokeWidth:
|
|
1672
|
+
strokeWidth: w(16),
|
|
1673
1673
|
strokeLinecap: "round",
|
|
1674
1674
|
strokeLinejoin: "round",
|
|
1675
1675
|
children: /* @__PURE__ */ E("path", { d: "m6 9 6 6 6-6" })
|
|
@@ -1677,39 +1677,39 @@ var O = {
|
|
|
1677
1677
|
})
|
|
1678
1678
|
]
|
|
1679
1679
|
}),
|
|
1680
|
-
|
|
1680
|
+
h && !s && /* @__PURE__ */ E("div", {
|
|
1681
1681
|
ref: ee,
|
|
1682
|
-
className: [H.panel,
|
|
1683
|
-
id: `${
|
|
1682
|
+
className: [H.panel, p ? H["panel--entering"] : H["panel--exiting"]].filter(Boolean).join(" "),
|
|
1683
|
+
id: `${f}-panel`,
|
|
1684
1684
|
role: "listbox",
|
|
1685
1685
|
"aria-multiselectable": t === "multi" || void 0,
|
|
1686
|
-
"aria-busy":
|
|
1686
|
+
"aria-busy": c || void 0,
|
|
1687
1687
|
onAnimationEnd: () => {
|
|
1688
|
-
|
|
1688
|
+
p || g(!1);
|
|
1689
1689
|
},
|
|
1690
|
-
children:
|
|
1690
|
+
children: c ? /* @__PURE__ */ D("div", {
|
|
1691
1691
|
className: H.panel__loading,
|
|
1692
1692
|
children: [/* @__PURE__ */ E("span", {
|
|
1693
1693
|
className: H.panel__spinner,
|
|
1694
1694
|
"aria-hidden": "true"
|
|
1695
1695
|
}), "Loading…"]
|
|
1696
|
-
}) :
|
|
1696
|
+
}) : b.length === 0 ? /* @__PURE__ */ E("div", {
|
|
1697
1697
|
className: H.panel__empty,
|
|
1698
1698
|
children: "No options available"
|
|
1699
|
-
}) : /* @__PURE__ */ D(
|
|
1699
|
+
}) : /* @__PURE__ */ D(rt, { children: [te && /* @__PURE__ */ E("span", {
|
|
1700
1700
|
"aria-hidden": "true",
|
|
1701
1701
|
className: [H.optionHighlight, ne ? H["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
|
|
1702
1702
|
style: {
|
|
1703
|
-
transform: `translateY(${
|
|
1704
|
-
height:
|
|
1703
|
+
transform: `translateY(${te.top}px)`,
|
|
1704
|
+
height: te.height
|
|
1705
1705
|
}
|
|
1706
|
-
}),
|
|
1707
|
-
let r =
|
|
1706
|
+
}), b.map((e, n) => {
|
|
1707
|
+
let r = C.includes(e.value);
|
|
1708
1708
|
return /* @__PURE__ */ D("div", {
|
|
1709
1709
|
ref: (e) => {
|
|
1710
|
-
|
|
1710
|
+
x.current[n] = e;
|
|
1711
1711
|
},
|
|
1712
|
-
id: `${
|
|
1712
|
+
id: `${f}-opt-${n}`,
|
|
1713
1713
|
role: "option",
|
|
1714
1714
|
"aria-selected": r,
|
|
1715
1715
|
className: [
|
|
@@ -1718,7 +1718,7 @@ var O = {
|
|
|
1718
1718
|
e.disabled ? H["option--disabled"] : ""
|
|
1719
1719
|
].filter(Boolean).join(" "),
|
|
1720
1720
|
onMouseEnter: () => {
|
|
1721
|
-
e.disabled ||
|
|
1721
|
+
e.disabled || v(n);
|
|
1722
1722
|
},
|
|
1723
1723
|
onClick: () => pe(e),
|
|
1724
1724
|
children: [
|
|
@@ -1731,7 +1731,7 @@ var O = {
|
|
|
1731
1731
|
viewBox: "0 0 24 24",
|
|
1732
1732
|
fill: "none",
|
|
1733
1733
|
stroke: "currentColor",
|
|
1734
|
-
strokeWidth:
|
|
1734
|
+
strokeWidth: w(12),
|
|
1735
1735
|
strokeLinecap: "round",
|
|
1736
1736
|
strokeLinejoin: "round",
|
|
1737
1737
|
children: /* @__PURE__ */ E("polyline", { points: "20 6 9 17 4 12" })
|
|
@@ -1785,25 +1785,25 @@ var O = {
|
|
|
1785
1785
|
file__icon: "_file__icon_1j16e_45",
|
|
1786
1786
|
file__name: "_file__name_1j16e_46",
|
|
1787
1787
|
file__remove: "_file__remove_1j16e_47"
|
|
1788
|
-
},
|
|
1789
|
-
let a = T.useRef(null), [o,
|
|
1790
|
-
|
|
1791
|
-
},
|
|
1788
|
+
}, Zn = ({ accept: e, multiple: t, hint: n = "SVG, PNG, JPG or PDF (max. 2MB)", onFilesChange: r, className: i }) => {
|
|
1789
|
+
let a = T.useRef(null), [o, s] = T.useState(!1), [c, l] = T.useState([]), u = (e) => {
|
|
1790
|
+
l(e), r?.(e);
|
|
1791
|
+
}, d = (e) => {
|
|
1792
1792
|
if (!e) return;
|
|
1793
1793
|
let n = Array.from(e);
|
|
1794
|
-
|
|
1795
|
-
},
|
|
1794
|
+
u(t ? [...c, ...n] : n.slice(0, 1));
|
|
1795
|
+
}, f = (e) => u(c.filter((t, n) => n !== e));
|
|
1796
1796
|
return /* @__PURE__ */ D("div", {
|
|
1797
1797
|
className: [U.wrap, i ?? ""].filter(Boolean).join(" "),
|
|
1798
1798
|
children: [/* @__PURE__ */ D("div", {
|
|
1799
1799
|
className: [U.dropzone, o ? U["dropzone--dragging"] : ""].filter(Boolean).join(" "),
|
|
1800
1800
|
onClick: () => a.current?.click(),
|
|
1801
1801
|
onDragOver: (e) => {
|
|
1802
|
-
e.preventDefault(),
|
|
1802
|
+
e.preventDefault(), s(!0);
|
|
1803
1803
|
},
|
|
1804
|
-
onDragLeave: () =>
|
|
1804
|
+
onDragLeave: () => s(!1),
|
|
1805
1805
|
onDrop: (e) => {
|
|
1806
|
-
e.preventDefault(),
|
|
1806
|
+
e.preventDefault(), s(!1), d(e.dataTransfer.files);
|
|
1807
1807
|
},
|
|
1808
1808
|
role: "button",
|
|
1809
1809
|
tabIndex: 0,
|
|
@@ -1814,9 +1814,9 @@ var O = {
|
|
|
1814
1814
|
/* @__PURE__ */ E("span", {
|
|
1815
1815
|
className: U.dropzone__icon,
|
|
1816
1816
|
"aria-hidden": "true",
|
|
1817
|
-
children: /* @__PURE__ */ E(
|
|
1817
|
+
children: /* @__PURE__ */ E(Et, {
|
|
1818
1818
|
size: 22,
|
|
1819
|
-
strokeWidth:
|
|
1819
|
+
strokeWidth: w(22)
|
|
1820
1820
|
})
|
|
1821
1821
|
}),
|
|
1822
1822
|
/* @__PURE__ */ D("span", {
|
|
@@ -1836,20 +1836,20 @@ var O = {
|
|
|
1836
1836
|
accept: e,
|
|
1837
1837
|
multiple: t,
|
|
1838
1838
|
className: U.input,
|
|
1839
|
-
onChange: (e) =>
|
|
1839
|
+
onChange: (e) => d(e.target.files)
|
|
1840
1840
|
})
|
|
1841
1841
|
]
|
|
1842
|
-
}),
|
|
1842
|
+
}), c.length > 0 && /* @__PURE__ */ E("ul", {
|
|
1843
1843
|
className: U.files,
|
|
1844
|
-
children:
|
|
1844
|
+
children: c.map((e, t) => /* @__PURE__ */ D("li", {
|
|
1845
1845
|
className: U.file,
|
|
1846
1846
|
children: [
|
|
1847
1847
|
/* @__PURE__ */ E("span", {
|
|
1848
1848
|
className: U.file__icon,
|
|
1849
1849
|
"aria-hidden": "true",
|
|
1850
|
-
children: /* @__PURE__ */ E(
|
|
1850
|
+
children: /* @__PURE__ */ E(ft, {
|
|
1851
1851
|
size: 16,
|
|
1852
|
-
strokeWidth:
|
|
1852
|
+
strokeWidth: w(16)
|
|
1853
1853
|
})
|
|
1854
1854
|
}),
|
|
1855
1855
|
/* @__PURE__ */ E("span", {
|
|
@@ -1859,11 +1859,11 @@ var O = {
|
|
|
1859
1859
|
/* @__PURE__ */ E("button", {
|
|
1860
1860
|
type: "button",
|
|
1861
1861
|
className: U.file__remove,
|
|
1862
|
-
onClick: () =>
|
|
1862
|
+
onClick: () => f(t),
|
|
1863
1863
|
"aria-label": `Remove ${e.name}`,
|
|
1864
|
-
children: /* @__PURE__ */ E(
|
|
1864
|
+
children: /* @__PURE__ */ E(Dt, {
|
|
1865
1865
|
size: 14,
|
|
1866
|
-
strokeWidth:
|
|
1866
|
+
strokeWidth: w(14)
|
|
1867
1867
|
})
|
|
1868
1868
|
})
|
|
1869
1869
|
]
|
|
@@ -1883,22 +1883,22 @@ var O = {
|
|
|
1883
1883
|
tooltip__dot: "_tooltip__dot_1m9hd_68",
|
|
1884
1884
|
tooltip__label: "_tooltip__label_1m9hd_74",
|
|
1885
1885
|
tooltip__value: "_tooltip__value_1m9hd_75"
|
|
1886
|
-
},
|
|
1886
|
+
}, Qn = {
|
|
1887
1887
|
sm: 180,
|
|
1888
1888
|
md: 240,
|
|
1889
1889
|
lg: 320,
|
|
1890
1890
|
xl: 420
|
|
1891
|
-
},
|
|
1892
|
-
let [r, i] = T.useState(null), a = T.useRef(null), o =
|
|
1893
|
-
g.push(h(e[e.length - 1]?.value ?? 0) *
|
|
1894
|
-
let _ = (t) => e.length <= 1 ? 1 :
|
|
1891
|
+
}, $n = 560, er = .3, tr = .55, nr = ({ data: e, size: t = "md", className: n }) => {
|
|
1892
|
+
let [r, i] = T.useState(null), a = T.useRef(null), o = Ue(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-bg-canvas") ?? "#fafaf9", l = e[0]?.value || 1, u = Qn[t], d = u * .66, f = d / 2 + 8, p = $n / e.length, m = e[0]?.value || 1, h = (e) => e / m * d, g = e.map((e) => h(e.value));
|
|
1893
|
+
g.push(h(e[e.length - 1]?.value ?? 0) * tr);
|
|
1894
|
+
let _ = (t) => e.length <= 1 ? 1 : er + t / (e.length - 1) * (1 - er), v = r === null ? null : e[r], y = r === null ? 0 : f - g[r] / 2, b = r === null ? 0 : r * p + p / 2;
|
|
1895
1895
|
return /* @__PURE__ */ D("div", {
|
|
1896
1896
|
ref: a,
|
|
1897
1897
|
className: [W.chart, n ?? ""].filter(Boolean).join(" "),
|
|
1898
1898
|
style: { height: u },
|
|
1899
1899
|
children: [
|
|
1900
1900
|
/* @__PURE__ */ E("svg", {
|
|
1901
|
-
viewBox: `0 0 ${
|
|
1901
|
+
viewBox: `0 0 ${$n} ${u}`,
|
|
1902
1902
|
width: "100%",
|
|
1903
1903
|
height: u,
|
|
1904
1904
|
className: W.svg,
|
|
@@ -1940,7 +1940,7 @@ var O = {
|
|
|
1940
1940
|
v && /* @__PURE__ */ D("div", {
|
|
1941
1941
|
className: W.tooltip,
|
|
1942
1942
|
style: {
|
|
1943
|
-
left: `${b /
|
|
1943
|
+
left: `${b / $n * 100}%`,
|
|
1944
1944
|
top: `${y / u * 100}%`,
|
|
1945
1945
|
background: c
|
|
1946
1946
|
},
|
|
@@ -1983,8 +1983,8 @@ var O = {
|
|
|
1983
1983
|
tooltip__dot: "_tooltip__dot_1yc8b_84",
|
|
1984
1984
|
tooltip__label: "_tooltip__label_1yc8b_91",
|
|
1985
1985
|
tooltip__value: "_tooltip__value_1yc8b_92"
|
|
1986
|
-
},
|
|
1987
|
-
let o = T.useRef(null), s =
|
|
1986
|
+
}, rr = .12, ir = .45, ar = ({ data: e, rowLabels: t, colLabels: n, valueLabel: r = "Value", size: i = "md", className: a }) => {
|
|
1987
|
+
let o = T.useRef(null), s = Ue(o), c = T.useRef(null), [l, u] = T.useState(null), d = s("--color-chart-1") ?? "#ff4700", f = Math.max(1, ...e.flat()), p = e[0]?.length ?? 0, m = (e, t, n) => (r) => {
|
|
1988
1988
|
let i = r.currentTarget.getBoundingClientRect(), a = c.current?.getBoundingClientRect();
|
|
1989
1989
|
a && u({
|
|
1990
1990
|
row: e,
|
|
@@ -2010,18 +2010,18 @@ var O = {
|
|
|
2010
2010
|
className: G.rowLabel,
|
|
2011
2011
|
children: t?.[n] ?? ""
|
|
2012
2012
|
}), e.map((e, t) => {
|
|
2013
|
-
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 :
|
|
2013
|
+
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 : rr + e / f * (1 - rr);
|
|
2014
2014
|
return /* @__PURE__ */ E("div", {
|
|
2015
2015
|
className: G.cell,
|
|
2016
2016
|
style: {
|
|
2017
2017
|
background: d,
|
|
2018
|
-
opacity: i ?
|
|
2018
|
+
opacity: i ? ir : a
|
|
2019
2019
|
},
|
|
2020
2020
|
onMouseEnter: m(n, t, e),
|
|
2021
2021
|
onMouseLeave: () => u(null)
|
|
2022
2022
|
}, t);
|
|
2023
2023
|
})] }, n)),
|
|
2024
|
-
n && /* @__PURE__ */ D(
|
|
2024
|
+
n && /* @__PURE__ */ D(rt, { children: [/* @__PURE__ */ E("span", {}), n.map((e, t) => /* @__PURE__ */ E("span", {
|
|
2025
2025
|
className: G.colLabel,
|
|
2026
2026
|
children: e
|
|
2027
2027
|
}, t))] }),
|
|
@@ -2052,23 +2052,23 @@ var O = {
|
|
|
2052
2052
|
]
|
|
2053
2053
|
})
|
|
2054
2054
|
});
|
|
2055
|
-
},
|
|
2056
|
-
className: [
|
|
2055
|
+
}, or = { kbd: "_kbd_1cz4m_3" }, sr = ({ children: e, className: t }) => /* @__PURE__ */ E("kbd", {
|
|
2056
|
+
className: [or.kbd, t ?? ""].filter(Boolean).join(" "),
|
|
2057
2057
|
children: e
|
|
2058
|
-
}),
|
|
2058
|
+
}), cr = {
|
|
2059
2059
|
label: "_label_rcdks_3",
|
|
2060
2060
|
label__required: "_label__required_rcdks_17"
|
|
2061
|
-
},
|
|
2061
|
+
}, lr = T.forwardRef(({ required: e, children: t, className: n, ...r }, i) => /* @__PURE__ */ D("label", {
|
|
2062
2062
|
ref: i,
|
|
2063
|
-
className: [
|
|
2063
|
+
className: [cr.label, n ?? ""].filter(Boolean).join(" "),
|
|
2064
2064
|
...r,
|
|
2065
2065
|
children: [t, e && /* @__PURE__ */ E("span", {
|
|
2066
|
-
className:
|
|
2066
|
+
className: cr.label__required,
|
|
2067
2067
|
"aria-hidden": "true",
|
|
2068
2068
|
children: " *"
|
|
2069
2069
|
})]
|
|
2070
2070
|
}));
|
|
2071
|
-
|
|
2071
|
+
lr.displayName = "Label";
|
|
2072
2072
|
var K = {
|
|
2073
2073
|
item: "_item_4gag1_2",
|
|
2074
2074
|
"item--disabled": "_item--disabled_4gag1_22",
|
|
@@ -2078,7 +2078,7 @@ var K = {
|
|
|
2078
2078
|
item__title: "_item__title_4gag1_32",
|
|
2079
2079
|
item__description: "_item__description_4gag1_33",
|
|
2080
2080
|
item__trailing: "_item__trailing_4gag1_34"
|
|
2081
|
-
},
|
|
2081
|
+
}, ur = ({ title: e, description: t, leading: n, trailing: r, selected: i, disabled: a, onClick: o, className: s }) => /* @__PURE__ */ D("button", {
|
|
2082
2082
|
type: "button",
|
|
2083
2083
|
"data-hover-item": "",
|
|
2084
2084
|
disabled: a,
|
|
@@ -2110,12 +2110,12 @@ var K = {
|
|
|
2110
2110
|
children: r
|
|
2111
2111
|
})
|
|
2112
2112
|
]
|
|
2113
|
-
}),
|
|
2113
|
+
}), dr = {
|
|
2114
2114
|
chart: "_chart_cc7lx_2",
|
|
2115
2115
|
center: "_center_cc7lx_30",
|
|
2116
2116
|
center__value: "_center__value_cc7lx_39",
|
|
2117
2117
|
center__caption: "_center__caption_cc7lx_40"
|
|
2118
|
-
},
|
|
2118
|
+
}, fr = {
|
|
2119
2119
|
sm: {
|
|
2120
2120
|
h: 180,
|
|
2121
2121
|
outer: 72
|
|
@@ -2132,21 +2132,21 @@ var K = {
|
|
|
2132
2132
|
h: 340,
|
|
2133
2133
|
outer: 142
|
|
2134
2134
|
}
|
|
2135
|
-
},
|
|
2135
|
+
}, pr = /* @__PURE__ */ new Set([
|
|
2136
2136
|
"donut",
|
|
2137
2137
|
"donut-active",
|
|
2138
2138
|
"donut-with-text",
|
|
2139
2139
|
"interactive"
|
|
2140
|
-
]),
|
|
2141
|
-
let o = T.useRef(null), s =
|
|
2140
|
+
]), mr = /* @__PURE__ */ new Set(["donut-active"]), hr = /* @__PURE__ */ new Set(["interactive"]), gr = /* @__PURE__ */ new Set(["donut-with-text"]), _r = Math.PI / 180, vr = ({ data: e, variant: t = "donut", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
2141
|
+
let o = T.useRef(null), s = Ue(o), [c, l] = T.useState(void 0), u = [
|
|
2142
2142
|
1,
|
|
2143
2143
|
2,
|
|
2144
2144
|
3,
|
|
2145
2145
|
4,
|
|
2146
2146
|
5
|
|
2147
|
-
].map((e) => s(`--color-chart-${e}`) ??
|
|
2147
|
+
].map((e) => s(`--color-chart-${e}`) ?? Ie[e - 1]), d = s("--color-bg-surface") ?? "#ffffff", f = s("--color-fg-default") ?? "#141414", p = fr[n], m = pr.has(t), h = mr.has(t), g = hr.has(t), _ = m ? p.outer * .6 : 0, v = gr.has(t) && (r || i), y = c ?? (h || g ? 0 : void 0), b = (e) => {
|
|
2148
2148
|
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;
|
|
2149
|
-
return l && g ? /* @__PURE__ */ D("g", { children: [/* @__PURE__ */ E(
|
|
2149
|
+
return l && g ? /* @__PURE__ */ D("g", { children: [/* @__PURE__ */ E(Ut, {
|
|
2150
2150
|
cx: t,
|
|
2151
2151
|
cy: n,
|
|
2152
2152
|
innerRadius: r,
|
|
@@ -2154,7 +2154,7 @@ var K = {
|
|
|
2154
2154
|
startAngle: a,
|
|
2155
2155
|
endAngle: o,
|
|
2156
2156
|
fill: s
|
|
2157
|
-
}), /* @__PURE__ */ E(
|
|
2157
|
+
}), /* @__PURE__ */ E(Ut, {
|
|
2158
2158
|
cx: t,
|
|
2159
2159
|
cy: n,
|
|
2160
2160
|
innerRadius: i + u + 3,
|
|
@@ -2162,7 +2162,7 @@ var K = {
|
|
|
2162
2162
|
startAngle: a,
|
|
2163
2163
|
endAngle: o,
|
|
2164
2164
|
fill: s
|
|
2165
|
-
})] }) : /* @__PURE__ */ E(
|
|
2165
|
+
})] }) : /* @__PURE__ */ E(Ut, {
|
|
2166
2166
|
cx: t,
|
|
2167
2167
|
cy: n,
|
|
2168
2168
|
innerRadius: r,
|
|
@@ -2172,14 +2172,14 @@ var K = {
|
|
|
2172
2172
|
fill: s
|
|
2173
2173
|
});
|
|
2174
2174
|
}, x = (e) => {
|
|
2175
|
-
let { cx: t, cy: n, midAngle: r, outerRadius: i } = e, a = r ?? 0, o = Math.cos(-a *
|
|
2175
|
+
let { cx: t, cy: n, midAngle: r, outerRadius: i } = e, a = r ?? 0, o = Math.cos(-a * _r), s = Math.sin(-a * _r), c = t + i * o, l = n + i * s, u = t + (i + 16) * o, d = n + (i + 16) * s, f = o >= 0, p = u + (f ? 14 : -14);
|
|
2176
2176
|
return {
|
|
2177
2177
|
d: `M ${c} ${l} L ${u} ${d} L ${p} ${d}`,
|
|
2178
2178
|
endX: p,
|
|
2179
2179
|
endY: d,
|
|
2180
2180
|
textAnchor: f ? "start" : "end"
|
|
2181
2181
|
};
|
|
2182
|
-
},
|
|
2182
|
+
}, ee = (e) => {
|
|
2183
2183
|
let { value: t, fill: n } = e, { d: r, endX: i, endY: a, textAnchor: o } = x(e), s = i + (o === "start" ? 4 : -4);
|
|
2184
2184
|
return /* @__PURE__ */ D("g", { children: [/* @__PURE__ */ E("path", {
|
|
2185
2185
|
d: r,
|
|
@@ -2196,7 +2196,7 @@ var K = {
|
|
|
2196
2196
|
fontFamily: "var(--font-sans)",
|
|
2197
2197
|
children: t
|
|
2198
2198
|
})] });
|
|
2199
|
-
},
|
|
2199
|
+
}, te = (e) => {
|
|
2200
2200
|
let { x: t, y: n, textAnchor: r, value: i } = e;
|
|
2201
2201
|
return /* @__PURE__ */ E("text", {
|
|
2202
2202
|
x: t,
|
|
@@ -2209,11 +2209,11 @@ var K = {
|
|
|
2209
2209
|
fontFamily: "var(--font-sans)",
|
|
2210
2210
|
children: i
|
|
2211
2211
|
});
|
|
2212
|
-
},
|
|
2212
|
+
}, S = (t) => {
|
|
2213
2213
|
let { cx: n, cy: r, midAngle: i, innerRadius: a, outerRadius: o, index: s } = t, c = (a + o) / 2;
|
|
2214
2214
|
return /* @__PURE__ */ E("text", {
|
|
2215
|
-
x: n + c * Math.cos(-i *
|
|
2216
|
-
y: r + c * Math.sin(-i *
|
|
2215
|
+
x: n + c * Math.cos(-i * _r),
|
|
2216
|
+
y: r + c * Math.sin(-i * _r),
|
|
2217
2217
|
textAnchor: "middle",
|
|
2218
2218
|
dominantBaseline: "central",
|
|
2219
2219
|
fill: "#fff",
|
|
@@ -2227,13 +2227,13 @@ var K = {
|
|
|
2227
2227
|
let t = (e) => c !== void 0 && c !== e ? .45 : 1;
|
|
2228
2228
|
return /* @__PURE__ */ E("div", {
|
|
2229
2229
|
ref: o,
|
|
2230
|
-
className: [
|
|
2230
|
+
className: [dr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2231
2231
|
style: { height: p.h },
|
|
2232
|
-
children: /* @__PURE__ */ E(
|
|
2232
|
+
children: /* @__PURE__ */ E(Ht, {
|
|
2233
2233
|
width: "100%",
|
|
2234
2234
|
height: "100%",
|
|
2235
|
-
children: /* @__PURE__ */ D(
|
|
2236
|
-
/* @__PURE__ */ E(
|
|
2235
|
+
children: /* @__PURE__ */ D(Pt, { children: [
|
|
2236
|
+
/* @__PURE__ */ E(Nt, {
|
|
2237
2237
|
data: e,
|
|
2238
2238
|
dataKey: "value",
|
|
2239
2239
|
nameKey: "label",
|
|
@@ -2244,12 +2244,12 @@ var K = {
|
|
|
2244
2244
|
isAnimationActive: !1,
|
|
2245
2245
|
onMouseEnter: (e, t) => l(t),
|
|
2246
2246
|
onMouseLeave: () => l(void 0),
|
|
2247
|
-
children: e.map((e, n) => /* @__PURE__ */ E(
|
|
2247
|
+
children: e.map((e, n) => /* @__PURE__ */ E(jt, {
|
|
2248
2248
|
fill: u[n % u.length],
|
|
2249
2249
|
fillOpacity: t(n)
|
|
2250
2250
|
}, n))
|
|
2251
2251
|
}),
|
|
2252
|
-
/* @__PURE__ */ E(
|
|
2252
|
+
/* @__PURE__ */ E(Nt, {
|
|
2253
2253
|
data: e,
|
|
2254
2254
|
dataKey: "value",
|
|
2255
2255
|
nameKey: "label",
|
|
@@ -2260,13 +2260,13 @@ var K = {
|
|
|
2260
2260
|
isAnimationActive: !1,
|
|
2261
2261
|
onMouseEnter: (e, t) => l(t),
|
|
2262
2262
|
onMouseLeave: () => l(void 0),
|
|
2263
|
-
children: e.map((e, n) => /* @__PURE__ */ E(
|
|
2263
|
+
children: e.map((e, n) => /* @__PURE__ */ E(jt, {
|
|
2264
2264
|
fill: u[n % u.length],
|
|
2265
2265
|
fillOpacity: t(n)
|
|
2266
2266
|
}, n))
|
|
2267
2267
|
}),
|
|
2268
|
-
/* @__PURE__ */ E(
|
|
2269
|
-
content: /* @__PURE__ */ E(
|
|
2268
|
+
/* @__PURE__ */ E(Wt, {
|
|
2269
|
+
content: /* @__PURE__ */ E(de, {}),
|
|
2270
2270
|
wrapperStyle: { zIndex: 50 }
|
|
2271
2271
|
})
|
|
2272
2272
|
] })
|
|
@@ -2275,12 +2275,12 @@ var K = {
|
|
|
2275
2275
|
}
|
|
2276
2276
|
return /* @__PURE__ */ D("div", {
|
|
2277
2277
|
ref: o,
|
|
2278
|
-
className: [
|
|
2278
|
+
className: [dr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2279
2279
|
style: { height: p.h },
|
|
2280
|
-
children: [/* @__PURE__ */ E(
|
|
2280
|
+
children: [/* @__PURE__ */ E(Ht, {
|
|
2281
2281
|
width: "100%",
|
|
2282
2282
|
height: "100%",
|
|
2283
|
-
children: /* @__PURE__ */ D(
|
|
2283
|
+
children: /* @__PURE__ */ D(Pt, { children: [/* @__PURE__ */ E(Nt, {
|
|
2284
2284
|
data: e,
|
|
2285
2285
|
dataKey: "value",
|
|
2286
2286
|
nameKey: "label",
|
|
@@ -2291,22 +2291,22 @@ var K = {
|
|
|
2291
2291
|
strokeWidth: t === "pie" ? 2 : 0,
|
|
2292
2292
|
isAnimationActive: !1,
|
|
2293
2293
|
shape: h || g ? b : void 0,
|
|
2294
|
-
label: t === "label" ?
|
|
2294
|
+
label: t === "label" ? ee : t === "custom-label" ? te : t === "label-list" ? S : void 0,
|
|
2295
2295
|
labelLine: !1,
|
|
2296
2296
|
onMouseEnter: (e, t) => l(t),
|
|
2297
2297
|
onMouseLeave: () => l(void 0),
|
|
2298
|
-
children: e.map((e, t) => /* @__PURE__ */ E(
|
|
2299
|
-
}), /* @__PURE__ */ E(
|
|
2300
|
-
content: /* @__PURE__ */ E(
|
|
2298
|
+
children: e.map((e, t) => /* @__PURE__ */ E(jt, { fill: u[t % u.length] }, t))
|
|
2299
|
+
}), /* @__PURE__ */ E(Wt, {
|
|
2300
|
+
content: /* @__PURE__ */ E(de, {}),
|
|
2301
2301
|
wrapperStyle: { zIndex: 50 }
|
|
2302
2302
|
})] })
|
|
2303
2303
|
}), v && /* @__PURE__ */ D("div", {
|
|
2304
|
-
className:
|
|
2304
|
+
className: dr.center,
|
|
2305
2305
|
children: [r && /* @__PURE__ */ E("span", {
|
|
2306
|
-
className:
|
|
2306
|
+
className: dr.center__value,
|
|
2307
2307
|
children: r
|
|
2308
2308
|
}), i && /* @__PURE__ */ E("span", {
|
|
2309
|
-
className:
|
|
2309
|
+
className: dr.center__caption,
|
|
2310
2310
|
children: i
|
|
2311
2311
|
})]
|
|
2312
2312
|
})]
|
|
@@ -2329,7 +2329,7 @@ var K = {
|
|
|
2329
2329
|
panel__description: "_panel__description_16f5u_76",
|
|
2330
2330
|
panel__body: "_panel__body_16f5u_77",
|
|
2331
2331
|
panel__actions: "_panel__actions_16f5u_78"
|
|
2332
|
-
},
|
|
2332
|
+
}, yr = ({ trigger: e, title: t, description: n, actions: r, placement: i = "bottom-start", children: a, className: o }) => {
|
|
2333
2333
|
let [s, c] = T.useState(!1), [l, u] = T.useState(!1), d = T.useRef(null), f = T.useRef(null);
|
|
2334
2334
|
return T.useEffect(() => {
|
|
2335
2335
|
s && u(!0);
|
|
@@ -2388,19 +2388,19 @@ var K = {
|
|
|
2388
2388
|
]
|
|
2389
2389
|
})]
|
|
2390
2390
|
});
|
|
2391
|
-
},
|
|
2391
|
+
}, br = {
|
|
2392
2392
|
chart: "_chart_q6xhl_2",
|
|
2393
2393
|
circleFillSvg: "_circleFillSvg_q6xhl_17"
|
|
2394
|
-
},
|
|
2394
|
+
}, xr = {
|
|
2395
2395
|
sm: 200,
|
|
2396
2396
|
md: 260,
|
|
2397
2397
|
lg: 340,
|
|
2398
2398
|
xl: 420
|
|
2399
|
-
},
|
|
2399
|
+
}, Sr = /* @__PURE__ */ new Set([
|
|
2400
2400
|
"circle-grid",
|
|
2401
2401
|
"circle-grid-no-lines",
|
|
2402
2402
|
"circle-grid-filled"
|
|
2403
|
-
]),
|
|
2403
|
+
]), Cr = /* @__PURE__ */ new Set(["default", "grid-custom"]), wr = /* @__PURE__ */ new Set(["dots-grid-none"]), Tr = /* @__PURE__ */ new Set(["grid-filled"]), Er = (e) => e === "circle-grid-filled", Dr = /* @__PURE__ */ new Set([
|
|
2404
2404
|
"default",
|
|
2405
2405
|
"dots",
|
|
2406
2406
|
"dots-grid-none",
|
|
@@ -2411,32 +2411,32 @@ var K = {
|
|
|
2411
2411
|
"grid-custom",
|
|
2412
2412
|
"grid-filled",
|
|
2413
2413
|
"circle-grid-filled"
|
|
2414
|
-
]),
|
|
2414
|
+
]), Or = [
|
|
2415
2415
|
1,
|
|
2416
2416
|
.8,
|
|
2417
2417
|
.6,
|
|
2418
2418
|
.4,
|
|
2419
2419
|
.2
|
|
2420
|
-
],
|
|
2421
|
-
let a = T.useRef(null), o =
|
|
2420
|
+
], kr = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
|
|
2421
|
+
let a = T.useRef(null), o = Ue(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 = Tr.has(t), _ = Cr.has(t), v = wr.has(t), y = Er(t), [b, x] = T.useState(0);
|
|
2422
2422
|
T.useEffect(() => {
|
|
2423
2423
|
if (!y || !a.current) return;
|
|
2424
2424
|
let e = a.current, t = new ResizeObserver(([e]) => x(e.contentRect.width));
|
|
2425
2425
|
return t.observe(e), () => t.disconnect();
|
|
2426
2426
|
}, [y]);
|
|
2427
|
-
let
|
|
2427
|
+
let ee = T.useMemo(() => {
|
|
2428
2428
|
if (!g) return e;
|
|
2429
2429
|
let t = Math.max(1, ...e.flatMap((e) => [e.value, e.value2 ?? 0]));
|
|
2430
2430
|
return e.map((e) => {
|
|
2431
2431
|
let n = {};
|
|
2432
|
-
return
|
|
2432
|
+
return Or.forEach((e, r) => {
|
|
2433
2433
|
n[`ring${r}`] = e * t;
|
|
2434
2434
|
}), {
|
|
2435
2435
|
...e,
|
|
2436
2436
|
...n
|
|
2437
2437
|
};
|
|
2438
2438
|
});
|
|
2439
|
-
}, [e, g]),
|
|
2439
|
+
}, [e, g]), te = (t) => {
|
|
2440
2440
|
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];
|
|
2441
2441
|
if (!c) return /* @__PURE__ */ E("g", {});
|
|
2442
2442
|
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;
|
|
@@ -2465,56 +2465,56 @@ var K = {
|
|
|
2465
2465
|
fontFamily: "var(--font-sans)",
|
|
2466
2466
|
children: c.label
|
|
2467
2467
|
})] });
|
|
2468
|
-
},
|
|
2468
|
+
}, S = xr[n], ne = (b > 0 ? Math.min(b, S) / 2 - 5 : 0) * .7;
|
|
2469
2469
|
return /* @__PURE__ */ D("div", {
|
|
2470
2470
|
ref: a,
|
|
2471
|
-
className: [
|
|
2471
|
+
className: [br.chart, i ?? ""].filter(Boolean).join(" "),
|
|
2472
2472
|
children: [y && b > 0 && /* @__PURE__ */ E("svg", {
|
|
2473
|
-
className:
|
|
2473
|
+
className: br.circleFillSvg,
|
|
2474
2474
|
width: b,
|
|
2475
|
-
height:
|
|
2476
|
-
children:
|
|
2475
|
+
height: S,
|
|
2476
|
+
children: Or.map((e) => /* @__PURE__ */ E("circle", {
|
|
2477
2477
|
cx: b / 2,
|
|
2478
|
-
cy:
|
|
2479
|
-
r:
|
|
2478
|
+
cy: S / 2,
|
|
2479
|
+
r: ne * e,
|
|
2480
2480
|
fill: c,
|
|
2481
2481
|
fillOpacity: .1
|
|
2482
2482
|
}, e))
|
|
2483
|
-
}), /* @__PURE__ */ E(
|
|
2483
|
+
}), /* @__PURE__ */ E(Ht, {
|
|
2484
2484
|
width: "100%",
|
|
2485
|
-
height:
|
|
2486
|
-
children: /* @__PURE__ */ D(
|
|
2487
|
-
data:
|
|
2485
|
+
height: S,
|
|
2486
|
+
children: /* @__PURE__ */ D(zt, {
|
|
2487
|
+
data: ee,
|
|
2488
2488
|
outerRadius: "70%",
|
|
2489
2489
|
children: [
|
|
2490
|
-
!g && !v && /* @__PURE__ */ E(
|
|
2491
|
-
gridType:
|
|
2490
|
+
!g && !v && /* @__PURE__ */ E(It, {
|
|
2491
|
+
gridType: Sr.has(t) ? "circle" : "polygon",
|
|
2492
2492
|
radialLines: t !== "circle-grid-no-lines" && !_,
|
|
2493
2493
|
stroke: l
|
|
2494
2494
|
}),
|
|
2495
|
-
/* @__PURE__ */ E(
|
|
2495
|
+
/* @__PURE__ */ E(Ft, {
|
|
2496
2496
|
dataKey: "label",
|
|
2497
2497
|
axisLine: !1,
|
|
2498
|
-
tick: t === "custom-label" ?
|
|
2498
|
+
tick: t === "custom-label" ? te : {
|
|
2499
2499
|
fill: u,
|
|
2500
2500
|
fontSize: 12,
|
|
2501
2501
|
fontFamily: "var(--font-sans)"
|
|
2502
2502
|
}
|
|
2503
2503
|
}),
|
|
2504
|
-
/* @__PURE__ */ E(
|
|
2504
|
+
/* @__PURE__ */ E(Lt, {
|
|
2505
2505
|
tick: !1,
|
|
2506
2506
|
axisLine: !1,
|
|
2507
2507
|
tickCount: _ ? 2 : void 0
|
|
2508
2508
|
}),
|
|
2509
|
-
/* @__PURE__ */ E(
|
|
2510
|
-
content: /* @__PURE__ */ E(
|
|
2509
|
+
/* @__PURE__ */ E(Wt, {
|
|
2510
|
+
content: /* @__PURE__ */ E(de, {}),
|
|
2511
2511
|
wrapperStyle: { zIndex: 50 }
|
|
2512
2512
|
}),
|
|
2513
|
-
d && /* @__PURE__ */ E(
|
|
2513
|
+
d && /* @__PURE__ */ E(Mt, { wrapperStyle: {
|
|
2514
2514
|
fontSize: 12,
|
|
2515
2515
|
fontFamily: "var(--font-sans)"
|
|
2516
2516
|
} }),
|
|
2517
|
-
g &&
|
|
2517
|
+
g && Or.map((e, t) => /* @__PURE__ */ E(Rt, {
|
|
2518
2518
|
dataKey: `ring${t}`,
|
|
2519
2519
|
stroke: "none",
|
|
2520
2520
|
fill: c,
|
|
@@ -2522,13 +2522,13 @@ var K = {
|
|
|
2522
2522
|
isAnimationActive: !1,
|
|
2523
2523
|
legendType: "none"
|
|
2524
2524
|
}, `ring${t}`)),
|
|
2525
|
-
/* @__PURE__ */ E(
|
|
2525
|
+
/* @__PURE__ */ E(Rt, {
|
|
2526
2526
|
name: d ? r[0] ?? "Value" : void 0,
|
|
2527
2527
|
dataKey: "value",
|
|
2528
|
-
stroke:
|
|
2528
|
+
stroke: Dr.has(t) ? "none" : c,
|
|
2529
2529
|
fill: m ? c : "none",
|
|
2530
2530
|
fillOpacity: m ? _ ? 1 : p ? .45 : .5 : 0,
|
|
2531
|
-
strokeWidth:
|
|
2531
|
+
strokeWidth: Dr.has(t) ? 0 : 2,
|
|
2532
2532
|
dot: h ? {
|
|
2533
2533
|
r: 4,
|
|
2534
2534
|
fill: c,
|
|
@@ -2536,7 +2536,7 @@ var K = {
|
|
|
2536
2536
|
} : !1,
|
|
2537
2537
|
isAnimationActive: !1
|
|
2538
2538
|
}),
|
|
2539
|
-
p && /* @__PURE__ */ E(
|
|
2539
|
+
p && /* @__PURE__ */ E(Rt, {
|
|
2540
2540
|
name: d ? r[1] ?? "Value 2" : void 0,
|
|
2541
2541
|
dataKey: "value2",
|
|
2542
2542
|
stroke: f ? s : "none",
|
|
@@ -2561,17 +2561,17 @@ var K = {
|
|
|
2561
2561
|
center: "_center_1ogmh_36",
|
|
2562
2562
|
center__value: "_center__value_1ogmh_45",
|
|
2563
2563
|
center__caption: "_center__caption_1ogmh_46"
|
|
2564
|
-
},
|
|
2564
|
+
}, Ar = {
|
|
2565
2565
|
sm: 180,
|
|
2566
2566
|
md: 220,
|
|
2567
2567
|
lg: 280,
|
|
2568
2568
|
xl: 340
|
|
2569
|
-
},
|
|
2569
|
+
}, jr = Math.PI / 180, Mr = (e) => Math.round(e * 1e3) / 1e3, Nr = {
|
|
2570
2570
|
multi: ["30%", "100%"],
|
|
2571
2571
|
grid: ["30%", "100%"],
|
|
2572
2572
|
"stacked-label": ["30%", "100%"],
|
|
2573
2573
|
text: ["76%", "100%"]
|
|
2574
|
-
},
|
|
2574
|
+
}, Pr = ({ value: e, max: t, color: n, track: r, centerValue: i, centerCaption: a, labelColor: o, captionColor: s }) => {
|
|
2575
2575
|
let c = Math.round(Math.min(e, t) / t * 40);
|
|
2576
2576
|
return /* @__PURE__ */ D("svg", {
|
|
2577
2577
|
viewBox: "0 0 200 120",
|
|
@@ -2579,10 +2579,10 @@ var K = {
|
|
|
2579
2579
|
children: [Array.from({ length: 40 }).map((e, t) => {
|
|
2580
2580
|
let i = 180 + t / 39 * 180;
|
|
2581
2581
|
return /* @__PURE__ */ E("line", {
|
|
2582
|
-
x1:
|
|
2583
|
-
y1:
|
|
2584
|
-
x2:
|
|
2585
|
-
y2:
|
|
2582
|
+
x1: Mr(100 + 78 * Math.cos(i * jr)),
|
|
2583
|
+
y1: Mr(100 + 78 * Math.sin(i * jr)),
|
|
2584
|
+
x2: Mr(100 + 92 * Math.cos(i * jr)),
|
|
2585
|
+
y2: Mr(100 + 92 * Math.sin(i * jr)),
|
|
2586
2586
|
stroke: t < c ? n : r,
|
|
2587
2587
|
strokeWidth: 2.5,
|
|
2588
2588
|
strokeLinecap: "round"
|
|
@@ -2606,7 +2606,7 @@ var K = {
|
|
|
2606
2606
|
})]
|
|
2607
2607
|
})]
|
|
2608
2608
|
});
|
|
2609
|
-
},
|
|
2609
|
+
}, Fr = ({ rings: e, spokes: t, color: n }) => /* @__PURE__ */ D("svg", {
|
|
2610
2610
|
viewBox: "0 0 200 200",
|
|
2611
2611
|
className: J.gridSvg,
|
|
2612
2612
|
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */ E("circle", {
|
|
@@ -2621,13 +2621,13 @@ var K = {
|
|
|
2621
2621
|
return /* @__PURE__ */ E("line", {
|
|
2622
2622
|
x1: 100,
|
|
2623
2623
|
y1: 100,
|
|
2624
|
-
x2:
|
|
2625
|
-
y2:
|
|
2624
|
+
x2: Mr(100 + a * Math.cos(i * jr)),
|
|
2625
|
+
y2: Mr(100 + a * Math.sin(i * jr)),
|
|
2626
2626
|
stroke: n,
|
|
2627
2627
|
strokeWidth: 1
|
|
2628
2628
|
}, r);
|
|
2629
2629
|
})]
|
|
2630
|
-
}),
|
|
2630
|
+
}), Ir = ({ data: e, palette: t, track: n, centerValue: r, centerCaption: i, labelColor: a, captionColor: o }) => {
|
|
2631
2631
|
let s = e[0]?.max ?? e.reduce((e, t) => e + t.value, 0), c = 210, l = e.map((e, n) => {
|
|
2632
2632
|
let r = s > 0 ? e.value / s * 240 : 0, i = c, a = c - r;
|
|
2633
2633
|
return c = a, {
|
|
@@ -2640,7 +2640,7 @@ var K = {
|
|
|
2640
2640
|
viewBox: "0 0 200 160",
|
|
2641
2641
|
className: J.gaugeSvg,
|
|
2642
2642
|
children: [
|
|
2643
|
-
l.map((e, t) => /* @__PURE__ */ E(
|
|
2643
|
+
l.map((e, t) => /* @__PURE__ */ E(Ut, {
|
|
2644
2644
|
cx: 100,
|
|
2645
2645
|
cy: 100,
|
|
2646
2646
|
innerRadius: 64,
|
|
@@ -2650,7 +2650,7 @@ var K = {
|
|
|
2650
2650
|
fill: e.fill,
|
|
2651
2651
|
cornerRadius: 4
|
|
2652
2652
|
}, t)),
|
|
2653
|
-
c > -29.5 && /* @__PURE__ */ E(
|
|
2653
|
+
c > -29.5 && /* @__PURE__ */ E(Ut, {
|
|
2654
2654
|
cx: 100,
|
|
2655
2655
|
cy: 100,
|
|
2656
2656
|
innerRadius: 64,
|
|
@@ -2680,21 +2680,21 @@ var K = {
|
|
|
2680
2680
|
})
|
|
2681
2681
|
]
|
|
2682
2682
|
});
|
|
2683
|
-
},
|
|
2684
|
-
let o = T.useRef(null), s =
|
|
2683
|
+
}, Lr = ({ data: e, variant: t = "multi", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
2684
|
+
let o = T.useRef(null), s = Ue(o), c = [
|
|
2685
2685
|
1,
|
|
2686
2686
|
2,
|
|
2687
2687
|
3,
|
|
2688
2688
|
4,
|
|
2689
2689
|
5
|
|
2690
|
-
].map((e) => s(`--color-chart-${e}`) ??
|
|
2690
|
+
].map((e) => s(`--color-chart-${e}`) ?? Ie[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 = Ar[n];
|
|
2691
2691
|
if (t === "gauge-tick") {
|
|
2692
2692
|
let t = e[0];
|
|
2693
2693
|
return /* @__PURE__ */ E("div", {
|
|
2694
2694
|
ref: o,
|
|
2695
2695
|
className: [J.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2696
2696
|
style: { height: p },
|
|
2697
|
-
children: /* @__PURE__ */ E(
|
|
2697
|
+
children: /* @__PURE__ */ E(Pr, {
|
|
2698
2698
|
value: t?.value ?? 0,
|
|
2699
2699
|
max: t?.max ?? 100,
|
|
2700
2700
|
color: c[0],
|
|
@@ -2710,7 +2710,7 @@ var K = {
|
|
|
2710
2710
|
ref: o,
|
|
2711
2711
|
className: [J.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2712
2712
|
style: { height: p },
|
|
2713
|
-
children: /* @__PURE__ */ E(
|
|
2713
|
+
children: /* @__PURE__ */ E(Ir, {
|
|
2714
2714
|
data: e,
|
|
2715
2715
|
palette: c,
|
|
2716
2716
|
track: l,
|
|
@@ -2720,38 +2720,38 @@ var K = {
|
|
|
2720
2720
|
captionColor: f
|
|
2721
2721
|
})
|
|
2722
2722
|
});
|
|
2723
|
-
let [m, h] =
|
|
2723
|
+
let [m, h] = Nr[t] ?? ["30%", "100%"], g = (t === "stacked-label" || t === "text") && (r || i);
|
|
2724
2724
|
return /* @__PURE__ */ D("div", {
|
|
2725
2725
|
ref: o,
|
|
2726
2726
|
className: [J.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2727
2727
|
style: { height: p },
|
|
2728
2728
|
children: [
|
|
2729
|
-
t === "grid" && /* @__PURE__ */ E(
|
|
2729
|
+
t === "grid" && /* @__PURE__ */ E(Fr, {
|
|
2730
2730
|
rings: 8,
|
|
2731
2731
|
spokes: 12,
|
|
2732
2732
|
color: u
|
|
2733
2733
|
}),
|
|
2734
|
-
/* @__PURE__ */ E(
|
|
2734
|
+
/* @__PURE__ */ E(Ht, {
|
|
2735
2735
|
width: "100%",
|
|
2736
2736
|
height: "100%",
|
|
2737
|
-
children: /* @__PURE__ */ D(
|
|
2737
|
+
children: /* @__PURE__ */ D(Vt, {
|
|
2738
2738
|
data: e,
|
|
2739
2739
|
innerRadius: m,
|
|
2740
2740
|
outerRadius: h,
|
|
2741
2741
|
startAngle: 90,
|
|
2742
2742
|
endAngle: -270,
|
|
2743
2743
|
barCategoryGap: "12%",
|
|
2744
|
-
children: [/* @__PURE__ */ E(
|
|
2744
|
+
children: [/* @__PURE__ */ E(Ft, {
|
|
2745
2745
|
type: "number",
|
|
2746
2746
|
domain: [0, e[0]?.max ?? 100],
|
|
2747
2747
|
tick: !1,
|
|
2748
2748
|
axisLine: !1
|
|
2749
|
-
}), /* @__PURE__ */ E(
|
|
2749
|
+
}), /* @__PURE__ */ E(Bt, {
|
|
2750
2750
|
dataKey: "value",
|
|
2751
2751
|
background: t !== "grid" && { fill: l },
|
|
2752
2752
|
cornerRadius: 8,
|
|
2753
2753
|
isAnimationActive: !1,
|
|
2754
|
-
children: e.map((e, t) => /* @__PURE__ */ E(
|
|
2754
|
+
children: e.map((e, t) => /* @__PURE__ */ E(jt, { fill: c[t % c.length] }, t))
|
|
2755
2755
|
})]
|
|
2756
2756
|
})
|
|
2757
2757
|
}),
|
|
@@ -2777,7 +2777,7 @@ var K = {
|
|
|
2777
2777
|
text__label: "_text__label_5ueza_80",
|
|
2778
2778
|
text__description: "_text__description_5ueza_81",
|
|
2779
2779
|
"wrapper--withDescription": "_wrapper--withDescription_5ueza_85"
|
|
2780
|
-
},
|
|
2780
|
+
}, Rr = T.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, ...a }, o) => {
|
|
2781
2781
|
let s = T.useId(), c = r ?? s;
|
|
2782
2782
|
return /* @__PURE__ */ D("label", {
|
|
2783
2783
|
htmlFor: c,
|
|
@@ -2814,7 +2814,7 @@ var K = {
|
|
|
2814
2814
|
]
|
|
2815
2815
|
});
|
|
2816
2816
|
});
|
|
2817
|
-
|
|
2817
|
+
Rr.displayName = "Radio";
|
|
2818
2818
|
var X = {
|
|
2819
2819
|
footer: "_footer_mks3d_4",
|
|
2820
2820
|
"footer--collapsed": "_footer--collapsed_mks3d_12",
|
|
@@ -2823,32 +2823,32 @@ var X = {
|
|
|
2823
2823
|
footer__subtitle: "_footer__subtitle_mks3d_16",
|
|
2824
2824
|
footer__menu: "_footer__menu_mks3d_17",
|
|
2825
2825
|
footer__action: "_footer__action_mks3d_29"
|
|
2826
|
-
},
|
|
2827
|
-
let
|
|
2828
|
-
size:
|
|
2826
|
+
}, zr = ({ type: e = "user", title: t, subtitle: n, avatarSrc: r, avatarInitials: i, collapsed: a, onMenu: o, onSignOut: s }) => {
|
|
2827
|
+
let l = /* @__PURE__ */ E(c, {
|
|
2828
|
+
size: a ? "sm" : "md",
|
|
2829
2829
|
src: r,
|
|
2830
|
-
initials:
|
|
2830
|
+
initials: i,
|
|
2831
2831
|
alt: t ?? "User"
|
|
2832
2832
|
});
|
|
2833
|
-
return
|
|
2833
|
+
return a ? /* @__PURE__ */ E("div", {
|
|
2834
2834
|
className: [X.footer, X["footer--collapsed"]].join(" "),
|
|
2835
|
-
children:
|
|
2835
|
+
children: l
|
|
2836
2836
|
}) : e === "actions" ? /* @__PURE__ */ E("div", {
|
|
2837
2837
|
className: X.footer,
|
|
2838
2838
|
children: /* @__PURE__ */ D("button", {
|
|
2839
2839
|
type: "button",
|
|
2840
2840
|
"data-hover-item": "",
|
|
2841
2841
|
className: X.footer__action,
|
|
2842
|
-
onClick:
|
|
2843
|
-
children: [/* @__PURE__ */ E(
|
|
2842
|
+
onClick: s,
|
|
2843
|
+
children: [/* @__PURE__ */ E(mt, {
|
|
2844
2844
|
size: 16,
|
|
2845
|
-
strokeWidth:
|
|
2845
|
+
strokeWidth: w(16)
|
|
2846
2846
|
}), " Sign out"]
|
|
2847
2847
|
})
|
|
2848
2848
|
}) : /* @__PURE__ */ D("div", {
|
|
2849
2849
|
className: X.footer,
|
|
2850
2850
|
children: [
|
|
2851
|
-
|
|
2851
|
+
l,
|
|
2852
2852
|
/* @__PURE__ */ D("span", {
|
|
2853
2853
|
className: X.footer__text,
|
|
2854
2854
|
children: [t && /* @__PURE__ */ E("span", {
|
|
@@ -2863,11 +2863,11 @@ var X = {
|
|
|
2863
2863
|
type: "button",
|
|
2864
2864
|
"data-hover-item": "",
|
|
2865
2865
|
className: X.footer__menu,
|
|
2866
|
-
onClick:
|
|
2866
|
+
onClick: o,
|
|
2867
2867
|
"aria-label": "Open menu",
|
|
2868
|
-
children: /* @__PURE__ */ E(
|
|
2868
|
+
children: /* @__PURE__ */ E(ut, {
|
|
2869
2869
|
size: 16,
|
|
2870
|
-
strokeWidth:
|
|
2870
|
+
strokeWidth: w(16)
|
|
2871
2871
|
})
|
|
2872
2872
|
})
|
|
2873
2873
|
]
|
|
@@ -2879,23 +2879,23 @@ var X = {
|
|
|
2879
2879
|
search__placeholder: "_search__placeholder_1fdme_38",
|
|
2880
2880
|
search__kbd: "_search__kbd_1fdme_39",
|
|
2881
2881
|
collapsed: "_collapsed_1fdme_53"
|
|
2882
|
-
},
|
|
2882
|
+
}, Br = ({ type: e = "field", placeholder: t = "Search…", collapsed: n, value: r, onChange: i, onClick: a }) => n ? /* @__PURE__ */ E("button", {
|
|
2883
2883
|
type: "button",
|
|
2884
2884
|
className: Z.collapsed,
|
|
2885
2885
|
onClick: a,
|
|
2886
2886
|
"aria-label": "Search",
|
|
2887
|
-
children: /* @__PURE__ */ E(
|
|
2887
|
+
children: /* @__PURE__ */ E(xt, {
|
|
2888
2888
|
size: 18,
|
|
2889
|
-
strokeWidth:
|
|
2889
|
+
strokeWidth: w(18)
|
|
2890
2890
|
})
|
|
2891
2891
|
}) : e === "command" ? /* @__PURE__ */ D("button", {
|
|
2892
2892
|
type: "button",
|
|
2893
2893
|
className: Z.search,
|
|
2894
2894
|
onClick: a,
|
|
2895
2895
|
children: [
|
|
2896
|
-
/* @__PURE__ */ E(
|
|
2896
|
+
/* @__PURE__ */ E(xt, {
|
|
2897
2897
|
size: 16,
|
|
2898
|
-
strokeWidth:
|
|
2898
|
+
strokeWidth: w(16),
|
|
2899
2899
|
className: Z.search__icon
|
|
2900
2900
|
}),
|
|
2901
2901
|
/* @__PURE__ */ E("span", {
|
|
@@ -2909,9 +2909,9 @@ var X = {
|
|
|
2909
2909
|
]
|
|
2910
2910
|
}) : /* @__PURE__ */ D("div", {
|
|
2911
2911
|
className: Z.search,
|
|
2912
|
-
children: [/* @__PURE__ */ E(
|
|
2912
|
+
children: [/* @__PURE__ */ E(xt, {
|
|
2913
2913
|
size: 16,
|
|
2914
|
-
strokeWidth:
|
|
2914
|
+
strokeWidth: w(16),
|
|
2915
2915
|
className: Z.search__icon
|
|
2916
2916
|
}), /* @__PURE__ */ E("input", {
|
|
2917
2917
|
className: Z.search__input,
|
|
@@ -2919,19 +2919,19 @@ var X = {
|
|
|
2919
2919
|
value: r,
|
|
2920
2920
|
onChange: (e) => i?.(e.target.value)
|
|
2921
2921
|
})]
|
|
2922
|
-
}),
|
|
2922
|
+
}), Vr = {
|
|
2923
2923
|
spinner: "_spinner_14r00_3",
|
|
2924
2924
|
"spinner--sm": "_spinner--sm_14r00_12",
|
|
2925
2925
|
"spinner--md": "_spinner--md_14r00_13",
|
|
2926
2926
|
"spinner--lg": "_spinner--lg_14r00_14",
|
|
2927
2927
|
spinner__svg: "_spinner__svg_14r00_17",
|
|
2928
2928
|
"spinner-rotate": "_spinner-rotate_14r00_1"
|
|
2929
|
-
},
|
|
2929
|
+
}, Hr = ({ size: e = "md", label: t = "Loading...", className: n }) => /* @__PURE__ */ E("span", {
|
|
2930
2930
|
role: "status",
|
|
2931
2931
|
"aria-label": t,
|
|
2932
2932
|
className: [
|
|
2933
|
-
|
|
2934
|
-
|
|
2933
|
+
Vr.spinner,
|
|
2934
|
+
Vr[`spinner--${e}`],
|
|
2935
2935
|
n ?? ""
|
|
2936
2936
|
].filter(Boolean).join(" "),
|
|
2937
2937
|
children: /* @__PURE__ */ D("svg", {
|
|
@@ -2941,7 +2941,7 @@ var X = {
|
|
|
2941
2941
|
strokeWidth: 2.5,
|
|
2942
2942
|
strokeLinecap: "round",
|
|
2943
2943
|
"aria-hidden": "true",
|
|
2944
|
-
className:
|
|
2944
|
+
className: Vr.spinner__svg,
|
|
2945
2945
|
children: [/* @__PURE__ */ E("circle", {
|
|
2946
2946
|
cx: 12,
|
|
2947
2947
|
cy: 12,
|
|
@@ -2949,7 +2949,7 @@ var X = {
|
|
|
2949
2949
|
opacity: .2
|
|
2950
2950
|
}), /* @__PURE__ */ E("path", {
|
|
2951
2951
|
d: "M12 3a9 9 0 0 1 9 9",
|
|
2952
|
-
className:
|
|
2952
|
+
className: Vr.spinner__arc
|
|
2953
2953
|
})]
|
|
2954
2954
|
})
|
|
2955
2955
|
}), Q = {
|
|
@@ -2973,14 +2973,14 @@ var X = {
|
|
|
2973
2973
|
"connector--horizontal": "_connector--horizontal_kxw14_47",
|
|
2974
2974
|
"connector--vertical": "_connector--vertical_kxw14_48",
|
|
2975
2975
|
"connector--filled": "_connector--filled_kxw14_49"
|
|
2976
|
-
},
|
|
2976
|
+
}, Ur = ({ index: e, state: t, label: n, description: r, orientation: i = "horizontal" }) => /* @__PURE__ */ D("div", {
|
|
2977
2977
|
className: [Q.step, Q[`step--${i}`]].join(" "),
|
|
2978
2978
|
children: [/* @__PURE__ */ E("span", {
|
|
2979
2979
|
className: [Q.circle, Q[`circle--${t}`]].join(" "),
|
|
2980
2980
|
"aria-hidden": "true",
|
|
2981
|
-
children: t === "completed" ? /* @__PURE__ */ E(
|
|
2981
|
+
children: t === "completed" ? /* @__PURE__ */ E(ot, {
|
|
2982
2982
|
size: 14,
|
|
2983
|
-
strokeWidth:
|
|
2983
|
+
strokeWidth: w(14)
|
|
2984
2984
|
}) : /* @__PURE__ */ E("span", {
|
|
2985
2985
|
className: Q.circle__num,
|
|
2986
2986
|
children: e + 1
|
|
@@ -2999,7 +2999,7 @@ var X = {
|
|
|
2999
2999
|
children: r
|
|
3000
3000
|
})]
|
|
3001
3001
|
})]
|
|
3002
|
-
}),
|
|
3002
|
+
}), Wr = ({ steps: e, current: t, orientation: n = "horizontal", className: r }) => {
|
|
3003
3003
|
let i = (e) => e < t ? "completed" : e === t ? "current" : "upcoming";
|
|
3004
3004
|
return /* @__PURE__ */ E("div", {
|
|
3005
3005
|
className: [
|
|
@@ -3007,7 +3007,7 @@ var X = {
|
|
|
3007
3007
|
Q[`stepper--${n}`],
|
|
3008
3008
|
r ?? ""
|
|
3009
3009
|
].filter(Boolean).join(" "),
|
|
3010
|
-
children: e.map((r, a) => /* @__PURE__ */ D(T.Fragment, { children: [/* @__PURE__ */ E(
|
|
3010
|
+
children: e.map((r, a) => /* @__PURE__ */ D(T.Fragment, { children: [/* @__PURE__ */ E(Ur, {
|
|
3011
3011
|
index: a,
|
|
3012
3012
|
state: i(a),
|
|
3013
3013
|
label: r.label,
|
|
@@ -3032,7 +3032,7 @@ var X = {
|
|
|
3032
3032
|
"wrapper--withDescription": "_wrapper--withDescription_1xxik_60",
|
|
3033
3033
|
text: "_text_1xxik_61",
|
|
3034
3034
|
description: "_description_1xxik_63"
|
|
3035
|
-
},
|
|
3035
|
+
}, Gr = T.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, ...a }, o) => {
|
|
3036
3036
|
let s = T.useId(), c = r ?? s;
|
|
3037
3037
|
return /* @__PURE__ */ D("label", {
|
|
3038
3038
|
htmlFor: c,
|
|
@@ -3073,8 +3073,8 @@ var X = {
|
|
|
3073
3073
|
]
|
|
3074
3074
|
});
|
|
3075
3075
|
});
|
|
3076
|
-
|
|
3077
|
-
var
|
|
3076
|
+
Gr.displayName = "Switch";
|
|
3077
|
+
var Kr = {
|
|
3078
3078
|
field: "_field_53t87_6",
|
|
3079
3079
|
field__label: "_field__label_53t87_8",
|
|
3080
3080
|
field__description: "_field__description_53t87_10",
|
|
@@ -3082,14 +3082,14 @@ var Wr = {
|
|
|
3082
3082
|
textarea: "_textarea_53t87_13",
|
|
3083
3083
|
"textarea--error": "_textarea--error_53t87_37",
|
|
3084
3084
|
"textarea--disabled": "_textarea--disabled_53t87_52"
|
|
3085
|
-
},
|
|
3085
|
+
}, qr = T.forwardRef(({ label: e, description: t, error: n, disabled: r, id: i, className: a, rows: o = 3, ...s }, c) => {
|
|
3086
3086
|
let l = T.useId(), u = i ?? l, d = !!n, f = t || n ? `${u}-desc` : void 0;
|
|
3087
3087
|
return /* @__PURE__ */ D("div", {
|
|
3088
|
-
className: [
|
|
3088
|
+
className: [Kr.field, a ?? ""].filter(Boolean).join(" "),
|
|
3089
3089
|
children: [
|
|
3090
3090
|
e && /* @__PURE__ */ E("label", {
|
|
3091
3091
|
htmlFor: u,
|
|
3092
|
-
className:
|
|
3092
|
+
className: Kr.field__label,
|
|
3093
3093
|
children: e
|
|
3094
3094
|
}),
|
|
3095
3095
|
/* @__PURE__ */ E("textarea", {
|
|
@@ -3100,22 +3100,22 @@ var Wr = {
|
|
|
3100
3100
|
"aria-invalid": d || void 0,
|
|
3101
3101
|
"aria-describedby": f,
|
|
3102
3102
|
className: [
|
|
3103
|
-
|
|
3104
|
-
d ?
|
|
3105
|
-
r ?
|
|
3103
|
+
Kr.textarea,
|
|
3104
|
+
d ? Kr["textarea--error"] : "",
|
|
3105
|
+
r ? Kr["textarea--disabled"] : ""
|
|
3106
3106
|
].filter(Boolean).join(" "),
|
|
3107
3107
|
...s
|
|
3108
3108
|
}),
|
|
3109
3109
|
(t || n) && /* @__PURE__ */ E("span", {
|
|
3110
3110
|
id: f,
|
|
3111
|
-
className: d ?
|
|
3111
|
+
className: d ? Kr.field__error : Kr.field__description,
|
|
3112
3112
|
children: n || t
|
|
3113
3113
|
})
|
|
3114
3114
|
]
|
|
3115
3115
|
});
|
|
3116
3116
|
});
|
|
3117
|
-
|
|
3118
|
-
var
|
|
3117
|
+
qr.displayName = "Textarea";
|
|
3118
|
+
var Jr = {
|
|
3119
3119
|
toast: "_toast_dshlf_3",
|
|
3120
3120
|
toast__icon: "_toast__icon_dshlf_17",
|
|
3121
3121
|
"toast--success": "_toast--success_dshlf_18",
|
|
@@ -3125,9 +3125,9 @@ var Kr = {
|
|
|
3125
3125
|
toast__title: "_toast__title_dshlf_23",
|
|
3126
3126
|
toast__description: "_toast__description_dshlf_24",
|
|
3127
3127
|
toast__dismiss: "_toast__dismiss_dshlf_26"
|
|
3128
|
-
},
|
|
3129
|
-
success: /* @__PURE__ */ D(
|
|
3130
|
-
error: /* @__PURE__ */ D(
|
|
3128
|
+
}, Yr = {
|
|
3129
|
+
success: /* @__PURE__ */ D(rt, { children: [/* @__PURE__ */ E("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ E("polyline", { points: "22 4 12 14.01 9 11.01" })] }),
|
|
3130
|
+
error: /* @__PURE__ */ D(rt, { children: [
|
|
3131
3131
|
/* @__PURE__ */ E("circle", {
|
|
3132
3132
|
cx: "12",
|
|
3133
3133
|
cy: "12",
|
|
@@ -3146,7 +3146,7 @@ var Kr = {
|
|
|
3146
3146
|
y2: "15"
|
|
3147
3147
|
})
|
|
3148
3148
|
] }),
|
|
3149
|
-
info: /* @__PURE__ */ D(
|
|
3149
|
+
info: /* @__PURE__ */ D(rt, { children: [
|
|
3150
3150
|
/* @__PURE__ */ E("circle", {
|
|
3151
3151
|
cx: "12",
|
|
3152
3152
|
cy: "12",
|
|
@@ -3165,50 +3165,50 @@ var Kr = {
|
|
|
3165
3165
|
y2: "8"
|
|
3166
3166
|
})
|
|
3167
3167
|
] })
|
|
3168
|
-
},
|
|
3168
|
+
}, Xr = ({ status: e = "info", title: t, description: n, onDismiss: r, className: i }) => /* @__PURE__ */ D("div", {
|
|
3169
3169
|
role: e === "error" ? "alert" : "status",
|
|
3170
3170
|
"aria-live": e === "error" ? "assertive" : "polite",
|
|
3171
3171
|
className: [
|
|
3172
|
-
|
|
3173
|
-
|
|
3172
|
+
Jr.toast,
|
|
3173
|
+
Jr[`toast--${e}`],
|
|
3174
3174
|
i ?? ""
|
|
3175
3175
|
].filter(Boolean).join(" "),
|
|
3176
3176
|
children: [
|
|
3177
3177
|
/* @__PURE__ */ E("span", {
|
|
3178
|
-
className:
|
|
3178
|
+
className: Jr.toast__icon,
|
|
3179
3179
|
"aria-hidden": "true",
|
|
3180
3180
|
children: /* @__PURE__ */ E("svg", {
|
|
3181
3181
|
viewBox: "0 0 24 24",
|
|
3182
3182
|
fill: "none",
|
|
3183
3183
|
stroke: "currentColor",
|
|
3184
|
-
strokeWidth:
|
|
3184
|
+
strokeWidth: w(18),
|
|
3185
3185
|
strokeLinecap: "round",
|
|
3186
3186
|
strokeLinejoin: "round",
|
|
3187
3187
|
width: 18,
|
|
3188
3188
|
height: 18,
|
|
3189
|
-
children:
|
|
3189
|
+
children: Yr[e]
|
|
3190
3190
|
})
|
|
3191
3191
|
}),
|
|
3192
3192
|
/* @__PURE__ */ D("div", {
|
|
3193
|
-
className:
|
|
3193
|
+
className: Jr.toast__content,
|
|
3194
3194
|
children: [t && /* @__PURE__ */ E("div", {
|
|
3195
|
-
className:
|
|
3195
|
+
className: Jr.toast__title,
|
|
3196
3196
|
children: t
|
|
3197
3197
|
}), n && /* @__PURE__ */ E("div", {
|
|
3198
|
-
className:
|
|
3198
|
+
className: Jr.toast__description,
|
|
3199
3199
|
children: n
|
|
3200
3200
|
})]
|
|
3201
3201
|
}),
|
|
3202
3202
|
r && /* @__PURE__ */ E("button", {
|
|
3203
3203
|
type: "button",
|
|
3204
|
-
className:
|
|
3204
|
+
className: Jr.toast__dismiss,
|
|
3205
3205
|
onClick: r,
|
|
3206
3206
|
"aria-label": "Dismiss",
|
|
3207
3207
|
children: /* @__PURE__ */ D("svg", {
|
|
3208
3208
|
viewBox: "0 0 24 24",
|
|
3209
3209
|
fill: "none",
|
|
3210
3210
|
stroke: "currentColor",
|
|
3211
|
-
strokeWidth:
|
|
3211
|
+
strokeWidth: w(16),
|
|
3212
3212
|
strokeLinecap: "round",
|
|
3213
3213
|
strokeLinejoin: "round",
|
|
3214
3214
|
width: 16,
|
|
@@ -3227,54 +3227,54 @@ var Kr = {
|
|
|
3227
3227
|
})
|
|
3228
3228
|
})
|
|
3229
3229
|
]
|
|
3230
|
-
}),
|
|
3230
|
+
}), Zr = {
|
|
3231
3231
|
bar: "_bar_14cqo_2",
|
|
3232
3232
|
bar__icon: "_bar__icon_14cqo_10",
|
|
3233
3233
|
bar__title: "_bar__title_14cqo_17",
|
|
3234
3234
|
"bar__title--center": "_bar__title--center_14cqo_21",
|
|
3235
3235
|
bar__search: "_bar__search_14cqo_22"
|
|
3236
|
-
},
|
|
3237
|
-
className: [
|
|
3236
|
+
}, Qr = ({ type: e = "title", title: t, trailing: n, search: r, onMenu: i, onAction: a, onClose: o, className: s }) => /* @__PURE__ */ D("header", {
|
|
3237
|
+
className: [Zr.bar, s ?? ""].filter(Boolean).join(" "),
|
|
3238
3238
|
children: [
|
|
3239
3239
|
/* @__PURE__ */ E("button", {
|
|
3240
3240
|
type: "button",
|
|
3241
|
-
className:
|
|
3241
|
+
className: Zr.bar__icon,
|
|
3242
3242
|
onClick: i,
|
|
3243
3243
|
"aria-label": "Open menu",
|
|
3244
|
-
children: /* @__PURE__ */ E(
|
|
3244
|
+
children: /* @__PURE__ */ E(ht, {
|
|
3245
3245
|
size: 18,
|
|
3246
|
-
strokeWidth:
|
|
3246
|
+
strokeWidth: w(18)
|
|
3247
3247
|
})
|
|
3248
3248
|
}),
|
|
3249
3249
|
e === "search" ? /* @__PURE__ */ E("div", {
|
|
3250
|
-
className:
|
|
3250
|
+
className: Zr.bar__search,
|
|
3251
3251
|
children: r
|
|
3252
3252
|
}) : /* @__PURE__ */ E("span", {
|
|
3253
|
-
className: [
|
|
3253
|
+
className: [Zr.bar__title, e === "title-centered" ? Zr["bar__title--center"] : ""].join(" "),
|
|
3254
3254
|
children: t
|
|
3255
3255
|
}),
|
|
3256
3256
|
e === "title-action" && /* @__PURE__ */ E("button", {
|
|
3257
3257
|
type: "button",
|
|
3258
|
-
className:
|
|
3258
|
+
className: Zr.bar__icon,
|
|
3259
3259
|
onClick: a,
|
|
3260
3260
|
"aria-label": "Add",
|
|
3261
|
-
children: /* @__PURE__ */ E(
|
|
3261
|
+
children: /* @__PURE__ */ E(vt, {
|
|
3262
3262
|
size: 18,
|
|
3263
|
-
strokeWidth:
|
|
3263
|
+
strokeWidth: w(18)
|
|
3264
3264
|
})
|
|
3265
3265
|
}),
|
|
3266
3266
|
e === "search" && /* @__PURE__ */ E("button", {
|
|
3267
3267
|
type: "button",
|
|
3268
|
-
className:
|
|
3268
|
+
className: Zr.bar__icon,
|
|
3269
3269
|
onClick: o,
|
|
3270
3270
|
"aria-label": "Close search",
|
|
3271
|
-
children: /* @__PURE__ */ E(
|
|
3271
|
+
children: /* @__PURE__ */ E(Dt, {
|
|
3272
3272
|
size: 18,
|
|
3273
|
-
strokeWidth:
|
|
3273
|
+
strokeWidth: w(18)
|
|
3274
3274
|
})
|
|
3275
3275
|
}),
|
|
3276
3276
|
(e === "title" || e === "title-centered") && n
|
|
3277
3277
|
]
|
|
3278
3278
|
});
|
|
3279
3279
|
//#endregion
|
|
3280
|
-
export {
|
|
3280
|
+
export { o as Accordion, y as AccordionItem, Ze as ActivityFeed, re as ActivityFeedHighlight, l as Alert, Kt as Announcement, Hn as AreaChart, c as Avatar, n as AvatarGroup, pe as AvatarUpload, Ve as Badge, tt as Balance, Ee as BarChart, _n as BlogBlockquote, yn as BlogFeatureText, xn as BlogImage, ie as BlogListingCard, d as BlogListingFeaturedCard, b as BoardCard, Un as BoardColumn, De as Breadcrumb, $e as Button, Jn as Calendar, Yn as Card, t as CardMetaItem, Ge as CartItem, Oe as ChatComposer, v as Checkbox, e as CheckoutSteps, Xt as CodeSnippet, ce as ColorSwatch, Xn as Combobox, a as ConversationItem, ve as DEFAULT_CHECKOUT_STEPS, be as Divider, s as DonutChart, ne as EmptyState, $t as Expenses, ae as FeaturedIcon, Zn as FileUpload, Xe as FilterChip, Sn as FirstPageHeading, nr as FunnelChart, ar as HeatmapChart, g as HoverGroup, S as IconButton, nn as InlineHint, r as Input, ee as JobListing, sr as Kbd, lr as Label, te as LineChart, i as Link, Re as LiquidBackdrop, Me as LiquidGlass, wn as List, ur as ListItem, nt as LocationDot, Dn as Marquee, fe as Menu, Qe as MenuDivider, et as MenuItem, Je as MessageBubble, kn as Metric, An as MobileNavigationMenu, _e as Modal, qe as NotificationItem, le as Pagination, vr as PieChart, Nn as PlaceholderLogo, yr as Popover, C as PriceDisplay, p as ProductCard, ze as ProductGallery, Pn as ProfileCard, Ye as Progress, rn as ProgressItem, Ae as ProgressStat, Pe as QuantitySelector, kr as RadarChart, Lr as RadialChart, Rr as Radio, on as RichSeparator, In as RichTextHeading, Rn as RichTextParagraph, h as SectionHeading, xe as SegmentedControl, Ce as Select, je as Sidebar, Le as SidebarDivider, zr as SidebarFooter, ye as SidebarGroupLabel, ge as SidebarHeader, Ke as SidebarItem, ke as SidebarPromo, Br as SidebarSearch, me as SidebarSubItem, m as SizeSelector, He as Skeleton, Fe as Slider, he as SpendingBalance, Hr as Spinner, u as StarRating, ue as StatCard, Wr as Stepper, Ur as StepperStep, cn as StockMarket, oe as StockStatus, zn as SubFeature, Gr as Switch, Te as Table, Be as Tabs, dn as Tags, f as TeamCard, qr as Textarea, mn as Ticker, Xr as Toast, Ne as Tooltip, We as TopBar, Qr as TopBarMobile, gn as Transactions, se as WishlistButton, x as getContrastColor, w as iconStrokeWidth, we as syncLiquidBackdrop, _ as useHoverHighlight, Se as useLiquidGlass };
|