@motiadev/ui 0.4.1-beta.92 → 0.4.1-beta.93-684602
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/index.js
CHANGED
|
@@ -53,7 +53,7 @@ function Za() {
|
|
|
53
53
|
return y.$$typeof === H ? null : y.displayName || y.name || null;
|
|
54
54
|
if (typeof y == "string") return y;
|
|
55
55
|
switch (y) {
|
|
56
|
-
case
|
|
56
|
+
case m:
|
|
57
57
|
return "Fragment";
|
|
58
58
|
case x:
|
|
59
59
|
return "Profiler";
|
|
@@ -70,7 +70,7 @@ function Za() {
|
|
|
70
70
|
switch (typeof y.tag == "number" && console.error(
|
|
71
71
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
72
|
), y.$$typeof) {
|
|
73
|
-
case
|
|
73
|
+
case h:
|
|
74
74
|
return "Portal";
|
|
75
75
|
case w:
|
|
76
76
|
return (y.displayName || "Context") + ".Provider";
|
|
@@ -111,7 +111,7 @@ function Za() {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function r(y) {
|
|
114
|
-
if (y ===
|
|
114
|
+
if (y === m) return "<>";
|
|
115
115
|
if (typeof y == "object" && y !== null && y.$$typeof === R)
|
|
116
116
|
return "<...>";
|
|
117
117
|
try {
|
|
@@ -155,7 +155,7 @@ function Za() {
|
|
|
155
155
|
}
|
|
156
156
|
function u(y, j, U, P, _, D, L, A) {
|
|
157
157
|
return U = D.ref, y = {
|
|
158
|
-
$$typeof:
|
|
158
|
+
$$typeof: v,
|
|
159
159
|
type: y,
|
|
160
160
|
key: j,
|
|
161
161
|
props: D,
|
|
@@ -236,9 +236,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
function l(y) {
|
|
239
|
-
typeof y == "object" && y !== null && y.$$typeof ===
|
|
239
|
+
typeof y == "object" && y !== null && y.$$typeof === v && y._store && (y._store.validated = 1);
|
|
240
240
|
}
|
|
241
|
-
var f = ve,
|
|
241
|
+
var f = ve, v = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), w = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), V = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, q = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
f = {
|
|
@@ -250,7 +250,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
250
250
|
f,
|
|
251
251
|
s
|
|
252
252
|
)(), k = B(r(s)), I = {};
|
|
253
|
-
bt.Fragment =
|
|
253
|
+
bt.Fragment = m, bt.jsx = function(y, j, U, P, _) {
|
|
254
254
|
var D = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
255
255
|
return d(
|
|
256
256
|
y,
|
|
@@ -281,7 +281,7 @@ var Rr;
|
|
|
281
281
|
function Ja() {
|
|
282
282
|
return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? Dt.exports = qa() : Dt.exports = Za()), Dt.exports;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
284
|
+
var g = Ja();
|
|
285
285
|
function Pr(e, t) {
|
|
286
286
|
if (typeof e == "function")
|
|
287
287
|
return e(t);
|
|
@@ -312,9 +312,9 @@ function St(e) {
|
|
|
312
312
|
const { children: s, ...a } = r, i = p.Children.toArray(s), c = i.find(ni);
|
|
313
313
|
if (c) {
|
|
314
314
|
const u = c.props.children, d = i.map((l) => l === c ? p.Children.count(u) > 1 ? p.Children.only(null) : p.isValidElement(u) ? u.props.children : null : l);
|
|
315
|
-
return /* @__PURE__ */
|
|
315
|
+
return /* @__PURE__ */ g.jsx(t, { ...a, ref: o, children: p.isValidElement(u) ? p.cloneElement(u, void 0, d) : null });
|
|
316
316
|
}
|
|
317
|
-
return /* @__PURE__ */
|
|
317
|
+
return /* @__PURE__ */ g.jsx(t, { ...a, ref: o, children: s });
|
|
318
318
|
});
|
|
319
319
|
return n.displayName = `${e}.Slot`, n;
|
|
320
320
|
}
|
|
@@ -375,16 +375,16 @@ const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kr = go, X
|
|
|
375
375
|
let [l, f] = d;
|
|
376
376
|
return f === void 0 || (u[l] = f), u;
|
|
377
377
|
}, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, d) => {
|
|
378
|
-
let { class: l, className: f, ...
|
|
379
|
-
return Object.entries(
|
|
380
|
-
let [
|
|
378
|
+
let { class: l, className: f, ...v } = d;
|
|
379
|
+
return Object.entries(v).every((h) => {
|
|
380
|
+
let [m, b] = h;
|
|
381
381
|
return Array.isArray(b) ? b.includes({
|
|
382
382
|
...s,
|
|
383
383
|
...i
|
|
384
|
-
}[
|
|
384
|
+
}[m]) : {
|
|
385
385
|
...s,
|
|
386
386
|
...i
|
|
387
|
-
}[
|
|
387
|
+
}[m] === b;
|
|
388
388
|
}) ? [
|
|
389
389
|
...u,
|
|
390
390
|
l,
|
|
@@ -423,7 +423,7 @@ const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kr = go, X
|
|
|
423
423
|
), Le = Ie(
|
|
424
424
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => {
|
|
425
425
|
const a = r ? Qa : "button";
|
|
426
|
-
return /* @__PURE__ */
|
|
426
|
+
return /* @__PURE__ */ g.jsx(a, { className: si({ variant: t, size: n, className: e }), ref: s, ...o });
|
|
427
427
|
}
|
|
428
428
|
);
|
|
429
429
|
Le.displayName = "Button";
|
|
@@ -533,26 +533,26 @@ const qn = "-", ai = (e) => {
|
|
|
533
533
|
let r = (o) => {
|
|
534
534
|
const s = [];
|
|
535
535
|
let a = 0, i = 0, c = 0, u;
|
|
536
|
-
for (let
|
|
537
|
-
let
|
|
536
|
+
for (let h = 0; h < o.length; h++) {
|
|
537
|
+
let m = o[h];
|
|
538
538
|
if (a === 0 && i === 0) {
|
|
539
|
-
if (
|
|
540
|
-
s.push(o.slice(c,
|
|
539
|
+
if (m === Fn) {
|
|
540
|
+
s.push(o.slice(c, h)), c = h + di;
|
|
541
541
|
continue;
|
|
542
542
|
}
|
|
543
|
-
if (
|
|
544
|
-
u =
|
|
543
|
+
if (m === "/") {
|
|
544
|
+
u = h;
|
|
545
545
|
continue;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
|
|
548
|
+
m === "[" ? a++ : m === "]" ? a-- : m === "(" ? i++ : m === ")" && i--;
|
|
549
549
|
}
|
|
550
|
-
const d = s.length === 0 ? o : o.substring(c), l = pi(d), f = l !== d,
|
|
550
|
+
const d = s.length === 0 ? o : o.substring(c), l = pi(d), f = l !== d, v = u && u > c ? u - c : void 0;
|
|
551
551
|
return {
|
|
552
552
|
modifiers: s,
|
|
553
553
|
hasImportantModifier: f,
|
|
554
554
|
baseClassName: l,
|
|
555
|
-
maybePostfixModifierPosition:
|
|
555
|
+
maybePostfixModifierPosition: v
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
558
|
if (t) {
|
|
@@ -601,27 +601,27 @@ const qn = "-", ai = (e) => {
|
|
|
601
601
|
const d = i[u], {
|
|
602
602
|
isExternal: l,
|
|
603
603
|
modifiers: f,
|
|
604
|
-
hasImportantModifier:
|
|
605
|
-
baseClassName:
|
|
606
|
-
maybePostfixModifierPosition:
|
|
604
|
+
hasImportantModifier: v,
|
|
605
|
+
baseClassName: h,
|
|
606
|
+
maybePostfixModifierPosition: m
|
|
607
607
|
} = n(d);
|
|
608
608
|
if (l) {
|
|
609
609
|
c = d + (c.length > 0 ? " " + c : c);
|
|
610
610
|
continue;
|
|
611
611
|
}
|
|
612
|
-
let b = !!
|
|
612
|
+
let b = !!m, x = r(b ? h.substring(0, m) : h);
|
|
613
613
|
if (!x) {
|
|
614
614
|
if (!b) {
|
|
615
615
|
c = d + (c.length > 0 ? " " + c : c);
|
|
616
616
|
continue;
|
|
617
617
|
}
|
|
618
|
-
if (x = r(
|
|
618
|
+
if (x = r(h), !x) {
|
|
619
619
|
c = d + (c.length > 0 ? " " + c : c);
|
|
620
620
|
continue;
|
|
621
621
|
}
|
|
622
622
|
b = !1;
|
|
623
623
|
}
|
|
624
|
-
const E = s(f).join(":"), w =
|
|
624
|
+
const E = s(f).join(":"), w = v ? E + Ln : E, C = w + x;
|
|
625
625
|
if (a.includes(C))
|
|
626
626
|
continue;
|
|
627
627
|
a.push(C);
|
|
@@ -680,7 +680,7 @@ const re = (e) => {
|
|
|
680
680
|
const r = xo.exec(e);
|
|
681
681
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
682
682
|
}, wo = (e) => e === "position" || e === "percentage", Co = (e) => e === "image" || e === "url", So = (e) => e === "length" || e === "size" || e === "bg-size", Eo = (e) => e === "length", Di = (e) => e === "number", ji = (e) => e === "family-name", Ro = (e) => e === "shadow", Li = () => {
|
|
683
|
-
const e = re("color"), t = re("font"), n = re("text"), r = re("font-weight"), o = re("tracking"), s = re("leading"), a = re("breakpoint"), i = re("container"), c = re("spacing"), u = re("radius"), d = re("shadow"), l = re("inset-shadow"), f = re("text-shadow"),
|
|
683
|
+
const e = re("color"), t = re("font"), n = re("text"), r = re("font-weight"), o = re("tracking"), s = re("leading"), a = re("breakpoint"), i = re("container"), c = re("spacing"), u = re("radius"), d = re("shadow"), l = re("inset-shadow"), f = re("text-shadow"), v = re("drop-shadow"), h = re("blur"), m = re("perspective"), b = re("aspect"), x = re("ease"), E = re("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
|
|
684
684
|
"center",
|
|
685
685
|
"top",
|
|
686
686
|
"bottom",
|
|
@@ -718,7 +718,7 @@ const re = (e) => {
|
|
|
718
718
|
// Deprecated since Tailwind CSS v4.0.0
|
|
719
719
|
"",
|
|
720
720
|
"none",
|
|
721
|
-
|
|
721
|
+
h,
|
|
722
722
|
z,
|
|
723
723
|
O
|
|
724
724
|
], K = () => ["none", X, z, O], Q = () => ["none", X, z, O], se = () => [X, z, O], ae = () => [Ze, "full", ...R()];
|
|
@@ -2426,7 +2426,7 @@ const re = (e) => {
|
|
|
2426
2426
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2427
2427
|
"",
|
|
2428
2428
|
"none",
|
|
2429
|
-
|
|
2429
|
+
v,
|
|
2430
2430
|
Lt,
|
|
2431
2431
|
jt
|
|
2432
2432
|
]
|
|
@@ -2654,7 +2654,7 @@ const re = (e) => {
|
|
|
2654
2654
|
* @see https://tailwindcss.com/docs/perspective
|
|
2655
2655
|
*/
|
|
2656
2656
|
perspective: [{
|
|
2657
|
-
perspective: [
|
|
2657
|
+
perspective: [m, z, O]
|
|
2658
2658
|
}],
|
|
2659
2659
|
/**
|
|
2660
2660
|
* Perspective Origin
|
|
@@ -3153,7 +3153,7 @@ const re = (e) => {
|
|
|
3153
3153
|
function ee(...e) {
|
|
3154
3154
|
return Fi(go(e));
|
|
3155
3155
|
}
|
|
3156
|
-
const $i = ({ className: e, ...t }) => /* @__PURE__ */
|
|
3156
|
+
const $i = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
3157
3157
|
"textarea",
|
|
3158
3158
|
{
|
|
3159
3159
|
"data-slot": "textarea",
|
|
@@ -3193,7 +3193,7 @@ const Bi = Xn(
|
|
|
3193
3193
|
variant: "default"
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
|
-
), Gi = Ie(({ className: e, type: t, variant: n, ...r }, o) => /* @__PURE__ */
|
|
3196
|
+
), Gi = Ie(({ className: e, type: t, variant: n, ...r }, o) => /* @__PURE__ */ g.jsx("input", { type: t, className: Bi({ variant: n, className: e }), ref: o, ...r }));
|
|
3197
3197
|
Gi.displayName = "Input";
|
|
3198
3198
|
function J(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
3199
3199
|
return function(o) {
|
|
@@ -3207,13 +3207,13 @@ function dt(e, t = []) {
|
|
|
3207
3207
|
const i = p.createContext(a), c = n.length;
|
|
3208
3208
|
n = [...n, a];
|
|
3209
3209
|
const u = (l) => {
|
|
3210
|
-
const { scope: f, children:
|
|
3211
|
-
return /* @__PURE__ */
|
|
3210
|
+
const { scope: f, children: v, ...h } = l, m = f?.[e]?.[c] || i, b = p.useMemo(() => h, Object.values(h));
|
|
3211
|
+
return /* @__PURE__ */ g.jsx(m.Provider, { value: b, children: v });
|
|
3212
3212
|
};
|
|
3213
3213
|
u.displayName = s + "Provider";
|
|
3214
3214
|
function d(l, f) {
|
|
3215
|
-
const
|
|
3216
|
-
if (
|
|
3215
|
+
const v = f?.[e]?.[c] || i, h = p.useContext(v);
|
|
3216
|
+
if (h) return h;
|
|
3217
3217
|
if (a !== void 0) return a;
|
|
3218
3218
|
throw new Error(`\`${l}\` must be used within \`${s}\``);
|
|
3219
3219
|
}
|
|
@@ -3253,27 +3253,27 @@ function Po(e) {
|
|
|
3253
3253
|
const t = e + "CollectionProvider", [n, r] = dt(t), [o, s] = n(
|
|
3254
3254
|
t,
|
|
3255
3255
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3256
|
-
), a = (
|
|
3257
|
-
const { scope: b, children: x } =
|
|
3258
|
-
return /* @__PURE__ */
|
|
3256
|
+
), a = (m) => {
|
|
3257
|
+
const { scope: b, children: x } = m, E = ve.useRef(null), w = ve.useRef(/* @__PURE__ */ new Map()).current;
|
|
3258
|
+
return /* @__PURE__ */ g.jsx(o, { scope: b, itemMap: w, collectionRef: E, children: x });
|
|
3259
3259
|
};
|
|
3260
3260
|
a.displayName = t;
|
|
3261
3261
|
const i = e + "CollectionSlot", c = /* @__PURE__ */ St(i), u = ve.forwardRef(
|
|
3262
|
-
(
|
|
3263
|
-
const { scope: x, children: E } =
|
|
3264
|
-
return /* @__PURE__ */
|
|
3262
|
+
(m, b) => {
|
|
3263
|
+
const { scope: x, children: E } = m, w = s(i, x), C = de(b, w.collectionRef);
|
|
3264
|
+
return /* @__PURE__ */ g.jsx(c, { ref: C, children: E });
|
|
3265
3265
|
}
|
|
3266
3266
|
);
|
|
3267
3267
|
u.displayName = i;
|
|
3268
|
-
const d = e + "CollectionItemSlot", l = "data-radix-collection-item", f = /* @__PURE__ */ St(d),
|
|
3269
|
-
(
|
|
3270
|
-
const { scope: x, children: E, ...w } =
|
|
3271
|
-
return ve.useEffect(() => (N.itemMap.set(C, { ref: C, ...w }), () => void N.itemMap.delete(C))), /* @__PURE__ */
|
|
3268
|
+
const d = e + "CollectionItemSlot", l = "data-radix-collection-item", f = /* @__PURE__ */ St(d), v = ve.forwardRef(
|
|
3269
|
+
(m, b) => {
|
|
3270
|
+
const { scope: x, children: E, ...w } = m, C = ve.useRef(null), M = de(b, C), N = s(d, x);
|
|
3271
|
+
return ve.useEffect(() => (N.itemMap.set(C, { ref: C, ...w }), () => void N.itemMap.delete(C))), /* @__PURE__ */ g.jsx(f, { [l]: "", ref: M, children: E });
|
|
3272
3272
|
}
|
|
3273
3273
|
);
|
|
3274
|
-
|
|
3275
|
-
function
|
|
3276
|
-
const b = s(e + "CollectionConsumer",
|
|
3274
|
+
v.displayName = d;
|
|
3275
|
+
function h(m) {
|
|
3276
|
+
const b = s(e + "CollectionConsumer", m);
|
|
3277
3277
|
return ve.useCallback(() => {
|
|
3278
3278
|
const E = b.collectionRef.current;
|
|
3279
3279
|
if (!E) return [];
|
|
@@ -3284,8 +3284,8 @@ function Po(e) {
|
|
|
3284
3284
|
}, [b.collectionRef, b.itemMap]);
|
|
3285
3285
|
}
|
|
3286
3286
|
return [
|
|
3287
|
-
{ Provider: a, Slot: u, ItemSlot:
|
|
3288
|
-
|
|
3287
|
+
{ Provider: a, Slot: u, ItemSlot: v },
|
|
3288
|
+
h,
|
|
3289
3289
|
r
|
|
3290
3290
|
];
|
|
3291
3291
|
}
|
|
@@ -3319,7 +3319,7 @@ var Ui = [
|
|
|
3319
3319
|
], oe = Ui.reduce((e, t) => {
|
|
3320
3320
|
const n = /* @__PURE__ */ St(`Primitive.${t}`), r = p.forwardRef((o, s) => {
|
|
3321
3321
|
const { asChild: a, ...i } = o, c = a ? n : t;
|
|
3322
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
3322
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g.jsx(c, { ...i, ref: s });
|
|
3323
3323
|
});
|
|
3324
3324
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
3325
3325
|
}, {});
|
|
@@ -3388,7 +3388,7 @@ var Cn = "rovingFocusGroup.onEntryFocus", Zi = { bubbles: !1, cancelable: !0 },
|
|
|
3388
3388
|
Nt,
|
|
3389
3389
|
[Ji]
|
|
3390
3390
|
), [ec, tc] = Qi(Nt), Mo = p.forwardRef(
|
|
3391
|
-
(e, t) => /* @__PURE__ */
|
|
3391
|
+
(e, t) => /* @__PURE__ */ g.jsx($n.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx($n.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g.jsx(nc, { ...e, ref: t }) }) })
|
|
3392
3392
|
);
|
|
3393
3393
|
Mo.displayName = Nt;
|
|
3394
3394
|
var nc = p.forwardRef((e, t) => {
|
|
@@ -3403,7 +3403,7 @@ var nc = p.forwardRef((e, t) => {
|
|
|
3403
3403
|
onEntryFocus: u,
|
|
3404
3404
|
preventScrollOnEntryFocus: d = !1,
|
|
3405
3405
|
...l
|
|
3406
|
-
} = e, f = p.useRef(null),
|
|
3406
|
+
} = e, f = p.useRef(null), v = de(t, f), h = Zn(s), [m, b] = sn({
|
|
3407
3407
|
prop: a,
|
|
3408
3408
|
defaultProp: i ?? null,
|
|
3409
3409
|
onChange: c,
|
|
@@ -3413,14 +3413,14 @@ var nc = p.forwardRef((e, t) => {
|
|
|
3413
3413
|
const R = f.current;
|
|
3414
3414
|
if (R)
|
|
3415
3415
|
return R.addEventListener(Cn, w), () => R.removeEventListener(Cn, w);
|
|
3416
|
-
}, [w]), /* @__PURE__ */
|
|
3416
|
+
}, [w]), /* @__PURE__ */ g.jsx(
|
|
3417
3417
|
ec,
|
|
3418
3418
|
{
|
|
3419
3419
|
scope: n,
|
|
3420
3420
|
orientation: r,
|
|
3421
|
-
dir:
|
|
3421
|
+
dir: h,
|
|
3422
3422
|
loop: o,
|
|
3423
|
-
currentTabStopId:
|
|
3423
|
+
currentTabStopId: m,
|
|
3424
3424
|
onItemFocus: p.useCallback(
|
|
3425
3425
|
(R) => b(R),
|
|
3426
3426
|
[b]
|
|
@@ -3434,13 +3434,13 @@ var nc = p.forwardRef((e, t) => {
|
|
|
3434
3434
|
() => S((R) => R - 1),
|
|
3435
3435
|
[]
|
|
3436
3436
|
),
|
|
3437
|
-
children: /* @__PURE__ */
|
|
3437
|
+
children: /* @__PURE__ */ g.jsx(
|
|
3438
3438
|
oe.div,
|
|
3439
3439
|
{
|
|
3440
3440
|
tabIndex: x || N === 0 ? -1 : 0,
|
|
3441
3441
|
"data-orientation": r,
|
|
3442
3442
|
...l,
|
|
3443
|
-
ref:
|
|
3443
|
+
ref: v,
|
|
3444
3444
|
style: { outline: "none", ...e.style },
|
|
3445
3445
|
onMouseDown: J(e.onMouseDown, () => {
|
|
3446
3446
|
M.current = !0;
|
|
@@ -3450,7 +3450,7 @@ var nc = p.forwardRef((e, t) => {
|
|
|
3450
3450
|
if (R.target === R.currentTarget && G && !x) {
|
|
3451
3451
|
const H = new CustomEvent(Cn, Zi);
|
|
3452
3452
|
if (R.currentTarget.dispatchEvent(H), !H.defaultPrevented) {
|
|
3453
|
-
const V = C().filter((F) => F.focusable), $ = V.find((F) => F.active), q = V.find((F) => F.id ===
|
|
3453
|
+
const V = C().filter((F) => F.focusable), $ = V.find((F) => F.active), q = V.find((F) => F.id === m), W = [$, q, ...V].filter(
|
|
3454
3454
|
Boolean
|
|
3455
3455
|
).map((F) => F.ref.current);
|
|
3456
3456
|
Io(W, d);
|
|
@@ -3472,18 +3472,18 @@ var nc = p.forwardRef((e, t) => {
|
|
|
3472
3472
|
tabStopId: s,
|
|
3473
3473
|
children: a,
|
|
3474
3474
|
...i
|
|
3475
|
-
} = e, c = it(), u = s || c, d = tc(No, n), l = d.currentTabStopId === u, f = ko(n), { onFocusableItemAdd:
|
|
3475
|
+
} = e, c = it(), u = s || c, d = tc(No, n), l = d.currentTabStopId === u, f = ko(n), { onFocusableItemAdd: v, onFocusableItemRemove: h, currentTabStopId: m } = d;
|
|
3476
3476
|
return p.useEffect(() => {
|
|
3477
3477
|
if (r)
|
|
3478
|
-
return
|
|
3479
|
-
}, [r,
|
|
3478
|
+
return v(), () => h();
|
|
3479
|
+
}, [r, v, h]), /* @__PURE__ */ g.jsx(
|
|
3480
3480
|
$n.ItemSlot,
|
|
3481
3481
|
{
|
|
3482
3482
|
scope: n,
|
|
3483
3483
|
id: u,
|
|
3484
3484
|
focusable: r,
|
|
3485
3485
|
active: o,
|
|
3486
|
-
children: /* @__PURE__ */
|
|
3486
|
+
children: /* @__PURE__ */ g.jsx(
|
|
3487
3487
|
oe.span,
|
|
3488
3488
|
{
|
|
3489
3489
|
tabIndex: l ? 0 : -1,
|
|
@@ -3514,7 +3514,7 @@ var nc = p.forwardRef((e, t) => {
|
|
|
3514
3514
|
setTimeout(() => Io(w));
|
|
3515
3515
|
}
|
|
3516
3516
|
}),
|
|
3517
|
-
children: typeof a == "function" ? a({ isCurrentTabStop: l, hasTabStop:
|
|
3517
|
+
children: typeof a == "function" ? a({ isCurrentTabStop: l, hasTabStop: m != null }) : a
|
|
3518
3518
|
}
|
|
3519
3519
|
)
|
|
3520
3520
|
}
|
|
@@ -3577,22 +3577,22 @@ function cc(e) {
|
|
|
3577
3577
|
}, [i]), Fe(() => {
|
|
3578
3578
|
const u = r.current, d = o.current;
|
|
3579
3579
|
if (d !== e) {
|
|
3580
|
-
const f = s.current,
|
|
3581
|
-
e ? c("MOUNT") :
|
|
3580
|
+
const f = s.current, v = Ft(u);
|
|
3581
|
+
e ? c("MOUNT") : v === "none" || u?.display === "none" ? c("UNMOUNT") : c(d && f !== v ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
3582
3582
|
}
|
|
3583
3583
|
}, [e, c]), Fe(() => {
|
|
3584
3584
|
if (t) {
|
|
3585
3585
|
let u;
|
|
3586
|
-
const d = t.ownerDocument.defaultView ?? window, l = (
|
|
3587
|
-
const
|
|
3588
|
-
if (
|
|
3586
|
+
const d = t.ownerDocument.defaultView ?? window, l = (v) => {
|
|
3587
|
+
const m = Ft(r.current).includes(v.animationName);
|
|
3588
|
+
if (v.target === t && m && (c("ANIMATION_END"), !o.current)) {
|
|
3589
3589
|
const b = t.style.animationFillMode;
|
|
3590
3590
|
t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
|
|
3591
3591
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = b);
|
|
3592
3592
|
});
|
|
3593
3593
|
}
|
|
3594
|
-
}, f = (
|
|
3595
|
-
|
|
3594
|
+
}, f = (v) => {
|
|
3595
|
+
v.target === t && (s.current = Ft(r.current));
|
|
3596
3596
|
};
|
|
3597
3597
|
return t.addEventListener("animationstart", f), t.addEventListener("animationcancel", l), t.addEventListener("animationend", l), () => {
|
|
3598
3598
|
d.clearTimeout(u), t.removeEventListener("animationstart", f), t.removeEventListener("animationcancel", l), t.removeEventListener("animationend", l);
|
|
@@ -3632,7 +3632,7 @@ var cn = "Tabs", [uc, np] = dt(cn, [
|
|
|
3632
3632
|
defaultProp: s ?? "",
|
|
3633
3633
|
caller: cn
|
|
3634
3634
|
});
|
|
3635
|
-
return /* @__PURE__ */
|
|
3635
|
+
return /* @__PURE__ */ g.jsx(
|
|
3636
3636
|
dc,
|
|
3637
3637
|
{
|
|
3638
3638
|
scope: n,
|
|
@@ -3642,7 +3642,7 @@ var cn = "Tabs", [uc, np] = dt(cn, [
|
|
|
3642
3642
|
orientation: a,
|
|
3643
3643
|
dir: d,
|
|
3644
3644
|
activationMode: c,
|
|
3645
|
-
children: /* @__PURE__ */
|
|
3645
|
+
children: /* @__PURE__ */ g.jsx(
|
|
3646
3646
|
oe.div,
|
|
3647
3647
|
{
|
|
3648
3648
|
dir: d,
|
|
@@ -3659,7 +3659,7 @@ Do.displayName = cn;
|
|
|
3659
3659
|
var jo = "TabsList", Lo = p.forwardRef(
|
|
3660
3660
|
(e, t) => {
|
|
3661
3661
|
const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Jn(jo, n), a = zo(n);
|
|
3662
|
-
return /* @__PURE__ */
|
|
3662
|
+
return /* @__PURE__ */ g.jsx(
|
|
3663
3663
|
To,
|
|
3664
3664
|
{
|
|
3665
3665
|
asChild: !0,
|
|
@@ -3667,7 +3667,7 @@ var jo = "TabsList", Lo = p.forwardRef(
|
|
|
3667
3667
|
orientation: s.orientation,
|
|
3668
3668
|
dir: s.dir,
|
|
3669
3669
|
loop: r,
|
|
3670
|
-
children: /* @__PURE__ */
|
|
3670
|
+
children: /* @__PURE__ */ g.jsx(
|
|
3671
3671
|
oe.div,
|
|
3672
3672
|
{
|
|
3673
3673
|
role: "tablist",
|
|
@@ -3684,14 +3684,14 @@ Lo.displayName = jo;
|
|
|
3684
3684
|
var Fo = "TabsTrigger", $o = p.forwardRef(
|
|
3685
3685
|
(e, t) => {
|
|
3686
3686
|
const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, a = Jn(Fo, n), i = zo(n), c = Ho(a.baseId, r), u = Wo(a.baseId, r), d = r === a.value;
|
|
3687
|
-
return /* @__PURE__ */
|
|
3687
|
+
return /* @__PURE__ */ g.jsx(
|
|
3688
3688
|
Oo,
|
|
3689
3689
|
{
|
|
3690
3690
|
asChild: !0,
|
|
3691
3691
|
...i,
|
|
3692
3692
|
focusable: !o,
|
|
3693
3693
|
active: d,
|
|
3694
|
-
children: /* @__PURE__ */
|
|
3694
|
+
children: /* @__PURE__ */ g.jsx(
|
|
3695
3695
|
oe.button,
|
|
3696
3696
|
{
|
|
3697
3697
|
type: "button",
|
|
@@ -3727,7 +3727,7 @@ var Bo = "TabsContent", Go = p.forwardRef(
|
|
|
3727
3727
|
return p.useEffect(() => {
|
|
3728
3728
|
const f = requestAnimationFrame(() => l.current = !1);
|
|
3729
3729
|
return () => cancelAnimationFrame(f);
|
|
3730
|
-
}, []), /* @__PURE__ */
|
|
3730
|
+
}, []), /* @__PURE__ */ g.jsx(ft, { present: o || d, children: ({ present: f }) => /* @__PURE__ */ g.jsx(
|
|
3731
3731
|
oe.div,
|
|
3732
3732
|
{
|
|
3733
3733
|
"data-state": d ? "active" : "inactive",
|
|
@@ -3756,9 +3756,9 @@ function Wo(e, t) {
|
|
|
3756
3756
|
return `${e}-content-${t}`;
|
|
3757
3757
|
}
|
|
3758
3758
|
var fc = Do, pc = Lo, mc = $o, gc = Go;
|
|
3759
|
-
const Qn = ({ className: e, ...t }) => /* @__PURE__ */
|
|
3759
|
+
const Qn = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(fc, { "data-slot": "tabs", className: ee("flex flex-col", e), ...t });
|
|
3760
3760
|
Qn.displayName = "Tabs";
|
|
3761
|
-
const Vo = ({ className: e, ...t }) => /* @__PURE__ */
|
|
3761
|
+
const Vo = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
3762
3762
|
pc,
|
|
3763
3763
|
{
|
|
3764
3764
|
"data-slot": "tabs-list",
|
|
@@ -3767,7 +3767,7 @@ const Vo = ({ className: e, ...t }) => /* @__PURE__ */ m.jsx(
|
|
|
3767
3767
|
}
|
|
3768
3768
|
);
|
|
3769
3769
|
Vo.displayName = "TabsList";
|
|
3770
|
-
const Uo = ({ className: e, ...t }) => /* @__PURE__ */
|
|
3770
|
+
const Uo = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
3771
3771
|
mc,
|
|
3772
3772
|
{
|
|
3773
3773
|
"data-slot": "tabs-trigger",
|
|
@@ -3779,7 +3779,7 @@ const Uo = ({ className: e, ...t }) => /* @__PURE__ */ m.jsx(
|
|
|
3779
3779
|
}
|
|
3780
3780
|
);
|
|
3781
3781
|
Uo.displayName = "TabsTrigger";
|
|
3782
|
-
const Ko = ({ className: e, ...t }) => /* @__PURE__ */
|
|
3782
|
+
const Ko = ({ className: e, ...t }) => /* @__PURE__ */ g.jsx(
|
|
3783
3783
|
gc,
|
|
3784
3784
|
{
|
|
3785
3785
|
"data-slot": "tabs-content",
|
|
@@ -3794,97 +3794,99 @@ const hc = {
|
|
|
3794
3794
|
filled: "bg-muted border border-transparent",
|
|
3795
3795
|
ghost: "bg-transparent border-transparent shadow-none"
|
|
3796
3796
|
}, vc = ({
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3797
|
+
"data-testid": e,
|
|
3798
|
+
title: t,
|
|
3799
|
+
subtitle: n,
|
|
3800
|
+
details: r,
|
|
3801
|
+
actions: o,
|
|
3802
|
+
className: s,
|
|
3803
|
+
children: a,
|
|
3804
|
+
size: i,
|
|
3805
|
+
variant: c = "default",
|
|
3806
|
+
contentClassName: u,
|
|
3807
|
+
tabs: d
|
|
3807
3808
|
}) => {
|
|
3808
|
-
const
|
|
3809
|
-
const
|
|
3810
|
-
|
|
3809
|
+
const l = d && d.length > 0, f = Yn(() => {
|
|
3810
|
+
const v = /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
3811
|
+
l && /* @__PURE__ */ g.jsx(
|
|
3811
3812
|
Vo,
|
|
3812
3813
|
{
|
|
3813
3814
|
className: ee("bg-card border-b border-border px-1 pt-5", {
|
|
3814
|
-
"bg-transparent":
|
|
3815
|
+
"bg-transparent": c === "ghost"
|
|
3815
3816
|
}),
|
|
3816
|
-
children:
|
|
3817
|
+
children: d?.map((h) => /* @__PURE__ */ g.jsx(Uo, { value: h.label, "data-testid": h["data-testid"], children: h.label }, h.label))
|
|
3817
3818
|
}
|
|
3818
3819
|
),
|
|
3819
|
-
/* @__PURE__ */
|
|
3820
|
-
|
|
3821
|
-
/* @__PURE__ */
|
|
3822
|
-
/* @__PURE__ */
|
|
3823
|
-
] },
|
|
3824
|
-
|
|
3825
|
-
|
|
3820
|
+
/* @__PURE__ */ g.jsxs("div", { className: ee("flex flex-col gap-2 p-4", u), children: [
|
|
3821
|
+
r?.map((h, m) => /* @__PURE__ */ g.jsxs("div", { className: "flex gap-4 items-start", children: [
|
|
3822
|
+
/* @__PURE__ */ g.jsx("div", { className: "flex items-center h-8 shrink-0", children: /* @__PURE__ */ g.jsx("span", { className: "text-sm font-medium text-foreground tracking-[-0.25px] w-24 truncate", children: h.label }) }),
|
|
3823
|
+
/* @__PURE__ */ g.jsx("div", { className: ee("flex-1 rounded-lg px-2 py-1 min-h-6", h.highlighted && "bg-secondary"), children: /* @__PURE__ */ g.jsx("div", { className: "flex items-center min-h-6", children: typeof h.value == "string" ? /* @__PURE__ */ g.jsx("span", { className: "text-sm font-medium text-muted-foreground tracking-[-0.25px] leading-tight", children: h.value }) : h.value }) })
|
|
3824
|
+
] }, m)),
|
|
3825
|
+
l && d.map((h) => /* @__PURE__ */ g.jsx(Ko, { value: h.label, children: h.content }, h.label)),
|
|
3826
|
+
a
|
|
3826
3827
|
] })
|
|
3827
3828
|
] });
|
|
3828
|
-
return
|
|
3829
|
-
}, [
|
|
3830
|
-
return /* @__PURE__ */
|
|
3829
|
+
return l ? /* @__PURE__ */ g.jsx(Qn, { defaultValue: d?.[0]?.label, children: v }) : v;
|
|
3830
|
+
}, [d, c, i, t, n, r, o, u, a, l]);
|
|
3831
|
+
return /* @__PURE__ */ g.jsx(
|
|
3831
3832
|
"div",
|
|
3832
3833
|
{
|
|
3833
3834
|
className: ee(
|
|
3834
3835
|
"relative size-full backdrop-blur-[48px] backdrop-filter",
|
|
3835
3836
|
"text-foreground",
|
|
3836
3837
|
"rounded-lg overflow-hidden",
|
|
3837
|
-
hc[
|
|
3838
|
-
|
|
3838
|
+
hc[c],
|
|
3839
|
+
s
|
|
3839
3840
|
),
|
|
3840
|
-
|
|
3841
|
-
|
|
3841
|
+
"data-testid": e,
|
|
3842
|
+
children: /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col size-full", children: [
|
|
3843
|
+
/* @__PURE__ */ g.jsx(
|
|
3842
3844
|
"div",
|
|
3843
3845
|
{
|
|
3844
3846
|
className: ee("relative shrink-0 w-full border-b border-border bg-card", {
|
|
3845
|
-
"bg-transparent":
|
|
3846
|
-
"border-b-0":
|
|
3847
|
+
"bg-transparent": c === "ghost",
|
|
3848
|
+
"border-b-0": l
|
|
3847
3849
|
}),
|
|
3848
|
-
children: /* @__PURE__ */
|
|
3850
|
+
children: /* @__PURE__ */ g.jsxs(
|
|
3849
3851
|
"div",
|
|
3850
3852
|
{
|
|
3851
3853
|
className: ee("flex flex-col gap-1 px-5 py-4", {
|
|
3852
|
-
"px-4 py-3":
|
|
3853
|
-
"px-5 py-4":
|
|
3854
|
-
"pb-0":
|
|
3854
|
+
"px-4 py-3": i === "sm",
|
|
3855
|
+
"px-5 py-4": i === "md",
|
|
3856
|
+
"pb-0": l
|
|
3855
3857
|
}),
|
|
3856
3858
|
children: [
|
|
3857
|
-
/* @__PURE__ */
|
|
3858
|
-
/* @__PURE__ */
|
|
3859
|
+
/* @__PURE__ */ g.jsxs("div", { className: "flex items-center w-full", children: [
|
|
3860
|
+
/* @__PURE__ */ g.jsx(
|
|
3859
3861
|
"div",
|
|
3860
3862
|
{
|
|
3861
3863
|
className: ee(
|
|
3862
3864
|
"font-semibold text-foreground tracking-[-0.25px] leading-tight flex-1",
|
|
3863
|
-
|
|
3865
|
+
i === "sm" ? "text-xs" : "text-base"
|
|
3864
3866
|
),
|
|
3865
|
-
children:
|
|
3867
|
+
children: t
|
|
3866
3868
|
}
|
|
3867
3869
|
),
|
|
3868
|
-
|
|
3870
|
+
o && o.length > 0 && /* @__PURE__ */ g.jsx("div", { className: "flex items-center gap-1", children: o.map((v, h) => /* @__PURE__ */ g.jsx(
|
|
3869
3871
|
Le,
|
|
3870
3872
|
{
|
|
3871
|
-
onClick:
|
|
3873
|
+
onClick: v.onClick,
|
|
3872
3874
|
variant: "ghost",
|
|
3873
|
-
className: ee(
|
|
3875
|
+
className: ee(v.active && "bg-muted-foreground/20 hover:bg-muted-foreground/30"),
|
|
3874
3876
|
size: "icon",
|
|
3875
|
-
"aria-label":
|
|
3876
|
-
children:
|
|
3877
|
+
"aria-label": v.label,
|
|
3878
|
+
children: v.icon
|
|
3877
3879
|
},
|
|
3878
|
-
|
|
3880
|
+
h
|
|
3879
3881
|
)) })
|
|
3880
3882
|
] }),
|
|
3881
|
-
|
|
3883
|
+
n && /* @__PURE__ */ g.jsx("p", { className: "text-sm font-medium text-muted-foreground tracking-[-0.25px] leading-tight", children: n })
|
|
3882
3884
|
]
|
|
3883
3885
|
}
|
|
3884
3886
|
)
|
|
3885
3887
|
}
|
|
3886
3888
|
),
|
|
3887
|
-
/* @__PURE__ */
|
|
3889
|
+
/* @__PURE__ */ g.jsx("div", { className: "flex-1 overflow-auto", children: f })
|
|
3888
3890
|
] })
|
|
3889
3891
|
}
|
|
3890
3892
|
);
|
|
@@ -3913,7 +3915,7 @@ var xc = "DismissableLayer", Bn = "dismissableLayer.update", yc = "dismissableLa
|
|
|
3913
3915
|
onInteractOutside: a,
|
|
3914
3916
|
onDismiss: i,
|
|
3915
3917
|
...c
|
|
3916
|
-
} = e, u = p.useContext(Yo), [d, l] = p.useState(null), f = d?.ownerDocument ?? globalThis?.document, [,
|
|
3918
|
+
} = e, u = p.useContext(Yo), [d, l] = p.useState(null), f = d?.ownerDocument ?? globalThis?.document, [, v] = p.useState({}), h = de(t, (S) => l(S)), m = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(b), E = d ? m.indexOf(d) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, C = E >= x, M = Ec((S) => {
|
|
3917
3919
|
const R = S.target, G = [...u.branches].some((H) => H.contains(R));
|
|
3918
3920
|
!C || G || (o?.(S), a?.(S), S.defaultPrevented || i?.());
|
|
3919
3921
|
}, f), N = Rc((S) => {
|
|
@@ -3930,13 +3932,13 @@ var xc = "DismissableLayer", Bn = "dismissableLayer.update", yc = "dismissableLa
|
|
|
3930
3932
|
}, [d, f, n, u]), p.useEffect(() => () => {
|
|
3931
3933
|
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Or());
|
|
3932
3934
|
}, [d, u]), p.useEffect(() => {
|
|
3933
|
-
const S = () =>
|
|
3935
|
+
const S = () => v({});
|
|
3934
3936
|
return document.addEventListener(Bn, S), () => document.removeEventListener(Bn, S);
|
|
3935
|
-
}, []), /* @__PURE__ */
|
|
3937
|
+
}, []), /* @__PURE__ */ g.jsx(
|
|
3936
3938
|
oe.div,
|
|
3937
3939
|
{
|
|
3938
3940
|
...c,
|
|
3939
|
-
ref:
|
|
3941
|
+
ref: h,
|
|
3940
3942
|
style: {
|
|
3941
3943
|
pointerEvents: w ? C ? "auto" : "none" : void 0,
|
|
3942
3944
|
...e.style
|
|
@@ -3960,7 +3962,7 @@ var Cc = "DismissableLayerBranch", Sc = p.forwardRef((e, t) => {
|
|
|
3960
3962
|
return n.branches.add(s), () => {
|
|
3961
3963
|
n.branches.delete(s);
|
|
3962
3964
|
};
|
|
3963
|
-
}, [n.branches]), /* @__PURE__ */
|
|
3965
|
+
}, [n.branches]), /* @__PURE__ */ g.jsx(oe.div, { ...e, ref: o });
|
|
3964
3966
|
});
|
|
3965
3967
|
Sc.displayName = Cc;
|
|
3966
3968
|
function Ec(e, t = globalThis?.document) {
|
|
@@ -4035,7 +4037,7 @@ var En = "focusScope.autoFocusOnMount", Rn = "focusScope.autoFocusOnUnmount", Dr
|
|
|
4035
4037
|
onMountAutoFocus: o,
|
|
4036
4038
|
onUnmountAutoFocus: s,
|
|
4037
4039
|
...a
|
|
4038
|
-
} = e, [i, c] = p.useState(null), u = Se(o), d = Se(s), l = p.useRef(null), f = de(t, (
|
|
4040
|
+
} = e, [i, c] = p.useState(null), u = Se(o), d = Se(s), l = p.useRef(null), f = de(t, (m) => c(m)), v = p.useRef({
|
|
4039
4041
|
paused: !1,
|
|
4040
4042
|
pause() {
|
|
4041
4043
|
this.paused = !0;
|
|
@@ -4046,12 +4048,12 @@ var En = "focusScope.autoFocusOnMount", Rn = "focusScope.autoFocusOnUnmount", Dr
|
|
|
4046
4048
|
}).current;
|
|
4047
4049
|
p.useEffect(() => {
|
|
4048
4050
|
if (r) {
|
|
4049
|
-
let
|
|
4050
|
-
if (
|
|
4051
|
+
let m = function(w) {
|
|
4052
|
+
if (v.paused || !i) return;
|
|
4051
4053
|
const C = w.target;
|
|
4052
4054
|
i.contains(C) ? l.current = C : Oe(l.current, { select: !0 });
|
|
4053
4055
|
}, b = function(w) {
|
|
4054
|
-
if (
|
|
4056
|
+
if (v.paused || !i) return;
|
|
4055
4057
|
const C = w.relatedTarget;
|
|
4056
4058
|
C !== null && (i.contains(C) || Oe(l.current, { select: !0 }));
|
|
4057
4059
|
}, x = function(w) {
|
|
@@ -4059,40 +4061,40 @@ var En = "focusScope.autoFocusOnMount", Rn = "focusScope.autoFocusOnUnmount", Dr
|
|
|
4059
4061
|
for (const M of w)
|
|
4060
4062
|
M.removedNodes.length > 0 && Oe(i);
|
|
4061
4063
|
};
|
|
4062
|
-
document.addEventListener("focusin",
|
|
4064
|
+
document.addEventListener("focusin", m), document.addEventListener("focusout", b);
|
|
4063
4065
|
const E = new MutationObserver(x);
|
|
4064
4066
|
return i && E.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
4065
|
-
document.removeEventListener("focusin",
|
|
4067
|
+
document.removeEventListener("focusin", m), document.removeEventListener("focusout", b), E.disconnect();
|
|
4066
4068
|
};
|
|
4067
4069
|
}
|
|
4068
|
-
}, [r, i,
|
|
4070
|
+
}, [r, i, v.paused]), p.useEffect(() => {
|
|
4069
4071
|
if (i) {
|
|
4070
|
-
Lr.add(
|
|
4071
|
-
const
|
|
4072
|
-
if (!i.contains(
|
|
4072
|
+
Lr.add(v);
|
|
4073
|
+
const m = document.activeElement;
|
|
4074
|
+
if (!i.contains(m)) {
|
|
4073
4075
|
const x = new CustomEvent(En, Dr);
|
|
4074
|
-
i.addEventListener(En, u), i.dispatchEvent(x), x.defaultPrevented || (kc(Tc(Jo(i)), { select: !0 }), document.activeElement ===
|
|
4076
|
+
i.addEventListener(En, u), i.dispatchEvent(x), x.defaultPrevented || (kc(Tc(Jo(i)), { select: !0 }), document.activeElement === m && Oe(i));
|
|
4075
4077
|
}
|
|
4076
4078
|
return () => {
|
|
4077
4079
|
i.removeEventListener(En, u), setTimeout(() => {
|
|
4078
4080
|
const x = new CustomEvent(Rn, Dr);
|
|
4079
|
-
i.addEventListener(Rn, d), i.dispatchEvent(x), x.defaultPrevented || Oe(
|
|
4081
|
+
i.addEventListener(Rn, d), i.dispatchEvent(x), x.defaultPrevented || Oe(m ?? document.body, { select: !0 }), i.removeEventListener(Rn, d), Lr.remove(v);
|
|
4080
4082
|
}, 0);
|
|
4081
4083
|
};
|
|
4082
4084
|
}
|
|
4083
|
-
}, [i, u, d,
|
|
4084
|
-
const
|
|
4085
|
-
(
|
|
4086
|
-
if (!n && !r ||
|
|
4087
|
-
const b =
|
|
4085
|
+
}, [i, u, d, v]);
|
|
4086
|
+
const h = p.useCallback(
|
|
4087
|
+
(m) => {
|
|
4088
|
+
if (!n && !r || v.paused) return;
|
|
4089
|
+
const b = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, x = document.activeElement;
|
|
4088
4090
|
if (b && x) {
|
|
4089
|
-
const E =
|
|
4090
|
-
w && C ? !
|
|
4091
|
+
const E = m.currentTarget, [w, C] = Mc(E);
|
|
4092
|
+
w && C ? !m.shiftKey && x === C ? (m.preventDefault(), n && Oe(w, { select: !0 })) : m.shiftKey && x === w && (m.preventDefault(), n && Oe(C, { select: !0 })) : x === E && m.preventDefault();
|
|
4091
4093
|
}
|
|
4092
4094
|
},
|
|
4093
|
-
[n, r,
|
|
4095
|
+
[n, r, v.paused]
|
|
4094
4096
|
);
|
|
4095
|
-
return /* @__PURE__ */
|
|
4097
|
+
return /* @__PURE__ */ g.jsx(oe.div, { tabIndex: -1, ...a, ref: f, onKeyDown: h });
|
|
4096
4098
|
});
|
|
4097
4099
|
Zo.displayName = Ac;
|
|
4098
4100
|
function kc(e, { select: t = !1 } = {}) {
|
|
@@ -4267,47 +4269,47 @@ function $r(e, t, n) {
|
|
|
4267
4269
|
floating: o
|
|
4268
4270
|
} = e;
|
|
4269
4271
|
const s = Be(t), a = nr(t), i = tr(a), c = _e(t), u = s === "y", d = r.x + r.width / 2 - o.width / 2, l = r.y + r.height / 2 - o.height / 2, f = r[i] / 2 - o[i] / 2;
|
|
4270
|
-
let
|
|
4272
|
+
let v;
|
|
4271
4273
|
switch (c) {
|
|
4272
4274
|
case "top":
|
|
4273
|
-
|
|
4275
|
+
v = {
|
|
4274
4276
|
x: d,
|
|
4275
4277
|
y: r.y - o.height
|
|
4276
4278
|
};
|
|
4277
4279
|
break;
|
|
4278
4280
|
case "bottom":
|
|
4279
|
-
|
|
4281
|
+
v = {
|
|
4280
4282
|
x: d,
|
|
4281
4283
|
y: r.y + r.height
|
|
4282
4284
|
};
|
|
4283
4285
|
break;
|
|
4284
4286
|
case "right":
|
|
4285
|
-
|
|
4287
|
+
v = {
|
|
4286
4288
|
x: r.x + r.width,
|
|
4287
4289
|
y: l
|
|
4288
4290
|
};
|
|
4289
4291
|
break;
|
|
4290
4292
|
case "left":
|
|
4291
|
-
|
|
4293
|
+
v = {
|
|
4292
4294
|
x: r.x - o.width,
|
|
4293
4295
|
y: l
|
|
4294
4296
|
};
|
|
4295
4297
|
break;
|
|
4296
4298
|
default:
|
|
4297
|
-
|
|
4299
|
+
v = {
|
|
4298
4300
|
x: r.x,
|
|
4299
4301
|
y: r.y
|
|
4300
4302
|
};
|
|
4301
4303
|
}
|
|
4302
4304
|
switch (pt(t)) {
|
|
4303
4305
|
case "start":
|
|
4304
|
-
|
|
4306
|
+
v[a] -= f * (n && u ? -1 : 1);
|
|
4305
4307
|
break;
|
|
4306
4308
|
case "end":
|
|
4307
|
-
|
|
4309
|
+
v[a] += f * (n && u ? -1 : 1);
|
|
4308
4310
|
break;
|
|
4309
4311
|
}
|
|
4310
|
-
return
|
|
4312
|
+
return v;
|
|
4311
4313
|
}
|
|
4312
4314
|
const Gc = async (e, t, n) => {
|
|
4313
4315
|
const {
|
|
@@ -4323,12 +4325,12 @@ const Gc = async (e, t, n) => {
|
|
|
4323
4325
|
}), {
|
|
4324
4326
|
x: d,
|
|
4325
4327
|
y: l
|
|
4326
|
-
} = $r(u, r, c), f = r,
|
|
4327
|
-
for (let
|
|
4328
|
+
} = $r(u, r, c), f = r, v = {}, h = 0;
|
|
4329
|
+
for (let m = 0; m < i.length; m++) {
|
|
4328
4330
|
const {
|
|
4329
4331
|
name: b,
|
|
4330
4332
|
fn: x
|
|
4331
|
-
} = i[
|
|
4333
|
+
} = i[m], {
|
|
4332
4334
|
x: E,
|
|
4333
4335
|
y: w,
|
|
4334
4336
|
data: C,
|
|
@@ -4339,7 +4341,7 @@ const Gc = async (e, t, n) => {
|
|
|
4339
4341
|
initialPlacement: r,
|
|
4340
4342
|
placement: f,
|
|
4341
4343
|
strategy: o,
|
|
4342
|
-
middlewareData:
|
|
4344
|
+
middlewareData: v,
|
|
4343
4345
|
rects: u,
|
|
4344
4346
|
platform: a,
|
|
4345
4347
|
elements: {
|
|
@@ -4347,27 +4349,27 @@ const Gc = async (e, t, n) => {
|
|
|
4347
4349
|
floating: t
|
|
4348
4350
|
}
|
|
4349
4351
|
});
|
|
4350
|
-
d = E ?? d, l = w ?? l,
|
|
4351
|
-
...
|
|
4352
|
+
d = E ?? d, l = w ?? l, v = {
|
|
4353
|
+
...v,
|
|
4352
4354
|
[b]: {
|
|
4353
|
-
...
|
|
4355
|
+
...v[b],
|
|
4354
4356
|
...C
|
|
4355
4357
|
}
|
|
4356
|
-
}, M &&
|
|
4358
|
+
}, M && h <= 50 && (h++, typeof M == "object" && (M.placement && (f = M.placement), M.rects && (u = M.rects === !0 ? await a.getElementRects({
|
|
4357
4359
|
reference: e,
|
|
4358
4360
|
floating: t,
|
|
4359
4361
|
strategy: o
|
|
4360
4362
|
}) : M.rects), {
|
|
4361
4363
|
x: d,
|
|
4362
4364
|
y: l
|
|
4363
|
-
} = $r(u, f, c)),
|
|
4365
|
+
} = $r(u, f, c)), m = -1);
|
|
4364
4366
|
}
|
|
4365
4367
|
return {
|
|
4366
4368
|
x: d,
|
|
4367
4369
|
y: l,
|
|
4368
4370
|
placement: f,
|
|
4369
4371
|
strategy: o,
|
|
4370
|
-
middlewareData:
|
|
4372
|
+
middlewareData: v
|
|
4371
4373
|
};
|
|
4372
4374
|
};
|
|
4373
4375
|
async function Et(e, t) {
|
|
@@ -4385,8 +4387,8 @@ async function Et(e, t) {
|
|
|
4385
4387
|
rootBoundary: d = "viewport",
|
|
4386
4388
|
elementContext: l = "floating",
|
|
4387
4389
|
altBoundary: f = !1,
|
|
4388
|
-
padding:
|
|
4389
|
-
} = Ne(t, e),
|
|
4390
|
+
padding: v = 0
|
|
4391
|
+
} = Ne(t, e), h = Qo(v), b = i[f ? l === "floating" ? "reference" : "floating" : l], x = Jt(await s.getClippingRect({
|
|
4390
4392
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(b))) == null || n ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
4391
4393
|
boundary: u,
|
|
4392
4394
|
rootBoundary: d,
|
|
@@ -4409,10 +4411,10 @@ async function Et(e, t) {
|
|
|
4409
4411
|
strategy: c
|
|
4410
4412
|
}) : E);
|
|
4411
4413
|
return {
|
|
4412
|
-
top: (x.top - M.top +
|
|
4413
|
-
bottom: (M.bottom - x.bottom +
|
|
4414
|
-
left: (x.left - M.left +
|
|
4415
|
-
right: (M.right - x.right +
|
|
4414
|
+
top: (x.top - M.top + h.top) / C.y,
|
|
4415
|
+
bottom: (M.bottom - x.bottom + h.bottom) / C.y,
|
|
4416
|
+
left: (x.left - M.left + h.left) / C.x,
|
|
4417
|
+
right: (M.right - x.right + h.right) / C.x
|
|
4416
4418
|
};
|
|
4417
4419
|
}
|
|
4418
4420
|
const Hc = (e) => ({
|
|
@@ -4436,14 +4438,14 @@ const Hc = (e) => ({
|
|
|
4436
4438
|
const l = Qo(d), f = {
|
|
4437
4439
|
x: n,
|
|
4438
4440
|
y: r
|
|
4439
|
-
},
|
|
4441
|
+
}, v = nr(o), h = tr(v), m = await a.getDimensions(u), b = v === "y", x = b ? "top" : "left", E = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", C = s.reference[h] + s.reference[v] - f[v] - s.floating[h], M = f[v] - s.reference[v], N = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
|
|
4440
4442
|
let S = N ? N[w] : 0;
|
|
4441
|
-
(!S || !await (a.isElement == null ? void 0 : a.isElement(N))) && (S = i.floating[w] || s.floating[
|
|
4442
|
-
const R = C / 2 - M / 2, G = S / 2 - h
|
|
4443
|
+
(!S || !await (a.isElement == null ? void 0 : a.isElement(N))) && (S = i.floating[w] || s.floating[h]);
|
|
4444
|
+
const R = C / 2 - M / 2, G = S / 2 - m[h] / 2 - 1, H = $e(l[x], G), V = $e(l[E], G), $ = H, q = S - m[h] - V, B = S / 2 - m[h] / 2 + R, W = Gn($, B, q), F = !c.arrow && pt(o) != null && B !== W && s.reference[h] / 2 - (B < $ ? H : V) - m[h] / 2 < 0, Z = F ? B < $ ? B - $ : B - q : 0;
|
|
4443
4445
|
return {
|
|
4444
|
-
[
|
|
4446
|
+
[v]: f[v] + Z,
|
|
4445
4447
|
data: {
|
|
4446
|
-
[
|
|
4448
|
+
[v]: W,
|
|
4447
4449
|
centerOffset: B - W - Z,
|
|
4448
4450
|
...F && {
|
|
4449
4451
|
alignmentOffset: Z
|
|
@@ -4469,15 +4471,15 @@ const Hc = (e) => ({
|
|
|
4469
4471
|
mainAxis: d = !0,
|
|
4470
4472
|
crossAxis: l = !0,
|
|
4471
4473
|
fallbackPlacements: f,
|
|
4472
|
-
fallbackStrategy:
|
|
4473
|
-
fallbackAxisSideDirection:
|
|
4474
|
-
flipAlignment:
|
|
4474
|
+
fallbackStrategy: v = "bestFit",
|
|
4475
|
+
fallbackAxisSideDirection: h = "none",
|
|
4476
|
+
flipAlignment: m = !0,
|
|
4475
4477
|
...b
|
|
4476
4478
|
} = Ne(e, t);
|
|
4477
4479
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4478
4480
|
return {};
|
|
4479
|
-
const x = _e(o), E = Be(i), w = _e(i) === i, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), M = f || (w || !
|
|
4480
|
-
!f && N && M.push(...$c(i,
|
|
4481
|
+
const x = _e(o), E = Be(i), w = _e(i) === i, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), M = f || (w || !m ? [Zt(i)] : Lc(i)), N = h !== "none";
|
|
4482
|
+
!f && N && M.push(...$c(i, m, h, C));
|
|
4481
4483
|
const S = [i, ...M], R = await Et(t, b), G = [];
|
|
4482
4484
|
let H = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4483
4485
|
if (d && G.push(R[x]), l) {
|
|
@@ -4502,7 +4504,7 @@ const Hc = (e) => ({
|
|
|
4502
4504
|
};
|
|
4503
4505
|
let F = ($ = H.filter((Z) => Z.overflows[0] <= 0).sort((Z, k) => Z.overflows[1] - k.overflows[1])[0]) == null ? void 0 : $.placement;
|
|
4504
4506
|
if (!F)
|
|
4505
|
-
switch (
|
|
4507
|
+
switch (v) {
|
|
4506
4508
|
case "bestFit": {
|
|
4507
4509
|
var q;
|
|
4508
4510
|
const Z = (q = H.filter((k) => {
|
|
@@ -4593,8 +4595,8 @@ async function Uc(e, t) {
|
|
|
4593
4595
|
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = _e(n), i = pt(n), c = Be(n) === "y", u = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, l = Ne(t, e);
|
|
4594
4596
|
let {
|
|
4595
4597
|
mainAxis: f,
|
|
4596
|
-
crossAxis:
|
|
4597
|
-
alignmentAxis:
|
|
4598
|
+
crossAxis: v,
|
|
4599
|
+
alignmentAxis: h
|
|
4598
4600
|
} = typeof l == "number" ? {
|
|
4599
4601
|
mainAxis: l,
|
|
4600
4602
|
crossAxis: 0,
|
|
@@ -4604,12 +4606,12 @@ async function Uc(e, t) {
|
|
|
4604
4606
|
crossAxis: l.crossAxis || 0,
|
|
4605
4607
|
alignmentAxis: l.alignmentAxis
|
|
4606
4608
|
};
|
|
4607
|
-
return i && typeof
|
|
4608
|
-
x:
|
|
4609
|
+
return i && typeof h == "number" && (v = i === "end" ? h * -1 : h), c ? {
|
|
4610
|
+
x: v * d,
|
|
4609
4611
|
y: f * u
|
|
4610
4612
|
} : {
|
|
4611
4613
|
x: f * u,
|
|
4612
|
-
y:
|
|
4614
|
+
y: v * d
|
|
4613
4615
|
};
|
|
4614
4616
|
}
|
|
4615
4617
|
const Kc = function(e) {
|
|
@@ -4663,25 +4665,25 @@ const Kc = function(e) {
|
|
|
4663
4665
|
x: n,
|
|
4664
4666
|
y: r
|
|
4665
4667
|
}, d = await Et(t, c), l = Be(_e(o)), f = er(l);
|
|
4666
|
-
let
|
|
4668
|
+
let v = u[f], h = u[l];
|
|
4667
4669
|
if (s) {
|
|
4668
|
-
const b = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", E =
|
|
4669
|
-
|
|
4670
|
+
const b = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", E = v + d[b], w = v - d[x];
|
|
4671
|
+
v = Gn(E, v, w);
|
|
4670
4672
|
}
|
|
4671
4673
|
if (a) {
|
|
4672
|
-
const b = l === "y" ? "top" : "left", x = l === "y" ? "bottom" : "right", E =
|
|
4673
|
-
|
|
4674
|
+
const b = l === "y" ? "top" : "left", x = l === "y" ? "bottom" : "right", E = h + d[b], w = h - d[x];
|
|
4675
|
+
h = Gn(E, h, w);
|
|
4674
4676
|
}
|
|
4675
|
-
const
|
|
4677
|
+
const m = i.fn({
|
|
4676
4678
|
...t,
|
|
4677
|
-
[f]:
|
|
4678
|
-
[l]:
|
|
4679
|
+
[f]: v,
|
|
4680
|
+
[l]: h
|
|
4679
4681
|
});
|
|
4680
4682
|
return {
|
|
4681
|
-
...
|
|
4683
|
+
...m,
|
|
4682
4684
|
data: {
|
|
4683
|
-
x:
|
|
4684
|
-
y:
|
|
4685
|
+
x: m.x - n,
|
|
4686
|
+
y: m.y - r,
|
|
4685
4687
|
enabled: {
|
|
4686
4688
|
[f]: s,
|
|
4687
4689
|
[l]: a
|
|
@@ -4708,27 +4710,27 @@ const Kc = function(e) {
|
|
|
4708
4710
|
x: n,
|
|
4709
4711
|
y: r
|
|
4710
4712
|
}, l = Be(o), f = er(l);
|
|
4711
|
-
let
|
|
4712
|
-
const
|
|
4713
|
-
mainAxis:
|
|
4713
|
+
let v = d[f], h = d[l];
|
|
4714
|
+
const m = Ne(i, t), b = typeof m == "number" ? {
|
|
4715
|
+
mainAxis: m,
|
|
4714
4716
|
crossAxis: 0
|
|
4715
4717
|
} : {
|
|
4716
4718
|
mainAxis: 0,
|
|
4717
4719
|
crossAxis: 0,
|
|
4718
|
-
...
|
|
4720
|
+
...m
|
|
4719
4721
|
};
|
|
4720
4722
|
if (c) {
|
|
4721
4723
|
const w = f === "y" ? "height" : "width", C = s.reference[f] - s.floating[w] + b.mainAxis, M = s.reference[f] + s.reference[w] - b.mainAxis;
|
|
4722
|
-
|
|
4724
|
+
v < C ? v = C : v > M && (v = M);
|
|
4723
4725
|
}
|
|
4724
4726
|
if (u) {
|
|
4725
4727
|
var x, E;
|
|
4726
4728
|
const w = f === "y" ? "width" : "height", C = ["top", "left"].includes(_e(o)), M = s.reference[l] - s.floating[w] + (C && ((x = a.offset) == null ? void 0 : x[l]) || 0) + (C ? 0 : b.crossAxis), N = s.reference[l] + s.reference[w] + (C ? 0 : ((E = a.offset) == null ? void 0 : E[l]) || 0) - (C ? b.crossAxis : 0);
|
|
4727
|
-
|
|
4729
|
+
h < M ? h = M : h > N && (h = N);
|
|
4728
4730
|
}
|
|
4729
4731
|
return {
|
|
4730
|
-
[f]:
|
|
4731
|
-
[l]:
|
|
4732
|
+
[f]: v,
|
|
4733
|
+
[l]: h
|
|
4732
4734
|
};
|
|
4733
4735
|
}
|
|
4734
4736
|
};
|
|
@@ -4747,17 +4749,17 @@ const Kc = function(e) {
|
|
|
4747
4749
|
apply: c = () => {
|
|
4748
4750
|
},
|
|
4749
4751
|
...u
|
|
4750
|
-
} = Ne(e, t), d = await Et(t, u), l = _e(o), f = pt(o),
|
|
4751
|
-
width:
|
|
4752
|
-
height:
|
|
4752
|
+
} = Ne(e, t), d = await Et(t, u), l = _e(o), f = pt(o), v = Be(o) === "y", {
|
|
4753
|
+
width: h,
|
|
4754
|
+
height: m
|
|
4753
4755
|
} = s.floating;
|
|
4754
4756
|
let b, x;
|
|
4755
4757
|
l === "top" || l === "bottom" ? (b = l, x = f === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (x = l, b = f === "end" ? "top" : "bottom");
|
|
4756
|
-
const E =
|
|
4758
|
+
const E = m - d.top - d.bottom, w = h - d.left - d.right, C = $e(m - d[b], E), M = $e(h - d[x], w), N = !t.middlewareData.shift;
|
|
4757
4759
|
let S = C, R = M;
|
|
4758
4760
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (r = t.middlewareData.shift) != null && r.enabled.y && (S = E), N && !f) {
|
|
4759
4761
|
const H = pe(d.left, 0), V = pe(d.right, 0), $ = pe(d.top, 0), q = pe(d.bottom, 0);
|
|
4760
|
-
|
|
4762
|
+
v ? R = h - 2 * (H !== 0 || V !== 0 ? H + V : pe(d.left, d.right)) : S = m - 2 * ($ !== 0 || q !== 0 ? $ + q : pe(d.top, d.bottom));
|
|
4761
4763
|
}
|
|
4762
4764
|
await c({
|
|
4763
4765
|
...t,
|
|
@@ -4765,7 +4767,7 @@ const Kc = function(e) {
|
|
|
4765
4767
|
availableHeight: S
|
|
4766
4768
|
});
|
|
4767
4769
|
const G = await a.getDimensions(i.floating);
|
|
4768
|
-
return
|
|
4770
|
+
return h !== G.width || m !== G.height ? {
|
|
4769
4771
|
reset: {
|
|
4770
4772
|
rects: !0
|
|
4771
4773
|
}
|
|
@@ -4929,11 +4931,11 @@ function Ke(e, t, n, r) {
|
|
|
4929
4931
|
const i = el(s, n, r) ? rs(s) : Ce(0);
|
|
4930
4932
|
let c = (o.left + i.x) / a.x, u = (o.top + i.y) / a.y, d = o.width / a.x, l = o.height / a.y;
|
|
4931
4933
|
if (s) {
|
|
4932
|
-
const f = me(s),
|
|
4933
|
-
let
|
|
4934
|
-
for (;
|
|
4935
|
-
const b = ot(
|
|
4936
|
-
c *= b.x, u *= b.y, d *= b.x, l *= b.y, c += w, u += C,
|
|
4934
|
+
const f = me(s), v = r && xe(r) ? me(r) : r;
|
|
4935
|
+
let h = f, m = Wn(h);
|
|
4936
|
+
for (; m && r && v !== h; ) {
|
|
4937
|
+
const b = ot(m), x = m.getBoundingClientRect(), E = ye(m), w = x.left + (m.clientLeft + parseFloat(E.paddingLeft)) * b.x, C = x.top + (m.clientTop + parseFloat(E.paddingTop)) * b.y;
|
|
4938
|
+
c *= b.x, u *= b.y, d *= b.x, l *= b.y, c += w, u += C, h = me(m), m = Wn(h);
|
|
4937
4939
|
}
|
|
4938
4940
|
}
|
|
4939
4941
|
return Jt({
|
|
@@ -4974,8 +4976,8 @@ function tl(e) {
|
|
|
4974
4976
|
}, u = Ce(1);
|
|
4975
4977
|
const d = Ce(0), l = Ee(r);
|
|
4976
4978
|
if ((l || !l && !s) && ((mt(r) !== "body" || _t(a)) && (c = dn(r)), Ee(r))) {
|
|
4977
|
-
const
|
|
4978
|
-
u = ot(r), d.x =
|
|
4979
|
+
const v = Ke(r);
|
|
4980
|
+
u = ot(r), d.x = v.x + r.clientLeft, d.y = v.y + r.clientTop;
|
|
4979
4981
|
}
|
|
4980
4982
|
const f = a && !l && !s ? os(a, c, !0) : Ce(0);
|
|
4981
4983
|
return {
|
|
@@ -5179,12 +5181,12 @@ function pl(e, t) {
|
|
|
5179
5181
|
left: d,
|
|
5180
5182
|
top: l,
|
|
5181
5183
|
width: f,
|
|
5182
|
-
height:
|
|
5184
|
+
height: v
|
|
5183
5185
|
} = u;
|
|
5184
|
-
if (i || t(), !f || !
|
|
5186
|
+
if (i || t(), !f || !v)
|
|
5185
5187
|
return;
|
|
5186
|
-
const
|
|
5187
|
-
rootMargin: -
|
|
5188
|
+
const h = $t(l), m = $t(o.clientWidth - (d + f)), b = $t(o.clientHeight - (l + v)), x = $t(d), w = {
|
|
5189
|
+
rootMargin: -h + "px " + -m + "px " + -b + "px " + -x + "px",
|
|
5188
5190
|
threshold: pe(0, $e(1, c)) || 1
|
|
5189
5191
|
};
|
|
5190
5192
|
let C = !0;
|
|
@@ -5227,25 +5229,25 @@ function ml(e, t, n, r) {
|
|
|
5227
5229
|
}), s && x.addEventListener("resize", n);
|
|
5228
5230
|
});
|
|
5229
5231
|
const l = u && i ? pl(u, n) : null;
|
|
5230
|
-
let f = -1,
|
|
5231
|
-
a && (
|
|
5232
|
+
let f = -1, v = null;
|
|
5233
|
+
a && (v = new ResizeObserver((x) => {
|
|
5232
5234
|
let [E] = x;
|
|
5233
|
-
E && E.target === u &&
|
|
5235
|
+
E && E.target === u && v && (v.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
5234
5236
|
var w;
|
|
5235
|
-
(w =
|
|
5237
|
+
(w = v) == null || w.observe(t);
|
|
5236
5238
|
})), n();
|
|
5237
|
-
}), u && !c &&
|
|
5238
|
-
let
|
|
5239
|
+
}), u && !c && v.observe(u), v.observe(t));
|
|
5240
|
+
let h, m = c ? Ke(e) : null;
|
|
5239
5241
|
c && b();
|
|
5240
5242
|
function b() {
|
|
5241
5243
|
const x = Ke(e);
|
|
5242
|
-
|
|
5244
|
+
m && !is(m, x) && n(), m = x, h = requestAnimationFrame(b);
|
|
5243
5245
|
}
|
|
5244
5246
|
return n(), () => {
|
|
5245
5247
|
var x;
|
|
5246
5248
|
d.forEach((E) => {
|
|
5247
5249
|
o && E.removeEventListener("scroll", n), s && E.removeEventListener("resize", n);
|
|
5248
|
-
}), l?.(), (x =
|
|
5250
|
+
}), l?.(), (x = v) == null || x.disconnect(), v = null, c && cancelAnimationFrame(h);
|
|
5249
5251
|
};
|
|
5250
5252
|
}
|
|
5251
5253
|
const gl = Kc, hl = Yc, vl = Wc, bl = qc, xl = Vc, Ur = Hc, yl = Xc, wl = (e, t, n) => {
|
|
@@ -5326,13 +5328,13 @@ function Cl(e) {
|
|
|
5326
5328
|
placement: t,
|
|
5327
5329
|
middlewareData: {},
|
|
5328
5330
|
isPositioned: !1
|
|
5329
|
-
}), [f,
|
|
5330
|
-
Qt(f, r) ||
|
|
5331
|
-
const [
|
|
5332
|
-
k !== N.current && (N.current = k,
|
|
5331
|
+
}), [f, v] = p.useState(r);
|
|
5332
|
+
Qt(f, r) || v(r);
|
|
5333
|
+
const [h, m] = p.useState(null), [b, x] = p.useState(null), E = p.useCallback((k) => {
|
|
5334
|
+
k !== N.current && (N.current = k, m(k));
|
|
5333
5335
|
}, []), w = p.useCallback((k) => {
|
|
5334
5336
|
k !== S.current && (S.current = k, x(k));
|
|
5335
|
-
}, []), C = s ||
|
|
5337
|
+
}, []), C = s || h, M = a || b, N = p.useRef(null), S = p.useRef(null), R = p.useRef(d), G = c != null, H = An(c), V = An(o), $ = An(u), q = p.useCallback(() => {
|
|
5336
5338
|
if (!N.current || !S.current)
|
|
5337
5339
|
return;
|
|
5338
5340
|
const k = {
|
|
@@ -5452,7 +5454,7 @@ const Sl = (e) => {
|
|
|
5452
5454
|
});
|
|
5453
5455
|
var _l = "Arrow", ls = p.forwardRef((e, t) => {
|
|
5454
5456
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
5455
|
-
return /* @__PURE__ */
|
|
5457
|
+
return /* @__PURE__ */ g.jsx(
|
|
5456
5458
|
oe.svg,
|
|
5457
5459
|
{
|
|
5458
5460
|
...s,
|
|
@@ -5461,7 +5463,7 @@ var _l = "Arrow", ls = p.forwardRef((e, t) => {
|
|
|
5461
5463
|
height: o,
|
|
5462
5464
|
viewBox: "0 0 30 10",
|
|
5463
5465
|
preserveAspectRatio: "none",
|
|
5464
|
-
children: e.asChild ? n : /* @__PURE__ */
|
|
5466
|
+
children: e.asChild ? n : /* @__PURE__ */ g.jsx("polygon", { points: "0,0 30,0 15,10" })
|
|
5465
5467
|
}
|
|
5466
5468
|
);
|
|
5467
5469
|
});
|
|
@@ -5491,7 +5493,7 @@ function Tl(e) {
|
|
|
5491
5493
|
}
|
|
5492
5494
|
var ir = "Popper", [us, ds] = dt(ir), [Ol, fs] = us(ir), ps = (e) => {
|
|
5493
5495
|
const { __scopePopper: t, children: n } = e, [r, o] = p.useState(null);
|
|
5494
|
-
return /* @__PURE__ */
|
|
5496
|
+
return /* @__PURE__ */ g.jsx(Ol, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5495
5497
|
};
|
|
5496
5498
|
ps.displayName = ir;
|
|
5497
5499
|
var ms = "PopperAnchor", gs = p.forwardRef(
|
|
@@ -5499,7 +5501,7 @@ var ms = "PopperAnchor", gs = p.forwardRef(
|
|
|
5499
5501
|
const { __scopePopper: n, virtualRef: r, ...o } = e, s = fs(ms, n), a = p.useRef(null), i = de(t, a);
|
|
5500
5502
|
return p.useEffect(() => {
|
|
5501
5503
|
s.onAnchorChange(r?.current || a.current);
|
|
5502
|
-
}), r ? null : /* @__PURE__ */
|
|
5504
|
+
}), r ? null : /* @__PURE__ */ g.jsx(oe.div, { ...o, ref: i });
|
|
5503
5505
|
}
|
|
5504
5506
|
);
|
|
5505
5507
|
gs.displayName = ms;
|
|
@@ -5517,9 +5519,9 @@ var cr = "PopperContent", [zl, Dl] = us(cr), hs = p.forwardRef(
|
|
|
5517
5519
|
collisionPadding: d = 0,
|
|
5518
5520
|
sticky: l = "partial",
|
|
5519
5521
|
hideWhenDetached: f = !1,
|
|
5520
|
-
updatePositionStrategy:
|
|
5521
|
-
onPlaced:
|
|
5522
|
-
...
|
|
5522
|
+
updatePositionStrategy: v = "optimized",
|
|
5523
|
+
onPlaced: h,
|
|
5524
|
+
...m
|
|
5523
5525
|
} = e, b = fs(cr, n), [x, E] = p.useState(null), w = de(t, (A) => E(A)), [C, M] = p.useState(null), N = Tl(C), S = N?.width ?? 0, R = N?.height ?? 0, G = r + (s !== "center" ? "-" + s : ""), H = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(u) ? u : [u], $ = V.length > 0, q = {
|
|
5524
5526
|
padding: H,
|
|
5525
5527
|
boundary: V.filter(Ll),
|
|
@@ -5530,7 +5532,7 @@ var cr = "PopperContent", [zl, Dl] = us(cr), hs = p.forwardRef(
|
|
|
5530
5532
|
strategy: "fixed",
|
|
5531
5533
|
placement: G,
|
|
5532
5534
|
whileElementsMounted: (...A) => ml(...A, {
|
|
5533
|
-
animationFrame:
|
|
5535
|
+
animationFrame: v === "always"
|
|
5534
5536
|
}),
|
|
5535
5537
|
elements: {
|
|
5536
5538
|
reference: b.anchor
|
|
@@ -5555,14 +5557,14 @@ var cr = "PopperContent", [zl, Dl] = us(cr), hs = p.forwardRef(
|
|
|
5555
5557
|
Fl({ arrowWidth: S, arrowHeight: R }),
|
|
5556
5558
|
f && Ml({ strategy: "referenceHidden", ...q })
|
|
5557
5559
|
]
|
|
5558
|
-
}), [I, y] = xs(F), j = Se(
|
|
5560
|
+
}), [I, y] = xs(F), j = Se(h);
|
|
5559
5561
|
Fe(() => {
|
|
5560
5562
|
Z && j?.();
|
|
5561
5563
|
}, [Z, j]);
|
|
5562
5564
|
const U = k.arrow?.x, P = k.arrow?.y, _ = k.arrow?.centerOffset !== 0, [D, L] = p.useState();
|
|
5563
5565
|
return Fe(() => {
|
|
5564
5566
|
x && L(window.getComputedStyle(x).zIndex);
|
|
5565
|
-
}, [x]), /* @__PURE__ */
|
|
5567
|
+
}, [x]), /* @__PURE__ */ g.jsx(
|
|
5566
5568
|
"div",
|
|
5567
5569
|
{
|
|
5568
5570
|
ref: B.setFloating,
|
|
@@ -5586,7 +5588,7 @@ var cr = "PopperContent", [zl, Dl] = us(cr), hs = p.forwardRef(
|
|
|
5586
5588
|
}
|
|
5587
5589
|
},
|
|
5588
5590
|
dir: e.dir,
|
|
5589
|
-
children: /* @__PURE__ */
|
|
5591
|
+
children: /* @__PURE__ */ g.jsx(
|
|
5590
5592
|
zl,
|
|
5591
5593
|
{
|
|
5592
5594
|
scope: n,
|
|
@@ -5595,15 +5597,15 @@ var cr = "PopperContent", [zl, Dl] = us(cr), hs = p.forwardRef(
|
|
|
5595
5597
|
arrowX: U,
|
|
5596
5598
|
arrowY: P,
|
|
5597
5599
|
shouldHideArrow: _,
|
|
5598
|
-
children: /* @__PURE__ */
|
|
5600
|
+
children: /* @__PURE__ */ g.jsx(
|
|
5599
5601
|
oe.div,
|
|
5600
5602
|
{
|
|
5601
5603
|
"data-side": I,
|
|
5602
5604
|
"data-align": y,
|
|
5603
|
-
...
|
|
5605
|
+
...m,
|
|
5604
5606
|
ref: w,
|
|
5605
5607
|
style: {
|
|
5606
|
-
...
|
|
5608
|
+
...m.style,
|
|
5607
5609
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
5608
5610
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
5609
5611
|
animation: Z ? void 0 : "none"
|
|
@@ -5628,7 +5630,7 @@ var vs = "PopperArrow", jl = {
|
|
|
5628
5630
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
5629
5631
|
// doesn't report size as we'd expect on SVG elements.
|
|
5630
5632
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
5631
|
-
/* @__PURE__ */
|
|
5633
|
+
/* @__PURE__ */ g.jsx(
|
|
5632
5634
|
"span",
|
|
5633
5635
|
{
|
|
5634
5636
|
ref: s.onArrowChange,
|
|
@@ -5651,7 +5653,7 @@ var vs = "PopperArrow", jl = {
|
|
|
5651
5653
|
}[s.placedSide],
|
|
5652
5654
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
5653
5655
|
},
|
|
5654
|
-
children: /* @__PURE__ */
|
|
5656
|
+
children: /* @__PURE__ */ g.jsx(
|
|
5655
5657
|
Il,
|
|
5656
5658
|
{
|
|
5657
5659
|
...o,
|
|
@@ -5675,9 +5677,9 @@ var Fl = (e) => ({
|
|
|
5675
5677
|
name: "transformOrigin",
|
|
5676
5678
|
options: e,
|
|
5677
5679
|
fn(t) {
|
|
5678
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] = xs(n), l = { start: "0%", center: "50%", end: "100%" }[d], f = (o.arrow?.x ?? 0) + i / 2,
|
|
5679
|
-
let
|
|
5680
|
-
return u === "bottom" ? (
|
|
5680
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] = xs(n), l = { start: "0%", center: "50%", end: "100%" }[d], f = (o.arrow?.x ?? 0) + i / 2, v = (o.arrow?.y ?? 0) + c / 2;
|
|
5681
|
+
let h = "", m = "";
|
|
5682
|
+
return u === "bottom" ? (h = a ? l : `${f}px`, m = `${-c}px`) : u === "top" ? (h = a ? l : `${f}px`, m = `${r.floating.height + c}px`) : u === "right" ? (h = `${-c}px`, m = a ? l : `${v}px`) : u === "left" && (h = `${r.floating.width + c}px`, m = a ? l : `${v}px`), { data: { x: h, y: m } };
|
|
5681
5683
|
}
|
|
5682
5684
|
});
|
|
5683
5685
|
function xs(e) {
|
|
@@ -5688,7 +5690,7 @@ var ys = ps, $l = gs, Bl = hs, Gl = bs, Hl = "Portal", ws = p.forwardRef((e, t)
|
|
|
5688
5690
|
const { container: n, ...r } = e, [o, s] = p.useState(!1);
|
|
5689
5691
|
Fe(() => s(!0), []);
|
|
5690
5692
|
const a = n || o && globalThis?.document?.body;
|
|
5691
|
-
return a ? Xa.createPortal(/* @__PURE__ */
|
|
5693
|
+
return a ? Xa.createPortal(/* @__PURE__ */ g.jsx(oe.div, { ...r, ref: t }), a) : null;
|
|
5692
5694
|
});
|
|
5693
5695
|
ws.displayName = Hl;
|
|
5694
5696
|
var Wl = function(e) {
|
|
@@ -5720,8 +5722,8 @@ var Wl = function(e) {
|
|
|
5720
5722
|
d(f);
|
|
5721
5723
|
else
|
|
5722
5724
|
try {
|
|
5723
|
-
var
|
|
5724
|
-
Je.set(f,
|
|
5725
|
+
var v = f.getAttribute(r), h = v !== null && v !== "false", m = (Je.get(f) || 0) + 1, b = (s.get(f) || 0) + 1;
|
|
5726
|
+
Je.set(f, m), s.set(f, b), a.push(f), m === 1 && h && Bt.set(f, !0), b === 1 && f.setAttribute(n, "true"), h || f.setAttribute(r, "true");
|
|
5725
5727
|
} catch (x) {
|
|
5726
5728
|
console.error("aria-hidden: cannot operate on ", f, x);
|
|
5727
5729
|
}
|
|
@@ -5729,8 +5731,8 @@ var Wl = function(e) {
|
|
|
5729
5731
|
};
|
|
5730
5732
|
return d(t), i.clear(), kn++, function() {
|
|
5731
5733
|
a.forEach(function(l) {
|
|
5732
|
-
var f = Je.get(l) - 1,
|
|
5733
|
-
Je.set(l, f), s.set(l,
|
|
5734
|
+
var f = Je.get(l) - 1, v = s.get(l) - 1;
|
|
5735
|
+
Je.set(l, f), s.set(l, v), f || (Bt.has(l) || l.removeAttribute(r), Bt.delete(l)), v || l.removeAttribute(n);
|
|
5734
5736
|
}), kn--, kn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), Gt = {});
|
|
5735
5737
|
};
|
|
5736
5738
|
}, Kl = function(e, t, n) {
|
|
@@ -5888,11 +5890,11 @@ var Rs = nu(), Nn = function() {
|
|
|
5888
5890
|
onScrollCapture: Nn,
|
|
5889
5891
|
onWheelCapture: Nn,
|
|
5890
5892
|
onTouchMoveCapture: Nn
|
|
5891
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, l = e.shards, f = e.sideCar,
|
|
5893
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, l = e.shards, f = e.sideCar, v = e.noIsolation, h = e.inert, m = e.allowPinchZoom, b = e.as, x = b === void 0 ? "div" : b, E = e.gapMode, w = Ss(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = f, M = Ql([n, t]), N = we(we({}, w), o);
|
|
5892
5894
|
return p.createElement(
|
|
5893
5895
|
p.Fragment,
|
|
5894
5896
|
null,
|
|
5895
|
-
d && p.createElement(C, { sideCar: Rs, removeScrollBar: u, shards: l, noIsolation:
|
|
5897
|
+
d && p.createElement(C, { sideCar: Rs, removeScrollBar: u, shards: l, noIsolation: v, inert: h, setCallbacks: s, allowPinchZoom: !!m, lockRef: n, gapMode: E }),
|
|
5896
5898
|
a ? p.cloneElement(p.Children.only(i), we(we({}, N), { ref: M })) : p.createElement(x, we({}, N, { className: c, ref: M }), i)
|
|
5897
5899
|
);
|
|
5898
5900
|
});
|
|
@@ -6093,8 +6095,8 @@ var Qe = Vn ? { passive: !1 } : !1, vu = function(e) {
|
|
|
6093
6095
|
}, Su = function(e, t, n, r, o) {
|
|
6094
6096
|
var s = Cu(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, c = t.contains(i), u = !1, d = a > 0, l = 0, f = 0;
|
|
6095
6097
|
do {
|
|
6096
|
-
var
|
|
6097
|
-
(
|
|
6098
|
+
var v = Ms(e, i), h = v[0], m = v[1], b = v[2], x = m - b - s * h;
|
|
6099
|
+
(h || x) && ks(e, i) && (l += x, f += h), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
|
|
6098
6100
|
} while (
|
|
6099
6101
|
// portaled content
|
|
6100
6102
|
!c && i !== document.body || // self content
|
|
@@ -6122,33 +6124,33 @@ function Au(e) {
|
|
|
6122
6124
|
}, [e]), p.useEffect(function() {
|
|
6123
6125
|
if (e.inert) {
|
|
6124
6126
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
6125
|
-
var
|
|
6126
|
-
return
|
|
6127
|
+
var m = Yl([e.lockRef.current], (e.shards || []).map(Jr), !0).filter(Boolean);
|
|
6128
|
+
return m.forEach(function(b) {
|
|
6127
6129
|
return b.classList.add("allow-interactivity-".concat(o));
|
|
6128
6130
|
}), function() {
|
|
6129
|
-
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
6131
|
+
document.body.classList.remove("block-interactivity-".concat(o)), m.forEach(function(b) {
|
|
6130
6132
|
return b.classList.remove("allow-interactivity-".concat(o));
|
|
6131
6133
|
});
|
|
6132
6134
|
};
|
|
6133
6135
|
}
|
|
6134
6136
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
6135
|
-
var i = p.useCallback(function(
|
|
6136
|
-
if ("touches" in
|
|
6137
|
+
var i = p.useCallback(function(m, b) {
|
|
6138
|
+
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
6137
6139
|
return !a.current.allowPinchZoom;
|
|
6138
|
-
var x = Wt(
|
|
6139
|
-
if ("touches" in
|
|
6140
|
+
var x = Wt(m), E = n.current, w = "deltaX" in m ? m.deltaX : E[0] - x[0], C = "deltaY" in m ? m.deltaY : E[1] - x[1], M, N = m.target, S = Math.abs(w) > Math.abs(C) ? "h" : "v";
|
|
6141
|
+
if ("touches" in m && S === "h" && N.type === "range")
|
|
6140
6142
|
return !1;
|
|
6141
6143
|
var R = qr(S, N);
|
|
6142
6144
|
if (!R)
|
|
6143
6145
|
return !0;
|
|
6144
6146
|
if (R ? M = S : (M = S === "v" ? "h" : "v", R = qr(S, N)), !R)
|
|
6145
6147
|
return !1;
|
|
6146
|
-
if (!r.current && "changedTouches" in
|
|
6148
|
+
if (!r.current && "changedTouches" in m && (w || C) && (r.current = M), !M)
|
|
6147
6149
|
return !0;
|
|
6148
6150
|
var G = r.current || M;
|
|
6149
|
-
return Su(G, b,
|
|
6150
|
-
}, []), c = p.useCallback(function(
|
|
6151
|
-
var b =
|
|
6151
|
+
return Su(G, b, m, G === "h" ? w : C);
|
|
6152
|
+
}, []), c = p.useCallback(function(m) {
|
|
6153
|
+
var b = m;
|
|
6152
6154
|
if (!(!et.length || et[et.length - 1] !== s)) {
|
|
6153
6155
|
var x = "deltaY" in b ? Zr(b) : Wt(b), E = t.current.filter(function(M) {
|
|
6154
6156
|
return M.name === b.type && (M.target === b.target || b.target === M.shadowParent) && Eu(M.delta, x);
|
|
@@ -6164,19 +6166,19 @@ function Au(e) {
|
|
|
6164
6166
|
C && b.cancelable && b.preventDefault();
|
|
6165
6167
|
}
|
|
6166
6168
|
}
|
|
6167
|
-
}, []), u = p.useCallback(function(
|
|
6168
|
-
var w = { name:
|
|
6169
|
+
}, []), u = p.useCallback(function(m, b, x, E) {
|
|
6170
|
+
var w = { name: m, delta: b, target: x, should: E, shadowParent: ku(x) };
|
|
6169
6171
|
t.current.push(w), setTimeout(function() {
|
|
6170
6172
|
t.current = t.current.filter(function(C) {
|
|
6171
6173
|
return C !== w;
|
|
6172
6174
|
});
|
|
6173
6175
|
}, 1);
|
|
6174
|
-
}, []), d = p.useCallback(function(
|
|
6175
|
-
n.current = Wt(
|
|
6176
|
-
}, []), l = p.useCallback(function(
|
|
6177
|
-
u(
|
|
6178
|
-
}, []), f = p.useCallback(function(
|
|
6179
|
-
u(
|
|
6176
|
+
}, []), d = p.useCallback(function(m) {
|
|
6177
|
+
n.current = Wt(m), r.current = void 0;
|
|
6178
|
+
}, []), l = p.useCallback(function(m) {
|
|
6179
|
+
u(m.type, Zr(m), m.target, i(m, e.lockRef.current));
|
|
6180
|
+
}, []), f = p.useCallback(function(m) {
|
|
6181
|
+
u(m.type, Wt(m), m.target, i(m, e.lockRef.current));
|
|
6180
6182
|
}, []);
|
|
6181
6183
|
p.useEffect(function() {
|
|
6182
6184
|
return et.push(s), e.setCallbacks({
|
|
@@ -6184,17 +6186,17 @@ function Au(e) {
|
|
|
6184
6186
|
onWheelCapture: l,
|
|
6185
6187
|
onTouchMoveCapture: f
|
|
6186
6188
|
}), document.addEventListener("wheel", c, Qe), document.addEventListener("touchmove", c, Qe), document.addEventListener("touchstart", d, Qe), function() {
|
|
6187
|
-
et = et.filter(function(
|
|
6188
|
-
return
|
|
6189
|
+
et = et.filter(function(m) {
|
|
6190
|
+
return m !== s;
|
|
6189
6191
|
}), document.removeEventListener("wheel", c, Qe), document.removeEventListener("touchmove", c, Qe), document.removeEventListener("touchstart", d, Qe);
|
|
6190
6192
|
};
|
|
6191
6193
|
}, []);
|
|
6192
|
-
var
|
|
6194
|
+
var v = e.removeScrollBar, h = e.inert;
|
|
6193
6195
|
return p.createElement(
|
|
6194
6196
|
p.Fragment,
|
|
6195
6197
|
null,
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
+
h ? p.createElement(s, { styles: Ru(o) }) : null,
|
|
6199
|
+
v ? p.createElement(hu, { gapMode: e.gapMode }) : null
|
|
6198
6200
|
);
|
|
6199
6201
|
}
|
|
6200
6202
|
function ku(e) {
|
|
@@ -6220,13 +6222,13 @@ var Un = ["Enter", " "], Nu = ["ArrowDown", "PageUp", "Home"], _s = ["ArrowUp",
|
|
|
6220
6222
|
]), Tt = ds(), Ts = an(), [Os, He] = Xe(It), [Du, Ot] = Xe(It), zs = (e) => {
|
|
6221
6223
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Tt(t), [c, u] = p.useState(null), d = p.useRef(!1), l = Se(s), f = Zn(o);
|
|
6222
6224
|
return p.useEffect(() => {
|
|
6223
|
-
const
|
|
6224
|
-
d.current = !0, document.addEventListener("pointerdown",
|
|
6225
|
-
},
|
|
6226
|
-
return document.addEventListener("keydown",
|
|
6227
|
-
document.removeEventListener("keydown",
|
|
6225
|
+
const v = () => {
|
|
6226
|
+
d.current = !0, document.addEventListener("pointerdown", h, { capture: !0, once: !0 }), document.addEventListener("pointermove", h, { capture: !0, once: !0 });
|
|
6227
|
+
}, h = () => d.current = !1;
|
|
6228
|
+
return document.addEventListener("keydown", v, { capture: !0 }), () => {
|
|
6229
|
+
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", h, { capture: !0 }), document.removeEventListener("pointermove", h, { capture: !0 });
|
|
6228
6230
|
};
|
|
6229
|
-
}, []), /* @__PURE__ */
|
|
6231
|
+
}, []), /* @__PURE__ */ g.jsx(ys, { ...i, children: /* @__PURE__ */ g.jsx(
|
|
6230
6232
|
Os,
|
|
6231
6233
|
{
|
|
6232
6234
|
scope: t,
|
|
@@ -6234,7 +6236,7 @@ var Un = ["Enter", " "], Nu = ["ArrowDown", "PageUp", "Home"], _s = ["ArrowUp",
|
|
|
6234
6236
|
onOpenChange: l,
|
|
6235
6237
|
content: c,
|
|
6236
6238
|
onContentChange: u,
|
|
6237
|
-
children: /* @__PURE__ */
|
|
6239
|
+
children: /* @__PURE__ */ g.jsx(
|
|
6238
6240
|
Du,
|
|
6239
6241
|
{
|
|
6240
6242
|
scope: t,
|
|
@@ -6252,7 +6254,7 @@ zs.displayName = It;
|
|
|
6252
6254
|
var ju = "MenuAnchor", lr = p.forwardRef(
|
|
6253
6255
|
(e, t) => {
|
|
6254
6256
|
const { __scopeMenu: n, ...r } = e, o = Tt(n);
|
|
6255
|
-
return /* @__PURE__ */
|
|
6257
|
+
return /* @__PURE__ */ g.jsx($l, { ...o, ...r, ref: t });
|
|
6256
6258
|
}
|
|
6257
6259
|
);
|
|
6258
6260
|
lr.displayName = ju;
|
|
@@ -6260,13 +6262,13 @@ var ur = "MenuPortal", [Lu, Ds] = Xe(ur, {
|
|
|
6260
6262
|
forceMount: void 0
|
|
6261
6263
|
}), js = (e) => {
|
|
6262
6264
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = He(ur, t);
|
|
6263
|
-
return /* @__PURE__ */
|
|
6265
|
+
return /* @__PURE__ */ g.jsx(Lu, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ft, { present: n || s.open, children: /* @__PURE__ */ g.jsx(ws, { asChild: !0, container: o, children: r }) }) });
|
|
6264
6266
|
};
|
|
6265
6267
|
js.displayName = ur;
|
|
6266
6268
|
var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
6267
6269
|
(e, t) => {
|
|
6268
6270
|
const n = Ds(ge, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = He(ge, e.__scopeMenu), a = Ot(ge, e.__scopeMenu);
|
|
6269
|
-
return /* @__PURE__ */
|
|
6271
|
+
return /* @__PURE__ */ g.jsx(Pt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ g.jsx(ft, { present: r || s.open, children: /* @__PURE__ */ g.jsx(Pt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ g.jsx($u, { ...o, ref: t }) : /* @__PURE__ */ g.jsx(Bu, { ...o, ref: t }) }) }) });
|
|
6270
6272
|
}
|
|
6271
6273
|
), $u = p.forwardRef(
|
|
6272
6274
|
(e, t) => {
|
|
@@ -6274,7 +6276,7 @@ var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6274
6276
|
return p.useEffect(() => {
|
|
6275
6277
|
const s = r.current;
|
|
6276
6278
|
if (s) return Kl(s);
|
|
6277
|
-
}, []), /* @__PURE__ */
|
|
6279
|
+
}, []), /* @__PURE__ */ g.jsx(
|
|
6278
6280
|
fr,
|
|
6279
6281
|
{
|
|
6280
6282
|
...e,
|
|
@@ -6293,7 +6295,7 @@ var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6293
6295
|
}
|
|
6294
6296
|
), Bu = p.forwardRef((e, t) => {
|
|
6295
6297
|
const n = He(ge, e.__scopeMenu);
|
|
6296
|
-
return /* @__PURE__ */
|
|
6298
|
+
return /* @__PURE__ */ g.jsx(
|
|
6297
6299
|
fr,
|
|
6298
6300
|
{
|
|
6299
6301
|
...e,
|
|
@@ -6318,10 +6320,10 @@ var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6318
6320
|
onPointerDownOutside: d,
|
|
6319
6321
|
onFocusOutside: l,
|
|
6320
6322
|
onInteractOutside: f,
|
|
6321
|
-
onDismiss:
|
|
6322
|
-
disableOutsideScroll:
|
|
6323
|
-
...
|
|
6324
|
-
} = e, b = He(ge, n), x = Ot(ge, n), E = Tt(n), w = Ts(n), C = Ou(n), [M, N] = p.useState(null), S = p.useRef(null), R = de(t, S, b.onContentChange), G = p.useRef(0), H = p.useRef(""), V = p.useRef(0), $ = p.useRef(null), q = p.useRef("right"), B = p.useRef(0), W =
|
|
6323
|
+
onDismiss: v,
|
|
6324
|
+
disableOutsideScroll: h,
|
|
6325
|
+
...m
|
|
6326
|
+
} = e, b = He(ge, n), x = Ot(ge, n), E = Tt(n), w = Ts(n), C = Ou(n), [M, N] = p.useState(null), S = p.useRef(null), R = de(t, S, b.onContentChange), G = p.useRef(0), H = p.useRef(""), V = p.useRef(0), $ = p.useRef(null), q = p.useRef("right"), B = p.useRef(0), W = h ? Ns : p.Fragment, F = h ? { as: Gu, allowPinchZoom: !0 } : void 0, Z = (I) => {
|
|
6325
6327
|
const y = H.current + I, j = C().filter((A) => !A.disabled), U = document.activeElement, P = j.find((A) => A.ref.current === U)?.textValue, _ = j.map((A) => A.textValue), D = ed(_, y, P), L = j.find((A) => A.textValue === D)?.ref.current;
|
|
6326
6328
|
(function A(T) {
|
|
6327
6329
|
H.current = T, window.clearTimeout(G.current), T !== "" && (G.current = window.setTimeout(() => A(""), 1e3));
|
|
@@ -6329,7 +6331,7 @@ var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6329
6331
|
};
|
|
6330
6332
|
p.useEffect(() => () => window.clearTimeout(G.current), []), Pc();
|
|
6331
6333
|
const k = p.useCallback((I) => q.current === $.current?.side && nd(I, $.current?.area), []);
|
|
6332
|
-
return /* @__PURE__ */
|
|
6334
|
+
return /* @__PURE__ */ g.jsx(
|
|
6333
6335
|
Fu,
|
|
6334
6336
|
{
|
|
6335
6337
|
scope: n,
|
|
@@ -6356,7 +6358,7 @@ var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6356
6358
|
onPointerGraceIntentChange: p.useCallback((I) => {
|
|
6357
6359
|
$.current = I;
|
|
6358
6360
|
}, []),
|
|
6359
|
-
children: /* @__PURE__ */
|
|
6361
|
+
children: /* @__PURE__ */ g.jsx(W, { ...F, children: /* @__PURE__ */ g.jsx(
|
|
6360
6362
|
Zo,
|
|
6361
6363
|
{
|
|
6362
6364
|
asChild: !0,
|
|
@@ -6365,7 +6367,7 @@ var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6365
6367
|
I.preventDefault(), S.current?.focus({ preventScroll: !0 });
|
|
6366
6368
|
}),
|
|
6367
6369
|
onUnmountAutoFocus: a,
|
|
6368
|
-
children: /* @__PURE__ */
|
|
6370
|
+
children: /* @__PURE__ */ g.jsx(
|
|
6369
6371
|
Xo,
|
|
6370
6372
|
{
|
|
6371
6373
|
asChild: !0,
|
|
@@ -6374,8 +6376,8 @@ var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6374
6376
|
onPointerDownOutside: d,
|
|
6375
6377
|
onFocusOutside: l,
|
|
6376
6378
|
onInteractOutside: f,
|
|
6377
|
-
onDismiss:
|
|
6378
|
-
children: /* @__PURE__ */
|
|
6379
|
+
onDismiss: v,
|
|
6380
|
+
children: /* @__PURE__ */ g.jsx(
|
|
6379
6381
|
To,
|
|
6380
6382
|
{
|
|
6381
6383
|
asChild: !0,
|
|
@@ -6389,7 +6391,7 @@ var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6389
6391
|
x.isUsingKeyboardRef.current || I.preventDefault();
|
|
6390
6392
|
}),
|
|
6391
6393
|
preventScrollOnEntryFocus: !0,
|
|
6392
|
-
children: /* @__PURE__ */
|
|
6394
|
+
children: /* @__PURE__ */ g.jsx(
|
|
6393
6395
|
Bl,
|
|
6394
6396
|
{
|
|
6395
6397
|
role: "menu",
|
|
@@ -6398,10 +6400,10 @@ var ge = "MenuContent", [Fu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6398
6400
|
"data-radix-menu-content": "",
|
|
6399
6401
|
dir: x.dir,
|
|
6400
6402
|
...E,
|
|
6401
|
-
...
|
|
6403
|
+
...m,
|
|
6402
6404
|
ref: R,
|
|
6403
|
-
style: { outline: "none", ...
|
|
6404
|
-
onKeyDown: J(
|
|
6405
|
+
style: { outline: "none", ...m.style },
|
|
6406
|
+
onKeyDown: J(m.onKeyDown, (I) => {
|
|
6405
6407
|
const j = I.target.closest("[data-radix-menu-content]") === I.currentTarget, U = I.ctrlKey || I.altKey || I.metaKey, P = I.key.length === 1;
|
|
6406
6408
|
j && (I.key === "Tab" && I.preventDefault(), !U && P && Z(I.key));
|
|
6407
6409
|
const _ = S.current;
|
|
@@ -6439,14 +6441,14 @@ Ls.displayName = ge;
|
|
|
6439
6441
|
var Hu = "MenuGroup", pr = p.forwardRef(
|
|
6440
6442
|
(e, t) => {
|
|
6441
6443
|
const { __scopeMenu: n, ...r } = e;
|
|
6442
|
-
return /* @__PURE__ */
|
|
6444
|
+
return /* @__PURE__ */ g.jsx(oe.div, { role: "group", ...r, ref: t });
|
|
6443
6445
|
}
|
|
6444
6446
|
);
|
|
6445
6447
|
pr.displayName = Hu;
|
|
6446
6448
|
var Wu = "MenuLabel", Fs = p.forwardRef(
|
|
6447
6449
|
(e, t) => {
|
|
6448
6450
|
const { __scopeMenu: n, ...r } = e;
|
|
6449
|
-
return /* @__PURE__ */
|
|
6451
|
+
return /* @__PURE__ */ g.jsx(oe.div, { ...r, ref: t });
|
|
6450
6452
|
}
|
|
6451
6453
|
);
|
|
6452
6454
|
Fs.displayName = Wu;
|
|
@@ -6456,10 +6458,10 @@ var en = "MenuItem", Qr = "menu.itemSelect", pn = p.forwardRef(
|
|
|
6456
6458
|
const l = s.current;
|
|
6457
6459
|
if (!n && l) {
|
|
6458
6460
|
const f = new CustomEvent(Qr, { bubbles: !0, cancelable: !0 });
|
|
6459
|
-
l.addEventListener(Qr, (
|
|
6461
|
+
l.addEventListener(Qr, (v) => r?.(v), { once: !0 }), Ao(l, f), f.defaultPrevented ? u.current = !1 : a.onClose();
|
|
6460
6462
|
}
|
|
6461
6463
|
};
|
|
6462
|
-
return /* @__PURE__ */
|
|
6464
|
+
return /* @__PURE__ */ g.jsx(
|
|
6463
6465
|
$s,
|
|
6464
6466
|
{
|
|
6465
6467
|
...o,
|
|
@@ -6483,17 +6485,17 @@ var en = "MenuItem", Qr = "menu.itemSelect", pn = p.forwardRef(
|
|
|
6483
6485
|
pn.displayName = en;
|
|
6484
6486
|
var $s = p.forwardRef(
|
|
6485
6487
|
(e, t) => {
|
|
6486
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = dr(en, n), i = Ts(n), c = p.useRef(null), u = de(t, c), [d, l] = p.useState(!1), [f,
|
|
6488
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = dr(en, n), i = Ts(n), c = p.useRef(null), u = de(t, c), [d, l] = p.useState(!1), [f, v] = p.useState("");
|
|
6487
6489
|
return p.useEffect(() => {
|
|
6488
|
-
const
|
|
6489
|
-
|
|
6490
|
-
}, [s.children]), /* @__PURE__ */
|
|
6490
|
+
const h = c.current;
|
|
6491
|
+
h && v((h.textContent ?? "").trim());
|
|
6492
|
+
}, [s.children]), /* @__PURE__ */ g.jsx(
|
|
6491
6493
|
Pt.ItemSlot,
|
|
6492
6494
|
{
|
|
6493
6495
|
scope: n,
|
|
6494
6496
|
disabled: r,
|
|
6495
6497
|
textValue: o ?? f,
|
|
6496
|
-
children: /* @__PURE__ */
|
|
6498
|
+
children: /* @__PURE__ */ g.jsx(Oo, { asChild: !0, ...i, focusable: !r, children: /* @__PURE__ */ g.jsx(
|
|
6497
6499
|
oe.div,
|
|
6498
6500
|
{
|
|
6499
6501
|
role: "menuitem",
|
|
@@ -6504,13 +6506,13 @@ var $s = p.forwardRef(
|
|
|
6504
6506
|
ref: u,
|
|
6505
6507
|
onPointerMove: J(
|
|
6506
6508
|
e.onPointerMove,
|
|
6507
|
-
At((
|
|
6508
|
-
r ? a.onItemLeave(
|
|
6509
|
+
At((h) => {
|
|
6510
|
+
r ? a.onItemLeave(h) : (a.onItemEnter(h), h.defaultPrevented || h.currentTarget.focus({ preventScroll: !0 }));
|
|
6509
6511
|
})
|
|
6510
6512
|
),
|
|
6511
6513
|
onPointerLeave: J(
|
|
6512
6514
|
e.onPointerLeave,
|
|
6513
|
-
At((
|
|
6515
|
+
At((h) => a.onItemLeave(h))
|
|
6514
6516
|
),
|
|
6515
6517
|
onFocus: J(e.onFocus, () => l(!0)),
|
|
6516
6518
|
onBlur: J(e.onBlur, () => l(!1))
|
|
@@ -6522,7 +6524,7 @@ var $s = p.forwardRef(
|
|
|
6522
6524
|
), Vu = "MenuCheckboxItem", Bs = p.forwardRef(
|
|
6523
6525
|
(e, t) => {
|
|
6524
6526
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
6525
|
-
return /* @__PURE__ */
|
|
6527
|
+
return /* @__PURE__ */ g.jsx(Us, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ g.jsx(
|
|
6526
6528
|
pn,
|
|
6527
6529
|
{
|
|
6528
6530
|
role: "menuitemcheckbox",
|
|
@@ -6547,14 +6549,14 @@ var Gs = "MenuRadioGroup", [Uu, Ku] = Xe(
|
|
|
6547
6549
|
), Hs = p.forwardRef(
|
|
6548
6550
|
(e, t) => {
|
|
6549
6551
|
const { value: n, onValueChange: r, ...o } = e, s = Se(r);
|
|
6550
|
-
return /* @__PURE__ */
|
|
6552
|
+
return /* @__PURE__ */ g.jsx(Uu, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ g.jsx(pr, { ...o, ref: t }) });
|
|
6551
6553
|
}
|
|
6552
6554
|
);
|
|
6553
6555
|
Hs.displayName = Gs;
|
|
6554
6556
|
var Ws = "MenuRadioItem", Vs = p.forwardRef(
|
|
6555
6557
|
(e, t) => {
|
|
6556
6558
|
const { value: n, ...r } = e, o = Ku(Ws, e.__scopeMenu), s = n === o.value;
|
|
6557
|
-
return /* @__PURE__ */
|
|
6559
|
+
return /* @__PURE__ */ g.jsx(Us, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ g.jsx(
|
|
6558
6560
|
pn,
|
|
6559
6561
|
{
|
|
6560
6562
|
role: "menuitemradio",
|
|
@@ -6578,11 +6580,11 @@ var mr = "MenuItemIndicator", [Us, Yu] = Xe(
|
|
|
6578
6580
|
), Ks = p.forwardRef(
|
|
6579
6581
|
(e, t) => {
|
|
6580
6582
|
const { __scopeMenu: n, forceMount: r, ...o } = e, s = Yu(mr, n);
|
|
6581
|
-
return /* @__PURE__ */
|
|
6583
|
+
return /* @__PURE__ */ g.jsx(
|
|
6582
6584
|
ft,
|
|
6583
6585
|
{
|
|
6584
6586
|
present: r || tn(s.checked) || s.checked === !0,
|
|
6585
|
-
children: /* @__PURE__ */
|
|
6587
|
+
children: /* @__PURE__ */ g.jsx(
|
|
6586
6588
|
oe.span,
|
|
6587
6589
|
{
|
|
6588
6590
|
...o,
|
|
@@ -6598,7 +6600,7 @@ Ks.displayName = mr;
|
|
|
6598
6600
|
var Xu = "MenuSeparator", Ys = p.forwardRef(
|
|
6599
6601
|
(e, t) => {
|
|
6600
6602
|
const { __scopeMenu: n, ...r } = e;
|
|
6601
|
-
return /* @__PURE__ */
|
|
6603
|
+
return /* @__PURE__ */ g.jsx(
|
|
6602
6604
|
oe.div,
|
|
6603
6605
|
{
|
|
6604
6606
|
role: "separator",
|
|
@@ -6613,13 +6615,13 @@ Ys.displayName = Xu;
|
|
|
6613
6615
|
var qu = "MenuArrow", Xs = p.forwardRef(
|
|
6614
6616
|
(e, t) => {
|
|
6615
6617
|
const { __scopeMenu: n, ...r } = e, o = Tt(n);
|
|
6616
|
-
return /* @__PURE__ */
|
|
6618
|
+
return /* @__PURE__ */ g.jsx(Gl, { ...o, ...r, ref: t });
|
|
6617
6619
|
}
|
|
6618
6620
|
);
|
|
6619
6621
|
Xs.displayName = qu;
|
|
6620
6622
|
var gr = "MenuSub", [Zu, qs] = Xe(gr), Zs = (e) => {
|
|
6621
6623
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = He(gr, t), a = Tt(t), [i, c] = p.useState(null), [u, d] = p.useState(null), l = Se(o);
|
|
6622
|
-
return p.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */
|
|
6624
|
+
return p.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ g.jsx(ys, { ...a, children: /* @__PURE__ */ g.jsx(
|
|
6623
6625
|
Os,
|
|
6624
6626
|
{
|
|
6625
6627
|
scope: t,
|
|
@@ -6627,7 +6629,7 @@ var gr = "MenuSub", [Zu, qs] = Xe(gr), Zs = (e) => {
|
|
|
6627
6629
|
onOpenChange: l,
|
|
6628
6630
|
content: u,
|
|
6629
6631
|
onContentChange: d,
|
|
6630
|
-
children: /* @__PURE__ */
|
|
6632
|
+
children: /* @__PURE__ */ g.jsx(
|
|
6631
6633
|
Zu,
|
|
6632
6634
|
{
|
|
6633
6635
|
scope: t,
|
|
@@ -6652,7 +6654,7 @@ var yt = "MenuSubTrigger", Js = p.forwardRef(
|
|
|
6652
6654
|
return () => {
|
|
6653
6655
|
window.clearTimeout(l), c(null);
|
|
6654
6656
|
};
|
|
6655
|
-
}, [i, c]), /* @__PURE__ */
|
|
6657
|
+
}, [i, c]), /* @__PURE__ */ g.jsx(lr, { asChild: !0, ...u, children: /* @__PURE__ */ g.jsx(
|
|
6656
6658
|
$s,
|
|
6657
6659
|
{
|
|
6658
6660
|
id: o.triggerId,
|
|
@@ -6679,18 +6681,18 @@ var yt = "MenuSubTrigger", Js = p.forwardRef(
|
|
|
6679
6681
|
d();
|
|
6680
6682
|
const f = n.content?.getBoundingClientRect();
|
|
6681
6683
|
if (f) {
|
|
6682
|
-
const
|
|
6684
|
+
const v = n.content?.dataset.side, h = v === "right", m = h ? -5 : 5, b = f[h ? "left" : "right"], x = f[h ? "right" : "left"];
|
|
6683
6685
|
s.onPointerGraceIntentChange({
|
|
6684
6686
|
area: [
|
|
6685
6687
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
6686
6688
|
// consistently within polygon bounds
|
|
6687
|
-
{ x: l.clientX +
|
|
6689
|
+
{ x: l.clientX + m, y: l.clientY },
|
|
6688
6690
|
{ x: b, y: f.top },
|
|
6689
6691
|
{ x, y: f.top },
|
|
6690
6692
|
{ x, y: f.bottom },
|
|
6691
6693
|
{ x: b, y: f.bottom }
|
|
6692
6694
|
],
|
|
6693
|
-
side:
|
|
6695
|
+
side: v
|
|
6694
6696
|
}), window.clearTimeout(i.current), i.current = window.setTimeout(
|
|
6695
6697
|
() => s.onPointerGraceIntentChange(null),
|
|
6696
6698
|
300
|
|
@@ -6713,7 +6715,7 @@ Js.displayName = yt;
|
|
|
6713
6715
|
var Qs = "MenuSubContent", ea = p.forwardRef(
|
|
6714
6716
|
(e, t) => {
|
|
6715
6717
|
const n = Ds(ge, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = He(ge, e.__scopeMenu), a = Ot(ge, e.__scopeMenu), i = qs(Qs, e.__scopeMenu), c = p.useRef(null), u = de(t, c);
|
|
6716
|
-
return /* @__PURE__ */
|
|
6718
|
+
return /* @__PURE__ */ g.jsx(Pt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ g.jsx(ft, { present: r || s.open, children: /* @__PURE__ */ g.jsx(Pt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ g.jsx(
|
|
6717
6719
|
fr,
|
|
6718
6720
|
{
|
|
6719
6721
|
id: i.contentId,
|
|
@@ -6805,7 +6807,7 @@ var rd = zs, od = lr, sd = js, ad = Ls, id = pr, cd = Fs, ld = pn, ud = Bs, dd =
|
|
|
6805
6807
|
onChange: a,
|
|
6806
6808
|
caller: mn
|
|
6807
6809
|
});
|
|
6808
|
-
return /* @__PURE__ */
|
|
6810
|
+
return /* @__PURE__ */ g.jsx(
|
|
6809
6811
|
yd,
|
|
6810
6812
|
{
|
|
6811
6813
|
scope: t,
|
|
@@ -6816,7 +6818,7 @@ var rd = zs, od = lr, sd = js, ad = Ls, id = pr, cd = Fs, ld = pn, ud = Bs, dd =
|
|
|
6816
6818
|
onOpenChange: l,
|
|
6817
6819
|
onOpenToggle: p.useCallback(() => l((f) => !f), [l]),
|
|
6818
6820
|
modal: i,
|
|
6819
|
-
children: /* @__PURE__ */
|
|
6821
|
+
children: /* @__PURE__ */ g.jsx(rd, { ...c, open: d, onOpenChange: l, dir: r, modal: i, children: n })
|
|
6820
6822
|
}
|
|
6821
6823
|
);
|
|
6822
6824
|
};
|
|
@@ -6824,7 +6826,7 @@ ra.displayName = mn;
|
|
|
6824
6826
|
var oa = "DropdownMenuTrigger", sa = p.forwardRef(
|
|
6825
6827
|
(e, t) => {
|
|
6826
6828
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = na(oa, n), a = ce(n);
|
|
6827
|
-
return /* @__PURE__ */
|
|
6829
|
+
return /* @__PURE__ */ g.jsx(od, { asChild: !0, ...a, children: /* @__PURE__ */ g.jsx(
|
|
6828
6830
|
oe.button,
|
|
6829
6831
|
{
|
|
6830
6832
|
type: "button",
|
|
@@ -6850,13 +6852,13 @@ var oa = "DropdownMenuTrigger", sa = p.forwardRef(
|
|
|
6850
6852
|
sa.displayName = oa;
|
|
6851
6853
|
var wd = "DropdownMenuPortal", aa = (e) => {
|
|
6852
6854
|
const { __scopeDropdownMenu: t, ...n } = e, r = ce(t);
|
|
6853
|
-
return /* @__PURE__ */
|
|
6855
|
+
return /* @__PURE__ */ g.jsx(sd, { ...r, ...n });
|
|
6854
6856
|
};
|
|
6855
6857
|
aa.displayName = wd;
|
|
6856
6858
|
var ia = "DropdownMenuContent", ca = p.forwardRef(
|
|
6857
6859
|
(e, t) => {
|
|
6858
6860
|
const { __scopeDropdownMenu: n, ...r } = e, o = na(ia, n), s = ce(n), a = p.useRef(!1);
|
|
6859
|
-
return /* @__PURE__ */
|
|
6861
|
+
return /* @__PURE__ */ g.jsx(
|
|
6860
6862
|
ad,
|
|
6861
6863
|
{
|
|
6862
6864
|
id: o.contentId,
|
|
@@ -6887,53 +6889,53 @@ ca.displayName = ia;
|
|
|
6887
6889
|
var Cd = "DropdownMenuGroup", la = p.forwardRef(
|
|
6888
6890
|
(e, t) => {
|
|
6889
6891
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6890
|
-
return /* @__PURE__ */
|
|
6892
|
+
return /* @__PURE__ */ g.jsx(id, { ...o, ...r, ref: t });
|
|
6891
6893
|
}
|
|
6892
6894
|
);
|
|
6893
6895
|
la.displayName = Cd;
|
|
6894
6896
|
var Sd = "DropdownMenuLabel", ua = p.forwardRef(
|
|
6895
6897
|
(e, t) => {
|
|
6896
6898
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6897
|
-
return /* @__PURE__ */
|
|
6899
|
+
return /* @__PURE__ */ g.jsx(cd, { ...o, ...r, ref: t });
|
|
6898
6900
|
}
|
|
6899
6901
|
);
|
|
6900
6902
|
ua.displayName = Sd;
|
|
6901
6903
|
var Ed = "DropdownMenuItem", da = p.forwardRef(
|
|
6902
6904
|
(e, t) => {
|
|
6903
6905
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6904
|
-
return /* @__PURE__ */
|
|
6906
|
+
return /* @__PURE__ */ g.jsx(ld, { ...o, ...r, ref: t });
|
|
6905
6907
|
}
|
|
6906
6908
|
);
|
|
6907
6909
|
da.displayName = Ed;
|
|
6908
6910
|
var Rd = "DropdownMenuCheckboxItem", fa = p.forwardRef((e, t) => {
|
|
6909
6911
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6910
|
-
return /* @__PURE__ */
|
|
6912
|
+
return /* @__PURE__ */ g.jsx(ud, { ...o, ...r, ref: t });
|
|
6911
6913
|
});
|
|
6912
6914
|
fa.displayName = Rd;
|
|
6913
6915
|
var Pd = "DropdownMenuRadioGroup", pa = p.forwardRef((e, t) => {
|
|
6914
6916
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6915
|
-
return /* @__PURE__ */
|
|
6917
|
+
return /* @__PURE__ */ g.jsx(dd, { ...o, ...r, ref: t });
|
|
6916
6918
|
});
|
|
6917
6919
|
pa.displayName = Pd;
|
|
6918
6920
|
var Ad = "DropdownMenuRadioItem", ma = p.forwardRef((e, t) => {
|
|
6919
6921
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6920
|
-
return /* @__PURE__ */
|
|
6922
|
+
return /* @__PURE__ */ g.jsx(fd, { ...o, ...r, ref: t });
|
|
6921
6923
|
});
|
|
6922
6924
|
ma.displayName = Ad;
|
|
6923
6925
|
var kd = "DropdownMenuItemIndicator", ga = p.forwardRef((e, t) => {
|
|
6924
6926
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6925
|
-
return /* @__PURE__ */
|
|
6927
|
+
return /* @__PURE__ */ g.jsx(pd, { ...o, ...r, ref: t });
|
|
6926
6928
|
});
|
|
6927
6929
|
ga.displayName = kd;
|
|
6928
6930
|
var Md = "DropdownMenuSeparator", ha = p.forwardRef((e, t) => {
|
|
6929
6931
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6930
|
-
return /* @__PURE__ */
|
|
6932
|
+
return /* @__PURE__ */ g.jsx(md, { ...o, ...r, ref: t });
|
|
6931
6933
|
});
|
|
6932
6934
|
ha.displayName = Md;
|
|
6933
6935
|
var Nd = "DropdownMenuArrow", _d = p.forwardRef(
|
|
6934
6936
|
(e, t) => {
|
|
6935
6937
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6936
|
-
return /* @__PURE__ */
|
|
6938
|
+
return /* @__PURE__ */ g.jsx(gd, { ...o, ...r, ref: t });
|
|
6937
6939
|
}
|
|
6938
6940
|
);
|
|
6939
6941
|
_d.displayName = Nd;
|
|
@@ -6944,15 +6946,15 @@ var Id = (e) => {
|
|
|
6944
6946
|
onChange: o,
|
|
6945
6947
|
caller: "DropdownMenuSub"
|
|
6946
6948
|
});
|
|
6947
|
-
return /* @__PURE__ */
|
|
6949
|
+
return /* @__PURE__ */ g.jsx(hd, { ...a, open: i, onOpenChange: c, children: n });
|
|
6948
6950
|
}, Td = "DropdownMenuSubTrigger", va = p.forwardRef((e, t) => {
|
|
6949
6951
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6950
|
-
return /* @__PURE__ */
|
|
6952
|
+
return /* @__PURE__ */ g.jsx(vd, { ...o, ...r, ref: t });
|
|
6951
6953
|
});
|
|
6952
6954
|
va.displayName = Td;
|
|
6953
6955
|
var Od = "DropdownMenuSubContent", ba = p.forwardRef((e, t) => {
|
|
6954
6956
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6955
|
-
return /* @__PURE__ */
|
|
6957
|
+
return /* @__PURE__ */ g.jsx(
|
|
6956
6958
|
bd,
|
|
6957
6959
|
{
|
|
6958
6960
|
...o,
|
|
@@ -7118,11 +7120,11 @@ const df = [
|
|
|
7118
7120
|
const pf = [
|
|
7119
7121
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
7120
7122
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
7121
|
-
], mf = qe("x", pf), gf = ({ ...e }) => /* @__PURE__ */
|
|
7123
|
+
], mf = qe("x", pf), gf = ({ ...e }) => /* @__PURE__ */ g.jsx(zd, { "data-slot": "dropdown-menu", ...e }), hf = ({ ...e }) => /* @__PURE__ */ g.jsx(Dd, { "data-slot": "dropdown-menu-trigger", ...e }), vf = ({
|
|
7122
7124
|
className: e,
|
|
7123
7125
|
sideOffset: t = 4,
|
|
7124
7126
|
...n
|
|
7125
|
-
}) => /* @__PURE__ */
|
|
7127
|
+
}) => /* @__PURE__ */ g.jsx(jd, { children: /* @__PURE__ */ g.jsx(
|
|
7126
7128
|
Ld,
|
|
7127
7129
|
{
|
|
7128
7130
|
"data-slot": "dropdown-menu-content",
|
|
@@ -7133,7 +7135,7 @@ const pf = [
|
|
|
7133
7135
|
),
|
|
7134
7136
|
...n
|
|
7135
7137
|
}
|
|
7136
|
-
) }), op = ({ ...e }) => /* @__PURE__ */
|
|
7138
|
+
) }), op = ({ ...e }) => /* @__PURE__ */ g.jsx(Fd, { "data-slot": "dropdown-menu-group", ...e }), bf = ({ className: e, inset: t, variant: n = "default", ...r }) => /* @__PURE__ */ g.jsx(
|
|
7137
7139
|
Bd,
|
|
7138
7140
|
{
|
|
7139
7141
|
"data-slot": "dropdown-menu-item",
|
|
@@ -7150,7 +7152,7 @@ const pf = [
|
|
|
7150
7152
|
children: t,
|
|
7151
7153
|
checked: n,
|
|
7152
7154
|
...r
|
|
7153
|
-
}) => /* @__PURE__ */
|
|
7155
|
+
}) => /* @__PURE__ */ g.jsxs(
|
|
7154
7156
|
Gd,
|
|
7155
7157
|
{
|
|
7156
7158
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
@@ -7161,15 +7163,15 @@ const pf = [
|
|
|
7161
7163
|
checked: n,
|
|
7162
7164
|
...r,
|
|
7163
7165
|
children: [
|
|
7164
|
-
/* @__PURE__ */
|
|
7166
|
+
/* @__PURE__ */ g.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ g.jsx(xa, { children: /* @__PURE__ */ g.jsx(tf, { className: "size-4" }) }) }),
|
|
7165
7167
|
t
|
|
7166
7168
|
]
|
|
7167
7169
|
}
|
|
7168
|
-
), ap = ({ ...e }) => /* @__PURE__ */
|
|
7170
|
+
), ap = ({ ...e }) => /* @__PURE__ */ g.jsx(Hd, { "data-slot": "dropdown-menu-radio-group", ...e }), ip = ({
|
|
7169
7171
|
className: e,
|
|
7170
7172
|
children: t,
|
|
7171
7173
|
...n
|
|
7172
|
-
}) => /* @__PURE__ */
|
|
7174
|
+
}) => /* @__PURE__ */ g.jsxs(
|
|
7173
7175
|
Wd,
|
|
7174
7176
|
{
|
|
7175
7177
|
"data-slot": "dropdown-menu-radio-item",
|
|
@@ -7179,11 +7181,11 @@ const pf = [
|
|
|
7179
7181
|
),
|
|
7180
7182
|
...n,
|
|
7181
7183
|
children: [
|
|
7182
|
-
/* @__PURE__ */
|
|
7184
|
+
/* @__PURE__ */ g.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ g.jsx(xa, { children: /* @__PURE__ */ g.jsx(uf, { className: "size-2 fill-current" }) }) }),
|
|
7183
7185
|
t
|
|
7184
7186
|
]
|
|
7185
7187
|
}
|
|
7186
|
-
), cp = ({ className: e, inset: t, ...n }) => /* @__PURE__ */
|
|
7188
|
+
), cp = ({ className: e, inset: t, ...n }) => /* @__PURE__ */ g.jsx(
|
|
7187
7189
|
$d,
|
|
7188
7190
|
{
|
|
7189
7191
|
"data-slot": "dropdown-menu-label",
|
|
@@ -7194,14 +7196,14 @@ const pf = [
|
|
|
7194
7196
|
), lp = ({
|
|
7195
7197
|
className: e,
|
|
7196
7198
|
...t
|
|
7197
|
-
}) => /* @__PURE__ */
|
|
7199
|
+
}) => /* @__PURE__ */ g.jsx(
|
|
7198
7200
|
Vd,
|
|
7199
7201
|
{
|
|
7200
7202
|
"data-slot": "dropdown-menu-separator",
|
|
7201
7203
|
className: ee("bg-border -mx-1 my-1 h-px", e),
|
|
7202
7204
|
...t
|
|
7203
7205
|
}
|
|
7204
|
-
), up = ({ ...e }) => /* @__PURE__ */
|
|
7206
|
+
), up = ({ ...e }) => /* @__PURE__ */ g.jsx(Ud, { "data-slot": "dropdown-menu-sub", ...e }), dp = ({ className: e, inset: t, children: n, ...r }) => /* @__PURE__ */ g.jsxs(
|
|
7205
7207
|
Kd,
|
|
7206
7208
|
{
|
|
7207
7209
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -7213,13 +7215,13 @@ const pf = [
|
|
|
7213
7215
|
...r,
|
|
7214
7216
|
children: [
|
|
7215
7217
|
n,
|
|
7216
|
-
/* @__PURE__ */
|
|
7218
|
+
/* @__PURE__ */ g.jsx(sf, { className: "ml-auto size-4" })
|
|
7217
7219
|
]
|
|
7218
7220
|
}
|
|
7219
7221
|
), fp = ({
|
|
7220
7222
|
className: e,
|
|
7221
7223
|
...t
|
|
7222
|
-
}) => /* @__PURE__ */
|
|
7224
|
+
}) => /* @__PURE__ */ g.jsx(
|
|
7223
7225
|
Yd,
|
|
7224
7226
|
{
|
|
7225
7227
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -7229,39 +7231,39 @@ const pf = [
|
|
|
7229
7231
|
),
|
|
7230
7232
|
...t
|
|
7231
7233
|
}
|
|
7232
|
-
), wa = ({ label: e, onClick: t, isLast: n, dropdownItems: r, icon: o }) => r?.length ? /* @__PURE__ */
|
|
7233
|
-
/* @__PURE__ */
|
|
7234
|
+
), wa = ({ label: e, onClick: t, isLast: n, dropdownItems: r, icon: o }) => r?.length ? /* @__PURE__ */ g.jsxs(gf, { children: [
|
|
7235
|
+
/* @__PURE__ */ g.jsx(hf, { asChild: !0, children: /* @__PURE__ */ g.jsxs(Le, { variant: "ghost", size: "sm", className: "p-1 gap-2", children: [
|
|
7234
7236
|
o,
|
|
7235
7237
|
e,
|
|
7236
7238
|
" ",
|
|
7237
|
-
/* @__PURE__ */
|
|
7239
|
+
/* @__PURE__ */ g.jsx(cf, { className: "size-4" })
|
|
7238
7240
|
] }) }),
|
|
7239
|
-
/* @__PURE__ */
|
|
7241
|
+
/* @__PURE__ */ g.jsx(vf, { className: "bg-background text-foreground", children: r.map((s) => /* @__PURE__ */ g.jsxs(bf, { className: "cursor-pointer gap-2", onClick: s.onClick, children: [
|
|
7240
7242
|
s.icon,
|
|
7241
7243
|
s.label
|
|
7242
7244
|
] }, `dropdown-${s.label}`)) })
|
|
7243
|
-
] }) : n ? /* @__PURE__ */
|
|
7245
|
+
] }) : n ? /* @__PURE__ */ g.jsx(
|
|
7244
7246
|
Le,
|
|
7245
7247
|
{
|
|
7246
7248
|
variant: "ghost",
|
|
7247
7249
|
size: "sm",
|
|
7248
7250
|
className: "cursor-default hover:bg-transparent hover:text-muted-transparent p-1",
|
|
7249
7251
|
asChild: !0,
|
|
7250
|
-
children: /* @__PURE__ */
|
|
7252
|
+
children: /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7251
7253
|
o,
|
|
7252
7254
|
e
|
|
7253
7255
|
] })
|
|
7254
7256
|
}
|
|
7255
|
-
) : /* @__PURE__ */
|
|
7257
|
+
) : /* @__PURE__ */ g.jsxs(Le, { onClick: t, variant: "ghost", size: "sm", className: "p-1 gap-2", children: [
|
|
7256
7258
|
o,
|
|
7257
7259
|
e
|
|
7258
7260
|
] });
|
|
7259
7261
|
wa.displayName = "BreadcrumbItem";
|
|
7260
7262
|
const xf = ({ className: e, items: t, ...n }) => {
|
|
7261
7263
|
const r = t.length - 1;
|
|
7262
|
-
return /* @__PURE__ */
|
|
7263
|
-
s !== 0 && /* @__PURE__ */
|
|
7264
|
-
/* @__PURE__ */
|
|
7264
|
+
return /* @__PURE__ */ g.jsx("div", { className: ee("flex items-center", e), ...n, children: t.map((o, s) => /* @__PURE__ */ g.jsxs(p.Fragment, { children: [
|
|
7265
|
+
s !== 0 && /* @__PURE__ */ g.jsx("span", { className: "mx-1.5 text-muted-foreground", children: "/" }, `${o.label}-separator`),
|
|
7266
|
+
/* @__PURE__ */ g.jsx(
|
|
7265
7267
|
wa,
|
|
7266
7268
|
{
|
|
7267
7269
|
label: o.label,
|
|
@@ -7274,7 +7276,7 @@ const xf = ({ className: e, items: t, ...n }) => {
|
|
|
7274
7276
|
] }, `${o.label}-fragment`)) });
|
|
7275
7277
|
};
|
|
7276
7278
|
xf.displayName = "Breadcrumb";
|
|
7277
|
-
const Ca = Ie(({ className: e, children: t, ...n }, r) => /* @__PURE__ */
|
|
7279
|
+
const Ca = Ie(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g.jsx(
|
|
7278
7280
|
"div",
|
|
7279
7281
|
{
|
|
7280
7282
|
ref: r,
|
|
@@ -7295,11 +7297,11 @@ const yf = Xn("w-full bg-card flex min-h-10 items-center", {
|
|
|
7295
7297
|
variant: "default"
|
|
7296
7298
|
}
|
|
7297
7299
|
}), Sa = Ie(
|
|
7298
|
-
({ className: e, variant: t, children: n, ...r }, o) => /* @__PURE__ */
|
|
7300
|
+
({ className: e, variant: t, children: n, ...r }, o) => /* @__PURE__ */ g.jsx("div", { ref: o, className: ee(yf({ variant: t, className: e })), ...r, children: n })
|
|
7299
7301
|
);
|
|
7300
7302
|
Sa.displayName = "ContainerHeader";
|
|
7301
7303
|
const Ea = Ie(
|
|
7302
|
-
({ className: e, ...t }, n) => /* @__PURE__ */
|
|
7304
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx("div", { ref: n, className: ee("flex-1 overflow-auto bg-default border-border border-t", e), ...t })
|
|
7303
7305
|
);
|
|
7304
7306
|
Ea.displayName = "ContainerContent";
|
|
7305
7307
|
const gn = Ya(null);
|
|
@@ -7337,9 +7339,9 @@ function Ra({
|
|
|
7337
7339
|
onExpand: d,
|
|
7338
7340
|
onResize: l,
|
|
7339
7341
|
order: f,
|
|
7340
|
-
style:
|
|
7341
|
-
tagName:
|
|
7342
|
-
...
|
|
7342
|
+
style: v,
|
|
7343
|
+
tagName: h = "div",
|
|
7344
|
+
...m
|
|
7343
7345
|
}) {
|
|
7344
7346
|
const b = uo(gn);
|
|
7345
7347
|
if (b === null)
|
|
@@ -7411,14 +7413,14 @@ function Ra({
|
|
|
7411
7413
|
}
|
|
7412
7414
|
}), [x, E, w, N, V, G]);
|
|
7413
7415
|
const q = C($.current, o);
|
|
7414
|
-
return Me(
|
|
7415
|
-
...
|
|
7416
|
+
return Me(h, {
|
|
7417
|
+
...m,
|
|
7416
7418
|
children: e,
|
|
7417
7419
|
className: t,
|
|
7418
7420
|
id: V,
|
|
7419
7421
|
style: {
|
|
7420
7422
|
...q,
|
|
7421
|
-
...
|
|
7423
|
+
...v
|
|
7422
7424
|
},
|
|
7423
7425
|
// CSS selectors
|
|
7424
7426
|
[ne.groupId]: M,
|
|
@@ -7661,15 +7663,15 @@ function xr({
|
|
|
7661
7663
|
// That is why we only check potentially intersecting handles,
|
|
7662
7664
|
// and why we skip if the event target is within the handle's DOM
|
|
7663
7665
|
Af(r, s) > 0) {
|
|
7664
|
-
let
|
|
7665
|
-
for (;
|
|
7666
|
-
if (Pf(
|
|
7667
|
-
|
|
7666
|
+
let h = r, m = !1;
|
|
7667
|
+
for (; h && !h.contains(s); ) {
|
|
7668
|
+
if (Pf(h.getBoundingClientRect(), i)) {
|
|
7669
|
+
m = !0;
|
|
7668
7670
|
break;
|
|
7669
7671
|
}
|
|
7670
|
-
|
|
7672
|
+
h = h.parentElement;
|
|
7671
7673
|
}
|
|
7672
|
-
if (
|
|
7674
|
+
if (m)
|
|
7673
7675
|
return;
|
|
7674
7676
|
}
|
|
7675
7677
|
be.push(o);
|
|
@@ -7791,14 +7793,14 @@ function wt({
|
|
|
7791
7793
|
const l = e < 0 ? c : i, f = n[l];
|
|
7792
7794
|
Y(f, `Panel constraints not found for index ${l}`);
|
|
7793
7795
|
const {
|
|
7794
|
-
collapsedSize:
|
|
7795
|
-
collapsible:
|
|
7796
|
-
minSize:
|
|
7796
|
+
collapsedSize: v = 0,
|
|
7797
|
+
collapsible: h,
|
|
7798
|
+
minSize: m = 0
|
|
7797
7799
|
} = f;
|
|
7798
|
-
if (
|
|
7800
|
+
if (h) {
|
|
7799
7801
|
const b = t[l];
|
|
7800
|
-
if (Y(b != null, `Previous layout not found for panel index ${l}`), fe(b,
|
|
7801
|
-
const x =
|
|
7802
|
+
if (Y(b != null, `Previous layout not found for panel index ${l}`), fe(b, v)) {
|
|
7803
|
+
const x = m - b;
|
|
7802
7804
|
Ye(x, Math.abs(e)) > 0 && (e = e < 0 ? 0 - x : x);
|
|
7803
7805
|
}
|
|
7804
7806
|
}
|
|
@@ -7807,14 +7809,14 @@ function wt({
|
|
|
7807
7809
|
const l = e < 0 ? i : c, f = n[l];
|
|
7808
7810
|
Y(f, `No panel constraints found for index ${l}`);
|
|
7809
7811
|
const {
|
|
7810
|
-
collapsedSize:
|
|
7811
|
-
collapsible:
|
|
7812
|
-
minSize:
|
|
7812
|
+
collapsedSize: v = 0,
|
|
7813
|
+
collapsible: h,
|
|
7814
|
+
minSize: m = 0
|
|
7813
7815
|
} = f;
|
|
7814
|
-
if (
|
|
7816
|
+
if (h) {
|
|
7815
7817
|
const b = t[l];
|
|
7816
|
-
if (Y(b != null, `Previous layout not found for panel index ${l}`), fe(b,
|
|
7817
|
-
const x = b -
|
|
7818
|
+
if (Y(b != null, `Previous layout not found for panel index ${l}`), fe(b, m)) {
|
|
7819
|
+
const x = b - v;
|
|
7818
7820
|
Ye(x, Math.abs(e)) > 0 && (e = e < 0 ? 0 - x : x);
|
|
7819
7821
|
}
|
|
7820
7822
|
}
|
|
@@ -7822,32 +7824,32 @@ function wt({
|
|
|
7822
7824
|
}
|
|
7823
7825
|
{
|
|
7824
7826
|
const l = e < 0 ? 1 : -1;
|
|
7825
|
-
let f = e < 0 ? c : i,
|
|
7827
|
+
let f = e < 0 ? c : i, v = 0;
|
|
7826
7828
|
for (; ; ) {
|
|
7827
|
-
const
|
|
7828
|
-
Y(
|
|
7829
|
+
const m = t[f];
|
|
7830
|
+
Y(m != null, `Previous layout not found for panel index ${f}`);
|
|
7829
7831
|
const x = rt({
|
|
7830
7832
|
panelConstraints: n,
|
|
7831
7833
|
panelIndex: f,
|
|
7832
7834
|
size: 100
|
|
7833
|
-
}) -
|
|
7834
|
-
if (
|
|
7835
|
+
}) - m;
|
|
7836
|
+
if (v += x, f += l, f < 0 || f >= n.length)
|
|
7835
7837
|
break;
|
|
7836
7838
|
}
|
|
7837
|
-
const
|
|
7838
|
-
e = e < 0 ? 0 -
|
|
7839
|
+
const h = Math.min(Math.abs(e), Math.abs(v));
|
|
7840
|
+
e = e < 0 ? 0 - h : h;
|
|
7839
7841
|
}
|
|
7840
7842
|
{
|
|
7841
7843
|
let f = e < 0 ? i : c;
|
|
7842
7844
|
for (; f >= 0 && f < n.length; ) {
|
|
7843
|
-
const
|
|
7844
|
-
Y(
|
|
7845
|
-
const
|
|
7845
|
+
const v = Math.abs(e) - Math.abs(u), h = t[f];
|
|
7846
|
+
Y(h != null, `Previous layout not found for panel index ${f}`);
|
|
7847
|
+
const m = h - v, b = rt({
|
|
7846
7848
|
panelConstraints: n,
|
|
7847
7849
|
panelIndex: f,
|
|
7848
|
-
size:
|
|
7850
|
+
size: m
|
|
7849
7851
|
});
|
|
7850
|
-
if (!fe(
|
|
7852
|
+
if (!fe(h, b) && (u += h - b, a[f] = b, u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3), void 0, {
|
|
7851
7853
|
numeric: !0
|
|
7852
7854
|
}) >= 0))
|
|
7853
7855
|
break;
|
|
@@ -7859,22 +7861,22 @@ function wt({
|
|
|
7859
7861
|
{
|
|
7860
7862
|
const l = e < 0 ? c : i, f = t[l];
|
|
7861
7863
|
Y(f != null, `Previous layout not found for panel index ${l}`);
|
|
7862
|
-
const
|
|
7864
|
+
const v = f + u, h = rt({
|
|
7863
7865
|
panelConstraints: n,
|
|
7864
7866
|
panelIndex: l,
|
|
7865
|
-
size:
|
|
7867
|
+
size: v
|
|
7866
7868
|
});
|
|
7867
|
-
if (a[l] =
|
|
7868
|
-
let
|
|
7869
|
+
if (a[l] = h, !fe(h, v)) {
|
|
7870
|
+
let m = v - h, x = e < 0 ? c : i;
|
|
7869
7871
|
for (; x >= 0 && x < n.length; ) {
|
|
7870
7872
|
const E = a[x];
|
|
7871
7873
|
Y(E != null, `Previous layout not found for panel index ${x}`);
|
|
7872
|
-
const w = E +
|
|
7874
|
+
const w = E + m, C = rt({
|
|
7873
7875
|
panelConstraints: n,
|
|
7874
7876
|
panelIndex: x,
|
|
7875
7877
|
size: w
|
|
7876
7878
|
});
|
|
7877
|
-
if (fe(E, C) || (
|
|
7879
|
+
if (fe(E, C) || (m -= C - E, a[x] = C), fe(m, 0))
|
|
7878
7880
|
break;
|
|
7879
7881
|
e > 0 ? x-- : x++;
|
|
7880
7882
|
}
|
|
@@ -7892,12 +7894,12 @@ function Df({
|
|
|
7892
7894
|
const i = n[0];
|
|
7893
7895
|
Y(i != null, "No pivot index found"), t.forEach((l, f) => {
|
|
7894
7896
|
const {
|
|
7895
|
-
constraints:
|
|
7897
|
+
constraints: v
|
|
7896
7898
|
} = l, {
|
|
7897
|
-
maxSize:
|
|
7898
|
-
minSize:
|
|
7899
|
-
} =
|
|
7900
|
-
f === i ? (r =
|
|
7899
|
+
maxSize: h = 100,
|
|
7900
|
+
minSize: m = 0
|
|
7901
|
+
} = v;
|
|
7902
|
+
f === i ? (r = m, o = h) : (s += m, a += h);
|
|
7901
7903
|
});
|
|
7902
7904
|
const c = Math.min(o, 100 - s), u = Math.max(r, 100 - a), d = e[i];
|
|
7903
7905
|
return {
|
|
@@ -7961,8 +7963,8 @@ function Ff({
|
|
|
7961
7963
|
pivotIndices: [c, c + 1]
|
|
7962
7964
|
}), f = i[c];
|
|
7963
7965
|
if (f != null) {
|
|
7964
|
-
const
|
|
7965
|
-
Y(
|
|
7966
|
+
const v = o[c];
|
|
7967
|
+
Y(v, `No panel data found for index "${c}"`), f.setAttribute("aria-controls", v.id), f.setAttribute("aria-valuemax", "" + Math.round(u)), f.setAttribute("aria-valuemin", "" + Math.round(d)), f.setAttribute("aria-valuenow", l != null ? "" + Math.round(l) : "");
|
|
7966
7968
|
}
|
|
7967
7969
|
}
|
|
7968
7970
|
return () => {
|
|
@@ -7982,10 +7984,10 @@ function Ff({
|
|
|
7982
7984
|
const d = Mt(n, s);
|
|
7983
7985
|
Y(d, `No resize handles found for group id "${n}"`);
|
|
7984
7986
|
const l = d.map((f) => {
|
|
7985
|
-
const
|
|
7986
|
-
Y(
|
|
7987
|
-
const [
|
|
7988
|
-
if (
|
|
7987
|
+
const v = f.getAttribute(ne.resizeHandleId);
|
|
7988
|
+
Y(v, "Resize handle element has no handle id attribute");
|
|
7989
|
+
const [h, m] = Lf(n, v, c, s);
|
|
7990
|
+
if (h == null || m == null)
|
|
7989
7991
|
return () => {
|
|
7990
7992
|
};
|
|
7991
7993
|
const b = (x) => {
|
|
@@ -7993,7 +7995,7 @@ function Ff({
|
|
|
7993
7995
|
switch (x.key) {
|
|
7994
7996
|
case "Enter": {
|
|
7995
7997
|
x.preventDefault();
|
|
7996
|
-
const E = c.findIndex((w) => w.id ===
|
|
7998
|
+
const E = c.findIndex((w) => w.id === h);
|
|
7997
7999
|
if (E >= 0) {
|
|
7998
8000
|
const w = c[E];
|
|
7999
8001
|
Y(w, `No panel data found for index ${E}`);
|
|
@@ -8007,7 +8009,7 @@ function Ff({
|
|
|
8007
8009
|
delta: fe(C, M) ? S - M : M - C,
|
|
8008
8010
|
initialLayout: r,
|
|
8009
8011
|
panelConstraints: c.map((G) => G.constraints),
|
|
8010
|
-
pivotIndices: ja(n,
|
|
8012
|
+
pivotIndices: ja(n, v, s),
|
|
8011
8013
|
prevLayout: r,
|
|
8012
8014
|
trigger: "keyboard"
|
|
8013
8015
|
});
|
|
@@ -8127,10 +8129,10 @@ function tt(e, t, n) {
|
|
|
8127
8129
|
n[c] = r;
|
|
8128
8130
|
const {
|
|
8129
8131
|
onCollapse: f,
|
|
8130
|
-
onExpand:
|
|
8131
|
-
onResize:
|
|
8132
|
+
onExpand: v,
|
|
8133
|
+
onResize: h
|
|
8132
8134
|
} = a;
|
|
8133
|
-
|
|
8135
|
+
h && h(r, l), d && (f || v) && (v && (l == null || Ae(l, u)) && !Ae(r, u) && v(), f && (l == null || !Ae(l, u)) && Ae(r, u) && f());
|
|
8134
8136
|
}
|
|
8135
8137
|
});
|
|
8136
8138
|
}
|
|
@@ -8287,10 +8289,10 @@ function Ha({
|
|
|
8287
8289
|
tagName: d = "div",
|
|
8288
8290
|
...l
|
|
8289
8291
|
}) {
|
|
8290
|
-
const f = br(s),
|
|
8292
|
+
const f = br(s), v = le(null), [h, m] = ke(null), [b, x] = ke([]), E = Of(), w = le({}), C = le(/* @__PURE__ */ new Map()), M = le(0), N = le({
|
|
8291
8293
|
autoSaveId: e,
|
|
8292
8294
|
direction: r,
|
|
8293
|
-
dragState:
|
|
8295
|
+
dragState: h,
|
|
8294
8296
|
id: f,
|
|
8295
8297
|
keyboardResizeBy: i,
|
|
8296
8298
|
onLayout: a,
|
|
@@ -8325,7 +8327,7 @@ function Ha({
|
|
|
8325
8327
|
so(D, A) || (x(A), S.current.layout = A, _ && _(A), tt(L, A, w.current));
|
|
8326
8328
|
}
|
|
8327
8329
|
}), []), Ue(() => {
|
|
8328
|
-
N.current.autoSaveId = e, N.current.direction = r, N.current.dragState =
|
|
8330
|
+
N.current.autoSaveId = e, N.current.direction = r, N.current.dragState = h, N.current.id = f, N.current.onLayout = a, N.current.storage = c;
|
|
8329
8331
|
}), Ff({
|
|
8330
8332
|
committedValuesRef: N,
|
|
8331
8333
|
eagerValuesRef: S,
|
|
@@ -8333,7 +8335,7 @@ function Ha({
|
|
|
8333
8335
|
layout: b,
|
|
8334
8336
|
panelDataArray: S.current.panelDataArray,
|
|
8335
8337
|
setLayout: x,
|
|
8336
|
-
panelGroupElement:
|
|
8338
|
+
panelGroupElement: v.current
|
|
8337
8339
|
}), je(() => {
|
|
8338
8340
|
const {
|
|
8339
8341
|
panelDataArray: P
|
|
@@ -8414,12 +8416,12 @@ function Ha({
|
|
|
8414
8416
|
} = S.current, L = nt(D, P);
|
|
8415
8417
|
return Hf({
|
|
8416
8418
|
defaultSize: _,
|
|
8417
|
-
dragState:
|
|
8419
|
+
dragState: h,
|
|
8418
8420
|
layout: b,
|
|
8419
8421
|
panelData: D,
|
|
8420
8422
|
panelIndex: L
|
|
8421
8423
|
});
|
|
8422
|
-
}, [
|
|
8424
|
+
}, [h, b]), $ = ie((P) => {
|
|
8423
8425
|
const {
|
|
8424
8426
|
layout: _,
|
|
8425
8427
|
panelDataArray: D
|
|
@@ -8481,10 +8483,10 @@ function Ha({
|
|
|
8481
8483
|
}, []);
|
|
8482
8484
|
const W = ie((P) => {
|
|
8483
8485
|
let _ = !1;
|
|
8484
|
-
const D =
|
|
8486
|
+
const D = v.current;
|
|
8485
8487
|
return D && window.getComputedStyle(D, null).getPropertyValue("direction") === "rtl" && (_ = !0), function(A) {
|
|
8486
8488
|
A.preventDefault();
|
|
8487
|
-
const T =
|
|
8489
|
+
const T = v.current;
|
|
8488
8490
|
if (!T)
|
|
8489
8491
|
return () => null;
|
|
8490
8492
|
const {
|
|
@@ -8554,19 +8556,19 @@ function Ha({
|
|
|
8554
8556
|
} = N.current, {
|
|
8555
8557
|
layout: L
|
|
8556
8558
|
} = S.current;
|
|
8557
|
-
if (!
|
|
8559
|
+
if (!v.current)
|
|
8558
8560
|
return;
|
|
8559
|
-
const A = bn(P,
|
|
8561
|
+
const A = bn(P, v.current);
|
|
8560
8562
|
Y(A, `Drag handle element not found for id "${P}"`);
|
|
8561
8563
|
const T = Fa(D, _);
|
|
8562
|
-
|
|
8564
|
+
m({
|
|
8563
8565
|
dragHandleId: P,
|
|
8564
8566
|
dragHandleRect: A.getBoundingClientRect(),
|
|
8565
8567
|
initialCursorPosition: T,
|
|
8566
8568
|
initialLayout: L
|
|
8567
8569
|
});
|
|
8568
8570
|
}, []), I = ie(() => {
|
|
8569
|
-
|
|
8571
|
+
m(null);
|
|
8570
8572
|
}, []), y = ie((P) => {
|
|
8571
8573
|
const {
|
|
8572
8574
|
panelDataArray: _
|
|
@@ -8575,7 +8577,7 @@ function Ha({
|
|
|
8575
8577
|
}, [E]), j = Yn(() => ({
|
|
8576
8578
|
collapsePanel: R,
|
|
8577
8579
|
direction: r,
|
|
8578
|
-
dragState:
|
|
8580
|
+
dragState: h,
|
|
8579
8581
|
expandPanel: G,
|
|
8580
8582
|
getPanelSize: H,
|
|
8581
8583
|
getPanelStyle: V,
|
|
@@ -8589,8 +8591,8 @@ function Ha({
|
|
|
8589
8591
|
startDragging: k,
|
|
8590
8592
|
stopDragging: I,
|
|
8591
8593
|
unregisterPanel: y,
|
|
8592
|
-
panelGroupElement:
|
|
8593
|
-
}), [R,
|
|
8594
|
+
panelGroupElement: v.current
|
|
8595
|
+
}), [R, h, r, G, H, V, f, $, q, Z, B, W, F, k, I, y]), U = {
|
|
8594
8596
|
display: "flex",
|
|
8595
8597
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
8596
8598
|
height: "100%",
|
|
@@ -8604,7 +8606,7 @@ function Ha({
|
|
|
8604
8606
|
children: t,
|
|
8605
8607
|
className: n,
|
|
8606
8608
|
id: s,
|
|
8607
|
-
ref:
|
|
8609
|
+
ref: v,
|
|
8608
8610
|
style: {
|
|
8609
8611
|
...U,
|
|
8610
8612
|
...u
|
|
@@ -8687,10 +8689,10 @@ function Va({
|
|
|
8687
8689
|
onPointerUp: d,
|
|
8688
8690
|
style: l = {},
|
|
8689
8691
|
tabIndex: f = 0,
|
|
8690
|
-
tagName:
|
|
8691
|
-
...
|
|
8692
|
+
tagName: v = "div",
|
|
8693
|
+
...h
|
|
8692
8694
|
}) {
|
|
8693
|
-
var
|
|
8695
|
+
var m, b;
|
|
8694
8696
|
const x = le(null), E = le({
|
|
8695
8697
|
onClick: a,
|
|
8696
8698
|
onDragging: i,
|
|
@@ -8723,7 +8725,7 @@ function Va({
|
|
|
8723
8725
|
F(() => j);
|
|
8724
8726
|
}
|
|
8725
8727
|
}, [n, H, N]);
|
|
8726
|
-
const k = (
|
|
8728
|
+
const k = (m = r?.coarse) !== null && m !== void 0 ? m : 15, I = (b = r?.fine) !== null && b !== void 0 ? b : 5;
|
|
8727
8729
|
return je(() => {
|
|
8728
8730
|
if (n || W == null)
|
|
8729
8731
|
return;
|
|
@@ -8772,8 +8774,8 @@ function Va({
|
|
|
8772
8774
|
handleId: H,
|
|
8773
8775
|
resizeHandler: W,
|
|
8774
8776
|
panelGroupElement: G
|
|
8775
|
-
}), Me(
|
|
8776
|
-
...
|
|
8777
|
+
}), Me(v, {
|
|
8778
|
+
...h,
|
|
8777
8779
|
children: e,
|
|
8778
8780
|
className: t,
|
|
8779
8781
|
id: o,
|
|
@@ -8804,20 +8806,20 @@ function Va({
|
|
|
8804
8806
|
});
|
|
8805
8807
|
}
|
|
8806
8808
|
Va.displayName = "PanelResizeHandle";
|
|
8807
|
-
const Xf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" }) => /* @__PURE__ */
|
|
8809
|
+
const Xf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" }) => /* @__PURE__ */ g.jsxs(Sa, { variant: r, children: [
|
|
8808
8810
|
e,
|
|
8809
|
-
/* @__PURE__ */
|
|
8810
|
-
n && /* @__PURE__ */
|
|
8811
|
+
/* @__PURE__ */ g.jsx("div", { className: "flex-1" }),
|
|
8812
|
+
n && /* @__PURE__ */ g.jsx(
|
|
8811
8813
|
Le,
|
|
8812
8814
|
{
|
|
8813
8815
|
variant: "default",
|
|
8814
8816
|
onClick: n,
|
|
8815
8817
|
"aria-label": t ? "Expand panel" : "Collapse panel",
|
|
8816
8818
|
className: ee("h-8 px-3 [&_svg]:size-5", { "mr-5": r === "tabs" }),
|
|
8817
|
-
children: /* @__PURE__ */
|
|
8819
|
+
children: /* @__PURE__ */ g.jsx(rf, { className: ee("transition-transform", { "-rotate-180": !t }) })
|
|
8818
8820
|
}
|
|
8819
8821
|
)
|
|
8820
|
-
] }), qf = () => /* @__PURE__ */
|
|
8822
|
+
] }), qf = () => /* @__PURE__ */ g.jsx("div", { className: "relative", children: /* @__PURE__ */ g.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ g.jsx(Va, { className: "group relative", children: /* @__PURE__ */ g.jsx("div", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-background border border-border", children: /* @__PURE__ */ g.jsx(ff, { className: "h-4 w-4 text-muted-foreground" }) }) }) }) }), pp = ({
|
|
8821
8823
|
id: e,
|
|
8822
8824
|
header: t,
|
|
8823
8825
|
children: n,
|
|
@@ -8828,22 +8830,22 @@ const Xf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" })
|
|
|
8828
8830
|
onTabChange: i
|
|
8829
8831
|
}) => {
|
|
8830
8832
|
const [c, u] = ke(!1), d = le(null), l = ie(() => {
|
|
8831
|
-
const
|
|
8832
|
-
if (
|
|
8833
|
+
const m = d.current;
|
|
8834
|
+
if (m)
|
|
8833
8835
|
try {
|
|
8834
|
-
|
|
8836
|
+
m.isCollapsed() ? m.expand() : m.collapse();
|
|
8835
8837
|
} catch (b) {
|
|
8836
8838
|
console.warn("Failed to toggle panel:", b);
|
|
8837
8839
|
}
|
|
8838
|
-
}, []), f = ie(() => u(!0), []),
|
|
8839
|
-
const
|
|
8840
|
-
/* @__PURE__ */
|
|
8841
|
-
/* @__PURE__ */
|
|
8840
|
+
}, []), f = ie(() => u(!0), []), v = ie(() => u(!1), []), h = Yn(() => {
|
|
8841
|
+
const m = /* @__PURE__ */ g.jsxs(Ca, { className: "h-full", children: [
|
|
8842
|
+
/* @__PURE__ */ g.jsx(Xf, { header: t, isCollapsed: c, variant: s, onToggle: l }),
|
|
8843
|
+
/* @__PURE__ */ g.jsx(Ea, { children: n })
|
|
8842
8844
|
] });
|
|
8843
|
-
return s == "tabs" ? /* @__PURE__ */
|
|
8845
|
+
return s == "tabs" ? /* @__PURE__ */ g.jsx(Qn, { className: "h-full", defaultValue: a, onValueChange: i, children: m }) : m;
|
|
8844
8846
|
}, [s, c, t, n, a, l, i]);
|
|
8845
|
-
return /* @__PURE__ */
|
|
8846
|
-
/* @__PURE__ */
|
|
8847
|
+
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
8848
|
+
/* @__PURE__ */ g.jsx(
|
|
8847
8849
|
Pa,
|
|
8848
8850
|
{
|
|
8849
8851
|
id: e,
|
|
@@ -8851,15 +8853,15 @@ const Xf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" })
|
|
|
8851
8853
|
ref: d,
|
|
8852
8854
|
className: ee("min-h-[42px]", o),
|
|
8853
8855
|
onCollapse: f,
|
|
8854
|
-
onExpand:
|
|
8855
|
-
children:
|
|
8856
|
+
onExpand: v,
|
|
8857
|
+
children: h
|
|
8856
8858
|
}
|
|
8857
8859
|
),
|
|
8858
|
-
r && /* @__PURE__ */
|
|
8860
|
+
r && /* @__PURE__ */ g.jsx(qf, {})
|
|
8859
8861
|
] });
|
|
8860
8862
|
}, mp = ({ children: e, ...t }) => {
|
|
8861
8863
|
const [n, r] = ke(0);
|
|
8862
|
-
return /* @__PURE__ */
|
|
8864
|
+
return /* @__PURE__ */ g.jsx(
|
|
8863
8865
|
Wa,
|
|
8864
8866
|
{
|
|
8865
8867
|
onLayout: (o) => {
|
|
@@ -8875,29 +8877,29 @@ const Xf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" })
|
|
|
8875
8877
|
})
|
|
8876
8878
|
}
|
|
8877
8879
|
);
|
|
8878
|
-
}, Zf = ({ title: e, subtitle: t, actions: n, className: r, children: o, onClose: s }) => /* @__PURE__ */
|
|
8880
|
+
}, Zf = ({ title: e, subtitle: t, actions: n, className: r, children: o, onClose: s }) => /* @__PURE__ */ g.jsx(
|
|
8879
8881
|
"div",
|
|
8880
8882
|
{
|
|
8881
8883
|
className: ee("bg-muted-foreground/5 text-foreground border-l border-border overflow-hidden w-1/3", r),
|
|
8882
|
-
children: /* @__PURE__ */
|
|
8883
|
-
/* @__PURE__ */
|
|
8884
|
-
/* @__PURE__ */
|
|
8885
|
-
/* @__PURE__ */
|
|
8886
|
-
/* @__PURE__ */
|
|
8887
|
-
n?.map((a, i) => /* @__PURE__ */
|
|
8888
|
-
/* @__PURE__ */
|
|
8884
|
+
children: /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col size-full", children: [
|
|
8885
|
+
/* @__PURE__ */ g.jsx("div", { className: "relative shrink-0 w-full border-b border-border", children: /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col gap-0 p-4", children: [
|
|
8886
|
+
/* @__PURE__ */ g.jsxs("div", { className: "flex items-center justify-between w-full", children: [
|
|
8887
|
+
/* @__PURE__ */ g.jsx("div", { className: "text-lg font-semibold text-foreground tracking-[-0.25px] leading-tight", children: e }),
|
|
8888
|
+
/* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
8889
|
+
n?.map((a, i) => /* @__PURE__ */ g.jsx(Le, { onClick: a.onClick, variant: "ghost", size: "icon", "aria-label": a.label, children: a.icon }, i)),
|
|
8890
|
+
/* @__PURE__ */ g.jsx(Le, { onClick: s, variant: "ghost", size: "icon", "aria-label": "Close", children: /* @__PURE__ */ g.jsx(mf, { className: "w-4 h-4 text-muted-foreground" }) })
|
|
8889
8891
|
] })
|
|
8890
8892
|
] }),
|
|
8891
|
-
t && /* @__PURE__ */
|
|
8893
|
+
t && /* @__PURE__ */ g.jsx("div", { className: "text-md font-medium text-muted-foreground tracking-[-0.25px] leading-tight", children: t })
|
|
8892
8894
|
] }) }),
|
|
8893
|
-
/* @__PURE__ */
|
|
8895
|
+
/* @__PURE__ */ g.jsx("div", { className: "flex-1 overflow-auto", children: /* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-2 p-4", children: o }) })
|
|
8894
8896
|
] })
|
|
8895
8897
|
}
|
|
8896
8898
|
);
|
|
8897
8899
|
Zf.displayName = "SidePanel";
|
|
8898
|
-
const Jf = ({ children: e }) => /* @__PURE__ */
|
|
8899
|
-
/* @__PURE__ */
|
|
8900
|
-
/* @__PURE__ */
|
|
8900
|
+
const Jf = ({ children: e }) => /* @__PURE__ */ g.jsx("table", { className: "w-full", children: e }), Qf = ({ title: e, children: t }) => /* @__PURE__ */ g.jsxs("tr", { children: [
|
|
8901
|
+
/* @__PURE__ */ g.jsx("td", { className: "text-md min-w-[100px] font-medium", children: e }),
|
|
8902
|
+
/* @__PURE__ */ g.jsx("td", { className: "py-2 text-muted-foreground font-medium", children: t })
|
|
8901
8903
|
] });
|
|
8902
8904
|
Jf.displayName = "SidePanelDetail";
|
|
8903
8905
|
Qf.displayName = "SidePanelDetailItem";
|