cattle-care-ui 0.3.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -391,7 +391,7 @@ var V = {
391
391
  ]
392
392
  };
393
393
  V.node;
394
- var H = B(V), U = {
394
+ var ce = B(V), H = {
395
395
  name: "calendar-days",
396
396
  size: 24,
397
397
  node: [
@@ -441,8 +441,8 @@ var H = B(V), U = {
441
441
  }]
442
442
  ]
443
443
  };
444
- U.node;
445
- var ce = B(U), le = {
444
+ H.node;
445
+ var le = B(H), ue = {
446
446
  name: "check",
447
447
  size: 24,
448
448
  node: [["path", {
@@ -450,8 +450,8 @@ var ce = B(U), le = {
450
450
  key: "1gmf2c"
451
451
  }]]
452
452
  };
453
- le.node;
454
- var W = B(le), ue = {
453
+ ue.node;
454
+ var U = B(ue), W = {
455
455
  name: "chevron-down",
456
456
  size: 24,
457
457
  node: [["path", {
@@ -459,8 +459,8 @@ var W = B(le), ue = {
459
459
  key: "qrunsl"
460
460
  }]]
461
461
  };
462
- ue.node;
463
- var de = B(ue), fe = {
462
+ W.node;
463
+ var de = B(W), fe = {
464
464
  name: "chevron-left",
465
465
  size: 24,
466
466
  node: [["path", {
@@ -516,6 +516,46 @@ var _e = B(ge), ve = {
516
516
  };
517
517
  ve.node;
518
518
  var ye = B(ve), be = {
519
+ name: "image-off",
520
+ size: 24,
521
+ node: [
522
+ ["line", {
523
+ x1: "2",
524
+ x2: "22",
525
+ y1: "2",
526
+ y2: "22",
527
+ key: "a6p6uj"
528
+ }],
529
+ ["path", {
530
+ d: "M10.41 10.41a2 2 0 1 1-2.83-2.83",
531
+ key: "1bzlo9"
532
+ }],
533
+ ["line", {
534
+ x1: "13.5",
535
+ x2: "6",
536
+ y1: "13.5",
537
+ y2: "21",
538
+ key: "1q0aeu"
539
+ }],
540
+ ["line", {
541
+ x1: "18",
542
+ x2: "21",
543
+ y1: "12",
544
+ y2: "15",
545
+ key: "5mozeu"
546
+ }],
547
+ ["path", {
548
+ d: "M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",
549
+ key: "mmje98"
550
+ }],
551
+ ["path", {
552
+ d: "M21 15V5a2 2 0 0 0-2-2H9",
553
+ key: "43el77"
554
+ }]
555
+ ]
556
+ };
557
+ be.node;
558
+ var xe = B(be), Se = {
519
559
  name: "lock",
520
560
  size: 24,
521
561
  node: [["rect", {
@@ -531,8 +571,8 @@ var ye = B(ve), be = {
531
571
  key: "fwvmzm"
532
572
  }]]
533
573
  };
534
- be.node;
535
- var xe = B(be), Se = {
574
+ Se.node;
575
+ var Ce = B(Se), we = {
536
576
  name: "play",
537
577
  size: 24,
538
578
  node: [["path", {
@@ -540,8 +580,8 @@ var xe = B(be), Se = {
540
580
  key: "10ikf1"
541
581
  }]]
542
582
  };
543
- Se.node;
544
- var Ce = B(Se), we = {
583
+ we.node;
584
+ var Te = B(we), Ee = {
545
585
  name: "search",
546
586
  size: 24,
547
587
  node: [["path", {
@@ -554,8 +594,8 @@ var Ce = B(Se), we = {
554
594
  key: "4ej97u"
555
595
  }]]
556
596
  };
557
- we.node;
558
- var Te = B(we), Ee = {
597
+ Ee.node;
598
+ var De = B(Ee), Oe = {
559
599
  name: "user",
560
600
  size: 24,
561
601
  node: [["path", {
@@ -568,8 +608,8 @@ var Te = B(we), Ee = {
568
608
  key: "17ys0d"
569
609
  }]]
570
610
  };
571
- Ee.node;
572
- var De = B(Ee), Oe = {
611
+ Oe.node;
612
+ var ke = B(Oe), Ae = {
573
613
  name: "x",
574
614
  size: 24,
575
615
  node: [["path", {
@@ -580,8 +620,8 @@ var De = B(Ee), Oe = {
580
620
  key: "d8bk6v"
581
621
  }]]
582
622
  };
583
- Oe.node;
584
- var ke = B(Oe), Ae = {
623
+ Ae.node;
624
+ var je = B(Ae), Me = {
585
625
  neutral: "_neutral_11vj2_1",
586
626
  pill: "_pill_11vj2_2",
587
627
  accent: "_accent_11vj2_3",
@@ -599,53 +639,53 @@ var ke = B(Oe), Ae = {
599
639
  main: "_main_11vj2_161",
600
640
  remove: "_remove_11vj2_162",
601
641
  removable: "_removable_11vj2_189"
602
- }, je = {
642
+ }, Ne = {
603
643
  chip: "_chip_ny74i_5",
604
644
  disabled: "_disabled_ny74i_15",
605
645
  selected: "_selected_ny74i_28"
606
646
  };
607
647
  //#endregion
608
648
  //#region src/components/Tag.tsx
609
- function Me(...e) {
649
+ function Pe(...e) {
610
650
  return e.filter(Boolean).join(" ");
611
651
  }
612
- function Ne(e) {
652
+ function Fe(e) {
613
653
  if (e.variant === "count") {
614
654
  let { variant: t, children: n, ...r } = e;
615
655
  return /* @__PURE__ */ v("span", {
616
- className: Ae[t],
656
+ className: Me[t],
617
657
  ...r,
618
658
  children: n
619
659
  });
620
660
  }
621
- 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 = Me(Ae[t], f && je.chip, f && p && je.selected, f && a && je.disabled, (u || d) && Ae.interactive, p && Ae.pressed, a && Ae.disabled, (o != null || d) && Ae.slots), h = /* @__PURE__ */ y(_, { children: [o != null && /* @__PURE__ */ v("span", {
622
- className: Ae.leading,
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,
623
663
  children: o
624
664
  }), n] });
625
665
  return d ? /* @__PURE__ */ y("span", {
626
- className: Me(m, Ae.removable),
666
+ className: Pe(m, Me.removable),
627
667
  ...l,
628
668
  children: [u ? /* @__PURE__ */ v("button", {
629
669
  type: "button",
630
- className: Me(Ae.main, Ae.slots),
670
+ className: Pe(Me.main, Me.slots),
631
671
  "aria-pressed": i,
632
672
  disabled: a,
633
673
  onClick: r,
634
674
  children: h
635
675
  }) : h, /* @__PURE__ */ v("button", {
636
676
  type: "button",
637
- className: Ae.remove,
677
+ className: Me.remove,
638
678
  "aria-label": c,
639
679
  disabled: a,
640
680
  onClick: () => s(),
641
- children: /* @__PURE__ */ v(ke, {
681
+ children: /* @__PURE__ */ v(je, {
642
682
  size: 12,
643
683
  "aria-hidden": "true"
644
684
  })
645
685
  })]
646
686
  }) : u ? /* @__PURE__ */ v("button", {
647
687
  type: "button",
648
- className: Me(m, Ae.button),
688
+ className: Pe(m, Me.button),
649
689
  "aria-pressed": i,
650
690
  disabled: a,
651
691
  onClick: r,
@@ -657,20 +697,20 @@ function Ne(e) {
657
697
  children: h
658
698
  });
659
699
  }
660
- var Pe = {
700
+ var Ie = {
661
701
  group: "_group_kw1z2_1",
662
702
  sm: "_sm_kw1z2_9",
663
703
  chip: "_chip_kw1z2_13 _chip_ny74i_5",
664
704
  base: "_base_kw1z2_28",
665
705
  selected: "_selected_kw1z2_44 _selected_ny74i_28"
666
- }, Fe = {
706
+ }, Le = {
667
707
  group: "_group_1gqda_1",
668
708
  groupLabel: "_groupLabel_1gqda_7"
669
- }, Ie = { label: "_label_1hzxz_1" };
709
+ }, Re = { label: "_label_1hzxz_1" };
670
710
  //#endregion
671
711
  //#region src/components/FieldLabel.tsx
672
- function Le({ children: e, htmlFor: t, className: n }) {
673
- let r = `${Ie.label} ${n ?? ""}`.trim();
712
+ function ze({ children: e, htmlFor: t, className: n }) {
713
+ let r = `${Re.label} ${n ?? ""}`.trim();
674
714
  return t ? /* @__PURE__ */ v("label", {
675
715
  className: r,
676
716
  htmlFor: t,
@@ -682,36 +722,36 @@ function Le({ children: e, htmlFor: t, className: n }) {
682
722
  }
683
723
  //#endregion
684
724
  //#region src/components/TagGroup.tsx
685
- function Re({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
725
+ function Be({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
686
726
  function s(e) {
687
727
  n(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
688
728
  }
689
729
  let c = /* @__PURE__ */ v("div", {
690
730
  role: "group",
691
731
  "aria-label": a ? void 0 : o["aria-label"],
692
- className: `${Pe.group} ${Pe[r]}`,
732
+ className: `${Ie.group} ${Ie[r]}`,
693
733
  children: e.map((e) => {
694
734
  let n = t.includes(e.value), r = i || e.disabled;
695
735
  return /* @__PURE__ */ v("button", {
696
736
  type: "button",
697
737
  "aria-pressed": n,
698
738
  disabled: r,
699
- className: [Pe.chip, n && Pe.selected].filter(Boolean).join(" "),
739
+ className: [Ie.chip, n && Ie.selected].filter(Boolean).join(" "),
700
740
  onClick: () => !r && s(e.value),
701
741
  children: e.label
702
742
  }, e.value);
703
743
  })
704
744
  });
705
745
  return a ? /* @__PURE__ */ y("div", {
706
- className: Fe.group,
746
+ className: Le.group,
707
747
  ...o,
708
- children: [/* @__PURE__ */ v(Le, {
709
- className: Fe.groupLabel,
748
+ children: [/* @__PURE__ */ v(ze, {
749
+ className: Le.groupLabel,
710
750
  children: a
711
751
  }), c]
712
752
  }) : c;
713
753
  }
714
- var ze = {
754
+ var Ve = {
715
755
  toolbar: "_toolbar_1naq9_1",
716
756
  searchWrap: "_searchWrap_1naq9_14",
717
757
  searchIcon: "_searchIcon_1naq9_33",
@@ -721,7 +761,7 @@ var ze = {
721
761
  };
722
762
  //#endregion
723
763
  //#region src/components/Toolbar.tsx
724
- function Be({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
764
+ function He({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
725
765
  let o = p(null);
726
766
  return l(() => {
727
767
  function e(e) {
@@ -729,45 +769,45 @@ function Be({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", s
729
769
  }
730
770
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
731
771
  }, [i]), /* @__PURE__ */ y("div", {
732
- className: ze.toolbar,
772
+ className: Ve.toolbar,
733
773
  children: [/* @__PURE__ */ y("div", {
734
- className: ze.searchWrap,
774
+ className: Ve.searchWrap,
735
775
  children: [
736
776
  /* @__PURE__ */ v("span", {
737
- className: ze.searchIcon,
738
- children: /* @__PURE__ */ v(Te, {})
777
+ className: Ve.searchIcon,
778
+ children: /* @__PURE__ */ v(De, {})
739
779
  }),
740
780
  /* @__PURE__ */ v("input", {
741
781
  ref: o,
742
782
  type: "text",
743
- className: ze.search,
783
+ className: Ve.search,
744
784
  placeholder: n,
745
785
  autoComplete: "off",
746
786
  value: e,
747
787
  onChange: (e) => t?.(e.target.value)
748
788
  }),
749
789
  r && /* @__PURE__ */ v("span", {
750
- className: ze.searchShortcut,
790
+ className: Ve.searchShortcut,
751
791
  "aria-hidden": "true",
752
792
  children: r
753
793
  })
754
794
  ]
755
795
  }), a && /* @__PURE__ */ v("div", {
756
- className: ze.controls,
796
+ className: Ve.controls,
757
797
  children: a
758
798
  })]
759
799
  });
760
800
  }
761
- var Ve = {
762
- anchor: "_anchor_1yabe_3",
763
- sentinel: "_sentinel_1yabe_8",
764
- header: "_header_1yabe_17",
765
- animated: "_animated_1yabe_43",
766
- card: "_card_1yabe_49",
767
- left: "_left_1yabe_104",
768
- right: "_right_1yabe_105"
769
- }, He = 4;
770
- function Ue(e) {
801
+ var Ue = {
802
+ anchor: "_anchor_1r8q2_3",
803
+ sentinel: "_sentinel_1r8q2_8",
804
+ header: "_header_1r8q2_17",
805
+ animated: "_animated_1r8q2_43",
806
+ card: "_card_1r8q2_49",
807
+ left: "_left_1r8q2_104",
808
+ right: "_right_1r8q2_105"
809
+ }, We = 4;
810
+ function Ge(e) {
771
811
  let t = e.parentElement;
772
812
  for (; t && t !== document.body && t !== document.documentElement;) {
773
813
  let { overflowY: e } = getComputedStyle(t);
@@ -776,7 +816,7 @@ function Ue(e) {
776
816
  }
777
817
  return null;
778
818
  }
779
- function We({ left: e, right: t, children: n, scrollRoot: r, threshold: i = He, floatOnMobile: a = !1, onStateChange: o, className: s, "data-testid": c = "header" }) {
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" }) {
780
820
  let u = p(null), [d, f] = m("top"), [h, g] = m(!1), b = p(o);
781
821
  l(() => {
782
822
  b.current = o;
@@ -788,7 +828,7 @@ function We({ left: e, right: t, children: n, scrollRoot: r, threshold: i = He,
788
828
  let e = u.current;
789
829
  if (!e) return;
790
830
  let t, n, i = !0, a = 0, o = () => {
791
- let o = r === void 0 ? Ue(e) : r;
831
+ let o = r === void 0 ? Ge(e) : r;
792
832
  t && o === n || (t?.disconnect(), n = o, t = new IntersectionObserver((e) => {
793
833
  let t = e[e.length - 1];
794
834
  f(t.isIntersecting ? "top" : "floating"), i && (i = !1, a = requestAnimationFrame(() => g(!0)));
@@ -799,20 +839,20 @@ function We({ left: e, right: t, children: n, scrollRoot: r, threshold: i = He,
799
839
  };
800
840
  }, [r, i]);
801
841
  let S = [
802
- Ve.card,
803
- h ? Ve.animated : "",
842
+ Ue.card,
843
+ h ? Ue.animated : "",
804
844
  s
805
845
  ].filter(Boolean).join(" ");
806
846
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
807
- className: Ve.anchor,
847
+ className: Ue.anchor,
808
848
  "aria-hidden": "true",
809
849
  children: /* @__PURE__ */ v("div", {
810
850
  ref: u,
811
- className: Ve.sentinel,
851
+ className: Ue.sentinel,
812
852
  style: { top: i }
813
853
  })
814
854
  }), /* @__PURE__ */ v("header", {
815
- className: [Ve.header, h ? Ve.animated : ""].filter(Boolean).join(" "),
855
+ className: [Ue.header, h ? Ue.animated : ""].filter(Boolean).join(" "),
816
856
  "data-state": d,
817
857
  "data-float-mobile": a ? "" : void 0,
818
858
  "data-testid": c,
@@ -821,16 +861,16 @@ function We({ left: e, right: t, children: n, scrollRoot: r, threshold: i = He,
821
861
  "data-state": d,
822
862
  "data-float-mobile": a ? "" : void 0,
823
863
  children: n ?? /* @__PURE__ */ y(_, { children: [e && /* @__PURE__ */ v("div", {
824
- className: Ve.left,
864
+ className: Ue.left,
825
865
  children: e
826
866
  }), t && /* @__PURE__ */ v("div", {
827
- className: Ve.right,
867
+ className: Ue.right,
828
868
  children: t
829
869
  })] })
830
870
  })
831
871
  })] });
832
872
  }
833
- var Ge = {
873
+ var qe = {
834
874
  checkbox: "_checkbox_553ny_1",
835
875
  control: "_control_553ny_8",
836
876
  labelText: "_labelText_553ny_17",
@@ -841,15 +881,15 @@ var Ge = {
841
881
  };
842
882
  //#endregion
843
883
  //#region src/components/Checkbox.tsx
844
- function Ke({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
884
+ function Je({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
845
885
  return /* @__PURE__ */ y("label", {
846
- className: `${Ge.checkbox} ${s ?? ""}`,
886
+ className: `${qe.checkbox} ${s ?? ""}`,
847
887
  children: [/* @__PURE__ */ y("span", {
848
- className: Ge.control,
888
+ className: qe.control,
849
889
  children: [/* @__PURE__ */ v("input", {
850
890
  ref: c,
851
891
  type: "checkbox",
852
- className: Ge.input,
892
+ className: qe.input,
853
893
  checked: e,
854
894
  onChange: t,
855
895
  onBlur: n,
@@ -857,46 +897,46 @@ function Ke({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel:
857
897
  "aria-label": a,
858
898
  disabled: o
859
899
  }), /* @__PURE__ */ v("span", {
860
- className: Ge.box,
900
+ className: qe.box,
861
901
  children: /* @__PURE__ */ v("svg", {
862
- className: Ge.icon,
902
+ className: qe.icon,
863
903
  viewBox: "0 0 17 18",
864
904
  "aria-hidden": "true",
865
905
  children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
866
906
  })
867
907
  })]
868
908
  }), i && /* @__PURE__ */ v("span", {
869
- className: Ge.labelText,
909
+ className: qe.labelText,
870
910
  children: i
871
911
  })]
872
912
  });
873
913
  }
874
- function qe({ checked: e, disabled: t }) {
914
+ function Ye({ checked: e, disabled: t }) {
875
915
  return /* @__PURE__ */ v("span", {
876
- className: `${Ge.box} ${Ge.indicator}`,
916
+ className: `${qe.box} ${qe.indicator}`,
877
917
  "data-checked": e,
878
918
  "data-disabled": t || void 0,
879
919
  "aria-hidden": "true",
880
920
  children: /* @__PURE__ */ v("svg", {
881
- className: Ge.icon,
921
+ className: qe.icon,
882
922
  viewBox: "0 0 17 18",
883
923
  "aria-hidden": "true",
884
924
  children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
885
925
  })
886
926
  });
887
927
  }
888
- function Je({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
928
+ function Xe({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
889
929
  function o(e) {
890
930
  r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
891
931
  }
892
932
  return /* @__PURE__ */ y("div", {
893
933
  role: "group",
894
934
  "aria-label": e ? void 0 : a["aria-label"],
895
- className: Fe.group,
896
- children: [e && /* @__PURE__ */ v(Le, {
897
- className: Fe.groupLabel,
935
+ className: Le.group,
936
+ children: [e && /* @__PURE__ */ v(ze, {
937
+ className: Le.groupLabel,
898
938
  children: e
899
- }), t.map((e) => /* @__PURE__ */ v(Ke, {
939
+ }), t.map((e) => /* @__PURE__ */ v(Je, {
900
940
  checked: n.includes(e.value),
901
941
  onChange: () => o(e.value),
902
942
  label: e.label,
@@ -904,7 +944,7 @@ function Je({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
904
944
  }, e.value))]
905
945
  });
906
946
  }
907
- var Ye = {
947
+ var Ze = {
908
948
  radio: "_radio_2lj6y_1",
909
949
  control: "_control_2lj6y_8",
910
950
  labelText: "_labelText_2lj6y_17",
@@ -914,15 +954,15 @@ var Ye = {
914
954
  };
915
955
  //#endregion
916
956
  //#region src/components/RadioButton.tsx
917
- function Xe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
957
+ function Qe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
918
958
  return /* @__PURE__ */ y("label", {
919
- className: `${Ye.radio} ${c ?? ""}`,
959
+ className: `${Ze.radio} ${c ?? ""}`,
920
960
  children: [/* @__PURE__ */ y("span", {
921
- className: Ye.control,
961
+ className: Ze.control,
922
962
  children: [/* @__PURE__ */ v("input", {
923
963
  ref: l,
924
964
  type: "radio",
925
- className: Ye.input,
965
+ className: Ze.input,
926
966
  checked: e,
927
967
  onChange: t,
928
968
  onBlur: n,
@@ -931,24 +971,24 @@ function Xe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, a
931
971
  "aria-label": o,
932
972
  disabled: s
933
973
  }), /* @__PURE__ */ v("span", {
934
- className: Ye.circle,
935
- children: /* @__PURE__ */ v("span", { className: Ye.dot })
974
+ className: Ze.circle,
975
+ children: /* @__PURE__ */ v("span", { className: Ze.dot })
936
976
  })]
937
977
  }), a && /* @__PURE__ */ v("span", {
938
- className: Ye.labelText,
978
+ className: Ze.labelText,
939
979
  children: a
940
980
  })]
941
981
  });
942
982
  }
943
- function Ze({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
983
+ function $e({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
944
984
  return /* @__PURE__ */ y("div", {
945
985
  role: "radiogroup",
946
986
  "aria-label": e ? void 0 : o["aria-label"],
947
- className: Fe.group,
948
- children: [e && /* @__PURE__ */ v(Le, {
949
- className: Fe.groupLabel,
987
+ className: Le.group,
988
+ children: [e && /* @__PURE__ */ v(ze, {
989
+ className: Le.groupLabel,
950
990
  children: e
951
- }), n.map((e) => /* @__PURE__ */ v(Xe, {
991
+ }), n.map((e) => /* @__PURE__ */ v(Qe, {
952
992
  name: t,
953
993
  value: e.value,
954
994
  checked: r === e.value,
@@ -958,7 +998,7 @@ function Ze({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, .
958
998
  }, e.value))]
959
999
  });
960
1000
  }
961
- var Qe = {
1001
+ var et = {
962
1002
  switch: "_switch_102e5_1",
963
1003
  input: "_input_102e5_7",
964
1004
  control: "_control_102e5_10",
@@ -970,55 +1010,55 @@ var Qe = {
970
1010
  };
971
1011
  //#endregion
972
1012
  //#region src/components/Switch.tsx
973
- function $e({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
1013
+ function tt({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
974
1014
  return /* @__PURE__ */ y("label", {
975
- className: `${Qe.switch} ${o ?? ""}`,
1015
+ className: `${et.switch} ${o ?? ""}`,
976
1016
  children: [/* @__PURE__ */ y("span", {
977
- className: `${Qe.control} ${Qe[n]}`,
1017
+ className: `${et.control} ${et[n]}`,
978
1018
  children: [/* @__PURE__ */ v("input", {
979
1019
  type: "checkbox",
980
1020
  role: "switch",
981
- className: Qe.input,
1021
+ className: et.input,
982
1022
  checked: e,
983
1023
  onChange: t,
984
1024
  "aria-label": i,
985
1025
  disabled: a
986
1026
  }), /* @__PURE__ */ v("span", {
987
- className: Qe.track,
988
- children: /* @__PURE__ */ v("span", { className: Qe.thumb })
1027
+ className: et.track,
1028
+ children: /* @__PURE__ */ v("span", { className: et.thumb })
989
1029
  })]
990
1030
  }), r && /* @__PURE__ */ v("span", {
991
- className: Qe.labelText,
1031
+ className: et.labelText,
992
1032
  children: r
993
1033
  })]
994
1034
  });
995
1035
  }
996
1036
  var G = {
997
- field: "_field_kt021_1",
998
- inputWrap: "_inputWrap_kt021_6",
999
- input: "_input_kt021_6",
1000
- toolbar: "_toolbar_kt021_14",
1001
- errorWrap: "_errorWrap_kt021_24",
1002
- sm: "_sm_kt021_71",
1003
- base: "_base_kt021_79",
1004
- icon: "_icon_kt021_87",
1005
- helperText: "_helperText_kt021_125",
1006
- errorText: "_errorText_kt021_130",
1007
- trailing: "_trailing_kt021_134",
1008
- pickerChevron: "_pickerChevron_kt021_165",
1009
- pickerChevronSm: "_pickerChevronSm_kt021_175",
1010
- pickerInput: "_pickerInput_kt021_182",
1011
- shortcut: "_shortcut_kt021_193",
1012
- kbd: "_kbd_kt021_201"
1037
+ field: "_field_19a7m_1",
1038
+ inputWrap: "_inputWrap_19a7m_6",
1039
+ input: "_input_19a7m_6",
1040
+ toolbar: "_toolbar_19a7m_14",
1041
+ errorWrap: "_errorWrap_19a7m_24",
1042
+ sm: "_sm_19a7m_71",
1043
+ base: "_base_19a7m_79",
1044
+ icon: "_icon_19a7m_87",
1045
+ helperText: "_helperText_19a7m_125",
1046
+ errorText: "_errorText_19a7m_130",
1047
+ trailing: "_trailing_19a7m_134",
1048
+ pickerChevron: "_pickerChevron_19a7m_165",
1049
+ pickerChevronSm: "_pickerChevronSm_19a7m_175",
1050
+ pickerInput: "_pickerInput_19a7m_182",
1051
+ shortcut: "_shortcut_19a7m_193",
1052
+ kbd: "_kbd_19a7m_201"
1013
1053
  };
1014
1054
  //#endregion
1015
1055
  //#region src/components/TextField.tsx
1016
- function et({ label: e, helperText: t, error: n, size: r = "base", variant: i = "default", leadingIcon: a, shortcut: o, id: s, className: c, ref: l, ...d }) {
1056
+ 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 }) {
1017
1057
  let f = u(), m = s ?? f, h = p(null);
1018
1058
  return D(o, () => h.current?.focus()), /* @__PURE__ */ y("div", {
1019
1059
  className: [G.field, c].filter(Boolean).join(" "),
1020
1060
  children: [
1021
- e && /* @__PURE__ */ v(Le, {
1061
+ e && /* @__PURE__ */ v(ze, {
1022
1062
  htmlFor: m,
1023
1063
  children: e
1024
1064
  }),
@@ -1077,10 +1117,10 @@ var K = {
1077
1117
  };
1078
1118
  //#endregion
1079
1119
  //#region src/components/TextArea.tsx
1080
- function tt(e, t) {
1120
+ function rt(e, t) {
1081
1121
  typeof e == "function" ? e(t) : e && (e.current = t);
1082
1122
  }
1083
- function nt({ 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 }) {
1123
+ 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 }) {
1084
1124
  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(() => {
1085
1125
  let e = A.current;
1086
1126
  if (!e || !a) return;
@@ -1125,7 +1165,7 @@ function nt({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1125
1165
  return /* @__PURE__ */ y("div", {
1126
1166
  className: [K.field, f].filter(Boolean).join(" "),
1127
1167
  children: [
1128
- e && /* @__PURE__ */ v(Le, {
1168
+ e && /* @__PURE__ */ v(ze, {
1129
1169
  htmlFor: k,
1130
1170
  children: e
1131
1171
  }),
@@ -1134,7 +1174,7 @@ function nt({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1134
1174
  children: /* @__PURE__ */ v("textarea", {
1135
1175
  ...D,
1136
1176
  ref: (e) => {
1137
- A.current = e, tt(h, e);
1177
+ A.current = e, rt(h, e);
1138
1178
  },
1139
1179
  id: k,
1140
1180
  className: `${K.textarea} ${K[`resize-${ae}`]}`,
@@ -1171,12 +1211,12 @@ function nt({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1171
1211
  }
1172
1212
  //#endregion
1173
1213
  //#region src/components/PasswordField.tsx
1174
- function rt({ 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 }) {
1214
+ 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 }) {
1175
1215
  let p = u(), h = s ?? p, [g, _] = m(o);
1176
1216
  return /* @__PURE__ */ y("div", {
1177
1217
  className: [G.field, c].filter(Boolean).join(" "),
1178
1218
  children: [
1179
- e && /* @__PURE__ */ v(Le, {
1219
+ e && /* @__PURE__ */ v(ze, {
1180
1220
  htmlFor: h,
1181
1221
  children: e
1182
1222
  }),
@@ -1213,12 +1253,12 @@ function rt({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
1213
1253
  }
1214
1254
  //#endregion
1215
1255
  //#region src/components/DateField.tsx
1216
- function it({ label: e, helperText: t, error: n, size: r = "base", openLabel: i = "Open calendar", id: a, className: o, ref: s, onClick: c, disabled: l, ...d }) {
1256
+ 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 }) {
1217
1257
  let f = u(), p = a ?? f;
1218
1258
  return /* @__PURE__ */ y("div", {
1219
1259
  className: [G.field, o].filter(Boolean).join(" "),
1220
1260
  children: [
1221
- e && /* @__PURE__ */ v(Le, {
1261
+ e && /* @__PURE__ */ v(ze, {
1222
1262
  htmlFor: p,
1223
1263
  children: e
1224
1264
  }),
@@ -1252,44 +1292,44 @@ function it({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
1252
1292
  }
1253
1293
  //#endregion
1254
1294
  //#region src/utils/date.ts
1255
- function at(e) {
1295
+ function st(e) {
1256
1296
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
1257
1297
  }
1258
- function ot(e, t) {
1298
+ function ct(e, t) {
1259
1299
  return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
1260
1300
  }
1261
- function st(e, t) {
1301
+ function lt(e, t) {
1262
1302
  return new Date(e, t + 1, 0).getDate();
1263
1303
  }
1264
- function ct(e, t) {
1265
- let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), st(n.getFullYear(), n.getMonth()));
1304
+ function ut(e, t) {
1305
+ let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), lt(n.getFullYear(), n.getMonth()));
1266
1306
  return new Date(n.getFullYear(), n.getMonth(), r);
1267
1307
  }
1268
- function lt(e, t) {
1308
+ function dt(e, t) {
1269
1309
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1270
1310
  }
1271
- function ut(e, t) {
1311
+ function ft(e, t) {
1272
1312
  return e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate();
1273
1313
  }
1274
- function dt(e, t, n) {
1275
- return !!(t && ut(e, t) < 0 || n && ut(e, n) > 0);
1314
+ function pt(e, t, n) {
1315
+ return !!(t && ft(e, t) < 0 || n && ft(e, n) > 0);
1276
1316
  }
1277
- function ft(e, t, n) {
1278
- return t && ut(e, t) < 0 ? at(t) : n && ut(e, n) > 0 ? at(n) : at(e);
1317
+ function mt(e, t, n) {
1318
+ return t && ft(e, t) < 0 ? st(t) : n && ft(e, n) > 0 ? st(n) : st(e);
1279
1319
  }
1280
- function pt(e, t) {
1281
- return ot(e, -((e.getDay() - t + 7) % 7));
1320
+ function ht(e, t) {
1321
+ return ct(e, -((e.getDay() - t + 7) % 7));
1282
1322
  }
1283
- function mt(e, t) {
1284
- return ot(pt(e, t), 6);
1323
+ function gt(e, t) {
1324
+ return ct(ht(e, t), 6);
1285
1325
  }
1286
- var ht = 6;
1287
- function gt(e, t, n) {
1288
- let r = pt(new Date(e, t, 1), n), i = [];
1289
- for (let e = 0; e < ht; e++) {
1326
+ var _t = 6;
1327
+ function vt(e, t, n) {
1328
+ let r = ht(new Date(e, t, 1), n), i = [];
1329
+ for (let e = 0; e < _t; e++) {
1290
1330
  let n = [];
1291
1331
  for (let i = 0; i < 7; i++) {
1292
- let a = ot(r, e * 7 + i);
1332
+ let a = ct(r, e * 7 + i);
1293
1333
  n.push({
1294
1334
  date: a,
1295
1335
  inMonth: a.getMonth() === t
@@ -1300,44 +1340,44 @@ function gt(e, t, n) {
1300
1340
  return i;
1301
1341
  }
1302
1342
  var q = {
1303
- calendar: "_calendar_1suqc_1",
1304
- header: "_header_1suqc_7",
1305
- navButton: "_navButton_1suqc_13",
1306
- title: "_title_1suqc_21",
1307
- grid: "_grid_1suqc_27",
1308
- row: "_row_1suqc_31",
1309
- weekday: "_weekday_1suqc_35",
1310
- day: "_day_1suqc_44",
1311
- selected: "_selected_1suqc_61",
1312
- disabled: "_disabled_1suqc_61",
1313
- outside: "_outside_1suqc_68",
1314
- today: "_today_1suqc_71",
1315
- inRange: "_inRange_1suqc_84",
1316
- rangeStart: "_rangeStart_1suqc_91",
1317
- rangeEnd: "_rangeEnd_1suqc_95",
1318
- hiddenDay: "_hiddenDay_1suqc_99"
1319
- }, _t = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
1320
- function vt(e, t) {
1343
+ calendar: "_calendar_1mr3c_1",
1344
+ header: "_header_1mr3c_7",
1345
+ navButton: "_navButton_1mr3c_13",
1346
+ title: "_title_1mr3c_21",
1347
+ grid: "_grid_1mr3c_27",
1348
+ row: "_row_1mr3c_32",
1349
+ weekday: "_weekday_1mr3c_36",
1350
+ day: "_day_1mr3c_45",
1351
+ selected: "_selected_1mr3c_62",
1352
+ disabled: "_disabled_1mr3c_62",
1353
+ outside: "_outside_1mr3c_69",
1354
+ today: "_today_1mr3c_72",
1355
+ inRange: "_inRange_1mr3c_85",
1356
+ rangeStart: "_rangeStart_1mr3c_92",
1357
+ rangeEnd: "_rangeEnd_1mr3c_96",
1358
+ hiddenDay: "_hiddenDay_1mr3c_100"
1359
+ }, yt = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
1360
+ function bt(e, t) {
1321
1361
  let n = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
1322
1362
  return new Date(e.getFullYear(), e.getMonth(), Math.min(t, n));
1323
1363
  }
1324
- function yt(e, t) {
1364
+ function xt(e, t) {
1325
1365
  return e.charAt(0).toLocaleUpperCase(t) + e.slice(1);
1326
1366
  }
1327
- function bt({ 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 }) {
1328
- let [S, C] = m(() => _ ? vt(_, (e ?? /* @__PURE__ */ new Date()).getDate()) : ft(e ?? /* @__PURE__ */ new Date(), n, r)), w = _ ? `${_.getFullYear()}-${_.getMonth()}` : null, [T, E] = m(w);
1329
- w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(vt(_, S.getDate())));
1330
- let D = e ? _t(e) : null, [O, A] = m(D);
1331
- D !== O && (A(D), e && C(ft(e, n, r)));
1367
+ 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 }) {
1368
+ 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);
1369
+ w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(bt(_, S.getDate())));
1370
+ let D = e ? yt(e) : null, [O, A] = m(D);
1371
+ D !== O && (A(D), e && C(mt(e, n, r)));
1332
1372
  let j = p(null), M = p(!!o), ee = u();
1333
1373
  l(() => {
1334
- M.current && (M.current = !1, j.current?.querySelector(`[data-date="${_t(S)}"]`)?.focus());
1374
+ M.current && (M.current = !1, j.current?.querySelector(`[data-date="${yt(S)}"]`)?.focus());
1335
1375
  }, [S]);
1336
- let N = S.getFullYear(), P = S.getMonth(), F = f(() => gt(N, P, a), [
1376
+ let N = S.getFullYear(), P = S.getMonth(), F = f(() => vt(N, P, a), [
1337
1377
  N,
1338
1378
  P,
1339
1379
  a
1340
- ]), te = at(/* @__PURE__ */ new Date()), ne = !!(h?.start && h.end && ut(h.start, h.end) > 0), I = ne ? h.end : h?.start ?? null, L = ne ? h.start : h?.end ?? null, R = !!(I && L && ut(I, L) !== 0), z = f(() => ({
1380
+ ]), 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(() => ({
1341
1381
  title: new Intl.DateTimeFormat(i, {
1342
1382
  month: "long",
1343
1383
  year: "numeric"
@@ -1345,51 +1385,51 @@ function bt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1345
1385
  short: new Intl.DateTimeFormat(i, { weekday: "short" }),
1346
1386
  long: new Intl.DateTimeFormat(i, { weekday: "long" }),
1347
1387
  full: new Intl.DateTimeFormat(i, { dateStyle: "full" })
1348
- }), [i]), re = F[0].map(({ date: e }) => ({
1349
- short: yt(z.short.format(e), i).slice(0, 2),
1388
+ }), [i]), re = h ? F.filter((e) => e.some((e) => e.inMonth)) : F, ie = F[0].map(({ date: e }) => ({
1389
+ short: xt(z.short.format(e), i).slice(0, 2),
1350
1390
  long: z.long.format(e)
1351
- })), ie = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < at(n), ae = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > at(r), oe = ie(S), se = ae(S);
1352
- function B(e) {
1391
+ })), 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);
1392
+ function V(e) {
1353
1393
  b && (e.getFullYear() !== S.getFullYear() || e.getMonth() !== S.getMonth()) && b(e), C(e);
1354
1394
  }
1355
- function V(e) {
1356
- M.current = !0, B(ft(e, n, r));
1395
+ function ce(e) {
1396
+ M.current = !0, V(mt(e, n, r));
1357
1397
  }
1358
1398
  function H(e) {
1359
- let t = ft(ct(S, e), n, r);
1360
- M.current = e < 0 ? ie(t) : ae(t), B(t);
1399
+ let t = mt(ut(S, e), n, r);
1400
+ M.current = e < 0 ? ae(t) : oe(t), V(t);
1361
1401
  }
1362
- function U(e) {
1402
+ function le(e) {
1363
1403
  let t = null;
1364
1404
  switch (e.key) {
1365
1405
  case "ArrowLeft":
1366
- t = ot(S, -1);
1406
+ t = ct(S, -1);
1367
1407
  break;
1368
1408
  case "ArrowRight":
1369
- t = ot(S, 1);
1409
+ t = ct(S, 1);
1370
1410
  break;
1371
1411
  case "ArrowUp":
1372
- t = ot(S, -7);
1412
+ t = ct(S, -7);
1373
1413
  break;
1374
1414
  case "ArrowDown":
1375
- t = ot(S, 7);
1415
+ t = ct(S, 7);
1376
1416
  break;
1377
1417
  case "PageUp":
1378
- t = ct(S, -1);
1418
+ t = ut(S, -1);
1379
1419
  break;
1380
1420
  case "PageDown":
1381
- t = ct(S, 1);
1421
+ t = ut(S, 1);
1382
1422
  break;
1383
1423
  case "Home":
1384
- t = pt(S, a);
1424
+ t = ht(S, a);
1385
1425
  break;
1386
- case "End": t = mt(S, a);
1426
+ case "End": t = gt(S, a);
1387
1427
  }
1388
- t && (e.preventDefault(), V(t));
1428
+ t && (e.preventDefault(), ce(t));
1389
1429
  }
1390
- function ce(e) {
1391
- let n = at(e);
1392
- B(n), t(n);
1430
+ function ue(e) {
1431
+ let n = st(e);
1432
+ V(n), t(n);
1393
1433
  }
1394
1434
  return /* @__PURE__ */ y("div", {
1395
1435
  className: [q.calendar, d].filter(Boolean).join(" "),
@@ -1402,14 +1442,14 @@ function bt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1402
1442
  className: q.navButton,
1403
1443
  leadingIcon: /* @__PURE__ */ v(pe, {}),
1404
1444
  "aria-label": s,
1405
- disabled: oe,
1445
+ disabled: se,
1406
1446
  onClick: () => H(-1)
1407
1447
  }),
1408
1448
  /* @__PURE__ */ v("div", {
1409
1449
  id: ee,
1410
1450
  className: q.title,
1411
1451
  "aria-live": "polite",
1412
- children: yt(z.title.format(S), i)
1452
+ children: xt(z.title.format(S), i)
1413
1453
  }),
1414
1454
  x === "next" ? /* @__PURE__ */ v("span", {}) : /* @__PURE__ */ v(k, {
1415
1455
  variant: "tertiary",
@@ -1417,7 +1457,7 @@ function bt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1417
1457
  className: q.navButton,
1418
1458
  leadingIcon: /* @__PURE__ */ v(he, {}),
1419
1459
  "aria-label": c,
1420
- disabled: se,
1460
+ disabled: B,
1421
1461
  onClick: () => H(1)
1422
1462
  })
1423
1463
  ]
@@ -1426,27 +1466,27 @@ function bt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1426
1466
  role: "grid",
1427
1467
  "aria-labelledby": ee,
1428
1468
  className: q.grid,
1429
- onKeyDown: U,
1469
+ onKeyDown: le,
1430
1470
  onMouseLeave: g ? () => g(null) : void 0,
1431
1471
  children: [/* @__PURE__ */ v("div", {
1432
1472
  role: "row",
1433
1473
  className: q.row,
1434
- children: re.map((e) => /* @__PURE__ */ v("span", {
1474
+ children: ie.map((e) => /* @__PURE__ */ v("span", {
1435
1475
  role: "columnheader",
1436
1476
  "aria-label": e.long,
1437
1477
  className: q.weekday,
1438
1478
  children: e.short
1439
1479
  }, e.long))
1440
- }), F.map((t) => /* @__PURE__ */ v("div", {
1480
+ }), re.map((t) => /* @__PURE__ */ v("div", {
1441
1481
  role: "row",
1442
1482
  className: q.row,
1443
1483
  children: t.map(({ date: t, inMonth: i }) => {
1444
- let a = dt(t, n, r), o = !!I && lt(t, I), s = !!L && lt(t, L), c = !!(I && L) && ut(t, I) > 0 && ut(t, L) < 0, l = h ? o || s : !!e && lt(t, e), u = !!h && !i, d = lt(t, te);
1484
+ 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);
1445
1485
  return /* @__PURE__ */ v("button", {
1446
1486
  type: "button",
1447
1487
  role: "gridcell",
1448
- "data-date": _t(t),
1449
- tabIndex: lt(t, S) && !u ? 0 : -1,
1488
+ "data-date": yt(t),
1489
+ tabIndex: dt(t, S) && !u ? 0 : -1,
1450
1490
  "aria-selected": l || c,
1451
1491
  "aria-hidden": u || void 0,
1452
1492
  "aria-disabled": a || void 0,
@@ -1464,18 +1504,18 @@ function bt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1464
1504
  a && q.disabled
1465
1505
  ].filter(Boolean).join(" "),
1466
1506
  onMouseDown: a ? (e) => e.preventDefault() : void 0,
1467
- onClick: a || u ? void 0 : () => ce(t),
1507
+ onClick: a || u ? void 0 : () => ue(t),
1468
1508
  onMouseEnter: g && !u ? () => g(t) : void 0,
1469
1509
  onFocus: g && !u ? () => g(t) : void 0,
1470
1510
  children: t.getDate()
1471
- }, _t(t));
1511
+ }, yt(t));
1472
1512
  })
1473
- }, _t(t[0].date)))]
1513
+ }, yt(t[0].date)))]
1474
1514
  })]
1475
1515
  });
1476
1516
  }
1477
- var xt = 4, St = 8;
1478
- function Ct({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, layoutKey: a }) {
1517
+ var Ct = 4, wt = 8;
1518
+ function Tt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, layoutKey: a }) {
1479
1519
  let o = s(() => {
1480
1520
  let e = t.current, i = n();
1481
1521
  if (!e || !i) return;
@@ -1484,9 +1524,9 @@ function Ct({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, la
1484
1524
  return;
1485
1525
  }
1486
1526
  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;
1487
- u = Math.max(St, Math.min(u, c - o - St));
1488
- let d = a.bottom + xt, f = d + s <= l - St, p = a.top - xt - s >= St, m = !f && p;
1489
- m && (d = a.top - xt - s), e.dataset.flipped = String(m), e.dataset.align = r === "bottom-end" ? "end" : "start", e.style.left = `${u}px`, e.style.top = `${d}px`;
1527
+ u = Math.max(wt, Math.min(u, c - o - wt));
1528
+ let d = a.bottom + Ct, f = d + s <= l - wt, p = a.top - Ct - s >= wt, m = !f && p;
1529
+ 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`;
1490
1530
  }, [
1491
1531
  n,
1492
1532
  r,
@@ -1532,15 +1572,15 @@ function Ct({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, la
1532
1572
  t
1533
1573
  ]);
1534
1574
  }
1535
- var wt = { popup: "_popup_eco0g_1" };
1575
+ var Et = { popup: "_popup_eco0g_1" };
1536
1576
  //#endregion
1537
1577
  //#region src/components/DatePicker.tsx
1538
- function Tt({ 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 }) {
1578
+ 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 }) {
1539
1579
  let [D, O] = m(!1), k = p(null), A = p(null), j = u(), M = D && !i, ee = f(() => new Intl.DateTimeFormat(a, {
1540
1580
  month: "short",
1541
1581
  day: "2-digit"
1542
1582
  }), [a]), N = e ? c ? c(e) : ee.format(e) : "";
1543
- Ct({
1583
+ Tt({
1544
1584
  isOpen: M,
1545
1585
  popupRef: A,
1546
1586
  getAnchor: s(() => k.current?.parentElement ?? k.current, []),
@@ -1555,7 +1595,7 @@ function Tt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1555
1595
  function F(e) {
1556
1596
  t(e), O(!1), k.current?.focus();
1557
1597
  }
1558
- return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(it, {
1598
+ return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(ot, {
1559
1599
  ref: k,
1560
1600
  id: E,
1561
1601
  className: T,
@@ -1578,8 +1618,8 @@ function Tt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1578
1618
  id: j,
1579
1619
  role: "dialog",
1580
1620
  "aria-label": w,
1581
- className: wt.popup,
1582
- children: /* @__PURE__ */ v(bt, {
1621
+ className: Et.popup,
1622
+ children: /* @__PURE__ */ v(St, {
1583
1623
  autoFocus: !0,
1584
1624
  value: e,
1585
1625
  onChange: F,
@@ -1590,7 +1630,7 @@ function Tt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1590
1630
  })
1591
1631
  }), document.body)] });
1592
1632
  }
1593
- var Et = {
1633
+ var Ot = {
1594
1634
  skeleton: "_skeleton_5dl4r_2",
1595
1635
  rect: "_rect_5dl4r_7",
1596
1636
  text: "_text_5dl4r_13",
@@ -1600,11 +1640,11 @@ var Et = {
1600
1640
  };
1601
1641
  //#endregion
1602
1642
  //#region src/components/Skeleton.tsx
1603
- function Dt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
1643
+ function kt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
1604
1644
  let s = [
1605
- Et.skeleton,
1606
- Et[e],
1607
- i && Et.animated,
1645
+ Ot.skeleton,
1646
+ Ot[e],
1647
+ i && Ot.animated,
1608
1648
  a
1609
1649
  ].filter(Boolean).join(" "), c = {};
1610
1650
  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", {
@@ -1616,12 +1656,12 @@ function Dt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !
1616
1656
  }
1617
1657
  //#endregion
1618
1658
  //#region src/utils/dateRange.ts
1619
- function Ot(e) {
1659
+ function At(e) {
1620
1660
  return e.start !== null && e.end !== null;
1621
1661
  }
1622
- function kt(e, t) {
1623
- let n = at(t);
1624
- return e.start && !e.end && ut(n, e.start) >= 0 ? {
1662
+ function jt(e, t) {
1663
+ let n = st(t);
1664
+ return e.start && !e.end && ft(n, e.start) >= 0 ? {
1625
1665
  start: e.start,
1626
1666
  end: n
1627
1667
  } : {
@@ -1629,8 +1669,8 @@ function kt(e, t) {
1629
1669
  end: null
1630
1670
  };
1631
1671
  }
1632
- function At(e, t) {
1633
- return e.start && !e.end && t ? ut(t, e.start) < 0 ? {
1672
+ function Mt(e, t) {
1673
+ return e.start && !e.end && t ? ft(t, e.start) < 0 ? {
1634
1674
  start: t,
1635
1675
  end: e.start
1636
1676
  } : {
@@ -1638,8 +1678,8 @@ function At(e, t) {
1638
1678
  end: t
1639
1679
  } : e;
1640
1680
  }
1641
- var jt = " – ";
1642
- function Mt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
1681
+ var Nt = " – ";
1682
+ function Pt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
1643
1683
  let { start: i, end: a } = e;
1644
1684
  if (!i && !a) return "";
1645
1685
  let o = new Intl.DateTimeFormat(t, {
@@ -1650,7 +1690,7 @@ function Mt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue:
1650
1690
  day: "2-digit",
1651
1691
  year: "numeric"
1652
1692
  }), c = [i, a].some((e) => e && e.getFullYear() !== n.getFullYear()), l = (e) => r ? r(e) : (c ? s : o).format(e);
1653
- return i && !a ? l(i) : !i && a ? l(a) : lt(i, a) ? l(i) : `${l(i)}${jt}${l(a)}`;
1693
+ return i && !a ? l(i) : !i && a ? l(a) : dt(i, a) ? l(i) : `${l(i)}${Nt}${l(a)}`;
1654
1694
  }
1655
1695
  var J = {
1656
1696
  field: "_field_18ses_1",
@@ -1673,51 +1713,51 @@ var J = {
1673
1713
  months: "_months_18ses_214",
1674
1714
  month: "_month_18ses_214",
1675
1715
  footer: "_footer_18ses_222"
1676
- }, Nt = "(min-width: 640px)";
1677
- function Pt(e) {
1716
+ }, Ft = "(min-width: 640px)";
1717
+ function It(e) {
1678
1718
  return h((t) => {
1679
1719
  let n = window.matchMedia(e);
1680
1720
  return n.addEventListener("change", t), () => n.removeEventListener("change", t);
1681
1721
  }, () => window.matchMedia(e).matches, () => !1);
1682
1722
  }
1683
- var Ft = (e) => new Date(e.getFullYear(), e.getMonth(), 1), It = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
1684
- function Lt(e, t, n, r) {
1685
- let i = Ft(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
1686
- return r && (i = ct(i, -1)), t && ut(i, Ft(t)) < 0 && (i = Ft(t)), i;
1723
+ var Lt = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Rt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
1724
+ function zt(e, t, n, r) {
1725
+ let i = Lt(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
1726
+ return r && (i = ut(i, -1)), t && ft(i, Lt(t)) < 0 && (i = Lt(t)), i;
1687
1727
  }
1688
- function Rt({ 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 }) {
1728
+ 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 }) {
1689
1729
  let [ee, N] = m(!1), [P, F] = m({
1690
1730
  start: null,
1691
1731
  end: null
1692
- }), [te, ne] = m(null), [I, L] = m(() => Lt(e, n, r, !0)), [R, z] = m(() => at(/* @__PURE__ */ new Date())), re = p(null), ie = p(null), ae = u(), oe = M ?? ae, se = u(), B = Pt(Nt), V = ee && !o && !c, H = a ? i.find((e) => e.id === a) : void 0, U = (e, t) => e && t ? ut(e, t) === 0 : e === t, le = V && !!P.start && !(U(P.start, e.start) && U(P.end, e.end)), W = f(() => le ? Mt(P, {
1732
+ }), [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, {
1693
1733
  locale: l,
1694
1734
  formatValue: h
1695
- }) : H?.label ?? Mt(e, {
1735
+ }) : ce?.label ?? Pt(e, {
1696
1736
  locale: l,
1697
1737
  formatValue: h
1698
1738
  }), [
1699
- le,
1739
+ ue,
1700
1740
  P,
1701
- H,
1741
+ ce,
1702
1742
  e,
1703
1743
  l,
1704
1744
  h
1705
- ]), ue = s(() => re.current, []), fe = s((e) => {
1745
+ ]), W = s(() => re.current, []), fe = s((e) => {
1706
1746
  N(!1), e && re.current?.focus();
1707
1747
  }, []);
1708
- Ct({
1748
+ Tt({
1709
1749
  isOpen: V,
1710
1750
  popupRef: ie,
1711
- getAnchor: ue,
1751
+ getAnchor: W,
1712
1752
  placement: b,
1713
1753
  onClose: fe,
1714
- layoutKey: B
1754
+ layoutKey: `${B}-${I.getTime()}`
1715
1755
  });
1716
1756
  function pe() {
1717
1757
  o || c || (F({
1718
1758
  start: e.start,
1719
1759
  end: e.end
1720
- }), ne(null), L(Lt(e, n, r, B)), z(e.end ?? e.start ?? at(/* @__PURE__ */ new Date())), N(!0));
1760
+ }), ne(null), L(zt(e, n, r, B)), z(e.end ?? e.start ?? st(/* @__PURE__ */ new Date())), N(!0));
1721
1761
  }
1722
1762
  function me() {
1723
1763
  V ? fe(!1) : pe();
@@ -1729,14 +1769,14 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1729
1769
  t(e.range()), fe(!0);
1730
1770
  }
1731
1771
  function _e() {
1732
- Ot(P) && (t({
1772
+ At(P) && (t({
1733
1773
  start: P.start,
1734
1774
  end: P.end
1735
1775
  }), fe(!0));
1736
1776
  }
1737
- let ve = (e) => (t) => L(ct(Ft(t), -e)), ye = At(P, te), be = ct(I, 1), xe = B && It(R, be), Se = {
1777
+ let ve = (e) => (t) => L(ut(Lt(t), -e)), ye = Mt(P, te), be = ut(I, 1), xe = B && Rt(R, be), Se = {
1738
1778
  value: R,
1739
- onChange: (e) => F((t) => kt(t, e)),
1779
+ onChange: (e) => F((t) => jt(t, e)),
1740
1780
  minDate: n,
1741
1781
  maxDate: r,
1742
1782
  locale: l,
@@ -1747,7 +1787,7 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1747
1787
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
1748
1788
  className: [J.field, j].filter(Boolean).join(" "),
1749
1789
  children: [
1750
- S && /* @__PURE__ */ v(Le, {
1790
+ S && /* @__PURE__ */ v(ze, {
1751
1791
  htmlFor: oe,
1752
1792
  children: S
1753
1793
  }),
@@ -1772,17 +1812,17 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1772
1812
  /* @__PURE__ */ v("span", {
1773
1813
  className: J.icon,
1774
1814
  "aria-hidden": !0,
1775
- children: /* @__PURE__ */ v(ce, {})
1815
+ children: /* @__PURE__ */ v(le, {})
1776
1816
  }),
1777
1817
  c ? /* @__PURE__ */ v("span", {
1778
1818
  className: J.value,
1779
- children: /* @__PURE__ */ v(Dt, {
1819
+ children: /* @__PURE__ */ v(kt, {
1780
1820
  variant: "text",
1781
1821
  width: "60%"
1782
1822
  })
1783
1823
  }) : /* @__PURE__ */ v("span", {
1784
- className: [J.value, !W && J.placeholder].filter(Boolean).join(" "),
1785
- children: W || T
1824
+ className: [J.value, !U && J.placeholder].filter(Boolean).join(" "),
1825
+ children: U || T
1786
1826
  }),
1787
1827
  /* @__PURE__ */ v("span", {
1788
1828
  className: [J.chevron, V && J.chevronOpen].filter(Boolean).join(" "),
@@ -1822,7 +1862,7 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1822
1862
  className: J.months,
1823
1863
  children: [/* @__PURE__ */ v("div", {
1824
1864
  className: J.month,
1825
- children: /* @__PURE__ */ v(bt, {
1865
+ children: /* @__PURE__ */ v(St, {
1826
1866
  ...Se,
1827
1867
  autoFocus: !xe,
1828
1868
  month: I,
@@ -1831,7 +1871,7 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1831
1871
  })
1832
1872
  }), B && /* @__PURE__ */ v("div", {
1833
1873
  className: J.month,
1834
- children: /* @__PURE__ */ v(bt, {
1874
+ children: /* @__PURE__ */ v(St, {
1835
1875
  ...Se,
1836
1876
  autoFocus: xe,
1837
1877
  month: be,
@@ -1849,7 +1889,7 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1849
1889
  }), /* @__PURE__ */ v(k, {
1850
1890
  variant: "primary",
1851
1891
  size: "sm",
1852
- disabled: !Ot(P),
1892
+ disabled: !At(P),
1853
1893
  onClick: _e,
1854
1894
  children: O
1855
1895
  })]
@@ -1857,7 +1897,7 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1857
1897
  })]
1858
1898
  }), document.body)] });
1859
1899
  }
1860
- var zt = {
1900
+ var Vt = {
1861
1901
  field: "_field_l0zl7_1",
1862
1902
  inputWrap: "_inputWrap_l0zl7_6",
1863
1903
  errorWrap: "_errorWrap_l0zl7_19",
@@ -1871,64 +1911,64 @@ var zt = {
1871
1911
  };
1872
1912
  //#endregion
1873
1913
  //#region src/components/NumberField.tsx
1874
- function Bt({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1914
+ function Ht({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1875
1915
  let c = u(), l = o ?? c;
1876
1916
  return /* @__PURE__ */ y("div", {
1877
- className: zt.field,
1917
+ className: Vt.field,
1878
1918
  children: [
1879
- e && /* @__PURE__ */ v(Le, {
1919
+ e && /* @__PURE__ */ v(ze, {
1880
1920
  htmlFor: l,
1881
1921
  children: e
1882
1922
  }),
1883
1923
  /* @__PURE__ */ y("div", {
1884
- className: `${zt.inputWrap} ${zt[r]} ${n ? zt.errorWrap : ""}`,
1924
+ className: `${Vt.inputWrap} ${Vt[r]} ${n ? Vt.errorWrap : ""}`,
1885
1925
  children: [
1886
1926
  i && /* @__PURE__ */ v("span", {
1887
- className: zt.prefix,
1927
+ className: Vt.prefix,
1888
1928
  children: i
1889
1929
  }),
1890
1930
  /* @__PURE__ */ v("input", {
1891
1931
  id: l,
1892
- className: zt.input,
1932
+ className: Vt.input,
1893
1933
  ...s
1894
1934
  }),
1895
1935
  a && /* @__PURE__ */ v("span", {
1896
- className: zt.suffix,
1936
+ className: Vt.suffix,
1897
1937
  children: a
1898
1938
  })
1899
1939
  ]
1900
1940
  }),
1901
1941
  n ? /* @__PURE__ */ v("span", {
1902
- className: zt.errorText,
1942
+ className: Vt.errorText,
1903
1943
  children: n
1904
1944
  }) : t ? /* @__PURE__ */ v("span", {
1905
- className: zt.helperText,
1945
+ className: Vt.helperText,
1906
1946
  children: t
1907
1947
  }) : null
1908
1948
  ]
1909
1949
  });
1910
1950
  }
1911
- var Vt = {
1951
+ var Ut = {
1912
1952
  menu: "_menu_xz84k_1",
1913
1953
  divider: "_divider_xz84k_15"
1914
1954
  };
1915
1955
  //#endregion
1916
1956
  //#region src/components/Menu.tsx
1917
- function Ht({ children: e, ...t }) {
1957
+ function Wt({ children: e, ...t }) {
1918
1958
  return /* @__PURE__ */ v("div", {
1919
1959
  role: "menu",
1920
- className: Vt.menu,
1960
+ className: Ut.menu,
1921
1961
  ...t,
1922
1962
  children: e
1923
1963
  });
1924
1964
  }
1925
- function Ut() {
1965
+ function Gt() {
1926
1966
  return /* @__PURE__ */ v("div", {
1927
- className: Vt.divider,
1967
+ className: Ut.divider,
1928
1968
  role: "separator"
1929
1969
  });
1930
1970
  }
1931
- var Wt = {
1971
+ var Kt = {
1932
1972
  item: "_item_15ucz_1",
1933
1973
  base: "_base_15ucz_21",
1934
1974
  icon: "_icon_15ucz_28",
@@ -1941,12 +1981,12 @@ var Wt = {
1941
1981
  };
1942
1982
  //#endregion
1943
1983
  //#region src/components/MenuItem.tsx
1944
- function Gt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
1984
+ function qt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
1945
1985
  let c = [
1946
- Wt.item,
1947
- a === "base" && Wt.base,
1948
- r && Wt.selected,
1949
- i && Wt.destructive
1986
+ Kt.item,
1987
+ a === "base" && Kt.base,
1988
+ r && Kt.selected,
1989
+ i && Kt.destructive
1950
1990
  ].filter(Boolean).join(" ");
1951
1991
  return /* @__PURE__ */ y("button", {
1952
1992
  type: "button",
@@ -1955,24 +1995,24 @@ function Gt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
1955
1995
  ...s,
1956
1996
  children: [
1957
1997
  e && /* @__PURE__ */ v("span", {
1958
- className: Wt.leading,
1998
+ className: Kt.leading,
1959
1999
  children: e
1960
2000
  }),
1961
2001
  t && /* @__PURE__ */ v("span", {
1962
- className: Wt.icon,
2002
+ className: Kt.icon,
1963
2003
  children: t
1964
2004
  }),
1965
2005
  /* @__PURE__ */ v("span", {
1966
- className: Wt.label,
2006
+ className: Kt.label,
1967
2007
  children: o
1968
2008
  }),
1969
2009
  n && /* @__PURE__ */ v("span", {
1970
- className: Wt.trailing,
2010
+ className: Kt.trailing,
1971
2011
  children: n
1972
2012
  }),
1973
2013
  r && /* @__PURE__ */ v("span", {
1974
- className: Wt.check,
1975
- children: /* @__PURE__ */ v(W, {})
2014
+ className: Kt.check,
2015
+ children: /* @__PURE__ */ v(U, {})
1976
2016
  })
1977
2017
  ]
1978
2018
  });
@@ -2014,14 +2054,14 @@ var Y = {
2014
2054
  };
2015
2055
  //#endregion
2016
2056
  //#region src/components/Dropdown.tsx
2017
- function Kt(e) {
2057
+ function Jt(e) {
2018
2058
  return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
2019
2059
  }
2020
- function qt(e) {
2060
+ function Yt(e) {
2021
2061
  return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
2022
2062
  }
2023
- var Jt = (e) => `and ${e} more`;
2024
- function Yt(e) {
2063
+ var Xt = (e) => `and ${e} more`;
2064
+ function Zt(e) {
2025
2065
  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) => {
2026
2066
  if (!e) return;
2027
2067
  let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
@@ -2033,7 +2073,7 @@ function Yt(e) {
2033
2073
  return r.observe(e, { childList: !0 }), () => {
2034
2074
  n.disconnect(), r.disconnect();
2035
2075
  };
2036
- }, []), oe = u(), se = u(), B = e.multiple ? void 0 : e.value, V = e.multiple && e.value || [], H = V.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), U = A ? void 0 : h.find((e) => e.value === B), ce = P.trim().toLowerCase(), le = b && ce ? h.filter((e) => Kt(e).toLowerCase().includes(ce)) : h, W = le.filter((e) => !e.disabled).map((e) => e.value), ue = t === "field";
2076
+ }, []), 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";
2037
2077
  function fe() {
2038
2078
  N(!0), M(!0);
2039
2079
  }
@@ -2046,7 +2086,7 @@ function Yt(e) {
2046
2086
  ie.current?.focus();
2047
2087
  return;
2048
2088
  }
2049
- let e = (A ? H.find((e) => !e.disabled)?.value : B) ?? W[0];
2089
+ let e = (A ? ce.find((e) => !e.disabled)?.value : B) ?? U[0];
2050
2090
  (R.current?.querySelector(`[data-value="${e}"]`))?.focus();
2051
2091
  }, [j]), d(() => {
2052
2092
  if (!j || !re.current || !R.current) return;
@@ -2071,20 +2111,20 @@ function Yt(e) {
2071
2111
  (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), fe());
2072
2112
  }
2073
2113
  function ge(e) {
2074
- e.key === "ArrowDown" && (e.preventDefault(), me(W[0])), e.key === "Enter" && W.length === 1 && (e.preventDefault(), ye(W[0]));
2114
+ e.key === "ArrowDown" && (e.preventDefault(), me(U[0])), e.key === "Enter" && U.length === 1 && (e.preventDefault(), ye(U[0]));
2075
2115
  }
2076
2116
  function _e(e, t) {
2077
- let n = W.indexOf(t);
2117
+ let n = U.indexOf(t);
2078
2118
  if (n === -1) return;
2079
2119
  let r = null;
2080
- if (e.key === "ArrowDown" && (r = (n + 1) % W.length), e.key === "ArrowUp") {
2120
+ if (e.key === "ArrowDown" && (r = (n + 1) % U.length), e.key === "ArrowUp") {
2081
2121
  if (b && n === 0) {
2082
2122
  e.preventDefault(), ie.current?.focus();
2083
2123
  return;
2084
2124
  }
2085
- r = (n - 1 + W.length) % W.length;
2125
+ r = (n - 1 + U.length) % U.length;
2086
2126
  }
2087
- e.key === "Home" && (r = 0), e.key === "End" && (r = W.length - 1), r !== null && (e.preventDefault(), me(W[r]));
2127
+ e.key === "Home" && (r = 0), e.key === "End" && (r = U.length - 1), r !== null && (e.preventDefault(), me(U[r]));
2088
2128
  }
2089
2129
  function ve(e) {
2090
2130
  L((t) => ({
@@ -2102,16 +2142,16 @@ function Yt(e) {
2102
2142
  e.onChange(t), pe(), z.current?.focus();
2103
2143
  }
2104
2144
  function be() {
2105
- if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(H);
2106
- let t = H[0];
2107
- if (H.length === 1) return t.label;
2108
- let n = qt(t);
2109
- return n === void 0 ? `${H.length} selected` : `${n} ${(e.multiple && e.moreText || Jt)(H.length - 1)}`;
2145
+ if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(ce);
2146
+ let t = ce[0];
2147
+ if (ce.length === 1) return t.label;
2148
+ let n = Yt(t);
2149
+ return n === void 0 ? `${ce.length} selected` : `${n} ${(e.multiple && e.moreText || Xt)(ce.length - 1)}`;
2110
2150
  }
2111
- let xe = n === void 0 && (A ? H.length === 0 : !U), Se = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
2151
+ let xe = n === void 0 && (A ? ce.length === 0 : !H), Se = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
2112
2152
  className: Y.prefix,
2113
2153
  children: [e.triggerPrefix, " "]
2114
- }) : null, Ce = n ?? (xe ? f : A ? be() : U?.label), we = /* @__PURE__ */ y(_, { children: [Se, Ce] }), Te = {
2154
+ }) : null, Ce = n ?? (xe ? f : A ? be() : H?.label), we = /* @__PURE__ */ y(_, { children: [Se, Ce] }), Te = {
2115
2155
  "aria-haspopup": "listbox",
2116
2156
  "aria-expanded": j,
2117
2157
  "aria-controls": j ? se : void 0,
@@ -2122,16 +2162,16 @@ function Yt(e) {
2122
2162
  onKeyDown: he
2123
2163
  };
2124
2164
  return /* @__PURE__ */ y("div", {
2125
- className: [ue ? Y.field : Y.fieldInline, T].filter(Boolean).join(" "),
2165
+ className: [W ? Y.field : Y.fieldInline, T].filter(Boolean).join(" "),
2126
2166
  ref: R,
2127
2167
  "data-testid": O,
2128
2168
  children: [
2129
- ue && i && /* @__PURE__ */ v(Le, {
2169
+ W && i && /* @__PURE__ */ v(ze, {
2130
2170
  htmlFor: oe,
2131
2171
  className: E,
2132
2172
  children: i
2133
2173
  }),
2134
- ue ? /* @__PURE__ */ y("button", {
2174
+ W ? /* @__PURE__ */ y("button", {
2135
2175
  ref: z,
2136
2176
  id: oe,
2137
2177
  type: "button",
@@ -2139,9 +2179,9 @@ function Yt(e) {
2139
2179
  className: `${Y.trigger} ${Y[c]} ${o ? Y.errorWrap : ""}`,
2140
2180
  ...Te,
2141
2181
  children: [
2142
- U?.icon && /* @__PURE__ */ v("span", {
2182
+ H?.icon && /* @__PURE__ */ v("span", {
2143
2183
  className: Y.icon,
2144
- children: U.icon
2184
+ children: H.icon
2145
2185
  }),
2146
2186
  /* @__PURE__ */ v("span", {
2147
2187
  className: `${Y.value} ${xe ? Y.placeholder : ""}`,
@@ -2159,9 +2199,9 @@ function Yt(e) {
2159
2199
  className: Y.pillTrigger,
2160
2200
  ...Te,
2161
2201
  children: [
2162
- U?.icon && /* @__PURE__ */ v("span", {
2202
+ H?.icon && /* @__PURE__ */ v("span", {
2163
2203
  className: Y.pillIcon,
2164
- children: U.icon
2204
+ children: H.icon
2165
2205
  }),
2166
2206
  we,
2167
2207
  /* @__PURE__ */ v("span", {
@@ -2175,7 +2215,7 @@ function Yt(e) {
2175
2215
  variant: t,
2176
2216
  size: c,
2177
2217
  className: c === "base" ? Y.buttonTriggerBase : void 0,
2178
- leadingIcon: U?.icon,
2218
+ leadingIcon: H?.icon,
2179
2219
  trailingIcon: /* @__PURE__ */ v("span", {
2180
2220
  className: `${Y.buttonChevron} ${j ? Y.chevronOpen : ""}`,
2181
2221
  children: /* @__PURE__ */ v(de, {})
@@ -2187,18 +2227,18 @@ function Yt(e) {
2187
2227
  ref: re,
2188
2228
  className: [
2189
2229
  Y.menuWrap,
2190
- !ue && Y.menuWrapAuto,
2191
- !ue && A && Y.menuWrapMultiple,
2192
- !ue && r === "end" && Y.menuWrapEnd,
2230
+ !W && Y.menuWrapAuto,
2231
+ !W && A && Y.menuWrapMultiple,
2232
+ !W && r === "end" && Y.menuWrapEnd,
2193
2233
  te && Y.menuWrapUp,
2194
2234
  !j && Y.menuWrapClosing
2195
2235
  ].filter(Boolean).join(" "),
2196
2236
  onAnimationEnd: (e) => {
2197
2237
  j || e.target !== e.currentTarget || (N(!1), ne(!1));
2198
2238
  },
2199
- children: /* @__PURE__ */ y(Ht, {
2239
+ children: /* @__PURE__ */ y(Wt, {
2200
2240
  role: "presentation",
2201
- style: ue ? { width: "100%" } : void 0,
2241
+ style: W ? { width: "100%" } : void 0,
2202
2242
  children: [b && /* @__PURE__ */ v("input", {
2203
2243
  ref: ie,
2204
2244
  type: "text",
@@ -2224,25 +2264,25 @@ function Yt(e) {
2224
2264
  onBlur: (e) => {
2225
2265
  e.currentTarget.contains(e.relatedTarget) || L(null);
2226
2266
  },
2227
- children: [I && le.length > 0 && /* @__PURE__ */ v("span", {
2267
+ children: [I && ue.length > 0 && /* @__PURE__ */ v("span", {
2228
2268
  "aria-hidden": "true",
2229
2269
  className: `${Y.highlight} ${I.instant ? Y.highlightInstant : ""}`,
2230
2270
  style: {
2231
2271
  transform: `translateY(${I.top}px)`,
2232
2272
  height: I.height
2233
2273
  }
2234
- }), le.length === 0 ? /* @__PURE__ */ v("div", {
2274
+ }), ue.length === 0 ? /* @__PURE__ */ v("div", {
2235
2275
  className: Y.noResults,
2236
2276
  role: "presentation",
2237
2277
  children: S
2238
- }) : le.map((e, n) => /* @__PURE__ */ v(Gt, {
2278
+ }) : ue.map((e, n) => /* @__PURE__ */ v(qt, {
2239
2279
  style: { "--i": Math.min(n, 8) },
2240
2280
  "data-value": e.value,
2241
2281
  role: "option",
2242
2282
  "aria-selected": A ? V.includes(e.value) : e.value === B,
2243
2283
  size: t === "pill" ? "sm" : c,
2244
2284
  icon: e.icon,
2245
- leading: A ? /* @__PURE__ */ v(qe, {
2285
+ leading: A ? /* @__PURE__ */ v(Ye, {
2246
2286
  checked: V.includes(e.value),
2247
2287
  disabled: e.disabled
2248
2288
  }) : void 0,
@@ -2257,17 +2297,17 @@ function Yt(e) {
2257
2297
  })]
2258
2298
  })
2259
2299
  }),
2260
- ue && o ? /* @__PURE__ */ v("span", {
2300
+ W && o ? /* @__PURE__ */ v("span", {
2261
2301
  className: Y.errorText,
2262
2302
  children: o
2263
- }) : ue && a ? /* @__PURE__ */ v("span", {
2303
+ }) : W && a ? /* @__PURE__ */ v("span", {
2264
2304
  className: Y.helperText,
2265
2305
  children: a
2266
2306
  }) : null
2267
2307
  ]
2268
2308
  });
2269
2309
  }
2270
- var Xt = {
2310
+ var Qt = {
2271
2311
  item: "_item_5896s_2",
2272
2312
  active: "_active_5896s_38",
2273
2313
  inList: "_inList_5896s_41",
@@ -2278,41 +2318,41 @@ var Xt = {
2278
2318
  glide: "_glide_5896s_115",
2279
2319
  glideAnimated: "_glideAnimated_5896s_128",
2280
2320
  glideVisible: "_glideVisible_5896s_134"
2281
- }, Zt = "data-nav-item", Qt = r(!1);
2282
- function $t({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
2283
- let l = c(Qt), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
2284
- Xt.item,
2285
- n && Xt.active,
2286
- l && Xt.inList,
2321
+ }, $t = "data-nav-item", en = r(!1);
2322
+ function tn({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
2323
+ let l = c(en), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
2324
+ Qt.item,
2325
+ n && Qt.active,
2326
+ l && Qt.inList,
2287
2327
  a
2288
2328
  ].filter(Boolean).join(" ");
2289
2329
  return /* @__PURE__ */ y(u, {
2290
2330
  ...d ? { type: "button" } : {},
2291
2331
  ...i === void 0 ? {} : { href: i },
2292
- [Zt]: "",
2332
+ [$t]: "",
2293
2333
  "aria-current": n ? "page" : void 0,
2294
2334
  className: f,
2295
2335
  ...s,
2296
2336
  children: [
2297
2337
  e && /* @__PURE__ */ v("span", {
2298
- className: Xt.icon,
2338
+ className: Qt.icon,
2299
2339
  "aria-hidden": !0,
2300
2340
  children: e
2301
2341
  }),
2302
2342
  /* @__PURE__ */ v("span", {
2303
- className: Xt.label,
2343
+ className: Qt.label,
2304
2344
  children: o
2305
2345
  }),
2306
2346
  t && /* @__PURE__ */ v("span", {
2307
- className: Xt.trailing,
2347
+ className: Qt.trailing,
2308
2348
  children: t
2309
2349
  })
2310
2350
  ]
2311
2351
  });
2312
2352
  }
2313
- function en({ children: e, className: t, ...n }) {
2353
+ function nn({ children: e, className: t, ...n }) {
2314
2354
  let r = p(null), [i, a] = m(null), [o, c] = m(!1), [l, u] = m(!1), f = s((e) => {
2315
- let t = r.current, n = e instanceof Element ? e.closest(`[${Zt}]`) : null;
2355
+ let t = r.current, n = e instanceof Element ? e.closest(`[${$t}]`) : null;
2316
2356
  if (!t || !n || !t.contains(n)) return;
2317
2357
  if (n.matches(":disabled, [aria-disabled=\"true\"], [hidden]")) {
2318
2358
  c(!1);
@@ -2326,11 +2366,11 @@ function en({ children: e, className: t, ...n }) {
2326
2366
  }, [o]);
2327
2367
  return d(() => {
2328
2368
  o || u(!1);
2329
- }, [o]), /* @__PURE__ */ v(Qt.Provider, {
2369
+ }, [o]), /* @__PURE__ */ v(en.Provider, {
2330
2370
  value: !0,
2331
2371
  children: /* @__PURE__ */ y("div", {
2332
2372
  ref: r,
2333
- className: [Xt.list, t].filter(Boolean).join(" "),
2373
+ className: [Qt.list, t].filter(Boolean).join(" "),
2334
2374
  onMouseOver: (e) => f(e.target),
2335
2375
  onMouseLeave: () => c(!1),
2336
2376
  onFocus: (e) => e.target.matches(":focus-visible") && f(e.target),
@@ -2339,9 +2379,9 @@ function en({ children: e, className: t, ...n }) {
2339
2379
  children: [/* @__PURE__ */ v("span", {
2340
2380
  "aria-hidden": !0,
2341
2381
  className: [
2342
- Xt.glide,
2343
- l && Xt.glideAnimated,
2344
- o && Xt.glideVisible
2382
+ Qt.glide,
2383
+ l && Qt.glideAnimated,
2384
+ o && Qt.glideVisible
2345
2385
  ].filter(Boolean).join(" "),
2346
2386
  style: i ? {
2347
2387
  translate: `0 ${i.top}px`,
@@ -2353,7 +2393,7 @@ function en({ children: e, className: t, ...n }) {
2353
2393
  }
2354
2394
  //#endregion
2355
2395
  //#region src/components/Logo.tsx
2356
- function tn({ size: e = 40, "aria-label": t, ...n }) {
2396
+ function rn({ size: e = 40, "aria-label": t, ...n }) {
2357
2397
  return /* @__PURE__ */ y("svg", {
2358
2398
  width: e,
2359
2399
  height: e,
@@ -2395,7 +2435,7 @@ var X = {
2395
2435
  };
2396
2436
  //#endregion
2397
2437
  //#region src/components/Sidebar.tsx
2398
- function nn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
2438
+ function an({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
2399
2439
  return /* @__PURE__ */ y("aside", {
2400
2440
  className: [X.root, o].filter(Boolean).join(" "),
2401
2441
  children: [
@@ -2421,7 +2461,7 @@ function nn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i
2421
2461
  ]
2422
2462
  });
2423
2463
  }
2424
- function rn({ title: e, subtitle: t, action: n }) {
2464
+ function on({ title: e, subtitle: t, action: n }) {
2425
2465
  return /* @__PURE__ */ y("div", {
2426
2466
  className: X.footerRow,
2427
2467
  children: [/* @__PURE__ */ y("div", {
@@ -2439,7 +2479,7 @@ function rn({ title: e, subtitle: t, action: n }) {
2439
2479
  })]
2440
2480
  });
2441
2481
  }
2442
- function an({ items: e, value: t, onChange: n, "aria-label": r }) {
2482
+ function sn({ items: e, value: t, onChange: n, "aria-label": r }) {
2443
2483
  return /* @__PURE__ */ v("div", {
2444
2484
  role: "group",
2445
2485
  "aria-label": r,
@@ -2465,21 +2505,21 @@ function an({ items: e, value: t, onChange: n, "aria-label": r }) {
2465
2505
  }, e.value))
2466
2506
  });
2467
2507
  }
2468
- var on = { highlight: "_highlight_1pz29_1" };
2508
+ var cn = { highlight: "_highlight_1pz29_1" };
2469
2509
  //#endregion
2470
2510
  //#region src/components/HighlightText.tsx
2471
- function sn(e) {
2511
+ function ln(e) {
2472
2512
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2473
2513
  }
2474
- function cn({ text: e, query: n }) {
2514
+ function un({ text: e, query: n }) {
2475
2515
  if (!n) return /* @__PURE__ */ v(_, { children: e });
2476
- let r = e.split(RegExp(`(${sn(n)})`, "ig"));
2516
+ let r = e.split(RegExp(`(${ln(n)})`, "ig"));
2477
2517
  return /* @__PURE__ */ v(_, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ v("mark", {
2478
- className: on.highlight,
2518
+ className: cn.highlight,
2479
2519
  children: e
2480
2520
  }, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
2481
2521
  }
2482
- var ln = {
2522
+ var dn = {
2483
2523
  group: "_group_1bg0h_1",
2484
2524
  btn: "_btn_1bg0h_4",
2485
2525
  caret: "_caret_1bg0h_29",
@@ -2501,24 +2541,24 @@ var ln = {
2501
2541
  };
2502
2542
  //#endregion
2503
2543
  //#region src/components/FilterSection.tsx
2504
- function un({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2544
+ function fn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2505
2545
  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;
2506
2546
  return /* @__PURE__ */ y("div", { children: [
2507
2547
  /* @__PURE__ */ y("div", {
2508
- className: ln.sectionHeader,
2548
+ className: dn.sectionHeader,
2509
2549
  children: [/* @__PURE__ */ v("div", {
2510
- className: ln.sectionLabel,
2550
+ className: dn.sectionLabel,
2511
2551
  children: e
2512
2552
  }), a && /* @__PURE__ */ v("button", {
2513
2553
  type: "button",
2514
- className: ln.allToggle,
2554
+ className: dn.allToggle,
2515
2555
  onClick: () => a(d ? [] : t),
2516
2556
  children: d ? "Deselect all" : "Select all"
2517
2557
  })]
2518
2558
  }),
2519
2559
  o && /* @__PURE__ */ v("input", {
2520
2560
  type: "text",
2521
- className: ln.search,
2561
+ className: dn.search,
2522
2562
  placeholder: `Search ${e.toLowerCase()}…`,
2523
2563
  autoComplete: "off",
2524
2564
  value: s,
@@ -2526,12 +2566,12 @@ function un({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
2526
2566
  onChange: (e) => c(e.target.value)
2527
2567
  }),
2528
2568
  /* @__PURE__ */ y("div", {
2529
- className: ln.optionsList,
2569
+ className: dn.optionsList,
2530
2570
  children: [u.length === 0 && /* @__PURE__ */ v("div", {
2531
- className: ln.empty,
2571
+ className: dn.empty,
2532
2572
  children: "No match"
2533
- }), u.map((e) => /* @__PURE__ */ v(Ke, {
2534
- className: ln.option,
2573
+ }), u.map((e) => /* @__PURE__ */ v(Je, {
2574
+ className: dn.option,
2535
2575
  checked: r.has(e),
2536
2576
  onChange: () => i(e),
2537
2577
  label: n(e)
@@ -2539,7 +2579,7 @@ function un({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
2539
2579
  })
2540
2580
  ] });
2541
2581
  }
2542
- var dn = {
2582
+ var pn = {
2543
2583
  line: "_line_vczwq_1",
2544
2584
  box: "_box_vczwq_2",
2545
2585
  indicator: "_indicator_vczwq_9",
@@ -2555,7 +2595,7 @@ var dn = {
2555
2595
  };
2556
2596
  //#endregion
2557
2597
  //#region src/components/Tabs.tsx
2558
- function fn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2598
+ function mn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2559
2599
  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");
2560
2600
  d(() => {
2561
2601
  let e = c.current.get(t);
@@ -2594,18 +2634,18 @@ function fn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
2594
2634
  ref: s,
2595
2635
  role: "tablist",
2596
2636
  className: [
2597
- dn[r],
2598
- r === "box" && i === "sm" && dn.sm,
2599
- r === "box" && i === "lg" && dn.lg
2637
+ pn[r],
2638
+ r === "box" && i === "sm" && pn.sm,
2639
+ r === "box" && i === "lg" && pn.lg
2600
2640
  ].filter(Boolean).join(" "),
2601
2641
  onKeyDown: b,
2602
2642
  ...a,
2603
2643
  children: [u && /* @__PURE__ */ v("span", {
2604
2644
  "aria-hidden": !0,
2605
2645
  className: [
2606
- dn.indicator,
2607
- r === "line" ? dn.indicatorLine : dn.indicatorBox,
2608
- h === "settling" && dn.settling
2646
+ pn.indicator,
2647
+ r === "line" ? pn.indicatorLine : pn.indicatorBox,
2648
+ h === "settling" && pn.settling
2609
2649
  ].filter(Boolean).join(" "),
2610
2650
  onTransitionEnd: _,
2611
2651
  style: {
@@ -2626,34 +2666,34 @@ function fn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
2626
2666
  disabled: e.disabled,
2627
2667
  tabIndex: r ? 0 : -1,
2628
2668
  className: [
2629
- dn.tab,
2630
- r && dn.selected,
2631
- i && dn.iconOnly
2669
+ pn.tab,
2670
+ r && pn.selected,
2671
+ i && pn.iconOnly
2632
2672
  ].filter(Boolean).join(" "),
2633
2673
  onClick: () => !e.disabled && n(e.value),
2634
2674
  children: [e.icon && /* @__PURE__ */ v("span", {
2635
- className: dn.icon,
2675
+ className: pn.icon,
2636
2676
  children: e.icon
2637
2677
  }), e.label]
2638
2678
  }, e.value);
2639
2679
  })]
2640
2680
  });
2641
2681
  }
2642
- var pn = {
2682
+ var hn = {
2643
2683
  root: "_root_16e39_1",
2644
2684
  label: "_label_16e39_7"
2645
2685
  };
2646
2686
  //#endregion
2647
2687
  //#region src/components/Toggle.tsx
2648
- function mn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2688
+ function gn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2649
2689
  let a = u();
2650
2690
  return /* @__PURE__ */ y("div", {
2651
- className: pn.root,
2691
+ className: hn.root,
2652
2692
  children: [r && /* @__PURE__ */ v("span", {
2653
2693
  id: a,
2654
- className: pn.label,
2694
+ className: hn.label,
2655
2695
  children: r
2656
- }), /* @__PURE__ */ v(fn, {
2696
+ }), /* @__PURE__ */ v(mn, {
2657
2697
  items: e,
2658
2698
  value: t,
2659
2699
  onChange: n,
@@ -2664,7 +2704,7 @@ function mn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2664
2704
  })]
2665
2705
  });
2666
2706
  }
2667
- var hn = {
2707
+ var _n = {
2668
2708
  spinner: "_spinner_9jjxr_3",
2669
2709
  inner: "_inner_9jjxr_11",
2670
2710
  outer: "_outer_9jjxr_12",
@@ -2675,10 +2715,10 @@ var hn = {
2675
2715
  };
2676
2716
  //#endregion
2677
2717
  //#region src/components/Spinner.tsx
2678
- function gn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2718
+ function vn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2679
2719
  let a = [
2680
- hn.spinner,
2681
- hn[e],
2720
+ _n.spinner,
2721
+ _n[e],
2682
2722
  r
2683
2723
  ].filter(Boolean).join(" ");
2684
2724
  return /* @__PURE__ */ y("div", {
@@ -2691,7 +2731,7 @@ function gn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2691
2731
  },
2692
2732
  "data-testid": i,
2693
2733
  children: [/* @__PURE__ */ v("svg", {
2694
- className: hn.inner,
2734
+ className: _n.inner,
2695
2735
  width: t,
2696
2736
  height: t,
2697
2737
  viewBox: "0 0 64 64",
@@ -2699,7 +2739,7 @@ function gn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2699
2739
  "aria-hidden": "true",
2700
2740
  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" })
2701
2741
  }), /* @__PURE__ */ v("svg", {
2702
- className: hn.outer,
2742
+ className: _n.outer,
2703
2743
  width: t,
2704
2744
  height: t,
2705
2745
  viewBox: "0 0 64 64",
@@ -2731,14 +2771,14 @@ var Z = {
2731
2771
  sheet: "_sheet_3vs6a_206",
2732
2772
  fullscreen: "_fullscreen_3vs6a_212",
2733
2773
  instant: "_instant_3vs6a_222"
2734
- }, _n = 200, vn = "(max-width: 639px)", yn = "(prefers-reduced-motion: reduce)", bn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", xn = r(null);
2735
- function Sn(e) {
2736
- let t = c(xn);
2774
+ }, 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);
2775
+ function wn(e) {
2776
+ let t = c(Cn);
2737
2777
  if (!t) throw Error(`${e} must be rendered inside <Modal>`);
2738
2778
  return t;
2739
2779
  }
2740
- var Cn = [];
2741
- function wn(e) {
2780
+ var Tn = [];
2781
+ function En(e) {
2742
2782
  let [t, n] = m(() => typeof window < "u" && window.matchMedia(e).matches);
2743
2783
  return l(() => {
2744
2784
  let t = window.matchMedia(e), r = () => n(t.matches);
@@ -2746,7 +2786,7 @@ function wn(e) {
2746
2786
  }, [e]), t;
2747
2787
  }
2748
2788
  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 }) {
2749
- 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 = wn(vn), ee = wn(yn), N = p(null), P = p(null), F = p(!1), te = p(!1), ne = p(Symbol("modal")), I = p(e), L = p(t);
2789
+ 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);
2750
2790
  L.current = t, l(() => T(!0), []), l(() => {
2751
2791
  if (e) {
2752
2792
  if (F.current) return;
@@ -2758,7 +2798,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2758
2798
  return () => cancelAnimationFrame(e);
2759
2799
  }
2760
2800
  if (F.current = !1, k(!1), !E) return;
2761
- let t = setTimeout(() => D(!1), ee ? 0 : _n);
2801
+ let t = setTimeout(() => D(!1), ee ? 0 : yn);
2762
2802
  return () => clearTimeout(t);
2763
2803
  }, [e]), l(() => {
2764
2804
  !E && P.current && (P.current.focus?.(), P.current = null);
@@ -2766,22 +2806,22 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2766
2806
  let R = s(() => {
2767
2807
  if (!a || F.current) return;
2768
2808
  F.current = !0, k(!1);
2769
- let e = ee ? 0 : _n;
2809
+ let e = ee ? 0 : yn;
2770
2810
  window.setTimeout(() => L.current(), e);
2771
2811
  }, [a, ee]);
2772
2812
  l(() => {
2773
2813
  if (!E) return;
2774
2814
  let e = ne.current;
2775
- d && Cn.push(e);
2815
+ d && Tn.push(e);
2776
2816
  let t = (t) => {
2777
- t.key === "Escape" && Cn[Cn.length - 1] === e && (t.preventDefault(), R());
2817
+ t.key === "Escape" && Tn[Tn.length - 1] === e && (t.preventDefault(), R());
2778
2818
  };
2779
2819
  document.addEventListener("keydown", t);
2780
2820
  let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
2781
2821
  return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`), N.current?.focus({ preventScroll: !0 }), () => {
2782
2822
  document.removeEventListener("keydown", t);
2783
- let a = Cn.indexOf(e);
2784
- a !== -1 && Cn.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
2823
+ let a = Tn.indexOf(e);
2824
+ a !== -1 && Tn.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
2785
2825
  };
2786
2826
  }, [
2787
2827
  E,
@@ -2790,7 +2830,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2790
2830
  ]);
2791
2831
  let z = (e) => {
2792
2832
  if (e.key !== "Tab" || !N.current) return;
2793
- let t = Array.from(N.current.querySelectorAll(bn));
2833
+ let t = Array.from(N.current.querySelectorAll(Sn));
2794
2834
  if (t.length === 0) {
2795
2835
  e.preventDefault();
2796
2836
  return;
@@ -2824,7 +2864,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2824
2864
  setHasDescription: j,
2825
2865
  requestClose: R
2826
2866
  };
2827
- return g(/* @__PURE__ */ v(xn.Provider, {
2867
+ return g(/* @__PURE__ */ v(Cn.Provider, {
2828
2868
  value: oe,
2829
2869
  children: /* @__PURE__ */ v("div", {
2830
2870
  className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
@@ -2847,13 +2887,13 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2847
2887
  })
2848
2888
  }), re);
2849
2889
  }
2850
- function Tn({ children: e, onClose: t }) {
2851
- let { requestClose: n, dismissible: r } = Sn("Modal.Cover");
2890
+ function Dn({ children: e, onClose: t }) {
2891
+ let { requestClose: n, dismissible: r } = wn("Modal.Cover");
2852
2892
  return /* @__PURE__ */ y("div", {
2853
2893
  className: Z.cover,
2854
2894
  children: [e, t && /* @__PURE__ */ v(k, {
2855
2895
  variant: "tertiary",
2856
- leadingIcon: /* @__PURE__ */ v(ke, {}),
2896
+ leadingIcon: /* @__PURE__ */ v(je, {}),
2857
2897
  "aria-label": "Close",
2858
2898
  "data-testid": "modal-close",
2859
2899
  className: Z.closeButton,
@@ -2864,7 +2904,7 @@ function Tn({ children: e, onClose: t }) {
2864
2904
  })]
2865
2905
  });
2866
2906
  }
2867
- function En({ children: t }) {
2907
+ function On({ children: t }) {
2868
2908
  let n = e.toArray(t), r = n.filter((e) => o(e) && e.type.isModalIcon === !0), i = n.filter((e) => !r.includes(e));
2869
2909
  return /* @__PURE__ */ y("div", {
2870
2910
  className: Z.message,
@@ -2874,52 +2914,52 @@ function En({ children: t }) {
2874
2914
  })]
2875
2915
  });
2876
2916
  }
2877
- function Dn({ children: e, tone: t = "neutral" }) {
2917
+ function kn({ children: e, tone: t = "neutral" }) {
2878
2918
  return /* @__PURE__ */ v("div", {
2879
2919
  className: `${Z.icon} ${Z[`tone-${t}`]}`,
2880
2920
  "aria-hidden": "true",
2881
2921
  children: e
2882
2922
  });
2883
2923
  }
2884
- function On({ children: e, id: t }) {
2885
- let { titleId: n } = Sn("Modal.Title");
2924
+ function An({ children: e, id: t }) {
2925
+ let { titleId: n } = wn("Modal.Title");
2886
2926
  return /* @__PURE__ */ v("h2", {
2887
2927
  id: t ?? n,
2888
2928
  className: Z.title,
2889
2929
  children: e
2890
2930
  });
2891
2931
  }
2892
- function kn({ children: e }) {
2893
- let { descriptionId: t, setHasDescription: n } = Sn("Modal.Description");
2932
+ function jn({ children: e }) {
2933
+ let { descriptionId: t, setHasDescription: n } = wn("Modal.Description");
2894
2934
  return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ v("p", {
2895
2935
  id: t,
2896
2936
  className: Z.description,
2897
2937
  children: e
2898
2938
  });
2899
2939
  }
2900
- function An({ children: e }) {
2940
+ function Mn({ children: e }) {
2901
2941
  return /* @__PURE__ */ v("p", {
2902
2942
  className: Z.hint,
2903
2943
  children: e
2904
2944
  });
2905
2945
  }
2906
- function jn({ children: e }) {
2946
+ function Nn({ children: e }) {
2907
2947
  return /* @__PURE__ */ v("div", {
2908
2948
  className: Z.body,
2909
2949
  children: e
2910
2950
  });
2911
2951
  }
2912
- function Mn({ children: t }) {
2913
- let { isMobile: r } = Sn("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
2952
+ function Pn({ children: t }) {
2953
+ let { isMobile: r } = wn("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
2914
2954
  return /* @__PURE__ */ v("div", {
2915
2955
  className: Z.footer,
2916
2956
  children: i
2917
2957
  });
2918
2958
  }
2919
- Q.Cover = Tn, Q.Message = En, Dn.isModalIcon = !0, Q.Icon = Dn, Q.Title = On, Q.Description = kn, Q.Hint = An, Q.Body = jn, Q.Footer = Mn;
2959
+ 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;
2920
2960
  //#endregion
2921
2961
  //#region src/components/ConfirmDialog.tsx
2922
- function Nn({ 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 }) {
2962
+ 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 }) {
2923
2963
  let d = c === "dangerous";
2924
2964
  return /* @__PURE__ */ y(Q, {
2925
2965
  open: e,
@@ -2948,7 +2988,7 @@ function Nn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon:
2948
2988
  })] })]
2949
2989
  });
2950
2990
  }
2951
- var Pn = {
2991
+ var In = {
2952
2992
  root: "_root_rybn9_1",
2953
2993
  success: "_success_rybn9_11",
2954
2994
  warning: "_warning_rybn9_17",
@@ -2961,45 +3001,45 @@ var Pn = {
2961
3001
  };
2962
3002
  //#endregion
2963
3003
  //#region src/components/EmptyState.tsx
2964
- function Fn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
3004
+ function Ln({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
2965
3005
  return /* @__PURE__ */ y("div", {
2966
- className: `${Pn.root} ${e === "neutral" ? "" : Pn[e]}`,
3006
+ className: `${In.root} ${e === "neutral" ? "" : In[e]}`,
2967
3007
  ...a,
2968
3008
  children: [t != null && /* @__PURE__ */ v("div", {
2969
- className: Pn.icon,
3009
+ className: In.icon,
2970
3010
  "aria-hidden": "true",
2971
3011
  children: t
2972
3012
  }), /* @__PURE__ */ y("div", {
2973
- className: Pn.body,
3013
+ className: In.body,
2974
3014
  children: [
2975
3015
  /* @__PURE__ */ v("p", {
2976
- className: Pn.title,
3016
+ className: In.title,
2977
3017
  children: n
2978
3018
  }),
2979
3019
  r != null && /* @__PURE__ */ v("div", {
2980
- className: Pn.text,
3020
+ className: In.text,
2981
3021
  children: r
2982
3022
  }),
2983
3023
  i != null && /* @__PURE__ */ v("div", {
2984
- className: Pn.action,
3024
+ className: In.action,
2985
3025
  children: i
2986
3026
  })
2987
3027
  ]
2988
3028
  })]
2989
3029
  });
2990
3030
  }
2991
- var In = { photoPreview: "_photoPreview_1m76k_2" }, Ln = 180, Rn = 12, zn = 8;
2992
- function Bn(e, t, n = Ln) {
3031
+ var Rn = { photoPreview: "_photoPreview_1m76k_2" }, zn = 180, Bn = 12, Vn = 8;
3032
+ function Hn(e, t, n = zn) {
2993
3033
  let r = (e, t) => {
2994
- let r = e + Rn, i = r + n + zn > t ? e - Rn - n : r;
2995
- return Math.max(zn, i);
3034
+ let r = e + Bn, i = r + n + Vn > t ? e - Bn - n : r;
3035
+ return Math.max(Vn, i);
2996
3036
  };
2997
3037
  return {
2998
3038
  left: r(e, window.innerWidth),
2999
3039
  top: r(t, window.innerHeight)
3000
3040
  };
3001
3041
  }
3002
- function Vn({ src: e, size: t = Ln, children: r }) {
3042
+ function Un({ src: e, size: t = zn, children: r }) {
3003
3043
  let [i, a] = m(null), [o, s] = m(), c = i !== null;
3004
3044
  if (l(() => {
3005
3045
  if (!c) return;
@@ -3025,14 +3065,14 @@ function Vn({ src: e, size: t = Ln, children: r }) {
3025
3065
  }
3026
3066
  });
3027
3067
  return /* @__PURE__ */ y(_, { children: [f, i && g(/* @__PURE__ */ v("img", {
3028
- className: In.photoPreview,
3068
+ className: Rn.photoPreview,
3029
3069
  src: e,
3030
3070
  alt: "",
3031
3071
  "aria-hidden": "true",
3032
3072
  style: {
3033
3073
  width: t,
3034
3074
  height: t,
3035
- ...Bn(i.x, i.y, t)
3075
+ ...Hn(i.x, i.y, t)
3036
3076
  },
3037
3077
  onError: () => {
3038
3078
  s(e), a(null);
@@ -3040,67 +3080,66 @@ function Vn({ src: e, size: t = Ln, children: r }) {
3040
3080
  }), document.body)] });
3041
3081
  }
3042
3082
  var $ = {
3043
- root: "_root_1wz24_1",
3044
- hasActions: "_hasActions_1wz24_20",
3045
- current: "_current_1wz24_25",
3046
- interactive: "_interactive_1wz24_30",
3047
- side: "_side_1wz24_52",
3048
- thumb: "_thumb_1wz24_61",
3049
- thumbImg: "_thumbImg_1wz24_68",
3050
- tile: "_tile_1wz24_75",
3051
- icon: "_icon_1wz24_95",
3052
- tilePlay: "_tilePlay_1wz24_100",
3053
- badge: "_badge_1wz24_104",
3054
- main: "_main_1wz24_117",
3055
- columns: "_columns_1wz24_125",
3056
- info: "_info_1wz24_133",
3057
- aside: "_aside_1wz24_134",
3058
- date: "_date_1wz24_145",
3059
- label: "_label_1wz24_146",
3060
- title: "_title_1wz24_154",
3061
- workerName: "_workerName_1wz24_155",
3062
- description: "_description_1wz24_162",
3063
- meta: "_meta_1wz24_163",
3064
- comment: "_comment_1wz24_180",
3065
- worker: "_worker_1wz24_155",
3066
- workerRow: "_workerRow_1wz24_205",
3067
- photo: "_photo_1wz24_211",
3068
- emptyPhoto: "_emptyPhoto_1wz24_219",
3069
- workerText: "_workerText_1wz24_227",
3070
- pending: "_pending_1wz24_231",
3071
- actions: "_actions_1wz24_237",
3072
- srOnly: "_srOnly_1wz24_248"
3073
- }, Hn = {
3083
+ root: "_root_awfe3_1",
3084
+ hasActions: "_hasActions_awfe3_20",
3085
+ current: "_current_awfe3_25",
3086
+ interactive: "_interactive_awfe3_30",
3087
+ side: "_side_awfe3_52",
3088
+ thumb: "_thumb_awfe3_61",
3089
+ thumbImg: "_thumbImg_awfe3_68",
3090
+ tile: "_tile_awfe3_75",
3091
+ icon: "_icon_awfe3_95",
3092
+ tilePlay: "_tilePlay_awfe3_100",
3093
+ badge: "_badge_awfe3_104",
3094
+ main: "_main_awfe3_117",
3095
+ columns: "_columns_awfe3_125",
3096
+ info: "_info_awfe3_133",
3097
+ aside: "_aside_awfe3_134",
3098
+ date: "_date_awfe3_145",
3099
+ label: "_label_awfe3_146",
3100
+ title: "_title_awfe3_154",
3101
+ workerName: "_workerName_awfe3_155",
3102
+ description: "_description_awfe3_162",
3103
+ meta: "_meta_awfe3_163",
3104
+ comment: "_comment_awfe3_180",
3105
+ worker: "_worker_awfe3_155",
3106
+ workerRow: "_workerRow_awfe3_205",
3107
+ photo: "_photo_awfe3_211",
3108
+ emptyPhoto: "_emptyPhoto_awfe3_219",
3109
+ workerText: "_workerText_awfe3_227",
3110
+ actions: "_actions_awfe3_232",
3111
+ srOnly: "_srOnly_awfe3_243"
3112
+ }, Wn = {
3074
3113
  worker: "Worker:",
3075
3114
  comment: "Comment:",
3076
- pending: "Card still in progress",
3077
3115
  inaccessible: "Inaccessible",
3078
3116
  archived: "Archived",
3117
+ unavailable: "Preview unavailable",
3079
3118
  new: "Unwatched"
3080
3119
  };
3081
- function Un({ 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 }) {
3120
+ 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 }) {
3082
3121
  let C = {
3083
- ...Hn,
3122
+ ...Wn,
3084
3123
  ...g
3085
- }, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!c && (c.pending || !A), M = !!f, ee = (e) => {
3124
+ }, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!f, M = (e) => {
3086
3125
  e.target === e.currentTarget && (e.key === "Enter" ? f?.() : e.key === " " && (e.preventDefault(), f?.()));
3087
- }, N = [
3126
+ }, ee = [
3088
3127
  $.root,
3089
- (M || p) && $.interactive,
3128
+ (j || p) && $.interactive,
3090
3129
  d && $.current,
3091
3130
  h != null && $.hasActions,
3092
3131
  x
3093
- ].filter(Boolean).join(" "), P = M ? {
3132
+ ].filter(Boolean).join(" "), N = j ? {
3094
3133
  role: "button",
3095
3134
  tabIndex: 0,
3096
3135
  "aria-label": b ?? (l ? `Video ${l}` : "Video"),
3097
3136
  onClick: f,
3098
- onKeyDown: ee
3137
+ onKeyDown: M
3099
3138
  } : { "aria-label": b };
3100
3139
  return /* @__PURE__ */ y("div", {
3101
- className: N,
3140
+ className: ee,
3102
3141
  "data-testid": S,
3103
- ...P,
3142
+ ...N,
3104
3143
  children: [
3105
3144
  /* @__PURE__ */ y("div", {
3106
3145
  className: $.side,
@@ -3117,17 +3156,17 @@ function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3117
3156
  }
3118
3157
  }) : /* @__PURE__ */ v("div", {
3119
3158
  className: `${$.tile} ${t === "play" ? $.tilePlay : ""}`,
3120
- children: t === "play" ? /* @__PURE__ */ v(Ce, {
3159
+ children: t === "play" ? /* @__PURE__ */ v(Te, {
3121
3160
  size: 20,
3122
3161
  "aria-hidden": "true"
3123
3162
  }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
3124
3163
  className: $.icon,
3125
- children: v(t === "archived" ? H : xe, {
3164
+ children: v(t === "archived" ? ce : t === "unavailable" ? xe : Ce, {
3126
3165
  size: 12,
3127
3166
  strokeWidth: 1,
3128
3167
  "aria-hidden": "true"
3129
3168
  })
3130
- }), /* @__PURE__ */ v("span", { children: t === "archived" ? C.archived : C.inaccessible })] })
3169
+ }), /* @__PURE__ */ v("span", { children: t === "archived" ? C.archived : t === "unavailable" ? C.unavailable : C.inaccessible })] })
3131
3170
  })
3132
3171
  }), !u && /* @__PURE__ */ v("span", {
3133
3172
  className: $.badge,
@@ -3167,7 +3206,7 @@ function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3167
3206
  children: C.worker
3168
3207
  }), /* @__PURE__ */ y("div", {
3169
3208
  className: $.workerRow,
3170
- children: [A ? /* @__PURE__ */ v(Vn, {
3209
+ children: [A ? /* @__PURE__ */ v(Un, {
3171
3210
  src: k,
3172
3211
  children: /* @__PURE__ */ v("img", {
3173
3212
  className: $.photo,
@@ -3180,16 +3219,13 @@ function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3180
3219
  }) : /* @__PURE__ */ v("div", {
3181
3220
  className: `${$.photo} ${$.emptyPhoto}`,
3182
3221
  "aria-hidden": "true",
3183
- children: /* @__PURE__ */ v(De, { size: 20 })
3184
- }), /* @__PURE__ */ y("div", {
3222
+ children: /* @__PURE__ */ v(ke, { size: 20 })
3223
+ }), /* @__PURE__ */ v("div", {
3185
3224
  className: $.workerText,
3186
- children: [/* @__PURE__ */ v("div", {
3225
+ children: /* @__PURE__ */ v("div", {
3187
3226
  className: $.workerName,
3188
3227
  children: c.name
3189
- }), j && /* @__PURE__ */ v("div", {
3190
- className: $.pending,
3191
- children: C.pending
3192
- })]
3228
+ })
3193
3229
  })]
3194
3230
  })]
3195
3231
  })
@@ -3210,14 +3246,14 @@ function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3210
3246
  ]
3211
3247
  });
3212
3248
  }
3213
- function Wn({ className: e, "data-testid": t }) {
3249
+ function Kn({ className: e, "data-testid": t }) {
3214
3250
  return /* @__PURE__ */ y("div", {
3215
3251
  className: `${$.root} ${e ?? ""}`,
3216
3252
  "data-testid": t,
3217
3253
  "aria-hidden": "true",
3218
3254
  children: [/* @__PURE__ */ v("div", {
3219
3255
  className: $.side,
3220
- children: /* @__PURE__ */ v(Dt, {
3256
+ children: /* @__PURE__ */ v(kt, {
3221
3257
  width: 72,
3222
3258
  height: 48
3223
3259
  })
@@ -3226,15 +3262,15 @@ function Wn({ className: e, "data-testid": t }) {
3226
3262
  children: /* @__PURE__ */ y("div", {
3227
3263
  className: $.info,
3228
3264
  children: [
3229
- /* @__PURE__ */ v(Dt, {
3265
+ /* @__PURE__ */ v(kt, {
3230
3266
  variant: "text",
3231
3267
  width: "40%"
3232
3268
  }),
3233
- /* @__PURE__ */ v(Dt, {
3269
+ /* @__PURE__ */ v(kt, {
3234
3270
  variant: "text",
3235
3271
  width: "65%"
3236
3272
  }),
3237
- /* @__PURE__ */ v(Dt, {
3273
+ /* @__PURE__ */ v(kt, {
3238
3274
  variant: "text",
3239
3275
  width: "90%"
3240
3276
  })
@@ -3243,18 +3279,18 @@ function Wn({ className: e, "data-testid": t }) {
3243
3279
  })]
3244
3280
  });
3245
3281
  }
3246
- var Gn = Object.assign(Un, { Skeleton: Wn });
3282
+ var qn = Object.assign(Gn, { Skeleton: Kn });
3247
3283
  //#endregion
3248
3284
  //#region src/utils/format.ts
3249
- function Kn(e) {
3285
+ function Jn(e) {
3250
3286
  let t = Math.floor(e / 60), n = e % 60;
3251
3287
  return `${t}h:${String(n).padStart(2, "0")}m`;
3252
3288
  }
3253
- function qn(e, t) {
3289
+ function Yn(e, t) {
3254
3290
  let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
3255
3291
  return `${i(n)}:${i(r)}:${i(t)}`;
3256
3292
  }
3257
3293
  //#endregion
3258
- export { N as Badge, k as Button, bt as Calendar, j as Card, Ke as Checkbox, Je as CheckboxGroup, Nn as ConfirmDialog, it as DateField, Tt as DatePicker, Rt as DateRangePicker, Yt as Dropdown, Fn as EmptyState, Le as FieldLabel, un as FilterSection, cn as HighlightText, an as LanguageSwitch, tn as Logo, Ht as Menu, Ut as MenuDivider, Gt as MenuItem, Q as Modal, $t as NavItem, en as NavList, Bt as NumberField, rt as PasswordField, Vn as PhotoPreview, Xe as RadioButton, Ze as RadioGroup, nn as Sidebar, rn as SidebarFooter, Dt as Skeleton, gn as Spinner, $e as Switch, fn as Tabs, Ne as Tag, Re as TagGroup, nt as TextArea, et as TextField, mn as Toggle, Be as Toolbar, We as ToolbarAdaptive, C as Tooltip, Gn as VideoCard, Kn as formatDuration, qn as formatDurationHMS };
3294
+ 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 };
3259
3295
 
3260
3296
  //# sourceMappingURL=index.js.map