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