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