@protonradio/proton-ui 0.11.0-beta.12 → 0.11.0-beta.13

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.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import D, { useRef as B, useCallback as ee, useState as H, useContext as q, useEffect as z, createContext as ne, useMemo as G, forwardRef as Ke, useLayoutEffect as zl, createElement as Ui, isValidElement as gd, cloneElement as yd } from "react";
1
+ import D, { useRef as B, useCallback as ee, useState as V, useContext as q, useEffect as z, createContext as ne, useMemo as W, forwardRef as Ke, useLayoutEffect as zl, createElement as Ui, isValidElement as gd, cloneElement as yd } from "react";
2
2
  import { u as $d, a as Gi, b as Gr } from "./useBreakpoint-CjRyGKN-.mjs";
3
3
  import { transparentize as at, mix as Vl, parseToRgba as xd } from "color2k";
4
- import { isUrlExternal as Yr, csx as W, handleInternalNavigation as Yi, transparentize as Hl } from "./utils.es.js";
4
+ import { isUrlExternal as Yr, csx as U, handleInternalNavigation as Yi, transparentize as Hl } from "./utils.es.js";
5
5
  import { L as Ed, D as Wl, G as De, d as xe } from "./palettes-mcF0lNKY.mjs";
6
6
  import { THEMES as tt, BREAKPOINTS as qr } from "./constants.es.js";
7
7
  import qi, { flushSync as Xr, createPortal as Sd } from "react-dom";
@@ -67,10 +67,10 @@ function wd() {
67
67
  ue.unshift("Warning: " + I), Function.prototype.apply.call(console[y], console, ue);
68
68
  }
69
69
  }
70
- var T = !1, S = !1, w = !1, F = !1, R = !1, M;
70
+ var T = !1, S = !1, w = !1, R = !1, F = !1, M;
71
71
  M = Symbol.for("react.module.reference");
72
72
  function A(y) {
73
- return !!(typeof y == "string" || typeof y == "function" || y === r || y === i || R || y === l || y === s || y === d || F || y === p || T || S || w || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === c || y.$$typeof === o || y.$$typeof === u || y.$$typeof === a || // This needs to include all possible module reference object
73
+ return !!(typeof y == "string" || typeof y == "function" || y === r || y === i || F || y === l || y === s || y === d || R || y === p || T || S || w || typeof y == "object" && y !== null && (y.$$typeof === f || y.$$typeof === c || y.$$typeof === o || y.$$typeof === u || y.$$typeof === a || // This needs to include all possible module reference object
74
74
  // types supported by any Flight configuration anywhere since
75
75
  // we don't know which Flight build this will end up being used
76
76
  // with.
@@ -209,8 +209,8 @@ function wd() {
209
209
  }
210
210
  var Xe = !1, He;
211
211
  {
212
- var V = typeof WeakMap == "function" ? WeakMap : Map;
213
- He = new V();
212
+ var H = typeof WeakMap == "function" ? WeakMap : Map;
213
+ He = new H();
214
214
  }
215
215
  function Ne(y, I) {
216
216
  if (!y || Xe)
@@ -649,7 +649,7 @@ function ce(t) {
649
649
  }, []);
650
650
  }
651
651
  function Pd(t) {
652
- let [e, n] = H(t), r = B(null), l = ce(() => {
652
+ let [e, n] = V(t), r = B(null), l = ce(() => {
653
653
  if (!r.current) return;
654
654
  let o = r.current.next();
655
655
  if (o.done) {
@@ -697,7 +697,7 @@ function Ad(t) {
697
697
  return t || `${r}-${n}`;
698
698
  }
699
699
  function Bd(t) {
700
- let e = D.useId(), [n] = H(St()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Dn.prefix}`;
700
+ let e = D.useId(), [n] = V(St()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Dn.prefix}`;
701
701
  return t || `${r}-${e}`;
702
702
  }
703
703
  const Kd = typeof D.useId == "function" ? Bd : Ad;
@@ -719,7 +719,7 @@ typeof FinalizationRegistry < "u" && (Zt = new FinalizationRegistry((t) => {
719
719
  Ft.delete(t);
720
720
  }));
721
721
  function be(t) {
722
- let [e, n] = H(t), r = B(null), l = Kd(e), i = B(null);
722
+ let [e, n] = V(t), r = B(null), l = Kd(e), i = B(null);
723
723
  if (Zt && Zt.register(i, l), Rd) {
724
724
  const o = Ft.get(l);
725
725
  o && !o.includes(r) ? o.push(r) : Ft.set(l, [
@@ -942,7 +942,7 @@ function Hd() {
942
942
  for (var t, e, n = 0, r = "", l = arguments.length; n < l; n++) (t = arguments[n]) && (e = Zi(t)) && (r && (r += " "), r += e);
943
943
  return r;
944
944
  }
945
- function U(...t) {
945
+ function G(...t) {
946
946
  let e = {
947
947
  ...t[0]
948
948
  };
@@ -1197,7 +1197,7 @@ function no(t, e) {
1197
1197
  }
1198
1198
  function Ct(t) {
1199
1199
  const e = B(null);
1200
- return G(() => ({
1200
+ return W(() => ({
1201
1201
  get current() {
1202
1202
  return e.current;
1203
1203
  },
@@ -1279,7 +1279,7 @@ function uf(t, e) {
1279
1279
  let af = 0;
1280
1280
  const dr = /* @__PURE__ */ new Map();
1281
1281
  function Gn(t) {
1282
- let [e, n] = H();
1282
+ let [e, n] = V();
1283
1283
  return Q(() => {
1284
1284
  if (!t) return;
1285
1285
  let r = dr.get(t);
@@ -1386,7 +1386,7 @@ function Nt(t) {
1386
1386
  return ft() ? t.metaKey : t.ctrlKey;
1387
1387
  }
1388
1388
  function io(t, e = !0) {
1389
- let [n, r] = H(!0), l = n && e;
1389
+ let [n, r] = V(!0), l = n && e;
1390
1390
  return Q(() => {
1391
1391
  if (l && t.current && "getAnimations" in t.current)
1392
1392
  for (let i of t.current.getAnimations()) i instanceof CSSTransition && i.cancel();
@@ -1396,7 +1396,7 @@ function io(t, e = !0) {
1396
1396
  ]), uo(t, l, ee(() => r(!1), [])), l;
1397
1397
  }
1398
1398
  function oo(t, e) {
1399
- let [n, r] = H(e ? "open" : "closed");
1399
+ let [n, r] = V(e ? "open" : "closed");
1400
1400
  switch (n) {
1401
1401
  case "open":
1402
1402
  e || r("exiting");
@@ -1463,7 +1463,7 @@ function vf(t) {
1463
1463
  return t.matches(pf);
1464
1464
  }
1465
1465
  function vt(t, e, n) {
1466
- let [r, l] = H(t || e), i = B(t !== void 0), o = t !== void 0;
1466
+ let [r, l] = V(t || e), i = B(t !== void 0), o = t !== void 0;
1467
1467
  z(() => {
1468
1468
  let s = i.current;
1469
1469
  s !== o && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${s ? "controlled" : "uncontrolled"} to ${o ? "controlled" : "uncontrolled"}.`), i.current = o;
@@ -1641,7 +1641,7 @@ function $f(t) {
1641
1641
  let e = q(ln);
1642
1642
  if (e) {
1643
1643
  let { register: n, ...r } = e;
1644
- t = U(r, t), n();
1644
+ t = G(r, t), n();
1645
1645
  }
1646
1646
  return el(e, t.ref), t;
1647
1647
  }
@@ -1667,7 +1667,7 @@ class yn {
1667
1667
  }
1668
1668
  const ei = Symbol("linkClicked");
1669
1669
  function Ye(t) {
1670
- let { onPress: e, onPressChange: n, onPressStart: r, onPressEnd: l, onPressUp: i, onClick: o, isDisabled: u, isPressed: a, preventFocusOnPress: s, shouldCancelOnPointerExit: d, allowTextSelectionOnPress: c, ref: f, ...p } = $f(t), [v, g] = H(!1), x = B({
1670
+ let { onPress: e, onPressChange: n, onPressStart: r, onPressEnd: l, onPressUp: i, onClick: o, isDisabled: u, isPressed: a, preventFocusOnPress: s, shouldCancelOnPointerExit: d, allowTextSelectionOnPress: c, ref: f, ...p } = $f(t), [v, g] = V(!1), x = B({
1671
1671
  isPressed: !1,
1672
1672
  ignoreEmulatedMouseEvents: !1,
1673
1673
  didFirePressStart: !1,
@@ -1716,16 +1716,16 @@ function Ye(t) {
1716
1716
  for (let _ of N.disposables) _();
1717
1717
  N.disposables = [];
1718
1718
  }
1719
- }), F = ce((b) => {
1720
- d && w(b);
1721
1719
  }), R = ce((b) => {
1720
+ d && w(b);
1721
+ }), F = ce((b) => {
1722
1722
  o == null || o(b);
1723
1723
  }), M = ce((b, N) => {
1724
1724
  if (o) {
1725
1725
  let _ = new MouseEvent("click", b);
1726
1726
  ao(_, N), o(rl(_));
1727
1727
  }
1728
- }), A = G(() => {
1728
+ }), A = W(() => {
1729
1729
  let b = x.current, N = {
1730
1730
  onKeyDown(k) {
1731
1731
  if (pr(k.nativeEvent, k.currentTarget) && se(k.currentTarget, le(k.nativeEvent))) {
@@ -1747,10 +1747,10 @@ function Ye(t) {
1747
1747
  let O = !0;
1748
1748
  if (u && k.preventDefault(), !b.ignoreEmulatedMouseEvents && !b.isPressed && (b.pointerType === "virtual" || Dr(k.nativeEvent))) {
1749
1749
  let h = C(k, "virtual"), K = S(k, "virtual"), P = T(k, "virtual");
1750
- R(k), O = h && K && P;
1750
+ F(k), O = h && K && P;
1751
1751
  } else if (b.isPressed && b.pointerType !== "keyboard") {
1752
1752
  let h = b.pointerType || k.nativeEvent.pointerType || "virtual";
1753
- O = T(Bt(k.currentTarget, k), h, !0), b.isOverTarget = !1, R(k), w(k);
1753
+ O = T(Bt(k.currentTarget, k), h, !0), b.isOverTarget = !1, F(k), w(k);
1754
1754
  }
1755
1755
  b.ignoreEmulatedMouseEvents = !1, O && k.stopPropagation();
1756
1756
  }
@@ -1797,7 +1797,7 @@ function Ye(t) {
1797
1797
  }, N.onPointerEnter = (h) => {
1798
1798
  h.pointerId === b.activePointerId && b.target && !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, C(Bt(b.target, h), b.pointerType));
1799
1799
  }, N.onPointerLeave = (h) => {
1800
- h.pointerId === b.activePointerId && b.target && b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, T(Bt(b.target, h), b.pointerType, !1), F(h));
1800
+ h.pointerId === b.activePointerId && b.target && b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, T(Bt(b.target, h), b.pointerType, !1), R(h));
1801
1801
  };
1802
1802
  let k = (h) => {
1803
1803
  if (h.pointerId === b.activePointerId && b.isPressed && h.button === 0 && b.target) {
@@ -1834,7 +1834,7 @@ function Ye(t) {
1834
1834
  }, N.onMouseLeave = (h) => {
1835
1835
  if (!se(h.currentTarget, le(h.nativeEvent))) return;
1836
1836
  let K = !0;
1837
- b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !1, K = T(h, b.pointerType, !1), F(h)), K && h.stopPropagation();
1837
+ b.isPressed && !b.ignoreEmulatedMouseEvents && b.pointerType != null && (b.isOverTarget = !1, K = T(h, b.pointerType, !1), R(h)), K && h.stopPropagation();
1838
1838
  }, N.onMouseUp = (h) => {
1839
1839
  se(h.currentTarget, le(h.nativeEvent)) && !b.ignoreEmulatedMouseEvents && h.button === 0 && S(h, b.pointerType || "mouse");
1840
1840
  };
@@ -1859,7 +1859,7 @@ function Ye(t) {
1859
1859
  return;
1860
1860
  }
1861
1861
  let K = ti(h.nativeEvent, b.activePointerId), P = !0;
1862
- K && ni(K, h.currentTarget) ? !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, P = C(it(b.target, h), b.pointerType)) : b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, P = T(it(b.target, h), b.pointerType, !1), F(it(b.target, h))), P && h.stopPropagation();
1862
+ K && ni(K, h.currentTarget) ? !b.isOverTarget && b.pointerType != null && (b.isOverTarget = !0, P = C(it(b.target, h), b.pointerType)) : b.isOverTarget && b.pointerType != null && (b.isOverTarget = !1, P = T(it(b.target, h), b.pointerType, !1), R(it(b.target, h))), P && h.stopPropagation();
1863
1863
  }, N.onTouchEnd = (h) => {
1864
1864
  if (!se(h.currentTarget, le(h.nativeEvent))) return;
1865
1865
  if (!b.isPressed) {
@@ -1892,11 +1892,11 @@ function Ye(t) {
1892
1892
  E,
1893
1893
  c,
1894
1894
  w,
1895
- F,
1895
+ R,
1896
1896
  T,
1897
1897
  C,
1898
1898
  S,
1899
- R,
1899
+ F,
1900
1900
  M
1901
1901
  ]);
1902
1902
  return z(() => {
@@ -1916,7 +1916,7 @@ function Ye(t) {
1916
1916
  c
1917
1917
  ]), {
1918
1918
  isPressed: a || v,
1919
- pressProps: U(p, A)
1919
+ pressProps: G(p, A)
1920
1920
  };
1921
1921
  }
1922
1922
  function ll(t) {
@@ -2062,7 +2062,7 @@ function mo(t) {
2062
2062
  }
2063
2063
  function go() {
2064
2064
  Kn();
2065
- let [t, e] = H(rt);
2065
+ let [t, e] = V(rt);
2066
2066
  return z(() => {
2067
2067
  let n = () => {
2068
2068
  e(rt);
@@ -2180,7 +2180,7 @@ const Mf = /* @__PURE__ */ D.forwardRef(function(e, n) {
2180
2180
  }, r);
2181
2181
  });
2182
2182
  function wt(t, e) {
2183
- let { focusProps: n } = il(t), { keyboardProps: r } = yo(t), l = U(n, r), i = Kf(e), o = t.isDisabled ? {} : i, u = B(t.autoFocus);
2183
+ let { focusProps: n } = il(t), { keyboardProps: r } = yo(t), l = G(n, r), i = Kf(e), o = t.isDisabled ? {} : i, u = B(t.autoFocus);
2184
2184
  z(() => {
2185
2185
  u.current && e.current && Ee(e.current), u.current = !1;
2186
2186
  }, [
@@ -2188,7 +2188,7 @@ function wt(t, e) {
2188
2188
  ]);
2189
2189
  let a = t.excludeFromTabOrder ? -1 : 0;
2190
2190
  return t.isDisabled && (a = void 0), {
2191
- focusableProps: U({
2191
+ focusableProps: G({
2192
2192
  ...l,
2193
2193
  tabIndex: a
2194
2194
  }, o)
@@ -2222,14 +2222,14 @@ const Nf = /* @__PURE__ */ Ke(({ children: t, ...e }, n) => {
2222
2222
  ]);
2223
2223
  let i = parseInt(D.version, 10) < 19 ? l.ref : l.props.ref;
2224
2224
  return /* @__PURE__ */ D.cloneElement(l, {
2225
- ...U(r, l.props),
2225
+ ...G(r, l.props),
2226
2226
  // @ts-ignore
2227
2227
  ref: Zr(i, n)
2228
2228
  });
2229
2229
  }), If = /* @__PURE__ */ D.forwardRef(({ children: t, ...e }, n) => {
2230
2230
  let r = B(!1), l = q(ln);
2231
2231
  n = Ct(n || (l == null ? void 0 : l.ref));
2232
- let i = U(l || {}, {
2232
+ let i = G(l || {}, {
2233
2233
  ...e,
2234
2234
  ref: n,
2235
2235
  register() {
@@ -2243,7 +2243,7 @@ const Nf = /* @__PURE__ */ Ke(({ children: t, ...e }, n) => {
2243
2243
  }, t);
2244
2244
  });
2245
2245
  function Rf({ children: t }) {
2246
- let e = G(() => ({
2246
+ let e = W(() => ({
2247
2247
  register: () => {
2248
2248
  }
2249
2249
  }), []);
@@ -2316,14 +2316,14 @@ function Ff() {
2316
2316
  };
2317
2317
  }
2318
2318
  function Ot(t) {
2319
- let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: l } = t, [i, o] = H(!1), u = B({
2319
+ let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: l } = t, [i, o] = V(!1), u = B({
2320
2320
  isHovered: !1,
2321
2321
  ignoreEmulatedMouseEvents: !1,
2322
2322
  pointerType: "",
2323
2323
  target: null
2324
2324
  }).current;
2325
2325
  z(Ff, []);
2326
- let { addGlobalListener: a, removeAllGlobalListeners: s } = Un(), { hoverProps: d, triggerHoverEnd: c } = G(() => {
2326
+ let { addGlobalListener: a, removeAllGlobalListeners: s } = Un(), { hoverProps: d, triggerHoverEnd: c } = W(() => {
2327
2327
  let f = (g, x) => {
2328
2328
  if (u.pointerType = x, l || x === "touch" || u.isHovered || !g.currentTarget.contains(g.target)) return;
2329
2329
  u.isHovered = !0;
@@ -2464,7 +2464,7 @@ function $o(t) {
2464
2464
  }
2465
2465
  }), c = Gn(l && !e ? o : void 0);
2466
2466
  return {
2467
- longPressProps: U(d, c)
2467
+ longPressProps: G(d, c)
2468
2468
  };
2469
2469
  }
2470
2470
  const Of = /* @__PURE__ */ new Set([
@@ -2529,7 +2529,7 @@ function oi() {
2529
2529
  for (let t of Jt) t(Kr);
2530
2530
  }
2531
2531
  function Hf() {
2532
- let t = St(), [e, n] = H(Kr);
2532
+ let t = St(), [e, n] = V(Kr);
2533
2533
  return z(() => (Jt.size === 0 && window.addEventListener("languagechange", oi), Jt.add(n), () => {
2534
2534
  Jt.delete(n), Jt.size === 0 && window.removeEventListener("languagechange", oi);
2535
2535
  }), []), t ? {
@@ -2625,7 +2625,7 @@ function Jf(t, e) {
2625
2625
  }
2626
2626
  function Pt(t, e) {
2627
2627
  let { locale: n } = je(), r = Jf(t, e);
2628
- return G(() => new Xf(n, r), [
2628
+ return W(() => new Xf(n, r), [
2629
2629
  n,
2630
2630
  r
2631
2631
  ]);
@@ -2663,12 +2663,12 @@ function dn(t, e) {
2663
2663
  ref: e
2664
2664
  }), { focusableProps: C } = wt(t, e);
2665
2665
  d && (C.tabIndex = r ? -1 : C.tabIndex);
2666
- let T = U(C, $, ye(t, {
2666
+ let T = G(C, $, ye(t, {
2667
2667
  labelable: !0
2668
2668
  }));
2669
2669
  return {
2670
2670
  isPressed: E,
2671
- buttonProps: U(x, T, {
2671
+ buttonProps: G(x, T, {
2672
2672
  "aria-haspopup": t["aria-haspopup"],
2673
2673
  "aria-expanded": t["aria-expanded"],
2674
2674
  "aria-controls": t["aria-controls"],
@@ -2698,7 +2698,7 @@ function Eo(t, e) {
2698
2698
  const ci = /* @__PURE__ */ D.createContext(null), Mr = "react-aria-focus-scope-restore";
2699
2699
  let ae = null;
2700
2700
  function fn(t) {
2701
- let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = B(null), o = B(null), u = B([]), { parentNode: a } = q(ci) || {}, s = G(() => new Ir({
2701
+ let { children: e, contain: n, restoreFocus: r, autoFocus: l } = t, i = B(null), o = B(null), u = B([]), { parentNode: a } = q(ci) || {}, s = W(() => new Ir({
2702
2702
  scopeRef: u
2703
2703
  }), [
2704
2704
  u
@@ -2744,7 +2744,7 @@ function fn(t) {
2744
2744
  }, [
2745
2745
  u
2746
2746
  ]);
2747
- let d = G(() => tp(u), []), c = G(() => ({
2747
+ let d = W(() => tp(u), []), c = W(() => ({
2748
2748
  focusManager: d,
2749
2749
  parentNode: s
2750
2750
  }), [
@@ -3110,7 +3110,7 @@ function Jn(t = {}) {
3110
3110
  let { autoFocus: e = !1, isTextInput: n, within: r } = t, l = B({
3111
3111
  isFocused: !1,
3112
3112
  isFocusVisible: e || pt()
3113
- }), [i, o] = H(!1), [u, a] = H(() => l.current.isFocused && l.current.isFocusVisible), s = ee(() => a(l.current.isFocused && l.current.isFocusVisible), []), d = ee((p) => {
3113
+ }), [i, o] = V(!1), [u, a] = V(() => l.current.isFocused && l.current.isFocusVisible), s = ee(() => a(l.current.isFocused && l.current.isFocusVisible), []), d = ee((p) => {
3114
3114
  l.current.isFocused = p, o(p), s();
3115
3115
  }, [
3116
3116
  s
@@ -3134,7 +3134,7 @@ function Jn(t = {}) {
3134
3134
  };
3135
3135
  }
3136
3136
  function up(t, e) {
3137
- let n = e == null ? void 0 : e.isDisabled, [r, l] = H(!1);
3137
+ let n = e == null ? void 0 : e.isDisabled, [r, l] = V(!1);
3138
3138
  return Q(() => {
3139
3139
  if (t != null && t.current && !n) {
3140
3140
  let i = () => {
@@ -3271,7 +3271,7 @@ function pp(t) {
3271
3271
  isInvalid: e,
3272
3272
  validationErrors: [],
3273
3273
  validationDetails: ko
3274
- } : null, s = G(() => {
3274
+ } : null, s = W(() => {
3275
3275
  if (!o || l == null) return null;
3276
3276
  let A = vp(o, l);
3277
3277
  return vi(A);
@@ -3280,20 +3280,20 @@ function pp(t) {
3280
3280
  l
3281
3281
  ]);
3282
3282
  i != null && i.validationDetails.valid && (i = void 0);
3283
- let d = q(fp), c = G(() => r ? Array.isArray(r) ? r.flatMap((A) => Rr(d[A])) : Rr(d[r]) : [], [
3283
+ let d = q(fp), c = W(() => r ? Array.isArray(r) ? r.flatMap((A) => Rr(d[A])) : Rr(d[r]) : [], [
3284
3284
  d,
3285
3285
  r
3286
- ]), [f, p] = H(d), [v, g] = H(!1);
3286
+ ]), [f, p] = V(d), [v, g] = V(!1);
3287
3287
  d !== f && (p(d), g(!1));
3288
- let x = G(() => vi(v ? [] : c), [
3288
+ let x = W(() => vi(v ? [] : c), [
3289
3289
  v,
3290
3290
  c
3291
- ]), $ = B(Gt), [E, C] = H(Gt), T = B(Gt), S = () => {
3291
+ ]), $ = B(Gt), [E, C] = V(Gt), T = B(Gt), S = () => {
3292
3292
  if (!w) return;
3293
- F(!1);
3293
+ R(!1);
3294
3294
  let A = s || i || $.current;
3295
3295
  br(A, T.current) || (T.current = A, C(A));
3296
- }, [w, F] = H(!1);
3296
+ }, [w, R] = V(!1);
3297
3297
  return z(S), {
3298
3298
  realtimeValidation: a || x || s || i || Gt,
3299
3299
  displayValidation: u === "native" ? a || x || E : a || x || s || i || E,
@@ -3302,10 +3302,10 @@ function pp(t) {
3302
3302
  },
3303
3303
  resetValidation() {
3304
3304
  let A = Gt;
3305
- br(A, T.current) || (T.current = A, C(A)), u === "native" && F(!1), g(!0);
3305
+ br(A, T.current) || (T.current = A, C(A)), u === "native" && R(!1), g(!0);
3306
3306
  },
3307
3307
  commitValidation() {
3308
- u === "native" && F(!0), g(!0);
3308
+ u === "native" && R(!0), g(!0);
3309
3309
  }
3310
3310
  };
3311
3311
  }
@@ -3413,14 +3413,14 @@ function gp(t, e, n) {
3413
3413
  e.toggle(), (w = n.current) === null || w === void 0 || w.focus();
3414
3414
  },
3415
3415
  isDisabled: r || l
3416
- }), { focusableProps: C } = wt(t, n), T = U(g, C), S = ye(t, {
3416
+ }), { focusableProps: C } = wt(t, n), T = G(g, C), S = ye(t, {
3417
3417
  labelable: !0
3418
3418
  });
3419
3419
  return Yn(n, e.isSelected, e.setSelected), {
3420
- labelProps: U($, {
3420
+ labelProps: G($, {
3421
3421
  onClick: (w) => w.preventDefault()
3422
3422
  }),
3423
- inputProps: U(S, {
3423
+ inputProps: G(S, {
3424
3424
  "aria-invalid": c || d === "invalid" || void 0,
3425
3425
  "aria-errormessage": t["aria-errormessage"],
3426
3426
  "aria-controls": t["aria-controls"],
@@ -3471,7 +3471,7 @@ function sl(t) {
3471
3471
  r,
3472
3472
  l
3473
3473
  ]);
3474
- return o = U(o, {
3474
+ return o = G(o, {
3475
3475
  "aria-describedby": [
3476
3476
  u,
3477
3477
  // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
@@ -3516,10 +3516,10 @@ const hi = {
3516
3516
  whiteSpace: "nowrap"
3517
3517
  };
3518
3518
  function Ao(t = {}) {
3519
- let { style: e, isFocusable: n } = t, [r, l] = H(!1), { focusWithinProps: i } = cn({
3519
+ let { style: e, isFocusable: n } = t, [r, l] = V(!1), { focusWithinProps: i } = cn({
3520
3520
  isDisabled: !n,
3521
3521
  onFocusWithinChange: (u) => l(u)
3522
- }), o = G(() => r ? e : e ? {
3522
+ }), o = W(() => r ? e : e ? {
3523
3523
  ...hi,
3524
3524
  ...e
3525
3525
  } : hi, [
@@ -3534,7 +3534,7 @@ function Ao(t = {}) {
3534
3534
  }
3535
3535
  function cl(t) {
3536
3536
  let { children: e, elementType: n = "div", isFocusable: r, style: l, ...i } = t, { visuallyHiddenProps: o } = Ao(t);
3537
- return /* @__PURE__ */ D.createElement(n, U(i, o), e);
3537
+ return /* @__PURE__ */ D.createElement(n, G(i, o), e);
3538
3538
  }
3539
3539
  function Bo(t, e) {
3540
3540
  let { inputElementType: n = "input", isDisabled: r = !1, isRequired: l = !1, isReadOnly: i = !1, type: o = "text", validationBehavior: u = "aria" } = t, [a, s] = vt(t.value, t.defaultValue || "", t.onChange), { focusableProps: d } = wt(t, e), c = ul({
@@ -3565,7 +3565,7 @@ function Bo(t, e) {
3565
3565
  e
3566
3566
  ]), {
3567
3567
  labelProps: g,
3568
- inputProps: U(C, n === "input" ? T : void 0, {
3568
+ inputProps: G(C, n === "input" ? T : void 0, {
3569
3569
  disabled: r,
3570
3570
  readOnly: i,
3571
3571
  required: l && u === "native",
@@ -3704,10 +3704,10 @@ function mr(t, e, n, r, l, i, o, u, a, s) {
3704
3704
  x[p] = ($ = t[p]) !== null && $ !== void 0 ? $ : 0;
3705
3705
  var E, C, T, S;
3706
3706
  c === "center" ? x[p] += (((E = t[g]) !== null && E !== void 0 ? E : 0) - ((C = n[g]) !== null && C !== void 0 ? C : 0)) / 2 : c !== p && (x[p] += ((T = t[g]) !== null && T !== void 0 ? T : 0) - ((S = n[g]) !== null && S !== void 0 ? S : 0)), x[p] += i;
3707
- const w = t[p] - n[g] + a + s, F = t[p] + t[g] - a - s;
3708
- if (x[p] = kr(x[p], w, F), d === f) {
3709
- const R = u ? o[v] : e[Ko[v]];
3710
- x[Fn[f]] = Math.floor(R - t[f] + l);
3707
+ const w = t[p] - n[g] + a + s, R = t[p] + t[g] - a - s;
3708
+ if (x[p] = kr(x[p], w, R), d === f) {
3709
+ const F = u ? o[v] : e[Ko[v]];
3710
+ x[Fn[f]] = Math.floor(F - t[f] + l);
3711
3711
  } else x[f] = Math.floor(t[f] + t[v] + l);
3712
3712
  return x;
3713
3713
  }
@@ -3730,17 +3730,17 @@ function yi(t, e, n, r, l, i) {
3730
3730
  return Math.max(0, t[a] + t[u] + t.scroll[u] - e[u] - n[u] - n[a] - ((c = r[u]) !== null && c !== void 0 ? c : 0) - r[Fn[u]] - l);
3731
3731
  }
3732
3732
  function Cp(t, e, n, r, l, i, o, u, a, s, d, c, f, p, v, g) {
3733
- let x = gi(t), { size: $, crossAxis: E, crossSize: C, placement: T, crossPlacement: S } = x, w = mr(e, u, n, x, d, c, s, f, v, g), F = d, R = yi(u, s, e, l, i + d, x);
3734
- if (o && r[$] > R) {
3733
+ let x = gi(t), { size: $, crossAxis: E, crossSize: C, placement: T, crossPlacement: S } = x, w = mr(e, u, n, x, d, c, s, f, v, g), R = d, F = yi(u, s, e, l, i + d, x);
3734
+ if (o && r[$] > F) {
3735
3735
  let Le = gi(`${Fn[T]} ${S}`), qe = mr(e, u, n, Le, d, c, s, f, v, g);
3736
- yi(u, s, e, l, i + d, Le) > R && (x = Le, w = qe, F = d);
3736
+ yi(u, s, e, l, i + d, Le) > F && (x = Le, w = qe, R = d);
3737
3737
  }
3738
3738
  let M = "bottom";
3739
3739
  x.axis === "top" ? x.placement === "top" ? M = "top" : x.placement === "bottom" && (M = "bottom") : x.crossAxis === "top" && (x.crossPlacement === "top" ? M = "bottom" : x.crossPlacement === "bottom" && (M = "top"));
3740
3740
  let A = mi(E, w[E], n[C], u, a, i, s);
3741
3741
  w[E] += A;
3742
3742
  let b = Sp(w, u, s, f, l, i, n.height, M);
3743
- p && p < b && (b = p), n.height = Math.min(n.height, b), w = mr(e, u, n, x, F, c, s, f, v, g), A = mi(E, w[E], n[C], u, a, i, s), w[E] += A;
3743
+ p && p < b && (b = p), n.height = Math.min(n.height, b), w = mr(e, u, n, x, R, c, s, f, v, g), A = mi(E, w[E], n[C], u, a, i, s), w[E] += A;
3744
3744
  let N = {}, _ = e[E] + 0.5 * e[C] - w[E] - l[Ge[E]];
3745
3745
  const k = v / 2 + g;
3746
3746
  var O, h, K, P;
@@ -3764,10 +3764,10 @@ function wp(t) {
3764
3764
  let E = _t(r), C = Ep(r);
3765
3765
  var T, S;
3766
3766
  E.width += ((T = C.left) !== null && T !== void 0 ? T : 0) + ((S = C.right) !== null && S !== void 0 ? S : 0);
3767
- var w, F;
3768
- E.height += ((w = C.top) !== null && w !== void 0 ? w : 0) + ((F = C.bottom) !== null && F !== void 0 ? F : 0);
3769
- let R = xp(l), M = bi(u), A = bi(p), b = u.tagName === "BODY" ? _t(p) : $i(p, u);
3770
- return p.tagName === "HTML" && u.tagName === "BODY" && (A.scroll.top = 0, A.scroll.left = 0), Cp(e, $, E, R, C, i, o, M, A, b, a, s, x, d, c, f);
3767
+ var w, R;
3768
+ E.height += ((w = C.top) !== null && w !== void 0 ? w : 0) + ((R = C.bottom) !== null && R !== void 0 ? R : 0);
3769
+ let F = xp(l), M = bi(u), A = bi(p), b = u.tagName === "BODY" ? _t(p) : $i(p, u);
3770
+ return p.tagName === "HTML" && u.tagName === "BODY" && (A.scroll.top = 0, A.scroll.left = 0), Cp(e, $, E, F, C, i, o, M, A, b, a, s, x, d, c, f);
3771
3771
  }
3772
3772
  function _t(t) {
3773
3773
  let { top: e, left: n, width: r, height: l } = t.getBoundingClientRect(), { scrollTop: i, scrollLeft: o, clientTop: u, clientLeft: a } = document.documentElement;
@@ -3827,7 +3827,7 @@ function Dp(t) {
3827
3827
  }
3828
3828
  let pe = typeof document < "u" ? window.visualViewport : null;
3829
3829
  function No(t) {
3830
- let { direction: e } = je(), { arrowSize: n = 0, targetRef: r, overlayRef: l, scrollRef: i = l, placement: o = "bottom", containerPadding: u = 12, shouldFlip: a = !0, boundaryElement: s = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: c = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: v, maxHeight: g, arrowBoundaryOffset: x = 0 } = t, [$, E] = H(null), C = [
3830
+ let { direction: e } = je(), { arrowSize: n = 0, targetRef: r, overlayRef: l, scrollRef: i = l, placement: o = "bottom", containerPadding: u = 12, shouldFlip: a = !0, boundaryElement: s = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: c = 0, shouldUpdatePosition: f = !0, isOpen: p = !0, onClose: v, maxHeight: g, arrowBoundaryOffset: x = 0 } = t, [$, E] = V(null), C = [
3831
3831
  f,
3832
3832
  o,
3833
3833
  l.current,
@@ -3916,7 +3916,7 @@ function No(t) {
3916
3916
  }, [
3917
3917
  S
3918
3918
  ]);
3919
- let F = ee(() => {
3919
+ let R = ee(() => {
3920
3920
  w.current || v == null || v();
3921
3921
  }, [
3922
3922
  v,
@@ -3925,16 +3925,16 @@ function No(t) {
3925
3925
  Dp({
3926
3926
  triggerRef: r,
3927
3927
  isOpen: p,
3928
- onClose: v && F
3928
+ onClose: v && R
3929
3929
  });
3930
- var R, M;
3930
+ var F, M;
3931
3931
  return {
3932
3932
  overlayProps: {
3933
3933
  style: {
3934
3934
  position: "absolute",
3935
3935
  zIndex: 1e5,
3936
3936
  ...$ == null ? void 0 : $.position,
3937
- maxHeight: (R = $ == null ? void 0 : $.maxHeight) !== null && R !== void 0 ? R : "100vh"
3937
+ maxHeight: (F = $ == null ? void 0 : $.maxHeight) !== null && F !== void 0 ? F : "100vh"
3938
3938
  }
3939
3939
  },
3940
3940
  placement: (M = $ == null ? void 0 : $.placement) !== null && M !== void 0 ? M : null,
@@ -4124,7 +4124,7 @@ function Fo() {
4124
4124
  }
4125
4125
  const _r = /* @__PURE__ */ D.createContext(null);
4126
4126
  function Ip(t) {
4127
- let { children: e } = t, n = q(_r), [r, l] = H(0), i = G(() => ({
4127
+ let { children: e } = t, n = q(_r), [r, l] = V(0), i = W(() => ({
4128
4128
  parent: n,
4129
4129
  modalCount: r,
4130
4130
  addModal() {
@@ -4457,7 +4457,7 @@ function $u(t, e) {
4457
4457
  r,
4458
4458
  l
4459
4459
  ]), {
4460
- popoverProps: U(d, f),
4460
+ popoverProps: G(d, f),
4461
4461
  arrowProps: p,
4462
4462
  underlayProps: c,
4463
4463
  placement: v
@@ -4465,7 +4465,7 @@ function $u(t, e) {
4465
4465
  }
4466
4466
  const xu = /* @__PURE__ */ D.createContext(null);
4467
4467
  function _n(t) {
4468
- let e = St(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [l, i] = H(!1), o = G(() => ({
4468
+ let e = St(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [l, i] = V(!1), o = W(() => ({
4469
4469
  contain: l,
4470
4470
  setContain: i
4471
4471
  }), [
@@ -4505,7 +4505,7 @@ function zp(t, e, n) {
4505
4505
  e.isOpen,
4506
4506
  n
4507
4507
  ]), {
4508
- modalProps: U(r),
4508
+ modalProps: G(r),
4509
4509
  underlayProps: l
4510
4510
  };
4511
4511
  }
@@ -4566,75 +4566,75 @@ function wu(t) {
4566
4566
  let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: l = !1, shouldFocusWrap: i = !1, disallowEmptySelection: o = !1, disallowSelectAll: u = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: s = e.selectionBehavior === "replace", disallowTypeAhead: d = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: p, scrollRef: v = r, linkBehavior: g = "action" } = t, { direction: x } = je(), $ = sn(), E = (h) => {
4567
4567
  var K;
4568
4568
  if (h.altKey && h.key === "Tab" && h.preventDefault(), !(!((K = r.current) === null || K === void 0) && K.contains(h.target))) return;
4569
- const P = (V, Ne) => {
4570
- if (V != null) {
4571
- if (e.isLink(V) && g === "selection" && s && !Or(h)) {
4569
+ const P = (H, Ne) => {
4570
+ if (H != null) {
4571
+ if (e.isLink(H) && g === "selection" && s && !Or(h)) {
4572
4572
  Xr(() => {
4573
- e.setFocusedKey(V, Ne);
4573
+ e.setFocusedKey(H, Ne);
4574
4574
  });
4575
- let Ie = Pn(r, V), kt = e.getItemProps(V);
4575
+ let Ie = Pn(r, H), kt = e.getItemProps(H);
4576
4576
  Ie && $.open(Ie, h, kt.href, kt.routerOptions);
4577
4577
  return;
4578
4578
  }
4579
- if (e.setFocusedKey(V, Ne), e.isLink(V) && g === "override") return;
4580
- h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(V) : s && !Or(h) && e.replaceSelection(V);
4579
+ if (e.setFocusedKey(H, Ne), e.isLink(H) && g === "override") return;
4580
+ h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(H) : s && !Or(h) && e.replaceSelection(H);
4581
4581
  }
4582
4582
  };
4583
4583
  switch (h.key) {
4584
4584
  case "ArrowDown":
4585
4585
  if (n.getKeyBelow) {
4586
4586
  var j, Z, J;
4587
- let V = e.focusedKey != null ? (j = n.getKeyBelow) === null || j === void 0 ? void 0 : j.call(n, e.focusedKey) : (Z = n.getFirstKey) === null || Z === void 0 ? void 0 : Z.call(n);
4588
- V == null && i && (V = (J = n.getFirstKey) === null || J === void 0 ? void 0 : J.call(n, e.focusedKey)), V != null && (h.preventDefault(), P(V));
4587
+ let H = e.focusedKey != null ? (j = n.getKeyBelow) === null || j === void 0 ? void 0 : j.call(n, e.focusedKey) : (Z = n.getFirstKey) === null || Z === void 0 ? void 0 : Z.call(n);
4588
+ H == null && i && (H = (J = n.getFirstKey) === null || J === void 0 ? void 0 : J.call(n, e.focusedKey)), H != null && (h.preventDefault(), P(H));
4589
4589
  }
4590
4590
  break;
4591
4591
  case "ArrowUp":
4592
4592
  if (n.getKeyAbove) {
4593
4593
  var de, $e, Le;
4594
- let V = e.focusedKey != null ? (de = n.getKeyAbove) === null || de === void 0 ? void 0 : de.call(n, e.focusedKey) : ($e = n.getLastKey) === null || $e === void 0 ? void 0 : $e.call(n);
4595
- V == null && i && (V = (Le = n.getLastKey) === null || Le === void 0 ? void 0 : Le.call(n, e.focusedKey)), V != null && (h.preventDefault(), P(V));
4594
+ let H = e.focusedKey != null ? (de = n.getKeyAbove) === null || de === void 0 ? void 0 : de.call(n, e.focusedKey) : ($e = n.getLastKey) === null || $e === void 0 ? void 0 : $e.call(n);
4595
+ H == null && i && (H = (Le = n.getLastKey) === null || Le === void 0 ? void 0 : Le.call(n, e.focusedKey)), H != null && (h.preventDefault(), P(H));
4596
4596
  }
4597
4597
  break;
4598
4598
  case "ArrowLeft":
4599
4599
  if (n.getKeyLeftOf) {
4600
4600
  var qe, we, ze;
4601
- let V = e.focusedKey != null ? (qe = n.getKeyLeftOf) === null || qe === void 0 ? void 0 : qe.call(n, e.focusedKey) : null;
4602
- V == null && i && (V = x === "rtl" ? (we = n.getFirstKey) === null || we === void 0 ? void 0 : we.call(n, e.focusedKey) : (ze = n.getLastKey) === null || ze === void 0 ? void 0 : ze.call(n, e.focusedKey)), V != null && (h.preventDefault(), P(V, x === "rtl" ? "first" : "last"));
4601
+ let H = e.focusedKey != null ? (qe = n.getKeyLeftOf) === null || qe === void 0 ? void 0 : qe.call(n, e.focusedKey) : null;
4602
+ H == null && i && (H = x === "rtl" ? (we = n.getFirstKey) === null || we === void 0 ? void 0 : we.call(n, e.focusedKey) : (ze = n.getLastKey) === null || ze === void 0 ? void 0 : ze.call(n, e.focusedKey)), H != null && (h.preventDefault(), P(H, x === "rtl" ? "first" : "last"));
4603
4603
  }
4604
4604
  break;
4605
4605
  case "ArrowRight":
4606
4606
  if (n.getKeyRightOf) {
4607
4607
  var Ve, Xe, He;
4608
- let V = e.focusedKey != null ? (Ve = n.getKeyRightOf) === null || Ve === void 0 ? void 0 : Ve.call(n, e.focusedKey) : null;
4609
- V == null && i && (V = x === "rtl" ? (Xe = n.getLastKey) === null || Xe === void 0 ? void 0 : Xe.call(n, e.focusedKey) : (He = n.getFirstKey) === null || He === void 0 ? void 0 : He.call(n, e.focusedKey)), V != null && (h.preventDefault(), P(V, x === "rtl" ? "last" : "first"));
4608
+ let H = e.focusedKey != null ? (Ve = n.getKeyRightOf) === null || Ve === void 0 ? void 0 : Ve.call(n, e.focusedKey) : null;
4609
+ H == null && i && (H = x === "rtl" ? (Xe = n.getLastKey) === null || Xe === void 0 ? void 0 : Xe.call(n, e.focusedKey) : (He = n.getFirstKey) === null || He === void 0 ? void 0 : He.call(n, e.focusedKey)), H != null && (h.preventDefault(), P(H, x === "rtl" ? "last" : "first"));
4610
4610
  }
4611
4611
  break;
4612
4612
  case "Home":
4613
4613
  if (n.getFirstKey) {
4614
4614
  if (e.focusedKey === null && h.shiftKey) return;
4615
4615
  h.preventDefault();
4616
- let V = n.getFirstKey(e.focusedKey, Nt(h));
4617
- e.setFocusedKey(V), V != null && (Nt(h) && h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(V) : s && e.replaceSelection(V));
4616
+ let H = n.getFirstKey(e.focusedKey, Nt(h));
4617
+ e.setFocusedKey(H), H != null && (Nt(h) && h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(H) : s && e.replaceSelection(H));
4618
4618
  }
4619
4619
  break;
4620
4620
  case "End":
4621
4621
  if (n.getLastKey) {
4622
4622
  if (e.focusedKey === null && h.shiftKey) return;
4623
4623
  h.preventDefault();
4624
- let V = n.getLastKey(e.focusedKey, Nt(h));
4625
- e.setFocusedKey(V), V != null && (Nt(h) && h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(V) : s && e.replaceSelection(V));
4624
+ let H = n.getLastKey(e.focusedKey, Nt(h));
4625
+ e.setFocusedKey(H), H != null && (Nt(h) && h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(H) : s && e.replaceSelection(H));
4626
4626
  }
4627
4627
  break;
4628
4628
  case "PageDown":
4629
4629
  if (n.getKeyPageBelow && e.focusedKey != null) {
4630
- let V = n.getKeyPageBelow(e.focusedKey);
4631
- V != null && (h.preventDefault(), P(V));
4630
+ let H = n.getKeyPageBelow(e.focusedKey);
4631
+ H != null && (h.preventDefault(), P(H));
4632
4632
  }
4633
4633
  break;
4634
4634
  case "PageUp":
4635
4635
  if (n.getKeyPageAbove && e.focusedKey != null) {
4636
- let V = n.getKeyPageAbove(e.focusedKey);
4637
- V != null && (h.preventDefault(), P(V));
4636
+ let H = n.getKeyPageAbove(e.focusedKey);
4637
+ H != null && (h.preventDefault(), P(H));
4638
4638
  }
4639
4639
  break;
4640
4640
  case "a":
@@ -4647,11 +4647,11 @@ function wu(t) {
4647
4647
  if (!f) {
4648
4648
  if (h.shiftKey) r.current.focus();
4649
4649
  else {
4650
- let V = Be(r.current, {
4650
+ let H = Be(r.current, {
4651
4651
  tabbable: !0
4652
4652
  }), Ne, Ie;
4653
4653
  do
4654
- Ie = V.lastChild(), Ie && (Ne = Ie);
4654
+ Ie = H.lastChild(), Ie && (Ne = Ie);
4655
4655
  while (Ie);
4656
4656
  Ne && !Ne.contains(document.activeElement) && Se(Ne);
4657
4657
  }
@@ -4697,25 +4697,25 @@ function wu(t) {
4697
4697
  let { detail: K } = h;
4698
4698
  h.stopPropagation(), e.setFocused(!0), (K == null ? void 0 : K.focusStrategy) === "first" && (w.current = !0);
4699
4699
  } : void 0);
4700
- let F = ce(() => {
4700
+ let R = ce(() => {
4701
4701
  var h, K;
4702
4702
  let P = (K = (h = n.getFirstKey) === null || h === void 0 ? void 0 : h.call(n)) !== null && K !== void 0 ? K : null;
4703
4703
  P == null ? (wo(r.current), e.collection.size > 0 && (w.current = !1)) : (e.setFocusedKey(P), w.current = !1);
4704
4704
  });
4705
4705
  ql(() => {
4706
- w.current && F();
4706
+ w.current && R();
4707
4707
  }, [
4708
4708
  e.collection,
4709
- F
4709
+ R
4710
4710
  ]);
4711
- let R = ce(() => {
4711
+ let F = ce(() => {
4712
4712
  e.collection.size > 0 && (w.current = !1);
4713
4713
  });
4714
4714
  ql(() => {
4715
- R();
4715
+ F();
4716
4716
  }, [
4717
4717
  e.focusedKey,
4718
- R
4718
+ F
4719
4719
  ]), mn(r, cf, c ? (h) => {
4720
4720
  var K;
4721
4721
  h.stopPropagation(), e.setFocused(!1), !((K = h.detail) === null || K === void 0) && K.clearFocusKey && e.setFocusedKey(null);
@@ -4764,12 +4764,12 @@ function wu(t) {
4764
4764
  keyboardDelegate: n,
4765
4765
  selectionManager: e
4766
4766
  });
4767
- d || (N = U(_, N));
4767
+ d || (N = G(_, N));
4768
4768
  let k;
4769
4769
  c || (k = e.focusedKey == null ? 0 : -1);
4770
4770
  let O = Wp(e.collection);
4771
4771
  return {
4772
- collectionProps: U(N, {
4772
+ collectionProps: G(N, {
4773
4773
  tabIndex: k,
4774
4774
  "data-collection": O
4775
4775
  })
@@ -4811,7 +4811,7 @@ function Qn(t) {
4811
4811
  } : a && (v.onMouseDown = (P) => {
4812
4812
  P.preventDefault();
4813
4813
  });
4814
- let g = n.isLink(r) && c === "override", x = n.isLink(r) && c !== "selection" && c !== "none", $ = !a && n.canSelectItem(r) && !g, E = (s || x) && !a, C = E && (n.selectionBehavior === "replace" ? !$ : !$ || n.isEmpty), T = E && $ && n.selectionBehavior === "replace", S = C || T, w = B(null), F = S && $, R = B(!1), M = B(!1), A = (P) => {
4814
+ let g = n.isLink(r) && c === "override", x = n.isLink(r) && c !== "selection" && c !== "none", $ = !a && n.canSelectItem(r) && !g, E = (s || x) && !a, C = E && (n.selectionBehavior === "replace" ? !$ : !$ || n.isEmpty), T = E && $ && n.selectionBehavior === "replace", S = C || T, w = B(null), R = S && $, F = B(!1), M = B(!1), A = (P) => {
4815
4815
  if (s && s(), x && l.current) {
4816
4816
  let j = n.getItemProps(r);
4817
4817
  f.open(l.current, P, j.href, j.routerOptions);
@@ -4820,7 +4820,7 @@ function Qn(t) {
4820
4820
  ref: l
4821
4821
  };
4822
4822
  i ? (b.onPressStart = (P) => {
4823
- w.current = P.pointerType, R.current = F, P.pointerType === "keyboard" && (!S || Ci()) && p(P);
4823
+ w.current = P.pointerType, F.current = R, P.pointerType === "keyboard" && (!S || Ci()) && p(P);
4824
4824
  }, d ? (b.onPressUp = C ? void 0 : (P) => {
4825
4825
  P.pointerType === "mouse" && $ && p(P);
4826
4826
  }, b.onPress = C ? A : (P) => {
@@ -4831,10 +4831,10 @@ function Qn(t) {
4831
4831
  A(P);
4832
4832
  } else P.pointerType !== "keyboard" && $ && p(P);
4833
4833
  }) : (b.onPressStart = (P) => {
4834
- w.current = P.pointerType, R.current = F, M.current = C, $ && (P.pointerType === "mouse" && !C || P.pointerType === "keyboard" && (!E || Ci())) && p(P);
4834
+ w.current = P.pointerType, F.current = R, M.current = C, $ && (P.pointerType === "mouse" && !C || P.pointerType === "keyboard" && (!E || Ci())) && p(P);
4835
4835
  }, b.onPress = (P) => {
4836
4836
  (P.pointerType === "touch" || P.pointerType === "pen" || P.pointerType === "virtual" || P.pointerType === "keyboard" && S && Si() || P.pointerType === "mouse" && M.current) && (S ? A(P) : $ && p(P));
4837
- }), v["data-collection"] = Up(n.collection), v["data-key"] = r, b.preventFocusOnPress = o, o && (b = U(b, {
4837
+ }), v["data-collection"] = Up(n.collection), v["data-key"] = r, b.preventFocusOnPress = o, o && (b = G(b, {
4838
4838
  onPressStart(P) {
4839
4839
  P.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
4840
4840
  },
@@ -4845,20 +4845,20 @@ function Qn(t) {
4845
4845
  let { pressProps: N, isPressed: _ } = Ye(b), k = T ? (P) => {
4846
4846
  w.current === "mouse" && (P.stopPropagation(), P.preventDefault(), A(P));
4847
4847
  } : void 0, { longPressProps: O } = $o({
4848
- isDisabled: !F,
4848
+ isDisabled: !R,
4849
4849
  onLongPress(P) {
4850
4850
  P.pointerType === "touch" && (p(P), n.setSelectionBehavior("toggle"));
4851
4851
  }
4852
4852
  }), h = (P) => {
4853
- w.current === "touch" && R.current && P.preventDefault();
4853
+ w.current === "touch" && F.current && P.preventDefault();
4854
4854
  }, K = n.isLink(r) ? (P) => {
4855
4855
  xt.isOpening || P.preventDefault();
4856
4856
  } : void 0;
4857
4857
  return {
4858
- itemProps: U(
4858
+ itemProps: G(
4859
4859
  v,
4860
4860
  $ || C || o ? N : {},
4861
- F ? O : {},
4861
+ R ? O : {},
4862
4862
  {
4863
4863
  onDoubleClick: k,
4864
4864
  onDragStartCapture: h,
@@ -5042,7 +5042,7 @@ function Du(t) {
5042
5042
  let { selectionManager: e, collection: n, disabledKeys: r, ref: l, keyboardDelegate: i, layoutDelegate: o } = t, u = Zn({
5043
5043
  usage: "search",
5044
5044
  sensitivity: "base"
5045
- }), a = e.disabledBehavior, s = G(() => i || new Pu({
5045
+ }), a = e.disabledBehavior, s = W(() => i || new Pu({
5046
5046
  collection: n,
5047
5047
  disabledKeys: r,
5048
5048
  disabledBehavior: a,
@@ -5102,11 +5102,11 @@ function qp(t, e, n) {
5102
5102
  });
5103
5103
  return {
5104
5104
  labelProps: s,
5105
- listBoxProps: U(r, u, e.selectionManager.selectionMode === "multiple" ? {
5105
+ listBoxProps: G(r, u, e.selectionManager.selectionMode === "multiple" ? {
5106
5106
  "aria-multiselectable": "true"
5107
5107
  } : {}, {
5108
5108
  role: "listbox",
5109
- ...U(d, o)
5109
+ ...G(d, o)
5110
5110
  })
5111
5111
  };
5112
5112
  }
@@ -5266,7 +5266,7 @@ class Zp {
5266
5266
  var a;
5267
5267
  let S = (a = T.key) !== null && a !== void 0 ? a : null;
5268
5268
  S == null && (S = T.element ? null : this.getKey(o, e, n, r));
5269
- let F = [
5269
+ let R = [
5270
5270
  ...this.getFullNode({
5271
5271
  ...T,
5272
5272
  key: S,
@@ -5274,14 +5274,14 @@ class Zp {
5274
5274
  wrapper: Jp(e.wrapper, T.wrapper)
5275
5275
  }, this.getChildState(n, T), r ? `${r}${o.key}` : o.key, l)
5276
5276
  ];
5277
- for (let R of F) {
5277
+ for (let F of R) {
5278
5278
  var s, d;
5279
- R.value = (d = (s = T.value) !== null && s !== void 0 ? s : e.value) !== null && d !== void 0 ? d : null, R.value && this.cache.set(R.value, R);
5279
+ F.value = (d = (s = T.value) !== null && s !== void 0 ? s : e.value) !== null && d !== void 0 ? d : null, F.value && this.cache.set(F.value, F);
5280
5280
  var c;
5281
- if (e.type && R.type !== e.type) throw new Error(`Unsupported type <${$r(R.type)}> in <${$r((c = l == null ? void 0 : l.type) !== null && c !== void 0 ? c : "unknown parent type")}>. Only <${$r(e.type)}> is supported.`);
5282
- E++, yield R;
5281
+ if (e.type && F.type !== e.type) throw new Error(`Unsupported type <${$r(F.type)}> in <${$r((c = l == null ? void 0 : l.type) !== null && c !== void 0 ? c : "unknown parent type")}>. Only <${$r(e.type)}> is supported.`);
5282
+ E++, yield F;
5283
5283
  }
5284
- C = $.next(F);
5284
+ C = $.next(R);
5285
5285
  }
5286
5286
  return;
5287
5287
  }
@@ -5342,8 +5342,8 @@ function $r(t) {
5342
5342
  return t[0].toUpperCase() + t.slice(1);
5343
5343
  }
5344
5344
  function pl(t, e, n) {
5345
- let r = G(() => new Zp(), []), { children: l, items: i, collection: o } = t;
5346
- return G(() => {
5345
+ let r = W(() => new Zp(), []), { children: l, items: i, collection: o } = t;
5346
+ return W(() => {
5347
5347
  if (o) return o;
5348
5348
  let a = r.build({
5349
5349
  children: l,
@@ -5429,10 +5429,10 @@ function Qp(t, e, n) {
5429
5429
  let K = Number(w == null ? void 0 : w.index);
5430
5430
  S["aria-posinset"] = Number.isNaN(K) ? void 0 : K + 1, S["aria-setsize"] = Bu(e.collection);
5431
5431
  }
5432
- let F = o != null && o.onAction ? () => {
5432
+ let R = o != null && o.onAction ? () => {
5433
5433
  var K;
5434
5434
  return o == null || (K = o.onAction) === null || K === void 0 ? void 0 : K.call(o, i);
5435
- } : void 0, R = Hp(e, i), { itemProps: M, isPressed: A, isFocused: b, hasAction: N, allowsSelection: _ } = Qn({
5435
+ } : void 0, F = Hp(e, i), { itemProps: M, isPressed: A, isFocused: b, hasAction: N, allowsSelection: _ } = Qn({
5436
5436
  selectionManager: e.selectionManager,
5437
5437
  key: i,
5438
5438
  ref: n,
@@ -5441,9 +5441,9 @@ function Qp(t, e, n) {
5441
5441
  isVirtualized: E,
5442
5442
  shouldUseVirtualFocus: x,
5443
5443
  isDisabled: a,
5444
- onAction: F || !(w == null || (r = w.props) === null || r === void 0) && r.onAction ? nt(w == null || (l = w.props) === null || l === void 0 ? void 0 : l.onAction, F) : void 0,
5444
+ onAction: R || !(w == null || (r = w.props) === null || r === void 0) && r.onAction ? nt(w == null || (l = w.props) === null || l === void 0 ? void 0 : l.onAction, R) : void 0,
5445
5445
  linkBehavior: o == null ? void 0 : o.linkBehavior,
5446
- id: R
5446
+ id: F
5447
5447
  }), { hoverProps: k } = Ot({
5448
5448
  isDisabled: a || !v,
5449
5449
  onHoverStart() {
@@ -5455,8 +5455,8 @@ function Qp(t, e, n) {
5455
5455
  return {
5456
5456
  optionProps: {
5457
5457
  ...S,
5458
- ...U(O, M, k, h),
5459
- id: R
5458
+ ...G(O, M, k, h),
5459
+ id: F
5460
5460
  },
5461
5461
  labelProps: {
5462
5462
  id: C
@@ -5721,7 +5721,7 @@ function va(t, e, n) {
5721
5721
  onAction: t.onAction,
5722
5722
  shouldUseVirtualFocus: t.shouldUseVirtualFocus
5723
5723
  }), {
5724
- menuProps: U(u, {
5724
+ menuProps: G(u, {
5725
5725
  onKeyDown: l,
5726
5726
  onKeyUp: i
5727
5727
  }, {
@@ -5735,9 +5735,9 @@ function va(t, e, n) {
5735
5735
  };
5736
5736
  }
5737
5737
  function ha(t, e, n) {
5738
- let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": u, onPressStart: a, onPressUp: s, onPress: d, onPressChange: c, onPressEnd: f, onHoverStart: p, onHoverChange: v, onHoverEnd: g, onKeyDown: x, onKeyUp: $, onFocus: E, onFocusChange: C, onBlur: T, selectionManager: S = e.selectionManager } = t, w = !!u, F = w && t["aria-expanded"] === "true";
5739
- var R;
5740
- let M = (R = t.isDisabled) !== null && R !== void 0 ? R : S.isDisabled(l);
5738
+ let { id: r, key: l, closeOnSelect: i, isVirtualized: o, "aria-haspopup": u, onPressStart: a, onPressUp: s, onPress: d, onPressChange: c, onPressEnd: f, onHoverStart: p, onHoverChange: v, onHoverEnd: g, onKeyDown: x, onKeyUp: $, onFocus: E, onFocusChange: C, onBlur: T, selectionManager: S = e.selectionManager } = t, w = !!u, R = w && t["aria-expanded"] === "true";
5739
+ var F;
5740
+ let M = (F = t.isDisabled) !== null && F !== void 0 ? F : S.isDisabled(l);
5741
5741
  var A;
5742
5742
  let b = (A = t.isSelected) !== null && A !== void 0 ? A : S.isSelected(l), N = pa.get(e), _ = e.collection.getItem(l), k = t.onClose || N.onClose, O = sn(), h = (re) => {
5743
5743
  var Ze;
@@ -5796,11 +5796,11 @@ function ha(t, e, n) {
5796
5796
  }), { hoverProps: He } = Ot({
5797
5797
  isDisabled: M,
5798
5798
  onHoverStart(re) {
5799
- !pt() && !(F && u) && (S.setFocused(!0), S.setFocusedKey(l)), p == null || p(re);
5799
+ !pt() && !(R && u) && (S.setFocused(!0), S.setFocusedKey(l)), p == null || p(re);
5800
5800
  },
5801
5801
  onHoverChange: v,
5802
5802
  onHoverEnd: g
5803
- }), { keyboardProps: V } = yo({
5803
+ }), { keyboardProps: H } = yo({
5804
5804
  onKeyDown: (re) => {
5805
5805
  if (re.repeat) {
5806
5806
  re.continuePropagation();
@@ -5829,7 +5829,7 @@ function ha(t, e, n) {
5829
5829
  return {
5830
5830
  menuItemProps: {
5831
5831
  ...J,
5832
- ...U(
5832
+ ...G(
5833
5833
  Ie,
5834
5834
  kt,
5835
5835
  w ? {
@@ -5839,7 +5839,7 @@ function ha(t, e, n) {
5839
5839
  } : we,
5840
5840
  Ve,
5841
5841
  He,
5842
- V,
5842
+ H,
5843
5843
  Ne,
5844
5844
  // Prevent DOM focus from moving on mouse down when using virtual focus or this is a submenu/subdialog trigger.
5845
5845
  N.shouldUseVirtualFocus || w ? {
@@ -5847,7 +5847,7 @@ function ha(t, e, n) {
5847
5847
  } : void 0
5848
5848
  ),
5849
5849
  // If a submenu is expanded, set the tabIndex to -1 so that shift tabbing goes out of the menu instead of the parent menu item.
5850
- tabIndex: we.tabIndex != null && F && !N.shouldUseVirtualFocus ? -1 : we.tabIndex
5850
+ tabIndex: we.tabIndex != null && R && !N.shouldUseVirtualFocus ? -1 : we.tabIndex
5851
5851
  },
5852
5852
  labelProps: {
5853
5853
  id: P
@@ -5859,7 +5859,7 @@ function ha(t, e, n) {
5859
5859
  id: Z
5860
5860
  },
5861
5861
  isFocused: ze,
5862
- isFocusVisible: ze && S.isFocused && pt() && !F,
5862
+ isFocusVisible: ze && S.isFocused && pt() && !R,
5863
5863
  isSelected: b,
5864
5864
  isPressed: Xe,
5865
5865
  isDisabled: M
@@ -5887,7 +5887,7 @@ function tv(t) {
5887
5887
  }
5888
5888
  const Sn = 2, nv = 50, rv = 1e3, ki = Math.PI / 12;
5889
5889
  function lv(t) {
5890
- let { menuRef: e, submenuRef: n, isOpen: r, isDisabled: l } = t, i = B(void 0), o = B(void 0), u = B(0), a = B(void 0), s = B(void 0), d = B(void 0), c = B(2), [f, p] = H(!1);
5890
+ let { menuRef: e, submenuRef: n, isOpen: r, isDisabled: l } = t, i = B(void 0), o = B(void 0), u = B(0), a = B(void 0), s = B(void 0), d = B(void 0), c = B(2), [f, p] = V(!1);
5891
5891
  Tn({
5892
5892
  ref: n,
5893
5893
  onResize: () => {
@@ -5916,26 +5916,26 @@ function lv(t) {
5916
5916
  let w = Date.now();
5917
5917
  if (w - u.current < nv) return;
5918
5918
  clearTimeout(a.current), clearTimeout(s.current);
5919
- let { clientX: F, clientY: R } = S;
5919
+ let { clientX: R, clientY: F } = S;
5920
5920
  if (!i.current) {
5921
5921
  i.current = {
5922
- x: F,
5923
- y: R
5922
+ x: R,
5923
+ y: F
5924
5924
  };
5925
5925
  return;
5926
5926
  }
5927
5927
  if (!o.current) return;
5928
- if (d.current || (d.current = F > o.current.right ? "left" : "right"), F < C.getBoundingClientRect().left || F > C.getBoundingClientRect().right || R < C.getBoundingClientRect().top || R > C.getBoundingClientRect().bottom) {
5928
+ if (d.current || (d.current = R > o.current.right ? "left" : "right"), R < C.getBoundingClientRect().left || R > C.getBoundingClientRect().right || F < C.getBoundingClientRect().top || F > C.getBoundingClientRect().bottom) {
5929
5929
  g();
5930
5930
  return;
5931
5931
  }
5932
- let M = i.current.x, A = i.current.y, b = d.current === "right" ? o.current.left - M : M - o.current.right, N = Math.atan2(A - o.current.top, b) + ki, _ = Math.atan2(A - o.current.bottom, b) - ki, k = Math.atan2(A - R, d.current === "left" ? -(F - M) : F - M), O = k < N && k > _;
5932
+ let M = i.current.x, A = i.current.y, b = d.current === "right" ? o.current.left - M : M - o.current.right, N = Math.atan2(A - o.current.top, b) + ki, _ = Math.atan2(A - o.current.bottom, b) - ki, k = Math.atan2(A - F, d.current === "left" ? -(R - M) : R - M), O = k < N && k > _;
5933
5933
  c.current = O ? Math.min(c.current + 1, Sn) : Math.max(c.current - 1, 0), c.current >= Sn ? p(!0) : p(!1), u.current = w, i.current = {
5934
- x: F,
5935
- y: R
5934
+ x: R,
5935
+ y: F
5936
5936
  }, O && (a.current = setTimeout(() => {
5937
5937
  g(), s.current = setTimeout(() => {
5938
- let h = document.elementFromPoint(F, R);
5938
+ let h = document.elementFromPoint(R, F);
5939
5939
  h && C.contains(h) && h.dispatchEvent(new PointerEvent("pointerover", {
5940
5940
  bubbles: !0,
5941
5941
  cancelable: !0
@@ -6016,10 +6016,10 @@ function iv(t, e, n) {
6016
6016
  o || (M && !e.isOpen ? f.current || (f.current = setTimeout(() => {
6017
6017
  v();
6018
6018
  }, u)) : M || p());
6019
- }, F = (M) => {
6019
+ }, R = (M) => {
6020
6020
  var A;
6021
6021
  e.isOpen && (!((A = r.current) === null || A === void 0) && A.contains(M.relatedTarget)) && g();
6022
- }, R = (M) => M !== n.current;
6022
+ }, F = (M) => M !== n.current;
6023
6023
  return lv({
6024
6024
  menuRef: r,
6025
6025
  submenuRef: l,
@@ -6035,13 +6035,13 @@ function iv(t, e, n) {
6035
6035
  onPress: S,
6036
6036
  onHoverChange: w,
6037
6037
  onKeyDown: C,
6038
- onBlur: F,
6038
+ onBlur: R,
6039
6039
  isOpen: e.isOpen
6040
6040
  },
6041
6041
  submenuProps: E,
6042
6042
  popoverProps: {
6043
6043
  isNonModal: !0,
6044
- shouldCloseOnInteractOutside: R
6044
+ shouldCloseOnInteractOutside: F
6045
6045
  }
6046
6046
  };
6047
6047
  }
@@ -6850,7 +6850,7 @@ function sv(t) {
6850
6850
  return t && t.__esModule ? t.default : t;
6851
6851
  }
6852
6852
  function cv(t) {
6853
- let e = Pt(sv(bl), "@react-aria/grid"), n = go(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window, l = G(() => {
6853
+ let e = Pt(sv(bl), "@react-aria/grid"), n = go(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window, l = W(() => {
6854
6854
  let o = t.selectionManager.selectionMode, u = t.selectionManager.selectionBehavior, a;
6855
6855
  return r && (a = e.format("longPressToSelect")), u === "replace" && o !== "none" && t.hasItemActions ? a : void 0;
6856
6856
  }, [
@@ -6868,7 +6868,7 @@ function dv(t, e, n) {
6868
6868
  let p = Zn({
6869
6869
  usage: "search",
6870
6870
  sensitivity: "base"
6871
- }), { direction: v } = je(), g = e.selectionManager.disabledBehavior, x = G(() => i || new ma({
6871
+ }), { direction: v } = je(), g = e.selectionManager.disabledBehavior, x = W(() => i || new ma({
6872
6872
  collection: e.collection,
6873
6873
  disabledKeys: e.disabledKeys,
6874
6874
  disabledBehavior: g,
@@ -6914,15 +6914,15 @@ function dv(t, e, n) {
6914
6914
  M.currentTarget.contains(M.target) && f.setFocused(!0);
6915
6915
  }, [
6916
6916
  f
6917
- ]), w = G(() => ({
6917
+ ]), w = W(() => ({
6918
6918
  onBlur: $.onBlur,
6919
6919
  onFocus: S
6920
6920
  }), [
6921
6921
  S,
6922
6922
  $.onBlur
6923
- ]), F = up(n, {
6923
+ ]), R = up(n, {
6924
6924
  isDisabled: e.collection.size !== 0
6925
- }), R = U(
6925
+ }), F = G(
6926
6926
  T,
6927
6927
  {
6928
6928
  role: "grid",
@@ -6932,14 +6932,14 @@ function dv(t, e, n) {
6932
6932
  e.isKeyboardNavigationDisabled ? w : $,
6933
6933
  // If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
6934
6934
  e.collection.size === 0 && {
6935
- tabIndex: F ? -1 : 0
6935
+ tabIndex: R ? -1 : 0
6936
6936
  } || void 0,
6937
6937
  C
6938
6938
  );
6939
- return r && (R["aria-rowcount"] = e.collection.size, R["aria-colcount"] = e.collection.columnCount), av({
6939
+ return r && (F["aria-rowcount"] = e.collection.size, F["aria-colcount"] = e.collection.columnCount), av({
6940
6940
  getRowText: a
6941
6941
  }, e), {
6942
- gridProps: R
6942
+ gridProps: F
6943
6943
  };
6944
6944
  }
6945
6945
  function fv() {
@@ -7028,10 +7028,10 @@ function Ja(t, e, n) {
7028
7028
  containingElement: ot(n.current)
7029
7029
  });
7030
7030
  else {
7031
- var F;
7032
- if (((F = s.getKeyRightOf) === null || F === void 0 ? void 0 : F.call(s, r.key)) !== r.key) {
7033
- var R;
7034
- (R = n.current.parentElement) === null || R === void 0 || R.dispatchEvent(new KeyboardEvent(C.nativeEvent.type, C.nativeEvent));
7031
+ var R;
7032
+ if (((R = s.getKeyRightOf) === null || R === void 0 ? void 0 : R.call(s, r.key)) !== r.key) {
7033
+ var F;
7034
+ (F = n.current.parentElement) === null || F === void 0 || F.dispatchEvent(new KeyboardEvent(C.nativeEvent.type, C.nativeEvent));
7035
7035
  break;
7036
7036
  }
7037
7037
  i === "cell" && a === "ltr" ? (Ee(n.current), ut(n.current, {
@@ -7058,7 +7058,7 @@ function Ja(t, e, n) {
7058
7058
  requestAnimationFrame(() => {
7059
7059
  i === "child" && document.activeElement === n.current && f();
7060
7060
  });
7061
- }, $ = U(p, {
7061
+ }, $ = G(p, {
7062
7062
  role: "gridcell",
7063
7063
  onKeyDownCapture: g,
7064
7064
  "aria-colspan": r.colSpan,
@@ -7206,36 +7206,36 @@ function mv(t, e, n) {
7206
7206
  const u = t.isDisabled || e.isDisabled;
7207
7207
  let a = l != null, s = i != null || o != null;
7208
7208
  !a && !s && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
7209
- let d = e.selectedValue === r, c = (R) => {
7210
- R.stopPropagation(), e.setSelectedValue(r);
7209
+ let d = e.selectedValue === r, c = (F) => {
7210
+ F.stopPropagation(), e.setSelectedValue(r);
7211
7211
  }, { pressProps: f, isPressed: p } = Ye({
7212
7212
  isDisabled: u
7213
7213
  }), { pressProps: v, isPressed: g } = Ye({
7214
7214
  isDisabled: u,
7215
7215
  onPress() {
7216
- var R;
7217
- e.setSelectedValue(r), (R = n.current) === null || R === void 0 || R.focus();
7216
+ var F;
7217
+ e.setSelectedValue(r), (F = n.current) === null || F === void 0 || F.focus();
7218
7218
  }
7219
- }), { focusableProps: x } = wt(U(t, {
7219
+ }), { focusableProps: x } = wt(G(t, {
7220
7220
  onFocus: () => e.setLastFocusedValue(r)
7221
- }), n), $ = U(f, x), E = ye(t, {
7221
+ }), n), $ = G(f, x), E = ye(t, {
7222
7222
  labelable: !0
7223
7223
  }), C = -1;
7224
7224
  e.selectedValue != null ? e.selectedValue === r && (C = 0) : (e.lastFocusedValue === r || e.lastFocusedValue == null) && (C = 0), u && (C = void 0);
7225
- let { name: T, descriptionId: S, errorMessageId: w, validationBehavior: F } = Qa.get(e);
7225
+ let { name: T, descriptionId: S, errorMessageId: w, validationBehavior: R } = Qa.get(e);
7226
7226
  return Yn(n, e.selectedValue, e.setSelectedValue), al({
7227
- validationBehavior: F
7227
+ validationBehavior: R
7228
7228
  }, e, n), {
7229
- labelProps: U(v, {
7230
- onClick: (R) => R.preventDefault()
7229
+ labelProps: G(v, {
7230
+ onClick: (F) => F.preventDefault()
7231
7231
  }),
7232
- inputProps: U(E, {
7232
+ inputProps: G(E, {
7233
7233
  ...$,
7234
7234
  type: "radio",
7235
7235
  name: T,
7236
7236
  tabIndex: C,
7237
7237
  disabled: u,
7238
- required: e.isRequired && F === "native",
7238
+ required: e.isRequired && R === "native",
7239
7239
  checked: d,
7240
7240
  value: r,
7241
7241
  onChange: c,
@@ -7288,8 +7288,8 @@ function gv(t, e) {
7288
7288
  T.preventDefault();
7289
7289
  let w = Be(T.currentTarget, {
7290
7290
  from: T.target
7291
- }), F;
7292
- S === "next" ? (F = w.nextNode(), F || (w.currentNode = T.currentTarget, F = w.firstChild())) : (F = w.previousNode(), F || (w.currentNode = T.currentTarget, F = w.lastChild())), F && (F.focus(), e.setSelectedValue(F.value));
7291
+ }), R;
7292
+ S === "next" ? (R = w.nextNode(), R || (w.currentNode = T.currentTarget, R = w.firstChild())) : (R = w.previousNode(), R || (w.currentNode = T.currentTarget, R = w.lastChild())), R && (R.focus(), e.setSelectedValue(R.value));
7293
7293
  }, C = be(n);
7294
7294
  return Qa.set(e, {
7295
7295
  name: C,
@@ -7297,7 +7297,7 @@ function gv(t, e) {
7297
7297
  errorMessageId: g.id,
7298
7298
  validationBehavior: u
7299
7299
  }), {
7300
- radioGroupProps: U(x, {
7300
+ radioGroupProps: G(x, {
7301
7301
  // https://www.w3.org/TR/wai-aria-1.2/#radiogroup
7302
7302
  role: "radiogroup",
7303
7303
  onKeyDown: E,
@@ -7535,7 +7535,7 @@ function xv(t, e, n) {
7535
7535
  let { keyboardDelegate: r, isDisabled: l, isRequired: i, name: o, validationBehavior: u = "aria" } = t, a = Zn({
7536
7536
  usage: "search",
7537
7537
  sensitivity: "base"
7538
- }), s = G(() => r || new Pu(e.collection, e.disabledKeys, n, a), [
7538
+ }), s = W(() => r || new Pu(e.collection, e.disabledKeys, n, a), [
7539
7539
  r,
7540
7540
  e.collection,
7541
7541
  e.disabledKeys,
@@ -7544,18 +7544,18 @@ function xv(t, e, n) {
7544
7544
  ]), { menuTriggerProps: d, menuProps: c } = vl({
7545
7545
  isDisabled: l,
7546
7546
  type: "listbox"
7547
- }, e, n), f = (R) => {
7548
- switch (R.key) {
7547
+ }, e, n), f = (F) => {
7548
+ switch (F.key) {
7549
7549
  case "ArrowLeft": {
7550
7550
  var M, A;
7551
- R.preventDefault();
7551
+ F.preventDefault();
7552
7552
  let _ = e.selectedKey != null ? (M = s.getKeyAbove) === null || M === void 0 ? void 0 : M.call(s, e.selectedKey) : (A = s.getFirstKey) === null || A === void 0 ? void 0 : A.call(s);
7553
7553
  _ && e.setSelectedKey(_);
7554
7554
  break;
7555
7555
  }
7556
7556
  case "ArrowRight": {
7557
7557
  var b, N;
7558
- R.preventDefault();
7558
+ F.preventDefault();
7559
7559
  let _ = e.selectedKey != null ? (b = s.getKeyBelow) === null || b === void 0 ? void 0 : b.call(s, e.selectedKey) : (N = s.getFirstKey) === null || N === void 0 ? void 0 : N.call(s);
7560
7560
  _ && e.setSelectedKey(_);
7561
7561
  break;
@@ -7564,8 +7564,8 @@ function xv(t, e, n) {
7564
7564
  }, { typeSelectProps: p } = Cu({
7565
7565
  keyboardDelegate: s,
7566
7566
  selectionManager: e.selectionManager,
7567
- onTypeSelect(R) {
7568
- e.setSelectedKey(R);
7567
+ onTypeSelect(F) {
7568
+ e.setSelectedKey(F);
7569
7569
  }
7570
7570
  }), { isInvalid: v, validationErrors: g, validationDetails: x } = e.displayValidation, { labelProps: $, fieldProps: E, descriptionProps: C, errorMessageProps: T } = sl({
7571
7571
  ...t,
@@ -7576,7 +7576,7 @@ function xv(t, e, n) {
7576
7576
  p.onKeyDown = p.onKeyDownCapture, delete p.onKeyDownCapture;
7577
7577
  let S = ye(t, {
7578
7578
  labelable: !0
7579
- }), w = U(p, d, E), F = be();
7579
+ }), w = G(p, d, E), R = be();
7580
7580
  return Is.set(e, {
7581
7581
  isDisabled: l,
7582
7582
  isRequired: i,
@@ -7587,30 +7587,30 @@ function xv(t, e, n) {
7587
7587
  ...$,
7588
7588
  onClick: () => {
7589
7589
  if (!t.isDisabled) {
7590
- var R;
7591
- (R = n.current) === null || R === void 0 || R.focus(), mo("keyboard");
7590
+ var F;
7591
+ (F = n.current) === null || F === void 0 || F.focus(), mo("keyboard");
7592
7592
  }
7593
7593
  }
7594
7594
  },
7595
- triggerProps: U(S, {
7595
+ triggerProps: G(S, {
7596
7596
  ...w,
7597
7597
  isDisabled: l,
7598
7598
  onKeyDown: nt(w.onKeyDown, f, t.onKeyDown),
7599
7599
  onKeyUp: t.onKeyUp,
7600
7600
  "aria-labelledby": [
7601
- F,
7601
+ R,
7602
7602
  w["aria-labelledby"],
7603
7603
  w["aria-label"] && !w["aria-labelledby"] ? w.id : null
7604
7604
  ].filter(Boolean).join(" "),
7605
- onFocus(R) {
7606
- e.isFocused || (t.onFocus && t.onFocus(R), t.onFocusChange && t.onFocusChange(!0), e.setFocused(!0));
7605
+ onFocus(F) {
7606
+ e.isFocused || (t.onFocus && t.onFocus(F), t.onFocusChange && t.onFocusChange(!0), e.setFocused(!0));
7607
7607
  },
7608
- onBlur(R) {
7609
- e.isOpen || (t.onBlur && t.onBlur(R), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
7608
+ onBlur(F) {
7609
+ e.isOpen || (t.onBlur && t.onBlur(F), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
7610
7610
  }
7611
7611
  }),
7612
7612
  valueProps: {
7613
- id: F
7613
+ id: R
7614
7614
  },
7615
7615
  menuProps: {
7616
7616
  ...c,
@@ -7619,8 +7619,8 @@ function xv(t, e, n) {
7619
7619
  shouldFocusOnHover: !0,
7620
7620
  disallowEmptySelection: !0,
7621
7621
  linkBehavior: "selection",
7622
- onBlur: (R) => {
7623
- R.currentTarget.contains(R.relatedTarget) || (t.onBlur && t.onBlur(R), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
7622
+ onBlur: (F) => {
7623
+ F.currentTarget.contains(F.relatedTarget) || (t.onBlur && t.onBlur(F), t.onFocusChange && t.onFocusChange(!1), e.setFocused(!1));
7624
7624
  },
7625
7625
  "aria-labelledby": [
7626
7626
  E["aria-labelledby"],
@@ -8266,7 +8266,7 @@ function Tv(t, e, n) {
8266
8266
  let { keyboardDelegate: r, isVirtualized: l, layoutDelegate: i, layout: o } = t, u = Zn({
8267
8267
  usage: "search",
8268
8268
  sensitivity: "base"
8269
- }), { direction: a } = je(), s = e.selectionManager.disabledBehavior, d = G(() => r || new Dv({
8269
+ }), { direction: a } = je(), s = e.selectionManager.disabledBehavior, d = W(() => r || new Dv({
8270
8270
  collection: e.collection,
8271
8271
  disabledKeys: e.disabledKeys,
8272
8272
  disabledBehavior: s,
@@ -8293,7 +8293,7 @@ function Tv(t, e, n) {
8293
8293
  keyboardDelegate: d
8294
8294
  }, e, n);
8295
8295
  l && (f["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), kn() && "expandedKeys" in e && (f.role = "treegrid");
8296
- let { column: p, direction: v } = e.sortDescriptor || {}, g = Pt(kv(gl), "@react-aria/table"), x = G(() => {
8296
+ let { column: p, direction: v } = e.sortDescriptor || {}, g = Pt(kv(gl), "@react-aria/table"), x = W(() => {
8297
8297
  var E, C;
8298
8298
  let T = (C = (E = e.collection.columns.find((S) => S.key === p)) === null || E === void 0 ? void 0 : E.textValue) !== null && C !== void 0 ? C : "";
8299
8299
  return v && p ? g.format(`${v}Sort`, {
@@ -8309,7 +8309,7 @@ function Tv(t, e, n) {
8309
8309
  }, [
8310
8310
  x
8311
8311
  ]), {
8312
- gridProps: U(f, $, {
8312
+ gridProps: G(f, $, {
8313
8313
  // merge sort description with long press information
8314
8314
  "aria-describedby": [
8315
8315
  $["aria-describedby"],
@@ -8345,7 +8345,7 @@ function Bv(t, e, n) {
8345
8345
  i.key
8346
8346
  ]), {
8347
8347
  columnHeaderProps: {
8348
- ...U(
8348
+ ...G(
8349
8349
  d,
8350
8350
  u,
8351
8351
  s,
@@ -8383,8 +8383,8 @@ function Kv(t, e, n) {
8383
8383
  let w = ((s = S.props) === null || s === void 0 ? void 0 : s.UNSTABLE_childItems) || ((c = S.props) === null || c === void 0 || (d = c.children) === null || d === void 0 ? void 0 : d.length) > e.userColumnCount;
8384
8384
  var g, x, $, E;
8385
8385
  a = {
8386
- onKeyDown: (F) => {
8387
- (F.key === Ki.expand[u] && e.selectionManager.focusedKey === S.key && w && e.expandedKeys !== "all" && !e.expandedKeys.has(S.key) || F.key === Ki.collapse[u] && e.selectionManager.focusedKey === S.key && w && (e.expandedKeys === "all" || e.expandedKeys.has(S.key))) && (e.toggleKey(S.key), F.stopPropagation());
8386
+ onKeyDown: (R) => {
8387
+ (R.key === Ki.expand[u] && e.selectionManager.focusedKey === S.key && w && e.expandedKeys !== "all" && !e.expandedKeys.has(S.key) || R.key === Ki.collapse[u] && e.selectionManager.focusedKey === S.key && w && (e.expandedKeys === "all" || e.expandedKeys.has(S.key))) && (e.toggleKey(S.key), R.stopPropagation());
8388
8388
  },
8389
8389
  "aria-expanded": w ? e.expandedKeys === "all" || e.expandedKeys.has(r.key) : void 0,
8390
8390
  "aria-level": S.level,
@@ -8396,7 +8396,7 @@ function Kv(t, e, n) {
8396
8396
  let C = lf(r.props), T = o.hasAction ? C : {};
8397
8397
  return {
8398
8398
  rowProps: {
8399
- ...U(i, a, T),
8399
+ ...G(i, a, T),
8400
8400
  "aria-labelledby": Pv(e, r.key)
8401
8401
  },
8402
8402
  ...o
@@ -8429,7 +8429,7 @@ function Rv(t, e) {
8429
8429
  onHoverEnd: () => e == null ? void 0 : e.close()
8430
8430
  });
8431
8431
  return {
8432
- tooltipProps: U(n, r, {
8432
+ tooltipProps: G(n, r, {
8433
8433
  role: "tooltip"
8434
8434
  })
8435
8435
  };
@@ -8474,7 +8474,7 @@ function Fv(t, e, n) {
8474
8474
  return {
8475
8475
  triggerProps: {
8476
8476
  "aria-describedby": e.isOpen ? i : void 0,
8477
- ...U(x, g, {
8477
+ ...G(x, g, {
8478
8478
  onPointerDown: f,
8479
8479
  onKeyDown: f,
8480
8480
  tabIndex: void 0
@@ -8550,13 +8550,13 @@ function _v(t, e) {
8550
8550
  return !0;
8551
8551
  }
8552
8552
  function er(t) {
8553
- let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: l = "toggle", disabledBehavior: i = "all" } = t, o = B(!1), [, u] = H(!1), a = B(null), s = B(null), [, d] = H(null), c = G(() => Ni(t.selectedKeys), [
8553
+ let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: l = "toggle", disabledBehavior: i = "all" } = t, o = B(!1), [, u] = V(!1), a = B(null), s = B(null), [, d] = V(null), c = W(() => Ni(t.selectedKeys), [
8554
8554
  t.selectedKeys
8555
- ]), f = G(() => Ni(t.defaultSelectedKeys, new Oe()), [
8555
+ ]), f = W(() => Ni(t.defaultSelectedKeys, new Oe()), [
8556
8556
  t.defaultSelectedKeys
8557
- ]), [p, v] = vt(c, f, t.onSelectionChange), g = G(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8557
+ ]), [p, v] = vt(c, f, t.onSelectionChange), g = W(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8558
8558
  t.disabledKeys
8559
- ]), [x, $] = H(l);
8559
+ ]), [x, $] = V(l);
8560
8560
  l === "replace" && x === "toggle" && typeof p == "object" && p.size === 0 && $("replace");
8561
8561
  let E = B(l);
8562
8562
  return z(() => {
@@ -8874,15 +8874,15 @@ class jt {
8874
8874
  }
8875
8875
  }
8876
8876
  function Lv(t) {
8877
- let { filter: e, layoutDelegate: n } = t, r = er(t), l = G(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8877
+ let { filter: e, layoutDelegate: n } = t, r = er(t), l = W(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
8878
8878
  t.disabledKeys
8879
8879
  ]), i = ee((s) => e ? new Mi(e(s)) : new Mi(s), [
8880
8880
  e
8881
- ]), o = G(() => ({
8881
+ ]), o = W(() => ({
8882
8882
  suppressTextValueWarning: t.suppressTextValueWarning
8883
8883
  }), [
8884
8884
  t.suppressTextValueWarning
8885
- ]), u = pl(t, i, o), a = G(() => new jt(u, r, {
8885
+ ]), u = pl(t, i, o), a = W(() => new jt(u, r, {
8886
8886
  layoutDelegate: n
8887
8887
  }), [
8888
8888
  u,
@@ -8936,7 +8936,7 @@ function Ov(t, e) {
8936
8936
  }
8937
8937
  function jv(t) {
8938
8938
  var e;
8939
- let [n, r] = vt(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), l = G(() => n != null ? [
8939
+ let [n, r] = vt(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), l = W(() => n != null ? [
8940
8940
  n
8941
8941
  ] : [], [
8942
8942
  n
@@ -8987,7 +8987,7 @@ function zt(t) {
8987
8987
  };
8988
8988
  }
8989
8989
  function yl(t) {
8990
- let e = zt(t), [n, r] = H(null), [l, i] = H([]), o = () => {
8990
+ let e = zt(t), [n, r] = V(null), [l, i] = V([]), o = () => {
8991
8991
  i([]), e.close();
8992
8992
  };
8993
8993
  return {
@@ -9015,11 +9015,11 @@ function yl(t) {
9015
9015
  };
9016
9016
  }
9017
9017
  function zv(t, e) {
9018
- let { triggerKey: n } = t, { expandedKeysStack: r, openSubmenu: l, closeSubmenu: i, close: o } = e, [u] = H(r == null ? void 0 : r.length), a = G(() => r[u] === n, [
9018
+ let { triggerKey: n } = t, { expandedKeysStack: r, openSubmenu: l, closeSubmenu: i, close: o } = e, [u] = V(r == null ? void 0 : r.length), a = W(() => r[u] === n, [
9019
9019
  r,
9020
9020
  n,
9021
9021
  u
9022
- ]), [s, d] = H(null), c = ee((v) => {
9022
+ ]), [s, d] = V(null), c = ee((v) => {
9023
9023
  d(v ?? null), l(n, u);
9024
9024
  }, [
9025
9025
  l,
@@ -9038,7 +9038,7 @@ function zv(t, e) {
9038
9038
  c,
9039
9039
  a
9040
9040
  ]);
9041
- return G(() => ({
9041
+ return W(() => ({
9042
9042
  focusStrategy: s,
9043
9043
  isOpen: a,
9044
9044
  open: c,
@@ -9062,11 +9062,11 @@ function zv(t, e) {
9062
9062
  }
9063
9063
  let Vv = Math.round(Math.random() * 1e10), Hv = 0;
9064
9064
  function Wv(t) {
9065
- let e = G(() => t.name || `radio-group-${Vv}-${++Hv}`, [
9065
+ let e = W(() => t.name || `radio-group-${Vv}-${++Hv}`, [
9066
9066
  t.name
9067
9067
  ]);
9068
9068
  var n;
9069
- let [r, l] = vt(t.value, (n = t.defaultValue) !== null && n !== void 0 ? n : null, t.onChange), [i, o] = H(null), u = ul({
9069
+ let [r, l] = vt(t.value, (n = t.defaultValue) !== null && n !== void 0 ? n : null, t.onChange), [i, o] = V(null), u = ul({
9070
9070
  ...t,
9071
9071
  value: r
9072
9072
  }), a = (d) => {
@@ -9098,7 +9098,7 @@ function Ii(t) {
9098
9098
  return t.toString();
9099
9099
  }
9100
9100
  function Gv(t) {
9101
- let e = zt(t), [n, r] = H(null), l = jv({
9101
+ let e = zt(t), [n, r] = V(null), l = jv({
9102
9102
  ...t,
9103
9103
  onSelectionChange: (a) => {
9104
9104
  t.onSelectionChange != null && t.onSelectionChange(a), e.close(), i.commitValidation();
@@ -9106,7 +9106,7 @@ function Gv(t) {
9106
9106
  }), i = ul({
9107
9107
  ...t,
9108
9108
  value: l.selectedKey
9109
- }), [o, u] = H(!1);
9109
+ }), [o, u] = V(!1);
9110
9110
  return {
9111
9111
  ...i,
9112
9112
  ...l,
@@ -9123,7 +9123,7 @@ function Gv(t) {
9123
9123
  };
9124
9124
  }
9125
9125
  function Yv(t) {
9126
- let { collection: e, focusMode: n } = t, r = t.UNSAFE_selectionState || er(t), l = G(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
9126
+ let { collection: e, focusMode: n } = t, r = t.UNSAFE_selectionState || er(t), l = W(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
9127
9127
  t.disabledKeys
9128
9128
  ]), i = r.setFocusedKey;
9129
9129
  r.setFocusedKey = (a, s) => {
@@ -9138,7 +9138,7 @@ function Yv(t) {
9138
9138
  }
9139
9139
  i(a, s);
9140
9140
  };
9141
- let o = G(() => new jt(e, r), [
9141
+ let o = W(() => new jt(e, r), [
9142
9142
  e,
9143
9143
  r
9144
9144
  ]);
@@ -9505,7 +9505,7 @@ const Jv = {
9505
9505
  descending: "ascending"
9506
9506
  };
9507
9507
  function Qv(t) {
9508
- let [e, n] = H(!1), { selectionMode: r = "none", showSelectionCheckboxes: l, showDragButtons: i } = t, o = G(() => ({
9508
+ let [e, n] = V(!1), { selectionMode: r = "none", showSelectionCheckboxes: l, showDragButtons: i } = t, o = W(() => ({
9509
9509
  showSelectionCheckboxes: l && r !== "none",
9510
9510
  showDragButtons: i,
9511
9511
  selectionMode: r,
@@ -9708,7 +9708,7 @@ let r0 = xc;
9708
9708
  const l0 = 1500, Ri = 500;
9709
9709
  let gt = {}, i0 = 0, Xt = !1, Je = null, yt = null;
9710
9710
  function Ec(t = {}) {
9711
- let { delay: e = l0, closeDelay: n = Ri } = t, { isOpen: r, open: l, close: i } = zt(t), o = G(() => `${++i0}`, []), u = B(null), a = B(i), s = () => {
9711
+ let { delay: e = l0, closeDelay: n = Ri } = t, { isOpen: r, open: l, close: i } = zt(t), o = W(() => `${++i0}`, []), u = B(null), a = B(i), s = () => {
9712
9712
  gt[o] = f;
9713
9713
  }, d = () => {
9714
9714
  for (let v in gt) v !== o && (gt[v](!0), delete gt[v]);
@@ -9791,7 +9791,7 @@ class o0 {
9791
9791
  }
9792
9792
  }
9793
9793
  function Sc(t) {
9794
- let { onExpandedChange: e } = t, [n, r] = vt(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), l = er(t), i = G(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
9794
+ let { onExpandedChange: e } = t, [n, r] = vt(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), l = er(t), i = W(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
9795
9795
  t.disabledKeys
9796
9796
  ]), o = pl(t, ee((a) => new o0(a, {
9797
9797
  expandedKeys: n
@@ -9832,7 +9832,7 @@ const Cc = ne(void 0), Me = () => {
9832
9832
  children: e,
9833
9833
  palette: n = Ed
9834
9834
  }) => {
9835
- const r = B(null), l = a0[t], i = G(
9835
+ const r = B(null), l = a0[t], i = W(
9836
9836
  () => d0(n, t),
9837
9837
  [n, t]
9838
9838
  );
@@ -9975,7 +9975,7 @@ const pn = Ke(
9975
9975
  zl(() => {
9976
9976
  typeof f == "function" ? f($.current) : f && (f.current = $.current);
9977
9977
  }, [f]);
9978
- const C = B(null), T = B(null), S = !!r, w = !!(l && v), [F, R] = H(
9978
+ const C = B(null), T = B(null), S = !!r, w = !!(l && v), [R, F] = V(
9979
9979
  {}
9980
9980
  );
9981
9981
  return zl(() => {
@@ -9990,13 +9990,13 @@ const pn = Ke(
9990
9990
  const _ = (N = T.current) == null ? void 0 : N.offsetWidth;
9991
9991
  M.paddingRight = _, A += _ / 2;
9992
9992
  }
9993
- c && (A += c), A !== 0 && (M.transform = `translateX(${A}px)`), R(M);
9993
+ c && (A += c), A !== 0 && (M.transform = `translateX(${A}px)`), F(M);
9994
9994
  }, [d, S, w, c, n]), /* @__PURE__ */ m.jsxs(
9995
9995
  p,
9996
9996
  {
9997
9997
  ...E,
9998
9998
  ...g,
9999
- className: W(
9999
+ className: U(
10000
10000
  "proton-Button",
10001
10001
  `proton-Button--${t}`,
10002
10002
  n && "proton-Button--fullWidth",
@@ -10010,7 +10010,7 @@ const pn = Ke(
10010
10010
  S && /* @__PURE__ */ m.jsx(
10011
10011
  "div",
10012
10012
  {
10013
- className: W(
10013
+ className: U(
10014
10014
  "proton-Button__icon-decorator",
10015
10015
  "proton-Button__icon-decorator--prepend",
10016
10016
  n && "proton-Button__icon-decorator--fullWidth"
@@ -10019,11 +10019,11 @@ const pn = Ke(
10019
10019
  children: r
10020
10020
  }
10021
10021
  ),
10022
- d && /* @__PURE__ */ m.jsx("div", { className: "proton-Button__text", style: F, children: d }),
10022
+ d && /* @__PURE__ */ m.jsx("div", { className: "proton-Button__text", style: R, children: d }),
10023
10023
  w && /* @__PURE__ */ m.jsx(
10024
10024
  "div",
10025
10025
  {
10026
- className: W(
10026
+ className: U(
10027
10027
  "proton-Button__icon-decorator",
10028
10028
  "proton-Button__icon-decorator--append",
10029
10029
  n && "proton-Button__icon-decorator--fullWidth"
@@ -10066,7 +10066,7 @@ const pn = Ke(
10066
10066
  role: "dialog",
10067
10067
  "aria-modal": "true",
10068
10068
  "data-testid": "screen-overlay",
10069
- className: W(
10069
+ className: U(
10070
10070
  "proton-ScreenOverlay__background",
10071
10071
  "proton-ScreenOverlay__z-index",
10072
10072
  t && "proton-ScreenOverlay__fade-in"
@@ -10135,14 +10135,14 @@ const wc = ({
10135
10135
  "data-testid": f
10136
10136
  }) => {
10137
10137
  $d(t);
10138
- const { className: p, theme: v } = Me(), [g, x] = H(0), [$, E] = H([]), [C, T] = H({
10138
+ const { className: p, theme: v } = Me(), [g, x] = V(0), [$, E] = V([]), [C, T] = V({
10139
10139
  title: s,
10140
10140
  actions: a,
10141
10141
  key: null,
10142
10142
  previousKey: null
10143
- }), S = C.actions || [], w = B(null), F = B(null), R = B(null), M = B(!1), { isClosing: A, handleClose: b } = Gi({
10143
+ }), S = C.actions || [], w = B(null), R = B(null), F = B(null), M = B(!1), { isClosing: A, handleClose: b } = Gi({
10144
10144
  onClose: c,
10145
- overlayRef: R
10145
+ overlayRef: F
10146
10146
  }), N = S && S.length > 0, _ = () => {
10147
10147
  x(0), b();
10148
10148
  }, k = Sc({
@@ -10181,7 +10181,7 @@ const wc = ({
10181
10181
  "aria-label": "Action Menu"
10182
10182
  },
10183
10183
  k,
10184
- F
10184
+ R
10185
10185
  );
10186
10186
  function h(j) {
10187
10187
  const Z = S.find((J) => J.key === j);
@@ -10206,7 +10206,7 @@ const wc = ({
10206
10206
  t && w.current && x(w.current.scrollHeight);
10207
10207
  }, [t, w, $]);
10208
10208
  const P = i || N || o;
10209
- return t ? /* @__PURE__ */ m.jsx($l, { fadeIn: !0, ref: R, onClose: _, children: /* @__PURE__ */ m.jsx(
10209
+ return t ? /* @__PURE__ */ m.jsx($l, { fadeIn: !0, ref: F, onClose: _, children: /* @__PURE__ */ m.jsx(
10210
10210
  "div",
10211
10211
  {
10212
10212
  className: "proton-ActionMenu__background-wrapper",
@@ -10221,10 +10221,10 @@ const wc = ({
10221
10221
  children: /* @__PURE__ */ m.jsx(
10222
10222
  "div",
10223
10223
  {
10224
- className: W("proton-ActionMenu__card", p),
10224
+ className: U("proton-ActionMenu__card", p),
10225
10225
  "data-testid": "ActionMenu-content",
10226
10226
  style: { height: `${g}px` },
10227
- children: /* @__PURE__ */ m.jsx("div", { ref: F, children: /* @__PURE__ */ m.jsxs("div", { ...O, ref: w, children: [
10227
+ children: /* @__PURE__ */ m.jsx("div", { ref: R, children: /* @__PURE__ */ m.jsxs("div", { ...O, ref: w, children: [
10228
10228
  C.title && /* @__PURE__ */ m.jsxs("div", { className: "proton-ActionMenu__title", children: [
10229
10229
  $.length > 0 && /* @__PURE__ */ m.jsx("div", { style: { position: "absolute", left: 0 }, children: /* @__PURE__ */ m.jsx("button", { onClick: K, children: /* @__PURE__ */ m.jsx(tr, { id: "chevron-left", size: 16 }) }) }),
10230
10230
  C.title
@@ -10234,7 +10234,7 @@ const wc = ({
10234
10234
  N && /* @__PURE__ */ m.jsx(
10235
10235
  "div",
10236
10236
  {
10237
- className: W(
10237
+ className: U(
10238
10238
  "proton-ActionMenu__list",
10239
10239
  e === "none" && "proton-ActionMenu__list--disabled"
10240
10240
  ),
@@ -10320,7 +10320,7 @@ const wc = ({
10320
10320
  role: "status",
10321
10321
  "aria-live": "polite",
10322
10322
  "data-testid": n["data-testid"],
10323
- className: W(
10323
+ className: U(
10324
10324
  "proton-Badge",
10325
10325
  t && `proton-Badge--${t}`,
10326
10326
  r
@@ -10361,7 +10361,7 @@ const wc = ({
10361
10361
  {
10362
10362
  role: "status",
10363
10363
  "aria-live": "polite",
10364
- className: W(
10364
+ className: U(
10365
10365
  "proton-Banner",
10366
10366
  `proton-Banner--${t}`,
10367
10367
  e && "proton-Banner--rounded"
@@ -10370,7 +10370,7 @@ const wc = ({
10370
10370
  children: /* @__PURE__ */ m.jsxs(
10371
10371
  "div",
10372
10372
  {
10373
- className: W(
10373
+ className: U(
10374
10374
  "proton-Banner__wrapper",
10375
10375
  r && "proton-Banner__wrapper--compact"
10376
10376
  ),
@@ -10387,7 +10387,7 @@ const wc = ({
10387
10387
  return /* @__PURE__ */ m.jsx(
10388
10388
  "h3",
10389
10389
  {
10390
- className: W(
10390
+ className: U(
10391
10391
  "proton-Banner__title",
10392
10392
  `proton-Banner--${n}__title`
10393
10393
  ),
@@ -10401,7 +10401,7 @@ const wc = ({
10401
10401
  return /* @__PURE__ */ m.jsx(
10402
10402
  "p",
10403
10403
  {
10404
- className: W(
10404
+ className: U(
10405
10405
  "proton-Banner__content",
10406
10406
  `proton-Banner--${n}__content`
10407
10407
  ),
@@ -10422,7 +10422,7 @@ const g0 = ({ children: t, icon: e, ...n }) => {
10422
10422
  {
10423
10423
  "aria-hidden": "true",
10424
10424
  "data-testid": n["data-testid"],
10425
- className: W("proton-Banner__icon", `proton-Banner--${r}__icon`),
10425
+ className: U("proton-Banner__icon", `proton-Banner--${r}__icon`),
10426
10426
  children: l
10427
10427
  }
10428
10428
  ) : null;
@@ -10459,7 +10459,7 @@ x0.Option = function(e) {
10459
10459
  return /* @__PURE__ */ m.jsxs(
10460
10460
  "label",
10461
10461
  {
10462
- className: W(
10462
+ className: U(
10463
10463
  "proton-ButtonGroup__option",
10464
10464
  o && "proton-ButtonGroup__option--selected"
10465
10465
  ),
@@ -10482,7 +10482,7 @@ function Vt({ values: t, children: e }) {
10482
10482
  }
10483
10483
  function Dt(t) {
10484
10484
  let { className: e, style: n, children: r, defaultClassName: l, defaultChildren: i, defaultStyle: o, values: u } = t;
10485
- return G(() => {
10485
+ return W(() => {
10486
10486
  let a, s, d;
10487
10487
  return typeof e == "function" ? a = e({
10488
10488
  ...u,
@@ -10527,10 +10527,10 @@ function Tc(t, e) {
10527
10527
  return n;
10528
10528
  }
10529
10529
  function bt(t, e, n) {
10530
- let r = Tc(n, t.slot) || {}, { ref: l, ...i } = r, o = Ct(G(() => Zr(e, l), [
10530
+ let r = Tc(n, t.slot) || {}, { ref: l, ...i } = r, o = Ct(W(() => Zr(e, l), [
10531
10531
  e,
10532
10532
  l
10533
- ])), u = U(i, t);
10533
+ ])), u = G(i, t);
10534
10534
  return "style" in i && i.style && "style" in t && t.style && (typeof i.style == "function" || typeof t.style == "function" ? u.style = (a) => {
10535
10535
  let s = typeof i.style == "function" ? i.style(a) : i.style, d = {
10536
10536
  ...a.defaultStyle,
@@ -10552,7 +10552,7 @@ function bt(t, e, n) {
10552
10552
  ];
10553
10553
  }
10554
10554
  function E0(t = !0) {
10555
- let [e, n] = H(t), r = B(!1), l = ee((i) => {
10555
+ let [e, n] = V(t), r = B(!1), l = ee((i) => {
10556
10556
  r.current = !0, n(!!i);
10557
10557
  }, []);
10558
10558
  return Q(() => {
@@ -10905,8 +10905,8 @@ class S0 extends Ac {
10905
10905
  }
10906
10906
  }
10907
10907
  function Bc(t) {
10908
- let { children: e, items: n, idScope: r, addIdAndValue: l, dependencies: i = [] } = t, o = G(() => /* @__PURE__ */ new WeakMap(), i);
10909
- return G(() => {
10908
+ let { children: e, items: n, idScope: r, addIdAndValue: l, dependencies: i = [] } = t, o = W(() => /* @__PURE__ */ new WeakMap(), i);
10909
+ return W(() => {
10910
10910
  if (n && typeof e == "function") {
10911
10911
  let s = [];
10912
10912
  for (let d of n) {
@@ -10990,7 +10990,7 @@ function T0(t, e, n) {
10990
10990
  }
10991
10991
  const A0 = typeof D.useSyncExternalStore == "function" ? D.useSyncExternalStore : T0;
10992
10992
  function B0(t) {
10993
- let [e] = H(() => new S0((t == null ? void 0 : t()) || new El())), n = ee((o) => e.subscribe(o), [
10993
+ let [e] = V(() => new S0((t == null ? void 0 : t()) || new El())), n = ee((o) => e.subscribe(o), [
10994
10994
  e
10995
10995
  ]), r = ee(() => {
10996
10996
  let o = e.getCollection();
@@ -11070,7 +11070,7 @@ function K0(t) {
11070
11070
  idScope: r,
11071
11071
  dependencies: n
11072
11072
  });
11073
- return q(an) && (l = /* @__PURE__ */ D.createElement(M0, null, l)), e = G(() => ({
11073
+ return q(an) && (l = /* @__PURE__ */ D.createElement(M0, null, l)), e = W(() => ({
11074
11074
  dependencies: n,
11075
11075
  idScope: r
11076
11076
  }), [
@@ -11081,7 +11081,7 @@ function K0(t) {
11081
11081
  }, l);
11082
11082
  }
11083
11083
  function M0({ children: t }) {
11084
- let e = q(an), n = G(() => /* @__PURE__ */ D.createElement(an.Provider, {
11084
+ let e = q(an), n = W(() => /* @__PURE__ */ D.createElement(an.Provider, {
11085
11085
  value: null
11086
11086
  }, /* @__PURE__ */ D.createElement(Kc.Provider, {
11087
11087
  value: !0
@@ -11134,7 +11134,7 @@ const N0 = /* @__PURE__ */ ne(null), I0 = /* @__PURE__ */ new Set([
11134
11134
  ...ye(e, {
11135
11135
  propNames: I0
11136
11136
  }),
11137
- ...U(i, u, d),
11137
+ ...G(i, u, d),
11138
11138
  ...p,
11139
11139
  type: i.type === "submit" && l ? "button" : i.type,
11140
11140
  id: v,
@@ -11198,7 +11198,7 @@ function ji(t, e, n) {
11198
11198
  }
11199
11199
  const Sl = /* @__PURE__ */ ne(O0);
11200
11200
  function j0(t) {
11201
- return G(() => t != null ? /* @__PURE__ */ new Set([
11201
+ return W(() => t != null ? /* @__PURE__ */ new Set([
11202
11202
  t
11203
11203
  ]) : null, [
11204
11204
  t
@@ -11261,7 +11261,7 @@ const _c = /* @__PURE__ */ ne({}), z0 = /* @__PURE__ */ Nc("header", function(e,
11261
11261
  });
11262
11262
  });
11263
11263
  function W0({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
11264
- let l = B(null), [i, o] = H(0), u = B(null), a = q(zi), s = a && r.trigger === "SubmenuTrigger";
11264
+ let l = B(null), [i, o] = V(0), u = B(null), a = q(zi), s = a && r.trigger === "SubmenuTrigger";
11265
11265
  Q(() => {
11266
11266
  l.current && t.isOpen && o(l.current.getBoundingClientRect().width);
11267
11267
  }, [
@@ -11285,7 +11285,7 @@ function W0({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
11285
11285
  isEntering: x,
11286
11286
  isExiting: e
11287
11287
  }
11288
- }), E = !r.isNonModal || r.trigger === "SubmenuTrigger", [C, T] = H(!1);
11288
+ }), E = !r.isNonModal || r.trigger === "SubmenuTrigger", [C, T] = V(!1);
11289
11289
  Q(() => {
11290
11290
  g.current && T(E && !g.current.querySelector("[role=dialog]"));
11291
11291
  }, [
@@ -11301,7 +11301,7 @@ function W0({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
11301
11301
  ...c.style,
11302
11302
  ...$.style
11303
11303
  }, w = /* @__PURE__ */ D.createElement("div", {
11304
- ...U(ye(r), c),
11304
+ ...G(ye(r), c),
11305
11305
  ...$,
11306
11306
  role: C ? "dialog" : void 0,
11307
11307
  tabIndex: C ? -1 : void 0,
@@ -11346,12 +11346,12 @@ function W0({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
11346
11346
  }, /* @__PURE__ */ D.createElement(zi.Provider, {
11347
11347
  value: u
11348
11348
  }, w)));
11349
- var F;
11349
+ var R;
11350
11350
  return /* @__PURE__ */ D.createElement(_n, {
11351
11351
  ...r,
11352
11352
  shouldContainFocus: C,
11353
11353
  isExiting: e,
11354
- portalContainer: (F = n ?? (a == null ? void 0 : a.current)) !== null && F !== void 0 ? F : void 0
11354
+ portalContainer: (R = n ?? (a == null ? void 0 : a.current)) !== null && R !== void 0 ? R : void 0
11355
11355
  }, w);
11356
11356
  }
11357
11357
  const U0 = /* @__PURE__ */ ne({}), Pl = /* @__PURE__ */ ne(null), rr = /* @__PURE__ */ ne(null), On = /* @__PURE__ */ ne(null), jn = /* @__PURE__ */ ne(null);
@@ -11359,7 +11359,7 @@ function G0(t) {
11359
11359
  let e = yl(t), n = B(null), { menuTriggerProps: r, menuProps: l } = vl({
11360
11360
  ...t,
11361
11361
  type: "menu"
11362
- }, e, n), [i, o] = H(null), u = ee(() => {
11362
+ }, e, n), [i, o] = V(null), u = ee(() => {
11363
11363
  n.current && o(n.current.offsetWidth + "px");
11364
11364
  }, [
11365
11365
  n
@@ -11460,11 +11460,11 @@ const Oc = /* @__PURE__ */ ne(null), Y0 = /* @__PURE__ */ Ic("submenutrigger", (
11460
11460
  });
11461
11461
  function q0({ props: t, collection: e, menuRef: n }) {
11462
11462
  let { filter: r, collectionProps: l, collectionRef: i } = q(Oi) || {};
11463
- n = Ct(G(() => Zr(n, i !== void 0 ? i : null), [
11463
+ n = Ct(W(() => Zr(n, i !== void 0 ? i : null), [
11464
11464
  i,
11465
11465
  n
11466
11466
  ]));
11467
- let o = G(() => r ? e.UNSTABLE_filter(r) : e, [
11467
+ let o = W(() => r ? e.UNSTABLE_filter(r) : e, [
11468
11468
  e,
11469
11469
  r
11470
11470
  ]), u = Sc({
@@ -11632,7 +11632,7 @@ const Z0 = /* @__PURE__ */ Ic("section", zc), zn = /* @__PURE__ */ ne(null), J0
11632
11632
  }
11633
11633
  }), $ = e.href ? "a" : "div";
11634
11634
  return /* @__PURE__ */ D.createElement($, {
11635
- ...U(s, v),
11635
+ ...G(s, v),
11636
11636
  ...x,
11637
11637
  ref: u,
11638
11638
  "data-disabled": p.isDisabled || void 0,
@@ -11696,7 +11696,7 @@ const eh = /* @__PURE__ */ Ke(function({ UNSTABLE_portalContainer: e, ...n }, r)
11696
11696
  }));
11697
11697
  });
11698
11698
  function th(t) {
11699
- let e = q(kl), n = B(null), [r, l] = H(0);
11699
+ let e = q(kl), n = B(null), [r, l] = V(0);
11700
11700
  Q(() => {
11701
11701
  n.current && e.isOpen && l(n.current.getBoundingClientRect().width);
11702
11702
  }, [
@@ -11724,7 +11724,7 @@ function th(t) {
11724
11724
  state: e
11725
11725
  }
11726
11726
  });
11727
- t = U(t, i);
11727
+ t = G(t, i);
11728
11728
  let { tooltipProps: d } = Rv(t, e);
11729
11729
  return /* @__PURE__ */ D.createElement("div", {
11730
11730
  ...d,
@@ -11759,86 +11759,92 @@ function nh({
11759
11759
  selectedKey: d,
11760
11760
  disabledKeys: c
11761
11761
  }) {
11762
- const { className: f, style: p } = Me(), v = Gr(qr.SMALL), g = yl({}), { isOpen: x, setOpen: $ } = g, E = B(null), { menuTriggerProps: C, menuProps: T } = vl({ type: "menu" }, g, E), { pressProps: S } = Ye({
11763
- onPress: () => $(!0),
11762
+ const f = W(
11763
+ () => l.map((N) => ({ ...N, id: N.key })),
11764
+ [l]
11765
+ ), { className: p, style: v } = Me(), g = Gr(qr.SMALL);
11766
+ V(/* @__PURE__ */ new Set([d]));
11767
+ const x = yl({}), { isOpen: $, setOpen: E } = x, C = B(null), { menuTriggerProps: T, menuProps: S } = vl({ type: "menu" }, x, C), { pressProps: w } = Ye({
11768
+ onPress: () => E(!0),
11764
11769
  isDisabled: i,
11765
- ref: E
11766
- }), w = {
11770
+ ref: C
11771
+ }), R = {
11767
11772
  "data-testid": u,
11768
11773
  "aria-label": "Menu"
11769
11774
  }, F = {
11770
- isOpen: x,
11775
+ isOpen: $,
11771
11776
  disabled: i,
11772
- triggerRef: E,
11777
+ triggerRef: C,
11773
11778
  domTriggerProps: {
11774
- ...S,
11775
- ...w
11779
+ ...w,
11780
+ ...R
11776
11781
  },
11777
11782
  ariaTriggerProps: {
11778
- ...C,
11779
- ...w,
11783
+ ...T,
11784
+ ...R,
11780
11785
  // without this, the action menu doesn't open
11781
- onPress: () => $(!0)
11786
+ onPress: () => E(!0)
11782
11787
  }
11783
11788
  };
11784
- function R(b) {
11785
- const N = Array.from(b)[0];
11786
- N && (s == null || s(N));
11789
+ function M(N) {
11790
+ console.log("handleSingleSelectionChange", N);
11791
+ const _ = Array.from(N)[0];
11792
+ _ && (s == null || s(_));
11787
11793
  }
11788
- const M = /* @__PURE__ */ m.jsx(
11794
+ const A = /* @__PURE__ */ m.jsx(
11789
11795
  F0,
11790
11796
  {
11791
- ...w,
11792
- ...C,
11797
+ ...R,
11798
+ ...T,
11793
11799
  isDisabled: i,
11794
- className: W("proton-MenuTrigger__button"),
11795
- ref: E,
11800
+ className: U("proton-MenuTrigger__button"),
11801
+ ref: C,
11796
11802
  children: /* @__PURE__ */ m.jsx(rh, { size: n })
11797
11803
  }
11798
- ), A = t ? t(F) : M;
11804
+ ), b = t ? t(F) : A;
11799
11805
  return z(() => () => {
11800
- x && (o == null || o());
11801
- }, [x, o]), v ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
11802
- A,
11803
- x && /* @__PURE__ */ m.jsx(
11806
+ $ && (o == null || o());
11807
+ }, [$, o]), g ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
11808
+ b,
11809
+ $ && /* @__PURE__ */ m.jsx(
11804
11810
  wc,
11805
11811
  {
11806
11812
  id: e,
11807
- actions: l,
11813
+ actions: f,
11808
11814
  title: r,
11809
- isOpen: x,
11810
- onClose: () => $(!1),
11815
+ isOpen: $,
11816
+ onClose: () => E(!1),
11811
11817
  showCancel: !0,
11812
11818
  "data-testid": a,
11813
11819
  selectionMode: "single",
11814
- onSelectionChange: R,
11820
+ onSelectionChange: M,
11815
11821
  selectedKeys: d ? [d] : void 0,
11816
11822
  disabledKeys: c
11817
11823
  }
11818
11824
  )
11819
- ] }) : /* @__PURE__ */ m.jsxs(G0, { onOpenChange: $, isOpen: x, children: [
11820
- A,
11825
+ ] }) : /* @__PURE__ */ m.jsxs(G0, { onOpenChange: E, isOpen: $, children: [
11826
+ b,
11821
11827
  /* @__PURE__ */ m.jsx(
11822
11828
  Lc,
11823
11829
  {
11824
- className: W("proton-Popover", f),
11825
- style: p,
11826
- triggerRef: E,
11830
+ className: U("proton-Popover", p),
11831
+ style: v,
11832
+ triggerRef: C,
11827
11833
  children: /* @__PURE__ */ m.jsx(
11828
11834
  jc,
11829
11835
  {
11830
- items: l,
11831
- className: W("proton-ListBox", "proton-MenuTrigger__menu"),
11836
+ items: f,
11837
+ className: U("proton-ListBox", "proton-MenuTrigger__menu"),
11832
11838
  selectionMode: "single",
11833
- onSelectionChange: R,
11834
- selectedKeys: d ? [d] : void 0,
11839
+ onSelectionChange: M,
11840
+ selectedKeys: /* @__PURE__ */ new Set([d]),
11835
11841
  disabledKeys: c,
11836
11842
  children: /* @__PURE__ */ m.jsxs(Z0, { children: [
11837
11843
  r && /* @__PURE__ */ m.jsx(z0, { className: "proton-MenuTrigger__menu-header", children: r }),
11838
- l.map((b) => Hc(
11839
- b,
11840
- f,
11844
+ f.map((N) => Hc(
11845
+ N,
11841
11846
  p,
11847
+ v,
11842
11848
  c
11843
11849
  ))
11844
11850
  ] })
@@ -11856,7 +11862,7 @@ function Hc(t, e, n, r) {
11856
11862
  /* @__PURE__ */ m.jsx(
11857
11863
  Lc,
11858
11864
  {
11859
- className: W("proton-Popover", e),
11865
+ className: U("proton-Popover", e),
11860
11866
  style: n,
11861
11867
  children: /* @__PURE__ */ m.jsx(
11862
11868
  jc,
@@ -11878,6 +11884,7 @@ function Hc(t, e, n, r) {
11878
11884
  return (o = t.onAction) == null ? void 0 : o.call(t, t.key);
11879
11885
  },
11880
11886
  isDisabled: r == null ? void 0 : r.includes(t.key),
11887
+ id: t.key,
11881
11888
  children: [
11882
11889
  /* @__PURE__ */ m.jsx(Li, { slot: "label", children: t.label }),
11883
11890
  /* @__PURE__ */ m.jsx(Li, { slot: "description", children: t.description })
@@ -11891,7 +11898,7 @@ function Vi(t) {
11891
11898
  J0,
11892
11899
  {
11893
11900
  ...t,
11894
- className: ({ isFocused: e, isSelected: n, isOpen: r }) => W(
11901
+ className: ({ isFocused: e, isSelected: n, isOpen: r }) => U(
11895
11902
  "proton-ListBox__item proton-MenuTrigger__menu-item",
11896
11903
  e && "focused",
11897
11904
  r && "open"
@@ -11929,7 +11936,7 @@ function Lh({
11929
11936
  onPress: s,
11930
11937
  ...d
11931
11938
  }) {
11932
- return /* @__PURE__ */ m.jsxs("div", { className: W("proton-ButtonWithSelect"), children: [
11939
+ return /* @__PURE__ */ m.jsxs("div", { className: U("proton-ButtonWithSelect"), children: [
11933
11940
  /* @__PURE__ */ m.jsx(
11934
11941
  pn,
11935
11942
  {
@@ -11968,7 +11975,9 @@ const lh = D.forwardRef((t, e) => /* @__PURE__ */ m.jsx(
11968
11975
  "div",
11969
11976
  {
11970
11977
  className: "proton-ButtonWithSelect__trigger",
11971
- style: { width: Wc },
11978
+ style: {
11979
+ "--trigger-width": `${Wc}px`
11980
+ },
11972
11981
  children: /* @__PURE__ */ m.jsx(pn, { ...t, "data-testid": "ButtonWithSelect-Trigger", ref: e, children: /* @__PURE__ */ m.jsx("div", { className: "proton-ButtonWithSelect__trigger-content", children: /* @__PURE__ */ m.jsx(tr, { id: "chevron-down", size: 16 }) }) })
11973
11982
  }
11974
11983
  ));
@@ -12008,7 +12017,7 @@ const jh = ({
12008
12017
  );
12009
12018
  };
12010
12019
  function zh(t) {
12011
- const [e, n] = H("");
12020
+ const [e, n] = V("");
12012
12021
  return z(() => {
12013
12022
  }, []), e ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
12014
12023
  /* @__PURE__ */ m.jsx(
@@ -12112,7 +12121,7 @@ const Uc = async (t, e) => {
12112
12121
  autoComplete: p,
12113
12122
  "data-testid": v
12114
12123
  }, g) => {
12115
- const x = B(null), $ = B(null), E = B(null), C = B(null), { className: T } = Me(), S = g || x, { labelProps: w, inputProps: F, descriptionProps: R, errorMessageProps: M } = Bo(
12124
+ const x = B(null), $ = B(null), E = B(null), C = B(null), { className: T } = Me(), S = g || x, { labelProps: w, inputProps: R, descriptionProps: F, errorMessageProps: M } = Bo(
12116
12125
  {
12117
12126
  label: u,
12118
12127
  name: a,
@@ -12166,13 +12175,13 @@ const Uc = async (t, e) => {
12166
12175
  b.disconnect();
12167
12176
  };
12168
12177
  }, [t, e]), /* @__PURE__ */ m.jsxs("div", { className: "proton-Input__container", ref: C, children: [
12169
- n && r === "top" && /* @__PURE__ */ m.jsx("div", { ...R, className: "proton-Input__text", children: n }),
12178
+ n && r === "top" && /* @__PURE__ */ m.jsx("div", { ...F, className: "proton-Input__text", children: n }),
12170
12179
  /* @__PURE__ */ m.jsxs("div", { className: "proton-Input__container-inner", children: [
12171
12180
  t && /* @__PURE__ */ m.jsx(
12172
12181
  "div",
12173
12182
  {
12174
12183
  ref: $,
12175
- className: W(
12184
+ className: U(
12176
12185
  "proton-Input__descriptor",
12177
12186
  "proton-Input__prefix"
12178
12187
  ),
@@ -12182,12 +12191,12 @@ const Uc = async (t, e) => {
12182
12191
  /* @__PURE__ */ m.jsx(
12183
12192
  "input",
12184
12193
  {
12185
- ...F,
12194
+ ...R,
12186
12195
  "data-testid": v,
12187
12196
  id: `${a}-input`,
12188
12197
  "aria-invalid": !!i,
12189
12198
  ref: S,
12190
- className: W(
12199
+ className: U(
12191
12200
  "proton-Input",
12192
12201
  i && "proton-Input--error",
12193
12202
  u && "proton-Input__label-top",
@@ -12199,7 +12208,7 @@ const Uc = async (t, e) => {
12199
12208
  "label",
12200
12209
  {
12201
12210
  ...w,
12202
- className: W(
12211
+ className: U(
12203
12212
  "proton-Input__label",
12204
12213
  c && "proton-Input__label--filled"
12205
12214
  ),
@@ -12210,7 +12219,7 @@ const Uc = async (t, e) => {
12210
12219
  "div",
12211
12220
  {
12212
12221
  ref: E,
12213
- className: W(
12222
+ className: U(
12214
12223
  "proton-Input__descriptor",
12215
12224
  "proton-Input__suffix"
12216
12225
  ),
@@ -12223,11 +12232,11 @@ const Uc = async (t, e) => {
12223
12232
  {
12224
12233
  ...M,
12225
12234
  role: "alert",
12226
- className: W("proton-Input__error", "proton-Input__text"),
12235
+ className: U("proton-Input__error", "proton-Input__text"),
12227
12236
  id: `${a}-error`,
12228
12237
  children: i
12229
12238
  }
12230
- ) : n && r === "bottom" ? /* @__PURE__ */ m.jsx("div", { ...R, className: "proton-Input__text", children: n }) : null
12239
+ ) : n && r === "bottom" ? /* @__PURE__ */ m.jsx("div", { ...F, className: "proton-Input__text", children: n }) : null
12231
12240
  ] });
12232
12241
  }
12233
12242
  );
@@ -12239,7 +12248,7 @@ function Hh({
12239
12248
  onError: r,
12240
12249
  onSuccess: l
12241
12250
  }) {
12242
- const [i, o] = H(!1);
12251
+ const [i, o] = V(!1);
12243
12252
  return /* @__PURE__ */ m.jsx(
12244
12253
  Tl,
12245
12254
  {
@@ -12262,7 +12271,7 @@ const uh = ({ isCopied: t, onClick: e }) => /* @__PURE__ */ m.jsx("div", { class
12262
12271
  "button",
12263
12272
  {
12264
12273
  "data-testid": "COPY_BUTTON",
12265
- className: W(
12274
+ className: U(
12266
12275
  "proton-CopyInput-button",
12267
12276
  t && "proton-CopyInput-button--copied"
12268
12277
  ),
@@ -12295,7 +12304,7 @@ const uh = ({ isCopied: t, onClick: e }) => /* @__PURE__ */ m.jsx("div", { class
12295
12304
  /* @__PURE__ */ m.jsx(
12296
12305
  "span",
12297
12306
  {
12298
- className: W(
12307
+ className: U(
12299
12308
  "proton-CopyInput-button-text",
12300
12309
  t && "proton-CopyInput-button-text--copied"
12301
12310
  ),
@@ -12377,7 +12386,7 @@ const uh = ({ isCopied: t, onClick: e }) => /* @__PURE__ */ m.jsx("div", { class
12377
12386
  {
12378
12387
  "aria-label": v["aria-label"],
12379
12388
  type: "button",
12380
- className: W(
12389
+ className: U(
12381
12390
  "proton-SearchInput__button",
12382
12391
  "proton-Input__descriptor",
12383
12392
  "proton-Input__suffix",
@@ -12449,8 +12458,8 @@ const uh = ({ isCopied: t, onClick: e }) => /* @__PURE__ */ m.jsx("div", { class
12449
12458
  "div",
12450
12459
  {
12451
12460
  "data-testid": o,
12452
- className: W("proton-Modal", i && "proton-Modal--closing"),
12453
- ...U(s, d),
12461
+ className: U("proton-Modal", i && "proton-Modal--closing"),
12462
+ ...G(s, d),
12454
12463
  ref: u,
12455
12464
  children: [
12456
12465
  /* @__PURE__ */ m.jsx(
@@ -12537,7 +12546,7 @@ function fh({
12537
12546
  {
12538
12547
  ...s,
12539
12548
  ref: o,
12540
- className: W("proton-Popover", u),
12549
+ className: U("proton-Popover", u),
12541
12550
  style: { ...s.style, ...a },
12542
12551
  "data-testid": l["data-testid"] || void 0,
12543
12552
  "data-placement": f,
@@ -12598,7 +12607,7 @@ const hh = Ke(
12598
12607
  {
12599
12608
  ...n,
12600
12609
  ref: e,
12601
- className: W(
12610
+ className: U(
12602
12611
  "proton-Select__trigger",
12603
12612
  t.disabled && "proton-Select__trigger--disabled",
12604
12613
  !t.isOpen && "proton-Select__trigger--closed",
@@ -12693,7 +12702,7 @@ function Yh({
12693
12702
  /* @__PURE__ */ m.jsx(
12694
12703
  "div",
12695
12704
  {
12696
- className: W(
12705
+ className: U(
12697
12706
  "proton-Select__trigger_icon",
12698
12707
  f.isOpen && "proton-Select__trigger_icon--flipped"
12699
12708
  ),
@@ -12746,7 +12755,7 @@ function qh(t) {
12746
12755
  return /* @__PURE__ */ m.jsxs(
12747
12756
  "label",
12748
12757
  {
12749
- className: W(
12758
+ className: U(
12750
12759
  "proton-Switch",
12751
12760
  t.isDisabled && "proton-Switch--disabled",
12752
12761
  r.isSelected && "proton-Switch--on"
@@ -12768,7 +12777,7 @@ function qh(t) {
12768
12777
  }
12769
12778
  function bh({ item: t, state: e, children: n }) {
12770
12779
  let r = B(), { rowProps: l } = Mv({ node: t }, e);
12771
- return /* @__PURE__ */ m.jsx("tr", { className: W("proton-Table__headerRow"), ...l, ref: r, children: n });
12780
+ return /* @__PURE__ */ m.jsx("tr", { className: U("proton-Table__headerRow"), ...l, ref: r, children: n });
12772
12781
  }
12773
12782
  function mh({ column: t, state: e }) {
12774
12783
  var a, s;
@@ -12782,9 +12791,9 @@ function mh({ column: t, state: e }) {
12782
12791
  return /* @__PURE__ */ m.jsxs(
12783
12792
  "th",
12784
12793
  {
12785
- ...U(r, o),
12794
+ ...G(r, o),
12786
12795
  colSpan: t.colspan,
12787
- className: W(
12796
+ className: U(
12788
12797
  "proton-Table__header",
12789
12798
  `proton-Table__header--${l}`,
12790
12799
  i ? "proton-Table__header--focused" : null
@@ -12796,7 +12805,7 @@ function mh({ column: t, state: e }) {
12796
12805
  "span",
12797
12806
  {
12798
12807
  "aria-hidden": "true",
12799
- className: W("proton-Table__headerSortIcon"),
12808
+ className: U("proton-Table__headerSortIcon"),
12800
12809
  style: {
12801
12810
  visibility: ((s = e.sortDescriptor) == null ? void 0 : s.column) === t.key ? "visible" : "hidden"
12802
12811
  },
@@ -12817,7 +12826,7 @@ function Hi({
12817
12826
  t,
12818
12827
  {
12819
12828
  ...r,
12820
- className: W(
12829
+ className: U(
12821
12830
  "proton-Table__rowGroup",
12822
12831
  t === "thead" ? "proton-Table__rowGroup--header" : "proton-Table__rowGroup--body"
12823
12832
  ),
@@ -12844,7 +12853,7 @@ function gh({
12844
12853
  return /* @__PURE__ */ m.jsx(
12845
12854
  "tr",
12846
12855
  {
12847
- className: W(
12856
+ className: U(
12848
12857
  "proton-Table__row",
12849
12858
  u ? "proton-Table__row--selected" : null,
12850
12859
  s ? "proton-Table__row--pressed" : null,
@@ -12853,7 +12862,7 @@ function gh({
12853
12862
  l && "proton-Table--clickable"
12854
12863
  ),
12855
12864
  style: r ? { backgroundColor: r } : void 0,
12856
- ...U(a, c),
12865
+ ...G(a, c),
12857
12866
  ref: o,
12858
12867
  onClick: l ? () => l(t.key) : void 0,
12859
12868
  children: e
@@ -12866,8 +12875,8 @@ function yh({ cell: t, state: e, width: n, onClick: r }) {
12866
12875
  return /* @__PURE__ */ m.jsx(
12867
12876
  "td",
12868
12877
  {
12869
- ...U(i, u),
12870
- className: W(
12878
+ ...G(i, u),
12879
+ className: U(
12871
12880
  "proton-Table__cell",
12872
12881
  o ? "proton-Table__cell--focused" : null,
12873
12882
  `proton-Table__cell--${a}`,
@@ -12890,7 +12899,7 @@ function e4(t) {
12890
12899
  e,
12891
12900
  n
12892
12901
  );
12893
- return /* @__PURE__ */ m.jsxs("table", { ...l, ref: n, className: W("proton-Table"), children: [
12902
+ return /* @__PURE__ */ m.jsxs("table", { ...l, ref: n, className: U("proton-Table"), children: [
12894
12903
  /* @__PURE__ */ m.jsx(Hi, { type: "thead", isHidden: (i = t.headerProps) == null ? void 0 : i.isHidden, children: r.headerRows.map((o) => /* @__PURE__ */ m.jsx(bh, { item: o, state: e, children: Array.from(r.getChildren(o.key)).map((u) => /* @__PURE__ */ m.jsx(
12895
12904
  mh,
12896
12905
  {
@@ -12932,7 +12941,7 @@ const t4 = ({
12932
12941
  }) => /* @__PURE__ */ m.jsx(
12933
12942
  "div",
12934
12943
  {
12935
- className: W(
12944
+ className: U(
12936
12945
  "proton-TextEllipsis",
12937
12946
  n || r === 1 ? "proton-TextEllipsis--single-line" : r > 1 ? "proton-TextEllipsis--multi-line" : ""
12938
12947
  ),
@@ -12951,10 +12960,10 @@ function $h({ children: t, arrow: e, ...n }) {
12951
12960
  eh,
12952
12961
  {
12953
12962
  ...n,
12954
- className: W("proton__Tooltip", "proton-Dialog", l),
12963
+ className: U("proton__Tooltip", "proton-Dialog", l),
12955
12964
  style: r,
12956
12965
  children: [
12957
- e && /* @__PURE__ */ m.jsx(H0, { className: W("proton__TooltipArrow", l), children: /* @__PURE__ */ m.jsx("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ m.jsx("path", { d: "M0 0 L4 4 L8 0" }) }) }),
12966
+ e && /* @__PURE__ */ m.jsx(H0, { className: U("proton__TooltipArrow", l), children: /* @__PURE__ */ m.jsx("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ m.jsx("path", { d: "M0 0 L4 4 L8 0" }) }) }),
12958
12967
  t
12959
12968
  ]
12960
12969
  }
@@ -12973,7 +12982,7 @@ function xh({
12973
12982
  content: u,
12974
12983
  ...a
12975
12984
  }) {
12976
- const [s, d] = H(!1), c = B(!1), f = B(!1);
12985
+ const [s, d] = V(!1), c = B(!1), f = B(!1);
12977
12986
  return u === "" ? null : /* @__PURE__ */ m.jsxs(
12978
12987
  Q0,
12979
12988
  {
@@ -13015,7 +13024,7 @@ const n4 = ({
13015
13024
  return /* @__PURE__ */ m.jsx(
13016
13025
  "span",
13017
13026
  {
13018
- className: W(
13027
+ className: U(
13019
13028
  "proton-TextEmphasis",
13020
13029
  n && "proton-TextEmphasis--tooltip",
13021
13030
  l
@@ -13037,7 +13046,7 @@ const n4 = ({
13037
13046
  return /* @__PURE__ */ m.jsx(
13038
13047
  "span",
13039
13048
  {
13040
- className: W(
13049
+ className: U(
13041
13050
  "proton-TextEmphasis",
13042
13051
  n && "proton-TextEmphasis--tooltip",
13043
13052
  l
@@ -13090,7 +13099,7 @@ function Eh({
13090
13099
  return /* @__PURE__ */ m.jsxs(
13091
13100
  "div",
13092
13101
  {
13093
- className: W("proton-Waveform__bar-wrapper"),
13102
+ className: U("proton-Waveform__bar-wrapper"),
13094
13103
  style: {
13095
13104
  width: `${o}px`,
13096
13105
  marginRight: `${u}px`
@@ -13099,7 +13108,7 @@ function Eh({
13099
13108
  /* @__PURE__ */ m.jsx(
13100
13109
  "div",
13101
13110
  {
13102
- className: W(
13111
+ className: U(
13103
13112
  "proton-Waveform__bar",
13104
13113
  "proton-Waveform__bar--upper",
13105
13114
  e && "proton-Waveform__bar--disabled",
@@ -13116,7 +13125,7 @@ function Eh({
13116
13125
  /* @__PURE__ */ m.jsx(
13117
13126
  "div",
13118
13127
  {
13119
- className: W(
13128
+ className: U(
13120
13129
  "proton-Waveform__bar",
13121
13130
  "proton-Waveform__bar--lower",
13122
13131
  e && "proton-Waveform__bar--disabled",
@@ -13158,7 +13167,7 @@ function l4({
13158
13167
  "data-testid": d
13159
13168
  }) {
13160
13169
  var _;
13161
- const { className: c } = Me(), f = B(null), [p, v] = H([]), [g, x] = H(null), [$, E] = H(!1), [C, T] = H(!1), S = t || Sh, w = e;
13170
+ const { className: c } = Me(), f = B(null), [p, v] = V([]), [g, x] = V(null), [$, E] = V(!1), [C, T] = V(!1), S = t || Sh, w = e;
13162
13171
  z(() => {
13163
13172
  if (!f.current) return;
13164
13173
  const k = (K) => {
@@ -13176,26 +13185,26 @@ function l4({
13176
13185
  clearTimeout(k), clearTimeout(O);
13177
13186
  };
13178
13187
  }, []);
13179
- const F = (k) => {
13188
+ const R = (k) => {
13180
13189
  if (!f.current) return;
13181
13190
  const O = f.current.getBoundingClientRect(), K = (k.clientX - O.left) / O.width * o;
13182
13191
  x(K);
13183
- }, R = () => {
13192
+ }, F = () => {
13184
13193
  x(null);
13185
13194
  }, M = e + w, A = (k, O) => {
13186
13195
  var P;
13187
13196
  const h = k / o * 100;
13188
13197
  return (O === "start" ? Math.floor(h / 100 * p.length) : Math.ceil(h / 100 * p.length)) * M / ((P = f.current) == null ? void 0 : P.clientWidth) * 100;
13189
- }, b = (_ = f.current) == null ? void 0 : _.clientWidth, N = G(() => u && a ? a : t ? null : "Waveform Unavailable", [u, a, t]);
13190
- return /* @__PURE__ */ m.jsxs("div", { className: W("proton-Waveform", c), "data-testid": d, children: [
13198
+ }, b = (_ = f.current) == null ? void 0 : _.clientWidth, N = W(() => u && a ? a : t ? null : "Waveform Unavailable", [u, a, t]);
13199
+ return /* @__PURE__ */ m.jsxs("div", { className: U("proton-Waveform", c), "data-testid": d, children: [
13191
13200
  i && /* @__PURE__ */ m.jsx(Wi, { direction: "left", seconds: l }),
13192
13201
  /* @__PURE__ */ m.jsxs(
13193
13202
  "div",
13194
13203
  {
13195
13204
  ref: f,
13196
13205
  className: "proton-Waveform__container",
13197
- onMouseMove: F,
13198
- onMouseLeave: R,
13206
+ onMouseMove: R,
13207
+ onMouseLeave: F,
13199
13208
  onClick: (k) => {
13200
13209
  if (!f.current || u) return;
13201
13210
  const O = f.current.getBoundingClientRect(), K = (k.clientX - O.left) / O.width * o;
@@ -13264,7 +13273,7 @@ function Wi({
13264
13273
  return /* @__PURE__ */ m.jsx(
13265
13274
  "div",
13266
13275
  {
13267
- className: W(
13276
+ className: U(
13268
13277
  "proton-Waveform__timestamp",
13269
13278
  `proton-Waveform__timestamp--${t}`
13270
13279
  ),