@indxsearch/systm 2.13.0 → 2.14.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
@@ -557,15 +557,15 @@ function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a
557
557
  ]
558
558
  });
559
559
  }
560
- var z = {
560
+ var ue = {
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
- }, ue = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ d("label", {
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
- className: `${z.radioWrapper} ${o ? z.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
568
+ className: `${ue.radioWrapper} ${o ? ue.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
569
569
  children: [
570
570
  /* @__PURE__ */ u("input", {
571
571
  id: e,
@@ -576,24 +576,24 @@ var z = {
576
576
  onChange: a,
577
577
  disabled: o,
578
578
  "aria-label": s,
579
- className: z.radioInput
579
+ className: ue.radioInput
580
580
  }),
581
- /* @__PURE__ */ u("span", { className: z.customRadio }),
581
+ /* @__PURE__ */ u("span", { className: ue.customRadio }),
582
582
  /* @__PURE__ */ u("span", {
583
- className: z.labelText,
583
+ className: ue.labelText,
584
584
  children: r
585
585
  })
586
586
  ]
587
- }), de = {
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
- }, fe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
592
+ }, pe = ({ 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: `${de.switch} ${i ? de.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
596
+ className: `${fe.switch} ${i ? fe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
597
597
  children: [
598
598
  /* @__PURE__ */ u("input", {
599
599
  id: c,
@@ -606,16 +606,16 @@ var z = {
606
606
  disabled: i
607
607
  }),
608
608
  /* @__PURE__ */ u("span", {
609
- className: de.slider,
609
+ className: fe.slider,
610
610
  "aria-hidden": "true"
611
611
  }),
612
612
  a && /* @__PURE__ */ u("span", {
613
- className: de.label,
613
+ className: fe.label,
614
614
  children: a
615
615
  })
616
616
  ]
617
617
  });
618
- }, B = {
618
+ }, z = {
619
619
  label: "_label_12as9_1",
620
620
  basetrack: "_basetrack_12as9_8",
621
621
  selectedtrack: "_selectedtrack_12as9_36",
@@ -624,15 +624,15 @@ var z = {
624
624
  livetrackDefault: "_livetrackDefault_12as9_52",
625
625
  thumbs: "_thumbs_12as9_55",
626
626
  disabled: "_disabled_12as9_89"
627
- }, pe = (t) => {
627
+ }, me = (t) => {
628
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
629
  if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ d("div", {
630
630
  className: o,
631
631
  children: [h && /* @__PURE__ */ u("span", {
632
- className: B.label,
632
+ className: z.label,
633
633
  children: h
634
634
  }), /* @__PURE__ */ u("div", {
635
- className: `${B.basetrack} ${B.disabled}`,
635
+ className: `${z.basetrack} ${z.disabled}`,
636
636
  "aria-hidden": "true"
637
637
  })]
638
638
  });
@@ -642,7 +642,7 @@ var z = {
642
642
  className: o,
643
643
  children: [h && /* @__PURE__ */ u("label", {
644
644
  htmlFor: y,
645
- className: B.label,
645
+ className: z.label,
646
646
  children: h
647
647
  }), /* @__PURE__ */ u(E, {
648
648
  step: i,
@@ -656,11 +656,11 @@ var z = {
656
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
657
  return v && (h = (s - n) / o * 100, g = (c - s) / o * 100), /* @__PURE__ */ d("div", {
658
658
  ...a,
659
- className: B.basetrack,
659
+ className: z.basetrack,
660
660
  style: { ...a.style },
661
661
  children: [
662
662
  !v && /* @__PURE__ */ u("div", {
663
- className: B.selectedtrack,
663
+ className: z.selectedtrack,
664
664
  style: {
665
665
  left: `${p}%`,
666
666
  width: `${m}%`,
@@ -668,7 +668,7 @@ var z = {
668
668
  }
669
669
  }),
670
670
  v && /* @__PURE__ */ u("div", {
671
- className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
671
+ className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
672
672
  style: {
673
673
  left: `${h}%`,
674
674
  width: `${g}%`,
@@ -684,7 +684,7 @@ var z = {
684
684
  return /* @__PURE__ */ u("div", {
685
685
  ...o,
686
686
  id: t === 0 ? y : void 0,
687
- className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
687
+ className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
688
688
  style: {
689
689
  ...o.style,
690
690
  zIndex: "3"
@@ -703,7 +703,7 @@ var z = {
703
703
  className: o,
704
704
  children: [h && /* @__PURE__ */ u("label", {
705
705
  htmlFor: y,
706
- className: B.label,
706
+ className: z.label,
707
707
  children: h
708
708
  }), /* @__PURE__ */ u(E, {
709
709
  step: i,
@@ -717,11 +717,11 @@ var z = {
717
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
718
  return g && (m = (s - n) / f * 100, h = (c - s) / f * 100), /* @__PURE__ */ d("div", {
719
719
  ...o,
720
- className: B.basetrack,
720
+ className: z.basetrack,
721
721
  style: { ...o.style },
722
722
  children: [
723
723
  !g && /* @__PURE__ */ u("div", {
724
- className: B.selectedtrack,
724
+ className: z.selectedtrack,
725
725
  style: {
726
726
  left: "0%",
727
727
  width: `${p}%`,
@@ -729,7 +729,7 @@ var z = {
729
729
  }
730
730
  }),
731
731
  g && /* @__PURE__ */ u("div", {
732
- className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
732
+ className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
733
733
  style: {
734
734
  left: `${m}%`,
735
735
  width: `${h}%`,
@@ -745,7 +745,7 @@ var z = {
745
745
  return /* @__PURE__ */ u("div", {
746
746
  ...o,
747
747
  id: y,
748
- className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
748
+ className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
749
749
  style: {
750
750
  ...o.style,
751
751
  zIndex: "3"
@@ -759,7 +759,7 @@ var z = {
759
759
  })]
760
760
  });
761
761
  }
762
- }, V = {
762
+ }, B = {
763
763
  wrapper: "_wrapper_15fsv_1",
764
764
  label: "_label_15fsv_7",
765
765
  trigger: "_trigger_15fsv_12",
@@ -771,14 +771,14 @@ var z = {
771
771
  viewport: "_viewport_15fsv_76",
772
772
  item: "_item_15fsv_82",
773
773
  itemIndicator: "_itemIndicator_15fsv_105"
774
- }, me = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", "aria-label": l, id: f }) => {
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
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
779
  children: [/* @__PURE__ */ d(D.Trigger, {
780
780
  id: g,
781
- className: `${V.trigger} ${V[c]} ${a} cursor-pointer`,
781
+ className: `${B.trigger} ${B[c]} ${a} cursor-pointer`,
782
782
  ...s ? { "aria-labelledby": _ } : l ? { "aria-label": l } : {},
783
783
  children: [/* @__PURE__ */ d("span", {
784
784
  style: {
@@ -788,7 +788,7 @@ var z = {
788
788
  },
789
789
  children: [v?.icon, /* @__PURE__ */ u(D.Value, { placeholder: i })]
790
790
  }), /* @__PURE__ */ u(D.Icon, {
791
- className: V.icon,
791
+ className: B.icon,
792
792
  "aria-hidden": "true",
793
793
  children: /* @__PURE__ */ u(h, {
794
794
  size: c === "large" ? 21 : 14,
@@ -796,16 +796,16 @@ var z = {
796
796
  })
797
797
  })]
798
798
  }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
799
- className: V.content,
799
+ className: B.content,
800
800
  position: "popper",
801
801
  side: "bottom",
802
802
  align: "start",
803
803
  sideOffset: 4,
804
804
  children: /* @__PURE__ */ u(D.Viewport, {
805
- className: V.viewport,
805
+ className: B.viewport,
806
806
  children: r.map((e) => /* @__PURE__ */ d(D.Item, {
807
807
  value: e.value,
808
- className: V.item,
808
+ className: B.item,
809
809
  children: [/* @__PURE__ */ d("span", {
810
810
  style: {
811
811
  display: "inline-flex",
@@ -814,7 +814,7 @@ var z = {
814
814
  },
815
815
  children: [e.icon, /* @__PURE__ */ u(D.ItemText, { children: e.label })]
816
816
  }), /* @__PURE__ */ u(D.ItemIndicator, {
817
- className: V.itemIndicator,
817
+ className: B.itemIndicator,
818
818
  children: /* @__PURE__ */ u(m, {
819
819
  size: 12,
820
820
  color: "currentColor"
@@ -825,22 +825,22 @@ var z = {
825
825
  }) })]
826
826
  });
827
827
  return s ? /* @__PURE__ */ d("div", {
828
- className: V.wrapper,
828
+ className: B.wrapper,
829
829
  children: [/* @__PURE__ */ u("label", {
830
830
  id: _,
831
831
  htmlFor: g,
832
- className: V.label,
832
+ className: B.label,
833
833
  children: s
834
834
  }), y]
835
835
  }) : y;
836
- }, he = { content: "_content_1qahr_1" }, ge = ({ 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, {
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
839
  children: [/* @__PURE__ */ u(O.Trigger, {
840
840
  asChild: !0,
841
841
  children: e
842
842
  }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ u(O.Content, {
843
- className: `${he.content} ${s}`,
843
+ className: `${ge.content} ${s}`,
844
844
  align: i,
845
845
  side: a,
846
846
  sideOffset: o,
@@ -848,7 +848,7 @@ var z = {
848
848
  "aria-describedby": l,
849
849
  children: t
850
850
  }) })]
851
- }), H = {
851
+ }), V = {
852
852
  table: "_table_j6zqj_1",
853
853
  caption: "_caption_j6zqj_8",
854
854
  headerRow: "_headerRow_j6zqj_25",
@@ -864,17 +864,17 @@ var z = {
864
864
  };
865
865
  //#endregion
866
866
  //#region src/components/Table/Table.tsx
867
- function _e({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
867
+ function ve({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
868
868
  let o = /* @__PURE__ */ d("table", {
869
- className: `${H.table} ${r && i ? H.stickyFirst : ""}`,
869
+ className: `${V.table} ${r && i ? V.stickyFirst : ""}`,
870
870
  "aria-label": n,
871
871
  children: [t && /* @__PURE__ */ u("caption", {
872
- className: H.caption,
872
+ className: V.caption,
873
873
  children: t
874
874
  }), e]
875
875
  });
876
876
  return r ? /* @__PURE__ */ u("div", {
877
- className: `${H.scroll} ${a === void 0 ? "" : H.bleedEnd}`,
877
+ className: `${V.scroll} ${a === void 0 ? "" : V.bleedEnd}`,
878
878
  style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
879
879
  role: "region",
880
880
  "aria-label": n ?? t,
@@ -884,27 +884,27 @@ function _e({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stic
884
884
  }
885
885
  //#endregion
886
886
  //#region src/components/Table/TableHeader.tsx
887
- function ve({ children: t }) {
887
+ function ye({ children: t }) {
888
888
  let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ u("th", {
889
889
  scope: "col",
890
890
  ...t.props
891
891
  }) : t);
892
892
  return /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
893
- className: H.headerRow,
893
+ className: V.headerRow,
894
894
  children: n
895
895
  }) });
896
896
  }
897
897
  //#endregion
898
898
  //#region src/components/Table/TableRow.tsx
899
- function ye({ children: e }) {
899
+ function be({ children: e }) {
900
900
  return /* @__PURE__ */ u("tr", {
901
- className: H.dataRow,
901
+ className: V.dataRow,
902
902
  children: e
903
903
  });
904
904
  }
905
905
  //#endregion
906
906
  //#region src/components/Table/TableCell.tsx
907
- function be({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
907
+ function xe({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
908
908
  let a = n ? "th" : "td", o = {
909
909
  ...n && r ? { scope: r } : {},
910
910
  ...i ? { colSpan: i } : {}
@@ -912,12 +912,12 @@ function be({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
912
912
  return e || t ? /* @__PURE__ */ u(a, {
913
913
  ...o,
914
914
  children: /* @__PURE__ */ d("div", {
915
- className: H.cellInner,
915
+ className: V.cellInner,
916
916
  children: [e && /* @__PURE__ */ u("span", {
917
- className: H.cellLabel,
917
+ className: V.cellLabel,
918
918
  children: e
919
919
  }), t && /* @__PURE__ */ u("div", {
920
- className: H.cellContent,
920
+ className: V.cellContent,
921
921
  children: t
922
922
  })]
923
923
  })
@@ -928,18 +928,18 @@ function be({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
928
928
  }
929
929
  //#endregion
930
930
  //#region src/components/Table/TableValue.tsx
931
- function xe({ children: e }) {
931
+ function Se({ children: e }) {
932
932
  return /* @__PURE__ */ u("span", {
933
- className: H.value,
933
+ className: V.value,
934
934
  children: e
935
935
  });
936
936
  }
937
937
  //#endregion
938
938
  //#region src/components/Table/TableIcon.tsx
939
- function Se({ children: t, "aria-label": n }) {
939
+ function Ce({ children: t, "aria-label": n }) {
940
940
  let r = !n;
941
941
  return /* @__PURE__ */ u("span", {
942
- className: H.icon,
942
+ className: V.icon,
943
943
  "aria-hidden": r ? "true" : void 0,
944
944
  "aria-label": n,
945
945
  children: e.cloneElement(t, {
@@ -948,7 +948,7 @@ function Se({ children: t, "aria-label": n }) {
948
948
  })
949
949
  });
950
950
  }
951
- var U = {
951
+ var H = {
952
952
  tabs: "_tabs_5w265_1",
953
953
  scrollable: "_scrollable_5w265_16",
954
954
  tab: "_tab_5w265_1",
@@ -963,23 +963,23 @@ var U = {
963
963
  };
964
964
  //#endregion
965
965
  //#region src/components/Tabs/Tabs.tsx
966
- function Ce(e, t) {
966
+ function we(e, t) {
967
967
  if (!e || !t) return;
968
968
  let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
969
969
  i.left < r.left + n ? e.scrollLeft -= r.left + n - i.left : i.right > r.right - n && (e.scrollLeft += i.right - (r.right - n));
970
970
  }
971
- var we = {
971
+ var Te = {
972
972
  micro: 14,
973
973
  default: 14,
974
974
  large: 21
975
975
  };
976
- function Te({ items: e, value: r, onValueChange: o, size: c = "default", variant: f = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
976
+ function Ee({ items: e, value: r, onValueChange: o, size: c = "default", variant: f = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
977
977
  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) => {
978
978
  let n = e[t];
979
979
  if (!n) return;
980
980
  o(n.value);
981
981
  let r = y.current.get(n.value);
982
- r?.focus({ preventScroll: !0 }), p && Ce(v.current, r);
982
+ r?.focus({ preventScroll: !0 }), p && we(v.current, r);
983
983
  }, w = (t, n) => {
984
984
  for (let r = 1; r <= e.length; r++) {
985
985
  let i = (t + n * r + e.length * r) % e.length;
@@ -1026,27 +1026,27 @@ function Te({ items: e, value: r, onValueChange: o, size: c = "default", variant
1026
1026
  m,
1027
1027
  e.length
1028
1028
  ]), i(() => {
1029
- p && Ce(v.current, y.current.get(r));
1029
+ p && we(v.current, y.current.get(r));
1030
1030
  }, [p, r]), /* @__PURE__ */ u("div", {
1031
1031
  ref: v,
1032
- className: `${U.tabs} ${f === "button" ? U.buttonVariant : ""} ${p ? U.scrollable : ""} ${p && m !== void 0 ? U.bleed : ""}`,
1032
+ className: `${H.tabs} ${f === "button" ? H.buttonVariant : ""} ${p ? H.scrollable : ""} ${p && m !== void 0 ? H.bleed : ""}`,
1033
1033
  style: p && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
1034
1034
  role: S ? "navigation" : "tablist",
1035
1035
  "aria-label": g,
1036
1036
  children: e.map((e, r) => {
1037
1037
  let i = r === x, a = /* @__PURE__ */ d(l, { children: [
1038
1038
  e.icon ? /* @__PURE__ */ u("span", {
1039
- className: U.icon,
1039
+ className: H.icon,
1040
1040
  "aria-hidden": "true",
1041
- children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: we[c] }) : e.icon
1041
+ children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Te[c] }) : e.icon
1042
1042
  }) : null,
1043
1043
  e.label,
1044
1044
  e.badge != null && e.badge !== !1 ? /* @__PURE__ */ u("span", {
1045
- className: U.badge,
1045
+ className: H.badge,
1046
1046
  title: e.badgeTitle,
1047
1047
  children: e.badge
1048
1048
  }) : null
1049
- ] }), s = `${U.tab} ${U[c]} ${i ? U.active : ""}`;
1049
+ ] }), s = `${H.tab} ${H[c]} ${i ? H.active : ""}`;
1050
1050
  if (e.href !== void 0) {
1051
1051
  let t = {
1052
1052
  id: `${b}-tab-${e.value}`,
@@ -1088,7 +1088,7 @@ function Te({ items: e, value: r, onValueChange: o, size: c = "default", variant
1088
1088
  })
1089
1089
  });
1090
1090
  }
1091
- var W = {
1091
+ var U = {
1092
1092
  root: "_root_wrjxq_1",
1093
1093
  micro: "_micro_wrjxq_2",
1094
1094
  default: "_default_wrjxq_3",
@@ -1108,106 +1108,106 @@ var W = {
1108
1108
  };
1109
1109
  //#endregion
1110
1110
  //#region src/components/Breadcrumbs/Breadcrumbs.tsx
1111
- function Ee(t) {
1111
+ function De(t) {
1112
1112
  return e.isValidElement(t) ? e.cloneElement(t, {
1113
1113
  size: "14px",
1114
1114
  color: "currentColor"
1115
1115
  }) : t;
1116
1116
  }
1117
- var De = "\0action", Oe = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1117
+ var Oe = "\0action", ke = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1118
1118
  size: 14,
1119
1119
  color: "currentColor"
1120
1120
  }), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
1121
1121
  "aria-label": o,
1122
- className: `${W.root} ${W[t]} ${n === "truncate" ? W.truncate : ""} ${r}`,
1122
+ className: `${U.root} ${U[t]} ${n === "truncate" ? U.truncate : ""} ${r}`,
1123
1123
  children: /* @__PURE__ */ u("ol", {
1124
- className: W.list,
1124
+ className: U.list,
1125
1125
  children: e.map((t, r) => /* @__PURE__ */ d("li", {
1126
- className: W.item,
1126
+ className: U.item,
1127
1127
  children: [r > 0 && /* @__PURE__ */ u("span", {
1128
- className: W.separator,
1128
+ className: U.separator,
1129
1129
  "aria-hidden": "true",
1130
1130
  children: i
1131
1131
  }), /* @__PURE__ */ d("div", {
1132
- className: `${W.step} ${t.switcher ? W.switchable : ""}`,
1132
+ className: `${U.step} ${t.switcher ? U.switchable : ""}`,
1133
1133
  children: [t.href ? (() => {
1134
1134
  let i = {
1135
- className: W.label,
1135
+ className: U.label,
1136
1136
  href: t.href,
1137
1137
  title: n === "truncate" ? t.label : void 0,
1138
1138
  onClick: t.onClick,
1139
1139
  "aria-current": r === e.length - 1 ? "page" : void 0,
1140
1140
  children: /* @__PURE__ */ d(l, { children: [t.icon && /* @__PURE__ */ u("span", {
1141
- className: W.icon,
1141
+ className: U.icon,
1142
1142
  "aria-hidden": "true",
1143
- children: Ee(t.icon)
1143
+ children: De(t.icon)
1144
1144
  }), /* @__PURE__ */ u("span", {
1145
- className: W.text,
1145
+ className: U.text,
1146
1146
  children: t.label
1147
1147
  })] })
1148
1148
  };
1149
1149
  return a ? a(t, i) : /* @__PURE__ */ u("a", { ...i });
1150
1150
  })() : /* @__PURE__ */ d("span", {
1151
- className: W.label,
1151
+ className: U.label,
1152
1152
  title: n === "truncate" ? t.label : void 0,
1153
1153
  "aria-current": r === e.length - 1 ? "page" : void 0,
1154
1154
  children: [t.icon && /* @__PURE__ */ u("span", {
1155
- className: W.icon,
1155
+ className: U.icon,
1156
1156
  "aria-hidden": "true",
1157
- children: Ee(t.icon)
1157
+ children: De(t.icon)
1158
1158
  }), /* @__PURE__ */ u("span", {
1159
- className: W.text,
1159
+ className: U.text,
1160
1160
  children: t.label
1161
1161
  })]
1162
1162
  }), t.switcher && /* @__PURE__ */ d(D.Root, {
1163
1163
  value: t.switcher.value,
1164
- onValueChange: (e) => e === De ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1164
+ onValueChange: (e) => e === Oe ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1165
1165
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1166
1166
  children: [/* @__PURE__ */ u(D.Trigger, {
1167
- className: W.trigger,
1167
+ className: U.trigger,
1168
1168
  "aria-label": `${t.switcher.label}: ${t.label}`,
1169
1169
  children: /* @__PURE__ */ u(D.Icon, {
1170
1170
  "aria-hidden": "true",
1171
- className: W.icon,
1171
+ className: U.icon,
1172
1172
  children: /* @__PURE__ */ u(y, {
1173
1173
  size: 14,
1174
1174
  color: "currentColor"
1175
1175
  })
1176
1176
  })
1177
1177
  }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
1178
- className: `${V.content} ${W.menu}`,
1178
+ className: `${B.content} ${U.menu}`,
1179
1179
  position: "popper",
1180
1180
  align: "end",
1181
1181
  sideOffset: 4,
1182
1182
  collisionPadding: 8,
1183
1183
  children: /* @__PURE__ */ d(D.Viewport, {
1184
- className: V.viewport,
1184
+ className: B.viewport,
1185
1185
  children: [t.switcher.options.map((e) => /* @__PURE__ */ d(D.Item, {
1186
1186
  value: e.value,
1187
- className: V.item,
1187
+ className: B.item,
1188
1188
  textValue: e.label,
1189
1189
  children: [/* @__PURE__ */ d("span", {
1190
- className: W.option,
1190
+ className: U.option,
1191
1191
  children: [e.icon && /* @__PURE__ */ u("span", {
1192
- className: W.icon,
1192
+ className: U.icon,
1193
1193
  "aria-hidden": "true",
1194
1194
  children: e.icon
1195
1195
  }), /* @__PURE__ */ u(D.ItemText, { children: e.label })]
1196
1196
  }), /* @__PURE__ */ u(D.ItemIndicator, {
1197
- className: V.itemIndicator,
1197
+ className: B.itemIndicator,
1198
1198
  children: /* @__PURE__ */ u(m, {
1199
1199
  size: 12,
1200
1200
  color: "currentColor"
1201
1201
  })
1202
1202
  })]
1203
- }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: W.menuDivider }), /* @__PURE__ */ u(D.Item, {
1204
- value: De,
1205
- className: V.item,
1203
+ }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: U.menuDivider }), /* @__PURE__ */ u(D.Item, {
1204
+ value: Oe,
1205
+ className: B.item,
1206
1206
  textValue: t.switcher.action.label,
1207
1207
  children: /* @__PURE__ */ d("span", {
1208
- className: W.option,
1208
+ className: U.option,
1209
1209
  children: [/* @__PURE__ */ u("span", {
1210
- className: W.icon,
1210
+ className: U.icon,
1211
1211
  "aria-hidden": "true",
1212
1212
  children: /* @__PURE__ */ u(x, {
1213
1213
  size: 14,
@@ -1222,7 +1222,7 @@ var De = "\0action", Oe = ({ items: e, size: t = "default", overflow: n = "wrap"
1222
1222
  })]
1223
1223
  }, t.id))
1224
1224
  })
1225
- }), ke = {
1225
+ }), Ae = {
1226
1226
  wrapper: "_wrapper_1a9jo_1",
1227
1227
  track: "_track_1a9jo_8",
1228
1228
  fill: "_fill_1a9jo_36",
@@ -1230,42 +1230,42 @@ var De = "\0action", Oe = ({ items: e, size: t = "default", overflow: n = "wrap"
1230
1230
  };
1231
1231
  //#endregion
1232
1232
  //#region src/components/ProgressBar/ProgressBar.tsx
1233
- function Ae({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1233
+ function je({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1234
1234
  let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
1235
1235
  return /* @__PURE__ */ d("div", {
1236
- className: `${ke.wrapper} ${r}`,
1236
+ className: `${Ae.wrapper} ${r}`,
1237
1237
  role: "progressbar",
1238
1238
  "aria-valuenow": i,
1239
1239
  "aria-valuemin": 0,
1240
1240
  "aria-valuemax": 100,
1241
1241
  children: [/* @__PURE__ */ u("div", {
1242
- className: ke.track,
1242
+ className: Ae.track,
1243
1243
  children: /* @__PURE__ */ u("div", {
1244
- className: ke.fill,
1244
+ className: Ae.fill,
1245
1245
  style: {
1246
1246
  width: `${i}%`,
1247
1247
  backgroundColor: o
1248
1248
  }
1249
1249
  })
1250
1250
  }), t && /* @__PURE__ */ u("span", {
1251
- className: ke.label,
1251
+ className: Ae.label,
1252
1252
  "aria-hidden": "true",
1253
1253
  children: a
1254
1254
  })]
1255
1255
  });
1256
1256
  }
1257
- var je = {
1257
+ var Me = {
1258
1258
  chip: "_chip_iaxe0_1",
1259
1259
  large: "_large_iaxe0_14"
1260
1260
  };
1261
1261
  //#endregion
1262
1262
  //#region src/components/Chip/Chip.tsx
1263
- function Me({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1263
+ function Ne({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1264
1264
  let s = {};
1265
1265
  return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ d("span", {
1266
1266
  className: [
1267
- je.chip,
1268
- o === "large" && je.large,
1267
+ Me.chip,
1268
+ o === "large" && Me.large,
1269
1269
  i
1270
1270
  ].filter(Boolean).join(" "),
1271
1271
  style: s,
@@ -1275,7 +1275,7 @@ function Me({ children: t, color: n, textColor: r, className: i, icon: a, size:
1275
1275
  }), t]
1276
1276
  });
1277
1277
  }
1278
- var G = {
1278
+ var W = {
1279
1279
  root: "_root_ok48u_3",
1280
1280
  icon: "_icon_ok48u_16",
1281
1281
  body: "_body_ok48u_17",
@@ -1286,44 +1286,63 @@ var G = {
1286
1286
  success: "_success_ok48u_24",
1287
1287
  warning: "_warning_ok48u_25",
1288
1288
  destructive: "_destructive_ok48u_26"
1289
- }, Ne = {
1289
+ }, Pe = {
1290
1290
  success: /* @__PURE__ */ u(m, {}),
1291
1291
  warning: /* @__PURE__ */ u(w, {}),
1292
1292
  destructive: /* @__PURE__ */ u(w, {})
1293
1293
  };
1294
- function Pe(t) {
1294
+ function Fe(t) {
1295
1295
  return e.isValidElement(t) ? e.cloneElement(t, {
1296
1296
  size: 16,
1297
1297
  color: "currentColor"
1298
1298
  }) : t;
1299
1299
  }
1300
- var Fe = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1301
- let a = t === void 0 ? Ne[e] : t;
1300
+ var Ie = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1301
+ let a = t === void 0 ? Pe[e] : t;
1302
1302
  return /* @__PURE__ */ d("div", {
1303
1303
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
1304
- className: `${G.root} ${G[e]} ${n}`,
1304
+ className: `${W.root} ${W[e]} ${n}`,
1305
1305
  children: [a && /* @__PURE__ */ u("span", {
1306
- className: G.icon,
1306
+ className: W.icon,
1307
1307
  "aria-hidden": "true",
1308
- children: Pe(a)
1308
+ children: Fe(a)
1309
1309
  }), /* @__PURE__ */ u("div", {
1310
- className: G.body,
1310
+ className: W.body,
1311
1311
  children: r
1312
1312
  })]
1313
1313
  });
1314
- }, Ie = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1315
- className: `${G.title} ${t}`,
1314
+ }, Le = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1315
+ className: `${W.title} ${t}`,
1316
1316
  children: e
1317
- }), Le = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1318
- className: `${G.description} ${t}`,
1317
+ }), Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1318
+ className: `${W.description} ${t}`,
1319
1319
  children: e
1320
- }), Re = {
1320
+ }), ze = {
1321
+ root: "_root_1plhu_3",
1322
+ main: "_main_1plhu_18",
1323
+ aside: "_aside_1plhu_19",
1324
+ message: "_message_1plhu_26"
1325
+ }, Be = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ d("div", {
1326
+ role: "region",
1327
+ "aria-label": a,
1328
+ className: `${ze.root} ${i}`,
1329
+ children: [/* @__PURE__ */ d("div", {
1330
+ className: ze.main,
1331
+ children: [r, t && /* @__PURE__ */ u("span", {
1332
+ className: ze.message,
1333
+ children: t
1334
+ })]
1335
+ }), n && /* @__PURE__ */ u("div", {
1336
+ className: ze.aside,
1337
+ children: n
1338
+ })]
1339
+ }) : null, Ve = {
1321
1340
  tooltip: "_tooltip_1de7z_1",
1322
1341
  arrow: "_arrow_1de7z_13"
1323
1342
  };
1324
1343
  //#endregion
1325
1344
  //#region src/components/Tooltip/Tooltip.tsx
1326
- function ze({ content: e, position: t = "top", children: n, className: r }) {
1345
+ function He({ content: e, position: t = "top", children: n, className: r }) {
1327
1346
  return /* @__PURE__ */ u(k.Provider, {
1328
1347
  delayDuration: 80,
1329
1348
  children: /* @__PURE__ */ d(k.Root, { children: [/* @__PURE__ */ u(k.Trigger, {
@@ -1332,12 +1351,12 @@ function ze({ content: e, position: t = "top", children: n, className: r }) {
1332
1351
  }), /* @__PURE__ */ u(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
1333
1352
  side: t,
1334
1353
  sideOffset: 7,
1335
- className: [Re.tooltip, r].filter(Boolean).join(" "),
1336
- children: [e, /* @__PURE__ */ u(k.Arrow, { className: Re.arrow })]
1354
+ className: [Ve.tooltip, r].filter(Boolean).join(" "),
1355
+ children: [e, /* @__PURE__ */ u(k.Arrow, { className: Ve.arrow })]
1337
1356
  }) })] })
1338
1357
  });
1339
1358
  }
1340
- var K = {
1359
+ var G = {
1341
1360
  wrapper: "_wrapper_1w5vh_1",
1342
1361
  chart: "_chart_1w5vh_8",
1343
1362
  svg: "_svg_1w5vh_33",
@@ -1351,11 +1370,11 @@ var K = {
1351
1370
  legendItem: "_legendItem_1w5vh_90",
1352
1371
  legendMark: "_legendMark_1w5vh_96",
1353
1372
  legendLabel: "_legendLabel_1w5vh_102"
1354
- }, Be = "var(--lv4)", q = 12, Ve = 20, He = 8, Ue = 28, J = 20;
1355
- function We(e) {
1373
+ }, Ue = "var(--lv4)", K = 12, We = 20, Ge = 8, Ke = 28, q = 20;
1374
+ function qe(e) {
1356
1375
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
1357
1376
  }
1358
- function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l }) {
1377
+ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l }) {
1359
1378
  let f = s(null), [p, m] = c(0), [h, g] = c(null);
1360
1379
  i(() => {
1361
1380
  let e = f.current;
@@ -1363,18 +1382,18 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1363
1382
  let t = new ResizeObserver(([e]) => m(e.contentRect.width));
1364
1383
  return t.observe(e), m(e.clientWidth), () => t.disconnect();
1365
1384
  }, []);
1366
- let _ = t?.length ? Ue : He, v = Math.max(p - J - Ve, 0), y = Math.max(a - q - _, 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) => q + (1 - (e - S) / C) * y, E = (e) => w <= 1 ? J + v / 2 : J + e / (w - 1) * v, D = r((e) => {
1385
+ let _ = t?.length ? Ke : Ge, v = Math.max(p - q - We, 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) => {
1367
1386
  if (w === 0) return;
1368
1387
  let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
1369
1388
  if (n === "line") {
1370
- let e = Math.round((r - J) / v * (w - 1));
1389
+ let e = Math.round((r - q) / v * (w - 1));
1371
1390
  g({
1372
1391
  index: Math.max(0, Math.min(w - 1, e)),
1373
1392
  x: r,
1374
1393
  y: i
1375
1394
  });
1376
1395
  } else {
1377
- let e = v / w, t = Math.floor((r - J) / e);
1396
+ let e = v / w, t = Math.floor((r - q) / e);
1378
1397
  g({
1379
1398
  index: Math.max(0, Math.min(w - 1, t)),
1380
1399
  x: r,
@@ -1386,31 +1405,31 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1386
1405
  w,
1387
1406
  v
1388
1407
  ]), O = r(() => g(null), []), k = /* @__PURE__ */ u("line", {
1389
- x1: J,
1390
- y1: q + y * .5,
1391
- x2: J + v,
1392
- y2: q + y * .5,
1408
+ x1: q,
1409
+ y1: K + y * .5,
1410
+ x2: q + v,
1411
+ y2: K + y * .5,
1393
1412
  stroke: "var(--chart-midline)",
1394
1413
  strokeWidth: "0.5"
1395
1414
  }), A = /* @__PURE__ */ u("line", {
1396
- x1: J,
1397
- y1: q + y,
1398
- x2: J + v,
1399
- y2: q + y,
1415
+ x1: q,
1416
+ y1: K + y,
1417
+ x2: q + v,
1418
+ y2: K + y,
1400
1419
  stroke: "var(--chart-baseline)",
1401
1420
  strokeWidth: "1"
1402
1421
  }), j = h && n === "bar" ? (() => {
1403
1422
  let e = v / w;
1404
1423
  return /* @__PURE__ */ u("rect", {
1405
- x: J + h.index * e,
1406
- y: q,
1424
+ x: q + h.index * e,
1425
+ y: K,
1407
1426
  width: e,
1408
1427
  height: y,
1409
1428
  fill: "var(--chart-column-hover)"
1410
1429
  });
1411
1430
  })() : null, M = () => e.map((e, t) => {
1412
1431
  if (!e.data.length) return null;
1413
- let n = e.color ?? Be;
1432
+ let n = e.color ?? Ue;
1414
1433
  return /* @__PURE__ */ d("g", { children: [/* @__PURE__ */ u("polyline", {
1415
1434
  points: e.data.map((e, t) => `${E(t).toFixed(2)},${T(e).toFixed(2)}`).join(" "),
1416
1435
  fill: "none",
@@ -1430,9 +1449,9 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1430
1449
  })] }, t);
1431
1450
  }), ee = () => {
1432
1451
  if (!w) return null;
1433
- let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = q + y;
1452
+ let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = K + y;
1434
1453
  return e.map((e, t) => e.data.map((a, o) => {
1435
- let s = J + o * n + 2 + t * (r + 2), c = T(a);
1454
+ let s = q + o * n + 2 + t * (r + 2), c = T(a);
1436
1455
  return /* @__PURE__ */ u("rect", {
1437
1456
  x: s,
1438
1457
  y: c,
@@ -1443,9 +1462,9 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1443
1462
  }));
1444
1463
  }, te = () => {
1445
1464
  if (!t?.length) return null;
1446
- let e = q + y + 18;
1465
+ let e = K + y + 18;
1447
1466
  return t.map((t, r) => /* @__PURE__ */ u("text", {
1448
- x: n === "line" ? E(r) : J + (r + .5) * (v / w),
1467
+ x: n === "line" ? E(r) : q + (r + .5) * (v / w),
1449
1468
  y: e,
1450
1469
  textAnchor: "middle",
1451
1470
  fill: "var(--lv4)",
@@ -1454,16 +1473,16 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1454
1473
  }, r));
1455
1474
  }, ne = h && n === "line" ? /* @__PURE__ */ u("line", {
1456
1475
  x1: E(h.index),
1457
- y1: q,
1476
+ y1: K,
1458
1477
  x2: E(h.index),
1459
- y2: q + y,
1478
+ y2: K + y,
1460
1479
  stroke: "var(--chart-crosshair)",
1461
1480
  strokeWidth: "1",
1462
1481
  strokeDasharray: "3 3"
1463
1482
  }) : null, N = h ? (() => {
1464
1483
  let n = t?.[h.index] ?? String(h.index + 1), r = Math.min(Math.max(h.x, 60), p - 60);
1465
1484
  return /* @__PURE__ */ d("div", {
1466
- className: K.tooltip,
1485
+ className: G.tooltip,
1467
1486
  style: h.y < 80 ? {
1468
1487
  left: r,
1469
1488
  top: h.y + 12,
@@ -1474,37 +1493,37 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1474
1493
  transform: "translate(-50%, -100%)"
1475
1494
  },
1476
1495
  children: [/* @__PURE__ */ u("div", {
1477
- className: K.tooltipLabel,
1496
+ className: G.tooltipLabel,
1478
1497
  children: n
1479
1498
  }), e.map((e, t) => /* @__PURE__ */ d("div", {
1480
- className: K.tooltipRow,
1499
+ className: G.tooltipRow,
1481
1500
  children: [
1482
1501
  /* @__PURE__ */ u("span", {
1483
- className: K.tooltipDot,
1484
- style: { background: e.color ?? Be }
1502
+ className: G.tooltipDot,
1503
+ style: { background: e.color ?? Ue }
1485
1504
  }),
1486
1505
  /* @__PURE__ */ u("span", {
1487
- className: K.tooltipName,
1506
+ className: G.tooltipName,
1488
1507
  children: e.label
1489
1508
  }),
1490
1509
  /* @__PURE__ */ u("span", {
1491
- className: K.tooltipValue,
1492
- children: We(e.data[h.index] ?? 0)
1510
+ className: G.tooltipValue,
1511
+ children: qe(e.data[h.index] ?? 0)
1493
1512
  })
1494
1513
  ]
1495
1514
  }, t))]
1496
1515
  });
1497
1516
  })() : null;
1498
1517
  return /* @__PURE__ */ d("div", {
1499
- className: [K.wrapper, l].filter(Boolean).join(" "),
1518
+ className: [G.wrapper, l].filter(Boolean).join(" "),
1500
1519
  children: [/* @__PURE__ */ d("div", {
1501
1520
  ref: f,
1502
- className: K.chart,
1521
+ className: G.chart,
1503
1522
  style: { height: a },
1504
1523
  children: [p > 0 && /* @__PURE__ */ d("svg", {
1505
1524
  width: p,
1506
1525
  height: a,
1507
- className: K.svg,
1526
+ className: G.svg,
1508
1527
  onMouseMove: D,
1509
1528
  onMouseLeave: O,
1510
1529
  children: [
@@ -1517,21 +1536,21 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1517
1536
  ]
1518
1537
  }), N]
1519
1538
  }), o && e.length > 1 && /* @__PURE__ */ u("div", {
1520
- className: K.legend,
1539
+ className: G.legend,
1521
1540
  children: e.map((e, t) => /* @__PURE__ */ d("div", {
1522
- className: K.legendItem,
1541
+ className: G.legendItem,
1523
1542
  children: [/* @__PURE__ */ u("div", {
1524
- className: K.legendMark,
1525
- style: { background: e.color ?? Be }
1543
+ className: G.legendMark,
1544
+ style: { background: e.color ?? Ue }
1526
1545
  }), /* @__PURE__ */ u("span", {
1527
- className: K.legendLabel,
1546
+ className: G.legendLabel,
1528
1547
  children: e.label
1529
1548
  })]
1530
1549
  }, t))
1531
1550
  })]
1532
1551
  });
1533
1552
  }
1534
- var Y = {
1553
+ var J = {
1535
1554
  wrapper: "_wrapper_17ws4_1",
1536
1555
  label: "_label_17ws4_7",
1537
1556
  textarea: "_textarea_17ws4_12",
@@ -1540,14 +1559,14 @@ var Y = {
1540
1559
  };
1541
1560
  //#endregion
1542
1561
  //#region src/components/Textarea/Textarea.tsx
1543
- function Ke({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1562
+ function Ye({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1544
1563
  let c = e.useId(), l = a || c, f = `${l}-error`, p = n || !i;
1545
1564
  return /* @__PURE__ */ d("div", {
1546
- className: `${Y.wrapper} ${r}`,
1565
+ className: `${J.wrapper} ${r}`,
1547
1566
  children: [
1548
1567
  t && /* @__PURE__ */ d("label", {
1549
1568
  htmlFor: l,
1550
- className: Y.label,
1569
+ className: J.label,
1551
1570
  children: [t, s.required && /* @__PURE__ */ u("span", {
1552
1571
  "aria-label": "required",
1553
1572
  children: " *"
@@ -1556,46 +1575,46 @@ function Ke({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
1556
1575
  /* @__PURE__ */ u("textarea", {
1557
1576
  id: l,
1558
1577
  rows: o,
1559
- className: `${Y.textarea} ${p ? Y.error : ""}`,
1578
+ className: `${J.textarea} ${p ? J.error : ""}`,
1560
1579
  "aria-invalid": p ? "true" : "false",
1561
1580
  "aria-describedby": n ? f : void 0,
1562
1581
  ...s
1563
1582
  }),
1564
1583
  n && /* @__PURE__ */ u("span", {
1565
1584
  id: f,
1566
- className: Y.errorText,
1585
+ className: J.errorText,
1567
1586
  role: "alert",
1568
1587
  children: n
1569
1588
  })
1570
1589
  ]
1571
1590
  });
1572
1591
  }
1573
- var X = {
1592
+ var Y = {
1574
1593
  overlay: "_overlay_xud7c_1",
1575
1594
  content: "_content_xud7c_8",
1576
1595
  title: "_title_xud7c_26",
1577
1596
  description: "_description_xud7c_34",
1578
1597
  close: "_close_xud7c_40",
1579
1598
  srOnly: "_srOnly_xud7c_62"
1580
- }, qe = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1599
+ }, Xe = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1581
1600
  open: n,
1582
1601
  onOpenChange: r,
1583
1602
  children: [e && /* @__PURE__ */ u(A.Trigger, {
1584
1603
  asChild: !0,
1585
1604
  children: e
1586
- }), /* @__PURE__ */ d(A.Portal, { children: [/* @__PURE__ */ u(A.Overlay, { className: X.overlay }), /* @__PURE__ */ d(A.Content, {
1587
- className: `${X.content} ${o}`,
1605
+ }), /* @__PURE__ */ d(A.Portal, { children: [/* @__PURE__ */ u(A.Overlay, { className: Y.overlay }), /* @__PURE__ */ d(A.Content, {
1606
+ className: `${Y.content} ${o}`,
1588
1607
  children: [
1589
1608
  /* @__PURE__ */ u(A.Title, {
1590
- className: i ? X.title : X.srOnly,
1609
+ className: i ? Y.title : Y.srOnly,
1591
1610
  children: i || "Dialog"
1592
1611
  }),
1593
1612
  a && /* @__PURE__ */ u(A.Description, {
1594
- className: X.description,
1613
+ className: Y.description,
1595
1614
  children: a
1596
1615
  }),
1597
1616
  s && /* @__PURE__ */ u(A.Close, {
1598
- className: X.close,
1617
+ className: Y.close,
1599
1618
  "aria-label": "Close",
1600
1619
  children: /* @__PURE__ */ u(T, {
1601
1620
  size: 16,
@@ -1605,7 +1624,7 @@ var X = {
1605
1624
  t
1606
1625
  ]
1607
1626
  })] })]
1608
- }), Z = {
1627
+ }), X = {
1609
1628
  wrapper: "_wrapper_aimna_1",
1610
1629
  label: "_label_aimna_7",
1611
1630
  trigger: "_trigger_aimna_12",
@@ -1624,7 +1643,7 @@ var X = {
1624
1643
  today: "_today_aimna_131",
1625
1644
  selected: "_selected_aimna_136",
1626
1645
  errorText: "_errorText_aimna_142"
1627
- }, Je = [
1646
+ }, Ze = [
1628
1647
  "Mo",
1629
1648
  "Tu",
1630
1649
  "We",
@@ -1632,7 +1651,7 @@ var X = {
1632
1651
  "Fr",
1633
1652
  "Sa",
1634
1653
  "Su"
1635
- ], Ye = [
1654
+ ], Qe = [
1636
1655
  "January",
1637
1656
  "February",
1638
1657
  "March",
@@ -1646,19 +1665,19 @@ var X = {
1646
1665
  "November",
1647
1666
  "December"
1648
1667
  ];
1649
- function Xe(e) {
1668
+ function Z(e) {
1650
1669
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
1651
1670
  return `${e.getFullYear()}-${t}-${n}`;
1652
1671
  }
1653
- function Ze(e, t) {
1672
+ function $e(e, t) {
1654
1673
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1655
1674
  }
1656
- function Qe(e, t) {
1675
+ function et(e, t) {
1657
1676
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
1658
1677
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
1659
1678
  return r;
1660
1679
  }
1661
- var $e = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = Xe }) => {
1680
+ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = Z }) => {
1662
1681
  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) => {
1663
1682
  if (e) {
1664
1683
  let e = t ?? /* @__PURE__ */ new Date();
@@ -1667,7 +1686,7 @@ var $e = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1667
1686
  b(e);
1668
1687
  };
1669
1688
  e.useEffect(() => {
1670
- j.current &&= (A.current.get(Xe(D))?.focus(), !1);
1689
+ j.current &&= (A.current.get(Z(D))?.focus(), !1);
1671
1690
  }, [D]);
1672
1691
  let ee = (e, t) => {
1673
1692
  let n = new Date(t), r = {
@@ -1694,13 +1713,13 @@ var $e = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1694
1713
  T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1695
1714
  }, N = (e) => {
1696
1715
  n?.(e), b(!1);
1697
- }, P = Qe(C, T);
1716
+ }, P = et(C, T);
1698
1717
  return /* @__PURE__ */ d("div", {
1699
- className: `${Z.wrapper} ${l}`,
1718
+ className: `${X.wrapper} ${l}`,
1700
1719
  children: [
1701
1720
  r && /* @__PURE__ */ u("span", {
1702
1721
  id: `${p}-label`,
1703
- className: Z.label,
1722
+ className: X.label,
1704
1723
  children: r
1705
1724
  }),
1706
1725
  /* @__PURE__ */ d(O.Root, {
@@ -1710,14 +1729,14 @@ var $e = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1710
1729
  asChild: !0,
1711
1730
  children: /* @__PURE__ */ d("button", {
1712
1731
  type: "button",
1713
- className: `${Z.trigger} ${v ? Z.error : ""}`,
1732
+ className: `${X.trigger} ${v ? X.error : ""}`,
1714
1733
  disabled: s,
1715
1734
  "aria-labelledby": r ? `${p}-label ${p}-value` : void 0,
1716
1735
  "aria-invalid": v ? "true" : "false",
1717
1736
  "aria-describedby": a ? m : void 0,
1718
1737
  children: [/* @__PURE__ */ u("span", {
1719
1738
  id: `${p}-value`,
1720
- className: t ? Z.valueText : Z.placeholder,
1739
+ className: t ? X.valueText : X.placeholder,
1721
1740
  children: t ? f(t) : i
1722
1741
  }), /* @__PURE__ */ u(h, {
1723
1742
  size: 14,
@@ -1725,20 +1744,20 @@ var $e = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1725
1744
  })]
1726
1745
  })
1727
1746
  }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
1728
- className: Z.calendar,
1747
+ className: X.calendar,
1729
1748
  align: "start",
1730
1749
  sideOffset: 5,
1731
1750
  "aria-label": r ? `${r} calendar` : "Choose a date",
1732
1751
  onOpenAutoFocus: (e) => {
1733
- e.preventDefault(), A.current.get(Xe(D))?.focus();
1752
+ e.preventDefault(), A.current.get(Z(D))?.focus();
1734
1753
  },
1735
1754
  children: [
1736
1755
  /* @__PURE__ */ d("div", {
1737
- className: Z.header,
1756
+ className: X.header,
1738
1757
  children: [
1739
1758
  /* @__PURE__ */ u("button", {
1740
1759
  type: "button",
1741
- className: Z.navButton,
1760
+ className: X.navButton,
1742
1761
  onClick: te,
1743
1762
  "aria-label": "Previous month",
1744
1763
  children: /* @__PURE__ */ u(g, {
@@ -1747,16 +1766,16 @@ var $e = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1747
1766
  })
1748
1767
  }),
1749
1768
  /* @__PURE__ */ d("span", {
1750
- className: Z.monthLabel,
1769
+ className: X.monthLabel,
1751
1770
  children: [
1752
- Ye[T],
1771
+ Qe[T],
1753
1772
  " ",
1754
1773
  C
1755
1774
  ]
1756
1775
  }),
1757
1776
  /* @__PURE__ */ u("button", {
1758
1777
  type: "button",
1759
- className: Z.navButton,
1778
+ className: X.navButton,
1760
1779
  onClick: ne,
1761
1780
  "aria-label": "Next month",
1762
1781
  children: /* @__PURE__ */ u(_, {
@@ -1767,27 +1786,27 @@ var $e = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1767
1786
  ]
1768
1787
  }),
1769
1788
  /* @__PURE__ */ u("div", {
1770
- className: Z.weekdays,
1771
- children: Je.map((e) => /* @__PURE__ */ u("span", {
1772
- className: Z.weekday,
1789
+ className: X.weekdays,
1790
+ children: Ze.map((e) => /* @__PURE__ */ u("span", {
1791
+ className: X.weekday,
1773
1792
  children: e
1774
1793
  }, e))
1775
1794
  }),
1776
1795
  /* @__PURE__ */ u("div", {
1777
- className: Z.grid,
1796
+ className: X.grid,
1778
1797
  children: P.map((e) => {
1779
- let n = e.getMonth() !== T, r = Ze(e, t), i = Ze(e, x);
1798
+ let n = e.getMonth() !== T, r = $e(e, t), i = $e(e, x);
1780
1799
  return /* @__PURE__ */ u("button", {
1781
1800
  type: "button",
1782
1801
  className: [
1783
- Z.day,
1784
- n ? Z.outside : "",
1785
- r ? Z.selected : "",
1786
- i && !r ? Z.today : ""
1802
+ X.day,
1803
+ n ? X.outside : "",
1804
+ r ? X.selected : "",
1805
+ i && !r ? X.today : ""
1787
1806
  ].filter(Boolean).join(" "),
1788
1807
  onClick: () => N(e),
1789
1808
  ref: (t) => {
1790
- t ? A.current.set(Xe(e), t) : A.current.delete(Xe(e));
1809
+ t ? A.current.set(Z(e), t) : A.current.delete(Z(e));
1791
1810
  },
1792
1811
  "aria-label": e.toLocaleDateString(void 0, {
1793
1812
  weekday: "long",
@@ -1797,7 +1816,7 @@ var $e = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1797
1816
  }),
1798
1817
  "aria-pressed": r,
1799
1818
  "aria-current": i ? "date" : void 0,
1800
- tabIndex: Ze(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1819
+ tabIndex: $e(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1801
1820
  onKeyDown: (t) => ee(t, e),
1802
1821
  children: e.getDate()
1803
1822
  }, e.toISOString());
@@ -1808,103 +1827,128 @@ var $e = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1808
1827
  }),
1809
1828
  a && /* @__PURE__ */ u("span", {
1810
1829
  id: m,
1811
- className: Z.errorText,
1830
+ className: X.errorText,
1812
1831
  role: "alert",
1813
1832
  children: a
1814
1833
  })
1815
1834
  ]
1816
1835
  });
1817
1836
  }, Q = {
1818
- root: "_root_qu8jg_1",
1819
- micro: "_micro_qu8jg_7",
1820
- default: "_default_qu8jg_8",
1821
- large: "_large_qu8jg_9",
1822
- list: "_list_qu8jg_11",
1823
- alignEnd: "_alignEnd_qu8jg_24",
1824
- control: "_control_qu8jg_29",
1825
- link: "_link_qu8jg_55",
1826
- icon: "_icon_qu8jg_56",
1827
- caret: "_caret_qu8jg_56",
1828
- viewportPosition: "_viewportPosition_qu8jg_59",
1829
- viewport: "_viewport_qu8jg_59",
1830
- content: "_content_qu8jg_85"
1831
- }, et = {
1837
+ root: "_root_1n7k4_1",
1838
+ micro: "_micro_1n7k4_7",
1839
+ default: "_default_1n7k4_8",
1840
+ large: "_large_1n7k4_9",
1841
+ list: "_list_1n7k4_11",
1842
+ alignEnd: "_alignEnd_1n7k4_24",
1843
+ alignList: "_alignList_1n7k4_24",
1844
+ control: "_control_1n7k4_29",
1845
+ link: "_link_1n7k4_56",
1846
+ icon: "_icon_1n7k4_57",
1847
+ caret: "_caret_1n7k4_57",
1848
+ viewportPosition: "_viewportPosition_1n7k4_60",
1849
+ panelTrigger: "_panelTrigger_1n7k4_77",
1850
+ viewport: "_viewport_1n7k4_60",
1851
+ content: "_content_1n7k4_106"
1852
+ }, nt = {
1832
1853
  micro: 14,
1833
1854
  default: 14,
1834
1855
  large: 21
1835
- }, tt = e.createContext("default"), nt = e.forwardRef(({ size: e = "default", align: t = "start", panelWidth: n, className: r = "", style: i, children: a, "aria-label": o = "Main navigation", ...s }, c) => {
1836
- let l = n === void 0 ? i : {
1837
- ...i,
1838
- "--panel-width": typeof n == "number" ? `${n}px` : n
1839
- };
1840
- return /* @__PURE__ */ u(tt.Provider, {
1841
- value: e,
1856
+ }, rt = e.createContext("default"), it = 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) => {
1857
+ let p = e.useRef(null), [m, h] = e.useState(null);
1858
+ e.useEffect(() => {
1859
+ let e = p.current;
1860
+ if (!e || r !== "trigger") return;
1861
+ let t = () => {
1862
+ let t = e.querySelector("[data-state=\"open\"][aria-expanded=\"true\"]");
1863
+ t && h(t.getBoundingClientRect().left - e.getBoundingClientRect().left);
1864
+ };
1865
+ t();
1866
+ let n = new MutationObserver(t);
1867
+ n.observe(e, {
1868
+ subtree: !0,
1869
+ attributes: !0,
1870
+ attributeFilter: ["data-state"]
1871
+ });
1872
+ let i = new ResizeObserver(t);
1873
+ return i.observe(e), () => {
1874
+ n.disconnect(), i.disconnect();
1875
+ };
1876
+ }, [r, s]);
1877
+ let g = {
1878
+ ...o,
1879
+ ...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i },
1880
+ ...r === "trigger" && m !== null ? { "--panel-offset": `${Math.round(m)}px` } : {}
1881
+ }, _ = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
1882
+ return /* @__PURE__ */ u(rt.Provider, {
1883
+ value: t,
1842
1884
  children: /* @__PURE__ */ d(j.Root, {
1843
- ...s,
1844
- ref: c,
1845
- "aria-label": o,
1846
- style: l,
1847
- className: `${Q.root} ${Q[e]} ${t === "end" ? Q.alignEnd : ""} ${r}`,
1848
- children: [a, /* @__PURE__ */ u("div", {
1885
+ ...l,
1886
+ ref: (e) => {
1887
+ p.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
1888
+ },
1889
+ "aria-label": c,
1890
+ style: g,
1891
+ className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${_} ${a}`,
1892
+ children: [s, /* @__PURE__ */ u("div", {
1849
1893
  className: Q.viewportPosition,
1850
1894
  children: /* @__PURE__ */ u(j.Viewport, { className: Q.viewport })
1851
1895
  })]
1852
1896
  })
1853
1897
  });
1854
1898
  });
1855
- nt.displayName = "NavigationMenu";
1856
- var rt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
1899
+ it.displayName = "NavigationMenu";
1900
+ var at = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
1857
1901
  ...t,
1858
1902
  ref: n,
1859
1903
  className: `${Q.list} ${e}`
1860
1904
  }));
1861
- rt.displayName = "NavigationMenuList";
1862
- var it = j.Item;
1863
- function at({ icon: t }) {
1864
- let n = e.useContext(tt);
1905
+ at.displayName = "NavigationMenuList";
1906
+ var ot = j.Item;
1907
+ function st({ icon: t }) {
1908
+ let n = e.useContext(rt);
1865
1909
  return t ? /* @__PURE__ */ u("span", {
1866
1910
  className: Q.icon,
1867
1911
  "aria-hidden": "true",
1868
1912
  children: e.cloneElement(t, {
1869
- size: et[n],
1913
+ size: nt[n],
1870
1914
  color: "currentColor"
1871
1915
  })
1872
1916
  }) : null;
1873
1917
  }
1874
- var ot = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
1875
- let o = e.useContext(tt);
1918
+ var ct = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
1919
+ let o = e.useContext(rt);
1876
1920
  return /* @__PURE__ */ d(j.Trigger, {
1877
1921
  ...i,
1878
1922
  ref: a,
1879
1923
  className: `${Q.control} ${t}`,
1880
1924
  children: [
1881
- /* @__PURE__ */ u(at, { icon: n }),
1925
+ /* @__PURE__ */ u(st, { icon: n }),
1882
1926
  r,
1883
1927
  /* @__PURE__ */ u("span", {
1884
1928
  className: Q.caret,
1885
1929
  "aria-hidden": "true",
1886
1930
  children: /* @__PURE__ */ u(h, {
1887
- size: et[o],
1931
+ size: nt[o],
1888
1932
  color: "currentColor"
1889
1933
  })
1890
1934
  })
1891
1935
  ]
1892
1936
  });
1893
1937
  });
1894
- ot.displayName = "NavigationMenuTrigger";
1895
- var st = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
1938
+ ct.displayName = "NavigationMenuTrigger";
1939
+ var lt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
1896
1940
  ...t,
1897
1941
  ref: n,
1898
1942
  className: `${Q.content} ${e}`
1899
1943
  }));
1900
- st.displayName = "NavigationMenuContent";
1901
- var ct = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
1944
+ lt.displayName = "NavigationMenuContent";
1945
+ var ut = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
1902
1946
  ...i,
1903
1947
  ref: a,
1904
1948
  className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
1905
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(at, { icon: t }), r] }) : r
1949
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(st, { icon: t }), r] }) : r
1906
1950
  }));
1907
- ct.displayName = "NavigationMenuLink";
1951
+ ut.displayName = "NavigationMenuLink";
1908
1952
  var $ = {
1909
1953
  panel: "_panel_1hiss_6",
1910
1954
  header: "_header_1hiss_14",
@@ -1936,18 +1980,18 @@ var $ = {
1936
1980
  };
1937
1981
  //#endregion
1938
1982
  //#region src/components/Chat/ChatPanel.tsx
1939
- function lt({ children: e }) {
1983
+ function dt({ children: e }) {
1940
1984
  return /* @__PURE__ */ u("kbd", {
1941
1985
  className: $.kbd,
1942
1986
  children: e
1943
1987
  });
1944
1988
  }
1945
- var ut = /* @__PURE__ */ d(l, { children: [
1946
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(lt, { children: "↵" }), " send"] }),
1947
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(lt, { children: "⇧↵" }), " new line"] }),
1948
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(lt, { children: "esc" }), " close"] })
1989
+ var ft = /* @__PURE__ */ d(l, { children: [
1990
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(dt, { children: "↵" }), " send"] }),
1991
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(dt, { children: "⇧↵" }), " new line"] }),
1992
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(dt, { children: "esc" }), " close"] })
1949
1993
  ] });
1950
- function dt({ header: e, children: t, composer: n, hints: r = ut, className: i = "", threadRef: a, "aria-label": o }) {
1994
+ function pt({ header: e, children: t, composer: n, hints: r = ft, className: i = "", threadRef: a, "aria-label": o }) {
1951
1995
  return /* @__PURE__ */ d("div", {
1952
1996
  className: `${$.panel} ${i}`,
1953
1997
  "aria-label": o,
@@ -1976,7 +2020,7 @@ function dt({ header: e, children: t, composer: n, hints: r = ut, className: i =
1976
2020
  }
1977
2021
  //#endregion
1978
2022
  //#region src/components/Chat/Message.tsx
1979
- function ft({ children: e, className: t = "" }) {
2023
+ function mt({ children: e, className: t = "" }) {
1980
2024
  return /* @__PURE__ */ u("div", {
1981
2025
  className: $.userRow,
1982
2026
  children: /* @__PURE__ */ u("div", {
@@ -1985,7 +2029,7 @@ function ft({ children: e, className: t = "" }) {
1985
2029
  })
1986
2030
  });
1987
2031
  }
1988
- function pt({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2032
+ function ht({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
1989
2033
  return /* @__PURE__ */ d("div", {
1990
2034
  className: `${$.assistant} ${r}`,
1991
2035
  children: [/* @__PURE__ */ d("div", {
@@ -2002,13 +2046,13 @@ function pt({ label: e = "Assistant", icon: t, children: n, className: r = "" })
2002
2046
  }
2003
2047
  //#endregion
2004
2048
  //#region src/components/Chat/Composer.tsx
2005
- var mt = 18, ht = 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) {
2049
+ var gt = 18, _t = 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) {
2006
2050
  let x = s(null);
2007
2051
  o(b, () => ({ focus: () => x.current?.focus() }), []), i(() => {
2008
2052
  let e = x.current;
2009
2053
  if (!e) return;
2010
2054
  e.style.height = "auto";
2011
- let t = mt * _ + 12;
2055
+ let t = gt * _ + 12;
2012
2056
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
2013
2057
  }, [e, _]);
2014
2058
  let S = !c && !m && e.trim().length > 0, w = r(() => {
@@ -2064,7 +2108,7 @@ var mt = 18, ht = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2064
2108
  });
2065
2109
  //#endregion
2066
2110
  //#region src/components/Chat/Citation.tsx
2067
- function gt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2111
+ function vt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2068
2112
  let a = `${$.ref} ${i}`;
2069
2113
  return t ? /* @__PURE__ */ u("a", {
2070
2114
  href: t,
@@ -2082,7 +2126,7 @@ function gt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2082
2126
  children: e
2083
2127
  });
2084
2128
  }
2085
- function _t({ items: e, label: t = "Sources", className: n = "" }) {
2129
+ function yt({ items: e, label: t = "Sources", className: n = "" }) {
2086
2130
  return e.length === 0 ? null : /* @__PURE__ */ d("div", {
2087
2131
  className: `${$.stack} ${n}`,
2088
2132
  children: [/* @__PURE__ */ u("div", {
@@ -2091,7 +2135,7 @@ function _t({ items: e, label: t = "Sources", className: n = "" }) {
2091
2135
  }), /* @__PURE__ */ u("div", {
2092
2136
  className: $.wrap,
2093
2137
  children: e.map((e) => {
2094
- let t = /* @__PURE__ */ d(Me, {
2138
+ let t = /* @__PURE__ */ d(Ne, {
2095
2139
  icon: e.icon,
2096
2140
  children: [
2097
2141
  /* @__PURE__ */ u("span", {
@@ -2119,7 +2163,7 @@ function _t({ items: e, label: t = "Sources", className: n = "" }) {
2119
2163
  }
2120
2164
  //#endregion
2121
2165
  //#region src/components/Chat/StreamStatus.tsx
2122
- function vt({ children: e, className: t = "" }) {
2166
+ function bt({ children: e, className: t = "" }) {
2123
2167
  return /* @__PURE__ */ d("div", {
2124
2168
  className: `${$.status} ${t}`,
2125
2169
  role: "status",
@@ -2131,7 +2175,7 @@ function vt({ children: e, className: t = "" }) {
2131
2175
  }
2132
2176
  //#endregion
2133
2177
  //#region src/components/Chat/Suggestions.tsx
2134
- function yt({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2178
+ function xt({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2135
2179
  return /* @__PURE__ */ d("div", {
2136
2180
  className: `${$.suggestions} ${r}`,
2137
2181
  children: [/* @__PURE__ */ u("div", {
@@ -2150,7 +2194,7 @@ function yt({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
2150
2194
  }
2151
2195
  //#endregion
2152
2196
  //#region src/components/Chat/AnswerActions.tsx
2153
- function bt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2197
+ function St({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2154
2198
  return /* @__PURE__ */ d("div", {
2155
2199
  className: `${$.actions} ${i}`,
2156
2200
  children: [
@@ -2172,21 +2216,21 @@ function bt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
2172
2216
  ]
2173
2217
  });
2174
2218
  }
2175
- var xt = {
2219
+ var Ct = {
2176
2220
  truncate: "_truncate_za4sm_1",
2177
2221
  start: "_start_za4sm_13"
2178
2222
  };
2179
2223
  //#endregion
2180
2224
  //#region src/components/Truncate/Truncate.tsx
2181
- function St({ children: e, side: t = "end", title: n, className: r = "" }) {
2225
+ function wt({ children: e, side: t = "end", title: n, className: r = "" }) {
2182
2226
  let i = n ?? (typeof e == "string" ? e : void 0);
2183
2227
  return /* @__PURE__ */ u("span", {
2184
- className: `${xt.truncate} ${t === "start" ? xt.start : ""} ${r}`,
2228
+ className: `${Ct.truncate} ${t === "start" ? Ct.start : ""} ${r}`,
2185
2229
  title: i,
2186
2230
  children: t === "start" ? /* @__PURE__ */ u("bdi", { children: e }) : e
2187
2231
  });
2188
2232
  }
2189
- var Ct = {
2233
+ var Tt = {
2190
2234
  disclosure: "_disclosure_94bgy_1",
2191
2235
  trigger: "_trigger_94bgy_7",
2192
2236
  summary: "_summary_94bgy_31",
@@ -2195,24 +2239,24 @@ var Ct = {
2195
2239
  };
2196
2240
  //#endregion
2197
2241
  //#region src/components/Disclosure/Disclosure.tsx
2198
- function wt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2242
+ function Et({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2199
2243
  let [s, c] = e.useState(i), l = r ?? s, f = e.useId();
2200
2244
  return /* @__PURE__ */ d("div", {
2201
- className: `${Ct.disclosure} ${o}`,
2245
+ className: `${Tt.disclosure} ${o}`,
2202
2246
  "data-state": l ? "open" : "closed",
2203
2247
  children: [/* @__PURE__ */ d("button", {
2204
2248
  type: "button",
2205
- className: Ct.trigger,
2249
+ className: Tt.trigger,
2206
2250
  "aria-expanded": l,
2207
2251
  "aria-controls": l ? f : void 0,
2208
2252
  onClick: () => {
2209
2253
  r === void 0 && c(!l), a?.(!l);
2210
2254
  },
2211
2255
  children: [/* @__PURE__ */ u("span", {
2212
- className: Ct.summary,
2256
+ className: Tt.summary,
2213
2257
  children: t
2214
2258
  }), /* @__PURE__ */ u("span", {
2215
- className: Ct.chevron,
2259
+ className: Tt.chevron,
2216
2260
  "aria-hidden": "true",
2217
2261
  children: u(l ? h : _, {
2218
2262
  size: 14,
@@ -2221,10 +2265,10 @@ function wt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
2221
2265
  })]
2222
2266
  }), l && /* @__PURE__ */ u("div", {
2223
2267
  id: f,
2224
- className: Ct.content,
2268
+ className: Tt.content,
2225
2269
  children: n
2226
2270
  })]
2227
2271
  });
2228
2272
  }
2229
2273
  //#endregion
2230
- export { Fe as Alert, Le as AlertDescription, Ie as AlertTitle, bt as AnswerActions, pt as AssistantMessage, ae as Base, Oe as Breadcrumbs, P as Button, Ge as Chart, dt as ChatPanel, re as Checkbox, Me as Chip, _t as CitationList, gt as CitationRef, ht as Composer, $e as DatePicker, wt as Disclosure, oe as FilterPanelBase, le as InputField, lt as Kbd, qe as Modal, nt as NavigationMenu, st as NavigationMenuContent, it as NavigationMenuItem, ct as NavigationMenuLink, rt as NavigationMenuList, ot as NavigationMenuTrigger, ge as Popover, Ae as ProgressBar, ue as RadioButton, ce as SearchField, me as Select, pe as Slider, N as Spinner, vt as StreamStatus, yt as Suggestions, _e as Table, be as TableCell, ve as TableHeader, Se as TableIcon, ye as TableRow, xe as TableValue, Te as Tabs, Ke as Textarea, fe as ToggleSwitch, ze as Tooltip, St as Truncate, ft as UserMessage, ut as defaultChatHints, ne as spinnerNames };
2274
+ export { Ie as Alert, Re as AlertDescription, Le as AlertTitle, St as AnswerActions, ht as AssistantMessage, ae as Base, ke as Breadcrumbs, P as Button, Je as Chart, pt as ChatPanel, re as Checkbox, Ne as Chip, yt as CitationList, vt as CitationRef, _t as Composer, tt as DatePicker, Et as Disclosure, oe as FilterPanelBase, le as InputField, dt as Kbd, Xe as Modal, it as NavigationMenu, lt as NavigationMenuContent, ot as NavigationMenuItem, ut as NavigationMenuLink, at as NavigationMenuList, ct as NavigationMenuTrigger, _e as Popover, je as ProgressBar, de as RadioButton, Be as SaveBar, ce as SearchField, he as Select, me as Slider, N as Spinner, bt as StreamStatus, xt as Suggestions, ve as Table, xe as TableCell, ye as TableHeader, Ce as TableIcon, be as TableRow, Se as TableValue, Ee as Tabs, Ye as Textarea, pe as ToggleSwitch, He as Tooltip, wt as Truncate, mt as UserMessage, ft as defaultChatHints, ne as spinnerNames };