@indxsearch/systm 2.14.0 → 2.15.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
@@ -616,80 +616,94 @@ var ue = {
616
616
  ]
617
617
  });
618
618
  }, z = {
619
- label: "_label_12as9_1",
620
- basetrack: "_basetrack_12as9_8",
621
- selectedtrack: "_selectedtrack_12as9_36",
622
- livetrack: "_livetrack_12as9_43",
623
- livetrackFaceted: "_livetrackFaceted_12as9_49",
624
- livetrackDefault: "_livetrackDefault_12as9_52",
625
- thumbs: "_thumbs_12as9_55",
626
- disabled: "_disabled_12as9_89"
627
- }, me = (t) => {
628
- let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: f = !0, onChange: p, onFinalChange: m, label: h, "aria-label": g, id: _ } = t, v = e.useId(), y = _ || v;
619
+ label: "_label_1o3ls_1",
620
+ basetrack: "_basetrack_1o3ls_8",
621
+ selectedtrack: "_selectedtrack_1o3ls_36",
622
+ livetrack: "_livetrack_1o3ls_43",
623
+ livetrackFaceted: "_livetrackFaceted_1o3ls_49",
624
+ livetrackDefault: "_livetrackDefault_1o3ls_52",
625
+ thumbs: "_thumbs_1o3ls_55",
626
+ disabled: "_disabled_1o3ls_89",
627
+ stepmarks: "_stepmarks_1o3ls_94",
628
+ stepmark: "_stepmark_1o3ls_94",
629
+ stepmarksInline: "_stepmarksInline_1o3ls_113",
630
+ stepmarksBelow: "_stepmarksBelow_1o3ls_120",
631
+ basetrackStepsBelow: "_basetrackStepsBelow_1o3ls_125"
632
+ }, me = 50, he = (t) => {
633
+ let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: f = !0, stepMarks: p, onChange: m, onFinalChange: h, label: g, "aria-label": _, id: v } = t, y = e.useId(), b = v || y;
629
634
  if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ d("div", {
630
635
  className: o,
631
- children: [h && /* @__PURE__ */ u("span", {
636
+ children: [g && /* @__PURE__ */ u("span", {
632
637
  className: z.label,
633
- children: h
638
+ children: g
634
639
  }), /* @__PURE__ */ u("div", {
635
640
  className: `${z.basetrack} ${z.disabled}`,
636
641
  "aria-hidden": "true"
637
642
  })]
638
643
  });
644
+ let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <= me, C = S && p === "below" ? `${z.basetrack} ${z.basetrackStepsBelow}` : z.basetrack, w = S ? /* @__PURE__ */ u("div", {
645
+ className: `${z.stepmarks} ${p === "below" ? z.stepmarksBelow : z.stepmarksInline}`,
646
+ "aria-hidden": "true",
647
+ children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ u("span", {
648
+ className: z.stepmark,
649
+ style: { left: `${Math.min(t * i, r - n) / (r - n) * 100}%` }
650
+ }, t))
651
+ }) : null;
639
652
  if ("isRange" in t && t.isRange) {
640
- let e = t.value, [f, _] = e;
653
+ let e = t.value, [f, p] = e;
641
654
  return /* @__PURE__ */ d("div", {
642
655
  className: o,
643
- children: [h && /* @__PURE__ */ u("label", {
644
- htmlFor: y,
656
+ children: [g && /* @__PURE__ */ u("label", {
657
+ htmlFor: b,
645
658
  className: z.label,
646
- children: h
659
+ children: g
647
660
  }), /* @__PURE__ */ u(E, {
648
661
  step: i,
649
662
  min: n,
650
663
  max: r,
651
664
  values: e,
652
- onChange: (e) => p(e),
653
- onFinalChange: (e) => m?.(e),
665
+ onChange: (e) => m(e),
666
+ onFinalChange: (e) => h?.(e),
654
667
  disabled: a,
655
668
  renderTrack: ({ props: e, children: t }) => {
656
- let { key: i, ...a } = e, o = r - n, p = (f - n) / o * 100, m = (_ - f) / o * 100, h = 0, g = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
657
- return v && (h = (s - n) / o * 100, g = (c - s) / o * 100), /* @__PURE__ */ d("div", {
669
+ let { key: i, ...a } = e, o = r - n, m = (f - n) / o * 100, h = (p - f) / o * 100, g = 0, _ = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
670
+ return v && (g = (s - n) / o * 100, _ = (c - s) / o * 100), /* @__PURE__ */ d("div", {
658
671
  ...a,
659
- className: z.basetrack,
672
+ className: C,
660
673
  style: { ...a.style },
661
674
  children: [
662
675
  !v && /* @__PURE__ */ u("div", {
663
676
  className: z.selectedtrack,
664
677
  style: {
665
- left: `${p}%`,
666
- width: `${m}%`,
678
+ left: `${m}%`,
679
+ width: `${h}%`,
667
680
  zIndex: "1"
668
681
  }
669
682
  }),
670
683
  v && /* @__PURE__ */ u("div", {
671
684
  className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
672
685
  style: {
673
- left: `${h}%`,
674
- width: `${g}%`,
686
+ left: `${g}%`,
687
+ width: `${_}%`,
675
688
  zIndex: "2"
676
689
  }
677
690
  }),
691
+ w,
678
692
  t
679
693
  ]
680
694
  }, i);
681
695
  },
682
696
  renderThumb: ({ props: e, index: t }) => {
683
- let { key: i, ...o } = e, s = t === 0 ? f : _;
697
+ let { key: i, ...o } = e, s = t === 0 ? f : p;
684
698
  return /* @__PURE__ */ u("div", {
685
699
  ...o,
686
- id: t === 0 ? y : void 0,
700
+ id: t === 0 ? b : void 0,
687
701
  className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
688
702
  style: {
689
703
  ...o.style,
690
704
  zIndex: "3"
691
705
  },
692
- "aria-label": g || (t === 0 ? "Minimum value" : "Maximum value"),
706
+ "aria-label": _ || (t === 0 ? "Minimum value" : "Maximum value"),
693
707
  "aria-valuemin": n,
694
708
  "aria-valuemax": r,
695
709
  "aria-valuenow": s
@@ -701,23 +715,23 @@ var ue = {
701
715
  let e = t.value;
702
716
  return /* @__PURE__ */ d("div", {
703
717
  className: o,
704
- children: [h && /* @__PURE__ */ u("label", {
705
- htmlFor: y,
718
+ children: [g && /* @__PURE__ */ u("label", {
719
+ htmlFor: b,
706
720
  className: z.label,
707
- children: h
721
+ children: g
708
722
  }), /* @__PURE__ */ u(E, {
709
723
  step: i,
710
724
  min: n,
711
725
  max: r,
712
726
  values: [e],
713
- onChange: (e) => p(e[0]),
714
- onFinalChange: (e) => m?.(e[0]),
727
+ onChange: (e) => m(e[0]),
728
+ onFinalChange: (e) => h?.(e[0]),
715
729
  disabled: a,
716
730
  renderTrack: ({ props: t, children: i }) => {
717
731
  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
732
  return g && (m = (s - n) / f * 100, h = (c - s) / f * 100), /* @__PURE__ */ d("div", {
719
733
  ...o,
720
- className: z.basetrack,
734
+ className: C,
721
735
  style: { ...o.style },
722
736
  children: [
723
737
  !g && /* @__PURE__ */ u("div", {
@@ -736,6 +750,7 @@ var ue = {
736
750
  zIndex: "2"
737
751
  }
738
752
  }),
753
+ w,
739
754
  i
740
755
  ]
741
756
  }, a);
@@ -744,13 +759,13 @@ var ue = {
744
759
  let { key: i, ...o } = t;
745
760
  return /* @__PURE__ */ u("div", {
746
761
  ...o,
747
- id: y,
762
+ id: b,
748
763
  className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
749
764
  style: {
750
765
  ...o.style,
751
766
  zIndex: "3"
752
767
  },
753
- "aria-label": g,
768
+ "aria-label": _,
754
769
  "aria-valuemin": n,
755
770
  "aria-valuemax": r,
756
771
  "aria-valuenow": e
@@ -771,7 +786,7 @@ var ue = {
771
786
  viewport: "_viewport_15fsv_76",
772
787
  item: "_item_15fsv_82",
773
788
  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 }) => {
789
+ }, ge = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", "aria-label": l, id: f }) => {
775
790
  let p = e.useId(), g = f || p, _ = `${g}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ d(D.Root, {
776
791
  value: t,
777
792
  onValueChange: n,
@@ -833,14 +848,14 @@ var ue = {
833
848
  children: s
834
849
  }), y]
835
850
  }) : 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, {
851
+ }, _e = { content: "_content_1qahr_1" }, ve = ({ trigger: e, children: t, open: n, onOpenChange: r, align: i = "end", side: a = "bottom", sideOffset: o = 5, className: s = "", "aria-label": c, "aria-describedby": l }) => /* @__PURE__ */ d(O.Root, {
837
852
  open: n,
838
853
  onOpenChange: r,
839
854
  children: [/* @__PURE__ */ u(O.Trigger, {
840
855
  asChild: !0,
841
856
  children: e
842
857
  }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ u(O.Content, {
843
- className: `${ge.content} ${s}`,
858
+ className: `${_e.content} ${s}`,
844
859
  align: i,
845
860
  side: a,
846
861
  sideOffset: o,
@@ -864,7 +879,7 @@ var ue = {
864
879
  };
865
880
  //#endregion
866
881
  //#region src/components/Table/Table.tsx
867
- function ve({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
882
+ function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
868
883
  let o = /* @__PURE__ */ d("table", {
869
884
  className: `${V.table} ${r && i ? V.stickyFirst : ""}`,
870
885
  "aria-label": n,
@@ -884,7 +899,7 @@ function ve({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stic
884
899
  }
885
900
  //#endregion
886
901
  //#region src/components/Table/TableHeader.tsx
887
- function ye({ children: t }) {
902
+ function be({ children: t }) {
888
903
  let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ u("th", {
889
904
  scope: "col",
890
905
  ...t.props
@@ -896,7 +911,7 @@ function ye({ children: t }) {
896
911
  }
897
912
  //#endregion
898
913
  //#region src/components/Table/TableRow.tsx
899
- function be({ children: e }) {
914
+ function xe({ children: e }) {
900
915
  return /* @__PURE__ */ u("tr", {
901
916
  className: V.dataRow,
902
917
  children: e
@@ -904,7 +919,7 @@ function be({ children: e }) {
904
919
  }
905
920
  //#endregion
906
921
  //#region src/components/Table/TableCell.tsx
907
- function xe({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
922
+ function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
908
923
  let a = n ? "th" : "td", o = {
909
924
  ...n && r ? { scope: r } : {},
910
925
  ...i ? { colSpan: i } : {}
@@ -928,7 +943,7 @@ function xe({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
928
943
  }
929
944
  //#endregion
930
945
  //#region src/components/Table/TableValue.tsx
931
- function Se({ children: e }) {
946
+ function Ce({ children: e }) {
932
947
  return /* @__PURE__ */ u("span", {
933
948
  className: V.value,
934
949
  children: e
@@ -936,7 +951,7 @@ function Se({ children: e }) {
936
951
  }
937
952
  //#endregion
938
953
  //#region src/components/Table/TableIcon.tsx
939
- function Ce({ children: t, "aria-label": n }) {
954
+ function we({ children: t, "aria-label": n }) {
940
955
  let r = !n;
941
956
  return /* @__PURE__ */ u("span", {
942
957
  className: V.icon,
@@ -963,23 +978,23 @@ var H = {
963
978
  };
964
979
  //#endregion
965
980
  //#region src/components/Tabs/Tabs.tsx
966
- function we(e, t) {
981
+ function Te(e, t) {
967
982
  if (!e || !t) return;
968
983
  let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
969
984
  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
985
  }
971
- var Te = {
986
+ var Ee = {
972
987
  micro: 14,
973
988
  default: 14,
974
989
  large: 21
975
990
  };
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: _ }) {
991
+ function De({ items: e, value: r, onValueChange: o, size: c = "default", variant: f = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
977
992
  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
993
  let n = e[t];
979
994
  if (!n) return;
980
995
  o(n.value);
981
996
  let r = y.current.get(n.value);
982
- r?.focus({ preventScroll: !0 }), p && we(v.current, r);
997
+ r?.focus({ preventScroll: !0 }), p && Te(v.current, r);
983
998
  }, w = (t, n) => {
984
999
  for (let r = 1; r <= e.length; r++) {
985
1000
  let i = (t + n * r + e.length * r) % e.length;
@@ -1026,7 +1041,7 @@ function Ee({ items: e, value: r, onValueChange: o, size: c = "default", variant
1026
1041
  m,
1027
1042
  e.length
1028
1043
  ]), i(() => {
1029
- p && we(v.current, y.current.get(r));
1044
+ p && Te(v.current, y.current.get(r));
1030
1045
  }, [p, r]), /* @__PURE__ */ u("div", {
1031
1046
  ref: v,
1032
1047
  className: `${H.tabs} ${f === "button" ? H.buttonVariant : ""} ${p ? H.scrollable : ""} ${p && m !== void 0 ? H.bleed : ""}`,
@@ -1038,7 +1053,7 @@ function Ee({ items: e, value: r, onValueChange: o, size: c = "default", variant
1038
1053
  e.icon ? /* @__PURE__ */ u("span", {
1039
1054
  className: H.icon,
1040
1055
  "aria-hidden": "true",
1041
- children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Te[c] }) : e.icon
1056
+ children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Ee[c] }) : e.icon
1042
1057
  }) : null,
1043
1058
  e.label,
1044
1059
  e.badge != null && e.badge !== !1 ? /* @__PURE__ */ u("span", {
@@ -1108,13 +1123,13 @@ var U = {
1108
1123
  };
1109
1124
  //#endregion
1110
1125
  //#region src/components/Breadcrumbs/Breadcrumbs.tsx
1111
- function De(t) {
1126
+ function Oe(t) {
1112
1127
  return e.isValidElement(t) ? e.cloneElement(t, {
1113
1128
  size: "14px",
1114
1129
  color: "currentColor"
1115
1130
  }) : t;
1116
1131
  }
1117
- var Oe = "\0action", ke = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1132
+ var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1118
1133
  size: 14,
1119
1134
  color: "currentColor"
1120
1135
  }), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
@@ -1140,7 +1155,7 @@ var Oe = "\0action", ke = ({ items: e, size: t = "default", overflow: n = "wrap"
1140
1155
  children: /* @__PURE__ */ d(l, { children: [t.icon && /* @__PURE__ */ u("span", {
1141
1156
  className: U.icon,
1142
1157
  "aria-hidden": "true",
1143
- children: De(t.icon)
1158
+ children: Oe(t.icon)
1144
1159
  }), /* @__PURE__ */ u("span", {
1145
1160
  className: U.text,
1146
1161
  children: t.label
@@ -1154,14 +1169,14 @@ var Oe = "\0action", ke = ({ items: e, size: t = "default", overflow: n = "wrap"
1154
1169
  children: [t.icon && /* @__PURE__ */ u("span", {
1155
1170
  className: U.icon,
1156
1171
  "aria-hidden": "true",
1157
- children: De(t.icon)
1172
+ children: Oe(t.icon)
1158
1173
  }), /* @__PURE__ */ u("span", {
1159
1174
  className: U.text,
1160
1175
  children: t.label
1161
1176
  })]
1162
1177
  }), t.switcher && /* @__PURE__ */ d(D.Root, {
1163
1178
  value: t.switcher.value,
1164
- onValueChange: (e) => e === Oe ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1179
+ onValueChange: (e) => e === ke ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1165
1180
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1166
1181
  children: [/* @__PURE__ */ u(D.Trigger, {
1167
1182
  className: U.trigger,
@@ -1201,7 +1216,7 @@ var Oe = "\0action", ke = ({ items: e, size: t = "default", overflow: n = "wrap"
1201
1216
  })
1202
1217
  })]
1203
1218
  }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: U.menuDivider }), /* @__PURE__ */ u(D.Item, {
1204
- value: Oe,
1219
+ value: ke,
1205
1220
  className: B.item,
1206
1221
  textValue: t.switcher.action.label,
1207
1222
  children: /* @__PURE__ */ d("span", {
@@ -1222,7 +1237,7 @@ var Oe = "\0action", ke = ({ items: e, size: t = "default", overflow: n = "wrap"
1222
1237
  })]
1223
1238
  }, t.id))
1224
1239
  })
1225
- }), Ae = {
1240
+ }), je = {
1226
1241
  wrapper: "_wrapper_1a9jo_1",
1227
1242
  track: "_track_1a9jo_8",
1228
1243
  fill: "_fill_1a9jo_36",
@@ -1230,42 +1245,42 @@ var Oe = "\0action", ke = ({ items: e, size: t = "default", overflow: n = "wrap"
1230
1245
  };
1231
1246
  //#endregion
1232
1247
  //#region src/components/ProgressBar/ProgressBar.tsx
1233
- function je({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1248
+ function Me({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1234
1249
  let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
1235
1250
  return /* @__PURE__ */ d("div", {
1236
- className: `${Ae.wrapper} ${r}`,
1251
+ className: `${je.wrapper} ${r}`,
1237
1252
  role: "progressbar",
1238
1253
  "aria-valuenow": i,
1239
1254
  "aria-valuemin": 0,
1240
1255
  "aria-valuemax": 100,
1241
1256
  children: [/* @__PURE__ */ u("div", {
1242
- className: Ae.track,
1257
+ className: je.track,
1243
1258
  children: /* @__PURE__ */ u("div", {
1244
- className: Ae.fill,
1259
+ className: je.fill,
1245
1260
  style: {
1246
1261
  width: `${i}%`,
1247
1262
  backgroundColor: o
1248
1263
  }
1249
1264
  })
1250
1265
  }), t && /* @__PURE__ */ u("span", {
1251
- className: Ae.label,
1266
+ className: je.label,
1252
1267
  "aria-hidden": "true",
1253
1268
  children: a
1254
1269
  })]
1255
1270
  });
1256
1271
  }
1257
- var Me = {
1272
+ var Ne = {
1258
1273
  chip: "_chip_iaxe0_1",
1259
1274
  large: "_large_iaxe0_14"
1260
1275
  };
1261
1276
  //#endregion
1262
1277
  //#region src/components/Chip/Chip.tsx
1263
- function Ne({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1278
+ function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1264
1279
  let s = {};
1265
1280
  return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ d("span", {
1266
1281
  className: [
1267
- Me.chip,
1268
- o === "large" && Me.large,
1282
+ Ne.chip,
1283
+ o === "large" && Ne.large,
1269
1284
  i
1270
1285
  ].filter(Boolean).join(" "),
1271
1286
  style: s,
@@ -1286,63 +1301,63 @@ var W = {
1286
1301
  success: "_success_ok48u_24",
1287
1302
  warning: "_warning_ok48u_25",
1288
1303
  destructive: "_destructive_ok48u_26"
1289
- }, Pe = {
1304
+ }, Fe = {
1290
1305
  success: /* @__PURE__ */ u(m, {}),
1291
1306
  warning: /* @__PURE__ */ u(w, {}),
1292
1307
  destructive: /* @__PURE__ */ u(w, {})
1293
1308
  };
1294
- function Fe(t) {
1309
+ function Ie(t) {
1295
1310
  return e.isValidElement(t) ? e.cloneElement(t, {
1296
1311
  size: 16,
1297
1312
  color: "currentColor"
1298
1313
  }) : t;
1299
1314
  }
1300
- var Ie = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1301
- let a = t === void 0 ? Pe[e] : t;
1315
+ var Le = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1316
+ let a = t === void 0 ? Fe[e] : t;
1302
1317
  return /* @__PURE__ */ d("div", {
1303
1318
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
1304
1319
  className: `${W.root} ${W[e]} ${n}`,
1305
1320
  children: [a && /* @__PURE__ */ u("span", {
1306
1321
  className: W.icon,
1307
1322
  "aria-hidden": "true",
1308
- children: Fe(a)
1323
+ children: Ie(a)
1309
1324
  }), /* @__PURE__ */ u("div", {
1310
1325
  className: W.body,
1311
1326
  children: r
1312
1327
  })]
1313
1328
  });
1314
- }, Le = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1329
+ }, Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1315
1330
  className: `${W.title} ${t}`,
1316
1331
  children: e
1317
- }), Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1332
+ }), ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1318
1333
  className: `${W.description} ${t}`,
1319
1334
  children: e
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", {
1335
+ }), Be = {
1336
+ root: "_root_1aak8_10",
1337
+ main: "_main_1aak8_33",
1338
+ aside: "_aside_1aak8_34",
1339
+ message: "_message_1aak8_41"
1340
+ }, Ve = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ d("div", {
1326
1341
  role: "region",
1327
1342
  "aria-label": a,
1328
- className: `${ze.root} ${i}`,
1343
+ className: `${Be.root} ${i}`,
1329
1344
  children: [/* @__PURE__ */ d("div", {
1330
- className: ze.main,
1345
+ className: Be.main,
1331
1346
  children: [r, t && /* @__PURE__ */ u("span", {
1332
- className: ze.message,
1347
+ className: Be.message,
1333
1348
  children: t
1334
1349
  })]
1335
1350
  }), n && /* @__PURE__ */ u("div", {
1336
- className: ze.aside,
1351
+ className: Be.aside,
1337
1352
  children: n
1338
1353
  })]
1339
- }) : null, Ve = {
1354
+ }) : null, He = {
1340
1355
  tooltip: "_tooltip_1de7z_1",
1341
1356
  arrow: "_arrow_1de7z_13"
1342
1357
  };
1343
1358
  //#endregion
1344
1359
  //#region src/components/Tooltip/Tooltip.tsx
1345
- function He({ content: e, position: t = "top", children: n, className: r }) {
1360
+ function Ue({ content: e, position: t = "top", children: n, className: r }) {
1346
1361
  return /* @__PURE__ */ u(k.Provider, {
1347
1362
  delayDuration: 80,
1348
1363
  children: /* @__PURE__ */ d(k.Root, { children: [/* @__PURE__ */ u(k.Trigger, {
@@ -1351,8 +1366,8 @@ function He({ content: e, position: t = "top", children: n, className: r }) {
1351
1366
  }), /* @__PURE__ */ u(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
1352
1367
  side: t,
1353
1368
  sideOffset: 7,
1354
- className: [Ve.tooltip, r].filter(Boolean).join(" "),
1355
- children: [e, /* @__PURE__ */ u(k.Arrow, { className: Ve.arrow })]
1369
+ className: [He.tooltip, r].filter(Boolean).join(" "),
1370
+ children: [e, /* @__PURE__ */ u(k.Arrow, { className: He.arrow })]
1356
1371
  }) })] })
1357
1372
  });
1358
1373
  }
@@ -1370,11 +1385,11 @@ var G = {
1370
1385
  legendItem: "_legendItem_1w5vh_90",
1371
1386
  legendMark: "_legendMark_1w5vh_96",
1372
1387
  legendLabel: "_legendLabel_1w5vh_102"
1373
- }, Ue = "var(--lv4)", K = 12, We = 20, Ge = 8, Ke = 28, q = 20;
1374
- function qe(e) {
1388
+ }, We = "var(--lv4)", K = 12, Ge = 20, Ke = 8, qe = 28, q = 20;
1389
+ function Je(e) {
1375
1390
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
1376
1391
  }
1377
- function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l }) {
1392
+ function Ye({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l }) {
1378
1393
  let f = s(null), [p, m] = c(0), [h, g] = c(null);
1379
1394
  i(() => {
1380
1395
  let e = f.current;
@@ -1382,7 +1397,7 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1382
1397
  let t = new ResizeObserver(([e]) => m(e.contentRect.width));
1383
1398
  return t.observe(e), m(e.clientWidth), () => t.disconnect();
1384
1399
  }, []);
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) => {
1400
+ let _ = t?.length ? qe : Ke, v = Math.max(p - q - Ge, 0), y = Math.max(a - K - _, 0), b = e.flatMap((e) => e.data.filter(Number.isFinite)), x = b.length ? Math.max(...b, 0) : 1, S = n === "bar" ? 0 : Math.min(...b, 0), C = x - S || 1, w = Math.max(...e.map((e) => e.data.length), 0), T = (e) => K + (1 - (e - S) / C) * y, E = (e) => w <= 1 ? q + v / 2 : q + e / (w - 1) * v, D = r((e) => {
1386
1401
  if (w === 0) return;
1387
1402
  let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
1388
1403
  if (n === "line") {
@@ -1429,7 +1444,7 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1429
1444
  });
1430
1445
  })() : null, M = () => e.map((e, t) => {
1431
1446
  if (!e.data.length) return null;
1432
- let n = e.color ?? Ue;
1447
+ let n = e.color ?? We;
1433
1448
  return /* @__PURE__ */ d("g", { children: [/* @__PURE__ */ u("polyline", {
1434
1449
  points: e.data.map((e, t) => `${E(t).toFixed(2)},${T(e).toFixed(2)}`).join(" "),
1435
1450
  fill: "none",
@@ -1500,7 +1515,7 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1500
1515
  children: [
1501
1516
  /* @__PURE__ */ u("span", {
1502
1517
  className: G.tooltipDot,
1503
- style: { background: e.color ?? Ue }
1518
+ style: { background: e.color ?? We }
1504
1519
  }),
1505
1520
  /* @__PURE__ */ u("span", {
1506
1521
  className: G.tooltipName,
@@ -1508,7 +1523,7 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1508
1523
  }),
1509
1524
  /* @__PURE__ */ u("span", {
1510
1525
  className: G.tooltipValue,
1511
- children: qe(e.data[h.index] ?? 0)
1526
+ children: Je(e.data[h.index] ?? 0)
1512
1527
  })
1513
1528
  ]
1514
1529
  }, t))]
@@ -1541,7 +1556,7 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1541
1556
  className: G.legendItem,
1542
1557
  children: [/* @__PURE__ */ u("div", {
1543
1558
  className: G.legendMark,
1544
- style: { background: e.color ?? Ue }
1559
+ style: { background: e.color ?? We }
1545
1560
  }), /* @__PURE__ */ u("span", {
1546
1561
  className: G.legendLabel,
1547
1562
  children: e.label
@@ -1559,7 +1574,7 @@ var J = {
1559
1574
  };
1560
1575
  //#endregion
1561
1576
  //#region src/components/Textarea/Textarea.tsx
1562
- function Ye({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1577
+ function Xe({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1563
1578
  let c = e.useId(), l = a || c, f = `${l}-error`, p = n || !i;
1564
1579
  return /* @__PURE__ */ d("div", {
1565
1580
  className: `${J.wrapper} ${r}`,
@@ -1596,7 +1611,7 @@ var Y = {
1596
1611
  description: "_description_xud7c_34",
1597
1612
  close: "_close_xud7c_40",
1598
1613
  srOnly: "_srOnly_xud7c_62"
1599
- }, Xe = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1614
+ }, Ze = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1600
1615
  open: n,
1601
1616
  onOpenChange: r,
1602
1617
  children: [e && /* @__PURE__ */ u(A.Trigger, {
@@ -1643,7 +1658,7 @@ var Y = {
1643
1658
  today: "_today_aimna_131",
1644
1659
  selected: "_selected_aimna_136",
1645
1660
  errorText: "_errorText_aimna_142"
1646
- }, Ze = [
1661
+ }, Qe = [
1647
1662
  "Mo",
1648
1663
  "Tu",
1649
1664
  "We",
@@ -1651,7 +1666,7 @@ var Y = {
1651
1666
  "Fr",
1652
1667
  "Sa",
1653
1668
  "Su"
1654
- ], Qe = [
1669
+ ], $e = [
1655
1670
  "January",
1656
1671
  "February",
1657
1672
  "March",
@@ -1669,15 +1684,15 @@ function Z(e) {
1669
1684
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
1670
1685
  return `${e.getFullYear()}-${t}-${n}`;
1671
1686
  }
1672
- function $e(e, t) {
1687
+ function et(e, t) {
1673
1688
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1674
1689
  }
1675
- function et(e, t) {
1690
+ function tt(e, t) {
1676
1691
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
1677
1692
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
1678
1693
  return r;
1679
1694
  }
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 }) => {
1695
+ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = Z }) => {
1681
1696
  let p = e.useId(), m = `${p}-error`, v = !!a || !o, [y, b] = c(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = c(S.getFullYear()), [T, E] = c(S.getMonth()), [D, k] = c(S), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
1682
1697
  if (e) {
1683
1698
  let e = t ?? /* @__PURE__ */ new Date();
@@ -1713,7 +1728,7 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1713
1728
  T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1714
1729
  }, N = (e) => {
1715
1730
  n?.(e), b(!1);
1716
- }, P = et(C, T);
1731
+ }, P = tt(C, T);
1717
1732
  return /* @__PURE__ */ d("div", {
1718
1733
  className: `${X.wrapper} ${l}`,
1719
1734
  children: [
@@ -1768,7 +1783,7 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1768
1783
  /* @__PURE__ */ d("span", {
1769
1784
  className: X.monthLabel,
1770
1785
  children: [
1771
- Qe[T],
1786
+ $e[T],
1772
1787
  " ",
1773
1788
  C
1774
1789
  ]
@@ -1787,7 +1802,7 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1787
1802
  }),
1788
1803
  /* @__PURE__ */ u("div", {
1789
1804
  className: X.weekdays,
1790
- children: Ze.map((e) => /* @__PURE__ */ u("span", {
1805
+ children: Qe.map((e) => /* @__PURE__ */ u("span", {
1791
1806
  className: X.weekday,
1792
1807
  children: e
1793
1808
  }, e))
@@ -1795,7 +1810,7 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1795
1810
  /* @__PURE__ */ u("div", {
1796
1811
  className: X.grid,
1797
1812
  children: P.map((e) => {
1798
- let n = e.getMonth() !== T, r = $e(e, t), i = $e(e, x);
1813
+ let n = e.getMonth() !== T, r = et(e, t), i = et(e, x);
1799
1814
  return /* @__PURE__ */ u("button", {
1800
1815
  type: "button",
1801
1816
  className: [
@@ -1816,7 +1831,7 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1816
1831
  }),
1817
1832
  "aria-pressed": r,
1818
1833
  "aria-current": i ? "date" : void 0,
1819
- tabIndex: $e(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1834
+ tabIndex: et(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1820
1835
  onKeyDown: (t) => ee(t, e),
1821
1836
  children: e.getDate()
1822
1837
  }, e.toISOString());
@@ -1834,33 +1849,38 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1834
1849
  ]
1835
1850
  });
1836
1851
  }, Q = {
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 = {
1852
+ root: "_root_biiv1_1",
1853
+ micro: "_micro_biiv1_7",
1854
+ default: "_default_biiv1_8",
1855
+ large: "_large_biiv1_9",
1856
+ list: "_list_biiv1_11",
1857
+ alignEnd: "_alignEnd_biiv1_24",
1858
+ alignList: "_alignList_biiv1_24",
1859
+ control: "_control_biiv1_29",
1860
+ link: "_link_biiv1_56",
1861
+ icon: "_icon_biiv1_57",
1862
+ caret: "_caret_biiv1_57",
1863
+ viewportPosition: "_viewportPosition_biiv1_60",
1864
+ panelTrigger: "_panelTrigger_biiv1_77",
1865
+ viewport: "_viewport_biiv1_60",
1866
+ content: "_content_biiv1_110"
1867
+ }, rt = {
1853
1868
  micro: 14,
1854
1869
  default: 14,
1855
1870
  large: 21
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(() => {
1871
+ }, it = e.createContext("default"), at = typeof window > "u" ? e.useEffect : e.useLayoutEffect, ot = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, f) => {
1872
+ let p = e.useRef(null), m = e.useRef(!1);
1873
+ at(() => {
1859
1874
  let e = p.current;
1860
1875
  if (!e || r !== "trigger") return;
1861
1876
  let t = () => {
1862
1877
  let t = e.querySelector("[data-state=\"open\"][aria-expanded=\"true\"]");
1863
- t && h(t.getBoundingClientRect().left - e.getBoundingClientRect().left);
1878
+ if (!t) {
1879
+ m.current = !1;
1880
+ return;
1881
+ }
1882
+ let n = t.getBoundingClientRect().left - e.getBoundingClientRect().left;
1883
+ m.current || e.setAttribute("data-panel-jump", ""), e.style.setProperty("--panel-offset", `${Math.round(n)}px`), m.current ||= (e.offsetWidth, e.removeAttribute("data-panel-jump"), !0);
1864
1884
  };
1865
1885
  t();
1866
1886
  let n = new MutationObserver(t);
@@ -1869,17 +1889,18 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1869
1889
  attributes: !0,
1870
1890
  attributeFilter: ["data-state"]
1871
1891
  });
1872
- let i = new ResizeObserver(t);
1892
+ let i = new ResizeObserver(() => {
1893
+ m.current = !1, t();
1894
+ });
1873
1895
  return i.observe(e), () => {
1874
1896
  n.disconnect(), i.disconnect();
1875
1897
  };
1876
1898
  }, [r, s]);
1877
- let g = {
1899
+ let h = {
1878
1900
  ...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, {
1901
+ ...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
1902
+ }, g = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
1903
+ return /* @__PURE__ */ u(it.Provider, {
1883
1904
  value: t,
1884
1905
  children: /* @__PURE__ */ d(j.Root, {
1885
1906
  ...l,
@@ -1887,8 +1908,8 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1887
1908
  p.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
1888
1909
  },
1889
1910
  "aria-label": c,
1890
- style: g,
1891
- className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${_} ${a}`,
1911
+ style: h,
1912
+ className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${g} ${a}`,
1892
1913
  children: [s, /* @__PURE__ */ u("div", {
1893
1914
  className: Q.viewportPosition,
1894
1915
  children: /* @__PURE__ */ u(j.Viewport, { className: Q.viewport })
@@ -1896,59 +1917,59 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1896
1917
  })
1897
1918
  });
1898
1919
  });
1899
- it.displayName = "NavigationMenu";
1900
- var at = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
1920
+ ot.displayName = "NavigationMenu";
1921
+ var st = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
1901
1922
  ...t,
1902
1923
  ref: n,
1903
1924
  className: `${Q.list} ${e}`
1904
1925
  }));
1905
- at.displayName = "NavigationMenuList";
1906
- var ot = j.Item;
1907
- function st({ icon: t }) {
1908
- let n = e.useContext(rt);
1926
+ st.displayName = "NavigationMenuList";
1927
+ var ct = j.Item;
1928
+ function lt({ icon: t }) {
1929
+ let n = e.useContext(it);
1909
1930
  return t ? /* @__PURE__ */ u("span", {
1910
1931
  className: Q.icon,
1911
1932
  "aria-hidden": "true",
1912
1933
  children: e.cloneElement(t, {
1913
- size: nt[n],
1934
+ size: rt[n],
1914
1935
  color: "currentColor"
1915
1936
  })
1916
1937
  }) : null;
1917
1938
  }
1918
- var ct = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
1919
- let o = e.useContext(rt);
1939
+ var ut = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
1940
+ let o = e.useContext(it);
1920
1941
  return /* @__PURE__ */ d(j.Trigger, {
1921
1942
  ...i,
1922
1943
  ref: a,
1923
1944
  className: `${Q.control} ${t}`,
1924
1945
  children: [
1925
- /* @__PURE__ */ u(st, { icon: n }),
1946
+ /* @__PURE__ */ u(lt, { icon: n }),
1926
1947
  r,
1927
1948
  /* @__PURE__ */ u("span", {
1928
1949
  className: Q.caret,
1929
1950
  "aria-hidden": "true",
1930
1951
  children: /* @__PURE__ */ u(h, {
1931
- size: nt[o],
1952
+ size: rt[o],
1932
1953
  color: "currentColor"
1933
1954
  })
1934
1955
  })
1935
1956
  ]
1936
1957
  });
1937
1958
  });
1938
- ct.displayName = "NavigationMenuTrigger";
1939
- var lt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
1959
+ ut.displayName = "NavigationMenuTrigger";
1960
+ var dt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
1940
1961
  ...t,
1941
1962
  ref: n,
1942
1963
  className: `${Q.content} ${e}`
1943
1964
  }));
1944
- lt.displayName = "NavigationMenuContent";
1945
- var ut = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
1965
+ dt.displayName = "NavigationMenuContent";
1966
+ var ft = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
1946
1967
  ...i,
1947
1968
  ref: a,
1948
1969
  className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
1949
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(st, { icon: t }), r] }) : r
1970
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(lt, { icon: t }), r] }) : r
1950
1971
  }));
1951
- ut.displayName = "NavigationMenuLink";
1972
+ ft.displayName = "NavigationMenuLink";
1952
1973
  var $ = {
1953
1974
  panel: "_panel_1hiss_6",
1954
1975
  header: "_header_1hiss_14",
@@ -1980,18 +2001,18 @@ var $ = {
1980
2001
  };
1981
2002
  //#endregion
1982
2003
  //#region src/components/Chat/ChatPanel.tsx
1983
- function dt({ children: e }) {
2004
+ function pt({ children: e }) {
1984
2005
  return /* @__PURE__ */ u("kbd", {
1985
2006
  className: $.kbd,
1986
2007
  children: e
1987
2008
  });
1988
2009
  }
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"] })
2010
+ var mt = /* @__PURE__ */ d(l, { children: [
2011
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(pt, { children: "↵" }), " send"] }),
2012
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(pt, { children: "⇧↵" }), " new line"] }),
2013
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(pt, { children: "esc" }), " close"] })
1993
2014
  ] });
1994
- function pt({ header: e, children: t, composer: n, hints: r = ft, className: i = "", threadRef: a, "aria-label": o }) {
2015
+ function ht({ header: e, children: t, composer: n, hints: r = mt, className: i = "", threadRef: a, "aria-label": o }) {
1995
2016
  return /* @__PURE__ */ d("div", {
1996
2017
  className: `${$.panel} ${i}`,
1997
2018
  "aria-label": o,
@@ -2020,7 +2041,7 @@ function pt({ header: e, children: t, composer: n, hints: r = ft, className: i =
2020
2041
  }
2021
2042
  //#endregion
2022
2043
  //#region src/components/Chat/Message.tsx
2023
- function mt({ children: e, className: t = "" }) {
2044
+ function gt({ children: e, className: t = "" }) {
2024
2045
  return /* @__PURE__ */ u("div", {
2025
2046
  className: $.userRow,
2026
2047
  children: /* @__PURE__ */ u("div", {
@@ -2029,7 +2050,7 @@ function mt({ children: e, className: t = "" }) {
2029
2050
  })
2030
2051
  });
2031
2052
  }
2032
- function ht({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2053
+ function _t({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2033
2054
  return /* @__PURE__ */ d("div", {
2034
2055
  className: `${$.assistant} ${r}`,
2035
2056
  children: [/* @__PURE__ */ d("div", {
@@ -2046,13 +2067,13 @@ function ht({ label: e = "Assistant", icon: t, children: n, className: r = "" })
2046
2067
  }
2047
2068
  //#endregion
2048
2069
  //#region src/components/Chat/Composer.tsx
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) {
2070
+ var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: a, streaming: c = !1, placeholder: l = "Ask a question…", disabled: m = !1, autoFocus: h = !1, icon: g, maxLines: _ = 6, className: v = "", "aria-label": y = "Message" }, b) {
2050
2071
  let x = s(null);
2051
2072
  o(b, () => ({ focus: () => x.current?.focus() }), []), i(() => {
2052
2073
  let e = x.current;
2053
2074
  if (!e) return;
2054
2075
  e.style.height = "auto";
2055
- let t = gt * _ + 12;
2076
+ let t = vt * _ + 12;
2056
2077
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
2057
2078
  }, [e, _]);
2058
2079
  let S = !c && !m && e.trim().length > 0, w = r(() => {
@@ -2108,7 +2129,7 @@ var gt = 18, _t = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2108
2129
  });
2109
2130
  //#endregion
2110
2131
  //#region src/components/Chat/Citation.tsx
2111
- function vt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2132
+ function bt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2112
2133
  let a = `${$.ref} ${i}`;
2113
2134
  return t ? /* @__PURE__ */ u("a", {
2114
2135
  href: t,
@@ -2126,7 +2147,7 @@ function vt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2126
2147
  children: e
2127
2148
  });
2128
2149
  }
2129
- function yt({ items: e, label: t = "Sources", className: n = "" }) {
2150
+ function xt({ items: e, label: t = "Sources", className: n = "" }) {
2130
2151
  return e.length === 0 ? null : /* @__PURE__ */ d("div", {
2131
2152
  className: `${$.stack} ${n}`,
2132
2153
  children: [/* @__PURE__ */ u("div", {
@@ -2135,7 +2156,7 @@ function yt({ items: e, label: t = "Sources", className: n = "" }) {
2135
2156
  }), /* @__PURE__ */ u("div", {
2136
2157
  className: $.wrap,
2137
2158
  children: e.map((e) => {
2138
- let t = /* @__PURE__ */ d(Ne, {
2159
+ let t = /* @__PURE__ */ d(Pe, {
2139
2160
  icon: e.icon,
2140
2161
  children: [
2141
2162
  /* @__PURE__ */ u("span", {
@@ -2163,7 +2184,7 @@ function yt({ items: e, label: t = "Sources", className: n = "" }) {
2163
2184
  }
2164
2185
  //#endregion
2165
2186
  //#region src/components/Chat/StreamStatus.tsx
2166
- function bt({ children: e, className: t = "" }) {
2187
+ function St({ children: e, className: t = "" }) {
2167
2188
  return /* @__PURE__ */ d("div", {
2168
2189
  className: `${$.status} ${t}`,
2169
2190
  role: "status",
@@ -2175,7 +2196,7 @@ function bt({ children: e, className: t = "" }) {
2175
2196
  }
2176
2197
  //#endregion
2177
2198
  //#region src/components/Chat/Suggestions.tsx
2178
- function xt({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2199
+ function Ct({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2179
2200
  return /* @__PURE__ */ d("div", {
2180
2201
  className: `${$.suggestions} ${r}`,
2181
2202
  children: [/* @__PURE__ */ u("div", {
@@ -2194,7 +2215,7 @@ function xt({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
2194
2215
  }
2195
2216
  //#endregion
2196
2217
  //#region src/components/Chat/AnswerActions.tsx
2197
- function St({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2218
+ function wt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2198
2219
  return /* @__PURE__ */ d("div", {
2199
2220
  className: `${$.actions} ${i}`,
2200
2221
  children: [
@@ -2216,21 +2237,21 @@ function St({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
2216
2237
  ]
2217
2238
  });
2218
2239
  }
2219
- var Ct = {
2240
+ var Tt = {
2220
2241
  truncate: "_truncate_za4sm_1",
2221
2242
  start: "_start_za4sm_13"
2222
2243
  };
2223
2244
  //#endregion
2224
2245
  //#region src/components/Truncate/Truncate.tsx
2225
- function wt({ children: e, side: t = "end", title: n, className: r = "" }) {
2246
+ function Et({ children: e, side: t = "end", title: n, className: r = "" }) {
2226
2247
  let i = n ?? (typeof e == "string" ? e : void 0);
2227
2248
  return /* @__PURE__ */ u("span", {
2228
- className: `${Ct.truncate} ${t === "start" ? Ct.start : ""} ${r}`,
2249
+ className: `${Tt.truncate} ${t === "start" ? Tt.start : ""} ${r}`,
2229
2250
  title: i,
2230
2251
  children: t === "start" ? /* @__PURE__ */ u("bdi", { children: e }) : e
2231
2252
  });
2232
2253
  }
2233
- var Tt = {
2254
+ var Dt = {
2234
2255
  disclosure: "_disclosure_94bgy_1",
2235
2256
  trigger: "_trigger_94bgy_7",
2236
2257
  summary: "_summary_94bgy_31",
@@ -2239,24 +2260,24 @@ var Tt = {
2239
2260
  };
2240
2261
  //#endregion
2241
2262
  //#region src/components/Disclosure/Disclosure.tsx
2242
- function Et({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2263
+ function Ot({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2243
2264
  let [s, c] = e.useState(i), l = r ?? s, f = e.useId();
2244
2265
  return /* @__PURE__ */ d("div", {
2245
- className: `${Tt.disclosure} ${o}`,
2266
+ className: `${Dt.disclosure} ${o}`,
2246
2267
  "data-state": l ? "open" : "closed",
2247
2268
  children: [/* @__PURE__ */ d("button", {
2248
2269
  type: "button",
2249
- className: Tt.trigger,
2270
+ className: Dt.trigger,
2250
2271
  "aria-expanded": l,
2251
2272
  "aria-controls": l ? f : void 0,
2252
2273
  onClick: () => {
2253
2274
  r === void 0 && c(!l), a?.(!l);
2254
2275
  },
2255
2276
  children: [/* @__PURE__ */ u("span", {
2256
- className: Tt.summary,
2277
+ className: Dt.summary,
2257
2278
  children: t
2258
2279
  }), /* @__PURE__ */ u("span", {
2259
- className: Tt.chevron,
2280
+ className: Dt.chevron,
2260
2281
  "aria-hidden": "true",
2261
2282
  children: u(l ? h : _, {
2262
2283
  size: 14,
@@ -2265,10 +2286,10 @@ function Et({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
2265
2286
  })]
2266
2287
  }), l && /* @__PURE__ */ u("div", {
2267
2288
  id: f,
2268
- className: Tt.content,
2289
+ className: Dt.content,
2269
2290
  children: n
2270
2291
  })]
2271
2292
  });
2272
2293
  }
2273
2294
  //#endregion
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 };
2295
+ export { Le as Alert, ze as AlertDescription, Re as AlertTitle, wt as AnswerActions, _t as AssistantMessage, ae as Base, Ae as Breadcrumbs, P as Button, Ye as Chart, ht as ChatPanel, re as Checkbox, Pe as Chip, xt as CitationList, bt as CitationRef, yt as Composer, nt as DatePicker, Ot as Disclosure, oe as FilterPanelBase, le as InputField, pt as Kbd, Ze as Modal, ot as NavigationMenu, dt as NavigationMenuContent, ct as NavigationMenuItem, ft as NavigationMenuLink, st as NavigationMenuList, ut as NavigationMenuTrigger, ve as Popover, Me as ProgressBar, de as RadioButton, Ve as SaveBar, ce as SearchField, ge as Select, he as Slider, N as Spinner, St as StreamStatus, Ct as Suggestions, ye as Table, Se as TableCell, be as TableHeader, we as TableIcon, xe as TableRow, Ce as TableValue, De as Tabs, Xe as Textarea, pe as ToggleSwitch, Ue as Tooltip, Et as Truncate, gt as UserMessage, mt as defaultChatHints, ne as spinnerNames };