@tryghost/activitypub 3.0.6 → 3.0.8
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 +6 -3
- package/dist/at-sign-Fsk3x72r.mjs +15 -0
- package/dist/at-sign-Fsk3x72r.mjs.map +1 -0
- package/dist/avatar-flipboard-C10JfFS_.mjs +19 -0
- package/dist/avatar-flipboard-C10JfFS_.mjs.map +1 -0
- package/dist/bluesky-sharing-C1xeGSL6.mjs +150 -0
- package/dist/bluesky-sharing-C1xeGSL6.mjs.map +1 -0
- package/dist/copy-C1fElSkQ.mjs +15 -0
- package/dist/copy-C1fElSkQ.mjs.map +1 -0
- package/dist/deleted-feed-item-Bun4tY2_.mjs +133 -0
- package/dist/deleted-feed-item-Bun4tY2_.mjs.map +1 -0
- package/dist/edit-profile-CYh00FZ7.mjs +3741 -0
- package/dist/edit-profile-CYh00FZ7.mjs.map +1 -0
- package/dist/feed-BxUqmcN9.mjs +207 -0
- package/dist/feed-BxUqmcN9.mjs.map +1 -0
- package/dist/hash-CNgwAx-U.mjs +17 -0
- package/dist/hash-CNgwAx-U.mjs.map +1 -0
- package/dist/inbox-DqNqII4a.mjs +21 -0
- package/dist/inbox-DqNqII4a.mjs.map +1 -0
- package/dist/index--Q6orQkb.mjs +26429 -0
- package/dist/index--Q6orQkb.mjs.map +1 -0
- package/dist/index-BueIufRq.mjs +6120 -0
- package/dist/index-BueIufRq.mjs.map +1 -0
- package/dist/index-C3KJXzZE.mjs +688 -0
- package/dist/index-C3KJXzZE.mjs.map +1 -0
- package/dist/index-C9pnotJK.mjs +4994 -0
- package/dist/index-C9pnotJK.mjs.map +1 -0
- package/dist/index-CJJXnqq1.mjs +138 -0
- package/dist/index-CJJXnqq1.mjs.map +1 -0
- package/dist/index-CONoLlDU.mjs +219 -0
- package/dist/index-CONoLlDU.mjs.map +1 -0
- package/dist/index-Dvh9q3jy.mjs +367 -0
- package/dist/index-Dvh9q3jy.mjs.map +1 -0
- package/dist/{index-CFmbpqlr.mjs → index-jhjmoHwu.mjs} +34 -34
- package/dist/{index-CFmbpqlr.mjs.map → index-jhjmoHwu.mjs.map} +1 -1
- package/dist/moderation-CYhwUFi2.mjs +113 -0
- package/dist/moderation-CYhwUFi2.mjs.map +1 -0
- package/dist/note-COVa8CMw.mjs +249 -0
- package/dist/note-COVa8CMw.mjs.map +1 -0
- package/dist/reply-BHpKVBxx.mjs +15 -0
- package/dist/reply-BHpKVBxx.mjs.map +1 -0
- package/dist/separator-DP7q5sFH.mjs +116 -0
- package/dist/separator-DP7q5sFH.mjs.map +1 -0
- package/dist/settings-3n7zo_3K.mjs +79 -0
- package/dist/settings-3n7zo_3K.mjs.map +1 -0
- package/dist/step-1-BmUukywZ.mjs +73 -0
- package/dist/step-1-BmUukywZ.mjs.map +1 -0
- package/dist/step-2-C--I3xxp.mjs +143 -0
- package/dist/step-2-C--I3xxp.mjs.map +1 -0
- package/dist/step-3-0Deh5N9c.mjs +345 -0
- package/dist/step-3-0Deh5N9c.mjs.map +1 -0
- package/dist/tabs-D_vmoLBo.mjs +1096 -0
- package/dist/tabs-D_vmoLBo.mjs.map +1 -0
- package/dist/topic-filter-DJMrhH-c.mjs +39 -0
- package/dist/topic-filter-DJMrhH-c.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/index-BJKUA7bK.mjs +0 -46030
- package/dist/index-BJKUA7bK.mjs.map +0 -1
|
@@ -0,0 +1,1096 @@
|
|
|
1
|
+
import { ai as d, am as zt, j as r, ad as de, aj as Yt, ak as N, al as v, c as h, e as k, aU as K, a6 as Xt, aV as Te, aW as Wt, ae as V, aX as Ht, b as ie, aY as Zt, W as R, aZ as qt, aB as Jt, af as Qt, a_ as en, a$ as tn, b0 as nn, an as on, b1 as rn, aC as Pe, b2 as an, b3 as sn, s as _, C as cn, b4 as Se, Y as dn, ah as un, ag as J, b5 as ue, B as ln } from "./index--Q6orQkb.mjs";
|
|
2
|
+
import { u as pn, c as Q, R as Ee, I as je, a as mn } from "./index-CONoLlDU.mjs";
|
|
3
|
+
var ee = "Tabs", [fn] = de(ee, [
|
|
4
|
+
Q
|
|
5
|
+
]), Ae = Q(), [gn, le] = fn(ee), Re = d(
|
|
6
|
+
(e, n) => {
|
|
7
|
+
const {
|
|
8
|
+
__scopeTabs: t,
|
|
9
|
+
value: o,
|
|
10
|
+
onValueChange: a,
|
|
11
|
+
defaultValue: s,
|
|
12
|
+
orientation: c = "horizontal",
|
|
13
|
+
dir: u,
|
|
14
|
+
activationMode: f = "automatic",
|
|
15
|
+
...g
|
|
16
|
+
} = e, l = pn(u), [i, m] = zt({
|
|
17
|
+
prop: o,
|
|
18
|
+
onChange: a,
|
|
19
|
+
defaultProp: s ?? "",
|
|
20
|
+
caller: ee
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ r.jsx(
|
|
23
|
+
gn,
|
|
24
|
+
{
|
|
25
|
+
scope: t,
|
|
26
|
+
baseId: Yt(),
|
|
27
|
+
value: i,
|
|
28
|
+
onValueChange: m,
|
|
29
|
+
orientation: c,
|
|
30
|
+
dir: l,
|
|
31
|
+
activationMode: f,
|
|
32
|
+
children: /* @__PURE__ */ r.jsx(
|
|
33
|
+
N.div,
|
|
34
|
+
{
|
|
35
|
+
dir: l,
|
|
36
|
+
"data-orientation": c,
|
|
37
|
+
...g,
|
|
38
|
+
ref: n
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
Re.displayName = ee;
|
|
46
|
+
var ke = "TabsList", Oe = d(
|
|
47
|
+
(e, n) => {
|
|
48
|
+
const { __scopeTabs: t, loop: o = !0, ...a } = e, s = le(ke, t), c = Ae(t);
|
|
49
|
+
return /* @__PURE__ */ r.jsx(
|
|
50
|
+
Ee,
|
|
51
|
+
{
|
|
52
|
+
asChild: !0,
|
|
53
|
+
...c,
|
|
54
|
+
orientation: s.orientation,
|
|
55
|
+
dir: s.dir,
|
|
56
|
+
loop: o,
|
|
57
|
+
children: /* @__PURE__ */ r.jsx(
|
|
58
|
+
N.div,
|
|
59
|
+
{
|
|
60
|
+
role: "tablist",
|
|
61
|
+
"aria-orientation": s.orientation,
|
|
62
|
+
...a,
|
|
63
|
+
ref: n
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
Oe.displayName = ke;
|
|
71
|
+
var Fe = "TabsTrigger", Le = d(
|
|
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;
|
|
74
|
+
return /* @__PURE__ */ r.jsx(
|
|
75
|
+
je,
|
|
76
|
+
{
|
|
77
|
+
asChild: !0,
|
|
78
|
+
...u,
|
|
79
|
+
focusable: !a,
|
|
80
|
+
active: l,
|
|
81
|
+
children: /* @__PURE__ */ r.jsx(
|
|
82
|
+
N.button,
|
|
83
|
+
{
|
|
84
|
+
type: "button",
|
|
85
|
+
role: "tab",
|
|
86
|
+
"aria-selected": l,
|
|
87
|
+
"aria-controls": g,
|
|
88
|
+
"data-state": l ? "active" : "inactive",
|
|
89
|
+
"data-disabled": a ? "" : void 0,
|
|
90
|
+
disabled: a,
|
|
91
|
+
id: f,
|
|
92
|
+
...s,
|
|
93
|
+
ref: n,
|
|
94
|
+
onMouseDown: v(e.onMouseDown, (i) => {
|
|
95
|
+
!a && i.button === 0 && i.ctrlKey === !1 ? c.onValueChange(o) : i.preventDefault();
|
|
96
|
+
}),
|
|
97
|
+
onKeyDown: v(e.onKeyDown, (i) => {
|
|
98
|
+
[" ", "Enter"].includes(i.key) && c.onValueChange(o);
|
|
99
|
+
}),
|
|
100
|
+
onFocus: v(e.onFocus, () => {
|
|
101
|
+
const i = c.activationMode !== "manual";
|
|
102
|
+
!l && !a && i && c.onValueChange(o);
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
Le.displayName = Fe;
|
|
111
|
+
var Ge = "TabsContent", $e = d(
|
|
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(() => {
|
|
115
|
+
const m = requestAnimationFrame(() => i.current = !1);
|
|
116
|
+
return () => cancelAnimationFrame(m);
|
|
117
|
+
}, []), /* @__PURE__ */ r.jsx(K, { present: a || l, children: ({ present: m }) => /* @__PURE__ */ r.jsx(
|
|
118
|
+
N.div,
|
|
119
|
+
{
|
|
120
|
+
"data-state": l ? "active" : "inactive",
|
|
121
|
+
"data-orientation": u.orientation,
|
|
122
|
+
role: "tabpanel",
|
|
123
|
+
"aria-labelledby": f,
|
|
124
|
+
hidden: !m,
|
|
125
|
+
id: g,
|
|
126
|
+
tabIndex: 0,
|
|
127
|
+
...c,
|
|
128
|
+
ref: n,
|
|
129
|
+
style: {
|
|
130
|
+
...e.style,
|
|
131
|
+
animationDuration: i.current ? "0s" : void 0
|
|
132
|
+
},
|
|
133
|
+
children: m && s
|
|
134
|
+
}
|
|
135
|
+
) });
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
$e.displayName = Ge;
|
|
139
|
+
function Ke(e, n) {
|
|
140
|
+
return `${e}-trigger-${n}`;
|
|
141
|
+
}
|
|
142
|
+
function Ve(e, n) {
|
|
143
|
+
return `${e}-content-${n}`;
|
|
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 = {
|
|
154
|
+
ltr: [...ce, "ArrowRight"],
|
|
155
|
+
rtl: [...ce, "ArrowLeft"]
|
|
156
|
+
}, _n = {
|
|
157
|
+
ltr: ["ArrowLeft"],
|
|
158
|
+
rtl: ["ArrowRight"]
|
|
159
|
+
}, te = "Menu", [G, yn, wn] = mn(te), [P, Xe] = de(te, [
|
|
160
|
+
wn,
|
|
161
|
+
Te,
|
|
162
|
+
Q
|
|
163
|
+
]), me = Te(), We = Q(), [Bo, S] = P(te), [Uo, B] = P(te), Cn = "MenuAnchor", fe = d(
|
|
164
|
+
(e, n) => {
|
|
165
|
+
const { __scopeMenu: t, ...o } = e, a = me(t);
|
|
166
|
+
return /* @__PURE__ */ r.jsx(Wt, { ...a, ...o, ref: n });
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
fe.displayName = Cn;
|
|
170
|
+
var ge = "MenuPortal", [Nn, He] = P(ge, {
|
|
171
|
+
forceMount: void 0
|
|
172
|
+
}), 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 }) }) });
|
|
175
|
+
};
|
|
176
|
+
Ze.displayName = ge;
|
|
177
|
+
var w = "MenuContent", [In, ve] = P(w), qe = d(
|
|
178
|
+
(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 }) }) }) });
|
|
181
|
+
}
|
|
182
|
+
), Dn = d(
|
|
183
|
+
(e, n) => {
|
|
184
|
+
const t = S(w, e.__scopeMenu), o = h(null), a = V(n, o);
|
|
185
|
+
return k(() => {
|
|
186
|
+
const s = o.current;
|
|
187
|
+
if (s) return Ht(s);
|
|
188
|
+
}, []), /* @__PURE__ */ r.jsx(
|
|
189
|
+
xe,
|
|
190
|
+
{
|
|
191
|
+
...e,
|
|
192
|
+
ref: a,
|
|
193
|
+
trapFocus: t.open,
|
|
194
|
+
disableOutsidePointerEvents: t.open,
|
|
195
|
+
disableOutsideScroll: !0,
|
|
196
|
+
onFocusOutside: v(
|
|
197
|
+
e.onFocusOutside,
|
|
198
|
+
(s) => s.preventDefault(),
|
|
199
|
+
{ checkForDefaultPrevented: !1 }
|
|
200
|
+
),
|
|
201
|
+
onDismiss: () => t.onOpenChange(!1)
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
), Tn = d((e, n) => {
|
|
206
|
+
const t = S(w, e.__scopeMenu);
|
|
207
|
+
return /* @__PURE__ */ r.jsx(
|
|
208
|
+
xe,
|
|
209
|
+
{
|
|
210
|
+
...e,
|
|
211
|
+
ref: n,
|
|
212
|
+
trapFocus: !1,
|
|
213
|
+
disableOutsidePointerEvents: !1,
|
|
214
|
+
disableOutsideScroll: !1,
|
|
215
|
+
onDismiss: () => t.onOpenChange(!1)
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
}), Pn = Qt("MenuContent.ScrollLock"), xe = d(
|
|
219
|
+
(e, n) => {
|
|
220
|
+
const {
|
|
221
|
+
__scopeMenu: t,
|
|
222
|
+
loop: o = !1,
|
|
223
|
+
trapFocus: a,
|
|
224
|
+
onOpenAutoFocus: s,
|
|
225
|
+
onCloseAutoFocus: c,
|
|
226
|
+
disableOutsidePointerEvents: u,
|
|
227
|
+
onEntryFocus: f,
|
|
228
|
+
onEscapeKeyDown: g,
|
|
229
|
+
onPointerDownOutside: l,
|
|
230
|
+
onFocusOutside: i,
|
|
231
|
+
onInteractOutside: m,
|
|
232
|
+
onDismiss: x,
|
|
233
|
+
disableOutsideScroll: b,
|
|
234
|
+
...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) => {
|
|
236
|
+
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;
|
|
238
|
+
(function I(Ie) {
|
|
239
|
+
H.current = Ie, window.clearTimeout(W.current), Ie !== "" && (W.current = window.setTimeout(() => I(""), 1e3));
|
|
240
|
+
})(y), F && setTimeout(() => F.focus());
|
|
241
|
+
};
|
|
242
|
+
k(() => () => window.clearTimeout(W.current), []), Zt();
|
|
243
|
+
const j = R((p) => {
|
|
244
|
+
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);
|
|
246
|
+
}, []);
|
|
247
|
+
return /* @__PURE__ */ r.jsx(
|
|
248
|
+
In,
|
|
249
|
+
{
|
|
250
|
+
scope: t,
|
|
251
|
+
searchRef: H,
|
|
252
|
+
onItemEnter: R(
|
|
253
|
+
(p) => {
|
|
254
|
+
j(p) && p.preventDefault();
|
|
255
|
+
},
|
|
256
|
+
[j]
|
|
257
|
+
),
|
|
258
|
+
onItemLeave: R(
|
|
259
|
+
(p) => {
|
|
260
|
+
var y;
|
|
261
|
+
j(p) || ((y = X.current) == null || y.focus(), ye(null));
|
|
262
|
+
},
|
|
263
|
+
[j]
|
|
264
|
+
),
|
|
265
|
+
onTriggerLeave: R(
|
|
266
|
+
(p) => {
|
|
267
|
+
j(p) && p.preventDefault();
|
|
268
|
+
},
|
|
269
|
+
[j]
|
|
270
|
+
),
|
|
271
|
+
pointerGraceTimerRef: Kt,
|
|
272
|
+
onPointerGraceIntentChange: R((p) => {
|
|
273
|
+
oe.current = p;
|
|
274
|
+
}, []),
|
|
275
|
+
children: /* @__PURE__ */ r.jsx(Vt, { ...Bt, children: /* @__PURE__ */ r.jsx(
|
|
276
|
+
en,
|
|
277
|
+
{
|
|
278
|
+
asChild: !0,
|
|
279
|
+
trapped: a,
|
|
280
|
+
onMountAutoFocus: v(s, (p) => {
|
|
281
|
+
var y;
|
|
282
|
+
p.preventDefault(), (y = X.current) == null || y.focus({ preventScroll: !0 });
|
|
283
|
+
}),
|
|
284
|
+
onUnmountAutoFocus: c,
|
|
285
|
+
children: /* @__PURE__ */ r.jsx(
|
|
286
|
+
tn,
|
|
287
|
+
{
|
|
288
|
+
asChild: !0,
|
|
289
|
+
disableOutsidePointerEvents: u,
|
|
290
|
+
onEscapeKeyDown: g,
|
|
291
|
+
onPointerDownOutside: l,
|
|
292
|
+
onFocusOutside: i,
|
|
293
|
+
onInteractOutside: m,
|
|
294
|
+
onDismiss: x,
|
|
295
|
+
children: /* @__PURE__ */ r.jsx(
|
|
296
|
+
Ee,
|
|
297
|
+
{
|
|
298
|
+
asChild: !0,
|
|
299
|
+
...Y,
|
|
300
|
+
dir: O.dir,
|
|
301
|
+
orientation: "vertical",
|
|
302
|
+
loop: o,
|
|
303
|
+
currentTabStopId: Gt,
|
|
304
|
+
onCurrentTabStopIdChange: ye,
|
|
305
|
+
onEntryFocus: v(f, (p) => {
|
|
306
|
+
O.isUsingKeyboardRef.current || p.preventDefault();
|
|
307
|
+
}),
|
|
308
|
+
preventScrollOnEntryFocus: !0,
|
|
309
|
+
children: /* @__PURE__ */ r.jsx(
|
|
310
|
+
nn,
|
|
311
|
+
{
|
|
312
|
+
role: "menu",
|
|
313
|
+
"aria-orientation": "vertical",
|
|
314
|
+
"data-state": mt(E.open),
|
|
315
|
+
"data-radix-menu-content": "",
|
|
316
|
+
dir: O.dir,
|
|
317
|
+
...z,
|
|
318
|
+
...T,
|
|
319
|
+
ref: $t,
|
|
320
|
+
style: { outline: "none", ...T.style },
|
|
321
|
+
onKeyDown: v(T.onKeyDown, (p) => {
|
|
322
|
+
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));
|
|
324
|
+
const se = X.current;
|
|
325
|
+
if (p.target !== se || !hn.includes(p.key)) return;
|
|
326
|
+
p.preventDefault();
|
|
327
|
+
const F = _e().filter((A) => !A.disabled).map((A) => A.ref.current);
|
|
328
|
+
Ye.includes(p.key) && F.reverse(), Gn(F);
|
|
329
|
+
}),
|
|
330
|
+
onBlur: v(e.onBlur, (p) => {
|
|
331
|
+
p.currentTarget.contains(p.target) || (window.clearTimeout(W.current), H.current = "");
|
|
332
|
+
}),
|
|
333
|
+
onPointerMove: v(
|
|
334
|
+
e.onPointerMove,
|
|
335
|
+
$((p) => {
|
|
336
|
+
const y = p.target, C = re.current !== p.clientX;
|
|
337
|
+
if (p.currentTarget.contains(y) && C) {
|
|
338
|
+
const D = p.clientX > re.current ? "right" : "left";
|
|
339
|
+
we.current = D, re.current = p.clientX;
|
|
340
|
+
}
|
|
341
|
+
})
|
|
342
|
+
)
|
|
343
|
+
}
|
|
344
|
+
)
|
|
345
|
+
}
|
|
346
|
+
)
|
|
347
|
+
}
|
|
348
|
+
)
|
|
349
|
+
}
|
|
350
|
+
) })
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
qe.displayName = w;
|
|
356
|
+
var Sn = "MenuGroup", be = d(
|
|
357
|
+
(e, n) => {
|
|
358
|
+
const { __scopeMenu: t, ...o } = e;
|
|
359
|
+
return /* @__PURE__ */ r.jsx(N.div, { role: "group", ...o, ref: n });
|
|
360
|
+
}
|
|
361
|
+
);
|
|
362
|
+
be.displayName = Sn;
|
|
363
|
+
var En = "MenuLabel", Je = d(
|
|
364
|
+
(e, n) => {
|
|
365
|
+
const { __scopeMenu: t, ...o } = e;
|
|
366
|
+
return /* @__PURE__ */ r.jsx(N.div, { ...o, ref: n });
|
|
367
|
+
}
|
|
368
|
+
);
|
|
369
|
+
Je.displayName = En;
|
|
370
|
+
var Z = "MenuItem", De = "menu.itemSelect", ne = d(
|
|
371
|
+
(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 = () => {
|
|
373
|
+
const i = s.current;
|
|
374
|
+
if (!t && i) {
|
|
375
|
+
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();
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
return /* @__PURE__ */ r.jsx(
|
|
380
|
+
Qe,
|
|
381
|
+
{
|
|
382
|
+
...a,
|
|
383
|
+
ref: f,
|
|
384
|
+
disabled: t,
|
|
385
|
+
onClick: v(e.onClick, l),
|
|
386
|
+
onPointerDown: (i) => {
|
|
387
|
+
var m;
|
|
388
|
+
(m = e.onPointerDown) == null || m.call(e, i), g.current = !0;
|
|
389
|
+
},
|
|
390
|
+
onPointerUp: v(e.onPointerUp, (i) => {
|
|
391
|
+
var m;
|
|
392
|
+
g.current || (m = i.currentTarget) == null || m.click();
|
|
393
|
+
}),
|
|
394
|
+
onKeyDown: v(e.onKeyDown, (i) => {
|
|
395
|
+
const m = u.searchRef.current !== "";
|
|
396
|
+
t || m && i.key === " " || ce.includes(i.key) && (i.currentTarget.click(), i.preventDefault());
|
|
397
|
+
})
|
|
398
|
+
}
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
);
|
|
402
|
+
ne.displayName = Z;
|
|
403
|
+
var Qe = d(
|
|
404
|
+
(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());
|
|
409
|
+
}, [s.children]), /* @__PURE__ */ r.jsx(
|
|
410
|
+
G.ItemSlot,
|
|
411
|
+
{
|
|
412
|
+
scope: t,
|
|
413
|
+
disabled: o,
|
|
414
|
+
textValue: a ?? m,
|
|
415
|
+
children: /* @__PURE__ */ r.jsx(je, { asChild: !0, ...u, focusable: !o, children: /* @__PURE__ */ r.jsx(
|
|
416
|
+
N.div,
|
|
417
|
+
{
|
|
418
|
+
role: "menuitem",
|
|
419
|
+
"data-highlighted": l ? "" : void 0,
|
|
420
|
+
"aria-disabled": o || void 0,
|
|
421
|
+
"data-disabled": o ? "" : void 0,
|
|
422
|
+
...s,
|
|
423
|
+
ref: g,
|
|
424
|
+
onPointerMove: v(
|
|
425
|
+
e.onPointerMove,
|
|
426
|
+
$((b) => {
|
|
427
|
+
o ? c.onItemLeave(b) : (c.onItemEnter(b), b.defaultPrevented || b.currentTarget.focus({ preventScroll: !0 }));
|
|
428
|
+
})
|
|
429
|
+
),
|
|
430
|
+
onPointerLeave: v(
|
|
431
|
+
e.onPointerLeave,
|
|
432
|
+
$((b) => c.onItemLeave(b))
|
|
433
|
+
),
|
|
434
|
+
onFocus: v(e.onFocus, () => i(!0)),
|
|
435
|
+
onBlur: v(e.onBlur, () => i(!1))
|
|
436
|
+
}
|
|
437
|
+
) })
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
}
|
|
441
|
+
), jn = "MenuCheckboxItem", et = d(
|
|
442
|
+
(e, n) => {
|
|
443
|
+
const { checked: t = !1, onCheckedChange: o, ...a } = e;
|
|
444
|
+
return /* @__PURE__ */ r.jsx(at, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ r.jsx(
|
|
445
|
+
ne,
|
|
446
|
+
{
|
|
447
|
+
role: "menuitemcheckbox",
|
|
448
|
+
"aria-checked": q(t) ? "mixed" : t,
|
|
449
|
+
...a,
|
|
450
|
+
ref: n,
|
|
451
|
+
"data-state": Me(t),
|
|
452
|
+
onSelect: v(
|
|
453
|
+
a.onSelect,
|
|
454
|
+
() => o == null ? void 0 : o(q(t) ? !0 : !t),
|
|
455
|
+
{ checkForDefaultPrevented: !1 }
|
|
456
|
+
)
|
|
457
|
+
}
|
|
458
|
+
) });
|
|
459
|
+
}
|
|
460
|
+
);
|
|
461
|
+
et.displayName = jn;
|
|
462
|
+
var tt = "MenuRadioGroup", [An, Rn] = P(
|
|
463
|
+
tt,
|
|
464
|
+
{ value: void 0, onValueChange: () => {
|
|
465
|
+
} }
|
|
466
|
+
), nt = d(
|
|
467
|
+
(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 }) });
|
|
470
|
+
}
|
|
471
|
+
);
|
|
472
|
+
nt.displayName = tt;
|
|
473
|
+
var ot = "MenuRadioItem", rt = d(
|
|
474
|
+
(e, n) => {
|
|
475
|
+
const { value: t, ...o } = e, a = Rn(ot, e.__scopeMenu), s = t === a.value;
|
|
476
|
+
return /* @__PURE__ */ r.jsx(at, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ r.jsx(
|
|
477
|
+
ne,
|
|
478
|
+
{
|
|
479
|
+
role: "menuitemradio",
|
|
480
|
+
"aria-checked": s,
|
|
481
|
+
...o,
|
|
482
|
+
ref: n,
|
|
483
|
+
"data-state": Me(s),
|
|
484
|
+
onSelect: v(
|
|
485
|
+
o.onSelect,
|
|
486
|
+
() => {
|
|
487
|
+
var c;
|
|
488
|
+
return (c = a.onValueChange) == null ? void 0 : c.call(a, t);
|
|
489
|
+
},
|
|
490
|
+
{ checkForDefaultPrevented: !1 }
|
|
491
|
+
)
|
|
492
|
+
}
|
|
493
|
+
) });
|
|
494
|
+
}
|
|
495
|
+
);
|
|
496
|
+
rt.displayName = ot;
|
|
497
|
+
var he = "MenuItemIndicator", [at, kn] = P(
|
|
498
|
+
he,
|
|
499
|
+
{ checked: !1 }
|
|
500
|
+
), st = d(
|
|
501
|
+
(e, n) => {
|
|
502
|
+
const { __scopeMenu: t, forceMount: o, ...a } = e, s = kn(he, t);
|
|
503
|
+
return /* @__PURE__ */ r.jsx(
|
|
504
|
+
K,
|
|
505
|
+
{
|
|
506
|
+
present: o || q(s.checked) || s.checked === !0,
|
|
507
|
+
children: /* @__PURE__ */ r.jsx(
|
|
508
|
+
N.span,
|
|
509
|
+
{
|
|
510
|
+
...a,
|
|
511
|
+
ref: n,
|
|
512
|
+
"data-state": Me(s.checked)
|
|
513
|
+
}
|
|
514
|
+
)
|
|
515
|
+
}
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
);
|
|
519
|
+
st.displayName = he;
|
|
520
|
+
var On = "MenuSeparator", it = d(
|
|
521
|
+
(e, n) => {
|
|
522
|
+
const { __scopeMenu: t, ...o } = e;
|
|
523
|
+
return /* @__PURE__ */ r.jsx(
|
|
524
|
+
N.div,
|
|
525
|
+
{
|
|
526
|
+
role: "separator",
|
|
527
|
+
"aria-orientation": "horizontal",
|
|
528
|
+
...o,
|
|
529
|
+
ref: n
|
|
530
|
+
}
|
|
531
|
+
);
|
|
532
|
+
}
|
|
533
|
+
);
|
|
534
|
+
it.displayName = On;
|
|
535
|
+
var Fn = "MenuArrow", ct = d(
|
|
536
|
+
(e, n) => {
|
|
537
|
+
const { __scopeMenu: t, ...o } = e, a = me(t);
|
|
538
|
+
return /* @__PURE__ */ r.jsx(rn, { ...a, ...o, ref: n });
|
|
539
|
+
}
|
|
540
|
+
);
|
|
541
|
+
ct.displayName = Fn;
|
|
542
|
+
var Ln = "MenuSub", [zo, dt] = P(Ln), L = "MenuSubTrigger", ut = d(
|
|
543
|
+
(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(() => {
|
|
545
|
+
c.current && window.clearTimeout(c.current), c.current = null;
|
|
546
|
+
}, []);
|
|
547
|
+
return k(() => l, [l]), k(() => {
|
|
548
|
+
const i = u.current;
|
|
549
|
+
return () => {
|
|
550
|
+
window.clearTimeout(i), f(null);
|
|
551
|
+
};
|
|
552
|
+
}, [u, f]), /* @__PURE__ */ r.jsx(fe, { asChild: !0, ...g, children: /* @__PURE__ */ r.jsx(
|
|
553
|
+
Qe,
|
|
554
|
+
{
|
|
555
|
+
id: a.triggerId,
|
|
556
|
+
"aria-haspopup": "menu",
|
|
557
|
+
"aria-expanded": t.open,
|
|
558
|
+
"aria-controls": a.contentId,
|
|
559
|
+
"data-state": mt(t.open),
|
|
560
|
+
...e,
|
|
561
|
+
ref: Pe(n, a.onTriggerChange),
|
|
562
|
+
onClick: (i) => {
|
|
563
|
+
var m;
|
|
564
|
+
(m = e.onClick) == null || m.call(e, i), !(e.disabled || i.defaultPrevented) && (i.currentTarget.focus(), t.open || t.onOpenChange(!0));
|
|
565
|
+
},
|
|
566
|
+
onPointerMove: v(
|
|
567
|
+
e.onPointerMove,
|
|
568
|
+
$((i) => {
|
|
569
|
+
s.onItemEnter(i), !i.defaultPrevented && !e.disabled && !t.open && !c.current && (s.onPointerGraceIntentChange(null), c.current = window.setTimeout(() => {
|
|
570
|
+
t.onOpenChange(!0), l();
|
|
571
|
+
}, 100));
|
|
572
|
+
})
|
|
573
|
+
),
|
|
574
|
+
onPointerLeave: v(
|
|
575
|
+
e.onPointerLeave,
|
|
576
|
+
$((i) => {
|
|
577
|
+
var x, b;
|
|
578
|
+
l();
|
|
579
|
+
const m = (x = t.content) == null ? void 0 : x.getBoundingClientRect();
|
|
580
|
+
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"];
|
|
582
|
+
s.onPointerGraceIntentChange({
|
|
583
|
+
area: [
|
|
584
|
+
// Apply a bleed on clientX to ensure that our exit point is
|
|
585
|
+
// consistently within polygon bounds
|
|
586
|
+
{ x: i.clientX + O, y: i.clientY },
|
|
587
|
+
{ x: z, y: m.top },
|
|
588
|
+
{ x: Y, y: m.top },
|
|
589
|
+
{ x: Y, y: m.bottom },
|
|
590
|
+
{ x: z, y: m.bottom }
|
|
591
|
+
],
|
|
592
|
+
side: T
|
|
593
|
+
}), window.clearTimeout(u.current), u.current = window.setTimeout(
|
|
594
|
+
() => s.onPointerGraceIntentChange(null),
|
|
595
|
+
300
|
|
596
|
+
);
|
|
597
|
+
} else {
|
|
598
|
+
if (s.onTriggerLeave(i), i.defaultPrevented) return;
|
|
599
|
+
s.onPointerGraceIntentChange(null);
|
|
600
|
+
}
|
|
601
|
+
})
|
|
602
|
+
),
|
|
603
|
+
onKeyDown: v(e.onKeyDown, (i) => {
|
|
604
|
+
var x;
|
|
605
|
+
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());
|
|
607
|
+
})
|
|
608
|
+
}
|
|
609
|
+
) });
|
|
610
|
+
}
|
|
611
|
+
);
|
|
612
|
+
ut.displayName = L;
|
|
613
|
+
var lt = "MenuSubContent", pt = d(
|
|
614
|
+
(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);
|
|
616
|
+
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
|
+
xe,
|
|
618
|
+
{
|
|
619
|
+
id: u.contentId,
|
|
620
|
+
"aria-labelledby": u.triggerId,
|
|
621
|
+
...a,
|
|
622
|
+
ref: g,
|
|
623
|
+
align: "start",
|
|
624
|
+
side: c.dir === "rtl" ? "left" : "right",
|
|
625
|
+
disableOutsidePointerEvents: !1,
|
|
626
|
+
disableOutsideScroll: !1,
|
|
627
|
+
trapFocus: !1,
|
|
628
|
+
onOpenAutoFocus: (l) => {
|
|
629
|
+
var i;
|
|
630
|
+
c.isUsingKeyboardRef.current && ((i = f.current) == null || i.focus()), l.preventDefault();
|
|
631
|
+
},
|
|
632
|
+
onCloseAutoFocus: (l) => l.preventDefault(),
|
|
633
|
+
onFocusOutside: v(e.onFocusOutside, (l) => {
|
|
634
|
+
l.target !== u.trigger && s.onOpenChange(!1);
|
|
635
|
+
}),
|
|
636
|
+
onEscapeKeyDown: v(e.onEscapeKeyDown, (l) => {
|
|
637
|
+
c.onClose(), l.preventDefault();
|
|
638
|
+
}),
|
|
639
|
+
onKeyDown: v(e.onKeyDown, (l) => {
|
|
640
|
+
var x;
|
|
641
|
+
const i = l.currentTarget.contains(l.target), m = _n[c.dir].includes(l.key);
|
|
642
|
+
i && m && (s.onOpenChange(!1), (x = u.trigger) == null || x.focus(), l.preventDefault());
|
|
643
|
+
})
|
|
644
|
+
}
|
|
645
|
+
) }) }) });
|
|
646
|
+
}
|
|
647
|
+
);
|
|
648
|
+
pt.displayName = lt;
|
|
649
|
+
function mt(e) {
|
|
650
|
+
return e ? "open" : "closed";
|
|
651
|
+
}
|
|
652
|
+
function q(e) {
|
|
653
|
+
return e === "indeterminate";
|
|
654
|
+
}
|
|
655
|
+
function Me(e) {
|
|
656
|
+
return q(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
657
|
+
}
|
|
658
|
+
function Gn(e) {
|
|
659
|
+
const n = document.activeElement;
|
|
660
|
+
for (const t of e)
|
|
661
|
+
if (t === n || (t.focus(), document.activeElement !== n)) return;
|
|
662
|
+
}
|
|
663
|
+
function $n(e, n) {
|
|
664
|
+
return e.map((t, o) => e[(n + o) % e.length]);
|
|
665
|
+
}
|
|
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));
|
|
670
|
+
const f = c.find(
|
|
671
|
+
(g) => g.toLowerCase().startsWith(a.toLowerCase())
|
|
672
|
+
);
|
|
673
|
+
return f !== t ? f : void 0;
|
|
674
|
+
}
|
|
675
|
+
function Vn(e, n) {
|
|
676
|
+
const { x: t, y: o } = e;
|
|
677
|
+
let a = !1;
|
|
678
|
+
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);
|
|
681
|
+
}
|
|
682
|
+
return a;
|
|
683
|
+
}
|
|
684
|
+
function Bn(e, n) {
|
|
685
|
+
if (!n) return !1;
|
|
686
|
+
const t = { x: e.clientX, y: e.clientY };
|
|
687
|
+
return Vn(t, n);
|
|
688
|
+
}
|
|
689
|
+
function $(e) {
|
|
690
|
+
return (n) => n.pointerType === "mouse" ? e(n) : void 0;
|
|
691
|
+
}
|
|
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(
|
|
693
|
+
ft,
|
|
694
|
+
[Xe]
|
|
695
|
+
), M = Xe(), [Yo, gt] = ro(ft), vt = "DropdownMenuTrigger", xt = d(
|
|
696
|
+
(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(
|
|
699
|
+
N.button,
|
|
700
|
+
{
|
|
701
|
+
type: "button",
|
|
702
|
+
id: s.triggerId,
|
|
703
|
+
"aria-haspopup": "menu",
|
|
704
|
+
"aria-expanded": s.open,
|
|
705
|
+
"aria-controls": s.open ? s.contentId : void 0,
|
|
706
|
+
"data-state": s.open ? "open" : "closed",
|
|
707
|
+
"data-disabled": o ? "" : void 0,
|
|
708
|
+
disabled: o,
|
|
709
|
+
...a,
|
|
710
|
+
ref: Pe(n, s.triggerRef),
|
|
711
|
+
onPointerDown: v(e.onPointerDown, (u) => {
|
|
712
|
+
!o && u.button === 0 && u.ctrlKey === !1 && (s.onOpenToggle(), s.open || u.preventDefault());
|
|
713
|
+
}),
|
|
714
|
+
onKeyDown: v(e.onKeyDown, (u) => {
|
|
715
|
+
o || (["Enter", " "].includes(u.key) && s.onOpenToggle(), u.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(u.key) && u.preventDefault());
|
|
716
|
+
})
|
|
717
|
+
}
|
|
718
|
+
) });
|
|
719
|
+
}
|
|
720
|
+
);
|
|
721
|
+
xt.displayName = vt;
|
|
722
|
+
var ao = "DropdownMenuPortal", bt = (e) => {
|
|
723
|
+
const { __scopeDropdownMenu: n, ...t } = e, o = M(n);
|
|
724
|
+
return /* @__PURE__ */ r.jsx(zn, { ...o, ...t });
|
|
725
|
+
};
|
|
726
|
+
bt.displayName = ao;
|
|
727
|
+
var ht = "DropdownMenuContent", Mt = d(
|
|
728
|
+
(e, n) => {
|
|
729
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = gt(ht, t), s = M(t), c = h(!1);
|
|
730
|
+
return /* @__PURE__ */ r.jsx(
|
|
731
|
+
Yn,
|
|
732
|
+
{
|
|
733
|
+
id: a.contentId,
|
|
734
|
+
"aria-labelledby": a.triggerId,
|
|
735
|
+
...s,
|
|
736
|
+
...o,
|
|
737
|
+
ref: n,
|
|
738
|
+
onCloseAutoFocus: v(e.onCloseAutoFocus, (u) => {
|
|
739
|
+
var f;
|
|
740
|
+
c.current || (f = a.triggerRef.current) == null || f.focus(), c.current = !1, u.preventDefault();
|
|
741
|
+
}),
|
|
742
|
+
onInteractOutside: v(e.onInteractOutside, (u) => {
|
|
743
|
+
const f = u.detail.originalEvent, g = f.button === 0 && f.ctrlKey === !0, l = f.button === 2 || g;
|
|
744
|
+
(!a.modal || l) && (c.current = !0);
|
|
745
|
+
}),
|
|
746
|
+
style: {
|
|
747
|
+
...e.style,
|
|
748
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
749
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
750
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
751
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
752
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
);
|
|
756
|
+
}
|
|
757
|
+
);
|
|
758
|
+
Mt.displayName = ht;
|
|
759
|
+
var so = "DropdownMenuGroup", io = d(
|
|
760
|
+
(e, n) => {
|
|
761
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
762
|
+
return /* @__PURE__ */ r.jsx(Xn, { ...a, ...o, ref: n });
|
|
763
|
+
}
|
|
764
|
+
);
|
|
765
|
+
io.displayName = so;
|
|
766
|
+
var co = "DropdownMenuLabel", _t = d(
|
|
767
|
+
(e, n) => {
|
|
768
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
769
|
+
return /* @__PURE__ */ r.jsx(Wn, { ...a, ...o, ref: n });
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
_t.displayName = co;
|
|
773
|
+
var uo = "DropdownMenuItem", yt = d(
|
|
774
|
+
(e, n) => {
|
|
775
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
776
|
+
return /* @__PURE__ */ r.jsx(Hn, { ...a, ...o, ref: n });
|
|
777
|
+
}
|
|
778
|
+
);
|
|
779
|
+
yt.displayName = uo;
|
|
780
|
+
var lo = "DropdownMenuCheckboxItem", wt = d((e, n) => {
|
|
781
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
782
|
+
return /* @__PURE__ */ r.jsx(Zn, { ...a, ...o, ref: n });
|
|
783
|
+
});
|
|
784
|
+
wt.displayName = lo;
|
|
785
|
+
var po = "DropdownMenuRadioGroup", mo = d((e, n) => {
|
|
786
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
787
|
+
return /* @__PURE__ */ r.jsx(qn, { ...a, ...o, ref: n });
|
|
788
|
+
});
|
|
789
|
+
mo.displayName = po;
|
|
790
|
+
var fo = "DropdownMenuRadioItem", Ct = d((e, n) => {
|
|
791
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
792
|
+
return /* @__PURE__ */ r.jsx(Jn, { ...a, ...o, ref: n });
|
|
793
|
+
});
|
|
794
|
+
Ct.displayName = fo;
|
|
795
|
+
var go = "DropdownMenuItemIndicator", Nt = d((e, n) => {
|
|
796
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
797
|
+
return /* @__PURE__ */ r.jsx(Qn, { ...a, ...o, ref: n });
|
|
798
|
+
});
|
|
799
|
+
Nt.displayName = go;
|
|
800
|
+
var vo = "DropdownMenuSeparator", It = d((e, n) => {
|
|
801
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
802
|
+
return /* @__PURE__ */ r.jsx(eo, { ...a, ...o, ref: n });
|
|
803
|
+
});
|
|
804
|
+
It.displayName = vo;
|
|
805
|
+
var xo = "DropdownMenuArrow", bo = d(
|
|
806
|
+
(e, n) => {
|
|
807
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
808
|
+
return /* @__PURE__ */ r.jsx(to, { ...a, ...o, ref: n });
|
|
809
|
+
}
|
|
810
|
+
);
|
|
811
|
+
bo.displayName = xo;
|
|
812
|
+
var ho = "DropdownMenuSubTrigger", Dt = d((e, n) => {
|
|
813
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
814
|
+
return /* @__PURE__ */ r.jsx(no, { ...a, ...o, ref: n });
|
|
815
|
+
});
|
|
816
|
+
Dt.displayName = ho;
|
|
817
|
+
var Mo = "DropdownMenuSubContent", Tt = d((e, n) => {
|
|
818
|
+
const { __scopeDropdownMenu: t, ...o } = e, a = M(t);
|
|
819
|
+
return /* @__PURE__ */ r.jsx(
|
|
820
|
+
oo,
|
|
821
|
+
{
|
|
822
|
+
...a,
|
|
823
|
+
...o,
|
|
824
|
+
ref: n,
|
|
825
|
+
style: {
|
|
826
|
+
...e.style,
|
|
827
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
828
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
829
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
830
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
831
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
);
|
|
835
|
+
});
|
|
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,
|
|
840
|
+
{
|
|
841
|
+
ref: a,
|
|
842
|
+
className: _(
|
|
843
|
+
"flex cursor-default gap-2 select-none hover:bg-accent items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
844
|
+
n && "pl-8",
|
|
845
|
+
e
|
|
846
|
+
),
|
|
847
|
+
...o,
|
|
848
|
+
children: [
|
|
849
|
+
t,
|
|
850
|
+
/* @__PURE__ */ r.jsx(cn, { className: "ml-auto" })
|
|
851
|
+
]
|
|
852
|
+
}
|
|
853
|
+
));
|
|
854
|
+
Co.displayName = Ot.displayName;
|
|
855
|
+
const No = d(({ className: e, ...n }, t) => /* @__PURE__ */ r.jsx("div", { className: Se, children: /* @__PURE__ */ r.jsx(
|
|
856
|
+
Ft,
|
|
857
|
+
{
|
|
858
|
+
ref: t,
|
|
859
|
+
className: _(
|
|
860
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
861
|
+
e
|
|
862
|
+
),
|
|
863
|
+
...n
|
|
864
|
+
}
|
|
865
|
+
) }));
|
|
866
|
+
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(
|
|
868
|
+
Pt,
|
|
869
|
+
{
|
|
870
|
+
ref: o,
|
|
871
|
+
className: _(
|
|
872
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
873
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
874
|
+
e
|
|
875
|
+
),
|
|
876
|
+
sideOffset: n,
|
|
877
|
+
...t
|
|
878
|
+
}
|
|
879
|
+
) }) }));
|
|
880
|
+
Io.displayName = Pt.displayName;
|
|
881
|
+
const Do = d(({ className: e, inset: n, ...t }, o) => /* @__PURE__ */ r.jsx(
|
|
882
|
+
Et,
|
|
883
|
+
{
|
|
884
|
+
ref: o,
|
|
885
|
+
className: _(
|
|
886
|
+
"relative flex cursor-default select-none cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
887
|
+
n && "pl-8",
|
|
888
|
+
e
|
|
889
|
+
),
|
|
890
|
+
...t
|
|
891
|
+
}
|
|
892
|
+
));
|
|
893
|
+
Do.displayName = Et.displayName;
|
|
894
|
+
const To = d(({ className: e, children: n, checked: t, ...o }, a) => /* @__PURE__ */ r.jsxs(
|
|
895
|
+
jt,
|
|
896
|
+
{
|
|
897
|
+
ref: a,
|
|
898
|
+
checked: t,
|
|
899
|
+
className: _(
|
|
900
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
901
|
+
e
|
|
902
|
+
),
|
|
903
|
+
...o,
|
|
904
|
+
children: [
|
|
905
|
+
/* @__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(dn, { className: "size-4" }) }) }),
|
|
906
|
+
n
|
|
907
|
+
]
|
|
908
|
+
}
|
|
909
|
+
));
|
|
910
|
+
To.displayName = jt.displayName;
|
|
911
|
+
const Po = d(({ className: e, children: n, ...t }, o) => /* @__PURE__ */ r.jsxs(
|
|
912
|
+
At,
|
|
913
|
+
{
|
|
914
|
+
ref: o,
|
|
915
|
+
className: _(
|
|
916
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
917
|
+
e
|
|
918
|
+
),
|
|
919
|
+
...t,
|
|
920
|
+
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" }) }) }),
|
|
922
|
+
n
|
|
923
|
+
]
|
|
924
|
+
}
|
|
925
|
+
));
|
|
926
|
+
Po.displayName = At.displayName;
|
|
927
|
+
const So = d(({ className: e, inset: n, ...t }, o) => /* @__PURE__ */ r.jsx(
|
|
928
|
+
St,
|
|
929
|
+
{
|
|
930
|
+
ref: o,
|
|
931
|
+
className: _(
|
|
932
|
+
"px-2 py-1.5 text-sm font-semibold",
|
|
933
|
+
n && "pl-8",
|
|
934
|
+
e
|
|
935
|
+
),
|
|
936
|
+
...t
|
|
937
|
+
}
|
|
938
|
+
));
|
|
939
|
+
So.displayName = St.displayName;
|
|
940
|
+
const Eo = d(({ className: e, ...n }, t) => /* @__PURE__ */ r.jsx(
|
|
941
|
+
kt,
|
|
942
|
+
{
|
|
943
|
+
ref: t,
|
|
944
|
+
className: _("-mx-1 my-1 h-px bg-muted", e),
|
|
945
|
+
...n
|
|
946
|
+
}
|
|
947
|
+
));
|
|
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;
|
|
951
|
+
const Ao = ue(
|
|
952
|
+
"inline-flex items-center text-muted-foreground",
|
|
953
|
+
{
|
|
954
|
+
variants: {
|
|
955
|
+
variant: {
|
|
956
|
+
segmented: "h-[34px] rounded-lg bg-muted px-[3px]",
|
|
957
|
+
"segmented-sm": "h-8 rounded-lg bg-muted px-[3px]",
|
|
958
|
+
button: "gap-2",
|
|
959
|
+
"button-sm": "gap-1",
|
|
960
|
+
underline: "w-full gap-5 border-b border-b-gray-200 dark:border-gray-950",
|
|
961
|
+
navbar: "h-[52px] items-end gap-6",
|
|
962
|
+
pill: "-ml-0.5 h-[30px] gap-px",
|
|
963
|
+
kpis: "border-b ring-0"
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
defaultVariants: {
|
|
967
|
+
variant: "segmented"
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
), Ro = d(({ className: e, ...n }, t) => {
|
|
971
|
+
const o = J(U);
|
|
972
|
+
return /* @__PURE__ */ r.jsx(
|
|
973
|
+
Ue,
|
|
974
|
+
{
|
|
975
|
+
ref: t,
|
|
976
|
+
className: _(Ao({ variant: o, className: e })),
|
|
977
|
+
...n
|
|
978
|
+
}
|
|
979
|
+
);
|
|
980
|
+
});
|
|
981
|
+
Ro.displayName = Ue.displayName;
|
|
982
|
+
const Lt = ue(
|
|
983
|
+
"inline-flex items-center justify-center whitespace-nowrap px-3 py-1 ring-offset-background transition-all focus-visible:outline-none 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",
|
|
984
|
+
{
|
|
985
|
+
variants: {
|
|
986
|
+
variant: {
|
|
987
|
+
segmented: "h-7 rounded-md text-sm font-medium data-[state=active]:shadow-md",
|
|
988
|
+
"segmented-sm": "h-[26px] rounded-md text-xs font-medium data-[state=active]:shadow-md",
|
|
989
|
+
button: "h-[34px] 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",
|
|
990
|
+
"button-sm": "h-6 gap-1.5 rounded-md p-2 text-xs font-normal text-gray-800 hover:bg-muted data-[state=active]:bg-muted-foreground/10 data-[state=active]:font-medium data-[state=active]:text-foreground",
|
|
991
|
+
underline: '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 data-[state=active]:after:!opacity-100',
|
|
992
|
+
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',
|
|
993
|
+
pill: "relative h-[30px] rounded-md px-3 text-md font-medium text-gray-800 hover:text-foreground data-[state=active]:bg-muted-foreground/10 data-[state=active]:font-semibold data-[state=active]:text-foreground dark:text-gray-500 dark:data-[state=active]:text-foreground",
|
|
994
|
+
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
|
+
}
|
|
996
|
+
},
|
|
997
|
+
defaultVariants: {
|
|
998
|
+
variant: "segmented"
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
), ko = d(({ className: e, ...n }, t) => {
|
|
1002
|
+
const o = J(U);
|
|
1003
|
+
return /* @__PURE__ */ r.jsx(
|
|
1004
|
+
pe,
|
|
1005
|
+
{
|
|
1006
|
+
ref: t,
|
|
1007
|
+
className: _(Lt({ variant: o, className: e })),
|
|
1008
|
+
...n
|
|
1009
|
+
}
|
|
1010
|
+
);
|
|
1011
|
+
});
|
|
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";
|
|
1015
|
+
const Fo = ue(
|
|
1016
|
+
"ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1017
|
+
{
|
|
1018
|
+
variants: {
|
|
1019
|
+
variant: {
|
|
1020
|
+
segmented: "",
|
|
1021
|
+
"segmented-sm": "",
|
|
1022
|
+
button: "",
|
|
1023
|
+
"button-sm": "",
|
|
1024
|
+
underline: "",
|
|
1025
|
+
navbar: "",
|
|
1026
|
+
pill: "",
|
|
1027
|
+
kpis: "ring-0"
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
defaultVariants: {
|
|
1031
|
+
variant: "segmented"
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
), Lo = d(({ className: e, ...n }, t) => {
|
|
1035
|
+
const o = J(U);
|
|
1036
|
+
return /* @__PURE__ */ r.jsx(
|
|
1037
|
+
ze,
|
|
1038
|
+
{
|
|
1039
|
+
ref: t,
|
|
1040
|
+
className: _(Fo({ variant: o, className: e })),
|
|
1041
|
+
...n
|
|
1042
|
+
}
|
|
1043
|
+
);
|
|
1044
|
+
});
|
|
1045
|
+
Lo.displayName = ze.displayName;
|
|
1046
|
+
const Go = d(
|
|
1047
|
+
({ variant: e = "dropdown", className: n, ...t }, o) => /* @__PURE__ */ r.jsx(
|
|
1048
|
+
ln,
|
|
1049
|
+
{
|
|
1050
|
+
ref: o,
|
|
1051
|
+
className: _(
|
|
1052
|
+
"h-auto w-full rounded-none border-x-0 border-t-0 focus-visible:ring-0 bg-transparent py-5",
|
|
1053
|
+
n
|
|
1054
|
+
),
|
|
1055
|
+
variant: e,
|
|
1056
|
+
...t
|
|
1057
|
+
}
|
|
1058
|
+
)
|
|
1059
|
+
);
|
|
1060
|
+
Go.displayName = "KpiDropdownButton";
|
|
1061
|
+
const $o = d(({
|
|
1062
|
+
children: e,
|
|
1063
|
+
className: n,
|
|
1064
|
+
...t
|
|
1065
|
+
}, o) => {
|
|
1066
|
+
const a = J(U);
|
|
1067
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "relative rounded-md hover:bg-muted", children: [
|
|
1068
|
+
/* @__PURE__ */ r.jsx(
|
|
1069
|
+
pe,
|
|
1070
|
+
{
|
|
1071
|
+
ref: o,
|
|
1072
|
+
className: _(Lt({ variant: a, className: n })),
|
|
1073
|
+
...t,
|
|
1074
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "flex items-center gap-2", children: e })
|
|
1075
|
+
}
|
|
1076
|
+
),
|
|
1077
|
+
/* @__PURE__ */ r.jsx(
|
|
1078
|
+
wo,
|
|
1079
|
+
{
|
|
1080
|
+
className: "absolute inset-0 size-full cursor-pointer",
|
|
1081
|
+
onClick: (s) => {
|
|
1082
|
+
s.preventDefault();
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
)
|
|
1086
|
+
] });
|
|
1087
|
+
});
|
|
1088
|
+
$o.displayName = "TabsDropdownTrigger";
|
|
1089
|
+
export {
|
|
1090
|
+
jo as T,
|
|
1091
|
+
Ro as a,
|
|
1092
|
+
ko as b,
|
|
1093
|
+
Lo as c,
|
|
1094
|
+
Oo as d
|
|
1095
|
+
};
|
|
1096
|
+
//# sourceMappingURL=tabs-D_vmoLBo.mjs.map
|