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