@indxsearch/systm 2.19.0 → 2.21.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/CHANGELOG.md +29 -0
- package/dist/components/Chat/Composer.d.ts +4 -1
- package/dist/components/Chat/StreamStatus.d.ts +4 -1
- package/dist/components/Chip/Chip.d.ts +2 -0
- package/dist/components/CodeCopy/CodeCopy.d.ts +10 -0
- package/dist/components/SearchField/SearchField.d.ts +6 -1
- package/dist/components/Skeleton/Skeleton.d.ts +24 -0
- package/dist/components/Sparkline/Sparkline.d.ts +7 -1
- package/dist/components/Spinner/spinners.generated.d.ts +20 -0
- package/dist/components/Stat/Stat.d.ts +37 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +1042 -792
- package/dist/systm.css +1 -1
- package/package.json +9 -8
package/dist/index.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import e, { cloneElement as t, isValidElement as n, useCallback as r, useEffect as i, useId as a, useImperativeHandle as o,
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { Ai_agent as
|
|
4
|
-
import { Range as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
var
|
|
11
|
-
button: "
|
|
12
|
-
micro: "
|
|
13
|
-
default: "
|
|
14
|
-
large: "
|
|
15
|
-
primary: "
|
|
16
|
-
secondary: "
|
|
17
|
-
ghost: "
|
|
18
|
-
},
|
|
1
|
+
import e, { cloneElement as t, isValidElement as n, useCallback as r, useEffect as i, useId as a, useImperativeHandle as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
|
|
2
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
3
|
+
import { Ai_agent as p, ArrowUp as m, Check as h, Chevron_down as g, Chevron_left as _, Chevron_right as v, Copy as y, Dropdown as b, Minus as x, Plus as S, Search as C, Stop as w, Warning as T, X_or_error as E } from "@indxsearch/pixl";
|
|
4
|
+
import { Range as D } from "react-range";
|
|
5
|
+
import * as O from "@radix-ui/react-select";
|
|
6
|
+
import * as k from "@radix-ui/react-popover";
|
|
7
|
+
import * as A from "@radix-ui/react-tooltip";
|
|
8
|
+
import * as j from "@radix-ui/react-dialog";
|
|
9
|
+
import * as M from "@radix-ui/react-navigation-menu";
|
|
10
|
+
var N = {
|
|
11
|
+
button: "_button_18zbf_1",
|
|
12
|
+
micro: "_micro_18zbf_32",
|
|
13
|
+
default: "_default_18zbf_40",
|
|
14
|
+
large: "_large_18zbf_48",
|
|
15
|
+
primary: "_primary_18zbf_57",
|
|
16
|
+
secondary: "_secondary_18zbf_66",
|
|
17
|
+
ghost: "_ghost_18zbf_76"
|
|
18
|
+
}, P = {
|
|
19
19
|
spinner: "_spinner_wspyi_1",
|
|
20
20
|
frame: "_frame_wspyi_8"
|
|
21
|
-
},
|
|
21
|
+
}, ee = {
|
|
22
22
|
accelerate: {
|
|
23
23
|
viewBox: "0 0 7 5",
|
|
24
24
|
delay: 50,
|
|
@@ -64,17 +64,26 @@ var ee = {
|
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
analytics: {
|
|
67
|
-
viewBox: "0 0
|
|
67
|
+
viewBox: "0 0 7 5",
|
|
68
68
|
delay: 250,
|
|
69
69
|
frames: [
|
|
70
70
|
"M0 2H1V5H0V2Z M2 0H3V5H2V0Z M4 3H5V5H4V3Z M6 1H7V5H6V1Z",
|
|
71
|
-
"
|
|
71
|
+
"M1 0H2V5H1V0Z M3 3H4V5H3V3Z M5 1H6V5H5V1Z",
|
|
72
72
|
"M6 2H7V5H6V2Z M0 0H1V5H0V0Z M2 3H3V5H2V3Z M4 1H5V5H4V1Z",
|
|
73
|
-
"M5 2H6V5H5V2Z
|
|
73
|
+
"M5 2H6V5H5V2Z M1 3H2V5H1V3Z M3 1H4V5H3V1Z",
|
|
74
74
|
"M4 2H5V5H4V2Z M6 0H7V5H6V0Z M0 3H1V5H0V3Z M2 1H3V5H2V1Z",
|
|
75
|
-
"M3 2H4V5H3V2Z M5 0H6V5H5V0Z
|
|
75
|
+
"M3 2H4V5H3V2Z M5 0H6V5H5V0Z M1 1H2V5H1V1Z",
|
|
76
76
|
"M2 2H3V5H2V2Z M4 0H5V5H4V0Z M6 3H7V5H6V3Z M0 1H1V5H0V1Z",
|
|
77
|
-
"M1 2H2V5H1V2Z M3 0H4V5H3V0Z M5 3H6V5H5V3Z
|
|
77
|
+
"M1 2H2V5H1V2Z M3 0H4V5H3V0Z M5 3H6V5H5V3Z"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"blinking-cursor": {
|
|
81
|
+
viewBox: "0 0 7 5",
|
|
82
|
+
delay: 350,
|
|
83
|
+
frames: [
|
|
84
|
+
"M2 0H3V1H2V0Z M4 0H5V1H4V0Z M3 1H4V4H3V1Z M2 4H3V5H2V4Z M4 4H5V5H4V4Z",
|
|
85
|
+
"M2 0H3V1H2V0Z M4 0H5V1H4V0Z M3 1H4V4H3V1Z M2 4H3V5H2V4Z M4 4H5V5H4V4Z",
|
|
86
|
+
""
|
|
78
87
|
]
|
|
79
88
|
},
|
|
80
89
|
"circle-open-close": {
|
|
@@ -215,6 +224,29 @@ var ee = {
|
|
|
215
224
|
"M4 2H7V5H1V4H6V3H1V4H0V2H3V0H4V2Z"
|
|
216
225
|
]
|
|
217
226
|
},
|
|
227
|
+
"search-as-you-type": {
|
|
228
|
+
viewBox: "0 0 7 5",
|
|
229
|
+
delay: 350,
|
|
230
|
+
frames: [
|
|
231
|
+
"M0 0H1V1H0V0Z M2 0H3V1H2V0Z M1 1H2V4H1V1Z M0 4H1V5H0V4Z M2 4H3V5H2V4Z",
|
|
232
|
+
"M2 0H3V1H2V0Z M4 0H5V1H4V0Z M3 1H4V4H3V1Z M0 2H1V3H0V2Z M2 4H3V5H2V4Z M4 4H5V5H4V4Z",
|
|
233
|
+
"M4 0H5V1H4V0Z M6 0H7V1H6V0Z M5 1H6V4H5V1Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 4H5V5H4V4Z M6 4H7V5H6V4Z"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
searching: {
|
|
237
|
+
viewBox: "0 0 7 5",
|
|
238
|
+
delay: 250,
|
|
239
|
+
frames: [
|
|
240
|
+
"M2 0H4V1H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M2 3H4V4H2V3Z M5 4H6V5H5V4Z",
|
|
241
|
+
"M2 0H4V1H2V0Z M1 1H3V2H1V1Z M4 1H5V3H4V1Z M1 2H2V3H1V2Z M2 3H4V4H2V3Z M5 4H6V5H5V4Z",
|
|
242
|
+
"M2 0H4V2H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M2 3H4V4H2V3Z M5 4H6V5H5V4Z",
|
|
243
|
+
"M2 0H4V2H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M3 2H4V4H3V2Z M2 3H3V4H2V3Z M5 4H6V5H5V4Z",
|
|
244
|
+
"M2 0H4V4H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M5 4H6V5H5V4Z",
|
|
245
|
+
"M2 0H4V1H2V0Z M1 1H2V3H1V1Z M3 1H5V3H3V1Z M2 2H3V4H2V2Z M3 3H4V4H3V3Z M5 4H6V5H5V4Z",
|
|
246
|
+
"M2 0H4V1H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M2 2H4V4H2V2Z M5 4H6V5H5V4Z",
|
|
247
|
+
"M2 0H4V1H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M2 2H3V4H2V2Z M3 3H4V4H3V3Z M5 4H6V5H5V4Z"
|
|
248
|
+
]
|
|
249
|
+
},
|
|
218
250
|
sliders: {
|
|
219
251
|
viewBox: "0 0 7 5",
|
|
220
252
|
delay: 250,
|
|
@@ -268,7 +300,35 @@ var ee = {
|
|
|
268
300
|
terminal: {
|
|
269
301
|
viewBox: "0 0 7 5",
|
|
270
302
|
delay: 500,
|
|
271
|
-
frames: [
|
|
303
|
+
frames: [
|
|
304
|
+
"M1 2H2V3H1V2Z M1 0H2V1H1V0Z M1 4H2V5H1V4Z M2 3H3V4H2V3Z M2 1H3V2H2V1Z M2 0H3V1H2V0Z M3 0H4V5H3V0Z M4 0H5V3H4V0Z M4 4H5V5H4V4Z M5 0H6V3H5V0Z M5 4H6V5H5V4Z M6 0H7V5H6V0Z M2 4H3V5H2V4Z M0 0H1V5H0V0Z",
|
|
305
|
+
"M0 0H7V1H0V0Z M0 1H1V5H0V1Z M2 1H7V2H2V1Z M1 2H2V3H1V2Z M3 2H7V3H3V2Z M2 3H4V5H2V3Z M6 3H7V5H6V3Z M1 4H2V5H1V4Z M4 4H6V5H4V4Z",
|
|
306
|
+
"M0 0H7V1H0V0Z M0 1H1V5H0V1Z M2 1H7V2H2V1Z M1 2H2V3H1V2Z M3 2H7V5H3V2Z M2 3H3V5H2V3Z M1 4H2V5H1V4Z"
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
typing: {
|
|
310
|
+
viewBox: "0 0 7 5",
|
|
311
|
+
delay: 100,
|
|
312
|
+
frames: [
|
|
313
|
+
"M2 0H3V1H2V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M4 4H5V5H4V4Z",
|
|
314
|
+
"M2 0H3V1H2V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M4 4H5V5H4V4Z",
|
|
315
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M4 4H5V5H4V4Z",
|
|
316
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
317
|
+
"M6 0H7V1H6V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
318
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M0 4H1V5H0V4Z",
|
|
319
|
+
"M4 0H5V1H4V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M0 4H1V5H0V4Z",
|
|
320
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
321
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
322
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
323
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M6 4H7V5H6V4Z",
|
|
324
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
325
|
+
"M0 0H1V1H0V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
326
|
+
"M0 0H1V1H0V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M2 4H3V5H2V4Z",
|
|
327
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
328
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
329
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
|
|
330
|
+
"M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z"
|
|
331
|
+
]
|
|
272
332
|
},
|
|
273
333
|
"wi-fi": {
|
|
274
334
|
viewBox: "0 0 7 5",
|
|
@@ -279,22 +339,22 @@ var ee = {
|
|
|
279
339
|
"M3 4H4V5H3V4Z M5 3H6V4H5V3Z M6 1H7V2H6V1Z M1 3H2V4H1V3Z M0 1H1V2H0V1Z M2 2H5V3H2V2Z M1 0H6V1H1V0Z"
|
|
280
340
|
]
|
|
281
341
|
}
|
|
282
|
-
},
|
|
342
|
+
}, te = Object.keys(ee);
|
|
283
343
|
//#endregion
|
|
284
344
|
//#region src/components/Spinner/Spinner.tsx
|
|
285
|
-
function
|
|
286
|
-
let o =
|
|
287
|
-
return /* @__PURE__ */
|
|
288
|
-
className: `${
|
|
345
|
+
function F({ name: e = te[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
|
|
346
|
+
let o = ee[e], [, , s, c] = o.viewBox.split(" ").map(Number), l = c / s, u = typeof t == "number" ? t * l : `calc(${t} * ${l})`, f = r ?? o.delay, p = o.frames.length, m = p * f;
|
|
347
|
+
return /* @__PURE__ */ d("svg", {
|
|
348
|
+
className: `${P.spinner} ${i}`,
|
|
289
349
|
width: t,
|
|
290
|
-
height:
|
|
350
|
+
height: u,
|
|
291
351
|
viewBox: o.viewBox,
|
|
292
352
|
fill: "none",
|
|
293
353
|
role: "status",
|
|
294
354
|
"aria-label": a,
|
|
295
355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
296
|
-
children: o.frames.map((e, t) => e ? /* @__PURE__ */
|
|
297
|
-
className:
|
|
356
|
+
children: o.frames.map((e, t) => e ? /* @__PURE__ */ d("path", {
|
|
357
|
+
className: P.frame,
|
|
298
358
|
d: e,
|
|
299
359
|
fill: n,
|
|
300
360
|
style: {
|
|
@@ -306,15 +366,15 @@ function ie({ name: e = re[0], size: t = 21, color: n = "currentColor", delay: r
|
|
|
306
366
|
}
|
|
307
367
|
//#endregion
|
|
308
368
|
//#region src/components/Button/Button.tsx
|
|
309
|
-
function
|
|
310
|
-
let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children: s, loading: c = !1, ...
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
369
|
+
function I(t) {
|
|
370
|
+
let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children: s, loading: c = !1, ...l } = t, p = t.disabled || c, { href: m } = l, h = n === "micro" ? "14px" : n === "large" ? "21px" : "14px", g = n === "large" ? 21 : 14, _ = [
|
|
371
|
+
N.button,
|
|
372
|
+
N[n],
|
|
373
|
+
N[r],
|
|
314
374
|
p ? "cursor-not-allowed" : "cursor-pointer",
|
|
315
375
|
o
|
|
316
|
-
].filter(Boolean).join(" "), v = /* @__PURE__ */
|
|
317
|
-
c ? /* @__PURE__ */
|
|
376
|
+
].filter(Boolean).join(" "), v = /* @__PURE__ */ f(u, { children: [
|
|
377
|
+
c ? /* @__PURE__ */ d(F, { size: g }) : i && e.cloneElement(i, {
|
|
318
378
|
size: h,
|
|
319
379
|
color: "currentColor"
|
|
320
380
|
}),
|
|
@@ -325,8 +385,8 @@ function M(t) {
|
|
|
325
385
|
})
|
|
326
386
|
] });
|
|
327
387
|
if (m) {
|
|
328
|
-
let { type: e, href: t, onClick: n, tabIndex: r, disabled: i, ...a } =
|
|
329
|
-
return p ? /* @__PURE__ */
|
|
388
|
+
let { type: e, href: t, onClick: n, tabIndex: r, disabled: i, ...a } = l;
|
|
389
|
+
return p ? /* @__PURE__ */ d("a", {
|
|
330
390
|
className: _,
|
|
331
391
|
...a,
|
|
332
392
|
"aria-disabled": "true",
|
|
@@ -336,7 +396,7 @@ function M(t) {
|
|
|
336
396
|
e.preventDefault(), e.stopPropagation();
|
|
337
397
|
},
|
|
338
398
|
children: v
|
|
339
|
-
}) : /* @__PURE__ */
|
|
399
|
+
}) : /* @__PURE__ */ d("a", {
|
|
340
400
|
className: _,
|
|
341
401
|
href: m,
|
|
342
402
|
...a,
|
|
@@ -345,8 +405,8 @@ function M(t) {
|
|
|
345
405
|
children: v
|
|
346
406
|
});
|
|
347
407
|
}
|
|
348
|
-
let { type: y = "button", href: b, disabled: x, ...S } =
|
|
349
|
-
return /* @__PURE__ */
|
|
408
|
+
let { type: y = "button", href: b, disabled: x, ...S } = l;
|
|
409
|
+
return /* @__PURE__ */ d("button", {
|
|
350
410
|
className: _,
|
|
351
411
|
type: y,
|
|
352
412
|
disabled: p,
|
|
@@ -355,57 +415,57 @@ function M(t) {
|
|
|
355
415
|
children: v
|
|
356
416
|
});
|
|
357
417
|
}
|
|
358
|
-
var
|
|
418
|
+
var L = {
|
|
359
419
|
checkboxWrapper: "_checkboxWrapper_1vygn_1",
|
|
360
420
|
checkbox: "_checkbox_1vygn_1",
|
|
361
421
|
label: "_label_1vygn_44",
|
|
362
422
|
score: "_score_1vygn_48",
|
|
363
423
|
disabled: "_disabled_1vygn_55"
|
|
364
|
-
},
|
|
365
|
-
let s = e.useId(), c = i || s, l = n ? `${c}-score` : void 0,
|
|
366
|
-
return t || n ? /* @__PURE__ */
|
|
424
|
+
}, ne = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
|
|
425
|
+
let s = e.useId(), c = i || s, l = n ? `${c}-score` : void 0, u = o.disabled;
|
|
426
|
+
return t || n ? /* @__PURE__ */ f("label", {
|
|
367
427
|
htmlFor: c,
|
|
368
|
-
className: `${
|
|
428
|
+
className: `${L.checkboxWrapper} ${r} ${u ? L.disabled : ""} ${u ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
369
429
|
children: [
|
|
370
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ d("input", {
|
|
371
431
|
id: c,
|
|
372
432
|
type: "checkbox",
|
|
373
|
-
className:
|
|
433
|
+
className: L.checkbox,
|
|
374
434
|
"aria-describedby": l,
|
|
375
435
|
"aria-label": a,
|
|
376
436
|
...o
|
|
377
437
|
}),
|
|
378
|
-
t && /* @__PURE__ */
|
|
379
|
-
className:
|
|
438
|
+
t && /* @__PURE__ */ d("span", {
|
|
439
|
+
className: L.label,
|
|
380
440
|
children: t
|
|
381
441
|
}),
|
|
382
|
-
n && /* @__PURE__ */
|
|
442
|
+
n && /* @__PURE__ */ d("span", {
|
|
383
443
|
id: l,
|
|
384
|
-
className:
|
|
444
|
+
className: L.score,
|
|
385
445
|
children: n
|
|
386
446
|
})
|
|
387
447
|
]
|
|
388
|
-
}) : /* @__PURE__ */
|
|
448
|
+
}) : /* @__PURE__ */ d("input", {
|
|
389
449
|
id: c,
|
|
390
450
|
type: "checkbox",
|
|
391
|
-
className: `${
|
|
451
|
+
className: `${L.checkbox} ${r}`,
|
|
392
452
|
"aria-label": a,
|
|
393
|
-
disabled:
|
|
453
|
+
disabled: u,
|
|
394
454
|
...o
|
|
395
455
|
});
|
|
396
|
-
},
|
|
456
|
+
}, re = {
|
|
397
457
|
container: "_container_dlzj1_1",
|
|
398
458
|
default: "_default_dlzj1_5"
|
|
399
459
|
};
|
|
400
460
|
//#endregion
|
|
401
461
|
//#region src/components/Base/Base.tsx
|
|
402
|
-
function
|
|
403
|
-
return /* @__PURE__ */
|
|
404
|
-
className: `${
|
|
462
|
+
function ie({ children: e, className: t }) {
|
|
463
|
+
return /* @__PURE__ */ d("div", {
|
|
464
|
+
className: `${re.container} ${re.default} ${t || ""}`,
|
|
405
465
|
children: e
|
|
406
466
|
});
|
|
407
467
|
}
|
|
408
|
-
var
|
|
468
|
+
var R = {
|
|
409
469
|
container: "_container_10bfq_1",
|
|
410
470
|
header: "_header_10bfq_11",
|
|
411
471
|
title: "_title_10bfq_31",
|
|
@@ -414,111 +474,136 @@ var P = {
|
|
|
414
474
|
};
|
|
415
475
|
//#endregion
|
|
416
476
|
//#region src/components/FilterPanelBase/FilterPanelBase.tsx
|
|
417
|
-
function
|
|
418
|
-
let [s,
|
|
477
|
+
function ae({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
|
|
478
|
+
let [s, c] = l(() => !o), u = e.useId();
|
|
419
479
|
return i(() => {
|
|
420
|
-
a &&
|
|
421
|
-
}, [o, a]), /* @__PURE__ */
|
|
422
|
-
className: `${
|
|
423
|
-
children: [t && (a ? /* @__PURE__ */
|
|
480
|
+
a && c(!o);
|
|
481
|
+
}, [o, a]), /* @__PURE__ */ f("div", {
|
|
482
|
+
className: `${R.container} ${r}`,
|
|
483
|
+
children: [t && (a ? /* @__PURE__ */ f("button", {
|
|
424
484
|
type: "button",
|
|
425
|
-
className:
|
|
485
|
+
className: R.header,
|
|
426
486
|
onClick: () => {
|
|
427
|
-
a &&
|
|
487
|
+
a && c((e) => !e);
|
|
428
488
|
},
|
|
429
489
|
"aria-label": `${t}: ${s ? "Collapse panel" : "Expand panel"}`,
|
|
430
490
|
"aria-expanded": s,
|
|
431
|
-
"aria-controls":
|
|
432
|
-
children: [/* @__PURE__ */
|
|
433
|
-
className:
|
|
491
|
+
"aria-controls": u,
|
|
492
|
+
children: [/* @__PURE__ */ d("div", {
|
|
493
|
+
className: R.title,
|
|
434
494
|
children: t
|
|
435
|
-
}), /* @__PURE__ */
|
|
495
|
+
}), /* @__PURE__ */ d("span", {
|
|
436
496
|
"aria-hidden": "true",
|
|
437
|
-
children:
|
|
497
|
+
children: d(s ? x : S, {
|
|
438
498
|
color: "var(--lv5)",
|
|
439
499
|
size: 14
|
|
440
500
|
})
|
|
441
501
|
})]
|
|
442
|
-
}) : /* @__PURE__ */
|
|
443
|
-
className:
|
|
444
|
-
children: /* @__PURE__ */
|
|
445
|
-
className:
|
|
502
|
+
}) : /* @__PURE__ */ d("div", {
|
|
503
|
+
className: R.header,
|
|
504
|
+
children: /* @__PURE__ */ d("div", {
|
|
505
|
+
className: R.title,
|
|
446
506
|
children: t
|
|
447
507
|
})
|
|
448
|
-
})), (!a || s) && /* @__PURE__ */
|
|
449
|
-
id:
|
|
450
|
-
className:
|
|
508
|
+
})), (!a || s) && /* @__PURE__ */ d("div", {
|
|
509
|
+
id: u,
|
|
510
|
+
className: R.body,
|
|
451
511
|
role: "region",
|
|
452
512
|
"aria-label": t || "Filter panel content",
|
|
453
513
|
children: n
|
|
454
514
|
})]
|
|
455
515
|
});
|
|
456
516
|
}
|
|
457
|
-
var
|
|
458
|
-
wrapper: "
|
|
459
|
-
label: "
|
|
460
|
-
inputContainer: "
|
|
461
|
-
input: "
|
|
462
|
-
focus: "
|
|
463
|
-
searchIcon: "
|
|
464
|
-
rightContent: "
|
|
465
|
-
sizeMicro: "
|
|
466
|
-
sizeDefault: "
|
|
467
|
-
error: "
|
|
468
|
-
errorText: "
|
|
469
|
-
},
|
|
517
|
+
var z = {
|
|
518
|
+
wrapper: "_wrapper_nc093_1",
|
|
519
|
+
label: "_label_nc093_7",
|
|
520
|
+
inputContainer: "_inputContainer_nc093_12",
|
|
521
|
+
input: "_input_nc093_12",
|
|
522
|
+
focus: "_focus_nc093_35",
|
|
523
|
+
searchIcon: "_searchIcon_nc093_52",
|
|
524
|
+
rightContent: "_rightContent_nc093_69",
|
|
525
|
+
sizeMicro: "_sizeMicro_nc093_80",
|
|
526
|
+
sizeDefault: "_sizeDefault_nc093_89",
|
|
527
|
+
error: "_error_nc093_112",
|
|
528
|
+
errorText: "_errorText_nc093_116"
|
|
529
|
+
}, oe = {
|
|
470
530
|
micro: 14,
|
|
471
531
|
default: 21
|
|
472
532
|
};
|
|
473
|
-
function
|
|
474
|
-
let
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
533
|
+
function se({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: a, searchIconColor: o, inputSize: u = "default", showFocusBorder: p = !1, clearable: m = !0, children: h, id: g, type: _ = "search", onChange: v, ...y }) {
|
|
534
|
+
let b = c(null), x = y.value !== void 0, [S, w] = l(String(y.defaultValue ?? "")), T = x ? String(y.value ?? "") : S, E = m && T.length > 0 && !y.disabled && !y.readOnly, D = (e) => {
|
|
535
|
+
x || w(e.target.value), v?.(e);
|
|
536
|
+
}, O = () => {
|
|
537
|
+
let e = b.current;
|
|
538
|
+
e && (Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus());
|
|
539
|
+
}, k = c(null), [A, j] = l(0), M = e.Children.toArray(h).length > 0 || E;
|
|
540
|
+
s(() => {
|
|
541
|
+
let e = k.current;
|
|
542
|
+
if (!e) {
|
|
543
|
+
j(0);
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
let t = () => j(e.offsetWidth);
|
|
547
|
+
t();
|
|
548
|
+
let n = new ResizeObserver(t);
|
|
549
|
+
return n.observe(e), () => n.disconnect();
|
|
550
|
+
}, [M]);
|
|
551
|
+
let N = e.useId(), P = g || N, ee = `${P}-error`, te = oe[u], F = {};
|
|
552
|
+
o && (F["--search-icon-color"] = o), A > 0 && (F.paddingRight = `${A + 10}px`);
|
|
553
|
+
let L = a ?? /* @__PURE__ */ d(C, {}), ne = u === "micro" ? z.sizeMicro : z.sizeDefault;
|
|
554
|
+
return /* @__PURE__ */ f("div", {
|
|
555
|
+
className: `${z.wrapper} ${r}`,
|
|
479
556
|
children: [
|
|
480
|
-
t && /* @__PURE__ */
|
|
481
|
-
htmlFor:
|
|
482
|
-
className:
|
|
557
|
+
t && /* @__PURE__ */ d("label", {
|
|
558
|
+
htmlFor: P,
|
|
559
|
+
className: z.label,
|
|
483
560
|
children: t
|
|
484
561
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
486
|
-
className: `${
|
|
562
|
+
/* @__PURE__ */ f("div", {
|
|
563
|
+
className: `${z.inputContainer} ${ne}`,
|
|
487
564
|
children: [
|
|
488
|
-
i && /* @__PURE__ */
|
|
489
|
-
className:
|
|
565
|
+
i && /* @__PURE__ */ d("span", {
|
|
566
|
+
className: z.searchIcon,
|
|
490
567
|
"aria-hidden": "true",
|
|
491
|
-
children: e.cloneElement(
|
|
492
|
-
size:
|
|
568
|
+
children: e.cloneElement(L, {
|
|
569
|
+
size: te,
|
|
493
570
|
color: o ?? "var(--search-icon-color)"
|
|
494
571
|
})
|
|
495
572
|
}),
|
|
496
|
-
/* @__PURE__ */
|
|
497
|
-
ref:
|
|
498
|
-
id:
|
|
499
|
-
type:
|
|
500
|
-
className: `${
|
|
501
|
-
style:
|
|
573
|
+
/* @__PURE__ */ d("input", {
|
|
574
|
+
ref: b,
|
|
575
|
+
id: P,
|
|
576
|
+
type: _,
|
|
577
|
+
className: `${z.input} ${p ? z.focus : ""} ${n ? z.error : ""}`,
|
|
578
|
+
style: F,
|
|
502
579
|
"aria-invalid": n ? "true" : "false",
|
|
503
|
-
"aria-describedby": n ?
|
|
504
|
-
...
|
|
580
|
+
"aria-describedby": n ? ee : void 0,
|
|
581
|
+
...y,
|
|
582
|
+
onChange: D
|
|
505
583
|
}),
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
584
|
+
M && /* @__PURE__ */ f("div", {
|
|
585
|
+
ref: k,
|
|
586
|
+
className: z.rightContent,
|
|
587
|
+
children: [h, E && /* @__PURE__ */ d(I, {
|
|
588
|
+
variant: "ghost",
|
|
589
|
+
size: "micro",
|
|
590
|
+
onClick: O,
|
|
591
|
+
"aria-label": "Clear search",
|
|
592
|
+
children: "Clear"
|
|
593
|
+
})]
|
|
509
594
|
})
|
|
510
595
|
]
|
|
511
596
|
}),
|
|
512
|
-
n && /* @__PURE__ */
|
|
513
|
-
id:
|
|
514
|
-
className:
|
|
597
|
+
n && /* @__PURE__ */ d("span", {
|
|
598
|
+
id: ee,
|
|
599
|
+
className: z.errorText,
|
|
515
600
|
role: "alert",
|
|
516
601
|
children: n
|
|
517
602
|
})
|
|
518
603
|
]
|
|
519
604
|
});
|
|
520
605
|
}
|
|
521
|
-
var
|
|
606
|
+
var ce = {
|
|
522
607
|
wrapper: "_wrapper_roite_1",
|
|
523
608
|
label: "_label_roite_10",
|
|
524
609
|
input: "_input_roite_15",
|
|
@@ -528,46 +613,46 @@ var I = {
|
|
|
528
613
|
};
|
|
529
614
|
//#endregion
|
|
530
615
|
//#region src/components/InputField/InputField.tsx
|
|
531
|
-
function
|
|
532
|
-
let c = e.useId(), l = o || c,
|
|
533
|
-
return /* @__PURE__ */
|
|
534
|
-
className: `${
|
|
616
|
+
function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
|
|
617
|
+
let c = e.useId(), l = o || c, u = `${l}-error`, p = n || !i;
|
|
618
|
+
return /* @__PURE__ */ f("div", {
|
|
619
|
+
className: `${ce.wrapper} ${r}`,
|
|
535
620
|
children: [
|
|
536
|
-
t && /* @__PURE__ */
|
|
621
|
+
t && /* @__PURE__ */ f("label", {
|
|
537
622
|
htmlFor: l,
|
|
538
|
-
className:
|
|
539
|
-
children: [t, s.required && /* @__PURE__ */
|
|
623
|
+
className: ce.label,
|
|
624
|
+
children: [t, s.required && /* @__PURE__ */ d("span", {
|
|
540
625
|
"aria-label": "required",
|
|
541
626
|
children: " *"
|
|
542
627
|
})]
|
|
543
628
|
}),
|
|
544
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ d("input", {
|
|
545
630
|
id: l,
|
|
546
|
-
className: `${
|
|
631
|
+
className: `${ce.input} ${a === "borderBottom" ? ce.borderBottom : ""} ${p ? ce.error : ""}`,
|
|
547
632
|
"aria-invalid": p ? "true" : "false",
|
|
548
|
-
"aria-describedby": n ?
|
|
633
|
+
"aria-describedby": n ? u : void 0,
|
|
549
634
|
...s
|
|
550
635
|
}),
|
|
551
|
-
n && /* @__PURE__ */
|
|
552
|
-
id:
|
|
553
|
-
className:
|
|
636
|
+
n && /* @__PURE__ */ d("span", {
|
|
637
|
+
id: u,
|
|
638
|
+
className: ce.errorText,
|
|
554
639
|
role: "alert",
|
|
555
640
|
children: n
|
|
556
641
|
})
|
|
557
642
|
]
|
|
558
643
|
});
|
|
559
644
|
}
|
|
560
|
-
var
|
|
645
|
+
var ue = {
|
|
561
646
|
radioWrapper: "_radioWrapper_1faq0_1",
|
|
562
647
|
radioInput: "_radioInput_1faq0_9",
|
|
563
648
|
customRadio: "_customRadio_1faq0_23",
|
|
564
649
|
labelText: "_labelText_1faq0_57",
|
|
565
650
|
disabled: "_disabled_1faq0_63"
|
|
566
|
-
},
|
|
651
|
+
}, de = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ f("label", {
|
|
567
652
|
htmlFor: e,
|
|
568
|
-
className: `${
|
|
653
|
+
className: `${ue.radioWrapper} ${o ? ue.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
569
654
|
children: [
|
|
570
|
-
/* @__PURE__ */
|
|
655
|
+
/* @__PURE__ */ d("input", {
|
|
571
656
|
id: e,
|
|
572
657
|
type: "radio",
|
|
573
658
|
name: t,
|
|
@@ -576,27 +661,27 @@ var L = {
|
|
|
576
661
|
onChange: a,
|
|
577
662
|
disabled: o,
|
|
578
663
|
"aria-label": s,
|
|
579
|
-
className:
|
|
664
|
+
className: ue.radioInput
|
|
580
665
|
}),
|
|
581
|
-
/* @__PURE__ */
|
|
582
|
-
/* @__PURE__ */
|
|
583
|
-
className:
|
|
666
|
+
/* @__PURE__ */ d("span", { className: ue.customRadio }),
|
|
667
|
+
/* @__PURE__ */ d("span", {
|
|
668
|
+
className: ue.labelText,
|
|
584
669
|
children: r
|
|
585
670
|
})
|
|
586
671
|
]
|
|
587
|
-
}),
|
|
672
|
+
}), fe = {
|
|
588
673
|
switch: "_switch_1kxu1_1",
|
|
589
674
|
slider: "_slider_1kxu1_23",
|
|
590
675
|
label: "_label_1kxu1_28",
|
|
591
676
|
disabled: "_disabled_1kxu1_43",
|
|
592
677
|
positive: "_positive_1kxu1_72"
|
|
593
|
-
},
|
|
678
|
+
}, pe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o, variant: s = "default" }) => {
|
|
594
679
|
let c = e.useId(), l = t || c;
|
|
595
|
-
return /* @__PURE__ */
|
|
680
|
+
return /* @__PURE__ */ f("label", {
|
|
596
681
|
htmlFor: l,
|
|
597
|
-
className: `${
|
|
682
|
+
className: `${fe.switch} ${s === "positive" ? fe.positive : ""} ${i ? fe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
598
683
|
children: [
|
|
599
|
-
/* @__PURE__ */
|
|
684
|
+
/* @__PURE__ */ d("input", {
|
|
600
685
|
id: l,
|
|
601
686
|
type: "checkbox",
|
|
602
687
|
role: "switch",
|
|
@@ -606,17 +691,17 @@ var L = {
|
|
|
606
691
|
onChange: (e) => r(e.target.checked),
|
|
607
692
|
disabled: i
|
|
608
693
|
}),
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
className:
|
|
694
|
+
/* @__PURE__ */ d("span", {
|
|
695
|
+
className: fe.slider,
|
|
611
696
|
"aria-hidden": "true"
|
|
612
697
|
}),
|
|
613
|
-
a && /* @__PURE__ */
|
|
614
|
-
className:
|
|
698
|
+
a && /* @__PURE__ */ d("span", {
|
|
699
|
+
className: fe.label,
|
|
615
700
|
children: a
|
|
616
701
|
})
|
|
617
702
|
]
|
|
618
703
|
});
|
|
619
|
-
},
|
|
704
|
+
}, B = {
|
|
620
705
|
label: "_label_1o3ls_1",
|
|
621
706
|
basetrack: "_basetrack_1o3ls_8",
|
|
622
707
|
selectedtrack: "_selectedtrack_1o3ls_36",
|
|
@@ -630,35 +715,35 @@ var L = {
|
|
|
630
715
|
stepmarksInline: "_stepmarksInline_1o3ls_113",
|
|
631
716
|
stepmarksBelow: "_stepmarksBelow_1o3ls_120",
|
|
632
717
|
basetrackStepsBelow: "_basetrackStepsBelow_1o3ls_125"
|
|
633
|
-
},
|
|
634
|
-
let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted:
|
|
635
|
-
if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */
|
|
718
|
+
}, me = 50, he = (t) => {
|
|
719
|
+
let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: u = !0, stepMarks: p, onChange: m, onFinalChange: h, label: g, "aria-label": _, id: v } = t, y = e.useId(), b = v || y;
|
|
720
|
+
if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ f("div", {
|
|
636
721
|
className: o,
|
|
637
|
-
children: [g && /* @__PURE__ */
|
|
638
|
-
className:
|
|
722
|
+
children: [g && /* @__PURE__ */ d("span", {
|
|
723
|
+
className: B.label,
|
|
639
724
|
children: g
|
|
640
|
-
}), /* @__PURE__ */
|
|
641
|
-
className: `${
|
|
725
|
+
}), /* @__PURE__ */ d("div", {
|
|
726
|
+
className: `${B.basetrack} ${B.disabled}`,
|
|
642
727
|
"aria-hidden": "true"
|
|
643
728
|
})]
|
|
644
729
|
});
|
|
645
|
-
let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <=
|
|
646
|
-
className: `${
|
|
730
|
+
let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <= me, C = S && p === "below" ? `${B.basetrack} ${B.basetrackStepsBelow}` : B.basetrack, w = S ? /* @__PURE__ */ d("div", {
|
|
731
|
+
className: `${B.stepmarks} ${p === "below" ? B.stepmarksBelow : B.stepmarksInline}`,
|
|
647
732
|
"aria-hidden": "true",
|
|
648
|
-
children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */
|
|
649
|
-
className:
|
|
733
|
+
children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ d("span", {
|
|
734
|
+
className: B.stepmark,
|
|
650
735
|
style: { left: `${Math.min(t * i, r - n) / (r - n) * 100}%` }
|
|
651
736
|
}, t))
|
|
652
737
|
}) : null;
|
|
653
738
|
if ("isRange" in t && t.isRange) {
|
|
654
|
-
let e = t.value, [
|
|
655
|
-
return /* @__PURE__ */
|
|
739
|
+
let e = t.value, [u, p] = e;
|
|
740
|
+
return /* @__PURE__ */ f("div", {
|
|
656
741
|
className: o,
|
|
657
|
-
children: [g && /* @__PURE__ */
|
|
742
|
+
children: [g && /* @__PURE__ */ d("label", {
|
|
658
743
|
htmlFor: b,
|
|
659
|
-
className:
|
|
744
|
+
className: B.label,
|
|
660
745
|
children: g
|
|
661
|
-
}), /* @__PURE__ */
|
|
746
|
+
}), /* @__PURE__ */ d(D, {
|
|
662
747
|
step: i,
|
|
663
748
|
min: n,
|
|
664
749
|
max: r,
|
|
@@ -667,22 +752,22 @@ var L = {
|
|
|
667
752
|
onFinalChange: (e) => h?.(e),
|
|
668
753
|
disabled: a,
|
|
669
754
|
renderTrack: ({ props: e, children: t }) => {
|
|
670
|
-
let { key: i, ...a } = e, o = r - n, m = (
|
|
671
|
-
return v && (g = (s - n) / o * 100, _ = (c - s) / o * 100), /* @__PURE__ */
|
|
755
|
+
let { key: i, ...a } = e, o = r - n, m = (u - n) / o * 100, h = (p - u) / o * 100, g = 0, _ = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
|
|
756
|
+
return v && (g = (s - n) / o * 100, _ = (c - s) / o * 100), /* @__PURE__ */ f("div", {
|
|
672
757
|
...a,
|
|
673
758
|
className: C,
|
|
674
759
|
style: { ...a.style },
|
|
675
760
|
children: [
|
|
676
|
-
!v && /* @__PURE__ */
|
|
677
|
-
className:
|
|
761
|
+
!v && /* @__PURE__ */ d("div", {
|
|
762
|
+
className: B.selectedtrack,
|
|
678
763
|
style: {
|
|
679
764
|
left: `${m}%`,
|
|
680
765
|
width: `${h}%`,
|
|
681
766
|
zIndex: "1"
|
|
682
767
|
}
|
|
683
768
|
}),
|
|
684
|
-
v && /* @__PURE__ */
|
|
685
|
-
className: `${
|
|
769
|
+
v && /* @__PURE__ */ d("div", {
|
|
770
|
+
className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
|
|
686
771
|
style: {
|
|
687
772
|
left: `${g}%`,
|
|
688
773
|
width: `${_}%`,
|
|
@@ -695,11 +780,11 @@ var L = {
|
|
|
695
780
|
}, i);
|
|
696
781
|
},
|
|
697
782
|
renderThumb: ({ props: e, index: t }) => {
|
|
698
|
-
let { key: i, ...o } = e, s = t === 0 ?
|
|
699
|
-
return /* @__PURE__ */
|
|
783
|
+
let { key: i, ...o } = e, s = t === 0 ? u : p;
|
|
784
|
+
return /* @__PURE__ */ d("div", {
|
|
700
785
|
...o,
|
|
701
786
|
id: t === 0 ? b : void 0,
|
|
702
|
-
className: `${
|
|
787
|
+
className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
703
788
|
style: {
|
|
704
789
|
...o.style,
|
|
705
790
|
zIndex: "3"
|
|
@@ -714,13 +799,13 @@ var L = {
|
|
|
714
799
|
});
|
|
715
800
|
} else {
|
|
716
801
|
let e = t.value;
|
|
717
|
-
return /* @__PURE__ */
|
|
802
|
+
return /* @__PURE__ */ f("div", {
|
|
718
803
|
className: o,
|
|
719
|
-
children: [g && /* @__PURE__ */
|
|
804
|
+
children: [g && /* @__PURE__ */ d("label", {
|
|
720
805
|
htmlFor: b,
|
|
721
|
-
className:
|
|
806
|
+
className: B.label,
|
|
722
807
|
children: g
|
|
723
|
-
}), /* @__PURE__ */
|
|
808
|
+
}), /* @__PURE__ */ d(D, {
|
|
724
809
|
step: i,
|
|
725
810
|
min: n,
|
|
726
811
|
max: r,
|
|
@@ -729,22 +814,22 @@ var L = {
|
|
|
729
814
|
onFinalChange: (e) => h?.(e[0]),
|
|
730
815
|
disabled: a,
|
|
731
816
|
renderTrack: ({ props: t, children: i }) => {
|
|
732
|
-
let { key: a, ...o } = t,
|
|
733
|
-
return g && (m = (s - n) /
|
|
817
|
+
let { key: a, ...o } = t, u = r - n, p = (e - n) / u * 100, m = 0, h = 0, g = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
|
|
818
|
+
return g && (m = (s - n) / u * 100, h = (c - s) / u * 100), /* @__PURE__ */ f("div", {
|
|
734
819
|
...o,
|
|
735
820
|
className: C,
|
|
736
821
|
style: { ...o.style },
|
|
737
822
|
children: [
|
|
738
|
-
!g && /* @__PURE__ */
|
|
739
|
-
className:
|
|
823
|
+
!g && /* @__PURE__ */ d("div", {
|
|
824
|
+
className: B.selectedtrack,
|
|
740
825
|
style: {
|
|
741
826
|
left: "0%",
|
|
742
827
|
width: `${p}%`,
|
|
743
828
|
zIndex: "1"
|
|
744
829
|
}
|
|
745
830
|
}),
|
|
746
|
-
g && /* @__PURE__ */
|
|
747
|
-
className: `${
|
|
831
|
+
g && /* @__PURE__ */ d("div", {
|
|
832
|
+
className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
|
|
748
833
|
style: {
|
|
749
834
|
left: `${m}%`,
|
|
750
835
|
width: `${h}%`,
|
|
@@ -758,10 +843,10 @@ var L = {
|
|
|
758
843
|
},
|
|
759
844
|
renderThumb: ({ props: t }) => {
|
|
760
845
|
let { key: i, ...o } = t;
|
|
761
|
-
return /* @__PURE__ */
|
|
846
|
+
return /* @__PURE__ */ d("div", {
|
|
762
847
|
...o,
|
|
763
848
|
id: b,
|
|
764
|
-
className: `${
|
|
849
|
+
className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
765
850
|
style: {
|
|
766
851
|
...o.style,
|
|
767
852
|
zIndex: "3"
|
|
@@ -775,7 +860,7 @@ var L = {
|
|
|
775
860
|
})]
|
|
776
861
|
});
|
|
777
862
|
}
|
|
778
|
-
},
|
|
863
|
+
}, V = {
|
|
779
864
|
wrapper: "_wrapper_y1e72_1",
|
|
780
865
|
label: "_label_y1e72_7",
|
|
781
866
|
trigger: "_trigger_y1e72_12",
|
|
@@ -790,58 +875,58 @@ var L = {
|
|
|
790
875
|
viewport: "_viewport_y1e72_107",
|
|
791
876
|
item: "_item_y1e72_113",
|
|
792
877
|
itemIndicator: "_itemIndicator_y1e72_136"
|
|
793
|
-
},
|
|
794
|
-
let
|
|
878
|
+
}, ge = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", variant: l = "default", "aria-label": u, id: p }) => {
|
|
879
|
+
let m = e.useId(), _ = p || m, v = `${_}-label`, y = r.find((e) => e.value === t), b = /* @__PURE__ */ f(O.Root, {
|
|
795
880
|
value: t,
|
|
796
881
|
onValueChange: n,
|
|
797
882
|
disabled: o,
|
|
798
|
-
children: [/* @__PURE__ */
|
|
883
|
+
children: [/* @__PURE__ */ f(O.Trigger, {
|
|
799
884
|
id: _,
|
|
800
|
-
className: `${
|
|
801
|
-
...s ? { "aria-labelledby": v } :
|
|
802
|
-
children: [/* @__PURE__ */
|
|
885
|
+
className: `${V.trigger} ${V[c]} ${l === "ghost" ? V.ghost : ""} ${a} cursor-pointer`,
|
|
886
|
+
...s ? { "aria-labelledby": v } : u ? { "aria-label": u } : {},
|
|
887
|
+
children: [/* @__PURE__ */ f("span", {
|
|
803
888
|
style: {
|
|
804
889
|
display: "inline-flex",
|
|
805
890
|
alignItems: "center",
|
|
806
891
|
gap: 6
|
|
807
892
|
},
|
|
808
|
-
children: [y?.icon, l === "ghost" ? /* @__PURE__ */
|
|
809
|
-
className:
|
|
810
|
-
children: [r.filter((e) => e.value !== t).map((e) => /* @__PURE__ */
|
|
811
|
-
className:
|
|
893
|
+
children: [y?.icon, l === "ghost" ? /* @__PURE__ */ f("span", {
|
|
894
|
+
className: V.sizer,
|
|
895
|
+
children: [r.filter((e) => e.value !== t).map((e) => /* @__PURE__ */ d("span", {
|
|
896
|
+
className: V.sizerHidden,
|
|
812
897
|
"aria-hidden": "true",
|
|
813
898
|
children: e.label
|
|
814
|
-
}, e.value)), /* @__PURE__ */
|
|
815
|
-
}) : /* @__PURE__ */
|
|
816
|
-
}), /* @__PURE__ */
|
|
817
|
-
className:
|
|
899
|
+
}, e.value)), /* @__PURE__ */ d("span", { children: /* @__PURE__ */ d(O.Value, { placeholder: i }) })]
|
|
900
|
+
}) : /* @__PURE__ */ d(O.Value, { placeholder: i })]
|
|
901
|
+
}), /* @__PURE__ */ d(O.Icon, {
|
|
902
|
+
className: V.icon,
|
|
818
903
|
"aria-hidden": "true",
|
|
819
|
-
children: /* @__PURE__ */
|
|
904
|
+
children: /* @__PURE__ */ d(g, {
|
|
820
905
|
size: c === "large" ? 21 : 14,
|
|
821
906
|
color: "currentColor"
|
|
822
907
|
})
|
|
823
908
|
})]
|
|
824
|
-
}), /* @__PURE__ */
|
|
825
|
-
className:
|
|
909
|
+
}), /* @__PURE__ */ d(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
|
|
910
|
+
className: V.content,
|
|
826
911
|
position: "popper",
|
|
827
912
|
side: "bottom",
|
|
828
913
|
align: "start",
|
|
829
914
|
sideOffset: 4,
|
|
830
|
-
children: /* @__PURE__ */
|
|
831
|
-
className:
|
|
832
|
-
children: r.map((e) => /* @__PURE__ */
|
|
915
|
+
children: /* @__PURE__ */ d(O.Viewport, {
|
|
916
|
+
className: V.viewport,
|
|
917
|
+
children: r.map((e) => /* @__PURE__ */ f(O.Item, {
|
|
833
918
|
value: e.value,
|
|
834
|
-
className:
|
|
835
|
-
children: [/* @__PURE__ */
|
|
919
|
+
className: V.item,
|
|
920
|
+
children: [/* @__PURE__ */ f("span", {
|
|
836
921
|
style: {
|
|
837
922
|
display: "inline-flex",
|
|
838
923
|
alignItems: "center",
|
|
839
924
|
gap: 6
|
|
840
925
|
},
|
|
841
|
-
children: [e.icon, /* @__PURE__ */
|
|
842
|
-
}), /* @__PURE__ */
|
|
843
|
-
className:
|
|
844
|
-
children: /* @__PURE__ */
|
|
926
|
+
children: [e.icon, /* @__PURE__ */ d(O.ItemText, { children: e.label })]
|
|
927
|
+
}), /* @__PURE__ */ d(O.ItemIndicator, {
|
|
928
|
+
className: V.itemIndicator,
|
|
929
|
+
children: /* @__PURE__ */ d(h, {
|
|
845
930
|
size: 12,
|
|
846
931
|
color: "currentColor"
|
|
847
932
|
})
|
|
@@ -850,23 +935,23 @@ var L = {
|
|
|
850
935
|
})
|
|
851
936
|
}) })]
|
|
852
937
|
});
|
|
853
|
-
return s ? /* @__PURE__ */
|
|
854
|
-
className:
|
|
855
|
-
children: [/* @__PURE__ */
|
|
938
|
+
return s ? /* @__PURE__ */ f("div", {
|
|
939
|
+
className: V.wrapper,
|
|
940
|
+
children: [/* @__PURE__ */ d("label", {
|
|
856
941
|
id: v,
|
|
857
942
|
htmlFor: _,
|
|
858
|
-
className:
|
|
943
|
+
className: V.label,
|
|
859
944
|
children: s
|
|
860
945
|
}), b]
|
|
861
946
|
}) : b;
|
|
862
|
-
},
|
|
947
|
+
}, _e = { content: "_content_1qahr_1" }, ve = ({ trigger: e, children: t, open: n, onOpenChange: r, align: i = "end", side: a = "bottom", sideOffset: o = 5, className: s = "", "aria-label": c, "aria-describedby": l }) => /* @__PURE__ */ f(k.Root, {
|
|
863
948
|
open: n,
|
|
864
949
|
onOpenChange: r,
|
|
865
|
-
children: [/* @__PURE__ */
|
|
950
|
+
children: [/* @__PURE__ */ d(k.Trigger, {
|
|
866
951
|
asChild: !0,
|
|
867
952
|
children: e
|
|
868
|
-
}), /* @__PURE__ */
|
|
869
|
-
className: `${
|
|
953
|
+
}), /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
|
|
954
|
+
className: `${_e.content} ${s}`,
|
|
870
955
|
align: i,
|
|
871
956
|
side: a,
|
|
872
957
|
sideOffset: o,
|
|
@@ -874,7 +959,7 @@ var L = {
|
|
|
874
959
|
"aria-describedby": l,
|
|
875
960
|
children: t
|
|
876
961
|
}) })]
|
|
877
|
-
}),
|
|
962
|
+
}), H = {
|
|
878
963
|
table: "_table_j6zqj_1",
|
|
879
964
|
caption: "_caption_j6zqj_8",
|
|
880
965
|
headerRow: "_headerRow_j6zqj_25",
|
|
@@ -890,17 +975,17 @@ var L = {
|
|
|
890
975
|
};
|
|
891
976
|
//#endregion
|
|
892
977
|
//#region src/components/Table/Table.tsx
|
|
893
|
-
function
|
|
894
|
-
let o = /* @__PURE__ */
|
|
895
|
-
className: `${
|
|
978
|
+
function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
|
|
979
|
+
let o = /* @__PURE__ */ f("table", {
|
|
980
|
+
className: `${H.table} ${r && i ? H.stickyFirst : ""}`,
|
|
896
981
|
"aria-label": n,
|
|
897
|
-
children: [t && /* @__PURE__ */
|
|
898
|
-
className:
|
|
982
|
+
children: [t && /* @__PURE__ */ d("caption", {
|
|
983
|
+
className: H.caption,
|
|
899
984
|
children: t
|
|
900
985
|
}), e]
|
|
901
986
|
});
|
|
902
|
-
return r ? /* @__PURE__ */
|
|
903
|
-
className: `${
|
|
987
|
+
return r ? /* @__PURE__ */ d("div", {
|
|
988
|
+
className: `${H.scroll} ${a === void 0 ? "" : H.bleedEnd}`,
|
|
904
989
|
style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
|
|
905
990
|
role: "region",
|
|
906
991
|
"aria-label": n ?? t,
|
|
@@ -910,62 +995,62 @@ function be({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stic
|
|
|
910
995
|
}
|
|
911
996
|
//#endregion
|
|
912
997
|
//#region src/components/Table/TableHeader.tsx
|
|
913
|
-
function
|
|
914
|
-
let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */
|
|
998
|
+
function be({ children: t }) {
|
|
999
|
+
let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ d("th", {
|
|
915
1000
|
scope: "col",
|
|
916
1001
|
...t.props
|
|
917
1002
|
}) : t);
|
|
918
|
-
return /* @__PURE__ */
|
|
919
|
-
className:
|
|
1003
|
+
return /* @__PURE__ */ d("thead", { children: /* @__PURE__ */ d("tr", {
|
|
1004
|
+
className: H.headerRow,
|
|
920
1005
|
children: n
|
|
921
1006
|
}) });
|
|
922
1007
|
}
|
|
923
1008
|
//#endregion
|
|
924
1009
|
//#region src/components/Table/TableRow.tsx
|
|
925
|
-
function
|
|
926
|
-
return /* @__PURE__ */
|
|
927
|
-
className:
|
|
1010
|
+
function xe({ children: e }) {
|
|
1011
|
+
return /* @__PURE__ */ d("tr", {
|
|
1012
|
+
className: H.dataRow,
|
|
928
1013
|
children: e
|
|
929
1014
|
});
|
|
930
1015
|
}
|
|
931
1016
|
//#endregion
|
|
932
1017
|
//#region src/components/Table/TableCell.tsx
|
|
933
|
-
function
|
|
1018
|
+
function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
|
|
934
1019
|
let a = n ? "th" : "td", o = {
|
|
935
1020
|
...n && r ? { scope: r } : {},
|
|
936
1021
|
...i ? { colSpan: i } : {}
|
|
937
1022
|
};
|
|
938
|
-
return e || t ? /* @__PURE__ */
|
|
1023
|
+
return e || t ? /* @__PURE__ */ d(a, {
|
|
939
1024
|
...o,
|
|
940
|
-
children: /* @__PURE__ */
|
|
941
|
-
className:
|
|
942
|
-
children: [e && /* @__PURE__ */
|
|
943
|
-
className:
|
|
1025
|
+
children: /* @__PURE__ */ f("div", {
|
|
1026
|
+
className: H.cellInner,
|
|
1027
|
+
children: [e && /* @__PURE__ */ d("span", {
|
|
1028
|
+
className: H.cellLabel,
|
|
944
1029
|
children: e
|
|
945
|
-
}), t && /* @__PURE__ */
|
|
946
|
-
className:
|
|
1030
|
+
}), t && /* @__PURE__ */ d("div", {
|
|
1031
|
+
className: H.cellContent,
|
|
947
1032
|
children: t
|
|
948
1033
|
})]
|
|
949
1034
|
})
|
|
950
|
-
}) : /* @__PURE__ */
|
|
1035
|
+
}) : /* @__PURE__ */ d(a, {
|
|
951
1036
|
...o,
|
|
952
1037
|
children: t
|
|
953
1038
|
});
|
|
954
1039
|
}
|
|
955
1040
|
//#endregion
|
|
956
1041
|
//#region src/components/Table/TableValue.tsx
|
|
957
|
-
function
|
|
958
|
-
return /* @__PURE__ */
|
|
959
|
-
className:
|
|
1042
|
+
function Ce({ children: e }) {
|
|
1043
|
+
return /* @__PURE__ */ d("span", {
|
|
1044
|
+
className: H.value,
|
|
960
1045
|
children: e
|
|
961
1046
|
});
|
|
962
1047
|
}
|
|
963
1048
|
//#endregion
|
|
964
1049
|
//#region src/components/Table/TableIcon.tsx
|
|
965
|
-
function
|
|
1050
|
+
function we({ children: t, "aria-label": n }) {
|
|
966
1051
|
let r = !n;
|
|
967
|
-
return /* @__PURE__ */
|
|
968
|
-
className:
|
|
1052
|
+
return /* @__PURE__ */ d("span", {
|
|
1053
|
+
className: H.icon,
|
|
969
1054
|
"aria-hidden": r ? "true" : void 0,
|
|
970
1055
|
"aria-label": n,
|
|
971
1056
|
children: e.cloneElement(t, {
|
|
@@ -974,7 +1059,7 @@ function Te({ children: t, "aria-label": n }) {
|
|
|
974
1059
|
})
|
|
975
1060
|
});
|
|
976
1061
|
}
|
|
977
|
-
var
|
|
1062
|
+
var U = {
|
|
978
1063
|
tabs: "_tabs_q9gjb_1",
|
|
979
1064
|
scrollable: "_scrollable_q9gjb_16",
|
|
980
1065
|
tab: "_tab_q9gjb_1",
|
|
@@ -990,23 +1075,23 @@ var V = {
|
|
|
990
1075
|
};
|
|
991
1076
|
//#endregion
|
|
992
1077
|
//#region src/components/Tabs/Tabs.tsx
|
|
993
|
-
function
|
|
1078
|
+
function Te(e, t) {
|
|
994
1079
|
if (!e || !t) return;
|
|
995
1080
|
let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
996
1081
|
i.left < r.left + n ? e.scrollLeft -= r.left + n - i.left : i.right > r.right - n && (e.scrollLeft += i.right - (r.right - n));
|
|
997
1082
|
}
|
|
998
|
-
var
|
|
1083
|
+
var Ee = {
|
|
999
1084
|
micro: 14,
|
|
1000
1085
|
default: 14,
|
|
1001
1086
|
large: 21
|
|
1002
1087
|
};
|
|
1003
|
-
function
|
|
1004
|
-
let v =
|
|
1088
|
+
function De({ items: e, value: r, onValueChange: o, size: s = "default", variant: l = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
|
|
1089
|
+
let v = c(null), y = c(/* @__PURE__ */ new Map()), b = a(), x = Math.max(e.findIndex((e) => e.value === r), 0), S = e.some((e) => e.href !== void 0), C = (t) => {
|
|
1005
1090
|
let n = e[t];
|
|
1006
1091
|
if (!n) return;
|
|
1007
1092
|
o(n.value);
|
|
1008
1093
|
let r = y.current.get(n.value);
|
|
1009
|
-
r?.focus({ preventScroll: !0 }), p &&
|
|
1094
|
+
r?.focus({ preventScroll: !0 }), p && Te(v.current, r);
|
|
1010
1095
|
}, w = (t, n) => {
|
|
1011
1096
|
for (let r = 1; r <= e.length; r++) {
|
|
1012
1097
|
let i = (t + n * r + e.length * r) % e.length;
|
|
@@ -1053,47 +1138,47 @@ function Oe({ items: e, value: r, onValueChange: o, size: c = "default", variant
|
|
|
1053
1138
|
m,
|
|
1054
1139
|
e.length
|
|
1055
1140
|
]), i(() => {
|
|
1056
|
-
p &&
|
|
1057
|
-
}, [p, r]), /* @__PURE__ */
|
|
1141
|
+
p && Te(v.current, y.current.get(r));
|
|
1142
|
+
}, [p, r]), /* @__PURE__ */ d("div", {
|
|
1058
1143
|
ref: v,
|
|
1059
|
-
className: `${
|
|
1144
|
+
className: `${U.tabs} ${l === "button" ? U.buttonVariant : ""} ${p ? U.scrollable : ""} ${p && m !== void 0 ? U.bleed : ""}`,
|
|
1060
1145
|
style: p && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
|
|
1061
1146
|
role: S ? "navigation" : "tablist",
|
|
1062
1147
|
"aria-label": g,
|
|
1063
1148
|
children: e.map((e, r) => {
|
|
1064
|
-
let i = r === x, a = /* @__PURE__ */
|
|
1065
|
-
e.icon ? /* @__PURE__ */
|
|
1066
|
-
className:
|
|
1149
|
+
let i = r === x, a = /* @__PURE__ */ f(u, { children: [
|
|
1150
|
+
e.icon ? /* @__PURE__ */ d("span", {
|
|
1151
|
+
className: U.icon,
|
|
1067
1152
|
"aria-hidden": "true",
|
|
1068
|
-
children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size:
|
|
1153
|
+
children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Ee[s] }) : e.icon
|
|
1069
1154
|
}) : null,
|
|
1070
1155
|
e.label,
|
|
1071
|
-
e.badge != null && e.badge !== !1 ? /* @__PURE__ */
|
|
1072
|
-
className: e.badgeTone === "info" ? `${
|
|
1156
|
+
e.badge != null && e.badge !== !1 ? /* @__PURE__ */ d("span", {
|
|
1157
|
+
className: e.badgeTone === "info" ? `${U.badge} ${U.badgeInfo}` : U.badge,
|
|
1073
1158
|
title: e.badgeTitle,
|
|
1074
1159
|
children: e.badge
|
|
1075
1160
|
}) : null
|
|
1076
|
-
] }),
|
|
1161
|
+
] }), c = `${U.tab} ${U[s]} ${i ? U.active : ""}`;
|
|
1077
1162
|
if (e.href !== void 0) {
|
|
1078
1163
|
let t = {
|
|
1079
1164
|
id: `${b}-tab-${e.value}`,
|
|
1080
|
-
className:
|
|
1165
|
+
className: c,
|
|
1081
1166
|
href: e.disabled ? void 0 : e.href,
|
|
1082
1167
|
"aria-current": i ? "page" : void 0,
|
|
1083
1168
|
"aria-disabled": e.disabled || void 0,
|
|
1084
1169
|
title: e.title,
|
|
1085
1170
|
children: a
|
|
1086
1171
|
};
|
|
1087
|
-
return /* @__PURE__ */
|
|
1172
|
+
return /* @__PURE__ */ d("span", {
|
|
1088
1173
|
style: { display: "contents" },
|
|
1089
1174
|
ref: (t) => {
|
|
1090
1175
|
let n = t?.firstElementChild;
|
|
1091
1176
|
n ? y.current.set(e.value, n) : y.current.delete(e.value);
|
|
1092
1177
|
},
|
|
1093
|
-
children: _ ? _(e, t) : /* @__PURE__ */
|
|
1178
|
+
children: _ ? _(e, t) : /* @__PURE__ */ d("a", { ...t })
|
|
1094
1179
|
}, e.value);
|
|
1095
1180
|
}
|
|
1096
|
-
return /* @__PURE__ */
|
|
1181
|
+
return /* @__PURE__ */ d("button", {
|
|
1097
1182
|
ref: (t) => {
|
|
1098
1183
|
t ? y.current.set(e.value, t) : y.current.delete(e.value);
|
|
1099
1184
|
},
|
|
@@ -1105,7 +1190,7 @@ function Oe({ items: e, value: r, onValueChange: o, size: c = "default", variant
|
|
|
1105
1190
|
"aria-disabled": e.disabled || void 0,
|
|
1106
1191
|
title: e.title,
|
|
1107
1192
|
tabIndex: i ? 0 : -1,
|
|
1108
|
-
className:
|
|
1193
|
+
className: c,
|
|
1109
1194
|
onClick: () => {
|
|
1110
1195
|
e.disabled || o(e.value);
|
|
1111
1196
|
},
|
|
@@ -1115,7 +1200,7 @@ function Oe({ items: e, value: r, onValueChange: o, size: c = "default", variant
|
|
|
1115
1200
|
})
|
|
1116
1201
|
});
|
|
1117
1202
|
}
|
|
1118
|
-
var
|
|
1203
|
+
var W = {
|
|
1119
1204
|
root: "_root_wrjxq_1",
|
|
1120
1205
|
micro: "_micro_wrjxq_2",
|
|
1121
1206
|
default: "_default_wrjxq_3",
|
|
@@ -1135,112 +1220,112 @@ var H = {
|
|
|
1135
1220
|
};
|
|
1136
1221
|
//#endregion
|
|
1137
1222
|
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
1138
|
-
function
|
|
1223
|
+
function Oe(t) {
|
|
1139
1224
|
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
1140
1225
|
size: "14px",
|
|
1141
1226
|
color: "currentColor"
|
|
1142
1227
|
}) : t;
|
|
1143
1228
|
}
|
|
1144
|
-
var
|
|
1229
|
+
var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ d(v, {
|
|
1145
1230
|
size: 14,
|
|
1146
1231
|
color: "currentColor"
|
|
1147
|
-
}), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */
|
|
1232
|
+
}), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ d("nav", {
|
|
1148
1233
|
"aria-label": o,
|
|
1149
|
-
className: `${
|
|
1150
|
-
children: /* @__PURE__ */
|
|
1151
|
-
className:
|
|
1152
|
-
children: e.map((t, r) => /* @__PURE__ */
|
|
1153
|
-
className:
|
|
1154
|
-
children: [r > 0 && /* @__PURE__ */
|
|
1155
|
-
className:
|
|
1234
|
+
className: `${W.root} ${W[t]} ${n === "truncate" ? W.truncate : ""} ${r}`,
|
|
1235
|
+
children: /* @__PURE__ */ d("ol", {
|
|
1236
|
+
className: W.list,
|
|
1237
|
+
children: e.map((t, r) => /* @__PURE__ */ f("li", {
|
|
1238
|
+
className: W.item,
|
|
1239
|
+
children: [r > 0 && /* @__PURE__ */ d("span", {
|
|
1240
|
+
className: W.separator,
|
|
1156
1241
|
"aria-hidden": "true",
|
|
1157
1242
|
children: i
|
|
1158
|
-
}), /* @__PURE__ */
|
|
1159
|
-
className: `${
|
|
1243
|
+
}), /* @__PURE__ */ f("div", {
|
|
1244
|
+
className: `${W.step} ${t.switcher ? W.switchable : ""}`,
|
|
1160
1245
|
children: [t.href ? (() => {
|
|
1161
1246
|
let i = {
|
|
1162
|
-
className:
|
|
1247
|
+
className: W.label,
|
|
1163
1248
|
href: t.href,
|
|
1164
1249
|
title: n === "truncate" ? t.label : void 0,
|
|
1165
1250
|
onClick: t.onClick,
|
|
1166
1251
|
"aria-current": r === e.length - 1 ? "page" : void 0,
|
|
1167
|
-
children: /* @__PURE__ */
|
|
1168
|
-
className:
|
|
1252
|
+
children: /* @__PURE__ */ f(u, { children: [t.icon && /* @__PURE__ */ d("span", {
|
|
1253
|
+
className: W.icon,
|
|
1169
1254
|
"aria-hidden": "true",
|
|
1170
|
-
children:
|
|
1171
|
-
}), /* @__PURE__ */
|
|
1172
|
-
className:
|
|
1255
|
+
children: Oe(t.icon)
|
|
1256
|
+
}), /* @__PURE__ */ d("span", {
|
|
1257
|
+
className: W.text,
|
|
1173
1258
|
children: t.label
|
|
1174
1259
|
})] })
|
|
1175
1260
|
};
|
|
1176
|
-
return a ? a(t, i) : /* @__PURE__ */
|
|
1177
|
-
})() : /* @__PURE__ */
|
|
1178
|
-
className:
|
|
1261
|
+
return a ? a(t, i) : /* @__PURE__ */ d("a", { ...i });
|
|
1262
|
+
})() : /* @__PURE__ */ f("span", {
|
|
1263
|
+
className: W.label,
|
|
1179
1264
|
title: n === "truncate" ? t.label : void 0,
|
|
1180
1265
|
"aria-current": r === e.length - 1 ? "page" : void 0,
|
|
1181
|
-
children: [t.icon && /* @__PURE__ */
|
|
1182
|
-
className:
|
|
1266
|
+
children: [t.icon && /* @__PURE__ */ d("span", {
|
|
1267
|
+
className: W.icon,
|
|
1183
1268
|
"aria-hidden": "true",
|
|
1184
|
-
children:
|
|
1185
|
-
}), /* @__PURE__ */
|
|
1186
|
-
className:
|
|
1269
|
+
children: Oe(t.icon)
|
|
1270
|
+
}), /* @__PURE__ */ d("span", {
|
|
1271
|
+
className: W.text,
|
|
1187
1272
|
children: t.label
|
|
1188
1273
|
})]
|
|
1189
|
-
}), t.switcher && /* @__PURE__ */
|
|
1274
|
+
}), t.switcher && /* @__PURE__ */ f(O.Root, {
|
|
1190
1275
|
value: t.switcher.value,
|
|
1191
|
-
onValueChange: (e) => e ===
|
|
1276
|
+
onValueChange: (e) => e === ke ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
|
|
1192
1277
|
disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
|
|
1193
|
-
children: [/* @__PURE__ */
|
|
1194
|
-
className:
|
|
1278
|
+
children: [/* @__PURE__ */ d(O.Trigger, {
|
|
1279
|
+
className: W.trigger,
|
|
1195
1280
|
"aria-label": `${t.switcher.label}: ${t.label}`,
|
|
1196
|
-
children: /* @__PURE__ */
|
|
1281
|
+
children: /* @__PURE__ */ d(O.Icon, {
|
|
1197
1282
|
"aria-hidden": "true",
|
|
1198
|
-
className:
|
|
1199
|
-
children: /* @__PURE__ */
|
|
1283
|
+
className: W.icon,
|
|
1284
|
+
children: /* @__PURE__ */ d(b, {
|
|
1200
1285
|
size: 14,
|
|
1201
1286
|
color: "currentColor"
|
|
1202
1287
|
})
|
|
1203
1288
|
})
|
|
1204
|
-
}), /* @__PURE__ */
|
|
1205
|
-
className: `${
|
|
1289
|
+
}), /* @__PURE__ */ d(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
|
|
1290
|
+
className: `${V.content} ${W.menu}`,
|
|
1206
1291
|
position: "popper",
|
|
1207
1292
|
align: "end",
|
|
1208
1293
|
sideOffset: 4,
|
|
1209
1294
|
collisionPadding: 8,
|
|
1210
|
-
children: /* @__PURE__ */
|
|
1211
|
-
className:
|
|
1212
|
-
children: [t.switcher.options.map((e) => /* @__PURE__ */
|
|
1295
|
+
children: /* @__PURE__ */ f(O.Viewport, {
|
|
1296
|
+
className: V.viewport,
|
|
1297
|
+
children: [t.switcher.options.map((e) => /* @__PURE__ */ f(O.Item, {
|
|
1213
1298
|
value: e.value,
|
|
1214
|
-
className:
|
|
1299
|
+
className: V.item,
|
|
1215
1300
|
textValue: e.label,
|
|
1216
|
-
children: [/* @__PURE__ */
|
|
1217
|
-
className:
|
|
1218
|
-
children: [e.icon && /* @__PURE__ */
|
|
1219
|
-
className:
|
|
1301
|
+
children: [/* @__PURE__ */ f("span", {
|
|
1302
|
+
className: W.option,
|
|
1303
|
+
children: [e.icon && /* @__PURE__ */ d("span", {
|
|
1304
|
+
className: W.icon,
|
|
1220
1305
|
"aria-hidden": "true",
|
|
1221
1306
|
children: e.icon
|
|
1222
|
-
}), /* @__PURE__ */
|
|
1223
|
-
}), /* @__PURE__ */
|
|
1224
|
-
className:
|
|
1225
|
-
children: /* @__PURE__ */
|
|
1307
|
+
}), /* @__PURE__ */ d(O.ItemText, { children: e.label })]
|
|
1308
|
+
}), /* @__PURE__ */ d(O.ItemIndicator, {
|
|
1309
|
+
className: V.itemIndicator,
|
|
1310
|
+
children: /* @__PURE__ */ d(h, {
|
|
1226
1311
|
size: 12,
|
|
1227
1312
|
color: "currentColor"
|
|
1228
1313
|
})
|
|
1229
1314
|
})]
|
|
1230
|
-
}, e.value)), t.switcher.action && /* @__PURE__ */
|
|
1231
|
-
value:
|
|
1232
|
-
className:
|
|
1315
|
+
}, e.value)), t.switcher.action && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(O.Separator, { className: W.menuDivider }), /* @__PURE__ */ d(O.Item, {
|
|
1316
|
+
value: ke,
|
|
1317
|
+
className: V.item,
|
|
1233
1318
|
textValue: t.switcher.action.label,
|
|
1234
|
-
children: /* @__PURE__ */
|
|
1235
|
-
className:
|
|
1236
|
-
children: [/* @__PURE__ */
|
|
1237
|
-
className:
|
|
1319
|
+
children: /* @__PURE__ */ f("span", {
|
|
1320
|
+
className: W.option,
|
|
1321
|
+
children: [/* @__PURE__ */ d("span", {
|
|
1322
|
+
className: W.icon,
|
|
1238
1323
|
"aria-hidden": "true",
|
|
1239
|
-
children: /* @__PURE__ */
|
|
1324
|
+
children: /* @__PURE__ */ d(S, {
|
|
1240
1325
|
size: 14,
|
|
1241
1326
|
color: "currentColor"
|
|
1242
1327
|
})
|
|
1243
|
-
}), /* @__PURE__ */
|
|
1328
|
+
}), /* @__PURE__ */ d(O.ItemText, { children: t.switcher.action.label })]
|
|
1244
1329
|
})
|
|
1245
1330
|
})] })]
|
|
1246
1331
|
})
|
|
@@ -1249,7 +1334,7 @@ var Ae = "\0action", je = ({ items: e, size: t = "default", overflow: n = "wrap"
|
|
|
1249
1334
|
})]
|
|
1250
1335
|
}, t.id))
|
|
1251
1336
|
})
|
|
1252
|
-
}),
|
|
1337
|
+
}), je = {
|
|
1253
1338
|
wrapper: "_wrapper_1a9jo_1",
|
|
1254
1339
|
track: "_track_1a9jo_8",
|
|
1255
1340
|
fill: "_fill_1a9jo_36",
|
|
@@ -1257,42 +1342,43 @@ var Ae = "\0action", je = ({ items: e, size: t = "default", overflow: n = "wrap"
|
|
|
1257
1342
|
};
|
|
1258
1343
|
//#endregion
|
|
1259
1344
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
1260
|
-
function
|
|
1345
|
+
function Me({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
|
|
1261
1346
|
let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
|
|
1262
|
-
return /* @__PURE__ */
|
|
1263
|
-
className: `${
|
|
1347
|
+
return /* @__PURE__ */ f("div", {
|
|
1348
|
+
className: `${je.wrapper} ${r}`,
|
|
1264
1349
|
role: "progressbar",
|
|
1265
1350
|
"aria-valuenow": i,
|
|
1266
1351
|
"aria-valuemin": 0,
|
|
1267
1352
|
"aria-valuemax": 100,
|
|
1268
|
-
children: [/* @__PURE__ */
|
|
1269
|
-
className:
|
|
1270
|
-
children: /* @__PURE__ */
|
|
1271
|
-
className:
|
|
1353
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1354
|
+
className: je.track,
|
|
1355
|
+
children: /* @__PURE__ */ d("div", {
|
|
1356
|
+
className: je.fill,
|
|
1272
1357
|
style: {
|
|
1273
1358
|
width: `${i}%`,
|
|
1274
1359
|
backgroundColor: o
|
|
1275
1360
|
}
|
|
1276
1361
|
})
|
|
1277
|
-
}), t && /* @__PURE__ */
|
|
1278
|
-
className:
|
|
1362
|
+
}), t && /* @__PURE__ */ d("span", {
|
|
1363
|
+
className: je.label,
|
|
1279
1364
|
"aria-hidden": "true",
|
|
1280
1365
|
children: a
|
|
1281
1366
|
})]
|
|
1282
1367
|
});
|
|
1283
1368
|
}
|
|
1284
|
-
var
|
|
1369
|
+
var Ne = {
|
|
1285
1370
|
chip: "_chip_iaxe0_1",
|
|
1286
1371
|
large: "_large_iaxe0_14"
|
|
1287
1372
|
};
|
|
1288
1373
|
//#endregion
|
|
1289
1374
|
//#region src/components/Chip/Chip.tsx
|
|
1290
|
-
function
|
|
1375
|
+
function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
|
|
1291
1376
|
let s = {};
|
|
1292
|
-
return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */
|
|
1377
|
+
return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ f("span", {
|
|
1293
1378
|
className: [
|
|
1294
|
-
|
|
1295
|
-
|
|
1379
|
+
Ne.chip,
|
|
1380
|
+
"indx-chip",
|
|
1381
|
+
o === "large" && Ne.large,
|
|
1296
1382
|
i
|
|
1297
1383
|
].filter(Boolean).join(" "),
|
|
1298
1384
|
style: s,
|
|
@@ -1302,7 +1388,7 @@ function Fe({ children: t, color: n, textColor: r, className: i, icon: a, size:
|
|
|
1302
1388
|
}), t]
|
|
1303
1389
|
});
|
|
1304
1390
|
}
|
|
1305
|
-
var
|
|
1391
|
+
var G = {
|
|
1306
1392
|
root: "_root_ok48u_3",
|
|
1307
1393
|
icon: "_icon_ok48u_16",
|
|
1308
1394
|
body: "_body_ok48u_17",
|
|
@@ -1313,77 +1399,77 @@ var U = {
|
|
|
1313
1399
|
success: "_success_ok48u_24",
|
|
1314
1400
|
warning: "_warning_ok48u_25",
|
|
1315
1401
|
destructive: "_destructive_ok48u_26"
|
|
1316
|
-
},
|
|
1317
|
-
success: /* @__PURE__ */
|
|
1318
|
-
warning: /* @__PURE__ */
|
|
1319
|
-
destructive: /* @__PURE__ */
|
|
1402
|
+
}, Fe = {
|
|
1403
|
+
success: /* @__PURE__ */ d(h, {}),
|
|
1404
|
+
warning: /* @__PURE__ */ d(T, {}),
|
|
1405
|
+
destructive: /* @__PURE__ */ d(T, {})
|
|
1320
1406
|
};
|
|
1321
|
-
function
|
|
1407
|
+
function Ie(t) {
|
|
1322
1408
|
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
1323
1409
|
size: 16,
|
|
1324
1410
|
color: "currentColor"
|
|
1325
1411
|
}) : t;
|
|
1326
1412
|
}
|
|
1327
|
-
var
|
|
1328
|
-
let a = t === void 0 ?
|
|
1329
|
-
return /* @__PURE__ */
|
|
1413
|
+
var Le = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
|
|
1414
|
+
let a = t === void 0 ? Fe[e] : t;
|
|
1415
|
+
return /* @__PURE__ */ f("div", {
|
|
1330
1416
|
role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
|
|
1331
|
-
className: `${
|
|
1332
|
-
children: [a && /* @__PURE__ */
|
|
1333
|
-
className:
|
|
1417
|
+
className: `${G.root} ${G[e]} ${n}`,
|
|
1418
|
+
children: [a && /* @__PURE__ */ d("span", {
|
|
1419
|
+
className: G.icon,
|
|
1334
1420
|
"aria-hidden": "true",
|
|
1335
|
-
children:
|
|
1336
|
-
}), /* @__PURE__ */
|
|
1337
|
-
className:
|
|
1421
|
+
children: Ie(a)
|
|
1422
|
+
}), /* @__PURE__ */ d("div", {
|
|
1423
|
+
className: G.body,
|
|
1338
1424
|
children: r
|
|
1339
1425
|
})]
|
|
1340
1426
|
});
|
|
1341
|
-
},
|
|
1342
|
-
className: `${
|
|
1427
|
+
}, Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ d("div", {
|
|
1428
|
+
className: `${G.title} ${t}`,
|
|
1343
1429
|
children: e
|
|
1344
|
-
}),
|
|
1345
|
-
className: `${
|
|
1430
|
+
}), ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ d("div", {
|
|
1431
|
+
className: `${G.description} ${t}`,
|
|
1346
1432
|
children: e
|
|
1347
|
-
}),
|
|
1433
|
+
}), Be = {
|
|
1348
1434
|
root: "_root_1aak8_10",
|
|
1349
1435
|
main: "_main_1aak8_33",
|
|
1350
1436
|
aside: "_aside_1aak8_34",
|
|
1351
1437
|
message: "_message_1aak8_41"
|
|
1352
|
-
},
|
|
1438
|
+
}, Ve = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ f("div", {
|
|
1353
1439
|
role: "region",
|
|
1354
1440
|
"aria-label": a,
|
|
1355
|
-
className: `${
|
|
1356
|
-
children: [/* @__PURE__ */
|
|
1357
|
-
className:
|
|
1358
|
-
children: [r, t && /* @__PURE__ */
|
|
1359
|
-
className:
|
|
1441
|
+
className: `${Be.root} ${i}`,
|
|
1442
|
+
children: [/* @__PURE__ */ f("div", {
|
|
1443
|
+
className: Be.main,
|
|
1444
|
+
children: [r, t && /* @__PURE__ */ d("span", {
|
|
1445
|
+
className: Be.message,
|
|
1360
1446
|
children: t
|
|
1361
1447
|
})]
|
|
1362
|
-
}), n && /* @__PURE__ */
|
|
1363
|
-
className:
|
|
1448
|
+
}), n && /* @__PURE__ */ d("div", {
|
|
1449
|
+
className: Be.aside,
|
|
1364
1450
|
children: n
|
|
1365
1451
|
})]
|
|
1366
|
-
}) : null,
|
|
1452
|
+
}) : null, He = {
|
|
1367
1453
|
tooltip: "_tooltip_1de7z_1",
|
|
1368
1454
|
arrow: "_arrow_1de7z_13"
|
|
1369
1455
|
};
|
|
1370
1456
|
//#endregion
|
|
1371
1457
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
1372
|
-
function
|
|
1373
|
-
return /* @__PURE__ */
|
|
1458
|
+
function Ue({ content: e, position: t = "top", children: n, className: r }) {
|
|
1459
|
+
return /* @__PURE__ */ d(A.Provider, {
|
|
1374
1460
|
delayDuration: 80,
|
|
1375
|
-
children: /* @__PURE__ */
|
|
1461
|
+
children: /* @__PURE__ */ f(A.Root, { children: [/* @__PURE__ */ d(A.Trigger, {
|
|
1376
1462
|
asChild: !0,
|
|
1377
1463
|
children: n
|
|
1378
|
-
}), /* @__PURE__ */
|
|
1464
|
+
}), /* @__PURE__ */ d(A.Portal, { children: /* @__PURE__ */ f(A.Content, {
|
|
1379
1465
|
side: t,
|
|
1380
1466
|
sideOffset: 7,
|
|
1381
|
-
className: [
|
|
1382
|
-
children: [e, /* @__PURE__ */
|
|
1467
|
+
className: [He.tooltip, r].filter(Boolean).join(" "),
|
|
1468
|
+
children: [e, /* @__PURE__ */ d(A.Arrow, { className: He.arrow })]
|
|
1383
1469
|
}) })] })
|
|
1384
1470
|
});
|
|
1385
1471
|
}
|
|
1386
|
-
var
|
|
1472
|
+
var K = {
|
|
1387
1473
|
wrapper: "_wrapper_1wrxy_1",
|
|
1388
1474
|
chart: "_chart_1wrxy_8",
|
|
1389
1475
|
svg: "_svg_1wrxy_33",
|
|
@@ -1400,34 +1486,34 @@ var W = {
|
|
|
1400
1486
|
marker: "_marker_1wrxy_111",
|
|
1401
1487
|
tooltipMarker: "_tooltipMarker_1wrxy_115",
|
|
1402
1488
|
markerDot: "_markerDot_1wrxy_119"
|
|
1403
|
-
},
|
|
1404
|
-
function
|
|
1489
|
+
}, We = "var(--lv4)", q = 12, Ge = 20, Ke = 8, qe = 28, J = 20;
|
|
1490
|
+
function Je(e) {
|
|
1405
1491
|
return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
1406
1492
|
}
|
|
1407
|
-
function
|
|
1408
|
-
let p =
|
|
1493
|
+
function Ye({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: s, markers: u }) {
|
|
1494
|
+
let p = c(null), [m, h] = l(0), [g, _] = l(null);
|
|
1409
1495
|
i(() => {
|
|
1410
1496
|
let e = p.current;
|
|
1411
1497
|
if (!e) return;
|
|
1412
1498
|
let t = new ResizeObserver(([e]) => h(e.contentRect.width));
|
|
1413
1499
|
return t.observe(e), h(e.clientWidth), () => t.disconnect();
|
|
1414
1500
|
}, []);
|
|
1415
|
-
let v = t?.length ?
|
|
1501
|
+
let v = t?.length ? qe : Ke, y = Math.max(m - J - Ge, 0), b = Math.max(a - q - v, 0), x = e.flatMap((e) => e.data.filter(Number.isFinite)), S = x.length ? Math.max(...x, 0) : 1, C = n === "bar" ? 0 : Math.min(...x, 0), w = S - C || 1, T = Math.max(...e.map((e) => e.data.length), 0), E = (() => {
|
|
1416
1502
|
if (!t || t.length <= 1 || y <= 0) return 1;
|
|
1417
1503
|
let e = Math.max(...t.map((e) => e.length)) * 6 + 12, n = Math.max(Math.floor(y / e), 1);
|
|
1418
1504
|
return Math.ceil(t.length / n);
|
|
1419
|
-
})(), D = T <= 1 || y / (T - 1) >= 12, O = (e) =>
|
|
1505
|
+
})(), D = T <= 1 || y / (T - 1) >= 12, O = (e) => q + (1 - (e - C) / w) * b, k = (e) => T <= 1 ? J + y / 2 : J + e / (T - 1) * y, A = r((e) => {
|
|
1420
1506
|
if (T === 0) return;
|
|
1421
1507
|
let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
|
|
1422
1508
|
if (n === "line") {
|
|
1423
|
-
let e = Math.round((r -
|
|
1509
|
+
let e = Math.round((r - J) / y * (T - 1));
|
|
1424
1510
|
_({
|
|
1425
1511
|
index: Math.max(0, Math.min(T - 1, e)),
|
|
1426
1512
|
x: r,
|
|
1427
1513
|
y: i
|
|
1428
1514
|
});
|
|
1429
1515
|
} else {
|
|
1430
|
-
let e = y / T, t = Math.floor((r -
|
|
1516
|
+
let e = y / T, t = Math.floor((r - J) / e);
|
|
1431
1517
|
_({
|
|
1432
1518
|
index: Math.max(0, Math.min(T - 1, t)),
|
|
1433
1519
|
x: r,
|
|
@@ -1440,33 +1526,33 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1440
1526
|
y
|
|
1441
1527
|
]), j = r((e) => {
|
|
1442
1528
|
e.pointerType === "mouse" && _(null);
|
|
1443
|
-
}, []),
|
|
1444
|
-
x1:
|
|
1445
|
-
y1:
|
|
1446
|
-
x2:
|
|
1447
|
-
y2:
|
|
1529
|
+
}, []), M = /* @__PURE__ */ d("line", {
|
|
1530
|
+
x1: J,
|
|
1531
|
+
y1: q + b * .5,
|
|
1532
|
+
x2: J + y,
|
|
1533
|
+
y2: q + b * .5,
|
|
1448
1534
|
stroke: "var(--chart-midline)",
|
|
1449
1535
|
strokeWidth: "0.5"
|
|
1450
|
-
}),
|
|
1451
|
-
x1:
|
|
1452
|
-
y1:
|
|
1453
|
-
x2:
|
|
1454
|
-
y2:
|
|
1536
|
+
}), N = /* @__PURE__ */ d("line", {
|
|
1537
|
+
x1: J,
|
|
1538
|
+
y1: q + b,
|
|
1539
|
+
x2: J + y,
|
|
1540
|
+
y2: q + b,
|
|
1455
1541
|
stroke: "var(--chart-baseline)",
|
|
1456
1542
|
strokeWidth: "1"
|
|
1457
|
-
}),
|
|
1543
|
+
}), P = g && n === "bar" ? (() => {
|
|
1458
1544
|
let e = y / T;
|
|
1459
|
-
return /* @__PURE__ */
|
|
1460
|
-
x:
|
|
1461
|
-
y:
|
|
1545
|
+
return /* @__PURE__ */ d("rect", {
|
|
1546
|
+
x: J + g.index * e,
|
|
1547
|
+
y: q,
|
|
1462
1548
|
width: e,
|
|
1463
1549
|
height: b,
|
|
1464
1550
|
fill: "var(--chart-column-hover)"
|
|
1465
1551
|
});
|
|
1466
|
-
})() : null,
|
|
1552
|
+
})() : null, ee = () => e.map((e, t) => {
|
|
1467
1553
|
if (!e.data.length) return null;
|
|
1468
|
-
let n = e.color ??
|
|
1469
|
-
return /* @__PURE__ */
|
|
1554
|
+
let n = e.color ?? We;
|
|
1555
|
+
return /* @__PURE__ */ f("g", { children: [/* @__PURE__ */ d("polyline", {
|
|
1470
1556
|
points: e.data.map((e, t) => `${k(t).toFixed(2)},${O(e).toFixed(2)}`).join(" "),
|
|
1471
1557
|
fill: "none",
|
|
1472
1558
|
stroke: n,
|
|
@@ -1477,7 +1563,7 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1477
1563
|
let r = g?.index === t;
|
|
1478
1564
|
if (!r && !D) return null;
|
|
1479
1565
|
let i = r ? D ? 10 : 7 : 5, a = i / 2;
|
|
1480
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ d("rect", {
|
|
1481
1567
|
x: k(t) - a,
|
|
1482
1568
|
y: O(e) - a,
|
|
1483
1569
|
width: i,
|
|
@@ -1485,12 +1571,12 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1485
1571
|
fill: n
|
|
1486
1572
|
}, t);
|
|
1487
1573
|
})] }, t);
|
|
1488
|
-
}),
|
|
1574
|
+
}), te = () => {
|
|
1489
1575
|
if (!T) return null;
|
|
1490
|
-
let t = e.length, n = y / T, r = Math.max((n - 2 * (t + 1)) / t, 2), i =
|
|
1576
|
+
let t = e.length, n = y / T, r = Math.max((n - 2 * (t + 1)) / t, 2), i = q + b;
|
|
1491
1577
|
return e.map((e, t) => e.data.map((a, o) => {
|
|
1492
|
-
let s =
|
|
1493
|
-
return /* @__PURE__ */
|
|
1578
|
+
let s = J + o * n + 2 + t * (r + 2), c = O(a);
|
|
1579
|
+
return /* @__PURE__ */ d("rect", {
|
|
1494
1580
|
x: s,
|
|
1495
1581
|
y: c,
|
|
1496
1582
|
width: r,
|
|
@@ -1498,29 +1584,29 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1498
1584
|
fill: e.color ?? "var(--chart-bar)"
|
|
1499
1585
|
}, `${t}-${o}`);
|
|
1500
1586
|
}));
|
|
1501
|
-
},
|
|
1587
|
+
}, F = () => {
|
|
1502
1588
|
if (!t?.length) return null;
|
|
1503
|
-
let e =
|
|
1504
|
-
return t.map((t, i) => (r - i) % E === 0 ? /* @__PURE__ */
|
|
1505
|
-
x: n === "line" ? k(i) :
|
|
1589
|
+
let e = q + b + 18, r = t.length - 1;
|
|
1590
|
+
return t.map((t, i) => (r - i) % E === 0 ? /* @__PURE__ */ d("text", {
|
|
1591
|
+
x: n === "line" ? k(i) : J + (i + .5) * (y / T),
|
|
1506
1592
|
y: e,
|
|
1507
1593
|
textAnchor: n !== "line" || r === 0 ? "middle" : i === 0 ? "start" : i === r ? "end" : "middle",
|
|
1508
1594
|
fill: "var(--lv4)",
|
|
1509
1595
|
style: { font: "var(--text-2xs)" },
|
|
1510
1596
|
children: t
|
|
1511
1597
|
}, i) : null);
|
|
1512
|
-
},
|
|
1598
|
+
}, I = g && n === "line" ? /* @__PURE__ */ d("line", {
|
|
1513
1599
|
x1: k(g.index),
|
|
1514
|
-
y1:
|
|
1600
|
+
y1: q,
|
|
1515
1601
|
x2: k(g.index),
|
|
1516
|
-
y2:
|
|
1602
|
+
y2: q + b,
|
|
1517
1603
|
stroke: "var(--chart-crosshair)",
|
|
1518
1604
|
strokeWidth: "1",
|
|
1519
1605
|
strokeDasharray: "3 3"
|
|
1520
|
-
}) : null,
|
|
1606
|
+
}) : null, L = g ? (() => {
|
|
1521
1607
|
let n = t?.[g.index] ?? String(g.index + 1), r = Math.min(Math.max(g.x, 60), m - 60);
|
|
1522
|
-
return /* @__PURE__ */
|
|
1523
|
-
className:
|
|
1608
|
+
return /* @__PURE__ */ f("div", {
|
|
1609
|
+
className: K.tooltip,
|
|
1524
1610
|
style: g.y < 80 ? {
|
|
1525
1611
|
left: r,
|
|
1526
1612
|
top: g.y + 12,
|
|
@@ -1531,85 +1617,85 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1531
1617
|
transform: "translate(-50%, -100%)"
|
|
1532
1618
|
},
|
|
1533
1619
|
children: [
|
|
1534
|
-
/* @__PURE__ */
|
|
1535
|
-
className:
|
|
1620
|
+
/* @__PURE__ */ d("div", {
|
|
1621
|
+
className: K.tooltipLabel,
|
|
1536
1622
|
children: n
|
|
1537
1623
|
}),
|
|
1538
|
-
e.map((e, t) => /* @__PURE__ */
|
|
1539
|
-
className:
|
|
1624
|
+
e.map((e, t) => /* @__PURE__ */ f("div", {
|
|
1625
|
+
className: K.tooltipRow,
|
|
1540
1626
|
children: [
|
|
1541
|
-
/* @__PURE__ */
|
|
1542
|
-
className:
|
|
1543
|
-
style: { background: e.color ??
|
|
1627
|
+
/* @__PURE__ */ d("span", {
|
|
1628
|
+
className: K.tooltipDot,
|
|
1629
|
+
style: { background: e.color ?? We }
|
|
1544
1630
|
}),
|
|
1545
|
-
/* @__PURE__ */
|
|
1546
|
-
className:
|
|
1631
|
+
/* @__PURE__ */ d("span", {
|
|
1632
|
+
className: K.tooltipName,
|
|
1547
1633
|
children: e.label
|
|
1548
1634
|
}),
|
|
1549
|
-
/* @__PURE__ */
|
|
1550
|
-
className:
|
|
1551
|
-
children:
|
|
1635
|
+
/* @__PURE__ */ d("span", {
|
|
1636
|
+
className: K.tooltipValue,
|
|
1637
|
+
children: Je(e.data[g.index] ?? 0)
|
|
1552
1638
|
})
|
|
1553
1639
|
]
|
|
1554
1640
|
}, t)),
|
|
1555
|
-
|
|
1556
|
-
className: `${
|
|
1557
|
-
children: [/* @__PURE__ */
|
|
1558
|
-
className:
|
|
1641
|
+
u?.filter((e) => e.index === g.index).map((e, t) => /* @__PURE__ */ f("div", {
|
|
1642
|
+
className: `${K.tooltipRow} ${K.tooltipMarker}`,
|
|
1643
|
+
children: [/* @__PURE__ */ d("span", { className: `${K.tooltipDot} ${K.markerDot}` }), /* @__PURE__ */ d("span", {
|
|
1644
|
+
className: K.tooltipName,
|
|
1559
1645
|
children: e.label
|
|
1560
1646
|
})]
|
|
1561
1647
|
}, `m${t}`))
|
|
1562
1648
|
]
|
|
1563
1649
|
});
|
|
1564
1650
|
})() : null;
|
|
1565
|
-
return /* @__PURE__ */
|
|
1566
|
-
className: [
|
|
1567
|
-
children: [/* @__PURE__ */
|
|
1651
|
+
return /* @__PURE__ */ f("div", {
|
|
1652
|
+
className: [K.wrapper, s].filter(Boolean).join(" "),
|
|
1653
|
+
children: [/* @__PURE__ */ f("div", {
|
|
1568
1654
|
ref: p,
|
|
1569
|
-
className:
|
|
1655
|
+
className: K.chart,
|
|
1570
1656
|
style: { height: a },
|
|
1571
|
-
children: [m > 0 && /* @__PURE__ */
|
|
1657
|
+
children: [m > 0 && /* @__PURE__ */ f("svg", {
|
|
1572
1658
|
width: m,
|
|
1573
1659
|
height: a,
|
|
1574
|
-
className:
|
|
1660
|
+
className: K.svg,
|
|
1575
1661
|
onPointerMove: A,
|
|
1576
1662
|
onPointerDown: A,
|
|
1577
1663
|
onPointerLeave: j,
|
|
1578
1664
|
children: [
|
|
1579
|
-
|
|
1580
|
-
te,
|
|
1581
|
-
ne,
|
|
1665
|
+
M,
|
|
1582
1666
|
N,
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1667
|
+
P,
|
|
1668
|
+
I,
|
|
1669
|
+
n === "line" ? ee() : te(),
|
|
1670
|
+
u && T > 0 && [...new Set(u.map((e) => e.index).filter((e) => e >= 0 && e < T))].map((e) => {
|
|
1671
|
+
let t = n === "line" ? k(e) : J + (e + .5) * (y / T);
|
|
1672
|
+
return /* @__PURE__ */ d("rect", {
|
|
1673
|
+
className: K.marker,
|
|
1588
1674
|
x: t - 3,
|
|
1589
|
-
y:
|
|
1675
|
+
y: q + b - 3,
|
|
1590
1676
|
width: 6,
|
|
1591
1677
|
height: 6
|
|
1592
1678
|
}, `m${e}`);
|
|
1593
1679
|
}),
|
|
1594
|
-
|
|
1680
|
+
F()
|
|
1595
1681
|
]
|
|
1596
|
-
}),
|
|
1597
|
-
}), o && e.length > 1 && /* @__PURE__ */
|
|
1598
|
-
className:
|
|
1599
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
1600
|
-
className:
|
|
1601
|
-
children: [/* @__PURE__ */
|
|
1602
|
-
className:
|
|
1603
|
-
style: { background: e.color ??
|
|
1604
|
-
}), /* @__PURE__ */
|
|
1605
|
-
className:
|
|
1682
|
+
}), L]
|
|
1683
|
+
}), o && e.length > 1 && /* @__PURE__ */ d("div", {
|
|
1684
|
+
className: K.legend,
|
|
1685
|
+
children: e.map((e, t) => /* @__PURE__ */ f("div", {
|
|
1686
|
+
className: K.legendItem,
|
|
1687
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1688
|
+
className: K.legendMark,
|
|
1689
|
+
style: { background: e.color ?? We }
|
|
1690
|
+
}), /* @__PURE__ */ d("span", {
|
|
1691
|
+
className: K.legendLabel,
|
|
1606
1692
|
children: e.label
|
|
1607
1693
|
})]
|
|
1608
1694
|
}, t))
|
|
1609
1695
|
})]
|
|
1610
1696
|
});
|
|
1611
1697
|
}
|
|
1612
|
-
var
|
|
1698
|
+
var Y = {
|
|
1613
1699
|
sparkline: "_sparkline_fqcg9_4",
|
|
1614
1700
|
line: "_line_fqcg9_12",
|
|
1615
1701
|
partial: "_partial_fqcg9_22",
|
|
@@ -1617,65 +1703,93 @@ var q = {
|
|
|
1617
1703
|
bars: "_bars_fqcg9_34",
|
|
1618
1704
|
bar: "_bar_fqcg9_34",
|
|
1619
1705
|
baseline: "_baseline_fqcg9_48"
|
|
1620
|
-
},
|
|
1621
|
-
function Qe({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill:
|
|
1622
|
-
let
|
|
1623
|
-
className: [
|
|
1706
|
+
}, Xe = 100, Ze = 100;
|
|
1707
|
+
function Qe({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: o = !1, baseline: s = !1, lastIsPartial: c = !1, gap: l = 1, idleColor: p, ariaLabel: m, className: h }) {
|
|
1708
|
+
let g = `spark-${a().replace(/:/g, "")}`, _ = e.filter((e) => Number.isFinite(e)), v = m == null, y = _.length ? Math.max(..._) : 0, b = _.length ? Math.min(..._) : 0, x = y - b || 1, S = Ze - 12, C = (e) => 94 - (e - b) / x * S, w = (e) => /* @__PURE__ */ f("svg", {
|
|
1709
|
+
className: [Y.sparkline, h].filter(Boolean).join(" "),
|
|
1624
1710
|
style: {
|
|
1625
1711
|
width: n,
|
|
1626
1712
|
height: r,
|
|
1627
1713
|
color: i
|
|
1628
1714
|
},
|
|
1629
|
-
viewBox: `0 0 ${
|
|
1715
|
+
viewBox: `0 0 ${Xe} ${Ze}`,
|
|
1630
1716
|
preserveAspectRatio: "none",
|
|
1631
|
-
role:
|
|
1632
|
-
"aria-label":
|
|
1633
|
-
"aria-hidden":
|
|
1717
|
+
role: v ? void 0 : "img",
|
|
1718
|
+
"aria-label": m,
|
|
1719
|
+
"aria-hidden": v || void 0,
|
|
1634
1720
|
focusable: "false",
|
|
1635
|
-
children: [e,
|
|
1721
|
+
children: [e, s && /* @__PURE__ */ d("line", {
|
|
1636
1722
|
x1: "0",
|
|
1637
|
-
y1:
|
|
1638
|
-
x2:
|
|
1639
|
-
y2:
|
|
1640
|
-
className:
|
|
1723
|
+
y1: Ze - .5,
|
|
1724
|
+
x2: Xe,
|
|
1725
|
+
y2: Ze - .5,
|
|
1726
|
+
className: Y.baseline,
|
|
1641
1727
|
vectorEffect: "non-scaling-stroke"
|
|
1642
1728
|
})]
|
|
1643
1729
|
});
|
|
1644
|
-
if (
|
|
1645
|
-
if (t === "bar") return /* @__PURE__ */
|
|
1646
|
-
className: [
|
|
1730
|
+
if (_.length < 2) return w(null);
|
|
1731
|
+
if (t === "bar") return /* @__PURE__ */ d("div", {
|
|
1732
|
+
className: [Y.bars, h].filter(Boolean).join(" "),
|
|
1647
1733
|
style: {
|
|
1648
1734
|
width: n,
|
|
1649
1735
|
height: r,
|
|
1650
1736
|
color: i,
|
|
1651
|
-
gap:
|
|
1652
|
-
borderBottomWidth: +!!
|
|
1737
|
+
gap: l,
|
|
1738
|
+
borderBottomWidth: +!!s
|
|
1653
1739
|
},
|
|
1654
|
-
role:
|
|
1655
|
-
"aria-label":
|
|
1656
|
-
"aria-hidden":
|
|
1657
|
-
children:
|
|
1658
|
-
className:
|
|
1659
|
-
style: { height: `${Math.max((e -
|
|
1740
|
+
role: v ? void 0 : "img",
|
|
1741
|
+
"aria-label": m,
|
|
1742
|
+
"aria-hidden": v || void 0,
|
|
1743
|
+
children: _.map((e, t) => /* @__PURE__ */ d("span", {
|
|
1744
|
+
className: Y.bar,
|
|
1745
|
+
style: { height: `${Math.max((e - b) / x * 100, 2)}%` }
|
|
1660
1746
|
}, t))
|
|
1661
1747
|
});
|
|
1662
|
-
let
|
|
1663
|
-
return
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1748
|
+
let T = Xe / (_.length - 1), E = (e, t) => _.slice(e, e + t).map((t, n) => `${(e + n) * T},${C(t)}`).join(" "), D = E(0, _.length), O = p != null && _.some((e) => e === 0), k = O ? { stroke: `url(#${g})` } : void 0, A = O ? { fill: `url(#${g})` } : void 0;
|
|
1749
|
+
return w(/* @__PURE__ */ f(u, { children: [
|
|
1750
|
+
O && /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("linearGradient", {
|
|
1751
|
+
id: g,
|
|
1752
|
+
gradientUnits: "userSpaceOnUse",
|
|
1753
|
+
x1: "0",
|
|
1754
|
+
y1: "0",
|
|
1755
|
+
x2: Xe,
|
|
1756
|
+
y2: "0",
|
|
1757
|
+
children: (() => {
|
|
1758
|
+
let e = _.length - 1, t = (e) => _[e] === 0 && _[e + 1] === 0 ? p : "currentColor", n = .2 / e;
|
|
1759
|
+
return Array.from({ length: e }, (r, i) => {
|
|
1760
|
+
let a = t(i), o = i / e + (i > 0 && t(i - 1) !== a ? n : 0), s = (i + 1) / e - (i < e - 1 && t(i + 1) !== a ? n : 0);
|
|
1761
|
+
return [/* @__PURE__ */ d("stop", {
|
|
1762
|
+
offset: o,
|
|
1763
|
+
style: { stopColor: a }
|
|
1764
|
+
}, `${i}a`), /* @__PURE__ */ d("stop", {
|
|
1765
|
+
offset: s,
|
|
1766
|
+
style: { stopColor: a }
|
|
1767
|
+
}, `${i}b`)];
|
|
1768
|
+
}).flat();
|
|
1769
|
+
})()
|
|
1770
|
+
}) }),
|
|
1771
|
+
o && /* @__PURE__ */ d("polygon", {
|
|
1772
|
+
className: Y.fill,
|
|
1773
|
+
points: `0,${Ze} ${D} ${Xe},${Ze}`,
|
|
1774
|
+
style: A
|
|
1775
|
+
}),
|
|
1776
|
+
c ? /* @__PURE__ */ f(u, { children: [_.length > 2 && /* @__PURE__ */ d("polyline", {
|
|
1777
|
+
className: Y.line,
|
|
1778
|
+
points: E(0, _.length - 1),
|
|
1779
|
+
vectorEffect: "non-scaling-stroke",
|
|
1780
|
+
style: k
|
|
1781
|
+
}), /* @__PURE__ */ d("polyline", {
|
|
1782
|
+
className: `${Y.line} ${Y.partial}`,
|
|
1783
|
+
points: E(_.length - 2, 2),
|
|
1784
|
+
vectorEffect: "non-scaling-stroke",
|
|
1785
|
+
style: k
|
|
1786
|
+
})] }) : /* @__PURE__ */ d("polyline", {
|
|
1787
|
+
className: Y.line,
|
|
1788
|
+
points: D,
|
|
1789
|
+
vectorEffect: "non-scaling-stroke",
|
|
1790
|
+
style: k
|
|
1791
|
+
})
|
|
1792
|
+
] }));
|
|
1679
1793
|
}
|
|
1680
1794
|
var $e = {
|
|
1681
1795
|
wrapper: "_wrapper_17ws4_1",
|
|
@@ -1687,28 +1801,28 @@ var $e = {
|
|
|
1687
1801
|
//#endregion
|
|
1688
1802
|
//#region src/components/Textarea/Textarea.tsx
|
|
1689
1803
|
function et({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
|
|
1690
|
-
let c = e.useId(), l = a || c,
|
|
1691
|
-
return /* @__PURE__ */
|
|
1804
|
+
let c = e.useId(), l = a || c, u = `${l}-error`, p = n || !i;
|
|
1805
|
+
return /* @__PURE__ */ f("div", {
|
|
1692
1806
|
className: `${$e.wrapper} ${r}`,
|
|
1693
1807
|
children: [
|
|
1694
|
-
t && /* @__PURE__ */
|
|
1808
|
+
t && /* @__PURE__ */ f("label", {
|
|
1695
1809
|
htmlFor: l,
|
|
1696
1810
|
className: $e.label,
|
|
1697
|
-
children: [t, s.required && /* @__PURE__ */
|
|
1811
|
+
children: [t, s.required && /* @__PURE__ */ d("span", {
|
|
1698
1812
|
"aria-label": "required",
|
|
1699
1813
|
children: " *"
|
|
1700
1814
|
})]
|
|
1701
1815
|
}),
|
|
1702
|
-
/* @__PURE__ */
|
|
1816
|
+
/* @__PURE__ */ d("textarea", {
|
|
1703
1817
|
id: l,
|
|
1704
1818
|
rows: o,
|
|
1705
1819
|
className: `${$e.textarea} ${p ? $e.error : ""}`,
|
|
1706
1820
|
"aria-invalid": p ? "true" : "false",
|
|
1707
|
-
"aria-describedby": n ?
|
|
1821
|
+
"aria-describedby": n ? u : void 0,
|
|
1708
1822
|
...s
|
|
1709
1823
|
}),
|
|
1710
|
-
n && /* @__PURE__ */
|
|
1711
|
-
id:
|
|
1824
|
+
n && /* @__PURE__ */ d("span", {
|
|
1825
|
+
id: u,
|
|
1712
1826
|
className: $e.errorText,
|
|
1713
1827
|
role: "alert",
|
|
1714
1828
|
children: n
|
|
@@ -1716,34 +1830,34 @@ function et({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
|
|
|
1716
1830
|
]
|
|
1717
1831
|
});
|
|
1718
1832
|
}
|
|
1719
|
-
var
|
|
1833
|
+
var tt = {
|
|
1720
1834
|
overlay: "_overlay_xud7c_1",
|
|
1721
1835
|
content: "_content_xud7c_8",
|
|
1722
1836
|
title: "_title_xud7c_26",
|
|
1723
1837
|
description: "_description_xud7c_34",
|
|
1724
1838
|
close: "_close_xud7c_40",
|
|
1725
1839
|
srOnly: "_srOnly_xud7c_62"
|
|
1726
|
-
},
|
|
1840
|
+
}, nt = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ f(j.Root, {
|
|
1727
1841
|
open: n,
|
|
1728
1842
|
onOpenChange: r,
|
|
1729
|
-
children: [e && /* @__PURE__ */
|
|
1843
|
+
children: [e && /* @__PURE__ */ d(j.Trigger, {
|
|
1730
1844
|
asChild: !0,
|
|
1731
1845
|
children: e
|
|
1732
|
-
}), /* @__PURE__ */
|
|
1733
|
-
className: `${
|
|
1846
|
+
}), /* @__PURE__ */ f(j.Portal, { children: [/* @__PURE__ */ d(j.Overlay, { className: tt.overlay }), /* @__PURE__ */ f(j.Content, {
|
|
1847
|
+
className: `${tt.content} ${o}`,
|
|
1734
1848
|
children: [
|
|
1735
|
-
/* @__PURE__ */
|
|
1736
|
-
className: i ?
|
|
1849
|
+
/* @__PURE__ */ d(j.Title, {
|
|
1850
|
+
className: i ? tt.title : tt.srOnly,
|
|
1737
1851
|
children: i || "Dialog"
|
|
1738
1852
|
}),
|
|
1739
|
-
a && /* @__PURE__ */
|
|
1740
|
-
className:
|
|
1853
|
+
a && /* @__PURE__ */ d(j.Description, {
|
|
1854
|
+
className: tt.description,
|
|
1741
1855
|
children: a
|
|
1742
1856
|
}),
|
|
1743
|
-
s && /* @__PURE__ */
|
|
1744
|
-
className:
|
|
1857
|
+
s && /* @__PURE__ */ d(j.Close, {
|
|
1858
|
+
className: tt.close,
|
|
1745
1859
|
"aria-label": "Close",
|
|
1746
|
-
children: /* @__PURE__ */
|
|
1860
|
+
children: /* @__PURE__ */ d(E, {
|
|
1747
1861
|
size: 16,
|
|
1748
1862
|
color: "currentColor"
|
|
1749
1863
|
})
|
|
@@ -1770,7 +1884,7 @@ var Y = {
|
|
|
1770
1884
|
today: "_today_aimna_131",
|
|
1771
1885
|
selected: "_selected_aimna_136",
|
|
1772
1886
|
errorText: "_errorText_aimna_142"
|
|
1773
|
-
},
|
|
1887
|
+
}, rt = [
|
|
1774
1888
|
"Mo",
|
|
1775
1889
|
"Tu",
|
|
1776
1890
|
"We",
|
|
@@ -1778,7 +1892,7 @@ var Y = {
|
|
|
1778
1892
|
"Fr",
|
|
1779
1893
|
"Sa",
|
|
1780
1894
|
"Su"
|
|
1781
|
-
],
|
|
1895
|
+
], it = [
|
|
1782
1896
|
"January",
|
|
1783
1897
|
"February",
|
|
1784
1898
|
"March",
|
|
@@ -1792,30 +1906,30 @@ var Y = {
|
|
|
1792
1906
|
"November",
|
|
1793
1907
|
"December"
|
|
1794
1908
|
];
|
|
1795
|
-
function
|
|
1909
|
+
function at(e) {
|
|
1796
1910
|
let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
|
|
1797
1911
|
return `${e.getFullYear()}-${t}-${n}`;
|
|
1798
1912
|
}
|
|
1799
|
-
function
|
|
1913
|
+
function ot(e, t) {
|
|
1800
1914
|
return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
1801
1915
|
}
|
|
1802
|
-
function
|
|
1916
|
+
function st(e, t) {
|
|
1803
1917
|
let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
|
|
1804
1918
|
for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
|
|
1805
1919
|
return r;
|
|
1806
1920
|
}
|
|
1807
|
-
var
|
|
1808
|
-
let p = e.useId(), m = `${p}-error`,
|
|
1921
|
+
var ct = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: u = at }) => {
|
|
1922
|
+
let p = e.useId(), m = `${p}-error`, h = !!a || !o, [y, b] = l(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = l(S.getFullYear()), [T, E] = l(S.getMonth()), [D, O] = l(S), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
|
|
1809
1923
|
if (e) {
|
|
1810
1924
|
let e = t ?? /* @__PURE__ */ new Date();
|
|
1811
|
-
|
|
1925
|
+
O(e), w(e.getFullYear()), E(e.getMonth());
|
|
1812
1926
|
}
|
|
1813
1927
|
b(e);
|
|
1814
1928
|
};
|
|
1815
1929
|
e.useEffect(() => {
|
|
1816
|
-
j.current &&= (A.current.get(
|
|
1930
|
+
j.current &&= (A.current.get(at(D))?.focus(), !1);
|
|
1817
1931
|
}, [D]);
|
|
1818
|
-
let
|
|
1932
|
+
let N = (e, t) => {
|
|
1819
1933
|
let n = new Date(t), r = {
|
|
1820
1934
|
ArrowLeft: -1,
|
|
1821
1935
|
ArrowRight: 1,
|
|
@@ -1829,101 +1943,101 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1829
1943
|
let t = n.getDate();
|
|
1830
1944
|
n.setDate(1), n.setMonth(n.getMonth() + (e.key === "PageUp" ? -1 : 1) * (e.shiftKey ? 12 : 1)), n.setDate(Math.min(t, new Date(n.getFullYear(), n.getMonth() + 1, 0).getDate()));
|
|
1831
1945
|
} else return;
|
|
1832
|
-
e.preventDefault(), j.current = !0,
|
|
1946
|
+
e.preventDefault(), j.current = !0, O(n), w(n.getFullYear()), E(n.getMonth());
|
|
1833
1947
|
};
|
|
1834
1948
|
e.useEffect(() => {
|
|
1835
1949
|
y && t && (w(t.getFullYear()), E(t.getMonth()));
|
|
1836
1950
|
}, [y]);
|
|
1837
|
-
let
|
|
1951
|
+
let P = () => {
|
|
1838
1952
|
T === 0 ? (E(11), w(C - 1)) : E(T - 1);
|
|
1839
|
-
},
|
|
1953
|
+
}, ee = () => {
|
|
1840
1954
|
T === 11 ? (E(0), w(C + 1)) : E(T + 1);
|
|
1841
|
-
},
|
|
1955
|
+
}, te = (e) => {
|
|
1842
1956
|
n?.(e), b(!1);
|
|
1843
|
-
},
|
|
1844
|
-
return /* @__PURE__ */
|
|
1845
|
-
className: `${X.wrapper} ${
|
|
1957
|
+
}, F = st(C, T);
|
|
1958
|
+
return /* @__PURE__ */ f("div", {
|
|
1959
|
+
className: `${X.wrapper} ${c}`,
|
|
1846
1960
|
children: [
|
|
1847
|
-
r && /* @__PURE__ */
|
|
1961
|
+
r && /* @__PURE__ */ d("span", {
|
|
1848
1962
|
id: `${p}-label`,
|
|
1849
1963
|
className: X.label,
|
|
1850
1964
|
children: r
|
|
1851
1965
|
}),
|
|
1852
|
-
/* @__PURE__ */
|
|
1966
|
+
/* @__PURE__ */ f(k.Root, {
|
|
1853
1967
|
open: y,
|
|
1854
|
-
onOpenChange:
|
|
1855
|
-
children: [/* @__PURE__ */
|
|
1968
|
+
onOpenChange: M,
|
|
1969
|
+
children: [/* @__PURE__ */ d(k.Trigger, {
|
|
1856
1970
|
asChild: !0,
|
|
1857
|
-
children: /* @__PURE__ */
|
|
1971
|
+
children: /* @__PURE__ */ f("button", {
|
|
1858
1972
|
type: "button",
|
|
1859
|
-
className: `${X.trigger} ${
|
|
1973
|
+
className: `${X.trigger} ${h ? X.error : ""}`,
|
|
1860
1974
|
disabled: s,
|
|
1861
1975
|
"aria-labelledby": r ? `${p}-label ${p}-value` : void 0,
|
|
1862
|
-
"aria-invalid":
|
|
1976
|
+
"aria-invalid": h ? "true" : "false",
|
|
1863
1977
|
"aria-describedby": a ? m : void 0,
|
|
1864
|
-
children: [/* @__PURE__ */
|
|
1978
|
+
children: [/* @__PURE__ */ d("span", {
|
|
1865
1979
|
id: `${p}-value`,
|
|
1866
1980
|
className: t ? X.valueText : X.placeholder,
|
|
1867
|
-
children: t ?
|
|
1868
|
-
}), /* @__PURE__ */
|
|
1981
|
+
children: t ? u(t) : i
|
|
1982
|
+
}), /* @__PURE__ */ d(g, {
|
|
1869
1983
|
size: 14,
|
|
1870
1984
|
color: "currentColor"
|
|
1871
1985
|
})]
|
|
1872
1986
|
})
|
|
1873
|
-
}), /* @__PURE__ */
|
|
1987
|
+
}), /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ f(k.Content, {
|
|
1874
1988
|
className: X.calendar,
|
|
1875
1989
|
align: "start",
|
|
1876
1990
|
sideOffset: 5,
|
|
1877
1991
|
"aria-label": r ? `${r} calendar` : "Choose a date",
|
|
1878
1992
|
onOpenAutoFocus: (e) => {
|
|
1879
|
-
e.preventDefault(), A.current.get(
|
|
1993
|
+
e.preventDefault(), A.current.get(at(D))?.focus();
|
|
1880
1994
|
},
|
|
1881
1995
|
children: [
|
|
1882
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ f("div", {
|
|
1883
1997
|
className: X.header,
|
|
1884
1998
|
children: [
|
|
1885
|
-
/* @__PURE__ */
|
|
1999
|
+
/* @__PURE__ */ d("button", {
|
|
1886
2000
|
type: "button",
|
|
1887
2001
|
className: X.navButton,
|
|
1888
|
-
onClick:
|
|
2002
|
+
onClick: P,
|
|
1889
2003
|
"aria-label": "Previous month",
|
|
1890
|
-
children: /* @__PURE__ */
|
|
2004
|
+
children: /* @__PURE__ */ d(_, {
|
|
1891
2005
|
size: 14,
|
|
1892
2006
|
color: "currentColor"
|
|
1893
2007
|
})
|
|
1894
2008
|
}),
|
|
1895
|
-
/* @__PURE__ */
|
|
2009
|
+
/* @__PURE__ */ f("span", {
|
|
1896
2010
|
className: X.monthLabel,
|
|
1897
2011
|
children: [
|
|
1898
|
-
|
|
2012
|
+
it[T],
|
|
1899
2013
|
" ",
|
|
1900
2014
|
C
|
|
1901
2015
|
]
|
|
1902
2016
|
}),
|
|
1903
|
-
/* @__PURE__ */
|
|
2017
|
+
/* @__PURE__ */ d("button", {
|
|
1904
2018
|
type: "button",
|
|
1905
2019
|
className: X.navButton,
|
|
1906
|
-
onClick:
|
|
2020
|
+
onClick: ee,
|
|
1907
2021
|
"aria-label": "Next month",
|
|
1908
|
-
children: /* @__PURE__ */
|
|
2022
|
+
children: /* @__PURE__ */ d(v, {
|
|
1909
2023
|
size: 14,
|
|
1910
2024
|
color: "currentColor"
|
|
1911
2025
|
})
|
|
1912
2026
|
})
|
|
1913
2027
|
]
|
|
1914
2028
|
}),
|
|
1915
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ d("div", {
|
|
1916
2030
|
className: X.weekdays,
|
|
1917
|
-
children:
|
|
2031
|
+
children: rt.map((e) => /* @__PURE__ */ d("span", {
|
|
1918
2032
|
className: X.weekday,
|
|
1919
2033
|
children: e
|
|
1920
2034
|
}, e))
|
|
1921
2035
|
}),
|
|
1922
|
-
/* @__PURE__ */
|
|
2036
|
+
/* @__PURE__ */ d("div", {
|
|
1923
2037
|
className: X.grid,
|
|
1924
|
-
children:
|
|
1925
|
-
let n = e.getMonth() !== T, r =
|
|
1926
|
-
return /* @__PURE__ */
|
|
2038
|
+
children: F.map((e) => {
|
|
2039
|
+
let n = e.getMonth() !== T, r = ot(e, t), i = ot(e, x);
|
|
2040
|
+
return /* @__PURE__ */ d("button", {
|
|
1927
2041
|
type: "button",
|
|
1928
2042
|
className: [
|
|
1929
2043
|
X.day,
|
|
@@ -1931,9 +2045,9 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1931
2045
|
r ? X.selected : "",
|
|
1932
2046
|
i && !r ? X.today : ""
|
|
1933
2047
|
].filter(Boolean).join(" "),
|
|
1934
|
-
onClick: () =>
|
|
2048
|
+
onClick: () => te(e),
|
|
1935
2049
|
ref: (t) => {
|
|
1936
|
-
t ? A.current.set(
|
|
2050
|
+
t ? A.current.set(at(e), t) : A.current.delete(at(e));
|
|
1937
2051
|
},
|
|
1938
2052
|
"aria-label": e.toLocaleDateString(void 0, {
|
|
1939
2053
|
weekday: "long",
|
|
@@ -1943,8 +2057,8 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1943
2057
|
}),
|
|
1944
2058
|
"aria-pressed": r,
|
|
1945
2059
|
"aria-current": i ? "date" : void 0,
|
|
1946
|
-
tabIndex:
|
|
1947
|
-
onKeyDown: (t) =>
|
|
2060
|
+
tabIndex: ot(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
|
|
2061
|
+
onKeyDown: (t) => N(t, e),
|
|
1948
2062
|
children: e.getDate()
|
|
1949
2063
|
}, e.toISOString());
|
|
1950
2064
|
})
|
|
@@ -1952,7 +2066,7 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1952
2066
|
]
|
|
1953
2067
|
}) })]
|
|
1954
2068
|
}),
|
|
1955
|
-
a && /* @__PURE__ */
|
|
2069
|
+
a && /* @__PURE__ */ d("span", {
|
|
1956
2070
|
id: m,
|
|
1957
2071
|
className: X.errorText,
|
|
1958
2072
|
role: "alert",
|
|
@@ -1960,7 +2074,77 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1960
2074
|
})
|
|
1961
2075
|
]
|
|
1962
2076
|
});
|
|
1963
|
-
},
|
|
2077
|
+
}, lt = {
|
|
2078
|
+
skeleton: "_skeleton_fo2zs_11",
|
|
2079
|
+
"indx-skeleton-pulse": "_indx-skeleton-pulse_fo2zs_1",
|
|
2080
|
+
level3: "_level3_fo2zs_20",
|
|
2081
|
+
appear: "_appear_fo2zs_25",
|
|
2082
|
+
"indx-skeleton-appear": "_indx-skeleton-appear_fo2zs_1"
|
|
2083
|
+
}, ut = (e) => typeof e == "number" ? `${e}px` : e;
|
|
2084
|
+
function dt({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
|
|
2085
|
+
return /* @__PURE__ */ d("span", {
|
|
2086
|
+
"aria-hidden": "true",
|
|
2087
|
+
className: `${lt.skeleton} ${n === 3 ? lt.level3 : ""} ${i ? lt.appear : ""} ${a}`,
|
|
2088
|
+
style: {
|
|
2089
|
+
width: ut(e),
|
|
2090
|
+
height: ut(t),
|
|
2091
|
+
"--skeleton-delay": `${r}s`,
|
|
2092
|
+
...o
|
|
2093
|
+
}
|
|
2094
|
+
});
|
|
2095
|
+
}
|
|
2096
|
+
var Z = {
|
|
2097
|
+
stat: "_stat_1un6s_2",
|
|
2098
|
+
label: "_label_1un6s_17",
|
|
2099
|
+
hinted: "_hinted_1un6s_23",
|
|
2100
|
+
value: "_value_1un6s_30",
|
|
2101
|
+
icon: "_icon_1un6s_44",
|
|
2102
|
+
foot: "_foot_1un6s_50",
|
|
2103
|
+
group: "_group_1un6s_60",
|
|
2104
|
+
fixed: "_fixed_1un6s_66",
|
|
2105
|
+
many: "_many_1un6s_71",
|
|
2106
|
+
pairs: "_pairs_1un6s_75"
|
|
2107
|
+
}, ft = 28;
|
|
2108
|
+
function pt({ label: e, value: r, icon: i, color: a, hint: o, children: s, className: c = "" }) {
|
|
2109
|
+
let l = /* @__PURE__ */ d("span", {
|
|
2110
|
+
className: `${Z.label} ${o ? Z.hinted : ""}`,
|
|
2111
|
+
children: e
|
|
2112
|
+
}), u = i && n(i) ? t(i, {
|
|
2113
|
+
size: i.props.size ?? 28,
|
|
2114
|
+
color: i.props.color ?? "currentColor"
|
|
2115
|
+
}) : i;
|
|
2116
|
+
return /* @__PURE__ */ f("div", {
|
|
2117
|
+
className: `${Z.stat} ${c}`,
|
|
2118
|
+
children: [
|
|
2119
|
+
o ? /* @__PURE__ */ d(Ue, {
|
|
2120
|
+
content: o,
|
|
2121
|
+
children: l
|
|
2122
|
+
}) : l,
|
|
2123
|
+
/* @__PURE__ */ f("span", {
|
|
2124
|
+
className: Z.value,
|
|
2125
|
+
style: a ? { color: a } : void 0,
|
|
2126
|
+
children: [u != null && /* @__PURE__ */ d("span", {
|
|
2127
|
+
className: Z.icon,
|
|
2128
|
+
"aria-hidden": "true",
|
|
2129
|
+
children: u
|
|
2130
|
+
}), r]
|
|
2131
|
+
}),
|
|
2132
|
+
s != null && /* @__PURE__ */ d("span", {
|
|
2133
|
+
className: Z.foot,
|
|
2134
|
+
children: s
|
|
2135
|
+
})
|
|
2136
|
+
]
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
function mt({ children: e, columns: t, className: n = "" }) {
|
|
2140
|
+
let r = t ? `${Z.fixed} ${t > 3 ? Z.many : ""} ${t > 2 ? Z.pairs : ""}` : "";
|
|
2141
|
+
return /* @__PURE__ */ d("div", {
|
|
2142
|
+
className: `${Z.group} ${r} ${n}`,
|
|
2143
|
+
style: t ? { "--stat-columns": t } : void 0,
|
|
2144
|
+
children: e
|
|
2145
|
+
});
|
|
2146
|
+
}
|
|
2147
|
+
var Q = {
|
|
1964
2148
|
root: "_root_biiv1_1",
|
|
1965
2149
|
micro: "_micro_biiv1_7",
|
|
1966
2150
|
default: "_default_biiv1_8",
|
|
@@ -1976,13 +2160,13 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1976
2160
|
panelTrigger: "_panelTrigger_biiv1_77",
|
|
1977
2161
|
viewport: "_viewport_biiv1_60",
|
|
1978
2162
|
content: "_content_biiv1_110"
|
|
1979
|
-
},
|
|
2163
|
+
}, ht = {
|
|
1980
2164
|
micro: 14,
|
|
1981
2165
|
default: 14,
|
|
1982
2166
|
large: 21
|
|
1983
|
-
},
|
|
2167
|
+
}, gt = e.createContext("default"), _t = typeof window > "u" ? e.useEffect : e.useLayoutEffect, vt = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, u) => {
|
|
1984
2168
|
let p = e.useRef(null), m = e.useRef(!1);
|
|
1985
|
-
|
|
2169
|
+
_t(() => {
|
|
1986
2170
|
let e = p.current;
|
|
1987
2171
|
if (!e || r !== "trigger") return;
|
|
1988
2172
|
let t = () => {
|
|
@@ -2011,141 +2195,144 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
2011
2195
|
let h = {
|
|
2012
2196
|
...o,
|
|
2013
2197
|
...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
|
|
2014
|
-
}, g = r === "trigger" ?
|
|
2015
|
-
return /* @__PURE__ */
|
|
2198
|
+
}, g = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
|
|
2199
|
+
return /* @__PURE__ */ d(gt.Provider, {
|
|
2016
2200
|
value: t,
|
|
2017
|
-
children: /* @__PURE__ */
|
|
2201
|
+
children: /* @__PURE__ */ f(M.Root, {
|
|
2018
2202
|
...l,
|
|
2019
2203
|
ref: (e) => {
|
|
2020
|
-
p.current = e, typeof
|
|
2204
|
+
p.current = e, typeof u == "function" ? u(e) : u && (u.current = e);
|
|
2021
2205
|
},
|
|
2022
2206
|
"aria-label": c,
|
|
2023
2207
|
style: h,
|
|
2024
|
-
className: `${
|
|
2025
|
-
children: [s, /* @__PURE__ */
|
|
2026
|
-
className:
|
|
2027
|
-
children: /* @__PURE__ */
|
|
2208
|
+
className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${g} ${a}`,
|
|
2209
|
+
children: [s, /* @__PURE__ */ d("div", {
|
|
2210
|
+
className: Q.viewportPosition,
|
|
2211
|
+
children: /* @__PURE__ */ d(M.Viewport, { className: Q.viewport })
|
|
2028
2212
|
})]
|
|
2029
2213
|
})
|
|
2030
2214
|
});
|
|
2031
2215
|
});
|
|
2032
|
-
|
|
2033
|
-
var
|
|
2216
|
+
vt.displayName = "NavigationMenu";
|
|
2217
|
+
var yt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ d(M.List, {
|
|
2034
2218
|
...t,
|
|
2035
2219
|
ref: n,
|
|
2036
|
-
className: `${
|
|
2220
|
+
className: `${Q.list} ${e}`
|
|
2037
2221
|
}));
|
|
2038
|
-
|
|
2039
|
-
var
|
|
2040
|
-
function
|
|
2041
|
-
let n = e.useContext(
|
|
2042
|
-
return t ? /* @__PURE__ */
|
|
2043
|
-
className:
|
|
2222
|
+
yt.displayName = "NavigationMenuList";
|
|
2223
|
+
var bt = M.Item;
|
|
2224
|
+
function xt({ icon: t }) {
|
|
2225
|
+
let n = e.useContext(gt);
|
|
2226
|
+
return t ? /* @__PURE__ */ d("span", {
|
|
2227
|
+
className: Q.icon,
|
|
2044
2228
|
"aria-hidden": "true",
|
|
2045
2229
|
children: e.cloneElement(t, {
|
|
2046
|
-
size:
|
|
2230
|
+
size: ht[n],
|
|
2047
2231
|
color: "currentColor"
|
|
2048
2232
|
})
|
|
2049
2233
|
}) : null;
|
|
2050
2234
|
}
|
|
2051
|
-
var
|
|
2052
|
-
let o = e.useContext(
|
|
2053
|
-
return /* @__PURE__ */
|
|
2235
|
+
var St = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
|
|
2236
|
+
let o = e.useContext(gt);
|
|
2237
|
+
return /* @__PURE__ */ f(M.Trigger, {
|
|
2054
2238
|
...i,
|
|
2055
2239
|
ref: a,
|
|
2056
|
-
className: `${
|
|
2240
|
+
className: `${Q.control} ${t}`,
|
|
2057
2241
|
children: [
|
|
2058
|
-
/* @__PURE__ */
|
|
2242
|
+
/* @__PURE__ */ d(xt, { icon: n }),
|
|
2059
2243
|
r,
|
|
2060
|
-
/* @__PURE__ */
|
|
2061
|
-
className:
|
|
2244
|
+
/* @__PURE__ */ d("span", {
|
|
2245
|
+
className: Q.caret,
|
|
2062
2246
|
"aria-hidden": "true",
|
|
2063
|
-
children: /* @__PURE__ */
|
|
2064
|
-
size:
|
|
2247
|
+
children: /* @__PURE__ */ d(g, {
|
|
2248
|
+
size: ht[o],
|
|
2065
2249
|
color: "currentColor"
|
|
2066
2250
|
})
|
|
2067
2251
|
})
|
|
2068
2252
|
]
|
|
2069
2253
|
});
|
|
2070
2254
|
});
|
|
2071
|
-
|
|
2072
|
-
var
|
|
2255
|
+
St.displayName = "NavigationMenuTrigger";
|
|
2256
|
+
var Ct = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ d(M.Content, {
|
|
2073
2257
|
...t,
|
|
2074
2258
|
ref: n,
|
|
2075
|
-
className: `${
|
|
2259
|
+
className: `${Q.content} ${e}`
|
|
2076
2260
|
}));
|
|
2077
|
-
|
|
2078
|
-
var
|
|
2261
|
+
Ct.displayName = "NavigationMenuContent";
|
|
2262
|
+
var wt = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ d(M.Link, {
|
|
2079
2263
|
...i,
|
|
2080
2264
|
ref: a,
|
|
2081
|
-
className: `${e === "navigation" ?
|
|
2082
|
-
children: e === "navigation" && !i.asChild ? /* @__PURE__ */
|
|
2265
|
+
className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
|
|
2266
|
+
children: e === "navigation" && !i.asChild ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(xt, { icon: t }), r] }) : r
|
|
2083
2267
|
}));
|
|
2084
|
-
|
|
2085
|
-
var
|
|
2086
|
-
panel: "
|
|
2087
|
-
header: "
|
|
2088
|
-
thread: "
|
|
2089
|
-
footer: "
|
|
2090
|
-
hints: "
|
|
2091
|
-
kbd: "
|
|
2092
|
-
userRow: "
|
|
2093
|
-
userMsg: "
|
|
2094
|
-
assistant: "
|
|
2095
|
-
assistantHead: "
|
|
2096
|
-
assistantBody: "
|
|
2097
|
-
composer: "
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2268
|
+
wt.displayName = "NavigationMenuLink";
|
|
2269
|
+
var $ = {
|
|
2270
|
+
panel: "_panel_98mmj_7",
|
|
2271
|
+
header: "_header_98mmj_15",
|
|
2272
|
+
thread: "_thread_98mmj_16",
|
|
2273
|
+
footer: "_footer_98mmj_25",
|
|
2274
|
+
hints: "_hints_98mmj_28",
|
|
2275
|
+
kbd: "_kbd_98mmj_36",
|
|
2276
|
+
userRow: "_userRow_98mmj_50",
|
|
2277
|
+
userMsg: "_userMsg_98mmj_51",
|
|
2278
|
+
assistant: "_assistant_98mmj_62",
|
|
2279
|
+
assistantHead: "_assistantHead_98mmj_63",
|
|
2280
|
+
assistantBody: "_assistantBody_98mmj_71",
|
|
2281
|
+
composer: "_composer_98mmj_78",
|
|
2282
|
+
composerWrap: "_composerWrap_98mmj_91",
|
|
2283
|
+
composerOver: "_composerOver_98mmj_92",
|
|
2284
|
+
composerNote: "_composerNote_98mmj_95",
|
|
2285
|
+
composerField: "_composerField_98mmj_96",
|
|
2286
|
+
composerIcon: "_composerIcon_98mmj_103",
|
|
2287
|
+
composerInput: "_composerInput_98mmj_112",
|
|
2288
|
+
composerButton: "_composerButton_98mmj_138",
|
|
2289
|
+
ref: "_ref_98mmj_142",
|
|
2290
|
+
citationLink: "_citationLink_98mmj_162",
|
|
2291
|
+
citationNumber: "_citationNumber_98mmj_166",
|
|
2292
|
+
label: "_label_98mmj_169",
|
|
2293
|
+
stack: "_stack_98mmj_170",
|
|
2294
|
+
wrap: "_wrap_98mmj_171",
|
|
2295
|
+
status: "_status_98mmj_172",
|
|
2296
|
+
statusSpinner: "_statusSpinner_98mmj_173",
|
|
2297
|
+
suggestions: "_suggestions_98mmj_174",
|
|
2298
|
+
actions: "_actions_98mmj_175",
|
|
2299
|
+
actionsSpacer: "_actionsSpacer_98mmj_176"
|
|
2113
2300
|
};
|
|
2114
2301
|
//#endregion
|
|
2115
2302
|
//#region src/components/Chat/ChatPanel.tsx
|
|
2116
|
-
function
|
|
2117
|
-
return /* @__PURE__ */
|
|
2118
|
-
className:
|
|
2303
|
+
function Tt({ children: e }) {
|
|
2304
|
+
return /* @__PURE__ */ d("kbd", {
|
|
2305
|
+
className: $.kbd,
|
|
2119
2306
|
children: e
|
|
2120
2307
|
});
|
|
2121
2308
|
}
|
|
2122
|
-
var
|
|
2123
|
-
/* @__PURE__ */
|
|
2124
|
-
/* @__PURE__ */
|
|
2125
|
-
/* @__PURE__ */
|
|
2309
|
+
var Et = /* @__PURE__ */ f(u, { children: [
|
|
2310
|
+
/* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(Tt, { children: "↵" }), " send"] }),
|
|
2311
|
+
/* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(Tt, { children: "⇧↵" }), " new line"] }),
|
|
2312
|
+
/* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(Tt, { children: "esc" }), " close"] })
|
|
2126
2313
|
] });
|
|
2127
|
-
function
|
|
2128
|
-
return /* @__PURE__ */
|
|
2129
|
-
className: `${
|
|
2314
|
+
function Dt({ header: e, children: t, composer: n, hints: r = Et, className: i = "", threadRef: a, "aria-label": o }) {
|
|
2315
|
+
return /* @__PURE__ */ f("div", {
|
|
2316
|
+
className: `${$.panel} ${i}`,
|
|
2130
2317
|
"aria-label": o,
|
|
2131
2318
|
children: [
|
|
2132
|
-
e && /* @__PURE__ */
|
|
2133
|
-
className:
|
|
2319
|
+
e && /* @__PURE__ */ d("div", {
|
|
2320
|
+
className: $.header,
|
|
2134
2321
|
children: e
|
|
2135
2322
|
}),
|
|
2136
|
-
/* @__PURE__ */
|
|
2137
|
-
className:
|
|
2323
|
+
/* @__PURE__ */ d("div", {
|
|
2324
|
+
className: $.thread,
|
|
2138
2325
|
ref: a,
|
|
2139
2326
|
role: "log",
|
|
2140
2327
|
"aria-live": "polite",
|
|
2141
2328
|
children: t
|
|
2142
2329
|
}),
|
|
2143
|
-
n && /* @__PURE__ */
|
|
2144
|
-
className:
|
|
2330
|
+
n && /* @__PURE__ */ d("div", {
|
|
2331
|
+
className: $.footer,
|
|
2145
2332
|
children: n
|
|
2146
2333
|
}),
|
|
2147
|
-
r !== !1 && r && /* @__PURE__ */
|
|
2148
|
-
className:
|
|
2334
|
+
r !== !1 && r && /* @__PURE__ */ d("div", {
|
|
2335
|
+
className: $.hints,
|
|
2149
2336
|
children: r
|
|
2150
2337
|
})
|
|
2151
2338
|
]
|
|
@@ -2153,104 +2340,116 @@ function bt({ header: e, children: t, composer: n, hints: r = yt, className: i =
|
|
|
2153
2340
|
}
|
|
2154
2341
|
//#endregion
|
|
2155
2342
|
//#region src/components/Chat/Message.tsx
|
|
2156
|
-
function
|
|
2157
|
-
return /* @__PURE__ */
|
|
2158
|
-
className:
|
|
2159
|
-
children: /* @__PURE__ */
|
|
2160
|
-
className: `${
|
|
2343
|
+
function Ot({ children: e, className: t = "" }) {
|
|
2344
|
+
return /* @__PURE__ */ d("div", {
|
|
2345
|
+
className: $.userRow,
|
|
2346
|
+
children: /* @__PURE__ */ d("div", {
|
|
2347
|
+
className: `${$.userMsg} ${t}`,
|
|
2161
2348
|
children: e
|
|
2162
2349
|
})
|
|
2163
2350
|
});
|
|
2164
2351
|
}
|
|
2165
|
-
function
|
|
2166
|
-
return /* @__PURE__ */
|
|
2167
|
-
className: `${
|
|
2168
|
-
children: [/* @__PURE__ */
|
|
2169
|
-
className:
|
|
2170
|
-
children: [t === void 0 ? /* @__PURE__ */
|
|
2352
|
+
function kt({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
|
|
2353
|
+
return /* @__PURE__ */ f("div", {
|
|
2354
|
+
className: `${$.assistant} ${r}`,
|
|
2355
|
+
children: [/* @__PURE__ */ f("div", {
|
|
2356
|
+
className: $.assistantHead,
|
|
2357
|
+
children: [t === void 0 ? /* @__PURE__ */ d(p, {
|
|
2171
2358
|
color: "currentColor",
|
|
2172
2359
|
size: 14
|
|
2173
|
-
}) : t, /* @__PURE__ */
|
|
2174
|
-
}), /* @__PURE__ */
|
|
2175
|
-
className:
|
|
2360
|
+
}) : t, /* @__PURE__ */ d("span", { children: e })]
|
|
2361
|
+
}), /* @__PURE__ */ d("div", {
|
|
2362
|
+
className: $.assistantBody,
|
|
2176
2363
|
children: n
|
|
2177
2364
|
})]
|
|
2178
2365
|
});
|
|
2179
2366
|
}
|
|
2180
2367
|
//#endregion
|
|
2181
2368
|
//#region src/components/Chat/Composer.tsx
|
|
2182
|
-
var
|
|
2183
|
-
let
|
|
2184
|
-
o(
|
|
2185
|
-
let e =
|
|
2369
|
+
var At = 18, jt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: a, streaming: s = !1, placeholder: l = "Ask a question…", disabled: u = !1, autoFocus: h = !1, icon: g, maxLines: _ = 6, maxLength: v, className: y = "", "aria-label": b = "Message" }, x) {
|
|
2370
|
+
let S = c(null);
|
|
2371
|
+
o(x, () => ({ focus: () => S.current?.focus() }), []), i(() => {
|
|
2372
|
+
let e = S.current;
|
|
2186
2373
|
if (!e) return;
|
|
2187
2374
|
e.style.height = "auto";
|
|
2188
|
-
let t =
|
|
2375
|
+
let t = At * _ + 12;
|
|
2189
2376
|
e.style.height = `${Math.min(e.scrollHeight, t)}px`;
|
|
2190
2377
|
}, [e, _]);
|
|
2191
|
-
let
|
|
2192
|
-
|
|
2378
|
+
let C = v !== void 0 && v > 0 && e.length > v, T = !s && !u && !C && e.trim().length > 0, E = r(() => {
|
|
2379
|
+
T && n(e.trim());
|
|
2193
2380
|
}, [
|
|
2194
|
-
|
|
2381
|
+
T,
|
|
2195
2382
|
n,
|
|
2196
2383
|
e
|
|
2197
2384
|
]);
|
|
2198
|
-
return /* @__PURE__ */
|
|
2199
|
-
className:
|
|
2200
|
-
children: [/* @__PURE__ */
|
|
2201
|
-
className:
|
|
2202
|
-
children: [
|
|
2203
|
-
className:
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2385
|
+
return /* @__PURE__ */ f("div", {
|
|
2386
|
+
className: $.composerWrap,
|
|
2387
|
+
children: [/* @__PURE__ */ f("div", {
|
|
2388
|
+
className: `${$.composer} ${C ? $.composerOver : ""} ${y}`,
|
|
2389
|
+
children: [/* @__PURE__ */ f("div", {
|
|
2390
|
+
className: $.composerField,
|
|
2391
|
+
children: [g !== null && /* @__PURE__ */ d("span", {
|
|
2392
|
+
className: $.composerIcon,
|
|
2393
|
+
"aria-hidden": "true",
|
|
2394
|
+
children: g === void 0 ? /* @__PURE__ */ d(p, {
|
|
2395
|
+
color: "currentColor",
|
|
2396
|
+
size: 21
|
|
2397
|
+
}) : g
|
|
2398
|
+
}), /* @__PURE__ */ d("textarea", {
|
|
2399
|
+
ref: S,
|
|
2400
|
+
className: $.composerInput,
|
|
2401
|
+
rows: 1,
|
|
2402
|
+
value: e,
|
|
2403
|
+
placeholder: l,
|
|
2404
|
+
disabled: u,
|
|
2405
|
+
autoFocus: h,
|
|
2406
|
+
"aria-label": b,
|
|
2407
|
+
onChange: (e) => t(e.target.value),
|
|
2408
|
+
onKeyDown: (e) => {
|
|
2409
|
+
e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), E());
|
|
2410
|
+
}
|
|
2411
|
+
})]
|
|
2412
|
+
}), /* @__PURE__ */ d("div", {
|
|
2413
|
+
className: $.composerButton,
|
|
2414
|
+
children: s ? /* @__PURE__ */ d(I, {
|
|
2415
|
+
variant: "secondary",
|
|
2416
|
+
size: "micro",
|
|
2417
|
+
"aria-label": "Stop",
|
|
2418
|
+
iconLeft: /* @__PURE__ */ d(w, {}),
|
|
2419
|
+
onClick: a
|
|
2420
|
+
}) : /* @__PURE__ */ d(I, {
|
|
2421
|
+
variant: "primary",
|
|
2422
|
+
size: "micro",
|
|
2423
|
+
"aria-label": "Send",
|
|
2424
|
+
iconLeft: /* @__PURE__ */ d(m, {}),
|
|
2425
|
+
disabled: !T,
|
|
2426
|
+
onClick: E
|
|
2427
|
+
})
|
|
2222
2428
|
})]
|
|
2223
|
-
}), /* @__PURE__ */
|
|
2224
|
-
className:
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
"
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
variant: "primary",
|
|
2233
|
-
size: "micro",
|
|
2234
|
-
"aria-label": "Send",
|
|
2235
|
-
iconLeft: /* @__PURE__ */ u(p, {}),
|
|
2236
|
-
disabled: !S,
|
|
2237
|
-
onClick: w
|
|
2238
|
-
})
|
|
2429
|
+
}), C && /* @__PURE__ */ f("p", {
|
|
2430
|
+
className: $.composerNote,
|
|
2431
|
+
role: "status",
|
|
2432
|
+
children: [
|
|
2433
|
+
e.length.toLocaleString(),
|
|
2434
|
+
" of ",
|
|
2435
|
+
v.toLocaleString(),
|
|
2436
|
+
" characters. Shorten it to send."
|
|
2437
|
+
]
|
|
2239
2438
|
})]
|
|
2240
2439
|
});
|
|
2241
2440
|
});
|
|
2242
2441
|
//#endregion
|
|
2243
2442
|
//#region src/components/Chat/Citation.tsx
|
|
2244
|
-
function
|
|
2245
|
-
let a = `${
|
|
2246
|
-
return t ? /* @__PURE__ */
|
|
2443
|
+
function Mt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
2444
|
+
let a = `${$.ref} ${i}`;
|
|
2445
|
+
return t ? /* @__PURE__ */ d("a", {
|
|
2247
2446
|
href: t,
|
|
2248
2447
|
className: a,
|
|
2249
2448
|
onClick: n,
|
|
2250
2449
|
title: r,
|
|
2251
2450
|
"aria-label": `Source ${e}${r ? `: ${r}` : ""}`,
|
|
2252
2451
|
children: e
|
|
2253
|
-
}) : /* @__PURE__ */
|
|
2452
|
+
}) : /* @__PURE__ */ d("button", {
|
|
2254
2453
|
type: "button",
|
|
2255
2454
|
className: a,
|
|
2256
2455
|
onClick: n,
|
|
@@ -2259,34 +2458,34 @@ function Tt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
|
2259
2458
|
children: e
|
|
2260
2459
|
});
|
|
2261
2460
|
}
|
|
2262
|
-
function
|
|
2263
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
2264
|
-
className: `${
|
|
2265
|
-
children: [/* @__PURE__ */
|
|
2266
|
-
className:
|
|
2461
|
+
function Nt({ items: e, label: t = "Sources", className: n = "" }) {
|
|
2462
|
+
return e.length === 0 ? null : /* @__PURE__ */ f("div", {
|
|
2463
|
+
className: `${$.stack} ${n}`,
|
|
2464
|
+
children: [/* @__PURE__ */ d("div", {
|
|
2465
|
+
className: $.label,
|
|
2267
2466
|
children: t
|
|
2268
|
-
}), /* @__PURE__ */
|
|
2269
|
-
className:
|
|
2467
|
+
}), /* @__PURE__ */ d("div", {
|
|
2468
|
+
className: $.wrap,
|
|
2270
2469
|
children: e.map((e) => {
|
|
2271
|
-
let t = /* @__PURE__ */
|
|
2470
|
+
let t = /* @__PURE__ */ f(Pe, {
|
|
2272
2471
|
icon: e.icon,
|
|
2273
2472
|
children: [
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
className:
|
|
2473
|
+
/* @__PURE__ */ d("span", {
|
|
2474
|
+
className: $.citationNumber,
|
|
2276
2475
|
children: e.n
|
|
2277
2476
|
}),
|
|
2278
2477
|
" ",
|
|
2279
2478
|
e.title
|
|
2280
2479
|
]
|
|
2281
2480
|
});
|
|
2282
|
-
return e.href ? /* @__PURE__ */
|
|
2481
|
+
return e.href ? /* @__PURE__ */ d("a", {
|
|
2283
2482
|
href: e.href,
|
|
2284
|
-
className:
|
|
2483
|
+
className: $.citationLink,
|
|
2285
2484
|
onClick: e.onClick,
|
|
2286
2485
|
children: t
|
|
2287
|
-
}, e.n) : /* @__PURE__ */
|
|
2486
|
+
}, e.n) : /* @__PURE__ */ d("button", {
|
|
2288
2487
|
type: "button",
|
|
2289
|
-
className:
|
|
2488
|
+
className: $.citationLink,
|
|
2290
2489
|
onClick: e.onClick,
|
|
2291
2490
|
children: t
|
|
2292
2491
|
}, e.n);
|
|
@@ -2296,27 +2495,30 @@ function Et({ items: e, label: t = "Sources", className: n = "" }) {
|
|
|
2296
2495
|
}
|
|
2297
2496
|
//#endregion
|
|
2298
2497
|
//#region src/components/Chat/StreamStatus.tsx
|
|
2299
|
-
function
|
|
2300
|
-
return /* @__PURE__ */
|
|
2301
|
-
className: `${
|
|
2498
|
+
function Pt({ children: e, spinner: t, className: n = "" }) {
|
|
2499
|
+
return /* @__PURE__ */ f("div", {
|
|
2500
|
+
className: `${$.status} ${n}`,
|
|
2302
2501
|
role: "status",
|
|
2303
|
-
children: [/* @__PURE__ */
|
|
2304
|
-
className:
|
|
2305
|
-
children: /* @__PURE__ */
|
|
2306
|
-
|
|
2502
|
+
children: [/* @__PURE__ */ d("span", {
|
|
2503
|
+
className: $.statusSpinner,
|
|
2504
|
+
children: /* @__PURE__ */ d(F, {
|
|
2505
|
+
name: t,
|
|
2506
|
+
size: 14
|
|
2507
|
+
})
|
|
2508
|
+
}), /* @__PURE__ */ d("span", { children: e })]
|
|
2307
2509
|
});
|
|
2308
2510
|
}
|
|
2309
2511
|
//#endregion
|
|
2310
2512
|
//#region src/components/Chat/Suggestions.tsx
|
|
2311
|
-
function
|
|
2312
|
-
return /* @__PURE__ */
|
|
2313
|
-
className: `${
|
|
2314
|
-
children: [/* @__PURE__ */
|
|
2315
|
-
className:
|
|
2513
|
+
function Ft({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
|
|
2514
|
+
return /* @__PURE__ */ f("div", {
|
|
2515
|
+
className: `${$.suggestions} ${r}`,
|
|
2516
|
+
children: [/* @__PURE__ */ d("div", {
|
|
2517
|
+
className: $.label,
|
|
2316
2518
|
children: n
|
|
2317
|
-
}), /* @__PURE__ */
|
|
2318
|
-
className:
|
|
2319
|
-
children: e.map((e) => /* @__PURE__ */
|
|
2519
|
+
}), /* @__PURE__ */ d("div", {
|
|
2520
|
+
className: $.wrap,
|
|
2521
|
+
children: e.map((e) => /* @__PURE__ */ d(I, {
|
|
2320
2522
|
variant: "secondary",
|
|
2321
2523
|
size: "micro",
|
|
2322
2524
|
onClick: () => t(e),
|
|
@@ -2327,43 +2529,43 @@ function Ot({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
|
|
|
2327
2529
|
}
|
|
2328
2530
|
//#endregion
|
|
2329
2531
|
//#region src/components/Chat/AnswerActions.tsx
|
|
2330
|
-
function
|
|
2331
|
-
return /* @__PURE__ */
|
|
2332
|
-
className: `${
|
|
2532
|
+
function It({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
|
|
2533
|
+
return /* @__PURE__ */ f("div", {
|
|
2534
|
+
className: `${$.actions} ${i}`,
|
|
2333
2535
|
children: [
|
|
2334
|
-
e && /* @__PURE__ */
|
|
2536
|
+
e && /* @__PURE__ */ d(I, {
|
|
2335
2537
|
variant: "ghost",
|
|
2336
2538
|
size: "micro",
|
|
2337
|
-
iconLeft:
|
|
2539
|
+
iconLeft: d(t ? h : y, {}),
|
|
2338
2540
|
onClick: e,
|
|
2339
2541
|
children: t ? "Copied" : "Copy"
|
|
2340
2542
|
}),
|
|
2341
|
-
/* @__PURE__ */
|
|
2342
|
-
n && /* @__PURE__ */
|
|
2543
|
+
/* @__PURE__ */ d("span", { className: $.actionsSpacer }),
|
|
2544
|
+
n && /* @__PURE__ */ d(I, {
|
|
2343
2545
|
variant: "ghost",
|
|
2344
2546
|
size: "micro",
|
|
2345
|
-
iconRight: /* @__PURE__ */
|
|
2547
|
+
iconRight: /* @__PURE__ */ d(v, {}),
|
|
2346
2548
|
onClick: n,
|
|
2347
2549
|
children: r
|
|
2348
2550
|
})
|
|
2349
2551
|
]
|
|
2350
2552
|
});
|
|
2351
2553
|
}
|
|
2352
|
-
var
|
|
2554
|
+
var Lt = {
|
|
2353
2555
|
truncate: "_truncate_za4sm_1",
|
|
2354
2556
|
start: "_start_za4sm_13"
|
|
2355
2557
|
};
|
|
2356
2558
|
//#endregion
|
|
2357
2559
|
//#region src/components/Truncate/Truncate.tsx
|
|
2358
|
-
function
|
|
2560
|
+
function Rt({ children: e, side: t = "end", title: n, className: r = "" }) {
|
|
2359
2561
|
let i = n ?? (typeof e == "string" ? e : void 0);
|
|
2360
|
-
return /* @__PURE__ */
|
|
2361
|
-
className: `${
|
|
2562
|
+
return /* @__PURE__ */ d("span", {
|
|
2563
|
+
className: `${Lt.truncate} ${t === "start" ? Lt.start : ""} ${r}`,
|
|
2362
2564
|
title: i,
|
|
2363
|
-
children: t === "start" ? /* @__PURE__ */
|
|
2565
|
+
children: t === "start" ? /* @__PURE__ */ d("bdi", { children: e }) : e
|
|
2364
2566
|
});
|
|
2365
2567
|
}
|
|
2366
|
-
var
|
|
2568
|
+
var zt = {
|
|
2367
2569
|
disclosure: "_disclosure_94bgy_1",
|
|
2368
2570
|
trigger: "_trigger_94bgy_7",
|
|
2369
2571
|
summary: "_summary_94bgy_31",
|
|
@@ -2372,36 +2574,84 @@ var $ = {
|
|
|
2372
2574
|
};
|
|
2373
2575
|
//#endregion
|
|
2374
2576
|
//#region src/components/Disclosure/Disclosure.tsx
|
|
2375
|
-
function
|
|
2376
|
-
let [s, c] = e.useState(i), l = r ?? s,
|
|
2377
|
-
return /* @__PURE__ */
|
|
2378
|
-
className: `${
|
|
2577
|
+
function Bt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
|
|
2578
|
+
let [s, c] = e.useState(i), l = r ?? s, u = e.useId();
|
|
2579
|
+
return /* @__PURE__ */ f("div", {
|
|
2580
|
+
className: `${zt.disclosure} ${o}`,
|
|
2379
2581
|
"data-state": l ? "open" : "closed",
|
|
2380
|
-
children: [/* @__PURE__ */
|
|
2582
|
+
children: [/* @__PURE__ */ f("button", {
|
|
2381
2583
|
type: "button",
|
|
2382
|
-
className:
|
|
2584
|
+
className: zt.trigger,
|
|
2383
2585
|
"aria-expanded": l,
|
|
2384
|
-
"aria-controls": l ?
|
|
2586
|
+
"aria-controls": l ? u : void 0,
|
|
2385
2587
|
onClick: () => {
|
|
2386
2588
|
r === void 0 && c(!l), a?.(!l);
|
|
2387
2589
|
},
|
|
2388
|
-
children: [/* @__PURE__ */
|
|
2389
|
-
className:
|
|
2590
|
+
children: [/* @__PURE__ */ d("span", {
|
|
2591
|
+
className: zt.summary,
|
|
2390
2592
|
children: t
|
|
2391
|
-
}), /* @__PURE__ */
|
|
2392
|
-
className:
|
|
2593
|
+
}), /* @__PURE__ */ d("span", {
|
|
2594
|
+
className: zt.chevron,
|
|
2393
2595
|
"aria-hidden": "true",
|
|
2394
|
-
children:
|
|
2596
|
+
children: d(l ? g : v, {
|
|
2395
2597
|
size: 14,
|
|
2396
2598
|
color: "currentColor"
|
|
2397
2599
|
})
|
|
2398
2600
|
})]
|
|
2399
|
-
}), l && /* @__PURE__ */
|
|
2400
|
-
id:
|
|
2401
|
-
className:
|
|
2601
|
+
}), l && /* @__PURE__ */ d("div", {
|
|
2602
|
+
id: u,
|
|
2603
|
+
className: zt.content,
|
|
2402
2604
|
children: n
|
|
2403
2605
|
})]
|
|
2404
2606
|
});
|
|
2405
2607
|
}
|
|
2608
|
+
var Vt = {
|
|
2609
|
+
field: "_field_5juos_1",
|
|
2610
|
+
code: "_code_5juos_16",
|
|
2611
|
+
status: "_status_5juos_31"
|
|
2612
|
+
};
|
|
2613
|
+
//#endregion
|
|
2614
|
+
//#region src/components/CodeCopy/CodeCopy.tsx
|
|
2615
|
+
async function Ht(e) {
|
|
2616
|
+
if (navigator.clipboard && window.isSecureContext) try {
|
|
2617
|
+
return await navigator.clipboard.writeText(e), !0;
|
|
2618
|
+
} catch {}
|
|
2619
|
+
let t = document.createElement("textarea");
|
|
2620
|
+
t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.left = "-9999px", document.body.appendChild(t), t.select();
|
|
2621
|
+
try {
|
|
2622
|
+
return document.execCommand("copy");
|
|
2623
|
+
} catch {
|
|
2624
|
+
return !1;
|
|
2625
|
+
} finally {
|
|
2626
|
+
t.remove();
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
function Ut({ code: e, className: t, onCopy: n }) {
|
|
2630
|
+
let [r, a] = l(!1), o = c(void 0);
|
|
2631
|
+
return i(() => () => clearTimeout(o.current), []), /* @__PURE__ */ f("div", {
|
|
2632
|
+
className: [Vt.field, t].filter(Boolean).join(" "),
|
|
2633
|
+
children: [
|
|
2634
|
+
/* @__PURE__ */ d("code", {
|
|
2635
|
+
className: Vt.code,
|
|
2636
|
+
children: e
|
|
2637
|
+
}),
|
|
2638
|
+
/* @__PURE__ */ d(I, {
|
|
2639
|
+
size: "micro",
|
|
2640
|
+
variant: "ghost",
|
|
2641
|
+
iconLeft: d(r ? h : y, {}),
|
|
2642
|
+
onClick: async () => {
|
|
2643
|
+
await Ht(e) && (a(!0), n?.(), clearTimeout(o.current), o.current = setTimeout(() => a(!1), 2e3));
|
|
2644
|
+
},
|
|
2645
|
+
"aria-label": r ? "Copied" : "Copy",
|
|
2646
|
+
title: r ? "Copied" : "Copy"
|
|
2647
|
+
}),
|
|
2648
|
+
/* @__PURE__ */ d("span", {
|
|
2649
|
+
className: Vt.status,
|
|
2650
|
+
role: "status",
|
|
2651
|
+
children: r ? "Copied" : ""
|
|
2652
|
+
})
|
|
2653
|
+
]
|
|
2654
|
+
});
|
|
2655
|
+
}
|
|
2406
2656
|
//#endregion
|
|
2407
|
-
export {
|
|
2657
|
+
export { Le as Alert, ze as AlertDescription, Re as AlertTitle, It as AnswerActions, kt as AssistantMessage, ie as Base, Ae as Breadcrumbs, I as Button, Ye as Chart, Dt as ChatPanel, ne as Checkbox, Pe as Chip, Nt as CitationList, Mt as CitationRef, Ut as CodeCopy, jt as Composer, ct as DatePicker, Bt as Disclosure, ae as FilterPanelBase, le as InputField, Tt as Kbd, nt as Modal, vt as NavigationMenu, Ct as NavigationMenuContent, bt as NavigationMenuItem, wt as NavigationMenuLink, yt as NavigationMenuList, St as NavigationMenuTrigger, ve as Popover, Me as ProgressBar, de as RadioButton, ft as STAT_ICON_SIZE, Ve as SaveBar, se as SearchField, ge as Select, dt as Skeleton, he as Slider, Qe as Sparkline, F as Spinner, pt as Stat, mt as StatGroup, Pt as StreamStatus, Ft as Suggestions, ye as Table, Se as TableCell, be as TableHeader, we as TableIcon, xe as TableRow, Ce as TableValue, De as Tabs, et as Textarea, pe as ToggleSwitch, Ue as Tooltip, Rt as Truncate, Ot as UserMessage, Et as defaultChatHints, te as spinnerNames };
|