@tryghost/activitypub 3.1.8 → 3.1.11

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 (84) hide show
  1. package/dist/activitypub.js +1 -1
  2. package/dist/{at-sign-B8iQvS42.mjs → at-sign-Mjg-pZ6w.mjs} +2 -2
  3. package/dist/at-sign-Mjg-pZ6w.mjs.map +1 -0
  4. package/dist/{avatar-flipboard-DNwig8eO.mjs → avatar-flipboard-DrqqZst3.mjs} +2 -2
  5. package/dist/avatar-flipboard-DrqqZst3.mjs.map +1 -0
  6. package/dist/{bluesky-sharing-Cx4y2eb_.mjs → bluesky-sharing-Chejq-Bq.mjs} +7 -7
  7. package/dist/bluesky-sharing-Chejq-Bq.mjs.map +1 -0
  8. package/dist/{copy-Dg0Olymi.mjs → copy-Ba_lzzCd.mjs} +2 -2
  9. package/dist/copy-Ba_lzzCd.mjs.map +1 -0
  10. package/dist/{deleted-feed-item-C6ttBewp.mjs → deleted-feed-item-BfpxKMlB.mjs} +8 -8
  11. package/dist/deleted-feed-item-BfpxKMlB.mjs.map +1 -0
  12. package/dist/edit-profile-jtzZtWG8.mjs +3810 -0
  13. package/dist/edit-profile-jtzZtWG8.mjs.map +1 -0
  14. package/dist/{feed-OJkCDmvZ.mjs → feed-BkSec9BE.mjs} +12 -12
  15. package/dist/feed-BkSec9BE.mjs.map +1 -0
  16. package/dist/{hash-CaF6a8FN.mjs → hash-D8uyJrFB.mjs} +2 -2
  17. package/dist/hash-D8uyJrFB.mjs.map +1 -0
  18. package/dist/{inbox-DKED2HYQ.mjs → inbox-DZqNPQ3D.mjs} +2 -2
  19. package/dist/inbox-DZqNPQ3D.mjs.map +1 -0
  20. package/dist/{index-Cjktkl_Z.mjs → index-Bq0BHGkI.mjs} +24 -24
  21. package/dist/index-Bq0BHGkI.mjs.map +1 -0
  22. package/dist/{index-B3WQF6P6.mjs → index-CCW2g6Oi.mjs} +49 -49
  23. package/dist/index-CCW2g6Oi.mjs.map +1 -0
  24. package/dist/{index-BTDCxNUL.mjs → index-CQNBd3-F.mjs} +54 -54
  25. package/dist/index-CQNBd3-F.mjs.map +1 -0
  26. package/dist/{index-q4Ygdo0-.mjs → index-CSkOAA7W.mjs} +13533 -12736
  27. package/dist/index-CSkOAA7W.mjs.map +1 -0
  28. package/dist/{index-Cl_bAvCu.mjs → index-D8Ct0JF0.mjs} +19 -19
  29. package/dist/index-D8Ct0JF0.mjs.map +1 -0
  30. package/dist/{index-DUNT0yV6.mjs → index-DYjHwtl7.mjs} +7 -7
  31. package/dist/index-DYjHwtl7.mjs.map +1 -0
  32. package/dist/{index-CVvjItO-.mjs → index-nevBSPxu.mjs} +2 -2
  33. package/dist/index-nevBSPxu.mjs.map +1 -0
  34. package/dist/{index-Cty-No3l.mjs → index-psiB4m1D.mjs} +92 -92
  35. package/dist/index-psiB4m1D.mjs.map +1 -0
  36. package/dist/{moderation-nXSBmheF.mjs → moderation-DFdpfisa.mjs} +7 -7
  37. package/dist/moderation-DFdpfisa.mjs.map +1 -0
  38. package/dist/{note-uNSHIe4G.mjs → note-kWeM_V5e.mjs} +6 -6
  39. package/dist/note-kWeM_V5e.mjs.map +1 -0
  40. package/dist/{reply-BVkBkA2M.mjs → reply-1lPjfeAY.mjs} +2 -2
  41. package/dist/reply-1lPjfeAY.mjs.map +1 -0
  42. package/dist/separator-COhI8ngj.mjs +39 -0
  43. package/dist/separator-COhI8ngj.mjs.map +1 -0
  44. package/dist/{settings-CjuIDMTF.mjs → settings-CEx9EwpB.mjs} +3 -3
  45. package/dist/settings-CEx9EwpB.mjs.map +1 -0
  46. package/dist/{step-1-YV90JpzH.mjs → step-1-DoxN5zA3.mjs} +8 -8
  47. package/dist/{step-1-YV90JpzH.mjs.map → step-1-DoxN5zA3.mjs.map} +1 -1
  48. package/dist/{step-2-BO7QOUb7.mjs → step-2-BWvVMlaH.mjs} +13 -13
  49. package/dist/step-2-BWvVMlaH.mjs.map +1 -0
  50. package/dist/{step-3-qgcA50w6.mjs → step-3-Dnq4l5zZ.mjs} +14 -14
  51. package/dist/step-3-Dnq4l5zZ.mjs.map +1 -0
  52. package/dist/{tabs-DdupTuil.mjs → tabs-DTWhZwdk.mjs} +224 -226
  53. package/dist/tabs-DTWhZwdk.mjs.map +1 -0
  54. package/dist/{topic-filter-DqTL6EKu.mjs → topic-filter-4W4f_LiH.mjs} +4 -4
  55. package/dist/topic-filter-4W4f_LiH.mjs.map +1 -0
  56. package/package.json +11 -11
  57. package/dist/at-sign-B8iQvS42.mjs.map +0 -1
  58. package/dist/avatar-flipboard-DNwig8eO.mjs.map +0 -1
  59. package/dist/bluesky-sharing-Cx4y2eb_.mjs.map +0 -1
  60. package/dist/copy-Dg0Olymi.mjs.map +0 -1
  61. package/dist/deleted-feed-item-C6ttBewp.mjs.map +0 -1
  62. package/dist/edit-profile-D17SCzby.mjs +0 -3741
  63. package/dist/edit-profile-D17SCzby.mjs.map +0 -1
  64. package/dist/feed-OJkCDmvZ.mjs.map +0 -1
  65. package/dist/hash-CaF6a8FN.mjs.map +0 -1
  66. package/dist/inbox-DKED2HYQ.mjs.map +0 -1
  67. package/dist/index-B3WQF6P6.mjs.map +0 -1
  68. package/dist/index-BTDCxNUL.mjs.map +0 -1
  69. package/dist/index-CVvjItO-.mjs.map +0 -1
  70. package/dist/index-Cjktkl_Z.mjs.map +0 -1
  71. package/dist/index-Cl_bAvCu.mjs.map +0 -1
  72. package/dist/index-Cty-No3l.mjs.map +0 -1
  73. package/dist/index-DUNT0yV6.mjs.map +0 -1
  74. package/dist/index-q4Ygdo0-.mjs.map +0 -1
  75. package/dist/moderation-nXSBmheF.mjs.map +0 -1
  76. package/dist/note-uNSHIe4G.mjs.map +0 -1
  77. package/dist/reply-BVkBkA2M.mjs.map +0 -1
  78. package/dist/separator-BljDgTc9.mjs +0 -116
  79. package/dist/separator-BljDgTc9.mjs.map +0 -1
  80. package/dist/settings-CjuIDMTF.mjs.map +0 -1
  81. package/dist/step-2-BO7QOUb7.mjs.map +0 -1
  82. package/dist/step-3-qgcA50w6.mjs.map +0 -1
  83. package/dist/tabs-DdupTuil.mjs.map +0 -1
  84. package/dist/topic-filter-DqTL6EKu.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- import { aj as d, an as zt, j as r, ae as de, ak as Yt, al as N, am as v, c as h, e as k, aV as K, a6 as Xt, aW as Te, aX as Wt, af as V, aY as Ht, b as ie, aZ as Zt, W as R, a_ as qt, aC as Jt, ag as Qt, a$ as en, b0 as tn, b1 as nn, ao as on, b2 as rn, aD as Pe, b3 as an, b4 as sn, s as _, C as cn, b5 as Se, Y as dn, ai as un, ah as J, b6 as ue, B as ln } from "./index-q4Ygdo0-.mjs";
2
- import { u as pn, c as Q, R as Ee, I as je, a as mn } from "./index-CVvjItO-.mjs";
1
+ import { ae as d, ao as zt, j as r, am as N, al as Yt, an as g, c as b, e as O, aQ as K, ag as de, aR as Xt, aS as Te, ah as V, aT as Wt, b as ie, aU as Ht, W as R, aV as Zt, aW as qt, aX as Qt, aY as Jt, aZ as en, ap as tn, a_ as nn, a$ as Pe, ai as on, b0 as rn, b1 as an, a6 as sn, C as cn, s as _, b2 as Se, Y as dn, aj as Q, ak as un, b3 as ue, B as ln } from "./index-CSkOAA7W.mjs";
2
+ import { u as pn, R as Ee, I as je, c as J, a as mn } from "./index-nevBSPxu.mjs";
3
3
  var ee = "Tabs", [fn] = de(ee, [
4
- Q
5
- ]), Ae = Q(), [gn, le] = fn(ee), Re = d(
4
+ J
5
+ ]), Ae = J(), [vn, le] = fn(ee), Re = d(
6
6
  (e, n) => {
7
7
  const {
8
8
  __scopeTabs: t,
@@ -12,7 +12,7 @@ var ee = "Tabs", [fn] = de(ee, [
12
12
  orientation: c = "horizontal",
13
13
  dir: u,
14
14
  activationMode: f = "automatic",
15
- ...g
15
+ ...v
16
16
  } = e, l = pn(u), [i, m] = zt({
17
17
  prop: o,
18
18
  onChange: a,
@@ -20,7 +20,7 @@ var ee = "Tabs", [fn] = de(ee, [
20
20
  caller: ee
21
21
  });
22
22
  return /* @__PURE__ */ r.jsx(
23
- gn,
23
+ vn,
24
24
  {
25
25
  scope: t,
26
26
  baseId: Yt(),
@@ -34,7 +34,7 @@ var ee = "Tabs", [fn] = de(ee, [
34
34
  {
35
35
  dir: l,
36
36
  "data-orientation": c,
37
- ...g,
37
+ ...v,
38
38
  ref: n
39
39
  }
40
40
  )
@@ -43,9 +43,9 @@ var ee = "Tabs", [fn] = de(ee, [
43
43
  }
44
44
  );
45
45
  Re.displayName = ee;
46
- var ke = "TabsList", Oe = d(
46
+ var Oe = "TabsList", ke = d(
47
47
  (e, n) => {
48
- const { __scopeTabs: t, loop: o = !0, ...a } = e, s = le(ke, t), c = Ae(t);
48
+ const { __scopeTabs: t, loop: o = !0, ...a } = e, s = le(Oe, t), c = Ae(t);
49
49
  return /* @__PURE__ */ r.jsx(
50
50
  Ee,
51
51
  {
@@ -67,10 +67,10 @@ var ke = "TabsList", Oe = d(
67
67
  );
68
68
  }
69
69
  );
70
- Oe.displayName = ke;
70
+ ke.displayName = Oe;
71
71
  var Fe = "TabsTrigger", Le = d(
72
72
  (e, n) => {
73
- const { __scopeTabs: t, value: o, disabled: a = !1, ...s } = e, c = le(Fe, t), u = Ae(t), f = Ke(c.baseId, o), g = Ve(c.baseId, o), l = o === c.value;
73
+ const { __scopeTabs: t, value: o, disabled: a = !1, ...s } = e, c = le(Fe, t), u = Ae(t), f = Ke(c.baseId, o), v = Ve(c.baseId, o), l = o === c.value;
74
74
  return /* @__PURE__ */ r.jsx(
75
75
  je,
76
76
  {
@@ -84,20 +84,20 @@ var Fe = "TabsTrigger", Le = d(
84
84
  type: "button",
85
85
  role: "tab",
86
86
  "aria-selected": l,
87
- "aria-controls": g,
87
+ "aria-controls": v,
88
88
  "data-state": l ? "active" : "inactive",
89
89
  "data-disabled": a ? "" : void 0,
90
90
  disabled: a,
91
91
  id: f,
92
92
  ...s,
93
93
  ref: n,
94
- onMouseDown: v(e.onMouseDown, (i) => {
94
+ onMouseDown: g(e.onMouseDown, (i) => {
95
95
  !a && i.button === 0 && i.ctrlKey === !1 ? c.onValueChange(o) : i.preventDefault();
96
96
  }),
97
- onKeyDown: v(e.onKeyDown, (i) => {
97
+ onKeyDown: g(e.onKeyDown, (i) => {
98
98
  [" ", "Enter"].includes(i.key) && c.onValueChange(o);
99
99
  }),
100
- onFocus: v(e.onFocus, () => {
100
+ onFocus: g(e.onFocus, () => {
101
101
  const i = c.activationMode !== "manual";
102
102
  !l && !a && i && c.onValueChange(o);
103
103
  })
@@ -110,8 +110,8 @@ var Fe = "TabsTrigger", Le = d(
110
110
  Le.displayName = Fe;
111
111
  var Ge = "TabsContent", $e = d(
112
112
  (e, n) => {
113
- const { __scopeTabs: t, value: o, forceMount: a, children: s, ...c } = e, u = le(Ge, t), f = Ke(u.baseId, o), g = Ve(u.baseId, o), l = o === u.value, i = h(l);
114
- return k(() => {
113
+ const { __scopeTabs: t, value: o, forceMount: a, children: s, ...c } = e, u = le(Ge, t), f = Ke(u.baseId, o), v = Ve(u.baseId, o), l = o === u.value, i = b(l);
114
+ return O(() => {
115
115
  const m = requestAnimationFrame(() => i.current = !1);
116
116
  return () => cancelAnimationFrame(m);
117
117
  }, []), /* @__PURE__ */ r.jsx(K, { present: a || l, children: ({ present: m }) => /* @__PURE__ */ r.jsx(
@@ -122,7 +122,7 @@ var Ge = "TabsContent", $e = d(
122
122
  role: "tabpanel",
123
123
  "aria-labelledby": f,
124
124
  hidden: !m,
125
- id: g,
125
+ id: v,
126
126
  tabIndex: 0,
127
127
  ...c,
128
128
  ref: n,
@@ -142,49 +142,41 @@ function Ke(e, n) {
142
142
  function Ve(e, n) {
143
143
  return `${e}-content-${n}`;
144
144
  }
145
- var Be = Re, Ue = Oe, pe = Le, ze = $e;
146
- /**
147
- * @license lucide-react v0.553.0 - ISC
148
- *
149
- * This source code is licensed under the ISC license.
150
- * See the LICENSE file in the root directory of this source tree.
151
- */
152
- const vn = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], xn = Xt("circle", vn);
153
- var ce = ["Enter", " "], bn = ["ArrowDown", "PageUp", "Home"], Ye = ["ArrowUp", "PageDown", "End"], hn = [...bn, ...Ye], Mn = {
145
+ var Ue = Re, Be = ke, pe = Le, ze = $e, ce = ["Enter", " "], gn = ["ArrowDown", "PageUp", "Home"], Ye = ["ArrowUp", "PageDown", "End"], xn = [...gn, ...Ye], hn = {
154
146
  ltr: [...ce, "ArrowRight"],
155
147
  rtl: [...ce, "ArrowLeft"]
156
- }, _n = {
148
+ }, bn = {
157
149
  ltr: ["ArrowLeft"],
158
150
  rtl: ["ArrowRight"]
159
- }, te = "Menu", [G, yn, wn] = mn(te), [P, Xe] = de(te, [
160
- wn,
151
+ }, te = "Menu", [G, Mn, _n] = mn(te), [P, Xe] = de(te, [
152
+ _n,
161
153
  Te,
162
- Q
163
- ]), me = Te(), We = Q(), [Bo, S] = P(te), [Uo, B] = P(te), Cn = "MenuAnchor", fe = d(
154
+ J
155
+ ]), me = Te(), We = J(), [Uo, S] = P(te), [Bo, U] = P(te), yn = "MenuAnchor", fe = d(
164
156
  (e, n) => {
165
157
  const { __scopeMenu: t, ...o } = e, a = me(t);
166
- return /* @__PURE__ */ r.jsx(Wt, { ...a, ...o, ref: n });
158
+ return /* @__PURE__ */ r.jsx(Xt, { ...a, ...o, ref: n });
167
159
  }
168
160
  );
169
- fe.displayName = Cn;
170
- var ge = "MenuPortal", [Nn, He] = P(ge, {
161
+ fe.displayName = yn;
162
+ var ve = "MenuPortal", [wn, He] = P(ve, {
171
163
  forceMount: void 0
172
164
  }), Ze = (e) => {
173
- const { __scopeMenu: n, forceMount: t, children: o, container: a } = e, s = S(ge, n);
174
- return /* @__PURE__ */ r.jsx(Nn, { scope: n, forceMount: t, children: /* @__PURE__ */ r.jsx(K, { present: t || s.open, children: /* @__PURE__ */ r.jsx(sn, { asChild: !0, container: a, children: o }) }) });
165
+ const { __scopeMenu: n, forceMount: t, children: o, container: a } = e, s = S(ve, n);
166
+ return /* @__PURE__ */ r.jsx(wn, { scope: n, forceMount: t, children: /* @__PURE__ */ r.jsx(K, { present: t || s.open, children: /* @__PURE__ */ r.jsx(an, { asChild: !0, container: a, children: o }) }) });
175
167
  };
176
- Ze.displayName = ge;
177
- var w = "MenuContent", [In, ve] = P(w), qe = d(
168
+ Ze.displayName = ve;
169
+ var w = "MenuContent", [Cn, ge] = P(w), qe = d(
178
170
  (e, n) => {
179
- const t = He(w, e.__scopeMenu), { forceMount: o = t.forceMount, ...a } = e, s = S(w, e.__scopeMenu), c = B(w, e.__scopeMenu);
180
- return /* @__PURE__ */ r.jsx(G.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(K, { present: o || s.open, children: /* @__PURE__ */ r.jsx(G.Slot, { scope: e.__scopeMenu, children: c.modal ? /* @__PURE__ */ r.jsx(Dn, { ...a, ref: n }) : /* @__PURE__ */ r.jsx(Tn, { ...a, ref: n }) }) }) });
171
+ const t = He(w, e.__scopeMenu), { forceMount: o = t.forceMount, ...a } = e, s = S(w, e.__scopeMenu), c = U(w, e.__scopeMenu);
172
+ return /* @__PURE__ */ r.jsx(G.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(K, { present: o || s.open, children: /* @__PURE__ */ r.jsx(G.Slot, { scope: e.__scopeMenu, children: c.modal ? /* @__PURE__ */ r.jsx(Nn, { ...a, ref: n }) : /* @__PURE__ */ r.jsx(In, { ...a, ref: n }) }) }) });
181
173
  }
182
- ), Dn = d(
174
+ ), Nn = d(
183
175
  (e, n) => {
184
- const t = S(w, e.__scopeMenu), o = h(null), a = V(n, o);
185
- return k(() => {
176
+ const t = S(w, e.__scopeMenu), o = b(null), a = V(n, o);
177
+ return O(() => {
186
178
  const s = o.current;
187
- if (s) return Ht(s);
179
+ if (s) return Wt(s);
188
180
  }, []), /* @__PURE__ */ r.jsx(
189
181
  xe,
190
182
  {
@@ -193,7 +185,7 @@ var w = "MenuContent", [In, ve] = P(w), qe = d(
193
185
  trapFocus: t.open,
194
186
  disableOutsidePointerEvents: t.open,
195
187
  disableOutsideScroll: !0,
196
- onFocusOutside: v(
188
+ onFocusOutside: g(
197
189
  e.onFocusOutside,
198
190
  (s) => s.preventDefault(),
199
191
  { checkForDefaultPrevented: !1 }
@@ -202,7 +194,7 @@ var w = "MenuContent", [In, ve] = P(w), qe = d(
202
194
  }
203
195
  );
204
196
  }
205
- ), Tn = d((e, n) => {
197
+ ), In = d((e, n) => {
206
198
  const t = S(w, e.__scopeMenu);
207
199
  return /* @__PURE__ */ r.jsx(
208
200
  xe,
@@ -215,7 +207,7 @@ var w = "MenuContent", [In, ve] = P(w), qe = d(
215
207
  onDismiss: () => t.onOpenChange(!1)
216
208
  }
217
209
  );
218
- }), Pn = Qt("MenuContent.ScrollLock"), xe = d(
210
+ }), Dn = on("MenuContent.ScrollLock"), xe = d(
219
211
  (e, n) => {
220
212
  const {
221
213
  __scopeMenu: t,
@@ -225,27 +217,27 @@ var w = "MenuContent", [In, ve] = P(w), qe = d(
225
217
  onCloseAutoFocus: c,
226
218
  disableOutsidePointerEvents: u,
227
219
  onEntryFocus: f,
228
- onEscapeKeyDown: g,
220
+ onEscapeKeyDown: v,
229
221
  onPointerDownOutside: l,
230
222
  onFocusOutside: i,
231
223
  onInteractOutside: m,
232
224
  onDismiss: x,
233
- disableOutsideScroll: b,
225
+ disableOutsideScroll: h,
234
226
  ...T
235
- } = e, E = S(w, t), O = B(w, t), z = me(t), Y = We(t), _e = yn(t), [Gt, ye] = ie(null), X = h(null), $t = V(n, X, E.onContentChange), W = h(0), H = h(""), Kt = h(0), oe = h(null), we = h("right"), re = h(0), Vt = b ? qt : Jt, Bt = b ? { as: Pn, allowPinchZoom: !0 } : void 0, Ut = (p) => {
227
+ } = e, E = S(w, t), k = U(w, t), z = me(t), Y = We(t), _e = Mn(t), [Gt, ye] = ie(null), X = b(null), $t = V(n, X, E.onContentChange), W = b(0), H = b(""), Kt = b(0), oe = b(null), we = b("right"), re = b(0), Vt = h ? Zt : qt, Ut = h ? { as: Dn, allowPinchZoom: !0 } : void 0, Bt = (p) => {
236
228
  var A, Ne;
237
- const y = H.current + p, C = _e().filter((I) => !I.disabled), D = document.activeElement, ae = (A = C.find((I) => I.ref.current === D)) == null ? void 0 : A.textValue, se = C.map((I) => I.textValue), Ce = Kn(se, y, ae), F = (Ne = C.find((I) => I.textValue === Ce)) == null ? void 0 : Ne.ref.current;
229
+ const y = H.current + p, C = _e().filter((I) => !I.disabled), D = document.activeElement, ae = (A = C.find((I) => I.ref.current === D)) == null ? void 0 : A.textValue, se = C.map((I) => I.textValue), Ce = Gn(se, y, ae), F = (Ne = C.find((I) => I.textValue === Ce)) == null ? void 0 : Ne.ref.current;
238
230
  (function I(Ie) {
239
231
  H.current = Ie, window.clearTimeout(W.current), Ie !== "" && (W.current = window.setTimeout(() => I(""), 1e3));
240
232
  })(y), F && setTimeout(() => F.focus());
241
233
  };
242
- k(() => () => window.clearTimeout(W.current), []), Zt();
234
+ O(() => () => window.clearTimeout(W.current), []), Ht();
243
235
  const j = R((p) => {
244
236
  var C, D;
245
- return we.current === ((C = oe.current) == null ? void 0 : C.side) && Bn(p, (D = oe.current) == null ? void 0 : D.area);
237
+ return we.current === ((C = oe.current) == null ? void 0 : C.side) && Kn(p, (D = oe.current) == null ? void 0 : D.area);
246
238
  }, []);
247
239
  return /* @__PURE__ */ r.jsx(
248
- In,
240
+ Cn,
249
241
  {
250
242
  scope: t,
251
243
  searchRef: H,
@@ -272,22 +264,22 @@ var w = "MenuContent", [In, ve] = P(w), qe = d(
272
264
  onPointerGraceIntentChange: R((p) => {
273
265
  oe.current = p;
274
266
  }, []),
275
- children: /* @__PURE__ */ r.jsx(Vt, { ...Bt, children: /* @__PURE__ */ r.jsx(
276
- en,
267
+ children: /* @__PURE__ */ r.jsx(Vt, { ...Ut, children: /* @__PURE__ */ r.jsx(
268
+ Qt,
277
269
  {
278
270
  asChild: !0,
279
271
  trapped: a,
280
- onMountAutoFocus: v(s, (p) => {
272
+ onMountAutoFocus: g(s, (p) => {
281
273
  var y;
282
274
  p.preventDefault(), (y = X.current) == null || y.focus({ preventScroll: !0 });
283
275
  }),
284
276
  onUnmountAutoFocus: c,
285
277
  children: /* @__PURE__ */ r.jsx(
286
- tn,
278
+ Jt,
287
279
  {
288
280
  asChild: !0,
289
281
  disableOutsidePointerEvents: u,
290
- onEscapeKeyDown: g,
282
+ onEscapeKeyDown: v,
291
283
  onPointerDownOutside: l,
292
284
  onFocusOutside: i,
293
285
  onInteractOutside: m,
@@ -297,40 +289,40 @@ var w = "MenuContent", [In, ve] = P(w), qe = d(
297
289
  {
298
290
  asChild: !0,
299
291
  ...Y,
300
- dir: O.dir,
292
+ dir: k.dir,
301
293
  orientation: "vertical",
302
294
  loop: o,
303
295
  currentTabStopId: Gt,
304
296
  onCurrentTabStopIdChange: ye,
305
- onEntryFocus: v(f, (p) => {
306
- O.isUsingKeyboardRef.current || p.preventDefault();
297
+ onEntryFocus: g(f, (p) => {
298
+ k.isUsingKeyboardRef.current || p.preventDefault();
307
299
  }),
308
300
  preventScrollOnEntryFocus: !0,
309
301
  children: /* @__PURE__ */ r.jsx(
310
- nn,
302
+ en,
311
303
  {
312
304
  role: "menu",
313
305
  "aria-orientation": "vertical",
314
306
  "data-state": mt(E.open),
315
307
  "data-radix-menu-content": "",
316
- dir: O.dir,
308
+ dir: k.dir,
317
309
  ...z,
318
310
  ...T,
319
311
  ref: $t,
320
312
  style: { outline: "none", ...T.style },
321
- onKeyDown: v(T.onKeyDown, (p) => {
313
+ onKeyDown: g(T.onKeyDown, (p) => {
322
314
  const C = p.target.closest("[data-radix-menu-content]") === p.currentTarget, D = p.ctrlKey || p.altKey || p.metaKey, ae = p.key.length === 1;
323
- C && (p.key === "Tab" && p.preventDefault(), !D && ae && Ut(p.key));
315
+ C && (p.key === "Tab" && p.preventDefault(), !D && ae && Bt(p.key));
324
316
  const se = X.current;
325
- if (p.target !== se || !hn.includes(p.key)) return;
317
+ if (p.target !== se || !xn.includes(p.key)) return;
326
318
  p.preventDefault();
327
319
  const F = _e().filter((A) => !A.disabled).map((A) => A.ref.current);
328
- Ye.includes(p.key) && F.reverse(), Gn(F);
320
+ Ye.includes(p.key) && F.reverse(), Fn(F);
329
321
  }),
330
- onBlur: v(e.onBlur, (p) => {
322
+ onBlur: g(e.onBlur, (p) => {
331
323
  p.currentTarget.contains(p.target) || (window.clearTimeout(W.current), H.current = "");
332
324
  }),
333
- onPointerMove: v(
325
+ onPointerMove: g(
334
326
  e.onPointerMove,
335
327
  $((p) => {
336
328
  const y = p.target, C = re.current !== p.clientX;
@@ -353,45 +345,45 @@ var w = "MenuContent", [In, ve] = P(w), qe = d(
353
345
  }
354
346
  );
355
347
  qe.displayName = w;
356
- var Sn = "MenuGroup", be = d(
348
+ var Tn = "MenuGroup", he = d(
357
349
  (e, n) => {
358
350
  const { __scopeMenu: t, ...o } = e;
359
351
  return /* @__PURE__ */ r.jsx(N.div, { role: "group", ...o, ref: n });
360
352
  }
361
353
  );
362
- be.displayName = Sn;
363
- var En = "MenuLabel", Je = d(
354
+ he.displayName = Tn;
355
+ var Pn = "MenuLabel", Qe = d(
364
356
  (e, n) => {
365
357
  const { __scopeMenu: t, ...o } = e;
366
358
  return /* @__PURE__ */ r.jsx(N.div, { ...o, ref: n });
367
359
  }
368
360
  );
369
- Je.displayName = En;
361
+ Qe.displayName = Pn;
370
362
  var Z = "MenuItem", De = "menu.itemSelect", ne = d(
371
363
  (e, n) => {
372
- const { disabled: t = !1, onSelect: o, ...a } = e, s = h(null), c = B(Z, e.__scopeMenu), u = ve(Z, e.__scopeMenu), f = V(n, s), g = h(!1), l = () => {
364
+ const { disabled: t = !1, onSelect: o, ...a } = e, s = b(null), c = U(Z, e.__scopeMenu), u = ge(Z, e.__scopeMenu), f = V(n, s), v = b(!1), l = () => {
373
365
  const i = s.current;
374
366
  if (!t && i) {
375
367
  const m = new CustomEvent(De, { bubbles: !0, cancelable: !0 });
376
- i.addEventListener(De, (x) => o == null ? void 0 : o(x), { once: !0 }), an(i, m), m.defaultPrevented ? g.current = !1 : c.onClose();
368
+ i.addEventListener(De, (x) => o == null ? void 0 : o(x), { once: !0 }), rn(i, m), m.defaultPrevented ? v.current = !1 : c.onClose();
377
369
  }
378
370
  };
379
371
  return /* @__PURE__ */ r.jsx(
380
- Qe,
372
+ Je,
381
373
  {
382
374
  ...a,
383
375
  ref: f,
384
376
  disabled: t,
385
- onClick: v(e.onClick, l),
377
+ onClick: g(e.onClick, l),
386
378
  onPointerDown: (i) => {
387
379
  var m;
388
- (m = e.onPointerDown) == null || m.call(e, i), g.current = !0;
380
+ (m = e.onPointerDown) == null || m.call(e, i), v.current = !0;
389
381
  },
390
- onPointerUp: v(e.onPointerUp, (i) => {
382
+ onPointerUp: g(e.onPointerUp, (i) => {
391
383
  var m;
392
- g.current || (m = i.currentTarget) == null || m.click();
384
+ v.current || (m = i.currentTarget) == null || m.click();
393
385
  }),
394
- onKeyDown: v(e.onKeyDown, (i) => {
386
+ onKeyDown: g(e.onKeyDown, (i) => {
395
387
  const m = u.searchRef.current !== "";
396
388
  t || m && i.key === " " || ce.includes(i.key) && (i.currentTarget.click(), i.preventDefault());
397
389
  })
@@ -400,12 +392,12 @@ var Z = "MenuItem", De = "menu.itemSelect", ne = d(
400
392
  }
401
393
  );
402
394
  ne.displayName = Z;
403
- var Qe = d(
395
+ var Je = d(
404
396
  (e, n) => {
405
- const { __scopeMenu: t, disabled: o = !1, textValue: a, ...s } = e, c = ve(Z, t), u = We(t), f = h(null), g = V(n, f), [l, i] = ie(!1), [m, x] = ie("");
406
- return k(() => {
407
- const b = f.current;
408
- b && x((b.textContent ?? "").trim());
397
+ const { __scopeMenu: t, disabled: o = !1, textValue: a, ...s } = e, c = ge(Z, t), u = We(t), f = b(null), v = V(n, f), [l, i] = ie(!1), [m, x] = ie("");
398
+ return O(() => {
399
+ const h = f.current;
400
+ h && x((h.textContent ?? "").trim());
409
401
  }, [s.children]), /* @__PURE__ */ r.jsx(
410
402
  G.ItemSlot,
411
403
  {
@@ -420,25 +412,25 @@ var Qe = d(
420
412
  "aria-disabled": o || void 0,
421
413
  "data-disabled": o ? "" : void 0,
422
414
  ...s,
423
- ref: g,
424
- onPointerMove: v(
415
+ ref: v,
416
+ onPointerMove: g(
425
417
  e.onPointerMove,
426
- $((b) => {
427
- o ? c.onItemLeave(b) : (c.onItemEnter(b), b.defaultPrevented || b.currentTarget.focus({ preventScroll: !0 }));
418
+ $((h) => {
419
+ o ? c.onItemLeave(h) : (c.onItemEnter(h), h.defaultPrevented || h.currentTarget.focus({ preventScroll: !0 }));
428
420
  })
429
421
  ),
430
- onPointerLeave: v(
422
+ onPointerLeave: g(
431
423
  e.onPointerLeave,
432
- $((b) => c.onItemLeave(b))
424
+ $((h) => c.onItemLeave(h))
433
425
  ),
434
- onFocus: v(e.onFocus, () => i(!0)),
435
- onBlur: v(e.onBlur, () => i(!1))
426
+ onFocus: g(e.onFocus, () => i(!0)),
427
+ onBlur: g(e.onBlur, () => i(!1))
436
428
  }
437
429
  ) })
438
430
  }
439
431
  );
440
432
  }
441
- ), jn = "MenuCheckboxItem", et = d(
433
+ ), Sn = "MenuCheckboxItem", et = d(
442
434
  (e, n) => {
443
435
  const { checked: t = !1, onCheckedChange: o, ...a } = e;
444
436
  return /* @__PURE__ */ r.jsx(at, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ r.jsx(
@@ -449,7 +441,7 @@ var Qe = d(
449
441
  ...a,
450
442
  ref: n,
451
443
  "data-state": Me(t),
452
- onSelect: v(
444
+ onSelect: g(
453
445
  a.onSelect,
454
446
  () => o == null ? void 0 : o(q(t) ? !0 : !t),
455
447
  { checkForDefaultPrevented: !1 }
@@ -458,21 +450,21 @@ var Qe = d(
458
450
  ) });
459
451
  }
460
452
  );
461
- et.displayName = jn;
462
- var tt = "MenuRadioGroup", [An, Rn] = P(
453
+ et.displayName = Sn;
454
+ var tt = "MenuRadioGroup", [En, jn] = P(
463
455
  tt,
464
456
  { value: void 0, onValueChange: () => {
465
457
  } }
466
458
  ), nt = d(
467
459
  (e, n) => {
468
- const { value: t, onValueChange: o, ...a } = e, s = on(o);
469
- return /* @__PURE__ */ r.jsx(An, { scope: e.__scopeMenu, value: t, onValueChange: s, children: /* @__PURE__ */ r.jsx(be, { ...a, ref: n }) });
460
+ const { value: t, onValueChange: o, ...a } = e, s = tn(o);
461
+ return /* @__PURE__ */ r.jsx(En, { scope: e.__scopeMenu, value: t, onValueChange: s, children: /* @__PURE__ */ r.jsx(he, { ...a, ref: n }) });
470
462
  }
471
463
  );
472
464
  nt.displayName = tt;
473
465
  var ot = "MenuRadioItem", rt = d(
474
466
  (e, n) => {
475
- const { value: t, ...o } = e, a = Rn(ot, e.__scopeMenu), s = t === a.value;
467
+ const { value: t, ...o } = e, a = jn(ot, e.__scopeMenu), s = t === a.value;
476
468
  return /* @__PURE__ */ r.jsx(at, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ r.jsx(
477
469
  ne,
478
470
  {
@@ -481,7 +473,7 @@ var ot = "MenuRadioItem", rt = d(
481
473
  ...o,
482
474
  ref: n,
483
475
  "data-state": Me(s),
484
- onSelect: v(
476
+ onSelect: g(
485
477
  o.onSelect,
486
478
  () => {
487
479
  var c;
@@ -494,12 +486,12 @@ var ot = "MenuRadioItem", rt = d(
494
486
  }
495
487
  );
496
488
  rt.displayName = ot;
497
- var he = "MenuItemIndicator", [at, kn] = P(
498
- he,
489
+ var be = "MenuItemIndicator", [at, An] = P(
490
+ be,
499
491
  { checked: !1 }
500
492
  ), st = d(
501
493
  (e, n) => {
502
- const { __scopeMenu: t, forceMount: o, ...a } = e, s = kn(he, t);
494
+ const { __scopeMenu: t, forceMount: o, ...a } = e, s = An(be, t);
503
495
  return /* @__PURE__ */ r.jsx(
504
496
  K,
505
497
  {
@@ -516,8 +508,8 @@ var he = "MenuItemIndicator", [at, kn] = P(
516
508
  );
517
509
  }
518
510
  );
519
- st.displayName = he;
520
- var On = "MenuSeparator", it = d(
511
+ st.displayName = be;
512
+ var Rn = "MenuSeparator", it = d(
521
513
  (e, n) => {
522
514
  const { __scopeMenu: t, ...o } = e;
523
515
  return /* @__PURE__ */ r.jsx(
@@ -531,26 +523,26 @@ var On = "MenuSeparator", it = d(
531
523
  );
532
524
  }
533
525
  );
534
- it.displayName = On;
535
- var Fn = "MenuArrow", ct = d(
526
+ it.displayName = Rn;
527
+ var On = "MenuArrow", ct = d(
536
528
  (e, n) => {
537
529
  const { __scopeMenu: t, ...o } = e, a = me(t);
538
- return /* @__PURE__ */ r.jsx(rn, { ...a, ...o, ref: n });
530
+ return /* @__PURE__ */ r.jsx(nn, { ...a, ...o, ref: n });
539
531
  }
540
532
  );
541
- ct.displayName = Fn;
542
- var Ln = "MenuSub", [zo, dt] = P(Ln), L = "MenuSubTrigger", ut = d(
533
+ ct.displayName = On;
534
+ var kn = "MenuSub", [zo, dt] = P(kn), L = "MenuSubTrigger", ut = d(
543
535
  (e, n) => {
544
- const t = S(L, e.__scopeMenu), o = B(L, e.__scopeMenu), a = dt(L, e.__scopeMenu), s = ve(L, e.__scopeMenu), c = h(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: f } = s, g = { __scopeMenu: e.__scopeMenu }, l = R(() => {
536
+ const t = S(L, e.__scopeMenu), o = U(L, e.__scopeMenu), a = dt(L, e.__scopeMenu), s = ge(L, e.__scopeMenu), c = b(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: f } = s, v = { __scopeMenu: e.__scopeMenu }, l = R(() => {
545
537
  c.current && window.clearTimeout(c.current), c.current = null;
546
538
  }, []);
547
- return k(() => l, [l]), k(() => {
539
+ return O(() => l, [l]), O(() => {
548
540
  const i = u.current;
549
541
  return () => {
550
542
  window.clearTimeout(i), f(null);
551
543
  };
552
- }, [u, f]), /* @__PURE__ */ r.jsx(fe, { asChild: !0, ...g, children: /* @__PURE__ */ r.jsx(
553
- Qe,
544
+ }, [u, f]), /* @__PURE__ */ r.jsx(fe, { asChild: !0, ...v, children: /* @__PURE__ */ r.jsx(
545
+ Je,
554
546
  {
555
547
  id: a.triggerId,
556
548
  "aria-haspopup": "menu",
@@ -563,7 +555,7 @@ var Ln = "MenuSub", [zo, dt] = P(Ln), L = "MenuSubTrigger", ut = d(
563
555
  var m;
564
556
  (m = e.onClick) == null || m.call(e, i), !(e.disabled || i.defaultPrevented) && (i.currentTarget.focus(), t.open || t.onOpenChange(!0));
565
557
  },
566
- onPointerMove: v(
558
+ onPointerMove: g(
567
559
  e.onPointerMove,
568
560
  $((i) => {
569
561
  s.onItemEnter(i), !i.defaultPrevented && !e.disabled && !t.open && !c.current && (s.onPointerGraceIntentChange(null), c.current = window.setTimeout(() => {
@@ -571,19 +563,19 @@ var Ln = "MenuSub", [zo, dt] = P(Ln), L = "MenuSubTrigger", ut = d(
571
563
  }, 100));
572
564
  })
573
565
  ),
574
- onPointerLeave: v(
566
+ onPointerLeave: g(
575
567
  e.onPointerLeave,
576
568
  $((i) => {
577
- var x, b;
569
+ var x, h;
578
570
  l();
579
571
  const m = (x = t.content) == null ? void 0 : x.getBoundingClientRect();
580
572
  if (m) {
581
- const T = (b = t.content) == null ? void 0 : b.dataset.side, E = T === "right", O = E ? -5 : 5, z = m[E ? "left" : "right"], Y = m[E ? "right" : "left"];
573
+ const T = (h = t.content) == null ? void 0 : h.dataset.side, E = T === "right", k = E ? -5 : 5, z = m[E ? "left" : "right"], Y = m[E ? "right" : "left"];
582
574
  s.onPointerGraceIntentChange({
583
575
  area: [
584
576
  // Apply a bleed on clientX to ensure that our exit point is
585
577
  // consistently within polygon bounds
586
- { x: i.clientX + O, y: i.clientY },
578
+ { x: i.clientX + k, y: i.clientY },
587
579
  { x: z, y: m.top },
588
580
  { x: Y, y: m.top },
589
581
  { x: Y, y: m.bottom },
@@ -600,10 +592,10 @@ var Ln = "MenuSub", [zo, dt] = P(Ln), L = "MenuSubTrigger", ut = d(
600
592
  }
601
593
  })
602
594
  ),
603
- onKeyDown: v(e.onKeyDown, (i) => {
595
+ onKeyDown: g(e.onKeyDown, (i) => {
604
596
  var x;
605
597
  const m = s.searchRef.current !== "";
606
- e.disabled || m && i.key === " " || Mn[o.dir].includes(i.key) && (t.onOpenChange(!0), (x = t.content) == null || x.focus(), i.preventDefault());
598
+ e.disabled || m && i.key === " " || hn[o.dir].includes(i.key) && (t.onOpenChange(!0), (x = t.content) == null || x.focus(), i.preventDefault());
607
599
  })
608
600
  }
609
601
  ) });
@@ -612,14 +604,14 @@ var Ln = "MenuSub", [zo, dt] = P(Ln), L = "MenuSubTrigger", ut = d(
612
604
  ut.displayName = L;
613
605
  var lt = "MenuSubContent", pt = d(
614
606
  (e, n) => {
615
- const t = He(w, e.__scopeMenu), { forceMount: o = t.forceMount, ...a } = e, s = S(w, e.__scopeMenu), c = B(w, e.__scopeMenu), u = dt(lt, e.__scopeMenu), f = h(null), g = V(n, f);
607
+ const t = He(w, e.__scopeMenu), { forceMount: o = t.forceMount, ...a } = e, s = S(w, e.__scopeMenu), c = U(w, e.__scopeMenu), u = dt(lt, e.__scopeMenu), f = b(null), v = V(n, f);
616
608
  return /* @__PURE__ */ r.jsx(G.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(K, { present: o || s.open, children: /* @__PURE__ */ r.jsx(G.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(
617
609
  xe,
618
610
  {
619
611
  id: u.contentId,
620
612
  "aria-labelledby": u.triggerId,
621
613
  ...a,
622
- ref: g,
614
+ ref: v,
623
615
  align: "start",
624
616
  side: c.dir === "rtl" ? "left" : "right",
625
617
  disableOutsidePointerEvents: !1,
@@ -630,15 +622,15 @@ var lt = "MenuSubContent", pt = d(
630
622
  c.isUsingKeyboardRef.current && ((i = f.current) == null || i.focus()), l.preventDefault();
631
623
  },
632
624
  onCloseAutoFocus: (l) => l.preventDefault(),
633
- onFocusOutside: v(e.onFocusOutside, (l) => {
625
+ onFocusOutside: g(e.onFocusOutside, (l) => {
634
626
  l.target !== u.trigger && s.onOpenChange(!1);
635
627
  }),
636
- onEscapeKeyDown: v(e.onEscapeKeyDown, (l) => {
628
+ onEscapeKeyDown: g(e.onEscapeKeyDown, (l) => {
637
629
  c.onClose(), l.preventDefault();
638
630
  }),
639
- onKeyDown: v(e.onKeyDown, (l) => {
631
+ onKeyDown: g(e.onKeyDown, (l) => {
640
632
  var x;
641
- const i = l.currentTarget.contains(l.target), m = _n[c.dir].includes(l.key);
633
+ const i = l.currentTarget.contains(l.target), m = bn[c.dir].includes(l.key);
642
634
  i && m && (s.onOpenChange(!1), (x = u.trigger) == null || x.focus(), l.preventDefault());
643
635
  })
644
636
  }
@@ -655,47 +647,47 @@ function q(e) {
655
647
  function Me(e) {
656
648
  return q(e) ? "indeterminate" : e ? "checked" : "unchecked";
657
649
  }
658
- function Gn(e) {
650
+ function Fn(e) {
659
651
  const n = document.activeElement;
660
652
  for (const t of e)
661
653
  if (t === n || (t.focus(), document.activeElement !== n)) return;
662
654
  }
663
- function $n(e, n) {
655
+ function Ln(e, n) {
664
656
  return e.map((t, o) => e[(n + o) % e.length]);
665
657
  }
666
- function Kn(e, n, t) {
667
- const a = n.length > 1 && Array.from(n).every((g) => g === n[0]) ? n[0] : n, s = t ? e.indexOf(t) : -1;
668
- let c = $n(e, Math.max(s, 0));
669
- a.length === 1 && (c = c.filter((g) => g !== t));
658
+ function Gn(e, n, t) {
659
+ const a = n.length > 1 && Array.from(n).every((v) => v === n[0]) ? n[0] : n, s = t ? e.indexOf(t) : -1;
660
+ let c = Ln(e, Math.max(s, 0));
661
+ a.length === 1 && (c = c.filter((v) => v !== t));
670
662
  const f = c.find(
671
- (g) => g.toLowerCase().startsWith(a.toLowerCase())
663
+ (v) => v.toLowerCase().startsWith(a.toLowerCase())
672
664
  );
673
665
  return f !== t ? f : void 0;
674
666
  }
675
- function Vn(e, n) {
667
+ function $n(e, n) {
676
668
  const { x: t, y: o } = e;
677
669
  let a = !1;
678
670
  for (let s = 0, c = n.length - 1; s < n.length; c = s++) {
679
- const u = n[s], f = n[c], g = u.x, l = u.y, i = f.x, m = f.y;
680
- l > o != m > o && t < (i - g) * (o - l) / (m - l) + g && (a = !a);
671
+ const u = n[s], f = n[c], v = u.x, l = u.y, i = f.x, m = f.y;
672
+ l > o != m > o && t < (i - v) * (o - l) / (m - l) + v && (a = !a);
681
673
  }
682
674
  return a;
683
675
  }
684
- function Bn(e, n) {
676
+ function Kn(e, n) {
685
677
  if (!n) return !1;
686
678
  const t = { x: e.clientX, y: e.clientY };
687
- return Vn(t, n);
679
+ return $n(t, n);
688
680
  }
689
681
  function $(e) {
690
682
  return (n) => n.pointerType === "mouse" ? e(n) : void 0;
691
683
  }
692
- var Un = fe, zn = Ze, Yn = qe, Xn = be, Wn = Je, Hn = ne, Zn = et, qn = nt, Jn = rt, Qn = st, eo = it, to = ct, no = ut, oo = pt, ft = "DropdownMenu", [ro] = de(
684
+ var Vn = fe, Un = Ze, Bn = qe, zn = he, Yn = Qe, Xn = ne, Wn = et, Hn = nt, Zn = rt, qn = st, Qn = it, Jn = ct, eo = ut, to = pt, ft = "DropdownMenu", [no] = de(
693
685
  ft,
694
686
  [Xe]
695
- ), M = Xe(), [Yo, gt] = ro(ft), vt = "DropdownMenuTrigger", xt = d(
687
+ ), M = Xe(), [Yo, vt] = no(ft), gt = "DropdownMenuTrigger", xt = d(
696
688
  (e, n) => {
697
- const { __scopeDropdownMenu: t, disabled: o = !1, ...a } = e, s = gt(vt, t), c = M(t);
698
- return /* @__PURE__ */ r.jsx(Un, { asChild: !0, ...c, children: /* @__PURE__ */ r.jsx(
689
+ const { __scopeDropdownMenu: t, disabled: o = !1, ...a } = e, s = vt(gt, t), c = M(t);
690
+ return /* @__PURE__ */ r.jsx(Vn, { asChild: !0, ...c, children: /* @__PURE__ */ r.jsx(
699
691
  N.button,
700
692
  {
701
693
  type: "button",
@@ -708,39 +700,39 @@ var Un = fe, zn = Ze, Yn = qe, Xn = be, Wn = Je, Hn = ne, Zn = et, qn = nt, Jn =
708
700
  disabled: o,
709
701
  ...a,
710
702
  ref: Pe(n, s.triggerRef),
711
- onPointerDown: v(e.onPointerDown, (u) => {
703
+ onPointerDown: g(e.onPointerDown, (u) => {
712
704
  !o && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
713
705
  }),
714
- onKeyDown: v(e.onKeyDown, (u) => {
706
+ onKeyDown: g(e.onKeyDown, (u) => {
715
707
  o || (["Enter", " "].includes(u.key) && s.onOpenToggle(), u.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(u.key) && u.preventDefault());
716
708
  })
717
709
  }
718
710
  ) });
719
711
  }
720
712
  );
721
- xt.displayName = vt;
722
- var ao = "DropdownMenuPortal", bt = (e) => {
713
+ xt.displayName = gt;
714
+ var oo = "DropdownMenuPortal", ht = (e) => {
723
715
  const { __scopeDropdownMenu: n, ...t } = e, o = M(n);
724
- return /* @__PURE__ */ r.jsx(zn, { ...o, ...t });
716
+ return /* @__PURE__ */ r.jsx(Un, { ...o, ...t });
725
717
  };
726
- bt.displayName = ao;
727
- var ht = "DropdownMenuContent", Mt = d(
718
+ ht.displayName = oo;
719
+ var bt = "DropdownMenuContent", Mt = d(
728
720
  (e, n) => {
729
- const { __scopeDropdownMenu: t, ...o } = e, a = gt(ht, t), s = M(t), c = h(!1);
721
+ const { __scopeDropdownMenu: t, ...o } = e, a = vt(bt, t), s = M(t), c = b(!1);
730
722
  return /* @__PURE__ */ r.jsx(
731
- Yn,
723
+ Bn,
732
724
  {
733
725
  id: a.contentId,
734
726
  "aria-labelledby": a.triggerId,
735
727
  ...s,
736
728
  ...o,
737
729
  ref: n,
738
- onCloseAutoFocus: v(e.onCloseAutoFocus, (u) => {
730
+ onCloseAutoFocus: g(e.onCloseAutoFocus, (u) => {
739
731
  var f;
740
732
  c.current || (f = a.triggerRef.current) == null || f.focus(), c.current = !1, u.preventDefault();
741
733
  }),
742
- onInteractOutside: v(e.onInteractOutside, (u) => {
743
- const f = u.detail.originalEvent, g = f.button === 0 && f.ctrlKey === !0, l = f.button === 2 || g;
734
+ onInteractOutside: g(e.onInteractOutside, (u) => {
735
+ const f = u.detail.originalEvent, v = f.button === 0 && f.ctrlKey === !0, l = f.button === 2 || v;
744
736
  (!a.modal || l) && (c.current = !0);
745
737
  }),
746
738
  style: {
@@ -755,69 +747,69 @@ var ht = "DropdownMenuContent", Mt = d(
755
747
  );
756
748
  }
757
749
  );
758
- Mt.displayName = ht;
759
- var so = "DropdownMenuGroup", io = d(
750
+ Mt.displayName = bt;
751
+ var ro = "DropdownMenuGroup", ao = d(
760
752
  (e, n) => {
761
753
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
762
- return /* @__PURE__ */ r.jsx(Xn, { ...a, ...o, ref: n });
754
+ return /* @__PURE__ */ r.jsx(zn, { ...a, ...o, ref: n });
763
755
  }
764
756
  );
765
- io.displayName = so;
766
- var co = "DropdownMenuLabel", _t = d(
757
+ ao.displayName = ro;
758
+ var so = "DropdownMenuLabel", _t = d(
767
759
  (e, n) => {
768
760
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
769
- return /* @__PURE__ */ r.jsx(Wn, { ...a, ...o, ref: n });
761
+ return /* @__PURE__ */ r.jsx(Yn, { ...a, ...o, ref: n });
770
762
  }
771
763
  );
772
- _t.displayName = co;
773
- var uo = "DropdownMenuItem", yt = d(
764
+ _t.displayName = so;
765
+ var io = "DropdownMenuItem", yt = d(
774
766
  (e, n) => {
775
767
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
776
- return /* @__PURE__ */ r.jsx(Hn, { ...a, ...o, ref: n });
768
+ return /* @__PURE__ */ r.jsx(Xn, { ...a, ...o, ref: n });
777
769
  }
778
770
  );
779
- yt.displayName = uo;
780
- var lo = "DropdownMenuCheckboxItem", wt = d((e, n) => {
771
+ yt.displayName = io;
772
+ var co = "DropdownMenuCheckboxItem", wt = d((e, n) => {
781
773
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
782
- return /* @__PURE__ */ r.jsx(Zn, { ...a, ...o, ref: n });
774
+ return /* @__PURE__ */ r.jsx(Wn, { ...a, ...o, ref: n });
783
775
  });
784
- wt.displayName = lo;
785
- var po = "DropdownMenuRadioGroup", mo = d((e, n) => {
776
+ wt.displayName = co;
777
+ var uo = "DropdownMenuRadioGroup", lo = d((e, n) => {
786
778
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
787
- return /* @__PURE__ */ r.jsx(qn, { ...a, ...o, ref: n });
779
+ return /* @__PURE__ */ r.jsx(Hn, { ...a, ...o, ref: n });
788
780
  });
789
- mo.displayName = po;
790
- var fo = "DropdownMenuRadioItem", Ct = d((e, n) => {
781
+ lo.displayName = uo;
782
+ var po = "DropdownMenuRadioItem", Ct = d((e, n) => {
791
783
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
792
- return /* @__PURE__ */ r.jsx(Jn, { ...a, ...o, ref: n });
784
+ return /* @__PURE__ */ r.jsx(Zn, { ...a, ...o, ref: n });
793
785
  });
794
- Ct.displayName = fo;
795
- var go = "DropdownMenuItemIndicator", Nt = d((e, n) => {
786
+ Ct.displayName = po;
787
+ var mo = "DropdownMenuItemIndicator", Nt = d((e, n) => {
796
788
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
797
- return /* @__PURE__ */ r.jsx(Qn, { ...a, ...o, ref: n });
789
+ return /* @__PURE__ */ r.jsx(qn, { ...a, ...o, ref: n });
798
790
  });
799
- Nt.displayName = go;
800
- var vo = "DropdownMenuSeparator", It = d((e, n) => {
791
+ Nt.displayName = mo;
792
+ var fo = "DropdownMenuSeparator", It = d((e, n) => {
801
793
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
802
- return /* @__PURE__ */ r.jsx(eo, { ...a, ...o, ref: n });
794
+ return /* @__PURE__ */ r.jsx(Qn, { ...a, ...o, ref: n });
803
795
  });
804
- It.displayName = vo;
805
- var xo = "DropdownMenuArrow", bo = d(
796
+ It.displayName = fo;
797
+ var vo = "DropdownMenuArrow", go = d(
806
798
  (e, n) => {
807
799
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
808
- return /* @__PURE__ */ r.jsx(to, { ...a, ...o, ref: n });
800
+ return /* @__PURE__ */ r.jsx(Jn, { ...a, ...o, ref: n });
809
801
  }
810
802
  );
811
- bo.displayName = xo;
812
- var ho = "DropdownMenuSubTrigger", Dt = d((e, n) => {
803
+ go.displayName = vo;
804
+ var xo = "DropdownMenuSubTrigger", Dt = d((e, n) => {
813
805
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
814
- return /* @__PURE__ */ r.jsx(no, { ...a, ...o, ref: n });
806
+ return /* @__PURE__ */ r.jsx(eo, { ...a, ...o, ref: n });
815
807
  });
816
- Dt.displayName = ho;
817
- var Mo = "DropdownMenuSubContent", Tt = d((e, n) => {
808
+ Dt.displayName = xo;
809
+ var ho = "DropdownMenuSubContent", Tt = d((e, n) => {
818
810
  const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
819
811
  return /* @__PURE__ */ r.jsx(
820
- oo,
812
+ to,
821
813
  {
822
814
  ...a,
823
815
  ...o,
@@ -833,10 +825,16 @@ var Mo = "DropdownMenuSubContent", Tt = d((e, n) => {
833
825
  }
834
826
  );
835
827
  });
836
- Tt.displayName = Mo;
837
- var _o = xt, yo = bt, Pt = Mt, St = _t, Et = yt, jt = wt, At = Ct, Rt = Nt, kt = It, Ot = Dt, Ft = Tt;
838
- const wo = _o, Co = d(({ className: e, inset: n, children: t, ...o }, a) => /* @__PURE__ */ r.jsxs(
839
- Ot,
828
+ Tt.displayName = ho;
829
+ var bo = xt, Mo = ht, Pt = Mt, St = _t, Et = yt, jt = wt, At = Ct, Rt = Nt, Ot = It, kt = Dt, Ft = Tt;
830
+ /**
831
+ * @license lucide-react v0.553.0 - ISC
832
+ *
833
+ * This source code is licensed under the ISC license.
834
+ * See the LICENSE file in the root directory of this source tree.
835
+ */
836
+ const _o = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], yo = sn("circle", _o), wo = bo, Co = d(({ className: e, inset: n, children: t, ...o }, a) => /* @__PURE__ */ r.jsxs(
837
+ kt,
840
838
  {
841
839
  ref: a,
842
840
  className: _(
@@ -851,7 +849,7 @@ const wo = _o, Co = d(({ className: e, inset: n, children: t, ...o }, a) => /* @
851
849
  ]
852
850
  }
853
851
  ));
854
- Co.displayName = Ot.displayName;
852
+ Co.displayName = kt.displayName;
855
853
  const No = d(({ className: e, ...n }, t) => /* @__PURE__ */ r.jsx("div", { className: Se, children: /* @__PURE__ */ r.jsx(
856
854
  Ft,
857
855
  {
@@ -864,7 +862,7 @@ const No = d(({ className: e, ...n }, t) => /* @__PURE__ */ r.jsx("div", { class
864
862
  }
865
863
  ) }));
866
864
  No.displayName = Ft.displayName;
867
- const Io = d(({ className: e, sideOffset: n = 4, ...t }, o) => /* @__PURE__ */ r.jsx(yo, { children: /* @__PURE__ */ r.jsx("div", { className: Se, children: /* @__PURE__ */ r.jsx(
865
+ const Io = d(({ className: e, sideOffset: n = 4, ...t }, o) => /* @__PURE__ */ r.jsx(Mo, { children: /* @__PURE__ */ r.jsx("div", { className: Se, children: /* @__PURE__ */ r.jsx(
868
866
  Pt,
869
867
  {
870
868
  ref: o,
@@ -918,7 +916,7 @@ const Po = d(({ className: e, children: n, ...t }, o) => /* @__PURE__ */ r.jsxs(
918
916
  ),
919
917
  ...t,
920
918
  children: [
921
- /* @__PURE__ */ r.jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r.jsx(Rt, { children: /* @__PURE__ */ r.jsx(xn, { className: "size-2 fill-current" }) }) }),
919
+ /* @__PURE__ */ r.jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ r.jsx(Rt, { children: /* @__PURE__ */ r.jsx(yo, { className: "size-2 fill-current" }) }) }),
922
920
  n
923
921
  ]
924
922
  }
@@ -938,26 +936,26 @@ const So = d(({ className: e, inset: n, ...t }, o) => /* @__PURE__ */ r.jsx(
938
936
  ));
939
937
  So.displayName = St.displayName;
940
938
  const Eo = d(({ className: e, ...n }, t) => /* @__PURE__ */ r.jsx(
941
- kt,
939
+ Ot,
942
940
  {
943
941
  ref: t,
944
942
  className: _("-mx-1 my-1 h-px bg-muted", e),
945
943
  ...n
946
944
  }
947
945
  ));
948
- Eo.displayName = kt.displayName;
949
- const U = un("segmented"), jo = d(({ variant: e = "segmented", ...n }, t) => /* @__PURE__ */ r.jsx(U.Provider, { value: e, children: /* @__PURE__ */ r.jsx(Be, { ref: t, ...n }) }));
950
- jo.displayName = Be.displayName;
946
+ Eo.displayName = Ot.displayName;
947
+ const B = un("segmented"), jo = d(({ variant: e = "segmented", ...n }, t) => /* @__PURE__ */ r.jsx(B.Provider, { value: e, children: /* @__PURE__ */ r.jsx(Ue, { ref: t, ...n }) }));
948
+ jo.displayName = Ue.displayName;
951
949
  const Ao = ue(
952
950
  "inline-flex items-center text-muted-foreground",
953
951
  {
954
952
  variants: {
955
953
  variant: {
956
- segmented: "h-[34px] rounded-lg bg-muted px-[3px]",
954
+ segmented: "h-(--control-height) rounded-lg bg-muted px-[3px]",
957
955
  "segmented-sm": "h-8 rounded-lg bg-muted px-[3px]",
958
956
  button: "gap-2",
959
957
  "button-sm": "gap-1",
960
- underline: "w-full gap-5 border-b border-b-gray-200 dark:border-gray-950",
958
+ underline: "w-full gap-5 border-b border-border-default",
961
959
  navbar: "h-[52px] items-end gap-6",
962
960
  pill: "-ml-0.5 h-[30px] gap-px",
963
961
  kpis: "border-b ring-0"
@@ -968,9 +966,9 @@ const Ao = ue(
968
966
  }
969
967
  }
970
968
  ), Ro = d(({ className: e, ...n }, t) => {
971
- const o = J(U);
969
+ const o = Q(B);
972
970
  return /* @__PURE__ */ r.jsx(
973
- Ue,
971
+ Be,
974
972
  {
975
973
  ref: t,
976
974
  className: _(Ao({ variant: o, className: e })),
@@ -978,28 +976,28 @@ const Ao = ue(
978
976
  }
979
977
  );
980
978
  });
981
- Ro.displayName = Ue.displayName;
979
+ Ro.displayName = Be.displayName;
982
980
  const Lt = ue(
983
- "focus-visible:outline-hidden inline-flex items-center justify-center whitespace-nowrap px-3 py-1 ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground [&_svg]:size-4 [&_svg]:shrink-0",
981
+ "inline-flex items-center justify-center px-3 py-1 whitespace-nowrap ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground [&_svg]:size-4 [&_svg]:shrink-0",
984
982
  {
985
983
  variants: {
986
984
  variant: {
987
985
  segmented: "h-7 rounded-md text-sm font-medium data-[state=active]:shadow-md",
988
986
  "segmented-sm": "h-[26px] rounded-md text-xs font-medium data-[state=active]:shadow-md",
989
- button: "data-[state=active]:bg-muted-foreground/10 h-[34px] gap-1.5 rounded-md py-2 text-sm font-normal hover:bg-muted data-[state=active]:font-medium",
990
- "button-sm": "data-[state=active]:bg-muted-foreground/10 h-6 gap-1.5 rounded-md p-2 text-xs font-normal text-gray-800 hover:bg-muted data-[state=active]:font-medium data-[state=active]:text-foreground",
991
- underline: 'data-[state=active]:after:opacity-100! relative h-[36px] px-0 text-md font-semibold text-gray-700 after:absolute after:inset-x-0 after:bottom-[-1px] after:h-0.5 after:bg-foreground after:opacity-0 after:content-[""] hover:after:opacity-10 data-[state=active]:bg-transparent data-[state=active]:text-foreground',
992
- navbar: 'data-[state=active]:after:opacity-100! relative h-[52px] px-px text-md font-semibold text-muted-foreground after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[""] hover:text-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground',
993
- pill: "data-[state=active]:bg-muted-foreground/10 relative h-[30px] rounded-md px-3 text-md font-medium text-gray-800 hover:text-foreground data-[state=active]:font-semibold data-[state=active]:text-foreground dark:text-gray-500 dark:data-[state=active]:text-foreground",
994
- kpis: 'h-full! items-start! hover:bg-accent/50 relative rounded-none border-border bg-transparent px-6 py-5 text-foreground ring-0 transition-all after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[""] first:rounded-tl-md last:rounded-tr-md data-[state=active]:bg-transparent data-[state=active]:after:opacity-100 [&:not(:last-child)]:border-r [&[data-state=active]_[data-type="value"]]:text-foreground'
987
+ button: "h-(--control-height) gap-1.5 rounded-md py-2 text-sm font-normal hover:bg-muted data-[state=active]:bg-muted-foreground/10 data-[state=active]:font-medium",
988
+ "button-sm": "h-6 gap-1.5 rounded-md p-2 text-xs font-normal text-text-secondary hover:bg-muted data-[state=active]:bg-muted-foreground/10 data-[state=active]:font-medium data-[state=active]:text-foreground",
989
+ underline: 'relative h-9 px-0 text-md font-semibold text-text-secondary after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[""] hover:after:opacity-10 data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',
990
+ navbar: 'relative h-[52px] px-px text-md font-semibold text-muted-foreground after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[""] hover:text-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',
991
+ pill: "relative h-[30px] rounded-md px-3 text-md font-medium text-text-secondary hover:text-foreground data-[state=active]:bg-muted-foreground/10 data-[state=active]:font-semibold data-[state=active]:text-foreground",
992
+ kpis: 'relative h-full! items-start! rounded-none border-border bg-transparent px-6 py-5 text-foreground ring-0 transition-all after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[""] first:rounded-tl-md last:rounded-tr-md hover:bg-accent/50 data-[state=active]:bg-transparent data-[state=active]:after:opacity-100 [&:not(:last-child)]:border-r [&[data-state=active]_[data-type="value"]]:text-foreground'
995
993
  }
996
994
  },
997
995
  defaultVariants: {
998
996
  variant: "segmented"
999
997
  }
1000
998
  }
1001
- ), ko = d(({ className: e, ...n }, t) => {
1002
- const o = J(U);
999
+ ), Oo = d(({ className: e, ...n }, t) => {
1000
+ const o = Q(B);
1003
1001
  return /* @__PURE__ */ r.jsx(
1004
1002
  pe,
1005
1003
  {
@@ -1009,11 +1007,11 @@ const Lt = ue(
1009
1007
  }
1010
1008
  );
1011
1009
  });
1012
- ko.displayName = pe.displayName;
1013
- const Oo = ({ className: e = "", children: n }) => /* @__PURE__ */ r.jsx("span", { className: `ml-1.5 mt-px flex h-5 items-center justify-center rounded-full bg-gray-200 px-1.5 py-0 text-xs font-semibold leading-[21px] text-gray-800 dark:bg-gray-900 dark:text-gray-300 ${e}`, children: n });
1014
- Oo.displayName = "TabsTriggerCount";
1010
+ Oo.displayName = pe.displayName;
1011
+ const ko = ({ className: e = "", children: n }) => /* @__PURE__ */ r.jsx("span", { className: `mt-px ml-1.5 flex h-5 items-center justify-center rounded-full bg-surface-elevated px-1.5 py-0 text-xs leading-[21px] font-semibold text-text-secondary ${e}`, children: n });
1012
+ ko.displayName = "TabsTriggerCount";
1015
1013
  const Fo = ue(
1016
- "focus-visible:outline-hidden ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
1014
+ "ring-offset-background focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden",
1017
1015
  {
1018
1016
  variants: {
1019
1017
  variant: {
@@ -1032,7 +1030,7 @@ const Fo = ue(
1032
1030
  }
1033
1031
  }
1034
1032
  ), Lo = d(({ className: e, ...n }, t) => {
1035
- const o = J(U);
1033
+ const o = Q(B);
1036
1034
  return /* @__PURE__ */ r.jsx(
1037
1035
  ze,
1038
1036
  {
@@ -1063,7 +1061,7 @@ const $o = d(({
1063
1061
  className: n,
1064
1062
  ...t
1065
1063
  }, o) => {
1066
- const a = J(U);
1064
+ const a = Q(B);
1067
1065
  return /* @__PURE__ */ r.jsxs("div", { className: "relative rounded-md hover:bg-muted", children: [
1068
1066
  /* @__PURE__ */ r.jsx(
1069
1067
  pe,
@@ -1089,8 +1087,8 @@ $o.displayName = "TabsDropdownTrigger";
1089
1087
  export {
1090
1088
  jo as T,
1091
1089
  Ro as a,
1092
- ko as b,
1090
+ Oo as b,
1093
1091
  Lo as c,
1094
- Oo as d
1092
+ ko as d
1095
1093
  };
1096
- //# sourceMappingURL=tabs-DdupTuil.mjs.map
1094
+ //# sourceMappingURL=tabs-DTWhZwdk.mjs.map