@indxsearch/systm 2.10.1 → 2.11.1
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 +17 -0
- package/dist/components/Tabs/Tabs.d.ts +7 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +502 -495
- package/dist/systm.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import e, {
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { Ai_agent as
|
|
4
|
-
import { Range as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
var
|
|
1
|
+
import e, { cloneElement as t, isValidElement as n, useCallback as r, useEffect as i, useId as a, useImperativeHandle as o, useRef as s, useState as c } from "react";
|
|
2
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
3
|
+
import { Ai_agent as f, ArrowUp as p, Check as m, Chevron_down as h, Chevron_left as g, Chevron_right as _, Copy as v, Dropdown as y, Minus as b, Plus as x, Search as S, Stop as C, Warning as w, X_or_error as T } from "@indxsearch/pixl";
|
|
4
|
+
import { Range as E } from "react-range";
|
|
5
|
+
import * as D from "@radix-ui/react-select";
|
|
6
|
+
import * as O from "@radix-ui/react-popover";
|
|
7
|
+
import * as k from "@radix-ui/react-tooltip";
|
|
8
|
+
import * as A from "@radix-ui/react-dialog";
|
|
9
|
+
import * as j from "@radix-ui/react-navigation-menu";
|
|
10
|
+
var ee = {
|
|
11
11
|
button: "_button_15lsu_1",
|
|
12
12
|
micro: "_micro_15lsu_29",
|
|
13
13
|
default: "_default_15lsu_37",
|
|
@@ -15,10 +15,10 @@ var A = {
|
|
|
15
15
|
primary: "_primary_15lsu_54",
|
|
16
16
|
secondary: "_secondary_15lsu_64",
|
|
17
17
|
ghost: "_ghost_15lsu_74"
|
|
18
|
-
},
|
|
18
|
+
}, te = {
|
|
19
19
|
spinner: "_spinner_wspyi_1",
|
|
20
20
|
frame: "_frame_wspyi_8"
|
|
21
|
-
},
|
|
21
|
+
}, ne = {
|
|
22
22
|
accelerate: {
|
|
23
23
|
viewBox: "0 0 7 5",
|
|
24
24
|
delay: 50,
|
|
@@ -163,7 +163,7 @@ var A = {
|
|
|
163
163
|
"M4 1H5V2H4V1Z M5 0H6V1H5V0Z M1 0H2V1H1V0Z M2 0H3V1H2V0Z M3 0H4V1H3V0Z M4 0H5V1H4V0Z M2 1H3V2H2V1Z M3 2H4V3H3V2Z M4 3H5V4H4V3Z M5 4H6V5H5V4Z M2 3H3V4H2V3Z M1 4H2V5H1V4Z M2 4H3V5H2V4Z M3 4H4V5H3V4Z M3 3H4V4H3V3Z M4 4H5V5H4V4Z M5 4H6V5H5V4Z",
|
|
164
164
|
"M4 1H5V2H4V1Z M5 0H6V1H5V0Z M1 0H2V1H1V0Z M2 0H3V1H2V0Z M3 0H4V1H3V0Z M4 0H5V1H4V0Z M2 1H3V2H2V1Z M3 2H4V3H3V2Z M4 3H5V4H4V3Z M5 4H6V5H5V4Z M2 3H3V4H2V3Z M1 4H2V5H1V4Z M2 4H3V5H2V4Z M3 4H4V5H3V4Z M3 2H4V3H3V2Z M4 4H5V5H4V4Z M5 4H6V5H5V4Z M3 1H4V2H3V1Z M3 3H4V4H3V3Z",
|
|
165
165
|
"M4 1H5V2H4V1Z M5 0H6V1H5V0Z M1 0H2V1H1V0Z M2 0H3V1H2V0Z M3 0H4V1H3V0Z M4 0H5V1H4V0Z M2 1H3V2H2V1Z M3 2H4V3H3V2Z M4 3H5V4H4V3Z M5 4H6V5H5V4Z M2 3H3V4H2V3Z M1 4H2V5H1V4Z M2 4H3V5H2V4Z M3 4H4V5H3V4Z M3 1H4V2H3V1Z M4 4H5V5H4V4Z M5 4H6V5H5V4Z",
|
|
166
|
-
"
|
|
166
|
+
"M2 2L2 3L3 3L3 4L2 4L2 5L1 5L1 -2.18557e-07L2 -1.74845e-07L2 1L3 1L3 2L2 2ZM5 5L5 4L4 4L4 3L3 3L3 2L4 2L4 1L5 1L5 -4.37114e-08L6 0L6 5L5 5Z"
|
|
167
167
|
]
|
|
168
168
|
},
|
|
169
169
|
loop: {
|
|
@@ -279,13 +279,13 @@ var A = {
|
|
|
279
279
|
"M3 4H4V5H3V4Z M5 3H6V4H5V3Z M6 1H7V2H6V1Z M1 3H2V4H1V3Z M0 1H1V2H0V1Z M2 2H5V3H2V2Z M1 0H6V1H1V0Z"
|
|
280
280
|
]
|
|
281
281
|
}
|
|
282
|
-
},
|
|
282
|
+
}, re = Object.keys(ne);
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region src/components/Spinner/Spinner.tsx
|
|
285
|
-
function M({ name: e =
|
|
286
|
-
let o =
|
|
287
|
-
return /* @__PURE__ */
|
|
288
|
-
className: `${
|
|
285
|
+
function M({ name: e = re[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
|
|
286
|
+
let o = ne[e], [, , s, c] = o.viewBox.split(" ").map(Number), l = c / s, d = typeof t == "number" ? t * l : `calc(${t} * ${l})`, f = r ?? o.delay, p = o.frames.length, m = p * f;
|
|
287
|
+
return /* @__PURE__ */ u("svg", {
|
|
288
|
+
className: `${te.spinner} ${i}`,
|
|
289
289
|
width: t,
|
|
290
290
|
height: d,
|
|
291
291
|
viewBox: o.viewBox,
|
|
@@ -293,8 +293,8 @@ function M({ name: e = te[0], size: t = 21, color: n = "currentColor", delay: r,
|
|
|
293
293
|
role: "status",
|
|
294
294
|
"aria-label": a,
|
|
295
295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
296
|
-
children: o.frames.map((e, t) => e ? /* @__PURE__ */
|
|
297
|
-
className:
|
|
296
|
+
children: o.frames.map((e, t) => e ? /* @__PURE__ */ u("path", {
|
|
297
|
+
className: te.frame,
|
|
298
298
|
d: e,
|
|
299
299
|
fill: n,
|
|
300
300
|
style: {
|
|
@@ -307,18 +307,18 @@ function M({ name: e = te[0], size: t = 21, color: n = "currentColor", delay: r,
|
|
|
307
307
|
//#endregion
|
|
308
308
|
//#region src/components/Button/Button.tsx
|
|
309
309
|
function N(t) {
|
|
310
|
-
let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children:
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
310
|
+
let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children: s, loading: c = !1, ...f } = t, p = t.disabled || c, { href: m } = f, h = n === "micro" ? "14px" : n === "large" ? "21px" : "14px", g = n === "large" ? 21 : 14, _ = [
|
|
311
|
+
ee.button,
|
|
312
|
+
ee[n],
|
|
313
|
+
ee[r],
|
|
314
314
|
p ? "cursor-not-allowed" : "cursor-pointer",
|
|
315
315
|
o
|
|
316
|
-
].filter(Boolean).join(" "), v = /* @__PURE__ */ l
|
|
317
|
-
|
|
316
|
+
].filter(Boolean).join(" "), v = /* @__PURE__ */ d(l, { children: [
|
|
317
|
+
c ? /* @__PURE__ */ u(M, { size: g }) : i && e.cloneElement(i, {
|
|
318
318
|
size: h,
|
|
319
319
|
color: "currentColor"
|
|
320
320
|
}),
|
|
321
|
-
|
|
321
|
+
s,
|
|
322
322
|
a && e.cloneElement(a, {
|
|
323
323
|
size: h,
|
|
324
324
|
color: "currentColor"
|
|
@@ -326,17 +326,17 @@ function N(t) {
|
|
|
326
326
|
] });
|
|
327
327
|
if (m) {
|
|
328
328
|
let { type: e, href: t, onClick: n, tabIndex: r, disabled: i, ...a } = f;
|
|
329
|
-
return p ? /* @__PURE__ */
|
|
329
|
+
return p ? /* @__PURE__ */ u("a", {
|
|
330
330
|
className: _,
|
|
331
331
|
...a,
|
|
332
332
|
"aria-disabled": "true",
|
|
333
|
-
"aria-busy":
|
|
333
|
+
"aria-busy": c || void 0,
|
|
334
334
|
tabIndex: -1,
|
|
335
335
|
onClick: (e) => {
|
|
336
336
|
e.preventDefault(), e.stopPropagation();
|
|
337
337
|
},
|
|
338
338
|
children: v
|
|
339
|
-
}) : /* @__PURE__ */
|
|
339
|
+
}) : /* @__PURE__ */ u("a", {
|
|
340
340
|
className: _,
|
|
341
341
|
href: m,
|
|
342
342
|
...a,
|
|
@@ -346,11 +346,11 @@ function N(t) {
|
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
let { type: y = "button", href: b, disabled: x, ...S } = f;
|
|
349
|
-
return /* @__PURE__ */
|
|
349
|
+
return /* @__PURE__ */ u("button", {
|
|
350
350
|
className: _,
|
|
351
351
|
type: y,
|
|
352
352
|
disabled: p,
|
|
353
|
-
"aria-busy":
|
|
353
|
+
"aria-busy": c || void 0,
|
|
354
354
|
...S,
|
|
355
355
|
children: v
|
|
356
356
|
});
|
|
@@ -361,47 +361,47 @@ var P = {
|
|
|
361
361
|
label: "_label_1vygn_44",
|
|
362
362
|
score: "_score_1vygn_48",
|
|
363
363
|
disabled: "_disabled_1vygn_55"
|
|
364
|
-
},
|
|
365
|
-
let s = e.useId(),
|
|
366
|
-
return t || n ? /* @__PURE__ */
|
|
367
|
-
htmlFor:
|
|
364
|
+
}, ie = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
|
|
365
|
+
let s = e.useId(), c = i || s, l = n ? `${c}-score` : void 0, f = o.disabled;
|
|
366
|
+
return t || n ? /* @__PURE__ */ d("label", {
|
|
367
|
+
htmlFor: c,
|
|
368
368
|
className: `${P.checkboxWrapper} ${r} ${f ? P.disabled : ""} ${f ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
369
369
|
children: [
|
|
370
|
-
/* @__PURE__ */
|
|
371
|
-
id:
|
|
370
|
+
/* @__PURE__ */ u("input", {
|
|
371
|
+
id: c,
|
|
372
372
|
type: "checkbox",
|
|
373
373
|
className: P.checkbox,
|
|
374
|
-
"aria-describedby":
|
|
374
|
+
"aria-describedby": l,
|
|
375
375
|
"aria-label": a,
|
|
376
376
|
...o
|
|
377
377
|
}),
|
|
378
|
-
t && /* @__PURE__ */
|
|
378
|
+
t && /* @__PURE__ */ u("span", {
|
|
379
379
|
className: P.label,
|
|
380
380
|
children: t
|
|
381
381
|
}),
|
|
382
|
-
n && /* @__PURE__ */
|
|
383
|
-
id:
|
|
382
|
+
n && /* @__PURE__ */ u("span", {
|
|
383
|
+
id: l,
|
|
384
384
|
className: P.score,
|
|
385
385
|
children: n
|
|
386
386
|
})
|
|
387
387
|
]
|
|
388
|
-
}) : /* @__PURE__ */
|
|
389
|
-
id:
|
|
388
|
+
}) : /* @__PURE__ */ u("input", {
|
|
389
|
+
id: c,
|
|
390
390
|
type: "checkbox",
|
|
391
391
|
className: `${P.checkbox} ${r}`,
|
|
392
392
|
"aria-label": a,
|
|
393
393
|
disabled: f,
|
|
394
394
|
...o
|
|
395
395
|
});
|
|
396
|
-
},
|
|
396
|
+
}, ae = {
|
|
397
397
|
container: "_container_dlzj1_1",
|
|
398
398
|
default: "_default_dlzj1_5"
|
|
399
399
|
};
|
|
400
400
|
//#endregion
|
|
401
401
|
//#region src/components/Base/Base.tsx
|
|
402
|
-
function
|
|
403
|
-
return /* @__PURE__ */
|
|
404
|
-
className: `${
|
|
402
|
+
function oe({ children: e, className: t }) {
|
|
403
|
+
return /* @__PURE__ */ u("div", {
|
|
404
|
+
className: `${ae.container} ${ae.default} ${t || ""}`,
|
|
405
405
|
children: e
|
|
406
406
|
});
|
|
407
407
|
}
|
|
@@ -414,43 +414,43 @@ var F = {
|
|
|
414
414
|
};
|
|
415
415
|
//#endregion
|
|
416
416
|
//#region src/components/FilterPanelBase/FilterPanelBase.tsx
|
|
417
|
-
function
|
|
418
|
-
let [
|
|
419
|
-
return
|
|
420
|
-
a &&
|
|
421
|
-
}, [
|
|
422
|
-
className: `${F.container} ${
|
|
423
|
-
children: [t && (a ? /* @__PURE__ */
|
|
417
|
+
function se({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
|
|
418
|
+
let [s, l] = c(() => !o), f = e.useId();
|
|
419
|
+
return i(() => {
|
|
420
|
+
a && l(!o);
|
|
421
|
+
}, [o, a]), /* @__PURE__ */ d("div", {
|
|
422
|
+
className: `${F.container} ${r}`,
|
|
423
|
+
children: [t && (a ? /* @__PURE__ */ d("button", {
|
|
424
424
|
type: "button",
|
|
425
425
|
className: F.header,
|
|
426
426
|
onClick: () => {
|
|
427
|
-
a &&
|
|
427
|
+
a && l((e) => !e);
|
|
428
428
|
},
|
|
429
|
-
"aria-label": `${t}: ${
|
|
430
|
-
"aria-expanded":
|
|
429
|
+
"aria-label": `${t}: ${s ? "Collapse panel" : "Expand panel"}`,
|
|
430
|
+
"aria-expanded": s,
|
|
431
431
|
"aria-controls": f,
|
|
432
|
-
children: [/* @__PURE__ */
|
|
432
|
+
children: [/* @__PURE__ */ u("div", {
|
|
433
433
|
className: F.title,
|
|
434
434
|
children: t
|
|
435
|
-
}), /* @__PURE__ */
|
|
435
|
+
}), /* @__PURE__ */ u("span", {
|
|
436
436
|
"aria-hidden": "true",
|
|
437
|
-
children:
|
|
437
|
+
children: u(s ? b : x, {
|
|
438
438
|
color: "var(--lv5)",
|
|
439
439
|
size: 14
|
|
440
440
|
})
|
|
441
441
|
})]
|
|
442
|
-
}) : /* @__PURE__ */
|
|
442
|
+
}) : /* @__PURE__ */ u("div", {
|
|
443
443
|
className: F.header,
|
|
444
|
-
children: /* @__PURE__ */
|
|
444
|
+
children: /* @__PURE__ */ u("div", {
|
|
445
445
|
className: F.title,
|
|
446
446
|
children: t
|
|
447
447
|
})
|
|
448
|
-
})), (!a ||
|
|
448
|
+
})), (!a || s) && /* @__PURE__ */ u("div", {
|
|
449
449
|
id: f,
|
|
450
450
|
className: F.body,
|
|
451
451
|
role: "region",
|
|
452
452
|
"aria-label": t || "Filter panel content",
|
|
453
|
-
children:
|
|
453
|
+
children: n
|
|
454
454
|
})]
|
|
455
455
|
});
|
|
456
456
|
}
|
|
@@ -466,50 +466,50 @@ var I = {
|
|
|
466
466
|
sizeDefault: "_sizeDefault_tf1yl_87",
|
|
467
467
|
error: "_error_tf1yl_110",
|
|
468
468
|
errorText: "_errorText_tf1yl_114"
|
|
469
|
-
},
|
|
469
|
+
}, ce = {
|
|
470
470
|
micro: 14,
|
|
471
471
|
default: 21
|
|
472
472
|
};
|
|
473
|
-
function
|
|
474
|
-
let g =
|
|
475
|
-
|
|
476
|
-
let C =
|
|
477
|
-
return /* @__PURE__ */
|
|
473
|
+
function le({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: a, searchIconColor: o, inputSize: c = "default", showFocusBorder: l = !1, children: f, id: p, type: m = "search", ...h }) {
|
|
474
|
+
let g = s(null), _ = e.useId(), v = p || _, y = `${v}-error`, b = ce[c], x = {};
|
|
475
|
+
o && (x["--search-icon-color"] = o);
|
|
476
|
+
let C = a ?? /* @__PURE__ */ u(S, {}), w = c === "micro" ? I.sizeMicro : I.sizeDefault;
|
|
477
|
+
return /* @__PURE__ */ d("div", {
|
|
478
478
|
className: `${I.wrapper} ${r}`,
|
|
479
479
|
children: [
|
|
480
|
-
t && /* @__PURE__ */
|
|
480
|
+
t && /* @__PURE__ */ u("label", {
|
|
481
481
|
htmlFor: v,
|
|
482
482
|
className: I.label,
|
|
483
483
|
children: t
|
|
484
484
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ d("div", {
|
|
486
486
|
className: `${I.inputContainer} ${w}`,
|
|
487
487
|
children: [
|
|
488
|
-
i && /* @__PURE__ */
|
|
488
|
+
i && /* @__PURE__ */ u("span", {
|
|
489
489
|
className: I.searchIcon,
|
|
490
490
|
"aria-hidden": "true",
|
|
491
491
|
children: e.cloneElement(C, {
|
|
492
|
-
size:
|
|
493
|
-
color:
|
|
492
|
+
size: b,
|
|
493
|
+
color: o ?? "var(--search-icon-color)"
|
|
494
494
|
})
|
|
495
495
|
}),
|
|
496
|
-
/* @__PURE__ */
|
|
496
|
+
/* @__PURE__ */ u("input", {
|
|
497
497
|
ref: g,
|
|
498
498
|
id: v,
|
|
499
499
|
type: m,
|
|
500
|
-
className: `${I.input} ${
|
|
501
|
-
style:
|
|
500
|
+
className: `${I.input} ${l ? I.focus : ""} ${n ? I.error : ""}`,
|
|
501
|
+
style: x,
|
|
502
502
|
"aria-invalid": n ? "true" : "false",
|
|
503
503
|
"aria-describedby": n ? y : void 0,
|
|
504
504
|
...h
|
|
505
505
|
}),
|
|
506
|
-
f && /* @__PURE__ */
|
|
506
|
+
f && /* @__PURE__ */ u("div", {
|
|
507
507
|
className: I.rightContent,
|
|
508
508
|
children: f
|
|
509
509
|
})
|
|
510
510
|
]
|
|
511
511
|
}),
|
|
512
|
-
n && /* @__PURE__ */
|
|
512
|
+
n && /* @__PURE__ */ u("span", {
|
|
513
513
|
id: y,
|
|
514
514
|
className: I.errorText,
|
|
515
515
|
role: "alert",
|
|
@@ -528,27 +528,27 @@ var L = {
|
|
|
528
528
|
};
|
|
529
529
|
//#endregion
|
|
530
530
|
//#region src/components/InputField/InputField.tsx
|
|
531
|
-
function
|
|
532
|
-
let
|
|
533
|
-
return /* @__PURE__ */
|
|
531
|
+
function ue({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
|
|
532
|
+
let c = e.useId(), l = o || c, f = `${l}-error`, p = n || !i;
|
|
533
|
+
return /* @__PURE__ */ d("div", {
|
|
534
534
|
className: `${L.wrapper} ${r}`,
|
|
535
535
|
children: [
|
|
536
|
-
t && /* @__PURE__ */
|
|
537
|
-
htmlFor:
|
|
536
|
+
t && /* @__PURE__ */ d("label", {
|
|
537
|
+
htmlFor: l,
|
|
538
538
|
className: L.label,
|
|
539
|
-
children: [t, s.required && /* @__PURE__ */
|
|
539
|
+
children: [t, s.required && /* @__PURE__ */ u("span", {
|
|
540
540
|
"aria-label": "required",
|
|
541
541
|
children: " *"
|
|
542
542
|
})]
|
|
543
543
|
}),
|
|
544
|
-
/* @__PURE__ */
|
|
545
|
-
id:
|
|
544
|
+
/* @__PURE__ */ u("input", {
|
|
545
|
+
id: l,
|
|
546
546
|
className: `${L.input} ${a === "borderBottom" ? L.borderBottom : ""} ${p ? L.error : ""}`,
|
|
547
547
|
"aria-invalid": p ? "true" : "false",
|
|
548
548
|
"aria-describedby": n ? f : void 0,
|
|
549
549
|
...s
|
|
550
550
|
}),
|
|
551
|
-
n && /* @__PURE__ */
|
|
551
|
+
n && /* @__PURE__ */ u("span", {
|
|
552
552
|
id: f,
|
|
553
553
|
className: L.errorText,
|
|
554
554
|
role: "alert",
|
|
@@ -563,11 +563,11 @@ var R = {
|
|
|
563
563
|
customRadio: "_customRadio_1faq0_23",
|
|
564
564
|
labelText: "_labelText_1faq0_57",
|
|
565
565
|
disabled: "_disabled_1faq0_63"
|
|
566
|
-
},
|
|
566
|
+
}, de = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ d("label", {
|
|
567
567
|
htmlFor: e,
|
|
568
568
|
className: `${R.radioWrapper} ${o ? R.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
569
569
|
children: [
|
|
570
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ u("input", {
|
|
571
571
|
id: e,
|
|
572
572
|
type: "radio",
|
|
573
573
|
name: t,
|
|
@@ -578,25 +578,25 @@ var R = {
|
|
|
578
578
|
"aria-label": s,
|
|
579
579
|
className: R.radioInput
|
|
580
580
|
}),
|
|
581
|
-
/* @__PURE__ */
|
|
582
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ u("span", { className: R.customRadio }),
|
|
582
|
+
/* @__PURE__ */ u("span", {
|
|
583
583
|
className: R.labelText,
|
|
584
584
|
children: r
|
|
585
585
|
})
|
|
586
586
|
]
|
|
587
|
-
}),
|
|
587
|
+
}), fe = {
|
|
588
588
|
switch: "_switch_1xsea_1",
|
|
589
589
|
slider: "_slider_1xsea_23",
|
|
590
590
|
label: "_label_1xsea_28",
|
|
591
591
|
disabled: "_disabled_1xsea_43"
|
|
592
|
-
},
|
|
593
|
-
let s = e.useId(),
|
|
594
|
-
return /* @__PURE__ */
|
|
595
|
-
htmlFor:
|
|
596
|
-
className: `${
|
|
592
|
+
}, pe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
|
|
593
|
+
let s = e.useId(), c = t || s;
|
|
594
|
+
return /* @__PURE__ */ d("label", {
|
|
595
|
+
htmlFor: c,
|
|
596
|
+
className: `${fe.switch} ${i ? fe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
597
597
|
children: [
|
|
598
|
-
/* @__PURE__ */
|
|
599
|
-
id:
|
|
598
|
+
/* @__PURE__ */ u("input", {
|
|
599
|
+
id: c,
|
|
600
600
|
type: "checkbox",
|
|
601
601
|
role: "switch",
|
|
602
602
|
"aria-checked": n,
|
|
@@ -605,12 +605,12 @@ var R = {
|
|
|
605
605
|
onChange: (e) => r(e.target.checked),
|
|
606
606
|
disabled: i
|
|
607
607
|
}),
|
|
608
|
-
/* @__PURE__ */
|
|
609
|
-
className:
|
|
608
|
+
/* @__PURE__ */ u("span", {
|
|
609
|
+
className: fe.slider,
|
|
610
610
|
"aria-hidden": "true"
|
|
611
611
|
}),
|
|
612
|
-
a && /* @__PURE__ */
|
|
613
|
-
className:
|
|
612
|
+
a && /* @__PURE__ */ u("span", {
|
|
613
|
+
className: fe.label,
|
|
614
614
|
children: a
|
|
615
615
|
})
|
|
616
616
|
]
|
|
@@ -624,27 +624,27 @@ var R = {
|
|
|
624
624
|
livetrackDefault: "_livetrackDefault_12as9_52",
|
|
625
625
|
thumbs: "_thumbs_12as9_55",
|
|
626
626
|
disabled: "_disabled_12as9_89"
|
|
627
|
-
},
|
|
628
|
-
let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax:
|
|
629
|
-
if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */
|
|
627
|
+
}, me = (t) => {
|
|
628
|
+
let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: f = !0, onChange: p, onFinalChange: m, label: h, "aria-label": g, id: _ } = t, v = e.useId(), y = _ || v;
|
|
629
|
+
if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ d("div", {
|
|
630
630
|
className: o,
|
|
631
|
-
children: [h && /* @__PURE__ */
|
|
631
|
+
children: [h && /* @__PURE__ */ u("span", {
|
|
632
632
|
className: z.label,
|
|
633
633
|
children: h
|
|
634
|
-
}), /* @__PURE__ */
|
|
634
|
+
}), /* @__PURE__ */ u("div", {
|
|
635
635
|
className: `${z.basetrack} ${z.disabled}`,
|
|
636
636
|
"aria-hidden": "true"
|
|
637
637
|
})]
|
|
638
638
|
});
|
|
639
639
|
if ("isRange" in t && t.isRange) {
|
|
640
640
|
let e = t.value, [f, _] = e;
|
|
641
|
-
return /* @__PURE__ */
|
|
641
|
+
return /* @__PURE__ */ d("div", {
|
|
642
642
|
className: o,
|
|
643
|
-
children: [h && /* @__PURE__ */
|
|
643
|
+
children: [h && /* @__PURE__ */ u("label", {
|
|
644
644
|
htmlFor: y,
|
|
645
645
|
className: z.label,
|
|
646
646
|
children: h
|
|
647
|
-
}), /* @__PURE__ */
|
|
647
|
+
}), /* @__PURE__ */ u(E, {
|
|
648
648
|
step: i,
|
|
649
649
|
min: n,
|
|
650
650
|
max: r,
|
|
@@ -653,13 +653,13 @@ var R = {
|
|
|
653
653
|
onFinalChange: (e) => m?.(e),
|
|
654
654
|
disabled: a,
|
|
655
655
|
renderTrack: ({ props: e, children: t }) => {
|
|
656
|
-
let { key: i, ...a } = e, o = r - n, p = (f - n) / o * 100, m = (_ - f) / o * 100, h = 0, g = 0, v = typeof s == "number" && typeof
|
|
657
|
-
return v && (h = (s - n) / o * 100, g = (
|
|
656
|
+
let { key: i, ...a } = e, o = r - n, p = (f - n) / o * 100, m = (_ - f) / o * 100, h = 0, g = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
|
|
657
|
+
return v && (h = (s - n) / o * 100, g = (c - s) / o * 100), /* @__PURE__ */ d("div", {
|
|
658
658
|
...a,
|
|
659
659
|
className: z.basetrack,
|
|
660
660
|
style: { ...a.style },
|
|
661
661
|
children: [
|
|
662
|
-
!v && /* @__PURE__ */
|
|
662
|
+
!v && /* @__PURE__ */ u("div", {
|
|
663
663
|
className: z.selectedtrack,
|
|
664
664
|
style: {
|
|
665
665
|
left: `${p}%`,
|
|
@@ -667,8 +667,8 @@ var R = {
|
|
|
667
667
|
zIndex: "1"
|
|
668
668
|
}
|
|
669
669
|
}),
|
|
670
|
-
v && /* @__PURE__ */
|
|
671
|
-
className: `${z.livetrack} ${
|
|
670
|
+
v && /* @__PURE__ */ u("div", {
|
|
671
|
+
className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
|
|
672
672
|
style: {
|
|
673
673
|
left: `${h}%`,
|
|
674
674
|
width: `${g}%`,
|
|
@@ -681,7 +681,7 @@ var R = {
|
|
|
681
681
|
},
|
|
682
682
|
renderThumb: ({ props: e, index: t }) => {
|
|
683
683
|
let { key: i, ...o } = e, s = t === 0 ? f : _;
|
|
684
|
-
return /* @__PURE__ */
|
|
684
|
+
return /* @__PURE__ */ u("div", {
|
|
685
685
|
...o,
|
|
686
686
|
id: t === 0 ? y : void 0,
|
|
687
687
|
className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
@@ -699,13 +699,13 @@ var R = {
|
|
|
699
699
|
});
|
|
700
700
|
} else {
|
|
701
701
|
let e = t.value;
|
|
702
|
-
return /* @__PURE__ */
|
|
702
|
+
return /* @__PURE__ */ d("div", {
|
|
703
703
|
className: o,
|
|
704
|
-
children: [h && /* @__PURE__ */
|
|
704
|
+
children: [h && /* @__PURE__ */ u("label", {
|
|
705
705
|
htmlFor: y,
|
|
706
706
|
className: z.label,
|
|
707
707
|
children: h
|
|
708
|
-
}), /* @__PURE__ */
|
|
708
|
+
}), /* @__PURE__ */ u(E, {
|
|
709
709
|
step: i,
|
|
710
710
|
min: n,
|
|
711
711
|
max: r,
|
|
@@ -714,13 +714,13 @@ var R = {
|
|
|
714
714
|
onFinalChange: (e) => m?.(e[0]),
|
|
715
715
|
disabled: a,
|
|
716
716
|
renderTrack: ({ props: t, children: i }) => {
|
|
717
|
-
let { key: a, ...o } = t, f = r - n, p = (e - n) / f * 100, m = 0, h = 0, g = typeof s == "number" && typeof
|
|
718
|
-
return g && (m = (s - n) / f * 100, h = (
|
|
717
|
+
let { key: a, ...o } = t, f = r - n, p = (e - n) / f * 100, m = 0, h = 0, g = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
|
|
718
|
+
return g && (m = (s - n) / f * 100, h = (c - s) / f * 100), /* @__PURE__ */ d("div", {
|
|
719
719
|
...o,
|
|
720
720
|
className: z.basetrack,
|
|
721
721
|
style: { ...o.style },
|
|
722
722
|
children: [
|
|
723
|
-
!g && /* @__PURE__ */
|
|
723
|
+
!g && /* @__PURE__ */ u("div", {
|
|
724
724
|
className: z.selectedtrack,
|
|
725
725
|
style: {
|
|
726
726
|
left: "0%",
|
|
@@ -728,8 +728,8 @@ var R = {
|
|
|
728
728
|
zIndex: "1"
|
|
729
729
|
}
|
|
730
730
|
}),
|
|
731
|
-
g && /* @__PURE__ */
|
|
732
|
-
className: `${z.livetrack} ${
|
|
731
|
+
g && /* @__PURE__ */ u("div", {
|
|
732
|
+
className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
|
|
733
733
|
style: {
|
|
734
734
|
left: `${m}%`,
|
|
735
735
|
width: `${h}%`,
|
|
@@ -742,7 +742,7 @@ var R = {
|
|
|
742
742
|
},
|
|
743
743
|
renderThumb: ({ props: t }) => {
|
|
744
744
|
let { key: i, ...o } = t;
|
|
745
|
-
return /* @__PURE__ */
|
|
745
|
+
return /* @__PURE__ */ u("div", {
|
|
746
746
|
...o,
|
|
747
747
|
id: y,
|
|
748
748
|
className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
@@ -771,51 +771,51 @@ var R = {
|
|
|
771
771
|
viewport: "_viewport_15fsv_76",
|
|
772
772
|
item: "_item_15fsv_82",
|
|
773
773
|
itemIndicator: "_itemIndicator_15fsv_105"
|
|
774
|
-
},
|
|
775
|
-
let
|
|
774
|
+
}, he = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", "aria-label": l, id: f }) => {
|
|
775
|
+
let p = e.useId(), g = f || p, _ = `${g}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ d(D.Root, {
|
|
776
776
|
value: t,
|
|
777
777
|
onValueChange: n,
|
|
778
778
|
disabled: o,
|
|
779
|
-
children: [/* @__PURE__ */
|
|
779
|
+
children: [/* @__PURE__ */ d(D.Trigger, {
|
|
780
780
|
id: g,
|
|
781
|
-
className: `${B.trigger} ${B[
|
|
782
|
-
...s ? { "aria-labelledby": _ } :
|
|
783
|
-
children: [/* @__PURE__ */
|
|
781
|
+
className: `${B.trigger} ${B[c]} ${a} cursor-pointer`,
|
|
782
|
+
...s ? { "aria-labelledby": _ } : l ? { "aria-label": l } : {},
|
|
783
|
+
children: [/* @__PURE__ */ d("span", {
|
|
784
784
|
style: {
|
|
785
785
|
display: "inline-flex",
|
|
786
786
|
alignItems: "center",
|
|
787
787
|
gap: 6
|
|
788
788
|
},
|
|
789
|
-
children: [v?.icon, /* @__PURE__ */
|
|
790
|
-
}), /* @__PURE__ */
|
|
789
|
+
children: [v?.icon, /* @__PURE__ */ u(D.Value, { placeholder: i })]
|
|
790
|
+
}), /* @__PURE__ */ u(D.Icon, {
|
|
791
791
|
className: B.icon,
|
|
792
792
|
"aria-hidden": "true",
|
|
793
|
-
children: /* @__PURE__ */
|
|
794
|
-
size:
|
|
793
|
+
children: /* @__PURE__ */ u(h, {
|
|
794
|
+
size: c === "large" ? 21 : 14,
|
|
795
795
|
color: "currentColor"
|
|
796
796
|
})
|
|
797
797
|
})]
|
|
798
|
-
}), /* @__PURE__ */
|
|
798
|
+
}), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
|
|
799
799
|
className: B.content,
|
|
800
800
|
position: "popper",
|
|
801
801
|
side: "bottom",
|
|
802
802
|
align: "start",
|
|
803
803
|
sideOffset: 4,
|
|
804
|
-
children: /* @__PURE__ */
|
|
804
|
+
children: /* @__PURE__ */ u(D.Viewport, {
|
|
805
805
|
className: B.viewport,
|
|
806
|
-
children: r.map((e) => /* @__PURE__ */
|
|
806
|
+
children: r.map((e) => /* @__PURE__ */ d(D.Item, {
|
|
807
807
|
value: e.value,
|
|
808
808
|
className: B.item,
|
|
809
|
-
children: [/* @__PURE__ */
|
|
809
|
+
children: [/* @__PURE__ */ d("span", {
|
|
810
810
|
style: {
|
|
811
811
|
display: "inline-flex",
|
|
812
812
|
alignItems: "center",
|
|
813
813
|
gap: 6
|
|
814
814
|
},
|
|
815
|
-
children: [e.icon, /* @__PURE__ */
|
|
816
|
-
}), /* @__PURE__ */
|
|
815
|
+
children: [e.icon, /* @__PURE__ */ u(D.ItemText, { children: e.label })]
|
|
816
|
+
}), /* @__PURE__ */ u(D.ItemIndicator, {
|
|
817
817
|
className: B.itemIndicator,
|
|
818
|
-
children: /* @__PURE__ */
|
|
818
|
+
children: /* @__PURE__ */ u(m, {
|
|
819
819
|
size: 12,
|
|
820
820
|
color: "currentColor"
|
|
821
821
|
})
|
|
@@ -824,28 +824,28 @@ var R = {
|
|
|
824
824
|
})
|
|
825
825
|
}) })]
|
|
826
826
|
});
|
|
827
|
-
return s ? /* @__PURE__ */
|
|
827
|
+
return s ? /* @__PURE__ */ d("div", {
|
|
828
828
|
className: B.wrapper,
|
|
829
|
-
children: [/* @__PURE__ */
|
|
829
|
+
children: [/* @__PURE__ */ u("label", {
|
|
830
830
|
id: _,
|
|
831
831
|
htmlFor: g,
|
|
832
832
|
className: B.label,
|
|
833
833
|
children: s
|
|
834
834
|
}), y]
|
|
835
835
|
}) : y;
|
|
836
|
-
},
|
|
836
|
+
}, ge = { content: "_content_1qahr_1" }, _e = ({ 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__ */ d(O.Root, {
|
|
837
837
|
open: n,
|
|
838
838
|
onOpenChange: r,
|
|
839
|
-
children: [/* @__PURE__ */
|
|
839
|
+
children: [/* @__PURE__ */ u(O.Trigger, {
|
|
840
840
|
asChild: !0,
|
|
841
841
|
children: e
|
|
842
|
-
}), /* @__PURE__ */
|
|
843
|
-
className: `${
|
|
842
|
+
}), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ u(O.Content, {
|
|
843
|
+
className: `${ge.content} ${s}`,
|
|
844
844
|
align: i,
|
|
845
845
|
side: a,
|
|
846
846
|
sideOffset: o,
|
|
847
|
-
"aria-label":
|
|
848
|
-
"aria-describedby":
|
|
847
|
+
"aria-label": c,
|
|
848
|
+
"aria-describedby": l,
|
|
849
849
|
children: t
|
|
850
850
|
}) })]
|
|
851
851
|
}), V = {
|
|
@@ -861,11 +861,11 @@ var R = {
|
|
|
861
861
|
};
|
|
862
862
|
//#endregion
|
|
863
863
|
//#region src/components/Table/Table.tsx
|
|
864
|
-
function
|
|
865
|
-
return /* @__PURE__ */
|
|
864
|
+
function ve({ children: e, caption: t, "aria-label": n }) {
|
|
865
|
+
return /* @__PURE__ */ d("table", {
|
|
866
866
|
className: V.table,
|
|
867
867
|
"aria-label": n,
|
|
868
|
-
children: [t && /* @__PURE__ */
|
|
868
|
+
children: [t && /* @__PURE__ */ u("caption", {
|
|
869
869
|
className: V.caption,
|
|
870
870
|
children: t
|
|
871
871
|
}), e]
|
|
@@ -873,58 +873,58 @@ function ge({ children: e, caption: t, "aria-label": n }) {
|
|
|
873
873
|
}
|
|
874
874
|
//#endregion
|
|
875
875
|
//#region src/components/Table/TableHeader.tsx
|
|
876
|
-
function
|
|
877
|
-
let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */
|
|
876
|
+
function ye({ children: t }) {
|
|
877
|
+
let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ u("th", {
|
|
878
878
|
scope: "col",
|
|
879
879
|
...t.props
|
|
880
880
|
}) : t);
|
|
881
|
-
return /* @__PURE__ */
|
|
881
|
+
return /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
|
|
882
882
|
className: V.headerRow,
|
|
883
883
|
children: n
|
|
884
884
|
}) });
|
|
885
885
|
}
|
|
886
886
|
//#endregion
|
|
887
887
|
//#region src/components/Table/TableRow.tsx
|
|
888
|
-
function
|
|
889
|
-
return /* @__PURE__ */
|
|
888
|
+
function be({ children: e }) {
|
|
889
|
+
return /* @__PURE__ */ u("tr", {
|
|
890
890
|
className: V.dataRow,
|
|
891
891
|
children: e
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
894
|
//#endregion
|
|
895
895
|
//#region src/components/Table/TableCell.tsx
|
|
896
|
-
function
|
|
896
|
+
function xe({ label: e, children: t, isHeader: n = !1, scope: r }) {
|
|
897
897
|
let i = n ? "th" : "td", a = n && r ? { scope: r } : {};
|
|
898
|
-
return e || t ? /* @__PURE__ */
|
|
898
|
+
return e || t ? /* @__PURE__ */ u(i, {
|
|
899
899
|
...a,
|
|
900
|
-
children: /* @__PURE__ */
|
|
900
|
+
children: /* @__PURE__ */ d("div", {
|
|
901
901
|
className: V.cellInner,
|
|
902
|
-
children: [e && /* @__PURE__ */
|
|
902
|
+
children: [e && /* @__PURE__ */ u("span", {
|
|
903
903
|
className: V.cellLabel,
|
|
904
904
|
children: e
|
|
905
|
-
}), t && /* @__PURE__ */
|
|
905
|
+
}), t && /* @__PURE__ */ u("div", {
|
|
906
906
|
className: V.cellContent,
|
|
907
907
|
children: t
|
|
908
908
|
})]
|
|
909
909
|
})
|
|
910
|
-
}) : /* @__PURE__ */
|
|
910
|
+
}) : /* @__PURE__ */ u(i, {
|
|
911
911
|
...a,
|
|
912
912
|
children: t
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
915
|
//#endregion
|
|
916
916
|
//#region src/components/Table/TableValue.tsx
|
|
917
|
-
function
|
|
918
|
-
return /* @__PURE__ */
|
|
917
|
+
function Se({ children: e }) {
|
|
918
|
+
return /* @__PURE__ */ u("span", {
|
|
919
919
|
className: V.value,
|
|
920
920
|
children: e
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
//#endregion
|
|
924
924
|
//#region src/components/Table/TableIcon.tsx
|
|
925
|
-
function
|
|
925
|
+
function Ce({ children: t, "aria-label": n }) {
|
|
926
926
|
let r = !n;
|
|
927
|
-
return /* @__PURE__ */
|
|
927
|
+
return /* @__PURE__ */ u("span", {
|
|
928
928
|
className: V.icon,
|
|
929
929
|
"aria-hidden": r ? "true" : void 0,
|
|
930
930
|
"aria-label": n,
|
|
@@ -935,30 +935,33 @@ function xe({ children: t, "aria-label": n }) {
|
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
var H = {
|
|
938
|
-
tabs: "
|
|
939
|
-
scrollable: "
|
|
940
|
-
tab: "
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
938
|
+
tabs: "_tabs_13m5x_1",
|
|
939
|
+
scrollable: "_scrollable_13m5x_11",
|
|
940
|
+
tab: "_tab_13m5x_1",
|
|
941
|
+
icon: "_icon_13m5x_53",
|
|
942
|
+
active: "_active_13m5x_63",
|
|
943
|
+
micro: "_micro_13m5x_69",
|
|
944
|
+
default: "_default_13m5x_76",
|
|
945
|
+
large: "_large_13m5x_83"
|
|
946
|
+
}, we = {
|
|
947
|
+
micro: 14,
|
|
948
|
+
default: 14,
|
|
949
|
+
large: 21
|
|
945
950
|
};
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
function Se({ items: e, value: t, onValueChange: i, size: s = "default", scrollable: l = !1, getPanelId: u }) {
|
|
949
|
-
let d = a(null), f = a(/* @__PURE__ */ new Map()), p = r(), [m, h] = o({
|
|
951
|
+
function Te({ items: e, value: r, onValueChange: o, size: l = "default", scrollable: f = !1, getPanelId: p }) {
|
|
952
|
+
let m = s(null), h = s(/* @__PURE__ */ new Map()), g = a(), [_, v] = c({
|
|
950
953
|
start: !1,
|
|
951
954
|
end: !1
|
|
952
|
-
}),
|
|
955
|
+
}), y = Math.max(e.findIndex((e) => e.value === r), 0), b = (t) => {
|
|
953
956
|
let n = e[t];
|
|
954
957
|
if (!n) return;
|
|
955
|
-
|
|
956
|
-
let r =
|
|
957
|
-
r?.focus({ preventScroll: !0 }),
|
|
958
|
+
o(n.value);
|
|
959
|
+
let r = h.current.get(n.value);
|
|
960
|
+
r?.focus({ preventScroll: !0 }), f && r?.scrollIntoView({
|
|
958
961
|
block: "nearest",
|
|
959
962
|
inline: "nearest"
|
|
960
963
|
});
|
|
961
|
-
},
|
|
964
|
+
}, x = (t, n) => {
|
|
962
965
|
if (e.length === 0) return;
|
|
963
966
|
let r;
|
|
964
967
|
switch (t.key) {
|
|
@@ -976,14 +979,14 @@ function Se({ items: e, value: t, onValueChange: i, size: s = "default", scrolla
|
|
|
976
979
|
break;
|
|
977
980
|
default: return;
|
|
978
981
|
}
|
|
979
|
-
t.preventDefault(),
|
|
982
|
+
t.preventDefault(), b(r);
|
|
980
983
|
};
|
|
981
|
-
return
|
|
982
|
-
let e =
|
|
983
|
-
if (!
|
|
984
|
+
return i(() => {
|
|
985
|
+
let e = m.current;
|
|
986
|
+
if (!f || !e) return;
|
|
984
987
|
let t = () => {
|
|
985
988
|
let t = e.scrollLeft > 1, n = Math.ceil(e.scrollLeft + e.clientWidth) < e.scrollWidth - 1;
|
|
986
|
-
|
|
989
|
+
v((e) => e.start === t && e.end === n ? e : {
|
|
987
990
|
start: t,
|
|
988
991
|
end: n
|
|
989
992
|
});
|
|
@@ -993,28 +996,32 @@ function Se({ items: e, value: t, onValueChange: i, size: s = "default", scrolla
|
|
|
993
996
|
return n.observe(e), () => {
|
|
994
997
|
e.removeEventListener("scroll", t), n.disconnect();
|
|
995
998
|
};
|
|
996
|
-
}, [
|
|
997
|
-
ref:
|
|
998
|
-
className: `${H.tabs} ${
|
|
999
|
-
"data-overflow-start":
|
|
1000
|
-
"data-overflow-end":
|
|
999
|
+
}, [f, e.length]), /* @__PURE__ */ u("div", {
|
|
1000
|
+
ref: m,
|
|
1001
|
+
className: `${H.tabs} ${f ? H.scrollable : ""}`,
|
|
1002
|
+
"data-overflow-start": f && _.start ? "" : void 0,
|
|
1003
|
+
"data-overflow-end": f && _.end ? "" : void 0,
|
|
1001
1004
|
role: "tablist",
|
|
1002
|
-
children: e.map((e,
|
|
1003
|
-
let
|
|
1004
|
-
return /* @__PURE__ */
|
|
1005
|
+
children: e.map((e, r) => {
|
|
1006
|
+
let i = r === y;
|
|
1007
|
+
return /* @__PURE__ */ d("button", {
|
|
1005
1008
|
ref: (t) => {
|
|
1006
|
-
t ?
|
|
1009
|
+
t ? h.current.set(e.value, t) : h.current.delete(e.value);
|
|
1007
1010
|
},
|
|
1008
|
-
id: `${
|
|
1011
|
+
id: `${g}-tab-${e.value}`,
|
|
1009
1012
|
role: "tab",
|
|
1010
1013
|
type: "button",
|
|
1011
|
-
"aria-selected":
|
|
1012
|
-
"aria-controls":
|
|
1013
|
-
tabIndex:
|
|
1014
|
-
className: `${H.tab} ${H[
|
|
1015
|
-
onClick: () =>
|
|
1016
|
-
onKeyDown: (e) =>
|
|
1017
|
-
children: e.
|
|
1014
|
+
"aria-selected": i,
|
|
1015
|
+
"aria-controls": p?.(e),
|
|
1016
|
+
tabIndex: i ? 0 : -1,
|
|
1017
|
+
className: `${H.tab} ${H[l]} ${i ? H.active : ""}`,
|
|
1018
|
+
onClick: () => o(e.value),
|
|
1019
|
+
onKeyDown: (e) => x(e, r),
|
|
1020
|
+
children: [e.icon ? /* @__PURE__ */ u("span", {
|
|
1021
|
+
className: H.icon,
|
|
1022
|
+
"aria-hidden": "true",
|
|
1023
|
+
children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: we[l] }) : e.icon
|
|
1024
|
+
}) : null, e.label]
|
|
1018
1025
|
}, e.value);
|
|
1019
1026
|
})
|
|
1020
1027
|
});
|
|
@@ -1038,27 +1045,27 @@ var U = {
|
|
|
1038
1045
|
};
|
|
1039
1046
|
//#endregion
|
|
1040
1047
|
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
1041
|
-
function
|
|
1048
|
+
function Ee(t) {
|
|
1042
1049
|
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
1043
1050
|
size: "14px",
|
|
1044
1051
|
color: "currentColor"
|
|
1045
1052
|
}) : t;
|
|
1046
1053
|
}
|
|
1047
|
-
var
|
|
1054
|
+
var De = "\0action", Oe = ({ items: e, size: t = "default", className: n = "", separator: r = /* @__PURE__ */ u(_, {
|
|
1048
1055
|
size: 14,
|
|
1049
1056
|
color: "currentColor"
|
|
1050
|
-
}), renderLink: i, "aria-label": a = "Breadcrumb" }) => /* @__PURE__ */
|
|
1057
|
+
}), renderLink: i, "aria-label": a = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
|
|
1051
1058
|
"aria-label": a,
|
|
1052
1059
|
className: `${U.root} ${U[t]} ${n}`,
|
|
1053
|
-
children: /* @__PURE__ */
|
|
1060
|
+
children: /* @__PURE__ */ u("ol", {
|
|
1054
1061
|
className: U.list,
|
|
1055
|
-
children: e.map((t, n) => /* @__PURE__ */
|
|
1062
|
+
children: e.map((t, n) => /* @__PURE__ */ d("li", {
|
|
1056
1063
|
className: U.item,
|
|
1057
|
-
children: [n > 0 && /* @__PURE__ */
|
|
1064
|
+
children: [n > 0 && /* @__PURE__ */ u("span", {
|
|
1058
1065
|
className: U.separator,
|
|
1059
1066
|
"aria-hidden": "true",
|
|
1060
1067
|
children: r
|
|
1061
|
-
}), /* @__PURE__ */
|
|
1068
|
+
}), /* @__PURE__ */ d("div", {
|
|
1062
1069
|
className: `${U.step} ${t.switcher ? U.switchable : ""}`,
|
|
1063
1070
|
children: [t.href ? (() => {
|
|
1064
1071
|
let r = {
|
|
@@ -1066,82 +1073,82 @@ var we = "\0action", Te = ({ items: e, size: t = "default", className: n = "", s
|
|
|
1066
1073
|
href: t.href,
|
|
1067
1074
|
onClick: t.onClick,
|
|
1068
1075
|
"aria-current": n === e.length - 1 ? "page" : void 0,
|
|
1069
|
-
children: /* @__PURE__ */ l
|
|
1076
|
+
children: /* @__PURE__ */ d(l, { children: [t.icon && /* @__PURE__ */ u("span", {
|
|
1070
1077
|
className: U.icon,
|
|
1071
1078
|
"aria-hidden": "true",
|
|
1072
|
-
children:
|
|
1073
|
-
}), /* @__PURE__ */
|
|
1079
|
+
children: Ee(t.icon)
|
|
1080
|
+
}), /* @__PURE__ */ u("span", {
|
|
1074
1081
|
className: U.text,
|
|
1075
1082
|
children: t.label
|
|
1076
1083
|
})] })
|
|
1077
1084
|
};
|
|
1078
|
-
return i ? i(t, r) : /* @__PURE__ */
|
|
1079
|
-
})() : /* @__PURE__ */
|
|
1085
|
+
return i ? i(t, r) : /* @__PURE__ */ u("a", { ...r });
|
|
1086
|
+
})() : /* @__PURE__ */ d("span", {
|
|
1080
1087
|
className: U.label,
|
|
1081
1088
|
"aria-current": n === e.length - 1 ? "page" : void 0,
|
|
1082
|
-
children: [t.icon && /* @__PURE__ */
|
|
1089
|
+
children: [t.icon && /* @__PURE__ */ u("span", {
|
|
1083
1090
|
className: U.icon,
|
|
1084
1091
|
"aria-hidden": "true",
|
|
1085
|
-
children:
|
|
1086
|
-
}), /* @__PURE__ */
|
|
1092
|
+
children: Ee(t.icon)
|
|
1093
|
+
}), /* @__PURE__ */ u("span", {
|
|
1087
1094
|
className: U.text,
|
|
1088
1095
|
children: t.label
|
|
1089
1096
|
})]
|
|
1090
|
-
}), t.switcher && /* @__PURE__ */
|
|
1097
|
+
}), t.switcher && /* @__PURE__ */ d(D.Root, {
|
|
1091
1098
|
value: t.switcher.value,
|
|
1092
|
-
onValueChange: (e) => e ===
|
|
1099
|
+
onValueChange: (e) => e === De ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
|
|
1093
1100
|
disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
|
|
1094
|
-
children: [/* @__PURE__ */
|
|
1101
|
+
children: [/* @__PURE__ */ u(D.Trigger, {
|
|
1095
1102
|
className: U.trigger,
|
|
1096
1103
|
"aria-label": `${t.switcher.label}: ${t.label}`,
|
|
1097
|
-
children: /* @__PURE__ */
|
|
1104
|
+
children: /* @__PURE__ */ u(D.Icon, {
|
|
1098
1105
|
"aria-hidden": "true",
|
|
1099
1106
|
className: U.icon,
|
|
1100
|
-
children: /* @__PURE__ */
|
|
1107
|
+
children: /* @__PURE__ */ u(y, {
|
|
1101
1108
|
size: 14,
|
|
1102
1109
|
color: "currentColor"
|
|
1103
1110
|
})
|
|
1104
1111
|
})
|
|
1105
|
-
}), /* @__PURE__ */
|
|
1112
|
+
}), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
|
|
1106
1113
|
className: `${B.content} ${U.menu}`,
|
|
1107
1114
|
position: "popper",
|
|
1108
1115
|
align: "end",
|
|
1109
1116
|
sideOffset: 4,
|
|
1110
1117
|
collisionPadding: 8,
|
|
1111
|
-
children: /* @__PURE__ */
|
|
1118
|
+
children: /* @__PURE__ */ d(D.Viewport, {
|
|
1112
1119
|
className: B.viewport,
|
|
1113
|
-
children: [t.switcher.options.map((e) => /* @__PURE__ */
|
|
1120
|
+
children: [t.switcher.options.map((e) => /* @__PURE__ */ d(D.Item, {
|
|
1114
1121
|
value: e.value,
|
|
1115
1122
|
className: B.item,
|
|
1116
1123
|
textValue: e.label,
|
|
1117
|
-
children: [/* @__PURE__ */
|
|
1124
|
+
children: [/* @__PURE__ */ d("span", {
|
|
1118
1125
|
className: U.option,
|
|
1119
|
-
children: [e.icon && /* @__PURE__ */
|
|
1126
|
+
children: [e.icon && /* @__PURE__ */ u("span", {
|
|
1120
1127
|
className: U.icon,
|
|
1121
1128
|
"aria-hidden": "true",
|
|
1122
1129
|
children: e.icon
|
|
1123
|
-
}), /* @__PURE__ */
|
|
1124
|
-
}), /* @__PURE__ */
|
|
1130
|
+
}), /* @__PURE__ */ u(D.ItemText, { children: e.label })]
|
|
1131
|
+
}), /* @__PURE__ */ u(D.ItemIndicator, {
|
|
1125
1132
|
className: B.itemIndicator,
|
|
1126
|
-
children: /* @__PURE__ */
|
|
1133
|
+
children: /* @__PURE__ */ u(m, {
|
|
1127
1134
|
size: 12,
|
|
1128
1135
|
color: "currentColor"
|
|
1129
1136
|
})
|
|
1130
1137
|
})]
|
|
1131
|
-
}, e.value)), t.switcher.action && /* @__PURE__ */ l
|
|
1132
|
-
value:
|
|
1138
|
+
}, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: U.menuDivider }), /* @__PURE__ */ u(D.Item, {
|
|
1139
|
+
value: De,
|
|
1133
1140
|
className: B.item,
|
|
1134
1141
|
textValue: t.switcher.action.label,
|
|
1135
|
-
children: /* @__PURE__ */
|
|
1142
|
+
children: /* @__PURE__ */ d("span", {
|
|
1136
1143
|
className: U.option,
|
|
1137
|
-
children: [/* @__PURE__ */
|
|
1144
|
+
children: [/* @__PURE__ */ u("span", {
|
|
1138
1145
|
className: U.icon,
|
|
1139
1146
|
"aria-hidden": "true",
|
|
1140
|
-
children: /* @__PURE__ */
|
|
1147
|
+
children: /* @__PURE__ */ u(x, {
|
|
1141
1148
|
size: 14,
|
|
1142
1149
|
color: "currentColor"
|
|
1143
1150
|
})
|
|
1144
|
-
}), /* @__PURE__ */
|
|
1151
|
+
}), /* @__PURE__ */ u(D.ItemText, { children: t.switcher.action.label })]
|
|
1145
1152
|
})
|
|
1146
1153
|
})] })]
|
|
1147
1154
|
})
|
|
@@ -1150,7 +1157,7 @@ var we = "\0action", Te = ({ items: e, size: t = "default", className: n = "", s
|
|
|
1150
1157
|
})]
|
|
1151
1158
|
}, t.id))
|
|
1152
1159
|
})
|
|
1153
|
-
}),
|
|
1160
|
+
}), ke = {
|
|
1154
1161
|
wrapper: "_wrapper_1a9jo_1",
|
|
1155
1162
|
track: "_track_1a9jo_8",
|
|
1156
1163
|
fill: "_fill_1a9jo_36",
|
|
@@ -1158,42 +1165,42 @@ var we = "\0action", Te = ({ items: e, size: t = "default", className: n = "", s
|
|
|
1158
1165
|
};
|
|
1159
1166
|
//#endregion
|
|
1160
1167
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
1161
|
-
function
|
|
1168
|
+
function Ae({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
|
|
1162
1169
|
let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
|
|
1163
|
-
return /* @__PURE__ */
|
|
1164
|
-
className: `${
|
|
1170
|
+
return /* @__PURE__ */ d("div", {
|
|
1171
|
+
className: `${ke.wrapper} ${r}`,
|
|
1165
1172
|
role: "progressbar",
|
|
1166
1173
|
"aria-valuenow": i,
|
|
1167
1174
|
"aria-valuemin": 0,
|
|
1168
1175
|
"aria-valuemax": 100,
|
|
1169
|
-
children: [/* @__PURE__ */
|
|
1170
|
-
className:
|
|
1171
|
-
children: /* @__PURE__ */
|
|
1172
|
-
className:
|
|
1176
|
+
children: [/* @__PURE__ */ u("div", {
|
|
1177
|
+
className: ke.track,
|
|
1178
|
+
children: /* @__PURE__ */ u("div", {
|
|
1179
|
+
className: ke.fill,
|
|
1173
1180
|
style: {
|
|
1174
1181
|
width: `${i}%`,
|
|
1175
1182
|
backgroundColor: o
|
|
1176
1183
|
}
|
|
1177
1184
|
})
|
|
1178
|
-
}), t && /* @__PURE__ */
|
|
1179
|
-
className:
|
|
1185
|
+
}), t && /* @__PURE__ */ u("span", {
|
|
1186
|
+
className: ke.label,
|
|
1180
1187
|
"aria-hidden": "true",
|
|
1181
1188
|
children: a
|
|
1182
1189
|
})]
|
|
1183
1190
|
});
|
|
1184
1191
|
}
|
|
1185
|
-
var
|
|
1192
|
+
var je = {
|
|
1186
1193
|
chip: "_chip_iaxe0_1",
|
|
1187
1194
|
large: "_large_iaxe0_14"
|
|
1188
1195
|
};
|
|
1189
1196
|
//#endregion
|
|
1190
1197
|
//#region src/components/Chip/Chip.tsx
|
|
1191
|
-
function
|
|
1198
|
+
function Me({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
|
|
1192
1199
|
let s = {};
|
|
1193
|
-
return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */
|
|
1200
|
+
return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ d("span", {
|
|
1194
1201
|
className: [
|
|
1195
|
-
|
|
1196
|
-
o === "large" &&
|
|
1202
|
+
je.chip,
|
|
1203
|
+
o === "large" && je.large,
|
|
1197
1204
|
i
|
|
1198
1205
|
].filter(Boolean).join(" "),
|
|
1199
1206
|
style: s,
|
|
@@ -1214,54 +1221,54 @@ var W = {
|
|
|
1214
1221
|
success: "_success_ok48u_24",
|
|
1215
1222
|
warning: "_warning_ok48u_25",
|
|
1216
1223
|
destructive: "_destructive_ok48u_26"
|
|
1217
|
-
},
|
|
1218
|
-
success: /* @__PURE__ */
|
|
1219
|
-
warning: /* @__PURE__ */
|
|
1220
|
-
destructive: /* @__PURE__ */
|
|
1224
|
+
}, Ne = {
|
|
1225
|
+
success: /* @__PURE__ */ u(m, {}),
|
|
1226
|
+
warning: /* @__PURE__ */ u(w, {}),
|
|
1227
|
+
destructive: /* @__PURE__ */ u(w, {})
|
|
1221
1228
|
};
|
|
1222
|
-
function
|
|
1229
|
+
function Pe(t) {
|
|
1223
1230
|
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
1224
1231
|
size: 16,
|
|
1225
1232
|
color: "currentColor"
|
|
1226
1233
|
}) : t;
|
|
1227
1234
|
}
|
|
1228
|
-
var
|
|
1229
|
-
let a = t === void 0 ?
|
|
1230
|
-
return /* @__PURE__ */
|
|
1235
|
+
var Fe = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
|
|
1236
|
+
let a = t === void 0 ? Ne[e] : t;
|
|
1237
|
+
return /* @__PURE__ */ d("div", {
|
|
1231
1238
|
role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
|
|
1232
1239
|
className: `${W.root} ${W[e]} ${n}`,
|
|
1233
|
-
children: [a && /* @__PURE__ */
|
|
1240
|
+
children: [a && /* @__PURE__ */ u("span", {
|
|
1234
1241
|
className: W.icon,
|
|
1235
1242
|
"aria-hidden": "true",
|
|
1236
|
-
children:
|
|
1237
|
-
}), /* @__PURE__ */
|
|
1243
|
+
children: Pe(a)
|
|
1244
|
+
}), /* @__PURE__ */ u("div", {
|
|
1238
1245
|
className: W.body,
|
|
1239
1246
|
children: r
|
|
1240
1247
|
})]
|
|
1241
1248
|
});
|
|
1242
|
-
},
|
|
1249
|
+
}, Ie = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
|
|
1243
1250
|
className: `${W.title} ${t}`,
|
|
1244
1251
|
children: e
|
|
1245
|
-
}),
|
|
1252
|
+
}), Le = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
|
|
1246
1253
|
className: `${W.description} ${t}`,
|
|
1247
1254
|
children: e
|
|
1248
|
-
}),
|
|
1255
|
+
}), Re = {
|
|
1249
1256
|
tooltip: "_tooltip_1de7z_1",
|
|
1250
1257
|
arrow: "_arrow_1de7z_13"
|
|
1251
1258
|
};
|
|
1252
1259
|
//#endregion
|
|
1253
1260
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
1254
|
-
function
|
|
1255
|
-
return /* @__PURE__ */
|
|
1261
|
+
function ze({ content: e, position: t = "top", children: n, className: r }) {
|
|
1262
|
+
return /* @__PURE__ */ u(k.Provider, {
|
|
1256
1263
|
delayDuration: 80,
|
|
1257
|
-
children: /* @__PURE__ */
|
|
1264
|
+
children: /* @__PURE__ */ d(k.Root, { children: [/* @__PURE__ */ u(k.Trigger, {
|
|
1258
1265
|
asChild: !0,
|
|
1259
1266
|
children: n
|
|
1260
|
-
}), /* @__PURE__ */
|
|
1267
|
+
}), /* @__PURE__ */ u(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
|
|
1261
1268
|
side: t,
|
|
1262
1269
|
sideOffset: 7,
|
|
1263
|
-
className: [
|
|
1264
|
-
children: [e, /* @__PURE__ */
|
|
1270
|
+
className: [Re.tooltip, r].filter(Boolean).join(" "),
|
|
1271
|
+
children: [e, /* @__PURE__ */ u(k.Arrow, { className: Re.arrow })]
|
|
1265
1272
|
}) })] })
|
|
1266
1273
|
});
|
|
1267
1274
|
}
|
|
@@ -1279,57 +1286,57 @@ var G = {
|
|
|
1279
1286
|
legendItem: "_legendItem_1w5vh_90",
|
|
1280
1287
|
legendMark: "_legendMark_1w5vh_96",
|
|
1281
1288
|
legendLabel: "_legendLabel_1w5vh_102"
|
|
1282
|
-
},
|
|
1283
|
-
function
|
|
1289
|
+
}, Be = "var(--lv4)", K = 12, Ve = 20, He = 8, Ue = 28, q = 20;
|
|
1290
|
+
function We(e) {
|
|
1284
1291
|
return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
1285
1292
|
}
|
|
1286
|
-
function
|
|
1287
|
-
let f =
|
|
1288
|
-
|
|
1293
|
+
function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l }) {
|
|
1294
|
+
let f = s(null), [p, m] = c(0), [h, g] = c(null);
|
|
1295
|
+
i(() => {
|
|
1289
1296
|
let e = f.current;
|
|
1290
1297
|
if (!e) return;
|
|
1291
1298
|
let t = new ResizeObserver(([e]) => m(e.contentRect.width));
|
|
1292
1299
|
return t.observe(e), m(e.clientWidth), () => t.disconnect();
|
|
1293
1300
|
}, []);
|
|
1294
|
-
let _ =
|
|
1301
|
+
let _ = t?.length ? Ue : He, v = Math.max(p - q - Ve, 0), y = Math.max(a - K - _, 0), b = e.flatMap((e) => e.data.filter(Number.isFinite)), x = b.length ? Math.max(...b, 0) : 1, S = n === "bar" ? 0 : Math.min(...b, 0), C = x - S || 1, w = Math.max(...e.map((e) => e.data.length), 0), T = (e) => K + (1 - (e - S) / C) * y, E = (e) => w <= 1 ? q + v / 2 : q + e / (w - 1) * v, D = r((e) => {
|
|
1295
1302
|
if (w === 0) return;
|
|
1296
|
-
let t = e.currentTarget.getBoundingClientRect(),
|
|
1297
|
-
if (
|
|
1298
|
-
let e = Math.round((
|
|
1303
|
+
let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
|
|
1304
|
+
if (n === "line") {
|
|
1305
|
+
let e = Math.round((r - q) / v * (w - 1));
|
|
1299
1306
|
g({
|
|
1300
1307
|
index: Math.max(0, Math.min(w - 1, e)),
|
|
1301
|
-
x:
|
|
1302
|
-
y:
|
|
1308
|
+
x: r,
|
|
1309
|
+
y: i
|
|
1303
1310
|
});
|
|
1304
1311
|
} else {
|
|
1305
|
-
let e = v / w, t = Math.floor((
|
|
1312
|
+
let e = v / w, t = Math.floor((r - q) / e);
|
|
1306
1313
|
g({
|
|
1307
1314
|
index: Math.max(0, Math.min(w - 1, t)),
|
|
1308
|
-
x:
|
|
1309
|
-
y:
|
|
1315
|
+
x: r,
|
|
1316
|
+
y: i
|
|
1310
1317
|
});
|
|
1311
1318
|
}
|
|
1312
1319
|
}, [
|
|
1313
|
-
|
|
1320
|
+
n,
|
|
1314
1321
|
w,
|
|
1315
1322
|
v
|
|
1316
|
-
]), O =
|
|
1323
|
+
]), O = r(() => g(null), []), k = /* @__PURE__ */ u("line", {
|
|
1317
1324
|
x1: q,
|
|
1318
1325
|
y1: K + y * .5,
|
|
1319
1326
|
x2: q + v,
|
|
1320
1327
|
y2: K + y * .5,
|
|
1321
1328
|
stroke: "var(--chart-midline)",
|
|
1322
1329
|
strokeWidth: "0.5"
|
|
1323
|
-
}), A = /* @__PURE__ */
|
|
1330
|
+
}), A = /* @__PURE__ */ u("line", {
|
|
1324
1331
|
x1: q,
|
|
1325
1332
|
y1: K + y,
|
|
1326
1333
|
x2: q + v,
|
|
1327
1334
|
y2: K + y,
|
|
1328
1335
|
stroke: "var(--chart-baseline)",
|
|
1329
1336
|
strokeWidth: "1"
|
|
1330
|
-
}), j = h &&
|
|
1337
|
+
}), j = h && n === "bar" ? (() => {
|
|
1331
1338
|
let e = v / w;
|
|
1332
|
-
return /* @__PURE__ */
|
|
1339
|
+
return /* @__PURE__ */ u("rect", {
|
|
1333
1340
|
x: q + h.index * e,
|
|
1334
1341
|
y: K,
|
|
1335
1342
|
width: e,
|
|
@@ -1338,8 +1345,8 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
|
|
|
1338
1345
|
});
|
|
1339
1346
|
})() : null, ee = () => e.map((e, t) => {
|
|
1340
1347
|
if (!e.data.length) return null;
|
|
1341
|
-
let n = e.color ??
|
|
1342
|
-
return /* @__PURE__ */
|
|
1348
|
+
let n = e.color ?? Be;
|
|
1349
|
+
return /* @__PURE__ */ d("g", { children: [/* @__PURE__ */ u("polyline", {
|
|
1343
1350
|
points: e.data.map((e, t) => `${E(t).toFixed(2)},${T(e).toFixed(2)}`).join(" "),
|
|
1344
1351
|
fill: "none",
|
|
1345
1352
|
stroke: n,
|
|
@@ -1348,7 +1355,7 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
|
|
|
1348
1355
|
strokeLinecap: "round"
|
|
1349
1356
|
}), e.data.map((e, t) => {
|
|
1350
1357
|
let r = h?.index === t ? 10 : 5, i = r / 2;
|
|
1351
|
-
return /* @__PURE__ */
|
|
1358
|
+
return /* @__PURE__ */ u("rect", {
|
|
1352
1359
|
x: E(t) - i,
|
|
1353
1360
|
y: T(e) - i,
|
|
1354
1361
|
width: r,
|
|
@@ -1360,27 +1367,27 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
|
|
|
1360
1367
|
if (!w) return null;
|
|
1361
1368
|
let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = K + y;
|
|
1362
1369
|
return e.map((e, t) => e.data.map((a, o) => {
|
|
1363
|
-
let s = q + o * n + 2 + t * (r + 2),
|
|
1364
|
-
return /* @__PURE__ */
|
|
1370
|
+
let s = q + o * n + 2 + t * (r + 2), c = T(a);
|
|
1371
|
+
return /* @__PURE__ */ u("rect", {
|
|
1365
1372
|
x: s,
|
|
1366
|
-
y:
|
|
1373
|
+
y: c,
|
|
1367
1374
|
width: r,
|
|
1368
|
-
height: Math.max(i -
|
|
1375
|
+
height: Math.max(i - c, 0),
|
|
1369
1376
|
fill: e.color ?? "var(--chart-bar)"
|
|
1370
1377
|
}, `${t}-${o}`);
|
|
1371
1378
|
}));
|
|
1372
|
-
},
|
|
1373
|
-
if (!
|
|
1379
|
+
}, ne = () => {
|
|
1380
|
+
if (!t?.length) return null;
|
|
1374
1381
|
let e = K + y + 18;
|
|
1375
|
-
return
|
|
1376
|
-
x:
|
|
1382
|
+
return t.map((t, r) => /* @__PURE__ */ u("text", {
|
|
1383
|
+
x: n === "line" ? E(r) : q + (r + .5) * (v / w),
|
|
1377
1384
|
y: e,
|
|
1378
1385
|
textAnchor: "middle",
|
|
1379
1386
|
fill: "var(--lv4)",
|
|
1380
1387
|
style: { font: "var(--text-2xs)" },
|
|
1381
1388
|
children: t
|
|
1382
|
-
},
|
|
1383
|
-
},
|
|
1389
|
+
}, r));
|
|
1390
|
+
}, re = h && n === "line" ? /* @__PURE__ */ u("line", {
|
|
1384
1391
|
x1: E(h.index),
|
|
1385
1392
|
y1: K,
|
|
1386
1393
|
x2: E(h.index),
|
|
@@ -1388,50 +1395,50 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
|
|
|
1388
1395
|
stroke: "var(--chart-crosshair)",
|
|
1389
1396
|
strokeWidth: "1",
|
|
1390
1397
|
strokeDasharray: "3 3"
|
|
1391
|
-
}) : null,
|
|
1392
|
-
let
|
|
1393
|
-
return /* @__PURE__ */
|
|
1398
|
+
}) : null, M = h ? (() => {
|
|
1399
|
+
let n = t?.[h.index] ?? String(h.index + 1), r = Math.min(Math.max(h.x, 60), p - 60);
|
|
1400
|
+
return /* @__PURE__ */ d("div", {
|
|
1394
1401
|
className: G.tooltip,
|
|
1395
1402
|
style: h.y < 80 ? {
|
|
1396
|
-
left:
|
|
1403
|
+
left: r,
|
|
1397
1404
|
top: h.y + 12,
|
|
1398
1405
|
transform: "translate(-50%, 0)"
|
|
1399
1406
|
} : {
|
|
1400
|
-
left:
|
|
1407
|
+
left: r,
|
|
1401
1408
|
top: h.y - 8,
|
|
1402
1409
|
transform: "translate(-50%, -100%)"
|
|
1403
1410
|
},
|
|
1404
|
-
children: [/* @__PURE__ */
|
|
1411
|
+
children: [/* @__PURE__ */ u("div", {
|
|
1405
1412
|
className: G.tooltipLabel,
|
|
1406
|
-
children:
|
|
1407
|
-
}), e.map((e, t) => /* @__PURE__ */
|
|
1413
|
+
children: n
|
|
1414
|
+
}), e.map((e, t) => /* @__PURE__ */ d("div", {
|
|
1408
1415
|
className: G.tooltipRow,
|
|
1409
1416
|
children: [
|
|
1410
|
-
/* @__PURE__ */
|
|
1417
|
+
/* @__PURE__ */ u("span", {
|
|
1411
1418
|
className: G.tooltipDot,
|
|
1412
|
-
style: { background: e.color ??
|
|
1419
|
+
style: { background: e.color ?? Be }
|
|
1413
1420
|
}),
|
|
1414
|
-
/* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ u("span", {
|
|
1415
1422
|
className: G.tooltipName,
|
|
1416
1423
|
children: e.label
|
|
1417
1424
|
}),
|
|
1418
|
-
/* @__PURE__ */
|
|
1425
|
+
/* @__PURE__ */ u("span", {
|
|
1419
1426
|
className: G.tooltipValue,
|
|
1420
|
-
children:
|
|
1427
|
+
children: We(e.data[h.index] ?? 0)
|
|
1421
1428
|
})
|
|
1422
1429
|
]
|
|
1423
1430
|
}, t))]
|
|
1424
1431
|
});
|
|
1425
1432
|
})() : null;
|
|
1426
|
-
return /* @__PURE__ */
|
|
1427
|
-
className: [G.wrapper,
|
|
1428
|
-
children: [/* @__PURE__ */
|
|
1433
|
+
return /* @__PURE__ */ d("div", {
|
|
1434
|
+
className: [G.wrapper, l].filter(Boolean).join(" "),
|
|
1435
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1429
1436
|
ref: f,
|
|
1430
1437
|
className: G.chart,
|
|
1431
|
-
style: { height:
|
|
1432
|
-
children: [p > 0 && /* @__PURE__ */
|
|
1438
|
+
style: { height: a },
|
|
1439
|
+
children: [p > 0 && /* @__PURE__ */ d("svg", {
|
|
1433
1440
|
width: p,
|
|
1434
|
-
height:
|
|
1441
|
+
height: a,
|
|
1435
1442
|
className: G.svg,
|
|
1436
1443
|
onMouseMove: D,
|
|
1437
1444
|
onMouseLeave: O,
|
|
@@ -1439,19 +1446,19 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
|
|
|
1439
1446
|
k,
|
|
1440
1447
|
A,
|
|
1441
1448
|
j,
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1449
|
+
re,
|
|
1450
|
+
n === "line" ? ee() : te(),
|
|
1451
|
+
ne()
|
|
1445
1452
|
]
|
|
1446
|
-
}),
|
|
1447
|
-
}),
|
|
1453
|
+
}), M]
|
|
1454
|
+
}), o && e.length > 1 && /* @__PURE__ */ u("div", {
|
|
1448
1455
|
className: G.legend,
|
|
1449
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
1456
|
+
children: e.map((e, t) => /* @__PURE__ */ d("div", {
|
|
1450
1457
|
className: G.legendItem,
|
|
1451
|
-
children: [/* @__PURE__ */
|
|
1458
|
+
children: [/* @__PURE__ */ u("div", {
|
|
1452
1459
|
className: G.legendMark,
|
|
1453
|
-
style: { background: e.color ??
|
|
1454
|
-
}), /* @__PURE__ */
|
|
1460
|
+
style: { background: e.color ?? Be }
|
|
1461
|
+
}), /* @__PURE__ */ u("span", {
|
|
1455
1462
|
className: G.legendLabel,
|
|
1456
1463
|
children: e.label
|
|
1457
1464
|
})]
|
|
@@ -1468,28 +1475,28 @@ var J = {
|
|
|
1468
1475
|
};
|
|
1469
1476
|
//#endregion
|
|
1470
1477
|
//#region src/components/Textarea/Textarea.tsx
|
|
1471
|
-
function
|
|
1472
|
-
let
|
|
1473
|
-
return /* @__PURE__ */
|
|
1478
|
+
function Ke({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
|
|
1479
|
+
let c = e.useId(), l = a || c, f = `${l}-error`, p = n || !i;
|
|
1480
|
+
return /* @__PURE__ */ d("div", {
|
|
1474
1481
|
className: `${J.wrapper} ${r}`,
|
|
1475
1482
|
children: [
|
|
1476
|
-
t && /* @__PURE__ */
|
|
1477
|
-
htmlFor:
|
|
1483
|
+
t && /* @__PURE__ */ d("label", {
|
|
1484
|
+
htmlFor: l,
|
|
1478
1485
|
className: J.label,
|
|
1479
|
-
children: [t, s.required && /* @__PURE__ */
|
|
1486
|
+
children: [t, s.required && /* @__PURE__ */ u("span", {
|
|
1480
1487
|
"aria-label": "required",
|
|
1481
1488
|
children: " *"
|
|
1482
1489
|
})]
|
|
1483
1490
|
}),
|
|
1484
|
-
/* @__PURE__ */
|
|
1485
|
-
id:
|
|
1491
|
+
/* @__PURE__ */ u("textarea", {
|
|
1492
|
+
id: l,
|
|
1486
1493
|
rows: o,
|
|
1487
1494
|
className: `${J.textarea} ${p ? J.error : ""}`,
|
|
1488
1495
|
"aria-invalid": p ? "true" : "false",
|
|
1489
1496
|
"aria-describedby": n ? f : void 0,
|
|
1490
1497
|
...s
|
|
1491
1498
|
}),
|
|
1492
|
-
n && /* @__PURE__ */
|
|
1499
|
+
n && /* @__PURE__ */ u("span", {
|
|
1493
1500
|
id: f,
|
|
1494
1501
|
className: J.errorText,
|
|
1495
1502
|
role: "alert",
|
|
@@ -1505,27 +1512,27 @@ var Y = {
|
|
|
1505
1512
|
description: "_description_xud7c_34",
|
|
1506
1513
|
close: "_close_xud7c_40",
|
|
1507
1514
|
srOnly: "_srOnly_xud7c_62"
|
|
1508
|
-
},
|
|
1515
|
+
}, qe = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
|
|
1509
1516
|
open: n,
|
|
1510
1517
|
onOpenChange: r,
|
|
1511
|
-
children: [e && /* @__PURE__ */
|
|
1518
|
+
children: [e && /* @__PURE__ */ u(A.Trigger, {
|
|
1512
1519
|
asChild: !0,
|
|
1513
1520
|
children: e
|
|
1514
|
-
}), /* @__PURE__ */
|
|
1521
|
+
}), /* @__PURE__ */ d(A.Portal, { children: [/* @__PURE__ */ u(A.Overlay, { className: Y.overlay }), /* @__PURE__ */ d(A.Content, {
|
|
1515
1522
|
className: `${Y.content} ${o}`,
|
|
1516
1523
|
children: [
|
|
1517
|
-
/* @__PURE__ */
|
|
1524
|
+
/* @__PURE__ */ u(A.Title, {
|
|
1518
1525
|
className: i ? Y.title : Y.srOnly,
|
|
1519
1526
|
children: i || "Dialog"
|
|
1520
1527
|
}),
|
|
1521
|
-
a && /* @__PURE__ */
|
|
1528
|
+
a && /* @__PURE__ */ u(A.Description, {
|
|
1522
1529
|
className: Y.description,
|
|
1523
1530
|
children: a
|
|
1524
1531
|
}),
|
|
1525
|
-
s && /* @__PURE__ */
|
|
1532
|
+
s && /* @__PURE__ */ u(A.Close, {
|
|
1526
1533
|
className: Y.close,
|
|
1527
1534
|
"aria-label": "Close",
|
|
1528
|
-
children: /* @__PURE__ */
|
|
1535
|
+
children: /* @__PURE__ */ u(T, {
|
|
1529
1536
|
size: 16,
|
|
1530
1537
|
color: "currentColor"
|
|
1531
1538
|
})
|
|
@@ -1552,7 +1559,7 @@ var Y = {
|
|
|
1552
1559
|
today: "_today_aimna_131",
|
|
1553
1560
|
selected: "_selected_aimna_136",
|
|
1554
1561
|
errorText: "_errorText_aimna_142"
|
|
1555
|
-
},
|
|
1562
|
+
}, Je = [
|
|
1556
1563
|
"Mo",
|
|
1557
1564
|
"Tu",
|
|
1558
1565
|
"We",
|
|
@@ -1560,7 +1567,7 @@ var Y = {
|
|
|
1560
1567
|
"Fr",
|
|
1561
1568
|
"Sa",
|
|
1562
1569
|
"Su"
|
|
1563
|
-
],
|
|
1570
|
+
], Ye = [
|
|
1564
1571
|
"January",
|
|
1565
1572
|
"February",
|
|
1566
1573
|
"March",
|
|
@@ -1578,25 +1585,25 @@ function Z(e) {
|
|
|
1578
1585
|
let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
|
|
1579
1586
|
return `${e.getFullYear()}-${t}-${n}`;
|
|
1580
1587
|
}
|
|
1581
|
-
function
|
|
1588
|
+
function Xe(e, t) {
|
|
1582
1589
|
return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
1583
1590
|
}
|
|
1584
|
-
function
|
|
1591
|
+
function Ze(e, t) {
|
|
1585
1592
|
let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
|
|
1586
1593
|
for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
|
|
1587
1594
|
return r;
|
|
1588
1595
|
}
|
|
1589
|
-
var
|
|
1590
|
-
let
|
|
1596
|
+
var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = Z }) => {
|
|
1597
|
+
let p = e.useId(), m = `${p}-error`, v = !!a || !o, [y, b] = c(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = c(S.getFullYear()), [T, E] = c(S.getMonth()), [D, k] = c(S), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), ee = (e) => {
|
|
1591
1598
|
if (e) {
|
|
1592
1599
|
let e = t ?? /* @__PURE__ */ new Date();
|
|
1593
|
-
k(e), w(e.getFullYear()),
|
|
1600
|
+
k(e), w(e.getFullYear()), E(e.getMonth());
|
|
1594
1601
|
}
|
|
1595
1602
|
b(e);
|
|
1596
1603
|
};
|
|
1597
1604
|
e.useEffect(() => {
|
|
1598
|
-
j.current &&= (A.current.get(Z(
|
|
1599
|
-
}, [
|
|
1605
|
+
j.current &&= (A.current.get(Z(D))?.focus(), !1);
|
|
1606
|
+
}, [D]);
|
|
1600
1607
|
let te = (e, t) => {
|
|
1601
1608
|
let n = new Date(t), r = {
|
|
1602
1609
|
ArrowLeft: -1,
|
|
@@ -1611,101 +1618,101 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1611
1618
|
let t = n.getDate();
|
|
1612
1619
|
n.setDate(1), n.setMonth(n.getMonth() + (e.key === "PageUp" ? -1 : 1) * (e.shiftKey ? 12 : 1)), n.setDate(Math.min(t, new Date(n.getFullYear(), n.getMonth() + 1, 0).getDate()));
|
|
1613
1620
|
} else return;
|
|
1614
|
-
e.preventDefault(), j.current = !0, k(n), w(n.getFullYear()),
|
|
1621
|
+
e.preventDefault(), j.current = !0, k(n), w(n.getFullYear()), E(n.getMonth());
|
|
1615
1622
|
};
|
|
1616
1623
|
e.useEffect(() => {
|
|
1617
|
-
y && t && (w(t.getFullYear()),
|
|
1624
|
+
y && t && (w(t.getFullYear()), E(t.getMonth()));
|
|
1618
1625
|
}, [y]);
|
|
1619
|
-
let
|
|
1620
|
-
T === 0 ? (
|
|
1621
|
-
},
|
|
1622
|
-
T === 11 ? (
|
|
1623
|
-
},
|
|
1626
|
+
let ne = () => {
|
|
1627
|
+
T === 0 ? (E(11), w(C - 1)) : E(T - 1);
|
|
1628
|
+
}, re = () => {
|
|
1629
|
+
T === 11 ? (E(0), w(C + 1)) : E(T + 1);
|
|
1630
|
+
}, M = (e) => {
|
|
1624
1631
|
n?.(e), b(!1);
|
|
1625
|
-
},
|
|
1626
|
-
return /* @__PURE__ */
|
|
1627
|
-
className: `${X.wrapper} ${
|
|
1632
|
+
}, N = Ze(C, T);
|
|
1633
|
+
return /* @__PURE__ */ d("div", {
|
|
1634
|
+
className: `${X.wrapper} ${l}`,
|
|
1628
1635
|
children: [
|
|
1629
|
-
r && /* @__PURE__ */
|
|
1630
|
-
id: `${
|
|
1636
|
+
r && /* @__PURE__ */ u("span", {
|
|
1637
|
+
id: `${p}-label`,
|
|
1631
1638
|
className: X.label,
|
|
1632
1639
|
children: r
|
|
1633
1640
|
}),
|
|
1634
|
-
/* @__PURE__ */
|
|
1641
|
+
/* @__PURE__ */ d(O.Root, {
|
|
1635
1642
|
open: y,
|
|
1636
1643
|
onOpenChange: ee,
|
|
1637
|
-
children: [/* @__PURE__ */
|
|
1644
|
+
children: [/* @__PURE__ */ u(O.Trigger, {
|
|
1638
1645
|
asChild: !0,
|
|
1639
|
-
children: /* @__PURE__ */
|
|
1646
|
+
children: /* @__PURE__ */ d("button", {
|
|
1640
1647
|
type: "button",
|
|
1641
1648
|
className: `${X.trigger} ${v ? X.error : ""}`,
|
|
1642
|
-
disabled:
|
|
1643
|
-
"aria-labelledby": r ? `${
|
|
1649
|
+
disabled: s,
|
|
1650
|
+
"aria-labelledby": r ? `${p}-label ${p}-value` : void 0,
|
|
1644
1651
|
"aria-invalid": v ? "true" : "false",
|
|
1645
|
-
"aria-describedby": a ?
|
|
1646
|
-
children: [/* @__PURE__ */
|
|
1647
|
-
id: `${
|
|
1652
|
+
"aria-describedby": a ? m : void 0,
|
|
1653
|
+
children: [/* @__PURE__ */ u("span", {
|
|
1654
|
+
id: `${p}-value`,
|
|
1648
1655
|
className: t ? X.valueText : X.placeholder,
|
|
1649
1656
|
children: t ? f(t) : i
|
|
1650
|
-
}), /* @__PURE__ */
|
|
1657
|
+
}), /* @__PURE__ */ u(h, {
|
|
1651
1658
|
size: 14,
|
|
1652
1659
|
color: "currentColor"
|
|
1653
1660
|
})]
|
|
1654
1661
|
})
|
|
1655
|
-
}), /* @__PURE__ */
|
|
1662
|
+
}), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
|
|
1656
1663
|
className: X.calendar,
|
|
1657
1664
|
align: "start",
|
|
1658
1665
|
sideOffset: 5,
|
|
1659
1666
|
"aria-label": r ? `${r} calendar` : "Choose a date",
|
|
1660
1667
|
onOpenAutoFocus: (e) => {
|
|
1661
|
-
e.preventDefault(), A.current.get(Z(
|
|
1668
|
+
e.preventDefault(), A.current.get(Z(D))?.focus();
|
|
1662
1669
|
},
|
|
1663
1670
|
children: [
|
|
1664
|
-
/* @__PURE__ */
|
|
1671
|
+
/* @__PURE__ */ d("div", {
|
|
1665
1672
|
className: X.header,
|
|
1666
1673
|
children: [
|
|
1667
|
-
/* @__PURE__ */
|
|
1674
|
+
/* @__PURE__ */ u("button", {
|
|
1668
1675
|
type: "button",
|
|
1669
1676
|
className: X.navButton,
|
|
1670
|
-
onClick:
|
|
1677
|
+
onClick: ne,
|
|
1671
1678
|
"aria-label": "Previous month",
|
|
1672
|
-
children: /* @__PURE__ */
|
|
1679
|
+
children: /* @__PURE__ */ u(g, {
|
|
1673
1680
|
size: 14,
|
|
1674
1681
|
color: "currentColor"
|
|
1675
1682
|
})
|
|
1676
1683
|
}),
|
|
1677
|
-
/* @__PURE__ */
|
|
1684
|
+
/* @__PURE__ */ d("span", {
|
|
1678
1685
|
className: X.monthLabel,
|
|
1679
1686
|
children: [
|
|
1680
|
-
|
|
1687
|
+
Ye[T],
|
|
1681
1688
|
" ",
|
|
1682
1689
|
C
|
|
1683
1690
|
]
|
|
1684
1691
|
}),
|
|
1685
|
-
/* @__PURE__ */
|
|
1692
|
+
/* @__PURE__ */ u("button", {
|
|
1686
1693
|
type: "button",
|
|
1687
1694
|
className: X.navButton,
|
|
1688
|
-
onClick:
|
|
1695
|
+
onClick: re,
|
|
1689
1696
|
"aria-label": "Next month",
|
|
1690
|
-
children: /* @__PURE__ */
|
|
1697
|
+
children: /* @__PURE__ */ u(_, {
|
|
1691
1698
|
size: 14,
|
|
1692
1699
|
color: "currentColor"
|
|
1693
1700
|
})
|
|
1694
1701
|
})
|
|
1695
1702
|
]
|
|
1696
1703
|
}),
|
|
1697
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ u("div", {
|
|
1698
1705
|
className: X.weekdays,
|
|
1699
|
-
children:
|
|
1706
|
+
children: Je.map((e) => /* @__PURE__ */ u("span", {
|
|
1700
1707
|
className: X.weekday,
|
|
1701
1708
|
children: e
|
|
1702
1709
|
}, e))
|
|
1703
1710
|
}),
|
|
1704
|
-
/* @__PURE__ */
|
|
1711
|
+
/* @__PURE__ */ u("div", {
|
|
1705
1712
|
className: X.grid,
|
|
1706
|
-
children:
|
|
1707
|
-
let n = e.getMonth() !== T, r =
|
|
1708
|
-
return /* @__PURE__ */
|
|
1713
|
+
children: N.map((e) => {
|
|
1714
|
+
let n = e.getMonth() !== T, r = Xe(e, t), i = Xe(e, x);
|
|
1715
|
+
return /* @__PURE__ */ u("button", {
|
|
1709
1716
|
type: "button",
|
|
1710
1717
|
className: [
|
|
1711
1718
|
X.day,
|
|
@@ -1713,7 +1720,7 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1713
1720
|
r ? X.selected : "",
|
|
1714
1721
|
i && !r ? X.today : ""
|
|
1715
1722
|
].filter(Boolean).join(" "),
|
|
1716
|
-
onClick: () =>
|
|
1723
|
+
onClick: () => M(e),
|
|
1717
1724
|
ref: (t) => {
|
|
1718
1725
|
t ? A.current.set(Z(e), t) : A.current.delete(Z(e));
|
|
1719
1726
|
},
|
|
@@ -1725,7 +1732,7 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1725
1732
|
}),
|
|
1726
1733
|
"aria-pressed": r,
|
|
1727
1734
|
"aria-current": i ? "date" : void 0,
|
|
1728
|
-
tabIndex:
|
|
1735
|
+
tabIndex: Xe(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
|
|
1729
1736
|
onKeyDown: (t) => te(t, e),
|
|
1730
1737
|
children: e.getDate()
|
|
1731
1738
|
}, e.toISOString());
|
|
@@ -1734,8 +1741,8 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1734
1741
|
]
|
|
1735
1742
|
}) })]
|
|
1736
1743
|
}),
|
|
1737
|
-
a && /* @__PURE__ */
|
|
1738
|
-
id:
|
|
1744
|
+
a && /* @__PURE__ */ u("span", {
|
|
1745
|
+
id: m,
|
|
1739
1746
|
className: X.errorText,
|
|
1740
1747
|
role: "alert",
|
|
1741
1748
|
children: a
|
|
@@ -1754,29 +1761,29 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1754
1761
|
viewportPosition: "_viewportPosition_bfuyc_49",
|
|
1755
1762
|
viewport: "_viewport_bfuyc_49",
|
|
1756
1763
|
content: "_content_bfuyc_73"
|
|
1757
|
-
},
|
|
1764
|
+
}, $e = e.forwardRef(({ size: e = "default", className: t = "", children: n, "aria-label": r = "Main navigation", ...i }, a) => /* @__PURE__ */ d(j.Root, {
|
|
1758
1765
|
...i,
|
|
1759
1766
|
ref: a,
|
|
1760
1767
|
"aria-label": r,
|
|
1761
1768
|
className: `${Q.root} ${Q[e]} ${t}`,
|
|
1762
|
-
children: [n, /* @__PURE__ */
|
|
1769
|
+
children: [n, /* @__PURE__ */ u("div", {
|
|
1763
1770
|
className: Q.viewportPosition,
|
|
1764
|
-
children: /* @__PURE__ */
|
|
1771
|
+
children: /* @__PURE__ */ u(j.Viewport, { className: Q.viewport })
|
|
1765
1772
|
})]
|
|
1766
1773
|
}));
|
|
1767
|
-
|
|
1768
|
-
var
|
|
1774
|
+
$e.displayName = "NavigationMenu";
|
|
1775
|
+
var et = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
|
|
1769
1776
|
...t,
|
|
1770
1777
|
ref: n,
|
|
1771
1778
|
className: `${Q.list} ${e}`
|
|
1772
1779
|
}));
|
|
1773
|
-
|
|
1774
|
-
var
|
|
1780
|
+
et.displayName = "NavigationMenuList";
|
|
1781
|
+
var tt = j.Item, nt = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => /* @__PURE__ */ d(j.Trigger, {
|
|
1775
1782
|
...i,
|
|
1776
1783
|
ref: a,
|
|
1777
1784
|
className: `${Q.control} ${t}`,
|
|
1778
1785
|
children: [
|
|
1779
|
-
n && /* @__PURE__ */
|
|
1786
|
+
n && /* @__PURE__ */ u("span", {
|
|
1780
1787
|
className: Q.icon,
|
|
1781
1788
|
"aria-hidden": "true",
|
|
1782
1789
|
children: e.cloneElement(n, {
|
|
@@ -1785,29 +1792,29 @@ var Qe = k.Item, $e = e.forwardRef(({ className: t = "", icon: n, children: r, .
|
|
|
1785
1792
|
})
|
|
1786
1793
|
}),
|
|
1787
1794
|
r,
|
|
1788
|
-
/* @__PURE__ */
|
|
1795
|
+
/* @__PURE__ */ u("span", {
|
|
1789
1796
|
className: Q.caret,
|
|
1790
1797
|
"aria-hidden": "true",
|
|
1791
|
-
children: /* @__PURE__ */
|
|
1798
|
+
children: /* @__PURE__ */ u(h, {
|
|
1792
1799
|
size: 14,
|
|
1793
1800
|
color: "currentColor"
|
|
1794
1801
|
})
|
|
1795
1802
|
})
|
|
1796
1803
|
]
|
|
1797
1804
|
}));
|
|
1798
|
-
|
|
1799
|
-
var
|
|
1805
|
+
nt.displayName = "NavigationMenuTrigger";
|
|
1806
|
+
var rt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
|
|
1800
1807
|
...t,
|
|
1801
1808
|
ref: n,
|
|
1802
1809
|
className: `${Q.content} ${e}`
|
|
1803
1810
|
}));
|
|
1804
|
-
|
|
1805
|
-
var
|
|
1811
|
+
rt.displayName = "NavigationMenuContent";
|
|
1812
|
+
var it = e.forwardRef(({ variant: e = "panel", className: t = "", ...n }, r) => /* @__PURE__ */ u(j.Link, {
|
|
1806
1813
|
...n,
|
|
1807
1814
|
ref: r,
|
|
1808
1815
|
className: `${e === "navigation" ? Q.control : Q.link} ${t}`
|
|
1809
1816
|
}));
|
|
1810
|
-
|
|
1817
|
+
it.displayName = "NavigationMenuLink";
|
|
1811
1818
|
var $ = {
|
|
1812
1819
|
panel: "_panel_1hiss_6",
|
|
1813
1820
|
header: "_header_1hiss_14",
|
|
@@ -1839,38 +1846,38 @@ var $ = {
|
|
|
1839
1846
|
};
|
|
1840
1847
|
//#endregion
|
|
1841
1848
|
//#region src/components/Chat/ChatPanel.tsx
|
|
1842
|
-
function
|
|
1843
|
-
return /* @__PURE__ */
|
|
1849
|
+
function at({ children: e }) {
|
|
1850
|
+
return /* @__PURE__ */ u("kbd", {
|
|
1844
1851
|
className: $.kbd,
|
|
1845
1852
|
children: e
|
|
1846
1853
|
});
|
|
1847
1854
|
}
|
|
1848
|
-
var
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
/* @__PURE__ */
|
|
1851
|
-
/* @__PURE__ */
|
|
1855
|
+
var ot = /* @__PURE__ */ d(l, { children: [
|
|
1856
|
+
/* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(at, { children: "↵" }), " send"] }),
|
|
1857
|
+
/* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(at, { children: "⇧↵" }), " new line"] }),
|
|
1858
|
+
/* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(at, { children: "esc" }), " close"] })
|
|
1852
1859
|
] });
|
|
1853
|
-
function
|
|
1854
|
-
return /* @__PURE__ */
|
|
1860
|
+
function st({ header: e, children: t, composer: n, hints: r = ot, className: i = "", threadRef: a, "aria-label": o }) {
|
|
1861
|
+
return /* @__PURE__ */ d("div", {
|
|
1855
1862
|
className: `${$.panel} ${i}`,
|
|
1856
1863
|
"aria-label": o,
|
|
1857
1864
|
children: [
|
|
1858
|
-
e && /* @__PURE__ */
|
|
1865
|
+
e && /* @__PURE__ */ u("div", {
|
|
1859
1866
|
className: $.header,
|
|
1860
1867
|
children: e
|
|
1861
1868
|
}),
|
|
1862
|
-
/* @__PURE__ */
|
|
1869
|
+
/* @__PURE__ */ u("div", {
|
|
1863
1870
|
className: $.thread,
|
|
1864
1871
|
ref: a,
|
|
1865
1872
|
role: "log",
|
|
1866
1873
|
"aria-live": "polite",
|
|
1867
1874
|
children: t
|
|
1868
1875
|
}),
|
|
1869
|
-
n && /* @__PURE__ */
|
|
1876
|
+
n && /* @__PURE__ */ u("div", {
|
|
1870
1877
|
className: $.footer,
|
|
1871
1878
|
children: n
|
|
1872
1879
|
}),
|
|
1873
|
-
r !== !1 && r && /* @__PURE__ */
|
|
1880
|
+
r !== !1 && r && /* @__PURE__ */ u("div", {
|
|
1874
1881
|
className: $.hints,
|
|
1875
1882
|
children: r
|
|
1876
1883
|
})
|
|
@@ -1879,25 +1886,25 @@ function it({ header: e, children: t, composer: n, hints: r = rt, className: i =
|
|
|
1879
1886
|
}
|
|
1880
1887
|
//#endregion
|
|
1881
1888
|
//#region src/components/Chat/Message.tsx
|
|
1882
|
-
function
|
|
1883
|
-
return /* @__PURE__ */
|
|
1889
|
+
function ct({ children: e, className: t = "" }) {
|
|
1890
|
+
return /* @__PURE__ */ u("div", {
|
|
1884
1891
|
className: $.userRow,
|
|
1885
|
-
children: /* @__PURE__ */
|
|
1892
|
+
children: /* @__PURE__ */ u("div", {
|
|
1886
1893
|
className: `${$.userMsg} ${t}`,
|
|
1887
1894
|
children: e
|
|
1888
1895
|
})
|
|
1889
1896
|
});
|
|
1890
1897
|
}
|
|
1891
|
-
function
|
|
1892
|
-
return /* @__PURE__ */
|
|
1898
|
+
function lt({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
|
|
1899
|
+
return /* @__PURE__ */ d("div", {
|
|
1893
1900
|
className: `${$.assistant} ${r}`,
|
|
1894
|
-
children: [/* @__PURE__ */
|
|
1901
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1895
1902
|
className: $.assistantHead,
|
|
1896
|
-
children: [t === void 0 ? /* @__PURE__ */
|
|
1903
|
+
children: [t === void 0 ? /* @__PURE__ */ u(f, {
|
|
1897
1904
|
color: "currentColor",
|
|
1898
1905
|
size: 14
|
|
1899
|
-
}) : t, /* @__PURE__ */
|
|
1900
|
-
}), /* @__PURE__ */
|
|
1906
|
+
}) : t, /* @__PURE__ */ u("span", { children: e })]
|
|
1907
|
+
}), /* @__PURE__ */ u("div", {
|
|
1901
1908
|
className: $.assistantBody,
|
|
1902
1909
|
children: n
|
|
1903
1910
|
})]
|
|
@@ -1905,61 +1912,61 @@ function ot({ label: e = "Assistant", icon: t, children: n, className: r = "" })
|
|
|
1905
1912
|
}
|
|
1906
1913
|
//#endregion
|
|
1907
1914
|
//#region src/components/Chat/Composer.tsx
|
|
1908
|
-
var
|
|
1909
|
-
let
|
|
1910
|
-
|
|
1911
|
-
let e =
|
|
1915
|
+
var ut = 18, dt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: a, streaming: c = !1, placeholder: l = "Ask a question…", disabled: m = !1, autoFocus: h = !1, icon: g, maxLines: _ = 6, className: v = "", "aria-label": y = "Message" }, b) {
|
|
1916
|
+
let x = s(null);
|
|
1917
|
+
o(b, () => ({ focus: () => x.current?.focus() }), []), i(() => {
|
|
1918
|
+
let e = x.current;
|
|
1912
1919
|
if (!e) return;
|
|
1913
1920
|
e.style.height = "auto";
|
|
1914
|
-
let t =
|
|
1921
|
+
let t = ut * _ + 12;
|
|
1915
1922
|
e.style.height = `${Math.min(e.scrollHeight, t)}px`;
|
|
1916
1923
|
}, [e, _]);
|
|
1917
|
-
let
|
|
1918
|
-
|
|
1924
|
+
let S = !c && !m && e.trim().length > 0, w = r(() => {
|
|
1925
|
+
S && n(e.trim());
|
|
1919
1926
|
}, [
|
|
1920
|
-
|
|
1921
|
-
|
|
1927
|
+
S,
|
|
1928
|
+
n,
|
|
1922
1929
|
e
|
|
1923
1930
|
]);
|
|
1924
|
-
return /* @__PURE__ */
|
|
1931
|
+
return /* @__PURE__ */ d("div", {
|
|
1925
1932
|
className: `${$.composer} ${v}`,
|
|
1926
|
-
children: [/* @__PURE__ */
|
|
1933
|
+
children: [/* @__PURE__ */ d("div", {
|
|
1927
1934
|
className: $.composerField,
|
|
1928
|
-
children: [g !== null && /* @__PURE__ */
|
|
1935
|
+
children: [g !== null && /* @__PURE__ */ u("span", {
|
|
1929
1936
|
className: $.composerIcon,
|
|
1930
1937
|
"aria-hidden": "true",
|
|
1931
|
-
children: g === void 0 ? /* @__PURE__ */
|
|
1938
|
+
children: g === void 0 ? /* @__PURE__ */ u(f, {
|
|
1932
1939
|
color: "currentColor",
|
|
1933
1940
|
size: 21
|
|
1934
1941
|
}) : g
|
|
1935
|
-
}), /* @__PURE__ */
|
|
1936
|
-
ref:
|
|
1942
|
+
}), /* @__PURE__ */ u("textarea", {
|
|
1943
|
+
ref: x,
|
|
1937
1944
|
className: $.composerInput,
|
|
1938
1945
|
rows: 1,
|
|
1939
1946
|
value: e,
|
|
1940
|
-
placeholder:
|
|
1947
|
+
placeholder: l,
|
|
1941
1948
|
disabled: m,
|
|
1942
1949
|
autoFocus: h,
|
|
1943
1950
|
"aria-label": y,
|
|
1944
|
-
onChange: (e) =>
|
|
1951
|
+
onChange: (e) => t(e.target.value),
|
|
1945
1952
|
onKeyDown: (e) => {
|
|
1946
1953
|
e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), w());
|
|
1947
1954
|
}
|
|
1948
1955
|
})]
|
|
1949
|
-
}), /* @__PURE__ */
|
|
1956
|
+
}), /* @__PURE__ */ u("div", {
|
|
1950
1957
|
className: $.composerButton,
|
|
1951
|
-
children:
|
|
1958
|
+
children: c ? /* @__PURE__ */ u(N, {
|
|
1952
1959
|
variant: "secondary",
|
|
1953
1960
|
size: "micro",
|
|
1954
1961
|
"aria-label": "Stop",
|
|
1955
|
-
iconLeft: /* @__PURE__ */
|
|
1956
|
-
onClick:
|
|
1957
|
-
}) : /* @__PURE__ */
|
|
1962
|
+
iconLeft: /* @__PURE__ */ u(C, {}),
|
|
1963
|
+
onClick: a
|
|
1964
|
+
}) : /* @__PURE__ */ u(N, {
|
|
1958
1965
|
variant: "primary",
|
|
1959
1966
|
size: "micro",
|
|
1960
1967
|
"aria-label": "Send",
|
|
1961
|
-
iconLeft: /* @__PURE__ */
|
|
1962
|
-
disabled: !
|
|
1968
|
+
iconLeft: /* @__PURE__ */ u(p, {}),
|
|
1969
|
+
disabled: !S,
|
|
1963
1970
|
onClick: w
|
|
1964
1971
|
})
|
|
1965
1972
|
})]
|
|
@@ -1967,16 +1974,16 @@ var st = 18, ct = e.forwardRef(function({ value: e, onChange: r, onSend: o, onSt
|
|
|
1967
1974
|
});
|
|
1968
1975
|
//#endregion
|
|
1969
1976
|
//#region src/components/Chat/Citation.tsx
|
|
1970
|
-
function
|
|
1977
|
+
function ft({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
1971
1978
|
let a = `${$.ref} ${i}`;
|
|
1972
|
-
return t ? /* @__PURE__ */
|
|
1979
|
+
return t ? /* @__PURE__ */ u("a", {
|
|
1973
1980
|
href: t,
|
|
1974
1981
|
className: a,
|
|
1975
1982
|
onClick: n,
|
|
1976
1983
|
title: r,
|
|
1977
1984
|
"aria-label": `Source ${e}${r ? `: ${r}` : ""}`,
|
|
1978
1985
|
children: e
|
|
1979
|
-
}) : /* @__PURE__ */
|
|
1986
|
+
}) : /* @__PURE__ */ u("button", {
|
|
1980
1987
|
type: "button",
|
|
1981
1988
|
className: a,
|
|
1982
1989
|
onClick: n,
|
|
@@ -1985,19 +1992,19 @@ function lt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
|
1985
1992
|
children: e
|
|
1986
1993
|
});
|
|
1987
1994
|
}
|
|
1988
|
-
function
|
|
1989
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
1995
|
+
function pt({ items: e, label: t = "Sources", className: n = "" }) {
|
|
1996
|
+
return e.length === 0 ? null : /* @__PURE__ */ d("div", {
|
|
1990
1997
|
className: `${$.stack} ${n}`,
|
|
1991
|
-
children: [/* @__PURE__ */
|
|
1998
|
+
children: [/* @__PURE__ */ u("div", {
|
|
1992
1999
|
className: $.label,
|
|
1993
2000
|
children: t
|
|
1994
|
-
}), /* @__PURE__ */
|
|
2001
|
+
}), /* @__PURE__ */ u("div", {
|
|
1995
2002
|
className: $.wrap,
|
|
1996
2003
|
children: e.map((e) => {
|
|
1997
|
-
let t = /* @__PURE__ */
|
|
2004
|
+
let t = /* @__PURE__ */ d(Me, {
|
|
1998
2005
|
icon: e.icon,
|
|
1999
2006
|
children: [
|
|
2000
|
-
/* @__PURE__ */
|
|
2007
|
+
/* @__PURE__ */ u("span", {
|
|
2001
2008
|
className: $.citationNumber,
|
|
2002
2009
|
children: e.n
|
|
2003
2010
|
}),
|
|
@@ -2005,12 +2012,12 @@ function ut({ items: e, label: t = "Sources", className: n = "" }) {
|
|
|
2005
2012
|
e.title
|
|
2006
2013
|
]
|
|
2007
2014
|
});
|
|
2008
|
-
return e.href ? /* @__PURE__ */
|
|
2015
|
+
return e.href ? /* @__PURE__ */ u("a", {
|
|
2009
2016
|
href: e.href,
|
|
2010
2017
|
className: $.citationLink,
|
|
2011
2018
|
onClick: e.onClick,
|
|
2012
2019
|
children: t
|
|
2013
|
-
}, e.n) : /* @__PURE__ */
|
|
2020
|
+
}, e.n) : /* @__PURE__ */ u("button", {
|
|
2014
2021
|
type: "button",
|
|
2015
2022
|
className: $.citationLink,
|
|
2016
2023
|
onClick: e.onClick,
|
|
@@ -2022,27 +2029,27 @@ function ut({ items: e, label: t = "Sources", className: n = "" }) {
|
|
|
2022
2029
|
}
|
|
2023
2030
|
//#endregion
|
|
2024
2031
|
//#region src/components/Chat/StreamStatus.tsx
|
|
2025
|
-
function
|
|
2026
|
-
return /* @__PURE__ */
|
|
2032
|
+
function mt({ children: e, className: t = "" }) {
|
|
2033
|
+
return /* @__PURE__ */ d("div", {
|
|
2027
2034
|
className: `${$.status} ${t}`,
|
|
2028
2035
|
role: "status",
|
|
2029
|
-
children: [/* @__PURE__ */
|
|
2036
|
+
children: [/* @__PURE__ */ u("span", {
|
|
2030
2037
|
className: $.statusSpinner,
|
|
2031
|
-
children: /* @__PURE__ */
|
|
2032
|
-
}), /* @__PURE__ */
|
|
2038
|
+
children: /* @__PURE__ */ u(M, { size: 14 })
|
|
2039
|
+
}), /* @__PURE__ */ u("span", { children: e })]
|
|
2033
2040
|
});
|
|
2034
2041
|
}
|
|
2035
2042
|
//#endregion
|
|
2036
2043
|
//#region src/components/Chat/Suggestions.tsx
|
|
2037
|
-
function
|
|
2038
|
-
return /* @__PURE__ */
|
|
2044
|
+
function ht({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
|
|
2045
|
+
return /* @__PURE__ */ d("div", {
|
|
2039
2046
|
className: `${$.suggestions} ${r}`,
|
|
2040
|
-
children: [/* @__PURE__ */
|
|
2047
|
+
children: [/* @__PURE__ */ u("div", {
|
|
2041
2048
|
className: $.label,
|
|
2042
2049
|
children: n
|
|
2043
|
-
}), /* @__PURE__ */
|
|
2050
|
+
}), /* @__PURE__ */ u("div", {
|
|
2044
2051
|
className: $.wrap,
|
|
2045
|
-
children: e.map((e) => /* @__PURE__ */
|
|
2052
|
+
children: e.map((e) => /* @__PURE__ */ u(N, {
|
|
2046
2053
|
variant: "secondary",
|
|
2047
2054
|
size: "micro",
|
|
2048
2055
|
onClick: () => t(e),
|
|
@@ -2053,22 +2060,22 @@ function ft({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
|
|
|
2053
2060
|
}
|
|
2054
2061
|
//#endregion
|
|
2055
2062
|
//#region src/components/Chat/AnswerActions.tsx
|
|
2056
|
-
function
|
|
2057
|
-
return /* @__PURE__ */
|
|
2063
|
+
function gt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
|
|
2064
|
+
return /* @__PURE__ */ d("div", {
|
|
2058
2065
|
className: `${$.actions} ${i}`,
|
|
2059
2066
|
children: [
|
|
2060
|
-
e && /* @__PURE__ */
|
|
2067
|
+
e && /* @__PURE__ */ u(N, {
|
|
2061
2068
|
variant: "ghost",
|
|
2062
2069
|
size: "micro",
|
|
2063
|
-
iconLeft:
|
|
2070
|
+
iconLeft: u(t ? m : v, {}),
|
|
2064
2071
|
onClick: e,
|
|
2065
2072
|
children: t ? "Copied" : "Copy"
|
|
2066
2073
|
}),
|
|
2067
|
-
/* @__PURE__ */
|
|
2068
|
-
n && /* @__PURE__ */
|
|
2074
|
+
/* @__PURE__ */ u("span", { className: $.actionsSpacer }),
|
|
2075
|
+
n && /* @__PURE__ */ u(N, {
|
|
2069
2076
|
variant: "ghost",
|
|
2070
2077
|
size: "micro",
|
|
2071
|
-
iconRight: /* @__PURE__ */
|
|
2078
|
+
iconRight: /* @__PURE__ */ u(_, {}),
|
|
2072
2079
|
onClick: n,
|
|
2073
2080
|
children: r
|
|
2074
2081
|
})
|
|
@@ -2076,4 +2083,4 @@ function pt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
|
|
|
2076
2083
|
});
|
|
2077
2084
|
}
|
|
2078
2085
|
//#endregion
|
|
2079
|
-
export {
|
|
2086
|
+
export { Fe as Alert, Le as AlertDescription, Ie as AlertTitle, gt as AnswerActions, lt as AssistantMessage, oe as Base, Oe as Breadcrumbs, N as Button, Ge as Chart, st as ChatPanel, ie as Checkbox, Me as Chip, pt as CitationList, ft as CitationRef, dt as Composer, Qe as DatePicker, se as FilterPanelBase, ue as InputField, at as Kbd, qe as Modal, $e as NavigationMenu, rt as NavigationMenuContent, tt as NavigationMenuItem, it as NavigationMenuLink, et as NavigationMenuList, nt as NavigationMenuTrigger, _e as Popover, Ae as ProgressBar, de as RadioButton, le as SearchField, he as Select, me as Slider, M as Spinner, mt as StreamStatus, ht as Suggestions, ve as Table, xe as TableCell, ye as TableHeader, Ce as TableIcon, be as TableRow, Se as TableValue, Te as Tabs, Ke as Textarea, pe as ToggleSwitch, ze as Tooltip, ct as UserMessage, ot as defaultChatHints, re as spinnerNames };
|