munza-x-data-grid 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +2 -0
- package/dist/core/Grid.d.ts +1 -1
- package/dist/data-grid.cjs +12 -12
- package/dist/data-grid.js +1019 -1084
- package/package.json +1 -1
- package/dist/data/dummyData.d.ts +0 -10
package/dist/data-grid.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import * as e from "react";
|
|
2
3
|
import t, { createContext as n, createElement as r, forwardRef as i, useContext as a, useEffect as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
3
4
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -3310,89 +3311,24 @@ function Gn() {
|
|
|
3310
3311
|
return n;
|
|
3311
3312
|
}, K(e.options, "debugTable", `getFacetedUniqueValues_${t}`));
|
|
3312
3313
|
}
|
|
3313
|
-
function Kn(e) {
|
|
3314
|
-
return (e) => G(() => [
|
|
3315
|
-
e.getState().pagination,
|
|
3316
|
-
e.getPrePaginationRowModel(),
|
|
3317
|
-
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
|
|
3318
|
-
], (t, n) => {
|
|
3319
|
-
if (!n.rows.length) return n;
|
|
3320
|
-
let { pageSize: r, pageIndex: i } = t, { rows: a, flatRows: o, rowsById: s } = n, c = r * i, l = c + r;
|
|
3321
|
-
a = a.slice(c, l);
|
|
3322
|
-
let u;
|
|
3323
|
-
u = e.options.paginateExpandedRows ? {
|
|
3324
|
-
rows: a,
|
|
3325
|
-
flatRows: o,
|
|
3326
|
-
rowsById: s
|
|
3327
|
-
} : Un({
|
|
3328
|
-
rows: a,
|
|
3329
|
-
flatRows: o,
|
|
3330
|
-
rowsById: s
|
|
3331
|
-
}), u.flatRows = [];
|
|
3332
|
-
let d = (e) => {
|
|
3333
|
-
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
|
|
3334
|
-
};
|
|
3335
|
-
return u.rows.forEach(d), u;
|
|
3336
|
-
}, K(e.options, "debugTable", "getPaginationRowModel"));
|
|
3337
|
-
}
|
|
3338
|
-
function qn() {
|
|
3339
|
-
return (e) => G(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
|
|
3340
|
-
if (!n.rows.length || !(t != null && t.length)) return n;
|
|
3341
|
-
let r = e.getState().sorting, i = [], a = r.filter((t) => e.getColumn(t.id)?.getCanSort()), o = {};
|
|
3342
|
-
a.forEach((t) => {
|
|
3343
|
-
let n = e.getColumn(t.id);
|
|
3344
|
-
n && (o[t.id] = {
|
|
3345
|
-
sortUndefined: n.columnDef.sortUndefined,
|
|
3346
|
-
invertSorting: n.columnDef.invertSorting,
|
|
3347
|
-
sortingFn: n.getSortingFn()
|
|
3348
|
-
});
|
|
3349
|
-
});
|
|
3350
|
-
let s = (e) => {
|
|
3351
|
-
let t = e.map((e) => ({ ...e }));
|
|
3352
|
-
return t.sort((e, t) => {
|
|
3353
|
-
for (let n = 0; n < a.length; n += 1) {
|
|
3354
|
-
let r = a[n], i = o[r.id], s = i.sortUndefined, c = r?.desc ?? !1, l = 0;
|
|
3355
|
-
if (s) {
|
|
3356
|
-
let n = e.getValue(r.id), i = t.getValue(r.id), a = n === void 0, o = i === void 0;
|
|
3357
|
-
if (a || o) {
|
|
3358
|
-
if (s === "first") return a ? -1 : 1;
|
|
3359
|
-
if (s === "last") return a ? 1 : -1;
|
|
3360
|
-
l = a && o ? 0 : a ? s : -s;
|
|
3361
|
-
}
|
|
3362
|
-
}
|
|
3363
|
-
if (l === 0 && (l = i.sortingFn(e, t, r.id)), l !== 0) return c && (l *= -1), i.invertSorting && (l *= -1), l;
|
|
3364
|
-
}
|
|
3365
|
-
return e.index - t.index;
|
|
3366
|
-
}), t.forEach((e) => {
|
|
3367
|
-
var t;
|
|
3368
|
-
i.push(e), (t = e.subRows) != null && t.length && (e.subRows = s(e.subRows));
|
|
3369
|
-
}), t;
|
|
3370
|
-
};
|
|
3371
|
-
return {
|
|
3372
|
-
rows: s(n.rows),
|
|
3373
|
-
flatRows: i,
|
|
3374
|
-
rowsById: n.rowsById
|
|
3375
|
-
};
|
|
3376
|
-
}, K(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
3377
|
-
}
|
|
3378
3314
|
//#endregion
|
|
3379
3315
|
//#region node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
3380
|
-
function
|
|
3381
|
-
return t ?
|
|
3316
|
+
function Kn(t, n) {
|
|
3317
|
+
return t ? qn(t) ? /* @__PURE__ */ e.createElement(t, n) : t : null;
|
|
3382
3318
|
}
|
|
3383
|
-
function
|
|
3384
|
-
return
|
|
3319
|
+
function qn(e) {
|
|
3320
|
+
return Jn(e) || typeof e == "function" || Yn(e);
|
|
3385
3321
|
}
|
|
3386
|
-
function
|
|
3322
|
+
function Jn(e) {
|
|
3387
3323
|
return typeof e == "function" && (() => {
|
|
3388
3324
|
let t = Object.getPrototypeOf(e);
|
|
3389
3325
|
return t.prototype && t.prototype.isReactComponent;
|
|
3390
3326
|
})();
|
|
3391
3327
|
}
|
|
3392
|
-
function
|
|
3328
|
+
function Yn(e) {
|
|
3393
3329
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
3394
3330
|
}
|
|
3395
|
-
function
|
|
3331
|
+
function Xn(t) {
|
|
3396
3332
|
let n = {
|
|
3397
3333
|
state: {},
|
|
3398
3334
|
onStateChange: () => {},
|
|
@@ -3413,7 +3349,7 @@ function Qn(t) {
|
|
|
3413
3349
|
}
|
|
3414
3350
|
//#endregion
|
|
3415
3351
|
//#region src/hooks/useSyncScroll.ts
|
|
3416
|
-
var
|
|
3352
|
+
var Zn = ({ refs: e, axis: t = "both" }) => {
|
|
3417
3353
|
let n = l(null), r = l(!1), i = l(/* @__PURE__ */ new Map());
|
|
3418
3354
|
o(() => {
|
|
3419
3355
|
let a = e.map((e) => e.current).filter((e) => e !== null);
|
|
@@ -3435,8 +3371,8 @@ var $n = ({ refs: e, axis: t = "both" }) => {
|
|
|
3435
3371
|
i.current.clear(), n.current !== null && (cancelAnimationFrame(n.current), n.current = null);
|
|
3436
3372
|
};
|
|
3437
3373
|
}, [e, t]);
|
|
3438
|
-
},
|
|
3439
|
-
let [_, v] = t.useState({}), [y, b] = t.useState({}), x =
|
|
3374
|
+
}, Qn = n(void 0), $n = ({ children: e, payload: n, columns: r, state: i = {}, onColumnFiltersChange: a, onPaginationChange: o, onSortingChange: s, setGlobalFilter: u, manualPagination: d = !1, isError: p, isLoading: m, getRowCanExpand: h, renderSubComponent: g }) => {
|
|
3375
|
+
let [_, v] = t.useState({}), [y, b] = t.useState({}), x = Xn({
|
|
3440
3376
|
data: n?.data ?? [],
|
|
3441
3377
|
columns: r,
|
|
3442
3378
|
state: {
|
|
@@ -3448,8 +3384,6 @@ var $n = ({ refs: e, axis: t = "both" }) => {
|
|
|
3448
3384
|
getRowCanExpand: h,
|
|
3449
3385
|
onColumnFiltersChange: a,
|
|
3450
3386
|
getCoreRowModel: Vn(),
|
|
3451
|
-
getPaginationRowModel: Kn(),
|
|
3452
|
-
getSortedRowModel: qn(),
|
|
3453
3387
|
getFacetedUniqueValues: Gn(),
|
|
3454
3388
|
getFacetedMinMaxValues: Wn(),
|
|
3455
3389
|
getExpandedRowModel: Hn(),
|
|
@@ -3469,7 +3403,7 @@ var $n = ({ refs: e, axis: t = "both" }) => {
|
|
|
3469
3403
|
maxSize: 180
|
|
3470
3404
|
}
|
|
3471
3405
|
}), S = l(null), C = l(null);
|
|
3472
|
-
|
|
3406
|
+
Zn({
|
|
3473
3407
|
refs: [S, C],
|
|
3474
3408
|
axis: "x"
|
|
3475
3409
|
});
|
|
@@ -3488,7 +3422,7 @@ var $n = ({ refs: e, axis: t = "both" }) => {
|
|
|
3488
3422
|
u,
|
|
3489
3423
|
g
|
|
3490
3424
|
]);
|
|
3491
|
-
return /* @__PURE__ */ f(
|
|
3425
|
+
return /* @__PURE__ */ f(Qn.Provider, {
|
|
3492
3426
|
value: {
|
|
3493
3427
|
...w,
|
|
3494
3428
|
table: x
|
|
@@ -3498,25 +3432,25 @@ var $n = ({ refs: e, axis: t = "both" }) => {
|
|
|
3498
3432
|
};
|
|
3499
3433
|
//#endregion
|
|
3500
3434
|
//#region src/hooks/useGrid.ts
|
|
3501
|
-
function
|
|
3502
|
-
let e = a(
|
|
3435
|
+
function er() {
|
|
3436
|
+
let e = a(Qn);
|
|
3503
3437
|
if (!e) throw Error("useGrid must be used within a GridContextProvider");
|
|
3504
3438
|
return e;
|
|
3505
3439
|
}
|
|
3506
3440
|
//#endregion
|
|
3507
3441
|
//#region node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
3508
|
-
var
|
|
3509
|
-
if (t?.variants == null) return
|
|
3442
|
+
var tr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, nr = _, rr = (e, t) => (n) => {
|
|
3443
|
+
if (t?.variants == null) return nr(e, n?.class, n?.className);
|
|
3510
3444
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
3511
3445
|
let t = n?.[e], a = i?.[e];
|
|
3512
3446
|
if (t === null) return null;
|
|
3513
|
-
let o =
|
|
3447
|
+
let o = tr(t) || tr(a);
|
|
3514
3448
|
return r[e][o];
|
|
3515
3449
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
3516
3450
|
let [n, r] = t;
|
|
3517
3451
|
return r === void 0 || (e[n] = r), e;
|
|
3518
3452
|
}, {});
|
|
3519
|
-
return
|
|
3453
|
+
return nr(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
3520
3454
|
let { class: n, className: r, ...a } = t;
|
|
3521
3455
|
return Object.entries(a).every((e) => {
|
|
3522
3456
|
let [t, n] = e;
|
|
@@ -3536,33 +3470,33 @@ var rr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ir = _, ar =
|
|
|
3536
3470
|
};
|
|
3537
3471
|
//#endregion
|
|
3538
3472
|
//#region node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3539
|
-
function
|
|
3473
|
+
function ir(e, t) {
|
|
3540
3474
|
if (typeof e == "function") return e(t);
|
|
3541
3475
|
e != null && (e.current = t);
|
|
3542
3476
|
}
|
|
3543
|
-
function
|
|
3477
|
+
function ar(...e) {
|
|
3544
3478
|
return (t) => {
|
|
3545
3479
|
let n = !1, r = e.map((e) => {
|
|
3546
|
-
let r =
|
|
3480
|
+
let r = ir(e, t);
|
|
3547
3481
|
return !n && typeof r == "function" && (n = !0), r;
|
|
3548
3482
|
});
|
|
3549
3483
|
if (n) return () => {
|
|
3550
3484
|
for (let t = 0; t < r.length; t++) {
|
|
3551
3485
|
let n = r[t];
|
|
3552
|
-
typeof n == "function" ? n() :
|
|
3486
|
+
typeof n == "function" ? n() : ir(e[t], null);
|
|
3553
3487
|
}
|
|
3554
3488
|
};
|
|
3555
3489
|
};
|
|
3556
3490
|
}
|
|
3557
3491
|
function J(...t) {
|
|
3558
|
-
return e.useCallback(
|
|
3492
|
+
return e.useCallback(ar(...t), t);
|
|
3559
3493
|
}
|
|
3560
3494
|
//#endregion
|
|
3561
3495
|
//#region node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3562
3496
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3563
|
-
function
|
|
3564
|
-
let n = /* @__PURE__ */
|
|
3565
|
-
let { children: i, ...a } = t, o = e.Children.toArray(i), s = o.find(
|
|
3497
|
+
function or(t) {
|
|
3498
|
+
let n = /* @__PURE__ */ cr(t), r = e.forwardRef((t, r) => {
|
|
3499
|
+
let { children: i, ...a } = t, o = e.Children.toArray(i), s = o.find(ur);
|
|
3566
3500
|
if (s) {
|
|
3567
3501
|
let t = s.props.children, i = o.map((n) => n === s ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
|
|
3568
3502
|
return /* @__PURE__ */ f(n, {
|
|
@@ -3579,24 +3513,24 @@ function cr(t) {
|
|
|
3579
3513
|
});
|
|
3580
3514
|
return r.displayName = `${t}.Slot`, r;
|
|
3581
3515
|
}
|
|
3582
|
-
var
|
|
3516
|
+
var sr = /* @__PURE__ */ or("Slot");
|
|
3583
3517
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3584
|
-
function
|
|
3518
|
+
function cr(t) {
|
|
3585
3519
|
let n = e.forwardRef((t, n) => {
|
|
3586
3520
|
let { children: r, ...i } = t;
|
|
3587
3521
|
if (e.isValidElement(r)) {
|
|
3588
|
-
let t =
|
|
3589
|
-
return r.type !== e.Fragment && (a.ref = n ?
|
|
3522
|
+
let t = fr(r), a = dr(i, r.props);
|
|
3523
|
+
return r.type !== e.Fragment && (a.ref = n ? ar(n, t) : t), e.cloneElement(r, a);
|
|
3590
3524
|
}
|
|
3591
3525
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
3592
3526
|
});
|
|
3593
3527
|
return n.displayName = `${t}.SlotClone`, n;
|
|
3594
3528
|
}
|
|
3595
|
-
var
|
|
3596
|
-
function
|
|
3597
|
-
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
3529
|
+
var lr = Symbol("radix.slottable");
|
|
3530
|
+
function ur(t) {
|
|
3531
|
+
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === lr;
|
|
3598
3532
|
}
|
|
3599
|
-
function
|
|
3533
|
+
function dr(e, t) {
|
|
3600
3534
|
let n = { ...t };
|
|
3601
3535
|
for (let r in t) {
|
|
3602
3536
|
let i = e[r], a = t[r];
|
|
@@ -3613,7 +3547,7 @@ function pr(e, t) {
|
|
|
3613
3547
|
...n
|
|
3614
3548
|
};
|
|
3615
3549
|
}
|
|
3616
|
-
function
|
|
3550
|
+
function fr(e) {
|
|
3617
3551
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3618
3552
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3619
3553
|
}
|
|
@@ -3638,7 +3572,7 @@ var Y = [
|
|
|
3638
3572
|
"svg",
|
|
3639
3573
|
"ul"
|
|
3640
3574
|
].reduce((t, n) => {
|
|
3641
|
-
let r = /* @__PURE__ */
|
|
3575
|
+
let r = /* @__PURE__ */ or(`Primitive.${n}`), i = e.forwardRef((e, t) => {
|
|
3642
3576
|
let { asChild: i, ...a } = e, o = i ? r : n;
|
|
3643
3577
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(o, {
|
|
3644
3578
|
...a,
|
|
@@ -3650,12 +3584,12 @@ var Y = [
|
|
|
3650
3584
|
[n]: i
|
|
3651
3585
|
};
|
|
3652
3586
|
}, {});
|
|
3653
|
-
function
|
|
3587
|
+
function pr(e, t) {
|
|
3654
3588
|
e && m.flushSync(() => e.dispatchEvent(t));
|
|
3655
3589
|
}
|
|
3656
3590
|
//#endregion
|
|
3657
3591
|
//#region node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
3658
|
-
function
|
|
3592
|
+
function mr(t, n = []) {
|
|
3659
3593
|
let r = [];
|
|
3660
3594
|
function i(n, i) {
|
|
3661
3595
|
let a = e.createContext(i), o = r.length;
|
|
@@ -3686,9 +3620,9 @@ function gr(t, n = []) {
|
|
|
3686
3620
|
} }), [r, i]);
|
|
3687
3621
|
};
|
|
3688
3622
|
};
|
|
3689
|
-
return a.scopeName = t, [i,
|
|
3623
|
+
return a.scopeName = t, [i, hr(a, ...n)];
|
|
3690
3624
|
}
|
|
3691
|
-
function
|
|
3625
|
+
function hr(...t) {
|
|
3692
3626
|
let n = t[0];
|
|
3693
3627
|
if (t.length === 1) return n;
|
|
3694
3628
|
let r = () => {
|
|
@@ -3711,8 +3645,8 @@ function _r(...t) {
|
|
|
3711
3645
|
}
|
|
3712
3646
|
//#endregion
|
|
3713
3647
|
//#region node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@1_pv7yzoxya62w3eeztgexm5mdoe/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
3714
|
-
function
|
|
3715
|
-
let n = e + "CollectionProvider", [r, i] =
|
|
3648
|
+
function gr(e) {
|
|
3649
|
+
let n = e + "CollectionProvider", [r, i] = mr(n), [a, o] = r(n, {
|
|
3716
3650
|
collectionRef: { current: null },
|
|
3717
3651
|
itemMap: /* @__PURE__ */ new Map()
|
|
3718
3652
|
}), s = (e) => {
|
|
@@ -3725,7 +3659,7 @@ function vr(e) {
|
|
|
3725
3659
|
});
|
|
3726
3660
|
};
|
|
3727
3661
|
s.displayName = n;
|
|
3728
|
-
let c = e + "CollectionSlot", l = /* @__PURE__ */
|
|
3662
|
+
let c = e + "CollectionSlot", l = /* @__PURE__ */ or(c), u = t.forwardRef((e, t) => {
|
|
3729
3663
|
let { scope: n, children: r } = e;
|
|
3730
3664
|
return /* @__PURE__ */ f(l, {
|
|
3731
3665
|
ref: J(t, o(c, n).collectionRef),
|
|
@@ -3733,7 +3667,7 @@ function vr(e) {
|
|
|
3733
3667
|
});
|
|
3734
3668
|
});
|
|
3735
3669
|
u.displayName = c;
|
|
3736
|
-
let d = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */
|
|
3670
|
+
let d = e + "CollectionItemSlot", p = "data-radix-collection-item", m = /* @__PURE__ */ or(d), h = t.forwardRef((e, n) => {
|
|
3737
3671
|
let { scope: r, children: i, ...a } = e, s = t.useRef(null), c = J(n, s), l = o(d, r);
|
|
3738
3672
|
return t.useEffect(() => (l.itemMap.set(s, {
|
|
3739
3673
|
ref: s,
|
|
@@ -3772,9 +3706,9 @@ function X(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
3772
3706
|
}
|
|
3773
3707
|
//#endregion
|
|
3774
3708
|
//#region node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
3775
|
-
var
|
|
3776
|
-
function
|
|
3777
|
-
let [a, o, s] =
|
|
3709
|
+
var _r = globalThis?.document ? e.useLayoutEffect : () => {}, vr = e.useInsertionEffect || _r;
|
|
3710
|
+
function yr({ prop: t, defaultProp: n, onChange: r = () => {}, caller: i }) {
|
|
3711
|
+
let [a, o, s] = br({
|
|
3778
3712
|
defaultProp: n,
|
|
3779
3713
|
onChange: r
|
|
3780
3714
|
}), c = t !== void 0, l = c ? t : a;
|
|
@@ -3791,7 +3725,7 @@ function xr({ prop: t, defaultProp: n, onChange: r = () => {}, caller: i }) {
|
|
|
3791
3725
|
}
|
|
3792
3726
|
return [l, e.useCallback((e) => {
|
|
3793
3727
|
if (c) {
|
|
3794
|
-
let n =
|
|
3728
|
+
let n = xr(e) ? e(t) : e;
|
|
3795
3729
|
n !== t && s.current?.(n);
|
|
3796
3730
|
} else o(e);
|
|
3797
3731
|
}, [
|
|
@@ -3801,9 +3735,9 @@ function xr({ prop: t, defaultProp: n, onChange: r = () => {}, caller: i }) {
|
|
|
3801
3735
|
s
|
|
3802
3736
|
])];
|
|
3803
3737
|
}
|
|
3804
|
-
function
|
|
3738
|
+
function br({ defaultProp: t, onChange: n }) {
|
|
3805
3739
|
let [r, i] = e.useState(t), a = e.useRef(r), o = e.useRef(n);
|
|
3806
|
-
return
|
|
3740
|
+
return vr(() => {
|
|
3807
3741
|
o.current = n;
|
|
3808
3742
|
}, [n]), e.useEffect(() => {
|
|
3809
3743
|
a.current !== r && (o.current?.(r), a.current = r);
|
|
@@ -3813,21 +3747,21 @@ function Sr({ defaultProp: t, onChange: n }) {
|
|
|
3813
3747
|
o
|
|
3814
3748
|
];
|
|
3815
3749
|
}
|
|
3816
|
-
function
|
|
3750
|
+
function xr(e) {
|
|
3817
3751
|
return typeof e == "function";
|
|
3818
3752
|
}
|
|
3819
3753
|
//#endregion
|
|
3820
3754
|
//#region node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@19._nomsf7ht277dolkxitkoeoywzm/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
3821
|
-
function
|
|
3755
|
+
function Sr(t, n) {
|
|
3822
3756
|
return e.useReducer((e, t) => n[e][t] ?? e, t);
|
|
3823
3757
|
}
|
|
3824
|
-
var
|
|
3825
|
-
let { present: n, children: r } = t, i =
|
|
3758
|
+
var Cr = (t) => {
|
|
3759
|
+
let { present: n, children: r } = t, i = wr(n), a = typeof r == "function" ? r({ present: i.isPresent }) : e.Children.only(r), o = J(i.ref, Er(a));
|
|
3826
3760
|
return typeof r == "function" || i.isPresent ? e.cloneElement(a, { ref: o }) : null;
|
|
3827
3761
|
};
|
|
3828
|
-
|
|
3829
|
-
function
|
|
3830
|
-
let [n, r] = e.useState(), i = e.useRef(null), a = e.useRef(t), o = e.useRef("none"), [s, c] =
|
|
3762
|
+
Cr.displayName = "Presence";
|
|
3763
|
+
function wr(t) {
|
|
3764
|
+
let [n, r] = e.useState(), i = e.useRef(null), a = e.useRef(t), o = e.useRef("none"), [s, c] = Sr(t ? "mounted" : "unmounted", {
|
|
3831
3765
|
mounted: {
|
|
3832
3766
|
UNMOUNT: "unmounted",
|
|
3833
3767
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -3839,18 +3773,18 @@ function Er(t) {
|
|
|
3839
3773
|
unmounted: { MOUNT: "mounted" }
|
|
3840
3774
|
});
|
|
3841
3775
|
return e.useEffect(() => {
|
|
3842
|
-
let e =
|
|
3776
|
+
let e = Tr(i.current);
|
|
3843
3777
|
o.current = s === "mounted" ? e : "none";
|
|
3844
|
-
}, [s]),
|
|
3778
|
+
}, [s]), _r(() => {
|
|
3845
3779
|
let e = i.current, n = a.current;
|
|
3846
3780
|
if (n !== t) {
|
|
3847
|
-
let r = o.current, i =
|
|
3781
|
+
let r = o.current, i = Tr(e);
|
|
3848
3782
|
t ? c("MOUNT") : i === "none" || e?.display === "none" ? c("UNMOUNT") : c(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = t;
|
|
3849
3783
|
}
|
|
3850
|
-
}, [t, c]),
|
|
3784
|
+
}, [t, c]), _r(() => {
|
|
3851
3785
|
if (n) {
|
|
3852
3786
|
let e, t = n.ownerDocument.defaultView ?? window, r = (r) => {
|
|
3853
|
-
let o =
|
|
3787
|
+
let o = Tr(i.current).includes(CSS.escape(r.animationName));
|
|
3854
3788
|
if (r.target === n && o && (c("ANIMATION_END"), !a.current)) {
|
|
3855
3789
|
let r = n.style.animationFillMode;
|
|
3856
3790
|
n.style.animationFillMode = "forwards", e = t.setTimeout(() => {
|
|
@@ -3858,7 +3792,7 @@ function Er(t) {
|
|
|
3858
3792
|
});
|
|
3859
3793
|
}
|
|
3860
3794
|
}, s = (e) => {
|
|
3861
|
-
e.target === n && (o.current =
|
|
3795
|
+
e.target === n && (o.current = Tr(i.current));
|
|
3862
3796
|
};
|
|
3863
3797
|
return n.addEventListener("animationstart", s), n.addEventListener("animationcancel", r), n.addEventListener("animationend", r), () => {
|
|
3864
3798
|
t.clearTimeout(e), n.removeEventListener("animationstart", s), n.removeEventListener("animationcancel", r), n.removeEventListener("animationend", r);
|
|
@@ -3871,53 +3805,53 @@ function Er(t) {
|
|
|
3871
3805
|
}, [])
|
|
3872
3806
|
};
|
|
3873
3807
|
}
|
|
3874
|
-
function
|
|
3808
|
+
function Tr(e) {
|
|
3875
3809
|
return e?.animationName || "none";
|
|
3876
3810
|
}
|
|
3877
|
-
function
|
|
3811
|
+
function Er(e) {
|
|
3878
3812
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3879
3813
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3880
3814
|
}
|
|
3881
3815
|
//#endregion
|
|
3882
3816
|
//#region node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
3883
|
-
var
|
|
3884
|
-
function
|
|
3885
|
-
let [n, r] = e.useState(
|
|
3886
|
-
return
|
|
3887
|
-
t || r((e) => e ?? String(
|
|
3817
|
+
var Dr = e.useId || (() => void 0), Or = 0;
|
|
3818
|
+
function kr(t) {
|
|
3819
|
+
let [n, r] = e.useState(Dr());
|
|
3820
|
+
return _r(() => {
|
|
3821
|
+
t || r((e) => e ?? String(Or++));
|
|
3888
3822
|
}, [t]), t || (n ? `radix-${n}` : "");
|
|
3889
3823
|
}
|
|
3890
3824
|
//#endregion
|
|
3891
3825
|
//#region node_modules/.pnpm/@radix-ui+react-collapsible@1.1.12_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_rsi34mrx73776x4lbaj2d2judq/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
3892
|
-
var
|
|
3893
|
-
let { __scopeCollapsible: r, open: i, defaultOpen: a, disabled: o, onOpenChange: s, ...c } = t, [l, u] =
|
|
3826
|
+
var Ar = "Collapsible", [jr, Mr] = mr(Ar), [Nr, Pr] = jr(Ar), Fr = e.forwardRef((t, n) => {
|
|
3827
|
+
let { __scopeCollapsible: r, open: i, defaultOpen: a, disabled: o, onOpenChange: s, ...c } = t, [l, u] = yr({
|
|
3894
3828
|
prop: i,
|
|
3895
3829
|
defaultProp: a ?? !1,
|
|
3896
3830
|
onChange: s,
|
|
3897
|
-
caller:
|
|
3831
|
+
caller: Ar
|
|
3898
3832
|
});
|
|
3899
|
-
return /* @__PURE__ */ f(
|
|
3833
|
+
return /* @__PURE__ */ f(Nr, {
|
|
3900
3834
|
scope: r,
|
|
3901
3835
|
disabled: o,
|
|
3902
|
-
contentId:
|
|
3836
|
+
contentId: kr(),
|
|
3903
3837
|
open: l,
|
|
3904
3838
|
onOpenToggle: e.useCallback(() => u((e) => !e), [u]),
|
|
3905
3839
|
children: /* @__PURE__ */ f(Y.div, {
|
|
3906
|
-
"data-state":
|
|
3840
|
+
"data-state": Vr(l),
|
|
3907
3841
|
"data-disabled": o ? "" : void 0,
|
|
3908
3842
|
...c,
|
|
3909
3843
|
ref: n
|
|
3910
3844
|
})
|
|
3911
3845
|
});
|
|
3912
3846
|
});
|
|
3913
|
-
|
|
3914
|
-
var
|
|
3915
|
-
let { __scopeCollapsible: n, ...r } = e, i = Ir
|
|
3847
|
+
Fr.displayName = Ar;
|
|
3848
|
+
var Ir = "CollapsibleTrigger", Lr = e.forwardRef((e, t) => {
|
|
3849
|
+
let { __scopeCollapsible: n, ...r } = e, i = Pr(Ir, n);
|
|
3916
3850
|
return /* @__PURE__ */ f(Y.button, {
|
|
3917
3851
|
type: "button",
|
|
3918
3852
|
"aria-controls": i.contentId,
|
|
3919
3853
|
"aria-expanded": i.open || !1,
|
|
3920
|
-
"data-state":
|
|
3854
|
+
"data-state": Vr(i.open),
|
|
3921
3855
|
"data-disabled": i.disabled ? "" : void 0,
|
|
3922
3856
|
disabled: i.disabled,
|
|
3923
3857
|
...r,
|
|
@@ -3925,25 +3859,25 @@ var Rr = "CollapsibleTrigger", zr = e.forwardRef((e, t) => {
|
|
|
3925
3859
|
onClick: X(e.onClick, i.onOpenToggle)
|
|
3926
3860
|
});
|
|
3927
3861
|
});
|
|
3928
|
-
|
|
3929
|
-
var
|
|
3930
|
-
let { forceMount: n, ...r } = e, i =
|
|
3931
|
-
return /* @__PURE__ */ f(
|
|
3862
|
+
Lr.displayName = Ir;
|
|
3863
|
+
var Rr = "CollapsibleContent", zr = e.forwardRef((e, t) => {
|
|
3864
|
+
let { forceMount: n, ...r } = e, i = Pr(Rr, e.__scopeCollapsible);
|
|
3865
|
+
return /* @__PURE__ */ f(Cr, {
|
|
3932
3866
|
present: n || i.open,
|
|
3933
|
-
children: ({ present: e }) => /* @__PURE__ */ f(
|
|
3867
|
+
children: ({ present: e }) => /* @__PURE__ */ f(Br, {
|
|
3934
3868
|
...r,
|
|
3935
3869
|
ref: t,
|
|
3936
3870
|
present: e
|
|
3937
3871
|
})
|
|
3938
3872
|
});
|
|
3939
3873
|
});
|
|
3940
|
-
|
|
3941
|
-
var
|
|
3942
|
-
let { __scopeCollapsible: r, present: i, children: a, ...o } = t, s =
|
|
3874
|
+
zr.displayName = Rr;
|
|
3875
|
+
var Br = e.forwardRef((t, n) => {
|
|
3876
|
+
let { __scopeCollapsible: r, present: i, children: a, ...o } = t, s = Pr(Rr, r), [c, l] = e.useState(i), u = e.useRef(null), d = J(n, u), p = e.useRef(0), m = p.current, h = e.useRef(0), g = h.current, _ = s.open || c, v = e.useRef(_), y = e.useRef(void 0);
|
|
3943
3877
|
return e.useEffect(() => {
|
|
3944
3878
|
let e = requestAnimationFrame(() => v.current = !1);
|
|
3945
3879
|
return () => cancelAnimationFrame(e);
|
|
3946
|
-
}, []),
|
|
3880
|
+
}, []), _r(() => {
|
|
3947
3881
|
let e = u.current;
|
|
3948
3882
|
if (e) {
|
|
3949
3883
|
y.current = y.current || {
|
|
@@ -3954,7 +3888,7 @@ var Hr = e.forwardRef((t, n) => {
|
|
|
3954
3888
|
p.current = t.height, h.current = t.width, v.current || (e.style.transitionDuration = y.current.transitionDuration, e.style.animationName = y.current.animationName), l(i);
|
|
3955
3889
|
}
|
|
3956
3890
|
}, [s.open, i]), /* @__PURE__ */ f(Y.div, {
|
|
3957
|
-
"data-state":
|
|
3891
|
+
"data-state": Vr(s.open),
|
|
3958
3892
|
"data-disabled": s.disabled ? "" : void 0,
|
|
3959
3893
|
id: s.contentId,
|
|
3960
3894
|
hidden: !_,
|
|
@@ -3968,17 +3902,17 @@ var Hr = e.forwardRef((t, n) => {
|
|
|
3968
3902
|
children: _ && a
|
|
3969
3903
|
});
|
|
3970
3904
|
});
|
|
3971
|
-
function
|
|
3905
|
+
function Vr(e) {
|
|
3972
3906
|
return e ? "open" : "closed";
|
|
3973
3907
|
}
|
|
3974
|
-
var
|
|
3975
|
-
function
|
|
3976
|
-
let n = e.useContext(
|
|
3908
|
+
var Hr = Fr, Ur = e.createContext(void 0);
|
|
3909
|
+
function Wr(t) {
|
|
3910
|
+
let n = e.useContext(Ur);
|
|
3977
3911
|
return t || n || "ltr";
|
|
3978
3912
|
}
|
|
3979
3913
|
//#endregion
|
|
3980
3914
|
//#region node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
3981
|
-
function
|
|
3915
|
+
function Gr(t) {
|
|
3982
3916
|
let n = e.useRef(t);
|
|
3983
3917
|
return e.useEffect(() => {
|
|
3984
3918
|
n.current = t;
|
|
@@ -3986,8 +3920,8 @@ function qr(t) {
|
|
|
3986
3920
|
}
|
|
3987
3921
|
//#endregion
|
|
3988
3922
|
//#region node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
3989
|
-
function
|
|
3990
|
-
let r =
|
|
3923
|
+
function Kr(t, n = globalThis?.document) {
|
|
3924
|
+
let r = Gr(t);
|
|
3991
3925
|
e.useEffect(() => {
|
|
3992
3926
|
let e = (e) => {
|
|
3993
3927
|
e.key === "Escape" && r(e);
|
|
@@ -3997,23 +3931,23 @@ function Jr(t, n = globalThis?.document) {
|
|
|
3997
3931
|
}
|
|
3998
3932
|
//#endregion
|
|
3999
3933
|
//#region node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.14__@types_bxeerndjtgcsfo6yovia6adtxm/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
4000
|
-
var
|
|
3934
|
+
var qr = "DismissableLayer", Jr = "dismissableLayer.update", Yr = "dismissableLayer.pointerDownOutside", Xr = "dismissableLayer.focusOutside", Zr, Qr = e.createContext({
|
|
4001
3935
|
layers: /* @__PURE__ */ new Set(),
|
|
4002
3936
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4003
3937
|
branches: /* @__PURE__ */ new Set()
|
|
4004
|
-
}),
|
|
4005
|
-
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = t, u = e.useContext(
|
|
3938
|
+
}), $r = e.forwardRef((t, n) => {
|
|
3939
|
+
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: o, onInteractOutside: s, onDismiss: c, ...l } = t, u = e.useContext(Qr), [d, p] = e.useState(null), m = d?.ownerDocument ?? globalThis?.document, [, h] = e.useState({}), g = J(n, (e) => p(e)), _ = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = _.indexOf(v), b = d ? _.indexOf(d) : -1, x = u.layersWithOutsidePointerEventsDisabled.size > 0, S = b >= y, C = ni((e) => {
|
|
4006
3940
|
let t = e.target, n = [...u.branches].some((e) => e.contains(t));
|
|
4007
3941
|
!S || n || (a?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
4008
|
-
}, m), w =
|
|
3942
|
+
}, m), w = ri((e) => {
|
|
4009
3943
|
let t = e.target;
|
|
4010
3944
|
[...u.branches].some((e) => e.contains(t)) || (o?.(e), s?.(e), e.defaultPrevented || c?.());
|
|
4011
3945
|
}, m);
|
|
4012
|
-
return
|
|
3946
|
+
return Kr((e) => {
|
|
4013
3947
|
b === u.layers.size - 1 && (i?.(e), !e.defaultPrevented && c && (e.preventDefault(), c()));
|
|
4014
3948
|
}, m), e.useEffect(() => {
|
|
4015
|
-
if (d) return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
4016
|
-
r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents =
|
|
3949
|
+
if (d) return r && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (Zr = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), ii(), () => {
|
|
3950
|
+
r && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Zr);
|
|
4017
3951
|
};
|
|
4018
3952
|
}, [
|
|
4019
3953
|
d,
|
|
@@ -4021,10 +3955,10 @@ var Yr = "DismissableLayer", Xr = "dismissableLayer.update", Zr = "dismissableLa
|
|
|
4021
3955
|
r,
|
|
4022
3956
|
u
|
|
4023
3957
|
]), e.useEffect(() => () => {
|
|
4024
|
-
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
3958
|
+
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), ii());
|
|
4025
3959
|
}, [d, u]), e.useEffect(() => {
|
|
4026
3960
|
let e = () => h({});
|
|
4027
|
-
return document.addEventListener(
|
|
3961
|
+
return document.addEventListener(Jr, e), () => document.removeEventListener(Jr, e);
|
|
4028
3962
|
}, []), /* @__PURE__ */ f(Y.div, {
|
|
4029
3963
|
...l,
|
|
4030
3964
|
ref: g,
|
|
@@ -4037,9 +3971,9 @@ var Yr = "DismissableLayer", Xr = "dismissableLayer.update", Zr = "dismissableLa
|
|
|
4037
3971
|
onPointerDownCapture: X(t.onPointerDownCapture, C.onPointerDownCapture)
|
|
4038
3972
|
});
|
|
4039
3973
|
});
|
|
4040
|
-
|
|
4041
|
-
var
|
|
4042
|
-
let r = e.useContext(
|
|
3974
|
+
$r.displayName = qr;
|
|
3975
|
+
var ei = "DismissableLayerBranch", ti = e.forwardRef((t, n) => {
|
|
3976
|
+
let r = e.useContext(Qr), i = e.useRef(null), a = J(n, i);
|
|
4043
3977
|
return e.useEffect(() => {
|
|
4044
3978
|
let e = i.current;
|
|
4045
3979
|
if (e) return r.branches.add(e), () => {
|
|
@@ -4050,14 +3984,14 @@ var ni = "DismissableLayerBranch", ri = e.forwardRef((t, n) => {
|
|
|
4050
3984
|
ref: a
|
|
4051
3985
|
});
|
|
4052
3986
|
});
|
|
4053
|
-
|
|
4054
|
-
function
|
|
4055
|
-
let r =
|
|
3987
|
+
ti.displayName = ei;
|
|
3988
|
+
function ni(t, n = globalThis?.document) {
|
|
3989
|
+
let r = Gr(t), i = e.useRef(!1), a = e.useRef(() => {});
|
|
4056
3990
|
return e.useEffect(() => {
|
|
4057
3991
|
let e = (e) => {
|
|
4058
3992
|
if (e.target && !i.current) {
|
|
4059
3993
|
let t = function() {
|
|
4060
|
-
|
|
3994
|
+
ai(Yr, r, i, { discrete: !0 });
|
|
4061
3995
|
}, i = { originalEvent: e };
|
|
4062
3996
|
e.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = t, n.addEventListener("click", a.current, { once: !0 })) : t();
|
|
4063
3997
|
} else n.removeEventListener("click", a.current);
|
|
@@ -4070,11 +4004,11 @@ function ii(t, n = globalThis?.document) {
|
|
|
4070
4004
|
};
|
|
4071
4005
|
}, [n, r]), { onPointerDownCapture: () => i.current = !0 };
|
|
4072
4006
|
}
|
|
4073
|
-
function
|
|
4074
|
-
let r =
|
|
4007
|
+
function ri(t, n = globalThis?.document) {
|
|
4008
|
+
let r = Gr(t), i = e.useRef(!1);
|
|
4075
4009
|
return e.useEffect(() => {
|
|
4076
4010
|
let e = (e) => {
|
|
4077
|
-
e.target && !i.current &&
|
|
4011
|
+
e.target && !i.current && ai(Xr, r, { originalEvent: e }, { discrete: !1 });
|
|
4078
4012
|
};
|
|
4079
4013
|
return n.addEventListener("focusin", e), () => n.removeEventListener("focusin", e);
|
|
4080
4014
|
}, [n, r]), {
|
|
@@ -4082,25 +4016,25 @@ function ai(t, n = globalThis?.document) {
|
|
|
4082
4016
|
onBlurCapture: () => i.current = !1
|
|
4083
4017
|
};
|
|
4084
4018
|
}
|
|
4085
|
-
function
|
|
4086
|
-
let e = new CustomEvent(
|
|
4019
|
+
function ii() {
|
|
4020
|
+
let e = new CustomEvent(Jr);
|
|
4087
4021
|
document.dispatchEvent(e);
|
|
4088
4022
|
}
|
|
4089
|
-
function
|
|
4023
|
+
function ai(e, t, n, { discrete: r }) {
|
|
4090
4024
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
4091
4025
|
bubbles: !1,
|
|
4092
4026
|
cancelable: !0,
|
|
4093
4027
|
detail: n
|
|
4094
4028
|
});
|
|
4095
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
4029
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? pr(i, a) : i.dispatchEvent(a);
|
|
4096
4030
|
}
|
|
4097
4031
|
//#endregion
|
|
4098
4032
|
//#region node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@_us6nxggjgf4vtljrwo34kr3yfi/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
4099
|
-
var
|
|
4033
|
+
var oi = "focusScope.autoFocusOnMount", si = "focusScope.autoFocusOnUnmount", ci = {
|
|
4100
4034
|
bubbles: !1,
|
|
4101
4035
|
cancelable: !0
|
|
4102
|
-
},
|
|
4103
|
-
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u =
|
|
4036
|
+
}, li = "FocusScope", ui = e.forwardRef((t, n) => {
|
|
4037
|
+
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: o, ...s } = t, [c, l] = e.useState(null), u = Gr(a), d = Gr(o), p = e.useRef(null), m = J(n, (e) => l(e)), h = e.useRef({
|
|
4104
4038
|
paused: !1,
|
|
4105
4039
|
pause() {
|
|
4106
4040
|
this.paused = !0;
|
|
@@ -4114,13 +4048,13 @@ var ci = "focusScope.autoFocusOnMount", li = "focusScope.autoFocusOnUnmount", ui
|
|
|
4114
4048
|
let e = function(e) {
|
|
4115
4049
|
if (h.paused || !c) return;
|
|
4116
4050
|
let t = e.target;
|
|
4117
|
-
c.contains(t) ? p.current = t :
|
|
4051
|
+
c.contains(t) ? p.current = t : _i(p.current, { select: !0 });
|
|
4118
4052
|
}, t = function(e) {
|
|
4119
4053
|
if (h.paused || !c) return;
|
|
4120
4054
|
let t = e.relatedTarget;
|
|
4121
|
-
t !== null && (c.contains(t) ||
|
|
4055
|
+
t !== null && (c.contains(t) || _i(p.current, { select: !0 }));
|
|
4122
4056
|
}, n = function(e) {
|
|
4123
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
4057
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && _i(c);
|
|
4124
4058
|
};
|
|
4125
4059
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
4126
4060
|
let r = new MutationObserver(n);
|
|
@@ -4137,16 +4071,16 @@ var ci = "focusScope.autoFocusOnMount", li = "focusScope.autoFocusOnUnmount", ui
|
|
|
4137
4071
|
h.paused
|
|
4138
4072
|
]), e.useEffect(() => {
|
|
4139
4073
|
if (c) {
|
|
4140
|
-
|
|
4074
|
+
vi.add(h);
|
|
4141
4075
|
let e = document.activeElement;
|
|
4142
4076
|
if (!c.contains(e)) {
|
|
4143
|
-
let t = new CustomEvent(
|
|
4144
|
-
c.addEventListener(
|
|
4077
|
+
let t = new CustomEvent(oi, ci);
|
|
4078
|
+
c.addEventListener(oi, u), c.dispatchEvent(t), t.defaultPrevented || (di(xi(pi(c)), { select: !0 }), document.activeElement === e && _i(c));
|
|
4145
4079
|
}
|
|
4146
4080
|
return () => {
|
|
4147
|
-
c.removeEventListener(
|
|
4148
|
-
let t = new CustomEvent(
|
|
4149
|
-
c.addEventListener(
|
|
4081
|
+
c.removeEventListener(oi, u), setTimeout(() => {
|
|
4082
|
+
let t = new CustomEvent(si, ci);
|
|
4083
|
+
c.addEventListener(si, d), c.dispatchEvent(t), t.defaultPrevented || _i(e ?? document.body, { select: !0 }), c.removeEventListener(si, d), vi.remove(h);
|
|
4150
4084
|
}, 0);
|
|
4151
4085
|
};
|
|
4152
4086
|
}
|
|
@@ -4160,8 +4094,8 @@ var ci = "focusScope.autoFocusOnMount", li = "focusScope.autoFocusOnUnmount", ui
|
|
|
4160
4094
|
if (!r && !i || h.paused) return;
|
|
4161
4095
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
4162
4096
|
if (t && n) {
|
|
4163
|
-
let t = e.currentTarget, [i, a] =
|
|
4164
|
-
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r &&
|
|
4097
|
+
let t = e.currentTarget, [i, a] = fi(t);
|
|
4098
|
+
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r && _i(i, { select: !0 })) : e.shiftKey && n === i && (e.preventDefault(), r && _i(a, { select: !0 })) : n === t && e.preventDefault();
|
|
4165
4099
|
}
|
|
4166
4100
|
}, [
|
|
4167
4101
|
r,
|
|
@@ -4175,16 +4109,16 @@ var ci = "focusScope.autoFocusOnMount", li = "focusScope.autoFocusOnUnmount", ui
|
|
|
4175
4109
|
onKeyDown: g
|
|
4176
4110
|
});
|
|
4177
4111
|
});
|
|
4178
|
-
|
|
4179
|
-
function
|
|
4112
|
+
ui.displayName = li;
|
|
4113
|
+
function di(e, { select: t = !1 } = {}) {
|
|
4180
4114
|
let n = document.activeElement;
|
|
4181
|
-
for (let r of e) if (
|
|
4115
|
+
for (let r of e) if (_i(r, { select: t }), document.activeElement !== n) return;
|
|
4182
4116
|
}
|
|
4183
|
-
function
|
|
4184
|
-
let t =
|
|
4185
|
-
return [
|
|
4117
|
+
function fi(e) {
|
|
4118
|
+
let t = pi(e);
|
|
4119
|
+
return [mi(t, e), mi(t.reverse(), e)];
|
|
4186
4120
|
}
|
|
4187
|
-
function
|
|
4121
|
+
function pi(e) {
|
|
4188
4122
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
4189
4123
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
4190
4124
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -4192,10 +4126,10 @@ function hi(e) {
|
|
|
4192
4126
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
4193
4127
|
return t;
|
|
4194
4128
|
}
|
|
4195
|
-
function
|
|
4196
|
-
for (let n of e) if (!
|
|
4129
|
+
function mi(e, t) {
|
|
4130
|
+
for (let n of e) if (!hi(n, { upTo: t })) return n;
|
|
4197
4131
|
}
|
|
4198
|
-
function
|
|
4132
|
+
function hi(e, { upTo: t }) {
|
|
4199
4133
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
4200
4134
|
for (; e;) {
|
|
4201
4135
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -4204,91 +4138,91 @@ function _i(e, { upTo: t }) {
|
|
|
4204
4138
|
}
|
|
4205
4139
|
return !1;
|
|
4206
4140
|
}
|
|
4207
|
-
function
|
|
4141
|
+
function gi(e) {
|
|
4208
4142
|
return e instanceof HTMLInputElement && "select" in e;
|
|
4209
4143
|
}
|
|
4210
|
-
function
|
|
4144
|
+
function _i(e, { select: t = !1 } = {}) {
|
|
4211
4145
|
if (e && e.focus) {
|
|
4212
4146
|
let n = document.activeElement;
|
|
4213
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
4147
|
+
e.focus({ preventScroll: !0 }), e !== n && gi(e) && t && e.select();
|
|
4214
4148
|
}
|
|
4215
4149
|
}
|
|
4216
|
-
var
|
|
4217
|
-
function
|
|
4150
|
+
var vi = yi();
|
|
4151
|
+
function yi() {
|
|
4218
4152
|
let e = [];
|
|
4219
4153
|
return {
|
|
4220
4154
|
add(t) {
|
|
4221
4155
|
let n = e[0];
|
|
4222
|
-
t !== n && n?.pause(), e =
|
|
4156
|
+
t !== n && n?.pause(), e = bi(e, t), e.unshift(t);
|
|
4223
4157
|
},
|
|
4224
4158
|
remove(t) {
|
|
4225
|
-
e =
|
|
4159
|
+
e = bi(e, t), e[0]?.resume();
|
|
4226
4160
|
}
|
|
4227
4161
|
};
|
|
4228
4162
|
}
|
|
4229
|
-
function
|
|
4163
|
+
function bi(e, t) {
|
|
4230
4164
|
let n = [...e], r = n.indexOf(t);
|
|
4231
4165
|
return r !== -1 && n.splice(r, 1), n;
|
|
4232
4166
|
}
|
|
4233
|
-
function
|
|
4167
|
+
function xi(e) {
|
|
4234
4168
|
return e.filter((e) => e.tagName !== "A");
|
|
4235
4169
|
}
|
|
4236
4170
|
//#endregion
|
|
4237
4171
|
//#region node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@19.2._4d5mj2wrmexuzotvlwc7gymk2u/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
4238
|
-
var
|
|
4172
|
+
var Si = "Portal", Ci = e.forwardRef((t, n) => {
|
|
4239
4173
|
let { container: r, ...i } = t, [a, o] = e.useState(!1);
|
|
4240
|
-
|
|
4174
|
+
_r(() => o(!0), []);
|
|
4241
4175
|
let s = r || a && globalThis?.document?.body;
|
|
4242
4176
|
return s ? h.createPortal(/* @__PURE__ */ f(Y.div, {
|
|
4243
4177
|
...i,
|
|
4244
4178
|
ref: n
|
|
4245
4179
|
}), s) : null;
|
|
4246
4180
|
});
|
|
4247
|
-
|
|
4181
|
+
Ci.displayName = Si;
|
|
4248
4182
|
//#endregion
|
|
4249
4183
|
//#region node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
4250
|
-
var
|
|
4251
|
-
function
|
|
4184
|
+
var wi = 0;
|
|
4185
|
+
function Ti() {
|
|
4252
4186
|
e.useEffect(() => {
|
|
4253
4187
|
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
4254
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
4255
|
-
|
|
4188
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Ei()), document.body.insertAdjacentElement("beforeend", e[1] ?? Ei()), wi++, () => {
|
|
4189
|
+
wi === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), wi--;
|
|
4256
4190
|
};
|
|
4257
4191
|
}, []);
|
|
4258
4192
|
}
|
|
4259
|
-
function
|
|
4193
|
+
function Ei() {
|
|
4260
4194
|
let e = document.createElement("span");
|
|
4261
4195
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
4262
4196
|
}
|
|
4263
4197
|
//#endregion
|
|
4264
4198
|
//#region node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
4265
|
-
var
|
|
4266
|
-
return
|
|
4199
|
+
var Di = function() {
|
|
4200
|
+
return Di = Object.assign || function(e) {
|
|
4267
4201
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
4268
4202
|
return e;
|
|
4269
|
-
},
|
|
4203
|
+
}, Di.apply(this, arguments);
|
|
4270
4204
|
};
|
|
4271
|
-
function
|
|
4205
|
+
function Oi(e, t) {
|
|
4272
4206
|
var n = {};
|
|
4273
4207
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4274
4208
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
4275
4209
|
return n;
|
|
4276
4210
|
}
|
|
4277
|
-
function
|
|
4211
|
+
function ki(e, t, n) {
|
|
4278
4212
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
4279
4213
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
4280
4214
|
}
|
|
4281
4215
|
//#endregion
|
|
4282
4216
|
//#region node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.14_react@19.2.4/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
4283
|
-
var
|
|
4217
|
+
var Ai = "right-scroll-bar-position", ji = "width-before-scroll-bar", Mi = "with-scroll-bars-hidden", Ni = "--removed-body-scroll-bar-size";
|
|
4284
4218
|
//#endregion
|
|
4285
4219
|
//#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.4/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
4286
|
-
function
|
|
4220
|
+
function Pi(e, t) {
|
|
4287
4221
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4288
4222
|
}
|
|
4289
4223
|
//#endregion
|
|
4290
4224
|
//#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.4/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
4291
|
-
function
|
|
4225
|
+
function Fi(e, t) {
|
|
4292
4226
|
var n = u(function() {
|
|
4293
4227
|
return {
|
|
4294
4228
|
value: e,
|
|
@@ -4308,33 +4242,33 @@ function Li(e, t) {
|
|
|
4308
4242
|
}
|
|
4309
4243
|
//#endregion
|
|
4310
4244
|
//#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.14_react@19.2.4/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
4311
|
-
var
|
|
4312
|
-
function
|
|
4313
|
-
var n =
|
|
4245
|
+
var Ii = typeof window < "u" ? e.useLayoutEffect : e.useEffect, Li = /* @__PURE__ */ new WeakMap();
|
|
4246
|
+
function Ri(e, t) {
|
|
4247
|
+
var n = Fi(t || null, function(t) {
|
|
4314
4248
|
return e.forEach(function(e) {
|
|
4315
|
-
return
|
|
4249
|
+
return Pi(e, t);
|
|
4316
4250
|
});
|
|
4317
4251
|
});
|
|
4318
|
-
return
|
|
4319
|
-
var t =
|
|
4252
|
+
return Ii(function() {
|
|
4253
|
+
var t = Li.get(n);
|
|
4320
4254
|
if (t) {
|
|
4321
4255
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
4322
4256
|
r.forEach(function(e) {
|
|
4323
|
-
i.has(e) ||
|
|
4257
|
+
i.has(e) || Pi(e, null);
|
|
4324
4258
|
}), i.forEach(function(e) {
|
|
4325
|
-
r.has(e) ||
|
|
4259
|
+
r.has(e) || Pi(e, a);
|
|
4326
4260
|
});
|
|
4327
4261
|
}
|
|
4328
|
-
|
|
4262
|
+
Li.set(n, e);
|
|
4329
4263
|
}, [e]), n;
|
|
4330
4264
|
}
|
|
4331
4265
|
//#endregion
|
|
4332
4266
|
//#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.2.4/node_modules/use-sidecar/dist/es2015/medium.js
|
|
4333
|
-
function
|
|
4267
|
+
function zi(e) {
|
|
4334
4268
|
return e;
|
|
4335
4269
|
}
|
|
4336
|
-
function
|
|
4337
|
-
t === void 0 && (t =
|
|
4270
|
+
function Bi(e, t) {
|
|
4271
|
+
t === void 0 && (t = zi);
|
|
4338
4272
|
var n = [], r = !1;
|
|
4339
4273
|
return {
|
|
4340
4274
|
read: function() {
|
|
@@ -4387,35 +4321,35 @@ function Hi(e, t) {
|
|
|
4387
4321
|
}
|
|
4388
4322
|
};
|
|
4389
4323
|
}
|
|
4390
|
-
function
|
|
4324
|
+
function Vi(e) {
|
|
4391
4325
|
e === void 0 && (e = {});
|
|
4392
|
-
var t =
|
|
4393
|
-
return t.options =
|
|
4326
|
+
var t = Bi(null);
|
|
4327
|
+
return t.options = Di({
|
|
4394
4328
|
async: !0,
|
|
4395
4329
|
ssr: !1
|
|
4396
4330
|
}, e), t;
|
|
4397
4331
|
}
|
|
4398
4332
|
//#endregion
|
|
4399
4333
|
//#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.14_react@19.2.4/node_modules/use-sidecar/dist/es2015/exports.js
|
|
4400
|
-
var
|
|
4401
|
-
var n = t.sideCar, r =
|
|
4334
|
+
var Hi = function(t) {
|
|
4335
|
+
var n = t.sideCar, r = Oi(t, ["sideCar"]);
|
|
4402
4336
|
if (!n) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
4403
4337
|
var i = n.read();
|
|
4404
4338
|
if (!i) throw Error("Sidecar medium not found");
|
|
4405
|
-
return e.createElement(i,
|
|
4339
|
+
return e.createElement(i, Di({}, r));
|
|
4406
4340
|
};
|
|
4407
|
-
|
|
4408
|
-
function
|
|
4409
|
-
return e.useMedium(t),
|
|
4341
|
+
Hi.isSideCarExport = !0;
|
|
4342
|
+
function Ui(e, t) {
|
|
4343
|
+
return e.useMedium(t), Hi;
|
|
4410
4344
|
}
|
|
4411
4345
|
//#endregion
|
|
4412
4346
|
//#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.4/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
4413
|
-
var
|
|
4347
|
+
var Wi = Vi(), Gi = function() {}, Ki = e.forwardRef(function(t, n) {
|
|
4414
4348
|
var r = e.useRef(null), i = e.useState({
|
|
4415
|
-
onScrollCapture:
|
|
4416
|
-
onWheelCapture:
|
|
4417
|
-
onTouchMoveCapture:
|
|
4418
|
-
}), a = i[0], o = i[1], s = t.forwardProps, c = t.children, l = t.className, u = t.removeScrollBar, d = t.enabled, f = t.shards, p = t.sideCar, m = t.noRelative, h = t.noIsolation, g = t.inert, _ = t.allowPinchZoom, v = t.as, y = v === void 0 ? "div" : v, b = t.gapMode, x =
|
|
4349
|
+
onScrollCapture: Gi,
|
|
4350
|
+
onWheelCapture: Gi,
|
|
4351
|
+
onTouchMoveCapture: Gi
|
|
4352
|
+
}), a = i[0], o = i[1], s = t.forwardProps, c = t.children, l = t.className, u = t.removeScrollBar, d = t.enabled, f = t.shards, p = t.sideCar, m = t.noRelative, h = t.noIsolation, g = t.inert, _ = t.allowPinchZoom, v = t.as, y = v === void 0 ? "div" : v, b = t.gapMode, x = Oi(t, [
|
|
4419
4353
|
"forwardProps",
|
|
4420
4354
|
"children",
|
|
4421
4355
|
"className",
|
|
@@ -4429,9 +4363,9 @@ var Ki = Ui(), qi = function() {}, Ji = e.forwardRef(function(t, n) {
|
|
|
4429
4363
|
"allowPinchZoom",
|
|
4430
4364
|
"as",
|
|
4431
4365
|
"gapMode"
|
|
4432
|
-
]), S = p, C =
|
|
4366
|
+
]), S = p, C = Ri([r, n]), w = Di(Di({}, x), a);
|
|
4433
4367
|
return e.createElement(e.Fragment, null, d && e.createElement(S, {
|
|
4434
|
-
sideCar:
|
|
4368
|
+
sideCar: Wi,
|
|
4435
4369
|
removeScrollBar: u,
|
|
4436
4370
|
shards: f,
|
|
4437
4371
|
noRelative: m,
|
|
@@ -4441,52 +4375,52 @@ var Ki = Ui(), qi = function() {}, Ji = e.forwardRef(function(t, n) {
|
|
|
4441
4375
|
allowPinchZoom: !!_,
|
|
4442
4376
|
lockRef: r,
|
|
4443
4377
|
gapMode: b
|
|
4444
|
-
}), s ? e.cloneElement(e.Children.only(c),
|
|
4378
|
+
}), s ? e.cloneElement(e.Children.only(c), Di(Di({}, w), { ref: C })) : e.createElement(y, Di({}, w, {
|
|
4445
4379
|
className: l,
|
|
4446
4380
|
ref: C
|
|
4447
4381
|
}), c));
|
|
4448
4382
|
});
|
|
4449
|
-
|
|
4383
|
+
Ki.defaultProps = {
|
|
4450
4384
|
enabled: !0,
|
|
4451
4385
|
removeScrollBar: !0,
|
|
4452
4386
|
inert: !1
|
|
4453
|
-
},
|
|
4454
|
-
fullWidth:
|
|
4455
|
-
zeroRight:
|
|
4387
|
+
}, Ki.classNames = {
|
|
4388
|
+
fullWidth: ji,
|
|
4389
|
+
zeroRight: Ai
|
|
4456
4390
|
};
|
|
4457
4391
|
//#endregion
|
|
4458
4392
|
//#region node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
4459
|
-
var
|
|
4460
|
-
if (
|
|
4393
|
+
var qi, Ji = function() {
|
|
4394
|
+
if (qi) return qi;
|
|
4461
4395
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
4462
4396
|
};
|
|
4463
4397
|
//#endregion
|
|
4464
4398
|
//#region node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.14_react@19.2.4/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
4465
|
-
function
|
|
4399
|
+
function Yi() {
|
|
4466
4400
|
if (!document) return null;
|
|
4467
4401
|
var e = document.createElement("style");
|
|
4468
4402
|
e.type = "text/css";
|
|
4469
|
-
var t =
|
|
4403
|
+
var t = Ji();
|
|
4470
4404
|
return t && e.setAttribute("nonce", t), e;
|
|
4471
4405
|
}
|
|
4472
|
-
function
|
|
4406
|
+
function Xi(e, t) {
|
|
4473
4407
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
4474
4408
|
}
|
|
4475
|
-
function
|
|
4409
|
+
function Zi(e) {
|
|
4476
4410
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
4477
4411
|
}
|
|
4478
|
-
var
|
|
4412
|
+
var Qi = function() {
|
|
4479
4413
|
var e = 0, t = null;
|
|
4480
4414
|
return {
|
|
4481
4415
|
add: function(n) {
|
|
4482
|
-
e == 0 && (t =
|
|
4416
|
+
e == 0 && (t = Yi()) && (Xi(t, n), Zi(t)), e++;
|
|
4483
4417
|
},
|
|
4484
4418
|
remove: function() {
|
|
4485
4419
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
4486
4420
|
}
|
|
4487
4421
|
};
|
|
4488
|
-
},
|
|
4489
|
-
var t =
|
|
4422
|
+
}, $i = function() {
|
|
4423
|
+
var t = Qi();
|
|
4490
4424
|
return function(n, r) {
|
|
4491
4425
|
e.useEffect(function() {
|
|
4492
4426
|
return t.add(n), function() {
|
|
@@ -4494,43 +4428,43 @@ var ea = function() {
|
|
|
4494
4428
|
};
|
|
4495
4429
|
}, [n && r]);
|
|
4496
4430
|
};
|
|
4497
|
-
},
|
|
4498
|
-
var e =
|
|
4431
|
+
}, ea = function() {
|
|
4432
|
+
var e = $i();
|
|
4499
4433
|
return function(t) {
|
|
4500
4434
|
var n = t.styles, r = t.dynamic;
|
|
4501
4435
|
return e(n, r), null;
|
|
4502
4436
|
};
|
|
4503
|
-
},
|
|
4437
|
+
}, ta = {
|
|
4504
4438
|
left: 0,
|
|
4505
4439
|
top: 0,
|
|
4506
4440
|
right: 0,
|
|
4507
4441
|
gap: 0
|
|
4508
|
-
},
|
|
4442
|
+
}, na = function(e) {
|
|
4509
4443
|
return parseInt(e || "", 10) || 0;
|
|
4510
|
-
},
|
|
4444
|
+
}, ra = function(e) {
|
|
4511
4445
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
4512
4446
|
return [
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4447
|
+
na(n),
|
|
4448
|
+
na(r),
|
|
4449
|
+
na(i)
|
|
4516
4450
|
];
|
|
4517
|
-
},
|
|
4518
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
4519
|
-
var t =
|
|
4451
|
+
}, ia = function(e) {
|
|
4452
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return ta;
|
|
4453
|
+
var t = ra(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
4520
4454
|
return {
|
|
4521
4455
|
left: t[0],
|
|
4522
4456
|
top: t[1],
|
|
4523
4457
|
right: t[2],
|
|
4524
4458
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
4525
4459
|
};
|
|
4526
|
-
},
|
|
4460
|
+
}, aa = ea(), oa = "data-scroll-locked", sa = function(e, t, n, r) {
|
|
4527
4461
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
4528
4462
|
return n === void 0 && (n = "margin"), `
|
|
4529
|
-
.${
|
|
4463
|
+
.${Mi} {
|
|
4530
4464
|
overflow: hidden ${r};
|
|
4531
4465
|
padding-right: ${s}px ${r};
|
|
4532
4466
|
}
|
|
4533
|
-
body[${
|
|
4467
|
+
body[${oa}] {
|
|
4534
4468
|
overflow: hidden ${r};
|
|
4535
4469
|
overscroll-behavior: contain;
|
|
4536
4470
|
${[
|
|
@@ -4547,122 +4481,122 @@ var ea = function() {
|
|
|
4547
4481
|
].filter(Boolean).join("")}
|
|
4548
4482
|
}
|
|
4549
4483
|
|
|
4550
|
-
.${
|
|
4484
|
+
.${Ai} {
|
|
4551
4485
|
right: ${s}px ${r};
|
|
4552
4486
|
}
|
|
4553
4487
|
|
|
4554
|
-
.${
|
|
4488
|
+
.${ji} {
|
|
4555
4489
|
margin-right: ${s}px ${r};
|
|
4556
4490
|
}
|
|
4557
4491
|
|
|
4558
|
-
.${
|
|
4492
|
+
.${Ai} .${Ai} {
|
|
4559
4493
|
right: 0 ${r};
|
|
4560
4494
|
}
|
|
4561
4495
|
|
|
4562
|
-
.${
|
|
4496
|
+
.${ji} .${ji} {
|
|
4563
4497
|
margin-right: 0 ${r};
|
|
4564
4498
|
}
|
|
4565
4499
|
|
|
4566
|
-
body[${
|
|
4567
|
-
${
|
|
4500
|
+
body[${oa}] {
|
|
4501
|
+
${Ni}: ${s}px;
|
|
4568
4502
|
}
|
|
4569
4503
|
`;
|
|
4570
|
-
},
|
|
4504
|
+
}, ca = function() {
|
|
4571
4505
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
4572
4506
|
return isFinite(e) ? e : 0;
|
|
4573
|
-
},
|
|
4507
|
+
}, la = function() {
|
|
4574
4508
|
e.useEffect(function() {
|
|
4575
|
-
return document.body.setAttribute(
|
|
4576
|
-
var e =
|
|
4577
|
-
e <= 0 ? document.body.removeAttribute(
|
|
4509
|
+
return document.body.setAttribute(oa, (ca() + 1).toString()), function() {
|
|
4510
|
+
var e = ca() - 1;
|
|
4511
|
+
e <= 0 ? document.body.removeAttribute(oa) : document.body.setAttribute(oa, e.toString());
|
|
4578
4512
|
};
|
|
4579
4513
|
}, []);
|
|
4580
|
-
},
|
|
4514
|
+
}, ua = function(t) {
|
|
4581
4515
|
var n = t.noRelative, r = t.noImportant, i = t.gapMode, a = i === void 0 ? "margin" : i;
|
|
4582
|
-
|
|
4516
|
+
la();
|
|
4583
4517
|
var o = e.useMemo(function() {
|
|
4584
|
-
return
|
|
4518
|
+
return ia(a);
|
|
4585
4519
|
}, [a]);
|
|
4586
|
-
return e.createElement(
|
|
4587
|
-
},
|
|
4520
|
+
return e.createElement(aa, { styles: sa(o, !n, a, r ? "" : "!important") });
|
|
4521
|
+
}, da = !1;
|
|
4588
4522
|
if (typeof window < "u") try {
|
|
4589
|
-
var
|
|
4590
|
-
return
|
|
4523
|
+
var fa = Object.defineProperty({}, "passive", { get: function() {
|
|
4524
|
+
return da = !0, !0;
|
|
4591
4525
|
} });
|
|
4592
|
-
window.addEventListener("test",
|
|
4526
|
+
window.addEventListener("test", fa, fa), window.removeEventListener("test", fa, fa);
|
|
4593
4527
|
} catch {
|
|
4594
|
-
|
|
4528
|
+
da = !1;
|
|
4595
4529
|
}
|
|
4596
|
-
var
|
|
4530
|
+
var pa = da ? { passive: !1 } : !1, ma = function(e) {
|
|
4597
4531
|
return e.tagName === "TEXTAREA";
|
|
4598
|
-
},
|
|
4532
|
+
}, ha = function(e, t) {
|
|
4599
4533
|
if (!(e instanceof Element)) return !1;
|
|
4600
4534
|
var n = window.getComputedStyle(e);
|
|
4601
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
4602
|
-
},
|
|
4603
|
-
return
|
|
4604
|
-
},
|
|
4605
|
-
return
|
|
4606
|
-
},
|
|
4535
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !ma(e) && n[t] === "visible");
|
|
4536
|
+
}, ga = function(e) {
|
|
4537
|
+
return ha(e, "overflowY");
|
|
4538
|
+
}, _a = function(e) {
|
|
4539
|
+
return ha(e, "overflowX");
|
|
4540
|
+
}, va = function(e, t) {
|
|
4607
4541
|
var n = t.ownerDocument, r = t;
|
|
4608
4542
|
do {
|
|
4609
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
4610
|
-
var i =
|
|
4543
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), xa(e, r)) {
|
|
4544
|
+
var i = Sa(e, r);
|
|
4611
4545
|
if (i[1] > i[2]) return !0;
|
|
4612
4546
|
}
|
|
4613
4547
|
r = r.parentNode;
|
|
4614
4548
|
} while (r && r !== n.body);
|
|
4615
4549
|
return !1;
|
|
4616
|
-
},
|
|
4550
|
+
}, ya = function(e) {
|
|
4617
4551
|
return [
|
|
4618
4552
|
e.scrollTop,
|
|
4619
4553
|
e.scrollHeight,
|
|
4620
4554
|
e.clientHeight
|
|
4621
4555
|
];
|
|
4622
|
-
},
|
|
4556
|
+
}, ba = function(e) {
|
|
4623
4557
|
return [
|
|
4624
4558
|
e.scrollLeft,
|
|
4625
4559
|
e.scrollWidth,
|
|
4626
4560
|
e.clientWidth
|
|
4627
4561
|
];
|
|
4562
|
+
}, xa = function(e, t) {
|
|
4563
|
+
return e === "v" ? ga(t) : _a(t);
|
|
4564
|
+
}, Sa = function(e, t) {
|
|
4565
|
+
return e === "v" ? ya(t) : ba(t);
|
|
4628
4566
|
}, Ca = function(e, t) {
|
|
4629
|
-
return e === "v" ? va(t) : ya(t);
|
|
4630
|
-
}, wa = function(e, t) {
|
|
4631
|
-
return e === "v" ? xa(t) : Sa(t);
|
|
4632
|
-
}, Ta = function(e, t) {
|
|
4633
4567
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
4634
|
-
},
|
|
4635
|
-
var a =
|
|
4568
|
+
}, wa = function(e, t, n, r, i) {
|
|
4569
|
+
var a = Ca(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
4636
4570
|
do {
|
|
4637
4571
|
if (!s) break;
|
|
4638
|
-
var p =
|
|
4639
|
-
(m || h) &&
|
|
4572
|
+
var p = Sa(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
4573
|
+
(m || h) && xa(e, s) && (d += h, f += m);
|
|
4640
4574
|
var g = s.parentNode;
|
|
4641
4575
|
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
4642
4576
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
4643
4577
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
4644
|
-
},
|
|
4578
|
+
}, Ta = function(e) {
|
|
4645
4579
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
4646
|
-
},
|
|
4580
|
+
}, Ea = function(e) {
|
|
4647
4581
|
return [e.deltaX, e.deltaY];
|
|
4648
|
-
},
|
|
4582
|
+
}, Da = function(e) {
|
|
4649
4583
|
return e && "current" in e ? e.current : e;
|
|
4650
|
-
},
|
|
4584
|
+
}, Oa = function(e, t) {
|
|
4651
4585
|
return e[0] === t[0] && e[1] === t[1];
|
|
4652
|
-
},
|
|
4586
|
+
}, ka = function(e) {
|
|
4653
4587
|
return `
|
|
4654
4588
|
.block-interactivity-${e} {pointer-events: none;}
|
|
4655
4589
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
4656
4590
|
`;
|
|
4657
|
-
},
|
|
4658
|
-
function
|
|
4659
|
-
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(
|
|
4591
|
+
}, Aa = 0, ja = [];
|
|
4592
|
+
function Ma(t) {
|
|
4593
|
+
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(Aa++)[0], o = e.useState(ea)[0], s = e.useRef(t);
|
|
4660
4594
|
e.useEffect(function() {
|
|
4661
4595
|
s.current = t;
|
|
4662
4596
|
}, [t]), e.useEffect(function() {
|
|
4663
4597
|
if (t.inert) {
|
|
4664
4598
|
document.body.classList.add(`block-interactivity-${a}`);
|
|
4665
|
-
var e =
|
|
4599
|
+
var e = ki([t.lockRef.current], (t.shards || []).map(Da), !0).filter(Boolean);
|
|
4666
4600
|
return e.forEach(function(e) {
|
|
4667
4601
|
return e.classList.add(`allow-interactivity-${a}`);
|
|
4668
4602
|
}), function() {
|
|
@@ -4678,28 +4612,28 @@ function Pa(t) {
|
|
|
4678
4612
|
]);
|
|
4679
4613
|
var c = e.useCallback(function(e, t) {
|
|
4680
4614
|
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !s.current.allowPinchZoom;
|
|
4681
|
-
var n =
|
|
4615
|
+
var n = Ta(e), a = r.current, o = "deltaX" in e ? e.deltaX : a[0] - n[0], c = "deltaY" in e ? e.deltaY : a[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
4682
4616
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
4683
4617
|
var f = window.getSelection(), p = f && f.anchorNode;
|
|
4684
4618
|
if (p && (p === u || p.contains(u))) return !1;
|
|
4685
|
-
var m =
|
|
4619
|
+
var m = va(d, u);
|
|
4686
4620
|
if (!m) return !0;
|
|
4687
|
-
if (m ? l = d : (l = d === "v" ? "h" : "v", m =
|
|
4621
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = va(d, u)), !m) return !1;
|
|
4688
4622
|
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
4689
4623
|
var h = i.current || l;
|
|
4690
|
-
return
|
|
4624
|
+
return wa(h, t, e, h === "h" ? o : c, !0);
|
|
4691
4625
|
}, []), l = e.useCallback(function(e) {
|
|
4692
4626
|
var t = e;
|
|
4693
|
-
if (!(!
|
|
4694
|
-
var r = "deltaY" in t ?
|
|
4695
|
-
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) &&
|
|
4627
|
+
if (!(!ja.length || ja[ja.length - 1] !== o)) {
|
|
4628
|
+
var r = "deltaY" in t ? Ea(t) : Ta(t), i = n.current.filter(function(e) {
|
|
4629
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && Oa(e.delta, r);
|
|
4696
4630
|
})[0];
|
|
4697
4631
|
if (i && i.should) {
|
|
4698
4632
|
t.cancelable && t.preventDefault();
|
|
4699
4633
|
return;
|
|
4700
4634
|
}
|
|
4701
4635
|
if (!i) {
|
|
4702
|
-
var a = (s.current.shards || []).map(
|
|
4636
|
+
var a = (s.current.shards || []).map(Da).filter(Boolean).filter(function(e) {
|
|
4703
4637
|
return e.contains(t.target);
|
|
4704
4638
|
});
|
|
4705
4639
|
(a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
@@ -4711,7 +4645,7 @@ function Pa(t) {
|
|
|
4711
4645
|
delta: t,
|
|
4712
4646
|
target: r,
|
|
4713
4647
|
should: i,
|
|
4714
|
-
shadowParent:
|
|
4648
|
+
shadowParent: Na(r)
|
|
4715
4649
|
};
|
|
4716
4650
|
n.current.push(a), setTimeout(function() {
|
|
4717
4651
|
n.current = n.current.filter(function(e) {
|
|
@@ -4719,60 +4653,60 @@ function Pa(t) {
|
|
|
4719
4653
|
});
|
|
4720
4654
|
}, 1);
|
|
4721
4655
|
}, []), d = e.useCallback(function(e) {
|
|
4722
|
-
r.current =
|
|
4656
|
+
r.current = Ta(e), i.current = void 0;
|
|
4723
4657
|
}, []), f = e.useCallback(function(e) {
|
|
4724
|
-
u(e.type,
|
|
4658
|
+
u(e.type, Ea(e), e.target, c(e, t.lockRef.current));
|
|
4725
4659
|
}, []), p = e.useCallback(function(e) {
|
|
4726
|
-
u(e.type,
|
|
4660
|
+
u(e.type, Ta(e), e.target, c(e, t.lockRef.current));
|
|
4727
4661
|
}, []);
|
|
4728
4662
|
e.useEffect(function() {
|
|
4729
|
-
return
|
|
4663
|
+
return ja.push(o), t.setCallbacks({
|
|
4730
4664
|
onScrollCapture: f,
|
|
4731
4665
|
onWheelCapture: f,
|
|
4732
4666
|
onTouchMoveCapture: p
|
|
4733
|
-
}), document.addEventListener("wheel", l,
|
|
4734
|
-
|
|
4667
|
+
}), document.addEventListener("wheel", l, pa), document.addEventListener("touchmove", l, pa), document.addEventListener("touchstart", d, pa), function() {
|
|
4668
|
+
ja = ja.filter(function(e) {
|
|
4735
4669
|
return e !== o;
|
|
4736
|
-
}), document.removeEventListener("wheel", l,
|
|
4670
|
+
}), document.removeEventListener("wheel", l, pa), document.removeEventListener("touchmove", l, pa), document.removeEventListener("touchstart", d, pa);
|
|
4737
4671
|
};
|
|
4738
4672
|
}, []);
|
|
4739
4673
|
var m = t.removeScrollBar, h = t.inert;
|
|
4740
|
-
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles:
|
|
4674
|
+
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: ka(a) }) : null, m ? e.createElement(ua, {
|
|
4741
4675
|
noRelative: t.noRelative,
|
|
4742
4676
|
gapMode: t.gapMode
|
|
4743
4677
|
}) : null);
|
|
4744
4678
|
}
|
|
4745
|
-
function
|
|
4679
|
+
function Na(e) {
|
|
4746
4680
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4747
4681
|
return t;
|
|
4748
4682
|
}
|
|
4749
4683
|
//#endregion
|
|
4750
4684
|
//#region node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.14_react@19.2.4/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
4751
|
-
var
|
|
4752
|
-
return e.createElement(
|
|
4685
|
+
var Pa = Ui(Wi, Ma), Fa = e.forwardRef(function(t, n) {
|
|
4686
|
+
return e.createElement(Ki, Di({}, t, {
|
|
4753
4687
|
ref: n,
|
|
4754
|
-
sideCar:
|
|
4688
|
+
sideCar: Pa
|
|
4755
4689
|
}));
|
|
4756
4690
|
});
|
|
4757
|
-
|
|
4691
|
+
Fa.classNames = Ki.classNames;
|
|
4758
4692
|
//#endregion
|
|
4759
4693
|
//#region node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
4760
|
-
var
|
|
4694
|
+
var Ia = function(e) {
|
|
4761
4695
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
4762
|
-
},
|
|
4763
|
-
return e && (e.host ||
|
|
4764
|
-
},
|
|
4696
|
+
}, La = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), za = {}, Ba = 0, Va = function(e) {
|
|
4697
|
+
return e && (e.host || Va(e.parentNode));
|
|
4698
|
+
}, Ha = function(e, t) {
|
|
4765
4699
|
return t.map(function(t) {
|
|
4766
4700
|
if (e.contains(t)) return t;
|
|
4767
|
-
var n =
|
|
4701
|
+
var n = Va(t);
|
|
4768
4702
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
4769
4703
|
}).filter(function(e) {
|
|
4770
4704
|
return !!e;
|
|
4771
4705
|
});
|
|
4772
|
-
},
|
|
4773
|
-
var i =
|
|
4774
|
-
|
|
4775
|
-
var a =
|
|
4706
|
+
}, Ua = function(e, t, n, r) {
|
|
4707
|
+
var i = Ha(t, Array.isArray(e) ? e : [e]);
|
|
4708
|
+
za[n] || (za[n] = /* @__PURE__ */ new WeakMap());
|
|
4709
|
+
var a = za[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
4776
4710
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
4777
4711
|
};
|
|
4778
4712
|
i.forEach(l);
|
|
@@ -4780,31 +4714,31 @@ var Ra = function(e) {
|
|
|
4780
4714
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
4781
4715
|
if (s.has(e)) u(e);
|
|
4782
4716
|
else try {
|
|
4783
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
4784
|
-
|
|
4717
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (La.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
4718
|
+
La.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Ra.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
4785
4719
|
} catch (t) {
|
|
4786
4720
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
4787
4721
|
}
|
|
4788
4722
|
});
|
|
4789
4723
|
};
|
|
4790
|
-
return u(t), s.clear(),
|
|
4724
|
+
return u(t), s.clear(), Ba++, function() {
|
|
4791
4725
|
o.forEach(function(e) {
|
|
4792
|
-
var t =
|
|
4793
|
-
|
|
4794
|
-
}),
|
|
4726
|
+
var t = La.get(e) - 1, i = a.get(e) - 1;
|
|
4727
|
+
La.set(e, t), a.set(e, i), t || (Ra.has(e) || e.removeAttribute(r), Ra.delete(e)), i || e.removeAttribute(n);
|
|
4728
|
+
}), Ba--, Ba || (La = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), za = {});
|
|
4795
4729
|
};
|
|
4796
|
-
},
|
|
4730
|
+
}, Wa = function(e, t, n) {
|
|
4797
4731
|
n === void 0 && (n = "data-aria-hidden");
|
|
4798
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
4799
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
4732
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Ia(e);
|
|
4733
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Ua(r, i, n, "aria-hidden")) : function() {
|
|
4800
4734
|
return null;
|
|
4801
4735
|
};
|
|
4802
4736
|
};
|
|
4803
4737
|
//#endregion
|
|
4804
4738
|
//#region node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
4805
|
-
function
|
|
4739
|
+
function Ga(t) {
|
|
4806
4740
|
let [n, r] = e.useState(void 0);
|
|
4807
|
-
return
|
|
4741
|
+
return _r(() => {
|
|
4808
4742
|
if (t) {
|
|
4809
4743
|
r({
|
|
4810
4744
|
width: t.offsetWidth,
|
|
@@ -4828,80 +4762,80 @@ function qa(t) {
|
|
|
4828
4762
|
}
|
|
4829
4763
|
//#endregion
|
|
4830
4764
|
//#region node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
4831
|
-
var
|
|
4765
|
+
var Ka = [
|
|
4832
4766
|
"top",
|
|
4833
4767
|
"right",
|
|
4834
4768
|
"bottom",
|
|
4835
4769
|
"left"
|
|
4836
|
-
],
|
|
4770
|
+
], qa = Math.min, Z = Math.max, Ja = Math.round, Ya = Math.floor, Xa = (e) => ({
|
|
4837
4771
|
x: e,
|
|
4838
4772
|
y: e
|
|
4839
|
-
}),
|
|
4773
|
+
}), Za = {
|
|
4840
4774
|
left: "right",
|
|
4841
4775
|
right: "left",
|
|
4842
4776
|
bottom: "top",
|
|
4843
4777
|
top: "bottom"
|
|
4844
4778
|
};
|
|
4845
|
-
function
|
|
4846
|
-
return Z(e,
|
|
4779
|
+
function Qa(e, t, n) {
|
|
4780
|
+
return Z(e, qa(t, n));
|
|
4847
4781
|
}
|
|
4848
|
-
function
|
|
4782
|
+
function $a(e, t) {
|
|
4849
4783
|
return typeof e == "function" ? e(t) : e;
|
|
4850
4784
|
}
|
|
4851
|
-
function
|
|
4785
|
+
function eo(e) {
|
|
4852
4786
|
return e.split("-")[0];
|
|
4853
4787
|
}
|
|
4854
|
-
function
|
|
4788
|
+
function to(e) {
|
|
4855
4789
|
return e.split("-")[1];
|
|
4856
4790
|
}
|
|
4857
|
-
function
|
|
4791
|
+
function no(e) {
|
|
4858
4792
|
return e === "x" ? "y" : "x";
|
|
4859
4793
|
}
|
|
4860
|
-
function
|
|
4794
|
+
function ro(e) {
|
|
4861
4795
|
return e === "y" ? "height" : "width";
|
|
4862
4796
|
}
|
|
4863
|
-
function
|
|
4797
|
+
function io(e) {
|
|
4864
4798
|
let t = e[0];
|
|
4865
4799
|
return t === "t" || t === "b" ? "y" : "x";
|
|
4866
4800
|
}
|
|
4867
|
-
function
|
|
4868
|
-
return io(
|
|
4801
|
+
function ao(e) {
|
|
4802
|
+
return no(io(e));
|
|
4869
4803
|
}
|
|
4870
|
-
function
|
|
4804
|
+
function oo(e, t, n) {
|
|
4871
4805
|
n === void 0 && (n = !1);
|
|
4872
|
-
let r =
|
|
4873
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
4806
|
+
let r = to(e), i = ao(e), a = ro(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4807
|
+
return t.reference[a] > t.floating[a] && (o = go(o)), [o, go(o)];
|
|
4874
4808
|
}
|
|
4875
|
-
function
|
|
4876
|
-
let t =
|
|
4809
|
+
function so(e) {
|
|
4810
|
+
let t = go(e);
|
|
4877
4811
|
return [
|
|
4878
|
-
|
|
4812
|
+
co(e),
|
|
4879
4813
|
t,
|
|
4880
|
-
|
|
4814
|
+
co(t)
|
|
4881
4815
|
];
|
|
4882
4816
|
}
|
|
4883
|
-
function
|
|
4817
|
+
function co(e) {
|
|
4884
4818
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
4885
4819
|
}
|
|
4886
|
-
var
|
|
4887
|
-
function
|
|
4820
|
+
var lo = ["left", "right"], uo = ["right", "left"], fo = ["top", "bottom"], po = ["bottom", "top"];
|
|
4821
|
+
function mo(e, t, n) {
|
|
4888
4822
|
switch (e) {
|
|
4889
4823
|
case "top":
|
|
4890
|
-
case "bottom": return n ? t ?
|
|
4824
|
+
case "bottom": return n ? t ? uo : lo : t ? lo : uo;
|
|
4891
4825
|
case "left":
|
|
4892
|
-
case "right": return t ?
|
|
4826
|
+
case "right": return t ? fo : po;
|
|
4893
4827
|
default: return [];
|
|
4894
4828
|
}
|
|
4895
4829
|
}
|
|
4896
|
-
function
|
|
4897
|
-
let i =
|
|
4898
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
4830
|
+
function ho(e, t, n, r) {
|
|
4831
|
+
let i = to(e), a = mo(eo(e), n === "start", r);
|
|
4832
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(co)))), a;
|
|
4899
4833
|
}
|
|
4900
|
-
function
|
|
4901
|
-
let t =
|
|
4902
|
-
return
|
|
4834
|
+
function go(e) {
|
|
4835
|
+
let t = eo(e);
|
|
4836
|
+
return Za[t] + e.slice(t.length);
|
|
4903
4837
|
}
|
|
4904
|
-
function
|
|
4838
|
+
function _o(e) {
|
|
4905
4839
|
return {
|
|
4906
4840
|
top: 0,
|
|
4907
4841
|
right: 0,
|
|
@@ -4910,15 +4844,15 @@ function yo(e) {
|
|
|
4910
4844
|
...e
|
|
4911
4845
|
};
|
|
4912
4846
|
}
|
|
4913
|
-
function
|
|
4847
|
+
function vo(e) {
|
|
4914
4848
|
return typeof e == "number" ? {
|
|
4915
4849
|
top: e,
|
|
4916
4850
|
right: e,
|
|
4917
4851
|
bottom: e,
|
|
4918
4852
|
left: e
|
|
4919
|
-
} :
|
|
4853
|
+
} : _o(e);
|
|
4920
4854
|
}
|
|
4921
|
-
function
|
|
4855
|
+
function yo(e) {
|
|
4922
4856
|
let { x: t, y: n, width: r, height: i } = e;
|
|
4923
4857
|
return {
|
|
4924
4858
|
width: r,
|
|
@@ -4933,8 +4867,8 @@ function xo(e) {
|
|
|
4933
4867
|
}
|
|
4934
4868
|
//#endregion
|
|
4935
4869
|
//#region node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
4936
|
-
function
|
|
4937
|
-
let { reference: r, floating: i } = e, a =
|
|
4870
|
+
function bo(e, t, n) {
|
|
4871
|
+
let { reference: r, floating: i } = e, a = io(t), o = ao(t), s = ro(o), c = eo(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
4938
4872
|
switch (c) {
|
|
4939
4873
|
case "top":
|
|
4940
4874
|
p = {
|
|
@@ -4965,7 +4899,7 @@ function So(e, t, n) {
|
|
|
4965
4899
|
y: r.y
|
|
4966
4900
|
};
|
|
4967
4901
|
}
|
|
4968
|
-
switch (
|
|
4902
|
+
switch (to(t)) {
|
|
4969
4903
|
case "start":
|
|
4970
4904
|
p[o] -= f * (n && l ? -1 : 1);
|
|
4971
4905
|
break;
|
|
@@ -4975,9 +4909,9 @@ function So(e, t, n) {
|
|
|
4975
4909
|
}
|
|
4976
4910
|
return p;
|
|
4977
4911
|
}
|
|
4978
|
-
async function
|
|
4912
|
+
async function xo(e, t) {
|
|
4979
4913
|
t === void 0 && (t = {});
|
|
4980
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
4914
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = $a(t, e), p = vo(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = yo(await i.getClippingRect({
|
|
4981
4915
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
4982
4916
|
boundary: c,
|
|
4983
4917
|
rootBoundary: l,
|
|
@@ -4990,7 +4924,7 @@ async function Co(e, t) {
|
|
|
4990
4924
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
4991
4925
|
x: 1,
|
|
4992
4926
|
y: 1
|
|
4993
|
-
}, y =
|
|
4927
|
+
}, y = yo(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4994
4928
|
elements: o,
|
|
4995
4929
|
rect: g,
|
|
4996
4930
|
offsetParent: _,
|
|
@@ -5003,15 +4937,15 @@ async function Co(e, t) {
|
|
|
5003
4937
|
right: (y.right - h.right + p.right) / v.x
|
|
5004
4938
|
};
|
|
5005
4939
|
}
|
|
5006
|
-
var
|
|
4940
|
+
var So = 50, Co = async (e, t, n) => {
|
|
5007
4941
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
5008
4942
|
...o,
|
|
5009
|
-
detectOverflow:
|
|
4943
|
+
detectOverflow: xo
|
|
5010
4944
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
5011
4945
|
reference: e,
|
|
5012
4946
|
floating: t,
|
|
5013
4947
|
strategy: i
|
|
5014
|
-
}), { x: u, y: d } =
|
|
4948
|
+
}), { x: u, y: d } = bo(l, r, c), f = r, p = 0, m = {};
|
|
5015
4949
|
for (let n = 0; n < a.length; n++) {
|
|
5016
4950
|
let h = a[n];
|
|
5017
4951
|
if (!h) continue;
|
|
@@ -5032,11 +4966,11 @@ var wo = 50, To = async (e, t, n) => {
|
|
|
5032
4966
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
5033
4967
|
...m[g],
|
|
5034
4968
|
...b
|
|
5035
|
-
}, x && p <
|
|
4969
|
+
}, x && p < So && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
5036
4970
|
reference: e,
|
|
5037
4971
|
floating: t,
|
|
5038
4972
|
strategy: i
|
|
5039
|
-
}) : x.rects), {x: u, y: d} =
|
|
4973
|
+
}) : x.rects), {x: u, y: d} = bo(l, f, c)), n = -1);
|
|
5040
4974
|
}
|
|
5041
4975
|
return {
|
|
5042
4976
|
x: u,
|
|
@@ -5045,18 +4979,18 @@ var wo = 50, To = async (e, t, n) => {
|
|
|
5045
4979
|
strategy: i,
|
|
5046
4980
|
middlewareData: m
|
|
5047
4981
|
};
|
|
5048
|
-
},
|
|
4982
|
+
}, wo = (e) => ({
|
|
5049
4983
|
name: "arrow",
|
|
5050
4984
|
options: e,
|
|
5051
4985
|
async fn(t) {
|
|
5052
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
4986
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = $a(e, t) || {};
|
|
5053
4987
|
if (l == null) return {};
|
|
5054
|
-
let d =
|
|
4988
|
+
let d = vo(u), f = {
|
|
5055
4989
|
x: n,
|
|
5056
4990
|
y: r
|
|
5057
|
-
}, p =
|
|
4991
|
+
}, p = ao(i), m = ro(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
5058
4992
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
5059
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
4993
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = qa(d[_], T), ee = qa(d[v], T), D = E, O = C - h[m] - ee, k = C / 2 - h[m] / 2 + w, A = Qa(D, k, O), j = !c.arrow && to(i) != null && k !== A && a.reference[m] / 2 - (k < D ? E : ee) - h[m] / 2 < 0, M = j ? k < D ? k - D : k - O : 0;
|
|
5060
4994
|
return {
|
|
5061
4995
|
[p]: f[p] + M,
|
|
5062
4996
|
data: {
|
|
@@ -5067,19 +5001,19 @@ var wo = 50, To = async (e, t, n) => {
|
|
|
5067
5001
|
reset: j
|
|
5068
5002
|
};
|
|
5069
5003
|
}
|
|
5070
|
-
}),
|
|
5004
|
+
}), To = function(e) {
|
|
5071
5005
|
return e === void 0 && (e = {}), {
|
|
5072
5006
|
name: "flip",
|
|
5073
5007
|
options: e,
|
|
5074
5008
|
async fn(t) {
|
|
5075
5009
|
var n;
|
|
5076
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
5010
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = $a(e, t);
|
|
5077
5011
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
5078
|
-
let g =
|
|
5079
|
-
!d && x && b.push(...
|
|
5012
|
+
let g = eo(r), _ = io(o), v = eo(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [go(o)] : so(o)), x = p !== "none";
|
|
5013
|
+
!d && x && b.push(...ho(o, m, p, y));
|
|
5080
5014
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
5081
5015
|
if (l && w.push(C[g]), u) {
|
|
5082
|
-
let e =
|
|
5016
|
+
let e = oo(r, a, y);
|
|
5083
5017
|
w.push(C[e[0]], C[e[1]]);
|
|
5084
5018
|
}
|
|
5085
5019
|
if (T = [...T, {
|
|
@@ -5087,7 +5021,7 @@ var wo = 50, To = async (e, t, n) => {
|
|
|
5087
5021
|
overflows: w
|
|
5088
5022
|
}], !w.every((e) => e <= 0)) {
|
|
5089
5023
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
5090
|
-
if (t && (!(u === "alignment" && _ !==
|
|
5024
|
+
if (t && (!(u === "alignment" && _ !== io(t)) || T.every((e) => io(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
5091
5025
|
data: {
|
|
5092
5026
|
index: e,
|
|
5093
5027
|
overflows: T
|
|
@@ -5099,7 +5033,7 @@ var wo = 50, To = async (e, t, n) => {
|
|
|
5099
5033
|
case "bestFit": {
|
|
5100
5034
|
let e = T.filter((e) => {
|
|
5101
5035
|
if (x) {
|
|
5102
|
-
let t =
|
|
5036
|
+
let t = io(e.placement);
|
|
5103
5037
|
return t === _ || t === "y";
|
|
5104
5038
|
}
|
|
5105
5039
|
return !0;
|
|
@@ -5117,7 +5051,7 @@ var wo = 50, To = async (e, t, n) => {
|
|
|
5117
5051
|
}
|
|
5118
5052
|
};
|
|
5119
5053
|
};
|
|
5120
|
-
function
|
|
5054
|
+
function Eo(e, t) {
|
|
5121
5055
|
return {
|
|
5122
5056
|
top: e.top - t.height,
|
|
5123
5057
|
right: e.right - t.width,
|
|
@@ -5125,43 +5059,43 @@ function Oo(e, t) {
|
|
|
5125
5059
|
left: e.left - t.width
|
|
5126
5060
|
};
|
|
5127
5061
|
}
|
|
5128
|
-
function
|
|
5129
|
-
return
|
|
5062
|
+
function Do(e) {
|
|
5063
|
+
return Ka.some((t) => e[t] >= 0);
|
|
5130
5064
|
}
|
|
5131
|
-
var
|
|
5065
|
+
var Oo = function(e) {
|
|
5132
5066
|
return e === void 0 && (e = {}), {
|
|
5133
5067
|
name: "hide",
|
|
5134
5068
|
options: e,
|
|
5135
5069
|
async fn(t) {
|
|
5136
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
5070
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = $a(e, t);
|
|
5137
5071
|
switch (i) {
|
|
5138
5072
|
case "referenceHidden": {
|
|
5139
|
-
let e =
|
|
5073
|
+
let e = Eo(await r.detectOverflow(t, {
|
|
5140
5074
|
...a,
|
|
5141
5075
|
elementContext: "reference"
|
|
5142
5076
|
}), n.reference);
|
|
5143
5077
|
return { data: {
|
|
5144
5078
|
referenceHiddenOffsets: e,
|
|
5145
|
-
referenceHidden:
|
|
5079
|
+
referenceHidden: Do(e)
|
|
5146
5080
|
} };
|
|
5147
5081
|
}
|
|
5148
5082
|
case "escaped": {
|
|
5149
|
-
let e =
|
|
5083
|
+
let e = Eo(await r.detectOverflow(t, {
|
|
5150
5084
|
...a,
|
|
5151
5085
|
altBoundary: !0
|
|
5152
5086
|
}), n.floating);
|
|
5153
5087
|
return { data: {
|
|
5154
5088
|
escapedOffsets: e,
|
|
5155
|
-
escaped:
|
|
5089
|
+
escaped: Do(e)
|
|
5156
5090
|
} };
|
|
5157
5091
|
}
|
|
5158
5092
|
default: return {};
|
|
5159
5093
|
}
|
|
5160
5094
|
}
|
|
5161
5095
|
};
|
|
5162
|
-
},
|
|
5163
|
-
async function
|
|
5164
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
5096
|
+
}, ko = /* @__PURE__ */ new Set(["left", "top"]);
|
|
5097
|
+
async function Ao(e, t) {
|
|
5098
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = eo(n), s = to(n), c = io(n) === "y", l = ko.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = $a(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
5165
5099
|
mainAxis: d,
|
|
5166
5100
|
crossAxis: 0,
|
|
5167
5101
|
alignmentAxis: null
|
|
@@ -5178,13 +5112,13 @@ async function Mo(e, t) {
|
|
|
5178
5112
|
y: p * u
|
|
5179
5113
|
};
|
|
5180
5114
|
}
|
|
5181
|
-
var
|
|
5115
|
+
var jo = function(e) {
|
|
5182
5116
|
return e === void 0 && (e = 0), {
|
|
5183
5117
|
name: "offset",
|
|
5184
5118
|
options: e,
|
|
5185
5119
|
async fn(t) {
|
|
5186
5120
|
var n;
|
|
5187
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
5121
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Ao(t, e);
|
|
5188
5122
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
5189
5123
|
x: r + s.x,
|
|
5190
5124
|
y: i + s.y,
|
|
@@ -5195,7 +5129,7 @@ var No = function(e) {
|
|
|
5195
5129
|
};
|
|
5196
5130
|
}
|
|
5197
5131
|
};
|
|
5198
|
-
},
|
|
5132
|
+
}, Mo = function(e) {
|
|
5199
5133
|
return e === void 0 && (e = {}), {
|
|
5200
5134
|
name: "shift",
|
|
5201
5135
|
options: e,
|
|
@@ -5206,17 +5140,17 @@ var No = function(e) {
|
|
|
5206
5140
|
x: t,
|
|
5207
5141
|
y: n
|
|
5208
5142
|
};
|
|
5209
|
-
} }, ...l } =
|
|
5143
|
+
} }, ...l } = $a(e, t), u = {
|
|
5210
5144
|
x: n,
|
|
5211
5145
|
y: r
|
|
5212
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
5146
|
+
}, d = await a.detectOverflow(t, l), f = io(eo(i)), p = no(f), m = u[p], h = u[f];
|
|
5213
5147
|
if (o) {
|
|
5214
5148
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
5215
|
-
m =
|
|
5149
|
+
m = Qa(n, m, r);
|
|
5216
5150
|
}
|
|
5217
5151
|
if (s) {
|
|
5218
5152
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
5219
|
-
h =
|
|
5153
|
+
h = Qa(n, h, r);
|
|
5220
5154
|
}
|
|
5221
5155
|
let g = c.fn({
|
|
5222
5156
|
...t,
|
|
@@ -5236,14 +5170,14 @@ var No = function(e) {
|
|
|
5236
5170
|
};
|
|
5237
5171
|
}
|
|
5238
5172
|
};
|
|
5239
|
-
},
|
|
5173
|
+
}, No = function(e) {
|
|
5240
5174
|
return e === void 0 && (e = {}), {
|
|
5241
5175
|
options: e,
|
|
5242
5176
|
fn(t) {
|
|
5243
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } =
|
|
5177
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = $a(e, t), u = {
|
|
5244
5178
|
x: n,
|
|
5245
5179
|
y: r
|
|
5246
|
-
}, d =
|
|
5180
|
+
}, d = io(i), f = no(d), p = u[f], m = u[d], h = $a(s, t), g = typeof h == "number" ? {
|
|
5247
5181
|
mainAxis: h,
|
|
5248
5182
|
crossAxis: 0
|
|
5249
5183
|
} : {
|
|
@@ -5256,7 +5190,7 @@ var No = function(e) {
|
|
|
5256
5190
|
p < t ? p = t : p > n && (p = n);
|
|
5257
5191
|
}
|
|
5258
5192
|
if (l) {
|
|
5259
|
-
let e = f === "y" ? "width" : "height", t =
|
|
5193
|
+
let e = f === "y" ? "width" : "height", t = ko.has(eo(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
5260
5194
|
m < n ? m = n : m > r && (m = r);
|
|
5261
5195
|
}
|
|
5262
5196
|
return {
|
|
@@ -5265,15 +5199,15 @@ var No = function(e) {
|
|
|
5265
5199
|
};
|
|
5266
5200
|
}
|
|
5267
5201
|
};
|
|
5268
|
-
},
|
|
5202
|
+
}, Po = function(e) {
|
|
5269
5203
|
return e === void 0 && (e = {}), {
|
|
5270
5204
|
name: "size",
|
|
5271
5205
|
options: e,
|
|
5272
5206
|
async fn(t) {
|
|
5273
5207
|
var n, r;
|
|
5274
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
5208
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = $a(e, t), u = await o.detectOverflow(t, l), d = eo(i), f = to(i), p = io(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
5275
5209
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
5276
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
5210
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = qa(h - u[g], v), x = qa(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
5277
5211
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
5278
5212
|
let e = Z(u.left, 0), t = Z(u.right, 0), n = Z(u.top, 0), r = Z(u.bottom, 0);
|
|
5279
5213
|
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : Z(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : Z(u.top, u.bottom));
|
|
@@ -5290,39 +5224,39 @@ var No = function(e) {
|
|
|
5290
5224
|
};
|
|
5291
5225
|
//#endregion
|
|
5292
5226
|
//#region node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
5293
|
-
function
|
|
5227
|
+
function Fo() {
|
|
5294
5228
|
return typeof window < "u";
|
|
5295
5229
|
}
|
|
5296
|
-
function
|
|
5297
|
-
return
|
|
5230
|
+
function Io(e) {
|
|
5231
|
+
return Ro(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5298
5232
|
}
|
|
5299
5233
|
function Q(e) {
|
|
5300
5234
|
var t;
|
|
5301
5235
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
5302
5236
|
}
|
|
5237
|
+
function Lo(e) {
|
|
5238
|
+
return ((Ro(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
5239
|
+
}
|
|
5240
|
+
function Ro(e) {
|
|
5241
|
+
return Fo() ? e instanceof Node || e instanceof Q(e).Node : !1;
|
|
5242
|
+
}
|
|
5303
5243
|
function zo(e) {
|
|
5304
|
-
return (
|
|
5244
|
+
return Fo() ? e instanceof Element || e instanceof Q(e).Element : !1;
|
|
5305
5245
|
}
|
|
5306
5246
|
function Bo(e) {
|
|
5307
|
-
return
|
|
5247
|
+
return Fo() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
|
|
5308
5248
|
}
|
|
5309
5249
|
function Vo(e) {
|
|
5310
|
-
return
|
|
5250
|
+
return !Fo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
|
|
5311
5251
|
}
|
|
5312
5252
|
function Ho(e) {
|
|
5313
|
-
|
|
5253
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = $o(e);
|
|
5254
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
5314
5255
|
}
|
|
5315
5256
|
function Uo(e) {
|
|
5316
|
-
return
|
|
5257
|
+
return /^(table|td|th)$/.test(Io(e));
|
|
5317
5258
|
}
|
|
5318
5259
|
function Wo(e) {
|
|
5319
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } = ts(e);
|
|
5320
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
5321
|
-
}
|
|
5322
|
-
function Go(e) {
|
|
5323
|
-
return /^(table|td|th)$/.test(Ro(e));
|
|
5324
|
-
}
|
|
5325
|
-
function Ko(e) {
|
|
5326
5260
|
try {
|
|
5327
5261
|
if (e.matches(":popover-open")) return !0;
|
|
5328
5262
|
} catch {}
|
|
@@ -5332,31 +5266,31 @@ function Ko(e) {
|
|
|
5332
5266
|
return !1;
|
|
5333
5267
|
}
|
|
5334
5268
|
}
|
|
5335
|
-
var
|
|
5336
|
-
function
|
|
5337
|
-
let t =
|
|
5338
|
-
return
|
|
5339
|
-
}
|
|
5340
|
-
function
|
|
5341
|
-
let t =
|
|
5342
|
-
for (;
|
|
5343
|
-
if (
|
|
5344
|
-
if (
|
|
5345
|
-
t =
|
|
5269
|
+
var Go = /transform|translate|scale|rotate|perspective|filter/, Ko = /paint|layout|strict|content/, qo = (e) => !!e && e !== "none", Jo;
|
|
5270
|
+
function Yo(e) {
|
|
5271
|
+
let t = zo(e) ? $o(e) : e;
|
|
5272
|
+
return qo(t.transform) || qo(t.translate) || qo(t.scale) || qo(t.rotate) || qo(t.perspective) || !Zo() && (qo(t.backdropFilter) || qo(t.filter)) || Go.test(t.willChange || "") || Ko.test(t.contain || "");
|
|
5273
|
+
}
|
|
5274
|
+
function Xo(e) {
|
|
5275
|
+
let t = ts(e);
|
|
5276
|
+
for (; Bo(t) && !Qo(t);) {
|
|
5277
|
+
if (Yo(t)) return t;
|
|
5278
|
+
if (Wo(t)) return null;
|
|
5279
|
+
t = ts(t);
|
|
5346
5280
|
}
|
|
5347
5281
|
return null;
|
|
5348
5282
|
}
|
|
5349
|
-
function
|
|
5350
|
-
return
|
|
5283
|
+
function Zo() {
|
|
5284
|
+
return Jo ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Jo;
|
|
5351
5285
|
}
|
|
5352
|
-
function
|
|
5353
|
-
return /^(html|body|#document)$/.test(
|
|
5286
|
+
function Qo(e) {
|
|
5287
|
+
return /^(html|body|#document)$/.test(Io(e));
|
|
5354
5288
|
}
|
|
5355
|
-
function
|
|
5289
|
+
function $o(e) {
|
|
5356
5290
|
return Q(e).getComputedStyle(e);
|
|
5357
5291
|
}
|
|
5358
|
-
function
|
|
5359
|
-
return
|
|
5292
|
+
function es(e) {
|
|
5293
|
+
return zo(e) ? {
|
|
5360
5294
|
scrollLeft: e.scrollLeft,
|
|
5361
5295
|
scrollTop: e.scrollTop
|
|
5362
5296
|
} : {
|
|
@@ -5364,101 +5298,101 @@ function ns(e) {
|
|
|
5364
5298
|
scrollTop: e.scrollY
|
|
5365
5299
|
};
|
|
5366
5300
|
}
|
|
5367
|
-
function
|
|
5368
|
-
if (
|
|
5369
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
5370
|
-
return
|
|
5301
|
+
function ts(e) {
|
|
5302
|
+
if (Io(e) === "html") return e;
|
|
5303
|
+
let t = e.assignedSlot || e.parentNode || Vo(e) && e.host || Lo(e);
|
|
5304
|
+
return Vo(t) ? t.host : t;
|
|
5371
5305
|
}
|
|
5372
|
-
function
|
|
5373
|
-
let t =
|
|
5374
|
-
return
|
|
5306
|
+
function ns(e) {
|
|
5307
|
+
let t = ts(e);
|
|
5308
|
+
return Qo(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Bo(t) && Ho(t) ? t : ns(t);
|
|
5375
5309
|
}
|
|
5376
|
-
function
|
|
5310
|
+
function rs(e, t, n) {
|
|
5377
5311
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
5378
|
-
let r =
|
|
5312
|
+
let r = ns(e), i = r === e.ownerDocument?.body, a = Q(r);
|
|
5379
5313
|
if (i) {
|
|
5380
|
-
let e =
|
|
5381
|
-
return t.concat(a, a.visualViewport || [],
|
|
5382
|
-
} else return t.concat(r,
|
|
5314
|
+
let e = is(a);
|
|
5315
|
+
return t.concat(a, a.visualViewport || [], Ho(r) ? r : [], e && n ? rs(e) : []);
|
|
5316
|
+
} else return t.concat(r, rs(r, [], n));
|
|
5383
5317
|
}
|
|
5384
|
-
function
|
|
5318
|
+
function is(e) {
|
|
5385
5319
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5386
5320
|
}
|
|
5387
5321
|
//#endregion
|
|
5388
5322
|
//#region node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
5389
|
-
function
|
|
5390
|
-
let t =
|
|
5323
|
+
function as(e) {
|
|
5324
|
+
let t = $o(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Bo(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Ja(n) !== a || Ja(r) !== o;
|
|
5391
5325
|
return s && (n = a, r = o), {
|
|
5392
5326
|
width: n,
|
|
5393
5327
|
height: r,
|
|
5394
5328
|
$: s
|
|
5395
5329
|
};
|
|
5396
5330
|
}
|
|
5397
|
-
function
|
|
5398
|
-
return
|
|
5331
|
+
function os(e) {
|
|
5332
|
+
return zo(e) ? e : e.contextElement;
|
|
5399
5333
|
}
|
|
5400
|
-
function
|
|
5401
|
-
let t =
|
|
5402
|
-
if (!
|
|
5403
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
5334
|
+
function ss(e) {
|
|
5335
|
+
let t = os(e);
|
|
5336
|
+
if (!Bo(t)) return Xa(1);
|
|
5337
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = as(t), o = (a ? Ja(n.width) : n.width) / r, s = (a ? Ja(n.height) : n.height) / i;
|
|
5404
5338
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
5405
5339
|
x: o,
|
|
5406
5340
|
y: s
|
|
5407
5341
|
};
|
|
5408
5342
|
}
|
|
5409
|
-
var
|
|
5410
|
-
function
|
|
5343
|
+
var cs = /* @__PURE__ */ Xa(0);
|
|
5344
|
+
function ls(e) {
|
|
5411
5345
|
let t = Q(e);
|
|
5412
|
-
return
|
|
5346
|
+
return !Zo() || !t.visualViewport ? cs : {
|
|
5413
5347
|
x: t.visualViewport.offsetLeft,
|
|
5414
5348
|
y: t.visualViewport.offsetTop
|
|
5415
5349
|
};
|
|
5416
5350
|
}
|
|
5417
|
-
function
|
|
5351
|
+
function us(e, t, n) {
|
|
5418
5352
|
return t === void 0 && (t = !1), !n || t && n !== Q(e) ? !1 : t;
|
|
5419
5353
|
}
|
|
5420
|
-
function
|
|
5354
|
+
function ds(e, t, n, r) {
|
|
5421
5355
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5422
|
-
let i = e.getBoundingClientRect(), a =
|
|
5423
|
-
t && (r ?
|
|
5424
|
-
let s =
|
|
5356
|
+
let i = e.getBoundingClientRect(), a = os(e), o = Xa(1);
|
|
5357
|
+
t && (r ? zo(r) && (o = ss(r)) : o = ss(e));
|
|
5358
|
+
let s = us(a, n, r) ? ls(a) : Xa(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
5425
5359
|
if (a) {
|
|
5426
|
-
let e = Q(a), t = r &&
|
|
5360
|
+
let e = Q(a), t = r && zo(r) ? Q(r) : r, n = e, i = is(n);
|
|
5427
5361
|
for (; i && r && t !== n;) {
|
|
5428
|
-
let e =
|
|
5429
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Q(i), i =
|
|
5362
|
+
let e = ss(i), t = i.getBoundingClientRect(), r = $o(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
5363
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Q(i), i = is(n);
|
|
5430
5364
|
}
|
|
5431
5365
|
}
|
|
5432
|
-
return
|
|
5366
|
+
return yo({
|
|
5433
5367
|
width: u,
|
|
5434
5368
|
height: d,
|
|
5435
5369
|
x: c,
|
|
5436
5370
|
y: l
|
|
5437
5371
|
});
|
|
5438
5372
|
}
|
|
5439
|
-
function
|
|
5440
|
-
let n =
|
|
5441
|
-
return t ? t.left + n :
|
|
5373
|
+
function fs(e, t) {
|
|
5374
|
+
let n = es(e).scrollLeft;
|
|
5375
|
+
return t ? t.left + n : ds(Lo(e)).left + n;
|
|
5442
5376
|
}
|
|
5443
|
-
function
|
|
5377
|
+
function ps(e, t) {
|
|
5444
5378
|
let n = e.getBoundingClientRect();
|
|
5445
5379
|
return {
|
|
5446
|
-
x: n.left + t.scrollLeft -
|
|
5380
|
+
x: n.left + t.scrollLeft - fs(e, n),
|
|
5447
5381
|
y: n.top + t.scrollTop
|
|
5448
5382
|
};
|
|
5449
5383
|
}
|
|
5450
|
-
function
|
|
5451
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
5384
|
+
function ms(e) {
|
|
5385
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Lo(r), s = t ? Wo(t.floating) : !1;
|
|
5452
5386
|
if (r === o || s && a) return n;
|
|
5453
5387
|
let c = {
|
|
5454
5388
|
scrollLeft: 0,
|
|
5455
5389
|
scrollTop: 0
|
|
5456
|
-
}, l =
|
|
5457
|
-
if ((d || !d && !a) && ((
|
|
5458
|
-
let e =
|
|
5459
|
-
l =
|
|
5390
|
+
}, l = Xa(1), u = Xa(0), d = Bo(r);
|
|
5391
|
+
if ((d || !d && !a) && ((Io(r) !== "body" || Ho(o)) && (c = es(r)), d)) {
|
|
5392
|
+
let e = ds(r);
|
|
5393
|
+
l = ss(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
5460
5394
|
}
|
|
5461
|
-
let f = o && !d && !a ?
|
|
5395
|
+
let f = o && !d && !a ? ps(o, c) : Xa(0);
|
|
5462
5396
|
return {
|
|
5463
5397
|
width: n.width * l.x,
|
|
5464
5398
|
height: n.height * l.y,
|
|
@@ -5466,31 +5400,31 @@ function gs(e) {
|
|
|
5466
5400
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
5467
5401
|
};
|
|
5468
5402
|
}
|
|
5469
|
-
function
|
|
5403
|
+
function hs(e) {
|
|
5470
5404
|
return Array.from(e.getClientRects());
|
|
5471
5405
|
}
|
|
5472
|
-
function
|
|
5473
|
-
let t =
|
|
5474
|
-
return
|
|
5406
|
+
function gs(e) {
|
|
5407
|
+
let t = Lo(e), n = es(e), r = e.ownerDocument.body, i = Z(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Z(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + fs(e), s = -n.scrollTop;
|
|
5408
|
+
return $o(r).direction === "rtl" && (o += Z(t.clientWidth, r.clientWidth) - i), {
|
|
5475
5409
|
width: i,
|
|
5476
5410
|
height: a,
|
|
5477
5411
|
x: o,
|
|
5478
5412
|
y: s
|
|
5479
5413
|
};
|
|
5480
5414
|
}
|
|
5481
|
-
var
|
|
5482
|
-
function
|
|
5483
|
-
let n = Q(e), r =
|
|
5415
|
+
var _s = 25;
|
|
5416
|
+
function vs(e, t) {
|
|
5417
|
+
let n = Q(e), r = Lo(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
5484
5418
|
if (i) {
|
|
5485
5419
|
a = i.width, o = i.height;
|
|
5486
|
-
let e =
|
|
5420
|
+
let e = Zo();
|
|
5487
5421
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
5488
5422
|
}
|
|
5489
|
-
let l =
|
|
5423
|
+
let l = fs(r);
|
|
5490
5424
|
if (l <= 0) {
|
|
5491
5425
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
5492
|
-
o <=
|
|
5493
|
-
} else l <=
|
|
5426
|
+
o <= _s && (a -= o);
|
|
5427
|
+
} else l <= _s && (a += l);
|
|
5494
5428
|
return {
|
|
5495
5429
|
width: a,
|
|
5496
5430
|
height: o,
|
|
@@ -5498,8 +5432,8 @@ function bs(e, t) {
|
|
|
5498
5432
|
y: c
|
|
5499
5433
|
};
|
|
5500
5434
|
}
|
|
5501
|
-
function
|
|
5502
|
-
let n =
|
|
5435
|
+
function ys(e, t) {
|
|
5436
|
+
let n = ds(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Bo(e) ? ss(e) : Xa(1);
|
|
5503
5437
|
return {
|
|
5504
5438
|
width: e.clientWidth * a.x,
|
|
5505
5439
|
height: e.clientHeight * a.y,
|
|
@@ -5507,13 +5441,13 @@ function xs(e, t) {
|
|
|
5507
5441
|
y: r * a.y
|
|
5508
5442
|
};
|
|
5509
5443
|
}
|
|
5510
|
-
function
|
|
5444
|
+
function bs(e, t, n) {
|
|
5511
5445
|
let r;
|
|
5512
|
-
if (t === "viewport") r =
|
|
5513
|
-
else if (t === "document") r =
|
|
5514
|
-
else if (
|
|
5446
|
+
if (t === "viewport") r = vs(e, n);
|
|
5447
|
+
else if (t === "document") r = gs(Lo(e));
|
|
5448
|
+
else if (zo(t)) r = ys(t, n);
|
|
5515
5449
|
else {
|
|
5516
|
-
let n =
|
|
5450
|
+
let n = ls(e);
|
|
5517
5451
|
r = {
|
|
5518
5452
|
x: t.x - n.x,
|
|
5519
5453
|
y: t.y - n.y,
|
|
@@ -5521,27 +5455,27 @@ function Ss(e, t, n) {
|
|
|
5521
5455
|
height: t.height
|
|
5522
5456
|
};
|
|
5523
5457
|
}
|
|
5524
|
-
return
|
|
5458
|
+
return yo(r);
|
|
5525
5459
|
}
|
|
5526
|
-
function
|
|
5527
|
-
let n =
|
|
5528
|
-
return n === t || !
|
|
5460
|
+
function xs(e, t) {
|
|
5461
|
+
let n = ts(e);
|
|
5462
|
+
return n === t || !zo(n) || Qo(n) ? !1 : $o(n).position === "fixed" || xs(n, t);
|
|
5529
5463
|
}
|
|
5530
|
-
function
|
|
5464
|
+
function Ss(e, t) {
|
|
5531
5465
|
let n = t.get(e);
|
|
5532
5466
|
if (n) return n;
|
|
5533
|
-
let r =
|
|
5534
|
-
for (;
|
|
5535
|
-
let t =
|
|
5536
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
5467
|
+
let r = rs(e, [], !1).filter((e) => zo(e) && Io(e) !== "body"), i = null, a = $o(e).position === "fixed", o = a ? ts(e) : e;
|
|
5468
|
+
for (; zo(o) && !Qo(o);) {
|
|
5469
|
+
let t = $o(o), n = Yo(o);
|
|
5470
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Ho(o) && !n && xs(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = ts(o);
|
|
5537
5471
|
}
|
|
5538
5472
|
return t.set(e, r), r;
|
|
5539
5473
|
}
|
|
5540
|
-
function
|
|
5541
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
5474
|
+
function Cs(e) {
|
|
5475
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Wo(t) ? [] : Ss(t, this._c) : [].concat(n), r], o = bs(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
5542
5476
|
for (let e = 1; e < a.length; e++) {
|
|
5543
|
-
let n =
|
|
5544
|
-
s = Z(n.top, s), c =
|
|
5477
|
+
let n = bs(t, a[e], i);
|
|
5478
|
+
s = Z(n.top, s), c = qa(n.right, c), l = qa(n.bottom, l), u = Z(n.left, u);
|
|
5545
5479
|
}
|
|
5546
5480
|
return {
|
|
5547
5481
|
width: c - u,
|
|
@@ -5550,27 +5484,27 @@ function Ts(e) {
|
|
|
5550
5484
|
y: s
|
|
5551
5485
|
};
|
|
5552
5486
|
}
|
|
5553
|
-
function
|
|
5554
|
-
let { width: t, height: n } =
|
|
5487
|
+
function ws(e) {
|
|
5488
|
+
let { width: t, height: n } = as(e);
|
|
5555
5489
|
return {
|
|
5556
5490
|
width: t,
|
|
5557
5491
|
height: n
|
|
5558
5492
|
};
|
|
5559
5493
|
}
|
|
5560
|
-
function
|
|
5561
|
-
let r =
|
|
5494
|
+
function Ts(e, t, n) {
|
|
5495
|
+
let r = Bo(t), i = Lo(t), a = n === "fixed", o = ds(e, !0, a, t), s = {
|
|
5562
5496
|
scrollLeft: 0,
|
|
5563
5497
|
scrollTop: 0
|
|
5564
|
-
}, c =
|
|
5498
|
+
}, c = Xa(0);
|
|
5565
5499
|
function l() {
|
|
5566
|
-
c.x =
|
|
5500
|
+
c.x = fs(i);
|
|
5567
5501
|
}
|
|
5568
|
-
if (r || !r && !a) if ((
|
|
5569
|
-
let e =
|
|
5502
|
+
if (r || !r && !a) if ((Io(t) !== "body" || Ho(i)) && (s = es(t)), r) {
|
|
5503
|
+
let e = ds(t, !0, a, t);
|
|
5570
5504
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
5571
5505
|
} else i && l();
|
|
5572
5506
|
a && !r && i && l();
|
|
5573
|
-
let u = i && !r && !a ?
|
|
5507
|
+
let u = i && !r && !a ? ps(i, s) : Xa(0);
|
|
5574
5508
|
return {
|
|
5575
5509
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
5576
5510
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -5578,34 +5512,34 @@ function Ds(e, t, n) {
|
|
|
5578
5512
|
height: o.height
|
|
5579
5513
|
};
|
|
5580
5514
|
}
|
|
5581
|
-
function
|
|
5582
|
-
return
|
|
5515
|
+
function Es(e) {
|
|
5516
|
+
return $o(e).position === "static";
|
|
5583
5517
|
}
|
|
5584
|
-
function
|
|
5585
|
-
if (!
|
|
5518
|
+
function Ds(e, t) {
|
|
5519
|
+
if (!Bo(e) || $o(e).position === "fixed") return null;
|
|
5586
5520
|
if (t) return t(e);
|
|
5587
5521
|
let n = e.offsetParent;
|
|
5588
|
-
return
|
|
5522
|
+
return Lo(e) === n && (n = n.ownerDocument.body), n;
|
|
5589
5523
|
}
|
|
5590
|
-
function
|
|
5524
|
+
function Os(e, t) {
|
|
5591
5525
|
let n = Q(e);
|
|
5592
|
-
if (
|
|
5593
|
-
if (!
|
|
5594
|
-
let t =
|
|
5595
|
-
for (; t && !
|
|
5596
|
-
if (
|
|
5597
|
-
t =
|
|
5526
|
+
if (Wo(e)) return n;
|
|
5527
|
+
if (!Bo(e)) {
|
|
5528
|
+
let t = ts(e);
|
|
5529
|
+
for (; t && !Qo(t);) {
|
|
5530
|
+
if (zo(t) && !Es(t)) return t;
|
|
5531
|
+
t = ts(t);
|
|
5598
5532
|
}
|
|
5599
5533
|
return n;
|
|
5600
5534
|
}
|
|
5601
|
-
let r =
|
|
5602
|
-
for (; r &&
|
|
5603
|
-
return r &&
|
|
5535
|
+
let r = Ds(e, t);
|
|
5536
|
+
for (; r && Uo(r) && Es(r);) r = Ds(r, t);
|
|
5537
|
+
return r && Qo(r) && Es(r) && !Yo(r) ? n : r || Xo(e) || n;
|
|
5604
5538
|
}
|
|
5605
|
-
var
|
|
5606
|
-
let t = this.getOffsetParent ||
|
|
5539
|
+
var ks = async function(e) {
|
|
5540
|
+
let t = this.getOffsetParent || Os, n = this.getDimensions, r = await n(e.floating);
|
|
5607
5541
|
return {
|
|
5608
|
-
reference:
|
|
5542
|
+
reference: Ts(e.reference, await t(e.floating), e.strategy),
|
|
5609
5543
|
floating: {
|
|
5610
5544
|
x: 0,
|
|
5611
5545
|
y: 0,
|
|
@@ -5614,26 +5548,26 @@ var js = async function(e) {
|
|
|
5614
5548
|
}
|
|
5615
5549
|
};
|
|
5616
5550
|
};
|
|
5617
|
-
function
|
|
5618
|
-
return
|
|
5619
|
-
}
|
|
5620
|
-
var
|
|
5621
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5622
|
-
getDocumentElement:
|
|
5623
|
-
getClippingRect:
|
|
5624
|
-
getOffsetParent:
|
|
5625
|
-
getElementRects:
|
|
5626
|
-
getClientRects:
|
|
5627
|
-
getDimensions:
|
|
5628
|
-
getScale:
|
|
5629
|
-
isElement:
|
|
5630
|
-
isRTL:
|
|
5551
|
+
function As(e) {
|
|
5552
|
+
return $o(e).direction === "rtl";
|
|
5553
|
+
}
|
|
5554
|
+
var js = {
|
|
5555
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ms,
|
|
5556
|
+
getDocumentElement: Lo,
|
|
5557
|
+
getClippingRect: Cs,
|
|
5558
|
+
getOffsetParent: Os,
|
|
5559
|
+
getElementRects: ks,
|
|
5560
|
+
getClientRects: hs,
|
|
5561
|
+
getDimensions: ws,
|
|
5562
|
+
getScale: ss,
|
|
5563
|
+
isElement: zo,
|
|
5564
|
+
isRTL: As
|
|
5631
5565
|
};
|
|
5632
|
-
function
|
|
5566
|
+
function Ms(e, t) {
|
|
5633
5567
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5634
5568
|
}
|
|
5635
|
-
function
|
|
5636
|
-
let n = null, r, i =
|
|
5569
|
+
function Ns(e, t) {
|
|
5570
|
+
let n = null, r, i = Lo(e);
|
|
5637
5571
|
function a() {
|
|
5638
5572
|
var e;
|
|
5639
5573
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -5642,9 +5576,9 @@ function Fs(e, t) {
|
|
|
5642
5576
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
5643
5577
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
5644
5578
|
if (s || t(), !f || !p) return;
|
|
5645
|
-
let m =
|
|
5579
|
+
let m = Ya(d), h = Ya(i.clientWidth - (u + f)), g = Ya(i.clientHeight - (d + p)), _ = Ya(u), v = {
|
|
5646
5580
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
5647
|
-
threshold: Z(0,
|
|
5581
|
+
threshold: Z(0, qa(1, c)) || 1
|
|
5648
5582
|
}, y = !0;
|
|
5649
5583
|
function b(t) {
|
|
5650
5584
|
let n = t[0].intersectionRatio;
|
|
@@ -5654,7 +5588,7 @@ function Fs(e, t) {
|
|
|
5654
5588
|
o(!1, 1e-7);
|
|
5655
5589
|
}, 1e3);
|
|
5656
5590
|
}
|
|
5657
|
-
n === 1 && !
|
|
5591
|
+
n === 1 && !Ms(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
5658
5592
|
}
|
|
5659
5593
|
try {
|
|
5660
5594
|
n = new IntersectionObserver(b, {
|
|
@@ -5668,13 +5602,13 @@ function Fs(e, t) {
|
|
|
5668
5602
|
}
|
|
5669
5603
|
return o(!0), a;
|
|
5670
5604
|
}
|
|
5671
|
-
function
|
|
5605
|
+
function Ps(e, t, n, r) {
|
|
5672
5606
|
r === void 0 && (r = {});
|
|
5673
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
5607
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = os(e), u = i || a ? [...l ? rs(l) : [], ...t ? rs(t) : []] : [];
|
|
5674
5608
|
u.forEach((e) => {
|
|
5675
5609
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
5676
5610
|
});
|
|
5677
|
-
let d = l && s ?
|
|
5611
|
+
let d = l && s ? Ns(l, n) : null, f = -1, p = null;
|
|
5678
5612
|
o && (p = new ResizeObserver((e) => {
|
|
5679
5613
|
let [r] = e;
|
|
5680
5614
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -5682,11 +5616,11 @@ function Is(e, t, n, r) {
|
|
|
5682
5616
|
(e = p) == null || e.observe(t);
|
|
5683
5617
|
})), n();
|
|
5684
5618
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
5685
|
-
let m, h = c ?
|
|
5619
|
+
let m, h = c ? ds(e) : null;
|
|
5686
5620
|
c && g();
|
|
5687
5621
|
function g() {
|
|
5688
|
-
let t =
|
|
5689
|
-
h && !
|
|
5622
|
+
let t = ds(e);
|
|
5623
|
+
h && !Ms(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
5690
5624
|
}
|
|
5691
5625
|
return n(), () => {
|
|
5692
5626
|
var e;
|
|
@@ -5695,20 +5629,20 @@ function Is(e, t, n, r) {
|
|
|
5695
5629
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
5696
5630
|
};
|
|
5697
5631
|
}
|
|
5698
|
-
var
|
|
5632
|
+
var Fs = jo, Is = Mo, Ls = To, Rs = Po, zs = Oo, Bs = wo, Vs = No, Hs = (e, t, n) => {
|
|
5699
5633
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
5700
|
-
platform:
|
|
5634
|
+
platform: js,
|
|
5701
5635
|
...n
|
|
5702
5636
|
}, a = {
|
|
5703
5637
|
...i.platform,
|
|
5704
5638
|
_c: r
|
|
5705
5639
|
};
|
|
5706
|
-
return
|
|
5640
|
+
return Co(e, t, {
|
|
5707
5641
|
...i,
|
|
5708
5642
|
platform: a
|
|
5709
5643
|
});
|
|
5710
|
-
},
|
|
5711
|
-
function
|
|
5644
|
+
}, Us = typeof document < "u" ? s : function() {};
|
|
5645
|
+
function Ws(e, t) {
|
|
5712
5646
|
if (e === t) return !0;
|
|
5713
5647
|
if (typeof e != typeof t) return !1;
|
|
5714
5648
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -5716,33 +5650,33 @@ function Ks(e, t) {
|
|
|
5716
5650
|
if (e && t && typeof e == "object") {
|
|
5717
5651
|
if (Array.isArray(e)) {
|
|
5718
5652
|
if (n = e.length, n !== t.length) return !1;
|
|
5719
|
-
for (r = n; r-- !== 0;) if (!
|
|
5653
|
+
for (r = n; r-- !== 0;) if (!Ws(e[r], t[r])) return !1;
|
|
5720
5654
|
return !0;
|
|
5721
5655
|
}
|
|
5722
5656
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
5723
5657
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
5724
5658
|
for (r = n; r-- !== 0;) {
|
|
5725
5659
|
let n = i[r];
|
|
5726
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
5660
|
+
if (!(n === "_owner" && e.$$typeof) && !Ws(e[n], t[n])) return !1;
|
|
5727
5661
|
}
|
|
5728
5662
|
return !0;
|
|
5729
5663
|
}
|
|
5730
5664
|
return e !== e && t !== t;
|
|
5731
5665
|
}
|
|
5732
|
-
function
|
|
5666
|
+
function Gs(e) {
|
|
5733
5667
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5734
5668
|
}
|
|
5735
|
-
function
|
|
5736
|
-
let n =
|
|
5669
|
+
function Ks(e, t) {
|
|
5670
|
+
let n = Gs(e);
|
|
5737
5671
|
return Math.round(t * n) / n;
|
|
5738
5672
|
}
|
|
5739
|
-
function
|
|
5673
|
+
function qs(t) {
|
|
5740
5674
|
let n = e.useRef(t);
|
|
5741
|
-
return
|
|
5675
|
+
return Us(() => {
|
|
5742
5676
|
n.current = t;
|
|
5743
5677
|
}), n;
|
|
5744
5678
|
}
|
|
5745
|
-
function
|
|
5679
|
+
function Js(t) {
|
|
5746
5680
|
t === void 0 && (t = {});
|
|
5747
5681
|
let { placement: n = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = t, [d, f] = e.useState({
|
|
5748
5682
|
x: 0,
|
|
@@ -5752,24 +5686,24 @@ function Xs(t) {
|
|
|
5752
5686
|
middlewareData: {},
|
|
5753
5687
|
isPositioned: !1
|
|
5754
5688
|
}), [p, h] = e.useState(i);
|
|
5755
|
-
|
|
5689
|
+
Ws(p, i) || h(i);
|
|
5756
5690
|
let [g, _] = e.useState(null), [v, y] = e.useState(null), b = e.useCallback((e) => {
|
|
5757
5691
|
e !== w.current && (w.current = e, _(e));
|
|
5758
5692
|
}, []), x = e.useCallback((e) => {
|
|
5759
5693
|
e !== T.current && (T.current = e, y(e));
|
|
5760
|
-
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D =
|
|
5694
|
+
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D = qs(l), O = qs(a), k = qs(u), A = e.useCallback(() => {
|
|
5761
5695
|
if (!w.current || !T.current) return;
|
|
5762
5696
|
let e = {
|
|
5763
5697
|
placement: n,
|
|
5764
5698
|
strategy: r,
|
|
5765
5699
|
middleware: p
|
|
5766
5700
|
};
|
|
5767
|
-
O.current && (e.platform = O.current),
|
|
5701
|
+
O.current && (e.platform = O.current), Hs(w.current, T.current, e).then((e) => {
|
|
5768
5702
|
let t = {
|
|
5769
5703
|
...e,
|
|
5770
5704
|
isPositioned: k.current !== !1
|
|
5771
5705
|
};
|
|
5772
|
-
j.current && !
|
|
5706
|
+
j.current && !Ws(E.current, t) && (E.current = t, m.flushSync(() => {
|
|
5773
5707
|
f(t);
|
|
5774
5708
|
}));
|
|
5775
5709
|
});
|
|
@@ -5780,16 +5714,16 @@ function Xs(t) {
|
|
|
5780
5714
|
O,
|
|
5781
5715
|
k
|
|
5782
5716
|
]);
|
|
5783
|
-
|
|
5717
|
+
Us(() => {
|
|
5784
5718
|
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((e) => ({
|
|
5785
5719
|
...e,
|
|
5786
5720
|
isPositioned: !1
|
|
5787
5721
|
})));
|
|
5788
5722
|
}, [u]);
|
|
5789
5723
|
let j = e.useRef(!1);
|
|
5790
|
-
|
|
5724
|
+
Us(() => (j.current = !0, () => {
|
|
5791
5725
|
j.current = !1;
|
|
5792
|
-
}), []),
|
|
5726
|
+
}), []), Us(() => {
|
|
5793
5727
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
5794
5728
|
if (D.current) return D.current(S, C, A);
|
|
5795
5729
|
A();
|
|
@@ -5816,11 +5750,11 @@ function Xs(t) {
|
|
|
5816
5750
|
top: 0
|
|
5817
5751
|
};
|
|
5818
5752
|
if (!N.floating) return e;
|
|
5819
|
-
let t =
|
|
5753
|
+
let t = Ks(N.floating, d.x), n = Ks(N.floating, d.y);
|
|
5820
5754
|
return c ? {
|
|
5821
5755
|
...e,
|
|
5822
5756
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
5823
|
-
...
|
|
5757
|
+
...Gs(N.floating) >= 1.5 && { willChange: "transform" }
|
|
5824
5758
|
} : {
|
|
5825
5759
|
position: r,
|
|
5826
5760
|
left: t,
|
|
@@ -5847,7 +5781,7 @@ function Xs(t) {
|
|
|
5847
5781
|
te
|
|
5848
5782
|
]);
|
|
5849
5783
|
}
|
|
5850
|
-
var
|
|
5784
|
+
var Ys = (e) => {
|
|
5851
5785
|
function t(e) {
|
|
5852
5786
|
return {}.hasOwnProperty.call(e, "current");
|
|
5853
5787
|
}
|
|
@@ -5856,61 +5790,61 @@ var Zs = (e) => {
|
|
|
5856
5790
|
options: e,
|
|
5857
5791
|
fn(n) {
|
|
5858
5792
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
5859
|
-
return r && t(r) ? r.current == null ? {} :
|
|
5793
|
+
return r && t(r) ? r.current == null ? {} : Bs({
|
|
5860
5794
|
element: r.current,
|
|
5861
5795
|
padding: i
|
|
5862
|
-
}).fn(n) : r ?
|
|
5796
|
+
}).fn(n) : r ? Bs({
|
|
5863
5797
|
element: r,
|
|
5864
5798
|
padding: i
|
|
5865
5799
|
}).fn(n) : {};
|
|
5866
5800
|
}
|
|
5867
5801
|
};
|
|
5868
|
-
},
|
|
5869
|
-
let n =
|
|
5802
|
+
}, Xs = (e, t) => {
|
|
5803
|
+
let n = Fs(e);
|
|
5870
5804
|
return {
|
|
5871
5805
|
name: n.name,
|
|
5872
5806
|
fn: n.fn,
|
|
5873
5807
|
options: [e, t]
|
|
5874
5808
|
};
|
|
5875
|
-
},
|
|
5876
|
-
let n =
|
|
5809
|
+
}, Zs = (e, t) => {
|
|
5810
|
+
let n = Is(e);
|
|
5877
5811
|
return {
|
|
5878
5812
|
name: n.name,
|
|
5879
5813
|
fn: n.fn,
|
|
5880
5814
|
options: [e, t]
|
|
5881
5815
|
};
|
|
5882
|
-
},
|
|
5883
|
-
fn:
|
|
5816
|
+
}, Qs = (e, t) => ({
|
|
5817
|
+
fn: Vs(e).fn,
|
|
5884
5818
|
options: [e, t]
|
|
5885
|
-
}),
|
|
5886
|
-
let n =
|
|
5819
|
+
}), $s = (e, t) => {
|
|
5820
|
+
let n = Ls(e);
|
|
5887
5821
|
return {
|
|
5888
5822
|
name: n.name,
|
|
5889
5823
|
fn: n.fn,
|
|
5890
5824
|
options: [e, t]
|
|
5891
5825
|
};
|
|
5892
|
-
},
|
|
5893
|
-
let n =
|
|
5826
|
+
}, ec = (e, t) => {
|
|
5827
|
+
let n = Rs(e);
|
|
5894
5828
|
return {
|
|
5895
5829
|
name: n.name,
|
|
5896
5830
|
fn: n.fn,
|
|
5897
5831
|
options: [e, t]
|
|
5898
5832
|
};
|
|
5899
|
-
},
|
|
5900
|
-
let n =
|
|
5833
|
+
}, tc = (e, t) => {
|
|
5834
|
+
let n = zs(e);
|
|
5901
5835
|
return {
|
|
5902
5836
|
name: n.name,
|
|
5903
5837
|
fn: n.fn,
|
|
5904
5838
|
options: [e, t]
|
|
5905
5839
|
};
|
|
5906
|
-
},
|
|
5907
|
-
let n =
|
|
5840
|
+
}, nc = (e, t) => {
|
|
5841
|
+
let n = Ys(e);
|
|
5908
5842
|
return {
|
|
5909
5843
|
name: n.name,
|
|
5910
5844
|
fn: n.fn,
|
|
5911
5845
|
options: [e, t]
|
|
5912
5846
|
};
|
|
5913
|
-
},
|
|
5847
|
+
}, rc = "Arrow", ic = e.forwardRef((e, t) => {
|
|
5914
5848
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
5915
5849
|
return /* @__PURE__ */ f(Y.svg, {
|
|
5916
5850
|
...a,
|
|
@@ -5922,19 +5856,19 @@ var Zs = (e) => {
|
|
|
5922
5856
|
children: e.asChild ? n : /* @__PURE__ */ f("polygon", { points: "0,0 30,0 15,10" })
|
|
5923
5857
|
});
|
|
5924
5858
|
});
|
|
5925
|
-
|
|
5926
|
-
var
|
|
5859
|
+
ic.displayName = rc;
|
|
5860
|
+
var ac = ic, oc = "Popper", [sc, cc] = mr(oc), [lc, uc] = sc(oc), dc = (t) => {
|
|
5927
5861
|
let { __scopePopper: n, children: r } = t, [i, a] = e.useState(null);
|
|
5928
|
-
return /* @__PURE__ */ f(
|
|
5862
|
+
return /* @__PURE__ */ f(lc, {
|
|
5929
5863
|
scope: n,
|
|
5930
5864
|
anchor: i,
|
|
5931
5865
|
onAnchorChange: a,
|
|
5932
5866
|
children: r
|
|
5933
5867
|
});
|
|
5934
5868
|
};
|
|
5935
|
-
|
|
5936
|
-
var
|
|
5937
|
-
let { __scopePopper: r, virtualRef: i, ...a } = t, o = fc
|
|
5869
|
+
dc.displayName = oc;
|
|
5870
|
+
var fc = "PopperAnchor", pc = e.forwardRef((t, n) => {
|
|
5871
|
+
let { __scopePopper: r, virtualRef: i, ...a } = t, o = uc(fc, r), s = e.useRef(null), c = J(n, s), l = e.useRef(null);
|
|
5938
5872
|
return e.useEffect(() => {
|
|
5939
5873
|
let e = l.current;
|
|
5940
5874
|
l.current = i?.current || s.current, e !== l.current && o.onAnchorChange(l.current);
|
|
@@ -5943,9 +5877,9 @@ var mc = "PopperAnchor", hc = e.forwardRef((t, n) => {
|
|
|
5943
5877
|
ref: c
|
|
5944
5878
|
});
|
|
5945
5879
|
});
|
|
5946
|
-
|
|
5947
|
-
var
|
|
5948
|
-
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = t, v =
|
|
5880
|
+
pc.displayName = fc;
|
|
5881
|
+
var mc = "PopperContent", [hc, gc] = sc(mc), _c = e.forwardRef((t, n) => {
|
|
5882
|
+
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = t, v = uc(mc, r), [y, b] = e.useState(null), x = J(n, (e) => b(e)), [S, C] = e.useState(null), w = Ga(S), T = w?.width ?? 0, E = w?.height ?? 0, ee = i + (o === "center" ? "" : "-" + o), D = typeof d == "number" ? d : {
|
|
5949
5883
|
top: 0,
|
|
5950
5884
|
right: 0,
|
|
5951
5885
|
bottom: 0,
|
|
@@ -5953,51 +5887,51 @@ var gc = "PopperContent", [_c, vc] = lc(gc), yc = e.forwardRef((t, n) => {
|
|
|
5953
5887
|
...d
|
|
5954
5888
|
}, O = Array.isArray(u) ? u : [u], k = O.length > 0, A = {
|
|
5955
5889
|
padding: D,
|
|
5956
|
-
boundary: O.filter(
|
|
5890
|
+
boundary: O.filter(xc),
|
|
5957
5891
|
altBoundary: k
|
|
5958
|
-
}, { refs: j, floatingStyles: M, placement: N, isPositioned: te, middlewareData: P } =
|
|
5892
|
+
}, { refs: j, floatingStyles: M, placement: N, isPositioned: te, middlewareData: P } = Js({
|
|
5959
5893
|
strategy: "fixed",
|
|
5960
5894
|
placement: ee,
|
|
5961
|
-
whileElementsMounted: (...e) =>
|
|
5895
|
+
whileElementsMounted: (...e) => Ps(...e, { animationFrame: h === "always" }),
|
|
5962
5896
|
elements: { reference: v.anchor },
|
|
5963
5897
|
middleware: [
|
|
5964
|
-
|
|
5898
|
+
Xs({
|
|
5965
5899
|
mainAxis: a + E,
|
|
5966
5900
|
alignmentAxis: s
|
|
5967
5901
|
}),
|
|
5968
|
-
l &&
|
|
5902
|
+
l && Zs({
|
|
5969
5903
|
mainAxis: !0,
|
|
5970
5904
|
crossAxis: !1,
|
|
5971
|
-
limiter: p === "partial" ?
|
|
5905
|
+
limiter: p === "partial" ? Qs() : void 0,
|
|
5972
5906
|
...A
|
|
5973
5907
|
}),
|
|
5974
|
-
l &&
|
|
5975
|
-
|
|
5908
|
+
l && $s({ ...A }),
|
|
5909
|
+
ec({
|
|
5976
5910
|
...A,
|
|
5977
5911
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
5978
5912
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
5979
5913
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
5980
5914
|
}
|
|
5981
5915
|
}),
|
|
5982
|
-
S &&
|
|
5916
|
+
S && nc({
|
|
5983
5917
|
element: S,
|
|
5984
5918
|
padding: c
|
|
5985
5919
|
}),
|
|
5986
|
-
|
|
5920
|
+
Sc({
|
|
5987
5921
|
arrowWidth: T,
|
|
5988
5922
|
arrowHeight: E
|
|
5989
5923
|
}),
|
|
5990
|
-
m &&
|
|
5924
|
+
m && tc({
|
|
5991
5925
|
strategy: "referenceHidden",
|
|
5992
5926
|
...A
|
|
5993
5927
|
})
|
|
5994
5928
|
]
|
|
5995
|
-
}), [ne, re] =
|
|
5996
|
-
|
|
5929
|
+
}), [ne, re] = Cc(N), ie = Gr(g);
|
|
5930
|
+
_r(() => {
|
|
5997
5931
|
te && ie?.();
|
|
5998
5932
|
}, [te, ie]);
|
|
5999
5933
|
let ae = P.arrow?.x, F = P.arrow?.y, I = P.arrow?.centerOffset !== 0, [oe, se] = e.useState();
|
|
6000
|
-
return
|
|
5934
|
+
return _r(() => {
|
|
6001
5935
|
y && se(window.getComputedStyle(y).zIndex);
|
|
6002
5936
|
}, [y]), /* @__PURE__ */ f("div", {
|
|
6003
5937
|
ref: j.setFloating,
|
|
@@ -6014,7 +5948,7 @@ var gc = "PopperContent", [_c, vc] = lc(gc), yc = e.forwardRef((t, n) => {
|
|
|
6014
5948
|
}
|
|
6015
5949
|
},
|
|
6016
5950
|
dir: t.dir,
|
|
6017
|
-
children: /* @__PURE__ */ f(
|
|
5951
|
+
children: /* @__PURE__ */ f(hc, {
|
|
6018
5952
|
scope: r,
|
|
6019
5953
|
placedSide: ne,
|
|
6020
5954
|
onArrowChange: C,
|
|
@@ -6034,14 +5968,14 @@ var gc = "PopperContent", [_c, vc] = lc(gc), yc = e.forwardRef((t, n) => {
|
|
|
6034
5968
|
})
|
|
6035
5969
|
});
|
|
6036
5970
|
});
|
|
6037
|
-
|
|
6038
|
-
var
|
|
5971
|
+
_c.displayName = mc;
|
|
5972
|
+
var vc = "PopperArrow", yc = {
|
|
6039
5973
|
top: "bottom",
|
|
6040
5974
|
right: "left",
|
|
6041
5975
|
bottom: "top",
|
|
6042
5976
|
left: "right"
|
|
6043
|
-
},
|
|
6044
|
-
let { __scopePopper: n, ...r } = e, i = vc
|
|
5977
|
+
}, bc = e.forwardRef(function(e, t) {
|
|
5978
|
+
let { __scopePopper: n, ...r } = e, i = gc(vc, n), a = yc[i.placedSide];
|
|
6045
5979
|
return /* @__PURE__ */ f("span", {
|
|
6046
5980
|
ref: i.onArrowChange,
|
|
6047
5981
|
style: {
|
|
@@ -6063,7 +5997,7 @@ var bc = "PopperArrow", xc = {
|
|
|
6063
5997
|
}[i.placedSide],
|
|
6064
5998
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
6065
5999
|
},
|
|
6066
|
-
children: /* @__PURE__ */ f(
|
|
6000
|
+
children: /* @__PURE__ */ f(ac, {
|
|
6067
6001
|
...r,
|
|
6068
6002
|
ref: t,
|
|
6069
6003
|
style: {
|
|
@@ -6073,15 +6007,15 @@ var bc = "PopperArrow", xc = {
|
|
|
6073
6007
|
})
|
|
6074
6008
|
});
|
|
6075
6009
|
});
|
|
6076
|
-
|
|
6077
|
-
function
|
|
6010
|
+
bc.displayName = vc;
|
|
6011
|
+
function xc(e) {
|
|
6078
6012
|
return e !== null;
|
|
6079
6013
|
}
|
|
6080
|
-
var
|
|
6014
|
+
var Sc = (e) => ({
|
|
6081
6015
|
name: "transformOrigin",
|
|
6082
6016
|
options: e,
|
|
6083
6017
|
fn(t) {
|
|
6084
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
6018
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Cc(n), u = {
|
|
6085
6019
|
start: "0%",
|
|
6086
6020
|
center: "50%",
|
|
6087
6021
|
end: "100%"
|
|
@@ -6092,35 +6026,35 @@ var wc = (e) => ({
|
|
|
6092
6026
|
} };
|
|
6093
6027
|
}
|
|
6094
6028
|
});
|
|
6095
|
-
function
|
|
6029
|
+
function Cc(e) {
|
|
6096
6030
|
let [t, n = "center"] = e.split("-");
|
|
6097
6031
|
return [t, n];
|
|
6098
6032
|
}
|
|
6099
|
-
var
|
|
6033
|
+
var wc = dc, Tc = pc, Ec = _c, Dc = bc, Oc = "rovingFocusGroup.onEntryFocus", kc = {
|
|
6100
6034
|
bubbles: !1,
|
|
6101
6035
|
cancelable: !0
|
|
6102
|
-
},
|
|
6036
|
+
}, Ac = "RovingFocusGroup", [jc, Mc, Nc] = gr(Ac), [Pc, Fc] = mr(Ac, [Nc]), [Ic, Lc] = Pc(Ac), Rc = e.forwardRef((e, t) => /* @__PURE__ */ f(jc.Provider, {
|
|
6103
6037
|
scope: e.__scopeRovingFocusGroup,
|
|
6104
|
-
children: /* @__PURE__ */ f(
|
|
6038
|
+
children: /* @__PURE__ */ f(jc.Slot, {
|
|
6105
6039
|
scope: e.__scopeRovingFocusGroup,
|
|
6106
|
-
children: /* @__PURE__ */ f(
|
|
6040
|
+
children: /* @__PURE__ */ f(zc, {
|
|
6107
6041
|
...e,
|
|
6108
6042
|
ref: t
|
|
6109
6043
|
})
|
|
6110
6044
|
})
|
|
6111
6045
|
}));
|
|
6112
|
-
|
|
6113
|
-
var
|
|
6114
|
-
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...p } = t, m = e.useRef(null), h = J(n, m), g =
|
|
6046
|
+
Rc.displayName = Ac;
|
|
6047
|
+
var zc = e.forwardRef((t, n) => {
|
|
6048
|
+
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...p } = t, m = e.useRef(null), h = J(n, m), g = Wr(o), [_, v] = yr({
|
|
6115
6049
|
prop: s,
|
|
6116
6050
|
defaultProp: c ?? null,
|
|
6117
6051
|
onChange: l,
|
|
6118
|
-
caller:
|
|
6119
|
-
}), [y, b] = e.useState(!1), x =
|
|
6052
|
+
caller: Ac
|
|
6053
|
+
}), [y, b] = e.useState(!1), x = Gr(u), S = Mc(r), C = e.useRef(!1), [w, T] = e.useState(0);
|
|
6120
6054
|
return e.useEffect(() => {
|
|
6121
6055
|
let e = m.current;
|
|
6122
|
-
if (e) return e.addEventListener(
|
|
6123
|
-
}, [x]), /* @__PURE__ */ f(
|
|
6056
|
+
if (e) return e.addEventListener(Oc, x), () => e.removeEventListener(Oc, x);
|
|
6057
|
+
}, [x]), /* @__PURE__ */ f(Ic, {
|
|
6124
6058
|
scope: r,
|
|
6125
6059
|
orientation: i,
|
|
6126
6060
|
dir: g,
|
|
@@ -6145,10 +6079,10 @@ var Vc = e.forwardRef((t, n) => {
|
|
|
6145
6079
|
onFocus: X(t.onFocus, (e) => {
|
|
6146
6080
|
let t = !C.current;
|
|
6147
6081
|
if (e.target === e.currentTarget && t && !y) {
|
|
6148
|
-
let t = new CustomEvent(
|
|
6082
|
+
let t = new CustomEvent(Oc, kc);
|
|
6149
6083
|
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
6150
6084
|
let e = S().filter((e) => e.focusable);
|
|
6151
|
-
|
|
6085
|
+
Gc([
|
|
6152
6086
|
e.find((e) => e.active),
|
|
6153
6087
|
e.find((e) => e.id === _),
|
|
6154
6088
|
...e
|
|
@@ -6160,15 +6094,15 @@ var Vc = e.forwardRef((t, n) => {
|
|
|
6160
6094
|
onBlur: X(t.onBlur, () => b(!1))
|
|
6161
6095
|
})
|
|
6162
6096
|
});
|
|
6163
|
-
}),
|
|
6164
|
-
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: o, children: s, ...c } = t, l =
|
|
6097
|
+
}), Bc = "RovingFocusGroupItem", Vc = e.forwardRef((t, n) => {
|
|
6098
|
+
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: o, children: s, ...c } = t, l = kr(), u = o || l, d = Lc(Bc, r), p = d.currentTabStopId === u, m = Mc(r), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: _ } = d;
|
|
6165
6099
|
return e.useEffect(() => {
|
|
6166
6100
|
if (i) return h(), () => g();
|
|
6167
6101
|
}, [
|
|
6168
6102
|
i,
|
|
6169
6103
|
h,
|
|
6170
6104
|
g
|
|
6171
|
-
]), /* @__PURE__ */ f(
|
|
6105
|
+
]), /* @__PURE__ */ f(jc.ItemSlot, {
|
|
6172
6106
|
scope: r,
|
|
6173
6107
|
id: u,
|
|
6174
6108
|
focusable: i,
|
|
@@ -6188,7 +6122,7 @@ var Vc = e.forwardRef((t, n) => {
|
|
|
6188
6122
|
return;
|
|
6189
6123
|
}
|
|
6190
6124
|
if (e.target !== e.currentTarget) return;
|
|
6191
|
-
let t =
|
|
6125
|
+
let t = Wc(e, d.orientation, d.dir);
|
|
6192
6126
|
if (t !== void 0) {
|
|
6193
6127
|
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
6194
6128
|
e.preventDefault();
|
|
@@ -6197,9 +6131,9 @@ var Vc = e.forwardRef((t, n) => {
|
|
|
6197
6131
|
else if (t === "prev" || t === "next") {
|
|
6198
6132
|
t === "prev" && n.reverse();
|
|
6199
6133
|
let r = n.indexOf(e.currentTarget);
|
|
6200
|
-
n = d.loop ?
|
|
6134
|
+
n = d.loop ? Kc(n, r + 1) : n.slice(r + 1);
|
|
6201
6135
|
}
|
|
6202
|
-
setTimeout(() =>
|
|
6136
|
+
setTimeout(() => Gc(n));
|
|
6203
6137
|
}
|
|
6204
6138
|
}),
|
|
6205
6139
|
children: typeof s == "function" ? s({
|
|
@@ -6209,8 +6143,8 @@ var Vc = e.forwardRef((t, n) => {
|
|
|
6209
6143
|
})
|
|
6210
6144
|
});
|
|
6211
6145
|
});
|
|
6212
|
-
|
|
6213
|
-
var
|
|
6146
|
+
Vc.displayName = Bc;
|
|
6147
|
+
var Hc = {
|
|
6214
6148
|
ArrowLeft: "prev",
|
|
6215
6149
|
ArrowUp: "prev",
|
|
6216
6150
|
ArrowRight: "next",
|
|
@@ -6220,40 +6154,40 @@ var Wc = {
|
|
|
6220
6154
|
PageDown: "last",
|
|
6221
6155
|
End: "last"
|
|
6222
6156
|
};
|
|
6223
|
-
function
|
|
6157
|
+
function Uc(e, t) {
|
|
6224
6158
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
6225
6159
|
}
|
|
6226
|
-
function
|
|
6227
|
-
let r =
|
|
6228
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
6160
|
+
function Wc(e, t, n) {
|
|
6161
|
+
let r = Uc(e.key, n);
|
|
6162
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Hc[r];
|
|
6229
6163
|
}
|
|
6230
|
-
function
|
|
6164
|
+
function Gc(e, t = !1) {
|
|
6231
6165
|
let n = document.activeElement;
|
|
6232
6166
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
6233
6167
|
}
|
|
6234
|
-
function
|
|
6168
|
+
function Kc(e, t) {
|
|
6235
6169
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
6236
6170
|
}
|
|
6237
|
-
var
|
|
6171
|
+
var qc = Rc, Jc = Vc, Yc = ["Enter", " "], Xc = [
|
|
6238
6172
|
"ArrowDown",
|
|
6239
6173
|
"PageUp",
|
|
6240
6174
|
"Home"
|
|
6241
|
-
],
|
|
6175
|
+
], Zc = [
|
|
6242
6176
|
"ArrowUp",
|
|
6243
6177
|
"PageDown",
|
|
6244
6178
|
"End"
|
|
6245
|
-
],
|
|
6246
|
-
ltr: [...
|
|
6247
|
-
rtl: [...
|
|
6248
|
-
},
|
|
6179
|
+
], Qc = [...Xc, ...Zc], $c = {
|
|
6180
|
+
ltr: [...Yc, "ArrowRight"],
|
|
6181
|
+
rtl: [...Yc, "ArrowLeft"]
|
|
6182
|
+
}, el = {
|
|
6249
6183
|
ltr: ["ArrowLeft"],
|
|
6250
6184
|
rtl: ["ArrowRight"]
|
|
6251
|
-
},
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
]),
|
|
6256
|
-
let { __scopeMenu: n, open: r = !1, children: i, dir: a, onOpenChange: o, modal: s = !0 } = t, c =
|
|
6185
|
+
}, tl = "Menu", [nl, rl, il] = gr(tl), [al, ol] = mr(tl, [
|
|
6186
|
+
il,
|
|
6187
|
+
cc,
|
|
6188
|
+
Fc
|
|
6189
|
+
]), sl = cc(), cl = Fc(), [ll, ul] = al(tl), [dl, fl] = al(tl), pl = (t) => {
|
|
6190
|
+
let { __scopeMenu: n, open: r = !1, children: i, dir: a, onOpenChange: o, modal: s = !0 } = t, c = sl(n), [l, u] = e.useState(null), d = e.useRef(!1), p = Gr(o), m = Wr(a);
|
|
6257
6191
|
return e.useEffect(() => {
|
|
6258
6192
|
let e = () => {
|
|
6259
6193
|
d.current = !0, document.addEventListener("pointerdown", t, {
|
|
@@ -6267,15 +6201,15 @@ var Yc = Bc, Xc = Uc, Zc = ["Enter", " "], Qc = [
|
|
|
6267
6201
|
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
6268
6202
|
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
6269
6203
|
};
|
|
6270
|
-
}, []), /* @__PURE__ */ f(
|
|
6204
|
+
}, []), /* @__PURE__ */ f(wc, {
|
|
6271
6205
|
...c,
|
|
6272
|
-
children: /* @__PURE__ */ f(
|
|
6206
|
+
children: /* @__PURE__ */ f(ll, {
|
|
6273
6207
|
scope: n,
|
|
6274
6208
|
open: r,
|
|
6275
6209
|
onOpenChange: p,
|
|
6276
6210
|
content: l,
|
|
6277
6211
|
onContentChange: u,
|
|
6278
|
-
children: /* @__PURE__ */ f(
|
|
6212
|
+
children: /* @__PURE__ */ f(dl, {
|
|
6279
6213
|
scope: n,
|
|
6280
6214
|
onClose: e.useCallback(() => p(!1), [p]),
|
|
6281
6215
|
isUsingKeyboardRef: d,
|
|
@@ -6286,24 +6220,24 @@ var Yc = Bc, Xc = Uc, Zc = ["Enter", " "], Qc = [
|
|
|
6286
6220
|
})
|
|
6287
6221
|
});
|
|
6288
6222
|
};
|
|
6289
|
-
|
|
6290
|
-
var
|
|
6223
|
+
pl.displayName = tl;
|
|
6224
|
+
var ml = "MenuAnchor", hl = e.forwardRef((e, t) => {
|
|
6291
6225
|
let { __scopeMenu: n, ...r } = e;
|
|
6292
|
-
return /* @__PURE__ */ f(
|
|
6293
|
-
...
|
|
6226
|
+
return /* @__PURE__ */ f(Tc, {
|
|
6227
|
+
...sl(n),
|
|
6294
6228
|
...r,
|
|
6295
6229
|
ref: t
|
|
6296
6230
|
});
|
|
6297
6231
|
});
|
|
6298
|
-
|
|
6299
|
-
var
|
|
6300
|
-
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a =
|
|
6301
|
-
return /* @__PURE__ */ f(
|
|
6232
|
+
hl.displayName = ml;
|
|
6233
|
+
var gl = "MenuPortal", [_l, vl] = al(gl, { forceMount: void 0 }), yl = (e) => {
|
|
6234
|
+
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = ul(gl, t);
|
|
6235
|
+
return /* @__PURE__ */ f(_l, {
|
|
6302
6236
|
scope: t,
|
|
6303
6237
|
forceMount: n,
|
|
6304
|
-
children: /* @__PURE__ */ f(
|
|
6238
|
+
children: /* @__PURE__ */ f(Cr, {
|
|
6305
6239
|
present: n || a.open,
|
|
6306
|
-
children: /* @__PURE__ */ f(
|
|
6240
|
+
children: /* @__PURE__ */ f(Ci, {
|
|
6307
6241
|
asChild: !0,
|
|
6308
6242
|
container: i,
|
|
6309
6243
|
children: r
|
|
@@ -6311,31 +6245,31 @@ var vl = "MenuPortal", [yl, bl] = sl(vl, { forceMount: void 0 }), xl = (e) => {
|
|
|
6311
6245
|
})
|
|
6312
6246
|
});
|
|
6313
6247
|
};
|
|
6314
|
-
|
|
6315
|
-
var
|
|
6316
|
-
let n = bl
|
|
6317
|
-
return /* @__PURE__ */ f(
|
|
6248
|
+
yl.displayName = gl;
|
|
6249
|
+
var bl = "MenuContent", [xl, Sl] = al(bl), Cl = e.forwardRef((e, t) => {
|
|
6250
|
+
let n = vl(bl, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = ul(bl, e.__scopeMenu), o = fl(bl, e.__scopeMenu);
|
|
6251
|
+
return /* @__PURE__ */ f(nl.Provider, {
|
|
6318
6252
|
scope: e.__scopeMenu,
|
|
6319
|
-
children: /* @__PURE__ */ f(
|
|
6253
|
+
children: /* @__PURE__ */ f(Cr, {
|
|
6320
6254
|
present: r || a.open,
|
|
6321
|
-
children: /* @__PURE__ */ f(
|
|
6255
|
+
children: /* @__PURE__ */ f(nl.Slot, {
|
|
6322
6256
|
scope: e.__scopeMenu,
|
|
6323
|
-
children: o.modal ? /* @__PURE__ */ f(
|
|
6257
|
+
children: o.modal ? /* @__PURE__ */ f(wl, {
|
|
6324
6258
|
...i,
|
|
6325
6259
|
ref: t
|
|
6326
|
-
}) : /* @__PURE__ */ f(
|
|
6260
|
+
}) : /* @__PURE__ */ f(Tl, {
|
|
6327
6261
|
...i,
|
|
6328
6262
|
ref: t
|
|
6329
6263
|
})
|
|
6330
6264
|
})
|
|
6331
6265
|
})
|
|
6332
6266
|
});
|
|
6333
|
-
}),
|
|
6334
|
-
let r =
|
|
6267
|
+
}), wl = e.forwardRef((t, n) => {
|
|
6268
|
+
let r = ul(bl, t.__scopeMenu), i = e.useRef(null), a = J(n, i);
|
|
6335
6269
|
return e.useEffect(() => {
|
|
6336
6270
|
let e = i.current;
|
|
6337
|
-
if (e) return
|
|
6338
|
-
}, []), /* @__PURE__ */ f(
|
|
6271
|
+
if (e) return Wa(e);
|
|
6272
|
+
}, []), /* @__PURE__ */ f(Dl, {
|
|
6339
6273
|
...t,
|
|
6340
6274
|
ref: a,
|
|
6341
6275
|
trapFocus: r.open,
|
|
@@ -6344,9 +6278,9 @@ var Sl = "MenuContent", [Cl, wl] = sl(Sl), Tl = e.forwardRef((e, t) => {
|
|
|
6344
6278
|
onFocusOutside: X(t.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
6345
6279
|
onDismiss: () => r.onOpenChange(!1)
|
|
6346
6280
|
});
|
|
6347
|
-
}),
|
|
6348
|
-
let n =
|
|
6349
|
-
return /* @__PURE__ */ f(
|
|
6281
|
+
}), Tl = e.forwardRef((e, t) => {
|
|
6282
|
+
let n = ul(bl, e.__scopeMenu);
|
|
6283
|
+
return /* @__PURE__ */ f(Dl, {
|
|
6350
6284
|
...e,
|
|
6351
6285
|
ref: t,
|
|
6352
6286
|
trapFocus: !1,
|
|
@@ -6354,19 +6288,19 @@ var Sl = "MenuContent", [Cl, wl] = sl(Sl), Tl = e.forwardRef((e, t) => {
|
|
|
6354
6288
|
disableOutsideScroll: !1,
|
|
6355
6289
|
onDismiss: () => n.onOpenChange(!1)
|
|
6356
6290
|
});
|
|
6357
|
-
}),
|
|
6358
|
-
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = t, v =
|
|
6359
|
-
as:
|
|
6291
|
+
}), El = /* @__PURE__ */ or("MenuContent.ScrollLock"), Dl = e.forwardRef((t, n) => {
|
|
6292
|
+
let { __scopeMenu: r, loop: i = !1, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = t, v = ul(bl, r), y = fl(bl, r), b = sl(r), x = cl(r), S = rl(r), [C, w] = e.useState(null), T = e.useRef(null), E = J(n, T, v.onContentChange), ee = e.useRef(0), D = e.useRef(""), O = e.useRef(0), k = e.useRef(null), A = e.useRef("right"), j = e.useRef(0), M = g ? Fa : e.Fragment, N = g ? {
|
|
6293
|
+
as: El,
|
|
6360
6294
|
allowPinchZoom: !0
|
|
6361
6295
|
} : void 0, te = (e) => {
|
|
6362
|
-
let t = D.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a =
|
|
6296
|
+
let t = D.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = du(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
6363
6297
|
(function e(t) {
|
|
6364
6298
|
D.current = t, window.clearTimeout(ee.current), t !== "" && (ee.current = window.setTimeout(() => e(""), 1e3));
|
|
6365
6299
|
})(t), o && setTimeout(() => o.focus());
|
|
6366
6300
|
};
|
|
6367
|
-
e.useEffect(() => () => window.clearTimeout(ee.current), []),
|
|
6368
|
-
let P = e.useCallback((e) => A.current === k.current?.side &&
|
|
6369
|
-
return /* @__PURE__ */ f(
|
|
6301
|
+
e.useEffect(() => () => window.clearTimeout(ee.current), []), Ti();
|
|
6302
|
+
let P = e.useCallback((e) => A.current === k.current?.side && pu(e, k.current?.area), []);
|
|
6303
|
+
return /* @__PURE__ */ f(xl, {
|
|
6370
6304
|
scope: r,
|
|
6371
6305
|
searchRef: D,
|
|
6372
6306
|
onItemEnter: e.useCallback((e) => {
|
|
@@ -6384,14 +6318,14 @@ var Sl = "MenuContent", [Cl, wl] = sl(Sl), Tl = e.forwardRef((e, t) => {
|
|
|
6384
6318
|
}, []),
|
|
6385
6319
|
children: /* @__PURE__ */ f(M, {
|
|
6386
6320
|
...N,
|
|
6387
|
-
children: /* @__PURE__ */ f(
|
|
6321
|
+
children: /* @__PURE__ */ f(ui, {
|
|
6388
6322
|
asChild: !0,
|
|
6389
6323
|
trapped: a,
|
|
6390
6324
|
onMountAutoFocus: X(o, (e) => {
|
|
6391
6325
|
e.preventDefault(), T.current?.focus({ preventScroll: !0 });
|
|
6392
6326
|
}),
|
|
6393
6327
|
onUnmountAutoFocus: s,
|
|
6394
|
-
children: /* @__PURE__ */ f(
|
|
6328
|
+
children: /* @__PURE__ */ f($r, {
|
|
6395
6329
|
asChild: !0,
|
|
6396
6330
|
disableOutsidePointerEvents: c,
|
|
6397
6331
|
onEscapeKeyDown: u,
|
|
@@ -6399,7 +6333,7 @@ var Sl = "MenuContent", [Cl, wl] = sl(Sl), Tl = e.forwardRef((e, t) => {
|
|
|
6399
6333
|
onFocusOutside: p,
|
|
6400
6334
|
onInteractOutside: m,
|
|
6401
6335
|
onDismiss: h,
|
|
6402
|
-
children: /* @__PURE__ */ f(
|
|
6336
|
+
children: /* @__PURE__ */ f(qc, {
|
|
6403
6337
|
asChild: !0,
|
|
6404
6338
|
...x,
|
|
6405
6339
|
dir: y.dir,
|
|
@@ -6411,10 +6345,10 @@ var Sl = "MenuContent", [Cl, wl] = sl(Sl), Tl = e.forwardRef((e, t) => {
|
|
|
6411
6345
|
y.isUsingKeyboardRef.current || e.preventDefault();
|
|
6412
6346
|
}),
|
|
6413
6347
|
preventScrollOnEntryFocus: !0,
|
|
6414
|
-
children: /* @__PURE__ */ f(
|
|
6348
|
+
children: /* @__PURE__ */ f(Ec, {
|
|
6415
6349
|
role: "menu",
|
|
6416
6350
|
"aria-orientation": "vertical",
|
|
6417
|
-
"data-state":
|
|
6351
|
+
"data-state": ou(v.open),
|
|
6418
6352
|
"data-radix-menu-content": "",
|
|
6419
6353
|
dir: y.dir,
|
|
6420
6354
|
...b,
|
|
@@ -6428,15 +6362,15 @@ var Sl = "MenuContent", [Cl, wl] = sl(Sl), Tl = e.forwardRef((e, t) => {
|
|
|
6428
6362
|
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
6429
6363
|
t && (e.key === "Tab" && e.preventDefault(), !n && r && te(e.key));
|
|
6430
6364
|
let i = T.current;
|
|
6431
|
-
if (e.target !== i || !
|
|
6365
|
+
if (e.target !== i || !Qc.includes(e.key)) return;
|
|
6432
6366
|
e.preventDefault();
|
|
6433
6367
|
let a = S().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
6434
|
-
|
|
6368
|
+
Zc.includes(e.key) && a.reverse(), lu(a);
|
|
6435
6369
|
}),
|
|
6436
6370
|
onBlur: X(t.onBlur, (e) => {
|
|
6437
6371
|
e.currentTarget.contains(e.target) || (window.clearTimeout(ee.current), D.current = "");
|
|
6438
6372
|
}),
|
|
6439
|
-
onPointerMove: X(t.onPointerMove,
|
|
6373
|
+
onPointerMove: X(t.onPointerMove, mu((e) => {
|
|
6440
6374
|
let t = e.target, n = j.current !== e.clientX;
|
|
6441
6375
|
e.currentTarget.contains(t) && n && (A.current = e.clientX > j.current ? "right" : "left", j.current = e.clientX);
|
|
6442
6376
|
}))
|
|
@@ -6447,8 +6381,8 @@ var Sl = "MenuContent", [Cl, wl] = sl(Sl), Tl = e.forwardRef((e, t) => {
|
|
|
6447
6381
|
})
|
|
6448
6382
|
});
|
|
6449
6383
|
});
|
|
6450
|
-
|
|
6451
|
-
var
|
|
6384
|
+
Cl.displayName = bl;
|
|
6385
|
+
var Ol = "MenuGroup", kl = e.forwardRef((e, t) => {
|
|
6452
6386
|
let { __scopeMenu: n, ...r } = e;
|
|
6453
6387
|
return /* @__PURE__ */ f(Y.div, {
|
|
6454
6388
|
role: "group",
|
|
@@ -6456,27 +6390,27 @@ var Al = "MenuGroup", jl = e.forwardRef((e, t) => {
|
|
|
6456
6390
|
ref: t
|
|
6457
6391
|
});
|
|
6458
6392
|
});
|
|
6459
|
-
|
|
6460
|
-
var
|
|
6393
|
+
kl.displayName = Ol;
|
|
6394
|
+
var Al = "MenuLabel", jl = e.forwardRef((e, t) => {
|
|
6461
6395
|
let { __scopeMenu: n, ...r } = e;
|
|
6462
6396
|
return /* @__PURE__ */ f(Y.div, {
|
|
6463
6397
|
...r,
|
|
6464
6398
|
ref: t
|
|
6465
6399
|
});
|
|
6466
6400
|
});
|
|
6467
|
-
|
|
6468
|
-
var
|
|
6469
|
-
let { disabled: r = !1, onSelect: i, ...a } = t, o = e.useRef(null), s =
|
|
6401
|
+
jl.displayName = Al;
|
|
6402
|
+
var Ml = "MenuItem", Nl = "menu.itemSelect", Pl = e.forwardRef((t, n) => {
|
|
6403
|
+
let { disabled: r = !1, onSelect: i, ...a } = t, o = e.useRef(null), s = fl(Ml, t.__scopeMenu), c = Sl(Ml, t.__scopeMenu), l = J(n, o), u = e.useRef(!1), d = () => {
|
|
6470
6404
|
let e = o.current;
|
|
6471
6405
|
if (!r && e) {
|
|
6472
|
-
let t = new CustomEvent(
|
|
6406
|
+
let t = new CustomEvent(Nl, {
|
|
6473
6407
|
bubbles: !0,
|
|
6474
6408
|
cancelable: !0
|
|
6475
6409
|
});
|
|
6476
|
-
e.addEventListener(
|
|
6410
|
+
e.addEventListener(Nl, (e) => i?.(e), { once: !0 }), pr(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
|
|
6477
6411
|
}
|
|
6478
6412
|
};
|
|
6479
|
-
return /* @__PURE__ */ f(
|
|
6413
|
+
return /* @__PURE__ */ f(Fl, {
|
|
6480
6414
|
...a,
|
|
6481
6415
|
ref: l,
|
|
6482
6416
|
disabled: r,
|
|
@@ -6489,21 +6423,21 @@ var Pl = "MenuItem", Fl = "menu.itemSelect", Il = e.forwardRef((t, n) => {
|
|
|
6489
6423
|
}),
|
|
6490
6424
|
onKeyDown: X(t.onKeyDown, (e) => {
|
|
6491
6425
|
let t = c.searchRef.current !== "";
|
|
6492
|
-
r || t && e.key === " " ||
|
|
6426
|
+
r || t && e.key === " " || Yc.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
6493
6427
|
})
|
|
6494
6428
|
});
|
|
6495
6429
|
});
|
|
6496
|
-
|
|
6497
|
-
var
|
|
6498
|
-
let { __scopeMenu: r, disabled: i = !1, textValue: a, ...o } = t, s =
|
|
6430
|
+
Pl.displayName = Ml;
|
|
6431
|
+
var Fl = e.forwardRef((t, n) => {
|
|
6432
|
+
let { __scopeMenu: r, disabled: i = !1, textValue: a, ...o } = t, s = Sl(Ml, r), c = cl(r), l = e.useRef(null), u = J(n, l), [d, p] = e.useState(!1), [m, h] = e.useState("");
|
|
6499
6433
|
return e.useEffect(() => {
|
|
6500
6434
|
let e = l.current;
|
|
6501
6435
|
e && h((e.textContent ?? "").trim());
|
|
6502
|
-
}, [o.children]), /* @__PURE__ */ f(
|
|
6436
|
+
}, [o.children]), /* @__PURE__ */ f(nl.ItemSlot, {
|
|
6503
6437
|
scope: r,
|
|
6504
6438
|
disabled: i,
|
|
6505
6439
|
textValue: a ?? m,
|
|
6506
|
-
children: /* @__PURE__ */ f(
|
|
6440
|
+
children: /* @__PURE__ */ f(Jc, {
|
|
6507
6441
|
asChild: !0,
|
|
6508
6442
|
...c,
|
|
6509
6443
|
focusable: !i,
|
|
@@ -6514,76 +6448,76 @@ var Ll = e.forwardRef((t, n) => {
|
|
|
6514
6448
|
"data-disabled": i ? "" : void 0,
|
|
6515
6449
|
...o,
|
|
6516
6450
|
ref: u,
|
|
6517
|
-
onPointerMove: X(t.onPointerMove,
|
|
6451
|
+
onPointerMove: X(t.onPointerMove, mu((e) => {
|
|
6518
6452
|
i ? s.onItemLeave(e) : (s.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
6519
6453
|
})),
|
|
6520
|
-
onPointerLeave: X(t.onPointerLeave,
|
|
6454
|
+
onPointerLeave: X(t.onPointerLeave, mu((e) => s.onItemLeave(e))),
|
|
6521
6455
|
onFocus: X(t.onFocus, () => p(!0)),
|
|
6522
6456
|
onBlur: X(t.onBlur, () => p(!1))
|
|
6523
6457
|
})
|
|
6524
6458
|
})
|
|
6525
6459
|
});
|
|
6526
|
-
}),
|
|
6460
|
+
}), Il = "MenuCheckboxItem", Ll = e.forwardRef((e, t) => {
|
|
6527
6461
|
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
6528
|
-
return /* @__PURE__ */ f(
|
|
6462
|
+
return /* @__PURE__ */ f(Gl, {
|
|
6529
6463
|
scope: e.__scopeMenu,
|
|
6530
6464
|
checked: n,
|
|
6531
|
-
children: /* @__PURE__ */ f(
|
|
6465
|
+
children: /* @__PURE__ */ f(Pl, {
|
|
6532
6466
|
role: "menuitemcheckbox",
|
|
6533
|
-
"aria-checked":
|
|
6467
|
+
"aria-checked": su(n) ? "mixed" : n,
|
|
6534
6468
|
...i,
|
|
6535
6469
|
ref: t,
|
|
6536
|
-
"data-state":
|
|
6537
|
-
onSelect: X(i.onSelect, () => r?.(
|
|
6470
|
+
"data-state": cu(n),
|
|
6471
|
+
onSelect: X(i.onSelect, () => r?.(su(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
6538
6472
|
})
|
|
6539
6473
|
});
|
|
6540
6474
|
});
|
|
6541
|
-
|
|
6542
|
-
var
|
|
6475
|
+
Ll.displayName = Il;
|
|
6476
|
+
var Rl = "MenuRadioGroup", [zl, Bl] = al(Rl, {
|
|
6543
6477
|
value: void 0,
|
|
6544
6478
|
onValueChange: () => {}
|
|
6545
|
-
}),
|
|
6546
|
-
let { value: n, onValueChange: r, ...i } = e, a =
|
|
6547
|
-
return /* @__PURE__ */ f(
|
|
6479
|
+
}), Vl = e.forwardRef((e, t) => {
|
|
6480
|
+
let { value: n, onValueChange: r, ...i } = e, a = Gr(r);
|
|
6481
|
+
return /* @__PURE__ */ f(zl, {
|
|
6548
6482
|
scope: e.__scopeMenu,
|
|
6549
6483
|
value: n,
|
|
6550
6484
|
onValueChange: a,
|
|
6551
|
-
children: /* @__PURE__ */ f(
|
|
6485
|
+
children: /* @__PURE__ */ f(kl, {
|
|
6552
6486
|
...i,
|
|
6553
6487
|
ref: t
|
|
6554
6488
|
})
|
|
6555
6489
|
});
|
|
6556
6490
|
});
|
|
6557
|
-
|
|
6558
|
-
var
|
|
6559
|
-
let { value: n, ...r } = e, i = Hl
|
|
6560
|
-
return /* @__PURE__ */ f(
|
|
6491
|
+
Vl.displayName = Rl;
|
|
6492
|
+
var Hl = "MenuRadioItem", Ul = e.forwardRef((e, t) => {
|
|
6493
|
+
let { value: n, ...r } = e, i = Bl(Hl, e.__scopeMenu), a = n === i.value;
|
|
6494
|
+
return /* @__PURE__ */ f(Gl, {
|
|
6561
6495
|
scope: e.__scopeMenu,
|
|
6562
6496
|
checked: a,
|
|
6563
|
-
children: /* @__PURE__ */ f(
|
|
6497
|
+
children: /* @__PURE__ */ f(Pl, {
|
|
6564
6498
|
role: "menuitemradio",
|
|
6565
6499
|
"aria-checked": a,
|
|
6566
6500
|
...r,
|
|
6567
6501
|
ref: t,
|
|
6568
|
-
"data-state":
|
|
6502
|
+
"data-state": cu(a),
|
|
6569
6503
|
onSelect: X(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
6570
6504
|
})
|
|
6571
6505
|
});
|
|
6572
6506
|
});
|
|
6573
|
-
|
|
6574
|
-
var
|
|
6575
|
-
let { __scopeMenu: n, forceMount: r, ...i } = e, a =
|
|
6576
|
-
return /* @__PURE__ */ f(
|
|
6577
|
-
present: r ||
|
|
6507
|
+
Ul.displayName = Hl;
|
|
6508
|
+
var Wl = "MenuItemIndicator", [Gl, Kl] = al(Wl, { checked: !1 }), ql = e.forwardRef((e, t) => {
|
|
6509
|
+
let { __scopeMenu: n, forceMount: r, ...i } = e, a = Kl(Wl, n);
|
|
6510
|
+
return /* @__PURE__ */ f(Cr, {
|
|
6511
|
+
present: r || su(a.checked) || a.checked === !0,
|
|
6578
6512
|
children: /* @__PURE__ */ f(Y.span, {
|
|
6579
6513
|
...i,
|
|
6580
6514
|
ref: t,
|
|
6581
|
-
"data-state":
|
|
6515
|
+
"data-state": cu(a.checked)
|
|
6582
6516
|
})
|
|
6583
6517
|
});
|
|
6584
6518
|
});
|
|
6585
|
-
|
|
6586
|
-
var
|
|
6519
|
+
ql.displayName = Wl;
|
|
6520
|
+
var Jl = "MenuSeparator", Yl = e.forwardRef((e, t) => {
|
|
6587
6521
|
let { __scopeMenu: n, ...r } = e;
|
|
6588
6522
|
return /* @__PURE__ */ f(Y.div, {
|
|
6589
6523
|
role: "separator",
|
|
@@ -6592,30 +6526,30 @@ var Xl = "MenuSeparator", Zl = e.forwardRef((e, t) => {
|
|
|
6592
6526
|
ref: t
|
|
6593
6527
|
});
|
|
6594
6528
|
});
|
|
6595
|
-
|
|
6596
|
-
var
|
|
6529
|
+
Yl.displayName = Jl;
|
|
6530
|
+
var Xl = "MenuArrow", Zl = e.forwardRef((e, t) => {
|
|
6597
6531
|
let { __scopeMenu: n, ...r } = e;
|
|
6598
|
-
return /* @__PURE__ */ f(
|
|
6599
|
-
...
|
|
6532
|
+
return /* @__PURE__ */ f(Dc, {
|
|
6533
|
+
...sl(n),
|
|
6600
6534
|
...r,
|
|
6601
6535
|
ref: t
|
|
6602
6536
|
});
|
|
6603
6537
|
});
|
|
6604
|
-
|
|
6605
|
-
var
|
|
6606
|
-
let { __scopeMenu: n, children: r, open: i = !1, onOpenChange: a } = t, o =
|
|
6607
|
-
return e.useEffect(() => (o.open === !1 && p(!1), () => p(!1)), [o.open, p]), /* @__PURE__ */ f(
|
|
6538
|
+
Zl.displayName = Xl;
|
|
6539
|
+
var Ql = "MenuSub", [$l, eu] = al(Ql), tu = (t) => {
|
|
6540
|
+
let { __scopeMenu: n, children: r, open: i = !1, onOpenChange: a } = t, o = ul(Ql, n), s = sl(n), [c, l] = e.useState(null), [u, d] = e.useState(null), p = Gr(a);
|
|
6541
|
+
return e.useEffect(() => (o.open === !1 && p(!1), () => p(!1)), [o.open, p]), /* @__PURE__ */ f(wc, {
|
|
6608
6542
|
...s,
|
|
6609
|
-
children: /* @__PURE__ */ f(
|
|
6543
|
+
children: /* @__PURE__ */ f(ll, {
|
|
6610
6544
|
scope: n,
|
|
6611
6545
|
open: i,
|
|
6612
6546
|
onOpenChange: p,
|
|
6613
6547
|
content: u,
|
|
6614
6548
|
onContentChange: d,
|
|
6615
|
-
children: /* @__PURE__ */ f(
|
|
6549
|
+
children: /* @__PURE__ */ f($l, {
|
|
6616
6550
|
scope: n,
|
|
6617
|
-
contentId:
|
|
6618
|
-
triggerId:
|
|
6551
|
+
contentId: kr(),
|
|
6552
|
+
triggerId: kr(),
|
|
6619
6553
|
trigger: c,
|
|
6620
6554
|
onTriggerChange: l,
|
|
6621
6555
|
children: r
|
|
@@ -6623,9 +6557,9 @@ var eu = "MenuSub", [tu, nu] = sl(eu), ru = (t) => {
|
|
|
6623
6557
|
})
|
|
6624
6558
|
});
|
|
6625
6559
|
};
|
|
6626
|
-
|
|
6627
|
-
var
|
|
6628
|
-
let r =
|
|
6560
|
+
tu.displayName = Ql;
|
|
6561
|
+
var nu = "MenuSubTrigger", ru = e.forwardRef((t, n) => {
|
|
6562
|
+
let r = ul(nu, t.__scopeMenu), i = fl(nu, t.__scopeMenu), a = eu(nu, t.__scopeMenu), o = Sl(nu, t.__scopeMenu), s = e.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = o, u = { __scopeMenu: t.__scopeMenu }, d = e.useCallback(() => {
|
|
6629
6563
|
s.current && window.clearTimeout(s.current), s.current = null;
|
|
6630
6564
|
}, []);
|
|
6631
6565
|
return e.useEffect(() => d, [d]), e.useEffect(() => {
|
|
@@ -6633,26 +6567,26 @@ var iu = "MenuSubTrigger", au = e.forwardRef((t, n) => {
|
|
|
6633
6567
|
return () => {
|
|
6634
6568
|
window.clearTimeout(e), l(null);
|
|
6635
6569
|
};
|
|
6636
|
-
}, [c, l]), /* @__PURE__ */ f(
|
|
6570
|
+
}, [c, l]), /* @__PURE__ */ f(hl, {
|
|
6637
6571
|
asChild: !0,
|
|
6638
6572
|
...u,
|
|
6639
|
-
children: /* @__PURE__ */ f(
|
|
6573
|
+
children: /* @__PURE__ */ f(Fl, {
|
|
6640
6574
|
id: a.triggerId,
|
|
6641
6575
|
"aria-haspopup": "menu",
|
|
6642
6576
|
"aria-expanded": r.open,
|
|
6643
6577
|
"aria-controls": a.contentId,
|
|
6644
|
-
"data-state":
|
|
6578
|
+
"data-state": ou(r.open),
|
|
6645
6579
|
...t,
|
|
6646
|
-
ref:
|
|
6580
|
+
ref: ar(n, a.onTriggerChange),
|
|
6647
6581
|
onClick: (e) => {
|
|
6648
6582
|
t.onClick?.(e), !(t.disabled || e.defaultPrevented) && (e.currentTarget.focus(), r.open || r.onOpenChange(!0));
|
|
6649
6583
|
},
|
|
6650
|
-
onPointerMove: X(t.onPointerMove,
|
|
6584
|
+
onPointerMove: X(t.onPointerMove, mu((e) => {
|
|
6651
6585
|
o.onItemEnter(e), !e.defaultPrevented && !t.disabled && !r.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
6652
6586
|
r.onOpenChange(!0), d();
|
|
6653
6587
|
}, 100));
|
|
6654
6588
|
})),
|
|
6655
|
-
onPointerLeave: X(t.onPointerLeave,
|
|
6589
|
+
onPointerLeave: X(t.onPointerLeave, mu((e) => {
|
|
6656
6590
|
d();
|
|
6657
6591
|
let t = r.content?.getBoundingClientRect();
|
|
6658
6592
|
if (t) {
|
|
@@ -6689,21 +6623,21 @@ var iu = "MenuSubTrigger", au = e.forwardRef((t, n) => {
|
|
|
6689
6623
|
})),
|
|
6690
6624
|
onKeyDown: X(t.onKeyDown, (e) => {
|
|
6691
6625
|
let n = o.searchRef.current !== "";
|
|
6692
|
-
t.disabled || n && e.key === " " ||
|
|
6626
|
+
t.disabled || n && e.key === " " || $c[i.dir].includes(e.key) && (r.onOpenChange(!0), r.content?.focus(), e.preventDefault());
|
|
6693
6627
|
})
|
|
6694
6628
|
})
|
|
6695
6629
|
});
|
|
6696
6630
|
});
|
|
6697
|
-
|
|
6698
|
-
var
|
|
6699
|
-
let r = bl
|
|
6700
|
-
return /* @__PURE__ */ f(
|
|
6631
|
+
ru.displayName = nu;
|
|
6632
|
+
var iu = "MenuSubContent", au = e.forwardRef((t, n) => {
|
|
6633
|
+
let r = vl(bl, t.__scopeMenu), { forceMount: i = r.forceMount, ...a } = t, o = ul(bl, t.__scopeMenu), s = fl(bl, t.__scopeMenu), c = eu(iu, t.__scopeMenu), l = e.useRef(null), u = J(n, l);
|
|
6634
|
+
return /* @__PURE__ */ f(nl.Provider, {
|
|
6701
6635
|
scope: t.__scopeMenu,
|
|
6702
|
-
children: /* @__PURE__ */ f(
|
|
6636
|
+
children: /* @__PURE__ */ f(Cr, {
|
|
6703
6637
|
present: i || o.open,
|
|
6704
|
-
children: /* @__PURE__ */ f(
|
|
6638
|
+
children: /* @__PURE__ */ f(nl.Slot, {
|
|
6705
6639
|
scope: t.__scopeMenu,
|
|
6706
|
-
children: /* @__PURE__ */ f(
|
|
6640
|
+
children: /* @__PURE__ */ f(Dl, {
|
|
6707
6641
|
id: c.contentId,
|
|
6708
6642
|
"aria-labelledby": c.triggerId,
|
|
6709
6643
|
...a,
|
|
@@ -6724,7 +6658,7 @@ var ou = "MenuSubContent", su = e.forwardRef((t, n) => {
|
|
|
6724
6658
|
s.onClose(), e.preventDefault();
|
|
6725
6659
|
}),
|
|
6726
6660
|
onKeyDown: X(t.onKeyDown, (e) => {
|
|
6727
|
-
let t = e.currentTarget.contains(e.target), n =
|
|
6661
|
+
let t = e.currentTarget.contains(e.target), n = el[s.dir].includes(e.key);
|
|
6728
6662
|
t && n && (o.onOpenChange(!1), c.trigger?.focus(), e.preventDefault());
|
|
6729
6663
|
})
|
|
6730
6664
|
})
|
|
@@ -6732,30 +6666,30 @@ var ou = "MenuSubContent", su = e.forwardRef((t, n) => {
|
|
|
6732
6666
|
})
|
|
6733
6667
|
});
|
|
6734
6668
|
});
|
|
6735
|
-
|
|
6736
|
-
function
|
|
6669
|
+
au.displayName = iu;
|
|
6670
|
+
function ou(e) {
|
|
6737
6671
|
return e ? "open" : "closed";
|
|
6738
6672
|
}
|
|
6739
|
-
function
|
|
6673
|
+
function su(e) {
|
|
6740
6674
|
return e === "indeterminate";
|
|
6741
6675
|
}
|
|
6742
|
-
function
|
|
6743
|
-
return
|
|
6676
|
+
function cu(e) {
|
|
6677
|
+
return su(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
6744
6678
|
}
|
|
6745
|
-
function
|
|
6679
|
+
function lu(e) {
|
|
6746
6680
|
let t = document.activeElement;
|
|
6747
6681
|
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
6748
6682
|
}
|
|
6749
|
-
function
|
|
6683
|
+
function uu(e, t) {
|
|
6750
6684
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
6751
6685
|
}
|
|
6752
|
-
function
|
|
6753
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a =
|
|
6686
|
+
function du(e, t, n) {
|
|
6687
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = uu(e, Math.max(i, 0));
|
|
6754
6688
|
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
6755
6689
|
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
6756
6690
|
return o === n ? void 0 : o;
|
|
6757
6691
|
}
|
|
6758
|
-
function
|
|
6692
|
+
function fu(e, t) {
|
|
6759
6693
|
let { x: n, y: r } = e, i = !1;
|
|
6760
6694
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
6761
6695
|
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
@@ -6763,32 +6697,32 @@ function mu(e, t) {
|
|
|
6763
6697
|
}
|
|
6764
6698
|
return i;
|
|
6765
6699
|
}
|
|
6766
|
-
function
|
|
6767
|
-
return t ?
|
|
6700
|
+
function pu(e, t) {
|
|
6701
|
+
return t ? fu({
|
|
6768
6702
|
x: e.clientX,
|
|
6769
6703
|
y: e.clientY
|
|
6770
6704
|
}, t) : !1;
|
|
6771
6705
|
}
|
|
6772
|
-
function
|
|
6706
|
+
function mu(e) {
|
|
6773
6707
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
6774
6708
|
}
|
|
6775
|
-
var
|
|
6776
|
-
let { __scopeDropdownMenu: n, children: r, dir: i, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = t, l = $(n), u = e.useRef(null), [d, p] =
|
|
6709
|
+
var hu = pl, gu = hl, _u = yl, vu = Cl, yu = kl, bu = jl, xu = Pl, Su = Ll, Cu = Vl, wu = Ul, Tu = ql, Eu = Yl, Du = Zl, Ou = ru, ku = au, Au = "DropdownMenu", [ju, Mu] = mr(Au, [ol]), $ = ol(), [Nu, Pu] = ju(Au), Fu = (t) => {
|
|
6710
|
+
let { __scopeDropdownMenu: n, children: r, dir: i, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = t, l = $(n), u = e.useRef(null), [d, p] = yr({
|
|
6777
6711
|
prop: a,
|
|
6778
6712
|
defaultProp: o ?? !1,
|
|
6779
6713
|
onChange: s,
|
|
6780
|
-
caller:
|
|
6714
|
+
caller: Au
|
|
6781
6715
|
});
|
|
6782
|
-
return /* @__PURE__ */ f(
|
|
6716
|
+
return /* @__PURE__ */ f(Nu, {
|
|
6783
6717
|
scope: n,
|
|
6784
|
-
triggerId:
|
|
6718
|
+
triggerId: kr(),
|
|
6785
6719
|
triggerRef: u,
|
|
6786
|
-
contentId:
|
|
6720
|
+
contentId: kr(),
|
|
6787
6721
|
open: d,
|
|
6788
6722
|
onOpenChange: p,
|
|
6789
6723
|
onOpenToggle: e.useCallback(() => p((e) => !e), [p]),
|
|
6790
6724
|
modal: c,
|
|
6791
|
-
children: /* @__PURE__ */ f(
|
|
6725
|
+
children: /* @__PURE__ */ f(hu, {
|
|
6792
6726
|
...l,
|
|
6793
6727
|
open: d,
|
|
6794
6728
|
onOpenChange: p,
|
|
@@ -6798,10 +6732,10 @@ var _u = hl, vu = _l, yu = xl, bu = Tl, xu = jl, Su = Nl, Cu = Il, wu = zl, Tu =
|
|
|
6798
6732
|
})
|
|
6799
6733
|
});
|
|
6800
6734
|
};
|
|
6801
|
-
|
|
6802
|
-
var
|
|
6803
|
-
let { __scopeDropdownMenu: n, disabled: r = !1, ...i } = e, a = Iu
|
|
6804
|
-
return /* @__PURE__ */ f(
|
|
6735
|
+
Fu.displayName = Au;
|
|
6736
|
+
var Iu = "DropdownMenuTrigger", Lu = e.forwardRef((e, t) => {
|
|
6737
|
+
let { __scopeDropdownMenu: n, disabled: r = !1, ...i } = e, a = Pu(Iu, n);
|
|
6738
|
+
return /* @__PURE__ */ f(gu, {
|
|
6805
6739
|
asChild: !0,
|
|
6806
6740
|
...$(n),
|
|
6807
6741
|
children: /* @__PURE__ */ f(Y.button, {
|
|
@@ -6814,7 +6748,7 @@ var Ru = "DropdownMenuTrigger", zu = e.forwardRef((e, t) => {
|
|
|
6814
6748
|
"data-disabled": r ? "" : void 0,
|
|
6815
6749
|
disabled: r,
|
|
6816
6750
|
...i,
|
|
6817
|
-
ref:
|
|
6751
|
+
ref: ar(t, a.triggerRef),
|
|
6818
6752
|
onPointerDown: X(e.onPointerDown, (e) => {
|
|
6819
6753
|
!r && e.button === 0 && e.ctrlKey === !1 && (a.onOpenToggle(), a.open || e.preventDefault());
|
|
6820
6754
|
}),
|
|
@@ -6828,18 +6762,18 @@ var Ru = "DropdownMenuTrigger", zu = e.forwardRef((e, t) => {
|
|
|
6828
6762
|
})
|
|
6829
6763
|
});
|
|
6830
6764
|
});
|
|
6831
|
-
|
|
6832
|
-
var
|
|
6765
|
+
Lu.displayName = Iu;
|
|
6766
|
+
var Ru = "DropdownMenuPortal", zu = (e) => {
|
|
6833
6767
|
let { __scopeDropdownMenu: t, ...n } = e;
|
|
6834
|
-
return /* @__PURE__ */ f(
|
|
6768
|
+
return /* @__PURE__ */ f(_u, {
|
|
6835
6769
|
...$(t),
|
|
6836
6770
|
...n
|
|
6837
6771
|
});
|
|
6838
6772
|
};
|
|
6839
|
-
|
|
6840
|
-
var
|
|
6841
|
-
let { __scopeDropdownMenu: r, ...i } = t, a =
|
|
6842
|
-
return /* @__PURE__ */ f(
|
|
6773
|
+
zu.displayName = Ru;
|
|
6774
|
+
var Bu = "DropdownMenuContent", Vu = e.forwardRef((t, n) => {
|
|
6775
|
+
let { __scopeDropdownMenu: r, ...i } = t, a = Pu(Bu, r), o = $(r), s = e.useRef(!1);
|
|
6776
|
+
return /* @__PURE__ */ f(vu, {
|
|
6843
6777
|
id: a.contentId,
|
|
6844
6778
|
"aria-labelledby": a.triggerId,
|
|
6845
6779
|
...o,
|
|
@@ -6862,100 +6796,100 @@ var Hu = "DropdownMenuContent", Uu = e.forwardRef((t, n) => {
|
|
|
6862
6796
|
}
|
|
6863
6797
|
});
|
|
6864
6798
|
});
|
|
6799
|
+
Vu.displayName = Bu;
|
|
6800
|
+
var Hu = "DropdownMenuGroup", Uu = e.forwardRef((e, t) => {
|
|
6801
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6802
|
+
return /* @__PURE__ */ f(yu, {
|
|
6803
|
+
...$(n),
|
|
6804
|
+
...r,
|
|
6805
|
+
ref: t
|
|
6806
|
+
});
|
|
6807
|
+
});
|
|
6865
6808
|
Uu.displayName = Hu;
|
|
6866
|
-
var Wu = "
|
|
6809
|
+
var Wu = "DropdownMenuLabel", Gu = e.forwardRef((e, t) => {
|
|
6867
6810
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6868
|
-
return /* @__PURE__ */ f(
|
|
6811
|
+
return /* @__PURE__ */ f(bu, {
|
|
6869
6812
|
...$(n),
|
|
6870
6813
|
...r,
|
|
6871
6814
|
ref: t
|
|
6872
6815
|
});
|
|
6873
6816
|
});
|
|
6874
6817
|
Gu.displayName = Wu;
|
|
6875
|
-
var Ku = "
|
|
6818
|
+
var Ku = "DropdownMenuItem", qu = e.forwardRef((e, t) => {
|
|
6876
6819
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6877
|
-
return /* @__PURE__ */ f(
|
|
6820
|
+
return /* @__PURE__ */ f(xu, {
|
|
6878
6821
|
...$(n),
|
|
6879
6822
|
...r,
|
|
6880
6823
|
ref: t
|
|
6881
6824
|
});
|
|
6882
6825
|
});
|
|
6883
6826
|
qu.displayName = Ku;
|
|
6884
|
-
var Ju = "
|
|
6827
|
+
var Ju = "DropdownMenuCheckboxItem", Yu = e.forwardRef((e, t) => {
|
|
6885
6828
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6886
|
-
return /* @__PURE__ */ f(
|
|
6829
|
+
return /* @__PURE__ */ f(Su, {
|
|
6887
6830
|
...$(n),
|
|
6888
6831
|
...r,
|
|
6889
6832
|
ref: t
|
|
6890
6833
|
});
|
|
6891
6834
|
});
|
|
6892
6835
|
Yu.displayName = Ju;
|
|
6893
|
-
var Xu = "
|
|
6836
|
+
var Xu = "DropdownMenuRadioGroup", Zu = e.forwardRef((e, t) => {
|
|
6894
6837
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6895
|
-
return /* @__PURE__ */ f(
|
|
6838
|
+
return /* @__PURE__ */ f(Cu, {
|
|
6896
6839
|
...$(n),
|
|
6897
6840
|
...r,
|
|
6898
6841
|
ref: t
|
|
6899
6842
|
});
|
|
6900
6843
|
});
|
|
6901
6844
|
Zu.displayName = Xu;
|
|
6902
|
-
var Qu = "
|
|
6845
|
+
var Qu = "DropdownMenuRadioItem", $u = e.forwardRef((e, t) => {
|
|
6903
6846
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6904
|
-
return /* @__PURE__ */ f(
|
|
6847
|
+
return /* @__PURE__ */ f(wu, {
|
|
6905
6848
|
...$(n),
|
|
6906
6849
|
...r,
|
|
6907
6850
|
ref: t
|
|
6908
6851
|
});
|
|
6909
6852
|
});
|
|
6910
6853
|
$u.displayName = Qu;
|
|
6911
|
-
var ed = "
|
|
6854
|
+
var ed = "DropdownMenuItemIndicator", td = e.forwardRef((e, t) => {
|
|
6912
6855
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6913
|
-
return /* @__PURE__ */ f(
|
|
6856
|
+
return /* @__PURE__ */ f(Tu, {
|
|
6914
6857
|
...$(n),
|
|
6915
6858
|
...r,
|
|
6916
6859
|
ref: t
|
|
6917
6860
|
});
|
|
6918
6861
|
});
|
|
6919
6862
|
td.displayName = ed;
|
|
6920
|
-
var nd = "
|
|
6863
|
+
var nd = "DropdownMenuSeparator", rd = e.forwardRef((e, t) => {
|
|
6921
6864
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6922
|
-
return /* @__PURE__ */ f(
|
|
6865
|
+
return /* @__PURE__ */ f(Eu, {
|
|
6923
6866
|
...$(n),
|
|
6924
6867
|
...r,
|
|
6925
6868
|
ref: t
|
|
6926
6869
|
});
|
|
6927
6870
|
});
|
|
6928
6871
|
rd.displayName = nd;
|
|
6929
|
-
var id = "
|
|
6872
|
+
var id = "DropdownMenuArrow", ad = e.forwardRef((e, t) => {
|
|
6930
6873
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6931
|
-
return /* @__PURE__ */ f(
|
|
6874
|
+
return /* @__PURE__ */ f(Du, {
|
|
6932
6875
|
...$(n),
|
|
6933
6876
|
...r,
|
|
6934
6877
|
ref: t
|
|
6935
6878
|
});
|
|
6936
6879
|
});
|
|
6937
6880
|
ad.displayName = id;
|
|
6938
|
-
var od = "
|
|
6881
|
+
var od = "DropdownMenuSubTrigger", sd = e.forwardRef((e, t) => {
|
|
6939
6882
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6940
|
-
return /* @__PURE__ */ f(
|
|
6883
|
+
return /* @__PURE__ */ f(Ou, {
|
|
6941
6884
|
...$(n),
|
|
6942
6885
|
...r,
|
|
6943
6886
|
ref: t
|
|
6944
6887
|
});
|
|
6945
6888
|
});
|
|
6946
6889
|
sd.displayName = od;
|
|
6947
|
-
var cd = "
|
|
6948
|
-
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6949
|
-
return /* @__PURE__ */ f(Au, {
|
|
6950
|
-
...$(n),
|
|
6951
|
-
...r,
|
|
6952
|
-
ref: t
|
|
6953
|
-
});
|
|
6954
|
-
});
|
|
6955
|
-
ld.displayName = cd;
|
|
6956
|
-
var ud = "DropdownMenuSubContent", dd = e.forwardRef((e, t) => {
|
|
6890
|
+
var cd = "DropdownMenuSubContent", ld = e.forwardRef((e, t) => {
|
|
6957
6891
|
let { __scopeDropdownMenu: n, ...r } = e;
|
|
6958
|
-
return /* @__PURE__ */ f(
|
|
6892
|
+
return /* @__PURE__ */ f(ku, {
|
|
6959
6893
|
...$(n),
|
|
6960
6894
|
...r,
|
|
6961
6895
|
ref: t,
|
|
@@ -6969,17 +6903,17 @@ var ud = "DropdownMenuSubContent", dd = e.forwardRef((e, t) => {
|
|
|
6969
6903
|
}
|
|
6970
6904
|
});
|
|
6971
6905
|
});
|
|
6972
|
-
|
|
6973
|
-
var
|
|
6906
|
+
ld.displayName = cd;
|
|
6907
|
+
var ud = Fu, dd = Lu, fd = zu, pd = Vu, md = Uu, hd = qu, gd = rd, _d = "Label", vd = e.forwardRef((e, t) => /* @__PURE__ */ f(Y.label, {
|
|
6974
6908
|
...e,
|
|
6975
6909
|
ref: t,
|
|
6976
6910
|
onMouseDown: (t) => {
|
|
6977
6911
|
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
6978
6912
|
}
|
|
6979
6913
|
}));
|
|
6980
|
-
|
|
6981
|
-
var
|
|
6982
|
-
let { decorative: n, orientation: r =
|
|
6914
|
+
vd.displayName = _d;
|
|
6915
|
+
var yd = vd, bd = "Separator", xd = "horizontal", Sd = ["horizontal", "vertical"], Cd = e.forwardRef((e, t) => {
|
|
6916
|
+
let { decorative: n, orientation: r = xd, ...i } = e, a = wd(r) ? r : xd, o = a === "vertical" ? a : void 0, s = n ? { role: "none" } : {
|
|
6983
6917
|
"aria-orientation": o,
|
|
6984
6918
|
role: "separator"
|
|
6985
6919
|
};
|
|
@@ -6990,11 +6924,11 @@ var xd = bd, Sd = "Separator", Cd = "horizontal", wd = ["horizontal", "vertical"
|
|
|
6990
6924
|
ref: t
|
|
6991
6925
|
});
|
|
6992
6926
|
});
|
|
6993
|
-
|
|
6994
|
-
function
|
|
6995
|
-
return
|
|
6927
|
+
Cd.displayName = bd;
|
|
6928
|
+
function wd(e) {
|
|
6929
|
+
return Sd.includes(e);
|
|
6996
6930
|
}
|
|
6997
|
-
var
|
|
6931
|
+
var Td = Cd, Ed = rr("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
6998
6932
|
variants: {
|
|
6999
6933
|
variant: {
|
|
7000
6934
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
@@ -7020,12 +6954,12 @@ var Dd = Td, Od = ar("group/button inline-flex shrink-0 items-center justify-cen
|
|
|
7020
6954
|
size: "default"
|
|
7021
6955
|
}
|
|
7022
6956
|
});
|
|
7023
|
-
function
|
|
7024
|
-
return /* @__PURE__ */ f(r ?
|
|
6957
|
+
function Dd({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, ...i }) {
|
|
6958
|
+
return /* @__PURE__ */ f(r ? sr : "button", {
|
|
7025
6959
|
"data-slot": "button",
|
|
7026
6960
|
"data-variant": t,
|
|
7027
6961
|
"data-size": n,
|
|
7028
|
-
className: H(
|
|
6962
|
+
className: H(Ed({
|
|
7029
6963
|
variant: t,
|
|
7030
6964
|
size: n,
|
|
7031
6965
|
className: e
|
|
@@ -7035,7 +6969,7 @@ function kd({ className: e, variant: t = "default", size: n = "default", asChild
|
|
|
7035
6969
|
}
|
|
7036
6970
|
//#endregion
|
|
7037
6971
|
//#region src/components/ui/input.tsx
|
|
7038
|
-
function
|
|
6972
|
+
function Od({ className: e, type: t, ...n }) {
|
|
7039
6973
|
return /* @__PURE__ */ f("input", {
|
|
7040
6974
|
type: t,
|
|
7041
6975
|
"data-slot": "input",
|
|
@@ -7045,7 +6979,7 @@ function Ad({ className: e, type: t, ...n }) {
|
|
|
7045
6979
|
}
|
|
7046
6980
|
//#endregion
|
|
7047
6981
|
//#region src/components/ui/native-select.tsx
|
|
7048
|
-
function
|
|
6982
|
+
function kd({ className: e, size: t = "default", ...n }) {
|
|
7049
6983
|
return /* @__PURE__ */ p("div", {
|
|
7050
6984
|
className: H("group/native-select relative w-fit has-[select:disabled]:opacity-50", e),
|
|
7051
6985
|
"data-slot": "native-select-wrapper",
|
|
@@ -7062,7 +6996,7 @@ function jd({ className: e, size: t = "default", ...n }) {
|
|
|
7062
6996
|
})]
|
|
7063
6997
|
});
|
|
7064
6998
|
}
|
|
7065
|
-
function
|
|
6999
|
+
function Ad({ ...e }) {
|
|
7066
7000
|
return /* @__PURE__ */ f("option", {
|
|
7067
7001
|
"data-slot": "native-select-option",
|
|
7068
7002
|
...e
|
|
@@ -7070,8 +7004,8 @@ function Md({ ...e }) {
|
|
|
7070
7004
|
}
|
|
7071
7005
|
//#endregion
|
|
7072
7006
|
//#region src/components/pagination/index.tsx
|
|
7073
|
-
var
|
|
7074
|
-
let { table: t } =
|
|
7007
|
+
var jd = ({ pagination: e = [] }) => {
|
|
7008
|
+
let { table: t } = er();
|
|
7075
7009
|
return /* @__PURE__ */ p("div", {
|
|
7076
7010
|
className: "flex items-center justify-between flex-wrap",
|
|
7077
7011
|
children: [/* @__PURE__ */ p("span", {
|
|
@@ -7091,7 +7025,7 @@ var Nd = ({ pagination: e = [] }) => {
|
|
|
7091
7025
|
}), /* @__PURE__ */ p("div", {
|
|
7092
7026
|
className: "flex items-center gap-4 flex-wrap",
|
|
7093
7027
|
children: [
|
|
7094
|
-
/* @__PURE__ */ f(
|
|
7028
|
+
/* @__PURE__ */ f(Od, {
|
|
7095
7029
|
type: "number",
|
|
7096
7030
|
className: "w-16",
|
|
7097
7031
|
min: "1",
|
|
@@ -7102,12 +7036,12 @@ var Nd = ({ pagination: e = [] }) => {
|
|
|
7102
7036
|
t.setPageIndex(n);
|
|
7103
7037
|
}
|
|
7104
7038
|
}),
|
|
7105
|
-
/* @__PURE__ */ f(
|
|
7039
|
+
/* @__PURE__ */ f(kd, {
|
|
7106
7040
|
value: t.getState().pagination.pageSize,
|
|
7107
7041
|
onChange: (e) => {
|
|
7108
7042
|
t.setPageSize(Number(e.target.value));
|
|
7109
7043
|
},
|
|
7110
|
-
children: e.map((e) => /* @__PURE__ */ p(
|
|
7044
|
+
children: e.map((e) => /* @__PURE__ */ p(Ad, {
|
|
7111
7045
|
value: e,
|
|
7112
7046
|
children: ["Show ", e]
|
|
7113
7047
|
}, e))
|
|
@@ -7115,28 +7049,28 @@ var Nd = ({ pagination: e = [] }) => {
|
|
|
7115
7049
|
/* @__PURE__ */ p("div", {
|
|
7116
7050
|
className: "flex items-center gap-2",
|
|
7117
7051
|
children: [
|
|
7118
|
-
/* @__PURE__ */ f(
|
|
7052
|
+
/* @__PURE__ */ f(Dd, {
|
|
7119
7053
|
size: "icon",
|
|
7120
7054
|
variant: "outline",
|
|
7121
7055
|
onClick: () => t.firstPage(),
|
|
7122
7056
|
disabled: !t.getCanPreviousPage(),
|
|
7123
7057
|
children: /* @__PURE__ */ f(gt, {})
|
|
7124
7058
|
}),
|
|
7125
|
-
/* @__PURE__ */ f(
|
|
7059
|
+
/* @__PURE__ */ f(Dd, {
|
|
7126
7060
|
size: "icon",
|
|
7127
7061
|
variant: "outline",
|
|
7128
7062
|
onClick: () => t.previousPage(),
|
|
7129
7063
|
disabled: !t.getCanPreviousPage(),
|
|
7130
7064
|
children: /* @__PURE__ */ f(pt, {})
|
|
7131
7065
|
}),
|
|
7132
|
-
/* @__PURE__ */ f(
|
|
7066
|
+
/* @__PURE__ */ f(Dd, {
|
|
7133
7067
|
size: "icon",
|
|
7134
7068
|
variant: "outline",
|
|
7135
7069
|
onClick: () => t.nextPage(),
|
|
7136
7070
|
disabled: !t.getCanNextPage(),
|
|
7137
7071
|
children: /* @__PURE__ */ f(mt, {})
|
|
7138
7072
|
}),
|
|
7139
|
-
/* @__PURE__ */ f(
|
|
7073
|
+
/* @__PURE__ */ f(Dd, {
|
|
7140
7074
|
size: "icon",
|
|
7141
7075
|
variant: "outline",
|
|
7142
7076
|
onClick: () => t.lastPage(),
|
|
@@ -7148,7 +7082,7 @@ var Nd = ({ pagination: e = [] }) => {
|
|
|
7148
7082
|
]
|
|
7149
7083
|
})]
|
|
7150
7084
|
});
|
|
7151
|
-
},
|
|
7085
|
+
}, Md = () => {
|
|
7152
7086
|
let [e, t] = u(navigator.onLine);
|
|
7153
7087
|
return o(() => {
|
|
7154
7088
|
let e = () => t(!0), n = () => t(!1);
|
|
@@ -7170,7 +7104,7 @@ var Nd = ({ pagination: e = [] }) => {
|
|
|
7170
7104
|
className: "text-sm text-muted-foreground mb-6 text-center max-w-md",
|
|
7171
7105
|
children: e ? "Something went wrong. Please try refreshing the page." : "You're currently offline. Please check your internet connection."
|
|
7172
7106
|
}),
|
|
7173
|
-
/* @__PURE__ */ f(
|
|
7107
|
+
/* @__PURE__ */ f(Dd, {
|
|
7174
7108
|
onClick: () => {
|
|
7175
7109
|
e && window.location.reload();
|
|
7176
7110
|
},
|
|
@@ -7180,48 +7114,48 @@ var Nd = ({ pagination: e = [] }) => {
|
|
|
7180
7114
|
})
|
|
7181
7115
|
]
|
|
7182
7116
|
});
|
|
7183
|
-
},
|
|
7117
|
+
}, Nd = () => /* @__PURE__ */ f("div", {
|
|
7184
7118
|
className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
7185
|
-
children: /* @__PURE__ */ f(
|
|
7119
|
+
children: /* @__PURE__ */ f(Md, {})
|
|
7186
7120
|
});
|
|
7187
7121
|
//#endregion
|
|
7188
7122
|
//#region src/components/ui/table.tsx
|
|
7189
|
-
function
|
|
7123
|
+
function Pd({ className: e, ...t }) {
|
|
7190
7124
|
return /* @__PURE__ */ f("table", {
|
|
7191
7125
|
"data-slot": "table",
|
|
7192
7126
|
className: H("w-full caption-bottom text-sm", e),
|
|
7193
7127
|
...t
|
|
7194
7128
|
});
|
|
7195
7129
|
}
|
|
7196
|
-
function
|
|
7130
|
+
function Fd({ className: e, ...t }) {
|
|
7197
7131
|
return /* @__PURE__ */ f("thead", {
|
|
7198
7132
|
"data-slot": "table-header",
|
|
7199
7133
|
className: H("[&_tr]:border-b", e),
|
|
7200
7134
|
...t
|
|
7201
7135
|
});
|
|
7202
7136
|
}
|
|
7203
|
-
function
|
|
7137
|
+
function Id({ className: e, ...t }) {
|
|
7204
7138
|
return /* @__PURE__ */ f("tbody", {
|
|
7205
7139
|
"data-slot": "table-body",
|
|
7206
7140
|
className: H("[&_tr:last-child]:border-0", e),
|
|
7207
7141
|
...t
|
|
7208
7142
|
});
|
|
7209
7143
|
}
|
|
7210
|
-
function
|
|
7144
|
+
function Ld({ className: e, ...t }) {
|
|
7211
7145
|
return /* @__PURE__ */ f("tr", {
|
|
7212
7146
|
"data-slot": "table-row",
|
|
7213
7147
|
className: H("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", e),
|
|
7214
7148
|
...t
|
|
7215
7149
|
});
|
|
7216
7150
|
}
|
|
7217
|
-
function
|
|
7151
|
+
function Rd({ className: e, ...t }) {
|
|
7218
7152
|
return /* @__PURE__ */ f("th", {
|
|
7219
7153
|
"data-slot": "table-head",
|
|
7220
7154
|
className: H("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0", e),
|
|
7221
7155
|
...t
|
|
7222
7156
|
});
|
|
7223
7157
|
}
|
|
7224
|
-
function
|
|
7158
|
+
function zd({ className: e, ...t }) {
|
|
7225
7159
|
return /* @__PURE__ */ f("td", {
|
|
7226
7160
|
"data-slot": "table-cell",
|
|
7227
7161
|
className: H("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", e),
|
|
@@ -7230,46 +7164,46 @@ function Vd({ className: e, ...t }) {
|
|
|
7230
7164
|
}
|
|
7231
7165
|
//#endregion
|
|
7232
7166
|
//#region src/components/ui/empty.tsx
|
|
7233
|
-
function
|
|
7167
|
+
function Bd({ className: e, ...t }) {
|
|
7234
7168
|
return /* @__PURE__ */ f("div", {
|
|
7235
7169
|
"data-slot": "empty",
|
|
7236
7170
|
className: H("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance", e),
|
|
7237
7171
|
...t
|
|
7238
7172
|
});
|
|
7239
7173
|
}
|
|
7240
|
-
function
|
|
7174
|
+
function Vd({ className: e, ...t }) {
|
|
7241
7175
|
return /* @__PURE__ */ f("div", {
|
|
7242
7176
|
"data-slot": "empty-header",
|
|
7243
7177
|
className: H("flex max-w-sm flex-col items-center gap-2", e),
|
|
7244
7178
|
...t
|
|
7245
7179
|
});
|
|
7246
7180
|
}
|
|
7247
|
-
var
|
|
7181
|
+
var Hd = rr("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
7248
7182
|
variants: { variant: {
|
|
7249
7183
|
default: "bg-transparent",
|
|
7250
7184
|
icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"
|
|
7251
7185
|
} },
|
|
7252
7186
|
defaultVariants: { variant: "default" }
|
|
7253
7187
|
});
|
|
7254
|
-
function
|
|
7188
|
+
function Ud({ className: e, variant: t = "default", ...n }) {
|
|
7255
7189
|
return /* @__PURE__ */ f("div", {
|
|
7256
7190
|
"data-slot": "empty-icon",
|
|
7257
7191
|
"data-variant": t,
|
|
7258
|
-
className: H(
|
|
7192
|
+
className: H(Hd({
|
|
7259
7193
|
variant: t,
|
|
7260
7194
|
className: e
|
|
7261
7195
|
})),
|
|
7262
7196
|
...n
|
|
7263
7197
|
});
|
|
7264
7198
|
}
|
|
7265
|
-
function
|
|
7199
|
+
function Wd({ className: e, ...t }) {
|
|
7266
7200
|
return /* @__PURE__ */ f("div", {
|
|
7267
7201
|
"data-slot": "empty-title",
|
|
7268
7202
|
className: H("font-heading text-sm font-medium tracking-tight", e),
|
|
7269
7203
|
...t
|
|
7270
7204
|
});
|
|
7271
7205
|
}
|
|
7272
|
-
function
|
|
7206
|
+
function Gd({ className: e, ...t }) {
|
|
7273
7207
|
return /* @__PURE__ */ f("div", {
|
|
7274
7208
|
"data-slot": "empty-description",
|
|
7275
7209
|
className: H("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
@@ -7278,24 +7212,24 @@ function qd({ className: e, ...t }) {
|
|
|
7278
7212
|
}
|
|
7279
7213
|
//#endregion
|
|
7280
7214
|
//#region src/components/feedback/NoDataFoundMsg.tsx
|
|
7281
|
-
var
|
|
7215
|
+
var Kd = () => /* @__PURE__ */ f("div", {
|
|
7282
7216
|
className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 hover:bg-transparent",
|
|
7283
|
-
children: /* @__PURE__ */ f(
|
|
7284
|
-
/* @__PURE__ */ f(
|
|
7217
|
+
children: /* @__PURE__ */ f(Bd, { children: /* @__PURE__ */ p(Vd, { children: [
|
|
7218
|
+
/* @__PURE__ */ f(Ud, {
|
|
7285
7219
|
variant: "icon",
|
|
7286
7220
|
children: /* @__PURE__ */ f(yt, {})
|
|
7287
7221
|
}),
|
|
7288
|
-
/* @__PURE__ */ f(
|
|
7289
|
-
/* @__PURE__ */ f(
|
|
7222
|
+
/* @__PURE__ */ f(Wd, { children: "No data" }),
|
|
7223
|
+
/* @__PURE__ */ f(Gd, { children: "No data found" })
|
|
7290
7224
|
] }) })
|
|
7291
|
-
}),
|
|
7292
|
-
let { table: e } =
|
|
7293
|
-
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(
|
|
7225
|
+
}), qd = () => {
|
|
7226
|
+
let { table: e } = er();
|
|
7227
|
+
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(Pd, { children: /* @__PURE__ */ f(Id, { children: /* @__PURE__ */ f(Ld, { children: c(() => e.getAllLeafColumns(), [e]).map((e, t) => /* @__PURE__ */ f(zd, { style: {
|
|
7294
7228
|
width: e.getSize(),
|
|
7295
7229
|
minWidth: e.getSize(),
|
|
7296
7230
|
maxWidth: e.getSize()
|
|
7297
|
-
} }, t)) }) }) }), /* @__PURE__ */ f(
|
|
7298
|
-
},
|
|
7231
|
+
} }, t)) }) }) }), /* @__PURE__ */ f(Kd, {})] });
|
|
7232
|
+
}, Jd = (e) => {
|
|
7299
7233
|
let t = e.getIsPinned(), n = t === "left" && e.getIsLastColumn("left"), r = t === "right" && e.getIsFirstColumn("right");
|
|
7300
7234
|
return {
|
|
7301
7235
|
borderRight: n ? "1px solid var(--border)" : void 0,
|
|
@@ -7310,7 +7244,7 @@ var Jd = () => /* @__PURE__ */ f("div", {
|
|
|
7310
7244
|
};
|
|
7311
7245
|
//#endregion
|
|
7312
7246
|
//#region src/components/ui/skeleton.tsx
|
|
7313
|
-
function
|
|
7247
|
+
function Yd({ className: e, ...t }) {
|
|
7314
7248
|
return /* @__PURE__ */ f("div", {
|
|
7315
7249
|
"data-slot": "skeleton",
|
|
7316
7250
|
className: H("bg-accent animate-pulse rounded-md", e),
|
|
@@ -7319,7 +7253,7 @@ function Zd({ className: e, ...t }) {
|
|
|
7319
7253
|
}
|
|
7320
7254
|
//#endregion
|
|
7321
7255
|
//#region src/components/feedback/TableRowSkeleton.tsx
|
|
7322
|
-
var
|
|
7256
|
+
var Xd = [
|
|
7323
7257
|
100,
|
|
7324
7258
|
60,
|
|
7325
7259
|
130,
|
|
@@ -7328,7 +7262,7 @@ var Qd = [
|
|
|
7328
7262
|
70,
|
|
7329
7263
|
40,
|
|
7330
7264
|
120
|
|
7331
|
-
],
|
|
7265
|
+
], Zd = ({ column: e, i: t, j: n }) => /* @__PURE__ */ f(d, { children: ["select"].includes(e.id) ? /* @__PURE__ */ f(wt, {
|
|
7332
7266
|
size: 16,
|
|
7333
7267
|
className: "animate-spin"
|
|
7334
7268
|
}) : [
|
|
@@ -7336,46 +7270,46 @@ var Qd = [
|
|
|
7336
7270
|
"pin",
|
|
7337
7271
|
"drag-handle",
|
|
7338
7272
|
"rowNumber"
|
|
7339
|
-
].includes(e.id) ? /* @__PURE__ */ f(
|
|
7273
|
+
].includes(e.id) ? /* @__PURE__ */ f(Yd, { className: "w-full h-4" }) : /* @__PURE__ */ f(Yd, {
|
|
7340
7274
|
className: "h-4",
|
|
7341
|
-
style: { width: `${
|
|
7342
|
-
}) }),
|
|
7343
|
-
let { table: e } =
|
|
7344
|
-
return /* @__PURE__ */ f(
|
|
7275
|
+
style: { width: `${Xd[(t + n) % Xd.length]}px` }
|
|
7276
|
+
}) }), Qd = () => {
|
|
7277
|
+
let { table: e } = er(), t = e.getHeaderGroups().map((e) => e.headers.filter((e) => !e.isPlaceholder && !e.subHeaders?.length).map((e) => e.column)).flat();
|
|
7278
|
+
return /* @__PURE__ */ f(Pd, { children: /* @__PURE__ */ f(Id, { children: [...Array(20)].map((e, n) => /* @__PURE__ */ f(Ld, {
|
|
7345
7279
|
className: "*:border-r *:border-border",
|
|
7346
|
-
children: t.map((e, t) => /* @__PURE__ */ f(
|
|
7280
|
+
children: t.map((e, t) => /* @__PURE__ */ f(zd, {
|
|
7347
7281
|
style: {
|
|
7348
7282
|
width: e.getSize(),
|
|
7349
7283
|
minWidth: e.getSize(),
|
|
7350
7284
|
maxWidth: e.getSize(),
|
|
7351
|
-
...
|
|
7285
|
+
...Jd(e)
|
|
7352
7286
|
},
|
|
7353
|
-
children: /* @__PURE__ */ f(
|
|
7287
|
+
children: /* @__PURE__ */ f(Zd, {
|
|
7354
7288
|
column: e,
|
|
7355
7289
|
i: n,
|
|
7356
7290
|
j: t
|
|
7357
7291
|
})
|
|
7358
7292
|
}, t))
|
|
7359
7293
|
}, n)) }) });
|
|
7360
|
-
},
|
|
7294
|
+
}, $d = ({ cell: e }) => /* @__PURE__ */ f(zd, {
|
|
7361
7295
|
style: {
|
|
7362
7296
|
position: "relative",
|
|
7363
7297
|
width: e.column.getSize(),
|
|
7364
7298
|
minWidth: e.column.getSize(),
|
|
7365
7299
|
maxWidth: e.column.getSize(),
|
|
7366
|
-
...
|
|
7300
|
+
...Jd(e.column)
|
|
7367
7301
|
},
|
|
7368
|
-
children:
|
|
7369
|
-
}, e.id),
|
|
7370
|
-
let { table: e, isLoading: n, isError: r, renderSubComponent: i } =
|
|
7371
|
-
return n ? /* @__PURE__ */ f(
|
|
7302
|
+
children: Kn(e.column.columnDef.cell, e.getContext())
|
|
7303
|
+
}, e.id), ef = () => {
|
|
7304
|
+
let { table: e, isLoading: n, isError: r, renderSubComponent: i } = er();
|
|
7305
|
+
return n ? /* @__PURE__ */ f(Qd, {}) : r ? /* @__PURE__ */ f(Nd, {}) : e.getRowModel().rows.length === 0 ? /* @__PURE__ */ f(qd, {}) : /* @__PURE__ */ f(Pd, { children: /* @__PURE__ */ f(Id, { children: e.getRowModel().rows.map((e) => /* @__PURE__ */ p(t.Fragment, { children: [/* @__PURE__ */ f(Ld, {
|
|
7372
7306
|
className: "*:border-r *:border-border",
|
|
7373
|
-
children: e.getVisibleCells().map((e) => /* @__PURE__ */ f(
|
|
7374
|
-
}), i && e.getIsExpanded() && /* @__PURE__ */ f(
|
|
7307
|
+
children: e.getVisibleCells().map((e) => /* @__PURE__ */ f($d, { cell: e }, e.id))
|
|
7308
|
+
}), i && e.getIsExpanded() && /* @__PURE__ */ f(Ld, { children: /* @__PURE__ */ f(zd, {
|
|
7375
7309
|
colSpan: e.getVisibleCells().length,
|
|
7376
7310
|
children: i({ row: e })
|
|
7377
7311
|
}) })] }, e.id)) }) });
|
|
7378
|
-
},
|
|
7312
|
+
}, tf = ({ value: e, onChange: n, debounce: r = 500, ...i }) => {
|
|
7379
7313
|
let [a, o] = t.useState(e);
|
|
7380
7314
|
return t.useEffect(() => {
|
|
7381
7315
|
o(e);
|
|
@@ -7384,12 +7318,12 @@ var Qd = [
|
|
|
7384
7318
|
n(a);
|
|
7385
7319
|
}, r);
|
|
7386
7320
|
return () => clearTimeout(e);
|
|
7387
|
-
}, [a]), /* @__PURE__ */ f(
|
|
7321
|
+
}, [a]), /* @__PURE__ */ f(Od, {
|
|
7388
7322
|
...i,
|
|
7389
7323
|
value: a,
|
|
7390
7324
|
onChange: (e) => o(e.target.value)
|
|
7391
7325
|
});
|
|
7392
|
-
},
|
|
7326
|
+
}, nf = ({ column: e }) => {
|
|
7393
7327
|
let t = e.getFilterValue(), { filterVariant: n } = e.columnDef.meta ?? {}, [r, i] = u([]);
|
|
7394
7328
|
return o(() => {
|
|
7395
7329
|
if (n === "select") {
|
|
@@ -7400,27 +7334,27 @@ var Qd = [
|
|
|
7400
7334
|
className: "p-1.5 border-t border-border w-full",
|
|
7401
7335
|
children: n === "range" ? /* @__PURE__ */ p("div", {
|
|
7402
7336
|
className: "flex gap-1.5",
|
|
7403
|
-
children: [/* @__PURE__ */ f(
|
|
7337
|
+
children: [/* @__PURE__ */ f(tf, {
|
|
7404
7338
|
type: "number",
|
|
7405
7339
|
value: t?.[0] ?? "",
|
|
7406
7340
|
onChange: (t) => e.setFilterValue((e) => [t, e?.[1]]),
|
|
7407
7341
|
placeholder: "Min"
|
|
7408
|
-
}), /* @__PURE__ */ f(
|
|
7342
|
+
}), /* @__PURE__ */ f(tf, {
|
|
7409
7343
|
type: "number",
|
|
7410
7344
|
value: t?.[1] ?? "",
|
|
7411
7345
|
onChange: (t) => e.setFilterValue((e) => [e?.[0], t]),
|
|
7412
7346
|
placeholder: "Max"
|
|
7413
7347
|
})]
|
|
7414
|
-
}) : n === "select" ? /* @__PURE__ */ p(
|
|
7348
|
+
}) : n === "select" ? /* @__PURE__ */ p(kd, {
|
|
7415
7349
|
value: t?.toString() ?? "",
|
|
7416
7350
|
onChange: (t) => e.setFilterValue(t.target.value === "all" ? void 0 : t.target.value),
|
|
7417
7351
|
className: "w-full",
|
|
7418
|
-
children: [/* @__PURE__ */ f(
|
|
7352
|
+
children: [/* @__PURE__ */ f(Ad, {
|
|
7419
7353
|
value: "",
|
|
7420
7354
|
children: "All"
|
|
7421
7355
|
}), r.map((e) => {
|
|
7422
7356
|
let t = typeof e == "boolean" ? String(e) : e;
|
|
7423
|
-
return /* @__PURE__ */ f(
|
|
7357
|
+
return /* @__PURE__ */ f(Ad, {
|
|
7424
7358
|
value: t,
|
|
7425
7359
|
className: "capitalize",
|
|
7426
7360
|
children: t
|
|
@@ -7437,7 +7371,7 @@ var Qd = [
|
|
|
7437
7371
|
"tel",
|
|
7438
7372
|
"url",
|
|
7439
7373
|
"color"
|
|
7440
|
-
].includes(n) ? /* @__PURE__ */ f(
|
|
7374
|
+
].includes(n) ? /* @__PURE__ */ f(tf, {
|
|
7441
7375
|
onChange: (t) => e.setFilterValue(t),
|
|
7442
7376
|
placeholder: "Search...",
|
|
7443
7377
|
type: n,
|
|
@@ -7447,20 +7381,20 @@ var Qd = [
|
|
|
7447
7381
|
};
|
|
7448
7382
|
//#endregion
|
|
7449
7383
|
//#region src/components/ui/dropdown-menu.tsx
|
|
7450
|
-
function
|
|
7451
|
-
return /* @__PURE__ */ f(
|
|
7384
|
+
function rf({ ...e }) {
|
|
7385
|
+
return /* @__PURE__ */ f(ud, {
|
|
7452
7386
|
"data-slot": "dropdown-menu",
|
|
7453
7387
|
...e
|
|
7454
7388
|
});
|
|
7455
7389
|
}
|
|
7456
|
-
function
|
|
7457
|
-
return /* @__PURE__ */ f(
|
|
7390
|
+
function af({ ...e }) {
|
|
7391
|
+
return /* @__PURE__ */ f(dd, {
|
|
7458
7392
|
"data-slot": "dropdown-menu-trigger",
|
|
7459
7393
|
...e
|
|
7460
7394
|
});
|
|
7461
7395
|
}
|
|
7462
|
-
function
|
|
7463
|
-
return /* @__PURE__ */ f(
|
|
7396
|
+
function of({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
|
|
7397
|
+
return /* @__PURE__ */ f(fd, { children: /* @__PURE__ */ f(pd, {
|
|
7464
7398
|
"data-slot": "dropdown-menu-content",
|
|
7465
7399
|
sideOffset: n,
|
|
7466
7400
|
align: t,
|
|
@@ -7468,14 +7402,14 @@ function cf({ className: e, align: t = "start", sideOffset: n = 4, ...r }) {
|
|
|
7468
7402
|
...r
|
|
7469
7403
|
}) });
|
|
7470
7404
|
}
|
|
7471
|
-
function
|
|
7472
|
-
return /* @__PURE__ */ f(
|
|
7405
|
+
function sf({ ...e }) {
|
|
7406
|
+
return /* @__PURE__ */ f(md, {
|
|
7473
7407
|
"data-slot": "dropdown-menu-group",
|
|
7474
7408
|
...e
|
|
7475
7409
|
});
|
|
7476
7410
|
}
|
|
7477
|
-
function
|
|
7478
|
-
return /* @__PURE__ */ f(
|
|
7411
|
+
function cf({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
7412
|
+
return /* @__PURE__ */ f(hd, {
|
|
7479
7413
|
"data-slot": "dropdown-menu-item",
|
|
7480
7414
|
"data-inset": t,
|
|
7481
7415
|
"data-variant": n,
|
|
@@ -7483,14 +7417,14 @@ function uf({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
7483
7417
|
...r
|
|
7484
7418
|
});
|
|
7485
7419
|
}
|
|
7486
|
-
function
|
|
7487
|
-
return /* @__PURE__ */ f(
|
|
7420
|
+
function lf({ className: e, ...t }) {
|
|
7421
|
+
return /* @__PURE__ */ f(gd, {
|
|
7488
7422
|
"data-slot": "dropdown-menu-separator",
|
|
7489
7423
|
className: H("-mx-1 my-1 h-px bg-border", e),
|
|
7490
7424
|
...t
|
|
7491
7425
|
});
|
|
7492
7426
|
}
|
|
7493
|
-
function
|
|
7427
|
+
function uf({ className: e, ...t }) {
|
|
7494
7428
|
return /* @__PURE__ */ f("span", {
|
|
7495
7429
|
"data-slot": "dropdown-menu-shortcut",
|
|
7496
7430
|
className: H("ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground", e),
|
|
@@ -7499,84 +7433,84 @@ function ff({ className: e, ...t }) {
|
|
|
7499
7433
|
}
|
|
7500
7434
|
//#endregion
|
|
7501
7435
|
//#region src/components/header/HeaderMenu.tsx
|
|
7502
|
-
var
|
|
7503
|
-
let [t, n] = u(!1), { isLoading: r, isError: i } =
|
|
7504
|
-
return e.column.getCanFilter() ? /* @__PURE__ */ p(
|
|
7436
|
+
var df = ({ header: e }) => {
|
|
7437
|
+
let [t, n] = u(!1), { isLoading: r, isError: i } = er();
|
|
7438
|
+
return e.column.getCanFilter() ? /* @__PURE__ */ p(rf, {
|
|
7505
7439
|
open: t,
|
|
7506
7440
|
onOpenChange: n,
|
|
7507
|
-
children: [/* @__PURE__ */ f(
|
|
7441
|
+
children: [/* @__PURE__ */ f(af, {
|
|
7508
7442
|
asChild: !0,
|
|
7509
|
-
children: /* @__PURE__ */ f(
|
|
7443
|
+
children: /* @__PURE__ */ f(Dd, {
|
|
7510
7444
|
size: "icon-xs",
|
|
7511
7445
|
variant: t ? "outline" : "ghost",
|
|
7512
7446
|
disabled: r || i,
|
|
7513
7447
|
children: /* @__PURE__ */ f(bt, {})
|
|
7514
7448
|
})
|
|
7515
|
-
}), /* @__PURE__ */ p(
|
|
7449
|
+
}), /* @__PURE__ */ p(of, {
|
|
7516
7450
|
align: "end",
|
|
7517
7451
|
children: [
|
|
7518
|
-
/* @__PURE__ */ p(
|
|
7452
|
+
/* @__PURE__ */ p(sf, { children: [/* @__PURE__ */ p(cf, {
|
|
7519
7453
|
onClick: () => {
|
|
7520
7454
|
e.column.toggleSorting(!1), n(!1);
|
|
7521
7455
|
},
|
|
7522
7456
|
disabled: !e.column.getCanSort(),
|
|
7523
|
-
children: ["Sort ASC", /* @__PURE__ */ f(
|
|
7524
|
-
}), /* @__PURE__ */ p(
|
|
7457
|
+
children: ["Sort ASC", /* @__PURE__ */ f(uf, { children: /* @__PURE__ */ f(dt, {}) })]
|
|
7458
|
+
}), /* @__PURE__ */ p(cf, {
|
|
7525
7459
|
onClick: () => {
|
|
7526
7460
|
e.column.toggleSorting(!1), n(!1);
|
|
7527
7461
|
},
|
|
7528
7462
|
disabled: !e.column.getCanSort(),
|
|
7529
|
-
children: ["Sort DESC", /* @__PURE__ */ f(
|
|
7463
|
+
children: ["Sort DESC", /* @__PURE__ */ f(uf, { children: /* @__PURE__ */ f(ut, {}) })]
|
|
7530
7464
|
})] }),
|
|
7531
|
-
/* @__PURE__ */ f(
|
|
7532
|
-
!e.isPlaceholder && e.column.getCanPin() && /* @__PURE__ */ p(
|
|
7533
|
-
e.column.getIsPinned() !== "left" && /* @__PURE__ */ p(
|
|
7465
|
+
/* @__PURE__ */ f(lf, {}),
|
|
7466
|
+
!e.isPlaceholder && e.column.getCanPin() && /* @__PURE__ */ p(sf, { children: [
|
|
7467
|
+
e.column.getIsPinned() !== "left" && /* @__PURE__ */ p(cf, {
|
|
7534
7468
|
onClick: () => {
|
|
7535
7469
|
e.column.pin("left");
|
|
7536
7470
|
},
|
|
7537
|
-
children: ["Pin to left", /* @__PURE__ */ f(
|
|
7471
|
+
children: ["Pin to left", /* @__PURE__ */ f(uf, { children: /* @__PURE__ */ f(Et, { className: "rotate-45" }) })]
|
|
7538
7472
|
}),
|
|
7539
|
-
e.column.getIsPinned() && /* @__PURE__ */ p(
|
|
7473
|
+
e.column.getIsPinned() && /* @__PURE__ */ p(cf, {
|
|
7540
7474
|
onClick: () => {
|
|
7541
7475
|
e.column.pin(!1);
|
|
7542
7476
|
},
|
|
7543
|
-
children: ["Unpin", /* @__PURE__ */ f(
|
|
7477
|
+
children: ["Unpin", /* @__PURE__ */ f(uf, { children: /* @__PURE__ */ f(Tt, {}) })]
|
|
7544
7478
|
}),
|
|
7545
|
-
e.column.getIsPinned() !== "right" && /* @__PURE__ */ p(
|
|
7479
|
+
e.column.getIsPinned() !== "right" && /* @__PURE__ */ p(cf, {
|
|
7546
7480
|
onClick: () => {
|
|
7547
7481
|
e.column.pin("right");
|
|
7548
7482
|
},
|
|
7549
|
-
children: ["Pin to right", /* @__PURE__ */ f(
|
|
7483
|
+
children: ["Pin to right", /* @__PURE__ */ f(uf, { children: /* @__PURE__ */ f(Et, { className: "-rotate-45" }) })]
|
|
7550
7484
|
})
|
|
7551
7485
|
] }),
|
|
7552
|
-
/* @__PURE__ */ f(
|
|
7553
|
-
/* @__PURE__ */ f(
|
|
7486
|
+
/* @__PURE__ */ f(lf, {}),
|
|
7487
|
+
/* @__PURE__ */ f(sf, { children: /* @__PURE__ */ p(cf, {
|
|
7554
7488
|
onClick: () => {
|
|
7555
7489
|
e.column.toggleVisibility(!1), n(!1);
|
|
7556
7490
|
},
|
|
7557
7491
|
disabled: !e.column.getCanHide(),
|
|
7558
|
-
children: ["Hide column", /* @__PURE__ */ f(
|
|
7492
|
+
children: ["Hide column", /* @__PURE__ */ f(uf, { children: /* @__PURE__ */ f(xt, {}) })]
|
|
7559
7493
|
}) })
|
|
7560
7494
|
]
|
|
7561
7495
|
})]
|
|
7562
7496
|
}) : null;
|
|
7563
|
-
},
|
|
7497
|
+
}, ff = ({ header: e }) => /* @__PURE__ */ p("div", {
|
|
7564
7498
|
className: e.column.getCanSort() ? "cursor-pointer select-none flex items-center gap-2" : "",
|
|
7565
7499
|
onClick: e.column.getToggleSortingHandler(),
|
|
7566
|
-
children: [
|
|
7500
|
+
children: [Kn(e.column.columnDef.header, e.getContext()), {
|
|
7567
7501
|
asc: /* @__PURE__ */ f(ht, { className: "size-4" }),
|
|
7568
7502
|
desc: /* @__PURE__ */ f(ft, { className: "size-4" })
|
|
7569
7503
|
}[e.column.getIsSorted()] ?? null]
|
|
7570
|
-
}),
|
|
7504
|
+
}), pf = ({ header: e }) => {
|
|
7571
7505
|
let t = {
|
|
7572
7506
|
position: "relative",
|
|
7573
7507
|
whiteSpace: "nowrap",
|
|
7574
7508
|
width: e.getSize(),
|
|
7575
7509
|
minWidth: e.getSize(),
|
|
7576
7510
|
maxWidth: e.getSize(),
|
|
7577
|
-
...
|
|
7511
|
+
...Jd(e.column)
|
|
7578
7512
|
};
|
|
7579
|
-
return /* @__PURE__ */ f(
|
|
7513
|
+
return /* @__PURE__ */ f(Rd, {
|
|
7580
7514
|
colSpan: e.colSpan,
|
|
7581
7515
|
style: t,
|
|
7582
7516
|
className: "p-0 truncate relative group",
|
|
@@ -7584,28 +7518,28 @@ var pf = ({ header: e }) => {
|
|
|
7584
7518
|
className: "flex flex-col gap-1.5",
|
|
7585
7519
|
children: [/* @__PURE__ */ p("div", {
|
|
7586
7520
|
className: "p-1.5 flex items-center justify-between gap-3",
|
|
7587
|
-
children: [/* @__PURE__ */ f(
|
|
7588
|
-
}), /* @__PURE__ */ f(
|
|
7521
|
+
children: [/* @__PURE__ */ f(ff, { header: e }), /* @__PURE__ */ f(df, { header: e })]
|
|
7522
|
+
}), /* @__PURE__ */ f(nf, { column: e.column })]
|
|
7589
7523
|
}) })
|
|
7590
7524
|
}, e.id);
|
|
7591
|
-
},
|
|
7592
|
-
let { table: e } =
|
|
7593
|
-
return /* @__PURE__ */ f(
|
|
7525
|
+
}, mf = () => {
|
|
7526
|
+
let { table: e } = er();
|
|
7527
|
+
return /* @__PURE__ */ f(Pd, { children: /* @__PURE__ */ f(Fd, { children: e.getHeaderGroups().map((e) => /* @__PURE__ */ f(Ld, {
|
|
7594
7528
|
className: "*:border-r *:border-border",
|
|
7595
|
-
children: e.headers.map((e) => /* @__PURE__ */ f(
|
|
7529
|
+
children: e.headers.map((e) => /* @__PURE__ */ f(pf, { header: e }, e.id))
|
|
7596
7530
|
}, e.id)) }) });
|
|
7597
|
-
},
|
|
7598
|
-
let { paneRef1: e, paneRef2: n } =
|
|
7531
|
+
}, hf = () => {
|
|
7532
|
+
let { paneRef1: e, paneRef2: n } = er();
|
|
7599
7533
|
return /* @__PURE__ */ p(t.Fragment, { children: [/* @__PURE__ */ f("div", {
|
|
7600
7534
|
className: "w-full bg-muted border-b border-border overflow-y-scroll [scrollbar-color:transparent_transparent] overflow-x-hidden",
|
|
7601
7535
|
ref: e,
|
|
7602
|
-
children: /* @__PURE__ */ f(
|
|
7536
|
+
children: /* @__PURE__ */ f(mf, {})
|
|
7603
7537
|
}), /* @__PURE__ */ f("div", {
|
|
7604
7538
|
className: "h-[75vh] w-full overflow-scroll bg-background",
|
|
7605
7539
|
ref: n,
|
|
7606
|
-
children: /* @__PURE__ */ f(
|
|
7540
|
+
children: /* @__PURE__ */ f(ef, {})
|
|
7607
7541
|
})] });
|
|
7608
|
-
},
|
|
7542
|
+
}, gf = rr("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
7609
7543
|
variants: { variant: {
|
|
7610
7544
|
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
7611
7545
|
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
@@ -7616,18 +7550,18 @@ var pf = ({ header: e }) => {
|
|
|
7616
7550
|
} },
|
|
7617
7551
|
defaultVariants: { variant: "default" }
|
|
7618
7552
|
});
|
|
7619
|
-
function
|
|
7620
|
-
return /* @__PURE__ */ f(n ?
|
|
7553
|
+
function _f({ className: e, variant: t = "default", asChild: n = !1, ...r }) {
|
|
7554
|
+
return /* @__PURE__ */ f(n ? sr : "span", {
|
|
7621
7555
|
"data-slot": "badge",
|
|
7622
7556
|
"data-variant": t,
|
|
7623
|
-
className: H(
|
|
7557
|
+
className: H(gf({ variant: t }), e),
|
|
7624
7558
|
...r
|
|
7625
7559
|
});
|
|
7626
7560
|
}
|
|
7627
7561
|
//#endregion
|
|
7628
7562
|
//#region src/components/ui/label.tsx
|
|
7629
|
-
function
|
|
7630
|
-
return /* @__PURE__ */ f(
|
|
7563
|
+
function vf({ className: e, ...t }) {
|
|
7564
|
+
return /* @__PURE__ */ f(yd, {
|
|
7631
7565
|
"data-slot": "label",
|
|
7632
7566
|
className: H("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
7633
7567
|
...t
|
|
@@ -7635,8 +7569,8 @@ function bf({ className: e, ...t }) {
|
|
|
7635
7569
|
}
|
|
7636
7570
|
//#endregion
|
|
7637
7571
|
//#region src/components/ui/separator.tsx
|
|
7638
|
-
function
|
|
7639
|
-
return /* @__PURE__ */ f(
|
|
7572
|
+
function yf({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
7573
|
+
return /* @__PURE__ */ f(Td, {
|
|
7640
7574
|
"data-slot": "separator",
|
|
7641
7575
|
decorative: n,
|
|
7642
7576
|
orientation: t,
|
|
@@ -7646,46 +7580,46 @@ function xf({ className: e, orientation: t = "horizontal", decorative: n = !0, .
|
|
|
7646
7580
|
}
|
|
7647
7581
|
//#endregion
|
|
7648
7582
|
//#region src/components/ui/collapsible.tsx
|
|
7649
|
-
function
|
|
7650
|
-
return /* @__PURE__ */ f(
|
|
7583
|
+
function bf({ ...e }) {
|
|
7584
|
+
return /* @__PURE__ */ f(Hr, {
|
|
7651
7585
|
"data-slot": "collapsible",
|
|
7652
7586
|
...e
|
|
7653
7587
|
});
|
|
7654
7588
|
}
|
|
7655
|
-
function
|
|
7656
|
-
return /* @__PURE__ */ f(
|
|
7589
|
+
function xf({ ...e }) {
|
|
7590
|
+
return /* @__PURE__ */ f(Lr, {
|
|
7657
7591
|
"data-slot": "collapsible-trigger",
|
|
7658
7592
|
...e
|
|
7659
7593
|
});
|
|
7660
7594
|
}
|
|
7661
|
-
function
|
|
7662
|
-
return /* @__PURE__ */ f(
|
|
7595
|
+
function Sf({ ...e }) {
|
|
7596
|
+
return /* @__PURE__ */ f(zr, {
|
|
7663
7597
|
"data-slot": "collapsible-content",
|
|
7664
7598
|
...e
|
|
7665
7599
|
});
|
|
7666
7600
|
}
|
|
7667
7601
|
//#endregion
|
|
7668
7602
|
//#region src/components/toolbar/ToolbarFilter.tsx
|
|
7669
|
-
var
|
|
7603
|
+
var Cf = ({ column: e }) => {
|
|
7670
7604
|
let t = c(() => e.getCanFilter() ? {
|
|
7671
7605
|
id: e.id.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/^./, (e) => e.toUpperCase()),
|
|
7672
7606
|
uniqueValues: Array.from(e.getFacetedUniqueValues().keys())
|
|
7673
7607
|
} : null, [e]), n = e.getFilterValue(), [r, i] = u(!1);
|
|
7674
|
-
return /* @__PURE__ */ f(d, { children: e.getCanFilter() ? /* @__PURE__ */ p(
|
|
7608
|
+
return /* @__PURE__ */ f(d, { children: e.getCanFilter() ? /* @__PURE__ */ p(bf, {
|
|
7675
7609
|
open: r,
|
|
7676
7610
|
onOpenChange: i,
|
|
7677
|
-
children: [/* @__PURE__ */ p(
|
|
7611
|
+
children: [/* @__PURE__ */ p(xf, {
|
|
7678
7612
|
className: "flex whitespace-nowrap items-center gap-2",
|
|
7679
7613
|
children: [/* @__PURE__ */ f("span", {
|
|
7680
7614
|
className: "size-7 inline-flex items-center justify-center rounded-md transition-all hover:bg-card",
|
|
7681
7615
|
children: f(r ? ft : mt, { size: 16 })
|
|
7682
7616
|
}), /* @__PURE__ */ f("span", { children: t?.id })]
|
|
7683
|
-
}), /* @__PURE__ */ f(
|
|
7617
|
+
}), /* @__PURE__ */ f(Sf, { children: /* @__PURE__ */ p("div", {
|
|
7684
7618
|
className: "p-3 pr-0",
|
|
7685
7619
|
children: [/* @__PURE__ */ f("datalist", {
|
|
7686
7620
|
id: e.id + "list",
|
|
7687
7621
|
children: t?.uniqueValues.map((e, t) => /* @__PURE__ */ f("option", { value: e }, t))
|
|
7688
|
-
}), /* @__PURE__ */ f(
|
|
7622
|
+
}), /* @__PURE__ */ f(tf, {
|
|
7689
7623
|
type: "text",
|
|
7690
7624
|
value: n ?? "",
|
|
7691
7625
|
onChange: (t) => e.setFilterValue(t),
|
|
@@ -7694,10 +7628,10 @@ var Tf = ({ column: e }) => {
|
|
|
7694
7628
|
})]
|
|
7695
7629
|
}) })]
|
|
7696
7630
|
}) : null });
|
|
7697
|
-
},
|
|
7631
|
+
}, wf = () => {
|
|
7698
7632
|
let [e, n] = u(null), r = (t) => {
|
|
7699
7633
|
n(e === t ? null : t);
|
|
7700
|
-
}, { table: i, globalFilter: a, setGlobalFilter: o } =
|
|
7634
|
+
}, { table: i, globalFilter: a, setGlobalFilter: o } = er(), [s, l] = u(""), d = c(() => i.getAllLeafColumns().filter((e) => !["rowNumber"].includes(e.id)).filter((e) => e.id.toLowerCase().includes(s.toLowerCase())), [s, i]);
|
|
7701
7635
|
return /* @__PURE__ */ p("div", {
|
|
7702
7636
|
className: "bg-muted overflow-hidden hidden sm:flex",
|
|
7703
7637
|
children: [
|
|
@@ -7714,11 +7648,11 @@ var Tf = ({ column: e }) => {
|
|
|
7714
7648
|
onChange: (e) => {
|
|
7715
7649
|
d.forEach((t) => t.toggleVisibility(e.target.checked));
|
|
7716
7650
|
}
|
|
7717
|
-
}), /* @__PURE__ */ f(
|
|
7651
|
+
}), /* @__PURE__ */ f(_f, {
|
|
7718
7652
|
className: "h-5 min-w-5 rounded-full px-1.5 font-mono tabular-nums",
|
|
7719
7653
|
children: i.getVisibleLeafColumns().length
|
|
7720
7654
|
})]
|
|
7721
|
-
}), /* @__PURE__ */ f(
|
|
7655
|
+
}), /* @__PURE__ */ f(Od, {
|
|
7722
7656
|
placeholder: "Search columns...",
|
|
7723
7657
|
value: s,
|
|
7724
7658
|
onChange: (e) => l(e.target.value)
|
|
@@ -7727,7 +7661,7 @@ var Tf = ({ column: e }) => {
|
|
|
7727
7661
|
className: "max-h-50 overflow-y-auto",
|
|
7728
7662
|
children: /* @__PURE__ */ f("div", {
|
|
7729
7663
|
className: "px-3 py-1 space-y-3",
|
|
7730
|
-
children: d.length > 0 ? d.map((e) => /* @__PURE__ */ f("div", { children: /* @__PURE__ */ p(
|
|
7664
|
+
children: d.length > 0 ? d.map((e) => /* @__PURE__ */ f("div", { children: /* @__PURE__ */ p(vf, {
|
|
7731
7665
|
className: "capitalize",
|
|
7732
7666
|
children: [
|
|
7733
7667
|
/* @__PURE__ */ f(nt, {
|
|
@@ -7756,7 +7690,7 @@ var Tf = ({ column: e }) => {
|
|
|
7756
7690
|
children: [
|
|
7757
7691
|
/* @__PURE__ */ f("div", {
|
|
7758
7692
|
className: "p-3",
|
|
7759
|
-
children: /* @__PURE__ */ f(
|
|
7693
|
+
children: /* @__PURE__ */ f(tf, {
|
|
7760
7694
|
value: a ?? "",
|
|
7761
7695
|
onChange: (e) => {
|
|
7762
7696
|
o && o(String(e));
|
|
@@ -7766,12 +7700,12 @@ var Tf = ({ column: e }) => {
|
|
|
7766
7700
|
}),
|
|
7767
7701
|
/* @__PURE__ */ f("div", {
|
|
7768
7702
|
className: "overflow-y-auto h-[65vh] px-3 space-y-3",
|
|
7769
|
-
children: i.getHeaderGroups().map((e) => /* @__PURE__ */ f(t.Fragment, { children: e.headers.filter((e) => !["rowNumber"].includes(e.column.id)).map((e) => /* @__PURE__ */ f(
|
|
7703
|
+
children: i.getHeaderGroups().map((e) => /* @__PURE__ */ f(t.Fragment, { children: e.headers.filter((e) => !["rowNumber"].includes(e.column.id)).map((e) => /* @__PURE__ */ f(Cf, { column: e.column }, e.id)) }, e.id))
|
|
7770
7704
|
}),
|
|
7771
|
-
/* @__PURE__ */ f(
|
|
7705
|
+
/* @__PURE__ */ f(yf, {}),
|
|
7772
7706
|
/* @__PURE__ */ f("div", {
|
|
7773
7707
|
className: "px-3",
|
|
7774
|
-
children: /* @__PURE__ */ p(
|
|
7708
|
+
children: /* @__PURE__ */ p(Dd, {
|
|
7775
7709
|
onClick: () => i.setColumnFilters([]),
|
|
7776
7710
|
variant: "outline",
|
|
7777
7711
|
children: [/* @__PURE__ */ f(Ct, {}), "Reset Filters"]
|
|
@@ -7790,7 +7724,7 @@ var Tf = ({ column: e }) => {
|
|
|
7790
7724
|
value: "filter",
|
|
7791
7725
|
label: "Filter",
|
|
7792
7726
|
icon: St
|
|
7793
|
-
}].map(({ value: t, label: n, icon: i }) => /* @__PURE__ */ p(
|
|
7727
|
+
}].map(({ value: t, label: n, icon: i }) => /* @__PURE__ */ p(Dd, {
|
|
7794
7728
|
variant: "ghost",
|
|
7795
7729
|
size: "sm",
|
|
7796
7730
|
className: H("[writing-mode:vertical-rl] rounded-none h-auto w-full hover:bg-background! cursor-pointer", e === t && "bg-background"),
|
|
@@ -7800,7 +7734,7 @@ var Tf = ({ column: e }) => {
|
|
|
7800
7734
|
})
|
|
7801
7735
|
]
|
|
7802
7736
|
});
|
|
7803
|
-
},
|
|
7737
|
+
}, Tf = ({ columns: e, payload: t, state: n, onColumnFiltersChange: r, onPaginationChange: i, onSortingChange: a, isLoading: o, isError: s, setGlobalFilter: c, getRowCanExpand: l, renderSubComponent: u, manualPagination: d }) => /* @__PURE__ */ f($n, {
|
|
7804
7738
|
payload: t,
|
|
7805
7739
|
columns: e,
|
|
7806
7740
|
state: n,
|
|
@@ -7812,6 +7746,7 @@ var Tf = ({ column: e }) => {
|
|
|
7812
7746
|
setGlobalFilter: c,
|
|
7813
7747
|
getRowCanExpand: l,
|
|
7814
7748
|
renderSubComponent: u,
|
|
7749
|
+
manualPagination: d,
|
|
7815
7750
|
children: /* @__PURE__ */ f("div", {
|
|
7816
7751
|
className: "relative",
|
|
7817
7752
|
children: /* @__PURE__ */ p("div", {
|
|
@@ -7820,9 +7755,9 @@ var Tf = ({ column: e }) => {
|
|
|
7820
7755
|
className: "flex bg-muted rounded-md overflow-hidden border border-border",
|
|
7821
7756
|
children: [/* @__PURE__ */ f("div", {
|
|
7822
7757
|
className: "overflow-hidden flex-1",
|
|
7823
|
-
children: /* @__PURE__ */ f(
|
|
7824
|
-
}), /* @__PURE__ */ f(
|
|
7825
|
-
}), /* @__PURE__ */ f(
|
|
7758
|
+
children: /* @__PURE__ */ f(hf, {})
|
|
7759
|
+
}), /* @__PURE__ */ f(wf, {})]
|
|
7760
|
+
}), /* @__PURE__ */ f(jd, { pagination: [
|
|
7826
7761
|
20,
|
|
7827
7762
|
30,
|
|
7828
7763
|
40,
|
|
@@ -7844,7 +7779,7 @@ var Tf = ({ column: e }) => {
|
|
|
7844
7779
|
] })]
|
|
7845
7780
|
})
|
|
7846
7781
|
})
|
|
7847
|
-
}),
|
|
7782
|
+
}), Ef = () => {
|
|
7848
7783
|
let [e, n] = t.useState([]), [r, i] = t.useState(""), [a, o] = t.useState({
|
|
7849
7784
|
pageIndex: 0,
|
|
7850
7785
|
pageSize: 20
|
|
@@ -7865,4 +7800,4 @@ var Tf = ({ column: e }) => {
|
|
|
7865
7800
|
};
|
|
7866
7801
|
};
|
|
7867
7802
|
//#endregion
|
|
7868
|
-
export { nt as Checkbox,
|
|
7803
|
+
export { nt as Checkbox, Tf as Grid, Ef as useGridState };
|