@sakaniui/react 0.8.13 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +9 -3
- package/CHANGELOG.md +19 -0
- package/README.md +1 -1
- package/bin/sakaniui-mcp.mjs +5 -2
- package/dist/components/Sonner/Sonner.d.ts +30 -0
- package/dist/components/Sonner/index.d.ts +4 -0
- package/dist/components/Sonner/state.d.ts +106 -0
- package/dist/icon-index.json +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1493 -1101
- package/dist/manifest.json +142 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
2
|
-
import { A as
|
|
3
|
-
import { a as
|
|
4
|
-
import
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { Area as
|
|
7
|
-
var
|
|
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, St as C, T as te, Tt as ne, U as re, V as ie, W as ae, X as w, Y as oe, Z as se, _ as ce, a as T, at as le, b as ue, bt as de, c as fe, ct as E, d as pe, dt as me, et as he, f as ge, ft as D, g as _e, gt as ve, h as ye, ht as be, i as xe, it as Se, j as Ce, k as we, kt as O, l as Te, lt as Ee, m as De, mt as Oe, n as ke, nt as Ae, o as je, ot as Me, p as Ne, pt as Pe, q as Fe, r as Ie, rt as Le, s as Re, st as ze, t as Be, tt as Ve, u as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, x as Je, xt as Ye, y as Xe, yt as Ze, z as Qe } from "./TopBar-n4mj0qZ2.js";
|
|
2
|
+
import { A as $e, D as et, F as tt, I as nt, L as rt, T as it, _ as at, a as ot, b as st, c as ct, j as lt, k as ut, p as dt, u as ft, v as pt, x as mt, y as ht } from "./help-circle-B0koiJUs.js";
|
|
3
|
+
import { a as gt, i as _t, n as vt, o as yt, r as bt, s as xt, t as St } from "./logout-S1JWgqYn.js";
|
|
4
|
+
import k, { useCallback as Ct, useEffect as A, useLayoutEffect as wt, useMemo as Tt, useRef as Et, useState as j } from "react";
|
|
5
|
+
import { Fragment as Dt, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
6
|
+
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";
|
|
7
|
+
var Kt = {
|
|
8
8
|
announcement: "_announcement_1ba3c_1",
|
|
9
9
|
"announcement--neutral": "_announcement--neutral_1ba3c_13",
|
|
10
10
|
"announcement--urgent": "_announcement--urgent_1ba3c_16",
|
|
@@ -13,43 +13,43 @@ var Yt = {
|
|
|
13
13
|
icon__neutral: "_icon__neutral_1ba3c_32",
|
|
14
14
|
message: "_message_1ba3c_36",
|
|
15
15
|
link: "_link_1ba3c_52"
|
|
16
|
-
},
|
|
16
|
+
}, qt = ({ message: e, linkLabel: t, linkHref: n, onLinkClick: r, onDismiss: a, variant: o = "neutral", className: s }) => {
|
|
17
17
|
let c = o === "urgent";
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ N("div", {
|
|
19
19
|
className: [
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
Kt.announcement,
|
|
21
|
+
Kt[`announcement--${o}`],
|
|
22
22
|
s ?? ""
|
|
23
23
|
].filter(Boolean).join(" "),
|
|
24
|
-
children: [/* @__PURE__ */
|
|
25
|
-
className:
|
|
24
|
+
children: [/* @__PURE__ */ N("div", {
|
|
25
|
+
className: Kt.content,
|
|
26
26
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
className:
|
|
27
|
+
/* @__PURE__ */ M("span", {
|
|
28
|
+
className: Kt.icon,
|
|
29
29
|
"aria-hidden": "true",
|
|
30
|
-
children: c ? /* @__PURE__ */
|
|
30
|
+
children: c ? /* @__PURE__ */ M(nt, {
|
|
31
31
|
size: 24,
|
|
32
32
|
strokeWidth: 1.5,
|
|
33
33
|
style: {
|
|
34
34
|
fill: "var(--color-info-solid)",
|
|
35
35
|
stroke: "var(--color-info-bg)"
|
|
36
36
|
}
|
|
37
|
-
}) : /* @__PURE__ */
|
|
37
|
+
}) : /* @__PURE__ */ M(rt, {
|
|
38
38
|
size: 24,
|
|
39
39
|
strokeWidth: 1.5,
|
|
40
40
|
fill: "currentColor",
|
|
41
41
|
stroke: "currentColor",
|
|
42
|
-
className:
|
|
42
|
+
className: Kt.icon__neutral
|
|
43
43
|
})
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
className:
|
|
45
|
+
/* @__PURE__ */ M("p", {
|
|
46
|
+
className: Kt.message,
|
|
47
47
|
children: e
|
|
48
48
|
}),
|
|
49
|
-
!c && t && /* @__PURE__ */
|
|
49
|
+
!c && t && /* @__PURE__ */ M(i, {
|
|
50
50
|
href: n,
|
|
51
51
|
onClick: r,
|
|
52
|
-
className:
|
|
52
|
+
className: Kt.link,
|
|
53
53
|
style: {
|
|
54
54
|
color: "var(--color-brand-fg)",
|
|
55
55
|
fontSize: 16,
|
|
@@ -58,15 +58,15 @@ var Yt = {
|
|
|
58
58
|
children: t
|
|
59
59
|
})
|
|
60
60
|
]
|
|
61
|
-
}), a && /* @__PURE__ */
|
|
62
|
-
icon:
|
|
61
|
+
}), a && /* @__PURE__ */ M(C, {
|
|
62
|
+
icon: tt,
|
|
63
63
|
size: "sm",
|
|
64
64
|
variant: "ghost",
|
|
65
65
|
"aria-label": "Dismiss",
|
|
66
66
|
onClick: a
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
|
-
},
|
|
69
|
+
}, P = {
|
|
70
70
|
snippet: "_snippet_1ao90_1",
|
|
71
71
|
header: "_header_1ao90_12",
|
|
72
72
|
filename: "_filename_1ao90_19",
|
|
@@ -75,7 +75,7 @@ var Yt = {
|
|
|
75
75
|
tokenString: "_tokenString_1ao90_43",
|
|
76
76
|
editableBody: "_editableBody_1ao90_50",
|
|
77
77
|
textarea: "_textarea_1ao90_55"
|
|
78
|
-
},
|
|
78
|
+
}, Jt = [
|
|
79
79
|
"import",
|
|
80
80
|
"export",
|
|
81
81
|
"from",
|
|
@@ -97,31 +97,31 @@ var Yt = {
|
|
|
97
97
|
"as",
|
|
98
98
|
"of",
|
|
99
99
|
"in"
|
|
100
|
-
],
|
|
100
|
+
], Yt = RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${Jt.join("|")})\\b)`, "g"), Xt = (e) => e.split(Yt).map((e, t) => {
|
|
101
101
|
if (!e) return null;
|
|
102
|
-
let n = /^['"`]/.test(e), r = !n &&
|
|
103
|
-
return n ? /* @__PURE__ */
|
|
104
|
-
className:
|
|
102
|
+
let n = /^['"`]/.test(e), r = !n && Jt.includes(e);
|
|
103
|
+
return n ? /* @__PURE__ */ M("span", {
|
|
104
|
+
className: P.tokenString,
|
|
105
105
|
children: e
|
|
106
|
-
}, t) : r ? /* @__PURE__ */
|
|
107
|
-
className:
|
|
106
|
+
}, t) : r ? /* @__PURE__ */ M("span", {
|
|
107
|
+
className: P.tokenKeyword,
|
|
108
108
|
children: e
|
|
109
|
-
}, t) : /* @__PURE__ */
|
|
110
|
-
}),
|
|
111
|
-
let [s, c] =
|
|
112
|
-
|
|
109
|
+
}, t) : /* @__PURE__ */ M(k.Fragment, { children: e }, t);
|
|
110
|
+
}), Zt = ({ code: e, filename: t, onCopy: n, editable: r = !1, onChange: i, placeholder: a, className: o }) => {
|
|
111
|
+
let [s, c] = k.useState(!1), [l, u] = k.useState(e);
|
|
112
|
+
k.useEffect(() => u(e), [e]);
|
|
113
113
|
let d = () => {
|
|
114
114
|
navigator.clipboard?.writeText(l), n?.(l), c(!0), window.setTimeout(() => c(!1), 1500);
|
|
115
115
|
}, f = (e) => {
|
|
116
116
|
u(e), i?.(e);
|
|
117
|
-
}, p = r ? /* @__PURE__ */
|
|
118
|
-
className:
|
|
119
|
-
children: [/* @__PURE__ */
|
|
120
|
-
className:
|
|
117
|
+
}, p = r ? /* @__PURE__ */ N("div", {
|
|
118
|
+
className: P.editableBody,
|
|
119
|
+
children: [/* @__PURE__ */ M("pre", {
|
|
120
|
+
className: P.body,
|
|
121
121
|
"aria-hidden": "true",
|
|
122
|
-
children:
|
|
123
|
-
}), /* @__PURE__ */
|
|
124
|
-
className:
|
|
122
|
+
children: Xt(l)
|
|
123
|
+
}), /* @__PURE__ */ M("textarea", {
|
|
124
|
+
className: P.textarea,
|
|
125
125
|
value: l,
|
|
126
126
|
placeholder: a,
|
|
127
127
|
spellCheck: !1,
|
|
@@ -135,30 +135,30 @@ var Yt = {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
})]
|
|
138
|
-
}) : /* @__PURE__ */
|
|
139
|
-
className:
|
|
140
|
-
children:
|
|
138
|
+
}) : /* @__PURE__ */ M("pre", {
|
|
139
|
+
className: P.body,
|
|
140
|
+
children: Xt(l)
|
|
141
141
|
});
|
|
142
|
-
return t ? /* @__PURE__ */
|
|
143
|
-
className: [
|
|
144
|
-
children: [/* @__PURE__ */
|
|
145
|
-
className:
|
|
146
|
-
children: [/* @__PURE__ */
|
|
147
|
-
className:
|
|
142
|
+
return t ? /* @__PURE__ */ N("div", {
|
|
143
|
+
className: [P.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
144
|
+
children: [/* @__PURE__ */ N("div", {
|
|
145
|
+
className: P.header,
|
|
146
|
+
children: [/* @__PURE__ */ M("p", {
|
|
147
|
+
className: P.filename,
|
|
148
148
|
children: t
|
|
149
|
-
}), /* @__PURE__ */
|
|
150
|
-
icon: s ?
|
|
149
|
+
}), /* @__PURE__ */ M(C, {
|
|
150
|
+
icon: s ? ut : xt,
|
|
151
151
|
variant: "ghost",
|
|
152
152
|
size: "sm",
|
|
153
153
|
"aria-label": s ? "Copied" : "Copy code",
|
|
154
154
|
onClick: d
|
|
155
155
|
})]
|
|
156
156
|
}), p]
|
|
157
|
-
}) : /* @__PURE__ */
|
|
158
|
-
className: [
|
|
157
|
+
}) : /* @__PURE__ */ M("div", {
|
|
158
|
+
className: [P.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
159
159
|
children: p
|
|
160
160
|
});
|
|
161
|
-
},
|
|
161
|
+
}, Qt = {
|
|
162
162
|
expenses: "_expenses_1imiq_1",
|
|
163
163
|
row: "_row_1imiq_10",
|
|
164
164
|
top: "_top_1imiq_18",
|
|
@@ -166,70 +166,70 @@ var Yt = {
|
|
|
166
166
|
icon: "_icon_1imiq_32",
|
|
167
167
|
label: "_label_1imiq_44",
|
|
168
168
|
amount: "_amount_1imiq_55"
|
|
169
|
-
},
|
|
169
|
+
}, $t = (e) => e.toLocaleString("en-US", {
|
|
170
170
|
style: "currency",
|
|
171
171
|
currency: "USD"
|
|
172
|
-
}),
|
|
172
|
+
}), en = ({ categories: e, variant: t = "default", formatAmount: n = $t, className: r }) => {
|
|
173
173
|
let i = t === "compact", a = Math.max(1, ...e.map((e) => e.amount));
|
|
174
|
-
return /* @__PURE__ */
|
|
175
|
-
className: [
|
|
176
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
177
|
-
className:
|
|
178
|
-
children: [/* @__PURE__ */
|
|
179
|
-
className:
|
|
180
|
-
children: [/* @__PURE__ */
|
|
181
|
-
className:
|
|
182
|
-
children: [/* @__PURE__ */
|
|
183
|
-
className:
|
|
174
|
+
return /* @__PURE__ */ M("div", {
|
|
175
|
+
className: [Qt.expenses, r ?? ""].filter(Boolean).join(" "),
|
|
176
|
+
children: e.map((e, t) => /* @__PURE__ */ N("div", {
|
|
177
|
+
className: Qt.row,
|
|
178
|
+
children: [/* @__PURE__ */ N("div", {
|
|
179
|
+
className: Qt.top,
|
|
180
|
+
children: [/* @__PURE__ */ N("div", {
|
|
181
|
+
className: Qt.left,
|
|
182
|
+
children: [/* @__PURE__ */ M("span", {
|
|
183
|
+
className: Qt.icon,
|
|
184
184
|
"aria-hidden": "true",
|
|
185
185
|
children: e.icon
|
|
186
|
-
}), /* @__PURE__ */
|
|
187
|
-
className:
|
|
186
|
+
}), /* @__PURE__ */ M("p", {
|
|
187
|
+
className: Qt.label,
|
|
188
188
|
children: e.label
|
|
189
189
|
})]
|
|
190
|
-
}), /* @__PURE__ */
|
|
191
|
-
className:
|
|
190
|
+
}), /* @__PURE__ */ M("p", {
|
|
191
|
+
className: Qt.amount,
|
|
192
192
|
children: n(e.amount)
|
|
193
193
|
})]
|
|
194
|
-
}), !i && /* @__PURE__ */
|
|
194
|
+
}), !i && /* @__PURE__ */ M(Ge, {
|
|
195
195
|
value: e.amount / a * 100,
|
|
196
196
|
size: "lg",
|
|
197
197
|
label: `${e.label} spending`
|
|
198
198
|
})]
|
|
199
199
|
}, e.id ?? t))
|
|
200
200
|
});
|
|
201
|
-
},
|
|
201
|
+
}, tn = {
|
|
202
202
|
hint: "_hint_49nyi_1",
|
|
203
203
|
bar: "_bar_49nyi_9",
|
|
204
204
|
"hint--neutral": "_hint--neutral_49nyi_15",
|
|
205
205
|
"hint--warning": "_hint--warning_49nyi_16",
|
|
206
206
|
icon: "_icon_49nyi_18",
|
|
207
207
|
message: "_message_49nyi_24"
|
|
208
|
-
},
|
|
209
|
-
let r = t === "warning" ?
|
|
210
|
-
return /* @__PURE__ */
|
|
208
|
+
}, nn = 14, rn = ({ message: e, variant: t = "neutral", className: n }) => {
|
|
209
|
+
let r = t === "warning" ? nt : yt;
|
|
210
|
+
return /* @__PURE__ */ N("div", {
|
|
211
211
|
className: [
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
tn.hint,
|
|
213
|
+
tn[`hint--${t}`],
|
|
214
214
|
n ?? ""
|
|
215
215
|
].filter(Boolean).join(" "),
|
|
216
216
|
children: [
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
className:
|
|
217
|
+
/* @__PURE__ */ M("span", {
|
|
218
|
+
className: tn.bar,
|
|
219
219
|
"aria-hidden": "true"
|
|
220
220
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
size:
|
|
223
|
-
strokeWidth:
|
|
224
|
-
className:
|
|
221
|
+
/* @__PURE__ */ M(r, {
|
|
222
|
+
size: nn,
|
|
223
|
+
strokeWidth: O(nn),
|
|
224
|
+
className: tn.icon
|
|
225
225
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
className:
|
|
226
|
+
/* @__PURE__ */ M("p", {
|
|
227
|
+
className: tn.message,
|
|
228
228
|
children: e
|
|
229
229
|
})
|
|
230
230
|
]
|
|
231
231
|
});
|
|
232
|
-
},
|
|
232
|
+
}, F = {
|
|
233
233
|
item: "_item_jnz6o_1",
|
|
234
234
|
"item--horizontal": "_item--horizontal_jnz6o_6",
|
|
235
235
|
"item--vertical": "_item--vertical_jnz6o_11",
|
|
@@ -242,63 +242,63 @@ var Yt = {
|
|
|
242
242
|
connectorVertical: "_connectorVertical_jnz6o_63",
|
|
243
243
|
title: "_title_jnz6o_77",
|
|
244
244
|
description: "_description_jnz6o_85"
|
|
245
|
-
},
|
|
246
|
-
let s = i === "vertical", c = /* @__PURE__ */
|
|
247
|
-
className:
|
|
245
|
+
}, an = ({ step: e, title: t, description: n, completed: r = !1, orientation: i = "horizontal", isLast: a = !1, className: o }) => {
|
|
246
|
+
let s = i === "vertical", c = /* @__PURE__ */ M("span", {
|
|
247
|
+
className: F.value,
|
|
248
248
|
"aria-hidden": "true",
|
|
249
|
-
children: r ? /* @__PURE__ */
|
|
249
|
+
children: r ? /* @__PURE__ */ M(ut, {
|
|
250
250
|
size: 14,
|
|
251
|
-
strokeWidth:
|
|
251
|
+
strokeWidth: O(14)
|
|
252
252
|
}) : e
|
|
253
|
-
}), l = /* @__PURE__ */
|
|
254
|
-
className: [
|
|
255
|
-
children: [/* @__PURE__ */
|
|
256
|
-
className:
|
|
253
|
+
}), l = /* @__PURE__ */ N("div", {
|
|
254
|
+
className: [F.text, n ? "" : F["text--single"]].filter(Boolean).join(" "),
|
|
255
|
+
children: [/* @__PURE__ */ M("p", {
|
|
256
|
+
className: F.title,
|
|
257
257
|
children: t
|
|
258
|
-
}), n && /* @__PURE__ */
|
|
259
|
-
className:
|
|
258
|
+
}), n && /* @__PURE__ */ M("p", {
|
|
259
|
+
className: F.description,
|
|
260
260
|
children: n
|
|
261
261
|
})]
|
|
262
262
|
});
|
|
263
|
-
return s ? /* @__PURE__ */
|
|
263
|
+
return s ? /* @__PURE__ */ N("div", {
|
|
264
264
|
className: [
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
F.item,
|
|
266
|
+
F["item--vertical"],
|
|
267
267
|
o ?? ""
|
|
268
268
|
].filter(Boolean).join(" "),
|
|
269
|
-
children: [/* @__PURE__ */
|
|
270
|
-
className:
|
|
271
|
-
children: [c, !a && /* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ N("div", {
|
|
270
|
+
className: F.rail,
|
|
271
|
+
children: [c, !a && /* @__PURE__ */ M("div", { className: F.connectorVertical })]
|
|
272
272
|
}), l]
|
|
273
|
-
}) : /* @__PURE__ */
|
|
273
|
+
}) : /* @__PURE__ */ N("div", {
|
|
274
274
|
className: [
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
F.item,
|
|
276
|
+
F["item--horizontal"],
|
|
277
277
|
o ?? ""
|
|
278
278
|
].filter(Boolean).join(" "),
|
|
279
|
-
children: [/* @__PURE__ */
|
|
280
|
-
className:
|
|
281
|
-
children: [c, !a && /* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ N("div", {
|
|
280
|
+
className: F.topRow,
|
|
281
|
+
children: [c, !a && /* @__PURE__ */ M("div", { className: F.connectorHorizontal })]
|
|
282
282
|
}), l]
|
|
283
283
|
});
|
|
284
|
-
},
|
|
284
|
+
}, on = {
|
|
285
285
|
separator: "_separator_pcfo8_1",
|
|
286
286
|
line: "_line_pcfo8_9",
|
|
287
287
|
overline: "_overline_pcfo8_19",
|
|
288
288
|
badge: "_badge_pcfo8_31",
|
|
289
289
|
iconWrap: "_iconWrap_pcfo8_37"
|
|
290
|
-
},
|
|
291
|
-
className: [
|
|
290
|
+
}, sn = ({ children: e, label: t, className: n }) => /* @__PURE__ */ N("div", {
|
|
291
|
+
className: [on.separator, n ?? ""].filter(Boolean).join(" "),
|
|
292
292
|
role: "separator",
|
|
293
293
|
children: [
|
|
294
|
-
/* @__PURE__ */
|
|
295
|
-
e ?? (t && /* @__PURE__ */
|
|
296
|
-
className:
|
|
294
|
+
/* @__PURE__ */ M(D, { className: on.line }),
|
|
295
|
+
e ?? (t && /* @__PURE__ */ M("span", {
|
|
296
|
+
className: on.overline,
|
|
297
297
|
children: t
|
|
298
298
|
})),
|
|
299
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ M(D, { className: on.line })
|
|
300
300
|
]
|
|
301
|
-
}),
|
|
301
|
+
}), I = {
|
|
302
302
|
row: "_row_5wjem_2",
|
|
303
303
|
left: "_left_5wjem_16",
|
|
304
304
|
logo: "_logo_5wjem_23",
|
|
@@ -324,122 +324,122 @@ var Yt = {
|
|
|
324
324
|
changeRowLg: "_changeRowLg_5wjem_153",
|
|
325
325
|
changeTextLg: "_changeTextLg_5wjem_158",
|
|
326
326
|
chart: "_chart_5wjem_165"
|
|
327
|
-
},
|
|
327
|
+
}, cn = (e) => Math.abs(e).toLocaleString("en-US", {
|
|
328
328
|
style: "currency",
|
|
329
329
|
currency: "USD"
|
|
330
|
-
}),
|
|
331
|
-
let u = i.amount >= 0, d = u ?
|
|
332
|
-
return o ? /* @__PURE__ */
|
|
333
|
-
className: [
|
|
330
|
+
}), ln = ({ logo: e, symbol: t, name: n, price: r, change: i, formatAmount: a = cn, chart: o, periodLabel: s = "Last 6 months", onPeriodClick: c, className: l }) => {
|
|
331
|
+
let u = i.amount >= 0, d = u ? lt : $e, f = u ? "+" : "-", p = `${f}${a(i.amount)} (${f}${Math.abs(i.percent)}%)`, m = u ? I.trendUp : I.trendDown;
|
|
332
|
+
return o ? /* @__PURE__ */ N("div", {
|
|
333
|
+
className: [I.card, l ?? ""].filter(Boolean).join(" "),
|
|
334
334
|
children: [
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
className:
|
|
337
|
-
children: [/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ N("div", {
|
|
336
|
+
className: I.header,
|
|
337
|
+
children: [/* @__PURE__ */ M(gt, {
|
|
338
338
|
size: 16,
|
|
339
|
-
strokeWidth:
|
|
340
|
-
className:
|
|
341
|
-
}), /* @__PURE__ */
|
|
342
|
-
className:
|
|
339
|
+
strokeWidth: O(16),
|
|
340
|
+
className: I.headerIcon
|
|
341
|
+
}), /* @__PURE__ */ M("span", {
|
|
342
|
+
className: I.headerLabel,
|
|
343
343
|
children: "Stock market"
|
|
344
344
|
})]
|
|
345
345
|
}),
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
className:
|
|
348
|
-
children: [/* @__PURE__ */
|
|
349
|
-
className:
|
|
346
|
+
/* @__PURE__ */ N("div", {
|
|
347
|
+
className: I.tickerRow,
|
|
348
|
+
children: [/* @__PURE__ */ M("span", {
|
|
349
|
+
className: I.logoLg,
|
|
350
350
|
"aria-hidden": "true",
|
|
351
351
|
children: e
|
|
352
|
-
}), /* @__PURE__ */
|
|
353
|
-
className:
|
|
354
|
-
children: [/* @__PURE__ */
|
|
355
|
-
className:
|
|
352
|
+
}), /* @__PURE__ */ N("div", {
|
|
353
|
+
className: I.text,
|
|
354
|
+
children: [/* @__PURE__ */ M("p", {
|
|
355
|
+
className: I.symbol,
|
|
356
356
|
children: t
|
|
357
|
-
}), /* @__PURE__ */
|
|
358
|
-
className:
|
|
357
|
+
}), /* @__PURE__ */ M("p", {
|
|
358
|
+
className: I.name,
|
|
359
359
|
children: n
|
|
360
360
|
})]
|
|
361
361
|
})]
|
|
362
362
|
}),
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
className:
|
|
365
|
-
children: [/* @__PURE__ */
|
|
366
|
-
className:
|
|
367
|
-
children: [/* @__PURE__ */
|
|
368
|
-
className:
|
|
369
|
-
children: [/* @__PURE__ */
|
|
370
|
-
className:
|
|
363
|
+
/* @__PURE__ */ N("div", {
|
|
364
|
+
className: I.body,
|
|
365
|
+
children: [/* @__PURE__ */ N("div", {
|
|
366
|
+
className: I.priceRow,
|
|
367
|
+
children: [/* @__PURE__ */ N("div", {
|
|
368
|
+
className: I.priceGroup,
|
|
369
|
+
children: [/* @__PURE__ */ M("p", {
|
|
370
|
+
className: I.priceLg,
|
|
371
371
|
children: a(r)
|
|
372
|
-
}), /* @__PURE__ */
|
|
373
|
-
className:
|
|
374
|
-
children: [/* @__PURE__ */
|
|
372
|
+
}), /* @__PURE__ */ N("div", {
|
|
373
|
+
className: I.changeRowLg,
|
|
374
|
+
children: [/* @__PURE__ */ M(d, {
|
|
375
375
|
size: 24,
|
|
376
|
-
strokeWidth:
|
|
376
|
+
strokeWidth: O(24),
|
|
377
377
|
className: m
|
|
378
|
-
}), /* @__PURE__ */
|
|
379
|
-
className: [
|
|
378
|
+
}), /* @__PURE__ */ M("span", {
|
|
379
|
+
className: [I.changeTextLg, m].join(" "),
|
|
380
380
|
children: p
|
|
381
381
|
})]
|
|
382
382
|
})]
|
|
383
|
-
}), /* @__PURE__ */
|
|
383
|
+
}), /* @__PURE__ */ M(Ye, {
|
|
384
384
|
variant: "outline",
|
|
385
385
|
size: "sm",
|
|
386
|
-
rightIcon: /* @__PURE__ */
|
|
386
|
+
rightIcon: /* @__PURE__ */ M(et, {
|
|
387
387
|
size: 16,
|
|
388
|
-
strokeWidth:
|
|
388
|
+
strokeWidth: O(16)
|
|
389
389
|
}),
|
|
390
390
|
onClick: c,
|
|
391
391
|
children: s
|
|
392
392
|
})]
|
|
393
|
-
}), /* @__PURE__ */
|
|
393
|
+
}), /* @__PURE__ */ M(Se, {
|
|
394
394
|
data: o,
|
|
395
|
-
className:
|
|
395
|
+
className: I.chart
|
|
396
396
|
})]
|
|
397
397
|
})
|
|
398
398
|
]
|
|
399
|
-
}) : /* @__PURE__ */
|
|
400
|
-
className: [
|
|
401
|
-
children: [/* @__PURE__ */
|
|
402
|
-
className:
|
|
403
|
-
children: [/* @__PURE__ */
|
|
404
|
-
className:
|
|
399
|
+
}) : /* @__PURE__ */ N("div", {
|
|
400
|
+
className: [I.row, l ?? ""].filter(Boolean).join(" "),
|
|
401
|
+
children: [/* @__PURE__ */ N("div", {
|
|
402
|
+
className: I.left,
|
|
403
|
+
children: [/* @__PURE__ */ M("span", {
|
|
404
|
+
className: I.logo,
|
|
405
405
|
"aria-hidden": "true",
|
|
406
406
|
children: e
|
|
407
|
-
}), /* @__PURE__ */
|
|
408
|
-
className:
|
|
409
|
-
children: [/* @__PURE__ */
|
|
410
|
-
className:
|
|
407
|
+
}), /* @__PURE__ */ N("div", {
|
|
408
|
+
className: I.text,
|
|
409
|
+
children: [/* @__PURE__ */ M("p", {
|
|
410
|
+
className: I.symbol,
|
|
411
411
|
children: t
|
|
412
|
-
}), /* @__PURE__ */
|
|
413
|
-
className:
|
|
412
|
+
}), /* @__PURE__ */ M("p", {
|
|
413
|
+
className: I.name,
|
|
414
414
|
children: n
|
|
415
415
|
})]
|
|
416
416
|
})]
|
|
417
|
-
}), /* @__PURE__ */
|
|
418
|
-
className:
|
|
419
|
-
children: [/* @__PURE__ */
|
|
420
|
-
className:
|
|
417
|
+
}), /* @__PURE__ */ N("div", {
|
|
418
|
+
className: I.right,
|
|
419
|
+
children: [/* @__PURE__ */ M("p", {
|
|
420
|
+
className: I.price,
|
|
421
421
|
children: a(r)
|
|
422
|
-
}), /* @__PURE__ */
|
|
423
|
-
className:
|
|
424
|
-
children: [/* @__PURE__ */
|
|
422
|
+
}), /* @__PURE__ */ N("div", {
|
|
423
|
+
className: I.changeRow,
|
|
424
|
+
children: [/* @__PURE__ */ M(d, {
|
|
425
425
|
size: 20,
|
|
426
|
-
strokeWidth:
|
|
426
|
+
strokeWidth: O(20),
|
|
427
427
|
className: m
|
|
428
|
-
}), /* @__PURE__ */
|
|
429
|
-
className: [
|
|
428
|
+
}), /* @__PURE__ */ M("span", {
|
|
429
|
+
className: [I.changeText, m].join(" "),
|
|
430
430
|
children: p
|
|
431
431
|
})]
|
|
432
432
|
})]
|
|
433
433
|
})]
|
|
434
434
|
});
|
|
435
|
-
},
|
|
435
|
+
}, un = {
|
|
436
436
|
tags: "_tags_bsi1x_1",
|
|
437
437
|
remove: "_remove_bsi1x_8",
|
|
438
438
|
tag: "_tag_bsi1x_1",
|
|
439
439
|
"tag--leaving": "_tag--leaving_bsi1x_22"
|
|
440
|
-
},
|
|
441
|
-
let [r, i] =
|
|
442
|
-
|
|
440
|
+
}, dn = 160, fn = ({ tags: e, onRemove: t, className: n }) => {
|
|
441
|
+
let [r, i] = k.useState(null), a = k.useRef(void 0);
|
|
442
|
+
k.useEffect(() => () => window.clearTimeout(a.current), []);
|
|
443
443
|
let o = (e, n) => {
|
|
444
444
|
if (!(!t || r)) {
|
|
445
445
|
if (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) {
|
|
@@ -448,27 +448,27 @@ var Yt = {
|
|
|
448
448
|
}
|
|
449
449
|
i(e), a.current = window.setTimeout(() => {
|
|
450
450
|
t(e, n), i(null);
|
|
451
|
-
},
|
|
451
|
+
}, dn);
|
|
452
452
|
}
|
|
453
453
|
};
|
|
454
|
-
return /* @__PURE__ */
|
|
455
|
-
className: [
|
|
456
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
457
|
-
className: [
|
|
458
|
-
rightIcon: t && /* @__PURE__ */
|
|
454
|
+
return /* @__PURE__ */ M("div", {
|
|
455
|
+
className: [un.tags, n ?? ""].filter(Boolean).join(" "),
|
|
456
|
+
children: e.map((e, n) => /* @__PURE__ */ M(Le, {
|
|
457
|
+
className: [un.tag, r === e ? un["tag--leaving"] : ""].filter(Boolean).join(" "),
|
|
458
|
+
rightIcon: t && /* @__PURE__ */ M("button", {
|
|
459
459
|
type: "button",
|
|
460
|
-
className:
|
|
460
|
+
className: un.remove,
|
|
461
461
|
onClick: () => o(e, n),
|
|
462
462
|
"aria-label": `Remove ${e}`,
|
|
463
|
-
children: /* @__PURE__ */
|
|
463
|
+
children: /* @__PURE__ */ M(tt, {
|
|
464
464
|
size: 12,
|
|
465
|
-
strokeWidth:
|
|
465
|
+
strokeWidth: O(12)
|
|
466
466
|
})
|
|
467
467
|
}),
|
|
468
468
|
children: e
|
|
469
469
|
}, e))
|
|
470
470
|
});
|
|
471
|
-
},
|
|
471
|
+
}, L = {
|
|
472
472
|
ticker: "_ticker_6xnxy_1",
|
|
473
473
|
track: "_track_6xnxy_9",
|
|
474
474
|
"ticker-scroll": "_ticker-scroll_6xnxy_1",
|
|
@@ -480,33 +480,33 @@ var Yt = {
|
|
|
480
480
|
trendDown: "_trendDown_6xnxy_58",
|
|
481
481
|
fadeLeft: "_fadeLeft_6xnxy_60",
|
|
482
482
|
fadeRight: "_fadeRight_6xnxy_61"
|
|
483
|
-
},
|
|
484
|
-
className:
|
|
483
|
+
}, pn = (e) => `${e >= 0 ? "+" : ""}${e}%`, mn = ({ items: e, formatChange: t, ariaHidden: n }) => /* @__PURE__ */ M("div", {
|
|
484
|
+
className: L.row,
|
|
485
485
|
"aria-hidden": n,
|
|
486
486
|
children: e.map((e, n) => {
|
|
487
|
-
let r = e.changePercent >= 0, i = r ?
|
|
488
|
-
return /* @__PURE__ */
|
|
489
|
-
className:
|
|
487
|
+
let r = e.changePercent >= 0, i = r ? lt : $e, a = r ? L.trendUp : L.trendDown;
|
|
488
|
+
return /* @__PURE__ */ N("div", {
|
|
489
|
+
className: L.item,
|
|
490
490
|
children: [
|
|
491
|
-
/* @__PURE__ */
|
|
492
|
-
className:
|
|
491
|
+
/* @__PURE__ */ M("span", {
|
|
492
|
+
className: L.symbol,
|
|
493
493
|
children: e.symbol
|
|
494
494
|
}),
|
|
495
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ M(i, {
|
|
496
496
|
size: 14,
|
|
497
|
-
strokeWidth:
|
|
497
|
+
strokeWidth: O(14),
|
|
498
498
|
className: a
|
|
499
499
|
}),
|
|
500
|
-
/* @__PURE__ */
|
|
501
|
-
className: [
|
|
500
|
+
/* @__PURE__ */ M("span", {
|
|
501
|
+
className: [L.change, a].join(" "),
|
|
502
502
|
children: t(e.changePercent)
|
|
503
503
|
})
|
|
504
504
|
]
|
|
505
505
|
}, `${e.symbol}-${n}`);
|
|
506
506
|
})
|
|
507
|
-
}),
|
|
508
|
-
let i =
|
|
509
|
-
return
|
|
507
|
+
}), hn = ({ items: e, speed: t = 40, formatChange: n = pn, className: r }) => {
|
|
508
|
+
let i = k.useRef(null), [a, o] = k.useState(20);
|
|
509
|
+
return k.useEffect(() => {
|
|
510
510
|
let e = i.current;
|
|
511
511
|
if (!e) return;
|
|
512
512
|
let n = e.firstElementChild;
|
|
@@ -518,33 +518,33 @@ var Yt = {
|
|
|
518
518
|
r();
|
|
519
519
|
let a = new ResizeObserver(r);
|
|
520
520
|
return a.observe(n), () => a.disconnect();
|
|
521
|
-
}, [e, t]), /* @__PURE__ */
|
|
522
|
-
className: [
|
|
521
|
+
}, [e, t]), /* @__PURE__ */ N("div", {
|
|
522
|
+
className: [L.ticker, r ?? ""].filter(Boolean).join(" "),
|
|
523
523
|
children: [
|
|
524
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ N("div", {
|
|
525
525
|
ref: i,
|
|
526
|
-
className:
|
|
526
|
+
className: L.track,
|
|
527
527
|
style: { "--ticker-duration": `${a}s` },
|
|
528
|
-
children: [/* @__PURE__ */
|
|
528
|
+
children: [/* @__PURE__ */ M(mn, {
|
|
529
529
|
items: e,
|
|
530
530
|
formatChange: n
|
|
531
|
-
}), /* @__PURE__ */
|
|
531
|
+
}), /* @__PURE__ */ M(mn, {
|
|
532
532
|
items: e,
|
|
533
533
|
formatChange: n,
|
|
534
534
|
ariaHidden: !0
|
|
535
535
|
})]
|
|
536
536
|
}),
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
className:
|
|
537
|
+
/* @__PURE__ */ M("div", {
|
|
538
|
+
className: L.fadeLeft,
|
|
539
539
|
"aria-hidden": "true"
|
|
540
540
|
}),
|
|
541
|
-
/* @__PURE__ */
|
|
542
|
-
className:
|
|
541
|
+
/* @__PURE__ */ M("div", {
|
|
542
|
+
className: L.fadeRight,
|
|
543
543
|
"aria-hidden": "true"
|
|
544
544
|
})
|
|
545
545
|
]
|
|
546
546
|
});
|
|
547
|
-
},
|
|
547
|
+
}, R = {
|
|
548
548
|
list: "_list_ovxee_1",
|
|
549
549
|
row: "_row_ovxee_9",
|
|
550
550
|
rowLast: "_rowLast_ovxee_18",
|
|
@@ -560,55 +560,55 @@ var Yt = {
|
|
|
560
560
|
emptyIcon: "_emptyIcon_ovxee_86",
|
|
561
561
|
emptyTitle: "_emptyTitle_ovxee_89",
|
|
562
562
|
emptyDesc: "_emptyDesc_ovxee_96"
|
|
563
|
-
},
|
|
563
|
+
}, gn = (e) => `${e >= 0 ? "+" : "-"}${Math.abs(e).toLocaleString("en-US", {
|
|
564
564
|
style: "currency",
|
|
565
565
|
currency: "USD"
|
|
566
|
-
})}`,
|
|
567
|
-
className: [
|
|
566
|
+
})}`, _n = ({ transactions: e, formatAmount: t = gn, emptyTitle: n = "No transactions yet", emptyDescription: r = "Your activity will show up here.", className: i }) => e.length === 0 ? /* @__PURE__ */ N("div", {
|
|
567
|
+
className: [R.empty, i ?? ""].filter(Boolean).join(" "),
|
|
568
568
|
children: [
|
|
569
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ M(_t, {
|
|
570
570
|
size: 24,
|
|
571
|
-
strokeWidth:
|
|
572
|
-
className:
|
|
571
|
+
strokeWidth: O(24),
|
|
572
|
+
className: R.emptyIcon
|
|
573
573
|
}),
|
|
574
|
-
/* @__PURE__ */
|
|
575
|
-
className:
|
|
574
|
+
/* @__PURE__ */ M("p", {
|
|
575
|
+
className: R.emptyTitle,
|
|
576
576
|
children: n
|
|
577
577
|
}),
|
|
578
|
-
/* @__PURE__ */
|
|
579
|
-
className:
|
|
578
|
+
/* @__PURE__ */ M("p", {
|
|
579
|
+
className: R.emptyDesc,
|
|
580
580
|
children: r
|
|
581
581
|
})
|
|
582
582
|
]
|
|
583
|
-
}) : /* @__PURE__ */
|
|
584
|
-
className: [
|
|
583
|
+
}) : /* @__PURE__ */ M("div", {
|
|
584
|
+
className: [R.list, i ?? ""].filter(Boolean).join(" "),
|
|
585
585
|
children: e.map((n, r) => {
|
|
586
586
|
let i = n.amount >= 0;
|
|
587
|
-
return /* @__PURE__ */
|
|
588
|
-
className: [
|
|
589
|
-
children: [/* @__PURE__ */
|
|
590
|
-
className:
|
|
591
|
-
children: [/* @__PURE__ */
|
|
592
|
-
className:
|
|
587
|
+
return /* @__PURE__ */ N("div", {
|
|
588
|
+
className: [R.row, r === e.length - 1 ? R.rowLast : ""].filter(Boolean).join(" "),
|
|
589
|
+
children: [/* @__PURE__ */ N("div", {
|
|
590
|
+
className: R.left,
|
|
591
|
+
children: [/* @__PURE__ */ M("span", {
|
|
592
|
+
className: R.iconWrap,
|
|
593
593
|
"aria-hidden": "true",
|
|
594
594
|
children: n.icon
|
|
595
|
-
}), /* @__PURE__ */
|
|
596
|
-
className:
|
|
597
|
-
children: [/* @__PURE__ */
|
|
598
|
-
className:
|
|
595
|
+
}), /* @__PURE__ */ N("div", {
|
|
596
|
+
className: R.info,
|
|
597
|
+
children: [/* @__PURE__ */ M("p", {
|
|
598
|
+
className: R.name,
|
|
599
599
|
children: n.name
|
|
600
|
-
}), /* @__PURE__ */
|
|
601
|
-
className:
|
|
600
|
+
}), /* @__PURE__ */ M("p", {
|
|
601
|
+
className: R.category,
|
|
602
602
|
children: n.category
|
|
603
603
|
})]
|
|
604
604
|
})]
|
|
605
|
-
}), /* @__PURE__ */
|
|
606
|
-
className: [
|
|
605
|
+
}), /* @__PURE__ */ M("p", {
|
|
606
|
+
className: [R.amount, i ? R.amountUp : R.amountDown].join(" "),
|
|
607
607
|
children: t(n.amount)
|
|
608
608
|
})]
|
|
609
609
|
}, n.id ?? `${n.name}-${r}`);
|
|
610
610
|
})
|
|
611
|
-
}),
|
|
611
|
+
}), z = {
|
|
612
612
|
root: "_root_19qxp_1",
|
|
613
613
|
rootAttributed: "_rootAttributed_19qxp_10",
|
|
614
614
|
rootSimple: "_rootSimple_19qxp_18",
|
|
@@ -622,57 +622,57 @@ var Yt = {
|
|
|
622
622
|
author: "_author_19qxp_77",
|
|
623
623
|
authorText: "_authorText_19qxp_83",
|
|
624
624
|
authorName: "_authorName_19qxp_91"
|
|
625
|
-
},
|
|
625
|
+
}, vn = ({ quote: e, author: t, className: n }) => {
|
|
626
626
|
let r = !!t;
|
|
627
|
-
return /* @__PURE__ */
|
|
627
|
+
return /* @__PURE__ */ N("div", {
|
|
628
628
|
className: [
|
|
629
|
-
|
|
630
|
-
r ?
|
|
629
|
+
z.root,
|
|
630
|
+
r ? z.rootAttributed : z.rootSimple,
|
|
631
631
|
n ?? ""
|
|
632
632
|
].filter(Boolean).join(" "),
|
|
633
|
-
children: [/* @__PURE__ */
|
|
633
|
+
children: [/* @__PURE__ */ M(D, {
|
|
634
634
|
orientation: "vertical",
|
|
635
|
-
className:
|
|
636
|
-
}), /* @__PURE__ */
|
|
637
|
-
className:
|
|
635
|
+
className: z.rail
|
|
636
|
+
}), /* @__PURE__ */ N("div", {
|
|
637
|
+
className: z.body,
|
|
638
638
|
children: [
|
|
639
|
-
r && /* @__PURE__ */
|
|
640
|
-
className:
|
|
639
|
+
r && /* @__PURE__ */ M("span", {
|
|
640
|
+
className: z.markRow,
|
|
641
641
|
"aria-hidden": "true",
|
|
642
|
-
children: /* @__PURE__ */
|
|
642
|
+
children: /* @__PURE__ */ M(mt, {
|
|
643
643
|
size: 12,
|
|
644
|
-
strokeWidth:
|
|
645
|
-
className:
|
|
644
|
+
strokeWidth: O(12),
|
|
645
|
+
className: z.mark,
|
|
646
646
|
fill: "currentColor"
|
|
647
647
|
})
|
|
648
648
|
}),
|
|
649
|
-
/* @__PURE__ */
|
|
650
|
-
className: r ?
|
|
649
|
+
/* @__PURE__ */ M("p", {
|
|
650
|
+
className: r ? z.quoteAttributed : z.quoteSimple,
|
|
651
651
|
children: r ? e : `"${e}"`
|
|
652
652
|
}),
|
|
653
|
-
r && /* @__PURE__ */
|
|
654
|
-
className: [
|
|
653
|
+
r && /* @__PURE__ */ M("span", {
|
|
654
|
+
className: [z.markRow, z.markRowEnd].join(" "),
|
|
655
655
|
"aria-hidden": "true",
|
|
656
|
-
children: /* @__PURE__ */
|
|
656
|
+
children: /* @__PURE__ */ M(mt, {
|
|
657
657
|
size: 12,
|
|
658
|
-
strokeWidth:
|
|
659
|
-
className:
|
|
658
|
+
strokeWidth: O(12),
|
|
659
|
+
className: z.mark,
|
|
660
660
|
fill: "currentColor"
|
|
661
661
|
})
|
|
662
662
|
}),
|
|
663
|
-
t && /* @__PURE__ */
|
|
664
|
-
className:
|
|
665
|
-
children: [/* @__PURE__ */
|
|
663
|
+
t && /* @__PURE__ */ N("div", {
|
|
664
|
+
className: z.author,
|
|
665
|
+
children: [/* @__PURE__ */ M(c, {
|
|
666
666
|
size: "sm",
|
|
667
667
|
src: t.avatarSrc,
|
|
668
668
|
alt: t.avatarAlt ?? t.name
|
|
669
|
-
}), /* @__PURE__ */
|
|
670
|
-
className:
|
|
671
|
-
children: [/* @__PURE__ */
|
|
672
|
-
className:
|
|
669
|
+
}), /* @__PURE__ */ N("p", {
|
|
670
|
+
className: z.authorText,
|
|
671
|
+
children: [/* @__PURE__ */ M("span", {
|
|
672
|
+
className: z.authorName,
|
|
673
673
|
children: t.name
|
|
674
|
-
}), /* @__PURE__ */
|
|
675
|
-
className:
|
|
674
|
+
}), /* @__PURE__ */ N("span", {
|
|
675
|
+
className: z.authorRole,
|
|
676
676
|
children: [", ", t.role]
|
|
677
677
|
})]
|
|
678
678
|
})]
|
|
@@ -680,51 +680,51 @@ var Yt = {
|
|
|
680
680
|
]
|
|
681
681
|
})]
|
|
682
682
|
});
|
|
683
|
-
},
|
|
683
|
+
}, yn = {
|
|
684
684
|
root: "_root_btuyr_1",
|
|
685
685
|
rootLeft: "_rootLeft_btuyr_13",
|
|
686
686
|
rootTop: "_rootTop_btuyr_19",
|
|
687
687
|
ruleLeft: "_ruleLeft_btuyr_24",
|
|
688
688
|
ruleTop: "_ruleTop_btuyr_31",
|
|
689
689
|
text: "_text_btuyr_39"
|
|
690
|
-
},
|
|
690
|
+
}, bn = ({ text: e, align: t = "left", className: n }) => /* @__PURE__ */ N("div", {
|
|
691
691
|
className: [
|
|
692
|
-
|
|
693
|
-
t === "top" ?
|
|
692
|
+
yn.root,
|
|
693
|
+
t === "top" ? yn.rootTop : yn.rootLeft,
|
|
694
694
|
n ?? ""
|
|
695
695
|
].filter(Boolean).join(" "),
|
|
696
|
-
children: [/* @__PURE__ */
|
|
697
|
-
className: t === "top" ?
|
|
696
|
+
children: [/* @__PURE__ */ M("span", {
|
|
697
|
+
className: t === "top" ? yn.ruleTop : yn.ruleLeft,
|
|
698
698
|
"aria-hidden": "true"
|
|
699
|
-
}), /* @__PURE__ */
|
|
700
|
-
className:
|
|
699
|
+
}), /* @__PURE__ */ M("p", {
|
|
700
|
+
className: yn.text,
|
|
701
701
|
children: e
|
|
702
702
|
})]
|
|
703
|
-
}),
|
|
703
|
+
}), xn = {
|
|
704
704
|
root: "_root_awxwk_1",
|
|
705
705
|
imageWrap: "_imageWrap_awxwk_10",
|
|
706
706
|
"root--large": "_root--large_awxwk_27",
|
|
707
707
|
"root--small": "_root--small_awxwk_33",
|
|
708
708
|
image: "_image_awxwk_10",
|
|
709
709
|
caption: "_caption_awxwk_47"
|
|
710
|
-
},
|
|
710
|
+
}, Sn = ({ src: e, alt: t = "", size: n = "large", caption: r, className: i }) => /* @__PURE__ */ N("figure", {
|
|
711
711
|
className: [
|
|
712
|
-
|
|
713
|
-
|
|
712
|
+
xn.root,
|
|
713
|
+
xn[`root--${n}`],
|
|
714
714
|
i ?? ""
|
|
715
715
|
].filter(Boolean).join(" "),
|
|
716
|
-
children: [/* @__PURE__ */
|
|
717
|
-
className:
|
|
718
|
-
children: /* @__PURE__ */
|
|
716
|
+
children: [/* @__PURE__ */ M("span", {
|
|
717
|
+
className: xn.imageWrap,
|
|
718
|
+
children: /* @__PURE__ */ M("img", {
|
|
719
719
|
src: e,
|
|
720
720
|
alt: t,
|
|
721
|
-
className:
|
|
721
|
+
className: xn.image
|
|
722
722
|
})
|
|
723
|
-
}), r && /* @__PURE__ */
|
|
724
|
-
className:
|
|
723
|
+
}), r && /* @__PURE__ */ M("figcaption", {
|
|
724
|
+
className: xn.caption,
|
|
725
725
|
children: r
|
|
726
726
|
})]
|
|
727
|
-
}),
|
|
727
|
+
}), Cn = {
|
|
728
728
|
root: "_root_uc5r9_1",
|
|
729
729
|
rootCenter: "_rootCenter_uc5r9_10",
|
|
730
730
|
rootLeft: "_rootLeft_uc5r9_15",
|
|
@@ -733,107 +733,107 @@ var Yt = {
|
|
|
733
733
|
ctaRow: "_ctaRow_uc5r9_39",
|
|
734
734
|
avatarBlock: "_avatarBlock_uc5r9_45",
|
|
735
735
|
avatarsCaption: "_avatarsCaption_uc5r9_57"
|
|
736
|
-
},
|
|
736
|
+
}, wn = ({ title: e, description: t, badgeLabel: r, primaryCta: i, secondaryCta: a, avatars: o, avatarsCaption: s, align: c = "center", className: l }) => {
|
|
737
737
|
let u = !!(i || a), d = !!(o && o.length > 0);
|
|
738
|
-
return /* @__PURE__ */
|
|
738
|
+
return /* @__PURE__ */ N("div", {
|
|
739
739
|
className: [
|
|
740
|
-
|
|
741
|
-
c === "left" ?
|
|
740
|
+
Cn.root,
|
|
741
|
+
c === "left" ? Cn.rootLeft : Cn.rootCenter,
|
|
742
742
|
l ?? ""
|
|
743
743
|
].filter(Boolean).join(" "),
|
|
744
744
|
children: [
|
|
745
|
-
r && /* @__PURE__ */
|
|
745
|
+
r && /* @__PURE__ */ M(Le, {
|
|
746
746
|
variant: "accent",
|
|
747
747
|
emphasis: "subtle",
|
|
748
748
|
children: r
|
|
749
749
|
}),
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
className:
|
|
750
|
+
/* @__PURE__ */ M("p", {
|
|
751
|
+
className: Cn.title,
|
|
752
752
|
children: e
|
|
753
753
|
}),
|
|
754
|
-
t && /* @__PURE__ */
|
|
755
|
-
className:
|
|
754
|
+
t && /* @__PURE__ */ M("p", {
|
|
755
|
+
className: Cn.description,
|
|
756
756
|
children: t
|
|
757
757
|
}),
|
|
758
|
-
u && /* @__PURE__ */
|
|
759
|
-
className:
|
|
760
|
-
children: [i && /* @__PURE__ */
|
|
758
|
+
u && /* @__PURE__ */ N("div", {
|
|
759
|
+
className: Cn.ctaRow,
|
|
760
|
+
children: [i && /* @__PURE__ */ M(Ye, {
|
|
761
761
|
variant: "primary",
|
|
762
762
|
onClick: i.onClick,
|
|
763
763
|
children: i.label
|
|
764
|
-
}), a && /* @__PURE__ */
|
|
764
|
+
}), a && /* @__PURE__ */ M(Ye, {
|
|
765
765
|
variant: "secondary",
|
|
766
|
-
leftIcon: /* @__PURE__ */
|
|
766
|
+
leftIcon: /* @__PURE__ */ M(bt, {
|
|
767
767
|
size: 16,
|
|
768
|
-
strokeWidth:
|
|
768
|
+
strokeWidth: O(16),
|
|
769
769
|
fill: "currentColor"
|
|
770
770
|
}),
|
|
771
771
|
onClick: a.onClick,
|
|
772
772
|
children: a.label
|
|
773
773
|
})]
|
|
774
774
|
}),
|
|
775
|
-
d && /* @__PURE__ */
|
|
776
|
-
className:
|
|
777
|
-
children: [/* @__PURE__ */
|
|
775
|
+
d && /* @__PURE__ */ N("div", {
|
|
776
|
+
className: Cn.avatarBlock,
|
|
777
|
+
children: [/* @__PURE__ */ M(n, {
|
|
778
778
|
size: "md",
|
|
779
779
|
avatars: o
|
|
780
|
-
}), s && /* @__PURE__ */
|
|
781
|
-
className:
|
|
780
|
+
}), s && /* @__PURE__ */ M("p", {
|
|
781
|
+
className: Cn.avatarsCaption,
|
|
782
782
|
children: s
|
|
783
783
|
})]
|
|
784
784
|
})
|
|
785
785
|
]
|
|
786
786
|
});
|
|
787
|
-
},
|
|
787
|
+
}, Tn = {
|
|
788
788
|
root: "_root_5kajg_1",
|
|
789
789
|
item: "_item_5kajg_12",
|
|
790
790
|
marker: "_marker_5kajg_18",
|
|
791
791
|
dot: "_dot_5kajg_26",
|
|
792
792
|
label: "_label_5kajg_34"
|
|
793
|
-
},
|
|
794
|
-
className: [
|
|
795
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
796
|
-
className:
|
|
797
|
-
children: [/* @__PURE__ */
|
|
798
|
-
className:
|
|
793
|
+
}, En = ({ items: e, style: t = "check", className: n }) => /* @__PURE__ */ M("ul", {
|
|
794
|
+
className: [Tn.root, n ?? ""].filter(Boolean).join(" "),
|
|
795
|
+
children: e.map((e, n) => /* @__PURE__ */ N("li", {
|
|
796
|
+
className: Tn.item,
|
|
797
|
+
children: [/* @__PURE__ */ N("span", {
|
|
798
|
+
className: Tn.marker,
|
|
799
799
|
"aria-hidden": "true",
|
|
800
800
|
children: [
|
|
801
|
-
t === "check" && /* @__PURE__ */
|
|
801
|
+
t === "check" && /* @__PURE__ */ M(ut, {
|
|
802
802
|
size: 18,
|
|
803
|
-
strokeWidth:
|
|
803
|
+
strokeWidth: O(18)
|
|
804
804
|
}),
|
|
805
|
-
t === "arrow" && /* @__PURE__ */
|
|
805
|
+
t === "arrow" && /* @__PURE__ */ M(vt, {
|
|
806
806
|
size: 16,
|
|
807
|
-
strokeWidth:
|
|
807
|
+
strokeWidth: O(16)
|
|
808
808
|
}),
|
|
809
|
-
t === "bullet" && /* @__PURE__ */
|
|
809
|
+
t === "bullet" && /* @__PURE__ */ M("span", { className: Tn.dot })
|
|
810
810
|
]
|
|
811
|
-
}), /* @__PURE__ */
|
|
812
|
-
className:
|
|
811
|
+
}), /* @__PURE__ */ M("span", {
|
|
812
|
+
className: Tn.label,
|
|
813
813
|
children: e
|
|
814
814
|
})]
|
|
815
815
|
}, n))
|
|
816
|
-
}),
|
|
816
|
+
}), Dn = {
|
|
817
817
|
marquee: "_marquee_1pc4i_1",
|
|
818
818
|
track: "_track_1pc4i_13",
|
|
819
819
|
row: "_row_1pc4i_19",
|
|
820
820
|
item: "_item_1pc4i_25",
|
|
821
821
|
fadeLeft: "_fadeLeft_1pc4i_31",
|
|
822
822
|
fadeRight: "_fadeRight_1pc4i_32"
|
|
823
|
-
},
|
|
824
|
-
className:
|
|
823
|
+
}, On = ({ items: e, gap: t, ariaHidden: n }) => /* @__PURE__ */ M("div", {
|
|
824
|
+
className: Dn.row,
|
|
825
825
|
style: {
|
|
826
826
|
gap: t,
|
|
827
827
|
paddingRight: t
|
|
828
828
|
},
|
|
829
829
|
"aria-hidden": n,
|
|
830
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
831
|
-
className:
|
|
830
|
+
children: e.map((e, t) => /* @__PURE__ */ M("div", {
|
|
831
|
+
className: Dn.item,
|
|
832
832
|
children: e
|
|
833
833
|
}, t))
|
|
834
|
-
}),
|
|
835
|
-
let i =
|
|
836
|
-
return
|
|
834
|
+
}), kn = ({ items: e, speed: t = 40, gap: n, className: r }) => {
|
|
835
|
+
let i = k.useRef(null), a = k.useRef(0), o = k.useRef(0), s = k.useRef(!1);
|
|
836
|
+
return k.useEffect(() => {
|
|
837
837
|
let e = i.current?.firstElementChild;
|
|
838
838
|
if (!e) return;
|
|
839
839
|
let t = () => {
|
|
@@ -842,7 +842,7 @@ var Yt = {
|
|
|
842
842
|
t();
|
|
843
843
|
let n = new ResizeObserver(t);
|
|
844
844
|
return n.observe(e), () => n.disconnect();
|
|
845
|
-
}, [e, n]),
|
|
845
|
+
}, [e, n]), k.useEffect(() => {
|
|
846
846
|
let e = i.current;
|
|
847
847
|
if (!e || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
848
848
|
let n, r = performance.now(), c = () => {
|
|
@@ -852,8 +852,8 @@ var Yt = {
|
|
|
852
852
|
d > 0 && (o.current = (o.current + u * l) % d, e.style.transform = `translateX(-${o.current}px)`), n = setTimeout(c, 16);
|
|
853
853
|
};
|
|
854
854
|
return n = setTimeout(c, 16), () => clearTimeout(n);
|
|
855
|
-
}, [t]), /* @__PURE__ */
|
|
856
|
-
className: [
|
|
855
|
+
}, [t]), /* @__PURE__ */ N("div", {
|
|
856
|
+
className: [Dn.marquee, r ?? ""].filter(Boolean).join(" "),
|
|
857
857
|
onMouseEnter: () => {
|
|
858
858
|
s.current = !0;
|
|
859
859
|
},
|
|
@@ -861,29 +861,29 @@ var Yt = {
|
|
|
861
861
|
s.current = !1;
|
|
862
862
|
},
|
|
863
863
|
children: [
|
|
864
|
-
/* @__PURE__ */
|
|
864
|
+
/* @__PURE__ */ N("div", {
|
|
865
865
|
ref: i,
|
|
866
|
-
className:
|
|
867
|
-
children: [/* @__PURE__ */
|
|
866
|
+
className: Dn.track,
|
|
867
|
+
children: [/* @__PURE__ */ M(On, {
|
|
868
868
|
items: e,
|
|
869
869
|
gap: n
|
|
870
|
-
}), /* @__PURE__ */
|
|
870
|
+
}), /* @__PURE__ */ M(On, {
|
|
871
871
|
items: e,
|
|
872
872
|
gap: n,
|
|
873
873
|
ariaHidden: !0
|
|
874
874
|
})]
|
|
875
875
|
}),
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
-
className:
|
|
876
|
+
/* @__PURE__ */ M("div", {
|
|
877
|
+
className: Dn.fadeLeft,
|
|
878
878
|
"aria-hidden": "true"
|
|
879
879
|
}),
|
|
880
|
-
/* @__PURE__ */
|
|
881
|
-
className:
|
|
880
|
+
/* @__PURE__ */ M("div", {
|
|
881
|
+
className: Dn.fadeRight,
|
|
882
882
|
"aria-hidden": "true"
|
|
883
883
|
})
|
|
884
884
|
]
|
|
885
885
|
});
|
|
886
|
-
},
|
|
886
|
+
}, An = {
|
|
887
887
|
root: "_root_17a1b_1",
|
|
888
888
|
numRow: "_numRow_17a1b_9",
|
|
889
889
|
value: "_value_17a1b_15",
|
|
@@ -891,32 +891,32 @@ var Yt = {
|
|
|
891
891
|
trendUp: "_trendUp_17a1b_35",
|
|
892
892
|
trendDown: "_trendDown_17a1b_39",
|
|
893
893
|
label: "_label_17a1b_43"
|
|
894
|
-
},
|
|
895
|
-
let i = n !== void 0, a = i && n >= 0, o = a ?
|
|
896
|
-
return /* @__PURE__ */
|
|
897
|
-
className: [
|
|
898
|
-
children: [/* @__PURE__ */
|
|
899
|
-
className:
|
|
900
|
-
children: [/* @__PURE__ */
|
|
901
|
-
className:
|
|
894
|
+
}, jn = ({ value: e, label: t, trend: n, className: r }) => {
|
|
895
|
+
let i = n !== void 0, a = i && n >= 0, o = a ? lt : $e;
|
|
896
|
+
return /* @__PURE__ */ N("div", {
|
|
897
|
+
className: [An.root, r ?? ""].filter(Boolean).join(" "),
|
|
898
|
+
children: [/* @__PURE__ */ N("div", {
|
|
899
|
+
className: An.numRow,
|
|
900
|
+
children: [/* @__PURE__ */ M("p", {
|
|
901
|
+
className: An.value,
|
|
902
902
|
children: e
|
|
903
|
-
}), i && /* @__PURE__ */
|
|
904
|
-
className: [
|
|
903
|
+
}), i && /* @__PURE__ */ N("span", {
|
|
904
|
+
className: [An.trend, a ? An.trendUp : An.trendDown].join(" "),
|
|
905
905
|
children: [
|
|
906
|
-
/* @__PURE__ */
|
|
906
|
+
/* @__PURE__ */ M(o, {
|
|
907
907
|
size: 24,
|
|
908
|
-
strokeWidth:
|
|
908
|
+
strokeWidth: O(24)
|
|
909
909
|
}),
|
|
910
910
|
Math.abs(n),
|
|
911
911
|
"%"
|
|
912
912
|
]
|
|
913
913
|
})]
|
|
914
|
-
}), /* @__PURE__ */
|
|
915
|
-
className:
|
|
914
|
+
}), /* @__PURE__ */ M("p", {
|
|
915
|
+
className: An.label,
|
|
916
916
|
children: t
|
|
917
917
|
})]
|
|
918
918
|
});
|
|
919
|
-
},
|
|
919
|
+
}, B = {
|
|
920
920
|
root: "_root_scbx4_1",
|
|
921
921
|
header: "_header_scbx4_13",
|
|
922
922
|
label: "_label_scbx4_21",
|
|
@@ -927,59 +927,59 @@ var Yt = {
|
|
|
927
927
|
collapseInner: "_collapseInner_scbx4_78",
|
|
928
928
|
navLinks: "_navLinks_scbx4_91",
|
|
929
929
|
navLink: "_navLink_scbx4_91"
|
|
930
|
-
},
|
|
931
|
-
let c = i !== void 0, [l, u] =
|
|
930
|
+
}, Mn = ({ label: e, links: t, ctaLabel: n = "Get started", onCtaClick: r, open: i, defaultOpen: a = !1, onOpenChange: o, className: s }) => {
|
|
931
|
+
let c = i !== void 0, [l, u] = k.useState(a), d = c ? i : l, f = () => {
|
|
932
932
|
let e = !d;
|
|
933
933
|
c || u(e), o?.(e);
|
|
934
|
-
}, p =
|
|
935
|
-
return
|
|
934
|
+
}, p = k.useRef(null), [m, h] = k.useState(0);
|
|
935
|
+
return k.useEffect(() => {
|
|
936
936
|
let e = p.current;
|
|
937
937
|
if (!e) return;
|
|
938
938
|
let t = () => h(e.scrollHeight);
|
|
939
939
|
t();
|
|
940
940
|
let n = new ResizeObserver(t);
|
|
941
941
|
return n.observe(e), () => n.disconnect();
|
|
942
|
-
}, [t, n]), /* @__PURE__ */
|
|
943
|
-
className: [
|
|
944
|
-
children: [/* @__PURE__ */
|
|
945
|
-
className:
|
|
946
|
-
children: [/* @__PURE__ */
|
|
947
|
-
className:
|
|
942
|
+
}, [t, n]), /* @__PURE__ */ N("div", {
|
|
943
|
+
className: [B.root, s ?? ""].filter(Boolean).join(" "),
|
|
944
|
+
children: [/* @__PURE__ */ N("div", {
|
|
945
|
+
className: B.header,
|
|
946
|
+
children: [/* @__PURE__ */ M("p", {
|
|
947
|
+
className: B.label,
|
|
948
948
|
children: e
|
|
949
|
-
}), /* @__PURE__ */
|
|
949
|
+
}), /* @__PURE__ */ M("button", {
|
|
950
950
|
type: "button",
|
|
951
|
-
className:
|
|
951
|
+
className: B.toggle,
|
|
952
952
|
onClick: f,
|
|
953
953
|
"aria-expanded": d,
|
|
954
954
|
"aria-label": d ? "Close menu" : "Open menu",
|
|
955
|
-
children:
|
|
955
|
+
children: M(d ? tt : st, {
|
|
956
956
|
size: 16,
|
|
957
|
-
strokeWidth:
|
|
957
|
+
strokeWidth: O(16)
|
|
958
958
|
})
|
|
959
959
|
})]
|
|
960
|
-
}), /* @__PURE__ */
|
|
961
|
-
className: [
|
|
960
|
+
}), /* @__PURE__ */ M("div", {
|
|
961
|
+
className: [B.collapse, d ? B.collapseOpen : ""].filter(Boolean).join(" "),
|
|
962
962
|
style: { maxHeight: d ? `${m}px` : "0px" },
|
|
963
963
|
"aria-hidden": !d,
|
|
964
|
-
children: /* @__PURE__ */
|
|
964
|
+
children: /* @__PURE__ */ N("div", {
|
|
965
965
|
ref: p,
|
|
966
|
-
className:
|
|
966
|
+
className: B.collapseInner,
|
|
967
967
|
children: [
|
|
968
|
-
/* @__PURE__ */
|
|
969
|
-
className:
|
|
968
|
+
/* @__PURE__ */ M("nav", {
|
|
969
|
+
className: B.navLinks,
|
|
970
970
|
"aria-label": e,
|
|
971
|
-
children: t.map((e) => /* @__PURE__ */
|
|
971
|
+
children: t.map((e) => /* @__PURE__ */ M("a", {
|
|
972
972
|
href: e.href,
|
|
973
973
|
onClick: e.onClick,
|
|
974
|
-
className:
|
|
974
|
+
className: B.navLink,
|
|
975
975
|
tabIndex: d ? void 0 : -1,
|
|
976
976
|
children: e.label
|
|
977
977
|
}, e.label))
|
|
978
978
|
}),
|
|
979
|
-
/* @__PURE__ */
|
|
980
|
-
/* @__PURE__ */
|
|
979
|
+
/* @__PURE__ */ M(D, { className: B.fullWidth }),
|
|
980
|
+
/* @__PURE__ */ M(Ye, {
|
|
981
981
|
variant: "primary",
|
|
982
|
-
className:
|
|
982
|
+
className: B.fullWidth,
|
|
983
983
|
onClick: r,
|
|
984
984
|
tabIndex: d ? void 0 : -1,
|
|
985
985
|
children: n
|
|
@@ -988,38 +988,38 @@ var Yt = {
|
|
|
988
988
|
})
|
|
989
989
|
})]
|
|
990
990
|
});
|
|
991
|
-
},
|
|
991
|
+
}, Nn = {
|
|
992
992
|
root: "_root_lrpdp_1",
|
|
993
993
|
"root--sm": "_root--sm_lrpdp_14",
|
|
994
994
|
"root--md": "_root--md_lrpdp_18",
|
|
995
995
|
"root--lg": "_root--lg_lrpdp_22",
|
|
996
996
|
defaultMark: "_defaultMark_lrpdp_27"
|
|
997
|
-
},
|
|
997
|
+
}, Pn = {
|
|
998
998
|
sm: 14,
|
|
999
999
|
md: 16,
|
|
1000
1000
|
lg: 18
|
|
1001
|
-
},
|
|
1002
|
-
let i =
|
|
1001
|
+
}, Fn = ({ size: e = "md", logo: t, label: n, className: r }) => {
|
|
1002
|
+
let i = Pn[e], a = k.isValidElement(t) ? k.cloneElement(t, {
|
|
1003
1003
|
size: i,
|
|
1004
|
-
strokeWidth:
|
|
1005
|
-
}) : t ?? /* @__PURE__ */
|
|
1004
|
+
strokeWidth: O(i)
|
|
1005
|
+
}) : t ?? /* @__PURE__ */ M("img", {
|
|
1006
1006
|
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",
|
|
1007
1007
|
alt: "",
|
|
1008
1008
|
width: i,
|
|
1009
1009
|
height: i,
|
|
1010
|
-
className:
|
|
1010
|
+
className: Nn.defaultMark
|
|
1011
1011
|
});
|
|
1012
|
-
return /* @__PURE__ */
|
|
1012
|
+
return /* @__PURE__ */ M("span", {
|
|
1013
1013
|
className: [
|
|
1014
|
-
|
|
1015
|
-
|
|
1014
|
+
Nn.root,
|
|
1015
|
+
Nn[`root--${e}`],
|
|
1016
1016
|
r ?? ""
|
|
1017
1017
|
].filter(Boolean).join(" "),
|
|
1018
1018
|
role: "img",
|
|
1019
1019
|
"aria-label": n ?? "Logo placeholder",
|
|
1020
1020
|
children: a
|
|
1021
1021
|
});
|
|
1022
|
-
},
|
|
1022
|
+
}, V = {
|
|
1023
1023
|
root: "_root_ibchq_1",
|
|
1024
1024
|
rootCompact: "_rootCompact_ibchq_7",
|
|
1025
1025
|
rootDetailed: "_rootDetailed_ibchq_14",
|
|
@@ -1030,87 +1030,87 @@ var Yt = {
|
|
|
1030
1030
|
bio: "_bio_ibchq_53",
|
|
1031
1031
|
social: "_social_ibchq_63",
|
|
1032
1032
|
socialBtn: "_socialBtn_ibchq_71"
|
|
1033
|
-
},
|
|
1033
|
+
}, In = ({ name: e, role: t, avatarSrc: n, avatarAlt: r, bio: i, socialLinks: a = [], className: o }) => {
|
|
1034
1034
|
let s = !!i || a.length > 0;
|
|
1035
|
-
return /* @__PURE__ */
|
|
1035
|
+
return /* @__PURE__ */ N("div", {
|
|
1036
1036
|
className: [
|
|
1037
|
-
|
|
1038
|
-
s ?
|
|
1037
|
+
V.root,
|
|
1038
|
+
s ? V.rootDetailed : V.rootCompact,
|
|
1039
1039
|
o ?? ""
|
|
1040
1040
|
].filter(Boolean).join(" "),
|
|
1041
1041
|
children: [
|
|
1042
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ M(c, {
|
|
1043
1043
|
size: "xl",
|
|
1044
1044
|
src: n,
|
|
1045
1045
|
alt: r ?? e
|
|
1046
1046
|
}),
|
|
1047
|
-
/* @__PURE__ */
|
|
1048
|
-
className: s ?
|
|
1049
|
-
children: [/* @__PURE__ */
|
|
1050
|
-
className:
|
|
1047
|
+
/* @__PURE__ */ N("div", {
|
|
1048
|
+
className: s ? V.infoDetailed : V.infoCompact,
|
|
1049
|
+
children: [/* @__PURE__ */ M("p", {
|
|
1050
|
+
className: V.name,
|
|
1051
1051
|
children: e
|
|
1052
|
-
}), /* @__PURE__ */
|
|
1053
|
-
className:
|
|
1052
|
+
}), /* @__PURE__ */ M("p", {
|
|
1053
|
+
className: V.role,
|
|
1054
1054
|
children: t
|
|
1055
1055
|
})]
|
|
1056
1056
|
}),
|
|
1057
|
-
s && i && /* @__PURE__ */
|
|
1058
|
-
className:
|
|
1057
|
+
s && i && /* @__PURE__ */ M("p", {
|
|
1058
|
+
className: V.bio,
|
|
1059
1059
|
children: i
|
|
1060
1060
|
}),
|
|
1061
|
-
s && a.length > 0 && /* @__PURE__ */
|
|
1062
|
-
className:
|
|
1063
|
-
children: a.map((e, t) => /* @__PURE__ */
|
|
1061
|
+
s && a.length > 0 && /* @__PURE__ */ M("div", {
|
|
1062
|
+
className: V.social,
|
|
1063
|
+
children: a.map((e, t) => /* @__PURE__ */ M("a", {
|
|
1064
1064
|
href: e.href,
|
|
1065
1065
|
onClick: e.onClick,
|
|
1066
|
-
className:
|
|
1066
|
+
className: V.socialBtn,
|
|
1067
1067
|
"aria-label": e.label,
|
|
1068
1068
|
children: e.icon
|
|
1069
1069
|
}, e.label ?? t))
|
|
1070
1070
|
})
|
|
1071
1071
|
]
|
|
1072
1072
|
});
|
|
1073
|
-
},
|
|
1073
|
+
}, Ln = ({ size: e = 16 }) => /* @__PURE__ */ M("svg", {
|
|
1074
1074
|
width: e,
|
|
1075
1075
|
height: e,
|
|
1076
1076
|
viewBox: "0 0 16 16",
|
|
1077
1077
|
fill: "none",
|
|
1078
1078
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1079
1079
|
"aria-hidden": "true",
|
|
1080
|
-
children: /* @__PURE__ */
|
|
1080
|
+
children: /* @__PURE__ */ M("path", {
|
|
1081
1081
|
fillRule: "evenodd",
|
|
1082
1082
|
clipRule: "evenodd",
|
|
1083
1083
|
fill: "currentColor",
|
|
1084
1084
|
d: "M9.48933 6.77467L15.318 0H13.9367L8.876 5.88267L4.834 0H0.172L6.284 8.89533L0.172 16H1.55333L6.89733 9.788L11.166 16H15.828L9.48933 6.77467ZM7.598 8.974L6.97867 8.088L2.05067 1.04H4.172L8.14867 6.728L8.768 7.614L13.9373 15.0073H11.816L7.598 8.974Z"
|
|
1085
1085
|
})
|
|
1086
|
-
}),
|
|
1086
|
+
}), Rn = ({ size: e = 16 }) => /* @__PURE__ */ M("svg", {
|
|
1087
1087
|
width: e,
|
|
1088
1088
|
height: e,
|
|
1089
1089
|
viewBox: "0 0 16 16",
|
|
1090
1090
|
fill: "none",
|
|
1091
1091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1092
1092
|
"aria-hidden": "true",
|
|
1093
|
-
children: /* @__PURE__ */
|
|
1093
|
+
children: /* @__PURE__ */ M("path", {
|
|
1094
1094
|
fill: "currentColor",
|
|
1095
1095
|
stroke: "currentColor",
|
|
1096
1096
|
strokeWidth: "0.5",
|
|
1097
1097
|
d: "M5.2627 14.9109C5.24063 14.9019 5.21825 14.8937 5.19629 14.8845C5.21828 14.8846 5.2404 14.8849 5.2627 14.8845C5.26277 14.8934 5.26262 14.9022 5.2627 14.9109ZM8 0.948C12.0038 0.948 15.25 4.19421 15.25 8.198C15.25 11.2321 13.382 13.8337 10.7119 14.9041C10.7126 14.8154 10.7132 14.7175 10.7139 14.6111C10.7164 14.2289 10.7197 13.7443 10.7197 13.2068C10.7197 12.8702 10.6752 12.5602 10.5967 12.282C11.2251 12.1236 11.8603 11.8618 12.4033 11.407C13.3035 10.6531 13.8291 9.48051 13.8291 7.78003C13.8291 6.87672 13.5529 6.10004 13.0859 5.46265C13.1914 4.97309 13.2464 4.1873 12.8779 3.24292L12.748 2.91089L12.4082 2.80152L12.1885 3.48902C12.4086 2.8019 12.407 2.80174 12.4062 2.80152L12.4053 2.80054L12.3965 2.79761C12.3923 2.79634 12.3874 2.79501 12.3828 2.7937C12.3738 2.79113 12.364 2.78851 12.3535 2.78589C12.3324 2.78061 12.3081 2.77611 12.2812 2.77124C12.2271 2.76146 12.1615 2.75326 12.085 2.74976C11.9315 2.74276 11.7366 2.75416 11.499 2.80445C11.0816 2.8928 10.5376 3.09872 9.85352 3.52808C9.24662 3.38844 8.61824 3.31986 7.99414 3.31616H7.98535C7.36044 3.31984 6.73069 3.3881 6.12305 3.52808C5.43488 3.09865 4.88896 2.89272 4.4707 2.80445C4.23272 2.75425 4.03733 2.74275 3.88379 2.74976C3.80726 2.75325 3.74164 2.76049 3.6875 2.77027C3.66056 2.77514 3.63643 2.78059 3.61523 2.78589C3.60476 2.78851 3.59499 2.79113 3.58594 2.7937C3.58136 2.79501 3.57647 2.79634 3.57227 2.79761L3.56348 2.80054L3.56152 2.80152C3.56163 2.80419 3.57406 2.84531 3.78906 3.51636L3.56055 2.80152L3.2207 2.91089L3.09082 3.24292C2.72472 4.18117 2.77327 4.9675 2.88574 5.46851C2.41945 6.10504 2.14648 6.88031 2.14648 7.78003C2.14649 8.97574 2.40791 9.91025 2.87598 10.6228C2.76692 10.5961 2.65215 10.5747 2.53027 10.5662L2.50879 10.5642H2.46289C2.45155 10.5643 2.43701 10.5646 2.41992 10.5652C2.3862 10.5664 2.33899 10.569 2.28516 10.575C2.20712 10.5835 2.00131 10.6093 1.80762 10.7195C1.70282 10.7791 1.53342 10.9016 1.43457 11.1267C1.42275 11.1537 1.41196 11.181 1.40332 11.2078C0.984401 10.291 0.75 9.27198 0.75 8.198C0.75 4.19409 3.99434 0.948 8 0.948ZM4.51855 11.9919C4.75868 12.0994 5.00485 12.1834 5.25098 12.2517C5.17809 12.2603 5.10423 12.266 5.03125 12.2595C4.87853 12.2459 4.69843 12.1922 4.51855 11.9919Z"
|
|
1098
1098
|
})
|
|
1099
|
-
}),
|
|
1099
|
+
}), zn = {
|
|
1100
1100
|
heading: "_heading_96cdx_1",
|
|
1101
1101
|
h2: "_h2_96cdx_8",
|
|
1102
1102
|
h3: "_h3_96cdx_14"
|
|
1103
|
-
},
|
|
1103
|
+
}, Bn = ({ children: e, level: t = "h2", className: n }) => /* @__PURE__ */ M(t, {
|
|
1104
1104
|
className: [
|
|
1105
|
-
|
|
1106
|
-
|
|
1105
|
+
zn.heading,
|
|
1106
|
+
zn[t],
|
|
1107
1107
|
n ?? ""
|
|
1108
1108
|
].filter(Boolean).join(" "),
|
|
1109
1109
|
children: e
|
|
1110
|
-
}),
|
|
1111
|
-
className: [
|
|
1110
|
+
}), Vn = { paragraph: "_paragraph_8pqdi_1" }, Hn = ({ children: e, className: t }) => /* @__PURE__ */ M("p", {
|
|
1111
|
+
className: [Vn.paragraph, t ?? ""].filter(Boolean).join(" "),
|
|
1112
1112
|
children: e
|
|
1113
|
-
}),
|
|
1113
|
+
}), Un = {
|
|
1114
1114
|
rootBordered: "_rootBordered_5cgsj_1",
|
|
1115
1115
|
rail: "_rail_5cgsj_12",
|
|
1116
1116
|
contentHorizontal: "_contentHorizontal_5cgsj_18",
|
|
@@ -1119,60 +1119,60 @@ var Yt = {
|
|
|
1119
1119
|
textVertical: "_textVertical_5cgsj_41",
|
|
1120
1120
|
title: "_title_5cgsj_49",
|
|
1121
1121
|
description: "_description_5cgsj_57"
|
|
1122
|
-
},
|
|
1123
|
-
let o = r === "vertical", s = /* @__PURE__ */
|
|
1124
|
-
className: o ?
|
|
1125
|
-
children: [/* @__PURE__ */
|
|
1122
|
+
}, Wn = ({ icon: e, title: t, description: n, layout: r = "horizontal", leftBorder: i = !1, className: a }) => {
|
|
1123
|
+
let o = r === "vertical", s = /* @__PURE__ */ N("div", {
|
|
1124
|
+
className: o ? Un.contentVertical : Un.contentHorizontal,
|
|
1125
|
+
children: [/* @__PURE__ */ M(ie, {
|
|
1126
1126
|
icon: e,
|
|
1127
1127
|
size: "sm",
|
|
1128
1128
|
variant: "light"
|
|
1129
|
-
}), /* @__PURE__ */
|
|
1130
|
-
className: o ?
|
|
1131
|
-
children: [/* @__PURE__ */
|
|
1132
|
-
className:
|
|
1129
|
+
}), /* @__PURE__ */ N("div", {
|
|
1130
|
+
className: o ? Un.textVertical : Un.textHorizontal,
|
|
1131
|
+
children: [/* @__PURE__ */ M("p", {
|
|
1132
|
+
className: Un.title,
|
|
1133
1133
|
children: t
|
|
1134
|
-
}), /* @__PURE__ */
|
|
1135
|
-
className:
|
|
1134
|
+
}), /* @__PURE__ */ M("p", {
|
|
1135
|
+
className: Un.description,
|
|
1136
1136
|
children: n
|
|
1137
1137
|
})]
|
|
1138
1138
|
})]
|
|
1139
1139
|
});
|
|
1140
|
-
return i ? /* @__PURE__ */
|
|
1141
|
-
className: [
|
|
1142
|
-
children: [/* @__PURE__ */
|
|
1140
|
+
return i ? /* @__PURE__ */ N("div", {
|
|
1141
|
+
className: [Un.rootBordered, a ?? ""].filter(Boolean).join(" "),
|
|
1142
|
+
children: [/* @__PURE__ */ M(D, {
|
|
1143
1143
|
orientation: "vertical",
|
|
1144
|
-
className:
|
|
1144
|
+
className: Un.rail
|
|
1145
1145
|
}), s]
|
|
1146
|
-
}) :
|
|
1147
|
-
},
|
|
1146
|
+
}) : k.cloneElement(s, { className: [s.props.className, a ?? ""].filter(Boolean).join(" ") });
|
|
1147
|
+
}, Gn = ({ size: e = 16 }) => /* @__PURE__ */ M("svg", {
|
|
1148
1148
|
width: e,
|
|
1149
1149
|
height: e,
|
|
1150
1150
|
viewBox: "0 0 16 16",
|
|
1151
1151
|
fill: "none",
|
|
1152
1152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1153
1153
|
"aria-hidden": "true",
|
|
1154
|
-
children: /* @__PURE__ */
|
|
1154
|
+
children: /* @__PURE__ */ M("path", {
|
|
1155
1155
|
d: "M11.6667 4.33333H11.6733M4.66667 1.33333H11.3333C13.1743 1.33333 14.6667 2.82572 14.6667 4.66667V11.3333C14.6667 13.1743 13.1743 14.6667 11.3333 14.6667H4.66667C2.82572 14.6667 1.33333 13.1743 1.33333 11.3333V4.66667C1.33333 2.82572 2.82572 1.33333 4.66667 1.33333ZM10.6666 7.58004C10.7489 8.13487 10.6541 8.70152 10.3958 9.19938C10.1375 9.69725 9.72873 10.101 9.22772 10.3532C8.7267 10.6053 8.15893 10.6931 7.60516 10.604C7.05138 10.5149 6.53981 10.2534 6.14319 9.85681C5.74658 9.4602 5.48512 8.94862 5.39601 8.39485C5.3069 7.84107 5.39468 7.2733 5.64685 6.77229C5.89903 6.27127 6.30276 5.86253 6.80062 5.6042C7.29849 5.34587 7.86514 5.2511 8.41997 5.33337C8.98592 5.41729 9.50987 5.68101 9.91443 6.08558C10.319 6.49014 10.5827 7.01409 10.6666 7.58004Z",
|
|
1156
1156
|
stroke: "currentColor",
|
|
1157
1157
|
strokeWidth: "1.5",
|
|
1158
1158
|
strokeLinecap: "round",
|
|
1159
1159
|
strokeLinejoin: "round"
|
|
1160
1160
|
})
|
|
1161
|
-
}),
|
|
1161
|
+
}), Kn = ({ size: e = 16 }) => /* @__PURE__ */ M("svg", {
|
|
1162
1162
|
width: e,
|
|
1163
1163
|
height: e,
|
|
1164
1164
|
viewBox: "0 0 16 16",
|
|
1165
1165
|
fill: "none",
|
|
1166
1166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1167
1167
|
"aria-hidden": "true",
|
|
1168
|
-
children: /* @__PURE__ */
|
|
1168
|
+
children: /* @__PURE__ */ M("path", {
|
|
1169
1169
|
d: "M12 1.33333H10C9.11594 1.33333 8.2681 1.68452 7.64298 2.30964C7.01786 2.93477 6.66667 3.78261 6.66667 4.66667V6.66667H4.66667V9.33333H6.66667V14.6667H9.33333V9.33333H11.3333L12 6.66667H9.33333V4.66667C9.33333 4.48986 9.40357 4.32029 9.5286 4.19526C9.65362 4.07024 9.82319 4 10 4H12V1.33333Z",
|
|
1170
1170
|
stroke: "currentColor",
|
|
1171
1171
|
strokeWidth: "1.5",
|
|
1172
1172
|
strokeLinecap: "round",
|
|
1173
1173
|
strokeLinejoin: "round"
|
|
1174
1174
|
})
|
|
1175
|
-
}),
|
|
1175
|
+
}), qn = ({ size: e = 16 }) => /* @__PURE__ */ N("svg", {
|
|
1176
1176
|
width: e,
|
|
1177
1177
|
height: e,
|
|
1178
1178
|
viewBox: "0 0 16 16",
|
|
@@ -1180,21 +1180,21 @@ var Yt = {
|
|
|
1180
1180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1181
1181
|
"aria-hidden": "true",
|
|
1182
1182
|
children: [
|
|
1183
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ M("path", {
|
|
1184
1184
|
d: "M10.6667 5.33333C11.7275 5.33333 12.7449 5.75476 13.4951 6.50491C14.2452 7.25505 14.6667 8.27247 14.6667 9.33333V14H12V9.33333C12 8.97971 11.8595 8.64057 11.6095 8.39052C11.3594 8.14048 11.0203 8 10.6667 8C10.313 8 9.97391 8.14048 9.72386 8.39052C9.47381 8.64057 9.33333 8.97971 9.33333 9.33333V14H6.66667V9.33333C6.66667 8.27247 7.08809 7.25505 7.83824 6.50491C8.58838 5.75476 9.6058 5.33333 10.6667 5.33333Z",
|
|
1185
1185
|
stroke: "currentColor",
|
|
1186
1186
|
strokeWidth: "1.5",
|
|
1187
1187
|
strokeLinecap: "round",
|
|
1188
1188
|
strokeLinejoin: "round"
|
|
1189
1189
|
}),
|
|
1190
|
-
/* @__PURE__ */
|
|
1190
|
+
/* @__PURE__ */ M("path", {
|
|
1191
1191
|
d: "M4 6H1.33333V14H4V6Z",
|
|
1192
1192
|
stroke: "currentColor",
|
|
1193
1193
|
strokeWidth: "1.5",
|
|
1194
1194
|
strokeLinecap: "round",
|
|
1195
1195
|
strokeLinejoin: "round"
|
|
1196
1196
|
}),
|
|
1197
|
-
/* @__PURE__ */
|
|
1197
|
+
/* @__PURE__ */ M("path", {
|
|
1198
1198
|
d: "M2.66667 4C3.40305 4 4 3.40305 4 2.66667C4 1.93029 3.40305 1.33333 2.66667 1.33333C1.93029 1.33333 1.33333 1.93029 1.33333 2.66667C1.33333 3.40305 1.93029 4 2.66667 4Z",
|
|
1199
1199
|
stroke: "currentColor",
|
|
1200
1200
|
strokeWidth: "1.5",
|
|
@@ -1202,20 +1202,20 @@ var Yt = {
|
|
|
1202
1202
|
strokeLinejoin: "round"
|
|
1203
1203
|
})
|
|
1204
1204
|
]
|
|
1205
|
-
}),
|
|
1205
|
+
}), Jn = { chart: "_chart_qqaox_2" }, Yn = {
|
|
1206
1206
|
sm: 180,
|
|
1207
1207
|
md: 240,
|
|
1208
1208
|
lg: 320,
|
|
1209
1209
|
xl: 420
|
|
1210
|
-
},
|
|
1211
|
-
let o =
|
|
1212
|
-
return /* @__PURE__ */
|
|
1210
|
+
}, Xn = ({ data: e, variant: t = "default", seriesLabels: n = ["Value", "Value 2"], size: r = "md", height: i, className: a }) => {
|
|
1211
|
+
let o = k.useRef(null), s = ze(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;
|
|
1212
|
+
return /* @__PURE__ */ M("div", {
|
|
1213
1213
|
ref: o,
|
|
1214
|
-
className: [
|
|
1215
|
-
children: /* @__PURE__ */
|
|
1214
|
+
className: [Jn.chart, a ?? ""].filter(Boolean).join(" "),
|
|
1215
|
+
children: /* @__PURE__ */ M(Ht, {
|
|
1216
1216
|
width: "100%",
|
|
1217
|
-
height: i ??
|
|
1218
|
-
children: /* @__PURE__ */
|
|
1217
|
+
height: i ?? Yn[r],
|
|
1218
|
+
children: /* @__PURE__ */ N(kt, {
|
|
1219
1219
|
data: e,
|
|
1220
1220
|
margin: {
|
|
1221
1221
|
top: 8,
|
|
@@ -1224,43 +1224,43 @@ var Yt = {
|
|
|
1224
1224
|
left: 0
|
|
1225
1225
|
},
|
|
1226
1226
|
children: [
|
|
1227
|
-
/* @__PURE__ */
|
|
1227
|
+
/* @__PURE__ */ N("defs", { children: [/* @__PURE__ */ N("linearGradient", {
|
|
1228
1228
|
id: "sakani-area-1",
|
|
1229
1229
|
x1: "0",
|
|
1230
1230
|
y1: "0",
|
|
1231
1231
|
x2: "0",
|
|
1232
1232
|
y2: "1",
|
|
1233
|
-
children: [/* @__PURE__ */
|
|
1233
|
+
children: [/* @__PURE__ */ M("stop", {
|
|
1234
1234
|
offset: "5%",
|
|
1235
1235
|
stopColor: c,
|
|
1236
1236
|
stopOpacity: .35
|
|
1237
|
-
}), /* @__PURE__ */
|
|
1237
|
+
}), /* @__PURE__ */ M("stop", {
|
|
1238
1238
|
offset: "95%",
|
|
1239
1239
|
stopColor: c,
|
|
1240
1240
|
stopOpacity: .02
|
|
1241
1241
|
})]
|
|
1242
|
-
}), /* @__PURE__ */
|
|
1242
|
+
}), /* @__PURE__ */ N("linearGradient", {
|
|
1243
1243
|
id: "sakani-area-2",
|
|
1244
1244
|
x1: "0",
|
|
1245
1245
|
y1: "0",
|
|
1246
1246
|
x2: "0",
|
|
1247
1247
|
y2: "1",
|
|
1248
|
-
children: [/* @__PURE__ */
|
|
1248
|
+
children: [/* @__PURE__ */ M("stop", {
|
|
1249
1249
|
offset: "5%",
|
|
1250
1250
|
stopColor: l,
|
|
1251
1251
|
stopOpacity: .35
|
|
1252
|
-
}), /* @__PURE__ */
|
|
1252
|
+
}), /* @__PURE__ */ M("stop", {
|
|
1253
1253
|
offset: "95%",
|
|
1254
1254
|
stopColor: l,
|
|
1255
1255
|
stopOpacity: .02
|
|
1256
1256
|
})]
|
|
1257
1257
|
})] }),
|
|
1258
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ M(At, {
|
|
1259
1259
|
strokeDasharray: "3 3",
|
|
1260
1260
|
stroke: u,
|
|
1261
1261
|
vertical: !1
|
|
1262
1262
|
}),
|
|
1263
|
-
/* @__PURE__ */
|
|
1263
|
+
/* @__PURE__ */ M(Gt, {
|
|
1264
1264
|
dataKey: "label",
|
|
1265
1265
|
stroke: d,
|
|
1266
1266
|
fontSize: 12,
|
|
@@ -1268,15 +1268,15 @@ var Yt = {
|
|
|
1268
1268
|
axisLine: !1,
|
|
1269
1269
|
interval: 0
|
|
1270
1270
|
}),
|
|
1271
|
-
/* @__PURE__ */
|
|
1271
|
+
/* @__PURE__ */ M(Wt, {
|
|
1272
1272
|
cursor: {
|
|
1273
1273
|
stroke: s("--color-border-default") ?? "#dbdad7",
|
|
1274
1274
|
strokeWidth: 1
|
|
1275
1275
|
},
|
|
1276
|
-
content: /* @__PURE__ */
|
|
1276
|
+
content: /* @__PURE__ */ M(le, {}),
|
|
1277
1277
|
wrapperStyle: { zIndex: 50 }
|
|
1278
1278
|
}),
|
|
1279
|
-
f && /* @__PURE__ */
|
|
1279
|
+
f && /* @__PURE__ */ M(Ot, {
|
|
1280
1280
|
type: p,
|
|
1281
1281
|
dataKey: "value2",
|
|
1282
1282
|
name: n[1] ?? "Value 2",
|
|
@@ -1292,7 +1292,7 @@ var Yt = {
|
|
|
1292
1292
|
strokeWidth: 1.5
|
|
1293
1293
|
}
|
|
1294
1294
|
}),
|
|
1295
|
-
/* @__PURE__ */
|
|
1295
|
+
/* @__PURE__ */ M(Ot, {
|
|
1296
1296
|
type: p,
|
|
1297
1297
|
dataKey: "value",
|
|
1298
1298
|
name: n[0] ?? "Value",
|
|
@@ -1312,7 +1312,7 @@ var Yt = {
|
|
|
1312
1312
|
})
|
|
1313
1313
|
})
|
|
1314
1314
|
});
|
|
1315
|
-
},
|
|
1315
|
+
}, H = {
|
|
1316
1316
|
col: "_col_1v24u_2",
|
|
1317
1317
|
col__header: "_col__header_1v24u_11",
|
|
1318
1318
|
col__dot: "_col__dot_1v24u_12",
|
|
@@ -1323,67 +1323,67 @@ var Yt = {
|
|
|
1323
1323
|
col__body: "_col__body_1v24u_24",
|
|
1324
1324
|
col__drop: "_col__drop_1v24u_25",
|
|
1325
1325
|
col__add: "_col__add_1v24u_31"
|
|
1326
|
-
},
|
|
1327
|
-
className: [
|
|
1326
|
+
}, Zn = ({ state: e = "default", title: t, count: n, dotColor: r = "var(--color-chart-1)", children: i, onAdd: a, onMenu: o, className: s }) => /* @__PURE__ */ N("div", {
|
|
1327
|
+
className: [H.col, s ?? ""].filter(Boolean).join(" "),
|
|
1328
1328
|
children: [
|
|
1329
|
-
/* @__PURE__ */
|
|
1330
|
-
className:
|
|
1329
|
+
/* @__PURE__ */ N("div", {
|
|
1330
|
+
className: H.col__header,
|
|
1331
1331
|
children: [
|
|
1332
|
-
/* @__PURE__ */
|
|
1333
|
-
className:
|
|
1332
|
+
/* @__PURE__ */ M("span", {
|
|
1333
|
+
className: H.col__dot,
|
|
1334
1334
|
style: { background: r },
|
|
1335
1335
|
"aria-hidden": "true"
|
|
1336
1336
|
}),
|
|
1337
|
-
/* @__PURE__ */
|
|
1338
|
-
className:
|
|
1337
|
+
/* @__PURE__ */ M("span", {
|
|
1338
|
+
className: H.col__title,
|
|
1339
1339
|
children: t
|
|
1340
1340
|
}),
|
|
1341
|
-
n != null && /* @__PURE__ */
|
|
1342
|
-
className:
|
|
1341
|
+
n != null && /* @__PURE__ */ M("span", {
|
|
1342
|
+
className: H.col__count,
|
|
1343
1343
|
children: n
|
|
1344
1344
|
}),
|
|
1345
|
-
/* @__PURE__ */
|
|
1346
|
-
/* @__PURE__ */
|
|
1345
|
+
/* @__PURE__ */ M("span", { className: H.col__spacer }),
|
|
1346
|
+
/* @__PURE__ */ M("button", {
|
|
1347
1347
|
type: "button",
|
|
1348
|
-
className:
|
|
1348
|
+
className: H.col__action,
|
|
1349
1349
|
onClick: a,
|
|
1350
1350
|
"aria-label": "Add task",
|
|
1351
|
-
children: /* @__PURE__ */
|
|
1351
|
+
children: /* @__PURE__ */ M(it, {
|
|
1352
1352
|
size: 16,
|
|
1353
|
-
strokeWidth:
|
|
1353
|
+
strokeWidth: O(16)
|
|
1354
1354
|
})
|
|
1355
1355
|
}),
|
|
1356
|
-
/* @__PURE__ */
|
|
1356
|
+
/* @__PURE__ */ M("button", {
|
|
1357
1357
|
type: "button",
|
|
1358
|
-
className:
|
|
1358
|
+
className: H.col__action,
|
|
1359
1359
|
onClick: o,
|
|
1360
1360
|
"aria-label": "Column options",
|
|
1361
|
-
children: /* @__PURE__ */
|
|
1361
|
+
children: /* @__PURE__ */ M(ht, {
|
|
1362
1362
|
size: 16,
|
|
1363
|
-
strokeWidth:
|
|
1363
|
+
strokeWidth: O(16)
|
|
1364
1364
|
})
|
|
1365
1365
|
})
|
|
1366
1366
|
]
|
|
1367
1367
|
}),
|
|
1368
|
-
/* @__PURE__ */
|
|
1369
|
-
className:
|
|
1370
|
-
children: e === "empty" ? /* @__PURE__ */
|
|
1371
|
-
className:
|
|
1368
|
+
/* @__PURE__ */ M("div", {
|
|
1369
|
+
className: H.col__body,
|
|
1370
|
+
children: e === "empty" ? /* @__PURE__ */ M("div", {
|
|
1371
|
+
className: H.col__drop,
|
|
1372
1372
|
children: "Drop tasks here"
|
|
1373
1373
|
}) : i
|
|
1374
1374
|
}),
|
|
1375
|
-
/* @__PURE__ */
|
|
1375
|
+
/* @__PURE__ */ N("button", {
|
|
1376
1376
|
type: "button",
|
|
1377
|
-
className:
|
|
1377
|
+
className: H.col__add,
|
|
1378
1378
|
onClick: a,
|
|
1379
|
-
children: [/* @__PURE__ */
|
|
1379
|
+
children: [/* @__PURE__ */ M(it, {
|
|
1380
1380
|
size: 16,
|
|
1381
|
-
strokeWidth:
|
|
1381
|
+
strokeWidth: O(16),
|
|
1382
1382
|
"aria-hidden": "true"
|
|
1383
1383
|
}), "Add task"]
|
|
1384
1384
|
})
|
|
1385
1385
|
]
|
|
1386
|
-
}),
|
|
1386
|
+
}), U = {
|
|
1387
1387
|
calendar: "_calendar_qvyxg_2",
|
|
1388
1388
|
header: "_header_qvyxg_14",
|
|
1389
1389
|
header__label: "_header__label_qvyxg_15",
|
|
@@ -1401,7 +1401,7 @@ var Yt = {
|
|
|
1401
1401
|
"day--disabled": "_day--disabled_qvyxg_55",
|
|
1402
1402
|
dropdowns: "_dropdowns_qvyxg_58",
|
|
1403
1403
|
dropdown: "_dropdown_qvyxg_58"
|
|
1404
|
-
},
|
|
1404
|
+
}, Qn = [
|
|
1405
1405
|
"Su",
|
|
1406
1406
|
"Mo",
|
|
1407
1407
|
"Tu",
|
|
@@ -1409,7 +1409,7 @@ var Yt = {
|
|
|
1409
1409
|
"Th",
|
|
1410
1410
|
"Fr",
|
|
1411
1411
|
"Sa"
|
|
1412
|
-
],
|
|
1412
|
+
], $n = [
|
|
1413
1413
|
"January",
|
|
1414
1414
|
"February",
|
|
1415
1415
|
"March",
|
|
@@ -1422,19 +1422,19 @@ var Yt = {
|
|
|
1422
1422
|
"October",
|
|
1423
1423
|
"November",
|
|
1424
1424
|
"December"
|
|
1425
|
-
],
|
|
1426
|
-
let [u, d] =
|
|
1425
|
+
], er = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), tr = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), nr = ({ mode: e = "single", value: t, onChange: n, range: r, onRangeChange: i, headerType: a = "arrows", defaultMonth: o, minDate: s, maxDate: c, className: l }) => {
|
|
1426
|
+
let [u, d] = k.useState(() => {
|
|
1427
1427
|
let e = o ?? t ?? r?.from ?? /* @__PURE__ */ new Date();
|
|
1428
1428
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
1429
|
-
}), [f, p] =
|
|
1429
|
+
}), [f, p] = k.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)), S = (e) => s && e < tr(s) || c && e > c, C = (e) => {
|
|
1430
1430
|
r === void 0 && p(e), i?.(e);
|
|
1431
|
-
},
|
|
1431
|
+
}, te = (t) => {
|
|
1432
1432
|
if (e === "single") {
|
|
1433
1433
|
n?.(t);
|
|
1434
1434
|
return;
|
|
1435
1435
|
}
|
|
1436
1436
|
let { from: r, to: i } = h;
|
|
1437
|
-
|
|
1437
|
+
C(!r || r && i ? {
|
|
1438
1438
|
from: t,
|
|
1439
1439
|
to: void 0
|
|
1440
1440
|
} : t < r ? {
|
|
@@ -1444,91 +1444,91 @@ var Yt = {
|
|
|
1444
1444
|
from: r,
|
|
1445
1445
|
to: t
|
|
1446
1446
|
});
|
|
1447
|
-
},
|
|
1448
|
-
if (
|
|
1447
|
+
}, ne = (n) => {
|
|
1448
|
+
if (S(n)) return "disabled";
|
|
1449
1449
|
if (e === "single") {
|
|
1450
|
-
if (
|
|
1450
|
+
if (er(n, t)) return "selected";
|
|
1451
1451
|
} else {
|
|
1452
1452
|
let { from: e, to: t } = h;
|
|
1453
|
-
if (
|
|
1453
|
+
if (er(n, e) || er(n, t)) return "selected";
|
|
1454
1454
|
if (e && t && n > e && n < t) return "in-range";
|
|
1455
1455
|
}
|
|
1456
|
-
return n.getMonth() === y ?
|
|
1457
|
-
},
|
|
1458
|
-
return /* @__PURE__ */
|
|
1459
|
-
className: [
|
|
1456
|
+
return n.getMonth() === y ? er(n, g) ? "today" : "default" : "outside";
|
|
1457
|
+
}, re = s ? s.getFullYear() : v - 10, ie = c ? c.getFullYear() : v + 10, ae = Array.from({ length: ie - re + 1 }, (e, t) => re + t);
|
|
1458
|
+
return /* @__PURE__ */ N("div", {
|
|
1459
|
+
className: [U.calendar, l ?? ""].filter(Boolean).join(" "),
|
|
1460
1460
|
children: [
|
|
1461
|
-
/* @__PURE__ */
|
|
1462
|
-
className:
|
|
1461
|
+
/* @__PURE__ */ N("div", {
|
|
1462
|
+
className: U.header,
|
|
1463
1463
|
children: [
|
|
1464
|
-
/* @__PURE__ */
|
|
1464
|
+
/* @__PURE__ */ M("button", {
|
|
1465
1465
|
type: "button",
|
|
1466
|
-
className:
|
|
1466
|
+
className: U.navBtn,
|
|
1467
1467
|
onClick: () => d(new Date(v, y - 1, 1)),
|
|
1468
1468
|
"aria-label": "Previous month",
|
|
1469
|
-
children: /* @__PURE__ */
|
|
1469
|
+
children: /* @__PURE__ */ M(pt, {
|
|
1470
1470
|
size: 16,
|
|
1471
|
-
strokeWidth:
|
|
1471
|
+
strokeWidth: O(16)
|
|
1472
1472
|
})
|
|
1473
1473
|
}),
|
|
1474
|
-
a === "dropdowns" ? /* @__PURE__ */
|
|
1475
|
-
className:
|
|
1476
|
-
children: [/* @__PURE__ */
|
|
1477
|
-
className:
|
|
1474
|
+
a === "dropdowns" ? /* @__PURE__ */ N("span", {
|
|
1475
|
+
className: U.dropdowns,
|
|
1476
|
+
children: [/* @__PURE__ */ M("select", {
|
|
1477
|
+
className: U.dropdown,
|
|
1478
1478
|
value: y,
|
|
1479
1479
|
onChange: (e) => d(new Date(v, Number(e.target.value), 1)),
|
|
1480
1480
|
"aria-label": "Month",
|
|
1481
|
-
children:
|
|
1481
|
+
children: $n.map((e, t) => /* @__PURE__ */ M("option", {
|
|
1482
1482
|
value: t,
|
|
1483
1483
|
children: e
|
|
1484
1484
|
}, e))
|
|
1485
|
-
}), /* @__PURE__ */
|
|
1486
|
-
className:
|
|
1485
|
+
}), /* @__PURE__ */ M("select", {
|
|
1486
|
+
className: U.dropdown,
|
|
1487
1487
|
value: v,
|
|
1488
1488
|
onChange: (e) => d(new Date(Number(e.target.value), y, 1)),
|
|
1489
1489
|
"aria-label": "Year",
|
|
1490
|
-
children:
|
|
1490
|
+
children: ae.map((e) => /* @__PURE__ */ M("option", {
|
|
1491
1491
|
value: e,
|
|
1492
1492
|
children: e
|
|
1493
1493
|
}, e))
|
|
1494
1494
|
})]
|
|
1495
|
-
}) : /* @__PURE__ */
|
|
1496
|
-
className:
|
|
1495
|
+
}) : /* @__PURE__ */ N("span", {
|
|
1496
|
+
className: U.header__label,
|
|
1497
1497
|
children: [
|
|
1498
|
-
|
|
1498
|
+
$n[y],
|
|
1499
1499
|
" ",
|
|
1500
1500
|
v
|
|
1501
1501
|
]
|
|
1502
1502
|
}),
|
|
1503
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ M("button", {
|
|
1504
1504
|
type: "button",
|
|
1505
|
-
className:
|
|
1505
|
+
className: U.navBtn,
|
|
1506
1506
|
onClick: () => d(new Date(v, y + 1, 1)),
|
|
1507
1507
|
"aria-label": "Next month",
|
|
1508
|
-
children: /* @__PURE__ */
|
|
1508
|
+
children: /* @__PURE__ */ M(at, {
|
|
1509
1509
|
size: 16,
|
|
1510
|
-
strokeWidth:
|
|
1510
|
+
strokeWidth: O(16)
|
|
1511
1511
|
})
|
|
1512
1512
|
})
|
|
1513
1513
|
]
|
|
1514
1514
|
}),
|
|
1515
|
-
/* @__PURE__ */
|
|
1516
|
-
className:
|
|
1517
|
-
children:
|
|
1518
|
-
className:
|
|
1515
|
+
/* @__PURE__ */ M("div", {
|
|
1516
|
+
className: U.weekdays,
|
|
1517
|
+
children: Qn.map((e) => /* @__PURE__ */ M("span", {
|
|
1518
|
+
className: U.weekday,
|
|
1519
1519
|
children: e
|
|
1520
1520
|
}, e))
|
|
1521
1521
|
}),
|
|
1522
|
-
/* @__PURE__ */
|
|
1522
|
+
/* @__PURE__ */ N("div", {
|
|
1523
1523
|
ref: m.ref,
|
|
1524
1524
|
...m.groupProps,
|
|
1525
|
-
className:
|
|
1525
|
+
className: U.grid,
|
|
1526
1526
|
children: [m.highlight, ee.map((e, t) => {
|
|
1527
|
-
let n =
|
|
1528
|
-
return /* @__PURE__ */
|
|
1527
|
+
let n = ne(e);
|
|
1528
|
+
return /* @__PURE__ */ M("button", {
|
|
1529
1529
|
type: "button",
|
|
1530
1530
|
"data-hover-item": "",
|
|
1531
|
-
className: [
|
|
1531
|
+
className: [U.day, U[`day--${n}`]].filter(Boolean).join(" "),
|
|
1532
1532
|
disabled: n === "disabled",
|
|
1533
1533
|
"aria-current": n === "today" ? "date" : void 0,
|
|
1534
1534
|
"aria-selected": n === "selected",
|
|
@@ -1538,14 +1538,14 @@ var Yt = {
|
|
|
1538
1538
|
month: "long",
|
|
1539
1539
|
day: "numeric"
|
|
1540
1540
|
}),
|
|
1541
|
-
onClick: () =>
|
|
1541
|
+
onClick: () => te(e),
|
|
1542
1542
|
children: e.getDate()
|
|
1543
1543
|
}, t);
|
|
1544
1544
|
})]
|
|
1545
1545
|
})
|
|
1546
1546
|
]
|
|
1547
1547
|
});
|
|
1548
|
-
},
|
|
1548
|
+
}, W = {
|
|
1549
1549
|
card: "_card_1qpcc_3",
|
|
1550
1550
|
"card--interactive": "_card--interactive_1qpcc_22",
|
|
1551
1551
|
card__header: "_card__header_1qpcc_30",
|
|
@@ -1555,39 +1555,39 @@ var Yt = {
|
|
|
1555
1555
|
card__actions: "_card__actions_1qpcc_57",
|
|
1556
1556
|
"card__actions--split": "_card__actions--split_1qpcc_66",
|
|
1557
1557
|
card__actionsGroup: "_card__actionsGroup_1qpcc_67"
|
|
1558
|
-
},
|
|
1558
|
+
}, rr = ({ title: e, description: t, actions: n, leadingAction: r, interactive: i, children: a, className: o }) => /* @__PURE__ */ N("div", {
|
|
1559
1559
|
className: [
|
|
1560
|
-
|
|
1561
|
-
i ?
|
|
1560
|
+
W.card,
|
|
1561
|
+
i ? W["card--interactive"] : "",
|
|
1562
1562
|
o ?? ""
|
|
1563
1563
|
].filter(Boolean).join(" "),
|
|
1564
1564
|
children: [
|
|
1565
|
-
(e || t) && /* @__PURE__ */
|
|
1566
|
-
className:
|
|
1567
|
-
children: [e && /* @__PURE__ */
|
|
1568
|
-
className:
|
|
1565
|
+
(e || t) && /* @__PURE__ */ N("div", {
|
|
1566
|
+
className: W.card__header,
|
|
1567
|
+
children: [e && /* @__PURE__ */ M("h3", {
|
|
1568
|
+
className: W.card__title,
|
|
1569
1569
|
children: e
|
|
1570
|
-
}), t && /* @__PURE__ */
|
|
1571
|
-
className:
|
|
1570
|
+
}), t && /* @__PURE__ */ M("p", {
|
|
1571
|
+
className: W.card__description,
|
|
1572
1572
|
children: t
|
|
1573
1573
|
})]
|
|
1574
1574
|
}),
|
|
1575
|
-
a && /* @__PURE__ */
|
|
1576
|
-
className:
|
|
1575
|
+
a && /* @__PURE__ */ M("div", {
|
|
1576
|
+
className: W.card__body,
|
|
1577
1577
|
children: a
|
|
1578
1578
|
}),
|
|
1579
|
-
(n || r) && (r ? /* @__PURE__ */
|
|
1580
|
-
className: [
|
|
1581
|
-
children: [r, /* @__PURE__ */
|
|
1582
|
-
className:
|
|
1579
|
+
(n || r) && (r ? /* @__PURE__ */ N("div", {
|
|
1580
|
+
className: [W.card__actions, W["card__actions--split"]].join(" "),
|
|
1581
|
+
children: [r, /* @__PURE__ */ M("div", {
|
|
1582
|
+
className: W.card__actionsGroup,
|
|
1583
1583
|
children: n
|
|
1584
1584
|
})]
|
|
1585
|
-
}) : /* @__PURE__ */
|
|
1586
|
-
className:
|
|
1585
|
+
}) : /* @__PURE__ */ M("div", {
|
|
1586
|
+
className: W.card__actions,
|
|
1587
1587
|
children: n
|
|
1588
1588
|
}))
|
|
1589
1589
|
]
|
|
1590
|
-
}),
|
|
1590
|
+
}), G = {
|
|
1591
1591
|
field: "_field_1oby0_7",
|
|
1592
1592
|
field__label: "_field__label_1oby0_8",
|
|
1593
1593
|
field__description: "_field__description_1oby0_9",
|
|
@@ -1628,144 +1628,144 @@ var Yt = {
|
|
|
1628
1628
|
panel__loading: "_panel__loading_1oby0_255",
|
|
1629
1629
|
panel__spinner: "_panel__spinner_1oby0_259",
|
|
1630
1630
|
"sakani-cb-spin": "_sakani-cb-spin_1oby0_1"
|
|
1631
|
-
},
|
|
1632
|
-
let f =
|
|
1633
|
-
|
|
1631
|
+
}, ir = ({ 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 }) => {
|
|
1632
|
+
let f = k.useId(), [p, m] = k.useState(!1), [h, g] = k.useState(!1), [_, v] = k.useState(0), y = k.useRef(null), b = e;
|
|
1633
|
+
k.useEffect(() => {
|
|
1634
1634
|
p && g(!0);
|
|
1635
1635
|
}, [p]);
|
|
1636
|
-
let x =
|
|
1637
|
-
|
|
1636
|
+
let x = k.useRef({}), ee = k.useRef(null), [S, C] = k.useState(null), [te, ne] = k.useState(!1);
|
|
1637
|
+
k.useLayoutEffect(() => {
|
|
1638
1638
|
let e = x.current[_];
|
|
1639
1639
|
if (!e) {
|
|
1640
|
-
|
|
1640
|
+
C(null);
|
|
1641
1641
|
return;
|
|
1642
1642
|
}
|
|
1643
|
-
|
|
1643
|
+
C({
|
|
1644
1644
|
top: e.offsetTop,
|
|
1645
1645
|
height: e.offsetHeight
|
|
1646
1646
|
});
|
|
1647
|
-
}, [_, b.length]),
|
|
1647
|
+
}, [_, b.length]), k.useLayoutEffect(() => {
|
|
1648
1648
|
if (!h) {
|
|
1649
|
-
|
|
1649
|
+
ne(!1);
|
|
1650
1650
|
return;
|
|
1651
1651
|
}
|
|
1652
|
-
|
|
1653
|
-
let e = window.requestAnimationFrame(() =>
|
|
1652
|
+
ne(!1);
|
|
1653
|
+
let e = window.requestAnimationFrame(() => ne(!0));
|
|
1654
1654
|
return () => window.cancelAnimationFrame(e);
|
|
1655
|
-
}, [h]),
|
|
1655
|
+
}, [h]), k.useEffect(() => {
|
|
1656
1656
|
if (!ee.current) return;
|
|
1657
1657
|
let e = new ResizeObserver(() => {
|
|
1658
1658
|
let e = x.current[_];
|
|
1659
|
-
e &&
|
|
1659
|
+
e && C({
|
|
1660
1660
|
top: e.offsetTop,
|
|
1661
1661
|
height: e.offsetHeight
|
|
1662
1662
|
});
|
|
1663
1663
|
});
|
|
1664
1664
|
return e.observe(ee.current), () => e.disconnect();
|
|
1665
1665
|
}, [h]);
|
|
1666
|
-
let [
|
|
1666
|
+
let [re, ie] = k.useState(t === "multi" ? [] : ""), ae = l === void 0 ? re : l, w = Array.isArray(ae) ? ae : ae ? [ae] : [], [oe, se] = k.useState(() => w.map((e) => ({
|
|
1667
1667
|
value: e,
|
|
1668
1668
|
leaving: !1
|
|
1669
|
-
}))),
|
|
1670
|
-
|
|
1671
|
-
|
|
1669
|
+
}))), ce = w.join("\0");
|
|
1670
|
+
k.useLayoutEffect(() => {
|
|
1671
|
+
se((e) => {
|
|
1672
1672
|
let t = e.map((e) => ({
|
|
1673
1673
|
value: e.value,
|
|
1674
|
-
leaving: !
|
|
1674
|
+
leaving: !w.includes(e.value)
|
|
1675
1675
|
}));
|
|
1676
|
-
for (let e of
|
|
1676
|
+
for (let e of w) t.some((t) => t.value === e) || t.push({
|
|
1677
1677
|
value: e,
|
|
1678
1678
|
leaving: !1
|
|
1679
1679
|
});
|
|
1680
1680
|
return t;
|
|
1681
1681
|
});
|
|
1682
|
-
}, [
|
|
1683
|
-
let
|
|
1684
|
-
|
|
1682
|
+
}, [ce]);
|
|
1683
|
+
let T = (e) => se((t) => t.filter((t) => !(t.value === e && t.leaving))), le = !!a;
|
|
1684
|
+
k.useEffect(() => {
|
|
1685
1685
|
let e = (e) => {
|
|
1686
1686
|
y.current && !y.current.contains(e.target) && m(!1);
|
|
1687
1687
|
};
|
|
1688
1688
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1689
1689
|
}, []);
|
|
1690
|
-
let
|
|
1691
|
-
l === void 0 &&
|
|
1692
|
-
},
|
|
1690
|
+
let ue = (e) => {
|
|
1691
|
+
l === void 0 && ie(e), u?.(e);
|
|
1692
|
+
}, de = (e) => {
|
|
1693
1693
|
if (!e.disabled) if (t === "multi") {
|
|
1694
|
-
let t = new Set(
|
|
1695
|
-
t.has(e.value) ? t.delete(e.value) : t.add(e.value),
|
|
1696
|
-
} else
|
|
1697
|
-
},
|
|
1698
|
-
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[_] ?
|
|
1699
|
-
},
|
|
1700
|
-
return /* @__PURE__ */
|
|
1701
|
-
className: [
|
|
1694
|
+
let t = new Set(w);
|
|
1695
|
+
t.has(e.value) ? t.delete(e.value) : t.add(e.value), ue([...t]);
|
|
1696
|
+
} else ue(e.value), m(!1);
|
|
1697
|
+
}, fe = (t) => e.find((e) => e.value === t)?.label ?? t, E = w.length ? fe(w[0]) : "", pe = (e) => {
|
|
1698
|
+
s || (e.key === "ArrowDown" ? (e.preventDefault(), m(!0), v((e) => Math.min(e + 1, b.length - 1))) : e.key === "ArrowUp" ? (e.preventDefault(), v((e) => Math.max(e - 1, 0))) : e.key === "Enter" ? (e.preventDefault(), p && b[_] ? de(b[_]) : m(!0)) : e.key === "Escape" && m(!1));
|
|
1699
|
+
}, me = s ? "disabled" : le ? "error" : p ? "open" : "default";
|
|
1700
|
+
return /* @__PURE__ */ N("div", {
|
|
1701
|
+
className: [G.field, d ?? ""].filter(Boolean).join(" "),
|
|
1702
1702
|
ref: y,
|
|
1703
1703
|
children: [
|
|
1704
|
-
r && /* @__PURE__ */
|
|
1704
|
+
r && /* @__PURE__ */ M("label", {
|
|
1705
1705
|
htmlFor: `${f}-trigger`,
|
|
1706
|
-
className:
|
|
1706
|
+
className: G.field__label,
|
|
1707
1707
|
children: r
|
|
1708
1708
|
}),
|
|
1709
|
-
/* @__PURE__ */
|
|
1709
|
+
/* @__PURE__ */ N("div", {
|
|
1710
1710
|
id: `${f}-trigger`,
|
|
1711
1711
|
role: "combobox",
|
|
1712
1712
|
tabIndex: s ? -1 : 0,
|
|
1713
1713
|
"aria-haspopup": "listbox",
|
|
1714
1714
|
"aria-expanded": p,
|
|
1715
1715
|
"aria-controls": `${f}-panel`,
|
|
1716
|
-
"aria-invalid":
|
|
1716
|
+
"aria-invalid": le || void 0,
|
|
1717
1717
|
"aria-disabled": s || void 0,
|
|
1718
1718
|
"aria-activedescendant": p && b[_] ? `${f}-opt-${_}` : void 0,
|
|
1719
1719
|
className: [
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1720
|
+
G.control,
|
|
1721
|
+
G[`control--${n}`],
|
|
1722
|
+
G[`control--${me}`]
|
|
1723
1723
|
].join(" "),
|
|
1724
1724
|
onClick: () => !s && m((e) => !e),
|
|
1725
|
-
onKeyDown:
|
|
1725
|
+
onKeyDown: pe,
|
|
1726
1726
|
children: [
|
|
1727
|
-
t === "multi" &&
|
|
1728
|
-
className:
|
|
1729
|
-
children:
|
|
1730
|
-
className: [
|
|
1727
|
+
t === "multi" && oe.length > 0 && /* @__PURE__ */ M("div", {
|
|
1728
|
+
className: G.chips,
|
|
1729
|
+
children: oe.map(({ value: t, leaving: n }) => /* @__PURE__ */ N("span", {
|
|
1730
|
+
className: [G.chip, n ? G["chip--leaving"] : ""].filter(Boolean).join(" "),
|
|
1731
1731
|
"aria-hidden": n || void 0,
|
|
1732
|
-
onAnimationEnd: n ? () =>
|
|
1733
|
-
children: [
|
|
1732
|
+
onAnimationEnd: n ? () => T(t) : void 0,
|
|
1733
|
+
children: [fe(t), /* @__PURE__ */ M("button", {
|
|
1734
1734
|
type: "button",
|
|
1735
|
-
className:
|
|
1735
|
+
className: G.chip__remove,
|
|
1736
1736
|
tabIndex: n ? -1 : void 0,
|
|
1737
1737
|
onClick: (n) => {
|
|
1738
|
-
n.stopPropagation(),
|
|
1738
|
+
n.stopPropagation(), de(e.find((e) => e.value === t));
|
|
1739
1739
|
},
|
|
1740
|
-
"aria-label": `Remove ${
|
|
1740
|
+
"aria-label": `Remove ${fe(t)}`,
|
|
1741
1741
|
children: "×"
|
|
1742
1742
|
})]
|
|
1743
1743
|
}, t))
|
|
1744
1744
|
}),
|
|
1745
|
-
!(t === "multi" &&
|
|
1746
|
-
className: [
|
|
1747
|
-
children: t === "single" &&
|
|
1745
|
+
!(t === "multi" && oe.length > 0) && /* @__PURE__ */ M("span", {
|
|
1746
|
+
className: [G.control__value, t === "single" && E ? "" : G["control__value--placeholder"]].filter(Boolean).join(" "),
|
|
1747
|
+
children: t === "single" && E ? E : o
|
|
1748
1748
|
}),
|
|
1749
|
-
/* @__PURE__ */
|
|
1750
|
-
className: [
|
|
1749
|
+
/* @__PURE__ */ M("span", {
|
|
1750
|
+
className: [G.control__chevron, p ? G["control__chevron--open"] : ""].join(" "),
|
|
1751
1751
|
"aria-hidden": "true",
|
|
1752
|
-
children: /* @__PURE__ */
|
|
1752
|
+
children: /* @__PURE__ */ M("svg", {
|
|
1753
1753
|
width: 16,
|
|
1754
1754
|
height: 16,
|
|
1755
1755
|
viewBox: "0 0 24 24",
|
|
1756
1756
|
fill: "none",
|
|
1757
1757
|
stroke: "currentColor",
|
|
1758
|
-
strokeWidth:
|
|
1758
|
+
strokeWidth: O(16),
|
|
1759
1759
|
strokeLinecap: "round",
|
|
1760
1760
|
strokeLinejoin: "round",
|
|
1761
|
-
children: /* @__PURE__ */
|
|
1761
|
+
children: /* @__PURE__ */ M("path", { d: "m6 9 6 6 6-6" })
|
|
1762
1762
|
})
|
|
1763
1763
|
})
|
|
1764
1764
|
]
|
|
1765
1765
|
}),
|
|
1766
|
-
h && !s && /* @__PURE__ */
|
|
1766
|
+
h && !s && /* @__PURE__ */ M("div", {
|
|
1767
1767
|
ref: ee,
|
|
1768
|
-
className: [
|
|
1768
|
+
className: [G.panel, p ? G["panel--entering"] : G["panel--exiting"]].filter(Boolean).join(" "),
|
|
1769
1769
|
id: `${f}-panel`,
|
|
1770
1770
|
role: "listbox",
|
|
1771
1771
|
"aria-multiselectable": t === "multi" || void 0,
|
|
@@ -1773,25 +1773,25 @@ var Yt = {
|
|
|
1773
1773
|
onAnimationEnd: () => {
|
|
1774
1774
|
p || g(!1);
|
|
1775
1775
|
},
|
|
1776
|
-
children: c ? /* @__PURE__ */
|
|
1777
|
-
className:
|
|
1778
|
-
children: [/* @__PURE__ */
|
|
1779
|
-
className:
|
|
1776
|
+
children: c ? /* @__PURE__ */ N("div", {
|
|
1777
|
+
className: G.panel__loading,
|
|
1778
|
+
children: [/* @__PURE__ */ M("span", {
|
|
1779
|
+
className: G.panel__spinner,
|
|
1780
1780
|
"aria-hidden": "true"
|
|
1781
1781
|
}), "Loading…"]
|
|
1782
|
-
}) : b.length === 0 ? /* @__PURE__ */
|
|
1783
|
-
className:
|
|
1782
|
+
}) : b.length === 0 ? /* @__PURE__ */ M("div", {
|
|
1783
|
+
className: G.panel__empty,
|
|
1784
1784
|
children: "No options available"
|
|
1785
|
-
}) : /* @__PURE__ */
|
|
1785
|
+
}) : /* @__PURE__ */ N(Dt, { children: [S && /* @__PURE__ */ M("span", {
|
|
1786
1786
|
"aria-hidden": "true",
|
|
1787
|
-
className: [
|
|
1787
|
+
className: [G.optionHighlight, te ? G["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
|
|
1788
1788
|
style: {
|
|
1789
|
-
transform: `translateY(${
|
|
1790
|
-
height:
|
|
1789
|
+
transform: `translateY(${S.top}px)`,
|
|
1790
|
+
height: S.height
|
|
1791
1791
|
}
|
|
1792
1792
|
}), b.map((e, n) => {
|
|
1793
|
-
let r =
|
|
1794
|
-
return /* @__PURE__ */
|
|
1793
|
+
let r = w.includes(e.value);
|
|
1794
|
+
return /* @__PURE__ */ N("div", {
|
|
1795
1795
|
ref: (e) => {
|
|
1796
1796
|
x.current[n] = e;
|
|
1797
1797
|
},
|
|
@@ -1799,43 +1799,43 @@ var Yt = {
|
|
|
1799
1799
|
role: "option",
|
|
1800
1800
|
"aria-selected": r,
|
|
1801
1801
|
className: [
|
|
1802
|
-
|
|
1803
|
-
r && t === "single" ?
|
|
1804
|
-
e.disabled ?
|
|
1802
|
+
G.option,
|
|
1803
|
+
r && t === "single" ? G["option--selected"] : "",
|
|
1804
|
+
e.disabled ? G["option--disabled"] : ""
|
|
1805
1805
|
].filter(Boolean).join(" "),
|
|
1806
1806
|
onMouseEnter: () => {
|
|
1807
1807
|
e.disabled || v(n);
|
|
1808
1808
|
},
|
|
1809
|
-
onClick: () =>
|
|
1809
|
+
onClick: () => de(e),
|
|
1810
1810
|
children: [
|
|
1811
|
-
t === "multi" && /* @__PURE__ */
|
|
1812
|
-
className: [
|
|
1811
|
+
t === "multi" && /* @__PURE__ */ M("span", {
|
|
1812
|
+
className: [G.option__box, r ? G["option__box--checked"] : ""].filter(Boolean).join(" "),
|
|
1813
1813
|
"aria-hidden": "true",
|
|
1814
|
-
children: /* @__PURE__ */
|
|
1814
|
+
children: /* @__PURE__ */ M("svg", {
|
|
1815
1815
|
width: 12,
|
|
1816
1816
|
height: 12,
|
|
1817
1817
|
viewBox: "0 0 24 24",
|
|
1818
1818
|
fill: "none",
|
|
1819
1819
|
stroke: "currentColor",
|
|
1820
|
-
strokeWidth:
|
|
1820
|
+
strokeWidth: O(12),
|
|
1821
1821
|
strokeLinecap: "round",
|
|
1822
1822
|
strokeLinejoin: "round",
|
|
1823
|
-
children: /* @__PURE__ */
|
|
1823
|
+
children: /* @__PURE__ */ M("polyline", { points: "20 6 9 17 4 12" })
|
|
1824
1824
|
})
|
|
1825
1825
|
}),
|
|
1826
|
-
e.icon && /* @__PURE__ */
|
|
1827
|
-
className:
|
|
1826
|
+
e.icon && /* @__PURE__ */ M("span", {
|
|
1827
|
+
className: G.option__icon,
|
|
1828
1828
|
"aria-hidden": "true",
|
|
1829
1829
|
children: e.icon
|
|
1830
1830
|
}),
|
|
1831
|
-
/* @__PURE__ */
|
|
1832
|
-
className:
|
|
1831
|
+
/* @__PURE__ */ M("span", {
|
|
1832
|
+
className: G.option__label,
|
|
1833
1833
|
children: e.label
|
|
1834
1834
|
}),
|
|
1835
|
-
r && t === "single" && /* @__PURE__ */
|
|
1836
|
-
className:
|
|
1835
|
+
r && t === "single" && /* @__PURE__ */ M("span", {
|
|
1836
|
+
className: G.option__check,
|
|
1837
1837
|
"aria-hidden": "true",
|
|
1838
|
-
children: /* @__PURE__ */
|
|
1838
|
+
children: /* @__PURE__ */ M("svg", {
|
|
1839
1839
|
width: 16,
|
|
1840
1840
|
height: 16,
|
|
1841
1841
|
viewBox: "0 0 24 24",
|
|
@@ -1844,20 +1844,20 @@ var Yt = {
|
|
|
1844
1844
|
strokeWidth: 2,
|
|
1845
1845
|
strokeLinecap: "round",
|
|
1846
1846
|
strokeLinejoin: "round",
|
|
1847
|
-
children: /* @__PURE__ */
|
|
1847
|
+
children: /* @__PURE__ */ M("polyline", { points: "20 6 9 17 4 12" })
|
|
1848
1848
|
})
|
|
1849
1849
|
})
|
|
1850
1850
|
]
|
|
1851
1851
|
}, e.value);
|
|
1852
1852
|
})] })
|
|
1853
1853
|
}),
|
|
1854
|
-
(i || a) && /* @__PURE__ */
|
|
1855
|
-
className:
|
|
1854
|
+
(i || a) && /* @__PURE__ */ M("span", {
|
|
1855
|
+
className: le ? G.field__error : G.field__description,
|
|
1856
1856
|
children: a || i
|
|
1857
1857
|
})
|
|
1858
1858
|
]
|
|
1859
1859
|
});
|
|
1860
|
-
},
|
|
1860
|
+
}, K = {
|
|
1861
1861
|
wrap: "_wrap_1j16e_2",
|
|
1862
1862
|
dropzone: "_dropzone_1j16e_4",
|
|
1863
1863
|
"dropzone--dragging": "_dropzone--dragging_1j16e_21",
|
|
@@ -1871,18 +1871,18 @@ var Yt = {
|
|
|
1871
1871
|
file__icon: "_file__icon_1j16e_45",
|
|
1872
1872
|
file__name: "_file__name_1j16e_46",
|
|
1873
1873
|
file__remove: "_file__remove_1j16e_47"
|
|
1874
|
-
},
|
|
1875
|
-
let a =
|
|
1874
|
+
}, ar = ({ accept: e, multiple: t, hint: n = "SVG, PNG, JPG or PDF (max. 2MB)", onFilesChange: r, className: i }) => {
|
|
1875
|
+
let a = k.useRef(null), [o, s] = k.useState(!1), [c, l] = k.useState([]), u = (e) => {
|
|
1876
1876
|
l(e), r?.(e);
|
|
1877
1877
|
}, d = (e) => {
|
|
1878
1878
|
if (!e) return;
|
|
1879
1879
|
let n = Array.from(e);
|
|
1880
1880
|
u(t ? [...c, ...n] : n.slice(0, 1));
|
|
1881
1881
|
}, f = (e) => u(c.filter((t, n) => n !== e));
|
|
1882
|
-
return /* @__PURE__ */
|
|
1883
|
-
className: [
|
|
1884
|
-
children: [/* @__PURE__ */
|
|
1885
|
-
className: [
|
|
1882
|
+
return /* @__PURE__ */ N("div", {
|
|
1883
|
+
className: [K.wrap, i ?? ""].filter(Boolean).join(" "),
|
|
1884
|
+
children: [/* @__PURE__ */ N("div", {
|
|
1885
|
+
className: [K.dropzone, o ? K["dropzone--dragging"] : ""].filter(Boolean).join(" "),
|
|
1886
1886
|
onClick: () => a.current?.click(),
|
|
1887
1887
|
onDragOver: (e) => {
|
|
1888
1888
|
e.preventDefault(), s(!0);
|
|
@@ -1897,66 +1897,66 @@ var Yt = {
|
|
|
1897
1897
|
(e.key === "Enter" || e.key === " ") && a.current?.click();
|
|
1898
1898
|
},
|
|
1899
1899
|
children: [
|
|
1900
|
-
/* @__PURE__ */
|
|
1901
|
-
className:
|
|
1900
|
+
/* @__PURE__ */ M("span", {
|
|
1901
|
+
className: K.dropzone__icon,
|
|
1902
1902
|
"aria-hidden": "true",
|
|
1903
|
-
children: /* @__PURE__ */
|
|
1903
|
+
children: /* @__PURE__ */ M(ct, {
|
|
1904
1904
|
size: 22,
|
|
1905
|
-
strokeWidth:
|
|
1905
|
+
strokeWidth: O(22)
|
|
1906
1906
|
})
|
|
1907
1907
|
}),
|
|
1908
|
-
/* @__PURE__ */
|
|
1909
|
-
className:
|
|
1910
|
-
children: [/* @__PURE__ */
|
|
1911
|
-
className:
|
|
1908
|
+
/* @__PURE__ */ N("span", {
|
|
1909
|
+
className: K.dropzone__label,
|
|
1910
|
+
children: [/* @__PURE__ */ M("span", {
|
|
1911
|
+
className: K.dropzone__link,
|
|
1912
1912
|
children: "Click to upload"
|
|
1913
1913
|
}), " or drag and drop"]
|
|
1914
1914
|
}),
|
|
1915
|
-
/* @__PURE__ */
|
|
1916
|
-
className:
|
|
1915
|
+
/* @__PURE__ */ M("span", {
|
|
1916
|
+
className: K.dropzone__hint,
|
|
1917
1917
|
children: n
|
|
1918
1918
|
}),
|
|
1919
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ M("input", {
|
|
1920
1920
|
ref: a,
|
|
1921
1921
|
type: "file",
|
|
1922
1922
|
accept: e,
|
|
1923
1923
|
multiple: t,
|
|
1924
|
-
className:
|
|
1924
|
+
className: K.input,
|
|
1925
1925
|
onChange: (e) => d(e.target.files)
|
|
1926
1926
|
})
|
|
1927
1927
|
]
|
|
1928
|
-
}), c.length > 0 && /* @__PURE__ */
|
|
1929
|
-
className:
|
|
1930
|
-
children: c.map((e, t) => /* @__PURE__ */
|
|
1931
|
-
className:
|
|
1928
|
+
}), c.length > 0 && /* @__PURE__ */ M("ul", {
|
|
1929
|
+
className: K.files,
|
|
1930
|
+
children: c.map((e, t) => /* @__PURE__ */ N("li", {
|
|
1931
|
+
className: K.file,
|
|
1932
1932
|
children: [
|
|
1933
|
-
/* @__PURE__ */
|
|
1934
|
-
className:
|
|
1933
|
+
/* @__PURE__ */ M("span", {
|
|
1934
|
+
className: K.file__icon,
|
|
1935
1935
|
"aria-hidden": "true",
|
|
1936
|
-
children: /* @__PURE__ */
|
|
1936
|
+
children: /* @__PURE__ */ M(dt, {
|
|
1937
1937
|
size: 16,
|
|
1938
|
-
strokeWidth:
|
|
1938
|
+
strokeWidth: O(16)
|
|
1939
1939
|
})
|
|
1940
1940
|
}),
|
|
1941
|
-
/* @__PURE__ */
|
|
1942
|
-
className:
|
|
1941
|
+
/* @__PURE__ */ M("span", {
|
|
1942
|
+
className: K.file__name,
|
|
1943
1943
|
children: e.name
|
|
1944
1944
|
}),
|
|
1945
|
-
/* @__PURE__ */
|
|
1945
|
+
/* @__PURE__ */ M("button", {
|
|
1946
1946
|
type: "button",
|
|
1947
|
-
className:
|
|
1947
|
+
className: K.file__remove,
|
|
1948
1948
|
onClick: () => f(t),
|
|
1949
1949
|
"aria-label": `Remove ${e.name}`,
|
|
1950
|
-
children: /* @__PURE__ */
|
|
1950
|
+
children: /* @__PURE__ */ M(tt, {
|
|
1951
1951
|
size: 14,
|
|
1952
|
-
strokeWidth:
|
|
1952
|
+
strokeWidth: O(14)
|
|
1953
1953
|
})
|
|
1954
1954
|
})
|
|
1955
1955
|
]
|
|
1956
1956
|
}, t))
|
|
1957
1957
|
})]
|
|
1958
1958
|
});
|
|
1959
|
-
},
|
|
1959
|
+
}, q = {
|
|
1960
1960
|
chart: "_chart_1m9hd_1",
|
|
1961
1961
|
svg: "_svg_1m9hd_7",
|
|
1962
1962
|
segment: "_segment_1m9hd_12",
|
|
@@ -1969,25 +1969,25 @@ var Yt = {
|
|
|
1969
1969
|
tooltip__dot: "_tooltip__dot_1m9hd_68",
|
|
1970
1970
|
tooltip__label: "_tooltip__label_1m9hd_74",
|
|
1971
1971
|
tooltip__value: "_tooltip__value_1m9hd_75"
|
|
1972
|
-
},
|
|
1972
|
+
}, or = {
|
|
1973
1973
|
sm: 180,
|
|
1974
1974
|
md: 240,
|
|
1975
1975
|
lg: 320,
|
|
1976
1976
|
xl: 420
|
|
1977
|
-
},
|
|
1978
|
-
let [r, i] =
|
|
1979
|
-
g.push(h(e[e.length - 1]?.value ?? 0) *
|
|
1980
|
-
let _ = (t) => e.length <= 1 ? 1 :
|
|
1981
|
-
return /* @__PURE__ */
|
|
1977
|
+
}, sr = 560, cr = .3, lr = .55, ur = ({ data: e, size: t = "md", className: n }) => {
|
|
1978
|
+
let [r, i] = k.useState(null), a = k.useRef(null), o = ze(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-bg-canvas") ?? "#fafaf9", l = e[0]?.value || 1, u = or[t], d = u * .66, f = d / 2 + 8, p = sr / e.length, m = e[0]?.value || 1, h = (e) => e / m * d, g = e.map((e) => h(e.value));
|
|
1979
|
+
g.push(h(e[e.length - 1]?.value ?? 0) * lr);
|
|
1980
|
+
let _ = (t) => e.length <= 1 ? 1 : cr + t / (e.length - 1) * (1 - cr), v = r === null ? null : e[r], y = r === null ? 0 : f - g[r] / 2, b = r === null ? 0 : r * p + p / 2;
|
|
1981
|
+
return /* @__PURE__ */ N("div", {
|
|
1982
1982
|
ref: a,
|
|
1983
|
-
className: [
|
|
1983
|
+
className: [q.chart, n ?? ""].filter(Boolean).join(" "),
|
|
1984
1984
|
style: { height: u },
|
|
1985
1985
|
children: [
|
|
1986
|
-
/* @__PURE__ */
|
|
1987
|
-
viewBox: `0 0 ${
|
|
1986
|
+
/* @__PURE__ */ M("svg", {
|
|
1987
|
+
viewBox: `0 0 ${sr} ${u}`,
|
|
1988
1988
|
width: "100%",
|
|
1989
1989
|
height: u,
|
|
1990
|
-
className:
|
|
1990
|
+
className: q.svg,
|
|
1991
1991
|
children: e.map((e, t) => {
|
|
1992
1992
|
let n = t * p, a = (t + 1) * p, o = (n + a) / 2, c = g[t] / 2, u = g[t + 1] / 2, d = f - c, m = f - u, h = f + c, v = f + u, y = [
|
|
1993
1993
|
`M ${n} ${d}`,
|
|
@@ -1996,56 +1996,56 @@ var Yt = {
|
|
|
1996
1996
|
`C ${o} ${v} ${o} ${h} ${n} ${h}`,
|
|
1997
1997
|
"Z"
|
|
1998
1998
|
].join(" "), b = r === null ? _(t) : t === r ? 1 : .45, x = Math.round(e.value / l * 100);
|
|
1999
|
-
return /* @__PURE__ */
|
|
2000
|
-
className:
|
|
1999
|
+
return /* @__PURE__ */ N("g", {
|
|
2000
|
+
className: q.segment,
|
|
2001
2001
|
onMouseEnter: () => i(t),
|
|
2002
2002
|
onMouseLeave: () => i(null),
|
|
2003
|
-
children: [/* @__PURE__ */
|
|
2003
|
+
children: [/* @__PURE__ */ M("path", {
|
|
2004
2004
|
d: y,
|
|
2005
2005
|
fill: s,
|
|
2006
2006
|
fillOpacity: b
|
|
2007
|
-
}), /* @__PURE__ */
|
|
2007
|
+
}), /* @__PURE__ */ N("text", {
|
|
2008
2008
|
x: o,
|
|
2009
2009
|
y: f,
|
|
2010
2010
|
textAnchor: "middle",
|
|
2011
2011
|
dominantBaseline: "middle",
|
|
2012
|
-
className:
|
|
2012
|
+
className: q.pctLabel,
|
|
2013
2013
|
children: [x, "%"]
|
|
2014
2014
|
})]
|
|
2015
2015
|
}, t);
|
|
2016
2016
|
})
|
|
2017
2017
|
}),
|
|
2018
|
-
/* @__PURE__ */
|
|
2019
|
-
className:
|
|
2018
|
+
/* @__PURE__ */ M("div", {
|
|
2019
|
+
className: q.labels,
|
|
2020
2020
|
style: { gridTemplateColumns: `repeat(${e.length}, 1fr)` },
|
|
2021
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2022
|
-
className:
|
|
2021
|
+
children: e.map((e, t) => /* @__PURE__ */ M("span", {
|
|
2022
|
+
className: q.labelItem,
|
|
2023
2023
|
children: e.label
|
|
2024
2024
|
}, t))
|
|
2025
2025
|
}),
|
|
2026
|
-
v && /* @__PURE__ */
|
|
2027
|
-
className:
|
|
2026
|
+
v && /* @__PURE__ */ N("div", {
|
|
2027
|
+
className: q.tooltip,
|
|
2028
2028
|
style: {
|
|
2029
|
-
left: `${b /
|
|
2029
|
+
left: `${b / sr * 100}%`,
|
|
2030
2030
|
top: `${y / u * 100}%`,
|
|
2031
2031
|
background: c
|
|
2032
2032
|
},
|
|
2033
|
-
children: [/* @__PURE__ */
|
|
2034
|
-
className:
|
|
2033
|
+
children: [/* @__PURE__ */ M("span", {
|
|
2034
|
+
className: q.tooltip__title,
|
|
2035
2035
|
children: v.label
|
|
2036
|
-
}), /* @__PURE__ */
|
|
2037
|
-
className:
|
|
2036
|
+
}), /* @__PURE__ */ N("div", {
|
|
2037
|
+
className: q.tooltip__row,
|
|
2038
2038
|
children: [
|
|
2039
|
-
/* @__PURE__ */
|
|
2040
|
-
className:
|
|
2039
|
+
/* @__PURE__ */ M("span", {
|
|
2040
|
+
className: q.tooltip__dot,
|
|
2041
2041
|
style: { background: s }
|
|
2042
2042
|
}),
|
|
2043
|
-
/* @__PURE__ */
|
|
2044
|
-
className:
|
|
2043
|
+
/* @__PURE__ */ M("span", {
|
|
2044
|
+
className: q.tooltip__label,
|
|
2045
2045
|
children: "Share"
|
|
2046
2046
|
}),
|
|
2047
|
-
/* @__PURE__ */
|
|
2048
|
-
className:
|
|
2047
|
+
/* @__PURE__ */ N("span", {
|
|
2048
|
+
className: q.tooltip__value,
|
|
2049
2049
|
children: [Math.round(v.value / l * 100), "%"]
|
|
2050
2050
|
})
|
|
2051
2051
|
]
|
|
@@ -2053,7 +2053,7 @@ var Yt = {
|
|
|
2053
2053
|
})
|
|
2054
2054
|
]
|
|
2055
2055
|
});
|
|
2056
|
-
},
|
|
2056
|
+
}, J = {
|
|
2057
2057
|
chart: "_chart_1yc8b_1",
|
|
2058
2058
|
grid: "_grid_1yc8b_6",
|
|
2059
2059
|
rowLabel: "_rowLabel_1yc8b_13",
|
|
@@ -2069,8 +2069,8 @@ var Yt = {
|
|
|
2069
2069
|
tooltip__dot: "_tooltip__dot_1yc8b_84",
|
|
2070
2070
|
tooltip__label: "_tooltip__label_1yc8b_91",
|
|
2071
2071
|
tooltip__value: "_tooltip__value_1yc8b_92"
|
|
2072
|
-
},
|
|
2073
|
-
let o =
|
|
2072
|
+
}, dr = .12, fr = .45, pr = ({ data: e, rowLabels: t, colLabels: n, valueLabel: r = "Value", size: i = "md", className: a }) => {
|
|
2073
|
+
let o = k.useRef(null), s = ze(o), c = k.useRef(null), [l, u] = k.useState(null), d = s("--color-chart-1") ?? "#ff4700", f = Math.max(1, ...e.flat()), p = e[0]?.length ?? 0, m = (e, t, n) => (r) => {
|
|
2074
2074
|
let i = r.currentTarget.getBoundingClientRect(), a = c.current?.getBoundingClientRect();
|
|
2075
2075
|
a && u({
|
|
2076
2076
|
row: e,
|
|
@@ -2080,56 +2080,56 @@ var Yt = {
|
|
|
2080
2080
|
top: i.top - a.top
|
|
2081
2081
|
});
|
|
2082
2082
|
};
|
|
2083
|
-
return /* @__PURE__ */
|
|
2083
|
+
return /* @__PURE__ */ M("div", {
|
|
2084
2084
|
ref: o,
|
|
2085
2085
|
className: [
|
|
2086
|
-
|
|
2087
|
-
|
|
2086
|
+
J.chart,
|
|
2087
|
+
J[`chart--${i}`],
|
|
2088
2088
|
a ?? ""
|
|
2089
2089
|
].filter(Boolean).join(" "),
|
|
2090
|
-
children: /* @__PURE__ */
|
|
2090
|
+
children: /* @__PURE__ */ N("div", {
|
|
2091
2091
|
ref: c,
|
|
2092
|
-
className:
|
|
2092
|
+
className: J.grid,
|
|
2093
2093
|
style: { gridTemplateColumns: `auto repeat(${p}, 1fr)` },
|
|
2094
2094
|
children: [
|
|
2095
|
-
e.map((e, n) => /* @__PURE__ */
|
|
2096
|
-
className:
|
|
2095
|
+
e.map((e, n) => /* @__PURE__ */ N(k.Fragment, { children: [/* @__PURE__ */ M("span", {
|
|
2096
|
+
className: J.rowLabel,
|
|
2097
2097
|
children: t?.[n] ?? ""
|
|
2098
2098
|
}), e.map((e, t) => {
|
|
2099
|
-
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 :
|
|
2100
|
-
return /* @__PURE__ */
|
|
2101
|
-
className:
|
|
2099
|
+
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 : dr + e / f * (1 - dr);
|
|
2100
|
+
return /* @__PURE__ */ M("div", {
|
|
2101
|
+
className: J.cell,
|
|
2102
2102
|
style: {
|
|
2103
2103
|
background: d,
|
|
2104
|
-
opacity: i ?
|
|
2104
|
+
opacity: i ? fr : a
|
|
2105
2105
|
},
|
|
2106
2106
|
onMouseEnter: m(n, t, e),
|
|
2107
2107
|
onMouseLeave: () => u(null)
|
|
2108
2108
|
}, t);
|
|
2109
2109
|
})] }, n)),
|
|
2110
|
-
n && /* @__PURE__ */
|
|
2111
|
-
className:
|
|
2110
|
+
n && /* @__PURE__ */ N(Dt, { children: [/* @__PURE__ */ M("span", {}), n.map((e, t) => /* @__PURE__ */ M("span", {
|
|
2111
|
+
className: J.colLabel,
|
|
2112
2112
|
children: e
|
|
2113
2113
|
}, t))] }),
|
|
2114
|
-
l && /* @__PURE__ */
|
|
2115
|
-
className:
|
|
2114
|
+
l && /* @__PURE__ */ N("div", {
|
|
2115
|
+
className: J.tooltip,
|
|
2116
2116
|
style: {
|
|
2117
2117
|
left: l.left,
|
|
2118
2118
|
top: l.top
|
|
2119
2119
|
},
|
|
2120
|
-
children: [/* @__PURE__ */
|
|
2121
|
-
className:
|
|
2120
|
+
children: [/* @__PURE__ */ M("span", {
|
|
2121
|
+
className: J.tooltip__title,
|
|
2122
2122
|
children: [t?.[l.row], n?.[l.col]].filter(Boolean).join(" · ") || `Row ${l.row + 1}, Col ${l.col + 1}`
|
|
2123
|
-
}), /* @__PURE__ */
|
|
2124
|
-
className:
|
|
2123
|
+
}), /* @__PURE__ */ N("div", {
|
|
2124
|
+
className: J.tooltip__row,
|
|
2125
2125
|
children: [
|
|
2126
|
-
/* @__PURE__ */
|
|
2127
|
-
/* @__PURE__ */
|
|
2128
|
-
className:
|
|
2126
|
+
/* @__PURE__ */ M("span", { className: J.tooltip__dot }),
|
|
2127
|
+
/* @__PURE__ */ M("span", {
|
|
2128
|
+
className: J.tooltip__label,
|
|
2129
2129
|
children: r
|
|
2130
2130
|
}),
|
|
2131
|
-
/* @__PURE__ */
|
|
2132
|
-
className:
|
|
2131
|
+
/* @__PURE__ */ M("span", {
|
|
2132
|
+
className: J.tooltip__value,
|
|
2133
2133
|
children: l.value
|
|
2134
2134
|
})
|
|
2135
2135
|
]
|
|
@@ -2138,24 +2138,24 @@ var Yt = {
|
|
|
2138
2138
|
]
|
|
2139
2139
|
})
|
|
2140
2140
|
});
|
|
2141
|
-
},
|
|
2142
|
-
className: [
|
|
2141
|
+
}, mr = { kbd: "_kbd_1cz4m_3" }, hr = ({ children: e, className: t }) => /* @__PURE__ */ M("kbd", {
|
|
2142
|
+
className: [mr.kbd, t ?? ""].filter(Boolean).join(" "),
|
|
2143
2143
|
children: e
|
|
2144
|
-
}),
|
|
2144
|
+
}), gr = {
|
|
2145
2145
|
label: "_label_rcdks_3",
|
|
2146
2146
|
label__required: "_label__required_rcdks_17"
|
|
2147
|
-
},
|
|
2147
|
+
}, _r = k.forwardRef(({ required: e, children: t, className: n, ...r }, i) => /* @__PURE__ */ N("label", {
|
|
2148
2148
|
ref: i,
|
|
2149
|
-
className: [
|
|
2149
|
+
className: [gr.label, n ?? ""].filter(Boolean).join(" "),
|
|
2150
2150
|
...r,
|
|
2151
|
-
children: [t, e && /* @__PURE__ */
|
|
2152
|
-
className:
|
|
2151
|
+
children: [t, e && /* @__PURE__ */ M("span", {
|
|
2152
|
+
className: gr.label__required,
|
|
2153
2153
|
"aria-hidden": "true",
|
|
2154
2154
|
children: " *"
|
|
2155
2155
|
})]
|
|
2156
2156
|
}));
|
|
2157
|
-
|
|
2158
|
-
var
|
|
2157
|
+
_r.displayName = "Label";
|
|
2158
|
+
var vr = {
|
|
2159
2159
|
item: "_item_4gag1_2",
|
|
2160
2160
|
"item--disabled": "_item--disabled_4gag1_22",
|
|
2161
2161
|
"item--selected": "_item--selected_4gag1_26",
|
|
@@ -2164,35 +2164,35 @@ var G = {
|
|
|
2164
2164
|
item__title: "_item__title_4gag1_32",
|
|
2165
2165
|
item__description: "_item__description_4gag1_33",
|
|
2166
2166
|
item__trailing: "_item__trailing_4gag1_34"
|
|
2167
|
-
}, yr = ({ title: e, description: t, leading: n, trailing: r, selected: i, disabled: a, onClick: o, className: s }) => /* @__PURE__ */
|
|
2167
|
+
}, yr = ({ title: e, description: t, leading: n, trailing: r, selected: i, disabled: a, onClick: o, className: s }) => /* @__PURE__ */ N("button", {
|
|
2168
2168
|
type: "button",
|
|
2169
2169
|
"data-hover-item": "",
|
|
2170
2170
|
disabled: a,
|
|
2171
2171
|
onClick: o,
|
|
2172
2172
|
"aria-current": i ? "true" : void 0,
|
|
2173
2173
|
className: [
|
|
2174
|
-
|
|
2175
|
-
i ?
|
|
2176
|
-
a ?
|
|
2174
|
+
vr.item,
|
|
2175
|
+
i ? vr["item--selected"] : "",
|
|
2176
|
+
a ? vr["item--disabled"] : "",
|
|
2177
2177
|
s ?? ""
|
|
2178
2178
|
].filter(Boolean).join(" "),
|
|
2179
2179
|
children: [
|
|
2180
|
-
n && /* @__PURE__ */
|
|
2181
|
-
className:
|
|
2180
|
+
n && /* @__PURE__ */ M("span", {
|
|
2181
|
+
className: vr.item__leading,
|
|
2182
2182
|
children: n
|
|
2183
2183
|
}),
|
|
2184
|
-
/* @__PURE__ */
|
|
2185
|
-
className:
|
|
2186
|
-
children: [/* @__PURE__ */
|
|
2187
|
-
className:
|
|
2184
|
+
/* @__PURE__ */ N("span", {
|
|
2185
|
+
className: vr.item__text,
|
|
2186
|
+
children: [/* @__PURE__ */ M("span", {
|
|
2187
|
+
className: vr.item__title,
|
|
2188
2188
|
children: e
|
|
2189
|
-
}), t && /* @__PURE__ */
|
|
2190
|
-
className:
|
|
2189
|
+
}), t && /* @__PURE__ */ M("span", {
|
|
2190
|
+
className: vr.item__description,
|
|
2191
2191
|
children: t
|
|
2192
2192
|
})]
|
|
2193
2193
|
}),
|
|
2194
|
-
r && /* @__PURE__ */
|
|
2195
|
-
className:
|
|
2194
|
+
r && /* @__PURE__ */ M("span", {
|
|
2195
|
+
className: vr.item__trailing,
|
|
2196
2196
|
children: r
|
|
2197
2197
|
})
|
|
2198
2198
|
]
|
|
@@ -2224,15 +2224,15 @@ var G = {
|
|
|
2224
2224
|
"donut-with-text",
|
|
2225
2225
|
"interactive"
|
|
2226
2226
|
]), Cr = /* @__PURE__ */ new Set(["donut-active"]), wr = /* @__PURE__ */ new Set(["interactive"]), Tr = /* @__PURE__ */ new Set(["donut-with-text"]), Er = Math.PI / 180, Dr = ({ data: e, variant: t = "donut", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
2227
|
-
let o =
|
|
2227
|
+
let o = k.useRef(null), s = ze(o), [c, l] = k.useState(void 0), u = [
|
|
2228
2228
|
1,
|
|
2229
2229
|
2,
|
|
2230
2230
|
3,
|
|
2231
2231
|
4,
|
|
2232
2232
|
5
|
|
2233
|
-
].map((e) => s(`--color-chart-${e}`) ??
|
|
2233
|
+
].map((e) => s(`--color-chart-${e}`) ?? Me[e - 1]), d = s("--color-bg-surface") ?? "#ffffff", f = s("--color-fg-default") ?? "#141414", p = xr[n], m = Sr.has(t), h = Cr.has(t), g = wr.has(t), _ = m ? p.outer * .6 : 0, v = Tr.has(t) && (r || i), y = c ?? (h || g ? 0 : void 0), b = (e) => {
|
|
2234
2234
|
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;
|
|
2235
|
-
return l && g ? /* @__PURE__ */
|
|
2235
|
+
return l && g ? /* @__PURE__ */ N("g", { children: [/* @__PURE__ */ M(Ut, {
|
|
2236
2236
|
cx: t,
|
|
2237
2237
|
cy: n,
|
|
2238
2238
|
innerRadius: r,
|
|
@@ -2240,7 +2240,7 @@ var G = {
|
|
|
2240
2240
|
startAngle: a,
|
|
2241
2241
|
endAngle: o,
|
|
2242
2242
|
fill: s
|
|
2243
|
-
}), /* @__PURE__ */
|
|
2243
|
+
}), /* @__PURE__ */ M(Ut, {
|
|
2244
2244
|
cx: t,
|
|
2245
2245
|
cy: n,
|
|
2246
2246
|
innerRadius: i + u + 3,
|
|
@@ -2248,7 +2248,7 @@ var G = {
|
|
|
2248
2248
|
startAngle: a,
|
|
2249
2249
|
endAngle: o,
|
|
2250
2250
|
fill: s
|
|
2251
|
-
})] }) : /* @__PURE__ */
|
|
2251
|
+
})] }) : /* @__PURE__ */ M(Ut, {
|
|
2252
2252
|
cx: t,
|
|
2253
2253
|
cy: n,
|
|
2254
2254
|
innerRadius: r,
|
|
@@ -2267,12 +2267,12 @@ var G = {
|
|
|
2267
2267
|
};
|
|
2268
2268
|
}, ee = (e) => {
|
|
2269
2269
|
let { value: t, fill: n } = e, { d: r, endX: i, endY: a, textAnchor: o } = x(e), s = i + (o === "start" ? 4 : -4);
|
|
2270
|
-
return /* @__PURE__ */
|
|
2270
|
+
return /* @__PURE__ */ N("g", { children: [/* @__PURE__ */ M("path", {
|
|
2271
2271
|
d: r,
|
|
2272
2272
|
fill: "none",
|
|
2273
2273
|
stroke: n,
|
|
2274
2274
|
strokeWidth: 1
|
|
2275
|
-
}), /* @__PURE__ */
|
|
2275
|
+
}), /* @__PURE__ */ M("text", {
|
|
2276
2276
|
x: s,
|
|
2277
2277
|
y: a,
|
|
2278
2278
|
textAnchor: o,
|
|
@@ -2282,9 +2282,9 @@ var G = {
|
|
|
2282
2282
|
fontFamily: "var(--font-sans)",
|
|
2283
2283
|
children: t
|
|
2284
2284
|
})] });
|
|
2285
|
-
},
|
|
2285
|
+
}, S = (e) => {
|
|
2286
2286
|
let { x: t, y: n, textAnchor: r, value: i } = e;
|
|
2287
|
-
return /* @__PURE__ */
|
|
2287
|
+
return /* @__PURE__ */ M("text", {
|
|
2288
2288
|
x: t,
|
|
2289
2289
|
y: n,
|
|
2290
2290
|
textAnchor: r,
|
|
@@ -2295,9 +2295,9 @@ var G = {
|
|
|
2295
2295
|
fontFamily: "var(--font-sans)",
|
|
2296
2296
|
children: i
|
|
2297
2297
|
});
|
|
2298
|
-
},
|
|
2298
|
+
}, C = (t) => {
|
|
2299
2299
|
let { cx: n, cy: r, midAngle: i, innerRadius: a, outerRadius: o, index: s } = t, c = (a + o) / 2;
|
|
2300
|
-
return /* @__PURE__ */
|
|
2300
|
+
return /* @__PURE__ */ M("text", {
|
|
2301
2301
|
x: n + c * Math.cos(-i * Er),
|
|
2302
2302
|
y: r + c * Math.sin(-i * Er),
|
|
2303
2303
|
textAnchor: "middle",
|
|
@@ -2311,15 +2311,15 @@ var G = {
|
|
|
2311
2311
|
};
|
|
2312
2312
|
if (t === "stacked") {
|
|
2313
2313
|
let t = (e) => c !== void 0 && c !== e ? .45 : 1;
|
|
2314
|
-
return /* @__PURE__ */
|
|
2314
|
+
return /* @__PURE__ */ M("div", {
|
|
2315
2315
|
ref: o,
|
|
2316
2316
|
className: [br.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2317
2317
|
style: { height: p.h },
|
|
2318
|
-
children: /* @__PURE__ */
|
|
2318
|
+
children: /* @__PURE__ */ M(Ht, {
|
|
2319
2319
|
width: "100%",
|
|
2320
2320
|
height: "100%",
|
|
2321
|
-
children: /* @__PURE__ */
|
|
2322
|
-
/* @__PURE__ */
|
|
2321
|
+
children: /* @__PURE__ */ N(Pt, { children: [
|
|
2322
|
+
/* @__PURE__ */ M(Nt, {
|
|
2323
2323
|
data: e,
|
|
2324
2324
|
dataKey: "value",
|
|
2325
2325
|
nameKey: "label",
|
|
@@ -2330,12 +2330,12 @@ var G = {
|
|
|
2330
2330
|
isAnimationActive: !1,
|
|
2331
2331
|
onMouseEnter: (e, t) => l(t),
|
|
2332
2332
|
onMouseLeave: () => l(void 0),
|
|
2333
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
2333
|
+
children: e.map((e, n) => /* @__PURE__ */ M(jt, {
|
|
2334
2334
|
fill: u[n % u.length],
|
|
2335
2335
|
fillOpacity: t(n)
|
|
2336
2336
|
}, n))
|
|
2337
2337
|
}),
|
|
2338
|
-
/* @__PURE__ */
|
|
2338
|
+
/* @__PURE__ */ M(Nt, {
|
|
2339
2339
|
data: e,
|
|
2340
2340
|
dataKey: "value",
|
|
2341
2341
|
nameKey: "label",
|
|
@@ -2346,27 +2346,27 @@ var G = {
|
|
|
2346
2346
|
isAnimationActive: !1,
|
|
2347
2347
|
onMouseEnter: (e, t) => l(t),
|
|
2348
2348
|
onMouseLeave: () => l(void 0),
|
|
2349
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
2349
|
+
children: e.map((e, n) => /* @__PURE__ */ M(jt, {
|
|
2350
2350
|
fill: u[n % u.length],
|
|
2351
2351
|
fillOpacity: t(n)
|
|
2352
2352
|
}, n))
|
|
2353
2353
|
}),
|
|
2354
|
-
/* @__PURE__ */
|
|
2355
|
-
content: /* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ M(Wt, {
|
|
2355
|
+
content: /* @__PURE__ */ M(le, {}),
|
|
2356
2356
|
wrapperStyle: { zIndex: 50 }
|
|
2357
2357
|
})
|
|
2358
2358
|
] })
|
|
2359
2359
|
})
|
|
2360
2360
|
});
|
|
2361
2361
|
}
|
|
2362
|
-
return /* @__PURE__ */
|
|
2362
|
+
return /* @__PURE__ */ N("div", {
|
|
2363
2363
|
ref: o,
|
|
2364
2364
|
className: [br.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2365
2365
|
style: { height: p.h },
|
|
2366
|
-
children: [/* @__PURE__ */
|
|
2366
|
+
children: [/* @__PURE__ */ M(Ht, {
|
|
2367
2367
|
width: "100%",
|
|
2368
2368
|
height: "100%",
|
|
2369
|
-
children: /* @__PURE__ */
|
|
2369
|
+
children: /* @__PURE__ */ N(Pt, { children: [/* @__PURE__ */ M(Nt, {
|
|
2370
2370
|
data: e,
|
|
2371
2371
|
dataKey: "value",
|
|
2372
2372
|
nameKey: "label",
|
|
@@ -2377,27 +2377,27 @@ var G = {
|
|
|
2377
2377
|
strokeWidth: t === "pie" ? 2 : 0,
|
|
2378
2378
|
isAnimationActive: !1,
|
|
2379
2379
|
shape: h || g ? b : void 0,
|
|
2380
|
-
label: t === "label" ? ee : t === "custom-label" ?
|
|
2380
|
+
label: t === "label" ? ee : t === "custom-label" ? S : t === "label-list" ? C : void 0,
|
|
2381
2381
|
labelLine: !1,
|
|
2382
2382
|
onMouseEnter: (e, t) => l(t),
|
|
2383
2383
|
onMouseLeave: () => l(void 0),
|
|
2384
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2385
|
-
}), /* @__PURE__ */
|
|
2386
|
-
content: /* @__PURE__ */
|
|
2384
|
+
children: e.map((e, t) => /* @__PURE__ */ M(jt, { fill: u[t % u.length] }, t))
|
|
2385
|
+
}), /* @__PURE__ */ M(Wt, {
|
|
2386
|
+
content: /* @__PURE__ */ M(le, {}),
|
|
2387
2387
|
wrapperStyle: { zIndex: 50 }
|
|
2388
2388
|
})] })
|
|
2389
|
-
}), v && /* @__PURE__ */
|
|
2389
|
+
}), v && /* @__PURE__ */ N("div", {
|
|
2390
2390
|
className: br.center,
|
|
2391
|
-
children: [r && /* @__PURE__ */
|
|
2391
|
+
children: [r && /* @__PURE__ */ M("span", {
|
|
2392
2392
|
className: br.center__value,
|
|
2393
2393
|
children: r
|
|
2394
|
-
}), i && /* @__PURE__ */
|
|
2394
|
+
}), i && /* @__PURE__ */ M("span", {
|
|
2395
2395
|
className: br.center__caption,
|
|
2396
2396
|
children: i
|
|
2397
2397
|
})]
|
|
2398
2398
|
})]
|
|
2399
2399
|
});
|
|
2400
|
-
},
|
|
2400
|
+
}, Y = {
|
|
2401
2401
|
root: "_root_16f5u_2",
|
|
2402
2402
|
trigger: "_trigger_16f5u_3",
|
|
2403
2403
|
panel: "_panel_16f5u_5",
|
|
@@ -2416,14 +2416,14 @@ var G = {
|
|
|
2416
2416
|
panel__body: "_panel__body_16f5u_77",
|
|
2417
2417
|
panel__actions: "_panel__actions_16f5u_78"
|
|
2418
2418
|
}, Or = ({ trigger: e, title: t, description: n, actions: r, placement: i = "bottom-start", children: a, className: o }) => {
|
|
2419
|
-
let [s, c] =
|
|
2420
|
-
return
|
|
2419
|
+
let [s, c] = k.useState(!1), [l, u] = k.useState(!1), d = k.useRef(null), f = k.useRef(null);
|
|
2420
|
+
return k.useEffect(() => {
|
|
2421
2421
|
s && u(!0);
|
|
2422
|
-
}, [s]),
|
|
2422
|
+
}, [s]), k.useEffect(() => {
|
|
2423
2423
|
if (s || !l) return;
|
|
2424
2424
|
let e = setTimeout(() => u(!1), 240);
|
|
2425
2425
|
return () => clearTimeout(e);
|
|
2426
|
-
}, [s, l]),
|
|
2426
|
+
}, [s, l]), k.useEffect(() => {
|
|
2427
2427
|
if (!s) return;
|
|
2428
2428
|
let e = (e) => {
|
|
2429
2429
|
d.current && !d.current.contains(e.target) && c(!1);
|
|
@@ -2433,42 +2433,42 @@ var G = {
|
|
|
2433
2433
|
return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
|
|
2434
2434
|
document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
|
|
2435
2435
|
};
|
|
2436
|
-
}, [s]),
|
|
2436
|
+
}, [s]), k.useEffect(() => {
|
|
2437
2437
|
!s && f.current && (f.current.focus(), f.current = null);
|
|
2438
|
-
}, [s]), /* @__PURE__ */
|
|
2439
|
-
className: [
|
|
2438
|
+
}, [s]), /* @__PURE__ */ N("div", {
|
|
2439
|
+
className: [Y.root, o ?? ""].filter(Boolean).join(" "),
|
|
2440
2440
|
ref: d,
|
|
2441
|
-
children: [/* @__PURE__ */
|
|
2442
|
-
className:
|
|
2441
|
+
children: [/* @__PURE__ */ M("span", {
|
|
2442
|
+
className: Y.trigger,
|
|
2443
2443
|
onClick: () => {
|
|
2444
2444
|
s || (f.current = document.activeElement), c((e) => !e);
|
|
2445
2445
|
},
|
|
2446
2446
|
children: e
|
|
2447
|
-
}), l && /* @__PURE__ */
|
|
2447
|
+
}), l && /* @__PURE__ */ N("div", {
|
|
2448
2448
|
className: [
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
s ?
|
|
2449
|
+
Y.panel,
|
|
2450
|
+
Y[`panel--${i}`],
|
|
2451
|
+
s ? Y["panel--entering"] : Y["panel--exiting"]
|
|
2452
2452
|
].filter(Boolean).join(" "),
|
|
2453
2453
|
role: "dialog",
|
|
2454
2454
|
onAnimationEnd: (e) => {
|
|
2455
2455
|
e.target === e.currentTarget && !s && u(!1);
|
|
2456
2456
|
},
|
|
2457
2457
|
children: [
|
|
2458
|
-
t && /* @__PURE__ */
|
|
2459
|
-
className:
|
|
2458
|
+
t && /* @__PURE__ */ M("div", {
|
|
2459
|
+
className: Y.panel__title,
|
|
2460
2460
|
children: t
|
|
2461
2461
|
}),
|
|
2462
|
-
n && /* @__PURE__ */
|
|
2463
|
-
className:
|
|
2462
|
+
n && /* @__PURE__ */ M("div", {
|
|
2463
|
+
className: Y.panel__description,
|
|
2464
2464
|
children: n
|
|
2465
2465
|
}),
|
|
2466
|
-
a && /* @__PURE__ */
|
|
2467
|
-
className:
|
|
2466
|
+
a && /* @__PURE__ */ M("div", {
|
|
2467
|
+
className: Y.panel__body,
|
|
2468
2468
|
children: a
|
|
2469
2469
|
}),
|
|
2470
|
-
r && /* @__PURE__ */
|
|
2471
|
-
className:
|
|
2470
|
+
r && /* @__PURE__ */ M("div", {
|
|
2471
|
+
className: Y.panel__actions,
|
|
2472
2472
|
children: r
|
|
2473
2473
|
})
|
|
2474
2474
|
]
|
|
@@ -2504,13 +2504,13 @@ var G = {
|
|
|
2504
2504
|
.4,
|
|
2505
2505
|
.2
|
|
2506
2506
|
], Rr = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
|
|
2507
|
-
let a =
|
|
2508
|
-
|
|
2507
|
+
let a = k.useRef(null), o = ze(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 = Pr.has(t), _ = Mr.has(t), v = Nr.has(t), y = Fr(t), [b, x] = k.useState(0);
|
|
2508
|
+
k.useEffect(() => {
|
|
2509
2509
|
if (!y || !a.current) return;
|
|
2510
2510
|
let e = a.current, t = new ResizeObserver(([e]) => x(e.contentRect.width));
|
|
2511
2511
|
return t.observe(e), () => t.disconnect();
|
|
2512
2512
|
}, [y]);
|
|
2513
|
-
let ee =
|
|
2513
|
+
let ee = k.useMemo(() => {
|
|
2514
2514
|
if (!g) return e;
|
|
2515
2515
|
let t = Math.max(1, ...e.flatMap((e) => [e.value, e.value2 ?? 0]));
|
|
2516
2516
|
return e.map((e) => {
|
|
@@ -2522,9 +2522,9 @@ var G = {
|
|
|
2522
2522
|
...n
|
|
2523
2523
|
};
|
|
2524
2524
|
});
|
|
2525
|
-
}, [e, g]),
|
|
2525
|
+
}, [e, g]), S = (t) => {
|
|
2526
2526
|
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];
|
|
2527
|
-
if (!c) return /* @__PURE__ */
|
|
2527
|
+
if (!c) return /* @__PURE__ */ M("g", {});
|
|
2528
2528
|
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;
|
|
2529
2529
|
if (p && d < 0) h = r - 4 - 6, m = h - 16;
|
|
2530
2530
|
else if (p) m = r + 4 + 10, h = m + 18;
|
|
@@ -2533,7 +2533,7 @@ var G = {
|
|
|
2533
2533
|
m = e - 8, h = e + 12;
|
|
2534
2534
|
}
|
|
2535
2535
|
let g = p ? n : n + l / Math.sqrt(l * l + d * d || 1) * 4;
|
|
2536
|
-
return /* @__PURE__ */
|
|
2536
|
+
return /* @__PURE__ */ N("g", { children: [/* @__PURE__ */ M("text", {
|
|
2537
2537
|
x: g,
|
|
2538
2538
|
y: m,
|
|
2539
2539
|
textAnchor: s,
|
|
@@ -2542,7 +2542,7 @@ var G = {
|
|
|
2542
2542
|
fontWeight: 600,
|
|
2543
2543
|
fontFamily: "var(--font-sans)",
|
|
2544
2544
|
children: f
|
|
2545
|
-
}), /* @__PURE__ */
|
|
2545
|
+
}), /* @__PURE__ */ M("text", {
|
|
2546
2546
|
x: g,
|
|
2547
2547
|
y: h,
|
|
2548
2548
|
textAnchor: s,
|
|
@@ -2551,56 +2551,56 @@ var G = {
|
|
|
2551
2551
|
fontFamily: "var(--font-sans)",
|
|
2552
2552
|
children: c.label
|
|
2553
2553
|
})] });
|
|
2554
|
-
},
|
|
2555
|
-
return /* @__PURE__ */
|
|
2554
|
+
}, C = Ar[n], te = (b > 0 ? Math.min(b, C) / 2 - 5 : 0) * .7;
|
|
2555
|
+
return /* @__PURE__ */ N("div", {
|
|
2556
2556
|
ref: a,
|
|
2557
2557
|
className: [kr.chart, i ?? ""].filter(Boolean).join(" "),
|
|
2558
|
-
children: [y && b > 0 && /* @__PURE__ */
|
|
2558
|
+
children: [y && b > 0 && /* @__PURE__ */ M("svg", {
|
|
2559
2559
|
className: kr.circleFillSvg,
|
|
2560
2560
|
width: b,
|
|
2561
|
-
height:
|
|
2562
|
-
children: Lr.map((e) => /* @__PURE__ */
|
|
2561
|
+
height: C,
|
|
2562
|
+
children: Lr.map((e) => /* @__PURE__ */ M("circle", {
|
|
2563
2563
|
cx: b / 2,
|
|
2564
|
-
cy:
|
|
2565
|
-
r:
|
|
2564
|
+
cy: C / 2,
|
|
2565
|
+
r: te * e,
|
|
2566
2566
|
fill: c,
|
|
2567
2567
|
fillOpacity: .1
|
|
2568
2568
|
}, e))
|
|
2569
|
-
}), /* @__PURE__ */
|
|
2569
|
+
}), /* @__PURE__ */ M(Ht, {
|
|
2570
2570
|
width: "100%",
|
|
2571
|
-
height:
|
|
2572
|
-
children: /* @__PURE__ */
|
|
2571
|
+
height: C,
|
|
2572
|
+
children: /* @__PURE__ */ N(zt, {
|
|
2573
2573
|
data: ee,
|
|
2574
2574
|
outerRadius: "70%",
|
|
2575
2575
|
children: [
|
|
2576
|
-
!g && !v && /* @__PURE__ */
|
|
2576
|
+
!g && !v && /* @__PURE__ */ M(It, {
|
|
2577
2577
|
gridType: jr.has(t) ? "circle" : "polygon",
|
|
2578
2578
|
radialLines: t !== "circle-grid-no-lines" && !_,
|
|
2579
2579
|
stroke: l
|
|
2580
2580
|
}),
|
|
2581
|
-
/* @__PURE__ */
|
|
2581
|
+
/* @__PURE__ */ M(Ft, {
|
|
2582
2582
|
dataKey: "label",
|
|
2583
2583
|
axisLine: !1,
|
|
2584
|
-
tick: t === "custom-label" ?
|
|
2584
|
+
tick: t === "custom-label" ? S : {
|
|
2585
2585
|
fill: u,
|
|
2586
2586
|
fontSize: 12,
|
|
2587
2587
|
fontFamily: "var(--font-sans)"
|
|
2588
2588
|
}
|
|
2589
2589
|
}),
|
|
2590
|
-
/* @__PURE__ */
|
|
2590
|
+
/* @__PURE__ */ M(Lt, {
|
|
2591
2591
|
tick: !1,
|
|
2592
2592
|
axisLine: !1,
|
|
2593
2593
|
tickCount: _ ? 2 : void 0
|
|
2594
2594
|
}),
|
|
2595
|
-
/* @__PURE__ */
|
|
2596
|
-
content: /* @__PURE__ */
|
|
2595
|
+
/* @__PURE__ */ M(Wt, {
|
|
2596
|
+
content: /* @__PURE__ */ M(le, {}),
|
|
2597
2597
|
wrapperStyle: { zIndex: 50 }
|
|
2598
2598
|
}),
|
|
2599
|
-
d && /* @__PURE__ */
|
|
2599
|
+
d && /* @__PURE__ */ M(Mt, { wrapperStyle: {
|
|
2600
2600
|
fontSize: 12,
|
|
2601
2601
|
fontFamily: "var(--font-sans)"
|
|
2602
2602
|
} }),
|
|
2603
|
-
g && Lr.map((e, t) => /* @__PURE__ */
|
|
2603
|
+
g && Lr.map((e, t) => /* @__PURE__ */ M(Rt, {
|
|
2604
2604
|
dataKey: `ring${t}`,
|
|
2605
2605
|
stroke: "none",
|
|
2606
2606
|
fill: c,
|
|
@@ -2608,7 +2608,7 @@ var G = {
|
|
|
2608
2608
|
isAnimationActive: !1,
|
|
2609
2609
|
legendType: "none"
|
|
2610
2610
|
}, `ring${t}`)),
|
|
2611
|
-
/* @__PURE__ */
|
|
2611
|
+
/* @__PURE__ */ M(Rt, {
|
|
2612
2612
|
name: d ? r[0] ?? "Value" : void 0,
|
|
2613
2613
|
dataKey: "value",
|
|
2614
2614
|
stroke: Ir.has(t) ? "none" : c,
|
|
@@ -2622,7 +2622,7 @@ var G = {
|
|
|
2622
2622
|
} : !1,
|
|
2623
2623
|
isAnimationActive: !1
|
|
2624
2624
|
}),
|
|
2625
|
-
p && /* @__PURE__ */
|
|
2625
|
+
p && /* @__PURE__ */ M(Rt, {
|
|
2626
2626
|
name: d ? r[1] ?? "Value 2" : void 0,
|
|
2627
2627
|
dataKey: "value2",
|
|
2628
2628
|
stroke: f ? s : "none",
|
|
@@ -2640,50 +2640,50 @@ var G = {
|
|
|
2640
2640
|
})
|
|
2641
2641
|
})]
|
|
2642
2642
|
});
|
|
2643
|
-
},
|
|
2643
|
+
}, zr = {
|
|
2644
2644
|
chart: "_chart_1ogmh_2",
|
|
2645
2645
|
gridSvg: "_gridSvg_1ogmh_19",
|
|
2646
2646
|
gaugeSvg: "_gaugeSvg_1ogmh_31",
|
|
2647
2647
|
center: "_center_1ogmh_36",
|
|
2648
2648
|
center__value: "_center__value_1ogmh_45",
|
|
2649
2649
|
center__caption: "_center__caption_1ogmh_46"
|
|
2650
|
-
},
|
|
2650
|
+
}, Br = {
|
|
2651
2651
|
sm: 180,
|
|
2652
2652
|
md: 220,
|
|
2653
2653
|
lg: 280,
|
|
2654
2654
|
xl: 340
|
|
2655
|
-
},
|
|
2655
|
+
}, Vr = Math.PI / 180, Hr = (e) => Math.round(e * 1e3) / 1e3, Ur = {
|
|
2656
2656
|
multi: ["30%", "100%"],
|
|
2657
2657
|
grid: ["30%", "100%"],
|
|
2658
2658
|
"stacked-label": ["30%", "100%"],
|
|
2659
2659
|
text: ["76%", "100%"]
|
|
2660
|
-
},
|
|
2660
|
+
}, Wr = ({ value: e, max: t, color: n, track: r, centerValue: i, centerCaption: a, labelColor: o, captionColor: s }) => {
|
|
2661
2661
|
let c = Math.round(Math.min(e, t) / t * 40);
|
|
2662
|
-
return /* @__PURE__ */
|
|
2662
|
+
return /* @__PURE__ */ N("svg", {
|
|
2663
2663
|
viewBox: "0 0 200 120",
|
|
2664
|
-
className:
|
|
2664
|
+
className: zr.gaugeSvg,
|
|
2665
2665
|
children: [Array.from({ length: 40 }).map((e, t) => {
|
|
2666
2666
|
let i = 180 + t / 39 * 180;
|
|
2667
|
-
return /* @__PURE__ */
|
|
2668
|
-
x1:
|
|
2669
|
-
y1:
|
|
2670
|
-
x2:
|
|
2671
|
-
y2:
|
|
2667
|
+
return /* @__PURE__ */ M("line", {
|
|
2668
|
+
x1: Hr(100 + 78 * Math.cos(i * Vr)),
|
|
2669
|
+
y1: Hr(100 + 78 * Math.sin(i * Vr)),
|
|
2670
|
+
x2: Hr(100 + 92 * Math.cos(i * Vr)),
|
|
2671
|
+
y2: Hr(100 + 92 * Math.sin(i * Vr)),
|
|
2672
2672
|
stroke: t < c ? n : r,
|
|
2673
2673
|
strokeWidth: 2.5,
|
|
2674
2674
|
strokeLinecap: "round"
|
|
2675
2675
|
}, t);
|
|
2676
|
-
}), (i || a) && /* @__PURE__ */
|
|
2676
|
+
}), (i || a) && /* @__PURE__ */ N("g", {
|
|
2677
2677
|
textAnchor: "middle",
|
|
2678
2678
|
fontFamily: "var(--font-sans)",
|
|
2679
|
-
children: [i && /* @__PURE__ */
|
|
2679
|
+
children: [i && /* @__PURE__ */ M("text", {
|
|
2680
2680
|
x: 100,
|
|
2681
2681
|
y: 92,
|
|
2682
2682
|
fontSize: 22,
|
|
2683
2683
|
fontWeight: 500,
|
|
2684
2684
|
fill: o,
|
|
2685
2685
|
children: i
|
|
2686
|
-
}), a && /* @__PURE__ */
|
|
2686
|
+
}), a && /* @__PURE__ */ M("text", {
|
|
2687
2687
|
x: 100,
|
|
2688
2688
|
y: 112,
|
|
2689
2689
|
fontSize: 12,
|
|
@@ -2692,10 +2692,10 @@ var G = {
|
|
|
2692
2692
|
})]
|
|
2693
2693
|
})]
|
|
2694
2694
|
});
|
|
2695
|
-
},
|
|
2695
|
+
}, Gr = ({ rings: e, spokes: t, color: n }) => /* @__PURE__ */ N("svg", {
|
|
2696
2696
|
viewBox: "0 0 200 200",
|
|
2697
|
-
className:
|
|
2698
|
-
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */
|
|
2697
|
+
className: zr.gridSvg,
|
|
2698
|
+
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */ M("circle", {
|
|
2699
2699
|
cx: 100,
|
|
2700
2700
|
cy: 100,
|
|
2701
2701
|
r: (r + 1) / e * 96,
|
|
@@ -2704,16 +2704,16 @@ var G = {
|
|
|
2704
2704
|
strokeWidth: 1
|
|
2705
2705
|
}, r)), Array.from({ length: t }).map((e, r) => {
|
|
2706
2706
|
let i = r / t * 360, a = 99.5 * 1.1;
|
|
2707
|
-
return /* @__PURE__ */
|
|
2707
|
+
return /* @__PURE__ */ M("line", {
|
|
2708
2708
|
x1: 100,
|
|
2709
2709
|
y1: 100,
|
|
2710
|
-
x2:
|
|
2711
|
-
y2:
|
|
2710
|
+
x2: Hr(100 + a * Math.cos(i * Vr)),
|
|
2711
|
+
y2: Hr(100 + a * Math.sin(i * Vr)),
|
|
2712
2712
|
stroke: n,
|
|
2713
2713
|
strokeWidth: 1
|
|
2714
2714
|
}, r);
|
|
2715
2715
|
})]
|
|
2716
|
-
}),
|
|
2716
|
+
}), Kr = ({ data: e, palette: t, track: n, centerValue: r, centerCaption: i, labelColor: a, captionColor: o }) => {
|
|
2717
2717
|
let s = e[0]?.max ?? e.reduce((e, t) => e + t.value, 0), c = 210, l = e.map((e, n) => {
|
|
2718
2718
|
let r = s > 0 ? e.value / s * 240 : 0, i = c, a = c - r;
|
|
2719
2719
|
return c = a, {
|
|
@@ -2722,11 +2722,11 @@ var G = {
|
|
|
2722
2722
|
fill: t[n % t.length]
|
|
2723
2723
|
};
|
|
2724
2724
|
});
|
|
2725
|
-
return /* @__PURE__ */
|
|
2725
|
+
return /* @__PURE__ */ N("svg", {
|
|
2726
2726
|
viewBox: "0 0 200 160",
|
|
2727
|
-
className:
|
|
2727
|
+
className: zr.gaugeSvg,
|
|
2728
2728
|
children: [
|
|
2729
|
-
l.map((e, t) => /* @__PURE__ */
|
|
2729
|
+
l.map((e, t) => /* @__PURE__ */ M(Ut, {
|
|
2730
2730
|
cx: 100,
|
|
2731
2731
|
cy: 100,
|
|
2732
2732
|
innerRadius: 64,
|
|
@@ -2736,7 +2736,7 @@ var G = {
|
|
|
2736
2736
|
fill: e.fill,
|
|
2737
2737
|
cornerRadius: 4
|
|
2738
2738
|
}, t)),
|
|
2739
|
-
c > -29.5 && /* @__PURE__ */
|
|
2739
|
+
c > -29.5 && /* @__PURE__ */ M(Ut, {
|
|
2740
2740
|
cx: 100,
|
|
2741
2741
|
cy: 100,
|
|
2742
2742
|
innerRadius: 64,
|
|
@@ -2746,17 +2746,17 @@ var G = {
|
|
|
2746
2746
|
fill: n,
|
|
2747
2747
|
cornerRadius: 4
|
|
2748
2748
|
}),
|
|
2749
|
-
(r || i) && /* @__PURE__ */
|
|
2749
|
+
(r || i) && /* @__PURE__ */ N("g", {
|
|
2750
2750
|
textAnchor: "middle",
|
|
2751
2751
|
fontFamily: "var(--font-sans)",
|
|
2752
|
-
children: [r && /* @__PURE__ */
|
|
2752
|
+
children: [r && /* @__PURE__ */ M("text", {
|
|
2753
2753
|
x: 100,
|
|
2754
2754
|
y: 92,
|
|
2755
2755
|
fontSize: 22,
|
|
2756
2756
|
fontWeight: 500,
|
|
2757
2757
|
fill: a,
|
|
2758
2758
|
children: r
|
|
2759
|
-
}), i && /* @__PURE__ */
|
|
2759
|
+
}), i && /* @__PURE__ */ M("text", {
|
|
2760
2760
|
x: 100,
|
|
2761
2761
|
y: 112,
|
|
2762
2762
|
fontSize: 12,
|
|
@@ -2766,21 +2766,21 @@ var G = {
|
|
|
2766
2766
|
})
|
|
2767
2767
|
]
|
|
2768
2768
|
});
|
|
2769
|
-
},
|
|
2770
|
-
let o =
|
|
2769
|
+
}, qr = ({ data: e, variant: t = "multi", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
2770
|
+
let o = k.useRef(null), s = ze(o), c = [
|
|
2771
2771
|
1,
|
|
2772
2772
|
2,
|
|
2773
2773
|
3,
|
|
2774
2774
|
4,
|
|
2775
2775
|
5
|
|
2776
|
-
].map((e) => s(`--color-chart-${e}`) ??
|
|
2776
|
+
].map((e) => s(`--color-chart-${e}`) ?? Me[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 = Br[n];
|
|
2777
2777
|
if (t === "gauge-tick") {
|
|
2778
2778
|
let t = e[0];
|
|
2779
|
-
return /* @__PURE__ */
|
|
2779
|
+
return /* @__PURE__ */ M("div", {
|
|
2780
2780
|
ref: o,
|
|
2781
|
-
className: [
|
|
2781
|
+
className: [zr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2782
2782
|
style: { height: p },
|
|
2783
|
-
children: /* @__PURE__ */
|
|
2783
|
+
children: /* @__PURE__ */ M(Wr, {
|
|
2784
2784
|
value: t?.value ?? 0,
|
|
2785
2785
|
max: t?.max ?? 100,
|
|
2786
2786
|
color: c[0],
|
|
@@ -2792,11 +2792,11 @@ var G = {
|
|
|
2792
2792
|
})
|
|
2793
2793
|
});
|
|
2794
2794
|
}
|
|
2795
|
-
if (t === "shape" || t === "stacked" || t === "stacked-3-layers") return /* @__PURE__ */
|
|
2795
|
+
if (t === "shape" || t === "stacked" || t === "stacked-3-layers") return /* @__PURE__ */ M("div", {
|
|
2796
2796
|
ref: o,
|
|
2797
|
-
className: [
|
|
2797
|
+
className: [zr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2798
2798
|
style: { height: p },
|
|
2799
|
-
children: /* @__PURE__ */
|
|
2799
|
+
children: /* @__PURE__ */ M(Kr, {
|
|
2800
2800
|
data: e,
|
|
2801
2801
|
palette: c,
|
|
2802
2802
|
track: l,
|
|
@@ -2806,54 +2806,54 @@ var G = {
|
|
|
2806
2806
|
captionColor: f
|
|
2807
2807
|
})
|
|
2808
2808
|
});
|
|
2809
|
-
let [m, h] =
|
|
2810
|
-
return /* @__PURE__ */
|
|
2809
|
+
let [m, h] = Ur[t] ?? ["30%", "100%"], g = (t === "stacked-label" || t === "text") && (r || i);
|
|
2810
|
+
return /* @__PURE__ */ N("div", {
|
|
2811
2811
|
ref: o,
|
|
2812
|
-
className: [
|
|
2812
|
+
className: [zr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2813
2813
|
style: { height: p },
|
|
2814
2814
|
children: [
|
|
2815
|
-
t === "grid" && /* @__PURE__ */
|
|
2815
|
+
t === "grid" && /* @__PURE__ */ M(Gr, {
|
|
2816
2816
|
rings: 8,
|
|
2817
2817
|
spokes: 12,
|
|
2818
2818
|
color: u
|
|
2819
2819
|
}),
|
|
2820
|
-
/* @__PURE__ */
|
|
2820
|
+
/* @__PURE__ */ M(Ht, {
|
|
2821
2821
|
width: "100%",
|
|
2822
2822
|
height: "100%",
|
|
2823
|
-
children: /* @__PURE__ */
|
|
2823
|
+
children: /* @__PURE__ */ N(Vt, {
|
|
2824
2824
|
data: e,
|
|
2825
2825
|
innerRadius: m,
|
|
2826
2826
|
outerRadius: h,
|
|
2827
2827
|
startAngle: 90,
|
|
2828
2828
|
endAngle: -270,
|
|
2829
2829
|
barCategoryGap: "12%",
|
|
2830
|
-
children: [/* @__PURE__ */
|
|
2830
|
+
children: [/* @__PURE__ */ M(Ft, {
|
|
2831
2831
|
type: "number",
|
|
2832
2832
|
domain: [0, e[0]?.max ?? 100],
|
|
2833
2833
|
tick: !1,
|
|
2834
2834
|
axisLine: !1
|
|
2835
|
-
}), /* @__PURE__ */
|
|
2835
|
+
}), /* @__PURE__ */ M(Bt, {
|
|
2836
2836
|
dataKey: "value",
|
|
2837
2837
|
background: t !== "grid" && { fill: l },
|
|
2838
2838
|
cornerRadius: 8,
|
|
2839
2839
|
isAnimationActive: !1,
|
|
2840
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2840
|
+
children: e.map((e, t) => /* @__PURE__ */ M(jt, { fill: c[t % c.length] }, t))
|
|
2841
2841
|
})]
|
|
2842
2842
|
})
|
|
2843
2843
|
}),
|
|
2844
|
-
g && /* @__PURE__ */
|
|
2845
|
-
className:
|
|
2846
|
-
children: [r && /* @__PURE__ */
|
|
2847
|
-
className:
|
|
2844
|
+
g && /* @__PURE__ */ N("div", {
|
|
2845
|
+
className: zr.center,
|
|
2846
|
+
children: [r && /* @__PURE__ */ M("span", {
|
|
2847
|
+
className: zr.center__value,
|
|
2848
2848
|
children: r
|
|
2849
|
-
}), i && /* @__PURE__ */
|
|
2850
|
-
className:
|
|
2849
|
+
}), i && /* @__PURE__ */ M("span", {
|
|
2850
|
+
className: zr.center__caption,
|
|
2851
2851
|
children: i
|
|
2852
2852
|
})]
|
|
2853
2853
|
})
|
|
2854
2854
|
]
|
|
2855
2855
|
});
|
|
2856
|
-
},
|
|
2856
|
+
}, Jr = {
|
|
2857
2857
|
wrapper: "_wrapper_5ueza_3",
|
|
2858
2858
|
"wrapper--disabled": "_wrapper--disabled_5ueza_11",
|
|
2859
2859
|
input: "_input_5ueza_13",
|
|
@@ -2863,45 +2863,45 @@ var G = {
|
|
|
2863
2863
|
text__label: "_text__label_5ueza_80",
|
|
2864
2864
|
text__description: "_text__description_5ueza_81",
|
|
2865
2865
|
"wrapper--withDescription": "_wrapper--withDescription_5ueza_85"
|
|
2866
|
-
},
|
|
2867
|
-
let s =
|
|
2868
|
-
return /* @__PURE__ */
|
|
2866
|
+
}, Yr = k.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, ...a }, o) => {
|
|
2867
|
+
let s = k.useId(), c = r ?? s;
|
|
2868
|
+
return /* @__PURE__ */ N("label", {
|
|
2869
2869
|
htmlFor: c,
|
|
2870
2870
|
className: [
|
|
2871
|
-
|
|
2872
|
-
t ?
|
|
2873
|
-
n ?
|
|
2871
|
+
Jr.wrapper,
|
|
2872
|
+
t ? Jr["wrapper--withDescription"] : "",
|
|
2873
|
+
n ? Jr["wrapper--disabled"] : "",
|
|
2874
2874
|
i ?? ""
|
|
2875
2875
|
].filter(Boolean).join(" "),
|
|
2876
2876
|
children: [
|
|
2877
|
-
/* @__PURE__ */
|
|
2877
|
+
/* @__PURE__ */ M("input", {
|
|
2878
2878
|
ref: o,
|
|
2879
2879
|
id: c,
|
|
2880
2880
|
type: "radio",
|
|
2881
2881
|
disabled: n,
|
|
2882
|
-
className:
|
|
2882
|
+
className: Jr.input,
|
|
2883
2883
|
...a
|
|
2884
2884
|
}),
|
|
2885
|
-
/* @__PURE__ */
|
|
2886
|
-
className:
|
|
2885
|
+
/* @__PURE__ */ M("span", {
|
|
2886
|
+
className: Jr.circle,
|
|
2887
2887
|
"aria-hidden": "true",
|
|
2888
|
-
children: /* @__PURE__ */
|
|
2888
|
+
children: /* @__PURE__ */ M("span", { className: Jr.dot })
|
|
2889
2889
|
}),
|
|
2890
|
-
(e || t) && /* @__PURE__ */
|
|
2891
|
-
className:
|
|
2892
|
-
children: [e && /* @__PURE__ */
|
|
2893
|
-
className:
|
|
2890
|
+
(e || t) && /* @__PURE__ */ N("span", {
|
|
2891
|
+
className: Jr.text,
|
|
2892
|
+
children: [e && /* @__PURE__ */ M("span", {
|
|
2893
|
+
className: Jr.text__label,
|
|
2894
2894
|
children: e
|
|
2895
|
-
}), t && /* @__PURE__ */
|
|
2896
|
-
className:
|
|
2895
|
+
}), t && /* @__PURE__ */ M("span", {
|
|
2896
|
+
className: Jr.text__description,
|
|
2897
2897
|
children: t
|
|
2898
2898
|
})]
|
|
2899
2899
|
})
|
|
2900
2900
|
]
|
|
2901
2901
|
});
|
|
2902
2902
|
});
|
|
2903
|
-
|
|
2904
|
-
var
|
|
2903
|
+
Yr.displayName = "Radio";
|
|
2904
|
+
var Xr = {
|
|
2905
2905
|
footer: "_footer_x13xl_4",
|
|
2906
2906
|
"footer--collapsed": "_footer--collapsed_x13xl_12",
|
|
2907
2907
|
footer__text: "_footer__text_x13xl_14",
|
|
@@ -2909,136 +2909,528 @@ var Y = {
|
|
|
2909
2909
|
footer__subtitle: "_footer__subtitle_x13xl_16",
|
|
2910
2910
|
footer__menu: "_footer__menu_x13xl_17",
|
|
2911
2911
|
footer__action: "_footer__action_x13xl_29"
|
|
2912
|
-
},
|
|
2913
|
-
let l = /* @__PURE__ */
|
|
2912
|
+
}, Zr = ({ type: e = "user", title: t, subtitle: n, avatarSrc: r, avatarInitials: i, collapsed: a, onMenu: o, onSignOut: s }) => {
|
|
2913
|
+
let l = /* @__PURE__ */ M(c, {
|
|
2914
2914
|
size: a ? "sm" : "md",
|
|
2915
2915
|
src: r,
|
|
2916
2916
|
initials: i,
|
|
2917
2917
|
alt: t ?? "User"
|
|
2918
2918
|
});
|
|
2919
|
-
return a ? /* @__PURE__ */
|
|
2920
|
-
className: [
|
|
2919
|
+
return a ? /* @__PURE__ */ M("div", {
|
|
2920
|
+
className: [Xr.footer, Xr["footer--collapsed"]].join(" "),
|
|
2921
2921
|
children: l
|
|
2922
|
-
}) : e === "actions" ? /* @__PURE__ */
|
|
2923
|
-
className:
|
|
2924
|
-
children: /* @__PURE__ */
|
|
2922
|
+
}) : e === "actions" ? /* @__PURE__ */ M("div", {
|
|
2923
|
+
className: Xr.footer,
|
|
2924
|
+
children: /* @__PURE__ */ N("button", {
|
|
2925
2925
|
type: "button",
|
|
2926
2926
|
"data-hover-item": "",
|
|
2927
|
-
className:
|
|
2927
|
+
className: Xr.footer__action,
|
|
2928
2928
|
onClick: s,
|
|
2929
|
-
children: [/* @__PURE__ */
|
|
2929
|
+
children: [/* @__PURE__ */ M(St, {
|
|
2930
2930
|
size: 16,
|
|
2931
|
-
strokeWidth:
|
|
2931
|
+
strokeWidth: O(16)
|
|
2932
2932
|
}), " Sign out"]
|
|
2933
2933
|
})
|
|
2934
|
-
}) : /* @__PURE__ */
|
|
2935
|
-
className:
|
|
2934
|
+
}) : /* @__PURE__ */ N("div", {
|
|
2935
|
+
className: Xr.footer,
|
|
2936
2936
|
children: [
|
|
2937
2937
|
l,
|
|
2938
|
-
/* @__PURE__ */
|
|
2939
|
-
className:
|
|
2940
|
-
children: [t && /* @__PURE__ */
|
|
2941
|
-
className:
|
|
2938
|
+
/* @__PURE__ */ N("span", {
|
|
2939
|
+
className: Xr.footer__text,
|
|
2940
|
+
children: [t && /* @__PURE__ */ M("span", {
|
|
2941
|
+
className: Xr.footer__title,
|
|
2942
2942
|
children: t
|
|
2943
|
-
}), n && /* @__PURE__ */
|
|
2944
|
-
className:
|
|
2943
|
+
}), n && /* @__PURE__ */ M("span", {
|
|
2944
|
+
className: Xr.footer__subtitle,
|
|
2945
2945
|
children: n
|
|
2946
2946
|
})]
|
|
2947
2947
|
}),
|
|
2948
|
-
e === "user-menu" && /* @__PURE__ */
|
|
2948
|
+
e === "user-menu" && /* @__PURE__ */ M("button", {
|
|
2949
2949
|
type: "button",
|
|
2950
2950
|
"data-hover-item": "",
|
|
2951
|
-
className:
|
|
2951
|
+
className: Xr.footer__menu,
|
|
2952
2952
|
onClick: o,
|
|
2953
2953
|
"aria-label": "Open menu",
|
|
2954
|
-
children: /* @__PURE__ */
|
|
2954
|
+
children: /* @__PURE__ */ M(ot, {
|
|
2955
2955
|
size: 16,
|
|
2956
|
-
strokeWidth:
|
|
2956
|
+
strokeWidth: O(16)
|
|
2957
2957
|
})
|
|
2958
2958
|
})
|
|
2959
2959
|
]
|
|
2960
2960
|
});
|
|
2961
|
-
},
|
|
2961
|
+
}, Qr = {
|
|
2962
2962
|
search: "_search_4878u_2",
|
|
2963
2963
|
search__icon: "_search__icon_4878u_25",
|
|
2964
2964
|
search__input: "_search__input_4878u_26",
|
|
2965
2965
|
search__placeholder: "_search__placeholder_4878u_38",
|
|
2966
2966
|
search__kbd: "_search__kbd_4878u_39",
|
|
2967
2967
|
collapsed: "_collapsed_4878u_53"
|
|
2968
|
-
},
|
|
2968
|
+
}, $r = ({ type: e = "field", placeholder: t = "Search…", collapsed: n, value: r, onChange: i, onClick: a }) => n ? /* @__PURE__ */ M("button", {
|
|
2969
2969
|
type: "button",
|
|
2970
|
-
className:
|
|
2970
|
+
className: Qr.collapsed,
|
|
2971
2971
|
onClick: a,
|
|
2972
2972
|
"aria-label": "Search",
|
|
2973
|
-
children: /* @__PURE__ */
|
|
2973
|
+
children: /* @__PURE__ */ M(ft, {
|
|
2974
2974
|
size: 18,
|
|
2975
|
-
strokeWidth:
|
|
2975
|
+
strokeWidth: O(18)
|
|
2976
2976
|
})
|
|
2977
|
-
}) : e === "command" ? /* @__PURE__ */
|
|
2977
|
+
}) : e === "command" ? /* @__PURE__ */ N("button", {
|
|
2978
2978
|
type: "button",
|
|
2979
|
-
className:
|
|
2979
|
+
className: Qr.search,
|
|
2980
2980
|
onClick: a,
|
|
2981
2981
|
children: [
|
|
2982
|
-
/* @__PURE__ */
|
|
2982
|
+
/* @__PURE__ */ M(ft, {
|
|
2983
2983
|
size: 16,
|
|
2984
|
-
strokeWidth:
|
|
2985
|
-
className:
|
|
2984
|
+
strokeWidth: O(16),
|
|
2985
|
+
className: Qr.search__icon
|
|
2986
2986
|
}),
|
|
2987
|
-
/* @__PURE__ */
|
|
2988
|
-
className:
|
|
2987
|
+
/* @__PURE__ */ M("span", {
|
|
2988
|
+
className: Qr.search__placeholder,
|
|
2989
2989
|
children: t
|
|
2990
2990
|
}),
|
|
2991
|
-
/* @__PURE__ */
|
|
2992
|
-
className:
|
|
2991
|
+
/* @__PURE__ */ M("kbd", {
|
|
2992
|
+
className: Qr.search__kbd,
|
|
2993
2993
|
children: "⌘K"
|
|
2994
2994
|
})
|
|
2995
2995
|
]
|
|
2996
|
-
}) : /* @__PURE__ */
|
|
2997
|
-
className:
|
|
2998
|
-
children: [/* @__PURE__ */
|
|
2996
|
+
}) : /* @__PURE__ */ N("div", {
|
|
2997
|
+
className: Qr.search,
|
|
2998
|
+
children: [/* @__PURE__ */ M(ft, {
|
|
2999
2999
|
size: 16,
|
|
3000
|
-
strokeWidth:
|
|
3001
|
-
className:
|
|
3002
|
-
}), /* @__PURE__ */
|
|
3003
|
-
className:
|
|
3000
|
+
strokeWidth: O(16),
|
|
3001
|
+
className: Qr.search__icon
|
|
3002
|
+
}), /* @__PURE__ */ M("input", {
|
|
3003
|
+
className: Qr.search__input,
|
|
3004
3004
|
placeholder: t,
|
|
3005
3005
|
value: r,
|
|
3006
3006
|
onChange: (e) => i?.(e.target.value)
|
|
3007
3007
|
})]
|
|
3008
|
-
}),
|
|
3008
|
+
}), X = {
|
|
3009
|
+
toaster: "_toaster_ma9al_7",
|
|
3010
|
+
toast: "_toast_ma9al_7",
|
|
3011
|
+
swipeOutLeft: "_swipeOutLeft_ma9al_1",
|
|
3012
|
+
swipeOutRight: "_swipeOutRight_ma9al_1",
|
|
3013
|
+
swipeOutUp: "_swipeOutUp_ma9al_1",
|
|
3014
|
+
swipeOutDown: "_swipeOutDown_ma9al_1",
|
|
3015
|
+
icon: "_icon_ma9al_160",
|
|
3016
|
+
content: "_content_ma9al_173",
|
|
3017
|
+
title: "_title_ma9al_180",
|
|
3018
|
+
description: "_description_ma9al_181",
|
|
3019
|
+
button: "_button_ma9al_183",
|
|
3020
|
+
cancel: "_cancel_ma9al_202",
|
|
3021
|
+
close: "_close_ma9al_204",
|
|
3022
|
+
spinner: "_spinner_ma9al_227",
|
|
3023
|
+
spinnerBar: "_spinnerBar_ma9al_232",
|
|
3024
|
+
spinnerFade: "_spinnerFade_ma9al_1"
|
|
3025
|
+
}, ei = 0, ti = [], ni = /* @__PURE__ */ new Set();
|
|
3026
|
+
function ri(e) {
|
|
3027
|
+
for (let t of ni) t(e);
|
|
3028
|
+
}
|
|
3029
|
+
var ii = {
|
|
3030
|
+
subscribe(e) {
|
|
3031
|
+
return ni.add(e), () => {
|
|
3032
|
+
ni.delete(e);
|
|
3033
|
+
};
|
|
3034
|
+
},
|
|
3035
|
+
active: () => ti,
|
|
3036
|
+
remove(e) {
|
|
3037
|
+
ti = ti.filter((t) => t.id !== e);
|
|
3038
|
+
}
|
|
3039
|
+
};
|
|
3040
|
+
function Z(e, t, n = {}) {
|
|
3041
|
+
let r = n.id ?? `sakani-toast-${++ei}`, i = ti.find((e) => e.id === r), a = {
|
|
3042
|
+
...i,
|
|
3043
|
+
...n,
|
|
3044
|
+
id: r,
|
|
3045
|
+
type: e,
|
|
3046
|
+
title: t,
|
|
3047
|
+
delete: !1,
|
|
3048
|
+
version: (i?.version ?? 0) + 1
|
|
3049
|
+
};
|
|
3050
|
+
return ti = i ? ti.map((e) => e.id === r ? a : e) : [a, ...ti], ri({
|
|
3051
|
+
kind: "upsert",
|
|
3052
|
+
toast: a
|
|
3053
|
+
}), r;
|
|
3054
|
+
}
|
|
3055
|
+
function ai(e) {
|
|
3056
|
+
return ti = e === void 0 ? [] : ti.filter((t) => t.id !== e), ri({
|
|
3057
|
+
kind: "dismiss",
|
|
3058
|
+
id: e
|
|
3059
|
+
}), e;
|
|
3060
|
+
}
|
|
3061
|
+
function oi(e, t) {
|
|
3062
|
+
let { loading: n, success: r, error: i, finally: a, id: o, ...s } = t, c = o ?? `sakani-toast-${++ei}`;
|
|
3063
|
+
return n !== void 0 && Z("loading", n, {
|
|
3064
|
+
...s,
|
|
3065
|
+
id: c
|
|
3066
|
+
}), (typeof e == "function" ? e() : e).then((e) => {
|
|
3067
|
+
if (r === void 0) {
|
|
3068
|
+
n !== void 0 && ai(c);
|
|
3069
|
+
return;
|
|
3070
|
+
}
|
|
3071
|
+
Z("success", typeof r == "function" ? r(e) : r, {
|
|
3072
|
+
...s,
|
|
3073
|
+
id: c
|
|
3074
|
+
});
|
|
3075
|
+
}, (e) => {
|
|
3076
|
+
if (i === void 0) {
|
|
3077
|
+
n !== void 0 && ai(c);
|
|
3078
|
+
return;
|
|
3079
|
+
}
|
|
3080
|
+
Z("error", typeof i == "function" ? i(e) : i, {
|
|
3081
|
+
...s,
|
|
3082
|
+
id: c
|
|
3083
|
+
});
|
|
3084
|
+
}).finally(() => a?.()), c;
|
|
3085
|
+
}
|
|
3086
|
+
var si = Object.assign((e, t) => Z("default", e, t), {
|
|
3087
|
+
message: (e, t) => Z("default", e, t),
|
|
3088
|
+
success: (e, t) => Z("success", e, t),
|
|
3089
|
+
info: (e, t) => Z("info", e, t),
|
|
3090
|
+
warning: (e, t) => Z("warning", e, t),
|
|
3091
|
+
error: (e, t) => Z("error", e, t),
|
|
3092
|
+
loading: (e, t) => Z("loading", e, t),
|
|
3093
|
+
promise: oi,
|
|
3094
|
+
dismiss: ai
|
|
3095
|
+
}), ci = 356, li = 45, ui = 200, di = (e) => typeof e == "number" ? `${e}px` : e, fi = (...e) => e.filter(Boolean).join(" "), pi = {
|
|
3096
|
+
success: {
|
|
3097
|
+
viewBox: "0 0 20 20",
|
|
3098
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"
|
|
3099
|
+
},
|
|
3100
|
+
info: {
|
|
3101
|
+
viewBox: "0 0 20 20",
|
|
3102
|
+
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z"
|
|
3103
|
+
},
|
|
3104
|
+
warning: {
|
|
3105
|
+
viewBox: "0 0 24 24",
|
|
3106
|
+
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z"
|
|
3107
|
+
},
|
|
3108
|
+
error: {
|
|
3109
|
+
viewBox: "0 0 20 20",
|
|
3110
|
+
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z"
|
|
3111
|
+
}
|
|
3112
|
+
};
|
|
3113
|
+
function mi({ type: e }) {
|
|
3114
|
+
if (e === "loading") return /* @__PURE__ */ M("span", {
|
|
3115
|
+
className: X.spinner,
|
|
3116
|
+
"aria-hidden": "true",
|
|
3117
|
+
children: Array.from({ length: 12 }, (e, t) => /* @__PURE__ */ M("span", {
|
|
3118
|
+
className: X.spinnerBar,
|
|
3119
|
+
style: {
|
|
3120
|
+
transform: `rotate(${t * 30 || 1e-4}deg) translate(146%)`,
|
|
3121
|
+
animationDelay: `${-1.2 + t * .1}s`
|
|
3122
|
+
}
|
|
3123
|
+
}, t))
|
|
3124
|
+
});
|
|
3125
|
+
let t = pi[e];
|
|
3126
|
+
return t ? /* @__PURE__ */ M("svg", {
|
|
3127
|
+
viewBox: t.viewBox,
|
|
3128
|
+
width: 16,
|
|
3129
|
+
height: 16,
|
|
3130
|
+
fill: "currentColor",
|
|
3131
|
+
"aria-hidden": "true",
|
|
3132
|
+
children: /* @__PURE__ */ M("path", {
|
|
3133
|
+
fillRule: "evenodd",
|
|
3134
|
+
clipRule: "evenodd",
|
|
3135
|
+
d: t.d
|
|
3136
|
+
})
|
|
3137
|
+
}) : null;
|
|
3138
|
+
}
|
|
3139
|
+
var hi = () => /* @__PURE__ */ M("svg", {
|
|
3140
|
+
viewBox: "0 0 12 12",
|
|
3141
|
+
width: 12,
|
|
3142
|
+
height: 12,
|
|
3143
|
+
fill: "none",
|
|
3144
|
+
stroke: "currentColor",
|
|
3145
|
+
strokeWidth: 1.5,
|
|
3146
|
+
strokeLinecap: "round",
|
|
3147
|
+
"aria-hidden": "true",
|
|
3148
|
+
children: /* @__PURE__ */ M("path", { d: "M9 3L3 9M3 3l6 6" })
|
|
3149
|
+
});
|
|
3150
|
+
function gi({ toast: e, index: t, count: n, expanded: r, expandByDefault: i, paused: a, heights: o, setHeights: s, removeToast: c, gap: l, visibleToasts: u, yPosition: d, xPosition: f, closeButton: p, richColors: m, duration: h }) {
|
|
3151
|
+
let [g, _] = j(!1), [v, y] = j(!1), [b, x] = j(!1), [ee, S] = j(!1), [C, te] = j(!1), [ne, re] = j(null), [ie, ae] = j(0), [w, oe] = j(0), se = Et(null), ce = Et(null), T = Et(null), le = Et(0), ue = Et(0), de = t === 0, fe = t + 1 <= u, E = e.dismissible !== !1, pe = e.duration ?? h, me = e.richColors ?? m, he = (e.closeButton ?? p) && e.type !== "loading", ge = o.findIndex((t) => t.id === e.id), D = Tt(() => {
|
|
3152
|
+
let e = o.reduce((e, t, n) => n >= ge ? e : e + t.height, 0);
|
|
3153
|
+
return Math.max(0, ge) * l + e;
|
|
3154
|
+
}, [
|
|
3155
|
+
o,
|
|
3156
|
+
ge,
|
|
3157
|
+
l
|
|
3158
|
+
]), _e = Et(D);
|
|
3159
|
+
_e.current = D, wt(() => {
|
|
3160
|
+
let t = se.current;
|
|
3161
|
+
if (!t) return;
|
|
3162
|
+
let n = t.style.height;
|
|
3163
|
+
t.style.height = "auto";
|
|
3164
|
+
let r = t.offsetHeight;
|
|
3165
|
+
t.style.height = n, oe(r), s((t) => t.some((t) => t.id === e.id) ? t.map((t) => t.id === e.id ? {
|
|
3166
|
+
...t,
|
|
3167
|
+
height: r
|
|
3168
|
+
} : t) : [{
|
|
3169
|
+
id: e.id,
|
|
3170
|
+
height: r
|
|
3171
|
+
}, ...t]);
|
|
3172
|
+
}, [
|
|
3173
|
+
e.id,
|
|
3174
|
+
e.version,
|
|
3175
|
+
s
|
|
3176
|
+
]), A(() => {
|
|
3177
|
+
_(!0);
|
|
3178
|
+
}, []);
|
|
3179
|
+
let ve = Ct(() => {
|
|
3180
|
+
y(!0), ae(_e.current), s((t) => t.filter((t) => t.id !== e.id)), window.setTimeout(() => c(e), ui);
|
|
3181
|
+
}, [
|
|
3182
|
+
e,
|
|
3183
|
+
c,
|
|
3184
|
+
s
|
|
3185
|
+
]);
|
|
3186
|
+
A(() => {
|
|
3187
|
+
e.delete && !v && (e.onDismiss?.(e), ve());
|
|
3188
|
+
}, [
|
|
3189
|
+
e,
|
|
3190
|
+
v,
|
|
3191
|
+
ve
|
|
3192
|
+
]), A(() => {
|
|
3193
|
+
ue.current = pe;
|
|
3194
|
+
}, [e.version, pe]), A(() => {
|
|
3195
|
+
if (v || a || e.type === "loading" || pe === Infinity) return;
|
|
3196
|
+
let t = Date.now(), n = window.setTimeout(() => {
|
|
3197
|
+
e.onAutoClose?.(e), ve();
|
|
3198
|
+
}, ue.current);
|
|
3199
|
+
return () => {
|
|
3200
|
+
window.clearTimeout(n), ue.current -= Date.now() - t;
|
|
3201
|
+
};
|
|
3202
|
+
}, [
|
|
3203
|
+
v,
|
|
3204
|
+
a,
|
|
3205
|
+
e,
|
|
3206
|
+
pe,
|
|
3207
|
+
ve
|
|
3208
|
+
]);
|
|
3209
|
+
let ye = () => {
|
|
3210
|
+
!E || v || (e.onDismiss?.(e), ve());
|
|
3211
|
+
}, be = Tt(() => {
|
|
3212
|
+
let e = [d];
|
|
3213
|
+
return f !== "center" && e.push(f), e;
|
|
3214
|
+
}, [d, f]), xe = (e, t) => {
|
|
3215
|
+
se.current?.style.setProperty("--swipe-amount-x", `${e}px`), se.current?.style.setProperty("--swipe-amount-y", `${t}px`);
|
|
3216
|
+
}, Se = (e) => {
|
|
3217
|
+
if (!(e.button === 2 || !E || v) && !e.target.closest("button")) {
|
|
3218
|
+
le.current = Date.now(), ae(_e.current);
|
|
3219
|
+
try {
|
|
3220
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
3221
|
+
} catch {}
|
|
3222
|
+
x(!0), ce.current = {
|
|
3223
|
+
x: e.clientX,
|
|
3224
|
+
y: e.clientY
|
|
3225
|
+
}, T.current = null;
|
|
3226
|
+
}
|
|
3227
|
+
}, Ce = (e) => {
|
|
3228
|
+
if (!ce.current || !E || (window.getSelection()?.toString().length ?? 0) > 0) return;
|
|
3229
|
+
let t = e.clientY - ce.current.y, n = e.clientX - ce.current.x;
|
|
3230
|
+
!T.current && (Math.abs(n) > 1 || Math.abs(t) > 1) && (T.current = Math.abs(n) > Math.abs(t) ? "x" : "y");
|
|
3231
|
+
let r = (e) => e / (1.5 + Math.abs(e) / 20), i = 0, a = 0;
|
|
3232
|
+
T.current === "y" ? a = be.includes("top") && t < 0 || be.includes("bottom") && t > 0 ? t : r(t) : T.current === "x" && (i = be.includes("left") && n < 0 || be.includes("right") && n > 0 ? n : r(n)), (i !== 0 || a !== 0) && S(!0), xe(i, a);
|
|
3233
|
+
}, we = () => {
|
|
3234
|
+
if (C || !E || !ce.current) return;
|
|
3235
|
+
ce.current = null;
|
|
3236
|
+
let t = se.current?.style, n = parseFloat(t?.getPropertyValue("--swipe-amount-x") || "0") || 0, r = parseFloat(t?.getPropertyValue("--swipe-amount-y") || "0") || 0, i = T.current === "x" ? n : r, a = Math.abs(i) / Math.max(1, Date.now() - le.current);
|
|
3237
|
+
if ((T.current === "x" ? i < 0 && be.includes("left") || i > 0 && be.includes("right") : i < 0 && be.includes("top") || i > 0 && be.includes("bottom")) && (Math.abs(i) >= li || a > .11)) {
|
|
3238
|
+
ae(_e.current), e.onDismiss?.(e), re(T.current === "x" ? n > 0 ? "right" : "left" : r > 0 ? "down" : "up"), ve(), te(!0);
|
|
3239
|
+
return;
|
|
3240
|
+
}
|
|
3241
|
+
xe(0, 0), S(!1), x(!1), T.current = null;
|
|
3242
|
+
}, O = r || i && g, Te = e.icon === null ? null : e.icon ?? /* @__PURE__ */ M(mi, { type: e.type }), Ee = Te !== null && (e.icon !== void 0 || e.type !== "default");
|
|
3243
|
+
return /* @__PURE__ */ N("li", {
|
|
3244
|
+
ref: se,
|
|
3245
|
+
tabIndex: 0,
|
|
3246
|
+
role: "status",
|
|
3247
|
+
"aria-live": e.important || e.type === "error" ? "assertive" : "polite",
|
|
3248
|
+
"aria-atomic": "true",
|
|
3249
|
+
className: fi(X.toast, e.className),
|
|
3250
|
+
"data-mounted": g,
|
|
3251
|
+
"data-removed": v,
|
|
3252
|
+
"data-visible": fe,
|
|
3253
|
+
"data-front": de,
|
|
3254
|
+
"data-expanded": O,
|
|
3255
|
+
"data-y-position": d,
|
|
3256
|
+
"data-x-position": f,
|
|
3257
|
+
"data-type": e.type,
|
|
3258
|
+
"data-rich-colors": me,
|
|
3259
|
+
"data-dismissible": E,
|
|
3260
|
+
"data-swiping": b,
|
|
3261
|
+
"data-swiped": ee,
|
|
3262
|
+
"data-swipe-out": C,
|
|
3263
|
+
"data-swipe-direction": ne ?? void 0,
|
|
3264
|
+
style: {
|
|
3265
|
+
"--index": t,
|
|
3266
|
+
"--toasts-before": t,
|
|
3267
|
+
"--z-index": n - t,
|
|
3268
|
+
"--offset": `${v ? ie : D}px`,
|
|
3269
|
+
"--initial-height": i ? "auto" : `${w}px`
|
|
3270
|
+
},
|
|
3271
|
+
onPointerDown: Se,
|
|
3272
|
+
onPointerMove: Ce,
|
|
3273
|
+
onPointerUp: we,
|
|
3274
|
+
onPointerCancel: we,
|
|
3275
|
+
onKeyDown: (e) => {
|
|
3276
|
+
(e.key === "Delete" || e.key === "Backspace") && ye();
|
|
3277
|
+
},
|
|
3278
|
+
children: [
|
|
3279
|
+
he && /* @__PURE__ */ M("button", {
|
|
3280
|
+
type: "button",
|
|
3281
|
+
className: X.close,
|
|
3282
|
+
"aria-label": "Close notification",
|
|
3283
|
+
disabled: !E,
|
|
3284
|
+
onClick: ye,
|
|
3285
|
+
children: /* @__PURE__ */ M(hi, {})
|
|
3286
|
+
}),
|
|
3287
|
+
Ee && /* @__PURE__ */ M("div", {
|
|
3288
|
+
className: X.icon,
|
|
3289
|
+
children: Te
|
|
3290
|
+
}),
|
|
3291
|
+
/* @__PURE__ */ N("div", {
|
|
3292
|
+
className: X.content,
|
|
3293
|
+
children: [/* @__PURE__ */ M("div", {
|
|
3294
|
+
className: X.title,
|
|
3295
|
+
children: e.title
|
|
3296
|
+
}), e.description && /* @__PURE__ */ M("div", {
|
|
3297
|
+
className: X.description,
|
|
3298
|
+
children: e.description
|
|
3299
|
+
})]
|
|
3300
|
+
}),
|
|
3301
|
+
e.cancel && /* @__PURE__ */ M("button", {
|
|
3302
|
+
type: "button",
|
|
3303
|
+
className: fi(X.button, X.cancel),
|
|
3304
|
+
onClick: (t) => {
|
|
3305
|
+
e.cancel?.onClick?.(t), E && ye();
|
|
3306
|
+
},
|
|
3307
|
+
children: e.cancel.label
|
|
3308
|
+
}),
|
|
3309
|
+
e.action && /* @__PURE__ */ M("button", {
|
|
3310
|
+
type: "button",
|
|
3311
|
+
className: X.button,
|
|
3312
|
+
onClick: (t) => {
|
|
3313
|
+
e.action?.onClick(t), t.defaultPrevented || ve();
|
|
3314
|
+
},
|
|
3315
|
+
children: e.action.label
|
|
3316
|
+
})
|
|
3317
|
+
]
|
|
3318
|
+
});
|
|
3319
|
+
}
|
|
3320
|
+
var _i = ({ position: e = "bottom-right", richColors: t = !1, closeButton: n = !1, expand: r = !1, visibleToasts: i = 3, duration: a = 4e3, gap: o = 14, offset: s = 24, mobileOffset: c = 16, hotkey: l = ["altKey", "KeyT"], containerAriaLabel: u = "Notifications", className: d, style: f }) => {
|
|
3321
|
+
let [p, m] = j(() => ii.active()), [h, g] = j([]), [_, v] = j(!1), [y, b] = j(!1), [x, ee] = j(!1), S = Et(null), [C, te] = e.split("-");
|
|
3322
|
+
A(() => ii.subscribe((e) => {
|
|
3323
|
+
e.kind === "upsert" ? m((t) => t.some((t) => t.id === e.toast.id) ? t.map((t) => t.id === e.toast.id ? e.toast : t) : [e.toast, ...t]) : m((t) => t.map((t) => e.id === void 0 || t.id === e.id ? {
|
|
3324
|
+
...t,
|
|
3325
|
+
delete: !0
|
|
3326
|
+
} : t));
|
|
3327
|
+
}), []);
|
|
3328
|
+
let ne = Ct((e) => {
|
|
3329
|
+
ii.remove(e.id), m((t) => t.filter((t) => t.id !== e.id));
|
|
3330
|
+
}, []);
|
|
3331
|
+
return A(() => {
|
|
3332
|
+
p.length <= 1 && v(!1);
|
|
3333
|
+
}, [p.length]), A(() => {
|
|
3334
|
+
let e = () => ee(document.hidden);
|
|
3335
|
+
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
|
|
3336
|
+
}, []), A(() => {
|
|
3337
|
+
let e = (e) => {
|
|
3338
|
+
l.length > 0 && l.every((t) => e[t] === !0 || e.code === t) && (v(!0), S.current?.focus()), e.key === "Escape" && S.current && (document.activeElement === S.current || S.current.contains(document.activeElement)) && (v(!1), document.activeElement?.blur());
|
|
3339
|
+
};
|
|
3340
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
3341
|
+
}, [l]), /* @__PURE__ */ M("section", {
|
|
3342
|
+
"aria-label": `${u} ${l.join("+").replace(/Key/g, "").replace(/Digit/g, "")}`,
|
|
3343
|
+
tabIndex: -1,
|
|
3344
|
+
"aria-live": "polite",
|
|
3345
|
+
"aria-relevant": "additions text",
|
|
3346
|
+
"aria-atomic": "false",
|
|
3347
|
+
children: p.length > 0 && /* @__PURE__ */ M("ol", {
|
|
3348
|
+
ref: S,
|
|
3349
|
+
tabIndex: -1,
|
|
3350
|
+
className: fi(X.toaster, d),
|
|
3351
|
+
"data-y-position": C,
|
|
3352
|
+
"data-x-position": te,
|
|
3353
|
+
style: {
|
|
3354
|
+
"--front-toast-height": `${h[0]?.height ?? 0}px`,
|
|
3355
|
+
"--width": `${ci}px`,
|
|
3356
|
+
"--gap": `${o}px`,
|
|
3357
|
+
"--offset-top": di(s),
|
|
3358
|
+
"--offset-right": di(s),
|
|
3359
|
+
"--offset-bottom": di(s),
|
|
3360
|
+
"--offset-left": di(s),
|
|
3361
|
+
"--mobile-offset-top": di(c),
|
|
3362
|
+
"--mobile-offset-right": di(c),
|
|
3363
|
+
"--mobile-offset-bottom": di(c),
|
|
3364
|
+
"--mobile-offset-left": di(c),
|
|
3365
|
+
...f
|
|
3366
|
+
},
|
|
3367
|
+
onMouseEnter: () => v(!0),
|
|
3368
|
+
onMouseMove: () => v(!0),
|
|
3369
|
+
onMouseLeave: () => {
|
|
3370
|
+
y || v(!1);
|
|
3371
|
+
},
|
|
3372
|
+
onFocus: () => v(!0),
|
|
3373
|
+
onBlur: (e) => {
|
|
3374
|
+
e.currentTarget.contains(e.relatedTarget) || v(!1);
|
|
3375
|
+
},
|
|
3376
|
+
onPointerDown: (e) => {
|
|
3377
|
+
e.target.dataset?.dismissible !== "false" && b(!0);
|
|
3378
|
+
},
|
|
3379
|
+
onPointerUp: () => b(!1),
|
|
3380
|
+
children: p.map((e, s) => /* @__PURE__ */ M(gi, {
|
|
3381
|
+
toast: e,
|
|
3382
|
+
index: s,
|
|
3383
|
+
count: p.length,
|
|
3384
|
+
expanded: _,
|
|
3385
|
+
expandByDefault: r,
|
|
3386
|
+
paused: _ || y || x,
|
|
3387
|
+
heights: h,
|
|
3388
|
+
setHeights: g,
|
|
3389
|
+
removeToast: ne,
|
|
3390
|
+
gap: o,
|
|
3391
|
+
visibleToasts: i,
|
|
3392
|
+
yPosition: C,
|
|
3393
|
+
xPosition: te,
|
|
3394
|
+
closeButton: n,
|
|
3395
|
+
richColors: t,
|
|
3396
|
+
duration: a
|
|
3397
|
+
}, e.id))
|
|
3398
|
+
})
|
|
3399
|
+
});
|
|
3400
|
+
}, vi = {
|
|
3009
3401
|
spinner: "_spinner_14r00_3",
|
|
3010
3402
|
"spinner--sm": "_spinner--sm_14r00_12",
|
|
3011
3403
|
"spinner--md": "_spinner--md_14r00_13",
|
|
3012
3404
|
"spinner--lg": "_spinner--lg_14r00_14",
|
|
3013
3405
|
spinner__svg: "_spinner__svg_14r00_17",
|
|
3014
3406
|
"spinner-rotate": "_spinner-rotate_14r00_1"
|
|
3015
|
-
},
|
|
3407
|
+
}, yi = ({ size: e = "md", label: t = "Loading...", className: n }) => /* @__PURE__ */ M("span", {
|
|
3016
3408
|
role: "status",
|
|
3017
3409
|
"aria-label": t,
|
|
3018
3410
|
className: [
|
|
3019
|
-
|
|
3020
|
-
|
|
3411
|
+
vi.spinner,
|
|
3412
|
+
vi[`spinner--${e}`],
|
|
3021
3413
|
n ?? ""
|
|
3022
3414
|
].filter(Boolean).join(" "),
|
|
3023
|
-
children: /* @__PURE__ */
|
|
3415
|
+
children: /* @__PURE__ */ N("svg", {
|
|
3024
3416
|
viewBox: "0 0 24 24",
|
|
3025
3417
|
fill: "none",
|
|
3026
3418
|
stroke: "currentColor",
|
|
3027
3419
|
strokeWidth: 2.5,
|
|
3028
3420
|
strokeLinecap: "round",
|
|
3029
3421
|
"aria-hidden": "true",
|
|
3030
|
-
className:
|
|
3031
|
-
children: [/* @__PURE__ */
|
|
3422
|
+
className: vi.spinner__svg,
|
|
3423
|
+
children: [/* @__PURE__ */ M("circle", {
|
|
3032
3424
|
cx: 12,
|
|
3033
3425
|
cy: 12,
|
|
3034
3426
|
r: 9,
|
|
3035
3427
|
opacity: .2
|
|
3036
|
-
}), /* @__PURE__ */
|
|
3428
|
+
}), /* @__PURE__ */ M("path", {
|
|
3037
3429
|
d: "M12 3a9 9 0 0 1 9 9",
|
|
3038
|
-
className:
|
|
3430
|
+
className: vi.spinner__arc
|
|
3039
3431
|
})]
|
|
3040
3432
|
})
|
|
3041
|
-
}),
|
|
3433
|
+
}), Q = {
|
|
3042
3434
|
stepper: "_stepper_1qhab_3",
|
|
3043
3435
|
"stepper--horizontal": "_stepper--horizontal_1qhab_4",
|
|
3044
3436
|
"stepper--vertical": "_stepper--vertical_1qhab_5",
|
|
@@ -3063,51 +3455,51 @@ var Y = {
|
|
|
3063
3455
|
"connector--vertical": "_connector--vertical_1qhab_82",
|
|
3064
3456
|
"connector--filled": "_connector--filled_1qhab_86",
|
|
3065
3457
|
"connector--horizontal": "_connector--horizontal_1qhab_88"
|
|
3066
|
-
},
|
|
3067
|
-
className: [
|
|
3458
|
+
}, bi = ({ index: e, state: t, label: n, description: r, orientation: i = "horizontal", delay: a = 0, fresh: o }) => /* @__PURE__ */ N("div", {
|
|
3459
|
+
className: [Q.step, Q[`step--${i}`]].join(" "),
|
|
3068
3460
|
style: { "--delay": `${a}ms` },
|
|
3069
|
-
children: [/* @__PURE__ */
|
|
3070
|
-
className: [
|
|
3461
|
+
children: [/* @__PURE__ */ M("span", {
|
|
3462
|
+
className: [Q.circle, Q[`circle--${t}`]].join(" "),
|
|
3071
3463
|
"data-fresh": o || void 0,
|
|
3072
3464
|
"aria-hidden": "true",
|
|
3073
|
-
children: t === "completed" ? /* @__PURE__ */
|
|
3465
|
+
children: t === "completed" ? /* @__PURE__ */ M(ut, {
|
|
3074
3466
|
size: 14,
|
|
3075
|
-
strokeWidth:
|
|
3076
|
-
}) : /* @__PURE__ */
|
|
3077
|
-
className:
|
|
3467
|
+
strokeWidth: O(14)
|
|
3468
|
+
}) : /* @__PURE__ */ M("span", {
|
|
3469
|
+
className: Q.circle__num,
|
|
3078
3470
|
children: e + 1
|
|
3079
3471
|
})
|
|
3080
|
-
}), /* @__PURE__ */
|
|
3081
|
-
className:
|
|
3082
|
-
children: [/* @__PURE__ */
|
|
3472
|
+
}), /* @__PURE__ */ N("span", {
|
|
3473
|
+
className: Q.step__text,
|
|
3474
|
+
children: [/* @__PURE__ */ M("span", {
|
|
3083
3475
|
className: [
|
|
3084
|
-
|
|
3085
|
-
t === "current" ?
|
|
3086
|
-
t === "upcoming" ?
|
|
3476
|
+
Q.step__label,
|
|
3477
|
+
t === "current" ? Q["step__label--current"] : "",
|
|
3478
|
+
t === "upcoming" ? Q["step__label--upcoming"] : ""
|
|
3087
3479
|
].filter(Boolean).join(" "),
|
|
3088
3480
|
children: n
|
|
3089
|
-
}), r && /* @__PURE__ */
|
|
3090
|
-
className:
|
|
3481
|
+
}), r && /* @__PURE__ */ M("span", {
|
|
3482
|
+
className: Q.step__desc,
|
|
3091
3483
|
children: r
|
|
3092
3484
|
})]
|
|
3093
3485
|
})]
|
|
3094
|
-
}),
|
|
3095
|
-
let i = (e) => e < t ? "completed" : e === t ? "current" : "upcoming", a =
|
|
3096
|
-
|
|
3486
|
+
}), xi = 457, Si = ({ steps: e, current: t, orientation: n = "horizontal", className: r }) => {
|
|
3487
|
+
let i = (e) => e < t ? "completed" : e === t ? "current" : "upcoming", a = Et(t), [o, s] = j(!1);
|
|
3488
|
+
A(() => {
|
|
3097
3489
|
s(!0);
|
|
3098
|
-
}, []),
|
|
3490
|
+
}, []), A(() => {
|
|
3099
3491
|
a.current = t;
|
|
3100
3492
|
}, [t]);
|
|
3101
|
-
let c = a.current, l = (e, t) => e < t ? "completed" : e === t ? "current" : "upcoming", u = (e) => o && c !== t && l(e, c) !== l(e, t), d = t >= c, f = Math.max(1, Math.abs(t - c)), p = Math.min(
|
|
3102
|
-
return /* @__PURE__ */
|
|
3493
|
+
let c = a.current, l = (e, t) => e < t ? "completed" : e === t ? "current" : "upcoming", u = (e) => o && c !== t && l(e, c) !== l(e, t), d = t >= c, f = Math.max(1, Math.abs(t - c)), p = Math.min(xi, Math.floor(1430 / f)), m = (e) => d ? e >= c && e <= t ? (e - c) * p : 0 : e >= t && e <= c ? (c - e) * p : 0, h = (e) => d ? e >= c && e < t ? (e - c) * p : 0 : e >= t && e < c ? (c - 1 - e) * p + 57 : 0;
|
|
3494
|
+
return /* @__PURE__ */ M("div", {
|
|
3103
3495
|
className: [
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
o ?
|
|
3496
|
+
Q.stepper,
|
|
3497
|
+
Q[`stepper--${n}`],
|
|
3498
|
+
o ? Q["stepper--animated"] : "",
|
|
3107
3499
|
r ?? ""
|
|
3108
3500
|
].filter(Boolean).join(" "),
|
|
3109
3501
|
style: { "--fill-ms": `${p}ms` },
|
|
3110
|
-
children: e.map((r, a) => /* @__PURE__ */
|
|
3502
|
+
children: e.map((r, a) => /* @__PURE__ */ N(k.Fragment, { children: [/* @__PURE__ */ M(bi, {
|
|
3111
3503
|
index: a,
|
|
3112
3504
|
state: i(a),
|
|
3113
3505
|
label: r.label,
|
|
@@ -3115,18 +3507,18 @@ var Y = {
|
|
|
3115
3507
|
orientation: n,
|
|
3116
3508
|
delay: m(a),
|
|
3117
3509
|
fresh: u(a)
|
|
3118
|
-
}), a < e.length - 1 && /* @__PURE__ */
|
|
3510
|
+
}), a < e.length - 1 && /* @__PURE__ */ M("span", {
|
|
3119
3511
|
className: [
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
a < t ?
|
|
3512
|
+
Q.connector,
|
|
3513
|
+
Q[`connector--${n}`],
|
|
3514
|
+
a < t ? Q["connector--filled"] : ""
|
|
3123
3515
|
].filter(Boolean).join(" "),
|
|
3124
3516
|
style: { "--delay": `${h(a)}ms` },
|
|
3125
3517
|
"aria-hidden": "true",
|
|
3126
|
-
children: /* @__PURE__ */
|
|
3518
|
+
children: /* @__PURE__ */ M("span", { className: Q.connector__fill })
|
|
3127
3519
|
})] }, a))
|
|
3128
3520
|
});
|
|
3129
|
-
},
|
|
3521
|
+
}, $ = {
|
|
3130
3522
|
wrapper: "_wrapper_1d89w_3",
|
|
3131
3523
|
"wrapper--disabled": "_wrapper--disabled_1d89w_11",
|
|
3132
3524
|
input: "_input_1d89w_13",
|
|
@@ -3137,34 +3529,34 @@ var Y = {
|
|
|
3137
3529
|
"wrapper--withDescription": "_wrapper--withDescription_1d89w_65",
|
|
3138
3530
|
text: "_text_1d89w_66",
|
|
3139
3531
|
description: "_description_1d89w_68"
|
|
3140
|
-
},
|
|
3141
|
-
let l =
|
|
3142
|
-
return /* @__PURE__ */
|
|
3532
|
+
}, Ci = 16, wi = 2, Ti = 18, Ei = 360, Di = 16, Oi = (e) => 1 - (1 - e) ** 3, ki = .16, Ai = k.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, onChange: a, variant: o = "default", ...s }, c) => {
|
|
3533
|
+
let l = k.useId(), u = r ?? l, d = k.useRef(null);
|
|
3534
|
+
return /* @__PURE__ */ N("label", {
|
|
3143
3535
|
htmlFor: u,
|
|
3144
3536
|
className: [
|
|
3145
|
-
|
|
3146
|
-
o === "stretch" ?
|
|
3147
|
-
t ?
|
|
3148
|
-
n ?
|
|
3537
|
+
$.wrapper,
|
|
3538
|
+
o === "stretch" ? $["wrapper--stretch"] : "",
|
|
3539
|
+
t ? $["wrapper--withDescription"] : "",
|
|
3540
|
+
n ? $["wrapper--disabled"] : "",
|
|
3149
3541
|
i ?? ""
|
|
3150
3542
|
].filter(Boolean).join(" "),
|
|
3151
3543
|
children: [
|
|
3152
|
-
/* @__PURE__ */
|
|
3544
|
+
/* @__PURE__ */ M("input", {
|
|
3153
3545
|
ref: c,
|
|
3154
3546
|
id: u,
|
|
3155
3547
|
type: "checkbox",
|
|
3156
3548
|
role: "switch",
|
|
3157
3549
|
disabled: n,
|
|
3158
|
-
className:
|
|
3550
|
+
className: $.input,
|
|
3159
3551
|
onChange: (e) => {
|
|
3160
3552
|
a?.(e);
|
|
3161
3553
|
let t = d.current;
|
|
3162
3554
|
if (o !== "stretch" || !t || typeof t.animate != "function" || window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
|
|
3163
|
-
let n = e.target.checked, r = getComputedStyle(t), i = parseFloat(r.translate) || 0, s = parseFloat(r.width) ||
|
|
3555
|
+
let n = e.target.checked, r = getComputedStyle(t), i = parseFloat(r.translate) || 0, s = parseFloat(r.width) || Ci, c = (n ? wi : Ti) + i, l = c + s, u = n ? Ti : wi, f = u + Ci;
|
|
3164
3556
|
t.getAnimations().forEach((e) => e.cancel());
|
|
3165
3557
|
let p = [];
|
|
3166
|
-
for (let e = 0; e <=
|
|
3167
|
-
let t = e /
|
|
3558
|
+
for (let e = 0; e <= Di; e++) {
|
|
3559
|
+
let t = e / Di, r = Oi(t), i = Oi(Math.min(1, Math.max(0, (t - ki) / (1 - ki)))), a = c + (u - c) * (n ? i : r), o = l + (f - l) * (n ? r : i);
|
|
3168
3560
|
p.push({
|
|
3169
3561
|
width: `${o - a}px`,
|
|
3170
3562
|
translate: `${a - u}px 0`,
|
|
@@ -3172,38 +3564,38 @@ var Y = {
|
|
|
3172
3564
|
});
|
|
3173
3565
|
}
|
|
3174
3566
|
t.animate(p, {
|
|
3175
|
-
duration:
|
|
3567
|
+
duration: Ei,
|
|
3176
3568
|
easing: "linear"
|
|
3177
3569
|
});
|
|
3178
3570
|
},
|
|
3179
3571
|
...s
|
|
3180
3572
|
}),
|
|
3181
|
-
/* @__PURE__ */
|
|
3182
|
-
className:
|
|
3573
|
+
/* @__PURE__ */ M("span", {
|
|
3574
|
+
className: $.track,
|
|
3183
3575
|
"aria-hidden": "true",
|
|
3184
|
-
children: /* @__PURE__ */
|
|
3576
|
+
children: /* @__PURE__ */ M("span", {
|
|
3185
3577
|
ref: d,
|
|
3186
|
-
className:
|
|
3578
|
+
className: $.thumb
|
|
3187
3579
|
})
|
|
3188
3580
|
}),
|
|
3189
|
-
t ? /* @__PURE__ */
|
|
3190
|
-
className:
|
|
3191
|
-
children: [e && /* @__PURE__ */
|
|
3192
|
-
className:
|
|
3581
|
+
t ? /* @__PURE__ */ N("span", {
|
|
3582
|
+
className: $.text,
|
|
3583
|
+
children: [e && /* @__PURE__ */ M("span", {
|
|
3584
|
+
className: $.label,
|
|
3193
3585
|
children: e
|
|
3194
|
-
}), /* @__PURE__ */
|
|
3195
|
-
className:
|
|
3586
|
+
}), /* @__PURE__ */ M("span", {
|
|
3587
|
+
className: $.description,
|
|
3196
3588
|
children: t
|
|
3197
3589
|
})]
|
|
3198
|
-
}) : e && /* @__PURE__ */
|
|
3199
|
-
className:
|
|
3590
|
+
}) : e && /* @__PURE__ */ M("span", {
|
|
3591
|
+
className: $.label,
|
|
3200
3592
|
children: e
|
|
3201
3593
|
})
|
|
3202
3594
|
]
|
|
3203
3595
|
});
|
|
3204
3596
|
});
|
|
3205
|
-
|
|
3206
|
-
var
|
|
3597
|
+
Ai.displayName = "Switch";
|
|
3598
|
+
var ji = {
|
|
3207
3599
|
field: "_field_53t87_6",
|
|
3208
3600
|
field__label: "_field__label_53t87_8",
|
|
3209
3601
|
field__description: "_field__description_53t87_10",
|
|
@@ -3211,17 +3603,17 @@ var li = {
|
|
|
3211
3603
|
textarea: "_textarea_53t87_13",
|
|
3212
3604
|
"textarea--error": "_textarea--error_53t87_37",
|
|
3213
3605
|
"textarea--disabled": "_textarea--disabled_53t87_52"
|
|
3214
|
-
},
|
|
3215
|
-
let l =
|
|
3216
|
-
return /* @__PURE__ */
|
|
3217
|
-
className: [
|
|
3606
|
+
}, Mi = k.forwardRef(({ label: e, description: t, error: n, disabled: r, id: i, className: a, rows: o = 3, ...s }, c) => {
|
|
3607
|
+
let l = k.useId(), u = i ?? l, d = !!n, f = t || n ? `${u}-desc` : void 0;
|
|
3608
|
+
return /* @__PURE__ */ N("div", {
|
|
3609
|
+
className: [ji.field, a ?? ""].filter(Boolean).join(" "),
|
|
3218
3610
|
children: [
|
|
3219
|
-
e && /* @__PURE__ */
|
|
3611
|
+
e && /* @__PURE__ */ M("label", {
|
|
3220
3612
|
htmlFor: u,
|
|
3221
|
-
className:
|
|
3613
|
+
className: ji.field__label,
|
|
3222
3614
|
children: e
|
|
3223
3615
|
}),
|
|
3224
|
-
/* @__PURE__ */
|
|
3616
|
+
/* @__PURE__ */ M("textarea", {
|
|
3225
3617
|
ref: c,
|
|
3226
3618
|
id: u,
|
|
3227
3619
|
rows: o,
|
|
@@ -3229,22 +3621,22 @@ var li = {
|
|
|
3229
3621
|
"aria-invalid": d || void 0,
|
|
3230
3622
|
"aria-describedby": f,
|
|
3231
3623
|
className: [
|
|
3232
|
-
|
|
3233
|
-
d ?
|
|
3234
|
-
r ?
|
|
3624
|
+
ji.textarea,
|
|
3625
|
+
d ? ji["textarea--error"] : "",
|
|
3626
|
+
r ? ji["textarea--disabled"] : ""
|
|
3235
3627
|
].filter(Boolean).join(" "),
|
|
3236
3628
|
...s
|
|
3237
3629
|
}),
|
|
3238
|
-
(t || n) && /* @__PURE__ */
|
|
3630
|
+
(t || n) && /* @__PURE__ */ M("span", {
|
|
3239
3631
|
id: f,
|
|
3240
|
-
className: d ?
|
|
3632
|
+
className: d ? ji.field__error : ji.field__description,
|
|
3241
3633
|
children: n || t
|
|
3242
3634
|
})
|
|
3243
3635
|
]
|
|
3244
3636
|
});
|
|
3245
3637
|
});
|
|
3246
|
-
|
|
3247
|
-
var
|
|
3638
|
+
Mi.displayName = "Textarea";
|
|
3639
|
+
var Ni = {
|
|
3248
3640
|
toast: "_toast_dshlf_3",
|
|
3249
3641
|
toast__icon: "_toast__icon_dshlf_17",
|
|
3250
3642
|
"toast--success": "_toast--success_dshlf_18",
|
|
@@ -3254,100 +3646,100 @@ var di = {
|
|
|
3254
3646
|
toast__title: "_toast__title_dshlf_23",
|
|
3255
3647
|
toast__description: "_toast__description_dshlf_24",
|
|
3256
3648
|
toast__dismiss: "_toast__dismiss_dshlf_26"
|
|
3257
|
-
},
|
|
3258
|
-
success: /* @__PURE__ */
|
|
3259
|
-
error: /* @__PURE__ */
|
|
3260
|
-
/* @__PURE__ */
|
|
3649
|
+
}, Pi = {
|
|
3650
|
+
success: /* @__PURE__ */ N(Dt, { children: [/* @__PURE__ */ M("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ M("polyline", { points: "22 4 12 14.01 9 11.01" })] }),
|
|
3651
|
+
error: /* @__PURE__ */ N(Dt, { children: [
|
|
3652
|
+
/* @__PURE__ */ M("circle", {
|
|
3261
3653
|
cx: "12",
|
|
3262
3654
|
cy: "12",
|
|
3263
3655
|
r: "10"
|
|
3264
3656
|
}),
|
|
3265
|
-
/* @__PURE__ */
|
|
3657
|
+
/* @__PURE__ */ M("line", {
|
|
3266
3658
|
x1: "15",
|
|
3267
3659
|
y1: "9",
|
|
3268
3660
|
x2: "9",
|
|
3269
3661
|
y2: "15"
|
|
3270
3662
|
}),
|
|
3271
|
-
/* @__PURE__ */
|
|
3663
|
+
/* @__PURE__ */ M("line", {
|
|
3272
3664
|
x1: "9",
|
|
3273
3665
|
y1: "9",
|
|
3274
3666
|
x2: "15",
|
|
3275
3667
|
y2: "15"
|
|
3276
3668
|
})
|
|
3277
3669
|
] }),
|
|
3278
|
-
info: /* @__PURE__ */
|
|
3279
|
-
/* @__PURE__ */
|
|
3670
|
+
info: /* @__PURE__ */ N(Dt, { children: [
|
|
3671
|
+
/* @__PURE__ */ M("circle", {
|
|
3280
3672
|
cx: "12",
|
|
3281
3673
|
cy: "12",
|
|
3282
3674
|
r: "10"
|
|
3283
3675
|
}),
|
|
3284
|
-
/* @__PURE__ */
|
|
3676
|
+
/* @__PURE__ */ M("line", {
|
|
3285
3677
|
x1: "12",
|
|
3286
3678
|
y1: "16",
|
|
3287
3679
|
x2: "12",
|
|
3288
3680
|
y2: "12"
|
|
3289
3681
|
}),
|
|
3290
|
-
/* @__PURE__ */
|
|
3682
|
+
/* @__PURE__ */ M("line", {
|
|
3291
3683
|
x1: "12",
|
|
3292
3684
|
y1: "8",
|
|
3293
3685
|
x2: "12.01",
|
|
3294
3686
|
y2: "8"
|
|
3295
3687
|
})
|
|
3296
3688
|
] })
|
|
3297
|
-
},
|
|
3689
|
+
}, Fi = ({ status: e = "info", title: t, description: n, onDismiss: r, className: i }) => /* @__PURE__ */ N("div", {
|
|
3298
3690
|
role: e === "error" ? "alert" : "status",
|
|
3299
3691
|
"aria-live": e === "error" ? "assertive" : "polite",
|
|
3300
3692
|
className: [
|
|
3301
|
-
|
|
3302
|
-
|
|
3693
|
+
Ni.toast,
|
|
3694
|
+
Ni[`toast--${e}`],
|
|
3303
3695
|
i ?? ""
|
|
3304
3696
|
].filter(Boolean).join(" "),
|
|
3305
3697
|
children: [
|
|
3306
|
-
/* @__PURE__ */
|
|
3307
|
-
className:
|
|
3698
|
+
/* @__PURE__ */ M("span", {
|
|
3699
|
+
className: Ni.toast__icon,
|
|
3308
3700
|
"aria-hidden": "true",
|
|
3309
|
-
children: /* @__PURE__ */
|
|
3701
|
+
children: /* @__PURE__ */ M("svg", {
|
|
3310
3702
|
viewBox: "0 0 24 24",
|
|
3311
3703
|
fill: "none",
|
|
3312
3704
|
stroke: "currentColor",
|
|
3313
|
-
strokeWidth:
|
|
3705
|
+
strokeWidth: O(18),
|
|
3314
3706
|
strokeLinecap: "round",
|
|
3315
3707
|
strokeLinejoin: "round",
|
|
3316
3708
|
width: 18,
|
|
3317
3709
|
height: 18,
|
|
3318
|
-
children:
|
|
3710
|
+
children: Pi[e]
|
|
3319
3711
|
})
|
|
3320
3712
|
}),
|
|
3321
|
-
/* @__PURE__ */
|
|
3322
|
-
className:
|
|
3323
|
-
children: [t && /* @__PURE__ */
|
|
3324
|
-
className:
|
|
3713
|
+
/* @__PURE__ */ N("div", {
|
|
3714
|
+
className: Ni.toast__content,
|
|
3715
|
+
children: [t && /* @__PURE__ */ M("div", {
|
|
3716
|
+
className: Ni.toast__title,
|
|
3325
3717
|
children: t
|
|
3326
|
-
}), n && /* @__PURE__ */
|
|
3327
|
-
className:
|
|
3718
|
+
}), n && /* @__PURE__ */ M("div", {
|
|
3719
|
+
className: Ni.toast__description,
|
|
3328
3720
|
children: n
|
|
3329
3721
|
})]
|
|
3330
3722
|
}),
|
|
3331
|
-
r && /* @__PURE__ */
|
|
3723
|
+
r && /* @__PURE__ */ M("button", {
|
|
3332
3724
|
type: "button",
|
|
3333
|
-
className:
|
|
3725
|
+
className: Ni.toast__dismiss,
|
|
3334
3726
|
onClick: r,
|
|
3335
3727
|
"aria-label": "Dismiss",
|
|
3336
|
-
children: /* @__PURE__ */
|
|
3728
|
+
children: /* @__PURE__ */ N("svg", {
|
|
3337
3729
|
viewBox: "0 0 24 24",
|
|
3338
3730
|
fill: "none",
|
|
3339
3731
|
stroke: "currentColor",
|
|
3340
|
-
strokeWidth:
|
|
3732
|
+
strokeWidth: O(16),
|
|
3341
3733
|
strokeLinecap: "round",
|
|
3342
3734
|
strokeLinejoin: "round",
|
|
3343
3735
|
width: 16,
|
|
3344
3736
|
height: 16,
|
|
3345
|
-
children: [/* @__PURE__ */
|
|
3737
|
+
children: [/* @__PURE__ */ M("line", {
|
|
3346
3738
|
x1: "18",
|
|
3347
3739
|
y1: "6",
|
|
3348
3740
|
x2: "6",
|
|
3349
3741
|
y2: "18"
|
|
3350
|
-
}), /* @__PURE__ */
|
|
3742
|
+
}), /* @__PURE__ */ M("line", {
|
|
3351
3743
|
x1: "6",
|
|
3352
3744
|
y1: "6",
|
|
3353
3745
|
x2: "18",
|
|
@@ -3356,54 +3748,54 @@ var di = {
|
|
|
3356
3748
|
})
|
|
3357
3749
|
})
|
|
3358
3750
|
]
|
|
3359
|
-
}),
|
|
3751
|
+
}), Ii = {
|
|
3360
3752
|
bar: "_bar_14cqo_2",
|
|
3361
3753
|
bar__icon: "_bar__icon_14cqo_10",
|
|
3362
3754
|
bar__title: "_bar__title_14cqo_17",
|
|
3363
3755
|
"bar__title--center": "_bar__title--center_14cqo_21",
|
|
3364
3756
|
bar__search: "_bar__search_14cqo_22"
|
|
3365
|
-
},
|
|
3366
|
-
className: [
|
|
3757
|
+
}, Li = ({ type: e = "title", title: t, trailing: n, search: r, onMenu: i, onAction: a, onClose: o, className: s }) => /* @__PURE__ */ N("header", {
|
|
3758
|
+
className: [Ii.bar, s ?? ""].filter(Boolean).join(" "),
|
|
3367
3759
|
children: [
|
|
3368
|
-
/* @__PURE__ */
|
|
3760
|
+
/* @__PURE__ */ M("button", {
|
|
3369
3761
|
type: "button",
|
|
3370
|
-
className:
|
|
3762
|
+
className: Ii.bar__icon,
|
|
3371
3763
|
onClick: i,
|
|
3372
3764
|
"aria-label": "Open menu",
|
|
3373
|
-
children: /* @__PURE__ */
|
|
3765
|
+
children: /* @__PURE__ */ M(st, {
|
|
3374
3766
|
size: 18,
|
|
3375
|
-
strokeWidth:
|
|
3767
|
+
strokeWidth: O(18)
|
|
3376
3768
|
})
|
|
3377
3769
|
}),
|
|
3378
|
-
e === "search" ? /* @__PURE__ */
|
|
3379
|
-
className:
|
|
3770
|
+
e === "search" ? /* @__PURE__ */ M("div", {
|
|
3771
|
+
className: Ii.bar__search,
|
|
3380
3772
|
children: r
|
|
3381
|
-
}) : /* @__PURE__ */
|
|
3382
|
-
className: [
|
|
3773
|
+
}) : /* @__PURE__ */ M("span", {
|
|
3774
|
+
className: [Ii.bar__title, e === "title-centered" ? Ii["bar__title--center"] : ""].join(" "),
|
|
3383
3775
|
children: t
|
|
3384
3776
|
}),
|
|
3385
|
-
e === "title-action" && /* @__PURE__ */
|
|
3777
|
+
e === "title-action" && /* @__PURE__ */ M("button", {
|
|
3386
3778
|
type: "button",
|
|
3387
|
-
className:
|
|
3779
|
+
className: Ii.bar__icon,
|
|
3388
3780
|
onClick: a,
|
|
3389
3781
|
"aria-label": "Add",
|
|
3390
|
-
children: /* @__PURE__ */
|
|
3782
|
+
children: /* @__PURE__ */ M(it, {
|
|
3391
3783
|
size: 18,
|
|
3392
|
-
strokeWidth:
|
|
3784
|
+
strokeWidth: O(18)
|
|
3393
3785
|
})
|
|
3394
3786
|
}),
|
|
3395
|
-
e === "search" && /* @__PURE__ */
|
|
3787
|
+
e === "search" && /* @__PURE__ */ M("button", {
|
|
3396
3788
|
type: "button",
|
|
3397
|
-
className:
|
|
3789
|
+
className: Ii.bar__icon,
|
|
3398
3790
|
onClick: o,
|
|
3399
3791
|
"aria-label": "Close search",
|
|
3400
|
-
children: /* @__PURE__ */
|
|
3792
|
+
children: /* @__PURE__ */ M(tt, {
|
|
3401
3793
|
size: 18,
|
|
3402
|
-
strokeWidth:
|
|
3794
|
+
strokeWidth: O(18)
|
|
3403
3795
|
})
|
|
3404
3796
|
}),
|
|
3405
3797
|
(e === "title" || e === "title-centered") && n
|
|
3406
3798
|
]
|
|
3407
3799
|
});
|
|
3408
3800
|
//#endregion
|
|
3409
|
-
export { o as Accordion, y as AccordionItem,
|
|
3801
|
+
export { o as Accordion, y as AccordionItem, qe as ActivityFeed, ne as ActivityFeedHighlight, l as Alert, qt as Announcement, Xn as AreaChart, c as Avatar, n as AvatarGroup, de as AvatarUpload, Le as Badge, Ze as Balance, Se as BarChart, vn as BlogBlockquote, bn as BlogFeatureText, Sn as BlogImage, re as BlogListingCard, d as BlogListingFeaturedCard, b as BoardCard, Zn as BoardColumn, Ce as Breadcrumb, Ye as Button, nr as Calendar, rr as Card, t as CardMetaItem, Ve as CartItem, we as ChatComposer, v as Checkbox, e as CheckoutSteps, Zt as CodeSnippet, se as ColorSwatch, ir as Combobox, a as ConversationItem, he as DEFAULT_CHECKOUT_STEPS, D as Divider, s as DonutChart, te as EmptyState, en as Expenses, Kn as FacebookIcon, ie as FeaturedIcon, ar as FileUpload, Ke as FilterChip, wn as FirstPageHeading, ur as FunnelChart, Rn as GithubIcon, pr as HeatmapChart, g as HoverGroup, C as IconButton, rn as InlineHint, r as Input, Gn as InstagramIcon, ee as JobListing, hr as Kbd, _r as Label, S as LineChart, i as Link, qn as LinkedinIcon, Pe as LiquidBackdrop, Oe as LiquidGlass, En as List, yr as ListItem, Qe as LocationDot, kn as Marquee, ue as Menu, Je as MenuDivider, Xe as MenuItem, We as MessageBubble, jn as Metric, Mn as MobileNavigationMenu, me as Modal, Ue as NotificationItem, ce as Pagination, Dr as PieChart, Fn as PlaceholderLogo, Or as Popover, w as PriceDisplay, p as ProductCard, Fe as ProductGallery, In as ProfileCard, Ge as Progress, an as ProgressItem, Ee as ProgressStat, Ae as QuantitySelector, Rr as RadarChart, qr as RadialChart, Yr as Radio, sn as RichSeparator, Bn as RichTextHeading, Hn as RichTextParagraph, h as SectionHeading, _e as SegmentedControl, ye as Select, De as Sidebar, Ne as SidebarDivider, Zr as SidebarFooter, ge as SidebarGroupLabel, pe as SidebarHeader, He as SidebarItem, Te as SidebarPromo, $r as SidebarSearch, fe as SidebarSubItem, m as SizeSelector, Re as Skeleton, je as Slider, E as SpendingBalance, yi as Spinner, u as StarRating, T as StatCard, Si as Stepper, bi as StepperStep, ln as StockMarket, ae as StockStatus, Wn as SubFeature, Ai as Switch, xe as Table, Ie as Tabs, fn as Tags, f as TeamCard, Mi as Textarea, hn as Ticker, Fi as Toast, _i as Toaster, ke as Tooltip, Be as TopBar, Li as TopBarMobile, _n as Transactions, oe as WishlistButton, Ln as XIcon, x as getContrastColor, O as iconStrokeWidth, be as syncLiquidBackdrop, si as toast, _ as useHoverHighlight, ve as useLiquidGlass };
|