cattle-care-ui 0.5.4 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -516,6 +516,31 @@ var _e = B(ge), ve = {
516
516
  };
517
517
  ve.node;
518
518
  var ye = B(ve), be = {
519
+ name: "file-clock",
520
+ size: 24,
521
+ node: [
522
+ ["path", {
523
+ d: "M16 22h2a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v2.85",
524
+ key: "ryk6xj"
525
+ }],
526
+ ["path", {
527
+ d: "M14 2v5a1 1 0 0 0 1 1h5",
528
+ key: "wfsgrz"
529
+ }],
530
+ ["path", {
531
+ d: "M8 14v2.2l1.6 1",
532
+ key: "6m4bie"
533
+ }],
534
+ ["circle", {
535
+ cx: "8",
536
+ cy: "16",
537
+ r: "6",
538
+ key: "10v15b"
539
+ }]
540
+ ]
541
+ };
542
+ be.node;
543
+ var xe = B(be), Se = {
519
544
  name: "image-off",
520
545
  size: 24,
521
546
  node: [
@@ -554,8 +579,8 @@ var ye = B(ve), be = {
554
579
  }]
555
580
  ]
556
581
  };
557
- be.node;
558
- var xe = B(be), Se = {
582
+ Se.node;
583
+ var Ce = B(Se), we = {
559
584
  name: "lock",
560
585
  size: 24,
561
586
  node: [["rect", {
@@ -571,8 +596,8 @@ var xe = B(be), Se = {
571
596
  key: "fwvmzm"
572
597
  }]]
573
598
  };
574
- Se.node;
575
- var Ce = B(Se), we = {
599
+ we.node;
600
+ var Te = B(we), Ee = {
576
601
  name: "play",
577
602
  size: 24,
578
603
  node: [["path", {
@@ -580,8 +605,8 @@ var Ce = B(Se), we = {
580
605
  key: "10ikf1"
581
606
  }]]
582
607
  };
583
- we.node;
584
- var Te = B(we), Ee = {
608
+ Ee.node;
609
+ var De = B(Ee), Oe = {
585
610
  name: "search",
586
611
  size: 24,
587
612
  node: [["path", {
@@ -594,8 +619,8 @@ var Te = B(we), Ee = {
594
619
  key: "4ej97u"
595
620
  }]]
596
621
  };
597
- Ee.node;
598
- var De = B(Ee), Oe = {
622
+ Oe.node;
623
+ var ke = B(Oe), Ae = {
599
624
  name: "user",
600
625
  size: 24,
601
626
  node: [["path", {
@@ -608,8 +633,8 @@ var De = B(Ee), Oe = {
608
633
  key: "17ys0d"
609
634
  }]]
610
635
  };
611
- Oe.node;
612
- var ke = B(Oe), Ae = {
636
+ Ae.node;
637
+ var je = B(Ae), Me = {
613
638
  name: "x",
614
639
  size: 24,
615
640
  node: [["path", {
@@ -620,8 +645,8 @@ var ke = B(Oe), Ae = {
620
645
  key: "d8bk6v"
621
646
  }]]
622
647
  };
623
- Ae.node;
624
- var je = B(Ae), Me = {
648
+ Me.node;
649
+ var Ne = B(Me), Pe = {
625
650
  neutral: "_neutral_71hh2_1",
626
651
  pill: "_pill_71hh2_2",
627
652
  accent: "_accent_71hh2_3",
@@ -639,53 +664,53 @@ var je = B(Ae), Me = {
639
664
  main: "_main_71hh2_173",
640
665
  remove: "_remove_71hh2_174",
641
666
  removable: "_removable_71hh2_203"
642
- }, Ne = {
667
+ }, Fe = {
643
668
  chip: "_chip_1plyt_5",
644
669
  disabled: "_disabled_1plyt_16",
645
670
  selected: "_selected_1plyt_30"
646
671
  };
647
672
  //#endregion
648
673
  //#region src/components/Tag.tsx
649
- function Pe(...e) {
674
+ function Ie(...e) {
650
675
  return e.filter(Boolean).join(" ");
651
676
  }
652
- function Fe(e) {
677
+ function Le(e) {
653
678
  if (e.variant === "count") {
654
679
  let { variant: t, children: n, ...r } = e;
655
680
  return /* @__PURE__ */ v("span", {
656
- className: Me[t],
681
+ className: Pe[t],
657
682
  ...r,
658
683
  children: n
659
684
  });
660
685
  }
661
- let { variant: t = "neutral", children: n, onClick: r, pressed: i, disabled: a, leading: o, onRemove: s, removeLabel: c, ...l } = e, u = !!r, d = !!s, f = t === "chip", p = u && i === !0, m = Pe(Me[t], f && Ne.chip, f && p && Ne.selected, f && a && Ne.disabled, (u || d) && Me.interactive, p && Me.pressed, a && Me.disabled, (o != null || d) && Me.slots), h = /* @__PURE__ */ y(_, { children: [o != null && /* @__PURE__ */ v("span", {
662
- className: Me.leading,
686
+ let { variant: t = "neutral", children: n, onClick: r, pressed: i, disabled: a, leading: o, onRemove: s, removeLabel: c, ...l } = e, u = !!r, d = !!s, f = t === "chip", p = u && i === !0, m = Ie(Pe[t], f && Fe.chip, f && p && Fe.selected, f && a && Fe.disabled, (u || d) && Pe.interactive, p && Pe.pressed, a && Pe.disabled, (o != null || d) && Pe.slots), h = /* @__PURE__ */ y(_, { children: [o != null && /* @__PURE__ */ v("span", {
687
+ className: Pe.leading,
663
688
  children: o
664
689
  }), n] });
665
690
  return d ? /* @__PURE__ */ y("span", {
666
- className: Pe(m, Me.removable),
691
+ className: Ie(m, Pe.removable),
667
692
  ...l,
668
693
  children: [u ? /* @__PURE__ */ v("button", {
669
694
  type: "button",
670
- className: Pe(Me.main, Me.slots),
695
+ className: Ie(Pe.main, Pe.slots),
671
696
  "aria-pressed": i,
672
697
  disabled: a,
673
698
  onClick: r,
674
699
  children: h
675
700
  }) : h, /* @__PURE__ */ v("button", {
676
701
  type: "button",
677
- className: Me.remove,
702
+ className: Pe.remove,
678
703
  "aria-label": c,
679
704
  disabled: a,
680
705
  onClick: () => s(),
681
- children: /* @__PURE__ */ v(je, {
706
+ children: /* @__PURE__ */ v(Ne, {
682
707
  size: 12,
683
708
  "aria-hidden": "true"
684
709
  })
685
710
  })]
686
711
  }) : u ? /* @__PURE__ */ v("button", {
687
712
  type: "button",
688
- className: Pe(m, Me.button),
713
+ className: Ie(m, Pe.button),
689
714
  "aria-pressed": i,
690
715
  disabled: a,
691
716
  onClick: r,
@@ -697,20 +722,20 @@ function Fe(e) {
697
722
  children: h
698
723
  });
699
724
  }
700
- var Ie = {
725
+ var Re = {
701
726
  group: "_group_kw1z2_1",
702
727
  sm: "_sm_kw1z2_9",
703
728
  chip: "_chip_kw1z2_13 _chip_1plyt_5",
704
729
  base: "_base_kw1z2_28",
705
730
  selected: "_selected_kw1z2_44 _selected_1plyt_30"
706
- }, Le = {
731
+ }, ze = {
707
732
  group: "_group_1gqda_1",
708
733
  groupLabel: "_groupLabel_1gqda_7"
709
- }, Re = { label: "_label_1hzxz_1" };
734
+ }, Be = { label: "_label_1hzxz_1" };
710
735
  //#endregion
711
736
  //#region src/components/FieldLabel.tsx
712
- function ze({ children: e, htmlFor: t, className: n }) {
713
- let r = `${Re.label} ${n ?? ""}`.trim();
737
+ function Ve({ children: e, htmlFor: t, className: n }) {
738
+ let r = `${Be.label} ${n ?? ""}`.trim();
714
739
  return t ? /* @__PURE__ */ v("label", {
715
740
  className: r,
716
741
  htmlFor: t,
@@ -722,36 +747,36 @@ function ze({ children: e, htmlFor: t, className: n }) {
722
747
  }
723
748
  //#endregion
724
749
  //#region src/components/TagGroup.tsx
725
- function Be({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
750
+ function He({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
726
751
  function s(e) {
727
752
  n(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
728
753
  }
729
754
  let c = /* @__PURE__ */ v("div", {
730
755
  role: "group",
731
756
  "aria-label": a ? void 0 : o["aria-label"],
732
- className: `${Ie.group} ${Ie[r]}`,
757
+ className: `${Re.group} ${Re[r]}`,
733
758
  children: e.map((e) => {
734
759
  let n = t.includes(e.value), r = i || e.disabled;
735
760
  return /* @__PURE__ */ v("button", {
736
761
  type: "button",
737
762
  "aria-pressed": n,
738
763
  disabled: r,
739
- className: [Ie.chip, n && Ie.selected].filter(Boolean).join(" "),
764
+ className: [Re.chip, n && Re.selected].filter(Boolean).join(" "),
740
765
  onClick: () => !r && s(e.value),
741
766
  children: e.label
742
767
  }, e.value);
743
768
  })
744
769
  });
745
770
  return a ? /* @__PURE__ */ y("div", {
746
- className: Le.group,
771
+ className: ze.group,
747
772
  ...o,
748
- children: [/* @__PURE__ */ v(ze, {
749
- className: Le.groupLabel,
773
+ children: [/* @__PURE__ */ v(Ve, {
774
+ className: ze.groupLabel,
750
775
  children: a
751
776
  }), c]
752
777
  }) : c;
753
778
  }
754
- var Ve = {
779
+ var Ue = {
755
780
  toolbar: "_toolbar_1naq9_1",
756
781
  searchWrap: "_searchWrap_1naq9_14",
757
782
  searchIcon: "_searchIcon_1naq9_33",
@@ -761,7 +786,7 @@ var Ve = {
761
786
  };
762
787
  //#endregion
763
788
  //#region src/components/Toolbar.tsx
764
- function He({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
789
+ function We({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
765
790
  let o = p(null);
766
791
  return l(() => {
767
792
  function e(e) {
@@ -769,36 +794,36 @@ function He({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", s
769
794
  }
770
795
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
771
796
  }, [i]), /* @__PURE__ */ y("div", {
772
- className: Ve.toolbar,
797
+ className: Ue.toolbar,
773
798
  children: [/* @__PURE__ */ y("div", {
774
- className: Ve.searchWrap,
799
+ className: Ue.searchWrap,
775
800
  children: [
776
801
  /* @__PURE__ */ v("span", {
777
- className: Ve.searchIcon,
778
- children: /* @__PURE__ */ v(De, {})
802
+ className: Ue.searchIcon,
803
+ children: /* @__PURE__ */ v(ke, {})
779
804
  }),
780
805
  /* @__PURE__ */ v("input", {
781
806
  ref: o,
782
807
  type: "text",
783
- className: Ve.search,
808
+ className: Ue.search,
784
809
  placeholder: n,
785
810
  autoComplete: "off",
786
811
  value: e,
787
812
  onChange: (e) => t?.(e.target.value)
788
813
  }),
789
814
  r && /* @__PURE__ */ v("span", {
790
- className: Ve.searchShortcut,
815
+ className: Ue.searchShortcut,
791
816
  "aria-hidden": "true",
792
817
  children: r
793
818
  })
794
819
  ]
795
820
  }), a && /* @__PURE__ */ v("div", {
796
- className: Ve.controls,
821
+ className: Ue.controls,
797
822
  children: a
798
823
  })]
799
824
  });
800
825
  }
801
- var Ue = {
826
+ var Ge = {
802
827
  anchor: "_anchor_12u1t_3",
803
828
  sentinel: "_sentinel_12u1t_8",
804
829
  header: "_header_12u1t_17",
@@ -806,8 +831,8 @@ var Ue = {
806
831
  animated: "_animated_12u1t_73",
807
832
  left: "_left_12u1t_100",
808
833
  right: "_right_12u1t_101"
809
- }, We = 4;
810
- function Ge(e) {
834
+ }, Ke = 4;
835
+ function qe(e) {
811
836
  let t = e.parentElement;
812
837
  for (; t && t !== document.body && t !== document.documentElement;) {
813
838
  let { overflowY: e } = getComputedStyle(t);
@@ -816,7 +841,7 @@ function Ge(e) {
816
841
  }
817
842
  return null;
818
843
  }
819
- function Ke({ left: e, right: t, children: n, scrollRoot: r, threshold: i = We, floatOnMobile: a = !1, onStateChange: o, className: s, "data-testid": c = "header" }) {
844
+ function Je({ left: e, right: t, children: n, scrollRoot: r, threshold: i = Ke, floatOnMobile: a = !1, onStateChange: o, className: s, "data-testid": c = "header" }) {
820
845
  let u = p(null), [d, f] = m("top"), [h, g] = m(!1), b = p(o);
821
846
  l(() => {
822
847
  b.current = o;
@@ -828,7 +853,7 @@ function Ke({ left: e, right: t, children: n, scrollRoot: r, threshold: i = We,
828
853
  let e = u.current;
829
854
  if (!e) return;
830
855
  let t, n, i = !0, a = 0, o = () => {
831
- let o = r === void 0 ? Ge(e) : r;
856
+ let o = r === void 0 ? qe(e) : r;
832
857
  t && o === n || (t?.disconnect(), n = o, t = new IntersectionObserver((e) => {
833
858
  let t = e[e.length - 1];
834
859
  f(t.isIntersecting ? "top" : "floating"), i && (i = !1, a = requestAnimationFrame(() => g(!0)));
@@ -839,20 +864,20 @@ function Ke({ left: e, right: t, children: n, scrollRoot: r, threshold: i = We,
839
864
  };
840
865
  }, [r, i]);
841
866
  let S = [
842
- Ue.card,
843
- h ? Ue.animated : "",
867
+ Ge.card,
868
+ h ? Ge.animated : "",
844
869
  s
845
870
  ].filter(Boolean).join(" ");
846
871
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
847
- className: Ue.anchor,
872
+ className: Ge.anchor,
848
873
  "aria-hidden": "true",
849
874
  children: /* @__PURE__ */ v("div", {
850
875
  ref: u,
851
- className: Ue.sentinel,
876
+ className: Ge.sentinel,
852
877
  style: { top: i }
853
878
  })
854
879
  }), /* @__PURE__ */ v("header", {
855
- className: [Ue.header, h ? Ue.animated : ""].filter(Boolean).join(" "),
880
+ className: [Ge.header, h ? Ge.animated : ""].filter(Boolean).join(" "),
856
881
  "data-state": d,
857
882
  "data-float-mobile": a ? "" : void 0,
858
883
  "data-testid": c,
@@ -861,16 +886,16 @@ function Ke({ left: e, right: t, children: n, scrollRoot: r, threshold: i = We,
861
886
  "data-state": d,
862
887
  "data-float-mobile": a ? "" : void 0,
863
888
  children: n ?? /* @__PURE__ */ y(_, { children: [e && /* @__PURE__ */ v("div", {
864
- className: Ue.left,
889
+ className: Ge.left,
865
890
  children: e
866
891
  }), t && /* @__PURE__ */ v("div", {
867
- className: Ue.right,
892
+ className: Ge.right,
868
893
  children: t
869
894
  })] })
870
895
  })
871
896
  })] });
872
897
  }
873
- var qe = {
898
+ var Ye = {
874
899
  checkbox: "_checkbox_qxr70_1",
875
900
  control: "_control_qxr70_8",
876
901
  labelText: "_labelText_qxr70_17",
@@ -881,15 +906,15 @@ var qe = {
881
906
  };
882
907
  //#endregion
883
908
  //#region src/components/Checkbox.tsx
884
- function Je({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
909
+ function Xe({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
885
910
  return /* @__PURE__ */ y("label", {
886
- className: `${qe.checkbox} ${s ?? ""}`,
911
+ className: `${Ye.checkbox} ${s ?? ""}`,
887
912
  children: [/* @__PURE__ */ y("span", {
888
- className: qe.control,
913
+ className: Ye.control,
889
914
  children: [/* @__PURE__ */ v("input", {
890
915
  ref: c,
891
916
  type: "checkbox",
892
- className: qe.input,
917
+ className: Ye.input,
893
918
  checked: e,
894
919
  onChange: t,
895
920
  onBlur: n,
@@ -897,46 +922,46 @@ function Je({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel:
897
922
  "aria-label": a,
898
923
  disabled: o
899
924
  }), /* @__PURE__ */ v("span", {
900
- className: qe.box,
925
+ className: Ye.box,
901
926
  children: /* @__PURE__ */ v("svg", {
902
- className: qe.icon,
927
+ className: Ye.icon,
903
928
  viewBox: "0 0 17 18",
904
929
  "aria-hidden": "true",
905
930
  children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
906
931
  })
907
932
  })]
908
933
  }), i && /* @__PURE__ */ v("span", {
909
- className: qe.labelText,
934
+ className: Ye.labelText,
910
935
  children: i
911
936
  })]
912
937
  });
913
938
  }
914
- function Ye({ checked: e, disabled: t }) {
939
+ function Ze({ checked: e, disabled: t }) {
915
940
  return /* @__PURE__ */ v("span", {
916
- className: `${qe.box} ${qe.indicator}`,
941
+ className: `${Ye.box} ${Ye.indicator}`,
917
942
  "data-checked": e,
918
943
  "data-disabled": t || void 0,
919
944
  "aria-hidden": "true",
920
945
  children: /* @__PURE__ */ v("svg", {
921
- className: qe.icon,
946
+ className: Ye.icon,
922
947
  viewBox: "0 0 17 18",
923
948
  "aria-hidden": "true",
924
949
  children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
925
950
  })
926
951
  });
927
952
  }
928
- function Xe({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
953
+ function Qe({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
929
954
  function o(e) {
930
955
  r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
931
956
  }
932
957
  return /* @__PURE__ */ y("div", {
933
958
  role: "group",
934
959
  "aria-label": e ? void 0 : a["aria-label"],
935
- className: Le.group,
936
- children: [e && /* @__PURE__ */ v(ze, {
937
- className: Le.groupLabel,
960
+ className: ze.group,
961
+ children: [e && /* @__PURE__ */ v(Ve, {
962
+ className: ze.groupLabel,
938
963
  children: e
939
- }), t.map((e) => /* @__PURE__ */ v(Je, {
964
+ }), t.map((e) => /* @__PURE__ */ v(Xe, {
940
965
  checked: n.includes(e.value),
941
966
  onChange: () => o(e.value),
942
967
  label: e.label,
@@ -944,7 +969,7 @@ function Xe({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
944
969
  }, e.value))]
945
970
  });
946
971
  }
947
- var Ze = {
972
+ var $e = {
948
973
  radio: "_radio_1k4h8_1",
949
974
  control: "_control_1k4h8_8",
950
975
  labelText: "_labelText_1k4h8_17",
@@ -954,15 +979,15 @@ var Ze = {
954
979
  };
955
980
  //#endregion
956
981
  //#region src/components/RadioButton.tsx
957
- function Qe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
982
+ function et({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
958
983
  return /* @__PURE__ */ y("label", {
959
- className: `${Ze.radio} ${c ?? ""}`,
984
+ className: `${$e.radio} ${c ?? ""}`,
960
985
  children: [/* @__PURE__ */ y("span", {
961
- className: Ze.control,
986
+ className: $e.control,
962
987
  children: [/* @__PURE__ */ v("input", {
963
988
  ref: l,
964
989
  type: "radio",
965
- className: Ze.input,
990
+ className: $e.input,
966
991
  checked: e,
967
992
  onChange: t,
968
993
  onBlur: n,
@@ -971,24 +996,24 @@ function Qe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, a
971
996
  "aria-label": o,
972
997
  disabled: s
973
998
  }), /* @__PURE__ */ v("span", {
974
- className: Ze.circle,
975
- children: /* @__PURE__ */ v("span", { className: Ze.dot })
999
+ className: $e.circle,
1000
+ children: /* @__PURE__ */ v("span", { className: $e.dot })
976
1001
  })]
977
1002
  }), a && /* @__PURE__ */ v("span", {
978
- className: Ze.labelText,
1003
+ className: $e.labelText,
979
1004
  children: a
980
1005
  })]
981
1006
  });
982
1007
  }
983
- function $e({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
1008
+ function tt({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
984
1009
  return /* @__PURE__ */ y("div", {
985
1010
  role: "radiogroup",
986
1011
  "aria-label": e ? void 0 : o["aria-label"],
987
- className: Le.group,
988
- children: [e && /* @__PURE__ */ v(ze, {
989
- className: Le.groupLabel,
1012
+ className: ze.group,
1013
+ children: [e && /* @__PURE__ */ v(Ve, {
1014
+ className: ze.groupLabel,
990
1015
  children: e
991
- }), n.map((e) => /* @__PURE__ */ v(Qe, {
1016
+ }), n.map((e) => /* @__PURE__ */ v(et, {
992
1017
  name: t,
993
1018
  value: e.value,
994
1019
  checked: r === e.value,
@@ -998,7 +1023,7 @@ function $e({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, .
998
1023
  }, e.value))]
999
1024
  });
1000
1025
  }
1001
- var et = {
1026
+ var nt = {
1002
1027
  switch: "_switch_1s642_1",
1003
1028
  input: "_input_1s642_7",
1004
1029
  control: "_control_1s642_10",
@@ -1010,25 +1035,25 @@ var et = {
1010
1035
  };
1011
1036
  //#endregion
1012
1037
  //#region src/components/Switch.tsx
1013
- function tt({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
1038
+ function rt({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
1014
1039
  return /* @__PURE__ */ y("label", {
1015
- className: `${et.switch} ${o ?? ""}`,
1040
+ className: `${nt.switch} ${o ?? ""}`,
1016
1041
  children: [/* @__PURE__ */ y("span", {
1017
- className: `${et.control} ${et[n]}`,
1042
+ className: `${nt.control} ${nt[n]}`,
1018
1043
  children: [/* @__PURE__ */ v("input", {
1019
1044
  type: "checkbox",
1020
1045
  role: "switch",
1021
- className: et.input,
1046
+ className: nt.input,
1022
1047
  checked: e,
1023
1048
  onChange: t,
1024
1049
  "aria-label": i,
1025
1050
  disabled: a
1026
1051
  }), /* @__PURE__ */ v("span", {
1027
- className: et.track,
1028
- children: /* @__PURE__ */ v("span", { className: et.thumb })
1052
+ className: nt.track,
1053
+ children: /* @__PURE__ */ v("span", { className: nt.thumb })
1029
1054
  })]
1030
1055
  }), r && /* @__PURE__ */ v("span", {
1031
- className: et.labelText,
1056
+ className: nt.labelText,
1032
1057
  children: r
1033
1058
  })]
1034
1059
  });
@@ -1054,12 +1079,12 @@ var G = {
1054
1079
  };
1055
1080
  //#endregion
1056
1081
  //#region src/components/TextField.tsx
1057
- function nt({ label: e, helperText: t, error: n, size: r = "base", variant: i = "default", leadingIcon: a, shortcut: o, id: s, className: c, ref: l, ...d }) {
1082
+ function it({ label: e, helperText: t, error: n, size: r = "base", variant: i = "default", leadingIcon: a, shortcut: o, id: s, className: c, ref: l, ...d }) {
1058
1083
  let f = u(), m = s ?? f, h = p(null);
1059
1084
  return D(o, () => h.current?.focus()), /* @__PURE__ */ y("div", {
1060
1085
  className: [G.field, c].filter(Boolean).join(" "),
1061
1086
  children: [
1062
- e && /* @__PURE__ */ v(ze, {
1087
+ e && /* @__PURE__ */ v(Ve, {
1063
1088
  htmlFor: m,
1064
1089
  children: e
1065
1090
  }),
@@ -1144,10 +1169,10 @@ var K = {
1144
1169
  };
1145
1170
  //#endregion
1146
1171
  //#region src/components/TextArea.tsx
1147
- function rt(e, t) {
1172
+ function at(e, t) {
1148
1173
  typeof e == "function" ? e(t) : e && (e.current = t);
1149
1174
  }
1150
- function it({ label: e, helperText: t, error: n, size: r = "base", resize: i = "vertical", autoResize: a = !1, maxRows: o = 8, showCount: c = !1, id: l, className: f, ref: h, rows: g = 3, value: _, defaultValue: b, maxLength: x, disabled: S, readOnly: C, onChange: w, onInput: T, "aria-describedby": E, ...D }) {
1175
+ function ot({ label: e, helperText: t, error: n, size: r = "base", resize: i = "vertical", autoResize: a = !1, maxRows: o = 8, showCount: c = !1, id: l, className: f, ref: h, rows: g = 3, value: _, defaultValue: b, maxLength: x, disabled: S, readOnly: C, onChange: w, onInput: T, "aria-describedby": E, ...D }) {
1151
1176
  let O = u(), k = l ?? O, A = p(null), j = _ !== void 0, [M, ee] = m(() => String(b ?? "").length), N = j ? String(_).length : M, P = s(() => {
1152
1177
  let e = A.current;
1153
1178
  if (!e || !a) return;
@@ -1192,7 +1217,7 @@ function it({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1192
1217
  return /* @__PURE__ */ y("div", {
1193
1218
  className: [K.field, f].filter(Boolean).join(" "),
1194
1219
  children: [
1195
- e && /* @__PURE__ */ v(ze, {
1220
+ e && /* @__PURE__ */ v(Ve, {
1196
1221
  htmlFor: k,
1197
1222
  children: e
1198
1223
  }),
@@ -1201,7 +1226,7 @@ function it({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1201
1226
  children: /* @__PURE__ */ v("textarea", {
1202
1227
  ...D,
1203
1228
  ref: (e) => {
1204
- A.current = e, rt(h, e);
1229
+ A.current = e, at(h, e);
1205
1230
  },
1206
1231
  id: k,
1207
1232
  className: `${K.textarea} ${K[`resize-${ae}`]}`,
@@ -1238,12 +1263,12 @@ function it({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1238
1263
  }
1239
1264
  //#endregion
1240
1265
  //#region src/components/PasswordField.tsx
1241
- function at({ label: e, helperText: t, error: n, size: r = "base", showLabel: i = "Show password", hideLabel: a = "Hide password", defaultVisible: o = !1, id: s, className: c, ref: l, disabled: d, ...f }) {
1266
+ function st({ label: e, helperText: t, error: n, size: r = "base", showLabel: i = "Show password", hideLabel: a = "Hide password", defaultVisible: o = !1, id: s, className: c, ref: l, disabled: d, ...f }) {
1242
1267
  let p = u(), h = s ?? p, [g, _] = m(o);
1243
1268
  return /* @__PURE__ */ y("div", {
1244
1269
  className: [G.field, c].filter(Boolean).join(" "),
1245
1270
  children: [
1246
- e && /* @__PURE__ */ v(ze, {
1271
+ e && /* @__PURE__ */ v(Ve, {
1247
1272
  htmlFor: h,
1248
1273
  children: e
1249
1274
  }),
@@ -1280,12 +1305,12 @@ function at({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
1280
1305
  }
1281
1306
  //#endregion
1282
1307
  //#region src/components/DateField.tsx
1283
- function ot({ label: e, helperText: t, error: n, size: r = "base", openLabel: i = "Open calendar", id: a, className: o, ref: s, onClick: c, disabled: l, ...d }) {
1308
+ function ct({ label: e, helperText: t, error: n, size: r = "base", openLabel: i = "Open calendar", id: a, className: o, ref: s, onClick: c, disabled: l, ...d }) {
1284
1309
  let f = u(), p = a ?? f;
1285
1310
  return /* @__PURE__ */ y("div", {
1286
1311
  className: [G.field, o].filter(Boolean).join(" "),
1287
1312
  children: [
1288
- e && /* @__PURE__ */ v(ze, {
1313
+ e && /* @__PURE__ */ v(Ve, {
1289
1314
  htmlFor: p,
1290
1315
  children: e
1291
1316
  }),
@@ -1319,44 +1344,44 @@ function ot({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
1319
1344
  }
1320
1345
  //#endregion
1321
1346
  //#region src/utils/date.ts
1322
- function st(e) {
1347
+ function lt(e) {
1323
1348
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
1324
1349
  }
1325
- function ct(e, t) {
1350
+ function ut(e, t) {
1326
1351
  return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
1327
1352
  }
1328
- function lt(e, t) {
1353
+ function dt(e, t) {
1329
1354
  return new Date(e, t + 1, 0).getDate();
1330
1355
  }
1331
- function ut(e, t) {
1332
- let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), lt(n.getFullYear(), n.getMonth()));
1356
+ function ft(e, t) {
1357
+ let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), dt(n.getFullYear(), n.getMonth()));
1333
1358
  return new Date(n.getFullYear(), n.getMonth(), r);
1334
1359
  }
1335
- function dt(e, t) {
1360
+ function pt(e, t) {
1336
1361
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1337
1362
  }
1338
- function ft(e, t) {
1363
+ function mt(e, t) {
1339
1364
  return e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate();
1340
1365
  }
1341
- function pt(e, t, n) {
1342
- return !!(t && ft(e, t) < 0 || n && ft(e, n) > 0);
1366
+ function ht(e, t, n) {
1367
+ return !!(t && mt(e, t) < 0 || n && mt(e, n) > 0);
1343
1368
  }
1344
- function mt(e, t, n) {
1345
- return t && ft(e, t) < 0 ? st(t) : n && ft(e, n) > 0 ? st(n) : st(e);
1369
+ function gt(e, t, n) {
1370
+ return t && mt(e, t) < 0 ? lt(t) : n && mt(e, n) > 0 ? lt(n) : lt(e);
1346
1371
  }
1347
- function ht(e, t) {
1348
- return ct(e, -((e.getDay() - t + 7) % 7));
1372
+ function _t(e, t) {
1373
+ return ut(e, -((e.getDay() - t + 7) % 7));
1349
1374
  }
1350
- function gt(e, t) {
1351
- return ct(ht(e, t), 6);
1375
+ function vt(e, t) {
1376
+ return ut(_t(e, t), 6);
1352
1377
  }
1353
- var _t = 6;
1354
- function vt(e, t, n) {
1355
- let r = ht(new Date(e, t, 1), n), i = [];
1356
- for (let e = 0; e < _t; e++) {
1378
+ var yt = 6;
1379
+ function bt(e, t, n) {
1380
+ let r = _t(new Date(e, t, 1), n), i = [];
1381
+ for (let e = 0; e < yt; e++) {
1357
1382
  let n = [];
1358
1383
  for (let i = 0; i < 7; i++) {
1359
- let a = ct(r, e * 7 + i);
1384
+ let a = ut(r, e * 7 + i);
1360
1385
  n.push({
1361
1386
  date: a,
1362
1387
  inMonth: a.getMonth() === t
@@ -1383,28 +1408,28 @@ var q = {
1383
1408
  rangeStart: "_rangeStart_o086a_96",
1384
1409
  rangeEnd: "_rangeEnd_o086a_100",
1385
1410
  hiddenDay: "_hiddenDay_o086a_104"
1386
- }, yt = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
1387
- function bt(e, t) {
1411
+ }, xt = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
1412
+ function St(e, t) {
1388
1413
  let n = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
1389
1414
  return new Date(e.getFullYear(), e.getMonth(), Math.min(t, n));
1390
1415
  }
1391
- function xt(e, t) {
1416
+ function Ct(e, t) {
1392
1417
  return e.charAt(0).toLocaleUpperCase(t) + e.slice(1);
1393
1418
  }
1394
- function St({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", weekStartsOn: a = 0, autoFocus: o, previousMonthLabel: s = "Previous month", nextMonthLabel: c = "Next month", className: d, range: h, onDayHover: g, month: _, onMonthChange: b, hideNavigation: x }) {
1395
- let [S, C] = m(() => _ ? bt(_, (e ?? /* @__PURE__ */ new Date()).getDate()) : mt(e ?? /* @__PURE__ */ new Date(), n, r)), w = _ ? `${_.getFullYear()}-${_.getMonth()}` : null, [T, E] = m(w);
1396
- w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(bt(_, S.getDate())));
1397
- let D = e ? yt(e) : null, [O, A] = m(D);
1398
- D !== O && (A(D), e && C(mt(e, n, r)));
1419
+ function wt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", weekStartsOn: a = 0, autoFocus: o, previousMonthLabel: s = "Previous month", nextMonthLabel: c = "Next month", className: d, range: h, onDayHover: g, month: _, onMonthChange: b, hideNavigation: x }) {
1420
+ let [S, C] = m(() => _ ? St(_, (e ?? /* @__PURE__ */ new Date()).getDate()) : gt(e ?? /* @__PURE__ */ new Date(), n, r)), w = _ ? `${_.getFullYear()}-${_.getMonth()}` : null, [T, E] = m(w);
1421
+ w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(St(_, S.getDate())));
1422
+ let D = e ? xt(e) : null, [O, A] = m(D);
1423
+ D !== O && (A(D), e && C(gt(e, n, r)));
1399
1424
  let j = p(null), M = p(!!o), ee = u();
1400
1425
  l(() => {
1401
- M.current && (M.current = !1, j.current?.querySelector(`[data-date="${yt(S)}"]`)?.focus());
1426
+ M.current && (M.current = !1, j.current?.querySelector(`[data-date="${xt(S)}"]`)?.focus());
1402
1427
  }, [S]);
1403
- let N = S.getFullYear(), P = S.getMonth(), F = f(() => vt(N, P, a), [
1428
+ let N = S.getFullYear(), P = S.getMonth(), F = f(() => bt(N, P, a), [
1404
1429
  N,
1405
1430
  P,
1406
1431
  a
1407
- ]), te = st(/* @__PURE__ */ new Date()), ne = !!(h?.start && h.end && ft(h.start, h.end) > 0), I = ne ? h.end : h?.start ?? null, L = ne ? h.start : h?.end ?? null, R = !!(I && L && ft(I, L) !== 0), z = f(() => ({
1432
+ ]), te = lt(/* @__PURE__ */ new Date()), ne = !!(h?.start && h.end && mt(h.start, h.end) > 0), I = ne ? h.end : h?.start ?? null, L = ne ? h.start : h?.end ?? null, R = !!(I && L && mt(I, L) !== 0), z = f(() => ({
1408
1433
  title: new Intl.DateTimeFormat(i, {
1409
1434
  month: "long",
1410
1435
  year: "numeric"
@@ -1413,49 +1438,49 @@ function St({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1413
1438
  long: new Intl.DateTimeFormat(i, { weekday: "long" }),
1414
1439
  full: new Intl.DateTimeFormat(i, { dateStyle: "full" })
1415
1440
  }), [i]), re = h ? F.filter((e) => e.some((e) => e.inMonth)) : F, ie = F[0].map(({ date: e }) => ({
1416
- short: xt(z.short.format(e), i).slice(0, 2),
1441
+ short: Ct(z.short.format(e), i).slice(0, 2),
1417
1442
  long: z.long.format(e)
1418
- })), ae = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < st(n), oe = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > st(r), se = ae(S), B = oe(S);
1443
+ })), ae = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < lt(n), oe = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > lt(r), se = ae(S), B = oe(S);
1419
1444
  function V(e) {
1420
1445
  b && (e.getFullYear() !== S.getFullYear() || e.getMonth() !== S.getMonth()) && b(e), C(e);
1421
1446
  }
1422
1447
  function ce(e) {
1423
- M.current = !0, V(mt(e, n, r));
1448
+ M.current = !0, V(gt(e, n, r));
1424
1449
  }
1425
1450
  function H(e) {
1426
- let t = mt(ut(S, e), n, r);
1451
+ let t = gt(ft(S, e), n, r);
1427
1452
  M.current = e < 0 ? ae(t) : oe(t), V(t);
1428
1453
  }
1429
1454
  function le(e) {
1430
1455
  let t = null;
1431
1456
  switch (e.key) {
1432
1457
  case "ArrowLeft":
1433
- t = ct(S, -1);
1458
+ t = ut(S, -1);
1434
1459
  break;
1435
1460
  case "ArrowRight":
1436
- t = ct(S, 1);
1461
+ t = ut(S, 1);
1437
1462
  break;
1438
1463
  case "ArrowUp":
1439
- t = ct(S, -7);
1464
+ t = ut(S, -7);
1440
1465
  break;
1441
1466
  case "ArrowDown":
1442
- t = ct(S, 7);
1467
+ t = ut(S, 7);
1443
1468
  break;
1444
1469
  case "PageUp":
1445
- t = ut(S, -1);
1470
+ t = ft(S, -1);
1446
1471
  break;
1447
1472
  case "PageDown":
1448
- t = ut(S, 1);
1473
+ t = ft(S, 1);
1449
1474
  break;
1450
1475
  case "Home":
1451
- t = ht(S, a);
1476
+ t = _t(S, a);
1452
1477
  break;
1453
- case "End": t = gt(S, a);
1478
+ case "End": t = vt(S, a);
1454
1479
  }
1455
1480
  t && (e.preventDefault(), ce(t));
1456
1481
  }
1457
1482
  function ue(e) {
1458
- let n = st(e);
1483
+ let n = lt(e);
1459
1484
  V(n), t(n);
1460
1485
  }
1461
1486
  return /* @__PURE__ */ y("div", {
@@ -1476,7 +1501,7 @@ function St({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1476
1501
  id: ee,
1477
1502
  className: q.title,
1478
1503
  "aria-live": "polite",
1479
- children: xt(z.title.format(S), i)
1504
+ children: Ct(z.title.format(S), i)
1480
1505
  }),
1481
1506
  x === "next" ? /* @__PURE__ */ v("span", {}) : /* @__PURE__ */ v(k, {
1482
1507
  variant: "tertiary",
@@ -1508,12 +1533,12 @@ function St({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1508
1533
  role: "row",
1509
1534
  className: q.row,
1510
1535
  children: t.map(({ date: t, inMonth: i }) => {
1511
- let a = pt(t, n, r), o = !!I && dt(t, I), s = !!L && dt(t, L), c = !!(I && L) && ft(t, I) > 0 && ft(t, L) < 0, l = h ? o || s : !!e && dt(t, e), u = !!h && !i, d = dt(t, te);
1536
+ let a = ht(t, n, r), o = !!I && pt(t, I), s = !!L && pt(t, L), c = !!(I && L) && mt(t, I) > 0 && mt(t, L) < 0, l = h ? o || s : !!e && pt(t, e), u = !!h && !i, d = pt(t, te);
1512
1537
  return /* @__PURE__ */ v("button", {
1513
1538
  type: "button",
1514
1539
  role: "gridcell",
1515
- "data-date": yt(t),
1516
- tabIndex: dt(t, S) && !u ? 0 : -1,
1540
+ "data-date": xt(t),
1541
+ tabIndex: pt(t, S) && !u ? 0 : -1,
1517
1542
  "aria-selected": l || c,
1518
1543
  "aria-hidden": u || void 0,
1519
1544
  "aria-disabled": a || void 0,
@@ -1535,14 +1560,14 @@ function St({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1535
1560
  onPointerEnter: g && !u ? (e) => e.pointerType === "mouse" && g(t) : void 0,
1536
1561
  onFocus: g && !u ? () => g(t) : void 0,
1537
1562
  children: t.getDate()
1538
- }, yt(t));
1563
+ }, xt(t));
1539
1564
  })
1540
- }, yt(t[0].date)))]
1565
+ }, xt(t[0].date)))]
1541
1566
  })]
1542
1567
  });
1543
1568
  }
1544
- var Ct = 4, wt = 8;
1545
- function Tt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, layoutKey: a }) {
1569
+ var Tt = 4, Et = 8;
1570
+ function Dt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, layoutKey: a }) {
1546
1571
  let o = s(() => {
1547
1572
  let e = t.current, i = n();
1548
1573
  if (!e || !i) return;
@@ -1551,9 +1576,9 @@ function Tt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, la
1551
1576
  return;
1552
1577
  }
1553
1578
  let a = i.getBoundingClientRect(), o = e.offsetWidth, s = e.offsetHeight, c = document.documentElement.clientWidth, l = window.innerHeight, u = r === "bottom-end" ? a.right - o : a.left;
1554
- u = Math.max(wt, Math.min(u, c - o - wt));
1555
- let d = a.bottom + Ct, f = d + s <= l - wt, p = a.top - Ct - s >= wt, m = !f && p;
1556
- m && (d = a.top - Ct - s), e.dataset.flipped = String(m), e.dataset.align = r === "bottom-end" ? "end" : "start", e.style.left = `${u}px`, e.style.top = `${d}px`;
1579
+ u = Math.max(Et, Math.min(u, c - o - Et));
1580
+ let d = a.bottom + Tt, f = d + s <= l - Et, p = a.top - Tt - s >= Et, m = !f && p;
1581
+ m && (d = a.top - Tt - s), e.dataset.flipped = String(m), e.dataset.align = r === "bottom-end" ? "end" : "start", e.style.left = `${u}px`, e.style.top = `${d}px`;
1557
1582
  }, [
1558
1583
  n,
1559
1584
  r,
@@ -1599,15 +1624,15 @@ function Tt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, la
1599
1624
  t
1600
1625
  ]);
1601
1626
  }
1602
- var Et = { popup: "_popup_eco0g_1" };
1627
+ var Ot = { popup: "_popup_eco0g_1" };
1603
1628
  //#endregion
1604
1629
  //#region src/components/DatePicker.tsx
1605
- function Dt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale: a = "en", weekStartsOn: o = 0, formatValue: c, placement: l = "bottom-start", label: d, helperText: h, error: b, size: x, openLabel: S, placeholder: C, dialogLabel: w = "Choose date", className: T, id: E }) {
1630
+ function kt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale: a = "en", weekStartsOn: o = 0, formatValue: c, placement: l = "bottom-start", label: d, helperText: h, error: b, size: x, openLabel: S, placeholder: C, dialogLabel: w = "Choose date", className: T, id: E }) {
1606
1631
  let [D, O] = m(!1), k = p(null), A = p(null), j = u(), M = D && !i, ee = f(() => new Intl.DateTimeFormat(a, {
1607
1632
  month: "short",
1608
1633
  day: "2-digit"
1609
1634
  }), [a]), N = e ? c ? c(e) : ee.format(e) : "";
1610
- Tt({
1635
+ Dt({
1611
1636
  isOpen: M,
1612
1637
  popupRef: A,
1613
1638
  getAnchor: s(() => k.current?.parentElement ?? k.current, []),
@@ -1622,7 +1647,7 @@ function Dt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1622
1647
  function F(e) {
1623
1648
  t(e), O(!1), k.current?.focus();
1624
1649
  }
1625
- return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(ot, {
1650
+ return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(ct, {
1626
1651
  ref: k,
1627
1652
  id: E,
1628
1653
  className: T,
@@ -1645,8 +1670,8 @@ function Dt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1645
1670
  id: j,
1646
1671
  role: "dialog",
1647
1672
  "aria-label": w,
1648
- className: Et.popup,
1649
- children: /* @__PURE__ */ v(St, {
1673
+ className: Ot.popup,
1674
+ children: /* @__PURE__ */ v(wt, {
1650
1675
  autoFocus: !0,
1651
1676
  value: e,
1652
1677
  onChange: F,
@@ -1657,38 +1682,40 @@ function Dt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1657
1682
  })
1658
1683
  }), document.body)] });
1659
1684
  }
1660
- var Ot = {
1661
- skeleton: "_skeleton_5dl4r_2",
1662
- rect: "_rect_5dl4r_7",
1663
- text: "_text_5dl4r_13",
1664
- circle: "_circle_5dl4r_19",
1665
- animated: "_animated_5dl4r_26",
1666
- skeletonPulse: "_skeletonPulse_5dl4r_1"
1685
+ var At = {
1686
+ skeleton: "_skeleton_1pnmb_2",
1687
+ inverse: "_inverse_1pnmb_7",
1688
+ rect: "_rect_1pnmb_11",
1689
+ text: "_text_1pnmb_17",
1690
+ circle: "_circle_1pnmb_23",
1691
+ animated: "_animated_1pnmb_30",
1692
+ skeletonPulse: "_skeletonPulse_1pnmb_1"
1667
1693
  };
1668
1694
  //#endregion
1669
1695
  //#region src/components/Skeleton.tsx
1670
- function kt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
1671
- let s = [
1672
- Ot.skeleton,
1673
- Ot[e],
1674
- i && Ot.animated,
1675
- a
1676
- ].filter(Boolean).join(" "), c = {};
1677
- return e === "circle" && r !== void 0 && (c.width = r, c.height = r), t !== void 0 && (c.width = t), n !== void 0 && (c.height = n), /* @__PURE__ */ v("div", {
1696
+ function jt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, tone: a = "default", className: o, "data-testid": s }) {
1697
+ let c = [
1698
+ At.skeleton,
1699
+ At[e],
1700
+ a === "inverse" && At.inverse,
1701
+ i && At.animated,
1702
+ o
1703
+ ].filter(Boolean).join(" "), l = {};
1704
+ return e === "circle" && r !== void 0 && (l.width = r, l.height = r), t !== void 0 && (l.width = t), n !== void 0 && (l.height = n), /* @__PURE__ */ v("div", {
1678
1705
  "aria-hidden": "true",
1679
- className: s,
1680
- style: c,
1681
- "data-testid": o
1706
+ className: c,
1707
+ style: l,
1708
+ "data-testid": s
1682
1709
  });
1683
1710
  }
1684
1711
  //#endregion
1685
1712
  //#region src/utils/dateRange.ts
1686
- function At(e) {
1713
+ function Mt(e) {
1687
1714
  return e.start !== null && e.end !== null;
1688
1715
  }
1689
- function jt(e, t) {
1690
- let n = st(t);
1691
- return e.start && !e.end && ft(n, e.start) >= 0 ? {
1716
+ function Nt(e, t) {
1717
+ let n = lt(t);
1718
+ return e.start && !e.end && mt(n, e.start) >= 0 ? {
1692
1719
  start: e.start,
1693
1720
  end: n
1694
1721
  } : {
@@ -1696,8 +1723,8 @@ function jt(e, t) {
1696
1723
  end: null
1697
1724
  };
1698
1725
  }
1699
- function Mt(e, t) {
1700
- return e.start && !e.end && t ? ft(t, e.start) < 0 ? {
1726
+ function Pt(e, t) {
1727
+ return e.start && !e.end && t ? mt(t, e.start) < 0 ? {
1701
1728
  start: t,
1702
1729
  end: e.start
1703
1730
  } : {
@@ -1705,8 +1732,8 @@ function Mt(e, t) {
1705
1732
  end: t
1706
1733
  } : e;
1707
1734
  }
1708
- var Nt = " – ";
1709
- function Pt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
1735
+ var Ft = " – ";
1736
+ function It(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
1710
1737
  let { start: i, end: a } = e;
1711
1738
  if (!i && !a) return "";
1712
1739
  let o = new Intl.DateTimeFormat(t, {
@@ -1717,7 +1744,7 @@ function Pt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue:
1717
1744
  day: "2-digit",
1718
1745
  year: "numeric"
1719
1746
  }), c = [i, a].some((e) => e && e.getFullYear() !== n.getFullYear()), l = (e) => r ? r(e) : (c ? s : o).format(e);
1720
- return i && !a ? l(i) : !i && a ? l(a) : dt(i, a) ? l(i) : `${l(i)}${Nt}${l(a)}`;
1747
+ return i && !a ? l(i) : !i && a ? l(a) : pt(i, a) ? l(i) : `${l(i)}${Ft}${l(a)}`;
1721
1748
  }
1722
1749
  var J = {
1723
1750
  field: "_field_ltmv6_1",
@@ -1740,26 +1767,26 @@ var J = {
1740
1767
  months: "_months_ltmv6_220",
1741
1768
  month: "_month_ltmv6_220",
1742
1769
  footer: "_footer_ltmv6_228"
1743
- }, Ft = "(min-width: 640px)";
1744
- function It(e) {
1770
+ }, Lt = "(min-width: 640px)";
1771
+ function Rt(e) {
1745
1772
  return h((t) => {
1746
1773
  let n = window.matchMedia(e);
1747
1774
  return n.addEventListener("change", t), () => n.removeEventListener("change", t);
1748
1775
  }, () => window.matchMedia(e).matches, () => !1);
1749
1776
  }
1750
- var Lt = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Rt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
1751
- function zt(e, t, n, r) {
1752
- let i = Lt(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
1753
- return r && (i = ut(i, -1)), t && ft(i, Lt(t)) < 0 && (i = Lt(t)), i;
1777
+ var zt = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Bt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
1778
+ function Vt(e, t, n, r) {
1779
+ let i = zt(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
1780
+ return r && (i = ft(i, -1)), t && mt(i, zt(t)) < 0 && (i = zt(t)), i;
1754
1781
  }
1755
- function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], activePresetId: a, disabled: o, loading: c, locale: l = "en", weekStartsOn: d = 0, formatValue: h, placement: b = "bottom-start", size: x = "base", label: S, helperText: C, error: w, placeholder: T = "Select period", openLabel: E = "Choose period", dialogLabel: D = "Choose period", applyLabel: O = "Apply", cancelLabel: A = "Cancel", className: j, id: M }) {
1782
+ function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], activePresetId: a, disabled: o, loading: c, locale: l = "en", weekStartsOn: d = 0, formatValue: h, placement: b = "bottom-start", size: x = "base", label: S, helperText: C, error: w, placeholder: T = "Select period", openLabel: E = "Choose period", dialogLabel: D = "Choose period", applyLabel: O = "Apply", cancelLabel: A = "Cancel", className: j, id: M }) {
1756
1783
  let [ee, N] = m(!1), [P, F] = m({
1757
1784
  start: null,
1758
1785
  end: null
1759
- }), [te, ne] = m(null), [I, L] = m(() => zt(e, n, r, !0)), [R, z] = m(() => st(/* @__PURE__ */ new Date())), re = p(null), ie = p(null), ae = u(), oe = M ?? ae, se = u(), B = It(Ft), V = ee && !o && !c, ce = a ? i.find((e) => e.id === a) : void 0, H = (e, t) => e && t ? ft(e, t) === 0 : e === t, ue = V && !!P.start && !(H(P.start, e.start) && H(P.end, e.end)), U = f(() => ue ? Pt(P, {
1786
+ }), [te, ne] = m(null), [I, L] = m(() => Vt(e, n, r, !0)), [R, z] = m(() => lt(/* @__PURE__ */ new Date())), re = p(null), ie = p(null), ae = u(), oe = M ?? ae, se = u(), B = Rt(Lt), V = ee && !o && !c, ce = a ? i.find((e) => e.id === a) : void 0, H = (e, t) => e && t ? mt(e, t) === 0 : e === t, ue = V && !!P.start && !(H(P.start, e.start) && H(P.end, e.end)), U = f(() => ue ? It(P, {
1760
1787
  locale: l,
1761
1788
  formatValue: h
1762
- }) : ce?.label ?? Pt(e, {
1789
+ }) : ce?.label ?? It(e, {
1763
1790
  locale: l,
1764
1791
  formatValue: h
1765
1792
  }), [
@@ -1772,7 +1799,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1772
1799
  ]), W = s(() => re.current, []), fe = s((e) => {
1773
1800
  N(!1), e && re.current?.focus();
1774
1801
  }, []);
1775
- Tt({
1802
+ Dt({
1776
1803
  isOpen: V,
1777
1804
  popupRef: ie,
1778
1805
  getAnchor: W,
@@ -1784,7 +1811,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1784
1811
  o || c || (F({
1785
1812
  start: e.start,
1786
1813
  end: e.end
1787
- }), ne(null), L(zt(e, n, r, B)), z(e.end ?? e.start ?? st(/* @__PURE__ */ new Date())), N(!0));
1814
+ }), ne(null), L(Vt(e, n, r, B)), z(e.end ?? e.start ?? lt(/* @__PURE__ */ new Date())), N(!0));
1788
1815
  }
1789
1816
  function me() {
1790
1817
  V ? fe(!1) : pe();
@@ -1796,14 +1823,14 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1796
1823
  t(e.range()), fe(!0);
1797
1824
  }
1798
1825
  function _e() {
1799
- At(P) && (t({
1826
+ Mt(P) && (t({
1800
1827
  start: P.start,
1801
1828
  end: P.end
1802
1829
  }), fe(!0));
1803
1830
  }
1804
- let ve = (e) => (t) => L(ut(Lt(t), -e)), ye = Mt(P, te), be = ut(I, 1), xe = B && Rt(R, be), Se = {
1831
+ let ve = (e) => (t) => L(ft(zt(t), -e)), ye = Pt(P, te), be = ft(I, 1), xe = B && Bt(R, be), Se = {
1805
1832
  value: R,
1806
- onChange: (e) => F((t) => jt(t, e)),
1833
+ onChange: (e) => F((t) => Nt(t, e)),
1807
1834
  minDate: n,
1808
1835
  maxDate: r,
1809
1836
  locale: l,
@@ -1814,7 +1841,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1814
1841
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
1815
1842
  className: [J.field, j].filter(Boolean).join(" "),
1816
1843
  children: [
1817
- S && /* @__PURE__ */ v(ze, {
1844
+ S && /* @__PURE__ */ v(Ve, {
1818
1845
  htmlFor: oe,
1819
1846
  children: S
1820
1847
  }),
@@ -1843,7 +1870,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1843
1870
  }),
1844
1871
  c ? /* @__PURE__ */ v("span", {
1845
1872
  className: J.value,
1846
- children: /* @__PURE__ */ v(kt, {
1873
+ children: /* @__PURE__ */ v(jt, {
1847
1874
  variant: "text",
1848
1875
  width: "60%"
1849
1876
  })
@@ -1889,7 +1916,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1889
1916
  className: J.months,
1890
1917
  children: [/* @__PURE__ */ v("div", {
1891
1918
  className: J.month,
1892
- children: /* @__PURE__ */ v(St, {
1919
+ children: /* @__PURE__ */ v(wt, {
1893
1920
  ...Se,
1894
1921
  autoFocus: !xe,
1895
1922
  month: I,
@@ -1898,7 +1925,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1898
1925
  })
1899
1926
  }), B && /* @__PURE__ */ v("div", {
1900
1927
  className: J.month,
1901
- children: /* @__PURE__ */ v(St, {
1928
+ children: /* @__PURE__ */ v(wt, {
1902
1929
  ...Se,
1903
1930
  autoFocus: xe,
1904
1931
  month: be,
@@ -1916,7 +1943,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1916
1943
  }), /* @__PURE__ */ v(k, {
1917
1944
  variant: "primary",
1918
1945
  size: "sm",
1919
- disabled: !At(P),
1946
+ disabled: !Mt(P),
1920
1947
  onClick: _e,
1921
1948
  children: O
1922
1949
  })]
@@ -1924,7 +1951,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1924
1951
  })]
1925
1952
  }), document.body)] });
1926
1953
  }
1927
- var Vt = {
1954
+ var Ut = {
1928
1955
  field: "_field_l0zl7_1",
1929
1956
  inputWrap: "_inputWrap_l0zl7_6",
1930
1957
  errorWrap: "_errorWrap_l0zl7_19",
@@ -1938,64 +1965,64 @@ var Vt = {
1938
1965
  };
1939
1966
  //#endregion
1940
1967
  //#region src/components/NumberField.tsx
1941
- function Ht({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1968
+ function Wt({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1942
1969
  let c = u(), l = o ?? c;
1943
1970
  return /* @__PURE__ */ y("div", {
1944
- className: Vt.field,
1971
+ className: Ut.field,
1945
1972
  children: [
1946
- e && /* @__PURE__ */ v(ze, {
1973
+ e && /* @__PURE__ */ v(Ve, {
1947
1974
  htmlFor: l,
1948
1975
  children: e
1949
1976
  }),
1950
1977
  /* @__PURE__ */ y("div", {
1951
- className: `${Vt.inputWrap} ${Vt[r]} ${n ? Vt.errorWrap : ""}`,
1978
+ className: `${Ut.inputWrap} ${Ut[r]} ${n ? Ut.errorWrap : ""}`,
1952
1979
  children: [
1953
1980
  i && /* @__PURE__ */ v("span", {
1954
- className: Vt.prefix,
1981
+ className: Ut.prefix,
1955
1982
  children: i
1956
1983
  }),
1957
1984
  /* @__PURE__ */ v("input", {
1958
1985
  id: l,
1959
- className: Vt.input,
1986
+ className: Ut.input,
1960
1987
  ...s
1961
1988
  }),
1962
1989
  a && /* @__PURE__ */ v("span", {
1963
- className: Vt.suffix,
1990
+ className: Ut.suffix,
1964
1991
  children: a
1965
1992
  })
1966
1993
  ]
1967
1994
  }),
1968
1995
  n ? /* @__PURE__ */ v("span", {
1969
- className: Vt.errorText,
1996
+ className: Ut.errorText,
1970
1997
  children: n
1971
1998
  }) : t ? /* @__PURE__ */ v("span", {
1972
- className: Vt.helperText,
1999
+ className: Ut.helperText,
1973
2000
  children: t
1974
2001
  }) : null
1975
2002
  ]
1976
2003
  });
1977
2004
  }
1978
- var Ut = {
2005
+ var Gt = {
1979
2006
  menu: "_menu_xz84k_1",
1980
2007
  divider: "_divider_xz84k_15"
1981
2008
  };
1982
2009
  //#endregion
1983
2010
  //#region src/components/Menu.tsx
1984
- function Wt({ children: e, ...t }) {
2011
+ function Kt({ children: e, ...t }) {
1985
2012
  return /* @__PURE__ */ v("div", {
1986
2013
  role: "menu",
1987
- className: Ut.menu,
2014
+ className: Gt.menu,
1988
2015
  ...t,
1989
2016
  children: e
1990
2017
  });
1991
2018
  }
1992
- function Gt() {
2019
+ function qt() {
1993
2020
  return /* @__PURE__ */ v("div", {
1994
- className: Ut.divider,
2021
+ className: Gt.divider,
1995
2022
  role: "separator"
1996
2023
  });
1997
2024
  }
1998
- var Kt = {
2025
+ var Jt = {
1999
2026
  item: "_item_1sghe_1",
2000
2027
  base: "_base_1sghe_21",
2001
2028
  icon: "_icon_1sghe_31",
@@ -2008,12 +2035,12 @@ var Kt = {
2008
2035
  };
2009
2036
  //#endregion
2010
2037
  //#region src/components/MenuItem.tsx
2011
- function qt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
2038
+ function Yt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
2012
2039
  let c = [
2013
- Kt.item,
2014
- a === "base" && Kt.base,
2015
- r && Kt.selected,
2016
- i && Kt.destructive
2040
+ Jt.item,
2041
+ a === "base" && Jt.base,
2042
+ r && Jt.selected,
2043
+ i && Jt.destructive
2017
2044
  ].filter(Boolean).join(" ");
2018
2045
  return /* @__PURE__ */ y("button", {
2019
2046
  type: "button",
@@ -2022,23 +2049,23 @@ function qt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
2022
2049
  ...s,
2023
2050
  children: [
2024
2051
  e && /* @__PURE__ */ v("span", {
2025
- className: Kt.leading,
2052
+ className: Jt.leading,
2026
2053
  children: e
2027
2054
  }),
2028
2055
  t && /* @__PURE__ */ v("span", {
2029
- className: Kt.icon,
2056
+ className: Jt.icon,
2030
2057
  children: t
2031
2058
  }),
2032
2059
  /* @__PURE__ */ v("span", {
2033
- className: Kt.label,
2060
+ className: Jt.label,
2034
2061
  children: o
2035
2062
  }),
2036
2063
  n && /* @__PURE__ */ v("span", {
2037
- className: Kt.trailing,
2064
+ className: Jt.trailing,
2038
2065
  children: n
2039
2066
  }),
2040
2067
  r && /* @__PURE__ */ v("span", {
2041
- className: Kt.check,
2068
+ className: Jt.check,
2042
2069
  children: /* @__PURE__ */ v(U, {})
2043
2070
  })
2044
2071
  ]
@@ -2081,14 +2108,14 @@ var Y = {
2081
2108
  };
2082
2109
  //#endregion
2083
2110
  //#region src/components/Dropdown.tsx
2084
- function Jt(e) {
2111
+ function Xt(e) {
2085
2112
  return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
2086
2113
  }
2087
- function Yt(e) {
2114
+ function Zt(e) {
2088
2115
  return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
2089
2116
  }
2090
- var Xt = (e) => `and ${e} more`;
2091
- function Zt(e) {
2117
+ var Qt = (e) => `and ${e} more`;
2118
+ function $t(e) {
2092
2119
  let { variant: t = "field", triggerLabel: n, menuAlign: r = "start", label: i, helperText: a, error: o, size: c = "base", placeholder: f = "Select…", options: h, disabled: g, searchable: b, searchPlaceholder: x = "Search…", noResultsText: S = "No matches", defaultOpen: C = !1, autoFocus: w, className: T, labelClassName: E, "aria-label": D, "data-testid": O } = e, A = e.multiple === !0, [j, M] = m(C), [ee, N] = m(C), [P, F] = m(""), [te, ne] = m(!1), [I, L] = m(null), R = p(null), z = p(null), re = p(null), ie = p(null), ae = s((e) => {
2093
2120
  if (!e) return;
2094
2121
  let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
@@ -2100,7 +2127,7 @@ function Zt(e) {
2100
2127
  return r.observe(e, { childList: !0 }), () => {
2101
2128
  n.disconnect(), r.disconnect();
2102
2129
  };
2103
- }, []), oe = u(), se = u(), B = e.multiple ? void 0 : e.value, V = e.multiple && e.value || [], ce = V.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), H = A ? void 0 : h.find((e) => e.value === B), le = P.trim().toLowerCase(), ue = b && le ? h.filter((e) => Jt(e).toLowerCase().includes(le)) : h, U = ue.filter((e) => !e.disabled).map((e) => e.value), W = t === "field";
2130
+ }, []), oe = u(), se = u(), B = e.multiple ? void 0 : e.value, V = e.multiple && e.value || [], ce = V.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), H = A ? void 0 : h.find((e) => e.value === B), le = P.trim().toLowerCase(), ue = b && le ? h.filter((e) => Xt(e).toLowerCase().includes(le)) : h, U = ue.filter((e) => !e.disabled).map((e) => e.value), W = t === "field";
2104
2131
  function fe() {
2105
2132
  N(!0), M(!0);
2106
2133
  }
@@ -2172,8 +2199,8 @@ function Zt(e) {
2172
2199
  if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(ce);
2173
2200
  let t = ce[0];
2174
2201
  if (ce.length === 1) return t.label;
2175
- let n = Yt(t);
2176
- return n === void 0 ? `${ce.length} selected` : `${n} ${(e.multiple && e.moreText || Xt)(ce.length - 1)}`;
2202
+ let n = Zt(t);
2203
+ return n === void 0 ? `${ce.length} selected` : `${n} ${(e.multiple && e.moreText || Qt)(ce.length - 1)}`;
2177
2204
  }
2178
2205
  let xe = n === void 0 && (A ? ce.length === 0 : !H), Se = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
2179
2206
  className: Y.prefix,
@@ -2193,7 +2220,7 @@ function Zt(e) {
2193
2220
  ref: R,
2194
2221
  "data-testid": O,
2195
2222
  children: [
2196
- W && i && /* @__PURE__ */ v(ze, {
2223
+ W && i && /* @__PURE__ */ v(Ve, {
2197
2224
  htmlFor: oe,
2198
2225
  className: E,
2199
2226
  children: i
@@ -2263,7 +2290,7 @@ function Zt(e) {
2263
2290
  onAnimationEnd: (e) => {
2264
2291
  j || e.target !== e.currentTarget || (N(!1), ne(!1));
2265
2292
  },
2266
- children: /* @__PURE__ */ y(Wt, {
2293
+ children: /* @__PURE__ */ y(Kt, {
2267
2294
  role: "presentation",
2268
2295
  style: W ? { width: "100%" } : void 0,
2269
2296
  children: [b && /* @__PURE__ */ v("input", {
@@ -2302,14 +2329,14 @@ function Zt(e) {
2302
2329
  className: Y.noResults,
2303
2330
  role: "presentation",
2304
2331
  children: S
2305
- }) : ue.map((e, n) => /* @__PURE__ */ v(qt, {
2332
+ }) : ue.map((e, n) => /* @__PURE__ */ v(Yt, {
2306
2333
  style: { "--i": Math.min(n, 8) },
2307
2334
  "data-value": e.value,
2308
2335
  role: "option",
2309
2336
  "aria-selected": A ? V.includes(e.value) : e.value === B,
2310
2337
  size: t === "pill" ? "sm" : c,
2311
2338
  icon: e.icon,
2312
- leading: A ? /* @__PURE__ */ v(Ye, {
2339
+ leading: A ? /* @__PURE__ */ v(Ze, {
2313
2340
  checked: V.includes(e.value),
2314
2341
  disabled: e.disabled
2315
2342
  }) : void 0,
@@ -2334,7 +2361,7 @@ function Zt(e) {
2334
2361
  ]
2335
2362
  });
2336
2363
  }
2337
- var Qt = {
2364
+ var en = {
2338
2365
  item: "_item_iayt7_2",
2339
2366
  active: "_active_iayt7_39",
2340
2367
  inList: "_inList_iayt7_44",
@@ -2345,41 +2372,41 @@ var Qt = {
2345
2372
  glide: "_glide_iayt7_119",
2346
2373
  glideAnimated: "_glideAnimated_iayt7_132",
2347
2374
  glideVisible: "_glideVisible_iayt7_138"
2348
- }, $t = "data-nav-item", en = r(!1);
2349
- function tn({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
2350
- let l = c(en), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
2351
- Qt.item,
2352
- n && Qt.active,
2353
- l && Qt.inList,
2375
+ }, tn = "data-nav-item", nn = r(!1);
2376
+ function rn({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
2377
+ let l = c(nn), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
2378
+ en.item,
2379
+ n && en.active,
2380
+ l && en.inList,
2354
2381
  a
2355
2382
  ].filter(Boolean).join(" ");
2356
2383
  return /* @__PURE__ */ y(u, {
2357
2384
  ...d ? { type: "button" } : {},
2358
2385
  ...i === void 0 ? {} : { href: i },
2359
- [$t]: "",
2386
+ [tn]: "",
2360
2387
  "aria-current": n ? "page" : void 0,
2361
2388
  className: f,
2362
2389
  ...s,
2363
2390
  children: [
2364
2391
  e && /* @__PURE__ */ v("span", {
2365
- className: Qt.icon,
2392
+ className: en.icon,
2366
2393
  "aria-hidden": !0,
2367
2394
  children: e
2368
2395
  }),
2369
2396
  /* @__PURE__ */ v("span", {
2370
- className: Qt.label,
2397
+ className: en.label,
2371
2398
  children: o
2372
2399
  }),
2373
2400
  t && /* @__PURE__ */ v("span", {
2374
- className: Qt.trailing,
2401
+ className: en.trailing,
2375
2402
  children: t
2376
2403
  })
2377
2404
  ]
2378
2405
  });
2379
2406
  }
2380
- function nn({ children: e, className: t, ...n }) {
2407
+ function an({ children: e, className: t, ...n }) {
2381
2408
  let r = p(null), [i, a] = m(null), [o, c] = m(!1), [l, u] = m(!1), f = s((e) => {
2382
- let t = r.current, n = e instanceof Element ? e.closest(`[${$t}]`) : null;
2409
+ let t = r.current, n = e instanceof Element ? e.closest(`[${tn}]`) : null;
2383
2410
  if (!t || !n || !t.contains(n)) return;
2384
2411
  if (n.matches(":disabled, [aria-disabled=\"true\"], [hidden]")) {
2385
2412
  c(!1);
@@ -2393,11 +2420,11 @@ function nn({ children: e, className: t, ...n }) {
2393
2420
  }, [o]);
2394
2421
  return d(() => {
2395
2422
  o || u(!1);
2396
- }, [o]), /* @__PURE__ */ v(en.Provider, {
2423
+ }, [o]), /* @__PURE__ */ v(nn.Provider, {
2397
2424
  value: !0,
2398
2425
  children: /* @__PURE__ */ y("div", {
2399
2426
  ref: r,
2400
- className: [Qt.list, t].filter(Boolean).join(" "),
2427
+ className: [en.list, t].filter(Boolean).join(" "),
2401
2428
  onPointerOver: (e) => e.pointerType === "mouse" && f(e.target),
2402
2429
  onMouseLeave: () => c(!1),
2403
2430
  onFocus: (e) => e.target.matches(":focus-visible") && f(e.target),
@@ -2406,9 +2433,9 @@ function nn({ children: e, className: t, ...n }) {
2406
2433
  children: [/* @__PURE__ */ v("span", {
2407
2434
  "aria-hidden": !0,
2408
2435
  className: [
2409
- Qt.glide,
2410
- l && Qt.glideAnimated,
2411
- o && Qt.glideVisible
2436
+ en.glide,
2437
+ l && en.glideAnimated,
2438
+ o && en.glideVisible
2412
2439
  ].filter(Boolean).join(" "),
2413
2440
  style: i ? {
2414
2441
  translate: `0 ${i.top}px`,
@@ -2420,7 +2447,7 @@ function nn({ children: e, className: t, ...n }) {
2420
2447
  }
2421
2448
  //#endregion
2422
2449
  //#region src/components/Logo.tsx
2423
- function rn({ size: e = 40, "aria-label": t, ...n }) {
2450
+ function on({ size: e = 40, "aria-label": t, ...n }) {
2424
2451
  return /* @__PURE__ */ y("svg", {
2425
2452
  width: e,
2426
2453
  height: e,
@@ -2462,7 +2489,7 @@ var X = {
2462
2489
  };
2463
2490
  //#endregion
2464
2491
  //#region src/components/Sidebar.tsx
2465
- function an({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
2492
+ function sn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
2466
2493
  return /* @__PURE__ */ y("aside", {
2467
2494
  className: [X.root, o].filter(Boolean).join(" "),
2468
2495
  children: [
@@ -2488,7 +2515,7 @@ function an({ header: e, switcher: t, children: n, footer: r, switcherLayout: i
2488
2515
  ]
2489
2516
  });
2490
2517
  }
2491
- function on({ title: e, subtitle: t, action: n }) {
2518
+ function cn({ title: e, subtitle: t, action: n }) {
2492
2519
  return /* @__PURE__ */ y("div", {
2493
2520
  className: X.footerRow,
2494
2521
  children: [/* @__PURE__ */ y("div", {
@@ -2506,7 +2533,7 @@ function on({ title: e, subtitle: t, action: n }) {
2506
2533
  })]
2507
2534
  });
2508
2535
  }
2509
- function sn({ items: e, value: t, onChange: n, "aria-label": r }) {
2536
+ function ln({ items: e, value: t, onChange: n, "aria-label": r }) {
2510
2537
  return /* @__PURE__ */ v("div", {
2511
2538
  role: "group",
2512
2539
  "aria-label": r,
@@ -2532,21 +2559,21 @@ function sn({ items: e, value: t, onChange: n, "aria-label": r }) {
2532
2559
  }, e.value))
2533
2560
  });
2534
2561
  }
2535
- var cn = { highlight: "_highlight_1pz29_1" };
2562
+ var un = { highlight: "_highlight_1pz29_1" };
2536
2563
  //#endregion
2537
2564
  //#region src/components/HighlightText.tsx
2538
- function ln(e) {
2565
+ function dn(e) {
2539
2566
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2540
2567
  }
2541
- function un({ text: e, query: n }) {
2568
+ function fn({ text: e, query: n }) {
2542
2569
  if (!n) return /* @__PURE__ */ v(_, { children: e });
2543
- let r = e.split(RegExp(`(${ln(n)})`, "ig"));
2570
+ let r = e.split(RegExp(`(${dn(n)})`, "ig"));
2544
2571
  return /* @__PURE__ */ v(_, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ v("mark", {
2545
- className: cn.highlight,
2572
+ className: un.highlight,
2546
2573
  children: e
2547
2574
  }, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
2548
2575
  }
2549
- var dn = {
2576
+ var pn = {
2550
2577
  group: "_group_jslsh_1",
2551
2578
  btn: "_btn_jslsh_4",
2552
2579
  caret: "_caret_jslsh_31",
@@ -2568,24 +2595,24 @@ var dn = {
2568
2595
  };
2569
2596
  //#endregion
2570
2597
  //#region src/components/FilterSection.tsx
2571
- function fn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2598
+ function mn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2572
2599
  let [s, c] = m(""), l = s.trim().toLowerCase(), u = l ? t.filter((e) => n(e).toLowerCase().includes(l)) : t, d = t.length > 0 && r.size === t.length;
2573
2600
  return /* @__PURE__ */ y("div", { children: [
2574
2601
  /* @__PURE__ */ y("div", {
2575
- className: dn.sectionHeader,
2602
+ className: pn.sectionHeader,
2576
2603
  children: [/* @__PURE__ */ v("div", {
2577
- className: dn.sectionLabel,
2604
+ className: pn.sectionLabel,
2578
2605
  children: e
2579
2606
  }), a && /* @__PURE__ */ v("button", {
2580
2607
  type: "button",
2581
- className: dn.allToggle,
2608
+ className: pn.allToggle,
2582
2609
  onClick: () => a(d ? [] : t),
2583
2610
  children: d ? "Deselect all" : "Select all"
2584
2611
  })]
2585
2612
  }),
2586
2613
  o && /* @__PURE__ */ v("input", {
2587
2614
  type: "text",
2588
- className: dn.search,
2615
+ className: pn.search,
2589
2616
  placeholder: `Search ${e.toLowerCase()}…`,
2590
2617
  autoComplete: "off",
2591
2618
  value: s,
@@ -2593,12 +2620,12 @@ function fn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
2593
2620
  onChange: (e) => c(e.target.value)
2594
2621
  }),
2595
2622
  /* @__PURE__ */ y("div", {
2596
- className: dn.optionsList,
2623
+ className: pn.optionsList,
2597
2624
  children: [u.length === 0 && /* @__PURE__ */ v("div", {
2598
- className: dn.empty,
2625
+ className: pn.empty,
2599
2626
  children: "No match"
2600
- }), u.map((e) => /* @__PURE__ */ v(Je, {
2601
- className: dn.option,
2627
+ }), u.map((e) => /* @__PURE__ */ v(Xe, {
2628
+ className: pn.option,
2602
2629
  checked: r.has(e),
2603
2630
  onChange: () => i(e),
2604
2631
  label: n(e)
@@ -2606,7 +2633,7 @@ function fn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
2606
2633
  })
2607
2634
  ] });
2608
2635
  }
2609
- var pn = {
2636
+ var hn = {
2610
2637
  line: "_line_19p3r_1",
2611
2638
  box: "_box_19p3r_2",
2612
2639
  indicator: "_indicator_19p3r_9",
@@ -2622,7 +2649,7 @@ var pn = {
2622
2649
  };
2623
2650
  //#endregion
2624
2651
  //#region src/components/Tabs.tsx
2625
- function mn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2652
+ function gn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2626
2653
  let o = e.filter((e) => !e.disabled).map((e) => e.value), s = p(null), c = p(/* @__PURE__ */ new Map()), l = p(t), [u, f] = m(null), [h, g] = m("idle");
2627
2654
  d(() => {
2628
2655
  let e = c.current.get(t);
@@ -2661,18 +2688,18 @@ function mn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
2661
2688
  ref: s,
2662
2689
  role: "tablist",
2663
2690
  className: [
2664
- pn[r],
2665
- r === "box" && i === "sm" && pn.sm,
2666
- r === "box" && i === "lg" && pn.lg
2691
+ hn[r],
2692
+ r === "box" && i === "sm" && hn.sm,
2693
+ r === "box" && i === "lg" && hn.lg
2667
2694
  ].filter(Boolean).join(" "),
2668
2695
  onKeyDown: b,
2669
2696
  ...a,
2670
2697
  children: [u && /* @__PURE__ */ v("span", {
2671
2698
  "aria-hidden": !0,
2672
2699
  className: [
2673
- pn.indicator,
2674
- r === "line" ? pn.indicatorLine : pn.indicatorBox,
2675
- h === "settling" && pn.settling
2700
+ hn.indicator,
2701
+ r === "line" ? hn.indicatorLine : hn.indicatorBox,
2702
+ h === "settling" && hn.settling
2676
2703
  ].filter(Boolean).join(" "),
2677
2704
  onTransitionEnd: _,
2678
2705
  style: {
@@ -2693,34 +2720,34 @@ function mn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
2693
2720
  disabled: e.disabled,
2694
2721
  tabIndex: r ? 0 : -1,
2695
2722
  className: [
2696
- pn.tab,
2697
- r && pn.selected,
2698
- i && pn.iconOnly
2723
+ hn.tab,
2724
+ r && hn.selected,
2725
+ i && hn.iconOnly
2699
2726
  ].filter(Boolean).join(" "),
2700
2727
  onClick: () => !e.disabled && n(e.value),
2701
2728
  children: [e.icon && /* @__PURE__ */ v("span", {
2702
- className: pn.icon,
2729
+ className: hn.icon,
2703
2730
  children: e.icon
2704
2731
  }), e.label]
2705
2732
  }, e.value);
2706
2733
  })]
2707
2734
  });
2708
2735
  }
2709
- var hn = {
2736
+ var _n = {
2710
2737
  root: "_root_16e39_1",
2711
2738
  label: "_label_16e39_7"
2712
2739
  };
2713
2740
  //#endregion
2714
2741
  //#region src/components/Toggle.tsx
2715
- function gn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2742
+ function vn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2716
2743
  let a = u();
2717
2744
  return /* @__PURE__ */ y("div", {
2718
- className: hn.root,
2745
+ className: _n.root,
2719
2746
  children: [r && /* @__PURE__ */ v("span", {
2720
2747
  id: a,
2721
- className: hn.label,
2748
+ className: _n.label,
2722
2749
  children: r
2723
- }), /* @__PURE__ */ v(mn, {
2750
+ }), /* @__PURE__ */ v(gn, {
2724
2751
  items: e,
2725
2752
  value: t,
2726
2753
  onChange: n,
@@ -2731,7 +2758,7 @@ function gn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2731
2758
  })]
2732
2759
  });
2733
2760
  }
2734
- var _n = {
2761
+ var yn = {
2735
2762
  spinner: "_spinner_9jjxr_3",
2736
2763
  inner: "_inner_9jjxr_11",
2737
2764
  outer: "_outer_9jjxr_12",
@@ -2742,10 +2769,10 @@ var _n = {
2742
2769
  };
2743
2770
  //#endregion
2744
2771
  //#region src/components/Spinner.tsx
2745
- function vn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2772
+ function bn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2746
2773
  let a = [
2747
- _n.spinner,
2748
- _n[e],
2774
+ yn.spinner,
2775
+ yn[e],
2749
2776
  r
2750
2777
  ].filter(Boolean).join(" ");
2751
2778
  return /* @__PURE__ */ y("div", {
@@ -2758,7 +2785,7 @@ function vn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2758
2785
  },
2759
2786
  "data-testid": i,
2760
2787
  children: [/* @__PURE__ */ v("svg", {
2761
- className: _n.inner,
2788
+ className: yn.inner,
2762
2789
  width: t,
2763
2790
  height: t,
2764
2791
  viewBox: "0 0 64 64",
@@ -2766,7 +2793,7 @@ function vn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2766
2793
  "aria-hidden": "true",
2767
2794
  children: /* @__PURE__ */ v("path", { d: "M45.4273 17.5099C45.5053 17.5796 45.5088 17.6535 45.4377 17.7316L38.8829 24.8071C38.8634 24.828 38.8365 24.8404 38.8079 24.8416C38.7793 24.8428 38.7514 24.8326 38.7303 24.8134C36.6569 22.9045 34.221 22.0275 31.4225 22.1823C29.9153 22.2659 28.5572 22.6333 27.3483 23.2845C25.0295 24.5352 23.4428 26.4155 22.588 28.9253C20.717 34.4308 24.3708 40.1612 29.8184 41.6584C30.8097 41.9302 31.99 41.9735 33.3593 41.788C35.158 41.5433 36.8709 40.5854 38.3412 39.5627C38.4022 39.5203 38.4764 39.5014 38.5502 39.5094C38.6241 39.5175 38.6925 39.552 38.7428 39.6066L45.1742 46.6069C45.1803 46.6137 45.185 46.6217 45.188 46.6303C45.191 46.639 45.1923 46.6482 45.1917 46.6573C45.1911 46.6665 45.1887 46.6754 45.1846 46.6836C45.1805 46.6918 45.1748 46.6992 45.1679 46.7052C44.4401 47.3033 43.6502 47.8855 42.7982 48.4516C39.8799 50.3897 36.6339 51.4633 33.0602 51.6725C29.3847 51.8872 25.9031 51.1106 22.6152 49.3425C19.7917 47.8227 17.4903 45.764 15.7112 43.1663C14.4132 41.2707 13.4349 39.3097 12.8667 37.0717C11.973 33.5775 11.9925 30.1014 12.9253 26.6435C13.1679 25.7483 13.5465 24.8469 13.8414 23.9412C14.6703 21.4035 16.9915 18.887 18.9133 17.1899C26.3467 10.6186 38.1184 10.8908 45.4273 17.5099Z" })
2768
2795
  }), /* @__PURE__ */ v("svg", {
2769
- className: _n.outer,
2796
+ className: yn.outer,
2770
2797
  width: t,
2771
2798
  height: t,
2772
2799
  viewBox: "0 0 64 64",
@@ -2798,14 +2825,14 @@ var Z = {
2798
2825
  sheet: "_sheet_3vs6a_206",
2799
2826
  fullscreen: "_fullscreen_3vs6a_212",
2800
2827
  instant: "_instant_3vs6a_222"
2801
- }, yn = 200, bn = "(max-width: 639px)", xn = "(prefers-reduced-motion: reduce)", Sn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", Cn = r(null);
2802
- function wn(e) {
2803
- let t = c(Cn);
2828
+ }, xn = 200, Sn = "(max-width: 639px)", Cn = "(prefers-reduced-motion: reduce)", wn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", Tn = r(null);
2829
+ function En(e) {
2830
+ let t = c(Tn);
2804
2831
  if (!t) throw Error(`${e} must be rendered inside <Modal>`);
2805
2832
  return t;
2806
2833
  }
2807
- var Tn = [];
2808
- function En(e) {
2834
+ var Dn = [];
2835
+ function On(e) {
2809
2836
  let [t, n] = m(() => typeof window < "u" && window.matchMedia(e).matches);
2810
2837
  return l(() => {
2811
2838
  let t = window.matchMedia(e), r = () => n(t.matches);
@@ -2813,7 +2840,7 @@ function En(e) {
2813
2840
  }, [e]), t;
2814
2841
  }
2815
2842
  function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", onSubmit: i, dismissible: a = !0, instantInitialOpen: o = !1, portalSelector: c = "#container", isTop: d = !0, role: f = "dialog", "aria-labelledby": h, "data-testid": _, className: y, children: b }) {
2816
- let x = u(), S = `${x}-title`, C = `${x}-description`, [w, T] = m(!1), [E, D] = m(e), [O, k] = m(e && o), [A, j] = m(!1), M = En(bn), ee = En(xn), N = p(null), P = p(null), F = p(!1), te = p(!1), ne = p(Symbol("modal")), I = p(e), L = p(t);
2843
+ let x = u(), S = `${x}-title`, C = `${x}-description`, [w, T] = m(!1), [E, D] = m(e), [O, k] = m(e && o), [A, j] = m(!1), M = On(Sn), ee = On(Cn), N = p(null), P = p(null), F = p(!1), te = p(!1), ne = p(Symbol("modal")), I = p(e), L = p(t);
2817
2844
  L.current = t, l(() => T(!0), []), l(() => {
2818
2845
  if (e) {
2819
2846
  if (F.current) return;
@@ -2825,7 +2852,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2825
2852
  return () => cancelAnimationFrame(e);
2826
2853
  }
2827
2854
  if (F.current = !1, k(!1), !E) return;
2828
- let t = setTimeout(() => D(!1), ee ? 0 : yn);
2855
+ let t = setTimeout(() => D(!1), ee ? 0 : xn);
2829
2856
  return () => clearTimeout(t);
2830
2857
  }, [e]), l(() => {
2831
2858
  !E && P.current && (P.current.focus?.(), P.current = null);
@@ -2833,22 +2860,22 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2833
2860
  let R = s(() => {
2834
2861
  if (!a || F.current) return;
2835
2862
  F.current = !0, k(!1);
2836
- let e = ee ? 0 : yn;
2863
+ let e = ee ? 0 : xn;
2837
2864
  window.setTimeout(() => L.current(), e);
2838
2865
  }, [a, ee]);
2839
2866
  l(() => {
2840
2867
  if (!E) return;
2841
2868
  let e = ne.current;
2842
- d && Tn.push(e);
2869
+ d && Dn.push(e);
2843
2870
  let t = (t) => {
2844
- t.key === "Escape" && Tn[Tn.length - 1] === e && (t.preventDefault(), R());
2871
+ t.key === "Escape" && Dn[Dn.length - 1] === e && (t.preventDefault(), R());
2845
2872
  };
2846
2873
  document.addEventListener("keydown", t);
2847
2874
  let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
2848
2875
  return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`), N.current?.focus({ preventScroll: !0 }), () => {
2849
2876
  document.removeEventListener("keydown", t);
2850
- let a = Tn.indexOf(e);
2851
- a !== -1 && Tn.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
2877
+ let a = Dn.indexOf(e);
2878
+ a !== -1 && Dn.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
2852
2879
  };
2853
2880
  }, [
2854
2881
  E,
@@ -2857,7 +2884,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2857
2884
  ]);
2858
2885
  let z = (e) => {
2859
2886
  if (e.key !== "Tab" || !N.current) return;
2860
- let t = Array.from(N.current.querySelectorAll(Sn));
2887
+ let t = Array.from(N.current.querySelectorAll(wn));
2861
2888
  if (t.length === 0) {
2862
2889
  e.preventDefault();
2863
2890
  return;
@@ -2891,7 +2918,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2891
2918
  setHasDescription: j,
2892
2919
  requestClose: R
2893
2920
  };
2894
- return g(/* @__PURE__ */ v(Cn.Provider, {
2921
+ return g(/* @__PURE__ */ v(Tn.Provider, {
2895
2922
  value: oe,
2896
2923
  children: /* @__PURE__ */ v("div", {
2897
2924
  className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
@@ -2914,13 +2941,13 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2914
2941
  })
2915
2942
  }), re);
2916
2943
  }
2917
- function Dn({ children: e, onClose: t }) {
2918
- let { requestClose: n, dismissible: r } = wn("Modal.Cover");
2944
+ function kn({ children: e, onClose: t }) {
2945
+ let { requestClose: n, dismissible: r } = En("Modal.Cover");
2919
2946
  return /* @__PURE__ */ y("div", {
2920
2947
  className: Z.cover,
2921
2948
  children: [e, t && /* @__PURE__ */ v(k, {
2922
2949
  variant: "tertiary",
2923
- leadingIcon: /* @__PURE__ */ v(je, {}),
2950
+ leadingIcon: /* @__PURE__ */ v(Ne, {}),
2924
2951
  "aria-label": "Close",
2925
2952
  "data-testid": "modal-close",
2926
2953
  className: Z.closeButton,
@@ -2931,7 +2958,7 @@ function Dn({ children: e, onClose: t }) {
2931
2958
  })]
2932
2959
  });
2933
2960
  }
2934
- function On({ children: t }) {
2961
+ function An({ children: t }) {
2935
2962
  let n = e.toArray(t), r = n.filter((e) => o(e) && e.type.isModalIcon === !0), i = n.filter((e) => !r.includes(e));
2936
2963
  return /* @__PURE__ */ y("div", {
2937
2964
  className: Z.message,
@@ -2941,52 +2968,52 @@ function On({ children: t }) {
2941
2968
  })]
2942
2969
  });
2943
2970
  }
2944
- function kn({ children: e, tone: t = "neutral" }) {
2971
+ function jn({ children: e, tone: t = "neutral" }) {
2945
2972
  return /* @__PURE__ */ v("div", {
2946
2973
  className: `${Z.icon} ${Z[`tone-${t}`]}`,
2947
2974
  "aria-hidden": "true",
2948
2975
  children: e
2949
2976
  });
2950
2977
  }
2951
- function An({ children: e, id: t }) {
2952
- let { titleId: n } = wn("Modal.Title");
2978
+ function Mn({ children: e, id: t }) {
2979
+ let { titleId: n } = En("Modal.Title");
2953
2980
  return /* @__PURE__ */ v("h2", {
2954
2981
  id: t ?? n,
2955
2982
  className: Z.title,
2956
2983
  children: e
2957
2984
  });
2958
2985
  }
2959
- function jn({ children: e }) {
2960
- let { descriptionId: t, setHasDescription: n } = wn("Modal.Description");
2986
+ function Nn({ children: e }) {
2987
+ let { descriptionId: t, setHasDescription: n } = En("Modal.Description");
2961
2988
  return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ v("p", {
2962
2989
  id: t,
2963
2990
  className: Z.description,
2964
2991
  children: e
2965
2992
  });
2966
2993
  }
2967
- function Mn({ children: e }) {
2994
+ function Pn({ children: e }) {
2968
2995
  return /* @__PURE__ */ v("p", {
2969
2996
  className: Z.hint,
2970
2997
  children: e
2971
2998
  });
2972
2999
  }
2973
- function Nn({ children: e }) {
3000
+ function Fn({ children: e }) {
2974
3001
  return /* @__PURE__ */ v("div", {
2975
3002
  className: Z.body,
2976
3003
  children: e
2977
3004
  });
2978
3005
  }
2979
- function Pn({ children: t }) {
2980
- let { isMobile: r } = wn("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
3006
+ function In({ children: t }) {
3007
+ let { isMobile: r } = En("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
2981
3008
  return /* @__PURE__ */ v("div", {
2982
3009
  className: Z.footer,
2983
3010
  children: i
2984
3011
  });
2985
3012
  }
2986
- Q.Cover = Dn, Q.Message = On, kn.isModalIcon = !0, Q.Icon = kn, Q.Title = An, Q.Description = jn, Q.Hint = Mn, Q.Body = Nn, Q.Footer = Pn;
3013
+ Q.Cover = kn, Q.Message = An, jn.isModalIcon = !0, Q.Icon = jn, Q.Title = Mn, Q.Description = Nn, Q.Hint = Pn, Q.Body = Fn, Q.Footer = In;
2987
3014
  //#endregion
2988
3015
  //#region src/components/ConfirmDialog.tsx
2989
- function Fn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon: a, confirmLabel: o, cancelLabel: s = "Cancel", tone: c = "default", loading: l = !1, "data-testid": u }) {
3016
+ function Ln({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon: a, confirmLabel: o, cancelLabel: s = "Cancel", tone: c = "default", loading: l = !1, "data-testid": u }) {
2990
3017
  let d = c === "dangerous";
2991
3018
  return /* @__PURE__ */ y(Q, {
2992
3019
  open: e,
@@ -3015,7 +3042,7 @@ function Fn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon:
3015
3042
  })] })]
3016
3043
  });
3017
3044
  }
3018
- var In = {
3045
+ var Rn = {
3019
3046
  root: "_root_rybn9_1",
3020
3047
  success: "_success_rybn9_11",
3021
3048
  warning: "_warning_rybn9_17",
@@ -3028,45 +3055,45 @@ var In = {
3028
3055
  };
3029
3056
  //#endregion
3030
3057
  //#region src/components/EmptyState.tsx
3031
- function Ln({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
3058
+ function zn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
3032
3059
  return /* @__PURE__ */ y("div", {
3033
- className: `${In.root} ${e === "neutral" ? "" : In[e]}`,
3060
+ className: `${Rn.root} ${e === "neutral" ? "" : Rn[e]}`,
3034
3061
  ...a,
3035
3062
  children: [t != null && /* @__PURE__ */ v("div", {
3036
- className: In.icon,
3063
+ className: Rn.icon,
3037
3064
  "aria-hidden": "true",
3038
3065
  children: t
3039
3066
  }), /* @__PURE__ */ y("div", {
3040
- className: In.body,
3067
+ className: Rn.body,
3041
3068
  children: [
3042
3069
  /* @__PURE__ */ v("p", {
3043
- className: In.title,
3070
+ className: Rn.title,
3044
3071
  children: n
3045
3072
  }),
3046
3073
  r != null && /* @__PURE__ */ v("div", {
3047
- className: In.text,
3074
+ className: Rn.text,
3048
3075
  children: r
3049
3076
  }),
3050
3077
  i != null && /* @__PURE__ */ v("div", {
3051
- className: In.action,
3078
+ className: Rn.action,
3052
3079
  children: i
3053
3080
  })
3054
3081
  ]
3055
3082
  })]
3056
3083
  });
3057
3084
  }
3058
- var Rn = { photoPreview: "_photoPreview_1m76k_2" }, zn = 180, Bn = 12, Vn = 8;
3059
- function Hn(e, t, n = zn) {
3085
+ var Bn = { photoPreview: "_photoPreview_1m76k_2" }, Vn = 180, Hn = 12, Un = 8;
3086
+ function Wn(e, t, n = Vn) {
3060
3087
  let r = (e, t) => {
3061
- let r = e + Bn, i = r + n + Vn > t ? e - Bn - n : r;
3062
- return Math.max(Vn, i);
3088
+ let r = e + Hn, i = r + n + Un > t ? e - Hn - n : r;
3089
+ return Math.max(Un, i);
3063
3090
  };
3064
3091
  return {
3065
3092
  left: r(e, window.innerWidth),
3066
3093
  top: r(t, window.innerHeight)
3067
3094
  };
3068
3095
  }
3069
- function Un({ src: e, size: t = zn, children: r }) {
3096
+ function Gn({ src: e, size: t = Vn, children: r }) {
3070
3097
  let [i, a] = m(null), [o, s] = m(), c = i !== null;
3071
3098
  if (l(() => {
3072
3099
  if (!c) return;
@@ -3092,14 +3119,14 @@ function Un({ src: e, size: t = zn, children: r }) {
3092
3119
  }
3093
3120
  });
3094
3121
  return /* @__PURE__ */ y(_, { children: [f, i && g(/* @__PURE__ */ v("img", {
3095
- className: Rn.photoPreview,
3122
+ className: Bn.photoPreview,
3096
3123
  src: e,
3097
3124
  alt: "",
3098
3125
  "aria-hidden": "true",
3099
3126
  style: {
3100
3127
  width: t,
3101
3128
  height: t,
3102
- ...Hn(i.x, i.y, t)
3129
+ ...Wn(i.x, i.y, t)
3103
3130
  },
3104
3131
  onError: () => {
3105
3132
  s(e), a(null);
@@ -3136,17 +3163,18 @@ var $ = {
3136
3163
  workerText: "_workerText_44xcu_231",
3137
3164
  actions: "_actions_44xcu_236",
3138
3165
  srOnly: "_srOnly_44xcu_247"
3139
- }, Wn = {
3166
+ }, Kn = {
3140
3167
  worker: "Worker:",
3141
3168
  comment: "Comment:",
3142
3169
  inaccessible: "Inaccessible",
3143
3170
  archived: "Archived",
3144
3171
  unavailable: "Preview unavailable",
3172
+ notReady: "Not ready",
3145
3173
  new: "Unwatched"
3146
3174
  };
3147
- function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n, previewAlt: r, dateTime: i, title: a, description: o, meta: s, worker: c, comment: l, viewed: u = !1, current: d, onClick: f, hoverable: p, actions: h, labels: g, "aria-label": b, className: x, "data-testid": S }) {
3175
+ function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n, previewAlt: r, dateTime: i, title: a, description: o, meta: s, worker: c, comment: l, viewed: u = !1, current: d, onClick: f, hoverable: p, actions: h, labels: g, "aria-label": b, className: x, "data-testid": S }) {
3148
3176
  let C = {
3149
- ...Wn,
3177
+ ...Kn,
3150
3178
  ...g
3151
3179
  }, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!f, M = (e) => {
3152
3180
  e.target === e.currentTarget && (e.key === "Enter" ? f?.() : e.key === " " && (e.preventDefault(), f?.()));
@@ -3183,17 +3211,17 @@ function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3183
3211
  }
3184
3212
  }) : /* @__PURE__ */ v("div", {
3185
3213
  className: `${$.tile} ${t === "play" ? $.tilePlay : ""}`,
3186
- children: t === "play" ? /* @__PURE__ */ v(Te, {
3214
+ children: t === "play" ? /* @__PURE__ */ v(De, {
3187
3215
  size: 20,
3188
3216
  "aria-hidden": "true"
3189
3217
  }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
3190
3218
  className: $.icon,
3191
- children: v(t === "archived" ? ce : t === "unavailable" ? xe : Ce, {
3219
+ children: v(t === "archived" ? ce : t === "unavailable" ? Ce : t === "notReady" ? xe : Te, {
3192
3220
  size: 12,
3193
3221
  strokeWidth: 1,
3194
3222
  "aria-hidden": "true"
3195
3223
  })
3196
- }), /* @__PURE__ */ v("span", { children: t === "archived" ? C.archived : t === "unavailable" ? C.unavailable : C.inaccessible })] })
3224
+ }), /* @__PURE__ */ v("span", { children: t === "archived" ? C.archived : t === "unavailable" ? C.unavailable : t === "notReady" ? C.notReady : C.inaccessible })] })
3197
3225
  })
3198
3226
  }), !u && /* @__PURE__ */ v("span", {
3199
3227
  className: $.badge,
@@ -3233,7 +3261,7 @@ function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3233
3261
  children: C.worker
3234
3262
  }), /* @__PURE__ */ y("div", {
3235
3263
  className: $.workerRow,
3236
- children: [A ? /* @__PURE__ */ v(Un, {
3264
+ children: [A ? /* @__PURE__ */ v(Gn, {
3237
3265
  src: k,
3238
3266
  children: /* @__PURE__ */ v("img", {
3239
3267
  className: $.photo,
@@ -3246,7 +3274,7 @@ function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3246
3274
  }) : /* @__PURE__ */ v("div", {
3247
3275
  className: `${$.photo} ${$.emptyPhoto}`,
3248
3276
  "aria-hidden": "true",
3249
- children: /* @__PURE__ */ v(ke, { size: 20 })
3277
+ children: /* @__PURE__ */ v(je, { size: 20 })
3250
3278
  }), /* @__PURE__ */ v("div", {
3251
3279
  className: $.workerText,
3252
3280
  children: /* @__PURE__ */ v("div", {
@@ -3273,14 +3301,14 @@ function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3273
3301
  ]
3274
3302
  });
3275
3303
  }
3276
- function Kn({ className: e, "data-testid": t }) {
3304
+ function Jn({ className: e, "data-testid": t }) {
3277
3305
  return /* @__PURE__ */ y("div", {
3278
3306
  className: `${$.root} ${e ?? ""}`,
3279
3307
  "data-testid": t,
3280
3308
  "aria-hidden": "true",
3281
3309
  children: [/* @__PURE__ */ v("div", {
3282
3310
  className: $.side,
3283
- children: /* @__PURE__ */ v(kt, {
3311
+ children: /* @__PURE__ */ v(jt, {
3284
3312
  width: 72,
3285
3313
  height: 48
3286
3314
  })
@@ -3289,15 +3317,15 @@ function Kn({ className: e, "data-testid": t }) {
3289
3317
  children: /* @__PURE__ */ y("div", {
3290
3318
  className: $.info,
3291
3319
  children: [
3292
- /* @__PURE__ */ v(kt, {
3320
+ /* @__PURE__ */ v(jt, {
3293
3321
  variant: "text",
3294
3322
  width: "40%"
3295
3323
  }),
3296
- /* @__PURE__ */ v(kt, {
3324
+ /* @__PURE__ */ v(jt, {
3297
3325
  variant: "text",
3298
3326
  width: "65%"
3299
3327
  }),
3300
- /* @__PURE__ */ v(kt, {
3328
+ /* @__PURE__ */ v(jt, {
3301
3329
  variant: "text",
3302
3330
  width: "90%"
3303
3331
  })
@@ -3306,18 +3334,18 @@ function Kn({ className: e, "data-testid": t }) {
3306
3334
  })]
3307
3335
  });
3308
3336
  }
3309
- var qn = Object.assign(Gn, { Skeleton: Kn });
3337
+ var Yn = Object.assign(qn, { Skeleton: Jn });
3310
3338
  //#endregion
3311
3339
  //#region src/utils/format.ts
3312
- function Jn(e) {
3340
+ function Xn(e) {
3313
3341
  let t = Math.floor(e / 60), n = e % 60;
3314
3342
  return `${t}h:${String(n).padStart(2, "0")}m`;
3315
3343
  }
3316
- function Yn(e, t) {
3344
+ function Zn(e, t) {
3317
3345
  let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
3318
3346
  return `${i(n)}:${i(r)}:${i(t)}`;
3319
3347
  }
3320
3348
  //#endregion
3321
- export { N as Badge, k as Button, St as Calendar, j as Card, Je as Checkbox, Xe as CheckboxGroup, Fn as ConfirmDialog, ot as DateField, Dt as DatePicker, Bt as DateRangePicker, Zt as Dropdown, Ln as EmptyState, ze as FieldLabel, fn as FilterSection, un as HighlightText, sn as LanguageSwitch, rn as Logo, Wt as Menu, Gt as MenuDivider, qt as MenuItem, Q as Modal, tn as NavItem, nn as NavList, Ht as NumberField, at as PasswordField, Un as PhotoPreview, Qe as RadioButton, $e as RadioGroup, an as Sidebar, on as SidebarFooter, kt as Skeleton, vn as Spinner, tt as Switch, mn as Tabs, Fe as Tag, Be as TagGroup, it as TextArea, nt as TextField, gn as Toggle, He as Toolbar, Ke as ToolbarAdaptive, C as Tooltip, qn as VideoCard, Jn as formatDuration, Yn as formatDurationHMS };
3349
+ export { N as Badge, k as Button, wt as Calendar, j as Card, Xe as Checkbox, Qe as CheckboxGroup, Ln as ConfirmDialog, ct as DateField, kt as DatePicker, Ht as DateRangePicker, $t as Dropdown, zn as EmptyState, Ve as FieldLabel, mn as FilterSection, fn as HighlightText, ln as LanguageSwitch, on as Logo, Kt as Menu, qt as MenuDivider, Yt as MenuItem, Q as Modal, rn as NavItem, an as NavList, Wt as NumberField, st as PasswordField, Gn as PhotoPreview, et as RadioButton, tt as RadioGroup, sn as Sidebar, cn as SidebarFooter, jt as Skeleton, bn as Spinner, rt as Switch, gn as Tabs, Le as Tag, He as TagGroup, ot as TextArea, it as TextField, vn as Toggle, We as Toolbar, Je as ToolbarAdaptive, C as Tooltip, Yn as VideoCard, Xn as formatDuration, Zn as formatDurationHMS };
3322
3350
 
3323
3351
  //# sourceMappingURL=index.js.map