@indxsearch/systm 2.15.0 → 2.17.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/dist/index.es.js CHANGED
@@ -7,7 +7,7 @@ import * as O from "@radix-ui/react-popover";
7
7
  import * as k from "@radix-ui/react-tooltip";
8
8
  import * as A from "@radix-ui/react-dialog";
9
9
  import * as j from "@radix-ui/react-navigation-menu";
10
- var M = {
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 M = {
15
15
  primary: "_primary_15lsu_54",
16
16
  secondary: "_secondary_15lsu_64",
17
17
  ghost: "_ghost_15lsu_74"
18
- }, ee = {
18
+ }, te = {
19
19
  spinner: "_spinner_wspyi_1",
20
20
  frame: "_frame_wspyi_8"
21
- }, te = {
21
+ }, ne = {
22
22
  accelerate: {
23
23
  viewBox: "0 0 7 5",
24
24
  delay: 50,
@@ -279,13 +279,13 @@ var M = {
279
279
  "M3 4H4V5H3V4Z M5 3H6V4H5V3Z M6 1H7V2H6V1Z M1 3H2V4H1V3Z M0 1H1V2H0V1Z M2 2H5V3H2V2Z M1 0H6V1H1V0Z"
280
280
  ]
281
281
  }
282
- }, ne = Object.keys(te);
282
+ }, re = Object.keys(ne);
283
283
  //#endregion
284
284
  //#region src/components/Spinner/Spinner.tsx
285
- function N({ name: e = ne[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
286
- let o = te[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;
285
+ function ie({ 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
287
  return /* @__PURE__ */ u("svg", {
288
- className: `${ee.spinner} ${i}`,
288
+ className: `${te.spinner} ${i}`,
289
289
  width: t,
290
290
  height: d,
291
291
  viewBox: o.viewBox,
@@ -294,7 +294,7 @@ function N({ name: e = ne[0], size: t = 21, color: n = "currentColor", delay: r,
294
294
  "aria-label": a,
295
295
  xmlns: "http://www.w3.org/2000/svg",
296
296
  children: o.frames.map((e, t) => e ? /* @__PURE__ */ u("path", {
297
- className: ee.frame,
297
+ className: te.frame,
298
298
  d: e,
299
299
  fill: n,
300
300
  style: {
@@ -306,15 +306,15 @@ function N({ name: e = ne[0], size: t = 21, color: n = "currentColor", delay: r,
306
306
  }
307
307
  //#endregion
308
308
  //#region src/components/Button/Button.tsx
309
- function P(t) {
309
+ function M(t) {
310
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
- M.button,
312
- M[n],
313
- M[r],
311
+ ee.button,
312
+ ee[n],
313
+ ee[r],
314
314
  p ? "cursor-not-allowed" : "cursor-pointer",
315
315
  o
316
316
  ].filter(Boolean).join(" "), v = /* @__PURE__ */ d(l, { children: [
317
- c ? /* @__PURE__ */ u(N, { size: g }) : i && e.cloneElement(i, {
317
+ c ? /* @__PURE__ */ u(ie, { size: g }) : i && e.cloneElement(i, {
318
318
  size: h,
319
319
  color: "currentColor"
320
320
  }),
@@ -355,57 +355,57 @@ function P(t) {
355
355
  children: v
356
356
  });
357
357
  }
358
- var F = {
358
+ var N = {
359
359
  checkboxWrapper: "_checkboxWrapper_1vygn_1",
360
360
  checkbox: "_checkbox_1vygn_1",
361
361
  label: "_label_1vygn_44",
362
362
  score: "_score_1vygn_48",
363
363
  disabled: "_disabled_1vygn_55"
364
- }, re = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
364
+ }, ae = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
365
365
  let s = e.useId(), c = i || s, l = n ? `${c}-score` : void 0, f = o.disabled;
366
366
  return t || n ? /* @__PURE__ */ d("label", {
367
367
  htmlFor: c,
368
- className: `${F.checkboxWrapper} ${r} ${f ? F.disabled : ""} ${f ? "cursor-not-allowed" : "cursor-pointer"}`,
368
+ className: `${N.checkboxWrapper} ${r} ${f ? N.disabled : ""} ${f ? "cursor-not-allowed" : "cursor-pointer"}`,
369
369
  children: [
370
370
  /* @__PURE__ */ u("input", {
371
371
  id: c,
372
372
  type: "checkbox",
373
- className: F.checkbox,
373
+ className: N.checkbox,
374
374
  "aria-describedby": l,
375
375
  "aria-label": a,
376
376
  ...o
377
377
  }),
378
378
  t && /* @__PURE__ */ u("span", {
379
- className: F.label,
379
+ className: N.label,
380
380
  children: t
381
381
  }),
382
382
  n && /* @__PURE__ */ u("span", {
383
383
  id: l,
384
- className: F.score,
384
+ className: N.score,
385
385
  children: n
386
386
  })
387
387
  ]
388
388
  }) : /* @__PURE__ */ u("input", {
389
389
  id: c,
390
390
  type: "checkbox",
391
- className: `${F.checkbox} ${r}`,
391
+ className: `${N.checkbox} ${r}`,
392
392
  "aria-label": a,
393
393
  disabled: f,
394
394
  ...o
395
395
  });
396
- }, ie = {
396
+ }, oe = {
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 ae({ children: e, className: t }) {
402
+ function se({ children: e, className: t }) {
403
403
  return /* @__PURE__ */ u("div", {
404
- className: `${ie.container} ${ie.default} ${t || ""}`,
404
+ className: `${oe.container} ${oe.default} ${t || ""}`,
405
405
  children: e
406
406
  });
407
407
  }
408
- var I = {
408
+ var P = {
409
409
  container: "_container_10bfq_1",
410
410
  header: "_header_10bfq_11",
411
411
  title: "_title_10bfq_31",
@@ -414,15 +414,15 @@ var I = {
414
414
  };
415
415
  //#endregion
416
416
  //#region src/components/FilterPanelBase/FilterPanelBase.tsx
417
- function oe({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
417
+ function ce({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
418
418
  let [s, l] = c(() => !o), f = e.useId();
419
419
  return i(() => {
420
420
  a && l(!o);
421
421
  }, [o, a]), /* @__PURE__ */ d("div", {
422
- className: `${I.container} ${r}`,
422
+ className: `${P.container} ${r}`,
423
423
  children: [t && (a ? /* @__PURE__ */ d("button", {
424
424
  type: "button",
425
- className: I.header,
425
+ className: P.header,
426
426
  onClick: () => {
427
427
  a && l((e) => !e);
428
428
  },
@@ -430,7 +430,7 @@ function oe({ title: t, children: n, className: r = "", collapsible: a = !0, col
430
430
  "aria-expanded": s,
431
431
  "aria-controls": f,
432
432
  children: [/* @__PURE__ */ u("div", {
433
- className: I.title,
433
+ className: P.title,
434
434
  children: t
435
435
  }), /* @__PURE__ */ u("span", {
436
436
  "aria-hidden": "true",
@@ -440,21 +440,21 @@ function oe({ title: t, children: n, className: r = "", collapsible: a = !0, col
440
440
  })
441
441
  })]
442
442
  }) : /* @__PURE__ */ u("div", {
443
- className: I.header,
443
+ className: P.header,
444
444
  children: /* @__PURE__ */ u("div", {
445
- className: I.title,
445
+ className: P.title,
446
446
  children: t
447
447
  })
448
448
  })), (!a || s) && /* @__PURE__ */ u("div", {
449
449
  id: f,
450
- className: I.body,
450
+ className: P.body,
451
451
  role: "region",
452
452
  "aria-label": t || "Filter panel content",
453
453
  children: n
454
454
  })]
455
455
  });
456
456
  }
457
- var L = {
457
+ var F = {
458
458
  wrapper: "_wrapper_tf1yl_1",
459
459
  label: "_label_tf1yl_7",
460
460
  inputContainer: "_inputContainer_tf1yl_12",
@@ -466,27 +466,27 @@ var L = {
466
466
  sizeDefault: "_sizeDefault_tf1yl_87",
467
467
  error: "_error_tf1yl_110",
468
468
  errorText: "_errorText_tf1yl_114"
469
- }, se = {
469
+ }, le = {
470
470
  micro: 14,
471
471
  default: 21
472
472
  };
473
- function ce({ 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 = se[c], x = {};
473
+ function ue({ 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 = le[c], x = {};
475
475
  o && (x["--search-icon-color"] = o);
476
- let C = a ?? /* @__PURE__ */ u(S, {}), w = c === "micro" ? L.sizeMicro : L.sizeDefault;
476
+ let C = a ?? /* @__PURE__ */ u(S, {}), w = c === "micro" ? F.sizeMicro : F.sizeDefault;
477
477
  return /* @__PURE__ */ d("div", {
478
- className: `${L.wrapper} ${r}`,
478
+ className: `${F.wrapper} ${r}`,
479
479
  children: [
480
480
  t && /* @__PURE__ */ u("label", {
481
481
  htmlFor: v,
482
- className: L.label,
482
+ className: F.label,
483
483
  children: t
484
484
  }),
485
485
  /* @__PURE__ */ d("div", {
486
- className: `${L.inputContainer} ${w}`,
486
+ className: `${F.inputContainer} ${w}`,
487
487
  children: [
488
488
  i && /* @__PURE__ */ u("span", {
489
- className: L.searchIcon,
489
+ className: F.searchIcon,
490
490
  "aria-hidden": "true",
491
491
  children: e.cloneElement(C, {
492
492
  size: b,
@@ -497,28 +497,28 @@ function ce({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
497
497
  ref: g,
498
498
  id: v,
499
499
  type: m,
500
- className: `${L.input} ${l ? L.focus : ""} ${n ? L.error : ""}`,
500
+ className: `${F.input} ${l ? F.focus : ""} ${n ? F.error : ""}`,
501
501
  style: x,
502
502
  "aria-invalid": n ? "true" : "false",
503
503
  "aria-describedby": n ? y : void 0,
504
504
  ...h
505
505
  }),
506
506
  f && /* @__PURE__ */ u("div", {
507
- className: L.rightContent,
507
+ className: F.rightContent,
508
508
  children: f
509
509
  })
510
510
  ]
511
511
  }),
512
512
  n && /* @__PURE__ */ u("span", {
513
513
  id: y,
514
- className: L.errorText,
514
+ className: F.errorText,
515
515
  role: "alert",
516
516
  children: n
517
517
  })
518
518
  ]
519
519
  });
520
520
  }
521
- var R = {
521
+ var I = {
522
522
  wrapper: "_wrapper_roite_1",
523
523
  label: "_label_roite_10",
524
524
  input: "_input_roite_15",
@@ -528,14 +528,14 @@ var R = {
528
528
  };
529
529
  //#endregion
530
530
  //#region src/components/InputField/InputField.tsx
531
- function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
531
+ function de({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
532
532
  let c = e.useId(), l = o || c, f = `${l}-error`, p = n || !i;
533
533
  return /* @__PURE__ */ d("div", {
534
- className: `${R.wrapper} ${r}`,
534
+ className: `${I.wrapper} ${r}`,
535
535
  children: [
536
536
  t && /* @__PURE__ */ d("label", {
537
537
  htmlFor: l,
538
- className: R.label,
538
+ className: I.label,
539
539
  children: [t, s.required && /* @__PURE__ */ u("span", {
540
540
  "aria-label": "required",
541
541
  children: " *"
@@ -543,29 +543,29 @@ function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a
543
543
  }),
544
544
  /* @__PURE__ */ u("input", {
545
545
  id: l,
546
- className: `${R.input} ${a === "borderBottom" ? R.borderBottom : ""} ${p ? R.error : ""}`,
546
+ className: `${I.input} ${a === "borderBottom" ? I.borderBottom : ""} ${p ? I.error : ""}`,
547
547
  "aria-invalid": p ? "true" : "false",
548
548
  "aria-describedby": n ? f : void 0,
549
549
  ...s
550
550
  }),
551
551
  n && /* @__PURE__ */ u("span", {
552
552
  id: f,
553
- className: R.errorText,
553
+ className: I.errorText,
554
554
  role: "alert",
555
555
  children: n
556
556
  })
557
557
  ]
558
558
  });
559
559
  }
560
- var ue = {
560
+ var L = {
561
561
  radioWrapper: "_radioWrapper_1faq0_1",
562
562
  radioInput: "_radioInput_1faq0_9",
563
563
  customRadio: "_customRadio_1faq0_23",
564
564
  labelText: "_labelText_1faq0_57",
565
565
  disabled: "_disabled_1faq0_63"
566
- }, de = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ d("label", {
566
+ }, fe = ({ 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
- className: `${ue.radioWrapper} ${o ? ue.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
568
+ className: `${L.radioWrapper} ${o ? L.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
569
569
  children: [
570
570
  /* @__PURE__ */ u("input", {
571
571
  id: e,
@@ -576,24 +576,24 @@ var ue = {
576
576
  onChange: a,
577
577
  disabled: o,
578
578
  "aria-label": s,
579
- className: ue.radioInput
579
+ className: L.radioInput
580
580
  }),
581
- /* @__PURE__ */ u("span", { className: ue.customRadio }),
581
+ /* @__PURE__ */ u("span", { className: L.customRadio }),
582
582
  /* @__PURE__ */ u("span", {
583
- className: ue.labelText,
583
+ className: L.labelText,
584
584
  children: r
585
585
  })
586
586
  ]
587
- }), fe = {
587
+ }), pe = {
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
- }, pe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
592
+ }, me = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
593
593
  let s = e.useId(), c = t || s;
594
594
  return /* @__PURE__ */ d("label", {
595
595
  htmlFor: c,
596
- className: `${fe.switch} ${i ? fe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
596
+ className: `${pe.switch} ${i ? pe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
597
597
  children: [
598
598
  /* @__PURE__ */ u("input", {
599
599
  id: c,
@@ -606,16 +606,16 @@ var ue = {
606
606
  disabled: i
607
607
  }),
608
608
  /* @__PURE__ */ u("span", {
609
- className: fe.slider,
609
+ className: pe.slider,
610
610
  "aria-hidden": "true"
611
611
  }),
612
612
  a && /* @__PURE__ */ u("span", {
613
- className: fe.label,
613
+ className: pe.label,
614
614
  children: a
615
615
  })
616
616
  ]
617
617
  });
618
- }, z = {
618
+ }, R = {
619
619
  label: "_label_1o3ls_1",
620
620
  basetrack: "_basetrack_1o3ls_8",
621
621
  selectedtrack: "_selectedtrack_1o3ls_36",
@@ -629,23 +629,23 @@ var ue = {
629
629
  stepmarksInline: "_stepmarksInline_1o3ls_113",
630
630
  stepmarksBelow: "_stepmarksBelow_1o3ls_120",
631
631
  basetrackStepsBelow: "_basetrackStepsBelow_1o3ls_125"
632
- }, me = 50, he = (t) => {
632
+ }, he = 50, ge = (t) => {
633
633
  let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: f = !0, stepMarks: p, onChange: m, onFinalChange: h, label: g, "aria-label": _, id: v } = t, y = e.useId(), b = v || y;
634
634
  if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ d("div", {
635
635
  className: o,
636
636
  children: [g && /* @__PURE__ */ u("span", {
637
- className: z.label,
637
+ className: R.label,
638
638
  children: g
639
639
  }), /* @__PURE__ */ u("div", {
640
- className: `${z.basetrack} ${z.disabled}`,
640
+ className: `${R.basetrack} ${R.disabled}`,
641
641
  "aria-hidden": "true"
642
642
  })]
643
643
  });
644
- let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <= me, C = S && p === "below" ? `${z.basetrack} ${z.basetrackStepsBelow}` : z.basetrack, w = S ? /* @__PURE__ */ u("div", {
645
- className: `${z.stepmarks} ${p === "below" ? z.stepmarksBelow : z.stepmarksInline}`,
644
+ let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <= he, C = S && p === "below" ? `${R.basetrack} ${R.basetrackStepsBelow}` : R.basetrack, w = S ? /* @__PURE__ */ u("div", {
645
+ className: `${R.stepmarks} ${p === "below" ? R.stepmarksBelow : R.stepmarksInline}`,
646
646
  "aria-hidden": "true",
647
647
  children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ u("span", {
648
- className: z.stepmark,
648
+ className: R.stepmark,
649
649
  style: { left: `${Math.min(t * i, r - n) / (r - n) * 100}%` }
650
650
  }, t))
651
651
  }) : null;
@@ -655,7 +655,7 @@ var ue = {
655
655
  className: o,
656
656
  children: [g && /* @__PURE__ */ u("label", {
657
657
  htmlFor: b,
658
- className: z.label,
658
+ className: R.label,
659
659
  children: g
660
660
  }), /* @__PURE__ */ u(E, {
661
661
  step: i,
@@ -673,7 +673,7 @@ var ue = {
673
673
  style: { ...a.style },
674
674
  children: [
675
675
  !v && /* @__PURE__ */ u("div", {
676
- className: z.selectedtrack,
676
+ className: R.selectedtrack,
677
677
  style: {
678
678
  left: `${m}%`,
679
679
  width: `${h}%`,
@@ -681,7 +681,7 @@ var ue = {
681
681
  }
682
682
  }),
683
683
  v && /* @__PURE__ */ u("div", {
684
- className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
684
+ className: `${R.livetrack} ${l ? R.livetrackFaceted : R.livetrackDefault}`,
685
685
  style: {
686
686
  left: `${g}%`,
687
687
  width: `${_}%`,
@@ -698,7 +698,7 @@ var ue = {
698
698
  return /* @__PURE__ */ u("div", {
699
699
  ...o,
700
700
  id: t === 0 ? b : void 0,
701
- className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
701
+ className: `${R.thumbs} ${a ? R.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
702
702
  style: {
703
703
  ...o.style,
704
704
  zIndex: "3"
@@ -717,7 +717,7 @@ var ue = {
717
717
  className: o,
718
718
  children: [g && /* @__PURE__ */ u("label", {
719
719
  htmlFor: b,
720
- className: z.label,
720
+ className: R.label,
721
721
  children: g
722
722
  }), /* @__PURE__ */ u(E, {
723
723
  step: i,
@@ -735,7 +735,7 @@ var ue = {
735
735
  style: { ...o.style },
736
736
  children: [
737
737
  !g && /* @__PURE__ */ u("div", {
738
- className: z.selectedtrack,
738
+ className: R.selectedtrack,
739
739
  style: {
740
740
  left: "0%",
741
741
  width: `${p}%`,
@@ -743,7 +743,7 @@ var ue = {
743
743
  }
744
744
  }),
745
745
  g && /* @__PURE__ */ u("div", {
746
- className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
746
+ className: `${R.livetrack} ${l ? R.livetrackFaceted : R.livetrackDefault}`,
747
747
  style: {
748
748
  left: `${m}%`,
749
749
  width: `${h}%`,
@@ -760,7 +760,7 @@ var ue = {
760
760
  return /* @__PURE__ */ u("div", {
761
761
  ...o,
762
762
  id: b,
763
- className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
763
+ className: `${R.thumbs} ${a ? R.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
764
764
  style: {
765
765
  ...o.style,
766
766
  zIndex: "3"
@@ -774,7 +774,7 @@ var ue = {
774
774
  })]
775
775
  });
776
776
  }
777
- }, B = {
777
+ }, z = {
778
778
  wrapper: "_wrapper_15fsv_1",
779
779
  label: "_label_15fsv_7",
780
780
  trigger: "_trigger_15fsv_12",
@@ -786,14 +786,14 @@ var ue = {
786
786
  viewport: "_viewport_15fsv_76",
787
787
  item: "_item_15fsv_82",
788
788
  itemIndicator: "_itemIndicator_15fsv_105"
789
- }, ge = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", "aria-label": l, id: f }) => {
789
+ }, _e = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", "aria-label": l, id: f }) => {
790
790
  let p = e.useId(), g = f || p, _ = `${g}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ d(D.Root, {
791
791
  value: t,
792
792
  onValueChange: n,
793
793
  disabled: o,
794
794
  children: [/* @__PURE__ */ d(D.Trigger, {
795
795
  id: g,
796
- className: `${B.trigger} ${B[c]} ${a} cursor-pointer`,
796
+ className: `${z.trigger} ${z[c]} ${a} cursor-pointer`,
797
797
  ...s ? { "aria-labelledby": _ } : l ? { "aria-label": l } : {},
798
798
  children: [/* @__PURE__ */ d("span", {
799
799
  style: {
@@ -803,7 +803,7 @@ var ue = {
803
803
  },
804
804
  children: [v?.icon, /* @__PURE__ */ u(D.Value, { placeholder: i })]
805
805
  }), /* @__PURE__ */ u(D.Icon, {
806
- className: B.icon,
806
+ className: z.icon,
807
807
  "aria-hidden": "true",
808
808
  children: /* @__PURE__ */ u(h, {
809
809
  size: c === "large" ? 21 : 14,
@@ -811,16 +811,16 @@ var ue = {
811
811
  })
812
812
  })]
813
813
  }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
814
- className: B.content,
814
+ className: z.content,
815
815
  position: "popper",
816
816
  side: "bottom",
817
817
  align: "start",
818
818
  sideOffset: 4,
819
819
  children: /* @__PURE__ */ u(D.Viewport, {
820
- className: B.viewport,
820
+ className: z.viewport,
821
821
  children: r.map((e) => /* @__PURE__ */ d(D.Item, {
822
822
  value: e.value,
823
- className: B.item,
823
+ className: z.item,
824
824
  children: [/* @__PURE__ */ d("span", {
825
825
  style: {
826
826
  display: "inline-flex",
@@ -829,7 +829,7 @@ var ue = {
829
829
  },
830
830
  children: [e.icon, /* @__PURE__ */ u(D.ItemText, { children: e.label })]
831
831
  }), /* @__PURE__ */ u(D.ItemIndicator, {
832
- className: B.itemIndicator,
832
+ className: z.itemIndicator,
833
833
  children: /* @__PURE__ */ u(m, {
834
834
  size: 12,
835
835
  color: "currentColor"
@@ -840,22 +840,22 @@ var ue = {
840
840
  }) })]
841
841
  });
842
842
  return s ? /* @__PURE__ */ d("div", {
843
- className: B.wrapper,
843
+ className: z.wrapper,
844
844
  children: [/* @__PURE__ */ u("label", {
845
845
  id: _,
846
846
  htmlFor: g,
847
- className: B.label,
847
+ className: z.label,
848
848
  children: s
849
849
  }), y]
850
850
  }) : y;
851
- }, _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__ */ d(O.Root, {
851
+ }, ve = { content: "_content_1qahr_1" }, ye = ({ 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, {
852
852
  open: n,
853
853
  onOpenChange: r,
854
854
  children: [/* @__PURE__ */ u(O.Trigger, {
855
855
  asChild: !0,
856
856
  children: e
857
857
  }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ u(O.Content, {
858
- className: `${_e.content} ${s}`,
858
+ className: `${ve.content} ${s}`,
859
859
  align: i,
860
860
  side: a,
861
861
  sideOffset: o,
@@ -863,7 +863,7 @@ var ue = {
863
863
  "aria-describedby": l,
864
864
  children: t
865
865
  }) })]
866
- }), V = {
866
+ }), B = {
867
867
  table: "_table_j6zqj_1",
868
868
  caption: "_caption_j6zqj_8",
869
869
  headerRow: "_headerRow_j6zqj_25",
@@ -879,17 +879,17 @@ var ue = {
879
879
  };
880
880
  //#endregion
881
881
  //#region src/components/Table/Table.tsx
882
- function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
882
+ function be({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
883
883
  let o = /* @__PURE__ */ d("table", {
884
- className: `${V.table} ${r && i ? V.stickyFirst : ""}`,
884
+ className: `${B.table} ${r && i ? B.stickyFirst : ""}`,
885
885
  "aria-label": n,
886
886
  children: [t && /* @__PURE__ */ u("caption", {
887
- className: V.caption,
887
+ className: B.caption,
888
888
  children: t
889
889
  }), e]
890
890
  });
891
891
  return r ? /* @__PURE__ */ u("div", {
892
- className: `${V.scroll} ${a === void 0 ? "" : V.bleedEnd}`,
892
+ className: `${B.scroll} ${a === void 0 ? "" : B.bleedEnd}`,
893
893
  style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
894
894
  role: "region",
895
895
  "aria-label": n ?? t,
@@ -899,27 +899,27 @@ function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stic
899
899
  }
900
900
  //#endregion
901
901
  //#region src/components/Table/TableHeader.tsx
902
- function be({ children: t }) {
902
+ function xe({ children: t }) {
903
903
  let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ u("th", {
904
904
  scope: "col",
905
905
  ...t.props
906
906
  }) : t);
907
907
  return /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
908
- className: V.headerRow,
908
+ className: B.headerRow,
909
909
  children: n
910
910
  }) });
911
911
  }
912
912
  //#endregion
913
913
  //#region src/components/Table/TableRow.tsx
914
- function xe({ children: e }) {
914
+ function Se({ children: e }) {
915
915
  return /* @__PURE__ */ u("tr", {
916
- className: V.dataRow,
916
+ className: B.dataRow,
917
917
  children: e
918
918
  });
919
919
  }
920
920
  //#endregion
921
921
  //#region src/components/Table/TableCell.tsx
922
- function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
922
+ function Ce({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
923
923
  let a = n ? "th" : "td", o = {
924
924
  ...n && r ? { scope: r } : {},
925
925
  ...i ? { colSpan: i } : {}
@@ -927,12 +927,12 @@ function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
927
927
  return e || t ? /* @__PURE__ */ u(a, {
928
928
  ...o,
929
929
  children: /* @__PURE__ */ d("div", {
930
- className: V.cellInner,
930
+ className: B.cellInner,
931
931
  children: [e && /* @__PURE__ */ u("span", {
932
- className: V.cellLabel,
932
+ className: B.cellLabel,
933
933
  children: e
934
934
  }), t && /* @__PURE__ */ u("div", {
935
- className: V.cellContent,
935
+ className: B.cellContent,
936
936
  children: t
937
937
  })]
938
938
  })
@@ -943,18 +943,18 @@ function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
943
943
  }
944
944
  //#endregion
945
945
  //#region src/components/Table/TableValue.tsx
946
- function Ce({ children: e }) {
946
+ function we({ children: e }) {
947
947
  return /* @__PURE__ */ u("span", {
948
- className: V.value,
948
+ className: B.value,
949
949
  children: e
950
950
  });
951
951
  }
952
952
  //#endregion
953
953
  //#region src/components/Table/TableIcon.tsx
954
- function we({ children: t, "aria-label": n }) {
954
+ function Te({ children: t, "aria-label": n }) {
955
955
  let r = !n;
956
956
  return /* @__PURE__ */ u("span", {
957
- className: V.icon,
957
+ className: B.icon,
958
958
  "aria-hidden": r ? "true" : void 0,
959
959
  "aria-label": n,
960
960
  children: e.cloneElement(t, {
@@ -963,38 +963,39 @@ function we({ children: t, "aria-label": n }) {
963
963
  })
964
964
  });
965
965
  }
966
- var H = {
967
- tabs: "_tabs_5w265_1",
968
- scrollable: "_scrollable_5w265_16",
969
- tab: "_tab_5w265_1",
970
- icon: "_icon_5w265_52",
971
- badge: "_badge_5w265_70",
972
- active: "_active_5w265_81",
973
- micro: "_micro_5w265_87",
974
- default: "_default_5w265_94",
975
- large: "_large_5w265_101",
976
- buttonVariant: "_buttonVariant_5w265_110",
977
- bleed: "_bleed_5w265_143"
966
+ var V = {
967
+ tabs: "_tabs_q9gjb_1",
968
+ scrollable: "_scrollable_q9gjb_16",
969
+ tab: "_tab_q9gjb_1",
970
+ icon: "_icon_q9gjb_52",
971
+ badge: "_badge_q9gjb_70",
972
+ badgeInfo: "_badgeInfo_q9gjb_82",
973
+ active: "_active_q9gjb_87",
974
+ micro: "_micro_q9gjb_93",
975
+ default: "_default_q9gjb_100",
976
+ large: "_large_q9gjb_107",
977
+ buttonVariant: "_buttonVariant_q9gjb_116",
978
+ bleed: "_bleed_q9gjb_149"
978
979
  };
979
980
  //#endregion
980
981
  //#region src/components/Tabs/Tabs.tsx
981
- function Te(e, t) {
982
+ function Ee(e, t) {
982
983
  if (!e || !t) return;
983
984
  let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
984
985
  i.left < r.left + n ? e.scrollLeft -= r.left + n - i.left : i.right > r.right - n && (e.scrollLeft += i.right - (r.right - n));
985
986
  }
986
- var Ee = {
987
+ var De = {
987
988
  micro: 14,
988
989
  default: 14,
989
990
  large: 21
990
991
  };
991
- function De({ items: e, value: r, onValueChange: o, size: c = "default", variant: f = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
992
+ function Oe({ items: e, value: r, onValueChange: o, size: c = "default", variant: f = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
992
993
  let v = s(null), y = s(/* @__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) => {
993
994
  let n = e[t];
994
995
  if (!n) return;
995
996
  o(n.value);
996
997
  let r = y.current.get(n.value);
997
- r?.focus({ preventScroll: !0 }), p && Te(v.current, r);
998
+ r?.focus({ preventScroll: !0 }), p && Ee(v.current, r);
998
999
  }, w = (t, n) => {
999
1000
  for (let r = 1; r <= e.length; r++) {
1000
1001
  let i = (t + n * r + e.length * r) % e.length;
@@ -1041,27 +1042,27 @@ function De({ items: e, value: r, onValueChange: o, size: c = "default", variant
1041
1042
  m,
1042
1043
  e.length
1043
1044
  ]), i(() => {
1044
- p && Te(v.current, y.current.get(r));
1045
+ p && Ee(v.current, y.current.get(r));
1045
1046
  }, [p, r]), /* @__PURE__ */ u("div", {
1046
1047
  ref: v,
1047
- className: `${H.tabs} ${f === "button" ? H.buttonVariant : ""} ${p ? H.scrollable : ""} ${p && m !== void 0 ? H.bleed : ""}`,
1048
+ className: `${V.tabs} ${f === "button" ? V.buttonVariant : ""} ${p ? V.scrollable : ""} ${p && m !== void 0 ? V.bleed : ""}`,
1048
1049
  style: p && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
1049
1050
  role: S ? "navigation" : "tablist",
1050
1051
  "aria-label": g,
1051
1052
  children: e.map((e, r) => {
1052
1053
  let i = r === x, a = /* @__PURE__ */ d(l, { children: [
1053
1054
  e.icon ? /* @__PURE__ */ u("span", {
1054
- className: H.icon,
1055
+ className: V.icon,
1055
1056
  "aria-hidden": "true",
1056
- children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Ee[c] }) : e.icon
1057
+ children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: De[c] }) : e.icon
1057
1058
  }) : null,
1058
1059
  e.label,
1059
1060
  e.badge != null && e.badge !== !1 ? /* @__PURE__ */ u("span", {
1060
- className: H.badge,
1061
+ className: e.badgeTone === "info" ? `${V.badge} ${V.badgeInfo}` : V.badge,
1061
1062
  title: e.badgeTitle,
1062
1063
  children: e.badge
1063
1064
  }) : null
1064
- ] }), s = `${H.tab} ${H[c]} ${i ? H.active : ""}`;
1065
+ ] }), s = `${V.tab} ${V[c]} ${i ? V.active : ""}`;
1065
1066
  if (e.href !== void 0) {
1066
1067
  let t = {
1067
1068
  id: `${b}-tab-${e.value}`,
@@ -1103,7 +1104,7 @@ function De({ items: e, value: r, onValueChange: o, size: c = "default", variant
1103
1104
  })
1104
1105
  });
1105
1106
  }
1106
- var U = {
1107
+ var H = {
1107
1108
  root: "_root_wrjxq_1",
1108
1109
  micro: "_micro_wrjxq_2",
1109
1110
  default: "_default_wrjxq_3",
@@ -1123,106 +1124,106 @@ var U = {
1123
1124
  };
1124
1125
  //#endregion
1125
1126
  //#region src/components/Breadcrumbs/Breadcrumbs.tsx
1126
- function Oe(t) {
1127
+ function ke(t) {
1127
1128
  return e.isValidElement(t) ? e.cloneElement(t, {
1128
1129
  size: "14px",
1129
1130
  color: "currentColor"
1130
1131
  }) : t;
1131
1132
  }
1132
- var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1133
+ var Ae = "\0action", je = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1133
1134
  size: 14,
1134
1135
  color: "currentColor"
1135
1136
  }), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
1136
1137
  "aria-label": o,
1137
- className: `${U.root} ${U[t]} ${n === "truncate" ? U.truncate : ""} ${r}`,
1138
+ className: `${H.root} ${H[t]} ${n === "truncate" ? H.truncate : ""} ${r}`,
1138
1139
  children: /* @__PURE__ */ u("ol", {
1139
- className: U.list,
1140
+ className: H.list,
1140
1141
  children: e.map((t, r) => /* @__PURE__ */ d("li", {
1141
- className: U.item,
1142
+ className: H.item,
1142
1143
  children: [r > 0 && /* @__PURE__ */ u("span", {
1143
- className: U.separator,
1144
+ className: H.separator,
1144
1145
  "aria-hidden": "true",
1145
1146
  children: i
1146
1147
  }), /* @__PURE__ */ d("div", {
1147
- className: `${U.step} ${t.switcher ? U.switchable : ""}`,
1148
+ className: `${H.step} ${t.switcher ? H.switchable : ""}`,
1148
1149
  children: [t.href ? (() => {
1149
1150
  let i = {
1150
- className: U.label,
1151
+ className: H.label,
1151
1152
  href: t.href,
1152
1153
  title: n === "truncate" ? t.label : void 0,
1153
1154
  onClick: t.onClick,
1154
1155
  "aria-current": r === e.length - 1 ? "page" : void 0,
1155
1156
  children: /* @__PURE__ */ d(l, { children: [t.icon && /* @__PURE__ */ u("span", {
1156
- className: U.icon,
1157
+ className: H.icon,
1157
1158
  "aria-hidden": "true",
1158
- children: Oe(t.icon)
1159
+ children: ke(t.icon)
1159
1160
  }), /* @__PURE__ */ u("span", {
1160
- className: U.text,
1161
+ className: H.text,
1161
1162
  children: t.label
1162
1163
  })] })
1163
1164
  };
1164
1165
  return a ? a(t, i) : /* @__PURE__ */ u("a", { ...i });
1165
1166
  })() : /* @__PURE__ */ d("span", {
1166
- className: U.label,
1167
+ className: H.label,
1167
1168
  title: n === "truncate" ? t.label : void 0,
1168
1169
  "aria-current": r === e.length - 1 ? "page" : void 0,
1169
1170
  children: [t.icon && /* @__PURE__ */ u("span", {
1170
- className: U.icon,
1171
+ className: H.icon,
1171
1172
  "aria-hidden": "true",
1172
- children: Oe(t.icon)
1173
+ children: ke(t.icon)
1173
1174
  }), /* @__PURE__ */ u("span", {
1174
- className: U.text,
1175
+ className: H.text,
1175
1176
  children: t.label
1176
1177
  })]
1177
1178
  }), t.switcher && /* @__PURE__ */ d(D.Root, {
1178
1179
  value: t.switcher.value,
1179
- onValueChange: (e) => e === ke ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1180
+ onValueChange: (e) => e === Ae ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1180
1181
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1181
1182
  children: [/* @__PURE__ */ u(D.Trigger, {
1182
- className: U.trigger,
1183
+ className: H.trigger,
1183
1184
  "aria-label": `${t.switcher.label}: ${t.label}`,
1184
1185
  children: /* @__PURE__ */ u(D.Icon, {
1185
1186
  "aria-hidden": "true",
1186
- className: U.icon,
1187
+ className: H.icon,
1187
1188
  children: /* @__PURE__ */ u(y, {
1188
1189
  size: 14,
1189
1190
  color: "currentColor"
1190
1191
  })
1191
1192
  })
1192
1193
  }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
1193
- className: `${B.content} ${U.menu}`,
1194
+ className: `${z.content} ${H.menu}`,
1194
1195
  position: "popper",
1195
1196
  align: "end",
1196
1197
  sideOffset: 4,
1197
1198
  collisionPadding: 8,
1198
1199
  children: /* @__PURE__ */ d(D.Viewport, {
1199
- className: B.viewport,
1200
+ className: z.viewport,
1200
1201
  children: [t.switcher.options.map((e) => /* @__PURE__ */ d(D.Item, {
1201
1202
  value: e.value,
1202
- className: B.item,
1203
+ className: z.item,
1203
1204
  textValue: e.label,
1204
1205
  children: [/* @__PURE__ */ d("span", {
1205
- className: U.option,
1206
+ className: H.option,
1206
1207
  children: [e.icon && /* @__PURE__ */ u("span", {
1207
- className: U.icon,
1208
+ className: H.icon,
1208
1209
  "aria-hidden": "true",
1209
1210
  children: e.icon
1210
1211
  }), /* @__PURE__ */ u(D.ItemText, { children: e.label })]
1211
1212
  }), /* @__PURE__ */ u(D.ItemIndicator, {
1212
- className: B.itemIndicator,
1213
+ className: z.itemIndicator,
1213
1214
  children: /* @__PURE__ */ u(m, {
1214
1215
  size: 12,
1215
1216
  color: "currentColor"
1216
1217
  })
1217
1218
  })]
1218
- }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: U.menuDivider }), /* @__PURE__ */ u(D.Item, {
1219
- value: ke,
1220
- className: B.item,
1219
+ }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: H.menuDivider }), /* @__PURE__ */ u(D.Item, {
1220
+ value: Ae,
1221
+ className: z.item,
1221
1222
  textValue: t.switcher.action.label,
1222
1223
  children: /* @__PURE__ */ d("span", {
1223
- className: U.option,
1224
+ className: H.option,
1224
1225
  children: [/* @__PURE__ */ u("span", {
1225
- className: U.icon,
1226
+ className: H.icon,
1226
1227
  "aria-hidden": "true",
1227
1228
  children: /* @__PURE__ */ u(x, {
1228
1229
  size: 14,
@@ -1237,7 +1238,7 @@ var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap"
1237
1238
  })]
1238
1239
  }, t.id))
1239
1240
  })
1240
- }), je = {
1241
+ }), Me = {
1241
1242
  wrapper: "_wrapper_1a9jo_1",
1242
1243
  track: "_track_1a9jo_8",
1243
1244
  fill: "_fill_1a9jo_36",
@@ -1245,42 +1246,42 @@ var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap"
1245
1246
  };
1246
1247
  //#endregion
1247
1248
  //#region src/components/ProgressBar/ProgressBar.tsx
1248
- function Me({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1249
+ function Ne({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1249
1250
  let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
1250
1251
  return /* @__PURE__ */ d("div", {
1251
- className: `${je.wrapper} ${r}`,
1252
+ className: `${Me.wrapper} ${r}`,
1252
1253
  role: "progressbar",
1253
1254
  "aria-valuenow": i,
1254
1255
  "aria-valuemin": 0,
1255
1256
  "aria-valuemax": 100,
1256
1257
  children: [/* @__PURE__ */ u("div", {
1257
- className: je.track,
1258
+ className: Me.track,
1258
1259
  children: /* @__PURE__ */ u("div", {
1259
- className: je.fill,
1260
+ className: Me.fill,
1260
1261
  style: {
1261
1262
  width: `${i}%`,
1262
1263
  backgroundColor: o
1263
1264
  }
1264
1265
  })
1265
1266
  }), t && /* @__PURE__ */ u("span", {
1266
- className: je.label,
1267
+ className: Me.label,
1267
1268
  "aria-hidden": "true",
1268
1269
  children: a
1269
1270
  })]
1270
1271
  });
1271
1272
  }
1272
- var Ne = {
1273
+ var Pe = {
1273
1274
  chip: "_chip_iaxe0_1",
1274
1275
  large: "_large_iaxe0_14"
1275
1276
  };
1276
1277
  //#endregion
1277
1278
  //#region src/components/Chip/Chip.tsx
1278
- function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1279
+ function Fe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1279
1280
  let s = {};
1280
1281
  return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ d("span", {
1281
1282
  className: [
1282
- Ne.chip,
1283
- o === "large" && Ne.large,
1283
+ Pe.chip,
1284
+ o === "large" && Pe.large,
1284
1285
  i
1285
1286
  ].filter(Boolean).join(" "),
1286
1287
  style: s,
@@ -1290,7 +1291,7 @@ function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size:
1290
1291
  }), t]
1291
1292
  });
1292
1293
  }
1293
- var W = {
1294
+ var U = {
1294
1295
  root: "_root_ok48u_3",
1295
1296
  icon: "_icon_ok48u_16",
1296
1297
  body: "_body_ok48u_17",
@@ -1301,63 +1302,63 @@ var W = {
1301
1302
  success: "_success_ok48u_24",
1302
1303
  warning: "_warning_ok48u_25",
1303
1304
  destructive: "_destructive_ok48u_26"
1304
- }, Fe = {
1305
+ }, Ie = {
1305
1306
  success: /* @__PURE__ */ u(m, {}),
1306
1307
  warning: /* @__PURE__ */ u(w, {}),
1307
1308
  destructive: /* @__PURE__ */ u(w, {})
1308
1309
  };
1309
- function Ie(t) {
1310
+ function Le(t) {
1310
1311
  return e.isValidElement(t) ? e.cloneElement(t, {
1311
1312
  size: 16,
1312
1313
  color: "currentColor"
1313
1314
  }) : t;
1314
1315
  }
1315
- var Le = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1316
- let a = t === void 0 ? Fe[e] : t;
1316
+ var Re = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1317
+ let a = t === void 0 ? Ie[e] : t;
1317
1318
  return /* @__PURE__ */ d("div", {
1318
1319
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
1319
- className: `${W.root} ${W[e]} ${n}`,
1320
+ className: `${U.root} ${U[e]} ${n}`,
1320
1321
  children: [a && /* @__PURE__ */ u("span", {
1321
- className: W.icon,
1322
+ className: U.icon,
1322
1323
  "aria-hidden": "true",
1323
- children: Ie(a)
1324
+ children: Le(a)
1324
1325
  }), /* @__PURE__ */ u("div", {
1325
- className: W.body,
1326
+ className: U.body,
1326
1327
  children: r
1327
1328
  })]
1328
1329
  });
1329
- }, Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1330
- className: `${W.title} ${t}`,
1330
+ }, ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1331
+ className: `${U.title} ${t}`,
1331
1332
  children: e
1332
- }), ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1333
- className: `${W.description} ${t}`,
1333
+ }), Be = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1334
+ className: `${U.description} ${t}`,
1334
1335
  children: e
1335
- }), Be = {
1336
+ }), Ve = {
1336
1337
  root: "_root_1aak8_10",
1337
1338
  main: "_main_1aak8_33",
1338
1339
  aside: "_aside_1aak8_34",
1339
1340
  message: "_message_1aak8_41"
1340
- }, Ve = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ d("div", {
1341
+ }, He = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ d("div", {
1341
1342
  role: "region",
1342
1343
  "aria-label": a,
1343
- className: `${Be.root} ${i}`,
1344
+ className: `${Ve.root} ${i}`,
1344
1345
  children: [/* @__PURE__ */ d("div", {
1345
- className: Be.main,
1346
+ className: Ve.main,
1346
1347
  children: [r, t && /* @__PURE__ */ u("span", {
1347
- className: Be.message,
1348
+ className: Ve.message,
1348
1349
  children: t
1349
1350
  })]
1350
1351
  }), n && /* @__PURE__ */ u("div", {
1351
- className: Be.aside,
1352
+ className: Ve.aside,
1352
1353
  children: n
1353
1354
  })]
1354
- }) : null, He = {
1355
+ }) : null, Ue = {
1355
1356
  tooltip: "_tooltip_1de7z_1",
1356
1357
  arrow: "_arrow_1de7z_13"
1357
1358
  };
1358
1359
  //#endregion
1359
1360
  //#region src/components/Tooltip/Tooltip.tsx
1360
- function Ue({ content: e, position: t = "top", children: n, className: r }) {
1361
+ function We({ content: e, position: t = "top", children: n, className: r }) {
1361
1362
  return /* @__PURE__ */ u(k.Provider, {
1362
1363
  delayDuration: 80,
1363
1364
  children: /* @__PURE__ */ d(k.Root, { children: [/* @__PURE__ */ u(k.Trigger, {
@@ -1366,107 +1367,118 @@ function Ue({ content: e, position: t = "top", children: n, className: r }) {
1366
1367
  }), /* @__PURE__ */ u(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
1367
1368
  side: t,
1368
1369
  sideOffset: 7,
1369
- className: [He.tooltip, r].filter(Boolean).join(" "),
1370
- children: [e, /* @__PURE__ */ u(k.Arrow, { className: He.arrow })]
1370
+ className: [Ue.tooltip, r].filter(Boolean).join(" "),
1371
+ children: [e, /* @__PURE__ */ u(k.Arrow, { className: Ue.arrow })]
1371
1372
  }) })] })
1372
1373
  });
1373
1374
  }
1374
- var G = {
1375
- wrapper: "_wrapper_1w5vh_1",
1376
- chart: "_chart_1w5vh_8",
1377
- svg: "_svg_1w5vh_33",
1378
- tooltip: "_tooltip_1w5vh_39",
1379
- tooltipLabel: "_tooltipLabel_1w5vh_49",
1380
- tooltipRow: "_tooltipRow_1w5vh_57",
1381
- tooltipDot: "_tooltipDot_1w5vh_64",
1382
- tooltipName: "_tooltipName_1w5vh_70",
1383
- tooltipValue: "_tooltipValue_1w5vh_76",
1384
- legend: "_legend_1w5vh_83",
1385
- legendItem: "_legendItem_1w5vh_90",
1386
- legendMark: "_legendMark_1w5vh_96",
1387
- legendLabel: "_legendLabel_1w5vh_102"
1388
- }, We = "var(--lv4)", K = 12, Ge = 20, Ke = 8, qe = 28, q = 20;
1389
- function Je(e) {
1375
+ var W = {
1376
+ wrapper: "_wrapper_1wrxy_1",
1377
+ chart: "_chart_1wrxy_8",
1378
+ svg: "_svg_1wrxy_33",
1379
+ tooltip: "_tooltip_1wrxy_41",
1380
+ tooltipLabel: "_tooltipLabel_1wrxy_51",
1381
+ tooltipRow: "_tooltipRow_1wrxy_59",
1382
+ tooltipDot: "_tooltipDot_1wrxy_66",
1383
+ tooltipName: "_tooltipName_1wrxy_72",
1384
+ tooltipValue: "_tooltipValue_1wrxy_78",
1385
+ legend: "_legend_1wrxy_85",
1386
+ legendItem: "_legendItem_1wrxy_92",
1387
+ legendMark: "_legendMark_1wrxy_98",
1388
+ legendLabel: "_legendLabel_1wrxy_104",
1389
+ marker: "_marker_1wrxy_111",
1390
+ tooltipMarker: "_tooltipMarker_1wrxy_115",
1391
+ markerDot: "_markerDot_1wrxy_119"
1392
+ }, Ge = "var(--lv4)", G = 12, Ke = 20, qe = 8, Je = 28, K = 20;
1393
+ function Ye(e) {
1390
1394
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
1391
1395
  }
1392
- function Ye({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l }) {
1393
- let f = s(null), [p, m] = c(0), [h, g] = c(null);
1396
+ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l, markers: f }) {
1397
+ let p = s(null), [m, h] = c(0), [g, _] = c(null);
1394
1398
  i(() => {
1395
- let e = f.current;
1399
+ let e = p.current;
1396
1400
  if (!e) return;
1397
- let t = new ResizeObserver(([e]) => m(e.contentRect.width));
1398
- return t.observe(e), m(e.clientWidth), () => t.disconnect();
1401
+ let t = new ResizeObserver(([e]) => h(e.contentRect.width));
1402
+ return t.observe(e), h(e.clientWidth), () => t.disconnect();
1399
1403
  }, []);
1400
- let _ = t?.length ? qe : Ke, v = Math.max(p - q - Ge, 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) => {
1401
- if (w === 0) return;
1404
+ let v = t?.length ? Je : qe, y = Math.max(m - K - Ke, 0), b = Math.max(a - G - 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 = (() => {
1405
+ if (!t || t.length <= 1 || y <= 0) return 1;
1406
+ let e = Math.max(...t.map((e) => e.length)) * 6 + 12, n = Math.max(Math.floor(y / e), 1);
1407
+ return Math.ceil(t.length / n);
1408
+ })(), D = T <= 1 || y / (T - 1) >= 12, O = (e) => G + (1 - (e - C) / w) * b, k = (e) => T <= 1 ? K + y / 2 : K + e / (T - 1) * y, A = r((e) => {
1409
+ if (T === 0) return;
1402
1410
  let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
1403
1411
  if (n === "line") {
1404
- let e = Math.round((r - q) / v * (w - 1));
1405
- g({
1406
- index: Math.max(0, Math.min(w - 1, e)),
1412
+ let e = Math.round((r - K) / y * (T - 1));
1413
+ _({
1414
+ index: Math.max(0, Math.min(T - 1, e)),
1407
1415
  x: r,
1408
1416
  y: i
1409
1417
  });
1410
1418
  } else {
1411
- let e = v / w, t = Math.floor((r - q) / e);
1412
- g({
1413
- index: Math.max(0, Math.min(w - 1, t)),
1419
+ let e = y / T, t = Math.floor((r - K) / e);
1420
+ _({
1421
+ index: Math.max(0, Math.min(T - 1, t)),
1414
1422
  x: r,
1415
1423
  y: i
1416
1424
  });
1417
1425
  }
1418
1426
  }, [
1419
1427
  n,
1420
- w,
1421
- v
1422
- ]), O = r(() => g(null), []), k = /* @__PURE__ */ u("line", {
1423
- x1: q,
1424
- y1: K + y * .5,
1425
- x2: q + v,
1426
- y2: K + y * .5,
1428
+ T,
1429
+ y
1430
+ ]), j = r((e) => {
1431
+ e.pointerType === "mouse" && _(null);
1432
+ }, []), ee = /* @__PURE__ */ u("line", {
1433
+ x1: K,
1434
+ y1: G + b * .5,
1435
+ x2: K + y,
1436
+ y2: G + b * .5,
1427
1437
  stroke: "var(--chart-midline)",
1428
1438
  strokeWidth: "0.5"
1429
- }), A = /* @__PURE__ */ u("line", {
1430
- x1: q,
1431
- y1: K + y,
1432
- x2: q + v,
1433
- y2: K + y,
1439
+ }), te = /* @__PURE__ */ u("line", {
1440
+ x1: K,
1441
+ y1: G + b,
1442
+ x2: K + y,
1443
+ y2: G + b,
1434
1444
  stroke: "var(--chart-baseline)",
1435
1445
  strokeWidth: "1"
1436
- }), j = h && n === "bar" ? (() => {
1437
- let e = v / w;
1446
+ }), ne = g && n === "bar" ? (() => {
1447
+ let e = y / T;
1438
1448
  return /* @__PURE__ */ u("rect", {
1439
- x: q + h.index * e,
1440
- y: K,
1449
+ x: K + g.index * e,
1450
+ y: G,
1441
1451
  width: e,
1442
- height: y,
1452
+ height: b,
1443
1453
  fill: "var(--chart-column-hover)"
1444
1454
  });
1445
- })() : null, M = () => e.map((e, t) => {
1455
+ })() : null, re = () => e.map((e, t) => {
1446
1456
  if (!e.data.length) return null;
1447
- let n = e.color ?? We;
1457
+ let n = e.color ?? Ge;
1448
1458
  return /* @__PURE__ */ d("g", { children: [/* @__PURE__ */ u("polyline", {
1449
- points: e.data.map((e, t) => `${E(t).toFixed(2)},${T(e).toFixed(2)}`).join(" "),
1459
+ points: e.data.map((e, t) => `${k(t).toFixed(2)},${O(e).toFixed(2)}`).join(" "),
1450
1460
  fill: "none",
1451
1461
  stroke: n,
1452
1462
  strokeWidth: "1",
1453
1463
  strokeLinejoin: "round",
1454
1464
  strokeLinecap: "round"
1455
1465
  }), e.data.map((e, t) => {
1456
- let r = h?.index === t ? 10 : 5, i = r / 2;
1466
+ let r = g?.index === t;
1467
+ if (!r && !D) return null;
1468
+ let i = r ? D ? 10 : 7 : 5, a = i / 2;
1457
1469
  return /* @__PURE__ */ u("rect", {
1458
- x: E(t) - i,
1459
- y: T(e) - i,
1460
- width: r,
1461
- height: r,
1470
+ x: k(t) - a,
1471
+ y: O(e) - a,
1472
+ width: i,
1473
+ height: i,
1462
1474
  fill: n
1463
1475
  }, t);
1464
1476
  })] }, t);
1465
- }), ee = () => {
1466
- if (!w) return null;
1467
- let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = K + y;
1477
+ }), ie = () => {
1478
+ if (!T) return null;
1479
+ let t = e.length, n = y / T, r = Math.max((n - 2 * (t + 1)) / t, 2), i = G + b;
1468
1480
  return e.map((e, t) => e.data.map((a, o) => {
1469
- let s = q + o * n + 2 + t * (r + 2), c = T(a);
1481
+ let s = K + o * n + 2 + t * (r + 2), c = O(a);
1470
1482
  return /* @__PURE__ */ u("rect", {
1471
1483
  x: s,
1472
1484
  y: c,
@@ -1475,97 +1487,186 @@ function Ye({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1475
1487
  fill: e.color ?? "var(--chart-bar)"
1476
1488
  }, `${t}-${o}`);
1477
1489
  }));
1478
- }, te = () => {
1490
+ }, M = () => {
1479
1491
  if (!t?.length) return null;
1480
- let e = K + y + 18;
1481
- return t.map((t, r) => /* @__PURE__ */ u("text", {
1482
- x: n === "line" ? E(r) : q + (r + .5) * (v / w),
1492
+ let e = G + b + 18, r = t.length - 1;
1493
+ return t.map((t, i) => (r - i) % E === 0 ? /* @__PURE__ */ u("text", {
1494
+ x: n === "line" ? k(i) : K + (i + .5) * (y / T),
1483
1495
  y: e,
1484
- textAnchor: "middle",
1496
+ textAnchor: n !== "line" || r === 0 ? "middle" : i === 0 ? "start" : i === r ? "end" : "middle",
1485
1497
  fill: "var(--lv4)",
1486
1498
  style: { font: "var(--text-2xs)" },
1487
1499
  children: t
1488
- }, r));
1489
- }, ne = h && n === "line" ? /* @__PURE__ */ u("line", {
1490
- x1: E(h.index),
1491
- y1: K,
1492
- x2: E(h.index),
1493
- y2: K + y,
1500
+ }, i) : null);
1501
+ }, N = g && n === "line" ? /* @__PURE__ */ u("line", {
1502
+ x1: k(g.index),
1503
+ y1: G,
1504
+ x2: k(g.index),
1505
+ y2: G + b,
1494
1506
  stroke: "var(--chart-crosshair)",
1495
1507
  strokeWidth: "1",
1496
1508
  strokeDasharray: "3 3"
1497
- }) : null, N = h ? (() => {
1498
- let n = t?.[h.index] ?? String(h.index + 1), r = Math.min(Math.max(h.x, 60), p - 60);
1509
+ }) : null, ae = g ? (() => {
1510
+ let n = t?.[g.index] ?? String(g.index + 1), r = Math.min(Math.max(g.x, 60), m - 60);
1499
1511
  return /* @__PURE__ */ d("div", {
1500
- className: G.tooltip,
1501
- style: h.y < 80 ? {
1512
+ className: W.tooltip,
1513
+ style: g.y < 80 ? {
1502
1514
  left: r,
1503
- top: h.y + 12,
1515
+ top: g.y + 12,
1504
1516
  transform: "translate(-50%, 0)"
1505
1517
  } : {
1506
1518
  left: r,
1507
- top: h.y - 8,
1519
+ top: g.y - 8,
1508
1520
  transform: "translate(-50%, -100%)"
1509
1521
  },
1510
- children: [/* @__PURE__ */ u("div", {
1511
- className: G.tooltipLabel,
1512
- children: n
1513
- }), e.map((e, t) => /* @__PURE__ */ d("div", {
1514
- className: G.tooltipRow,
1515
- children: [
1516
- /* @__PURE__ */ u("span", {
1517
- className: G.tooltipDot,
1518
- style: { background: e.color ?? We }
1519
- }),
1520
- /* @__PURE__ */ u("span", {
1521
- className: G.tooltipName,
1522
+ children: [
1523
+ /* @__PURE__ */ u("div", {
1524
+ className: W.tooltipLabel,
1525
+ children: n
1526
+ }),
1527
+ e.map((e, t) => /* @__PURE__ */ d("div", {
1528
+ className: W.tooltipRow,
1529
+ children: [
1530
+ /* @__PURE__ */ u("span", {
1531
+ className: W.tooltipDot,
1532
+ style: { background: e.color ?? Ge }
1533
+ }),
1534
+ /* @__PURE__ */ u("span", {
1535
+ className: W.tooltipName,
1536
+ children: e.label
1537
+ }),
1538
+ /* @__PURE__ */ u("span", {
1539
+ className: W.tooltipValue,
1540
+ children: Ye(e.data[g.index] ?? 0)
1541
+ })
1542
+ ]
1543
+ }, t)),
1544
+ f?.filter((e) => e.index === g.index).map((e, t) => /* @__PURE__ */ d("div", {
1545
+ className: `${W.tooltipRow} ${W.tooltipMarker}`,
1546
+ children: [/* @__PURE__ */ u("span", { className: `${W.tooltipDot} ${W.markerDot}` }), /* @__PURE__ */ u("span", {
1547
+ className: W.tooltipName,
1522
1548
  children: e.label
1523
- }),
1524
- /* @__PURE__ */ u("span", {
1525
- className: G.tooltipValue,
1526
- children: Je(e.data[h.index] ?? 0)
1527
- })
1528
- ]
1529
- }, t))]
1549
+ })]
1550
+ }, `m${t}`))
1551
+ ]
1530
1552
  });
1531
1553
  })() : null;
1532
1554
  return /* @__PURE__ */ d("div", {
1533
- className: [G.wrapper, l].filter(Boolean).join(" "),
1555
+ className: [W.wrapper, l].filter(Boolean).join(" "),
1534
1556
  children: [/* @__PURE__ */ d("div", {
1535
- ref: f,
1536
- className: G.chart,
1557
+ ref: p,
1558
+ className: W.chart,
1537
1559
  style: { height: a },
1538
- children: [p > 0 && /* @__PURE__ */ d("svg", {
1539
- width: p,
1560
+ children: [m > 0 && /* @__PURE__ */ d("svg", {
1561
+ width: m,
1540
1562
  height: a,
1541
- className: G.svg,
1542
- onMouseMove: D,
1543
- onMouseLeave: O,
1563
+ className: W.svg,
1564
+ onPointerMove: A,
1565
+ onPointerDown: A,
1566
+ onPointerLeave: j,
1544
1567
  children: [
1545
- k,
1546
- A,
1547
- j,
1568
+ ee,
1569
+ te,
1548
1570
  ne,
1549
- n === "line" ? M() : ee(),
1550
- te()
1571
+ N,
1572
+ n === "line" ? re() : ie(),
1573
+ f && T > 0 && [...new Set(f.map((e) => e.index).filter((e) => e >= 0 && e < T))].map((e) => {
1574
+ let t = n === "line" ? k(e) : K + (e + .5) * (y / T);
1575
+ return /* @__PURE__ */ u("rect", {
1576
+ className: W.marker,
1577
+ x: t - 3,
1578
+ y: G + b - 3,
1579
+ width: 6,
1580
+ height: 6
1581
+ }, `m${e}`);
1582
+ }),
1583
+ M()
1551
1584
  ]
1552
- }), N]
1585
+ }), ae]
1553
1586
  }), o && e.length > 1 && /* @__PURE__ */ u("div", {
1554
- className: G.legend,
1587
+ className: W.legend,
1555
1588
  children: e.map((e, t) => /* @__PURE__ */ d("div", {
1556
- className: G.legendItem,
1589
+ className: W.legendItem,
1557
1590
  children: [/* @__PURE__ */ u("div", {
1558
- className: G.legendMark,
1559
- style: { background: e.color ?? We }
1591
+ className: W.legendMark,
1592
+ style: { background: e.color ?? Ge }
1560
1593
  }), /* @__PURE__ */ u("span", {
1561
- className: G.legendLabel,
1594
+ className: W.legendLabel,
1562
1595
  children: e.label
1563
1596
  })]
1564
1597
  }, t))
1565
1598
  })]
1566
1599
  });
1567
1600
  }
1568
- var J = {
1601
+ var q = {
1602
+ sparkline: "_sparkline_fqcg9_4",
1603
+ line: "_line_fqcg9_12",
1604
+ partial: "_partial_fqcg9_22",
1605
+ fill: "_fill_fqcg9_26",
1606
+ bars: "_bars_fqcg9_34",
1607
+ bar: "_bar_fqcg9_34",
1608
+ baseline: "_baseline_fqcg9_48"
1609
+ }, Ze = 100, J = 100;
1610
+ function Qe({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: a = !1, baseline: o = !1, lastIsPartial: s = !1, gap: c = 1, ariaLabel: f, className: p }) {
1611
+ let m = e.filter((e) => Number.isFinite(e)), h = f == null, g = m.length ? Math.max(...m) : 0, _ = m.length ? Math.min(...m) : 0, v = g - _ || 1, y = J - 12, b = (e) => 94 - (e - _) / v * y, x = (e) => /* @__PURE__ */ d("svg", {
1612
+ className: [q.sparkline, p].filter(Boolean).join(" "),
1613
+ style: {
1614
+ width: n,
1615
+ height: r,
1616
+ color: i
1617
+ },
1618
+ viewBox: `0 0 ${Ze} ${J}`,
1619
+ preserveAspectRatio: "none",
1620
+ role: h ? void 0 : "img",
1621
+ "aria-label": f,
1622
+ "aria-hidden": h || void 0,
1623
+ focusable: "false",
1624
+ children: [e, o && /* @__PURE__ */ u("line", {
1625
+ x1: "0",
1626
+ y1: J - .5,
1627
+ x2: Ze,
1628
+ y2: J - .5,
1629
+ className: q.baseline,
1630
+ vectorEffect: "non-scaling-stroke"
1631
+ })]
1632
+ });
1633
+ if (m.length < 2) return x(null);
1634
+ if (t === "bar") return /* @__PURE__ */ u("div", {
1635
+ className: [q.bars, p].filter(Boolean).join(" "),
1636
+ style: {
1637
+ width: n,
1638
+ height: r,
1639
+ color: i,
1640
+ gap: c,
1641
+ borderBottomWidth: +!!o
1642
+ },
1643
+ role: h ? void 0 : "img",
1644
+ "aria-label": f,
1645
+ "aria-hidden": h || void 0,
1646
+ children: m.map((e, t) => /* @__PURE__ */ u("span", {
1647
+ className: q.bar,
1648
+ style: { height: `${Math.max((e - _) / v * 100, 2)}%` }
1649
+ }, t))
1650
+ });
1651
+ let S = Ze / (m.length - 1), C = (e, t) => m.slice(e, e + t).map((t, n) => `${(e + n) * S},${b(t)}`).join(" "), w = C(0, m.length);
1652
+ return x(/* @__PURE__ */ d(l, { children: [a && /* @__PURE__ */ u("polygon", {
1653
+ className: q.fill,
1654
+ points: `0,${J} ${w} ${Ze},${J}`
1655
+ }), s ? /* @__PURE__ */ d(l, { children: [m.length > 2 && /* @__PURE__ */ u("polyline", {
1656
+ className: q.line,
1657
+ points: C(0, m.length - 1),
1658
+ vectorEffect: "non-scaling-stroke"
1659
+ }), /* @__PURE__ */ u("polyline", {
1660
+ className: `${q.line} ${q.partial}`,
1661
+ points: C(m.length - 2, 2),
1662
+ vectorEffect: "non-scaling-stroke"
1663
+ })] }) : /* @__PURE__ */ u("polyline", {
1664
+ className: q.line,
1665
+ points: w,
1666
+ vectorEffect: "non-scaling-stroke"
1667
+ })] }));
1668
+ }
1669
+ var $e = {
1569
1670
  wrapper: "_wrapper_17ws4_1",
1570
1671
  label: "_label_17ws4_7",
1571
1672
  textarea: "_textarea_17ws4_12",
@@ -1574,14 +1675,14 @@ var J = {
1574
1675
  };
1575
1676
  //#endregion
1576
1677
  //#region src/components/Textarea/Textarea.tsx
1577
- function Xe({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1678
+ function et({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1578
1679
  let c = e.useId(), l = a || c, f = `${l}-error`, p = n || !i;
1579
1680
  return /* @__PURE__ */ d("div", {
1580
- className: `${J.wrapper} ${r}`,
1681
+ className: `${$e.wrapper} ${r}`,
1581
1682
  children: [
1582
1683
  t && /* @__PURE__ */ d("label", {
1583
1684
  htmlFor: l,
1584
- className: J.label,
1685
+ className: $e.label,
1585
1686
  children: [t, s.required && /* @__PURE__ */ u("span", {
1586
1687
  "aria-label": "required",
1587
1688
  children: " *"
@@ -1590,14 +1691,14 @@ function Xe({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
1590
1691
  /* @__PURE__ */ u("textarea", {
1591
1692
  id: l,
1592
1693
  rows: o,
1593
- className: `${J.textarea} ${p ? J.error : ""}`,
1694
+ className: `${$e.textarea} ${p ? $e.error : ""}`,
1594
1695
  "aria-invalid": p ? "true" : "false",
1595
1696
  "aria-describedby": n ? f : void 0,
1596
1697
  ...s
1597
1698
  }),
1598
1699
  n && /* @__PURE__ */ u("span", {
1599
1700
  id: f,
1600
- className: J.errorText,
1701
+ className: $e.errorText,
1601
1702
  role: "alert",
1602
1703
  children: n
1603
1704
  })
@@ -1611,7 +1712,7 @@ var Y = {
1611
1712
  description: "_description_xud7c_34",
1612
1713
  close: "_close_xud7c_40",
1613
1714
  srOnly: "_srOnly_xud7c_62"
1614
- }, Ze = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1715
+ }, tt = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1615
1716
  open: n,
1616
1717
  onOpenChange: r,
1617
1718
  children: [e && /* @__PURE__ */ u(A.Trigger, {
@@ -1658,7 +1759,7 @@ var Y = {
1658
1759
  today: "_today_aimna_131",
1659
1760
  selected: "_selected_aimna_136",
1660
1761
  errorText: "_errorText_aimna_142"
1661
- }, Qe = [
1762
+ }, nt = [
1662
1763
  "Mo",
1663
1764
  "Tu",
1664
1765
  "We",
@@ -1666,7 +1767,7 @@ var Y = {
1666
1767
  "Fr",
1667
1768
  "Sa",
1668
1769
  "Su"
1669
- ], $e = [
1770
+ ], rt = [
1670
1771
  "January",
1671
1772
  "February",
1672
1773
  "March",
@@ -1680,20 +1781,20 @@ var Y = {
1680
1781
  "November",
1681
1782
  "December"
1682
1783
  ];
1683
- function Z(e) {
1784
+ function it(e) {
1684
1785
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
1685
1786
  return `${e.getFullYear()}-${t}-${n}`;
1686
1787
  }
1687
- function et(e, t) {
1788
+ function at(e, t) {
1688
1789
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1689
1790
  }
1690
- function tt(e, t) {
1791
+ function ot(e, t) {
1691
1792
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
1692
1793
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
1693
1794
  return r;
1694
1795
  }
1695
- var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = Z }) => {
1696
- 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), M = (e) => {
1796
+ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = it }) => {
1797
+ 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) => {
1697
1798
  if (e) {
1698
1799
  let e = t ?? /* @__PURE__ */ new Date();
1699
1800
  k(e), w(e.getFullYear()), E(e.getMonth());
@@ -1701,9 +1802,9 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1701
1802
  b(e);
1702
1803
  };
1703
1804
  e.useEffect(() => {
1704
- j.current &&= (A.current.get(Z(D))?.focus(), !1);
1805
+ j.current &&= (A.current.get(it(D))?.focus(), !1);
1705
1806
  }, [D]);
1706
- let ee = (e, t) => {
1807
+ let te = (e, t) => {
1707
1808
  let n = new Date(t), r = {
1708
1809
  ArrowLeft: -1,
1709
1810
  ArrowRight: 1,
@@ -1722,13 +1823,13 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1722
1823
  e.useEffect(() => {
1723
1824
  y && t && (w(t.getFullYear()), E(t.getMonth()));
1724
1825
  }, [y]);
1725
- let te = () => {
1826
+ let ne = () => {
1726
1827
  T === 0 ? (E(11), w(C - 1)) : E(T - 1);
1727
- }, ne = () => {
1828
+ }, re = () => {
1728
1829
  T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1729
- }, N = (e) => {
1830
+ }, ie = (e) => {
1730
1831
  n?.(e), b(!1);
1731
- }, P = tt(C, T);
1832
+ }, M = ot(C, T);
1732
1833
  return /* @__PURE__ */ d("div", {
1733
1834
  className: `${X.wrapper} ${l}`,
1734
1835
  children: [
@@ -1739,7 +1840,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1739
1840
  }),
1740
1841
  /* @__PURE__ */ d(O.Root, {
1741
1842
  open: y,
1742
- onOpenChange: M,
1843
+ onOpenChange: ee,
1743
1844
  children: [/* @__PURE__ */ u(O.Trigger, {
1744
1845
  asChild: !0,
1745
1846
  children: /* @__PURE__ */ d("button", {
@@ -1764,7 +1865,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1764
1865
  sideOffset: 5,
1765
1866
  "aria-label": r ? `${r} calendar` : "Choose a date",
1766
1867
  onOpenAutoFocus: (e) => {
1767
- e.preventDefault(), A.current.get(Z(D))?.focus();
1868
+ e.preventDefault(), A.current.get(it(D))?.focus();
1768
1869
  },
1769
1870
  children: [
1770
1871
  /* @__PURE__ */ d("div", {
@@ -1773,7 +1874,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1773
1874
  /* @__PURE__ */ u("button", {
1774
1875
  type: "button",
1775
1876
  className: X.navButton,
1776
- onClick: te,
1877
+ onClick: ne,
1777
1878
  "aria-label": "Previous month",
1778
1879
  children: /* @__PURE__ */ u(g, {
1779
1880
  size: 14,
@@ -1783,7 +1884,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1783
1884
  /* @__PURE__ */ d("span", {
1784
1885
  className: X.monthLabel,
1785
1886
  children: [
1786
- $e[T],
1887
+ rt[T],
1787
1888
  " ",
1788
1889
  C
1789
1890
  ]
@@ -1791,7 +1892,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1791
1892
  /* @__PURE__ */ u("button", {
1792
1893
  type: "button",
1793
1894
  className: X.navButton,
1794
- onClick: ne,
1895
+ onClick: re,
1795
1896
  "aria-label": "Next month",
1796
1897
  children: /* @__PURE__ */ u(_, {
1797
1898
  size: 14,
@@ -1802,15 +1903,15 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1802
1903
  }),
1803
1904
  /* @__PURE__ */ u("div", {
1804
1905
  className: X.weekdays,
1805
- children: Qe.map((e) => /* @__PURE__ */ u("span", {
1906
+ children: nt.map((e) => /* @__PURE__ */ u("span", {
1806
1907
  className: X.weekday,
1807
1908
  children: e
1808
1909
  }, e))
1809
1910
  }),
1810
1911
  /* @__PURE__ */ u("div", {
1811
1912
  className: X.grid,
1812
- children: P.map((e) => {
1813
- let n = e.getMonth() !== T, r = et(e, t), i = et(e, x);
1913
+ children: M.map((e) => {
1914
+ let n = e.getMonth() !== T, r = at(e, t), i = at(e, x);
1814
1915
  return /* @__PURE__ */ u("button", {
1815
1916
  type: "button",
1816
1917
  className: [
@@ -1819,9 +1920,9 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1819
1920
  r ? X.selected : "",
1820
1921
  i && !r ? X.today : ""
1821
1922
  ].filter(Boolean).join(" "),
1822
- onClick: () => N(e),
1923
+ onClick: () => ie(e),
1823
1924
  ref: (t) => {
1824
- t ? A.current.set(Z(e), t) : A.current.delete(Z(e));
1925
+ t ? A.current.set(it(e), t) : A.current.delete(it(e));
1825
1926
  },
1826
1927
  "aria-label": e.toLocaleDateString(void 0, {
1827
1928
  weekday: "long",
@@ -1831,8 +1932,8 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1831
1932
  }),
1832
1933
  "aria-pressed": r,
1833
1934
  "aria-current": i ? "date" : void 0,
1834
- tabIndex: et(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1835
- onKeyDown: (t) => ee(t, e),
1935
+ tabIndex: at(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1936
+ onKeyDown: (t) => te(t, e),
1836
1937
  children: e.getDate()
1837
1938
  }, e.toISOString());
1838
1939
  })
@@ -1848,7 +1949,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1848
1949
  })
1849
1950
  ]
1850
1951
  });
1851
- }, Q = {
1952
+ }, Z = {
1852
1953
  root: "_root_biiv1_1",
1853
1954
  micro: "_micro_biiv1_7",
1854
1955
  default: "_default_biiv1_8",
@@ -1864,13 +1965,13 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1864
1965
  panelTrigger: "_panelTrigger_biiv1_77",
1865
1966
  viewport: "_viewport_biiv1_60",
1866
1967
  content: "_content_biiv1_110"
1867
- }, rt = {
1968
+ }, ct = {
1868
1969
  micro: 14,
1869
1970
  default: 14,
1870
1971
  large: 21
1871
- }, it = e.createContext("default"), at = typeof window > "u" ? e.useEffect : e.useLayoutEffect, ot = 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 }, f) => {
1972
+ }, lt = e.createContext("default"), ut = typeof window > "u" ? e.useEffect : e.useLayoutEffect, dt = 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 }, f) => {
1872
1973
  let p = e.useRef(null), m = e.useRef(!1);
1873
- at(() => {
1974
+ ut(() => {
1874
1975
  let e = p.current;
1875
1976
  if (!e || r !== "trigger") return;
1876
1977
  let t = () => {
@@ -1899,8 +2000,8 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1899
2000
  let h = {
1900
2001
  ...o,
1901
2002
  ...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
1902
- }, g = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
1903
- return /* @__PURE__ */ u(it.Provider, {
2003
+ }, g = r === "trigger" ? Z.panelTrigger : r === "end" ? Z.alignEnd : "";
2004
+ return /* @__PURE__ */ u(lt.Provider, {
1904
2005
  value: t,
1905
2006
  children: /* @__PURE__ */ d(j.Root, {
1906
2007
  ...l,
@@ -1909,68 +2010,68 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1909
2010
  },
1910
2011
  "aria-label": c,
1911
2012
  style: h,
1912
- className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${g} ${a}`,
2013
+ className: `${Z.root} ${Z[t]} ${n === "end" ? Z.alignList : ""} ${g} ${a}`,
1913
2014
  children: [s, /* @__PURE__ */ u("div", {
1914
- className: Q.viewportPosition,
1915
- children: /* @__PURE__ */ u(j.Viewport, { className: Q.viewport })
2015
+ className: Z.viewportPosition,
2016
+ children: /* @__PURE__ */ u(j.Viewport, { className: Z.viewport })
1916
2017
  })]
1917
2018
  })
1918
2019
  });
1919
2020
  });
1920
- ot.displayName = "NavigationMenu";
1921
- var st = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
2021
+ dt.displayName = "NavigationMenu";
2022
+ var ft = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
1922
2023
  ...t,
1923
2024
  ref: n,
1924
- className: `${Q.list} ${e}`
2025
+ className: `${Z.list} ${e}`
1925
2026
  }));
1926
- st.displayName = "NavigationMenuList";
1927
- var ct = j.Item;
1928
- function lt({ icon: t }) {
1929
- let n = e.useContext(it);
2027
+ ft.displayName = "NavigationMenuList";
2028
+ var pt = j.Item;
2029
+ function mt({ icon: t }) {
2030
+ let n = e.useContext(lt);
1930
2031
  return t ? /* @__PURE__ */ u("span", {
1931
- className: Q.icon,
2032
+ className: Z.icon,
1932
2033
  "aria-hidden": "true",
1933
2034
  children: e.cloneElement(t, {
1934
- size: rt[n],
2035
+ size: ct[n],
1935
2036
  color: "currentColor"
1936
2037
  })
1937
2038
  }) : null;
1938
2039
  }
1939
- var ut = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
1940
- let o = e.useContext(it);
2040
+ var ht = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
2041
+ let o = e.useContext(lt);
1941
2042
  return /* @__PURE__ */ d(j.Trigger, {
1942
2043
  ...i,
1943
2044
  ref: a,
1944
- className: `${Q.control} ${t}`,
2045
+ className: `${Z.control} ${t}`,
1945
2046
  children: [
1946
- /* @__PURE__ */ u(lt, { icon: n }),
2047
+ /* @__PURE__ */ u(mt, { icon: n }),
1947
2048
  r,
1948
2049
  /* @__PURE__ */ u("span", {
1949
- className: Q.caret,
2050
+ className: Z.caret,
1950
2051
  "aria-hidden": "true",
1951
2052
  children: /* @__PURE__ */ u(h, {
1952
- size: rt[o],
2053
+ size: ct[o],
1953
2054
  color: "currentColor"
1954
2055
  })
1955
2056
  })
1956
2057
  ]
1957
2058
  });
1958
2059
  });
1959
- ut.displayName = "NavigationMenuTrigger";
1960
- var dt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
2060
+ ht.displayName = "NavigationMenuTrigger";
2061
+ var gt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
1961
2062
  ...t,
1962
2063
  ref: n,
1963
- className: `${Q.content} ${e}`
2064
+ className: `${Z.content} ${e}`
1964
2065
  }));
1965
- dt.displayName = "NavigationMenuContent";
1966
- var ft = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
2066
+ gt.displayName = "NavigationMenuContent";
2067
+ var _t = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
1967
2068
  ...i,
1968
2069
  ref: a,
1969
- className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
1970
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(lt, { icon: t }), r] }) : r
2070
+ className: `${e === "navigation" ? Z.control : Z.link} ${n}`,
2071
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(mt, { icon: t }), r] }) : r
1971
2072
  }));
1972
- ft.displayName = "NavigationMenuLink";
1973
- var $ = {
2073
+ _t.displayName = "NavigationMenuLink";
2074
+ var Q = {
1974
2075
  panel: "_panel_1hiss_6",
1975
2076
  header: "_header_1hiss_14",
1976
2077
  thread: "_thread_1hiss_15",
@@ -2001,39 +2102,39 @@ var $ = {
2001
2102
  };
2002
2103
  //#endregion
2003
2104
  //#region src/components/Chat/ChatPanel.tsx
2004
- function pt({ children: e }) {
2105
+ function vt({ children: e }) {
2005
2106
  return /* @__PURE__ */ u("kbd", {
2006
- className: $.kbd,
2107
+ className: Q.kbd,
2007
2108
  children: e
2008
2109
  });
2009
2110
  }
2010
- var mt = /* @__PURE__ */ d(l, { children: [
2011
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(pt, { children: "↵" }), " send"] }),
2012
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(pt, { children: "⇧↵" }), " new line"] }),
2013
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(pt, { children: "esc" }), " close"] })
2111
+ var yt = /* @__PURE__ */ d(l, { children: [
2112
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(vt, { children: "↵" }), " send"] }),
2113
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(vt, { children: "⇧↵" }), " new line"] }),
2114
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(vt, { children: "esc" }), " close"] })
2014
2115
  ] });
2015
- function ht({ header: e, children: t, composer: n, hints: r = mt, className: i = "", threadRef: a, "aria-label": o }) {
2116
+ function bt({ header: e, children: t, composer: n, hints: r = yt, className: i = "", threadRef: a, "aria-label": o }) {
2016
2117
  return /* @__PURE__ */ d("div", {
2017
- className: `${$.panel} ${i}`,
2118
+ className: `${Q.panel} ${i}`,
2018
2119
  "aria-label": o,
2019
2120
  children: [
2020
2121
  e && /* @__PURE__ */ u("div", {
2021
- className: $.header,
2122
+ className: Q.header,
2022
2123
  children: e
2023
2124
  }),
2024
2125
  /* @__PURE__ */ u("div", {
2025
- className: $.thread,
2126
+ className: Q.thread,
2026
2127
  ref: a,
2027
2128
  role: "log",
2028
2129
  "aria-live": "polite",
2029
2130
  children: t
2030
2131
  }),
2031
2132
  n && /* @__PURE__ */ u("div", {
2032
- className: $.footer,
2133
+ className: Q.footer,
2033
2134
  children: n
2034
2135
  }),
2035
2136
  r !== !1 && r && /* @__PURE__ */ u("div", {
2036
- className: $.hints,
2137
+ className: Q.hints,
2037
2138
  children: r
2038
2139
  })
2039
2140
  ]
@@ -2041,39 +2142,39 @@ function ht({ header: e, children: t, composer: n, hints: r = mt, className: i =
2041
2142
  }
2042
2143
  //#endregion
2043
2144
  //#region src/components/Chat/Message.tsx
2044
- function gt({ children: e, className: t = "" }) {
2145
+ function xt({ children: e, className: t = "" }) {
2045
2146
  return /* @__PURE__ */ u("div", {
2046
- className: $.userRow,
2147
+ className: Q.userRow,
2047
2148
  children: /* @__PURE__ */ u("div", {
2048
- className: `${$.userMsg} ${t}`,
2149
+ className: `${Q.userMsg} ${t}`,
2049
2150
  children: e
2050
2151
  })
2051
2152
  });
2052
2153
  }
2053
- function _t({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2154
+ function St({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2054
2155
  return /* @__PURE__ */ d("div", {
2055
- className: `${$.assistant} ${r}`,
2156
+ className: `${Q.assistant} ${r}`,
2056
2157
  children: [/* @__PURE__ */ d("div", {
2057
- className: $.assistantHead,
2158
+ className: Q.assistantHead,
2058
2159
  children: [t === void 0 ? /* @__PURE__ */ u(f, {
2059
2160
  color: "currentColor",
2060
2161
  size: 14
2061
2162
  }) : t, /* @__PURE__ */ u("span", { children: e })]
2062
2163
  }), /* @__PURE__ */ u("div", {
2063
- className: $.assistantBody,
2164
+ className: Q.assistantBody,
2064
2165
  children: n
2065
2166
  })]
2066
2167
  });
2067
2168
  }
2068
2169
  //#endregion
2069
2170
  //#region src/components/Chat/Composer.tsx
2070
- var vt = 18, yt = 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) {
2171
+ var Ct = 18, wt = 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) {
2071
2172
  let x = s(null);
2072
2173
  o(b, () => ({ focus: () => x.current?.focus() }), []), i(() => {
2073
2174
  let e = x.current;
2074
2175
  if (!e) return;
2075
2176
  e.style.height = "auto";
2076
- let t = vt * _ + 12;
2177
+ let t = Ct * _ + 12;
2077
2178
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
2078
2179
  }, [e, _]);
2079
2180
  let S = !c && !m && e.trim().length > 0, w = r(() => {
@@ -2084,11 +2185,11 @@ var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2084
2185
  e
2085
2186
  ]);
2086
2187
  return /* @__PURE__ */ d("div", {
2087
- className: `${$.composer} ${v}`,
2188
+ className: `${Q.composer} ${v}`,
2088
2189
  children: [/* @__PURE__ */ d("div", {
2089
- className: $.composerField,
2190
+ className: Q.composerField,
2090
2191
  children: [g !== null && /* @__PURE__ */ u("span", {
2091
- className: $.composerIcon,
2192
+ className: Q.composerIcon,
2092
2193
  "aria-hidden": "true",
2093
2194
  children: g === void 0 ? /* @__PURE__ */ u(f, {
2094
2195
  color: "currentColor",
@@ -2096,7 +2197,7 @@ var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2096
2197
  }) : g
2097
2198
  }), /* @__PURE__ */ u("textarea", {
2098
2199
  ref: x,
2099
- className: $.composerInput,
2200
+ className: Q.composerInput,
2100
2201
  rows: 1,
2101
2202
  value: e,
2102
2203
  placeholder: l,
@@ -2109,14 +2210,14 @@ var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2109
2210
  }
2110
2211
  })]
2111
2212
  }), /* @__PURE__ */ u("div", {
2112
- className: $.composerButton,
2113
- children: c ? /* @__PURE__ */ u(P, {
2213
+ className: Q.composerButton,
2214
+ children: c ? /* @__PURE__ */ u(M, {
2114
2215
  variant: "secondary",
2115
2216
  size: "micro",
2116
2217
  "aria-label": "Stop",
2117
2218
  iconLeft: /* @__PURE__ */ u(C, {}),
2118
2219
  onClick: a
2119
- }) : /* @__PURE__ */ u(P, {
2220
+ }) : /* @__PURE__ */ u(M, {
2120
2221
  variant: "primary",
2121
2222
  size: "micro",
2122
2223
  "aria-label": "Send",
@@ -2129,8 +2230,8 @@ var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2129
2230
  });
2130
2231
  //#endregion
2131
2232
  //#region src/components/Chat/Citation.tsx
2132
- function bt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2133
- let a = `${$.ref} ${i}`;
2233
+ function Tt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2234
+ let a = `${Q.ref} ${i}`;
2134
2235
  return t ? /* @__PURE__ */ u("a", {
2135
2236
  href: t,
2136
2237
  className: a,
@@ -2147,20 +2248,20 @@ function bt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2147
2248
  children: e
2148
2249
  });
2149
2250
  }
2150
- function xt({ items: e, label: t = "Sources", className: n = "" }) {
2251
+ function Et({ items: e, label: t = "Sources", className: n = "" }) {
2151
2252
  return e.length === 0 ? null : /* @__PURE__ */ d("div", {
2152
- className: `${$.stack} ${n}`,
2253
+ className: `${Q.stack} ${n}`,
2153
2254
  children: [/* @__PURE__ */ u("div", {
2154
- className: $.label,
2255
+ className: Q.label,
2155
2256
  children: t
2156
2257
  }), /* @__PURE__ */ u("div", {
2157
- className: $.wrap,
2258
+ className: Q.wrap,
2158
2259
  children: e.map((e) => {
2159
- let t = /* @__PURE__ */ d(Pe, {
2260
+ let t = /* @__PURE__ */ d(Fe, {
2160
2261
  icon: e.icon,
2161
2262
  children: [
2162
2263
  /* @__PURE__ */ u("span", {
2163
- className: $.citationNumber,
2264
+ className: Q.citationNumber,
2164
2265
  children: e.n
2165
2266
  }),
2166
2267
  " ",
@@ -2169,12 +2270,12 @@ function xt({ items: e, label: t = "Sources", className: n = "" }) {
2169
2270
  });
2170
2271
  return e.href ? /* @__PURE__ */ u("a", {
2171
2272
  href: e.href,
2172
- className: $.citationLink,
2273
+ className: Q.citationLink,
2173
2274
  onClick: e.onClick,
2174
2275
  children: t
2175
2276
  }, e.n) : /* @__PURE__ */ u("button", {
2176
2277
  type: "button",
2177
- className: $.citationLink,
2278
+ className: Q.citationLink,
2178
2279
  onClick: e.onClick,
2179
2280
  children: t
2180
2281
  }, e.n);
@@ -2184,27 +2285,27 @@ function xt({ items: e, label: t = "Sources", className: n = "" }) {
2184
2285
  }
2185
2286
  //#endregion
2186
2287
  //#region src/components/Chat/StreamStatus.tsx
2187
- function St({ children: e, className: t = "" }) {
2288
+ function Dt({ children: e, className: t = "" }) {
2188
2289
  return /* @__PURE__ */ d("div", {
2189
- className: `${$.status} ${t}`,
2290
+ className: `${Q.status} ${t}`,
2190
2291
  role: "status",
2191
2292
  children: [/* @__PURE__ */ u("span", {
2192
- className: $.statusSpinner,
2193
- children: /* @__PURE__ */ u(N, { size: 14 })
2293
+ className: Q.statusSpinner,
2294
+ children: /* @__PURE__ */ u(ie, { size: 14 })
2194
2295
  }), /* @__PURE__ */ u("span", { children: e })]
2195
2296
  });
2196
2297
  }
2197
2298
  //#endregion
2198
2299
  //#region src/components/Chat/Suggestions.tsx
2199
- function Ct({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2300
+ function Ot({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2200
2301
  return /* @__PURE__ */ d("div", {
2201
- className: `${$.suggestions} ${r}`,
2302
+ className: `${Q.suggestions} ${r}`,
2202
2303
  children: [/* @__PURE__ */ u("div", {
2203
- className: $.label,
2304
+ className: Q.label,
2204
2305
  children: n
2205
2306
  }), /* @__PURE__ */ u("div", {
2206
- className: $.wrap,
2207
- children: e.map((e) => /* @__PURE__ */ u(P, {
2307
+ className: Q.wrap,
2308
+ children: e.map((e) => /* @__PURE__ */ u(M, {
2208
2309
  variant: "secondary",
2209
2310
  size: "micro",
2210
2311
  onClick: () => t(e),
@@ -2215,19 +2316,19 @@ function Ct({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
2215
2316
  }
2216
2317
  //#endregion
2217
2318
  //#region src/components/Chat/AnswerActions.tsx
2218
- function wt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2319
+ function kt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2219
2320
  return /* @__PURE__ */ d("div", {
2220
- className: `${$.actions} ${i}`,
2321
+ className: `${Q.actions} ${i}`,
2221
2322
  children: [
2222
- e && /* @__PURE__ */ u(P, {
2323
+ e && /* @__PURE__ */ u(M, {
2223
2324
  variant: "ghost",
2224
2325
  size: "micro",
2225
2326
  iconLeft: u(t ? m : v, {}),
2226
2327
  onClick: e,
2227
2328
  children: t ? "Copied" : "Copy"
2228
2329
  }),
2229
- /* @__PURE__ */ u("span", { className: $.actionsSpacer }),
2230
- n && /* @__PURE__ */ u(P, {
2330
+ /* @__PURE__ */ u("span", { className: Q.actionsSpacer }),
2331
+ n && /* @__PURE__ */ u(M, {
2231
2332
  variant: "ghost",
2232
2333
  size: "micro",
2233
2334
  iconRight: /* @__PURE__ */ u(_, {}),
@@ -2237,21 +2338,21 @@ function wt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
2237
2338
  ]
2238
2339
  });
2239
2340
  }
2240
- var Tt = {
2341
+ var At = {
2241
2342
  truncate: "_truncate_za4sm_1",
2242
2343
  start: "_start_za4sm_13"
2243
2344
  };
2244
2345
  //#endregion
2245
2346
  //#region src/components/Truncate/Truncate.tsx
2246
- function Et({ children: e, side: t = "end", title: n, className: r = "" }) {
2347
+ function jt({ children: e, side: t = "end", title: n, className: r = "" }) {
2247
2348
  let i = n ?? (typeof e == "string" ? e : void 0);
2248
2349
  return /* @__PURE__ */ u("span", {
2249
- className: `${Tt.truncate} ${t === "start" ? Tt.start : ""} ${r}`,
2350
+ className: `${At.truncate} ${t === "start" ? At.start : ""} ${r}`,
2250
2351
  title: i,
2251
2352
  children: t === "start" ? /* @__PURE__ */ u("bdi", { children: e }) : e
2252
2353
  });
2253
2354
  }
2254
- var Dt = {
2355
+ var $ = {
2255
2356
  disclosure: "_disclosure_94bgy_1",
2256
2357
  trigger: "_trigger_94bgy_7",
2257
2358
  summary: "_summary_94bgy_31",
@@ -2260,24 +2361,24 @@ var Dt = {
2260
2361
  };
2261
2362
  //#endregion
2262
2363
  //#region src/components/Disclosure/Disclosure.tsx
2263
- function Ot({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2364
+ function Mt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2264
2365
  let [s, c] = e.useState(i), l = r ?? s, f = e.useId();
2265
2366
  return /* @__PURE__ */ d("div", {
2266
- className: `${Dt.disclosure} ${o}`,
2367
+ className: `${$.disclosure} ${o}`,
2267
2368
  "data-state": l ? "open" : "closed",
2268
2369
  children: [/* @__PURE__ */ d("button", {
2269
2370
  type: "button",
2270
- className: Dt.trigger,
2371
+ className: $.trigger,
2271
2372
  "aria-expanded": l,
2272
2373
  "aria-controls": l ? f : void 0,
2273
2374
  onClick: () => {
2274
2375
  r === void 0 && c(!l), a?.(!l);
2275
2376
  },
2276
2377
  children: [/* @__PURE__ */ u("span", {
2277
- className: Dt.summary,
2378
+ className: $.summary,
2278
2379
  children: t
2279
2380
  }), /* @__PURE__ */ u("span", {
2280
- className: Dt.chevron,
2381
+ className: $.chevron,
2281
2382
  "aria-hidden": "true",
2282
2383
  children: u(l ? h : _, {
2283
2384
  size: 14,
@@ -2286,10 +2387,10 @@ function Ot({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
2286
2387
  })]
2287
2388
  }), l && /* @__PURE__ */ u("div", {
2288
2389
  id: f,
2289
- className: Dt.content,
2390
+ className: $.content,
2290
2391
  children: n
2291
2392
  })]
2292
2393
  });
2293
2394
  }
2294
2395
  //#endregion
2295
- export { Le as Alert, ze as AlertDescription, Re as AlertTitle, wt as AnswerActions, _t as AssistantMessage, ae as Base, Ae as Breadcrumbs, P as Button, Ye as Chart, ht as ChatPanel, re as Checkbox, Pe as Chip, xt as CitationList, bt as CitationRef, yt as Composer, nt as DatePicker, Ot as Disclosure, oe as FilterPanelBase, le as InputField, pt as Kbd, Ze as Modal, ot as NavigationMenu, dt as NavigationMenuContent, ct as NavigationMenuItem, ft as NavigationMenuLink, st as NavigationMenuList, ut as NavigationMenuTrigger, ve as Popover, Me as ProgressBar, de as RadioButton, Ve as SaveBar, ce as SearchField, ge as Select, he as Slider, N as Spinner, St as StreamStatus, Ct as Suggestions, ye as Table, Se as TableCell, be as TableHeader, we as TableIcon, xe as TableRow, Ce as TableValue, De as Tabs, Xe as Textarea, pe as ToggleSwitch, Ue as Tooltip, Et as Truncate, gt as UserMessage, mt as defaultChatHints, ne as spinnerNames };
2396
+ export { Re as Alert, Be as AlertDescription, ze as AlertTitle, kt as AnswerActions, St as AssistantMessage, se as Base, je as Breadcrumbs, M as Button, Xe as Chart, bt as ChatPanel, ae as Checkbox, Fe as Chip, Et as CitationList, Tt as CitationRef, wt as Composer, st as DatePicker, Mt as Disclosure, ce as FilterPanelBase, de as InputField, vt as Kbd, tt as Modal, dt as NavigationMenu, gt as NavigationMenuContent, pt as NavigationMenuItem, _t as NavigationMenuLink, ft as NavigationMenuList, ht as NavigationMenuTrigger, ye as Popover, Ne as ProgressBar, fe as RadioButton, He as SaveBar, ue as SearchField, _e as Select, ge as Slider, Qe as Sparkline, ie as Spinner, Dt as StreamStatus, Ot as Suggestions, be as Table, Ce as TableCell, xe as TableHeader, Te as TableIcon, Se as TableRow, we as TableValue, Oe as Tabs, et as Textarea, me as ToggleSwitch, We as Tooltip, jt as Truncate, xt as UserMessage, yt as defaultChatHints, re as spinnerNames };