@indxsearch/systm 2.12.0 → 2.13.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
@@ -519,12 +519,12 @@ function ce({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
519
519
  });
520
520
  }
521
521
  var R = {
522
- wrapper: "_wrapper_su5p5_1",
523
- label: "_label_su5p5_7",
524
- input: "_input_su5p5_12",
525
- error: "_error_su5p5_61",
526
- errorText: "_errorText_su5p5_69",
527
- borderBottom: "_borderBottom_su5p5_75"
522
+ wrapper: "_wrapper_roite_1",
523
+ label: "_label_roite_10",
524
+ input: "_input_roite_15",
525
+ error: "_error_roite_68",
526
+ errorText: "_errorText_roite_76",
527
+ borderBottom: "_borderBottom_roite_82"
528
528
  };
529
529
  //#endregion
530
530
  //#region src/components/InputField/InputField.tsx
@@ -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 ue = {
560
+ var z = {
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
+ }, ue = ({ 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: `${z.radioWrapper} ${o ? z.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: z.radioInput
580
580
  }),
581
- /* @__PURE__ */ u("span", { className: ue.customRadio }),
581
+ /* @__PURE__ */ u("span", { className: z.customRadio }),
582
582
  /* @__PURE__ */ u("span", {
583
- className: ue.labelText,
583
+ className: z.labelText,
584
584
  children: r
585
585
  })
586
586
  ]
587
- }), fe = {
587
+ }), de = {
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
+ }, fe = ({ 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: `${de.switch} ${i ? de.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: de.slider,
610
610
  "aria-hidden": "true"
611
611
  }),
612
612
  a && /* @__PURE__ */ u("span", {
613
- className: fe.label,
613
+ className: de.label,
614
614
  children: a
615
615
  })
616
616
  ]
617
617
  });
618
- }, z = {
618
+ }, B = {
619
619
  label: "_label_12as9_1",
620
620
  basetrack: "_basetrack_12as9_8",
621
621
  selectedtrack: "_selectedtrack_12as9_36",
@@ -624,15 +624,15 @@ var ue = {
624
624
  livetrackDefault: "_livetrackDefault_12as9_52",
625
625
  thumbs: "_thumbs_12as9_55",
626
626
  disabled: "_disabled_12as9_89"
627
- }, me = (t) => {
627
+ }, pe = (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: z.label,
632
+ className: B.label,
633
633
  children: h
634
634
  }), /* @__PURE__ */ u("div", {
635
- className: `${z.basetrack} ${z.disabled}`,
635
+ className: `${B.basetrack} ${B.disabled}`,
636
636
  "aria-hidden": "true"
637
637
  })]
638
638
  });
@@ -642,7 +642,7 @@ var ue = {
642
642
  className: o,
643
643
  children: [h && /* @__PURE__ */ u("label", {
644
644
  htmlFor: y,
645
- className: z.label,
645
+ className: B.label,
646
646
  children: h
647
647
  }), /* @__PURE__ */ u(E, {
648
648
  step: i,
@@ -656,11 +656,11 @@ var ue = {
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: z.basetrack,
659
+ className: B.basetrack,
660
660
  style: { ...a.style },
661
661
  children: [
662
662
  !v && /* @__PURE__ */ u("div", {
663
- className: z.selectedtrack,
663
+ className: B.selectedtrack,
664
664
  style: {
665
665
  left: `${p}%`,
666
666
  width: `${m}%`,
@@ -668,7 +668,7 @@ var ue = {
668
668
  }
669
669
  }),
670
670
  v && /* @__PURE__ */ u("div", {
671
- className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
671
+ className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
672
672
  style: {
673
673
  left: `${h}%`,
674
674
  width: `${g}%`,
@@ -684,7 +684,7 @@ var ue = {
684
684
  return /* @__PURE__ */ u("div", {
685
685
  ...o,
686
686
  id: t === 0 ? y : void 0,
687
- className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
687
+ className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
688
688
  style: {
689
689
  ...o.style,
690
690
  zIndex: "3"
@@ -703,7 +703,7 @@ var ue = {
703
703
  className: o,
704
704
  children: [h && /* @__PURE__ */ u("label", {
705
705
  htmlFor: y,
706
- className: z.label,
706
+ className: B.label,
707
707
  children: h
708
708
  }), /* @__PURE__ */ u(E, {
709
709
  step: i,
@@ -717,11 +717,11 @@ var ue = {
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: z.basetrack,
720
+ className: B.basetrack,
721
721
  style: { ...o.style },
722
722
  children: [
723
723
  !g && /* @__PURE__ */ u("div", {
724
- className: z.selectedtrack,
724
+ className: B.selectedtrack,
725
725
  style: {
726
726
  left: "0%",
727
727
  width: `${p}%`,
@@ -729,7 +729,7 @@ var ue = {
729
729
  }
730
730
  }),
731
731
  g && /* @__PURE__ */ u("div", {
732
- className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
732
+ className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
733
733
  style: {
734
734
  left: `${m}%`,
735
735
  width: `${h}%`,
@@ -745,7 +745,7 @@ var ue = {
745
745
  return /* @__PURE__ */ u("div", {
746
746
  ...o,
747
747
  id: y,
748
- className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
748
+ className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
749
749
  style: {
750
750
  ...o.style,
751
751
  zIndex: "3"
@@ -759,7 +759,7 @@ var ue = {
759
759
  })]
760
760
  });
761
761
  }
762
- }, B = {
762
+ }, V = {
763
763
  wrapper: "_wrapper_15fsv_1",
764
764
  label: "_label_15fsv_7",
765
765
  trigger: "_trigger_15fsv_12",
@@ -771,14 +771,14 @@ var ue = {
771
771
  viewport: "_viewport_15fsv_76",
772
772
  item: "_item_15fsv_82",
773
773
  itemIndicator: "_itemIndicator_15fsv_105"
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 }) => {
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 }) => {
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: `${B.trigger} ${B[c]} ${a} cursor-pointer`,
781
+ className: `${V.trigger} ${V[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 ue = {
788
788
  },
789
789
  children: [v?.icon, /* @__PURE__ */ u(D.Value, { placeholder: i })]
790
790
  }), /* @__PURE__ */ u(D.Icon, {
791
- className: B.icon,
791
+ className: V.icon,
792
792
  "aria-hidden": "true",
793
793
  children: /* @__PURE__ */ u(h, {
794
794
  size: c === "large" ? 21 : 14,
@@ -796,16 +796,16 @@ var ue = {
796
796
  })
797
797
  })]
798
798
  }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
799
- className: B.content,
799
+ className: V.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: B.viewport,
805
+ className: V.viewport,
806
806
  children: r.map((e) => /* @__PURE__ */ d(D.Item, {
807
807
  value: e.value,
808
- className: B.item,
808
+ className: V.item,
809
809
  children: [/* @__PURE__ */ d("span", {
810
810
  style: {
811
811
  display: "inline-flex",
@@ -814,7 +814,7 @@ var ue = {
814
814
  },
815
815
  children: [e.icon, /* @__PURE__ */ u(D.ItemText, { children: e.label })]
816
816
  }), /* @__PURE__ */ u(D.ItemIndicator, {
817
- className: B.itemIndicator,
817
+ className: V.itemIndicator,
818
818
  children: /* @__PURE__ */ u(m, {
819
819
  size: 12,
820
820
  color: "currentColor"
@@ -825,22 +825,22 @@ var ue = {
825
825
  }) })]
826
826
  });
827
827
  return s ? /* @__PURE__ */ d("div", {
828
- className: B.wrapper,
828
+ className: V.wrapper,
829
829
  children: [/* @__PURE__ */ u("label", {
830
830
  id: _,
831
831
  htmlFor: g,
832
- className: B.label,
832
+ className: V.label,
833
833
  children: s
834
834
  }), y]
835
835
  }) : y;
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, {
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, {
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: `${ge.content} ${s}`,
843
+ className: `${he.content} ${s}`,
844
844
  align: i,
845
845
  side: a,
846
846
  sideOffset: o,
@@ -848,84 +848,98 @@ var ue = {
848
848
  "aria-describedby": l,
849
849
  children: t
850
850
  }) })]
851
- }), V = {
852
- table: "_table_1b0iq_1",
853
- caption: "_caption_1b0iq_8",
854
- headerRow: "_headerRow_1b0iq_25",
855
- dataRow: "_dataRow_1b0iq_33",
856
- cellInner: "_cellInner_1b0iq_41",
857
- cellLabel: "_cellLabel_1b0iq_47",
858
- cellContent: "_cellContent_1b0iq_52",
859
- value: "_value_1b0iq_58",
860
- icon: "_icon_1b0iq_64"
851
+ }), H = {
852
+ table: "_table_j6zqj_1",
853
+ caption: "_caption_j6zqj_8",
854
+ headerRow: "_headerRow_j6zqj_25",
855
+ dataRow: "_dataRow_j6zqj_33",
856
+ cellInner: "_cellInner_j6zqj_41",
857
+ cellLabel: "_cellLabel_j6zqj_47",
858
+ cellContent: "_cellContent_j6zqj_52",
859
+ value: "_value_j6zqj_58",
860
+ icon: "_icon_j6zqj_64",
861
+ scroll: "_scroll_j6zqj_74",
862
+ bleedEnd: "_bleedEnd_j6zqj_87",
863
+ stickyFirst: "_stickyFirst_j6zqj_110"
861
864
  };
862
865
  //#endregion
863
866
  //#region src/components/Table/Table.tsx
864
- function ve({ children: e, caption: t, "aria-label": n }) {
865
- return /* @__PURE__ */ d("table", {
866
- className: V.table,
867
+ function _e({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
868
+ let o = /* @__PURE__ */ d("table", {
869
+ className: `${H.table} ${r && i ? H.stickyFirst : ""}`,
867
870
  "aria-label": n,
868
871
  children: [t && /* @__PURE__ */ u("caption", {
869
- className: V.caption,
872
+ className: H.caption,
870
873
  children: t
871
874
  }), e]
872
875
  });
876
+ return r ? /* @__PURE__ */ u("div", {
877
+ className: `${H.scroll} ${a === void 0 ? "" : H.bleedEnd}`,
878
+ style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
879
+ role: "region",
880
+ "aria-label": n ?? t,
881
+ tabIndex: 0,
882
+ children: o
883
+ }) : o;
873
884
  }
874
885
  //#endregion
875
886
  //#region src/components/Table/TableHeader.tsx
876
- function ye({ children: t }) {
887
+ function ve({ children: t }) {
877
888
  let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ u("th", {
878
889
  scope: "col",
879
890
  ...t.props
880
891
  }) : t);
881
892
  return /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
882
- className: V.headerRow,
893
+ className: H.headerRow,
883
894
  children: n
884
895
  }) });
885
896
  }
886
897
  //#endregion
887
898
  //#region src/components/Table/TableRow.tsx
888
- function be({ children: e }) {
899
+ function ye({ children: e }) {
889
900
  return /* @__PURE__ */ u("tr", {
890
- className: V.dataRow,
901
+ className: H.dataRow,
891
902
  children: e
892
903
  });
893
904
  }
894
905
  //#endregion
895
906
  //#region src/components/Table/TableCell.tsx
896
- function xe({ label: e, children: t, isHeader: n = !1, scope: r }) {
897
- let i = n ? "th" : "td", a = n && r ? { scope: r } : {};
898
- return e || t ? /* @__PURE__ */ u(i, {
899
- ...a,
907
+ function be({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
908
+ let a = n ? "th" : "td", o = {
909
+ ...n && r ? { scope: r } : {},
910
+ ...i ? { colSpan: i } : {}
911
+ };
912
+ return e || t ? /* @__PURE__ */ u(a, {
913
+ ...o,
900
914
  children: /* @__PURE__ */ d("div", {
901
- className: V.cellInner,
915
+ className: H.cellInner,
902
916
  children: [e && /* @__PURE__ */ u("span", {
903
- className: V.cellLabel,
917
+ className: H.cellLabel,
904
918
  children: e
905
919
  }), t && /* @__PURE__ */ u("div", {
906
- className: V.cellContent,
920
+ className: H.cellContent,
907
921
  children: t
908
922
  })]
909
923
  })
910
- }) : /* @__PURE__ */ u(i, {
911
- ...a,
924
+ }) : /* @__PURE__ */ u(a, {
925
+ ...o,
912
926
  children: t
913
927
  });
914
928
  }
915
929
  //#endregion
916
930
  //#region src/components/Table/TableValue.tsx
917
- function Se({ children: e }) {
931
+ function xe({ children: e }) {
918
932
  return /* @__PURE__ */ u("span", {
919
- className: V.value,
933
+ className: H.value,
920
934
  children: e
921
935
  });
922
936
  }
923
937
  //#endregion
924
938
  //#region src/components/Table/TableIcon.tsx
925
- function Ce({ children: t, "aria-label": n }) {
939
+ function Se({ children: t, "aria-label": n }) {
926
940
  let r = !n;
927
941
  return /* @__PURE__ */ u("span", {
928
- className: V.icon,
942
+ className: H.icon,
929
943
  "aria-hidden": r ? "true" : void 0,
930
944
  "aria-label": n,
931
945
  children: e.cloneElement(t, {
@@ -934,114 +948,163 @@ function Ce({ children: t, "aria-label": n }) {
934
948
  })
935
949
  });
936
950
  }
937
- var H = {
938
- tabs: "_tabs_13m5x_1",
939
- scrollable: "_scrollable_13m5x_11",
940
- tab: "_tab_13m5x_1",
941
- icon: "_icon_13m5x_53",
942
- active: "_active_13m5x_63",
943
- micro: "_micro_13m5x_69",
944
- default: "_default_13m5x_76",
945
- large: "_large_13m5x_83"
946
- }, we = {
951
+ var U = {
952
+ tabs: "_tabs_5w265_1",
953
+ scrollable: "_scrollable_5w265_16",
954
+ tab: "_tab_5w265_1",
955
+ icon: "_icon_5w265_52",
956
+ badge: "_badge_5w265_70",
957
+ active: "_active_5w265_81",
958
+ micro: "_micro_5w265_87",
959
+ default: "_default_5w265_94",
960
+ large: "_large_5w265_101",
961
+ buttonVariant: "_buttonVariant_5w265_110",
962
+ bleed: "_bleed_5w265_143"
963
+ };
964
+ //#endregion
965
+ //#region src/components/Tabs/Tabs.tsx
966
+ function Ce(e, t) {
967
+ if (!e || !t) return;
968
+ let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
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
+ }
971
+ var we = {
947
972
  micro: 14,
948
973
  default: 14,
949
974
  large: 21
950
975
  };
951
- function Te({ items: e, value: r, onValueChange: o, size: l = "default", scrollable: f = !1, getPanelId: p }) {
952
- let m = s(null), h = s(/* @__PURE__ */ new Map()), g = a(), [_, v] = c({
953
- start: !1,
954
- end: !1
955
- }), y = Math.max(e.findIndex((e) => e.value === r), 0), b = (t) => {
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: _ }) {
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) => {
956
978
  let n = e[t];
957
979
  if (!n) return;
958
980
  o(n.value);
959
- let r = h.current.get(n.value);
960
- r?.focus({ preventScroll: !0 }), f && r?.scrollIntoView({
961
- block: "nearest",
962
- inline: "nearest"
963
- });
964
- }, x = (t, n) => {
981
+ let r = y.current.get(n.value);
982
+ r?.focus({ preventScroll: !0 }), p && Ce(v.current, r);
983
+ }, w = (t, n) => {
984
+ for (let r = 1; r <= e.length; r++) {
985
+ let i = (t + n * r + e.length * r) % e.length;
986
+ if (!e[i].disabled) return i;
987
+ }
988
+ }, T = (t, n) => {
965
989
  if (e.length === 0) return;
966
990
  let r;
967
991
  switch (t.key) {
968
992
  case "ArrowLeft":
969
- r = (n - 1 + e.length) % e.length;
993
+ r = w(n, -1);
970
994
  break;
971
995
  case "ArrowRight":
972
- r = (n + 1) % e.length;
996
+ r = w(n, 1);
973
997
  break;
974
998
  case "Home":
975
- r = 0;
999
+ r = w(-1, 1);
976
1000
  break;
977
1001
  case "End":
978
- r = e.length - 1;
1002
+ r = w(e.length, -1);
979
1003
  break;
980
1004
  default: return;
981
1005
  }
982
- t.preventDefault(), b(r);
1006
+ t.preventDefault(), r !== void 0 && C(r);
983
1007
  };
984
1008
  return i(() => {
985
- let e = m.current;
986
- if (!f || !e) return;
1009
+ let e = v.current;
1010
+ if (!p || !e) return;
1011
+ if (m !== void 0) {
1012
+ e.style.removeProperty("--tabs-fade-start"), e.style.removeProperty("--tabs-fade-end");
1013
+ return;
1014
+ }
987
1015
  let t = () => {
988
- let t = e.scrollLeft > 1, n = Math.ceil(e.scrollLeft + e.clientWidth) < e.scrollWidth - 1;
989
- v((e) => e.start === t && e.end === n ? e : {
990
- start: t,
991
- end: n
992
- });
1016
+ let t = Math.min(e.scrollLeft, 32), n = Math.min(Math.max(e.scrollWidth - e.clientWidth - e.scrollLeft, 0), 32);
1017
+ e.style.setProperty("--tabs-fade-start", `${t}px`), e.style.setProperty("--tabs-fade-end", `${n}px`);
993
1018
  };
994
1019
  t(), e.addEventListener("scroll", t, { passive: !0 });
995
1020
  let n = new ResizeObserver(t);
996
1021
  return n.observe(e), () => {
997
1022
  e.removeEventListener("scroll", t), n.disconnect();
998
1023
  };
999
- }, [f, e.length]), /* @__PURE__ */ u("div", {
1000
- ref: m,
1001
- className: `${H.tabs} ${f ? H.scrollable : ""}`,
1002
- "data-overflow-start": f && _.start ? "" : void 0,
1003
- "data-overflow-end": f && _.end ? "" : void 0,
1004
- role: "tablist",
1024
+ }, [
1025
+ p,
1026
+ m,
1027
+ e.length
1028
+ ]), i(() => {
1029
+ p && Ce(v.current, y.current.get(r));
1030
+ }, [p, r]), /* @__PURE__ */ u("div", {
1031
+ ref: v,
1032
+ className: `${U.tabs} ${f === "button" ? U.buttonVariant : ""} ${p ? U.scrollable : ""} ${p && m !== void 0 ? U.bleed : ""}`,
1033
+ style: p && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
1034
+ role: S ? "navigation" : "tablist",
1035
+ "aria-label": g,
1005
1036
  children: e.map((e, r) => {
1006
- let i = r === y;
1007
- return /* @__PURE__ */ d("button", {
1037
+ let i = r === x, a = /* @__PURE__ */ d(l, { children: [
1038
+ e.icon ? /* @__PURE__ */ u("span", {
1039
+ className: U.icon,
1040
+ "aria-hidden": "true",
1041
+ children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: we[c] }) : e.icon
1042
+ }) : null,
1043
+ e.label,
1044
+ e.badge != null && e.badge !== !1 ? /* @__PURE__ */ u("span", {
1045
+ className: U.badge,
1046
+ title: e.badgeTitle,
1047
+ children: e.badge
1048
+ }) : null
1049
+ ] }), s = `${U.tab} ${U[c]} ${i ? U.active : ""}`;
1050
+ if (e.href !== void 0) {
1051
+ let t = {
1052
+ id: `${b}-tab-${e.value}`,
1053
+ className: s,
1054
+ href: e.disabled ? void 0 : e.href,
1055
+ "aria-current": i ? "page" : void 0,
1056
+ "aria-disabled": e.disabled || void 0,
1057
+ title: e.title,
1058
+ children: a
1059
+ };
1060
+ return /* @__PURE__ */ u("span", {
1061
+ style: { display: "contents" },
1062
+ ref: (t) => {
1063
+ let n = t?.firstElementChild;
1064
+ n ? y.current.set(e.value, n) : y.current.delete(e.value);
1065
+ },
1066
+ children: _ ? _(e, t) : /* @__PURE__ */ u("a", { ...t })
1067
+ }, e.value);
1068
+ }
1069
+ return /* @__PURE__ */ u("button", {
1008
1070
  ref: (t) => {
1009
- t ? h.current.set(e.value, t) : h.current.delete(e.value);
1071
+ t ? y.current.set(e.value, t) : y.current.delete(e.value);
1010
1072
  },
1011
- id: `${g}-tab-${e.value}`,
1073
+ id: `${b}-tab-${e.value}`,
1012
1074
  role: "tab",
1013
1075
  type: "button",
1014
1076
  "aria-selected": i,
1015
- "aria-controls": p?.(e),
1077
+ "aria-controls": h?.(e),
1078
+ "aria-disabled": e.disabled || void 0,
1079
+ title: e.title,
1016
1080
  tabIndex: i ? 0 : -1,
1017
- className: `${H.tab} ${H[l]} ${i ? H.active : ""}`,
1018
- onClick: () => o(e.value),
1019
- onKeyDown: (e) => x(e, r),
1020
- children: [e.icon ? /* @__PURE__ */ u("span", {
1021
- className: H.icon,
1022
- "aria-hidden": "true",
1023
- children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: we[l] }) : e.icon
1024
- }) : null, e.label]
1081
+ className: s,
1082
+ onClick: () => {
1083
+ e.disabled || o(e.value);
1084
+ },
1085
+ onKeyDown: (e) => T(e, r),
1086
+ children: a
1025
1087
  }, e.value);
1026
1088
  })
1027
1089
  });
1028
1090
  }
1029
- var U = {
1030
- root: "_root_1vvif_1",
1031
- micro: "_micro_1vvif_2",
1032
- default: "_default_1vvif_3",
1033
- list: "_list_1vvif_4",
1034
- item: "_item_1vvif_5",
1035
- separator: "_separator_1vvif_6",
1036
- step: "_step_1vvif_7",
1037
- switchable: "_switchable_1vvif_8",
1038
- label: "_label_1vvif_8",
1039
- text: "_text_1vvif_11",
1040
- trigger: "_trigger_1vvif_12",
1041
- icon: "_icon_1vvif_16",
1042
- option: "_option_1vvif_17",
1043
- menu: "_menu_1vvif_18",
1044
- menuDivider: "_menuDivider_1vvif_19"
1091
+ var W = {
1092
+ root: "_root_wrjxq_1",
1093
+ micro: "_micro_wrjxq_2",
1094
+ default: "_default_wrjxq_3",
1095
+ list: "_list_wrjxq_4",
1096
+ item: "_item_wrjxq_5",
1097
+ separator: "_separator_wrjxq_6",
1098
+ step: "_step_wrjxq_7",
1099
+ switchable: "_switchable_wrjxq_8",
1100
+ label: "_label_wrjxq_8",
1101
+ text: "_text_wrjxq_11",
1102
+ trigger: "_trigger_wrjxq_12",
1103
+ icon: "_icon_wrjxq_16",
1104
+ option: "_option_wrjxq_17",
1105
+ menu: "_menu_wrjxq_18",
1106
+ menuDivider: "_menuDivider_wrjxq_19",
1107
+ truncate: "_truncate_wrjxq_32"
1045
1108
  };
1046
1109
  //#endregion
1047
1110
  //#region src/components/Breadcrumbs/Breadcrumbs.tsx
@@ -1051,47 +1114,49 @@ function Ee(t) {
1051
1114
  color: "currentColor"
1052
1115
  }) : t;
1053
1116
  }
1054
- var De = "\0action", Oe = ({ items: e, size: t = "default", className: n = "", separator: r = /* @__PURE__ */ u(_, {
1117
+ var De = "\0action", Oe = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1055
1118
  size: 14,
1056
1119
  color: "currentColor"
1057
- }), renderLink: i, "aria-label": a = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
1058
- "aria-label": a,
1059
- className: `${U.root} ${U[t]} ${n}`,
1120
+ }), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
1121
+ "aria-label": o,
1122
+ className: `${W.root} ${W[t]} ${n === "truncate" ? W.truncate : ""} ${r}`,
1060
1123
  children: /* @__PURE__ */ u("ol", {
1061
- className: U.list,
1062
- children: e.map((t, n) => /* @__PURE__ */ d("li", {
1063
- className: U.item,
1064
- children: [n > 0 && /* @__PURE__ */ u("span", {
1065
- className: U.separator,
1124
+ className: W.list,
1125
+ children: e.map((t, r) => /* @__PURE__ */ d("li", {
1126
+ className: W.item,
1127
+ children: [r > 0 && /* @__PURE__ */ u("span", {
1128
+ className: W.separator,
1066
1129
  "aria-hidden": "true",
1067
- children: r
1130
+ children: i
1068
1131
  }), /* @__PURE__ */ d("div", {
1069
- className: `${U.step} ${t.switcher ? U.switchable : ""}`,
1132
+ className: `${W.step} ${t.switcher ? W.switchable : ""}`,
1070
1133
  children: [t.href ? (() => {
1071
- let r = {
1072
- className: U.label,
1134
+ let i = {
1135
+ className: W.label,
1073
1136
  href: t.href,
1137
+ title: n === "truncate" ? t.label : void 0,
1074
1138
  onClick: t.onClick,
1075
- "aria-current": n === e.length - 1 ? "page" : void 0,
1139
+ "aria-current": r === e.length - 1 ? "page" : void 0,
1076
1140
  children: /* @__PURE__ */ d(l, { children: [t.icon && /* @__PURE__ */ u("span", {
1077
- className: U.icon,
1141
+ className: W.icon,
1078
1142
  "aria-hidden": "true",
1079
1143
  children: Ee(t.icon)
1080
1144
  }), /* @__PURE__ */ u("span", {
1081
- className: U.text,
1145
+ className: W.text,
1082
1146
  children: t.label
1083
1147
  })] })
1084
1148
  };
1085
- return i ? i(t, r) : /* @__PURE__ */ u("a", { ...r });
1149
+ return a ? a(t, i) : /* @__PURE__ */ u("a", { ...i });
1086
1150
  })() : /* @__PURE__ */ d("span", {
1087
- className: U.label,
1088
- "aria-current": n === e.length - 1 ? "page" : void 0,
1151
+ className: W.label,
1152
+ title: n === "truncate" ? t.label : void 0,
1153
+ "aria-current": r === e.length - 1 ? "page" : void 0,
1089
1154
  children: [t.icon && /* @__PURE__ */ u("span", {
1090
- className: U.icon,
1155
+ className: W.icon,
1091
1156
  "aria-hidden": "true",
1092
1157
  children: Ee(t.icon)
1093
1158
  }), /* @__PURE__ */ u("span", {
1094
- className: U.text,
1159
+ className: W.text,
1095
1160
  children: t.label
1096
1161
  })]
1097
1162
  }), t.switcher && /* @__PURE__ */ d(D.Root, {
@@ -1099,50 +1164,50 @@ var De = "\0action", Oe = ({ items: e, size: t = "default", className: n = "", s
1099
1164
  onValueChange: (e) => e === De ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1100
1165
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1101
1166
  children: [/* @__PURE__ */ u(D.Trigger, {
1102
- className: U.trigger,
1167
+ className: W.trigger,
1103
1168
  "aria-label": `${t.switcher.label}: ${t.label}`,
1104
1169
  children: /* @__PURE__ */ u(D.Icon, {
1105
1170
  "aria-hidden": "true",
1106
- className: U.icon,
1171
+ className: W.icon,
1107
1172
  children: /* @__PURE__ */ u(y, {
1108
1173
  size: 14,
1109
1174
  color: "currentColor"
1110
1175
  })
1111
1176
  })
1112
1177
  }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
1113
- className: `${B.content} ${U.menu}`,
1178
+ className: `${V.content} ${W.menu}`,
1114
1179
  position: "popper",
1115
1180
  align: "end",
1116
1181
  sideOffset: 4,
1117
1182
  collisionPadding: 8,
1118
1183
  children: /* @__PURE__ */ d(D.Viewport, {
1119
- className: B.viewport,
1184
+ className: V.viewport,
1120
1185
  children: [t.switcher.options.map((e) => /* @__PURE__ */ d(D.Item, {
1121
1186
  value: e.value,
1122
- className: B.item,
1187
+ className: V.item,
1123
1188
  textValue: e.label,
1124
1189
  children: [/* @__PURE__ */ d("span", {
1125
- className: U.option,
1190
+ className: W.option,
1126
1191
  children: [e.icon && /* @__PURE__ */ u("span", {
1127
- className: U.icon,
1192
+ className: W.icon,
1128
1193
  "aria-hidden": "true",
1129
1194
  children: e.icon
1130
1195
  }), /* @__PURE__ */ u(D.ItemText, { children: e.label })]
1131
1196
  }), /* @__PURE__ */ u(D.ItemIndicator, {
1132
- className: B.itemIndicator,
1197
+ className: V.itemIndicator,
1133
1198
  children: /* @__PURE__ */ u(m, {
1134
1199
  size: 12,
1135
1200
  color: "currentColor"
1136
1201
  })
1137
1202
  })]
1138
- }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: U.menuDivider }), /* @__PURE__ */ u(D.Item, {
1203
+ }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: W.menuDivider }), /* @__PURE__ */ u(D.Item, {
1139
1204
  value: De,
1140
- className: B.item,
1205
+ className: V.item,
1141
1206
  textValue: t.switcher.action.label,
1142
1207
  children: /* @__PURE__ */ d("span", {
1143
- className: U.option,
1208
+ className: W.option,
1144
1209
  children: [/* @__PURE__ */ u("span", {
1145
- className: U.icon,
1210
+ className: W.icon,
1146
1211
  "aria-hidden": "true",
1147
1212
  children: /* @__PURE__ */ u(x, {
1148
1213
  size: 14,
@@ -1210,7 +1275,7 @@ function Me({ children: t, color: n, textColor: r, className: i, icon: a, size:
1210
1275
  }), t]
1211
1276
  });
1212
1277
  }
1213
- var W = {
1278
+ var G = {
1214
1279
  root: "_root_ok48u_3",
1215
1280
  icon: "_icon_ok48u_16",
1216
1281
  body: "_body_ok48u_17",
@@ -1236,21 +1301,21 @@ var Fe = ({ variant: e = "default", icon: t, className: n = "", children: r, rol
1236
1301
  let a = t === void 0 ? Ne[e] : t;
1237
1302
  return /* @__PURE__ */ d("div", {
1238
1303
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
1239
- className: `${W.root} ${W[e]} ${n}`,
1304
+ className: `${G.root} ${G[e]} ${n}`,
1240
1305
  children: [a && /* @__PURE__ */ u("span", {
1241
- className: W.icon,
1306
+ className: G.icon,
1242
1307
  "aria-hidden": "true",
1243
1308
  children: Pe(a)
1244
1309
  }), /* @__PURE__ */ u("div", {
1245
- className: W.body,
1310
+ className: G.body,
1246
1311
  children: r
1247
1312
  })]
1248
1313
  });
1249
1314
  }, Ie = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1250
- className: `${W.title} ${t}`,
1315
+ className: `${G.title} ${t}`,
1251
1316
  children: e
1252
1317
  }), Le = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1253
- className: `${W.description} ${t}`,
1318
+ className: `${G.description} ${t}`,
1254
1319
  children: e
1255
1320
  }), Re = {
1256
1321
  tooltip: "_tooltip_1de7z_1",
@@ -1272,7 +1337,7 @@ function ze({ content: e, position: t = "top", children: n, className: r }) {
1272
1337
  }) })] })
1273
1338
  });
1274
1339
  }
1275
- var G = {
1340
+ var K = {
1276
1341
  wrapper: "_wrapper_1w5vh_1",
1277
1342
  chart: "_chart_1w5vh_8",
1278
1343
  svg: "_svg_1w5vh_33",
@@ -1286,7 +1351,7 @@ var G = {
1286
1351
  legendItem: "_legendItem_1w5vh_90",
1287
1352
  legendMark: "_legendMark_1w5vh_96",
1288
1353
  legendLabel: "_legendLabel_1w5vh_102"
1289
- }, Be = "var(--lv4)", K = 12, Ve = 20, He = 8, Ue = 28, q = 20;
1354
+ }, Be = "var(--lv4)", q = 12, Ve = 20, He = 8, Ue = 28, J = 20;
1290
1355
  function We(e) {
1291
1356
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
1292
1357
  }
@@ -1298,18 +1363,18 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1298
1363
  let t = new ResizeObserver(([e]) => m(e.contentRect.width));
1299
1364
  return t.observe(e), m(e.clientWidth), () => t.disconnect();
1300
1365
  }, []);
1301
- let _ = t?.length ? Ue : He, v = Math.max(p - q - Ve, 0), y = Math.max(a - K - _, 0), b = e.flatMap((e) => e.data.filter(Number.isFinite)), x = b.length ? Math.max(...b, 0) : 1, S = n === "bar" ? 0 : Math.min(...b, 0), C = x - S || 1, w = Math.max(...e.map((e) => e.data.length), 0), T = (e) => K + (1 - (e - S) / C) * y, E = (e) => w <= 1 ? q + v / 2 : q + e / (w - 1) * v, D = r((e) => {
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) => {
1302
1367
  if (w === 0) return;
1303
1368
  let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
1304
1369
  if (n === "line") {
1305
- let e = Math.round((r - q) / v * (w - 1));
1370
+ let e = Math.round((r - J) / v * (w - 1));
1306
1371
  g({
1307
1372
  index: Math.max(0, Math.min(w - 1, e)),
1308
1373
  x: r,
1309
1374
  y: i
1310
1375
  });
1311
1376
  } else {
1312
- let e = v / w, t = Math.floor((r - q) / e);
1377
+ let e = v / w, t = Math.floor((r - J) / e);
1313
1378
  g({
1314
1379
  index: Math.max(0, Math.min(w - 1, t)),
1315
1380
  x: r,
@@ -1321,24 +1386,24 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1321
1386
  w,
1322
1387
  v
1323
1388
  ]), O = r(() => g(null), []), k = /* @__PURE__ */ u("line", {
1324
- x1: q,
1325
- y1: K + y * .5,
1326
- x2: q + v,
1327
- y2: K + y * .5,
1389
+ x1: J,
1390
+ y1: q + y * .5,
1391
+ x2: J + v,
1392
+ y2: q + y * .5,
1328
1393
  stroke: "var(--chart-midline)",
1329
1394
  strokeWidth: "0.5"
1330
1395
  }), A = /* @__PURE__ */ u("line", {
1331
- x1: q,
1332
- y1: K + y,
1333
- x2: q + v,
1334
- y2: K + y,
1396
+ x1: J,
1397
+ y1: q + y,
1398
+ x2: J + v,
1399
+ y2: q + y,
1335
1400
  stroke: "var(--chart-baseline)",
1336
1401
  strokeWidth: "1"
1337
1402
  }), j = h && n === "bar" ? (() => {
1338
1403
  let e = v / w;
1339
1404
  return /* @__PURE__ */ u("rect", {
1340
- x: q + h.index * e,
1341
- y: K,
1405
+ x: J + h.index * e,
1406
+ y: q,
1342
1407
  width: e,
1343
1408
  height: y,
1344
1409
  fill: "var(--chart-column-hover)"
@@ -1365,9 +1430,9 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1365
1430
  })] }, t);
1366
1431
  }), ee = () => {
1367
1432
  if (!w) return null;
1368
- let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = K + y;
1433
+ let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = q + y;
1369
1434
  return e.map((e, t) => e.data.map((a, o) => {
1370
- let s = q + o * n + 2 + t * (r + 2), c = T(a);
1435
+ let s = J + o * n + 2 + t * (r + 2), c = T(a);
1371
1436
  return /* @__PURE__ */ u("rect", {
1372
1437
  x: s,
1373
1438
  y: c,
@@ -1378,9 +1443,9 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1378
1443
  }));
1379
1444
  }, te = () => {
1380
1445
  if (!t?.length) return null;
1381
- let e = K + y + 18;
1446
+ let e = q + y + 18;
1382
1447
  return t.map((t, r) => /* @__PURE__ */ u("text", {
1383
- x: n === "line" ? E(r) : q + (r + .5) * (v / w),
1448
+ x: n === "line" ? E(r) : J + (r + .5) * (v / w),
1384
1449
  y: e,
1385
1450
  textAnchor: "middle",
1386
1451
  fill: "var(--lv4)",
@@ -1389,16 +1454,16 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1389
1454
  }, r));
1390
1455
  }, ne = h && n === "line" ? /* @__PURE__ */ u("line", {
1391
1456
  x1: E(h.index),
1392
- y1: K,
1457
+ y1: q,
1393
1458
  x2: E(h.index),
1394
- y2: K + y,
1459
+ y2: q + y,
1395
1460
  stroke: "var(--chart-crosshair)",
1396
1461
  strokeWidth: "1",
1397
1462
  strokeDasharray: "3 3"
1398
1463
  }) : null, N = h ? (() => {
1399
1464
  let n = t?.[h.index] ?? String(h.index + 1), r = Math.min(Math.max(h.x, 60), p - 60);
1400
1465
  return /* @__PURE__ */ d("div", {
1401
- className: G.tooltip,
1466
+ className: K.tooltip,
1402
1467
  style: h.y < 80 ? {
1403
1468
  left: r,
1404
1469
  top: h.y + 12,
@@ -1409,21 +1474,21 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1409
1474
  transform: "translate(-50%, -100%)"
1410
1475
  },
1411
1476
  children: [/* @__PURE__ */ u("div", {
1412
- className: G.tooltipLabel,
1477
+ className: K.tooltipLabel,
1413
1478
  children: n
1414
1479
  }), e.map((e, t) => /* @__PURE__ */ d("div", {
1415
- className: G.tooltipRow,
1480
+ className: K.tooltipRow,
1416
1481
  children: [
1417
1482
  /* @__PURE__ */ u("span", {
1418
- className: G.tooltipDot,
1483
+ className: K.tooltipDot,
1419
1484
  style: { background: e.color ?? Be }
1420
1485
  }),
1421
1486
  /* @__PURE__ */ u("span", {
1422
- className: G.tooltipName,
1487
+ className: K.tooltipName,
1423
1488
  children: e.label
1424
1489
  }),
1425
1490
  /* @__PURE__ */ u("span", {
1426
- className: G.tooltipValue,
1491
+ className: K.tooltipValue,
1427
1492
  children: We(e.data[h.index] ?? 0)
1428
1493
  })
1429
1494
  ]
@@ -1431,15 +1496,15 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1431
1496
  });
1432
1497
  })() : null;
1433
1498
  return /* @__PURE__ */ d("div", {
1434
- className: [G.wrapper, l].filter(Boolean).join(" "),
1499
+ className: [K.wrapper, l].filter(Boolean).join(" "),
1435
1500
  children: [/* @__PURE__ */ d("div", {
1436
1501
  ref: f,
1437
- className: G.chart,
1502
+ className: K.chart,
1438
1503
  style: { height: a },
1439
1504
  children: [p > 0 && /* @__PURE__ */ d("svg", {
1440
1505
  width: p,
1441
1506
  height: a,
1442
- className: G.svg,
1507
+ className: K.svg,
1443
1508
  onMouseMove: D,
1444
1509
  onMouseLeave: O,
1445
1510
  children: [
@@ -1452,21 +1517,21 @@ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1452
1517
  ]
1453
1518
  }), N]
1454
1519
  }), o && e.length > 1 && /* @__PURE__ */ u("div", {
1455
- className: G.legend,
1520
+ className: K.legend,
1456
1521
  children: e.map((e, t) => /* @__PURE__ */ d("div", {
1457
- className: G.legendItem,
1522
+ className: K.legendItem,
1458
1523
  children: [/* @__PURE__ */ u("div", {
1459
- className: G.legendMark,
1524
+ className: K.legendMark,
1460
1525
  style: { background: e.color ?? Be }
1461
1526
  }), /* @__PURE__ */ u("span", {
1462
- className: G.legendLabel,
1527
+ className: K.legendLabel,
1463
1528
  children: e.label
1464
1529
  })]
1465
1530
  }, t))
1466
1531
  })]
1467
1532
  });
1468
1533
  }
1469
- var J = {
1534
+ var Y = {
1470
1535
  wrapper: "_wrapper_17ws4_1",
1471
1536
  label: "_label_17ws4_7",
1472
1537
  textarea: "_textarea_17ws4_12",
@@ -1478,11 +1543,11 @@ var J = {
1478
1543
  function Ke({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1479
1544
  let c = e.useId(), l = a || c, f = `${l}-error`, p = n || !i;
1480
1545
  return /* @__PURE__ */ d("div", {
1481
- className: `${J.wrapper} ${r}`,
1546
+ className: `${Y.wrapper} ${r}`,
1482
1547
  children: [
1483
1548
  t && /* @__PURE__ */ d("label", {
1484
1549
  htmlFor: l,
1485
- className: J.label,
1550
+ className: Y.label,
1486
1551
  children: [t, s.required && /* @__PURE__ */ u("span", {
1487
1552
  "aria-label": "required",
1488
1553
  children: " *"
@@ -1491,21 +1556,21 @@ function Ke({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
1491
1556
  /* @__PURE__ */ u("textarea", {
1492
1557
  id: l,
1493
1558
  rows: o,
1494
- className: `${J.textarea} ${p ? J.error : ""}`,
1559
+ className: `${Y.textarea} ${p ? Y.error : ""}`,
1495
1560
  "aria-invalid": p ? "true" : "false",
1496
1561
  "aria-describedby": n ? f : void 0,
1497
1562
  ...s
1498
1563
  }),
1499
1564
  n && /* @__PURE__ */ u("span", {
1500
1565
  id: f,
1501
- className: J.errorText,
1566
+ className: Y.errorText,
1502
1567
  role: "alert",
1503
1568
  children: n
1504
1569
  })
1505
1570
  ]
1506
1571
  });
1507
1572
  }
1508
- var Y = {
1573
+ var X = {
1509
1574
  overlay: "_overlay_xud7c_1",
1510
1575
  content: "_content_xud7c_8",
1511
1576
  title: "_title_xud7c_26",
@@ -1518,19 +1583,19 @@ var Y = {
1518
1583
  children: [e && /* @__PURE__ */ u(A.Trigger, {
1519
1584
  asChild: !0,
1520
1585
  children: e
1521
- }), /* @__PURE__ */ d(A.Portal, { children: [/* @__PURE__ */ u(A.Overlay, { className: Y.overlay }), /* @__PURE__ */ d(A.Content, {
1522
- className: `${Y.content} ${o}`,
1586
+ }), /* @__PURE__ */ d(A.Portal, { children: [/* @__PURE__ */ u(A.Overlay, { className: X.overlay }), /* @__PURE__ */ d(A.Content, {
1587
+ className: `${X.content} ${o}`,
1523
1588
  children: [
1524
1589
  /* @__PURE__ */ u(A.Title, {
1525
- className: i ? Y.title : Y.srOnly,
1590
+ className: i ? X.title : X.srOnly,
1526
1591
  children: i || "Dialog"
1527
1592
  }),
1528
1593
  a && /* @__PURE__ */ u(A.Description, {
1529
- className: Y.description,
1594
+ className: X.description,
1530
1595
  children: a
1531
1596
  }),
1532
1597
  s && /* @__PURE__ */ u(A.Close, {
1533
- className: Y.close,
1598
+ className: X.close,
1534
1599
  "aria-label": "Close",
1535
1600
  children: /* @__PURE__ */ u(T, {
1536
1601
  size: 16,
@@ -1540,7 +1605,7 @@ var Y = {
1540
1605
  t
1541
1606
  ]
1542
1607
  })] })]
1543
- }), X = {
1608
+ }), Z = {
1544
1609
  wrapper: "_wrapper_aimna_1",
1545
1610
  label: "_label_aimna_7",
1546
1611
  trigger: "_trigger_aimna_12",
@@ -1581,19 +1646,19 @@ var Y = {
1581
1646
  "November",
1582
1647
  "December"
1583
1648
  ];
1584
- function Z(e) {
1649
+ function Xe(e) {
1585
1650
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
1586
1651
  return `${e.getFullYear()}-${t}-${n}`;
1587
1652
  }
1588
- function Xe(e, t) {
1653
+ function Ze(e, t) {
1589
1654
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1590
1655
  }
1591
- function Ze(e, t) {
1656
+ function Qe(e, t) {
1592
1657
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
1593
1658
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
1594
1659
  return r;
1595
1660
  }
1596
- var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = Z }) => {
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 }) => {
1597
1662
  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) => {
1598
1663
  if (e) {
1599
1664
  let e = t ?? /* @__PURE__ */ new Date();
@@ -1602,7 +1667,7 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1602
1667
  b(e);
1603
1668
  };
1604
1669
  e.useEffect(() => {
1605
- j.current &&= (A.current.get(Z(D))?.focus(), !1);
1670
+ j.current &&= (A.current.get(Xe(D))?.focus(), !1);
1606
1671
  }, [D]);
1607
1672
  let ee = (e, t) => {
1608
1673
  let n = new Date(t), r = {
@@ -1629,13 +1694,13 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1629
1694
  T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1630
1695
  }, N = (e) => {
1631
1696
  n?.(e), b(!1);
1632
- }, P = Ze(C, T);
1697
+ }, P = Qe(C, T);
1633
1698
  return /* @__PURE__ */ d("div", {
1634
- className: `${X.wrapper} ${l}`,
1699
+ className: `${Z.wrapper} ${l}`,
1635
1700
  children: [
1636
1701
  r && /* @__PURE__ */ u("span", {
1637
1702
  id: `${p}-label`,
1638
- className: X.label,
1703
+ className: Z.label,
1639
1704
  children: r
1640
1705
  }),
1641
1706
  /* @__PURE__ */ d(O.Root, {
@@ -1645,14 +1710,14 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1645
1710
  asChild: !0,
1646
1711
  children: /* @__PURE__ */ d("button", {
1647
1712
  type: "button",
1648
- className: `${X.trigger} ${v ? X.error : ""}`,
1713
+ className: `${Z.trigger} ${v ? Z.error : ""}`,
1649
1714
  disabled: s,
1650
1715
  "aria-labelledby": r ? `${p}-label ${p}-value` : void 0,
1651
1716
  "aria-invalid": v ? "true" : "false",
1652
1717
  "aria-describedby": a ? m : void 0,
1653
1718
  children: [/* @__PURE__ */ u("span", {
1654
1719
  id: `${p}-value`,
1655
- className: t ? X.valueText : X.placeholder,
1720
+ className: t ? Z.valueText : Z.placeholder,
1656
1721
  children: t ? f(t) : i
1657
1722
  }), /* @__PURE__ */ u(h, {
1658
1723
  size: 14,
@@ -1660,20 +1725,20 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1660
1725
  })]
1661
1726
  })
1662
1727
  }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
1663
- className: X.calendar,
1728
+ className: Z.calendar,
1664
1729
  align: "start",
1665
1730
  sideOffset: 5,
1666
1731
  "aria-label": r ? `${r} calendar` : "Choose a date",
1667
1732
  onOpenAutoFocus: (e) => {
1668
- e.preventDefault(), A.current.get(Z(D))?.focus();
1733
+ e.preventDefault(), A.current.get(Xe(D))?.focus();
1669
1734
  },
1670
1735
  children: [
1671
1736
  /* @__PURE__ */ d("div", {
1672
- className: X.header,
1737
+ className: Z.header,
1673
1738
  children: [
1674
1739
  /* @__PURE__ */ u("button", {
1675
1740
  type: "button",
1676
- className: X.navButton,
1741
+ className: Z.navButton,
1677
1742
  onClick: te,
1678
1743
  "aria-label": "Previous month",
1679
1744
  children: /* @__PURE__ */ u(g, {
@@ -1682,7 +1747,7 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1682
1747
  })
1683
1748
  }),
1684
1749
  /* @__PURE__ */ d("span", {
1685
- className: X.monthLabel,
1750
+ className: Z.monthLabel,
1686
1751
  children: [
1687
1752
  Ye[T],
1688
1753
  " ",
@@ -1691,7 +1756,7 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1691
1756
  }),
1692
1757
  /* @__PURE__ */ u("button", {
1693
1758
  type: "button",
1694
- className: X.navButton,
1759
+ className: Z.navButton,
1695
1760
  onClick: ne,
1696
1761
  "aria-label": "Next month",
1697
1762
  children: /* @__PURE__ */ u(_, {
@@ -1702,27 +1767,27 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1702
1767
  ]
1703
1768
  }),
1704
1769
  /* @__PURE__ */ u("div", {
1705
- className: X.weekdays,
1770
+ className: Z.weekdays,
1706
1771
  children: Je.map((e) => /* @__PURE__ */ u("span", {
1707
- className: X.weekday,
1772
+ className: Z.weekday,
1708
1773
  children: e
1709
1774
  }, e))
1710
1775
  }),
1711
1776
  /* @__PURE__ */ u("div", {
1712
- className: X.grid,
1777
+ className: Z.grid,
1713
1778
  children: P.map((e) => {
1714
- let n = e.getMonth() !== T, r = Xe(e, t), i = Xe(e, x);
1779
+ let n = e.getMonth() !== T, r = Ze(e, t), i = Ze(e, x);
1715
1780
  return /* @__PURE__ */ u("button", {
1716
1781
  type: "button",
1717
1782
  className: [
1718
- X.day,
1719
- n ? X.outside : "",
1720
- r ? X.selected : "",
1721
- i && !r ? X.today : ""
1783
+ Z.day,
1784
+ n ? Z.outside : "",
1785
+ r ? Z.selected : "",
1786
+ i && !r ? Z.today : ""
1722
1787
  ].filter(Boolean).join(" "),
1723
1788
  onClick: () => N(e),
1724
1789
  ref: (t) => {
1725
- t ? A.current.set(Z(e), t) : A.current.delete(Z(e));
1790
+ t ? A.current.set(Xe(e), t) : A.current.delete(Xe(e));
1726
1791
  },
1727
1792
  "aria-label": e.toLocaleDateString(void 0, {
1728
1793
  weekday: "long",
@@ -1732,7 +1797,7 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1732
1797
  }),
1733
1798
  "aria-pressed": r,
1734
1799
  "aria-current": i ? "date" : void 0,
1735
- tabIndex: Xe(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1800
+ tabIndex: Ze(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1736
1801
  onKeyDown: (t) => ee(t, e),
1737
1802
  children: e.getDate()
1738
1803
  }, e.toISOString());
@@ -1743,7 +1808,7 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1743
1808
  }),
1744
1809
  a && /* @__PURE__ */ u("span", {
1745
1810
  id: m,
1746
- className: X.errorText,
1811
+ className: Z.errorText,
1747
1812
  role: "alert",
1748
1813
  children: a
1749
1814
  })
@@ -1763,16 +1828,16 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1763
1828
  viewportPosition: "_viewportPosition_qu8jg_59",
1764
1829
  viewport: "_viewport_qu8jg_59",
1765
1830
  content: "_content_qu8jg_85"
1766
- }, $e = {
1831
+ }, et = {
1767
1832
  micro: 14,
1768
1833
  default: 14,
1769
1834
  large: 21
1770
- }, et = e.createContext("default"), tt = e.forwardRef(({ size: e = "default", align: t = "start", panelWidth: n, className: r = "", style: i, children: a, "aria-label": o = "Main navigation", ...s }, c) => {
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) => {
1771
1836
  let l = n === void 0 ? i : {
1772
1837
  ...i,
1773
1838
  "--panel-width": typeof n == "number" ? `${n}px` : n
1774
1839
  };
1775
- return /* @__PURE__ */ u(et.Provider, {
1840
+ return /* @__PURE__ */ u(tt.Provider, {
1776
1841
  value: e,
1777
1842
  children: /* @__PURE__ */ d(j.Root, {
1778
1843
  ...s,
@@ -1787,59 +1852,59 @@ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1787
1852
  })
1788
1853
  });
1789
1854
  });
1790
- tt.displayName = "NavigationMenu";
1791
- var nt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
1855
+ nt.displayName = "NavigationMenu";
1856
+ var rt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
1792
1857
  ...t,
1793
1858
  ref: n,
1794
1859
  className: `${Q.list} ${e}`
1795
1860
  }));
1796
- nt.displayName = "NavigationMenuList";
1797
- var rt = j.Item;
1798
- function it({ icon: t }) {
1799
- let n = e.useContext(et);
1861
+ rt.displayName = "NavigationMenuList";
1862
+ var it = j.Item;
1863
+ function at({ icon: t }) {
1864
+ let n = e.useContext(tt);
1800
1865
  return t ? /* @__PURE__ */ u("span", {
1801
1866
  className: Q.icon,
1802
1867
  "aria-hidden": "true",
1803
1868
  children: e.cloneElement(t, {
1804
- size: $e[n],
1869
+ size: et[n],
1805
1870
  color: "currentColor"
1806
1871
  })
1807
1872
  }) : null;
1808
1873
  }
1809
- var at = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
1810
- let o = e.useContext(et);
1874
+ var ot = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
1875
+ let o = e.useContext(tt);
1811
1876
  return /* @__PURE__ */ d(j.Trigger, {
1812
1877
  ...i,
1813
1878
  ref: a,
1814
1879
  className: `${Q.control} ${t}`,
1815
1880
  children: [
1816
- /* @__PURE__ */ u(it, { icon: n }),
1881
+ /* @__PURE__ */ u(at, { icon: n }),
1817
1882
  r,
1818
1883
  /* @__PURE__ */ u("span", {
1819
1884
  className: Q.caret,
1820
1885
  "aria-hidden": "true",
1821
1886
  children: /* @__PURE__ */ u(h, {
1822
- size: $e[o],
1887
+ size: et[o],
1823
1888
  color: "currentColor"
1824
1889
  })
1825
1890
  })
1826
1891
  ]
1827
1892
  });
1828
1893
  });
1829
- at.displayName = "NavigationMenuTrigger";
1830
- var ot = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
1894
+ ot.displayName = "NavigationMenuTrigger";
1895
+ var st = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
1831
1896
  ...t,
1832
1897
  ref: n,
1833
1898
  className: `${Q.content} ${e}`
1834
1899
  }));
1835
- ot.displayName = "NavigationMenuContent";
1836
- var st = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
1900
+ st.displayName = "NavigationMenuContent";
1901
+ var ct = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
1837
1902
  ...i,
1838
1903
  ref: a,
1839
1904
  className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
1840
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(it, { icon: t }), r] }) : r
1905
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(at, { icon: t }), r] }) : r
1841
1906
  }));
1842
- st.displayName = "NavigationMenuLink";
1907
+ ct.displayName = "NavigationMenuLink";
1843
1908
  var $ = {
1844
1909
  panel: "_panel_1hiss_6",
1845
1910
  header: "_header_1hiss_14",
@@ -1871,18 +1936,18 @@ var $ = {
1871
1936
  };
1872
1937
  //#endregion
1873
1938
  //#region src/components/Chat/ChatPanel.tsx
1874
- function ct({ children: e }) {
1939
+ function lt({ children: e }) {
1875
1940
  return /* @__PURE__ */ u("kbd", {
1876
1941
  className: $.kbd,
1877
1942
  children: e
1878
1943
  });
1879
1944
  }
1880
- var lt = /* @__PURE__ */ d(l, { children: [
1881
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(ct, { children: "↵" }), " send"] }),
1882
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(ct, { children: "⇧↵" }), " new line"] }),
1883
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(ct, { children: "esc" }), " close"] })
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"] })
1884
1949
  ] });
1885
- function ut({ header: e, children: t, composer: n, hints: r = lt, className: i = "", threadRef: a, "aria-label": o }) {
1950
+ function dt({ header: e, children: t, composer: n, hints: r = ut, className: i = "", threadRef: a, "aria-label": o }) {
1886
1951
  return /* @__PURE__ */ d("div", {
1887
1952
  className: `${$.panel} ${i}`,
1888
1953
  "aria-label": o,
@@ -1911,7 +1976,7 @@ function ut({ header: e, children: t, composer: n, hints: r = lt, className: i =
1911
1976
  }
1912
1977
  //#endregion
1913
1978
  //#region src/components/Chat/Message.tsx
1914
- function dt({ children: e, className: t = "" }) {
1979
+ function ft({ children: e, className: t = "" }) {
1915
1980
  return /* @__PURE__ */ u("div", {
1916
1981
  className: $.userRow,
1917
1982
  children: /* @__PURE__ */ u("div", {
@@ -1920,7 +1985,7 @@ function dt({ children: e, className: t = "" }) {
1920
1985
  })
1921
1986
  });
1922
1987
  }
1923
- function ft({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
1988
+ function pt({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
1924
1989
  return /* @__PURE__ */ d("div", {
1925
1990
  className: `${$.assistant} ${r}`,
1926
1991
  children: [/* @__PURE__ */ d("div", {
@@ -1937,13 +2002,13 @@ function ft({ label: e = "Assistant", icon: t, children: n, className: r = "" })
1937
2002
  }
1938
2003
  //#endregion
1939
2004
  //#region src/components/Chat/Composer.tsx
1940
- var pt = 18, mt = 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) {
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) {
1941
2006
  let x = s(null);
1942
2007
  o(b, () => ({ focus: () => x.current?.focus() }), []), i(() => {
1943
2008
  let e = x.current;
1944
2009
  if (!e) return;
1945
2010
  e.style.height = "auto";
1946
- let t = pt * _ + 12;
2011
+ let t = mt * _ + 12;
1947
2012
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
1948
2013
  }, [e, _]);
1949
2014
  let S = !c && !m && e.trim().length > 0, w = r(() => {
@@ -1999,7 +2064,7 @@ var pt = 18, mt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
1999
2064
  });
2000
2065
  //#endregion
2001
2066
  //#region src/components/Chat/Citation.tsx
2002
- function ht({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2067
+ function gt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2003
2068
  let a = `${$.ref} ${i}`;
2004
2069
  return t ? /* @__PURE__ */ u("a", {
2005
2070
  href: t,
@@ -2017,7 +2082,7 @@ function ht({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2017
2082
  children: e
2018
2083
  });
2019
2084
  }
2020
- function gt({ items: e, label: t = "Sources", className: n = "" }) {
2085
+ function _t({ items: e, label: t = "Sources", className: n = "" }) {
2021
2086
  return e.length === 0 ? null : /* @__PURE__ */ d("div", {
2022
2087
  className: `${$.stack} ${n}`,
2023
2088
  children: [/* @__PURE__ */ u("div", {
@@ -2054,7 +2119,7 @@ function gt({ items: e, label: t = "Sources", className: n = "" }) {
2054
2119
  }
2055
2120
  //#endregion
2056
2121
  //#region src/components/Chat/StreamStatus.tsx
2057
- function _t({ children: e, className: t = "" }) {
2122
+ function vt({ children: e, className: t = "" }) {
2058
2123
  return /* @__PURE__ */ d("div", {
2059
2124
  className: `${$.status} ${t}`,
2060
2125
  role: "status",
@@ -2066,7 +2131,7 @@ function _t({ children: e, className: t = "" }) {
2066
2131
  }
2067
2132
  //#endregion
2068
2133
  //#region src/components/Chat/Suggestions.tsx
2069
- function vt({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2134
+ function yt({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2070
2135
  return /* @__PURE__ */ d("div", {
2071
2136
  className: `${$.suggestions} ${r}`,
2072
2137
  children: [/* @__PURE__ */ u("div", {
@@ -2085,7 +2150,7 @@ function vt({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
2085
2150
  }
2086
2151
  //#endregion
2087
2152
  //#region src/components/Chat/AnswerActions.tsx
2088
- function yt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2153
+ function bt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2089
2154
  return /* @__PURE__ */ d("div", {
2090
2155
  className: `${$.actions} ${i}`,
2091
2156
  children: [
@@ -2107,5 +2172,59 @@ function yt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
2107
2172
  ]
2108
2173
  });
2109
2174
  }
2175
+ var xt = {
2176
+ truncate: "_truncate_za4sm_1",
2177
+ start: "_start_za4sm_13"
2178
+ };
2179
+ //#endregion
2180
+ //#region src/components/Truncate/Truncate.tsx
2181
+ function St({ children: e, side: t = "end", title: n, className: r = "" }) {
2182
+ let i = n ?? (typeof e == "string" ? e : void 0);
2183
+ return /* @__PURE__ */ u("span", {
2184
+ className: `${xt.truncate} ${t === "start" ? xt.start : ""} ${r}`,
2185
+ title: i,
2186
+ children: t === "start" ? /* @__PURE__ */ u("bdi", { children: e }) : e
2187
+ });
2188
+ }
2189
+ var Ct = {
2190
+ disclosure: "_disclosure_94bgy_1",
2191
+ trigger: "_trigger_94bgy_7",
2192
+ summary: "_summary_94bgy_31",
2193
+ chevron: "_chevron_94bgy_36",
2194
+ content: "_content_94bgy_43"
2195
+ };
2196
+ //#endregion
2197
+ //#region src/components/Disclosure/Disclosure.tsx
2198
+ function wt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2199
+ let [s, c] = e.useState(i), l = r ?? s, f = e.useId();
2200
+ return /* @__PURE__ */ d("div", {
2201
+ className: `${Ct.disclosure} ${o}`,
2202
+ "data-state": l ? "open" : "closed",
2203
+ children: [/* @__PURE__ */ d("button", {
2204
+ type: "button",
2205
+ className: Ct.trigger,
2206
+ "aria-expanded": l,
2207
+ "aria-controls": l ? f : void 0,
2208
+ onClick: () => {
2209
+ r === void 0 && c(!l), a?.(!l);
2210
+ },
2211
+ children: [/* @__PURE__ */ u("span", {
2212
+ className: Ct.summary,
2213
+ children: t
2214
+ }), /* @__PURE__ */ u("span", {
2215
+ className: Ct.chevron,
2216
+ "aria-hidden": "true",
2217
+ children: u(l ? h : _, {
2218
+ size: 14,
2219
+ color: "currentColor"
2220
+ })
2221
+ })]
2222
+ }), l && /* @__PURE__ */ u("div", {
2223
+ id: f,
2224
+ className: Ct.content,
2225
+ children: n
2226
+ })]
2227
+ });
2228
+ }
2110
2229
  //#endregion
2111
- export { Fe as Alert, Le as AlertDescription, Ie as AlertTitle, yt as AnswerActions, ft as AssistantMessage, ae as Base, Oe as Breadcrumbs, P as Button, Ge as Chart, ut as ChatPanel, re as Checkbox, Me as Chip, gt as CitationList, ht as CitationRef, mt as Composer, Qe as DatePicker, oe as FilterPanelBase, le as InputField, ct as Kbd, qe as Modal, tt as NavigationMenu, ot as NavigationMenuContent, rt as NavigationMenuItem, st as NavigationMenuLink, nt as NavigationMenuList, at as NavigationMenuTrigger, _e as Popover, Ae as ProgressBar, de as RadioButton, ce as SearchField, he as Select, me as Slider, N as Spinner, _t as StreamStatus, vt as Suggestions, ve as Table, xe as TableCell, ye as TableHeader, Ce as TableIcon, be as TableRow, Se as TableValue, Te as Tabs, Ke as Textarea, pe as ToggleSwitch, ze as Tooltip, dt as UserMessage, lt as defaultChatHints, ne as spinnerNames };
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 };