cattle-care-ui 0.5.5 → 0.5.7

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
@@ -368,7 +368,7 @@ function B(e, t = [], n = []) {
368
368
  }
369
369
  //#endregion
370
370
  //#region node_modules/lucide-react/dist/esm/icons/archive.mjs
371
- var V = {
371
+ var ce = {
372
372
  name: "archive",
373
373
  size: 24,
374
374
  node: [
@@ -390,8 +390,8 @@ var V = {
390
390
  }]
391
391
  ]
392
392
  };
393
- V.node;
394
- var ce = B(V), H = {
393
+ ce.node;
394
+ var V = B(ce), H = {
395
395
  name: "calendar-days",
396
396
  size: 24,
397
397
  node: [
@@ -1441,15 +1441,15 @@ function wt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1441
1441
  short: Ct(z.short.format(e), i).slice(0, 2),
1442
1442
  long: z.long.format(e)
1443
1443
  })), ae = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < lt(n), oe = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > lt(r), se = ae(S), B = oe(S);
1444
- function V(e) {
1444
+ function ce(e) {
1445
1445
  b && (e.getFullYear() !== S.getFullYear() || e.getMonth() !== S.getMonth()) && b(e), C(e);
1446
1446
  }
1447
- function ce(e) {
1448
- M.current = !0, V(gt(e, n, r));
1447
+ function V(e) {
1448
+ M.current = !0, ce(gt(e, n, r));
1449
1449
  }
1450
1450
  function H(e) {
1451
1451
  let t = gt(ft(S, e), n, r);
1452
- M.current = e < 0 ? ae(t) : oe(t), V(t);
1452
+ M.current = e < 0 ? ae(t) : oe(t), ce(t);
1453
1453
  }
1454
1454
  function le(e) {
1455
1455
  let t = null;
@@ -1477,11 +1477,11 @@ function wt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1477
1477
  break;
1478
1478
  case "End": t = vt(S, a);
1479
1479
  }
1480
- t && (e.preventDefault(), ce(t));
1480
+ t && (e.preventDefault(), V(t));
1481
1481
  }
1482
1482
  function ue(e) {
1483
1483
  let n = lt(e);
1484
- V(n), t(n);
1484
+ ce(n), t(n);
1485
1485
  }
1486
1486
  return /* @__PURE__ */ y("div", {
1487
1487
  className: [q.calendar, d].filter(Boolean).join(" "),
@@ -1683,27 +1683,29 @@ function kt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1683
1683
  }), document.body)] });
1684
1684
  }
1685
1685
  var At = {
1686
- skeleton: "_skeleton_5dl4r_2",
1687
- rect: "_rect_5dl4r_7",
1688
- text: "_text_5dl4r_13",
1689
- circle: "_circle_5dl4r_19",
1690
- animated: "_animated_5dl4r_26",
1691
- skeletonPulse: "_skeletonPulse_5dl4r_1"
1686
+ skeleton: "_skeleton_1pnmb_2",
1687
+ inverse: "_inverse_1pnmb_7",
1688
+ rect: "_rect_1pnmb_11",
1689
+ text: "_text_1pnmb_17",
1690
+ circle: "_circle_1pnmb_23",
1691
+ animated: "_animated_1pnmb_30",
1692
+ skeletonPulse: "_skeletonPulse_1pnmb_1"
1692
1693
  };
1693
1694
  //#endregion
1694
1695
  //#region src/components/Skeleton.tsx
1695
- function jt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
1696
- let s = [
1696
+ function jt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, tone: a = "default", className: o, "data-testid": s }) {
1697
+ let c = [
1697
1698
  At.skeleton,
1698
1699
  At[e],
1700
+ a === "inverse" && At.inverse,
1699
1701
  i && At.animated,
1700
- a
1701
- ].filter(Boolean).join(" "), c = {};
1702
- return e === "circle" && r !== void 0 && (c.width = r, c.height = r), t !== void 0 && (c.width = t), n !== void 0 && (c.height = n), /* @__PURE__ */ v("div", {
1702
+ o
1703
+ ].filter(Boolean).join(" "), l = {};
1704
+ return e === "circle" && r !== void 0 && (l.width = r, l.height = r), t !== void 0 && (l.width = t), n !== void 0 && (l.height = n), /* @__PURE__ */ v("div", {
1703
1705
  "aria-hidden": "true",
1704
- className: s,
1705
- style: c,
1706
- "data-testid": o
1706
+ className: c,
1707
+ style: l,
1708
+ "data-testid": s
1707
1709
  });
1708
1710
  }
1709
1711
  //#endregion
@@ -1745,97 +1747,97 @@ function It(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue:
1745
1747
  return i && !a ? l(i) : !i && a ? l(a) : pt(i, a) ? l(i) : `${l(i)}${Ft}${l(a)}`;
1746
1748
  }
1747
1749
  var J = {
1748
- field: "_field_ltmv6_1",
1749
- trigger: "_trigger_ltmv6_11",
1750
- errorWrap: "_errorWrap_ltmv6_43",
1751
- sm: "_sm_ltmv6_68",
1752
- base: "_base_ltmv6_76",
1753
- icon: "_icon_ltmv6_84",
1754
- value: "_value_ltmv6_98",
1755
- placeholder: "_placeholder_ltmv6_106",
1756
- chevron: "_chevron_ltmv6_109",
1757
- chevronOpen: "_chevronOpen_ltmv6_124",
1758
- helperText: "_helperText_ltmv6_127",
1759
- errorText: "_errorText_ltmv6_132",
1760
- popup: "_popup_ltmv6_138",
1761
- popupIn: "_popupIn_ltmv6_1",
1762
- presets: "_presets_ltmv6_173",
1763
- preset: "_preset_ltmv6_173",
1764
- main: "_main_ltmv6_213",
1765
- months: "_months_ltmv6_220",
1766
- month: "_month_ltmv6_220",
1767
- footer: "_footer_ltmv6_228"
1768
- }, Lt = "(min-width: 640px)";
1769
- function Rt(e) {
1750
+ field: "_field_6a290_1",
1751
+ trigger: "_trigger_6a290_11",
1752
+ errorWrap: "_errorWrap_6a290_43",
1753
+ sm: "_sm_6a290_68",
1754
+ base: "_base_6a290_76",
1755
+ icon: "_icon_6a290_84",
1756
+ value: "_value_6a290_98",
1757
+ placeholder: "_placeholder_6a290_106",
1758
+ chevron: "_chevron_6a290_109",
1759
+ chevronOpen: "_chevronOpen_6a290_124",
1760
+ helperText: "_helperText_6a290_127",
1761
+ errorText: "_errorText_6a290_132",
1762
+ popup: "_popup_6a290_138",
1763
+ popupIn: "_popupIn_6a290_1",
1764
+ presets: "_presets_6a290_173",
1765
+ preset: "_preset_6a290_173",
1766
+ main: "_main_6a290_213",
1767
+ months: "_months_6a290_220",
1768
+ month: "_month_6a290_220",
1769
+ footer: "_footer_6a290_228"
1770
+ }, Lt = "(min-width: 640px)", Rt = "(max-width: 480px)";
1771
+ function zt(e) {
1770
1772
  return h((t) => {
1771
1773
  let n = window.matchMedia(e);
1772
1774
  return n.addEventListener("change", t), () => n.removeEventListener("change", t);
1773
1775
  }, () => window.matchMedia(e).matches, () => !1);
1774
1776
  }
1775
- var zt = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Bt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
1776
- function Vt(e, t, n, r) {
1777
- let i = zt(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
1778
- return r && (i = ft(i, -1)), t && mt(i, zt(t)) < 0 && (i = zt(t)), i;
1777
+ var Bt = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Vt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
1778
+ function Ht(e, t, n, r) {
1779
+ let i = Bt(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
1780
+ return r && (i = ft(i, -1)), t && mt(i, Bt(t)) < 0 && (i = Bt(t)), i;
1779
1781
  }
1780
- function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], activePresetId: a, disabled: o, loading: c, locale: l = "en", weekStartsOn: d = 0, formatValue: h, placement: b = "bottom-start", size: x = "base", label: S, helperText: C, error: w, placeholder: T = "Select period", openLabel: E = "Choose period", dialogLabel: D = "Choose period", applyLabel: O = "Apply", cancelLabel: A = "Cancel", className: j, id: M }) {
1782
+ function Ut({ 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 }) {
1781
1783
  let [ee, N] = m(!1), [P, F] = m({
1782
1784
  start: null,
1783
1785
  end: null
1784
- }), [te, ne] = m(null), [I, L] = m(() => Vt(e, n, r, !0)), [R, z] = m(() => lt(/* @__PURE__ */ new Date())), re = p(null), ie = p(null), ae = u(), oe = M ?? ae, se = u(), B = Rt(Lt), V = ee && !o && !c, ce = a ? i.find((e) => e.id === a) : void 0, H = (e, t) => e && t ? mt(e, t) === 0 : e === t, ue = V && !!P.start && !(H(P.start, e.start) && H(P.end, e.end)), U = f(() => ue ? It(P, {
1786
+ }), [te, ne] = m(null), [I, L] = m(() => Ht(e, n, r, !0)), [R, z] = m(() => lt(/* @__PURE__ */ new Date())), re = p(null), ie = p(null), ae = u(), oe = M ?? ae, se = u(), B = zt(Lt), ce = zt(Rt), V = ee && !o && !c, H = a ? i.find((e) => e.id === a) : void 0, ue = (e, t) => e && t ? mt(e, t) === 0 : e === t, U = V && !!P.start && !(ue(P.start, e.start) && ue(P.end, e.end)), W = f(() => U ? It(P, {
1785
1787
  locale: l,
1786
1788
  formatValue: h
1787
- }) : ce?.label ?? It(e, {
1789
+ }) : H?.label ?? It(e, {
1788
1790
  locale: l,
1789
1791
  formatValue: h
1790
1792
  }), [
1791
- ue,
1793
+ U,
1792
1794
  P,
1793
- ce,
1795
+ H,
1794
1796
  e,
1795
1797
  l,
1796
1798
  h
1797
- ]), W = s(() => re.current, []), fe = s((e) => {
1799
+ ]), fe = s(() => re.current, []), pe = s((e) => {
1798
1800
  N(!1), e && re.current?.focus();
1799
1801
  }, []);
1800
1802
  Dt({
1801
1803
  isOpen: V,
1802
1804
  popupRef: ie,
1803
- getAnchor: W,
1805
+ getAnchor: fe,
1804
1806
  placement: b,
1805
- onClose: fe,
1807
+ onClose: pe,
1806
1808
  layoutKey: `${B}-${I.getTime()}`
1807
1809
  });
1808
- function pe() {
1810
+ function me() {
1809
1811
  o || c || (F({
1810
1812
  start: e.start,
1811
1813
  end: e.end
1812
- }), ne(null), L(Vt(e, n, r, B)), z(e.end ?? e.start ?? lt(/* @__PURE__ */ new Date())), N(!0));
1814
+ }), ne(null), L(Ht(e, n, r, B)), z(e.end ?? e.start ?? lt(/* @__PURE__ */ new Date())), N(!0));
1813
1815
  }
1814
- function me() {
1815
- V ? fe(!1) : pe();
1816
- }
1817
- function he(e) {
1818
- e.key === "ArrowDown" && !V && (e.preventDefault(), pe());
1816
+ function he() {
1817
+ V ? pe(!1) : me();
1819
1818
  }
1820
1819
  function ge(e) {
1821
- t(e.range()), fe(!0);
1820
+ e.key === "ArrowDown" && !V && (e.preventDefault(), me());
1821
+ }
1822
+ function _e(e) {
1823
+ t(e.range()), pe(!0);
1822
1824
  }
1823
- function _e() {
1825
+ function ve() {
1824
1826
  Mt(P) && (t({
1825
1827
  start: P.start,
1826
1828
  end: P.end
1827
- }), fe(!0));
1829
+ }), pe(!0));
1828
1830
  }
1829
- let ve = (e) => (t) => L(ft(zt(t), -e)), ye = Pt(P, te), be = ft(I, 1), xe = B && Bt(R, be), Se = {
1831
+ let ye = (e) => (t) => L(ft(Bt(t), -e)), be = Pt(P, te), xe = ft(I, 1), Se = B && Vt(R, xe), Ce = {
1830
1832
  value: R,
1831
1833
  onChange: (e) => F((t) => Nt(t, e)),
1832
1834
  minDate: n,
1833
1835
  maxDate: r,
1834
1836
  locale: l,
1835
1837
  weekStartsOn: d,
1836
- range: ye,
1838
+ range: be,
1837
1839
  onDayHover: ne
1838
- }, Ce = i.length > 0;
1840
+ }, we = i.length > 0;
1839
1841
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
1840
1842
  className: [J.field, j].filter(Boolean).join(" "),
1841
1843
  children: [
@@ -1858,8 +1860,8 @@ function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1858
1860
  "aria-expanded": V,
1859
1861
  "aria-controls": V ? se : void 0,
1860
1862
  "aria-busy": c || void 0,
1861
- onClick: me,
1862
- onKeyDown: he,
1863
+ onClick: he,
1864
+ onKeyDown: ge,
1863
1865
  children: [
1864
1866
  /* @__PURE__ */ v("span", {
1865
1867
  className: J.icon,
@@ -1873,8 +1875,8 @@ function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1873
1875
  width: "60%"
1874
1876
  })
1875
1877
  }) : /* @__PURE__ */ v("span", {
1876
- className: [J.value, !U && J.placeholder].filter(Boolean).join(" "),
1877
- children: U || T
1878
+ className: [J.value, !W && J.placeholder].filter(Boolean).join(" "),
1879
+ children: W || T
1878
1880
  }),
1879
1881
  /* @__PURE__ */ v("span", {
1880
1882
  className: [J.chevron, V && J.chevronOpen].filter(Boolean).join(" "),
@@ -1897,7 +1899,7 @@ function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1897
1899
  role: "dialog",
1898
1900
  "aria-label": D,
1899
1901
  className: J.popup,
1900
- children: [Ce && /* @__PURE__ */ v("div", {
1902
+ children: [we && /* @__PURE__ */ v("div", {
1901
1903
  className: J.presets,
1902
1904
  role: "group",
1903
1905
  "aria-label": D,
@@ -1905,7 +1907,7 @@ function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1905
1907
  type: "button",
1906
1908
  className: J.preset,
1907
1909
  "aria-pressed": e.id === a,
1908
- onClick: () => ge(e),
1910
+ onClick: () => _e(e),
1909
1911
  children: e.label
1910
1912
  }, e.id))
1911
1913
  }), /* @__PURE__ */ y("div", {
@@ -1915,41 +1917,57 @@ function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
1915
1917
  children: [/* @__PURE__ */ v("div", {
1916
1918
  className: J.month,
1917
1919
  children: /* @__PURE__ */ v(wt, {
1918
- ...Se,
1919
- autoFocus: !xe,
1920
+ ...Ce,
1921
+ autoFocus: !Se,
1920
1922
  month: I,
1921
- onMonthChange: ve(0),
1923
+ onMonthChange: ye(0),
1922
1924
  hideNavigation: B ? "next" : void 0
1923
1925
  })
1924
1926
  }), B && /* @__PURE__ */ v("div", {
1925
1927
  className: J.month,
1926
1928
  children: /* @__PURE__ */ v(wt, {
1927
- ...Se,
1928
- autoFocus: xe,
1929
- month: be,
1930
- onMonthChange: ve(1),
1929
+ ...Ce,
1930
+ autoFocus: Se,
1931
+ month: xe,
1932
+ onMonthChange: ye(1),
1931
1933
  hideNavigation: "previous"
1932
1934
  })
1933
1935
  })]
1934
- }), /* @__PURE__ */ y("div", {
1936
+ }), ce ? /* @__PURE__ */ y("div", {
1937
+ className: J.footer,
1938
+ children: [/* @__PURE__ */ v(k, {
1939
+ variant: "primary",
1940
+ size: "base",
1941
+ fullWidth: !0,
1942
+ disabled: !Mt(P),
1943
+ onClick: ve,
1944
+ children: O
1945
+ }), /* @__PURE__ */ v(k, {
1946
+ variant: "tertiary",
1947
+ size: "base",
1948
+ fullWidth: !0,
1949
+ onClick: () => pe(!0),
1950
+ children: A
1951
+ })]
1952
+ }) : /* @__PURE__ */ y("div", {
1935
1953
  className: J.footer,
1936
1954
  children: [/* @__PURE__ */ v(k, {
1937
1955
  variant: "tertiary",
1938
1956
  size: "sm",
1939
- onClick: () => fe(!0),
1957
+ onClick: () => pe(!0),
1940
1958
  children: A
1941
1959
  }), /* @__PURE__ */ v(k, {
1942
1960
  variant: "primary",
1943
1961
  size: "sm",
1944
1962
  disabled: !Mt(P),
1945
- onClick: _e,
1963
+ onClick: ve,
1946
1964
  children: O
1947
1965
  })]
1948
1966
  })]
1949
1967
  })]
1950
1968
  }), document.body)] });
1951
1969
  }
1952
- var Ut = {
1970
+ var Wt = {
1953
1971
  field: "_field_l0zl7_1",
1954
1972
  inputWrap: "_inputWrap_l0zl7_6",
1955
1973
  errorWrap: "_errorWrap_l0zl7_19",
@@ -1963,64 +1981,64 @@ var Ut = {
1963
1981
  };
1964
1982
  //#endregion
1965
1983
  //#region src/components/NumberField.tsx
1966
- function Wt({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1984
+ function Gt({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1967
1985
  let c = u(), l = o ?? c;
1968
1986
  return /* @__PURE__ */ y("div", {
1969
- className: Ut.field,
1987
+ className: Wt.field,
1970
1988
  children: [
1971
1989
  e && /* @__PURE__ */ v(Ve, {
1972
1990
  htmlFor: l,
1973
1991
  children: e
1974
1992
  }),
1975
1993
  /* @__PURE__ */ y("div", {
1976
- className: `${Ut.inputWrap} ${Ut[r]} ${n ? Ut.errorWrap : ""}`,
1994
+ className: `${Wt.inputWrap} ${Wt[r]} ${n ? Wt.errorWrap : ""}`,
1977
1995
  children: [
1978
1996
  i && /* @__PURE__ */ v("span", {
1979
- className: Ut.prefix,
1997
+ className: Wt.prefix,
1980
1998
  children: i
1981
1999
  }),
1982
2000
  /* @__PURE__ */ v("input", {
1983
2001
  id: l,
1984
- className: Ut.input,
2002
+ className: Wt.input,
1985
2003
  ...s
1986
2004
  }),
1987
2005
  a && /* @__PURE__ */ v("span", {
1988
- className: Ut.suffix,
2006
+ className: Wt.suffix,
1989
2007
  children: a
1990
2008
  })
1991
2009
  ]
1992
2010
  }),
1993
2011
  n ? /* @__PURE__ */ v("span", {
1994
- className: Ut.errorText,
2012
+ className: Wt.errorText,
1995
2013
  children: n
1996
2014
  }) : t ? /* @__PURE__ */ v("span", {
1997
- className: Ut.helperText,
2015
+ className: Wt.helperText,
1998
2016
  children: t
1999
2017
  }) : null
2000
2018
  ]
2001
2019
  });
2002
2020
  }
2003
- var Gt = {
2021
+ var Kt = {
2004
2022
  menu: "_menu_xz84k_1",
2005
2023
  divider: "_divider_xz84k_15"
2006
2024
  };
2007
2025
  //#endregion
2008
2026
  //#region src/components/Menu.tsx
2009
- function Kt({ children: e, ...t }) {
2027
+ function qt({ children: e, ...t }) {
2010
2028
  return /* @__PURE__ */ v("div", {
2011
2029
  role: "menu",
2012
- className: Gt.menu,
2030
+ className: Kt.menu,
2013
2031
  ...t,
2014
2032
  children: e
2015
2033
  });
2016
2034
  }
2017
- function qt() {
2035
+ function Jt() {
2018
2036
  return /* @__PURE__ */ v("div", {
2019
- className: Gt.divider,
2037
+ className: Kt.divider,
2020
2038
  role: "separator"
2021
2039
  });
2022
2040
  }
2023
- var Jt = {
2041
+ var Yt = {
2024
2042
  item: "_item_1sghe_1",
2025
2043
  base: "_base_1sghe_21",
2026
2044
  icon: "_icon_1sghe_31",
@@ -2033,12 +2051,12 @@ var Jt = {
2033
2051
  };
2034
2052
  //#endregion
2035
2053
  //#region src/components/MenuItem.tsx
2036
- function Yt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
2054
+ function Xt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
2037
2055
  let c = [
2038
- Jt.item,
2039
- a === "base" && Jt.base,
2040
- r && Jt.selected,
2041
- i && Jt.destructive
2056
+ Yt.item,
2057
+ a === "base" && Yt.base,
2058
+ r && Yt.selected,
2059
+ i && Yt.destructive
2042
2060
  ].filter(Boolean).join(" ");
2043
2061
  return /* @__PURE__ */ y("button", {
2044
2062
  type: "button",
@@ -2047,23 +2065,23 @@ function Yt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
2047
2065
  ...s,
2048
2066
  children: [
2049
2067
  e && /* @__PURE__ */ v("span", {
2050
- className: Jt.leading,
2068
+ className: Yt.leading,
2051
2069
  children: e
2052
2070
  }),
2053
2071
  t && /* @__PURE__ */ v("span", {
2054
- className: Jt.icon,
2072
+ className: Yt.icon,
2055
2073
  children: t
2056
2074
  }),
2057
2075
  /* @__PURE__ */ v("span", {
2058
- className: Jt.label,
2076
+ className: Yt.label,
2059
2077
  children: o
2060
2078
  }),
2061
2079
  n && /* @__PURE__ */ v("span", {
2062
- className: Jt.trailing,
2080
+ className: Yt.trailing,
2063
2081
  children: n
2064
2082
  }),
2065
2083
  r && /* @__PURE__ */ v("span", {
2066
- className: Jt.check,
2084
+ className: Yt.check,
2067
2085
  children: /* @__PURE__ */ v(U, {})
2068
2086
  })
2069
2087
  ]
@@ -2106,14 +2124,14 @@ var Y = {
2106
2124
  };
2107
2125
  //#endregion
2108
2126
  //#region src/components/Dropdown.tsx
2109
- function Xt(e) {
2127
+ function Zt(e) {
2110
2128
  return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
2111
2129
  }
2112
- function Zt(e) {
2130
+ function Qt(e) {
2113
2131
  return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
2114
2132
  }
2115
- var Qt = (e) => `and ${e} more`;
2116
- function $t(e) {
2133
+ var $t = (e) => `and ${e} more`;
2134
+ function en(e) {
2117
2135
  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) => {
2118
2136
  if (!e) return;
2119
2137
  let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
@@ -2125,7 +2143,7 @@ function $t(e) {
2125
2143
  return r.observe(e, { childList: !0 }), () => {
2126
2144
  n.disconnect(), r.disconnect();
2127
2145
  };
2128
- }, []), oe = u(), se = u(), B = e.multiple ? void 0 : e.value, V = e.multiple && e.value || [], ce = V.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), H = A ? void 0 : h.find((e) => e.value === B), le = P.trim().toLowerCase(), ue = b && le ? h.filter((e) => Xt(e).toLowerCase().includes(le)) : h, U = ue.filter((e) => !e.disabled).map((e) => e.value), W = t === "field";
2146
+ }, []), oe = u(), se = u(), B = e.multiple ? void 0 : e.value, ce = e.multiple && e.value || [], V = ce.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) => Zt(e).toLowerCase().includes(le)) : h, U = ue.filter((e) => !e.disabled).map((e) => e.value), W = t === "field";
2129
2147
  function fe() {
2130
2148
  N(!0), M(!0);
2131
2149
  }
@@ -2138,7 +2156,7 @@ function $t(e) {
2138
2156
  ie.current?.focus();
2139
2157
  return;
2140
2158
  }
2141
- let e = (A ? ce.find((e) => !e.disabled)?.value : B) ?? U[0];
2159
+ let e = (A ? V.find((e) => !e.disabled)?.value : B) ?? U[0];
2142
2160
  (R.current?.querySelector(`[data-value="${e}"]`))?.focus();
2143
2161
  }, [j]), d(() => {
2144
2162
  if (!j || !re.current || !R.current) return;
@@ -2194,13 +2212,13 @@ function $t(e) {
2194
2212
  e.onChange(t), pe(), z.current?.focus();
2195
2213
  }
2196
2214
  function be() {
2197
- if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(ce);
2198
- let t = ce[0];
2199
- if (ce.length === 1) return t.label;
2200
- let n = Zt(t);
2201
- return n === void 0 ? `${ce.length} selected` : `${n} ${(e.multiple && e.moreText || Qt)(ce.length - 1)}`;
2215
+ if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(V);
2216
+ let t = V[0];
2217
+ if (V.length === 1) return t.label;
2218
+ let n = Qt(t);
2219
+ return n === void 0 ? `${V.length} selected` : `${n} ${(e.multiple && e.moreText || $t)(V.length - 1)}`;
2202
2220
  }
2203
- let xe = n === void 0 && (A ? ce.length === 0 : !H), Se = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
2221
+ let xe = n === void 0 && (A ? V.length === 0 : !H), Se = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
2204
2222
  className: Y.prefix,
2205
2223
  children: [e.triggerPrefix, " "]
2206
2224
  }) : null, Ce = n ?? (xe ? f : A ? be() : H?.label), we = /* @__PURE__ */ y(_, { children: [Se, Ce] }), Te = {
@@ -2288,7 +2306,7 @@ function $t(e) {
2288
2306
  onAnimationEnd: (e) => {
2289
2307
  j || e.target !== e.currentTarget || (N(!1), ne(!1));
2290
2308
  },
2291
- children: /* @__PURE__ */ y(Kt, {
2309
+ children: /* @__PURE__ */ y(qt, {
2292
2310
  role: "presentation",
2293
2311
  style: W ? { width: "100%" } : void 0,
2294
2312
  children: [b && /* @__PURE__ */ v("input", {
@@ -2327,15 +2345,15 @@ function $t(e) {
2327
2345
  className: Y.noResults,
2328
2346
  role: "presentation",
2329
2347
  children: S
2330
- }) : ue.map((e, n) => /* @__PURE__ */ v(Yt, {
2348
+ }) : ue.map((e, n) => /* @__PURE__ */ v(Xt, {
2331
2349
  style: { "--i": Math.min(n, 8) },
2332
2350
  "data-value": e.value,
2333
2351
  role: "option",
2334
- "aria-selected": A ? V.includes(e.value) : e.value === B,
2352
+ "aria-selected": A ? ce.includes(e.value) : e.value === B,
2335
2353
  size: t === "pill" ? "sm" : c,
2336
2354
  icon: e.icon,
2337
2355
  leading: A ? /* @__PURE__ */ v(Ze, {
2338
- checked: V.includes(e.value),
2356
+ checked: ce.includes(e.value),
2339
2357
  disabled: e.disabled
2340
2358
  }) : void 0,
2341
2359
  selected: !A && e.value === B,
@@ -2359,7 +2377,7 @@ function $t(e) {
2359
2377
  ]
2360
2378
  });
2361
2379
  }
2362
- var en = {
2380
+ var tn = {
2363
2381
  item: "_item_iayt7_2",
2364
2382
  active: "_active_iayt7_39",
2365
2383
  inList: "_inList_iayt7_44",
@@ -2370,41 +2388,41 @@ var en = {
2370
2388
  glide: "_glide_iayt7_119",
2371
2389
  glideAnimated: "_glideAnimated_iayt7_132",
2372
2390
  glideVisible: "_glideVisible_iayt7_138"
2373
- }, tn = "data-nav-item", nn = r(!1);
2374
- function rn({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
2375
- let l = c(nn), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
2376
- en.item,
2377
- n && en.active,
2378
- l && en.inList,
2391
+ }, nn = "data-nav-item", rn = r(!1);
2392
+ function an({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
2393
+ let l = c(rn), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
2394
+ tn.item,
2395
+ n && tn.active,
2396
+ l && tn.inList,
2379
2397
  a
2380
2398
  ].filter(Boolean).join(" ");
2381
2399
  return /* @__PURE__ */ y(u, {
2382
2400
  ...d ? { type: "button" } : {},
2383
2401
  ...i === void 0 ? {} : { href: i },
2384
- [tn]: "",
2402
+ [nn]: "",
2385
2403
  "aria-current": n ? "page" : void 0,
2386
2404
  className: f,
2387
2405
  ...s,
2388
2406
  children: [
2389
2407
  e && /* @__PURE__ */ v("span", {
2390
- className: en.icon,
2408
+ className: tn.icon,
2391
2409
  "aria-hidden": !0,
2392
2410
  children: e
2393
2411
  }),
2394
2412
  /* @__PURE__ */ v("span", {
2395
- className: en.label,
2413
+ className: tn.label,
2396
2414
  children: o
2397
2415
  }),
2398
2416
  t && /* @__PURE__ */ v("span", {
2399
- className: en.trailing,
2417
+ className: tn.trailing,
2400
2418
  children: t
2401
2419
  })
2402
2420
  ]
2403
2421
  });
2404
2422
  }
2405
- function an({ children: e, className: t, ...n }) {
2423
+ function on({ children: e, className: t, ...n }) {
2406
2424
  let r = p(null), [i, a] = m(null), [o, c] = m(!1), [l, u] = m(!1), f = s((e) => {
2407
- let t = r.current, n = e instanceof Element ? e.closest(`[${tn}]`) : null;
2425
+ let t = r.current, n = e instanceof Element ? e.closest(`[${nn}]`) : null;
2408
2426
  if (!t || !n || !t.contains(n)) return;
2409
2427
  if (n.matches(":disabled, [aria-disabled=\"true\"], [hidden]")) {
2410
2428
  c(!1);
@@ -2418,11 +2436,11 @@ function an({ children: e, className: t, ...n }) {
2418
2436
  }, [o]);
2419
2437
  return d(() => {
2420
2438
  o || u(!1);
2421
- }, [o]), /* @__PURE__ */ v(nn.Provider, {
2439
+ }, [o]), /* @__PURE__ */ v(rn.Provider, {
2422
2440
  value: !0,
2423
2441
  children: /* @__PURE__ */ y("div", {
2424
2442
  ref: r,
2425
- className: [en.list, t].filter(Boolean).join(" "),
2443
+ className: [tn.list, t].filter(Boolean).join(" "),
2426
2444
  onPointerOver: (e) => e.pointerType === "mouse" && f(e.target),
2427
2445
  onMouseLeave: () => c(!1),
2428
2446
  onFocus: (e) => e.target.matches(":focus-visible") && f(e.target),
@@ -2431,9 +2449,9 @@ function an({ children: e, className: t, ...n }) {
2431
2449
  children: [/* @__PURE__ */ v("span", {
2432
2450
  "aria-hidden": !0,
2433
2451
  className: [
2434
- en.glide,
2435
- l && en.glideAnimated,
2436
- o && en.glideVisible
2452
+ tn.glide,
2453
+ l && tn.glideAnimated,
2454
+ o && tn.glideVisible
2437
2455
  ].filter(Boolean).join(" "),
2438
2456
  style: i ? {
2439
2457
  translate: `0 ${i.top}px`,
@@ -2445,7 +2463,7 @@ function an({ children: e, className: t, ...n }) {
2445
2463
  }
2446
2464
  //#endregion
2447
2465
  //#region src/components/Logo.tsx
2448
- function on({ size: e = 40, "aria-label": t, ...n }) {
2466
+ function sn({ size: e = 40, "aria-label": t, ...n }) {
2449
2467
  return /* @__PURE__ */ y("svg", {
2450
2468
  width: e,
2451
2469
  height: e,
@@ -2487,7 +2505,7 @@ var X = {
2487
2505
  };
2488
2506
  //#endregion
2489
2507
  //#region src/components/Sidebar.tsx
2490
- function sn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
2508
+ function cn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
2491
2509
  return /* @__PURE__ */ y("aside", {
2492
2510
  className: [X.root, o].filter(Boolean).join(" "),
2493
2511
  children: [
@@ -2513,7 +2531,7 @@ function sn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i
2513
2531
  ]
2514
2532
  });
2515
2533
  }
2516
- function cn({ title: e, subtitle: t, action: n }) {
2534
+ function ln({ title: e, subtitle: t, action: n }) {
2517
2535
  return /* @__PURE__ */ y("div", {
2518
2536
  className: X.footerRow,
2519
2537
  children: [/* @__PURE__ */ y("div", {
@@ -2531,7 +2549,7 @@ function cn({ title: e, subtitle: t, action: n }) {
2531
2549
  })]
2532
2550
  });
2533
2551
  }
2534
- function ln({ items: e, value: t, onChange: n, "aria-label": r }) {
2552
+ function un({ items: e, value: t, onChange: n, "aria-label": r }) {
2535
2553
  return /* @__PURE__ */ v("div", {
2536
2554
  role: "group",
2537
2555
  "aria-label": r,
@@ -2557,21 +2575,21 @@ function ln({ items: e, value: t, onChange: n, "aria-label": r }) {
2557
2575
  }, e.value))
2558
2576
  });
2559
2577
  }
2560
- var un = { highlight: "_highlight_1pz29_1" };
2578
+ var dn = { highlight: "_highlight_1pz29_1" };
2561
2579
  //#endregion
2562
2580
  //#region src/components/HighlightText.tsx
2563
- function dn(e) {
2581
+ function fn(e) {
2564
2582
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2565
2583
  }
2566
- function fn({ text: e, query: n }) {
2584
+ function pn({ text: e, query: n }) {
2567
2585
  if (!n) return /* @__PURE__ */ v(_, { children: e });
2568
- let r = e.split(RegExp(`(${dn(n)})`, "ig"));
2586
+ let r = e.split(RegExp(`(${fn(n)})`, "ig"));
2569
2587
  return /* @__PURE__ */ v(_, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ v("mark", {
2570
- className: un.highlight,
2588
+ className: dn.highlight,
2571
2589
  children: e
2572
2590
  }, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
2573
2591
  }
2574
- var pn = {
2592
+ var mn = {
2575
2593
  group: "_group_jslsh_1",
2576
2594
  btn: "_btn_jslsh_4",
2577
2595
  caret: "_caret_jslsh_31",
@@ -2593,24 +2611,24 @@ var pn = {
2593
2611
  };
2594
2612
  //#endregion
2595
2613
  //#region src/components/FilterSection.tsx
2596
- function mn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2614
+ function hn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2597
2615
  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;
2598
2616
  return /* @__PURE__ */ y("div", { children: [
2599
2617
  /* @__PURE__ */ y("div", {
2600
- className: pn.sectionHeader,
2618
+ className: mn.sectionHeader,
2601
2619
  children: [/* @__PURE__ */ v("div", {
2602
- className: pn.sectionLabel,
2620
+ className: mn.sectionLabel,
2603
2621
  children: e
2604
2622
  }), a && /* @__PURE__ */ v("button", {
2605
2623
  type: "button",
2606
- className: pn.allToggle,
2624
+ className: mn.allToggle,
2607
2625
  onClick: () => a(d ? [] : t),
2608
2626
  children: d ? "Deselect all" : "Select all"
2609
2627
  })]
2610
2628
  }),
2611
2629
  o && /* @__PURE__ */ v("input", {
2612
2630
  type: "text",
2613
- className: pn.search,
2631
+ className: mn.search,
2614
2632
  placeholder: `Search ${e.toLowerCase()}…`,
2615
2633
  autoComplete: "off",
2616
2634
  value: s,
@@ -2618,12 +2636,12 @@ function mn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
2618
2636
  onChange: (e) => c(e.target.value)
2619
2637
  }),
2620
2638
  /* @__PURE__ */ y("div", {
2621
- className: pn.optionsList,
2639
+ className: mn.optionsList,
2622
2640
  children: [u.length === 0 && /* @__PURE__ */ v("div", {
2623
- className: pn.empty,
2641
+ className: mn.empty,
2624
2642
  children: "No match"
2625
2643
  }), u.map((e) => /* @__PURE__ */ v(Xe, {
2626
- className: pn.option,
2644
+ className: mn.option,
2627
2645
  checked: r.has(e),
2628
2646
  onChange: () => i(e),
2629
2647
  label: n(e)
@@ -2631,7 +2649,7 @@ function mn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
2631
2649
  })
2632
2650
  ] });
2633
2651
  }
2634
- var hn = {
2652
+ var gn = {
2635
2653
  line: "_line_19p3r_1",
2636
2654
  box: "_box_19p3r_2",
2637
2655
  indicator: "_indicator_19p3r_9",
@@ -2647,7 +2665,7 @@ var hn = {
2647
2665
  };
2648
2666
  //#endregion
2649
2667
  //#region src/components/Tabs.tsx
2650
- function gn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2668
+ function _n({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2651
2669
  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");
2652
2670
  d(() => {
2653
2671
  let e = c.current.get(t);
@@ -2686,18 +2704,18 @@ function gn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
2686
2704
  ref: s,
2687
2705
  role: "tablist",
2688
2706
  className: [
2689
- hn[r],
2690
- r === "box" && i === "sm" && hn.sm,
2691
- r === "box" && i === "lg" && hn.lg
2707
+ gn[r],
2708
+ r === "box" && i === "sm" && gn.sm,
2709
+ r === "box" && i === "lg" && gn.lg
2692
2710
  ].filter(Boolean).join(" "),
2693
2711
  onKeyDown: b,
2694
2712
  ...a,
2695
2713
  children: [u && /* @__PURE__ */ v("span", {
2696
2714
  "aria-hidden": !0,
2697
2715
  className: [
2698
- hn.indicator,
2699
- r === "line" ? hn.indicatorLine : hn.indicatorBox,
2700
- h === "settling" && hn.settling
2716
+ gn.indicator,
2717
+ r === "line" ? gn.indicatorLine : gn.indicatorBox,
2718
+ h === "settling" && gn.settling
2701
2719
  ].filter(Boolean).join(" "),
2702
2720
  onTransitionEnd: _,
2703
2721
  style: {
@@ -2718,34 +2736,34 @@ function gn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
2718
2736
  disabled: e.disabled,
2719
2737
  tabIndex: r ? 0 : -1,
2720
2738
  className: [
2721
- hn.tab,
2722
- r && hn.selected,
2723
- i && hn.iconOnly
2739
+ gn.tab,
2740
+ r && gn.selected,
2741
+ i && gn.iconOnly
2724
2742
  ].filter(Boolean).join(" "),
2725
2743
  onClick: () => !e.disabled && n(e.value),
2726
2744
  children: [e.icon && /* @__PURE__ */ v("span", {
2727
- className: hn.icon,
2745
+ className: gn.icon,
2728
2746
  children: e.icon
2729
2747
  }), e.label]
2730
2748
  }, e.value);
2731
2749
  })]
2732
2750
  });
2733
2751
  }
2734
- var _n = {
2752
+ var vn = {
2735
2753
  root: "_root_16e39_1",
2736
2754
  label: "_label_16e39_7"
2737
2755
  };
2738
2756
  //#endregion
2739
2757
  //#region src/components/Toggle.tsx
2740
- function vn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2758
+ function yn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2741
2759
  let a = u();
2742
2760
  return /* @__PURE__ */ y("div", {
2743
- className: _n.root,
2761
+ className: vn.root,
2744
2762
  children: [r && /* @__PURE__ */ v("span", {
2745
2763
  id: a,
2746
- className: _n.label,
2764
+ className: vn.label,
2747
2765
  children: r
2748
- }), /* @__PURE__ */ v(gn, {
2766
+ }), /* @__PURE__ */ v(_n, {
2749
2767
  items: e,
2750
2768
  value: t,
2751
2769
  onChange: n,
@@ -2756,7 +2774,7 @@ function vn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2756
2774
  })]
2757
2775
  });
2758
2776
  }
2759
- var yn = {
2777
+ var bn = {
2760
2778
  spinner: "_spinner_9jjxr_3",
2761
2779
  inner: "_inner_9jjxr_11",
2762
2780
  outer: "_outer_9jjxr_12",
@@ -2767,10 +2785,10 @@ var yn = {
2767
2785
  };
2768
2786
  //#endregion
2769
2787
  //#region src/components/Spinner.tsx
2770
- function bn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2788
+ function xn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2771
2789
  let a = [
2772
- yn.spinner,
2773
- yn[e],
2790
+ bn.spinner,
2791
+ bn[e],
2774
2792
  r
2775
2793
  ].filter(Boolean).join(" ");
2776
2794
  return /* @__PURE__ */ y("div", {
@@ -2783,7 +2801,7 @@ function bn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2783
2801
  },
2784
2802
  "data-testid": i,
2785
2803
  children: [/* @__PURE__ */ v("svg", {
2786
- className: yn.inner,
2804
+ className: bn.inner,
2787
2805
  width: t,
2788
2806
  height: t,
2789
2807
  viewBox: "0 0 64 64",
@@ -2791,7 +2809,7 @@ function bn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2791
2809
  "aria-hidden": "true",
2792
2810
  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" })
2793
2811
  }), /* @__PURE__ */ v("svg", {
2794
- className: yn.outer,
2812
+ className: bn.outer,
2795
2813
  width: t,
2796
2814
  height: t,
2797
2815
  viewBox: "0 0 64 64",
@@ -2823,14 +2841,14 @@ var Z = {
2823
2841
  sheet: "_sheet_3vs6a_206",
2824
2842
  fullscreen: "_fullscreen_3vs6a_212",
2825
2843
  instant: "_instant_3vs6a_222"
2826
- }, xn = 200, Sn = "(max-width: 639px)", Cn = "(prefers-reduced-motion: reduce)", wn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", Tn = r(null);
2827
- function En(e) {
2828
- let t = c(Tn);
2844
+ }, Sn = 200, Cn = "(max-width: 639px)", wn = "(prefers-reduced-motion: reduce)", Tn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", En = r(null);
2845
+ function Dn(e) {
2846
+ let t = c(En);
2829
2847
  if (!t) throw Error(`${e} must be rendered inside <Modal>`);
2830
2848
  return t;
2831
2849
  }
2832
- var Dn = [];
2833
- function On(e) {
2850
+ var On = [];
2851
+ function kn(e) {
2834
2852
  let [t, n] = m(() => typeof window < "u" && window.matchMedia(e).matches);
2835
2853
  return l(() => {
2836
2854
  let t = window.matchMedia(e), r = () => n(t.matches);
@@ -2838,7 +2856,7 @@ function On(e) {
2838
2856
  }, [e]), t;
2839
2857
  }
2840
2858
  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 }) {
2841
- let x = u(), S = `${x}-title`, C = `${x}-description`, [w, T] = m(!1), [E, D] = m(e), [O, k] = m(e && o), [A, j] = m(!1), M = On(Sn), ee = On(Cn), N = p(null), P = p(null), F = p(!1), te = p(!1), ne = p(Symbol("modal")), I = p(e), L = p(t);
2859
+ 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 = kn(Cn), ee = kn(wn), N = p(null), P = p(null), F = p(!1), te = p(!1), ne = p(Symbol("modal")), I = p(e), L = p(t);
2842
2860
  L.current = t, l(() => T(!0), []), l(() => {
2843
2861
  if (e) {
2844
2862
  if (F.current) return;
@@ -2850,7 +2868,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2850
2868
  return () => cancelAnimationFrame(e);
2851
2869
  }
2852
2870
  if (F.current = !1, k(!1), !E) return;
2853
- let t = setTimeout(() => D(!1), ee ? 0 : xn);
2871
+ let t = setTimeout(() => D(!1), ee ? 0 : Sn);
2854
2872
  return () => clearTimeout(t);
2855
2873
  }, [e]), l(() => {
2856
2874
  !E && P.current && (P.current.focus?.(), P.current = null);
@@ -2858,22 +2876,22 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2858
2876
  let R = s(() => {
2859
2877
  if (!a || F.current) return;
2860
2878
  F.current = !0, k(!1);
2861
- let e = ee ? 0 : xn;
2879
+ let e = ee ? 0 : Sn;
2862
2880
  window.setTimeout(() => L.current(), e);
2863
2881
  }, [a, ee]);
2864
2882
  l(() => {
2865
2883
  if (!E) return;
2866
2884
  let e = ne.current;
2867
- d && Dn.push(e);
2885
+ d && On.push(e);
2868
2886
  let t = (t) => {
2869
- t.key === "Escape" && Dn[Dn.length - 1] === e && (t.preventDefault(), R());
2887
+ t.key === "Escape" && On[On.length - 1] === e && (t.preventDefault(), R());
2870
2888
  };
2871
2889
  document.addEventListener("keydown", t);
2872
2890
  let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
2873
2891
  return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`), N.current?.focus({ preventScroll: !0 }), () => {
2874
2892
  document.removeEventListener("keydown", t);
2875
- let a = Dn.indexOf(e);
2876
- a !== -1 && Dn.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
2893
+ let a = On.indexOf(e);
2894
+ a !== -1 && On.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
2877
2895
  };
2878
2896
  }, [
2879
2897
  E,
@@ -2882,7 +2900,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2882
2900
  ]);
2883
2901
  let z = (e) => {
2884
2902
  if (e.key !== "Tab" || !N.current) return;
2885
- let t = Array.from(N.current.querySelectorAll(wn));
2903
+ let t = Array.from(N.current.querySelectorAll(Tn));
2886
2904
  if (t.length === 0) {
2887
2905
  e.preventDefault();
2888
2906
  return;
@@ -2916,7 +2934,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2916
2934
  setHasDescription: j,
2917
2935
  requestClose: R
2918
2936
  };
2919
- return g(/* @__PURE__ */ v(Tn.Provider, {
2937
+ return g(/* @__PURE__ */ v(En.Provider, {
2920
2938
  value: oe,
2921
2939
  children: /* @__PURE__ */ v("div", {
2922
2940
  className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
@@ -2939,8 +2957,8 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2939
2957
  })
2940
2958
  }), re);
2941
2959
  }
2942
- function kn({ children: e, onClose: t }) {
2943
- let { requestClose: n, dismissible: r } = En("Modal.Cover");
2960
+ function An({ children: e, onClose: t }) {
2961
+ let { requestClose: n, dismissible: r } = Dn("Modal.Cover");
2944
2962
  return /* @__PURE__ */ y("div", {
2945
2963
  className: Z.cover,
2946
2964
  children: [e, t && /* @__PURE__ */ v(k, {
@@ -2956,7 +2974,7 @@ function kn({ children: e, onClose: t }) {
2956
2974
  })]
2957
2975
  });
2958
2976
  }
2959
- function An({ children: t }) {
2977
+ function jn({ children: t }) {
2960
2978
  let n = e.toArray(t), r = n.filter((e) => o(e) && e.type.isModalIcon === !0), i = n.filter((e) => !r.includes(e));
2961
2979
  return /* @__PURE__ */ y("div", {
2962
2980
  className: Z.message,
@@ -2966,52 +2984,52 @@ function An({ children: t }) {
2966
2984
  })]
2967
2985
  });
2968
2986
  }
2969
- function jn({ children: e, tone: t = "neutral" }) {
2987
+ function Mn({ children: e, tone: t = "neutral" }) {
2970
2988
  return /* @__PURE__ */ v("div", {
2971
2989
  className: `${Z.icon} ${Z[`tone-${t}`]}`,
2972
2990
  "aria-hidden": "true",
2973
2991
  children: e
2974
2992
  });
2975
2993
  }
2976
- function Mn({ children: e, id: t }) {
2977
- let { titleId: n } = En("Modal.Title");
2994
+ function Nn({ children: e, id: t }) {
2995
+ let { titleId: n } = Dn("Modal.Title");
2978
2996
  return /* @__PURE__ */ v("h2", {
2979
2997
  id: t ?? n,
2980
2998
  className: Z.title,
2981
2999
  children: e
2982
3000
  });
2983
3001
  }
2984
- function Nn({ children: e }) {
2985
- let { descriptionId: t, setHasDescription: n } = En("Modal.Description");
3002
+ function Pn({ children: e }) {
3003
+ let { descriptionId: t, setHasDescription: n } = Dn("Modal.Description");
2986
3004
  return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ v("p", {
2987
3005
  id: t,
2988
3006
  className: Z.description,
2989
3007
  children: e
2990
3008
  });
2991
3009
  }
2992
- function Pn({ children: e }) {
3010
+ function Fn({ children: e }) {
2993
3011
  return /* @__PURE__ */ v("p", {
2994
3012
  className: Z.hint,
2995
3013
  children: e
2996
3014
  });
2997
3015
  }
2998
- function Fn({ children: e }) {
3016
+ function In({ children: e }) {
2999
3017
  return /* @__PURE__ */ v("div", {
3000
3018
  className: Z.body,
3001
3019
  children: e
3002
3020
  });
3003
3021
  }
3004
- function In({ children: t }) {
3005
- let { isMobile: r } = En("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
3022
+ function Ln({ children: t }) {
3023
+ let { isMobile: r } = Dn("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
3006
3024
  return /* @__PURE__ */ v("div", {
3007
3025
  className: Z.footer,
3008
3026
  children: i
3009
3027
  });
3010
3028
  }
3011
- Q.Cover = kn, Q.Message = An, jn.isModalIcon = !0, Q.Icon = jn, Q.Title = Mn, Q.Description = Nn, Q.Hint = Pn, Q.Body = Fn, Q.Footer = In;
3029
+ Q.Cover = An, Q.Message = jn, Mn.isModalIcon = !0, Q.Icon = Mn, Q.Title = Nn, Q.Description = Pn, Q.Hint = Fn, Q.Body = In, Q.Footer = Ln;
3012
3030
  //#endregion
3013
3031
  //#region src/components/ConfirmDialog.tsx
3014
- function Ln({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon: a, confirmLabel: o, cancelLabel: s = "Cancel", tone: c = "default", loading: l = !1, "data-testid": u }) {
3032
+ function Rn({ 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 }) {
3015
3033
  let d = c === "dangerous";
3016
3034
  return /* @__PURE__ */ y(Q, {
3017
3035
  open: e,
@@ -3040,7 +3058,7 @@ function Ln({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon:
3040
3058
  })] })]
3041
3059
  });
3042
3060
  }
3043
- var Rn = {
3061
+ var zn = {
3044
3062
  root: "_root_rybn9_1",
3045
3063
  success: "_success_rybn9_11",
3046
3064
  warning: "_warning_rybn9_17",
@@ -3053,45 +3071,45 @@ var Rn = {
3053
3071
  };
3054
3072
  //#endregion
3055
3073
  //#region src/components/EmptyState.tsx
3056
- function zn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
3074
+ function Bn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
3057
3075
  return /* @__PURE__ */ y("div", {
3058
- className: `${Rn.root} ${e === "neutral" ? "" : Rn[e]}`,
3076
+ className: `${zn.root} ${e === "neutral" ? "" : zn[e]}`,
3059
3077
  ...a,
3060
3078
  children: [t != null && /* @__PURE__ */ v("div", {
3061
- className: Rn.icon,
3079
+ className: zn.icon,
3062
3080
  "aria-hidden": "true",
3063
3081
  children: t
3064
3082
  }), /* @__PURE__ */ y("div", {
3065
- className: Rn.body,
3083
+ className: zn.body,
3066
3084
  children: [
3067
3085
  /* @__PURE__ */ v("p", {
3068
- className: Rn.title,
3086
+ className: zn.title,
3069
3087
  children: n
3070
3088
  }),
3071
3089
  r != null && /* @__PURE__ */ v("div", {
3072
- className: Rn.text,
3090
+ className: zn.text,
3073
3091
  children: r
3074
3092
  }),
3075
3093
  i != null && /* @__PURE__ */ v("div", {
3076
- className: Rn.action,
3094
+ className: zn.action,
3077
3095
  children: i
3078
3096
  })
3079
3097
  ]
3080
3098
  })]
3081
3099
  });
3082
3100
  }
3083
- var Bn = { photoPreview: "_photoPreview_1m76k_2" }, Vn = 180, Hn = 12, Un = 8;
3084
- function Wn(e, t, n = Vn) {
3101
+ var Vn = { photoPreview: "_photoPreview_1m76k_2" }, Hn = 180, Un = 12, Wn = 8;
3102
+ function Gn(e, t, n = Hn) {
3085
3103
  let r = (e, t) => {
3086
- let r = e + Hn, i = r + n + Un > t ? e - Hn - n : r;
3087
- return Math.max(Un, i);
3104
+ let r = e + Un, i = r + n + Wn > t ? e - Un - n : r;
3105
+ return Math.max(Wn, i);
3088
3106
  };
3089
3107
  return {
3090
3108
  left: r(e, window.innerWidth),
3091
3109
  top: r(t, window.innerHeight)
3092
3110
  };
3093
3111
  }
3094
- function Gn({ src: e, size: t = Vn, children: r }) {
3112
+ function Kn({ src: e, size: t = Hn, children: r }) {
3095
3113
  let [i, a] = m(null), [o, s] = m(), c = i !== null;
3096
3114
  if (l(() => {
3097
3115
  if (!c) return;
@@ -3117,14 +3135,14 @@ function Gn({ src: e, size: t = Vn, children: r }) {
3117
3135
  }
3118
3136
  });
3119
3137
  return /* @__PURE__ */ y(_, { children: [f, i && g(/* @__PURE__ */ v("img", {
3120
- className: Bn.photoPreview,
3138
+ className: Vn.photoPreview,
3121
3139
  src: e,
3122
3140
  alt: "",
3123
3141
  "aria-hidden": "true",
3124
3142
  style: {
3125
3143
  width: t,
3126
3144
  height: t,
3127
- ...Wn(i.x, i.y, t)
3145
+ ...Gn(i.x, i.y, t)
3128
3146
  },
3129
3147
  onError: () => {
3130
3148
  s(e), a(null);
@@ -3161,7 +3179,7 @@ var $ = {
3161
3179
  workerText: "_workerText_44xcu_231",
3162
3180
  actions: "_actions_44xcu_236",
3163
3181
  srOnly: "_srOnly_44xcu_247"
3164
- }, Kn = {
3182
+ }, qn = {
3165
3183
  worker: "Worker:",
3166
3184
  comment: "Comment:",
3167
3185
  inaccessible: "Inaccessible",
@@ -3170,9 +3188,9 @@ var $ = {
3170
3188
  notReady: "Not ready",
3171
3189
  new: "Unwatched"
3172
3190
  };
3173
- function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n, previewAlt: r, dateTime: i, title: a, description: o, meta: s, worker: c, comment: l, viewed: u = !1, current: d, onClick: f, hoverable: p, actions: h, labels: g, "aria-label": b, className: x, "data-testid": S }) {
3191
+ function Jn({ 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 }) {
3174
3192
  let C = {
3175
- ...Kn,
3193
+ ...qn,
3176
3194
  ...g
3177
3195
  }, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!f, M = (e) => {
3178
3196
  e.target === e.currentTarget && (e.key === "Enter" ? f?.() : e.key === " " && (e.preventDefault(), f?.()));
@@ -3214,7 +3232,7 @@ function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3214
3232
  "aria-hidden": "true"
3215
3233
  }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
3216
3234
  className: $.icon,
3217
- children: v(t === "archived" ? ce : t === "unavailable" ? Ce : t === "notReady" ? xe : Te, {
3235
+ children: v(t === "archived" ? V : t === "unavailable" ? Ce : t === "notReady" ? xe : Te, {
3218
3236
  size: 12,
3219
3237
  strokeWidth: 1,
3220
3238
  "aria-hidden": "true"
@@ -3259,7 +3277,7 @@ function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3259
3277
  children: C.worker
3260
3278
  }), /* @__PURE__ */ y("div", {
3261
3279
  className: $.workerRow,
3262
- children: [A ? /* @__PURE__ */ v(Gn, {
3280
+ children: [A ? /* @__PURE__ */ v(Kn, {
3263
3281
  src: k,
3264
3282
  children: /* @__PURE__ */ v("img", {
3265
3283
  className: $.photo,
@@ -3299,7 +3317,7 @@ function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
3299
3317
  ]
3300
3318
  });
3301
3319
  }
3302
- function Jn({ className: e, "data-testid": t }) {
3320
+ function Yn({ className: e, "data-testid": t }) {
3303
3321
  return /* @__PURE__ */ y("div", {
3304
3322
  className: `${$.root} ${e ?? ""}`,
3305
3323
  "data-testid": t,
@@ -3332,18 +3350,18 @@ function Jn({ className: e, "data-testid": t }) {
3332
3350
  })]
3333
3351
  });
3334
3352
  }
3335
- var Yn = Object.assign(qn, { Skeleton: Jn });
3353
+ var Xn = Object.assign(Jn, { Skeleton: Yn });
3336
3354
  //#endregion
3337
3355
  //#region src/utils/format.ts
3338
- function Xn(e) {
3356
+ function Zn(e) {
3339
3357
  let t = Math.floor(e / 60), n = e % 60;
3340
3358
  return `${t}h:${String(n).padStart(2, "0")}m`;
3341
3359
  }
3342
- function Zn(e, t) {
3360
+ function Qn(e, t) {
3343
3361
  let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
3344
3362
  return `${i(n)}:${i(r)}:${i(t)}`;
3345
3363
  }
3346
3364
  //#endregion
3347
- export { N as Badge, k as Button, wt as Calendar, j as Card, Xe as Checkbox, Qe as CheckboxGroup, Ln as ConfirmDialog, ct as DateField, kt as DatePicker, Ht as DateRangePicker, $t as Dropdown, zn as EmptyState, Ve as FieldLabel, mn as FilterSection, fn as HighlightText, ln as LanguageSwitch, on as Logo, Kt as Menu, qt as MenuDivider, Yt as MenuItem, Q as Modal, rn as NavItem, an as NavList, Wt as NumberField, st as PasswordField, Gn as PhotoPreview, et as RadioButton, tt as RadioGroup, sn as Sidebar, cn as SidebarFooter, jt as Skeleton, bn as Spinner, rt as Switch, gn as Tabs, Le as Tag, He as TagGroup, ot as TextArea, it as TextField, vn as Toggle, We as Toolbar, Je as ToolbarAdaptive, C as Tooltip, Yn as VideoCard, Xn as formatDuration, Zn as formatDurationHMS };
3365
+ export { N as Badge, k as Button, wt as Calendar, j as Card, Xe as Checkbox, Qe as CheckboxGroup, Rn as ConfirmDialog, ct as DateField, kt as DatePicker, Ut as DateRangePicker, en as Dropdown, Bn as EmptyState, Ve as FieldLabel, hn as FilterSection, pn as HighlightText, un as LanguageSwitch, sn as Logo, qt as Menu, Jt as MenuDivider, Xt as MenuItem, Q as Modal, an as NavItem, on as NavList, Gt as NumberField, st as PasswordField, Kn as PhotoPreview, et as RadioButton, tt as RadioGroup, cn as Sidebar, ln as SidebarFooter, jt as Skeleton, xn as Spinner, rt as Switch, _n as Tabs, Le as Tag, He as TagGroup, ot as TextArea, it as TextField, yn as Toggle, We as Toolbar, Je as ToolbarAdaptive, C as Tooltip, Xn as VideoCard, Zn as formatDuration, Qn as formatDurationHMS };
3348
3366
 
3349
3367
  //# sourceMappingURL=index.js.map