cattle-care-ui 0.5.4 → 0.5.5

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,7 +1682,7 @@ function Dt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1657
1682
  })
1658
1683
  }), document.body)] });
1659
1684
  }
1660
- var Ot = {
1685
+ var At = {
1661
1686
  skeleton: "_skeleton_5dl4r_2",
1662
1687
  rect: "_rect_5dl4r_7",
1663
1688
  text: "_text_5dl4r_13",
@@ -1667,11 +1692,11 @@ var Ot = {
1667
1692
  };
1668
1693
  //#endregion
1669
1694
  //#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 }) {
1695
+ function jt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
1671
1696
  let s = [
1672
- Ot.skeleton,
1673
- Ot[e],
1674
- i && Ot.animated,
1697
+ At.skeleton,
1698
+ At[e],
1699
+ i && At.animated,
1675
1700
  a
1676
1701
  ].filter(Boolean).join(" "), c = {};
1677
1702
  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", {
@@ -1683,12 +1708,12 @@ function kt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !
1683
1708
  }
1684
1709
  //#endregion
1685
1710
  //#region src/utils/dateRange.ts
1686
- function At(e) {
1711
+ function Mt(e) {
1687
1712
  return e.start !== null && e.end !== null;
1688
1713
  }
1689
- function jt(e, t) {
1690
- let n = st(t);
1691
- return e.start && !e.end && ft(n, e.start) >= 0 ? {
1714
+ function Nt(e, t) {
1715
+ let n = lt(t);
1716
+ return e.start && !e.end && mt(n, e.start) >= 0 ? {
1692
1717
  start: e.start,
1693
1718
  end: n
1694
1719
  } : {
@@ -1696,8 +1721,8 @@ function jt(e, t) {
1696
1721
  end: null
1697
1722
  };
1698
1723
  }
1699
- function Mt(e, t) {
1700
- return e.start && !e.end && t ? ft(t, e.start) < 0 ? {
1724
+ function Pt(e, t) {
1725
+ return e.start && !e.end && t ? mt(t, e.start) < 0 ? {
1701
1726
  start: t,
1702
1727
  end: e.start
1703
1728
  } : {
@@ -1705,8 +1730,8 @@ function Mt(e, t) {
1705
1730
  end: t
1706
1731
  } : e;
1707
1732
  }
1708
- var Nt = " – ";
1709
- function Pt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
1733
+ var Ft = " – ";
1734
+ function It(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
1710
1735
  let { start: i, end: a } = e;
1711
1736
  if (!i && !a) return "";
1712
1737
  let o = new Intl.DateTimeFormat(t, {
@@ -1717,7 +1742,7 @@ function Pt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue:
1717
1742
  day: "2-digit",
1718
1743
  year: "numeric"
1719
1744
  }), 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)}`;
1745
+ return i && !a ? l(i) : !i && a ? l(a) : pt(i, a) ? l(i) : `${l(i)}${Ft}${l(a)}`;
1721
1746
  }
1722
1747
  var J = {
1723
1748
  field: "_field_ltmv6_1",
@@ -1740,26 +1765,26 @@ var J = {
1740
1765
  months: "_months_ltmv6_220",
1741
1766
  month: "_month_ltmv6_220",
1742
1767
  footer: "_footer_ltmv6_228"
1743
- }, Ft = "(min-width: 640px)";
1744
- function It(e) {
1768
+ }, Lt = "(min-width: 640px)";
1769
+ function Rt(e) {
1745
1770
  return h((t) => {
1746
1771
  let n = window.matchMedia(e);
1747
1772
  return n.addEventListener("change", t), () => n.removeEventListener("change", t);
1748
1773
  }, () => window.matchMedia(e).matches, () => !1);
1749
1774
  }
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;
1775
+ var zt = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Bt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
1776
+ function Vt(e, t, n, r) {
1777
+ let i = zt(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
1778
+ return r && (i = ft(i, -1)), t && mt(i, zt(t)) < 0 && (i = zt(t)), i;
1754
1779
  }
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 }) {
1780
+ 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
1781
  let [ee, N] = m(!1), [P, F] = m({
1757
1782
  start: null,
1758
1783
  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, {
1784
+ }), [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
1785
  locale: l,
1761
1786
  formatValue: h
1762
- }) : ce?.label ?? Pt(e, {
1787
+ }) : ce?.label ?? It(e, {
1763
1788
  locale: l,
1764
1789
  formatValue: h
1765
1790
  }), [
@@ -1772,7 +1797,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1772
1797
  ]), W = s(() => re.current, []), fe = s((e) => {
1773
1798
  N(!1), e && re.current?.focus();
1774
1799
  }, []);
1775
- Tt({
1800
+ Dt({
1776
1801
  isOpen: V,
1777
1802
  popupRef: ie,
1778
1803
  getAnchor: W,
@@ -1784,7 +1809,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1784
1809
  o || c || (F({
1785
1810
  start: e.start,
1786
1811
  end: e.end
1787
- }), ne(null), L(zt(e, n, r, B)), z(e.end ?? e.start ?? st(/* @__PURE__ */ new Date())), N(!0));
1812
+ }), ne(null), L(Vt(e, n, r, B)), z(e.end ?? e.start ?? lt(/* @__PURE__ */ new Date())), N(!0));
1788
1813
  }
1789
1814
  function me() {
1790
1815
  V ? fe(!1) : pe();
@@ -1796,14 +1821,14 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1796
1821
  t(e.range()), fe(!0);
1797
1822
  }
1798
1823
  function _e() {
1799
- At(P) && (t({
1824
+ Mt(P) && (t({
1800
1825
  start: P.start,
1801
1826
  end: P.end
1802
1827
  }), fe(!0));
1803
1828
  }
1804
- let ve = (e) => (t) => L(ut(Lt(t), -e)), ye = Mt(P, te), be = ut(I, 1), xe = B && Rt(R, be), Se = {
1829
+ let ve = (e) => (t) => L(ft(zt(t), -e)), ye = Pt(P, te), be = ft(I, 1), xe = B && Bt(R, be), Se = {
1805
1830
  value: R,
1806
- onChange: (e) => F((t) => jt(t, e)),
1831
+ onChange: (e) => F((t) => Nt(t, e)),
1807
1832
  minDate: n,
1808
1833
  maxDate: r,
1809
1834
  locale: l,
@@ -1814,7 +1839,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1814
1839
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
1815
1840
  className: [J.field, j].filter(Boolean).join(" "),
1816
1841
  children: [
1817
- S && /* @__PURE__ */ v(ze, {
1842
+ S && /* @__PURE__ */ v(Ve, {
1818
1843
  htmlFor: oe,
1819
1844
  children: S
1820
1845
  }),
@@ -1843,7 +1868,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1843
1868
  }),
1844
1869
  c ? /* @__PURE__ */ v("span", {
1845
1870
  className: J.value,
1846
- children: /* @__PURE__ */ v(kt, {
1871
+ children: /* @__PURE__ */ v(jt, {
1847
1872
  variant: "text",
1848
1873
  width: "60%"
1849
1874
  })
@@ -1889,7 +1914,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1889
1914
  className: J.months,
1890
1915
  children: [/* @__PURE__ */ v("div", {
1891
1916
  className: J.month,
1892
- children: /* @__PURE__ */ v(St, {
1917
+ children: /* @__PURE__ */ v(wt, {
1893
1918
  ...Se,
1894
1919
  autoFocus: !xe,
1895
1920
  month: I,
@@ -1898,7 +1923,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1898
1923
  })
1899
1924
  }), B && /* @__PURE__ */ v("div", {
1900
1925
  className: J.month,
1901
- children: /* @__PURE__ */ v(St, {
1926
+ children: /* @__PURE__ */ v(wt, {
1902
1927
  ...Se,
1903
1928
  autoFocus: xe,
1904
1929
  month: be,
@@ -1916,7 +1941,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1916
1941
  }), /* @__PURE__ */ v(k, {
1917
1942
  variant: "primary",
1918
1943
  size: "sm",
1919
- disabled: !At(P),
1944
+ disabled: !Mt(P),
1920
1945
  onClick: _e,
1921
1946
  children: O
1922
1947
  })]
@@ -1924,7 +1949,7 @@ function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1924
1949
  })]
1925
1950
  }), document.body)] });
1926
1951
  }
1927
- var Vt = {
1952
+ var Ut = {
1928
1953
  field: "_field_l0zl7_1",
1929
1954
  inputWrap: "_inputWrap_l0zl7_6",
1930
1955
  errorWrap: "_errorWrap_l0zl7_19",
@@ -1938,64 +1963,64 @@ var Vt = {
1938
1963
  };
1939
1964
  //#endregion
1940
1965
  //#region src/components/NumberField.tsx
1941
- function Ht({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1966
+ function Wt({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1942
1967
  let c = u(), l = o ?? c;
1943
1968
  return /* @__PURE__ */ y("div", {
1944
- className: Vt.field,
1969
+ className: Ut.field,
1945
1970
  children: [
1946
- e && /* @__PURE__ */ v(ze, {
1971
+ e && /* @__PURE__ */ v(Ve, {
1947
1972
  htmlFor: l,
1948
1973
  children: e
1949
1974
  }),
1950
1975
  /* @__PURE__ */ y("div", {
1951
- className: `${Vt.inputWrap} ${Vt[r]} ${n ? Vt.errorWrap : ""}`,
1976
+ className: `${Ut.inputWrap} ${Ut[r]} ${n ? Ut.errorWrap : ""}`,
1952
1977
  children: [
1953
1978
  i && /* @__PURE__ */ v("span", {
1954
- className: Vt.prefix,
1979
+ className: Ut.prefix,
1955
1980
  children: i
1956
1981
  }),
1957
1982
  /* @__PURE__ */ v("input", {
1958
1983
  id: l,
1959
- className: Vt.input,
1984
+ className: Ut.input,
1960
1985
  ...s
1961
1986
  }),
1962
1987
  a && /* @__PURE__ */ v("span", {
1963
- className: Vt.suffix,
1988
+ className: Ut.suffix,
1964
1989
  children: a
1965
1990
  })
1966
1991
  ]
1967
1992
  }),
1968
1993
  n ? /* @__PURE__ */ v("span", {
1969
- className: Vt.errorText,
1994
+ className: Ut.errorText,
1970
1995
  children: n
1971
1996
  }) : t ? /* @__PURE__ */ v("span", {
1972
- className: Vt.helperText,
1997
+ className: Ut.helperText,
1973
1998
  children: t
1974
1999
  }) : null
1975
2000
  ]
1976
2001
  });
1977
2002
  }
1978
- var Ut = {
2003
+ var Gt = {
1979
2004
  menu: "_menu_xz84k_1",
1980
2005
  divider: "_divider_xz84k_15"
1981
2006
  };
1982
2007
  //#endregion
1983
2008
  //#region src/components/Menu.tsx
1984
- function Wt({ children: e, ...t }) {
2009
+ function Kt({ children: e, ...t }) {
1985
2010
  return /* @__PURE__ */ v("div", {
1986
2011
  role: "menu",
1987
- className: Ut.menu,
2012
+ className: Gt.menu,
1988
2013
  ...t,
1989
2014
  children: e
1990
2015
  });
1991
2016
  }
1992
- function Gt() {
2017
+ function qt() {
1993
2018
  return /* @__PURE__ */ v("div", {
1994
- className: Ut.divider,
2019
+ className: Gt.divider,
1995
2020
  role: "separator"
1996
2021
  });
1997
2022
  }
1998
- var Kt = {
2023
+ var Jt = {
1999
2024
  item: "_item_1sghe_1",
2000
2025
  base: "_base_1sghe_21",
2001
2026
  icon: "_icon_1sghe_31",
@@ -2008,12 +2033,12 @@ var Kt = {
2008
2033
  };
2009
2034
  //#endregion
2010
2035
  //#region src/components/MenuItem.tsx
2011
- function qt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
2036
+ function Yt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
2012
2037
  let c = [
2013
- Kt.item,
2014
- a === "base" && Kt.base,
2015
- r && Kt.selected,
2016
- i && Kt.destructive
2038
+ Jt.item,
2039
+ a === "base" && Jt.base,
2040
+ r && Jt.selected,
2041
+ i && Jt.destructive
2017
2042
  ].filter(Boolean).join(" ");
2018
2043
  return /* @__PURE__ */ y("button", {
2019
2044
  type: "button",
@@ -2022,23 +2047,23 @@ function qt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
2022
2047
  ...s,
2023
2048
  children: [
2024
2049
  e && /* @__PURE__ */ v("span", {
2025
- className: Kt.leading,
2050
+ className: Jt.leading,
2026
2051
  children: e
2027
2052
  }),
2028
2053
  t && /* @__PURE__ */ v("span", {
2029
- className: Kt.icon,
2054
+ className: Jt.icon,
2030
2055
  children: t
2031
2056
  }),
2032
2057
  /* @__PURE__ */ v("span", {
2033
- className: Kt.label,
2058
+ className: Jt.label,
2034
2059
  children: o
2035
2060
  }),
2036
2061
  n && /* @__PURE__ */ v("span", {
2037
- className: Kt.trailing,
2062
+ className: Jt.trailing,
2038
2063
  children: n
2039
2064
  }),
2040
2065
  r && /* @__PURE__ */ v("span", {
2041
- className: Kt.check,
2066
+ className: Jt.check,
2042
2067
  children: /* @__PURE__ */ v(U, {})
2043
2068
  })
2044
2069
  ]
@@ -2081,14 +2106,14 @@ var Y = {
2081
2106
  };
2082
2107
  //#endregion
2083
2108
  //#region src/components/Dropdown.tsx
2084
- function Jt(e) {
2109
+ function Xt(e) {
2085
2110
  return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
2086
2111
  }
2087
- function Yt(e) {
2112
+ function Zt(e) {
2088
2113
  return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
2089
2114
  }
2090
- var Xt = (e) => `and ${e} more`;
2091
- function Zt(e) {
2115
+ var Qt = (e) => `and ${e} more`;
2116
+ function $t(e) {
2092
2117
  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
2118
  if (!e) return;
2094
2119
  let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
@@ -2100,7 +2125,7 @@ function Zt(e) {
2100
2125
  return r.observe(e, { childList: !0 }), () => {
2101
2126
  n.disconnect(), r.disconnect();
2102
2127
  };
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";
2128
+ }, []), 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
2129
  function fe() {
2105
2130
  N(!0), M(!0);
2106
2131
  }
@@ -2172,8 +2197,8 @@ function Zt(e) {
2172
2197
  if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(ce);
2173
2198
  let t = ce[0];
2174
2199
  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)}`;
2200
+ let n = Zt(t);
2201
+ return n === void 0 ? `${ce.length} selected` : `${n} ${(e.multiple && e.moreText || Qt)(ce.length - 1)}`;
2177
2202
  }
2178
2203
  let xe = n === void 0 && (A ? ce.length === 0 : !H), Se = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
2179
2204
  className: Y.prefix,
@@ -2193,7 +2218,7 @@ function Zt(e) {
2193
2218
  ref: R,
2194
2219
  "data-testid": O,
2195
2220
  children: [
2196
- W && i && /* @__PURE__ */ v(ze, {
2221
+ W && i && /* @__PURE__ */ v(Ve, {
2197
2222
  htmlFor: oe,
2198
2223
  className: E,
2199
2224
  children: i
@@ -2263,7 +2288,7 @@ function Zt(e) {
2263
2288
  onAnimationEnd: (e) => {
2264
2289
  j || e.target !== e.currentTarget || (N(!1), ne(!1));
2265
2290
  },
2266
- children: /* @__PURE__ */ y(Wt, {
2291
+ children: /* @__PURE__ */ y(Kt, {
2267
2292
  role: "presentation",
2268
2293
  style: W ? { width: "100%" } : void 0,
2269
2294
  children: [b && /* @__PURE__ */ v("input", {
@@ -2302,14 +2327,14 @@ function Zt(e) {
2302
2327
  className: Y.noResults,
2303
2328
  role: "presentation",
2304
2329
  children: S
2305
- }) : ue.map((e, n) => /* @__PURE__ */ v(qt, {
2330
+ }) : ue.map((e, n) => /* @__PURE__ */ v(Yt, {
2306
2331
  style: { "--i": Math.min(n, 8) },
2307
2332
  "data-value": e.value,
2308
2333
  role: "option",
2309
2334
  "aria-selected": A ? V.includes(e.value) : e.value === B,
2310
2335
  size: t === "pill" ? "sm" : c,
2311
2336
  icon: e.icon,
2312
- leading: A ? /* @__PURE__ */ v(Ye, {
2337
+ leading: A ? /* @__PURE__ */ v(Ze, {
2313
2338
  checked: V.includes(e.value),
2314
2339
  disabled: e.disabled
2315
2340
  }) : void 0,
@@ -2334,7 +2359,7 @@ function Zt(e) {
2334
2359
  ]
2335
2360
  });
2336
2361
  }
2337
- var Qt = {
2362
+ var en = {
2338
2363
  item: "_item_iayt7_2",
2339
2364
  active: "_active_iayt7_39",
2340
2365
  inList: "_inList_iayt7_44",
@@ -2345,41 +2370,41 @@ var Qt = {
2345
2370
  glide: "_glide_iayt7_119",
2346
2371
  glideAnimated: "_glideAnimated_iayt7_132",
2347
2372
  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,
2373
+ }, tn = "data-nav-item", nn = r(!1);
2374
+ function rn({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
2375
+ let l = c(nn), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
2376
+ en.item,
2377
+ n && en.active,
2378
+ l && en.inList,
2354
2379
  a
2355
2380
  ].filter(Boolean).join(" ");
2356
2381
  return /* @__PURE__ */ y(u, {
2357
2382
  ...d ? { type: "button" } : {},
2358
2383
  ...i === void 0 ? {} : { href: i },
2359
- [$t]: "",
2384
+ [tn]: "",
2360
2385
  "aria-current": n ? "page" : void 0,
2361
2386
  className: f,
2362
2387
  ...s,
2363
2388
  children: [
2364
2389
  e && /* @__PURE__ */ v("span", {
2365
- className: Qt.icon,
2390
+ className: en.icon,
2366
2391
  "aria-hidden": !0,
2367
2392
  children: e
2368
2393
  }),
2369
2394
  /* @__PURE__ */ v("span", {
2370
- className: Qt.label,
2395
+ className: en.label,
2371
2396
  children: o
2372
2397
  }),
2373
2398
  t && /* @__PURE__ */ v("span", {
2374
- className: Qt.trailing,
2399
+ className: en.trailing,
2375
2400
  children: t
2376
2401
  })
2377
2402
  ]
2378
2403
  });
2379
2404
  }
2380
- function nn({ children: e, className: t, ...n }) {
2405
+ function an({ children: e, className: t, ...n }) {
2381
2406
  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;
2407
+ let t = r.current, n = e instanceof Element ? e.closest(`[${tn}]`) : null;
2383
2408
  if (!t || !n || !t.contains(n)) return;
2384
2409
  if (n.matches(":disabled, [aria-disabled=\"true\"], [hidden]")) {
2385
2410
  c(!1);
@@ -2393,11 +2418,11 @@ function nn({ children: e, className: t, ...n }) {
2393
2418
  }, [o]);
2394
2419
  return d(() => {
2395
2420
  o || u(!1);
2396
- }, [o]), /* @__PURE__ */ v(en.Provider, {
2421
+ }, [o]), /* @__PURE__ */ v(nn.Provider, {
2397
2422
  value: !0,
2398
2423
  children: /* @__PURE__ */ y("div", {
2399
2424
  ref: r,
2400
- className: [Qt.list, t].filter(Boolean).join(" "),
2425
+ className: [en.list, t].filter(Boolean).join(" "),
2401
2426
  onPointerOver: (e) => e.pointerType === "mouse" && f(e.target),
2402
2427
  onMouseLeave: () => c(!1),
2403
2428
  onFocus: (e) => e.target.matches(":focus-visible") && f(e.target),
@@ -2406,9 +2431,9 @@ function nn({ children: e, className: t, ...n }) {
2406
2431
  children: [/* @__PURE__ */ v("span", {
2407
2432
  "aria-hidden": !0,
2408
2433
  className: [
2409
- Qt.glide,
2410
- l && Qt.glideAnimated,
2411
- o && Qt.glideVisible
2434
+ en.glide,
2435
+ l && en.glideAnimated,
2436
+ o && en.glideVisible
2412
2437
  ].filter(Boolean).join(" "),
2413
2438
  style: i ? {
2414
2439
  translate: `0 ${i.top}px`,
@@ -2420,7 +2445,7 @@ function nn({ children: e, className: t, ...n }) {
2420
2445
  }
2421
2446
  //#endregion
2422
2447
  //#region src/components/Logo.tsx
2423
- function rn({ size: e = 40, "aria-label": t, ...n }) {
2448
+ function on({ size: e = 40, "aria-label": t, ...n }) {
2424
2449
  return /* @__PURE__ */ y("svg", {
2425
2450
  width: e,
2426
2451
  height: e,
@@ -2462,7 +2487,7 @@ var X = {
2462
2487
  };
2463
2488
  //#endregion
2464
2489
  //#region src/components/Sidebar.tsx
2465
- function an({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
2490
+ function sn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
2466
2491
  return /* @__PURE__ */ y("aside", {
2467
2492
  className: [X.root, o].filter(Boolean).join(" "),
2468
2493
  children: [
@@ -2488,7 +2513,7 @@ function an({ header: e, switcher: t, children: n, footer: r, switcherLayout: i
2488
2513
  ]
2489
2514
  });
2490
2515
  }
2491
- function on({ title: e, subtitle: t, action: n }) {
2516
+ function cn({ title: e, subtitle: t, action: n }) {
2492
2517
  return /* @__PURE__ */ y("div", {
2493
2518
  className: X.footerRow,
2494
2519
  children: [/* @__PURE__ */ y("div", {
@@ -2506,7 +2531,7 @@ function on({ title: e, subtitle: t, action: n }) {
2506
2531
  })]
2507
2532
  });
2508
2533
  }
2509
- function sn({ items: e, value: t, onChange: n, "aria-label": r }) {
2534
+ function ln({ items: e, value: t, onChange: n, "aria-label": r }) {
2510
2535
  return /* @__PURE__ */ v("div", {
2511
2536
  role: "group",
2512
2537
  "aria-label": r,
@@ -2532,21 +2557,21 @@ function sn({ items: e, value: t, onChange: n, "aria-label": r }) {
2532
2557
  }, e.value))
2533
2558
  });
2534
2559
  }
2535
- var cn = { highlight: "_highlight_1pz29_1" };
2560
+ var un = { highlight: "_highlight_1pz29_1" };
2536
2561
  //#endregion
2537
2562
  //#region src/components/HighlightText.tsx
2538
- function ln(e) {
2563
+ function dn(e) {
2539
2564
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2540
2565
  }
2541
- function un({ text: e, query: n }) {
2566
+ function fn({ text: e, query: n }) {
2542
2567
  if (!n) return /* @__PURE__ */ v(_, { children: e });
2543
- let r = e.split(RegExp(`(${ln(n)})`, "ig"));
2568
+ let r = e.split(RegExp(`(${dn(n)})`, "ig"));
2544
2569
  return /* @__PURE__ */ v(_, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ v("mark", {
2545
- className: cn.highlight,
2570
+ className: un.highlight,
2546
2571
  children: e
2547
2572
  }, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
2548
2573
  }
2549
- var dn = {
2574
+ var pn = {
2550
2575
  group: "_group_jslsh_1",
2551
2576
  btn: "_btn_jslsh_4",
2552
2577
  caret: "_caret_jslsh_31",
@@ -2568,24 +2593,24 @@ var dn = {
2568
2593
  };
2569
2594
  //#endregion
2570
2595
  //#region src/components/FilterSection.tsx
2571
- function fn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2596
+ function mn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2572
2597
  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
2598
  return /* @__PURE__ */ y("div", { children: [
2574
2599
  /* @__PURE__ */ y("div", {
2575
- className: dn.sectionHeader,
2600
+ className: pn.sectionHeader,
2576
2601
  children: [/* @__PURE__ */ v("div", {
2577
- className: dn.sectionLabel,
2602
+ className: pn.sectionLabel,
2578
2603
  children: e
2579
2604
  }), a && /* @__PURE__ */ v("button", {
2580
2605
  type: "button",
2581
- className: dn.allToggle,
2606
+ className: pn.allToggle,
2582
2607
  onClick: () => a(d ? [] : t),
2583
2608
  children: d ? "Deselect all" : "Select all"
2584
2609
  })]
2585
2610
  }),
2586
2611
  o && /* @__PURE__ */ v("input", {
2587
2612
  type: "text",
2588
- className: dn.search,
2613
+ className: pn.search,
2589
2614
  placeholder: `Search ${e.toLowerCase()}…`,
2590
2615
  autoComplete: "off",
2591
2616
  value: s,
@@ -2593,12 +2618,12 @@ function fn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
2593
2618
  onChange: (e) => c(e.target.value)
2594
2619
  }),
2595
2620
  /* @__PURE__ */ y("div", {
2596
- className: dn.optionsList,
2621
+ className: pn.optionsList,
2597
2622
  children: [u.length === 0 && /* @__PURE__ */ v("div", {
2598
- className: dn.empty,
2623
+ className: pn.empty,
2599
2624
  children: "No match"
2600
- }), u.map((e) => /* @__PURE__ */ v(Je, {
2601
- className: dn.option,
2625
+ }), u.map((e) => /* @__PURE__ */ v(Xe, {
2626
+ className: pn.option,
2602
2627
  checked: r.has(e),
2603
2628
  onChange: () => i(e),
2604
2629
  label: n(e)
@@ -2606,7 +2631,7 @@ function fn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
2606
2631
  })
2607
2632
  ] });
2608
2633
  }
2609
- var pn = {
2634
+ var hn = {
2610
2635
  line: "_line_19p3r_1",
2611
2636
  box: "_box_19p3r_2",
2612
2637
  indicator: "_indicator_19p3r_9",
@@ -2622,7 +2647,7 @@ var pn = {
2622
2647
  };
2623
2648
  //#endregion
2624
2649
  //#region src/components/Tabs.tsx
2625
- function mn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2650
+ function gn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2626
2651
  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
2652
  d(() => {
2628
2653
  let e = c.current.get(t);
@@ -2661,18 +2686,18 @@ function mn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
2661
2686
  ref: s,
2662
2687
  role: "tablist",
2663
2688
  className: [
2664
- pn[r],
2665
- r === "box" && i === "sm" && pn.sm,
2666
- r === "box" && i === "lg" && pn.lg
2689
+ hn[r],
2690
+ r === "box" && i === "sm" && hn.sm,
2691
+ r === "box" && i === "lg" && hn.lg
2667
2692
  ].filter(Boolean).join(" "),
2668
2693
  onKeyDown: b,
2669
2694
  ...a,
2670
2695
  children: [u && /* @__PURE__ */ v("span", {
2671
2696
  "aria-hidden": !0,
2672
2697
  className: [
2673
- pn.indicator,
2674
- r === "line" ? pn.indicatorLine : pn.indicatorBox,
2675
- h === "settling" && pn.settling
2698
+ hn.indicator,
2699
+ r === "line" ? hn.indicatorLine : hn.indicatorBox,
2700
+ h === "settling" && hn.settling
2676
2701
  ].filter(Boolean).join(" "),
2677
2702
  onTransitionEnd: _,
2678
2703
  style: {
@@ -2693,34 +2718,34 @@ function mn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
2693
2718
  disabled: e.disabled,
2694
2719
  tabIndex: r ? 0 : -1,
2695
2720
  className: [
2696
- pn.tab,
2697
- r && pn.selected,
2698
- i && pn.iconOnly
2721
+ hn.tab,
2722
+ r && hn.selected,
2723
+ i && hn.iconOnly
2699
2724
  ].filter(Boolean).join(" "),
2700
2725
  onClick: () => !e.disabled && n(e.value),
2701
2726
  children: [e.icon && /* @__PURE__ */ v("span", {
2702
- className: pn.icon,
2727
+ className: hn.icon,
2703
2728
  children: e.icon
2704
2729
  }), e.label]
2705
2730
  }, e.value);
2706
2731
  })]
2707
2732
  });
2708
2733
  }
2709
- var hn = {
2734
+ var _n = {
2710
2735
  root: "_root_16e39_1",
2711
2736
  label: "_label_16e39_7"
2712
2737
  };
2713
2738
  //#endregion
2714
2739
  //#region src/components/Toggle.tsx
2715
- function gn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2740
+ function vn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2716
2741
  let a = u();
2717
2742
  return /* @__PURE__ */ y("div", {
2718
- className: hn.root,
2743
+ className: _n.root,
2719
2744
  children: [r && /* @__PURE__ */ v("span", {
2720
2745
  id: a,
2721
- className: hn.label,
2746
+ className: _n.label,
2722
2747
  children: r
2723
- }), /* @__PURE__ */ v(mn, {
2748
+ }), /* @__PURE__ */ v(gn, {
2724
2749
  items: e,
2725
2750
  value: t,
2726
2751
  onChange: n,
@@ -2731,7 +2756,7 @@ function gn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2731
2756
  })]
2732
2757
  });
2733
2758
  }
2734
- var _n = {
2759
+ var yn = {
2735
2760
  spinner: "_spinner_9jjxr_3",
2736
2761
  inner: "_inner_9jjxr_11",
2737
2762
  outer: "_outer_9jjxr_12",
@@ -2742,10 +2767,10 @@ var _n = {
2742
2767
  };
2743
2768
  //#endregion
2744
2769
  //#region src/components/Spinner.tsx
2745
- function vn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2770
+ function bn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2746
2771
  let a = [
2747
- _n.spinner,
2748
- _n[e],
2772
+ yn.spinner,
2773
+ yn[e],
2749
2774
  r
2750
2775
  ].filter(Boolean).join(" ");
2751
2776
  return /* @__PURE__ */ y("div", {
@@ -2758,7 +2783,7 @@ function vn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2758
2783
  },
2759
2784
  "data-testid": i,
2760
2785
  children: [/* @__PURE__ */ v("svg", {
2761
- className: _n.inner,
2786
+ className: yn.inner,
2762
2787
  width: t,
2763
2788
  height: t,
2764
2789
  viewBox: "0 0 64 64",
@@ -2766,7 +2791,7 @@ function vn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2766
2791
  "aria-hidden": "true",
2767
2792
  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
2793
  }), /* @__PURE__ */ v("svg", {
2769
- className: _n.outer,
2794
+ className: yn.outer,
2770
2795
  width: t,
2771
2796
  height: t,
2772
2797
  viewBox: "0 0 64 64",
@@ -2798,14 +2823,14 @@ var Z = {
2798
2823
  sheet: "_sheet_3vs6a_206",
2799
2824
  fullscreen: "_fullscreen_3vs6a_212",
2800
2825
  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);
2826
+ }, 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);
2827
+ function En(e) {
2828
+ let t = c(Tn);
2804
2829
  if (!t) throw Error(`${e} must be rendered inside <Modal>`);
2805
2830
  return t;
2806
2831
  }
2807
- var Tn = [];
2808
- function En(e) {
2832
+ var Dn = [];
2833
+ function On(e) {
2809
2834
  let [t, n] = m(() => typeof window < "u" && window.matchMedia(e).matches);
2810
2835
  return l(() => {
2811
2836
  let t = window.matchMedia(e), r = () => n(t.matches);
@@ -2813,7 +2838,7 @@ function En(e) {
2813
2838
  }, [e]), t;
2814
2839
  }
2815
2840
  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);
2841
+ 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
2842
  L.current = t, l(() => T(!0), []), l(() => {
2818
2843
  if (e) {
2819
2844
  if (F.current) return;
@@ -2825,7 +2850,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2825
2850
  return () => cancelAnimationFrame(e);
2826
2851
  }
2827
2852
  if (F.current = !1, k(!1), !E) return;
2828
- let t = setTimeout(() => D(!1), ee ? 0 : yn);
2853
+ let t = setTimeout(() => D(!1), ee ? 0 : xn);
2829
2854
  return () => clearTimeout(t);
2830
2855
  }, [e]), l(() => {
2831
2856
  !E && P.current && (P.current.focus?.(), P.current = null);
@@ -2833,22 +2858,22 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2833
2858
  let R = s(() => {
2834
2859
  if (!a || F.current) return;
2835
2860
  F.current = !0, k(!1);
2836
- let e = ee ? 0 : yn;
2861
+ let e = ee ? 0 : xn;
2837
2862
  window.setTimeout(() => L.current(), e);
2838
2863
  }, [a, ee]);
2839
2864
  l(() => {
2840
2865
  if (!E) return;
2841
2866
  let e = ne.current;
2842
- d && Tn.push(e);
2867
+ d && Dn.push(e);
2843
2868
  let t = (t) => {
2844
- t.key === "Escape" && Tn[Tn.length - 1] === e && (t.preventDefault(), R());
2869
+ t.key === "Escape" && Dn[Dn.length - 1] === e && (t.preventDefault(), R());
2845
2870
  };
2846
2871
  document.addEventListener("keydown", t);
2847
2872
  let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
2848
2873
  return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`), N.current?.focus({ preventScroll: !0 }), () => {
2849
2874
  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;
2875
+ let a = Dn.indexOf(e);
2876
+ a !== -1 && Dn.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
2852
2877
  };
2853
2878
  }, [
2854
2879
  E,
@@ -2857,7 +2882,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2857
2882
  ]);
2858
2883
  let z = (e) => {
2859
2884
  if (e.key !== "Tab" || !N.current) return;
2860
- let t = Array.from(N.current.querySelectorAll(Sn));
2885
+ let t = Array.from(N.current.querySelectorAll(wn));
2861
2886
  if (t.length === 0) {
2862
2887
  e.preventDefault();
2863
2888
  return;
@@ -2891,7 +2916,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2891
2916
  setHasDescription: j,
2892
2917
  requestClose: R
2893
2918
  };
2894
- return g(/* @__PURE__ */ v(Cn.Provider, {
2919
+ return g(/* @__PURE__ */ v(Tn.Provider, {
2895
2920
  value: oe,
2896
2921
  children: /* @__PURE__ */ v("div", {
2897
2922
  className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
@@ -2914,13 +2939,13 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2914
2939
  })
2915
2940
  }), re);
2916
2941
  }
2917
- function Dn({ children: e, onClose: t }) {
2918
- let { requestClose: n, dismissible: r } = wn("Modal.Cover");
2942
+ function kn({ children: e, onClose: t }) {
2943
+ let { requestClose: n, dismissible: r } = En("Modal.Cover");
2919
2944
  return /* @__PURE__ */ y("div", {
2920
2945
  className: Z.cover,
2921
2946
  children: [e, t && /* @__PURE__ */ v(k, {
2922
2947
  variant: "tertiary",
2923
- leadingIcon: /* @__PURE__ */ v(je, {}),
2948
+ leadingIcon: /* @__PURE__ */ v(Ne, {}),
2924
2949
  "aria-label": "Close",
2925
2950
  "data-testid": "modal-close",
2926
2951
  className: Z.closeButton,
@@ -2931,7 +2956,7 @@ function Dn({ children: e, onClose: t }) {
2931
2956
  })]
2932
2957
  });
2933
2958
  }
2934
- function On({ children: t }) {
2959
+ function An({ children: t }) {
2935
2960
  let n = e.toArray(t), r = n.filter((e) => o(e) && e.type.isModalIcon === !0), i = n.filter((e) => !r.includes(e));
2936
2961
  return /* @__PURE__ */ y("div", {
2937
2962
  className: Z.message,
@@ -2941,52 +2966,52 @@ function On({ children: t }) {
2941
2966
  })]
2942
2967
  });
2943
2968
  }
2944
- function kn({ children: e, tone: t = "neutral" }) {
2969
+ function jn({ children: e, tone: t = "neutral" }) {
2945
2970
  return /* @__PURE__ */ v("div", {
2946
2971
  className: `${Z.icon} ${Z[`tone-${t}`]}`,
2947
2972
  "aria-hidden": "true",
2948
2973
  children: e
2949
2974
  });
2950
2975
  }
2951
- function An({ children: e, id: t }) {
2952
- let { titleId: n } = wn("Modal.Title");
2976
+ function Mn({ children: e, id: t }) {
2977
+ let { titleId: n } = En("Modal.Title");
2953
2978
  return /* @__PURE__ */ v("h2", {
2954
2979
  id: t ?? n,
2955
2980
  className: Z.title,
2956
2981
  children: e
2957
2982
  });
2958
2983
  }
2959
- function jn({ children: e }) {
2960
- let { descriptionId: t, setHasDescription: n } = wn("Modal.Description");
2984
+ function Nn({ children: e }) {
2985
+ let { descriptionId: t, setHasDescription: n } = En("Modal.Description");
2961
2986
  return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ v("p", {
2962
2987
  id: t,
2963
2988
  className: Z.description,
2964
2989
  children: e
2965
2990
  });
2966
2991
  }
2967
- function Mn({ children: e }) {
2992
+ function Pn({ children: e }) {
2968
2993
  return /* @__PURE__ */ v("p", {
2969
2994
  className: Z.hint,
2970
2995
  children: e
2971
2996
  });
2972
2997
  }
2973
- function Nn({ children: e }) {
2998
+ function Fn({ children: e }) {
2974
2999
  return /* @__PURE__ */ v("div", {
2975
3000
  className: Z.body,
2976
3001
  children: e
2977
3002
  });
2978
3003
  }
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;
3004
+ function In({ children: t }) {
3005
+ let { isMobile: r } = En("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
2981
3006
  return /* @__PURE__ */ v("div", {
2982
3007
  className: Z.footer,
2983
3008
  children: i
2984
3009
  });
2985
3010
  }
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;
3011
+ 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
3012
  //#endregion
2988
3013
  //#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 }) {
3014
+ 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
3015
  let d = c === "dangerous";
2991
3016
  return /* @__PURE__ */ y(Q, {
2992
3017
  open: e,
@@ -3015,7 +3040,7 @@ function Fn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon:
3015
3040
  })] })]
3016
3041
  });
3017
3042
  }
3018
- var In = {
3043
+ var Rn = {
3019
3044
  root: "_root_rybn9_1",
3020
3045
  success: "_success_rybn9_11",
3021
3046
  warning: "_warning_rybn9_17",
@@ -3028,45 +3053,45 @@ var In = {
3028
3053
  };
3029
3054
  //#endregion
3030
3055
  //#region src/components/EmptyState.tsx
3031
- function Ln({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
3056
+ function zn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
3032
3057
  return /* @__PURE__ */ y("div", {
3033
- className: `${In.root} ${e === "neutral" ? "" : In[e]}`,
3058
+ className: `${Rn.root} ${e === "neutral" ? "" : Rn[e]}`,
3034
3059
  ...a,
3035
3060
  children: [t != null && /* @__PURE__ */ v("div", {
3036
- className: In.icon,
3061
+ className: Rn.icon,
3037
3062
  "aria-hidden": "true",
3038
3063
  children: t
3039
3064
  }), /* @__PURE__ */ y("div", {
3040
- className: In.body,
3065
+ className: Rn.body,
3041
3066
  children: [
3042
3067
  /* @__PURE__ */ v("p", {
3043
- className: In.title,
3068
+ className: Rn.title,
3044
3069
  children: n
3045
3070
  }),
3046
3071
  r != null && /* @__PURE__ */ v("div", {
3047
- className: In.text,
3072
+ className: Rn.text,
3048
3073
  children: r
3049
3074
  }),
3050
3075
  i != null && /* @__PURE__ */ v("div", {
3051
- className: In.action,
3076
+ className: Rn.action,
3052
3077
  children: i
3053
3078
  })
3054
3079
  ]
3055
3080
  })]
3056
3081
  });
3057
3082
  }
3058
- var Rn = { photoPreview: "_photoPreview_1m76k_2" }, zn = 180, Bn = 12, Vn = 8;
3059
- function Hn(e, t, n = zn) {
3083
+ var Bn = { photoPreview: "_photoPreview_1m76k_2" }, Vn = 180, Hn = 12, Un = 8;
3084
+ function Wn(e, t, n = Vn) {
3060
3085
  let r = (e, t) => {
3061
- let r = e + Bn, i = r + n + Vn > t ? e - Bn - n : r;
3062
- return Math.max(Vn, i);
3086
+ let r = e + Hn, i = r + n + Un > t ? e - Hn - n : r;
3087
+ return Math.max(Un, i);
3063
3088
  };
3064
3089
  return {
3065
3090
  left: r(e, window.innerWidth),
3066
3091
  top: r(t, window.innerHeight)
3067
3092
  };
3068
3093
  }
3069
- function Un({ src: e, size: t = zn, children: r }) {
3094
+ function Gn({ src: e, size: t = Vn, children: r }) {
3070
3095
  let [i, a] = m(null), [o, s] = m(), c = i !== null;
3071
3096
  if (l(() => {
3072
3097
  if (!c) return;
@@ -3092,14 +3117,14 @@ function Un({ src: e, size: t = zn, children: r }) {
3092
3117
  }
3093
3118
  });
3094
3119
  return /* @__PURE__ */ y(_, { children: [f, i && g(/* @__PURE__ */ v("img", {
3095
- className: Rn.photoPreview,
3120
+ className: Bn.photoPreview,
3096
3121
  src: e,
3097
3122
  alt: "",
3098
3123
  "aria-hidden": "true",
3099
3124
  style: {
3100
3125
  width: t,
3101
3126
  height: t,
3102
- ...Hn(i.x, i.y, t)
3127
+ ...Wn(i.x, i.y, t)
3103
3128
  },
3104
3129
  onError: () => {
3105
3130
  s(e), a(null);
@@ -3136,17 +3161,18 @@ var $ = {
3136
3161
  workerText: "_workerText_44xcu_231",
3137
3162
  actions: "_actions_44xcu_236",
3138
3163
  srOnly: "_srOnly_44xcu_247"
3139
- }, Wn = {
3164
+ }, Kn = {
3140
3165
  worker: "Worker:",
3141
3166
  comment: "Comment:",
3142
3167
  inaccessible: "Inaccessible",
3143
3168
  archived: "Archived",
3144
3169
  unavailable: "Preview unavailable",
3170
+ notReady: "Not ready",
3145
3171
  new: "Unwatched"
3146
3172
  };
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 }) {
3173
+ 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
3174
  let C = {
3149
- ...Wn,
3175
+ ...Kn,
3150
3176
  ...g
3151
3177
  }, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!f, M = (e) => {
3152
3178
  e.target === e.currentTarget && (e.key === "Enter" ? f?.() : e.key === " " && (e.preventDefault(), f?.()));
@@ -3183,17 +3209,17 @@ function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3183
3209
  }
3184
3210
  }) : /* @__PURE__ */ v("div", {
3185
3211
  className: `${$.tile} ${t === "play" ? $.tilePlay : ""}`,
3186
- children: t === "play" ? /* @__PURE__ */ v(Te, {
3212
+ children: t === "play" ? /* @__PURE__ */ v(De, {
3187
3213
  size: 20,
3188
3214
  "aria-hidden": "true"
3189
3215
  }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
3190
3216
  className: $.icon,
3191
- children: v(t === "archived" ? ce : t === "unavailable" ? xe : Ce, {
3217
+ children: v(t === "archived" ? ce : t === "unavailable" ? Ce : t === "notReady" ? xe : Te, {
3192
3218
  size: 12,
3193
3219
  strokeWidth: 1,
3194
3220
  "aria-hidden": "true"
3195
3221
  })
3196
- }), /* @__PURE__ */ v("span", { children: t === "archived" ? C.archived : t === "unavailable" ? C.unavailable : C.inaccessible })] })
3222
+ }), /* @__PURE__ */ v("span", { children: t === "archived" ? C.archived : t === "unavailable" ? C.unavailable : t === "notReady" ? C.notReady : C.inaccessible })] })
3197
3223
  })
3198
3224
  }), !u && /* @__PURE__ */ v("span", {
3199
3225
  className: $.badge,
@@ -3233,7 +3259,7 @@ function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3233
3259
  children: C.worker
3234
3260
  }), /* @__PURE__ */ y("div", {
3235
3261
  className: $.workerRow,
3236
- children: [A ? /* @__PURE__ */ v(Un, {
3262
+ children: [A ? /* @__PURE__ */ v(Gn, {
3237
3263
  src: k,
3238
3264
  children: /* @__PURE__ */ v("img", {
3239
3265
  className: $.photo,
@@ -3246,7 +3272,7 @@ function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3246
3272
  }) : /* @__PURE__ */ v("div", {
3247
3273
  className: `${$.photo} ${$.emptyPhoto}`,
3248
3274
  "aria-hidden": "true",
3249
- children: /* @__PURE__ */ v(ke, { size: 20 })
3275
+ children: /* @__PURE__ */ v(je, { size: 20 })
3250
3276
  }), /* @__PURE__ */ v("div", {
3251
3277
  className: $.workerText,
3252
3278
  children: /* @__PURE__ */ v("div", {
@@ -3273,14 +3299,14 @@ function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3273
3299
  ]
3274
3300
  });
3275
3301
  }
3276
- function Kn({ className: e, "data-testid": t }) {
3302
+ function Jn({ className: e, "data-testid": t }) {
3277
3303
  return /* @__PURE__ */ y("div", {
3278
3304
  className: `${$.root} ${e ?? ""}`,
3279
3305
  "data-testid": t,
3280
3306
  "aria-hidden": "true",
3281
3307
  children: [/* @__PURE__ */ v("div", {
3282
3308
  className: $.side,
3283
- children: /* @__PURE__ */ v(kt, {
3309
+ children: /* @__PURE__ */ v(jt, {
3284
3310
  width: 72,
3285
3311
  height: 48
3286
3312
  })
@@ -3289,15 +3315,15 @@ function Kn({ className: e, "data-testid": t }) {
3289
3315
  children: /* @__PURE__ */ y("div", {
3290
3316
  className: $.info,
3291
3317
  children: [
3292
- /* @__PURE__ */ v(kt, {
3318
+ /* @__PURE__ */ v(jt, {
3293
3319
  variant: "text",
3294
3320
  width: "40%"
3295
3321
  }),
3296
- /* @__PURE__ */ v(kt, {
3322
+ /* @__PURE__ */ v(jt, {
3297
3323
  variant: "text",
3298
3324
  width: "65%"
3299
3325
  }),
3300
- /* @__PURE__ */ v(kt, {
3326
+ /* @__PURE__ */ v(jt, {
3301
3327
  variant: "text",
3302
3328
  width: "90%"
3303
3329
  })
@@ -3306,18 +3332,18 @@ function Kn({ className: e, "data-testid": t }) {
3306
3332
  })]
3307
3333
  });
3308
3334
  }
3309
- var qn = Object.assign(Gn, { Skeleton: Kn });
3335
+ var Yn = Object.assign(qn, { Skeleton: Jn });
3310
3336
  //#endregion
3311
3337
  //#region src/utils/format.ts
3312
- function Jn(e) {
3338
+ function Xn(e) {
3313
3339
  let t = Math.floor(e / 60), n = e % 60;
3314
3340
  return `${t}h:${String(n).padStart(2, "0")}m`;
3315
3341
  }
3316
- function Yn(e, t) {
3342
+ function Zn(e, t) {
3317
3343
  let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
3318
3344
  return `${i(n)}:${i(r)}:${i(t)}`;
3319
3345
  }
3320
3346
  //#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 };
3347
+ 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
3348
 
3323
3349
  //# sourceMappingURL=index.js.map