@indxsearch/systm 2.20.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 +13 -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/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 +2 -0
- package/dist/index.es.js +682 -493
- package/dist/systm.css +1 -1
- package/package.json +9 -8
package/dist/index.es.js
CHANGED
|
@@ -7,18 +7,18 @@ import * as k from "@radix-ui/react-popover";
|
|
|
7
7
|
import * as A from "@radix-ui/react-tooltip";
|
|
8
8
|
import * as j from "@radix-ui/react-dialog";
|
|
9
9
|
import * as M from "@radix-ui/react-navigation-menu";
|
|
10
|
-
var
|
|
11
|
-
button: "
|
|
12
|
-
micro: "
|
|
13
|
-
default: "
|
|
14
|
-
large: "
|
|
15
|
-
primary: "
|
|
16
|
-
secondary: "
|
|
17
|
-
ghost: "
|
|
18
|
-
},
|
|
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,13 +339,13 @@ 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 =
|
|
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;
|
|
287
347
|
return /* @__PURE__ */ d("svg", {
|
|
288
|
-
className: `${
|
|
348
|
+
className: `${P.spinner} ${i}`,
|
|
289
349
|
width: t,
|
|
290
350
|
height: u,
|
|
291
351
|
viewBox: o.viewBox,
|
|
@@ -294,7 +354,7 @@ function ie({ name: e = re[0], size: t = 21, color: n = "currentColor", delay: r
|
|
|
294
354
|
"aria-label": a,
|
|
295
355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
296
356
|
children: o.frames.map((e, t) => e ? /* @__PURE__ */ d("path", {
|
|
297
|
-
className:
|
|
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
|
|
369
|
+
function I(t) {
|
|
310
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, _ = [
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
371
|
+
N.button,
|
|
372
|
+
N[n],
|
|
373
|
+
N[r],
|
|
314
374
|
p ? "cursor-not-allowed" : "cursor-pointer",
|
|
315
375
|
o
|
|
316
376
|
].filter(Boolean).join(" "), v = /* @__PURE__ */ f(u, { children: [
|
|
317
|
-
c ? /* @__PURE__ */ d(
|
|
377
|
+
c ? /* @__PURE__ */ d(F, { size: g }) : i && e.cloneElement(i, {
|
|
318
378
|
size: h,
|
|
319
379
|
color: "currentColor"
|
|
320
380
|
}),
|
|
@@ -355,57 +415,57 @@ function N(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
|
-
},
|
|
424
|
+
}, ne = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
|
|
365
425
|
let s = e.useId(), c = i || s, l = n ? `${c}-score` : void 0, u = o.disabled;
|
|
366
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
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
438
|
t && /* @__PURE__ */ d("span", {
|
|
379
|
-
className:
|
|
439
|
+
className: L.label,
|
|
380
440
|
children: t
|
|
381
441
|
}),
|
|
382
442
|
n && /* @__PURE__ */ d("span", {
|
|
383
443
|
id: l,
|
|
384
|
-
className:
|
|
444
|
+
className: L.score,
|
|
385
445
|
children: n
|
|
386
446
|
})
|
|
387
447
|
]
|
|
388
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
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
|
|
462
|
+
function ie({ children: e, className: t }) {
|
|
403
463
|
return /* @__PURE__ */ d("div", {
|
|
404
|
-
className: `${
|
|
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,15 +474,15 @@ var F = {
|
|
|
414
474
|
};
|
|
415
475
|
//#endregion
|
|
416
476
|
//#region src/components/FilterPanelBase/FilterPanelBase.tsx
|
|
417
|
-
function
|
|
477
|
+
function ae({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
|
|
418
478
|
let [s, c] = l(() => !o), u = e.useId();
|
|
419
479
|
return i(() => {
|
|
420
480
|
a && c(!o);
|
|
421
481
|
}, [o, a]), /* @__PURE__ */ f("div", {
|
|
422
|
-
className: `${
|
|
482
|
+
className: `${R.container} ${r}`,
|
|
423
483
|
children: [t && (a ? /* @__PURE__ */ f("button", {
|
|
424
484
|
type: "button",
|
|
425
|
-
className:
|
|
485
|
+
className: R.header,
|
|
426
486
|
onClick: () => {
|
|
427
487
|
a && c((e) => !e);
|
|
428
488
|
},
|
|
@@ -430,7 +490,7 @@ function ce({ title: t, children: n, className: r = "", collapsible: a = !0, col
|
|
|
430
490
|
"aria-expanded": s,
|
|
431
491
|
"aria-controls": u,
|
|
432
492
|
children: [/* @__PURE__ */ d("div", {
|
|
433
|
-
className:
|
|
493
|
+
className: R.title,
|
|
434
494
|
children: t
|
|
435
495
|
}), /* @__PURE__ */ d("span", {
|
|
436
496
|
"aria-hidden": "true",
|
|
@@ -440,21 +500,21 @@ function ce({ title: t, children: n, className: r = "", collapsible: a = !0, col
|
|
|
440
500
|
})
|
|
441
501
|
})]
|
|
442
502
|
}) : /* @__PURE__ */ d("div", {
|
|
443
|
-
className:
|
|
503
|
+
className: R.header,
|
|
444
504
|
children: /* @__PURE__ */ d("div", {
|
|
445
|
-
className:
|
|
505
|
+
className: R.title,
|
|
446
506
|
children: t
|
|
447
507
|
})
|
|
448
508
|
})), (!a || s) && /* @__PURE__ */ d("div", {
|
|
449
509
|
id: u,
|
|
450
|
-
className:
|
|
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
|
|
517
|
+
var z = {
|
|
458
518
|
wrapper: "_wrapper_nc093_1",
|
|
459
519
|
label: "_label_nc093_7",
|
|
460
520
|
inputContainer: "_inputContainer_nc093_12",
|
|
@@ -466,72 +526,84 @@ var I = {
|
|
|
466
526
|
sizeDefault: "_sizeDefault_nc093_89",
|
|
467
527
|
error: "_error_nc093_112",
|
|
468
528
|
errorText: "_errorText_nc093_116"
|
|
469
|
-
},
|
|
529
|
+
}, oe = {
|
|
470
530
|
micro: 14,
|
|
471
531
|
default: 21
|
|
472
532
|
};
|
|
473
|
-
function
|
|
474
|
-
let
|
|
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;
|
|
475
540
|
s(() => {
|
|
476
|
-
let e =
|
|
541
|
+
let e = k.current;
|
|
477
542
|
if (!e) {
|
|
478
|
-
|
|
543
|
+
j(0);
|
|
479
544
|
return;
|
|
480
545
|
}
|
|
481
|
-
let t = () =>
|
|
546
|
+
let t = () => j(e.offsetWidth);
|
|
482
547
|
t();
|
|
483
548
|
let n = new ResizeObserver(t);
|
|
484
549
|
return n.observe(e), () => n.disconnect();
|
|
485
|
-
}, [
|
|
486
|
-
let
|
|
487
|
-
o && (
|
|
488
|
-
let
|
|
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;
|
|
489
554
|
return /* @__PURE__ */ f("div", {
|
|
490
|
-
className: `${
|
|
555
|
+
className: `${z.wrapper} ${r}`,
|
|
491
556
|
children: [
|
|
492
557
|
t && /* @__PURE__ */ d("label", {
|
|
493
|
-
htmlFor:
|
|
494
|
-
className:
|
|
558
|
+
htmlFor: P,
|
|
559
|
+
className: z.label,
|
|
495
560
|
children: t
|
|
496
561
|
}),
|
|
497
562
|
/* @__PURE__ */ f("div", {
|
|
498
|
-
className: `${
|
|
563
|
+
className: `${z.inputContainer} ${ne}`,
|
|
499
564
|
children: [
|
|
500
565
|
i && /* @__PURE__ */ d("span", {
|
|
501
|
-
className:
|
|
566
|
+
className: z.searchIcon,
|
|
502
567
|
"aria-hidden": "true",
|
|
503
|
-
children: e.cloneElement(
|
|
504
|
-
size:
|
|
568
|
+
children: e.cloneElement(L, {
|
|
569
|
+
size: te,
|
|
505
570
|
color: o ?? "var(--search-icon-color)"
|
|
506
571
|
})
|
|
507
572
|
}),
|
|
508
573
|
/* @__PURE__ */ d("input", {
|
|
509
|
-
ref:
|
|
510
|
-
id:
|
|
511
|
-
type:
|
|
512
|
-
className: `${
|
|
513
|
-
style:
|
|
574
|
+
ref: b,
|
|
575
|
+
id: P,
|
|
576
|
+
type: _,
|
|
577
|
+
className: `${z.input} ${p ? z.focus : ""} ${n ? z.error : ""}`,
|
|
578
|
+
style: F,
|
|
514
579
|
"aria-invalid": n ? "true" : "false",
|
|
515
|
-
"aria-describedby": n ?
|
|
516
|
-
...
|
|
580
|
+
"aria-describedby": n ? ee : void 0,
|
|
581
|
+
...y,
|
|
582
|
+
onChange: D
|
|
517
583
|
}),
|
|
518
|
-
|
|
519
|
-
ref:
|
|
520
|
-
className:
|
|
521
|
-
children:
|
|
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
|
+
})]
|
|
522
594
|
})
|
|
523
595
|
]
|
|
524
596
|
}),
|
|
525
597
|
n && /* @__PURE__ */ d("span", {
|
|
526
|
-
id:
|
|
527
|
-
className:
|
|
598
|
+
id: ee,
|
|
599
|
+
className: z.errorText,
|
|
528
600
|
role: "alert",
|
|
529
601
|
children: n
|
|
530
602
|
})
|
|
531
603
|
]
|
|
532
604
|
});
|
|
533
605
|
}
|
|
534
|
-
var
|
|
606
|
+
var ce = {
|
|
535
607
|
wrapper: "_wrapper_roite_1",
|
|
536
608
|
label: "_label_roite_10",
|
|
537
609
|
input: "_input_roite_15",
|
|
@@ -541,14 +613,14 @@ var L = {
|
|
|
541
613
|
};
|
|
542
614
|
//#endregion
|
|
543
615
|
//#region src/components/InputField/InputField.tsx
|
|
544
|
-
function
|
|
616
|
+
function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
|
|
545
617
|
let c = e.useId(), l = o || c, u = `${l}-error`, p = n || !i;
|
|
546
618
|
return /* @__PURE__ */ f("div", {
|
|
547
|
-
className: `${
|
|
619
|
+
className: `${ce.wrapper} ${r}`,
|
|
548
620
|
children: [
|
|
549
621
|
t && /* @__PURE__ */ f("label", {
|
|
550
622
|
htmlFor: l,
|
|
551
|
-
className:
|
|
623
|
+
className: ce.label,
|
|
552
624
|
children: [t, s.required && /* @__PURE__ */ d("span", {
|
|
553
625
|
"aria-label": "required",
|
|
554
626
|
children: " *"
|
|
@@ -556,29 +628,29 @@ function de({ label: t, error: n, className: r = "", isValid: i = !0, variant: a
|
|
|
556
628
|
}),
|
|
557
629
|
/* @__PURE__ */ d("input", {
|
|
558
630
|
id: l,
|
|
559
|
-
className: `${
|
|
631
|
+
className: `${ce.input} ${a === "borderBottom" ? ce.borderBottom : ""} ${p ? ce.error : ""}`,
|
|
560
632
|
"aria-invalid": p ? "true" : "false",
|
|
561
633
|
"aria-describedby": n ? u : void 0,
|
|
562
634
|
...s
|
|
563
635
|
}),
|
|
564
636
|
n && /* @__PURE__ */ d("span", {
|
|
565
637
|
id: u,
|
|
566
|
-
className:
|
|
638
|
+
className: ce.errorText,
|
|
567
639
|
role: "alert",
|
|
568
640
|
children: n
|
|
569
641
|
})
|
|
570
642
|
]
|
|
571
643
|
});
|
|
572
644
|
}
|
|
573
|
-
var
|
|
645
|
+
var ue = {
|
|
574
646
|
radioWrapper: "_radioWrapper_1faq0_1",
|
|
575
647
|
radioInput: "_radioInput_1faq0_9",
|
|
576
648
|
customRadio: "_customRadio_1faq0_23",
|
|
577
649
|
labelText: "_labelText_1faq0_57",
|
|
578
650
|
disabled: "_disabled_1faq0_63"
|
|
579
|
-
},
|
|
651
|
+
}, de = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ f("label", {
|
|
580
652
|
htmlFor: e,
|
|
581
|
-
className: `${
|
|
653
|
+
className: `${ue.radioWrapper} ${o ? ue.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
582
654
|
children: [
|
|
583
655
|
/* @__PURE__ */ d("input", {
|
|
584
656
|
id: e,
|
|
@@ -589,25 +661,25 @@ var R = {
|
|
|
589
661
|
onChange: a,
|
|
590
662
|
disabled: o,
|
|
591
663
|
"aria-label": s,
|
|
592
|
-
className:
|
|
664
|
+
className: ue.radioInput
|
|
593
665
|
}),
|
|
594
|
-
/* @__PURE__ */ d("span", { className:
|
|
666
|
+
/* @__PURE__ */ d("span", { className: ue.customRadio }),
|
|
595
667
|
/* @__PURE__ */ d("span", {
|
|
596
|
-
className:
|
|
668
|
+
className: ue.labelText,
|
|
597
669
|
children: r
|
|
598
670
|
})
|
|
599
671
|
]
|
|
600
|
-
}),
|
|
672
|
+
}), fe = {
|
|
601
673
|
switch: "_switch_1kxu1_1",
|
|
602
674
|
slider: "_slider_1kxu1_23",
|
|
603
675
|
label: "_label_1kxu1_28",
|
|
604
676
|
disabled: "_disabled_1kxu1_43",
|
|
605
677
|
positive: "_positive_1kxu1_72"
|
|
606
|
-
},
|
|
678
|
+
}, pe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o, variant: s = "default" }) => {
|
|
607
679
|
let c = e.useId(), l = t || c;
|
|
608
680
|
return /* @__PURE__ */ f("label", {
|
|
609
681
|
htmlFor: l,
|
|
610
|
-
className: `${
|
|
682
|
+
className: `${fe.switch} ${s === "positive" ? fe.positive : ""} ${i ? fe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
611
683
|
children: [
|
|
612
684
|
/* @__PURE__ */ d("input", {
|
|
613
685
|
id: l,
|
|
@@ -620,16 +692,16 @@ var R = {
|
|
|
620
692
|
disabled: i
|
|
621
693
|
}),
|
|
622
694
|
/* @__PURE__ */ d("span", {
|
|
623
|
-
className:
|
|
695
|
+
className: fe.slider,
|
|
624
696
|
"aria-hidden": "true"
|
|
625
697
|
}),
|
|
626
698
|
a && /* @__PURE__ */ d("span", {
|
|
627
|
-
className:
|
|
699
|
+
className: fe.label,
|
|
628
700
|
children: a
|
|
629
701
|
})
|
|
630
702
|
]
|
|
631
703
|
});
|
|
632
|
-
},
|
|
704
|
+
}, B = {
|
|
633
705
|
label: "_label_1o3ls_1",
|
|
634
706
|
basetrack: "_basetrack_1o3ls_8",
|
|
635
707
|
selectedtrack: "_selectedtrack_1o3ls_36",
|
|
@@ -643,23 +715,23 @@ var R = {
|
|
|
643
715
|
stepmarksInline: "_stepmarksInline_1o3ls_113",
|
|
644
716
|
stepmarksBelow: "_stepmarksBelow_1o3ls_120",
|
|
645
717
|
basetrackStepsBelow: "_basetrackStepsBelow_1o3ls_125"
|
|
646
|
-
},
|
|
718
|
+
}, me = 50, he = (t) => {
|
|
647
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;
|
|
648
720
|
if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ f("div", {
|
|
649
721
|
className: o,
|
|
650
722
|
children: [g && /* @__PURE__ */ d("span", {
|
|
651
|
-
className:
|
|
723
|
+
className: B.label,
|
|
652
724
|
children: g
|
|
653
725
|
}), /* @__PURE__ */ d("div", {
|
|
654
|
-
className: `${
|
|
726
|
+
className: `${B.basetrack} ${B.disabled}`,
|
|
655
727
|
"aria-hidden": "true"
|
|
656
728
|
})]
|
|
657
729
|
});
|
|
658
|
-
let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <=
|
|
659
|
-
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}`,
|
|
660
732
|
"aria-hidden": "true",
|
|
661
733
|
children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ d("span", {
|
|
662
|
-
className:
|
|
734
|
+
className: B.stepmark,
|
|
663
735
|
style: { left: `${Math.min(t * i, r - n) / (r - n) * 100}%` }
|
|
664
736
|
}, t))
|
|
665
737
|
}) : null;
|
|
@@ -669,7 +741,7 @@ var R = {
|
|
|
669
741
|
className: o,
|
|
670
742
|
children: [g && /* @__PURE__ */ d("label", {
|
|
671
743
|
htmlFor: b,
|
|
672
|
-
className:
|
|
744
|
+
className: B.label,
|
|
673
745
|
children: g
|
|
674
746
|
}), /* @__PURE__ */ d(D, {
|
|
675
747
|
step: i,
|
|
@@ -687,7 +759,7 @@ var R = {
|
|
|
687
759
|
style: { ...a.style },
|
|
688
760
|
children: [
|
|
689
761
|
!v && /* @__PURE__ */ d("div", {
|
|
690
|
-
className:
|
|
762
|
+
className: B.selectedtrack,
|
|
691
763
|
style: {
|
|
692
764
|
left: `${m}%`,
|
|
693
765
|
width: `${h}%`,
|
|
@@ -695,7 +767,7 @@ var R = {
|
|
|
695
767
|
}
|
|
696
768
|
}),
|
|
697
769
|
v && /* @__PURE__ */ d("div", {
|
|
698
|
-
className: `${
|
|
770
|
+
className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
|
|
699
771
|
style: {
|
|
700
772
|
left: `${g}%`,
|
|
701
773
|
width: `${_}%`,
|
|
@@ -712,7 +784,7 @@ var R = {
|
|
|
712
784
|
return /* @__PURE__ */ d("div", {
|
|
713
785
|
...o,
|
|
714
786
|
id: t === 0 ? b : void 0,
|
|
715
|
-
className: `${
|
|
787
|
+
className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
716
788
|
style: {
|
|
717
789
|
...o.style,
|
|
718
790
|
zIndex: "3"
|
|
@@ -731,7 +803,7 @@ var R = {
|
|
|
731
803
|
className: o,
|
|
732
804
|
children: [g && /* @__PURE__ */ d("label", {
|
|
733
805
|
htmlFor: b,
|
|
734
|
-
className:
|
|
806
|
+
className: B.label,
|
|
735
807
|
children: g
|
|
736
808
|
}), /* @__PURE__ */ d(D, {
|
|
737
809
|
step: i,
|
|
@@ -749,7 +821,7 @@ var R = {
|
|
|
749
821
|
style: { ...o.style },
|
|
750
822
|
children: [
|
|
751
823
|
!g && /* @__PURE__ */ d("div", {
|
|
752
|
-
className:
|
|
824
|
+
className: B.selectedtrack,
|
|
753
825
|
style: {
|
|
754
826
|
left: "0%",
|
|
755
827
|
width: `${p}%`,
|
|
@@ -757,7 +829,7 @@ var R = {
|
|
|
757
829
|
}
|
|
758
830
|
}),
|
|
759
831
|
g && /* @__PURE__ */ d("div", {
|
|
760
|
-
className: `${
|
|
832
|
+
className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
|
|
761
833
|
style: {
|
|
762
834
|
left: `${m}%`,
|
|
763
835
|
width: `${h}%`,
|
|
@@ -774,7 +846,7 @@ var R = {
|
|
|
774
846
|
return /* @__PURE__ */ d("div", {
|
|
775
847
|
...o,
|
|
776
848
|
id: b,
|
|
777
|
-
className: `${
|
|
849
|
+
className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
778
850
|
style: {
|
|
779
851
|
...o.style,
|
|
780
852
|
zIndex: "3"
|
|
@@ -788,7 +860,7 @@ var R = {
|
|
|
788
860
|
})]
|
|
789
861
|
});
|
|
790
862
|
}
|
|
791
|
-
},
|
|
863
|
+
}, V = {
|
|
792
864
|
wrapper: "_wrapper_y1e72_1",
|
|
793
865
|
label: "_label_y1e72_7",
|
|
794
866
|
trigger: "_trigger_y1e72_12",
|
|
@@ -803,14 +875,14 @@ var R = {
|
|
|
803
875
|
viewport: "_viewport_y1e72_107",
|
|
804
876
|
item: "_item_y1e72_113",
|
|
805
877
|
itemIndicator: "_itemIndicator_y1e72_136"
|
|
806
|
-
},
|
|
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 }) => {
|
|
807
879
|
let m = e.useId(), _ = p || m, v = `${_}-label`, y = r.find((e) => e.value === t), b = /* @__PURE__ */ f(O.Root, {
|
|
808
880
|
value: t,
|
|
809
881
|
onValueChange: n,
|
|
810
882
|
disabled: o,
|
|
811
883
|
children: [/* @__PURE__ */ f(O.Trigger, {
|
|
812
884
|
id: _,
|
|
813
|
-
className: `${
|
|
885
|
+
className: `${V.trigger} ${V[c]} ${l === "ghost" ? V.ghost : ""} ${a} cursor-pointer`,
|
|
814
886
|
...s ? { "aria-labelledby": v } : u ? { "aria-label": u } : {},
|
|
815
887
|
children: [/* @__PURE__ */ f("span", {
|
|
816
888
|
style: {
|
|
@@ -819,15 +891,15 @@ var R = {
|
|
|
819
891
|
gap: 6
|
|
820
892
|
},
|
|
821
893
|
children: [y?.icon, l === "ghost" ? /* @__PURE__ */ f("span", {
|
|
822
|
-
className:
|
|
894
|
+
className: V.sizer,
|
|
823
895
|
children: [r.filter((e) => e.value !== t).map((e) => /* @__PURE__ */ d("span", {
|
|
824
|
-
className:
|
|
896
|
+
className: V.sizerHidden,
|
|
825
897
|
"aria-hidden": "true",
|
|
826
898
|
children: e.label
|
|
827
899
|
}, e.value)), /* @__PURE__ */ d("span", { children: /* @__PURE__ */ d(O.Value, { placeholder: i }) })]
|
|
828
900
|
}) : /* @__PURE__ */ d(O.Value, { placeholder: i })]
|
|
829
901
|
}), /* @__PURE__ */ d(O.Icon, {
|
|
830
|
-
className:
|
|
902
|
+
className: V.icon,
|
|
831
903
|
"aria-hidden": "true",
|
|
832
904
|
children: /* @__PURE__ */ d(g, {
|
|
833
905
|
size: c === "large" ? 21 : 14,
|
|
@@ -835,16 +907,16 @@ var R = {
|
|
|
835
907
|
})
|
|
836
908
|
})]
|
|
837
909
|
}), /* @__PURE__ */ d(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
|
|
838
|
-
className:
|
|
910
|
+
className: V.content,
|
|
839
911
|
position: "popper",
|
|
840
912
|
side: "bottom",
|
|
841
913
|
align: "start",
|
|
842
914
|
sideOffset: 4,
|
|
843
915
|
children: /* @__PURE__ */ d(O.Viewport, {
|
|
844
|
-
className:
|
|
916
|
+
className: V.viewport,
|
|
845
917
|
children: r.map((e) => /* @__PURE__ */ f(O.Item, {
|
|
846
918
|
value: e.value,
|
|
847
|
-
className:
|
|
919
|
+
className: V.item,
|
|
848
920
|
children: [/* @__PURE__ */ f("span", {
|
|
849
921
|
style: {
|
|
850
922
|
display: "inline-flex",
|
|
@@ -853,7 +925,7 @@ var R = {
|
|
|
853
925
|
},
|
|
854
926
|
children: [e.icon, /* @__PURE__ */ d(O.ItemText, { children: e.label })]
|
|
855
927
|
}), /* @__PURE__ */ d(O.ItemIndicator, {
|
|
856
|
-
className:
|
|
928
|
+
className: V.itemIndicator,
|
|
857
929
|
children: /* @__PURE__ */ d(h, {
|
|
858
930
|
size: 12,
|
|
859
931
|
color: "currentColor"
|
|
@@ -864,22 +936,22 @@ var R = {
|
|
|
864
936
|
}) })]
|
|
865
937
|
});
|
|
866
938
|
return s ? /* @__PURE__ */ f("div", {
|
|
867
|
-
className:
|
|
939
|
+
className: V.wrapper,
|
|
868
940
|
children: [/* @__PURE__ */ d("label", {
|
|
869
941
|
id: v,
|
|
870
942
|
htmlFor: _,
|
|
871
|
-
className:
|
|
943
|
+
className: V.label,
|
|
872
944
|
children: s
|
|
873
945
|
}), b]
|
|
874
946
|
}) : b;
|
|
875
|
-
},
|
|
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, {
|
|
876
948
|
open: n,
|
|
877
949
|
onOpenChange: r,
|
|
878
950
|
children: [/* @__PURE__ */ d(k.Trigger, {
|
|
879
951
|
asChild: !0,
|
|
880
952
|
children: e
|
|
881
953
|
}), /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
|
|
882
|
-
className: `${
|
|
954
|
+
className: `${_e.content} ${s}`,
|
|
883
955
|
align: i,
|
|
884
956
|
side: a,
|
|
885
957
|
sideOffset: o,
|
|
@@ -887,7 +959,7 @@ var R = {
|
|
|
887
959
|
"aria-describedby": l,
|
|
888
960
|
children: t
|
|
889
961
|
}) })]
|
|
890
|
-
}),
|
|
962
|
+
}), H = {
|
|
891
963
|
table: "_table_j6zqj_1",
|
|
892
964
|
caption: "_caption_j6zqj_8",
|
|
893
965
|
headerRow: "_headerRow_j6zqj_25",
|
|
@@ -903,17 +975,17 @@ var R = {
|
|
|
903
975
|
};
|
|
904
976
|
//#endregion
|
|
905
977
|
//#region src/components/Table/Table.tsx
|
|
906
|
-
function
|
|
978
|
+
function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
|
|
907
979
|
let o = /* @__PURE__ */ f("table", {
|
|
908
|
-
className: `${
|
|
980
|
+
className: `${H.table} ${r && i ? H.stickyFirst : ""}`,
|
|
909
981
|
"aria-label": n,
|
|
910
982
|
children: [t && /* @__PURE__ */ d("caption", {
|
|
911
|
-
className:
|
|
983
|
+
className: H.caption,
|
|
912
984
|
children: t
|
|
913
985
|
}), e]
|
|
914
986
|
});
|
|
915
987
|
return r ? /* @__PURE__ */ d("div", {
|
|
916
|
-
className: `${
|
|
988
|
+
className: `${H.scroll} ${a === void 0 ? "" : H.bleedEnd}`,
|
|
917
989
|
style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
|
|
918
990
|
role: "region",
|
|
919
991
|
"aria-label": n ?? t,
|
|
@@ -923,27 +995,27 @@ function be({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stic
|
|
|
923
995
|
}
|
|
924
996
|
//#endregion
|
|
925
997
|
//#region src/components/Table/TableHeader.tsx
|
|
926
|
-
function
|
|
998
|
+
function be({ children: t }) {
|
|
927
999
|
let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ d("th", {
|
|
928
1000
|
scope: "col",
|
|
929
1001
|
...t.props
|
|
930
1002
|
}) : t);
|
|
931
1003
|
return /* @__PURE__ */ d("thead", { children: /* @__PURE__ */ d("tr", {
|
|
932
|
-
className:
|
|
1004
|
+
className: H.headerRow,
|
|
933
1005
|
children: n
|
|
934
1006
|
}) });
|
|
935
1007
|
}
|
|
936
1008
|
//#endregion
|
|
937
1009
|
//#region src/components/Table/TableRow.tsx
|
|
938
|
-
function
|
|
1010
|
+
function xe({ children: e }) {
|
|
939
1011
|
return /* @__PURE__ */ d("tr", {
|
|
940
|
-
className:
|
|
1012
|
+
className: H.dataRow,
|
|
941
1013
|
children: e
|
|
942
1014
|
});
|
|
943
1015
|
}
|
|
944
1016
|
//#endregion
|
|
945
1017
|
//#region src/components/Table/TableCell.tsx
|
|
946
|
-
function
|
|
1018
|
+
function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
|
|
947
1019
|
let a = n ? "th" : "td", o = {
|
|
948
1020
|
...n && r ? { scope: r } : {},
|
|
949
1021
|
...i ? { colSpan: i } : {}
|
|
@@ -951,12 +1023,12 @@ function Ce({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
|
|
|
951
1023
|
return e || t ? /* @__PURE__ */ d(a, {
|
|
952
1024
|
...o,
|
|
953
1025
|
children: /* @__PURE__ */ f("div", {
|
|
954
|
-
className:
|
|
1026
|
+
className: H.cellInner,
|
|
955
1027
|
children: [e && /* @__PURE__ */ d("span", {
|
|
956
|
-
className:
|
|
1028
|
+
className: H.cellLabel,
|
|
957
1029
|
children: e
|
|
958
1030
|
}), t && /* @__PURE__ */ d("div", {
|
|
959
|
-
className:
|
|
1031
|
+
className: H.cellContent,
|
|
960
1032
|
children: t
|
|
961
1033
|
})]
|
|
962
1034
|
})
|
|
@@ -967,18 +1039,18 @@ function Ce({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
|
|
|
967
1039
|
}
|
|
968
1040
|
//#endregion
|
|
969
1041
|
//#region src/components/Table/TableValue.tsx
|
|
970
|
-
function
|
|
1042
|
+
function Ce({ children: e }) {
|
|
971
1043
|
return /* @__PURE__ */ d("span", {
|
|
972
|
-
className:
|
|
1044
|
+
className: H.value,
|
|
973
1045
|
children: e
|
|
974
1046
|
});
|
|
975
1047
|
}
|
|
976
1048
|
//#endregion
|
|
977
1049
|
//#region src/components/Table/TableIcon.tsx
|
|
978
|
-
function
|
|
1050
|
+
function we({ children: t, "aria-label": n }) {
|
|
979
1051
|
let r = !n;
|
|
980
1052
|
return /* @__PURE__ */ d("span", {
|
|
981
|
-
className:
|
|
1053
|
+
className: H.icon,
|
|
982
1054
|
"aria-hidden": r ? "true" : void 0,
|
|
983
1055
|
"aria-label": n,
|
|
984
1056
|
children: e.cloneElement(t, {
|
|
@@ -987,7 +1059,7 @@ function Te({ children: t, "aria-label": n }) {
|
|
|
987
1059
|
})
|
|
988
1060
|
});
|
|
989
1061
|
}
|
|
990
|
-
var
|
|
1062
|
+
var U = {
|
|
991
1063
|
tabs: "_tabs_q9gjb_1",
|
|
992
1064
|
scrollable: "_scrollable_q9gjb_16",
|
|
993
1065
|
tab: "_tab_q9gjb_1",
|
|
@@ -1003,23 +1075,23 @@ var H = {
|
|
|
1003
1075
|
};
|
|
1004
1076
|
//#endregion
|
|
1005
1077
|
//#region src/components/Tabs/Tabs.tsx
|
|
1006
|
-
function
|
|
1078
|
+
function Te(e, t) {
|
|
1007
1079
|
if (!e || !t) return;
|
|
1008
1080
|
let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
1009
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));
|
|
1010
1082
|
}
|
|
1011
|
-
var
|
|
1083
|
+
var Ee = {
|
|
1012
1084
|
micro: 14,
|
|
1013
1085
|
default: 14,
|
|
1014
1086
|
large: 21
|
|
1015
1087
|
};
|
|
1016
|
-
function
|
|
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: _ }) {
|
|
1017
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) => {
|
|
1018
1090
|
let n = e[t];
|
|
1019
1091
|
if (!n) return;
|
|
1020
1092
|
o(n.value);
|
|
1021
1093
|
let r = y.current.get(n.value);
|
|
1022
|
-
r?.focus({ preventScroll: !0 }), p &&
|
|
1094
|
+
r?.focus({ preventScroll: !0 }), p && Te(v.current, r);
|
|
1023
1095
|
}, w = (t, n) => {
|
|
1024
1096
|
for (let r = 1; r <= e.length; r++) {
|
|
1025
1097
|
let i = (t + n * r + e.length * r) % e.length;
|
|
@@ -1066,27 +1138,27 @@ function Oe({ items: e, value: r, onValueChange: o, size: s = "default", variant
|
|
|
1066
1138
|
m,
|
|
1067
1139
|
e.length
|
|
1068
1140
|
]), i(() => {
|
|
1069
|
-
p &&
|
|
1141
|
+
p && Te(v.current, y.current.get(r));
|
|
1070
1142
|
}, [p, r]), /* @__PURE__ */ d("div", {
|
|
1071
1143
|
ref: v,
|
|
1072
|
-
className: `${
|
|
1144
|
+
className: `${U.tabs} ${l === "button" ? U.buttonVariant : ""} ${p ? U.scrollable : ""} ${p && m !== void 0 ? U.bleed : ""}`,
|
|
1073
1145
|
style: p && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
|
|
1074
1146
|
role: S ? "navigation" : "tablist",
|
|
1075
1147
|
"aria-label": g,
|
|
1076
1148
|
children: e.map((e, r) => {
|
|
1077
1149
|
let i = r === x, a = /* @__PURE__ */ f(u, { children: [
|
|
1078
1150
|
e.icon ? /* @__PURE__ */ d("span", {
|
|
1079
|
-
className:
|
|
1151
|
+
className: U.icon,
|
|
1080
1152
|
"aria-hidden": "true",
|
|
1081
|
-
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
|
|
1082
1154
|
}) : null,
|
|
1083
1155
|
e.label,
|
|
1084
1156
|
e.badge != null && e.badge !== !1 ? /* @__PURE__ */ d("span", {
|
|
1085
|
-
className: e.badgeTone === "info" ? `${
|
|
1157
|
+
className: e.badgeTone === "info" ? `${U.badge} ${U.badgeInfo}` : U.badge,
|
|
1086
1158
|
title: e.badgeTitle,
|
|
1087
1159
|
children: e.badge
|
|
1088
1160
|
}) : null
|
|
1089
|
-
] }), c = `${
|
|
1161
|
+
] }), c = `${U.tab} ${U[s]} ${i ? U.active : ""}`;
|
|
1090
1162
|
if (e.href !== void 0) {
|
|
1091
1163
|
let t = {
|
|
1092
1164
|
id: `${b}-tab-${e.value}`,
|
|
@@ -1128,7 +1200,7 @@ function Oe({ items: e, value: r, onValueChange: o, size: s = "default", variant
|
|
|
1128
1200
|
})
|
|
1129
1201
|
});
|
|
1130
1202
|
}
|
|
1131
|
-
var
|
|
1203
|
+
var W = {
|
|
1132
1204
|
root: "_root_wrjxq_1",
|
|
1133
1205
|
micro: "_micro_wrjxq_2",
|
|
1134
1206
|
default: "_default_wrjxq_3",
|
|
@@ -1148,106 +1220,106 @@ var U = {
|
|
|
1148
1220
|
};
|
|
1149
1221
|
//#endregion
|
|
1150
1222
|
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
1151
|
-
function
|
|
1223
|
+
function Oe(t) {
|
|
1152
1224
|
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
1153
1225
|
size: "14px",
|
|
1154
1226
|
color: "currentColor"
|
|
1155
1227
|
}) : t;
|
|
1156
1228
|
}
|
|
1157
|
-
var
|
|
1229
|
+
var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ d(v, {
|
|
1158
1230
|
size: 14,
|
|
1159
1231
|
color: "currentColor"
|
|
1160
1232
|
}), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ d("nav", {
|
|
1161
1233
|
"aria-label": o,
|
|
1162
|
-
className: `${
|
|
1234
|
+
className: `${W.root} ${W[t]} ${n === "truncate" ? W.truncate : ""} ${r}`,
|
|
1163
1235
|
children: /* @__PURE__ */ d("ol", {
|
|
1164
|
-
className:
|
|
1236
|
+
className: W.list,
|
|
1165
1237
|
children: e.map((t, r) => /* @__PURE__ */ f("li", {
|
|
1166
|
-
className:
|
|
1238
|
+
className: W.item,
|
|
1167
1239
|
children: [r > 0 && /* @__PURE__ */ d("span", {
|
|
1168
|
-
className:
|
|
1240
|
+
className: W.separator,
|
|
1169
1241
|
"aria-hidden": "true",
|
|
1170
1242
|
children: i
|
|
1171
1243
|
}), /* @__PURE__ */ f("div", {
|
|
1172
|
-
className: `${
|
|
1244
|
+
className: `${W.step} ${t.switcher ? W.switchable : ""}`,
|
|
1173
1245
|
children: [t.href ? (() => {
|
|
1174
1246
|
let i = {
|
|
1175
|
-
className:
|
|
1247
|
+
className: W.label,
|
|
1176
1248
|
href: t.href,
|
|
1177
1249
|
title: n === "truncate" ? t.label : void 0,
|
|
1178
1250
|
onClick: t.onClick,
|
|
1179
1251
|
"aria-current": r === e.length - 1 ? "page" : void 0,
|
|
1180
1252
|
children: /* @__PURE__ */ f(u, { children: [t.icon && /* @__PURE__ */ d("span", {
|
|
1181
|
-
className:
|
|
1253
|
+
className: W.icon,
|
|
1182
1254
|
"aria-hidden": "true",
|
|
1183
|
-
children:
|
|
1255
|
+
children: Oe(t.icon)
|
|
1184
1256
|
}), /* @__PURE__ */ d("span", {
|
|
1185
|
-
className:
|
|
1257
|
+
className: W.text,
|
|
1186
1258
|
children: t.label
|
|
1187
1259
|
})] })
|
|
1188
1260
|
};
|
|
1189
1261
|
return a ? a(t, i) : /* @__PURE__ */ d("a", { ...i });
|
|
1190
1262
|
})() : /* @__PURE__ */ f("span", {
|
|
1191
|
-
className:
|
|
1263
|
+
className: W.label,
|
|
1192
1264
|
title: n === "truncate" ? t.label : void 0,
|
|
1193
1265
|
"aria-current": r === e.length - 1 ? "page" : void 0,
|
|
1194
1266
|
children: [t.icon && /* @__PURE__ */ d("span", {
|
|
1195
|
-
className:
|
|
1267
|
+
className: W.icon,
|
|
1196
1268
|
"aria-hidden": "true",
|
|
1197
|
-
children:
|
|
1269
|
+
children: Oe(t.icon)
|
|
1198
1270
|
}), /* @__PURE__ */ d("span", {
|
|
1199
|
-
className:
|
|
1271
|
+
className: W.text,
|
|
1200
1272
|
children: t.label
|
|
1201
1273
|
})]
|
|
1202
1274
|
}), t.switcher && /* @__PURE__ */ f(O.Root, {
|
|
1203
1275
|
value: t.switcher.value,
|
|
1204
|
-
onValueChange: (e) => e ===
|
|
1276
|
+
onValueChange: (e) => e === ke ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
|
|
1205
1277
|
disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
|
|
1206
1278
|
children: [/* @__PURE__ */ d(O.Trigger, {
|
|
1207
|
-
className:
|
|
1279
|
+
className: W.trigger,
|
|
1208
1280
|
"aria-label": `${t.switcher.label}: ${t.label}`,
|
|
1209
1281
|
children: /* @__PURE__ */ d(O.Icon, {
|
|
1210
1282
|
"aria-hidden": "true",
|
|
1211
|
-
className:
|
|
1283
|
+
className: W.icon,
|
|
1212
1284
|
children: /* @__PURE__ */ d(b, {
|
|
1213
1285
|
size: 14,
|
|
1214
1286
|
color: "currentColor"
|
|
1215
1287
|
})
|
|
1216
1288
|
})
|
|
1217
1289
|
}), /* @__PURE__ */ d(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
|
|
1218
|
-
className: `${
|
|
1290
|
+
className: `${V.content} ${W.menu}`,
|
|
1219
1291
|
position: "popper",
|
|
1220
1292
|
align: "end",
|
|
1221
1293
|
sideOffset: 4,
|
|
1222
1294
|
collisionPadding: 8,
|
|
1223
1295
|
children: /* @__PURE__ */ f(O.Viewport, {
|
|
1224
|
-
className:
|
|
1296
|
+
className: V.viewport,
|
|
1225
1297
|
children: [t.switcher.options.map((e) => /* @__PURE__ */ f(O.Item, {
|
|
1226
1298
|
value: e.value,
|
|
1227
|
-
className:
|
|
1299
|
+
className: V.item,
|
|
1228
1300
|
textValue: e.label,
|
|
1229
1301
|
children: [/* @__PURE__ */ f("span", {
|
|
1230
|
-
className:
|
|
1302
|
+
className: W.option,
|
|
1231
1303
|
children: [e.icon && /* @__PURE__ */ d("span", {
|
|
1232
|
-
className:
|
|
1304
|
+
className: W.icon,
|
|
1233
1305
|
"aria-hidden": "true",
|
|
1234
1306
|
children: e.icon
|
|
1235
1307
|
}), /* @__PURE__ */ d(O.ItemText, { children: e.label })]
|
|
1236
1308
|
}), /* @__PURE__ */ d(O.ItemIndicator, {
|
|
1237
|
-
className:
|
|
1309
|
+
className: V.itemIndicator,
|
|
1238
1310
|
children: /* @__PURE__ */ d(h, {
|
|
1239
1311
|
size: 12,
|
|
1240
1312
|
color: "currentColor"
|
|
1241
1313
|
})
|
|
1242
1314
|
})]
|
|
1243
|
-
}, e.value)), t.switcher.action && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(O.Separator, { className:
|
|
1244
|
-
value:
|
|
1245
|
-
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,
|
|
1246
1318
|
textValue: t.switcher.action.label,
|
|
1247
1319
|
children: /* @__PURE__ */ f("span", {
|
|
1248
|
-
className:
|
|
1320
|
+
className: W.option,
|
|
1249
1321
|
children: [/* @__PURE__ */ d("span", {
|
|
1250
|
-
className:
|
|
1322
|
+
className: W.icon,
|
|
1251
1323
|
"aria-hidden": "true",
|
|
1252
1324
|
children: /* @__PURE__ */ d(S, {
|
|
1253
1325
|
size: 14,
|
|
@@ -1262,7 +1334,7 @@ var Ae = "\0action", je = ({ items: e, size: t = "default", overflow: n = "wrap"
|
|
|
1262
1334
|
})]
|
|
1263
1335
|
}, t.id))
|
|
1264
1336
|
})
|
|
1265
|
-
}),
|
|
1337
|
+
}), je = {
|
|
1266
1338
|
wrapper: "_wrapper_1a9jo_1",
|
|
1267
1339
|
track: "_track_1a9jo_8",
|
|
1268
1340
|
fill: "_fill_1a9jo_36",
|
|
@@ -1270,42 +1342,43 @@ var Ae = "\0action", je = ({ items: e, size: t = "default", overflow: n = "wrap"
|
|
|
1270
1342
|
};
|
|
1271
1343
|
//#endregion
|
|
1272
1344
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
1273
|
-
function
|
|
1345
|
+
function Me({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
|
|
1274
1346
|
let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
|
|
1275
1347
|
return /* @__PURE__ */ f("div", {
|
|
1276
|
-
className: `${
|
|
1348
|
+
className: `${je.wrapper} ${r}`,
|
|
1277
1349
|
role: "progressbar",
|
|
1278
1350
|
"aria-valuenow": i,
|
|
1279
1351
|
"aria-valuemin": 0,
|
|
1280
1352
|
"aria-valuemax": 100,
|
|
1281
1353
|
children: [/* @__PURE__ */ d("div", {
|
|
1282
|
-
className:
|
|
1354
|
+
className: je.track,
|
|
1283
1355
|
children: /* @__PURE__ */ d("div", {
|
|
1284
|
-
className:
|
|
1356
|
+
className: je.fill,
|
|
1285
1357
|
style: {
|
|
1286
1358
|
width: `${i}%`,
|
|
1287
1359
|
backgroundColor: o
|
|
1288
1360
|
}
|
|
1289
1361
|
})
|
|
1290
1362
|
}), t && /* @__PURE__ */ d("span", {
|
|
1291
|
-
className:
|
|
1363
|
+
className: je.label,
|
|
1292
1364
|
"aria-hidden": "true",
|
|
1293
1365
|
children: a
|
|
1294
1366
|
})]
|
|
1295
1367
|
});
|
|
1296
1368
|
}
|
|
1297
|
-
var
|
|
1369
|
+
var Ne = {
|
|
1298
1370
|
chip: "_chip_iaxe0_1",
|
|
1299
1371
|
large: "_large_iaxe0_14"
|
|
1300
1372
|
};
|
|
1301
1373
|
//#endregion
|
|
1302
1374
|
//#region src/components/Chip/Chip.tsx
|
|
1303
|
-
function
|
|
1375
|
+
function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
|
|
1304
1376
|
let s = {};
|
|
1305
1377
|
return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ f("span", {
|
|
1306
1378
|
className: [
|
|
1307
|
-
|
|
1308
|
-
|
|
1379
|
+
Ne.chip,
|
|
1380
|
+
"indx-chip",
|
|
1381
|
+
o === "large" && Ne.large,
|
|
1309
1382
|
i
|
|
1310
1383
|
].filter(Boolean).join(" "),
|
|
1311
1384
|
style: s,
|
|
@@ -1315,7 +1388,7 @@ function Fe({ children: t, color: n, textColor: r, className: i, icon: a, size:
|
|
|
1315
1388
|
}), t]
|
|
1316
1389
|
});
|
|
1317
1390
|
}
|
|
1318
|
-
var
|
|
1391
|
+
var G = {
|
|
1319
1392
|
root: "_root_ok48u_3",
|
|
1320
1393
|
icon: "_icon_ok48u_16",
|
|
1321
1394
|
body: "_body_ok48u_17",
|
|
@@ -1326,63 +1399,63 @@ var W = {
|
|
|
1326
1399
|
success: "_success_ok48u_24",
|
|
1327
1400
|
warning: "_warning_ok48u_25",
|
|
1328
1401
|
destructive: "_destructive_ok48u_26"
|
|
1329
|
-
},
|
|
1402
|
+
}, Fe = {
|
|
1330
1403
|
success: /* @__PURE__ */ d(h, {}),
|
|
1331
1404
|
warning: /* @__PURE__ */ d(T, {}),
|
|
1332
1405
|
destructive: /* @__PURE__ */ d(T, {})
|
|
1333
1406
|
};
|
|
1334
|
-
function
|
|
1407
|
+
function Ie(t) {
|
|
1335
1408
|
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
1336
1409
|
size: 16,
|
|
1337
1410
|
color: "currentColor"
|
|
1338
1411
|
}) : t;
|
|
1339
1412
|
}
|
|
1340
|
-
var
|
|
1341
|
-
let a = t === void 0 ?
|
|
1413
|
+
var Le = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
|
|
1414
|
+
let a = t === void 0 ? Fe[e] : t;
|
|
1342
1415
|
return /* @__PURE__ */ f("div", {
|
|
1343
1416
|
role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
|
|
1344
|
-
className: `${
|
|
1417
|
+
className: `${G.root} ${G[e]} ${n}`,
|
|
1345
1418
|
children: [a && /* @__PURE__ */ d("span", {
|
|
1346
|
-
className:
|
|
1419
|
+
className: G.icon,
|
|
1347
1420
|
"aria-hidden": "true",
|
|
1348
|
-
children:
|
|
1421
|
+
children: Ie(a)
|
|
1349
1422
|
}), /* @__PURE__ */ d("div", {
|
|
1350
|
-
className:
|
|
1423
|
+
className: G.body,
|
|
1351
1424
|
children: r
|
|
1352
1425
|
})]
|
|
1353
1426
|
});
|
|
1354
|
-
},
|
|
1355
|
-
className: `${
|
|
1427
|
+
}, Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ d("div", {
|
|
1428
|
+
className: `${G.title} ${t}`,
|
|
1356
1429
|
children: e
|
|
1357
|
-
}),
|
|
1358
|
-
className: `${
|
|
1430
|
+
}), ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ d("div", {
|
|
1431
|
+
className: `${G.description} ${t}`,
|
|
1359
1432
|
children: e
|
|
1360
|
-
}),
|
|
1433
|
+
}), Be = {
|
|
1361
1434
|
root: "_root_1aak8_10",
|
|
1362
1435
|
main: "_main_1aak8_33",
|
|
1363
1436
|
aside: "_aside_1aak8_34",
|
|
1364
1437
|
message: "_message_1aak8_41"
|
|
1365
|
-
},
|
|
1438
|
+
}, Ve = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ f("div", {
|
|
1366
1439
|
role: "region",
|
|
1367
1440
|
"aria-label": a,
|
|
1368
|
-
className: `${
|
|
1441
|
+
className: `${Be.root} ${i}`,
|
|
1369
1442
|
children: [/* @__PURE__ */ f("div", {
|
|
1370
|
-
className:
|
|
1443
|
+
className: Be.main,
|
|
1371
1444
|
children: [r, t && /* @__PURE__ */ d("span", {
|
|
1372
|
-
className:
|
|
1445
|
+
className: Be.message,
|
|
1373
1446
|
children: t
|
|
1374
1447
|
})]
|
|
1375
1448
|
}), n && /* @__PURE__ */ d("div", {
|
|
1376
|
-
className:
|
|
1449
|
+
className: Be.aside,
|
|
1377
1450
|
children: n
|
|
1378
1451
|
})]
|
|
1379
|
-
}) : null,
|
|
1452
|
+
}) : null, He = {
|
|
1380
1453
|
tooltip: "_tooltip_1de7z_1",
|
|
1381
1454
|
arrow: "_arrow_1de7z_13"
|
|
1382
1455
|
};
|
|
1383
1456
|
//#endregion
|
|
1384
1457
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
1385
|
-
function
|
|
1458
|
+
function Ue({ content: e, position: t = "top", children: n, className: r }) {
|
|
1386
1459
|
return /* @__PURE__ */ d(A.Provider, {
|
|
1387
1460
|
delayDuration: 80,
|
|
1388
1461
|
children: /* @__PURE__ */ f(A.Root, { children: [/* @__PURE__ */ d(A.Trigger, {
|
|
@@ -1391,12 +1464,12 @@ function We({ content: e, position: t = "top", children: n, className: r }) {
|
|
|
1391
1464
|
}), /* @__PURE__ */ d(A.Portal, { children: /* @__PURE__ */ f(A.Content, {
|
|
1392
1465
|
side: t,
|
|
1393
1466
|
sideOffset: 7,
|
|
1394
|
-
className: [
|
|
1395
|
-
children: [e, /* @__PURE__ */ d(A.Arrow, { className:
|
|
1467
|
+
className: [He.tooltip, r].filter(Boolean).join(" "),
|
|
1468
|
+
children: [e, /* @__PURE__ */ d(A.Arrow, { className: He.arrow })]
|
|
1396
1469
|
}) })] })
|
|
1397
1470
|
});
|
|
1398
1471
|
}
|
|
1399
|
-
var
|
|
1472
|
+
var K = {
|
|
1400
1473
|
wrapper: "_wrapper_1wrxy_1",
|
|
1401
1474
|
chart: "_chart_1wrxy_8",
|
|
1402
1475
|
svg: "_svg_1wrxy_33",
|
|
@@ -1413,11 +1486,11 @@ var G = {
|
|
|
1413
1486
|
marker: "_marker_1wrxy_111",
|
|
1414
1487
|
tooltipMarker: "_tooltipMarker_1wrxy_115",
|
|
1415
1488
|
markerDot: "_markerDot_1wrxy_119"
|
|
1416
|
-
},
|
|
1417
|
-
function
|
|
1489
|
+
}, We = "var(--lv4)", q = 12, Ge = 20, Ke = 8, qe = 28, J = 20;
|
|
1490
|
+
function Je(e) {
|
|
1418
1491
|
return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
1419
1492
|
}
|
|
1420
|
-
function
|
|
1493
|
+
function Ye({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: s, markers: u }) {
|
|
1421
1494
|
let p = c(null), [m, h] = l(0), [g, _] = l(null);
|
|
1422
1495
|
i(() => {
|
|
1423
1496
|
let e = p.current;
|
|
@@ -1425,22 +1498,22 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1425
1498
|
let t = new ResizeObserver(([e]) => h(e.contentRect.width));
|
|
1426
1499
|
return t.observe(e), h(e.clientWidth), () => t.disconnect();
|
|
1427
1500
|
}, []);
|
|
1428
|
-
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 = (() => {
|
|
1429
1502
|
if (!t || t.length <= 1 || y <= 0) return 1;
|
|
1430
1503
|
let e = Math.max(...t.map((e) => e.length)) * 6 + 12, n = Math.max(Math.floor(y / e), 1);
|
|
1431
1504
|
return Math.ceil(t.length / n);
|
|
1432
|
-
})(), 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) => {
|
|
1433
1506
|
if (T === 0) return;
|
|
1434
1507
|
let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
|
|
1435
1508
|
if (n === "line") {
|
|
1436
|
-
let e = Math.round((r -
|
|
1509
|
+
let e = Math.round((r - J) / y * (T - 1));
|
|
1437
1510
|
_({
|
|
1438
1511
|
index: Math.max(0, Math.min(T - 1, e)),
|
|
1439
1512
|
x: r,
|
|
1440
1513
|
y: i
|
|
1441
1514
|
});
|
|
1442
1515
|
} else {
|
|
1443
|
-
let e = y / T, t = Math.floor((r -
|
|
1516
|
+
let e = y / T, t = Math.floor((r - J) / e);
|
|
1444
1517
|
_({
|
|
1445
1518
|
index: Math.max(0, Math.min(T - 1, t)),
|
|
1446
1519
|
x: r,
|
|
@@ -1454,31 +1527,31 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1454
1527
|
]), j = r((e) => {
|
|
1455
1528
|
e.pointerType === "mouse" && _(null);
|
|
1456
1529
|
}, []), M = /* @__PURE__ */ d("line", {
|
|
1457
|
-
x1:
|
|
1458
|
-
y1:
|
|
1459
|
-
x2:
|
|
1460
|
-
y2:
|
|
1530
|
+
x1: J,
|
|
1531
|
+
y1: q + b * .5,
|
|
1532
|
+
x2: J + y,
|
|
1533
|
+
y2: q + b * .5,
|
|
1461
1534
|
stroke: "var(--chart-midline)",
|
|
1462
1535
|
strokeWidth: "0.5"
|
|
1463
|
-
}),
|
|
1464
|
-
x1:
|
|
1465
|
-
y1:
|
|
1466
|
-
x2:
|
|
1467
|
-
y2:
|
|
1536
|
+
}), N = /* @__PURE__ */ d("line", {
|
|
1537
|
+
x1: J,
|
|
1538
|
+
y1: q + b,
|
|
1539
|
+
x2: J + y,
|
|
1540
|
+
y2: q + b,
|
|
1468
1541
|
stroke: "var(--chart-baseline)",
|
|
1469
1542
|
strokeWidth: "1"
|
|
1470
|
-
}),
|
|
1543
|
+
}), P = g && n === "bar" ? (() => {
|
|
1471
1544
|
let e = y / T;
|
|
1472
1545
|
return /* @__PURE__ */ d("rect", {
|
|
1473
|
-
x:
|
|
1474
|
-
y:
|
|
1546
|
+
x: J + g.index * e,
|
|
1547
|
+
y: q,
|
|
1475
1548
|
width: e,
|
|
1476
1549
|
height: b,
|
|
1477
1550
|
fill: "var(--chart-column-hover)"
|
|
1478
1551
|
});
|
|
1479
|
-
})() : null,
|
|
1552
|
+
})() : null, ee = () => e.map((e, t) => {
|
|
1480
1553
|
if (!e.data.length) return null;
|
|
1481
|
-
let n = e.color ??
|
|
1554
|
+
let n = e.color ?? We;
|
|
1482
1555
|
return /* @__PURE__ */ f("g", { children: [/* @__PURE__ */ d("polyline", {
|
|
1483
1556
|
points: e.data.map((e, t) => `${k(t).toFixed(2)},${O(e).toFixed(2)}`).join(" "),
|
|
1484
1557
|
fill: "none",
|
|
@@ -1498,11 +1571,11 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1498
1571
|
fill: n
|
|
1499
1572
|
}, t);
|
|
1500
1573
|
})] }, t);
|
|
1501
|
-
}),
|
|
1574
|
+
}), te = () => {
|
|
1502
1575
|
if (!T) return null;
|
|
1503
|
-
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;
|
|
1504
1577
|
return e.map((e, t) => e.data.map((a, o) => {
|
|
1505
|
-
let s =
|
|
1578
|
+
let s = J + o * n + 2 + t * (r + 2), c = O(a);
|
|
1506
1579
|
return /* @__PURE__ */ d("rect", {
|
|
1507
1580
|
x: s,
|
|
1508
1581
|
y: c,
|
|
@@ -1511,29 +1584,29 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1511
1584
|
fill: e.color ?? "var(--chart-bar)"
|
|
1512
1585
|
}, `${t}-${o}`);
|
|
1513
1586
|
}));
|
|
1514
|
-
},
|
|
1587
|
+
}, F = () => {
|
|
1515
1588
|
if (!t?.length) return null;
|
|
1516
|
-
let e =
|
|
1589
|
+
let e = q + b + 18, r = t.length - 1;
|
|
1517
1590
|
return t.map((t, i) => (r - i) % E === 0 ? /* @__PURE__ */ d("text", {
|
|
1518
|
-
x: n === "line" ? k(i) :
|
|
1591
|
+
x: n === "line" ? k(i) : J + (i + .5) * (y / T),
|
|
1519
1592
|
y: e,
|
|
1520
1593
|
textAnchor: n !== "line" || r === 0 ? "middle" : i === 0 ? "start" : i === r ? "end" : "middle",
|
|
1521
1594
|
fill: "var(--lv4)",
|
|
1522
1595
|
style: { font: "var(--text-2xs)" },
|
|
1523
1596
|
children: t
|
|
1524
1597
|
}, i) : null);
|
|
1525
|
-
},
|
|
1598
|
+
}, I = g && n === "line" ? /* @__PURE__ */ d("line", {
|
|
1526
1599
|
x1: k(g.index),
|
|
1527
|
-
y1:
|
|
1600
|
+
y1: q,
|
|
1528
1601
|
x2: k(g.index),
|
|
1529
|
-
y2:
|
|
1602
|
+
y2: q + b,
|
|
1530
1603
|
stroke: "var(--chart-crosshair)",
|
|
1531
1604
|
strokeWidth: "1",
|
|
1532
1605
|
strokeDasharray: "3 3"
|
|
1533
|
-
}) : null,
|
|
1606
|
+
}) : null, L = g ? (() => {
|
|
1534
1607
|
let n = t?.[g.index] ?? String(g.index + 1), r = Math.min(Math.max(g.x, 60), m - 60);
|
|
1535
1608
|
return /* @__PURE__ */ f("div", {
|
|
1536
|
-
className:
|
|
1609
|
+
className: K.tooltip,
|
|
1537
1610
|
style: g.y < 80 ? {
|
|
1538
1611
|
left: r,
|
|
1539
1612
|
top: g.y + 12,
|
|
@@ -1545,30 +1618,30 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1545
1618
|
},
|
|
1546
1619
|
children: [
|
|
1547
1620
|
/* @__PURE__ */ d("div", {
|
|
1548
|
-
className:
|
|
1621
|
+
className: K.tooltipLabel,
|
|
1549
1622
|
children: n
|
|
1550
1623
|
}),
|
|
1551
1624
|
e.map((e, t) => /* @__PURE__ */ f("div", {
|
|
1552
|
-
className:
|
|
1625
|
+
className: K.tooltipRow,
|
|
1553
1626
|
children: [
|
|
1554
1627
|
/* @__PURE__ */ d("span", {
|
|
1555
|
-
className:
|
|
1556
|
-
style: { background: e.color ??
|
|
1628
|
+
className: K.tooltipDot,
|
|
1629
|
+
style: { background: e.color ?? We }
|
|
1557
1630
|
}),
|
|
1558
1631
|
/* @__PURE__ */ d("span", {
|
|
1559
|
-
className:
|
|
1632
|
+
className: K.tooltipName,
|
|
1560
1633
|
children: e.label
|
|
1561
1634
|
}),
|
|
1562
1635
|
/* @__PURE__ */ d("span", {
|
|
1563
|
-
className:
|
|
1564
|
-
children:
|
|
1636
|
+
className: K.tooltipValue,
|
|
1637
|
+
children: Je(e.data[g.index] ?? 0)
|
|
1565
1638
|
})
|
|
1566
1639
|
]
|
|
1567
1640
|
}, t)),
|
|
1568
1641
|
u?.filter((e) => e.index === g.index).map((e, t) => /* @__PURE__ */ f("div", {
|
|
1569
|
-
className: `${
|
|
1570
|
-
children: [/* @__PURE__ */ d("span", { className: `${
|
|
1571
|
-
className:
|
|
1642
|
+
className: `${K.tooltipRow} ${K.tooltipMarker}`,
|
|
1643
|
+
children: [/* @__PURE__ */ d("span", { className: `${K.tooltipDot} ${K.markerDot}` }), /* @__PURE__ */ d("span", {
|
|
1644
|
+
className: K.tooltipName,
|
|
1572
1645
|
children: e.label
|
|
1573
1646
|
})]
|
|
1574
1647
|
}, `m${t}`))
|
|
@@ -1576,53 +1649,53 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1576
1649
|
});
|
|
1577
1650
|
})() : null;
|
|
1578
1651
|
return /* @__PURE__ */ f("div", {
|
|
1579
|
-
className: [
|
|
1652
|
+
className: [K.wrapper, s].filter(Boolean).join(" "),
|
|
1580
1653
|
children: [/* @__PURE__ */ f("div", {
|
|
1581
1654
|
ref: p,
|
|
1582
|
-
className:
|
|
1655
|
+
className: K.chart,
|
|
1583
1656
|
style: { height: a },
|
|
1584
1657
|
children: [m > 0 && /* @__PURE__ */ f("svg", {
|
|
1585
1658
|
width: m,
|
|
1586
1659
|
height: a,
|
|
1587
|
-
className:
|
|
1660
|
+
className: K.svg,
|
|
1588
1661
|
onPointerMove: A,
|
|
1589
1662
|
onPointerDown: A,
|
|
1590
1663
|
onPointerLeave: j,
|
|
1591
1664
|
children: [
|
|
1592
1665
|
M,
|
|
1593
|
-
ee,
|
|
1594
|
-
te,
|
|
1595
1666
|
N,
|
|
1596
|
-
|
|
1667
|
+
P,
|
|
1668
|
+
I,
|
|
1669
|
+
n === "line" ? ee() : te(),
|
|
1597
1670
|
u && T > 0 && [...new Set(u.map((e) => e.index).filter((e) => e >= 0 && e < T))].map((e) => {
|
|
1598
|
-
let t = n === "line" ? k(e) :
|
|
1671
|
+
let t = n === "line" ? k(e) : J + (e + .5) * (y / T);
|
|
1599
1672
|
return /* @__PURE__ */ d("rect", {
|
|
1600
|
-
className:
|
|
1673
|
+
className: K.marker,
|
|
1601
1674
|
x: t - 3,
|
|
1602
|
-
y:
|
|
1675
|
+
y: q + b - 3,
|
|
1603
1676
|
width: 6,
|
|
1604
1677
|
height: 6
|
|
1605
1678
|
}, `m${e}`);
|
|
1606
1679
|
}),
|
|
1607
|
-
|
|
1680
|
+
F()
|
|
1608
1681
|
]
|
|
1609
|
-
}),
|
|
1682
|
+
}), L]
|
|
1610
1683
|
}), o && e.length > 1 && /* @__PURE__ */ d("div", {
|
|
1611
|
-
className:
|
|
1684
|
+
className: K.legend,
|
|
1612
1685
|
children: e.map((e, t) => /* @__PURE__ */ f("div", {
|
|
1613
|
-
className:
|
|
1686
|
+
className: K.legendItem,
|
|
1614
1687
|
children: [/* @__PURE__ */ d("div", {
|
|
1615
|
-
className:
|
|
1616
|
-
style: { background: e.color ??
|
|
1688
|
+
className: K.legendMark,
|
|
1689
|
+
style: { background: e.color ?? We }
|
|
1617
1690
|
}), /* @__PURE__ */ d("span", {
|
|
1618
|
-
className:
|
|
1691
|
+
className: K.legendLabel,
|
|
1619
1692
|
children: e.label
|
|
1620
1693
|
})]
|
|
1621
1694
|
}, t))
|
|
1622
1695
|
})]
|
|
1623
1696
|
});
|
|
1624
1697
|
}
|
|
1625
|
-
var
|
|
1698
|
+
var Y = {
|
|
1626
1699
|
sparkline: "_sparkline_fqcg9_4",
|
|
1627
1700
|
line: "_line_fqcg9_12",
|
|
1628
1701
|
partial: "_partial_fqcg9_22",
|
|
@@ -1630,65 +1703,93 @@ var J = {
|
|
|
1630
1703
|
bars: "_bars_fqcg9_34",
|
|
1631
1704
|
bar: "_bar_fqcg9_34",
|
|
1632
1705
|
baseline: "_baseline_fqcg9_48"
|
|
1633
|
-
},
|
|
1634
|
-
function Qe({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill:
|
|
1635
|
-
let
|
|
1636
|
-
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(" "),
|
|
1637
1710
|
style: {
|
|
1638
1711
|
width: n,
|
|
1639
1712
|
height: r,
|
|
1640
1713
|
color: i
|
|
1641
1714
|
},
|
|
1642
|
-
viewBox: `0 0 ${
|
|
1715
|
+
viewBox: `0 0 ${Xe} ${Ze}`,
|
|
1643
1716
|
preserveAspectRatio: "none",
|
|
1644
|
-
role:
|
|
1645
|
-
"aria-label":
|
|
1646
|
-
"aria-hidden":
|
|
1717
|
+
role: v ? void 0 : "img",
|
|
1718
|
+
"aria-label": m,
|
|
1719
|
+
"aria-hidden": v || void 0,
|
|
1647
1720
|
focusable: "false",
|
|
1648
|
-
children: [e,
|
|
1721
|
+
children: [e, s && /* @__PURE__ */ d("line", {
|
|
1649
1722
|
x1: "0",
|
|
1650
|
-
y1:
|
|
1651
|
-
x2:
|
|
1652
|
-
y2:
|
|
1653
|
-
className:
|
|
1723
|
+
y1: Ze - .5,
|
|
1724
|
+
x2: Xe,
|
|
1725
|
+
y2: Ze - .5,
|
|
1726
|
+
className: Y.baseline,
|
|
1654
1727
|
vectorEffect: "non-scaling-stroke"
|
|
1655
1728
|
})]
|
|
1656
1729
|
});
|
|
1657
|
-
if (
|
|
1730
|
+
if (_.length < 2) return w(null);
|
|
1658
1731
|
if (t === "bar") return /* @__PURE__ */ d("div", {
|
|
1659
|
-
className: [
|
|
1732
|
+
className: [Y.bars, h].filter(Boolean).join(" "),
|
|
1660
1733
|
style: {
|
|
1661
1734
|
width: n,
|
|
1662
1735
|
height: r,
|
|
1663
1736
|
color: i,
|
|
1664
|
-
gap:
|
|
1665
|
-
borderBottomWidth: +!!
|
|
1737
|
+
gap: l,
|
|
1738
|
+
borderBottomWidth: +!!s
|
|
1666
1739
|
},
|
|
1667
|
-
role:
|
|
1668
|
-
"aria-label":
|
|
1669
|
-
"aria-hidden":
|
|
1670
|
-
children:
|
|
1671
|
-
className:
|
|
1672
|
-
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)}%` }
|
|
1673
1746
|
}, t))
|
|
1674
1747
|
});
|
|
1675
|
-
let
|
|
1676
|
-
return
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
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
|
+
] }));
|
|
1692
1793
|
}
|
|
1693
1794
|
var $e = {
|
|
1694
1795
|
wrapper: "_wrapper_17ws4_1",
|
|
@@ -1729,32 +1830,32 @@ function et({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
|
|
|
1729
1830
|
]
|
|
1730
1831
|
});
|
|
1731
1832
|
}
|
|
1732
|
-
var
|
|
1833
|
+
var tt = {
|
|
1733
1834
|
overlay: "_overlay_xud7c_1",
|
|
1734
1835
|
content: "_content_xud7c_8",
|
|
1735
1836
|
title: "_title_xud7c_26",
|
|
1736
1837
|
description: "_description_xud7c_34",
|
|
1737
1838
|
close: "_close_xud7c_40",
|
|
1738
1839
|
srOnly: "_srOnly_xud7c_62"
|
|
1739
|
-
},
|
|
1840
|
+
}, nt = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ f(j.Root, {
|
|
1740
1841
|
open: n,
|
|
1741
1842
|
onOpenChange: r,
|
|
1742
1843
|
children: [e && /* @__PURE__ */ d(j.Trigger, {
|
|
1743
1844
|
asChild: !0,
|
|
1744
1845
|
children: e
|
|
1745
|
-
}), /* @__PURE__ */ f(j.Portal, { children: [/* @__PURE__ */ d(j.Overlay, { className:
|
|
1746
|
-
className: `${
|
|
1846
|
+
}), /* @__PURE__ */ f(j.Portal, { children: [/* @__PURE__ */ d(j.Overlay, { className: tt.overlay }), /* @__PURE__ */ f(j.Content, {
|
|
1847
|
+
className: `${tt.content} ${o}`,
|
|
1747
1848
|
children: [
|
|
1748
1849
|
/* @__PURE__ */ d(j.Title, {
|
|
1749
|
-
className: i ?
|
|
1850
|
+
className: i ? tt.title : tt.srOnly,
|
|
1750
1851
|
children: i || "Dialog"
|
|
1751
1852
|
}),
|
|
1752
1853
|
a && /* @__PURE__ */ d(j.Description, {
|
|
1753
|
-
className:
|
|
1854
|
+
className: tt.description,
|
|
1754
1855
|
children: a
|
|
1755
1856
|
}),
|
|
1756
1857
|
s && /* @__PURE__ */ d(j.Close, {
|
|
1757
|
-
className:
|
|
1858
|
+
className: tt.close,
|
|
1758
1859
|
"aria-label": "Close",
|
|
1759
1860
|
children: /* @__PURE__ */ d(E, {
|
|
1760
1861
|
size: 16,
|
|
@@ -1764,7 +1865,7 @@ var X = {
|
|
|
1764
1865
|
t
|
|
1765
1866
|
]
|
|
1766
1867
|
})] })]
|
|
1767
|
-
}),
|
|
1868
|
+
}), X = {
|
|
1768
1869
|
wrapper: "_wrapper_aimna_1",
|
|
1769
1870
|
label: "_label_aimna_7",
|
|
1770
1871
|
trigger: "_trigger_aimna_12",
|
|
@@ -1783,7 +1884,7 @@ var X = {
|
|
|
1783
1884
|
today: "_today_aimna_131",
|
|
1784
1885
|
selected: "_selected_aimna_136",
|
|
1785
1886
|
errorText: "_errorText_aimna_142"
|
|
1786
|
-
},
|
|
1887
|
+
}, rt = [
|
|
1787
1888
|
"Mo",
|
|
1788
1889
|
"Tu",
|
|
1789
1890
|
"We",
|
|
@@ -1791,7 +1892,7 @@ var X = {
|
|
|
1791
1892
|
"Fr",
|
|
1792
1893
|
"Sa",
|
|
1793
1894
|
"Su"
|
|
1794
|
-
],
|
|
1895
|
+
], it = [
|
|
1795
1896
|
"January",
|
|
1796
1897
|
"February",
|
|
1797
1898
|
"March",
|
|
@@ -1805,19 +1906,19 @@ var X = {
|
|
|
1805
1906
|
"November",
|
|
1806
1907
|
"December"
|
|
1807
1908
|
];
|
|
1808
|
-
function
|
|
1909
|
+
function at(e) {
|
|
1809
1910
|
let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
|
|
1810
1911
|
return `${e.getFullYear()}-${t}-${n}`;
|
|
1811
1912
|
}
|
|
1812
|
-
function
|
|
1913
|
+
function ot(e, t) {
|
|
1813
1914
|
return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
1814
1915
|
}
|
|
1815
|
-
function
|
|
1916
|
+
function st(e, t) {
|
|
1816
1917
|
let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
|
|
1817
1918
|
for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
|
|
1818
1919
|
return r;
|
|
1819
1920
|
}
|
|
1820
|
-
var
|
|
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 }) => {
|
|
1821
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) => {
|
|
1822
1923
|
if (e) {
|
|
1823
1924
|
let e = t ?? /* @__PURE__ */ new Date();
|
|
@@ -1826,9 +1927,9 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1826
1927
|
b(e);
|
|
1827
1928
|
};
|
|
1828
1929
|
e.useEffect(() => {
|
|
1829
|
-
j.current &&= (A.current.get(
|
|
1930
|
+
j.current &&= (A.current.get(at(D))?.focus(), !1);
|
|
1830
1931
|
}, [D]);
|
|
1831
|
-
let
|
|
1932
|
+
let N = (e, t) => {
|
|
1832
1933
|
let n = new Date(t), r = {
|
|
1833
1934
|
ArrowLeft: -1,
|
|
1834
1935
|
ArrowRight: 1,
|
|
@@ -1847,19 +1948,19 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1847
1948
|
e.useEffect(() => {
|
|
1848
1949
|
y && t && (w(t.getFullYear()), E(t.getMonth()));
|
|
1849
1950
|
}, [y]);
|
|
1850
|
-
let
|
|
1951
|
+
let P = () => {
|
|
1851
1952
|
T === 0 ? (E(11), w(C - 1)) : E(T - 1);
|
|
1852
|
-
},
|
|
1953
|
+
}, ee = () => {
|
|
1853
1954
|
T === 11 ? (E(0), w(C + 1)) : E(T + 1);
|
|
1854
|
-
},
|
|
1955
|
+
}, te = (e) => {
|
|
1855
1956
|
n?.(e), b(!1);
|
|
1856
|
-
},
|
|
1957
|
+
}, F = st(C, T);
|
|
1857
1958
|
return /* @__PURE__ */ f("div", {
|
|
1858
|
-
className: `${
|
|
1959
|
+
className: `${X.wrapper} ${c}`,
|
|
1859
1960
|
children: [
|
|
1860
1961
|
r && /* @__PURE__ */ d("span", {
|
|
1861
1962
|
id: `${p}-label`,
|
|
1862
|
-
className:
|
|
1963
|
+
className: X.label,
|
|
1863
1964
|
children: r
|
|
1864
1965
|
}),
|
|
1865
1966
|
/* @__PURE__ */ f(k.Root, {
|
|
@@ -1869,14 +1970,14 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1869
1970
|
asChild: !0,
|
|
1870
1971
|
children: /* @__PURE__ */ f("button", {
|
|
1871
1972
|
type: "button",
|
|
1872
|
-
className: `${
|
|
1973
|
+
className: `${X.trigger} ${h ? X.error : ""}`,
|
|
1873
1974
|
disabled: s,
|
|
1874
1975
|
"aria-labelledby": r ? `${p}-label ${p}-value` : void 0,
|
|
1875
1976
|
"aria-invalid": h ? "true" : "false",
|
|
1876
1977
|
"aria-describedby": a ? m : void 0,
|
|
1877
1978
|
children: [/* @__PURE__ */ d("span", {
|
|
1878
1979
|
id: `${p}-value`,
|
|
1879
|
-
className: t ?
|
|
1980
|
+
className: t ? X.valueText : X.placeholder,
|
|
1880
1981
|
children: t ? u(t) : i
|
|
1881
1982
|
}), /* @__PURE__ */ d(g, {
|
|
1882
1983
|
size: 14,
|
|
@@ -1884,21 +1985,21 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1884
1985
|
})]
|
|
1885
1986
|
})
|
|
1886
1987
|
}), /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ f(k.Content, {
|
|
1887
|
-
className:
|
|
1988
|
+
className: X.calendar,
|
|
1888
1989
|
align: "start",
|
|
1889
1990
|
sideOffset: 5,
|
|
1890
1991
|
"aria-label": r ? `${r} calendar` : "Choose a date",
|
|
1891
1992
|
onOpenAutoFocus: (e) => {
|
|
1892
|
-
e.preventDefault(), A.current.get(
|
|
1993
|
+
e.preventDefault(), A.current.get(at(D))?.focus();
|
|
1893
1994
|
},
|
|
1894
1995
|
children: [
|
|
1895
1996
|
/* @__PURE__ */ f("div", {
|
|
1896
|
-
className:
|
|
1997
|
+
className: X.header,
|
|
1897
1998
|
children: [
|
|
1898
1999
|
/* @__PURE__ */ d("button", {
|
|
1899
2000
|
type: "button",
|
|
1900
|
-
className:
|
|
1901
|
-
onClick:
|
|
2001
|
+
className: X.navButton,
|
|
2002
|
+
onClick: P,
|
|
1902
2003
|
"aria-label": "Previous month",
|
|
1903
2004
|
children: /* @__PURE__ */ d(_, {
|
|
1904
2005
|
size: 14,
|
|
@@ -1906,17 +2007,17 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1906
2007
|
})
|
|
1907
2008
|
}),
|
|
1908
2009
|
/* @__PURE__ */ f("span", {
|
|
1909
|
-
className:
|
|
2010
|
+
className: X.monthLabel,
|
|
1910
2011
|
children: [
|
|
1911
|
-
|
|
2012
|
+
it[T],
|
|
1912
2013
|
" ",
|
|
1913
2014
|
C
|
|
1914
2015
|
]
|
|
1915
2016
|
}),
|
|
1916
2017
|
/* @__PURE__ */ d("button", {
|
|
1917
2018
|
type: "button",
|
|
1918
|
-
className:
|
|
1919
|
-
onClick:
|
|
2019
|
+
className: X.navButton,
|
|
2020
|
+
onClick: ee,
|
|
1920
2021
|
"aria-label": "Next month",
|
|
1921
2022
|
children: /* @__PURE__ */ d(v, {
|
|
1922
2023
|
size: 14,
|
|
@@ -1926,27 +2027,27 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1926
2027
|
]
|
|
1927
2028
|
}),
|
|
1928
2029
|
/* @__PURE__ */ d("div", {
|
|
1929
|
-
className:
|
|
1930
|
-
children:
|
|
1931
|
-
className:
|
|
2030
|
+
className: X.weekdays,
|
|
2031
|
+
children: rt.map((e) => /* @__PURE__ */ d("span", {
|
|
2032
|
+
className: X.weekday,
|
|
1932
2033
|
children: e
|
|
1933
2034
|
}, e))
|
|
1934
2035
|
}),
|
|
1935
2036
|
/* @__PURE__ */ d("div", {
|
|
1936
|
-
className:
|
|
1937
|
-
children:
|
|
1938
|
-
let n = e.getMonth() !== T, r =
|
|
2037
|
+
className: X.grid,
|
|
2038
|
+
children: F.map((e) => {
|
|
2039
|
+
let n = e.getMonth() !== T, r = ot(e, t), i = ot(e, x);
|
|
1939
2040
|
return /* @__PURE__ */ d("button", {
|
|
1940
2041
|
type: "button",
|
|
1941
2042
|
className: [
|
|
1942
|
-
|
|
1943
|
-
n ?
|
|
1944
|
-
r ?
|
|
1945
|
-
i && !r ?
|
|
2043
|
+
X.day,
|
|
2044
|
+
n ? X.outside : "",
|
|
2045
|
+
r ? X.selected : "",
|
|
2046
|
+
i && !r ? X.today : ""
|
|
1946
2047
|
].filter(Boolean).join(" "),
|
|
1947
|
-
onClick: () =>
|
|
2048
|
+
onClick: () => te(e),
|
|
1948
2049
|
ref: (t) => {
|
|
1949
|
-
t ? A.current.set(
|
|
2050
|
+
t ? A.current.set(at(e), t) : A.current.delete(at(e));
|
|
1950
2051
|
},
|
|
1951
2052
|
"aria-label": e.toLocaleDateString(void 0, {
|
|
1952
2053
|
weekday: "long",
|
|
@@ -1956,8 +2057,8 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1956
2057
|
}),
|
|
1957
2058
|
"aria-pressed": r,
|
|
1958
2059
|
"aria-current": i ? "date" : void 0,
|
|
1959
|
-
tabIndex:
|
|
1960
|
-
onKeyDown: (t) =>
|
|
2060
|
+
tabIndex: ot(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
|
|
2061
|
+
onKeyDown: (t) => N(t, e),
|
|
1961
2062
|
children: e.getDate()
|
|
1962
2063
|
}, e.toISOString());
|
|
1963
2064
|
})
|
|
@@ -1967,13 +2068,83 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1967
2068
|
}),
|
|
1968
2069
|
a && /* @__PURE__ */ d("span", {
|
|
1969
2070
|
id: m,
|
|
1970
|
-
className:
|
|
2071
|
+
className: X.errorText,
|
|
1971
2072
|
role: "alert",
|
|
1972
2073
|
children: a
|
|
1973
2074
|
})
|
|
1974
2075
|
]
|
|
1975
2076
|
});
|
|
1976
|
-
},
|
|
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 = {
|
|
1977
2148
|
root: "_root_biiv1_1",
|
|
1978
2149
|
micro: "_micro_biiv1_7",
|
|
1979
2150
|
default: "_default_biiv1_8",
|
|
@@ -1989,13 +2160,13 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1989
2160
|
panelTrigger: "_panelTrigger_biiv1_77",
|
|
1990
2161
|
viewport: "_viewport_biiv1_60",
|
|
1991
2162
|
content: "_content_biiv1_110"
|
|
1992
|
-
},
|
|
2163
|
+
}, ht = {
|
|
1993
2164
|
micro: 14,
|
|
1994
2165
|
default: 14,
|
|
1995
2166
|
large: 21
|
|
1996
|
-
},
|
|
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) => {
|
|
1997
2168
|
let p = e.useRef(null), m = e.useRef(!1);
|
|
1998
|
-
|
|
2169
|
+
_t(() => {
|
|
1999
2170
|
let e = p.current;
|
|
2000
2171
|
if (!e || r !== "trigger") return;
|
|
2001
2172
|
let t = () => {
|
|
@@ -2025,7 +2196,7 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
2025
2196
|
...o,
|
|
2026
2197
|
...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
|
|
2027
2198
|
}, g = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
|
|
2028
|
-
return /* @__PURE__ */ d(
|
|
2199
|
+
return /* @__PURE__ */ d(gt.Provider, {
|
|
2029
2200
|
value: t,
|
|
2030
2201
|
children: /* @__PURE__ */ f(M.Root, {
|
|
2031
2202
|
...l,
|
|
@@ -2042,102 +2213,105 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
2042
2213
|
})
|
|
2043
2214
|
});
|
|
2044
2215
|
});
|
|
2045
|
-
|
|
2046
|
-
var
|
|
2216
|
+
vt.displayName = "NavigationMenu";
|
|
2217
|
+
var yt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ d(M.List, {
|
|
2047
2218
|
...t,
|
|
2048
2219
|
ref: n,
|
|
2049
2220
|
className: `${Q.list} ${e}`
|
|
2050
2221
|
}));
|
|
2051
|
-
|
|
2052
|
-
var
|
|
2053
|
-
function
|
|
2054
|
-
let n = e.useContext(
|
|
2222
|
+
yt.displayName = "NavigationMenuList";
|
|
2223
|
+
var bt = M.Item;
|
|
2224
|
+
function xt({ icon: t }) {
|
|
2225
|
+
let n = e.useContext(gt);
|
|
2055
2226
|
return t ? /* @__PURE__ */ d("span", {
|
|
2056
2227
|
className: Q.icon,
|
|
2057
2228
|
"aria-hidden": "true",
|
|
2058
2229
|
children: e.cloneElement(t, {
|
|
2059
|
-
size:
|
|
2230
|
+
size: ht[n],
|
|
2060
2231
|
color: "currentColor"
|
|
2061
2232
|
})
|
|
2062
2233
|
}) : null;
|
|
2063
2234
|
}
|
|
2064
|
-
var
|
|
2065
|
-
let o = e.useContext(
|
|
2235
|
+
var St = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
|
|
2236
|
+
let o = e.useContext(gt);
|
|
2066
2237
|
return /* @__PURE__ */ f(M.Trigger, {
|
|
2067
2238
|
...i,
|
|
2068
2239
|
ref: a,
|
|
2069
2240
|
className: `${Q.control} ${t}`,
|
|
2070
2241
|
children: [
|
|
2071
|
-
/* @__PURE__ */ d(
|
|
2242
|
+
/* @__PURE__ */ d(xt, { icon: n }),
|
|
2072
2243
|
r,
|
|
2073
2244
|
/* @__PURE__ */ d("span", {
|
|
2074
2245
|
className: Q.caret,
|
|
2075
2246
|
"aria-hidden": "true",
|
|
2076
2247
|
children: /* @__PURE__ */ d(g, {
|
|
2077
|
-
size:
|
|
2248
|
+
size: ht[o],
|
|
2078
2249
|
color: "currentColor"
|
|
2079
2250
|
})
|
|
2080
2251
|
})
|
|
2081
2252
|
]
|
|
2082
2253
|
});
|
|
2083
2254
|
});
|
|
2084
|
-
|
|
2085
|
-
var
|
|
2255
|
+
St.displayName = "NavigationMenuTrigger";
|
|
2256
|
+
var Ct = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ d(M.Content, {
|
|
2086
2257
|
...t,
|
|
2087
2258
|
ref: n,
|
|
2088
2259
|
className: `${Q.content} ${e}`
|
|
2089
2260
|
}));
|
|
2090
|
-
|
|
2091
|
-
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, {
|
|
2092
2263
|
...i,
|
|
2093
2264
|
ref: a,
|
|
2094
2265
|
className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
|
|
2095
|
-
children: e === "navigation" && !i.asChild ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(
|
|
2266
|
+
children: e === "navigation" && !i.asChild ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(xt, { icon: t }), r] }) : r
|
|
2096
2267
|
}));
|
|
2097
|
-
|
|
2268
|
+
wt.displayName = "NavigationMenuLink";
|
|
2098
2269
|
var $ = {
|
|
2099
|
-
panel: "
|
|
2100
|
-
header: "
|
|
2101
|
-
thread: "
|
|
2102
|
-
footer: "
|
|
2103
|
-
hints: "
|
|
2104
|
-
kbd: "
|
|
2105
|
-
userRow: "
|
|
2106
|
-
userMsg: "
|
|
2107
|
-
assistant: "
|
|
2108
|
-
assistantHead: "
|
|
2109
|
-
assistantBody: "
|
|
2110
|
-
composer: "
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
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"
|
|
2126
2300
|
};
|
|
2127
2301
|
//#endregion
|
|
2128
2302
|
//#region src/components/Chat/ChatPanel.tsx
|
|
2129
|
-
function
|
|
2303
|
+
function Tt({ children: e }) {
|
|
2130
2304
|
return /* @__PURE__ */ d("kbd", {
|
|
2131
2305
|
className: $.kbd,
|
|
2132
2306
|
children: e
|
|
2133
2307
|
});
|
|
2134
2308
|
}
|
|
2135
|
-
var
|
|
2136
|
-
/* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(
|
|
2137
|
-
/* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(
|
|
2138
|
-
/* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(
|
|
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"] })
|
|
2139
2313
|
] });
|
|
2140
|
-
function
|
|
2314
|
+
function Dt({ header: e, children: t, composer: n, hints: r = Et, className: i = "", threadRef: a, "aria-label": o }) {
|
|
2141
2315
|
return /* @__PURE__ */ f("div", {
|
|
2142
2316
|
className: `${$.panel} ${i}`,
|
|
2143
2317
|
"aria-label": o,
|
|
@@ -2166,7 +2340,7 @@ function bt({ header: e, children: t, composer: n, hints: r = yt, className: i =
|
|
|
2166
2340
|
}
|
|
2167
2341
|
//#endregion
|
|
2168
2342
|
//#region src/components/Chat/Message.tsx
|
|
2169
|
-
function
|
|
2343
|
+
function Ot({ children: e, className: t = "" }) {
|
|
2170
2344
|
return /* @__PURE__ */ d("div", {
|
|
2171
2345
|
className: $.userRow,
|
|
2172
2346
|
children: /* @__PURE__ */ d("div", {
|
|
@@ -2175,7 +2349,7 @@ function xt({ children: e, className: t = "" }) {
|
|
|
2175
2349
|
})
|
|
2176
2350
|
});
|
|
2177
2351
|
}
|
|
2178
|
-
function
|
|
2352
|
+
function kt({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
|
|
2179
2353
|
return /* @__PURE__ */ f("div", {
|
|
2180
2354
|
className: `${$.assistant} ${r}`,
|
|
2181
2355
|
children: [/* @__PURE__ */ f("div", {
|
|
@@ -2192,69 +2366,81 @@ function St({ label: e = "Assistant", icon: t, children: n, className: r = "" })
|
|
|
2192
2366
|
}
|
|
2193
2367
|
//#endregion
|
|
2194
2368
|
//#region src/components/Chat/Composer.tsx
|
|
2195
|
-
var
|
|
2196
|
-
let
|
|
2197
|
-
o(
|
|
2198
|
-
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;
|
|
2199
2373
|
if (!e) return;
|
|
2200
2374
|
e.style.height = "auto";
|
|
2201
|
-
let t =
|
|
2375
|
+
let t = At * _ + 12;
|
|
2202
2376
|
e.style.height = `${Math.min(e.scrollHeight, t)}px`;
|
|
2203
2377
|
}, [e, _]);
|
|
2204
|
-
let
|
|
2205
|
-
|
|
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());
|
|
2206
2380
|
}, [
|
|
2207
|
-
|
|
2381
|
+
T,
|
|
2208
2382
|
n,
|
|
2209
2383
|
e
|
|
2210
2384
|
]);
|
|
2211
2385
|
return /* @__PURE__ */ f("div", {
|
|
2212
|
-
className:
|
|
2386
|
+
className: $.composerWrap,
|
|
2213
2387
|
children: [/* @__PURE__ */ f("div", {
|
|
2214
|
-
className: $.
|
|
2215
|
-
children: [
|
|
2216
|
-
className: $.
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
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
|
+
})
|
|
2235
2428
|
})]
|
|
2236
|
-
}), /* @__PURE__ */
|
|
2237
|
-
className: $.
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
"
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
variant: "primary",
|
|
2246
|
-
size: "micro",
|
|
2247
|
-
"aria-label": "Send",
|
|
2248
|
-
iconLeft: /* @__PURE__ */ d(m, {}),
|
|
2249
|
-
disabled: !S,
|
|
2250
|
-
onClick: C
|
|
2251
|
-
})
|
|
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
|
+
]
|
|
2252
2438
|
})]
|
|
2253
2439
|
});
|
|
2254
2440
|
});
|
|
2255
2441
|
//#endregion
|
|
2256
2442
|
//#region src/components/Chat/Citation.tsx
|
|
2257
|
-
function
|
|
2443
|
+
function Mt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
2258
2444
|
let a = `${$.ref} ${i}`;
|
|
2259
2445
|
return t ? /* @__PURE__ */ d("a", {
|
|
2260
2446
|
href: t,
|
|
@@ -2272,7 +2458,7 @@ function Tt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
|
2272
2458
|
children: e
|
|
2273
2459
|
});
|
|
2274
2460
|
}
|
|
2275
|
-
function
|
|
2461
|
+
function Nt({ items: e, label: t = "Sources", className: n = "" }) {
|
|
2276
2462
|
return e.length === 0 ? null : /* @__PURE__ */ f("div", {
|
|
2277
2463
|
className: `${$.stack} ${n}`,
|
|
2278
2464
|
children: [/* @__PURE__ */ d("div", {
|
|
@@ -2281,7 +2467,7 @@ function Et({ items: e, label: t = "Sources", className: n = "" }) {
|
|
|
2281
2467
|
}), /* @__PURE__ */ d("div", {
|
|
2282
2468
|
className: $.wrap,
|
|
2283
2469
|
children: e.map((e) => {
|
|
2284
|
-
let t = /* @__PURE__ */ f(
|
|
2470
|
+
let t = /* @__PURE__ */ f(Pe, {
|
|
2285
2471
|
icon: e.icon,
|
|
2286
2472
|
children: [
|
|
2287
2473
|
/* @__PURE__ */ d("span", {
|
|
@@ -2309,19 +2495,22 @@ function Et({ items: e, label: t = "Sources", className: n = "" }) {
|
|
|
2309
2495
|
}
|
|
2310
2496
|
//#endregion
|
|
2311
2497
|
//#region src/components/Chat/StreamStatus.tsx
|
|
2312
|
-
function
|
|
2498
|
+
function Pt({ children: e, spinner: t, className: n = "" }) {
|
|
2313
2499
|
return /* @__PURE__ */ f("div", {
|
|
2314
|
-
className: `${$.status} ${
|
|
2500
|
+
className: `${$.status} ${n}`,
|
|
2315
2501
|
role: "status",
|
|
2316
2502
|
children: [/* @__PURE__ */ d("span", {
|
|
2317
2503
|
className: $.statusSpinner,
|
|
2318
|
-
children: /* @__PURE__ */ d(
|
|
2504
|
+
children: /* @__PURE__ */ d(F, {
|
|
2505
|
+
name: t,
|
|
2506
|
+
size: 14
|
|
2507
|
+
})
|
|
2319
2508
|
}), /* @__PURE__ */ d("span", { children: e })]
|
|
2320
2509
|
});
|
|
2321
2510
|
}
|
|
2322
2511
|
//#endregion
|
|
2323
2512
|
//#region src/components/Chat/Suggestions.tsx
|
|
2324
|
-
function
|
|
2513
|
+
function Ft({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
|
|
2325
2514
|
return /* @__PURE__ */ f("div", {
|
|
2326
2515
|
className: `${$.suggestions} ${r}`,
|
|
2327
2516
|
children: [/* @__PURE__ */ d("div", {
|
|
@@ -2329,7 +2518,7 @@ function Ot({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
|
|
|
2329
2518
|
children: n
|
|
2330
2519
|
}), /* @__PURE__ */ d("div", {
|
|
2331
2520
|
className: $.wrap,
|
|
2332
|
-
children: e.map((e) => /* @__PURE__ */ d(
|
|
2521
|
+
children: e.map((e) => /* @__PURE__ */ d(I, {
|
|
2333
2522
|
variant: "secondary",
|
|
2334
2523
|
size: "micro",
|
|
2335
2524
|
onClick: () => t(e),
|
|
@@ -2340,11 +2529,11 @@ function Ot({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
|
|
|
2340
2529
|
}
|
|
2341
2530
|
//#endregion
|
|
2342
2531
|
//#region src/components/Chat/AnswerActions.tsx
|
|
2343
|
-
function
|
|
2532
|
+
function It({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
|
|
2344
2533
|
return /* @__PURE__ */ f("div", {
|
|
2345
2534
|
className: `${$.actions} ${i}`,
|
|
2346
2535
|
children: [
|
|
2347
|
-
e && /* @__PURE__ */ d(
|
|
2536
|
+
e && /* @__PURE__ */ d(I, {
|
|
2348
2537
|
variant: "ghost",
|
|
2349
2538
|
size: "micro",
|
|
2350
2539
|
iconLeft: d(t ? h : y, {}),
|
|
@@ -2352,7 +2541,7 @@ function kt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
|
|
|
2352
2541
|
children: t ? "Copied" : "Copy"
|
|
2353
2542
|
}),
|
|
2354
2543
|
/* @__PURE__ */ d("span", { className: $.actionsSpacer }),
|
|
2355
|
-
n && /* @__PURE__ */ d(
|
|
2544
|
+
n && /* @__PURE__ */ d(I, {
|
|
2356
2545
|
variant: "ghost",
|
|
2357
2546
|
size: "micro",
|
|
2358
2547
|
iconRight: /* @__PURE__ */ d(v, {}),
|
|
@@ -2362,21 +2551,21 @@ function kt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
|
|
|
2362
2551
|
]
|
|
2363
2552
|
});
|
|
2364
2553
|
}
|
|
2365
|
-
var
|
|
2554
|
+
var Lt = {
|
|
2366
2555
|
truncate: "_truncate_za4sm_1",
|
|
2367
2556
|
start: "_start_za4sm_13"
|
|
2368
2557
|
};
|
|
2369
2558
|
//#endregion
|
|
2370
2559
|
//#region src/components/Truncate/Truncate.tsx
|
|
2371
|
-
function
|
|
2560
|
+
function Rt({ children: e, side: t = "end", title: n, className: r = "" }) {
|
|
2372
2561
|
let i = n ?? (typeof e == "string" ? e : void 0);
|
|
2373
2562
|
return /* @__PURE__ */ d("span", {
|
|
2374
|
-
className: `${
|
|
2563
|
+
className: `${Lt.truncate} ${t === "start" ? Lt.start : ""} ${r}`,
|
|
2375
2564
|
title: i,
|
|
2376
2565
|
children: t === "start" ? /* @__PURE__ */ d("bdi", { children: e }) : e
|
|
2377
2566
|
});
|
|
2378
2567
|
}
|
|
2379
|
-
var
|
|
2568
|
+
var zt = {
|
|
2380
2569
|
disclosure: "_disclosure_94bgy_1",
|
|
2381
2570
|
trigger: "_trigger_94bgy_7",
|
|
2382
2571
|
summary: "_summary_94bgy_31",
|
|
@@ -2385,24 +2574,24 @@ var Mt = {
|
|
|
2385
2574
|
};
|
|
2386
2575
|
//#endregion
|
|
2387
2576
|
//#region src/components/Disclosure/Disclosure.tsx
|
|
2388
|
-
function
|
|
2577
|
+
function Bt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
|
|
2389
2578
|
let [s, c] = e.useState(i), l = r ?? s, u = e.useId();
|
|
2390
2579
|
return /* @__PURE__ */ f("div", {
|
|
2391
|
-
className: `${
|
|
2580
|
+
className: `${zt.disclosure} ${o}`,
|
|
2392
2581
|
"data-state": l ? "open" : "closed",
|
|
2393
2582
|
children: [/* @__PURE__ */ f("button", {
|
|
2394
2583
|
type: "button",
|
|
2395
|
-
className:
|
|
2584
|
+
className: zt.trigger,
|
|
2396
2585
|
"aria-expanded": l,
|
|
2397
2586
|
"aria-controls": l ? u : void 0,
|
|
2398
2587
|
onClick: () => {
|
|
2399
2588
|
r === void 0 && c(!l), a?.(!l);
|
|
2400
2589
|
},
|
|
2401
2590
|
children: [/* @__PURE__ */ d("span", {
|
|
2402
|
-
className:
|
|
2591
|
+
className: zt.summary,
|
|
2403
2592
|
children: t
|
|
2404
2593
|
}), /* @__PURE__ */ d("span", {
|
|
2405
|
-
className:
|
|
2594
|
+
className: zt.chevron,
|
|
2406
2595
|
"aria-hidden": "true",
|
|
2407
2596
|
children: d(l ? g : v, {
|
|
2408
2597
|
size: 14,
|
|
@@ -2411,19 +2600,19 @@ function Nt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
|
|
|
2411
2600
|
})]
|
|
2412
2601
|
}), l && /* @__PURE__ */ d("div", {
|
|
2413
2602
|
id: u,
|
|
2414
|
-
className:
|
|
2603
|
+
className: zt.content,
|
|
2415
2604
|
children: n
|
|
2416
2605
|
})]
|
|
2417
2606
|
});
|
|
2418
2607
|
}
|
|
2419
|
-
var
|
|
2608
|
+
var Vt = {
|
|
2420
2609
|
field: "_field_5juos_1",
|
|
2421
2610
|
code: "_code_5juos_16",
|
|
2422
2611
|
status: "_status_5juos_31"
|
|
2423
2612
|
};
|
|
2424
2613
|
//#endregion
|
|
2425
2614
|
//#region src/components/CodeCopy/CodeCopy.tsx
|
|
2426
|
-
async function
|
|
2615
|
+
async function Ht(e) {
|
|
2427
2616
|
if (navigator.clipboard && window.isSecureContext) try {
|
|
2428
2617
|
return await navigator.clipboard.writeText(e), !0;
|
|
2429
2618
|
} catch {}
|
|
@@ -2437,27 +2626,27 @@ async function Ft(e) {
|
|
|
2437
2626
|
t.remove();
|
|
2438
2627
|
}
|
|
2439
2628
|
}
|
|
2440
|
-
function
|
|
2629
|
+
function Ut({ code: e, className: t, onCopy: n }) {
|
|
2441
2630
|
let [r, a] = l(!1), o = c(void 0);
|
|
2442
2631
|
return i(() => () => clearTimeout(o.current), []), /* @__PURE__ */ f("div", {
|
|
2443
|
-
className: [
|
|
2632
|
+
className: [Vt.field, t].filter(Boolean).join(" "),
|
|
2444
2633
|
children: [
|
|
2445
2634
|
/* @__PURE__ */ d("code", {
|
|
2446
|
-
className:
|
|
2635
|
+
className: Vt.code,
|
|
2447
2636
|
children: e
|
|
2448
2637
|
}),
|
|
2449
|
-
/* @__PURE__ */ d(
|
|
2638
|
+
/* @__PURE__ */ d(I, {
|
|
2450
2639
|
size: "micro",
|
|
2451
2640
|
variant: "ghost",
|
|
2452
2641
|
iconLeft: d(r ? h : y, {}),
|
|
2453
2642
|
onClick: async () => {
|
|
2454
|
-
await
|
|
2643
|
+
await Ht(e) && (a(!0), n?.(), clearTimeout(o.current), o.current = setTimeout(() => a(!1), 2e3));
|
|
2455
2644
|
},
|
|
2456
2645
|
"aria-label": r ? "Copied" : "Copy",
|
|
2457
2646
|
title: r ? "Copied" : "Copy"
|
|
2458
2647
|
}),
|
|
2459
2648
|
/* @__PURE__ */ d("span", {
|
|
2460
|
-
className:
|
|
2649
|
+
className: Vt.status,
|
|
2461
2650
|
role: "status",
|
|
2462
2651
|
children: r ? "Copied" : ""
|
|
2463
2652
|
})
|
|
@@ -2465,4 +2654,4 @@ function It({ code: e, className: t, onCopy: n }) {
|
|
|
2465
2654
|
});
|
|
2466
2655
|
}
|
|
2467
2656
|
//#endregion
|
|
2468
|
-
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 };
|