@ikonai/sdk-react-ui-radix 0.0.34 → 0.0.36

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.
Files changed (2) hide show
  1. package/index.js +282 -278
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -51,7 +51,7 @@ function vg() {
51
51
  function e(j) {
52
52
  if (j == null) return null;
53
53
  if (typeof j == "function")
54
- return j.$$typeof === A ? null : j.displayName || j.name || null;
54
+ return j.$$typeof === M ? null : j.displayName || j.name || null;
55
55
  if (typeof j == "string") return j;
56
56
  switch (j) {
57
57
  case g:
@@ -82,7 +82,7 @@ function vg() {
82
82
  return j = j.displayName, j || (j = W.displayName || W.name || "", j = j !== "" ? "ForwardRef(" + j + ")" : "ForwardRef"), j;
83
83
  case E:
84
84
  return W = j.displayName || null, W !== null ? W : e(j.type) || "Memo";
85
- case M:
85
+ case A:
86
86
  W = j._payload, j = j._init;
87
87
  try {
88
88
  return e(j(W));
@@ -113,7 +113,7 @@ function vg() {
113
113
  }
114
114
  function o(j) {
115
115
  if (j === g) return "<>";
116
- if (typeof j == "object" && j !== null && j.$$typeof === M)
116
+ if (typeof j == "object" && j !== null && j.$$typeof === A)
117
117
  return "<...>";
118
118
  try {
119
119
  var W = e(j);
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
239
239
  function f(j) {
240
240
  typeof j == "object" && j !== null && j.$$typeof === v && j._store && (j._store.validated = 1);
241
241
  }
242
- var h = te, v = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), b = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), A = Symbol.for("react.client.reference"), N = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, z = Array.isArray, $ = console.createTask ? console.createTask : function() {
242
+ var h = te, v = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), b = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), M = Symbol.for("react.client.reference"), N = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, z = Array.isArray, $ = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  h = {
@@ -446,7 +446,7 @@ function B(e, t = Cg) {
446
446
  }
447
447
  return r;
448
448
  }
449
- function De(e, t) {
449
+ function Ae(e, t) {
450
450
  if (e)
451
451
  return () => {
452
452
  t(e);
@@ -569,7 +569,7 @@ function Ig() {
569
569
  return;
570
570
  const W = a.current;
571
571
  W && ("endSegment" in W && typeof W.endSegment == "function" && W.endSegment(), c.current = !1, h(!1), S(w, { CaptureId: W.captureId, Kind: R }));
572
- }, [S, R, w]), M = ge(async () => {
572
+ }, [S, R, w]), A = ge(async () => {
573
573
  if (c.current || l.current)
574
574
  return;
575
575
  const W = Pg(s), J = W?.mediaCapture;
@@ -619,11 +619,11 @@ function Ig() {
619
619
  W.currentTarget.setPointerCapture(W.pointerId);
620
620
  } catch {
621
621
  }
622
- await M();
622
+ await A();
623
623
  }
624
624
  },
625
- [m, y, M]
626
- ), A = ge(
625
+ [m, y, A]
626
+ ), M = ge(
627
627
  (W) => {
628
628
  y === "hold" && (W.preventDefault(), E());
629
629
  },
@@ -636,14 +636,14 @@ function Ig() {
636
636
  E();
637
637
  return;
638
638
  }
639
- await M();
639
+ await A();
640
640
  }
641
- }, [m, y, M, E]);
641
+ }, [m, y, A, E]);
642
642
  if (!i)
643
643
  return null;
644
644
  const $ = { ...B(i.props, e) };
645
- m === !0 && ($.disabled = !0), y === "hold" ? ($.onPointerDown = D, $.onPointerUp = A, $.onPointerCancel = N) : $.onClick = V;
646
- const Z = De(X(i.props?.onInvokeId), s.dispatchAction);
645
+ m === !0 && ($.disabled = !0), y === "hold" ? ($.onPointerDown = D, $.onPointerUp = M, $.onPointerCancel = N) : $.onClick = V;
646
+ const Z = Ae(X(i.props?.onInvokeId), s.dispatchAction);
647
647
  !$.onClick && Z && ($.onClick = Z);
648
648
  const U = [];
649
649
  v !== void 0 && U.push(v);
@@ -813,11 +813,11 @@ var jg = "DismissableLayer", ps = "dismissableLayer.update", Lg = "dismissableLa
813
813
  onDismiss: a,
814
814
  ...c
815
815
  } = e, l = d.useContext(Wc), [u, f] = d.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, v] = d.useState({}), m = q(t, (E) => f(E)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), R = g.indexOf(x), y = u ? g.indexOf(u) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= R, w = Vg((E) => {
816
- const M = E.target, D = [...l.branches].some((A) => A.contains(M));
816
+ const A = E.target, D = [...l.branches].some((M) => M.contains(A));
817
817
  !C || D || (s?.(E), i?.(E), E.defaultPrevented || a?.());
818
818
  }, h), S = Bg((E) => {
819
- const M = E.target;
820
- [...l.branches].some((A) => A.contains(M)) || (n?.(E), i?.(E), E.defaultPrevented || a?.());
819
+ const A = E.target;
820
+ [...l.branches].some((M) => M.contains(A)) || (n?.(E), i?.(E), E.defaultPrevented || a?.());
821
821
  }, h);
822
822
  return kg((E) => {
823
823
  y === l.layers.size - 1 && (o?.(E), !E.defaultPrevented && a && (E.preventDefault(), a()));
@@ -1529,8 +1529,8 @@ function Dm(e) {
1529
1529
  var R = mr(g), y = r.current, b = "deltaX" in g ? g.deltaX : y[0] - R[0], C = "deltaY" in g ? g.deltaY : y[1] - R[1], w, S = g.target, E = Math.abs(b) > Math.abs(C) ? "h" : "v";
1530
1530
  if ("touches" in g && E === "h" && S.type === "range")
1531
1531
  return !1;
1532
- var M = window.getSelection(), D = M && M.anchorNode, A = D ? D === S || D.contains(S) : !1;
1533
- if (A)
1532
+ var A = window.getSelection(), D = A && A.anchorNode, M = D ? D === S || D.contains(S) : !1;
1533
+ if (M)
1534
1534
  return !1;
1535
1535
  var N = Ua(E, S);
1536
1536
  if (!N)
@@ -1998,21 +1998,21 @@ function cx() {
1998
1998
  }
1999
1999
  const w = R.length > 0 ? o.renderChildren(R) : void 0, S = [];
2000
2000
  y.length > 0 && S.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(y) }, "content")), g.length > 0 && S.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(g) }, "default"));
2001
- const E = P("radix-dialog", s, k(n.props?.className)), M = P("radix-dialog__overlay", _(n.props?.overlayStyleIds)), D = P("radix-dialog__content", _(n.props?.contentStyleIds)), A = B(
2001
+ const E = P("radix-dialog", s, k(n.props?.className)), A = P("radix-dialog__overlay", _(n.props?.overlayStyleIds)), D = P("radix-dialog__content", _(n.props?.contentStyleIds)), M = B(
2002
2002
  n.props,
2003
2003
  /* @__PURE__ */ new Set(["open", "defaultOpen", "modal", "onOpenChangeId", "overlayStyleIds", "contentStyleIds", "className"])
2004
2004
  );
2005
2005
  return /* @__PURE__ */ p.jsx(
2006
2006
  "div",
2007
2007
  {
2008
- ...A,
2008
+ ...M,
2009
2009
  "data-ikon-node-id": n.id,
2010
2010
  className: E,
2011
2011
  "data-state": h ? "open" : "closed",
2012
2012
  children: /* @__PURE__ */ p.jsxs(vs, { open: f ? i : void 0, defaultOpen: a, modal: c !== !1, onOpenChange: m, children: [
2013
2013
  w ? /* @__PURE__ */ p.jsx(ei, { asChild: !0, children: /* @__PURE__ */ p.jsx("span", { children: w }) }) : null,
2014
2014
  /* @__PURE__ */ p.jsxs(ti, { children: [
2015
- /* @__PURE__ */ p.jsx(ni, { className: M, "data-state": h ? "open" : "closed", style: { zIndex: 50 } }),
2015
+ /* @__PURE__ */ p.jsx(ni, { className: A, "data-state": h ? "open" : "closed", style: { zIndex: 50 } }),
2016
2016
  /* @__PURE__ */ p.jsxs(
2017
2017
  ri,
2018
2018
  {
@@ -2107,7 +2107,7 @@ function ux() {
2107
2107
  return t;
2108
2108
  };
2109
2109
  }
2110
- const fx = ["top", "right", "bottom", "left"], It = Math.min, Oe = Math.max, kr = Math.round, Rr = Math.floor, st = (e) => ({
2110
+ const fx = ["top", "right", "bottom", "left"], It = Math.min, De = Math.max, kr = Math.round, Rr = Math.floor, st = (e) => ({
2111
2111
  x: e,
2112
2112
  y: e
2113
2113
  }), px = {
@@ -2120,7 +2120,7 @@ const fx = ["top", "right", "bottom", "left"], It = Math.min, Oe = Math.max, kr
2120
2120
  end: "start"
2121
2121
  };
2122
2122
  function gs(e, t, r) {
2123
- return Oe(e, It(t, r));
2123
+ return De(e, It(t, r));
2124
2124
  }
2125
2125
  function ft(e, t) {
2126
2126
  return typeof e == "function" ? e(t) : e;
@@ -2391,7 +2391,7 @@ const Sx = (e) => ({
2391
2391
  }, v = ai(s), m = ii(v), g = await i.getDimensions(l), x = v === "y", R = x ? "top" : "left", y = x ? "bottom" : "right", b = x ? "clientHeight" : "clientWidth", C = n.reference[m] + n.reference[v] - h[v] - n.floating[m], w = h[v] - n.reference[v], S = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
2392
2392
  let E = S ? S[b] : 0;
2393
2393
  (!E || !await (i.isElement == null ? void 0 : i.isElement(S))) && (E = a.floating[b] || n.floating[m]);
2394
- const M = C / 2 - w / 2, D = E / 2 - g[m] / 2 - 1, A = It(f[R], D), N = It(f[y], D), V = A, z = E - g[m] - N, $ = E / 2 - g[m] / 2 + M, Z = gs(V, $, z), U = !c.arrow && dn(s) != null && $ !== Z && n.reference[m] / 2 - ($ < V ? A : N) - g[m] / 2 < 0, Y = U ? $ < V ? $ - V : $ - z : 0;
2394
+ const A = C / 2 - w / 2, D = E / 2 - g[m] / 2 - 1, M = It(f[R], D), N = It(f[y], D), V = M, z = E - g[m] - N, $ = E / 2 - g[m] / 2 + A, Z = gs(V, $, z), U = !c.arrow && dn(s) != null && $ !== Z && n.reference[m] / 2 - ($ < V ? M : N) - g[m] / 2 < 0, Y = U ? $ < V ? $ - V : $ - z : 0;
2395
2395
  return {
2396
2396
  [v]: h[v] + Y,
2397
2397
  data: {
@@ -2430,13 +2430,13 @@ const Sx = (e) => ({
2430
2430
  return {};
2431
2431
  const R = pt(s), y = ot(a), b = pt(a) === a, C = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), w = h || (b || !g ? [jr(a)] : mx(a)), S = m !== "none";
2432
2432
  !h && S && w.push(...bx(a, g, m, C));
2433
- const E = [a, ...w], M = await Dn(t, x), D = [];
2434
- let A = ((o = n.flip) == null ? void 0 : o.overflows) || [];
2435
- if (u && D.push(M[R]), f) {
2433
+ const E = [a, ...w], A = await Dn(t, x), D = [];
2434
+ let M = ((o = n.flip) == null ? void 0 : o.overflows) || [];
2435
+ if (u && D.push(A[R]), f) {
2436
2436
  const $ = gx(s, i, C);
2437
- D.push(M[$[0]], M[$[1]]);
2437
+ D.push(A[$[0]], A[$[1]]);
2438
2438
  }
2439
- if (A = [...A, {
2439
+ if (M = [...M, {
2440
2440
  placement: s,
2441
2441
  overflows: D
2442
2442
  }], !D.every(($) => $ <= 0)) {
@@ -2444,22 +2444,22 @@ const Sx = (e) => ({
2444
2444
  const $ = (((N = n.flip) == null ? void 0 : N.index) || 0) + 1, Z = E[$];
2445
2445
  if (Z && (!(f === "alignment" ? y !== ot(Z) : !1) || // We leave the current main axis only if every placement on that axis
2446
2446
  // overflows the main axis.
2447
- A.every((G) => ot(G.placement) === y ? G.overflows[0] > 0 : !0)))
2447
+ M.every((G) => ot(G.placement) === y ? G.overflows[0] > 0 : !0)))
2448
2448
  return {
2449
2449
  data: {
2450
2450
  index: $,
2451
- overflows: A
2451
+ overflows: M
2452
2452
  },
2453
2453
  reset: {
2454
2454
  placement: Z
2455
2455
  }
2456
2456
  };
2457
- let U = (V = A.filter((Y) => Y.overflows[0] <= 0).sort((Y, G) => Y.overflows[1] - G.overflows[1])[0]) == null ? void 0 : V.placement;
2457
+ let U = (V = M.filter((Y) => Y.overflows[0] <= 0).sort((Y, G) => Y.overflows[1] - G.overflows[1])[0]) == null ? void 0 : V.placement;
2458
2458
  if (!U)
2459
2459
  switch (v) {
2460
2460
  case "bestFit": {
2461
2461
  var z;
2462
- const Y = (z = A.filter((G) => {
2462
+ const Y = (z = M.filter((G) => {
2463
2463
  if (S) {
2464
2464
  const H = ot(G.placement);
2465
2465
  return H === y || // Create a bias to the `y` side axis due to horizontal
@@ -2708,14 +2708,14 @@ const Tx = function(e) {
2708
2708
  let x, R;
2709
2709
  f === "top" || f === "bottom" ? (x = f, R = h === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (R = f, x = h === "end" ? "top" : "bottom");
2710
2710
  const y = g - u.top - u.bottom, b = m - u.left - u.right, C = It(g - u[x], y), w = It(m - u[R], b), S = !t.middlewareData.shift;
2711
- let E = C, M = w;
2712
- if ((r = t.middlewareData.shift) != null && r.enabled.x && (M = b), (o = t.middlewareData.shift) != null && o.enabled.y && (E = y), S && !h) {
2713
- const A = Oe(u.left, 0), N = Oe(u.right, 0), V = Oe(u.top, 0), z = Oe(u.bottom, 0);
2714
- v ? M = m - 2 * (A !== 0 || N !== 0 ? A + N : Oe(u.left, u.right)) : E = g - 2 * (V !== 0 || z !== 0 ? V + z : Oe(u.top, u.bottom));
2711
+ let E = C, A = w;
2712
+ if ((r = t.middlewareData.shift) != null && r.enabled.x && (A = b), (o = t.middlewareData.shift) != null && o.enabled.y && (E = y), S && !h) {
2713
+ const M = De(u.left, 0), N = De(u.right, 0), V = De(u.top, 0), z = De(u.bottom, 0);
2714
+ v ? A = m - 2 * (M !== 0 || N !== 0 ? M + N : De(u.left, u.right)) : E = g - 2 * (V !== 0 || z !== 0 ? V + z : De(u.top, u.bottom));
2715
2715
  }
2716
2716
  await c({
2717
2717
  ...t,
2718
- availableWidth: M,
2718
+ availableWidth: A,
2719
2719
  availableHeight: E
2720
2720
  });
2721
2721
  const D = await i.getDimensions(a.floating);
@@ -2944,10 +2944,10 @@ function Kx(e) {
2944
2944
  return Array.from(e.getClientRects());
2945
2945
  }
2946
2946
  function Gx(e) {
2947
- const t = ct(e), r = vo(e), o = e.ownerDocument.body, s = Oe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), n = Oe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
2947
+ const t = ct(e), r = vo(e), o = e.ownerDocument.body, s = De(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), n = De(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
2948
2948
  let i = -r.scrollLeft + go(e);
2949
2949
  const a = -r.scrollTop;
2950
- return ze(o).direction === "rtl" && (i += Oe(t.clientWidth, o.clientWidth) - s), {
2950
+ return ze(o).direction === "rtl" && (i += De(t.clientWidth, o.clientWidth) - s), {
2951
2951
  width: s,
2952
2952
  height: n,
2953
2953
  x: i,
@@ -3030,7 +3030,7 @@ function qx(e) {
3030
3030
  } = e;
3031
3031
  const i = [...r === "clippingAncestors" ? ho(t) ? [] : Xx(t, this._c) : [].concat(r), o], a = i[0], c = i.reduce((l, u) => {
3032
3032
  const f = nc(t, u, s);
3033
- return l.top = Oe(f.top, l.top), l.right = It(f.right, l.right), l.bottom = It(f.bottom, l.bottom), l.left = Oe(f.left, l.left), l;
3033
+ return l.top = De(f.top, l.top), l.right = It(f.right, l.right), l.bottom = It(f.bottom, l.bottom), l.left = De(f.left, l.left), l;
3034
3034
  }, nc(t, a, s));
3035
3035
  return {
3036
3036
  width: c.right - c.left,
@@ -3151,7 +3151,7 @@ function ny(e, t) {
3151
3151
  return;
3152
3152
  const m = Rr(f), g = Rr(s.clientWidth - (u + h)), x = Rr(s.clientHeight - (f + v)), R = Rr(u), b = {
3153
3153
  rootMargin: -m + "px " + -g + "px " + -x + "px " + -R + "px",
3154
- threshold: Oe(0, It(1, c)) || 1
3154
+ threshold: De(0, It(1, c)) || 1
3155
3155
  };
3156
3156
  let C = !0;
3157
3157
  function w(S) {
@@ -3299,7 +3299,7 @@ function py(e) {
3299
3299
  G !== S.current && (S.current = G, g(G));
3300
3300
  }, []), b = d.useCallback((G) => {
3301
3301
  G !== E.current && (E.current = G, R(G));
3302
- }, []), C = n || m, w = i || x, S = d.useRef(null), E = d.useRef(null), M = d.useRef(u), D = c != null, A = ns(c), N = ns(s), V = ns(l), z = d.useCallback(() => {
3302
+ }, []), C = n || m, w = i || x, S = d.useRef(null), E = d.useRef(null), A = d.useRef(u), D = c != null, M = ns(c), N = ns(s), V = ns(l), z = d.useCallback(() => {
3303
3303
  if (!S.current || !E.current)
3304
3304
  return;
3305
3305
  const G = {
@@ -3316,13 +3316,13 @@ function py(e) {
3316
3316
  // setting it to `true` when `open === false` (must be specified).
3317
3317
  isPositioned: V.current !== !1
3318
3318
  };
3319
- $.current && !Fr(M.current, j) && (M.current = j, Wn.flushSync(() => {
3319
+ $.current && !Fr(A.current, j) && (A.current = j, Wn.flushSync(() => {
3320
3320
  f(j);
3321
3321
  }));
3322
3322
  });
3323
3323
  }, [h, t, r, N, V]);
3324
3324
  Nr(() => {
3325
- l === !1 && M.current.isPositioned && (M.current.isPositioned = !1, f((G) => ({
3325
+ l === !1 && A.current.isPositioned && (A.current.isPositioned = !1, f((G) => ({
3326
3326
  ...G,
3327
3327
  isPositioned: !1
3328
3328
  })));
@@ -3332,11 +3332,11 @@ function py(e) {
3332
3332
  $.current = !1;
3333
3333
  }), []), Nr(() => {
3334
3334
  if (C && (S.current = C), w && (E.current = w), C && w) {
3335
- if (A.current)
3336
- return A.current(C, w, z);
3335
+ if (M.current)
3336
+ return M.current(C, w, z);
3337
3337
  z();
3338
3338
  }
3339
- }, [C, w, z, A, D]);
3339
+ }, [C, w, z, M, D]);
3340
3340
  const Z = d.useMemo(() => ({
3341
3341
  reference: S,
3342
3342
  floating: E,
@@ -3488,8 +3488,8 @@ var fi = "PopperContent", [Ey, Py] = Dl(fi), $l = d.forwardRef(
3488
3488
  updatePositionStrategy: v = "optimized",
3489
3489
  onPlaced: m,
3490
3490
  ...g
3491
- } = e, x = kl(fi, r), [R, y] = d.useState(null), b = q(t, (K) => y(K)), [C, w] = d.useState(null), S = Xn(C), E = S?.width ?? 0, M = S?.height ?? 0, D = o + (n !== "center" ? "-" + n : ""), A = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, N = Array.isArray(l) ? l : [l], V = N.length > 0, z = {
3492
- padding: A,
3491
+ } = e, x = kl(fi, r), [R, y] = d.useState(null), b = q(t, (K) => y(K)), [C, w] = d.useState(null), S = Xn(C), E = S?.width ?? 0, A = S?.height ?? 0, D = o + (n !== "center" ? "-" + n : ""), M = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, N = Array.isArray(l) ? l : [l], V = N.length > 0, z = {
3492
+ padding: M,
3493
3493
  boundary: N.filter(Ty),
3494
3494
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3495
3495
  altBoundary: V
@@ -3504,7 +3504,7 @@ var fi = "PopperContent", [Ey, Py] = Dl(fi), $l = d.forwardRef(
3504
3504
  reference: x.anchor
3505
3505
  },
3506
3506
  middleware: [
3507
- vy({ mainAxis: s + M, alignmentAxis: i }),
3507
+ vy({ mainAxis: s + A, alignmentAxis: i }),
3508
3508
  c && gy({
3509
3509
  mainAxis: !0,
3510
3510
  crossAxis: !1,
@@ -3520,7 +3520,7 @@ var fi = "PopperContent", [Ey, Py] = Dl(fi), $l = d.forwardRef(
3520
3520
  }
3521
3521
  }),
3522
3522
  C && by({ element: C, padding: a }),
3523
- Ny({ arrowWidth: E, arrowHeight: M }),
3523
+ Ny({ arrowWidth: E, arrowHeight: A }),
3524
3524
  h && Ry({ strategy: "referenceHidden", ...z })
3525
3525
  ]
3526
3526
  }), [H, j] = Hl(U), W = he(m);
@@ -3886,8 +3886,8 @@ function Gy() {
3886
3886
  return null;
3887
3887
  const R = qe(X(n.props?.onOpenChangeId), o.dispatchAction), y = ($) => {
3888
3888
  g || m($), R?.($);
3889
- }, { defaultChildren: b, slotChildren: C } = Kn(n), w = C.get("trigger") ?? [], S = C.get("content") ?? [], E = w.length > 0 || S.length > 0, M = b.some(($) => $.type?.startsWith("radix-popover-") && $.type !== "radix-popover");
3890
- if (!E && M) {
3889
+ }, { defaultChildren: b, slotChildren: C } = Kn(n), w = C.get("trigger") ?? [], S = C.get("content") ?? [], E = w.length > 0 || S.length > 0, A = b.some(($) => $.type?.startsWith("radix-popover-") && $.type !== "radix-popover");
3890
+ if (!E && A) {
3891
3891
  const $ = o.renderChildren(n.children ?? []), Z = P("radix-popover", s, k(n.props?.className)), U = B(
3892
3892
  n.props,
3893
3893
  /* @__PURE__ */ new Set([
@@ -3923,8 +3923,8 @@ function Gy() {
3923
3923
  }
3924
3924
  );
3925
3925
  }
3926
- const D = w.length > 0 ? o.renderChildren(w) : void 0, A = [];
3927
- S.length > 0 && A.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(S) }, "content")), b.length > 0 && A.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(b) }, "default"));
3926
+ const D = w.length > 0 ? o.renderChildren(w) : void 0, M = [];
3927
+ S.length > 0 && M.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(S) }, "content")), b.length > 0 && M.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(b) }, "default"));
3928
3928
  const N = P("radix-popover", s, k(n.props?.className)), V = P("radix-popover__content", _(n.props?.contentStyleIds)), z = B(
3929
3929
  n.props,
3930
3930
  /* @__PURE__ */ new Set([
@@ -3965,7 +3965,7 @@ function Gy() {
3965
3965
  align: u,
3966
3966
  sideOffset: f,
3967
3967
  alignOffset: h,
3968
- children: A
3968
+ children: M
3969
3969
  }
3970
3970
  ) })
3971
3971
  ]
@@ -4021,20 +4021,24 @@ function zy() {
4021
4021
  };
4022
4022
  }
4023
4023
  function Yy() {
4024
- const e = /* @__PURE__ */ new Set(["value", "defaultValue", "placeholder", "disabled", "type", "step", "min", "max", "onValueChangeId", "className", "popover"]), t = I(function({ nodeId: o, context: s, className: n }) {
4024
+ const e = /* @__PURE__ */ new Set(["value", "defaultValue", "placeholder", "disabled", "type", "step", "min", "max", "onValueChangeId", "onInvokeId", "className", "popover"]), t = I(function({ nodeId: o, context: s, className: n }) {
4025
4025
  const i = T(s.store, o);
4026
4026
  if (!i)
4027
4027
  return null;
4028
4028
  const a = k(i.props?.value), c = k(i.props?.defaultValue), l = k(i.props?.placeholder), u = L(i.props?.disabled), f = k(i.props?.type), h = k(i.props?.step), v = k(i.props?.min), m = k(i.props?.max), x = { ...B(i.props, e) };
4029
4029
  a !== void 0 ? x.value = a : c !== void 0 && (x.defaultValue = c), l && (x.placeholder = l), u !== void 0 && (x.disabled = u), f && (x.type = f), h && (x.step = h), v && (x.min = v), m && (x.max = m);
4030
4030
  const R = Ve(X(i.props?.onValueChangeId), s.dispatchAction);
4031
- R && (x.onChange = (E) => {
4032
- R(E?.target?.value ?? "");
4031
+ R && (x.onChange = (A) => {
4032
+ R(A?.target?.value ?? "");
4033
4033
  });
4034
- const y = P("radix-text-field", n, k(i.props?.className));
4035
- y && (x.className = y);
4036
- const b = { "data-ikon-node-id": i.id }, C = { appearance: "none", outline: "none" }, { popover: w, ...S } = x;
4037
- return /* @__PURE__ */ p.jsx(F.input, { style: C, ...S, ...b });
4034
+ const y = Ae(X(i.props?.onInvokeId), s.dispatchAction);
4035
+ y && (x.onKeyDown = (A) => {
4036
+ A.key === "Enter" && (A.preventDefault(), y());
4037
+ });
4038
+ const b = P("radix-text-field", n, k(i.props?.className));
4039
+ b && (x.className = b);
4040
+ const C = { "data-ikon-node-id": i.id }, w = { appearance: "none", outline: "none" }, { popover: S, ...E } = x;
4041
+ return /* @__PURE__ */ p.jsx(F.input, { style: w, ...E, ...C });
4038
4042
  });
4039
4043
  return (r) => {
4040
4044
  if (r.type === "radix-text-field")
@@ -4416,8 +4420,8 @@ function RR() {
4416
4420
  return null;
4417
4421
  const h = ne(n.props?.delayDuration), v = ne(n.props?.skipDelayDuration), m = xR(n.props?.side), g = yR(n.props?.align), x = ne(n.props?.sideOffset), R = ne(n.props?.alignOffset), y = qe(X(n.props?.onOpenChangeId), o.dispatchAction), b = (Z) => {
4418
4422
  c || u(Z), y?.(Z);
4419
- }, { defaultChildren: C, slotChildren: w } = Kn(n), S = w.get("trigger") ?? [], E = w.get("content") ?? [], M = S.length > 0 || E.length > 0, D = C.some((Z) => Z.type?.startsWith("radix-tooltip-") && Z.type !== "radix-tooltip");
4420
- if (!M && D) {
4423
+ }, { defaultChildren: C, slotChildren: w } = Kn(n), S = w.get("trigger") ?? [], E = w.get("content") ?? [], A = S.length > 0 || E.length > 0, D = C.some((Z) => Z.type?.startsWith("radix-tooltip-") && Z.type !== "radix-tooltip");
4424
+ if (!A && D) {
4421
4425
  const Z = o.renderChildren(n.children ?? []), U = P("radix-tooltip", s, k(n.props?.className)), Y = B(
4422
4426
  n.props,
4423
4427
  /* @__PURE__ */ new Set([
@@ -4445,8 +4449,8 @@ function RR() {
4445
4449
  }
4446
4450
  );
4447
4451
  }
4448
- const A = S.length > 0 ? o.renderChildren(S) : void 0, N = [];
4449
- if (E.length > 0 && N.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(E) }, "content")), C.length > 0 && N.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(C) }, "default")), !A)
4452
+ const M = S.length > 0 ? o.renderChildren(S) : void 0, N = [];
4453
+ if (E.length > 0 && N.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(E) }, "content")), C.length > 0 && N.push(/* @__PURE__ */ p.jsx(rn, { children: o.renderChildren(C) }, "default")), !M)
4450
4454
  return null;
4451
4455
  const V = P("radix-tooltip__content", _(n.props?.contentStyleIds)), z = P("radix-tooltip", s, k(n.props?.className)), $ = B(
4452
4456
  n.props,
@@ -4472,7 +4476,7 @@ function RR() {
4472
4476
  className: z,
4473
4477
  "data-state": f ? "open" : "closed",
4474
4478
  children: /* @__PURE__ */ p.jsx(md, { delayDuration: h, skipDelayDuration: v, children: /* @__PURE__ */ p.jsxs(ac, { open: c ? i : void 0, defaultOpen: a, onOpenChange: b, children: [
4475
- /* @__PURE__ */ p.jsx(xd, { asChild: !0, children: /* @__PURE__ */ p.jsx("span", { children: A }) }),
4479
+ /* @__PURE__ */ p.jsx(xd, { asChild: !0, children: /* @__PURE__ */ p.jsx("span", { children: M }) }),
4476
4480
  /* @__PURE__ */ p.jsx(yd, { children: /* @__PURE__ */ p.jsx(
4477
4481
  Rd,
4478
4482
  {
@@ -4567,9 +4571,9 @@ var IR = d.forwardRef((e, t) => {
4567
4571
  caller: er
4568
4572
  }), [R, y] = d.useState(!1), b = he(l), C = Cd(r), w = d.useRef(!1), [S, E] = d.useState(0);
4569
4573
  return d.useEffect(() => {
4570
- const M = h.current;
4571
- if (M)
4572
- return M.addEventListener(rs, b), () => M.removeEventListener(rs, b);
4574
+ const A = h.current;
4575
+ if (A)
4576
+ return A.addEventListener(rs, b), () => A.removeEventListener(rs, b);
4573
4577
  }, [b]), /* @__PURE__ */ p.jsx(
4574
4578
  ER,
4575
4579
  {
@@ -4579,16 +4583,16 @@ var IR = d.forwardRef((e, t) => {
4579
4583
  loop: s,
4580
4584
  currentTabStopId: g,
4581
4585
  onItemFocus: d.useCallback(
4582
- (M) => x(M),
4586
+ (A) => x(A),
4583
4587
  [x]
4584
4588
  ),
4585
4589
  onItemShiftTab: d.useCallback(() => y(!0), []),
4586
4590
  onFocusableItemAdd: d.useCallback(
4587
- () => E((M) => M + 1),
4591
+ () => E((A) => A + 1),
4588
4592
  []
4589
4593
  ),
4590
4594
  onFocusableItemRemove: d.useCallback(
4591
- () => E((M) => M - 1),
4595
+ () => E((A) => A - 1),
4592
4596
  []
4593
4597
  ),
4594
4598
  children: /* @__PURE__ */ p.jsx(
@@ -4602,11 +4606,11 @@ var IR = d.forwardRef((e, t) => {
4602
4606
  onMouseDown: O(e.onMouseDown, () => {
4603
4607
  w.current = !0;
4604
4608
  }),
4605
- onFocus: O(e.onFocus, (M) => {
4609
+ onFocus: O(e.onFocus, (A) => {
4606
4610
  const D = !w.current;
4607
- if (M.target === M.currentTarget && D && !R) {
4608
- const A = new CustomEvent(rs, CR);
4609
- if (M.currentTarget.dispatchEvent(A), !A.defaultPrevented) {
4611
+ if (A.target === A.currentTarget && D && !R) {
4612
+ const M = new CustomEvent(rs, CR);
4613
+ if (A.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
4610
4614
  const N = C().filter((U) => U.focusable), V = N.find((U) => U.active), z = N.find((U) => U.id === g), Z = [V, z, ...N].filter(
4611
4615
  Boolean
4612
4616
  ).map((U) => U.ref.current);
@@ -5117,7 +5121,7 @@ var [Ud, YR] = Co(Je), [zd, XR] = Co(
5117
5121
  (e, t) => {
5118
5122
  const { __scopeAccordion: r, disabled: o, dir: s, orientation: n = "vertical", ...i } = e, a = te.useRef(null), c = q(a, t), l = UR(r), f = Be(s) === "ltr", h = O(e.onKeyDown, (v) => {
5119
5123
  if (!GR.includes(v.key)) return;
5120
- const m = v.target, g = l().filter((M) => !M.ref.current?.disabled), x = g.findIndex((M) => M.ref.current === m), R = g.length;
5124
+ const m = v.target, g = l().filter((A) => !A.ref.current?.disabled), x = g.findIndex((A) => A.ref.current === m), R = g.length;
5121
5125
  if (x === -1) return;
5122
5126
  v.preventDefault();
5123
5127
  let y = x;
@@ -6228,16 +6232,16 @@ var Lu = ["PageUp", "PageDown"], Fu = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
6228
6232
  }), S = d.useRef(C);
6229
6233
  function E(N) {
6230
6234
  const V = Xb(C, N);
6231
- A(N, V);
6235
+ M(N, V);
6232
6236
  }
6233
- function M(N) {
6234
- A(N, R.current);
6237
+ function A(N) {
6238
+ M(N, R.current);
6235
6239
  }
6236
6240
  function D() {
6237
6241
  const N = S.current[R.current];
6238
6242
  C[R.current] !== N && h(C);
6239
6243
  }
6240
- function A(N, V, { commit: z } = { commit: !1 }) {
6244
+ function M(N, V, { commit: z } = { commit: !1 }) {
6241
6245
  const $ = Qb(n), Z = eC(Math.round((N - o) / n) * n + o, $), U = Ln(Z, [o, s]);
6242
6246
  w((Y = []) => {
6243
6247
  const G = zb(Y, U, V);
@@ -6276,14 +6280,14 @@ var Lu = ["PageUp", "PageDown"], Fu = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
6276
6280
  max: s,
6277
6281
  inverted: v,
6278
6282
  onSlideStart: a ? void 0 : E,
6279
- onSlideMove: a ? void 0 : M,
6283
+ onSlideMove: a ? void 0 : A,
6280
6284
  onSlideEnd: a ? void 0 : D,
6281
- onHomeKeyDown: () => !a && A(o, 0, { commit: !0 }),
6282
- onEndKeyDown: () => !a && A(s, C.length - 1, { commit: !0 }),
6285
+ onHomeKeyDown: () => !a && M(o, 0, { commit: !0 }),
6286
+ onEndKeyDown: () => !a && M(s, C.length - 1, { commit: !0 }),
6283
6287
  onStepKeyDown: ({ event: N, direction: V }) => {
6284
6288
  if (!a) {
6285
6289
  const Z = Lu.includes(N.key) || N.shiftKey && Fu.includes(N.key) ? 10 : 1, U = R.current, Y = C[U], G = n * Z * V;
6286
- A(Y + G, U, { commit: !0 });
6290
+ M(Y + G, U, { commit: !0 });
6287
6291
  }
6288
6292
  }
6289
6293
  }
@@ -6655,12 +6659,12 @@ var cC = [" ", "Enter", "ArrowUp", "ArrowDown"], lC = [" ", "Enter"], $t = "Sele
6655
6659
  disabled: h,
6656
6660
  required: v,
6657
6661
  form: m
6658
- } = e, g = Ao(t), [x, R] = d.useState(null), [y, b] = d.useState(null), [C, w] = d.useState(!1), S = Be(l), [E, M] = Re({
6662
+ } = e, g = Ao(t), [x, R] = d.useState(null), [y, b] = d.useState(null), [C, w] = d.useState(!1), S = Be(l), [E, A] = Re({
6659
6663
  prop: o,
6660
6664
  defaultProp: s ?? !1,
6661
6665
  onChange: n,
6662
6666
  caller: $t
6663
- }), [D, A] = Re({
6667
+ }), [D, M] = Re({
6664
6668
  prop: i,
6665
6669
  defaultProp: a,
6666
6670
  onChange: c,
@@ -6679,9 +6683,9 @@ var cC = [" ", "Enter", "ArrowUp", "ArrowDown"], lC = [" ", "Enter"], $t = "Sele
6679
6683
  onValueNodeHasChildrenChange: w,
6680
6684
  contentId: be(),
6681
6685
  value: D,
6682
- onValueChange: A,
6686
+ onValueChange: M,
6683
6687
  open: E,
6684
- onOpenChange: M,
6688
+ onOpenChange: A,
6685
6689
  dir: S,
6686
6690
  triggerPointerDownPosRef: N,
6687
6691
  disabled: h,
@@ -6711,7 +6715,7 @@ var cC = [" ", "Enter", "ArrowUp", "ArrowDown"], lC = [" ", "Enter"], $t = "Sele
6711
6715
  name: u,
6712
6716
  autoComplete: f,
6713
6717
  value: D,
6714
- onChange: (U) => A(U.target.value),
6718
+ onChange: (U) => M(U.target.value),
6715
6719
  disabled: h,
6716
6720
  form: m,
6717
6721
  children: [
@@ -6834,7 +6838,7 @@ var Ge = 10, [cf, Dt] = mn(Vt), gC = "SelectContentImpl", mC = /* @__PURE__ */ j
6834
6838
  avoidCollisions: x,
6835
6839
  //
6836
6840
  ...R
6837
- } = e, y = Ot(Vt, r), [b, C] = d.useState(null), [w, S] = d.useState(null), E = q(t, (K) => C(K)), [M, D] = d.useState(null), [A, N] = d.useState(
6841
+ } = e, y = Ot(Vt, r), [b, C] = d.useState(null), [w, S] = d.useState(null), E = q(t, (K) => C(K)), [A, D] = d.useState(null), [M, N] = d.useState(
6838
6842
  null
6839
6843
  ), V = No(r), [z, $] = d.useState(!1), Z = d.useRef(!1);
6840
6844
  d.useEffect(() => {
@@ -6848,8 +6852,8 @@ var Ge = 10, [cf, Dt] = mn(Vt), gC = "SelectContentImpl", mC = /* @__PURE__ */ j
6848
6852
  },
6849
6853
  [V, w]
6850
6854
  ), Y = d.useCallback(
6851
- () => U([M, b]),
6852
- [U, M, b]
6855
+ () => U([A, b]),
6856
+ [U, A, b]
6853
6857
  );
6854
6858
  d.useEffect(() => {
6855
6859
  z && Y();
@@ -6911,11 +6915,11 @@ var Ge = 10, [cf, Dt] = mn(Vt), gC = "SelectContentImpl", mC = /* @__PURE__ */ j
6911
6915
  viewport: w,
6912
6916
  onViewportChange: S,
6913
6917
  itemRefCallback: J,
6914
- selectedItem: M,
6918
+ selectedItem: A,
6915
6919
  onItemLeave: re,
6916
6920
  itemTextRefCallback: se,
6917
6921
  focusSelectedItem: Y,
6918
- selectedItemText: A,
6922
+ selectedItemText: M,
6919
6923
  position: o,
6920
6924
  isPositioned: z,
6921
6925
  searchRef: j,
@@ -6984,9 +6988,9 @@ lf.displayName = gC;
6984
6988
  var xC = "SelectItemAlignedPosition", df = d.forwardRef((e, t) => {
6985
6989
  const { __scopeSelect: r, onPlaced: o, ...s } = e, n = Ot(Vt, r), i = Dt(Vt, r), [a, c] = d.useState(null), [l, u] = d.useState(null), f = q(t, (E) => u(E)), h = No(r), v = d.useRef(!1), m = d.useRef(!0), { viewport: g, selectedItem: x, selectedItemText: R, focusSelectedItem: y } = i, b = d.useCallback(() => {
6986
6990
  if (n.trigger && n.valueNode && a && l && g && x && R) {
6987
- const E = n.trigger.getBoundingClientRect(), M = l.getBoundingClientRect(), D = n.valueNode.getBoundingClientRect(), A = R.getBoundingClientRect();
6991
+ const E = n.trigger.getBoundingClientRect(), A = l.getBoundingClientRect(), D = n.valueNode.getBoundingClientRect(), M = R.getBoundingClientRect();
6988
6992
  if (n.dir !== "rtl") {
6989
- const ce = A.left - M.left, de = D.left - ce, Ce = E.left - de, Ee = E.width + Ce, Qe = Math.max(Ee, M.width), et = window.innerWidth - Ge, Ut = Ln(de, [
6993
+ const ce = M.left - A.left, de = D.left - ce, Ce = E.left - de, Ee = E.width + Ce, Qe = Math.max(Ee, A.width), et = window.innerWidth - Ge, Ut = Ln(de, [
6990
6994
  Ge,
6991
6995
  // Prevents the content from going off the starting edge of the
6992
6996
  // viewport. It may still go off the ending edge, but this can be
@@ -6997,7 +7001,7 @@ var xC = "SelectItemAlignedPosition", df = d.forwardRef((e, t) => {
6997
7001
  ]);
6998
7002
  a.style.minWidth = Ee + "px", a.style.left = Ut + "px";
6999
7003
  } else {
7000
- const ce = M.right - A.right, de = window.innerWidth - D.right - ce, Ce = window.innerWidth - E.right - de, Ee = E.width + Ce, Qe = Math.max(Ee, M.width), et = window.innerWidth - Ge, Ut = Ln(de, [
7004
+ const ce = A.right - M.right, de = window.innerWidth - D.right - ce, Ce = window.innerWidth - E.right - de, Ee = E.width + Ce, Qe = Math.max(Ee, A.width), et = window.innerWidth - Ge, Ut = Ln(de, [
7001
7005
  Ge,
7002
7006
  Math.max(Ge, et - Qe)
7003
7007
  ]);
@@ -7439,8 +7443,8 @@ function WC() {
7439
7443
  return null;
7440
7444
  const m = L(n.props?.disabled), g = L(n.props?.required), x = k(n.props?.name), R = k(n.props?.value), y = X(n.props?.onCheckedChangeId), b = (E) => {
7441
7445
  if (h || f(E), y) {
7442
- const M = E === "indeterminate" ? "indeterminate" : E ? "checked" : "unchecked";
7443
- o.dispatchAction(y, M);
7446
+ const A = E === "indeterminate" ? "indeterminate" : E ? "checked" : "unchecked";
7447
+ o.dispatchAction(y, A);
7444
7448
  }
7445
7449
  }, C = P("radix-checkbox", _(n.styleIds), s), w = o.renderChildren(n.children ?? []), S = B(n.props, /* @__PURE__ */ new Set(["checked", "defaultChecked", "disabled", "required", "name", "value", "onCheckedChangeId"]));
7446
7450
  return /* @__PURE__ */ p.jsx(
@@ -7737,11 +7741,11 @@ function ew() {
7737
7741
  h || f(N), C && o.dispatchAction(C, N);
7738
7742
  }, E = (N) => {
7739
7743
  w && o.dispatchAction(w, N);
7740
- }, M = P("radix-slider", _(n.styleIds), s), D = o.renderChildren(n.children ?? []), A = B(n.props, /* @__PURE__ */ new Set(["value", "defaultValue", "min", "max", "step", "disabled", "orientation", "inverted", "onValueChangeId", "onValueCommitId"]));
7744
+ }, A = P("radix-slider", _(n.styleIds), s), D = o.renderChildren(n.children ?? []), M = B(n.props, /* @__PURE__ */ new Set(["value", "defaultValue", "min", "max", "step", "disabled", "orientation", "inverted", "onValueChangeId", "onValueCommitId"]));
7741
7745
  return /* @__PURE__ */ p.jsx(
7742
7746
  tC,
7743
7747
  {
7744
- ...A,
7748
+ ...M,
7745
7749
  "data-ikon-node-id": n.id,
7746
7750
  value: v,
7747
7751
  defaultValue: h ? void 0 : l,
@@ -7753,7 +7757,7 @@ function ew() {
7753
7757
  disabled: R,
7754
7758
  orientation: y,
7755
7759
  inverted: b,
7756
- className: M,
7760
+ className: A,
7757
7761
  children: D
7758
7762
  }
7759
7763
  );
@@ -8163,51 +8167,51 @@ var [Ai] = ye("Form"), Mi = "Form", [bw, xn] = Ai(Mi), [Cw, Mf] = Ai(Mi), _f = d
8163
8167
  (e, t) => {
8164
8168
  const { __scopeForm: r, onClearServerErrors: o = () => {
8165
8169
  }, ...s } = e, n = d.useRef(null), i = q(t, n), [a, c] = d.useState({}), l = d.useCallback(
8166
- (A) => a[A],
8170
+ (M) => a[M],
8167
8171
  [a]
8168
8172
  ), u = d.useCallback(
8169
- (A, N) => c((V) => ({
8173
+ (M, N) => c((V) => ({
8170
8174
  ...V,
8171
- [A]: { ...V[A] ?? {}, ...N }
8175
+ [M]: { ...V[M] ?? {}, ...N }
8172
8176
  })),
8173
8177
  []
8174
- ), f = d.useCallback((A) => {
8175
- c((N) => ({ ...N, [A]: void 0 })), y((N) => ({ ...N, [A]: {} }));
8178
+ ), f = d.useCallback((M) => {
8179
+ c((N) => ({ ...N, [M]: void 0 })), y((N) => ({ ...N, [M]: {} }));
8176
8180
  }, []), [h, v] = d.useState({}), m = d.useCallback(
8177
- (A) => h[A] ?? [],
8181
+ (M) => h[M] ?? [],
8178
8182
  [h]
8179
- ), g = d.useCallback((A, N) => {
8183
+ ), g = d.useCallback((M, N) => {
8180
8184
  v((V) => ({
8181
8185
  ...V,
8182
- [A]: [...V[A] ?? [], N]
8186
+ [M]: [...V[M] ?? [], N]
8183
8187
  }));
8184
- }, []), x = d.useCallback((A, N) => {
8188
+ }, []), x = d.useCallback((M, N) => {
8185
8189
  v((V) => ({
8186
8190
  ...V,
8187
- [A]: (V[A] ?? []).filter(
8191
+ [M]: (V[M] ?? []).filter(
8188
8192
  (z) => z.id !== N
8189
8193
  )
8190
8194
  }));
8191
8195
  }, []), [R, y] = d.useState({}), b = d.useCallback(
8192
- (A) => R[A] ?? {},
8196
+ (M) => R[M] ?? {},
8193
8197
  [R]
8194
- ), C = d.useCallback((A, N) => {
8198
+ ), C = d.useCallback((M, N) => {
8195
8199
  y((V) => ({
8196
8200
  ...V,
8197
- [A]: { ...V[A] ?? {}, ...N }
8201
+ [M]: { ...V[M] ?? {}, ...N }
8198
8202
  }));
8199
- }, []), [w, S] = d.useState({}), E = d.useCallback((A, N) => {
8203
+ }, []), [w, S] = d.useState({}), E = d.useCallback((M, N) => {
8200
8204
  S((V) => {
8201
- const z = new Set(V[A]).add(N);
8202
- return { ...V, [A]: z };
8205
+ const z = new Set(V[M]).add(N);
8206
+ return { ...V, [M]: z };
8203
8207
  });
8204
- }, []), M = d.useCallback((A, N) => {
8208
+ }, []), A = d.useCallback((M, N) => {
8205
8209
  S((V) => {
8206
- const z = new Set(V[A]);
8207
- return z.delete(N), { ...V, [A]: z };
8210
+ const z = new Set(V[M]);
8211
+ return z.delete(N), { ...V, [M]: z };
8208
8212
  });
8209
8213
  }, []), D = d.useCallback(
8210
- (A) => Array.from(w[A] ?? []).join(" ") || void 0,
8214
+ (M) => Array.from(w[M] ?? []).join(" ") || void 0,
8211
8215
  [w]
8212
8216
  );
8213
8217
  return /* @__PURE__ */ p.jsx(
@@ -8227,16 +8231,16 @@ var [Ai] = ye("Form"), Mi = "Form", [bw, xn] = Ai(Mi), [Cw, Mf] = Ai(Mi), _f = d
8227
8231
  {
8228
8232
  scope: r,
8229
8233
  onFieldMessageIdAdd: E,
8230
- onFieldMessageIdRemove: M,
8234
+ onFieldMessageIdRemove: A,
8231
8235
  getFieldDescription: D,
8232
8236
  children: /* @__PURE__ */ p.jsx(
8233
8237
  F.form,
8234
8238
  {
8235
8239
  ...s,
8236
8240
  ref: i,
8237
- onInvalid: O(e.onInvalid, (A) => {
8238
- const N = $f(A.currentTarget);
8239
- N === A.target && N.focus(), A.preventDefault();
8241
+ onInvalid: O(e.onInvalid, (M) => {
8242
+ const N = $f(M.currentTarget);
8243
+ N === M.target && N.focus(), M.preventDefault();
8240
8244
  }),
8241
8245
  onSubmit: O(e.onSubmit, o, {
8242
8246
  checkForDefaultPrevented: !1
@@ -8295,10 +8299,10 @@ var Ar = "FormControl", kf = d.forwardRef(
8295
8299
  f.forEach((V) => {
8296
8300
  Mw(V, C) ? S.push(V) : _w(V) && w.push(V);
8297
8301
  });
8298
- const E = w.map(({ id: V, match: z }) => [V, z(...C)]), M = Object.fromEntries(E), D = Object.values(M).some(Boolean), A = D;
8299
- y.setCustomValidity(A ? Fn : "");
8302
+ const E = w.map(({ id: V, match: z }) => [V, z(...C)]), A = Object.fromEntries(E), D = Object.values(A).some(Boolean), M = D;
8303
+ y.setCustomValidity(M ? Fn : "");
8300
8304
  const N = os(y.validity);
8301
- if (h(l, N), v(l, M), !D && S.length > 0) {
8305
+ if (h(l, N), v(l, A), !D && S.length > 0) {
8302
8306
  const V = S.map(
8303
8307
  ({ id: G, match: H }) => H(...C).then((j) => [G, j])
8304
8308
  ), z = await Promise.all(V), $ = Object.fromEntries(z), U = Object.values($).some(Boolean);
@@ -8470,7 +8474,7 @@ function Hw() {
8470
8474
  const n = T(o.store, r);
8471
8475
  if (!n)
8472
8476
  return null;
8473
- const i = De(X(n.props?.onClearServerErrorsId), o.dispatchAction), a = P("radix-form", _(n.styleIds), s), c = o.renderChildren(n.children ?? []), l = B(n.props, /* @__PURE__ */ new Set(["onClearServerErrorsId"]));
8477
+ const i = Ae(X(n.props?.onClearServerErrorsId), o.dispatchAction), a = P("radix-form", _(n.styleIds), s), c = o.renderChildren(n.children ?? []), l = B(n.props, /* @__PURE__ */ new Set(["onClearServerErrorsId"]));
8474
8478
  return /* @__PURE__ */ p.jsx(
8475
8479
  Dw,
8476
8480
  {
@@ -8642,17 +8646,17 @@ function Hf(e, t) {
8642
8646
  const _o = Bt(null);
8643
8647
  function Zw() {
8644
8648
  const e = I(function({ nodeId: r, context: o, className: s }) {
8645
- const n = T(o.store, r), i = k(n?.props?.value), a = ne(n?.props?.maxLength), c = L(n?.props?.autoSubmit) ?? !1, l = Ve(X(n?.props?.onValueChangeId), o.dispatchAction), u = De(X(n?.props?.onAutoSubmitId), o.dispatchAction), [f, h] = oe(i ?? ""), v = i !== void 0, m = v ? i ?? "" : f, g = n ? qw(a, n) : 6, x = le([]), R = ge(
8649
+ const n = T(o.store, r), i = k(n?.props?.value), a = ne(n?.props?.maxLength), c = L(n?.props?.autoSubmit) ?? !1, l = Ve(X(n?.props?.onValueChangeId), o.dispatchAction), u = Ae(X(n?.props?.onAutoSubmitId), o.dispatchAction), [f, h] = oe(i ?? ""), v = i !== void 0, m = v ? i ?? "" : f, g = n ? qw(a, n) : 6, x = le([]), R = ge(
8646
8650
  (E) => {
8647
- const M = E.slice(0, g);
8648
- v || h(M), l?.(M), c && u && Hf(M, g).every((N) => N.length > 0) && u();
8651
+ const A = E.slice(0, g);
8652
+ v || h(A), l?.(A), c && u && Hf(A, g).every((N) => N.length > 0) && u();
8649
8653
  },
8650
8654
  [c, v, g, u, l]
8651
- ), y = ge((E, M) => {
8652
- x.current[E] = M;
8655
+ ), y = ge((E, A) => {
8656
+ x.current[E] = A;
8653
8657
  }, []), b = ge((E) => {
8654
- const M = x.current[E];
8655
- M && (M.focus(), M.select());
8658
+ const A = x.current[E];
8659
+ A && (A.focus(), A.select());
8656
8660
  }, []);
8657
8661
  if (!n)
8658
8662
  return null;
@@ -9323,13 +9327,13 @@ var Vi = "ScrollArea", [np] = ye(Vi), [US, We] = np(Vi), rp = d.forwardRef(
9323
9327
  dir: s,
9324
9328
  scrollHideDelay: n = 600,
9325
9329
  ...i
9326
- } = e, [a, c] = d.useState(null), [l, u] = d.useState(null), [f, h] = d.useState(null), [v, m] = d.useState(null), [g, x] = d.useState(null), [R, y] = d.useState(0), [b, C] = d.useState(0), [w, S] = d.useState(!1), [E, M] = d.useState(!1), D = q(t, (N) => c(N)), A = Be(s);
9330
+ } = e, [a, c] = d.useState(null), [l, u] = d.useState(null), [f, h] = d.useState(null), [v, m] = d.useState(null), [g, x] = d.useState(null), [R, y] = d.useState(0), [b, C] = d.useState(0), [w, S] = d.useState(!1), [E, A] = d.useState(!1), D = q(t, (N) => c(N)), M = Be(s);
9327
9331
  return /* @__PURE__ */ p.jsx(
9328
9332
  US,
9329
9333
  {
9330
9334
  scope: r,
9331
9335
  type: o,
9332
- dir: A,
9336
+ dir: M,
9333
9337
  scrollHideDelay: n,
9334
9338
  scrollArea: a,
9335
9339
  viewport: l,
@@ -9343,13 +9347,13 @@ var Vi = "ScrollArea", [np] = ye(Vi), [US, We] = np(Vi), rp = d.forwardRef(
9343
9347
  scrollbarY: g,
9344
9348
  onScrollbarYChange: x,
9345
9349
  scrollbarYEnabled: E,
9346
- onScrollbarYEnabledChange: M,
9350
+ onScrollbarYEnabledChange: A,
9347
9351
  onCornerWidthChange: y,
9348
9352
  onCornerHeightChange: C,
9349
9353
  children: /* @__PURE__ */ p.jsx(
9350
9354
  F.div,
9351
9355
  {
9352
- dir: A,
9356
+ dir: M,
9353
9357
  ...i,
9354
9358
  ref: D,
9355
9359
  style: {
@@ -9646,16 +9650,16 @@ var zS = d.forwardRef((e, t) => {
9646
9650
  onResize: f,
9647
9651
  ...h
9648
9652
  } = e, v = We(dt, r), [m, g] = d.useState(null), x = q(t, (D) => g(D)), R = d.useRef(null), y = d.useRef(""), b = v.viewport, C = o.content - o.viewport, w = he(u), S = he(c), E = Do(f, 10);
9649
- function M(D) {
9653
+ function A(D) {
9650
9654
  if (R.current) {
9651
- const A = D.clientX - R.current.left, N = D.clientY - R.current.top;
9652
- l({ x: A, y: N });
9655
+ const M = D.clientX - R.current.left, N = D.clientY - R.current.top;
9656
+ l({ x: M, y: N });
9653
9657
  }
9654
9658
  }
9655
9659
  return d.useEffect(() => {
9656
- const D = (A) => {
9657
- const N = A.target;
9658
- m?.contains(N) && w(A, C);
9660
+ const D = (M) => {
9661
+ const N = M.target;
9662
+ m?.contains(N) && w(M, C);
9659
9663
  };
9660
9664
  return document.addEventListener("wheel", D, { passive: !1 }), () => document.removeEventListener("wheel", D, { passive: !1 });
9661
9665
  }, [b, m, C, w]), d.useEffect(S, [o, S]), cn(m, E), cn(v.content, E), /* @__PURE__ */ p.jsx(
@@ -9675,12 +9679,12 @@ var zS = d.forwardRef((e, t) => {
9675
9679
  ref: x,
9676
9680
  style: { position: "absolute", ...h.style },
9677
9681
  onPointerDown: O(e.onPointerDown, (D) => {
9678
- D.button === 0 && (D.target.setPointerCapture(D.pointerId), R.current = m.getBoundingClientRect(), y.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", v.viewport && (v.viewport.style.scrollBehavior = "auto"), M(D));
9682
+ D.button === 0 && (D.target.setPointerCapture(D.pointerId), R.current = m.getBoundingClientRect(), y.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", v.viewport && (v.viewport.style.scrollBehavior = "auto"), A(D));
9679
9683
  }),
9680
- onPointerMove: O(e.onPointerMove, M),
9684
+ onPointerMove: O(e.onPointerMove, A),
9681
9685
  onPointerUp: O(e.onPointerUp, (D) => {
9682
- const A = D.target;
9683
- A.hasPointerCapture(D.pointerId) && A.releasePointerCapture(D.pointerId), document.body.style.webkitUserSelect = y.current, v.viewport && (v.viewport.style.scrollBehavior = ""), R.current = null;
9686
+ const M = D.target;
9687
+ M.hasPointerCapture(D.pointerId) && M.releasePointerCapture(D.pointerId), document.body.style.webkitUserSelect = y.current, v.viewport && (v.viewport.style.scrollBehavior = ""), R.current = null;
9684
9688
  })
9685
9689
  }
9686
9690
  )
@@ -11100,11 +11104,11 @@ class Mp {
11100
11104
  isBottom: C,
11101
11105
  maxScroll: w,
11102
11106
  minScroll: S
11103
- } = Ip(g), E = ZE(g), M = {
11107
+ } = Ip(g), E = ZE(g), A = {
11104
11108
  x: Math.min(x === ue.Right ? E.right - E.width / 2 : E.right, Math.max(x === ue.Right ? E.left : E.left + E.width / 2, f.x)),
11105
11109
  y: Math.min(x === ue.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(x === ue.Down ? E.top : E.top + E.height / 2, f.y))
11106
- }, D = x === ue.Right && !y || x === ue.Left && !b, A = x === ue.Down && !C || x === ue.Up && !R;
11107
- if (D && M.x !== f.x) {
11110
+ }, D = x === ue.Right && !y || x === ue.Left && !b, M = x === ue.Down && !C || x === ue.Up && !R;
11111
+ if (D && A.x !== f.x) {
11108
11112
  const N = g.scrollLeft + h.x, V = x === ue.Right && N <= w.x || x === ue.Left && N >= S.x;
11109
11113
  if (V && !h.y) {
11110
11114
  g.scrollTo({
@@ -11118,7 +11122,7 @@ class Mp {
11118
11122
  behavior: a
11119
11123
  });
11120
11124
  break;
11121
- } else if (A && M.y !== f.y) {
11125
+ } else if (M && A.y !== f.y) {
11122
11126
  const N = g.scrollTop + h.y, V = x === ue.Down && N <= w.y || x === ue.Up && N >= S.y;
11123
11127
  if (V && !h.x) {
11124
11128
  g.scrollTo({
@@ -11451,8 +11455,8 @@ function cP(e) {
11451
11455
  const S = b.current;
11452
11456
  if (!S)
11453
11457
  return;
11454
- const E = x.current.x * R.current.x, M = x.current.y * R.current.y;
11455
- S.scrollBy(E, M);
11458
+ const E = x.current.x * R.current.x, A = x.current.y * R.current.y;
11459
+ S.scrollBy(E, A);
11456
11460
  }, []), w = me(() => a === Jr.TreeOrder ? [...l].reverse() : l, [a, l]);
11457
11461
  fe(
11458
11462
  () => {
@@ -11463,17 +11467,17 @@ function cP(e) {
11463
11467
  for (const S of w) {
11464
11468
  if (o?.(S) === !1)
11465
11469
  continue;
11466
- const E = l.indexOf(S), M = u[E];
11467
- if (!M)
11470
+ const E = l.indexOf(S), A = u[E];
11471
+ if (!A)
11468
11472
  continue;
11469
11473
  const {
11470
11474
  direction: D,
11471
- speed: A
11472
- } = qE(S, M, y, t, h);
11475
+ speed: M
11476
+ } = qE(S, A, y, t, h);
11473
11477
  for (const N of ["x", "y"])
11474
- v[N][D[N]] || (A[N] = 0, D[N] = 0);
11475
- if (A.x > 0 || A.y > 0) {
11476
- g(), b.current = S, m(C, i), x.current = A, R.current = D;
11478
+ v[N][D[N]] || (M[N] = 0, D[N] = 0);
11479
+ if (M.x > 0 || M.y > 0) {
11480
+ g(), b.current = S, m(C, i), x.current = M, R.current = D;
11477
11481
  return;
11478
11482
  }
11479
11483
  }
@@ -12181,13 +12185,13 @@ const _P = /* @__PURE__ */ I(function(t) {
12181
12185
  const g = ug(TP, void 0, IP), [x, R] = g, [y, b] = NE(), [C, w] = oe(St.Uninitialized), S = C === St.Initialized, {
12182
12186
  draggable: {
12183
12187
  active: E,
12184
- nodes: M,
12188
+ nodes: A,
12185
12189
  translate: D
12186
12190
  },
12187
12191
  droppable: {
12188
- containers: A
12192
+ containers: M
12189
12193
  }
12190
- } = x, N = E != null ? M.get(E) : null, V = le({
12194
+ } = x, N = E != null ? A.get(E) : null, V = le({
12191
12195
  initial: null,
12192
12196
  translated: null
12193
12197
  }), z = me(() => {
@@ -12198,7 +12202,7 @@ const _P = /* @__PURE__ */ I(function(t) {
12198
12202
  data: (Ie = N?.data) != null ? Ie : EP,
12199
12203
  rect: V
12200
12204
  } : null;
12201
- }, [E, N]), $ = le(null), [Z, U] = oe(null), [Y, G] = oe(null), H = $n(m, Object.values(m)), j = or("DndDescribedBy", i), W = me(() => A.getEnabled(), [A]), J = AP(h), {
12205
+ }, [E, N]), $ = le(null), [Z, U] = oe(null), [Y, G] = oe(null), H = $n(m, Object.values(m)), j = or("DndDescribedBy", i), W = me(() => M.getEnabled(), [M]), J = AP(h), {
12202
12206
  droppableRects: re,
12203
12207
  measureDroppableContainers: se,
12204
12208
  measuringScheduled: ve
@@ -12206,9 +12210,9 @@ const _P = /* @__PURE__ */ I(function(t) {
12206
12210
  dragging: S,
12207
12211
  dependencies: [D.x, D.y],
12208
12212
  config: J.droppable
12209
- }), ae = uP(M, E), K = me(() => Y ? qr(Y) : null, [Y]), Q = ag(), ie = hP(ae, J.draggable.measure);
12213
+ }), ae = uP(A, E), K = me(() => Y ? qr(Y) : null, [Y]), Q = ag(), ie = hP(ae, J.draggable.measure);
12210
12214
  MP({
12211
- activeNode: E != null ? M.get(E) : null,
12215
+ activeNode: E != null ? A.get(E) : null,
12212
12216
  config: Q.layoutShiftCompensation,
12213
12217
  initialRect: ie,
12214
12218
  measure: J.draggable.measure
@@ -12220,14 +12224,14 @@ const _P = /* @__PURE__ */ I(function(t) {
12220
12224
  collisionRect: null,
12221
12225
  collisions: null,
12222
12226
  droppableRects: re,
12223
- draggableNodes: M,
12227
+ draggableNodes: A,
12224
12228
  draggingNode: null,
12225
12229
  draggingNodeRect: null,
12226
- droppableContainers: A,
12230
+ droppableContainers: M,
12227
12231
  over: null,
12228
12232
  scrollableAncestors: [],
12229
12233
  scrollAdjustedTranslate: null
12230
- }), Ce = A.getNodeFor((r = de.current.over) == null ? void 0 : r.id), Ee = wP({
12234
+ }), Ce = M.getNodeFor((r = de.current.over) == null ? void 0 : r.id), Ee = wP({
12231
12235
  measure: J.dragOverlay.measure
12232
12236
  }), Qe = (o = Ee.nodeRef.current) != null ? o : ae, et = S ? (s = Ee.rect) != null ? s : ee : null, Ut = !!(Ee.nodeRef.current && Ee.rect), Ea = mP(Ut ? null : ee), Go = Op(Qe ? Te(Qe) : null), xt = xP(S ? Ce ?? ae : null), ur = CP(xt), fr = Lp(v, {
12233
12237
  transform: {
@@ -12253,26 +12257,26 @@ const _P = /* @__PURE__ */ I(function(t) {
12253
12257
  droppableContainers: W,
12254
12258
  pointerCoordinates: Pa
12255
12259
  }) : null, Ta = kE(Cn, "id"), [yt, Na] = oe(null), ng = Ut ? fr : tn(fr, tg), rg = BE(ng, (n = yt?.rect) != null ? n : null, ee), Uo = le(null), Aa = ge(
12256
- (Ie, Ae) => {
12260
+ (Ie, Me) => {
12257
12261
  let {
12258
- sensor: Me,
12262
+ sensor: _e,
12259
12263
  options: Rt
12260
- } = Ae;
12264
+ } = Me;
12261
12265
  if ($.current == null)
12262
12266
  return;
12263
- const je = M.get($.current);
12267
+ const je = A.get($.current);
12264
12268
  if (!je)
12265
12269
  return;
12266
- const _e = Ie.nativeEvent, tt = new Me({
12270
+ const Oe = Ie.nativeEvent, tt = new _e({
12267
12271
  active: $.current,
12268
12272
  activeNode: je,
12269
- event: _e,
12273
+ event: Oe,
12270
12274
  options: Rt,
12271
12275
  // Sensors need to be instantiated with refs for arguments that change over time
12272
12276
  // otherwise they are frozen in time with the stale arguments
12273
12277
  context: de,
12274
12278
  onAbort(Pe) {
12275
- if (!M.get(Pe))
12279
+ if (!A.get(Pe))
12276
12280
  return;
12277
12281
  const {
12278
12282
  onDragAbort: nt
@@ -12285,7 +12289,7 @@ const _P = /* @__PURE__ */ I(function(t) {
12285
12289
  });
12286
12290
  },
12287
12291
  onPending(Pe, bt, nt, ut) {
12288
- if (!M.get(Pe))
12292
+ if (!A.get(Pe))
12289
12293
  return;
12290
12294
  const {
12291
12295
  onDragPending: Sn
@@ -12304,13 +12308,13 @@ const _P = /* @__PURE__ */ I(function(t) {
12304
12308
  const bt = $.current;
12305
12309
  if (bt == null)
12306
12310
  return;
12307
- const nt = M.get(bt);
12311
+ const nt = A.get(bt);
12308
12312
  if (!nt)
12309
12313
  return;
12310
12314
  const {
12311
12315
  onDragStart: ut
12312
12316
  } = H.current, wn = {
12313
- activatorEvent: _e,
12317
+ activatorEvent: Oe,
12314
12318
  active: {
12315
12319
  id: bt,
12316
12320
  data: nt.data,
@@ -12325,7 +12329,7 @@ const _P = /* @__PURE__ */ I(function(t) {
12325
12329
  }), y({
12326
12330
  type: "onDragStart",
12327
12331
  event: wn
12328
- }), U(Uo.current), G(_e);
12332
+ }), U(Uo.current), G(Oe);
12329
12333
  });
12330
12334
  },
12331
12335
  onMove(Pe) {
@@ -12352,7 +12356,7 @@ const _P = /* @__PURE__ */ I(function(t) {
12352
12356
  cancelDrop: En
12353
12357
  } = H.current;
12354
12358
  Ct = {
12355
- activatorEvent: _e,
12359
+ activatorEvent: Oe,
12356
12360
  active: nt,
12357
12361
  collisions: ut,
12358
12362
  delta: Sn,
@@ -12376,23 +12380,23 @@ const _P = /* @__PURE__ */ I(function(t) {
12376
12380
  }
12377
12381
  },
12378
12382
  // eslint-disable-next-line react-hooks/exhaustive-deps
12379
- [M]
12380
- ), og = ge((Ie, Ae) => (Me, Rt) => {
12381
- const je = Me.nativeEvent, _e = M.get(Rt);
12383
+ [A]
12384
+ ), og = ge((Ie, Me) => (_e, Rt) => {
12385
+ const je = _e.nativeEvent, Oe = A.get(Rt);
12382
12386
  if (
12383
12387
  // Another sensor is already instantiating
12384
12388
  $.current !== null || // No active draggable
12385
- !_e || // Event has already been captured
12389
+ !Oe || // Event has already been captured
12386
12390
  je.dndKit || je.defaultPrevented
12387
12391
  )
12388
12392
  return;
12389
12393
  const tt = {
12390
- active: _e
12394
+ active: Oe
12391
12395
  };
12392
- Ie(Me, Ae.options, tt) === !0 && (je.dndKit = {
12393
- capturedBy: Ae.sensor
12394
- }, $.current = Rt, Aa(Me, Ae));
12395
- }, [M, Aa]), Ma = fP(u, og);
12396
+ Ie(_e, Me.options, tt) === !0 && (je.dndKit = {
12397
+ capturedBy: Me.sensor
12398
+ }, $.current = Rt, Aa(_e, Me));
12399
+ }, [A, Aa]), Ma = fP(u, og);
12396
12400
  RP(u), Ye(() => {
12397
12401
  ee && C === St.Initializing && w(St.Initialized);
12398
12402
  }, [ee, C]), fe(
@@ -12400,16 +12404,16 @@ const _P = /* @__PURE__ */ I(function(t) {
12400
12404
  const {
12401
12405
  onDragMove: Ie
12402
12406
  } = H.current, {
12403
- active: Ae,
12404
- activatorEvent: Me,
12407
+ active: Me,
12408
+ activatorEvent: _e,
12405
12409
  collisions: Rt,
12406
12410
  over: je
12407
12411
  } = de.current;
12408
- if (!Ae || !Me)
12412
+ if (!Me || !_e)
12409
12413
  return;
12410
- const _e = {
12411
- active: Ae,
12412
- activatorEvent: Me,
12414
+ const Oe = {
12415
+ active: Me,
12416
+ activatorEvent: _e,
12413
12417
  collisions: Rt,
12414
12418
  delta: {
12415
12419
  x: zt.x,
@@ -12418,9 +12422,9 @@ const _P = /* @__PURE__ */ I(function(t) {
12418
12422
  over: je
12419
12423
  };
12420
12424
  pr(() => {
12421
- Ie?.(_e), y({
12425
+ Ie?.(Oe), y({
12422
12426
  type: "onDragMove",
12423
- event: _e
12427
+ event: Oe
12424
12428
  });
12425
12429
  });
12426
12430
  },
@@ -12430,15 +12434,15 @@ const _P = /* @__PURE__ */ I(function(t) {
12430
12434
  () => {
12431
12435
  const {
12432
12436
  active: Ie,
12433
- activatorEvent: Ae,
12434
- collisions: Me,
12437
+ activatorEvent: Me,
12438
+ collisions: _e,
12435
12439
  droppableContainers: Rt,
12436
12440
  scrollAdjustedTranslate: je
12437
12441
  } = de.current;
12438
- if (!Ie || $.current == null || !Ae || !je)
12442
+ if (!Ie || $.current == null || !Me || !je)
12439
12443
  return;
12440
12444
  const {
12441
- onDragOver: _e
12445
+ onDragOver: Oe
12442
12446
  } = H.current, tt = Rt.get(Ta), Xt = tt && tt.rect.current ? {
12443
12447
  id: tt.id,
12444
12448
  rect: tt.rect.current,
@@ -12446,8 +12450,8 @@ const _P = /* @__PURE__ */ I(function(t) {
12446
12450
  disabled: tt.disabled
12447
12451
  } : null, Pe = {
12448
12452
  active: Ie,
12449
- activatorEvent: Ae,
12450
- collisions: Me,
12453
+ activatorEvent: Me,
12454
+ collisions: _e,
12451
12455
  delta: {
12452
12456
  x: je.x,
12453
12457
  y: je.y
@@ -12455,7 +12459,7 @@ const _P = /* @__PURE__ */ I(function(t) {
12455
12459
  over: Xt
12456
12460
  };
12457
12461
  pr(() => {
12458
- Na(Xt), _e?.(Pe), y({
12462
+ Na(Xt), Oe?.(Pe), y({
12459
12463
  type: "onDragOver",
12460
12464
  event: Pe
12461
12465
  });
@@ -12471,10 +12475,10 @@ const _P = /* @__PURE__ */ I(function(t) {
12471
12475
  collisionRect: Yt,
12472
12476
  collisions: Cn,
12473
12477
  droppableRects: re,
12474
- draggableNodes: M,
12478
+ draggableNodes: A,
12475
12479
  draggingNode: Qe,
12476
12480
  draggingNodeRect: et,
12477
- droppableContainers: A,
12481
+ droppableContainers: M,
12478
12482
  over: yt,
12479
12483
  scrollableAncestors: xt,
12480
12484
  scrollAdjustedTranslate: zt
@@ -12482,7 +12486,7 @@ const _P = /* @__PURE__ */ I(function(t) {
12482
12486
  initial: et,
12483
12487
  translated: Yt
12484
12488
  };
12485
- }, [z, ae, Cn, Yt, M, Qe, et, re, A, yt, xt, zt]), cP({
12489
+ }, [z, ae, Cn, Yt, A, Qe, et, re, M, yt, xt, zt]), cP({
12486
12490
  ...Q,
12487
12491
  delta: D,
12488
12492
  draggingRect: Yt,
@@ -12498,8 +12502,8 @@ const _P = /* @__PURE__ */ I(function(t) {
12498
12502
  collisions: Cn,
12499
12503
  containerNodeRect: ce,
12500
12504
  dragOverlay: Ee,
12501
- draggableNodes: M,
12502
- droppableContainers: A,
12505
+ draggableNodes: A,
12506
+ droppableContainers: M,
12503
12507
  droppableRects: re,
12504
12508
  over: yt,
12505
12509
  measureDroppableContainers: se,
@@ -12508,7 +12512,7 @@ const _P = /* @__PURE__ */ I(function(t) {
12508
12512
  measuringConfiguration: J,
12509
12513
  measuringScheduled: ve,
12510
12514
  windowRect: Go
12511
- }), [z, ae, ee, Y, Cn, ce, Ee, M, A, re, yt, se, xt, ur, J, ve, Go]), ig = me(() => ({
12515
+ }), [z, ae, ee, Y, Cn, ce, Ee, A, M, re, yt, se, xt, ur, J, ve, Go]), ig = me(() => ({
12512
12516
  activatorEvent: Y,
12513
12517
  activators: Ma,
12514
12518
  active: z,
@@ -12517,10 +12521,10 @@ const _P = /* @__PURE__ */ I(function(t) {
12517
12521
  draggable: j
12518
12522
  },
12519
12523
  dispatch: R,
12520
- draggableNodes: M,
12524
+ draggableNodes: A,
12521
12525
  over: yt,
12522
12526
  measureDroppableContainers: se
12523
- }), [Y, Ma, z, ee, R, j, M, yt, se]);
12527
+ }), [Y, Ma, z, ee, R, j, A, yt, se]);
12524
12528
  return te.createElement(xp.Provider, {
12525
12529
  value: b
12526
12530
  }, te.createElement(sr.Provider, {
@@ -12536,12 +12540,12 @@ const _P = /* @__PURE__ */ I(function(t) {
12536
12540
  hiddenTextDescribedById: j
12537
12541
  }));
12538
12542
  function ag() {
12539
- const Ie = Z?.autoScrollEnabled === !1, Ae = typeof c == "object" ? c.enabled === !1 : c === !1, Me = S && !Ie && !Ae;
12543
+ const Ie = Z?.autoScrollEnabled === !1, Me = typeof c == "object" ? c.enabled === !1 : c === !1, _e = S && !Ie && !Me;
12540
12544
  return typeof c == "object" ? {
12541
12545
  ...c,
12542
- enabled: Me
12546
+ enabled: _e
12543
12547
  } : {
12544
- enabled: Me
12548
+ enabled: _e
12545
12549
  };
12546
12550
  }
12547
12551
  }), OP = /* @__PURE__ */ Bt(null), Ac = "button", DP = "Draggable";
@@ -12579,7 +12583,7 @@ function Fp(e) {
12579
12583
  // eslint-disable-next-line react-hooks/exhaustive-deps
12580
12584
  [f, t]
12581
12585
  );
12582
- const M = me(() => ({
12586
+ const A = me(() => ({
12583
12587
  role: v,
12584
12588
  tabIndex: g,
12585
12589
  "aria-disabled": o,
@@ -12591,7 +12595,7 @@ function Fp(e) {
12591
12595
  active: c,
12592
12596
  activatorEvent: a,
12593
12597
  activeNodeRect: l,
12594
- attributes: M,
12598
+ attributes: A,
12595
12599
  isDragging: x,
12596
12600
  listeners: o ? void 0 : S,
12597
12601
  node: y,
@@ -12643,8 +12647,8 @@ function Vp(e) {
12643
12647
  ), b = Fo({
12644
12648
  callback: y,
12645
12649
  disabled: m || !i
12646
- }), C = ge((M, D) => {
12647
- b && (D && (b.unobserve(D), f.current = !1), M && b.observe(M));
12650
+ }), C = ge((A, D) => {
12651
+ b && (D && (b.unobserve(D), f.current = !1), A && b.observe(A));
12648
12652
  }, [b]), [w, S] = zr(C), E = $n(t);
12649
12653
  return fe(() => {
12650
12654
  !b || !w.current || (b.disconnect(), f.current = !1, b.observe(w.current));
@@ -12931,7 +12935,7 @@ const XP = /* @__PURE__ */ te.memo((e) => {
12931
12935
  scrollableAncestors: b,
12932
12936
  scrollableAncestorRects: C,
12933
12937
  windowRect: w
12934
- } = $p(), S = $e($o), E = YP(f?.id), M = Lp(i, {
12938
+ } = $p(), S = $e($o), E = YP(f?.id), A = Lp(i, {
12935
12939
  activatorEvent: u,
12936
12940
  active: f,
12937
12941
  activeNodeRect: h,
@@ -12943,14 +12947,14 @@ const XP = /* @__PURE__ */ te.memo((e) => {
12943
12947
  scrollableAncestorRects: C,
12944
12948
  transform: S,
12945
12949
  windowRect: w
12946
- }), D = qi(h), A = UP({
12950
+ }), D = qi(h), M = UP({
12947
12951
  config: o,
12948
12952
  draggableNodes: m,
12949
12953
  droppableContainers: g,
12950
12954
  measuringConfiguration: y
12951
12955
  }), N = D ? x.setRef : void 0;
12952
12956
  return te.createElement($P, null, te.createElement(LP, {
12953
- animation: A
12957
+ animation: M
12954
12958
  }, f && E ? te.createElement(HP, {
12955
12959
  key: E,
12956
12960
  id: f.id,
@@ -12965,7 +12969,7 @@ const XP = /* @__PURE__ */ te.memo((e) => {
12965
12969
  zIndex: l,
12966
12970
  ...s
12967
12971
  },
12968
- transform: M
12972
+ transform: A
12969
12973
  }, r) : null));
12970
12974
  });
12971
12975
  function Zi(e, t, r) {
@@ -13238,9 +13242,9 @@ function dI(e) {
13238
13242
  ...s
13239
13243
  }), [f, s, C, u]), S = me(() => u.slice(u.indexOf(i)), [u, i]), {
13240
13244
  rect: E,
13241
- node: M,
13245
+ node: A,
13242
13246
  isOver: D,
13243
- setNodeRef: A
13247
+ setNodeRef: M
13244
13248
  } = Vp({
13245
13249
  id: i,
13246
13250
  data: w,
@@ -13268,7 +13272,7 @@ function dI(e) {
13268
13272
  ...r
13269
13273
  },
13270
13274
  disabled: b.draggable
13271
- }), W = RE(A, Z), J = !!N, re = J && !m && Cr(h) && Cr(x), se = !R && Y, ve = se && re ? j : null, K = re ? ve ?? (a ?? y)({
13275
+ }), W = RE(M, Z), J = !!N, re = J && !m && Cr(h) && Cr(x), se = !R && Y, ve = se && re ? j : null, K = re ? ve ?? (a ?? y)({
13272
13276
  rects: g,
13273
13277
  activeNodeRect: z,
13274
13278
  activeIndex: h,
@@ -13300,7 +13304,7 @@ function dI(e) {
13300
13304
  }), Ce = lI({
13301
13305
  disabled: !de,
13302
13306
  index: C,
13303
- node: M,
13307
+ node: A,
13304
13308
  rect: E
13305
13309
  });
13306
13310
  return fe(() => {
@@ -13329,12 +13333,12 @@ function dI(e) {
13329
13333
  isSorting: J,
13330
13334
  isDragging: Y,
13331
13335
  listeners: U,
13332
- node: M,
13336
+ node: A,
13333
13337
  overIndex: x,
13334
13338
  over: G,
13335
13339
  setNodeRef: W,
13336
13340
  setActivatorNodeRef: H,
13337
- setDroppableNodeRef: A,
13341
+ setDroppableNodeRef: M,
13338
13342
  setDraggableNodeRef: Z,
13339
13343
  transform: Ce ?? K,
13340
13344
  transition: Ee()
@@ -13485,8 +13489,8 @@ function II() {
13485
13489
  onDragEnd(C) {
13486
13490
  const { active: w, over: S } = C;
13487
13491
  if (!S) return;
13488
- const E = String(w.id), M = String(S.id), D = c.indexOf(E), A = c.indexOf(M);
13489
- D !== -1 && A !== -1 && D !== A && l((N) => Zi(N, D, A));
13492
+ const E = String(w.id), A = String(S.id), D = c.indexOf(E), M = c.indexOf(A);
13493
+ D !== -1 && M !== -1 && D !== M && l((N) => Zi(N, D, M));
13490
13494
  }
13491
13495
  }), !n)
13492
13496
  return null;
@@ -14141,8 +14145,8 @@ var IT = Jp, Wt = "NavigationMenu", [Ji, Qp, TT] = gt(Wt), [Ls, NT, AT] = gt(Wt)
14141
14145
  } = e, [f, h] = d.useState(null), v = q(t, (D) => h(D)), m = Be(l), g = d.useRef(0), x = d.useRef(0), R = d.useRef(0), [y, b] = d.useState(!0), [C, w] = Re({
14142
14146
  prop: o,
14143
14147
  onChange: (D) => {
14144
- const A = D !== "", N = a > 0;
14145
- A ? (window.clearTimeout(R.current), N && b(!1)) : (window.clearTimeout(R.current), R.current = window.setTimeout(
14148
+ const M = D !== "", N = a > 0;
14149
+ M ? (window.clearTimeout(R.current), N && b(!1)) : (window.clearTimeout(R.current), R.current = window.setTimeout(
14146
14150
  () => b(!0),
14147
14151
  a
14148
14152
  )), s?.(D);
@@ -14156,7 +14160,7 @@ var IT = Jp, Wt = "NavigationMenu", [Ji, Qp, TT] = gt(Wt), [Ls, NT, AT] = gt(Wt)
14156
14160
  window.clearTimeout(x.current), w(D);
14157
14161
  },
14158
14162
  [w]
14159
- ), M = d.useCallback(
14163
+ ), A = d.useCallback(
14160
14164
  (D) => {
14161
14165
  C === D ? window.clearTimeout(x.current) : g.current = window.setTimeout(() => {
14162
14166
  window.clearTimeout(x.current), w(D);
@@ -14176,7 +14180,7 @@ var IT = Jp, Wt = "NavigationMenu", [Ji, Qp, TT] = gt(Wt), [Ls, NT, AT] = gt(Wt)
14176
14180
  orientation: c,
14177
14181
  rootNavigationMenu: f,
14178
14182
  onTriggerEnter: (D) => {
14179
- window.clearTimeout(g.current), y ? M(D) : E(D);
14183
+ window.clearTimeout(g.current), y ? A(D) : E(D);
14180
14184
  },
14181
14185
  onTriggerLeave: () => {
14182
14186
  window.clearTimeout(g.current), S();
@@ -14184,7 +14188,7 @@ var IT = Jp, Wt = "NavigationMenu", [Ji, Qp, TT] = gt(Wt), [Ls, NT, AT] = gt(Wt)
14184
14188
  onContentEnter: () => window.clearTimeout(x.current),
14185
14189
  onContentLeave: S,
14186
14190
  onItemSelect: (D) => {
14187
- w((A) => A === D ? "" : D);
14191
+ w((M) => M === D ? "" : D);
14188
14192
  },
14189
14193
  onItemDismiss: () => w(""),
14190
14194
  children: /* @__PURE__ */ p.jsx(
@@ -14514,14 +14518,14 @@ var FT = d.forwardRef((e, t) => {
14514
14518
  }
14515
14519
  }, [u.isRootMenu, e.value, s, R, a]);
14516
14520
  const y = d.useMemo(() => {
14517
- const C = g().map((A) => A.value);
14521
+ const C = g().map((M) => M.value);
14518
14522
  u.dir === "rtl" && C.reverse();
14519
- const w = C.indexOf(u.value), S = C.indexOf(u.previousValue), E = o === u.value, M = S === C.indexOf(o);
14520
- if (!E && !M) return x.current;
14523
+ const w = C.indexOf(u.value), S = C.indexOf(u.previousValue), E = o === u.value, A = S === C.indexOf(o);
14524
+ if (!E && !A) return x.current;
14521
14525
  const D = (() => {
14522
14526
  if (w !== S) {
14523
14527
  if (E && S !== -1) return w > S ? "from-end" : "from-start";
14524
- if (M && w !== -1) return w > S ? "to-start" : "to-end";
14528
+ if (A && w !== -1) return w > S ? "to-start" : "to-end";
14525
14529
  }
14526
14530
  return null;
14527
14531
  })();
@@ -14556,8 +14560,8 @@ var FT = d.forwardRef((e, t) => {
14556
14560
  onKeyDown: O(e.onKeyDown, (b) => {
14557
14561
  const C = b.altKey || b.ctrlKey || b.metaKey;
14558
14562
  if (b.key === "Tab" && !C) {
14559
- const S = Vs(b.currentTarget), E = document.activeElement, M = S.findIndex((N) => N === E), A = b.shiftKey ? S.slice(0, M).reverse() : S.slice(M + 1, S.length);
14560
- na(A) ? b.preventDefault() : n.current?.focus();
14563
+ const S = Vs(b.currentTarget), E = document.activeElement, A = S.findIndex((N) => N === E), M = b.shiftKey ? S.slice(0, A).reverse() : S.slice(A + 1, S.length);
14564
+ na(M) ? b.preventDefault() : n.current?.focus();
14561
14565
  }
14562
14566
  }),
14563
14567
  onEscapeKeyDown: O(e.onEscapeKeyDown, (b) => {
@@ -14793,10 +14797,10 @@ var iN = "MenuPortal", [dO, bh] = Kt(iN, {
14793
14797
  onDismiss: v,
14794
14798
  disableOutsideScroll: m,
14795
14799
  ...g
14796
- } = e, x = Gt(Fe, r), R = cr(Fe, r), y = ar(r), b = xh(r), C = tN(r), [w, S] = d.useState(null), E = d.useRef(null), M = q(t, E, x.onContentChange), D = d.useRef(0), A = d.useRef(""), N = d.useRef(0), V = d.useRef(null), z = d.useRef("right"), $ = d.useRef(0), Z = m ? Un : d.Fragment, U = m ? { as: dN, allowPinchZoom: !0 } : void 0, Y = (H) => {
14797
- const j = A.current + H, W = C().filter((K) => !K.disabled), J = document.activeElement, re = W.find((K) => K.ref.current === J)?.textValue, se = W.map((K) => K.textValue), ve = CN(se, j, re), ae = W.find((K) => K.textValue === ve)?.ref.current;
14800
+ } = e, x = Gt(Fe, r), R = cr(Fe, r), y = ar(r), b = xh(r), C = tN(r), [w, S] = d.useState(null), E = d.useRef(null), A = q(t, E, x.onContentChange), D = d.useRef(0), M = d.useRef(""), N = d.useRef(0), V = d.useRef(null), z = d.useRef("right"), $ = d.useRef(0), Z = m ? Un : d.Fragment, U = m ? { as: dN, allowPinchZoom: !0 } : void 0, Y = (H) => {
14801
+ const j = M.current + H, W = C().filter((K) => !K.disabled), J = document.activeElement, re = W.find((K) => K.ref.current === J)?.textValue, se = W.map((K) => K.textValue), ve = CN(se, j, re), ae = W.find((K) => K.textValue === ve)?.ref.current;
14798
14802
  (function K(Q) {
14799
- A.current = Q, window.clearTimeout(D.current), Q !== "" && (D.current = window.setTimeout(() => K(""), 1e3));
14803
+ M.current = Q, window.clearTimeout(D.current), Q !== "" && (D.current = window.setTimeout(() => K(""), 1e3));
14800
14804
  })(j), ae && setTimeout(() => ae.focus());
14801
14805
  };
14802
14806
  d.useEffect(() => () => window.clearTimeout(D.current), []), ao();
@@ -14805,7 +14809,7 @@ var iN = "MenuPortal", [dO, bh] = Kt(iN, {
14805
14809
  aN,
14806
14810
  {
14807
14811
  scope: r,
14808
- searchRef: A,
14812
+ searchRef: M,
14809
14813
  onItemEnter: d.useCallback(
14810
14814
  (H) => {
14811
14815
  G(H) && H.preventDefault();
@@ -14871,7 +14875,7 @@ var iN = "MenuPortal", [dO, bh] = Kt(iN, {
14871
14875
  dir: R.dir,
14872
14876
  ...y,
14873
14877
  ...g,
14874
- ref: M,
14878
+ ref: A,
14875
14879
  style: { outline: "none", ...g.style },
14876
14880
  onKeyDown: O(g.onKeyDown, (H) => {
14877
14881
  const W = H.target.closest("[data-radix-menu-content]") === H.currentTarget, J = H.ctrlKey || H.altKey || H.metaKey, re = H.key.length === 1;
@@ -14883,7 +14887,7 @@ var iN = "MenuPortal", [dO, bh] = Kt(iN, {
14883
14887
  mh.includes(H.key) && ae.reverse(), RN(ae);
14884
14888
  }),
14885
14889
  onBlur: O(e.onBlur, (H) => {
14886
- H.currentTarget.contains(H.target) || (window.clearTimeout(D.current), A.current = "");
14890
+ H.currentTarget.contains(H.target) || (window.clearTimeout(D.current), M.current = "");
14887
14891
  }),
14888
14892
  onPointerMove: O(
14889
14893
  e.onPointerMove,
@@ -15801,7 +15805,7 @@ function HA() {
15801
15805
  const n = T(o.store, r);
15802
15806
  if (!n)
15803
15807
  return null;
15804
- const i = L(n.props?.active), a = De(X(n.props?.onSelectId), o.dispatchAction), c = P("radix-navigation-menu-link", _(n.styleIds), s), l = o.renderChildren(n.children ?? []), u = B(n.props, /* @__PURE__ */ new Set(["active", "onSelectId"])), f = { outline: "none" };
15808
+ const i = L(n.props?.active), a = Ae(X(n.props?.onSelectId), o.dispatchAction), c = P("radix-navigation-menu-link", _(n.styleIds), s), l = o.renderChildren(n.children ?? []), u = B(n.props, /* @__PURE__ */ new Set(["active", "onSelectId"])), f = { outline: "none" };
15805
15809
  return /* @__PURE__ */ p.jsx(
15806
15810
  zT,
15807
15811
  {
@@ -15975,7 +15979,7 @@ function XA() {
15975
15979
  const n = T(o.store, r);
15976
15980
  if (!n)
15977
15981
  return null;
15978
- const i = L(n.props?.disabled), a = De(X(n.props?.onSelectId), o.dispatchAction), c = P("radix-menubar-item", _(n.styleIds), s), l = o.renderChildren(n.children ?? []), u = B(n.props, /* @__PURE__ */ new Set(["disabled", "onSelectId"])), f = { outline: "none" };
15982
+ const i = L(n.props?.disabled), a = Ae(X(n.props?.onSelectId), o.dispatchAction), c = P("radix-menubar-item", _(n.styleIds), s), l = o.renderChildren(n.children ?? []), u = B(n.props, /* @__PURE__ */ new Set(["disabled", "onSelectId"])), f = { outline: "none" };
15979
15983
  return /* @__PURE__ */ p.jsx(
15980
15984
  lA,
15981
15985
  {
@@ -16228,7 +16232,7 @@ function sM() {
16228
16232
  const n = T(o.store, r);
16229
16233
  if (!n)
16230
16234
  return null;
16231
- const i = L(n.props?.disabled), a = De(X(n.props?.onInvokeId), o.dispatchAction), c = P("radix-toolbar-button", _(n.styleIds), s), l = o.renderChildren(n.children ?? []), u = B(n.props, /* @__PURE__ */ new Set(["disabled", "onInvokeId"])), f = { appearance: "none", outline: "none" };
16235
+ const i = L(n.props?.disabled), a = Ae(X(n.props?.onInvokeId), o.dispatchAction), c = P("radix-toolbar-button", _(n.styleIds), s), l = o.renderChildren(n.children ?? []), u = B(n.props, /* @__PURE__ */ new Set(["disabled", "onInvokeId"])), f = { appearance: "none", outline: "none" };
16232
16236
  return /* @__PURE__ */ p.jsx(
16233
16237
  NA,
16234
16238
  {
@@ -16757,8 +16761,8 @@ var $v = "ToastViewport", GM = ["F8"], Us = "toast.viewportPause", zs = "toast.v
16757
16761
  l.current?.focus();
16758
16762
  return;
16759
16763
  }
16760
- const D = g({ tabbingDirection: S ? "backwards" : "forwards" }), A = D.findIndex((N) => N === w);
16761
- fs(D.slice(A + 1)) ? y.preventDefault() : S ? l.current?.focus() : u.current?.focus();
16764
+ const D = g({ tabbingDirection: S ? "backwards" : "forwards" }), M = D.findIndex((N) => N === w);
16765
+ fs(D.slice(M + 1)) ? y.preventDefault() : S ? l.current?.focus() : u.current?.focus();
16762
16766
  }
16763
16767
  };
16764
16768
  return x.addEventListener("keydown", R), () => x.removeEventListener("keydown", R);
@@ -16877,11 +16881,11 @@ var [qM, ZM] = Lv(dr, {
16877
16881
  onSwipeCancel: h,
16878
16882
  onSwipeEnd: v,
16879
16883
  ...m
16880
- } = e, g = Ko(dr, r), [x, R] = d.useState(null), y = q(t, ($) => R($)), b = d.useRef(null), C = d.useRef(null), w = s || g.duration, S = d.useRef(0), E = d.useRef(w), M = d.useRef(0), { onToastAdd: D, onToastRemove: A } = g, N = he(() => {
16884
+ } = e, g = Ko(dr, r), [x, R] = d.useState(null), y = q(t, ($) => R($)), b = d.useRef(null), C = d.useRef(null), w = s || g.duration, S = d.useRef(0), E = d.useRef(w), A = d.useRef(0), { onToastAdd: D, onToastRemove: M } = g, N = he(() => {
16881
16885
  x?.contains(document.activeElement) && g.viewport?.focus(), i();
16882
16886
  }), V = d.useCallback(
16883
16887
  ($) => {
16884
- !$ || $ === 1 / 0 || (window.clearTimeout(M.current), S.current = (/* @__PURE__ */ new Date()).getTime(), M.current = window.setTimeout(N, $));
16888
+ !$ || $ === 1 / 0 || (window.clearTimeout(A.current), S.current = (/* @__PURE__ */ new Date()).getTime(), A.current = window.setTimeout(N, $));
16885
16889
  },
16886
16890
  [N]
16887
16891
  );
@@ -16892,7 +16896,7 @@ var [qM, ZM] = Lv(dr, {
16892
16896
  V(E.current), l?.();
16893
16897
  }, U = () => {
16894
16898
  const Y = (/* @__PURE__ */ new Date()).getTime() - S.current;
16895
- E.current = E.current - Y, window.clearTimeout(M.current), c?.();
16899
+ E.current = E.current - Y, window.clearTimeout(A.current), c?.();
16896
16900
  };
16897
16901
  return $.addEventListener(Us, U), $.addEventListener(zs, Z), () => {
16898
16902
  $.removeEventListener(Us, U), $.removeEventListener(zs, Z);
@@ -16900,7 +16904,7 @@ var [qM, ZM] = Lv(dr, {
16900
16904
  }
16901
16905
  }, [g.viewport, w, c, l, V]), d.useEffect(() => {
16902
16906
  n && !g.isClosePausedRef.current && V(w);
16903
- }, [n, w, g.isClosePausedRef, V]), d.useEffect(() => (D(), () => A()), [D, A]);
16907
+ }, [n, w, g.isClosePausedRef, V]), d.useEffect(() => (D(), () => M()), [D, M]);
16904
16908
  const z = d.useMemo(() => x ? Xv(x) : null, [x]);
16905
16909
  return g.viewport ? /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
16906
16910
  z && /* @__PURE__ */ p.jsx(
@@ -17481,7 +17485,7 @@ function M_() {
17481
17485
  const n = T(o.store, r);
17482
17486
  if (!n)
17483
17487
  return null;
17484
- const i = L(n.props?.forceMount), a = qv(X(n.props?.onPointerDownOutsideId), o.dispatchAction), c = Qv(X(n.props?.onEscapeKeyDownId), o.dispatchAction), l = Zv(X(n.props?.onFocusOutsideId), o.dispatchAction), u = Jv(X(n.props?.onInteractOutsideId), o.dispatchAction), f = De(X(n.props?.onOpenAutoFocusId), o.dispatchAction), h = De(X(n.props?.onCloseAutoFocusId), o.dispatchAction), v = P("radix-dialog-content", _(n.styleIds), s), m = o.renderChildren(n.children ?? []), g = B(
17488
+ const i = L(n.props?.forceMount), a = qv(X(n.props?.onPointerDownOutsideId), o.dispatchAction), c = Qv(X(n.props?.onEscapeKeyDownId), o.dispatchAction), l = Zv(X(n.props?.onFocusOutsideId), o.dispatchAction), u = Jv(X(n.props?.onInteractOutsideId), o.dispatchAction), f = Ae(X(n.props?.onOpenAutoFocusId), o.dispatchAction), h = Ae(X(n.props?.onCloseAutoFocusId), o.dispatchAction), v = P("radix-dialog-content", _(n.styleIds), s), m = o.renderChildren(n.children ?? []), g = B(
17485
17489
  n.props,
17486
17490
  /* @__PURE__ */ new Set([
17487
17491
  "forceMount",
@@ -17763,7 +17767,7 @@ function W_() {
17763
17767
  const n = T(o.store, r);
17764
17768
  if (!n)
17765
17769
  return null;
17766
- const i = De(X(n.props?.onInvokeId), o.dispatchAction), a = P("radix-alert-dialog-action", _(n.styleIds), s), c = o.renderChildren(n.children ?? []), l = { appearance: "none", outline: "none" };
17770
+ const i = Ae(X(n.props?.onInvokeId), o.dispatchAction), a = P("radix-alert-dialog-action", _(n.styleIds), s), c = o.renderChildren(n.children ?? []), l = { appearance: "none", outline: "none" };
17767
17771
  return /* @__PURE__ */ p.jsx(
17768
17772
  EM,
17769
17773
  {
@@ -17814,7 +17818,7 @@ function K_() {
17814
17818
  }
17815
17819
  );
17816
17820
  }
17817
- const S = P("radix-hover-card", _(n.styleIds), s), E = b.length > 0 ? b : n.children ?? [], M = o.renderChildren(E), D = B(n.props, /* @__PURE__ */ new Set(["open", "defaultOpen", "openDelay", "closeDelay", "onOpenChangeId"])), A = /* @__PURE__ */ p.jsx(
17821
+ const S = P("radix-hover-card", _(n.styleIds), s), E = b.length > 0 ? b : n.children ?? [], A = o.renderChildren(E), D = B(n.props, /* @__PURE__ */ new Set(["open", "defaultOpen", "openDelay", "closeDelay", "onOpenChangeId"])), M = /* @__PURE__ */ p.jsx(
17818
17822
  Lc,
17819
17823
  {
17820
17824
  open: h ? i : void 0,
@@ -17822,7 +17826,7 @@ function K_() {
17822
17826
  onOpenChange: g,
17823
17827
  openDelay: c,
17824
17828
  closeDelay: l,
17825
- children: M
17829
+ children: A
17826
17830
  }
17827
17831
  );
17828
17832
  return S || ht(D) ? /* @__PURE__ */ p.jsx(
@@ -17831,9 +17835,9 @@ function K_() {
17831
17835
  ...D,
17832
17836
  "data-ikon-node-id": n.id,
17833
17837
  className: S,
17834
- children: A
17838
+ children: M
17835
17839
  }
17836
- ) : A;
17840
+ ) : M;
17837
17841
  });
17838
17842
  return (t) => {
17839
17843
  if (t.type === "radix-hover-card")
@@ -17991,9 +17995,9 @@ function Z_() {
17991
17995
  const n = T(o.store, r), i = k(n?.props?.type), a = L(n?.props?.open), c = L(n?.props?.defaultOpen), l = ne(n?.props?.duration), u = L(n?.props?.forceMount), [f, h] = oe(c ?? !1);
17992
17996
  if (!n)
17993
17997
  return null;
17994
- const v = a !== void 0, m = v ? !!a : f, g = qe(X(n.props?.onOpenChangeId), o.dispatchAction), x = De(X(n.props?.onEscapeKeyDownId), o.dispatchAction), R = De(X(n.props?.onPauseId), o.dispatchAction), y = De(X(n.props?.onResumeId), o.dispatchAction), b = (N) => {
17998
+ const v = a !== void 0, m = v ? !!a : f, g = qe(X(n.props?.onOpenChangeId), o.dispatchAction), x = Ae(X(n.props?.onEscapeKeyDownId), o.dispatchAction), R = Ae(X(n.props?.onPauseId), o.dispatchAction), y = Ae(X(n.props?.onResumeId), o.dispatchAction), b = (N) => {
17995
17999
  v || h(N), g?.(N);
17996
- }, C = Pr(X(n.props?.onSwipeStartId), o.dispatchAction), w = Pr(X(n.props?.onSwipeMoveId), o.dispatchAction), S = Pr(X(n.props?.onSwipeEndId), o.dispatchAction), E = Pr(X(n.props?.onSwipeCancelId), o.dispatchAction), M = P("radix-toast", _(n.styleIds), s), D = o.renderChildren(n.children ?? []), A = B(
18000
+ }, C = Pr(X(n.props?.onSwipeStartId), o.dispatchAction), w = Pr(X(n.props?.onSwipeMoveId), o.dispatchAction), S = Pr(X(n.props?.onSwipeEndId), o.dispatchAction), E = Pr(X(n.props?.onSwipeCancelId), o.dispatchAction), A = P("radix-toast", _(n.styleIds), s), D = o.renderChildren(n.children ?? []), M = B(
17997
18001
  n.props,
17998
18002
  /* @__PURE__ */ new Set([
17999
18003
  "type",
@@ -18014,7 +18018,7 @@ function Z_() {
18014
18018
  return /* @__PURE__ */ p.jsx(
18015
18019
  a_,
18016
18020
  {
18017
- ...A,
18021
+ ...M,
18018
18022
  "data-ikon-node-id": n.id,
18019
18023
  type: i,
18020
18024
  open: m,
@@ -18029,7 +18033,7 @@ function Z_() {
18029
18033
  onSwipeMove: w,
18030
18034
  onSwipeEnd: S,
18031
18035
  onSwipeCancel: E,
18032
- className: M,
18036
+ className: A,
18033
18037
  children: D
18034
18038
  }
18035
18039
  );
@@ -18084,7 +18088,7 @@ function eO() {
18084
18088
  const n = T(o.store, r);
18085
18089
  if (!n)
18086
18090
  return null;
18087
- const i = k(n.props?.altText) ?? "", a = De(X(n.props?.onInvokeId), o.dispatchAction), c = P("radix-toast-action", _(n.styleIds), s), l = o.renderChildren(n.children ?? []), u = B(n.props, /* @__PURE__ */ new Set(["altText", "onInvokeId"])), f = { appearance: "none", outline: "none" };
18091
+ const i = k(n.props?.altText) ?? "", a = Ae(X(n.props?.onInvokeId), o.dispatchAction), c = P("radix-toast-action", _(n.styleIds), s), l = o.renderChildren(n.children ?? []), u = B(n.props, /* @__PURE__ */ new Set(["altText", "onInvokeId"])), f = { appearance: "none", outline: "none" };
18088
18092
  return /* @__PURE__ */ p.jsx(
18089
18093
  d_,
18090
18094
  {
@@ -18500,7 +18504,7 @@ export {
18500
18504
  x_ as createRadixTooltipTriggerResolver,
18501
18505
  yE as createRadixVisuallyHiddenResolver,
18502
18506
  Ve as createStringDispatcher,
18503
- De as createVoidDispatcher,
18507
+ Ae as createVoidDispatcher,
18504
18508
  sO as loadRadixModule,
18505
18509
  B as pickPrimitiveProps,
18506
18510
  uO as registerRadixModule,