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