@aseguragonzalez/ui 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +99 -0
- package/dist/favicon.svg +1 -0
- package/dist/icons.svg +24 -0
- package/dist/index.cjs +1 -0
- package/dist/index.css +2 -0
- package/dist/index.js +3630 -0
- package/package.json +101 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,3630 @@
|
|
|
1
|
+
import { Children as e, cloneElement as t, createContext as n, forwardRef as r, useCallback as i, useContext as a, useEffect as o, useId as s, useLayoutEffect as c, useRef as l, useState as u } from "react";
|
|
2
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
3
|
+
import { createPortal as m } from "react-dom";
|
|
4
|
+
var h = {
|
|
5
|
+
srOnly: "_srOnly_ggxjh_2",
|
|
6
|
+
spinner: "_spinner_ggxjh_16",
|
|
7
|
+
"ds-spin": "_ds-spin_ggxjh_1",
|
|
8
|
+
sm: "_sm_ggxjh_30",
|
|
9
|
+
md: "_md_ggxjh_36",
|
|
10
|
+
lg: "_lg_ggxjh_42"
|
|
11
|
+
}, g = r(({ size: e = "md", label: t = "Loading...", className: n, ...r }, i) => /* @__PURE__ */ f("span", {
|
|
12
|
+
ref: i,
|
|
13
|
+
role: "status",
|
|
14
|
+
className: [
|
|
15
|
+
h.spinner,
|
|
16
|
+
h[e],
|
|
17
|
+
n ?? ""
|
|
18
|
+
].filter(Boolean).join(" "),
|
|
19
|
+
...r,
|
|
20
|
+
children: /* @__PURE__ */ f("span", {
|
|
21
|
+
className: h.srOnly,
|
|
22
|
+
children: t
|
|
23
|
+
})
|
|
24
|
+
}));
|
|
25
|
+
g.displayName = "Spinner";
|
|
26
|
+
var _ = {
|
|
27
|
+
button: "_button_rrcdl_1",
|
|
28
|
+
sm: "_sm_rrcdl_32",
|
|
29
|
+
md: "_md_rrcdl_38",
|
|
30
|
+
lg: "_lg_rrcdl_44",
|
|
31
|
+
primary: "_primary_rrcdl_52",
|
|
32
|
+
secondary: "_secondary_rrcdl_68",
|
|
33
|
+
ghost: "_ghost_rrcdl_83",
|
|
34
|
+
accent: "_accent_rrcdl_97",
|
|
35
|
+
destructive: "_destructive_rrcdl_113",
|
|
36
|
+
fullWidth: "_fullWidth_rrcdl_138",
|
|
37
|
+
loading: "_loading_rrcdl_144"
|
|
38
|
+
}, v = {
|
|
39
|
+
sm: "sm",
|
|
40
|
+
md: "sm",
|
|
41
|
+
lg: "md"
|
|
42
|
+
}, y = r(({ variant: e = "primary", size: t = "md", fullWidth: n = !1, isLoading: r = !1, loadingText: i, disabled: a, children: o, className: s, ...c }, l) => /* @__PURE__ */ p("button", {
|
|
43
|
+
ref: l,
|
|
44
|
+
disabled: a || r,
|
|
45
|
+
"aria-busy": r,
|
|
46
|
+
className: [
|
|
47
|
+
_.button,
|
|
48
|
+
_[e],
|
|
49
|
+
_[t],
|
|
50
|
+
n ? _.fullWidth : "",
|
|
51
|
+
r ? _.loading : "",
|
|
52
|
+
s ?? ""
|
|
53
|
+
].filter(Boolean).join(" "),
|
|
54
|
+
...c,
|
|
55
|
+
children: [r && /* @__PURE__ */ f(g, {
|
|
56
|
+
size: v[t],
|
|
57
|
+
label: i ?? "Loading..."
|
|
58
|
+
}), r && i ? i : o]
|
|
59
|
+
}));
|
|
60
|
+
y.displayName = "Button";
|
|
61
|
+
var b = {
|
|
62
|
+
input: "_input_1i1n1_1",
|
|
63
|
+
error: "_error_1i1n1_40",
|
|
64
|
+
sm: "_sm_1i1n1_76",
|
|
65
|
+
md: "_md_1i1n1_82",
|
|
66
|
+
lg: "_lg_1i1n1_88"
|
|
67
|
+
}, x = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
68
|
+
let a = [
|
|
69
|
+
b.input,
|
|
70
|
+
b[t],
|
|
71
|
+
e ? b.error : "",
|
|
72
|
+
n ?? ""
|
|
73
|
+
].filter(Boolean).join(" ");
|
|
74
|
+
return /* @__PURE__ */ f("input", {
|
|
75
|
+
ref: i,
|
|
76
|
+
type: "text",
|
|
77
|
+
"aria-invalid": e || void 0,
|
|
78
|
+
className: a,
|
|
79
|
+
...r
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
x.displayName = "TextInput";
|
|
83
|
+
var S = {
|
|
84
|
+
checkbox: "_checkbox_6awz6_1",
|
|
85
|
+
error: "_error_6awz6_99",
|
|
86
|
+
sm: "_sm_6awz6_122",
|
|
87
|
+
lg: "_lg_6awz6_132"
|
|
88
|
+
}, C = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
89
|
+
let a = [
|
|
90
|
+
S.checkbox,
|
|
91
|
+
t === "md" ? "" : S[t],
|
|
92
|
+
e ? S.error : "",
|
|
93
|
+
n ?? ""
|
|
94
|
+
].filter(Boolean).join(" ");
|
|
95
|
+
return /* @__PURE__ */ f("input", {
|
|
96
|
+
ref: i,
|
|
97
|
+
type: "checkbox",
|
|
98
|
+
"aria-invalid": e || void 0,
|
|
99
|
+
className: a,
|
|
100
|
+
...r
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
C.displayName = "Checkbox";
|
|
104
|
+
var w = {
|
|
105
|
+
radio: "_radio_v17m3_1",
|
|
106
|
+
error: "_error_v17m3_70",
|
|
107
|
+
sm: "_sm_v17m3_93",
|
|
108
|
+
lg: "_lg_v17m3_103"
|
|
109
|
+
}, T = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
110
|
+
let a = [
|
|
111
|
+
w.radio,
|
|
112
|
+
t === "md" ? "" : w[t],
|
|
113
|
+
e ? w.error : "",
|
|
114
|
+
n ?? ""
|
|
115
|
+
].filter(Boolean).join(" ");
|
|
116
|
+
return /* @__PURE__ */ f("input", {
|
|
117
|
+
ref: i,
|
|
118
|
+
type: "radio",
|
|
119
|
+
"aria-invalid": e || void 0,
|
|
120
|
+
className: a,
|
|
121
|
+
...r
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
T.displayName = "RadioButton";
|
|
125
|
+
var E = {
|
|
126
|
+
wrapper: "_wrapper_vgmp4_1",
|
|
127
|
+
select: "_select_vgmp4_7",
|
|
128
|
+
error: "_error_vgmp4_63",
|
|
129
|
+
sm: "_sm_vgmp4_88",
|
|
130
|
+
md: "_md_vgmp4_96",
|
|
131
|
+
lg: "_lg_vgmp4_104"
|
|
132
|
+
}, ee = r(({ hasError: e = !1, size: t = "md", className: n, children: r, ...i }, a) => /* @__PURE__ */ f("div", {
|
|
133
|
+
className: [
|
|
134
|
+
E.wrapper,
|
|
135
|
+
E[t],
|
|
136
|
+
e ? E.error : "",
|
|
137
|
+
n ?? ""
|
|
138
|
+
].filter(Boolean).join(" "),
|
|
139
|
+
children: /* @__PURE__ */ f("select", {
|
|
140
|
+
ref: a,
|
|
141
|
+
"aria-invalid": e || void 0,
|
|
142
|
+
className: E.select,
|
|
143
|
+
...i,
|
|
144
|
+
children: r
|
|
145
|
+
})
|
|
146
|
+
}));
|
|
147
|
+
ee.displayName = "Select";
|
|
148
|
+
var D = {
|
|
149
|
+
textarea: "_textarea_1l4wd_1",
|
|
150
|
+
error: "_error_1l4wd_42",
|
|
151
|
+
autoResize: "_autoResize_1l4wd_67",
|
|
152
|
+
sm: "_sm_1l4wd_74",
|
|
153
|
+
md: "_md_1l4wd_79",
|
|
154
|
+
lg: "_lg_1l4wd_84"
|
|
155
|
+
}, O = r(({ hasError: e = !1, size: t = "md", autoResize: n = !1, className: r, onChange: a, ...s }, c) => {
|
|
156
|
+
let u = l(null), d = i((e) => {
|
|
157
|
+
u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
158
|
+
}, [c]);
|
|
159
|
+
o(() => {
|
|
160
|
+
let e = u.current;
|
|
161
|
+
e && (n ? (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`) : e.style.height = "");
|
|
162
|
+
}, [n]);
|
|
163
|
+
let p = i((e) => {
|
|
164
|
+
n && (e.currentTarget.style.height = "auto", e.currentTarget.style.height = `${e.currentTarget.scrollHeight}px`), a?.(e);
|
|
165
|
+
}, [n, a]), m = [
|
|
166
|
+
D.textarea,
|
|
167
|
+
D[t],
|
|
168
|
+
e ? D.error : "",
|
|
169
|
+
n ? D.autoResize : "",
|
|
170
|
+
r ?? ""
|
|
171
|
+
].filter(Boolean).join(" ");
|
|
172
|
+
return /* @__PURE__ */ f("textarea", {
|
|
173
|
+
ref: d,
|
|
174
|
+
"aria-invalid": e || void 0,
|
|
175
|
+
className: m,
|
|
176
|
+
onChange: p,
|
|
177
|
+
...s
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
O.displayName = "TextArea";
|
|
181
|
+
var k = {
|
|
182
|
+
root: "_root_16qku_3",
|
|
183
|
+
input: "_input_16qku_18",
|
|
184
|
+
track: "_track_16qku_36",
|
|
185
|
+
thumb: "_thumb_16qku_56",
|
|
186
|
+
md: "_md_16qku_127",
|
|
187
|
+
sm: "_sm_16qku_131",
|
|
188
|
+
lg: "_lg_16qku_138"
|
|
189
|
+
}, A = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => /* @__PURE__ */ p("span", {
|
|
190
|
+
className: [
|
|
191
|
+
k.root,
|
|
192
|
+
k[t],
|
|
193
|
+
n ?? ""
|
|
194
|
+
].filter(Boolean).join(" "),
|
|
195
|
+
children: [/* @__PURE__ */ f("input", {
|
|
196
|
+
ref: i,
|
|
197
|
+
type: "checkbox",
|
|
198
|
+
role: "switch",
|
|
199
|
+
"aria-invalid": e || void 0,
|
|
200
|
+
className: k.input,
|
|
201
|
+
...r
|
|
202
|
+
}), /* @__PURE__ */ f("span", {
|
|
203
|
+
className: k.track,
|
|
204
|
+
"aria-hidden": "true",
|
|
205
|
+
children: /* @__PURE__ */ f("span", { className: k.thumb })
|
|
206
|
+
})]
|
|
207
|
+
}));
|
|
208
|
+
A.displayName = "Toggle";
|
|
209
|
+
var j = {
|
|
210
|
+
root: "_root_1erf6_3",
|
|
211
|
+
input: "_input_1erf6_15",
|
|
212
|
+
error: "_error_1erf6_55",
|
|
213
|
+
toggle: "_toggle_1erf6_80",
|
|
214
|
+
sm: "_sm_1erf6_126",
|
|
215
|
+
md: "_md_1erf6_137",
|
|
216
|
+
lg: "_lg_1erf6_143"
|
|
217
|
+
}, te = () => /* @__PURE__ */ p("svg", {
|
|
218
|
+
viewBox: "0 0 24 24",
|
|
219
|
+
fill: "none",
|
|
220
|
+
stroke: "currentColor",
|
|
221
|
+
strokeWidth: "2",
|
|
222
|
+
strokeLinecap: "round",
|
|
223
|
+
strokeLinejoin: "round",
|
|
224
|
+
"aria-hidden": "true",
|
|
225
|
+
children: [/* @__PURE__ */ f("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ f("circle", {
|
|
226
|
+
cx: "12",
|
|
227
|
+
cy: "12",
|
|
228
|
+
r: "3"
|
|
229
|
+
})]
|
|
230
|
+
}), ne = () => /* @__PURE__ */ p("svg", {
|
|
231
|
+
viewBox: "0 0 24 24",
|
|
232
|
+
fill: "none",
|
|
233
|
+
stroke: "currentColor",
|
|
234
|
+
strokeWidth: "2",
|
|
235
|
+
strokeLinecap: "round",
|
|
236
|
+
strokeLinejoin: "round",
|
|
237
|
+
"aria-hidden": "true",
|
|
238
|
+
children: [/* @__PURE__ */ f("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19" }), /* @__PURE__ */ f("line", {
|
|
239
|
+
x1: "1",
|
|
240
|
+
y1: "1",
|
|
241
|
+
x2: "23",
|
|
242
|
+
y2: "23"
|
|
243
|
+
})]
|
|
244
|
+
}), re = r(({ hasError: e = !1, size: t = "md", disabled: n = !1, showPasswordLabel: r = "Show password", hidePasswordLabel: a = "Hide password", className: o, ...s }, c) => {
|
|
245
|
+
let [d, m] = u(!1), h = l(null), g = i((e) => {
|
|
246
|
+
h.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
247
|
+
}, [c]), _ = () => {
|
|
248
|
+
m((e) => !e), h.current?.focus();
|
|
249
|
+
}, v = [
|
|
250
|
+
j.root,
|
|
251
|
+
j[t],
|
|
252
|
+
o ?? ""
|
|
253
|
+
].filter(Boolean).join(" "), y = [j.input, e ? j.error : ""].filter(Boolean).join(" ");
|
|
254
|
+
return /* @__PURE__ */ p("div", {
|
|
255
|
+
className: v,
|
|
256
|
+
children: [/* @__PURE__ */ f("input", {
|
|
257
|
+
ref: g,
|
|
258
|
+
type: d ? "text" : "password",
|
|
259
|
+
"aria-invalid": e || void 0,
|
|
260
|
+
disabled: n,
|
|
261
|
+
className: y,
|
|
262
|
+
...s
|
|
263
|
+
}), /* @__PURE__ */ f("button", {
|
|
264
|
+
type: "button",
|
|
265
|
+
className: j.toggle,
|
|
266
|
+
"aria-label": d ? a : r,
|
|
267
|
+
"aria-pressed": d,
|
|
268
|
+
onClick: _,
|
|
269
|
+
disabled: n,
|
|
270
|
+
tabIndex: n ? -1 : void 0,
|
|
271
|
+
children: f(d ? ne : te, {})
|
|
272
|
+
})]
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
re.displayName = "PasswordInput";
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/primitives/EmailInput/EmailInput.tsx
|
|
278
|
+
var ie = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
279
|
+
let a = [
|
|
280
|
+
b.input,
|
|
281
|
+
b[t],
|
|
282
|
+
e ? b.error : "",
|
|
283
|
+
n ?? ""
|
|
284
|
+
].filter(Boolean).join(" ");
|
|
285
|
+
return /* @__PURE__ */ f("input", {
|
|
286
|
+
ref: i,
|
|
287
|
+
type: "email",
|
|
288
|
+
"aria-invalid": e || void 0,
|
|
289
|
+
className: a,
|
|
290
|
+
...r
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
ie.displayName = "EmailInput";
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region src/primitives/PhoneInput/PhoneInput.tsx
|
|
296
|
+
var ae = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
297
|
+
let a = [
|
|
298
|
+
b.input,
|
|
299
|
+
b[t],
|
|
300
|
+
e ? b.error : "",
|
|
301
|
+
n ?? ""
|
|
302
|
+
].filter(Boolean).join(" ");
|
|
303
|
+
return /* @__PURE__ */ f("input", {
|
|
304
|
+
ref: i,
|
|
305
|
+
type: "tel",
|
|
306
|
+
"aria-invalid": e || void 0,
|
|
307
|
+
className: a,
|
|
308
|
+
...r
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
ae.displayName = "PhoneInput";
|
|
312
|
+
//#endregion
|
|
313
|
+
//#region src/primitives/SearchInput/SearchInput.tsx
|
|
314
|
+
var oe = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
315
|
+
let a = [
|
|
316
|
+
b.input,
|
|
317
|
+
b[t],
|
|
318
|
+
e ? b.error : "",
|
|
319
|
+
n ?? ""
|
|
320
|
+
].filter(Boolean).join(" ");
|
|
321
|
+
return /* @__PURE__ */ f("input", {
|
|
322
|
+
ref: i,
|
|
323
|
+
type: "search",
|
|
324
|
+
"aria-invalid": e || void 0,
|
|
325
|
+
className: a,
|
|
326
|
+
...r
|
|
327
|
+
});
|
|
328
|
+
});
|
|
329
|
+
oe.displayName = "SearchInput";
|
|
330
|
+
var se = {
|
|
331
|
+
heading: "_heading_1lqf4_1",
|
|
332
|
+
xl: "_xl_1lqf4_13",
|
|
333
|
+
lg: "_lg_1lqf4_16",
|
|
334
|
+
md: "_md_1lqf4_19",
|
|
335
|
+
sm: "_sm_1lqf4_22",
|
|
336
|
+
xs: "_xs_1lqf4_25",
|
|
337
|
+
muted: "_muted_1lqf4_29",
|
|
338
|
+
inherit: "_inherit_1lqf4_30"
|
|
339
|
+
}, ce = {
|
|
340
|
+
1: "xl",
|
|
341
|
+
2: "lg",
|
|
342
|
+
3: "md",
|
|
343
|
+
4: "sm",
|
|
344
|
+
5: "xs",
|
|
345
|
+
6: "xs"
|
|
346
|
+
}, le = r(({ level: e, size: t, color: n = "default", className: r, children: i, ...a }, o) => {
|
|
347
|
+
let s = t ?? ce[e], c = {
|
|
348
|
+
ref: o,
|
|
349
|
+
className: [
|
|
350
|
+
se.heading,
|
|
351
|
+
se[s],
|
|
352
|
+
n === "default" ? "" : se[n],
|
|
353
|
+
r ?? ""
|
|
354
|
+
].filter(Boolean).join(" "),
|
|
355
|
+
...a
|
|
356
|
+
};
|
|
357
|
+
switch (e) {
|
|
358
|
+
case 1: return /* @__PURE__ */ f("h1", {
|
|
359
|
+
...c,
|
|
360
|
+
children: i
|
|
361
|
+
});
|
|
362
|
+
case 2: return /* @__PURE__ */ f("h2", {
|
|
363
|
+
...c,
|
|
364
|
+
children: i
|
|
365
|
+
});
|
|
366
|
+
case 3: return /* @__PURE__ */ f("h3", {
|
|
367
|
+
...c,
|
|
368
|
+
children: i
|
|
369
|
+
});
|
|
370
|
+
case 4: return /* @__PURE__ */ f("h4", {
|
|
371
|
+
...c,
|
|
372
|
+
children: i
|
|
373
|
+
});
|
|
374
|
+
case 5: return /* @__PURE__ */ f("h5", {
|
|
375
|
+
...c,
|
|
376
|
+
children: i
|
|
377
|
+
});
|
|
378
|
+
case 6: return /* @__PURE__ */ f("h6", {
|
|
379
|
+
...c,
|
|
380
|
+
children: i
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
le.displayName = "Heading";
|
|
385
|
+
var ue = {
|
|
386
|
+
text: "_text_nmm1v_1",
|
|
387
|
+
lg: "_lg_nmm1v_11",
|
|
388
|
+
md: "_md_nmm1v_12",
|
|
389
|
+
sm: "_sm_nmm1v_13",
|
|
390
|
+
xs: "_xs_nmm1v_14",
|
|
391
|
+
regular: "_regular_nmm1v_18",
|
|
392
|
+
medium: "_medium_nmm1v_19",
|
|
393
|
+
semibold: "_semibold_nmm1v_20",
|
|
394
|
+
bold: "_bold_nmm1v_21",
|
|
395
|
+
muted: "_muted_nmm1v_25",
|
|
396
|
+
disabled: "_disabled_nmm1v_26",
|
|
397
|
+
error: "_error_nmm1v_27",
|
|
398
|
+
success: "_success_nmm1v_28",
|
|
399
|
+
warning: "_warning_nmm1v_29",
|
|
400
|
+
inherit: "_inherit_nmm1v_30"
|
|
401
|
+
}, de = r(({ as: e = "p", size: t = "md", weight: n = "regular", color: r = "default", className: i, ...a }, o) => /* @__PURE__ */ f(e, {
|
|
402
|
+
ref: o,
|
|
403
|
+
className: [
|
|
404
|
+
ue.text,
|
|
405
|
+
ue[t],
|
|
406
|
+
ue[n],
|
|
407
|
+
r === "default" ? "" : ue[r],
|
|
408
|
+
i ?? ""
|
|
409
|
+
].filter(Boolean).join(" "),
|
|
410
|
+
...a
|
|
411
|
+
}));
|
|
412
|
+
de.displayName = "Text";
|
|
413
|
+
var fe = {
|
|
414
|
+
root: "_root_vxg1r_1",
|
|
415
|
+
error: "_error_vxg1r_12",
|
|
416
|
+
warning: "_warning_vxg1r_18",
|
|
417
|
+
success: "_success_vxg1r_24",
|
|
418
|
+
info: "_info_vxg1r_30",
|
|
419
|
+
icon: "_icon_vxg1r_38",
|
|
420
|
+
content: "_content_vxg1r_48",
|
|
421
|
+
title: "_title_vxg1r_56",
|
|
422
|
+
description: "_description_vxg1r_65",
|
|
423
|
+
dismiss: "_dismiss_vxg1r_74"
|
|
424
|
+
}, pe = {
|
|
425
|
+
error: /* @__PURE__ */ p("svg", {
|
|
426
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
427
|
+
width: "20",
|
|
428
|
+
height: "20",
|
|
429
|
+
viewBox: "0 0 24 24",
|
|
430
|
+
fill: "none",
|
|
431
|
+
stroke: "currentColor",
|
|
432
|
+
strokeWidth: "2",
|
|
433
|
+
strokeLinecap: "round",
|
|
434
|
+
strokeLinejoin: "round",
|
|
435
|
+
children: [
|
|
436
|
+
/* @__PURE__ */ f("circle", {
|
|
437
|
+
cx: "12",
|
|
438
|
+
cy: "12",
|
|
439
|
+
r: "10"
|
|
440
|
+
}),
|
|
441
|
+
/* @__PURE__ */ f("line", {
|
|
442
|
+
x1: "15",
|
|
443
|
+
y1: "9",
|
|
444
|
+
x2: "9",
|
|
445
|
+
y2: "15"
|
|
446
|
+
}),
|
|
447
|
+
/* @__PURE__ */ f("line", {
|
|
448
|
+
x1: "9",
|
|
449
|
+
y1: "9",
|
|
450
|
+
x2: "15",
|
|
451
|
+
y2: "15"
|
|
452
|
+
})
|
|
453
|
+
]
|
|
454
|
+
}),
|
|
455
|
+
warning: /* @__PURE__ */ p("svg", {
|
|
456
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
457
|
+
width: "20",
|
|
458
|
+
height: "20",
|
|
459
|
+
viewBox: "0 0 24 24",
|
|
460
|
+
fill: "none",
|
|
461
|
+
stroke: "currentColor",
|
|
462
|
+
strokeWidth: "2",
|
|
463
|
+
strokeLinecap: "round",
|
|
464
|
+
strokeLinejoin: "round",
|
|
465
|
+
children: [
|
|
466
|
+
/* @__PURE__ */ f("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
467
|
+
/* @__PURE__ */ f("line", {
|
|
468
|
+
x1: "12",
|
|
469
|
+
y1: "9",
|
|
470
|
+
x2: "12",
|
|
471
|
+
y2: "13"
|
|
472
|
+
}),
|
|
473
|
+
/* @__PURE__ */ f("line", {
|
|
474
|
+
x1: "12",
|
|
475
|
+
y1: "17",
|
|
476
|
+
x2: "12.01",
|
|
477
|
+
y2: "17"
|
|
478
|
+
})
|
|
479
|
+
]
|
|
480
|
+
}),
|
|
481
|
+
success: /* @__PURE__ */ p("svg", {
|
|
482
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
483
|
+
width: "20",
|
|
484
|
+
height: "20",
|
|
485
|
+
viewBox: "0 0 24 24",
|
|
486
|
+
fill: "none",
|
|
487
|
+
stroke: "currentColor",
|
|
488
|
+
strokeWidth: "2",
|
|
489
|
+
strokeLinecap: "round",
|
|
490
|
+
strokeLinejoin: "round",
|
|
491
|
+
children: [/* @__PURE__ */ f("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ f("polyline", { points: "22 4 12 14.01 9 11.01" })]
|
|
492
|
+
}),
|
|
493
|
+
info: /* @__PURE__ */ p("svg", {
|
|
494
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
495
|
+
width: "20",
|
|
496
|
+
height: "20",
|
|
497
|
+
viewBox: "0 0 24 24",
|
|
498
|
+
fill: "none",
|
|
499
|
+
stroke: "currentColor",
|
|
500
|
+
strokeWidth: "2",
|
|
501
|
+
strokeLinecap: "round",
|
|
502
|
+
strokeLinejoin: "round",
|
|
503
|
+
children: [
|
|
504
|
+
/* @__PURE__ */ f("circle", {
|
|
505
|
+
cx: "12",
|
|
506
|
+
cy: "12",
|
|
507
|
+
r: "10"
|
|
508
|
+
}),
|
|
509
|
+
/* @__PURE__ */ f("line", {
|
|
510
|
+
x1: "12",
|
|
511
|
+
y1: "8",
|
|
512
|
+
x2: "12",
|
|
513
|
+
y2: "12"
|
|
514
|
+
}),
|
|
515
|
+
/* @__PURE__ */ f("line", {
|
|
516
|
+
x1: "12",
|
|
517
|
+
y1: "16",
|
|
518
|
+
x2: "12.01",
|
|
519
|
+
y2: "16"
|
|
520
|
+
})
|
|
521
|
+
]
|
|
522
|
+
})
|
|
523
|
+
}, me = {
|
|
524
|
+
error: "alert",
|
|
525
|
+
warning: "alert",
|
|
526
|
+
success: "status",
|
|
527
|
+
info: "status"
|
|
528
|
+
}, he = r(({ variant: e, title: t, children: n, onDismiss: r, dismissLabel: i = "Close alert", role: a, className: o, ...s }, c) => /* @__PURE__ */ p("div", {
|
|
529
|
+
ref: c,
|
|
530
|
+
role: a ?? me[e],
|
|
531
|
+
className: [
|
|
532
|
+
fe.root,
|
|
533
|
+
fe[e],
|
|
534
|
+
o ?? ""
|
|
535
|
+
].filter(Boolean).join(" "),
|
|
536
|
+
...s,
|
|
537
|
+
children: [
|
|
538
|
+
/* @__PURE__ */ f("span", {
|
|
539
|
+
className: fe.icon,
|
|
540
|
+
"aria-hidden": "true",
|
|
541
|
+
children: pe[e]
|
|
542
|
+
}),
|
|
543
|
+
/* @__PURE__ */ p("div", {
|
|
544
|
+
className: fe.content,
|
|
545
|
+
children: [t && /* @__PURE__ */ f("p", {
|
|
546
|
+
className: fe.title,
|
|
547
|
+
children: t
|
|
548
|
+
}), /* @__PURE__ */ f("div", {
|
|
549
|
+
className: fe.description,
|
|
550
|
+
children: n
|
|
551
|
+
})]
|
|
552
|
+
}),
|
|
553
|
+
r && /* @__PURE__ */ f("button", {
|
|
554
|
+
type: "button",
|
|
555
|
+
className: fe.dismiss,
|
|
556
|
+
"aria-label": i,
|
|
557
|
+
onClick: r,
|
|
558
|
+
children: /* @__PURE__ */ p("svg", {
|
|
559
|
+
"aria-hidden": "true",
|
|
560
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
561
|
+
width: "16",
|
|
562
|
+
height: "16",
|
|
563
|
+
viewBox: "0 0 24 24",
|
|
564
|
+
fill: "none",
|
|
565
|
+
stroke: "currentColor",
|
|
566
|
+
strokeWidth: "2",
|
|
567
|
+
strokeLinecap: "round",
|
|
568
|
+
strokeLinejoin: "round",
|
|
569
|
+
children: [/* @__PURE__ */ f("line", {
|
|
570
|
+
x1: "18",
|
|
571
|
+
y1: "6",
|
|
572
|
+
x2: "6",
|
|
573
|
+
y2: "18"
|
|
574
|
+
}), /* @__PURE__ */ f("line", {
|
|
575
|
+
x1: "6",
|
|
576
|
+
y1: "6",
|
|
577
|
+
x2: "18",
|
|
578
|
+
y2: "18"
|
|
579
|
+
})]
|
|
580
|
+
})
|
|
581
|
+
})
|
|
582
|
+
]
|
|
583
|
+
}));
|
|
584
|
+
he.displayName = "Alert";
|
|
585
|
+
var ge = {
|
|
586
|
+
badge: "_badge_1qsea_1",
|
|
587
|
+
sm: "_sm_1qsea_13",
|
|
588
|
+
md: "_md_1qsea_18",
|
|
589
|
+
lg: "_lg_1qsea_23",
|
|
590
|
+
neutral: "_neutral_1qsea_30",
|
|
591
|
+
brand: "_brand_1qsea_35",
|
|
592
|
+
accent: "_accent_1qsea_40",
|
|
593
|
+
error: "_error_1qsea_45",
|
|
594
|
+
warning: "_warning_1qsea_50",
|
|
595
|
+
success: "_success_1qsea_55",
|
|
596
|
+
info: "_info_1qsea_60"
|
|
597
|
+
}, _e = r(({ variant: e = "neutral", size: t = "md", className: n, ...r }, i) => /* @__PURE__ */ f("span", {
|
|
598
|
+
ref: i,
|
|
599
|
+
className: [
|
|
600
|
+
ge.badge,
|
|
601
|
+
ge[e],
|
|
602
|
+
ge[t],
|
|
603
|
+
n ?? ""
|
|
604
|
+
].filter(Boolean).join(" "),
|
|
605
|
+
...r
|
|
606
|
+
}));
|
|
607
|
+
_e.displayName = "Badge";
|
|
608
|
+
var ve = {
|
|
609
|
+
skeleton: "_skeleton_3y1ju_1",
|
|
610
|
+
"ds-skeleton-shimmer": "_ds-skeleton-shimmer_3y1ju_1",
|
|
611
|
+
circle: "_circle_3y1ju_30",
|
|
612
|
+
text: "_text_3y1ju_35",
|
|
613
|
+
textGroup: "_textGroup_3y1ju_42",
|
|
614
|
+
"ds-skeleton-pulse": "_ds-skeleton-pulse_3y1ju_1"
|
|
615
|
+
};
|
|
616
|
+
//#endregion
|
|
617
|
+
//#region src/primitives/Skeleton/Skeleton.tsx
|
|
618
|
+
function ye(e) {
|
|
619
|
+
return typeof e == "number" ? `${e}px` : e;
|
|
620
|
+
}
|
|
621
|
+
var be = r(({ shape: e = "rect", width: t, height: n, lines: r = 1, className: i, style: a, ...o }, s) => e === "text" && r > 1 ? /* @__PURE__ */ f("span", {
|
|
622
|
+
ref: s,
|
|
623
|
+
"aria-hidden": "true",
|
|
624
|
+
className: [ve.textGroup, i ?? ""].filter(Boolean).join(" "),
|
|
625
|
+
style: t ? {
|
|
626
|
+
width: ye(t),
|
|
627
|
+
...a
|
|
628
|
+
} : a,
|
|
629
|
+
...o,
|
|
630
|
+
children: Array.from({ length: r }, (e, t) => /* @__PURE__ */ f("span", {
|
|
631
|
+
className: ve.skeleton,
|
|
632
|
+
style: { width: t === r - 1 ? "70%" : "100%" }
|
|
633
|
+
}, t))
|
|
634
|
+
}) : /* @__PURE__ */ f("span", {
|
|
635
|
+
ref: s,
|
|
636
|
+
"aria-hidden": "true",
|
|
637
|
+
className: [
|
|
638
|
+
ve.skeleton,
|
|
639
|
+
e === "circle" ? ve.circle : "",
|
|
640
|
+
e === "text" ? ve.text : "",
|
|
641
|
+
i ?? ""
|
|
642
|
+
].filter(Boolean).join(" "),
|
|
643
|
+
style: {
|
|
644
|
+
...t !== void 0 && { width: ye(t) },
|
|
645
|
+
...n !== void 0 && { height: ye(n) },
|
|
646
|
+
...a
|
|
647
|
+
},
|
|
648
|
+
...o
|
|
649
|
+
}));
|
|
650
|
+
be.displayName = "Skeleton";
|
|
651
|
+
var xe = {
|
|
652
|
+
track: "_track_15xhr_3",
|
|
653
|
+
sm: "_sm_15xhr_13",
|
|
654
|
+
md: "_md_15xhr_14",
|
|
655
|
+
lg: "_lg_15xhr_15",
|
|
656
|
+
fill: "_fill_15xhr_19",
|
|
657
|
+
default: "_default_15xhr_27",
|
|
658
|
+
accent: "_accent_15xhr_28",
|
|
659
|
+
success: "_success_15xhr_29",
|
|
660
|
+
error: "_error_15xhr_30",
|
|
661
|
+
warning: "_warning_15xhr_31",
|
|
662
|
+
indeterminate: "_indeterminate_15xhr_35",
|
|
663
|
+
"ds-progress-slide": "_ds-progress-slide_15xhr_1",
|
|
664
|
+
"ds-progress-pulse": "_ds-progress-pulse_15xhr_1"
|
|
665
|
+
};
|
|
666
|
+
//#endregion
|
|
667
|
+
//#region src/primitives/ProgressBar/ProgressBar.tsx
|
|
668
|
+
function Se(e, t, n) {
|
|
669
|
+
return Math.min(Math.max(e, t), n);
|
|
670
|
+
}
|
|
671
|
+
var Ce = r(({ label: e, value: t, variant: n = "default", size: r = "md", className: i, ...a }, o) => {
|
|
672
|
+
let s = t === void 0, c = s ? void 0 : Se(t, 0, 100), l = [
|
|
673
|
+
xe.track,
|
|
674
|
+
xe[r],
|
|
675
|
+
xe[n],
|
|
676
|
+
i ?? ""
|
|
677
|
+
].filter(Boolean).join(" "), u = [xe.fill, s ? xe.indeterminate : ""].filter(Boolean).join(" ");
|
|
678
|
+
return /* @__PURE__ */ f("div", {
|
|
679
|
+
ref: o,
|
|
680
|
+
role: "progressbar",
|
|
681
|
+
"aria-label": e,
|
|
682
|
+
"aria-valuenow": c,
|
|
683
|
+
"aria-valuemin": s ? void 0 : 0,
|
|
684
|
+
"aria-valuemax": s ? void 0 : 100,
|
|
685
|
+
className: l,
|
|
686
|
+
...a,
|
|
687
|
+
children: /* @__PURE__ */ f("div", {
|
|
688
|
+
className: u,
|
|
689
|
+
style: c === void 0 ? void 0 : { width: `${c}%` }
|
|
690
|
+
})
|
|
691
|
+
});
|
|
692
|
+
});
|
|
693
|
+
Ce.displayName = "ProgressBar";
|
|
694
|
+
var we = {
|
|
695
|
+
divider: "_divider_1djxi_1",
|
|
696
|
+
horizontal: "_horizontal_1djxi_9",
|
|
697
|
+
vertical: "_vertical_1djxi_17"
|
|
698
|
+
}, Te = r(({ orientation: e = "horizontal", decorative: t = !0, label: n, className: r, ...i }, a) => {
|
|
699
|
+
let o = [
|
|
700
|
+
we.divider,
|
|
701
|
+
we[e],
|
|
702
|
+
r ?? ""
|
|
703
|
+
].filter(Boolean).join(" ");
|
|
704
|
+
return /* @__PURE__ */ f("hr", {
|
|
705
|
+
ref: a,
|
|
706
|
+
"aria-hidden": t ? !0 : void 0,
|
|
707
|
+
"aria-orientation": !t && e === "vertical" ? "vertical" : void 0,
|
|
708
|
+
"aria-label": t ? void 0 : n,
|
|
709
|
+
className: o,
|
|
710
|
+
...i
|
|
711
|
+
});
|
|
712
|
+
});
|
|
713
|
+
Te.displayName = "Divider";
|
|
714
|
+
var Ee = { numberInput: "_numberInput_1wkbh_2" }, De = r(({ hasError: e = !1, size: t = "md", min: n, max: r, step: i, className: a, ...o }, s) => {
|
|
715
|
+
let c = [
|
|
716
|
+
b.input,
|
|
717
|
+
b[t],
|
|
718
|
+
e ? b.error : "",
|
|
719
|
+
Ee.numberInput,
|
|
720
|
+
a ?? ""
|
|
721
|
+
].filter(Boolean).join(" ");
|
|
722
|
+
return /* @__PURE__ */ f("input", {
|
|
723
|
+
ref: s,
|
|
724
|
+
type: "number",
|
|
725
|
+
min: n,
|
|
726
|
+
max: r,
|
|
727
|
+
step: i,
|
|
728
|
+
"aria-invalid": e || void 0,
|
|
729
|
+
className: c,
|
|
730
|
+
...o
|
|
731
|
+
});
|
|
732
|
+
});
|
|
733
|
+
De.displayName = "NumberInput";
|
|
734
|
+
//#endregion
|
|
735
|
+
//#region src/primitives/DateInput/DateInput.tsx
|
|
736
|
+
var Oe = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
737
|
+
let a = [
|
|
738
|
+
b.input,
|
|
739
|
+
b[t],
|
|
740
|
+
e ? b.error : "",
|
|
741
|
+
n ?? ""
|
|
742
|
+
].filter(Boolean).join(" ");
|
|
743
|
+
return /* @__PURE__ */ f("input", {
|
|
744
|
+
ref: i,
|
|
745
|
+
type: "date",
|
|
746
|
+
"aria-invalid": e || void 0,
|
|
747
|
+
className: a,
|
|
748
|
+
...r
|
|
749
|
+
});
|
|
750
|
+
});
|
|
751
|
+
Oe.displayName = "DateInput";
|
|
752
|
+
var ke = {
|
|
753
|
+
avatar: "_avatar_1hkk0_2",
|
|
754
|
+
xs: "_xs_1hkk0_7",
|
|
755
|
+
sm: "_sm_1hkk0_8",
|
|
756
|
+
md: "_md_1hkk0_9",
|
|
757
|
+
lg: "_lg_1hkk0_10",
|
|
758
|
+
xl: "_xl_1hkk0_11",
|
|
759
|
+
circle: "_circle_1hkk0_33",
|
|
760
|
+
square: "_square_1hkk0_34",
|
|
761
|
+
image: "_image_1hkk0_38",
|
|
762
|
+
initials: "_initials_1hkk0_47"
|
|
763
|
+
};
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region src/primitives/Avatar/Avatar.tsx
|
|
766
|
+
function Ae(e) {
|
|
767
|
+
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
768
|
+
return t.length === 0 ? "?" : t.length === 1 ? t[0][0].toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
|
|
769
|
+
}
|
|
770
|
+
var je = r(({ name: e, src: t, size: n = "md", shape: r = "circle", className: i, ...a }, s) => {
|
|
771
|
+
let [c, l] = u(!1);
|
|
772
|
+
o(() => {
|
|
773
|
+
l(!1);
|
|
774
|
+
}, [t]);
|
|
775
|
+
let d = !!t && !c;
|
|
776
|
+
return /* @__PURE__ */ f("span", {
|
|
777
|
+
ref: s,
|
|
778
|
+
role: "img",
|
|
779
|
+
"aria-label": e,
|
|
780
|
+
className: [
|
|
781
|
+
ke.avatar,
|
|
782
|
+
ke[n],
|
|
783
|
+
ke[r],
|
|
784
|
+
i ?? ""
|
|
785
|
+
].filter(Boolean).join(" "),
|
|
786
|
+
...a,
|
|
787
|
+
children: d ? /* @__PURE__ */ f("img", {
|
|
788
|
+
src: t,
|
|
789
|
+
alt: "",
|
|
790
|
+
"aria-hidden": "true",
|
|
791
|
+
className: ke.image,
|
|
792
|
+
onError: () => l(!0)
|
|
793
|
+
}) : /* @__PURE__ */ f("span", {
|
|
794
|
+
"aria-hidden": "true",
|
|
795
|
+
className: ke.initials,
|
|
796
|
+
children: Ae(e)
|
|
797
|
+
})
|
|
798
|
+
});
|
|
799
|
+
});
|
|
800
|
+
je.displayName = "Avatar";
|
|
801
|
+
var Me = {
|
|
802
|
+
tabs: "_tabs_g9je2_1",
|
|
803
|
+
tabList: "_tabList_g9je2_8",
|
|
804
|
+
tab: "_tab_g9je2_1",
|
|
805
|
+
tabPanel: "_tabPanel_g9je2_64"
|
|
806
|
+
}, Ne = n(null);
|
|
807
|
+
function Pe() {
|
|
808
|
+
let e = a(Ne);
|
|
809
|
+
if (!e) throw Error("Tabs sub-components must be rendered inside <Tabs>.");
|
|
810
|
+
return e;
|
|
811
|
+
}
|
|
812
|
+
var Fe = r(({ children: e, value: t, defaultValue: n = "", onChange: r, className: a }, o) => {
|
|
813
|
+
let [c, d] = u(n), p = t ?? c, m = s(), h = i((e) => `${m}-tab-${e}`, [m]), g = i((e) => `${m}-panel-${e}`, [m]), _ = l([]), v = l(/* @__PURE__ */ new Map()), y = l(/* @__PURE__ */ new Set()), b = i((e) => {
|
|
814
|
+
t === void 0 && d(e), r?.(e);
|
|
815
|
+
}, [t, r]), x = i((e) => (_.current = [..._.current, e], () => {
|
|
816
|
+
_.current = _.current.filter((t) => t !== e);
|
|
817
|
+
}), []), S = i((e, t) => {
|
|
818
|
+
t ? v.current.set(e, t) : v.current.delete(e);
|
|
819
|
+
}, []), C = i((e, t) => {
|
|
820
|
+
t ? y.current.add(e) : y.current.delete(e);
|
|
821
|
+
}, []);
|
|
822
|
+
return /* @__PURE__ */ f(Ne.Provider, {
|
|
823
|
+
value: {
|
|
824
|
+
activeTab: p,
|
|
825
|
+
setActiveTab: b,
|
|
826
|
+
getTabId: h,
|
|
827
|
+
getPanelId: g,
|
|
828
|
+
tabValuesRef: _,
|
|
829
|
+
tabRefsRef: v,
|
|
830
|
+
disabledTabsRef: y,
|
|
831
|
+
registerTab: x,
|
|
832
|
+
registerTabRef: S,
|
|
833
|
+
setTabDisabled: C
|
|
834
|
+
},
|
|
835
|
+
children: /* @__PURE__ */ f("div", {
|
|
836
|
+
ref: o,
|
|
837
|
+
className: [Me.tabs, a ?? ""].filter(Boolean).join(" "),
|
|
838
|
+
children: e
|
|
839
|
+
})
|
|
840
|
+
});
|
|
841
|
+
});
|
|
842
|
+
Fe.displayName = "Tabs";
|
|
843
|
+
var Ie = r(({ children: e, label: t, className: n }, r) => /* @__PURE__ */ f("div", {
|
|
844
|
+
ref: r,
|
|
845
|
+
role: "tablist",
|
|
846
|
+
"aria-label": t,
|
|
847
|
+
className: [Me.tabList, n ?? ""].filter(Boolean).join(" "),
|
|
848
|
+
children: e
|
|
849
|
+
}));
|
|
850
|
+
Ie.displayName = "TabList";
|
|
851
|
+
var Le = r(({ value: e, children: t, disabled: n = !1, className: r }, i) => {
|
|
852
|
+
let { activeTab: a, setActiveTab: s, getTabId: c, getPanelId: l, tabValuesRef: u, tabRefsRef: d, disabledTabsRef: p, registerTab: m, registerTabRef: h, setTabDisabled: g } = Pe(), _ = a === e;
|
|
853
|
+
return o(() => m(e), [e, m]), o(() => (g(e, n), () => g(e, !1)), [
|
|
854
|
+
e,
|
|
855
|
+
n,
|
|
856
|
+
g
|
|
857
|
+
]), /* @__PURE__ */ f("button", {
|
|
858
|
+
ref: (t) => {
|
|
859
|
+
h(e, t), typeof i == "function" ? i(t) : i && (i.current = t);
|
|
860
|
+
},
|
|
861
|
+
role: "tab",
|
|
862
|
+
id: c(e),
|
|
863
|
+
"aria-selected": _,
|
|
864
|
+
"aria-controls": l(e),
|
|
865
|
+
tabIndex: _ ? 0 : -1,
|
|
866
|
+
disabled: n,
|
|
867
|
+
onClick: () => !n && s(e),
|
|
868
|
+
onKeyDown: (t) => {
|
|
869
|
+
let r = u.current.filter((e) => !p.current.has(e)), i = r.indexOf(e), a = (e) => {
|
|
870
|
+
d.current.get(e)?.focus();
|
|
871
|
+
};
|
|
872
|
+
switch (t.key) {
|
|
873
|
+
case "ArrowRight":
|
|
874
|
+
case "ArrowDown":
|
|
875
|
+
t.preventDefault(), i !== -1 && a(r[(i + 1) % r.length]);
|
|
876
|
+
break;
|
|
877
|
+
case "ArrowLeft":
|
|
878
|
+
case "ArrowUp":
|
|
879
|
+
t.preventDefault(), i !== -1 && a(r[(i - 1 + r.length) % r.length]);
|
|
880
|
+
break;
|
|
881
|
+
case "Home":
|
|
882
|
+
t.preventDefault(), a(r[0]);
|
|
883
|
+
break;
|
|
884
|
+
case "End":
|
|
885
|
+
t.preventDefault(), a(r[r.length - 1]);
|
|
886
|
+
break;
|
|
887
|
+
case "Enter":
|
|
888
|
+
case " ":
|
|
889
|
+
t.preventDefault(), n || s(e);
|
|
890
|
+
break;
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
className: [Me.tab, r ?? ""].filter(Boolean).join(" "),
|
|
894
|
+
children: t
|
|
895
|
+
});
|
|
896
|
+
});
|
|
897
|
+
Le.displayName = "Tab";
|
|
898
|
+
var Re = r(({ value: e, children: t, className: n }, r) => {
|
|
899
|
+
let { activeTab: i, getTabId: a, getPanelId: o } = Pe(), s = i === e;
|
|
900
|
+
return /* @__PURE__ */ f("div", {
|
|
901
|
+
ref: r,
|
|
902
|
+
role: "tabpanel",
|
|
903
|
+
id: o(e),
|
|
904
|
+
"aria-labelledby": a(e),
|
|
905
|
+
tabIndex: 0,
|
|
906
|
+
hidden: !s,
|
|
907
|
+
className: [Me.tabPanel, n ?? ""].filter(Boolean).join(" "),
|
|
908
|
+
children: t
|
|
909
|
+
});
|
|
910
|
+
});
|
|
911
|
+
Re.displayName = "TabPanel";
|
|
912
|
+
var ze = {
|
|
913
|
+
tooltip: "_tooltip_1dtlh_1",
|
|
914
|
+
visible: "_visible_1dtlh_18",
|
|
915
|
+
top: "_top_1dtlh_30",
|
|
916
|
+
bottom: "_bottom_1dtlh_42",
|
|
917
|
+
left: "_left_1dtlh_54",
|
|
918
|
+
right: "_right_1dtlh_66"
|
|
919
|
+
};
|
|
920
|
+
//#endregion
|
|
921
|
+
//#region src/primitives/Tooltip/Tooltip.tsx
|
|
922
|
+
function Be(...e) {
|
|
923
|
+
return (t) => {
|
|
924
|
+
for (let n of e) typeof n == "function" ? n(t) : n && "current" in n && (n.current = t);
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
function Ve({ content: e, children: n, placement: r = "top", delayMs: a = 200 }) {
|
|
928
|
+
let c = s(), h = l(null), g = l(void 0), [_, v] = u(!1), [y, b] = u({
|
|
929
|
+
top: 0,
|
|
930
|
+
left: 0
|
|
931
|
+
}), x = i(() => {
|
|
932
|
+
let e = h.current?.getBoundingClientRect();
|
|
933
|
+
if (e) switch (r) {
|
|
934
|
+
case "top":
|
|
935
|
+
b({
|
|
936
|
+
top: e.top,
|
|
937
|
+
left: e.left + e.width / 2
|
|
938
|
+
});
|
|
939
|
+
break;
|
|
940
|
+
case "bottom":
|
|
941
|
+
b({
|
|
942
|
+
top: e.bottom,
|
|
943
|
+
left: e.left + e.width / 2
|
|
944
|
+
});
|
|
945
|
+
break;
|
|
946
|
+
case "left":
|
|
947
|
+
b({
|
|
948
|
+
top: e.top + e.height / 2,
|
|
949
|
+
left: e.left
|
|
950
|
+
});
|
|
951
|
+
break;
|
|
952
|
+
case "right":
|
|
953
|
+
b({
|
|
954
|
+
top: e.top + e.height / 2,
|
|
955
|
+
left: e.right
|
|
956
|
+
});
|
|
957
|
+
break;
|
|
958
|
+
}
|
|
959
|
+
}, [r]), S = i(() => {
|
|
960
|
+
clearTimeout(g.current), g.current = setTimeout(() => {
|
|
961
|
+
x(), v(!0);
|
|
962
|
+
}, a);
|
|
963
|
+
}, [x, a]), C = i(() => {
|
|
964
|
+
clearTimeout(g.current), v(!1);
|
|
965
|
+
}, []);
|
|
966
|
+
return o(() => {
|
|
967
|
+
if (!_) return;
|
|
968
|
+
let e = () => x();
|
|
969
|
+
return window.addEventListener("scroll", e, {
|
|
970
|
+
capture: !0,
|
|
971
|
+
passive: !0
|
|
972
|
+
}), window.addEventListener("resize", e, { passive: !0 }), () => {
|
|
973
|
+
window.removeEventListener("scroll", e, { capture: !0 }), window.removeEventListener("resize", e);
|
|
974
|
+
};
|
|
975
|
+
}, [_, x]), /* @__PURE__ */ p(d, { children: [t(n, {
|
|
976
|
+
ref: Be(h, n.ref),
|
|
977
|
+
"aria-describedby": c,
|
|
978
|
+
onMouseEnter: (e) => {
|
|
979
|
+
S(), n.props.onMouseEnter?.(e);
|
|
980
|
+
},
|
|
981
|
+
onMouseLeave: (e) => {
|
|
982
|
+
C(), n.props.onMouseLeave?.(e);
|
|
983
|
+
},
|
|
984
|
+
onFocus: (e) => {
|
|
985
|
+
S(), n.props.onFocus?.(e);
|
|
986
|
+
},
|
|
987
|
+
onBlur: (e) => {
|
|
988
|
+
C(), n.props.onBlur?.(e);
|
|
989
|
+
},
|
|
990
|
+
onKeyDown: (e) => {
|
|
991
|
+
e.key === "Escape" && C(), n.props.onKeyDown?.(e);
|
|
992
|
+
}
|
|
993
|
+
}), m(/* @__PURE__ */ f("div", {
|
|
994
|
+
id: c,
|
|
995
|
+
role: "tooltip",
|
|
996
|
+
hidden: !_,
|
|
997
|
+
style: {
|
|
998
|
+
top: y.top,
|
|
999
|
+
left: y.left
|
|
1000
|
+
},
|
|
1001
|
+
className: [
|
|
1002
|
+
ze.tooltip,
|
|
1003
|
+
ze[r],
|
|
1004
|
+
_ ? ze.visible : ""
|
|
1005
|
+
].filter(Boolean).join(" "),
|
|
1006
|
+
children: e
|
|
1007
|
+
}), document.body)] });
|
|
1008
|
+
}
|
|
1009
|
+
Ve.displayName = "Tooltip";
|
|
1010
|
+
var M = {
|
|
1011
|
+
dialog: "_dialog_5uqyu_1",
|
|
1012
|
+
panel: "_panel_5uqyu_23",
|
|
1013
|
+
sm: "_sm_5uqyu_36",
|
|
1014
|
+
md: "_md_5uqyu_41",
|
|
1015
|
+
lg: "_lg_5uqyu_46",
|
|
1016
|
+
header: "_header_5uqyu_55",
|
|
1017
|
+
title: "_title_5uqyu_64",
|
|
1018
|
+
closeButton: "_closeButton_5uqyu_73",
|
|
1019
|
+
body: "_body_5uqyu_99",
|
|
1020
|
+
footer: "_footer_5uqyu_108"
|
|
1021
|
+
};
|
|
1022
|
+
//#endregion
|
|
1023
|
+
//#region src/primitives/Modal/Modal.tsx
|
|
1024
|
+
function He({ children: e, titleId: t, onClose: n, closeLabel: r }) {
|
|
1025
|
+
return /* @__PURE__ */ p("div", {
|
|
1026
|
+
className: M.header,
|
|
1027
|
+
children: [/* @__PURE__ */ f("h2", {
|
|
1028
|
+
id: t,
|
|
1029
|
+
className: M.title,
|
|
1030
|
+
children: e
|
|
1031
|
+
}), /* @__PURE__ */ f("button", {
|
|
1032
|
+
type: "button",
|
|
1033
|
+
"aria-label": r,
|
|
1034
|
+
className: M.closeButton,
|
|
1035
|
+
onClick: n,
|
|
1036
|
+
children: /* @__PURE__ */ f("svg", {
|
|
1037
|
+
width: "16",
|
|
1038
|
+
height: "16",
|
|
1039
|
+
viewBox: "0 0 16 16",
|
|
1040
|
+
fill: "none",
|
|
1041
|
+
"aria-hidden": "true",
|
|
1042
|
+
children: /* @__PURE__ */ f("path", {
|
|
1043
|
+
d: "M12 4L4 12M4 4l8 8",
|
|
1044
|
+
stroke: "currentColor",
|
|
1045
|
+
strokeWidth: "1.5",
|
|
1046
|
+
strokeLinecap: "round"
|
|
1047
|
+
})
|
|
1048
|
+
})
|
|
1049
|
+
})]
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
function Ue({ children: e, id: t }) {
|
|
1053
|
+
return /* @__PURE__ */ f("div", {
|
|
1054
|
+
className: M.body,
|
|
1055
|
+
id: t,
|
|
1056
|
+
children: e
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
Ue.displayName = "ModalBody";
|
|
1060
|
+
function We({ children: e }) {
|
|
1061
|
+
return /* @__PURE__ */ f("div", {
|
|
1062
|
+
className: M.footer,
|
|
1063
|
+
children: e
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
We.displayName = "ModalFooter";
|
|
1067
|
+
var Ge = [
|
|
1068
|
+
"a[href]",
|
|
1069
|
+
"button:not([disabled])",
|
|
1070
|
+
"input:not([disabled])",
|
|
1071
|
+
"select:not([disabled])",
|
|
1072
|
+
"textarea:not([disabled])",
|
|
1073
|
+
"[tabindex]:not([tabindex=\"-1\"])"
|
|
1074
|
+
].join(", "), Ke = r(function({ open: e, onClose: t, title: n, children: r, "aria-describedby": a, size: c = "md", closeLabel: u = "Close" }, d) {
|
|
1075
|
+
let h = s(), g = l(null), _ = l(null), v = i((e) => {
|
|
1076
|
+
g.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
|
|
1077
|
+
}, [d]);
|
|
1078
|
+
o(() => {
|
|
1079
|
+
if (e) {
|
|
1080
|
+
_.current = document.activeElement, document.body.style.overflow = "hidden";
|
|
1081
|
+
let e = g.current;
|
|
1082
|
+
if (!e) return;
|
|
1083
|
+
(e.querySelectorAll(Ge)[0] ?? e).focus();
|
|
1084
|
+
} else document.body.style.overflow = "", _.current?.focus();
|
|
1085
|
+
return () => {
|
|
1086
|
+
document.body.style.overflow = "";
|
|
1087
|
+
};
|
|
1088
|
+
}, [e]);
|
|
1089
|
+
let y = i((e) => {
|
|
1090
|
+
if (e.key === "Escape") {
|
|
1091
|
+
e.preventDefault(), t();
|
|
1092
|
+
return;
|
|
1093
|
+
}
|
|
1094
|
+
if (e.key !== "Tab") return;
|
|
1095
|
+
let n = g.current;
|
|
1096
|
+
if (!n) return;
|
|
1097
|
+
let r = Array.from(n.querySelectorAll(Ge));
|
|
1098
|
+
if (r.length === 0) return;
|
|
1099
|
+
let i = r[0], a = r[r.length - 1];
|
|
1100
|
+
e.shiftKey ? document.activeElement === i && (e.preventDefault(), a.focus()) : document.activeElement === a && (e.preventDefault(), i.focus());
|
|
1101
|
+
}, [t]), b = i((e) => {
|
|
1102
|
+
e.target === g.current && t();
|
|
1103
|
+
}, [t]);
|
|
1104
|
+
return e ? m(/* @__PURE__ */ f("dialog", {
|
|
1105
|
+
ref: v,
|
|
1106
|
+
role: "dialog",
|
|
1107
|
+
"aria-modal": "true",
|
|
1108
|
+
"aria-labelledby": h,
|
|
1109
|
+
"aria-describedby": a,
|
|
1110
|
+
open: !0,
|
|
1111
|
+
className: [M.dialog, M[c]].join(" "),
|
|
1112
|
+
onKeyDown: y,
|
|
1113
|
+
onClick: b,
|
|
1114
|
+
children: /* @__PURE__ */ p("div", {
|
|
1115
|
+
className: M.panel,
|
|
1116
|
+
children: [/* @__PURE__ */ f(He, {
|
|
1117
|
+
titleId: h,
|
|
1118
|
+
onClose: t,
|
|
1119
|
+
closeLabel: u,
|
|
1120
|
+
children: n
|
|
1121
|
+
}), r]
|
|
1122
|
+
})
|
|
1123
|
+
}), document.body) : null;
|
|
1124
|
+
});
|
|
1125
|
+
Ke.displayName = "Modal";
|
|
1126
|
+
var qe = {
|
|
1127
|
+
region: "_region_j5e79_1",
|
|
1128
|
+
toast: "_toast_j5e79_14",
|
|
1129
|
+
info: "_info_j5e79_30",
|
|
1130
|
+
icon: "_icon_j5e79_35",
|
|
1131
|
+
success: "_success_j5e79_39",
|
|
1132
|
+
error: "_error_j5e79_47",
|
|
1133
|
+
warning: "_warning_j5e79_55",
|
|
1134
|
+
message: "_message_j5e79_69",
|
|
1135
|
+
closeButton: "_closeButton_j5e79_74"
|
|
1136
|
+
}, Je = n(null), Ye = {
|
|
1137
|
+
info: /* @__PURE__ */ p("svg", {
|
|
1138
|
+
width: "16",
|
|
1139
|
+
height: "16",
|
|
1140
|
+
viewBox: "0 0 16 16",
|
|
1141
|
+
fill: "none",
|
|
1142
|
+
"aria-hidden": "true",
|
|
1143
|
+
children: [/* @__PURE__ */ f("circle", {
|
|
1144
|
+
cx: "8",
|
|
1145
|
+
cy: "8",
|
|
1146
|
+
r: "7",
|
|
1147
|
+
stroke: "currentColor",
|
|
1148
|
+
strokeWidth: "1.5"
|
|
1149
|
+
}), /* @__PURE__ */ f("path", {
|
|
1150
|
+
d: "M8 7v4M8 5v.5",
|
|
1151
|
+
stroke: "currentColor",
|
|
1152
|
+
strokeWidth: "1.5",
|
|
1153
|
+
strokeLinecap: "round"
|
|
1154
|
+
})]
|
|
1155
|
+
}),
|
|
1156
|
+
success: /* @__PURE__ */ p("svg", {
|
|
1157
|
+
width: "16",
|
|
1158
|
+
height: "16",
|
|
1159
|
+
viewBox: "0 0 16 16",
|
|
1160
|
+
fill: "none",
|
|
1161
|
+
"aria-hidden": "true",
|
|
1162
|
+
children: [/* @__PURE__ */ f("circle", {
|
|
1163
|
+
cx: "8",
|
|
1164
|
+
cy: "8",
|
|
1165
|
+
r: "7",
|
|
1166
|
+
stroke: "currentColor",
|
|
1167
|
+
strokeWidth: "1.5"
|
|
1168
|
+
}), /* @__PURE__ */ f("path", {
|
|
1169
|
+
d: "M5 8l2 2 4-4",
|
|
1170
|
+
stroke: "currentColor",
|
|
1171
|
+
strokeWidth: "1.5",
|
|
1172
|
+
strokeLinecap: "round",
|
|
1173
|
+
strokeLinejoin: "round"
|
|
1174
|
+
})]
|
|
1175
|
+
}),
|
|
1176
|
+
error: /* @__PURE__ */ p("svg", {
|
|
1177
|
+
width: "16",
|
|
1178
|
+
height: "16",
|
|
1179
|
+
viewBox: "0 0 16 16",
|
|
1180
|
+
fill: "none",
|
|
1181
|
+
"aria-hidden": "true",
|
|
1182
|
+
children: [/* @__PURE__ */ f("circle", {
|
|
1183
|
+
cx: "8",
|
|
1184
|
+
cy: "8",
|
|
1185
|
+
r: "7",
|
|
1186
|
+
stroke: "currentColor",
|
|
1187
|
+
strokeWidth: "1.5"
|
|
1188
|
+
}), /* @__PURE__ */ f("path", {
|
|
1189
|
+
d: "M10 6L6 10M6 6l4 4",
|
|
1190
|
+
stroke: "currentColor",
|
|
1191
|
+
strokeWidth: "1.5",
|
|
1192
|
+
strokeLinecap: "round"
|
|
1193
|
+
})]
|
|
1194
|
+
}),
|
|
1195
|
+
warning: /* @__PURE__ */ p("svg", {
|
|
1196
|
+
width: "16",
|
|
1197
|
+
height: "16",
|
|
1198
|
+
viewBox: "0 0 16 16",
|
|
1199
|
+
fill: "none",
|
|
1200
|
+
"aria-hidden": "true",
|
|
1201
|
+
children: [/* @__PURE__ */ f("path", {
|
|
1202
|
+
d: "M8 2L14.9 14H1.1L8 2z",
|
|
1203
|
+
stroke: "currentColor",
|
|
1204
|
+
strokeWidth: "1.5",
|
|
1205
|
+
strokeLinejoin: "round"
|
|
1206
|
+
}), /* @__PURE__ */ f("path", {
|
|
1207
|
+
d: "M8 6.5v3M8 11v.5",
|
|
1208
|
+
stroke: "currentColor",
|
|
1209
|
+
strokeWidth: "1.5",
|
|
1210
|
+
strokeLinecap: "round"
|
|
1211
|
+
})]
|
|
1212
|
+
})
|
|
1213
|
+
};
|
|
1214
|
+
function Xe({ item: e, onDismiss: t, onPause: n, onResume: r }) {
|
|
1215
|
+
return /* @__PURE__ */ p("div", {
|
|
1216
|
+
className: [qe.toast, qe[e.variant]].join(" "),
|
|
1217
|
+
role: "status",
|
|
1218
|
+
onMouseEnter: () => n(e.id),
|
|
1219
|
+
onMouseLeave: () => r(e.id),
|
|
1220
|
+
onFocus: () => n(e.id),
|
|
1221
|
+
onBlur: () => r(e.id),
|
|
1222
|
+
children: [
|
|
1223
|
+
/* @__PURE__ */ f("span", {
|
|
1224
|
+
className: qe.icon,
|
|
1225
|
+
children: Ye[e.variant]
|
|
1226
|
+
}),
|
|
1227
|
+
/* @__PURE__ */ f("span", {
|
|
1228
|
+
className: qe.message,
|
|
1229
|
+
children: e.message
|
|
1230
|
+
}),
|
|
1231
|
+
/* @__PURE__ */ f("button", {
|
|
1232
|
+
type: "button",
|
|
1233
|
+
"aria-label": "Close notification",
|
|
1234
|
+
className: qe.closeButton,
|
|
1235
|
+
onClick: () => t(e.id),
|
|
1236
|
+
children: /* @__PURE__ */ f("svg", {
|
|
1237
|
+
width: "12",
|
|
1238
|
+
height: "12",
|
|
1239
|
+
viewBox: "0 0 12 12",
|
|
1240
|
+
fill: "none",
|
|
1241
|
+
"aria-hidden": "true",
|
|
1242
|
+
children: /* @__PURE__ */ f("path", {
|
|
1243
|
+
d: "M9 3L3 9M3 3l6 6",
|
|
1244
|
+
stroke: "currentColor",
|
|
1245
|
+
strokeWidth: "1.5",
|
|
1246
|
+
strokeLinecap: "round"
|
|
1247
|
+
})
|
|
1248
|
+
})
|
|
1249
|
+
})
|
|
1250
|
+
]
|
|
1251
|
+
});
|
|
1252
|
+
}
|
|
1253
|
+
function Ze({ children: e, maxToasts: t = 5 }) {
|
|
1254
|
+
let [n, r] = u([]), a = l(/* @__PURE__ */ new Map()), o = l(/* @__PURE__ */ new Map()), s = l(/* @__PURE__ */ new Map()), c = l(0), d = i((e) => {
|
|
1255
|
+
let t = a.current.get(e);
|
|
1256
|
+
t !== void 0 && (clearTimeout(t), a.current.delete(e)), o.current.delete(e), s.current.delete(e), r((t) => t.filter((t) => t.id !== e));
|
|
1257
|
+
}, []), h = i((e, t) => {
|
|
1258
|
+
let n = setTimeout(() => d(e), t);
|
|
1259
|
+
a.current.set(e, n);
|
|
1260
|
+
}, [d]), g = i((e) => {
|
|
1261
|
+
let t = a.current.get(e);
|
|
1262
|
+
t !== void 0 && (clearTimeout(t), a.current.delete(e), o.current.set(e, Date.now()));
|
|
1263
|
+
}, []), _ = i((e) => {
|
|
1264
|
+
let t = o.current.get(e);
|
|
1265
|
+
if (t === void 0) return;
|
|
1266
|
+
let n = Date.now() - t, r = Math.max(0, (s.current.get(e) ?? 0) - n);
|
|
1267
|
+
o.current.delete(e), s.current.set(e, r), r > 0 ? h(e, r) : d(e);
|
|
1268
|
+
}, [d, h]), v = i((e) => {
|
|
1269
|
+
let n = `toast-${++c.current}`, i = e.variant ?? "info", a = e.duration ?? 5e3, o = {
|
|
1270
|
+
id: n,
|
|
1271
|
+
message: e.message,
|
|
1272
|
+
variant: i,
|
|
1273
|
+
duration: a
|
|
1274
|
+
};
|
|
1275
|
+
return r((e) => {
|
|
1276
|
+
let n = [...e, o];
|
|
1277
|
+
return n.length > t ? n.slice(n.length - t) : n;
|
|
1278
|
+
}), a > 0 && (s.current.set(n, a), h(n, a)), n;
|
|
1279
|
+
}, [t, h]);
|
|
1280
|
+
return /* @__PURE__ */ p(Je.Provider, {
|
|
1281
|
+
value: {
|
|
1282
|
+
show: v,
|
|
1283
|
+
dismiss: d
|
|
1284
|
+
},
|
|
1285
|
+
children: [e, m(/* @__PURE__ */ f("div", {
|
|
1286
|
+
role: "region",
|
|
1287
|
+
className: qe.region,
|
|
1288
|
+
"aria-label": "Notifications",
|
|
1289
|
+
"aria-live": "polite",
|
|
1290
|
+
"aria-atomic": "false",
|
|
1291
|
+
"aria-relevant": "additions text",
|
|
1292
|
+
children: n.map((e) => /* @__PURE__ */ f(Xe, {
|
|
1293
|
+
item: e,
|
|
1294
|
+
onDismiss: d,
|
|
1295
|
+
onPause: g,
|
|
1296
|
+
onResume: _
|
|
1297
|
+
}, e.id))
|
|
1298
|
+
}), document.body)]
|
|
1299
|
+
});
|
|
1300
|
+
}
|
|
1301
|
+
Ze.displayName = "ToastProvider";
|
|
1302
|
+
function Qe() {
|
|
1303
|
+
let e = a(Je);
|
|
1304
|
+
if (!e) throw Error("useToast must be used inside a <ToastProvider>");
|
|
1305
|
+
return e;
|
|
1306
|
+
}
|
|
1307
|
+
var $e = {
|
|
1308
|
+
label: "_label_1vrme_1",
|
|
1309
|
+
disabled: "_disabled_1vrme_15",
|
|
1310
|
+
required: "_required_1vrme_19"
|
|
1311
|
+
};
|
|
1312
|
+
//#endregion
|
|
1313
|
+
//#region src/primitives/Label/Label.tsx
|
|
1314
|
+
function N({ required: e, disabled: t, children: n, className: r, ...i }) {
|
|
1315
|
+
return /* @__PURE__ */ p("label", {
|
|
1316
|
+
className: [
|
|
1317
|
+
$e.label,
|
|
1318
|
+
t ? $e.disabled : "",
|
|
1319
|
+
r ?? ""
|
|
1320
|
+
].filter(Boolean).join(" "),
|
|
1321
|
+
...i,
|
|
1322
|
+
children: [n, e && /* @__PURE__ */ f("span", {
|
|
1323
|
+
className: $e.required,
|
|
1324
|
+
"aria-hidden": "true",
|
|
1325
|
+
children: "*"
|
|
1326
|
+
})]
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
N.displayName = "Label";
|
|
1330
|
+
var et = { hint: "_hint_pqi9h_1" };
|
|
1331
|
+
//#endregion
|
|
1332
|
+
//#region src/primitives/Hint/Hint.tsx
|
|
1333
|
+
function P({ children: e, className: t, ...n }) {
|
|
1334
|
+
return /* @__PURE__ */ f("span", {
|
|
1335
|
+
className: [et.hint, t ?? ""].filter(Boolean).join(" "),
|
|
1336
|
+
...n,
|
|
1337
|
+
children: e
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
P.displayName = "Hint";
|
|
1341
|
+
var tt = { error: "_error_13txc_1" };
|
|
1342
|
+
//#endregion
|
|
1343
|
+
//#region src/primitives/ErrorMessage/ErrorMessage.tsx
|
|
1344
|
+
function F({ children: e, className: t, ...n }) {
|
|
1345
|
+
return /* @__PURE__ */ f("span", {
|
|
1346
|
+
className: [tt.error, t ?? ""].filter(Boolean).join(" "),
|
|
1347
|
+
...n,
|
|
1348
|
+
children: e
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
F.displayName = "ErrorMessage";
|
|
1352
|
+
//#endregion
|
|
1353
|
+
//#region src/components/shared/useFieldIds.ts
|
|
1354
|
+
function I({ inputId: e, hint: t, error: n }) {
|
|
1355
|
+
let r = s(), i = e ?? r, a = t ? `${i}-hint` : void 0, o = n ? `${i}-error` : void 0;
|
|
1356
|
+
return {
|
|
1357
|
+
id: i,
|
|
1358
|
+
hintId: a,
|
|
1359
|
+
errorId: o,
|
|
1360
|
+
describedBy: [a, o].filter(Boolean).join(" ") || void 0
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
var nt = {
|
|
1364
|
+
root: "_root_123no_1",
|
|
1365
|
+
inputWrapper: "_inputWrapper_123no_7"
|
|
1366
|
+
}, rt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1367
|
+
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1368
|
+
inputId: o,
|
|
1369
|
+
hint: t,
|
|
1370
|
+
error: n
|
|
1371
|
+
});
|
|
1372
|
+
return /* @__PURE__ */ p("div", {
|
|
1373
|
+
className: [nt.root, s ?? ""].filter(Boolean).join(" "),
|
|
1374
|
+
children: [
|
|
1375
|
+
/* @__PURE__ */ f(N, {
|
|
1376
|
+
htmlFor: u,
|
|
1377
|
+
required: i,
|
|
1378
|
+
disabled: a,
|
|
1379
|
+
children: e
|
|
1380
|
+
}),
|
|
1381
|
+
/* @__PURE__ */ f("div", {
|
|
1382
|
+
className: nt.inputWrapper,
|
|
1383
|
+
children: /* @__PURE__ */ f(x, {
|
|
1384
|
+
ref: l,
|
|
1385
|
+
id: u,
|
|
1386
|
+
size: r,
|
|
1387
|
+
hasError: !!n,
|
|
1388
|
+
disabled: a,
|
|
1389
|
+
required: i,
|
|
1390
|
+
"aria-required": i,
|
|
1391
|
+
"aria-describedby": h,
|
|
1392
|
+
...c
|
|
1393
|
+
})
|
|
1394
|
+
}),
|
|
1395
|
+
n ? /* @__PURE__ */ f(F, {
|
|
1396
|
+
id: m,
|
|
1397
|
+
children: n
|
|
1398
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1399
|
+
id: d,
|
|
1400
|
+
children: t
|
|
1401
|
+
}) : null
|
|
1402
|
+
]
|
|
1403
|
+
});
|
|
1404
|
+
});
|
|
1405
|
+
rt.displayName = "TextField";
|
|
1406
|
+
var it = {
|
|
1407
|
+
root: "_root_1sjfo_1",
|
|
1408
|
+
row: "_row_1sjfo_8",
|
|
1409
|
+
label: "_label_1sjfo_16",
|
|
1410
|
+
disabled: "_disabled_1sjfo_23"
|
|
1411
|
+
}, at = r(({ label: e, hint: t, error: n, size: r = "md", disabled: i = !1, inputId: a, className: o, ...s }, c) => {
|
|
1412
|
+
let { id: l, hintId: u, errorId: d, describedBy: m } = I({
|
|
1413
|
+
inputId: a,
|
|
1414
|
+
hint: t,
|
|
1415
|
+
error: n
|
|
1416
|
+
});
|
|
1417
|
+
return /* @__PURE__ */ p("div", {
|
|
1418
|
+
className: [it.root, o ?? ""].filter(Boolean).join(" "),
|
|
1419
|
+
children: [/* @__PURE__ */ p("div", {
|
|
1420
|
+
className: it.row,
|
|
1421
|
+
children: [/* @__PURE__ */ f(C, {
|
|
1422
|
+
ref: c,
|
|
1423
|
+
id: l,
|
|
1424
|
+
size: r,
|
|
1425
|
+
hasError: !!n,
|
|
1426
|
+
disabled: i,
|
|
1427
|
+
"aria-describedby": m,
|
|
1428
|
+
...s
|
|
1429
|
+
}), /* @__PURE__ */ f("label", {
|
|
1430
|
+
htmlFor: l,
|
|
1431
|
+
className: [it.label, i ? it.disabled : ""].filter(Boolean).join(" "),
|
|
1432
|
+
children: e
|
|
1433
|
+
})]
|
|
1434
|
+
}), n ? /* @__PURE__ */ f(F, {
|
|
1435
|
+
id: d,
|
|
1436
|
+
children: n
|
|
1437
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1438
|
+
id: u,
|
|
1439
|
+
children: t
|
|
1440
|
+
}) : null]
|
|
1441
|
+
});
|
|
1442
|
+
});
|
|
1443
|
+
at.displayName = "CheckboxField";
|
|
1444
|
+
var ot = { root: "_root_1oeo1_1" }, st = r(({ label: e, options: t, placeholder: n, hint: r, error: i, size: a = "md", required: o = !1, disabled: s = !1, inputId: c, className: l, children: u, ...d }, m) => {
|
|
1445
|
+
let { id: h, hintId: g, errorId: _, describedBy: v } = I({
|
|
1446
|
+
inputId: c,
|
|
1447
|
+
hint: r,
|
|
1448
|
+
error: i
|
|
1449
|
+
});
|
|
1450
|
+
return /* @__PURE__ */ p("div", {
|
|
1451
|
+
className: [ot.root, l ?? ""].filter(Boolean).join(" "),
|
|
1452
|
+
children: [
|
|
1453
|
+
/* @__PURE__ */ f(N, {
|
|
1454
|
+
htmlFor: h,
|
|
1455
|
+
required: o,
|
|
1456
|
+
disabled: s,
|
|
1457
|
+
children: e
|
|
1458
|
+
}),
|
|
1459
|
+
/* @__PURE__ */ p(ee, {
|
|
1460
|
+
ref: m,
|
|
1461
|
+
id: h,
|
|
1462
|
+
size: a,
|
|
1463
|
+
hasError: !!i,
|
|
1464
|
+
disabled: s,
|
|
1465
|
+
required: o,
|
|
1466
|
+
"aria-required": o,
|
|
1467
|
+
"aria-describedby": v,
|
|
1468
|
+
...d,
|
|
1469
|
+
children: [n && /* @__PURE__ */ f("option", {
|
|
1470
|
+
value: "",
|
|
1471
|
+
disabled: !0,
|
|
1472
|
+
children: n
|
|
1473
|
+
}), t ? t.map((e) => /* @__PURE__ */ f("option", {
|
|
1474
|
+
value: e.value,
|
|
1475
|
+
disabled: e.disabled,
|
|
1476
|
+
children: e.label
|
|
1477
|
+
}, e.value)) : u]
|
|
1478
|
+
}),
|
|
1479
|
+
i ? /* @__PURE__ */ f(F, {
|
|
1480
|
+
id: _,
|
|
1481
|
+
children: i
|
|
1482
|
+
}) : r ? /* @__PURE__ */ f(P, {
|
|
1483
|
+
id: g,
|
|
1484
|
+
children: r
|
|
1485
|
+
}) : null
|
|
1486
|
+
]
|
|
1487
|
+
});
|
|
1488
|
+
});
|
|
1489
|
+
st.displayName = "SelectField";
|
|
1490
|
+
var L = {
|
|
1491
|
+
fieldset: "_fieldset_8eiqw_1",
|
|
1492
|
+
legend: "_legend_8eiqw_12",
|
|
1493
|
+
disabled: "_disabled_8eiqw_26",
|
|
1494
|
+
required: "_required_8eiqw_30",
|
|
1495
|
+
option: "_option_8eiqw_35",
|
|
1496
|
+
optionLabel: "_optionLabel_8eiqw_41",
|
|
1497
|
+
footer: "_footer_8eiqw_56"
|
|
1498
|
+
};
|
|
1499
|
+
//#endregion
|
|
1500
|
+
//#region src/components/RadioGroup/RadioGroup.tsx
|
|
1501
|
+
function ct({ legend: e, name: t, options: n, value: r, defaultValue: i, onChange: a, hint: o, error: s, required: c = !1, disabled: l = !1, size: u = "md", className: d }) {
|
|
1502
|
+
let { id: m, hintId: h, errorId: g, describedBy: _ } = I({
|
|
1503
|
+
hint: o,
|
|
1504
|
+
error: s
|
|
1505
|
+
});
|
|
1506
|
+
return /* @__PURE__ */ p("fieldset", {
|
|
1507
|
+
className: [L.fieldset, d ?? ""].filter(Boolean).join(" "),
|
|
1508
|
+
"aria-describedby": _,
|
|
1509
|
+
disabled: l,
|
|
1510
|
+
children: [
|
|
1511
|
+
/* @__PURE__ */ p("legend", {
|
|
1512
|
+
className: [L.legend, l ? L.disabled : ""].filter(Boolean).join(" "),
|
|
1513
|
+
children: [e, c && /* @__PURE__ */ f("span", {
|
|
1514
|
+
className: L.required,
|
|
1515
|
+
"aria-hidden": "true",
|
|
1516
|
+
children: "*"
|
|
1517
|
+
})]
|
|
1518
|
+
}),
|
|
1519
|
+
n.map((e, n) => {
|
|
1520
|
+
let o = `${m}-${e.value}`, d = l || e.disabled;
|
|
1521
|
+
return /* @__PURE__ */ p("div", {
|
|
1522
|
+
className: L.option,
|
|
1523
|
+
children: [/* @__PURE__ */ f(T, {
|
|
1524
|
+
id: o,
|
|
1525
|
+
name: t,
|
|
1526
|
+
value: e.value,
|
|
1527
|
+
size: u,
|
|
1528
|
+
hasError: !!s,
|
|
1529
|
+
disabled: d,
|
|
1530
|
+
required: c && n === 0,
|
|
1531
|
+
checked: r === void 0 ? void 0 : r === e.value,
|
|
1532
|
+
defaultChecked: i === void 0 ? void 0 : i === e.value,
|
|
1533
|
+
onChange: a ? () => a(e.value) : void 0
|
|
1534
|
+
}), /* @__PURE__ */ f("label", {
|
|
1535
|
+
htmlFor: o,
|
|
1536
|
+
className: [L.optionLabel, d ? L.disabled : ""].filter(Boolean).join(" "),
|
|
1537
|
+
children: e.label
|
|
1538
|
+
})]
|
|
1539
|
+
}, e.value);
|
|
1540
|
+
}),
|
|
1541
|
+
(s || o) && /* @__PURE__ */ f("div", {
|
|
1542
|
+
className: L.footer,
|
|
1543
|
+
children: s ? /* @__PURE__ */ f(F, {
|
|
1544
|
+
id: g,
|
|
1545
|
+
children: s
|
|
1546
|
+
}) : o ? /* @__PURE__ */ f(P, {
|
|
1547
|
+
id: h,
|
|
1548
|
+
children: o
|
|
1549
|
+
}) : null
|
|
1550
|
+
})
|
|
1551
|
+
]
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
ct.displayName = "RadioGroup";
|
|
1555
|
+
var lt = { root: "_root_1oeo1_1" }, ut = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, autoResize: o = !1, inputId: s, className: c, ...l }, u) => {
|
|
1556
|
+
let { id: d, hintId: m, errorId: h, describedBy: g } = I({
|
|
1557
|
+
inputId: s,
|
|
1558
|
+
hint: t,
|
|
1559
|
+
error: n
|
|
1560
|
+
});
|
|
1561
|
+
return /* @__PURE__ */ p("div", {
|
|
1562
|
+
className: [lt.root, c ?? ""].filter(Boolean).join(" "),
|
|
1563
|
+
children: [
|
|
1564
|
+
/* @__PURE__ */ f(N, {
|
|
1565
|
+
htmlFor: d,
|
|
1566
|
+
required: i,
|
|
1567
|
+
disabled: a,
|
|
1568
|
+
children: e
|
|
1569
|
+
}),
|
|
1570
|
+
/* @__PURE__ */ f(O, {
|
|
1571
|
+
ref: u,
|
|
1572
|
+
id: d,
|
|
1573
|
+
size: r,
|
|
1574
|
+
hasError: !!n,
|
|
1575
|
+
disabled: a,
|
|
1576
|
+
required: i,
|
|
1577
|
+
"aria-required": i,
|
|
1578
|
+
"aria-describedby": g,
|
|
1579
|
+
autoResize: o,
|
|
1580
|
+
...l
|
|
1581
|
+
}),
|
|
1582
|
+
n ? /* @__PURE__ */ f(F, {
|
|
1583
|
+
id: h,
|
|
1584
|
+
children: n
|
|
1585
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1586
|
+
id: m,
|
|
1587
|
+
children: t
|
|
1588
|
+
}) : null
|
|
1589
|
+
]
|
|
1590
|
+
});
|
|
1591
|
+
});
|
|
1592
|
+
ut.displayName = "TextAreaField";
|
|
1593
|
+
var dt = {
|
|
1594
|
+
root: "_root_108wn_1",
|
|
1595
|
+
field: "_field_108wn_7"
|
|
1596
|
+
}, ft = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1597
|
+
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1598
|
+
inputId: o,
|
|
1599
|
+
hint: t,
|
|
1600
|
+
error: n
|
|
1601
|
+
});
|
|
1602
|
+
return /* @__PURE__ */ p("div", {
|
|
1603
|
+
className: [dt.root, s ?? ""].filter(Boolean).join(" "),
|
|
1604
|
+
children: [/* @__PURE__ */ p("div", {
|
|
1605
|
+
className: dt.field,
|
|
1606
|
+
children: [/* @__PURE__ */ f(N, {
|
|
1607
|
+
htmlFor: u,
|
|
1608
|
+
required: i,
|
|
1609
|
+
disabled: a,
|
|
1610
|
+
children: e
|
|
1611
|
+
}), /* @__PURE__ */ f(A, {
|
|
1612
|
+
ref: l,
|
|
1613
|
+
id: u,
|
|
1614
|
+
size: r,
|
|
1615
|
+
hasError: !!n,
|
|
1616
|
+
disabled: a,
|
|
1617
|
+
required: i,
|
|
1618
|
+
"aria-required": i,
|
|
1619
|
+
"aria-describedby": h,
|
|
1620
|
+
...c
|
|
1621
|
+
})]
|
|
1622
|
+
}), n ? /* @__PURE__ */ f(F, {
|
|
1623
|
+
id: m,
|
|
1624
|
+
children: n
|
|
1625
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1626
|
+
id: d,
|
|
1627
|
+
children: t
|
|
1628
|
+
}) : null]
|
|
1629
|
+
});
|
|
1630
|
+
});
|
|
1631
|
+
ft.displayName = "ToggleField";
|
|
1632
|
+
var pt = { root: "_root_1oeo1_1" }, mt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, showPasswordLabel: o, hidePasswordLabel: s, inputId: c, className: l, ...u }, d) => {
|
|
1633
|
+
let { id: m, hintId: h, errorId: g, describedBy: _ } = I({
|
|
1634
|
+
inputId: c,
|
|
1635
|
+
hint: t,
|
|
1636
|
+
error: n
|
|
1637
|
+
});
|
|
1638
|
+
return /* @__PURE__ */ p("div", {
|
|
1639
|
+
className: [pt.root, l ?? ""].filter(Boolean).join(" "),
|
|
1640
|
+
children: [
|
|
1641
|
+
/* @__PURE__ */ f(N, {
|
|
1642
|
+
htmlFor: m,
|
|
1643
|
+
required: i,
|
|
1644
|
+
disabled: a,
|
|
1645
|
+
children: e
|
|
1646
|
+
}),
|
|
1647
|
+
/* @__PURE__ */ f(re, {
|
|
1648
|
+
ref: d,
|
|
1649
|
+
id: m,
|
|
1650
|
+
size: r,
|
|
1651
|
+
hasError: !!n,
|
|
1652
|
+
disabled: a,
|
|
1653
|
+
required: i,
|
|
1654
|
+
"aria-required": i,
|
|
1655
|
+
"aria-describedby": _,
|
|
1656
|
+
showPasswordLabel: o,
|
|
1657
|
+
hidePasswordLabel: s,
|
|
1658
|
+
...u
|
|
1659
|
+
}),
|
|
1660
|
+
n ? /* @__PURE__ */ f(F, {
|
|
1661
|
+
id: g,
|
|
1662
|
+
children: n
|
|
1663
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1664
|
+
id: h,
|
|
1665
|
+
children: t
|
|
1666
|
+
}) : null
|
|
1667
|
+
]
|
|
1668
|
+
});
|
|
1669
|
+
});
|
|
1670
|
+
mt.displayName = "PasswordField";
|
|
1671
|
+
var ht = {
|
|
1672
|
+
root: "_root_123no_1",
|
|
1673
|
+
inputWrapper: "_inputWrapper_123no_7"
|
|
1674
|
+
}, gt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1675
|
+
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1676
|
+
inputId: o,
|
|
1677
|
+
hint: t,
|
|
1678
|
+
error: n
|
|
1679
|
+
});
|
|
1680
|
+
return /* @__PURE__ */ p("div", {
|
|
1681
|
+
className: [ht.root, s ?? ""].filter(Boolean).join(" "),
|
|
1682
|
+
children: [
|
|
1683
|
+
/* @__PURE__ */ f(N, {
|
|
1684
|
+
htmlFor: u,
|
|
1685
|
+
required: i,
|
|
1686
|
+
disabled: a,
|
|
1687
|
+
children: e
|
|
1688
|
+
}),
|
|
1689
|
+
/* @__PURE__ */ f("div", {
|
|
1690
|
+
className: ht.inputWrapper,
|
|
1691
|
+
children: /* @__PURE__ */ f(ie, {
|
|
1692
|
+
ref: l,
|
|
1693
|
+
id: u,
|
|
1694
|
+
size: r,
|
|
1695
|
+
hasError: !!n,
|
|
1696
|
+
disabled: a,
|
|
1697
|
+
required: i,
|
|
1698
|
+
"aria-required": i,
|
|
1699
|
+
"aria-describedby": h,
|
|
1700
|
+
...c
|
|
1701
|
+
})
|
|
1702
|
+
}),
|
|
1703
|
+
n ? /* @__PURE__ */ f(F, {
|
|
1704
|
+
id: m,
|
|
1705
|
+
children: n
|
|
1706
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1707
|
+
id: d,
|
|
1708
|
+
children: t
|
|
1709
|
+
}) : null
|
|
1710
|
+
]
|
|
1711
|
+
});
|
|
1712
|
+
});
|
|
1713
|
+
gt.displayName = "EmailField";
|
|
1714
|
+
var _t = {
|
|
1715
|
+
root: "_root_123no_1",
|
|
1716
|
+
inputWrapper: "_inputWrapper_123no_7"
|
|
1717
|
+
}, vt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1718
|
+
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1719
|
+
inputId: o,
|
|
1720
|
+
hint: t,
|
|
1721
|
+
error: n
|
|
1722
|
+
});
|
|
1723
|
+
return /* @__PURE__ */ p("div", {
|
|
1724
|
+
className: [_t.root, s ?? ""].filter(Boolean).join(" "),
|
|
1725
|
+
children: [
|
|
1726
|
+
/* @__PURE__ */ f(N, {
|
|
1727
|
+
htmlFor: u,
|
|
1728
|
+
required: i,
|
|
1729
|
+
disabled: a,
|
|
1730
|
+
children: e
|
|
1731
|
+
}),
|
|
1732
|
+
/* @__PURE__ */ f("div", {
|
|
1733
|
+
className: _t.inputWrapper,
|
|
1734
|
+
children: /* @__PURE__ */ f(ae, {
|
|
1735
|
+
ref: l,
|
|
1736
|
+
id: u,
|
|
1737
|
+
size: r,
|
|
1738
|
+
hasError: !!n,
|
|
1739
|
+
disabled: a,
|
|
1740
|
+
required: i,
|
|
1741
|
+
"aria-required": i,
|
|
1742
|
+
"aria-describedby": h,
|
|
1743
|
+
...c
|
|
1744
|
+
})
|
|
1745
|
+
}),
|
|
1746
|
+
n ? /* @__PURE__ */ f(F, {
|
|
1747
|
+
id: m,
|
|
1748
|
+
children: n
|
|
1749
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1750
|
+
id: d,
|
|
1751
|
+
children: t
|
|
1752
|
+
}) : null
|
|
1753
|
+
]
|
|
1754
|
+
});
|
|
1755
|
+
});
|
|
1756
|
+
vt.displayName = "PhoneField";
|
|
1757
|
+
var yt = {
|
|
1758
|
+
root: "_root_123no_1",
|
|
1759
|
+
inputWrapper: "_inputWrapper_123no_7"
|
|
1760
|
+
}, bt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1761
|
+
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1762
|
+
inputId: o,
|
|
1763
|
+
hint: t,
|
|
1764
|
+
error: n
|
|
1765
|
+
});
|
|
1766
|
+
return /* @__PURE__ */ p("div", {
|
|
1767
|
+
className: [yt.root, s ?? ""].filter(Boolean).join(" "),
|
|
1768
|
+
children: [
|
|
1769
|
+
/* @__PURE__ */ f(N, {
|
|
1770
|
+
htmlFor: u,
|
|
1771
|
+
required: i,
|
|
1772
|
+
disabled: a,
|
|
1773
|
+
children: e
|
|
1774
|
+
}),
|
|
1775
|
+
/* @__PURE__ */ f("div", {
|
|
1776
|
+
className: yt.inputWrapper,
|
|
1777
|
+
children: /* @__PURE__ */ f(oe, {
|
|
1778
|
+
ref: l,
|
|
1779
|
+
id: u,
|
|
1780
|
+
size: r,
|
|
1781
|
+
hasError: !!n,
|
|
1782
|
+
disabled: a,
|
|
1783
|
+
required: i,
|
|
1784
|
+
"aria-required": i,
|
|
1785
|
+
"aria-describedby": h,
|
|
1786
|
+
...c
|
|
1787
|
+
})
|
|
1788
|
+
}),
|
|
1789
|
+
n ? /* @__PURE__ */ f(F, {
|
|
1790
|
+
id: m,
|
|
1791
|
+
children: n
|
|
1792
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1793
|
+
id: d,
|
|
1794
|
+
children: t
|
|
1795
|
+
}) : null
|
|
1796
|
+
]
|
|
1797
|
+
});
|
|
1798
|
+
});
|
|
1799
|
+
bt.displayName = "SearchField";
|
|
1800
|
+
var xt = {
|
|
1801
|
+
root: "_root_123no_1",
|
|
1802
|
+
inputWrapper: "_inputWrapper_123no_7"
|
|
1803
|
+
}, St = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, min: s, max: c, step: l, className: u, ...d }, m) => {
|
|
1804
|
+
let { id: h, hintId: g, errorId: _, describedBy: v } = I({
|
|
1805
|
+
inputId: o,
|
|
1806
|
+
hint: t,
|
|
1807
|
+
error: n
|
|
1808
|
+
});
|
|
1809
|
+
return /* @__PURE__ */ p("div", {
|
|
1810
|
+
className: [xt.root, u ?? ""].filter(Boolean).join(" "),
|
|
1811
|
+
children: [
|
|
1812
|
+
/* @__PURE__ */ f(N, {
|
|
1813
|
+
htmlFor: h,
|
|
1814
|
+
required: i,
|
|
1815
|
+
disabled: a,
|
|
1816
|
+
children: e
|
|
1817
|
+
}),
|
|
1818
|
+
/* @__PURE__ */ f("div", {
|
|
1819
|
+
className: xt.inputWrapper,
|
|
1820
|
+
children: /* @__PURE__ */ f(De, {
|
|
1821
|
+
ref: m,
|
|
1822
|
+
id: h,
|
|
1823
|
+
size: r,
|
|
1824
|
+
hasError: !!n,
|
|
1825
|
+
disabled: a,
|
|
1826
|
+
required: i,
|
|
1827
|
+
"aria-required": i,
|
|
1828
|
+
"aria-describedby": v,
|
|
1829
|
+
min: s,
|
|
1830
|
+
max: c,
|
|
1831
|
+
step: l,
|
|
1832
|
+
...d
|
|
1833
|
+
})
|
|
1834
|
+
}),
|
|
1835
|
+
n ? /* @__PURE__ */ f(F, {
|
|
1836
|
+
id: _,
|
|
1837
|
+
children: n
|
|
1838
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1839
|
+
id: g,
|
|
1840
|
+
children: t
|
|
1841
|
+
}) : null
|
|
1842
|
+
]
|
|
1843
|
+
});
|
|
1844
|
+
});
|
|
1845
|
+
St.displayName = "NumberField";
|
|
1846
|
+
var Ct = {
|
|
1847
|
+
root: "_root_123no_1",
|
|
1848
|
+
inputWrapper: "_inputWrapper_123no_7"
|
|
1849
|
+
}, wt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, value: c, ...l }, u) => {
|
|
1850
|
+
let { id: d, hintId: m, errorId: h, describedBy: g } = I({
|
|
1851
|
+
inputId: o,
|
|
1852
|
+
hint: t,
|
|
1853
|
+
error: n
|
|
1854
|
+
});
|
|
1855
|
+
return /* @__PURE__ */ p("div", {
|
|
1856
|
+
className: [Ct.root, s ?? ""].filter(Boolean).join(" "),
|
|
1857
|
+
children: [
|
|
1858
|
+
/* @__PURE__ */ f(N, {
|
|
1859
|
+
htmlFor: d,
|
|
1860
|
+
required: i,
|
|
1861
|
+
disabled: a,
|
|
1862
|
+
children: e
|
|
1863
|
+
}),
|
|
1864
|
+
/* @__PURE__ */ f("div", {
|
|
1865
|
+
className: Ct.inputWrapper,
|
|
1866
|
+
children: /* @__PURE__ */ f(Oe, {
|
|
1867
|
+
ref: u,
|
|
1868
|
+
id: d,
|
|
1869
|
+
size: r,
|
|
1870
|
+
value: c,
|
|
1871
|
+
hasError: !!n,
|
|
1872
|
+
disabled: a,
|
|
1873
|
+
required: i,
|
|
1874
|
+
"aria-required": i,
|
|
1875
|
+
"aria-describedby": g,
|
|
1876
|
+
...l
|
|
1877
|
+
})
|
|
1878
|
+
}),
|
|
1879
|
+
n ? /* @__PURE__ */ f(F, {
|
|
1880
|
+
id: h,
|
|
1881
|
+
children: n
|
|
1882
|
+
}) : t ? /* @__PURE__ */ f(P, {
|
|
1883
|
+
id: m,
|
|
1884
|
+
children: t
|
|
1885
|
+
}) : null
|
|
1886
|
+
]
|
|
1887
|
+
});
|
|
1888
|
+
});
|
|
1889
|
+
wt.displayName = "DateField";
|
|
1890
|
+
//#endregion
|
|
1891
|
+
//#region src/components/ThemeProvider/ThemeProvider.tsx
|
|
1892
|
+
var Tt = n(null), Et = "ds-theme";
|
|
1893
|
+
function Dt() {
|
|
1894
|
+
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1895
|
+
}
|
|
1896
|
+
function Ot(e, t) {
|
|
1897
|
+
e === "system" ? document.documentElement.removeAttribute("data-theme") : document.documentElement.setAttribute("data-theme", t);
|
|
1898
|
+
}
|
|
1899
|
+
function kt({ children: e, defaultTheme: t = "system", storageKey: n = Et }) {
|
|
1900
|
+
let [r, i] = u(() => {
|
|
1901
|
+
if (typeof window > "u") return t;
|
|
1902
|
+
let e = localStorage.getItem(n) ?? t;
|
|
1903
|
+
return Ot(e, e === "system" ? Dt() : e), e;
|
|
1904
|
+
}), [a, s] = u(() => r === "system" ? Dt() : r);
|
|
1905
|
+
o(() => {
|
|
1906
|
+
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1907
|
+
function t(t) {
|
|
1908
|
+
return t === "system" ? e.matches ? "dark" : "light" : t;
|
|
1909
|
+
}
|
|
1910
|
+
let n = t(r);
|
|
1911
|
+
s(n), Ot(r, n);
|
|
1912
|
+
function i() {
|
|
1913
|
+
if (r === "system") {
|
|
1914
|
+
let t = e.matches ? "dark" : "light";
|
|
1915
|
+
s(t), Ot("system", t);
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
return e.addEventListener("change", i), () => e.removeEventListener("change", i);
|
|
1919
|
+
}, [r]);
|
|
1920
|
+
function c(e) {
|
|
1921
|
+
localStorage.setItem(n, e), i(e);
|
|
1922
|
+
}
|
|
1923
|
+
return /* @__PURE__ */ f(Tt.Provider, {
|
|
1924
|
+
value: {
|
|
1925
|
+
theme: r,
|
|
1926
|
+
resolvedTheme: a,
|
|
1927
|
+
setTheme: c
|
|
1928
|
+
},
|
|
1929
|
+
children: e
|
|
1930
|
+
});
|
|
1931
|
+
}
|
|
1932
|
+
kt.displayName = "ThemeProvider";
|
|
1933
|
+
//#endregion
|
|
1934
|
+
//#region src/components/ThemeProvider/useTheme.ts
|
|
1935
|
+
function At() {
|
|
1936
|
+
let e = a(Tt);
|
|
1937
|
+
if (!e) throw Error("useTheme must be used inside a <ThemeProvider>");
|
|
1938
|
+
return e;
|
|
1939
|
+
}
|
|
1940
|
+
var jt = { stack: "_stack_bluv1_1" }, Mt = {
|
|
1941
|
+
0: "0",
|
|
1942
|
+
1: "var(--ds-space-1)",
|
|
1943
|
+
2: "var(--ds-space-2)",
|
|
1944
|
+
3: "var(--ds-space-3)",
|
|
1945
|
+
4: "var(--ds-space-4)",
|
|
1946
|
+
5: "var(--ds-space-5)",
|
|
1947
|
+
6: "var(--ds-space-6)",
|
|
1948
|
+
8: "var(--ds-space-8)",
|
|
1949
|
+
10: "var(--ds-space-10)",
|
|
1950
|
+
12: "var(--ds-space-12)",
|
|
1951
|
+
16: "var(--ds-space-16)"
|
|
1952
|
+
}, Nt = {
|
|
1953
|
+
start: "flex-start",
|
|
1954
|
+
center: "center",
|
|
1955
|
+
end: "flex-end",
|
|
1956
|
+
between: "space-between",
|
|
1957
|
+
around: "space-around",
|
|
1958
|
+
evenly: "space-evenly"
|
|
1959
|
+
}, Pt = r(({ direction: e = "column", gap: t = 4, align: n = "stretch", justify: r = "start", wrap: i = !1, className: a, style: o, ...s }, c) => /* @__PURE__ */ f("div", {
|
|
1960
|
+
ref: c,
|
|
1961
|
+
className: [jt.stack, a ?? ""].filter(Boolean).join(" "),
|
|
1962
|
+
style: {
|
|
1963
|
+
flexDirection: e,
|
|
1964
|
+
gap: Mt[t],
|
|
1965
|
+
alignItems: n,
|
|
1966
|
+
justifyContent: Nt[r],
|
|
1967
|
+
flexWrap: i ? "wrap" : "nowrap",
|
|
1968
|
+
...o
|
|
1969
|
+
},
|
|
1970
|
+
...s
|
|
1971
|
+
}));
|
|
1972
|
+
Pt.displayName = "Stack";
|
|
1973
|
+
var Ft = {
|
|
1974
|
+
grid: "_grid_nas2v_1",
|
|
1975
|
+
responsive: "_responsive_nas2v_7"
|
|
1976
|
+
}, It = {
|
|
1977
|
+
0: "0",
|
|
1978
|
+
1: "var(--ds-space-1)",
|
|
1979
|
+
2: "var(--ds-space-2)",
|
|
1980
|
+
3: "var(--ds-space-3)",
|
|
1981
|
+
4: "var(--ds-space-4)",
|
|
1982
|
+
5: "var(--ds-space-5)",
|
|
1983
|
+
6: "var(--ds-space-6)",
|
|
1984
|
+
8: "var(--ds-space-8)",
|
|
1985
|
+
10: "var(--ds-space-10)",
|
|
1986
|
+
12: "var(--ds-space-12)",
|
|
1987
|
+
16: "var(--ds-space-16)"
|
|
1988
|
+
}, Lt = r(({ cols: e = 1, gap: t = 4, columnGap: n, rowGap: r, className: i, style: a, ...o }, s) => {
|
|
1989
|
+
let c = typeof e != "number", l = c ? {
|
|
1990
|
+
...e.mobile !== void 0 && { "--grid-cols-mobile": String(e.mobile) },
|
|
1991
|
+
...e.tablet !== void 0 && { "--grid-cols-tablet": String(e.tablet) },
|
|
1992
|
+
...e.desktop !== void 0 && { "--grid-cols-desktop": String(e.desktop) }
|
|
1993
|
+
} : { gridTemplateColumns: `repeat(${e}, minmax(0, 1fr))` };
|
|
1994
|
+
return /* @__PURE__ */ f("div", {
|
|
1995
|
+
ref: s,
|
|
1996
|
+
className: [
|
|
1997
|
+
Ft.grid,
|
|
1998
|
+
c ? Ft.responsive : "",
|
|
1999
|
+
i ?? ""
|
|
2000
|
+
].filter(Boolean).join(" "),
|
|
2001
|
+
style: {
|
|
2002
|
+
...l,
|
|
2003
|
+
gap: It[t],
|
|
2004
|
+
...n !== void 0 && { columnGap: It[n] },
|
|
2005
|
+
...r !== void 0 && { rowGap: It[r] },
|
|
2006
|
+
...a
|
|
2007
|
+
},
|
|
2008
|
+
...o
|
|
2009
|
+
});
|
|
2010
|
+
});
|
|
2011
|
+
Lt.displayName = "Grid";
|
|
2012
|
+
var Rt = {
|
|
2013
|
+
container: "_container_1evbj_1",
|
|
2014
|
+
padding: "_padding_1evbj_6",
|
|
2015
|
+
sm: "_sm_1evbj_12",
|
|
2016
|
+
md: "_md_1evbj_13",
|
|
2017
|
+
lg: "_lg_1evbj_14",
|
|
2018
|
+
xl: "_xl_1evbj_15",
|
|
2019
|
+
full: "_full_1evbj_16"
|
|
2020
|
+
}, zt = r(({ size: e = "lg", padding: t = !0, className: n, ...r }, i) => /* @__PURE__ */ f("div", {
|
|
2021
|
+
ref: i,
|
|
2022
|
+
className: [
|
|
2023
|
+
Rt.container,
|
|
2024
|
+
Rt[e],
|
|
2025
|
+
t ? Rt.padding : "",
|
|
2026
|
+
n ?? ""
|
|
2027
|
+
].filter(Boolean).join(" "),
|
|
2028
|
+
...r
|
|
2029
|
+
}));
|
|
2030
|
+
zt.displayName = "Container";
|
|
2031
|
+
var R = {
|
|
2032
|
+
root: "_root_1jo5p_3",
|
|
2033
|
+
outlined: "_outlined_1jo5p_14",
|
|
2034
|
+
elevated: "_elevated_1jo5p_18",
|
|
2035
|
+
flat: "_flat_1jo5p_22",
|
|
2036
|
+
paddingSm: "_paddingSm_1jo5p_28",
|
|
2037
|
+
paddingMd: "_paddingMd_1jo5p_29",
|
|
2038
|
+
paddingLg: "_paddingLg_1jo5p_30",
|
|
2039
|
+
media: "_media_1jo5p_34",
|
|
2040
|
+
header: "_header_1jo5p_47",
|
|
2041
|
+
body: "_body_1jo5p_48",
|
|
2042
|
+
footer: "_footer_1jo5p_49"
|
|
2043
|
+
}, Bt = {
|
|
2044
|
+
sm: R.paddingSm,
|
|
2045
|
+
md: R.paddingMd,
|
|
2046
|
+
lg: R.paddingLg
|
|
2047
|
+
}, Vt = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2048
|
+
ref: n,
|
|
2049
|
+
className: [R.media, e ?? ""].filter(Boolean).join(" "),
|
|
2050
|
+
...t
|
|
2051
|
+
}));
|
|
2052
|
+
Vt.displayName = "Card.Media";
|
|
2053
|
+
var Ht = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2054
|
+
ref: n,
|
|
2055
|
+
className: [R.header, e ?? ""].filter(Boolean).join(" "),
|
|
2056
|
+
...t
|
|
2057
|
+
}));
|
|
2058
|
+
Ht.displayName = "Card.Header";
|
|
2059
|
+
var Ut = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2060
|
+
ref: n,
|
|
2061
|
+
className: [R.body, e ?? ""].filter(Boolean).join(" "),
|
|
2062
|
+
...t
|
|
2063
|
+
}));
|
|
2064
|
+
Ut.displayName = "Card.Body";
|
|
2065
|
+
var Wt = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2066
|
+
ref: n,
|
|
2067
|
+
className: [R.footer, e ?? ""].filter(Boolean).join(" "),
|
|
2068
|
+
...t
|
|
2069
|
+
}));
|
|
2070
|
+
Wt.displayName = "Card.Footer";
|
|
2071
|
+
var Gt = r(({ variant: e = "outlined", padding: t = "md", className: n, ...r }, i) => /* @__PURE__ */ f("div", {
|
|
2072
|
+
ref: i,
|
|
2073
|
+
className: [
|
|
2074
|
+
R.root,
|
|
2075
|
+
R[e],
|
|
2076
|
+
Bt[t],
|
|
2077
|
+
n ?? ""
|
|
2078
|
+
].filter(Boolean).join(" "),
|
|
2079
|
+
...r
|
|
2080
|
+
}));
|
|
2081
|
+
Gt.displayName = "Card";
|
|
2082
|
+
var Kt = Object.assign(Gt, {
|
|
2083
|
+
Media: Vt,
|
|
2084
|
+
Header: Ht,
|
|
2085
|
+
Body: Ut,
|
|
2086
|
+
Footer: Wt
|
|
2087
|
+
}), z = {
|
|
2088
|
+
root: "_root_xmnn0_3",
|
|
2089
|
+
info: "_info_xmnn0_16",
|
|
2090
|
+
success: "_success_xmnn0_22",
|
|
2091
|
+
warning: "_warning_xmnn0_28",
|
|
2092
|
+
error: "_error_xmnn0_34",
|
|
2093
|
+
promotional: "_promotional_xmnn0_40",
|
|
2094
|
+
stacked: "_stacked_xmnn0_48",
|
|
2095
|
+
icon: "_icon_xmnn0_52",
|
|
2096
|
+
content: "_content_xmnn0_68",
|
|
2097
|
+
headline: "_headline_xmnn0_76",
|
|
2098
|
+
description: "_description_xmnn0_85",
|
|
2099
|
+
actions: "_actions_xmnn0_95",
|
|
2100
|
+
dismiss: "_dismiss_xmnn0_108"
|
|
2101
|
+
}, qt = {
|
|
2102
|
+
error: "alert",
|
|
2103
|
+
warning: "alert",
|
|
2104
|
+
success: "status",
|
|
2105
|
+
info: "status",
|
|
2106
|
+
promotional: "region"
|
|
2107
|
+
}, Jt = {
|
|
2108
|
+
info: /* @__PURE__ */ p("svg", {
|
|
2109
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2110
|
+
width: "20",
|
|
2111
|
+
height: "20",
|
|
2112
|
+
viewBox: "0 0 24 24",
|
|
2113
|
+
fill: "none",
|
|
2114
|
+
stroke: "currentColor",
|
|
2115
|
+
strokeWidth: "2",
|
|
2116
|
+
strokeLinecap: "round",
|
|
2117
|
+
strokeLinejoin: "round",
|
|
2118
|
+
"aria-hidden": "true",
|
|
2119
|
+
children: [
|
|
2120
|
+
/* @__PURE__ */ f("circle", {
|
|
2121
|
+
cx: "12",
|
|
2122
|
+
cy: "12",
|
|
2123
|
+
r: "10"
|
|
2124
|
+
}),
|
|
2125
|
+
/* @__PURE__ */ f("line", {
|
|
2126
|
+
x1: "12",
|
|
2127
|
+
y1: "8",
|
|
2128
|
+
x2: "12",
|
|
2129
|
+
y2: "12"
|
|
2130
|
+
}),
|
|
2131
|
+
/* @__PURE__ */ f("line", {
|
|
2132
|
+
x1: "12",
|
|
2133
|
+
y1: "16",
|
|
2134
|
+
x2: "12.01",
|
|
2135
|
+
y2: "16"
|
|
2136
|
+
})
|
|
2137
|
+
]
|
|
2138
|
+
}),
|
|
2139
|
+
success: /* @__PURE__ */ p("svg", {
|
|
2140
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2141
|
+
width: "20",
|
|
2142
|
+
height: "20",
|
|
2143
|
+
viewBox: "0 0 24 24",
|
|
2144
|
+
fill: "none",
|
|
2145
|
+
stroke: "currentColor",
|
|
2146
|
+
strokeWidth: "2",
|
|
2147
|
+
strokeLinecap: "round",
|
|
2148
|
+
strokeLinejoin: "round",
|
|
2149
|
+
"aria-hidden": "true",
|
|
2150
|
+
children: [/* @__PURE__ */ f("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ f("polyline", { points: "22 4 12 14.01 9 11.01" })]
|
|
2151
|
+
}),
|
|
2152
|
+
warning: /* @__PURE__ */ p("svg", {
|
|
2153
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2154
|
+
width: "20",
|
|
2155
|
+
height: "20",
|
|
2156
|
+
viewBox: "0 0 24 24",
|
|
2157
|
+
fill: "none",
|
|
2158
|
+
stroke: "currentColor",
|
|
2159
|
+
strokeWidth: "2",
|
|
2160
|
+
strokeLinecap: "round",
|
|
2161
|
+
strokeLinejoin: "round",
|
|
2162
|
+
"aria-hidden": "true",
|
|
2163
|
+
children: [
|
|
2164
|
+
/* @__PURE__ */ f("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
2165
|
+
/* @__PURE__ */ f("line", {
|
|
2166
|
+
x1: "12",
|
|
2167
|
+
y1: "9",
|
|
2168
|
+
x2: "12",
|
|
2169
|
+
y2: "13"
|
|
2170
|
+
}),
|
|
2171
|
+
/* @__PURE__ */ f("line", {
|
|
2172
|
+
x1: "12",
|
|
2173
|
+
y1: "17",
|
|
2174
|
+
x2: "12.01",
|
|
2175
|
+
y2: "17"
|
|
2176
|
+
})
|
|
2177
|
+
]
|
|
2178
|
+
}),
|
|
2179
|
+
error: /* @__PURE__ */ p("svg", {
|
|
2180
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2181
|
+
width: "20",
|
|
2182
|
+
height: "20",
|
|
2183
|
+
viewBox: "0 0 24 24",
|
|
2184
|
+
fill: "none",
|
|
2185
|
+
stroke: "currentColor",
|
|
2186
|
+
strokeWidth: "2",
|
|
2187
|
+
strokeLinecap: "round",
|
|
2188
|
+
strokeLinejoin: "round",
|
|
2189
|
+
"aria-hidden": "true",
|
|
2190
|
+
children: [
|
|
2191
|
+
/* @__PURE__ */ f("circle", {
|
|
2192
|
+
cx: "12",
|
|
2193
|
+
cy: "12",
|
|
2194
|
+
r: "10"
|
|
2195
|
+
}),
|
|
2196
|
+
/* @__PURE__ */ f("line", {
|
|
2197
|
+
x1: "15",
|
|
2198
|
+
y1: "9",
|
|
2199
|
+
x2: "9",
|
|
2200
|
+
y2: "15"
|
|
2201
|
+
}),
|
|
2202
|
+
/* @__PURE__ */ f("line", {
|
|
2203
|
+
x1: "9",
|
|
2204
|
+
y1: "9",
|
|
2205
|
+
x2: "15",
|
|
2206
|
+
y2: "15"
|
|
2207
|
+
})
|
|
2208
|
+
]
|
|
2209
|
+
}),
|
|
2210
|
+
promotional: /* @__PURE__ */ f("svg", {
|
|
2211
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2212
|
+
width: "20",
|
|
2213
|
+
height: "20",
|
|
2214
|
+
viewBox: "0 0 24 24",
|
|
2215
|
+
fill: "none",
|
|
2216
|
+
stroke: "currentColor",
|
|
2217
|
+
strokeWidth: "2",
|
|
2218
|
+
strokeLinecap: "round",
|
|
2219
|
+
strokeLinejoin: "round",
|
|
2220
|
+
"aria-hidden": "true",
|
|
2221
|
+
children: /* @__PURE__ */ f("path", { d: "M22 12h-4l-3 9L9 3l-3 9H2" })
|
|
2222
|
+
})
|
|
2223
|
+
}, Yt = () => /* @__PURE__ */ p("svg", {
|
|
2224
|
+
"aria-hidden": "true",
|
|
2225
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2226
|
+
width: "16",
|
|
2227
|
+
height: "16",
|
|
2228
|
+
viewBox: "0 0 24 24",
|
|
2229
|
+
fill: "none",
|
|
2230
|
+
stroke: "currentColor",
|
|
2231
|
+
strokeWidth: "2",
|
|
2232
|
+
strokeLinecap: "round",
|
|
2233
|
+
strokeLinejoin: "round",
|
|
2234
|
+
children: [/* @__PURE__ */ f("line", {
|
|
2235
|
+
x1: "18",
|
|
2236
|
+
y1: "6",
|
|
2237
|
+
x2: "6",
|
|
2238
|
+
y2: "18"
|
|
2239
|
+
}), /* @__PURE__ */ f("line", {
|
|
2240
|
+
x1: "6",
|
|
2241
|
+
y1: "6",
|
|
2242
|
+
x2: "18",
|
|
2243
|
+
y2: "18"
|
|
2244
|
+
})]
|
|
2245
|
+
}), Xt = r(({ headline: e, description: t, variant: n = "info", layout: r = "horizontal", media: i, actions: a, onDismiss: o, dismissLabel: s = "Close banner", role: c, className: l, ...u }, d) => {
|
|
2246
|
+
let m = c ?? qt[n], h = [
|
|
2247
|
+
z.root,
|
|
2248
|
+
z[n],
|
|
2249
|
+
r === "stacked" ? z.stacked : "",
|
|
2250
|
+
l ?? ""
|
|
2251
|
+
].filter(Boolean).join(" ");
|
|
2252
|
+
return /* @__PURE__ */ p("div", {
|
|
2253
|
+
ref: d,
|
|
2254
|
+
role: m,
|
|
2255
|
+
"aria-label": m === "region" ? e : void 0,
|
|
2256
|
+
...u,
|
|
2257
|
+
className: h,
|
|
2258
|
+
children: [
|
|
2259
|
+
/* @__PURE__ */ f("span", {
|
|
2260
|
+
className: z.icon,
|
|
2261
|
+
children: i ?? Jt[n]
|
|
2262
|
+
}),
|
|
2263
|
+
/* @__PURE__ */ p("div", {
|
|
2264
|
+
className: z.content,
|
|
2265
|
+
children: [
|
|
2266
|
+
/* @__PURE__ */ f("p", {
|
|
2267
|
+
className: z.headline,
|
|
2268
|
+
children: e
|
|
2269
|
+
}),
|
|
2270
|
+
t && /* @__PURE__ */ f("p", {
|
|
2271
|
+
className: z.description,
|
|
2272
|
+
children: t
|
|
2273
|
+
}),
|
|
2274
|
+
r === "stacked" && a && /* @__PURE__ */ f("div", {
|
|
2275
|
+
className: z.actions,
|
|
2276
|
+
children: a
|
|
2277
|
+
})
|
|
2278
|
+
]
|
|
2279
|
+
}),
|
|
2280
|
+
r === "horizontal" && a && /* @__PURE__ */ f("div", {
|
|
2281
|
+
className: z.actions,
|
|
2282
|
+
children: a
|
|
2283
|
+
}),
|
|
2284
|
+
o && /* @__PURE__ */ f("button", {
|
|
2285
|
+
type: "button",
|
|
2286
|
+
className: z.dismiss,
|
|
2287
|
+
"aria-label": s,
|
|
2288
|
+
onClick: o,
|
|
2289
|
+
children: /* @__PURE__ */ f(Yt, {})
|
|
2290
|
+
})
|
|
2291
|
+
]
|
|
2292
|
+
});
|
|
2293
|
+
});
|
|
2294
|
+
Xt.displayName = "Banner";
|
|
2295
|
+
var B = {
|
|
2296
|
+
root: "_root_cjxe3_3",
|
|
2297
|
+
srOnly: "_srOnly_cjxe3_11",
|
|
2298
|
+
viewport: "_viewport_cjxe3_25",
|
|
2299
|
+
track: "_track_cjxe3_32",
|
|
2300
|
+
slide: "_slide_cjxe3_46",
|
|
2301
|
+
controls: "_controls_cjxe3_53",
|
|
2302
|
+
navBtn: "_navBtn_cjxe3_60",
|
|
2303
|
+
dots: "_dots_cjxe3_66",
|
|
2304
|
+
dot: "_dot_cjxe3_66",
|
|
2305
|
+
dotActive: "_dotActive_cjxe3_96"
|
|
2306
|
+
}, Zt = () => /* @__PURE__ */ f("svg", {
|
|
2307
|
+
width: "16",
|
|
2308
|
+
height: "16",
|
|
2309
|
+
viewBox: "0 0 24 24",
|
|
2310
|
+
fill: "none",
|
|
2311
|
+
stroke: "currentColor",
|
|
2312
|
+
strokeWidth: "2",
|
|
2313
|
+
strokeLinecap: "round",
|
|
2314
|
+
strokeLinejoin: "round",
|
|
2315
|
+
"aria-hidden": "true",
|
|
2316
|
+
children: /* @__PURE__ */ f("polyline", { points: "15 18 9 12 15 6" })
|
|
2317
|
+
}), Qt = () => /* @__PURE__ */ f("svg", {
|
|
2318
|
+
width: "16",
|
|
2319
|
+
height: "16",
|
|
2320
|
+
viewBox: "0 0 24 24",
|
|
2321
|
+
fill: "none",
|
|
2322
|
+
stroke: "currentColor",
|
|
2323
|
+
strokeWidth: "2",
|
|
2324
|
+
strokeLinecap: "round",
|
|
2325
|
+
strokeLinejoin: "round",
|
|
2326
|
+
"aria-hidden": "true",
|
|
2327
|
+
children: /* @__PURE__ */ f("polyline", { points: "9 18 15 12 9 6" })
|
|
2328
|
+
}), $t = r(({ children: t, "aria-label": n, loop: r = !1, autoplay: a, visibleSlides: s = 1, prevLabel: d = "Previous", nextLabel: m = "Next", className: h, onKeyDown: g, ..._ }, v) => {
|
|
2329
|
+
let b = e.toArray(t), x = b.length, S = Math.min(s, x), C = Math.max(0, x - S), w = C + 1, [T, E] = u(0), [ee, D] = u(!1), O = l(!1), k = l(!1);
|
|
2330
|
+
c(() => {
|
|
2331
|
+
if (!ee) return;
|
|
2332
|
+
let e = requestAnimationFrame(() => requestAnimationFrame(() => D(!1)));
|
|
2333
|
+
return () => cancelAnimationFrame(e);
|
|
2334
|
+
}, [ee]);
|
|
2335
|
+
let A = i((e) => {
|
|
2336
|
+
r ? ((e < 0 || e >= x) && D(!0), E((e % x + x) % x)) : E(Math.max(0, Math.min(C, e)));
|
|
2337
|
+
}, [
|
|
2338
|
+
r,
|
|
2339
|
+
x,
|
|
2340
|
+
C
|
|
2341
|
+
]), j = i(() => A(T - 1), [T, A]), te = i(() => A(T + 1), [T, A]);
|
|
2342
|
+
o(() => {
|
|
2343
|
+
if (!a) return;
|
|
2344
|
+
let e = setInterval(() => {
|
|
2345
|
+
O.current || k.current || (r ? A(T + 1) : E((e) => e < C ? e + 1 : 0));
|
|
2346
|
+
}, a);
|
|
2347
|
+
return () => clearInterval(e);
|
|
2348
|
+
}, [
|
|
2349
|
+
a,
|
|
2350
|
+
T,
|
|
2351
|
+
A,
|
|
2352
|
+
r,
|
|
2353
|
+
C
|
|
2354
|
+
]);
|
|
2355
|
+
let ne = i((e) => {
|
|
2356
|
+
e.key === "ArrowLeft" && (e.preventDefault(), j()), e.key === "ArrowRight" && (e.preventDefault(), te()), g?.(e);
|
|
2357
|
+
}, [
|
|
2358
|
+
j,
|
|
2359
|
+
te,
|
|
2360
|
+
g
|
|
2361
|
+
]), re = !r && T === 0, ie = !r && T >= C, ae = x > 0 ? T / x * 100 : 0, oe = x > 0 ? x / S * 100 : 100, se = x > 0 ? 100 / x : 100;
|
|
2362
|
+
return /* @__PURE__ */ p("div", {
|
|
2363
|
+
ref: v,
|
|
2364
|
+
role: "region",
|
|
2365
|
+
"aria-label": n,
|
|
2366
|
+
className: [B.root, h ?? ""].filter(Boolean).join(" "),
|
|
2367
|
+
onKeyDown: ne,
|
|
2368
|
+
onMouseEnter: () => {
|
|
2369
|
+
O.current = !0;
|
|
2370
|
+
},
|
|
2371
|
+
onMouseLeave: () => {
|
|
2372
|
+
O.current = !1;
|
|
2373
|
+
},
|
|
2374
|
+
onFocus: () => {
|
|
2375
|
+
k.current = !0;
|
|
2376
|
+
},
|
|
2377
|
+
onBlur: () => {
|
|
2378
|
+
k.current = !1;
|
|
2379
|
+
},
|
|
2380
|
+
..._,
|
|
2381
|
+
children: [
|
|
2382
|
+
/* @__PURE__ */ f("span", {
|
|
2383
|
+
className: B.srOnly,
|
|
2384
|
+
"aria-live": "polite",
|
|
2385
|
+
"aria-atomic": "true",
|
|
2386
|
+
children: `Slide ${T + 1} of ${x}`
|
|
2387
|
+
}),
|
|
2388
|
+
/* @__PURE__ */ f("div", {
|
|
2389
|
+
className: B.viewport,
|
|
2390
|
+
children: /* @__PURE__ */ f("div", {
|
|
2391
|
+
className: B.track,
|
|
2392
|
+
style: {
|
|
2393
|
+
width: `${oe}%`,
|
|
2394
|
+
transform: `translateX(-${ae}%)`,
|
|
2395
|
+
...ee ? { transition: "none" } : {}
|
|
2396
|
+
},
|
|
2397
|
+
children: b.map((e, t) => /* @__PURE__ */ f("div", {
|
|
2398
|
+
role: "group",
|
|
2399
|
+
"aria-roledescription": "slide",
|
|
2400
|
+
"aria-label": `Slide ${t + 1} of ${x}`,
|
|
2401
|
+
className: B.slide,
|
|
2402
|
+
style: { width: `${se}%` },
|
|
2403
|
+
children: e
|
|
2404
|
+
}, t))
|
|
2405
|
+
})
|
|
2406
|
+
}),
|
|
2407
|
+
/* @__PURE__ */ p("div", {
|
|
2408
|
+
className: B.controls,
|
|
2409
|
+
children: [
|
|
2410
|
+
/* @__PURE__ */ f(y, {
|
|
2411
|
+
variant: "secondary",
|
|
2412
|
+
size: "sm",
|
|
2413
|
+
"aria-label": d,
|
|
2414
|
+
disabled: re,
|
|
2415
|
+
onClick: j,
|
|
2416
|
+
className: B.navBtn,
|
|
2417
|
+
children: /* @__PURE__ */ f(Zt, {})
|
|
2418
|
+
}),
|
|
2419
|
+
/* @__PURE__ */ f("ul", {
|
|
2420
|
+
className: B.dots,
|
|
2421
|
+
"aria-label": "Slides",
|
|
2422
|
+
children: Array.from({ length: w }).map((e, t) => /* @__PURE__ */ f("li", { children: /* @__PURE__ */ f("button", {
|
|
2423
|
+
type: "button",
|
|
2424
|
+
"aria-label": `Go to slide ${t + 1}`,
|
|
2425
|
+
"aria-current": t === T ? !0 : void 0,
|
|
2426
|
+
className: [B.dot, t === T ? B.dotActive : ""].filter(Boolean).join(" "),
|
|
2427
|
+
onClick: () => A(t)
|
|
2428
|
+
}) }, t))
|
|
2429
|
+
}),
|
|
2430
|
+
/* @__PURE__ */ f(y, {
|
|
2431
|
+
variant: "secondary",
|
|
2432
|
+
size: "sm",
|
|
2433
|
+
"aria-label": m,
|
|
2434
|
+
disabled: ie,
|
|
2435
|
+
onClick: te,
|
|
2436
|
+
className: B.navBtn,
|
|
2437
|
+
children: /* @__PURE__ */ f(Qt, {})
|
|
2438
|
+
})
|
|
2439
|
+
]
|
|
2440
|
+
})
|
|
2441
|
+
]
|
|
2442
|
+
});
|
|
2443
|
+
});
|
|
2444
|
+
$t.displayName = "Carousel";
|
|
2445
|
+
var en = {
|
|
2446
|
+
nav: "_nav_1eaxa_1",
|
|
2447
|
+
list: "_list_1eaxa_5",
|
|
2448
|
+
item: "_item_1eaxa_14",
|
|
2449
|
+
link: "_link_1eaxa_29",
|
|
2450
|
+
current: "_current_1eaxa_47"
|
|
2451
|
+
}, tn = r(({ items: e, "aria-label": t = "Breadcrumb", className: n }, r) => /* @__PURE__ */ f("nav", {
|
|
2452
|
+
ref: r,
|
|
2453
|
+
"aria-label": t,
|
|
2454
|
+
className: [en.nav, n ?? ""].filter(Boolean).join(" "),
|
|
2455
|
+
children: /* @__PURE__ */ f("ol", {
|
|
2456
|
+
className: en.list,
|
|
2457
|
+
children: e.map((t, n) => {
|
|
2458
|
+
let r = n === e.length - 1;
|
|
2459
|
+
return /* @__PURE__ */ f("li", {
|
|
2460
|
+
className: en.item,
|
|
2461
|
+
children: r ? /* @__PURE__ */ f("span", {
|
|
2462
|
+
className: en.current,
|
|
2463
|
+
"aria-current": "page",
|
|
2464
|
+
children: t.label
|
|
2465
|
+
}) : t.href ? /* @__PURE__ */ f("a", {
|
|
2466
|
+
href: t.href,
|
|
2467
|
+
className: en.link,
|
|
2468
|
+
children: t.label
|
|
2469
|
+
}) : /* @__PURE__ */ f("span", {
|
|
2470
|
+
className: en.link,
|
|
2471
|
+
children: t.label
|
|
2472
|
+
})
|
|
2473
|
+
}, `${t.label}-${n}`);
|
|
2474
|
+
})
|
|
2475
|
+
})
|
|
2476
|
+
}));
|
|
2477
|
+
tn.displayName = "Breadcrumb";
|
|
2478
|
+
var V = {
|
|
2479
|
+
navbar: "_navbar_1bewp_1",
|
|
2480
|
+
sticky: "_sticky_1bewp_7",
|
|
2481
|
+
inner: "_inner_1bewp_12",
|
|
2482
|
+
brand: "_brand_1bewp_22",
|
|
2483
|
+
nav: "_nav_1bewp_1",
|
|
2484
|
+
navList: "_navList_1bewp_34",
|
|
2485
|
+
navItem: "_navItem_1bewp_43",
|
|
2486
|
+
navLink: "_navLink_1bewp_47",
|
|
2487
|
+
navLinkActive: "_navLinkActive_1bewp_72",
|
|
2488
|
+
actions: "_actions_1bewp_82",
|
|
2489
|
+
menuButton: "_menuButton_1bewp_90",
|
|
2490
|
+
mobileMenu: "_mobileMenu_1bewp_116",
|
|
2491
|
+
mobileNavList: "_mobileNavList_1bewp_124",
|
|
2492
|
+
mobileNavItem: "_mobileNavItem_1bewp_133",
|
|
2493
|
+
mobileNavLink: "_mobileNavLink_1bewp_137",
|
|
2494
|
+
mobileNavLinkActive: "_mobileNavLinkActive_1bewp_160",
|
|
2495
|
+
mobileMenuOpen: "_mobileMenuOpen_1bewp_189"
|
|
2496
|
+
}, nn = () => /* @__PURE__ */ f("svg", {
|
|
2497
|
+
width: "20",
|
|
2498
|
+
height: "20",
|
|
2499
|
+
viewBox: "0 0 20 20",
|
|
2500
|
+
fill: "currentColor",
|
|
2501
|
+
"aria-hidden": "true",
|
|
2502
|
+
children: /* @__PURE__ */ f("path", {
|
|
2503
|
+
fillRule: "evenodd",
|
|
2504
|
+
d: "M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75ZM2 10a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 10Zm0 5.25a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z",
|
|
2505
|
+
clipRule: "evenodd"
|
|
2506
|
+
})
|
|
2507
|
+
}), rn = () => /* @__PURE__ */ f("svg", {
|
|
2508
|
+
width: "20",
|
|
2509
|
+
height: "20",
|
|
2510
|
+
viewBox: "0 0 20 20",
|
|
2511
|
+
fill: "currentColor",
|
|
2512
|
+
"aria-hidden": "true",
|
|
2513
|
+
children: /* @__PURE__ */ f("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" })
|
|
2514
|
+
}), an = r(({ brand: e, items: t = [], actions: n, sticky: r = !1, "aria-label": i = "Main navigation", defaultMobileOpen: a = !1, isMobileOpen: o, onMobileOpenChange: c, className: l }, d) => {
|
|
2515
|
+
let [m, h] = u(a), g = o ?? m, _ = s(), v = () => {
|
|
2516
|
+
let e = !g;
|
|
2517
|
+
o === void 0 && h(e), c?.(e);
|
|
2518
|
+
}, y = () => {
|
|
2519
|
+
o === void 0 && h(!1), c?.(!1);
|
|
2520
|
+
};
|
|
2521
|
+
return /* @__PURE__ */ p("header", {
|
|
2522
|
+
ref: d,
|
|
2523
|
+
className: [
|
|
2524
|
+
V.navbar,
|
|
2525
|
+
r ? V.sticky : "",
|
|
2526
|
+
l ?? ""
|
|
2527
|
+
].filter(Boolean).join(" "),
|
|
2528
|
+
children: [/* @__PURE__ */ p("div", {
|
|
2529
|
+
className: V.inner,
|
|
2530
|
+
children: [
|
|
2531
|
+
e && /* @__PURE__ */ f("div", {
|
|
2532
|
+
className: V.brand,
|
|
2533
|
+
children: e
|
|
2534
|
+
}),
|
|
2535
|
+
t.length > 0 && /* @__PURE__ */ f("nav", {
|
|
2536
|
+
className: V.nav,
|
|
2537
|
+
"aria-label": i,
|
|
2538
|
+
children: /* @__PURE__ */ f("ul", {
|
|
2539
|
+
className: V.navList,
|
|
2540
|
+
children: t.map((e) => /* @__PURE__ */ f("li", {
|
|
2541
|
+
className: V.navItem,
|
|
2542
|
+
children: /* @__PURE__ */ f("a", {
|
|
2543
|
+
href: e.href,
|
|
2544
|
+
onClick: e.onClick,
|
|
2545
|
+
className: [V.navLink, e.isActive ? V.navLinkActive : ""].filter(Boolean).join(" "),
|
|
2546
|
+
"aria-current": e.isActive ? "page" : void 0,
|
|
2547
|
+
children: e.label
|
|
2548
|
+
})
|
|
2549
|
+
}, e.key))
|
|
2550
|
+
})
|
|
2551
|
+
}),
|
|
2552
|
+
n && /* @__PURE__ */ f("div", {
|
|
2553
|
+
className: V.actions,
|
|
2554
|
+
children: n
|
|
2555
|
+
}),
|
|
2556
|
+
/* @__PURE__ */ f("button", {
|
|
2557
|
+
type: "button",
|
|
2558
|
+
className: V.menuButton,
|
|
2559
|
+
onClick: v,
|
|
2560
|
+
"aria-expanded": g,
|
|
2561
|
+
"aria-controls": _,
|
|
2562
|
+
"aria-label": g ? "Close menu" : "Open menu",
|
|
2563
|
+
children: f(g ? rn : nn, {})
|
|
2564
|
+
})
|
|
2565
|
+
]
|
|
2566
|
+
}), /* @__PURE__ */ f("div", {
|
|
2567
|
+
id: _,
|
|
2568
|
+
className: [V.mobileMenu, g ? V.mobileMenuOpen : ""].filter(Boolean).join(" "),
|
|
2569
|
+
children: /* @__PURE__ */ f("nav", {
|
|
2570
|
+
"aria-label": `${i} — menu`,
|
|
2571
|
+
children: /* @__PURE__ */ f("ul", {
|
|
2572
|
+
className: V.mobileNavList,
|
|
2573
|
+
children: t.map((e) => /* @__PURE__ */ f("li", {
|
|
2574
|
+
className: V.mobileNavItem,
|
|
2575
|
+
children: /* @__PURE__ */ f("a", {
|
|
2576
|
+
href: e.href,
|
|
2577
|
+
onClick: () => {
|
|
2578
|
+
e.onClick?.(), y();
|
|
2579
|
+
},
|
|
2580
|
+
className: [V.mobileNavLink, e.isActive ? V.mobileNavLinkActive : ""].filter(Boolean).join(" "),
|
|
2581
|
+
"aria-current": e.isActive ? "page" : void 0,
|
|
2582
|
+
children: e.label
|
|
2583
|
+
})
|
|
2584
|
+
}, e.key))
|
|
2585
|
+
})
|
|
2586
|
+
})
|
|
2587
|
+
})]
|
|
2588
|
+
});
|
|
2589
|
+
});
|
|
2590
|
+
an.displayName = "Navbar";
|
|
2591
|
+
var H = {
|
|
2592
|
+
sidebar: "_sidebar_zpuep_3",
|
|
2593
|
+
collapsed: "_collapsed_zpuep_13",
|
|
2594
|
+
panel: "_panel_zpuep_18",
|
|
2595
|
+
backdrop: "_backdrop_zpuep_33",
|
|
2596
|
+
panelTop: "_panelTop_zpuep_42",
|
|
2597
|
+
logoRow: "_logoRow_zpuep_59",
|
|
2598
|
+
logoSlot: "_logoSlot_zpuep_73",
|
|
2599
|
+
headerContent: "_headerContent_zpuep_81",
|
|
2600
|
+
mobileCloseRow: "_mobileCloseRow_zpuep_99",
|
|
2601
|
+
mobileCloseButton: "_mobileCloseButton_zpuep_107",
|
|
2602
|
+
nav: "_nav_zpuep_134",
|
|
2603
|
+
navList: "_navList_zpuep_141",
|
|
2604
|
+
navItem: "_navItem_zpuep_153",
|
|
2605
|
+
navLink: "_navLink_zpuep_157",
|
|
2606
|
+
navLinkActive: "_navLinkActive_zpuep_184",
|
|
2607
|
+
navLinkIcon: "_navLinkIcon_zpuep_189",
|
|
2608
|
+
navLinkLabel: "_navLinkLabel_zpuep_199",
|
|
2609
|
+
collapseButton: "_collapseButton_zpuep_217",
|
|
2610
|
+
footer: "_footer_zpuep_251",
|
|
2611
|
+
mobileOpen: "_mobileOpen_zpuep_285"
|
|
2612
|
+
}, on = "a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", sn = () => /* @__PURE__ */ f("svg", {
|
|
2613
|
+
width: "16",
|
|
2614
|
+
height: "16",
|
|
2615
|
+
viewBox: "0 0 16 16",
|
|
2616
|
+
fill: "none",
|
|
2617
|
+
"aria-hidden": "true",
|
|
2618
|
+
children: /* @__PURE__ */ f("path", {
|
|
2619
|
+
d: "M10 4L6 8L10 12",
|
|
2620
|
+
stroke: "currentColor",
|
|
2621
|
+
strokeWidth: "1.5",
|
|
2622
|
+
strokeLinecap: "round",
|
|
2623
|
+
strokeLinejoin: "round"
|
|
2624
|
+
})
|
|
2625
|
+
}), cn = () => /* @__PURE__ */ f("svg", {
|
|
2626
|
+
width: "16",
|
|
2627
|
+
height: "16",
|
|
2628
|
+
viewBox: "0 0 16 16",
|
|
2629
|
+
fill: "none",
|
|
2630
|
+
"aria-hidden": "true",
|
|
2631
|
+
children: /* @__PURE__ */ f("path", {
|
|
2632
|
+
d: "M6 4L10 8L6 12",
|
|
2633
|
+
stroke: "currentColor",
|
|
2634
|
+
strokeWidth: "1.5",
|
|
2635
|
+
strokeLinecap: "round",
|
|
2636
|
+
strokeLinejoin: "round"
|
|
2637
|
+
})
|
|
2638
|
+
}), ln = () => /* @__PURE__ */ f("svg", {
|
|
2639
|
+
width: "20",
|
|
2640
|
+
height: "20",
|
|
2641
|
+
viewBox: "0 0 20 20",
|
|
2642
|
+
fill: "currentColor",
|
|
2643
|
+
"aria-hidden": "true",
|
|
2644
|
+
children: /* @__PURE__ */ f("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" })
|
|
2645
|
+
}), un = r(({ items: e, logo: t, header: n, footer: r, "aria-label": a = "Sidebar navigation", defaultCollapsed: s = !1, isCollapsed: c, onCollapsedChange: d, defaultMobileOpen: h = !1, isMobileOpen: g, onMobileOpenChange: _, className: v }, y) => {
|
|
2646
|
+
let [b, x] = u(s), S = c ?? b, [C, w] = u(h), T = g ?? C, [E, ee] = u(!1), D = l(null), O = l(null);
|
|
2647
|
+
o(() => {
|
|
2648
|
+
ee(!0);
|
|
2649
|
+
}, []), o(() => {
|
|
2650
|
+
if (window.matchMedia?.("(max-width: 767px)")?.matches ?? !1) return T ? (O.current = document.activeElement, document.body.style.overflow = "hidden", (D.current?.querySelector(on))?.focus()) : (document.body.style.overflow = "", O.current?.focus(), O.current = null), () => {
|
|
2651
|
+
document.body.style.overflow = "";
|
|
2652
|
+
};
|
|
2653
|
+
}, [T]);
|
|
2654
|
+
let k = i(() => {
|
|
2655
|
+
let e = !S;
|
|
2656
|
+
c === void 0 && x(e), d?.(e);
|
|
2657
|
+
}, [
|
|
2658
|
+
S,
|
|
2659
|
+
c,
|
|
2660
|
+
d
|
|
2661
|
+
]), A = i(() => {
|
|
2662
|
+
g === void 0 && w(!1), _?.(!1);
|
|
2663
|
+
}, [g, _]), j = i((e) => {
|
|
2664
|
+
e.key === "Escape" && A();
|
|
2665
|
+
}, [A]);
|
|
2666
|
+
return /* @__PURE__ */ p("aside", {
|
|
2667
|
+
ref: y,
|
|
2668
|
+
className: [
|
|
2669
|
+
H.sidebar,
|
|
2670
|
+
S ? H.collapsed : "",
|
|
2671
|
+
T ? H.mobileOpen : "",
|
|
2672
|
+
v ?? ""
|
|
2673
|
+
].filter(Boolean).join(" "),
|
|
2674
|
+
children: [E && T && m(/* @__PURE__ */ f("div", {
|
|
2675
|
+
className: H.backdrop,
|
|
2676
|
+
onClick: A,
|
|
2677
|
+
"aria-hidden": "true"
|
|
2678
|
+
}), document.body), /* @__PURE__ */ p("div", {
|
|
2679
|
+
ref: D,
|
|
2680
|
+
className: H.panel,
|
|
2681
|
+
onKeyDown: j,
|
|
2682
|
+
tabIndex: -1,
|
|
2683
|
+
children: [
|
|
2684
|
+
(t || n) && /* @__PURE__ */ p("div", {
|
|
2685
|
+
className: H.panelTop,
|
|
2686
|
+
children: [/* @__PURE__ */ p("div", {
|
|
2687
|
+
className: H.logoRow,
|
|
2688
|
+
children: [t && /* @__PURE__ */ f("div", {
|
|
2689
|
+
className: H.logoSlot,
|
|
2690
|
+
children: t
|
|
2691
|
+
}), n && /* @__PURE__ */ f("div", {
|
|
2692
|
+
className: H.headerContent,
|
|
2693
|
+
children: n
|
|
2694
|
+
})]
|
|
2695
|
+
}), /* @__PURE__ */ f("button", {
|
|
2696
|
+
type: "button",
|
|
2697
|
+
className: H.mobileCloseButton,
|
|
2698
|
+
onClick: A,
|
|
2699
|
+
"aria-label": "Close sidebar",
|
|
2700
|
+
children: /* @__PURE__ */ f(ln, {})
|
|
2701
|
+
})]
|
|
2702
|
+
}),
|
|
2703
|
+
!t && !n && /* @__PURE__ */ f("div", {
|
|
2704
|
+
className: H.mobileCloseRow,
|
|
2705
|
+
children: /* @__PURE__ */ f("button", {
|
|
2706
|
+
type: "button",
|
|
2707
|
+
className: H.mobileCloseButton,
|
|
2708
|
+
onClick: A,
|
|
2709
|
+
"aria-label": "Close sidebar",
|
|
2710
|
+
children: /* @__PURE__ */ f(ln, {})
|
|
2711
|
+
})
|
|
2712
|
+
}),
|
|
2713
|
+
/* @__PURE__ */ f("nav", {
|
|
2714
|
+
"aria-label": a,
|
|
2715
|
+
className: H.nav,
|
|
2716
|
+
children: /* @__PURE__ */ f("ul", {
|
|
2717
|
+
className: H.navList,
|
|
2718
|
+
tabIndex: 0,
|
|
2719
|
+
children: e.map((e) => /* @__PURE__ */ f("li", {
|
|
2720
|
+
className: H.navItem,
|
|
2721
|
+
children: /* @__PURE__ */ p("a", {
|
|
2722
|
+
href: e.href,
|
|
2723
|
+
onClick: e.onClick,
|
|
2724
|
+
className: [H.navLink, e.isActive ? H.navLinkActive : ""].filter(Boolean).join(" "),
|
|
2725
|
+
"aria-current": e.isActive ? "page" : void 0,
|
|
2726
|
+
"aria-label": e.icon && S ? e.label : void 0,
|
|
2727
|
+
title: e.icon && S ? e.label : void 0,
|
|
2728
|
+
children: [e.icon && /* @__PURE__ */ f("span", {
|
|
2729
|
+
className: H.navLinkIcon,
|
|
2730
|
+
"aria-hidden": "true",
|
|
2731
|
+
children: e.icon
|
|
2732
|
+
}), /* @__PURE__ */ f("span", {
|
|
2733
|
+
className: H.navLinkLabel,
|
|
2734
|
+
children: e.label
|
|
2735
|
+
})]
|
|
2736
|
+
})
|
|
2737
|
+
}, e.key))
|
|
2738
|
+
})
|
|
2739
|
+
}),
|
|
2740
|
+
r && /* @__PURE__ */ f("div", {
|
|
2741
|
+
className: H.footer,
|
|
2742
|
+
children: r
|
|
2743
|
+
}),
|
|
2744
|
+
/* @__PURE__ */ f("button", {
|
|
2745
|
+
type: "button",
|
|
2746
|
+
className: H.collapseButton,
|
|
2747
|
+
onClick: k,
|
|
2748
|
+
"aria-label": S ? "Expand sidebar" : "Collapse sidebar",
|
|
2749
|
+
"aria-expanded": !S,
|
|
2750
|
+
children: f(S ? cn : sn, {})
|
|
2751
|
+
})
|
|
2752
|
+
]
|
|
2753
|
+
})]
|
|
2754
|
+
});
|
|
2755
|
+
});
|
|
2756
|
+
un.displayName = "Sidebar";
|
|
2757
|
+
var U = {
|
|
2758
|
+
srOnly: "_srOnly_1ug4t_1",
|
|
2759
|
+
wrapper: "_wrapper_1ug4t_13",
|
|
2760
|
+
table: "_table_1ug4t_21",
|
|
2761
|
+
caption: "_caption_1ug4t_28",
|
|
2762
|
+
thead: "_thead_1ug4t_43",
|
|
2763
|
+
th: "_th_1ug4t_43",
|
|
2764
|
+
thSortable: "_thSortable_1ug4t_55",
|
|
2765
|
+
thActive: "_thActive_1ug4t_59",
|
|
2766
|
+
sortButton: "_sortButton_1ug4t_63",
|
|
2767
|
+
sortIcon: "_sortIcon_1ug4t_89",
|
|
2768
|
+
tbody: "_tbody_1ug4t_98",
|
|
2769
|
+
tr: "_tr_1ug4t_102",
|
|
2770
|
+
td: "_td_1ug4t_115",
|
|
2771
|
+
emptyState: "_emptyState_1ug4t_123",
|
|
2772
|
+
alignLeft: "_alignLeft_1ug4t_132",
|
|
2773
|
+
alignCenter: "_alignCenter_1ug4t_136",
|
|
2774
|
+
alignRight: "_alignRight_1ug4t_140"
|
|
2775
|
+
}, dn = {
|
|
2776
|
+
left: U.alignLeft,
|
|
2777
|
+
center: U.alignCenter,
|
|
2778
|
+
right: U.alignRight
|
|
2779
|
+
}, fn = () => /* @__PURE__ */ f("svg", {
|
|
2780
|
+
width: "12",
|
|
2781
|
+
height: "12",
|
|
2782
|
+
viewBox: "0 0 12 12",
|
|
2783
|
+
fill: "currentColor",
|
|
2784
|
+
"aria-hidden": "true",
|
|
2785
|
+
children: /* @__PURE__ */ f("path", { d: "M6 2L10 8H2L6 2Z" })
|
|
2786
|
+
}), pn = () => /* @__PURE__ */ f("svg", {
|
|
2787
|
+
width: "12",
|
|
2788
|
+
height: "12",
|
|
2789
|
+
viewBox: "0 0 12 12",
|
|
2790
|
+
fill: "currentColor",
|
|
2791
|
+
"aria-hidden": "true",
|
|
2792
|
+
children: /* @__PURE__ */ f("path", { d: "M6 10L2 4H10L6 10Z" })
|
|
2793
|
+
}), mn = () => /* @__PURE__ */ p("svg", {
|
|
2794
|
+
width: "12",
|
|
2795
|
+
height: "14",
|
|
2796
|
+
viewBox: "0 0 12 14",
|
|
2797
|
+
fill: "currentColor",
|
|
2798
|
+
"aria-hidden": "true",
|
|
2799
|
+
children: [/* @__PURE__ */ f("path", {
|
|
2800
|
+
d: "M6 1L10 5H2L6 1Z",
|
|
2801
|
+
opacity: "0.4"
|
|
2802
|
+
}), /* @__PURE__ */ f("path", {
|
|
2803
|
+
d: "M6 13L2 9H10L6 13Z",
|
|
2804
|
+
opacity: "0.4"
|
|
2805
|
+
})]
|
|
2806
|
+
}), hn = r(function({ caption: e, columns: t, data: n, defaultSortKey: r, defaultSortDirection: i = "asc", sortKey: a, sortDirection: o, onSort: c, rowKey: l, emptyMessage: d = "No data available.", className: m }, h) {
|
|
2807
|
+
let g = s(), [_, v] = u(""), [y, b] = u(r), [x, S] = u(i), C = a ?? y, w = o ?? x, T = (e) => {
|
|
2808
|
+
let n = C === e && w === "asc" ? "desc" : "asc";
|
|
2809
|
+
a === void 0 && (b(e), S(n)), c?.(e, n);
|
|
2810
|
+
let r = t.find((t) => t.key === e);
|
|
2811
|
+
r && v(`Table sorted by ${r.header}, ${n === "asc" ? "ascending" : "descending"}.`);
|
|
2812
|
+
}, E = a !== void 0 || !C ? n : [...n].sort((e, t) => {
|
|
2813
|
+
let n = e[C], r = t[C], i = typeof n == "number" && typeof r == "number" ? n - r : String(n ?? "").localeCompare(String(r ?? ""));
|
|
2814
|
+
return w === "asc" ? i : -i;
|
|
2815
|
+
}), ee = (e) => {
|
|
2816
|
+
if (e.sortable) return C === e.key ? w === "asc" ? "ascending" : "descending" : "none";
|
|
2817
|
+
};
|
|
2818
|
+
return /* @__PURE__ */ p("div", {
|
|
2819
|
+
ref: h,
|
|
2820
|
+
className: [U.wrapper, m ?? ""].filter(Boolean).join(" "),
|
|
2821
|
+
role: "region",
|
|
2822
|
+
"aria-label": e,
|
|
2823
|
+
children: [/* @__PURE__ */ f("div", {
|
|
2824
|
+
id: g,
|
|
2825
|
+
role: "status",
|
|
2826
|
+
"aria-live": "polite",
|
|
2827
|
+
"aria-atomic": "true",
|
|
2828
|
+
className: U.srOnly,
|
|
2829
|
+
children: _
|
|
2830
|
+
}), /* @__PURE__ */ p("table", {
|
|
2831
|
+
className: U.table,
|
|
2832
|
+
children: [
|
|
2833
|
+
/* @__PURE__ */ f("caption", {
|
|
2834
|
+
className: U.caption,
|
|
2835
|
+
children: e
|
|
2836
|
+
}),
|
|
2837
|
+
/* @__PURE__ */ f("thead", {
|
|
2838
|
+
className: U.thead,
|
|
2839
|
+
children: /* @__PURE__ */ f("tr", { children: t.map((e) => /* @__PURE__ */ f("th", {
|
|
2840
|
+
scope: "col",
|
|
2841
|
+
className: [
|
|
2842
|
+
U.th,
|
|
2843
|
+
e.sortable ? U.thSortable : "",
|
|
2844
|
+
C === e.key ? U.thActive : "",
|
|
2845
|
+
dn[e.align ?? "left"]
|
|
2846
|
+
].filter(Boolean).join(" "),
|
|
2847
|
+
"aria-sort": ee(e),
|
|
2848
|
+
children: e.sortable ? /* @__PURE__ */ p("button", {
|
|
2849
|
+
type: "button",
|
|
2850
|
+
className: U.sortButton,
|
|
2851
|
+
onClick: () => T(e.key),
|
|
2852
|
+
children: [e.header, /* @__PURE__ */ f("span", {
|
|
2853
|
+
className: U.sortIcon,
|
|
2854
|
+
children: C === e.key ? f(w === "asc" ? fn : pn, {}) : /* @__PURE__ */ f(mn, {})
|
|
2855
|
+
})]
|
|
2856
|
+
}) : e.header
|
|
2857
|
+
}, e.key)) })
|
|
2858
|
+
}),
|
|
2859
|
+
/* @__PURE__ */ f("tbody", {
|
|
2860
|
+
className: U.tbody,
|
|
2861
|
+
children: E.length === 0 ? /* @__PURE__ */ f("tr", { children: /* @__PURE__ */ f("td", {
|
|
2862
|
+
className: [U.td, U.emptyState].join(" "),
|
|
2863
|
+
colSpan: t.length,
|
|
2864
|
+
children: d
|
|
2865
|
+
}) }) : E.map((e, n) => /* @__PURE__ */ f("tr", {
|
|
2866
|
+
className: U.tr,
|
|
2867
|
+
children: t.map((t) => /* @__PURE__ */ f("td", {
|
|
2868
|
+
className: [U.td, dn[t.align ?? "left"]].filter(Boolean).join(" "),
|
|
2869
|
+
children: t.render ? t.render(e[t.key], e) : String(e[t.key] ?? "")
|
|
2870
|
+
}, t.key))
|
|
2871
|
+
}, l ? String(e[l]) : n))
|
|
2872
|
+
})
|
|
2873
|
+
]
|
|
2874
|
+
})]
|
|
2875
|
+
});
|
|
2876
|
+
});
|
|
2877
|
+
hn.displayName = "DataTable";
|
|
2878
|
+
var W = {
|
|
2879
|
+
wrapper: "_wrapper_1ke2z_1",
|
|
2880
|
+
svg: "_svg_1ke2z_6",
|
|
2881
|
+
bar: "_bar_1ke2z_12",
|
|
2882
|
+
axisLabel: "_axisLabel_1ke2z_20",
|
|
2883
|
+
legend: "_legend_1ke2z_26",
|
|
2884
|
+
legendItem: "_legendItem_1ke2z_37",
|
|
2885
|
+
legendSwatch: "_legendSwatch_1ke2z_46",
|
|
2886
|
+
empty: "_empty_1ke2z_53"
|
|
2887
|
+
}, gn = 480, _n = 280, G = {
|
|
2888
|
+
top: 20,
|
|
2889
|
+
right: 20,
|
|
2890
|
+
bottom: 56,
|
|
2891
|
+
left: 48
|
|
2892
|
+
}, vn = gn - G.left - G.right, yn = _n - G.top - G.bottom, bn = 4, xn = 2;
|
|
2893
|
+
function Sn(e) {
|
|
2894
|
+
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Math.round(e));
|
|
2895
|
+
}
|
|
2896
|
+
function Cn(e, t) {
|
|
2897
|
+
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
2898
|
+
}
|
|
2899
|
+
var wn = r(({ title: e, series: t, className: n }, r) => {
|
|
2900
|
+
let i = s();
|
|
2901
|
+
if (t.length === 0 || t.every((e) => e.data.length === 0)) return /* @__PURE__ */ p("div", {
|
|
2902
|
+
className: [W.empty, n ?? ""].filter(Boolean).join(" "),
|
|
2903
|
+
children: [e, " — no data"]
|
|
2904
|
+
});
|
|
2905
|
+
let a = t[0].data.map((e) => e.label), o = a.length, c = t.length, l = Math.max(...t.flatMap((e) => e.data.map((e) => e.value)), 0), u = vn / o, d = Math.min(Math.max((u * .8 - xn * (c - 1)) / c, 4), c === 1 ? 60 : 40);
|
|
2906
|
+
return /* @__PURE__ */ p("div", {
|
|
2907
|
+
ref: r,
|
|
2908
|
+
className: [W.wrapper, n ?? ""].filter(Boolean).join(" "),
|
|
2909
|
+
children: [/* @__PURE__ */ p("svg", {
|
|
2910
|
+
role: "img",
|
|
2911
|
+
"aria-labelledby": i,
|
|
2912
|
+
viewBox: `0 0 ${gn} ${_n}`,
|
|
2913
|
+
className: W.svg,
|
|
2914
|
+
children: [
|
|
2915
|
+
/* @__PURE__ */ f("title", {
|
|
2916
|
+
id: i,
|
|
2917
|
+
children: e
|
|
2918
|
+
}),
|
|
2919
|
+
Array.from({ length: bn + 1 }, (e, t) => {
|
|
2920
|
+
let n = t / bn, r = G.top + yn - n * yn, i = l * n;
|
|
2921
|
+
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
2922
|
+
x1: G.left,
|
|
2923
|
+
y1: r,
|
|
2924
|
+
x2: gn - G.right,
|
|
2925
|
+
y2: r,
|
|
2926
|
+
stroke: "var(--ds-chart-grid)",
|
|
2927
|
+
strokeWidth: "1"
|
|
2928
|
+
}), /* @__PURE__ */ f("text", {
|
|
2929
|
+
x: G.left - 6,
|
|
2930
|
+
y: r,
|
|
2931
|
+
textAnchor: "end",
|
|
2932
|
+
dominantBaseline: "middle",
|
|
2933
|
+
className: W.axisLabel,
|
|
2934
|
+
children: Sn(i)
|
|
2935
|
+
})] }, t);
|
|
2936
|
+
}),
|
|
2937
|
+
a.map((e, n) => {
|
|
2938
|
+
let r = d * c + xn * (c - 1), i = G.left + n * u, a = i + (u - r) / 2, o = i + u / 2;
|
|
2939
|
+
return /* @__PURE__ */ p("g", { children: [t.map((t, r) => {
|
|
2940
|
+
let i = t.data[n];
|
|
2941
|
+
if (!i) return null;
|
|
2942
|
+
let o = l > 0 ? i.value / l * yn : 0;
|
|
2943
|
+
return /* @__PURE__ */ f("rect", {
|
|
2944
|
+
x: a + r * (d + xn),
|
|
2945
|
+
y: G.top + yn - o,
|
|
2946
|
+
width: d,
|
|
2947
|
+
height: o,
|
|
2948
|
+
fill: Cn(t, r),
|
|
2949
|
+
rx: "3",
|
|
2950
|
+
className: W.bar,
|
|
2951
|
+
children: /* @__PURE__ */ f("title", { children: `${t.label} — ${e}: ${Sn(i.value)}` })
|
|
2952
|
+
}, t.id);
|
|
2953
|
+
}), /* @__PURE__ */ f("text", {
|
|
2954
|
+
x: o,
|
|
2955
|
+
y: _n - G.bottom + 16,
|
|
2956
|
+
textAnchor: "middle",
|
|
2957
|
+
className: W.axisLabel,
|
|
2958
|
+
children: e
|
|
2959
|
+
})] }, e);
|
|
2960
|
+
}),
|
|
2961
|
+
/* @__PURE__ */ f("line", {
|
|
2962
|
+
x1: G.left,
|
|
2963
|
+
y1: G.top + yn,
|
|
2964
|
+
x2: gn - G.right,
|
|
2965
|
+
y2: G.top + yn,
|
|
2966
|
+
stroke: "var(--ds-chart-axis)",
|
|
2967
|
+
strokeWidth: "1"
|
|
2968
|
+
})
|
|
2969
|
+
]
|
|
2970
|
+
}), c > 1 && /* @__PURE__ */ f("ul", {
|
|
2971
|
+
className: W.legend,
|
|
2972
|
+
"aria-label": "Chart legend",
|
|
2973
|
+
children: t.map((e, t) => /* @__PURE__ */ p("li", {
|
|
2974
|
+
className: W.legendItem,
|
|
2975
|
+
children: [/* @__PURE__ */ f("span", {
|
|
2976
|
+
className: W.legendSwatch,
|
|
2977
|
+
style: { background: Cn(e, t) },
|
|
2978
|
+
"aria-hidden": "true"
|
|
2979
|
+
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
2980
|
+
}, e.id))
|
|
2981
|
+
})]
|
|
2982
|
+
});
|
|
2983
|
+
});
|
|
2984
|
+
wn.displayName = "BarChart";
|
|
2985
|
+
var K = {
|
|
2986
|
+
root: "_root_18xxx_1",
|
|
2987
|
+
svg: "_svg_18xxx_8",
|
|
2988
|
+
centerLabel: "_centerLabel_18xxx_15",
|
|
2989
|
+
centerSubLabel: "_centerSubLabel_18xxx_22",
|
|
2990
|
+
legend: "_legend_18xxx_28",
|
|
2991
|
+
legendItem: "_legendItem_18xxx_39",
|
|
2992
|
+
legendSwatch: "_legendSwatch_18xxx_46",
|
|
2993
|
+
legendLabel: "_legendLabel_18xxx_53",
|
|
2994
|
+
legendValue: "_legendValue_18xxx_61",
|
|
2995
|
+
empty: "_empty_18xxx_67"
|
|
2996
|
+
}, Tn = [
|
|
2997
|
+
"var(--ds-chart-1)",
|
|
2998
|
+
"var(--ds-chart-2)",
|
|
2999
|
+
"var(--ds-chart-3)",
|
|
3000
|
+
"var(--ds-chart-4)",
|
|
3001
|
+
"var(--ds-chart-5)",
|
|
3002
|
+
"var(--ds-chart-6)"
|
|
3003
|
+
], En = 100, Dn = 100, On = 72, kn = 28, An = 2 * Math.PI * On, jn = r(({ title: e, segments: t, centerLabel: n, centerSubLabel: r, className: i }, a) => {
|
|
3004
|
+
let o = s(), c = t.reduce((e, t) => e + t.value, 0);
|
|
3005
|
+
if (t.length === 0 || c === 0) return /* @__PURE__ */ p("div", {
|
|
3006
|
+
className: [K.empty, i ?? ""].filter(Boolean).join(" "),
|
|
3007
|
+
children: [e, " — no data"]
|
|
3008
|
+
});
|
|
3009
|
+
let l = 0;
|
|
3010
|
+
return /* @__PURE__ */ p("div", {
|
|
3011
|
+
className: [K.root, i ?? ""].filter(Boolean).join(" "),
|
|
3012
|
+
children: [/* @__PURE__ */ p("svg", {
|
|
3013
|
+
ref: a,
|
|
3014
|
+
role: "img",
|
|
3015
|
+
"aria-labelledby": o,
|
|
3016
|
+
viewBox: "0 0 200 200",
|
|
3017
|
+
className: K.svg,
|
|
3018
|
+
children: [
|
|
3019
|
+
/* @__PURE__ */ f("title", {
|
|
3020
|
+
id: o,
|
|
3021
|
+
children: e
|
|
3022
|
+
}),
|
|
3023
|
+
/* @__PURE__ */ f("circle", {
|
|
3024
|
+
cx: En,
|
|
3025
|
+
cy: Dn,
|
|
3026
|
+
r: On,
|
|
3027
|
+
fill: "none",
|
|
3028
|
+
stroke: "var(--ds-chart-grid)",
|
|
3029
|
+
strokeWidth: kn
|
|
3030
|
+
}),
|
|
3031
|
+
t.map((e, t) => {
|
|
3032
|
+
let n = e.value / c * An, r = -l;
|
|
3033
|
+
return l += n, /* @__PURE__ */ f("circle", {
|
|
3034
|
+
cx: En,
|
|
3035
|
+
cy: Dn,
|
|
3036
|
+
r: On,
|
|
3037
|
+
fill: "none",
|
|
3038
|
+
stroke: e.color ?? Tn[t % Tn.length],
|
|
3039
|
+
strokeWidth: kn,
|
|
3040
|
+
strokeDasharray: `${n} ${An - n}`,
|
|
3041
|
+
strokeDashoffset: r,
|
|
3042
|
+
transform: `rotate(-90 ${En} ${Dn})`,
|
|
3043
|
+
children: /* @__PURE__ */ f("title", { children: `${e.label}: ${e.value} (${Math.round(e.value / c * 100)}%)` })
|
|
3044
|
+
}, e.label);
|
|
3045
|
+
}),
|
|
3046
|
+
n && /* @__PURE__ */ f("text", {
|
|
3047
|
+
x: En,
|
|
3048
|
+
y: Dn - (r ? 8 : 0),
|
|
3049
|
+
textAnchor: "middle",
|
|
3050
|
+
dominantBaseline: "middle",
|
|
3051
|
+
className: K.centerLabel,
|
|
3052
|
+
children: n
|
|
3053
|
+
}),
|
|
3054
|
+
r && /* @__PURE__ */ f("text", {
|
|
3055
|
+
x: En,
|
|
3056
|
+
y: Dn + 16,
|
|
3057
|
+
textAnchor: "middle",
|
|
3058
|
+
dominantBaseline: "middle",
|
|
3059
|
+
className: K.centerSubLabel,
|
|
3060
|
+
children: r
|
|
3061
|
+
})
|
|
3062
|
+
]
|
|
3063
|
+
}), /* @__PURE__ */ f("ul", {
|
|
3064
|
+
className: K.legend,
|
|
3065
|
+
"aria-label": `${e} legend`,
|
|
3066
|
+
children: t.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3067
|
+
className: K.legendItem,
|
|
3068
|
+
children: [
|
|
3069
|
+
/* @__PURE__ */ f("span", {
|
|
3070
|
+
className: K.legendSwatch,
|
|
3071
|
+
style: { background: e.color ?? Tn[t % Tn.length] },
|
|
3072
|
+
"aria-hidden": "true"
|
|
3073
|
+
}),
|
|
3074
|
+
/* @__PURE__ */ f("span", {
|
|
3075
|
+
className: K.legendLabel,
|
|
3076
|
+
children: e.label
|
|
3077
|
+
}),
|
|
3078
|
+
/* @__PURE__ */ p("span", {
|
|
3079
|
+
className: K.legendValue,
|
|
3080
|
+
children: [Math.round(e.value / c * 100), "%"]
|
|
3081
|
+
})
|
|
3082
|
+
]
|
|
3083
|
+
}, e.label))
|
|
3084
|
+
})]
|
|
3085
|
+
});
|
|
3086
|
+
});
|
|
3087
|
+
jn.displayName = "DonutChart";
|
|
3088
|
+
var q = {
|
|
3089
|
+
wrapper: "_wrapper_h55fh_1",
|
|
3090
|
+
svg: "_svg_h55fh_6",
|
|
3091
|
+
axisLabel: "_axisLabel_h55fh_12",
|
|
3092
|
+
legend: "_legend_h55fh_18",
|
|
3093
|
+
legendItem: "_legendItem_h55fh_29",
|
|
3094
|
+
legendSwatch: "_legendSwatch_h55fh_38",
|
|
3095
|
+
empty: "_empty_h55fh_45"
|
|
3096
|
+
}, Mn = 480, Nn = 280, J = {
|
|
3097
|
+
top: 20,
|
|
3098
|
+
right: 20,
|
|
3099
|
+
bottom: 56,
|
|
3100
|
+
left: 48
|
|
3101
|
+
}, Pn = Mn - J.left - J.right, Y = Nn - J.top - J.bottom, Fn = 4;
|
|
3102
|
+
function In(e) {
|
|
3103
|
+
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Math.round(e));
|
|
3104
|
+
}
|
|
3105
|
+
function Ln(e, t) {
|
|
3106
|
+
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
3107
|
+
}
|
|
3108
|
+
var Rn = r(({ title: e, series: t, showArea: n = !1, className: r }, i) => {
|
|
3109
|
+
let a = s();
|
|
3110
|
+
if (t.length === 0 || t.every((e) => e.data.length === 0)) return /* @__PURE__ */ p("div", {
|
|
3111
|
+
className: [q.empty, r ?? ""].filter(Boolean).join(" "),
|
|
3112
|
+
children: [e, " — no data"]
|
|
3113
|
+
});
|
|
3114
|
+
let o = t.flatMap((e) => e.data.map((e) => e.value)), c = Math.max(...o, 0), l = t[0].data.map((e) => e.label), u = l.length, d = (e) => u === 1 ? J.left + Pn / 2 : J.left + e / (u - 1) * Pn, m = (e) => J.top + Y - (c > 0 ? e / c * Y : 0);
|
|
3115
|
+
return /* @__PURE__ */ p("div", {
|
|
3116
|
+
ref: i,
|
|
3117
|
+
className: [q.wrapper, r ?? ""].filter(Boolean).join(" "),
|
|
3118
|
+
children: [/* @__PURE__ */ p("svg", {
|
|
3119
|
+
role: "img",
|
|
3120
|
+
"aria-labelledby": a,
|
|
3121
|
+
viewBox: `0 0 ${Mn} ${Nn}`,
|
|
3122
|
+
className: q.svg,
|
|
3123
|
+
children: [
|
|
3124
|
+
/* @__PURE__ */ f("title", {
|
|
3125
|
+
id: a,
|
|
3126
|
+
children: e
|
|
3127
|
+
}),
|
|
3128
|
+
Array.from({ length: Fn + 1 }, (e, t) => {
|
|
3129
|
+
let n = t / Fn, r = J.top + Y - n * Y, i = c * n;
|
|
3130
|
+
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
3131
|
+
x1: J.left,
|
|
3132
|
+
y1: r,
|
|
3133
|
+
x2: Mn - J.right,
|
|
3134
|
+
y2: r,
|
|
3135
|
+
stroke: "var(--ds-chart-grid)",
|
|
3136
|
+
strokeWidth: "1"
|
|
3137
|
+
}), /* @__PURE__ */ f("text", {
|
|
3138
|
+
x: J.left - 6,
|
|
3139
|
+
y: r,
|
|
3140
|
+
textAnchor: "end",
|
|
3141
|
+
dominantBaseline: "middle",
|
|
3142
|
+
className: q.axisLabel,
|
|
3143
|
+
children: In(i)
|
|
3144
|
+
})] }, t);
|
|
3145
|
+
}),
|
|
3146
|
+
t.map((e, t) => {
|
|
3147
|
+
let r = Ln(e, t), i = e.showArea ?? n, a = e.data.map((e, t) => `${d(t)},${m(e.value)}`).join(" "), o = `${d(0)},${J.top + Y} ` + a + ` ${d(e.data.length - 1)},${J.top + Y}`;
|
|
3148
|
+
return /* @__PURE__ */ p("g", { children: [
|
|
3149
|
+
i && /* @__PURE__ */ f("polygon", {
|
|
3150
|
+
points: o,
|
|
3151
|
+
fill: r,
|
|
3152
|
+
fillOpacity: "0.12"
|
|
3153
|
+
}),
|
|
3154
|
+
/* @__PURE__ */ f("polyline", {
|
|
3155
|
+
points: a,
|
|
3156
|
+
fill: "none",
|
|
3157
|
+
stroke: r,
|
|
3158
|
+
strokeWidth: "2",
|
|
3159
|
+
strokeLinejoin: "round",
|
|
3160
|
+
strokeLinecap: "round"
|
|
3161
|
+
}),
|
|
3162
|
+
e.data.map((t, n) => /* @__PURE__ */ f("circle", {
|
|
3163
|
+
cx: d(n),
|
|
3164
|
+
cy: m(t.value),
|
|
3165
|
+
r: "4",
|
|
3166
|
+
fill: r,
|
|
3167
|
+
children: /* @__PURE__ */ f("title", { children: `${e.label} — ${t.label}: ${t.value}` })
|
|
3168
|
+
}, t.label))
|
|
3169
|
+
] }, e.id);
|
|
3170
|
+
}),
|
|
3171
|
+
l.map((e, t) => /* @__PURE__ */ f("text", {
|
|
3172
|
+
x: d(t),
|
|
3173
|
+
y: Nn - J.bottom + 16,
|
|
3174
|
+
textAnchor: "middle",
|
|
3175
|
+
className: q.axisLabel,
|
|
3176
|
+
children: e
|
|
3177
|
+
}, e)),
|
|
3178
|
+
/* @__PURE__ */ f("line", {
|
|
3179
|
+
x1: J.left,
|
|
3180
|
+
y1: J.top + Y,
|
|
3181
|
+
x2: Mn - J.right,
|
|
3182
|
+
y2: J.top + Y,
|
|
3183
|
+
stroke: "var(--ds-chart-axis)",
|
|
3184
|
+
strokeWidth: "1"
|
|
3185
|
+
})
|
|
3186
|
+
]
|
|
3187
|
+
}), t.length > 1 && /* @__PURE__ */ f("ul", {
|
|
3188
|
+
className: q.legend,
|
|
3189
|
+
"aria-label": "Chart legend",
|
|
3190
|
+
children: t.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3191
|
+
className: q.legendItem,
|
|
3192
|
+
children: [/* @__PURE__ */ f("span", {
|
|
3193
|
+
className: q.legendSwatch,
|
|
3194
|
+
style: { background: Ln(e, t) },
|
|
3195
|
+
"aria-hidden": "true"
|
|
3196
|
+
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
3197
|
+
}, e.id))
|
|
3198
|
+
})]
|
|
3199
|
+
});
|
|
3200
|
+
});
|
|
3201
|
+
Rn.displayName = "LineChart";
|
|
3202
|
+
var X = {
|
|
3203
|
+
wrapper: "_wrapper_kmbah_1",
|
|
3204
|
+
svg: "_svg_kmbah_6",
|
|
3205
|
+
point: "_point_kmbah_12",
|
|
3206
|
+
axisLabel: "_axisLabel_kmbah_21",
|
|
3207
|
+
axisTitle: "_axisTitle_kmbah_27",
|
|
3208
|
+
legend: "_legend_kmbah_34",
|
|
3209
|
+
legendItem: "_legendItem_kmbah_45",
|
|
3210
|
+
legendSwatch: "_legendSwatch_kmbah_54",
|
|
3211
|
+
empty: "_empty_kmbah_61"
|
|
3212
|
+
}, zn = 480, Bn = 320, Z = {
|
|
3213
|
+
top: 20,
|
|
3214
|
+
right: 20,
|
|
3215
|
+
bottom: 64,
|
|
3216
|
+
left: 56
|
|
3217
|
+
}, Vn = zn - Z.left - Z.right, Q = Bn - Z.top - Z.bottom, Hn = 4, Un = .1;
|
|
3218
|
+
function Wn(e) {
|
|
3219
|
+
return Math.abs(e) >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Number.isInteger(e) ? e : e.toFixed(1));
|
|
3220
|
+
}
|
|
3221
|
+
function Gn(e, t) {
|
|
3222
|
+
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
3223
|
+
}
|
|
3224
|
+
var Kn = r(({ title: e, series: t, xLabel: n, yLabel: r, className: i }, a) => {
|
|
3225
|
+
let o = s();
|
|
3226
|
+
if (t.length === 0 || t.every((e) => e.data.length === 0)) return /* @__PURE__ */ p("div", {
|
|
3227
|
+
className: [X.empty, i ?? ""].filter(Boolean).join(" "),
|
|
3228
|
+
children: [e, " — no data"]
|
|
3229
|
+
});
|
|
3230
|
+
let c = t.flatMap((e) => e.data.map((e) => e.x)), l = t.flatMap((e) => e.data.map((e) => e.y)), u = Math.min(...c), d = Math.max(...c), m = Math.min(...l), h = Math.max(...l), g = d - u || 1, _ = h - m || 1, v = u - g * Un, y = d + g * Un, b = m - _ * Un, x = h + _ * Un, S = (e) => Z.left + (e - v) / (y - v) * Vn, C = (e) => Z.top + Q - (e - b) / (x - b) * Q;
|
|
3231
|
+
return /* @__PURE__ */ p("div", {
|
|
3232
|
+
ref: a,
|
|
3233
|
+
className: [X.wrapper, i ?? ""].filter(Boolean).join(" "),
|
|
3234
|
+
children: [/* @__PURE__ */ p("svg", {
|
|
3235
|
+
role: "img",
|
|
3236
|
+
"aria-labelledby": o,
|
|
3237
|
+
viewBox: `0 0 ${zn} ${Bn}`,
|
|
3238
|
+
className: X.svg,
|
|
3239
|
+
children: [
|
|
3240
|
+
/* @__PURE__ */ f("title", {
|
|
3241
|
+
id: o,
|
|
3242
|
+
children: e
|
|
3243
|
+
}),
|
|
3244
|
+
Array.from({ length: Hn + 1 }, (e, t) => {
|
|
3245
|
+
let n = t / Hn, r = Z.top + Q - n * Q, i = b + (x - b) * n;
|
|
3246
|
+
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
3247
|
+
x1: Z.left,
|
|
3248
|
+
y1: r,
|
|
3249
|
+
x2: zn - Z.right,
|
|
3250
|
+
y2: r,
|
|
3251
|
+
stroke: "var(--ds-chart-grid)",
|
|
3252
|
+
strokeWidth: "1"
|
|
3253
|
+
}), /* @__PURE__ */ f("text", {
|
|
3254
|
+
x: Z.left - 6,
|
|
3255
|
+
y: r,
|
|
3256
|
+
textAnchor: "end",
|
|
3257
|
+
dominantBaseline: "middle",
|
|
3258
|
+
className: X.axisLabel,
|
|
3259
|
+
children: Wn(i)
|
|
3260
|
+
})] }, `gy-${t}`);
|
|
3261
|
+
}),
|
|
3262
|
+
Array.from({ length: Hn + 1 }, (e, t) => {
|
|
3263
|
+
let n = t / Hn, r = Z.left + n * Vn, i = v + (y - v) * n;
|
|
3264
|
+
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
3265
|
+
x1: r,
|
|
3266
|
+
y1: Z.top,
|
|
3267
|
+
x2: r,
|
|
3268
|
+
y2: Z.top + Q,
|
|
3269
|
+
stroke: "var(--ds-chart-grid)",
|
|
3270
|
+
strokeWidth: "1"
|
|
3271
|
+
}), /* @__PURE__ */ f("text", {
|
|
3272
|
+
x: r,
|
|
3273
|
+
y: Z.top + Q + 16,
|
|
3274
|
+
textAnchor: "middle",
|
|
3275
|
+
className: X.axisLabel,
|
|
3276
|
+
children: Wn(i)
|
|
3277
|
+
})] }, `gx-${t}`);
|
|
3278
|
+
}),
|
|
3279
|
+
t.map((e, t) => {
|
|
3280
|
+
let n = Gn(e, t);
|
|
3281
|
+
return /* @__PURE__ */ f("g", { children: e.data.map((t, r) => /* @__PURE__ */ f("circle", {
|
|
3282
|
+
cx: S(t.x),
|
|
3283
|
+
cy: C(t.y),
|
|
3284
|
+
r: "5",
|
|
3285
|
+
fill: n,
|
|
3286
|
+
fillOpacity: "0.7",
|
|
3287
|
+
stroke: n,
|
|
3288
|
+
strokeWidth: "1",
|
|
3289
|
+
className: X.point,
|
|
3290
|
+
children: /* @__PURE__ */ f("title", { children: t.label ? `${e.label} — ${t.label}: (${t.x}, ${t.y})` : `${e.label}: (${t.x}, ${t.y})` })
|
|
3291
|
+
}, r)) }, e.id);
|
|
3292
|
+
}),
|
|
3293
|
+
/* @__PURE__ */ f("line", {
|
|
3294
|
+
x1: Z.left,
|
|
3295
|
+
y1: Z.top + Q,
|
|
3296
|
+
x2: zn - Z.right,
|
|
3297
|
+
y2: Z.top + Q,
|
|
3298
|
+
stroke: "var(--ds-chart-axis)",
|
|
3299
|
+
strokeWidth: "1"
|
|
3300
|
+
}),
|
|
3301
|
+
/* @__PURE__ */ f("line", {
|
|
3302
|
+
x1: Z.left,
|
|
3303
|
+
y1: Z.top,
|
|
3304
|
+
x2: Z.left,
|
|
3305
|
+
y2: Z.top + Q,
|
|
3306
|
+
stroke: "var(--ds-chart-axis)",
|
|
3307
|
+
strokeWidth: "1"
|
|
3308
|
+
}),
|
|
3309
|
+
n && /* @__PURE__ */ f("text", {
|
|
3310
|
+
x: Z.left + Vn / 2,
|
|
3311
|
+
y: Bn - 8,
|
|
3312
|
+
textAnchor: "middle",
|
|
3313
|
+
className: X.axisTitle,
|
|
3314
|
+
children: n
|
|
3315
|
+
}),
|
|
3316
|
+
r && /* @__PURE__ */ f("text", {
|
|
3317
|
+
x: 12,
|
|
3318
|
+
y: Z.top + Q / 2,
|
|
3319
|
+
textAnchor: "middle",
|
|
3320
|
+
transform: `rotate(-90 12 ${Z.top + Q / 2})`,
|
|
3321
|
+
className: X.axisTitle,
|
|
3322
|
+
children: r
|
|
3323
|
+
})
|
|
3324
|
+
]
|
|
3325
|
+
}), t.length > 1 && /* @__PURE__ */ f("ul", {
|
|
3326
|
+
className: X.legend,
|
|
3327
|
+
"aria-label": "Chart legend",
|
|
3328
|
+
children: t.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3329
|
+
className: X.legendItem,
|
|
3330
|
+
children: [/* @__PURE__ */ f("span", {
|
|
3331
|
+
className: X.legendSwatch,
|
|
3332
|
+
style: { background: Gn(e, t) },
|
|
3333
|
+
"aria-hidden": "true"
|
|
3334
|
+
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
3335
|
+
}, e.id))
|
|
3336
|
+
})]
|
|
3337
|
+
});
|
|
3338
|
+
});
|
|
3339
|
+
Kn.displayName = "ScatterPlot";
|
|
3340
|
+
var $ = {
|
|
3341
|
+
wrapper: "_wrapper_1k1rg_1",
|
|
3342
|
+
svg: "_svg_1k1rg_6",
|
|
3343
|
+
ring: "_ring_1k1rg_12",
|
|
3344
|
+
axisLine: "_axisLine_1k1rg_18",
|
|
3345
|
+
axisLabel: "_axisLabel_1k1rg_23",
|
|
3346
|
+
seriesPolygon: "_seriesPolygon_1k1rg_29",
|
|
3347
|
+
legend: "_legend_1k1rg_37",
|
|
3348
|
+
legendItem: "_legendItem_1k1rg_48",
|
|
3349
|
+
legendSwatch: "_legendSwatch_1k1rg_57",
|
|
3350
|
+
empty: "_empty_1k1rg_64"
|
|
3351
|
+
}, qn = 320, Jn = 320, Yn = qn / 2, Xn = Jn / 2, Zn = 110, Qn = 4;
|
|
3352
|
+
function $n(e, t) {
|
|
3353
|
+
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
3354
|
+
}
|
|
3355
|
+
function er(e, t) {
|
|
3356
|
+
return -Math.PI / 2 + 2 * Math.PI * e / t;
|
|
3357
|
+
}
|
|
3358
|
+
function tr(e, t) {
|
|
3359
|
+
return [Yn + e * Math.cos(t), Xn + e * Math.sin(t)];
|
|
3360
|
+
}
|
|
3361
|
+
function nr(e, t, n) {
|
|
3362
|
+
return e.map((e, r) => {
|
|
3363
|
+
let [i, a] = tr(t > 0 ? e / t * Zn : 0, er(r, n));
|
|
3364
|
+
return `${i},${a}`;
|
|
3365
|
+
}).join(" ");
|
|
3366
|
+
}
|
|
3367
|
+
var rr = r(({ title: e, axes: t, series: n, maxValue: r, className: i }, a) => {
|
|
3368
|
+
let o = s();
|
|
3369
|
+
if (t.length === 0 || n.length === 0) return /* @__PURE__ */ p("div", {
|
|
3370
|
+
className: [$.empty, i ?? ""].filter(Boolean).join(" "),
|
|
3371
|
+
children: [e, " — no data"]
|
|
3372
|
+
});
|
|
3373
|
+
let c = t.length, l = Math.max(...n.flatMap((e) => e.values), 0), u = r ?? l;
|
|
3374
|
+
return /* @__PURE__ */ p("div", {
|
|
3375
|
+
ref: a,
|
|
3376
|
+
className: [$.wrapper, i ?? ""].filter(Boolean).join(" "),
|
|
3377
|
+
children: [/* @__PURE__ */ p("svg", {
|
|
3378
|
+
role: "img",
|
|
3379
|
+
"aria-labelledby": o,
|
|
3380
|
+
viewBox: `0 0 ${qn} ${Jn}`,
|
|
3381
|
+
className: $.svg,
|
|
3382
|
+
children: [
|
|
3383
|
+
/* @__PURE__ */ f("title", {
|
|
3384
|
+
id: o,
|
|
3385
|
+
children: e
|
|
3386
|
+
}),
|
|
3387
|
+
Array.from({ length: Qn }, (e, t) => {
|
|
3388
|
+
let n = (t + 1) / Qn * Zn;
|
|
3389
|
+
return /* @__PURE__ */ f("polygon", {
|
|
3390
|
+
points: Array.from({ length: c }, (e, t) => {
|
|
3391
|
+
let [r, i] = tr(n, er(t, c));
|
|
3392
|
+
return `${r},${i}`;
|
|
3393
|
+
}).join(" "),
|
|
3394
|
+
className: $.ring
|
|
3395
|
+
}, t);
|
|
3396
|
+
}),
|
|
3397
|
+
t.map((e, t) => {
|
|
3398
|
+
let [n, r] = tr(Zn, er(t, c));
|
|
3399
|
+
return /* @__PURE__ */ f("line", {
|
|
3400
|
+
x1: Yn,
|
|
3401
|
+
y1: Xn,
|
|
3402
|
+
x2: n,
|
|
3403
|
+
y2: r,
|
|
3404
|
+
className: $.axisLine
|
|
3405
|
+
}, e);
|
|
3406
|
+
}),
|
|
3407
|
+
n.map((e, t) => {
|
|
3408
|
+
let n = $n(e, t);
|
|
3409
|
+
return /* @__PURE__ */ f("polygon", {
|
|
3410
|
+
points: nr(e.values, u, c),
|
|
3411
|
+
fill: n,
|
|
3412
|
+
fillOpacity: "0.15",
|
|
3413
|
+
stroke: n,
|
|
3414
|
+
strokeWidth: "2",
|
|
3415
|
+
strokeLinejoin: "round",
|
|
3416
|
+
className: $.seriesPolygon
|
|
3417
|
+
}, `${e.id}-fill`);
|
|
3418
|
+
}),
|
|
3419
|
+
t.map((e, t) => {
|
|
3420
|
+
let n = er(t, c), [r, i] = tr(Zn + 20, n), a = "middle";
|
|
3421
|
+
return Math.cos(n) > .1 ? a = "start" : Math.cos(n) < -.1 && (a = "end"), /* @__PURE__ */ f("text", {
|
|
3422
|
+
x: r,
|
|
3423
|
+
y: i,
|
|
3424
|
+
textAnchor: a,
|
|
3425
|
+
dominantBaseline: "middle",
|
|
3426
|
+
className: $.axisLabel,
|
|
3427
|
+
children: e
|
|
3428
|
+
}, e);
|
|
3429
|
+
})
|
|
3430
|
+
]
|
|
3431
|
+
}), /* @__PURE__ */ f("ul", {
|
|
3432
|
+
className: $.legend,
|
|
3433
|
+
"aria-label": "Chart legend",
|
|
3434
|
+
children: n.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3435
|
+
className: $.legendItem,
|
|
3436
|
+
children: [/* @__PURE__ */ f("span", {
|
|
3437
|
+
className: $.legendSwatch,
|
|
3438
|
+
style: { background: $n(e, t) },
|
|
3439
|
+
"aria-hidden": "true"
|
|
3440
|
+
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
3441
|
+
}, e.id))
|
|
3442
|
+
})]
|
|
3443
|
+
});
|
|
3444
|
+
});
|
|
3445
|
+
rr.displayName = "RadarChart";
|
|
3446
|
+
var ir = {
|
|
3447
|
+
section: "_section_c3tl4_1",
|
|
3448
|
+
surface: "_surface_c3tl4_9",
|
|
3449
|
+
flat: "_flat_c3tl4_15",
|
|
3450
|
+
paddingNone: "_paddingNone_c3tl4_21",
|
|
3451
|
+
paddingSm: "_paddingSm_c3tl4_22",
|
|
3452
|
+
paddingMd: "_paddingMd_c3tl4_23",
|
|
3453
|
+
paddingLg: "_paddingLg_c3tl4_24"
|
|
3454
|
+
}, ar = {
|
|
3455
|
+
0: "0",
|
|
3456
|
+
1: "var(--ds-space-1)",
|
|
3457
|
+
2: "var(--ds-space-2)",
|
|
3458
|
+
3: "var(--ds-space-3)",
|
|
3459
|
+
4: "var(--ds-space-4)",
|
|
3460
|
+
5: "var(--ds-space-5)",
|
|
3461
|
+
6: "var(--ds-space-6)",
|
|
3462
|
+
8: "var(--ds-space-8)",
|
|
3463
|
+
10: "var(--ds-space-10)",
|
|
3464
|
+
12: "var(--ds-space-12)",
|
|
3465
|
+
16: "var(--ds-space-16)"
|
|
3466
|
+
}, or = {
|
|
3467
|
+
none: ir.paddingNone,
|
|
3468
|
+
sm: ir.paddingSm,
|
|
3469
|
+
md: ir.paddingMd,
|
|
3470
|
+
lg: ir.paddingLg
|
|
3471
|
+
}, sr = r(({ variant: e = "surface", padding: t = "md", gap: n = 4, className: r, style: i, ...a }, o) => /* @__PURE__ */ f("div", {
|
|
3472
|
+
ref: o,
|
|
3473
|
+
className: [
|
|
3474
|
+
ir.section,
|
|
3475
|
+
ir[e],
|
|
3476
|
+
or[t],
|
|
3477
|
+
r ?? ""
|
|
3478
|
+
].filter(Boolean).join(" "),
|
|
3479
|
+
style: {
|
|
3480
|
+
gap: ar[n],
|
|
3481
|
+
...i
|
|
3482
|
+
},
|
|
3483
|
+
...a
|
|
3484
|
+
}));
|
|
3485
|
+
sr.displayName = "Section";
|
|
3486
|
+
var cr = {
|
|
3487
|
+
pageLayout: "_pageLayout_1d3bu_1",
|
|
3488
|
+
padding: "_padding_1d3bu_8",
|
|
3489
|
+
sm: "_sm_1d3bu_15",
|
|
3490
|
+
md: "_md_1d3bu_16",
|
|
3491
|
+
lg: "_lg_1d3bu_17",
|
|
3492
|
+
xl: "_xl_1d3bu_18",
|
|
3493
|
+
full: "_full_1d3bu_19"
|
|
3494
|
+
}, lr = {
|
|
3495
|
+
0: "0",
|
|
3496
|
+
1: "var(--ds-space-1)",
|
|
3497
|
+
2: "var(--ds-space-2)",
|
|
3498
|
+
3: "var(--ds-space-3)",
|
|
3499
|
+
4: "var(--ds-space-4)",
|
|
3500
|
+
5: "var(--ds-space-5)",
|
|
3501
|
+
6: "var(--ds-space-6)",
|
|
3502
|
+
8: "var(--ds-space-8)",
|
|
3503
|
+
10: "var(--ds-space-10)",
|
|
3504
|
+
12: "var(--ds-space-12)",
|
|
3505
|
+
16: "var(--ds-space-16)"
|
|
3506
|
+
}, ur = {
|
|
3507
|
+
sm: cr.sm,
|
|
3508
|
+
md: cr.md,
|
|
3509
|
+
lg: cr.lg,
|
|
3510
|
+
xl: cr.xl,
|
|
3511
|
+
full: cr.full
|
|
3512
|
+
}, dr = r(({ maxWidth: e = "xl", padding: t = !0, gap: n = 6, className: r, style: i, ...a }, o) => /* @__PURE__ */ f("div", {
|
|
3513
|
+
ref: o,
|
|
3514
|
+
className: [
|
|
3515
|
+
cr.pageLayout,
|
|
3516
|
+
ur[e],
|
|
3517
|
+
t ? cr.padding : "",
|
|
3518
|
+
r ?? ""
|
|
3519
|
+
].filter(Boolean).join(" "),
|
|
3520
|
+
style: {
|
|
3521
|
+
gap: lr[n],
|
|
3522
|
+
...i
|
|
3523
|
+
},
|
|
3524
|
+
...a
|
|
3525
|
+
}));
|
|
3526
|
+
dr.displayName = "PageLayout";
|
|
3527
|
+
var fr = {
|
|
3528
|
+
shell: "_shell_5ehfr_1",
|
|
3529
|
+
sidebarOnly: "_sidebarOnly_5ehfr_9",
|
|
3530
|
+
mainArea: "_mainArea_5ehfr_13",
|
|
3531
|
+
navbarOnly: "_navbarOnly_5ehfr_19",
|
|
3532
|
+
navbarSlot: "_navbarSlot_5ehfr_23",
|
|
3533
|
+
both: "_both_5ehfr_33",
|
|
3534
|
+
sidebarSlot: "_sidebarSlot_5ehfr_38"
|
|
3535
|
+
}, pr = {
|
|
3536
|
+
"sidebar-only": fr.sidebarOnly,
|
|
3537
|
+
"navbar-only": fr.navbarOnly,
|
|
3538
|
+
both: fr.both
|
|
3539
|
+
}, mr = r(({ variant: e, sidebar: t, navbar: n, children: r, className: i, ...a }, o) => {
|
|
3540
|
+
let s = e ?? (t && n ? "both" : t ? "sidebar-only" : "navbar-only");
|
|
3541
|
+
return /* @__PURE__ */ p("div", {
|
|
3542
|
+
ref: o,
|
|
3543
|
+
className: [
|
|
3544
|
+
fr.shell,
|
|
3545
|
+
pr[s],
|
|
3546
|
+
i ?? ""
|
|
3547
|
+
].filter(Boolean).join(" "),
|
|
3548
|
+
...a,
|
|
3549
|
+
children: [
|
|
3550
|
+
t && /* @__PURE__ */ f("div", {
|
|
3551
|
+
className: fr.sidebarSlot,
|
|
3552
|
+
children: t
|
|
3553
|
+
}),
|
|
3554
|
+
n && /* @__PURE__ */ f("div", {
|
|
3555
|
+
className: fr.navbarSlot,
|
|
3556
|
+
children: n
|
|
3557
|
+
}),
|
|
3558
|
+
/* @__PURE__ */ f("main", {
|
|
3559
|
+
className: fr.mainArea,
|
|
3560
|
+
children: r
|
|
3561
|
+
})
|
|
3562
|
+
]
|
|
3563
|
+
});
|
|
3564
|
+
});
|
|
3565
|
+
mr.displayName = "AppShell";
|
|
3566
|
+
var hr = {
|
|
3567
|
+
layout: "_layout_14fpw_1",
|
|
3568
|
+
brandPanel: "_brandPanel_14fpw_9",
|
|
3569
|
+
brandContent: "_brandContent_14fpw_15",
|
|
3570
|
+
brandLogo: "_brandLogo_14fpw_23",
|
|
3571
|
+
brandTagline: "_brandTagline_14fpw_27",
|
|
3572
|
+
formPanel: "_formPanel_14fpw_38",
|
|
3573
|
+
formContent: "_formContent_14fpw_46",
|
|
3574
|
+
mobileLogo: "_mobileLogo_14fpw_53"
|
|
3575
|
+
}, gr = () => /* @__PURE__ */ p("svg", {
|
|
3576
|
+
width: "36",
|
|
3577
|
+
height: "36",
|
|
3578
|
+
viewBox: "0 0 36 36",
|
|
3579
|
+
fill: "none",
|
|
3580
|
+
"aria-hidden": "true",
|
|
3581
|
+
children: [/* @__PURE__ */ f("rect", {
|
|
3582
|
+
width: "36",
|
|
3583
|
+
height: "36",
|
|
3584
|
+
rx: "8",
|
|
3585
|
+
fill: "var(--ds-color-action-primary)"
|
|
3586
|
+
}), /* @__PURE__ */ f("path", {
|
|
3587
|
+
d: "M10 12h16M10 18h11M10 24h8",
|
|
3588
|
+
stroke: "white",
|
|
3589
|
+
strokeWidth: "2.5",
|
|
3590
|
+
strokeLinecap: "round"
|
|
3591
|
+
})]
|
|
3592
|
+
});
|
|
3593
|
+
function _r({ children: e, branding: t, logo: n, brandingLabel: r = "Product branding" }) {
|
|
3594
|
+
let i = n ?? /* @__PURE__ */ f(gr, {});
|
|
3595
|
+
return /* @__PURE__ */ p("div", {
|
|
3596
|
+
className: hr.layout,
|
|
3597
|
+
children: [/* @__PURE__ */ f("aside", {
|
|
3598
|
+
className: hr.brandPanel,
|
|
3599
|
+
"aria-label": r,
|
|
3600
|
+
"aria-hidden": "true",
|
|
3601
|
+
children: /* @__PURE__ */ f("div", {
|
|
3602
|
+
className: hr.brandContent,
|
|
3603
|
+
children: t ?? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("div", {
|
|
3604
|
+
className: hr.brandLogo,
|
|
3605
|
+
children: i
|
|
3606
|
+
}), /* @__PURE__ */ p("p", {
|
|
3607
|
+
className: hr.brandTagline,
|
|
3608
|
+
children: [
|
|
3609
|
+
"Build better products,",
|
|
3610
|
+
/* @__PURE__ */ f("br", {}),
|
|
3611
|
+
"together."
|
|
3612
|
+
]
|
|
3613
|
+
})] })
|
|
3614
|
+
})
|
|
3615
|
+
}), /* @__PURE__ */ f("main", {
|
|
3616
|
+
className: hr.formPanel,
|
|
3617
|
+
children: /* @__PURE__ */ p("div", {
|
|
3618
|
+
className: hr.formContent,
|
|
3619
|
+
children: [/* @__PURE__ */ f("div", {
|
|
3620
|
+
className: hr.mobileLogo,
|
|
3621
|
+
"aria-hidden": "true",
|
|
3622
|
+
children: i
|
|
3623
|
+
}), e]
|
|
3624
|
+
})
|
|
3625
|
+
})]
|
|
3626
|
+
});
|
|
3627
|
+
}
|
|
3628
|
+
_r.displayName = "AuthLayout";
|
|
3629
|
+
//#endregion
|
|
3630
|
+
export { he as Alert, mr as AppShell, _r as AuthLayout, je as Avatar, _e as Badge, Xt as Banner, wn as BarChart, tn as Breadcrumb, y as Button, Kt as Card, $t as Carousel, C as Checkbox, at as CheckboxField, zt as Container, hn as DataTable, wt as DateField, Oe as DateInput, Te as Divider, jn as DonutChart, gt as EmailField, ie as EmailInput, F as ErrorMessage, Lt as Grid, le as Heading, P as Hint, N as Label, Rn as LineChart, Ke as Modal, Ue as ModalBody, We as ModalFooter, an as Navbar, St as NumberField, De as NumberInput, dr as PageLayout, mt as PasswordField, re as PasswordInput, vt as PhoneField, ae as PhoneInput, Ce as ProgressBar, rr as RadarChart, T as RadioButton, ct as RadioGroup, Kn as ScatterPlot, bt as SearchField, oe as SearchInput, sr as Section, ee as Select, st as SelectField, un as Sidebar, be as Skeleton, g as Spinner, Pt as Stack, Le as Tab, Ie as TabList, Re as TabPanel, Fe as Tabs, de as Text, O as TextArea, ut as TextAreaField, rt as TextField, x as TextInput, kt as ThemeProvider, Ze as ToastProvider, A as Toggle, ft as ToggleField, Ve as Tooltip, At as useTheme, Qe as useToast };
|