lizaui 8.0.2 → 8.0.3
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/chunks/index-BJ7LndVf.js +87 -0
- package/dist/chunks/index-BJ7LndVf.js.map +1 -0
- package/dist/chunks/index-F6lXbxSB.js +2 -0
- package/dist/chunks/index-F6lXbxSB.js.map +1 -0
- package/dist/chunks/scroll-area-DQDhB5AF.js +2 -0
- package/dist/chunks/scroll-area-DQDhB5AF.js.map +1 -0
- package/dist/chunks/{scroll-area-CsOiTMG3.js → scroll-area-DraFsZQz.js} +167 -162
- package/dist/chunks/scroll-area-DraFsZQz.js.map +1 -0
- package/dist/chunks/{select-CJRY9hSL.js → select-BSKY8D4Z.js} +179 -179
- package/dist/chunks/select-BSKY8D4Z.js.map +1 -0
- package/dist/chunks/select-oS2dnCk6.js +2 -0
- package/dist/chunks/select-oS2dnCk6.js.map +1 -0
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.cjs.js.map +1 -1
- package/dist/pagination/index.es.js +24 -25
- package/dist/pagination/index.es.js.map +1 -1
- package/dist/phone-input/index.cjs.js +1 -1
- package/dist/phone-input/index.cjs.js.map +1 -1
- package/dist/phone-input/index.es.js +13 -13
- package/dist/time-input/index.cjs.js +1 -1
- package/dist/time-input/index.cjs.js.map +1 -1
- package/dist/time-input/index.es.js +2 -3
- package/dist/time-input/index.es.js.map +1 -1
- package/dist/ui/index.cjs.js +4 -4
- package/dist/ui/index.cjs.js.map +1 -1
- package/dist/ui/index.es.js +1062 -1051
- package/dist/ui/index.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-BD4EmzUR.js +0 -15
- package/dist/chunks/index-BD4EmzUR.js.map +0 -1
- package/dist/chunks/index-COBcVFMF.js +0 -2
- package/dist/chunks/index-COBcVFMF.js.map +0 -1
- package/dist/chunks/scroll-area--KGqTnx5.js +0 -2
- package/dist/chunks/scroll-area--KGqTnx5.js.map +0 -1
- package/dist/chunks/scroll-area-CsOiTMG3.js.map +0 -1
- package/dist/chunks/select-CJRY9hSL.js.map +0 -1
- package/dist/chunks/select-DCeDDexH.js +0 -2
- package/dist/chunks/select-DCeDDexH.js.map +0 -1
package/dist/ui/index.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { P as E, c as
|
|
2
|
-
import { B as
|
|
1
|
+
import { P as E, c as q, f as G, b as C, e as W, u as Z, a as H, g as Ot, h as An, j as wt, i as In, R as jn, F as Pn, D as We, k as gs, l as xs, m as hs, d as ve, n as kt, o as $t, O as Lt, C as Ft, p as bs, q as ws, r as Cs, s as Rs, t as _s, L as ys, v as Ms, T as Tn, w as Ye, x as Dn, y as On, z as kn, W as Ss } from "../chunks/textarea-COi5ngTN.js";
|
|
2
|
+
import { B as kp, A as $p, E as Lp, G as Fp, H as Gp, J as Kp, I as zp, S as Vp, K as Up } from "../chunks/textarea-COi5ngTN.js";
|
|
3
3
|
import { j as o } from "../chunks/jsx-runtime-Dk9ExdSX.js";
|
|
4
4
|
import * as i from "react";
|
|
5
5
|
import B from "react";
|
|
6
6
|
import { c as b } from "../chunks/utils-B6yFEsav.js";
|
|
7
|
-
import { L as
|
|
8
|
-
import { u as L, a as ce, c as
|
|
9
|
-
import { g as
|
|
10
|
-
import { S as
|
|
11
|
-
import { u as ge } from "../chunks/index-
|
|
12
|
-
import { CheckIcon as Ln, CircleIcon as Kt, ChevronRightIcon as Fn, GripVerticalIcon as Is, SearchIcon as As, ChevronDownIcon as Gn, MinusIcon as js } from "lucide-react";
|
|
7
|
+
import { L as Hp } from "../chunks/label-error-Dg6_L7YY.js";
|
|
8
|
+
import { u as L, a as ce, c as $n, b as Es } from "../chunks/index-6UmdGTUS.js";
|
|
9
|
+
import { g as Me, h as Se, R as Xe, A as Ze, C as Gt, i as Kt, j as Ns, u as Ln, k as As } from "../chunks/select-BSKY8D4Z.js";
|
|
10
|
+
import { S as Wp, c as Yp, d as Xp, f as Zp, e as Jp, l as Qp, m as ev, n as tv, a as nv, b as ov } from "../chunks/select-BSKY8D4Z.js";
|
|
11
|
+
import { u as ge, c as Je, a as Fn, C as Gn } from "../chunks/index-BJ7LndVf.js";
|
|
13
12
|
import { c as Kn } from "../chunks/index-BOQuZ0gG.js";
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
|
|
13
|
+
import { S as Is } from "../chunks/scroll-area-DraFsZQz.js";
|
|
14
|
+
import { a as av, b as sv } from "../chunks/scroll-area-DraFsZQz.js";
|
|
15
|
+
import js from "react-dom";
|
|
16
|
+
import { B as Ct, b as zn } from "../chunks/button-COC4E-Qv.js";
|
|
17
|
+
var Ps = "Label", Vn = i.forwardRef((e, t) => /* @__PURE__ */ o.jsx(
|
|
18
18
|
E.label,
|
|
19
19
|
{
|
|
20
20
|
...e,
|
|
@@ -24,11 +24,11 @@ var Ts = "Label", Vn = i.forwardRef((e, t) => /* @__PURE__ */ o.jsx(
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
));
|
|
27
|
-
Vn.displayName =
|
|
28
|
-
var
|
|
29
|
-
function
|
|
27
|
+
Vn.displayName = Ps;
|
|
28
|
+
var Ts = Vn;
|
|
29
|
+
function $d({ className: e, ...t }) {
|
|
30
30
|
return /* @__PURE__ */ o.jsx(
|
|
31
|
-
|
|
31
|
+
Ts,
|
|
32
32
|
{
|
|
33
33
|
"data-slot": "label",
|
|
34
34
|
className: b(
|
|
@@ -39,14 +39,14 @@ function Pd({ className: e, ...t }) {
|
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
|
-
var
|
|
42
|
+
var pt = "rovingFocusGroup.onEntryFocus", Ds = { bubbles: !1, cancelable: !0 }, Pe = "RovingFocusGroup", [Rt, Un, Os] = Me(Pe), [ks, le] = q(
|
|
43
43
|
Pe,
|
|
44
|
-
[
|
|
45
|
-
), [
|
|
46
|
-
(e, t) => /* @__PURE__ */ o.jsx(
|
|
44
|
+
[Os]
|
|
45
|
+
), [$s, Ls] = ks(Pe), Bn = i.forwardRef(
|
|
46
|
+
(e, t) => /* @__PURE__ */ o.jsx(Rt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o.jsx(Rt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o.jsx(Fs, { ...e, ref: t }) }) })
|
|
47
47
|
);
|
|
48
48
|
Bn.displayName = Pe;
|
|
49
|
-
var
|
|
49
|
+
var Fs = i.forwardRef((e, t) => {
|
|
50
50
|
const {
|
|
51
51
|
__scopeRovingFocusGroup: n,
|
|
52
52
|
orientation: r,
|
|
@@ -58,18 +58,18 @@ var Gs = i.forwardRef((e, t) => {
|
|
|
58
58
|
onEntryFocus: p,
|
|
59
59
|
preventScrollOnEntryFocus: l = !1,
|
|
60
60
|
...d
|
|
61
|
-
} = e, m = i.useRef(null), g = L(t, m), v = ge(s), [h, w] =
|
|
61
|
+
} = e, m = i.useRef(null), g = L(t, m), v = ge(s), [h, w] = W({
|
|
62
62
|
prop: c,
|
|
63
63
|
defaultProp: u ?? null,
|
|
64
64
|
onChange: f,
|
|
65
65
|
caller: Pe
|
|
66
|
-
}), [R,
|
|
66
|
+
}), [R, M] = i.useState(!1), _ = Z(p), N = Un(n), A = i.useRef(!1), [S, D] = i.useState(0);
|
|
67
67
|
return i.useEffect(() => {
|
|
68
68
|
const k = m.current;
|
|
69
69
|
if (k)
|
|
70
|
-
return k.addEventListener(
|
|
70
|
+
return k.addEventListener(pt, _), () => k.removeEventListener(pt, _);
|
|
71
71
|
}, [_]), /* @__PURE__ */ o.jsx(
|
|
72
|
-
|
|
72
|
+
$s,
|
|
73
73
|
{
|
|
74
74
|
scope: n,
|
|
75
75
|
orientation: r,
|
|
@@ -80,7 +80,7 @@ var Gs = i.forwardRef((e, t) => {
|
|
|
80
80
|
(k) => w(k),
|
|
81
81
|
[w]
|
|
82
82
|
),
|
|
83
|
-
onItemShiftTab: i.useCallback(() =>
|
|
83
|
+
onItemShiftTab: i.useCallback(() => M(!0), []),
|
|
84
84
|
onFocusableItemAdd: i.useCallback(
|
|
85
85
|
() => D((k) => k + 1),
|
|
86
86
|
[]
|
|
@@ -98,27 +98,27 @@ var Gs = i.forwardRef((e, t) => {
|
|
|
98
98
|
ref: g,
|
|
99
99
|
style: { outline: "none", ...e.style },
|
|
100
100
|
onMouseDown: C(e.onMouseDown, () => {
|
|
101
|
-
|
|
101
|
+
A.current = !0;
|
|
102
102
|
}),
|
|
103
103
|
onFocus: C(e.onFocus, (k) => {
|
|
104
|
-
const $ = !
|
|
104
|
+
const $ = !A.current;
|
|
105
105
|
if (k.target === k.currentTarget && $ && !R) {
|
|
106
|
-
const F = new CustomEvent(
|
|
106
|
+
const F = new CustomEvent(pt, Ds);
|
|
107
107
|
if (k.currentTarget.dispatchEvent(F), !F.defaultPrevented) {
|
|
108
108
|
const Y = N().filter((X) => X.focusable), oe = Y.find((X) => X.active), pe = Y.find((X) => X.id === h), re = [oe, pe, ...Y].filter(
|
|
109
109
|
Boolean
|
|
110
110
|
).map((X) => X.ref.current);
|
|
111
|
-
|
|
111
|
+
Wn(re, l);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
A.current = !1;
|
|
115
115
|
}),
|
|
116
|
-
onBlur: C(e.onBlur, () =>
|
|
116
|
+
onBlur: C(e.onBlur, () => M(!1))
|
|
117
117
|
}
|
|
118
118
|
)
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
|
-
}), Hn = "RovingFocusGroupItem",
|
|
121
|
+
}), Hn = "RovingFocusGroupItem", qn = i.forwardRef(
|
|
122
122
|
(e, t) => {
|
|
123
123
|
const {
|
|
124
124
|
__scopeRovingFocusGroup: n,
|
|
@@ -127,12 +127,12 @@ var Gs = i.forwardRef((e, t) => {
|
|
|
127
127
|
tabStopId: s,
|
|
128
128
|
children: c,
|
|
129
129
|
...u
|
|
130
|
-
} = e, f = G(), p = s || f, l =
|
|
130
|
+
} = e, f = G(), p = s || f, l = Ls(Hn, n), d = l.currentTabStopId === p, m = Un(n), { onFocusableItemAdd: g, onFocusableItemRemove: v, currentTabStopId: h } = l;
|
|
131
131
|
return i.useEffect(() => {
|
|
132
132
|
if (r)
|
|
133
133
|
return g(), () => v();
|
|
134
134
|
}, [r, g, v]), /* @__PURE__ */ o.jsx(
|
|
135
|
-
|
|
135
|
+
Rt.ItemSlot,
|
|
136
136
|
{
|
|
137
137
|
scope: n,
|
|
138
138
|
id: p,
|
|
@@ -155,7 +155,7 @@ var Gs = i.forwardRef((e, t) => {
|
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
157
|
if (w.target !== w.currentTarget) return;
|
|
158
|
-
const R =
|
|
158
|
+
const R = zs(w, l.orientation, l.dir);
|
|
159
159
|
if (R !== void 0) {
|
|
160
160
|
if (w.metaKey || w.ctrlKey || w.altKey || w.shiftKey) return;
|
|
161
161
|
w.preventDefault();
|
|
@@ -164,9 +164,9 @@ var Gs = i.forwardRef((e, t) => {
|
|
|
164
164
|
else if (R === "prev" || R === "next") {
|
|
165
165
|
R === "prev" && _.reverse();
|
|
166
166
|
const N = _.indexOf(w.currentTarget);
|
|
167
|
-
_ = l.loop ?
|
|
167
|
+
_ = l.loop ? Vs(_, N + 1) : _.slice(N + 1);
|
|
168
168
|
}
|
|
169
|
-
setTimeout(() =>
|
|
169
|
+
setTimeout(() => Wn(_));
|
|
170
170
|
}
|
|
171
171
|
}),
|
|
172
172
|
children: typeof c == "function" ? c({ isCurrentTabStop: d, hasTabStop: h != null }) : c
|
|
@@ -176,8 +176,8 @@ var Gs = i.forwardRef((e, t) => {
|
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
|
-
|
|
180
|
-
var
|
|
179
|
+
qn.displayName = Hn;
|
|
180
|
+
var Gs = {
|
|
181
181
|
ArrowLeft: "prev",
|
|
182
182
|
ArrowUp: "prev",
|
|
183
183
|
ArrowRight: "next",
|
|
@@ -187,33 +187,33 @@ var Ks = {
|
|
|
187
187
|
PageDown: "last",
|
|
188
188
|
End: "last"
|
|
189
189
|
};
|
|
190
|
-
function
|
|
190
|
+
function Ks(e, t) {
|
|
191
191
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
const r =
|
|
193
|
+
function zs(e, t, n) {
|
|
194
|
+
const r = Ks(e.key, n);
|
|
195
195
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
196
|
-
return
|
|
196
|
+
return Gs[r];
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Wn(e, t = !1) {
|
|
199
199
|
const n = document.activeElement;
|
|
200
200
|
for (const r of e)
|
|
201
201
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Vs(e, t) {
|
|
204
204
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
205
205
|
}
|
|
206
|
-
var
|
|
207
|
-
ltr: [...
|
|
208
|
-
rtl: [...
|
|
206
|
+
var Qe = Bn, et = qn, _t = ["Enter", " "], Us = ["ArrowDown", "PageUp", "Home"], Yn = ["ArrowUp", "PageDown", "End"], Bs = [...Us, ...Yn], Hs = {
|
|
207
|
+
ltr: [..._t, "ArrowRight"],
|
|
208
|
+
rtl: [..._t, "ArrowLeft"]
|
|
209
209
|
}, qs = {
|
|
210
210
|
ltr: ["ArrowLeft"],
|
|
211
211
|
rtl: ["ArrowRight"]
|
|
212
|
-
}, Te = "Menu", [
|
|
213
|
-
|
|
212
|
+
}, Te = "Menu", [Ie, Ws, Ys] = Me(Te), [xe, zt] = q(Te, [
|
|
213
|
+
Ys,
|
|
214
214
|
Se,
|
|
215
215
|
le
|
|
216
|
-
]), De = Se(), Xn = le(), [Zn, de] = xe(Te), [
|
|
216
|
+
]), De = Se(), Xn = le(), [Zn, de] = xe(Te), [Xs, Oe] = xe(Te), Jn = (e) => {
|
|
217
217
|
const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: c = !0 } = e, u = De(t), [f, p] = i.useState(null), l = i.useRef(!1), d = Z(s), m = ge(a);
|
|
218
218
|
return i.useEffect(() => {
|
|
219
219
|
const g = () => {
|
|
@@ -231,7 +231,7 @@ var Je = Bn, Qe = Wn, Rt = ["Enter", " "], Bs = ["ArrowDown", "PageUp", "Home"],
|
|
|
231
231
|
content: f,
|
|
232
232
|
onContentChange: p,
|
|
233
233
|
children: /* @__PURE__ */ o.jsx(
|
|
234
|
-
|
|
234
|
+
Xs,
|
|
235
235
|
{
|
|
236
236
|
scope: t,
|
|
237
237
|
onClose: i.useCallback(() => d(!1), [d]),
|
|
@@ -245,31 +245,31 @@ var Je = Bn, Qe = Wn, Rt = ["Enter", " "], Bs = ["ArrowDown", "PageUp", "Home"],
|
|
|
245
245
|
) });
|
|
246
246
|
};
|
|
247
247
|
Jn.displayName = Te;
|
|
248
|
-
var
|
|
248
|
+
var Zs = "MenuAnchor", Vt = i.forwardRef(
|
|
249
249
|
(e, t) => {
|
|
250
250
|
const { __scopeMenu: n, ...r } = e, a = De(n);
|
|
251
251
|
return /* @__PURE__ */ o.jsx(Ze, { ...a, ...r, ref: t });
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
Vt.displayName =
|
|
255
|
-
var Ut = "MenuPortal", [
|
|
254
|
+
Vt.displayName = Zs;
|
|
255
|
+
var Ut = "MenuPortal", [Js, Qn] = xe(Ut, {
|
|
256
256
|
forceMount: void 0
|
|
257
257
|
}), eo = (e) => {
|
|
258
258
|
const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, s = de(Ut, t);
|
|
259
|
-
return /* @__PURE__ */ o.jsx(
|
|
259
|
+
return /* @__PURE__ */ o.jsx(Js, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(H, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ot, { asChild: !0, container: a, children: r }) }) });
|
|
260
260
|
};
|
|
261
261
|
eo.displayName = Ut;
|
|
262
|
-
var J = "MenuContent", [
|
|
262
|
+
var J = "MenuContent", [Qs, Bt] = xe(J), to = i.forwardRef(
|
|
263
263
|
(e, t) => {
|
|
264
264
|
const n = Qn(J, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = de(J, e.__scopeMenu), c = Oe(J, e.__scopeMenu);
|
|
265
|
-
return /* @__PURE__ */ o.jsx(
|
|
265
|
+
return /* @__PURE__ */ o.jsx(Ie.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(H, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ie.Slot, { scope: e.__scopeMenu, children: c.modal ? /* @__PURE__ */ o.jsx(ei, { ...a, ref: t }) : /* @__PURE__ */ o.jsx(ti, { ...a, ref: t }) }) }) });
|
|
266
266
|
}
|
|
267
|
-
),
|
|
267
|
+
), ei = i.forwardRef(
|
|
268
268
|
(e, t) => {
|
|
269
269
|
const n = de(J, e.__scopeMenu), r = i.useRef(null), a = L(t, r);
|
|
270
270
|
return i.useEffect(() => {
|
|
271
271
|
const s = r.current;
|
|
272
|
-
if (s) return
|
|
272
|
+
if (s) return An(s);
|
|
273
273
|
}, []), /* @__PURE__ */ o.jsx(
|
|
274
274
|
Ht,
|
|
275
275
|
{
|
|
@@ -287,7 +287,7 @@ var J = "MenuContent", [ei, Bt] = xe(J), to = i.forwardRef(
|
|
|
287
287
|
}
|
|
288
288
|
);
|
|
289
289
|
}
|
|
290
|
-
),
|
|
290
|
+
), ti = i.forwardRef((e, t) => {
|
|
291
291
|
const n = de(J, e.__scopeMenu);
|
|
292
292
|
return /* @__PURE__ */ o.jsx(
|
|
293
293
|
Ht,
|
|
@@ -300,7 +300,7 @@ var J = "MenuContent", [ei, Bt] = xe(J), to = i.forwardRef(
|
|
|
300
300
|
onDismiss: () => n.onOpenChange(!1)
|
|
301
301
|
}
|
|
302
302
|
);
|
|
303
|
-
}),
|
|
303
|
+
}), ni = $n("MenuContent.ScrollLock"), Ht = i.forwardRef(
|
|
304
304
|
(e, t) => {
|
|
305
305
|
const {
|
|
306
306
|
__scopeMenu: n,
|
|
@@ -317,16 +317,16 @@ var J = "MenuContent", [ei, Bt] = xe(J), to = i.forwardRef(
|
|
|
317
317
|
onDismiss: g,
|
|
318
318
|
disableOutsideScroll: v,
|
|
319
319
|
...h
|
|
320
|
-
} = e, w = de(J, n), R = Oe(J, n),
|
|
321
|
-
const se = F.current + j, ne = N().filter((P) => !P.disabled), x = document.activeElement,
|
|
320
|
+
} = e, w = de(J, n), R = Oe(J, n), M = De(n), _ = Xn(n), N = Ws(n), [A, S] = i.useState(null), D = i.useRef(null), k = L(t, D, w.onContentChange), $ = i.useRef(0), F = i.useRef(""), Y = i.useRef(0), oe = i.useRef(null), pe = i.useRef("right"), ee = i.useRef(0), re = v ? jn : i.Fragment, X = v ? { as: ni, allowPinchZoom: !0 } : void 0, Ee = (j) => {
|
|
321
|
+
const se = F.current + j, ne = N().filter((P) => !P.disabled), x = document.activeElement, I = ne.find((P) => P.ref.current === x)?.textValue, T = ne.map((P) => P.textValue), y = vi(T, se, I), O = ne.find((P) => P.textValue === y)?.ref.current;
|
|
322
322
|
(function P(K) {
|
|
323
323
|
F.current = K, window.clearTimeout($.current), K !== "" && ($.current = window.setTimeout(() => P(""), 1e3));
|
|
324
324
|
})(se), O && setTimeout(() => O.focus());
|
|
325
325
|
};
|
|
326
326
|
i.useEffect(() => () => window.clearTimeout($.current), []), In();
|
|
327
|
-
const ae = i.useCallback((j) => pe.current === oe.current?.side &&
|
|
327
|
+
const ae = i.useCallback((j) => pe.current === oe.current?.side && gi(j, oe.current?.area), []);
|
|
328
328
|
return /* @__PURE__ */ o.jsx(
|
|
329
|
-
|
|
329
|
+
Qs,
|
|
330
330
|
{
|
|
331
331
|
scope: n,
|
|
332
332
|
searchRef: F,
|
|
@@ -353,7 +353,7 @@ var J = "MenuContent", [ei, Bt] = xe(J), to = i.forwardRef(
|
|
|
353
353
|
oe.current = j;
|
|
354
354
|
}, []),
|
|
355
355
|
children: /* @__PURE__ */ o.jsx(re, { ...X, children: /* @__PURE__ */ o.jsx(
|
|
356
|
-
|
|
356
|
+
Pn,
|
|
357
357
|
{
|
|
358
358
|
asChild: !0,
|
|
359
359
|
trapped: a,
|
|
@@ -362,7 +362,7 @@ var J = "MenuContent", [ei, Bt] = xe(J), to = i.forwardRef(
|
|
|
362
362
|
}),
|
|
363
363
|
onUnmountAutoFocus: c,
|
|
364
364
|
children: /* @__PURE__ */ o.jsx(
|
|
365
|
-
|
|
365
|
+
We,
|
|
366
366
|
{
|
|
367
367
|
asChild: !0,
|
|
368
368
|
disableOutsidePointerEvents: u,
|
|
@@ -372,39 +372,39 @@ var J = "MenuContent", [ei, Bt] = xe(J), to = i.forwardRef(
|
|
|
372
372
|
onInteractOutside: m,
|
|
373
373
|
onDismiss: g,
|
|
374
374
|
children: /* @__PURE__ */ o.jsx(
|
|
375
|
-
|
|
375
|
+
Qe,
|
|
376
376
|
{
|
|
377
377
|
asChild: !0,
|
|
378
378
|
..._,
|
|
379
379
|
dir: R.dir,
|
|
380
380
|
orientation: "vertical",
|
|
381
381
|
loop: r,
|
|
382
|
-
currentTabStopId:
|
|
382
|
+
currentTabStopId: A,
|
|
383
383
|
onCurrentTabStopIdChange: S,
|
|
384
384
|
onEntryFocus: C(f, (j) => {
|
|
385
385
|
R.isUsingKeyboardRef.current || j.preventDefault();
|
|
386
386
|
}),
|
|
387
387
|
preventScrollOnEntryFocus: !0,
|
|
388
388
|
children: /* @__PURE__ */ o.jsx(
|
|
389
|
-
|
|
389
|
+
Gt,
|
|
390
390
|
{
|
|
391
391
|
role: "menu",
|
|
392
392
|
"aria-orientation": "vertical",
|
|
393
393
|
"data-state": bo(w.open),
|
|
394
394
|
"data-radix-menu-content": "",
|
|
395
395
|
dir: R.dir,
|
|
396
|
-
...
|
|
396
|
+
...M,
|
|
397
397
|
...h,
|
|
398
398
|
ref: k,
|
|
399
399
|
style: { outline: "none", ...h.style },
|
|
400
400
|
onKeyDown: C(h.onKeyDown, (j) => {
|
|
401
|
-
const ne = j.target.closest("[data-radix-menu-content]") === j.currentTarget, x = j.ctrlKey || j.altKey || j.metaKey,
|
|
402
|
-
ne && (j.key === "Tab" && j.preventDefault(), !x &&
|
|
401
|
+
const ne = j.target.closest("[data-radix-menu-content]") === j.currentTarget, x = j.ctrlKey || j.altKey || j.metaKey, I = j.key.length === 1;
|
|
402
|
+
ne && (j.key === "Tab" && j.preventDefault(), !x && I && Ee(j.key));
|
|
403
403
|
const T = D.current;
|
|
404
|
-
if (j.target !== T || !
|
|
404
|
+
if (j.target !== T || !Bs.includes(j.key)) return;
|
|
405
405
|
j.preventDefault();
|
|
406
406
|
const O = N().filter((P) => !P.disabled).map((P) => P.ref.current);
|
|
407
|
-
Yn.includes(j.key) && O.reverse(),
|
|
407
|
+
Yn.includes(j.key) && O.reverse(), fi(O);
|
|
408
408
|
}),
|
|
409
409
|
onBlur: C(e.onBlur, (j) => {
|
|
410
410
|
j.currentTarget.contains(j.target) || (window.clearTimeout($.current), F.current = "");
|
|
@@ -432,27 +432,27 @@ var J = "MenuContent", [ei, Bt] = xe(J), to = i.forwardRef(
|
|
|
432
432
|
}
|
|
433
433
|
);
|
|
434
434
|
to.displayName = J;
|
|
435
|
-
var
|
|
435
|
+
var oi = "MenuGroup", qt = i.forwardRef(
|
|
436
436
|
(e, t) => {
|
|
437
437
|
const { __scopeMenu: n, ...r } = e;
|
|
438
438
|
return /* @__PURE__ */ o.jsx(E.div, { role: "group", ...r, ref: t });
|
|
439
439
|
}
|
|
440
440
|
);
|
|
441
|
-
|
|
442
|
-
var
|
|
441
|
+
qt.displayName = oi;
|
|
442
|
+
var ri = "MenuLabel", no = i.forwardRef(
|
|
443
443
|
(e, t) => {
|
|
444
444
|
const { __scopeMenu: n, ...r } = e;
|
|
445
445
|
return /* @__PURE__ */ o.jsx(E.div, { ...r, ref: t });
|
|
446
446
|
}
|
|
447
447
|
);
|
|
448
|
-
no.displayName =
|
|
449
|
-
var ze = "MenuItem",
|
|
448
|
+
no.displayName = ri;
|
|
449
|
+
var ze = "MenuItem", bn = "menu.itemSelect", tt = i.forwardRef(
|
|
450
450
|
(e, t) => {
|
|
451
451
|
const { disabled: n = !1, onSelect: r, ...a } = e, s = i.useRef(null), c = Oe(ze, e.__scopeMenu), u = Bt(ze, e.__scopeMenu), f = L(t, s), p = i.useRef(!1), l = () => {
|
|
452
452
|
const d = s.current;
|
|
453
453
|
if (!n && d) {
|
|
454
|
-
const m = new CustomEvent(
|
|
455
|
-
d.addEventListener(
|
|
454
|
+
const m = new CustomEvent(bn, { bubbles: !0, cancelable: !0 });
|
|
455
|
+
d.addEventListener(bn, (g) => r?.(g), { once: !0 }), wt(d, m), m.defaultPrevented ? p.current = !1 : c.onClose();
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
458
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -470,13 +470,13 @@ var ze = "MenuItem", hn = "menu.itemSelect", et = i.forwardRef(
|
|
|
470
470
|
}),
|
|
471
471
|
onKeyDown: C(e.onKeyDown, (d) => {
|
|
472
472
|
const m = u.searchRef.current !== "";
|
|
473
|
-
n || m && d.key === " " ||
|
|
473
|
+
n || m && d.key === " " || _t.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
|
|
474
474
|
})
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
477
|
}
|
|
478
478
|
);
|
|
479
|
-
|
|
479
|
+
tt.displayName = ze;
|
|
480
480
|
var oo = i.forwardRef(
|
|
481
481
|
(e, t) => {
|
|
482
482
|
const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = e, c = Bt(ze, n), u = Xn(n), f = i.useRef(null), p = L(t, f), [l, d] = i.useState(!1), [m, g] = i.useState("");
|
|
@@ -484,12 +484,12 @@ var oo = i.forwardRef(
|
|
|
484
484
|
const v = f.current;
|
|
485
485
|
v && g((v.textContent ?? "").trim());
|
|
486
486
|
}, [s.children]), /* @__PURE__ */ o.jsx(
|
|
487
|
-
|
|
487
|
+
Ie.ItemSlot,
|
|
488
488
|
{
|
|
489
489
|
scope: n,
|
|
490
490
|
disabled: r,
|
|
491
491
|
textValue: a ?? m,
|
|
492
|
-
children: /* @__PURE__ */ o.jsx(
|
|
492
|
+
children: /* @__PURE__ */ o.jsx(et, { asChild: !0, ...u, focusable: !r, children: /* @__PURE__ */ o.jsx(
|
|
493
493
|
E.div,
|
|
494
494
|
{
|
|
495
495
|
role: "menuitem",
|
|
@@ -515,11 +515,11 @@ var oo = i.forwardRef(
|
|
|
515
515
|
}
|
|
516
516
|
);
|
|
517
517
|
}
|
|
518
|
-
),
|
|
518
|
+
), ai = "MenuCheckboxItem", ro = i.forwardRef(
|
|
519
519
|
(e, t) => {
|
|
520
520
|
const { checked: n = !1, onCheckedChange: r, ...a } = e;
|
|
521
521
|
return /* @__PURE__ */ o.jsx(uo, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
|
|
522
|
-
|
|
522
|
+
tt,
|
|
523
523
|
{
|
|
524
524
|
role: "menuitemcheckbox",
|
|
525
525
|
"aria-checked": Ve(n) ? "mixed" : n,
|
|
@@ -535,23 +535,23 @@ var oo = i.forwardRef(
|
|
|
535
535
|
) });
|
|
536
536
|
}
|
|
537
537
|
);
|
|
538
|
-
ro.displayName =
|
|
539
|
-
var ao = "MenuRadioGroup", [
|
|
538
|
+
ro.displayName = ai;
|
|
539
|
+
var ao = "MenuRadioGroup", [si, ii] = xe(
|
|
540
540
|
ao,
|
|
541
541
|
{ value: void 0, onValueChange: () => {
|
|
542
542
|
} }
|
|
543
543
|
), so = i.forwardRef(
|
|
544
544
|
(e, t) => {
|
|
545
545
|
const { value: n, onValueChange: r, ...a } = e, s = Z(r);
|
|
546
|
-
return /* @__PURE__ */ o.jsx(
|
|
546
|
+
return /* @__PURE__ */ o.jsx(si, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(qt, { ...a, ref: t }) });
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
549
|
so.displayName = ao;
|
|
550
550
|
var io = "MenuRadioItem", co = i.forwardRef(
|
|
551
551
|
(e, t) => {
|
|
552
|
-
const { value: n, ...r } = e, a =
|
|
552
|
+
const { value: n, ...r } = e, a = ii(io, e.__scopeMenu), s = n === a.value;
|
|
553
553
|
return /* @__PURE__ */ o.jsx(uo, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
|
|
554
|
-
|
|
554
|
+
tt,
|
|
555
555
|
{
|
|
556
556
|
role: "menuitemradio",
|
|
557
557
|
"aria-checked": s,
|
|
@@ -568,12 +568,12 @@ var io = "MenuRadioItem", co = i.forwardRef(
|
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
co.displayName = io;
|
|
571
|
-
var
|
|
572
|
-
|
|
571
|
+
var Wt = "MenuItemIndicator", [uo, ci] = xe(
|
|
572
|
+
Wt,
|
|
573
573
|
{ checked: !1 }
|
|
574
574
|
), lo = i.forwardRef(
|
|
575
575
|
(e, t) => {
|
|
576
|
-
const { __scopeMenu: n, forceMount: r, ...a } = e, s =
|
|
576
|
+
const { __scopeMenu: n, forceMount: r, ...a } = e, s = ci(Wt, n);
|
|
577
577
|
return /* @__PURE__ */ o.jsx(
|
|
578
578
|
H,
|
|
579
579
|
{
|
|
@@ -590,8 +590,8 @@ var qt = "MenuItemIndicator", [uo, ui] = xe(
|
|
|
590
590
|
);
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
|
-
lo.displayName =
|
|
594
|
-
var
|
|
593
|
+
lo.displayName = Wt;
|
|
594
|
+
var ui = "MenuSeparator", fo = i.forwardRef(
|
|
595
595
|
(e, t) => {
|
|
596
596
|
const { __scopeMenu: n, ...r } = e;
|
|
597
597
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -605,15 +605,15 @@ var li = "MenuSeparator", fo = i.forwardRef(
|
|
|
605
605
|
);
|
|
606
606
|
}
|
|
607
607
|
);
|
|
608
|
-
fo.displayName =
|
|
609
|
-
var
|
|
608
|
+
fo.displayName = ui;
|
|
609
|
+
var li = "MenuArrow", po = i.forwardRef(
|
|
610
610
|
(e, t) => {
|
|
611
611
|
const { __scopeMenu: n, ...r } = e, a = De(n);
|
|
612
|
-
return /* @__PURE__ */ o.jsx(
|
|
612
|
+
return /* @__PURE__ */ o.jsx(Kt, { ...a, ...r, ref: t });
|
|
613
613
|
}
|
|
614
614
|
);
|
|
615
|
-
po.displayName =
|
|
616
|
-
var Yt = "MenuSub", [
|
|
615
|
+
po.displayName = li;
|
|
616
|
+
var Yt = "MenuSub", [di, vo] = xe(Yt), mo = (e) => {
|
|
617
617
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s = de(Yt, t), c = De(t), [u, f] = i.useState(null), [p, l] = i.useState(null), d = Z(a);
|
|
618
618
|
return i.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(Xe, { ...c, children: /* @__PURE__ */ o.jsx(
|
|
619
619
|
Zn,
|
|
@@ -624,7 +624,7 @@ var Yt = "MenuSub", [fi, vo] = xe(Yt), mo = (e) => {
|
|
|
624
624
|
content: p,
|
|
625
625
|
onContentChange: l,
|
|
626
626
|
children: /* @__PURE__ */ o.jsx(
|
|
627
|
-
|
|
627
|
+
di,
|
|
628
628
|
{
|
|
629
629
|
scope: t,
|
|
630
630
|
contentId: G(),
|
|
@@ -638,9 +638,9 @@ var Yt = "MenuSub", [fi, vo] = xe(Yt), mo = (e) => {
|
|
|
638
638
|
) });
|
|
639
639
|
};
|
|
640
640
|
mo.displayName = Yt;
|
|
641
|
-
var
|
|
641
|
+
var Ae = "MenuSubTrigger", go = i.forwardRef(
|
|
642
642
|
(e, t) => {
|
|
643
|
-
const n = de(
|
|
643
|
+
const n = de(Ae, e.__scopeMenu), r = Oe(Ae, e.__scopeMenu), a = vo(Ae, e.__scopeMenu), s = Bt(Ae, e.__scopeMenu), c = i.useRef(null), { pointerGraceTimerRef: u, onPointerGraceIntentChange: f } = s, p = { __scopeMenu: e.__scopeMenu }, l = i.useCallback(() => {
|
|
644
644
|
c.current && window.clearTimeout(c.current), c.current = null;
|
|
645
645
|
}, []);
|
|
646
646
|
return i.useEffect(() => l, [l]), i.useEffect(() => {
|
|
@@ -699,17 +699,17 @@ var Ie = "MenuSubTrigger", go = i.forwardRef(
|
|
|
699
699
|
),
|
|
700
700
|
onKeyDown: C(e.onKeyDown, (d) => {
|
|
701
701
|
const m = s.searchRef.current !== "";
|
|
702
|
-
e.disabled || m && d.key === " " ||
|
|
702
|
+
e.disabled || m && d.key === " " || Hs[r.dir].includes(d.key) && (n.onOpenChange(!0), n.content?.focus(), d.preventDefault());
|
|
703
703
|
})
|
|
704
704
|
}
|
|
705
705
|
) });
|
|
706
706
|
}
|
|
707
707
|
);
|
|
708
|
-
go.displayName =
|
|
708
|
+
go.displayName = Ae;
|
|
709
709
|
var xo = "MenuSubContent", ho = i.forwardRef(
|
|
710
710
|
(e, t) => {
|
|
711
711
|
const n = Qn(J, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = de(J, e.__scopeMenu), c = Oe(J, e.__scopeMenu), u = vo(xo, e.__scopeMenu), f = i.useRef(null), p = L(t, f);
|
|
712
|
-
return /* @__PURE__ */ o.jsx(
|
|
712
|
+
return /* @__PURE__ */ o.jsx(Ie.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(H, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ie.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(
|
|
713
713
|
Ht,
|
|
714
714
|
{
|
|
715
715
|
id: u.contentId,
|
|
@@ -749,24 +749,24 @@ function Ve(e) {
|
|
|
749
749
|
function Xt(e) {
|
|
750
750
|
return Ve(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function fi(e) {
|
|
753
753
|
const t = document.activeElement;
|
|
754
754
|
for (const n of e)
|
|
755
755
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function pi(e, t) {
|
|
758
758
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function vi(e, t, n) {
|
|
761
761
|
const a = t.length > 1 && Array.from(t).every((p) => p === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
762
|
-
let c =
|
|
762
|
+
let c = pi(e, Math.max(s, 0));
|
|
763
763
|
a.length === 1 && (c = c.filter((p) => p !== n));
|
|
764
764
|
const f = c.find(
|
|
765
765
|
(p) => p.toLowerCase().startsWith(a.toLowerCase())
|
|
766
766
|
);
|
|
767
767
|
return f !== n ? f : void 0;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function mi(e, t) {
|
|
770
770
|
const { x: n, y: r } = e;
|
|
771
771
|
let a = !1;
|
|
772
772
|
for (let s = 0, c = t.length - 1; s < t.length; c = s++) {
|
|
@@ -775,18 +775,18 @@ function gi(e, t) {
|
|
|
775
775
|
}
|
|
776
776
|
return a;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function gi(e, t) {
|
|
779
779
|
if (!t) return !1;
|
|
780
780
|
const n = { x: e.clientX, y: e.clientY };
|
|
781
|
-
return
|
|
781
|
+
return mi(n, t);
|
|
782
782
|
}
|
|
783
783
|
function je(e) {
|
|
784
784
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
785
785
|
}
|
|
786
|
-
var wo = Jn, Co = Vt, Ro = eo, _o = to,
|
|
787
|
-
|
|
786
|
+
var wo = Jn, Co = Vt, Ro = eo, _o = to, yo = qt, Mo = no, So = tt, Eo = ro, No = so, Ao = co, Io = lo, jo = fo, Po = po, To = mo, Do = go, Oo = ho, nt = "DropdownMenu", [xi, Ld] = q(
|
|
787
|
+
nt,
|
|
788
788
|
[zt]
|
|
789
|
-
), z = zt(), [
|
|
789
|
+
), z = zt(), [hi, ko] = xi(nt), $o = (e) => {
|
|
790
790
|
const {
|
|
791
791
|
__scopeDropdownMenu: t,
|
|
792
792
|
children: n,
|
|
@@ -795,14 +795,14 @@ var wo = Jn, Co = Vt, Ro = eo, _o = to, Mo = Wt, yo = no, So = et, Eo = ro, No =
|
|
|
795
795
|
defaultOpen: s,
|
|
796
796
|
onOpenChange: c,
|
|
797
797
|
modal: u = !0
|
|
798
|
-
} = e, f = z(t), p = i.useRef(null), [l, d] =
|
|
798
|
+
} = e, f = z(t), p = i.useRef(null), [l, d] = W({
|
|
799
799
|
prop: a,
|
|
800
800
|
defaultProp: s ?? !1,
|
|
801
801
|
onChange: c,
|
|
802
|
-
caller:
|
|
802
|
+
caller: nt
|
|
803
803
|
});
|
|
804
804
|
return /* @__PURE__ */ o.jsx(
|
|
805
|
-
|
|
805
|
+
hi,
|
|
806
806
|
{
|
|
807
807
|
scope: t,
|
|
808
808
|
triggerId: G(),
|
|
@@ -816,7 +816,7 @@ var wo = Jn, Co = Vt, Ro = eo, _o = to, Mo = Wt, yo = no, So = et, Eo = ro, No =
|
|
|
816
816
|
}
|
|
817
817
|
);
|
|
818
818
|
};
|
|
819
|
-
$o.displayName =
|
|
819
|
+
$o.displayName = nt;
|
|
820
820
|
var Lo = "DropdownMenuTrigger", Fo = i.forwardRef(
|
|
821
821
|
(e, t) => {
|
|
822
822
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = ko(Lo, n), c = z(n);
|
|
@@ -844,11 +844,11 @@ var Lo = "DropdownMenuTrigger", Fo = i.forwardRef(
|
|
|
844
844
|
}
|
|
845
845
|
);
|
|
846
846
|
Fo.displayName = Lo;
|
|
847
|
-
var
|
|
847
|
+
var bi = "DropdownMenuPortal", Go = (e) => {
|
|
848
848
|
const { __scopeDropdownMenu: t, ...n } = e, r = z(t);
|
|
849
849
|
return /* @__PURE__ */ o.jsx(Ro, { ...r, ...n });
|
|
850
850
|
};
|
|
851
|
-
Go.displayName =
|
|
851
|
+
Go.displayName = bi;
|
|
852
852
|
var Ko = "DropdownMenuContent", zo = i.forwardRef(
|
|
853
853
|
(e, t) => {
|
|
854
854
|
const { __scopeDropdownMenu: n, ...r } = e, a = ko(Ko, n), s = z(n), c = i.useRef(!1);
|
|
@@ -880,73 +880,73 @@ var Ko = "DropdownMenuContent", zo = i.forwardRef(
|
|
|
880
880
|
}
|
|
881
881
|
);
|
|
882
882
|
zo.displayName = Ko;
|
|
883
|
-
var
|
|
883
|
+
var wi = "DropdownMenuGroup", Vo = i.forwardRef(
|
|
884
884
|
(e, t) => {
|
|
885
885
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
886
|
-
return /* @__PURE__ */ o.jsx(
|
|
886
|
+
return /* @__PURE__ */ o.jsx(yo, { ...a, ...r, ref: t });
|
|
887
887
|
}
|
|
888
888
|
);
|
|
889
|
-
Vo.displayName =
|
|
890
|
-
var
|
|
889
|
+
Vo.displayName = wi;
|
|
890
|
+
var Ci = "DropdownMenuLabel", Uo = i.forwardRef(
|
|
891
891
|
(e, t) => {
|
|
892
892
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
893
|
-
return /* @__PURE__ */ o.jsx(
|
|
893
|
+
return /* @__PURE__ */ o.jsx(Mo, { ...a, ...r, ref: t });
|
|
894
894
|
}
|
|
895
895
|
);
|
|
896
|
-
Uo.displayName =
|
|
897
|
-
var
|
|
896
|
+
Uo.displayName = Ci;
|
|
897
|
+
var Ri = "DropdownMenuItem", Bo = i.forwardRef(
|
|
898
898
|
(e, t) => {
|
|
899
899
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
900
900
|
return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: t });
|
|
901
901
|
}
|
|
902
902
|
);
|
|
903
|
-
Bo.displayName =
|
|
904
|
-
var
|
|
903
|
+
Bo.displayName = Ri;
|
|
904
|
+
var _i = "DropdownMenuCheckboxItem", Ho = i.forwardRef((e, t) => {
|
|
905
905
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
906
906
|
return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: t });
|
|
907
907
|
});
|
|
908
|
-
Ho.displayName =
|
|
909
|
-
var yi = "DropdownMenuRadioGroup",
|
|
908
|
+
Ho.displayName = _i;
|
|
909
|
+
var yi = "DropdownMenuRadioGroup", qo = i.forwardRef((e, t) => {
|
|
910
910
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
911
911
|
return /* @__PURE__ */ o.jsx(No, { ...a, ...r, ref: t });
|
|
912
912
|
});
|
|
913
|
-
|
|
914
|
-
var
|
|
913
|
+
qo.displayName = yi;
|
|
914
|
+
var Mi = "DropdownMenuRadioItem", Wo = i.forwardRef((e, t) => {
|
|
915
915
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
916
|
-
return /* @__PURE__ */ o.jsx(
|
|
916
|
+
return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: t });
|
|
917
917
|
});
|
|
918
|
-
|
|
919
|
-
var
|
|
918
|
+
Wo.displayName = Mi;
|
|
919
|
+
var Si = "DropdownMenuItemIndicator", Yo = i.forwardRef((e, t) => {
|
|
920
920
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
921
|
-
return /* @__PURE__ */ o.jsx(
|
|
921
|
+
return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: t });
|
|
922
922
|
});
|
|
923
|
-
Yo.displayName =
|
|
924
|
-
var
|
|
923
|
+
Yo.displayName = Si;
|
|
924
|
+
var Ei = "DropdownMenuSeparator", Xo = i.forwardRef((e, t) => {
|
|
925
925
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
926
926
|
return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: t });
|
|
927
927
|
});
|
|
928
|
-
Xo.displayName =
|
|
929
|
-
var
|
|
928
|
+
Xo.displayName = Ei;
|
|
929
|
+
var Ni = "DropdownMenuArrow", Ai = i.forwardRef(
|
|
930
930
|
(e, t) => {
|
|
931
931
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
932
932
|
return /* @__PURE__ */ o.jsx(Po, { ...a, ...r, ref: t });
|
|
933
933
|
}
|
|
934
934
|
);
|
|
935
|
-
Ai.displayName =
|
|
936
|
-
var
|
|
937
|
-
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, c = z(t), [u, f] =
|
|
935
|
+
Ai.displayName = Ni;
|
|
936
|
+
var Ii = (e) => {
|
|
937
|
+
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, c = z(t), [u, f] = W({
|
|
938
938
|
prop: r,
|
|
939
939
|
defaultProp: s ?? !1,
|
|
940
940
|
onChange: a,
|
|
941
941
|
caller: "DropdownMenuSub"
|
|
942
942
|
});
|
|
943
943
|
return /* @__PURE__ */ o.jsx(To, { ...c, open: u, onOpenChange: f, children: n });
|
|
944
|
-
},
|
|
944
|
+
}, ji = "DropdownMenuSubTrigger", Zo = i.forwardRef((e, t) => {
|
|
945
945
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
946
946
|
return /* @__PURE__ */ o.jsx(Do, { ...a, ...r, ref: t });
|
|
947
947
|
});
|
|
948
|
-
Zo.displayName =
|
|
949
|
-
var
|
|
948
|
+
Zo.displayName = ji;
|
|
949
|
+
var Pi = "DropdownMenuSubContent", Jo = i.forwardRef((e, t) => {
|
|
950
950
|
const { __scopeDropdownMenu: n, ...r } = e, a = z(n);
|
|
951
951
|
return /* @__PURE__ */ o.jsx(
|
|
952
952
|
Oo,
|
|
@@ -965,20 +965,31 @@ var Ti = "DropdownMenuSubContent", Jo = i.forwardRef((e, t) => {
|
|
|
965
965
|
}
|
|
966
966
|
);
|
|
967
967
|
});
|
|
968
|
-
Jo.displayName =
|
|
969
|
-
var
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
968
|
+
Jo.displayName = Pi;
|
|
969
|
+
var Ti = $o, Di = Fo, Qo = Go, Oi = zo, ki = Vo, $i = Uo, Li = Bo, Fi = Ho, Gi = qo, Ki = Wo, er = Yo, zi = Xo, Vi = Ii, Ui = Zo, Bi = Jo;
|
|
970
|
+
const Hi = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], tr = Je("chevron-right", Hi);
|
|
971
|
+
const qi = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Zt = Je("circle", qi);
|
|
972
|
+
const Wi = [
|
|
973
|
+
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
974
|
+
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
975
|
+
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
976
|
+
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
977
|
+
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
978
|
+
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
979
|
+
], Yi = Je("grip-vertical", Wi);
|
|
980
|
+
const Xi = [["path", { d: "M5 12h14", key: "1ays0h" }]], Zi = Je("minus", Xi);
|
|
981
|
+
function Fd({ ...e }) {
|
|
982
|
+
return /* @__PURE__ */ o.jsx(Ti, { "data-slot": "dropdown-menu", ...e });
|
|
983
|
+
}
|
|
984
|
+
function Gd({ ...e }) {
|
|
974
985
|
return /* @__PURE__ */ o.jsx(Qo, { "data-slot": "dropdown-menu-portal", ...e });
|
|
975
986
|
}
|
|
976
|
-
function
|
|
977
|
-
return /* @__PURE__ */ o.jsx(
|
|
987
|
+
function Kd({ ...e }) {
|
|
988
|
+
return /* @__PURE__ */ o.jsx(Di, { "data-slot": "dropdown-menu-trigger", ...e });
|
|
978
989
|
}
|
|
979
|
-
function
|
|
990
|
+
function zd({ className: e, sideOffset: t = 4, ...n }) {
|
|
980
991
|
return /* @__PURE__ */ o.jsx(Qo, { children: /* @__PURE__ */ o.jsx(
|
|
981
|
-
|
|
992
|
+
Oi,
|
|
982
993
|
{
|
|
983
994
|
"data-slot": "dropdown-menu-content",
|
|
984
995
|
sideOffset: t,
|
|
@@ -990,17 +1001,17 @@ function $d({ className: e, sideOffset: t = 4, ...n }) {
|
|
|
990
1001
|
}
|
|
991
1002
|
) });
|
|
992
1003
|
}
|
|
993
|
-
function
|
|
994
|
-
return /* @__PURE__ */ o.jsx(
|
|
1004
|
+
function Vd({ ...e }) {
|
|
1005
|
+
return /* @__PURE__ */ o.jsx(ki, { "data-slot": "dropdown-menu-group", ...e });
|
|
995
1006
|
}
|
|
996
|
-
function
|
|
1007
|
+
function Ud({
|
|
997
1008
|
className: e,
|
|
998
1009
|
inset: t,
|
|
999
1010
|
variant: n = "default",
|
|
1000
1011
|
...r
|
|
1001
1012
|
}) {
|
|
1002
1013
|
return /* @__PURE__ */ o.jsx(
|
|
1003
|
-
|
|
1014
|
+
Li,
|
|
1004
1015
|
{
|
|
1005
1016
|
"data-slot": "dropdown-menu-item",
|
|
1006
1017
|
"data-inset": t,
|
|
@@ -1013,9 +1024,9 @@ function Fd({
|
|
|
1013
1024
|
}
|
|
1014
1025
|
);
|
|
1015
1026
|
}
|
|
1016
|
-
function
|
|
1027
|
+
function Bd({ className: e, children: t, checked: n, ...r }) {
|
|
1017
1028
|
return /* @__PURE__ */ o.jsxs(
|
|
1018
|
-
|
|
1029
|
+
Fi,
|
|
1019
1030
|
{
|
|
1020
1031
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1021
1032
|
className: b(
|
|
@@ -1025,18 +1036,18 @@ function Gd({ className: e, children: t, checked: n, ...r }) {
|
|
|
1025
1036
|
checked: n,
|
|
1026
1037
|
...r,
|
|
1027
1038
|
children: [
|
|
1028
|
-
/* @__PURE__ */ o.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(er, { children: /* @__PURE__ */ o.jsx(
|
|
1039
|
+
/* @__PURE__ */ o.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(er, { children: /* @__PURE__ */ o.jsx(Fn, { className: "size-4" }) }) }),
|
|
1029
1040
|
t
|
|
1030
1041
|
]
|
|
1031
1042
|
}
|
|
1032
1043
|
);
|
|
1033
1044
|
}
|
|
1034
|
-
function
|
|
1035
|
-
return /* @__PURE__ */ o.jsx(
|
|
1045
|
+
function Hd({ ...e }) {
|
|
1046
|
+
return /* @__PURE__ */ o.jsx(Gi, { "data-slot": "dropdown-menu-radio-group", ...e });
|
|
1036
1047
|
}
|
|
1037
|
-
function
|
|
1048
|
+
function qd({ className: e, children: t, ...n }) {
|
|
1038
1049
|
return /* @__PURE__ */ o.jsxs(
|
|
1039
|
-
|
|
1050
|
+
Ki,
|
|
1040
1051
|
{
|
|
1041
1052
|
"data-slot": "dropdown-menu-radio-item",
|
|
1042
1053
|
className: b(
|
|
@@ -1045,19 +1056,19 @@ function zd({ className: e, children: t, ...n }) {
|
|
|
1045
1056
|
),
|
|
1046
1057
|
...n,
|
|
1047
1058
|
children: [
|
|
1048
|
-
/* @__PURE__ */ o.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(er, { children: /* @__PURE__ */ o.jsx(
|
|
1059
|
+
/* @__PURE__ */ o.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(er, { children: /* @__PURE__ */ o.jsx(Zt, { className: "size-2 fill-current" }) }) }),
|
|
1049
1060
|
t
|
|
1050
1061
|
]
|
|
1051
1062
|
}
|
|
1052
1063
|
);
|
|
1053
1064
|
}
|
|
1054
|
-
function
|
|
1065
|
+
function Wd({
|
|
1055
1066
|
className: e,
|
|
1056
1067
|
inset: t,
|
|
1057
1068
|
...n
|
|
1058
1069
|
}) {
|
|
1059
1070
|
return /* @__PURE__ */ o.jsx(
|
|
1060
|
-
|
|
1071
|
+
$i,
|
|
1061
1072
|
{
|
|
1062
1073
|
"data-slot": "dropdown-menu-label",
|
|
1063
1074
|
"data-inset": t,
|
|
@@ -1066,23 +1077,23 @@ function Vd({
|
|
|
1066
1077
|
}
|
|
1067
1078
|
);
|
|
1068
1079
|
}
|
|
1069
|
-
function
|
|
1070
|
-
return /* @__PURE__ */ o.jsx(
|
|
1080
|
+
function Yd({ className: e, ...t }) {
|
|
1081
|
+
return /* @__PURE__ */ o.jsx(zi, { "data-slot": "dropdown-menu-separator", className: b("bg-border -mx-1 my-1 h-px", e), ...t });
|
|
1071
1082
|
}
|
|
1072
|
-
function
|
|
1083
|
+
function Xd({ className: e, ...t }) {
|
|
1073
1084
|
return /* @__PURE__ */ o.jsx("span", { "data-slot": "dropdown-menu-shortcut", className: b("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
|
|
1074
1085
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return /* @__PURE__ */ o.jsx(
|
|
1086
|
+
function Zd({ ...e }) {
|
|
1087
|
+
return /* @__PURE__ */ o.jsx(Vi, { "data-slot": "dropdown-menu-sub", ...e });
|
|
1077
1088
|
}
|
|
1078
|
-
function
|
|
1089
|
+
function Jd({
|
|
1079
1090
|
className: e,
|
|
1080
1091
|
inset: t,
|
|
1081
1092
|
children: n,
|
|
1082
1093
|
...r
|
|
1083
1094
|
}) {
|
|
1084
1095
|
return /* @__PURE__ */ o.jsxs(
|
|
1085
|
-
|
|
1096
|
+
Ui,
|
|
1086
1097
|
{
|
|
1087
1098
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1088
1099
|
"data-inset": t,
|
|
@@ -1093,14 +1104,14 @@ function Wd({
|
|
|
1093
1104
|
...r,
|
|
1094
1105
|
children: [
|
|
1095
1106
|
n,
|
|
1096
|
-
/* @__PURE__ */ o.jsx(
|
|
1107
|
+
/* @__PURE__ */ o.jsx(tr, { className: "ml-auto size-4" })
|
|
1097
1108
|
]
|
|
1098
1109
|
}
|
|
1099
1110
|
);
|
|
1100
1111
|
}
|
|
1101
|
-
function
|
|
1112
|
+
function Qd({ className: e, ...t }) {
|
|
1102
1113
|
return /* @__PURE__ */ o.jsx(
|
|
1103
|
-
|
|
1114
|
+
Bi,
|
|
1104
1115
|
{
|
|
1105
1116
|
"data-slot": "dropdown-menu-sub-content",
|
|
1106
1117
|
className: b(
|
|
@@ -1111,9 +1122,9 @@ function qd({ className: e, ...t }) {
|
|
|
1111
1122
|
}
|
|
1112
1123
|
);
|
|
1113
1124
|
}
|
|
1114
|
-
var
|
|
1125
|
+
var ot = "Tabs", [Ji, ef] = q(ot, [
|
|
1115
1126
|
le
|
|
1116
|
-
]),
|
|
1127
|
+
]), nr = le(), [Qi, Jt] = Ji(ot), or = i.forwardRef(
|
|
1117
1128
|
(e, t) => {
|
|
1118
1129
|
const {
|
|
1119
1130
|
__scopeTabs: n,
|
|
@@ -1124,14 +1135,14 @@ var nt = "Tabs", [Wi, Yd] = W(nt, [
|
|
|
1124
1135
|
dir: u,
|
|
1125
1136
|
activationMode: f = "automatic",
|
|
1126
1137
|
...p
|
|
1127
|
-
} = e, l = ge(u), [d, m] =
|
|
1138
|
+
} = e, l = ge(u), [d, m] = W({
|
|
1128
1139
|
prop: r,
|
|
1129
1140
|
onChange: a,
|
|
1130
1141
|
defaultProp: s ?? "",
|
|
1131
|
-
caller:
|
|
1142
|
+
caller: ot
|
|
1132
1143
|
});
|
|
1133
1144
|
return /* @__PURE__ */ o.jsx(
|
|
1134
|
-
|
|
1145
|
+
Qi,
|
|
1135
1146
|
{
|
|
1136
1147
|
scope: n,
|
|
1137
1148
|
baseId: G(),
|
|
@@ -1153,12 +1164,12 @@ var nt = "Tabs", [Wi, Yd] = W(nt, [
|
|
|
1153
1164
|
);
|
|
1154
1165
|
}
|
|
1155
1166
|
);
|
|
1156
|
-
|
|
1157
|
-
var
|
|
1167
|
+
or.displayName = ot;
|
|
1168
|
+
var rr = "TabsList", ar = i.forwardRef(
|
|
1158
1169
|
(e, t) => {
|
|
1159
|
-
const { __scopeTabs: n, loop: r = !0, ...a } = e, s =
|
|
1170
|
+
const { __scopeTabs: n, loop: r = !0, ...a } = e, s = Jt(rr, n), c = nr(n);
|
|
1160
1171
|
return /* @__PURE__ */ o.jsx(
|
|
1161
|
-
|
|
1172
|
+
Qe,
|
|
1162
1173
|
{
|
|
1163
1174
|
asChild: !0,
|
|
1164
1175
|
...c,
|
|
@@ -1178,12 +1189,12 @@ var or = "TabsList", rr = i.forwardRef(
|
|
|
1178
1189
|
);
|
|
1179
1190
|
}
|
|
1180
1191
|
);
|
|
1181
|
-
|
|
1182
|
-
var
|
|
1192
|
+
ar.displayName = rr;
|
|
1193
|
+
var sr = "TabsTrigger", ir = i.forwardRef(
|
|
1183
1194
|
(e, t) => {
|
|
1184
|
-
const { __scopeTabs: n, value: r, disabled: a = !1, ...s } = e, c =
|
|
1195
|
+
const { __scopeTabs: n, value: r, disabled: a = !1, ...s } = e, c = Jt(sr, n), u = nr(n), f = lr(c.baseId, r), p = dr(c.baseId, r), l = r === c.value;
|
|
1185
1196
|
return /* @__PURE__ */ o.jsx(
|
|
1186
|
-
|
|
1197
|
+
et,
|
|
1187
1198
|
{
|
|
1188
1199
|
asChild: !0,
|
|
1189
1200
|
...u,
|
|
@@ -1218,10 +1229,10 @@ var ar = "TabsTrigger", sr = i.forwardRef(
|
|
|
1218
1229
|
);
|
|
1219
1230
|
}
|
|
1220
1231
|
);
|
|
1221
|
-
|
|
1222
|
-
var
|
|
1232
|
+
ir.displayName = sr;
|
|
1233
|
+
var cr = "TabsContent", ur = i.forwardRef(
|
|
1223
1234
|
(e, t) => {
|
|
1224
|
-
const { __scopeTabs: n, value: r, forceMount: a, children: s, ...c } = e, u =
|
|
1235
|
+
const { __scopeTabs: n, value: r, forceMount: a, children: s, ...c } = e, u = Jt(cr, n), f = lr(u.baseId, r), p = dr(u.baseId, r), l = r === u.value, d = i.useRef(l);
|
|
1225
1236
|
return i.useEffect(() => {
|
|
1226
1237
|
const m = requestAnimationFrame(() => d.current = !1);
|
|
1227
1238
|
return () => cancelAnimationFrame(m);
|
|
@@ -1246,20 +1257,20 @@ var ir = "TabsContent", cr = i.forwardRef(
|
|
|
1246
1257
|
) });
|
|
1247
1258
|
}
|
|
1248
1259
|
);
|
|
1249
|
-
|
|
1250
|
-
function
|
|
1260
|
+
ur.displayName = cr;
|
|
1261
|
+
function lr(e, t) {
|
|
1251
1262
|
return `${e}-trigger-${t}`;
|
|
1252
1263
|
}
|
|
1253
|
-
function
|
|
1264
|
+
function dr(e, t) {
|
|
1254
1265
|
return `${e}-content-${t}`;
|
|
1255
1266
|
}
|
|
1256
|
-
var
|
|
1257
|
-
function
|
|
1258
|
-
return /* @__PURE__ */ o.jsx(
|
|
1267
|
+
var ec = or, tc = ar, nc = ir, oc = ur;
|
|
1268
|
+
function tf({ className: e, ...t }) {
|
|
1269
|
+
return /* @__PURE__ */ o.jsx(ec, { "data-slot": "tabs", className: b("flex flex-col gap-2", e), ...t });
|
|
1259
1270
|
}
|
|
1260
|
-
function
|
|
1271
|
+
function nf({ className: e, ...t }) {
|
|
1261
1272
|
return /* @__PURE__ */ o.jsx(
|
|
1262
|
-
|
|
1273
|
+
tc,
|
|
1263
1274
|
{
|
|
1264
1275
|
"data-slot": "tabs-list",
|
|
1265
1276
|
className: b("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", e),
|
|
@@ -1267,9 +1278,9 @@ function Zd({ className: e, ...t }) {
|
|
|
1267
1278
|
}
|
|
1268
1279
|
);
|
|
1269
1280
|
}
|
|
1270
|
-
function
|
|
1281
|
+
function of({ className: e, ...t }) {
|
|
1271
1282
|
return /* @__PURE__ */ o.jsx(
|
|
1272
|
-
|
|
1283
|
+
nc,
|
|
1273
1284
|
{
|
|
1274
1285
|
"data-slot": "tabs-trigger",
|
|
1275
1286
|
className: b(
|
|
@@ -1280,15 +1291,15 @@ function Jd({ className: e, ...t }) {
|
|
|
1280
1291
|
}
|
|
1281
1292
|
);
|
|
1282
1293
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return /* @__PURE__ */ o.jsx(
|
|
1294
|
+
function rf({ className: e, ...t }) {
|
|
1295
|
+
return /* @__PURE__ */ o.jsx(oc, { "data-slot": "tabs-content", className: b("flex-1 outline-none", e), ...t });
|
|
1285
1296
|
}
|
|
1286
|
-
function
|
|
1297
|
+
function af({ className: e, ...t }) {
|
|
1287
1298
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "skeleton", className: b("bg-accent animate-pulse rounded-md", e), ...t });
|
|
1288
1299
|
}
|
|
1289
|
-
function
|
|
1300
|
+
function sf({ className: e, ...t }) {
|
|
1290
1301
|
return /* @__PURE__ */ o.jsx(
|
|
1291
|
-
|
|
1302
|
+
gs,
|
|
1292
1303
|
{
|
|
1293
1304
|
"data-slot": "resizable-panel-group",
|
|
1294
1305
|
className: b("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e),
|
|
@@ -1296,16 +1307,16 @@ function tf({ className: e, ...t }) {
|
|
|
1296
1307
|
}
|
|
1297
1308
|
);
|
|
1298
1309
|
}
|
|
1299
|
-
function
|
|
1300
|
-
return /* @__PURE__ */ o.jsx(
|
|
1310
|
+
function cf({ ...e }) {
|
|
1311
|
+
return /* @__PURE__ */ o.jsx(xs, { "data-slot": "resizable-panel", ...e });
|
|
1301
1312
|
}
|
|
1302
|
-
function
|
|
1313
|
+
function uf({
|
|
1303
1314
|
withHandle: e,
|
|
1304
1315
|
className: t,
|
|
1305
1316
|
...n
|
|
1306
1317
|
}) {
|
|
1307
1318
|
return /* @__PURE__ */ o.jsx(
|
|
1308
|
-
|
|
1319
|
+
hs,
|
|
1309
1320
|
{
|
|
1310
1321
|
"data-slot": "resizable-handle",
|
|
1311
1322
|
className: b(
|
|
@@ -1313,15 +1324,15 @@ function of({
|
|
|
1313
1324
|
t
|
|
1314
1325
|
),
|
|
1315
1326
|
...n,
|
|
1316
|
-
children: e && /* @__PURE__ */ o.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ o.jsx(
|
|
1327
|
+
children: e && /* @__PURE__ */ o.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ o.jsx(Yi, { className: "size-2.5" }) })
|
|
1317
1328
|
}
|
|
1318
1329
|
);
|
|
1319
1330
|
}
|
|
1320
|
-
var Ge = { exports: {} },
|
|
1321
|
-
var
|
|
1322
|
-
function
|
|
1323
|
-
if (
|
|
1324
|
-
|
|
1331
|
+
var Ge = { exports: {} }, vt = {};
|
|
1332
|
+
var wn;
|
|
1333
|
+
function rc() {
|
|
1334
|
+
if (wn) return vt;
|
|
1335
|
+
wn = 1;
|
|
1325
1336
|
var e = B;
|
|
1326
1337
|
function t(d, m) {
|
|
1327
1338
|
return d === m && (d !== 0 || 1 / d === 1 / m) || d !== d && m !== m;
|
|
@@ -1357,12 +1368,12 @@ function Qi() {
|
|
|
1357
1368
|
return m();
|
|
1358
1369
|
}
|
|
1359
1370
|
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : u;
|
|
1360
|
-
return
|
|
1371
|
+
return vt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, vt;
|
|
1361
1372
|
}
|
|
1362
|
-
var
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1365
|
-
return
|
|
1373
|
+
var mt = {};
|
|
1374
|
+
var Cn;
|
|
1375
|
+
function ac() {
|
|
1376
|
+
return Cn || (Cn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1366
1377
|
function e(g, v) {
|
|
1367
1378
|
return g === v && (g !== 0 || 1 / g === 1 / v) || g !== g && v !== v;
|
|
1368
1379
|
}
|
|
@@ -1376,16 +1387,16 @@ function ec() {
|
|
|
1376
1387
|
w = c({
|
|
1377
1388
|
inst: { value: h, getSnapshot: v }
|
|
1378
1389
|
});
|
|
1379
|
-
var R = w[0].inst,
|
|
1390
|
+
var R = w[0].inst, M = w[1];
|
|
1380
1391
|
return f(
|
|
1381
1392
|
function() {
|
|
1382
|
-
R.value = h, R.getSnapshot = v, n(R) &&
|
|
1393
|
+
R.value = h, R.getSnapshot = v, n(R) && M({ inst: R });
|
|
1383
1394
|
},
|
|
1384
1395
|
[g, h, v]
|
|
1385
1396
|
), u(
|
|
1386
1397
|
function() {
|
|
1387
|
-
return n(R) &&
|
|
1388
|
-
n(R) &&
|
|
1398
|
+
return n(R) && M({ inst: R }), g(function() {
|
|
1399
|
+
n(R) && M({ inst: R });
|
|
1389
1400
|
});
|
|
1390
1401
|
},
|
|
1391
1402
|
[g]
|
|
@@ -1406,30 +1417,30 @@ function ec() {
|
|
|
1406
1417
|
}
|
|
1407
1418
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1408
1419
|
var a = B, s = typeof Object.is == "function" ? Object.is : e, c = a.useState, u = a.useEffect, f = a.useLayoutEffect, p = a.useDebugValue, l = !1, d = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
1409
|
-
|
|
1410
|
-
})()),
|
|
1420
|
+
mt.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1421
|
+
})()), mt;
|
|
1411
1422
|
}
|
|
1412
|
-
var
|
|
1413
|
-
function
|
|
1414
|
-
return
|
|
1423
|
+
var Rn;
|
|
1424
|
+
function sc() {
|
|
1425
|
+
return Rn || (Rn = 1, process.env.NODE_ENV === "production" ? Ge.exports = rc() : Ge.exports = ac()), Ge.exports;
|
|
1415
1426
|
}
|
|
1416
|
-
var
|
|
1417
|
-
function
|
|
1418
|
-
return
|
|
1419
|
-
|
|
1427
|
+
var ic = sc();
|
|
1428
|
+
function cc() {
|
|
1429
|
+
return ic.useSyncExternalStore(
|
|
1430
|
+
uc,
|
|
1420
1431
|
() => !0,
|
|
1421
1432
|
() => !1
|
|
1422
1433
|
);
|
|
1423
1434
|
}
|
|
1424
|
-
function
|
|
1435
|
+
function uc() {
|
|
1425
1436
|
return () => {
|
|
1426
1437
|
};
|
|
1427
1438
|
}
|
|
1428
|
-
var
|
|
1439
|
+
var Qt = "Avatar", [lc, lf] = q(Qt), [dc, fr] = lc(Qt), pr = i.forwardRef(
|
|
1429
1440
|
(e, t) => {
|
|
1430
1441
|
const { __scopeAvatar: n, ...r } = e, [a, s] = i.useState("idle");
|
|
1431
1442
|
return /* @__PURE__ */ o.jsx(
|
|
1432
|
-
|
|
1443
|
+
dc,
|
|
1433
1444
|
{
|
|
1434
1445
|
scope: n,
|
|
1435
1446
|
imageLoadingStatus: a,
|
|
@@ -1439,11 +1450,11 @@ var Jt = "Avatar", [ac, rf] = W(Jt), [sc, dr] = ac(Jt), fr = i.forwardRef(
|
|
|
1439
1450
|
);
|
|
1440
1451
|
}
|
|
1441
1452
|
);
|
|
1442
|
-
|
|
1443
|
-
var
|
|
1453
|
+
pr.displayName = Qt;
|
|
1454
|
+
var vr = "AvatarImage", mr = i.forwardRef(
|
|
1444
1455
|
(e, t) => {
|
|
1445
1456
|
const { __scopeAvatar: n, src: r, onLoadingStatusChange: a = () => {
|
|
1446
|
-
}, ...s } = e, c =
|
|
1457
|
+
}, ...s } = e, c = fr(vr, n), u = fc(r, s), f = Z((p) => {
|
|
1447
1458
|
a(p), c.onImageLoadingStatusChange(p);
|
|
1448
1459
|
});
|
|
1449
1460
|
return ve(() => {
|
|
@@ -1451,10 +1462,10 @@ var pr = "AvatarImage", vr = i.forwardRef(
|
|
|
1451
1462
|
}, [u, f]), u === "loaded" ? /* @__PURE__ */ o.jsx(E.img, { ...s, ref: t, src: r }) : null;
|
|
1452
1463
|
}
|
|
1453
1464
|
);
|
|
1454
|
-
|
|
1455
|
-
var
|
|
1465
|
+
mr.displayName = vr;
|
|
1466
|
+
var gr = "AvatarFallback", xr = i.forwardRef(
|
|
1456
1467
|
(e, t) => {
|
|
1457
|
-
const { __scopeAvatar: n, delayMs: r, ...a } = e, s =
|
|
1468
|
+
const { __scopeAvatar: n, delayMs: r, ...a } = e, s = fr(gr, n), [c, u] = i.useState(r === void 0);
|
|
1458
1469
|
return i.useEffect(() => {
|
|
1459
1470
|
if (r !== void 0) {
|
|
1460
1471
|
const f = window.setTimeout(() => u(!0), r);
|
|
@@ -1463,16 +1474,16 @@ var mr = "AvatarFallback", gr = i.forwardRef(
|
|
|
1463
1474
|
}, [r]), c && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ o.jsx(E.span, { ...a, ref: t }) : null;
|
|
1464
1475
|
}
|
|
1465
1476
|
);
|
|
1466
|
-
|
|
1467
|
-
function
|
|
1477
|
+
xr.displayName = gr;
|
|
1478
|
+
function _n(e, t) {
|
|
1468
1479
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
1469
1480
|
}
|
|
1470
|
-
function
|
|
1471
|
-
const r =
|
|
1472
|
-
() =>
|
|
1481
|
+
function fc(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
1482
|
+
const r = cc(), a = i.useRef(null), s = r ? (a.current || (a.current = new window.Image()), a.current) : null, [c, u] = i.useState(
|
|
1483
|
+
() => _n(s, e)
|
|
1473
1484
|
);
|
|
1474
1485
|
return ve(() => {
|
|
1475
|
-
u(
|
|
1486
|
+
u(_n(s, e));
|
|
1476
1487
|
}, [s, e]), ve(() => {
|
|
1477
1488
|
const f = (d) => () => {
|
|
1478
1489
|
u(d);
|
|
@@ -1484,8 +1495,8 @@ function ic(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
|
1484
1495
|
};
|
|
1485
1496
|
}, [s, n, t]), c;
|
|
1486
1497
|
}
|
|
1487
|
-
var
|
|
1488
|
-
const
|
|
1498
|
+
var pc = pr, vc = mr, mc = xr;
|
|
1499
|
+
const gc = Kn(
|
|
1489
1500
|
"flex relative justify-center items-center box-border overflow-hidden align-middle z-0 outline-none data-[focus-visible=true]:z-10 data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-focus data-[focus-visible=true]:outline-offset-2 text-tiny text-default-foreground rounded-full",
|
|
1490
1501
|
{
|
|
1491
1502
|
variants: {
|
|
@@ -1514,29 +1525,29 @@ const dc = Kn(
|
|
|
1514
1525
|
}
|
|
1515
1526
|
}
|
|
1516
1527
|
);
|
|
1517
|
-
function
|
|
1528
|
+
function df({
|
|
1518
1529
|
className: e,
|
|
1519
1530
|
color: t = "default",
|
|
1520
1531
|
isBordered: n = !1,
|
|
1521
1532
|
size: r = "md",
|
|
1522
1533
|
...a
|
|
1523
1534
|
}) {
|
|
1524
|
-
return /* @__PURE__ */ o.jsx(
|
|
1535
|
+
return /* @__PURE__ */ o.jsx(pc, { "data-slot": "avatar", asChild: !0, children: /* @__PURE__ */ o.jsx(
|
|
1525
1536
|
"span",
|
|
1526
1537
|
{
|
|
1527
1538
|
tabIndex: -1,
|
|
1528
1539
|
"data-slot": "avatar",
|
|
1529
|
-
className: b(
|
|
1540
|
+
className: b(gc({ color: t, isBordered: n, size: r }), e),
|
|
1530
1541
|
...a
|
|
1531
1542
|
}
|
|
1532
1543
|
) });
|
|
1533
1544
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return /* @__PURE__ */ o.jsx(
|
|
1545
|
+
function ff({ className: e, ...t }) {
|
|
1546
|
+
return /* @__PURE__ */ o.jsx(vc, { "data-slot": "avatar-image", className: b("aspect-square size-full object-cover", e), ...t });
|
|
1536
1547
|
}
|
|
1537
|
-
function
|
|
1548
|
+
function pf({ className: e, ...t }) {
|
|
1538
1549
|
return /* @__PURE__ */ o.jsx(
|
|
1539
|
-
|
|
1550
|
+
mc,
|
|
1540
1551
|
{
|
|
1541
1552
|
"data-slot": "avatar-fallback",
|
|
1542
1553
|
className: b(" flex size-full items-center justify-center rounded-full", e),
|
|
@@ -1544,9 +1555,9 @@ function cf({ className: e, ...t }) {
|
|
|
1544
1555
|
}
|
|
1545
1556
|
);
|
|
1546
1557
|
}
|
|
1547
|
-
var
|
|
1558
|
+
var rt = "Popover", [hr, vf] = q(rt, [
|
|
1548
1559
|
Se
|
|
1549
|
-
]), ke = Se(), [
|
|
1560
|
+
]), ke = Se(), [xc, fe] = hr(rt), br = (e) => {
|
|
1550
1561
|
const {
|
|
1551
1562
|
__scopePopover: t,
|
|
1552
1563
|
children: n,
|
|
@@ -1554,14 +1565,14 @@ var ot = "Popover", [xr, uf] = W(ot, [
|
|
|
1554
1565
|
defaultOpen: a,
|
|
1555
1566
|
onOpenChange: s,
|
|
1556
1567
|
modal: c = !1
|
|
1557
|
-
} = e, u = ke(t), f = i.useRef(null), [p, l] = i.useState(!1), [d, m] =
|
|
1568
|
+
} = e, u = ke(t), f = i.useRef(null), [p, l] = i.useState(!1), [d, m] = W({
|
|
1558
1569
|
prop: r,
|
|
1559
1570
|
defaultProp: a ?? !1,
|
|
1560
1571
|
onChange: s,
|
|
1561
|
-
caller:
|
|
1572
|
+
caller: rt
|
|
1562
1573
|
});
|
|
1563
1574
|
return /* @__PURE__ */ o.jsx(Xe, { ...u, children: /* @__PURE__ */ o.jsx(
|
|
1564
|
-
|
|
1575
|
+
xc,
|
|
1565
1576
|
{
|
|
1566
1577
|
scope: t,
|
|
1567
1578
|
contentId: G(),
|
|
@@ -1577,24 +1588,24 @@ var ot = "Popover", [xr, uf] = W(ot, [
|
|
|
1577
1588
|
}
|
|
1578
1589
|
) });
|
|
1579
1590
|
};
|
|
1580
|
-
|
|
1581
|
-
var
|
|
1591
|
+
br.displayName = rt;
|
|
1592
|
+
var wr = "PopoverAnchor", Cr = i.forwardRef(
|
|
1582
1593
|
(e, t) => {
|
|
1583
|
-
const { __scopePopover: n, ...r } = e, a = fe(
|
|
1594
|
+
const { __scopePopover: n, ...r } = e, a = fe(wr, n), s = ke(n), { onCustomAnchorAdd: c, onCustomAnchorRemove: u } = a;
|
|
1584
1595
|
return i.useEffect(() => (c(), () => u()), [c, u]), /* @__PURE__ */ o.jsx(Ze, { ...s, ...r, ref: t });
|
|
1585
1596
|
}
|
|
1586
1597
|
);
|
|
1587
|
-
|
|
1588
|
-
var
|
|
1598
|
+
Cr.displayName = wr;
|
|
1599
|
+
var Rr = "PopoverTrigger", _r = i.forwardRef(
|
|
1589
1600
|
(e, t) => {
|
|
1590
|
-
const { __scopePopover: n, ...r } = e, a = fe(
|
|
1601
|
+
const { __scopePopover: n, ...r } = e, a = fe(Rr, n), s = ke(n), c = L(t, a.triggerRef), u = /* @__PURE__ */ o.jsx(
|
|
1591
1602
|
E.button,
|
|
1592
1603
|
{
|
|
1593
1604
|
type: "button",
|
|
1594
1605
|
"aria-haspopup": "dialog",
|
|
1595
1606
|
"aria-expanded": a.open,
|
|
1596
1607
|
"aria-controls": a.contentId,
|
|
1597
|
-
"data-state":
|
|
1608
|
+
"data-state": Nr(a.open),
|
|
1598
1609
|
...r,
|
|
1599
1610
|
ref: c,
|
|
1600
1611
|
onClick: C(e.onClick, a.onOpenToggle)
|
|
@@ -1603,29 +1614,29 @@ var Cr = "PopoverTrigger", Rr = i.forwardRef(
|
|
|
1603
1614
|
return a.hasCustomAnchor ? u : /* @__PURE__ */ o.jsx(Ze, { asChild: !0, ...s, children: u });
|
|
1604
1615
|
}
|
|
1605
1616
|
);
|
|
1606
|
-
|
|
1607
|
-
var
|
|
1617
|
+
_r.displayName = Rr;
|
|
1618
|
+
var en = "PopoverPortal", [hc, bc] = hr(en, {
|
|
1608
1619
|
forceMount: void 0
|
|
1609
|
-
}),
|
|
1610
|
-
const { __scopePopover: t, forceMount: n, children: r, container: a } = e, s = fe(
|
|
1611
|
-
return /* @__PURE__ */ o.jsx(
|
|
1620
|
+
}), yr = (e) => {
|
|
1621
|
+
const { __scopePopover: t, forceMount: n, children: r, container: a } = e, s = fe(en, t);
|
|
1622
|
+
return /* @__PURE__ */ o.jsx(hc, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(H, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ot, { asChild: !0, container: a, children: r }) }) });
|
|
1612
1623
|
};
|
|
1613
|
-
|
|
1624
|
+
yr.displayName = en;
|
|
1614
1625
|
var _e = "PopoverContent", Mr = i.forwardRef(
|
|
1615
1626
|
(e, t) => {
|
|
1616
|
-
const n =
|
|
1617
|
-
return /* @__PURE__ */ o.jsx(H, { present: r || s.open, children: s.modal ? /* @__PURE__ */ o.jsx(
|
|
1627
|
+
const n = bc(_e, e.__scopePopover), { forceMount: r = n.forceMount, ...a } = e, s = fe(_e, e.__scopePopover);
|
|
1628
|
+
return /* @__PURE__ */ o.jsx(H, { present: r || s.open, children: s.modal ? /* @__PURE__ */ o.jsx(Cc, { ...a, ref: t }) : /* @__PURE__ */ o.jsx(Rc, { ...a, ref: t }) });
|
|
1618
1629
|
}
|
|
1619
1630
|
);
|
|
1620
1631
|
Mr.displayName = _e;
|
|
1621
|
-
var
|
|
1632
|
+
var wc = $n("PopoverContent.RemoveScroll"), Cc = i.forwardRef(
|
|
1622
1633
|
(e, t) => {
|
|
1623
1634
|
const n = fe(_e, e.__scopePopover), r = i.useRef(null), a = L(t, r), s = i.useRef(!1);
|
|
1624
1635
|
return i.useEffect(() => {
|
|
1625
1636
|
const c = r.current;
|
|
1626
|
-
if (c) return
|
|
1627
|
-
}, []), /* @__PURE__ */ o.jsx(
|
|
1628
|
-
|
|
1637
|
+
if (c) return An(c);
|
|
1638
|
+
}, []), /* @__PURE__ */ o.jsx(jn, { as: wc, allowPinchZoom: !0, children: /* @__PURE__ */ o.jsx(
|
|
1639
|
+
Sr,
|
|
1629
1640
|
{
|
|
1630
1641
|
...e,
|
|
1631
1642
|
ref: a,
|
|
@@ -1650,11 +1661,11 @@ var mc = kn("PopoverContent.RemoveScroll"), gc = i.forwardRef(
|
|
|
1650
1661
|
}
|
|
1651
1662
|
) });
|
|
1652
1663
|
}
|
|
1653
|
-
),
|
|
1664
|
+
), Rc = i.forwardRef(
|
|
1654
1665
|
(e, t) => {
|
|
1655
1666
|
const n = fe(_e, e.__scopePopover), r = i.useRef(!1), a = i.useRef(!1);
|
|
1656
1667
|
return /* @__PURE__ */ o.jsx(
|
|
1657
|
-
|
|
1668
|
+
Sr,
|
|
1658
1669
|
{
|
|
1659
1670
|
...e,
|
|
1660
1671
|
ref: t,
|
|
@@ -1671,7 +1682,7 @@ var mc = kn("PopoverContent.RemoveScroll"), gc = i.forwardRef(
|
|
|
1671
1682
|
}
|
|
1672
1683
|
);
|
|
1673
1684
|
}
|
|
1674
|
-
),
|
|
1685
|
+
), Sr = i.forwardRef(
|
|
1675
1686
|
(e, t) => {
|
|
1676
1687
|
const {
|
|
1677
1688
|
__scopePopover: n,
|
|
@@ -1686,7 +1697,7 @@ var mc = kn("PopoverContent.RemoveScroll"), gc = i.forwardRef(
|
|
|
1686
1697
|
...d
|
|
1687
1698
|
} = e, m = fe(_e, n), g = ke(n);
|
|
1688
1699
|
return In(), /* @__PURE__ */ o.jsx(
|
|
1689
|
-
|
|
1700
|
+
Pn,
|
|
1690
1701
|
{
|
|
1691
1702
|
asChild: !0,
|
|
1692
1703
|
loop: !0,
|
|
@@ -1694,7 +1705,7 @@ var mc = kn("PopoverContent.RemoveScroll"), gc = i.forwardRef(
|
|
|
1694
1705
|
onMountAutoFocus: a,
|
|
1695
1706
|
onUnmountAutoFocus: s,
|
|
1696
1707
|
children: /* @__PURE__ */ o.jsx(
|
|
1697
|
-
|
|
1708
|
+
We,
|
|
1698
1709
|
{
|
|
1699
1710
|
asChild: !0,
|
|
1700
1711
|
disableOutsidePointerEvents: c,
|
|
@@ -1704,9 +1715,9 @@ var mc = kn("PopoverContent.RemoveScroll"), gc = i.forwardRef(
|
|
|
1704
1715
|
onFocusOutside: p,
|
|
1705
1716
|
onDismiss: () => m.onOpenChange(!1),
|
|
1706
1717
|
children: /* @__PURE__ */ o.jsx(
|
|
1707
|
-
|
|
1718
|
+
Gt,
|
|
1708
1719
|
{
|
|
1709
|
-
"data-state":
|
|
1720
|
+
"data-state": Nr(m.open),
|
|
1710
1721
|
role: "dialog",
|
|
1711
1722
|
id: m.contentId,
|
|
1712
1723
|
...g,
|
|
@@ -1727,9 +1738,9 @@ var mc = kn("PopoverContent.RemoveScroll"), gc = i.forwardRef(
|
|
|
1727
1738
|
}
|
|
1728
1739
|
);
|
|
1729
1740
|
}
|
|
1730
|
-
),
|
|
1741
|
+
), Er = "PopoverClose", _c = i.forwardRef(
|
|
1731
1742
|
(e, t) => {
|
|
1732
|
-
const { __scopePopover: n, ...r } = e, a = fe(
|
|
1743
|
+
const { __scopePopover: n, ...r } = e, a = fe(Er, n);
|
|
1733
1744
|
return /* @__PURE__ */ o.jsx(
|
|
1734
1745
|
E.button,
|
|
1735
1746
|
{
|
|
@@ -1741,27 +1752,27 @@ var mc = kn("PopoverContent.RemoveScroll"), gc = i.forwardRef(
|
|
|
1741
1752
|
);
|
|
1742
1753
|
}
|
|
1743
1754
|
);
|
|
1744
|
-
|
|
1745
|
-
var
|
|
1755
|
+
_c.displayName = Er;
|
|
1756
|
+
var yc = "PopoverArrow", Mc = i.forwardRef(
|
|
1746
1757
|
(e, t) => {
|
|
1747
1758
|
const { __scopePopover: n, ...r } = e, a = ke(n);
|
|
1748
|
-
return /* @__PURE__ */ o.jsx(
|
|
1759
|
+
return /* @__PURE__ */ o.jsx(Kt, { ...a, ...r, ref: t });
|
|
1749
1760
|
}
|
|
1750
1761
|
);
|
|
1751
|
-
|
|
1752
|
-
function
|
|
1762
|
+
Mc.displayName = yc;
|
|
1763
|
+
function Nr(e) {
|
|
1753
1764
|
return e ? "open" : "closed";
|
|
1754
1765
|
}
|
|
1755
|
-
var
|
|
1756
|
-
function
|
|
1757
|
-
return /* @__PURE__ */ o.jsx(
|
|
1766
|
+
var Sc = br, Ec = Cr, Nc = _r, Ac = yr, Ic = Mr;
|
|
1767
|
+
function mf({ ...e }) {
|
|
1768
|
+
return /* @__PURE__ */ o.jsx(Sc, { "data-slot": "popover", ...e });
|
|
1758
1769
|
}
|
|
1759
|
-
function
|
|
1760
|
-
return /* @__PURE__ */ o.jsx(
|
|
1770
|
+
function gf({ ...e }) {
|
|
1771
|
+
return /* @__PURE__ */ o.jsx(Nc, { "data-slot": "popover-trigger", ...e });
|
|
1761
1772
|
}
|
|
1762
|
-
function
|
|
1763
|
-
return /* @__PURE__ */ o.jsx(
|
|
1764
|
-
|
|
1773
|
+
function xf({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1774
|
+
return /* @__PURE__ */ o.jsx(Ac, { children: /* @__PURE__ */ o.jsx(
|
|
1775
|
+
Ic,
|
|
1765
1776
|
{
|
|
1766
1777
|
"data-slot": "popover-content",
|
|
1767
1778
|
align: t,
|
|
@@ -1774,28 +1785,28 @@ function ff({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
1774
1785
|
}
|
|
1775
1786
|
) });
|
|
1776
1787
|
}
|
|
1777
|
-
function
|
|
1778
|
-
return /* @__PURE__ */ o.jsx(
|
|
1788
|
+
function hf({ ...e }) {
|
|
1789
|
+
return /* @__PURE__ */ o.jsx(Ec, { "data-slot": "popover-anchor", ...e });
|
|
1779
1790
|
}
|
|
1780
|
-
var
|
|
1781
|
-
function
|
|
1782
|
-
if (s === t.length) return a === e.length ?
|
|
1791
|
+
var yn = 1, jc = 0.9, Pc = 0.8, Tc = 0.17, gt = 0.1, xt = 0.999, Dc = 0.9999, Oc = 0.99, kc = /[\\\/_+.#"@\[\(\{&]/, $c = /[\\\/_+.#"@\[\(\{&]/g, Lc = /[\s-]/, Ar = /[\s-]/g;
|
|
1792
|
+
function yt(e, t, n, r, a, s, c) {
|
|
1793
|
+
if (s === t.length) return a === e.length ? yn : Oc;
|
|
1783
1794
|
var u = `${a},${s}`;
|
|
1784
1795
|
if (c[u] !== void 0) return c[u];
|
|
1785
|
-
for (var f = r.charAt(s), p = n.indexOf(f, a), l = 0, d, m, g, v; p >= 0; ) d =
|
|
1796
|
+
for (var f = r.charAt(s), p = n.indexOf(f, a), l = 0, d, m, g, v; p >= 0; ) d = yt(e, t, n, r, p + 1, s + 1, c), d > l && (p === a ? d *= yn : kc.test(e.charAt(p - 1)) ? (d *= Pc, g = e.slice(a, p - 1).match($c), g && a > 0 && (d *= Math.pow(xt, g.length))) : Lc.test(e.charAt(p - 1)) ? (d *= jc, v = e.slice(a, p - 1).match(Ar), v && a > 0 && (d *= Math.pow(xt, v.length))) : (d *= Tc, a > 0 && (d *= Math.pow(xt, p - a))), e.charAt(p) !== t.charAt(s) && (d *= Dc)), (d < gt && n.charAt(p - 1) === r.charAt(s + 1) || r.charAt(s + 1) === r.charAt(s) && n.charAt(p - 1) !== r.charAt(s)) && (m = yt(e, t, n, r, p + 1, s + 2, c), m * gt > d && (d = m * gt)), d > l && (l = d), p = n.indexOf(f, p + 1);
|
|
1786
1797
|
return c[u] = l, l;
|
|
1787
1798
|
}
|
|
1788
1799
|
function Mn(e) {
|
|
1789
|
-
return e.toLowerCase().replace(
|
|
1800
|
+
return e.toLowerCase().replace(Ar, " ");
|
|
1790
1801
|
}
|
|
1791
|
-
function
|
|
1792
|
-
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e,
|
|
1802
|
+
function Fc(e, t, n) {
|
|
1803
|
+
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, yt(e, t, Mn(e), Mn(t), 0, 0, {});
|
|
1793
1804
|
}
|
|
1794
|
-
var Ne = '[cmdk-group=""]',
|
|
1805
|
+
var Ne = '[cmdk-group=""]', ht = '[cmdk-group-items=""]', Gc = '[cmdk-group-heading=""]', Ir = '[cmdk-item=""]', Sn = `${Ir}:not([aria-disabled="true"])`, Mt = "cmdk-item-select", we = "data-value", Kc = (e, t, n) => Fc(e, t, n), jr = i.createContext(void 0), $e = () => i.useContext(jr), Pr = i.createContext(void 0), tn = () => i.useContext(Pr), Tr = i.createContext(void 0), Dr = i.forwardRef((e, t) => {
|
|
1795
1806
|
let n = Ce(() => {
|
|
1796
|
-
var x,
|
|
1797
|
-
return { search: "", value: (
|
|
1798
|
-
}), r = Ce(() => /* @__PURE__ */ new Set()), a = Ce(() => /* @__PURE__ */ new Map()), s = Ce(() => /* @__PURE__ */ new Map()), c = Ce(() => /* @__PURE__ */ new Set()), u =
|
|
1807
|
+
var x, I;
|
|
1808
|
+
return { search: "", value: (I = (x = e.value) != null ? x : e.defaultValue) != null ? I : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
1809
|
+
}), r = Ce(() => /* @__PURE__ */ new Set()), a = Ce(() => /* @__PURE__ */ new Map()), s = Ce(() => /* @__PURE__ */ new Map()), c = Ce(() => /* @__PURE__ */ new Set()), u = Or(e), { label: f, children: p, value: l, onValueChange: d, filter: m, shouldFilter: g, loop: v, disablePointerSelection: h = !1, vimBindings: w = !0, ...R } = e, M = G(), _ = G(), N = G(), A = i.useRef(null), S = Jc();
|
|
1799
1810
|
me(() => {
|
|
1800
1811
|
if (l !== void 0) {
|
|
1801
1812
|
let x = l.trim();
|
|
@@ -1804,20 +1815,20 @@ var Ne = '[cmdk-group=""]', xt = '[cmdk-group-items=""]', Oc = '[cmdk-group-head
|
|
|
1804
1815
|
}, [l]), me(() => {
|
|
1805
1816
|
S(6, pe);
|
|
1806
1817
|
}, []);
|
|
1807
|
-
let D = i.useMemo(() => ({ subscribe: (x) => (c.current.add(x), () => c.current.delete(x)), snapshot: () => n.current, setState: (x,
|
|
1808
|
-
var
|
|
1809
|
-
if (!Object.is(n.current[x],
|
|
1810
|
-
if (n.current[x] =
|
|
1818
|
+
let D = i.useMemo(() => ({ subscribe: (x) => (c.current.add(x), () => c.current.delete(x)), snapshot: () => n.current, setState: (x, I, T) => {
|
|
1819
|
+
var y, O, P, K;
|
|
1820
|
+
if (!Object.is(n.current[x], I)) {
|
|
1821
|
+
if (n.current[x] = I, x === "search") oe(), F(), S(1, Y);
|
|
1811
1822
|
else if (x === "value") {
|
|
1812
1823
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
1813
1824
|
let U = document.getElementById(N);
|
|
1814
|
-
U ? U.focus() : (
|
|
1825
|
+
U ? U.focus() : (y = document.getElementById(M)) == null || y.focus();
|
|
1815
1826
|
}
|
|
1816
1827
|
if (S(7, () => {
|
|
1817
1828
|
var U;
|
|
1818
1829
|
n.current.selectedItemId = (U = ee()) == null ? void 0 : U.id, D.emit();
|
|
1819
1830
|
}), T || S(5, pe), ((O = u.current) == null ? void 0 : O.value) !== void 0) {
|
|
1820
|
-
let U =
|
|
1831
|
+
let U = I ?? "";
|
|
1821
1832
|
(K = (P = u.current).onValueChange) == null || K.call(P, U);
|
|
1822
1833
|
return;
|
|
1823
1834
|
}
|
|
@@ -1826,12 +1837,12 @@ var Ne = '[cmdk-group=""]', xt = '[cmdk-group-items=""]', Oc = '[cmdk-group-head
|
|
|
1826
1837
|
}
|
|
1827
1838
|
}, emit: () => {
|
|
1828
1839
|
c.current.forEach((x) => x());
|
|
1829
|
-
} }), []), k = i.useMemo(() => ({ value: (x,
|
|
1830
|
-
var
|
|
1831
|
-
|
|
1840
|
+
} }), []), k = i.useMemo(() => ({ value: (x, I, T) => {
|
|
1841
|
+
var y;
|
|
1842
|
+
I !== ((y = s.current.get(x)) == null ? void 0 : y.value) && (s.current.set(x, { value: I, keywords: T }), n.current.filtered.items.set(x, $(I, T)), S(2, () => {
|
|
1832
1843
|
F(), D.emit();
|
|
1833
1844
|
}));
|
|
1834
|
-
}, item: (x,
|
|
1845
|
+
}, item: (x, I) => (r.current.add(x), I && (a.current.has(I) ? a.current.get(I).add(x) : a.current.set(I, /* @__PURE__ */ new Set([x]))), S(3, () => {
|
|
1835
1846
|
oe(), F(), n.current.value || Y(), D.emit();
|
|
1836
1847
|
}), () => {
|
|
1837
1848
|
s.current.delete(x), r.current.delete(x), n.current.filtered.items.delete(x);
|
|
@@ -1841,42 +1852,42 @@ var Ne = '[cmdk-group=""]', xt = '[cmdk-group-items=""]', Oc = '[cmdk-group-head
|
|
|
1841
1852
|
});
|
|
1842
1853
|
}), group: (x) => (a.current.has(x) || a.current.set(x, /* @__PURE__ */ new Set()), () => {
|
|
1843
1854
|
s.current.delete(x), a.current.delete(x);
|
|
1844
|
-
}), filter: () => u.current.shouldFilter, label: f || e["aria-label"], getDisablePointerSelection: () => u.current.disablePointerSelection, listId:
|
|
1845
|
-
function $(x,
|
|
1846
|
-
var T,
|
|
1847
|
-
let O = (
|
|
1848
|
-
return x ? O(x, n.current.search,
|
|
1855
|
+
}), filter: () => u.current.shouldFilter, label: f || e["aria-label"], getDisablePointerSelection: () => u.current.disablePointerSelection, listId: M, inputId: N, labelId: _, listInnerRef: A }), []);
|
|
1856
|
+
function $(x, I) {
|
|
1857
|
+
var T, y;
|
|
1858
|
+
let O = (y = (T = u.current) == null ? void 0 : T.filter) != null ? y : Kc;
|
|
1859
|
+
return x ? O(x, n.current.search, I) : 0;
|
|
1849
1860
|
}
|
|
1850
1861
|
function F() {
|
|
1851
1862
|
if (!n.current.search || u.current.shouldFilter === !1) return;
|
|
1852
|
-
let x = n.current.filtered.items,
|
|
1853
|
-
n.current.filtered.groups.forEach((
|
|
1854
|
-
let O = a.current.get(
|
|
1863
|
+
let x = n.current.filtered.items, I = [];
|
|
1864
|
+
n.current.filtered.groups.forEach((y) => {
|
|
1865
|
+
let O = a.current.get(y), P = 0;
|
|
1855
1866
|
O.forEach((K) => {
|
|
1856
1867
|
let U = x.get(K);
|
|
1857
1868
|
P = Math.max(U, P);
|
|
1858
|
-
}),
|
|
1869
|
+
}), I.push([y, P]);
|
|
1859
1870
|
});
|
|
1860
|
-
let T =
|
|
1861
|
-
re().sort((
|
|
1871
|
+
let T = A.current;
|
|
1872
|
+
re().sort((y, O) => {
|
|
1862
1873
|
var P, K;
|
|
1863
|
-
let U =
|
|
1874
|
+
let U = y.getAttribute("id"), Fe = O.getAttribute("id");
|
|
1864
1875
|
return ((P = x.get(Fe)) != null ? P : 0) - ((K = x.get(U)) != null ? K : 0);
|
|
1865
|
-
}).forEach((
|
|
1866
|
-
let O =
|
|
1867
|
-
O ? O.appendChild(
|
|
1868
|
-
}),
|
|
1876
|
+
}).forEach((y) => {
|
|
1877
|
+
let O = y.closest(ht);
|
|
1878
|
+
O ? O.appendChild(y.parentElement === O ? y : y.closest(`${ht} > *`)) : T.appendChild(y.parentElement === T ? y : y.closest(`${ht} > *`));
|
|
1879
|
+
}), I.sort((y, O) => O[1] - y[1]).forEach((y) => {
|
|
1869
1880
|
var O;
|
|
1870
|
-
let P = (O =
|
|
1881
|
+
let P = (O = A.current) == null ? void 0 : O.querySelector(`${Ne}[${we}="${encodeURIComponent(y[0])}"]`);
|
|
1871
1882
|
P?.parentElement.appendChild(P);
|
|
1872
1883
|
});
|
|
1873
1884
|
}
|
|
1874
1885
|
function Y() {
|
|
1875
|
-
let x = re().find((T) => T.getAttribute("aria-disabled") !== "true"),
|
|
1876
|
-
D.setState("value",
|
|
1886
|
+
let x = re().find((T) => T.getAttribute("aria-disabled") !== "true"), I = x?.getAttribute(we);
|
|
1887
|
+
D.setState("value", I || void 0);
|
|
1877
1888
|
}
|
|
1878
1889
|
function oe() {
|
|
1879
|
-
var x,
|
|
1890
|
+
var x, I, T, y;
|
|
1880
1891
|
if (!n.current.search || u.current.shouldFilter === !1) {
|
|
1881
1892
|
n.current.filtered.count = r.current.size;
|
|
1882
1893
|
return;
|
|
@@ -1884,7 +1895,7 @@ var Ne = '[cmdk-group=""]', xt = '[cmdk-group-items=""]', Oc = '[cmdk-group-head
|
|
|
1884
1895
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
1885
1896
|
let O = 0;
|
|
1886
1897
|
for (let P of r.current) {
|
|
1887
|
-
let K = (
|
|
1898
|
+
let K = (I = (x = s.current.get(P)) == null ? void 0 : x.value) != null ? I : "", U = (y = (T = s.current.get(P)) == null ? void 0 : T.keywords) != null ? y : [], Fe = $(K, U);
|
|
1888
1899
|
n.current.filtered.items.set(P, Fe), Fe > 0 && O++;
|
|
1889
1900
|
}
|
|
1890
1901
|
for (let [P, K] of a.current) for (let U of K) if (n.current.filtered.items.get(U) > 0) {
|
|
@@ -1894,31 +1905,31 @@ var Ne = '[cmdk-group=""]', xt = '[cmdk-group-items=""]', Oc = '[cmdk-group-head
|
|
|
1894
1905
|
n.current.filtered.count = O;
|
|
1895
1906
|
}
|
|
1896
1907
|
function pe() {
|
|
1897
|
-
var x,
|
|
1898
|
-
let
|
|
1899
|
-
|
|
1908
|
+
var x, I, T;
|
|
1909
|
+
let y = ee();
|
|
1910
|
+
y && (((x = y.parentElement) == null ? void 0 : x.firstChild) === y && ((T = (I = y.closest(Ne)) == null ? void 0 : I.querySelector(Gc)) == null || T.scrollIntoView({ block: "nearest" })), y.scrollIntoView({ block: "nearest" }));
|
|
1900
1911
|
}
|
|
1901
1912
|
function ee() {
|
|
1902
1913
|
var x;
|
|
1903
|
-
return (x =
|
|
1914
|
+
return (x = A.current) == null ? void 0 : x.querySelector(`${Ir}[aria-selected="true"]`);
|
|
1904
1915
|
}
|
|
1905
1916
|
function re() {
|
|
1906
1917
|
var x;
|
|
1907
|
-
return Array.from(((x =
|
|
1918
|
+
return Array.from(((x = A.current) == null ? void 0 : x.querySelectorAll(Sn)) || []);
|
|
1908
1919
|
}
|
|
1909
1920
|
function X(x) {
|
|
1910
|
-
let
|
|
1911
|
-
|
|
1921
|
+
let I = re()[x];
|
|
1922
|
+
I && D.setState("value", I.getAttribute(we));
|
|
1912
1923
|
}
|
|
1913
1924
|
function Ee(x) {
|
|
1914
|
-
var
|
|
1915
|
-
let T = ee(),
|
|
1916
|
-
(
|
|
1925
|
+
var I;
|
|
1926
|
+
let T = ee(), y = re(), O = y.findIndex((K) => K === T), P = y[O + x];
|
|
1927
|
+
(I = u.current) != null && I.loop && (P = O + x < 0 ? y[y.length - 1] : O + x === y.length ? y[0] : y[O + x]), P && D.setState("value", P.getAttribute(we));
|
|
1917
1928
|
}
|
|
1918
1929
|
function ae(x) {
|
|
1919
|
-
let
|
|
1920
|
-
for (; T && !
|
|
1921
|
-
|
|
1930
|
+
let I = ee(), T = I?.closest(Ne), y;
|
|
1931
|
+
for (; T && !y; ) T = x > 0 ? Xc(T, Ne) : Zc(T, Ne), y = T?.querySelector(Sn);
|
|
1932
|
+
y ? D.setState("value", y.getAttribute(we)) : Ee(x);
|
|
1922
1933
|
}
|
|
1923
1934
|
let j = () => X(re().length - 1), se = (x) => {
|
|
1924
1935
|
x.preventDefault(), x.metaKey ? j() : x.altKey ? ae(1) : Ee(1);
|
|
@@ -1926,8 +1937,8 @@ var Ne = '[cmdk-group=""]', xt = '[cmdk-group-items=""]', Oc = '[cmdk-group-head
|
|
|
1926
1937
|
x.preventDefault(), x.metaKey ? X(0) : x.altKey ? ae(-1) : Ee(-1);
|
|
1927
1938
|
};
|
|
1928
1939
|
return i.createElement(E.div, { ref: t, tabIndex: -1, ...R, "cmdk-root": "", onKeyDown: (x) => {
|
|
1929
|
-
var
|
|
1930
|
-
(
|
|
1940
|
+
var I;
|
|
1941
|
+
(I = R.onKeyDown) == null || I.call(R, x);
|
|
1931
1942
|
let T = x.nativeEvent.isComposing || x.keyCode === 229;
|
|
1932
1943
|
if (!(x.defaultPrevented || T)) switch (x.key) {
|
|
1933
1944
|
case "n":
|
|
@@ -1958,21 +1969,21 @@ var Ne = '[cmdk-group=""]', xt = '[cmdk-group-items=""]', Oc = '[cmdk-group-head
|
|
|
1958
1969
|
}
|
|
1959
1970
|
case "Enter": {
|
|
1960
1971
|
x.preventDefault();
|
|
1961
|
-
let
|
|
1962
|
-
if (
|
|
1972
|
+
let y = ee();
|
|
1973
|
+
if (y) {
|
|
1963
1974
|
let O = new Event(Mt);
|
|
1964
|
-
|
|
1975
|
+
y.dispatchEvent(O);
|
|
1965
1976
|
}
|
|
1966
1977
|
}
|
|
1967
1978
|
}
|
|
1968
|
-
} }, i.createElement("label", { "cmdk-label": "", htmlFor: k.inputId, id: k.labelId, style:
|
|
1969
|
-
}),
|
|
1979
|
+
} }, i.createElement("label", { "cmdk-label": "", htmlFor: k.inputId, id: k.labelId, style: eu }, f), at(e, (x) => i.createElement(Pr.Provider, { value: D }, i.createElement(jr.Provider, { value: k }, x))));
|
|
1980
|
+
}), zc = i.forwardRef((e, t) => {
|
|
1970
1981
|
var n, r;
|
|
1971
|
-
let a = G(), s = i.useRef(null), c = i.useContext(
|
|
1982
|
+
let a = G(), s = i.useRef(null), c = i.useContext(Tr), u = $e(), f = Or(e), p = (r = (n = f.current) == null ? void 0 : n.forceMount) != null ? r : c?.forceMount;
|
|
1972
1983
|
me(() => {
|
|
1973
1984
|
if (!p) return u.item(a, c?.id);
|
|
1974
1985
|
}, [p]);
|
|
1975
|
-
let l =
|
|
1986
|
+
let l = kr(a, s, [e.value, e.children, s], e.keywords), d = tn(), m = ue((S) => S.value && S.value === l.current), g = ue((S) => p || u.filter() === !1 ? !0 : S.search ? S.filtered.items.get(a) > 0 : !0);
|
|
1976
1987
|
i.useEffect(() => {
|
|
1977
1988
|
let S = s.current;
|
|
1978
1989
|
if (!(!S || e.disabled)) return S.addEventListener(Mt, v), () => S.removeEventListener(Mt, v);
|
|
@@ -1985,24 +1996,24 @@ var Ne = '[cmdk-group=""]', xt = '[cmdk-group-items=""]', Oc = '[cmdk-group-head
|
|
|
1985
1996
|
d.setState("value", l.current, !0);
|
|
1986
1997
|
}
|
|
1987
1998
|
if (!g) return null;
|
|
1988
|
-
let { disabled: w, value: R, onSelect:
|
|
1989
|
-
return i.createElement(E.div, { ref: ce(s, t), ...
|
|
1990
|
-
}),
|
|
1999
|
+
let { disabled: w, value: R, onSelect: M, forceMount: _, keywords: N, ...A } = e;
|
|
2000
|
+
return i.createElement(E.div, { ref: ce(s, t), ...A, id: a, "cmdk-item": "", role: "option", "aria-disabled": !!w, "aria-selected": !!m, "data-disabled": !!w, "data-selected": !!m, onPointerMove: w || u.getDisablePointerSelection() ? void 0 : h, onClick: w ? void 0 : v }, e.children);
|
|
2001
|
+
}), Vc = i.forwardRef((e, t) => {
|
|
1991
2002
|
let { heading: n, children: r, forceMount: a, ...s } = e, c = G(), u = i.useRef(null), f = i.useRef(null), p = G(), l = $e(), d = ue((g) => a || l.filter() === !1 ? !0 : g.search ? g.filtered.groups.has(c) : !0);
|
|
1992
|
-
me(() => l.group(c), []),
|
|
2003
|
+
me(() => l.group(c), []), kr(c, u, [e.value, e.heading, f]);
|
|
1993
2004
|
let m = i.useMemo(() => ({ id: c, forceMount: a }), [a]);
|
|
1994
|
-
return i.createElement(E.div, { ref: ce(u, t), ...s, "cmdk-group": "", role: "presentation", hidden: d ? void 0 : !0 }, n && i.createElement("div", { ref: f, "cmdk-group-heading": "", "aria-hidden": !0, id: p }, n),
|
|
1995
|
-
}),
|
|
2005
|
+
return i.createElement(E.div, { ref: ce(u, t), ...s, "cmdk-group": "", role: "presentation", hidden: d ? void 0 : !0 }, n && i.createElement("div", { ref: f, "cmdk-group-heading": "", "aria-hidden": !0, id: p }, n), at(e, (g) => i.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? p : void 0 }, i.createElement(Tr.Provider, { value: m }, g))));
|
|
2006
|
+
}), Uc = i.forwardRef((e, t) => {
|
|
1996
2007
|
let { alwaysRender: n, ...r } = e, a = i.useRef(null), s = ue((c) => !c.search);
|
|
1997
2008
|
return !n && !s ? null : i.createElement(E.div, { ref: ce(a, t), ...r, "cmdk-separator": "", role: "separator" });
|
|
1998
|
-
}),
|
|
1999
|
-
let { onValueChange: n, ...r } = e, a = e.value != null, s =
|
|
2009
|
+
}), Bc = i.forwardRef((e, t) => {
|
|
2010
|
+
let { onValueChange: n, ...r } = e, a = e.value != null, s = tn(), c = ue((p) => p.search), u = ue((p) => p.selectedItemId), f = $e();
|
|
2000
2011
|
return i.useEffect(() => {
|
|
2001
2012
|
e.value != null && s.setState("search", e.value);
|
|
2002
2013
|
}, [e.value]), i.createElement(E.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": f.listId, "aria-labelledby": f.labelId, "aria-activedescendant": u, id: f.inputId, type: "text", value: a ? e.value : c, onChange: (p) => {
|
|
2003
2014
|
a || s.setState("search", p.target.value), n?.(p.target.value);
|
|
2004
2015
|
} });
|
|
2005
|
-
}),
|
|
2016
|
+
}), Hc = i.forwardRef((e, t) => {
|
|
2006
2017
|
let { children: n, label: r = "Suggestions", ...a } = e, s = i.useRef(null), c = i.useRef(null), u = ue((p) => p.selectedItemId), f = $e();
|
|
2007
2018
|
return i.useEffect(() => {
|
|
2008
2019
|
if (c.current && s.current) {
|
|
@@ -2016,29 +2027,29 @@ var Ne = '[cmdk-group=""]', xt = '[cmdk-group-items=""]', Oc = '[cmdk-group-head
|
|
|
2016
2027
|
cancelAnimationFrame(d), m.unobserve(p);
|
|
2017
2028
|
};
|
|
2018
2029
|
}
|
|
2019
|
-
}, []), i.createElement(E.div, { ref: ce(s, t), ...a, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": u, "aria-label": r, id: f.listId },
|
|
2020
|
-
}),
|
|
2030
|
+
}, []), i.createElement(E.div, { ref: ce(s, t), ...a, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": u, "aria-label": r, id: f.listId }, at(e, (p) => i.createElement("div", { ref: ce(c, f.listInnerRef), "cmdk-list-sizer": "" }, p)));
|
|
2031
|
+
}), qc = i.forwardRef((e, t) => {
|
|
2021
2032
|
let { open: n, onOpenChange: r, overlayClassName: a, contentClassName: s, container: c, ...u } = e;
|
|
2022
|
-
return i.createElement(
|
|
2023
|
-
}),
|
|
2033
|
+
return i.createElement(kt, { open: n, onOpenChange: r }, i.createElement($t, { container: c }, i.createElement(Lt, { "cmdk-overlay": "", className: a }), i.createElement(Ft, { "aria-label": e.label, "cmdk-dialog": "", className: s }, i.createElement(Dr, { ref: t, ...u }))));
|
|
2034
|
+
}), Wc = i.forwardRef((e, t) => ue((n) => n.filtered.count === 0) ? i.createElement(E.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), Yc = i.forwardRef((e, t) => {
|
|
2024
2035
|
let { progress: n, children: r, label: a = "Loading...", ...s } = e;
|
|
2025
|
-
return i.createElement(E.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": a },
|
|
2026
|
-
}), he = Object.assign(
|
|
2027
|
-
function
|
|
2036
|
+
return i.createElement(E.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": a }, at(e, (c) => i.createElement("div", { "aria-hidden": !0 }, c)));
|
|
2037
|
+
}), he = Object.assign(Dr, { List: Hc, Item: zc, Input: Bc, Group: Vc, Separator: Uc, Dialog: qc, Empty: Wc, Loading: Yc });
|
|
2038
|
+
function Xc(e, t) {
|
|
2028
2039
|
let n = e.nextElementSibling;
|
|
2029
2040
|
for (; n; ) {
|
|
2030
2041
|
if (n.matches(t)) return n;
|
|
2031
2042
|
n = n.nextElementSibling;
|
|
2032
2043
|
}
|
|
2033
2044
|
}
|
|
2034
|
-
function
|
|
2045
|
+
function Zc(e, t) {
|
|
2035
2046
|
let n = e.previousElementSibling;
|
|
2036
2047
|
for (; n; ) {
|
|
2037
2048
|
if (n.matches(t)) return n;
|
|
2038
2049
|
n = n.previousElementSibling;
|
|
2039
2050
|
}
|
|
2040
2051
|
}
|
|
2041
|
-
function
|
|
2052
|
+
function Or(e) {
|
|
2042
2053
|
let t = i.useRef(e);
|
|
2043
2054
|
return me(() => {
|
|
2044
2055
|
t.current = e;
|
|
@@ -2050,10 +2061,10 @@ function Ce(e) {
|
|
|
2050
2061
|
return t.current === void 0 && (t.current = e()), t;
|
|
2051
2062
|
}
|
|
2052
2063
|
function ue(e) {
|
|
2053
|
-
let t =
|
|
2064
|
+
let t = tn(), n = () => e(t.snapshot());
|
|
2054
2065
|
return i.useSyncExternalStore(t.subscribe, n, n);
|
|
2055
2066
|
}
|
|
2056
|
-
function
|
|
2067
|
+
function kr(e, t, n, r = []) {
|
|
2057
2068
|
let a = i.useRef(), s = $e();
|
|
2058
2069
|
return me(() => {
|
|
2059
2070
|
var c;
|
|
@@ -2067,7 +2078,7 @@ function Or(e, t, n, r = []) {
|
|
|
2067
2078
|
s.value(e, u, f), (c = t.current) == null || c.setAttribute(we, u), a.current = u;
|
|
2068
2079
|
}), a;
|
|
2069
2080
|
}
|
|
2070
|
-
var
|
|
2081
|
+
var Jc = () => {
|
|
2071
2082
|
let [e, t] = i.useState(), n = Ce(() => /* @__PURE__ */ new Map());
|
|
2072
2083
|
return me(() => {
|
|
2073
2084
|
n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
|
|
@@ -2075,15 +2086,15 @@ var Wc = () => {
|
|
|
2075
2086
|
n.current.set(r, a), t({});
|
|
2076
2087
|
};
|
|
2077
2088
|
};
|
|
2078
|
-
function
|
|
2089
|
+
function Qc(e) {
|
|
2079
2090
|
let t = e.type;
|
|
2080
2091
|
return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
|
|
2081
2092
|
}
|
|
2082
|
-
function
|
|
2083
|
-
return e && i.isValidElement(t) ? i.cloneElement(
|
|
2093
|
+
function at({ asChild: e, children: t }, n) {
|
|
2094
|
+
return e && i.isValidElement(t) ? i.cloneElement(Qc(t), { ref: t.ref }, n(t.props.children)) : n(t);
|
|
2084
2095
|
}
|
|
2085
|
-
var
|
|
2086
|
-
function
|
|
2096
|
+
var eu = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
2097
|
+
function tu({ className: e, ...t }) {
|
|
2087
2098
|
return /* @__PURE__ */ o.jsx(
|
|
2088
2099
|
he,
|
|
2089
2100
|
{
|
|
@@ -2093,7 +2104,7 @@ function Xc({ className: e, ...t }) {
|
|
|
2093
2104
|
}
|
|
2094
2105
|
);
|
|
2095
2106
|
}
|
|
2096
|
-
function
|
|
2107
|
+
function bf({
|
|
2097
2108
|
title: e = "Command Palette",
|
|
2098
2109
|
description: t = "Search for a command to run...",
|
|
2099
2110
|
children: n,
|
|
@@ -2101,17 +2112,17 @@ function vf({
|
|
|
2101
2112
|
showCloseButton: a = !0,
|
|
2102
2113
|
...s
|
|
2103
2114
|
}) {
|
|
2104
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2105
|
-
/* @__PURE__ */ o.jsxs(
|
|
2106
|
-
/* @__PURE__ */ o.jsx(
|
|
2107
|
-
/* @__PURE__ */ o.jsx(
|
|
2115
|
+
return /* @__PURE__ */ o.jsxs(bs, { ...s, children: [
|
|
2116
|
+
/* @__PURE__ */ o.jsxs(ws, { className: "sr-only", children: [
|
|
2117
|
+
/* @__PURE__ */ o.jsx(Cs, { children: e }),
|
|
2118
|
+
/* @__PURE__ */ o.jsx(Rs, { children: t })
|
|
2108
2119
|
] }),
|
|
2109
|
-
/* @__PURE__ */ o.jsx(
|
|
2120
|
+
/* @__PURE__ */ o.jsx(_s, { className: b("overflow-hidden p-0", r), showCloseButton: a, children: /* @__PURE__ */ o.jsx(tu, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: n }) })
|
|
2110
2121
|
] });
|
|
2111
2122
|
}
|
|
2112
|
-
function
|
|
2123
|
+
function wf({ className: e, ...t }) {
|
|
2113
2124
|
return /* @__PURE__ */ o.jsxs("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [
|
|
2114
|
-
/* @__PURE__ */ o.jsx(
|
|
2125
|
+
/* @__PURE__ */ o.jsx(Is, { className: "size-4 shrink-0 opacity-50" }),
|
|
2115
2126
|
/* @__PURE__ */ o.jsx(
|
|
2116
2127
|
he.Input,
|
|
2117
2128
|
{
|
|
@@ -2125,7 +2136,7 @@ function mf({ className: e, ...t }) {
|
|
|
2125
2136
|
)
|
|
2126
2137
|
] });
|
|
2127
2138
|
}
|
|
2128
|
-
function
|
|
2139
|
+
function Cf({ className: e, ...t }) {
|
|
2129
2140
|
return /* @__PURE__ */ o.jsx(
|
|
2130
2141
|
he.List,
|
|
2131
2142
|
{
|
|
@@ -2135,10 +2146,10 @@ function gf({ className: e, ...t }) {
|
|
|
2135
2146
|
}
|
|
2136
2147
|
);
|
|
2137
2148
|
}
|
|
2138
|
-
function
|
|
2149
|
+
function Rf({ ...e }) {
|
|
2139
2150
|
return /* @__PURE__ */ o.jsx(he.Empty, { "data-slot": "command-empty", className: "py-6 text-center text-sm", ...e });
|
|
2140
2151
|
}
|
|
2141
|
-
function
|
|
2152
|
+
function _f({ className: e, ...t }) {
|
|
2142
2153
|
return /* @__PURE__ */ o.jsx(
|
|
2143
2154
|
he.Group,
|
|
2144
2155
|
{
|
|
@@ -2151,10 +2162,10 @@ function hf({ className: e, ...t }) {
|
|
|
2151
2162
|
}
|
|
2152
2163
|
);
|
|
2153
2164
|
}
|
|
2154
|
-
function
|
|
2165
|
+
function yf({ className: e, ...t }) {
|
|
2155
2166
|
return /* @__PURE__ */ o.jsx(he.Separator, { "data-slot": "command-separator", className: b("bg-border -mx-1 h-px", e), ...t });
|
|
2156
2167
|
}
|
|
2157
|
-
function
|
|
2168
|
+
function Mf({ className: e, ...t }) {
|
|
2158
2169
|
return /* @__PURE__ */ o.jsx(
|
|
2159
2170
|
he.Item,
|
|
2160
2171
|
{
|
|
@@ -2167,10 +2178,10 @@ function wf({ className: e, ...t }) {
|
|
|
2167
2178
|
}
|
|
2168
2179
|
);
|
|
2169
2180
|
}
|
|
2170
|
-
function
|
|
2181
|
+
function Sf({ className: e, ...t }) {
|
|
2171
2182
|
return /* @__PURE__ */ o.jsx("span", { "data-slot": "command-shortcut", className: b("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
|
|
2172
2183
|
}
|
|
2173
|
-
var
|
|
2184
|
+
var st = "Collapsible", [nu, $r] = q(st), [ou, nn] = nu(st), Lr = i.forwardRef(
|
|
2174
2185
|
(e, t) => {
|
|
2175
2186
|
const {
|
|
2176
2187
|
__scopeCollapsible: n,
|
|
@@ -2179,14 +2190,14 @@ var at = "Collapsible", [Zc, kr] = W(at), [Jc, tn] = Zc(at), $r = i.forwardRef(
|
|
|
2179
2190
|
disabled: s,
|
|
2180
2191
|
onOpenChange: c,
|
|
2181
2192
|
...u
|
|
2182
|
-
} = e, [f, p] =
|
|
2193
|
+
} = e, [f, p] = W({
|
|
2183
2194
|
prop: r,
|
|
2184
2195
|
defaultProp: a ?? !1,
|
|
2185
2196
|
onChange: c,
|
|
2186
|
-
caller:
|
|
2197
|
+
caller: st
|
|
2187
2198
|
});
|
|
2188
2199
|
return /* @__PURE__ */ o.jsx(
|
|
2189
|
-
|
|
2200
|
+
ou,
|
|
2190
2201
|
{
|
|
2191
2202
|
scope: n,
|
|
2192
2203
|
disabled: s,
|
|
@@ -2196,7 +2207,7 @@ var at = "Collapsible", [Zc, kr] = W(at), [Jc, tn] = Zc(at), $r = i.forwardRef(
|
|
|
2196
2207
|
children: /* @__PURE__ */ o.jsx(
|
|
2197
2208
|
E.div,
|
|
2198
2209
|
{
|
|
2199
|
-
"data-state":
|
|
2210
|
+
"data-state": rn(f),
|
|
2200
2211
|
"data-disabled": s ? "" : void 0,
|
|
2201
2212
|
...u,
|
|
2202
2213
|
ref: t
|
|
@@ -2206,17 +2217,17 @@ var at = "Collapsible", [Zc, kr] = W(at), [Jc, tn] = Zc(at), $r = i.forwardRef(
|
|
|
2206
2217
|
);
|
|
2207
2218
|
}
|
|
2208
2219
|
);
|
|
2209
|
-
|
|
2210
|
-
var
|
|
2220
|
+
Lr.displayName = st;
|
|
2221
|
+
var Fr = "CollapsibleTrigger", Gr = i.forwardRef(
|
|
2211
2222
|
(e, t) => {
|
|
2212
|
-
const { __scopeCollapsible: n, ...r } = e, a =
|
|
2223
|
+
const { __scopeCollapsible: n, ...r } = e, a = nn(Fr, n);
|
|
2213
2224
|
return /* @__PURE__ */ o.jsx(
|
|
2214
2225
|
E.button,
|
|
2215
2226
|
{
|
|
2216
2227
|
type: "button",
|
|
2217
2228
|
"aria-controls": a.contentId,
|
|
2218
2229
|
"aria-expanded": a.open || !1,
|
|
2219
|
-
"data-state":
|
|
2230
|
+
"data-state": rn(a.open),
|
|
2220
2231
|
"data-disabled": a.disabled ? "" : void 0,
|
|
2221
2232
|
disabled: a.disabled,
|
|
2222
2233
|
...r,
|
|
@@ -2226,33 +2237,33 @@ var Lr = "CollapsibleTrigger", Fr = i.forwardRef(
|
|
|
2226
2237
|
);
|
|
2227
2238
|
}
|
|
2228
2239
|
);
|
|
2229
|
-
|
|
2230
|
-
var
|
|
2240
|
+
Gr.displayName = Fr;
|
|
2241
|
+
var on = "CollapsibleContent", Kr = i.forwardRef(
|
|
2231
2242
|
(e, t) => {
|
|
2232
|
-
const { forceMount: n, ...r } = e, a =
|
|
2233
|
-
return /* @__PURE__ */ o.jsx(H, { present: n || a.open, children: ({ present: s }) => /* @__PURE__ */ o.jsx(
|
|
2243
|
+
const { forceMount: n, ...r } = e, a = nn(on, e.__scopeCollapsible);
|
|
2244
|
+
return /* @__PURE__ */ o.jsx(H, { present: n || a.open, children: ({ present: s }) => /* @__PURE__ */ o.jsx(ru, { ...r, ref: t, present: s }) });
|
|
2234
2245
|
}
|
|
2235
2246
|
);
|
|
2236
|
-
|
|
2237
|
-
var
|
|
2238
|
-
const { __scopeCollapsible: n, present: r, children: a, ...s } = e, c =
|
|
2247
|
+
Kr.displayName = on;
|
|
2248
|
+
var ru = i.forwardRef((e, t) => {
|
|
2249
|
+
const { __scopeCollapsible: n, present: r, children: a, ...s } = e, c = nn(on, n), [u, f] = i.useState(r), p = i.useRef(null), l = L(t, p), d = i.useRef(0), m = d.current, g = i.useRef(0), v = g.current, h = c.open || u, w = i.useRef(h), R = i.useRef(void 0);
|
|
2239
2250
|
return i.useEffect(() => {
|
|
2240
|
-
const
|
|
2241
|
-
return () => cancelAnimationFrame(
|
|
2251
|
+
const M = requestAnimationFrame(() => w.current = !1);
|
|
2252
|
+
return () => cancelAnimationFrame(M);
|
|
2242
2253
|
}, []), ve(() => {
|
|
2243
|
-
const
|
|
2244
|
-
if (
|
|
2254
|
+
const M = p.current;
|
|
2255
|
+
if (M) {
|
|
2245
2256
|
R.current = R.current || {
|
|
2246
|
-
transitionDuration:
|
|
2247
|
-
animationName:
|
|
2248
|
-
},
|
|
2249
|
-
const _ =
|
|
2250
|
-
d.current = _.height, g.current = _.width, w.current || (
|
|
2257
|
+
transitionDuration: M.style.transitionDuration,
|
|
2258
|
+
animationName: M.style.animationName
|
|
2259
|
+
}, M.style.transitionDuration = "0s", M.style.animationName = "none";
|
|
2260
|
+
const _ = M.getBoundingClientRect();
|
|
2261
|
+
d.current = _.height, g.current = _.width, w.current || (M.style.transitionDuration = R.current.transitionDuration, M.style.animationName = R.current.animationName), f(r);
|
|
2251
2262
|
}
|
|
2252
2263
|
}, [c.open, r]), /* @__PURE__ */ o.jsx(
|
|
2253
2264
|
E.div,
|
|
2254
2265
|
{
|
|
2255
|
-
"data-state":
|
|
2266
|
+
"data-state": rn(c.open),
|
|
2256
2267
|
"data-disabled": c.disabled ? "" : void 0,
|
|
2257
2268
|
id: c.contentId,
|
|
2258
2269
|
hidden: !h,
|
|
@@ -2267,23 +2278,23 @@ var Qc = i.forwardRef((e, t) => {
|
|
|
2267
2278
|
}
|
|
2268
2279
|
);
|
|
2269
2280
|
});
|
|
2270
|
-
function
|
|
2281
|
+
function rn(e) {
|
|
2271
2282
|
return e ? "open" : "closed";
|
|
2272
2283
|
}
|
|
2273
|
-
var
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
]),
|
|
2284
|
+
var au = Lr, su = Gr, iu = Kr, te = "Accordion", cu = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [an, uu, lu] = Me(te), [it, Ef] = q(te, [
|
|
2285
|
+
lu,
|
|
2286
|
+
$r
|
|
2287
|
+
]), sn = $r(), zr = B.forwardRef(
|
|
2277
2288
|
(e, t) => {
|
|
2278
2289
|
const { type: n, ...r } = e, a = r, s = r;
|
|
2279
|
-
return /* @__PURE__ */ o.jsx(
|
|
2290
|
+
return /* @__PURE__ */ o.jsx(an.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ o.jsx(vu, { ...s, ref: t }) : /* @__PURE__ */ o.jsx(pu, { ...a, ref: t }) });
|
|
2280
2291
|
}
|
|
2281
2292
|
);
|
|
2282
|
-
|
|
2283
|
-
var [
|
|
2293
|
+
zr.displayName = te;
|
|
2294
|
+
var [Vr, du] = it(te), [Ur, fu] = it(
|
|
2284
2295
|
te,
|
|
2285
2296
|
{ collapsible: !1 }
|
|
2286
|
-
),
|
|
2297
|
+
), pu = B.forwardRef(
|
|
2287
2298
|
(e, t) => {
|
|
2288
2299
|
const {
|
|
2289
2300
|
value: n,
|
|
@@ -2292,31 +2303,31 @@ var [zr, su] = st(te), [Vr, iu] = st(
|
|
|
2292
2303
|
},
|
|
2293
2304
|
collapsible: s = !1,
|
|
2294
2305
|
...c
|
|
2295
|
-
} = e, [u, f] =
|
|
2306
|
+
} = e, [u, f] = W({
|
|
2296
2307
|
prop: n,
|
|
2297
2308
|
defaultProp: r ?? "",
|
|
2298
2309
|
onChange: a,
|
|
2299
2310
|
caller: te
|
|
2300
2311
|
});
|
|
2301
2312
|
return /* @__PURE__ */ o.jsx(
|
|
2302
|
-
|
|
2313
|
+
Vr,
|
|
2303
2314
|
{
|
|
2304
2315
|
scope: e.__scopeAccordion,
|
|
2305
2316
|
value: B.useMemo(() => u ? [u] : [], [u]),
|
|
2306
2317
|
onItemOpen: f,
|
|
2307
2318
|
onItemClose: B.useCallback(() => s && f(""), [s, f]),
|
|
2308
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2319
|
+
children: /* @__PURE__ */ o.jsx(Ur, { scope: e.__scopeAccordion, collapsible: s, children: /* @__PURE__ */ o.jsx(Br, { ...c, ref: t }) })
|
|
2309
2320
|
}
|
|
2310
2321
|
);
|
|
2311
2322
|
}
|
|
2312
|
-
),
|
|
2323
|
+
), vu = B.forwardRef((e, t) => {
|
|
2313
2324
|
const {
|
|
2314
2325
|
value: n,
|
|
2315
2326
|
defaultValue: r,
|
|
2316
2327
|
onValueChange: a = () => {
|
|
2317
2328
|
},
|
|
2318
2329
|
...s
|
|
2319
|
-
} = e, [c, u] =
|
|
2330
|
+
} = e, [c, u] = W({
|
|
2320
2331
|
prop: n,
|
|
2321
2332
|
defaultProp: r ?? [],
|
|
2322
2333
|
onChange: a,
|
|
@@ -2329,59 +2340,59 @@ var [zr, su] = st(te), [Vr, iu] = st(
|
|
|
2329
2340
|
[u]
|
|
2330
2341
|
);
|
|
2331
2342
|
return /* @__PURE__ */ o.jsx(
|
|
2332
|
-
|
|
2343
|
+
Vr,
|
|
2333
2344
|
{
|
|
2334
2345
|
scope: e.__scopeAccordion,
|
|
2335
2346
|
value: c,
|
|
2336
2347
|
onItemOpen: f,
|
|
2337
2348
|
onItemClose: p,
|
|
2338
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2349
|
+
children: /* @__PURE__ */ o.jsx(Ur, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ o.jsx(Br, { ...s, ref: t }) })
|
|
2339
2350
|
}
|
|
2340
2351
|
);
|
|
2341
|
-
}), [
|
|
2352
|
+
}), [mu, ct] = it(te), Br = B.forwardRef(
|
|
2342
2353
|
(e, t) => {
|
|
2343
|
-
const { __scopeAccordion: n, disabled: r, dir: a, orientation: s = "vertical", ...c } = e, u = B.useRef(null), f = L(u, t), p =
|
|
2344
|
-
if (!
|
|
2354
|
+
const { __scopeAccordion: n, disabled: r, dir: a, orientation: s = "vertical", ...c } = e, u = B.useRef(null), f = L(u, t), p = uu(n), d = ge(a) === "ltr", m = C(e.onKeyDown, (g) => {
|
|
2355
|
+
if (!cu.includes(g.key)) return;
|
|
2345
2356
|
const v = g.target, h = p().filter((k) => !k.ref.current?.disabled), w = h.findIndex((k) => k.ref.current === v), R = h.length;
|
|
2346
2357
|
if (w === -1) return;
|
|
2347
2358
|
g.preventDefault();
|
|
2348
|
-
let
|
|
2349
|
-
const _ = 0, N = R - 1,
|
|
2350
|
-
|
|
2359
|
+
let M = w;
|
|
2360
|
+
const _ = 0, N = R - 1, A = () => {
|
|
2361
|
+
M = w + 1, M > N && (M = _);
|
|
2351
2362
|
}, S = () => {
|
|
2352
|
-
|
|
2363
|
+
M = w - 1, M < _ && (M = N);
|
|
2353
2364
|
};
|
|
2354
2365
|
switch (g.key) {
|
|
2355
2366
|
case "Home":
|
|
2356
|
-
|
|
2367
|
+
M = _;
|
|
2357
2368
|
break;
|
|
2358
2369
|
case "End":
|
|
2359
|
-
|
|
2370
|
+
M = N;
|
|
2360
2371
|
break;
|
|
2361
2372
|
case "ArrowRight":
|
|
2362
|
-
s === "horizontal" && (d ?
|
|
2373
|
+
s === "horizontal" && (d ? A() : S());
|
|
2363
2374
|
break;
|
|
2364
2375
|
case "ArrowDown":
|
|
2365
|
-
s === "vertical" &&
|
|
2376
|
+
s === "vertical" && A();
|
|
2366
2377
|
break;
|
|
2367
2378
|
case "ArrowLeft":
|
|
2368
|
-
s === "horizontal" && (d ? S() :
|
|
2379
|
+
s === "horizontal" && (d ? S() : A());
|
|
2369
2380
|
break;
|
|
2370
2381
|
case "ArrowUp":
|
|
2371
2382
|
s === "vertical" && S();
|
|
2372
2383
|
break;
|
|
2373
2384
|
}
|
|
2374
|
-
const D =
|
|
2385
|
+
const D = M % R;
|
|
2375
2386
|
h[D].ref.current?.focus();
|
|
2376
2387
|
});
|
|
2377
2388
|
return /* @__PURE__ */ o.jsx(
|
|
2378
|
-
|
|
2389
|
+
mu,
|
|
2379
2390
|
{
|
|
2380
2391
|
scope: n,
|
|
2381
2392
|
disabled: r,
|
|
2382
2393
|
direction: a,
|
|
2383
2394
|
orientation: s,
|
|
2384
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2395
|
+
children: /* @__PURE__ */ o.jsx(an.Slot, { scope: n, children: /* @__PURE__ */ o.jsx(
|
|
2385
2396
|
E.div,
|
|
2386
2397
|
{
|
|
2387
2398
|
...c,
|
|
@@ -2393,21 +2404,21 @@ var [zr, su] = st(te), [Vr, iu] = st(
|
|
|
2393
2404
|
}
|
|
2394
2405
|
);
|
|
2395
2406
|
}
|
|
2396
|
-
), Ue = "AccordionItem", [
|
|
2407
|
+
), Ue = "AccordionItem", [gu, cn] = it(Ue), Hr = B.forwardRef(
|
|
2397
2408
|
(e, t) => {
|
|
2398
|
-
const { __scopeAccordion: n, value: r, ...a } = e, s =
|
|
2409
|
+
const { __scopeAccordion: n, value: r, ...a } = e, s = ct(Ue, n), c = du(Ue, n), u = sn(n), f = G(), p = r && c.value.includes(r) || !1, l = s.disabled || e.disabled;
|
|
2399
2410
|
return /* @__PURE__ */ o.jsx(
|
|
2400
|
-
|
|
2411
|
+
gu,
|
|
2401
2412
|
{
|
|
2402
2413
|
scope: n,
|
|
2403
2414
|
open: p,
|
|
2404
2415
|
disabled: l,
|
|
2405
2416
|
triggerId: f,
|
|
2406
2417
|
children: /* @__PURE__ */ o.jsx(
|
|
2407
|
-
|
|
2418
|
+
au,
|
|
2408
2419
|
{
|
|
2409
2420
|
"data-orientation": s.orientation,
|
|
2410
|
-
"data-state":
|
|
2421
|
+
"data-state": Jr(p),
|
|
2411
2422
|
...u,
|
|
2412
2423
|
...a,
|
|
2413
2424
|
ref: t,
|
|
@@ -2422,15 +2433,15 @@ var [zr, su] = st(te), [Vr, iu] = st(
|
|
|
2422
2433
|
);
|
|
2423
2434
|
}
|
|
2424
2435
|
);
|
|
2425
|
-
|
|
2426
|
-
var
|
|
2436
|
+
Hr.displayName = Ue;
|
|
2437
|
+
var qr = "AccordionHeader", Wr = B.forwardRef(
|
|
2427
2438
|
(e, t) => {
|
|
2428
|
-
const { __scopeAccordion: n, ...r } = e, a =
|
|
2439
|
+
const { __scopeAccordion: n, ...r } = e, a = ct(te, n), s = cn(qr, n);
|
|
2429
2440
|
return /* @__PURE__ */ o.jsx(
|
|
2430
2441
|
E.h3,
|
|
2431
2442
|
{
|
|
2432
2443
|
"data-orientation": a.orientation,
|
|
2433
|
-
"data-state":
|
|
2444
|
+
"data-state": Jr(s.open),
|
|
2434
2445
|
"data-disabled": s.disabled ? "" : void 0,
|
|
2435
2446
|
...r,
|
|
2436
2447
|
ref: t
|
|
@@ -2438,12 +2449,12 @@ var Hr = "AccordionHeader", Wr = B.forwardRef(
|
|
|
2438
2449
|
);
|
|
2439
2450
|
}
|
|
2440
2451
|
);
|
|
2441
|
-
Wr.displayName =
|
|
2442
|
-
var
|
|
2452
|
+
Wr.displayName = qr;
|
|
2453
|
+
var St = "AccordionTrigger", Yr = B.forwardRef(
|
|
2443
2454
|
(e, t) => {
|
|
2444
|
-
const { __scopeAccordion: n, ...r } = e, a =
|
|
2445
|
-
return /* @__PURE__ */ o.jsx(
|
|
2446
|
-
|
|
2455
|
+
const { __scopeAccordion: n, ...r } = e, a = ct(te, n), s = cn(St, n), c = fu(St, n), u = sn(n);
|
|
2456
|
+
return /* @__PURE__ */ o.jsx(an.ItemSlot, { scope: n, children: /* @__PURE__ */ o.jsx(
|
|
2457
|
+
su,
|
|
2447
2458
|
{
|
|
2448
2459
|
"aria-disabled": s.open && !c.collapsible || void 0,
|
|
2449
2460
|
"data-orientation": a.orientation,
|
|
@@ -2455,12 +2466,12 @@ var yt = "AccordionTrigger", qr = B.forwardRef(
|
|
|
2455
2466
|
) });
|
|
2456
2467
|
}
|
|
2457
2468
|
);
|
|
2458
|
-
|
|
2459
|
-
var
|
|
2469
|
+
Yr.displayName = St;
|
|
2470
|
+
var Xr = "AccordionContent", Zr = B.forwardRef(
|
|
2460
2471
|
(e, t) => {
|
|
2461
|
-
const { __scopeAccordion: n, ...r } = e, a =
|
|
2472
|
+
const { __scopeAccordion: n, ...r } = e, a = ct(te, n), s = cn(Xr, n), c = sn(n);
|
|
2462
2473
|
return /* @__PURE__ */ o.jsx(
|
|
2463
|
-
|
|
2474
|
+
iu,
|
|
2464
2475
|
{
|
|
2465
2476
|
role: "region",
|
|
2466
2477
|
"aria-labelledby": s.triggerId,
|
|
@@ -2477,20 +2488,20 @@ var Yr = "AccordionContent", Xr = B.forwardRef(
|
|
|
2477
2488
|
);
|
|
2478
2489
|
}
|
|
2479
2490
|
);
|
|
2480
|
-
|
|
2481
|
-
function
|
|
2491
|
+
Zr.displayName = Xr;
|
|
2492
|
+
function Jr(e) {
|
|
2482
2493
|
return e ? "open" : "closed";
|
|
2483
2494
|
}
|
|
2484
|
-
var
|
|
2485
|
-
function
|
|
2486
|
-
return /* @__PURE__ */ o.jsx(
|
|
2495
|
+
var xu = zr, hu = Hr, bu = Wr, wu = Yr, Cu = Zr;
|
|
2496
|
+
function Nf({ ...e }) {
|
|
2497
|
+
return /* @__PURE__ */ o.jsx(xu, { "data-slot": "accordion", ...e });
|
|
2487
2498
|
}
|
|
2488
|
-
function
|
|
2489
|
-
return /* @__PURE__ */ o.jsx(
|
|
2499
|
+
function Af({ className: e, ...t }) {
|
|
2500
|
+
return /* @__PURE__ */ o.jsx(hu, { "data-slot": "accordion-item", className: b("border-b last:border-b-0", e), ...t });
|
|
2490
2501
|
}
|
|
2491
|
-
function
|
|
2492
|
-
return /* @__PURE__ */ o.jsx(
|
|
2493
|
-
|
|
2502
|
+
function If({ className: e, children: t, ...n }) {
|
|
2503
|
+
return /* @__PURE__ */ o.jsx(bu, { className: "flex", children: /* @__PURE__ */ o.jsxs(
|
|
2504
|
+
wu,
|
|
2494
2505
|
{
|
|
2495
2506
|
"data-slot": "accordion-trigger",
|
|
2496
2507
|
className: b(
|
|
@@ -2505,9 +2516,9 @@ function yf({ className: e, children: t, ...n }) {
|
|
|
2505
2516
|
}
|
|
2506
2517
|
) });
|
|
2507
2518
|
}
|
|
2508
|
-
function
|
|
2519
|
+
function jf({ className: e, children: t, ...n }) {
|
|
2509
2520
|
return /* @__PURE__ */ o.jsx(
|
|
2510
|
-
|
|
2521
|
+
Cu,
|
|
2511
2522
|
{
|
|
2512
2523
|
"data-slot": "accordion-content",
|
|
2513
2524
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
@@ -2516,10 +2527,10 @@ function Sf({ className: e, children: t, ...n }) {
|
|
|
2516
2527
|
}
|
|
2517
2528
|
);
|
|
2518
2529
|
}
|
|
2519
|
-
var be = "NavigationMenu", [
|
|
2530
|
+
var be = "NavigationMenu", [un, Qr, Ru] = Me(be), [Et, _u, yu] = Me(be), [ln, Pf] = q(
|
|
2520
2531
|
be,
|
|
2521
|
-
[
|
|
2522
|
-
), [
|
|
2532
|
+
[Ru, yu]
|
|
2533
|
+
), [Mu, Q] = ln(be), [Su, Eu] = ln(be), ea = i.forwardRef(
|
|
2523
2534
|
(e, t) => {
|
|
2524
2535
|
const {
|
|
2525
2536
|
__scopeNavigationMenu: n,
|
|
@@ -2531,7 +2542,7 @@ var be = "NavigationMenu", [cn, Jr, xu] = ye(be), [St, hu, bu] = ye(be), [un, Ef
|
|
|
2531
2542
|
orientation: f = "horizontal",
|
|
2532
2543
|
dir: p,
|
|
2533
2544
|
...l
|
|
2534
|
-
} = e, [d, m] = i.useState(null), g = L(t, ($) => m($)), v = ge(p), h = i.useRef(0), w = i.useRef(0), R = i.useRef(0), [
|
|
2545
|
+
} = e, [d, m] = i.useState(null), g = L(t, ($) => m($)), v = ge(p), h = i.useRef(0), w = i.useRef(0), R = i.useRef(0), [M, _] = i.useState(!0), [N, A] = W({
|
|
2535
2546
|
prop: r,
|
|
2536
2547
|
onChange: ($) => {
|
|
2537
2548
|
const F = $ !== "", Y = u > 0;
|
|
@@ -2543,24 +2554,24 @@ var be = "NavigationMenu", [cn, Jr, xu] = ye(be), [St, hu, bu] = ye(be), [un, Ef
|
|
|
2543
2554
|
defaultProp: s ?? "",
|
|
2544
2555
|
caller: be
|
|
2545
2556
|
}), S = i.useCallback(() => {
|
|
2546
|
-
window.clearTimeout(w.current), w.current = window.setTimeout(() =>
|
|
2547
|
-
}, [
|
|
2557
|
+
window.clearTimeout(w.current), w.current = window.setTimeout(() => A(""), 150);
|
|
2558
|
+
}, [A]), D = i.useCallback(
|
|
2548
2559
|
($) => {
|
|
2549
|
-
window.clearTimeout(w.current),
|
|
2560
|
+
window.clearTimeout(w.current), A($);
|
|
2550
2561
|
},
|
|
2551
|
-
[
|
|
2562
|
+
[A]
|
|
2552
2563
|
), k = i.useCallback(
|
|
2553
2564
|
($) => {
|
|
2554
2565
|
N === $ ? window.clearTimeout(w.current) : h.current = window.setTimeout(() => {
|
|
2555
|
-
window.clearTimeout(w.current),
|
|
2566
|
+
window.clearTimeout(w.current), A($);
|
|
2556
2567
|
}, c);
|
|
2557
2568
|
},
|
|
2558
|
-
[N,
|
|
2569
|
+
[N, A, c]
|
|
2559
2570
|
);
|
|
2560
2571
|
return i.useEffect(() => () => {
|
|
2561
2572
|
window.clearTimeout(h.current), window.clearTimeout(w.current), window.clearTimeout(R.current);
|
|
2562
2573
|
}, []), /* @__PURE__ */ o.jsx(
|
|
2563
|
-
|
|
2574
|
+
ta,
|
|
2564
2575
|
{
|
|
2565
2576
|
scope: n,
|
|
2566
2577
|
isRootMenu: !0,
|
|
@@ -2569,7 +2580,7 @@ var be = "NavigationMenu", [cn, Jr, xu] = ye(be), [St, hu, bu] = ye(be), [un, Ef
|
|
|
2569
2580
|
orientation: f,
|
|
2570
2581
|
rootNavigationMenu: d,
|
|
2571
2582
|
onTriggerEnter: ($) => {
|
|
2572
|
-
window.clearTimeout(h.current),
|
|
2583
|
+
window.clearTimeout(h.current), M ? k($) : D($);
|
|
2573
2584
|
},
|
|
2574
2585
|
onTriggerLeave: () => {
|
|
2575
2586
|
window.clearTimeout(h.current), S();
|
|
@@ -2577,9 +2588,9 @@ var be = "NavigationMenu", [cn, Jr, xu] = ye(be), [St, hu, bu] = ye(be), [un, Ef
|
|
|
2577
2588
|
onContentEnter: () => window.clearTimeout(w.current),
|
|
2578
2589
|
onContentLeave: S,
|
|
2579
2590
|
onItemSelect: ($) => {
|
|
2580
|
-
|
|
2591
|
+
A((F) => F === $ ? "" : $);
|
|
2581
2592
|
},
|
|
2582
|
-
onItemDismiss: () =>
|
|
2593
|
+
onItemDismiss: () => A(""),
|
|
2583
2594
|
children: /* @__PURE__ */ o.jsx(
|
|
2584
2595
|
E.nav,
|
|
2585
2596
|
{
|
|
@@ -2594,8 +2605,8 @@ var be = "NavigationMenu", [cn, Jr, xu] = ye(be), [St, hu, bu] = ye(be), [un, Ef
|
|
|
2594
2605
|
);
|
|
2595
2606
|
}
|
|
2596
2607
|
);
|
|
2597
|
-
|
|
2598
|
-
var
|
|
2608
|
+
ea.displayName = be;
|
|
2609
|
+
var Nt = "NavigationMenuSub", Nu = i.forwardRef(
|
|
2599
2610
|
(e, t) => {
|
|
2600
2611
|
const {
|
|
2601
2612
|
__scopeNavigationMenu: n,
|
|
@@ -2604,14 +2615,14 @@ var Et = "NavigationMenuSub", _u = i.forwardRef(
|
|
|
2604
2615
|
defaultValue: s,
|
|
2605
2616
|
orientation: c = "horizontal",
|
|
2606
2617
|
...u
|
|
2607
|
-
} = e, f = Q(
|
|
2618
|
+
} = e, f = Q(Nt, n), [p, l] = W({
|
|
2608
2619
|
prop: r,
|
|
2609
2620
|
onChange: a,
|
|
2610
2621
|
defaultProp: s ?? "",
|
|
2611
|
-
caller:
|
|
2622
|
+
caller: Nt
|
|
2612
2623
|
});
|
|
2613
2624
|
return /* @__PURE__ */ o.jsx(
|
|
2614
|
-
|
|
2625
|
+
ta,
|
|
2615
2626
|
{
|
|
2616
2627
|
scope: n,
|
|
2617
2628
|
isRootMenu: !1,
|
|
@@ -2627,8 +2638,8 @@ var Et = "NavigationMenuSub", _u = i.forwardRef(
|
|
|
2627
2638
|
);
|
|
2628
2639
|
}
|
|
2629
2640
|
);
|
|
2630
|
-
|
|
2631
|
-
var
|
|
2641
|
+
Nu.displayName = Nt;
|
|
2642
|
+
var ta = (e) => {
|
|
2632
2643
|
const {
|
|
2633
2644
|
scope: t,
|
|
2634
2645
|
isRootMenu: n,
|
|
@@ -2643,21 +2654,21 @@ var ea = (e) => {
|
|
|
2643
2654
|
onTriggerLeave: d,
|
|
2644
2655
|
onContentEnter: m,
|
|
2645
2656
|
onContentLeave: g
|
|
2646
|
-
} = e, [v, h] = i.useState(null), [w, R] = i.useState(/* @__PURE__ */ new Map()), [
|
|
2657
|
+
} = e, [v, h] = i.useState(null), [w, R] = i.useState(/* @__PURE__ */ new Map()), [M, _] = i.useState(null);
|
|
2647
2658
|
return /* @__PURE__ */ o.jsx(
|
|
2648
|
-
|
|
2659
|
+
Mu,
|
|
2649
2660
|
{
|
|
2650
2661
|
scope: t,
|
|
2651
2662
|
isRootMenu: n,
|
|
2652
2663
|
rootNavigationMenu: r,
|
|
2653
2664
|
value: u,
|
|
2654
|
-
previousValue:
|
|
2665
|
+
previousValue: Ln(u),
|
|
2655
2666
|
baseId: G(),
|
|
2656
2667
|
dir: a,
|
|
2657
2668
|
orientation: s,
|
|
2658
2669
|
viewport: v,
|
|
2659
2670
|
onViewportChange: h,
|
|
2660
|
-
indicatorTrack:
|
|
2671
|
+
indicatorTrack: M,
|
|
2661
2672
|
onIndicatorTrackChange: _,
|
|
2662
2673
|
onTriggerEnter: Z(l),
|
|
2663
2674
|
onTriggerLeave: Z(d),
|
|
@@ -2665,39 +2676,39 @@ var ea = (e) => {
|
|
|
2665
2676
|
onContentLeave: Z(g),
|
|
2666
2677
|
onItemSelect: Z(f),
|
|
2667
2678
|
onItemDismiss: Z(p),
|
|
2668
|
-
onViewportContentChange: i.useCallback((N,
|
|
2669
|
-
R((S) => (S.set(N,
|
|
2679
|
+
onViewportContentChange: i.useCallback((N, A) => {
|
|
2680
|
+
R((S) => (S.set(N, A), new Map(S)));
|
|
2670
2681
|
}, []),
|
|
2671
2682
|
onViewportContentRemove: i.useCallback((N) => {
|
|
2672
|
-
R((
|
|
2683
|
+
R((A) => A.has(N) ? (A.delete(N), new Map(A)) : A);
|
|
2673
2684
|
}, []),
|
|
2674
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2685
|
+
children: /* @__PURE__ */ o.jsx(un.Provider, { scope: t, children: /* @__PURE__ */ o.jsx(Su, { scope: t, items: w, children: c }) })
|
|
2675
2686
|
}
|
|
2676
2687
|
);
|
|
2677
|
-
},
|
|
2688
|
+
}, na = "NavigationMenuList", oa = i.forwardRef(
|
|
2678
2689
|
(e, t) => {
|
|
2679
|
-
const { __scopeNavigationMenu: n, ...r } = e, a = Q(
|
|
2680
|
-
return /* @__PURE__ */ o.jsx(E.div, { style: { position: "relative" }, ref: a.onIndicatorTrackChange, children: /* @__PURE__ */ o.jsx(
|
|
2690
|
+
const { __scopeNavigationMenu: n, ...r } = e, a = Q(na, n), s = /* @__PURE__ */ o.jsx(E.ul, { "data-orientation": a.orientation, ...r, ref: t });
|
|
2691
|
+
return /* @__PURE__ */ o.jsx(E.div, { style: { position: "relative" }, ref: a.onIndicatorTrackChange, children: /* @__PURE__ */ o.jsx(un.Slot, { scope: n, children: a.isRootMenu ? /* @__PURE__ */ o.jsx(pa, { asChild: !0, children: s }) : s }) });
|
|
2681
2692
|
}
|
|
2682
2693
|
);
|
|
2683
|
-
|
|
2684
|
-
var
|
|
2694
|
+
oa.displayName = na;
|
|
2695
|
+
var ra = "NavigationMenuItem", [Au, aa] = ln(ra), sa = i.forwardRef(
|
|
2685
2696
|
(e, t) => {
|
|
2686
2697
|
const { __scopeNavigationMenu: n, value: r, ...a } = e, s = G(), c = r || s || "LEGACY_REACT_AUTO_VALUE", u = i.useRef(null), f = i.useRef(null), p = i.useRef(null), l = i.useRef(() => {
|
|
2687
2698
|
}), d = i.useRef(!1), m = i.useCallback((v = "start") => {
|
|
2688
2699
|
if (u.current) {
|
|
2689
2700
|
l.current();
|
|
2690
2701
|
const h = It(u.current);
|
|
2691
|
-
h.length &&
|
|
2702
|
+
h.length && pn(v === "start" ? h : h.reverse());
|
|
2692
2703
|
}
|
|
2693
2704
|
}, []), g = i.useCallback(() => {
|
|
2694
2705
|
if (u.current) {
|
|
2695
2706
|
const v = It(u.current);
|
|
2696
|
-
v.length && (l.current =
|
|
2707
|
+
v.length && (l.current = ku(v));
|
|
2697
2708
|
}
|
|
2698
2709
|
}, []);
|
|
2699
2710
|
return /* @__PURE__ */ o.jsx(
|
|
2700
|
-
|
|
2711
|
+
Au,
|
|
2701
2712
|
{
|
|
2702
2713
|
scope: n,
|
|
2703
2714
|
value: c,
|
|
@@ -2714,17 +2725,17 @@ var oa = "NavigationMenuItem", [Mu, ra] = un(oa), aa = i.forwardRef(
|
|
|
2714
2725
|
);
|
|
2715
2726
|
}
|
|
2716
2727
|
);
|
|
2717
|
-
|
|
2718
|
-
var
|
|
2719
|
-
const { __scopeNavigationMenu: n, disabled: r, ...a } = e, s = Q(
|
|
2728
|
+
sa.displayName = ra;
|
|
2729
|
+
var At = "NavigationMenuTrigger", ia = i.forwardRef((e, t) => {
|
|
2730
|
+
const { __scopeNavigationMenu: n, disabled: r, ...a } = e, s = Q(At, e.__scopeNavigationMenu), c = aa(At, e.__scopeNavigationMenu), u = i.useRef(null), f = L(u, c.triggerRef, t), p = ma(s.baseId, c.value), l = ga(s.baseId, c.value), d = i.useRef(!1), m = i.useRef(!1), g = c.value === s.value;
|
|
2720
2731
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2721
|
-
/* @__PURE__ */ o.jsx(
|
|
2732
|
+
/* @__PURE__ */ o.jsx(un.ItemSlot, { scope: n, value: c.value, children: /* @__PURE__ */ o.jsx(va, { asChild: !0, children: /* @__PURE__ */ o.jsx(
|
|
2722
2733
|
E.button,
|
|
2723
2734
|
{
|
|
2724
2735
|
id: p,
|
|
2725
2736
|
disabled: r,
|
|
2726
2737
|
"data-disabled": r ? "" : void 0,
|
|
2727
|
-
"data-state":
|
|
2738
|
+
"data-state": vn(g),
|
|
2728
2739
|
"aria-expanded": g,
|
|
2729
2740
|
"aria-controls": l,
|
|
2730
2741
|
...a,
|
|
@@ -2755,14 +2766,14 @@ var Nt = "NavigationMenuTrigger", sa = i.forwardRef((e, t) => {
|
|
|
2755
2766
|
) }) }),
|
|
2756
2767
|
g && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2757
2768
|
/* @__PURE__ */ o.jsx(
|
|
2758
|
-
|
|
2769
|
+
Ns,
|
|
2759
2770
|
{
|
|
2760
2771
|
"aria-hidden": !0,
|
|
2761
2772
|
tabIndex: 0,
|
|
2762
2773
|
ref: c.focusProxyRef,
|
|
2763
2774
|
onFocus: (v) => {
|
|
2764
|
-
const h = c.contentRef.current, w = v.relatedTarget, R = w === u.current,
|
|
2765
|
-
(R || !
|
|
2775
|
+
const h = c.contentRef.current, w = v.relatedTarget, R = w === u.current, M = h?.contains(w);
|
|
2776
|
+
(R || !M) && c.onFocusProxyEnter(R ? "start" : "end");
|
|
2766
2777
|
}
|
|
2767
2778
|
}
|
|
2768
2779
|
),
|
|
@@ -2770,11 +2781,11 @@ var Nt = "NavigationMenuTrigger", sa = i.forwardRef((e, t) => {
|
|
|
2770
2781
|
] })
|
|
2771
2782
|
] });
|
|
2772
2783
|
});
|
|
2773
|
-
|
|
2774
|
-
var
|
|
2784
|
+
ia.displayName = At;
|
|
2785
|
+
var Iu = "NavigationMenuLink", En = "navigationMenu.linkSelect", ca = i.forwardRef(
|
|
2775
2786
|
(e, t) => {
|
|
2776
2787
|
const { __scopeNavigationMenu: n, active: r, onSelect: a, ...s } = e;
|
|
2777
|
-
return /* @__PURE__ */ o.jsx(
|
|
2788
|
+
return /* @__PURE__ */ o.jsx(va, { asChild: !0, children: /* @__PURE__ */ o.jsx(
|
|
2778
2789
|
E.a,
|
|
2779
2790
|
{
|
|
2780
2791
|
"data-active": r ? "" : void 0,
|
|
@@ -2784,16 +2795,16 @@ var yu = "NavigationMenuLink", Sn = "navigationMenu.linkSelect", ia = i.forwardR
|
|
|
2784
2795
|
onClick: C(
|
|
2785
2796
|
e.onClick,
|
|
2786
2797
|
(c) => {
|
|
2787
|
-
const u = c.target, f = new CustomEvent(
|
|
2798
|
+
const u = c.target, f = new CustomEvent(En, {
|
|
2788
2799
|
bubbles: !0,
|
|
2789
2800
|
cancelable: !0
|
|
2790
2801
|
});
|
|
2791
|
-
if (u.addEventListener(
|
|
2802
|
+
if (u.addEventListener(En, (p) => a?.(p), { once: !0 }), wt(u, f), !f.defaultPrevented && !c.metaKey) {
|
|
2792
2803
|
const p = new CustomEvent(Ke, {
|
|
2793
2804
|
bubbles: !0,
|
|
2794
2805
|
cancelable: !0
|
|
2795
2806
|
});
|
|
2796
|
-
|
|
2807
|
+
wt(u, p);
|
|
2797
2808
|
}
|
|
2798
2809
|
},
|
|
2799
2810
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -2802,17 +2813,17 @@ var yu = "NavigationMenuLink", Sn = "navigationMenu.linkSelect", ia = i.forwardR
|
|
|
2802
2813
|
) });
|
|
2803
2814
|
}
|
|
2804
2815
|
);
|
|
2805
|
-
|
|
2806
|
-
var
|
|
2807
|
-
const { forceMount: n, ...r } = e, a = Q(
|
|
2808
|
-
return a.indicatorTrack ?
|
|
2809
|
-
/* @__PURE__ */ o.jsx(H, { present: n || s, children: /* @__PURE__ */ o.jsx(
|
|
2816
|
+
ca.displayName = Iu;
|
|
2817
|
+
var dn = "NavigationMenuIndicator", ua = i.forwardRef((e, t) => {
|
|
2818
|
+
const { forceMount: n, ...r } = e, a = Q(dn, e.__scopeNavigationMenu), s = !!a.value;
|
|
2819
|
+
return a.indicatorTrack ? js.createPortal(
|
|
2820
|
+
/* @__PURE__ */ o.jsx(H, { present: n || s, children: /* @__PURE__ */ o.jsx(ju, { ...r, ref: t }) }),
|
|
2810
2821
|
a.indicatorTrack
|
|
2811
2822
|
) : null;
|
|
2812
2823
|
});
|
|
2813
|
-
|
|
2814
|
-
var
|
|
2815
|
-
const { __scopeNavigationMenu: n, ...r } = e, a = Q(
|
|
2824
|
+
ua.displayName = dn;
|
|
2825
|
+
var ju = i.forwardRef((e, t) => {
|
|
2826
|
+
const { __scopeNavigationMenu: n, ...r } = e, a = Q(dn, n), s = Qr(n), [c, u] = i.useState(
|
|
2816
2827
|
null
|
|
2817
2828
|
), [f, p] = i.useState(null), l = a.orientation === "horizontal", d = !!a.value;
|
|
2818
2829
|
i.useEffect(() => {
|
|
@@ -2825,7 +2836,7 @@ var Su = i.forwardRef((e, t) => {
|
|
|
2825
2836
|
offset: l ? c.offsetLeft : c.offsetTop
|
|
2826
2837
|
});
|
|
2827
2838
|
};
|
|
2828
|
-
return
|
|
2839
|
+
return jt(c, m), jt(a.indicatorTrack, m), f ? /* @__PURE__ */ o.jsx(
|
|
2829
2840
|
E.div,
|
|
2830
2841
|
{
|
|
2831
2842
|
"aria-hidden": !0,
|
|
@@ -2848,8 +2859,8 @@ var Su = i.forwardRef((e, t) => {
|
|
|
2848
2859
|
}
|
|
2849
2860
|
}
|
|
2850
2861
|
) : null;
|
|
2851
|
-
}),
|
|
2852
|
-
const { forceMount: n, ...r } = e, a = Q(
|
|
2862
|
+
}), ye = "NavigationMenuContent", la = i.forwardRef((e, t) => {
|
|
2863
|
+
const { forceMount: n, ...r } = e, a = Q(ye, e.__scopeNavigationMenu), s = aa(ye, e.__scopeNavigationMenu), c = L(s.contentRef, t), u = s.value === a.value, f = {
|
|
2853
2864
|
value: s.value,
|
|
2854
2865
|
triggerRef: s.triggerRef,
|
|
2855
2866
|
focusProxyRef: s.focusProxyRef,
|
|
@@ -2858,10 +2869,10 @@ var Su = i.forwardRef((e, t) => {
|
|
|
2858
2869
|
onRootContentClose: s.onRootContentClose,
|
|
2859
2870
|
...r
|
|
2860
2871
|
};
|
|
2861
|
-
return a.viewport ? /* @__PURE__ */ o.jsx(
|
|
2862
|
-
|
|
2872
|
+
return a.viewport ? /* @__PURE__ */ o.jsx(Pu, { forceMount: n, ...f, ref: c }) : /* @__PURE__ */ o.jsx(H, { present: n || u, children: /* @__PURE__ */ o.jsx(
|
|
2873
|
+
da,
|
|
2863
2874
|
{
|
|
2864
|
-
"data-state":
|
|
2875
|
+
"data-state": vn(u),
|
|
2865
2876
|
...f,
|
|
2866
2877
|
ref: c,
|
|
2867
2878
|
onPointerEnter: C(e.onPointerEnter, a.onContentEnter),
|
|
@@ -2877,16 +2888,16 @@ var Su = i.forwardRef((e, t) => {
|
|
|
2877
2888
|
}
|
|
2878
2889
|
) });
|
|
2879
2890
|
});
|
|
2880
|
-
|
|
2881
|
-
var
|
|
2882
|
-
const n = Q(
|
|
2891
|
+
la.displayName = ye;
|
|
2892
|
+
var Pu = i.forwardRef((e, t) => {
|
|
2893
|
+
const n = Q(ye, e.__scopeNavigationMenu), { onViewportContentChange: r, onViewportContentRemove: a } = n;
|
|
2883
2894
|
return ve(() => {
|
|
2884
2895
|
r(e.value, {
|
|
2885
2896
|
ref: t,
|
|
2886
2897
|
...e
|
|
2887
2898
|
});
|
|
2888
2899
|
}, [e, t, r]), ve(() => () => a(e.value), [e.value, a]), null;
|
|
2889
|
-
}), Ke = "navigationMenu.rootContentDismiss",
|
|
2900
|
+
}), Ke = "navigationMenu.rootContentDismiss", da = i.forwardRef((e, t) => {
|
|
2890
2901
|
const {
|
|
2891
2902
|
__scopeNavigationMenu: n,
|
|
2892
2903
|
value: r,
|
|
@@ -2896,7 +2907,7 @@ var Eu = i.forwardRef((e, t) => {
|
|
|
2896
2907
|
onRootContentClose: u,
|
|
2897
2908
|
onContentFocusOutside: f,
|
|
2898
2909
|
...p
|
|
2899
|
-
} = e, l = Q(
|
|
2910
|
+
} = e, l = Q(ye, n), d = i.useRef(null), m = L(d, t), g = ma(l.baseId, r), v = ga(l.baseId, r), h = Qr(n), w = i.useRef(null), { onItemDismiss: R } = l;
|
|
2900
2911
|
i.useEffect(() => {
|
|
2901
2912
|
const _ = d.current;
|
|
2902
2913
|
if (l.isRootMenu && _) {
|
|
@@ -2906,26 +2917,26 @@ var Eu = i.forwardRef((e, t) => {
|
|
|
2906
2917
|
return _.addEventListener(Ke, N), () => _.removeEventListener(Ke, N);
|
|
2907
2918
|
}
|
|
2908
2919
|
}, [l.isRootMenu, e.value, a, R, u]);
|
|
2909
|
-
const
|
|
2920
|
+
const M = i.useMemo(() => {
|
|
2910
2921
|
const N = h().map((F) => F.value);
|
|
2911
2922
|
l.dir === "rtl" && N.reverse();
|
|
2912
|
-
const
|
|
2923
|
+
const A = N.indexOf(l.value), S = N.indexOf(l.previousValue), D = r === l.value, k = S === N.indexOf(r);
|
|
2913
2924
|
if (!D && !k) return w.current;
|
|
2914
2925
|
const $ = (() => {
|
|
2915
|
-
if (
|
|
2916
|
-
if (D && S !== -1) return
|
|
2917
|
-
if (k &&
|
|
2926
|
+
if (A !== S) {
|
|
2927
|
+
if (D && S !== -1) return A > S ? "from-end" : "from-start";
|
|
2928
|
+
if (k && A !== -1) return A > S ? "to-start" : "to-end";
|
|
2918
2929
|
}
|
|
2919
2930
|
return null;
|
|
2920
2931
|
})();
|
|
2921
2932
|
return w.current = $, $;
|
|
2922
2933
|
}, [l.previousValue, l.value, l.dir, h, r]);
|
|
2923
|
-
return /* @__PURE__ */ o.jsx(
|
|
2924
|
-
|
|
2934
|
+
return /* @__PURE__ */ o.jsx(pa, { asChild: !0, children: /* @__PURE__ */ o.jsx(
|
|
2935
|
+
We,
|
|
2925
2936
|
{
|
|
2926
2937
|
id: v,
|
|
2927
2938
|
"aria-labelledby": g,
|
|
2928
|
-
"data-motion":
|
|
2939
|
+
"data-motion": M,
|
|
2929
2940
|
"data-orientation": l.orientation,
|
|
2930
2941
|
...p,
|
|
2931
2942
|
ref: m,
|
|
@@ -2943,14 +2954,14 @@ var Eu = i.forwardRef((e, t) => {
|
|
|
2943
2954
|
l.rootNavigationMenu?.contains(N) && _.preventDefault();
|
|
2944
2955
|
}),
|
|
2945
2956
|
onPointerDownOutside: C(e.onPointerDownOutside, (_) => {
|
|
2946
|
-
const N = _.target,
|
|
2947
|
-
(
|
|
2957
|
+
const N = _.target, A = h().some((D) => D.ref.current?.contains(N)), S = l.isRootMenu && l.viewport?.contains(N);
|
|
2958
|
+
(A || S || !l.isRootMenu) && _.preventDefault();
|
|
2948
2959
|
}),
|
|
2949
2960
|
onKeyDown: C(e.onKeyDown, (_) => {
|
|
2950
2961
|
const N = _.altKey || _.ctrlKey || _.metaKey;
|
|
2951
2962
|
if (_.key === "Tab" && !N) {
|
|
2952
2963
|
const S = It(_.currentTarget), D = document.activeElement, k = S.findIndex((Y) => Y === D), F = _.shiftKey ? S.slice(0, k).reverse() : S.slice(k + 1, S.length);
|
|
2953
|
-
|
|
2964
|
+
pn(F) ? _.preventDefault() : s.current?.focus();
|
|
2954
2965
|
}
|
|
2955
2966
|
}),
|
|
2956
2967
|
onEscapeKeyDown: C(e.onEscapeKeyDown, (_) => {
|
|
@@ -2958,22 +2969,22 @@ var Eu = i.forwardRef((e, t) => {
|
|
|
2958
2969
|
})
|
|
2959
2970
|
}
|
|
2960
2971
|
) });
|
|
2961
|
-
}),
|
|
2962
|
-
const { forceMount: n, ...r } = e, s = !!Q(
|
|
2963
|
-
return /* @__PURE__ */ o.jsx(H, { present: n || s, children: /* @__PURE__ */ o.jsx(
|
|
2972
|
+
}), fn = "NavigationMenuViewport", fa = i.forwardRef((e, t) => {
|
|
2973
|
+
const { forceMount: n, ...r } = e, s = !!Q(fn, e.__scopeNavigationMenu).value;
|
|
2974
|
+
return /* @__PURE__ */ o.jsx(H, { present: n || s, children: /* @__PURE__ */ o.jsx(Tu, { ...r, ref: t }) });
|
|
2964
2975
|
});
|
|
2965
|
-
|
|
2966
|
-
var
|
|
2967
|
-
const { __scopeNavigationMenu: n, children: r, ...a } = e, s = Q(
|
|
2968
|
-
|
|
2976
|
+
fa.displayName = fn;
|
|
2977
|
+
var Tu = i.forwardRef((e, t) => {
|
|
2978
|
+
const { __scopeNavigationMenu: n, children: r, ...a } = e, s = Q(fn, n), c = L(t, s.onViewportChange), u = Eu(
|
|
2979
|
+
ye,
|
|
2969
2980
|
e.__scopeNavigationMenu
|
|
2970
2981
|
), [f, p] = i.useState(null), [l, d] = i.useState(null), m = f ? f?.width + "px" : void 0, g = f ? f?.height + "px" : void 0, v = !!s.value, h = v ? s.value : s.previousValue;
|
|
2971
|
-
return
|
|
2982
|
+
return jt(l, () => {
|
|
2972
2983
|
l && p({ width: l.offsetWidth, height: l.offsetHeight });
|
|
2973
2984
|
}), /* @__PURE__ */ o.jsx(
|
|
2974
2985
|
E.div,
|
|
2975
2986
|
{
|
|
2976
|
-
"data-state":
|
|
2987
|
+
"data-state": vn(v),
|
|
2977
2988
|
"data-orientation": s.orientation,
|
|
2978
2989
|
...a,
|
|
2979
2990
|
ref: c,
|
|
@@ -2986,41 +2997,41 @@ var Nu = i.forwardRef((e, t) => {
|
|
|
2986
2997
|
},
|
|
2987
2998
|
onPointerEnter: C(e.onPointerEnter, s.onContentEnter),
|
|
2988
2999
|
onPointerLeave: C(e.onPointerLeave, Be(s.onContentLeave)),
|
|
2989
|
-
children: Array.from(u.items).map(([R, { ref:
|
|
2990
|
-
const
|
|
2991
|
-
return /* @__PURE__ */ o.jsx(H, { present: _ ||
|
|
2992
|
-
|
|
3000
|
+
children: Array.from(u.items).map(([R, { ref: M, forceMount: _, ...N }]) => {
|
|
3001
|
+
const A = h === R;
|
|
3002
|
+
return /* @__PURE__ */ o.jsx(H, { present: _ || A, children: /* @__PURE__ */ o.jsx(
|
|
3003
|
+
da,
|
|
2993
3004
|
{
|
|
2994
3005
|
...N,
|
|
2995
|
-
ref: ce(
|
|
2996
|
-
|
|
3006
|
+
ref: ce(M, (S) => {
|
|
3007
|
+
A && S && d(S);
|
|
2997
3008
|
})
|
|
2998
3009
|
}
|
|
2999
3010
|
) }, R);
|
|
3000
3011
|
})
|
|
3001
3012
|
}
|
|
3002
3013
|
);
|
|
3003
|
-
}),
|
|
3014
|
+
}), Du = "FocusGroup", pa = i.forwardRef(
|
|
3004
3015
|
(e, t) => {
|
|
3005
|
-
const { __scopeNavigationMenu: n, ...r } = e, a = Q(
|
|
3006
|
-
return /* @__PURE__ */ o.jsx(
|
|
3016
|
+
const { __scopeNavigationMenu: n, ...r } = e, a = Q(Du, n);
|
|
3017
|
+
return /* @__PURE__ */ o.jsx(Et.Provider, { scope: n, children: /* @__PURE__ */ o.jsx(Et.Slot, { scope: n, children: /* @__PURE__ */ o.jsx(E.div, { dir: a.dir, ...r, ref: t }) }) });
|
|
3007
3018
|
}
|
|
3008
|
-
),
|
|
3019
|
+
), Nn = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], Ou = "FocusGroupItem", va = i.forwardRef(
|
|
3009
3020
|
(e, t) => {
|
|
3010
|
-
const { __scopeNavigationMenu: n, ...r } = e, a =
|
|
3011
|
-
return /* @__PURE__ */ o.jsx(
|
|
3021
|
+
const { __scopeNavigationMenu: n, ...r } = e, a = _u(n), s = Q(Ou, n);
|
|
3022
|
+
return /* @__PURE__ */ o.jsx(Et.ItemSlot, { scope: n, children: /* @__PURE__ */ o.jsx(
|
|
3012
3023
|
E.button,
|
|
3013
3024
|
{
|
|
3014
3025
|
...r,
|
|
3015
3026
|
ref: t,
|
|
3016
3027
|
onKeyDown: C(e.onKeyDown, (c) => {
|
|
3017
|
-
if (["Home", "End", ...
|
|
3028
|
+
if (["Home", "End", ...Nn].includes(c.key)) {
|
|
3018
3029
|
let f = a().map((d) => d.ref.current);
|
|
3019
|
-
if ([s.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(c.key) && f.reverse(),
|
|
3030
|
+
if ([s.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(c.key) && f.reverse(), Nn.includes(c.key)) {
|
|
3020
3031
|
const d = f.indexOf(c.currentTarget);
|
|
3021
3032
|
f = f.slice(d + 1);
|
|
3022
3033
|
}
|
|
3023
|
-
setTimeout(() =>
|
|
3034
|
+
setTimeout(() => pn(f)), c.preventDefault();
|
|
3024
3035
|
}
|
|
3025
3036
|
})
|
|
3026
3037
|
}
|
|
@@ -3037,11 +3048,11 @@ function It(e) {
|
|
|
3037
3048
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
3038
3049
|
return t;
|
|
3039
3050
|
}
|
|
3040
|
-
function
|
|
3051
|
+
function pn(e) {
|
|
3041
3052
|
const t = document.activeElement;
|
|
3042
3053
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
3043
3054
|
}
|
|
3044
|
-
function
|
|
3055
|
+
function ku(e) {
|
|
3045
3056
|
return e.forEach((t) => {
|
|
3046
3057
|
t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1");
|
|
3047
3058
|
}), () => {
|
|
@@ -3051,7 +3062,7 @@ function ju(e) {
|
|
|
3051
3062
|
});
|
|
3052
3063
|
};
|
|
3053
3064
|
}
|
|
3054
|
-
function
|
|
3065
|
+
function jt(e, t) {
|
|
3055
3066
|
const n = Z(t);
|
|
3056
3067
|
ve(() => {
|
|
3057
3068
|
let r = 0;
|
|
@@ -3065,27 +3076,27 @@ function At(e, t) {
|
|
|
3065
3076
|
}
|
|
3066
3077
|
}, [e, n]);
|
|
3067
3078
|
}
|
|
3068
|
-
function
|
|
3079
|
+
function vn(e) {
|
|
3069
3080
|
return e ? "open" : "closed";
|
|
3070
3081
|
}
|
|
3071
|
-
function
|
|
3082
|
+
function ma(e, t) {
|
|
3072
3083
|
return `${e}-trigger-${t}`;
|
|
3073
3084
|
}
|
|
3074
|
-
function
|
|
3085
|
+
function ga(e, t) {
|
|
3075
3086
|
return `${e}-content-${t}`;
|
|
3076
3087
|
}
|
|
3077
3088
|
function Be(e) {
|
|
3078
3089
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
3079
3090
|
}
|
|
3080
|
-
var
|
|
3081
|
-
function
|
|
3091
|
+
var $u = ea, Lu = oa, Fu = sa, Gu = ia, Ku = ca, zu = ua, Vu = la, Uu = fa;
|
|
3092
|
+
function Tf({
|
|
3082
3093
|
className: e,
|
|
3083
3094
|
children: t,
|
|
3084
3095
|
viewport: n = !0,
|
|
3085
3096
|
...r
|
|
3086
3097
|
}) {
|
|
3087
3098
|
return /* @__PURE__ */ o.jsxs(
|
|
3088
|
-
|
|
3099
|
+
$u,
|
|
3089
3100
|
{
|
|
3090
3101
|
"data-slot": "navigation-menu",
|
|
3091
3102
|
"data-viewport": n,
|
|
@@ -3093,14 +3104,14 @@ function Nf({
|
|
|
3093
3104
|
...r,
|
|
3094
3105
|
children: [
|
|
3095
3106
|
t,
|
|
3096
|
-
n && /* @__PURE__ */ o.jsx(
|
|
3107
|
+
n && /* @__PURE__ */ o.jsx(Hu, {})
|
|
3097
3108
|
]
|
|
3098
3109
|
}
|
|
3099
3110
|
);
|
|
3100
3111
|
}
|
|
3101
|
-
function
|
|
3112
|
+
function Df({ className: e, ...t }) {
|
|
3102
3113
|
return /* @__PURE__ */ o.jsx(
|
|
3103
|
-
|
|
3114
|
+
Lu,
|
|
3104
3115
|
{
|
|
3105
3116
|
"data-slot": "navigation-menu-list",
|
|
3106
3117
|
className: b("group flex flex-1 list-none items-center justify-center gap-1", e),
|
|
@@ -3108,18 +3119,18 @@ function If({ className: e, ...t }) {
|
|
|
3108
3119
|
}
|
|
3109
3120
|
);
|
|
3110
3121
|
}
|
|
3111
|
-
function
|
|
3112
|
-
return /* @__PURE__ */ o.jsx(
|
|
3122
|
+
function Of({ className: e, ...t }) {
|
|
3123
|
+
return /* @__PURE__ */ o.jsx(Fu, { "data-slot": "navigation-menu-item", className: b("relative", e), ...t });
|
|
3113
3124
|
}
|
|
3114
|
-
const
|
|
3125
|
+
const Bu = Kn(
|
|
3115
3126
|
"group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
3116
3127
|
);
|
|
3117
|
-
function
|
|
3128
|
+
function kf({ className: e, children: t, ...n }) {
|
|
3118
3129
|
return /* @__PURE__ */ o.jsxs(
|
|
3119
|
-
|
|
3130
|
+
Gu,
|
|
3120
3131
|
{
|
|
3121
3132
|
"data-slot": "navigation-menu-trigger",
|
|
3122
|
-
className: b(
|
|
3133
|
+
className: b(Bu(), "group", e),
|
|
3123
3134
|
...n,
|
|
3124
3135
|
children: [
|
|
3125
3136
|
t,
|
|
@@ -3135,9 +3146,9 @@ function jf({ className: e, children: t, ...n }) {
|
|
|
3135
3146
|
}
|
|
3136
3147
|
);
|
|
3137
3148
|
}
|
|
3138
|
-
function
|
|
3149
|
+
function $f({ className: e, ...t }) {
|
|
3139
3150
|
return /* @__PURE__ */ o.jsx(
|
|
3140
|
-
|
|
3151
|
+
Vu,
|
|
3141
3152
|
{
|
|
3142
3153
|
"data-slot": "navigation-menu-content",
|
|
3143
3154
|
className: b(
|
|
@@ -3149,9 +3160,9 @@ function Pf({ className: e, ...t }) {
|
|
|
3149
3160
|
}
|
|
3150
3161
|
);
|
|
3151
3162
|
}
|
|
3152
|
-
function
|
|
3163
|
+
function Hu({ className: e, ...t }) {
|
|
3153
3164
|
return /* @__PURE__ */ o.jsx("div", { className: b("absolute top-full left-0 isolate z-50 flex justify-center"), children: /* @__PURE__ */ o.jsx(
|
|
3154
|
-
|
|
3165
|
+
Uu,
|
|
3155
3166
|
{
|
|
3156
3167
|
"data-slot": "navigation-menu-viewport",
|
|
3157
3168
|
className: b(
|
|
@@ -3162,9 +3173,9 @@ function Ku({ className: e, ...t }) {
|
|
|
3162
3173
|
}
|
|
3163
3174
|
) });
|
|
3164
3175
|
}
|
|
3165
|
-
function
|
|
3176
|
+
function Lf({ className: e, ...t }) {
|
|
3166
3177
|
return /* @__PURE__ */ o.jsx(
|
|
3167
|
-
|
|
3178
|
+
Ku,
|
|
3168
3179
|
{
|
|
3169
3180
|
"data-slot": "navigation-menu-link",
|
|
3170
3181
|
className: b(
|
|
@@ -3175,9 +3186,9 @@ function Tf({ className: e, ...t }) {
|
|
|
3175
3186
|
}
|
|
3176
3187
|
);
|
|
3177
3188
|
}
|
|
3178
|
-
function
|
|
3189
|
+
function Ff({ className: e, ...t }) {
|
|
3179
3190
|
return /* @__PURE__ */ o.jsx(
|
|
3180
|
-
|
|
3191
|
+
zu,
|
|
3181
3192
|
{
|
|
3182
3193
|
"data-slot": "navigation-menu-indicator",
|
|
3183
3194
|
className: b(
|
|
@@ -3189,7 +3200,7 @@ function Df({ className: e, ...t }) {
|
|
|
3189
3200
|
}
|
|
3190
3201
|
);
|
|
3191
3202
|
}
|
|
3192
|
-
function
|
|
3203
|
+
function Gf({ className: e, ...t }) {
|
|
3193
3204
|
return /* @__PURE__ */ o.jsx(
|
|
3194
3205
|
"div",
|
|
3195
3206
|
{
|
|
@@ -3199,7 +3210,7 @@ function Of({ className: e, ...t }) {
|
|
|
3199
3210
|
}
|
|
3200
3211
|
);
|
|
3201
3212
|
}
|
|
3202
|
-
function
|
|
3213
|
+
function Kf({ className: e, ...t }) {
|
|
3203
3214
|
return /* @__PURE__ */ o.jsx(
|
|
3204
3215
|
"div",
|
|
3205
3216
|
{
|
|
@@ -3212,28 +3223,28 @@ function kf({ className: e, ...t }) {
|
|
|
3212
3223
|
}
|
|
3213
3224
|
);
|
|
3214
3225
|
}
|
|
3215
|
-
function
|
|
3226
|
+
function zf({ className: e, ...t }) {
|
|
3216
3227
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "card-title", className: b("leading-none font-semibold", e), ...t });
|
|
3217
3228
|
}
|
|
3218
|
-
function
|
|
3229
|
+
function Vf({ className: e, ...t }) {
|
|
3219
3230
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "card-description", className: b("text-muted-foreground text-sm", e), ...t });
|
|
3220
3231
|
}
|
|
3221
|
-
function
|
|
3232
|
+
function Uf({ className: e, ...t }) {
|
|
3222
3233
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "card-action", className: b("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e), ...t });
|
|
3223
3234
|
}
|
|
3224
|
-
function
|
|
3235
|
+
function Bf({ className: e, ...t }) {
|
|
3225
3236
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "card-content", className: b("px-6", e), ...t });
|
|
3226
3237
|
}
|
|
3227
|
-
function
|
|
3238
|
+
function Hf({ className: e, ...t }) {
|
|
3228
3239
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "card-footer", className: b("flex items-center px-6 [.border-t]:pt-6", e), ...t });
|
|
3229
3240
|
}
|
|
3230
|
-
function
|
|
3241
|
+
function qf({
|
|
3231
3242
|
className: e,
|
|
3232
3243
|
containerClassName: t,
|
|
3233
3244
|
...n
|
|
3234
3245
|
}) {
|
|
3235
3246
|
return /* @__PURE__ */ o.jsx(
|
|
3236
|
-
|
|
3247
|
+
ys,
|
|
3237
3248
|
{
|
|
3238
3249
|
"data-slot": "input-otp",
|
|
3239
3250
|
containerClassName: b("flex items-center gap-2 has-disabled:opacity-50", t),
|
|
@@ -3242,10 +3253,10 @@ function zf({
|
|
|
3242
3253
|
}
|
|
3243
3254
|
);
|
|
3244
3255
|
}
|
|
3245
|
-
function
|
|
3256
|
+
function Wf({ className: e, ...t }) {
|
|
3246
3257
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "input-otp-group", className: b("flex items-center", e), ...t });
|
|
3247
3258
|
}
|
|
3248
|
-
function
|
|
3259
|
+
function Yf({
|
|
3249
3260
|
index: e,
|
|
3250
3261
|
className: t,
|
|
3251
3262
|
...n
|
|
@@ -3268,10 +3279,10 @@ function Uf({
|
|
|
3268
3279
|
}
|
|
3269
3280
|
);
|
|
3270
3281
|
}
|
|
3271
|
-
function
|
|
3272
|
-
return /* @__PURE__ */ o.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ o.jsx(
|
|
3282
|
+
function Xf({ ...e }) {
|
|
3283
|
+
return /* @__PURE__ */ o.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ o.jsx(Zi, {}) });
|
|
3273
3284
|
}
|
|
3274
|
-
var
|
|
3285
|
+
var qu = "AspectRatio", xa = i.forwardRef(
|
|
3275
3286
|
(e, t) => {
|
|
3276
3287
|
const { ratio: n = 1 / 1, style: r, ...a } = e;
|
|
3277
3288
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -3305,12 +3316,12 @@ var zu = "AspectRatio", ga = i.forwardRef(
|
|
|
3305
3316
|
);
|
|
3306
3317
|
}
|
|
3307
3318
|
);
|
|
3308
|
-
|
|
3309
|
-
var
|
|
3310
|
-
function
|
|
3311
|
-
return /* @__PURE__ */ o.jsx(
|
|
3319
|
+
xa.displayName = qu;
|
|
3320
|
+
var Wu = xa;
|
|
3321
|
+
function Zf({ ...e }) {
|
|
3322
|
+
return /* @__PURE__ */ o.jsx(Wu, { "data-slot": "aspect-ratio", ...e });
|
|
3312
3323
|
}
|
|
3313
|
-
var
|
|
3324
|
+
var mn = "Radio", [Yu, ha] = q(mn), [Xu, Zu] = Yu(mn), ba = i.forwardRef(
|
|
3314
3325
|
(e, t) => {
|
|
3315
3326
|
const {
|
|
3316
3327
|
__scopeRadio: n,
|
|
@@ -3323,14 +3334,14 @@ var vn = "Radio", [Uu, xa] = W(vn), [Bu, Hu] = Uu(vn), ha = i.forwardRef(
|
|
|
3323
3334
|
form: p,
|
|
3324
3335
|
...l
|
|
3325
3336
|
} = e, [d, m] = i.useState(null), g = L(t, (w) => m(w)), v = i.useRef(!1), h = d ? p || !!d.closest("form") : !0;
|
|
3326
|
-
return /* @__PURE__ */ o.jsxs(
|
|
3337
|
+
return /* @__PURE__ */ o.jsxs(Xu, { scope: n, checked: a, disabled: c, children: [
|
|
3327
3338
|
/* @__PURE__ */ o.jsx(
|
|
3328
3339
|
E.button,
|
|
3329
3340
|
{
|
|
3330
3341
|
type: "button",
|
|
3331
3342
|
role: "radio",
|
|
3332
3343
|
"aria-checked": a,
|
|
3333
|
-
"data-state":
|
|
3344
|
+
"data-state": _a(a),
|
|
3334
3345
|
"data-disabled": c ? "" : void 0,
|
|
3335
3346
|
disabled: c,
|
|
3336
3347
|
value: u,
|
|
@@ -3342,7 +3353,7 @@ var vn = "Radio", [Uu, xa] = W(vn), [Bu, Hu] = Uu(vn), ha = i.forwardRef(
|
|
|
3342
3353
|
}
|
|
3343
3354
|
),
|
|
3344
3355
|
h && /* @__PURE__ */ o.jsx(
|
|
3345
|
-
|
|
3356
|
+
Ra,
|
|
3346
3357
|
{
|
|
3347
3358
|
control: d,
|
|
3348
3359
|
bubbles: !v.current,
|
|
@@ -3358,14 +3369,14 @@ var vn = "Radio", [Uu, xa] = W(vn), [Bu, Hu] = Uu(vn), ha = i.forwardRef(
|
|
|
3358
3369
|
] });
|
|
3359
3370
|
}
|
|
3360
3371
|
);
|
|
3361
|
-
|
|
3362
|
-
var
|
|
3372
|
+
ba.displayName = mn;
|
|
3373
|
+
var wa = "RadioIndicator", Ca = i.forwardRef(
|
|
3363
3374
|
(e, t) => {
|
|
3364
|
-
const { __scopeRadio: n, forceMount: r, ...a } = e, s =
|
|
3375
|
+
const { __scopeRadio: n, forceMount: r, ...a } = e, s = Zu(wa, n);
|
|
3365
3376
|
return /* @__PURE__ */ o.jsx(H, { present: r || s.checked, children: /* @__PURE__ */ o.jsx(
|
|
3366
3377
|
E.span,
|
|
3367
3378
|
{
|
|
3368
|
-
"data-state":
|
|
3379
|
+
"data-state": _a(s.checked),
|
|
3369
3380
|
"data-disabled": s.disabled ? "" : void 0,
|
|
3370
3381
|
...a,
|
|
3371
3382
|
ref: t
|
|
@@ -3373,8 +3384,8 @@ var ba = "RadioIndicator", wa = i.forwardRef(
|
|
|
3373
3384
|
) });
|
|
3374
3385
|
}
|
|
3375
3386
|
);
|
|
3376
|
-
|
|
3377
|
-
var
|
|
3387
|
+
Ca.displayName = wa;
|
|
3388
|
+
var Ju = "RadioBubbleInput", Ra = i.forwardRef(
|
|
3378
3389
|
({
|
|
3379
3390
|
__scopeRadio: e,
|
|
3380
3391
|
control: t,
|
|
@@ -3382,7 +3393,7 @@ var Wu = "RadioBubbleInput", Ca = i.forwardRef(
|
|
|
3382
3393
|
bubbles: r = !0,
|
|
3383
3394
|
...a
|
|
3384
3395
|
}, s) => {
|
|
3385
|
-
const c = i.useRef(null), u = L(c, s), f =
|
|
3396
|
+
const c = i.useRef(null), u = L(c, s), f = Ln(n), p = As(t);
|
|
3386
3397
|
return i.useEffect(() => {
|
|
3387
3398
|
const l = c.current;
|
|
3388
3399
|
if (!l) return;
|
|
@@ -3415,14 +3426,14 @@ var Wu = "RadioBubbleInput", Ca = i.forwardRef(
|
|
|
3415
3426
|
);
|
|
3416
3427
|
}
|
|
3417
3428
|
);
|
|
3418
|
-
|
|
3419
|
-
function
|
|
3429
|
+
Ra.displayName = Ju;
|
|
3430
|
+
function _a(e) {
|
|
3420
3431
|
return e ? "checked" : "unchecked";
|
|
3421
3432
|
}
|
|
3422
|
-
var
|
|
3433
|
+
var Qu = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ut = "RadioGroup", [el, Jf] = q(ut, [
|
|
3423
3434
|
le,
|
|
3424
|
-
|
|
3425
|
-
]),
|
|
3435
|
+
ha
|
|
3436
|
+
]), ya = le(), Ma = ha(), [tl, nl] = el(ut), Sa = i.forwardRef(
|
|
3426
3437
|
(e, t) => {
|
|
3427
3438
|
const {
|
|
3428
3439
|
__scopeRadioGroup: n,
|
|
@@ -3436,14 +3447,14 @@ var qu = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ct = "RadioGroup",
|
|
|
3436
3447
|
loop: l = !0,
|
|
3437
3448
|
onValueChange: d,
|
|
3438
3449
|
...m
|
|
3439
|
-
} = e, g =
|
|
3450
|
+
} = e, g = ya(n), v = ge(p), [h, w] = W({
|
|
3440
3451
|
prop: s,
|
|
3441
3452
|
defaultProp: a ?? null,
|
|
3442
3453
|
onChange: d,
|
|
3443
|
-
caller:
|
|
3454
|
+
caller: ut
|
|
3444
3455
|
});
|
|
3445
3456
|
return /* @__PURE__ */ o.jsx(
|
|
3446
|
-
|
|
3457
|
+
tl,
|
|
3447
3458
|
{
|
|
3448
3459
|
scope: n,
|
|
3449
3460
|
name: r,
|
|
@@ -3452,7 +3463,7 @@ var qu = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ct = "RadioGroup",
|
|
|
3452
3463
|
value: h,
|
|
3453
3464
|
onValueChange: w,
|
|
3454
3465
|
children: /* @__PURE__ */ o.jsx(
|
|
3455
|
-
|
|
3466
|
+
Qe,
|
|
3456
3467
|
{
|
|
3457
3468
|
asChild: !0,
|
|
3458
3469
|
...g,
|
|
@@ -3477,26 +3488,26 @@ var qu = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ct = "RadioGroup",
|
|
|
3477
3488
|
);
|
|
3478
3489
|
}
|
|
3479
3490
|
);
|
|
3480
|
-
|
|
3481
|
-
var
|
|
3491
|
+
Sa.displayName = ut;
|
|
3492
|
+
var Ea = "RadioGroupItem", Na = i.forwardRef(
|
|
3482
3493
|
(e, t) => {
|
|
3483
|
-
const { __scopeRadioGroup: n, disabled: r, ...a } = e, s =
|
|
3494
|
+
const { __scopeRadioGroup: n, disabled: r, ...a } = e, s = nl(Ea, n), c = s.disabled || r, u = ya(n), f = Ma(n), p = i.useRef(null), l = L(t, p), d = s.value === a.value, m = i.useRef(!1);
|
|
3484
3495
|
return i.useEffect(() => {
|
|
3485
3496
|
const g = (h) => {
|
|
3486
|
-
|
|
3497
|
+
Qu.includes(h.key) && (m.current = !0);
|
|
3487
3498
|
}, v = () => m.current = !1;
|
|
3488
3499
|
return document.addEventListener("keydown", g), document.addEventListener("keyup", v), () => {
|
|
3489
3500
|
document.removeEventListener("keydown", g), document.removeEventListener("keyup", v);
|
|
3490
3501
|
};
|
|
3491
3502
|
}, []), /* @__PURE__ */ o.jsx(
|
|
3492
|
-
|
|
3503
|
+
et,
|
|
3493
3504
|
{
|
|
3494
3505
|
asChild: !0,
|
|
3495
3506
|
...u,
|
|
3496
3507
|
focusable: !c,
|
|
3497
3508
|
active: d,
|
|
3498
3509
|
children: /* @__PURE__ */ o.jsx(
|
|
3499
|
-
|
|
3510
|
+
ba,
|
|
3500
3511
|
{
|
|
3501
3512
|
disabled: c,
|
|
3502
3513
|
required: s.required,
|
|
@@ -3518,21 +3529,21 @@ var Sa = "RadioGroupItem", Ea = i.forwardRef(
|
|
|
3518
3529
|
);
|
|
3519
3530
|
}
|
|
3520
3531
|
);
|
|
3521
|
-
|
|
3522
|
-
var
|
|
3532
|
+
Na.displayName = Ea;
|
|
3533
|
+
var ol = "RadioGroupIndicator", Aa = i.forwardRef(
|
|
3523
3534
|
(e, t) => {
|
|
3524
3535
|
const { __scopeRadioGroup: n, ...r } = e, a = Ma(n);
|
|
3525
|
-
return /* @__PURE__ */ o.jsx(
|
|
3536
|
+
return /* @__PURE__ */ o.jsx(Ca, { ...a, ...r, ref: t });
|
|
3526
3537
|
}
|
|
3527
3538
|
);
|
|
3528
|
-
|
|
3529
|
-
var
|
|
3530
|
-
function
|
|
3531
|
-
return /* @__PURE__ */ o.jsx(
|
|
3539
|
+
Aa.displayName = ol;
|
|
3540
|
+
var rl = Sa, al = Na, sl = Aa;
|
|
3541
|
+
function Qf({ className: e, ...t }) {
|
|
3542
|
+
return /* @__PURE__ */ o.jsx(rl, { "data-slot": "radio-group", className: b("grid gap-3", e), ...t });
|
|
3532
3543
|
}
|
|
3533
|
-
function
|
|
3544
|
+
function ep({ className: e, ...t }) {
|
|
3534
3545
|
return /* @__PURE__ */ o.jsx(
|
|
3535
|
-
|
|
3546
|
+
al,
|
|
3536
3547
|
{
|
|
3537
3548
|
"data-slot": "radio-group-item",
|
|
3538
3549
|
className: b(
|
|
@@ -3540,23 +3551,23 @@ function Yf({ className: e, ...t }) {
|
|
|
3540
3551
|
e
|
|
3541
3552
|
),
|
|
3542
3553
|
...t,
|
|
3543
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3554
|
+
children: /* @__PURE__ */ o.jsx(sl, { "data-slot": "radio-group-indicator", className: "relative flex items-center justify-center", children: /* @__PURE__ */ o.jsx(Zt, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" }) })
|
|
3544
3555
|
}
|
|
3545
3556
|
);
|
|
3546
3557
|
}
|
|
3547
|
-
function
|
|
3548
|
-
return /* @__PURE__ */ o.jsx(
|
|
3558
|
+
function tp({ ...e }) {
|
|
3559
|
+
return /* @__PURE__ */ o.jsx(kt, { "data-slot": "sheet", ...e });
|
|
3549
3560
|
}
|
|
3550
|
-
function
|
|
3551
|
-
return /* @__PURE__ */ o.jsx(
|
|
3561
|
+
function np({ ...e }) {
|
|
3562
|
+
return /* @__PURE__ */ o.jsx(Tn, { "data-slot": "sheet-trigger", ...e });
|
|
3552
3563
|
}
|
|
3553
|
-
function
|
|
3564
|
+
function op({ ...e }) {
|
|
3554
3565
|
return /* @__PURE__ */ o.jsx(Ye, { "data-slot": "sheet-close", ...e });
|
|
3555
3566
|
}
|
|
3556
|
-
function
|
|
3557
|
-
return /* @__PURE__ */ o.jsx(
|
|
3567
|
+
function il({ ...e }) {
|
|
3568
|
+
return /* @__PURE__ */ o.jsx($t, { "data-slot": "sheet-portal", ...e });
|
|
3558
3569
|
}
|
|
3559
|
-
function
|
|
3570
|
+
function cl({ className: e, backdrop: t, ...n }) {
|
|
3560
3571
|
let r = "";
|
|
3561
3572
|
switch (t) {
|
|
3562
3573
|
case "transparent":
|
|
@@ -3570,7 +3581,7 @@ function ol({ className: e, backdrop: t, ...n }) {
|
|
|
3570
3581
|
break;
|
|
3571
3582
|
}
|
|
3572
3583
|
return /* @__PURE__ */ o.jsx(
|
|
3573
|
-
|
|
3584
|
+
Lt,
|
|
3574
3585
|
{
|
|
3575
3586
|
"data-slot": "sheet-overlay",
|
|
3576
3587
|
className: b(
|
|
@@ -3582,7 +3593,7 @@ function ol({ className: e, backdrop: t, ...n }) {
|
|
|
3582
3593
|
}
|
|
3583
3594
|
);
|
|
3584
3595
|
}
|
|
3585
|
-
function
|
|
3596
|
+
function rp({
|
|
3586
3597
|
className: e,
|
|
3587
3598
|
children: t,
|
|
3588
3599
|
side: n = "right",
|
|
@@ -3591,10 +3602,10 @@ function Qf({
|
|
|
3591
3602
|
disabled: s = !1,
|
|
3592
3603
|
...c
|
|
3593
3604
|
}) {
|
|
3594
|
-
return /* @__PURE__ */ o.jsxs(
|
|
3595
|
-
/* @__PURE__ */ o.jsx(
|
|
3605
|
+
return /* @__PURE__ */ o.jsxs(il, { children: [
|
|
3606
|
+
/* @__PURE__ */ o.jsx(cl, { backdrop: r }),
|
|
3596
3607
|
/* @__PURE__ */ o.jsxs(
|
|
3597
|
-
|
|
3608
|
+
Ft,
|
|
3598
3609
|
{
|
|
3599
3610
|
"data-slot": "sheet-content",
|
|
3600
3611
|
className: b(
|
|
@@ -3609,7 +3620,7 @@ function Qf({
|
|
|
3609
3620
|
children: [
|
|
3610
3621
|
t,
|
|
3611
3622
|
a && /* @__PURE__ */ o.jsx(Ye, { asChild: !0, className: "absolute top-3 right-4 focus:outline-hidden disabled:pointer-events-none", children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs(
|
|
3612
|
-
|
|
3623
|
+
Ct,
|
|
3613
3624
|
{
|
|
3614
3625
|
isIconOnly: !0,
|
|
3615
3626
|
variant: "light",
|
|
@@ -3631,22 +3642,22 @@ function Qf({
|
|
|
3631
3642
|
)
|
|
3632
3643
|
] });
|
|
3633
3644
|
}
|
|
3634
|
-
function
|
|
3645
|
+
function ap({ className: e, ...t }) {
|
|
3635
3646
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "sheet-header", className: b("flex flex-col gap-1.5 p-4", e), ...t });
|
|
3636
3647
|
}
|
|
3637
|
-
function
|
|
3648
|
+
function sp({ className: e, ...t }) {
|
|
3638
3649
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "sheet-footer", className: b("mt-auto flex flex-col gap-2 p-4", e), ...t });
|
|
3639
3650
|
}
|
|
3640
|
-
function
|
|
3641
|
-
return /* @__PURE__ */ o.jsx(
|
|
3651
|
+
function ip({ className: e, ...t }) {
|
|
3652
|
+
return /* @__PURE__ */ o.jsx(Dn, { "data-slot": "sheet-title", className: b("text-foreground font-semibold", e), ...t });
|
|
3642
3653
|
}
|
|
3643
|
-
function
|
|
3644
|
-
return /* @__PURE__ */ o.jsx(
|
|
3654
|
+
function cp({ className: e, ...t }) {
|
|
3655
|
+
return /* @__PURE__ */ o.jsx(On, { "data-slot": "sheet-description", className: b("text-muted-foreground text-sm", e), ...t });
|
|
3645
3656
|
}
|
|
3646
|
-
var Le = "Menubar", [
|
|
3647
|
-
|
|
3657
|
+
var Le = "Menubar", [Pt, ul, ll] = Me(Le), [Ia, up] = q(Le, [
|
|
3658
|
+
ll,
|
|
3648
3659
|
le
|
|
3649
|
-
]), V = zt(),
|
|
3660
|
+
]), V = zt(), ja = le(), [dl, gn] = Ia(Le), Pa = i.forwardRef(
|
|
3650
3661
|
(e, t) => {
|
|
3651
3662
|
const {
|
|
3652
3663
|
__scopeMenubar: n,
|
|
@@ -3656,14 +3667,14 @@ var Le = "Menubar", [jt, rl, al] = ye(Le), [Ia, rp] = W(Le, [
|
|
|
3656
3667
|
loop: c = !0,
|
|
3657
3668
|
dir: u,
|
|
3658
3669
|
...f
|
|
3659
|
-
} = e, p = ge(u), l =
|
|
3670
|
+
} = e, p = ge(u), l = ja(n), [d, m] = W({
|
|
3660
3671
|
prop: r,
|
|
3661
3672
|
onChange: a,
|
|
3662
3673
|
defaultProp: s ?? "",
|
|
3663
3674
|
caller: Le
|
|
3664
3675
|
}), [g, v] = i.useState(null);
|
|
3665
3676
|
return /* @__PURE__ */ o.jsx(
|
|
3666
|
-
|
|
3677
|
+
dl,
|
|
3667
3678
|
{
|
|
3668
3679
|
scope: n,
|
|
3669
3680
|
value: d,
|
|
@@ -3682,8 +3693,8 @@ var Le = "Menubar", [jt, rl, al] = ye(Le), [Ia, rp] = W(Le, [
|
|
|
3682
3693
|
),
|
|
3683
3694
|
dir: p,
|
|
3684
3695
|
loop: c,
|
|
3685
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3686
|
-
|
|
3696
|
+
children: /* @__PURE__ */ o.jsx(Pt.Provider, { scope: n, children: /* @__PURE__ */ o.jsx(Pt.Slot, { scope: n, children: /* @__PURE__ */ o.jsx(
|
|
3697
|
+
Qe,
|
|
3687
3698
|
{
|
|
3688
3699
|
asChild: !0,
|
|
3689
3700
|
...l,
|
|
@@ -3699,13 +3710,13 @@ var Le = "Menubar", [jt, rl, al] = ye(Le), [Ia, rp] = W(Le, [
|
|
|
3699
3710
|
);
|
|
3700
3711
|
}
|
|
3701
3712
|
);
|
|
3702
|
-
|
|
3703
|
-
var
|
|
3704
|
-
const { __scopeMenubar: t, value: n, ...r } = e, a = G(), s = n || a || "LEGACY_REACT_AUTO_VALUE", c =
|
|
3713
|
+
Pa.displayName = Le;
|
|
3714
|
+
var xn = "MenubarMenu", [fl, Ta] = Ia(xn), Da = (e) => {
|
|
3715
|
+
const { __scopeMenubar: t, value: n, ...r } = e, a = G(), s = n || a || "LEGACY_REACT_AUTO_VALUE", c = gn(xn, t), u = V(t), f = i.useRef(null), p = i.useRef(!1), l = c.value === s;
|
|
3705
3716
|
return i.useEffect(() => {
|
|
3706
3717
|
l || (p.current = !1);
|
|
3707
3718
|
}, [l]), /* @__PURE__ */ o.jsx(
|
|
3708
|
-
|
|
3719
|
+
fl,
|
|
3709
3720
|
{
|
|
3710
3721
|
scope: t,
|
|
3711
3722
|
value: s,
|
|
@@ -3729,12 +3740,12 @@ var gn = "MenubarMenu", [il, Pa] = Ia(gn), Ta = (e) => {
|
|
|
3729
3740
|
}
|
|
3730
3741
|
);
|
|
3731
3742
|
};
|
|
3732
|
-
|
|
3733
|
-
var
|
|
3743
|
+
Da.displayName = xn;
|
|
3744
|
+
var Tt = "MenubarTrigger", Oa = i.forwardRef(
|
|
3734
3745
|
(e, t) => {
|
|
3735
|
-
const { __scopeMenubar: n, disabled: r = !1, ...a } = e, s =
|
|
3736
|
-
return /* @__PURE__ */ o.jsx(
|
|
3737
|
-
|
|
3746
|
+
const { __scopeMenubar: n, disabled: r = !1, ...a } = e, s = ja(n), c = V(n), u = gn(Tt, n), f = Ta(Tt, n), p = i.useRef(null), l = L(t, p, f.triggerRef), [d, m] = i.useState(!1), g = u.value === f.value;
|
|
3747
|
+
return /* @__PURE__ */ o.jsx(Pt.ItemSlot, { scope: n, value: f.value, disabled: r, children: /* @__PURE__ */ o.jsx(
|
|
3748
|
+
et,
|
|
3738
3749
|
{
|
|
3739
3750
|
asChild: !0,
|
|
3740
3751
|
...s,
|
|
@@ -3772,15 +3783,15 @@ var Pt = "MenubarTrigger", Da = i.forwardRef(
|
|
|
3772
3783
|
) });
|
|
3773
3784
|
}
|
|
3774
3785
|
);
|
|
3775
|
-
|
|
3776
|
-
var
|
|
3786
|
+
Oa.displayName = Tt;
|
|
3787
|
+
var pl = "MenubarPortal", ka = (e) => {
|
|
3777
3788
|
const { __scopeMenubar: t, ...n } = e, r = V(t);
|
|
3778
3789
|
return /* @__PURE__ */ o.jsx(Ro, { ...r, ...n });
|
|
3779
3790
|
};
|
|
3780
|
-
|
|
3781
|
-
var
|
|
3791
|
+
ka.displayName = pl;
|
|
3792
|
+
var Dt = "MenubarContent", $a = i.forwardRef(
|
|
3782
3793
|
(e, t) => {
|
|
3783
|
-
const { __scopeMenubar: n, align: r = "start", ...a } = e, s = V(n), c =
|
|
3794
|
+
const { __scopeMenubar: n, align: r = "start", ...a } = e, s = V(n), c = gn(Dt, n), u = Ta(Dt, n), f = ul(n), p = i.useRef(!1);
|
|
3784
3795
|
return /* @__PURE__ */ o.jsx(
|
|
3785
3796
|
_o,
|
|
3786
3797
|
{
|
|
@@ -3810,11 +3821,11 @@ var Tt = "MenubarContent", ka = i.forwardRef(
|
|
|
3810
3821
|
if (["ArrowRight", "ArrowLeft"].includes(l.key)) {
|
|
3811
3822
|
const d = l.target, m = d.hasAttribute("data-radix-menubar-subtrigger"), g = d.closest("[data-radix-menubar-content]") !== l.currentTarget, h = (c.dir === "rtl" ? "ArrowRight" : "ArrowLeft") === l.key;
|
|
3812
3823
|
if (!h && m || g && h) return;
|
|
3813
|
-
let
|
|
3814
|
-
h &&
|
|
3815
|
-
const _ =
|
|
3816
|
-
|
|
3817
|
-
const [N] =
|
|
3824
|
+
let M = f().filter((A) => !A.disabled).map((A) => A.value);
|
|
3825
|
+
h && M.reverse();
|
|
3826
|
+
const _ = M.indexOf(u.value);
|
|
3827
|
+
M = c.loop ? Sl(M, _ + 1) : M.slice(_ + 1);
|
|
3828
|
+
const [N] = M;
|
|
3818
3829
|
N && c.onMenuOpen(N);
|
|
3819
3830
|
}
|
|
3820
3831
|
},
|
|
@@ -3832,79 +3843,79 @@ var Tt = "MenubarContent", ka = i.forwardRef(
|
|
|
3832
3843
|
);
|
|
3833
3844
|
}
|
|
3834
3845
|
);
|
|
3835
|
-
|
|
3836
|
-
var
|
|
3846
|
+
$a.displayName = Dt;
|
|
3847
|
+
var vl = "MenubarGroup", La = i.forwardRef(
|
|
3837
3848
|
(e, t) => {
|
|
3838
3849
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3839
|
-
return /* @__PURE__ */ o.jsx(
|
|
3850
|
+
return /* @__PURE__ */ o.jsx(yo, { ...a, ...r, ref: t });
|
|
3840
3851
|
}
|
|
3841
3852
|
);
|
|
3842
|
-
|
|
3843
|
-
var
|
|
3853
|
+
La.displayName = vl;
|
|
3854
|
+
var ml = "MenubarLabel", Fa = i.forwardRef(
|
|
3844
3855
|
(e, t) => {
|
|
3845
3856
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3846
|
-
return /* @__PURE__ */ o.jsx(
|
|
3857
|
+
return /* @__PURE__ */ o.jsx(Mo, { ...a, ...r, ref: t });
|
|
3847
3858
|
}
|
|
3848
3859
|
);
|
|
3849
|
-
|
|
3850
|
-
var
|
|
3860
|
+
Fa.displayName = ml;
|
|
3861
|
+
var gl = "MenubarItem", Ga = i.forwardRef(
|
|
3851
3862
|
(e, t) => {
|
|
3852
3863
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3853
3864
|
return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: t });
|
|
3854
3865
|
}
|
|
3855
3866
|
);
|
|
3856
|
-
|
|
3857
|
-
var
|
|
3867
|
+
Ga.displayName = gl;
|
|
3868
|
+
var xl = "MenubarCheckboxItem", Ka = i.forwardRef(
|
|
3858
3869
|
(e, t) => {
|
|
3859
3870
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3860
3871
|
return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: t });
|
|
3861
3872
|
}
|
|
3862
3873
|
);
|
|
3863
|
-
|
|
3864
|
-
var
|
|
3874
|
+
Ka.displayName = xl;
|
|
3875
|
+
var hl = "MenubarRadioGroup", za = i.forwardRef(
|
|
3865
3876
|
(e, t) => {
|
|
3866
3877
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3867
3878
|
return /* @__PURE__ */ o.jsx(No, { ...a, ...r, ref: t });
|
|
3868
3879
|
}
|
|
3869
3880
|
);
|
|
3870
|
-
|
|
3871
|
-
var
|
|
3881
|
+
za.displayName = hl;
|
|
3882
|
+
var bl = "MenubarRadioItem", Va = i.forwardRef(
|
|
3872
3883
|
(e, t) => {
|
|
3873
3884
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3874
|
-
return /* @__PURE__ */ o.jsx(
|
|
3885
|
+
return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: t });
|
|
3875
3886
|
}
|
|
3876
3887
|
);
|
|
3877
|
-
|
|
3878
|
-
var
|
|
3888
|
+
Va.displayName = bl;
|
|
3889
|
+
var wl = "MenubarItemIndicator", Ua = i.forwardRef((e, t) => {
|
|
3879
3890
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3880
|
-
return /* @__PURE__ */ o.jsx(
|
|
3891
|
+
return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: t });
|
|
3881
3892
|
});
|
|
3882
|
-
|
|
3883
|
-
var
|
|
3893
|
+
Ua.displayName = wl;
|
|
3894
|
+
var Cl = "MenubarSeparator", Ba = i.forwardRef(
|
|
3884
3895
|
(e, t) => {
|
|
3885
3896
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3886
3897
|
return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: t });
|
|
3887
3898
|
}
|
|
3888
3899
|
);
|
|
3889
|
-
|
|
3890
|
-
var
|
|
3900
|
+
Ba.displayName = Cl;
|
|
3901
|
+
var Rl = "MenubarArrow", _l = i.forwardRef(
|
|
3891
3902
|
(e, t) => {
|
|
3892
3903
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3893
3904
|
return /* @__PURE__ */ o.jsx(Po, { ...a, ...r, ref: t });
|
|
3894
3905
|
}
|
|
3895
3906
|
);
|
|
3896
|
-
|
|
3897
|
-
var
|
|
3898
|
-
const { __scopeMenubar: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, c = V(t), [u, f] =
|
|
3907
|
+
_l.displayName = Rl;
|
|
3908
|
+
var Ha = "MenubarSub", qa = (e) => {
|
|
3909
|
+
const { __scopeMenubar: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, c = V(t), [u, f] = W({
|
|
3899
3910
|
prop: r,
|
|
3900
3911
|
defaultProp: s ?? !1,
|
|
3901
3912
|
onChange: a,
|
|
3902
|
-
caller:
|
|
3913
|
+
caller: Ha
|
|
3903
3914
|
});
|
|
3904
3915
|
return /* @__PURE__ */ o.jsx(To, { ...c, open: u, onOpenChange: f, children: n });
|
|
3905
3916
|
};
|
|
3906
|
-
|
|
3907
|
-
var
|
|
3917
|
+
qa.displayName = Ha;
|
|
3918
|
+
var yl = "MenubarSubTrigger", Wa = i.forwardRef(
|
|
3908
3919
|
(e, t) => {
|
|
3909
3920
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3910
3921
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -3918,8 +3929,8 @@ var bl = "MenubarSubTrigger", Wa = i.forwardRef(
|
|
|
3918
3929
|
);
|
|
3919
3930
|
}
|
|
3920
3931
|
);
|
|
3921
|
-
Wa.displayName =
|
|
3922
|
-
var
|
|
3932
|
+
Wa.displayName = yl;
|
|
3933
|
+
var Ml = "MenubarSubContent", Ya = i.forwardRef(
|
|
3923
3934
|
(e, t) => {
|
|
3924
3935
|
const { __scopeMenubar: n, ...r } = e, a = V(n);
|
|
3925
3936
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -3941,14 +3952,14 @@ var wl = "MenubarSubContent", qa = i.forwardRef(
|
|
|
3941
3952
|
);
|
|
3942
3953
|
}
|
|
3943
3954
|
);
|
|
3944
|
-
|
|
3945
|
-
function
|
|
3955
|
+
Ya.displayName = Ml;
|
|
3956
|
+
function Sl(e, t) {
|
|
3946
3957
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
3947
3958
|
}
|
|
3948
|
-
var
|
|
3949
|
-
function
|
|
3959
|
+
var El = Pa, Nl = Da, Al = Oa, Il = ka, jl = $a, Pl = La, Tl = Fa, Dl = Ga, Ol = Ka, kl = za, $l = Va, Xa = Ua, Ll = Ba, Fl = qa, Gl = Wa, Kl = Ya;
|
|
3960
|
+
function lp({ className: e, ...t }) {
|
|
3950
3961
|
return /* @__PURE__ */ o.jsx(
|
|
3951
|
-
|
|
3962
|
+
El,
|
|
3952
3963
|
{
|
|
3953
3964
|
"data-slot": "menubar",
|
|
3954
3965
|
className: b("bg-content1 flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", e),
|
|
@@ -3956,21 +3967,21 @@ function ap({ className: e, ...t }) {
|
|
|
3956
3967
|
}
|
|
3957
3968
|
);
|
|
3958
3969
|
}
|
|
3959
|
-
function
|
|
3960
|
-
return /* @__PURE__ */ o.jsx(
|
|
3970
|
+
function dp({ ...e }) {
|
|
3971
|
+
return /* @__PURE__ */ o.jsx(Nl, { "data-slot": "menubar-menu", ...e });
|
|
3961
3972
|
}
|
|
3962
|
-
function
|
|
3963
|
-
return /* @__PURE__ */ o.jsx(
|
|
3973
|
+
function fp({ ...e }) {
|
|
3974
|
+
return /* @__PURE__ */ o.jsx(Pl, { "data-slot": "menubar-group", ...e });
|
|
3964
3975
|
}
|
|
3965
|
-
function
|
|
3966
|
-
return /* @__PURE__ */ o.jsx(
|
|
3976
|
+
function zl({ ...e }) {
|
|
3977
|
+
return /* @__PURE__ */ o.jsx(Il, { "data-slot": "menubar-portal", ...e });
|
|
3967
3978
|
}
|
|
3968
|
-
function
|
|
3969
|
-
return /* @__PURE__ */ o.jsx(
|
|
3979
|
+
function pp({ ...e }) {
|
|
3980
|
+
return /* @__PURE__ */ o.jsx(kl, { "data-slot": "menubar-radio-group", ...e });
|
|
3970
3981
|
}
|
|
3971
|
-
function
|
|
3982
|
+
function vp({ className: e, ...t }) {
|
|
3972
3983
|
return /* @__PURE__ */ o.jsx(
|
|
3973
|
-
|
|
3984
|
+
Al,
|
|
3974
3985
|
{
|
|
3975
3986
|
"data-slot": "menubar-trigger",
|
|
3976
3987
|
className: b(
|
|
@@ -3981,15 +3992,15 @@ function up({ className: e, ...t }) {
|
|
|
3981
3992
|
}
|
|
3982
3993
|
);
|
|
3983
3994
|
}
|
|
3984
|
-
function
|
|
3995
|
+
function mp({
|
|
3985
3996
|
className: e,
|
|
3986
3997
|
align: t = "start",
|
|
3987
3998
|
alignOffset: n = -4,
|
|
3988
3999
|
sideOffset: r = 8,
|
|
3989
4000
|
...a
|
|
3990
4001
|
}) {
|
|
3991
|
-
return /* @__PURE__ */ o.jsx(
|
|
3992
|
-
|
|
4002
|
+
return /* @__PURE__ */ o.jsx(zl, { children: /* @__PURE__ */ o.jsx(
|
|
4003
|
+
jl,
|
|
3993
4004
|
{
|
|
3994
4005
|
"data-slot": "menubar-content",
|
|
3995
4006
|
align: t,
|
|
@@ -4003,14 +4014,14 @@ function lp({
|
|
|
4003
4014
|
}
|
|
4004
4015
|
) });
|
|
4005
4016
|
}
|
|
4006
|
-
function
|
|
4017
|
+
function gp({
|
|
4007
4018
|
className: e,
|
|
4008
4019
|
inset: t,
|
|
4009
4020
|
variant: n = "default",
|
|
4010
4021
|
...r
|
|
4011
4022
|
}) {
|
|
4012
4023
|
return /* @__PURE__ */ o.jsx(
|
|
4013
|
-
|
|
4024
|
+
Dl,
|
|
4014
4025
|
{
|
|
4015
4026
|
"data-slot": "menubar-item",
|
|
4016
4027
|
"data-inset": t,
|
|
@@ -4023,9 +4034,9 @@ function dp({
|
|
|
4023
4034
|
}
|
|
4024
4035
|
);
|
|
4025
4036
|
}
|
|
4026
|
-
function
|
|
4037
|
+
function xp({ className: e, children: t, checked: n, ...r }) {
|
|
4027
4038
|
return /* @__PURE__ */ o.jsxs(
|
|
4028
|
-
|
|
4039
|
+
Ol,
|
|
4029
4040
|
{
|
|
4030
4041
|
"data-slot": "menubar-checkbox-item",
|
|
4031
4042
|
className: b(
|
|
@@ -4035,15 +4046,15 @@ function fp({ className: e, children: t, checked: n, ...r }) {
|
|
|
4035
4046
|
checked: n,
|
|
4036
4047
|
...r,
|
|
4037
4048
|
children: [
|
|
4038
|
-
/* @__PURE__ */ o.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(
|
|
4049
|
+
/* @__PURE__ */ o.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Xa, { children: /* @__PURE__ */ o.jsx(Fn, { className: "size-4" }) }) }),
|
|
4039
4050
|
t
|
|
4040
4051
|
]
|
|
4041
4052
|
}
|
|
4042
4053
|
);
|
|
4043
4054
|
}
|
|
4044
|
-
function
|
|
4055
|
+
function hp({ className: e, children: t, ...n }) {
|
|
4045
4056
|
return /* @__PURE__ */ o.jsxs(
|
|
4046
|
-
|
|
4057
|
+
$l,
|
|
4047
4058
|
{
|
|
4048
4059
|
"data-slot": "menubar-radio-item",
|
|
4049
4060
|
className: b(
|
|
@@ -4052,19 +4063,19 @@ function pp({ className: e, children: t, ...n }) {
|
|
|
4052
4063
|
),
|
|
4053
4064
|
...n,
|
|
4054
4065
|
children: [
|
|
4055
|
-
/* @__PURE__ */ o.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(
|
|
4066
|
+
/* @__PURE__ */ o.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Xa, { children: /* @__PURE__ */ o.jsx(Zt, { className: "size-2 fill-current" }) }) }),
|
|
4056
4067
|
t
|
|
4057
4068
|
]
|
|
4058
4069
|
}
|
|
4059
4070
|
);
|
|
4060
4071
|
}
|
|
4061
|
-
function
|
|
4072
|
+
function bp({
|
|
4062
4073
|
className: e,
|
|
4063
4074
|
inset: t,
|
|
4064
4075
|
...n
|
|
4065
4076
|
}) {
|
|
4066
4077
|
return /* @__PURE__ */ o.jsx(
|
|
4067
|
-
|
|
4078
|
+
Tl,
|
|
4068
4079
|
{
|
|
4069
4080
|
"data-slot": "menubar-label",
|
|
4070
4081
|
"data-inset": t,
|
|
@@ -4073,23 +4084,23 @@ function vp({
|
|
|
4073
4084
|
}
|
|
4074
4085
|
);
|
|
4075
4086
|
}
|
|
4076
|
-
function
|
|
4077
|
-
return /* @__PURE__ */ o.jsx(
|
|
4087
|
+
function wp({ className: e, ...t }) {
|
|
4088
|
+
return /* @__PURE__ */ o.jsx(Ll, { "data-slot": "menubar-separator", className: b("bg-border -mx-1 my-1 h-px", e), ...t });
|
|
4078
4089
|
}
|
|
4079
|
-
function
|
|
4090
|
+
function Cp({ className: e, ...t }) {
|
|
4080
4091
|
return /* @__PURE__ */ o.jsx("span", { "data-slot": "menubar-shortcut", className: b("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
|
|
4081
4092
|
}
|
|
4082
|
-
function
|
|
4083
|
-
return /* @__PURE__ */ o.jsx(
|
|
4093
|
+
function Rp({ ...e }) {
|
|
4094
|
+
return /* @__PURE__ */ o.jsx(Fl, { "data-slot": "menubar-sub", ...e });
|
|
4084
4095
|
}
|
|
4085
|
-
function
|
|
4096
|
+
function _p({
|
|
4086
4097
|
className: e,
|
|
4087
4098
|
inset: t,
|
|
4088
4099
|
children: n,
|
|
4089
4100
|
...r
|
|
4090
4101
|
}) {
|
|
4091
4102
|
return /* @__PURE__ */ o.jsxs(
|
|
4092
|
-
|
|
4103
|
+
Gl,
|
|
4093
4104
|
{
|
|
4094
4105
|
"data-slot": "menubar-sub-trigger",
|
|
4095
4106
|
"data-inset": t,
|
|
@@ -4100,14 +4111,14 @@ function hp({
|
|
|
4100
4111
|
...r,
|
|
4101
4112
|
children: [
|
|
4102
4113
|
n,
|
|
4103
|
-
/* @__PURE__ */ o.jsx(
|
|
4114
|
+
/* @__PURE__ */ o.jsx(tr, { className: "ml-auto h-4 w-4" })
|
|
4104
4115
|
]
|
|
4105
4116
|
}
|
|
4106
4117
|
);
|
|
4107
4118
|
}
|
|
4108
|
-
function
|
|
4119
|
+
function yp({ className: e, ...t }) {
|
|
4109
4120
|
return /* @__PURE__ */ o.jsx(
|
|
4110
|
-
|
|
4121
|
+
Kl,
|
|
4111
4122
|
{
|
|
4112
4123
|
"data-slot": "menubar-sub-content",
|
|
4113
4124
|
className: b(
|
|
@@ -4118,43 +4129,43 @@ function bp({ className: e, ...t }) {
|
|
|
4118
4129
|
}
|
|
4119
4130
|
);
|
|
4120
4131
|
}
|
|
4121
|
-
var
|
|
4122
|
-
|
|
4123
|
-
]), ie =
|
|
4132
|
+
var Za = "AlertDialog", [Vl, Mp] = q(Za, [
|
|
4133
|
+
kn
|
|
4134
|
+
]), ie = kn(), Ja = (e) => {
|
|
4124
4135
|
const { __scopeAlertDialog: t, ...n } = e, r = ie(t);
|
|
4125
|
-
return /* @__PURE__ */ o.jsx(
|
|
4136
|
+
return /* @__PURE__ */ o.jsx(kt, { ...r, ...n, modal: !0 });
|
|
4126
4137
|
};
|
|
4127
|
-
|
|
4128
|
-
var
|
|
4138
|
+
Ja.displayName = Za;
|
|
4139
|
+
var Ul = "AlertDialogTrigger", Qa = i.forwardRef(
|
|
4129
4140
|
(e, t) => {
|
|
4130
4141
|
const { __scopeAlertDialog: n, ...r } = e, a = ie(n);
|
|
4131
|
-
return /* @__PURE__ */ o.jsx(
|
|
4142
|
+
return /* @__PURE__ */ o.jsx(Tn, { ...a, ...r, ref: t });
|
|
4132
4143
|
}
|
|
4133
4144
|
);
|
|
4134
|
-
|
|
4135
|
-
var
|
|
4145
|
+
Qa.displayName = Ul;
|
|
4146
|
+
var Bl = "AlertDialogPortal", es = (e) => {
|
|
4136
4147
|
const { __scopeAlertDialog: t, ...n } = e, r = ie(t);
|
|
4137
|
-
return /* @__PURE__ */ o.jsx(
|
|
4148
|
+
return /* @__PURE__ */ o.jsx($t, { ...r, ...n });
|
|
4138
4149
|
};
|
|
4139
|
-
|
|
4140
|
-
var
|
|
4150
|
+
es.displayName = Bl;
|
|
4151
|
+
var Hl = "AlertDialogOverlay", ts = i.forwardRef(
|
|
4141
4152
|
(e, t) => {
|
|
4142
4153
|
const { __scopeAlertDialog: n, ...r } = e, a = ie(n);
|
|
4143
|
-
return /* @__PURE__ */ o.jsx(
|
|
4154
|
+
return /* @__PURE__ */ o.jsx(Lt, { ...a, ...r, ref: t });
|
|
4144
4155
|
}
|
|
4145
4156
|
);
|
|
4146
|
-
|
|
4147
|
-
var Re = "AlertDialogContent", [
|
|
4157
|
+
ts.displayName = Hl;
|
|
4158
|
+
var Re = "AlertDialogContent", [ql, Wl] = Vl(Re), Yl = Es("AlertDialogContent"), ns = i.forwardRef(
|
|
4148
4159
|
(e, t) => {
|
|
4149
4160
|
const { __scopeAlertDialog: n, children: r, ...a } = e, s = ie(n), c = i.useRef(null), u = L(t, c), f = i.useRef(null);
|
|
4150
4161
|
return /* @__PURE__ */ o.jsx(
|
|
4151
|
-
|
|
4162
|
+
Ss,
|
|
4152
4163
|
{
|
|
4153
4164
|
contentName: Re,
|
|
4154
|
-
titleName:
|
|
4165
|
+
titleName: os,
|
|
4155
4166
|
docsSlug: "alert-dialog",
|
|
4156
|
-
children: /* @__PURE__ */ o.jsx(
|
|
4157
|
-
|
|
4167
|
+
children: /* @__PURE__ */ o.jsx(ql, { scope: n, cancelRef: f, children: /* @__PURE__ */ o.jsxs(
|
|
4168
|
+
Ft,
|
|
4158
4169
|
{
|
|
4159
4170
|
role: "alertdialog",
|
|
4160
4171
|
...s,
|
|
@@ -4166,8 +4177,8 @@ var Re = "AlertDialogContent", [zl, Vl] = Ll(Re), Ul = Ss("AlertDialogContent"),
|
|
|
4166
4177
|
onPointerDownOutside: (p) => p.preventDefault(),
|
|
4167
4178
|
onInteractOutside: (p) => p.preventDefault(),
|
|
4168
4179
|
children: [
|
|
4169
|
-
/* @__PURE__ */ o.jsx(
|
|
4170
|
-
/* @__PURE__ */ o.jsx(
|
|
4180
|
+
/* @__PURE__ */ o.jsx(Yl, { children: r }),
|
|
4181
|
+
/* @__PURE__ */ o.jsx(Zl, { contentRef: c })
|
|
4171
4182
|
]
|
|
4172
4183
|
}
|
|
4173
4184
|
) })
|
|
@@ -4175,37 +4186,37 @@ var Re = "AlertDialogContent", [zl, Vl] = Ll(Re), Ul = Ss("AlertDialogContent"),
|
|
|
4175
4186
|
);
|
|
4176
4187
|
}
|
|
4177
4188
|
);
|
|
4178
|
-
|
|
4179
|
-
var
|
|
4189
|
+
ns.displayName = Re;
|
|
4190
|
+
var os = "AlertDialogTitle", rs = i.forwardRef(
|
|
4180
4191
|
(e, t) => {
|
|
4181
4192
|
const { __scopeAlertDialog: n, ...r } = e, a = ie(n);
|
|
4182
|
-
return /* @__PURE__ */ o.jsx(
|
|
4193
|
+
return /* @__PURE__ */ o.jsx(Dn, { ...a, ...r, ref: t });
|
|
4183
4194
|
}
|
|
4184
4195
|
);
|
|
4185
|
-
|
|
4186
|
-
var
|
|
4196
|
+
rs.displayName = os;
|
|
4197
|
+
var as = "AlertDialogDescription", ss = i.forwardRef((e, t) => {
|
|
4187
4198
|
const { __scopeAlertDialog: n, ...r } = e, a = ie(n);
|
|
4188
|
-
return /* @__PURE__ */ o.jsx(
|
|
4199
|
+
return /* @__PURE__ */ o.jsx(On, { ...a, ...r, ref: t });
|
|
4189
4200
|
});
|
|
4190
|
-
|
|
4191
|
-
var
|
|
4201
|
+
ss.displayName = as;
|
|
4202
|
+
var Xl = "AlertDialogAction", is = i.forwardRef(
|
|
4192
4203
|
(e, t) => {
|
|
4193
4204
|
const { __scopeAlertDialog: n, ...r } = e, a = ie(n);
|
|
4194
4205
|
return /* @__PURE__ */ o.jsx(Ye, { ...a, ...r, ref: t });
|
|
4195
4206
|
}
|
|
4196
4207
|
);
|
|
4197
|
-
|
|
4198
|
-
var
|
|
4208
|
+
is.displayName = Xl;
|
|
4209
|
+
var cs = "AlertDialogCancel", us = i.forwardRef(
|
|
4199
4210
|
(e, t) => {
|
|
4200
|
-
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: a } =
|
|
4211
|
+
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: a } = Wl(cs, n), s = ie(n), c = L(t, a);
|
|
4201
4212
|
return /* @__PURE__ */ o.jsx(Ye, { ...s, ...r, ref: c });
|
|
4202
4213
|
}
|
|
4203
4214
|
);
|
|
4204
|
-
|
|
4205
|
-
var
|
|
4215
|
+
us.displayName = cs;
|
|
4216
|
+
var Zl = ({ contentRef: e }) => {
|
|
4206
4217
|
const t = `\`${Re}\` requires a description for the component to be accessible for screen reader users.
|
|
4207
4218
|
|
|
4208
|
-
You can add a description to the \`${Re}\` by passing a \`${
|
|
4219
|
+
You can add a description to the \`${Re}\` by passing a \`${as}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4209
4220
|
|
|
4210
4221
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Re}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
4211
4222
|
|
|
@@ -4215,19 +4226,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
4215
4226
|
e.current?.getAttribute("aria-describedby")
|
|
4216
4227
|
);
|
|
4217
4228
|
}, [t, e]), null;
|
|
4218
|
-
},
|
|
4219
|
-
function
|
|
4220
|
-
return /* @__PURE__ */ o.jsx(
|
|
4229
|
+
}, Jl = Ja, Ql = Qa, ed = es, td = ts, nd = ns, od = is, rd = us, ad = rs, sd = ss;
|
|
4230
|
+
function id({ ...e }) {
|
|
4231
|
+
return /* @__PURE__ */ o.jsx(Jl, { "data-slot": "alert-dialog", ...e });
|
|
4221
4232
|
}
|
|
4222
|
-
function
|
|
4223
|
-
return /* @__PURE__ */ o.jsx(
|
|
4233
|
+
function Sp({ ...e }) {
|
|
4234
|
+
return /* @__PURE__ */ o.jsx(Ql, { "data-slot": "alert-dialog-trigger", ...e });
|
|
4224
4235
|
}
|
|
4225
|
-
function
|
|
4226
|
-
return /* @__PURE__ */ o.jsx(
|
|
4236
|
+
function cd({ ...e }) {
|
|
4237
|
+
return /* @__PURE__ */ o.jsx(ed, { "data-slot": "alert-dialog-portal", ...e });
|
|
4227
4238
|
}
|
|
4228
|
-
function
|
|
4239
|
+
function ud({ className: e, ...t }) {
|
|
4229
4240
|
return /* @__PURE__ */ o.jsx(
|
|
4230
|
-
|
|
4241
|
+
td,
|
|
4231
4242
|
{
|
|
4232
4243
|
"data-slot": "alert-dialog-overlay",
|
|
4233
4244
|
className: b(
|
|
@@ -4238,11 +4249,11 @@ function rd({ className: e, ...t }) {
|
|
|
4238
4249
|
}
|
|
4239
4250
|
);
|
|
4240
4251
|
}
|
|
4241
|
-
function
|
|
4242
|
-
return /* @__PURE__ */ o.jsxs(
|
|
4243
|
-
/* @__PURE__ */ o.jsx(
|
|
4252
|
+
function ld({ className: e, ...t }) {
|
|
4253
|
+
return /* @__PURE__ */ o.jsxs(cd, { children: [
|
|
4254
|
+
/* @__PURE__ */ o.jsx(ud, {}),
|
|
4244
4255
|
/* @__PURE__ */ o.jsx(
|
|
4245
|
-
|
|
4256
|
+
nd,
|
|
4246
4257
|
{
|
|
4247
4258
|
"data-slot": "alert-dialog-content",
|
|
4248
4259
|
className: b(
|
|
@@ -4254,18 +4265,18 @@ function ad({ className: e, ...t }) {
|
|
|
4254
4265
|
)
|
|
4255
4266
|
] });
|
|
4256
4267
|
}
|
|
4257
|
-
function
|
|
4268
|
+
function dd({ className: e, ...t }) {
|
|
4258
4269
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "alert-dialog-header", className: b("flex flex-col gap-2 text-center sm:text-left", e), ...t });
|
|
4259
4270
|
}
|
|
4260
|
-
function
|
|
4271
|
+
function fd({ className: e, ...t }) {
|
|
4261
4272
|
return /* @__PURE__ */ o.jsx("div", { "data-slot": "alert-dialog-footer", className: b("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e), ...t });
|
|
4262
4273
|
}
|
|
4263
|
-
function
|
|
4264
|
-
return /* @__PURE__ */ o.jsx(
|
|
4274
|
+
function pd({ className: e, ...t }) {
|
|
4275
|
+
return /* @__PURE__ */ o.jsx(ad, { "data-slot": "alert-dialog-title", className: b("text-lg font-semibold", e), ...t });
|
|
4265
4276
|
}
|
|
4266
|
-
function
|
|
4277
|
+
function vd({ className: e, ...t }) {
|
|
4267
4278
|
return /* @__PURE__ */ o.jsx(
|
|
4268
|
-
|
|
4279
|
+
sd,
|
|
4269
4280
|
{
|
|
4270
4281
|
"data-slot": "alert-dialog-description",
|
|
4271
4282
|
className: b("text-muted-foreground text-sm", e),
|
|
@@ -4273,13 +4284,13 @@ function ud({ className: e, ...t }) {
|
|
|
4273
4284
|
}
|
|
4274
4285
|
);
|
|
4275
4286
|
}
|
|
4276
|
-
function
|
|
4277
|
-
return /* @__PURE__ */ o.jsx(
|
|
4287
|
+
function Ep({ className: e, ...t }) {
|
|
4288
|
+
return /* @__PURE__ */ o.jsx(od, { className: b(zn({ color: "primary" }), e), ...t });
|
|
4278
4289
|
}
|
|
4279
|
-
function
|
|
4280
|
-
return /* @__PURE__ */ o.jsx(
|
|
4290
|
+
function Np({ className: e, ...t }) {
|
|
4291
|
+
return /* @__PURE__ */ o.jsx(rd, { className: b(zn({ variant: "solid" }), e), ...t });
|
|
4281
4292
|
}
|
|
4282
|
-
const
|
|
4293
|
+
const Ap = ({
|
|
4283
4294
|
isOpen: e,
|
|
4284
4295
|
title: t,
|
|
4285
4296
|
description: n,
|
|
@@ -4292,20 +4303,20 @@ const Mp = ({
|
|
|
4292
4303
|
buttonConfirmText: p = "Aceptar",
|
|
4293
4304
|
colorButtonConfirm: l = "primary",
|
|
4294
4305
|
showButtonCancel: d = !0
|
|
4295
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
4296
|
-
/* @__PURE__ */ o.jsxs(
|
|
4297
|
-
t && /* @__PURE__ */ o.jsx(
|
|
4298
|
-
n && /* @__PURE__ */ o.jsx(
|
|
4306
|
+
}) => /* @__PURE__ */ o.jsx(id, { open: e, onOpenChange: (m) => u?.(m), children: /* @__PURE__ */ o.jsxs(ld, { children: [
|
|
4307
|
+
/* @__PURE__ */ o.jsxs(dd, { children: [
|
|
4308
|
+
t && /* @__PURE__ */ o.jsx(pd, { children: t }),
|
|
4309
|
+
n && /* @__PURE__ */ o.jsx(vd, { children: n }),
|
|
4299
4310
|
r && /* @__PURE__ */ o.jsx("div", { className: "w-full relative", children: r })
|
|
4300
4311
|
] }),
|
|
4301
|
-
/* @__PURE__ */ o.jsxs(
|
|
4302
|
-
d && /* @__PURE__ */ o.jsx(
|
|
4303
|
-
/* @__PURE__ */ o.jsx(
|
|
4312
|
+
/* @__PURE__ */ o.jsxs(fd, { children: [
|
|
4313
|
+
d && /* @__PURE__ */ o.jsx(Ct, { onClick: c, disabled: a, children: f }),
|
|
4314
|
+
/* @__PURE__ */ o.jsx(Ct, { onClick: s, disabled: a, isLoading: a, color: l, children: p })
|
|
4304
4315
|
] })
|
|
4305
4316
|
] }) });
|
|
4306
|
-
var
|
|
4317
|
+
var bt, lt = "HoverCard", [ls, Ip] = q(lt, [
|
|
4307
4318
|
Se
|
|
4308
|
-
]),
|
|
4319
|
+
]), dt = Se(), [md, ft] = ls(lt), ds = (e) => {
|
|
4309
4320
|
const {
|
|
4310
4321
|
__scopeHoverCard: t,
|
|
4311
4322
|
children: n,
|
|
@@ -4314,11 +4325,11 @@ var ht, ut = "HoverCard", [us, yp] = W(ut, [
|
|
|
4314
4325
|
onOpenChange: s,
|
|
4315
4326
|
openDelay: c = 700,
|
|
4316
4327
|
closeDelay: u = 300
|
|
4317
|
-
} = e, f =
|
|
4328
|
+
} = e, f = dt(t), p = i.useRef(0), l = i.useRef(0), d = i.useRef(!1), m = i.useRef(!1), [g, v] = W({
|
|
4318
4329
|
prop: r,
|
|
4319
4330
|
defaultProp: a ?? !1,
|
|
4320
4331
|
onChange: s,
|
|
4321
|
-
caller:
|
|
4332
|
+
caller: lt
|
|
4322
4333
|
}), h = i.useCallback(() => {
|
|
4323
4334
|
clearTimeout(l.current), p.current = window.setTimeout(() => v(!0), c);
|
|
4324
4335
|
}, [c, v]), w = i.useCallback(() => {
|
|
@@ -4327,7 +4338,7 @@ var ht, ut = "HoverCard", [us, yp] = W(ut, [
|
|
|
4327
4338
|
return i.useEffect(() => () => {
|
|
4328
4339
|
clearTimeout(p.current), clearTimeout(l.current);
|
|
4329
4340
|
}, []), /* @__PURE__ */ o.jsx(
|
|
4330
|
-
|
|
4341
|
+
md,
|
|
4331
4342
|
{
|
|
4332
4343
|
scope: t,
|
|
4333
4344
|
open: g,
|
|
@@ -4341,18 +4352,18 @@ var ht, ut = "HoverCard", [us, yp] = W(ut, [
|
|
|
4341
4352
|
}
|
|
4342
4353
|
);
|
|
4343
4354
|
};
|
|
4344
|
-
|
|
4345
|
-
var
|
|
4355
|
+
ds.displayName = lt;
|
|
4356
|
+
var fs = "HoverCardTrigger", ps = i.forwardRef(
|
|
4346
4357
|
(e, t) => {
|
|
4347
|
-
const { __scopeHoverCard: n, ...r } = e, a =
|
|
4358
|
+
const { __scopeHoverCard: n, ...r } = e, a = ft(fs, n), s = dt(n);
|
|
4348
4359
|
return /* @__PURE__ */ o.jsx(Ze, { asChild: !0, ...s, children: /* @__PURE__ */ o.jsx(
|
|
4349
4360
|
E.a,
|
|
4350
4361
|
{
|
|
4351
4362
|
"data-state": a.open ? "open" : "closed",
|
|
4352
4363
|
...r,
|
|
4353
4364
|
ref: t,
|
|
4354
|
-
onPointerEnter: C(e.onPointerEnter,
|
|
4355
|
-
onPointerLeave: C(e.onPointerLeave,
|
|
4365
|
+
onPointerEnter: C(e.onPointerEnter, qe(a.onOpen)),
|
|
4366
|
+
onPointerLeave: C(e.onPointerLeave, qe(a.onClose)),
|
|
4356
4367
|
onFocus: C(e.onFocus, a.onOpen),
|
|
4357
4368
|
onBlur: C(e.onBlur, a.onClose),
|
|
4358
4369
|
onTouchStart: C(e.onTouchStart, (c) => c.preventDefault())
|
|
@@ -4360,31 +4371,31 @@ var ds = "HoverCardTrigger", fs = i.forwardRef(
|
|
|
4360
4371
|
) });
|
|
4361
4372
|
}
|
|
4362
4373
|
);
|
|
4363
|
-
|
|
4364
|
-
var
|
|
4374
|
+
ps.displayName = fs;
|
|
4375
|
+
var hn = "HoverCardPortal", [gd, xd] = ls(hn, {
|
|
4365
4376
|
forceMount: void 0
|
|
4366
|
-
}),
|
|
4367
|
-
const { __scopeHoverCard: t, forceMount: n, children: r, container: a } = e, s =
|
|
4368
|
-
return /* @__PURE__ */ o.jsx(
|
|
4377
|
+
}), vs = (e) => {
|
|
4378
|
+
const { __scopeHoverCard: t, forceMount: n, children: r, container: a } = e, s = ft(hn, t);
|
|
4379
|
+
return /* @__PURE__ */ o.jsx(gd, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(H, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ot, { asChild: !0, container: a, children: r }) }) });
|
|
4369
4380
|
};
|
|
4370
|
-
|
|
4371
|
-
var He = "HoverCardContent",
|
|
4381
|
+
vs.displayName = hn;
|
|
4382
|
+
var He = "HoverCardContent", ms = i.forwardRef(
|
|
4372
4383
|
(e, t) => {
|
|
4373
|
-
const n =
|
|
4384
|
+
const n = xd(He, e.__scopeHoverCard), { forceMount: r = n.forceMount, ...a } = e, s = ft(He, e.__scopeHoverCard);
|
|
4374
4385
|
return /* @__PURE__ */ o.jsx(H, { present: r || s.open, children: /* @__PURE__ */ o.jsx(
|
|
4375
|
-
|
|
4386
|
+
hd,
|
|
4376
4387
|
{
|
|
4377
4388
|
"data-state": s.open ? "open" : "closed",
|
|
4378
4389
|
...a,
|
|
4379
|
-
onPointerEnter: C(e.onPointerEnter,
|
|
4380
|
-
onPointerLeave: C(e.onPointerLeave,
|
|
4390
|
+
onPointerEnter: C(e.onPointerEnter, qe(s.onOpen)),
|
|
4391
|
+
onPointerLeave: C(e.onPointerLeave, qe(s.onClose)),
|
|
4381
4392
|
ref: t
|
|
4382
4393
|
}
|
|
4383
4394
|
) });
|
|
4384
4395
|
}
|
|
4385
4396
|
);
|
|
4386
|
-
|
|
4387
|
-
var
|
|
4397
|
+
ms.displayName = He;
|
|
4398
|
+
var hd = i.forwardRef((e, t) => {
|
|
4388
4399
|
const {
|
|
4389
4400
|
__scopeHoverCard: n,
|
|
4390
4401
|
onEscapeKeyDown: r,
|
|
@@ -4392,12 +4403,12 @@ var pd = i.forwardRef((e, t) => {
|
|
|
4392
4403
|
onFocusOutside: s,
|
|
4393
4404
|
onInteractOutside: c,
|
|
4394
4405
|
...u
|
|
4395
|
-
} = e, f =
|
|
4406
|
+
} = e, f = ft(He, n), p = dt(n), l = i.useRef(null), d = L(t, l), [m, g] = i.useState(!1);
|
|
4396
4407
|
return i.useEffect(() => {
|
|
4397
4408
|
if (m) {
|
|
4398
4409
|
const v = document.body;
|
|
4399
|
-
return
|
|
4400
|
-
v.style.userSelect =
|
|
4410
|
+
return bt = v.style.userSelect || v.style.webkitUserSelect, v.style.userSelect = "none", v.style.webkitUserSelect = "none", () => {
|
|
4411
|
+
v.style.userSelect = bt, v.style.webkitUserSelect = bt;
|
|
4401
4412
|
};
|
|
4402
4413
|
}
|
|
4403
4414
|
}, [m]), i.useEffect(() => {
|
|
@@ -4412,9 +4423,9 @@ var pd = i.forwardRef((e, t) => {
|
|
|
4412
4423
|
};
|
|
4413
4424
|
}
|
|
4414
4425
|
}, [f.isPointerDownOnContentRef, f.hasSelectionRef]), i.useEffect(() => {
|
|
4415
|
-
l.current &&
|
|
4426
|
+
l.current && Cd(l.current).forEach((h) => h.setAttribute("tabindex", "-1"));
|
|
4416
4427
|
}), /* @__PURE__ */ o.jsx(
|
|
4417
|
-
|
|
4428
|
+
We,
|
|
4418
4429
|
{
|
|
4419
4430
|
asChild: !0,
|
|
4420
4431
|
disableOutsidePointerEvents: !1,
|
|
@@ -4426,7 +4437,7 @@ var pd = i.forwardRef((e, t) => {
|
|
|
4426
4437
|
}),
|
|
4427
4438
|
onDismiss: f.onDismiss,
|
|
4428
4439
|
children: /* @__PURE__ */ o.jsx(
|
|
4429
|
-
|
|
4440
|
+
Gt,
|
|
4430
4441
|
{
|
|
4431
4442
|
...p,
|
|
4432
4443
|
...u,
|
|
@@ -4449,33 +4460,33 @@ var pd = i.forwardRef((e, t) => {
|
|
|
4449
4460
|
)
|
|
4450
4461
|
}
|
|
4451
4462
|
);
|
|
4452
|
-
}),
|
|
4463
|
+
}), bd = "HoverCardArrow", wd = i.forwardRef(
|
|
4453
4464
|
(e, t) => {
|
|
4454
|
-
const { __scopeHoverCard: n, ...r } = e, a =
|
|
4455
|
-
return /* @__PURE__ */ o.jsx(
|
|
4465
|
+
const { __scopeHoverCard: n, ...r } = e, a = dt(n);
|
|
4466
|
+
return /* @__PURE__ */ o.jsx(Kt, { ...a, ...r, ref: t });
|
|
4456
4467
|
}
|
|
4457
4468
|
);
|
|
4458
|
-
|
|
4459
|
-
function
|
|
4469
|
+
wd.displayName = bd;
|
|
4470
|
+
function qe(e) {
|
|
4460
4471
|
return (t) => t.pointerType === "touch" ? void 0 : e();
|
|
4461
4472
|
}
|
|
4462
|
-
function
|
|
4473
|
+
function Cd(e) {
|
|
4463
4474
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
4464
4475
|
acceptNode: (r) => r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP
|
|
4465
4476
|
});
|
|
4466
4477
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
4467
4478
|
return t;
|
|
4468
4479
|
}
|
|
4469
|
-
var
|
|
4470
|
-
function
|
|
4471
|
-
return /* @__PURE__ */ o.jsx(
|
|
4480
|
+
var Rd = ds, _d = ps, yd = vs, Md = ms;
|
|
4481
|
+
function jp({ ...e }) {
|
|
4482
|
+
return /* @__PURE__ */ o.jsx(Rd, { "data-slot": "hover-card", ...e });
|
|
4472
4483
|
}
|
|
4473
|
-
function
|
|
4474
|
-
return /* @__PURE__ */ o.jsx(
|
|
4484
|
+
function Pp({ ...e }) {
|
|
4485
|
+
return /* @__PURE__ */ o.jsx(_d, { "data-slot": "hover-card-trigger", ...e });
|
|
4475
4486
|
}
|
|
4476
|
-
function
|
|
4477
|
-
return /* @__PURE__ */ o.jsx(
|
|
4478
|
-
|
|
4487
|
+
function Tp({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
4488
|
+
return /* @__PURE__ */ o.jsx(yd, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o.jsx(
|
|
4489
|
+
Md,
|
|
4479
4490
|
{
|
|
4480
4491
|
"data-slot": "hover-card-content",
|
|
4481
4492
|
align: t,
|
|
@@ -4489,138 +4500,138 @@ function Np({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
4489
4500
|
) });
|
|
4490
4501
|
}
|
|
4491
4502
|
export {
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4503
|
+
Nf as Accordion,
|
|
4504
|
+
jf as AccordionContent,
|
|
4505
|
+
Af as AccordionItem,
|
|
4506
|
+
If as AccordionTrigger,
|
|
4507
|
+
Ap as AlertConfirmation,
|
|
4508
|
+
id as AlertDialog,
|
|
4509
|
+
Ep as AlertDialogAction,
|
|
4510
|
+
Np as AlertDialogCancel,
|
|
4511
|
+
ld as AlertDialogContent,
|
|
4512
|
+
vd as AlertDialogDescription,
|
|
4513
|
+
fd as AlertDialogFooter,
|
|
4514
|
+
dd as AlertDialogHeader,
|
|
4515
|
+
ud as AlertDialogOverlay,
|
|
4516
|
+
cd as AlertDialogPortal,
|
|
4517
|
+
pd as AlertDialogTitle,
|
|
4518
|
+
Sp as AlertDialogTrigger,
|
|
4519
|
+
Zf as AspectRatio,
|
|
4520
|
+
df as Avatar,
|
|
4521
|
+
pf as AvatarFallback,
|
|
4522
|
+
ff as AvatarImage,
|
|
4523
|
+
kp as Badge,
|
|
4524
|
+
Gf as Card,
|
|
4525
|
+
Uf as CardAction,
|
|
4526
|
+
Bf as CardContent,
|
|
4527
|
+
Vf as CardDescription,
|
|
4528
|
+
Hf as CardFooter,
|
|
4529
|
+
Kf as CardHeader,
|
|
4530
|
+
zf as CardTitle,
|
|
4531
|
+
tu as Command,
|
|
4532
|
+
bf as CommandDialog,
|
|
4533
|
+
Rf as CommandEmpty,
|
|
4534
|
+
_f as CommandGroup,
|
|
4535
|
+
wf as CommandInput,
|
|
4536
|
+
Mf as CommandItem,
|
|
4537
|
+
Cf as CommandList,
|
|
4538
|
+
yf as CommandSeparator,
|
|
4539
|
+
Sf as CommandShortcut,
|
|
4540
|
+
bs as Dialog,
|
|
4541
|
+
$p as DialogClose,
|
|
4542
|
+
_s as DialogContent,
|
|
4543
|
+
Rs as DialogDescription,
|
|
4544
|
+
Lp as DialogFooter,
|
|
4545
|
+
ws as DialogHeader,
|
|
4546
|
+
Fp as DialogOverlay,
|
|
4547
|
+
Gp as DialogPortal,
|
|
4548
|
+
Cs as DialogTitle,
|
|
4549
|
+
Kp as DialogTrigger,
|
|
4550
|
+
Fd as DropdownMenu,
|
|
4551
|
+
Bd as DropdownMenuCheckboxItem,
|
|
4552
|
+
zd as DropdownMenuContent,
|
|
4553
|
+
Vd as DropdownMenuGroup,
|
|
4554
|
+
Ud as DropdownMenuItem,
|
|
4555
|
+
Wd as DropdownMenuLabel,
|
|
4556
|
+
Gd as DropdownMenuPortal,
|
|
4557
|
+
Hd as DropdownMenuRadioGroup,
|
|
4558
|
+
qd as DropdownMenuRadioItem,
|
|
4559
|
+
Yd as DropdownMenuSeparator,
|
|
4560
|
+
Xd as DropdownMenuShortcut,
|
|
4561
|
+
Zd as DropdownMenuSub,
|
|
4562
|
+
Qd as DropdownMenuSubContent,
|
|
4563
|
+
Jd as DropdownMenuSubTrigger,
|
|
4564
|
+
Kd as DropdownMenuTrigger,
|
|
4565
|
+
jp as HoverCard,
|
|
4566
|
+
Tp as HoverCardContent,
|
|
4567
|
+
Pp as HoverCardTrigger,
|
|
4568
|
+
zp as Input,
|
|
4569
|
+
qf as InputOTP,
|
|
4570
|
+
Wf as InputOTPGroup,
|
|
4571
|
+
Xf as InputOTPSeparator,
|
|
4572
|
+
Yf as InputOTPSlot,
|
|
4573
|
+
$d as Label,
|
|
4574
|
+
Hp as LabelError,
|
|
4575
|
+
lp as Menubar,
|
|
4576
|
+
xp as MenubarCheckboxItem,
|
|
4577
|
+
mp as MenubarContent,
|
|
4578
|
+
fp as MenubarGroup,
|
|
4579
|
+
gp as MenubarItem,
|
|
4580
|
+
bp as MenubarLabel,
|
|
4581
|
+
dp as MenubarMenu,
|
|
4582
|
+
zl as MenubarPortal,
|
|
4583
|
+
pp as MenubarRadioGroup,
|
|
4584
|
+
hp as MenubarRadioItem,
|
|
4585
|
+
wp as MenubarSeparator,
|
|
4586
|
+
Cp as MenubarShortcut,
|
|
4587
|
+
Rp as MenubarSub,
|
|
4588
|
+
yp as MenubarSubContent,
|
|
4589
|
+
_p as MenubarSubTrigger,
|
|
4590
|
+
vp as MenubarTrigger,
|
|
4591
|
+
Tf as NavigationMenu,
|
|
4592
|
+
$f as NavigationMenuContent,
|
|
4593
|
+
Ff as NavigationMenuIndicator,
|
|
4594
|
+
Of as NavigationMenuItem,
|
|
4595
|
+
Lf as NavigationMenuLink,
|
|
4596
|
+
Df as NavigationMenuList,
|
|
4597
|
+
kf as NavigationMenuTrigger,
|
|
4598
|
+
Hu as NavigationMenuViewport,
|
|
4599
|
+
mf as Popover,
|
|
4600
|
+
hf as PopoverAnchor,
|
|
4601
|
+
xf as PopoverContent,
|
|
4602
|
+
gf as PopoverTrigger,
|
|
4603
|
+
Qf as RadioGroup,
|
|
4604
|
+
ep as RadioGroupItem,
|
|
4605
|
+
uf as ResizableHandle,
|
|
4606
|
+
cf as ResizablePanel,
|
|
4607
|
+
sf as ResizablePanelGroup,
|
|
4608
|
+
av as ScrollArea,
|
|
4609
|
+
sv as ScrollBar,
|
|
4610
|
+
Wp as Select,
|
|
4611
|
+
Yp as SelectContent,
|
|
4612
|
+
Xp as SelectGroup,
|
|
4613
|
+
Zp as SelectItem,
|
|
4614
|
+
Jp as SelectLabel,
|
|
4615
|
+
Qp as SelectScrollDownButton,
|
|
4616
|
+
ev as SelectScrollUpButton,
|
|
4617
|
+
tv as SelectSeparator,
|
|
4618
|
+
nv as SelectTrigger,
|
|
4619
|
+
ov as SelectValue,
|
|
4620
|
+
tp as Sheet,
|
|
4621
|
+
op as SheetClose,
|
|
4622
|
+
rp as SheetContent,
|
|
4623
|
+
cp as SheetDescription,
|
|
4624
|
+
sp as SheetFooter,
|
|
4625
|
+
ap as SheetHeader,
|
|
4626
|
+
ip as SheetTitle,
|
|
4627
|
+
np as SheetTrigger,
|
|
4628
|
+
af as Skeleton,
|
|
4629
|
+
Vp as Switch,
|
|
4630
|
+
tf as Tabs,
|
|
4631
|
+
rf as TabsContent,
|
|
4632
|
+
nf as TabsList,
|
|
4633
|
+
of as TabsTrigger,
|
|
4634
|
+
Up as Textarea,
|
|
4635
|
+
Bu as navigationMenuTriggerStyle
|
|
4625
4636
|
};
|
|
4626
4637
|
//# sourceMappingURL=index.es.js.map
|