@sakaniui/react 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1146 -1121
- 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 le, at as ue, b as de, bt as fe, c as pe, ct as me, d as he, dt as ge, et as _e, f as ve, ft as ye, g as be, gt as xe, h as Se, ht as Ce, i as we, it as Te, j as Ee, k as De, kt as T, l as Oe, lt as ke, m as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, p as Ie, pt as Le, q as Re, r as ze, rt as Be, s as Ve, st as He, t as Ue, tt as We, u as Ge, ut as Ke, v as qe, vt as Je, w as Ye, wt as Xe, x as Ze, xt as Qe, y as $e, yt as et, z as tt } from "./TopBar-DHp4nwwW.js";
|
|
2
|
+
import { A as nt, D as rt, F as it, I as at, L as ot, T as st, _ as ct, a as lt, b as ut, c as dt, j as ft, k as pt, p as mt, u as ht, v as gt, x as _t, y as vt } from "./help-circle-B0koiJUs.js";
|
|
3
|
+
import { a as yt, i as bt, n as xt, o as St, r as Ct, s as wt, t as Tt } from "./logout-S1JWgqYn.js";
|
|
4
|
+
import E, { useEffect as Et, useRef as Dt, useState as Ot } from "react";
|
|
5
|
+
import { Fragment as kt, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
6
|
+
import { Area as At, AreaChart as jt, CartesianGrid as Mt, Cell as Nt, Legend as Pt, Pie as Ft, PieChart as It, PolarAngleAxis as Lt, PolarGrid as Rt, PolarRadiusAxis as zt, Radar as Bt, RadarChart as Vt, RadialBar as Ht, RadialBarChart as Ut, ResponsiveContainer as Wt, Sector as Gt, Tooltip as Kt, XAxis as qt } from "recharts";
|
|
7
|
+
var Jt = {
|
|
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
|
+
}, Yt = ({ 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__ */ O("div", {
|
|
19
19
|
className: [
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
Jt.announcement,
|
|
21
|
+
Jt[`announcement--${o}`],
|
|
22
22
|
s ?? ""
|
|
23
23
|
].filter(Boolean).join(" "),
|
|
24
|
-
children: [/* @__PURE__ */
|
|
25
|
-
className:
|
|
24
|
+
children: [/* @__PURE__ */ O("div", {
|
|
25
|
+
className: Jt.content,
|
|
26
26
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
className:
|
|
27
|
+
/* @__PURE__ */ D("span", {
|
|
28
|
+
className: Jt.icon,
|
|
29
29
|
"aria-hidden": "true",
|
|
30
|
-
children: c ? /* @__PURE__ */
|
|
30
|
+
children: c ? /* @__PURE__ */ D(at, {
|
|
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__ */ D(ot, {
|
|
38
38
|
size: 24,
|
|
39
39
|
strokeWidth: 1.5,
|
|
40
40
|
fill: "currentColor",
|
|
41
41
|
stroke: "currentColor",
|
|
42
|
-
className:
|
|
42
|
+
className: Jt.icon__neutral
|
|
43
43
|
})
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
className:
|
|
45
|
+
/* @__PURE__ */ D("p", {
|
|
46
|
+
className: Jt.message,
|
|
47
47
|
children: e
|
|
48
48
|
}),
|
|
49
|
-
!c && t && /* @__PURE__ */
|
|
49
|
+
!c && t && /* @__PURE__ */ D(i, {
|
|
50
50
|
href: n,
|
|
51
51
|
onClick: r,
|
|
52
|
-
className:
|
|
52
|
+
className: Jt.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__ */ D(C, {
|
|
62
|
+
icon: it,
|
|
63
63
|
size: "sm",
|
|
64
64
|
variant: "ghost",
|
|
65
65
|
"aria-label": "Dismiss",
|
|
66
66
|
onClick: a
|
|
67
67
|
})]
|
|
68
68
|
});
|
|
69
|
-
},
|
|
69
|
+
}, k = {
|
|
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
|
+
}, Xt = [
|
|
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
|
+
], Zt = RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${Xt.join("|")})\\b)`, "g"), Qt = (e) => e.split(Zt).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 && Xt.includes(e);
|
|
103
|
+
return n ? /* @__PURE__ */ D("span", {
|
|
104
|
+
className: k.tokenString,
|
|
105
105
|
children: e
|
|
106
|
-
}, t) : r ? /* @__PURE__ */
|
|
107
|
-
className:
|
|
106
|
+
}, t) : r ? /* @__PURE__ */ D("span", {
|
|
107
|
+
className: k.tokenKeyword,
|
|
108
108
|
children: e
|
|
109
|
-
}, t) : /* @__PURE__ */ E
|
|
110
|
-
}),
|
|
111
|
-
let [s, c] =
|
|
112
|
-
|
|
109
|
+
}, t) : /* @__PURE__ */ D(E.Fragment, { children: e }, t);
|
|
110
|
+
}), $t = ({ code: e, filename: t, onCopy: n, editable: r = !1, onChange: i, placeholder: a, className: o }) => {
|
|
111
|
+
let [s, c] = E.useState(!1), [l, u] = E.useState(e);
|
|
112
|
+
E.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__ */ O("div", {
|
|
118
|
+
className: k.editableBody,
|
|
119
|
+
children: [/* @__PURE__ */ D("pre", {
|
|
120
|
+
className: k.body,
|
|
121
121
|
"aria-hidden": "true",
|
|
122
|
-
children:
|
|
123
|
-
}), /* @__PURE__ */
|
|
124
|
-
className:
|
|
122
|
+
children: Qt(l)
|
|
123
|
+
}), /* @__PURE__ */ D("textarea", {
|
|
124
|
+
className: k.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__ */ D("pre", {
|
|
139
|
+
className: k.body,
|
|
140
|
+
children: Qt(l)
|
|
141
141
|
});
|
|
142
|
-
return t ? /* @__PURE__ */
|
|
143
|
-
className: [
|
|
144
|
-
children: [/* @__PURE__ */
|
|
145
|
-
className:
|
|
146
|
-
children: [/* @__PURE__ */
|
|
147
|
-
className:
|
|
142
|
+
return t ? /* @__PURE__ */ O("div", {
|
|
143
|
+
className: [k.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
144
|
+
children: [/* @__PURE__ */ O("div", {
|
|
145
|
+
className: k.header,
|
|
146
|
+
children: [/* @__PURE__ */ D("p", {
|
|
147
|
+
className: k.filename,
|
|
148
148
|
children: t
|
|
149
|
-
}), /* @__PURE__ */
|
|
150
|
-
icon: s ?
|
|
149
|
+
}), /* @__PURE__ */ D(C, {
|
|
150
|
+
icon: s ? pt : wt,
|
|
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__ */ D("div", {
|
|
158
|
+
className: [k.snippet, o ?? ""].filter(Boolean).join(" "),
|
|
159
159
|
children: p
|
|
160
160
|
});
|
|
161
|
-
},
|
|
161
|
+
}, en = {
|
|
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
|
+
}, tn = (e) => e.toLocaleString("en-US", {
|
|
170
170
|
style: "currency",
|
|
171
171
|
currency: "USD"
|
|
172
|
-
}),
|
|
172
|
+
}), nn = ({ categories: e, variant: t = "default", formatAmount: n = tn, 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__ */ D("div", {
|
|
175
|
+
className: [en.expenses, r ?? ""].filter(Boolean).join(" "),
|
|
176
|
+
children: e.map((e, t) => /* @__PURE__ */ O("div", {
|
|
177
|
+
className: en.row,
|
|
178
|
+
children: [/* @__PURE__ */ O("div", {
|
|
179
|
+
className: en.top,
|
|
180
|
+
children: [/* @__PURE__ */ O("div", {
|
|
181
|
+
className: en.left,
|
|
182
|
+
children: [/* @__PURE__ */ D("span", {
|
|
183
|
+
className: en.icon,
|
|
184
184
|
"aria-hidden": "true",
|
|
185
185
|
children: e.icon
|
|
186
|
-
}), /* @__PURE__ */
|
|
187
|
-
className:
|
|
186
|
+
}), /* @__PURE__ */ D("p", {
|
|
187
|
+
className: en.label,
|
|
188
188
|
children: e.label
|
|
189
189
|
})]
|
|
190
|
-
}), /* @__PURE__ */
|
|
191
|
-
className:
|
|
190
|
+
}), /* @__PURE__ */ D("p", {
|
|
191
|
+
className: en.amount,
|
|
192
192
|
children: n(e.amount)
|
|
193
193
|
})]
|
|
194
|
-
}), !i && /* @__PURE__ */
|
|
194
|
+
}), !i && /* @__PURE__ */ D(Je, {
|
|
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
|
+
}, rn = {
|
|
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
|
+
}, an = 14, on = ({ message: e, variant: t = "neutral", className: n }) => {
|
|
209
|
+
let r = t === "warning" ? at : St;
|
|
210
|
+
return /* @__PURE__ */ O("div", {
|
|
211
211
|
className: [
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
rn.hint,
|
|
213
|
+
rn[`hint--${t}`],
|
|
214
214
|
n ?? ""
|
|
215
215
|
].filter(Boolean).join(" "),
|
|
216
216
|
children: [
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
className:
|
|
217
|
+
/* @__PURE__ */ D("span", {
|
|
218
|
+
className: rn.bar,
|
|
219
219
|
"aria-hidden": "true"
|
|
220
220
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
size:
|
|
223
|
-
strokeWidth:
|
|
224
|
-
className:
|
|
221
|
+
/* @__PURE__ */ D(r, {
|
|
222
|
+
size: an,
|
|
223
|
+
strokeWidth: T(an),
|
|
224
|
+
className: rn.icon
|
|
225
225
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
className:
|
|
226
|
+
/* @__PURE__ */ D("p", {
|
|
227
|
+
className: rn.message,
|
|
228
228
|
children: e
|
|
229
229
|
})
|
|
230
230
|
]
|
|
231
231
|
});
|
|
232
|
-
},
|
|
232
|
+
}, A = {
|
|
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
|
+
}, sn = ({ step: e, title: t, description: n, completed: r = !1, orientation: i = "horizontal", isLast: a = !1, className: o }) => {
|
|
246
|
+
let s = i === "vertical", c = /* @__PURE__ */ D("span", {
|
|
247
|
+
className: A.value,
|
|
248
248
|
"aria-hidden": "true",
|
|
249
|
-
children: r ? /* @__PURE__ */
|
|
249
|
+
children: r ? /* @__PURE__ */ D(pt, {
|
|
250
250
|
size: 14,
|
|
251
|
-
strokeWidth:
|
|
251
|
+
strokeWidth: T(14)
|
|
252
252
|
}) : e
|
|
253
|
-
}), l = /* @__PURE__ */
|
|
254
|
-
className: [
|
|
255
|
-
children: [/* @__PURE__ */
|
|
256
|
-
className:
|
|
253
|
+
}), l = /* @__PURE__ */ O("div", {
|
|
254
|
+
className: [A.text, n ? "" : A["text--single"]].filter(Boolean).join(" "),
|
|
255
|
+
children: [/* @__PURE__ */ D("p", {
|
|
256
|
+
className: A.title,
|
|
257
257
|
children: t
|
|
258
|
-
}), n && /* @__PURE__ */
|
|
259
|
-
className:
|
|
258
|
+
}), n && /* @__PURE__ */ D("p", {
|
|
259
|
+
className: A.description,
|
|
260
260
|
children: n
|
|
261
261
|
})]
|
|
262
262
|
});
|
|
263
|
-
return s ? /* @__PURE__ */
|
|
263
|
+
return s ? /* @__PURE__ */ O("div", {
|
|
264
264
|
className: [
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
A.item,
|
|
266
|
+
A["item--vertical"],
|
|
267
267
|
o ?? ""
|
|
268
268
|
].filter(Boolean).join(" "),
|
|
269
|
-
children: [/* @__PURE__ */
|
|
270
|
-
className:
|
|
271
|
-
children: [c, !a && /* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ O("div", {
|
|
270
|
+
className: A.rail,
|
|
271
|
+
children: [c, !a && /* @__PURE__ */ D("div", { className: A.connectorVertical })]
|
|
272
272
|
}), l]
|
|
273
|
-
}) : /* @__PURE__ */
|
|
273
|
+
}) : /* @__PURE__ */ O("div", {
|
|
274
274
|
className: [
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
A.item,
|
|
276
|
+
A["item--horizontal"],
|
|
277
277
|
o ?? ""
|
|
278
278
|
].filter(Boolean).join(" "),
|
|
279
|
-
children: [/* @__PURE__ */
|
|
280
|
-
className:
|
|
281
|
-
children: [c, !a && /* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ O("div", {
|
|
280
|
+
className: A.topRow,
|
|
281
|
+
children: [c, !a && /* @__PURE__ */ D("div", { className: A.connectorHorizontal })]
|
|
282
282
|
}), l]
|
|
283
283
|
});
|
|
284
|
-
},
|
|
284
|
+
}, cn = {
|
|
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
|
+
}, ln = ({ children: e, label: t, className: n }) => /* @__PURE__ */ O("div", {
|
|
291
|
+
className: [cn.separator, n ?? ""].filter(Boolean).join(" "),
|
|
292
292
|
role: "separator",
|
|
293
293
|
children: [
|
|
294
|
-
/* @__PURE__ */
|
|
295
|
-
e ?? (t && /* @__PURE__ */
|
|
296
|
-
className:
|
|
294
|
+
/* @__PURE__ */ D(ye, { className: cn.line }),
|
|
295
|
+
e ?? (t && /* @__PURE__ */ D("span", {
|
|
296
|
+
className: cn.overline,
|
|
297
297
|
children: t
|
|
298
298
|
})),
|
|
299
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ D(ye, { className: cn.line })
|
|
300
300
|
]
|
|
301
|
-
}),
|
|
301
|
+
}), j = {
|
|
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
|
+
}, un = (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
|
+
}), dn = ({ logo: e, symbol: t, name: n, price: r, change: i, formatAmount: a = un, chart: o, periodLabel: s = "Last 6 months", onPeriodClick: c, className: l }) => {
|
|
331
|
+
let u = i.amount >= 0, d = u ? ft : nt, f = u ? "+" : "-", p = `${f}${a(i.amount)} (${f}${Math.abs(i.percent)}%)`, m = u ? j.trendUp : j.trendDown;
|
|
332
|
+
return o ? /* @__PURE__ */ O("div", {
|
|
333
|
+
className: [j.card, l ?? ""].filter(Boolean).join(" "),
|
|
334
334
|
children: [
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
className:
|
|
337
|
-
children: [/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ O("div", {
|
|
336
|
+
className: j.header,
|
|
337
|
+
children: [/* @__PURE__ */ D(yt, {
|
|
338
338
|
size: 16,
|
|
339
|
-
strokeWidth:
|
|
340
|
-
className:
|
|
341
|
-
}), /* @__PURE__ */
|
|
342
|
-
className:
|
|
339
|
+
strokeWidth: T(16),
|
|
340
|
+
className: j.headerIcon
|
|
341
|
+
}), /* @__PURE__ */ D("span", {
|
|
342
|
+
className: j.headerLabel,
|
|
343
343
|
children: "Stock market"
|
|
344
344
|
})]
|
|
345
345
|
}),
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
className:
|
|
348
|
-
children: [/* @__PURE__ */
|
|
349
|
-
className:
|
|
346
|
+
/* @__PURE__ */ O("div", {
|
|
347
|
+
className: j.tickerRow,
|
|
348
|
+
children: [/* @__PURE__ */ D("span", {
|
|
349
|
+
className: j.logoLg,
|
|
350
350
|
"aria-hidden": "true",
|
|
351
351
|
children: e
|
|
352
|
-
}), /* @__PURE__ */
|
|
353
|
-
className:
|
|
354
|
-
children: [/* @__PURE__ */
|
|
355
|
-
className:
|
|
352
|
+
}), /* @__PURE__ */ O("div", {
|
|
353
|
+
className: j.text,
|
|
354
|
+
children: [/* @__PURE__ */ D("p", {
|
|
355
|
+
className: j.symbol,
|
|
356
356
|
children: t
|
|
357
|
-
}), /* @__PURE__ */
|
|
358
|
-
className:
|
|
357
|
+
}), /* @__PURE__ */ D("p", {
|
|
358
|
+
className: j.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__ */ O("div", {
|
|
364
|
+
className: j.body,
|
|
365
|
+
children: [/* @__PURE__ */ O("div", {
|
|
366
|
+
className: j.priceRow,
|
|
367
|
+
children: [/* @__PURE__ */ O("div", {
|
|
368
|
+
className: j.priceGroup,
|
|
369
|
+
children: [/* @__PURE__ */ D("p", {
|
|
370
|
+
className: j.priceLg,
|
|
371
371
|
children: a(r)
|
|
372
|
-
}), /* @__PURE__ */
|
|
373
|
-
className:
|
|
374
|
-
children: [/* @__PURE__ */
|
|
372
|
+
}), /* @__PURE__ */ O("div", {
|
|
373
|
+
className: j.changeRowLg,
|
|
374
|
+
children: [/* @__PURE__ */ D(d, {
|
|
375
375
|
size: 24,
|
|
376
|
-
strokeWidth:
|
|
376
|
+
strokeWidth: T(24),
|
|
377
377
|
className: m
|
|
378
|
-
}), /* @__PURE__ */
|
|
379
|
-
className: [
|
|
378
|
+
}), /* @__PURE__ */ D("span", {
|
|
379
|
+
className: [j.changeTextLg, m].join(" "),
|
|
380
380
|
children: p
|
|
381
381
|
})]
|
|
382
382
|
})]
|
|
383
|
-
}), /* @__PURE__ */
|
|
383
|
+
}), /* @__PURE__ */ D(Qe, {
|
|
384
384
|
variant: "outline",
|
|
385
385
|
size: "sm",
|
|
386
|
-
rightIcon: /* @__PURE__ */
|
|
386
|
+
rightIcon: /* @__PURE__ */ D(rt, {
|
|
387
387
|
size: 16,
|
|
388
|
-
strokeWidth:
|
|
388
|
+
strokeWidth: T(16)
|
|
389
389
|
}),
|
|
390
390
|
onClick: c,
|
|
391
391
|
children: s
|
|
392
392
|
})]
|
|
393
|
-
}), /* @__PURE__ */
|
|
393
|
+
}), /* @__PURE__ */ D(Te, {
|
|
394
394
|
data: o,
|
|
395
|
-
className:
|
|
395
|
+
className: j.chart
|
|
396
396
|
})]
|
|
397
397
|
})
|
|
398
398
|
]
|
|
399
|
-
}) : /* @__PURE__ */
|
|
400
|
-
className: [
|
|
401
|
-
children: [/* @__PURE__ */
|
|
402
|
-
className:
|
|
403
|
-
children: [/* @__PURE__ */
|
|
404
|
-
className:
|
|
399
|
+
}) : /* @__PURE__ */ O("div", {
|
|
400
|
+
className: [j.row, l ?? ""].filter(Boolean).join(" "),
|
|
401
|
+
children: [/* @__PURE__ */ O("div", {
|
|
402
|
+
className: j.left,
|
|
403
|
+
children: [/* @__PURE__ */ D("span", {
|
|
404
|
+
className: j.logo,
|
|
405
405
|
"aria-hidden": "true",
|
|
406
406
|
children: e
|
|
407
|
-
}), /* @__PURE__ */
|
|
408
|
-
className:
|
|
409
|
-
children: [/* @__PURE__ */
|
|
410
|
-
className:
|
|
407
|
+
}), /* @__PURE__ */ O("div", {
|
|
408
|
+
className: j.text,
|
|
409
|
+
children: [/* @__PURE__ */ D("p", {
|
|
410
|
+
className: j.symbol,
|
|
411
411
|
children: t
|
|
412
|
-
}), /* @__PURE__ */
|
|
413
|
-
className:
|
|
412
|
+
}), /* @__PURE__ */ D("p", {
|
|
413
|
+
className: j.name,
|
|
414
414
|
children: n
|
|
415
415
|
})]
|
|
416
416
|
})]
|
|
417
|
-
}), /* @__PURE__ */
|
|
418
|
-
className:
|
|
419
|
-
children: [/* @__PURE__ */
|
|
420
|
-
className:
|
|
417
|
+
}), /* @__PURE__ */ O("div", {
|
|
418
|
+
className: j.right,
|
|
419
|
+
children: [/* @__PURE__ */ D("p", {
|
|
420
|
+
className: j.price,
|
|
421
421
|
children: a(r)
|
|
422
|
-
}), /* @__PURE__ */
|
|
423
|
-
className:
|
|
424
|
-
children: [/* @__PURE__ */
|
|
422
|
+
}), /* @__PURE__ */ O("div", {
|
|
423
|
+
className: j.changeRow,
|
|
424
|
+
children: [/* @__PURE__ */ D(d, {
|
|
425
425
|
size: 20,
|
|
426
|
-
strokeWidth:
|
|
426
|
+
strokeWidth: T(20),
|
|
427
427
|
className: m
|
|
428
|
-
}), /* @__PURE__ */
|
|
429
|
-
className: [
|
|
428
|
+
}), /* @__PURE__ */ D("span", {
|
|
429
|
+
className: [j.changeText, m].join(" "),
|
|
430
430
|
children: p
|
|
431
431
|
})]
|
|
432
432
|
})]
|
|
433
433
|
})]
|
|
434
434
|
});
|
|
435
|
-
},
|
|
435
|
+
}, fn = {
|
|
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
|
+
}, pn = 160, mn = ({ tags: e, onRemove: t, className: n }) => {
|
|
441
|
+
let [r, i] = E.useState(null), a = E.useRef(void 0);
|
|
442
|
+
E.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
|
+
}, pn);
|
|
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__ */ D("div", {
|
|
455
|
+
className: [fn.tags, n ?? ""].filter(Boolean).join(" "),
|
|
456
|
+
children: e.map((e, n) => /* @__PURE__ */ D(Be, {
|
|
457
|
+
className: [fn.tag, r === e ? fn["tag--leaving"] : ""].filter(Boolean).join(" "),
|
|
458
|
+
rightIcon: t && /* @__PURE__ */ D("button", {
|
|
459
459
|
type: "button",
|
|
460
|
-
className:
|
|
460
|
+
className: fn.remove,
|
|
461
461
|
onClick: () => o(e, n),
|
|
462
462
|
"aria-label": `Remove ${e}`,
|
|
463
|
-
children: /* @__PURE__ */
|
|
463
|
+
children: /* @__PURE__ */ D(it, {
|
|
464
464
|
size: 12,
|
|
465
|
-
strokeWidth:
|
|
465
|
+
strokeWidth: T(12)
|
|
466
466
|
})
|
|
467
467
|
}),
|
|
468
468
|
children: e
|
|
469
469
|
}, e))
|
|
470
470
|
});
|
|
471
|
-
},
|
|
471
|
+
}, M = {
|
|
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
|
+
}, hn = (e) => `${e >= 0 ? "+" : ""}${e}%`, gn = ({ items: e, formatChange: t, ariaHidden: n }) => /* @__PURE__ */ D("div", {
|
|
484
|
+
className: M.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 ? ft : nt, a = r ? M.trendUp : M.trendDown;
|
|
488
|
+
return /* @__PURE__ */ O("div", {
|
|
489
|
+
className: M.item,
|
|
490
490
|
children: [
|
|
491
|
-
/* @__PURE__ */
|
|
492
|
-
className:
|
|
491
|
+
/* @__PURE__ */ D("span", {
|
|
492
|
+
className: M.symbol,
|
|
493
493
|
children: e.symbol
|
|
494
494
|
}),
|
|
495
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ D(i, {
|
|
496
496
|
size: 14,
|
|
497
|
-
strokeWidth:
|
|
497
|
+
strokeWidth: T(14),
|
|
498
498
|
className: a
|
|
499
499
|
}),
|
|
500
|
-
/* @__PURE__ */
|
|
501
|
-
className: [
|
|
500
|
+
/* @__PURE__ */ D("span", {
|
|
501
|
+
className: [M.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
|
+
}), _n = ({ items: e, speed: t = 40, formatChange: n = hn, className: r }) => {
|
|
508
|
+
let i = E.useRef(null), [a, o] = E.useState(20);
|
|
509
|
+
return E.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__ */ O("div", {
|
|
522
|
+
className: [M.ticker, r ?? ""].filter(Boolean).join(" "),
|
|
523
523
|
children: [
|
|
524
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ O("div", {
|
|
525
525
|
ref: i,
|
|
526
|
-
className:
|
|
526
|
+
className: M.track,
|
|
527
527
|
style: { "--ticker-duration": `${a}s` },
|
|
528
|
-
children: [/* @__PURE__ */
|
|
528
|
+
children: [/* @__PURE__ */ D(gn, {
|
|
529
529
|
items: e,
|
|
530
530
|
formatChange: n
|
|
531
|
-
}), /* @__PURE__ */
|
|
531
|
+
}), /* @__PURE__ */ D(gn, {
|
|
532
532
|
items: e,
|
|
533
533
|
formatChange: n,
|
|
534
534
|
ariaHidden: !0
|
|
535
535
|
})]
|
|
536
536
|
}),
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
className:
|
|
537
|
+
/* @__PURE__ */ D("div", {
|
|
538
|
+
className: M.fadeLeft,
|
|
539
539
|
"aria-hidden": "true"
|
|
540
540
|
}),
|
|
541
|
-
/* @__PURE__ */
|
|
542
|
-
className:
|
|
541
|
+
/* @__PURE__ */ D("div", {
|
|
542
|
+
className: M.fadeRight,
|
|
543
543
|
"aria-hidden": "true"
|
|
544
544
|
})
|
|
545
545
|
]
|
|
546
546
|
});
|
|
547
|
-
},
|
|
547
|
+
}, N = {
|
|
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
|
+
}, vn = (e) => `${e >= 0 ? "+" : "-"}${Math.abs(e).toLocaleString("en-US", {
|
|
564
564
|
style: "currency",
|
|
565
565
|
currency: "USD"
|
|
566
|
-
})}`,
|
|
567
|
-
className: [
|
|
566
|
+
})}`, yn = ({ transactions: e, formatAmount: t = vn, emptyTitle: n = "No transactions yet", emptyDescription: r = "Your activity will show up here.", className: i }) => e.length === 0 ? /* @__PURE__ */ O("div", {
|
|
567
|
+
className: [N.empty, i ?? ""].filter(Boolean).join(" "),
|
|
568
568
|
children: [
|
|
569
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ D(bt, {
|
|
570
570
|
size: 24,
|
|
571
|
-
strokeWidth:
|
|
572
|
-
className:
|
|
571
|
+
strokeWidth: T(24),
|
|
572
|
+
className: N.emptyIcon
|
|
573
573
|
}),
|
|
574
|
-
/* @__PURE__ */
|
|
575
|
-
className:
|
|
574
|
+
/* @__PURE__ */ D("p", {
|
|
575
|
+
className: N.emptyTitle,
|
|
576
576
|
children: n
|
|
577
577
|
}),
|
|
578
|
-
/* @__PURE__ */
|
|
579
|
-
className:
|
|
578
|
+
/* @__PURE__ */ D("p", {
|
|
579
|
+
className: N.emptyDesc,
|
|
580
580
|
children: r
|
|
581
581
|
})
|
|
582
582
|
]
|
|
583
|
-
}) : /* @__PURE__ */
|
|
584
|
-
className: [
|
|
583
|
+
}) : /* @__PURE__ */ D("div", {
|
|
584
|
+
className: [N.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__ */ O("div", {
|
|
588
|
+
className: [N.row, r === e.length - 1 ? N.rowLast : ""].filter(Boolean).join(" "),
|
|
589
|
+
children: [/* @__PURE__ */ O("div", {
|
|
590
|
+
className: N.left,
|
|
591
|
+
children: [/* @__PURE__ */ D("span", {
|
|
592
|
+
className: N.iconWrap,
|
|
593
593
|
"aria-hidden": "true",
|
|
594
594
|
children: n.icon
|
|
595
|
-
}), /* @__PURE__ */
|
|
596
|
-
className:
|
|
597
|
-
children: [/* @__PURE__ */
|
|
598
|
-
className:
|
|
595
|
+
}), /* @__PURE__ */ O("div", {
|
|
596
|
+
className: N.info,
|
|
597
|
+
children: [/* @__PURE__ */ D("p", {
|
|
598
|
+
className: N.name,
|
|
599
599
|
children: n.name
|
|
600
|
-
}), /* @__PURE__ */
|
|
601
|
-
className:
|
|
600
|
+
}), /* @__PURE__ */ D("p", {
|
|
601
|
+
className: N.category,
|
|
602
602
|
children: n.category
|
|
603
603
|
})]
|
|
604
604
|
})]
|
|
605
|
-
}), /* @__PURE__ */
|
|
606
|
-
className: [
|
|
605
|
+
}), /* @__PURE__ */ D("p", {
|
|
606
|
+
className: [N.amount, i ? N.amountUp : N.amountDown].join(" "),
|
|
607
607
|
children: t(n.amount)
|
|
608
608
|
})]
|
|
609
609
|
}, n.id ?? `${n.name}-${r}`);
|
|
610
610
|
})
|
|
611
|
-
}),
|
|
611
|
+
}), P = {
|
|
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
|
+
}, bn = ({ quote: e, author: t, className: n }) => {
|
|
626
626
|
let r = !!t;
|
|
627
|
-
return /* @__PURE__ */
|
|
627
|
+
return /* @__PURE__ */ O("div", {
|
|
628
628
|
className: [
|
|
629
|
-
|
|
630
|
-
r ?
|
|
629
|
+
P.root,
|
|
630
|
+
r ? P.rootAttributed : P.rootSimple,
|
|
631
631
|
n ?? ""
|
|
632
632
|
].filter(Boolean).join(" "),
|
|
633
|
-
children: [/* @__PURE__ */
|
|
633
|
+
children: [/* @__PURE__ */ D(ye, {
|
|
634
634
|
orientation: "vertical",
|
|
635
|
-
className:
|
|
636
|
-
}), /* @__PURE__ */
|
|
637
|
-
className:
|
|
635
|
+
className: P.rail
|
|
636
|
+
}), /* @__PURE__ */ O("div", {
|
|
637
|
+
className: P.body,
|
|
638
638
|
children: [
|
|
639
|
-
r && /* @__PURE__ */
|
|
640
|
-
className:
|
|
639
|
+
r && /* @__PURE__ */ D("span", {
|
|
640
|
+
className: P.markRow,
|
|
641
641
|
"aria-hidden": "true",
|
|
642
|
-
children: /* @__PURE__ */
|
|
642
|
+
children: /* @__PURE__ */ D(_t, {
|
|
643
643
|
size: 12,
|
|
644
|
-
strokeWidth:
|
|
645
|
-
className:
|
|
644
|
+
strokeWidth: T(12),
|
|
645
|
+
className: P.mark,
|
|
646
646
|
fill: "currentColor"
|
|
647
647
|
})
|
|
648
648
|
}),
|
|
649
|
-
/* @__PURE__ */
|
|
650
|
-
className: r ?
|
|
649
|
+
/* @__PURE__ */ D("p", {
|
|
650
|
+
className: r ? P.quoteAttributed : P.quoteSimple,
|
|
651
651
|
children: r ? e : `"${e}"`
|
|
652
652
|
}),
|
|
653
|
-
r && /* @__PURE__ */
|
|
654
|
-
className: [
|
|
653
|
+
r && /* @__PURE__ */ D("span", {
|
|
654
|
+
className: [P.markRow, P.markRowEnd].join(" "),
|
|
655
655
|
"aria-hidden": "true",
|
|
656
|
-
children: /* @__PURE__ */
|
|
656
|
+
children: /* @__PURE__ */ D(_t, {
|
|
657
657
|
size: 12,
|
|
658
|
-
strokeWidth:
|
|
659
|
-
className:
|
|
658
|
+
strokeWidth: T(12),
|
|
659
|
+
className: P.mark,
|
|
660
660
|
fill: "currentColor"
|
|
661
661
|
})
|
|
662
662
|
}),
|
|
663
|
-
t && /* @__PURE__ */
|
|
664
|
-
className:
|
|
665
|
-
children: [/* @__PURE__ */
|
|
663
|
+
t && /* @__PURE__ */ O("div", {
|
|
664
|
+
className: P.author,
|
|
665
|
+
children: [/* @__PURE__ */ D(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__ */ O("p", {
|
|
670
|
+
className: P.authorText,
|
|
671
|
+
children: [/* @__PURE__ */ D("span", {
|
|
672
|
+
className: P.authorName,
|
|
673
673
|
children: t.name
|
|
674
|
-
}), /* @__PURE__ */
|
|
675
|
-
className:
|
|
674
|
+
}), /* @__PURE__ */ O("span", {
|
|
675
|
+
className: P.authorRole,
|
|
676
676
|
children: [", ", t.role]
|
|
677
677
|
})]
|
|
678
678
|
})]
|
|
@@ -680,51 +680,51 @@ var Yt = {
|
|
|
680
680
|
]
|
|
681
681
|
})]
|
|
682
682
|
});
|
|
683
|
-
},
|
|
683
|
+
}, xn = {
|
|
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
|
+
}, Sn = ({ text: e, align: t = "left", className: n }) => /* @__PURE__ */ O("div", {
|
|
691
691
|
className: [
|
|
692
|
-
|
|
693
|
-
t === "top" ?
|
|
692
|
+
xn.root,
|
|
693
|
+
t === "top" ? xn.rootTop : xn.rootLeft,
|
|
694
694
|
n ?? ""
|
|
695
695
|
].filter(Boolean).join(" "),
|
|
696
|
-
children: [/* @__PURE__ */
|
|
697
|
-
className: t === "top" ?
|
|
696
|
+
children: [/* @__PURE__ */ D("span", {
|
|
697
|
+
className: t === "top" ? xn.ruleTop : xn.ruleLeft,
|
|
698
698
|
"aria-hidden": "true"
|
|
699
|
-
}), /* @__PURE__ */
|
|
700
|
-
className:
|
|
699
|
+
}), /* @__PURE__ */ D("p", {
|
|
700
|
+
className: xn.text,
|
|
701
701
|
children: e
|
|
702
702
|
})]
|
|
703
|
-
}),
|
|
703
|
+
}), Cn = {
|
|
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
|
+
}, wn = ({ src: e, alt: t = "", size: n = "large", caption: r, className: i }) => /* @__PURE__ */ O("figure", {
|
|
711
711
|
className: [
|
|
712
|
-
|
|
713
|
-
|
|
712
|
+
Cn.root,
|
|
713
|
+
Cn[`root--${n}`],
|
|
714
714
|
i ?? ""
|
|
715
715
|
].filter(Boolean).join(" "),
|
|
716
|
-
children: [/* @__PURE__ */
|
|
717
|
-
className:
|
|
718
|
-
children: /* @__PURE__ */
|
|
716
|
+
children: [/* @__PURE__ */ D("span", {
|
|
717
|
+
className: Cn.imageWrap,
|
|
718
|
+
children: /* @__PURE__ */ D("img", {
|
|
719
719
|
src: e,
|
|
720
720
|
alt: t,
|
|
721
|
-
className:
|
|
721
|
+
className: Cn.image
|
|
722
722
|
})
|
|
723
|
-
}), r && /* @__PURE__ */
|
|
724
|
-
className:
|
|
723
|
+
}), r && /* @__PURE__ */ D("figcaption", {
|
|
724
|
+
className: Cn.caption,
|
|
725
725
|
children: r
|
|
726
726
|
})]
|
|
727
|
-
}),
|
|
727
|
+
}), F = {
|
|
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
|
+
}, Tn = ({ 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__ */ O("div", {
|
|
739
739
|
className: [
|
|
740
|
-
|
|
741
|
-
c === "left" ?
|
|
740
|
+
F.root,
|
|
741
|
+
c === "left" ? F.rootLeft : F.rootCenter,
|
|
742
742
|
l ?? ""
|
|
743
743
|
].filter(Boolean).join(" "),
|
|
744
744
|
children: [
|
|
745
|
-
r && /* @__PURE__ */
|
|
745
|
+
r && /* @__PURE__ */ D(Be, {
|
|
746
746
|
variant: "accent",
|
|
747
747
|
emphasis: "subtle",
|
|
748
748
|
children: r
|
|
749
749
|
}),
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
className:
|
|
750
|
+
/* @__PURE__ */ D("p", {
|
|
751
|
+
className: F.title,
|
|
752
752
|
children: e
|
|
753
753
|
}),
|
|
754
|
-
t && /* @__PURE__ */
|
|
755
|
-
className:
|
|
754
|
+
t && /* @__PURE__ */ D("p", {
|
|
755
|
+
className: F.description,
|
|
756
756
|
children: t
|
|
757
757
|
}),
|
|
758
|
-
u && /* @__PURE__ */
|
|
759
|
-
className:
|
|
760
|
-
children: [i && /* @__PURE__ */
|
|
758
|
+
u && /* @__PURE__ */ O("div", {
|
|
759
|
+
className: F.ctaRow,
|
|
760
|
+
children: [i && /* @__PURE__ */ D(Qe, {
|
|
761
761
|
variant: "primary",
|
|
762
762
|
onClick: i.onClick,
|
|
763
763
|
children: i.label
|
|
764
|
-
}), a && /* @__PURE__ */
|
|
764
|
+
}), a && /* @__PURE__ */ D(Qe, {
|
|
765
765
|
variant: "secondary",
|
|
766
|
-
leftIcon: /* @__PURE__ */
|
|
766
|
+
leftIcon: /* @__PURE__ */ D(Ct, {
|
|
767
767
|
size: 16,
|
|
768
|
-
strokeWidth:
|
|
768
|
+
strokeWidth: T(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__ */ O("div", {
|
|
776
|
+
className: F.avatarBlock,
|
|
777
|
+
children: [/* @__PURE__ */ D(n, {
|
|
778
778
|
size: "md",
|
|
779
779
|
avatars: o
|
|
780
|
-
}), s && /* @__PURE__ */
|
|
781
|
-
className:
|
|
780
|
+
}), s && /* @__PURE__ */ D("p", {
|
|
781
|
+
className: F.avatarsCaption,
|
|
782
782
|
children: s
|
|
783
783
|
})]
|
|
784
784
|
})
|
|
785
785
|
]
|
|
786
786
|
});
|
|
787
|
-
},
|
|
787
|
+
}, En = {
|
|
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
|
+
}, Dn = ({ items: e, style: t = "check", className: n }) => /* @__PURE__ */ D("ul", {
|
|
794
|
+
className: [En.root, n ?? ""].filter(Boolean).join(" "),
|
|
795
|
+
children: e.map((e, n) => /* @__PURE__ */ O("li", {
|
|
796
|
+
className: En.item,
|
|
797
|
+
children: [/* @__PURE__ */ O("span", {
|
|
798
|
+
className: En.marker,
|
|
799
799
|
"aria-hidden": "true",
|
|
800
800
|
children: [
|
|
801
|
-
t === "check" && /* @__PURE__ */
|
|
801
|
+
t === "check" && /* @__PURE__ */ D(pt, {
|
|
802
802
|
size: 18,
|
|
803
|
-
strokeWidth:
|
|
803
|
+
strokeWidth: T(18)
|
|
804
804
|
}),
|
|
805
|
-
t === "arrow" && /* @__PURE__ */
|
|
805
|
+
t === "arrow" && /* @__PURE__ */ D(xt, {
|
|
806
806
|
size: 16,
|
|
807
|
-
strokeWidth:
|
|
807
|
+
strokeWidth: T(16)
|
|
808
808
|
}),
|
|
809
|
-
t === "bullet" && /* @__PURE__ */
|
|
809
|
+
t === "bullet" && /* @__PURE__ */ D("span", { className: En.dot })
|
|
810
810
|
]
|
|
811
|
-
}), /* @__PURE__ */
|
|
812
|
-
className:
|
|
811
|
+
}), /* @__PURE__ */ D("span", {
|
|
812
|
+
className: En.label,
|
|
813
813
|
children: e
|
|
814
814
|
})]
|
|
815
815
|
}, n))
|
|
816
|
-
}),
|
|
816
|
+
}), On = {
|
|
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
|
+
}, kn = ({ items: e, gap: t, ariaHidden: n }) => /* @__PURE__ */ D("div", {
|
|
824
|
+
className: On.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__ */ D("div", {
|
|
831
|
+
className: On.item,
|
|
832
832
|
children: e
|
|
833
833
|
}, t))
|
|
834
|
-
}),
|
|
835
|
-
let i =
|
|
836
|
-
return
|
|
834
|
+
}), An = ({ items: e, speed: t = 40, gap: n, className: r }) => {
|
|
835
|
+
let i = E.useRef(null), a = E.useRef(0), o = E.useRef(0), s = E.useRef(!1);
|
|
836
|
+
return E.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]), E.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__ */ O("div", {
|
|
856
|
+
className: [On.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__ */ O("div", {
|
|
865
865
|
ref: i,
|
|
866
|
-
className:
|
|
867
|
-
children: [/* @__PURE__ */
|
|
866
|
+
className: On.track,
|
|
867
|
+
children: [/* @__PURE__ */ D(kn, {
|
|
868
868
|
items: e,
|
|
869
869
|
gap: n
|
|
870
|
-
}), /* @__PURE__ */
|
|
870
|
+
}), /* @__PURE__ */ D(kn, {
|
|
871
871
|
items: e,
|
|
872
872
|
gap: n,
|
|
873
873
|
ariaHidden: !0
|
|
874
874
|
})]
|
|
875
875
|
}),
|
|
876
|
-
/* @__PURE__ */
|
|
877
|
-
className:
|
|
876
|
+
/* @__PURE__ */ D("div", {
|
|
877
|
+
className: On.fadeLeft,
|
|
878
878
|
"aria-hidden": "true"
|
|
879
879
|
}),
|
|
880
|
-
/* @__PURE__ */
|
|
881
|
-
className:
|
|
880
|
+
/* @__PURE__ */ D("div", {
|
|
881
|
+
className: On.fadeRight,
|
|
882
882
|
"aria-hidden": "true"
|
|
883
883
|
})
|
|
884
884
|
]
|
|
885
885
|
});
|
|
886
|
-
},
|
|
886
|
+
}, jn = {
|
|
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
|
+
}, Mn = ({ value: e, label: t, trend: n, className: r }) => {
|
|
895
|
+
let i = n !== void 0, a = i && n >= 0, o = a ? ft : nt;
|
|
896
|
+
return /* @__PURE__ */ O("div", {
|
|
897
|
+
className: [jn.root, r ?? ""].filter(Boolean).join(" "),
|
|
898
|
+
children: [/* @__PURE__ */ O("div", {
|
|
899
|
+
className: jn.numRow,
|
|
900
|
+
children: [/* @__PURE__ */ D("p", {
|
|
901
|
+
className: jn.value,
|
|
902
902
|
children: e
|
|
903
|
-
}), i && /* @__PURE__ */
|
|
904
|
-
className: [
|
|
903
|
+
}), i && /* @__PURE__ */ O("span", {
|
|
904
|
+
className: [jn.trend, a ? jn.trendUp : jn.trendDown].join(" "),
|
|
905
905
|
children: [
|
|
906
|
-
/* @__PURE__ */
|
|
906
|
+
/* @__PURE__ */ D(o, {
|
|
907
907
|
size: 24,
|
|
908
|
-
strokeWidth:
|
|
908
|
+
strokeWidth: T(24)
|
|
909
909
|
}),
|
|
910
910
|
Math.abs(n),
|
|
911
911
|
"%"
|
|
912
912
|
]
|
|
913
913
|
})]
|
|
914
|
-
}), /* @__PURE__ */
|
|
915
|
-
className:
|
|
914
|
+
}), /* @__PURE__ */ D("p", {
|
|
915
|
+
className: jn.label,
|
|
916
916
|
children: t
|
|
917
917
|
})]
|
|
918
918
|
});
|
|
919
|
-
},
|
|
919
|
+
}, I = {
|
|
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
|
+
}, Nn = ({ 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] = E.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 = E.useRef(null), [m, h] = E.useState(0);
|
|
935
|
+
return E.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__ */ O("div", {
|
|
943
|
+
className: [I.root, s ?? ""].filter(Boolean).join(" "),
|
|
944
|
+
children: [/* @__PURE__ */ O("div", {
|
|
945
|
+
className: I.header,
|
|
946
|
+
children: [/* @__PURE__ */ D("p", {
|
|
947
|
+
className: I.label,
|
|
948
948
|
children: e
|
|
949
|
-
}), /* @__PURE__ */
|
|
949
|
+
}), /* @__PURE__ */ D("button", {
|
|
950
950
|
type: "button",
|
|
951
|
-
className:
|
|
951
|
+
className: I.toggle,
|
|
952
952
|
onClick: f,
|
|
953
953
|
"aria-expanded": d,
|
|
954
954
|
"aria-label": d ? "Close menu" : "Open menu",
|
|
955
|
-
children:
|
|
955
|
+
children: D(d ? it : ut, {
|
|
956
956
|
size: 16,
|
|
957
|
-
strokeWidth:
|
|
957
|
+
strokeWidth: T(16)
|
|
958
958
|
})
|
|
959
959
|
})]
|
|
960
|
-
}), /* @__PURE__ */
|
|
961
|
-
className: [
|
|
960
|
+
}), /* @__PURE__ */ D("div", {
|
|
961
|
+
className: [I.collapse, d ? I.collapseOpen : ""].filter(Boolean).join(" "),
|
|
962
962
|
style: { maxHeight: d ? `${m}px` : "0px" },
|
|
963
963
|
"aria-hidden": !d,
|
|
964
|
-
children: /* @__PURE__ */
|
|
964
|
+
children: /* @__PURE__ */ O("div", {
|
|
965
965
|
ref: p,
|
|
966
|
-
className:
|
|
966
|
+
className: I.collapseInner,
|
|
967
967
|
children: [
|
|
968
|
-
/* @__PURE__ */
|
|
969
|
-
className:
|
|
968
|
+
/* @__PURE__ */ D("nav", {
|
|
969
|
+
className: I.navLinks,
|
|
970
970
|
"aria-label": e,
|
|
971
|
-
children: t.map((e) => /* @__PURE__ */
|
|
971
|
+
children: t.map((e) => /* @__PURE__ */ D("a", {
|
|
972
972
|
href: e.href,
|
|
973
973
|
onClick: e.onClick,
|
|
974
|
-
className:
|
|
974
|
+
className: I.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__ */ D(ye, { className: I.fullWidth }),
|
|
980
|
+
/* @__PURE__ */ D(Qe, {
|
|
981
981
|
variant: "primary",
|
|
982
|
-
className:
|
|
982
|
+
className: I.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
|
+
}, Pn = {
|
|
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
|
+
}, Fn = {
|
|
998
998
|
sm: 14,
|
|
999
999
|
md: 16,
|
|
1000
1000
|
lg: 18
|
|
1001
|
-
},
|
|
1002
|
-
let i =
|
|
1001
|
+
}, In = ({ size: e = "md", logo: t, label: n, className: r }) => {
|
|
1002
|
+
let i = Fn[e], a = E.isValidElement(t) ? E.cloneElement(t, {
|
|
1003
1003
|
size: i,
|
|
1004
|
-
strokeWidth:
|
|
1005
|
-
}) : t ?? /* @__PURE__ */
|
|
1004
|
+
strokeWidth: T(i)
|
|
1005
|
+
}) : t ?? /* @__PURE__ */ D("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: Pn.defaultMark
|
|
1011
1011
|
});
|
|
1012
|
-
return /* @__PURE__ */
|
|
1012
|
+
return /* @__PURE__ */ D("span", {
|
|
1013
1013
|
className: [
|
|
1014
|
-
|
|
1015
|
-
|
|
1014
|
+
Pn.root,
|
|
1015
|
+
Pn[`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
|
+
}, L = {
|
|
1023
1023
|
root: "_root_ibchq_1",
|
|
1024
1024
|
rootCompact: "_rootCompact_ibchq_7",
|
|
1025
1025
|
rootDetailed: "_rootDetailed_ibchq_14",
|
|
@@ -1030,61 +1030,61 @@ var Yt = {
|
|
|
1030
1030
|
bio: "_bio_ibchq_53",
|
|
1031
1031
|
social: "_social_ibchq_63",
|
|
1032
1032
|
socialBtn: "_socialBtn_ibchq_71"
|
|
1033
|
-
},
|
|
1033
|
+
}, Ln = ({ 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__ */ O("div", {
|
|
1036
1036
|
className: [
|
|
1037
|
-
|
|
1038
|
-
s ?
|
|
1037
|
+
L.root,
|
|
1038
|
+
s ? L.rootDetailed : L.rootCompact,
|
|
1039
1039
|
o ?? ""
|
|
1040
1040
|
].filter(Boolean).join(" "),
|
|
1041
1041
|
children: [
|
|
1042
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ D(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__ */ O("div", {
|
|
1048
|
+
className: s ? L.infoDetailed : L.infoCompact,
|
|
1049
|
+
children: [/* @__PURE__ */ D("p", {
|
|
1050
|
+
className: L.name,
|
|
1051
1051
|
children: e
|
|
1052
|
-
}), /* @__PURE__ */
|
|
1053
|
-
className:
|
|
1052
|
+
}), /* @__PURE__ */ D("p", {
|
|
1053
|
+
className: L.role,
|
|
1054
1054
|
children: t
|
|
1055
1055
|
})]
|
|
1056
1056
|
}),
|
|
1057
|
-
s && i && /* @__PURE__ */
|
|
1058
|
-
className:
|
|
1057
|
+
s && i && /* @__PURE__ */ D("p", {
|
|
1058
|
+
className: L.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__ */ D("div", {
|
|
1062
|
+
className: L.social,
|
|
1063
|
+
children: a.map((e, t) => /* @__PURE__ */ D("a", {
|
|
1064
1064
|
href: e.href,
|
|
1065
1065
|
onClick: e.onClick,
|
|
1066
|
-
className:
|
|
1066
|
+
className: L.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
|
+
}, Rn = {
|
|
1074
1074
|
heading: "_heading_96cdx_1",
|
|
1075
1075
|
h2: "_h2_96cdx_8",
|
|
1076
1076
|
h3: "_h3_96cdx_14"
|
|
1077
|
-
},
|
|
1077
|
+
}, zn = ({ children: e, level: t = "h2", className: n }) => /* @__PURE__ */ D(t, {
|
|
1078
1078
|
className: [
|
|
1079
|
-
|
|
1080
|
-
|
|
1079
|
+
Rn.heading,
|
|
1080
|
+
Rn[t],
|
|
1081
1081
|
n ?? ""
|
|
1082
1082
|
].filter(Boolean).join(" "),
|
|
1083
1083
|
children: e
|
|
1084
|
-
}),
|
|
1085
|
-
className: [
|
|
1084
|
+
}), Bn = { paragraph: "_paragraph_8pqdi_1" }, Vn = ({ children: e, className: t }) => /* @__PURE__ */ D("p", {
|
|
1085
|
+
className: [Bn.paragraph, t ?? ""].filter(Boolean).join(" "),
|
|
1086
1086
|
children: e
|
|
1087
|
-
}),
|
|
1087
|
+
}), R = {
|
|
1088
1088
|
rootBordered: "_rootBordered_5cgsj_1",
|
|
1089
1089
|
rail: "_rail_5cgsj_12",
|
|
1090
1090
|
contentHorizontal: "_contentHorizontal_5cgsj_18",
|
|
@@ -1093,45 +1093,45 @@ var Yt = {
|
|
|
1093
1093
|
textVertical: "_textVertical_5cgsj_41",
|
|
1094
1094
|
title: "_title_5cgsj_49",
|
|
1095
1095
|
description: "_description_5cgsj_57"
|
|
1096
|
-
},
|
|
1097
|
-
let o = r === "vertical", s = /* @__PURE__ */
|
|
1098
|
-
className: o ?
|
|
1099
|
-
children: [/* @__PURE__ */
|
|
1096
|
+
}, Hn = ({ icon: e, title: t, description: n, layout: r = "horizontal", leftBorder: i = !1, className: a }) => {
|
|
1097
|
+
let o = r === "vertical", s = /* @__PURE__ */ O("div", {
|
|
1098
|
+
className: o ? R.contentVertical : R.contentHorizontal,
|
|
1099
|
+
children: [/* @__PURE__ */ D(ie, {
|
|
1100
1100
|
icon: e,
|
|
1101
1101
|
size: "sm",
|
|
1102
1102
|
variant: "light"
|
|
1103
|
-
}), /* @__PURE__ */
|
|
1104
|
-
className: o ?
|
|
1105
|
-
children: [/* @__PURE__ */
|
|
1106
|
-
className:
|
|
1103
|
+
}), /* @__PURE__ */ O("div", {
|
|
1104
|
+
className: o ? R.textVertical : R.textHorizontal,
|
|
1105
|
+
children: [/* @__PURE__ */ D("p", {
|
|
1106
|
+
className: R.title,
|
|
1107
1107
|
children: t
|
|
1108
|
-
}), /* @__PURE__ */
|
|
1109
|
-
className:
|
|
1108
|
+
}), /* @__PURE__ */ D("p", {
|
|
1109
|
+
className: R.description,
|
|
1110
1110
|
children: n
|
|
1111
1111
|
})]
|
|
1112
1112
|
})]
|
|
1113
1113
|
});
|
|
1114
|
-
return i ? /* @__PURE__ */
|
|
1115
|
-
className: [
|
|
1116
|
-
children: [/* @__PURE__ */
|
|
1114
|
+
return i ? /* @__PURE__ */ O("div", {
|
|
1115
|
+
className: [R.rootBordered, a ?? ""].filter(Boolean).join(" "),
|
|
1116
|
+
children: [/* @__PURE__ */ D(ye, {
|
|
1117
1117
|
orientation: "vertical",
|
|
1118
|
-
className:
|
|
1118
|
+
className: R.rail
|
|
1119
1119
|
}), s]
|
|
1120
|
-
}) :
|
|
1121
|
-
},
|
|
1120
|
+
}) : E.cloneElement(s, { className: [s.props.className, a ?? ""].filter(Boolean).join(" ") });
|
|
1121
|
+
}, Un = { chart: "_chart_qqaox_2" }, Wn = {
|
|
1122
1122
|
sm: 180,
|
|
1123
1123
|
md: 240,
|
|
1124
1124
|
lg: 320,
|
|
1125
1125
|
xl: 420
|
|
1126
|
-
},
|
|
1127
|
-
let o =
|
|
1128
|
-
return /* @__PURE__ */
|
|
1126
|
+
}, Gn = ({ data: e, variant: t = "default", seriesLabels: n = ["Value", "Value 2"], size: r = "md", height: i, className: a }) => {
|
|
1127
|
+
let o = E.useRef(null), s = He(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;
|
|
1128
|
+
return /* @__PURE__ */ D("div", {
|
|
1129
1129
|
ref: o,
|
|
1130
|
-
className: [
|
|
1131
|
-
children: /* @__PURE__ */
|
|
1130
|
+
className: [Un.chart, a ?? ""].filter(Boolean).join(" "),
|
|
1131
|
+
children: /* @__PURE__ */ D(Wt, {
|
|
1132
1132
|
width: "100%",
|
|
1133
|
-
height: i ??
|
|
1134
|
-
children: /* @__PURE__ */
|
|
1133
|
+
height: i ?? Wn[r],
|
|
1134
|
+
children: /* @__PURE__ */ O(jt, {
|
|
1135
1135
|
data: e,
|
|
1136
1136
|
margin: {
|
|
1137
1137
|
top: 8,
|
|
@@ -1140,43 +1140,43 @@ var Yt = {
|
|
|
1140
1140
|
left: 0
|
|
1141
1141
|
},
|
|
1142
1142
|
children: [
|
|
1143
|
-
/* @__PURE__ */
|
|
1143
|
+
/* @__PURE__ */ O("defs", { children: [/* @__PURE__ */ O("linearGradient", {
|
|
1144
1144
|
id: "sakani-area-1",
|
|
1145
1145
|
x1: "0",
|
|
1146
1146
|
y1: "0",
|
|
1147
1147
|
x2: "0",
|
|
1148
1148
|
y2: "1",
|
|
1149
|
-
children: [/* @__PURE__ */
|
|
1149
|
+
children: [/* @__PURE__ */ D("stop", {
|
|
1150
1150
|
offset: "5%",
|
|
1151
1151
|
stopColor: c,
|
|
1152
1152
|
stopOpacity: .35
|
|
1153
|
-
}), /* @__PURE__ */
|
|
1153
|
+
}), /* @__PURE__ */ D("stop", {
|
|
1154
1154
|
offset: "95%",
|
|
1155
1155
|
stopColor: c,
|
|
1156
1156
|
stopOpacity: .02
|
|
1157
1157
|
})]
|
|
1158
|
-
}), /* @__PURE__ */
|
|
1158
|
+
}), /* @__PURE__ */ O("linearGradient", {
|
|
1159
1159
|
id: "sakani-area-2",
|
|
1160
1160
|
x1: "0",
|
|
1161
1161
|
y1: "0",
|
|
1162
1162
|
x2: "0",
|
|
1163
1163
|
y2: "1",
|
|
1164
|
-
children: [/* @__PURE__ */
|
|
1164
|
+
children: [/* @__PURE__ */ D("stop", {
|
|
1165
1165
|
offset: "5%",
|
|
1166
1166
|
stopColor: l,
|
|
1167
1167
|
stopOpacity: .35
|
|
1168
|
-
}), /* @__PURE__ */
|
|
1168
|
+
}), /* @__PURE__ */ D("stop", {
|
|
1169
1169
|
offset: "95%",
|
|
1170
1170
|
stopColor: l,
|
|
1171
1171
|
stopOpacity: .02
|
|
1172
1172
|
})]
|
|
1173
1173
|
})] }),
|
|
1174
|
-
/* @__PURE__ */
|
|
1174
|
+
/* @__PURE__ */ D(Mt, {
|
|
1175
1175
|
strokeDasharray: "3 3",
|
|
1176
1176
|
stroke: u,
|
|
1177
1177
|
vertical: !1
|
|
1178
1178
|
}),
|
|
1179
|
-
/* @__PURE__ */
|
|
1179
|
+
/* @__PURE__ */ D(qt, {
|
|
1180
1180
|
dataKey: "label",
|
|
1181
1181
|
stroke: d,
|
|
1182
1182
|
fontSize: 12,
|
|
@@ -1184,15 +1184,15 @@ var Yt = {
|
|
|
1184
1184
|
axisLine: !1,
|
|
1185
1185
|
interval: 0
|
|
1186
1186
|
}),
|
|
1187
|
-
/* @__PURE__ */
|
|
1187
|
+
/* @__PURE__ */ D(Kt, {
|
|
1188
1188
|
cursor: {
|
|
1189
1189
|
stroke: s("--color-border-default") ?? "#dbdad7",
|
|
1190
1190
|
strokeWidth: 1
|
|
1191
1191
|
},
|
|
1192
|
-
content: /* @__PURE__ */
|
|
1192
|
+
content: /* @__PURE__ */ D(ue, {}),
|
|
1193
1193
|
wrapperStyle: { zIndex: 50 }
|
|
1194
1194
|
}),
|
|
1195
|
-
f && /* @__PURE__ */
|
|
1195
|
+
f && /* @__PURE__ */ D(At, {
|
|
1196
1196
|
type: p,
|
|
1197
1197
|
dataKey: "value2",
|
|
1198
1198
|
name: n[1] ?? "Value 2",
|
|
@@ -1208,7 +1208,7 @@ var Yt = {
|
|
|
1208
1208
|
strokeWidth: 1.5
|
|
1209
1209
|
}
|
|
1210
1210
|
}),
|
|
1211
|
-
/* @__PURE__ */
|
|
1211
|
+
/* @__PURE__ */ D(At, {
|
|
1212
1212
|
type: p,
|
|
1213
1213
|
dataKey: "value",
|
|
1214
1214
|
name: n[0] ?? "Value",
|
|
@@ -1228,7 +1228,7 @@ var Yt = {
|
|
|
1228
1228
|
})
|
|
1229
1229
|
})
|
|
1230
1230
|
});
|
|
1231
|
-
},
|
|
1231
|
+
}, z = {
|
|
1232
1232
|
col: "_col_1v24u_2",
|
|
1233
1233
|
col__header: "_col__header_1v24u_11",
|
|
1234
1234
|
col__dot: "_col__dot_1v24u_12",
|
|
@@ -1239,67 +1239,67 @@ var Yt = {
|
|
|
1239
1239
|
col__body: "_col__body_1v24u_24",
|
|
1240
1240
|
col__drop: "_col__drop_1v24u_25",
|
|
1241
1241
|
col__add: "_col__add_1v24u_31"
|
|
1242
|
-
},
|
|
1243
|
-
className: [
|
|
1242
|
+
}, Kn = ({ state: e = "default", title: t, count: n, dotColor: r = "var(--color-chart-1)", children: i, onAdd: a, onMenu: o, className: s }) => /* @__PURE__ */ O("div", {
|
|
1243
|
+
className: [z.col, s ?? ""].filter(Boolean).join(" "),
|
|
1244
1244
|
children: [
|
|
1245
|
-
/* @__PURE__ */
|
|
1246
|
-
className:
|
|
1245
|
+
/* @__PURE__ */ O("div", {
|
|
1246
|
+
className: z.col__header,
|
|
1247
1247
|
children: [
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
className:
|
|
1248
|
+
/* @__PURE__ */ D("span", {
|
|
1249
|
+
className: z.col__dot,
|
|
1250
1250
|
style: { background: r },
|
|
1251
1251
|
"aria-hidden": "true"
|
|
1252
1252
|
}),
|
|
1253
|
-
/* @__PURE__ */
|
|
1254
|
-
className:
|
|
1253
|
+
/* @__PURE__ */ D("span", {
|
|
1254
|
+
className: z.col__title,
|
|
1255
1255
|
children: t
|
|
1256
1256
|
}),
|
|
1257
|
-
n != null && /* @__PURE__ */
|
|
1258
|
-
className:
|
|
1257
|
+
n != null && /* @__PURE__ */ D("span", {
|
|
1258
|
+
className: z.col__count,
|
|
1259
1259
|
children: n
|
|
1260
1260
|
}),
|
|
1261
|
-
/* @__PURE__ */
|
|
1262
|
-
/* @__PURE__ */
|
|
1261
|
+
/* @__PURE__ */ D("span", { className: z.col__spacer }),
|
|
1262
|
+
/* @__PURE__ */ D("button", {
|
|
1263
1263
|
type: "button",
|
|
1264
|
-
className:
|
|
1264
|
+
className: z.col__action,
|
|
1265
1265
|
onClick: a,
|
|
1266
1266
|
"aria-label": "Add task",
|
|
1267
|
-
children: /* @__PURE__ */
|
|
1267
|
+
children: /* @__PURE__ */ D(st, {
|
|
1268
1268
|
size: 16,
|
|
1269
|
-
strokeWidth:
|
|
1269
|
+
strokeWidth: T(16)
|
|
1270
1270
|
})
|
|
1271
1271
|
}),
|
|
1272
|
-
/* @__PURE__ */
|
|
1272
|
+
/* @__PURE__ */ D("button", {
|
|
1273
1273
|
type: "button",
|
|
1274
|
-
className:
|
|
1274
|
+
className: z.col__action,
|
|
1275
1275
|
onClick: o,
|
|
1276
1276
|
"aria-label": "Column options",
|
|
1277
|
-
children: /* @__PURE__ */
|
|
1277
|
+
children: /* @__PURE__ */ D(vt, {
|
|
1278
1278
|
size: 16,
|
|
1279
|
-
strokeWidth:
|
|
1279
|
+
strokeWidth: T(16)
|
|
1280
1280
|
})
|
|
1281
1281
|
})
|
|
1282
1282
|
]
|
|
1283
1283
|
}),
|
|
1284
|
-
/* @__PURE__ */
|
|
1285
|
-
className:
|
|
1286
|
-
children: e === "empty" ? /* @__PURE__ */
|
|
1287
|
-
className:
|
|
1284
|
+
/* @__PURE__ */ D("div", {
|
|
1285
|
+
className: z.col__body,
|
|
1286
|
+
children: e === "empty" ? /* @__PURE__ */ D("div", {
|
|
1287
|
+
className: z.col__drop,
|
|
1288
1288
|
children: "Drop tasks here"
|
|
1289
1289
|
}) : i
|
|
1290
1290
|
}),
|
|
1291
|
-
/* @__PURE__ */
|
|
1291
|
+
/* @__PURE__ */ O("button", {
|
|
1292
1292
|
type: "button",
|
|
1293
|
-
className:
|
|
1293
|
+
className: z.col__add,
|
|
1294
1294
|
onClick: a,
|
|
1295
|
-
children: [/* @__PURE__ */
|
|
1295
|
+
children: [/* @__PURE__ */ D(st, {
|
|
1296
1296
|
size: 16,
|
|
1297
|
-
strokeWidth:
|
|
1297
|
+
strokeWidth: T(16),
|
|
1298
1298
|
"aria-hidden": "true"
|
|
1299
1299
|
}), "Add task"]
|
|
1300
1300
|
})
|
|
1301
1301
|
]
|
|
1302
|
-
}),
|
|
1302
|
+
}), B = {
|
|
1303
1303
|
calendar: "_calendar_qvyxg_2",
|
|
1304
1304
|
header: "_header_qvyxg_14",
|
|
1305
1305
|
header__label: "_header__label_qvyxg_15",
|
|
@@ -1317,7 +1317,7 @@ var Yt = {
|
|
|
1317
1317
|
"day--disabled": "_day--disabled_qvyxg_55",
|
|
1318
1318
|
dropdowns: "_dropdowns_qvyxg_58",
|
|
1319
1319
|
dropdown: "_dropdown_qvyxg_58"
|
|
1320
|
-
},
|
|
1320
|
+
}, qn = [
|
|
1321
1321
|
"Su",
|
|
1322
1322
|
"Mo",
|
|
1323
1323
|
"Tu",
|
|
@@ -1325,7 +1325,7 @@ var Yt = {
|
|
|
1325
1325
|
"Th",
|
|
1326
1326
|
"Fr",
|
|
1327
1327
|
"Sa"
|
|
1328
|
-
],
|
|
1328
|
+
], Jn = [
|
|
1329
1329
|
"January",
|
|
1330
1330
|
"February",
|
|
1331
1331
|
"March",
|
|
@@ -1338,19 +1338,19 @@ var Yt = {
|
|
|
1338
1338
|
"October",
|
|
1339
1339
|
"November",
|
|
1340
1340
|
"December"
|
|
1341
|
-
],
|
|
1342
|
-
let [u, d] =
|
|
1341
|
+
], Yn = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Xn = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Zn = ({ mode: e = "single", value: t, onChange: n, range: r, onRangeChange: i, headerType: a = "arrows", defaultMonth: o, minDate: s, maxDate: c, className: l }) => {
|
|
1342
|
+
let [u, d] = E.useState(() => {
|
|
1343
1343
|
let e = o ?? t ?? r?.from ?? /* @__PURE__ */ new Date();
|
|
1344
1344
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
1345
|
-
}), [f, p] =
|
|
1345
|
+
}), [f, p] = E.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 < Xn(s) || c && e > c, C = (e) => {
|
|
1346
1346
|
r === void 0 && p(e), i?.(e);
|
|
1347
|
-
},
|
|
1347
|
+
}, te = (t) => {
|
|
1348
1348
|
if (e === "single") {
|
|
1349
1349
|
n?.(t);
|
|
1350
1350
|
return;
|
|
1351
1351
|
}
|
|
1352
1352
|
let { from: r, to: i } = h;
|
|
1353
|
-
|
|
1353
|
+
C(!r || r && i ? {
|
|
1354
1354
|
from: t,
|
|
1355
1355
|
to: void 0
|
|
1356
1356
|
} : t < r ? {
|
|
@@ -1360,91 +1360,91 @@ var Yt = {
|
|
|
1360
1360
|
from: r,
|
|
1361
1361
|
to: t
|
|
1362
1362
|
});
|
|
1363
|
-
},
|
|
1364
|
-
if (
|
|
1363
|
+
}, ne = (n) => {
|
|
1364
|
+
if (S(n)) return "disabled";
|
|
1365
1365
|
if (e === "single") {
|
|
1366
|
-
if (
|
|
1366
|
+
if (Yn(n, t)) return "selected";
|
|
1367
1367
|
} else {
|
|
1368
1368
|
let { from: e, to: t } = h;
|
|
1369
|
-
if (
|
|
1369
|
+
if (Yn(n, e) || Yn(n, t)) return "selected";
|
|
1370
1370
|
if (e && t && n > e && n < t) return "in-range";
|
|
1371
1371
|
}
|
|
1372
|
-
return n.getMonth() === y ?
|
|
1373
|
-
},
|
|
1374
|
-
return /* @__PURE__ */
|
|
1375
|
-
className: [
|
|
1372
|
+
return n.getMonth() === y ? Yn(n, g) ? "today" : "default" : "outside";
|
|
1373
|
+
}, re = s ? s.getFullYear() : v - 10, ie = c ? c.getFullYear() : v + 10, ae = Array.from({ length: ie - re + 1 }, (e, t) => re + t);
|
|
1374
|
+
return /* @__PURE__ */ O("div", {
|
|
1375
|
+
className: [B.calendar, l ?? ""].filter(Boolean).join(" "),
|
|
1376
1376
|
children: [
|
|
1377
|
-
/* @__PURE__ */
|
|
1378
|
-
className:
|
|
1377
|
+
/* @__PURE__ */ O("div", {
|
|
1378
|
+
className: B.header,
|
|
1379
1379
|
children: [
|
|
1380
|
-
/* @__PURE__ */
|
|
1380
|
+
/* @__PURE__ */ D("button", {
|
|
1381
1381
|
type: "button",
|
|
1382
|
-
className:
|
|
1382
|
+
className: B.navBtn,
|
|
1383
1383
|
onClick: () => d(new Date(v, y - 1, 1)),
|
|
1384
1384
|
"aria-label": "Previous month",
|
|
1385
|
-
children: /* @__PURE__ */
|
|
1385
|
+
children: /* @__PURE__ */ D(gt, {
|
|
1386
1386
|
size: 16,
|
|
1387
|
-
strokeWidth:
|
|
1387
|
+
strokeWidth: T(16)
|
|
1388
1388
|
})
|
|
1389
1389
|
}),
|
|
1390
|
-
a === "dropdowns" ? /* @__PURE__ */
|
|
1391
|
-
className:
|
|
1392
|
-
children: [/* @__PURE__ */
|
|
1393
|
-
className:
|
|
1390
|
+
a === "dropdowns" ? /* @__PURE__ */ O("span", {
|
|
1391
|
+
className: B.dropdowns,
|
|
1392
|
+
children: [/* @__PURE__ */ D("select", {
|
|
1393
|
+
className: B.dropdown,
|
|
1394
1394
|
value: y,
|
|
1395
1395
|
onChange: (e) => d(new Date(v, Number(e.target.value), 1)),
|
|
1396
1396
|
"aria-label": "Month",
|
|
1397
|
-
children:
|
|
1397
|
+
children: Jn.map((e, t) => /* @__PURE__ */ D("option", {
|
|
1398
1398
|
value: t,
|
|
1399
1399
|
children: e
|
|
1400
1400
|
}, e))
|
|
1401
|
-
}), /* @__PURE__ */
|
|
1402
|
-
className:
|
|
1401
|
+
}), /* @__PURE__ */ D("select", {
|
|
1402
|
+
className: B.dropdown,
|
|
1403
1403
|
value: v,
|
|
1404
1404
|
onChange: (e) => d(new Date(Number(e.target.value), y, 1)),
|
|
1405
1405
|
"aria-label": "Year",
|
|
1406
|
-
children:
|
|
1406
|
+
children: ae.map((e) => /* @__PURE__ */ D("option", {
|
|
1407
1407
|
value: e,
|
|
1408
1408
|
children: e
|
|
1409
1409
|
}, e))
|
|
1410
1410
|
})]
|
|
1411
|
-
}) : /* @__PURE__ */
|
|
1412
|
-
className:
|
|
1411
|
+
}) : /* @__PURE__ */ O("span", {
|
|
1412
|
+
className: B.header__label,
|
|
1413
1413
|
children: [
|
|
1414
|
-
|
|
1414
|
+
Jn[y],
|
|
1415
1415
|
" ",
|
|
1416
1416
|
v
|
|
1417
1417
|
]
|
|
1418
1418
|
}),
|
|
1419
|
-
/* @__PURE__ */
|
|
1419
|
+
/* @__PURE__ */ D("button", {
|
|
1420
1420
|
type: "button",
|
|
1421
|
-
className:
|
|
1421
|
+
className: B.navBtn,
|
|
1422
1422
|
onClick: () => d(new Date(v, y + 1, 1)),
|
|
1423
1423
|
"aria-label": "Next month",
|
|
1424
|
-
children: /* @__PURE__ */
|
|
1424
|
+
children: /* @__PURE__ */ D(ct, {
|
|
1425
1425
|
size: 16,
|
|
1426
|
-
strokeWidth:
|
|
1426
|
+
strokeWidth: T(16)
|
|
1427
1427
|
})
|
|
1428
1428
|
})
|
|
1429
1429
|
]
|
|
1430
1430
|
}),
|
|
1431
|
-
/* @__PURE__ */
|
|
1432
|
-
className:
|
|
1433
|
-
children:
|
|
1434
|
-
className:
|
|
1431
|
+
/* @__PURE__ */ D("div", {
|
|
1432
|
+
className: B.weekdays,
|
|
1433
|
+
children: qn.map((e) => /* @__PURE__ */ D("span", {
|
|
1434
|
+
className: B.weekday,
|
|
1435
1435
|
children: e
|
|
1436
1436
|
}, e))
|
|
1437
1437
|
}),
|
|
1438
|
-
/* @__PURE__ */
|
|
1438
|
+
/* @__PURE__ */ O("div", {
|
|
1439
1439
|
ref: m.ref,
|
|
1440
1440
|
...m.groupProps,
|
|
1441
|
-
className:
|
|
1441
|
+
className: B.grid,
|
|
1442
1442
|
children: [m.highlight, ee.map((e, t) => {
|
|
1443
|
-
let n =
|
|
1444
|
-
return /* @__PURE__ */
|
|
1443
|
+
let n = ne(e);
|
|
1444
|
+
return /* @__PURE__ */ D("button", {
|
|
1445
1445
|
type: "button",
|
|
1446
1446
|
"data-hover-item": "",
|
|
1447
|
-
className: [
|
|
1447
|
+
className: [B.day, B[`day--${n}`]].filter(Boolean).join(" "),
|
|
1448
1448
|
disabled: n === "disabled",
|
|
1449
1449
|
"aria-current": n === "today" ? "date" : void 0,
|
|
1450
1450
|
"aria-selected": n === "selected",
|
|
@@ -1454,14 +1454,14 @@ var Yt = {
|
|
|
1454
1454
|
month: "long",
|
|
1455
1455
|
day: "numeric"
|
|
1456
1456
|
}),
|
|
1457
|
-
onClick: () =>
|
|
1457
|
+
onClick: () => te(e),
|
|
1458
1458
|
children: e.getDate()
|
|
1459
1459
|
}, t);
|
|
1460
1460
|
})]
|
|
1461
1461
|
})
|
|
1462
1462
|
]
|
|
1463
1463
|
});
|
|
1464
|
-
},
|
|
1464
|
+
}, V = {
|
|
1465
1465
|
card: "_card_1qpcc_3",
|
|
1466
1466
|
"card--interactive": "_card--interactive_1qpcc_22",
|
|
1467
1467
|
card__header: "_card__header_1qpcc_30",
|
|
@@ -1471,39 +1471,39 @@ var Yt = {
|
|
|
1471
1471
|
card__actions: "_card__actions_1qpcc_57",
|
|
1472
1472
|
"card__actions--split": "_card__actions--split_1qpcc_66",
|
|
1473
1473
|
card__actionsGroup: "_card__actionsGroup_1qpcc_67"
|
|
1474
|
-
},
|
|
1474
|
+
}, Qn = ({ title: e, description: t, actions: n, leadingAction: r, interactive: i, children: a, className: o }) => /* @__PURE__ */ O("div", {
|
|
1475
1475
|
className: [
|
|
1476
|
-
|
|
1477
|
-
i ?
|
|
1476
|
+
V.card,
|
|
1477
|
+
i ? V["card--interactive"] : "",
|
|
1478
1478
|
o ?? ""
|
|
1479
1479
|
].filter(Boolean).join(" "),
|
|
1480
1480
|
children: [
|
|
1481
|
-
(e || t) && /* @__PURE__ */
|
|
1482
|
-
className:
|
|
1483
|
-
children: [e && /* @__PURE__ */
|
|
1484
|
-
className:
|
|
1481
|
+
(e || t) && /* @__PURE__ */ O("div", {
|
|
1482
|
+
className: V.card__header,
|
|
1483
|
+
children: [e && /* @__PURE__ */ D("h3", {
|
|
1484
|
+
className: V.card__title,
|
|
1485
1485
|
children: e
|
|
1486
|
-
}), t && /* @__PURE__ */
|
|
1487
|
-
className:
|
|
1486
|
+
}), t && /* @__PURE__ */ D("p", {
|
|
1487
|
+
className: V.card__description,
|
|
1488
1488
|
children: t
|
|
1489
1489
|
})]
|
|
1490
1490
|
}),
|
|
1491
|
-
a && /* @__PURE__ */
|
|
1492
|
-
className:
|
|
1491
|
+
a && /* @__PURE__ */ D("div", {
|
|
1492
|
+
className: V.card__body,
|
|
1493
1493
|
children: a
|
|
1494
1494
|
}),
|
|
1495
|
-
(n || r) && (r ? /* @__PURE__ */
|
|
1496
|
-
className: [
|
|
1497
|
-
children: [r, /* @__PURE__ */
|
|
1498
|
-
className:
|
|
1495
|
+
(n || r) && (r ? /* @__PURE__ */ O("div", {
|
|
1496
|
+
className: [V.card__actions, V["card__actions--split"]].join(" "),
|
|
1497
|
+
children: [r, /* @__PURE__ */ D("div", {
|
|
1498
|
+
className: V.card__actionsGroup,
|
|
1499
1499
|
children: n
|
|
1500
1500
|
})]
|
|
1501
|
-
}) : /* @__PURE__ */
|
|
1502
|
-
className:
|
|
1501
|
+
}) : /* @__PURE__ */ D("div", {
|
|
1502
|
+
className: V.card__actions,
|
|
1503
1503
|
children: n
|
|
1504
1504
|
}))
|
|
1505
1505
|
]
|
|
1506
|
-
}),
|
|
1506
|
+
}), H = {
|
|
1507
1507
|
field: "_field_1oby0_7",
|
|
1508
1508
|
field__label: "_field__label_1oby0_8",
|
|
1509
1509
|
field__description: "_field__description_1oby0_9",
|
|
@@ -1544,144 +1544,144 @@ var Yt = {
|
|
|
1544
1544
|
panel__loading: "_panel__loading_1oby0_255",
|
|
1545
1545
|
panel__spinner: "_panel__spinner_1oby0_259",
|
|
1546
1546
|
"sakani-cb-spin": "_sakani-cb-spin_1oby0_1"
|
|
1547
|
-
},
|
|
1548
|
-
let f =
|
|
1549
|
-
|
|
1547
|
+
}, $n = ({ 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 }) => {
|
|
1548
|
+
let f = E.useId(), [p, m] = E.useState(!1), [h, g] = E.useState(!1), [_, v] = E.useState(0), y = E.useRef(null), b = e;
|
|
1549
|
+
E.useEffect(() => {
|
|
1550
1550
|
p && g(!0);
|
|
1551
1551
|
}, [p]);
|
|
1552
|
-
let x =
|
|
1553
|
-
|
|
1552
|
+
let x = E.useRef({}), ee = E.useRef(null), [S, C] = E.useState(null), [te, ne] = E.useState(!1);
|
|
1553
|
+
E.useLayoutEffect(() => {
|
|
1554
1554
|
let e = x.current[_];
|
|
1555
1555
|
if (!e) {
|
|
1556
|
-
|
|
1556
|
+
C(null);
|
|
1557
1557
|
return;
|
|
1558
1558
|
}
|
|
1559
|
-
|
|
1559
|
+
C({
|
|
1560
1560
|
top: e.offsetTop,
|
|
1561
1561
|
height: e.offsetHeight
|
|
1562
1562
|
});
|
|
1563
|
-
}, [_, b.length]),
|
|
1563
|
+
}, [_, b.length]), E.useLayoutEffect(() => {
|
|
1564
1564
|
if (!h) {
|
|
1565
|
-
|
|
1565
|
+
ne(!1);
|
|
1566
1566
|
return;
|
|
1567
1567
|
}
|
|
1568
|
-
|
|
1569
|
-
let e = window.requestAnimationFrame(() =>
|
|
1568
|
+
ne(!1);
|
|
1569
|
+
let e = window.requestAnimationFrame(() => ne(!0));
|
|
1570
1570
|
return () => window.cancelAnimationFrame(e);
|
|
1571
|
-
}, [h]),
|
|
1571
|
+
}, [h]), E.useEffect(() => {
|
|
1572
1572
|
if (!ee.current) return;
|
|
1573
1573
|
let e = new ResizeObserver(() => {
|
|
1574
1574
|
let e = x.current[_];
|
|
1575
|
-
e &&
|
|
1575
|
+
e && C({
|
|
1576
1576
|
top: e.offsetTop,
|
|
1577
1577
|
height: e.offsetHeight
|
|
1578
1578
|
});
|
|
1579
1579
|
});
|
|
1580
1580
|
return e.observe(ee.current), () => e.disconnect();
|
|
1581
1581
|
}, [h]);
|
|
1582
|
-
let [
|
|
1582
|
+
let [re, ie] = E.useState(t === "multi" ? [] : ""), ae = l === void 0 ? re : l, w = Array.isArray(ae) ? ae : ae ? [ae] : [], [oe, se] = E.useState(() => w.map((e) => ({
|
|
1583
1583
|
value: e,
|
|
1584
1584
|
leaving: !1
|
|
1585
|
-
}))),
|
|
1586
|
-
|
|
1587
|
-
|
|
1585
|
+
}))), ce = w.join("\0");
|
|
1586
|
+
E.useLayoutEffect(() => {
|
|
1587
|
+
se((e) => {
|
|
1588
1588
|
let t = e.map((e) => ({
|
|
1589
1589
|
value: e.value,
|
|
1590
|
-
leaving: !
|
|
1590
|
+
leaving: !w.includes(e.value)
|
|
1591
1591
|
}));
|
|
1592
|
-
for (let e of
|
|
1592
|
+
for (let e of w) t.some((t) => t.value === e) || t.push({
|
|
1593
1593
|
value: e,
|
|
1594
1594
|
leaving: !1
|
|
1595
1595
|
});
|
|
1596
1596
|
return t;
|
|
1597
1597
|
});
|
|
1598
|
-
}, [
|
|
1599
|
-
let
|
|
1600
|
-
|
|
1598
|
+
}, [ce]);
|
|
1599
|
+
let le = (e) => se((t) => t.filter((t) => !(t.value === e && t.leaving))), ue = !!a;
|
|
1600
|
+
E.useEffect(() => {
|
|
1601
1601
|
let e = (e) => {
|
|
1602
1602
|
y.current && !y.current.contains(e.target) && m(!1);
|
|
1603
1603
|
};
|
|
1604
1604
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1605
1605
|
}, []);
|
|
1606
|
-
let
|
|
1607
|
-
l === void 0 &&
|
|
1608
|
-
},
|
|
1606
|
+
let de = (e) => {
|
|
1607
|
+
l === void 0 && ie(e), u?.(e);
|
|
1608
|
+
}, fe = (e) => {
|
|
1609
1609
|
if (!e.disabled) if (t === "multi") {
|
|
1610
|
-
let t = new Set(
|
|
1611
|
-
t.has(e.value) ? t.delete(e.value) : t.add(e.value),
|
|
1612
|
-
} else
|
|
1613
|
-
},
|
|
1614
|
-
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[_] ?
|
|
1615
|
-
},
|
|
1616
|
-
return /* @__PURE__ */
|
|
1617
|
-
className: [
|
|
1610
|
+
let t = new Set(w);
|
|
1611
|
+
t.has(e.value) ? t.delete(e.value) : t.add(e.value), de([...t]);
|
|
1612
|
+
} else de(e.value), m(!1);
|
|
1613
|
+
}, pe = (t) => e.find((e) => e.value === t)?.label ?? t, me = w.length ? pe(w[0]) : "", he = (e) => {
|
|
1614
|
+
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[_] ? fe(b[_]) : m(!0)) : e.key === "Escape" && m(!1));
|
|
1615
|
+
}, ge = s ? "disabled" : ue ? "error" : p ? "open" : "default";
|
|
1616
|
+
return /* @__PURE__ */ O("div", {
|
|
1617
|
+
className: [H.field, d ?? ""].filter(Boolean).join(" "),
|
|
1618
1618
|
ref: y,
|
|
1619
1619
|
children: [
|
|
1620
|
-
r && /* @__PURE__ */
|
|
1620
|
+
r && /* @__PURE__ */ D("label", {
|
|
1621
1621
|
htmlFor: `${f}-trigger`,
|
|
1622
|
-
className:
|
|
1622
|
+
className: H.field__label,
|
|
1623
1623
|
children: r
|
|
1624
1624
|
}),
|
|
1625
|
-
/* @__PURE__ */
|
|
1625
|
+
/* @__PURE__ */ O("div", {
|
|
1626
1626
|
id: `${f}-trigger`,
|
|
1627
1627
|
role: "combobox",
|
|
1628
1628
|
tabIndex: s ? -1 : 0,
|
|
1629
1629
|
"aria-haspopup": "listbox",
|
|
1630
1630
|
"aria-expanded": p,
|
|
1631
1631
|
"aria-controls": `${f}-panel`,
|
|
1632
|
-
"aria-invalid":
|
|
1632
|
+
"aria-invalid": ue || void 0,
|
|
1633
1633
|
"aria-disabled": s || void 0,
|
|
1634
1634
|
"aria-activedescendant": p && b[_] ? `${f}-opt-${_}` : void 0,
|
|
1635
1635
|
className: [
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1636
|
+
H.control,
|
|
1637
|
+
H[`control--${n}`],
|
|
1638
|
+
H[`control--${ge}`]
|
|
1639
1639
|
].join(" "),
|
|
1640
1640
|
onClick: () => !s && m((e) => !e),
|
|
1641
|
-
onKeyDown:
|
|
1641
|
+
onKeyDown: he,
|
|
1642
1642
|
children: [
|
|
1643
|
-
t === "multi" &&
|
|
1644
|
-
className:
|
|
1645
|
-
children:
|
|
1646
|
-
className: [
|
|
1643
|
+
t === "multi" && oe.length > 0 && /* @__PURE__ */ D("div", {
|
|
1644
|
+
className: H.chips,
|
|
1645
|
+
children: oe.map(({ value: t, leaving: n }) => /* @__PURE__ */ O("span", {
|
|
1646
|
+
className: [H.chip, n ? H["chip--leaving"] : ""].filter(Boolean).join(" "),
|
|
1647
1647
|
"aria-hidden": n || void 0,
|
|
1648
|
-
onAnimationEnd: n ? () =>
|
|
1649
|
-
children: [
|
|
1648
|
+
onAnimationEnd: n ? () => le(t) : void 0,
|
|
1649
|
+
children: [pe(t), /* @__PURE__ */ D("button", {
|
|
1650
1650
|
type: "button",
|
|
1651
|
-
className:
|
|
1651
|
+
className: H.chip__remove,
|
|
1652
1652
|
tabIndex: n ? -1 : void 0,
|
|
1653
1653
|
onClick: (n) => {
|
|
1654
|
-
n.stopPropagation(),
|
|
1654
|
+
n.stopPropagation(), fe(e.find((e) => e.value === t));
|
|
1655
1655
|
},
|
|
1656
|
-
"aria-label": `Remove ${
|
|
1656
|
+
"aria-label": `Remove ${pe(t)}`,
|
|
1657
1657
|
children: "×"
|
|
1658
1658
|
})]
|
|
1659
1659
|
}, t))
|
|
1660
1660
|
}),
|
|
1661
|
-
!(t === "multi" &&
|
|
1662
|
-
className: [
|
|
1663
|
-
children: t === "single" &&
|
|
1661
|
+
!(t === "multi" && oe.length > 0) && /* @__PURE__ */ D("span", {
|
|
1662
|
+
className: [H.control__value, t === "single" && me ? "" : H["control__value--placeholder"]].filter(Boolean).join(" "),
|
|
1663
|
+
children: t === "single" && me ? me : o
|
|
1664
1664
|
}),
|
|
1665
|
-
/* @__PURE__ */
|
|
1666
|
-
className: [
|
|
1665
|
+
/* @__PURE__ */ D("span", {
|
|
1666
|
+
className: [H.control__chevron, p ? H["control__chevron--open"] : ""].join(" "),
|
|
1667
1667
|
"aria-hidden": "true",
|
|
1668
|
-
children: /* @__PURE__ */
|
|
1668
|
+
children: /* @__PURE__ */ D("svg", {
|
|
1669
1669
|
width: 16,
|
|
1670
1670
|
height: 16,
|
|
1671
1671
|
viewBox: "0 0 24 24",
|
|
1672
1672
|
fill: "none",
|
|
1673
1673
|
stroke: "currentColor",
|
|
1674
|
-
strokeWidth:
|
|
1674
|
+
strokeWidth: T(16),
|
|
1675
1675
|
strokeLinecap: "round",
|
|
1676
1676
|
strokeLinejoin: "round",
|
|
1677
|
-
children: /* @__PURE__ */
|
|
1677
|
+
children: /* @__PURE__ */ D("path", { d: "m6 9 6 6 6-6" })
|
|
1678
1678
|
})
|
|
1679
1679
|
})
|
|
1680
1680
|
]
|
|
1681
1681
|
}),
|
|
1682
|
-
h && !s && /* @__PURE__ */
|
|
1682
|
+
h && !s && /* @__PURE__ */ D("div", {
|
|
1683
1683
|
ref: ee,
|
|
1684
|
-
className: [
|
|
1684
|
+
className: [H.panel, p ? H["panel--entering"] : H["panel--exiting"]].filter(Boolean).join(" "),
|
|
1685
1685
|
id: `${f}-panel`,
|
|
1686
1686
|
role: "listbox",
|
|
1687
1687
|
"aria-multiselectable": t === "multi" || void 0,
|
|
@@ -1689,25 +1689,25 @@ var Yt = {
|
|
|
1689
1689
|
onAnimationEnd: () => {
|
|
1690
1690
|
p || g(!1);
|
|
1691
1691
|
},
|
|
1692
|
-
children: c ? /* @__PURE__ */
|
|
1693
|
-
className:
|
|
1694
|
-
children: [/* @__PURE__ */
|
|
1695
|
-
className:
|
|
1692
|
+
children: c ? /* @__PURE__ */ O("div", {
|
|
1693
|
+
className: H.panel__loading,
|
|
1694
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1695
|
+
className: H.panel__spinner,
|
|
1696
1696
|
"aria-hidden": "true"
|
|
1697
1697
|
}), "Loading…"]
|
|
1698
|
-
}) : b.length === 0 ? /* @__PURE__ */
|
|
1699
|
-
className:
|
|
1698
|
+
}) : b.length === 0 ? /* @__PURE__ */ D("div", {
|
|
1699
|
+
className: H.panel__empty,
|
|
1700
1700
|
children: "No options available"
|
|
1701
|
-
}) : /* @__PURE__ */
|
|
1701
|
+
}) : /* @__PURE__ */ O(kt, { children: [S && /* @__PURE__ */ D("span", {
|
|
1702
1702
|
"aria-hidden": "true",
|
|
1703
|
-
className: [
|
|
1703
|
+
className: [H.optionHighlight, te ? H["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
|
|
1704
1704
|
style: {
|
|
1705
|
-
transform: `translateY(${
|
|
1706
|
-
height:
|
|
1705
|
+
transform: `translateY(${S.top}px)`,
|
|
1706
|
+
height: S.height
|
|
1707
1707
|
}
|
|
1708
1708
|
}), b.map((e, n) => {
|
|
1709
|
-
let r =
|
|
1710
|
-
return /* @__PURE__ */
|
|
1709
|
+
let r = w.includes(e.value);
|
|
1710
|
+
return /* @__PURE__ */ O("div", {
|
|
1711
1711
|
ref: (e) => {
|
|
1712
1712
|
x.current[n] = e;
|
|
1713
1713
|
},
|
|
@@ -1715,43 +1715,43 @@ var Yt = {
|
|
|
1715
1715
|
role: "option",
|
|
1716
1716
|
"aria-selected": r,
|
|
1717
1717
|
className: [
|
|
1718
|
-
|
|
1719
|
-
r && t === "single" ?
|
|
1720
|
-
e.disabled ?
|
|
1718
|
+
H.option,
|
|
1719
|
+
r && t === "single" ? H["option--selected"] : "",
|
|
1720
|
+
e.disabled ? H["option--disabled"] : ""
|
|
1721
1721
|
].filter(Boolean).join(" "),
|
|
1722
1722
|
onMouseEnter: () => {
|
|
1723
1723
|
e.disabled || v(n);
|
|
1724
1724
|
},
|
|
1725
|
-
onClick: () =>
|
|
1725
|
+
onClick: () => fe(e),
|
|
1726
1726
|
children: [
|
|
1727
|
-
t === "multi" && /* @__PURE__ */
|
|
1728
|
-
className: [
|
|
1727
|
+
t === "multi" && /* @__PURE__ */ D("span", {
|
|
1728
|
+
className: [H.option__box, r ? H["option__box--checked"] : ""].filter(Boolean).join(" "),
|
|
1729
1729
|
"aria-hidden": "true",
|
|
1730
|
-
children: /* @__PURE__ */
|
|
1730
|
+
children: /* @__PURE__ */ D("svg", {
|
|
1731
1731
|
width: 12,
|
|
1732
1732
|
height: 12,
|
|
1733
1733
|
viewBox: "0 0 24 24",
|
|
1734
1734
|
fill: "none",
|
|
1735
1735
|
stroke: "currentColor",
|
|
1736
|
-
strokeWidth:
|
|
1736
|
+
strokeWidth: T(12),
|
|
1737
1737
|
strokeLinecap: "round",
|
|
1738
1738
|
strokeLinejoin: "round",
|
|
1739
|
-
children: /* @__PURE__ */
|
|
1739
|
+
children: /* @__PURE__ */ D("polyline", { points: "20 6 9 17 4 12" })
|
|
1740
1740
|
})
|
|
1741
1741
|
}),
|
|
1742
|
-
e.icon && /* @__PURE__ */
|
|
1743
|
-
className:
|
|
1742
|
+
e.icon && /* @__PURE__ */ D("span", {
|
|
1743
|
+
className: H.option__icon,
|
|
1744
1744
|
"aria-hidden": "true",
|
|
1745
1745
|
children: e.icon
|
|
1746
1746
|
}),
|
|
1747
|
-
/* @__PURE__ */
|
|
1748
|
-
className:
|
|
1747
|
+
/* @__PURE__ */ D("span", {
|
|
1748
|
+
className: H.option__label,
|
|
1749
1749
|
children: e.label
|
|
1750
1750
|
}),
|
|
1751
|
-
r && t === "single" && /* @__PURE__ */
|
|
1752
|
-
className:
|
|
1751
|
+
r && t === "single" && /* @__PURE__ */ D("span", {
|
|
1752
|
+
className: H.option__check,
|
|
1753
1753
|
"aria-hidden": "true",
|
|
1754
|
-
children: /* @__PURE__ */
|
|
1754
|
+
children: /* @__PURE__ */ D("svg", {
|
|
1755
1755
|
width: 16,
|
|
1756
1756
|
height: 16,
|
|
1757
1757
|
viewBox: "0 0 24 24",
|
|
@@ -1760,20 +1760,20 @@ var Yt = {
|
|
|
1760
1760
|
strokeWidth: 2,
|
|
1761
1761
|
strokeLinecap: "round",
|
|
1762
1762
|
strokeLinejoin: "round",
|
|
1763
|
-
children: /* @__PURE__ */
|
|
1763
|
+
children: /* @__PURE__ */ D("polyline", { points: "20 6 9 17 4 12" })
|
|
1764
1764
|
})
|
|
1765
1765
|
})
|
|
1766
1766
|
]
|
|
1767
1767
|
}, e.value);
|
|
1768
1768
|
})] })
|
|
1769
1769
|
}),
|
|
1770
|
-
(i || a) && /* @__PURE__ */
|
|
1771
|
-
className:
|
|
1770
|
+
(i || a) && /* @__PURE__ */ D("span", {
|
|
1771
|
+
className: ue ? H.field__error : H.field__description,
|
|
1772
1772
|
children: a || i
|
|
1773
1773
|
})
|
|
1774
1774
|
]
|
|
1775
1775
|
});
|
|
1776
|
-
},
|
|
1776
|
+
}, U = {
|
|
1777
1777
|
wrap: "_wrap_1j16e_2",
|
|
1778
1778
|
dropzone: "_dropzone_1j16e_4",
|
|
1779
1779
|
"dropzone--dragging": "_dropzone--dragging_1j16e_21",
|
|
@@ -1787,18 +1787,18 @@ var Yt = {
|
|
|
1787
1787
|
file__icon: "_file__icon_1j16e_45",
|
|
1788
1788
|
file__name: "_file__name_1j16e_46",
|
|
1789
1789
|
file__remove: "_file__remove_1j16e_47"
|
|
1790
|
-
},
|
|
1791
|
-
let a =
|
|
1790
|
+
}, er = ({ accept: e, multiple: t, hint: n = "SVG, PNG, JPG or PDF (max. 2MB)", onFilesChange: r, className: i }) => {
|
|
1791
|
+
let a = E.useRef(null), [o, s] = E.useState(!1), [c, l] = E.useState([]), u = (e) => {
|
|
1792
1792
|
l(e), r?.(e);
|
|
1793
1793
|
}, d = (e) => {
|
|
1794
1794
|
if (!e) return;
|
|
1795
1795
|
let n = Array.from(e);
|
|
1796
1796
|
u(t ? [...c, ...n] : n.slice(0, 1));
|
|
1797
1797
|
}, f = (e) => u(c.filter((t, n) => n !== e));
|
|
1798
|
-
return /* @__PURE__ */
|
|
1799
|
-
className: [
|
|
1800
|
-
children: [/* @__PURE__ */
|
|
1801
|
-
className: [
|
|
1798
|
+
return /* @__PURE__ */ O("div", {
|
|
1799
|
+
className: [U.wrap, i ?? ""].filter(Boolean).join(" "),
|
|
1800
|
+
children: [/* @__PURE__ */ O("div", {
|
|
1801
|
+
className: [U.dropzone, o ? U["dropzone--dragging"] : ""].filter(Boolean).join(" "),
|
|
1802
1802
|
onClick: () => a.current?.click(),
|
|
1803
1803
|
onDragOver: (e) => {
|
|
1804
1804
|
e.preventDefault(), s(!0);
|
|
@@ -1813,66 +1813,66 @@ var Yt = {
|
|
|
1813
1813
|
(e.key === "Enter" || e.key === " ") && a.current?.click();
|
|
1814
1814
|
},
|
|
1815
1815
|
children: [
|
|
1816
|
-
/* @__PURE__ */
|
|
1817
|
-
className:
|
|
1816
|
+
/* @__PURE__ */ D("span", {
|
|
1817
|
+
className: U.dropzone__icon,
|
|
1818
1818
|
"aria-hidden": "true",
|
|
1819
|
-
children: /* @__PURE__ */
|
|
1819
|
+
children: /* @__PURE__ */ D(dt, {
|
|
1820
1820
|
size: 22,
|
|
1821
|
-
strokeWidth:
|
|
1821
|
+
strokeWidth: T(22)
|
|
1822
1822
|
})
|
|
1823
1823
|
}),
|
|
1824
|
-
/* @__PURE__ */
|
|
1825
|
-
className:
|
|
1826
|
-
children: [/* @__PURE__ */
|
|
1827
|
-
className:
|
|
1824
|
+
/* @__PURE__ */ O("span", {
|
|
1825
|
+
className: U.dropzone__label,
|
|
1826
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1827
|
+
className: U.dropzone__link,
|
|
1828
1828
|
children: "Click to upload"
|
|
1829
1829
|
}), " or drag and drop"]
|
|
1830
1830
|
}),
|
|
1831
|
-
/* @__PURE__ */
|
|
1832
|
-
className:
|
|
1831
|
+
/* @__PURE__ */ D("span", {
|
|
1832
|
+
className: U.dropzone__hint,
|
|
1833
1833
|
children: n
|
|
1834
1834
|
}),
|
|
1835
|
-
/* @__PURE__ */
|
|
1835
|
+
/* @__PURE__ */ D("input", {
|
|
1836
1836
|
ref: a,
|
|
1837
1837
|
type: "file",
|
|
1838
1838
|
accept: e,
|
|
1839
1839
|
multiple: t,
|
|
1840
|
-
className:
|
|
1840
|
+
className: U.input,
|
|
1841
1841
|
onChange: (e) => d(e.target.files)
|
|
1842
1842
|
})
|
|
1843
1843
|
]
|
|
1844
|
-
}), c.length > 0 && /* @__PURE__ */
|
|
1845
|
-
className:
|
|
1846
|
-
children: c.map((e, t) => /* @__PURE__ */
|
|
1847
|
-
className:
|
|
1844
|
+
}), c.length > 0 && /* @__PURE__ */ D("ul", {
|
|
1845
|
+
className: U.files,
|
|
1846
|
+
children: c.map((e, t) => /* @__PURE__ */ O("li", {
|
|
1847
|
+
className: U.file,
|
|
1848
1848
|
children: [
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
className:
|
|
1849
|
+
/* @__PURE__ */ D("span", {
|
|
1850
|
+
className: U.file__icon,
|
|
1851
1851
|
"aria-hidden": "true",
|
|
1852
|
-
children: /* @__PURE__ */
|
|
1852
|
+
children: /* @__PURE__ */ D(mt, {
|
|
1853
1853
|
size: 16,
|
|
1854
|
-
strokeWidth:
|
|
1854
|
+
strokeWidth: T(16)
|
|
1855
1855
|
})
|
|
1856
1856
|
}),
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
className:
|
|
1857
|
+
/* @__PURE__ */ D("span", {
|
|
1858
|
+
className: U.file__name,
|
|
1859
1859
|
children: e.name
|
|
1860
1860
|
}),
|
|
1861
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ D("button", {
|
|
1862
1862
|
type: "button",
|
|
1863
|
-
className:
|
|
1863
|
+
className: U.file__remove,
|
|
1864
1864
|
onClick: () => f(t),
|
|
1865
1865
|
"aria-label": `Remove ${e.name}`,
|
|
1866
|
-
children: /* @__PURE__ */
|
|
1866
|
+
children: /* @__PURE__ */ D(it, {
|
|
1867
1867
|
size: 14,
|
|
1868
|
-
strokeWidth:
|
|
1868
|
+
strokeWidth: T(14)
|
|
1869
1869
|
})
|
|
1870
1870
|
})
|
|
1871
1871
|
]
|
|
1872
1872
|
}, t))
|
|
1873
1873
|
})]
|
|
1874
1874
|
});
|
|
1875
|
-
},
|
|
1875
|
+
}, W = {
|
|
1876
1876
|
chart: "_chart_1m9hd_1",
|
|
1877
1877
|
svg: "_svg_1m9hd_7",
|
|
1878
1878
|
segment: "_segment_1m9hd_12",
|
|
@@ -1885,25 +1885,25 @@ var Yt = {
|
|
|
1885
1885
|
tooltip__dot: "_tooltip__dot_1m9hd_68",
|
|
1886
1886
|
tooltip__label: "_tooltip__label_1m9hd_74",
|
|
1887
1887
|
tooltip__value: "_tooltip__value_1m9hd_75"
|
|
1888
|
-
},
|
|
1888
|
+
}, tr = {
|
|
1889
1889
|
sm: 180,
|
|
1890
1890
|
md: 240,
|
|
1891
1891
|
lg: 320,
|
|
1892
1892
|
xl: 420
|
|
1893
|
-
},
|
|
1894
|
-
let [r, i] =
|
|
1895
|
-
g.push(h(e[e.length - 1]?.value ?? 0) *
|
|
1896
|
-
let _ = (t) => e.length <= 1 ? 1 :
|
|
1897
|
-
return /* @__PURE__ */
|
|
1893
|
+
}, nr = 560, rr = .3, ir = .55, ar = ({ data: e, size: t = "md", className: n }) => {
|
|
1894
|
+
let [r, i] = E.useState(null), a = E.useRef(null), o = He(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-bg-canvas") ?? "#fafaf9", l = e[0]?.value || 1, u = tr[t], d = u * .66, f = d / 2 + 8, p = nr / e.length, m = e[0]?.value || 1, h = (e) => e / m * d, g = e.map((e) => h(e.value));
|
|
1895
|
+
g.push(h(e[e.length - 1]?.value ?? 0) * ir);
|
|
1896
|
+
let _ = (t) => e.length <= 1 ? 1 : rr + t / (e.length - 1) * (1 - rr), v = r === null ? null : e[r], y = r === null ? 0 : f - g[r] / 2, b = r === null ? 0 : r * p + p / 2;
|
|
1897
|
+
return /* @__PURE__ */ O("div", {
|
|
1898
1898
|
ref: a,
|
|
1899
|
-
className: [
|
|
1899
|
+
className: [W.chart, n ?? ""].filter(Boolean).join(" "),
|
|
1900
1900
|
style: { height: u },
|
|
1901
1901
|
children: [
|
|
1902
|
-
/* @__PURE__ */
|
|
1903
|
-
viewBox: `0 0 ${
|
|
1902
|
+
/* @__PURE__ */ D("svg", {
|
|
1903
|
+
viewBox: `0 0 ${nr} ${u}`,
|
|
1904
1904
|
width: "100%",
|
|
1905
1905
|
height: u,
|
|
1906
|
-
className:
|
|
1906
|
+
className: W.svg,
|
|
1907
1907
|
children: e.map((e, t) => {
|
|
1908
1908
|
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 = [
|
|
1909
1909
|
`M ${n} ${d}`,
|
|
@@ -1912,56 +1912,56 @@ var Yt = {
|
|
|
1912
1912
|
`C ${o} ${v} ${o} ${h} ${n} ${h}`,
|
|
1913
1913
|
"Z"
|
|
1914
1914
|
].join(" "), b = r === null ? _(t) : t === r ? 1 : .45, x = Math.round(e.value / l * 100);
|
|
1915
|
-
return /* @__PURE__ */
|
|
1916
|
-
className:
|
|
1915
|
+
return /* @__PURE__ */ O("g", {
|
|
1916
|
+
className: W.segment,
|
|
1917
1917
|
onMouseEnter: () => i(t),
|
|
1918
1918
|
onMouseLeave: () => i(null),
|
|
1919
|
-
children: [/* @__PURE__ */
|
|
1919
|
+
children: [/* @__PURE__ */ D("path", {
|
|
1920
1920
|
d: y,
|
|
1921
1921
|
fill: s,
|
|
1922
1922
|
fillOpacity: b
|
|
1923
|
-
}), /* @__PURE__ */
|
|
1923
|
+
}), /* @__PURE__ */ O("text", {
|
|
1924
1924
|
x: o,
|
|
1925
1925
|
y: f,
|
|
1926
1926
|
textAnchor: "middle",
|
|
1927
1927
|
dominantBaseline: "middle",
|
|
1928
|
-
className:
|
|
1928
|
+
className: W.pctLabel,
|
|
1929
1929
|
children: [x, "%"]
|
|
1930
1930
|
})]
|
|
1931
1931
|
}, t);
|
|
1932
1932
|
})
|
|
1933
1933
|
}),
|
|
1934
|
-
/* @__PURE__ */
|
|
1935
|
-
className:
|
|
1934
|
+
/* @__PURE__ */ D("div", {
|
|
1935
|
+
className: W.labels,
|
|
1936
1936
|
style: { gridTemplateColumns: `repeat(${e.length}, 1fr)` },
|
|
1937
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
1938
|
-
className:
|
|
1937
|
+
children: e.map((e, t) => /* @__PURE__ */ D("span", {
|
|
1938
|
+
className: W.labelItem,
|
|
1939
1939
|
children: e.label
|
|
1940
1940
|
}, t))
|
|
1941
1941
|
}),
|
|
1942
|
-
v && /* @__PURE__ */
|
|
1943
|
-
className:
|
|
1942
|
+
v && /* @__PURE__ */ O("div", {
|
|
1943
|
+
className: W.tooltip,
|
|
1944
1944
|
style: {
|
|
1945
|
-
left: `${b /
|
|
1945
|
+
left: `${b / nr * 100}%`,
|
|
1946
1946
|
top: `${y / u * 100}%`,
|
|
1947
1947
|
background: c
|
|
1948
1948
|
},
|
|
1949
|
-
children: [/* @__PURE__ */
|
|
1950
|
-
className:
|
|
1949
|
+
children: [/* @__PURE__ */ D("span", {
|
|
1950
|
+
className: W.tooltip__title,
|
|
1951
1951
|
children: v.label
|
|
1952
|
-
}), /* @__PURE__ */
|
|
1953
|
-
className:
|
|
1952
|
+
}), /* @__PURE__ */ O("div", {
|
|
1953
|
+
className: W.tooltip__row,
|
|
1954
1954
|
children: [
|
|
1955
|
-
/* @__PURE__ */
|
|
1956
|
-
className:
|
|
1955
|
+
/* @__PURE__ */ D("span", {
|
|
1956
|
+
className: W.tooltip__dot,
|
|
1957
1957
|
style: { background: s }
|
|
1958
1958
|
}),
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
className:
|
|
1959
|
+
/* @__PURE__ */ D("span", {
|
|
1960
|
+
className: W.tooltip__label,
|
|
1961
1961
|
children: "Share"
|
|
1962
1962
|
}),
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
className:
|
|
1963
|
+
/* @__PURE__ */ O("span", {
|
|
1964
|
+
className: W.tooltip__value,
|
|
1965
1965
|
children: [Math.round(v.value / l * 100), "%"]
|
|
1966
1966
|
})
|
|
1967
1967
|
]
|
|
@@ -1969,7 +1969,7 @@ var Yt = {
|
|
|
1969
1969
|
})
|
|
1970
1970
|
]
|
|
1971
1971
|
});
|
|
1972
|
-
},
|
|
1972
|
+
}, G = {
|
|
1973
1973
|
chart: "_chart_1yc8b_1",
|
|
1974
1974
|
grid: "_grid_1yc8b_6",
|
|
1975
1975
|
rowLabel: "_rowLabel_1yc8b_13",
|
|
@@ -1985,8 +1985,8 @@ var Yt = {
|
|
|
1985
1985
|
tooltip__dot: "_tooltip__dot_1yc8b_84",
|
|
1986
1986
|
tooltip__label: "_tooltip__label_1yc8b_91",
|
|
1987
1987
|
tooltip__value: "_tooltip__value_1yc8b_92"
|
|
1988
|
-
},
|
|
1989
|
-
let o =
|
|
1988
|
+
}, or = .12, sr = .45, cr = ({ data: e, rowLabels: t, colLabels: n, valueLabel: r = "Value", size: i = "md", className: a }) => {
|
|
1989
|
+
let o = E.useRef(null), s = He(o), c = E.useRef(null), [l, u] = E.useState(null), d = s("--color-chart-1") ?? "#ff4700", f = Math.max(1, ...e.flat()), p = e[0]?.length ?? 0, m = (e, t, n) => (r) => {
|
|
1990
1990
|
let i = r.currentTarget.getBoundingClientRect(), a = c.current?.getBoundingClientRect();
|
|
1991
1991
|
a && u({
|
|
1992
1992
|
row: e,
|
|
@@ -1996,56 +1996,56 @@ var Yt = {
|
|
|
1996
1996
|
top: i.top - a.top
|
|
1997
1997
|
});
|
|
1998
1998
|
};
|
|
1999
|
-
return /* @__PURE__ */
|
|
1999
|
+
return /* @__PURE__ */ D("div", {
|
|
2000
2000
|
ref: o,
|
|
2001
2001
|
className: [
|
|
2002
|
-
|
|
2003
|
-
|
|
2002
|
+
G.chart,
|
|
2003
|
+
G[`chart--${i}`],
|
|
2004
2004
|
a ?? ""
|
|
2005
2005
|
].filter(Boolean).join(" "),
|
|
2006
|
-
children: /* @__PURE__ */
|
|
2006
|
+
children: /* @__PURE__ */ O("div", {
|
|
2007
2007
|
ref: c,
|
|
2008
|
-
className:
|
|
2008
|
+
className: G.grid,
|
|
2009
2009
|
style: { gridTemplateColumns: `auto repeat(${p}, 1fr)` },
|
|
2010
2010
|
children: [
|
|
2011
|
-
e.map((e, n) => /* @__PURE__ */
|
|
2012
|
-
className:
|
|
2011
|
+
e.map((e, n) => /* @__PURE__ */ O(E.Fragment, { children: [/* @__PURE__ */ D("span", {
|
|
2012
|
+
className: G.rowLabel,
|
|
2013
2013
|
children: t?.[n] ?? ""
|
|
2014
2014
|
}), e.map((e, t) => {
|
|
2015
|
-
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 :
|
|
2016
|
-
return /* @__PURE__ */
|
|
2017
|
-
className:
|
|
2015
|
+
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 : or + e / f * (1 - or);
|
|
2016
|
+
return /* @__PURE__ */ D("div", {
|
|
2017
|
+
className: G.cell,
|
|
2018
2018
|
style: {
|
|
2019
2019
|
background: d,
|
|
2020
|
-
opacity: i ?
|
|
2020
|
+
opacity: i ? sr : a
|
|
2021
2021
|
},
|
|
2022
2022
|
onMouseEnter: m(n, t, e),
|
|
2023
2023
|
onMouseLeave: () => u(null)
|
|
2024
2024
|
}, t);
|
|
2025
2025
|
})] }, n)),
|
|
2026
|
-
n && /* @__PURE__ */
|
|
2027
|
-
className:
|
|
2026
|
+
n && /* @__PURE__ */ O(kt, { children: [/* @__PURE__ */ D("span", {}), n.map((e, t) => /* @__PURE__ */ D("span", {
|
|
2027
|
+
className: G.colLabel,
|
|
2028
2028
|
children: e
|
|
2029
2029
|
}, t))] }),
|
|
2030
|
-
l && /* @__PURE__ */
|
|
2031
|
-
className:
|
|
2030
|
+
l && /* @__PURE__ */ O("div", {
|
|
2031
|
+
className: G.tooltip,
|
|
2032
2032
|
style: {
|
|
2033
2033
|
left: l.left,
|
|
2034
2034
|
top: l.top
|
|
2035
2035
|
},
|
|
2036
|
-
children: [/* @__PURE__ */
|
|
2037
|
-
className:
|
|
2036
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2037
|
+
className: G.tooltip__title,
|
|
2038
2038
|
children: [t?.[l.row], n?.[l.col]].filter(Boolean).join(" · ") || `Row ${l.row + 1}, Col ${l.col + 1}`
|
|
2039
|
-
}), /* @__PURE__ */
|
|
2040
|
-
className:
|
|
2039
|
+
}), /* @__PURE__ */ O("div", {
|
|
2040
|
+
className: G.tooltip__row,
|
|
2041
2041
|
children: [
|
|
2042
|
-
/* @__PURE__ */
|
|
2043
|
-
/* @__PURE__ */
|
|
2044
|
-
className:
|
|
2042
|
+
/* @__PURE__ */ D("span", { className: G.tooltip__dot }),
|
|
2043
|
+
/* @__PURE__ */ D("span", {
|
|
2044
|
+
className: G.tooltip__label,
|
|
2045
2045
|
children: r
|
|
2046
2046
|
}),
|
|
2047
|
-
/* @__PURE__ */
|
|
2048
|
-
className:
|
|
2047
|
+
/* @__PURE__ */ D("span", {
|
|
2048
|
+
className: G.tooltip__value,
|
|
2049
2049
|
children: l.value
|
|
2050
2050
|
})
|
|
2051
2051
|
]
|
|
@@ -2054,24 +2054,24 @@ var Yt = {
|
|
|
2054
2054
|
]
|
|
2055
2055
|
})
|
|
2056
2056
|
});
|
|
2057
|
-
},
|
|
2058
|
-
className: [
|
|
2057
|
+
}, lr = { kbd: "_kbd_1cz4m_3" }, ur = ({ children: e, className: t }) => /* @__PURE__ */ D("kbd", {
|
|
2058
|
+
className: [lr.kbd, t ?? ""].filter(Boolean).join(" "),
|
|
2059
2059
|
children: e
|
|
2060
|
-
}),
|
|
2060
|
+
}), dr = {
|
|
2061
2061
|
label: "_label_rcdks_3",
|
|
2062
2062
|
label__required: "_label__required_rcdks_17"
|
|
2063
|
-
},
|
|
2063
|
+
}, fr = E.forwardRef(({ required: e, children: t, className: n, ...r }, i) => /* @__PURE__ */ O("label", {
|
|
2064
2064
|
ref: i,
|
|
2065
|
-
className: [
|
|
2065
|
+
className: [dr.label, n ?? ""].filter(Boolean).join(" "),
|
|
2066
2066
|
...r,
|
|
2067
|
-
children: [t, e && /* @__PURE__ */
|
|
2068
|
-
className:
|
|
2067
|
+
children: [t, e && /* @__PURE__ */ D("span", {
|
|
2068
|
+
className: dr.label__required,
|
|
2069
2069
|
"aria-hidden": "true",
|
|
2070
2070
|
children: " *"
|
|
2071
2071
|
})]
|
|
2072
2072
|
}));
|
|
2073
|
-
|
|
2074
|
-
var
|
|
2073
|
+
fr.displayName = "Label";
|
|
2074
|
+
var K = {
|
|
2075
2075
|
item: "_item_4gag1_2",
|
|
2076
2076
|
"item--disabled": "_item--disabled_4gag1_22",
|
|
2077
2077
|
"item--selected": "_item--selected_4gag1_26",
|
|
@@ -2080,44 +2080,44 @@ var G = {
|
|
|
2080
2080
|
item__title: "_item__title_4gag1_32",
|
|
2081
2081
|
item__description: "_item__description_4gag1_33",
|
|
2082
2082
|
item__trailing: "_item__trailing_4gag1_34"
|
|
2083
|
-
},
|
|
2083
|
+
}, pr = ({ title: e, description: t, leading: n, trailing: r, selected: i, disabled: a, onClick: o, className: s }) => /* @__PURE__ */ O("button", {
|
|
2084
2084
|
type: "button",
|
|
2085
2085
|
"data-hover-item": "",
|
|
2086
2086
|
disabled: a,
|
|
2087
2087
|
onClick: o,
|
|
2088
2088
|
"aria-current": i ? "true" : void 0,
|
|
2089
2089
|
className: [
|
|
2090
|
-
|
|
2091
|
-
i ?
|
|
2092
|
-
a ?
|
|
2090
|
+
K.item,
|
|
2091
|
+
i ? K["item--selected"] : "",
|
|
2092
|
+
a ? K["item--disabled"] : "",
|
|
2093
2093
|
s ?? ""
|
|
2094
2094
|
].filter(Boolean).join(" "),
|
|
2095
2095
|
children: [
|
|
2096
|
-
n && /* @__PURE__ */
|
|
2097
|
-
className:
|
|
2096
|
+
n && /* @__PURE__ */ D("span", {
|
|
2097
|
+
className: K.item__leading,
|
|
2098
2098
|
children: n
|
|
2099
2099
|
}),
|
|
2100
|
-
/* @__PURE__ */
|
|
2101
|
-
className:
|
|
2102
|
-
children: [/* @__PURE__ */
|
|
2103
|
-
className:
|
|
2100
|
+
/* @__PURE__ */ O("span", {
|
|
2101
|
+
className: K.item__text,
|
|
2102
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2103
|
+
className: K.item__title,
|
|
2104
2104
|
children: e
|
|
2105
|
-
}), t && /* @__PURE__ */
|
|
2106
|
-
className:
|
|
2105
|
+
}), t && /* @__PURE__ */ D("span", {
|
|
2106
|
+
className: K.item__description,
|
|
2107
2107
|
children: t
|
|
2108
2108
|
})]
|
|
2109
2109
|
}),
|
|
2110
|
-
r && /* @__PURE__ */
|
|
2111
|
-
className:
|
|
2110
|
+
r && /* @__PURE__ */ D("span", {
|
|
2111
|
+
className: K.item__trailing,
|
|
2112
2112
|
children: r
|
|
2113
2113
|
})
|
|
2114
2114
|
]
|
|
2115
|
-
}),
|
|
2115
|
+
}), mr = {
|
|
2116
2116
|
chart: "_chart_cc7lx_2",
|
|
2117
2117
|
center: "_center_cc7lx_30",
|
|
2118
2118
|
center__value: "_center__value_cc7lx_39",
|
|
2119
2119
|
center__caption: "_center__caption_cc7lx_40"
|
|
2120
|
-
},
|
|
2120
|
+
}, hr = {
|
|
2121
2121
|
sm: {
|
|
2122
2122
|
h: 180,
|
|
2123
2123
|
outer: 72
|
|
@@ -2134,21 +2134,21 @@ var G = {
|
|
|
2134
2134
|
h: 340,
|
|
2135
2135
|
outer: 142
|
|
2136
2136
|
}
|
|
2137
|
-
},
|
|
2137
|
+
}, gr = /* @__PURE__ */ new Set([
|
|
2138
2138
|
"donut",
|
|
2139
2139
|
"donut-active",
|
|
2140
2140
|
"donut-with-text",
|
|
2141
2141
|
"interactive"
|
|
2142
|
-
]),
|
|
2143
|
-
let o =
|
|
2142
|
+
]), _r = /* @__PURE__ */ new Set(["donut-active"]), vr = /* @__PURE__ */ new Set(["interactive"]), yr = /* @__PURE__ */ new Set(["donut-with-text"]), br = Math.PI / 180, xr = ({ data: e, variant: t = "donut", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
2143
|
+
let o = E.useRef(null), s = He(o), [c, l] = E.useState(void 0), u = [
|
|
2144
2144
|
1,
|
|
2145
2145
|
2,
|
|
2146
2146
|
3,
|
|
2147
2147
|
4,
|
|
2148
2148
|
5
|
|
2149
|
-
].map((e) => s(`--color-chart-${e}`) ??
|
|
2149
|
+
].map((e) => s(`--color-chart-${e}`) ?? Fe[e - 1]), d = s("--color-bg-surface") ?? "#ffffff", f = s("--color-fg-default") ?? "#141414", p = hr[n], m = gr.has(t), h = _r.has(t), g = vr.has(t), _ = m ? p.outer * .6 : 0, v = yr.has(t) && (r || i), y = c ?? (h || g ? 0 : void 0), b = (e) => {
|
|
2150
2150
|
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;
|
|
2151
|
-
return l && g ? /* @__PURE__ */
|
|
2151
|
+
return l && g ? /* @__PURE__ */ O("g", { children: [/* @__PURE__ */ D(Gt, {
|
|
2152
2152
|
cx: t,
|
|
2153
2153
|
cy: n,
|
|
2154
2154
|
innerRadius: r,
|
|
@@ -2156,7 +2156,7 @@ var G = {
|
|
|
2156
2156
|
startAngle: a,
|
|
2157
2157
|
endAngle: o,
|
|
2158
2158
|
fill: s
|
|
2159
|
-
}), /* @__PURE__ */
|
|
2159
|
+
}), /* @__PURE__ */ D(Gt, {
|
|
2160
2160
|
cx: t,
|
|
2161
2161
|
cy: n,
|
|
2162
2162
|
innerRadius: i + u + 3,
|
|
@@ -2164,7 +2164,7 @@ var G = {
|
|
|
2164
2164
|
startAngle: a,
|
|
2165
2165
|
endAngle: o,
|
|
2166
2166
|
fill: s
|
|
2167
|
-
})] }) : /* @__PURE__ */
|
|
2167
|
+
})] }) : /* @__PURE__ */ D(Gt, {
|
|
2168
2168
|
cx: t,
|
|
2169
2169
|
cy: n,
|
|
2170
2170
|
innerRadius: r,
|
|
@@ -2174,7 +2174,7 @@ var G = {
|
|
|
2174
2174
|
fill: s
|
|
2175
2175
|
});
|
|
2176
2176
|
}, x = (e) => {
|
|
2177
|
-
let { cx: t, cy: n, midAngle: r, outerRadius: i } = e, a = r ?? 0, o = Math.cos(-a *
|
|
2177
|
+
let { cx: t, cy: n, midAngle: r, outerRadius: i } = e, a = r ?? 0, o = Math.cos(-a * br), s = Math.sin(-a * br), c = t + i * o, l = n + i * s, u = t + (i + 16) * o, d = n + (i + 16) * s, f = o >= 0, p = u + (f ? 14 : -14);
|
|
2178
2178
|
return {
|
|
2179
2179
|
d: `M ${c} ${l} L ${u} ${d} L ${p} ${d}`,
|
|
2180
2180
|
endX: p,
|
|
@@ -2183,12 +2183,12 @@ var G = {
|
|
|
2183
2183
|
};
|
|
2184
2184
|
}, ee = (e) => {
|
|
2185
2185
|
let { value: t, fill: n } = e, { d: r, endX: i, endY: a, textAnchor: o } = x(e), s = i + (o === "start" ? 4 : -4);
|
|
2186
|
-
return /* @__PURE__ */
|
|
2186
|
+
return /* @__PURE__ */ O("g", { children: [/* @__PURE__ */ D("path", {
|
|
2187
2187
|
d: r,
|
|
2188
2188
|
fill: "none",
|
|
2189
2189
|
stroke: n,
|
|
2190
2190
|
strokeWidth: 1
|
|
2191
|
-
}), /* @__PURE__ */
|
|
2191
|
+
}), /* @__PURE__ */ D("text", {
|
|
2192
2192
|
x: s,
|
|
2193
2193
|
y: a,
|
|
2194
2194
|
textAnchor: o,
|
|
@@ -2198,9 +2198,9 @@ var G = {
|
|
|
2198
2198
|
fontFamily: "var(--font-sans)",
|
|
2199
2199
|
children: t
|
|
2200
2200
|
})] });
|
|
2201
|
-
},
|
|
2201
|
+
}, S = (e) => {
|
|
2202
2202
|
let { x: t, y: n, textAnchor: r, value: i } = e;
|
|
2203
|
-
return /* @__PURE__ */
|
|
2203
|
+
return /* @__PURE__ */ D("text", {
|
|
2204
2204
|
x: t,
|
|
2205
2205
|
y: n,
|
|
2206
2206
|
textAnchor: r,
|
|
@@ -2211,11 +2211,11 @@ var G = {
|
|
|
2211
2211
|
fontFamily: "var(--font-sans)",
|
|
2212
2212
|
children: i
|
|
2213
2213
|
});
|
|
2214
|
-
},
|
|
2214
|
+
}, C = (t) => {
|
|
2215
2215
|
let { cx: n, cy: r, midAngle: i, innerRadius: a, outerRadius: o, index: s } = t, c = (a + o) / 2;
|
|
2216
|
-
return /* @__PURE__ */
|
|
2217
|
-
x: n + c * Math.cos(-i *
|
|
2218
|
-
y: r + c * Math.sin(-i *
|
|
2216
|
+
return /* @__PURE__ */ D("text", {
|
|
2217
|
+
x: n + c * Math.cos(-i * br),
|
|
2218
|
+
y: r + c * Math.sin(-i * br),
|
|
2219
2219
|
textAnchor: "middle",
|
|
2220
2220
|
dominantBaseline: "central",
|
|
2221
2221
|
fill: "#fff",
|
|
@@ -2227,15 +2227,15 @@ var G = {
|
|
|
2227
2227
|
};
|
|
2228
2228
|
if (t === "stacked") {
|
|
2229
2229
|
let t = (e) => c !== void 0 && c !== e ? .45 : 1;
|
|
2230
|
-
return /* @__PURE__ */
|
|
2230
|
+
return /* @__PURE__ */ D("div", {
|
|
2231
2231
|
ref: o,
|
|
2232
|
-
className: [
|
|
2232
|
+
className: [mr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2233
2233
|
style: { height: p.h },
|
|
2234
|
-
children: /* @__PURE__ */
|
|
2234
|
+
children: /* @__PURE__ */ D(Wt, {
|
|
2235
2235
|
width: "100%",
|
|
2236
2236
|
height: "100%",
|
|
2237
|
-
children: /* @__PURE__ */
|
|
2238
|
-
/* @__PURE__ */
|
|
2237
|
+
children: /* @__PURE__ */ O(It, { children: [
|
|
2238
|
+
/* @__PURE__ */ D(Ft, {
|
|
2239
2239
|
data: e,
|
|
2240
2240
|
dataKey: "value",
|
|
2241
2241
|
nameKey: "label",
|
|
@@ -2246,12 +2246,12 @@ var G = {
|
|
|
2246
2246
|
isAnimationActive: !1,
|
|
2247
2247
|
onMouseEnter: (e, t) => l(t),
|
|
2248
2248
|
onMouseLeave: () => l(void 0),
|
|
2249
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
2249
|
+
children: e.map((e, n) => /* @__PURE__ */ D(Nt, {
|
|
2250
2250
|
fill: u[n % u.length],
|
|
2251
2251
|
fillOpacity: t(n)
|
|
2252
2252
|
}, n))
|
|
2253
2253
|
}),
|
|
2254
|
-
/* @__PURE__ */
|
|
2254
|
+
/* @__PURE__ */ D(Ft, {
|
|
2255
2255
|
data: e,
|
|
2256
2256
|
dataKey: "value",
|
|
2257
2257
|
nameKey: "label",
|
|
@@ -2262,27 +2262,27 @@ var G = {
|
|
|
2262
2262
|
isAnimationActive: !1,
|
|
2263
2263
|
onMouseEnter: (e, t) => l(t),
|
|
2264
2264
|
onMouseLeave: () => l(void 0),
|
|
2265
|
-
children: e.map((e, n) => /* @__PURE__ */
|
|
2265
|
+
children: e.map((e, n) => /* @__PURE__ */ D(Nt, {
|
|
2266
2266
|
fill: u[n % u.length],
|
|
2267
2267
|
fillOpacity: t(n)
|
|
2268
2268
|
}, n))
|
|
2269
2269
|
}),
|
|
2270
|
-
/* @__PURE__ */
|
|
2271
|
-
content: /* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ D(Kt, {
|
|
2271
|
+
content: /* @__PURE__ */ D(ue, {}),
|
|
2272
2272
|
wrapperStyle: { zIndex: 50 }
|
|
2273
2273
|
})
|
|
2274
2274
|
] })
|
|
2275
2275
|
})
|
|
2276
2276
|
});
|
|
2277
2277
|
}
|
|
2278
|
-
return /* @__PURE__ */
|
|
2278
|
+
return /* @__PURE__ */ O("div", {
|
|
2279
2279
|
ref: o,
|
|
2280
|
-
className: [
|
|
2280
|
+
className: [mr.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2281
2281
|
style: { height: p.h },
|
|
2282
|
-
children: [/* @__PURE__ */
|
|
2282
|
+
children: [/* @__PURE__ */ D(Wt, {
|
|
2283
2283
|
width: "100%",
|
|
2284
2284
|
height: "100%",
|
|
2285
|
-
children: /* @__PURE__ */
|
|
2285
|
+
children: /* @__PURE__ */ O(It, { children: [/* @__PURE__ */ D(Ft, {
|
|
2286
2286
|
data: e,
|
|
2287
2287
|
dataKey: "value",
|
|
2288
2288
|
nameKey: "label",
|
|
@@ -2293,27 +2293,27 @@ var G = {
|
|
|
2293
2293
|
strokeWidth: t === "pie" ? 2 : 0,
|
|
2294
2294
|
isAnimationActive: !1,
|
|
2295
2295
|
shape: h || g ? b : void 0,
|
|
2296
|
-
label: t === "label" ? ee : t === "custom-label" ?
|
|
2296
|
+
label: t === "label" ? ee : t === "custom-label" ? S : t === "label-list" ? C : void 0,
|
|
2297
2297
|
labelLine: !1,
|
|
2298
2298
|
onMouseEnter: (e, t) => l(t),
|
|
2299
2299
|
onMouseLeave: () => l(void 0),
|
|
2300
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2301
|
-
}), /* @__PURE__ */
|
|
2302
|
-
content: /* @__PURE__ */
|
|
2300
|
+
children: e.map((e, t) => /* @__PURE__ */ D(Nt, { fill: u[t % u.length] }, t))
|
|
2301
|
+
}), /* @__PURE__ */ D(Kt, {
|
|
2302
|
+
content: /* @__PURE__ */ D(ue, {}),
|
|
2303
2303
|
wrapperStyle: { zIndex: 50 }
|
|
2304
2304
|
})] })
|
|
2305
|
-
}), v && /* @__PURE__ */
|
|
2306
|
-
className:
|
|
2307
|
-
children: [r && /* @__PURE__ */
|
|
2308
|
-
className:
|
|
2305
|
+
}), v && /* @__PURE__ */ O("div", {
|
|
2306
|
+
className: mr.center,
|
|
2307
|
+
children: [r && /* @__PURE__ */ D("span", {
|
|
2308
|
+
className: mr.center__value,
|
|
2309
2309
|
children: r
|
|
2310
|
-
}), i && /* @__PURE__ */
|
|
2311
|
-
className:
|
|
2310
|
+
}), i && /* @__PURE__ */ D("span", {
|
|
2311
|
+
className: mr.center__caption,
|
|
2312
2312
|
children: i
|
|
2313
2313
|
})]
|
|
2314
2314
|
})]
|
|
2315
2315
|
});
|
|
2316
|
-
},
|
|
2316
|
+
}, q = {
|
|
2317
2317
|
root: "_root_16f5u_2",
|
|
2318
2318
|
trigger: "_trigger_16f5u_3",
|
|
2319
2319
|
panel: "_panel_16f5u_5",
|
|
@@ -2331,15 +2331,15 @@ var G = {
|
|
|
2331
2331
|
panel__description: "_panel__description_16f5u_76",
|
|
2332
2332
|
panel__body: "_panel__body_16f5u_77",
|
|
2333
2333
|
panel__actions: "_panel__actions_16f5u_78"
|
|
2334
|
-
},
|
|
2335
|
-
let [s, c] =
|
|
2336
|
-
return
|
|
2334
|
+
}, Sr = ({ trigger: e, title: t, description: n, actions: r, placement: i = "bottom-start", children: a, className: o }) => {
|
|
2335
|
+
let [s, c] = E.useState(!1), [l, u] = E.useState(!1), d = E.useRef(null), f = E.useRef(null);
|
|
2336
|
+
return E.useEffect(() => {
|
|
2337
2337
|
s && u(!0);
|
|
2338
|
-
}, [s]),
|
|
2338
|
+
}, [s]), E.useEffect(() => {
|
|
2339
2339
|
if (s || !l) return;
|
|
2340
2340
|
let e = setTimeout(() => u(!1), 240);
|
|
2341
2341
|
return () => clearTimeout(e);
|
|
2342
|
-
}, [s, l]),
|
|
2342
|
+
}, [s, l]), E.useEffect(() => {
|
|
2343
2343
|
if (!s) return;
|
|
2344
2344
|
let e = (e) => {
|
|
2345
2345
|
d.current && !d.current.contains(e.target) && c(!1);
|
|
@@ -2349,60 +2349,60 @@ var G = {
|
|
|
2349
2349
|
return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
|
|
2350
2350
|
document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
|
|
2351
2351
|
};
|
|
2352
|
-
}, [s]),
|
|
2352
|
+
}, [s]), E.useEffect(() => {
|
|
2353
2353
|
!s && f.current && (f.current.focus(), f.current = null);
|
|
2354
|
-
}, [s]), /* @__PURE__ */
|
|
2355
|
-
className: [
|
|
2354
|
+
}, [s]), /* @__PURE__ */ O("div", {
|
|
2355
|
+
className: [q.root, o ?? ""].filter(Boolean).join(" "),
|
|
2356
2356
|
ref: d,
|
|
2357
|
-
children: [/* @__PURE__ */
|
|
2358
|
-
className:
|
|
2357
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2358
|
+
className: q.trigger,
|
|
2359
2359
|
onClick: () => {
|
|
2360
2360
|
s || (f.current = document.activeElement), c((e) => !e);
|
|
2361
2361
|
},
|
|
2362
2362
|
children: e
|
|
2363
|
-
}), l && /* @__PURE__ */
|
|
2363
|
+
}), l && /* @__PURE__ */ O("div", {
|
|
2364
2364
|
className: [
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
s ?
|
|
2365
|
+
q.panel,
|
|
2366
|
+
q[`panel--${i}`],
|
|
2367
|
+
s ? q["panel--entering"] : q["panel--exiting"]
|
|
2368
2368
|
].filter(Boolean).join(" "),
|
|
2369
2369
|
role: "dialog",
|
|
2370
2370
|
onAnimationEnd: (e) => {
|
|
2371
2371
|
e.target === e.currentTarget && !s && u(!1);
|
|
2372
2372
|
},
|
|
2373
2373
|
children: [
|
|
2374
|
-
t && /* @__PURE__ */
|
|
2375
|
-
className:
|
|
2374
|
+
t && /* @__PURE__ */ D("div", {
|
|
2375
|
+
className: q.panel__title,
|
|
2376
2376
|
children: t
|
|
2377
2377
|
}),
|
|
2378
|
-
n && /* @__PURE__ */
|
|
2379
|
-
className:
|
|
2378
|
+
n && /* @__PURE__ */ D("div", {
|
|
2379
|
+
className: q.panel__description,
|
|
2380
2380
|
children: n
|
|
2381
2381
|
}),
|
|
2382
|
-
a && /* @__PURE__ */
|
|
2383
|
-
className:
|
|
2382
|
+
a && /* @__PURE__ */ D("div", {
|
|
2383
|
+
className: q.panel__body,
|
|
2384
2384
|
children: a
|
|
2385
2385
|
}),
|
|
2386
|
-
r && /* @__PURE__ */
|
|
2387
|
-
className:
|
|
2386
|
+
r && /* @__PURE__ */ D("div", {
|
|
2387
|
+
className: q.panel__actions,
|
|
2388
2388
|
children: r
|
|
2389
2389
|
})
|
|
2390
2390
|
]
|
|
2391
2391
|
})]
|
|
2392
2392
|
});
|
|
2393
|
-
},
|
|
2393
|
+
}, Cr = {
|
|
2394
2394
|
chart: "_chart_q6xhl_2",
|
|
2395
2395
|
circleFillSvg: "_circleFillSvg_q6xhl_17"
|
|
2396
|
-
},
|
|
2396
|
+
}, wr = {
|
|
2397
2397
|
sm: 200,
|
|
2398
2398
|
md: 260,
|
|
2399
2399
|
lg: 340,
|
|
2400
2400
|
xl: 420
|
|
2401
|
-
},
|
|
2401
|
+
}, Tr = /* @__PURE__ */ new Set([
|
|
2402
2402
|
"circle-grid",
|
|
2403
2403
|
"circle-grid-no-lines",
|
|
2404
2404
|
"circle-grid-filled"
|
|
2405
|
-
]),
|
|
2405
|
+
]), Er = /* @__PURE__ */ new Set(["default", "grid-custom"]), Dr = /* @__PURE__ */ new Set(["dots-grid-none"]), Or = /* @__PURE__ */ new Set(["grid-filled"]), kr = (e) => e === "circle-grid-filled", Ar = /* @__PURE__ */ new Set([
|
|
2406
2406
|
"default",
|
|
2407
2407
|
"dots",
|
|
2408
2408
|
"dots-grid-none",
|
|
@@ -2413,34 +2413,34 @@ var G = {
|
|
|
2413
2413
|
"grid-custom",
|
|
2414
2414
|
"grid-filled",
|
|
2415
2415
|
"circle-grid-filled"
|
|
2416
|
-
]),
|
|
2416
|
+
]), jr = [
|
|
2417
2417
|
1,
|
|
2418
2418
|
.8,
|
|
2419
2419
|
.6,
|
|
2420
2420
|
.4,
|
|
2421
2421
|
.2
|
|
2422
|
-
],
|
|
2423
|
-
let a =
|
|
2424
|
-
|
|
2422
|
+
], Mr = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
|
|
2423
|
+
let a = E.useRef(null), o = He(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 = Or.has(t), _ = Er.has(t), v = Dr.has(t), y = kr(t), [b, x] = E.useState(0);
|
|
2424
|
+
E.useEffect(() => {
|
|
2425
2425
|
if (!y || !a.current) return;
|
|
2426
2426
|
let e = a.current, t = new ResizeObserver(([e]) => x(e.contentRect.width));
|
|
2427
2427
|
return t.observe(e), () => t.disconnect();
|
|
2428
2428
|
}, [y]);
|
|
2429
|
-
let ee =
|
|
2429
|
+
let ee = E.useMemo(() => {
|
|
2430
2430
|
if (!g) return e;
|
|
2431
2431
|
let t = Math.max(1, ...e.flatMap((e) => [e.value, e.value2 ?? 0]));
|
|
2432
2432
|
return e.map((e) => {
|
|
2433
2433
|
let n = {};
|
|
2434
|
-
return
|
|
2434
|
+
return jr.forEach((e, r) => {
|
|
2435
2435
|
n[`ring${r}`] = e * t;
|
|
2436
2436
|
}), {
|
|
2437
2437
|
...e,
|
|
2438
2438
|
...n
|
|
2439
2439
|
};
|
|
2440
2440
|
});
|
|
2441
|
-
}, [e, g]),
|
|
2441
|
+
}, [e, g]), S = (t) => {
|
|
2442
2442
|
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];
|
|
2443
|
-
if (!c) return /* @__PURE__ */
|
|
2443
|
+
if (!c) return /* @__PURE__ */ D("g", {});
|
|
2444
2444
|
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;
|
|
2445
2445
|
if (p && d < 0) h = r - 4 - 6, m = h - 16;
|
|
2446
2446
|
else if (p) m = r + 4 + 10, h = m + 18;
|
|
@@ -2449,7 +2449,7 @@ var G = {
|
|
|
2449
2449
|
m = e - 8, h = e + 12;
|
|
2450
2450
|
}
|
|
2451
2451
|
let g = p ? n : n + l / Math.sqrt(l * l + d * d || 1) * 4;
|
|
2452
|
-
return /* @__PURE__ */
|
|
2452
|
+
return /* @__PURE__ */ O("g", { children: [/* @__PURE__ */ D("text", {
|
|
2453
2453
|
x: g,
|
|
2454
2454
|
y: m,
|
|
2455
2455
|
textAnchor: s,
|
|
@@ -2458,7 +2458,7 @@ var G = {
|
|
|
2458
2458
|
fontWeight: 600,
|
|
2459
2459
|
fontFamily: "var(--font-sans)",
|
|
2460
2460
|
children: f
|
|
2461
|
-
}), /* @__PURE__ */
|
|
2461
|
+
}), /* @__PURE__ */ D("text", {
|
|
2462
2462
|
x: g,
|
|
2463
2463
|
y: h,
|
|
2464
2464
|
textAnchor: s,
|
|
@@ -2467,56 +2467,56 @@ var G = {
|
|
|
2467
2467
|
fontFamily: "var(--font-sans)",
|
|
2468
2468
|
children: c.label
|
|
2469
2469
|
})] });
|
|
2470
|
-
},
|
|
2471
|
-
return /* @__PURE__ */
|
|
2470
|
+
}, C = wr[n], te = (b > 0 ? Math.min(b, C) / 2 - 5 : 0) * .7;
|
|
2471
|
+
return /* @__PURE__ */ O("div", {
|
|
2472
2472
|
ref: a,
|
|
2473
|
-
className: [
|
|
2474
|
-
children: [y && b > 0 && /* @__PURE__ */
|
|
2475
|
-
className:
|
|
2473
|
+
className: [Cr.chart, i ?? ""].filter(Boolean).join(" "),
|
|
2474
|
+
children: [y && b > 0 && /* @__PURE__ */ D("svg", {
|
|
2475
|
+
className: Cr.circleFillSvg,
|
|
2476
2476
|
width: b,
|
|
2477
|
-
height:
|
|
2478
|
-
children:
|
|
2477
|
+
height: C,
|
|
2478
|
+
children: jr.map((e) => /* @__PURE__ */ D("circle", {
|
|
2479
2479
|
cx: b / 2,
|
|
2480
|
-
cy:
|
|
2481
|
-
r:
|
|
2480
|
+
cy: C / 2,
|
|
2481
|
+
r: te * e,
|
|
2482
2482
|
fill: c,
|
|
2483
2483
|
fillOpacity: .1
|
|
2484
2484
|
}, e))
|
|
2485
|
-
}), /* @__PURE__ */
|
|
2485
|
+
}), /* @__PURE__ */ D(Wt, {
|
|
2486
2486
|
width: "100%",
|
|
2487
|
-
height:
|
|
2488
|
-
children: /* @__PURE__ */
|
|
2487
|
+
height: C,
|
|
2488
|
+
children: /* @__PURE__ */ O(Vt, {
|
|
2489
2489
|
data: ee,
|
|
2490
2490
|
outerRadius: "70%",
|
|
2491
2491
|
children: [
|
|
2492
|
-
!g && !v && /* @__PURE__ */
|
|
2493
|
-
gridType:
|
|
2492
|
+
!g && !v && /* @__PURE__ */ D(Rt, {
|
|
2493
|
+
gridType: Tr.has(t) ? "circle" : "polygon",
|
|
2494
2494
|
radialLines: t !== "circle-grid-no-lines" && !_,
|
|
2495
2495
|
stroke: l
|
|
2496
2496
|
}),
|
|
2497
|
-
/* @__PURE__ */
|
|
2497
|
+
/* @__PURE__ */ D(Lt, {
|
|
2498
2498
|
dataKey: "label",
|
|
2499
2499
|
axisLine: !1,
|
|
2500
|
-
tick: t === "custom-label" ?
|
|
2500
|
+
tick: t === "custom-label" ? S : {
|
|
2501
2501
|
fill: u,
|
|
2502
2502
|
fontSize: 12,
|
|
2503
2503
|
fontFamily: "var(--font-sans)"
|
|
2504
2504
|
}
|
|
2505
2505
|
}),
|
|
2506
|
-
/* @__PURE__ */
|
|
2506
|
+
/* @__PURE__ */ D(zt, {
|
|
2507
2507
|
tick: !1,
|
|
2508
2508
|
axisLine: !1,
|
|
2509
2509
|
tickCount: _ ? 2 : void 0
|
|
2510
2510
|
}),
|
|
2511
|
-
/* @__PURE__ */
|
|
2512
|
-
content: /* @__PURE__ */
|
|
2511
|
+
/* @__PURE__ */ D(Kt, {
|
|
2512
|
+
content: /* @__PURE__ */ D(ue, {}),
|
|
2513
2513
|
wrapperStyle: { zIndex: 50 }
|
|
2514
2514
|
}),
|
|
2515
|
-
d && /* @__PURE__ */
|
|
2515
|
+
d && /* @__PURE__ */ D(Pt, { wrapperStyle: {
|
|
2516
2516
|
fontSize: 12,
|
|
2517
2517
|
fontFamily: "var(--font-sans)"
|
|
2518
2518
|
} }),
|
|
2519
|
-
g &&
|
|
2519
|
+
g && jr.map((e, t) => /* @__PURE__ */ D(Bt, {
|
|
2520
2520
|
dataKey: `ring${t}`,
|
|
2521
2521
|
stroke: "none",
|
|
2522
2522
|
fill: c,
|
|
@@ -2524,13 +2524,13 @@ var G = {
|
|
|
2524
2524
|
isAnimationActive: !1,
|
|
2525
2525
|
legendType: "none"
|
|
2526
2526
|
}, `ring${t}`)),
|
|
2527
|
-
/* @__PURE__ */
|
|
2527
|
+
/* @__PURE__ */ D(Bt, {
|
|
2528
2528
|
name: d ? r[0] ?? "Value" : void 0,
|
|
2529
2529
|
dataKey: "value",
|
|
2530
|
-
stroke:
|
|
2530
|
+
stroke: Ar.has(t) ? "none" : c,
|
|
2531
2531
|
fill: m ? c : "none",
|
|
2532
2532
|
fillOpacity: m ? _ ? 1 : p ? .45 : .5 : 0,
|
|
2533
|
-
strokeWidth:
|
|
2533
|
+
strokeWidth: Ar.has(t) ? 0 : 2,
|
|
2534
2534
|
dot: h ? {
|
|
2535
2535
|
r: 4,
|
|
2536
2536
|
fill: c,
|
|
@@ -2538,7 +2538,7 @@ var G = {
|
|
|
2538
2538
|
} : !1,
|
|
2539
2539
|
isAnimationActive: !1
|
|
2540
2540
|
}),
|
|
2541
|
-
p && /* @__PURE__ */
|
|
2541
|
+
p && /* @__PURE__ */ D(Bt, {
|
|
2542
2542
|
name: d ? r[1] ?? "Value 2" : void 0,
|
|
2543
2543
|
dataKey: "value2",
|
|
2544
2544
|
stroke: f ? s : "none",
|
|
@@ -2556,50 +2556,50 @@ var G = {
|
|
|
2556
2556
|
})
|
|
2557
2557
|
})]
|
|
2558
2558
|
});
|
|
2559
|
-
},
|
|
2559
|
+
}, J = {
|
|
2560
2560
|
chart: "_chart_1ogmh_2",
|
|
2561
2561
|
gridSvg: "_gridSvg_1ogmh_19",
|
|
2562
2562
|
gaugeSvg: "_gaugeSvg_1ogmh_31",
|
|
2563
2563
|
center: "_center_1ogmh_36",
|
|
2564
2564
|
center__value: "_center__value_1ogmh_45",
|
|
2565
2565
|
center__caption: "_center__caption_1ogmh_46"
|
|
2566
|
-
},
|
|
2566
|
+
}, Nr = {
|
|
2567
2567
|
sm: 180,
|
|
2568
2568
|
md: 220,
|
|
2569
2569
|
lg: 280,
|
|
2570
2570
|
xl: 340
|
|
2571
|
-
},
|
|
2571
|
+
}, Pr = Math.PI / 180, Fr = (e) => Math.round(e * 1e3) / 1e3, Ir = {
|
|
2572
2572
|
multi: ["30%", "100%"],
|
|
2573
2573
|
grid: ["30%", "100%"],
|
|
2574
2574
|
"stacked-label": ["30%", "100%"],
|
|
2575
2575
|
text: ["76%", "100%"]
|
|
2576
|
-
},
|
|
2576
|
+
}, Lr = ({ value: e, max: t, color: n, track: r, centerValue: i, centerCaption: a, labelColor: o, captionColor: s }) => {
|
|
2577
2577
|
let c = Math.round(Math.min(e, t) / t * 40);
|
|
2578
|
-
return /* @__PURE__ */
|
|
2578
|
+
return /* @__PURE__ */ O("svg", {
|
|
2579
2579
|
viewBox: "0 0 200 120",
|
|
2580
|
-
className:
|
|
2580
|
+
className: J.gaugeSvg,
|
|
2581
2581
|
children: [Array.from({ length: 40 }).map((e, t) => {
|
|
2582
2582
|
let i = 180 + t / 39 * 180;
|
|
2583
|
-
return /* @__PURE__ */
|
|
2584
|
-
x1:
|
|
2585
|
-
y1:
|
|
2586
|
-
x2:
|
|
2587
|
-
y2:
|
|
2583
|
+
return /* @__PURE__ */ D("line", {
|
|
2584
|
+
x1: Fr(100 + 78 * Math.cos(i * Pr)),
|
|
2585
|
+
y1: Fr(100 + 78 * Math.sin(i * Pr)),
|
|
2586
|
+
x2: Fr(100 + 92 * Math.cos(i * Pr)),
|
|
2587
|
+
y2: Fr(100 + 92 * Math.sin(i * Pr)),
|
|
2588
2588
|
stroke: t < c ? n : r,
|
|
2589
2589
|
strokeWidth: 2.5,
|
|
2590
2590
|
strokeLinecap: "round"
|
|
2591
2591
|
}, t);
|
|
2592
|
-
}), (i || a) && /* @__PURE__ */
|
|
2592
|
+
}), (i || a) && /* @__PURE__ */ O("g", {
|
|
2593
2593
|
textAnchor: "middle",
|
|
2594
2594
|
fontFamily: "var(--font-sans)",
|
|
2595
|
-
children: [i && /* @__PURE__ */
|
|
2595
|
+
children: [i && /* @__PURE__ */ D("text", {
|
|
2596
2596
|
x: 100,
|
|
2597
2597
|
y: 92,
|
|
2598
2598
|
fontSize: 22,
|
|
2599
2599
|
fontWeight: 500,
|
|
2600
2600
|
fill: o,
|
|
2601
2601
|
children: i
|
|
2602
|
-
}), a && /* @__PURE__ */
|
|
2602
|
+
}), a && /* @__PURE__ */ D("text", {
|
|
2603
2603
|
x: 100,
|
|
2604
2604
|
y: 112,
|
|
2605
2605
|
fontSize: 12,
|
|
@@ -2608,10 +2608,10 @@ var G = {
|
|
|
2608
2608
|
})]
|
|
2609
2609
|
})]
|
|
2610
2610
|
});
|
|
2611
|
-
},
|
|
2611
|
+
}, Rr = ({ rings: e, spokes: t, color: n }) => /* @__PURE__ */ O("svg", {
|
|
2612
2612
|
viewBox: "0 0 200 200",
|
|
2613
|
-
className:
|
|
2614
|
-
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */
|
|
2613
|
+
className: J.gridSvg,
|
|
2614
|
+
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */ D("circle", {
|
|
2615
2615
|
cx: 100,
|
|
2616
2616
|
cy: 100,
|
|
2617
2617
|
r: (r + 1) / e * 96,
|
|
@@ -2620,16 +2620,16 @@ var G = {
|
|
|
2620
2620
|
strokeWidth: 1
|
|
2621
2621
|
}, r)), Array.from({ length: t }).map((e, r) => {
|
|
2622
2622
|
let i = r / t * 360, a = 99.5 * 1.1;
|
|
2623
|
-
return /* @__PURE__ */
|
|
2623
|
+
return /* @__PURE__ */ D("line", {
|
|
2624
2624
|
x1: 100,
|
|
2625
2625
|
y1: 100,
|
|
2626
|
-
x2:
|
|
2627
|
-
y2:
|
|
2626
|
+
x2: Fr(100 + a * Math.cos(i * Pr)),
|
|
2627
|
+
y2: Fr(100 + a * Math.sin(i * Pr)),
|
|
2628
2628
|
stroke: n,
|
|
2629
2629
|
strokeWidth: 1
|
|
2630
2630
|
}, r);
|
|
2631
2631
|
})]
|
|
2632
|
-
}),
|
|
2632
|
+
}), zr = ({ data: e, palette: t, track: n, centerValue: r, centerCaption: i, labelColor: a, captionColor: o }) => {
|
|
2633
2633
|
let s = e[0]?.max ?? e.reduce((e, t) => e + t.value, 0), c = 210, l = e.map((e, n) => {
|
|
2634
2634
|
let r = s > 0 ? e.value / s * 240 : 0, i = c, a = c - r;
|
|
2635
2635
|
return c = a, {
|
|
@@ -2638,11 +2638,11 @@ var G = {
|
|
|
2638
2638
|
fill: t[n % t.length]
|
|
2639
2639
|
};
|
|
2640
2640
|
});
|
|
2641
|
-
return /* @__PURE__ */
|
|
2641
|
+
return /* @__PURE__ */ O("svg", {
|
|
2642
2642
|
viewBox: "0 0 200 160",
|
|
2643
|
-
className:
|
|
2643
|
+
className: J.gaugeSvg,
|
|
2644
2644
|
children: [
|
|
2645
|
-
l.map((e, t) => /* @__PURE__ */
|
|
2645
|
+
l.map((e, t) => /* @__PURE__ */ D(Gt, {
|
|
2646
2646
|
cx: 100,
|
|
2647
2647
|
cy: 100,
|
|
2648
2648
|
innerRadius: 64,
|
|
@@ -2652,7 +2652,7 @@ var G = {
|
|
|
2652
2652
|
fill: e.fill,
|
|
2653
2653
|
cornerRadius: 4
|
|
2654
2654
|
}, t)),
|
|
2655
|
-
c > -29.5 && /* @__PURE__ */
|
|
2655
|
+
c > -29.5 && /* @__PURE__ */ D(Gt, {
|
|
2656
2656
|
cx: 100,
|
|
2657
2657
|
cy: 100,
|
|
2658
2658
|
innerRadius: 64,
|
|
@@ -2662,17 +2662,17 @@ var G = {
|
|
|
2662
2662
|
fill: n,
|
|
2663
2663
|
cornerRadius: 4
|
|
2664
2664
|
}),
|
|
2665
|
-
(r || i) && /* @__PURE__ */
|
|
2665
|
+
(r || i) && /* @__PURE__ */ O("g", {
|
|
2666
2666
|
textAnchor: "middle",
|
|
2667
2667
|
fontFamily: "var(--font-sans)",
|
|
2668
|
-
children: [r && /* @__PURE__ */
|
|
2668
|
+
children: [r && /* @__PURE__ */ D("text", {
|
|
2669
2669
|
x: 100,
|
|
2670
2670
|
y: 92,
|
|
2671
2671
|
fontSize: 22,
|
|
2672
2672
|
fontWeight: 500,
|
|
2673
2673
|
fill: a,
|
|
2674
2674
|
children: r
|
|
2675
|
-
}), i && /* @__PURE__ */
|
|
2675
|
+
}), i && /* @__PURE__ */ D("text", {
|
|
2676
2676
|
x: 100,
|
|
2677
2677
|
y: 112,
|
|
2678
2678
|
fontSize: 12,
|
|
@@ -2682,21 +2682,21 @@ var G = {
|
|
|
2682
2682
|
})
|
|
2683
2683
|
]
|
|
2684
2684
|
});
|
|
2685
|
-
},
|
|
2686
|
-
let o =
|
|
2685
|
+
}, Br = ({ data: e, variant: t = "multi", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
2686
|
+
let o = E.useRef(null), s = He(o), c = [
|
|
2687
2687
|
1,
|
|
2688
2688
|
2,
|
|
2689
2689
|
3,
|
|
2690
2690
|
4,
|
|
2691
2691
|
5
|
|
2692
|
-
].map((e) => s(`--color-chart-${e}`) ??
|
|
2692
|
+
].map((e) => s(`--color-chart-${e}`) ?? Fe[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 = Nr[n];
|
|
2693
2693
|
if (t === "gauge-tick") {
|
|
2694
2694
|
let t = e[0];
|
|
2695
|
-
return /* @__PURE__ */
|
|
2695
|
+
return /* @__PURE__ */ D("div", {
|
|
2696
2696
|
ref: o,
|
|
2697
|
-
className: [
|
|
2697
|
+
className: [J.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2698
2698
|
style: { height: p },
|
|
2699
|
-
children: /* @__PURE__ */
|
|
2699
|
+
children: /* @__PURE__ */ D(Lr, {
|
|
2700
2700
|
value: t?.value ?? 0,
|
|
2701
2701
|
max: t?.max ?? 100,
|
|
2702
2702
|
color: c[0],
|
|
@@ -2708,11 +2708,11 @@ var G = {
|
|
|
2708
2708
|
})
|
|
2709
2709
|
});
|
|
2710
2710
|
}
|
|
2711
|
-
if (t === "shape" || t === "stacked" || t === "stacked-3-layers") return /* @__PURE__ */
|
|
2711
|
+
if (t === "shape" || t === "stacked" || t === "stacked-3-layers") return /* @__PURE__ */ D("div", {
|
|
2712
2712
|
ref: o,
|
|
2713
|
-
className: [
|
|
2713
|
+
className: [J.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2714
2714
|
style: { height: p },
|
|
2715
|
-
children: /* @__PURE__ */
|
|
2715
|
+
children: /* @__PURE__ */ D(zr, {
|
|
2716
2716
|
data: e,
|
|
2717
2717
|
palette: c,
|
|
2718
2718
|
track: l,
|
|
@@ -2722,54 +2722,54 @@ var G = {
|
|
|
2722
2722
|
captionColor: f
|
|
2723
2723
|
})
|
|
2724
2724
|
});
|
|
2725
|
-
let [m, h] =
|
|
2726
|
-
return /* @__PURE__ */
|
|
2725
|
+
let [m, h] = Ir[t] ?? ["30%", "100%"], g = (t === "stacked-label" || t === "text") && (r || i);
|
|
2726
|
+
return /* @__PURE__ */ O("div", {
|
|
2727
2727
|
ref: o,
|
|
2728
|
-
className: [
|
|
2728
|
+
className: [J.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2729
2729
|
style: { height: p },
|
|
2730
2730
|
children: [
|
|
2731
|
-
t === "grid" && /* @__PURE__ */
|
|
2731
|
+
t === "grid" && /* @__PURE__ */ D(Rr, {
|
|
2732
2732
|
rings: 8,
|
|
2733
2733
|
spokes: 12,
|
|
2734
2734
|
color: u
|
|
2735
2735
|
}),
|
|
2736
|
-
/* @__PURE__ */
|
|
2736
|
+
/* @__PURE__ */ D(Wt, {
|
|
2737
2737
|
width: "100%",
|
|
2738
2738
|
height: "100%",
|
|
2739
|
-
children: /* @__PURE__ */
|
|
2739
|
+
children: /* @__PURE__ */ O(Ut, {
|
|
2740
2740
|
data: e,
|
|
2741
2741
|
innerRadius: m,
|
|
2742
2742
|
outerRadius: h,
|
|
2743
2743
|
startAngle: 90,
|
|
2744
2744
|
endAngle: -270,
|
|
2745
2745
|
barCategoryGap: "12%",
|
|
2746
|
-
children: [/* @__PURE__ */
|
|
2746
|
+
children: [/* @__PURE__ */ D(Lt, {
|
|
2747
2747
|
type: "number",
|
|
2748
2748
|
domain: [0, e[0]?.max ?? 100],
|
|
2749
2749
|
tick: !1,
|
|
2750
2750
|
axisLine: !1
|
|
2751
|
-
}), /* @__PURE__ */
|
|
2751
|
+
}), /* @__PURE__ */ D(Ht, {
|
|
2752
2752
|
dataKey: "value",
|
|
2753
2753
|
background: t !== "grid" && { fill: l },
|
|
2754
2754
|
cornerRadius: 8,
|
|
2755
2755
|
isAnimationActive: !1,
|
|
2756
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
2756
|
+
children: e.map((e, t) => /* @__PURE__ */ D(Nt, { fill: c[t % c.length] }, t))
|
|
2757
2757
|
})]
|
|
2758
2758
|
})
|
|
2759
2759
|
}),
|
|
2760
|
-
g && /* @__PURE__ */
|
|
2761
|
-
className:
|
|
2762
|
-
children: [r && /* @__PURE__ */
|
|
2763
|
-
className:
|
|
2760
|
+
g && /* @__PURE__ */ O("div", {
|
|
2761
|
+
className: J.center,
|
|
2762
|
+
children: [r && /* @__PURE__ */ D("span", {
|
|
2763
|
+
className: J.center__value,
|
|
2764
2764
|
children: r
|
|
2765
|
-
}), i && /* @__PURE__ */
|
|
2766
|
-
className:
|
|
2765
|
+
}), i && /* @__PURE__ */ D("span", {
|
|
2766
|
+
className: J.center__caption,
|
|
2767
2767
|
children: i
|
|
2768
2768
|
})]
|
|
2769
2769
|
})
|
|
2770
2770
|
]
|
|
2771
2771
|
});
|
|
2772
|
-
},
|
|
2772
|
+
}, Y = {
|
|
2773
2773
|
wrapper: "_wrapper_5ueza_3",
|
|
2774
2774
|
"wrapper--disabled": "_wrapper--disabled_5ueza_11",
|
|
2775
2775
|
input: "_input_5ueza_13",
|
|
@@ -2779,45 +2779,45 @@ var G = {
|
|
|
2779
2779
|
text__label: "_text__label_5ueza_80",
|
|
2780
2780
|
text__description: "_text__description_5ueza_81",
|
|
2781
2781
|
"wrapper--withDescription": "_wrapper--withDescription_5ueza_85"
|
|
2782
|
-
},
|
|
2783
|
-
let s =
|
|
2784
|
-
return /* @__PURE__ */
|
|
2782
|
+
}, Vr = E.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, ...a }, o) => {
|
|
2783
|
+
let s = E.useId(), c = r ?? s;
|
|
2784
|
+
return /* @__PURE__ */ O("label", {
|
|
2785
2785
|
htmlFor: c,
|
|
2786
2786
|
className: [
|
|
2787
|
-
|
|
2788
|
-
t ?
|
|
2789
|
-
n ?
|
|
2787
|
+
Y.wrapper,
|
|
2788
|
+
t ? Y["wrapper--withDescription"] : "",
|
|
2789
|
+
n ? Y["wrapper--disabled"] : "",
|
|
2790
2790
|
i ?? ""
|
|
2791
2791
|
].filter(Boolean).join(" "),
|
|
2792
2792
|
children: [
|
|
2793
|
-
/* @__PURE__ */
|
|
2793
|
+
/* @__PURE__ */ D("input", {
|
|
2794
2794
|
ref: o,
|
|
2795
2795
|
id: c,
|
|
2796
2796
|
type: "radio",
|
|
2797
2797
|
disabled: n,
|
|
2798
|
-
className:
|
|
2798
|
+
className: Y.input,
|
|
2799
2799
|
...a
|
|
2800
2800
|
}),
|
|
2801
|
-
/* @__PURE__ */
|
|
2802
|
-
className:
|
|
2801
|
+
/* @__PURE__ */ D("span", {
|
|
2802
|
+
className: Y.circle,
|
|
2803
2803
|
"aria-hidden": "true",
|
|
2804
|
-
children: /* @__PURE__ */
|
|
2804
|
+
children: /* @__PURE__ */ D("span", { className: Y.dot })
|
|
2805
2805
|
}),
|
|
2806
|
-
(e || t) && /* @__PURE__ */
|
|
2807
|
-
className:
|
|
2808
|
-
children: [e && /* @__PURE__ */
|
|
2809
|
-
className:
|
|
2806
|
+
(e || t) && /* @__PURE__ */ O("span", {
|
|
2807
|
+
className: Y.text,
|
|
2808
|
+
children: [e && /* @__PURE__ */ D("span", {
|
|
2809
|
+
className: Y.text__label,
|
|
2810
2810
|
children: e
|
|
2811
|
-
}), t && /* @__PURE__ */
|
|
2812
|
-
className:
|
|
2811
|
+
}), t && /* @__PURE__ */ D("span", {
|
|
2812
|
+
className: Y.text__description,
|
|
2813
2813
|
children: t
|
|
2814
2814
|
})]
|
|
2815
2815
|
})
|
|
2816
2816
|
]
|
|
2817
2817
|
});
|
|
2818
2818
|
});
|
|
2819
|
-
|
|
2820
|
-
var
|
|
2819
|
+
Vr.displayName = "Radio";
|
|
2820
|
+
var X = {
|
|
2821
2821
|
footer: "_footer_mks3d_4",
|
|
2822
2822
|
"footer--collapsed": "_footer--collapsed_mks3d_12",
|
|
2823
2823
|
footer__text: "_footer__text_mks3d_14",
|
|
@@ -2825,136 +2825,136 @@ var Y = {
|
|
|
2825
2825
|
footer__subtitle: "_footer__subtitle_mks3d_16",
|
|
2826
2826
|
footer__menu: "_footer__menu_mks3d_17",
|
|
2827
2827
|
footer__action: "_footer__action_mks3d_29"
|
|
2828
|
-
},
|
|
2829
|
-
let l = /* @__PURE__ */
|
|
2828
|
+
}, Hr = ({ type: e = "user", title: t, subtitle: n, avatarSrc: r, avatarInitials: i, collapsed: a, onMenu: o, onSignOut: s }) => {
|
|
2829
|
+
let l = /* @__PURE__ */ D(c, {
|
|
2830
2830
|
size: a ? "sm" : "md",
|
|
2831
2831
|
src: r,
|
|
2832
2832
|
initials: i,
|
|
2833
2833
|
alt: t ?? "User"
|
|
2834
2834
|
});
|
|
2835
|
-
return a ? /* @__PURE__ */
|
|
2836
|
-
className: [
|
|
2835
|
+
return a ? /* @__PURE__ */ D("div", {
|
|
2836
|
+
className: [X.footer, X["footer--collapsed"]].join(" "),
|
|
2837
2837
|
children: l
|
|
2838
|
-
}) : e === "actions" ? /* @__PURE__ */
|
|
2839
|
-
className:
|
|
2840
|
-
children: /* @__PURE__ */
|
|
2838
|
+
}) : e === "actions" ? /* @__PURE__ */ D("div", {
|
|
2839
|
+
className: X.footer,
|
|
2840
|
+
children: /* @__PURE__ */ O("button", {
|
|
2841
2841
|
type: "button",
|
|
2842
2842
|
"data-hover-item": "",
|
|
2843
|
-
className:
|
|
2843
|
+
className: X.footer__action,
|
|
2844
2844
|
onClick: s,
|
|
2845
|
-
children: [/* @__PURE__ */
|
|
2845
|
+
children: [/* @__PURE__ */ D(Tt, {
|
|
2846
2846
|
size: 16,
|
|
2847
|
-
strokeWidth:
|
|
2847
|
+
strokeWidth: T(16)
|
|
2848
2848
|
}), " Sign out"]
|
|
2849
2849
|
})
|
|
2850
|
-
}) : /* @__PURE__ */
|
|
2851
|
-
className:
|
|
2850
|
+
}) : /* @__PURE__ */ O("div", {
|
|
2851
|
+
className: X.footer,
|
|
2852
2852
|
children: [
|
|
2853
2853
|
l,
|
|
2854
|
-
/* @__PURE__ */
|
|
2855
|
-
className:
|
|
2856
|
-
children: [t && /* @__PURE__ */
|
|
2857
|
-
className:
|
|
2854
|
+
/* @__PURE__ */ O("span", {
|
|
2855
|
+
className: X.footer__text,
|
|
2856
|
+
children: [t && /* @__PURE__ */ D("span", {
|
|
2857
|
+
className: X.footer__title,
|
|
2858
2858
|
children: t
|
|
2859
|
-
}), n && /* @__PURE__ */
|
|
2860
|
-
className:
|
|
2859
|
+
}), n && /* @__PURE__ */ D("span", {
|
|
2860
|
+
className: X.footer__subtitle,
|
|
2861
2861
|
children: n
|
|
2862
2862
|
})]
|
|
2863
2863
|
}),
|
|
2864
|
-
e === "user-menu" && /* @__PURE__ */
|
|
2864
|
+
e === "user-menu" && /* @__PURE__ */ D("button", {
|
|
2865
2865
|
type: "button",
|
|
2866
2866
|
"data-hover-item": "",
|
|
2867
|
-
className:
|
|
2867
|
+
className: X.footer__menu,
|
|
2868
2868
|
onClick: o,
|
|
2869
2869
|
"aria-label": "Open menu",
|
|
2870
|
-
children: /* @__PURE__ */
|
|
2870
|
+
children: /* @__PURE__ */ D(lt, {
|
|
2871
2871
|
size: 16,
|
|
2872
|
-
strokeWidth:
|
|
2872
|
+
strokeWidth: T(16)
|
|
2873
2873
|
})
|
|
2874
2874
|
})
|
|
2875
2875
|
]
|
|
2876
2876
|
});
|
|
2877
|
-
},
|
|
2877
|
+
}, Z = {
|
|
2878
2878
|
search: "_search_1fdme_2",
|
|
2879
2879
|
search__icon: "_search__icon_1fdme_25",
|
|
2880
2880
|
search__input: "_search__input_1fdme_26",
|
|
2881
2881
|
search__placeholder: "_search__placeholder_1fdme_38",
|
|
2882
2882
|
search__kbd: "_search__kbd_1fdme_39",
|
|
2883
2883
|
collapsed: "_collapsed_1fdme_53"
|
|
2884
|
-
},
|
|
2884
|
+
}, Ur = ({ type: e = "field", placeholder: t = "Search…", collapsed: n, value: r, onChange: i, onClick: a }) => n ? /* @__PURE__ */ D("button", {
|
|
2885
2885
|
type: "button",
|
|
2886
|
-
className:
|
|
2886
|
+
className: Z.collapsed,
|
|
2887
2887
|
onClick: a,
|
|
2888
2888
|
"aria-label": "Search",
|
|
2889
|
-
children: /* @__PURE__ */
|
|
2889
|
+
children: /* @__PURE__ */ D(ht, {
|
|
2890
2890
|
size: 18,
|
|
2891
|
-
strokeWidth:
|
|
2891
|
+
strokeWidth: T(18)
|
|
2892
2892
|
})
|
|
2893
|
-
}) : e === "command" ? /* @__PURE__ */
|
|
2893
|
+
}) : e === "command" ? /* @__PURE__ */ O("button", {
|
|
2894
2894
|
type: "button",
|
|
2895
|
-
className:
|
|
2895
|
+
className: Z.search,
|
|
2896
2896
|
onClick: a,
|
|
2897
2897
|
children: [
|
|
2898
|
-
/* @__PURE__ */
|
|
2898
|
+
/* @__PURE__ */ D(ht, {
|
|
2899
2899
|
size: 16,
|
|
2900
|
-
strokeWidth:
|
|
2901
|
-
className:
|
|
2900
|
+
strokeWidth: T(16),
|
|
2901
|
+
className: Z.search__icon
|
|
2902
2902
|
}),
|
|
2903
|
-
/* @__PURE__ */
|
|
2904
|
-
className:
|
|
2903
|
+
/* @__PURE__ */ D("span", {
|
|
2904
|
+
className: Z.search__placeholder,
|
|
2905
2905
|
children: t
|
|
2906
2906
|
}),
|
|
2907
|
-
/* @__PURE__ */
|
|
2908
|
-
className:
|
|
2907
|
+
/* @__PURE__ */ D("kbd", {
|
|
2908
|
+
className: Z.search__kbd,
|
|
2909
2909
|
children: "⌘K"
|
|
2910
2910
|
})
|
|
2911
2911
|
]
|
|
2912
|
-
}) : /* @__PURE__ */
|
|
2913
|
-
className:
|
|
2914
|
-
children: [/* @__PURE__ */
|
|
2912
|
+
}) : /* @__PURE__ */ O("div", {
|
|
2913
|
+
className: Z.search,
|
|
2914
|
+
children: [/* @__PURE__ */ D(ht, {
|
|
2915
2915
|
size: 16,
|
|
2916
|
-
strokeWidth:
|
|
2917
|
-
className:
|
|
2918
|
-
}), /* @__PURE__ */
|
|
2919
|
-
className:
|
|
2916
|
+
strokeWidth: T(16),
|
|
2917
|
+
className: Z.search__icon
|
|
2918
|
+
}), /* @__PURE__ */ D("input", {
|
|
2919
|
+
className: Z.search__input,
|
|
2920
2920
|
placeholder: t,
|
|
2921
2921
|
value: r,
|
|
2922
2922
|
onChange: (e) => i?.(e.target.value)
|
|
2923
2923
|
})]
|
|
2924
|
-
}),
|
|
2924
|
+
}), Wr = {
|
|
2925
2925
|
spinner: "_spinner_14r00_3",
|
|
2926
2926
|
"spinner--sm": "_spinner--sm_14r00_12",
|
|
2927
2927
|
"spinner--md": "_spinner--md_14r00_13",
|
|
2928
2928
|
"spinner--lg": "_spinner--lg_14r00_14",
|
|
2929
2929
|
spinner__svg: "_spinner__svg_14r00_17",
|
|
2930
2930
|
"spinner-rotate": "_spinner-rotate_14r00_1"
|
|
2931
|
-
},
|
|
2931
|
+
}, Gr = ({ size: e = "md", label: t = "Loading...", className: n }) => /* @__PURE__ */ D("span", {
|
|
2932
2932
|
role: "status",
|
|
2933
2933
|
"aria-label": t,
|
|
2934
2934
|
className: [
|
|
2935
|
-
|
|
2936
|
-
|
|
2935
|
+
Wr.spinner,
|
|
2936
|
+
Wr[`spinner--${e}`],
|
|
2937
2937
|
n ?? ""
|
|
2938
2938
|
].filter(Boolean).join(" "),
|
|
2939
|
-
children: /* @__PURE__ */
|
|
2939
|
+
children: /* @__PURE__ */ O("svg", {
|
|
2940
2940
|
viewBox: "0 0 24 24",
|
|
2941
2941
|
fill: "none",
|
|
2942
2942
|
stroke: "currentColor",
|
|
2943
2943
|
strokeWidth: 2.5,
|
|
2944
2944
|
strokeLinecap: "round",
|
|
2945
2945
|
"aria-hidden": "true",
|
|
2946
|
-
className:
|
|
2947
|
-
children: [/* @__PURE__ */
|
|
2946
|
+
className: Wr.spinner__svg,
|
|
2947
|
+
children: [/* @__PURE__ */ D("circle", {
|
|
2948
2948
|
cx: 12,
|
|
2949
2949
|
cy: 12,
|
|
2950
2950
|
r: 9,
|
|
2951
2951
|
opacity: .2
|
|
2952
|
-
}), /* @__PURE__ */
|
|
2952
|
+
}), /* @__PURE__ */ D("path", {
|
|
2953
2953
|
d: "M12 3a9 9 0 0 1 9 9",
|
|
2954
|
-
className:
|
|
2954
|
+
className: Wr.spinner__arc
|
|
2955
2955
|
})]
|
|
2956
2956
|
})
|
|
2957
|
-
}),
|
|
2957
|
+
}), Q = {
|
|
2958
2958
|
stepper: "_stepper_1qhab_3",
|
|
2959
2959
|
"stepper--horizontal": "_stepper--horizontal_1qhab_4",
|
|
2960
2960
|
"stepper--vertical": "_stepper--vertical_1qhab_5",
|
|
@@ -2979,51 +2979,51 @@ var Y = {
|
|
|
2979
2979
|
"connector--vertical": "_connector--vertical_1qhab_82",
|
|
2980
2980
|
"connector--filled": "_connector--filled_1qhab_86",
|
|
2981
2981
|
"connector--horizontal": "_connector--horizontal_1qhab_88"
|
|
2982
|
-
},
|
|
2983
|
-
className: [
|
|
2982
|
+
}, Kr = ({ index: e, state: t, label: n, description: r, orientation: i = "horizontal", delay: a = 0, fresh: o }) => /* @__PURE__ */ O("div", {
|
|
2983
|
+
className: [Q.step, Q[`step--${i}`]].join(" "),
|
|
2984
2984
|
style: { "--delay": `${a}ms` },
|
|
2985
|
-
children: [/* @__PURE__ */
|
|
2986
|
-
className: [
|
|
2985
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2986
|
+
className: [Q.circle, Q[`circle--${t}`]].join(" "),
|
|
2987
2987
|
"data-fresh": o || void 0,
|
|
2988
2988
|
"aria-hidden": "true",
|
|
2989
|
-
children: t === "completed" ? /* @__PURE__ */
|
|
2989
|
+
children: t === "completed" ? /* @__PURE__ */ D(pt, {
|
|
2990
2990
|
size: 14,
|
|
2991
|
-
strokeWidth:
|
|
2992
|
-
}) : /* @__PURE__ */
|
|
2993
|
-
className:
|
|
2991
|
+
strokeWidth: T(14)
|
|
2992
|
+
}) : /* @__PURE__ */ D("span", {
|
|
2993
|
+
className: Q.circle__num,
|
|
2994
2994
|
children: e + 1
|
|
2995
2995
|
})
|
|
2996
|
-
}), /* @__PURE__ */
|
|
2997
|
-
className:
|
|
2998
|
-
children: [/* @__PURE__ */
|
|
2996
|
+
}), /* @__PURE__ */ O("span", {
|
|
2997
|
+
className: Q.step__text,
|
|
2998
|
+
children: [/* @__PURE__ */ D("span", {
|
|
2999
2999
|
className: [
|
|
3000
|
-
|
|
3001
|
-
t === "current" ?
|
|
3002
|
-
t === "upcoming" ?
|
|
3000
|
+
Q.step__label,
|
|
3001
|
+
t === "current" ? Q["step__label--current"] : "",
|
|
3002
|
+
t === "upcoming" ? Q["step__label--upcoming"] : ""
|
|
3003
3003
|
].filter(Boolean).join(" "),
|
|
3004
3004
|
children: n
|
|
3005
|
-
}), r && /* @__PURE__ */
|
|
3006
|
-
className:
|
|
3005
|
+
}), r && /* @__PURE__ */ D("span", {
|
|
3006
|
+
className: Q.step__desc,
|
|
3007
3007
|
children: r
|
|
3008
3008
|
})]
|
|
3009
3009
|
})]
|
|
3010
|
-
}),
|
|
3011
|
-
let i = (e) => e < t ? "completed" : e === t ? "current" : "upcoming", a =
|
|
3012
|
-
|
|
3010
|
+
}), qr = 457, Jr = ({ steps: e, current: t, orientation: n = "horizontal", className: r }) => {
|
|
3011
|
+
let i = (e) => e < t ? "completed" : e === t ? "current" : "upcoming", a = Dt(t), [o, s] = Ot(!1);
|
|
3012
|
+
Et(() => {
|
|
3013
3013
|
s(!0);
|
|
3014
|
-
}, []),
|
|
3014
|
+
}, []), Et(() => {
|
|
3015
3015
|
a.current = t;
|
|
3016
3016
|
}, [t]);
|
|
3017
|
-
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(
|
|
3018
|
-
return /* @__PURE__ */
|
|
3017
|
+
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(qr, 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;
|
|
3018
|
+
return /* @__PURE__ */ D("div", {
|
|
3019
3019
|
className: [
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
o ?
|
|
3020
|
+
Q.stepper,
|
|
3021
|
+
Q[`stepper--${n}`],
|
|
3022
|
+
o ? Q["stepper--animated"] : "",
|
|
3023
3023
|
r ?? ""
|
|
3024
3024
|
].filter(Boolean).join(" "),
|
|
3025
3025
|
style: { "--fill-ms": `${p}ms` },
|
|
3026
|
-
children: e.map((r, a) => /* @__PURE__ */
|
|
3026
|
+
children: e.map((r, a) => /* @__PURE__ */ O(E.Fragment, { children: [/* @__PURE__ */ D(Kr, {
|
|
3027
3027
|
index: a,
|
|
3028
3028
|
state: i(a),
|
|
3029
3029
|
label: r.label,
|
|
@@ -3031,70 +3031,95 @@ var Y = {
|
|
|
3031
3031
|
orientation: n,
|
|
3032
3032
|
delay: m(a),
|
|
3033
3033
|
fresh: u(a)
|
|
3034
|
-
}), a < e.length - 1 && /* @__PURE__ */
|
|
3034
|
+
}), a < e.length - 1 && /* @__PURE__ */ D("span", {
|
|
3035
3035
|
className: [
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
a < t ?
|
|
3036
|
+
Q.connector,
|
|
3037
|
+
Q[`connector--${n}`],
|
|
3038
|
+
a < t ? Q["connector--filled"] : ""
|
|
3039
3039
|
].filter(Boolean).join(" "),
|
|
3040
3040
|
style: { "--delay": `${h(a)}ms` },
|
|
3041
3041
|
"aria-hidden": "true",
|
|
3042
|
-
children: /* @__PURE__ */
|
|
3042
|
+
children: /* @__PURE__ */ D("span", { className: Q.connector__fill })
|
|
3043
3043
|
})] }, a))
|
|
3044
3044
|
});
|
|
3045
|
-
},
|
|
3046
|
-
wrapper: "
|
|
3047
|
-
"wrapper--disabled": "_wrapper--
|
|
3048
|
-
input: "
|
|
3049
|
-
track: "
|
|
3050
|
-
thumb: "
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3045
|
+
}, $ = {
|
|
3046
|
+
wrapper: "_wrapper_1d89w_3",
|
|
3047
|
+
"wrapper--disabled": "_wrapper--disabled_1d89w_11",
|
|
3048
|
+
input: "_input_1d89w_13",
|
|
3049
|
+
track: "_track_1d89w_15",
|
|
3050
|
+
thumb: "_thumb_1d89w_28",
|
|
3051
|
+
"wrapper--stretch": "_wrapper--stretch_1d89w_50",
|
|
3052
|
+
label: "_label_1d89w_60",
|
|
3053
|
+
"wrapper--withDescription": "_wrapper--withDescription_1d89w_65",
|
|
3054
|
+
text: "_text_1d89w_66",
|
|
3055
|
+
description: "_description_1d89w_68"
|
|
3056
|
+
}, Yr = 16, Xr = 2, Zr = 18, Qr = 360, $r = 16, ei = (e) => 1 - (1 - e) ** 3, ti = .16, ni = E.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, onChange: a, variant: o = "default", ...s }, c) => {
|
|
3057
|
+
let l = E.useId(), u = r ?? l, d = E.useRef(null);
|
|
3058
|
+
return /* @__PURE__ */ O("label", {
|
|
3059
|
+
htmlFor: u,
|
|
3059
3060
|
className: [
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3061
|
+
$.wrapper,
|
|
3062
|
+
o === "stretch" ? $["wrapper--stretch"] : "",
|
|
3063
|
+
t ? $["wrapper--withDescription"] : "",
|
|
3064
|
+
n ? $["wrapper--disabled"] : "",
|
|
3063
3065
|
i ?? ""
|
|
3064
3066
|
].filter(Boolean).join(" "),
|
|
3065
3067
|
children: [
|
|
3066
|
-
/* @__PURE__ */
|
|
3067
|
-
ref:
|
|
3068
|
-
id:
|
|
3068
|
+
/* @__PURE__ */ D("input", {
|
|
3069
|
+
ref: c,
|
|
3070
|
+
id: u,
|
|
3069
3071
|
type: "checkbox",
|
|
3070
3072
|
role: "switch",
|
|
3071
3073
|
disabled: n,
|
|
3072
|
-
className:
|
|
3073
|
-
|
|
3074
|
+
className: $.input,
|
|
3075
|
+
onChange: (e) => {
|
|
3076
|
+
a?.(e);
|
|
3077
|
+
let t = d.current;
|
|
3078
|
+
if (o !== "stretch" || !t || typeof t.animate != "function" || window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) return;
|
|
3079
|
+
let n = e.target.checked, r = getComputedStyle(t), i = parseFloat(r.translate) || 0, s = parseFloat(r.width) || Yr, c = (n ? Xr : Zr) + i, l = c + s, u = n ? Zr : Xr, f = u + Yr;
|
|
3080
|
+
t.getAnimations().forEach((e) => e.cancel());
|
|
3081
|
+
let p = [];
|
|
3082
|
+
for (let e = 0; e <= $r; e++) {
|
|
3083
|
+
let t = e / $r, r = ei(t), i = ei(Math.min(1, Math.max(0, (t - ti) / (1 - ti)))), a = c + (u - c) * (n ? i : r), o = l + (f - l) * (n ? r : i);
|
|
3084
|
+
p.push({
|
|
3085
|
+
width: `${o - a}px`,
|
|
3086
|
+
translate: `${a - u}px 0`,
|
|
3087
|
+
offset: t
|
|
3088
|
+
});
|
|
3089
|
+
}
|
|
3090
|
+
t.animate(p, {
|
|
3091
|
+
duration: Qr,
|
|
3092
|
+
easing: "linear"
|
|
3093
|
+
});
|
|
3094
|
+
},
|
|
3095
|
+
...s
|
|
3074
3096
|
}),
|
|
3075
|
-
/* @__PURE__ */
|
|
3076
|
-
className:
|
|
3097
|
+
/* @__PURE__ */ D("span", {
|
|
3098
|
+
className: $.track,
|
|
3077
3099
|
"aria-hidden": "true",
|
|
3078
|
-
children: /* @__PURE__ */
|
|
3100
|
+
children: /* @__PURE__ */ D("span", {
|
|
3101
|
+
ref: d,
|
|
3102
|
+
className: $.thumb
|
|
3103
|
+
})
|
|
3079
3104
|
}),
|
|
3080
|
-
t ? /* @__PURE__ */
|
|
3081
|
-
className:
|
|
3082
|
-
children: [e && /* @__PURE__ */
|
|
3083
|
-
className:
|
|
3105
|
+
t ? /* @__PURE__ */ O("span", {
|
|
3106
|
+
className: $.text,
|
|
3107
|
+
children: [e && /* @__PURE__ */ D("span", {
|
|
3108
|
+
className: $.label,
|
|
3084
3109
|
children: e
|
|
3085
|
-
}), /* @__PURE__ */
|
|
3086
|
-
className:
|
|
3110
|
+
}), /* @__PURE__ */ D("span", {
|
|
3111
|
+
className: $.description,
|
|
3087
3112
|
children: t
|
|
3088
3113
|
})]
|
|
3089
|
-
}) : e && /* @__PURE__ */
|
|
3090
|
-
className:
|
|
3114
|
+
}) : e && /* @__PURE__ */ D("span", {
|
|
3115
|
+
className: $.label,
|
|
3091
3116
|
children: e
|
|
3092
3117
|
})
|
|
3093
3118
|
]
|
|
3094
3119
|
});
|
|
3095
3120
|
});
|
|
3096
|
-
|
|
3097
|
-
var
|
|
3121
|
+
ni.displayName = "Switch";
|
|
3122
|
+
var ri = {
|
|
3098
3123
|
field: "_field_53t87_6",
|
|
3099
3124
|
field__label: "_field__label_53t87_8",
|
|
3100
3125
|
field__description: "_field__description_53t87_10",
|
|
@@ -3102,17 +3127,17 @@ var $ = {
|
|
|
3102
3127
|
textarea: "_textarea_53t87_13",
|
|
3103
3128
|
"textarea--error": "_textarea--error_53t87_37",
|
|
3104
3129
|
"textarea--disabled": "_textarea--disabled_53t87_52"
|
|
3105
|
-
},
|
|
3106
|
-
let l =
|
|
3107
|
-
return /* @__PURE__ */
|
|
3108
|
-
className: [
|
|
3130
|
+
}, ii = E.forwardRef(({ label: e, description: t, error: n, disabled: r, id: i, className: a, rows: o = 3, ...s }, c) => {
|
|
3131
|
+
let l = E.useId(), u = i ?? l, d = !!n, f = t || n ? `${u}-desc` : void 0;
|
|
3132
|
+
return /* @__PURE__ */ O("div", {
|
|
3133
|
+
className: [ri.field, a ?? ""].filter(Boolean).join(" "),
|
|
3109
3134
|
children: [
|
|
3110
|
-
e && /* @__PURE__ */
|
|
3135
|
+
e && /* @__PURE__ */ D("label", {
|
|
3111
3136
|
htmlFor: u,
|
|
3112
|
-
className:
|
|
3137
|
+
className: ri.field__label,
|
|
3113
3138
|
children: e
|
|
3114
3139
|
}),
|
|
3115
|
-
/* @__PURE__ */
|
|
3140
|
+
/* @__PURE__ */ D("textarea", {
|
|
3116
3141
|
ref: c,
|
|
3117
3142
|
id: u,
|
|
3118
3143
|
rows: o,
|
|
@@ -3120,22 +3145,22 @@ var $ = {
|
|
|
3120
3145
|
"aria-invalid": d || void 0,
|
|
3121
3146
|
"aria-describedby": f,
|
|
3122
3147
|
className: [
|
|
3123
|
-
|
|
3124
|
-
d ?
|
|
3125
|
-
r ?
|
|
3148
|
+
ri.textarea,
|
|
3149
|
+
d ? ri["textarea--error"] : "",
|
|
3150
|
+
r ? ri["textarea--disabled"] : ""
|
|
3126
3151
|
].filter(Boolean).join(" "),
|
|
3127
3152
|
...s
|
|
3128
3153
|
}),
|
|
3129
|
-
(t || n) && /* @__PURE__ */
|
|
3154
|
+
(t || n) && /* @__PURE__ */ D("span", {
|
|
3130
3155
|
id: f,
|
|
3131
|
-
className: d ?
|
|
3156
|
+
className: d ? ri.field__error : ri.field__description,
|
|
3132
3157
|
children: n || t
|
|
3133
3158
|
})
|
|
3134
3159
|
]
|
|
3135
3160
|
});
|
|
3136
3161
|
});
|
|
3137
|
-
|
|
3138
|
-
var
|
|
3162
|
+
ii.displayName = "Textarea";
|
|
3163
|
+
var ai = {
|
|
3139
3164
|
toast: "_toast_dshlf_3",
|
|
3140
3165
|
toast__icon: "_toast__icon_dshlf_17",
|
|
3141
3166
|
"toast--success": "_toast--success_dshlf_18",
|
|
@@ -3145,100 +3170,100 @@ var Qr = {
|
|
|
3145
3170
|
toast__title: "_toast__title_dshlf_23",
|
|
3146
3171
|
toast__description: "_toast__description_dshlf_24",
|
|
3147
3172
|
toast__dismiss: "_toast__dismiss_dshlf_26"
|
|
3148
|
-
},
|
|
3149
|
-
success: /* @__PURE__ */
|
|
3150
|
-
error: /* @__PURE__ */
|
|
3151
|
-
/* @__PURE__ */
|
|
3173
|
+
}, oi = {
|
|
3174
|
+
success: /* @__PURE__ */ O(kt, { children: [/* @__PURE__ */ D("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ D("polyline", { points: "22 4 12 14.01 9 11.01" })] }),
|
|
3175
|
+
error: /* @__PURE__ */ O(kt, { children: [
|
|
3176
|
+
/* @__PURE__ */ D("circle", {
|
|
3152
3177
|
cx: "12",
|
|
3153
3178
|
cy: "12",
|
|
3154
3179
|
r: "10"
|
|
3155
3180
|
}),
|
|
3156
|
-
/* @__PURE__ */
|
|
3181
|
+
/* @__PURE__ */ D("line", {
|
|
3157
3182
|
x1: "15",
|
|
3158
3183
|
y1: "9",
|
|
3159
3184
|
x2: "9",
|
|
3160
3185
|
y2: "15"
|
|
3161
3186
|
}),
|
|
3162
|
-
/* @__PURE__ */
|
|
3187
|
+
/* @__PURE__ */ D("line", {
|
|
3163
3188
|
x1: "9",
|
|
3164
3189
|
y1: "9",
|
|
3165
3190
|
x2: "15",
|
|
3166
3191
|
y2: "15"
|
|
3167
3192
|
})
|
|
3168
3193
|
] }),
|
|
3169
|
-
info: /* @__PURE__ */
|
|
3170
|
-
/* @__PURE__ */
|
|
3194
|
+
info: /* @__PURE__ */ O(kt, { children: [
|
|
3195
|
+
/* @__PURE__ */ D("circle", {
|
|
3171
3196
|
cx: "12",
|
|
3172
3197
|
cy: "12",
|
|
3173
3198
|
r: "10"
|
|
3174
3199
|
}),
|
|
3175
|
-
/* @__PURE__ */
|
|
3200
|
+
/* @__PURE__ */ D("line", {
|
|
3176
3201
|
x1: "12",
|
|
3177
3202
|
y1: "16",
|
|
3178
3203
|
x2: "12",
|
|
3179
3204
|
y2: "12"
|
|
3180
3205
|
}),
|
|
3181
|
-
/* @__PURE__ */
|
|
3206
|
+
/* @__PURE__ */ D("line", {
|
|
3182
3207
|
x1: "12",
|
|
3183
3208
|
y1: "8",
|
|
3184
3209
|
x2: "12.01",
|
|
3185
3210
|
y2: "8"
|
|
3186
3211
|
})
|
|
3187
3212
|
] })
|
|
3188
|
-
},
|
|
3213
|
+
}, si = ({ status: e = "info", title: t, description: n, onDismiss: r, className: i }) => /* @__PURE__ */ O("div", {
|
|
3189
3214
|
role: e === "error" ? "alert" : "status",
|
|
3190
3215
|
"aria-live": e === "error" ? "assertive" : "polite",
|
|
3191
3216
|
className: [
|
|
3192
|
-
|
|
3193
|
-
|
|
3217
|
+
ai.toast,
|
|
3218
|
+
ai[`toast--${e}`],
|
|
3194
3219
|
i ?? ""
|
|
3195
3220
|
].filter(Boolean).join(" "),
|
|
3196
3221
|
children: [
|
|
3197
|
-
/* @__PURE__ */
|
|
3198
|
-
className:
|
|
3222
|
+
/* @__PURE__ */ D("span", {
|
|
3223
|
+
className: ai.toast__icon,
|
|
3199
3224
|
"aria-hidden": "true",
|
|
3200
|
-
children: /* @__PURE__ */
|
|
3225
|
+
children: /* @__PURE__ */ D("svg", {
|
|
3201
3226
|
viewBox: "0 0 24 24",
|
|
3202
3227
|
fill: "none",
|
|
3203
3228
|
stroke: "currentColor",
|
|
3204
|
-
strokeWidth:
|
|
3229
|
+
strokeWidth: T(18),
|
|
3205
3230
|
strokeLinecap: "round",
|
|
3206
3231
|
strokeLinejoin: "round",
|
|
3207
3232
|
width: 18,
|
|
3208
3233
|
height: 18,
|
|
3209
|
-
children:
|
|
3234
|
+
children: oi[e]
|
|
3210
3235
|
})
|
|
3211
3236
|
}),
|
|
3212
|
-
/* @__PURE__ */
|
|
3213
|
-
className:
|
|
3214
|
-
children: [t && /* @__PURE__ */
|
|
3215
|
-
className:
|
|
3237
|
+
/* @__PURE__ */ O("div", {
|
|
3238
|
+
className: ai.toast__content,
|
|
3239
|
+
children: [t && /* @__PURE__ */ D("div", {
|
|
3240
|
+
className: ai.toast__title,
|
|
3216
3241
|
children: t
|
|
3217
|
-
}), n && /* @__PURE__ */
|
|
3218
|
-
className:
|
|
3242
|
+
}), n && /* @__PURE__ */ D("div", {
|
|
3243
|
+
className: ai.toast__description,
|
|
3219
3244
|
children: n
|
|
3220
3245
|
})]
|
|
3221
3246
|
}),
|
|
3222
|
-
r && /* @__PURE__ */
|
|
3247
|
+
r && /* @__PURE__ */ D("button", {
|
|
3223
3248
|
type: "button",
|
|
3224
|
-
className:
|
|
3249
|
+
className: ai.toast__dismiss,
|
|
3225
3250
|
onClick: r,
|
|
3226
3251
|
"aria-label": "Dismiss",
|
|
3227
|
-
children: /* @__PURE__ */
|
|
3252
|
+
children: /* @__PURE__ */ O("svg", {
|
|
3228
3253
|
viewBox: "0 0 24 24",
|
|
3229
3254
|
fill: "none",
|
|
3230
3255
|
stroke: "currentColor",
|
|
3231
|
-
strokeWidth:
|
|
3256
|
+
strokeWidth: T(16),
|
|
3232
3257
|
strokeLinecap: "round",
|
|
3233
3258
|
strokeLinejoin: "round",
|
|
3234
3259
|
width: 16,
|
|
3235
3260
|
height: 16,
|
|
3236
|
-
children: [/* @__PURE__ */
|
|
3261
|
+
children: [/* @__PURE__ */ D("line", {
|
|
3237
3262
|
x1: "18",
|
|
3238
3263
|
y1: "6",
|
|
3239
3264
|
x2: "6",
|
|
3240
3265
|
y2: "18"
|
|
3241
|
-
}), /* @__PURE__ */
|
|
3266
|
+
}), /* @__PURE__ */ D("line", {
|
|
3242
3267
|
x1: "6",
|
|
3243
3268
|
y1: "6",
|
|
3244
3269
|
x2: "18",
|
|
@@ -3247,54 +3272,54 @@ var Qr = {
|
|
|
3247
3272
|
})
|
|
3248
3273
|
})
|
|
3249
3274
|
]
|
|
3250
|
-
}),
|
|
3275
|
+
}), ci = {
|
|
3251
3276
|
bar: "_bar_14cqo_2",
|
|
3252
3277
|
bar__icon: "_bar__icon_14cqo_10",
|
|
3253
3278
|
bar__title: "_bar__title_14cqo_17",
|
|
3254
3279
|
"bar__title--center": "_bar__title--center_14cqo_21",
|
|
3255
3280
|
bar__search: "_bar__search_14cqo_22"
|
|
3256
|
-
},
|
|
3257
|
-
className: [
|
|
3281
|
+
}, li = ({ type: e = "title", title: t, trailing: n, search: r, onMenu: i, onAction: a, onClose: o, className: s }) => /* @__PURE__ */ O("header", {
|
|
3282
|
+
className: [ci.bar, s ?? ""].filter(Boolean).join(" "),
|
|
3258
3283
|
children: [
|
|
3259
|
-
/* @__PURE__ */
|
|
3284
|
+
/* @__PURE__ */ D("button", {
|
|
3260
3285
|
type: "button",
|
|
3261
|
-
className:
|
|
3286
|
+
className: ci.bar__icon,
|
|
3262
3287
|
onClick: i,
|
|
3263
3288
|
"aria-label": "Open menu",
|
|
3264
|
-
children: /* @__PURE__ */
|
|
3289
|
+
children: /* @__PURE__ */ D(ut, {
|
|
3265
3290
|
size: 18,
|
|
3266
|
-
strokeWidth:
|
|
3291
|
+
strokeWidth: T(18)
|
|
3267
3292
|
})
|
|
3268
3293
|
}),
|
|
3269
|
-
e === "search" ? /* @__PURE__ */
|
|
3270
|
-
className:
|
|
3294
|
+
e === "search" ? /* @__PURE__ */ D("div", {
|
|
3295
|
+
className: ci.bar__search,
|
|
3271
3296
|
children: r
|
|
3272
|
-
}) : /* @__PURE__ */
|
|
3273
|
-
className: [
|
|
3297
|
+
}) : /* @__PURE__ */ D("span", {
|
|
3298
|
+
className: [ci.bar__title, e === "title-centered" ? ci["bar__title--center"] : ""].join(" "),
|
|
3274
3299
|
children: t
|
|
3275
3300
|
}),
|
|
3276
|
-
e === "title-action" && /* @__PURE__ */
|
|
3301
|
+
e === "title-action" && /* @__PURE__ */ D("button", {
|
|
3277
3302
|
type: "button",
|
|
3278
|
-
className:
|
|
3303
|
+
className: ci.bar__icon,
|
|
3279
3304
|
onClick: a,
|
|
3280
3305
|
"aria-label": "Add",
|
|
3281
|
-
children: /* @__PURE__ */
|
|
3306
|
+
children: /* @__PURE__ */ D(st, {
|
|
3282
3307
|
size: 18,
|
|
3283
|
-
strokeWidth:
|
|
3308
|
+
strokeWidth: T(18)
|
|
3284
3309
|
})
|
|
3285
3310
|
}),
|
|
3286
|
-
e === "search" && /* @__PURE__ */
|
|
3311
|
+
e === "search" && /* @__PURE__ */ D("button", {
|
|
3287
3312
|
type: "button",
|
|
3288
|
-
className:
|
|
3313
|
+
className: ci.bar__icon,
|
|
3289
3314
|
onClick: o,
|
|
3290
3315
|
"aria-label": "Close search",
|
|
3291
|
-
children: /* @__PURE__ */
|
|
3316
|
+
children: /* @__PURE__ */ D(it, {
|
|
3292
3317
|
size: 18,
|
|
3293
|
-
strokeWidth:
|
|
3318
|
+
strokeWidth: T(18)
|
|
3294
3319
|
})
|
|
3295
3320
|
}),
|
|
3296
3321
|
(e === "title" || e === "title-centered") && n
|
|
3297
3322
|
]
|
|
3298
3323
|
});
|
|
3299
3324
|
//#endregion
|
|
3300
|
-
export { o as Accordion, y as AccordionItem,
|
|
3325
|
+
export { o as Accordion, y as AccordionItem, Xe as ActivityFeed, ne as ActivityFeedHighlight, l as Alert, Yt as Announcement, Gn as AreaChart, c as Avatar, n as AvatarGroup, fe as AvatarUpload, Be as Badge, et as Balance, Te as BarChart, bn as BlogBlockquote, Sn as BlogFeatureText, wn as BlogImage, re as BlogListingCard, d as BlogListingFeaturedCard, b as BoardCard, Kn as BoardColumn, Ee as Breadcrumb, Qe as Button, Zn as Calendar, Qn as Card, t as CardMetaItem, We as CartItem, De as ChatComposer, v as Checkbox, e as CheckoutSteps, $t as CodeSnippet, se as ColorSwatch, $n as Combobox, a as ConversationItem, _e as DEFAULT_CHECKOUT_STEPS, ye as Divider, s as DonutChart, te as EmptyState, nn as Expenses, ie as FeaturedIcon, er as FileUpload, Ye as FilterChip, Tn as FirstPageHeading, ar as FunnelChart, cr as HeatmapChart, g as HoverGroup, C as IconButton, on as InlineHint, r as Input, ee as JobListing, ur as Kbd, fr as Label, S as LineChart, i as Link, Le as LiquidBackdrop, je as LiquidGlass, Dn as List, pr as ListItem, tt as LocationDot, An as Marquee, de as Menu, Ze as MenuDivider, $e as MenuItem, qe as MessageBubble, Mn as Metric, Nn as MobileNavigationMenu, ge as Modal, Ke as NotificationItem, ce as Pagination, xr as PieChart, In as PlaceholderLogo, Sr as Popover, w as PriceDisplay, p as ProductCard, Re as ProductGallery, Ln as ProfileCard, Je as Progress, sn as ProgressItem, ke as ProgressStat, Ne as QuantitySelector, Mr as RadarChart, Br as RadialChart, Vr as Radio, ln as RichSeparator, zn as RichTextHeading, Vn as RichTextParagraph, h as SectionHeading, be as SegmentedControl, Se as Select, Ae as Sidebar, Ie as SidebarDivider, Hr as SidebarFooter, ve as SidebarGroupLabel, he as SidebarHeader, Ge as SidebarItem, Oe as SidebarPromo, Ur as SidebarSearch, pe as SidebarSubItem, m as SizeSelector, Ve as Skeleton, Pe as Slider, me as SpendingBalance, Gr as Spinner, u as StarRating, le as StatCard, Jr as Stepper, Kr as StepperStep, dn as StockMarket, ae as StockStatus, Hn as SubFeature, ni as Switch, we as Table, ze as Tabs, mn as Tags, f as TeamCard, ii as Textarea, _n as Ticker, si as Toast, Me as Tooltip, Ue as TopBar, li as TopBarMobile, yn as Transactions, oe as WishlistButton, x as getContrastColor, T as iconStrokeWidth, Ce as syncLiquidBackdrop, _ as useHoverHighlight, xe as useLiquidGlass };
|