@tryghost/activitypub 3.1.9 → 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.
- package/dist/activitypub.js +1 -1
- package/dist/{at-sign-HA7s9_yo.mjs → at-sign-Mjg-pZ6w.mjs} +2 -2
- package/dist/at-sign-Mjg-pZ6w.mjs.map +1 -0
- package/dist/{avatar-flipboard-swo-37SU.mjs → avatar-flipboard-DrqqZst3.mjs} +2 -2
- package/dist/avatar-flipboard-DrqqZst3.mjs.map +1 -0
- package/dist/{bluesky-sharing-CLCMkEbr.mjs → bluesky-sharing-Chejq-Bq.mjs} +7 -7
- package/dist/bluesky-sharing-Chejq-Bq.mjs.map +1 -0
- package/dist/{copy-DpM3ttP6.mjs → copy-Ba_lzzCd.mjs} +2 -2
- package/dist/copy-Ba_lzzCd.mjs.map +1 -0
- package/dist/{deleted-feed-item-Dpgdv7Am.mjs → deleted-feed-item-BfpxKMlB.mjs} +8 -8
- package/dist/deleted-feed-item-BfpxKMlB.mjs.map +1 -0
- package/dist/edit-profile-jtzZtWG8.mjs +3810 -0
- package/dist/edit-profile-jtzZtWG8.mjs.map +1 -0
- package/dist/{feed-CUigsjj5.mjs → feed-BkSec9BE.mjs} +12 -12
- package/dist/feed-BkSec9BE.mjs.map +1 -0
- package/dist/{hash-cJ8IUw77.mjs → hash-D8uyJrFB.mjs} +2 -2
- package/dist/hash-D8uyJrFB.mjs.map +1 -0
- package/dist/{inbox-gnZvtbNZ.mjs → inbox-DZqNPQ3D.mjs} +2 -2
- package/dist/inbox-DZqNPQ3D.mjs.map +1 -0
- package/dist/{index-BC1Q-I5Z.mjs → index-Bq0BHGkI.mjs} +24 -24
- package/dist/index-Bq0BHGkI.mjs.map +1 -0
- package/dist/{index-Dc5IUcEt.mjs → index-CCW2g6Oi.mjs} +49 -49
- package/dist/index-CCW2g6Oi.mjs.map +1 -0
- package/dist/{index-DOW1_Ph3.mjs → index-CQNBd3-F.mjs} +54 -54
- package/dist/index-CQNBd3-F.mjs.map +1 -0
- package/dist/{index-DJ5p5ESW.mjs → index-CSkOAA7W.mjs} +13531 -12734
- package/dist/index-CSkOAA7W.mjs.map +1 -0
- package/dist/{index-BHjT-eBh.mjs → index-D8Ct0JF0.mjs} +19 -19
- package/dist/index-D8Ct0JF0.mjs.map +1 -0
- package/dist/{index-DRdHe0Xx.mjs → index-DYjHwtl7.mjs} +7 -7
- package/dist/index-DYjHwtl7.mjs.map +1 -0
- package/dist/{index-DBDE7Pwv.mjs → index-nevBSPxu.mjs} +2 -2
- package/dist/index-nevBSPxu.mjs.map +1 -0
- package/dist/{index-VTkGUYnZ.mjs → index-psiB4m1D.mjs} +92 -92
- package/dist/index-psiB4m1D.mjs.map +1 -0
- package/dist/{moderation-CF26LtsR.mjs → moderation-DFdpfisa.mjs} +7 -7
- package/dist/moderation-DFdpfisa.mjs.map +1 -0
- package/dist/{note-C7a3fpfu.mjs → note-kWeM_V5e.mjs} +6 -6
- package/dist/note-kWeM_V5e.mjs.map +1 -0
- package/dist/{reply-DNHDDszZ.mjs → reply-1lPjfeAY.mjs} +2 -2
- package/dist/reply-1lPjfeAY.mjs.map +1 -0
- package/dist/separator-COhI8ngj.mjs +39 -0
- package/dist/separator-COhI8ngj.mjs.map +1 -0
- package/dist/{settings-CK06at6A.mjs → settings-CEx9EwpB.mjs} +3 -3
- package/dist/settings-CEx9EwpB.mjs.map +1 -0
- package/dist/{step-1-CWOu7-_P.mjs → step-1-DoxN5zA3.mjs} +8 -8
- package/dist/{step-1-CWOu7-_P.mjs.map → step-1-DoxN5zA3.mjs.map} +1 -1
- package/dist/{step-2-Dcy43H6c.mjs → step-2-BWvVMlaH.mjs} +13 -13
- package/dist/step-2-BWvVMlaH.mjs.map +1 -0
- package/dist/{step-3-Dav_Yy5B.mjs → step-3-Dnq4l5zZ.mjs} +14 -14
- package/dist/step-3-Dnq4l5zZ.mjs.map +1 -0
- package/dist/{tabs-B7coKvuk.mjs → tabs-DTWhZwdk.mjs} +224 -226
- package/dist/tabs-DTWhZwdk.mjs.map +1 -0
- package/dist/{topic-filter-BIhCARLH.mjs → topic-filter-4W4f_LiH.mjs} +4 -4
- package/dist/topic-filter-4W4f_LiH.mjs.map +1 -0
- package/package.json +11 -11
- package/dist/at-sign-HA7s9_yo.mjs.map +0 -1
- package/dist/avatar-flipboard-swo-37SU.mjs.map +0 -1
- package/dist/bluesky-sharing-CLCMkEbr.mjs.map +0 -1
- package/dist/copy-DpM3ttP6.mjs.map +0 -1
- package/dist/deleted-feed-item-Dpgdv7Am.mjs.map +0 -1
- package/dist/edit-profile-C4Z2TwUh.mjs +0 -3741
- package/dist/edit-profile-C4Z2TwUh.mjs.map +0 -1
- package/dist/feed-CUigsjj5.mjs.map +0 -1
- package/dist/hash-cJ8IUw77.mjs.map +0 -1
- package/dist/inbox-gnZvtbNZ.mjs.map +0 -1
- package/dist/index-BC1Q-I5Z.mjs.map +0 -1
- package/dist/index-BHjT-eBh.mjs.map +0 -1
- package/dist/index-DBDE7Pwv.mjs.map +0 -1
- package/dist/index-DJ5p5ESW.mjs.map +0 -1
- package/dist/index-DOW1_Ph3.mjs.map +0 -1
- package/dist/index-DRdHe0Xx.mjs.map +0 -1
- package/dist/index-Dc5IUcEt.mjs.map +0 -1
- package/dist/index-VTkGUYnZ.mjs.map +0 -1
- package/dist/moderation-CF26LtsR.mjs.map +0 -1
- package/dist/note-C7a3fpfu.mjs.map +0 -1
- package/dist/reply-DNHDDszZ.mjs.map +0 -1
- package/dist/separator-D4W12X08.mjs +0 -116
- package/dist/separator-D4W12X08.mjs.map +0 -1
- package/dist/settings-CK06at6A.mjs.map +0 -1
- package/dist/step-2-Dcy43H6c.mjs.map +0 -1
- package/dist/step-3-Dav_Yy5B.mjs.map +0 -1
- package/dist/tabs-B7coKvuk.mjs.map +0 -1
- package/dist/topic-filter-BIhCARLH.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as pn,
|
|
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
|
-
|
|
5
|
-
]), Ae =
|
|
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
|
-
...
|
|
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
|
-
|
|
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
|
-
...
|
|
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
|
|
46
|
+
var Oe = "TabsList", ke = d(
|
|
47
47
|
(e, n) => {
|
|
48
|
-
const { __scopeTabs: t, loop: o = !0, ...a } = e, s = le(
|
|
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
|
-
|
|
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),
|
|
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":
|
|
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:
|
|
94
|
+
onMouseDown: g(e.onMouseDown, (i) => {
|
|
95
95
|
!a && i.button === 0 && i.ctrlKey === !1 ? c.onValueChange(o) : i.preventDefault();
|
|
96
96
|
}),
|
|
97
|
-
onKeyDown:
|
|
97
|
+
onKeyDown: g(e.onKeyDown, (i) => {
|
|
98
98
|
[" ", "Enter"].includes(i.key) && c.onValueChange(o);
|
|
99
99
|
}),
|
|
100
|
-
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),
|
|
114
|
-
return
|
|
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:
|
|
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
|
|
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
|
-
},
|
|
148
|
+
}, bn = {
|
|
157
149
|
ltr: ["ArrowLeft"],
|
|
158
150
|
rtl: ["ArrowRight"]
|
|
159
|
-
}, te = "Menu", [G,
|
|
160
|
-
|
|
151
|
+
}, te = "Menu", [G, Mn, _n] = mn(te), [P, Xe] = de(te, [
|
|
152
|
+
_n,
|
|
161
153
|
Te,
|
|
162
|
-
|
|
163
|
-
]), me = Te(), We =
|
|
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(
|
|
158
|
+
return /* @__PURE__ */ r.jsx(Xt, { ...a, ...o, ref: n });
|
|
167
159
|
}
|
|
168
160
|
);
|
|
169
|
-
fe.displayName =
|
|
170
|
-
var
|
|
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(
|
|
174
|
-
return /* @__PURE__ */ r.jsx(
|
|
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 =
|
|
177
|
-
var w = "MenuContent", [
|
|
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 =
|
|
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(
|
|
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
|
-
),
|
|
174
|
+
), Nn = d(
|
|
183
175
|
(e, n) => {
|
|
184
|
-
const t = S(w, e.__scopeMenu), o =
|
|
185
|
-
return
|
|
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
|
|
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:
|
|
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
|
-
),
|
|
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
|
-
}),
|
|
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:
|
|
220
|
+
onEscapeKeyDown: v,
|
|
229
221
|
onPointerDownOutside: l,
|
|
230
222
|
onFocusOutside: i,
|
|
231
223
|
onInteractOutside: m,
|
|
232
224
|
onDismiss: x,
|
|
233
|
-
disableOutsideScroll:
|
|
225
|
+
disableOutsideScroll: h,
|
|
234
226
|
...T
|
|
235
|
-
} = e, E = S(w, t),
|
|
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 =
|
|
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
|
-
|
|
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) &&
|
|
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
|
-
|
|
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, { ...
|
|
276
|
-
|
|
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:
|
|
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
|
-
|
|
278
|
+
Jt,
|
|
287
279
|
{
|
|
288
280
|
asChild: !0,
|
|
289
281
|
disableOutsidePointerEvents: u,
|
|
290
|
-
onEscapeKeyDown:
|
|
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:
|
|
292
|
+
dir: k.dir,
|
|
301
293
|
orientation: "vertical",
|
|
302
294
|
loop: o,
|
|
303
295
|
currentTabStopId: Gt,
|
|
304
296
|
onCurrentTabStopIdChange: ye,
|
|
305
|
-
onEntryFocus:
|
|
306
|
-
|
|
297
|
+
onEntryFocus: g(f, (p) => {
|
|
298
|
+
k.isUsingKeyboardRef.current || p.preventDefault();
|
|
307
299
|
}),
|
|
308
300
|
preventScrollOnEntryFocus: !0,
|
|
309
301
|
children: /* @__PURE__ */ r.jsx(
|
|
310
|
-
|
|
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:
|
|
308
|
+
dir: k.dir,
|
|
317
309
|
...z,
|
|
318
310
|
...T,
|
|
319
311
|
ref: $t,
|
|
320
312
|
style: { outline: "none", ...T.style },
|
|
321
|
-
onKeyDown:
|
|
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 &&
|
|
315
|
+
C && (p.key === "Tab" && p.preventDefault(), !D && ae && Bt(p.key));
|
|
324
316
|
const se = X.current;
|
|
325
|
-
if (p.target !== se || !
|
|
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(),
|
|
320
|
+
Ye.includes(p.key) && F.reverse(), Fn(F);
|
|
329
321
|
}),
|
|
330
|
-
onBlur:
|
|
322
|
+
onBlur: g(e.onBlur, (p) => {
|
|
331
323
|
p.currentTarget.contains(p.target) || (window.clearTimeout(W.current), H.current = "");
|
|
332
324
|
}),
|
|
333
|
-
onPointerMove:
|
|
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
|
|
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
|
-
|
|
363
|
-
var
|
|
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
|
-
|
|
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 =
|
|
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 }),
|
|
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
|
-
|
|
372
|
+
Je,
|
|
381
373
|
{
|
|
382
374
|
...a,
|
|
383
375
|
ref: f,
|
|
384
376
|
disabled: t,
|
|
385
|
-
onClick:
|
|
377
|
+
onClick: g(e.onClick, l),
|
|
386
378
|
onPointerDown: (i) => {
|
|
387
379
|
var m;
|
|
388
|
-
(m = e.onPointerDown) == null || m.call(e, i),
|
|
380
|
+
(m = e.onPointerDown) == null || m.call(e, i), v.current = !0;
|
|
389
381
|
},
|
|
390
|
-
onPointerUp:
|
|
382
|
+
onPointerUp: g(e.onPointerUp, (i) => {
|
|
391
383
|
var m;
|
|
392
|
-
|
|
384
|
+
v.current || (m = i.currentTarget) == null || m.click();
|
|
393
385
|
}),
|
|
394
|
-
onKeyDown:
|
|
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
|
|
395
|
+
var Je = d(
|
|
404
396
|
(e, n) => {
|
|
405
|
-
const { __scopeMenu: t, disabled: o = !1, textValue: a, ...s } = e, c =
|
|
406
|
-
return
|
|
407
|
-
const
|
|
408
|
-
|
|
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:
|
|
424
|
-
onPointerMove:
|
|
415
|
+
ref: v,
|
|
416
|
+
onPointerMove: g(
|
|
425
417
|
e.onPointerMove,
|
|
426
|
-
$((
|
|
427
|
-
o ? c.onItemLeave(
|
|
418
|
+
$((h) => {
|
|
419
|
+
o ? c.onItemLeave(h) : (c.onItemEnter(h), h.defaultPrevented || h.currentTarget.focus({ preventScroll: !0 }));
|
|
428
420
|
})
|
|
429
421
|
),
|
|
430
|
-
onPointerLeave:
|
|
422
|
+
onPointerLeave: g(
|
|
431
423
|
e.onPointerLeave,
|
|
432
|
-
$((
|
|
424
|
+
$((h) => c.onItemLeave(h))
|
|
433
425
|
),
|
|
434
|
-
onFocus:
|
|
435
|
-
onBlur:
|
|
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
|
-
),
|
|
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:
|
|
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 =
|
|
462
|
-
var tt = "MenuRadioGroup", [
|
|
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 =
|
|
469
|
-
return /* @__PURE__ */ r.jsx(
|
|
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 =
|
|
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:
|
|
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
|
|
498
|
-
|
|
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 =
|
|
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 =
|
|
520
|
-
var
|
|
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 =
|
|
535
|
-
var
|
|
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(
|
|
530
|
+
return /* @__PURE__ */ r.jsx(nn, { ...a, ...o, ref: n });
|
|
539
531
|
}
|
|
540
532
|
);
|
|
541
|
-
ct.displayName =
|
|
542
|
-
var
|
|
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 =
|
|
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
|
|
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, ...
|
|
553
|
-
|
|
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:
|
|
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:
|
|
566
|
+
onPointerLeave: g(
|
|
575
567
|
e.onPointerLeave,
|
|
576
568
|
$((i) => {
|
|
577
|
-
var x,
|
|
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 = (
|
|
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 +
|
|
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:
|
|
595
|
+
onKeyDown: g(e.onKeyDown, (i) => {
|
|
604
596
|
var x;
|
|
605
597
|
const m = s.searchRef.current !== "";
|
|
606
|
-
e.disabled || m && i.key === " " ||
|
|
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 =
|
|
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:
|
|
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:
|
|
625
|
+
onFocusOutside: g(e.onFocusOutside, (l) => {
|
|
634
626
|
l.target !== u.trigger && s.onOpenChange(!1);
|
|
635
627
|
}),
|
|
636
|
-
onEscapeKeyDown:
|
|
628
|
+
onEscapeKeyDown: g(e.onEscapeKeyDown, (l) => {
|
|
637
629
|
c.onClose(), l.preventDefault();
|
|
638
630
|
}),
|
|
639
|
-
onKeyDown:
|
|
631
|
+
onKeyDown: g(e.onKeyDown, (l) => {
|
|
640
632
|
var x;
|
|
641
|
-
const i = l.currentTarget.contains(l.target), m =
|
|
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
|
|
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
|
|
655
|
+
function Ln(e, n) {
|
|
664
656
|
return e.map((t, o) => e[(n + o) % e.length]);
|
|
665
657
|
}
|
|
666
|
-
function
|
|
667
|
-
const a = n.length > 1 && Array.from(n).every((
|
|
668
|
-
let c =
|
|
669
|
-
a.length === 1 && (c = c.filter((
|
|
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
|
-
(
|
|
663
|
+
(v) => v.toLowerCase().startsWith(a.toLowerCase())
|
|
672
664
|
);
|
|
673
665
|
return f !== t ? f : void 0;
|
|
674
666
|
}
|
|
675
|
-
function
|
|
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],
|
|
680
|
-
l > o != m > o && t < (i -
|
|
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
|
|
676
|
+
function Kn(e, n) {
|
|
685
677
|
if (!n) return !1;
|
|
686
678
|
const t = { x: e.clientX, y: e.clientY };
|
|
687
|
-
return
|
|
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
|
|
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,
|
|
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
|
|
698
|
-
return /* @__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:
|
|
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:
|
|
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 =
|
|
722
|
-
var
|
|
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(
|
|
716
|
+
return /* @__PURE__ */ r.jsx(Un, { ...o, ...t });
|
|
725
717
|
};
|
|
726
|
-
|
|
727
|
-
var
|
|
718
|
+
ht.displayName = oo;
|
|
719
|
+
var bt = "DropdownMenuContent", Mt = d(
|
|
728
720
|
(e, n) => {
|
|
729
|
-
const { __scopeDropdownMenu: t, ...o } = e, a =
|
|
721
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = vt(bt, t), s = M(t), c = b(!1);
|
|
730
722
|
return /* @__PURE__ */ r.jsx(
|
|
731
|
-
|
|
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:
|
|
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:
|
|
743
|
-
const f = u.detail.originalEvent,
|
|
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 =
|
|
759
|
-
var
|
|
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(
|
|
754
|
+
return /* @__PURE__ */ r.jsx(zn, { ...a, ...o, ref: n });
|
|
763
755
|
}
|
|
764
756
|
);
|
|
765
|
-
|
|
766
|
-
var
|
|
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(
|
|
761
|
+
return /* @__PURE__ */ r.jsx(Yn, { ...a, ...o, ref: n });
|
|
770
762
|
}
|
|
771
763
|
);
|
|
772
|
-
_t.displayName =
|
|
773
|
-
var
|
|
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(
|
|
768
|
+
return /* @__PURE__ */ r.jsx(Xn, { ...a, ...o, ref: n });
|
|
777
769
|
}
|
|
778
770
|
);
|
|
779
|
-
yt.displayName =
|
|
780
|
-
var
|
|
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(
|
|
774
|
+
return /* @__PURE__ */ r.jsx(Wn, { ...a, ...o, ref: n });
|
|
783
775
|
});
|
|
784
|
-
wt.displayName =
|
|
785
|
-
var
|
|
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(
|
|
779
|
+
return /* @__PURE__ */ r.jsx(Hn, { ...a, ...o, ref: n });
|
|
788
780
|
});
|
|
789
|
-
|
|
790
|
-
var
|
|
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(
|
|
784
|
+
return /* @__PURE__ */ r.jsx(Zn, { ...a, ...o, ref: n });
|
|
793
785
|
});
|
|
794
|
-
Ct.displayName =
|
|
795
|
-
var
|
|
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(
|
|
789
|
+
return /* @__PURE__ */ r.jsx(qn, { ...a, ...o, ref: n });
|
|
798
790
|
});
|
|
799
|
-
Nt.displayName =
|
|
800
|
-
var
|
|
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(
|
|
794
|
+
return /* @__PURE__ */ r.jsx(Qn, { ...a, ...o, ref: n });
|
|
803
795
|
});
|
|
804
|
-
It.displayName =
|
|
805
|
-
var
|
|
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(
|
|
800
|
+
return /* @__PURE__ */ r.jsx(Jn, { ...a, ...o, ref: n });
|
|
809
801
|
}
|
|
810
802
|
);
|
|
811
|
-
|
|
812
|
-
var
|
|
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(
|
|
806
|
+
return /* @__PURE__ */ r.jsx(eo, { ...a, ...o, ref: n });
|
|
815
807
|
});
|
|
816
|
-
Dt.displayName =
|
|
817
|
-
var
|
|
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
|
-
|
|
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 =
|
|
837
|
-
var
|
|
838
|
-
|
|
839
|
-
|
|
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 =
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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 =
|
|
949
|
-
const
|
|
950
|
-
jo.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-
|
|
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-
|
|
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 =
|
|
969
|
+
const o = Q(B);
|
|
972
970
|
return /* @__PURE__ */ r.jsx(
|
|
973
|
-
|
|
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 =
|
|
979
|
+
Ro.displayName = Be.displayName;
|
|
982
980
|
const Lt = ue(
|
|
983
|
-
"
|
|
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: "
|
|
990
|
-
"button-sm": "
|
|
991
|
-
underline: '
|
|
992
|
-
navbar: '
|
|
993
|
-
pill: "
|
|
994
|
-
kpis: 'h-full! items-start!
|
|
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
|
-
),
|
|
1002
|
-
const o =
|
|
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
|
-
|
|
1013
|
-
const
|
|
1014
|
-
|
|
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
|
-
"
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
1090
|
+
Oo as b,
|
|
1093
1091
|
Lo as c,
|
|
1094
|
-
|
|
1092
|
+
ko as d
|
|
1095
1093
|
};
|
|
1096
|
-
//# sourceMappingURL=tabs-
|
|
1094
|
+
//# sourceMappingURL=tabs-DTWhZwdk.mjs.map
|