@moises.ai/design-system 2.2.10 → 2.2.12

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.
@@ -109,7 +109,7 @@ var Tl = [
109
109
  "span",
110
110
  "svg",
111
111
  "ul"
112
- ], M = Tl.reduce((e, t) => {
112
+ ], T = Tl.reduce((e, t) => {
113
113
  const n = /* @__PURE__ */ pe(`Primitive.${t}`), o = c.forwardRef((r, a) => {
114
114
  const { asChild: i, ...s } = r, l = i ? n : t;
115
115
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v(l, { ...s, ref: a });
@@ -119,7 +119,7 @@ var Tl = [
119
119
  function pi(e, t) {
120
120
  e && di.flushSync(() => e.dispatchEvent(t));
121
121
  }
122
- var ug = M, vi = Object.freeze({
122
+ var ug = T, vi = Object.freeze({
123
123
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
124
124
  position: "absolute",
125
125
  border: 0,
@@ -133,7 +133,7 @@ var ug = M, vi = Object.freeze({
133
133
  wordWrap: "normal"
134
134
  }), Ml = "VisuallyHidden", Jn = c.forwardRef(
135
135
  (e, t) => /* @__PURE__ */ v(
136
- M.span,
136
+ T.span,
137
137
  {
138
138
  ...e,
139
139
  ref: t,
@@ -484,19 +484,19 @@ function fg(e) {
484
484
  };
485
485
  s.displayName = t + "Init";
486
486
  const l = (C) => {
487
- const { scope: S, children: x, state: P } = C, E = G.useRef(null), [A, _] = G.useState(
487
+ const { scope: S, children: x, state: P } = C, E = G.useRef(null), [M, _] = G.useState(
488
488
  null
489
489
  ), O = N(E, _), [D, B] = P;
490
490
  return G.useEffect(() => {
491
- if (!A) return;
491
+ if (!M) return;
492
492
  const $ = kl();
493
- return $.observe(A, {
493
+ return $.observe(M, {
494
494
  childList: !0,
495
495
  subtree: !0
496
496
  }), () => {
497
497
  $.disconnect();
498
498
  };
499
- }, [A]), /* @__PURE__ */ v(
499
+ }, [M]), /* @__PURE__ */ v(
500
500
  r,
501
501
  {
502
502
  scope: S,
@@ -504,7 +504,7 @@ function fg(e) {
504
504
  setItemMap: B,
505
505
  collectionRef: O,
506
506
  collectionRefObject: E,
507
- collectionElement: A,
507
+ collectionElement: M,
508
508
  children: x
509
509
  }
510
510
  );
@@ -512,14 +512,14 @@ function fg(e) {
512
512
  l.displayName = t + "Impl";
513
513
  const f = e + "CollectionSlot", u = /* @__PURE__ */ pe(f), d = G.forwardRef(
514
514
  (C, S) => {
515
- const { scope: x, children: P } = C, E = a(f, x), A = N(S, E.collectionRef);
516
- return /* @__PURE__ */ v(u, { ref: A, children: P });
515
+ const { scope: x, children: P } = C, E = a(f, x), M = N(S, E.collectionRef);
516
+ return /* @__PURE__ */ v(u, { ref: M, children: P });
517
517
  }
518
518
  );
519
519
  d.displayName = f;
520
520
  const p = e + "CollectionItemSlot", h = "data-radix-collection-item", m = /* @__PURE__ */ pe(p), g = G.forwardRef(
521
521
  (C, S) => {
522
- const { scope: x, children: P, ...E } = C, A = G.useRef(null), [_, O] = G.useState(null), D = N(S, A, O), B = a(p, x), { setItemMap: $ } = B, F = G.useRef(E);
522
+ const { scope: x, children: P, ...E } = C, M = G.useRef(null), [_, O] = G.useState(null), D = N(S, M, O), B = a(p, x), { setItemMap: $ } = B, F = G.useRef(E);
523
523
  Dl(F.current, E) || (F.current = E);
524
524
  const V = F.current;
525
525
  return G.useEffect(() => {
@@ -722,7 +722,7 @@ var zt = "Collapsible", [jl, zl] = H(zt), [Kl, eo] = jl(zt), to = c.forwardRef(
722
722
  open: l,
723
723
  onOpenToggle: c.useCallback(() => f((u) => !u), [f]),
724
724
  children: /* @__PURE__ */ v(
725
- M.div,
725
+ T.div,
726
726
  {
727
727
  "data-state": ao(l),
728
728
  "data-disabled": a ? "" : void 0,
@@ -739,7 +739,7 @@ var bi = "CollapsibleTrigger", no = c.forwardRef(
739
739
  (e, t) => {
740
740
  const { __scopeCollapsible: n, ...o } = e, r = eo(bi, n);
741
741
  return /* @__PURE__ */ v(
742
- M.button,
742
+ T.button,
743
743
  {
744
744
  type: "button",
745
745
  "aria-controls": r.contentId,
@@ -778,7 +778,7 @@ var Yl = c.forwardRef((e, t) => {
778
778
  d.current = C.height, h.current = C.width, b.current || (y.style.transitionDuration = w.current.transitionDuration, y.style.animationName = w.current.animationName), l(o);
779
779
  }
780
780
  }, [i.open, o]), /* @__PURE__ */ v(
781
- M.div,
781
+ T.div,
782
782
  {
783
783
  "data-state": ao(i.open),
784
784
  "data-disabled": i.disabled ? "" : void 0,
@@ -857,11 +857,11 @@ var eu = "DismissableLayer", Bn = "dismissableLayer.update", tu = "dismissableLa
857
857
  onDismiss: s,
858
858
  ...l
859
859
  } = e, f = c.useContext(Ci), [u, d] = c.useState(null), p = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = c.useState({}), m = N(t, (E) => d(E)), g = Array.from(f.layers), [b] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), w = g.indexOf(b), y = u ? g.indexOf(u) : -1, C = f.layersWithOutsidePointerEventsDisabled.size > 0, S = y >= w, x = ru((E) => {
860
- const A = E.target, _ = [...f.branches].some((O) => O.contains(A));
860
+ const M = E.target, _ = [...f.branches].some((O) => O.contains(M));
861
861
  !S || _ || (r == null || r(E), i == null || i(E), E.defaultPrevented || s == null || s());
862
862
  }, p), P = au((E) => {
863
- const A = E.target;
864
- [...f.branches].some((O) => O.contains(A)) || (a == null || a(E), i == null || i(E), E.defaultPrevented || s == null || s());
863
+ const M = E.target;
864
+ [...f.branches].some((O) => O.contains(M)) || (a == null || a(E), i == null || i(E), E.defaultPrevented || s == null || s());
865
865
  }, p);
866
866
  return Jl((E) => {
867
867
  y === f.layers.size - 1 && (o == null || o(E), !E.defaultPrevented && s && (E.preventDefault(), s()));
@@ -876,7 +876,7 @@ var eu = "DismissableLayer", Bn = "dismissableLayer.update", tu = "dismissableLa
876
876
  const E = () => h({});
877
877
  return document.addEventListener(Bn, E), () => document.removeEventListener(Bn, E);
878
878
  }, []), /* @__PURE__ */ v(
879
- M.div,
879
+ T.div,
880
880
  {
881
881
  ...l,
882
882
  ref: m,
@@ -903,7 +903,7 @@ var ou = "DismissableLayerBranch", Si = c.forwardRef((e, t) => {
903
903
  return n.branches.add(a), () => {
904
904
  n.branches.delete(a);
905
905
  };
906
- }, [n.branches]), /* @__PURE__ */ v(M.div, { ...e, ref: r });
906
+ }, [n.branches]), /* @__PURE__ */ v(T.div, { ...e, ref: r });
907
907
  });
908
908
  Si.displayName = ou;
909
909
  function ru(e, t = globalThis == null ? void 0 : globalThis.document) {
@@ -1022,7 +1022,7 @@ var hg = ke, mg = Si, _n = "focusScope.autoFocusOnMount", An = "focusScope.autoF
1022
1022
  },
1023
1023
  [n, o, h.paused]
1024
1024
  );
1025
- return /* @__PURE__ */ v(M.div, { tabIndex: -1, ...i, ref: p, onKeyDown: m });
1025
+ return /* @__PURE__ */ v(T.div, { tabIndex: -1, ...i, ref: p, onKeyDown: m });
1026
1026
  });
1027
1027
  Kt.displayName = iu;
1028
1028
  function su(e, { select: t = !1 } = {}) {
@@ -1092,7 +1092,7 @@ var pu = "Portal", Pe = c.forwardRef((e, t) => {
1092
1092
  const { container: n, ...o } = e, [r, a] = c.useState(!1);
1093
1093
  ee(() => a(!0), []);
1094
1094
  const i = n || r && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
1095
- return i ? xl.createPortal(/* @__PURE__ */ v(M.div, { ...o, ref: t }), i) : null;
1095
+ return i ? xl.createPortal(/* @__PURE__ */ v(T.div, { ...o, ref: t }), i) : null;
1096
1096
  });
1097
1097
  Pe.displayName = pu;
1098
1098
  var vu = Pe;
@@ -1517,15 +1517,18 @@ function Yu(e) {
1517
1517
  var w = Ct(g), y = n.current, C = "deltaX" in g ? g.deltaX : y[0] - w[0], S = "deltaY" in g ? g.deltaY : y[1] - w[1], x, P = g.target, E = Math.abs(C) > Math.abs(S) ? "h" : "v";
1518
1518
  if ("touches" in g && E === "h" && P.type === "range")
1519
1519
  return !1;
1520
- var A = Ua(E, P);
1521
- if (!A)
1520
+ var M = window.getSelection(), _ = M && M.anchorNode, O = _ ? _ === P || _.contains(P) : !1;
1521
+ if (O)
1522
+ return !1;
1523
+ var D = Ua(E, P);
1524
+ if (!D)
1522
1525
  return !0;
1523
- if (A ? x = E : (x = E === "v" ? "h" : "v", A = Ua(E, P)), !A)
1526
+ if (D ? x = E : (x = E === "v" ? "h" : "v", D = Ua(E, P)), !D)
1524
1527
  return !1;
1525
1528
  if (!o.current && "changedTouches" in g && (C || S) && (o.current = x), !x)
1526
1529
  return !0;
1527
- var _ = o.current || x;
1528
- return Vu(_, b, g, _ === "h" ? C : S);
1530
+ var B = o.current || x;
1531
+ return Vu(B, b, g, B === "h" ? C : S);
1529
1532
  }, []), l = c.useCallback(function(g) {
1530
1533
  var b = g;
1531
1534
  if (!(!Ge.length || Ge[Ge.length - 1] !== a)) {
@@ -1670,7 +1673,7 @@ var Di = "DialogTrigger", uo = c.forwardRef(
1670
1673
  (e, t) => {
1671
1674
  const { __scopeDialog: n, ...o } = e, r = ce(Di, n), a = N(t, r.triggerRef);
1672
1675
  return /* @__PURE__ */ v(
1673
- M.button,
1676
+ T.button,
1674
1677
  {
1675
1678
  type: "button",
1676
1679
  "aria-haspopup": "dialog",
@@ -1706,7 +1709,7 @@ var nd = /* @__PURE__ */ pe("DialogOverlay.RemoveScroll"), od = c.forwardRef(
1706
1709
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1707
1710
  // ie. when `Overlay` and `Content` are siblings
1708
1711
  /* @__PURE__ */ v(Xt, { as: nd, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ v(
1709
- M.div,
1712
+ T.div,
1710
1713
  {
1711
1714
  "data-state": yo(r.open),
1712
1715
  ...o,
@@ -1810,14 +1813,14 @@ var rd = c.forwardRef(
1810
1813
  ), mo = "DialogTitle", go = c.forwardRef(
1811
1814
  (e, t) => {
1812
1815
  const { __scopeDialog: n, ...o } = e, r = ce(mo, n);
1813
- return /* @__PURE__ */ v(M.h2, { id: r.titleId, ...o, ref: t });
1816
+ return /* @__PURE__ */ v(T.h2, { id: r.titleId, ...o, ref: t });
1814
1817
  }
1815
1818
  );
1816
1819
  go.displayName = mo;
1817
1820
  var $i = "DialogDescription", bo = c.forwardRef(
1818
1821
  (e, t) => {
1819
1822
  const { __scopeDialog: n, ...o } = e, r = ce($i, n);
1820
- return /* @__PURE__ */ v(M.p, { id: r.descriptionId, ...o, ref: t });
1823
+ return /* @__PURE__ */ v(T.p, { id: r.descriptionId, ...o, ref: t });
1821
1824
  }
1822
1825
  );
1823
1826
  bo.displayName = $i;
@@ -1825,7 +1828,7 @@ var Fi = "DialogClose", wo = c.forwardRef(
1825
1828
  (e, t) => {
1826
1829
  const { __scopeDialog: n, ...o } = e, r = ce(Fi, n);
1827
1830
  return /* @__PURE__ */ v(
1828
- M.button,
1831
+ T.button,
1829
1832
  {
1830
1833
  type: "button",
1831
1834
  ...o,
@@ -2018,7 +2021,7 @@ var Ad = "AspectRatio", Oo = c.forwardRef(
2018
2021
  },
2019
2022
  "data-radix-aspect-ratio-wrapper": "",
2020
2023
  children: /* @__PURE__ */ v(
2021
- M.div,
2024
+ T.div,
2022
2025
  {
2023
2026
  ...r,
2024
2027
  ref: t,
@@ -2180,7 +2183,7 @@ var Io = "Avatar", [Ld, kd] = H(Io), [$d, Ji] = Ld(Io), No = c.forwardRef(
2180
2183
  scope: n,
2181
2184
  imageLoadingStatus: r,
2182
2185
  onImageLoadingStatusChange: a,
2183
- children: /* @__PURE__ */ v(M.span, { ...o, ref: t })
2186
+ children: /* @__PURE__ */ v(T.span, { ...o, ref: t })
2184
2187
  }
2185
2188
  );
2186
2189
  }
@@ -2194,7 +2197,7 @@ var es = "AvatarImage", Do = c.forwardRef(
2194
2197
  });
2195
2198
  return ee(() => {
2196
2199
  s !== "idle" && l(s);
2197
- }, [s, l]), s === "loaded" ? /* @__PURE__ */ v(M.img, { ...a, ref: t, src: o }) : null;
2200
+ }, [s, l]), s === "loaded" ? /* @__PURE__ */ v(T.img, { ...a, ref: t, src: o }) : null;
2198
2201
  }
2199
2202
  );
2200
2203
  Do.displayName = es;
@@ -2206,7 +2209,7 @@ var ts = "AvatarFallback", Lo = c.forwardRef(
2206
2209
  const l = window.setTimeout(() => s(!0), o);
2207
2210
  return () => window.clearTimeout(l);
2208
2211
  }
2209
- }, [o]), i && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ v(M.span, { ...r, ref: t }) : null;
2212
+ }, [o]), i && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ v(T.span, { ...r, ref: t }) : null;
2210
2213
  }
2211
2214
  );
2212
2215
  Lo.displayName = ts;
@@ -2336,7 +2339,7 @@ var ns = "CheckboxTrigger", Mt = c.forwardRef(
2336
2339
  return w.addEventListener("reset", y), () => w.removeEventListener("reset", y);
2337
2340
  }
2338
2341
  }, [a, d]), /* @__PURE__ */ v(
2339
- M.button,
2342
+ T.button,
2340
2343
  {
2341
2344
  type: "button",
2342
2345
  role: "checkbox",
@@ -2414,7 +2417,7 @@ var os = "CheckboxIndicator", jn = c.forwardRef(
2414
2417
  {
2415
2418
  present: o || xe(a.checked) || a.checked === !0,
2416
2419
  children: /* @__PURE__ */ v(
2417
- M.span,
2420
+ T.span,
2418
2421
  {
2419
2422
  "data-state": as(a.checked),
2420
2423
  "data-disabled": a.disabled ? "" : void 0,
@@ -2457,7 +2460,7 @@ var rs = "CheckboxBubbleInput", Ot = c.forwardRef(
2457
2460
  }, [p, g, a, r]);
2458
2461
  const w = c.useRef(xe(a) ? !1 : a);
2459
2462
  return /* @__PURE__ */ v(
2460
- M.input,
2463
+ T.input,
2461
2464
  {
2462
2465
  type: "checkbox",
2463
2466
  "aria-hidden": !0,
@@ -2793,7 +2796,7 @@ const rf = (e) => ({
2793
2796
  }, h = Bo(r), m = Go(h), g = await i.getDimensions(f), b = h === "y", w = b ? "top" : "left", y = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", S = a.reference[m] + a.reference[h] - p[h] - a.floating[m], x = p[h] - a.reference[h], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(f));
2794
2797
  let E = P ? P[C] : 0;
2795
2798
  (!E || !await (i.isElement == null ? void 0 : i.isElement(P))) && (E = s.floating[C] || a.floating[m]);
2796
- const A = S / 2 - x / 2, _ = E / 2 - g[m] / 2 - 1, O = Re(d[w], _), D = Re(d[y], _), B = O, $ = E - g[m] - D, F = E / 2 - g[m] / 2 + A, V = zn(B, F, $), L = !l.arrow && Xe(r) != null && F !== V && a.reference[m] / 2 - (F < B ? O : D) - g[m] / 2 < 0, k = L ? F < B ? F - B : F - $ : 0;
2799
+ const M = S / 2 - x / 2, _ = E / 2 - g[m] / 2 - 1, O = Re(d[w], _), D = Re(d[y], _), B = O, $ = E - g[m] - D, F = E / 2 - g[m] / 2 + M, V = zn(B, F, $), L = !l.arrow && Xe(r) != null && F !== V && a.reference[m] / 2 - (F < B ? O : D) - g[m] / 2 < 0, k = L ? F < B ? F - B : F - $ : 0;
2797
2800
  return {
2798
2801
  [h]: p[h] + k,
2799
2802
  data: {
@@ -2832,11 +2835,11 @@ const rf = (e) => ({
2832
2835
  return {};
2833
2836
  const w = ye(r), y = de(s), C = ye(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(f.floating)), x = p || (C || !g ? [Nt(s)] : Zd(s)), P = m !== "none";
2834
2837
  !p && P && x.push(...tf(s, g, m, S));
2835
- const E = [s, ...x], A = await ot(t, b), _ = [];
2838
+ const E = [s, ...x], M = await ot(t, b), _ = [];
2836
2839
  let O = ((o = a.flip) == null ? void 0 : o.overflows) || [];
2837
- if (u && _.push(A[w]), d) {
2840
+ if (u && _.push(M[w]), d) {
2838
2841
  const F = qd(r, i, S);
2839
- _.push(A[F[0]], A[F[1]]);
2842
+ _.push(M[F[0]], M[F[1]]);
2840
2843
  }
2841
2844
  if (O = [...O, {
2842
2845
  placement: r,
@@ -2863,13 +2866,13 @@ const rf = (e) => ({
2863
2866
  var $;
2864
2867
  const k = ($ = O.filter((I) => {
2865
2868
  if (P) {
2866
- const T = de(I.placement);
2867
- return T === y || // Create a bias to the `y` side axis due to horizontal
2869
+ const A = de(I.placement);
2870
+ return A === y || // Create a bias to the `y` side axis due to horizontal
2868
2871
  // reading directions favoring greater width.
2869
- T === "y";
2872
+ A === "y";
2870
2873
  }
2871
2874
  return !0;
2872
- }).map((I) => [I.placement, I.overflows.filter((T) => T > 0).reduce((T, W) => T + W, 0)]).sort((I, T) => I[1] - T[1])[0]) == null ? void 0 : $[0];
2875
+ }).map((I) => [I.placement, I.overflows.filter((A) => A > 0).reduce((A, W) => A + W, 0)]).sort((I, A) => I[1] - A[1])[0]) == null ? void 0 : $[0];
2873
2876
  k && (L = k);
2874
2877
  break;
2875
2878
  }
@@ -3110,14 +3113,14 @@ const lf = function(e) {
3110
3113
  let b, w;
3111
3114
  d === "top" || d === "bottom" ? (b = d, w = p === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = d, b = p === "end" ? "top" : "bottom");
3112
3115
  const y = g - u.top - u.bottom, C = m - u.left - u.right, S = Re(g - u[b], y), x = Re(m - u[w], C), P = !t.middlewareData.shift;
3113
- let E = S, A = x;
3114
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = C), (o = t.middlewareData.shift) != null && o.enabled.y && (E = y), P && !p) {
3116
+ let E = S, M = x;
3117
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = C), (o = t.middlewareData.shift) != null && o.enabled.y && (E = y), P && !p) {
3115
3118
  const O = Q(u.left, 0), D = Q(u.right, 0), B = Q(u.top, 0), $ = Q(u.bottom, 0);
3116
- h ? A = m - 2 * (O !== 0 || D !== 0 ? O + D : Q(u.left, u.right)) : E = g - 2 * (B !== 0 || $ !== 0 ? B + $ : Q(u.top, u.bottom));
3119
+ h ? M = m - 2 * (O !== 0 || D !== 0 ? O + D : Q(u.left, u.right)) : E = g - 2 * (B !== 0 || $ !== 0 ? B + $ : Q(u.top, u.bottom));
3117
3120
  }
3118
3121
  await l({
3119
3122
  ...t,
3120
- availableWidth: A,
3123
+ availableWidth: M,
3121
3124
  availableHeight: E
3122
3125
  });
3123
3126
  const _ = await i.getDimensions(s.floating);
@@ -3701,7 +3704,7 @@ function Yf(e) {
3701
3704
  I !== P.current && (P.current = I, g(I));
3702
3705
  }, []), C = c.useCallback((I) => {
3703
3706
  I !== E.current && (E.current = I, w(I));
3704
- }, []), S = a || m, x = i || b, P = c.useRef(null), E = c.useRef(null), A = c.useRef(u), _ = l != null, O = $n(l), D = $n(r), B = $n(f), $ = c.useCallback(() => {
3707
+ }, []), S = a || m, x = i || b, P = c.useRef(null), E = c.useRef(null), M = c.useRef(u), _ = l != null, O = $n(l), D = $n(r), B = $n(f), $ = c.useCallback(() => {
3705
3708
  if (!P.current || !E.current)
3706
3709
  return;
3707
3710
  const I = {
@@ -3709,22 +3712,22 @@ function Yf(e) {
3709
3712
  strategy: n,
3710
3713
  middleware: p
3711
3714
  };
3712
- D.current && (I.platform = D.current), jf(P.current, E.current, I).then((T) => {
3715
+ D.current && (I.platform = D.current), jf(P.current, E.current, I).then((A) => {
3713
3716
  const W = {
3714
- ...T,
3717
+ ...A,
3715
3718
  // The floating element's position may be recomputed while it's closed
3716
3719
  // but still mounted (such as when transitioning out). To ensure
3717
3720
  // `isPositioned` will be `false` initially on the next open, avoid
3718
3721
  // setting it to `true` when `open === false` (must be specified).
3719
3722
  isPositioned: B.current !== !1
3720
3723
  };
3721
- F.current && !Lt(A.current, W) && (A.current = W, di.flushSync(() => {
3724
+ F.current && !Lt(M.current, W) && (M.current = W, di.flushSync(() => {
3722
3725
  d(W);
3723
3726
  }));
3724
3727
  });
3725
3728
  }, [p, t, n, D, B]);
3726
3729
  At(() => {
3727
- f === !1 && A.current.isPositioned && (A.current.isPositioned = !1, d((I) => ({
3730
+ f === !1 && M.current.isPositioned && (M.current.isPositioned = !1, d((I) => ({
3728
3731
  ...I,
3729
3732
  isPositioned: !1
3730
3733
  })));
@@ -3755,16 +3758,16 @@ function Yf(e) {
3755
3758
  };
3756
3759
  if (!L.floating)
3757
3760
  return I;
3758
- const T = ai(L.floating, u.x), W = ai(L.floating, u.y);
3761
+ const A = ai(L.floating, u.x), W = ai(L.floating, u.y);
3759
3762
  return s ? {
3760
3763
  ...I,
3761
- transform: "translate(" + T + "px, " + W + "px)",
3764
+ transform: "translate(" + A + "px, " + W + "px)",
3762
3765
  ...ms(L.floating) >= 1.5 && {
3763
3766
  willChange: "transform"
3764
3767
  }
3765
3768
  } : {
3766
3769
  position: n,
3767
- left: T,
3770
+ left: A,
3768
3771
  top: W
3769
3772
  };
3770
3773
  }, [n, s, L.floating, u.x, u.y]);
@@ -3822,7 +3825,7 @@ const Xf = (e) => {
3822
3825
  var op = "Arrow", gs = c.forwardRef((e, t) => {
3823
3826
  const { children: n, width: o = 10, height: r = 5, ...a } = e;
3824
3827
  return /* @__PURE__ */ v(
3825
- M.svg,
3828
+ T.svg,
3826
3829
  {
3827
3830
  ...a,
3828
3831
  ref: t,
@@ -3845,7 +3848,7 @@ var Cs = "PopperAnchor", Ss = c.forwardRef(
3845
3848
  const { __scopePopper: n, virtualRef: o, ...r } = e, a = ws(Cs, n), i = c.useRef(null), s = N(t, i);
3846
3849
  return c.useEffect(() => {
3847
3850
  a.onAnchorChange((o == null ? void 0 : o.current) || i.current);
3848
- }), o ? null : /* @__PURE__ */ v(M.div, { ...r, ref: s });
3851
+ }), o ? null : /* @__PURE__ */ v(T.div, { ...r, ref: s });
3849
3852
  }
3850
3853
  );
3851
3854
  Ss.displayName = Cs;
@@ -3867,7 +3870,7 @@ var jo = "PopperContent", [ip, sp] = bs(jo), xs = c.forwardRef(
3867
3870
  updatePositionStrategy: h = "optimized",
3868
3871
  onPlaced: m,
3869
3872
  ...g
3870
- } = e, b = ws(jo, n), [w, y] = c.useState(null), C = N(t, (tt) => y(tt)), [S, x] = c.useState(null), P = Zt(S), E = (P == null ? void 0 : P.width) ?? 0, A = (P == null ? void 0 : P.height) ?? 0, _ = o + (a !== "center" ? "-" + a : ""), O = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, D = Array.isArray(f) ? f : [f], B = D.length > 0, $ = {
3873
+ } = e, b = ws(jo, n), [w, y] = c.useState(null), C = N(t, (tt) => y(tt)), [S, x] = c.useState(null), P = Zt(S), E = (P == null ? void 0 : P.width) ?? 0, M = (P == null ? void 0 : P.height) ?? 0, _ = o + (a !== "center" ? "-" + a : ""), O = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, D = Array.isArray(f) ? f : [f], B = D.length > 0, $ = {
3871
3874
  padding: O,
3872
3875
  boundary: D.filter(lp),
3873
3876
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -3883,7 +3886,7 @@ var jo = "PopperContent", [ip, sp] = bs(jo), xs = c.forwardRef(
3883
3886
  reference: b.anchor
3884
3887
  },
3885
3888
  middleware: [
3886
- qf({ mainAxis: r + A, alignmentAxis: i }),
3889
+ qf({ mainAxis: r + M, alignmentAxis: i }),
3887
3890
  l && Zf({
3888
3891
  mainAxis: !0,
3889
3892
  crossAxis: !1,
@@ -3899,10 +3902,10 @@ var jo = "PopperContent", [ip, sp] = bs(jo), xs = c.forwardRef(
3899
3902
  }
3900
3903
  }),
3901
3904
  S && np({ element: S, padding: s }),
3902
- up({ arrowWidth: E, arrowHeight: A }),
3905
+ up({ arrowWidth: E, arrowHeight: M }),
3903
3906
  p && tp({ strategy: "referenceHidden", ...$ })
3904
3907
  ]
3905
- }), [T, W] = Ps(L), Z = z(m);
3908
+ }), [A, W] = Ps(L), Z = z(m);
3906
3909
  ee(() => {
3907
3910
  k && (Z == null || Z());
3908
3911
  }, [k, Z]);
@@ -3937,15 +3940,15 @@ var jo = "PopperContent", [ip, sp] = bs(jo), xs = c.forwardRef(
3937
3940
  ip,
3938
3941
  {
3939
3942
  scope: n,
3940
- placedSide: T,
3943
+ placedSide: A,
3941
3944
  onArrowChange: x,
3942
3945
  arrowX: le,
3943
3946
  arrowY: Ze,
3944
3947
  shouldHideArrow: Qe,
3945
3948
  children: /* @__PURE__ */ v(
3946
- M.div,
3949
+ T.div,
3947
3950
  {
3948
- "data-side": T,
3951
+ "data-side": A,
3949
3952
  "data-align": W,
3950
3953
  ...g,
3951
3954
  ref: C,
@@ -4058,9 +4061,9 @@ var mp = c.forwardRef((e, t) => {
4058
4061
  caller: dt
4059
4062
  }), [w, y] = c.useState(!1), C = z(f), S = _s(n), x = c.useRef(!1), [P, E] = c.useState(0);
4060
4063
  return c.useEffect(() => {
4061
- const A = p.current;
4062
- if (A)
4063
- return A.addEventListener(Fn, C), () => A.removeEventListener(Fn, C);
4064
+ const M = p.current;
4065
+ if (M)
4066
+ return M.addEventListener(Fn, C), () => M.removeEventListener(Fn, C);
4064
4067
  }, [C]), /* @__PURE__ */ v(
4065
4068
  vp,
4066
4069
  {
@@ -4070,20 +4073,20 @@ var mp = c.forwardRef((e, t) => {
4070
4073
  loop: r,
4071
4074
  currentTabStopId: g,
4072
4075
  onItemFocus: c.useCallback(
4073
- (A) => b(A),
4076
+ (M) => b(M),
4074
4077
  [b]
4075
4078
  ),
4076
4079
  onItemShiftTab: c.useCallback(() => y(!0), []),
4077
4080
  onFocusableItemAdd: c.useCallback(
4078
- () => E((A) => A + 1),
4081
+ () => E((M) => M + 1),
4079
4082
  []
4080
4083
  ),
4081
4084
  onFocusableItemRemove: c.useCallback(
4082
- () => E((A) => A - 1),
4085
+ () => E((M) => M - 1),
4083
4086
  []
4084
4087
  ),
4085
4088
  children: /* @__PURE__ */ v(
4086
- M.div,
4089
+ T.div,
4087
4090
  {
4088
4091
  tabIndex: w || P === 0 ? -1 : 0,
4089
4092
  "data-orientation": o,
@@ -4093,11 +4096,11 @@ var mp = c.forwardRef((e, t) => {
4093
4096
  onMouseDown: R(e.onMouseDown, () => {
4094
4097
  x.current = !0;
4095
4098
  }),
4096
- onFocus: R(e.onFocus, (A) => {
4099
+ onFocus: R(e.onFocus, (M) => {
4097
4100
  const _ = !x.current;
4098
- if (A.target === A.currentTarget && _ && !w) {
4101
+ if (M.target === M.currentTarget && _ && !w) {
4099
4102
  const O = new CustomEvent(Fn, dp);
4100
- if (A.currentTarget.dispatchEvent(O), !O.defaultPrevented) {
4103
+ if (M.currentTarget.dispatchEvent(O), !O.defaultPrevented) {
4101
4104
  const D = S().filter((L) => L.focusable), B = D.find((L) => L.active), $ = D.find((L) => L.id === g), V = [B, $, ...D].filter(
4102
4105
  Boolean
4103
4106
  ).map((L) => L.ref.current);
@@ -4132,7 +4135,7 @@ var mp = c.forwardRef((e, t) => {
4132
4135
  focusable: o,
4133
4136
  active: r,
4134
4137
  children: /* @__PURE__ */ v(
4135
- M.span,
4138
+ T.span,
4136
4139
  {
4137
4140
  tabIndex: d ? 0 : -1,
4138
4141
  "data-orientation": u.orientation,
@@ -4310,17 +4313,17 @@ var re = "MenuContent", [Mp, Yo] = $e(re), Fs = c.forwardRef(
4310
4313
  onDismiss: h,
4311
4314
  disableOutsideScroll: m,
4312
4315
  ...g
4313
- } = e, b = Te(re, n), w = vt(re, n), y = pt(n), C = Ns(n), S = Ep(n), [x, P] = c.useState(null), E = c.useRef(null), A = N(t, E, b.onContentChange), _ = c.useRef(0), O = c.useRef(""), D = c.useRef(0), B = c.useRef(null), $ = c.useRef("right"), F = c.useRef(0), V = m ? Xt : c.Fragment, L = m ? { as: Np, allowPinchZoom: !0 } : void 0, k = (T) => {
4316
+ } = e, b = Te(re, n), w = vt(re, n), y = pt(n), C = Ns(n), S = Ep(n), [x, P] = c.useState(null), E = c.useRef(null), M = N(t, E, b.onContentChange), _ = c.useRef(0), O = c.useRef(""), D = c.useRef(0), B = c.useRef(null), $ = c.useRef("right"), F = c.useRef(0), V = m ? Xt : c.Fragment, L = m ? { as: Np, allowPinchZoom: !0 } : void 0, k = (A) => {
4314
4317
  var ge, Je;
4315
- const W = O.current + T, Z = S().filter((te) => !te.disabled), le = document.activeElement, Ze = (ge = Z.find((te) => te.ref.current === le)) == null ? void 0 : ge.textValue, Qe = Z.map((te) => te.textValue), gt = jp(Qe, W, Ze), Ie = (Je = Z.find((te) => te.textValue === gt)) == null ? void 0 : Je.ref.current;
4318
+ const W = O.current + A, Z = S().filter((te) => !te.disabled), le = document.activeElement, Ze = (ge = Z.find((te) => te.ref.current === le)) == null ? void 0 : ge.textValue, Qe = Z.map((te) => te.textValue), gt = jp(Qe, W, Ze), Ie = (Je = Z.find((te) => te.textValue === gt)) == null ? void 0 : Je.ref.current;
4316
4319
  (function te(et) {
4317
4320
  O.current = et, window.clearTimeout(_.current), et !== "" && (_.current = window.setTimeout(() => te(""), 1e3));
4318
4321
  })(W), Ie && setTimeout(() => Ie.focus());
4319
4322
  };
4320
4323
  c.useEffect(() => () => window.clearTimeout(_.current), []), io();
4321
- const I = c.useCallback((T) => {
4324
+ const I = c.useCallback((A) => {
4322
4325
  var Z, le;
4323
- return $.current === ((Z = B.current) == null ? void 0 : Z.side) && Kp(T, (le = B.current) == null ? void 0 : le.area);
4326
+ return $.current === ((Z = B.current) == null ? void 0 : Z.side) && Kp(A, (le = B.current) == null ? void 0 : le.area);
4324
4327
  }, []);
4325
4328
  return /* @__PURE__ */ v(
4326
4329
  Mp,
@@ -4328,36 +4331,36 @@ var re = "MenuContent", [Mp, Yo] = $e(re), Fs = c.forwardRef(
4328
4331
  scope: n,
4329
4332
  searchRef: O,
4330
4333
  onItemEnter: c.useCallback(
4331
- (T) => {
4332
- I(T) && T.preventDefault();
4334
+ (A) => {
4335
+ I(A) && A.preventDefault();
4333
4336
  },
4334
4337
  [I]
4335
4338
  ),
4336
4339
  onItemLeave: c.useCallback(
4337
- (T) => {
4340
+ (A) => {
4338
4341
  var W;
4339
- I(T) || ((W = E.current) == null || W.focus(), P(null));
4342
+ I(A) || ((W = E.current) == null || W.focus(), P(null));
4340
4343
  },
4341
4344
  [I]
4342
4345
  ),
4343
4346
  onTriggerLeave: c.useCallback(
4344
- (T) => {
4345
- I(T) && T.preventDefault();
4347
+ (A) => {
4348
+ I(A) && A.preventDefault();
4346
4349
  },
4347
4350
  [I]
4348
4351
  ),
4349
4352
  pointerGraceTimerRef: D,
4350
- onPointerGraceIntentChange: c.useCallback((T) => {
4351
- B.current = T;
4353
+ onPointerGraceIntentChange: c.useCallback((A) => {
4354
+ B.current = A;
4352
4355
  }, []),
4353
4356
  children: /* @__PURE__ */ v(V, { ...L, children: /* @__PURE__ */ v(
4354
4357
  Kt,
4355
4358
  {
4356
4359
  asChild: !0,
4357
4360
  trapped: r,
4358
- onMountAutoFocus: R(a, (T) => {
4361
+ onMountAutoFocus: R(a, (A) => {
4359
4362
  var W;
4360
- T.preventDefault(), (W = E.current) == null || W.focus({ preventScroll: !0 });
4363
+ A.preventDefault(), (W = E.current) == null || W.focus({ preventScroll: !0 });
4361
4364
  }),
4362
4365
  onUnmountAutoFocus: i,
4363
4366
  children: /* @__PURE__ */ v(
@@ -4380,8 +4383,8 @@ var re = "MenuContent", [Mp, Yo] = $e(re), Fs = c.forwardRef(
4380
4383
  loop: o,
4381
4384
  currentTabStopId: x,
4382
4385
  onCurrentTabStopIdChange: P,
4383
- onEntryFocus: R(l, (T) => {
4384
- w.isUsingKeyboardRef.current || T.preventDefault();
4386
+ onEntryFocus: R(l, (A) => {
4387
+ w.isUsingKeyboardRef.current || A.preventDefault();
4385
4388
  }),
4386
4389
  preventScrollOnEntryFocus: !0,
4387
4390
  children: /* @__PURE__ */ v(
@@ -4394,27 +4397,27 @@ var re = "MenuContent", [Mp, Yo] = $e(re), Fs = c.forwardRef(
4394
4397
  dir: w.dir,
4395
4398
  ...y,
4396
4399
  ...g,
4397
- ref: A,
4400
+ ref: M,
4398
4401
  style: { outline: "none", ...g.style },
4399
- onKeyDown: R(g.onKeyDown, (T) => {
4400
- const Z = T.target.closest("[data-radix-menu-content]") === T.currentTarget, le = T.ctrlKey || T.altKey || T.metaKey, Ze = T.key.length === 1;
4401
- Z && (T.key === "Tab" && T.preventDefault(), !le && Ze && k(T.key));
4402
+ onKeyDown: R(g.onKeyDown, (A) => {
4403
+ const Z = A.target.closest("[data-radix-menu-content]") === A.currentTarget, le = A.ctrlKey || A.altKey || A.metaKey, Ze = A.key.length === 1;
4404
+ Z && (A.key === "Tab" && A.preventDefault(), !le && Ze && k(A.key));
4402
4405
  const Qe = E.current;
4403
- if (T.target !== Qe || !Sp.includes(T.key)) return;
4404
- T.preventDefault();
4406
+ if (A.target !== Qe || !Sp.includes(A.key)) return;
4407
+ A.preventDefault();
4405
4408
  const Ie = S().filter((ge) => !ge.disabled).map((ge) => ge.ref.current);
4406
- Is.includes(T.key) && Ie.reverse(), Up(Ie);
4409
+ Is.includes(A.key) && Ie.reverse(), Up(Ie);
4407
4410
  }),
4408
- onBlur: R(e.onBlur, (T) => {
4409
- T.currentTarget.contains(T.target) || (window.clearTimeout(_.current), O.current = "");
4411
+ onBlur: R(e.onBlur, (A) => {
4412
+ A.currentTarget.contains(A.target) || (window.clearTimeout(_.current), O.current = "");
4410
4413
  }),
4411
4414
  onPointerMove: R(
4412
4415
  e.onPointerMove,
4413
- it((T) => {
4414
- const W = T.target, Z = F.current !== T.clientX;
4415
- if (T.currentTarget.contains(W) && Z) {
4416
- const le = T.clientX > F.current ? "right" : "left";
4417
- $.current = le, F.current = T.clientX;
4416
+ it((A) => {
4417
+ const W = A.target, Z = F.current !== A.clientX;
4418
+ if (A.currentTarget.contains(W) && Z) {
4419
+ const le = A.clientX > F.current ? "right" : "left";
4420
+ $.current = le, F.current = A.clientX;
4418
4421
  }
4419
4422
  })
4420
4423
  )
@@ -4434,14 +4437,14 @@ Fs.displayName = re;
4434
4437
  var Dp = "MenuGroup", qo = c.forwardRef(
4435
4438
  (e, t) => {
4436
4439
  const { __scopeMenu: n, ...o } = e;
4437
- return /* @__PURE__ */ v(M.div, { role: "group", ...o, ref: t });
4440
+ return /* @__PURE__ */ v(T.div, { role: "group", ...o, ref: t });
4438
4441
  }
4439
4442
  );
4440
4443
  qo.displayName = Dp;
4441
4444
  var Lp = "MenuLabel", Gs = c.forwardRef(
4442
4445
  (e, t) => {
4443
4446
  const { __scopeMenu: n, ...o } = e;
4444
- return /* @__PURE__ */ v(M.div, { ...o, ref: t });
4447
+ return /* @__PURE__ */ v(T.div, { ...o, ref: t });
4445
4448
  }
4446
4449
  );
4447
4450
  Gs.displayName = Lp;
@@ -4491,7 +4494,7 @@ var Bs = c.forwardRef(
4491
4494
  disabled: o,
4492
4495
  textValue: r ?? p,
4493
4496
  children: /* @__PURE__ */ v(sn, { asChild: !0, ...s, focusable: !o, children: /* @__PURE__ */ v(
4494
- M.div,
4497
+ T.div,
4495
4498
  {
4496
4499
  role: "menuitem",
4497
4500
  "data-highlighted": u ? "" : void 0,
@@ -4583,7 +4586,7 @@ var Zo = "MenuItemIndicator", [zs, Gp] = $e(
4583
4586
  {
4584
4587
  present: o || $t(a.checked) || a.checked === !0,
4585
4588
  children: /* @__PURE__ */ v(
4586
- M.span,
4589
+ T.span,
4587
4590
  {
4588
4591
  ...r,
4589
4592
  ref: t,
@@ -4599,7 +4602,7 @@ var Bp = "MenuSeparator", Ys = c.forwardRef(
4599
4602
  (e, t) => {
4600
4603
  const { __scopeMenu: n, ...o } = e;
4601
4604
  return /* @__PURE__ */ v(
4602
- M.div,
4605
+ T.div,
4603
4606
  {
4604
4607
  role: "separator",
4605
4608
  "aria-orientation": "horizontal",
@@ -4836,7 +4839,7 @@ var wc = "ContextMenuTrigger", nr = c.forwardRef(
4836
4839
  return c.useEffect(() => u, [u]), c.useEffect(() => void (o && u()), [o, u]), /* @__PURE__ */ be(Ve, { children: [
4837
4840
  /* @__PURE__ */ v(oc, { ...i, virtualRef: l }),
4838
4841
  /* @__PURE__ */ v(
4839
- M.span,
4842
+ T.span,
4840
4843
  {
4841
4844
  "data-state": a.open ? "open" : "closed",
4842
4845
  "data-disabled": o ? "" : void 0,
@@ -5065,7 +5068,7 @@ var xc = "DropdownMenuTrigger", br = c.forwardRef(
5065
5068
  (e, t) => {
5066
5069
  const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, a = Sc(xc, n), i = q(n);
5067
5070
  return /* @__PURE__ */ v(oc, { asChild: !0, ...i, children: /* @__PURE__ */ v(
5068
- M.button,
5071
+ T.button,
5069
5072
  {
5070
5073
  type: "button",
5071
5074
  id: a.triggerId,
@@ -5291,7 +5294,7 @@ var _c = "HoverCardTrigger", Nr = c.forwardRef(
5291
5294
  (e, t) => {
5292
5295
  const { __scopeHoverCard: n, ...o } = e, r = pn(_c, n), a = fn(n);
5293
5296
  return /* @__PURE__ */ v(ut, { asChild: !0, ...a, children: /* @__PURE__ */ v(
5294
- M.a,
5297
+ T.a,
5295
5298
  {
5296
5299
  "data-state": r.open ? "open" : "closed",
5297
5300
  ...o,
@@ -5474,7 +5477,7 @@ Gr.displayName = Tc;
5474
5477
  var Mc = "PopoverTrigger", Br = c.forwardRef(
5475
5478
  (e, t) => {
5476
5479
  const { __scopePopover: n, ...o } = e, r = Me(Mc, n), a = ht(n), i = N(t, r.triggerRef), s = /* @__PURE__ */ v(
5477
- M.button,
5480
+ T.button,
5478
5481
  {
5479
5482
  type: "button",
5480
5483
  "aria-haspopup": "dialog",
@@ -5620,7 +5623,7 @@ var wh = /* @__PURE__ */ pe("PopoverContent.RemoveScroll"), yh = c.forwardRef(
5620
5623
  (e, t) => {
5621
5624
  const { __scopePopover: n, ...o } = e, r = Me(Ic, n);
5622
5625
  return /* @__PURE__ */ v(
5623
- M.button,
5626
+ T.button,
5624
5627
  {
5625
5628
  type: "button",
5626
5629
  ...o,
@@ -5674,7 +5677,7 @@ var zr = "Progress", Kr = 100, [Mh, Oh] = H(zr), [Ih, Nh] = Mh(zr), Yr = c.forwa
5674
5677
  o !== null && !ci(o, s) && console.error(kh(`${o}`, "Progress"));
5675
5678
  const l = ci(o, s) ? o : null, f = Bt(l) ? a(l, s) : void 0;
5676
5679
  return /* @__PURE__ */ v(Ih, { scope: n, value: l, max: s, children: /* @__PURE__ */ v(
5677
- M.div,
5680
+ T.div,
5678
5681
  {
5679
5682
  "aria-valuemax": s,
5680
5683
  "aria-valuemin": 0,
@@ -5695,7 +5698,7 @@ var Dc = "ProgressIndicator", Xr = c.forwardRef(
5695
5698
  (e, t) => {
5696
5699
  const { __scopeProgress: n, ...o } = e, r = Nh(Dc, n);
5697
5700
  return /* @__PURE__ */ v(
5698
- M.div,
5701
+ T.div,
5699
5702
  {
5700
5703
  "data-state": Lc(r.value, r.max),
5701
5704
  "data-value": r.value ?? void 0,
@@ -5757,7 +5760,7 @@ var qr = "Radio", [Gh, kc] = H(qr), [Bh, Wh] = Gh(qr), $c = c.forwardRef(
5757
5760
  } = e, [d, p] = c.useState(null), h = N(t, (b) => p(b)), m = c.useRef(!1), g = d ? f || !!d.closest("form") : !0;
5758
5761
  return /* @__PURE__ */ be(Bh, { scope: n, checked: r, disabled: i, children: [
5759
5762
  /* @__PURE__ */ v(
5760
- M.button,
5763
+ T.button,
5761
5764
  {
5762
5765
  type: "button",
5763
5766
  role: "radio",
@@ -5795,7 +5798,7 @@ var Fc = "RadioIndicator", Gc = c.forwardRef(
5795
5798
  (e, t) => {
5796
5799
  const { __scopeRadio: n, forceMount: o, ...r } = e, a = Wh(Fc, n);
5797
5800
  return /* @__PURE__ */ v(U, { present: o || a.checked, children: /* @__PURE__ */ v(
5798
- M.span,
5801
+ T.span,
5799
5802
  {
5800
5803
  "data-state": Wc(a.checked),
5801
5804
  "data-disabled": a.disabled ? "" : void 0,
@@ -5827,7 +5830,7 @@ var Hh = "RadioBubbleInput", Bc = c.forwardRef(
5827
5830
  h.call(u, n), u.dispatchEvent(m);
5828
5831
  }
5829
5832
  }, [l, n, o]), /* @__PURE__ */ v(
5830
- M.input,
5833
+ T.input,
5831
5834
  {
5832
5835
  type: "radio",
5833
5836
  "aria-hidden": !0,
@@ -5892,7 +5895,7 @@ var Uh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], hn = "RadioGroup",
5892
5895
  dir: m,
5893
5896
  loop: u,
5894
5897
  children: /* @__PURE__ */ v(
5895
- M.div,
5898
+ T.div,
5896
5899
  {
5897
5900
  role: "radiogroup",
5898
5901
  "aria-required": i,
@@ -5981,7 +5984,7 @@ var ea = "ScrollArea", [jc, Jh] = H(ea), [em, ae] = jc(ea), ta = c.forwardRef(
5981
5984
  dir: r,
5982
5985
  scrollHideDelay: a = 600,
5983
5986
  ...i
5984
- } = e, [s, l] = c.useState(null), [f, u] = c.useState(null), [d, p] = c.useState(null), [h, m] = c.useState(null), [g, b] = c.useState(null), [w, y] = c.useState(0), [C, S] = c.useState(0), [x, P] = c.useState(!1), [E, A] = c.useState(!1), _ = N(t, (D) => l(D)), O = Le(r);
5987
+ } = e, [s, l] = c.useState(null), [f, u] = c.useState(null), [d, p] = c.useState(null), [h, m] = c.useState(null), [g, b] = c.useState(null), [w, y] = c.useState(0), [C, S] = c.useState(0), [x, P] = c.useState(!1), [E, M] = c.useState(!1), _ = N(t, (D) => l(D)), O = Le(r);
5985
5988
  return /* @__PURE__ */ v(
5986
5989
  em,
5987
5990
  {
@@ -6001,11 +6004,11 @@ var ea = "ScrollArea", [jc, Jh] = H(ea), [em, ae] = jc(ea), ta = c.forwardRef(
6001
6004
  scrollbarY: g,
6002
6005
  onScrollbarYChange: b,
6003
6006
  scrollbarYEnabled: E,
6004
- onScrollbarYEnabledChange: A,
6007
+ onScrollbarYEnabledChange: M,
6005
6008
  onCornerWidthChange: y,
6006
6009
  onCornerHeightChange: S,
6007
6010
  children: /* @__PURE__ */ v(
6008
- M.div,
6011
+ T.div,
6009
6012
  {
6010
6013
  dir: O,
6011
6014
  ...i,
@@ -6038,7 +6041,7 @@ var zc = "ScrollAreaViewport", na = c.forwardRef(
6038
6041
  }
6039
6042
  ),
6040
6043
  /* @__PURE__ */ v(
6041
- M.div,
6044
+ T.div,
6042
6045
  {
6043
6046
  "data-radix-scroll-area-viewport": "",
6044
6047
  ...a,
@@ -6304,7 +6307,7 @@ var tm = c.forwardRef((e, t) => {
6304
6307
  onResize: d,
6305
6308
  ...p
6306
6309
  } = e, h = ae(me, n), [m, g] = c.useState(null), b = N(t, (_) => g(_)), w = c.useRef(null), y = c.useRef(""), C = h.viewport, S = o.content - o.viewport, x = z(u), P = z(l), E = gn(d, 10);
6307
- function A(_) {
6310
+ function M(_) {
6308
6311
  if (w.current) {
6309
6312
  const O = _.clientX - w.current.left, D = _.clientY - w.current.top;
6310
6313
  f({ x: O, y: D });
@@ -6327,15 +6330,15 @@ var tm = c.forwardRef((e, t) => {
6327
6330
  onThumbPositionChange: P,
6328
6331
  onThumbPointerDown: z(s),
6329
6332
  children: /* @__PURE__ */ v(
6330
- M.div,
6333
+ T.div,
6331
6334
  {
6332
6335
  ...p,
6333
6336
  ref: b,
6334
6337
  style: { position: "absolute", ...p.style },
6335
6338
  onPointerDown: R(e.onPointerDown, (_) => {
6336
- _.button === 0 && (_.target.setPointerCapture(_.pointerId), w.current = m.getBoundingClientRect(), y.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"), A(_));
6339
+ _.button === 0 && (_.target.setPointerCapture(_.pointerId), w.current = m.getBoundingClientRect(), y.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", h.viewport && (h.viewport.style.scrollBehavior = "auto"), M(_));
6337
6340
  }),
6338
- onPointerMove: R(e.onPointerMove, A),
6341
+ onPointerMove: R(e.onPointerMove, M),
6339
6342
  onPointerUp: R(e.onPointerUp, (_) => {
6340
6343
  const O = _.target;
6341
6344
  O.hasPointerCapture(_.pointerId) && O.releasePointerCapture(_.pointerId), document.body.style.webkitUserSelect = y.current, h.viewport && (h.viewport.style.scrollBehavior = ""), w.current = null;
@@ -6369,7 +6372,7 @@ var tm = c.forwardRef((e, t) => {
6369
6372
  return s(), d.addEventListener("scroll", p), () => d.removeEventListener("scroll", p);
6370
6373
  }
6371
6374
  }, [a.viewport, u, s]), /* @__PURE__ */ v(
6372
- M.div,
6375
+ T.div,
6373
6376
  {
6374
6377
  "data-state": i.hasThumb ? "visible" : "hidden",
6375
6378
  ...r,
@@ -6407,7 +6410,7 @@ var sm = c.forwardRef((e, t) => {
6407
6410
  const u = ((d = r.scrollbarY) == null ? void 0 : d.offsetWidth) || 0;
6408
6411
  r.onCornerWidthChange(u), i(u);
6409
6412
  }), f ? /* @__PURE__ */ v(
6410
- M.div,
6413
+ T.div,
6411
6414
  {
6412
6415
  ...o,
6413
6416
  ref: t,
@@ -6516,7 +6519,7 @@ var bn = "Switch", [hm, mm] = H(bn), [gm, bm] = hm(bn), ca = c.forwardRef(
6516
6519
  });
6517
6520
  return /* @__PURE__ */ be(gm, { scope: n, checked: w, disabled: s, children: [
6518
6521
  /* @__PURE__ */ v(
6519
- M.button,
6522
+ T.button,
6520
6523
  {
6521
6524
  type: "button",
6522
6525
  role: "switch",
@@ -6555,7 +6558,7 @@ var Jc = "SwitchThumb", la = c.forwardRef(
6555
6558
  (e, t) => {
6556
6559
  const { __scopeSwitch: n, ...o } = e, r = bm(Jc, n);
6557
6560
  return /* @__PURE__ */ v(
6558
- M.span,
6561
+ T.span,
6559
6562
  {
6560
6563
  "data-state": tl(r.checked),
6561
6564
  "data-disabled": r.disabled ? "" : void 0,
@@ -6650,7 +6653,7 @@ var wn = "Tabs", [Sm, xm] = H(wn, [
6650
6653
  dir: u,
6651
6654
  activationMode: l,
6652
6655
  children: /* @__PURE__ */ v(
6653
- M.div,
6656
+ T.div,
6654
6657
  {
6655
6658
  dir: u,
6656
6659
  "data-orientation": i,
@@ -6675,7 +6678,7 @@ var ol = "TabsList", fa = c.forwardRef(
6675
6678
  dir: a.dir,
6676
6679
  loop: o,
6677
6680
  children: /* @__PURE__ */ v(
6678
- M.div,
6681
+ T.div,
6679
6682
  {
6680
6683
  role: "tablist",
6681
6684
  "aria-orientation": a.orientation,
@@ -6699,7 +6702,7 @@ var rl = "TabsTrigger", pa = c.forwardRef(
6699
6702
  focusable: !r,
6700
6703
  active: u,
6701
6704
  children: /* @__PURE__ */ v(
6702
- M.button,
6705
+ T.button,
6703
6706
  {
6704
6707
  type: "button",
6705
6708
  role: "tab",
@@ -6735,7 +6738,7 @@ var al = "TabsContent", va = c.forwardRef(
6735
6738
  const p = requestAnimationFrame(() => d.current = !1);
6736
6739
  return () => cancelAnimationFrame(p);
6737
6740
  }, []), /* @__PURE__ */ v(U, { present: r || u, children: ({ present: p }) => /* @__PURE__ */ v(
6738
- M.div,
6741
+ T.div,
6739
6742
  {
6740
6743
  "data-state": u ? "active" : "inactive",
6741
6744
  "data-orientation": s.orientation,
@@ -6783,7 +6786,7 @@ var cl = "Toggle", yn = c.forwardRef((e, t) => {
6783
6786
  caller: cl
6784
6787
  });
6785
6788
  return /* @__PURE__ */ v(
6786
- M.button,
6789
+ T.button,
6787
6790
  {
6788
6791
  type: "button",
6789
6792
  "aria-pressed": i,
@@ -6890,9 +6893,9 @@ var [Nm, Dm] = ll(Oe), pl = G.forwardRef(
6890
6893
  orientation: a,
6891
6894
  dir: u,
6892
6895
  loop: s,
6893
- children: /* @__PURE__ */ v(M.div, { ...d, ref: t })
6896
+ children: /* @__PURE__ */ v(T.div, { ...d, ref: t })
6894
6897
  }
6895
- ) : /* @__PURE__ */ v(M.div, { ...d, ref: t }) });
6898
+ ) : /* @__PURE__ */ v(T.div, { ...d, ref: t }) });
6896
6899
  }
6897
6900
  ), Ut = "ToggleGroupItem", ha = G.forwardRef(
6898
6901
  (e, t) => {
@@ -7027,7 +7030,7 @@ var Qn = "TooltipTrigger", wa = c.forwardRef(
7027
7030
  (e, t) => {
7028
7031
  const { __scopeTooltip: n, ...o } = e, r = mt(Qn, n), a = ma(Qn, n), i = xn(n), s = c.useRef(null), l = N(t, s, r.onTriggerChange), f = c.useRef(!1), u = c.useRef(!1), d = c.useCallback(() => f.current = !1, []);
7029
7032
  return c.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ v(ut, { asChild: !0, ...i, children: /* @__PURE__ */ v(
7030
- M.button,
7033
+ T.button,
7031
7034
  {
7032
7035
  "aria-describedby": r.open ? r.contentId : void 0,
7033
7036
  "data-state": r.stateAttribute,
@@ -7279,7 +7282,7 @@ export {
7279
7282
  ug as M,
7280
7283
  Nd as N,
7281
7284
  mg as O,
7282
- M as P,
7285
+ T as P,
7283
7286
  hg as Q,
7284
7287
  hi as R,
7285
7288
  pc as S,