lizaui 3.0.13 → 3.0.15
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-_sxUNftj.js → index-jBeQP53E.js} +2 -2
- package/dist/chunks/{index-_sxUNftj.js.map → index-jBeQP53E.js.map} +1 -1
- package/dist/chunks/{index-7N7OYm8f.js → index-ui7isTRa.js} +2 -2
- package/dist/chunks/{index-7N7OYm8f.js.map → index-ui7isTRa.js.map} +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.es.js +1 -1
- package/dist/ui/index.cjs.js +3 -3
- package/dist/ui/index.cjs.js.map +1 -1
- package/dist/ui/index.es.js +778 -738
- package/dist/ui/index.es.js.map +1 -1
- package/package.json +2 -1
package/dist/ui/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { P, g as ee, h as Ae, u as K, i as w, j as
|
|
2
|
-
import { a2 as
|
|
1
|
+
import { P, g as ee, h as Ae, u as K, i as w, j as xe, k as te, l as V, m as Ze, R as At, n as B, o as Sn, A as Nt, p as _n, q as vt, r as Mn, s as yn, F as Rn, D as Pt, C as En, t as An, v as Oe, w as Nn, x as ls, y as us, z as ds, B as ue, E as Pn, G as In, H as jn, O as Tn, I as Dn, M as fs, J as ps, K as vs, L as ms, N as gs, Q as On, T as hs, U as xs, V as bs, W as ws, X as Cs, Y as kn, Z as Ss, _ as _s, $ as Ms, a0 as ys, a1 as $n } from "../chunks/index-ui7isTRa.js";
|
|
2
|
+
import { a2 as ip, a3 as cp, a5 as lp, a6 as up, a7 as dp, a8 as fp, a9 as pp, S as vp, c as mp, d as gp, f as hp, e as xp, aa as bp, ab as wp, ac as Cp, a as Sp, b as _p, a4 as Mp } from "../chunks/index-ui7isTRa.js";
|
|
3
3
|
import { j as a } from "../chunks/jsx-runtime-BYq8_R6m.js";
|
|
4
4
|
import * as i from "react";
|
|
5
5
|
import X from "react";
|
|
6
6
|
import { c as C } from "../chunks/utils-C3tlRhMf.js";
|
|
7
|
-
import { L as
|
|
8
|
-
import { u as G, c as de, a as Ln, b as
|
|
9
|
-
import
|
|
7
|
+
import { L as Rp } from "../chunks/utils-C3tlRhMf.js";
|
|
8
|
+
import { u as G, c as de, a as Ln, b as Rs } from "../chunks/index-ctnzfHek.js";
|
|
9
|
+
import Es from "react-dom";
|
|
10
10
|
import { b as Fn, B as un } from "../chunks/button-BFiQhp-f.js";
|
|
11
|
-
var
|
|
11
|
+
var As = "Label", Gn = i.forwardRef((e, t) => /* @__PURE__ */ a.jsx(
|
|
12
12
|
P.label,
|
|
13
13
|
{
|
|
14
14
|
...e,
|
|
@@ -19,11 +19,11 @@ var Es = "Label", Gn = i.forwardRef((e, t) => /* @__PURE__ */ a.jsx(
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
));
|
|
22
|
-
Gn.displayName =
|
|
23
|
-
var
|
|
24
|
-
function
|
|
22
|
+
Gn.displayName = As;
|
|
23
|
+
var Ns = Gn;
|
|
24
|
+
function Cd({ className: e, ...t }) {
|
|
25
25
|
return /* @__PURE__ */ a.jsx(
|
|
26
|
-
|
|
26
|
+
Ns,
|
|
27
27
|
{
|
|
28
28
|
"data-slot": "label",
|
|
29
29
|
className: C(
|
|
@@ -34,14 +34,14 @@ function bd({ className: e, ...t }) {
|
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
|
-
var ct = "rovingFocusGroup.onEntryFocus",
|
|
37
|
+
var ct = "rovingFocusGroup.onEntryFocus", Ps = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [mt, zn, Is] = Ae(ke), [js, Ne] = ee(
|
|
38
38
|
ke,
|
|
39
|
-
[
|
|
40
|
-
), [
|
|
41
|
-
(e, t) => /* @__PURE__ */ a.jsx(mt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a.jsx(mt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a.jsx(
|
|
39
|
+
[Is]
|
|
40
|
+
), [Ts, Ds] = js(ke), Kn = i.forwardRef(
|
|
41
|
+
(e, t) => /* @__PURE__ */ a.jsx(mt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a.jsx(mt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a.jsx(Os, { ...e, ref: t }) }) })
|
|
42
42
|
);
|
|
43
43
|
Kn.displayName = ke;
|
|
44
|
-
var
|
|
44
|
+
var Os = i.forwardRef((e, t) => {
|
|
45
45
|
const {
|
|
46
46
|
__scopeRovingFocusGroup: n,
|
|
47
47
|
orientation: r,
|
|
@@ -53,7 +53,7 @@ var Ds = i.forwardRef((e, t) => {
|
|
|
53
53
|
onEntryFocus: p,
|
|
54
54
|
preventScrollOnEntryFocus: u = !1,
|
|
55
55
|
...f
|
|
56
|
-
} = e, v = i.useRef(null), m = G(t, v), g =
|
|
56
|
+
} = e, v = i.useRef(null), m = G(t, v), g = xe(s), [x, b] = te({
|
|
57
57
|
prop: c,
|
|
58
58
|
defaultProp: l ?? null,
|
|
59
59
|
onChange: d,
|
|
@@ -64,16 +64,16 @@ var Ds = i.forwardRef((e, t) => {
|
|
|
64
64
|
if (D)
|
|
65
65
|
return D.addEventListener(ct, S), () => D.removeEventListener(ct, S);
|
|
66
66
|
}, [S]), /* @__PURE__ */ a.jsx(
|
|
67
|
-
|
|
67
|
+
Ts,
|
|
68
68
|
{
|
|
69
69
|
scope: n,
|
|
70
70
|
orientation: r,
|
|
71
71
|
dir: g,
|
|
72
72
|
loop: o,
|
|
73
|
-
currentTabStopId:
|
|
73
|
+
currentTabStopId: x,
|
|
74
74
|
onItemFocus: i.useCallback(
|
|
75
|
-
(D) =>
|
|
76
|
-
[
|
|
75
|
+
(D) => b(D),
|
|
76
|
+
[b]
|
|
77
77
|
),
|
|
78
78
|
onItemShiftTab: i.useCallback(() => M(!0), []),
|
|
79
79
|
onFocusableItemAdd: i.useCallback(
|
|
@@ -98,9 +98,9 @@ var Ds = i.forwardRef((e, t) => {
|
|
|
98
98
|
onFocus: w(e.onFocus, (D) => {
|
|
99
99
|
const R = !y.current;
|
|
100
100
|
if (D.target === D.currentTarget && R && !_) {
|
|
101
|
-
const k = new CustomEvent(ct,
|
|
101
|
+
const k = new CustomEvent(ct, Ps);
|
|
102
102
|
if (D.currentTarget.dispatchEvent(k), !k.defaultPrevented) {
|
|
103
|
-
const z = E().filter((q) => q.focusable), J = z.find((q) => q.active), me = z.find((q) => q.id ===
|
|
103
|
+
const z = E().filter((q) => q.focusable), J = z.find((q) => q.active), me = z.find((q) => q.id === x), ie = [J, me, ...z].filter(
|
|
104
104
|
Boolean
|
|
105
105
|
).map((q) => q.ref.current);
|
|
106
106
|
Bn(ie, u);
|
|
@@ -122,7 +122,7 @@ var Ds = i.forwardRef((e, t) => {
|
|
|
122
122
|
tabStopId: s,
|
|
123
123
|
children: c,
|
|
124
124
|
...l
|
|
125
|
-
} = e, d = K(), p = s || d, u =
|
|
125
|
+
} = e, d = K(), p = s || d, u = Ds(Vn, n), f = u.currentTabStopId === p, v = zn(n), { onFocusableItemAdd: m, onFocusableItemRemove: g, currentTabStopId: x } = u;
|
|
126
126
|
return i.useEffect(() => {
|
|
127
127
|
if (r)
|
|
128
128
|
return m(), () => g();
|
|
@@ -140,31 +140,31 @@ var Ds = i.forwardRef((e, t) => {
|
|
|
140
140
|
"data-orientation": u.orientation,
|
|
141
141
|
...l,
|
|
142
142
|
ref: t,
|
|
143
|
-
onMouseDown: w(e.onMouseDown, (
|
|
144
|
-
r ? u.onItemFocus(p) :
|
|
143
|
+
onMouseDown: w(e.onMouseDown, (b) => {
|
|
144
|
+
r ? u.onItemFocus(p) : b.preventDefault();
|
|
145
145
|
}),
|
|
146
146
|
onFocus: w(e.onFocus, () => u.onItemFocus(p)),
|
|
147
|
-
onKeyDown: w(e.onKeyDown, (
|
|
148
|
-
if (
|
|
147
|
+
onKeyDown: w(e.onKeyDown, (b) => {
|
|
148
|
+
if (b.key === "Tab" && b.shiftKey) {
|
|
149
149
|
u.onItemShiftTab();
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
|
-
if (
|
|
153
|
-
const _ =
|
|
152
|
+
if (b.target !== b.currentTarget) return;
|
|
153
|
+
const _ = Ls(b, u.orientation, u.dir);
|
|
154
154
|
if (_ !== void 0) {
|
|
155
|
-
if (
|
|
156
|
-
|
|
155
|
+
if (b.metaKey || b.ctrlKey || b.altKey || b.shiftKey) return;
|
|
156
|
+
b.preventDefault();
|
|
157
157
|
let S = v().filter((E) => E.focusable).map((E) => E.ref.current);
|
|
158
158
|
if (_ === "last") S.reverse();
|
|
159
159
|
else if (_ === "prev" || _ === "next") {
|
|
160
160
|
_ === "prev" && S.reverse();
|
|
161
|
-
const E = S.indexOf(
|
|
162
|
-
S = u.loop ?
|
|
161
|
+
const E = S.indexOf(b.currentTarget);
|
|
162
|
+
S = u.loop ? Fs(S, E + 1) : S.slice(E + 1);
|
|
163
163
|
}
|
|
164
164
|
setTimeout(() => Bn(S));
|
|
165
165
|
}
|
|
166
166
|
}),
|
|
167
|
-
children: typeof c == "function" ? c({ isCurrentTabStop: f, hasTabStop:
|
|
167
|
+
children: typeof c == "function" ? c({ isCurrentTabStop: f, hasTabStop: x != null }) : c
|
|
168
168
|
}
|
|
169
169
|
)
|
|
170
170
|
}
|
|
@@ -172,7 +172,7 @@ var Ds = i.forwardRef((e, t) => {
|
|
|
172
172
|
}
|
|
173
173
|
);
|
|
174
174
|
Un.displayName = Vn;
|
|
175
|
-
var
|
|
175
|
+
var ks = {
|
|
176
176
|
ArrowLeft: "prev",
|
|
177
177
|
ArrowUp: "prev",
|
|
178
178
|
ArrowRight: "next",
|
|
@@ -182,34 +182,34 @@ var Os = {
|
|
|
182
182
|
PageDown: "last",
|
|
183
183
|
End: "last"
|
|
184
184
|
};
|
|
185
|
-
function
|
|
185
|
+
function $s(e, t) {
|
|
186
186
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
const r =
|
|
188
|
+
function Ls(e, t, n) {
|
|
189
|
+
const r = $s(e.key, n);
|
|
190
190
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
191
|
-
return
|
|
191
|
+
return ks[r];
|
|
192
192
|
}
|
|
193
193
|
function Bn(e, t = !1) {
|
|
194
194
|
const n = document.activeElement;
|
|
195
195
|
for (const r of e)
|
|
196
196
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Fs(e, t) {
|
|
199
199
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
200
200
|
}
|
|
201
|
-
var It = Kn, jt = Un, gt = ["Enter", " "],
|
|
201
|
+
var It = Kn, jt = Un, gt = ["Enter", " "], Gs = ["ArrowDown", "PageUp", "Home"], Hn = ["ArrowUp", "PageDown", "End"], zs = [...Gs, ...Hn], Ks = {
|
|
202
202
|
ltr: [...gt, "ArrowRight"],
|
|
203
203
|
rtl: [...gt, "ArrowLeft"]
|
|
204
|
-
},
|
|
204
|
+
}, Vs = {
|
|
205
205
|
ltr: ["ArrowLeft"],
|
|
206
206
|
rtl: ["ArrowRight"]
|
|
207
|
-
}, $e = "Menu", [Te,
|
|
208
|
-
|
|
207
|
+
}, $e = "Menu", [Te, Us, Bs] = Ae($e), [be, Tt] = ee($e, [
|
|
208
|
+
Bs,
|
|
209
209
|
Ze,
|
|
210
210
|
Ne
|
|
211
|
-
]), Le = Ze(), Wn = Ne(), [Yn, pe] =
|
|
212
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: c = !0 } = e, l = Le(t), [d, p] = i.useState(null), u = i.useRef(!1), f = V(s), v =
|
|
211
|
+
]), Le = Ze(), Wn = Ne(), [Yn, pe] = be($e), [Hs, Fe] = be($e), Xn = (e) => {
|
|
212
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: c = !0 } = e, l = Le(t), [d, p] = i.useState(null), u = i.useRef(!1), f = V(s), v = xe(o);
|
|
213
213
|
return i.useEffect(() => {
|
|
214
214
|
const m = () => {
|
|
215
215
|
u.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
|
|
@@ -226,7 +226,7 @@ var It = Kn, jt = Un, gt = ["Enter", " "], Fs = ["ArrowDown", "PageUp", "Home"],
|
|
|
226
226
|
content: d,
|
|
227
227
|
onContentChange: p,
|
|
228
228
|
children: /* @__PURE__ */ a.jsx(
|
|
229
|
-
|
|
229
|
+
Hs,
|
|
230
230
|
{
|
|
231
231
|
scope: t,
|
|
232
232
|
onClose: i.useCallback(() => f(!1), [f]),
|
|
@@ -240,26 +240,26 @@ var It = Kn, jt = Un, gt = ["Enter", " "], Fs = ["ArrowDown", "PageUp", "Home"],
|
|
|
240
240
|
) });
|
|
241
241
|
};
|
|
242
242
|
Xn.displayName = $e;
|
|
243
|
-
var
|
|
243
|
+
var Ws = "MenuAnchor", Dt = i.forwardRef(
|
|
244
244
|
(e, t) => {
|
|
245
245
|
const { __scopeMenu: n, ...r } = e, o = Le(n);
|
|
246
246
|
return /* @__PURE__ */ a.jsx(Nt, { ...o, ...r, ref: t });
|
|
247
247
|
}
|
|
248
248
|
);
|
|
249
|
-
Dt.displayName =
|
|
250
|
-
var Ot = "MenuPortal", [
|
|
249
|
+
Dt.displayName = Ws;
|
|
250
|
+
var Ot = "MenuPortal", [Ys, qn] = be(Ot, {
|
|
251
251
|
forceMount: void 0
|
|
252
252
|
}), Zn = (e) => {
|
|
253
253
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = pe(Ot, t);
|
|
254
|
-
return /* @__PURE__ */ a.jsx(
|
|
254
|
+
return /* @__PURE__ */ a.jsx(Ys, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(B, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Sn, { asChild: !0, container: o, children: r }) }) });
|
|
255
255
|
};
|
|
256
256
|
Zn.displayName = Ot;
|
|
257
|
-
var Q = "MenuContent", [
|
|
257
|
+
var Q = "MenuContent", [Xs, kt] = be(Q), Jn = i.forwardRef(
|
|
258
258
|
(e, t) => {
|
|
259
259
|
const n = qn(Q, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = pe(Q, e.__scopeMenu), c = Fe(Q, e.__scopeMenu);
|
|
260
|
-
return /* @__PURE__ */ a.jsx(Te.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(B, { present: r || s.open, children: /* @__PURE__ */ a.jsx(Te.Slot, { scope: e.__scopeMenu, children: c.modal ? /* @__PURE__ */ a.jsx(
|
|
260
|
+
return /* @__PURE__ */ a.jsx(Te.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(B, { present: r || s.open, children: /* @__PURE__ */ a.jsx(Te.Slot, { scope: e.__scopeMenu, children: c.modal ? /* @__PURE__ */ a.jsx(qs, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(Zs, { ...o, ref: t }) }) }) });
|
|
261
261
|
}
|
|
262
|
-
),
|
|
262
|
+
), qs = i.forwardRef(
|
|
263
263
|
(e, t) => {
|
|
264
264
|
const n = pe(Q, e.__scopeMenu), r = i.useRef(null), o = G(t, r);
|
|
265
265
|
return i.useEffect(() => {
|
|
@@ -282,7 +282,7 @@ var Q = "MenuContent", [Ys, kt] = xe(Q), Jn = i.forwardRef(
|
|
|
282
282
|
}
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
|
-
),
|
|
285
|
+
), Zs = i.forwardRef((e, t) => {
|
|
286
286
|
const n = pe(Q, e.__scopeMenu);
|
|
287
287
|
return /* @__PURE__ */ a.jsx(
|
|
288
288
|
$t,
|
|
@@ -295,7 +295,7 @@ var Q = "MenuContent", [Ys, kt] = xe(Q), Jn = i.forwardRef(
|
|
|
295
295
|
onDismiss: () => n.onOpenChange(!1)
|
|
296
296
|
}
|
|
297
297
|
);
|
|
298
|
-
}),
|
|
298
|
+
}), Js = Ln("MenuContent.ScrollLock"), $t = i.forwardRef(
|
|
299
299
|
(e, t) => {
|
|
300
300
|
const {
|
|
301
301
|
__scopeMenu: n,
|
|
@@ -311,10 +311,10 @@ var Q = "MenuContent", [Ys, kt] = xe(Q), Jn = i.forwardRef(
|
|
|
311
311
|
onInteractOutside: v,
|
|
312
312
|
onDismiss: m,
|
|
313
313
|
disableOutsideScroll: g,
|
|
314
|
-
...
|
|
315
|
-
} = e,
|
|
314
|
+
...x
|
|
315
|
+
} = e, b = pe(Q, n), _ = Fe(Q, n), M = Le(n), S = Wn(n), E = Us(n), [y, A] = i.useState(null), T = i.useRef(null), D = G(t, T, b.onContentChange), R = i.useRef(0), k = i.useRef(""), z = i.useRef(0), J = i.useRef(null), me = i.useRef("right"), oe = i.useRef(0), ie = g ? yn : i.Fragment, q = g ? { as: Js, allowPinchZoom: !0 } : void 0, Pe = (j) => {
|
|
316
316
|
var L, U;
|
|
317
|
-
const Y = k.current + j, Z = E().filter((F) => !F.disabled), h = document.activeElement, I = (L = Z.find((F) => F.ref.current === h)) == null ? void 0 : L.textValue, O = Z.map((F) => F.textValue), N =
|
|
317
|
+
const Y = k.current + j, Z = E().filter((F) => !F.disabled), h = document.activeElement, I = (L = Z.find((F) => F.ref.current === h)) == null ? void 0 : L.textValue, O = Z.map((F) => F.textValue), N = ui(O, Y, I), $ = (U = Z.find((F) => F.textValue === N)) == null ? void 0 : U.ref.current;
|
|
318
318
|
(function F(ge) {
|
|
319
319
|
k.current = ge, window.clearTimeout(R.current), ge !== "" && (R.current = window.setTimeout(() => F(""), 1e3));
|
|
320
320
|
})(Y), $ && setTimeout(() => $.focus());
|
|
@@ -322,10 +322,10 @@ var Q = "MenuContent", [Ys, kt] = xe(Q), Jn = i.forwardRef(
|
|
|
322
322
|
i.useEffect(() => () => window.clearTimeout(R.current), []), Mn();
|
|
323
323
|
const ce = i.useCallback((j) => {
|
|
324
324
|
var Z, h;
|
|
325
|
-
return me.current === ((Z = J.current) == null ? void 0 : Z.side) &&
|
|
325
|
+
return me.current === ((Z = J.current) == null ? void 0 : Z.side) && fi(j, (h = J.current) == null ? void 0 : h.area);
|
|
326
326
|
}, []);
|
|
327
327
|
return /* @__PURE__ */ a.jsx(
|
|
328
|
-
|
|
328
|
+
Xs,
|
|
329
329
|
{
|
|
330
330
|
scope: n,
|
|
331
331
|
searchRef: k,
|
|
@@ -391,21 +391,21 @@ var Q = "MenuContent", [Ys, kt] = xe(Q), Jn = i.forwardRef(
|
|
|
391
391
|
{
|
|
392
392
|
role: "menu",
|
|
393
393
|
"aria-orientation": "vertical",
|
|
394
|
-
"data-state": mr(
|
|
394
|
+
"data-state": mr(b.open),
|
|
395
395
|
"data-radix-menu-content": "",
|
|
396
396
|
dir: _.dir,
|
|
397
397
|
...M,
|
|
398
|
-
...
|
|
398
|
+
...x,
|
|
399
399
|
ref: D,
|
|
400
|
-
style: { outline: "none", ...
|
|
401
|
-
onKeyDown: w(
|
|
400
|
+
style: { outline: "none", ...x.style },
|
|
401
|
+
onKeyDown: w(x.onKeyDown, (j) => {
|
|
402
402
|
const Z = j.target.closest("[data-radix-menu-content]") === j.currentTarget, h = j.ctrlKey || j.altKey || j.metaKey, I = j.key.length === 1;
|
|
403
403
|
Z && (j.key === "Tab" && j.preventDefault(), !h && I && Pe(j.key));
|
|
404
404
|
const O = T.current;
|
|
405
|
-
if (j.target !== O || !
|
|
405
|
+
if (j.target !== O || !zs.includes(j.key)) return;
|
|
406
406
|
j.preventDefault();
|
|
407
407
|
const $ = E().filter((L) => !L.disabled).map((L) => L.ref.current);
|
|
408
|
-
Hn.includes(j.key) && $.reverse(),
|
|
408
|
+
Hn.includes(j.key) && $.reverse(), ci($);
|
|
409
409
|
}),
|
|
410
410
|
onBlur: w(e.onBlur, (j) => {
|
|
411
411
|
j.currentTarget.contains(j.target) || (window.clearTimeout(R.current), k.current = "");
|
|
@@ -433,20 +433,20 @@ var Q = "MenuContent", [Ys, kt] = xe(Q), Jn = i.forwardRef(
|
|
|
433
433
|
}
|
|
434
434
|
);
|
|
435
435
|
Jn.displayName = Q;
|
|
436
|
-
var
|
|
436
|
+
var Qs = "MenuGroup", Lt = i.forwardRef(
|
|
437
437
|
(e, t) => {
|
|
438
438
|
const { __scopeMenu: n, ...r } = e;
|
|
439
439
|
return /* @__PURE__ */ a.jsx(P.div, { role: "group", ...r, ref: t });
|
|
440
440
|
}
|
|
441
441
|
);
|
|
442
|
-
Lt.displayName =
|
|
443
|
-
var
|
|
442
|
+
Lt.displayName = Qs;
|
|
443
|
+
var ei = "MenuLabel", Qn = i.forwardRef(
|
|
444
444
|
(e, t) => {
|
|
445
445
|
const { __scopeMenu: n, ...r } = e;
|
|
446
446
|
return /* @__PURE__ */ a.jsx(P.div, { ...r, ref: t });
|
|
447
447
|
}
|
|
448
448
|
);
|
|
449
|
-
Qn.displayName =
|
|
449
|
+
Qn.displayName = ei;
|
|
450
450
|
var Be = "MenuItem", dn = "menu.itemSelect", Je = i.forwardRef(
|
|
451
451
|
(e, t) => {
|
|
452
452
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = i.useRef(null), c = Fe(Be, e.__scopeMenu), l = kt(Be, e.__scopeMenu), d = G(t, s), p = i.useRef(!1), u = () => {
|
|
@@ -518,7 +518,7 @@ var er = i.forwardRef(
|
|
|
518
518
|
}
|
|
519
519
|
);
|
|
520
520
|
}
|
|
521
|
-
),
|
|
521
|
+
), ti = "MenuCheckboxItem", tr = i.forwardRef(
|
|
522
522
|
(e, t) => {
|
|
523
523
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
524
524
|
return /* @__PURE__ */ a.jsx(sr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
|
|
@@ -538,21 +538,21 @@ var er = i.forwardRef(
|
|
|
538
538
|
) });
|
|
539
539
|
}
|
|
540
540
|
);
|
|
541
|
-
tr.displayName =
|
|
542
|
-
var nr = "MenuRadioGroup", [
|
|
541
|
+
tr.displayName = ti;
|
|
542
|
+
var nr = "MenuRadioGroup", [ni, ri] = be(
|
|
543
543
|
nr,
|
|
544
544
|
{ value: void 0, onValueChange: () => {
|
|
545
545
|
} }
|
|
546
546
|
), rr = i.forwardRef(
|
|
547
547
|
(e, t) => {
|
|
548
548
|
const { value: n, onValueChange: r, ...o } = e, s = V(r);
|
|
549
|
-
return /* @__PURE__ */ a.jsx(
|
|
549
|
+
return /* @__PURE__ */ a.jsx(ni, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Lt, { ...o, ref: t }) });
|
|
550
550
|
}
|
|
551
551
|
);
|
|
552
552
|
rr.displayName = nr;
|
|
553
553
|
var or = "MenuRadioItem", ar = i.forwardRef(
|
|
554
554
|
(e, t) => {
|
|
555
|
-
const { value: n, ...r } = e, o =
|
|
555
|
+
const { value: n, ...r } = e, o = ri(or, e.__scopeMenu), s = n === o.value;
|
|
556
556
|
return /* @__PURE__ */ a.jsx(sr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
|
|
557
557
|
Je,
|
|
558
558
|
{
|
|
@@ -574,12 +574,12 @@ var or = "MenuRadioItem", ar = i.forwardRef(
|
|
|
574
574
|
}
|
|
575
575
|
);
|
|
576
576
|
ar.displayName = or;
|
|
577
|
-
var Ft = "MenuItemIndicator", [sr,
|
|
577
|
+
var Ft = "MenuItemIndicator", [sr, oi] = be(
|
|
578
578
|
Ft,
|
|
579
579
|
{ checked: !1 }
|
|
580
580
|
), ir = i.forwardRef(
|
|
581
581
|
(e, t) => {
|
|
582
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s =
|
|
582
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = oi(Ft, n);
|
|
583
583
|
return /* @__PURE__ */ a.jsx(
|
|
584
584
|
B,
|
|
585
585
|
{
|
|
@@ -597,7 +597,7 @@ var Ft = "MenuItemIndicator", [sr, ri] = xe(
|
|
|
597
597
|
}
|
|
598
598
|
);
|
|
599
599
|
ir.displayName = Ft;
|
|
600
|
-
var
|
|
600
|
+
var ai = "MenuSeparator", cr = i.forwardRef(
|
|
601
601
|
(e, t) => {
|
|
602
602
|
const { __scopeMenu: n, ...r } = e;
|
|
603
603
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -611,15 +611,15 @@ var oi = "MenuSeparator", cr = i.forwardRef(
|
|
|
611
611
|
);
|
|
612
612
|
}
|
|
613
613
|
);
|
|
614
|
-
cr.displayName =
|
|
615
|
-
var
|
|
614
|
+
cr.displayName = ai;
|
|
615
|
+
var si = "MenuArrow", lr = i.forwardRef(
|
|
616
616
|
(e, t) => {
|
|
617
617
|
const { __scopeMenu: n, ...r } = e, o = Le(n);
|
|
618
618
|
return /* @__PURE__ */ a.jsx(An, { ...o, ...r, ref: t });
|
|
619
619
|
}
|
|
620
620
|
);
|
|
621
|
-
lr.displayName =
|
|
622
|
-
var Gt = "MenuSub", [
|
|
621
|
+
lr.displayName = si;
|
|
622
|
+
var Gt = "MenuSub", [ii, ur] = be(Gt), dr = (e) => {
|
|
623
623
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = pe(Gt, t), c = Le(t), [l, d] = i.useState(null), [p, u] = i.useState(null), f = V(o);
|
|
624
624
|
return i.useEffect(() => (s.open === !1 && f(!1), () => f(!1)), [s.open, f]), /* @__PURE__ */ a.jsx(At, { ...c, children: /* @__PURE__ */ a.jsx(
|
|
625
625
|
Yn,
|
|
@@ -630,7 +630,7 @@ var Gt = "MenuSub", [si, ur] = xe(Gt), dr = (e) => {
|
|
|
630
630
|
content: p,
|
|
631
631
|
onContentChange: u,
|
|
632
632
|
children: /* @__PURE__ */ a.jsx(
|
|
633
|
-
|
|
633
|
+
ii,
|
|
634
634
|
{
|
|
635
635
|
scope: t,
|
|
636
636
|
contentId: K(),
|
|
@@ -683,7 +683,7 @@ var je = "MenuSubTrigger", fr = i.forwardRef(
|
|
|
683
683
|
u();
|
|
684
684
|
const v = (m = n.content) == null ? void 0 : m.getBoundingClientRect();
|
|
685
685
|
if (v) {
|
|
686
|
-
const
|
|
686
|
+
const x = (g = n.content) == null ? void 0 : g.dataset.side, b = x === "right", _ = b ? -5 : 5, M = v[b ? "left" : "right"], S = v[b ? "right" : "left"];
|
|
687
687
|
s.onPointerGraceIntentChange({
|
|
688
688
|
area: [
|
|
689
689
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
@@ -694,7 +694,7 @@ var je = "MenuSubTrigger", fr = i.forwardRef(
|
|
|
694
694
|
{ x: S, y: v.bottom },
|
|
695
695
|
{ x: M, y: v.bottom }
|
|
696
696
|
],
|
|
697
|
-
side:
|
|
697
|
+
side: x
|
|
698
698
|
}), window.clearTimeout(l.current), l.current = window.setTimeout(
|
|
699
699
|
() => s.onPointerGraceIntentChange(null),
|
|
700
700
|
300
|
|
@@ -708,7 +708,7 @@ var je = "MenuSubTrigger", fr = i.forwardRef(
|
|
|
708
708
|
onKeyDown: w(e.onKeyDown, (f) => {
|
|
709
709
|
var m;
|
|
710
710
|
const v = s.searchRef.current !== "";
|
|
711
|
-
e.disabled || v && f.key === " " ||
|
|
711
|
+
e.disabled || v && f.key === " " || Ks[r.dir].includes(f.key) && (n.onOpenChange(!0), (m = n.content) == null || m.focus(), f.preventDefault());
|
|
712
712
|
})
|
|
713
713
|
}
|
|
714
714
|
) });
|
|
@@ -743,7 +743,7 @@ var pr = "MenuSubContent", vr = i.forwardRef(
|
|
|
743
743
|
}),
|
|
744
744
|
onKeyDown: w(e.onKeyDown, (u) => {
|
|
745
745
|
var m;
|
|
746
|
-
const f = u.currentTarget.contains(u.target), v =
|
|
746
|
+
const f = u.currentTarget.contains(u.target), v = Vs[c.dir].includes(u.key);
|
|
747
747
|
f && v && (s.onOpenChange(!1), (m = l.trigger) == null || m.focus(), u.preventDefault());
|
|
748
748
|
})
|
|
749
749
|
}
|
|
@@ -760,24 +760,24 @@ function He(e) {
|
|
|
760
760
|
function zt(e) {
|
|
761
761
|
return He(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function ci(e) {
|
|
764
764
|
const t = document.activeElement;
|
|
765
765
|
for (const n of e)
|
|
766
766
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function li(e, t) {
|
|
769
769
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function ui(e, t, n) {
|
|
772
772
|
const o = t.length > 1 && Array.from(t).every((p) => p === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
773
|
-
let c =
|
|
773
|
+
let c = li(e, Math.max(s, 0));
|
|
774
774
|
o.length === 1 && (c = c.filter((p) => p !== n));
|
|
775
775
|
const d = c.find(
|
|
776
776
|
(p) => p.toLowerCase().startsWith(o.toLowerCase())
|
|
777
777
|
);
|
|
778
778
|
return d !== n ? d : void 0;
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function di(e, t) {
|
|
781
781
|
const { x: n, y: r } = e;
|
|
782
782
|
let o = !1;
|
|
783
783
|
for (let s = 0, c = t.length - 1; s < t.length; c = s++) {
|
|
@@ -786,18 +786,18 @@ function ui(e, t) {
|
|
|
786
786
|
}
|
|
787
787
|
return o;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function fi(e, t) {
|
|
790
790
|
if (!t) return !1;
|
|
791
791
|
const n = { x: e.clientX, y: e.clientY };
|
|
792
|
-
return
|
|
792
|
+
return di(n, t);
|
|
793
793
|
}
|
|
794
794
|
function De(e) {
|
|
795
795
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
796
796
|
}
|
|
797
|
-
var gr = Xn, hr = Dt,
|
|
797
|
+
var gr = Xn, hr = Dt, xr = Zn, br = Jn, wr = Lt, Cr = Qn, Sr = Je, _r = tr, Mr = rr, yr = ar, Rr = ir, Er = cr, Ar = lr, Nr = dr, Pr = fr, Ir = vr, Qe = "DropdownMenu", [pi, Sd] = ee(
|
|
798
798
|
Qe,
|
|
799
799
|
[Tt]
|
|
800
|
-
), H = Tt(), [
|
|
800
|
+
), H = Tt(), [vi, jr] = pi(Qe), Tr = (e) => {
|
|
801
801
|
const {
|
|
802
802
|
__scopeDropdownMenu: t,
|
|
803
803
|
children: n,
|
|
@@ -813,7 +813,7 @@ var gr = Xn, hr = Dt, br = Zn, xr = Jn, wr = Lt, Cr = Qn, Sr = Je, _r = tr, Mr =
|
|
|
813
813
|
caller: Qe
|
|
814
814
|
});
|
|
815
815
|
return /* @__PURE__ */ a.jsx(
|
|
816
|
-
|
|
816
|
+
vi,
|
|
817
817
|
{
|
|
818
818
|
scope: t,
|
|
819
819
|
triggerId: K(),
|
|
@@ -855,16 +855,16 @@ var Dr = "DropdownMenuTrigger", Or = i.forwardRef(
|
|
|
855
855
|
}
|
|
856
856
|
);
|
|
857
857
|
Or.displayName = Dr;
|
|
858
|
-
var
|
|
858
|
+
var mi = "DropdownMenuPortal", kr = (e) => {
|
|
859
859
|
const { __scopeDropdownMenu: t, ...n } = e, r = H(t);
|
|
860
|
-
return /* @__PURE__ */ a.jsx(
|
|
860
|
+
return /* @__PURE__ */ a.jsx(xr, { ...r, ...n });
|
|
861
861
|
};
|
|
862
|
-
kr.displayName =
|
|
862
|
+
kr.displayName = mi;
|
|
863
863
|
var $r = "DropdownMenuContent", Lr = i.forwardRef(
|
|
864
864
|
(e, t) => {
|
|
865
865
|
const { __scopeDropdownMenu: n, ...r } = e, o = jr($r, n), s = H(n), c = i.useRef(!1);
|
|
866
866
|
return /* @__PURE__ */ a.jsx(
|
|
867
|
-
|
|
867
|
+
br,
|
|
868
868
|
{
|
|
869
869
|
id: o.contentId,
|
|
870
870
|
"aria-labelledby": o.triggerId,
|
|
@@ -892,60 +892,60 @@ var $r = "DropdownMenuContent", Lr = i.forwardRef(
|
|
|
892
892
|
}
|
|
893
893
|
);
|
|
894
894
|
Lr.displayName = $r;
|
|
895
|
-
var
|
|
895
|
+
var gi = "DropdownMenuGroup", Fr = i.forwardRef(
|
|
896
896
|
(e, t) => {
|
|
897
897
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
898
898
|
return /* @__PURE__ */ a.jsx(wr, { ...o, ...r, ref: t });
|
|
899
899
|
}
|
|
900
900
|
);
|
|
901
|
-
Fr.displayName =
|
|
902
|
-
var
|
|
901
|
+
Fr.displayName = gi;
|
|
902
|
+
var hi = "DropdownMenuLabel", Gr = i.forwardRef(
|
|
903
903
|
(e, t) => {
|
|
904
904
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
905
905
|
return /* @__PURE__ */ a.jsx(Cr, { ...o, ...r, ref: t });
|
|
906
906
|
}
|
|
907
907
|
);
|
|
908
|
-
Gr.displayName =
|
|
909
|
-
var
|
|
908
|
+
Gr.displayName = hi;
|
|
909
|
+
var xi = "DropdownMenuItem", zr = i.forwardRef(
|
|
910
910
|
(e, t) => {
|
|
911
911
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
912
912
|
return /* @__PURE__ */ a.jsx(Sr, { ...o, ...r, ref: t });
|
|
913
913
|
}
|
|
914
914
|
);
|
|
915
|
-
zr.displayName =
|
|
915
|
+
zr.displayName = xi;
|
|
916
916
|
var bi = "DropdownMenuCheckboxItem", Kr = i.forwardRef((e, t) => {
|
|
917
917
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
918
918
|
return /* @__PURE__ */ a.jsx(_r, { ...o, ...r, ref: t });
|
|
919
919
|
});
|
|
920
920
|
Kr.displayName = bi;
|
|
921
|
-
var
|
|
921
|
+
var wi = "DropdownMenuRadioGroup", Vr = i.forwardRef((e, t) => {
|
|
922
922
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
923
923
|
return /* @__PURE__ */ a.jsx(Mr, { ...o, ...r, ref: t });
|
|
924
924
|
});
|
|
925
|
-
Vr.displayName =
|
|
926
|
-
var
|
|
925
|
+
Vr.displayName = wi;
|
|
926
|
+
var Ci = "DropdownMenuRadioItem", Ur = i.forwardRef((e, t) => {
|
|
927
927
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
928
928
|
return /* @__PURE__ */ a.jsx(yr, { ...o, ...r, ref: t });
|
|
929
929
|
});
|
|
930
|
-
Ur.displayName =
|
|
931
|
-
var
|
|
930
|
+
Ur.displayName = Ci;
|
|
931
|
+
var Si = "DropdownMenuItemIndicator", Br = i.forwardRef((e, t) => {
|
|
932
932
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
933
933
|
return /* @__PURE__ */ a.jsx(Rr, { ...o, ...r, ref: t });
|
|
934
934
|
});
|
|
935
|
-
Br.displayName =
|
|
936
|
-
var
|
|
935
|
+
Br.displayName = Si;
|
|
936
|
+
var _i = "DropdownMenuSeparator", Hr = i.forwardRef((e, t) => {
|
|
937
937
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
938
938
|
return /* @__PURE__ */ a.jsx(Er, { ...o, ...r, ref: t });
|
|
939
939
|
});
|
|
940
|
-
Hr.displayName =
|
|
941
|
-
var
|
|
940
|
+
Hr.displayName = _i;
|
|
941
|
+
var Mi = "DropdownMenuArrow", yi = i.forwardRef(
|
|
942
942
|
(e, t) => {
|
|
943
943
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
944
944
|
return /* @__PURE__ */ a.jsx(Ar, { ...o, ...r, ref: t });
|
|
945
945
|
}
|
|
946
946
|
);
|
|
947
|
-
|
|
948
|
-
var
|
|
947
|
+
yi.displayName = Mi;
|
|
948
|
+
var Ri = (e) => {
|
|
949
949
|
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, c = H(t), [l, d] = te({
|
|
950
950
|
prop: r,
|
|
951
951
|
defaultProp: s ?? !1,
|
|
@@ -953,12 +953,12 @@ var yi = (e) => {
|
|
|
953
953
|
caller: "DropdownMenuSub"
|
|
954
954
|
});
|
|
955
955
|
return /* @__PURE__ */ a.jsx(Nr, { ...c, open: l, onOpenChange: d, children: n });
|
|
956
|
-
},
|
|
956
|
+
}, Ei = "DropdownMenuSubTrigger", Wr = i.forwardRef((e, t) => {
|
|
957
957
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
958
958
|
return /* @__PURE__ */ a.jsx(Pr, { ...o, ...r, ref: t });
|
|
959
959
|
});
|
|
960
|
-
Wr.displayName =
|
|
961
|
-
var
|
|
960
|
+
Wr.displayName = Ei;
|
|
961
|
+
var Ai = "DropdownMenuSubContent", Yr = i.forwardRef((e, t) => {
|
|
962
962
|
const { __scopeDropdownMenu: n, ...r } = e, o = H(n);
|
|
963
963
|
return /* @__PURE__ */ a.jsx(
|
|
964
964
|
Ir,
|
|
@@ -977,57 +977,57 @@ var Ei = "DropdownMenuSubContent", Yr = i.forwardRef((e, t) => {
|
|
|
977
977
|
}
|
|
978
978
|
);
|
|
979
979
|
});
|
|
980
|
-
Yr.displayName =
|
|
981
|
-
var
|
|
982
|
-
const
|
|
983
|
-
const
|
|
984
|
-
const
|
|
980
|
+
Yr.displayName = Ai;
|
|
981
|
+
var Ni = Tr, Pi = Or, Xr = kr, Ii = Lr, ji = Fr, Ti = Gr, Di = zr, Oi = Kr, ki = Vr, $i = Ur, qr = Br, Li = Hr, Fi = Ri, Gi = Wr, zi = Yr;
|
|
982
|
+
const Ki = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Zr = Oe("chevron-right", Ki);
|
|
983
|
+
const Vi = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Jr = Oe("circle", Vi);
|
|
984
|
+
const Ui = [
|
|
985
985
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
986
986
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
987
987
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
988
988
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
989
989
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
990
990
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
991
|
-
],
|
|
992
|
-
const
|
|
993
|
-
const
|
|
991
|
+
], Bi = Oe("grip-vertical", Ui);
|
|
992
|
+
const Hi = [["path", { d: "M5 12h14", key: "1ays0h" }]], Wi = Oe("minus", Hi);
|
|
993
|
+
const Yi = [
|
|
994
994
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
995
995
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
996
|
-
],
|
|
997
|
-
function
|
|
998
|
-
return /* @__PURE__ */ a.jsx(
|
|
996
|
+
], Xi = Oe("search", Yi);
|
|
997
|
+
function _d({ ...e }) {
|
|
998
|
+
return /* @__PURE__ */ a.jsx(Ni, { "data-slot": "dropdown-menu", ...e });
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1000
|
+
function Md({ ...e }) {
|
|
1001
1001
|
return /* @__PURE__ */ a.jsx(Xr, { "data-slot": "dropdown-menu-portal", ...e });
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1004
|
-
return /* @__PURE__ */ a.jsx(
|
|
1003
|
+
function yd({ ...e }) {
|
|
1004
|
+
return /* @__PURE__ */ a.jsx(Pi, { "data-slot": "dropdown-menu-trigger", ...e });
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function Rd({ className: e, sideOffset: t = 4, ...n }) {
|
|
1007
1007
|
return /* @__PURE__ */ a.jsx(Xr, { children: /* @__PURE__ */ a.jsx(
|
|
1008
|
-
|
|
1008
|
+
Ii,
|
|
1009
1009
|
{
|
|
1010
1010
|
"data-slot": "dropdown-menu-content",
|
|
1011
1011
|
sideOffset: t,
|
|
1012
1012
|
className: C(
|
|
1013
|
-
"bg-content1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-
|
|
1013
|
+
"bg-content1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-medium",
|
|
1014
1014
|
e
|
|
1015
1015
|
),
|
|
1016
1016
|
...n
|
|
1017
1017
|
}
|
|
1018
1018
|
) });
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return /* @__PURE__ */ a.jsx(
|
|
1020
|
+
function Ed({ ...e }) {
|
|
1021
|
+
return /* @__PURE__ */ a.jsx(ji, { "data-slot": "dropdown-menu-group", ...e });
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function Ad({
|
|
1024
1024
|
className: e,
|
|
1025
1025
|
inset: t,
|
|
1026
1026
|
variant: n = "default",
|
|
1027
1027
|
...r
|
|
1028
1028
|
}) {
|
|
1029
1029
|
return /* @__PURE__ */ a.jsx(
|
|
1030
|
-
|
|
1030
|
+
Di,
|
|
1031
1031
|
{
|
|
1032
1032
|
"data-slot": "dropdown-menu-item",
|
|
1033
1033
|
"data-inset": t,
|
|
@@ -1040,9 +1040,9 @@ function yd({
|
|
|
1040
1040
|
}
|
|
1041
1041
|
);
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function Nd({ className: e, children: t, checked: n, ...r }) {
|
|
1044
1044
|
return /* @__PURE__ */ a.jsxs(
|
|
1045
|
-
|
|
1045
|
+
Oi,
|
|
1046
1046
|
{
|
|
1047
1047
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1048
1048
|
className: C(
|
|
@@ -1058,12 +1058,12 @@ function Rd({ className: e, children: t, checked: n, ...r }) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
);
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1062
|
-
return /* @__PURE__ */ a.jsx(
|
|
1061
|
+
function Pd({ ...e }) {
|
|
1062
|
+
return /* @__PURE__ */ a.jsx(ki, { "data-slot": "dropdown-menu-radio-group", ...e });
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function Id({ className: e, children: t, ...n }) {
|
|
1065
1065
|
return /* @__PURE__ */ a.jsxs(
|
|
1066
|
-
|
|
1066
|
+
$i,
|
|
1067
1067
|
{
|
|
1068
1068
|
"data-slot": "dropdown-menu-radio-item",
|
|
1069
1069
|
className: C(
|
|
@@ -1078,13 +1078,13 @@ function Ad({ className: e, children: t, ...n }) {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
);
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function jd({
|
|
1082
1082
|
className: e,
|
|
1083
1083
|
inset: t,
|
|
1084
1084
|
...n
|
|
1085
1085
|
}) {
|
|
1086
1086
|
return /* @__PURE__ */ a.jsx(
|
|
1087
|
-
|
|
1087
|
+
Ti,
|
|
1088
1088
|
{
|
|
1089
1089
|
"data-slot": "dropdown-menu-label",
|
|
1090
1090
|
"data-inset": t,
|
|
@@ -1093,23 +1093,23 @@ function Nd({
|
|
|
1093
1093
|
}
|
|
1094
1094
|
);
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1097
|
-
return /* @__PURE__ */ a.jsx(
|
|
1096
|
+
function Td({ className: e, ...t }) {
|
|
1097
|
+
return /* @__PURE__ */ a.jsx(Li, { "data-slot": "dropdown-menu-separator", className: C("bg-border -mx-1 my-1 h-px", e), ...t });
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function Dd({ className: e, ...t }) {
|
|
1100
1100
|
return /* @__PURE__ */ a.jsx("span", { "data-slot": "dropdown-menu-shortcut", className: C("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return /* @__PURE__ */ a.jsx(
|
|
1102
|
+
function Od({ ...e }) {
|
|
1103
|
+
return /* @__PURE__ */ a.jsx(Fi, { "data-slot": "dropdown-menu-sub", ...e });
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function kd({
|
|
1106
1106
|
className: e,
|
|
1107
1107
|
inset: t,
|
|
1108
1108
|
children: n,
|
|
1109
1109
|
...r
|
|
1110
1110
|
}) {
|
|
1111
1111
|
return /* @__PURE__ */ a.jsxs(
|
|
1112
|
-
|
|
1112
|
+
Gi,
|
|
1113
1113
|
{
|
|
1114
1114
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1115
1115
|
"data-inset": t,
|
|
@@ -1125,9 +1125,9 @@ function Td({
|
|
|
1125
1125
|
}
|
|
1126
1126
|
);
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function $d({ className: e, ...t }) {
|
|
1129
1129
|
return /* @__PURE__ */ a.jsx(
|
|
1130
|
-
|
|
1130
|
+
zi,
|
|
1131
1131
|
{
|
|
1132
1132
|
"data-slot": "dropdown-menu-sub-content",
|
|
1133
1133
|
className: C(
|
|
@@ -1138,9 +1138,9 @@ function Dd({ className: e, ...t }) {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
);
|
|
1140
1140
|
}
|
|
1141
|
-
var et = "Tabs", [
|
|
1141
|
+
var et = "Tabs", [qi, Ld] = ee(et, [
|
|
1142
1142
|
Ne
|
|
1143
|
-
]), Qr = Ne(), [
|
|
1143
|
+
]), Qr = Ne(), [Zi, Kt] = qi(et), eo = i.forwardRef(
|
|
1144
1144
|
(e, t) => {
|
|
1145
1145
|
const {
|
|
1146
1146
|
__scopeTabs: n,
|
|
@@ -1151,14 +1151,14 @@ var et = "Tabs", [Xi, Od] = ee(et, [
|
|
|
1151
1151
|
dir: l,
|
|
1152
1152
|
activationMode: d = "automatic",
|
|
1153
1153
|
...p
|
|
1154
|
-
} = e, u =
|
|
1154
|
+
} = e, u = xe(l), [f, v] = te({
|
|
1155
1155
|
prop: r,
|
|
1156
1156
|
onChange: o,
|
|
1157
1157
|
defaultProp: s ?? "",
|
|
1158
1158
|
caller: et
|
|
1159
1159
|
});
|
|
1160
1160
|
return /* @__PURE__ */ a.jsx(
|
|
1161
|
-
|
|
1161
|
+
Zi,
|
|
1162
1162
|
{
|
|
1163
1163
|
scope: n,
|
|
1164
1164
|
baseId: K(),
|
|
@@ -1280,13 +1280,13 @@ function io(e, t) {
|
|
|
1280
1280
|
function co(e, t) {
|
|
1281
1281
|
return `${e}-content-${t}`;
|
|
1282
1282
|
}
|
|
1283
|
-
var
|
|
1284
|
-
function
|
|
1285
|
-
return /* @__PURE__ */ a.jsx(
|
|
1283
|
+
var Ji = eo, Qi = no, ec = oo, tc = so;
|
|
1284
|
+
function Fd({ className: e, ...t }) {
|
|
1285
|
+
return /* @__PURE__ */ a.jsx(Ji, { "data-slot": "tabs", className: C("flex flex-col gap-2", e), ...t });
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Gd({ className: e, ...t }) {
|
|
1288
1288
|
return /* @__PURE__ */ a.jsx(
|
|
1289
|
-
|
|
1289
|
+
Qi,
|
|
1290
1290
|
{
|
|
1291
1291
|
"data-slot": "tabs-list",
|
|
1292
1292
|
className: C("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", e),
|
|
@@ -1294,9 +1294,9 @@ function $d({ className: e, ...t }) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
);
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function zd({ className: e, ...t }) {
|
|
1298
1298
|
return /* @__PURE__ */ a.jsx(
|
|
1299
|
-
|
|
1299
|
+
ec,
|
|
1300
1300
|
{
|
|
1301
1301
|
"data-slot": "tabs-trigger",
|
|
1302
1302
|
className: C(
|
|
@@ -1307,15 +1307,15 @@ function Ld({ className: e, ...t }) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
);
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1311
|
-
return /* @__PURE__ */ a.jsx(
|
|
1310
|
+
function Kd({ className: e, ...t }) {
|
|
1311
|
+
return /* @__PURE__ */ a.jsx(tc, { "data-slot": "tabs-content", className: C("flex-1 outline-none", e), ...t });
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Vd({ className: e, ...t }) {
|
|
1314
1314
|
return /* @__PURE__ */ a.jsx("div", { "data-slot": "skeleton", className: C("bg-accent animate-pulse rounded-md", e), ...t });
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function Ud({ className: e, ...t }) {
|
|
1317
1317
|
return /* @__PURE__ */ a.jsx(
|
|
1318
|
-
|
|
1318
|
+
ls,
|
|
1319
1319
|
{
|
|
1320
1320
|
"data-slot": "resizable-panel-group",
|
|
1321
1321
|
className: C("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e),
|
|
@@ -1323,16 +1323,16 @@ function zd({ className: e, ...t }) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return /* @__PURE__ */ a.jsx(
|
|
1326
|
+
function Bd({ ...e }) {
|
|
1327
|
+
return /* @__PURE__ */ a.jsx(us, { "data-slot": "resizable-panel", ...e });
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function Hd({
|
|
1330
1330
|
withHandle: e,
|
|
1331
1331
|
className: t,
|
|
1332
1332
|
...n
|
|
1333
1333
|
}) {
|
|
1334
1334
|
return /* @__PURE__ */ a.jsx(
|
|
1335
|
-
|
|
1335
|
+
ds,
|
|
1336
1336
|
{
|
|
1337
1337
|
"data-slot": "resizable-handle",
|
|
1338
1338
|
className: C(
|
|
@@ -1340,13 +1340,13 @@ function Vd({
|
|
|
1340
1340
|
t
|
|
1341
1341
|
),
|
|
1342
1342
|
...n,
|
|
1343
|
-
children: e && /* @__PURE__ */ a.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a.jsx(
|
|
1343
|
+
children: e && /* @__PURE__ */ a.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a.jsx(Bi, { className: "size-2.5" }) })
|
|
1344
1344
|
}
|
|
1345
1345
|
);
|
|
1346
1346
|
}
|
|
1347
1347
|
var Ve = { exports: {} }, lt = {};
|
|
1348
1348
|
var fn;
|
|
1349
|
-
function
|
|
1349
|
+
function nc() {
|
|
1350
1350
|
if (fn) return lt;
|
|
1351
1351
|
fn = 1;
|
|
1352
1352
|
var e = X;
|
|
@@ -1355,16 +1355,16 @@ function tc() {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, c = e.useDebugValue;
|
|
1357
1357
|
function l(f, v) {
|
|
1358
|
-
var m = v(), g = r({ inst: { value: m, getSnapshot: v } }),
|
|
1358
|
+
var m = v(), g = r({ inst: { value: m, getSnapshot: v } }), x = g[0].inst, b = g[1];
|
|
1359
1359
|
return s(
|
|
1360
1360
|
function() {
|
|
1361
|
-
|
|
1361
|
+
x.value = m, x.getSnapshot = v, d(x) && b({ inst: x });
|
|
1362
1362
|
},
|
|
1363
1363
|
[f, m, v]
|
|
1364
1364
|
), o(
|
|
1365
1365
|
function() {
|
|
1366
|
-
return d(
|
|
1367
|
-
d(
|
|
1366
|
+
return d(x) && b({ inst: x }), f(function() {
|
|
1367
|
+
d(x) && b({ inst: x });
|
|
1368
1368
|
});
|
|
1369
1369
|
},
|
|
1370
1370
|
[f]
|
|
@@ -1388,27 +1388,27 @@ function tc() {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
var ut = {};
|
|
1390
1390
|
var pn;
|
|
1391
|
-
function
|
|
1391
|
+
function rc() {
|
|
1392
1392
|
return pn || (pn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1393
1393
|
function e(m, g) {
|
|
1394
1394
|
return m === g && (m !== 0 || 1 / m === 1 / g) || m !== m && g !== g;
|
|
1395
1395
|
}
|
|
1396
1396
|
function t(m, g) {
|
|
1397
1397
|
u || o.startTransition === void 0 || (u = !0);
|
|
1398
|
-
var
|
|
1398
|
+
var x = g();
|
|
1399
1399
|
if (!f) {
|
|
1400
|
-
var
|
|
1401
|
-
s(
|
|
1400
|
+
var b = g();
|
|
1401
|
+
s(x, b) || (f = !0);
|
|
1402
1402
|
}
|
|
1403
|
-
|
|
1404
|
-
inst: { value:
|
|
1403
|
+
b = c({
|
|
1404
|
+
inst: { value: x, getSnapshot: g }
|
|
1405
1405
|
});
|
|
1406
|
-
var _ =
|
|
1406
|
+
var _ = b[0].inst, M = b[1];
|
|
1407
1407
|
return d(
|
|
1408
1408
|
function() {
|
|
1409
|
-
_.value =
|
|
1409
|
+
_.value = x, _.getSnapshot = g, n(_) && M({ inst: _ });
|
|
1410
1410
|
},
|
|
1411
|
-
[m,
|
|
1411
|
+
[m, x, g]
|
|
1412
1412
|
), l(
|
|
1413
1413
|
function() {
|
|
1414
1414
|
return n(_) && M({ inst: _ }), m(function() {
|
|
@@ -1416,14 +1416,14 @@ function nc() {
|
|
|
1416
1416
|
});
|
|
1417
1417
|
},
|
|
1418
1418
|
[m]
|
|
1419
|
-
), p(
|
|
1419
|
+
), p(x), x;
|
|
1420
1420
|
}
|
|
1421
1421
|
function n(m) {
|
|
1422
1422
|
var g = m.getSnapshot;
|
|
1423
1423
|
m = m.value;
|
|
1424
1424
|
try {
|
|
1425
|
-
var
|
|
1426
|
-
return !s(m,
|
|
1425
|
+
var x = g();
|
|
1426
|
+
return !s(m, x);
|
|
1427
1427
|
} catch {
|
|
1428
1428
|
return !0;
|
|
1429
1429
|
}
|
|
@@ -1437,26 +1437,26 @@ function nc() {
|
|
|
1437
1437
|
}()), ut;
|
|
1438
1438
|
}
|
|
1439
1439
|
var vn;
|
|
1440
|
-
function
|
|
1441
|
-
return vn || (vn = 1, process.env.NODE_ENV === "production" ? Ve.exports =
|
|
1440
|
+
function oc() {
|
|
1441
|
+
return vn || (vn = 1, process.env.NODE_ENV === "production" ? Ve.exports = nc() : Ve.exports = rc()), Ve.exports;
|
|
1442
1442
|
}
|
|
1443
|
-
var
|
|
1444
|
-
function
|
|
1445
|
-
return
|
|
1446
|
-
|
|
1443
|
+
var ac = oc();
|
|
1444
|
+
function sc() {
|
|
1445
|
+
return ac.useSyncExternalStore(
|
|
1446
|
+
ic,
|
|
1447
1447
|
() => !0,
|
|
1448
1448
|
() => !1
|
|
1449
1449
|
);
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function ic() {
|
|
1452
1452
|
return () => {
|
|
1453
1453
|
};
|
|
1454
1454
|
}
|
|
1455
|
-
var Vt = "Avatar", [
|
|
1455
|
+
var Vt = "Avatar", [cc, Wd] = ee(Vt), [lc, lo] = cc(Vt), uo = i.forwardRef(
|
|
1456
1456
|
(e, t) => {
|
|
1457
1457
|
const { __scopeAvatar: n, ...r } = e, [o, s] = i.useState("idle");
|
|
1458
1458
|
return /* @__PURE__ */ a.jsx(
|
|
1459
|
-
|
|
1459
|
+
lc,
|
|
1460
1460
|
{
|
|
1461
1461
|
scope: n,
|
|
1462
1462
|
imageLoadingStatus: o,
|
|
@@ -1470,7 +1470,7 @@ uo.displayName = Vt;
|
|
|
1470
1470
|
var fo = "AvatarImage", po = i.forwardRef(
|
|
1471
1471
|
(e, t) => {
|
|
1472
1472
|
const { __scopeAvatar: n, src: r, onLoadingStatusChange: o = () => {
|
|
1473
|
-
}, ...s } = e, c = lo(fo, n), l =
|
|
1473
|
+
}, ...s } = e, c = lo(fo, n), l = uc(r, s), d = V((p) => {
|
|
1474
1474
|
o(p), c.onImageLoadingStatusChange(p);
|
|
1475
1475
|
});
|
|
1476
1476
|
return ue(() => {
|
|
@@ -1494,8 +1494,8 @@ mo.displayName = vo;
|
|
|
1494
1494
|
function mn(e, t) {
|
|
1495
1495
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1498
|
-
const r =
|
|
1497
|
+
function uc(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
1498
|
+
const r = sc(), o = i.useRef(null), s = r ? (o.current || (o.current = new window.Image()), o.current) : null, [c, l] = i.useState(
|
|
1499
1499
|
() => mn(s, e)
|
|
1500
1500
|
);
|
|
1501
1501
|
return ue(() => {
|
|
@@ -1511,8 +1511,8 @@ function lc(e, { referrerPolicy: t, crossOrigin: n }) {
|
|
|
1511
1511
|
};
|
|
1512
1512
|
}, [s, n, t]), c;
|
|
1513
1513
|
}
|
|
1514
|
-
var
|
|
1515
|
-
const
|
|
1514
|
+
var dc = uo, fc = po, pc = mo;
|
|
1515
|
+
const vc = Pn(
|
|
1516
1516
|
"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",
|
|
1517
1517
|
{
|
|
1518
1518
|
variants: {
|
|
@@ -1541,29 +1541,29 @@ const pc = Pn(
|
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
);
|
|
1544
|
-
function
|
|
1544
|
+
function Yd({
|
|
1545
1545
|
className: e,
|
|
1546
1546
|
color: t = "default",
|
|
1547
1547
|
isBordered: n = !1,
|
|
1548
1548
|
size: r = "md",
|
|
1549
1549
|
...o
|
|
1550
1550
|
}) {
|
|
1551
|
-
return /* @__PURE__ */ a.jsx(
|
|
1551
|
+
return /* @__PURE__ */ a.jsx(dc, { "data-slot": "avatar", asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
1552
1552
|
"span",
|
|
1553
1553
|
{
|
|
1554
1554
|
tabIndex: -1,
|
|
1555
1555
|
"data-slot": "avatar",
|
|
1556
|
-
className: C(
|
|
1556
|
+
className: C(vc({ color: t, isBordered: n, size: r }), e),
|
|
1557
1557
|
...o
|
|
1558
1558
|
}
|
|
1559
1559
|
) });
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
return /* @__PURE__ */ a.jsx(
|
|
1561
|
+
function Xd({ className: e, ...t }) {
|
|
1562
|
+
return /* @__PURE__ */ a.jsx(fc, { "data-slot": "avatar-image", className: C("aspect-square size-full", e), ...t });
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function qd({ className: e, ...t }) {
|
|
1565
1565
|
return /* @__PURE__ */ a.jsx(
|
|
1566
|
-
|
|
1566
|
+
pc,
|
|
1567
1567
|
{
|
|
1568
1568
|
"data-slot": "avatar-fallback",
|
|
1569
1569
|
className: C(" flex size-full items-center justify-center rounded-full", e),
|
|
@@ -1571,9 +1571,9 @@ function Wd({ className: e, ...t }) {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
);
|
|
1573
1573
|
}
|
|
1574
|
-
var tt = "Popover", [go,
|
|
1574
|
+
var tt = "Popover", [go, Zd] = ee(tt, [
|
|
1575
1575
|
Ze
|
|
1576
|
-
]), Ge = Ze(), [
|
|
1576
|
+
]), Ge = Ze(), [mc, ve] = go(tt), ho = (e) => {
|
|
1577
1577
|
const {
|
|
1578
1578
|
__scopePopover: t,
|
|
1579
1579
|
children: n,
|
|
@@ -1588,7 +1588,7 @@ var tt = "Popover", [go, Yd] = ee(tt, [
|
|
|
1588
1588
|
caller: tt
|
|
1589
1589
|
});
|
|
1590
1590
|
return /* @__PURE__ */ a.jsx(At, { ...l, children: /* @__PURE__ */ a.jsx(
|
|
1591
|
-
|
|
1591
|
+
mc,
|
|
1592
1592
|
{
|
|
1593
1593
|
scope: t,
|
|
1594
1594
|
contentId: K(),
|
|
@@ -1605,13 +1605,13 @@ var tt = "Popover", [go, Yd] = ee(tt, [
|
|
|
1605
1605
|
) });
|
|
1606
1606
|
};
|
|
1607
1607
|
ho.displayName = tt;
|
|
1608
|
-
var
|
|
1608
|
+
var xo = "PopoverAnchor", bo = i.forwardRef(
|
|
1609
1609
|
(e, t) => {
|
|
1610
|
-
const { __scopePopover: n, ...r } = e, o = ve(
|
|
1610
|
+
const { __scopePopover: n, ...r } = e, o = ve(xo, n), s = Ge(n), { onCustomAnchorAdd: c, onCustomAnchorRemove: l } = o;
|
|
1611
1611
|
return i.useEffect(() => (c(), () => l()), [c, l]), /* @__PURE__ */ a.jsx(Nt, { ...s, ...r, ref: t });
|
|
1612
1612
|
}
|
|
1613
1613
|
);
|
|
1614
|
-
|
|
1614
|
+
bo.displayName = xo;
|
|
1615
1615
|
var wo = "PopoverTrigger", Co = i.forwardRef(
|
|
1616
1616
|
(e, t) => {
|
|
1617
1617
|
const { __scopePopover: n, ...r } = e, o = ve(wo, n), s = Ge(n), c = G(t, o.triggerRef), l = /* @__PURE__ */ a.jsx(
|
|
@@ -1631,27 +1631,27 @@ var wo = "PopoverTrigger", Co = i.forwardRef(
|
|
|
1631
1631
|
}
|
|
1632
1632
|
);
|
|
1633
1633
|
Co.displayName = wo;
|
|
1634
|
-
var Ut = "PopoverPortal", [
|
|
1634
|
+
var Ut = "PopoverPortal", [gc, hc] = go(Ut, {
|
|
1635
1635
|
forceMount: void 0
|
|
1636
1636
|
}), So = (e) => {
|
|
1637
1637
|
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = ve(Ut, t);
|
|
1638
|
-
return /* @__PURE__ */ a.jsx(
|
|
1638
|
+
return /* @__PURE__ */ a.jsx(gc, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(B, { present: n || s.open, children: /* @__PURE__ */ a.jsx(Sn, { asChild: !0, container: o, children: r }) }) });
|
|
1639
1639
|
};
|
|
1640
1640
|
So.displayName = Ut;
|
|
1641
1641
|
var ye = "PopoverContent", _o = i.forwardRef(
|
|
1642
1642
|
(e, t) => {
|
|
1643
|
-
const n =
|
|
1644
|
-
return /* @__PURE__ */ a.jsx(B, { present: r || s.open, children: s.modal ? /* @__PURE__ */ a.jsx(bc, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(
|
|
1643
|
+
const n = hc(ye, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = ve(ye, e.__scopePopover);
|
|
1644
|
+
return /* @__PURE__ */ a.jsx(B, { present: r || s.open, children: s.modal ? /* @__PURE__ */ a.jsx(bc, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(wc, { ...o, ref: t }) });
|
|
1645
1645
|
}
|
|
1646
1646
|
);
|
|
1647
1647
|
_o.displayName = ye;
|
|
1648
|
-
var
|
|
1648
|
+
var xc = Ln("PopoverContent.RemoveScroll"), bc = i.forwardRef(
|
|
1649
1649
|
(e, t) => {
|
|
1650
1650
|
const n = ve(ye, e.__scopePopover), r = i.useRef(null), o = G(t, r), s = i.useRef(!1);
|
|
1651
1651
|
return i.useEffect(() => {
|
|
1652
1652
|
const c = r.current;
|
|
1653
1653
|
if (c) return _n(c);
|
|
1654
|
-
}, []), /* @__PURE__ */ a.jsx(yn, { as:
|
|
1654
|
+
}, []), /* @__PURE__ */ a.jsx(yn, { as: xc, allowPinchZoom: !0, children: /* @__PURE__ */ a.jsx(
|
|
1655
1655
|
Mo,
|
|
1656
1656
|
{
|
|
1657
1657
|
...e,
|
|
@@ -1678,7 +1678,7 @@ var hc = Ln("PopoverContent.RemoveScroll"), bc = i.forwardRef(
|
|
|
1678
1678
|
}
|
|
1679
1679
|
) });
|
|
1680
1680
|
}
|
|
1681
|
-
),
|
|
1681
|
+
), wc = i.forwardRef(
|
|
1682
1682
|
(e, t) => {
|
|
1683
1683
|
const n = ve(ye, e.__scopePopover), r = i.useRef(!1), o = i.useRef(!1);
|
|
1684
1684
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -1757,7 +1757,7 @@ var hc = Ln("PopoverContent.RemoveScroll"), bc = i.forwardRef(
|
|
|
1757
1757
|
}
|
|
1758
1758
|
);
|
|
1759
1759
|
}
|
|
1760
|
-
), yo = "PopoverClose",
|
|
1760
|
+
), yo = "PopoverClose", Cc = i.forwardRef(
|
|
1761
1761
|
(e, t) => {
|
|
1762
1762
|
const { __scopePopover: n, ...r } = e, o = ve(yo, n);
|
|
1763
1763
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -1771,61 +1771,61 @@ var hc = Ln("PopoverContent.RemoveScroll"), bc = i.forwardRef(
|
|
|
1771
1771
|
);
|
|
1772
1772
|
}
|
|
1773
1773
|
);
|
|
1774
|
-
|
|
1775
|
-
var
|
|
1774
|
+
Cc.displayName = yo;
|
|
1775
|
+
var Sc = "PopoverArrow", _c = i.forwardRef(
|
|
1776
1776
|
(e, t) => {
|
|
1777
1777
|
const { __scopePopover: n, ...r } = e, o = Ge(n);
|
|
1778
1778
|
return /* @__PURE__ */ a.jsx(An, { ...o, ...r, ref: t });
|
|
1779
1779
|
}
|
|
1780
1780
|
);
|
|
1781
|
-
|
|
1781
|
+
_c.displayName = Sc;
|
|
1782
1782
|
function Ro(e) {
|
|
1783
1783
|
return e ? "open" : "closed";
|
|
1784
1784
|
}
|
|
1785
|
-
var
|
|
1786
|
-
function
|
|
1787
|
-
return /* @__PURE__ */ a.jsx(
|
|
1785
|
+
var Mc = ho, yc = bo, Rc = Co, Ec = So, Ac = _o;
|
|
1786
|
+
function Jd({ ...e }) {
|
|
1787
|
+
return /* @__PURE__ */ a.jsx(Mc, { "data-slot": "popover", ...e });
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1790
|
-
return /* @__PURE__ */ a.jsx(
|
|
1789
|
+
function Qd({ ...e }) {
|
|
1790
|
+
return /* @__PURE__ */ a.jsx(Rc, { "data-slot": "popover-trigger", ...e });
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1793
|
-
return /* @__PURE__ */ a.jsx(
|
|
1794
|
-
|
|
1792
|
+
function ef({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1793
|
+
return /* @__PURE__ */ a.jsx(Ec, { children: /* @__PURE__ */ a.jsx(
|
|
1794
|
+
Ac,
|
|
1795
1795
|
{
|
|
1796
1796
|
"data-slot": "popover-content",
|
|
1797
1797
|
align: t,
|
|
1798
1798
|
sideOffset: n,
|
|
1799
1799
|
className: C(
|
|
1800
|
-
"bg-content1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-
|
|
1800
|
+
"bg-content1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-medium outline-hidden",
|
|
1801
1801
|
e
|
|
1802
1802
|
),
|
|
1803
1803
|
...r
|
|
1804
1804
|
}
|
|
1805
1805
|
) });
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1808
|
-
return /* @__PURE__ */ a.jsx(
|
|
1807
|
+
function tf({ ...e }) {
|
|
1808
|
+
return /* @__PURE__ */ a.jsx(yc, { "data-slot": "popover-anchor", ...e });
|
|
1809
1809
|
}
|
|
1810
|
-
var gn = 1,
|
|
1810
|
+
var gn = 1, Nc = 0.9, Pc = 0.8, Ic = 0.17, dt = 0.1, ft = 0.999, jc = 0.9999, Tc = 0.99, Dc = /[\\\/_+.#"@\[\(\{&]/, Oc = /[\\\/_+.#"@\[\(\{&]/g, kc = /[\s-]/, Eo = /[\s-]/g;
|
|
1811
1811
|
function ht(e, t, n, r, o, s, c) {
|
|
1812
|
-
if (s === t.length) return o === e.length ? gn :
|
|
1812
|
+
if (s === t.length) return o === e.length ? gn : Tc;
|
|
1813
1813
|
var l = `${o},${s}`;
|
|
1814
1814
|
if (c[l] !== void 0) return c[l];
|
|
1815
|
-
for (var d = r.charAt(s), p = n.indexOf(d, o), u = 0, f, v, m, g; p >= 0; ) f = ht(e, t, n, r, p + 1, s + 1, c), f > u && (p === o ? f *= gn :
|
|
1815
|
+
for (var d = r.charAt(s), p = n.indexOf(d, o), u = 0, f, v, m, g; p >= 0; ) f = ht(e, t, n, r, p + 1, s + 1, c), f > u && (p === o ? f *= gn : Dc.test(e.charAt(p - 1)) ? (f *= Pc, m = e.slice(o, p - 1).match(Oc), m && o > 0 && (f *= Math.pow(ft, m.length))) : kc.test(e.charAt(p - 1)) ? (f *= Nc, g = e.slice(o, p - 1).match(Eo), g && o > 0 && (f *= Math.pow(ft, g.length))) : (f *= Ic, o > 0 && (f *= Math.pow(ft, p - o))), e.charAt(p) !== t.charAt(s) && (f *= jc)), (f < dt && n.charAt(p - 1) === r.charAt(s + 1) || r.charAt(s + 1) === r.charAt(s) && n.charAt(p - 1) !== r.charAt(s)) && (v = ht(e, t, n, r, p + 1, s + 2, c), v * dt > f && (f = v * dt)), f > u && (u = f), p = n.indexOf(d, p + 1);
|
|
1816
1816
|
return c[l] = u, u;
|
|
1817
1817
|
}
|
|
1818
1818
|
function hn(e) {
|
|
1819
1819
|
return e.toLowerCase().replace(Eo, " ");
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function $c(e, t, n) {
|
|
1822
1822
|
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, ht(e, t, hn(e), hn(t), 0, 0, {});
|
|
1823
1823
|
}
|
|
1824
|
-
var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]',
|
|
1824
|
+
var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', Lc = '[cmdk-group-heading=""]', Ao = '[cmdk-item=""]', xn = `${Ao}:not([aria-disabled="true"])`, xt = "cmdk-item-select", Se = "data-value", Fc = (e, t, n) => $c(e, t, n), No = i.createContext(void 0), ze = () => i.useContext(No), Po = i.createContext(void 0), Bt = () => i.useContext(Po), Io = i.createContext(void 0), jo = i.forwardRef((e, t) => {
|
|
1825
1825
|
let n = _e(() => {
|
|
1826
1826
|
var h, I;
|
|
1827
1827
|
return { search: "", value: (I = (h = e.value) != null ? h : e.defaultValue) != null ? I : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
1828
|
-
}), r = _e(() => /* @__PURE__ */ new Set()), o = _e(() => /* @__PURE__ */ new Map()), s = _e(() => /* @__PURE__ */ new Map()), c = _e(() => /* @__PURE__ */ new Set()), l = To(e), { label: d, children: p, value: u, onValueChange: f, filter: v, shouldFilter: m, loop: g, disablePointerSelection:
|
|
1828
|
+
}), r = _e(() => /* @__PURE__ */ new Set()), o = _e(() => /* @__PURE__ */ new Map()), s = _e(() => /* @__PURE__ */ new Map()), c = _e(() => /* @__PURE__ */ new Set()), l = To(e), { label: d, children: p, value: u, onValueChange: f, filter: v, shouldFilter: m, loop: g, disablePointerSelection: x = !1, vimBindings: b = !0, ..._ } = e, M = K(), S = K(), E = K(), y = i.useRef(null), A = qc();
|
|
1829
1829
|
he(() => {
|
|
1830
1830
|
if (u !== void 0) {
|
|
1831
1831
|
let h = u.trim();
|
|
@@ -1874,7 +1874,7 @@ var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', $c = '[cmdk-group-head
|
|
|
1874
1874
|
}), filter: () => l.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: M, inputId: E, labelId: S, listInnerRef: y }), []);
|
|
1875
1875
|
function R(h, I) {
|
|
1876
1876
|
var O, N;
|
|
1877
|
-
let $ = (N = (O = l.current) == null ? void 0 : O.filter) != null ? N :
|
|
1877
|
+
let $ = (N = (O = l.current) == null ? void 0 : O.filter) != null ? N : Fc;
|
|
1878
1878
|
return h ? $(h, n.current.search, I) : 0;
|
|
1879
1879
|
}
|
|
1880
1880
|
function k() {
|
|
@@ -1926,7 +1926,7 @@ var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', $c = '[cmdk-group-head
|
|
|
1926
1926
|
function me() {
|
|
1927
1927
|
var h, I, O;
|
|
1928
1928
|
let N = oe();
|
|
1929
|
-
N && (((h = N.parentElement) == null ? void 0 : h.firstChild) === N && ((O = (I = N.closest(Ie)) == null ? void 0 : I.querySelector(
|
|
1929
|
+
N && (((h = N.parentElement) == null ? void 0 : h.firstChild) === N && ((O = (I = N.closest(Ie)) == null ? void 0 : I.querySelector(Lc)) == null || O.scrollIntoView({ block: "nearest" })), N.scrollIntoView({ block: "nearest" }));
|
|
1930
1930
|
}
|
|
1931
1931
|
function oe() {
|
|
1932
1932
|
var h;
|
|
@@ -1934,7 +1934,7 @@ var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', $c = '[cmdk-group-head
|
|
|
1934
1934
|
}
|
|
1935
1935
|
function ie() {
|
|
1936
1936
|
var h;
|
|
1937
|
-
return Array.from(((h = y.current) == null ? void 0 : h.querySelectorAll(
|
|
1937
|
+
return Array.from(((h = y.current) == null ? void 0 : h.querySelectorAll(xn)) || []);
|
|
1938
1938
|
}
|
|
1939
1939
|
function q(h) {
|
|
1940
1940
|
let I = ie()[h];
|
|
@@ -1947,7 +1947,7 @@ var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', $c = '[cmdk-group-head
|
|
|
1947
1947
|
}
|
|
1948
1948
|
function ce(h) {
|
|
1949
1949
|
let I = oe(), O = I == null ? void 0 : I.closest(Ie), N;
|
|
1950
|
-
for (; O && !N; ) O = h > 0 ?
|
|
1950
|
+
for (; O && !N; ) O = h > 0 ? Yc(O, Ie) : Xc(O, Ie), N = O == null ? void 0 : O.querySelector(xn);
|
|
1951
1951
|
N ? T.setState("value", N.getAttribute(Se)) : Pe(h);
|
|
1952
1952
|
}
|
|
1953
1953
|
let j = () => q(ie().length - 1), Y = (h) => {
|
|
@@ -1962,7 +1962,7 @@ var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', $c = '[cmdk-group-head
|
|
|
1962
1962
|
if (!(h.defaultPrevented || O)) switch (h.key) {
|
|
1963
1963
|
case "n":
|
|
1964
1964
|
case "j": {
|
|
1965
|
-
|
|
1965
|
+
b && h.ctrlKey && Y(h);
|
|
1966
1966
|
break;
|
|
1967
1967
|
}
|
|
1968
1968
|
case "ArrowDown": {
|
|
@@ -1971,7 +1971,7 @@ var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', $c = '[cmdk-group-head
|
|
|
1971
1971
|
}
|
|
1972
1972
|
case "p":
|
|
1973
1973
|
case "k": {
|
|
1974
|
-
|
|
1974
|
+
b && h.ctrlKey && Z(h);
|
|
1975
1975
|
break;
|
|
1976
1976
|
}
|
|
1977
1977
|
case "ArrowUp": {
|
|
@@ -1990,13 +1990,13 @@ var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', $c = '[cmdk-group-head
|
|
|
1990
1990
|
h.preventDefault();
|
|
1991
1991
|
let N = oe();
|
|
1992
1992
|
if (N) {
|
|
1993
|
-
let $ = new Event(
|
|
1993
|
+
let $ = new Event(xt);
|
|
1994
1994
|
N.dispatchEvent($);
|
|
1995
1995
|
}
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
|
-
} }, i.createElement("label", { "cmdk-label": "", htmlFor: D.inputId, id: D.labelId, style:
|
|
1999
|
-
}),
|
|
1998
|
+
} }, i.createElement("label", { "cmdk-label": "", htmlFor: D.inputId, id: D.labelId, style: Jc }, d), nt(e, (h) => i.createElement(Po.Provider, { value: T }, i.createElement(No.Provider, { value: D }, h))));
|
|
1999
|
+
}), Gc = i.forwardRef((e, t) => {
|
|
2000
2000
|
var n, r;
|
|
2001
2001
|
let o = K(), s = i.useRef(null), c = i.useContext(Io), l = ze(), d = To(e), p = (r = (n = d.current) == null ? void 0 : n.forceMount) != null ? r : c == null ? void 0 : c.forceMount;
|
|
2002
2002
|
he(() => {
|
|
@@ -2005,34 +2005,34 @@ var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', $c = '[cmdk-group-head
|
|
|
2005
2005
|
let u = Do(o, s, [e.value, e.children, s], e.keywords), f = Bt(), v = fe((A) => A.value && A.value === u.current), m = fe((A) => p || l.filter() === !1 ? !0 : A.search ? A.filtered.items.get(o) > 0 : !0);
|
|
2006
2006
|
i.useEffect(() => {
|
|
2007
2007
|
let A = s.current;
|
|
2008
|
-
if (!(!A || e.disabled)) return A.addEventListener(
|
|
2008
|
+
if (!(!A || e.disabled)) return A.addEventListener(xt, g), () => A.removeEventListener(xt, g);
|
|
2009
2009
|
}, [m, e.onSelect, e.disabled]);
|
|
2010
2010
|
function g() {
|
|
2011
2011
|
var A, T;
|
|
2012
|
-
|
|
2012
|
+
x(), (T = (A = d.current).onSelect) == null || T.call(A, u.current);
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function x() {
|
|
2015
2015
|
f.setState("value", u.current, !0);
|
|
2016
2016
|
}
|
|
2017
2017
|
if (!m) return null;
|
|
2018
|
-
let { disabled:
|
|
2019
|
-
return i.createElement(P.div, { ref: de(s, t), ...y, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!
|
|
2020
|
-
}),
|
|
2018
|
+
let { disabled: b, value: _, onSelect: M, forceMount: S, keywords: E, ...y } = e;
|
|
2019
|
+
return i.createElement(P.div, { ref: de(s, t), ...y, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!b, "aria-selected": !!v, "data-disabled": !!b, "data-selected": !!v, onPointerMove: b || l.getDisablePointerSelection() ? void 0 : x, onClick: b ? void 0 : g }, e.children);
|
|
2020
|
+
}), zc = i.forwardRef((e, t) => {
|
|
2021
2021
|
let { heading: n, children: r, forceMount: o, ...s } = e, c = K(), l = i.useRef(null), d = i.useRef(null), p = K(), u = ze(), f = fe((m) => o || u.filter() === !1 ? !0 : m.search ? m.filtered.groups.has(c) : !0);
|
|
2022
2022
|
he(() => u.group(c), []), Do(c, l, [e.value, e.heading, d]);
|
|
2023
2023
|
let v = i.useMemo(() => ({ id: c, forceMount: o }), [o]);
|
|
2024
2024
|
return i.createElement(P.div, { ref: de(l, t), ...s, "cmdk-group": "", role: "presentation", hidden: f ? void 0 : !0 }, n && i.createElement("div", { ref: d, "cmdk-group-heading": "", "aria-hidden": !0, id: p }, n), nt(e, (m) => i.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? p : void 0 }, i.createElement(Io.Provider, { value: v }, m))));
|
|
2025
|
-
}),
|
|
2025
|
+
}), Kc = i.forwardRef((e, t) => {
|
|
2026
2026
|
let { alwaysRender: n, ...r } = e, o = i.useRef(null), s = fe((c) => !c.search);
|
|
2027
2027
|
return !n && !s ? null : i.createElement(P.div, { ref: de(o, t), ...r, "cmdk-separator": "", role: "separator" });
|
|
2028
|
-
}),
|
|
2028
|
+
}), Vc = i.forwardRef((e, t) => {
|
|
2029
2029
|
let { onValueChange: n, ...r } = e, o = e.value != null, s = Bt(), c = fe((p) => p.search), l = fe((p) => p.selectedItemId), d = ze();
|
|
2030
2030
|
return i.useEffect(() => {
|
|
2031
2031
|
e.value != null && s.setState("search", e.value);
|
|
2032
2032
|
}, [e.value]), i.createElement(P.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": d.listId, "aria-labelledby": d.labelId, "aria-activedescendant": l, id: d.inputId, type: "text", value: o ? e.value : c, onChange: (p) => {
|
|
2033
2033
|
o || s.setState("search", p.target.value), n == null || n(p.target.value);
|
|
2034
2034
|
} });
|
|
2035
|
-
}),
|
|
2035
|
+
}), Uc = i.forwardRef((e, t) => {
|
|
2036
2036
|
let { children: n, label: r = "Suggestions", ...o } = e, s = i.useRef(null), c = i.useRef(null), l = fe((p) => p.selectedItemId), d = ze();
|
|
2037
2037
|
return i.useEffect(() => {
|
|
2038
2038
|
if (c.current && s.current) {
|
|
@@ -2047,21 +2047,21 @@ var Ie = '[cmdk-group=""]', pt = '[cmdk-group-items=""]', $c = '[cmdk-group-head
|
|
|
2047
2047
|
};
|
|
2048
2048
|
}
|
|
2049
2049
|
}, []), i.createElement(P.div, { ref: de(s, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": l, "aria-label": r, id: d.listId }, nt(e, (p) => i.createElement("div", { ref: de(c, d.listInnerRef), "cmdk-list-sizer": "" }, p)));
|
|
2050
|
-
}),
|
|
2050
|
+
}), Bc = i.forwardRef((e, t) => {
|
|
2051
2051
|
let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: s, container: c, ...l } = e;
|
|
2052
2052
|
return i.createElement(In, { open: n, onOpenChange: r }, i.createElement(jn, { container: c }, i.createElement(Tn, { "cmdk-overlay": "", className: o }), i.createElement(Dn, { "aria-label": e.label, "cmdk-dialog": "", className: s }, i.createElement(jo, { ref: t, ...l }))));
|
|
2053
|
-
}),
|
|
2053
|
+
}), Hc = i.forwardRef((e, t) => fe((n) => n.filtered.count === 0) ? i.createElement(P.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), Wc = i.forwardRef((e, t) => {
|
|
2054
2054
|
let { progress: n, children: r, label: o = "Loading...", ...s } = e;
|
|
2055
2055
|
return i.createElement(P.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, nt(e, (c) => i.createElement("div", { "aria-hidden": !0 }, c)));
|
|
2056
|
-
}), we = Object.assign(jo, { List:
|
|
2057
|
-
function
|
|
2056
|
+
}), we = Object.assign(jo, { List: Uc, Item: Gc, Input: Vc, Group: zc, Separator: Kc, Dialog: Bc, Empty: Hc, Loading: Wc });
|
|
2057
|
+
function Yc(e, t) {
|
|
2058
2058
|
let n = e.nextElementSibling;
|
|
2059
2059
|
for (; n; ) {
|
|
2060
2060
|
if (n.matches(t)) return n;
|
|
2061
2061
|
n = n.nextElementSibling;
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function Xc(e, t) {
|
|
2065
2065
|
let n = e.previousElementSibling;
|
|
2066
2066
|
for (; n; ) {
|
|
2067
2067
|
if (n.matches(t)) return n;
|
|
@@ -2097,7 +2097,7 @@ function Do(e, t, n, r = []) {
|
|
|
2097
2097
|
s.value(e, l, d), (c = t.current) == null || c.setAttribute(Se, l), o.current = l;
|
|
2098
2098
|
}), o;
|
|
2099
2099
|
}
|
|
2100
|
-
var
|
|
2100
|
+
var qc = () => {
|
|
2101
2101
|
let [e, t] = i.useState(), n = _e(() => /* @__PURE__ */ new Map());
|
|
2102
2102
|
return he(() => {
|
|
2103
2103
|
n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
|
|
@@ -2105,15 +2105,15 @@ var Xc = () => {
|
|
|
2105
2105
|
n.current.set(r, o), t({});
|
|
2106
2106
|
};
|
|
2107
2107
|
};
|
|
2108
|
-
function
|
|
2108
|
+
function Zc(e) {
|
|
2109
2109
|
let t = e.type;
|
|
2110
2110
|
return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
|
|
2111
2111
|
}
|
|
2112
2112
|
function nt({ asChild: e, children: t }, n) {
|
|
2113
|
-
return e && i.isValidElement(t) ? i.cloneElement(
|
|
2113
|
+
return e && i.isValidElement(t) ? i.cloneElement(Zc(t), { ref: t.ref }, n(t.props.children)) : n(t);
|
|
2114
2114
|
}
|
|
2115
|
-
var
|
|
2116
|
-
function
|
|
2115
|
+
var Jc = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
2116
|
+
function Qc({ className: e, ...t }) {
|
|
2117
2117
|
return /* @__PURE__ */ a.jsx(
|
|
2118
2118
|
we,
|
|
2119
2119
|
{
|
|
@@ -2123,7 +2123,7 @@ function Jc({ className: e, ...t }) {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
);
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function nf({
|
|
2127
2127
|
title: e = "Command Palette",
|
|
2128
2128
|
description: t = "Search for a command to run...",
|
|
2129
2129
|
children: n,
|
|
@@ -2131,17 +2131,17 @@ function Qd({
|
|
|
2131
2131
|
showCloseButton: o = !0,
|
|
2132
2132
|
...s
|
|
2133
2133
|
}) {
|
|
2134
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2135
|
-
/* @__PURE__ */ a.jsxs(
|
|
2136
|
-
/* @__PURE__ */ a.jsx(
|
|
2137
|
-
/* @__PURE__ */ a.jsx(
|
|
2134
|
+
return /* @__PURE__ */ a.jsxs(fs, { ...s, children: [
|
|
2135
|
+
/* @__PURE__ */ a.jsxs(ps, { className: "sr-only", children: [
|
|
2136
|
+
/* @__PURE__ */ a.jsx(vs, { children: e }),
|
|
2137
|
+
/* @__PURE__ */ a.jsx(ms, { children: t })
|
|
2138
2138
|
] }),
|
|
2139
|
-
/* @__PURE__ */ a.jsx(
|
|
2139
|
+
/* @__PURE__ */ a.jsx(gs, { className: C("overflow-hidden p-0", r), showCloseButton: o, children: /* @__PURE__ */ a.jsx(Qc, { 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 }) })
|
|
2140
2140
|
] });
|
|
2141
2141
|
}
|
|
2142
|
-
function
|
|
2142
|
+
function rf({ className: e, ...t }) {
|
|
2143
2143
|
return /* @__PURE__ */ a.jsxs("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [
|
|
2144
|
-
/* @__PURE__ */ a.jsx(
|
|
2144
|
+
/* @__PURE__ */ a.jsx(Xi, { className: "size-4 shrink-0 opacity-50" }),
|
|
2145
2145
|
/* @__PURE__ */ a.jsx(
|
|
2146
2146
|
we.Input,
|
|
2147
2147
|
{
|
|
@@ -2155,7 +2155,7 @@ function ef({ className: e, ...t }) {
|
|
|
2155
2155
|
)
|
|
2156
2156
|
] });
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2158
|
+
function of({ className: e, ...t }) {
|
|
2159
2159
|
return /* @__PURE__ */ a.jsx(
|
|
2160
2160
|
we.List,
|
|
2161
2161
|
{
|
|
@@ -2165,10 +2165,10 @@ function tf({ className: e, ...t }) {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
);
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function af({ ...e }) {
|
|
2169
2169
|
return /* @__PURE__ */ a.jsx(we.Empty, { "data-slot": "command-empty", className: "py-6 text-center text-sm", ...e });
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function sf({ className: e, ...t }) {
|
|
2172
2172
|
return /* @__PURE__ */ a.jsx(
|
|
2173
2173
|
we.Group,
|
|
2174
2174
|
{
|
|
@@ -2181,10 +2181,10 @@ function rf({ className: e, ...t }) {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
);
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function cf({ className: e, ...t }) {
|
|
2185
2185
|
return /* @__PURE__ */ a.jsx(we.Separator, { "data-slot": "command-separator", className: C("bg-border -mx-1 h-px", e), ...t });
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function lf({ className: e, ...t }) {
|
|
2188
2188
|
return /* @__PURE__ */ a.jsx(
|
|
2189
2189
|
we.Item,
|
|
2190
2190
|
{
|
|
@@ -2197,10 +2197,10 @@ function af({ className: e, ...t }) {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
);
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2200
|
+
function uf({ className: e, ...t }) {
|
|
2201
2201
|
return /* @__PURE__ */ a.jsx("span", { "data-slot": "command-shortcut", className: C("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
|
|
2202
2202
|
}
|
|
2203
|
-
var rt = "Collapsible", [
|
|
2203
|
+
var rt = "Collapsible", [el, Oo] = ee(rt), [tl, Ht] = el(rt), ko = i.forwardRef(
|
|
2204
2204
|
(e, t) => {
|
|
2205
2205
|
const {
|
|
2206
2206
|
__scopeCollapsible: n,
|
|
@@ -2216,7 +2216,7 @@ var rt = "Collapsible", [Qc, Oo] = ee(rt), [el, Ht] = Qc(rt), ko = i.forwardRef(
|
|
|
2216
2216
|
caller: rt
|
|
2217
2217
|
});
|
|
2218
2218
|
return /* @__PURE__ */ a.jsx(
|
|
2219
|
-
|
|
2219
|
+
tl,
|
|
2220
2220
|
{
|
|
2221
2221
|
scope: n,
|
|
2222
2222
|
disabled: s,
|
|
@@ -2260,14 +2260,14 @@ Lo.displayName = $o;
|
|
|
2260
2260
|
var Wt = "CollapsibleContent", Fo = i.forwardRef(
|
|
2261
2261
|
(e, t) => {
|
|
2262
2262
|
const { forceMount: n, ...r } = e, o = Ht(Wt, e.__scopeCollapsible);
|
|
2263
|
-
return /* @__PURE__ */ a.jsx(B, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ a.jsx(
|
|
2263
|
+
return /* @__PURE__ */ a.jsx(B, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ a.jsx(nl, { ...r, ref: t, present: s }) });
|
|
2264
2264
|
}
|
|
2265
2265
|
);
|
|
2266
2266
|
Fo.displayName = Wt;
|
|
2267
|
-
var
|
|
2268
|
-
const { __scopeCollapsible: n, present: r, children: o, ...s } = e, c = Ht(Wt, n), [l, d] = i.useState(r), p = i.useRef(null), u = G(t, p), f = i.useRef(0), v = f.current, m = i.useRef(0), g = m.current,
|
|
2267
|
+
var nl = i.forwardRef((e, t) => {
|
|
2268
|
+
const { __scopeCollapsible: n, present: r, children: o, ...s } = e, c = Ht(Wt, n), [l, d] = i.useState(r), p = i.useRef(null), u = G(t, p), f = i.useRef(0), v = f.current, m = i.useRef(0), g = m.current, x = c.open || l, b = i.useRef(x), _ = i.useRef(void 0);
|
|
2269
2269
|
return i.useEffect(() => {
|
|
2270
|
-
const M = requestAnimationFrame(() =>
|
|
2270
|
+
const M = requestAnimationFrame(() => b.current = !1);
|
|
2271
2271
|
return () => cancelAnimationFrame(M);
|
|
2272
2272
|
}, []), ue(() => {
|
|
2273
2273
|
const M = p.current;
|
|
@@ -2277,7 +2277,7 @@ var tl = i.forwardRef((e, t) => {
|
|
|
2277
2277
|
animationName: M.style.animationName
|
|
2278
2278
|
}, M.style.transitionDuration = "0s", M.style.animationName = "none";
|
|
2279
2279
|
const S = M.getBoundingClientRect();
|
|
2280
|
-
f.current = S.height, m.current = S.width,
|
|
2280
|
+
f.current = S.height, m.current = S.width, b.current || (M.style.transitionDuration = _.current.transitionDuration, M.style.animationName = _.current.animationName), d(r);
|
|
2281
2281
|
}
|
|
2282
2282
|
}, [c.open, r]), /* @__PURE__ */ a.jsx(
|
|
2283
2283
|
P.div,
|
|
@@ -2285,7 +2285,7 @@ var tl = i.forwardRef((e, t) => {
|
|
|
2285
2285
|
"data-state": Yt(c.open),
|
|
2286
2286
|
"data-disabled": c.disabled ? "" : void 0,
|
|
2287
2287
|
id: c.contentId,
|
|
2288
|
-
hidden: !
|
|
2288
|
+
hidden: !x,
|
|
2289
2289
|
...s,
|
|
2290
2290
|
ref: u,
|
|
2291
2291
|
style: {
|
|
@@ -2293,27 +2293,27 @@ var tl = i.forwardRef((e, t) => {
|
|
|
2293
2293
|
"--radix-collapsible-content-width": g ? `${g}px` : void 0,
|
|
2294
2294
|
...e.style
|
|
2295
2295
|
},
|
|
2296
|
-
children:
|
|
2296
|
+
children: x && o
|
|
2297
2297
|
}
|
|
2298
2298
|
);
|
|
2299
2299
|
});
|
|
2300
2300
|
function Yt(e) {
|
|
2301
2301
|
return e ? "open" : "closed";
|
|
2302
2302
|
}
|
|
2303
|
-
var
|
|
2304
|
-
|
|
2303
|
+
var rl = ko, ol = Lo, al = Fo, ae = "Accordion", sl = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Xt, il, cl] = Ae(ae), [ot, df] = ee(ae, [
|
|
2304
|
+
cl,
|
|
2305
2305
|
Oo
|
|
2306
2306
|
]), qt = Oo(), Go = X.forwardRef(
|
|
2307
2307
|
(e, t) => {
|
|
2308
2308
|
const { type: n, ...r } = e, o = r, s = r;
|
|
2309
|
-
return /* @__PURE__ */ a.jsx(Xt.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ a.jsx(
|
|
2309
|
+
return /* @__PURE__ */ a.jsx(Xt.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ a.jsx(fl, { ...s, ref: t }) : /* @__PURE__ */ a.jsx(dl, { ...o, ref: t }) });
|
|
2310
2310
|
}
|
|
2311
2311
|
);
|
|
2312
2312
|
Go.displayName = ae;
|
|
2313
|
-
var [zo,
|
|
2313
|
+
var [zo, ll] = ot(ae), [Ko, ul] = ot(
|
|
2314
2314
|
ae,
|
|
2315
2315
|
{ collapsible: !1 }
|
|
2316
|
-
),
|
|
2316
|
+
), dl = X.forwardRef(
|
|
2317
2317
|
(e, t) => {
|
|
2318
2318
|
const {
|
|
2319
2319
|
value: n,
|
|
@@ -2339,7 +2339,7 @@ var [zo, cl] = ot(ae), [Ko, ll] = ot(
|
|
|
2339
2339
|
}
|
|
2340
2340
|
);
|
|
2341
2341
|
}
|
|
2342
|
-
),
|
|
2342
|
+
), fl = X.forwardRef((e, t) => {
|
|
2343
2343
|
const {
|
|
2344
2344
|
value: n,
|
|
2345
2345
|
defaultValue: r,
|
|
@@ -2368,22 +2368,22 @@ var [zo, cl] = ot(ae), [Ko, ll] = ot(
|
|
|
2368
2368
|
children: /* @__PURE__ */ a.jsx(Ko, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ a.jsx(Vo, { ...s, ref: t }) })
|
|
2369
2369
|
}
|
|
2370
2370
|
);
|
|
2371
|
-
}), [
|
|
2371
|
+
}), [pl, at] = ot(ae), Vo = X.forwardRef(
|
|
2372
2372
|
(e, t) => {
|
|
2373
|
-
const { __scopeAccordion: n, disabled: r, dir: o, orientation: s = "vertical", ...c } = e, l = X.useRef(null), d = G(l, t), p =
|
|
2373
|
+
const { __scopeAccordion: n, disabled: r, dir: o, orientation: s = "vertical", ...c } = e, l = X.useRef(null), d = G(l, t), p = il(n), f = xe(o) === "ltr", v = w(e.onKeyDown, (m) => {
|
|
2374
2374
|
var D;
|
|
2375
|
-
if (!
|
|
2376
|
-
const g = m.target,
|
|
2375
|
+
if (!sl.includes(m.key)) return;
|
|
2376
|
+
const g = m.target, x = p().filter((R) => {
|
|
2377
2377
|
var k;
|
|
2378
2378
|
return !((k = R.ref.current) != null && k.disabled);
|
|
2379
|
-
}),
|
|
2380
|
-
if (
|
|
2379
|
+
}), b = x.findIndex((R) => R.ref.current === g), _ = x.length;
|
|
2380
|
+
if (b === -1) return;
|
|
2381
2381
|
m.preventDefault();
|
|
2382
|
-
let M =
|
|
2382
|
+
let M = b;
|
|
2383
2383
|
const S = 0, E = _ - 1, y = () => {
|
|
2384
|
-
M =
|
|
2384
|
+
M = b + 1, M > E && (M = S);
|
|
2385
2385
|
}, A = () => {
|
|
2386
|
-
M =
|
|
2386
|
+
M = b - 1, M < S && (M = E);
|
|
2387
2387
|
};
|
|
2388
2388
|
switch (m.key) {
|
|
2389
2389
|
case "Home":
|
|
@@ -2406,10 +2406,10 @@ var [zo, cl] = ot(ae), [Ko, ll] = ot(
|
|
|
2406
2406
|
break;
|
|
2407
2407
|
}
|
|
2408
2408
|
const T = M % _;
|
|
2409
|
-
(D =
|
|
2409
|
+
(D = x[T].ref.current) == null || D.focus();
|
|
2410
2410
|
});
|
|
2411
2411
|
return /* @__PURE__ */ a.jsx(
|
|
2412
|
-
|
|
2412
|
+
pl,
|
|
2413
2413
|
{
|
|
2414
2414
|
scope: n,
|
|
2415
2415
|
disabled: r,
|
|
@@ -2427,18 +2427,18 @@ var [zo, cl] = ot(ae), [Ko, ll] = ot(
|
|
|
2427
2427
|
}
|
|
2428
2428
|
);
|
|
2429
2429
|
}
|
|
2430
|
-
), We = "AccordionItem", [
|
|
2430
|
+
), We = "AccordionItem", [vl, Zt] = ot(We), Uo = X.forwardRef(
|
|
2431
2431
|
(e, t) => {
|
|
2432
|
-
const { __scopeAccordion: n, value: r, ...o } = e, s = at(We, n), c =
|
|
2432
|
+
const { __scopeAccordion: n, value: r, ...o } = e, s = at(We, n), c = ll(We, n), l = qt(n), d = K(), p = r && c.value.includes(r) || !1, u = s.disabled || e.disabled;
|
|
2433
2433
|
return /* @__PURE__ */ a.jsx(
|
|
2434
|
-
|
|
2434
|
+
vl,
|
|
2435
2435
|
{
|
|
2436
2436
|
scope: n,
|
|
2437
2437
|
open: p,
|
|
2438
2438
|
disabled: u,
|
|
2439
2439
|
triggerId: d,
|
|
2440
2440
|
children: /* @__PURE__ */ a.jsx(
|
|
2441
|
-
|
|
2441
|
+
rl,
|
|
2442
2442
|
{
|
|
2443
2443
|
"data-orientation": s.orientation,
|
|
2444
2444
|
"data-state": qo(p),
|
|
@@ -2473,11 +2473,11 @@ var Bo = "AccordionHeader", Ho = X.forwardRef(
|
|
|
2473
2473
|
}
|
|
2474
2474
|
);
|
|
2475
2475
|
Ho.displayName = Bo;
|
|
2476
|
-
var
|
|
2476
|
+
var bt = "AccordionTrigger", Wo = X.forwardRef(
|
|
2477
2477
|
(e, t) => {
|
|
2478
|
-
const { __scopeAccordion: n, ...r } = e, o = at(ae, n), s = Zt(
|
|
2478
|
+
const { __scopeAccordion: n, ...r } = e, o = at(ae, n), s = Zt(bt, n), c = ul(bt, n), l = qt(n);
|
|
2479
2479
|
return /* @__PURE__ */ a.jsx(Xt.ItemSlot, { scope: n, children: /* @__PURE__ */ a.jsx(
|
|
2480
|
-
|
|
2480
|
+
ol,
|
|
2481
2481
|
{
|
|
2482
2482
|
"aria-disabled": s.open && !c.collapsible || void 0,
|
|
2483
2483
|
"data-orientation": o.orientation,
|
|
@@ -2489,12 +2489,12 @@ var xt = "AccordionTrigger", Wo = X.forwardRef(
|
|
|
2489
2489
|
) });
|
|
2490
2490
|
}
|
|
2491
2491
|
);
|
|
2492
|
-
Wo.displayName =
|
|
2492
|
+
Wo.displayName = bt;
|
|
2493
2493
|
var Yo = "AccordionContent", Xo = X.forwardRef(
|
|
2494
2494
|
(e, t) => {
|
|
2495
2495
|
const { __scopeAccordion: n, ...r } = e, o = at(ae, n), s = Zt(Yo, n), c = qt(n);
|
|
2496
2496
|
return /* @__PURE__ */ a.jsx(
|
|
2497
|
-
|
|
2497
|
+
al,
|
|
2498
2498
|
{
|
|
2499
2499
|
role: "region",
|
|
2500
2500
|
"aria-labelledby": s.triggerId,
|
|
@@ -2515,16 +2515,16 @@ Xo.displayName = Yo;
|
|
|
2515
2515
|
function qo(e) {
|
|
2516
2516
|
return e ? "open" : "closed";
|
|
2517
2517
|
}
|
|
2518
|
-
var
|
|
2519
|
-
function
|
|
2520
|
-
return /* @__PURE__ */ a.jsx(
|
|
2518
|
+
var ml = Go, gl = Uo, hl = Ho, xl = Wo, bl = Xo;
|
|
2519
|
+
function ff({ ...e }) {
|
|
2520
|
+
return /* @__PURE__ */ a.jsx(ml, { "data-slot": "accordion", ...e });
|
|
2521
2521
|
}
|
|
2522
|
-
function
|
|
2523
|
-
return /* @__PURE__ */ a.jsx(
|
|
2522
|
+
function pf({ className: e, ...t }) {
|
|
2523
|
+
return /* @__PURE__ */ a.jsx(gl, { "data-slot": "accordion-item", className: C("border-b last:border-b-0", e), ...t });
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2526
|
-
return /* @__PURE__ */ a.jsx(
|
|
2527
|
-
|
|
2525
|
+
function vf({ className: e, children: t, ...n }) {
|
|
2526
|
+
return /* @__PURE__ */ a.jsx(hl, { className: "flex", children: /* @__PURE__ */ a.jsxs(
|
|
2527
|
+
xl,
|
|
2528
2528
|
{
|
|
2529
2529
|
"data-slot": "accordion-trigger",
|
|
2530
2530
|
className: C(
|
|
@@ -2539,7 +2539,7 @@ function df({ className: e, children: t, ...n }) {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
) });
|
|
2541
2541
|
}
|
|
2542
|
-
function
|
|
2542
|
+
function mf({ className: e, children: t, ...n }) {
|
|
2543
2543
|
return /* @__PURE__ */ a.jsx(
|
|
2544
2544
|
bl,
|
|
2545
2545
|
{
|
|
@@ -2550,10 +2550,10 @@ function ff({ className: e, children: t, ...n }) {
|
|
|
2550
2550
|
}
|
|
2551
2551
|
);
|
|
2552
2552
|
}
|
|
2553
|
-
var Ce = "NavigationMenu", [Jt, Zo,
|
|
2553
|
+
var Ce = "NavigationMenu", [Jt, Zo, wl] = Ae(Ce), [wt, Cl, Sl] = Ae(Ce), [Qt, gf] = ee(
|
|
2554
2554
|
Ce,
|
|
2555
|
-
[
|
|
2556
|
-
), [
|
|
2555
|
+
[wl, Sl]
|
|
2556
|
+
), [_l, ne] = Qt(Ce), [Ml, yl] = Qt(Ce), Jo = i.forwardRef(
|
|
2557
2557
|
(e, t) => {
|
|
2558
2558
|
const {
|
|
2559
2559
|
__scopeNavigationMenu: n,
|
|
@@ -2565,7 +2565,7 @@ var Ce = "NavigationMenu", [Jt, Zo, xl] = Ae(Ce), [wt, wl, Cl] = Ae(Ce), [Qt, pf
|
|
|
2565
2565
|
orientation: d = "horizontal",
|
|
2566
2566
|
dir: p,
|
|
2567
2567
|
...u
|
|
2568
|
-
} = e, [f, v] = i.useState(null), m = G(t, (R) => v(R)), g =
|
|
2568
|
+
} = e, [f, v] = i.useState(null), m = G(t, (R) => v(R)), g = xe(p), x = i.useRef(0), b = i.useRef(0), _ = i.useRef(0), [M, S] = i.useState(!0), [E, y] = te({
|
|
2569
2569
|
prop: r,
|
|
2570
2570
|
onChange: (R) => {
|
|
2571
2571
|
const k = R !== "", z = l > 0;
|
|
@@ -2577,22 +2577,22 @@ var Ce = "NavigationMenu", [Jt, Zo, xl] = Ae(Ce), [wt, wl, Cl] = Ae(Ce), [Qt, pf
|
|
|
2577
2577
|
defaultProp: s ?? "",
|
|
2578
2578
|
caller: Ce
|
|
2579
2579
|
}), A = i.useCallback(() => {
|
|
2580
|
-
window.clearTimeout(
|
|
2580
|
+
window.clearTimeout(b.current), b.current = window.setTimeout(() => y(""), 150);
|
|
2581
2581
|
}, [y]), T = i.useCallback(
|
|
2582
2582
|
(R) => {
|
|
2583
|
-
window.clearTimeout(
|
|
2583
|
+
window.clearTimeout(b.current), y(R);
|
|
2584
2584
|
},
|
|
2585
2585
|
[y]
|
|
2586
2586
|
), D = i.useCallback(
|
|
2587
2587
|
(R) => {
|
|
2588
|
-
E === R ? window.clearTimeout(
|
|
2589
|
-
window.clearTimeout(
|
|
2588
|
+
E === R ? window.clearTimeout(b.current) : x.current = window.setTimeout(() => {
|
|
2589
|
+
window.clearTimeout(b.current), y(R);
|
|
2590
2590
|
}, c);
|
|
2591
2591
|
},
|
|
2592
2592
|
[E, y, c]
|
|
2593
2593
|
);
|
|
2594
2594
|
return i.useEffect(() => () => {
|
|
2595
|
-
window.clearTimeout(
|
|
2595
|
+
window.clearTimeout(x.current), window.clearTimeout(b.current), window.clearTimeout(_.current);
|
|
2596
2596
|
}, []), /* @__PURE__ */ a.jsx(
|
|
2597
2597
|
Qo,
|
|
2598
2598
|
{
|
|
@@ -2603,12 +2603,12 @@ var Ce = "NavigationMenu", [Jt, Zo, xl] = Ae(Ce), [wt, wl, Cl] = Ae(Ce), [Qt, pf
|
|
|
2603
2603
|
orientation: d,
|
|
2604
2604
|
rootNavigationMenu: f,
|
|
2605
2605
|
onTriggerEnter: (R) => {
|
|
2606
|
-
window.clearTimeout(
|
|
2606
|
+
window.clearTimeout(x.current), M ? D(R) : T(R);
|
|
2607
2607
|
},
|
|
2608
2608
|
onTriggerLeave: () => {
|
|
2609
|
-
window.clearTimeout(
|
|
2609
|
+
window.clearTimeout(x.current), A();
|
|
2610
2610
|
},
|
|
2611
|
-
onContentEnter: () => window.clearTimeout(
|
|
2611
|
+
onContentEnter: () => window.clearTimeout(b.current),
|
|
2612
2612
|
onContentLeave: A,
|
|
2613
2613
|
onItemSelect: (R) => {
|
|
2614
2614
|
y((k) => k === R ? "" : R);
|
|
@@ -2629,7 +2629,7 @@ var Ce = "NavigationMenu", [Jt, Zo, xl] = Ae(Ce), [wt, wl, Cl] = Ae(Ce), [Qt, pf
|
|
|
2629
2629
|
}
|
|
2630
2630
|
);
|
|
2631
2631
|
Jo.displayName = Ce;
|
|
2632
|
-
var Ct = "NavigationMenuSub",
|
|
2632
|
+
var Ct = "NavigationMenuSub", Rl = i.forwardRef(
|
|
2633
2633
|
(e, t) => {
|
|
2634
2634
|
const {
|
|
2635
2635
|
__scopeNavigationMenu: n,
|
|
@@ -2661,7 +2661,7 @@ var Ct = "NavigationMenuSub", yl = i.forwardRef(
|
|
|
2661
2661
|
);
|
|
2662
2662
|
}
|
|
2663
2663
|
);
|
|
2664
|
-
|
|
2664
|
+
Rl.displayName = Ct;
|
|
2665
2665
|
var Qo = (e) => {
|
|
2666
2666
|
const {
|
|
2667
2667
|
scope: t,
|
|
@@ -2677,20 +2677,20 @@ var Qo = (e) => {
|
|
|
2677
2677
|
onTriggerLeave: f,
|
|
2678
2678
|
onContentEnter: v,
|
|
2679
2679
|
onContentLeave: m
|
|
2680
|
-
} = e, [g,
|
|
2680
|
+
} = e, [g, x] = i.useState(null), [b, _] = i.useState(/* @__PURE__ */ new Map()), [M, S] = i.useState(null);
|
|
2681
2681
|
return /* @__PURE__ */ a.jsx(
|
|
2682
|
-
|
|
2682
|
+
_l,
|
|
2683
2683
|
{
|
|
2684
2684
|
scope: t,
|
|
2685
2685
|
isRootMenu: n,
|
|
2686
2686
|
rootNavigationMenu: r,
|
|
2687
2687
|
value: l,
|
|
2688
|
-
previousValue:
|
|
2688
|
+
previousValue: xs(l),
|
|
2689
2689
|
baseId: K(),
|
|
2690
2690
|
dir: o,
|
|
2691
2691
|
orientation: s,
|
|
2692
2692
|
viewport: g,
|
|
2693
|
-
onViewportChange:
|
|
2693
|
+
onViewportChange: x,
|
|
2694
2694
|
indicatorTrack: M,
|
|
2695
2695
|
onIndicatorTrackChange: S,
|
|
2696
2696
|
onTriggerEnter: V(u),
|
|
@@ -2705,7 +2705,7 @@ var Qo = (e) => {
|
|
|
2705
2705
|
onViewportContentRemove: i.useCallback((E) => {
|
|
2706
2706
|
_((y) => y.has(E) ? (y.delete(E), new Map(y)) : y);
|
|
2707
2707
|
}, []),
|
|
2708
|
-
children: /* @__PURE__ */ a.jsx(Jt.Provider, { scope: t, children: /* @__PURE__ */ a.jsx(
|
|
2708
|
+
children: /* @__PURE__ */ a.jsx(Jt.Provider, { scope: t, children: /* @__PURE__ */ a.jsx(Ml, { scope: t, items: b, children: c }) })
|
|
2709
2709
|
}
|
|
2710
2710
|
);
|
|
2711
2711
|
}, ea = "NavigationMenuList", ta = i.forwardRef(
|
|
@@ -2715,23 +2715,23 @@ var Qo = (e) => {
|
|
|
2715
2715
|
}
|
|
2716
2716
|
);
|
|
2717
2717
|
ta.displayName = ea;
|
|
2718
|
-
var na = "NavigationMenuItem", [
|
|
2718
|
+
var na = "NavigationMenuItem", [El, ra] = Qt(na), oa = i.forwardRef(
|
|
2719
2719
|
(e, t) => {
|
|
2720
2720
|
const { __scopeNavigationMenu: n, value: r, ...o } = e, s = K(), c = r || s || "LEGACY_REACT_AUTO_VALUE", l = i.useRef(null), d = i.useRef(null), p = i.useRef(null), u = i.useRef(() => {
|
|
2721
2721
|
}), f = i.useRef(!1), v = i.useCallback((g = "start") => {
|
|
2722
2722
|
if (l.current) {
|
|
2723
2723
|
u.current();
|
|
2724
|
-
const
|
|
2725
|
-
|
|
2724
|
+
const x = _t(l.current);
|
|
2725
|
+
x.length && nn(g === "start" ? x : x.reverse());
|
|
2726
2726
|
}
|
|
2727
2727
|
}, []), m = i.useCallback(() => {
|
|
2728
2728
|
if (l.current) {
|
|
2729
2729
|
const g = _t(l.current);
|
|
2730
|
-
g.length && (u.current =
|
|
2730
|
+
g.length && (u.current = Dl(g));
|
|
2731
2731
|
}
|
|
2732
2732
|
}, []);
|
|
2733
2733
|
return /* @__PURE__ */ a.jsx(
|
|
2734
|
-
|
|
2734
|
+
El,
|
|
2735
2735
|
{
|
|
2736
2736
|
scope: n,
|
|
2737
2737
|
value: c,
|
|
@@ -2782,20 +2782,20 @@ var St = "NavigationMenuTrigger", aa = i.forwardRef((e, t) => {
|
|
|
2782
2782
|
s.onItemSelect(c.value), v.current = m;
|
|
2783
2783
|
}),
|
|
2784
2784
|
onKeyDown: w(e.onKeyDown, (g) => {
|
|
2785
|
-
const
|
|
2786
|
-
m && g.key ===
|
|
2785
|
+
const b = { horizontal: "ArrowDown", vertical: s.dir === "rtl" ? "ArrowLeft" : "ArrowRight" }[s.orientation];
|
|
2786
|
+
m && g.key === b && (c.onEntryKeyDown(), g.preventDefault());
|
|
2787
2787
|
})
|
|
2788
2788
|
}
|
|
2789
2789
|
) }) }),
|
|
2790
2790
|
m && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2791
2791
|
/* @__PURE__ */ a.jsx(
|
|
2792
|
-
|
|
2792
|
+
hs,
|
|
2793
2793
|
{
|
|
2794
2794
|
"aria-hidden": !0,
|
|
2795
2795
|
tabIndex: 0,
|
|
2796
2796
|
ref: c.focusProxyRef,
|
|
2797
2797
|
onFocus: (g) => {
|
|
2798
|
-
const
|
|
2798
|
+
const x = c.contentRef.current, b = g.relatedTarget, _ = b === l.current, M = x == null ? void 0 : x.contains(b);
|
|
2799
2799
|
(_ || !M) && c.onFocusProxyEnter(_ ? "start" : "end");
|
|
2800
2800
|
}
|
|
2801
2801
|
}
|
|
@@ -2805,7 +2805,7 @@ var St = "NavigationMenuTrigger", aa = i.forwardRef((e, t) => {
|
|
|
2805
2805
|
] });
|
|
2806
2806
|
});
|
|
2807
2807
|
aa.displayName = St;
|
|
2808
|
-
var
|
|
2808
|
+
var Al = "NavigationMenuLink", bn = "navigationMenu.linkSelect", sa = i.forwardRef(
|
|
2809
2809
|
(e, t) => {
|
|
2810
2810
|
const { __scopeNavigationMenu: n, active: r, onSelect: o, ...s } = e;
|
|
2811
2811
|
return /* @__PURE__ */ a.jsx(fa, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
@@ -2818,11 +2818,11 @@ var El = "NavigationMenuLink", xn = "navigationMenu.linkSelect", sa = i.forwardR
|
|
|
2818
2818
|
onClick: w(
|
|
2819
2819
|
e.onClick,
|
|
2820
2820
|
(c) => {
|
|
2821
|
-
const l = c.target, d = new CustomEvent(
|
|
2821
|
+
const l = c.target, d = new CustomEvent(bn, {
|
|
2822
2822
|
bubbles: !0,
|
|
2823
2823
|
cancelable: !0
|
|
2824
2824
|
});
|
|
2825
|
-
if (l.addEventListener(
|
|
2825
|
+
if (l.addEventListener(bn, (p) => o == null ? void 0 : o(p), { once: !0 }), vt(l, d), !d.defaultPrevented && !c.metaKey) {
|
|
2826
2826
|
const p = new CustomEvent(Ue, {
|
|
2827
2827
|
bubbles: !0,
|
|
2828
2828
|
cancelable: !0
|
|
@@ -2836,22 +2836,22 @@ var El = "NavigationMenuLink", xn = "navigationMenu.linkSelect", sa = i.forwardR
|
|
|
2836
2836
|
) });
|
|
2837
2837
|
}
|
|
2838
2838
|
);
|
|
2839
|
-
sa.displayName =
|
|
2839
|
+
sa.displayName = Al;
|
|
2840
2840
|
var en = "NavigationMenuIndicator", ia = i.forwardRef((e, t) => {
|
|
2841
2841
|
const { forceMount: n, ...r } = e, o = ne(en, e.__scopeNavigationMenu), s = !!o.value;
|
|
2842
|
-
return o.indicatorTrack ?
|
|
2843
|
-
/* @__PURE__ */ a.jsx(B, { present: n || s, children: /* @__PURE__ */ a.jsx(
|
|
2842
|
+
return o.indicatorTrack ? Es.createPortal(
|
|
2843
|
+
/* @__PURE__ */ a.jsx(B, { present: n || s, children: /* @__PURE__ */ a.jsx(Nl, { ...r, ref: t }) }),
|
|
2844
2844
|
o.indicatorTrack
|
|
2845
2845
|
) : null;
|
|
2846
2846
|
});
|
|
2847
2847
|
ia.displayName = en;
|
|
2848
|
-
var
|
|
2848
|
+
var Nl = i.forwardRef((e, t) => {
|
|
2849
2849
|
const { __scopeNavigationMenu: n, ...r } = e, o = ne(en, n), s = Zo(n), [c, l] = i.useState(
|
|
2850
2850
|
null
|
|
2851
2851
|
), [d, p] = i.useState(null), u = o.orientation === "horizontal", f = !!o.value;
|
|
2852
2852
|
i.useEffect(() => {
|
|
2853
|
-
var
|
|
2854
|
-
const g = (
|
|
2853
|
+
var x;
|
|
2854
|
+
const g = (x = s().find((b) => b.value === o.value)) == null ? void 0 : x.ref.current;
|
|
2855
2855
|
g && l(g);
|
|
2856
2856
|
}, [s, o.value]);
|
|
2857
2857
|
const v = () => {
|
|
@@ -2893,7 +2893,7 @@ var Al = i.forwardRef((e, t) => {
|
|
|
2893
2893
|
onRootContentClose: s.onRootContentClose,
|
|
2894
2894
|
...r
|
|
2895
2895
|
};
|
|
2896
|
-
return o.viewport ? /* @__PURE__ */ a.jsx(
|
|
2896
|
+
return o.viewport ? /* @__PURE__ */ a.jsx(Pl, { forceMount: n, ...d, ref: c }) : /* @__PURE__ */ a.jsx(B, { present: n || l, children: /* @__PURE__ */ a.jsx(
|
|
2897
2897
|
la,
|
|
2898
2898
|
{
|
|
2899
2899
|
"data-state": rn(l),
|
|
@@ -2913,7 +2913,7 @@ var Al = i.forwardRef((e, t) => {
|
|
|
2913
2913
|
) });
|
|
2914
2914
|
});
|
|
2915
2915
|
ca.displayName = Re;
|
|
2916
|
-
var
|
|
2916
|
+
var Pl = i.forwardRef((e, t) => {
|
|
2917
2917
|
const n = ne(Re, e.__scopeNavigationMenu), { onViewportContentChange: r, onViewportContentRemove: o } = n;
|
|
2918
2918
|
return ue(() => {
|
|
2919
2919
|
r(e.value, {
|
|
@@ -2931,7 +2931,7 @@ var Nl = i.forwardRef((e, t) => {
|
|
|
2931
2931
|
onRootContentClose: l,
|
|
2932
2932
|
onContentFocusOutside: d,
|
|
2933
2933
|
...p
|
|
2934
|
-
} = e, u = ne(Re, n), f = i.useRef(null), v = G(f, t), m = pa(u.baseId, r), g = va(u.baseId, r),
|
|
2934
|
+
} = e, u = ne(Re, n), f = i.useRef(null), v = G(f, t), m = pa(u.baseId, r), g = va(u.baseId, r), x = Zo(n), b = i.useRef(null), { onItemDismiss: _ } = u;
|
|
2935
2935
|
i.useEffect(() => {
|
|
2936
2936
|
const S = f.current;
|
|
2937
2937
|
if (u.isRootMenu && S) {
|
|
@@ -2943,10 +2943,10 @@ var Nl = i.forwardRef((e, t) => {
|
|
|
2943
2943
|
}
|
|
2944
2944
|
}, [u.isRootMenu, e.value, o, _, l]);
|
|
2945
2945
|
const M = i.useMemo(() => {
|
|
2946
|
-
const E =
|
|
2946
|
+
const E = x().map((k) => k.value);
|
|
2947
2947
|
u.dir === "rtl" && E.reverse();
|
|
2948
2948
|
const y = E.indexOf(u.value), A = E.indexOf(u.previousValue), T = r === u.value, D = A === E.indexOf(r);
|
|
2949
|
-
if (!T && !D) return
|
|
2949
|
+
if (!T && !D) return b.current;
|
|
2950
2950
|
const R = (() => {
|
|
2951
2951
|
if (y !== A) {
|
|
2952
2952
|
if (T && A !== -1) return y > A ? "from-end" : "from-start";
|
|
@@ -2954,8 +2954,8 @@ var Nl = i.forwardRef((e, t) => {
|
|
|
2954
2954
|
}
|
|
2955
2955
|
return null;
|
|
2956
2956
|
})();
|
|
2957
|
-
return
|
|
2958
|
-
}, [u.previousValue, u.value, u.dir,
|
|
2957
|
+
return b.current = R, R;
|
|
2958
|
+
}, [u.previousValue, u.value, u.dir, x, r]);
|
|
2959
2959
|
return /* @__PURE__ */ a.jsx(da, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
2960
2960
|
Pt,
|
|
2961
2961
|
{
|
|
@@ -2982,7 +2982,7 @@ var Nl = i.forwardRef((e, t) => {
|
|
|
2982
2982
|
}),
|
|
2983
2983
|
onPointerDownOutside: w(e.onPointerDownOutside, (S) => {
|
|
2984
2984
|
var T;
|
|
2985
|
-
const E = S.target, y =
|
|
2985
|
+
const E = S.target, y = x().some((D) => {
|
|
2986
2986
|
var R;
|
|
2987
2987
|
return (R = D.ref.current) == null ? void 0 : R.contains(E);
|
|
2988
2988
|
}), A = u.isRootMenu && ((T = u.viewport) == null ? void 0 : T.contains(E));
|
|
@@ -3003,14 +3003,14 @@ var Nl = i.forwardRef((e, t) => {
|
|
|
3003
3003
|
) });
|
|
3004
3004
|
}), tn = "NavigationMenuViewport", ua = i.forwardRef((e, t) => {
|
|
3005
3005
|
const { forceMount: n, ...r } = e, s = !!ne(tn, e.__scopeNavigationMenu).value;
|
|
3006
|
-
return /* @__PURE__ */ a.jsx(B, { present: n || s, children: /* @__PURE__ */ a.jsx(
|
|
3006
|
+
return /* @__PURE__ */ a.jsx(B, { present: n || s, children: /* @__PURE__ */ a.jsx(Il, { ...r, ref: t }) });
|
|
3007
3007
|
});
|
|
3008
3008
|
ua.displayName = tn;
|
|
3009
|
-
var
|
|
3010
|
-
const { __scopeNavigationMenu: n, children: r, ...o } = e, s = ne(tn, n), c = G(t, s.onViewportChange), l =
|
|
3009
|
+
var Il = i.forwardRef((e, t) => {
|
|
3010
|
+
const { __scopeNavigationMenu: n, children: r, ...o } = e, s = ne(tn, n), c = G(t, s.onViewportChange), l = yl(
|
|
3011
3011
|
Re,
|
|
3012
3012
|
e.__scopeNavigationMenu
|
|
3013
|
-
), [d, p] = i.useState(null), [u, f] = i.useState(null), v = d ? (d == null ? void 0 : d.width) + "px" : void 0, m = d ? (d == null ? void 0 : d.height) + "px" : void 0, g = !!s.value,
|
|
3013
|
+
), [d, p] = i.useState(null), [u, f] = i.useState(null), v = d ? (d == null ? void 0 : d.width) + "px" : void 0, m = d ? (d == null ? void 0 : d.height) + "px" : void 0, g = !!s.value, x = g ? s.value : s.previousValue;
|
|
3014
3014
|
return Mt(u, () => {
|
|
3015
3015
|
u && p({ width: u.offsetWidth, height: u.offsetHeight });
|
|
3016
3016
|
}), /* @__PURE__ */ a.jsx(
|
|
@@ -3030,7 +3030,7 @@ var Pl = i.forwardRef((e, t) => {
|
|
|
3030
3030
|
onPointerEnter: w(e.onPointerEnter, s.onContentEnter),
|
|
3031
3031
|
onPointerLeave: w(e.onPointerLeave, Ye(s.onContentLeave)),
|
|
3032
3032
|
children: Array.from(l.items).map(([_, { ref: M, forceMount: S, ...E }]) => {
|
|
3033
|
-
const y =
|
|
3033
|
+
const y = x === _;
|
|
3034
3034
|
return /* @__PURE__ */ a.jsx(B, { present: S || y, children: /* @__PURE__ */ a.jsx(
|
|
3035
3035
|
la,
|
|
3036
3036
|
{
|
|
@@ -3043,14 +3043,14 @@ var Pl = i.forwardRef((e, t) => {
|
|
|
3043
3043
|
})
|
|
3044
3044
|
}
|
|
3045
3045
|
);
|
|
3046
|
-
}),
|
|
3046
|
+
}), jl = "FocusGroup", da = i.forwardRef(
|
|
3047
3047
|
(e, t) => {
|
|
3048
|
-
const { __scopeNavigationMenu: n, ...r } = e, o = ne(
|
|
3048
|
+
const { __scopeNavigationMenu: n, ...r } = e, o = ne(jl, n);
|
|
3049
3049
|
return /* @__PURE__ */ a.jsx(wt.Provider, { scope: n, children: /* @__PURE__ */ a.jsx(wt.Slot, { scope: n, children: /* @__PURE__ */ a.jsx(P.div, { dir: o.dir, ...r, ref: t }) }) });
|
|
3050
3050
|
}
|
|
3051
|
-
), wn = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"],
|
|
3051
|
+
), wn = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], Tl = "FocusGroupItem", fa = i.forwardRef(
|
|
3052
3052
|
(e, t) => {
|
|
3053
|
-
const { __scopeNavigationMenu: n, ...r } = e, o =
|
|
3053
|
+
const { __scopeNavigationMenu: n, ...r } = e, o = Cl(n), s = ne(Tl, n);
|
|
3054
3054
|
return /* @__PURE__ */ a.jsx(wt.ItemSlot, { scope: n, children: /* @__PURE__ */ a.jsx(
|
|
3055
3055
|
P.button,
|
|
3056
3056
|
{
|
|
@@ -3084,7 +3084,7 @@ function nn(e) {
|
|
|
3084
3084
|
const t = document.activeElement;
|
|
3085
3085
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
3086
3086
|
}
|
|
3087
|
-
function
|
|
3087
|
+
function Dl(e) {
|
|
3088
3088
|
return e.forEach((t) => {
|
|
3089
3089
|
t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1");
|
|
3090
3090
|
}), () => {
|
|
@@ -3120,15 +3120,15 @@ function va(e, t) {
|
|
|
3120
3120
|
function Ye(e) {
|
|
3121
3121
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
3122
3122
|
}
|
|
3123
|
-
var
|
|
3124
|
-
function
|
|
3123
|
+
var Ol = Jo, kl = ta, $l = oa, Ll = aa, Fl = sa, Gl = ia, zl = ca, Kl = ua;
|
|
3124
|
+
function hf({
|
|
3125
3125
|
className: e,
|
|
3126
3126
|
children: t,
|
|
3127
3127
|
viewport: n = !0,
|
|
3128
3128
|
...r
|
|
3129
3129
|
}) {
|
|
3130
3130
|
return /* @__PURE__ */ a.jsxs(
|
|
3131
|
-
|
|
3131
|
+
Ol,
|
|
3132
3132
|
{
|
|
3133
3133
|
"data-slot": "navigation-menu",
|
|
3134
3134
|
"data-viewport": n,
|
|
@@ -3136,14 +3136,14 @@ function vf({
|
|
|
3136
3136
|
...r,
|
|
3137
3137
|
children: [
|
|
3138
3138
|
t,
|
|
3139
|
-
n && /* @__PURE__ */ a.jsx(
|
|
3139
|
+
n && /* @__PURE__ */ a.jsx(Ul, {})
|
|
3140
3140
|
]
|
|
3141
3141
|
}
|
|
3142
3142
|
);
|
|
3143
3143
|
}
|
|
3144
|
-
function
|
|
3144
|
+
function xf({ className: e, ...t }) {
|
|
3145
3145
|
return /* @__PURE__ */ a.jsx(
|
|
3146
|
-
|
|
3146
|
+
kl,
|
|
3147
3147
|
{
|
|
3148
3148
|
"data-slot": "navigation-menu-list",
|
|
3149
3149
|
className: C("group flex flex-1 list-none items-center justify-center gap-1", e),
|
|
@@ -3151,18 +3151,18 @@ function mf({ className: e, ...t }) {
|
|
|
3151
3151
|
}
|
|
3152
3152
|
);
|
|
3153
3153
|
}
|
|
3154
|
-
function
|
|
3155
|
-
return /* @__PURE__ */ a.jsx(
|
|
3154
|
+
function bf({ className: e, ...t }) {
|
|
3155
|
+
return /* @__PURE__ */ a.jsx($l, { "data-slot": "navigation-menu-item", className: C("relative", e), ...t });
|
|
3156
3156
|
}
|
|
3157
|
-
const
|
|
3158
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md
|
|
3157
|
+
const Vl = Pn(
|
|
3158
|
+
"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"
|
|
3159
3159
|
);
|
|
3160
|
-
function
|
|
3160
|
+
function wf({ className: e, children: t, ...n }) {
|
|
3161
3161
|
return /* @__PURE__ */ a.jsxs(
|
|
3162
|
-
|
|
3162
|
+
Ll,
|
|
3163
3163
|
{
|
|
3164
3164
|
"data-slot": "navigation-menu-trigger",
|
|
3165
|
-
className: C(
|
|
3165
|
+
className: C(Vl(), "group", e),
|
|
3166
3166
|
...n,
|
|
3167
3167
|
children: [
|
|
3168
3168
|
t,
|
|
@@ -3178,23 +3178,23 @@ function hf({ className: e, children: t, ...n }) {
|
|
|
3178
3178
|
}
|
|
3179
3179
|
);
|
|
3180
3180
|
}
|
|
3181
|
-
function
|
|
3181
|
+
function Cf({ className: e, ...t }) {
|
|
3182
3182
|
return /* @__PURE__ */ a.jsx(
|
|
3183
|
-
|
|
3183
|
+
zl,
|
|
3184
3184
|
{
|
|
3185
3185
|
"data-slot": "navigation-menu-content",
|
|
3186
3186
|
className: C(
|
|
3187
3187
|
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
3188
|
-
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:
|
|
3188
|
+
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:shadow-medium group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
3189
3189
|
e
|
|
3190
3190
|
),
|
|
3191
3191
|
...t
|
|
3192
3192
|
}
|
|
3193
3193
|
);
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3195
|
+
function Ul({ className: e, ...t }) {
|
|
3196
3196
|
return /* @__PURE__ */ a.jsx("div", { className: C("absolute top-full left-0 isolate z-50 flex justify-center"), children: /* @__PURE__ */ a.jsx(
|
|
3197
|
-
|
|
3197
|
+
Kl,
|
|
3198
3198
|
{
|
|
3199
3199
|
"data-slot": "navigation-menu-viewport",
|
|
3200
3200
|
className: C(
|
|
@@ -3205,9 +3205,9 @@ function Vl({ className: e, ...t }) {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
) });
|
|
3207
3207
|
}
|
|
3208
|
-
function
|
|
3208
|
+
function Sf({ className: e, ...t }) {
|
|
3209
3209
|
return /* @__PURE__ */ a.jsx(
|
|
3210
|
-
|
|
3210
|
+
Fl,
|
|
3211
3211
|
{
|
|
3212
3212
|
"data-slot": "navigation-menu-link",
|
|
3213
3213
|
className: C(
|
|
@@ -3218,9 +3218,9 @@ function xf({ className: e, ...t }) {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
);
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function _f({ className: e, ...t }) {
|
|
3222
3222
|
return /* @__PURE__ */ a.jsx(
|
|
3223
|
-
|
|
3223
|
+
Gl,
|
|
3224
3224
|
{
|
|
3225
3225
|
"data-slot": "navigation-menu-indicator",
|
|
3226
3226
|
className: C(
|
|
@@ -3232,7 +3232,7 @@ function wf({ className: e, ...t }) {
|
|
|
3232
3232
|
}
|
|
3233
3233
|
);
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3235
|
+
function Mf({ className: e, ...t }) {
|
|
3236
3236
|
return /* @__PURE__ */ a.jsx(
|
|
3237
3237
|
"div",
|
|
3238
3238
|
{
|
|
@@ -3242,7 +3242,7 @@ function Cf({ className: e, ...t }) {
|
|
|
3242
3242
|
}
|
|
3243
3243
|
);
|
|
3244
3244
|
}
|
|
3245
|
-
function
|
|
3245
|
+
function yf({ className: e, ...t }) {
|
|
3246
3246
|
return /* @__PURE__ */ a.jsx(
|
|
3247
3247
|
"div",
|
|
3248
3248
|
{
|
|
@@ -3255,25 +3255,25 @@ function Sf({ className: e, ...t }) {
|
|
|
3255
3255
|
}
|
|
3256
3256
|
);
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3258
|
+
function Rf({ className: e, ...t }) {
|
|
3259
3259
|
return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-title", className: C("leading-none font-semibold", e), ...t });
|
|
3260
3260
|
}
|
|
3261
|
-
function
|
|
3261
|
+
function Ef({ className: e, ...t }) {
|
|
3262
3262
|
return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-description", className: C("text-muted-foreground text-sm", e), ...t });
|
|
3263
3263
|
}
|
|
3264
|
-
function
|
|
3264
|
+
function Af({ className: e, ...t }) {
|
|
3265
3265
|
return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-action", className: C("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e), ...t });
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function Nf({ className: e, ...t }) {
|
|
3268
3268
|
return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-content", className: C("px-6", e), ...t });
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3270
|
+
function Pf({ className: e, ...t }) {
|
|
3271
3271
|
return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-footer", className: C("flex items-center px-6 [.border-t]:pt-6", e), ...t });
|
|
3272
3272
|
}
|
|
3273
|
-
function
|
|
3273
|
+
function Bl(e, t) {
|
|
3274
3274
|
return i.useReducer((n, r) => t[n][r] ?? n, e);
|
|
3275
3275
|
}
|
|
3276
|
-
var on = "ScrollArea", [ma,
|
|
3276
|
+
var on = "ScrollArea", [ma, If] = ee(on), [Hl, re] = ma(on), ga = i.forwardRef(
|
|
3277
3277
|
(e, t) => {
|
|
3278
3278
|
const {
|
|
3279
3279
|
__scopeScrollArea: n,
|
|
@@ -3281,9 +3281,9 @@ var on = "ScrollArea", [ma, Af] = ee(on), [Bl, re] = ma(on), ga = i.forwardRef(
|
|
|
3281
3281
|
dir: o,
|
|
3282
3282
|
scrollHideDelay: s = 600,
|
|
3283
3283
|
...c
|
|
3284
|
-
} = e, [l, d] = i.useState(null), [p, u] = i.useState(null), [f, v] = i.useState(null), [m, g] = i.useState(null), [
|
|
3284
|
+
} = e, [l, d] = i.useState(null), [p, u] = i.useState(null), [f, v] = i.useState(null), [m, g] = i.useState(null), [x, b] = i.useState(null), [_, M] = i.useState(0), [S, E] = i.useState(0), [y, A] = i.useState(!1), [T, D] = i.useState(!1), R = G(t, (z) => d(z)), k = xe(o);
|
|
3285
3285
|
return /* @__PURE__ */ a.jsx(
|
|
3286
|
-
|
|
3286
|
+
Hl,
|
|
3287
3287
|
{
|
|
3288
3288
|
scope: n,
|
|
3289
3289
|
type: r,
|
|
@@ -3298,8 +3298,8 @@ var on = "ScrollArea", [ma, Af] = ee(on), [Bl, re] = ma(on), ga = i.forwardRef(
|
|
|
3298
3298
|
onScrollbarXChange: g,
|
|
3299
3299
|
scrollbarXEnabled: y,
|
|
3300
3300
|
onScrollbarXEnabledChange: A,
|
|
3301
|
-
scrollbarY:
|
|
3302
|
-
onScrollbarYChange:
|
|
3301
|
+
scrollbarY: x,
|
|
3302
|
+
onScrollbarYChange: b,
|
|
3303
3303
|
scrollbarYEnabled: T,
|
|
3304
3304
|
onScrollbarYEnabledChange: D,
|
|
3305
3305
|
onCornerWidthChange: M,
|
|
@@ -3324,7 +3324,7 @@ var on = "ScrollArea", [ma, Af] = ee(on), [Bl, re] = ma(on), ga = i.forwardRef(
|
|
|
3324
3324
|
}
|
|
3325
3325
|
);
|
|
3326
3326
|
ga.displayName = on;
|
|
3327
|
-
var ha = "ScrollAreaViewport",
|
|
3327
|
+
var ha = "ScrollAreaViewport", xa = i.forwardRef(
|
|
3328
3328
|
(e, t) => {
|
|
3329
3329
|
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, c = re(ha, n), l = i.useRef(null), d = G(t, l, c.onViewportChange);
|
|
3330
3330
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -3365,17 +3365,17 @@ var ha = "ScrollAreaViewport", ba = i.forwardRef(
|
|
|
3365
3365
|
] });
|
|
3366
3366
|
}
|
|
3367
3367
|
);
|
|
3368
|
-
|
|
3369
|
-
var se = "ScrollAreaScrollbar",
|
|
3368
|
+
xa.displayName = ha;
|
|
3369
|
+
var se = "ScrollAreaScrollbar", ba = i.forwardRef(
|
|
3370
3370
|
(e, t) => {
|
|
3371
3371
|
const { forceMount: n, ...r } = e, o = re(se, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: c } = o, l = e.orientation === "horizontal";
|
|
3372
3372
|
return i.useEffect(() => (l ? s(!0) : c(!0), () => {
|
|
3373
3373
|
l ? s(!1) : c(!1);
|
|
3374
|
-
}), [l, s, c]), o.type === "hover" ? /* @__PURE__ */ a.jsx(
|
|
3374
|
+
}), [l, s, c]), o.type === "hover" ? /* @__PURE__ */ a.jsx(Wl, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ a.jsx(Yl, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ a.jsx(wa, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ a.jsx(an, { ...r, ref: t }) : null;
|
|
3375
3375
|
}
|
|
3376
3376
|
);
|
|
3377
|
-
|
|
3378
|
-
var
|
|
3377
|
+
ba.displayName = se;
|
|
3378
|
+
var Wl = i.forwardRef((e, t) => {
|
|
3379
3379
|
const { forceMount: n, ...r } = e, o = re(se, e.__scopeScrollArea), [s, c] = i.useState(!1);
|
|
3380
3380
|
return i.useEffect(() => {
|
|
3381
3381
|
const l = o.scrollArea;
|
|
@@ -3398,8 +3398,8 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3398
3398
|
ref: t
|
|
3399
3399
|
}
|
|
3400
3400
|
) });
|
|
3401
|
-
}),
|
|
3402
|
-
const { forceMount: n, ...r } = e, o = re(se, e.__scopeScrollArea), s = e.orientation === "horizontal", c = it(() => d("SCROLL_END"), 100), [l, d] =
|
|
3401
|
+
}), Yl = i.forwardRef((e, t) => {
|
|
3402
|
+
const { forceMount: n, ...r } = e, o = re(se, e.__scopeScrollArea), s = e.orientation === "horizontal", c = it(() => d("SCROLL_END"), 100), [l, d] = Bl("hidden", {
|
|
3403
3403
|
hidden: {
|
|
3404
3404
|
SCROLL: "scrolling"
|
|
3405
3405
|
},
|
|
@@ -3472,10 +3472,10 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3472
3472
|
onThumbPointerDown: (v) => c.current = v
|
|
3473
3473
|
};
|
|
3474
3474
|
function f(v, m) {
|
|
3475
|
-
return
|
|
3475
|
+
return eu(v, c.current, l, m);
|
|
3476
3476
|
}
|
|
3477
3477
|
return n === "horizontal" ? /* @__PURE__ */ a.jsx(
|
|
3478
|
-
|
|
3478
|
+
Xl,
|
|
3479
3479
|
{
|
|
3480
3480
|
...u,
|
|
3481
3481
|
ref: t,
|
|
@@ -3493,7 +3493,7 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
3495
3495
|
) : n === "vertical" ? /* @__PURE__ */ a.jsx(
|
|
3496
|
-
|
|
3496
|
+
ql,
|
|
3497
3497
|
{
|
|
3498
3498
|
...u,
|
|
3499
3499
|
ref: t,
|
|
@@ -3511,7 +3511,7 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3511
3511
|
}
|
|
3512
3512
|
}
|
|
3513
3513
|
) : null;
|
|
3514
|
-
}),
|
|
3514
|
+
}), Xl = i.forwardRef((e, t) => {
|
|
3515
3515
|
const { sizes: n, onSizesChange: r, ...o } = e, s = re(se, e.__scopeScrollArea), [c, l] = i.useState(), d = i.useRef(null), p = G(t, d, s.onScrollbarXChange);
|
|
3516
3516
|
return i.useEffect(() => {
|
|
3517
3517
|
d.current && l(getComputedStyle(d.current));
|
|
@@ -3550,7 +3550,7 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
3552
|
);
|
|
3553
|
-
}),
|
|
3553
|
+
}), ql = i.forwardRef((e, t) => {
|
|
3554
3554
|
const { sizes: n, onSizesChange: r, ...o } = e, s = re(se, e.__scopeScrollArea), [c, l] = i.useState(), d = i.useRef(null), p = G(t, d, s.onScrollbarYChange);
|
|
3555
3555
|
return i.useEffect(() => {
|
|
3556
3556
|
d.current && l(getComputedStyle(d.current));
|
|
@@ -3590,7 +3590,7 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3590
3590
|
}
|
|
3591
3591
|
}
|
|
3592
3592
|
);
|
|
3593
|
-
}), [
|
|
3593
|
+
}), [Zl, Ca] = ma(se), Sa = i.forwardRef((e, t) => {
|
|
3594
3594
|
const {
|
|
3595
3595
|
__scopeScrollArea: n,
|
|
3596
3596
|
sizes: r,
|
|
@@ -3603,7 +3603,7 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3603
3603
|
onWheelScroll: u,
|
|
3604
3604
|
onResize: f,
|
|
3605
3605
|
...v
|
|
3606
|
-
} = e, m = re(se, n), [g,
|
|
3606
|
+
} = e, m = re(se, n), [g, x] = i.useState(null), b = G(t, (R) => x(R)), _ = i.useRef(null), M = i.useRef(""), S = m.viewport, E = r.content - r.viewport, y = V(u), A = V(d), T = it(f, 10);
|
|
3607
3607
|
function D(R) {
|
|
3608
3608
|
if (_.current) {
|
|
3609
3609
|
const k = R.clientX - _.current.left, z = R.clientY - _.current.top;
|
|
@@ -3617,7 +3617,7 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3617
3617
|
};
|
|
3618
3618
|
return document.addEventListener("wheel", R, { passive: !1 }), () => document.removeEventListener("wheel", R, { passive: !1 });
|
|
3619
3619
|
}, [S, g, E, y]), i.useEffect(A, [r, A]), Ee(g, T), Ee(m.content, T), /* @__PURE__ */ a.jsx(
|
|
3620
|
-
|
|
3620
|
+
Zl,
|
|
3621
3621
|
{
|
|
3622
3622
|
scope: n,
|
|
3623
3623
|
scrollbar: g,
|
|
@@ -3630,7 +3630,7 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3630
3630
|
P.div,
|
|
3631
3631
|
{
|
|
3632
3632
|
...v,
|
|
3633
|
-
ref:
|
|
3633
|
+
ref: b,
|
|
3634
3634
|
style: { position: "absolute", ...v.style },
|
|
3635
3635
|
onPointerDown: w(e.onPointerDown, (R) => {
|
|
3636
3636
|
R.button === 0 && (R.target.setPointerCapture(R.pointerId), _.current = g.getBoundingClientRect(), M.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), D(R));
|
|
@@ -3647,9 +3647,9 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3647
3647
|
}), Xe = "ScrollAreaThumb", _a = i.forwardRef(
|
|
3648
3648
|
(e, t) => {
|
|
3649
3649
|
const { forceMount: n, ...r } = e, o = Ca(Xe, e.__scopeScrollArea);
|
|
3650
|
-
return /* @__PURE__ */ a.jsx(B, { present: n || o.hasThumb, children: /* @__PURE__ */ a.jsx(
|
|
3650
|
+
return /* @__PURE__ */ a.jsx(B, { present: n || o.hasThumb, children: /* @__PURE__ */ a.jsx(Jl, { ref: t, ...r }) });
|
|
3651
3651
|
}
|
|
3652
|
-
),
|
|
3652
|
+
), Jl = i.forwardRef(
|
|
3653
3653
|
(e, t) => {
|
|
3654
3654
|
const { __scopeScrollArea: n, style: r, ...o } = e, s = re(Xe, n), c = Ca(Xe, n), { onThumbPositionChange: l } = c, d = G(
|
|
3655
3655
|
t,
|
|
@@ -3662,7 +3662,7 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3662
3662
|
if (f) {
|
|
3663
3663
|
const v = () => {
|
|
3664
3664
|
if (u(), !p.current) {
|
|
3665
|
-
const m =
|
|
3665
|
+
const m = tu(f, l);
|
|
3666
3666
|
p.current = m, l();
|
|
3667
3667
|
}
|
|
3668
3668
|
};
|
|
@@ -3680,8 +3680,8 @@ var Hl = i.forwardRef((e, t) => {
|
|
|
3680
3680
|
...r
|
|
3681
3681
|
},
|
|
3682
3682
|
onPointerDownCapture: w(e.onPointerDownCapture, (f) => {
|
|
3683
|
-
const m = f.target.getBoundingClientRect(), g = f.clientX - m.left,
|
|
3684
|
-
c.onThumbPointerDown({ x: g, y:
|
|
3683
|
+
const m = f.target.getBoundingClientRect(), g = f.clientX - m.left, x = f.clientY - m.top;
|
|
3684
|
+
c.onThumbPointerDown({ x: g, y: x });
|
|
3685
3685
|
}),
|
|
3686
3686
|
onPointerUp: w(e.onPointerUp, c.onThumbPointerUp)
|
|
3687
3687
|
}
|
|
@@ -3692,11 +3692,11 @@ _a.displayName = Xe;
|
|
|
3692
3692
|
var sn = "ScrollAreaCorner", Ma = i.forwardRef(
|
|
3693
3693
|
(e, t) => {
|
|
3694
3694
|
const n = re(sn, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
3695
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ a.jsx(
|
|
3695
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ a.jsx(Ql, { ...e, ref: t }) : null;
|
|
3696
3696
|
}
|
|
3697
3697
|
);
|
|
3698
3698
|
Ma.displayName = sn;
|
|
3699
|
-
var
|
|
3699
|
+
var Ql = i.forwardRef((e, t) => {
|
|
3700
3700
|
const { __scopeScrollArea: n, ...r } = e, o = re(sn, n), [s, c] = i.useState(0), [l, d] = i.useState(0), p = !!(s && l);
|
|
3701
3701
|
return Ee(o.scrollbarX, () => {
|
|
3702
3702
|
var f;
|
|
@@ -3734,7 +3734,7 @@ function st(e) {
|
|
|
3734
3734
|
const t = ya(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
3735
3735
|
return Math.max(r, 18);
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function eu(e, t, n, r = "ltr") {
|
|
3738
3738
|
const o = st(n), s = o / 2, c = t || s, l = o - c, d = n.scrollbar.paddingStart + c, p = n.scrollbar.size - n.scrollbar.paddingEnd - l, u = n.content - n.viewport, f = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
3739
3739
|
return Ra([d, p], f)(e);
|
|
3740
3740
|
}
|
|
@@ -3752,7 +3752,7 @@ function Ra(e, t) {
|
|
|
3752
3752
|
function Ea(e, t) {
|
|
3753
3753
|
return e > 0 && e < t;
|
|
3754
3754
|
}
|
|
3755
|
-
var
|
|
3755
|
+
var tu = (e, t = () => {
|
|
3756
3756
|
}) => {
|
|
3757
3757
|
let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
3758
3758
|
return function o() {
|
|
@@ -3780,24 +3780,24 @@ function Ee(e, t) {
|
|
|
3780
3780
|
}
|
|
3781
3781
|
}, [e, n]);
|
|
3782
3782
|
}
|
|
3783
|
-
var
|
|
3784
|
-
function
|
|
3785
|
-
return /* @__PURE__ */ a.jsxs(
|
|
3783
|
+
var nu = ga, ru = xa, ou = Ma;
|
|
3784
|
+
function jf({ className: e, children: t, ...n }) {
|
|
3785
|
+
return /* @__PURE__ */ a.jsxs(nu, { "data-slot": "scroll-area", className: C("relative", e), ...n, children: [
|
|
3786
3786
|
/* @__PURE__ */ a.jsx(
|
|
3787
|
-
|
|
3787
|
+
ru,
|
|
3788
3788
|
{
|
|
3789
3789
|
"data-slot": "scroll-area-viewport",
|
|
3790
3790
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
3791
3791
|
children: t
|
|
3792
3792
|
}
|
|
3793
3793
|
),
|
|
3794
|
-
/* @__PURE__ */ a.jsx(
|
|
3795
|
-
/* @__PURE__ */ a.jsx(
|
|
3794
|
+
/* @__PURE__ */ a.jsx(au, {}),
|
|
3795
|
+
/* @__PURE__ */ a.jsx(ou, {})
|
|
3796
3796
|
] });
|
|
3797
3797
|
}
|
|
3798
|
-
function
|
|
3798
|
+
function au({ className: e, orientation: t = "vertical", ...n }) {
|
|
3799
3799
|
return /* @__PURE__ */ a.jsx(
|
|
3800
|
-
|
|
3800
|
+
ba,
|
|
3801
3801
|
{
|
|
3802
3802
|
"data-slot": "scroll-area-scrollbar",
|
|
3803
3803
|
orientation: t,
|
|
@@ -3812,13 +3812,13 @@ function ou({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
3812
3812
|
}
|
|
3813
3813
|
);
|
|
3814
3814
|
}
|
|
3815
|
-
function
|
|
3815
|
+
function Tf({
|
|
3816
3816
|
className: e,
|
|
3817
3817
|
containerClassName: t,
|
|
3818
3818
|
...n
|
|
3819
3819
|
}) {
|
|
3820
3820
|
return /* @__PURE__ */ a.jsx(
|
|
3821
|
-
|
|
3821
|
+
ws,
|
|
3822
3822
|
{
|
|
3823
3823
|
"data-slot": "input-otp",
|
|
3824
3824
|
containerClassName: C("flex items-center gap-2 has-disabled:opacity-50", t),
|
|
@@ -3827,15 +3827,15 @@ function Pf({
|
|
|
3827
3827
|
}
|
|
3828
3828
|
);
|
|
3829
3829
|
}
|
|
3830
|
-
function
|
|
3830
|
+
function Df({ className: e, ...t }) {
|
|
3831
3831
|
return /* @__PURE__ */ a.jsx("div", { "data-slot": "input-otp-group", className: C("flex items-center", e), ...t });
|
|
3832
3832
|
}
|
|
3833
|
-
function
|
|
3833
|
+
function Of({
|
|
3834
3834
|
index: e,
|
|
3835
3835
|
className: t,
|
|
3836
3836
|
...n
|
|
3837
3837
|
}) {
|
|
3838
|
-
const r = i.useContext(
|
|
3838
|
+
const r = i.useContext(Cs), { char: o, hasFakeCaret: s, isActive: c } = (r == null ? void 0 : r.slots[e]) ?? {};
|
|
3839
3839
|
return /* @__PURE__ */ a.jsxs(
|
|
3840
3840
|
"div",
|
|
3841
3841
|
{
|
|
@@ -3853,13 +3853,52 @@ function jf({
|
|
|
3853
3853
|
}
|
|
3854
3854
|
);
|
|
3855
3855
|
}
|
|
3856
|
-
function
|
|
3857
|
-
return /* @__PURE__ */ a.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ a.jsx(
|
|
3856
|
+
function kf({ ...e }) {
|
|
3857
|
+
return /* @__PURE__ */ a.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ a.jsx(Wi, {}) });
|
|
3858
3858
|
}
|
|
3859
|
-
var
|
|
3860
|
-
|
|
3859
|
+
var su = "AspectRatio", Aa = i.forwardRef(
|
|
3860
|
+
(e, t) => {
|
|
3861
|
+
const { ratio: n = 1 / 1, style: r, ...o } = e;
|
|
3862
|
+
return /* @__PURE__ */ a.jsx(
|
|
3863
|
+
"div",
|
|
3864
|
+
{
|
|
3865
|
+
style: {
|
|
3866
|
+
// ensures inner element is contained
|
|
3867
|
+
position: "relative",
|
|
3868
|
+
// ensures padding bottom trick maths works
|
|
3869
|
+
width: "100%",
|
|
3870
|
+
paddingBottom: `${100 / n}%`
|
|
3871
|
+
},
|
|
3872
|
+
"data-radix-aspect-ratio-wrapper": "",
|
|
3873
|
+
children: /* @__PURE__ */ a.jsx(
|
|
3874
|
+
P.div,
|
|
3875
|
+
{
|
|
3876
|
+
...o,
|
|
3877
|
+
ref: t,
|
|
3878
|
+
style: {
|
|
3879
|
+
...r,
|
|
3880
|
+
// ensures children expand in ratio
|
|
3881
|
+
position: "absolute",
|
|
3882
|
+
top: 0,
|
|
3883
|
+
right: 0,
|
|
3884
|
+
bottom: 0,
|
|
3885
|
+
left: 0
|
|
3886
|
+
}
|
|
3887
|
+
}
|
|
3888
|
+
)
|
|
3889
|
+
}
|
|
3890
|
+
);
|
|
3891
|
+
}
|
|
3892
|
+
);
|
|
3893
|
+
Aa.displayName = su;
|
|
3894
|
+
var iu = Aa;
|
|
3895
|
+
function $f({ ...e }) {
|
|
3896
|
+
return /* @__PURE__ */ a.jsx(iu, { "data-slot": "aspect-ratio", ...e });
|
|
3897
|
+
}
|
|
3898
|
+
var Ke = "Menubar", [yt, cu, lu] = Ae(Ke), [Na, Lf] = ee(Ke, [
|
|
3899
|
+
lu,
|
|
3861
3900
|
Ne
|
|
3862
|
-
]), W = Tt(),
|
|
3901
|
+
]), W = Tt(), Pa = Ne(), [uu, cn] = Na(Ke), Ia = i.forwardRef(
|
|
3863
3902
|
(e, t) => {
|
|
3864
3903
|
const {
|
|
3865
3904
|
__scopeMenubar: n,
|
|
@@ -3869,27 +3908,27 @@ var Ke = "Menubar", [yt, au, su] = Ae(Ke), [Aa, Df] = ee(Ke, [
|
|
|
3869
3908
|
loop: c = !0,
|
|
3870
3909
|
dir: l,
|
|
3871
3910
|
...d
|
|
3872
|
-
} = e, p =
|
|
3911
|
+
} = e, p = xe(l), u = Pa(n), [f, v] = te({
|
|
3873
3912
|
prop: r,
|
|
3874
3913
|
onChange: o,
|
|
3875
3914
|
defaultProp: s ?? "",
|
|
3876
3915
|
caller: Ke
|
|
3877
3916
|
}), [m, g] = i.useState(null);
|
|
3878
3917
|
return /* @__PURE__ */ a.jsx(
|
|
3879
|
-
|
|
3918
|
+
uu,
|
|
3880
3919
|
{
|
|
3881
3920
|
scope: n,
|
|
3882
3921
|
value: f,
|
|
3883
3922
|
onMenuOpen: i.useCallback(
|
|
3884
|
-
(
|
|
3885
|
-
v(
|
|
3923
|
+
(x) => {
|
|
3924
|
+
v(x), g(x);
|
|
3886
3925
|
},
|
|
3887
3926
|
[v]
|
|
3888
3927
|
),
|
|
3889
3928
|
onMenuClose: i.useCallback(() => v(""), [v]),
|
|
3890
3929
|
onMenuToggle: i.useCallback(
|
|
3891
|
-
(
|
|
3892
|
-
v((
|
|
3930
|
+
(x) => {
|
|
3931
|
+
v((b) => b ? "" : x), g(x);
|
|
3893
3932
|
},
|
|
3894
3933
|
[v]
|
|
3895
3934
|
),
|
|
@@ -3912,13 +3951,13 @@ var Ke = "Menubar", [yt, au, su] = Ae(Ke), [Aa, Df] = ee(Ke, [
|
|
|
3912
3951
|
);
|
|
3913
3952
|
}
|
|
3914
3953
|
);
|
|
3915
|
-
|
|
3916
|
-
var ln = "MenubarMenu", [
|
|
3954
|
+
Ia.displayName = Ke;
|
|
3955
|
+
var ln = "MenubarMenu", [du, ja] = Na(ln), Ta = (e) => {
|
|
3917
3956
|
const { __scopeMenubar: t, value: n, ...r } = e, o = K(), s = n || o || "LEGACY_REACT_AUTO_VALUE", c = cn(ln, t), l = W(t), d = i.useRef(null), p = i.useRef(!1), u = c.value === s;
|
|
3918
3957
|
return i.useEffect(() => {
|
|
3919
3958
|
u || (p.current = !1);
|
|
3920
3959
|
}, [u]), /* @__PURE__ */ a.jsx(
|
|
3921
|
-
|
|
3960
|
+
du,
|
|
3922
3961
|
{
|
|
3923
3962
|
scope: t,
|
|
3924
3963
|
value: s,
|
|
@@ -3942,10 +3981,10 @@ var ln = "MenubarMenu", [cu, Ia] = Aa(ln), ja = (e) => {
|
|
|
3942
3981
|
}
|
|
3943
3982
|
);
|
|
3944
3983
|
};
|
|
3945
|
-
|
|
3946
|
-
var Rt = "MenubarTrigger",
|
|
3984
|
+
Ta.displayName = ln;
|
|
3985
|
+
var Rt = "MenubarTrigger", Da = i.forwardRef(
|
|
3947
3986
|
(e, t) => {
|
|
3948
|
-
const { __scopeMenubar: n, disabled: r = !1, ...o } = e, s =
|
|
3987
|
+
const { __scopeMenubar: n, disabled: r = !1, ...o } = e, s = Pa(n), c = W(n), l = cn(Rt, n), d = ja(Rt, n), p = i.useRef(null), u = G(t, p, d.triggerRef), [f, v] = i.useState(!1), m = l.value === d.value;
|
|
3949
3988
|
return /* @__PURE__ */ a.jsx(yt.ItemSlot, { scope: n, value: d.value, disabled: r, children: /* @__PURE__ */ a.jsx(
|
|
3950
3989
|
jt,
|
|
3951
3990
|
{
|
|
@@ -3972,8 +4011,8 @@ var Rt = "MenubarTrigger", Ta = i.forwardRef(
|
|
|
3972
4011
|
!r && g.button === 0 && g.ctrlKey === !1 && (l.onMenuOpen(d.value), m || g.preventDefault());
|
|
3973
4012
|
}),
|
|
3974
4013
|
onPointerEnter: w(e.onPointerEnter, () => {
|
|
3975
|
-
var
|
|
3976
|
-
!!l.value && !m && (l.onMenuOpen(d.value), (
|
|
4014
|
+
var x;
|
|
4015
|
+
!!l.value && !m && (l.onMenuOpen(d.value), (x = p.current) == null || x.focus());
|
|
3977
4016
|
}),
|
|
3978
4017
|
onKeyDown: w(e.onKeyDown, (g) => {
|
|
3979
4018
|
r || (["Enter", " "].includes(g.key) && l.onMenuToggle(d.value), g.key === "ArrowDown" && l.onMenuOpen(d.value), ["Enter", " ", "ArrowDown"].includes(g.key) && (d.wasKeyboardTriggerOpenRef.current = !0, g.preventDefault()));
|
|
@@ -3986,17 +4025,17 @@ var Rt = "MenubarTrigger", Ta = i.forwardRef(
|
|
|
3986
4025
|
) });
|
|
3987
4026
|
}
|
|
3988
4027
|
);
|
|
3989
|
-
|
|
3990
|
-
var
|
|
4028
|
+
Da.displayName = Rt;
|
|
4029
|
+
var fu = "MenubarPortal", Oa = (e) => {
|
|
3991
4030
|
const { __scopeMenubar: t, ...n } = e, r = W(t);
|
|
3992
|
-
return /* @__PURE__ */ a.jsx(
|
|
4031
|
+
return /* @__PURE__ */ a.jsx(xr, { ...r, ...n });
|
|
3993
4032
|
};
|
|
3994
|
-
|
|
3995
|
-
var Et = "MenubarContent",
|
|
4033
|
+
Oa.displayName = fu;
|
|
4034
|
+
var Et = "MenubarContent", ka = i.forwardRef(
|
|
3996
4035
|
(e, t) => {
|
|
3997
|
-
const { __scopeMenubar: n, align: r = "start", ...o } = e, s = W(n), c = cn(Et, n), l =
|
|
4036
|
+
const { __scopeMenubar: n, align: r = "start", ...o } = e, s = W(n), c = cn(Et, n), l = ja(Et, n), d = cu(n), p = i.useRef(!1);
|
|
3998
4037
|
return /* @__PURE__ */ a.jsx(
|
|
3999
|
-
|
|
4038
|
+
br,
|
|
4000
4039
|
{
|
|
4001
4040
|
id: l.contentId,
|
|
4002
4041
|
"aria-labelledby": l.triggerId,
|
|
@@ -4026,12 +4065,12 @@ var Et = "MenubarContent", Oa = i.forwardRef(
|
|
|
4026
4065
|
e.onKeyDown,
|
|
4027
4066
|
(u) => {
|
|
4028
4067
|
if (["ArrowRight", "ArrowLeft"].includes(u.key)) {
|
|
4029
|
-
const f = u.target, v = f.hasAttribute("data-radix-menubar-subtrigger"), m = f.closest("[data-radix-menubar-content]") !== u.currentTarget,
|
|
4030
|
-
if (!
|
|
4068
|
+
const f = u.target, v = f.hasAttribute("data-radix-menubar-subtrigger"), m = f.closest("[data-radix-menubar-content]") !== u.currentTarget, x = (c.dir === "rtl" ? "ArrowRight" : "ArrowLeft") === u.key;
|
|
4069
|
+
if (!x && v || m && x) return;
|
|
4031
4070
|
let M = d().filter((y) => !y.disabled).map((y) => y.value);
|
|
4032
|
-
|
|
4071
|
+
x && M.reverse();
|
|
4033
4072
|
const S = M.indexOf(l.value);
|
|
4034
|
-
M = c.loop ?
|
|
4073
|
+
M = c.loop ? yu(M, S + 1) : M.slice(S + 1);
|
|
4035
4074
|
const [E] = M;
|
|
4036
4075
|
E && c.onMenuOpen(E);
|
|
4037
4076
|
}
|
|
@@ -4050,79 +4089,79 @@ var Et = "MenubarContent", Oa = i.forwardRef(
|
|
|
4050
4089
|
);
|
|
4051
4090
|
}
|
|
4052
4091
|
);
|
|
4053
|
-
|
|
4054
|
-
var
|
|
4092
|
+
ka.displayName = Et;
|
|
4093
|
+
var pu = "MenubarGroup", $a = i.forwardRef(
|
|
4055
4094
|
(e, t) => {
|
|
4056
4095
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4057
4096
|
return /* @__PURE__ */ a.jsx(wr, { ...o, ...r, ref: t });
|
|
4058
4097
|
}
|
|
4059
4098
|
);
|
|
4060
|
-
|
|
4061
|
-
var
|
|
4099
|
+
$a.displayName = pu;
|
|
4100
|
+
var vu = "MenubarLabel", La = i.forwardRef(
|
|
4062
4101
|
(e, t) => {
|
|
4063
4102
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4064
4103
|
return /* @__PURE__ */ a.jsx(Cr, { ...o, ...r, ref: t });
|
|
4065
4104
|
}
|
|
4066
4105
|
);
|
|
4067
|
-
|
|
4068
|
-
var
|
|
4106
|
+
La.displayName = vu;
|
|
4107
|
+
var mu = "MenubarItem", Fa = i.forwardRef(
|
|
4069
4108
|
(e, t) => {
|
|
4070
4109
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4071
4110
|
return /* @__PURE__ */ a.jsx(Sr, { ...o, ...r, ref: t });
|
|
4072
4111
|
}
|
|
4073
4112
|
);
|
|
4074
|
-
|
|
4075
|
-
var
|
|
4113
|
+
Fa.displayName = mu;
|
|
4114
|
+
var gu = "MenubarCheckboxItem", Ga = i.forwardRef(
|
|
4076
4115
|
(e, t) => {
|
|
4077
4116
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4078
4117
|
return /* @__PURE__ */ a.jsx(_r, { ...o, ...r, ref: t });
|
|
4079
4118
|
}
|
|
4080
4119
|
);
|
|
4081
|
-
|
|
4082
|
-
var
|
|
4120
|
+
Ga.displayName = gu;
|
|
4121
|
+
var hu = "MenubarRadioGroup", za = i.forwardRef(
|
|
4083
4122
|
(e, t) => {
|
|
4084
4123
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4085
4124
|
return /* @__PURE__ */ a.jsx(Mr, { ...o, ...r, ref: t });
|
|
4086
4125
|
}
|
|
4087
4126
|
);
|
|
4088
|
-
|
|
4089
|
-
var
|
|
4127
|
+
za.displayName = hu;
|
|
4128
|
+
var xu = "MenubarRadioItem", Ka = i.forwardRef(
|
|
4090
4129
|
(e, t) => {
|
|
4091
4130
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4092
4131
|
return /* @__PURE__ */ a.jsx(yr, { ...o, ...r, ref: t });
|
|
4093
4132
|
}
|
|
4094
4133
|
);
|
|
4095
|
-
|
|
4096
|
-
var
|
|
4134
|
+
Ka.displayName = xu;
|
|
4135
|
+
var bu = "MenubarItemIndicator", Va = i.forwardRef((e, t) => {
|
|
4097
4136
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4098
4137
|
return /* @__PURE__ */ a.jsx(Rr, { ...o, ...r, ref: t });
|
|
4099
4138
|
});
|
|
4100
|
-
|
|
4101
|
-
var
|
|
4139
|
+
Va.displayName = bu;
|
|
4140
|
+
var wu = "MenubarSeparator", Ua = i.forwardRef(
|
|
4102
4141
|
(e, t) => {
|
|
4103
4142
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4104
4143
|
return /* @__PURE__ */ a.jsx(Er, { ...o, ...r, ref: t });
|
|
4105
4144
|
}
|
|
4106
4145
|
);
|
|
4107
|
-
|
|
4108
|
-
var
|
|
4146
|
+
Ua.displayName = wu;
|
|
4147
|
+
var Cu = "MenubarArrow", Su = i.forwardRef(
|
|
4109
4148
|
(e, t) => {
|
|
4110
4149
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4111
4150
|
return /* @__PURE__ */ a.jsx(Ar, { ...o, ...r, ref: t });
|
|
4112
4151
|
}
|
|
4113
4152
|
);
|
|
4114
|
-
|
|
4115
|
-
var
|
|
4153
|
+
Su.displayName = Cu;
|
|
4154
|
+
var Ba = "MenubarSub", Ha = (e) => {
|
|
4116
4155
|
const { __scopeMenubar: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, c = W(t), [l, d] = te({
|
|
4117
4156
|
prop: r,
|
|
4118
4157
|
defaultProp: s ?? !1,
|
|
4119
4158
|
onChange: o,
|
|
4120
|
-
caller:
|
|
4159
|
+
caller: Ba
|
|
4121
4160
|
});
|
|
4122
4161
|
return /* @__PURE__ */ a.jsx(Nr, { ...c, open: l, onOpenChange: d, children: n });
|
|
4123
4162
|
};
|
|
4124
|
-
|
|
4125
|
-
var
|
|
4163
|
+
Ha.displayName = Ba;
|
|
4164
|
+
var _u = "MenubarSubTrigger", Wa = i.forwardRef(
|
|
4126
4165
|
(e, t) => {
|
|
4127
4166
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4128
4167
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -4136,8 +4175,8 @@ var wu = "MenubarSubTrigger", Ha = i.forwardRef(
|
|
|
4136
4175
|
);
|
|
4137
4176
|
}
|
|
4138
4177
|
);
|
|
4139
|
-
|
|
4140
|
-
var
|
|
4178
|
+
Wa.displayName = _u;
|
|
4179
|
+
var Mu = "MenubarSubContent", Ya = i.forwardRef(
|
|
4141
4180
|
(e, t) => {
|
|
4142
4181
|
const { __scopeMenubar: n, ...r } = e, o = W(n);
|
|
4143
4182
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -4159,36 +4198,36 @@ var Cu = "MenubarSubContent", Wa = i.forwardRef(
|
|
|
4159
4198
|
);
|
|
4160
4199
|
}
|
|
4161
4200
|
);
|
|
4162
|
-
|
|
4163
|
-
function
|
|
4201
|
+
Ya.displayName = Mu;
|
|
4202
|
+
function yu(e, t) {
|
|
4164
4203
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
4165
4204
|
}
|
|
4166
|
-
var
|
|
4167
|
-
function
|
|
4205
|
+
var Ru = Ia, Eu = Ta, Au = Da, Nu = Oa, Pu = ka, Iu = $a, ju = La, Tu = Fa, Du = Ga, Ou = za, ku = Ka, Xa = Va, $u = Ua, Lu = Ha, Fu = Wa, Gu = Ya;
|
|
4206
|
+
function Ff({ className: e, ...t }) {
|
|
4168
4207
|
return /* @__PURE__ */ a.jsx(
|
|
4169
|
-
|
|
4208
|
+
Ru,
|
|
4170
4209
|
{
|
|
4171
4210
|
"data-slot": "menubar",
|
|
4172
|
-
className: C("bg-
|
|
4211
|
+
className: C("bg-content1 flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", e),
|
|
4173
4212
|
...t
|
|
4174
4213
|
}
|
|
4175
4214
|
);
|
|
4176
4215
|
}
|
|
4177
|
-
function
|
|
4178
|
-
return /* @__PURE__ */ a.jsx(
|
|
4216
|
+
function Gf({ ...e }) {
|
|
4217
|
+
return /* @__PURE__ */ a.jsx(Eu, { "data-slot": "menubar-menu", ...e });
|
|
4179
4218
|
}
|
|
4180
|
-
function
|
|
4181
|
-
return /* @__PURE__ */ a.jsx(
|
|
4219
|
+
function zf({ ...e }) {
|
|
4220
|
+
return /* @__PURE__ */ a.jsx(Iu, { "data-slot": "menubar-group", ...e });
|
|
4182
4221
|
}
|
|
4183
|
-
function
|
|
4184
|
-
return /* @__PURE__ */ a.jsx(
|
|
4222
|
+
function zu({ ...e }) {
|
|
4223
|
+
return /* @__PURE__ */ a.jsx(Nu, { "data-slot": "menubar-portal", ...e });
|
|
4185
4224
|
}
|
|
4186
|
-
function
|
|
4187
|
-
return /* @__PURE__ */ a.jsx(
|
|
4225
|
+
function Kf({ ...e }) {
|
|
4226
|
+
return /* @__PURE__ */ a.jsx(Ou, { "data-slot": "menubar-radio-group", ...e });
|
|
4188
4227
|
}
|
|
4189
|
-
function
|
|
4228
|
+
function Vf({ className: e, ...t }) {
|
|
4190
4229
|
return /* @__PURE__ */ a.jsx(
|
|
4191
|
-
|
|
4230
|
+
Au,
|
|
4192
4231
|
{
|
|
4193
4232
|
"data-slot": "menubar-trigger",
|
|
4194
4233
|
className: C(
|
|
@@ -4199,15 +4238,15 @@ function Ff({ className: e, ...t }) {
|
|
|
4199
4238
|
}
|
|
4200
4239
|
);
|
|
4201
4240
|
}
|
|
4202
|
-
function
|
|
4241
|
+
function Uf({
|
|
4203
4242
|
className: e,
|
|
4204
4243
|
align: t = "start",
|
|
4205
4244
|
alignOffset: n = -4,
|
|
4206
4245
|
sideOffset: r = 8,
|
|
4207
4246
|
...o
|
|
4208
4247
|
}) {
|
|
4209
|
-
return /* @__PURE__ */ a.jsx(
|
|
4210
|
-
|
|
4248
|
+
return /* @__PURE__ */ a.jsx(zu, { children: /* @__PURE__ */ a.jsx(
|
|
4249
|
+
Pu,
|
|
4211
4250
|
{
|
|
4212
4251
|
"data-slot": "menubar-content",
|
|
4213
4252
|
align: t,
|
|
@@ -4221,14 +4260,14 @@ function Gf({
|
|
|
4221
4260
|
}
|
|
4222
4261
|
) });
|
|
4223
4262
|
}
|
|
4224
|
-
function
|
|
4263
|
+
function Bf({
|
|
4225
4264
|
className: e,
|
|
4226
4265
|
inset: t,
|
|
4227
4266
|
variant: n = "default",
|
|
4228
4267
|
...r
|
|
4229
4268
|
}) {
|
|
4230
4269
|
return /* @__PURE__ */ a.jsx(
|
|
4231
|
-
|
|
4270
|
+
Tu,
|
|
4232
4271
|
{
|
|
4233
4272
|
"data-slot": "menubar-item",
|
|
4234
4273
|
"data-inset": t,
|
|
@@ -4241,9 +4280,9 @@ function zf({
|
|
|
4241
4280
|
}
|
|
4242
4281
|
);
|
|
4243
4282
|
}
|
|
4244
|
-
function
|
|
4283
|
+
function Hf({ className: e, children: t, checked: n, ...r }) {
|
|
4245
4284
|
return /* @__PURE__ */ a.jsxs(
|
|
4246
|
-
|
|
4285
|
+
Du,
|
|
4247
4286
|
{
|
|
4248
4287
|
"data-slot": "menubar-checkbox-item",
|
|
4249
4288
|
className: C(
|
|
@@ -4253,15 +4292,15 @@ function Kf({ className: e, children: t, checked: n, ...r }) {
|
|
|
4253
4292
|
checked: n,
|
|
4254
4293
|
...r,
|
|
4255
4294
|
children: [
|
|
4256
|
-
/* @__PURE__ */ a.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
4295
|
+
/* @__PURE__ */ a.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Xa, { children: /* @__PURE__ */ a.jsx(Nn, { className: "size-4" }) }) }),
|
|
4257
4296
|
t
|
|
4258
4297
|
]
|
|
4259
4298
|
}
|
|
4260
4299
|
);
|
|
4261
4300
|
}
|
|
4262
|
-
function
|
|
4301
|
+
function Wf({ className: e, children: t, ...n }) {
|
|
4263
4302
|
return /* @__PURE__ */ a.jsxs(
|
|
4264
|
-
|
|
4303
|
+
ku,
|
|
4265
4304
|
{
|
|
4266
4305
|
"data-slot": "menubar-radio-item",
|
|
4267
4306
|
className: C(
|
|
@@ -4270,19 +4309,19 @@ function Vf({ className: e, children: t, ...n }) {
|
|
|
4270
4309
|
),
|
|
4271
4310
|
...n,
|
|
4272
4311
|
children: [
|
|
4273
|
-
/* @__PURE__ */ a.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(
|
|
4312
|
+
/* @__PURE__ */ a.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Xa, { children: /* @__PURE__ */ a.jsx(Jr, { className: "size-2 fill-current" }) }) }),
|
|
4274
4313
|
t
|
|
4275
4314
|
]
|
|
4276
4315
|
}
|
|
4277
4316
|
);
|
|
4278
4317
|
}
|
|
4279
|
-
function
|
|
4318
|
+
function Yf({
|
|
4280
4319
|
className: e,
|
|
4281
4320
|
inset: t,
|
|
4282
4321
|
...n
|
|
4283
4322
|
}) {
|
|
4284
4323
|
return /* @__PURE__ */ a.jsx(
|
|
4285
|
-
|
|
4324
|
+
ju,
|
|
4286
4325
|
{
|
|
4287
4326
|
"data-slot": "menubar-label",
|
|
4288
4327
|
"data-inset": t,
|
|
@@ -4291,23 +4330,23 @@ function Uf({
|
|
|
4291
4330
|
}
|
|
4292
4331
|
);
|
|
4293
4332
|
}
|
|
4294
|
-
function
|
|
4295
|
-
return /* @__PURE__ */ a.jsx(
|
|
4333
|
+
function Xf({ className: e, ...t }) {
|
|
4334
|
+
return /* @__PURE__ */ a.jsx($u, { "data-slot": "menubar-separator", className: C("bg-border -mx-1 my-1 h-px", e), ...t });
|
|
4296
4335
|
}
|
|
4297
|
-
function
|
|
4336
|
+
function qf({ className: e, ...t }) {
|
|
4298
4337
|
return /* @__PURE__ */ a.jsx("span", { "data-slot": "menubar-shortcut", className: C("text-muted-foreground ml-auto text-xs tracking-widest", e), ...t });
|
|
4299
4338
|
}
|
|
4300
|
-
function
|
|
4301
|
-
return /* @__PURE__ */ a.jsx(
|
|
4339
|
+
function Zf({ ...e }) {
|
|
4340
|
+
return /* @__PURE__ */ a.jsx(Lu, { "data-slot": "menubar-sub", ...e });
|
|
4302
4341
|
}
|
|
4303
|
-
function
|
|
4342
|
+
function Jf({
|
|
4304
4343
|
className: e,
|
|
4305
4344
|
inset: t,
|
|
4306
4345
|
children: n,
|
|
4307
4346
|
...r
|
|
4308
4347
|
}) {
|
|
4309
4348
|
return /* @__PURE__ */ a.jsxs(
|
|
4310
|
-
|
|
4349
|
+
Fu,
|
|
4311
4350
|
{
|
|
4312
4351
|
"data-slot": "menubar-sub-trigger",
|
|
4313
4352
|
"data-inset": t,
|
|
@@ -4323,9 +4362,9 @@ function Yf({
|
|
|
4323
4362
|
}
|
|
4324
4363
|
);
|
|
4325
4364
|
}
|
|
4326
|
-
function
|
|
4365
|
+
function Qf({ className: e, ...t }) {
|
|
4327
4366
|
return /* @__PURE__ */ a.jsx(
|
|
4328
|
-
|
|
4367
|
+
Gu,
|
|
4329
4368
|
{
|
|
4330
4369
|
"data-slot": "menubar-sub-content",
|
|
4331
4370
|
className: C(
|
|
@@ -4336,42 +4375,42 @@ function Xf({ className: e, ...t }) {
|
|
|
4336
4375
|
}
|
|
4337
4376
|
);
|
|
4338
4377
|
}
|
|
4339
|
-
var
|
|
4378
|
+
var qa = "AlertDialog", [Ku, ep] = ee(qa, [
|
|
4340
4379
|
kn
|
|
4341
|
-
]), le = kn(),
|
|
4380
|
+
]), le = kn(), Za = (e) => {
|
|
4342
4381
|
const { __scopeAlertDialog: t, ...n } = e, r = le(t);
|
|
4343
4382
|
return /* @__PURE__ */ a.jsx(In, { ...r, ...n, modal: !0 });
|
|
4344
4383
|
};
|
|
4345
|
-
|
|
4346
|
-
var
|
|
4384
|
+
Za.displayName = qa;
|
|
4385
|
+
var Vu = "AlertDialogTrigger", Ja = i.forwardRef(
|
|
4347
4386
|
(e, t) => {
|
|
4348
4387
|
const { __scopeAlertDialog: n, ...r } = e, o = le(n);
|
|
4349
|
-
return /* @__PURE__ */ a.jsx(
|
|
4388
|
+
return /* @__PURE__ */ a.jsx(Ss, { ...o, ...r, ref: t });
|
|
4350
4389
|
}
|
|
4351
4390
|
);
|
|
4352
|
-
|
|
4353
|
-
var
|
|
4391
|
+
Ja.displayName = Vu;
|
|
4392
|
+
var Uu = "AlertDialogPortal", Qa = (e) => {
|
|
4354
4393
|
const { __scopeAlertDialog: t, ...n } = e, r = le(t);
|
|
4355
4394
|
return /* @__PURE__ */ a.jsx(jn, { ...r, ...n });
|
|
4356
4395
|
};
|
|
4357
|
-
|
|
4358
|
-
var
|
|
4396
|
+
Qa.displayName = Uu;
|
|
4397
|
+
var Bu = "AlertDialogOverlay", es = i.forwardRef(
|
|
4359
4398
|
(e, t) => {
|
|
4360
4399
|
const { __scopeAlertDialog: n, ...r } = e, o = le(n);
|
|
4361
4400
|
return /* @__PURE__ */ a.jsx(Tn, { ...o, ...r, ref: t });
|
|
4362
4401
|
}
|
|
4363
4402
|
);
|
|
4364
|
-
|
|
4365
|
-
var Me = "AlertDialogContent", [
|
|
4403
|
+
es.displayName = Bu;
|
|
4404
|
+
var Me = "AlertDialogContent", [Hu, Wu] = Ku(Me), Yu = Rs("AlertDialogContent"), ts = i.forwardRef(
|
|
4366
4405
|
(e, t) => {
|
|
4367
4406
|
const { __scopeAlertDialog: n, children: r, ...o } = e, s = le(n), c = i.useRef(null), l = G(t, c), d = i.useRef(null);
|
|
4368
4407
|
return /* @__PURE__ */ a.jsx(
|
|
4369
|
-
|
|
4408
|
+
_s,
|
|
4370
4409
|
{
|
|
4371
4410
|
contentName: Me,
|
|
4372
|
-
titleName:
|
|
4411
|
+
titleName: ns,
|
|
4373
4412
|
docsSlug: "alert-dialog",
|
|
4374
|
-
children: /* @__PURE__ */ a.jsx(
|
|
4413
|
+
children: /* @__PURE__ */ a.jsx(Hu, { scope: n, cancelRef: d, children: /* @__PURE__ */ a.jsxs(
|
|
4375
4414
|
Dn,
|
|
4376
4415
|
{
|
|
4377
4416
|
role: "alertdialog",
|
|
@@ -4385,8 +4424,8 @@ var Me = "AlertDialogContent", [Vu, Uu] = Fu(Me), Bu = ys("AlertDialogContent"),
|
|
|
4385
4424
|
onPointerDownOutside: (p) => p.preventDefault(),
|
|
4386
4425
|
onInteractOutside: (p) => p.preventDefault(),
|
|
4387
4426
|
children: [
|
|
4388
|
-
/* @__PURE__ */ a.jsx(
|
|
4389
|
-
/* @__PURE__ */ a.jsx(
|
|
4427
|
+
/* @__PURE__ */ a.jsx(Yu, { children: r }),
|
|
4428
|
+
/* @__PURE__ */ a.jsx(qu, { contentRef: c })
|
|
4390
4429
|
]
|
|
4391
4430
|
}
|
|
4392
4431
|
) })
|
|
@@ -4394,37 +4433,37 @@ var Me = "AlertDialogContent", [Vu, Uu] = Fu(Me), Bu = ys("AlertDialogContent"),
|
|
|
4394
4433
|
);
|
|
4395
4434
|
}
|
|
4396
4435
|
);
|
|
4397
|
-
|
|
4398
|
-
var
|
|
4436
|
+
ts.displayName = Me;
|
|
4437
|
+
var ns = "AlertDialogTitle", rs = i.forwardRef(
|
|
4399
4438
|
(e, t) => {
|
|
4400
4439
|
const { __scopeAlertDialog: n, ...r } = e, o = le(n);
|
|
4401
|
-
return /* @__PURE__ */ a.jsx(
|
|
4440
|
+
return /* @__PURE__ */ a.jsx(Ms, { ...o, ...r, ref: t });
|
|
4402
4441
|
}
|
|
4403
4442
|
);
|
|
4404
|
-
|
|
4405
|
-
var
|
|
4443
|
+
rs.displayName = ns;
|
|
4444
|
+
var os = "AlertDialogDescription", as = i.forwardRef((e, t) => {
|
|
4406
4445
|
const { __scopeAlertDialog: n, ...r } = e, o = le(n);
|
|
4407
|
-
return /* @__PURE__ */ a.jsx(
|
|
4446
|
+
return /* @__PURE__ */ a.jsx(ys, { ...o, ...r, ref: t });
|
|
4408
4447
|
});
|
|
4409
|
-
|
|
4410
|
-
var
|
|
4448
|
+
as.displayName = os;
|
|
4449
|
+
var Xu = "AlertDialogAction", ss = i.forwardRef(
|
|
4411
4450
|
(e, t) => {
|
|
4412
4451
|
const { __scopeAlertDialog: n, ...r } = e, o = le(n);
|
|
4413
4452
|
return /* @__PURE__ */ a.jsx($n, { ...o, ...r, ref: t });
|
|
4414
4453
|
}
|
|
4415
4454
|
);
|
|
4416
|
-
|
|
4417
|
-
var
|
|
4455
|
+
ss.displayName = Xu;
|
|
4456
|
+
var is = "AlertDialogCancel", cs = i.forwardRef(
|
|
4418
4457
|
(e, t) => {
|
|
4419
|
-
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } =
|
|
4458
|
+
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } = Wu(is, n), s = le(n), c = G(t, o);
|
|
4420
4459
|
return /* @__PURE__ */ a.jsx($n, { ...s, ...r, ref: c });
|
|
4421
4460
|
}
|
|
4422
4461
|
);
|
|
4423
|
-
|
|
4424
|
-
var
|
|
4462
|
+
cs.displayName = is;
|
|
4463
|
+
var qu = ({ contentRef: e }) => {
|
|
4425
4464
|
const t = `\`${Me}\` requires a description for the component to be accessible for screen reader users.
|
|
4426
4465
|
|
|
4427
|
-
You can add a description to the \`${Me}\` by passing a \`${
|
|
4466
|
+
You can add a description to the \`${Me}\` by passing a \`${os}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4428
4467
|
|
|
4429
4468
|
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 \`${Me}\`. 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.
|
|
4430
4469
|
|
|
@@ -4435,19 +4474,19 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
4435
4474
|
(r = e.current) == null ? void 0 : r.getAttribute("aria-describedby")
|
|
4436
4475
|
);
|
|
4437
4476
|
}, [t, e]), null;
|
|
4438
|
-
},
|
|
4439
|
-
function
|
|
4440
|
-
return /* @__PURE__ */ a.jsx(
|
|
4477
|
+
}, Zu = Za, Ju = Ja, Qu = Qa, ed = es, td = ts, nd = ss, rd = cs, od = rs, ad = as;
|
|
4478
|
+
function sd({ ...e }) {
|
|
4479
|
+
return /* @__PURE__ */ a.jsx(Zu, { "data-slot": "alert-dialog", ...e });
|
|
4441
4480
|
}
|
|
4442
|
-
function
|
|
4443
|
-
return /* @__PURE__ */ a.jsx(
|
|
4481
|
+
function tp({ ...e }) {
|
|
4482
|
+
return /* @__PURE__ */ a.jsx(Ju, { "data-slot": "alert-dialog-trigger", ...e });
|
|
4444
4483
|
}
|
|
4445
|
-
function
|
|
4446
|
-
return /* @__PURE__ */ a.jsx(
|
|
4484
|
+
function id({ ...e }) {
|
|
4485
|
+
return /* @__PURE__ */ a.jsx(Qu, { "data-slot": "alert-dialog-portal", ...e });
|
|
4447
4486
|
}
|
|
4448
|
-
function
|
|
4487
|
+
function cd({ className: e, ...t }) {
|
|
4449
4488
|
return /* @__PURE__ */ a.jsx(
|
|
4450
|
-
|
|
4489
|
+
ed,
|
|
4451
4490
|
{
|
|
4452
4491
|
"data-slot": "alert-dialog-overlay",
|
|
4453
4492
|
className: C(
|
|
@@ -4458,11 +4497,11 @@ function ad({ className: e, ...t }) {
|
|
|
4458
4497
|
}
|
|
4459
4498
|
);
|
|
4460
4499
|
}
|
|
4461
|
-
function
|
|
4462
|
-
return /* @__PURE__ */ a.jsxs(
|
|
4463
|
-
/* @__PURE__ */ a.jsx(
|
|
4500
|
+
function ld({ className: e, ...t }) {
|
|
4501
|
+
return /* @__PURE__ */ a.jsxs(id, { children: [
|
|
4502
|
+
/* @__PURE__ */ a.jsx(cd, {}),
|
|
4464
4503
|
/* @__PURE__ */ a.jsx(
|
|
4465
|
-
|
|
4504
|
+
td,
|
|
4466
4505
|
{
|
|
4467
4506
|
"data-slot": "alert-dialog-content",
|
|
4468
4507
|
className: C(
|
|
@@ -4474,18 +4513,18 @@ function sd({ className: e, ...t }) {
|
|
|
4474
4513
|
)
|
|
4475
4514
|
] });
|
|
4476
4515
|
}
|
|
4477
|
-
function
|
|
4516
|
+
function ud({ className: e, ...t }) {
|
|
4478
4517
|
return /* @__PURE__ */ a.jsx("div", { "data-slot": "alert-dialog-header", className: C("flex flex-col gap-2 text-center sm:text-left", e), ...t });
|
|
4479
4518
|
}
|
|
4480
|
-
function
|
|
4519
|
+
function dd({ className: e, ...t }) {
|
|
4481
4520
|
return /* @__PURE__ */ a.jsx("div", { "data-slot": "alert-dialog-footer", className: C("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e), ...t });
|
|
4482
4521
|
}
|
|
4483
|
-
function
|
|
4484
|
-
return /* @__PURE__ */ a.jsx(
|
|
4522
|
+
function fd({ className: e, ...t }) {
|
|
4523
|
+
return /* @__PURE__ */ a.jsx(od, { "data-slot": "alert-dialog-title", className: C("text-lg font-semibold", e), ...t });
|
|
4485
4524
|
}
|
|
4486
|
-
function
|
|
4525
|
+
function pd({ className: e, ...t }) {
|
|
4487
4526
|
return /* @__PURE__ */ a.jsx(
|
|
4488
|
-
|
|
4527
|
+
ad,
|
|
4489
4528
|
{
|
|
4490
4529
|
"data-slot": "alert-dialog-description",
|
|
4491
4530
|
className: C("text-muted-foreground text-sm", e),
|
|
@@ -4493,13 +4532,13 @@ function ud({ className: e, ...t }) {
|
|
|
4493
4532
|
}
|
|
4494
4533
|
);
|
|
4495
4534
|
}
|
|
4496
|
-
function
|
|
4497
|
-
return /* @__PURE__ */ a.jsx(
|
|
4535
|
+
function np({ className: e, ...t }) {
|
|
4536
|
+
return /* @__PURE__ */ a.jsx(nd, { className: C(Fn({ color: "primary" }), e), ...t });
|
|
4498
4537
|
}
|
|
4499
|
-
function
|
|
4500
|
-
return /* @__PURE__ */ a.jsx(
|
|
4538
|
+
function rp({ className: e, ...t }) {
|
|
4539
|
+
return /* @__PURE__ */ a.jsx(rd, { className: C(Fn({ variant: "solid" }), e), ...t });
|
|
4501
4540
|
}
|
|
4502
|
-
const
|
|
4541
|
+
const op = ({
|
|
4503
4542
|
isOpen: e,
|
|
4504
4543
|
title: t,
|
|
4505
4544
|
description: n,
|
|
@@ -4512,135 +4551,136 @@ const ep = ({
|
|
|
4512
4551
|
buttonConfirmText: p = "Aceptar",
|
|
4513
4552
|
colorButtonConfirm: u = "primary",
|
|
4514
4553
|
showButtonCancel: f = !0
|
|
4515
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
4516
|
-
/* @__PURE__ */ a.jsxs(
|
|
4517
|
-
t && /* @__PURE__ */ a.jsx(
|
|
4518
|
-
n && /* @__PURE__ */ a.jsx(
|
|
4554
|
+
}) => /* @__PURE__ */ a.jsx(sd, { open: e, onOpenChange: (v) => l == null ? void 0 : l(v), children: /* @__PURE__ */ a.jsxs(ld, { children: [
|
|
4555
|
+
/* @__PURE__ */ a.jsxs(ud, { children: [
|
|
4556
|
+
t && /* @__PURE__ */ a.jsx(fd, { children: t }),
|
|
4557
|
+
n && /* @__PURE__ */ a.jsx(pd, { children: n }),
|
|
4519
4558
|
r && /* @__PURE__ */ a.jsx("div", { className: "w-full relative", children: r })
|
|
4520
4559
|
] }),
|
|
4521
|
-
/* @__PURE__ */ a.jsxs(
|
|
4560
|
+
/* @__PURE__ */ a.jsxs(dd, { children: [
|
|
4522
4561
|
f && /* @__PURE__ */ a.jsx(un, { onClick: c, disabled: o, children: d }),
|
|
4523
4562
|
/* @__PURE__ */ a.jsx(un, { onClick: s, disabled: o, isLoading: o, color: u, children: p })
|
|
4524
4563
|
] })
|
|
4525
4564
|
] }) });
|
|
4526
4565
|
export {
|
|
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
|
-
Ef as
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
nf as
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
of as
|
|
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
|
-
zf as
|
|
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
|
-
Jd as
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
Fd as
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4566
|
+
ff as Accordion,
|
|
4567
|
+
mf as AccordionContent,
|
|
4568
|
+
pf as AccordionItem,
|
|
4569
|
+
vf as AccordionTrigger,
|
|
4570
|
+
op as AlertConfirmation,
|
|
4571
|
+
sd as AlertDialog,
|
|
4572
|
+
np as AlertDialogAction,
|
|
4573
|
+
rp as AlertDialogCancel,
|
|
4574
|
+
ld as AlertDialogContent,
|
|
4575
|
+
pd as AlertDialogDescription,
|
|
4576
|
+
dd as AlertDialogFooter,
|
|
4577
|
+
ud as AlertDialogHeader,
|
|
4578
|
+
cd as AlertDialogOverlay,
|
|
4579
|
+
id as AlertDialogPortal,
|
|
4580
|
+
fd as AlertDialogTitle,
|
|
4581
|
+
tp as AlertDialogTrigger,
|
|
4582
|
+
$f as AspectRatio,
|
|
4583
|
+
Yd as Avatar,
|
|
4584
|
+
qd as AvatarFallback,
|
|
4585
|
+
Xd as AvatarImage,
|
|
4586
|
+
ip as Badge,
|
|
4587
|
+
Mf as Card,
|
|
4588
|
+
Af as CardAction,
|
|
4589
|
+
Nf as CardContent,
|
|
4590
|
+
Ef as CardDescription,
|
|
4591
|
+
Pf as CardFooter,
|
|
4592
|
+
yf as CardHeader,
|
|
4593
|
+
Rf as CardTitle,
|
|
4594
|
+
Qc as Command,
|
|
4595
|
+
nf as CommandDialog,
|
|
4596
|
+
af as CommandEmpty,
|
|
4597
|
+
sf as CommandGroup,
|
|
4598
|
+
rf as CommandInput,
|
|
4599
|
+
lf as CommandItem,
|
|
4600
|
+
of as CommandList,
|
|
4601
|
+
cf as CommandSeparator,
|
|
4602
|
+
uf as CommandShortcut,
|
|
4603
|
+
_d as DropdownMenu,
|
|
4604
|
+
Nd as DropdownMenuCheckboxItem,
|
|
4605
|
+
Rd as DropdownMenuContent,
|
|
4606
|
+
Ed as DropdownMenuGroup,
|
|
4607
|
+
Ad as DropdownMenuItem,
|
|
4608
|
+
jd as DropdownMenuLabel,
|
|
4609
|
+
Md as DropdownMenuPortal,
|
|
4610
|
+
Pd as DropdownMenuRadioGroup,
|
|
4611
|
+
Id as DropdownMenuRadioItem,
|
|
4612
|
+
Td as DropdownMenuSeparator,
|
|
4613
|
+
Dd as DropdownMenuShortcut,
|
|
4614
|
+
Od as DropdownMenuSub,
|
|
4615
|
+
$d as DropdownMenuSubContent,
|
|
4616
|
+
kd as DropdownMenuSubTrigger,
|
|
4617
|
+
yd as DropdownMenuTrigger,
|
|
4618
|
+
cp as Input,
|
|
4619
|
+
Tf as InputOTP,
|
|
4620
|
+
Df as InputOTPGroup,
|
|
4621
|
+
kf as InputOTPSeparator,
|
|
4622
|
+
Of as InputOTPSlot,
|
|
4623
|
+
Cd as Label,
|
|
4624
|
+
Rp as LabelError,
|
|
4625
|
+
Ff as Menubar,
|
|
4626
|
+
Hf as MenubarCheckboxItem,
|
|
4627
|
+
Uf as MenubarContent,
|
|
4628
|
+
zf as MenubarGroup,
|
|
4629
|
+
Bf as MenubarItem,
|
|
4630
|
+
Yf as MenubarLabel,
|
|
4631
|
+
Gf as MenubarMenu,
|
|
4632
|
+
zu as MenubarPortal,
|
|
4633
|
+
Kf as MenubarRadioGroup,
|
|
4634
|
+
Wf as MenubarRadioItem,
|
|
4635
|
+
Xf as MenubarSeparator,
|
|
4636
|
+
qf as MenubarShortcut,
|
|
4637
|
+
Zf as MenubarSub,
|
|
4638
|
+
Qf as MenubarSubContent,
|
|
4639
|
+
Jf as MenubarSubTrigger,
|
|
4640
|
+
Vf as MenubarTrigger,
|
|
4641
|
+
fs as Modal,
|
|
4642
|
+
lp as ModalClose,
|
|
4643
|
+
gs as ModalContent,
|
|
4644
|
+
ms as ModalDescription,
|
|
4645
|
+
up as ModalFooter,
|
|
4646
|
+
ps as ModalHeader,
|
|
4647
|
+
dp as ModalOverlay,
|
|
4648
|
+
fp as ModalPortal,
|
|
4649
|
+
vs as ModalTitle,
|
|
4650
|
+
pp as ModalTrigger,
|
|
4651
|
+
hf as NavigationMenu,
|
|
4652
|
+
Cf as NavigationMenuContent,
|
|
4653
|
+
_f as NavigationMenuIndicator,
|
|
4654
|
+
bf as NavigationMenuItem,
|
|
4655
|
+
Sf as NavigationMenuLink,
|
|
4656
|
+
xf as NavigationMenuList,
|
|
4657
|
+
wf as NavigationMenuTrigger,
|
|
4658
|
+
Ul as NavigationMenuViewport,
|
|
4659
|
+
Jd as Popover,
|
|
4660
|
+
tf as PopoverAnchor,
|
|
4661
|
+
ef as PopoverContent,
|
|
4662
|
+
Qd as PopoverTrigger,
|
|
4663
|
+
Hd as ResizableHandle,
|
|
4664
|
+
Bd as ResizablePanel,
|
|
4665
|
+
Ud as ResizablePanelGroup,
|
|
4666
|
+
jf as ScrollArea,
|
|
4667
|
+
au as ScrollBar,
|
|
4668
|
+
vp as Select,
|
|
4669
|
+
mp as SelectContent,
|
|
4670
|
+
gp as SelectGroup,
|
|
4671
|
+
hp as SelectItem,
|
|
4672
|
+
xp as SelectLabel,
|
|
4673
|
+
bp as SelectScrollDownButton,
|
|
4674
|
+
wp as SelectScrollUpButton,
|
|
4675
|
+
Cp as SelectSeparator,
|
|
4676
|
+
Sp as SelectTrigger,
|
|
4677
|
+
_p as SelectValue,
|
|
4678
|
+
Vd as Skeleton,
|
|
4679
|
+
Mp as Switch,
|
|
4680
|
+
Fd as Tabs,
|
|
4681
|
+
Kd as TabsContent,
|
|
4682
|
+
Gd as TabsList,
|
|
4683
|
+
zd as TabsTrigger,
|
|
4684
|
+
Vl as navigationMenuTriggerStyle
|
|
4645
4685
|
};
|
|
4646
4686
|
//# sourceMappingURL=index.es.js.map
|