@minimalstuff/ui 5.7.1 → 5.8.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.
@@ -544,67 +544,74 @@ function Me(t) {
544
544
  }
545
545
  // src/components/card/card_header.tsx
546
546
  var Ne = {
547
+ sm: "text-base",
548
+ md: "text-lg"
549
+ }, Pe = {
550
+ sm: "mb-3",
551
+ md: "mb-4"
552
+ }, Fe = {
547
553
  2: "h2",
548
554
  3: "h3",
549
555
  4: "h4"
550
556
  };
551
- function Pe({ title: e, titleId: t, level: n, description: r, actions: i }) {
552
- let a = Ne[n];
557
+ function Ie({ title: t, titleId: n, level: r, size: i, description: a, actions: o }) {
558
+ let s = Fe[r];
553
559
  return /* @__PURE__ */ T("div", {
554
- className: "mb-4",
560
+ className: Pe[i],
555
561
  children: [/* @__PURE__ */ T("div", {
556
562
  className: "flex items-center justify-between gap-4",
557
- children: [/* @__PURE__ */ w(a, {
558
- id: t,
559
- className: "text-lg font-medium text-gray-900 dark:text-gray-100",
560
- children: e
561
- }), i]
562
- }), r && /* @__PURE__ */ w("p", {
563
+ children: [/* @__PURE__ */ w(s, {
564
+ id: n,
565
+ className: e(Ne[i], "font-medium text-gray-900 dark:text-gray-100"),
566
+ children: t
567
+ }), o]
568
+ }), a && /* @__PURE__ */ w("p", {
563
569
  className: "mt-1 text-sm text-gray-500 dark:text-gray-400",
564
- children: r
570
+ children: a
565
571
  })]
566
572
  });
567
573
  }
568
574
  // src/components/card/card.tsx
569
- var Fe = {
575
+ var Le = {
570
576
  none: "",
571
577
  sm: "p-4",
572
578
  md: "p-6",
573
579
  lg: "p-8"
574
580
  };
575
- function Ie({ children: t, title: n, description: r, actions: i, headingLevel: a = 2, padding: o = "md", radius: s = "lg", unstyled: c = !1, className: l }) {
576
- let u = g(), d = !!n;
581
+ function Re({ children: t, title: n, description: r, actions: i, headingLevel: a = 2, titleSize: o = "md", padding: s = "md", radius: c = "lg", unstyled: l = !1, className: u }) {
582
+ let d = g(), f = !!n;
577
583
  return /* @__PURE__ */ T("div", {
578
- role: d ? "region" : void 0,
579
- "aria-labelledby": d ? u : void 0,
580
- className: e(!c && [
584
+ role: f ? "region" : void 0,
585
+ "aria-labelledby": f ? d : void 0,
586
+ className: e(!l && [
581
587
  "border",
582
588
  "bg-white dark:bg-gray-800",
583
589
  "border-gray-200 dark:border-gray-700",
584
- z[s],
585
- Fe[o]
586
- ], l),
587
- children: [d && /* @__PURE__ */ w(Pe, {
590
+ z[c],
591
+ Le[s]
592
+ ], u),
593
+ children: [f && /* @__PURE__ */ w(Ie, {
588
594
  title: n,
589
- titleId: u,
595
+ titleId: d,
590
596
  level: a,
597
+ size: o,
591
598
  description: r,
592
599
  actions: i
593
600
  }), t]
594
601
  });
595
602
  }
596
603
  // src/components/character_count/character_count.tsx
597
- var Le = "text-xs text-gray-500 dark:text-gray-400 mt-1 text-right", Re = .1;
598
- function ze(e, t) {
604
+ var ze = "text-xs text-gray-500 dark:text-gray-400 mt-1 text-right", Be = .1;
605
+ function Ve(e, t) {
599
606
  if (t === void 0) return "ok";
600
607
  let n = t - e;
601
- return n <= 0 ? "empty" : n <= Math.max(1, Math.ceil(t * Re)) ? "low" : "ok";
608
+ return n <= 0 ? "empty" : n <= Math.max(1, Math.ceil(t * Be)) ? "low" : "ok";
602
609
  }
603
- function Be(e, t) {
610
+ function He(e, t) {
604
611
  return t ? "" : e === "overLimit" ? "text-red-600 dark:text-red-400" : e === "atLimit" ? "text-amber-700 dark:text-amber-400" : "";
605
612
  }
606
- function Ve({ current: t, min: n, max: r, showMin: i, showMax: a, unstyled: o = !1, id: s, className: c }) {
607
- let l = Q(), u = ze(t, r), [d, f] = b({
613
+ function Ue({ current: t, min: n, max: r, showMin: i, showMax: a, unstyled: o = !1, id: s, className: c }) {
614
+ let l = Q(), u = Ve(t, r), [d, f] = b({
608
615
  zone: u,
609
616
  message: ""
610
617
  });
@@ -618,23 +625,23 @@ function Ve({ current: t, min: n, max: r, showMin: i, showMax: a, unstyled: o =
618
625
  let p = i === !0 || a === !0, m = n !== void 0 && t <= n ? "atLimit" : "ok", h = r !== void 0 && t > r ? "overLimit" : r !== void 0 && t >= r ? "atLimit" : "ok", g = p ? `${t}/${n} min` : `${t} (min ${n})`, _ = p ? `${t}/${r} max` : `${t}/${r}`;
619
626
  return /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T("div", {
620
627
  id: s,
621
- className: e(!o && Le, c),
628
+ className: e(!o && ze, c),
622
629
  children: [
623
630
  i && n !== void 0 && /* @__PURE__ */ w("span", {
624
- className: Be(m, o),
631
+ className: He(m, o),
625
632
  children: g
626
633
  }),
627
634
  i && a && " · ",
628
635
  a && r !== void 0 && /* @__PURE__ */ w("span", {
629
- className: Be(h, o),
636
+ className: He(h, o),
630
637
  children: _
631
638
  }),
632
639
  !i && !a && r !== void 0 && /* @__PURE__ */ w("span", {
633
- className: Be(h, o),
640
+ className: He(h, o),
634
641
  children: _
635
642
  }),
636
643
  !i && !a && n !== void 0 && r === void 0 && /* @__PURE__ */ w("span", {
637
- className: Be(m, o),
644
+ className: He(m, o),
638
645
  children: g
639
646
  })
640
647
  ]
@@ -645,7 +652,7 @@ function Ve({ current: t, min: n, max: r, showMin: i, showMax: a, unstyled: o =
645
652
  })] });
646
653
  }
647
654
  // src/components/shared/checkmark_icon.tsx
648
- function He() {
655
+ function We() {
649
656
  return /* @__PURE__ */ w("svg", {
650
657
  className: "h-3 w-3 text-white",
651
658
  viewBox: "0 0 12 12",
@@ -658,7 +665,7 @@ function He() {
658
665
  });
659
666
  }
660
667
  // src/components/shared/dash_icon.tsx
661
- function Ue() {
668
+ function Ge() {
662
669
  return /* @__PURE__ */ w("svg", {
663
670
  className: "h-3 w-3 text-white",
664
671
  viewBox: "0 0 12 12",
@@ -674,30 +681,30 @@ function Ue() {
674
681
  })
675
682
  });
676
683
  }
677
- var We = `w-full border ${ge} ${_e} text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 ${k} transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed`, Ge = "text-sm font-medium text-gray-700 dark:text-gray-300", Ke = "text-red-500 dark:text-red-400 ml-1", qe = "text-xs text-gray-600 dark:text-gray-400", Je = "text-xs text-red-600 dark:text-red-400", Ye = "border-red-500 dark:border-red-400", Xe = ({ id: t, description: n, className: r }) => n ? typeof n == "string" ? /* @__PURE__ */ w("p", {
684
+ var Ke = `w-full border ${ge} ${_e} text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 ${k} transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed`, qe = "text-sm font-medium text-gray-700 dark:text-gray-300", Je = "text-red-500 dark:text-red-400 ml-1", Ye = "text-xs text-gray-600 dark:text-gray-400", Xe = "text-xs text-red-600 dark:text-red-400", Ze = "border-red-500 dark:border-red-400", Qe = ({ id: t, description: n, className: r }) => n ? typeof n == "string" ? /* @__PURE__ */ w("p", {
678
685
  id: t,
679
- className: e(qe, r),
686
+ className: e(Ye, r),
680
687
  children: n
681
688
  }) : /* @__PURE__ */ w("span", {
682
689
  id: t,
683
- className: e(qe, "block", r),
690
+ className: e(Ye, "block", r),
684
691
  children: n
685
- }) : null, Ze = l(!0);
686
- function Qe() {
687
- return p(Ze);
692
+ }) : null, $e = l(!0);
693
+ function et() {
694
+ return p($e);
688
695
  }
689
696
  // src/components/shared/field_error.tsx
690
- var $e = ({ id: t, error: n, className: r }) => {
691
- let i = Qe();
697
+ var tt = ({ id: t, error: n, className: r }) => {
698
+ let i = et();
692
699
  return n ? /* @__PURE__ */ w("p", {
693
700
  id: t,
694
- className: e(Je, r),
701
+ className: e(Xe, r),
695
702
  role: i ? "alert" : void 0,
696
703
  children: n
697
704
  }) : null;
698
705
  };
699
706
  // src/components/shared/option_card_styles.ts
700
- function et(t) {
707
+ function nt(t) {
701
708
  let { isSelected: n, isError: r, isDisabled: i, radius: a, unstyled: o } = t;
702
709
  return e("relative flex cursor-pointer items-start gap-3 transition-colors duration-150", A, r ? M : j, !o && [
703
710
  z[a],
@@ -705,27 +712,27 @@ function et(t) {
705
712
  n ? r ? e("border-red-500 dark:border-red-400", "bg-red-50 dark:bg-red-950/20") : "border-blue-500 bg-blue-50 dark:border-blue-500 dark:bg-blue-950/25" : r ? "border-red-300 bg-white dark:border-red-800/50 dark:bg-gray-800/50" : e("border-gray-200 dark:border-gray-700", "bg-gray-50 hover:border-gray-300 hover:bg-white dark:bg-gray-800/50 dark:hover:border-gray-600 dark:hover:bg-gray-800")
706
713
  ], i && "cursor-not-allowed opacity-50");
707
714
  }
708
- function tt(e) {
715
+ function rt(e) {
709
716
  let { isSelected: t, isError: n } = e;
710
- return t ? n ? Ye : "border-blue-600 dark:border-blue-500" : n ? "border-red-400 dark:border-red-600" : ge;
717
+ return t ? n ? Ze : "border-blue-600 dark:border-blue-500" : n ? "border-red-400 dark:border-red-600" : ge;
711
718
  }
712
719
  // src/components/shared/required_mark.tsx
713
- function nt() {
720
+ function it() {
714
721
  return /* @__PURE__ */ w("span", {
715
- className: Ke,
722
+ className: Je,
716
723
  "aria-hidden": "true",
717
724
  children: "*"
718
725
  });
719
726
  }
720
727
  // src/components/shared/use_controlled_state.ts
721
- function rt(e, t) {
728
+ function at(e, t) {
722
729
  let [n, r] = b(t), i = e !== void 0, a = f((e) => {
723
730
  i || r(e);
724
731
  }, [i]);
725
732
  return [i ? e : n, a];
726
733
  }
727
734
  // src/components/shared/use_field_ids.ts
728
- function it(e) {
735
+ function ot(e) {
729
736
  let t = g(), n = e ?? t;
730
737
  return {
731
738
  fieldId: n,
@@ -736,22 +743,22 @@ function it(e) {
736
743
  };
737
744
  }
738
745
  // src/components/shared/use_warn_unnamed.ts
739
- var at = "needs an accessible name. Provide a `label`, `aria-label` or `aria-labelledby` prop.", ot = "needs an accessible name. Provide a `label`, `aria-label` or `aria-labelledby` prop, or a `<label>` that targets it.";
740
- function st(e, t) {
746
+ var st = "needs an accessible name. Provide a `label`, `aria-label` or `aria-labelledby` prop.", ct = "needs an accessible name. Provide a `label`, `aria-label` or `aria-labelledby` prop, or a `<label>` that targets it.";
747
+ function lt(e, t) {
741
748
  process.env.NODE_ENV !== "production" && console.warn(`${e}: ${t}`);
742
749
  }
743
- function ct(e, t, n = at) {
750
+ function ut(e, t, n = st) {
744
751
  m(() => {
745
- t || st(e, n);
752
+ t || lt(e, n);
746
753
  }, [
747
754
  e,
748
755
  t,
749
756
  n
750
757
  ]);
751
758
  }
752
- function lt(e, t, n, r = ot) {
759
+ function dt(e, t, n, r = ct) {
753
760
  m(() => {
754
- n || (t.current?.labels?.length ?? 0) > 0 || st(e, r);
761
+ n || (t.current?.labels?.length ?? 0) > 0 || lt(e, r);
755
762
  }, [
756
763
  e,
757
764
  t,
@@ -760,18 +767,18 @@ function lt(e, t, n, r = ot) {
760
767
  ]);
761
768
  }
762
769
  // src/components/checkbox/checkbox.tsx
763
- function ut(e, t, n) {
770
+ function ft(e, t, n) {
764
771
  return e === void 0 ? null : typeof e == "string" ? /* @__PURE__ */ T("span", {
765
772
  className: t,
766
- children: [e, n && /* @__PURE__ */ w(nt, {})]
767
- }) : /* @__PURE__ */ T(C, { children: [e, n && /* @__PURE__ */ w(nt, {})] });
773
+ children: [e, n && /* @__PURE__ */ w(it, {})]
774
+ }) : /* @__PURE__ */ T(C, { children: [e, n && /* @__PURE__ */ w(it, {})] });
768
775
  }
769
- var dt = "absolute m-0 appearance-none opacity-0";
770
- function ft(t) {
776
+ var pt = "absolute m-0 appearance-none opacity-0";
777
+ function mt(t) {
771
778
  let { hasLabel: n, isCardVariant: r, isDisabled: i } = t;
772
- return n ? "sr-only" : e(dt, r ? "inset-0 h-full w-full" : "-inset-0.5 h-6 w-6", i ? "cursor-not-allowed" : "cursor-pointer");
779
+ return n ? "sr-only" : e(pt, r ? "inset-0 h-full w-full" : "-inset-0.5 h-6 w-6", i ? "cursor-not-allowed" : "cursor-pointer");
773
780
  }
774
- function pt({ htmlFor: e, className: t, children: n }) {
781
+ function ht({ htmlFor: e, className: t, children: n }) {
775
782
  return e === void 0 ? /* @__PURE__ */ w("div", {
776
783
  className: t,
777
784
  children: n
@@ -781,26 +788,26 @@ function pt({ htmlFor: e, className: t, children: n }) {
781
788
  children: n
782
789
  });
783
790
  }
784
- function mt({ label: t, indeterminate: n = !1, description: r, error: i, radius: a = "sm", unstyled: o = !1, fullWidth: s = !1, variant: c = "inline", className: l, wrapperClassName: u, checked: d, defaultChecked: f = !1, onChange: p, id: h, "aria-describedby": g, "aria-label": _, "aria-labelledby": b, ref: x, ...S }) {
785
- let { fieldId: C, errorId: E, descriptionId: D } = it(h), [O, k] = rt(d, f), A = y(null), j = c === "card", M = !!t, N = O || n, P = W(g, !!r && D, i && E);
786
- lt("Checkbox", A, !!t || !!_?.trim() || !!b?.trim());
791
+ function gt({ label: t, indeterminate: n = !1, description: r, error: i, radius: a = "sm", unstyled: o = !1, fullWidth: s = !1, variant: c = "inline", className: l, wrapperClassName: u, checked: d, defaultChecked: f = !1, onChange: p, id: h, "aria-describedby": g, "aria-label": _, "aria-labelledby": b, ref: x, ...S }) {
792
+ let { fieldId: C, errorId: E, descriptionId: D } = ot(h), [O, k] = at(d, f), A = y(null), j = c === "card", M = !!t, N = O || n, P = W(g, !!r && D, i && E);
793
+ dt("Checkbox", A, !!t || !!_?.trim() || !!b?.trim());
787
794
  let F = v(() => K(A, x), [x]);
788
795
  m(() => {
789
796
  A.current && (A.current.indeterminate = n);
790
797
  });
791
798
  let I = (e) => {
792
799
  e.target.indeterminate = n, k(e.target.checked), p?.(e);
793
- }, L = j ? et({
800
+ }, L = j ? nt({
794
801
  isSelected: N,
795
802
  isError: !!i,
796
803
  isDisabled: S.disabled === !0,
797
804
  radius: a,
798
805
  unstyled: o
799
- }) : e("flex items-start gap-3 cursor-pointer", S.disabled && "cursor-not-allowed opacity-50"), R = j ? e("select-none text-sm font-medium", N ? i ? "text-red-700 dark:text-red-300" : "text-blue-700 dark:text-blue-300" : "text-gray-700 dark:text-gray-300") : e(Ge, "select-none"), B = e("shrink-0", (M || !j) && "relative", z[a], !j && ["has-[:focus-visible]:outline-hidden has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-offset-2 has-[:focus-visible]:ring-offset-white dark:has-[:focus-visible]:ring-offset-gray-900", i ? "has-[:focus-visible]:ring-red-500" : "has-[:focus-visible]:ring-blue-500"]), V = ut(t, R, S.required === !0);
806
+ }) : e("flex items-start gap-3 cursor-pointer", S.disabled && "cursor-not-allowed opacity-50"), R = j ? e("select-none text-sm font-medium", N ? i ? "text-red-700 dark:text-red-300" : "text-blue-700 dark:text-blue-300" : "text-gray-700 dark:text-gray-300") : e(qe, "select-none"), B = e("shrink-0", (M || !j) && "relative", z[a], !j && ["has-[:focus-visible]:outline-hidden has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-offset-2 has-[:focus-visible]:ring-offset-white dark:has-[:focus-visible]:ring-offset-gray-900", i ? "has-[:focus-visible]:ring-red-500" : "has-[:focus-visible]:ring-blue-500"]), V = ft(t, R, S.required === !0);
800
807
  return /* @__PURE__ */ T("div", {
801
808
  className: e(s ? "w-full" : "w-fit", u),
802
809
  children: [
803
- /* @__PURE__ */ T(pt, {
810
+ /* @__PURE__ */ T(ht, {
804
811
  htmlFor: M ? C : void 0,
805
812
  className: L,
806
813
  children: [/* @__PURE__ */ T("span", {
@@ -809,7 +816,7 @@ function mt({ label: t, indeterminate: n = !1, description: r, error: i, radius:
809
816
  type: "checkbox",
810
817
  ref: F,
811
818
  id: C,
812
- className: ft({
819
+ className: mt({
813
820
  hasLabel: M,
814
821
  isCardVariant: j,
815
822
  isDisabled: S.disabled === !0
@@ -829,7 +836,7 @@ function mt({ label: t, indeterminate: n = !1, description: r, error: i, radius:
829
836
  i && "border-red-500 dark:border-red-400"
830
837
  ], l),
831
838
  "aria-hidden": !0,
832
- children: n ? /* @__PURE__ */ w(Ue, {}) : O && /* @__PURE__ */ w(He, {})
839
+ children: n ? /* @__PURE__ */ w(Ge, {}) : O && /* @__PURE__ */ w(We, {})
833
840
  })]
834
841
  }), j ? /* @__PURE__ */ T("span", {
835
842
  className: "flex min-w-0 flex-col",
@@ -841,12 +848,12 @@ function mt({ label: t, indeterminate: n = !1, description: r, error: i, radius:
841
848
  })]
842
849
  }) : V]
843
850
  }),
844
- !j && /* @__PURE__ */ w(Xe, {
851
+ !j && /* @__PURE__ */ w(Qe, {
845
852
  id: D,
846
853
  description: r,
847
854
  className: "mt-1 ml-8"
848
855
  }),
849
- /* @__PURE__ */ w($e, {
856
+ /* @__PURE__ */ w(tt, {
850
857
  id: E,
851
858
  error: i,
852
859
  className: j ? "mt-1" : "mt-1 ml-8"
@@ -855,10 +862,10 @@ function mt({ label: t, indeterminate: n = !1, description: r, error: i, radius:
855
862
  });
856
863
  }
857
864
  // src/components/shared/option_row.tsx
858
- function ht({ item: t, htmlFor: n, descriptionId: r, orientation: i, isSelected: a, isDisabled: o, isError: s, radius: c, unstyled: l, className: u, control: d, indicator: f }) {
865
+ function _t({ item: t, htmlFor: n, descriptionId: r, orientation: i, isSelected: a, isDisabled: o, isError: s, radius: c, unstyled: l, className: u, control: d, indicator: f }) {
859
866
  return /* @__PURE__ */ T("label", {
860
867
  htmlFor: n,
861
- className: e(et({
868
+ className: e(nt({
862
869
  isSelected: a,
863
870
  isError: s,
864
871
  isDisabled: o,
@@ -892,9 +899,9 @@ function ht({ item: t, htmlFor: n, descriptionId: r, orientation: i, isSelected:
892
899
  });
893
900
  }
894
901
  // src/components/checkbox_options/checkbox_option_row.tsx
895
- function gt({ option: t, optionId: n, descriptionId: r, name: i, orientation: a, isSelected: o, isDisabled: s, error: c, radius: l, unstyled: u, className: d, onToggle: f }) {
902
+ function vt({ option: t, optionId: n, descriptionId: r, name: i, orientation: a, isSelected: o, isDisabled: s, error: c, radius: l, unstyled: u, className: d, onToggle: f }) {
896
903
  let p = !!c;
897
- return /* @__PURE__ */ w(ht, {
904
+ return /* @__PURE__ */ w(_t, {
898
905
  item: t,
899
906
  htmlFor: n,
900
907
  descriptionId: r,
@@ -918,26 +925,26 @@ function gt({ option: t, optionId: n, descriptionId: r, name: i, orientation: a,
918
925
  className: "sr-only"
919
926
  }),
920
927
  indicator: /* @__PURE__ */ w("span", {
921
- className: e("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center border-2 transition-colors duration-150", z.sm, tt({
928
+ className: e("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center border-2 transition-colors duration-150", z.sm, rt({
922
929
  isSelected: o,
923
930
  isError: p
924
931
  }), o && (p ? "bg-red-500 dark:bg-red-400" : "bg-blue-600 dark:bg-blue-500")),
925
932
  "aria-hidden": !0,
926
- children: o && /* @__PURE__ */ w(He, {})
933
+ children: o && /* @__PURE__ */ w(We, {})
927
934
  })
928
935
  });
929
936
  }
930
937
  // src/components/checkbox_options/checkbox_options.tsx
931
- function _t(e, t, n) {
938
+ function yt(e, t, n) {
932
939
  let r = t.includes(n) ? t.filter((e) => e !== n) : [...t, n];
933
940
  return e.map((e) => e.value).filter((e) => r.includes(e));
934
941
  }
935
- function vt({ options: t, orientation: n = "vertical", values: r, defaultValues: i, onChange: a, name: o, label: s, error: c, required: l, requiredLabel: u, disabled: d, radius: f = "lg", unstyled: p = !1, className: m, wrapperClassName: h, id: g, "aria-describedby": _, ...v }) {
936
- let y = Q(), { fieldId: b, errorId: x } = it(g), S = o ?? b, [E, D] = rt(r, i ?? []), O = t.map((e) => typeof e == "string" ? {
942
+ function bt({ options: t, orientation: n = "vertical", values: r, defaultValues: i, onChange: a, name: o, label: s, error: c, required: l, requiredLabel: u, disabled: d, radius: f = "lg", unstyled: p = !1, className: m, wrapperClassName: h, id: g, "aria-describedby": _, ...v }) {
943
+ let y = Q(), { fieldId: b, errorId: x } = ot(g), S = o ?? b, [E, D] = at(r, i ?? []), O = t.map((e) => typeof e == "string" ? {
937
944
  value: e,
938
945
  label: e
939
946
  } : e), k = (e) => {
940
- let t = _t(O, E, e);
947
+ let t = yt(O, E, e);
941
948
  D(t), a?.(t);
942
949
  };
943
950
  return /* @__PURE__ */ T("fieldset", {
@@ -948,14 +955,14 @@ function vt({ options: t, orientation: n = "vertical", values: r, defaultValues:
948
955
  children: [
949
956
  s && /* @__PURE__ */ T("legend", {
950
957
  className: e("text-sm font-medium text-gray-700 dark:text-gray-300", "mb-2"),
951
- children: [s, l && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(nt, {}), /* @__PURE__ */ w("span", {
958
+ children: [s, l && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(it, {}), /* @__PURE__ */ w("span", {
952
959
  className: "sr-only",
953
960
  children: ` (${u ?? y.required})`
954
961
  })] })]
955
962
  }),
956
963
  /* @__PURE__ */ w("div", {
957
964
  className: e(n === "horizontal" ? "flex flex-row gap-2" : "flex flex-col gap-2"),
958
- children: O.map((e, t) => /* @__PURE__ */ w(gt, {
965
+ children: O.map((e, t) => /* @__PURE__ */ w(vt, {
959
966
  option: e,
960
967
  optionId: `${b}-${t}`,
961
968
  descriptionId: `${b}-${t}-desc`,
@@ -970,7 +977,7 @@ function vt({ options: t, orientation: n = "vertical", values: r, defaultValues:
970
977
  onToggle: k
971
978
  }, e.value))
972
979
  }),
973
- /* @__PURE__ */ w($e, {
980
+ /* @__PURE__ */ w(tt, {
974
981
  id: x,
975
982
  error: c,
976
983
  className: "mt-2"
@@ -979,7 +986,7 @@ function vt({ options: t, orientation: n = "vertical", values: r, defaultValues:
979
986
  });
980
987
  }
981
988
  // src/hooks/use_is_client/use_is_client.tsx
982
- var yt = () => {
989
+ var xt = () => {
983
990
  let [e, t] = b(!1);
984
991
  return m(() => {
985
992
  let e = requestAnimationFrame(() => {
@@ -991,11 +998,11 @@ var yt = () => {
991
998
  }, []), e;
992
999
  };
993
1000
  // src/components/client_only/client_only.tsx
994
- function bt({ children: e, fallback: t }) {
995
- return yt() ? /* @__PURE__ */ w(C, { children: e }) : t ?? null;
1001
+ function St({ children: e, fallback: t }) {
1002
+ return xt() ? /* @__PURE__ */ w(C, { children: e }) : t ?? null;
996
1003
  }
997
1004
  // src/components/shared/field.tsx
998
- var xt = ({ fieldId: t, errorId: n, descriptionId: r, label: i, description: a, error: o, required: s = !1, wrapperClassName: c, children: l }) => /* @__PURE__ */ T("div", {
1005
+ var Ct = ({ fieldId: t, errorId: n, descriptionId: r, label: i, description: a, error: o, required: s = !1, wrapperClassName: c, children: l }) => /* @__PURE__ */ T("div", {
999
1006
  className: e("w-full", c),
1000
1007
  children: [
1001
1008
  !!i && (typeof i == "string" ? /* @__PURE__ */ T("label", {
@@ -1016,12 +1023,12 @@ var xt = ({ fieldId: t, errorId: n, descriptionId: r, label: i, description: a,
1016
1023
  })]
1017
1024
  })),
1018
1025
  l,
1019
- r && /* @__PURE__ */ w(Xe, {
1026
+ r && /* @__PURE__ */ w(Qe, {
1020
1027
  id: r,
1021
1028
  description: a,
1022
1029
  className: "mt-1"
1023
1030
  }),
1024
- /* @__PURE__ */ w($e, {
1031
+ /* @__PURE__ */ w(tt, {
1025
1032
  id: n,
1026
1033
  error: o,
1027
1034
  className: "mt-1"
@@ -1029,25 +1036,25 @@ var xt = ({ fieldId: t, errorId: n, descriptionId: r, label: i, description: a,
1029
1036
  ]
1030
1037
  });
1031
1038
  // src/components/shared/has_modifier_key.ts
1032
- function St(e) {
1039
+ function wt(e) {
1033
1040
  return e.shiftKey || e.ctrlKey || e.altKey || e.metaKey;
1034
1041
  }
1035
1042
  // src/components/shared/listbox_option_id.ts
1036
- function Ct(e, t) {
1043
+ function Tt(e, t) {
1037
1044
  return `${e}-option-${t}`;
1038
1045
  }
1039
1046
  // src/components/shared/listbox_option.tsx
1040
- function wt(e) {
1047
+ function Et(e) {
1041
1048
  e.preventDefault();
1042
1049
  }
1043
- function Tt(t, n, r, i) {
1050
+ function Dt(t, n, r, i) {
1044
1051
  return e("px-3 py-2 text-gray-900 dark:text-gray-100", n ? "opacity-50 cursor-not-allowed" : "cursor-pointer", t ? e("bg-blue-50 dark:bg-blue-900/40", P) : !n && "hover:bg-gray-50 dark:hover:bg-gray-800/60", i && "truncate", r);
1045
1052
  }
1046
- function Et(e, t) {
1053
+ function Ot(e, t) {
1047
1054
  let n = e.querySelector(".truncate") ?? e;
1048
1055
  n.scrollWidth > n.clientWidth ? e.setAttribute("title", t) : e.removeAttribute("title");
1049
1056
  }
1050
- function Dt(e, t, n) {
1057
+ function kt(e, t, n) {
1051
1058
  if (e !== void 0) return {
1052
1059
  position: "absolute",
1053
1060
  top: e,
@@ -1059,29 +1066,29 @@ function Dt(e, t, n) {
1059
1066
  marginBottom: n
1060
1067
  };
1061
1068
  }
1062
- var Ot = /* @__PURE__ */ d(function({ listboxId: e, option: t, index: n, setSize: r, isActive: i, isSelected: a, isDisabled: o, className: s, isTruncated: c, canShowTitle: l, absoluteTop: u, marginTop: d, marginBottom: f, renderContent: p, onOptionClick: m }) {
1069
+ var At = /* @__PURE__ */ d(function({ listboxId: e, option: t, index: n, setSize: r, isActive: i, isSelected: a, isDisabled: o, className: s, isTruncated: c, canShowTitle: l, absoluteTop: u, marginTop: d, marginBottom: f, renderContent: p, onOptionClick: m }) {
1063
1070
  return /* @__PURE__ */ w("li", {
1064
- id: Ct(e, n),
1071
+ id: Tt(e, n),
1065
1072
  role: "option",
1066
1073
  "aria-selected": a,
1067
1074
  "aria-disabled": o,
1068
1075
  "aria-setsize": r,
1069
1076
  "aria-posinset": n + 1,
1070
- onMouseDown: wt,
1071
- onMouseEnter: l ? (e) => Et(e.currentTarget, t.label) : void 0,
1077
+ onMouseDown: Et,
1078
+ onMouseEnter: l ? (e) => Ot(e.currentTarget, t.label) : void 0,
1072
1079
  onClick: () => m(t),
1073
- className: Tt(i, o, s, c),
1074
- style: Dt(u, d, f),
1080
+ className: Dt(i, o, s, c),
1081
+ style: kt(u, d, f),
1075
1082
  children: p(t, a, c)
1076
1083
  });
1077
1084
  });
1078
- function kt(e) {
1085
+ function jt(e) {
1079
1086
  return e > 100;
1080
1087
  }
1081
- function At(e, t, n) {
1088
+ function Mt(e, t, n) {
1082
1089
  return Math.min(Math.max(e, t), n);
1083
1090
  }
1084
- function jt({ scrollTop: e, viewportHeight: t, rowHeight: n, optionCount: r, overscan: i }) {
1091
+ function Nt({ scrollTop: e, viewportHeight: t, rowHeight: n, optionCount: r, overscan: i }) {
1085
1092
  if (r <= 0) return {
1086
1093
  startIndex: 0,
1087
1094
  endIndex: 0
@@ -1090,36 +1097,36 @@ function jt({ scrollTop: e, viewportHeight: t, rowHeight: n, optionCount: r, ove
1090
1097
  startIndex: 0,
1091
1098
  endIndex: Math.min(r, 20)
1092
1099
  };
1093
- let a = Math.floor(e / n), o = Math.ceil((e + t) / n), s = At(a - i, 0, r - 1);
1100
+ let a = Math.floor(e / n), o = Math.ceil((e + t) / n), s = Mt(a - i, 0, r - 1);
1094
1101
  return {
1095
1102
  startIndex: s,
1096
- endIndex: At(o + i, s + 1, r)
1103
+ endIndex: Mt(o + i, s + 1, r)
1097
1104
  };
1098
1105
  }
1099
- function Mt({ scrollTop: e, viewportHeight: t, rowHeight: n, index: r, edgePadding: i, targetRowHeight: a }) {
1106
+ function Pt({ scrollTop: e, viewportHeight: t, rowHeight: n, index: r, edgePadding: i, targetRowHeight: a }) {
1100
1107
  let o = i + r * n, s = o + a;
1101
1108
  return o < e ? Math.max(0, o - i) : s > e + t ? s - t : e;
1102
1109
  }
1103
- function Nt({ startIndex: e, endIndex: t, activeIndex: n }) {
1110
+ function Ft({ startIndex: e, endIndex: t, activeIndex: n }) {
1104
1111
  let r = Array.from({ length: Math.max(0, t - e) }, (t, n) => e + n);
1105
1112
  return n < 0 ? r : n < e ? [n, ...r] : n >= t ? [...r, n] : r;
1106
1113
  }
1107
1114
  // src/components/shared/listbox_page_size.ts
1108
- var Pt = 10;
1109
- function Ft(e, t) {
1115
+ var It = 10;
1116
+ function Lt(e, t) {
1110
1117
  return Math.max(1, Math.floor(e / t));
1111
1118
  }
1112
- var It = "[role=\"option\"]";
1113
- function Lt(e, t = -1) {
1119
+ var Rt = "[role=\"option\"]";
1120
+ function zt(e, t = -1) {
1114
1121
  return e.querySelector(`[role="option"]:not([aria-posinset="${t + 1}"])`)?.getBoundingClientRect().height ?? 0;
1115
1122
  }
1116
- function Rt(e, t = -1) {
1117
- if (!e) return Pt;
1118
- let n = e.clientHeight, r = Lt(e, t);
1119
- return n <= 0 || r <= 0 ? Pt : Ft(n, r);
1123
+ function Bt(e, t = -1) {
1124
+ if (!e) return It;
1125
+ let n = e.clientHeight, r = zt(e, t);
1126
+ return n <= 0 || r <= 0 ? It : Lt(n, r);
1120
1127
  }
1121
1128
  // src/components/shared/use_stable_callback.ts
1122
- function zt(e) {
1129
+ function Vt(e) {
1123
1130
  let t = y(e);
1124
1131
  return _(() => {
1125
1132
  t.current = e;
@@ -1128,32 +1135,32 @@ function zt(e) {
1128
1135
  }, []);
1129
1136
  }
1130
1137
  // src/components/shared/use_listbox_metrics.ts
1131
- var Bt = {
1138
+ var Ht = {
1132
1139
  rowHeight: 0,
1133
1140
  viewportHeight: 0,
1134
1141
  edgePadding: 0
1135
1142
  };
1136
- function Vt(e, t) {
1143
+ function Ut(e, t) {
1137
1144
  return {
1138
- rowHeight: Lt(e, t),
1145
+ rowHeight: zt(e, t),
1139
1146
  viewportHeight: e.clientHeight,
1140
1147
  edgePadding: Number.parseFloat(getComputedStyle(e).paddingTop) || 0
1141
1148
  };
1142
1149
  }
1143
- function Ht(e, t) {
1150
+ function Wt(e, t) {
1144
1151
  return e.rowHeight === t.rowHeight && e.viewportHeight === t.viewportHeight && e.edgePadding === t.edgePadding;
1145
1152
  }
1146
- function Ut({ listboxRef: e, optionCount: t, activeIndex: n, isEnabled: r }) {
1147
- let [i, a] = b(Bt), o = y(null), s = y(null), c = zt(() => {
1153
+ function Gt({ listboxRef: e, optionCount: t, activeIndex: n, isEnabled: r }) {
1154
+ let [i, a] = b(Ht), o = y(null), s = y(null), c = Vt(() => {
1148
1155
  let t = e.current;
1149
1156
  if (!t) return;
1150
- let r = Vt(t, n);
1157
+ let r = Ut(t, n);
1151
1158
  a((e) => {
1152
1159
  let t = {
1153
1160
  ...r,
1154
1161
  rowHeight: r.rowHeight || e.rowHeight
1155
1162
  };
1156
- return Ht(e, t) ? e : t;
1163
+ return Wt(e, t) ? e : t;
1157
1164
  });
1158
1165
  });
1159
1166
  return _(() => {
@@ -1173,7 +1180,7 @@ function Ut({ listboxRef: e, optionCount: t, activeIndex: n, isEnabled: r }) {
1173
1180
  let n = s.current;
1174
1181
  if (n?.isConnected) return;
1175
1182
  n && o.current?.unobserve(n);
1176
- let i = t.querySelector(It);
1183
+ let i = t.querySelector(Rt);
1177
1184
  i && o.current?.observe(i), s.current = i, o.current || c();
1178
1185
  }), _(() => {
1179
1186
  r && c();
@@ -1184,16 +1191,16 @@ function Ut({ listboxRef: e, optionCount: t, activeIndex: n, isEnabled: r }) {
1184
1191
  ]), i;
1185
1192
  }
1186
1193
  // src/components/shared/use_listbox_window.ts
1187
- function Wt(e, t) {
1194
+ function Kt(e, t) {
1188
1195
  return e.startIndex === t.startIndex && e.endIndex === t.endIndex;
1189
1196
  }
1190
- function Gt({ listboxRef: e, optionCount: t, activeIndex: n, isWindowed: r }) {
1191
- let i = Ut({
1197
+ function qt({ listboxRef: e, optionCount: t, activeIndex: n, isWindowed: r }) {
1198
+ let i = Gt({
1192
1199
  listboxRef: e,
1193
1200
  optionCount: t,
1194
1201
  activeIndex: n,
1195
1202
  isEnabled: r
1196
- }), [a, o] = b(() => jt({
1203
+ }), [a, o] = b(() => Nt({
1197
1204
  scrollTop: 0,
1198
1205
  viewportHeight: 0,
1199
1206
  rowHeight: 0,
@@ -1202,14 +1209,14 @@ function Gt({ listboxRef: e, optionCount: t, activeIndex: n, isWindowed: r }) {
1202
1209
  })), s = f(() => {
1203
1210
  let n = e.current;
1204
1211
  if (!r || !n) return;
1205
- let a = jt({
1212
+ let a = Nt({
1206
1213
  scrollTop: n.scrollTop,
1207
1214
  viewportHeight: i.viewportHeight,
1208
1215
  rowHeight: i.rowHeight,
1209
1216
  optionCount: t,
1210
1217
  overscan: 10
1211
1218
  });
1212
- o((e) => Wt(e, a) ? e : a);
1219
+ o((e) => Kt(e, a) ? e : a);
1213
1220
  }, [
1214
1221
  e,
1215
1222
  r,
@@ -1226,16 +1233,16 @@ function Gt({ listboxRef: e, optionCount: t, activeIndex: n, isWindowed: r }) {
1226
1233
  };
1227
1234
  }
1228
1235
  // src/components/shared/use_scroll_to_active_option.ts
1229
- function Kt({ listboxRef: e, listboxId: t, activeIndex: n, initialVisibleIndex: r, isWindowed: i, metrics: a, refreshWindow: o }) {
1230
- let s = y(r), c = a.rowHeight > 0, l = zt((n) => {
1236
+ function Jt({ listboxRef: e, listboxId: t, activeIndex: n, initialVisibleIndex: r, isWindowed: i, metrics: a, refreshWindow: o }) {
1237
+ let s = y(r), c = a.rowHeight > 0, l = Vt((n) => {
1231
1238
  if (!i) {
1232
- document.getElementById(Ct(t, n))?.scrollIntoView?.({ block: "nearest" });
1239
+ document.getElementById(Tt(t, n))?.scrollIntoView?.({ block: "nearest" });
1233
1240
  return;
1234
1241
  }
1235
1242
  let r = e.current;
1236
1243
  if (!r) return;
1237
- let s = document.getElementById(Ct(t, n))?.getBoundingClientRect().height ?? 0, c = s > 0 ? s : a.rowHeight;
1238
- r.scrollTop = Mt({
1244
+ let s = document.getElementById(Tt(t, n))?.getBoundingClientRect().height ?? 0, c = s > 0 ? s : a.rowHeight;
1245
+ r.scrollTop = Pt({
1239
1246
  scrollTop: r.scrollTop,
1240
1247
  viewportHeight: r.clientHeight,
1241
1248
  rowHeight: a.rowHeight,
@@ -1260,28 +1267,28 @@ function Kt({ listboxRef: e, listboxId: t, activeIndex: n, initialVisibleIndex:
1260
1267
  ]);
1261
1268
  }
1262
1269
  // src/components/shared/listbox_options.tsx
1263
- var qt = 50, Jt = "max-h-60 overflow-auto py-1", Yt = "w-0 min-w-full";
1264
- function Xt(e, t) {
1270
+ var Yt = 50, Xt = "max-h-60 overflow-auto py-1", Zt = "w-0 min-w-full";
1271
+ function Qt(e, t) {
1265
1272
  return `${e * t}px`;
1266
1273
  }
1267
- function Zt(e, t) {
1274
+ function $t(e, t) {
1268
1275
  return `${t.edgePadding + e * t.rowHeight}px`;
1269
1276
  }
1270
- function Qt() {
1277
+ function en() {
1271
1278
  let [e, t] = b(!1);
1272
1279
  return m(() => {
1273
- let e = setTimeout(() => t(!0), qt);
1280
+ let e = setTimeout(() => t(!0), Yt);
1274
1281
  return () => clearTimeout(e);
1275
1282
  }, []), e;
1276
1283
  }
1277
- function $t({ ref: t, id: n, options: r, activeIndex: i, noResultsText: a, isWindowed: o = !1, labelOverflow: s = "wrap", initialVisibleIndex: c, "aria-label": l, "aria-labelledby": u, "aria-multiselectable": d, getOptionState: f, renderOptionContent: p, onOptionClick: m }) {
1278
- let h = r.length === 0, g = Qt(), _ = y(null), b = v(() => K(t, _), [t]), { startIndex: x, endIndex: S, metrics: E, refreshWindow: D } = Gt({
1284
+ function tn({ ref: t, id: n, options: r, activeIndex: i, noResultsText: a, isWindowed: o = !1, labelOverflow: s = "wrap", initialVisibleIndex: c, "aria-label": l, "aria-labelledby": u, "aria-multiselectable": d, getOptionState: f, renderOptionContent: p, onOptionClick: m }) {
1285
+ let h = r.length === 0, g = en(), _ = y(null), b = v(() => K(t, _), [t]), { startIndex: x, endIndex: S, metrics: E, refreshWindow: D } = qt({
1279
1286
  listboxRef: _,
1280
1287
  optionCount: r.length,
1281
1288
  activeIndex: i,
1282
1289
  isWindowed: o
1283
1290
  });
1284
- Kt({
1291
+ Jt({
1285
1292
  listboxRef: _,
1286
1293
  listboxId: n,
1287
1294
  activeIndex: i,
@@ -1290,9 +1297,9 @@ function $t({ ref: t, id: n, options: r, activeIndex: i, noResultsText: a, isWin
1290
1297
  metrics: E,
1291
1298
  refreshWindow: D
1292
1299
  });
1293
- let O = (e) => o && e === x && x > 0 ? Xt(x, E.rowHeight) : void 0, k = (e) => o && e === S - 1 && S < r.length ? Xt(r.length - S, E.rowHeight) : void 0, A = (e) => s === "truncate" || s === "wrap-active" && !e, j = (e, t) => {
1300
+ let O = (e) => o && e === x && x > 0 ? Qt(x, E.rowHeight) : void 0, k = (e) => o && e === S - 1 && S < r.length ? Qt(r.length - S, E.rowHeight) : void 0, A = (e) => s === "truncate" || s === "wrap-active" && !e, j = (e, t) => {
1294
1301
  let { isSelected: a, isDisabled: s, className: c } = f(e), l = t === i, u = t < x || t >= S;
1295
- return /* @__PURE__ */ w(Ot, {
1302
+ return /* @__PURE__ */ w(At, {
1296
1303
  listboxId: n,
1297
1304
  option: e,
1298
1305
  index: t,
@@ -1303,7 +1310,7 @@ function $t({ ref: t, id: n, options: r, activeIndex: i, noResultsText: a, isWin
1303
1310
  className: c,
1304
1311
  isTruncated: A(l),
1305
1312
  canShowTitle: A(l),
1306
- absoluteTop: o && u ? Zt(t, E) : void 0,
1313
+ absoluteTop: o && u ? $t(t, E) : void 0,
1307
1314
  marginTop: O(t),
1308
1315
  marginBottom: k(t),
1309
1316
  renderContent: p,
@@ -1317,9 +1324,9 @@ function $t({ ref: t, id: n, options: r, activeIndex: i, noResultsText: a, isWin
1317
1324
  "aria-labelledby": u,
1318
1325
  "aria-label": l,
1319
1326
  "aria-multiselectable": d,
1320
- className: e(Jt, s !== "wrap" && Yt, o && "relative", xe),
1327
+ className: e(Xt, s !== "wrap" && Zt, o && "relative", xe),
1321
1328
  onScroll: o ? D : void 0,
1322
- children: o ? Nt({
1329
+ children: o ? Ft({
1323
1330
  startIndex: x,
1324
1331
  endIndex: S,
1325
1332
  activeIndex: i
@@ -1331,23 +1338,23 @@ function $t({ ref: t, id: n, options: r, activeIndex: i, noResultsText: a, isWin
1331
1338
  })] });
1332
1339
  }
1333
1340
  // src/components/shared/resolve_node_labelled_by.ts
1334
- function en(e, t, n) {
1341
+ function nn(e, t, n) {
1335
1342
  if (e && typeof e != "string" && !n) return t;
1336
1343
  }
1337
1344
  // src/components/shared/use_active_option.ts
1338
- var tn = -1;
1339
- function nn(e, t) {
1340
- return e >= 0 && e < t ? e : tn;
1345
+ var rn = -1;
1346
+ function an(e, t) {
1347
+ return e >= 0 && e < t ? e : rn;
1341
1348
  }
1342
- function rn({ optionCount: e, getOptionId: t, isOpen: n }) {
1343
- let [r, i] = b(tn), a = nn(r, e), o = f((t) => {
1349
+ function on({ optionCount: e, getOptionId: t, isOpen: n }) {
1350
+ let [r, i] = b(rn), a = an(r, e), o = f((t) => {
1344
1351
  e !== 0 && i((n) => {
1345
- let r = nn(n, e) + t;
1352
+ let r = an(n, e) + t;
1346
1353
  return r < 0 ? e - 1 : r >= e ? 0 : r;
1347
1354
  });
1348
1355
  }, [e]), s = f((t) => {
1349
1356
  e !== 0 && i((n) => {
1350
- let r = nn(n, e) + t;
1357
+ let r = an(n, e) + t;
1351
1358
  return Math.min(Math.max(r, 0), e - 1);
1352
1359
  });
1353
1360
  }, [e]), c = f(() => {
@@ -1355,7 +1362,7 @@ function rn({ optionCount: e, getOptionId: t, isOpen: n }) {
1355
1362
  }, []), l = f(() => {
1356
1363
  i(e - 1);
1357
1364
  }, [e]), u = f(() => {
1358
- i(tn);
1365
+ i(rn);
1359
1366
  }, []);
1360
1367
  return {
1361
1368
  activeIndex: a,
@@ -1368,18 +1375,18 @@ function rn({ optionCount: e, getOptionId: t, isOpen: n }) {
1368
1375
  };
1369
1376
  }
1370
1377
  // src/components/shared/use_dropdown_viewport_fit.ts
1371
- var an = 8, on = {
1378
+ var sn = 8, cn = {
1372
1379
  left: "",
1373
1380
  maxWidth: "",
1374
1381
  minWidth: ""
1375
1382
  };
1376
- function sn(e) {
1383
+ function ln(e) {
1377
1384
  return e.left === "" && e.maxWidth === "" && e.minWidth === "";
1378
1385
  }
1379
- function cn(e, t) {
1386
+ function un(e, t) {
1380
1387
  e.style.left = t.left, e.style.maxWidth = t.maxWidth, e.style.minWidth = t.minWidth;
1381
1388
  }
1382
- function ln(e) {
1389
+ function dn(e) {
1383
1390
  let { left: t, width: n } = e.getBoundingClientRect();
1384
1391
  return {
1385
1392
  left: t,
@@ -1388,37 +1395,37 @@ function ln(e) {
1388
1395
  viewportWidth: document.documentElement.clientWidth
1389
1396
  };
1390
1397
  }
1391
- function un(e) {
1392
- let t = e.viewportWidth - 16, n = e.width > t, r = Math.min(e.width, t), i = e.left + r - (e.viewportWidth - an);
1398
+ function fn(e) {
1399
+ let t = e.viewportWidth - 16, n = e.width > t, r = Math.min(e.width, t), i = e.left + r - (e.viewportWidth - sn);
1393
1400
  return {
1394
1401
  left: i > 0 ? `${e.offsetLeft - i}px` : "",
1395
1402
  maxWidth: n ? `${t}px` : "",
1396
1403
  minWidth: n ? `${t}px` : ""
1397
1404
  };
1398
1405
  }
1399
- function dn(e) {
1406
+ function pn(e) {
1400
1407
  let t = y(null);
1401
1408
  return _(() => {
1402
1409
  let n = t.current;
1403
1410
  if (!e || !n) return;
1404
- let r = on, i = () => {
1405
- sn(r) || cn(n, on);
1406
- let e = un(ln(n));
1407
- sn(r) && sn(e) || cn(n, e), r = e;
1411
+ let r = cn, i = () => {
1412
+ ln(r) || un(n, cn);
1413
+ let e = fn(dn(n));
1414
+ ln(r) && ln(e) || un(n, e), r = e;
1408
1415
  };
1409
1416
  i(), window.addEventListener("resize", i);
1410
1417
  let a = typeof ResizeObserver > "u" ? null : new ResizeObserver(i);
1411
1418
  return a?.observe(n), n.parentElement && a?.observe(n.parentElement), () => {
1412
- window.removeEventListener("resize", i), a?.disconnect(), cn(n, on);
1419
+ window.removeEventListener("resize", i), a?.disconnect(), un(n, cn);
1413
1420
  };
1414
1421
  }, [e]), t;
1415
1422
  }
1416
1423
  // src/components/combobox/combobox.tsx
1417
- function fn(e) {
1424
+ function mn(e) {
1418
1425
  return e.label;
1419
1426
  }
1420
- function pn({ options: t, filterOption: n, label: r, description: i, "aria-label": a, error: o, placeholder: s, noResultsText: c, clearLabel: l, radius: u = "md", unstyled: d = !1, disabled: f = !1, required: p = !1, className: m, wrapperClassName: h, dropdownClassName: g, optionLabelOverflow: _ = "wrap", value: x, defaultValue: S = "", onChange: C, id: E }) {
1421
- let D = Q(), { fieldId: O, errorId: k, descriptionId: A, labelId: j } = it(E), M = `${O}-listbox`, N = y(null), P = y(null), [I, L] = rt(x, S), R = t.find((e) => e.value === I), [B, V] = b(""), [H, U] = b(!1), [G, ee] = b(!1), te = dn(G), ne = v(() => n ? [] : t.map((e) => e.label.toLowerCase()), [t, n]), K = v(() => {
1427
+ function hn({ options: t, filterOption: n, label: r, description: i, "aria-label": a, error: o, placeholder: s, noResultsText: c, clearLabel: l, radius: u = "md", unstyled: d = !1, disabled: f = !1, required: p = !1, className: m, wrapperClassName: h, dropdownClassName: g, optionLabelOverflow: _ = "wrap", value: x, defaultValue: S = "", onChange: C, id: E }) {
1428
+ let D = Q(), { fieldId: O, errorId: k, descriptionId: A, labelId: j } = ot(E), M = `${O}-listbox`, N = y(null), P = y(null), [I, L] = at(x, S), R = t.find((e) => e.value === I), [B, V] = b(""), [H, U] = b(!1), [G, ee] = b(!1), te = pn(G), ne = v(() => n ? [] : t.map((e) => e.label.toLowerCase()), [t, n]), K = v(() => {
1422
1429
  if (!H) return t;
1423
1430
  if (n) return t.filter((e) => n(e, B));
1424
1431
  let e = B.toLowerCase();
@@ -1429,11 +1436,11 @@ function pn({ options: t, filterOption: n, label: r, description: i, "aria-label
1429
1436
  ne,
1430
1437
  H,
1431
1438
  B
1432
- ]), { activeIndex: re, activeOptionId: ie, move: ae, moveWithinBounds: q, first: oe, last: J, reset: Y } = rn({
1439
+ ]), { activeIndex: re, activeOptionId: ie, move: ae, moveWithinBounds: q, first: oe, last: J, reset: Y } = on({
1433
1440
  optionCount: K.length,
1434
- getOptionId: (e) => Ct(M, e),
1441
+ getOptionId: (e) => Tt(M, e),
1435
1442
  isOpen: G
1436
- }), se = _ !== "wrap" && kt(t.length), ce = K.findIndex((e) => e.value === I), X = G ? B : R?.label ?? "", Z = () => {
1443
+ }), se = _ !== "wrap" && jt(t.length), ce = K.findIndex((e) => e.value === I), X = G ? B : R?.label ?? "", Z = () => {
1437
1444
  f || (V(R?.label ?? ""), U(!1), ee(!0), Y());
1438
1445
  }, le = () => {
1439
1446
  ee(!1), U(!1), Y();
@@ -1456,15 +1463,15 @@ function pn({ options: t, filterOption: n, label: r, description: i, "aria-label
1456
1463
  }, _e = (e) => {
1457
1464
  G && (e.preventDefault(), le());
1458
1465
  }, ve = (e, t) => {
1459
- G && !St(e) && (e.preventDefault(), q(t * Rt(P.current, re)));
1466
+ G && !wt(e) && (e.preventDefault(), q(t * Bt(P.current, re)));
1460
1467
  }, ye = (e) => {
1461
1468
  let t = e.value === I;
1462
1469
  return {
1463
1470
  isSelected: t,
1464
1471
  className: t ? "font-medium" : void 0
1465
1472
  };
1466
- }, be = zt(ue);
1467
- return /* @__PURE__ */ w(xt, {
1473
+ }, be = Vt(ue);
1474
+ return /* @__PURE__ */ w(Ct, {
1468
1475
  fieldId: O,
1469
1476
  errorId: k,
1470
1477
  descriptionId: A,
@@ -1504,13 +1511,13 @@ function pn({ options: t, filterOption: n, label: r, description: i, "aria-label
1504
1511
  "aria-controls": M,
1505
1512
  "aria-autocomplete": "list",
1506
1513
  "aria-label": a,
1507
- "aria-labelledby": en(r, j, a),
1514
+ "aria-labelledby": nn(r, j, a),
1508
1515
  "aria-activedescendant": ie,
1509
1516
  "aria-invalid": !!o,
1510
1517
  "aria-required": p || void 0,
1511
1518
  "aria-describedby": W(!!i && A, o && k),
1512
1519
  className: e("w-full disabled:opacity-50 disabled:cursor-not-allowed", !d && [
1513
- We,
1520
+ Ke,
1514
1521
  z[u],
1515
1522
  "pl-9 pr-8 py-2 text-sm"
1516
1523
  ], !d && o && e("border-red-500 dark:border-red-400", "focus:ring-red-500"), m)
@@ -1536,7 +1543,7 @@ function pn({ options: t, filterOption: n, label: r, description: i, "aria-label
1536
1543
  "border-gray-100 dark:border-gray-800",
1537
1544
  z[u]
1538
1545
  ], g),
1539
- children: /* @__PURE__ */ w($t, {
1546
+ children: /* @__PURE__ */ w(tn, {
1540
1547
  ref: P,
1541
1548
  id: M,
1542
1549
  options: K,
@@ -1548,7 +1555,7 @@ function pn({ options: t, filterOption: n, label: r, description: i, "aria-label
1548
1555
  "aria-labelledby": r && !a ? j : void 0,
1549
1556
  "aria-label": a,
1550
1557
  getOptionState: ye,
1551
- renderOptionContent: fn,
1558
+ renderOptionContent: mn,
1552
1559
  onOptionClick: be
1553
1560
  })
1554
1561
  })
@@ -1557,53 +1564,53 @@ function pn({ options: t, filterOption: n, label: r, description: i, "aria-label
1557
1564
  });
1558
1565
  }
1559
1566
  // src/components/menu/find_typeahead_index.ts
1560
- var mn = -1;
1561
- function hn(e, t, n) {
1567
+ var gn = -1;
1568
+ function _n(e, t, n) {
1562
1569
  let r = n.toLowerCase(), i = e.length;
1563
1570
  for (let n = 1; n <= i; n += 1) {
1564
1571
  let a = (t + n + i) % i;
1565
1572
  if (e[a]?.toLowerCase().startsWith(r)) return a;
1566
1573
  }
1567
- return mn;
1574
+ return gn;
1568
1575
  }
1569
1576
  // src/components/menu/menu_context.ts
1570
- var gn = l(null);
1571
- function _n() {
1572
- return p(gn);
1577
+ var vn = l(null);
1578
+ function yn() {
1579
+ return p(vn);
1573
1580
  }
1574
1581
  // src/components/menu/menu_surface.tsx
1575
- var vn = ":not(:disabled):not([aria-disabled=\"true\"])", yn = `[role="menuitem"]${vn}, [role="menuitemradio"]${vn}`;
1576
- function bn(e) {
1577
- return Array.from(e.querySelectorAll(yn));
1582
+ var bn = ":not(:disabled):not([aria-disabled=\"true\"])", xn = `[role="menuitem"]${bn}, [role="menuitemradio"]${bn}`;
1583
+ function Sn(e) {
1584
+ return Array.from(e.querySelectorAll(xn));
1578
1585
  }
1579
- function xn(e, t) {
1580
- let n = bn(e);
1586
+ function Cn(e, t) {
1587
+ let n = Sn(e);
1581
1588
  if (n.length === 0) return;
1582
1589
  let r = n[(t % n.length + n.length) % n.length];
1583
1590
  r && (r.focus({ preventScroll: !0 }), r.scrollIntoView?.({ block: "nearest" }));
1584
1591
  }
1585
- function Sn(e, t, n, r) {
1586
- if (e.key === "ArrowDown") xn(t, r + 1);
1587
- else if (e.key === "ArrowUp") xn(t, r - 1);
1588
- else if (e.key === "Home") xn(t, 0);
1589
- else if (e.key === "End") xn(t, n.length - 1);
1592
+ function wn(e, t, n, r) {
1593
+ if (e.key === "ArrowDown") Cn(t, r + 1);
1594
+ else if (e.key === "ArrowUp") Cn(t, r - 1);
1595
+ else if (e.key === "Home") Cn(t, 0);
1596
+ else if (e.key === "End") Cn(t, n.length - 1);
1590
1597
  else return !1;
1591
1598
  return e.preventDefault(), !0;
1592
1599
  }
1593
- function Cn(e) {
1600
+ function Tn(e) {
1594
1601
  return e.key.length === 1 && e.key !== " " && !e.ctrlKey && !e.metaKey && !e.altKey;
1595
1602
  }
1596
- function wn(e, t, n, r) {
1597
- let i = hn(t.map((e) => e.textContent?.trim() ?? ""), n, r);
1598
- i !== -1 && xn(e, i);
1603
+ function En(e, t, n, r) {
1604
+ let i = _n(t.map((e) => e.textContent?.trim() ?? ""), n, r);
1605
+ i !== -1 && Cn(e, i);
1599
1606
  }
1600
- function Tn({ setFloating: t, floatingStyles: n, isVisible: r, isPositioned: i, radius: a, unstyled: o = !1, panelClassName: s, onClose: c, children: l, id: u, labelledBy: d, "aria-label": f, initialFocus: p = "first", portalTarget: h = document.body }) {
1607
+ function Dn({ setFloating: t, floatingStyles: n, isVisible: r, isPositioned: i, radius: a, unstyled: o = !1, panelClassName: s, onClose: c, children: l, id: u, labelledBy: d, "aria-label": f, initialFocus: p = "first", portalTarget: h = document.body }) {
1601
1608
  let g = y(null);
1602
1609
  return m(() => {
1603
1610
  if (!i) return;
1604
1611
  let e = g.current;
1605
1612
  if (!e) return;
1606
- let t = bn(e), n = p === "last" ? t[t.length - 1] : t[0];
1613
+ let t = Sn(e), n = p === "last" ? t[t.length - 1] : t[0];
1607
1614
  n?.focus({ preventScroll: !0 }), n?.scrollIntoView?.({ block: "nearest" });
1608
1615
  }, [i, p]), S(/* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
1609
1616
  className: "fixed inset-0 z-40",
@@ -1624,8 +1631,8 @@ function Tn({ setFloating: t, floatingStyles: n, isVisible: r, isPositioned: i,
1624
1631
  onKeyDown: (e) => {
1625
1632
  let t = g.current;
1626
1633
  if (!t) return;
1627
- let n = bn(t), r = n.indexOf(document.activeElement);
1628
- Sn(e, t, n, r) ? e.stopPropagation() : e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), c()) : e.key === "Tab" ? c() : Cn(e) && (e.stopPropagation(), wn(t, n, r, e.key));
1634
+ let n = Sn(t), r = n.indexOf(document.activeElement);
1635
+ wn(e, t, n, r) ? e.stopPropagation() : e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), c()) : e.key === "Tab" ? c() : Tn(e) && (e.stopPropagation(), En(t, n, r, e.key));
1629
1636
  },
1630
1637
  className: e("w-max ms-floating-panel-scroll", !o && [
1631
1638
  "min-w-40 max-w-xs origin-top border py-1 shadow-lg backdrop-blur-sm",
@@ -1636,7 +1643,7 @@ function Tn({ setFloating: t, floatingStyles: n, isVisible: r, isPositioned: i,
1636
1643
  z[a]
1637
1644
  ], s),
1638
1645
  onClick: (e) => e.stopPropagation(),
1639
- children: /* @__PURE__ */ w(gn.Provider, {
1646
+ children: /* @__PURE__ */ w(vn.Provider, {
1640
1647
  value: c,
1641
1648
  children: l
1642
1649
  })
@@ -1644,23 +1651,23 @@ function Tn({ setFloating: t, floatingStyles: n, isVisible: r, isPositioned: i,
1644
1651
  })] }), h);
1645
1652
  }
1646
1653
  // src/components/shared/dialog_portal_target.ts
1647
- var En = "dialog, [role=dialog], [role=alertdialog]";
1648
- function Dn(e) {
1649
- return e?.closest(En) ?? (e?.ownerDocument ?? document).body;
1654
+ var On = "dialog, [role=dialog], [role=alertdialog]";
1655
+ function kn(e) {
1656
+ return e?.closest(On) ?? (e?.ownerDocument ?? document).body;
1650
1657
  }
1651
1658
  // src/components/shared/limit_to_available_height.ts
1652
- var On = "--ms-floating-max-height";
1653
- function kn() {
1659
+ var An = "--ms-floating-max-height";
1660
+ function jn() {
1654
1661
  return o({
1655
1662
  padding: 8,
1656
1663
  apply({ availableHeight: e, elements: t }) {
1657
- t.floating.style.setProperty(On, `${Math.max(0, e)}px`);
1664
+ t.floating.style.setProperty(An, `${Math.max(0, e)}px`);
1658
1665
  }
1659
1666
  });
1660
1667
  }
1661
1668
  // src/components/context_menu/context_menu.tsx
1662
- var An = 2;
1663
- function jn(e, t) {
1669
+ var Mn = 2;
1670
+ function Nn(e, t) {
1664
1671
  return { getBoundingClientRect: () => ({
1665
1672
  width: 0,
1666
1673
  height: 0,
@@ -1672,7 +1679,7 @@ function jn(e, t) {
1672
1679
  bottom: t
1673
1680
  }) };
1674
1681
  }
1675
- function Mn(e) {
1682
+ function Pn(e) {
1676
1683
  if (e.clientX !== 0 || e.clientY !== 0) return {
1677
1684
  x: e.clientX,
1678
1685
  y: e.clientY
@@ -1686,17 +1693,17 @@ function Mn(e) {
1686
1693
  y: 0
1687
1694
  };
1688
1695
  }
1689
- function Nn({ children: e, items: t, radius: o = "md", unstyled: c = !1, panelClassName: l, className: u, ref: d, "aria-label": p }) {
1696
+ function Fn({ children: e, items: t, radius: o = "md", unstyled: c = !1, panelClassName: l, className: u, ref: d, "aria-label": p }) {
1690
1697
  let m = y(null), [h, g] = b(null), { isMounted: _, isVisible: v, setIsVisible: x, open: S, close: C } = te(), { refs: E, floatingStyles: D, isPositioned: O } = s({
1691
1698
  placement: "bottom-start",
1692
1699
  strategy: "fixed",
1693
1700
  open: _,
1694
1701
  whileElementsMounted: n,
1695
1702
  middleware: [
1696
- i(An),
1703
+ i(Mn),
1697
1704
  r(),
1698
1705
  a({ padding: 8 }),
1699
- kn()
1706
+ jn()
1700
1707
  ]
1701
1708
  });
1702
1709
  ne(_, O, x);
@@ -1708,10 +1715,10 @@ function Nn({ children: e, items: t, radius: o = "md", unstyled: c = !1, panelCl
1708
1715
  className: u,
1709
1716
  onContextMenu: (e) => {
1710
1717
  e.preventDefault(), _ || (m.current = document.activeElement);
1711
- let { x: t, y: n } = Mn(e);
1712
- E.setReference(jn(t, n)), S(!1);
1718
+ let { x: t, y: n } = Pn(e);
1719
+ E.setReference(Nn(t, n)), S(!1);
1713
1720
  },
1714
- children: [e, _ && /* @__PURE__ */ w(Tn, {
1721
+ children: [e, _ && /* @__PURE__ */ w(Dn, {
1715
1722
  "aria-label": p,
1716
1723
  setFloating: E.setFloating,
1717
1724
  floatingStyles: D,
@@ -1721,33 +1728,33 @@ function Nn({ children: e, items: t, radius: o = "md", unstyled: c = !1, panelCl
1721
1728
  unstyled: c,
1722
1729
  panelClassName: l,
1723
1730
  onClose: A,
1724
- portalTarget: Dn(h),
1731
+ portalTarget: kn(h),
1725
1732
  children: t
1726
1733
  })]
1727
1734
  });
1728
1735
  }
1729
1736
  // src/lib/surface_error.ts
1730
- function Pn(e, t) {
1737
+ function In(e, t) {
1731
1738
  t ? t(e) : queueMicrotask(() => {
1732
1739
  throw e;
1733
1740
  });
1734
1741
  }
1735
1742
  // src/components/copy_button/copy_button.tsx
1736
- var Fn = 2e3, In = 0;
1737
- function Ln({ value: e, children: t, label: n, onError: r }) {
1743
+ var Ln = 2e3, Rn = 0;
1744
+ function zn({ value: e, children: t, label: n, onError: r }) {
1738
1745
  let i = Q(), [a, o] = b(!1), [s, c] = b(""), l = y(void 0), u = y(void 0);
1739
1746
  m(() => () => {
1740
1747
  clearTimeout(l.current), clearTimeout(u.current);
1741
1748
  }, []);
1742
1749
  let d = () => {
1743
- clearTimeout(u.current), c(""), u.current = setTimeout(() => c(i.copied), In);
1750
+ clearTimeout(u.current), c(""), u.current = setTimeout(() => c(i.copied), Rn);
1744
1751
  }, f = async () => {
1745
1752
  try {
1746
1753
  await navigator.clipboard.writeText(e), o(!0), d(), clearTimeout(l.current), l.current = setTimeout(() => {
1747
1754
  o(!1), c("");
1748
- }, Fn);
1755
+ }, Ln);
1749
1756
  } catch (e) {
1750
- Pn(e, r);
1757
+ In(e, r);
1751
1758
  }
1752
1759
  }, p = t?.({
1753
1760
  copied: a,
@@ -1764,7 +1771,7 @@ function Ln({ value: e, children: t, label: n, onError: r }) {
1764
1771
  })] });
1765
1772
  }
1766
1773
  // src/lib/split_into_highlight_segments.ts
1767
- function Rn(e, t) {
1774
+ function Bn(e, t) {
1768
1775
  if (t.length === 0) return [{
1769
1776
  text: e,
1770
1777
  isMatch: !1
@@ -1786,8 +1793,8 @@ function Rn(e, t) {
1786
1793
  }), n;
1787
1794
  }
1788
1795
  // src/components/highlight/highlight.tsx
1789
- var zn = "bg-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:text-yellow-100";
1790
- function Bn(e) {
1796
+ var Vn = "bg-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:text-yellow-100";
1797
+ function Hn(e) {
1791
1798
  let t = 0;
1792
1799
  return e.map((e) => {
1793
1800
  let n = t;
@@ -1797,28 +1804,28 @@ function Bn(e) {
1797
1804
  };
1798
1805
  });
1799
1806
  }
1800
- function Vn({ text: t, ranges: n, radius: r = "sm", unstyled: i = !1, markClassName: a }) {
1801
- let o = Bn(Rn(t, n));
1807
+ function Un({ text: t, ranges: n, radius: r = "sm", unstyled: i = !1, markClassName: a }) {
1808
+ let o = Hn(Bn(t, n));
1802
1809
  return /* @__PURE__ */ w(C, { children: o.map((t) => t.isMatch ? /* @__PURE__ */ w("mark", {
1803
- className: e(!i && [z[r], zn], a),
1810
+ className: e(!i && [z[r], Vn], a),
1804
1811
  children: t.text
1805
1812
  }, t.start) : /* @__PURE__ */ w("span", { children: t.text }, t.start)) });
1806
1813
  }
1807
1814
  // src/components/drawer/drawer_styles.ts
1808
- var Hn = {
1815
+ var Wn = {
1809
1816
  sm: "ms-drawer-width-sm",
1810
1817
  md: "ms-drawer-width-md",
1811
1818
  lg: "ms-drawer-width-lg"
1812
- }, Un = {
1819
+ }, Gn = {
1813
1820
  right: "right-0",
1814
1821
  left: "left-0"
1815
- }, Wn = {
1822
+ }, Kn = {
1816
1823
  right: "pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] pr-[env(safe-area-inset-right)]",
1817
1824
  left: "pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)]"
1818
- }, Gn = {
1825
+ }, qn = {
1819
1826
  right: "ms-drawer-offscreen-right",
1820
1827
  left: "ms-drawer-offscreen-left"
1821
- }, Kn = {
1828
+ }, Jn = {
1822
1829
  right: {
1823
1830
  none: "rounded-l-none",
1824
1831
  sm: "rounded-l-sm",
@@ -1835,9 +1842,9 @@ var Hn = {
1835
1842
  xl: "rounded-r-xl",
1836
1843
  full: "rounded-r-lg"
1837
1844
  }
1838
- }, qn = l(null);
1845
+ }, Yn = l(null);
1839
1846
  // src/components/modal/modal_footer_slot.tsx
1840
- function Jn({ onSlotChange: t, children: n, unstyled: r = !1 }) {
1847
+ function Xn({ onSlotChange: t, children: n, unstyled: r = !1 }) {
1841
1848
  return /* @__PURE__ */ w("div", {
1842
1849
  ref: t,
1843
1850
  className: e("flex items-center justify-end flex-shrink-0 empty:hidden", !r && ["gap-3 px-6 py-4 border-t", "border-gray-100 dark:border-gray-800"]),
@@ -1845,9 +1852,9 @@ function Jn({ onSlotChange: t, children: n, unstyled: r = !1 }) {
1845
1852
  });
1846
1853
  }
1847
1854
  // src/components/modal/modal_footer_slot_context.ts
1848
- var Yn = l(null);
1855
+ var Zn = l(null);
1849
1856
  // src/components/modal/modal_header.tsx
1850
- function Xn({ titleId: t, title: n, onDismiss: r, dismissible: i, closeLabel: a, unstyled: o = !1 }) {
1857
+ function Qn({ titleId: t, title: n, onDismiss: r, dismissible: i, closeLabel: a, unstyled: o = !1 }) {
1851
1858
  let s = Q(), c = a ?? s.close;
1852
1859
  return /* @__PURE__ */ T("div", {
1853
1860
  className: e("flex items-center justify-between flex-shrink-0", !o && "gap-4 px-6 pt-5 pb-4"),
@@ -1877,14 +1884,14 @@ function Xn({ titleId: t, title: n, onDismiss: r, dismissible: i, closeLabel: a,
1877
1884
  });
1878
1885
  }
1879
1886
  // src/components/modal/use_guarded_dismiss.ts
1880
- function Zn(e) {
1887
+ function $n(e) {
1881
1888
  try {
1882
1889
  return e();
1883
1890
  } catch (e) {
1884
- return Pn(e), null;
1891
+ return In(e), null;
1885
1892
  }
1886
1893
  }
1887
- function Qn({ onDismiss: e, isEnded: t }) {
1894
+ function er({ onDismiss: e, isEnded: t }) {
1888
1895
  let n = y(e), r = y(t), i = y([]), a = y(!1);
1889
1896
  _(() => {
1890
1897
  n.current = e, r.current = t;
@@ -1895,7 +1902,7 @@ function Qn({ onDismiss: e, isEnded: t }) {
1895
1902
  a.current = !0, e.then((e) => {
1896
1903
  a.current = !1, e && !r.current && n.current();
1897
1904
  }, (e) => {
1898
- a.current = !1, Pn(e);
1905
+ a.current = !1, In(e);
1899
1906
  });
1900
1907
  }, []);
1901
1908
  return {
@@ -1906,36 +1913,36 @@ function Qn({ onDismiss: e, isEnded: t }) {
1906
1913
  n.current();
1907
1914
  return;
1908
1915
  }
1909
- let t = Zn(e.current);
1916
+ let t = $n(e.current);
1910
1917
  t !== null && (typeof t == "boolean" ? t && n.current() : s(t));
1911
1918
  }, [s]),
1912
1919
  registry: o
1913
1920
  };
1914
1921
  }
1915
1922
  // src/components/modal/keyboard_scroll_region_attribute.ts
1916
- var $n = "data-keyboard-scroll-region", er = "a[href], button, input, select, textarea, summary, audio[controls], video[controls], [contenteditable]:not([contenteditable=\"false\"]), [tabindex]";
1917
- function tr(e) {
1923
+ var tr = "data-keyboard-scroll-region", nr = "a[href], button, input, select, textarea, summary, audio[controls], video[controls], [contenteditable]:not([contenteditable=\"false\"]), [tabindex]";
1924
+ function rr(e) {
1918
1925
  return e.matches(":disabled");
1919
1926
  }
1920
- function nr(e) {
1927
+ function ir(e) {
1921
1928
  return e.getAttribute("tabindex") === "-1";
1922
1929
  }
1923
- function rr(e) {
1930
+ function ar(e) {
1924
1931
  return e.matches("input[type=\"hidden\"]");
1925
1932
  }
1926
- function ir(e) {
1933
+ function or(e) {
1927
1934
  return e.closest("[inert]") !== null;
1928
1935
  }
1929
- function ar(e) {
1936
+ function sr(e) {
1930
1937
  return typeof e.checkVisibility != "function" || e.checkVisibility();
1931
1938
  }
1932
- function or(e) {
1933
- return !tr(e) && !nr(e) && !rr(e) && !ir(e) && ar(e);
1939
+ function cr(e) {
1940
+ return !rr(e) && !ir(e) && !ar(e) && !or(e) && sr(e);
1934
1941
  }
1935
- function sr(e) {
1942
+ function lr(e) {
1936
1943
  return e instanceof HTMLInputElement && e.type === "radio" && e.name !== "";
1937
1944
  }
1938
- function cr(e) {
1945
+ function ur(e) {
1939
1946
  let t = /* @__PURE__ */ new Map();
1940
1947
  for (let n of e) {
1941
1948
  let e = t.get(n.form) ?? /* @__PURE__ */ new Map();
@@ -1945,19 +1952,19 @@ function cr(e) {
1945
1952
  }
1946
1953
  return Array.from(t.values()).flatMap((e) => Array.from(e.values()));
1947
1954
  }
1948
- function lr(e) {
1955
+ function dr(e) {
1949
1956
  return e.find((e) => e.checked) ?? e[0];
1950
1957
  }
1951
- function ur(e) {
1952
- let t = Array.from(e.querySelectorAll(er)).filter(or), n = t.filter(sr), r = new Set(cr(n).map(lr));
1953
- return t.filter((e) => !sr(e) || r.has(e));
1958
+ function fr(e) {
1959
+ let t = Array.from(e.querySelectorAll(nr)).filter(cr), n = t.filter(lr), r = new Set(ur(n).map(dr));
1960
+ return t.filter((e) => !lr(e) || r.has(e));
1954
1961
  }
1955
1962
  // src/components/modal/use_keyboard_scroll_region.ts
1956
- var dr = {};
1957
- function fr(e) {
1958
- return e.scrollHeight > e.clientHeight && ur(e).length === 0;
1963
+ var pr = {};
1964
+ function mr(e) {
1965
+ return e.scrollHeight > e.clientHeight && fr(e).length === 0;
1959
1966
  }
1960
- var pr = [
1967
+ var hr = [
1961
1968
  "disabled",
1962
1969
  "tabindex",
1963
1970
  "hidden",
@@ -1965,39 +1972,39 @@ var pr = [
1965
1972
  "href",
1966
1973
  "contenteditable"
1967
1974
  ];
1968
- function mr(e, t) {
1975
+ function gr(e, t) {
1969
1976
  e.disconnect(), e.observe(t);
1970
1977
  for (let n of t.children) e.observe(n);
1971
1978
  }
1972
- function hr(e, t) {
1979
+ function _r(e, t) {
1973
1980
  let n = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(t), r = new MutationObserver(() => {
1974
- t(), n && mr(n, e);
1981
+ t(), n && gr(n, e);
1975
1982
  });
1976
1983
  return r.observe(e, {
1977
1984
  childList: !0,
1978
1985
  subtree: !0,
1979
1986
  attributes: !0,
1980
- attributeFilter: pr
1981
- }), n && mr(n, e), () => {
1987
+ attributeFilter: hr
1988
+ }), n && gr(n, e), () => {
1982
1989
  r.disconnect(), n?.disconnect();
1983
1990
  };
1984
1991
  }
1985
- function gr({ labelledBy: e, label: t }) {
1992
+ function vr({ labelledBy: e, label: t }) {
1986
1993
  let [n, r] = b(null), [i, a] = b(null);
1987
1994
  return m(() => {
1988
1995
  if (!n) return;
1989
- let e = () => a(fr(n) ? n : null);
1990
- return e(), hr(n, e);
1996
+ let e = () => a(mr(n) ? n : null);
1997
+ return e(), _r(n, e);
1991
1998
  }, [n]), n === null || i !== n || !(e || t) ? {
1992
1999
  ref: r,
1993
- scrollableProps: dr,
2000
+ scrollableProps: pr,
1994
2001
  focusClassName: void 0
1995
2002
  } : {
1996
2003
  ref: r,
1997
2004
  scrollableProps: {
1998
2005
  tabIndex: 0,
1999
2006
  role: "region",
2000
- [$n]: !0,
2007
+ [tr]: !0,
2001
2008
  "aria-labelledby": e,
2002
2009
  "aria-label": e ? void 0 : t
2003
2010
  },
@@ -2005,74 +2012,74 @@ function gr({ labelledBy: e, label: t }) {
2005
2012
  };
2006
2013
  }
2007
2014
  // src/components/modal/body_scroll_lock.ts
2008
- var _r = "--scrollbar-compensation", vr = 0, yr;
2009
- function br() {
2015
+ var yr = "--scrollbar-compensation", br = 0, xr;
2016
+ function Sr() {
2010
2017
  let { style: e } = document.documentElement;
2011
2018
  return {
2012
2019
  overflow: e.overflow,
2013
2020
  overflowX: e.overflowX,
2014
2021
  overflowY: e.overflowY,
2015
2022
  paddingRight: e.paddingRight,
2016
- scrollbarCompensation: e.getPropertyValue(_r)
2023
+ scrollbarCompensation: e.getPropertyValue(yr)
2017
2024
  };
2018
2025
  }
2019
- function xr(e) {
2026
+ function Cr(e) {
2020
2027
  let { style: t } = document.documentElement;
2021
- t.overflow = e.overflow, t.overflowX = e.overflowX, t.overflowY = e.overflowY, t.paddingRight = e.paddingRight, e.scrollbarCompensation === "" ? t.removeProperty(_r) : t.setProperty(_r, e.scrollbarCompensation);
2028
+ t.overflow = e.overflow, t.overflowX = e.overflowX, t.overflowY = e.overflowY, t.paddingRight = e.paddingRight, e.scrollbarCompensation === "" ? t.removeProperty(yr) : t.setProperty(yr, e.scrollbarCompensation);
2022
2029
  }
2023
- function Sr(e, t) {
2030
+ function wr(e, t) {
2024
2031
  let { style: n } = document.documentElement;
2025
- n.paddingRight = `${t + e}px`, n.setProperty(_r, `${e}px`);
2032
+ n.paddingRight = `${t + e}px`, n.setProperty(yr, `${e}px`);
2026
2033
  }
2027
- function Cr() {
2028
- if (vr === 0) {
2034
+ function Tr() {
2035
+ if (br === 0) {
2029
2036
  let e = document.documentElement;
2030
- yr = br();
2037
+ xr = Sr();
2031
2038
  let t = Number.parseFloat(getComputedStyle(e).paddingRight) || 0, n = e.clientWidth;
2032
2039
  e.style.overflow = "hidden";
2033
2040
  let r = e.clientWidth - n;
2034
- r > 0 && Sr(r, t);
2041
+ r > 0 && wr(r, t);
2035
2042
  }
2036
- vr += 1;
2043
+ br += 1;
2037
2044
  }
2038
- function wr() {
2039
- --vr, vr === 0 && yr && (xr(yr), yr = void 0);
2045
+ function Er() {
2046
+ --br, br === 0 && xr && (Cr(xr), xr = void 0);
2040
2047
  }
2041
- function Tr() {
2042
- m(() => (Cr(), wr), []);
2048
+ function Dr() {
2049
+ m(() => (Tr(), Er), []);
2043
2050
  }
2044
2051
  // src/components/modal/modal_stack.ts
2045
- var Er = [];
2046
- function Dr(e, t) {
2047
- return Er.push({
2052
+ var Or = [];
2053
+ function kr(e, t) {
2054
+ return Or.push({
2048
2055
  token: e,
2049
2056
  requestDismiss: t
2050
2057
  }), () => {
2051
- let t = Er.findIndex((t) => t.token === e);
2052
- t !== -1 && Er.splice(t, 1);
2058
+ let t = Or.findIndex((t) => t.token === e);
2059
+ t !== -1 && Or.splice(t, 1);
2053
2060
  };
2054
2061
  }
2055
- function Or(e) {
2056
- return Er.at(-1)?.token === e;
2062
+ function Ar(e) {
2063
+ return Or.at(-1)?.token === e;
2057
2064
  }
2058
- function kr() {
2059
- let e = Er.at(-1);
2065
+ function jr() {
2066
+ let e = Or.at(-1);
2060
2067
  return e ? (e.requestDismiss(), !0) : !1;
2061
2068
  }
2062
2069
  // src/components/modal/use_modal_dialog.ts
2063
- function Ar(e) {
2064
- return ur(e).filter((e) => !e.hasAttribute($n));
2070
+ function Mr(e) {
2071
+ return fr(e).filter((e) => !e.hasAttribute(tr));
2065
2072
  }
2066
- function jr({ dialog: e, content: t, fallbackScope: n }) {
2067
- let r = t ? Ar(t)[0] : void 0;
2068
- return r || n === "content" ? r : e ? Ar(e)[0] : void 0;
2073
+ function Nr({ dialog: e, content: t, fallbackScope: n }) {
2074
+ let r = t ? Mr(t)[0] : void 0;
2075
+ return r || n === "content" ? r : e ? Mr(e)[0] : void 0;
2069
2076
  }
2070
- function Mr(e) {
2071
- let t = jr(e);
2077
+ function Pr(e) {
2078
+ let t = Nr(e);
2072
2079
  (e.initialFocusRef?.current ?? t ?? e.dialog)?.focus();
2073
2080
  }
2074
- function Nr(e, t) {
2075
- let n = ur(t);
2081
+ function Fr(e, t) {
2082
+ let n = fr(t);
2076
2083
  if (n.length === 0) {
2077
2084
  e.preventDefault(), t.focus();
2078
2085
  return;
@@ -2080,10 +2087,10 @@ function Nr(e, t) {
2080
2087
  let r = n[0], i = n[n.length - 1], a = document.activeElement;
2081
2088
  (a instanceof HTMLElement ? n.indexOf(a) : -1) === -1 ? (e.preventDefault(), (e.shiftKey ? i : r).focus()) : e.shiftKey && a === r ? (e.preventDefault(), i.focus()) : !e.shiftKey && a === i && (e.preventDefault(), r.focus());
2082
2089
  }
2083
- function Pr() {
2090
+ function Ir() {
2084
2091
  return typeof document > "u" ? null : document.activeElement instanceof HTMLElement ? document.activeElement : null;
2085
2092
  }
2086
- function Fr() {
2093
+ function Lr() {
2087
2094
  let [e, t] = b(!1);
2088
2095
  return m(() => {
2089
2096
  let e = requestAnimationFrame(() => {
@@ -2092,15 +2099,15 @@ function Fr() {
2092
2099
  return () => cancelAnimationFrame(e);
2093
2100
  }, []), e;
2094
2101
  }
2095
- function Ir(e, { isEnded: t, modalToken: n }) {
2102
+ function Rr(e, { isEnded: t, modalToken: n }) {
2096
2103
  m(() => {
2097
2104
  if (t) return;
2098
2105
  let r = (t) => {
2099
- if (Or(n)) {
2106
+ if (Ar(n)) {
2100
2107
  if (t.key === "Escape") {
2101
2108
  if (t.defaultPrevented) return;
2102
- t.preventDefault(), kr();
2103
- } else t.key === "Tab" && e.current && Nr(t, e.current);
2109
+ t.preventDefault(), jr();
2110
+ } else t.key === "Tab" && e.current && Fr(t, e.current);
2104
2111
  }
2105
2112
  };
2106
2113
  return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
@@ -2110,18 +2117,18 @@ function Ir(e, { isEnded: t, modalToken: n }) {
2110
2117
  e
2111
2118
  ]);
2112
2119
  }
2113
- function Lr({ isEnded: e, onDismiss: t, dismissible: n, initialFocusRef: r, initialFocusFallbackScope: i = "dialog", getFocusFallback: a }) {
2114
- let [o] = b(() => Symbol("modal")), [s, c] = b(null), l = y(null), u = y(null), [d] = b(Pr), f = y(() => {});
2120
+ function zr({ isEnded: e, onDismiss: t, dismissible: n, initialFocusRef: r, initialFocusFallbackScope: i = "dialog", getFocusFallback: a }) {
2121
+ let [o] = b(() => Symbol("modal")), [s, c] = b(null), l = y(null), u = y(null), [d] = b(Ir), f = y(() => {});
2115
2122
  _(() => {
2116
2123
  f.current = () => {
2117
2124
  n && t();
2118
2125
  };
2119
2126
  }), m(() => {
2120
- if (!e) return Dr(o, () => f.current());
2121
- }, [e, o]), Tr();
2122
- let p = Fr();
2127
+ if (!e) return kr(o, () => f.current());
2128
+ }, [e, o]), Dr();
2129
+ let p = Lr();
2123
2130
  return m(() => {
2124
- s && !e && Mr({
2131
+ s && !e && Pr({
2125
2132
  dialog: l.current,
2126
2133
  content: u.current,
2127
2134
  initialFocusRef: r,
@@ -2133,7 +2140,7 @@ function Lr({ isEnded: e, onDismiss: t, dismissible: n, initialFocusRef: r, init
2133
2140
  e,
2134
2141
  d,
2135
2142
  a
2136
- ]), Ir(l, {
2143
+ ]), Rr(l, {
2137
2144
  isEnded: e,
2138
2145
  modalToken: o
2139
2146
  }), {
@@ -2152,7 +2159,7 @@ function Lr({ isEnded: e, onDismiss: t, dismissible: n, initialFocusRef: r, init
2152
2159
  };
2153
2160
  }
2154
2161
  // src/components/toast/toast_announcer_slot.tsx
2155
- var Rr = () => /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
2162
+ var Br = () => /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
2156
2163
  role: "status",
2157
2164
  className: "sr-only",
2158
2165
  "data-ms-toast-announcer": "polite"
@@ -2160,34 +2167,34 @@ var Rr = () => /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
2160
2167
  role: "alert",
2161
2168
  className: "sr-only",
2162
2169
  "data-ms-toast-announcer": "assertive"
2163
- })] }), zr = E((e) => ({
2170
+ })] }), Vr = E((e) => ({
2164
2171
  globalHotkeysEnabled: !0,
2165
2172
  setGlobalHotkeysEnabled: (t) => e({ globalHotkeysEnabled: t })
2166
- })), Br = 0;
2167
- function Vr() {
2168
- m(() => (Br += 1, Br === 1 && zr.getState().setGlobalHotkeysEnabled(!1), () => {
2169
- --Br, Br === 0 && zr.getState().setGlobalHotkeysEnabled(!0);
2173
+ })), Hr = 0;
2174
+ function Ur() {
2175
+ m(() => (Hr += 1, Hr === 1 && Vr.getState().setGlobalHotkeysEnabled(!1), () => {
2176
+ --Hr, Hr === 0 && Vr.getState().setGlobalHotkeysEnabled(!0);
2170
2177
  }), []);
2171
2178
  }
2172
2179
  // src/components/drawer/drawer.tsx
2173
- function Hr() {
2180
+ function Wr() {
2174
2181
  let e = document.querySelector("main");
2175
2182
  return e && !e.hasAttribute("tabindex") && (e.tabIndex = -1), e;
2176
2183
  }
2177
- function Ur({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size: o, side: s, radius: c, className: l, panelClassName: u, backdropClassName: d, unstyled: f = !1, dismissible: p, closeLabel: m, initialFocusRef: h }) {
2178
- Vr();
2179
- let _ = g(), { dismiss: y, registry: b } = Qn({
2184
+ function Gr({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size: o, side: s, radius: c, className: l, panelClassName: u, backdropClassName: d, unstyled: f = !1, dismissible: p, closeLabel: m, initialFocusRef: h }) {
2185
+ Ur();
2186
+ let _ = g(), { dismiss: y, registry: b } = er({
2180
2187
  onDismiss: n,
2181
2188
  isEnded: t
2182
- }), { dialogRef: x, contentRef: C, footerSlot: E, setFooterSlot: D, isVisible: O, handleBackdropClick: k, handleBackdropMouseDown: A } = Lr({
2189
+ }), { dialogRef: x, contentRef: C, footerSlot: E, setFooterSlot: D, isVisible: O, handleBackdropClick: k, handleBackdropMouseDown: A } = zr({
2183
2190
  isEnded: t,
2184
2191
  onDismiss: y,
2185
2192
  dismissible: p,
2186
2193
  initialFocusRef: h,
2187
2194
  initialFocusFallbackScope: "content",
2188
- getFocusFallback: Hr
2189
- }), { ref: j, scrollableProps: M, focusClassName: N } = gr({ labelledBy: _ }), P = v(() => K(C, j), [C, j]);
2190
- return /* @__PURE__ */ w(qn.Provider, {
2195
+ getFocusFallback: Wr
2196
+ }), { ref: j, scrollableProps: M, focusClassName: N } = vr({ labelledBy: _ }), P = v(() => K(C, j), [C, j]);
2197
+ return /* @__PURE__ */ w(Yn.Provider, {
2191
2198
  value: b,
2192
2199
  children: S(/* @__PURE__ */ T("div", {
2193
2200
  className: e("fixed inset-0 z-50", !f && "transition-opacity duration-200 ease-out", O ? "opacity-100" : "opacity-0"),
@@ -2204,17 +2211,17 @@ function Ur({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size:
2204
2211
  tabIndex: -1,
2205
2212
  "data-state": O ? "open" : "closed",
2206
2213
  inert: t,
2207
- className: e("fixed inset-y-0 h-full flex flex-col overflow-hidden", Un[s], Wn[s], Hn[o], "focus:outline-none", !f && [
2214
+ className: e("fixed inset-y-0 h-full flex flex-col overflow-hidden", Gn[s], Kn[s], Wn[o], "focus:outline-none", !f && [
2208
2215
  "bg-white dark:bg-gray-900",
2209
2216
  "[&,&_*]:[scrollbar-width:thin] [scrollbar-color:theme(colors.gray.300)_transparent] hover:[scrollbar-color:theme(colors.gray.400)_transparent] dark:[scrollbar-color:theme(colors.gray.600)_transparent] dark:hover:[scrollbar-color:theme(colors.gray.500)_transparent]",
2210
2217
  "shadow-2xl",
2211
- Kn[s][c],
2218
+ Jn[s][c],
2212
2219
  "ms-drawer-transition"
2213
- ], !O && Gn[s], u),
2220
+ ], !O && qn[s], u),
2214
2221
  onClick: (e) => e.stopPropagation(),
2215
2222
  children: [
2216
- /* @__PURE__ */ w(Rr, {}),
2217
- /* @__PURE__ */ w(Xn, {
2223
+ /* @__PURE__ */ w(Br, {}),
2224
+ /* @__PURE__ */ w(Qn, {
2218
2225
  titleId: _,
2219
2226
  title: r,
2220
2227
  onDismiss: y,
@@ -2226,12 +2233,12 @@ function Ur({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size:
2226
2233
  ref: P,
2227
2234
  ...M,
2228
2235
  className: e("flex-1 overflow-y-auto min-h-0", !f && "px-6 pb-6 text-sm leading-relaxed text-gray-600 dark:text-gray-400", N, l),
2229
- children: /* @__PURE__ */ w(Yn.Provider, {
2236
+ children: /* @__PURE__ */ w(Zn.Provider, {
2230
2237
  value: E,
2231
2238
  children: i
2232
2239
  })
2233
2240
  }),
2234
- /* @__PURE__ */ w(Jn, {
2241
+ /* @__PURE__ */ w(Xn, {
2235
2242
  onSlotChange: D,
2236
2243
  unstyled: f,
2237
2244
  children: a
@@ -2241,7 +2248,7 @@ function Ur({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size:
2241
2248
  }), document.body)
2242
2249
  });
2243
2250
  }
2244
- function Wr(e, t) {
2251
+ function Kr(e, t) {
2245
2252
  let [n, r] = b(!e), i = h(() => t?.());
2246
2253
  return e && n && r(!1), m(() => {
2247
2254
  if (e || n) return;
@@ -2251,8 +2258,8 @@ function Wr(e, t) {
2251
2258
  return () => clearTimeout(t);
2252
2259
  }, [e, n]), e || !n;
2253
2260
  }
2254
- function Gr({ isOpen: e, onClose: t, size: n = "md", side: r = "right", radius: i = "none", dismissible: a = !0, onExited: o, ...s }) {
2255
- return Wr(e, o) ? /* @__PURE__ */ w(Ur, {
2261
+ function qr({ isOpen: e, onClose: t, size: n = "md", side: r = "right", radius: i = "none", dismissible: a = !0, onExited: o, ...s }) {
2262
+ return Kr(e, o) ? /* @__PURE__ */ w(Gr, {
2256
2263
  ...s,
2257
2264
  isEnded: !e,
2258
2265
  onDismiss: t,
@@ -2263,24 +2270,24 @@ function Gr({ isOpen: e, onClose: t, size: n = "md", side: r = "right", radius:
2263
2270
  }) : null;
2264
2271
  }
2265
2272
  // src/components/shared/use_controlled_length.ts
2266
- function Kr(e) {
2273
+ function Jr(e) {
2267
2274
  return typeof e == "string" ? e.length : 0;
2268
2275
  }
2269
- function qr(e, t) {
2270
- let [n, r] = b(Kr(t)), i = e !== void 0;
2276
+ function Yr(e, t) {
2277
+ let [n, r] = b(Jr(t)), i = e !== void 0;
2271
2278
  return {
2272
- length: i ? Kr(e) : n,
2279
+ length: i ? Jr(e) : n,
2273
2280
  trackLength: (e) => {
2274
2281
  i || r(e.length);
2275
2282
  }
2276
2283
  };
2277
2284
  }
2278
2285
  // src/components/input/input.tsx
2279
- function Jr({ label: t, description: n, error: r, showCharCount: i = !1, minLength: a, maxLength: o, radius: s = "md", unstyled: c = !1, className: l, wrapperClassName: u, value: d, defaultValue: f, onChange: p, id: m, "aria-describedby": h, "aria-label": g, ..._ }) {
2280
- let { fieldId: v, errorId: y, descriptionId: b, labelId: x, characterCountId: S } = it(m), { length: C, trackLength: E } = qr(d, f), D = i && (a !== void 0 || o !== void 0), O = (e) => {
2286
+ function Xr({ label: t, description: n, error: r, showCharCount: i = !1, minLength: a, maxLength: o, radius: s = "md", unstyled: c = !1, className: l, wrapperClassName: u, value: d, defaultValue: f, onChange: p, id: m, "aria-describedby": h, "aria-label": g, ..._ }) {
2287
+ let { fieldId: v, errorId: y, descriptionId: b, labelId: x, characterCountId: S } = ot(m), { length: C, trackLength: E } = Yr(d, f), D = i && (a !== void 0 || o !== void 0), O = (e) => {
2281
2288
  E(e.target.value), p?.(e);
2282
2289
  };
2283
- return /* @__PURE__ */ T(xt, {
2290
+ return /* @__PURE__ */ T(Ct, {
2284
2291
  fieldId: v,
2285
2292
  errorId: y,
2286
2293
  descriptionId: b,
@@ -2292,7 +2299,7 @@ function Jr({ label: t, description: n, error: r, showCharCount: i = !1, minLeng
2292
2299
  children: [/* @__PURE__ */ w("input", {
2293
2300
  id: v,
2294
2301
  className: e("w-full disabled:opacity-50 disabled:cursor-not-allowed", !c && [
2295
- We,
2302
+ Ke,
2296
2303
  z[s],
2297
2304
  "px-3 py-2 text-sm"
2298
2305
  ], !c && r && e("border-red-500 dark:border-red-400", "focus:ring-red-500"), l),
@@ -2302,10 +2309,10 @@ function Jr({ label: t, description: n, error: r, showCharCount: i = !1, minLeng
2302
2309
  onChange: O,
2303
2310
  "aria-invalid": !!r,
2304
2311
  "aria-label": g,
2305
- "aria-labelledby": en(t, x, g),
2312
+ "aria-labelledby": nn(t, x, g),
2306
2313
  "aria-describedby": W(h, !!n && b, r && y, D && S),
2307
2314
  ..._
2308
- }), D && /* @__PURE__ */ w(Ve, {
2315
+ }), D && /* @__PURE__ */ w(Ue, {
2309
2316
  id: S,
2310
2317
  current: C,
2311
2318
  min: a,
@@ -2316,13 +2323,13 @@ function Jr({ label: t, description: n, error: r, showCharCount: i = !1, minLeng
2316
2323
  });
2317
2324
  }
2318
2325
  // src/components/kbd/kbd.tsx
2319
- var Yr = {
2326
+ var Zr = {
2320
2327
  xs: "px-1.5 py-0.5 text-xs",
2321
2328
  sm: "px-2 py-0.5 text-xs",
2322
2329
  md: "px-2.5 py-1 text-sm",
2323
2330
  lg: "px-3 py-1 text-base"
2324
- }, Xr = ({ children: t, size: n = "sm", radius: r = "sm", unstyled: i = !1, className: a }) => /* @__PURE__ */ w("kbd", {
2325
- className: e("inline-flex items-center", Yr[n], !i && [
2331
+ }, Qr = ({ children: t, size: n = "sm", radius: r = "sm", unstyled: i = !1, className: a }) => /* @__PURE__ */ w("kbd", {
2332
+ className: e("inline-flex items-center", Zr[n], !i && [
2326
2333
  "border font-semibold uppercase",
2327
2334
  "text-gray-600 dark:text-gray-300",
2328
2335
  "bg-gray-100 dark:bg-gray-700",
@@ -2330,21 +2337,21 @@ var Yr = {
2330
2337
  z[r]
2331
2338
  ], a),
2332
2339
  children: t
2333
- }), Zr = 4;
2334
- function Qr(e, t) {
2340
+ }), $r = 4;
2341
+ function ei(e, t) {
2335
2342
  return t === "center" ? e : `${e}-${t}`;
2336
2343
  }
2337
- function $r({ trigger: t, children: o, side: l = "bottom", align: d = "start", radius: p = "md", unstyled: h = !1, panelClassName: _, className: v, disabled: x = !1, ref: S }) {
2344
+ function ti({ trigger: t, children: o, side: l = "bottom", align: d = "start", radius: p = "md", unstyled: h = !1, panelClassName: _, className: v, disabled: x = !1, ref: S }) {
2338
2345
  let C = y(null), [E, D] = b(null), [O, k] = b("first"), { isMounted: A, isVisible: j, setIsVisible: M, open: N, close: P } = te(), { refs: F, floatingStyles: I, isPositioned: L } = s({
2339
- placement: Qr(l, d),
2346
+ placement: ei(l, d),
2340
2347
  strategy: "fixed",
2341
2348
  open: A,
2342
2349
  whileElementsMounted: n,
2343
2350
  middleware: [
2344
- i(Zr),
2351
+ i($r),
2345
2352
  r(),
2346
2353
  a({ padding: 8 }),
2347
- kn()
2354
+ jn()
2348
2355
  ]
2349
2356
  });
2350
2357
  ne(A, L, M);
@@ -2373,7 +2380,7 @@ function $r({ trigger: t, children: o, side: l = "bottom", align: d = "start", r
2373
2380
  return /* @__PURE__ */ T("span", {
2374
2381
  ref: H,
2375
2382
  className: e("inline-flex", v),
2376
- children: [W, A && /* @__PURE__ */ w(Tn, {
2383
+ children: [W, A && /* @__PURE__ */ w(Dn, {
2377
2384
  id: B,
2378
2385
  labelledBy: z,
2379
2386
  setFloating: F.setFloating,
@@ -2385,13 +2392,13 @@ function $r({ trigger: t, children: o, side: l = "bottom", align: d = "start", r
2385
2392
  panelClassName: _,
2386
2393
  onClose: V,
2387
2394
  initialFocus: O,
2388
- portalTarget: Dn(E),
2395
+ portalTarget: kn(E),
2389
2396
  children: o
2390
2397
  })]
2391
2398
  });
2392
2399
  }
2393
2400
  // src/components/menu_group/menu_group.tsx
2394
- function ei({ label: t, children: n, unstyled: r = !1, className: i, wrapperClassName: a }) {
2401
+ function ni({ label: t, children: n, unstyled: r = !1, className: i, wrapperClassName: a }) {
2395
2402
  let o = g();
2396
2403
  return /* @__PURE__ */ T("div", {
2397
2404
  role: "group",
@@ -2406,12 +2413,12 @@ function ei({ label: t, children: n, unstyled: r = !1, className: i, wrapperClas
2406
2413
  });
2407
2414
  }
2408
2415
  // src/components/menu_item/menu_item_content.tsx
2409
- var ti = ({ icon: t, danger: n = !1, unstyled: r = !1, children: i }) => /* @__PURE__ */ T(C, { children: [t && /* @__PURE__ */ w("span", {
2416
+ var ri = ({ icon: t, danger: n = !1, unstyled: r = !1, children: i }) => /* @__PURE__ */ T(C, { children: [t && /* @__PURE__ */ w("span", {
2410
2417
  className: e(t, "h-4 w-4 flex-shrink-0", !n && !r && "text-gray-500 dark:text-gray-400"),
2411
2418
  "aria-hidden": "true"
2412
2419
  }), i] });
2413
2420
  // src/components/menu_item/menu_item_end.tsx
2414
- function ni({ trailing: t, selected: n, unstyled: r = !1 }) {
2421
+ function ii({ trailing: t, selected: n, unstyled: r = !1 }) {
2415
2422
  let i = n !== void 0;
2416
2423
  return !t && !i ? null : /* @__PURE__ */ T("span", {
2417
2424
  className: "ml-auto flex flex-shrink-0 items-center gap-2 pl-2",
@@ -2425,27 +2432,27 @@ function ni({ trailing: t, selected: n, unstyled: r = !1 }) {
2425
2432
  });
2426
2433
  }
2427
2434
  // src/components/menu_item/menu_item_styles.ts
2428
- var ri = "flex w-full cursor-pointer items-center whitespace-nowrap text-left", ii = "gap-2 px-3 py-2 text-sm transition-colors", ai = {
2435
+ var ai = "flex w-full cursor-pointer items-center whitespace-nowrap text-left", oi = "gap-2 px-3 py-2 text-sm transition-colors", si = {
2429
2436
  default: "text-gray-900 dark:text-gray-100 focus-visible:bg-blue-50 dark:focus-visible:bg-blue-900/40",
2430
2437
  danger: "text-red-700 dark:text-red-400 focus-visible:bg-red-50 dark:focus-visible:bg-red-950/40"
2431
2438
  };
2432
- function oi({ hoverClasses: t, stateClasses: n, danger: r, unstyled: i, radius: a, className: o }) {
2439
+ function ci({ hoverClasses: t, stateClasses: n, danger: r, unstyled: i, radius: a, className: o }) {
2433
2440
  let s = r ? "danger" : "default";
2434
- return e(ri, !i && [
2441
+ return e(ai, !i && [
2435
2442
  "outline-hidden focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-blue-500 dark:focus-visible:outline-blue-400",
2436
- ii,
2437
- ai[s],
2443
+ oi,
2444
+ si[s],
2438
2445
  t[s],
2439
2446
  a && z[a]
2440
2447
  ], n, o);
2441
2448
  }
2442
2449
  // src/components/menu_item/menu_item_button.tsx
2443
- var si = {
2450
+ var li = {
2444
2451
  default: "hover:enabled:bg-gray-50 dark:hover:enabled:bg-gray-800/60",
2445
2452
  danger: "hover:enabled:bg-red-50 dark:hover:enabled:bg-red-950/40"
2446
- }, ci = ["disabled:cursor-not-allowed disabled:opacity-50"];
2447
- function li({ icon: e, trailing: t, onClick: n, selected: r, danger: i = !1, disabled: a = !1, children: o, radius: s, unstyled: c = !1, className: l, ref: u }) {
2448
- let d = _n();
2453
+ }, ui = ["disabled:cursor-not-allowed disabled:opacity-50"];
2454
+ function di({ icon: e, trailing: t, onClick: n, selected: r, danger: i = !1, disabled: a = !1, children: o, radius: s, unstyled: c = !1, className: l, ref: u }) {
2455
+ let d = yn();
2449
2456
  return /* @__PURE__ */ T("button", {
2450
2457
  ref: u,
2451
2458
  type: "button",
@@ -2456,20 +2463,20 @@ function li({ icon: e, trailing: t, onClick: n, selected: r, danger: i = !1, dis
2456
2463
  e.stopPropagation(), n(e), d?.();
2457
2464
  },
2458
2465
  disabled: a,
2459
- className: oi({
2460
- hoverClasses: si,
2461
- stateClasses: ci,
2466
+ className: ci({
2467
+ hoverClasses: li,
2468
+ stateClasses: ui,
2462
2469
  danger: i,
2463
2470
  unstyled: c,
2464
2471
  radius: s,
2465
2472
  className: l
2466
2473
  }),
2467
- children: [/* @__PURE__ */ w(ti, {
2474
+ children: [/* @__PURE__ */ w(ri, {
2468
2475
  icon: e,
2469
2476
  danger: i,
2470
2477
  unstyled: c,
2471
2478
  children: o
2472
- }), /* @__PURE__ */ w(ni, {
2479
+ }), /* @__PURE__ */ w(ii, {
2473
2480
  trailing: t,
2474
2481
  selected: r,
2475
2482
  unstyled: c
@@ -2477,103 +2484,103 @@ function li({ icon: e, trailing: t, onClick: n, selected: r, danger: i = !1, dis
2477
2484
  });
2478
2485
  }
2479
2486
  // src/components/menu_item/menu_item_link.tsx
2480
- var ui = "_blank", di = "noopener noreferrer", fi = {
2487
+ var fi = "_blank", pi = "noopener noreferrer", mi = {
2481
2488
  default: "hover:bg-gray-50 dark:hover:bg-gray-800/60",
2482
2489
  danger: "hover:bg-red-50 dark:hover:bg-red-950/40"
2483
- }, pi = ["no-underline", "aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50"];
2484
- function mi({ icon: e, trailing: t, href: n, target: r, rel: i, danger: a = !1, disabled: o = !1, children: s, radius: c, unstyled: l = !1, className: u, ref: d }) {
2485
- let f = _n();
2490
+ }, hi = ["no-underline", "aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50"];
2491
+ function gi({ icon: e, trailing: t, href: n, target: r, rel: i, danger: a = !1, disabled: o = !1, children: s, radius: c, unstyled: l = !1, className: u, ref: d }) {
2492
+ let f = yn();
2486
2493
  return /* @__PURE__ */ T("a", {
2487
2494
  ref: d,
2488
2495
  role: "menuitem",
2489
2496
  tabIndex: -1,
2490
2497
  href: o ? void 0 : n,
2491
2498
  target: r,
2492
- rel: i ?? (r === ui ? di : void 0),
2499
+ rel: i ?? (r === fi ? pi : void 0),
2493
2500
  "aria-disabled": o || void 0,
2494
2501
  onClick: (e) => {
2495
2502
  e.stopPropagation(), f?.();
2496
2503
  },
2497
- className: oi({
2498
- hoverClasses: fi,
2499
- stateClasses: pi,
2504
+ className: ci({
2505
+ hoverClasses: mi,
2506
+ stateClasses: hi,
2500
2507
  danger: a,
2501
2508
  unstyled: l,
2502
2509
  radius: c,
2503
2510
  className: u
2504
2511
  }),
2505
- children: [/* @__PURE__ */ w(ti, {
2512
+ children: [/* @__PURE__ */ w(ri, {
2506
2513
  icon: e,
2507
2514
  danger: a,
2508
2515
  unstyled: l,
2509
2516
  children: s
2510
- }), /* @__PURE__ */ w(ni, {
2517
+ }), /* @__PURE__ */ w(ii, {
2511
2518
  trailing: t,
2512
2519
  unstyled: l
2513
2520
  })]
2514
2521
  });
2515
2522
  }
2516
2523
  // src/components/menu_item/menu_item.tsx
2517
- function hi(e) {
2518
- return e.href === void 0 ? /* @__PURE__ */ w(li, { ...e }) : /* @__PURE__ */ w(mi, { ...e });
2524
+ function _i(e) {
2525
+ return e.href === void 0 ? /* @__PURE__ */ w(di, { ...e }) : /* @__PURE__ */ w(gi, { ...e });
2519
2526
  }
2520
2527
  // src/components/menu_separator/menu_separator.tsx
2521
- var gi = ({ unstyled: t = !1, className: n }) => /* @__PURE__ */ w("hr", {
2528
+ var vi = ({ unstyled: t = !1, className: n }) => /* @__PURE__ */ w("hr", {
2522
2529
  "aria-orientation": "horizontal",
2523
2530
  className: e("w-full", !t && ["my-1 border-0 border-t", "border-gray-100 dark:border-gray-800"], n)
2524
- }), _i = {
2531
+ }), yi = {
2525
2532
  danger: "i-mdi-alert-circle",
2526
2533
  primary: "i-mdi-help-circle",
2527
2534
  success: "i-mdi-check-circle"
2528
- }, vi = {
2535
+ }, bi = {
2529
2536
  danger: "bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400",
2530
2537
  primary: "bg-blue-50 text-blue-600 dark:bg-blue-500/10 dark:text-blue-400",
2531
2538
  success: "bg-green-50 text-green-600 dark:bg-green-500/10 dark:text-green-400"
2532
2539
  };
2533
- function yi({ title: t, color: n }) {
2540
+ function xi({ title: t, color: n }) {
2534
2541
  return /* @__PURE__ */ T("div", {
2535
2542
  className: "flex items-center gap-3",
2536
2543
  children: [/* @__PURE__ */ w("span", {
2537
- className: e("flex h-9 w-9 shrink-0 items-center justify-center rounded-full", vi[n]),
2544
+ className: e("flex h-9 w-9 shrink-0 items-center justify-center rounded-full", bi[n]),
2538
2545
  "aria-hidden": "true",
2539
- children: /* @__PURE__ */ w("span", { className: e(_i[n], "h-5 w-5") })
2546
+ children: /* @__PURE__ */ w("span", { className: e(yi[n], "h-5 w-5") })
2540
2547
  }), t]
2541
2548
  });
2542
2549
  }
2543
2550
  // src/components/modal/modal_sheet_classes.ts
2544
- var bi = {
2551
+ var Si = {
2545
2552
  sm: "ms-modal-sheet-size-sm",
2546
2553
  md: "ms-modal-sheet-size-md",
2547
2554
  lg: "ms-modal-sheet-size-lg",
2548
2555
  xl: "ms-modal-sheet-size-xl"
2549
- }, xi = {
2556
+ }, Ci = {
2550
2557
  none: "ms-modal-sheet-radius-none",
2551
2558
  sm: "ms-modal-sheet-radius-sm",
2552
2559
  md: "ms-modal-sheet-radius-md",
2553
2560
  lg: "ms-modal-sheet-radius-lg",
2554
2561
  xl: "ms-modal-sheet-radius-xl",
2555
2562
  full: "ms-modal-sheet-radius-full"
2556
- }, Si = "a dialog needs an accessible name. Provide a non-empty `title` or `aria-label` prop.", Ci = {
2563
+ }, wi = "a dialog needs an accessible name. Provide a non-empty `title` or `aria-label` prop.", Ti = {
2557
2564
  sm: "max-w-md",
2558
2565
  md: "max-w-lg",
2559
2566
  lg: "max-w-2xl",
2560
2567
  xl: "max-w-4xl"
2561
- }, wi = {
2568
+ }, Ei = {
2562
2569
  auto: "",
2563
2570
  fixed: "ms-modal-height-fixed"
2564
- }, Ti = {
2571
+ }, Di = {
2565
2572
  auto: "overflow-y-auto",
2566
2573
  fixed: "overflow-hidden flex flex-col"
2567
2574
  };
2568
- function Ei({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size: o = "md", height: s = "auto", phoneLayout: c = "center", radius: l = "xl", className: u, panelClassName: d, backdropClassName: f, unstyled: p = !1, dismissible: m = !0, closeLabel: h, role: _ = "dialog", initialFocusRef: y, "aria-label": b }) {
2569
- let x = g(), C = g(), { dialogRef: E, contentRef: D, footerSlot: O, setFooterSlot: k, isVisible: A, handleBackdropClick: j, handleBackdropMouseDown: M } = Lr({
2575
+ function Oi({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size: o = "md", height: s = "auto", phoneLayout: c = "center", radius: l = "xl", className: u, panelClassName: d, backdropClassName: f, unstyled: p = !1, dismissible: m = !0, closeLabel: h, role: _ = "dialog", initialFocusRef: y, "aria-label": b }) {
2576
+ let x = g(), C = g(), { dialogRef: E, contentRef: D, footerSlot: O, setFooterSlot: k, isVisible: A, handleBackdropClick: j, handleBackdropMouseDown: M } = zr({
2570
2577
  isEnded: t,
2571
2578
  onDismiss: n,
2572
2579
  dismissible: m,
2573
2580
  initialFocusRef: y
2574
2581
  });
2575
- ct("Modal", !!r || !!b?.trim(), Si);
2576
- let { ref: N, scrollableProps: P, focusClassName: F } = gr({
2582
+ ut("Modal", !!r || !!b?.trim(), wi);
2583
+ let { ref: N, scrollableProps: P, focusClassName: F } = vr({
2577
2584
  labelledBy: r ? x : void 0,
2578
2585
  label: b
2579
2586
  }), I = v(() => K(D, N), [D, N]), L = s === "auto", R = c === "sheet", B = _ === "alertdialog" && !!i;
@@ -2598,18 +2605,18 @@ function Ei({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size:
2598
2605
  tabIndex: -1,
2599
2606
  "data-state": A ? "open" : "closed",
2600
2607
  "data-phone-layout": R ? "sheet" : void 0,
2601
- className: e("relative w-full", R ? bi[o] : Ci[o], wi[s], R && "ms-modal-sheet-panel", R && s === "fixed" && "ms-modal-sheet-height-fixed", "ms-modal-max-height overflow-hidden flex flex-col", "focus:outline-none", !p && [
2608
+ className: e("relative w-full", R ? Si[o] : Ti[o], Ei[s], R && "ms-modal-sheet-panel", R && s === "fixed" && "ms-modal-sheet-height-fixed", "ms-modal-max-height overflow-hidden flex flex-col", "focus:outline-none", !p && [
2602
2609
  "bg-white dark:bg-gray-900",
2603
2610
  "[&,&_*]:[scrollbar-width:thin] [scrollbar-color:theme(colors.gray.300)_transparent] hover:[scrollbar-color:theme(colors.gray.400)_transparent] dark:[scrollbar-color:theme(colors.gray.600)_transparent] dark:hover:[scrollbar-color:theme(colors.gray.500)_transparent]",
2604
2611
  "shadow-2xl",
2605
- R ? xi[l] : z[l],
2612
+ R ? Ci[l] : z[l],
2606
2613
  "transition-all duration-200 ease-out",
2607
2614
  A ? "opacity-100" : R ? "ms-modal-sheet-closed" : "ms-modal-panel-closed"
2608
2615
  ], d),
2609
2616
  onClick: (e) => e.stopPropagation(),
2610
2617
  children: [
2611
- /* @__PURE__ */ w(Rr, {}),
2612
- r && /* @__PURE__ */ w(Xn, {
2618
+ /* @__PURE__ */ w(Br, {}),
2619
+ r && /* @__PURE__ */ w(Qn, {
2613
2620
  titleId: x,
2614
2621
  title: r,
2615
2622
  onDismiss: n,
@@ -2621,13 +2628,13 @@ function Ei({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size:
2621
2628
  ref: I,
2622
2629
  id: B ? C : void 0,
2623
2630
  ...L ? P : void 0,
2624
- className: e("flex-1 min-h-0", !p && "px-6 pb-6 text-sm leading-relaxed text-gray-600 dark:text-gray-400", Ti[s], !p && !r && "pt-6", L && F, u),
2625
- children: /* @__PURE__ */ w(Yn.Provider, {
2631
+ className: e("flex-1 min-h-0", !p && "px-6 pb-6 text-sm leading-relaxed text-gray-600 dark:text-gray-400", Di[s], !p && !r && "pt-6", L && F, u),
2632
+ children: /* @__PURE__ */ w(Zn.Provider, {
2626
2633
  value: O,
2627
2634
  children: i
2628
2635
  })
2629
2636
  }),
2630
- /* @__PURE__ */ w(Jn, {
2637
+ /* @__PURE__ */ w(Xn, {
2631
2638
  onSlotChange: k,
2632
2639
  unstyled: p,
2633
2640
  children: a
@@ -2637,8 +2644,8 @@ function Ei({ isEnded: t, onDismiss: n, title: r, children: i, footer: a, size:
2637
2644
  }), document.body);
2638
2645
  }
2639
2646
  // src/components/modal/confirm_modal.tsx
2640
- var Di = D(({ call: e, title: t, children: n, confirmLabel: r, cancelLabel: i, confirmColor: a, radius: o, closeLabel: s, onConfirm: c, onError: l }) => {
2641
- Vr();
2647
+ var ki = D(({ call: e, title: t, children: n, confirmLabel: r, cancelLabel: i, confirmColor: a, radius: o, closeLabel: s, onConfirm: c, onError: l }) => {
2648
+ Ur();
2642
2649
  let [u, d] = b(!1), f = y(null), p = () => e.end(!1), m = async () => {
2643
2650
  if (!c) e.end(!0);
2644
2651
  else {
@@ -2646,14 +2653,14 @@ var Di = D(({ call: e, title: t, children: n, confirmLabel: r, cancelLabel: i, c
2646
2653
  try {
2647
2654
  await c(), e.end(!0);
2648
2655
  } catch (e) {
2649
- d(!1), Pn(e, l);
2656
+ d(!1), In(e, l);
2650
2657
  }
2651
2658
  }
2652
2659
  }, h = Q(), g = r ?? h.confirm, _ = i ?? h.cancel, v = a ?? "primary";
2653
- return /* @__PURE__ */ w(Ei, {
2660
+ return /* @__PURE__ */ w(Oi, {
2654
2661
  isEnded: e.ended,
2655
2662
  onDismiss: p,
2656
- title: /* @__PURE__ */ w(yi, {
2663
+ title: /* @__PURE__ */ w(xi, {
2657
2664
  title: t,
2658
2665
  color: v
2659
2666
  }),
@@ -2683,18 +2690,18 @@ var Di = D(({ call: e, title: t, children: n, confirmLabel: r, cancelLabel: i, c
2683
2690
  });
2684
2691
  }, 200);
2685
2692
  // src/components/modal/modal.tsx
2686
- function Oi(e, t) {
2693
+ function Ai(e, t) {
2687
2694
  return typeof e == "function" ? e(t) : e;
2688
2695
  }
2689
- var ki = D(({ call: e, title: t, children: n, size: r, height: i, phoneLayout: a, radius: o, className: s, panelClassName: c, backdropClassName: l, unstyled: u, dismissible: d, closeLabel: f, role: p, initialFocusRef: m, "aria-label": h }) => {
2690
- Vr();
2691
- let { dismiss: g, registry: _ } = Qn({
2696
+ var ji = D(({ call: e, title: t, children: n, size: r, height: i, phoneLayout: a, radius: o, className: s, panelClassName: c, backdropClassName: l, unstyled: u, dismissible: d, closeLabel: f, role: p, initialFocusRef: m, "aria-label": h }) => {
2697
+ Ur();
2698
+ let { dismiss: g, registry: _ } = er({
2692
2699
  onDismiss: () => e.end(),
2693
2700
  isEnded: e.ended
2694
2701
  });
2695
- return /* @__PURE__ */ w(qn.Provider, {
2702
+ return /* @__PURE__ */ w(Yn.Provider, {
2696
2703
  value: _,
2697
- children: /* @__PURE__ */ w(Ei, {
2704
+ children: /* @__PURE__ */ w(Oi, {
2698
2705
  isEnded: e.ended,
2699
2706
  onDismiss: g,
2700
2707
  title: t,
@@ -2711,18 +2718,18 @@ var ki = D(({ call: e, title: t, children: n, size: r, height: i, phoneLayout: a
2711
2718
  role: p,
2712
2719
  initialFocusRef: m,
2713
2720
  "aria-label": h,
2714
- children: Oi(n, g)
2721
+ children: Ai(n, g)
2715
2722
  })
2716
2723
  });
2717
2724
  }, 200);
2718
2725
  // src/components/modal/modal_footer.tsx
2719
- function Ai({ children: e }) {
2720
- let t = p(Yn);
2726
+ function Mi({ children: e }) {
2727
+ let t = p(Zn);
2721
2728
  return t ? S(e, t) : null;
2722
2729
  }
2723
2730
  // src/components/modal/use_dismiss_guard.ts
2724
- function ji(e, t = !0) {
2725
- let n = p(qn), r = y(e);
2731
+ function Ni(e, t = !0) {
2732
+ let n = p(Yn), r = y(e);
2726
2733
  if (_(() => {
2727
2734
  r.current = e;
2728
2735
  }), m(() => {
@@ -2730,11 +2737,11 @@ function ji(e, t = !0) {
2730
2737
  }, [n, t]), !n) throw Error("useDismissGuard must be used inside a Modal or a Drawer");
2731
2738
  }
2732
2739
  // src/components/modal_provider/modal_provider.tsx
2733
- function Mi() {
2734
- return /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ki, {}), /* @__PURE__ */ w(Di, {})] });
2740
+ function Pi() {
2741
+ return /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ji, {}), /* @__PURE__ */ w(ki, {})] });
2735
2742
  }
2736
2743
  // src/components/multi_combobox/multi_combobox_checkbox.tsx
2737
- function Ni({ isSelected: t, unstyled: n, radius: r }) {
2744
+ function Fi({ isSelected: t, unstyled: n, radius: r }) {
2738
2745
  return /* @__PURE__ */ w("span", {
2739
2746
  "aria-hidden": !0,
2740
2747
  className: e("flex h-4 w-4 shrink-0 items-center justify-center", !n && [
@@ -2755,14 +2762,14 @@ function Ni({ isSelected: t, unstyled: n, radius: r }) {
2755
2762
  });
2756
2763
  }
2757
2764
  // src/components/multi_combobox/multi_combobox.tsx
2758
- var Pi = 2, Fi = "flex items-center gap-2";
2759
- function Ii(e, t, n, r, i) {
2765
+ var Ii = 2, Li = "flex items-center gap-2";
2766
+ function Ri(e, t, n, r, i) {
2760
2767
  return i?.(e, t) ? !0 : r === void 0 || n.has(e) ? !1 : t.length >= r;
2761
2768
  }
2762
- function Li(e, t, n) {
2769
+ function zi(e, t, n) {
2763
2770
  return t.has(n) ? e.filter((e) => e !== n) : [...e, n];
2764
2771
  }
2765
- function Ri(e, t) {
2772
+ function Bi(e, t) {
2766
2773
  if (e.length <= t) return {
2767
2774
  visibleOptions: e,
2768
2775
  hiddenCount: 0
@@ -2773,12 +2780,12 @@ function Ri(e, t) {
2773
2780
  hiddenCount: e.length - n
2774
2781
  };
2775
2782
  }
2776
- function zi(e, t, n) {
2783
+ function Vi(e, t, n) {
2777
2784
  return typeof e == "string" ? `${e}, ${n}` : t ? `${t}, ${n}` : n;
2778
2785
  }
2779
- var Bi = "inline-flex items-center rounded-full bg-gray-200 dark:bg-gray-700 px-2 py-0.5 text-xs text-gray-900 dark:text-gray-100";
2780
- function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label": a, error: o, placeholder: s, searchPlaceholder: c, noResultsText: l, clearLabel: u, clearText: d, maxSelectedValues: p, isOptionDisabled: h, maxDisplayedValues: g = Pi, formatOverflowCount: _, formatSelectedCount: x, formatMaxSelectedHint: S, radius: E = "sm", unstyled: D = !1, disabled: O = !1, required: k = !1, className: A, wrapperClassName: j, dropdownClassName: M, optionLabelOverflow: N = "wrap", values: P, defaultValues: I = [], onChange: L, onDropdownClose: R, id: V }) {
2781
- let H = Q(), { fieldId: U, errorId: G, descriptionId: ee, labelId: te } = it(V), ne = `${U}-listbox`, K = `${U}-max-hint`, re = `${U}-selection`, ie = r !== void 0 || !!a, ae = y(null), q = y(null), oe = y(null), J = y(null), [Y, se] = rt(P, I), [ce, X] = b(""), [Z, le] = b(!1), ue = dn(Z), de = v(() => new Set(Y), [Y]), fe = v(() => n ? [] : t.map((e) => e.label.toLowerCase()), [t, n]), pe = v(() => {
2786
+ var Hi = "inline-flex items-center rounded-full bg-gray-200 dark:bg-gray-700 px-2 py-0.5 text-xs text-gray-900 dark:text-gray-100";
2787
+ function Ui({ options: t, filterOption: n, label: r, description: i, "aria-label": a, error: o, placeholder: s, searchPlaceholder: c, noResultsText: l, clearLabel: u, clearText: d, maxSelectedValues: p, isOptionDisabled: h, maxDisplayedValues: g = Ii, formatOverflowCount: _, formatSelectedCount: x, formatMaxSelectedHint: S, radius: E = "sm", unstyled: D = !1, disabled: O = !1, required: k = !1, className: A, wrapperClassName: j, dropdownClassName: M, optionLabelOverflow: N = "wrap", values: P, defaultValues: I = [], onChange: L, onDropdownClose: R, id: V }) {
2788
+ let H = Q(), { fieldId: U, errorId: G, descriptionId: ee, labelId: te } = ot(V), ne = `${U}-listbox`, K = `${U}-max-hint`, re = `${U}-selection`, ie = r !== void 0 || !!a, ae = y(null), q = y(null), oe = y(null), J = y(null), [Y, se] = at(P, I), [ce, X] = b(""), [Z, le] = b(!1), ue = pn(Z), de = v(() => new Set(Y), [Y]), fe = v(() => n ? [] : t.map((e) => e.label.toLowerCase()), [t, n]), pe = v(() => {
2782
2789
  let e = ce.trim().toLowerCase();
2783
2790
  return e ? n ? t.filter((e) => n(e, ce)) : t.filter((t, n) => fe[n].includes(e)) : t;
2784
2791
  }, [
@@ -2786,11 +2793,11 @@ function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label
2786
2793
  n,
2787
2794
  fe,
2788
2795
  ce
2789
- ]), { activeIndex: me, activeOptionId: he, move: ge, moveWithinBounds: _e, first: ve, last: ye, reset: be } = rn({
2796
+ ]), { activeIndex: me, activeOptionId: he, move: ge, moveWithinBounds: _e, first: ve, last: ye, reset: be } = on({
2790
2797
  optionCount: pe.length,
2791
- getOptionId: (e) => Ct(ne, e),
2798
+ getOptionId: (e) => Tt(ne, e),
2792
2799
  isOpen: Z
2793
- }), xe = v(() => t.filter((e) => de.has(e.value)), [t, de]), Se = ie && xe.length > 0, { visibleOptions: Ce, hiddenCount: we } = Ri(xe, g), Te = () => {
2800
+ }), xe = v(() => t.filter((e) => de.has(e.value)), [t, de]), Se = ie && xe.length > 0, { visibleOptions: Ce, hiddenCount: we } = Bi(xe, g), Te = () => {
2794
2801
  O || le(!0);
2795
2802
  }, $ = f(() => {
2796
2803
  le(!1), X(""), be(), R?.(Y);
@@ -2801,8 +2808,8 @@ function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label
2801
2808
  ]), Ee = () => {
2802
2809
  Z ? $() : Te();
2803
2810
  }, De = (e) => {
2804
- if (Ii(e, Y, de, p, h)) return;
2805
- let t = Li(Y, de, e);
2811
+ if (Ri(e, Y, de, p, h)) return;
2812
+ let t = zi(Y, de, e);
2806
2813
  se(t), L?.(t);
2807
2814
  }, Oe = () => {
2808
2815
  se([]), L?.([]);
@@ -2826,14 +2833,14 @@ function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label
2826
2833
  }, Ie = (e) => {
2827
2834
  Z && (e.preventDefault(), $(), ae.current?.focus());
2828
2835
  }, Le = (e, t) => {
2829
- Z && !St(e) && (e.preventDefault(), _e(t * Rt(J.current, me)));
2830
- }, Re = zt((e) => {
2836
+ Z && !wt(e) && (e.preventDefault(), _e(t * Bt(J.current, me)));
2837
+ }, Re = Vt((e) => {
2831
2838
  De(e.value);
2832
2839
  }), ze = (e) => ({
2833
2840
  isSelected: de.has(e.value),
2834
- isDisabled: Ii(e.value, Y, de, p, h),
2835
- className: Fi
2836
- }), Be = f((e, t, n) => /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(Ni, {
2841
+ isDisabled: Ri(e.value, Y, de, p, h),
2842
+ className: Li
2843
+ }), Be = f((e, t, n) => /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(Fi, {
2837
2844
  isSelected: t,
2838
2845
  unstyled: D,
2839
2846
  radius: E
@@ -2854,7 +2861,7 @@ function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label
2854
2861
  q.current && !q.current.contains(e.target) && $();
2855
2862
  };
2856
2863
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2857
- }, [Z, $]), /* @__PURE__ */ w(xt, {
2864
+ }, [Z, $]), /* @__PURE__ */ w(Ct, {
2858
2865
  fieldId: U,
2859
2866
  errorId: G,
2860
2867
  descriptionId: ee,
@@ -2894,7 +2901,7 @@ function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label
2894
2901
  onClick: je,
2895
2902
  onKeyDown: Ve,
2896
2903
  className: e("w-full flex flex-wrap items-center gap-1 text-left disabled:opacity-50 disabled:cursor-not-allowed", !D && [
2897
- We,
2904
+ Ke,
2898
2905
  z[E],
2899
2906
  "pl-3 pr-8 py-2 text-sm min-h-10"
2900
2907
  ], !D && o && e("border-red-500 dark:border-red-400", "focus:ring-red-500"), A),
@@ -2902,10 +2909,10 @@ function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label
2902
2909
  className: e(!D && "text-gray-500 dark:text-gray-400"),
2903
2910
  children: s
2904
2911
  }) : /* @__PURE__ */ T(C, { children: [Ce.map((t) => /* @__PURE__ */ w("span", {
2905
- className: e(!D && Bi),
2912
+ className: e(!D && Hi),
2906
2913
  children: t.label
2907
2914
  }, t.value)), we > 0 && /* @__PURE__ */ w("span", {
2908
- className: e(!D && Bi),
2915
+ className: e(!D && Hi),
2909
2916
  children: (_ ?? H.overflowCount)(we)
2910
2917
  })] })
2911
2918
  }),
@@ -2945,7 +2952,7 @@ function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label
2945
2952
  onChange: Me,
2946
2953
  onKeyDown: Ve,
2947
2954
  placeholder: c ?? H.search,
2948
- "aria-label": zi(r, a, c ?? H.search),
2955
+ "aria-label": Vi(r, a, c ?? H.search),
2949
2956
  "aria-controls": ne,
2950
2957
  "aria-activedescendant": he,
2951
2958
  "aria-describedby": p === void 0 ? void 0 : K,
@@ -2961,12 +2968,12 @@ function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label
2961
2968
  className: e("px-3 py-1 text-xs", !D && ["border-b", "border-gray-100 dark:border-gray-800"], !D && "text-gray-500 dark:text-gray-400"),
2962
2969
  children: (S ?? H.maxSelectedHint)(p)
2963
2970
  }),
2964
- /* @__PURE__ */ w($t, {
2971
+ /* @__PURE__ */ w(tn, {
2965
2972
  ref: J,
2966
2973
  id: ne,
2967
2974
  options: pe,
2968
2975
  activeIndex: me,
2969
- isWindowed: N !== "wrap" && kt(t.length),
2976
+ isWindowed: N !== "wrap" && jt(t.length),
2970
2977
  labelOverflow: N,
2971
2978
  noResultsText: l ?? H.noResults,
2972
2979
  "aria-labelledby": r && !a ? te : void 0,
@@ -2996,11 +3003,11 @@ function Vi({ options: t, filterOption: n, label: r, description: i, "aria-label
2996
3003
  });
2997
3004
  }
2998
3005
  // src/components/popover/popover_surface.tsx
2999
- function Hi({ panelRef: t, setFloating: n, floatingStyles: r, isVisible: i, isPositioned: a, radius: o, unstyled: s, panelClassName: c, id: l, ariaLabel: u, ariaLabelledBy: d, initialFocusRef: f, onTabOut: p, portalTarget: h, children: g }) {
3006
+ function Wi({ panelRef: t, setFloating: n, floatingStyles: r, isVisible: i, isPositioned: a, radius: o, unstyled: s, panelClassName: c, id: l, ariaLabel: u, ariaLabelledBy: d, initialFocusRef: f, onTabOut: p, portalTarget: h, children: g }) {
3000
3007
  return m(() => {
3001
3008
  if (!i || !a) return;
3002
3009
  let e = t.current;
3003
- e && (f?.current ?? ur(e)[0] ?? e).focus();
3010
+ e && (f?.current ?? fr(e)[0] ?? e).focus();
3004
3011
  }, [
3005
3012
  i,
3006
3013
  a,
@@ -3021,7 +3028,7 @@ function Hi({ panelRef: t, setFloating: n, floatingStyles: r, isVisible: i, isPo
3021
3028
  onKeyDown: (e) => {
3022
3029
  let n = t.current;
3023
3030
  if (e.key !== "Tab" || !n) return;
3024
- let r = ur(n), i = e.shiftKey ? r[0] : r.at(-1);
3031
+ let r = fr(n), i = e.shiftKey ? r[0] : r.at(-1);
3025
3032
  document.activeElement === (i ?? n) && (e.preventDefault(), p());
3026
3033
  },
3027
3034
  className: e("w-max ms-floating-panel-scroll", !s && [
@@ -3037,8 +3044,8 @@ function Hi({ panelRef: t, setFloating: n, floatingStyles: r, isVisible: i, isPo
3037
3044
  }), h);
3038
3045
  }
3039
3046
  // src/components/popover/use_outside_pointer_down.ts
3040
- function Ui(e, t, n) {
3041
- let r = zt(n);
3047
+ function Gi(e, t, n) {
3048
+ let r = Vt(n);
3042
3049
  m(() => {
3043
3050
  if (!e) return;
3044
3051
  let n = (e) => {
@@ -3053,8 +3060,8 @@ function Ui(e, t, n) {
3053
3060
  ]);
3054
3061
  }
3055
3062
  // src/components/popover/use_popover_state.ts
3056
- function Wi({ isOpen: e, defaultOpen: t, onOpenChange: n }) {
3057
- let [r, i] = rt(e, t), a = y(r), o = y(void 0), s = zt((e, t) => n?.(e, t));
3063
+ function Ki({ isOpen: e, defaultOpen: t, onOpenChange: n }) {
3064
+ let [r, i] = at(e, t), a = y(r), o = y(void 0), s = Vt((e, t) => n?.(e, t));
3058
3065
  return _(() => {
3059
3066
  a.current = r;
3060
3067
  }), {
@@ -3067,30 +3074,30 @@ function Wi({ isOpen: e, defaultOpen: t, onOpenChange: n }) {
3067
3074
  };
3068
3075
  }
3069
3076
  // src/components/popover/popover.tsx
3070
- var Gi = 4;
3071
- function Ki(e, t) {
3077
+ var qi = 4;
3078
+ function Ji(e, t) {
3072
3079
  return t === "center" ? e : `${e}-${t}`;
3073
3080
  }
3074
- function qi({ trigger: t, children: o, "aria-label": l, "aria-labelledby": d, isOpen: p, defaultOpen: h = !1, onOpenChange: _, side: x = "bottom", align: S = "start", initialFocusRef: C, radius: E = "md", unstyled: D = !1, className: O, panelClassName: k, disabled: A = !1, ref: j }) {
3075
- ct("Popover", !!(l ?? d));
3076
- let M = y(null), N = y(null), [P, F] = b(null), { isOpen: I, setOpen: L } = Wi({
3081
+ function Yi({ trigger: t, children: o, "aria-label": l, "aria-labelledby": d, isOpen: p, defaultOpen: h = !1, onOpenChange: _, side: x = "bottom", align: S = "start", initialFocusRef: C, radius: E = "md", unstyled: D = !1, className: O, panelClassName: k, disabled: A = !1, ref: j }) {
3082
+ ut("Popover", !!(l ?? d));
3083
+ let M = y(null), N = y(null), [P, F] = b(null), { isOpen: I, setOpen: L } = Ki({
3077
3084
  isOpen: p,
3078
3085
  defaultOpen: h,
3079
3086
  onOpenChange: _
3080
3087
  }), { isMounted: R, isVisible: z, setIsVisible: B, open: V, close: H } = te(), { refs: U, floatingStyles: W, isPositioned: G } = s({
3081
- placement: Ki(x, S),
3088
+ placement: Ji(x, S),
3082
3089
  strategy: "fixed",
3083
3090
  open: R,
3084
3091
  whileElementsMounted: n,
3085
3092
  middleware: [
3086
- i(Gi),
3093
+ i(qi),
3087
3094
  r(),
3088
3095
  a({ padding: 8 }),
3089
- kn()
3096
+ jn()
3090
3097
  ]
3091
3098
  });
3092
3099
  ne(R, G, B);
3093
- let ee = zt((e) => {
3100
+ let ee = Vt((e) => {
3094
3101
  e ? V(G) : H();
3095
3102
  });
3096
3103
  m(() => {
@@ -3106,7 +3113,7 @@ function qi({ trigger: t, children: o, "aria-label": l, "aria-labelledby": d, is
3106
3113
  }, [q]), J = f((e) => {
3107
3114
  L(!1, { reason: e }), q();
3108
3115
  }, [L, q]), Y = f(() => J("focus-out"), [J]);
3109
- Ui(I, ie, () => {
3116
+ Gi(I, ie, () => {
3110
3117
  L(!1, { reason: "outside-pointer" }), window.setTimeout(oe, 0);
3111
3118
  }), m(() => {
3112
3119
  A && I && L(!1, { reason: "disabled" });
@@ -3121,7 +3128,7 @@ function qi({ trigger: t, children: o, "aria-label": l, "aria-labelledby": d, is
3121
3128
  let t = e.relatedTarget;
3122
3129
  I && t instanceof Node && (M.current?.contains(t) || N.current?.contains(t) || L(!1, { reason: "focus-out" }));
3123
3130
  }, X = {
3124
- onClick: zt((e) => {
3131
+ onClick: Vt((e) => {
3125
3132
  A || (I ? J("trigger") : L(!0, { reason: "trigger" })), u(t) && t.props.onClick?.(e);
3126
3133
  }),
3127
3134
  "aria-haspopup": "dialog",
@@ -3133,7 +3140,7 @@ function qi({ trigger: t, children: o, "aria-label": l, "aria-labelledby": d, is
3133
3140
  className: e("inline-flex", O),
3134
3141
  onKeyDown: se,
3135
3142
  onBlur: ce,
3136
- children: [Z, R && /* @__PURE__ */ w(Hi, {
3143
+ children: [Z, R && /* @__PURE__ */ w(Wi, {
3137
3144
  panelRef: N,
3138
3145
  setFloating: U.setFloating,
3139
3146
  floatingStyles: W,
@@ -3147,15 +3154,15 @@ function qi({ trigger: t, children: o, "aria-label": l, "aria-labelledby": d, is
3147
3154
  ariaLabelledBy: d,
3148
3155
  initialFocusRef: C,
3149
3156
  onTabOut: Y,
3150
- portalTarget: Dn(P),
3157
+ portalTarget: kn(P),
3151
3158
  children: o
3152
3159
  })]
3153
3160
  });
3154
3161
  }
3155
3162
  // src/components/radio_options/radio_option_row.tsx
3156
- function Ji({ option: t, optionId: n, descriptionId: r, name: i, orientation: a, isSelected: o, isDisabled: s, isFirstOption: c, required: l, error: u, radius: d, unstyled: f, className: p, onSelect: m }) {
3163
+ function Xi({ option: t, optionId: n, descriptionId: r, name: i, orientation: a, isSelected: o, isDisabled: s, isFirstOption: c, required: l, error: u, radius: d, unstyled: f, className: p, onSelect: m }) {
3157
3164
  let h = !!u;
3158
- return /* @__PURE__ */ w(ht, {
3165
+ return /* @__PURE__ */ w(_t, {
3159
3166
  item: t,
3160
3167
  htmlFor: n,
3161
3168
  descriptionId: r,
@@ -3179,7 +3186,7 @@ function Ji({ option: t, optionId: n, descriptionId: r, name: i, orientation: a,
3179
3186
  className: "sr-only"
3180
3187
  }),
3181
3188
  indicator: /* @__PURE__ */ w("span", {
3182
- className: e("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 transition-colors duration-150", tt({
3189
+ className: e("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 transition-colors duration-150", rt({
3183
3190
  isSelected: o,
3184
3191
  isError: h
3185
3192
  })),
@@ -3189,8 +3196,8 @@ function Ji({ option: t, optionId: n, descriptionId: r, name: i, orientation: a,
3189
3196
  });
3190
3197
  }
3191
3198
  // src/components/radio_options/radio_options.tsx
3192
- function Yi({ options: t, orientation: n = "vertical", value: r, defaultValue: i, onChange: a, name: o, label: s, error: c, required: l, disabled: u, radius: d = "lg", unstyled: f = !1, className: p, wrapperClassName: m, id: h, "aria-describedby": g, ..._ }) {
3193
- let { fieldId: v, errorId: y } = it(h), b = o ?? v, [x, S] = rt(r, i ?? ""), C = t.map((e) => typeof e == "string" ? {
3199
+ function Zi({ options: t, orientation: n = "vertical", value: r, defaultValue: i, onChange: a, name: o, label: s, error: c, required: l, disabled: u, radius: d = "lg", unstyled: f = !1, className: p, wrapperClassName: m, id: h, "aria-describedby": g, ..._ }) {
3200
+ let { fieldId: v, errorId: y } = ot(h), b = o ?? v, [x, S] = at(r, i ?? ""), C = t.map((e) => typeof e == "string" ? {
3194
3201
  value: e,
3195
3202
  label: e
3196
3203
  } : e), E = (e) => {
@@ -3206,11 +3213,11 @@ function Yi({ options: t, orientation: n = "vertical", value: r, defaultValue: i
3206
3213
  children: [
3207
3214
  s && /* @__PURE__ */ T("legend", {
3208
3215
  className: e("text-sm font-medium text-gray-700 dark:text-gray-300", "mb-2"),
3209
- children: [s, l && /* @__PURE__ */ w(nt, {})]
3216
+ children: [s, l && /* @__PURE__ */ w(it, {})]
3210
3217
  }),
3211
3218
  /* @__PURE__ */ w("div", {
3212
3219
  className: e(n === "horizontal" ? "flex flex-row gap-2" : "flex flex-col gap-2"),
3213
- children: C.map((e, t) => /* @__PURE__ */ w(Ji, {
3220
+ children: C.map((e, t) => /* @__PURE__ */ w(Xi, {
3214
3221
  option: e,
3215
3222
  optionId: `${v}-${t}`,
3216
3223
  descriptionId: `${v}-${t}-desc`,
@@ -3227,7 +3234,7 @@ function Yi({ options: t, orientation: n = "vertical", value: r, defaultValue: i
3227
3234
  onSelect: E
3228
3235
  }, e.value))
3229
3236
  }),
3230
- /* @__PURE__ */ w($e, {
3237
+ /* @__PURE__ */ w(tt, {
3231
3238
  id: y,
3232
3239
  error: c,
3233
3240
  className: "mt-2"
@@ -3236,9 +3243,9 @@ function Yi({ options: t, orientation: n = "vertical", value: r, defaultValue: i
3236
3243
  });
3237
3244
  }
3238
3245
  // src/components/select/select.tsx
3239
- function Xi({ options: t, label: n, description: r, error: i, placeholder: a, radius: o = "md", unstyled: s = !1, className: c, wrapperClassName: l, value: u, defaultValue: d, onChange: f, id: p, "aria-describedby": m, "aria-label": h, ...g }) {
3240
- let { fieldId: _, errorId: v, descriptionId: y, labelId: b } = it(p);
3241
- return /* @__PURE__ */ w(xt, {
3246
+ function Qi({ options: t, label: n, description: r, error: i, placeholder: a, radius: o = "md", unstyled: s = !1, className: c, wrapperClassName: l, value: u, defaultValue: d, onChange: f, id: p, "aria-describedby": m, "aria-label": h, ...g }) {
3247
+ let { fieldId: _, errorId: v, descriptionId: y, labelId: b } = ot(p);
3248
+ return /* @__PURE__ */ w(Ct, {
3242
3249
  fieldId: _,
3243
3250
  errorId: v,
3244
3251
  descriptionId: y,
@@ -3250,7 +3257,7 @@ function Xi({ options: t, label: n, description: r, error: i, placeholder: a, ra
3250
3257
  children: /* @__PURE__ */ T("select", {
3251
3258
  id: _,
3252
3259
  className: e("w-full disabled:opacity-50 disabled:cursor-not-allowed", !s && [
3253
- We,
3260
+ Ke,
3254
3261
  z[o],
3255
3262
  "pl-3 pr-8 py-2 text-sm appearance-none bg-[length:1rem_1rem] bg-[position:right_0.5rem_center] bg-no-repeat",
3256
3263
  "bg-[url(\"data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e\")]"
@@ -3259,7 +3266,7 @@ function Xi({ options: t, label: n, description: r, error: i, placeholder: a, ra
3259
3266
  onChange: f,
3260
3267
  "aria-invalid": !!i,
3261
3268
  "aria-label": h,
3262
- "aria-labelledby": en(n, b, h),
3269
+ "aria-labelledby": nn(n, b, h),
3263
3270
  "aria-describedby": W(m, !!r && y, i && v),
3264
3271
  ...g,
3265
3272
  children: [a !== void 0 && /* @__PURE__ */ w("option", {
@@ -3272,19 +3279,19 @@ function Xi({ options: t, label: n, description: r, error: i, placeholder: a, ra
3272
3279
  })
3273
3280
  });
3274
3281
  }
3275
- var Zi = "!rounded-l-none border-l", Qi = {
3282
+ var $i = "!rounded-l-none border-l", ea = {
3276
3283
  solid: "!border-l-white/40",
3277
3284
  outline: "!border-l-0",
3278
3285
  ghost: "!border-l-current/25",
3279
3286
  subtle: "!border-l-current/25"
3280
- }, $i = "!border-l-gray-400";
3281
- function ea(e, t) {
3282
- return [Zi, e === "solid" && t === "neutral" ? $i : Qi[e]];
3287
+ }, ta = "!border-l-gray-400";
3288
+ function na(e, t) {
3289
+ return [$i, e === "solid" && t === "neutral" ? ta : ea[e]];
3283
3290
  }
3284
3291
  // src/components/split_button/split_button.tsx
3285
- var ta = "i-mdi-chevron-down";
3286
- function na(t) {
3287
- let { children: n, onClick: r, menu: i, menuLabel: a, menuIcon: o = ta, menuAlign: s = "end", startIcon: c, size: l = "md", loading: u = !1, disabled: d = !1, "aria-label": f, "aria-labelledby": p, className: m, ref: h, unstyled: g = !1, variant: _ = "solid", color: v = "primary", radius: y = "md" } = t, b = g ? { unstyled: !0 } : {
3292
+ var ra = "i-mdi-chevron-down";
3293
+ function ia(t) {
3294
+ let { children: n, onClick: r, menu: i, menuLabel: a, menuIcon: o = ra, menuAlign: s = "end", startIcon: c, size: l = "md", loading: u = !1, disabled: d = !1, "aria-label": f, "aria-labelledby": p, className: m, ref: h, unstyled: g = !1, variant: _ = "solid", color: v = "primary", radius: y = "md" } = t, b = g ? { unstyled: !0 } : {
3288
3295
  variant: _,
3289
3296
  color: v,
3290
3297
  radius: y
@@ -3295,7 +3302,7 @@ function na(t) {
3295
3302
  size: l,
3296
3303
  disabled: d,
3297
3304
  "aria-disabled": u && !d || void 0,
3298
- className: e(!g && ["relative focus-visible:z-10", ea(_, v)]),
3305
+ className: e(!g && ["relative focus-visible:z-10", na(_, v)]),
3299
3306
  ...b
3300
3307
  });
3301
3308
  return /* @__PURE__ */ T("div", {
@@ -3313,7 +3320,7 @@ function na(t) {
3313
3320
  className: e(!g && ["relative focus-visible:z-10", "!rounded-r-none"]),
3314
3321
  ...b,
3315
3322
  children: n
3316
- }), /* @__PURE__ */ w($r, {
3323
+ }), /* @__PURE__ */ w(ti, {
3317
3324
  trigger: x,
3318
3325
  align: s,
3319
3326
  radius: y,
@@ -3323,28 +3330,28 @@ function na(t) {
3323
3330
  });
3324
3331
  }
3325
3332
  // src/components/spinner/spinner.tsx
3326
- var ra = 0, ia = "inline-flex items-center gap-2", aa = {
3333
+ var aa = 0, oa = "inline-flex items-center gap-2", sa = {
3327
3334
  xs: "text-xs",
3328
3335
  sm: "text-sm",
3329
3336
  md: "text-sm",
3330
3337
  lg: "text-base"
3331
- }, oa = {
3338
+ }, ca = {
3332
3339
  xs: "w-3.5 h-3.5",
3333
3340
  sm: "w-4 h-4",
3334
3341
  md: "w-5 h-5",
3335
3342
  lg: "w-6 h-6"
3336
3343
  };
3337
- function sa(t) {
3344
+ function la(t) {
3338
3345
  let { size: n = "md", label: r, unstyled: i = !1, className: a, iconClassName: o, labelClassName: s, ...c } = t, l = Q(), [u, d] = b(!1);
3339
3346
  m(() => {
3340
- let e = setTimeout(() => d(!0), ra);
3347
+ let e = setTimeout(() => d(!0), aa);
3341
3348
  return () => clearTimeout(e);
3342
3349
  }, []);
3343
- let f = r ?? l.loading, p = e(!i && oa[n], o);
3350
+ let f = r ?? l.loading, p = e(!i && ca[n], o);
3344
3351
  return /* @__PURE__ */ T("span", {
3345
3352
  role: "status",
3346
3353
  ...c,
3347
- className: e(!i && [ia, aa[n]], a),
3354
+ className: e(!i && [oa, sa[n]], a),
3348
3355
  children: [
3349
3356
  /* @__PURE__ */ w("span", {
3350
3357
  className: e("i-svg-spinners-3-dots-fade ms-spinner-animated", p),
@@ -3362,11 +3369,11 @@ function sa(t) {
3362
3369
  });
3363
3370
  }
3364
3371
  // src/components/switch/switch.tsx
3365
- var ca = "absolute -inset-0.5 m-0 h-6 w-11 appearance-none opacity-0";
3366
- function la(t, n) {
3367
- return t ? "sr-only" : e(ca, n ? "cursor-not-allowed" : "cursor-pointer");
3372
+ var ua = "absolute -inset-0.5 m-0 h-6 w-11 appearance-none opacity-0";
3373
+ function da(t, n) {
3374
+ return t ? "sr-only" : e(ua, n ? "cursor-not-allowed" : "cursor-pointer");
3368
3375
  }
3369
- function ua({ htmlFor: e, className: t, children: n }) {
3376
+ function fa({ htmlFor: e, className: t, children: n }) {
3370
3377
  return e === void 0 ? /* @__PURE__ */ w("div", {
3371
3378
  className: t,
3372
3379
  children: n
@@ -3376,14 +3383,14 @@ function ua({ htmlFor: e, className: t, children: n }) {
3376
3383
  children: n
3377
3384
  });
3378
3385
  }
3379
- function da({ label: t, description: n, error: r, unstyled: i = !1, fullWidth: a = !1, className: o, wrapperClassName: s, checked: c, defaultChecked: l = !1, onChange: u, id: d, "aria-describedby": f, "aria-label": p, "aria-labelledby": m, ref: h, ...g }) {
3380
- let { fieldId: _, errorId: b, descriptionId: x } = it(d), [S, E] = rt(c, l), D = y(null), O = !!t, k = W(f, !!n && x, r && b);
3381
- lt("Switch", D, !!t || !!p?.trim() || !!m?.trim());
3386
+ function pa({ label: t, description: n, error: r, unstyled: i = !1, fullWidth: a = !1, className: o, wrapperClassName: s, checked: c, defaultChecked: l = !1, onChange: u, id: d, "aria-describedby": f, "aria-label": p, "aria-labelledby": m, ref: h, ...g }) {
3387
+ let { fieldId: _, errorId: b, descriptionId: x } = ot(d), [S, E] = at(c, l), D = y(null), O = !!t, k = W(f, !!n && x, r && b);
3388
+ dt("Switch", D, !!t || !!p?.trim() || !!m?.trim());
3382
3389
  let M = v(() => K(D, h), [h]);
3383
3390
  return /* @__PURE__ */ T("div", {
3384
3391
  className: e(a ? "w-full" : "w-fit", s),
3385
3392
  children: [
3386
- /* @__PURE__ */ T(ua, {
3393
+ /* @__PURE__ */ T(fa, {
3387
3394
  htmlFor: O ? _ : void 0,
3388
3395
  className: e("flex items-center gap-3 cursor-pointer", g.disabled && "cursor-not-allowed opacity-50"),
3389
3396
  children: [/* @__PURE__ */ T("span", {
@@ -3397,7 +3404,7 @@ function da({ label: t, description: n, error: r, unstyled: i = !1, fullWidth: a
3397
3404
  role: "switch",
3398
3405
  ref: M,
3399
3406
  id: _,
3400
- className: la(O, g.disabled === !0),
3407
+ className: da(O, g.disabled === !0),
3401
3408
  checked: S,
3402
3409
  onChange: (e) => {
3403
3410
  E(e.target.checked), u?.(e);
@@ -3413,15 +3420,15 @@ function da({ label: t, description: n, error: r, unstyled: i = !1, fullWidth: a
3413
3420
  })]
3414
3421
  }), t && /* @__PURE__ */ w(C, { children: typeof t == "string" ? /* @__PURE__ */ T("span", {
3415
3422
  className: e("text-sm font-medium text-gray-700 dark:text-gray-300", "select-none"),
3416
- children: [t, g.required && /* @__PURE__ */ w(nt, {})]
3417
- }) : /* @__PURE__ */ T(C, { children: [t, g.required && /* @__PURE__ */ w(nt, {})] }) })]
3423
+ children: [t, g.required && /* @__PURE__ */ w(it, {})]
3424
+ }) : /* @__PURE__ */ T(C, { children: [t, g.required && /* @__PURE__ */ w(it, {})] }) })]
3418
3425
  }),
3419
- /* @__PURE__ */ w(Xe, {
3426
+ /* @__PURE__ */ w(Qe, {
3420
3427
  id: x,
3421
3428
  description: n,
3422
3429
  className: "mt-1 ml-14"
3423
3430
  }),
3424
- /* @__PURE__ */ w($e, {
3431
+ /* @__PURE__ */ w(tt, {
3425
3432
  id: b,
3426
3433
  error: r,
3427
3434
  className: "mt-1 ml-14"
@@ -3430,11 +3437,11 @@ function da({ label: t, description: n, error: r, unstyled: i = !1, fullWidth: a
3430
3437
  });
3431
3438
  }
3432
3439
  // src/components/tabs/tabs_styles.ts
3433
- var fa = {
3440
+ var ma = {
3434
3441
  list: "gap-1 p-1 bg-gray-100 dark:bg-gray-800/50",
3435
3442
  tab: "",
3436
3443
  indicator: `absolute inset-0 ${_e} border border-gray-200 dark:border-gray-700`
3437
- }, pa = {
3444
+ }, ha = {
3438
3445
  line: {
3439
3446
  activeTab: "border-transparent text-gray-900 dark:text-gray-100",
3440
3447
  idleTab: "border-transparent text-gray-500 dark:text-gray-400",
@@ -3457,52 +3464,52 @@ var fa = {
3457
3464
  idleTab: "text-gray-600 dark:text-gray-400",
3458
3465
  idleHover: "hover:text-gray-900 dark:hover:text-gray-100",
3459
3466
  byOrientation: {
3460
- horizontal: fa,
3461
- vertical: fa
3467
+ horizontal: ma,
3468
+ vertical: ma
3462
3469
  }
3463
3470
  }
3464
- }, ma = {
3471
+ }, ga = {
3465
3472
  xs: "px-2 py-1 text-xs",
3466
3473
  sm: "px-3 py-1.5 text-sm",
3467
3474
  md: "px-4 py-2.5 text-sm",
3468
3475
  lg: "px-5 py-3 text-base"
3469
- }, ha = {
3476
+ }, _a = {
3470
3477
  xs: "w-3.5 h-3.5",
3471
3478
  sm: "w-4 h-4",
3472
3479
  md: "w-4 h-4",
3473
3480
  lg: "w-5 h-5"
3474
- }, ga = {
3481
+ }, va = {
3475
3482
  horizontal: e(O, F.primary.focusOutline),
3476
3483
  vertical: e("outline-hidden focus-visible:outline-2", "focus-visible:-outline-offset-2", F.primary.focusOutline)
3477
- }, _a = "items-center", va = e("flex-col items-stretch min-h-0 overflow-y-auto overflow-x-hidden", xe), ya = "w-48 shrink-0", ba = "justify-start text-left whitespace-normal", xa = "whitespace-nowrap", Sa = "flex min-h-0", Ca = e("flex-1 min-w-0 min-h-0 overflow-y-auto", xe), wa = "ml-6", Ta = "mt-4";
3478
- function Ea(t, n) {
3479
- return e("w-full", t === "vertical" && Sa, n);
3484
+ }, ya = "items-center", ba = e("flex-col items-stretch min-h-0 overflow-y-auto overflow-x-hidden", xe), xa = "w-48 shrink-0", Sa = "justify-start text-left whitespace-normal", Ca = "whitespace-nowrap", wa = "flex min-h-0", Ta = e("flex-1 min-w-0 min-h-0 overflow-y-auto", xe), Ea = "ml-6", Da = "mt-4";
3485
+ function Oa(t, n) {
3486
+ return e("w-full", t === "vertical" && wa, n);
3480
3487
  }
3481
- function Da(t) {
3488
+ function ka(t) {
3482
3489
  let { orientation: n, unstyled: r, className: i } = t, a = n === "vertical";
3483
- return e(a && Ca, !r && [a ? wa : Ta, ga[n]], i);
3490
+ return e(a && Ta, !r && [a ? Ea : Da, va[n]], i);
3484
3491
  }
3485
- function Oa(t) {
3492
+ function Aa(t) {
3486
3493
  let { variant: n, orientation: r, radius: i, unstyled: a, isFullWidth: o, className: s } = t, c = r === "vertical";
3487
- return e("flex", c ? va : _a, !c && o && "w-full", !a && c && ya, !a && pa[n].byOrientation[r].list, !a && n === "segmented" && z[i], s);
3494
+ return e("flex", c ? ba : ya, !c && o && "w-full", !a && c && xa, !a && ha[n].byOrientation[r].list, !a && n === "segmented" && z[i], s);
3488
3495
  }
3489
- function ka(t) {
3490
- let { variant: n, orientation: r, size: i, radius: a, unstyled: o, isActive: s, isDisabled: c, isFullWidth: l, className: u } = t, d = r === "vertical", f = pa[n];
3491
- return e("relative flex items-center gap-2", d ? ba : xa, !d && l && "flex-1 justify-center", c ? "opacity-50 cursor-not-allowed" : "cursor-pointer", !o && [
3496
+ function ja(t) {
3497
+ let { variant: n, orientation: r, size: i, radius: a, unstyled: o, isActive: s, isDisabled: c, isFullWidth: l, className: u } = t, d = r === "vertical", f = ha[n];
3498
+ return e("relative flex items-center gap-2", d ? Sa : Ca, !d && l && "flex-1 justify-center", c ? "opacity-50 cursor-not-allowed" : "cursor-pointer", !o && [
3492
3499
  "font-medium transition-colors duration-200",
3493
- ma[i],
3500
+ ga[i],
3494
3501
  f.byOrientation[r].tab,
3495
3502
  s ? f.activeTab : [f.idleTab, !c && f.idleHover],
3496
3503
  n === "segmented" && z[a],
3497
- ga[r]
3504
+ va[r]
3498
3505
  ], u);
3499
3506
  }
3500
- function Aa(t) {
3507
+ function Ma(t) {
3501
3508
  let { variant: n, orientation: r, radius: i } = t;
3502
- return e("tabs-indicator pointer-events-none", pa[n].byOrientation[r].indicator, n === "segmented" && z[i]);
3509
+ return e("tabs-indicator pointer-events-none", ha[n].byOrientation[r].indicator, n === "segmented" && z[i]);
3503
3510
  }
3504
3511
  // src/components/tabs/tab_button.tsx
3505
- function ja({ item: t, isActive: n, hasMountedPanel: r, isTabStop: i, isFullWidth: a, variant: o, orientation: s, size: c, radius: l, unstyled: u, tabId: d, panelId: f, onSelect: p, onKeyDown: m, ref: h, indicatorRef: g }) {
3512
+ function Na({ item: t, isActive: n, hasMountedPanel: r, isTabStop: i, isFullWidth: a, variant: o, orientation: s, size: c, radius: l, unstyled: u, tabId: d, panelId: f, onSelect: p, onKeyDown: m, ref: h, indicatorRef: g }) {
3506
3513
  let _ = !!t.disabled;
3507
3514
  return /* @__PURE__ */ T("button", {
3508
3515
  ref: h,
@@ -3516,7 +3523,7 @@ function ja({ item: t, isActive: n, hasMountedPanel: r, isTabStop: i, isFullWidt
3516
3523
  disabled: t.disabled,
3517
3524
  onClick: p,
3518
3525
  onKeyDown: m,
3519
- className: ka({
3526
+ className: ja({
3520
3527
  variant: o,
3521
3528
  orientation: s,
3522
3529
  size: c,
@@ -3530,7 +3537,7 @@ function ja({ item: t, isActive: n, hasMountedPanel: r, isTabStop: i, isFullWidt
3530
3537
  n && !u && /* @__PURE__ */ w("span", {
3531
3538
  ref: g,
3532
3539
  "aria-hidden": "true",
3533
- className: Aa({
3540
+ className: Ma({
3534
3541
  variant: o,
3535
3542
  orientation: s,
3536
3543
  radius: l
@@ -3538,7 +3545,7 @@ function ja({ item: t, isActive: n, hasMountedPanel: r, isTabStop: i, isFullWidt
3538
3545
  }),
3539
3546
  t.icon && /* @__PURE__ */ w("span", {
3540
3547
  "aria-hidden": "true",
3541
- className: e("relative shrink-0", ha[c], t.icon)
3548
+ className: e("relative shrink-0", _a[c], t.icon)
3542
3549
  }),
3543
3550
  /* @__PURE__ */ w("span", {
3544
3551
  className: "relative",
@@ -3549,7 +3556,7 @@ function ja({ item: t, isActive: n, hasMountedPanel: r, isTabStop: i, isFullWidt
3549
3556
  });
3550
3557
  }
3551
3558
  // src/components/tabs/tab_panel.tsx
3552
- function Ma({ panelId: t, tabId: n, isHidden: r, isAnimated: i, className: a, contentKey: o, children: s }) {
3559
+ function Pa({ panelId: t, tabId: n, isHidden: r, isAnimated: i, className: a, contentKey: o, children: s }) {
3553
3560
  return /* @__PURE__ */ w("div", {
3554
3561
  role: "tabpanel",
3555
3562
  id: t,
@@ -3564,11 +3571,11 @@ function Ma({ panelId: t, tabId: n, isHidden: r, isAnimated: i, className: a, co
3564
3571
  });
3565
3572
  }
3566
3573
  // src/components/tabs/use_tab_indicator_transition.ts
3567
- var Na = 200, Pa = "ease-out", Fa = "(prefers-reduced-motion: reduce)";
3568
- function Ia() {
3569
- return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(Fa).matches;
3574
+ var Fa = 200, Ia = "ease-out", La = "(prefers-reduced-motion: reduce)";
3575
+ function Ra() {
3576
+ return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(La).matches;
3570
3577
  }
3571
- function La(e, t, n) {
3578
+ function za(e, t, n) {
3572
3579
  return e === "vertical" ? [{
3573
3580
  transform: `translateY(${t.top - n.top}px)`,
3574
3581
  height: `${t.height}px`
@@ -3583,16 +3590,16 @@ function La(e, t, n) {
3583
3590
  width: `${n.width}px`
3584
3591
  }];
3585
3592
  }
3586
- function Ra(e, t, n, r) {
3587
- e.animate(La(t, n, r), {
3588
- duration: Na,
3589
- easing: Pa
3593
+ function Ba(e, t, n, r) {
3594
+ e.animate(za(t, n, r), {
3595
+ duration: Fa,
3596
+ easing: Ia
3590
3597
  });
3591
3598
  }
3592
- function za(e, t, n) {
3593
- return !e || !t || !n ? !1 : !Ia();
3599
+ function Va(e, t, n) {
3600
+ return !e || !t || !n ? !1 : !Ra();
3594
3601
  }
3595
- function Ba(e) {
3602
+ function Ha(e) {
3596
3603
  let { activeIndex: t, indicatorRef: n, isAnimated: r, orientation: i } = e, a = y(null);
3597
3604
  _(() => {
3598
3605
  let e = n.current;
@@ -3601,7 +3608,7 @@ function Ba(e) {
3601
3608
  return;
3602
3609
  }
3603
3610
  let t = e.getBoundingClientRect(), o = typeof e.animate == "function";
3604
- za(a.current, r, o) && Ra(e, i, a.current, t), a.current = t;
3611
+ Va(a.current, r, o) && Ba(e, i, a.current, t), a.current = t;
3605
3612
  }, [
3606
3613
  t,
3607
3614
  n,
@@ -3610,34 +3617,34 @@ function Ba(e) {
3610
3617
  ]);
3611
3618
  }
3612
3619
  // src/components/tabs/use_tabs_keyboard_navigation.ts
3613
- var Va = {
3620
+ var Ua = {
3614
3621
  Home: () => 0,
3615
3622
  End: (e, t) => t - 1
3616
- }, Ha = (e, t) => (e + 1) % t, Ua = (e, t) => (e - 1 + t) % t, Wa = {
3623
+ }, Wa = (e, t) => (e + 1) % t, Ga = (e, t) => (e - 1 + t) % t, Ka = {
3617
3624
  horizontal: {
3618
- ...Va,
3619
- ArrowRight: Ha,
3620
- ArrowLeft: Ua
3625
+ ...Ua,
3626
+ ArrowRight: Wa,
3627
+ ArrowLeft: Ga
3621
3628
  },
3622
3629
  vertical: {
3623
- ...Va,
3624
- ArrowDown: Ha,
3625
- ArrowUp: Ua
3630
+ ...Ua,
3631
+ ArrowDown: Wa,
3632
+ ArrowUp: Ga
3626
3633
  }
3627
3634
  };
3628
- function Ga(e) {
3635
+ function qa(e) {
3629
3636
  return e.flatMap((e, t) => e.disabled ? [] : [t]);
3630
3637
  }
3631
- function Ka(e, t) {
3638
+ function Ja(e, t) {
3632
3639
  let n = e[t];
3633
- return n && !n.disabled ? t : Ga(e)[0] ?? -1;
3640
+ return n && !n.disabled ? t : qa(e)[0] ?? -1;
3634
3641
  }
3635
- function qa(e) {
3642
+ function Ya(e) {
3636
3643
  let { items: t, activeIndex: n, orientation: r, onNavigate: i } = e;
3637
3644
  return (e) => {
3638
- let a = Wa[r][e.key];
3645
+ let a = Ka[r][e.key];
3639
3646
  if (!a) return;
3640
- let o = Ga(t);
3647
+ let o = qa(t);
3641
3648
  if (o.length === 0) return;
3642
3649
  e.preventDefault();
3643
3650
  let s = a(o.indexOf(n), o.length);
@@ -3645,34 +3652,34 @@ function qa(e) {
3645
3652
  };
3646
3653
  }
3647
3654
  // src/components/tabs/tabs.tsx
3648
- function Ja({ items: e, value: t, defaultIndex: n = 0, variant: r = "line", orientation: i = "horizontal", size: a = "md", radius: o = "md", fullWidth: s = !1, unstyled: c = !1, animated: l = !0, keepMounted: u = !1, "aria-label": d, "aria-labelledby": f, className: p, tabListClassName: m, panelClassName: h, onChange: _ }) {
3649
- let [v, b] = rt(t, n), x = g(), S = y([]), C = y(null), E = (t) => {
3655
+ function Xa({ items: e, value: t, defaultIndex: n = 0, variant: r = "line", orientation: i = "horizontal", size: a = "md", radius: o = "md", fullWidth: s = !1, unstyled: c = !1, animated: l = !0, keepMounted: u = !1, "aria-label": d, "aria-labelledby": f, className: p, tabListClassName: m, panelClassName: h, onChange: _ }) {
3656
+ let [v, b] = at(t, n), x = g(), S = y([]), C = y(null), E = (t) => {
3650
3657
  e[t]?.disabled || (b(t), _?.(t));
3651
3658
  }, D = (e) => {
3652
3659
  S.current[e]?.focus(), E(e);
3653
- }, O = Ka(e, v), k = qa({
3660
+ }, O = Ja(e, v), k = Ya({
3654
3661
  items: e,
3655
3662
  activeIndex: O,
3656
3663
  orientation: i,
3657
3664
  onNavigate: D
3658
- }), A = Da({
3665
+ }), A = ka({
3659
3666
  orientation: i,
3660
3667
  unstyled: c,
3661
3668
  className: h
3662
3669
  }), j = l && !c;
3663
- return Ba({
3670
+ return Ha({
3664
3671
  activeIndex: v,
3665
3672
  indicatorRef: C,
3666
3673
  isAnimated: l,
3667
3674
  orientation: i
3668
3675
  }), /* @__PURE__ */ T("div", {
3669
- className: Ea(i, p),
3676
+ className: Oa(i, p),
3670
3677
  children: [/* @__PURE__ */ w("div", {
3671
3678
  role: "tablist",
3672
3679
  "aria-label": d,
3673
3680
  "aria-labelledby": f,
3674
3681
  "aria-orientation": i,
3675
- className: Oa({
3682
+ className: Aa({
3676
3683
  variant: r,
3677
3684
  orientation: i,
3678
3685
  radius: o,
@@ -3680,7 +3687,7 @@ function Ja({ items: e, value: t, defaultIndex: n = 0, variant: r = "line", orie
3680
3687
  isFullWidth: s,
3681
3688
  className: m
3682
3689
  }),
3683
- children: e.map((e, t) => /* @__PURE__ */ w(ja, {
3690
+ children: e.map((e, t) => /* @__PURE__ */ w(Na, {
3684
3691
  ref: (e) => {
3685
3692
  S.current[t] = e;
3686
3693
  },
@@ -3700,14 +3707,14 @@ function Ja({ items: e, value: t, defaultIndex: n = 0, variant: r = "line", orie
3700
3707
  onSelect: () => E(t),
3701
3708
  onKeyDown: k
3702
3709
  }, e.title))
3703
- }), u ? e.map((e, t) => /* @__PURE__ */ w(Ma, {
3710
+ }), u ? e.map((e, t) => /* @__PURE__ */ w(Pa, {
3704
3711
  panelId: `${x}-panel-${t}`,
3705
3712
  tabId: `${x}-tab-${t}`,
3706
3713
  isHidden: t !== v,
3707
3714
  isAnimated: j,
3708
3715
  className: A,
3709
3716
  children: e.content
3710
- }, e.title)) : /* @__PURE__ */ w(Ma, {
3717
+ }, e.title)) : /* @__PURE__ */ w(Pa, {
3711
3718
  panelId: `${x}-panel-${v}`,
3712
3719
  tabId: `${x}-tab-${v}`,
3713
3720
  isHidden: !1,
@@ -3719,11 +3726,11 @@ function Ja({ items: e, value: t, defaultIndex: n = 0, variant: r = "line", orie
3719
3726
  });
3720
3727
  }
3721
3728
  // src/components/textarea/textarea.tsx
3722
- function Ya({ label: t, description: n, error: r, showCharCount: i = !1, minLength: a, maxLength: o, radius: s = "md", unstyled: c = !1, className: l, wrapperClassName: u, value: d, defaultValue: f, onChange: p, id: m, "aria-describedby": h, "aria-label": g, ..._ }) {
3723
- let { fieldId: v, errorId: y, descriptionId: b, labelId: x, characterCountId: S } = it(m), { length: C, trackLength: E } = qr(d, f), D = i && (a !== void 0 || o !== void 0), O = (e) => {
3729
+ function Za({ label: t, description: n, error: r, showCharCount: i = !1, minLength: a, maxLength: o, radius: s = "md", unstyled: c = !1, className: l, wrapperClassName: u, value: d, defaultValue: f, onChange: p, id: m, "aria-describedby": h, "aria-label": g, ..._ }) {
3730
+ let { fieldId: v, errorId: y, descriptionId: b, labelId: x, characterCountId: S } = ot(m), { length: C, trackLength: E } = Yr(d, f), D = i && (a !== void 0 || o !== void 0), O = (e) => {
3724
3731
  E(e.target.value), p?.(e);
3725
3732
  };
3726
- return /* @__PURE__ */ T(xt, {
3733
+ return /* @__PURE__ */ T(Ct, {
3727
3734
  fieldId: v,
3728
3735
  errorId: y,
3729
3736
  descriptionId: b,
@@ -3735,7 +3742,7 @@ function Ya({ label: t, description: n, error: r, showCharCount: i = !1, minLeng
3735
3742
  children: [/* @__PURE__ */ w("textarea", {
3736
3743
  id: v,
3737
3744
  className: e("w-full min-h-[80px] resize-y disabled:opacity-50 disabled:cursor-not-allowed", !c && [
3738
- We,
3745
+ Ke,
3739
3746
  z[s],
3740
3747
  "px-3 py-2 text-sm"
3741
3748
  ], !c && r && e("border-red-500 dark:border-red-400", "focus:ring-red-500"), l),
@@ -3745,10 +3752,10 @@ function Ya({ label: t, description: n, error: r, showCharCount: i = !1, minLeng
3745
3752
  onChange: O,
3746
3753
  "aria-invalid": !!r,
3747
3754
  "aria-label": g,
3748
- "aria-labelledby": en(t, x, g),
3755
+ "aria-labelledby": nn(t, x, g),
3749
3756
  "aria-describedby": W(h, !!n && b, r && y, D && S),
3750
3757
  ..._
3751
- }), D && /* @__PURE__ */ w(Ve, {
3758
+ }), D && /* @__PURE__ */ w(Ue, {
3752
3759
  id: S,
3753
3760
  current: C,
3754
3761
  min: a,
@@ -3759,7 +3766,7 @@ function Ya({ label: t, description: n, error: r, showCharCount: i = !1, minLeng
3759
3766
  });
3760
3767
  }
3761
3768
  // src/lib/is_webkit_gtk.ts
3762
- var Xa = "AppleWebKit", Za = ["Linux", "X11"], Qa = [
3769
+ var Qa = "AppleWebKit", $a = ["Linux", "X11"], eo = [
3763
3770
  "Chrome",
3764
3771
  "Chromium",
3765
3772
  "Edg",
@@ -3767,12 +3774,12 @@ var Xa = "AppleWebKit", Za = ["Linux", "X11"], Qa = [
3767
3774
  "CriOS",
3768
3775
  "FxiOS"
3769
3776
  ];
3770
- function $a(e) {
3771
- return !e.includes(Xa) || !Za.some((t) => e.includes(t)) ? !1 : !Qa.some((t) => e.includes(t));
3777
+ function to(e) {
3778
+ return !e.includes(Qa) || !$a.some((t) => e.includes(t)) ? !1 : !eo.some((t) => e.includes(t));
3772
3779
  }
3773
3780
  // src/lib/theme_transition.ts
3774
- var eo = 750, to = "ease-in-out";
3775
- async function no({ theme: e, element: t, transitionDuration: n = eo, transitionEasing: r = to, applyThemeCallback: i }) {
3781
+ var no = 750, ro = "ease-in-out";
3782
+ async function io({ theme: e, element: t, transitionDuration: n = no, transitionEasing: r = ro, applyThemeCallback: i }) {
3776
3783
  if (!document.startViewTransition || globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches) {
3777
3784
  i(e);
3778
3785
  return;
@@ -3786,81 +3793,81 @@ async function no({ theme: e, element: t, transitionDuration: n = eo, transition
3786
3793
  pseudoElement: "::view-transition-new(root)"
3787
3794
  });
3788
3795
  }
3789
- function ro(e) {
3796
+ function ao(e) {
3790
3797
  return e === "light" ? "dark" : e === "dark" ? "system" : "light";
3791
3798
  }
3792
3799
  // src/stores/theme_store/theme_storage_key.ts
3793
- var io = "theme";
3800
+ var oo = "theme";
3794
3801
  // src/stores/theme_store/theme_store.ts
3795
- function ao(e) {
3802
+ function so(e) {
3796
3803
  return e === "light" || e === "dark" || e === "system";
3797
3804
  }
3798
- function oo() {
3805
+ function co() {
3799
3806
  return globalThis.window !== void 0 && globalThis.document !== void 0;
3800
3807
  }
3801
- var so = "meta[name=\"theme-color\"][data-light][data-dark]";
3802
- function co(e) {
3808
+ var lo = "meta[name=\"theme-color\"][data-light][data-dark]";
3809
+ function uo(e) {
3803
3810
  let t = e ? "data-dark" : "data-light";
3804
- for (let e of document.querySelectorAll(so)) e.setAttribute("content", e.getAttribute(t) ?? "");
3811
+ for (let e of document.querySelectorAll(lo)) e.setAttribute("content", e.getAttribute(t) ?? "");
3805
3812
  }
3806
- function lo(e) {
3813
+ function fo(e) {
3807
3814
  let t = window.matchMedia("(prefers-color-scheme: dark)").matches, n = e === "dark" || e === "system" && t;
3808
- document.documentElement.classList.toggle("dark", n), co(n);
3815
+ document.documentElement.classList.toggle("dark", n), uo(n);
3809
3816
  }
3810
- function uo() {
3811
- if (!oo()) return "system";
3817
+ function po() {
3818
+ if (!co()) return "system";
3812
3819
  try {
3813
- let e = globalThis.localStorage.getItem(io);
3814
- return ao(e) ? e : "system";
3820
+ let e = globalThis.localStorage.getItem(oo);
3821
+ return so(e) ? e : "system";
3815
3822
  } catch {
3816
3823
  return "system";
3817
3824
  }
3818
3825
  }
3819
- function fo(e) {
3820
- if (oo()) try {
3821
- globalThis.localStorage.setItem(io, e);
3826
+ function mo(e) {
3827
+ if (co()) try {
3828
+ globalThis.localStorage.setItem(oo, e);
3822
3829
  } catch {
3823
3830
  return;
3824
3831
  }
3825
3832
  }
3826
- var po = uo();
3827
- oo() && lo(po);
3828
- var mo = E((e) => ({
3829
- theme: po,
3833
+ var ho = po();
3834
+ co() && fo(ho);
3835
+ var go = E((e) => ({
3836
+ theme: ho,
3830
3837
  setTheme: (t) => {
3831
- lo(t), fo(t), e({ theme: t });
3838
+ fo(t), mo(t), e({ theme: t });
3832
3839
  }
3833
3840
  }));
3834
- oo() && (globalThis.addEventListener("storage", (e) => {
3841
+ co() && (globalThis.addEventListener("storage", (e) => {
3835
3842
  if (e.key !== "theme") return;
3836
- let t = ao(e.newValue) ? e.newValue : "system";
3837
- lo(t), mo.setState({ theme: t });
3843
+ let t = so(e.newValue) ? e.newValue : "system";
3844
+ fo(t), go.setState({ theme: t });
3838
3845
  }), globalThis.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => {
3839
- mo.getState().theme === "system" && lo("system");
3846
+ go.getState().theme === "system" && fo("system");
3840
3847
  }));
3841
3848
  // src/components/theme_toggle/theme_toggle.tsx
3842
- var ho = {
3849
+ var _o = {
3843
3850
  light: "i-tabler-sun text-yellow-500",
3844
3851
  dark: "i-tabler-moon-stars text-gray-700 dark:text-yellow-500",
3845
3852
  system: "i-tabler-device-desktop text-blue-500"
3846
- }, go = {
3853
+ }, vo = {
3847
3854
  light: "i-tabler-sun",
3848
3855
  dark: "i-tabler-moon-stars",
3849
3856
  system: "i-tabler-device-desktop"
3850
- }, _o = "i-tabler-device-desktop text-gray-400", vo = "i-tabler-device-desktop";
3851
- function yo(e, t, n) {
3857
+ }, yo = "i-tabler-device-desktop text-gray-400", bo = "i-tabler-device-desktop";
3858
+ function xo(e, t, n) {
3852
3859
  return e ? { unstyled: !0 } : {
3853
3860
  radius: t,
3854
3861
  variant: n
3855
3862
  };
3856
3863
  }
3857
- function bo(e, t, n) {
3858
- return n ? t ? go[e] : vo : t ? ho[e] : _o;
3864
+ function So(e, t, n) {
3865
+ return n ? t ? vo[e] : bo : t ? _o[e] : yo;
3859
3866
  }
3860
- function xo({ isTransitionEnabled: e, transitionDuration: t, transitionEasing: n, size: r = "md", unstyled: i = !1, radius: a, variant: o, getAriaLabel: s, tooltip: c }) {
3861
- let l = mo((e) => e.theme), u = mo((e) => e.setTheme), d = Q(), p = yt(), m = y(null), h = f(async () => {
3862
- let r = ro(l), i = m.current, a = e ?? !$a(navigator.userAgent);
3863
- i && a ? await no({
3867
+ function Co({ isTransitionEnabled: e, transitionDuration: t, transitionEasing: n, size: r = "md", unstyled: i = !1, radius: a, variant: o, getAriaLabel: s, tooltip: c }) {
3868
+ let l = go((e) => e.theme), u = go((e) => e.setTheme), d = Q(), p = xt(), m = y(null), h = f(async () => {
3869
+ let r = ao(l), i = m.current, a = e ?? !to(navigator.userAgent);
3870
+ i && a ? await io({
3864
3871
  theme: r,
3865
3872
  element: i,
3866
3873
  transitionDuration: t,
@@ -3873,7 +3880,7 @@ function xo({ isTransitionEnabled: e, transitionDuration: t, transitionEasing: n
3873
3880
  t,
3874
3881
  n,
3875
3882
  u
3876
- ]), g = bo(l, p, i), _ = yo(i, a, o);
3883
+ ]), g = So(l, p, i), _ = xo(i, a, o);
3877
3884
  return /* @__PURE__ */ w(X, {
3878
3885
  ref: m,
3879
3886
  icon: g,
@@ -3887,7 +3894,7 @@ function xo({ isTransitionEnabled: e, transitionDuration: t, transitionEasing: n
3887
3894
  });
3888
3895
  }
3889
3896
  // src/components/toast/toast_focus.ts
3890
- function So(e) {
3897
+ function wo(e) {
3891
3898
  for (let t = e.nextElementSibling; t; t = t.nextElementSibling) {
3892
3899
  if (t.hasAttribute("inert")) continue;
3893
3900
  let e = t.querySelector("button");
@@ -3895,23 +3902,23 @@ function So(e) {
3895
3902
  }
3896
3903
  return null;
3897
3904
  }
3898
- function Co({ toastElement: e, previousFocus: t }) {
3905
+ function To({ toastElement: e, previousFocus: t }) {
3899
3906
  if (!e.contains(document.activeElement)) return;
3900
- let n = So(e);
3907
+ let n = wo(e);
3901
3908
  if (n) return n.focus();
3902
3909
  if (t?.isConnected && !e.contains(t)) return t.focus();
3903
3910
  e.closest("[data-ms-toaster-region]")?.focus();
3904
3911
  }
3905
3912
  // src/components/toast/toast_styles.ts
3906
- var wo = 2 ** 31 - 1, To = 4e3, Eo = 6e3;
3907
- function Do(e) {
3908
- return e === "error" ? Eo : To;
3913
+ var Eo = 2 ** 31 - 1, Do = 4e3, Oo = 6e3;
3914
+ function ko(e) {
3915
+ return e === "error" ? Oo : Do;
3909
3916
  }
3910
- function Oo(e) {
3911
- return e <= 0 || !Number.isFinite(e) || e >= wo;
3917
+ function Ao(e) {
3918
+ return e <= 0 || !Number.isFinite(e) || e >= Eo;
3912
3919
  }
3913
3920
  // src/components/toast/toast_timer_bar.tsx
3914
- function ko({ duration: t, isRunning: n, isStyled: r }) {
3921
+ function jo({ duration: t, isRunning: n, isStyled: r }) {
3915
3922
  let i = {
3916
3923
  animationDuration: `${t}ms`,
3917
3924
  animationFillMode: "forwards",
@@ -3926,7 +3933,7 @@ function ko({ duration: t, isRunning: n, isStyled: r }) {
3926
3933
  });
3927
3934
  }
3928
3935
  // src/components/toast/toaster_item_content.tsx
3929
- function Ao({ tone: t, message: n, description: r, action: i, radius: a, unstyled: o, closeLabel: s, timerDuration: c, isTimerRunning: l, timerKey: u, onAction: d, onDismiss: f }) {
3936
+ function Mo({ tone: t, message: n, description: r, action: i, radius: a, unstyled: o, closeLabel: s, timerDuration: c, isTimerRunning: l, timerKey: u, onAction: d, onDismiss: f }) {
3930
3937
  return /* @__PURE__ */ T("div", {
3931
3938
  className: e("flex items-start gap-3", !o && [
3932
3939
  "relative overflow-hidden px-4 py-3 border text-sm",
@@ -3969,7 +3976,7 @@ function Ao({ tone: t, message: n, description: r, action: i, radius: a, unstyle
3969
3976
  unstyled: o,
3970
3977
  onClick: f
3971
3978
  }),
3972
- c !== null && /* @__PURE__ */ w(ko, {
3979
+ c !== null && /* @__PURE__ */ w(jo, {
3973
3980
  duration: c,
3974
3981
  isRunning: l,
3975
3982
  isStyled: !o
@@ -3978,14 +3985,14 @@ function Ao({ tone: t, message: n, description: r, action: i, radius: a, unstyle
3978
3985
  });
3979
3986
  }
3980
3987
  // src/components/toast/toaster_styles.ts
3981
- var jo = {
3988
+ var No = {
3982
3989
  "top-left": "ms-toaster-top ms-toaster-left",
3983
3990
  "top-center": "ms-toaster-top ms-toaster-center",
3984
3991
  "top-right": "ms-toaster-top ms-toaster-right",
3985
3992
  "bottom-left": "ms-toaster-bottom ms-toaster-left",
3986
3993
  "bottom-center": "ms-toaster-bottom ms-toaster-center",
3987
3994
  "bottom-right": "ms-toaster-bottom ms-toaster-right"
3988
- }, Mo = {
3995
+ }, Po = {
3989
3996
  "top-left": "ms-toaster-item-top-left",
3990
3997
  "top-center": "ms-toaster-item-top-center",
3991
3998
  "top-right": "ms-toaster-item-top-right",
@@ -3994,25 +4001,25 @@ var jo = {
3994
4001
  "bottom-right": "ms-toaster-item-bottom-right"
3995
4002
  };
3996
4003
  // src/components/toast/use_toast_timer.ts
3997
- function No() {
4004
+ function Fo() {
3998
4005
  return document.visibilityState === "hidden";
3999
4006
  }
4000
- var Po = /* @__PURE__ */ new Set();
4001
- function Fo() {
4002
- for (let e of Po) e();
4007
+ var Io = /* @__PURE__ */ new Set();
4008
+ function Lo() {
4009
+ for (let e of Io) e();
4003
4010
  }
4004
- function Io(e) {
4005
- return Po.size === 0 && document.addEventListener("visibilitychange", Fo), Po.add(e), () => {
4006
- Po.delete(e), !(Po.size > 0) && document.removeEventListener("visibilitychange", Fo);
4011
+ function Ro(e) {
4012
+ return Io.size === 0 && document.addEventListener("visibilitychange", Lo), Io.add(e), () => {
4013
+ Io.delete(e), !(Io.size > 0) && document.removeEventListener("visibilitychange", Lo);
4007
4014
  };
4008
4015
  }
4009
- function Lo() {
4016
+ function zo() {
4010
4017
  return !1;
4011
4018
  }
4012
- function Ro({ duration: e, isPaused: t, onElapsed: n, revision: r = 0 }) {
4013
- let i = y(e), a = y(r), [o, s] = b(null), c = x(Io, No, Lo), l = o === r, u = h(n);
4019
+ function Bo({ duration: e, isPaused: t, onElapsed: n, revision: r = 0 }) {
4020
+ let i = y(e), a = y(r), [o, s] = b(null), c = x(Ro, Fo, zo), l = o === r, u = h(n);
4014
4021
  return m(() => {
4015
- if (a.current !== r && (a.current = r, i.current = e), l || t || c || Oo(e)) return;
4022
+ if (a.current !== r && (a.current = r, i.current = e), l || t || c || Ao(e)) return;
4016
4023
  let n = Date.now(), o = setTimeout(() => {
4017
4024
  s(r), u();
4018
4025
  }, i.current);
@@ -4025,26 +4032,26 @@ function Ro({ duration: e, isPaused: t, onElapsed: n, revision: r = 0 }) {
4025
4032
  c,
4026
4033
  r,
4027
4034
  l
4028
- ]), { isRunning: !l && !t && !c && !Oo(e) };
4035
+ ]), { isRunning: !l && !t && !c && !Ao(e) };
4029
4036
  }
4030
- var zo = 5;
4031
- function Bo(e) {
4037
+ var Vo = 5;
4038
+ function Ho(e) {
4032
4039
  return e.filter((e) => !e.isClosing).length;
4033
4040
  }
4034
- function Vo(e) {
4041
+ function Uo(e) {
4035
4042
  let t = e.filter((e) => !e.isClosing && !e.isPinned);
4036
- return t.find((e) => !Oo(e.duration)) ?? t[0];
4043
+ return t.find((e) => !Ao(e.duration)) ?? t[0];
4037
4044
  }
4038
- function Ho(e) {
4045
+ function Wo(e) {
4039
4046
  let t = e;
4040
- for (; Bo(t) > 5;) {
4041
- let e = Vo(t);
4047
+ for (; Ho(t) > 5;) {
4048
+ let e = Uo(t);
4042
4049
  if (!e) return t;
4043
- t = Wo(t, e.id);
4050
+ t = Ko(t, e.id);
4044
4051
  }
4045
4052
  return t;
4046
4053
  }
4047
- function Uo(e, t) {
4054
+ function Go(e, t) {
4048
4055
  let n = e.find((e) => e.id === t.id);
4049
4056
  if (!n) {
4050
4057
  let n = {
@@ -4063,48 +4070,48 @@ function Uo(e, t) {
4063
4070
  };
4064
4071
  return e.map((e) => e.id === t.id ? r : e);
4065
4072
  }
4066
- function Wo(e, t) {
4073
+ function Ko(e, t) {
4067
4074
  let n = (e) => (t === void 0 || e.id === t) && !e.isClosing;
4068
4075
  return e.some(n) ? e.map((e) => n(e) ? {
4069
4076
  ...e,
4070
4077
  isClosing: !0
4071
4078
  } : e) : e;
4072
4079
  }
4073
- function Go(e, t) {
4080
+ function qo(e, t) {
4074
4081
  return e.some((e) => e.id === t) ? e.filter((e) => e.id !== t) : e;
4075
4082
  }
4076
- function Ko(e, t, n) {
4083
+ function Jo(e, t, n) {
4077
4084
  let r = e.find((e) => e.id === t);
4078
4085
  return !r || r.isPinned === n ? e : e.map((e) => e.id === t ? {
4079
4086
  ...e,
4080
4087
  isPinned: n
4081
4088
  } : e);
4082
4089
  }
4083
- function qo(e) {
4084
- let t = e.filter((e) => e.isClosing).length - zo;
4090
+ function Yo(e) {
4091
+ let t = e.filter((e) => e.isClosing).length - Vo;
4085
4092
  return t <= 0 ? e : e.filter((e) => !e.isClosing || t <= 0 || (--t, !1));
4086
4093
  }
4087
4094
  // src/stores/toast_store/toast_store.ts
4088
- function Jo(e, t) {
4095
+ function Xo(e, t) {
4089
4096
  return t === e.entries ? e : {
4090
4097
  ...e,
4091
4098
  entries: t
4092
4099
  };
4093
4100
  }
4094
- var Yo = E((e) => ({
4101
+ var Zo = E((e) => ({
4095
4102
  entries: [],
4096
- showToast: (t) => e((e) => ({ entries: qo(Ho(Uo(e.entries, t))) })),
4097
- dismissToast: (t) => e((e) => Jo(e, Wo(e.entries, t))),
4098
- removeToast: (t) => e((e) => Jo(e, Go(e.entries, t))),
4099
- setToastPinned: (t, n) => e((e) => Jo(e, Ko(e.entries, t, n))),
4103
+ showToast: (t) => e((e) => ({ entries: Yo(Wo(Go(e.entries, t))) })),
4104
+ dismissToast: (t) => e((e) => Xo(e, Ko(e.entries, t))),
4105
+ removeToast: (t) => e((e) => Xo(e, qo(e.entries, t))),
4106
+ setToastPinned: (t, n) => e((e) => Xo(e, Jo(e.entries, t, n))),
4100
4107
  resetToasts: () => e((e) => e.entries.length === 0 ? e : {
4101
4108
  ...e,
4102
4109
  entries: []
4103
4110
  })
4104
4111
  }));
4105
4112
  // src/components/toast/toaster_item.tsx
4106
- function Xo({ entry: t, position: n, toasterRadius: r, toasterUnstyled: i, closeLabel: a, previousFocusRef: o }) {
4107
- let { id: s, message: c, description: l, tone: u, duration: d, action: f, revision: p, isClosing: h } = t, g = t.radius ?? r ?? "lg", v = t.unstyled ?? i ?? !1, x = Yo((e) => e.dismissToast), S = Yo((e) => e.removeToast), C = Yo((e) => e.setToastPinned), T = y(null), [E, D] = b(!1), [O, k] = b(!1), [A, j] = b(!1), { isRunning: M } = Ro({
4113
+ function Qo({ entry: t, position: n, toasterRadius: r, toasterUnstyled: i, closeLabel: a, previousFocusRef: o }) {
4114
+ let { id: s, message: c, description: l, tone: u, duration: d, action: f, revision: p, isClosing: h } = t, g = t.radius ?? r ?? "lg", v = t.unstyled ?? i ?? !1, x = Zo((e) => e.dismissToast), S = Zo((e) => e.removeToast), C = Zo((e) => e.setToastPinned), T = y(null), [E, D] = b(!1), [O, k] = b(!1), [A, j] = b(!1), { isRunning: M } = Bo({
4108
4115
  duration: d,
4109
4116
  isPaused: O || A || h,
4110
4117
  onElapsed: () => x(s),
@@ -4121,7 +4128,7 @@ function Xo({ entry: t, position: n, toasterRadius: r, toasterUnstyled: i, close
4121
4128
  A,
4122
4129
  C
4123
4130
  ]), _(() => {
4124
- h && T.current && Co({
4131
+ h && T.current && To({
4125
4132
  toastElement: T.current,
4126
4133
  previousFocus: o.current
4127
4134
  });
@@ -4144,7 +4151,7 @@ function Xo({ entry: t, position: n, toasterRadius: r, toasterUnstyled: i, close
4144
4151
  e.key !== "Escape" || h || e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || (e.preventDefault(), e.stopPropagation(), x(s));
4145
4152
  }, R = () => x(s), z = () => {
4146
4153
  f?.onClick(), x(s);
4147
- }, V = E && !h, H = Oo(d) ? null : d;
4154
+ }, V = E && !h, H = Ao(d) ? null : d;
4148
4155
  return /* @__PURE__ */ w("li", {
4149
4156
  ref: T,
4150
4157
  "data-ms-toast-id": s,
@@ -4156,14 +4163,14 @@ function Xo({ entry: t, position: n, toasterRadius: r, toasterUnstyled: i, close
4156
4163
  "bg-white dark:bg-gray-900",
4157
4164
  B[g],
4158
4165
  "ms-toaster-item-transition",
4159
- Mo[n]
4166
+ Po[n]
4160
4167
  ]),
4161
4168
  onPointerEnter: P,
4162
4169
  onPointerLeave: F,
4163
4170
  onFocus: I,
4164
4171
  onKeyDown: L,
4165
4172
  onBlur: N,
4166
- children: /* @__PURE__ */ w(Ao, {
4173
+ children: /* @__PURE__ */ w(Mo, {
4167
4174
  tone: u,
4168
4175
  message: c,
4169
4176
  description: l,
@@ -4179,83 +4186,83 @@ function Xo({ entry: t, position: n, toasterRadius: r, toasterUnstyled: i, close
4179
4186
  })
4180
4187
  });
4181
4188
  }
4182
- var Zo = d(Xo), Qo = [], $o = /* @__PURE__ */ new Set(), es = 0;
4183
- function ts() {
4184
- for (let e of $o) e();
4189
+ var $o = d(Qo), es = [], ts = /* @__PURE__ */ new Set(), ns = 0;
4190
+ function rs() {
4191
+ for (let e of ts) e();
4185
4192
  }
4186
- function ns() {
4187
- let e = es;
4193
+ function is() {
4194
+ let e = ns;
4188
4195
  queueMicrotask(() => {
4189
- e === es && Yo.getState().resetToasts();
4196
+ e === ns && Zo.getState().resetToasts();
4190
4197
  });
4191
4198
  }
4192
- function rs(e) {
4193
- return $o.add(e), () => {
4194
- $o.delete(e);
4199
+ function as(e) {
4200
+ return ts.add(e), () => {
4201
+ ts.delete(e);
4195
4202
  };
4196
4203
  }
4197
- function is(e) {
4198
- return Qo[0] === e;
4204
+ function os(e) {
4205
+ return es[0] === e;
4199
4206
  }
4200
- function as(e) {
4201
- return es += 1, Qo.push(e), ts(), () => {
4202
- let t = Qo.indexOf(e);
4203
- t !== -1 && (Qo.splice(t, 1), ts(), Qo.length === 0 && ns());
4207
+ function ss(e) {
4208
+ return ns += 1, es.push(e), rs(), () => {
4209
+ let t = es.indexOf(e);
4210
+ t !== -1 && (es.splice(t, 1), rs(), es.length === 0 && is());
4204
4211
  };
4205
4212
  }
4206
4213
  // src/components/toast/use_is_active_toaster.ts
4207
- var os = "Toaster: another <Toaster /> is already mounted, so this one renders nothing. Mount a single Toaster at the app root.";
4208
- function ss() {
4214
+ var cs = "Toaster: another <Toaster /> is already mounted, so this one renders nothing. Mount a single Toaster at the app root.";
4215
+ function ls() {
4209
4216
  return !1;
4210
4217
  }
4211
- function cs() {
4218
+ function us() {
4212
4219
  let e = g();
4213
4220
  return m(() => {
4214
- let t = as(e);
4215
- return !is(e) && process.env.NODE_ENV !== "production" && console.warn(os), t;
4216
- }, [e]), x(rs, () => is(e), ss);
4221
+ let t = ss(e);
4222
+ return !os(e) && process.env.NODE_ENV !== "production" && console.warn(cs), t;
4223
+ }, [e]), x(as, () => os(e), ls);
4217
4224
  }
4218
4225
  // src/components/toast/toast_announcement.ts
4219
- var ls = ["warning", "danger"];
4220
- function us(e) {
4221
- return ls.some((t) => t === e) ? "assertive" : "polite";
4226
+ var ds = ["danger"];
4227
+ function fs(e) {
4228
+ return ds.some((t) => t === e) ? "assertive" : "polite";
4222
4229
  }
4223
- function ds(e) {
4230
+ function ps(e) {
4224
4231
  return Array.from(document.querySelectorAll(`[data-ms-toast-announcer="${e}"]`));
4225
4232
  }
4226
- function fs(e) {
4233
+ function ms(e) {
4227
4234
  return e.closest("[aria-modal=\"true\"]")?.getAttribute("data-state") === "open";
4228
4235
  }
4229
- function ps(e) {
4236
+ function hs(e) {
4230
4237
  let t = e.querySelector("[data-ms-toast-text]");
4231
4238
  return t ? Array.from(t.children).map((e) => e.textContent ?? "").join(" ").trim() : "";
4232
4239
  }
4233
- function ms(e, t) {
4240
+ function gs(e, t) {
4234
4241
  let n = t[e];
4235
4242
  n && (n.textContent = "");
4236
- for (let t of ds(e)) t.textContent = "";
4243
+ for (let t of ps(e)) t.textContent = "";
4237
4244
  }
4238
- function hs(e, t, n) {
4239
- let r = ds(e).filter(fs).at(-1) ?? n[e];
4245
+ function _s(e, t, n) {
4246
+ let r = ps(e).filter(ms).at(-1) ?? n[e];
4240
4247
  r && (r.textContent = t);
4241
4248
  }
4242
- function gs(e, t) {
4249
+ function vs(e, t) {
4243
4250
  if (e) return Array.from(e.querySelectorAll("[data-ms-toast-id]")).find((e) => e.dataset.msToastId === t);
4244
4251
  }
4245
- function _s(e, t) {
4252
+ function ys(e, t) {
4246
4253
  let n = {
4247
4254
  polite: [],
4248
4255
  assertive: []
4249
4256
  };
4250
4257
  for (let r of t) {
4251
- let t = gs(e, r);
4258
+ let t = vs(e, r);
4252
4259
  if (!t) continue;
4253
- let i = ps(t);
4254
- i && n[us(t.dataset.tone ?? "")].push(i);
4260
+ let i = hs(t);
4261
+ i && n[fs(t.dataset.tone ?? "")].push(i);
4255
4262
  }
4256
4263
  return n;
4257
4264
  }
4258
- function vs({ entries: e, listRef: t, politeRef: n, assertiveRef: r }) {
4265
+ function bs({ entries: e, listRef: t, politeRef: n, assertiveRef: r }) {
4259
4266
  let i = y(/* @__PURE__ */ new Map()), a = y([]), o = y(null);
4260
4267
  m(() => {
4261
4268
  let s = i.current, c = a.current, l = {
@@ -4265,11 +4272,11 @@ function vs({ entries: e, listRef: t, politeRef: n, assertiveRef: r }) {
4265
4272
  s.clear();
4266
4273
  for (let t of e) s.set(t.id, t.revision);
4267
4274
  if (u.length !== 0) {
4268
- for (let e of u) ms(us(e.tone), l), c.push(e.id);
4275
+ for (let e of u) gs(fs(e.tone), l), c.push(e.id);
4269
4276
  o.current === null && (o.current = setTimeout(() => {
4270
4277
  o.current = null;
4271
- let e = _s(t.current, c.splice(0));
4272
- e.polite.length > 0 && hs("polite", e.polite.join(" "), l), e.assertive.length > 0 && hs("assertive", e.assertive.join(" "), l);
4278
+ let e = ys(t.current, c.splice(0));
4279
+ e.polite.length > 0 && _s("polite", e.polite.join(" "), l), e.assertive.length > 0 && _s("assertive", e.assertive.join(" "), l);
4273
4280
  }, 50));
4274
4281
  }
4275
4282
  }, [
@@ -4284,28 +4291,28 @@ function vs({ entries: e, listRef: t, politeRef: n, assertiveRef: r }) {
4284
4291
  };
4285
4292
  }, []);
4286
4293
  }
4287
- function ys(e) {
4294
+ function xs(e) {
4288
4295
  return e.ctrlKey || e.altKey || e.metaKey || e.shiftKey;
4289
4296
  }
4290
- function bs() {
4291
- return Yo.getState().entries.some((e) => !e.isClosing);
4297
+ function Ss() {
4298
+ return Zo.getState().entries.some((e) => !e.isClosing);
4292
4299
  }
4293
- function xs() {
4300
+ function Cs() {
4294
4301
  let { activeElement: e } = document;
4295
4302
  return e instanceof HTMLElement ? e === document.body ? null : e : null;
4296
4303
  }
4297
- function Ss({ regionRef: e, previousFocusRef: t }) {
4304
+ function ws({ regionRef: e, previousFocusRef: t }) {
4298
4305
  m(() => {
4299
4306
  let n = (n) => {
4300
- if (n.key !== "F8" || ys(n) || n.defaultPrevented || !zr.getState().globalHotkeysEnabled) return;
4307
+ if (n.key !== "F8" || xs(n) || n.defaultPrevented || !Vr.getState().globalHotkeysEnabled) return;
4301
4308
  let r = e.current;
4302
- if (r && bs()) {
4309
+ if (r && Ss()) {
4303
4310
  if (r.contains(document.activeElement)) {
4304
4311
  let e = t.current;
4305
4312
  if (!e?.isConnected) return;
4306
4313
  e.focus();
4307
4314
  } else {
4308
- let e = xs();
4315
+ let e = Cs();
4309
4316
  r.focus(), t.current = e;
4310
4317
  }
4311
4318
  n.preventDefault();
@@ -4315,12 +4322,12 @@ function Ss({ regionRef: e, previousFocusRef: t }) {
4315
4322
  }, [e, t]);
4316
4323
  }
4317
4324
  // src/components/toast/toaster.tsx
4318
- function Cs({ position: t = "bottom-right", radius: n, unstyled: r }) {
4319
- let i = Q(), a = Yo((e) => e.entries), o = y(null), s = y(null), c = y(null), l = y(null), u = y(null);
4320
- Ss({
4325
+ function Ts({ position: t = "bottom-right", radius: n, unstyled: r }) {
4326
+ let i = Q(), a = Zo((e) => e.entries), o = y(null), s = y(null), c = y(null), l = y(null), u = y(null);
4327
+ ws({
4321
4328
  regionRef: l,
4322
4329
  previousFocusRef: u
4323
- }), vs({
4330
+ }), bs({
4324
4331
  entries: a,
4325
4332
  listRef: o,
4326
4333
  politeRef: s,
@@ -4328,7 +4335,7 @@ function Cs({ position: t = "bottom-right", radius: n, unstyled: r }) {
4328
4335
  });
4329
4336
  let d = t.startsWith("top"), f = v(() => d ? [...a].reverse() : a, [a, d]);
4330
4337
  return S(/* @__PURE__ */ T("div", {
4331
- className: e("ms-toaster", jo[t]),
4338
+ className: e("ms-toaster", No[t]),
4332
4339
  children: [
4333
4340
  /* @__PURE__ */ w("section", {
4334
4341
  ref: l,
@@ -4344,7 +4351,7 @@ function Cs({ position: t = "bottom-right", radius: n, unstyled: r }) {
4344
4351
  children: /* @__PURE__ */ w("ol", {
4345
4352
  ref: o,
4346
4353
  className: "m-0 flex list-none flex-col gap-2 p-0",
4347
- children: f.map((e) => /* @__PURE__ */ w(Zo, {
4354
+ children: f.map((e) => /* @__PURE__ */ w($o, {
4348
4355
  entry: e,
4349
4356
  position: t,
4350
4357
  toasterRadius: n,
@@ -4367,70 +4374,70 @@ function Cs({ position: t = "bottom-right", radius: n, unstyled: r }) {
4367
4374
  ]
4368
4375
  }), document.body);
4369
4376
  }
4370
- function ws(e) {
4371
- return cs() ? /* @__PURE__ */ w(Cs, { ...e }) : null;
4377
+ function Es(e) {
4378
+ return us() ? /* @__PURE__ */ w(Ts, { ...e }) : null;
4372
4379
  }
4373
4380
  // src/components/toast/toast_provider.tsx
4374
- var Ts = ({ children: e }) => /* @__PURE__ */ T(C, { children: [e, /* @__PURE__ */ w(ws, {})] }), Es = 0;
4375
- function Ds() {
4376
- return Es += 1, `ms-toast-${Es}`;
4381
+ var Ds = ({ children: e }) => /* @__PURE__ */ T(C, { children: [e, /* @__PURE__ */ w(Es, {})] }), Os = 0;
4382
+ function ks() {
4383
+ return Os += 1, `ms-toast-${Os}`;
4377
4384
  }
4378
4385
  // src/components/toast/toast.ts
4379
- var Os = 5e3, ks = ["warning", "danger"];
4380
- function As(e, t) {
4381
- return t.duration === void 0 ? ks.includes(e) || t.action ? Infinity : Os : t.duration;
4386
+ var As = 5e3, js = ["warning", "danger"];
4387
+ function Ms(e, t) {
4388
+ return t.duration === void 0 ? js.includes(e) || t.action ? Infinity : As : t.duration;
4382
4389
  }
4383
- function js(e, t, n = {}) {
4384
- let r = n.id ?? Ds();
4385
- return typeof window > "u" || Yo.getState().showToast({
4390
+ function Ns(e, t, n = {}) {
4391
+ let r = n.id ?? ks();
4392
+ return typeof window > "u" || Zo.getState().showToast({
4386
4393
  id: r,
4387
4394
  message: t,
4388
4395
  description: n.description,
4389
4396
  tone: e,
4390
- duration: As(e, n),
4397
+ duration: Ms(e, n),
4391
4398
  action: n.action
4392
4399
  }), r;
4393
4400
  }
4394
- function Ms(e) {
4395
- typeof window < "u" && Yo.getState().dismissToast(e);
4396
- }
4397
- var Ns = Object.assign((e, t) => js("info", e, t), {
4398
- info: (e, t) => js("info", e, t),
4399
- success: (e, t) => js("success", e, t),
4400
- warning: (e, t) => js("warning", e, t),
4401
- error: (e, t) => js("danger", e, t),
4402
- dismiss: Ms
4401
+ function Ps(e) {
4402
+ typeof window < "u" && Zo.getState().dismissToast(e);
4403
+ }
4404
+ var Fs = Object.assign((e, t) => Ns("info", e, t), {
4405
+ info: (e, t) => Ns("info", e, t),
4406
+ success: (e, t) => Ns("success", e, t),
4407
+ warning: (e, t) => Ns("warning", e, t),
4408
+ error: (e, t) => Ns("danger", e, t),
4409
+ dismiss: Ps
4403
4410
  });
4404
4411
  // src/components/toast/use_toast.ts
4405
- function Ps(e) {
4406
- return e.duration === void 0 ? e.action ? Infinity : Do(e.tone ?? "info") : e.duration;
4412
+ function Is(e) {
4413
+ return e.duration === void 0 ? e.action ? Infinity : ko(e.tone ?? "info") : e.duration;
4407
4414
  }
4408
- function Fs(e) {
4409
- let t = Ds();
4415
+ function Ls(e) {
4416
+ let t = ks();
4410
4417
  if (typeof window > "u") return t;
4411
4418
  let n = e.tone ?? "info";
4412
- return Yo.getState().showToast({
4419
+ return Zo.getState().showToast({
4413
4420
  id: t,
4414
4421
  message: e.message,
4415
4422
  tone: n === "error" ? "danger" : n,
4416
- duration: Ps(e),
4423
+ duration: Is(e),
4417
4424
  action: e.action,
4418
4425
  radius: e.radius,
4419
4426
  unstyled: e.unstyled
4420
4427
  }), t;
4421
4428
  }
4422
- function Is(e) {
4423
- typeof window < "u" && Yo.getState().dismissToast(e);
4429
+ function Rs(e) {
4430
+ typeof window < "u" && Zo.getState().dismissToast(e);
4424
4431
  }
4425
- var Ls = {
4426
- show: Fs,
4427
- dismiss: Is
4432
+ var zs = {
4433
+ show: Ls,
4434
+ dismiss: Rs
4428
4435
  };
4429
- function Rs() {
4430
- return Ls;
4436
+ function Bs() {
4437
+ return zs;
4431
4438
  }
4432
4439
  // src/components/toolbar/toolbar_items.ts
4433
- var zs = "a[href], button, input:not([type=\"hidden\"]), select, textarea, summary, [contenteditable]:not([contenteditable=\"false\"]), [tabindex]", Bs = [
4440
+ var Vs = "a[href], button, input:not([type=\"hidden\"]), select, textarea, summary, [contenteditable]:not([contenteditable=\"false\"]), [tabindex]", Hs = [
4434
4441
  "textarea",
4435
4442
  "[contenteditable]:not([contenteditable=\"false\"])",
4436
4443
  `input:not(${[
@@ -4444,46 +4451,46 @@ var zs = "a[href], button, input:not([type=\"hidden\"]), select, textarea, summa
4444
4451
  "reset",
4445
4452
  "submit"
4446
4453
  ].map((e) => `[type="${e}"]`).join(", ")})`
4447
- ].join(", "), Vs = "select, input[type=\"range\"], input[type=\"radio\"]";
4448
- function Hs(e) {
4454
+ ].join(", "), Us = "select, input[type=\"range\"], input[type=\"radio\"]";
4455
+ function Ws(e) {
4449
4456
  return e.matches(":disabled, [aria-disabled=\"true\"]");
4450
4457
  }
4451
- function Us(e) {
4452
- return Array.from(e.querySelectorAll(zs));
4458
+ function Gs(e) {
4459
+ return Array.from(e.querySelectorAll(Vs));
4453
4460
  }
4454
- function Ws(e) {
4455
- return Us(e).filter((e) => !Hs(e));
4461
+ function Ks(e) {
4462
+ return Gs(e).filter((e) => !Ws(e));
4456
4463
  }
4457
- function Gs(e) {
4458
- return e instanceof HTMLElement && e.matches(`${Bs}, ${Vs}`);
4464
+ function qs(e) {
4465
+ return e instanceof HTMLElement && e.matches(`${Hs}, ${Us}`);
4459
4466
  }
4460
4467
  // src/components/toolbar/toolbar_navigation.ts
4461
- var Ks = (e, t) => (e + 1) % t, qs = (e, t) => (e - 1 + t) % t, Js = () => 0, Ys = (e, t) => t - 1, Xs = {
4468
+ var Js = (e, t) => (e + 1) % t, Ys = (e, t) => (e - 1 + t) % t, Xs = () => 0, Zs = (e, t) => t - 1, Qs = {
4462
4469
  horizontal: {
4463
- ArrowRight: Ks,
4464
- ArrowLeft: qs,
4465
- Home: Js,
4466
- End: Ys
4470
+ ArrowRight: Js,
4471
+ ArrowLeft: Ys,
4472
+ Home: Xs,
4473
+ End: Zs
4467
4474
  },
4468
4475
  vertical: {
4469
- ArrowDown: Ks,
4470
- ArrowUp: qs,
4471
- Home: Js,
4472
- End: Ys
4476
+ ArrowDown: Js,
4477
+ ArrowUp: Ys,
4478
+ Home: Xs,
4479
+ End: Zs
4473
4480
  }
4474
4481
  };
4475
- function Zs(e) {
4476
- let { key: t, orientation: n, currentPosition: r, itemCount: i } = e, a = Xs[n][t];
4482
+ function $s(e) {
4483
+ let { key: t, orientation: n, currentPosition: r, itemCount: i } = e, a = Qs[n][t];
4477
4484
  if (a && i !== 0) return a(r, i);
4478
4485
  }
4479
4486
  // src/components/toolbar/use_toolbar_roving_focus.ts
4480
- var Qs = ["disabled", "aria-disabled"];
4481
- function $s(e, t) {
4487
+ var ec = ["disabled", "aria-disabled"];
4488
+ function tc(e, t) {
4482
4489
  let n = y(null), r = f(() => {
4483
4490
  let t = e.current;
4484
4491
  if (!t) return;
4485
- let r = Ws(t), i = n.current, a = i && r.includes(i) ? i : r[0];
4486
- for (let e of Us(t)) e.tabIndex = e === a ? 0 : -1;
4492
+ let r = Ks(t), i = n.current, a = i && r.includes(i) ? i : r[0];
4493
+ for (let e of Gs(t)) e.tabIndex = e === a ? 0 : -1;
4487
4494
  }, [e]);
4488
4495
  return m(() => {
4489
4496
  let t = e.current;
@@ -4494,19 +4501,19 @@ function $s(e, t) {
4494
4501
  subtree: !0,
4495
4502
  childList: !0,
4496
4503
  attributes: !0,
4497
- attributeFilter: Qs
4504
+ attributeFilter: ec
4498
4505
  }), () => n.disconnect();
4499
4506
  }, [e, r]), {
4500
4507
  handleFocus: (t) => {
4501
4508
  let i = e.current;
4502
4509
  if (!i) return;
4503
- let a = Ws(i).find((e) => e === t.target);
4510
+ let a = Ks(i).find((e) => e === t.target);
4504
4511
  a && (n.current = a, r());
4505
4512
  },
4506
4513
  handleKeyDown: (n) => {
4507
4514
  let r = e.current;
4508
- if (!r || !r.contains(n.target) || Gs(n.target)) return;
4509
- let i = Ws(r), a = Zs({
4515
+ if (!r || !r.contains(n.target) || qs(n.target)) return;
4516
+ let i = Ks(r), a = $s({
4510
4517
  key: n.key,
4511
4518
  orientation: t,
4512
4519
  currentPosition: i.findIndex((e) => e === n.target),
@@ -4517,18 +4524,18 @@ function $s(e, t) {
4517
4524
  };
4518
4525
  }
4519
4526
  // src/components/toolbar/toolbar.tsx
4520
- var ec = {
4527
+ var nc = {
4521
4528
  horizontal: "flex items-center gap-1",
4522
4529
  vertical: "flex flex-col items-stretch gap-1"
4523
4530
  };
4524
- function tc(t) {
4525
- let { orientation: n = "horizontal", unstyled: r = !1, className: i, ref: a, onFocus: o, onKeyDown: s, ...c } = t, l = y(null), { handleFocus: u, handleKeyDown: d } = $s(l, n);
4531
+ function rc(t) {
4532
+ let { orientation: n = "horizontal", unstyled: r = !1, className: i, ref: a, onFocus: o, onKeyDown: s, ...c } = t, l = y(null), { handleFocus: u, handleKeyDown: d } = tc(l, n);
4526
4533
  return /* @__PURE__ */ w("div", {
4527
4534
  ...c,
4528
4535
  ref: K(l, a),
4529
4536
  role: "toolbar",
4530
4537
  "aria-orientation": n,
4531
- className: e(!r && ec[n], i),
4538
+ className: e(!r && nc[n], i),
4532
4539
  onFocus: (e) => {
4533
4540
  u(e), o?.(e);
4534
4541
  },
@@ -4538,11 +4545,11 @@ function tc(t) {
4538
4545
  });
4539
4546
  }
4540
4547
  // src/components/ui_provider/french_ui_labels.ts
4541
- var nc = {
4548
+ var ic = {
4542
4549
  light: "clair",
4543
4550
  dark: "sombre",
4544
4551
  system: "système"
4545
- }, rc = {
4552
+ }, ac = {
4546
4553
  close: "Fermer",
4547
4554
  confirm: "Confirmer",
4548
4555
  cancel: "Annuler",
@@ -4557,38 +4564,38 @@ var nc = {
4557
4564
  notifications: "Notifications",
4558
4565
  closeNotification: "Fermer la notification",
4559
4566
  charactersRemaining: (e) => `${e} ${e > 1 ? "caractères restants" : "caractère restant"}`,
4560
- currentTheme: (e) => `Thème actuel : ${nc[e]}`,
4567
+ currentTheme: (e) => `Thème actuel : ${ic[e]}`,
4561
4568
  overflowCount: (e) => `+${e} ${e > 1 ? "autres" : "autre"}`,
4562
4569
  selectedCount: (e) => `${e} ${e > 1 ? "sélectionnés" : "sélectionné"}`,
4563
4570
  maxSelectedHint: (e) => `Vous pouvez sélectionner jusqu'à ${e} ${e > 1 ? "éléments" : "élément"}`
4564
4571
  };
4565
4572
  // src/components/ui_provider/ui_provider.tsx
4566
- function ic(e = {}) {
4573
+ function oc(e = {}) {
4567
4574
  return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
4568
4575
  }
4569
- function ac({ labels: e, announceFieldErrors: t, children: n }) {
4570
- let r = p(pe), i = Qe(), a = v(() => ({
4576
+ function sc({ labels: e, announceFieldErrors: t, children: n }) {
4577
+ let r = p(pe), i = et(), a = v(() => ({
4571
4578
  ...r,
4572
- ...ic(e)
4579
+ ...oc(e)
4573
4580
  }), [r, e]);
4574
4581
  return /* @__PURE__ */ w(pe.Provider, {
4575
4582
  value: a,
4576
- children: /* @__PURE__ */ w(Ze.Provider, {
4583
+ children: /* @__PURE__ */ w($e.Provider, {
4577
4584
  value: t ?? i,
4578
4585
  children: n
4579
4586
  })
4580
4587
  });
4581
4588
  }
4582
4589
  // src/hooks/use_is_client/with_client_only.tsx
4583
- var oc = (e) => {
4590
+ var cc = (e) => {
4584
4591
  function t(t) {
4585
- return yt() ? /* @__PURE__ */ w(e, { ...t }) : null;
4592
+ return xt() ? /* @__PURE__ */ w(e, { ...t }) : null;
4586
4593
  }
4587
4594
  return t;
4588
- }, sc = "a scroll region needs an accessible name. Provide a non-empty `label` or `labelledBy`.";
4589
- function cc(e) {
4590
- let { ref: t, scrollableProps: n, focusClassName: r } = gr(e);
4591
- return ct("useKeyboardScrollable", !!e.label?.trim() || !!e.labelledBy?.trim(), sc), {
4595
+ }, lc = "a scroll region needs an accessible name. Provide a non-empty `label` or `labelledBy`.";
4596
+ function uc(e) {
4597
+ let { ref: t, scrollableProps: n, focusClassName: r } = vr(e);
4598
+ return ut("useKeyboardScrollable", !!e.label?.trim() || !!e.labelledBy?.trim(), lc), {
4592
4599
  scrollableProps: {
4593
4600
  ref: t,
4594
4601
  ...n
@@ -4597,5 +4604,5 @@ function cc(e) {
4597
4604
  };
4598
4605
  }
4599
4606
  // src/stores/theme_store/theme_init_script.ts
4600
- var lc = `(function(){var t=null;try{t=localStorage.getItem(${JSON.stringify(io)})}catch(e){}var d=t==="dark"||(t!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches);document.documentElement.classList.toggle("dark",d);var m=document.querySelectorAll('meta[name="theme-color"][data-light][data-dark]');for(var i=0;i<m.length;i++){m[i].setAttribute("content",m[i].getAttribute(d?"data-dark":"data-light"))}})()`;
4601
- export { he as Alert, Ce as AppBar, Ee as Avatar, We as BASE_INPUT_STYLES, Oe as Badge, Me as Button, Ie as Card, Ve as CharacterCount, mt as Checkbox, vt as CheckboxOptions, bt as ClientOnly, pn as Combobox, Di as ConfirmModal, Nn as ContextMenu, Ln as CopyButton, Gr as Drawer, rc as FRENCH_UI_LABELS, Vn as Highlight, X as IconButton, Jr as Input, Xr as Kbd, $r as Menu, ei as MenuGroup, hi as MenuItem, gi as MenuSeparator, ki as Modal, Ai as ModalFooter, Mi as ModalProvider, Vi as MultiCombobox, qi as Popover, Yi as RadioOptions, Xi as Select, sa as Spinner, na as SplitButton, da as Switch, lc as THEME_INIT_SCRIPT, Ja as Tabs, Ya as Textarea, xo as ThemeToggle, Ts as ToastProvider, ws as Toaster, tc as Toolbar, J as Tooltip, ac as UIProvider, Ae as buttonClassName, kr as dismissTopmostModal, Rn as splitIntoHighlightSegments, Ns as toast, Vr as useDisableHotkeysWhileMounted, ji as useDismissGuard, zr as useGlobalHotkeysStore, yt as useIsClient, cc as useKeyboardScrollable, mo as useThemeStore, Rs as useToast, oc as withClientOnly };
4607
+ var dc = `(function(){var t=null;try{t=localStorage.getItem(${JSON.stringify(oo)})}catch(e){}var d=t==="dark"||(t!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches);document.documentElement.classList.toggle("dark",d);var m=document.querySelectorAll('meta[name="theme-color"][data-light][data-dark]');for(var i=0;i<m.length;i++){m[i].setAttribute("content",m[i].getAttribute(d?"data-dark":"data-light"))}})()`;
4608
+ export { he as Alert, Ce as AppBar, Ee as Avatar, Ke as BASE_INPUT_STYLES, Oe as Badge, Me as Button, Re as Card, Ue as CharacterCount, gt as Checkbox, bt as CheckboxOptions, St as ClientOnly, hn as Combobox, ki as ConfirmModal, Fn as ContextMenu, zn as CopyButton, qr as Drawer, ac as FRENCH_UI_LABELS, Un as Highlight, X as IconButton, Xr as Input, Qr as Kbd, ti as Menu, ni as MenuGroup, _i as MenuItem, vi as MenuSeparator, ji as Modal, Mi as ModalFooter, Pi as ModalProvider, Ui as MultiCombobox, Yi as Popover, Zi as RadioOptions, Qi as Select, la as Spinner, ia as SplitButton, pa as Switch, dc as THEME_INIT_SCRIPT, Xa as Tabs, Za as Textarea, Co as ThemeToggle, Ds as ToastProvider, Es as Toaster, rc as Toolbar, J as Tooltip, sc as UIProvider, Ae as buttonClassName, jr as dismissTopmostModal, Bn as splitIntoHighlightSegments, Fs as toast, Ur as useDisableHotkeysWhileMounted, Ni as useDismissGuard, Vr as useGlobalHotkeysStore, xt as useIsClient, uc as useKeyboardScrollable, go as useThemeStore, Bs as useToast, cc as withClientOnly };