ui-arreya-components 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.cjs.js +47 -47
- package/dist/ui.es.js +797 -775
- package/dist/ui.umd.js +50 -50
- package/package.json +1 -1
- package/src/index.ts +26 -1
package/dist/ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import _n, {
|
|
2
|
+
import _n, { useState as $a, forwardRef as kn, createElement as sr, useLayoutEffect as Wa, useEffect as Ba } from "react";
|
|
3
3
|
import * as Dn from "react-dom";
|
|
4
4
|
import Va from "react-dom";
|
|
5
5
|
var ht = { exports: {} }, it = {};
|
|
@@ -3248,193 +3248,13 @@ const Li = yr(
|
|
|
3248
3248
|
}
|
|
3249
3249
|
);
|
|
3250
3250
|
Un.displayName = "Button";
|
|
3251
|
-
/**
|
|
3252
|
-
* @license lucide-react v0.482.0 - ISC
|
|
3253
|
-
*
|
|
3254
|
-
* This source code is licensed under the ISC license.
|
|
3255
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3256
|
-
*/
|
|
3257
|
-
const Fi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Yn = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
|
|
3258
|
-
/**
|
|
3259
|
-
* @license lucide-react v0.482.0 - ISC
|
|
3260
|
-
*
|
|
3261
|
-
* This source code is licensed under the ISC license.
|
|
3262
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3263
|
-
*/
|
|
3264
|
-
var zi = {
|
|
3265
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3266
|
-
width: 24,
|
|
3267
|
-
height: 24,
|
|
3268
|
-
viewBox: "0 0 24 24",
|
|
3269
|
-
fill: "none",
|
|
3270
|
-
stroke: "currentColor",
|
|
3271
|
-
strokeWidth: 2,
|
|
3272
|
-
strokeLinecap: "round",
|
|
3273
|
-
strokeLinejoin: "round"
|
|
3274
|
-
};
|
|
3275
|
-
/**
|
|
3276
|
-
* @license lucide-react v0.482.0 - ISC
|
|
3277
|
-
*
|
|
3278
|
-
* This source code is licensed under the ISC license.
|
|
3279
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3280
|
-
*/
|
|
3281
|
-
const $i = kn(
|
|
3282
|
-
({
|
|
3283
|
-
color: e = "currentColor",
|
|
3284
|
-
size: t = 24,
|
|
3285
|
-
strokeWidth: r = 2,
|
|
3286
|
-
absoluteStrokeWidth: n,
|
|
3287
|
-
className: o = "",
|
|
3288
|
-
children: a,
|
|
3289
|
-
iconNode: i,
|
|
3290
|
-
...s
|
|
3291
|
-
}, c) => sr(
|
|
3292
|
-
"svg",
|
|
3293
|
-
{
|
|
3294
|
-
ref: c,
|
|
3295
|
-
...zi,
|
|
3296
|
-
width: t,
|
|
3297
|
-
height: t,
|
|
3298
|
-
stroke: e,
|
|
3299
|
-
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
3300
|
-
className: Yn("lucide", o),
|
|
3301
|
-
...s
|
|
3302
|
-
},
|
|
3303
|
-
[
|
|
3304
|
-
...i.map(([d, f]) => sr(d, f)),
|
|
3305
|
-
...Array.isArray(a) ? a : [a]
|
|
3306
|
-
]
|
|
3307
|
-
)
|
|
3308
|
-
);
|
|
3309
|
-
/**
|
|
3310
|
-
* @license lucide-react v0.482.0 - ISC
|
|
3311
|
-
*
|
|
3312
|
-
* This source code is licensed under the ISC license.
|
|
3313
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3314
|
-
*/
|
|
3315
|
-
const Kn = (e, t) => {
|
|
3316
|
-
const r = kn(
|
|
3317
|
-
({ className: n, ...o }, a) => sr($i, {
|
|
3318
|
-
ref: a,
|
|
3319
|
-
iconNode: t,
|
|
3320
|
-
className: Yn(`lucide-${Fi(e)}`, n),
|
|
3321
|
-
...o
|
|
3322
|
-
})
|
|
3323
|
-
);
|
|
3324
|
-
return r.displayName = `${e}`, r;
|
|
3325
|
-
};
|
|
3326
|
-
/**
|
|
3327
|
-
* @license lucide-react v0.482.0 - ISC
|
|
3328
|
-
*
|
|
3329
|
-
* This source code is licensed under the ISC license.
|
|
3330
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3331
|
-
*/
|
|
3332
|
-
const Wi = [
|
|
3333
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3334
|
-
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
3335
|
-
], Bi = Kn("PanelLeft", Wi);
|
|
3336
|
-
/**
|
|
3337
|
-
* @license lucide-react v0.482.0 - ISC
|
|
3338
|
-
*
|
|
3339
|
-
* This source code is licensed under the ISC license.
|
|
3340
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
3341
|
-
*/
|
|
3342
|
-
const Vi = [
|
|
3343
|
-
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3344
|
-
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3345
|
-
], Xn = Kn("X", Vi), Jt = 768;
|
|
3346
|
-
function Hi() {
|
|
3347
|
-
const [e, t] = l.useState(void 0);
|
|
3348
|
-
return l.useEffect(() => {
|
|
3349
|
-
const r = window.matchMedia(`(max-width: ${Jt - 1}px)`), n = () => {
|
|
3350
|
-
t(window.innerWidth < Jt);
|
|
3351
|
-
};
|
|
3352
|
-
return r.addEventListener("change", n), t(window.innerWidth < Jt), () => r.removeEventListener("change", n);
|
|
3353
|
-
}, []), !!e;
|
|
3354
|
-
}
|
|
3355
|
-
const qn = l.forwardRef(
|
|
3356
|
-
({ className: e, type: t, ...r }, n) => /* @__PURE__ */ v.jsx(
|
|
3357
|
-
"input",
|
|
3358
|
-
{
|
|
3359
|
-
type: t,
|
|
3360
|
-
className: M(
|
|
3361
|
-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
3362
|
-
e
|
|
3363
|
-
),
|
|
3364
|
-
ref: n,
|
|
3365
|
-
...r
|
|
3366
|
-
}
|
|
3367
|
-
)
|
|
3368
|
-
);
|
|
3369
|
-
qn.displayName = "Input";
|
|
3370
|
-
var Gi = [
|
|
3371
|
-
"a",
|
|
3372
|
-
"button",
|
|
3373
|
-
"div",
|
|
3374
|
-
"form",
|
|
3375
|
-
"h2",
|
|
3376
|
-
"h3",
|
|
3377
|
-
"img",
|
|
3378
|
-
"input",
|
|
3379
|
-
"label",
|
|
3380
|
-
"li",
|
|
3381
|
-
"nav",
|
|
3382
|
-
"ol",
|
|
3383
|
-
"p",
|
|
3384
|
-
"span",
|
|
3385
|
-
"svg",
|
|
3386
|
-
"ul"
|
|
3387
|
-
], te = Gi.reduce((e, t) => {
|
|
3388
|
-
const r = l.forwardRef((n, o) => {
|
|
3389
|
-
const { asChild: a, ...i } = n, s = a ? we : t;
|
|
3390
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v.jsx(s, { ...i, ref: o });
|
|
3391
|
-
});
|
|
3392
|
-
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
3393
|
-
}, {});
|
|
3394
|
-
function Ui(e, t) {
|
|
3395
|
-
e && Dn.flushSync(() => e.dispatchEvent(t));
|
|
3396
|
-
}
|
|
3397
|
-
var Yi = "Separator", cn = "horizontal", Ki = ["horizontal", "vertical"], Jn = l.forwardRef((e, t) => {
|
|
3398
|
-
const { decorative: r, orientation: n = cn, ...o } = e, a = Xi(n) ? n : cn, s = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
3399
|
-
return /* @__PURE__ */ v.jsx(
|
|
3400
|
-
te.div,
|
|
3401
|
-
{
|
|
3402
|
-
"data-orientation": a,
|
|
3403
|
-
...s,
|
|
3404
|
-
...o,
|
|
3405
|
-
ref: t
|
|
3406
|
-
}
|
|
3407
|
-
);
|
|
3408
|
-
});
|
|
3409
|
-
Jn.displayName = Yi;
|
|
3410
|
-
function Xi(e) {
|
|
3411
|
-
return Ki.includes(e);
|
|
3412
|
-
}
|
|
3413
|
-
var Zn = Jn;
|
|
3414
|
-
const Qn = l.forwardRef(
|
|
3415
|
-
({ className: e, orientation: t = "horizontal", decorative: r = !0, ...n }, o) => /* @__PURE__ */ v.jsx(
|
|
3416
|
-
Zn,
|
|
3417
|
-
{
|
|
3418
|
-
ref: o,
|
|
3419
|
-
decorative: r,
|
|
3420
|
-
orientation: t,
|
|
3421
|
-
className: M(
|
|
3422
|
-
"shrink-0 bg-border",
|
|
3423
|
-
t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
3424
|
-
e
|
|
3425
|
-
),
|
|
3426
|
-
...n
|
|
3427
|
-
}
|
|
3428
|
-
)
|
|
3429
|
-
);
|
|
3430
|
-
Qn.displayName = Zn.displayName;
|
|
3431
3251
|
function ne(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
3432
3252
|
return function(o) {
|
|
3433
3253
|
if (e == null || e(o), r === !1 || !o.defaultPrevented)
|
|
3434
3254
|
return t == null ? void 0 : t(o);
|
|
3435
3255
|
};
|
|
3436
3256
|
}
|
|
3437
|
-
function
|
|
3257
|
+
function Fi(e, t) {
|
|
3438
3258
|
const r = l.createContext(t), n = (a) => {
|
|
3439
3259
|
const { children: i, ...s } = a, c = l.useMemo(() => s, Object.values(s));
|
|
3440
3260
|
return /* @__PURE__ */ v.jsx(r.Provider, { value: c, children: i });
|
|
@@ -3478,9 +3298,9 @@ function Er(e, t = []) {
|
|
|
3478
3298
|
);
|
|
3479
3299
|
};
|
|
3480
3300
|
};
|
|
3481
|
-
return o.scopeName = e, [n,
|
|
3301
|
+
return o.scopeName = e, [n, zi(o, ...t)];
|
|
3482
3302
|
}
|
|
3483
|
-
function
|
|
3303
|
+
function zi(...e) {
|
|
3484
3304
|
const t = e[0];
|
|
3485
3305
|
if (e.length === 1) return t;
|
|
3486
3306
|
const r = () => {
|
|
@@ -3499,12 +3319,12 @@ function Ji(...e) {
|
|
|
3499
3319
|
return r.scopeName = t.scopeName, r;
|
|
3500
3320
|
}
|
|
3501
3321
|
var ze = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
3502
|
-
},
|
|
3503
|
-
}),
|
|
3322
|
+
}, $i = l.useId || (() => {
|
|
3323
|
+
}), Wi = 0;
|
|
3504
3324
|
function Rt(e) {
|
|
3505
|
-
const [t, r] = l.useState(
|
|
3325
|
+
const [t, r] = l.useState($i());
|
|
3506
3326
|
return ze(() => {
|
|
3507
|
-
r((n) => n ?? String(
|
|
3327
|
+
r((n) => n ?? String(Wi++));
|
|
3508
3328
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
3509
3329
|
}
|
|
3510
3330
|
function Pe(e) {
|
|
@@ -3516,13 +3336,13 @@ function Pe(e) {
|
|
|
3516
3336
|
return (n = t.current) == null ? void 0 : n.call(t, ...r);
|
|
3517
3337
|
}, []);
|
|
3518
3338
|
}
|
|
3519
|
-
function
|
|
3339
|
+
function Yn({
|
|
3520
3340
|
prop: e,
|
|
3521
3341
|
defaultProp: t,
|
|
3522
3342
|
onChange: r = () => {
|
|
3523
3343
|
}
|
|
3524
3344
|
}) {
|
|
3525
|
-
const [n, o] =
|
|
3345
|
+
const [n, o] = Bi({ defaultProp: t, onChange: r }), a = e !== void 0, i = a ? e : n, s = Pe(r), c = l.useCallback(
|
|
3526
3346
|
(d) => {
|
|
3527
3347
|
if (a) {
|
|
3528
3348
|
const p = typeof d == "function" ? d(e) : d;
|
|
@@ -3534,7 +3354,7 @@ function eo({
|
|
|
3534
3354
|
);
|
|
3535
3355
|
return [i, c];
|
|
3536
3356
|
}
|
|
3537
|
-
function
|
|
3357
|
+
function Bi({
|
|
3538
3358
|
defaultProp: e,
|
|
3539
3359
|
onChange: t
|
|
3540
3360
|
}) {
|
|
@@ -3543,7 +3363,34 @@ function es({
|
|
|
3543
3363
|
o.current !== n && (a(n), o.current = n);
|
|
3544
3364
|
}, [n, o, a]), r;
|
|
3545
3365
|
}
|
|
3546
|
-
|
|
3366
|
+
var Vi = [
|
|
3367
|
+
"a",
|
|
3368
|
+
"button",
|
|
3369
|
+
"div",
|
|
3370
|
+
"form",
|
|
3371
|
+
"h2",
|
|
3372
|
+
"h3",
|
|
3373
|
+
"img",
|
|
3374
|
+
"input",
|
|
3375
|
+
"label",
|
|
3376
|
+
"li",
|
|
3377
|
+
"nav",
|
|
3378
|
+
"ol",
|
|
3379
|
+
"p",
|
|
3380
|
+
"span",
|
|
3381
|
+
"svg",
|
|
3382
|
+
"ul"
|
|
3383
|
+
], te = Vi.reduce((e, t) => {
|
|
3384
|
+
const r = l.forwardRef((n, o) => {
|
|
3385
|
+
const { asChild: a, ...i } = n, s = a ? we : t;
|
|
3386
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v.jsx(s, { ...i, ref: o });
|
|
3387
|
+
});
|
|
3388
|
+
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
3389
|
+
}, {});
|
|
3390
|
+
function Hi(e, t) {
|
|
3391
|
+
e && Dn.flushSync(() => e.dispatchEvent(t));
|
|
3392
|
+
}
|
|
3393
|
+
function Gi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3547
3394
|
const r = Pe(e);
|
|
3548
3395
|
l.useEffect(() => {
|
|
3549
3396
|
const n = (o) => {
|
|
@@ -3552,7 +3399,7 @@ function ts(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3552
3399
|
return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
|
|
3553
3400
|
}, [r, t]);
|
|
3554
3401
|
}
|
|
3555
|
-
var
|
|
3402
|
+
var Ui = "DismissableLayer", fr = "dismissableLayer.update", Yi = "dismissableLayer.pointerDownOutside", Ki = "dismissableLayer.focusOutside", cn, Kn = l.createContext({
|
|
3556
3403
|
layers: /* @__PURE__ */ new Set(),
|
|
3557
3404
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3558
3405
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -3566,22 +3413,22 @@ var rs = "DismissableLayer", fr = "dismissableLayer.update", ns = "dismissableLa
|
|
|
3566
3413
|
onInteractOutside: i,
|
|
3567
3414
|
onDismiss: s,
|
|
3568
3415
|
...c
|
|
3569
|
-
} = e, d = l.useContext(
|
|
3416
|
+
} = e, d = l.useContext(Kn), [f, p] = l.useState(null), h = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = l.useState({}), b = ue(t, (T) => p(T)), m = Array.from(d.layers), [y] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = m.indexOf(y), w = f ? m.indexOf(f) : -1, R = d.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= x, P = Ji((T) => {
|
|
3570
3417
|
const W = T.target, G = [...d.branches].some((V) => V.contains(W));
|
|
3571
3418
|
!S || G || (o == null || o(T), i == null || i(T), T.defaultPrevented || s == null || s());
|
|
3572
|
-
}, h), C =
|
|
3419
|
+
}, h), C = Zi((T) => {
|
|
3573
3420
|
const W = T.target;
|
|
3574
3421
|
[...d.branches].some((V) => V.contains(W)) || (a == null || a(T), i == null || i(T), T.defaultPrevented || s == null || s());
|
|
3575
3422
|
}, h);
|
|
3576
|
-
return
|
|
3423
|
+
return Gi((T) => {
|
|
3577
3424
|
w === d.layers.size - 1 && (n == null || n(T), !T.defaultPrevented && s && (T.preventDefault(), s()));
|
|
3578
3425
|
}, h), l.useEffect(() => {
|
|
3579
3426
|
if (f)
|
|
3580
|
-
return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
3581
|
-
r && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents =
|
|
3427
|
+
return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (cn = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), un(), () => {
|
|
3428
|
+
r && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = cn);
|
|
3582
3429
|
};
|
|
3583
3430
|
}, [f, h, r, d]), l.useEffect(() => () => {
|
|
3584
|
-
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
3431
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), un());
|
|
3585
3432
|
}, [f, d]), l.useEffect(() => {
|
|
3586
3433
|
const T = () => g({});
|
|
3587
3434
|
return document.addEventListener(fr, T), () => document.removeEventListener(fr, T);
|
|
@@ -3604,9 +3451,9 @@ var rs = "DismissableLayer", fr = "dismissableLayer.update", ns = "dismissableLa
|
|
|
3604
3451
|
);
|
|
3605
3452
|
}
|
|
3606
3453
|
);
|
|
3607
|
-
Cr.displayName =
|
|
3608
|
-
var
|
|
3609
|
-
const r = l.useContext(
|
|
3454
|
+
Cr.displayName = Ui;
|
|
3455
|
+
var Xi = "DismissableLayerBranch", qi = l.forwardRef((e, t) => {
|
|
3456
|
+
const r = l.useContext(Kn), n = l.useRef(null), o = ue(t, n);
|
|
3610
3457
|
return l.useEffect(() => {
|
|
3611
3458
|
const a = n.current;
|
|
3612
3459
|
if (a)
|
|
@@ -3615,16 +3462,16 @@ var as = "DismissableLayerBranch", is = l.forwardRef((e, t) => {
|
|
|
3615
3462
|
};
|
|
3616
3463
|
}, [r.branches]), /* @__PURE__ */ v.jsx(te.div, { ...e, ref: o });
|
|
3617
3464
|
});
|
|
3618
|
-
|
|
3619
|
-
function
|
|
3465
|
+
qi.displayName = Xi;
|
|
3466
|
+
function Ji(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3620
3467
|
const r = Pe(e), n = l.useRef(!1), o = l.useRef(() => {
|
|
3621
3468
|
});
|
|
3622
3469
|
return l.useEffect(() => {
|
|
3623
3470
|
const a = (s) => {
|
|
3624
3471
|
if (s.target && !n.current) {
|
|
3625
3472
|
let c = function() {
|
|
3626
|
-
|
|
3627
|
-
|
|
3473
|
+
Xn(
|
|
3474
|
+
Yi,
|
|
3628
3475
|
r,
|
|
3629
3476
|
d,
|
|
3630
3477
|
{ discrete: !0 }
|
|
@@ -3646,11 +3493,11 @@ function ss(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3646
3493
|
onPointerDownCapture: () => n.current = !0
|
|
3647
3494
|
};
|
|
3648
3495
|
}
|
|
3649
|
-
function
|
|
3496
|
+
function Zi(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3650
3497
|
const r = Pe(e), n = l.useRef(!1);
|
|
3651
3498
|
return l.useEffect(() => {
|
|
3652
3499
|
const o = (a) => {
|
|
3653
|
-
a.target && !n.current &&
|
|
3500
|
+
a.target && !n.current && Xn(Ki, r, { originalEvent: a }, {
|
|
3654
3501
|
discrete: !1
|
|
3655
3502
|
});
|
|
3656
3503
|
};
|
|
@@ -3660,15 +3507,15 @@ function ls(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3660
3507
|
onBlurCapture: () => n.current = !1
|
|
3661
3508
|
};
|
|
3662
3509
|
}
|
|
3663
|
-
function
|
|
3510
|
+
function un() {
|
|
3664
3511
|
const e = new CustomEvent(fr);
|
|
3665
3512
|
document.dispatchEvent(e);
|
|
3666
3513
|
}
|
|
3667
|
-
function
|
|
3514
|
+
function Xn(e, t, r, { discrete: n }) {
|
|
3668
3515
|
const o = r.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
3669
|
-
t && o.addEventListener(e, t, { once: !0 }), n ?
|
|
3516
|
+
t && o.addEventListener(e, t, { once: !0 }), n ? Hi(o, a) : o.dispatchEvent(a);
|
|
3670
3517
|
}
|
|
3671
|
-
var
|
|
3518
|
+
var Jt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", dn = { bubbles: !1, cancelable: !0 }, Qi = "FocusScope", qn = l.forwardRef((e, t) => {
|
|
3672
3519
|
const {
|
|
3673
3520
|
loop: r = !1,
|
|
3674
3521
|
trapped: n = !1,
|
|
@@ -3707,16 +3554,16 @@ var Zt = "focusScope.autoFocusOnMount", Qt = "focusScope.autoFocusOnUnmount", fn
|
|
|
3707
3554
|
}
|
|
3708
3555
|
}, [n, s, g.paused]), l.useEffect(() => {
|
|
3709
3556
|
if (s) {
|
|
3710
|
-
|
|
3557
|
+
pn.add(g);
|
|
3711
3558
|
const m = document.activeElement;
|
|
3712
3559
|
if (!s.contains(m)) {
|
|
3713
|
-
const x = new CustomEvent(
|
|
3714
|
-
s.addEventListener(
|
|
3560
|
+
const x = new CustomEvent(Jt, dn);
|
|
3561
|
+
s.addEventListener(Jt, d), s.dispatchEvent(x), x.defaultPrevented || (es(as(Jn(s)), { select: !0 }), document.activeElement === m && Se(s));
|
|
3715
3562
|
}
|
|
3716
3563
|
return () => {
|
|
3717
|
-
s.removeEventListener(
|
|
3718
|
-
const x = new CustomEvent(
|
|
3719
|
-
s.addEventListener(
|
|
3564
|
+
s.removeEventListener(Jt, d), setTimeout(() => {
|
|
3565
|
+
const x = new CustomEvent(Zt, dn);
|
|
3566
|
+
s.addEventListener(Zt, f), s.dispatchEvent(x), x.defaultPrevented || Se(m ?? document.body, { select: !0 }), s.removeEventListener(Zt, f), pn.remove(g);
|
|
3720
3567
|
}, 0);
|
|
3721
3568
|
};
|
|
3722
3569
|
}
|
|
@@ -3726,7 +3573,7 @@ var Zt = "focusScope.autoFocusOnMount", Qt = "focusScope.autoFocusOnUnmount", fn
|
|
|
3726
3573
|
if (!r && !n || g.paused) return;
|
|
3727
3574
|
const y = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, x = document.activeElement;
|
|
3728
3575
|
if (y && x) {
|
|
3729
|
-
const w = m.currentTarget, [R, S] =
|
|
3576
|
+
const w = m.currentTarget, [R, S] = ts(w);
|
|
3730
3577
|
R && S ? !m.shiftKey && x === S ? (m.preventDefault(), r && Se(R, { select: !0 })) : m.shiftKey && x === R && (m.preventDefault(), r && Se(S, { select: !0 })) : x === w && m.preventDefault();
|
|
3731
3578
|
}
|
|
3732
3579
|
},
|
|
@@ -3734,17 +3581,17 @@ var Zt = "focusScope.autoFocusOnMount", Qt = "focusScope.autoFocusOnUnmount", fn
|
|
|
3734
3581
|
);
|
|
3735
3582
|
return /* @__PURE__ */ v.jsx(te.div, { tabIndex: -1, ...i, ref: h, onKeyDown: b });
|
|
3736
3583
|
});
|
|
3737
|
-
|
|
3738
|
-
function
|
|
3584
|
+
qn.displayName = Qi;
|
|
3585
|
+
function es(e, { select: t = !1 } = {}) {
|
|
3739
3586
|
const r = document.activeElement;
|
|
3740
3587
|
for (const n of e)
|
|
3741
3588
|
if (Se(n, { select: t }), document.activeElement !== r) return;
|
|
3742
3589
|
}
|
|
3743
|
-
function
|
|
3744
|
-
const t =
|
|
3590
|
+
function ts(e) {
|
|
3591
|
+
const t = Jn(e), r = fn(t, e), n = fn(t.reverse(), e);
|
|
3745
3592
|
return [r, n];
|
|
3746
3593
|
}
|
|
3747
|
-
function
|
|
3594
|
+
function Jn(e) {
|
|
3748
3595
|
const t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
3749
3596
|
acceptNode: (n) => {
|
|
3750
3597
|
const o = n.tagName === "INPUT" && n.type === "hidden";
|
|
@@ -3754,11 +3601,11 @@ function oo(e) {
|
|
|
3754
3601
|
for (; r.nextNode(); ) t.push(r.currentNode);
|
|
3755
3602
|
return t;
|
|
3756
3603
|
}
|
|
3757
|
-
function
|
|
3604
|
+
function fn(e, t) {
|
|
3758
3605
|
for (const r of e)
|
|
3759
|
-
if (!
|
|
3606
|
+
if (!rs(r, { upTo: t })) return r;
|
|
3760
3607
|
}
|
|
3761
|
-
function
|
|
3608
|
+
function rs(e, { upTo: t }) {
|
|
3762
3609
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3763
3610
|
for (; e; ) {
|
|
3764
3611
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -3767,54 +3614,54 @@ function fs(e, { upTo: t }) {
|
|
|
3767
3614
|
}
|
|
3768
3615
|
return !1;
|
|
3769
3616
|
}
|
|
3770
|
-
function
|
|
3617
|
+
function ns(e) {
|
|
3771
3618
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3772
3619
|
}
|
|
3773
3620
|
function Se(e, { select: t = !1 } = {}) {
|
|
3774
3621
|
if (e && e.focus) {
|
|
3775
3622
|
const r = document.activeElement;
|
|
3776
|
-
e.focus({ preventScroll: !0 }), e !== r &&
|
|
3623
|
+
e.focus({ preventScroll: !0 }), e !== r && ns(e) && t && e.select();
|
|
3777
3624
|
}
|
|
3778
3625
|
}
|
|
3779
|
-
var
|
|
3780
|
-
function
|
|
3626
|
+
var pn = os();
|
|
3627
|
+
function os() {
|
|
3781
3628
|
let e = [];
|
|
3782
3629
|
return {
|
|
3783
3630
|
add(t) {
|
|
3784
3631
|
const r = e[0];
|
|
3785
|
-
t !== r && (r == null || r.pause()), e =
|
|
3632
|
+
t !== r && (r == null || r.pause()), e = mn(e, t), e.unshift(t);
|
|
3786
3633
|
},
|
|
3787
3634
|
remove(t) {
|
|
3788
3635
|
var r;
|
|
3789
|
-
e =
|
|
3636
|
+
e = mn(e, t), (r = e[0]) == null || r.resume();
|
|
3790
3637
|
}
|
|
3791
3638
|
};
|
|
3792
3639
|
}
|
|
3793
|
-
function
|
|
3640
|
+
function mn(e, t) {
|
|
3794
3641
|
const r = [...e], n = r.indexOf(t);
|
|
3795
3642
|
return n !== -1 && r.splice(n, 1), r;
|
|
3796
3643
|
}
|
|
3797
|
-
function
|
|
3644
|
+
function as(e) {
|
|
3798
3645
|
return e.filter((t) => t.tagName !== "A");
|
|
3799
3646
|
}
|
|
3800
|
-
var
|
|
3647
|
+
var is = "Portal", Rr = l.forwardRef((e, t) => {
|
|
3801
3648
|
var s;
|
|
3802
3649
|
const { container: r, ...n } = e, [o, a] = l.useState(!1);
|
|
3803
3650
|
ze(() => a(!0), []);
|
|
3804
3651
|
const i = r || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
|
|
3805
3652
|
return i ? Va.createPortal(/* @__PURE__ */ v.jsx(te.div, { ...n, ref: t }), i) : null;
|
|
3806
3653
|
});
|
|
3807
|
-
Rr.displayName =
|
|
3808
|
-
function
|
|
3654
|
+
Rr.displayName = is;
|
|
3655
|
+
function ss(e, t) {
|
|
3809
3656
|
return l.useReducer((r, n) => t[r][n] ?? r, e);
|
|
3810
3657
|
}
|
|
3811
3658
|
var rt = (e) => {
|
|
3812
|
-
const { present: t, children: r } = e, n =
|
|
3659
|
+
const { present: t, children: r } = e, n = ls(t), o = typeof r == "function" ? r({ present: n.isPresent }) : l.Children.only(r), a = ue(n.ref, cs(o));
|
|
3813
3660
|
return typeof r == "function" || n.isPresent ? l.cloneElement(o, { ref: a }) : null;
|
|
3814
3661
|
};
|
|
3815
3662
|
rt.displayName = "Presence";
|
|
3816
|
-
function
|
|
3817
|
-
const [t, r] = l.useState(), n = l.useRef({}), o = l.useRef(e), a = l.useRef("none"), i = e ? "mounted" : "unmounted", [s, c] =
|
|
3663
|
+
function ls(e) {
|
|
3664
|
+
const [t, r] = l.useState(), n = l.useRef({}), o = l.useRef(e), a = l.useRef("none"), i = e ? "mounted" : "unmounted", [s, c] = ss(i, {
|
|
3818
3665
|
mounted: {
|
|
3819
3666
|
UNMOUNT: "unmounted",
|
|
3820
3667
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -3865,21 +3712,21 @@ function bs(e) {
|
|
|
3865
3712
|
function bt(e) {
|
|
3866
3713
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
3867
3714
|
}
|
|
3868
|
-
function
|
|
3715
|
+
function cs(e) {
|
|
3869
3716
|
var n, o;
|
|
3870
3717
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
3871
3718
|
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
3872
3719
|
}
|
|
3873
|
-
var
|
|
3874
|
-
function
|
|
3720
|
+
var Qt = 0;
|
|
3721
|
+
function us() {
|
|
3875
3722
|
l.useEffect(() => {
|
|
3876
3723
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3877
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
3878
|
-
|
|
3724
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? gn()), document.body.insertAdjacentElement("beforeend", e[1] ?? gn()), Qt++, () => {
|
|
3725
|
+
Qt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Qt--;
|
|
3879
3726
|
};
|
|
3880
3727
|
}, []);
|
|
3881
3728
|
}
|
|
3882
|
-
function
|
|
3729
|
+
function gn() {
|
|
3883
3730
|
const e = document.createElement("span");
|
|
3884
3731
|
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;
|
|
3885
3732
|
}
|
|
@@ -3892,7 +3739,7 @@ var pe = function() {
|
|
|
3892
3739
|
return t;
|
|
3893
3740
|
}, pe.apply(this, arguments);
|
|
3894
3741
|
};
|
|
3895
|
-
function
|
|
3742
|
+
function Zn(e, t) {
|
|
3896
3743
|
var r = {};
|
|
3897
3744
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3898
3745
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3900,16 +3747,16 @@ function ao(e, t) {
|
|
|
3900
3747
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
3901
3748
|
return r;
|
|
3902
3749
|
}
|
|
3903
|
-
function
|
|
3750
|
+
function ds(e, t, r) {
|
|
3904
3751
|
if (r || arguments.length === 2) for (var n = 0, o = t.length, a; n < o; n++)
|
|
3905
3752
|
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
3906
3753
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
3907
3754
|
}
|
|
3908
|
-
var St = "right-scroll-bar-position", Pt = "width-before-scroll-bar",
|
|
3909
|
-
function
|
|
3755
|
+
var St = "right-scroll-bar-position", Pt = "width-before-scroll-bar", fs = "with-scroll-bars-hidden", ps = "--removed-body-scroll-bar-size";
|
|
3756
|
+
function er(e, t) {
|
|
3910
3757
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3911
3758
|
}
|
|
3912
|
-
function
|
|
3759
|
+
function ms(e, t) {
|
|
3913
3760
|
var r = $a(function() {
|
|
3914
3761
|
return {
|
|
3915
3762
|
// value
|
|
@@ -3930,31 +3777,31 @@ function Rs(e, t) {
|
|
|
3930
3777
|
})[0];
|
|
3931
3778
|
return r.callback = t, r.facade;
|
|
3932
3779
|
}
|
|
3933
|
-
var
|
|
3934
|
-
function
|
|
3935
|
-
var r =
|
|
3780
|
+
var gs = typeof window < "u" ? l.useLayoutEffect : l.useEffect, hn = /* @__PURE__ */ new WeakMap();
|
|
3781
|
+
function hs(e, t) {
|
|
3782
|
+
var r = ms(null, function(n) {
|
|
3936
3783
|
return e.forEach(function(o) {
|
|
3937
|
-
return
|
|
3784
|
+
return er(o, n);
|
|
3938
3785
|
});
|
|
3939
3786
|
});
|
|
3940
|
-
return
|
|
3941
|
-
var n =
|
|
3787
|
+
return gs(function() {
|
|
3788
|
+
var n = hn.get(r);
|
|
3942
3789
|
if (n) {
|
|
3943
3790
|
var o = new Set(n), a = new Set(e), i = r.current;
|
|
3944
3791
|
o.forEach(function(s) {
|
|
3945
|
-
a.has(s) ||
|
|
3792
|
+
a.has(s) || er(s, null);
|
|
3946
3793
|
}), a.forEach(function(s) {
|
|
3947
|
-
o.has(s) ||
|
|
3794
|
+
o.has(s) || er(s, i);
|
|
3948
3795
|
});
|
|
3949
3796
|
}
|
|
3950
|
-
|
|
3797
|
+
hn.set(r, e);
|
|
3951
3798
|
}, [e]), r;
|
|
3952
3799
|
}
|
|
3953
|
-
function
|
|
3800
|
+
function vs(e) {
|
|
3954
3801
|
return e;
|
|
3955
3802
|
}
|
|
3956
|
-
function
|
|
3957
|
-
t === void 0 && (t =
|
|
3803
|
+
function bs(e, t) {
|
|
3804
|
+
t === void 0 && (t = vs);
|
|
3958
3805
|
var r = [], n = !1, o = {
|
|
3959
3806
|
read: function() {
|
|
3960
3807
|
if (n)
|
|
@@ -4008,13 +3855,13 @@ function Ts(e, t) {
|
|
|
4008
3855
|
};
|
|
4009
3856
|
return o;
|
|
4010
3857
|
}
|
|
4011
|
-
function
|
|
3858
|
+
function ys(e) {
|
|
4012
3859
|
e === void 0 && (e = {});
|
|
4013
|
-
var t =
|
|
3860
|
+
var t = bs(null);
|
|
4014
3861
|
return t.options = pe({ async: !0, ssr: !1 }, e), t;
|
|
4015
3862
|
}
|
|
4016
|
-
var
|
|
4017
|
-
var t = e.sideCar, r =
|
|
3863
|
+
var Qn = function(e) {
|
|
3864
|
+
var t = e.sideCar, r = Zn(e, ["sideCar"]);
|
|
4018
3865
|
if (!t)
|
|
4019
3866
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
4020
3867
|
var n = t.read();
|
|
@@ -4022,21 +3869,21 @@ var io = function(e) {
|
|
|
4022
3869
|
throw new Error("Sidecar medium not found");
|
|
4023
3870
|
return l.createElement(n, pe({}, r));
|
|
4024
3871
|
};
|
|
4025
|
-
|
|
4026
|
-
function
|
|
4027
|
-
return e.useMedium(t),
|
|
3872
|
+
Qn.isSideCarExport = !0;
|
|
3873
|
+
function xs(e, t) {
|
|
3874
|
+
return e.useMedium(t), Qn;
|
|
4028
3875
|
}
|
|
4029
|
-
var
|
|
3876
|
+
var eo = ys(), tr = function() {
|
|
4030
3877
|
}, Dt = l.forwardRef(function(e, t) {
|
|
4031
3878
|
var r = l.useRef(null), n = l.useState({
|
|
4032
|
-
onScrollCapture:
|
|
4033
|
-
onWheelCapture:
|
|
4034
|
-
onTouchMoveCapture:
|
|
4035
|
-
}), o = n[0], a = n[1], i = e.forwardProps, s = e.children, c = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, h = e.sideCar, g = e.noIsolation, b = e.inert, m = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, w = e.gapMode, R =
|
|
3879
|
+
onScrollCapture: tr,
|
|
3880
|
+
onWheelCapture: tr,
|
|
3881
|
+
onTouchMoveCapture: tr
|
|
3882
|
+
}), o = n[0], a = n[1], i = e.forwardProps, s = e.children, c = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, h = e.sideCar, g = e.noIsolation, b = e.inert, m = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, w = e.gapMode, R = Zn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, P = hs([r, t]), C = pe(pe({}, R), o);
|
|
4036
3883
|
return l.createElement(
|
|
4037
3884
|
l.Fragment,
|
|
4038
3885
|
null,
|
|
4039
|
-
f && l.createElement(S, { sideCar:
|
|
3886
|
+
f && l.createElement(S, { sideCar: eo, removeScrollBar: d, shards: p, noIsolation: g, inert: b, setCallbacks: a, allowPinchZoom: !!m, lockRef: r, gapMode: w }),
|
|
4040
3887
|
i ? l.cloneElement(l.Children.only(s), pe(pe({}, C), { ref: P })) : l.createElement(x, pe({}, C, { className: c, ref: P }), s)
|
|
4041
3888
|
);
|
|
4042
3889
|
});
|
|
@@ -4049,37 +3896,37 @@ Dt.classNames = {
|
|
|
4049
3896
|
fullWidth: Pt,
|
|
4050
3897
|
zeroRight: St
|
|
4051
3898
|
};
|
|
4052
|
-
var
|
|
3899
|
+
var ws = function() {
|
|
4053
3900
|
if (typeof __webpack_nonce__ < "u")
|
|
4054
3901
|
return __webpack_nonce__;
|
|
4055
3902
|
};
|
|
4056
|
-
function
|
|
3903
|
+
function Es() {
|
|
4057
3904
|
if (!document)
|
|
4058
3905
|
return null;
|
|
4059
3906
|
var e = document.createElement("style");
|
|
4060
3907
|
e.type = "text/css";
|
|
4061
|
-
var t =
|
|
3908
|
+
var t = ws();
|
|
4062
3909
|
return t && e.setAttribute("nonce", t), e;
|
|
4063
3910
|
}
|
|
4064
|
-
function
|
|
3911
|
+
function Cs(e, t) {
|
|
4065
3912
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
4066
3913
|
}
|
|
4067
|
-
function
|
|
3914
|
+
function Rs(e) {
|
|
4068
3915
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
4069
3916
|
t.appendChild(e);
|
|
4070
3917
|
}
|
|
4071
|
-
var
|
|
3918
|
+
var Ss = function() {
|
|
4072
3919
|
var e = 0, t = null;
|
|
4073
3920
|
return {
|
|
4074
3921
|
add: function(r) {
|
|
4075
|
-
e == 0 && (t =
|
|
3922
|
+
e == 0 && (t = Es()) && (Cs(t, r), Rs(t)), e++;
|
|
4076
3923
|
},
|
|
4077
3924
|
remove: function() {
|
|
4078
3925
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
4079
3926
|
}
|
|
4080
3927
|
};
|
|
4081
|
-
},
|
|
4082
|
-
var e =
|
|
3928
|
+
}, Ps = function() {
|
|
3929
|
+
var e = Ss();
|
|
4083
3930
|
return function(t, r) {
|
|
4084
3931
|
l.useEffect(function() {
|
|
4085
3932
|
return e.add(t), function() {
|
|
@@ -4087,36 +3934,36 @@ var js = function() {
|
|
|
4087
3934
|
};
|
|
4088
3935
|
}, [t && r]);
|
|
4089
3936
|
};
|
|
4090
|
-
},
|
|
4091
|
-
var e =
|
|
3937
|
+
}, to = function() {
|
|
3938
|
+
var e = Ps(), t = function(r) {
|
|
4092
3939
|
var n = r.styles, o = r.dynamic;
|
|
4093
3940
|
return e(n, o), null;
|
|
4094
3941
|
};
|
|
4095
3942
|
return t;
|
|
4096
|
-
},
|
|
3943
|
+
}, As = {
|
|
4097
3944
|
left: 0,
|
|
4098
3945
|
top: 0,
|
|
4099
3946
|
right: 0,
|
|
4100
3947
|
gap: 0
|
|
4101
|
-
},
|
|
3948
|
+
}, rr = function(e) {
|
|
4102
3949
|
return parseInt(e || "", 10) || 0;
|
|
4103
|
-
},
|
|
3950
|
+
}, Ts = function(e) {
|
|
4104
3951
|
var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
4105
|
-
return [
|
|
4106
|
-
},
|
|
3952
|
+
return [rr(r), rr(n), rr(o)];
|
|
3953
|
+
}, Os = function(e) {
|
|
4107
3954
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
4108
|
-
return
|
|
4109
|
-
var t =
|
|
3955
|
+
return As;
|
|
3956
|
+
var t = Ts(e), r = document.documentElement.clientWidth, n = window.innerWidth;
|
|
4110
3957
|
return {
|
|
4111
3958
|
left: t[0],
|
|
4112
3959
|
top: t[1],
|
|
4113
3960
|
right: t[2],
|
|
4114
3961
|
gap: Math.max(0, n - r + t[2] - t[0])
|
|
4115
3962
|
};
|
|
4116
|
-
},
|
|
3963
|
+
}, Ns = to(), qe = "data-scroll-locked", _s = function(e, t, r, n) {
|
|
4117
3964
|
var o = e.left, a = e.top, i = e.right, s = e.gap;
|
|
4118
3965
|
return r === void 0 && (r = "margin"), `
|
|
4119
|
-
.`.concat(
|
|
3966
|
+
.`.concat(fs, ` {
|
|
4120
3967
|
overflow: hidden `).concat(n, `;
|
|
4121
3968
|
padding-right: `).concat(s, "px ").concat(n, `;
|
|
4122
3969
|
}
|
|
@@ -4154,26 +4001,26 @@ var js = function() {
|
|
|
4154
4001
|
}
|
|
4155
4002
|
|
|
4156
4003
|
body[`).concat(qe, `] {
|
|
4157
|
-
`).concat(
|
|
4004
|
+
`).concat(ps, ": ").concat(s, `px;
|
|
4158
4005
|
}
|
|
4159
4006
|
`);
|
|
4160
|
-
},
|
|
4007
|
+
}, vn = function() {
|
|
4161
4008
|
var e = parseInt(document.body.getAttribute(qe) || "0", 10);
|
|
4162
4009
|
return isFinite(e) ? e : 0;
|
|
4163
|
-
},
|
|
4010
|
+
}, ks = function() {
|
|
4164
4011
|
l.useEffect(function() {
|
|
4165
|
-
return document.body.setAttribute(qe, (
|
|
4166
|
-
var e =
|
|
4012
|
+
return document.body.setAttribute(qe, (vn() + 1).toString()), function() {
|
|
4013
|
+
var e = vn() - 1;
|
|
4167
4014
|
e <= 0 ? document.body.removeAttribute(qe) : document.body.setAttribute(qe, e.toString());
|
|
4168
4015
|
};
|
|
4169
4016
|
}, []);
|
|
4170
|
-
},
|
|
4017
|
+
}, Ds = function(e) {
|
|
4171
4018
|
var t = e.noRelative, r = e.noImportant, n = e.gapMode, o = n === void 0 ? "margin" : n;
|
|
4172
|
-
|
|
4019
|
+
ks();
|
|
4173
4020
|
var a = l.useMemo(function() {
|
|
4174
|
-
return
|
|
4021
|
+
return Os(o);
|
|
4175
4022
|
}, [o]);
|
|
4176
|
-
return l.createElement(
|
|
4023
|
+
return l.createElement(Ns, { styles: _s(a, !t, o, r ? "" : "!important") });
|
|
4177
4024
|
}, pr = !1;
|
|
4178
4025
|
if (typeof window < "u")
|
|
4179
4026
|
try {
|
|
@@ -4186,59 +4033,59 @@ if (typeof window < "u")
|
|
|
4186
4033
|
} catch {
|
|
4187
4034
|
pr = !1;
|
|
4188
4035
|
}
|
|
4189
|
-
var Ye = pr ? { passive: !1 } : !1,
|
|
4036
|
+
var Ye = pr ? { passive: !1 } : !1, Ms = function(e) {
|
|
4190
4037
|
return e.tagName === "TEXTAREA";
|
|
4191
|
-
},
|
|
4038
|
+
}, ro = function(e, t) {
|
|
4192
4039
|
if (!(e instanceof Element))
|
|
4193
4040
|
return !1;
|
|
4194
4041
|
var r = window.getComputedStyle(e);
|
|
4195
4042
|
return (
|
|
4196
4043
|
// not-not-scrollable
|
|
4197
4044
|
r[t] !== "hidden" && // contains scroll inside self
|
|
4198
|
-
!(r.overflowY === r.overflowX && !
|
|
4045
|
+
!(r.overflowY === r.overflowX && !Ms(e) && r[t] === "visible")
|
|
4199
4046
|
);
|
|
4200
|
-
},
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4203
|
-
return
|
|
4204
|
-
},
|
|
4047
|
+
}, js = function(e) {
|
|
4048
|
+
return ro(e, "overflowY");
|
|
4049
|
+
}, Is = function(e) {
|
|
4050
|
+
return ro(e, "overflowX");
|
|
4051
|
+
}, bn = function(e, t) {
|
|
4205
4052
|
var r = t.ownerDocument, n = t;
|
|
4206
4053
|
do {
|
|
4207
4054
|
typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host);
|
|
4208
|
-
var o =
|
|
4055
|
+
var o = no(e, n);
|
|
4209
4056
|
if (o) {
|
|
4210
|
-
var a =
|
|
4057
|
+
var a = oo(e, n), i = a[1], s = a[2];
|
|
4211
4058
|
if (i > s)
|
|
4212
4059
|
return !0;
|
|
4213
4060
|
}
|
|
4214
4061
|
n = n.parentNode;
|
|
4215
4062
|
} while (n && n !== r.body);
|
|
4216
4063
|
return !1;
|
|
4217
|
-
},
|
|
4064
|
+
}, Ls = function(e) {
|
|
4218
4065
|
var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight;
|
|
4219
4066
|
return [
|
|
4220
4067
|
t,
|
|
4221
4068
|
r,
|
|
4222
4069
|
n
|
|
4223
4070
|
];
|
|
4224
|
-
},
|
|
4071
|
+
}, Fs = function(e) {
|
|
4225
4072
|
var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth;
|
|
4226
4073
|
return [
|
|
4227
4074
|
t,
|
|
4228
4075
|
r,
|
|
4229
4076
|
n
|
|
4230
4077
|
];
|
|
4231
|
-
},
|
|
4232
|
-
return e === "v" ?
|
|
4233
|
-
},
|
|
4234
|
-
return e === "v" ?
|
|
4235
|
-
},
|
|
4078
|
+
}, no = function(e, t) {
|
|
4079
|
+
return e === "v" ? js(t) : Is(t);
|
|
4080
|
+
}, oo = function(e, t) {
|
|
4081
|
+
return e === "v" ? Ls(t) : Fs(t);
|
|
4082
|
+
}, zs = function(e, t) {
|
|
4236
4083
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
4237
|
-
},
|
|
4238
|
-
var a =
|
|
4084
|
+
}, $s = function(e, t, r, n, o) {
|
|
4085
|
+
var a = zs(e, window.getComputedStyle(t).direction), i = a * n, s = r.target, c = t.contains(s), d = !1, f = i > 0, p = 0, h = 0;
|
|
4239
4086
|
do {
|
|
4240
|
-
var g =
|
|
4241
|
-
(b || x) &&
|
|
4087
|
+
var g = oo(e, s), b = g[0], m = g[1], y = g[2], x = m - y - a * b;
|
|
4088
|
+
(b || x) && no(e, s) && (p += x, h += b), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
|
|
4242
4089
|
} while (
|
|
4243
4090
|
// portaled content
|
|
4244
4091
|
!c && s !== document.body || // self content
|
|
@@ -4247,26 +4094,26 @@ var Ye = pr ? { passive: !1 } : !1, Hs = function(e) {
|
|
|
4247
4094
|
return (f && Math.abs(p) < 1 || !f && Math.abs(h) < 1) && (d = !0), d;
|
|
4248
4095
|
}, xt = function(e) {
|
|
4249
4096
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
4250
|
-
},
|
|
4097
|
+
}, yn = function(e) {
|
|
4251
4098
|
return [e.deltaX, e.deltaY];
|
|
4252
|
-
},
|
|
4099
|
+
}, xn = function(e) {
|
|
4253
4100
|
return e && "current" in e ? e.current : e;
|
|
4254
|
-
},
|
|
4101
|
+
}, Ws = function(e, t) {
|
|
4255
4102
|
return e[0] === t[0] && e[1] === t[1];
|
|
4256
|
-
},
|
|
4103
|
+
}, Bs = function(e) {
|
|
4257
4104
|
return `
|
|
4258
4105
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
4259
4106
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
4260
4107
|
`);
|
|
4261
|
-
},
|
|
4262
|
-
function
|
|
4263
|
-
var t = l.useRef([]), r = l.useRef([0, 0]), n = l.useRef(), o = l.useState(
|
|
4108
|
+
}, Vs = 0, Ke = [];
|
|
4109
|
+
function Hs(e) {
|
|
4110
|
+
var t = l.useRef([]), r = l.useRef([0, 0]), n = l.useRef(), o = l.useState(Vs++)[0], a = l.useState(to)[0], i = l.useRef(e);
|
|
4264
4111
|
l.useEffect(function() {
|
|
4265
4112
|
i.current = e;
|
|
4266
4113
|
}, [e]), l.useEffect(function() {
|
|
4267
4114
|
if (e.inert) {
|
|
4268
4115
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
4269
|
-
var m =
|
|
4116
|
+
var m = ds([e.lockRef.current], (e.shards || []).map(xn), !0).filter(Boolean);
|
|
4270
4117
|
return m.forEach(function(y) {
|
|
4271
4118
|
return y.classList.add("allow-interactivity-".concat(o));
|
|
4272
4119
|
}), function() {
|
|
@@ -4282,34 +4129,34 @@ function el(e) {
|
|
|
4282
4129
|
var x = xt(m), w = r.current, R = "deltaX" in m ? m.deltaX : w[0] - x[0], S = "deltaY" in m ? m.deltaY : w[1] - x[1], P, C = m.target, T = Math.abs(R) > Math.abs(S) ? "h" : "v";
|
|
4283
4130
|
if ("touches" in m && T === "h" && C.type === "range")
|
|
4284
4131
|
return !1;
|
|
4285
|
-
var W =
|
|
4132
|
+
var W = bn(T, C);
|
|
4286
4133
|
if (!W)
|
|
4287
4134
|
return !0;
|
|
4288
|
-
if (W ? P = T : (P = T === "v" ? "h" : "v", W =
|
|
4135
|
+
if (W ? P = T : (P = T === "v" ? "h" : "v", W = bn(T, C)), !W)
|
|
4289
4136
|
return !1;
|
|
4290
4137
|
if (!n.current && "changedTouches" in m && (R || S) && (n.current = P), !P)
|
|
4291
4138
|
return !0;
|
|
4292
4139
|
var G = n.current || P;
|
|
4293
|
-
return
|
|
4140
|
+
return $s(G, y, m, G === "h" ? R : S);
|
|
4294
4141
|
}, []), c = l.useCallback(function(m) {
|
|
4295
4142
|
var y = m;
|
|
4296
4143
|
if (!(!Ke.length || Ke[Ke.length - 1] !== a)) {
|
|
4297
|
-
var x = "deltaY" in y ?
|
|
4298
|
-
return P.name === y.type && (P.target === y.target || y.target === P.shadowParent) &&
|
|
4144
|
+
var x = "deltaY" in y ? yn(y) : xt(y), w = t.current.filter(function(P) {
|
|
4145
|
+
return P.name === y.type && (P.target === y.target || y.target === P.shadowParent) && Ws(P.delta, x);
|
|
4299
4146
|
})[0];
|
|
4300
4147
|
if (w && w.should) {
|
|
4301
4148
|
y.cancelable && y.preventDefault();
|
|
4302
4149
|
return;
|
|
4303
4150
|
}
|
|
4304
4151
|
if (!w) {
|
|
4305
|
-
var R = (i.current.shards || []).map(
|
|
4152
|
+
var R = (i.current.shards || []).map(xn).filter(Boolean).filter(function(P) {
|
|
4306
4153
|
return P.contains(y.target);
|
|
4307
4154
|
}), S = R.length > 0 ? s(y, R[0]) : !i.current.noIsolation;
|
|
4308
4155
|
S && y.cancelable && y.preventDefault();
|
|
4309
4156
|
}
|
|
4310
4157
|
}
|
|
4311
4158
|
}, []), d = l.useCallback(function(m, y, x, w) {
|
|
4312
|
-
var R = { name: m, delta: y, target: x, should: w, shadowParent:
|
|
4159
|
+
var R = { name: m, delta: y, target: x, should: w, shadowParent: Gs(x) };
|
|
4313
4160
|
t.current.push(R), setTimeout(function() {
|
|
4314
4161
|
t.current = t.current.filter(function(S) {
|
|
4315
4162
|
return S !== R;
|
|
@@ -4318,7 +4165,7 @@ function el(e) {
|
|
|
4318
4165
|
}, []), f = l.useCallback(function(m) {
|
|
4319
4166
|
r.current = xt(m), n.current = void 0;
|
|
4320
4167
|
}, []), p = l.useCallback(function(m) {
|
|
4321
|
-
d(m.type,
|
|
4168
|
+
d(m.type, yn(m), m.target, s(m, e.lockRef.current));
|
|
4322
4169
|
}, []), h = l.useCallback(function(m) {
|
|
4323
4170
|
d(m.type, xt(m), m.target, s(m, e.lockRef.current));
|
|
4324
4171
|
}, []);
|
|
@@ -4337,38 +4184,38 @@ function el(e) {
|
|
|
4337
4184
|
return l.createElement(
|
|
4338
4185
|
l.Fragment,
|
|
4339
4186
|
null,
|
|
4340
|
-
b ? l.createElement(a, { styles:
|
|
4341
|
-
g ? l.createElement(
|
|
4187
|
+
b ? l.createElement(a, { styles: Bs(o) }) : null,
|
|
4188
|
+
g ? l.createElement(Ds, { gapMode: e.gapMode }) : null
|
|
4342
4189
|
);
|
|
4343
4190
|
}
|
|
4344
|
-
function
|
|
4191
|
+
function Gs(e) {
|
|
4345
4192
|
for (var t = null; e !== null; )
|
|
4346
4193
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4347
4194
|
return t;
|
|
4348
4195
|
}
|
|
4349
|
-
const
|
|
4350
|
-
var
|
|
4351
|
-
return l.createElement(Dt, pe({}, e, { ref: t, sideCar:
|
|
4196
|
+
const Us = xs(eo, Hs);
|
|
4197
|
+
var ao = l.forwardRef(function(e, t) {
|
|
4198
|
+
return l.createElement(Dt, pe({}, e, { ref: t, sideCar: Us }));
|
|
4352
4199
|
});
|
|
4353
|
-
|
|
4354
|
-
var
|
|
4200
|
+
ao.classNames = Dt.classNames;
|
|
4201
|
+
var Ys = function(e) {
|
|
4355
4202
|
if (typeof document > "u")
|
|
4356
4203
|
return null;
|
|
4357
4204
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4358
4205
|
return t.ownerDocument.body;
|
|
4359
|
-
}, Xe = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Et = {},
|
|
4360
|
-
return e && (e.host ||
|
|
4361
|
-
},
|
|
4206
|
+
}, Xe = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Et = {}, nr = 0, io = function(e) {
|
|
4207
|
+
return e && (e.host || io(e.parentNode));
|
|
4208
|
+
}, Ks = function(e, t) {
|
|
4362
4209
|
return t.map(function(r) {
|
|
4363
4210
|
if (e.contains(r))
|
|
4364
4211
|
return r;
|
|
4365
|
-
var n =
|
|
4212
|
+
var n = io(r);
|
|
4366
4213
|
return n && e.contains(n) ? n : (console.error("aria-hidden", r, "in not contained inside", e, ". Doing nothing"), null);
|
|
4367
4214
|
}).filter(function(r) {
|
|
4368
4215
|
return !!r;
|
|
4369
4216
|
});
|
|
4370
|
-
},
|
|
4371
|
-
var o =
|
|
4217
|
+
}, Xs = function(e, t, r, n) {
|
|
4218
|
+
var o = Ks(t, Array.isArray(e) ? e : [e]);
|
|
4372
4219
|
Et[r] || (Et[r] = /* @__PURE__ */ new WeakMap());
|
|
4373
4220
|
var a = Et[r], i = [], s = /* @__PURE__ */ new Set(), c = new Set(o), d = function(p) {
|
|
4374
4221
|
!p || s.has(p) || (s.add(p), d(p.parentNode));
|
|
@@ -4387,19 +4234,19 @@ var nl = function(e) {
|
|
|
4387
4234
|
}
|
|
4388
4235
|
});
|
|
4389
4236
|
};
|
|
4390
|
-
return f(t), s.clear(),
|
|
4237
|
+
return f(t), s.clear(), nr++, function() {
|
|
4391
4238
|
i.forEach(function(p) {
|
|
4392
4239
|
var h = Xe.get(p) - 1, g = a.get(p) - 1;
|
|
4393
4240
|
Xe.set(p, h), a.set(p, g), h || (wt.has(p) || p.removeAttribute(n), wt.delete(p)), g || p.removeAttribute(r);
|
|
4394
|
-
}),
|
|
4241
|
+
}), nr--, nr || (Xe = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Et = {});
|
|
4395
4242
|
};
|
|
4396
|
-
},
|
|
4243
|
+
}, qs = function(e, t, r) {
|
|
4397
4244
|
r === void 0 && (r = "data-aria-hidden");
|
|
4398
|
-
var n = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
4399
|
-
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))),
|
|
4245
|
+
var n = Array.from(Array.isArray(e) ? e : [e]), o = Ys(e);
|
|
4246
|
+
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), Xs(n, o, r, "aria-hidden")) : function() {
|
|
4400
4247
|
return null;
|
|
4401
4248
|
};
|
|
4402
|
-
}, Sr = "Dialog", [
|
|
4249
|
+
}, Sr = "Dialog", [so, Lu] = Er(Sr), [Js, de] = so(Sr), lo = (e) => {
|
|
4403
4250
|
const {
|
|
4404
4251
|
__scopeDialog: t,
|
|
4405
4252
|
children: r,
|
|
@@ -4407,13 +4254,13 @@ var nl = function(e) {
|
|
|
4407
4254
|
defaultOpen: o,
|
|
4408
4255
|
onOpenChange: a,
|
|
4409
4256
|
modal: i = !0
|
|
4410
|
-
} = e, s = l.useRef(null), c = l.useRef(null), [d = !1, f] =
|
|
4257
|
+
} = e, s = l.useRef(null), c = l.useRef(null), [d = !1, f] = Yn({
|
|
4411
4258
|
prop: n,
|
|
4412
4259
|
defaultProp: o,
|
|
4413
4260
|
onChange: a
|
|
4414
4261
|
});
|
|
4415
4262
|
return /* @__PURE__ */ v.jsx(
|
|
4416
|
-
|
|
4263
|
+
Js,
|
|
4417
4264
|
{
|
|
4418
4265
|
scope: t,
|
|
4419
4266
|
triggerRef: s,
|
|
@@ -4429,10 +4276,10 @@ var nl = function(e) {
|
|
|
4429
4276
|
}
|
|
4430
4277
|
);
|
|
4431
4278
|
};
|
|
4432
|
-
|
|
4433
|
-
var
|
|
4279
|
+
lo.displayName = Sr;
|
|
4280
|
+
var co = "DialogTrigger", uo = l.forwardRef(
|
|
4434
4281
|
(e, t) => {
|
|
4435
|
-
const { __scopeDialog: r, ...n } = e, o = de(
|
|
4282
|
+
const { __scopeDialog: r, ...n } = e, o = de(co, r), a = ue(t, o.triggerRef);
|
|
4436
4283
|
return /* @__PURE__ */ v.jsx(
|
|
4437
4284
|
te.button,
|
|
4438
4285
|
{
|
|
@@ -4448,28 +4295,28 @@ var vo = "DialogTrigger", bo = l.forwardRef(
|
|
|
4448
4295
|
);
|
|
4449
4296
|
}
|
|
4450
4297
|
);
|
|
4451
|
-
|
|
4452
|
-
var Pr = "DialogPortal", [
|
|
4298
|
+
uo.displayName = co;
|
|
4299
|
+
var Pr = "DialogPortal", [Zs, fo] = so(Pr, {
|
|
4453
4300
|
forceMount: void 0
|
|
4454
|
-
}),
|
|
4301
|
+
}), po = (e) => {
|
|
4455
4302
|
const { __scopeDialog: t, forceMount: r, children: n, container: o } = e, a = de(Pr, t);
|
|
4456
|
-
return /* @__PURE__ */ v.jsx(
|
|
4303
|
+
return /* @__PURE__ */ v.jsx(Zs, { scope: t, forceMount: r, children: l.Children.map(n, (i) => /* @__PURE__ */ v.jsx(rt, { present: r || a.open, children: /* @__PURE__ */ v.jsx(Rr, { asChild: !0, container: o, children: i }) })) });
|
|
4457
4304
|
};
|
|
4458
|
-
|
|
4459
|
-
var Tt = "DialogOverlay",
|
|
4305
|
+
po.displayName = Pr;
|
|
4306
|
+
var Tt = "DialogOverlay", mo = l.forwardRef(
|
|
4460
4307
|
(e, t) => {
|
|
4461
|
-
const r =
|
|
4462
|
-
return a.modal ? /* @__PURE__ */ v.jsx(rt, { present: n || a.open, children: /* @__PURE__ */ v.jsx(
|
|
4308
|
+
const r = fo(Tt, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = de(Tt, e.__scopeDialog);
|
|
4309
|
+
return a.modal ? /* @__PURE__ */ v.jsx(rt, { present: n || a.open, children: /* @__PURE__ */ v.jsx(Qs, { ...o, ref: t }) }) : null;
|
|
4463
4310
|
}
|
|
4464
4311
|
);
|
|
4465
|
-
|
|
4466
|
-
var
|
|
4312
|
+
mo.displayName = Tt;
|
|
4313
|
+
var Qs = l.forwardRef(
|
|
4467
4314
|
(e, t) => {
|
|
4468
4315
|
const { __scopeDialog: r, ...n } = e, o = de(Tt, r);
|
|
4469
4316
|
return (
|
|
4470
4317
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4471
4318
|
// ie. when `Overlay` and `Content` are siblings
|
|
4472
|
-
/* @__PURE__ */ v.jsx(
|
|
4319
|
+
/* @__PURE__ */ v.jsx(ao, { as: we, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ v.jsx(
|
|
4473
4320
|
te.div,
|
|
4474
4321
|
{
|
|
4475
4322
|
"data-state": Tr(o.open),
|
|
@@ -4480,21 +4327,21 @@ var cl = l.forwardRef(
|
|
|
4480
4327
|
) })
|
|
4481
4328
|
);
|
|
4482
4329
|
}
|
|
4483
|
-
), $e = "DialogContent",
|
|
4330
|
+
), $e = "DialogContent", go = l.forwardRef(
|
|
4484
4331
|
(e, t) => {
|
|
4485
|
-
const r =
|
|
4486
|
-
return /* @__PURE__ */ v.jsx(rt, { present: n || a.open, children: a.modal ? /* @__PURE__ */ v.jsx(
|
|
4332
|
+
const r = fo($e, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = de($e, e.__scopeDialog);
|
|
4333
|
+
return /* @__PURE__ */ v.jsx(rt, { present: n || a.open, children: a.modal ? /* @__PURE__ */ v.jsx(el, { ...o, ref: t }) : /* @__PURE__ */ v.jsx(tl, { ...o, ref: t }) });
|
|
4487
4334
|
}
|
|
4488
4335
|
);
|
|
4489
|
-
|
|
4490
|
-
var
|
|
4336
|
+
go.displayName = $e;
|
|
4337
|
+
var el = l.forwardRef(
|
|
4491
4338
|
(e, t) => {
|
|
4492
4339
|
const r = de($e, e.__scopeDialog), n = l.useRef(null), o = ue(t, r.contentRef, n);
|
|
4493
4340
|
return l.useEffect(() => {
|
|
4494
4341
|
const a = n.current;
|
|
4495
|
-
if (a) return
|
|
4342
|
+
if (a) return qs(a);
|
|
4496
4343
|
}, []), /* @__PURE__ */ v.jsx(
|
|
4497
|
-
|
|
4344
|
+
ho,
|
|
4498
4345
|
{
|
|
4499
4346
|
...e,
|
|
4500
4347
|
ref: o,
|
|
@@ -4515,11 +4362,11 @@ var ul = l.forwardRef(
|
|
|
4515
4362
|
}
|
|
4516
4363
|
);
|
|
4517
4364
|
}
|
|
4518
|
-
),
|
|
4365
|
+
), tl = l.forwardRef(
|
|
4519
4366
|
(e, t) => {
|
|
4520
4367
|
const r = de($e, e.__scopeDialog), n = l.useRef(!1), o = l.useRef(!1);
|
|
4521
4368
|
return /* @__PURE__ */ v.jsx(
|
|
4522
|
-
|
|
4369
|
+
ho,
|
|
4523
4370
|
{
|
|
4524
4371
|
...e,
|
|
4525
4372
|
ref: t,
|
|
@@ -4538,12 +4385,12 @@ var ul = l.forwardRef(
|
|
|
4538
4385
|
}
|
|
4539
4386
|
);
|
|
4540
4387
|
}
|
|
4541
|
-
),
|
|
4388
|
+
), ho = l.forwardRef(
|
|
4542
4389
|
(e, t) => {
|
|
4543
4390
|
const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, s = de($e, r), c = l.useRef(null), d = ue(t, c);
|
|
4544
|
-
return
|
|
4391
|
+
return us(), /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4545
4392
|
/* @__PURE__ */ v.jsx(
|
|
4546
|
-
|
|
4393
|
+
qn,
|
|
4547
4394
|
{
|
|
4548
4395
|
asChild: !0,
|
|
4549
4396
|
loop: !0,
|
|
@@ -4566,28 +4413,28 @@ var ul = l.forwardRef(
|
|
|
4566
4413
|
}
|
|
4567
4414
|
),
|
|
4568
4415
|
/* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4569
|
-
/* @__PURE__ */ v.jsx(
|
|
4570
|
-
/* @__PURE__ */ v.jsx(
|
|
4416
|
+
/* @__PURE__ */ v.jsx(rl, { titleId: s.titleId }),
|
|
4417
|
+
/* @__PURE__ */ v.jsx(ol, { contentRef: c, descriptionId: s.descriptionId })
|
|
4571
4418
|
] })
|
|
4572
4419
|
] });
|
|
4573
4420
|
}
|
|
4574
|
-
), Ar = "DialogTitle",
|
|
4421
|
+
), Ar = "DialogTitle", vo = l.forwardRef(
|
|
4575
4422
|
(e, t) => {
|
|
4576
4423
|
const { __scopeDialog: r, ...n } = e, o = de(Ar, r);
|
|
4577
4424
|
return /* @__PURE__ */ v.jsx(te.h2, { id: o.titleId, ...n, ref: t });
|
|
4578
4425
|
}
|
|
4579
4426
|
);
|
|
4580
|
-
|
|
4581
|
-
var
|
|
4427
|
+
vo.displayName = Ar;
|
|
4428
|
+
var bo = "DialogDescription", yo = l.forwardRef(
|
|
4582
4429
|
(e, t) => {
|
|
4583
|
-
const { __scopeDialog: r, ...n } = e, o = de(
|
|
4430
|
+
const { __scopeDialog: r, ...n } = e, o = de(bo, r);
|
|
4584
4431
|
return /* @__PURE__ */ v.jsx(te.p, { id: o.descriptionId, ...n, ref: t });
|
|
4585
4432
|
}
|
|
4586
4433
|
);
|
|
4587
|
-
|
|
4588
|
-
var
|
|
4434
|
+
yo.displayName = bo;
|
|
4435
|
+
var xo = "DialogClose", wo = l.forwardRef(
|
|
4589
4436
|
(e, t) => {
|
|
4590
|
-
const { __scopeDialog: r, ...n } = e, o = de(
|
|
4437
|
+
const { __scopeDialog: r, ...n } = e, o = de(xo, r);
|
|
4591
4438
|
return /* @__PURE__ */ v.jsx(
|
|
4592
4439
|
te.button,
|
|
4593
4440
|
{
|
|
@@ -4599,16 +4446,16 @@ var Ao = "DialogClose", To = l.forwardRef(
|
|
|
4599
4446
|
);
|
|
4600
4447
|
}
|
|
4601
4448
|
);
|
|
4602
|
-
|
|
4449
|
+
wo.displayName = xo;
|
|
4603
4450
|
function Tr(e) {
|
|
4604
4451
|
return e ? "open" : "closed";
|
|
4605
4452
|
}
|
|
4606
|
-
var
|
|
4453
|
+
var Eo = "DialogTitleWarning", [Fu, Co] = Fi(Eo, {
|
|
4607
4454
|
contentName: $e,
|
|
4608
4455
|
titleName: Ar,
|
|
4609
4456
|
docsSlug: "dialog"
|
|
4610
|
-
}),
|
|
4611
|
-
const t =
|
|
4457
|
+
}), rl = ({ titleId: e }) => {
|
|
4458
|
+
const t = Co(Eo), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
4612
4459
|
|
|
4613
4460
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4614
4461
|
|
|
@@ -4616,15 +4463,251 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4616
4463
|
return l.useEffect(() => {
|
|
4617
4464
|
e && (document.getElementById(e) || console.error(r));
|
|
4618
4465
|
}, [r, e]), null;
|
|
4619
|
-
},
|
|
4620
|
-
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
4466
|
+
}, nl = "DialogDescriptionWarning", ol = ({ contentRef: e, descriptionId: t }) => {
|
|
4467
|
+
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Co(nl).contentName}}.`;
|
|
4621
4468
|
return l.useEffect(() => {
|
|
4622
4469
|
var a;
|
|
4623
4470
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
4624
4471
|
t && o && (document.getElementById(t) || console.warn(n));
|
|
4625
4472
|
}, [n, e, t]), null;
|
|
4626
|
-
},
|
|
4627
|
-
|
|
4473
|
+
}, Ro = lo, al = uo, So = po, Mt = mo, jt = go, It = vo, Lt = yo, Or = wo;
|
|
4474
|
+
/**
|
|
4475
|
+
* @license lucide-react v0.482.0 - ISC
|
|
4476
|
+
*
|
|
4477
|
+
* This source code is licensed under the ISC license.
|
|
4478
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
4479
|
+
*/
|
|
4480
|
+
const il = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Po = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim();
|
|
4481
|
+
/**
|
|
4482
|
+
* @license lucide-react v0.482.0 - ISC
|
|
4483
|
+
*
|
|
4484
|
+
* This source code is licensed under the ISC license.
|
|
4485
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
4486
|
+
*/
|
|
4487
|
+
var sl = {
|
|
4488
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4489
|
+
width: 24,
|
|
4490
|
+
height: 24,
|
|
4491
|
+
viewBox: "0 0 24 24",
|
|
4492
|
+
fill: "none",
|
|
4493
|
+
stroke: "currentColor",
|
|
4494
|
+
strokeWidth: 2,
|
|
4495
|
+
strokeLinecap: "round",
|
|
4496
|
+
strokeLinejoin: "round"
|
|
4497
|
+
};
|
|
4498
|
+
/**
|
|
4499
|
+
* @license lucide-react v0.482.0 - ISC
|
|
4500
|
+
*
|
|
4501
|
+
* This source code is licensed under the ISC license.
|
|
4502
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
4503
|
+
*/
|
|
4504
|
+
const ll = kn(
|
|
4505
|
+
({
|
|
4506
|
+
color: e = "currentColor",
|
|
4507
|
+
size: t = 24,
|
|
4508
|
+
strokeWidth: r = 2,
|
|
4509
|
+
absoluteStrokeWidth: n,
|
|
4510
|
+
className: o = "",
|
|
4511
|
+
children: a,
|
|
4512
|
+
iconNode: i,
|
|
4513
|
+
...s
|
|
4514
|
+
}, c) => sr(
|
|
4515
|
+
"svg",
|
|
4516
|
+
{
|
|
4517
|
+
ref: c,
|
|
4518
|
+
...sl,
|
|
4519
|
+
width: t,
|
|
4520
|
+
height: t,
|
|
4521
|
+
stroke: e,
|
|
4522
|
+
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
4523
|
+
className: Po("lucide", o),
|
|
4524
|
+
...s
|
|
4525
|
+
},
|
|
4526
|
+
[
|
|
4527
|
+
...i.map(([d, f]) => sr(d, f)),
|
|
4528
|
+
...Array.isArray(a) ? a : [a]
|
|
4529
|
+
]
|
|
4530
|
+
)
|
|
4531
|
+
);
|
|
4532
|
+
/**
|
|
4533
|
+
* @license lucide-react v0.482.0 - ISC
|
|
4534
|
+
*
|
|
4535
|
+
* This source code is licensed under the ISC license.
|
|
4536
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
4537
|
+
*/
|
|
4538
|
+
const Ao = (e, t) => {
|
|
4539
|
+
const r = kn(
|
|
4540
|
+
({ className: n, ...o }, a) => sr(ll, {
|
|
4541
|
+
ref: a,
|
|
4542
|
+
iconNode: t,
|
|
4543
|
+
className: Po(`lucide-${il(e)}`, n),
|
|
4544
|
+
...o
|
|
4545
|
+
})
|
|
4546
|
+
);
|
|
4547
|
+
return r.displayName = `${e}`, r;
|
|
4548
|
+
};
|
|
4549
|
+
/**
|
|
4550
|
+
* @license lucide-react v0.482.0 - ISC
|
|
4551
|
+
*
|
|
4552
|
+
* This source code is licensed under the ISC license.
|
|
4553
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
4554
|
+
*/
|
|
4555
|
+
const cl = [
|
|
4556
|
+
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
4557
|
+
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
4558
|
+
], ul = Ao("PanelLeft", cl);
|
|
4559
|
+
/**
|
|
4560
|
+
* @license lucide-react v0.482.0 - ISC
|
|
4561
|
+
*
|
|
4562
|
+
* This source code is licensed under the ISC license.
|
|
4563
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
4564
|
+
*/
|
|
4565
|
+
const dl = [
|
|
4566
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
4567
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
4568
|
+
], To = Ao("X", dl), zu = Ro, $u = al, fl = So, Wu = Or, Oo = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
4569
|
+
Mt,
|
|
4570
|
+
{
|
|
4571
|
+
ref: r,
|
|
4572
|
+
className: M(
|
|
4573
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
4574
|
+
e
|
|
4575
|
+
),
|
|
4576
|
+
...t
|
|
4577
|
+
}
|
|
4578
|
+
));
|
|
4579
|
+
Oo.displayName = Mt.displayName;
|
|
4580
|
+
const pl = l.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ v.jsxs(fl, { children: [
|
|
4581
|
+
/* @__PURE__ */ v.jsx(Oo, {}),
|
|
4582
|
+
/* @__PURE__ */ v.jsxs(
|
|
4583
|
+
jt,
|
|
4584
|
+
{
|
|
4585
|
+
ref: n,
|
|
4586
|
+
className: M(
|
|
4587
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
4588
|
+
e
|
|
4589
|
+
),
|
|
4590
|
+
...r,
|
|
4591
|
+
children: [
|
|
4592
|
+
t,
|
|
4593
|
+
/* @__PURE__ */ v.jsxs(Or, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
4594
|
+
/* @__PURE__ */ v.jsx(To, { className: "h-4 w-4" }),
|
|
4595
|
+
/* @__PURE__ */ v.jsx("span", { className: "sr-only", children: "Close" })
|
|
4596
|
+
] })
|
|
4597
|
+
]
|
|
4598
|
+
}
|
|
4599
|
+
)
|
|
4600
|
+
] }));
|
|
4601
|
+
pl.displayName = jt.displayName;
|
|
4602
|
+
const ml = ({
|
|
4603
|
+
className: e,
|
|
4604
|
+
...t
|
|
4605
|
+
}) => /* @__PURE__ */ v.jsx(
|
|
4606
|
+
"div",
|
|
4607
|
+
{
|
|
4608
|
+
className: M(
|
|
4609
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
4610
|
+
e
|
|
4611
|
+
),
|
|
4612
|
+
...t
|
|
4613
|
+
}
|
|
4614
|
+
);
|
|
4615
|
+
ml.displayName = "DialogHeader";
|
|
4616
|
+
const gl = ({
|
|
4617
|
+
className: e,
|
|
4618
|
+
...t
|
|
4619
|
+
}) => /* @__PURE__ */ v.jsx(
|
|
4620
|
+
"div",
|
|
4621
|
+
{
|
|
4622
|
+
className: M(
|
|
4623
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
4624
|
+
e
|
|
4625
|
+
),
|
|
4626
|
+
...t
|
|
4627
|
+
}
|
|
4628
|
+
);
|
|
4629
|
+
gl.displayName = "DialogFooter";
|
|
4630
|
+
const hl = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
4631
|
+
It,
|
|
4632
|
+
{
|
|
4633
|
+
ref: r,
|
|
4634
|
+
className: M(
|
|
4635
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
4636
|
+
e
|
|
4637
|
+
),
|
|
4638
|
+
...t
|
|
4639
|
+
}
|
|
4640
|
+
));
|
|
4641
|
+
hl.displayName = It.displayName;
|
|
4642
|
+
const vl = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
4643
|
+
Lt,
|
|
4644
|
+
{
|
|
4645
|
+
ref: r,
|
|
4646
|
+
className: M("text-sm text-muted-foreground", e),
|
|
4647
|
+
...t
|
|
4648
|
+
}
|
|
4649
|
+
));
|
|
4650
|
+
vl.displayName = Lt.displayName;
|
|
4651
|
+
const or = 768;
|
|
4652
|
+
function bl() {
|
|
4653
|
+
const [e, t] = l.useState(void 0);
|
|
4654
|
+
return l.useEffect(() => {
|
|
4655
|
+
const r = window.matchMedia(`(max-width: ${or - 1}px)`), n = () => {
|
|
4656
|
+
t(window.innerWidth < or);
|
|
4657
|
+
};
|
|
4658
|
+
return r.addEventListener("change", n), t(window.innerWidth < or), () => r.removeEventListener("change", n);
|
|
4659
|
+
}, []), !!e;
|
|
4660
|
+
}
|
|
4661
|
+
const No = l.forwardRef(
|
|
4662
|
+
({ className: e, type: t, ...r }, n) => /* @__PURE__ */ v.jsx(
|
|
4663
|
+
"input",
|
|
4664
|
+
{
|
|
4665
|
+
type: t,
|
|
4666
|
+
className: M(
|
|
4667
|
+
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
4668
|
+
e
|
|
4669
|
+
),
|
|
4670
|
+
ref: n,
|
|
4671
|
+
...r
|
|
4672
|
+
}
|
|
4673
|
+
)
|
|
4674
|
+
);
|
|
4675
|
+
No.displayName = "Input";
|
|
4676
|
+
var yl = "Separator", wn = "horizontal", xl = ["horizontal", "vertical"], _o = l.forwardRef((e, t) => {
|
|
4677
|
+
const { decorative: r, orientation: n = wn, ...o } = e, a = wl(n) ? n : wn, s = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
4678
|
+
return /* @__PURE__ */ v.jsx(
|
|
4679
|
+
te.div,
|
|
4680
|
+
{
|
|
4681
|
+
"data-orientation": a,
|
|
4682
|
+
...s,
|
|
4683
|
+
...o,
|
|
4684
|
+
ref: t
|
|
4685
|
+
}
|
|
4686
|
+
);
|
|
4687
|
+
});
|
|
4688
|
+
_o.displayName = yl;
|
|
4689
|
+
function wl(e) {
|
|
4690
|
+
return xl.includes(e);
|
|
4691
|
+
}
|
|
4692
|
+
var ko = _o;
|
|
4693
|
+
const Do = l.forwardRef(
|
|
4694
|
+
({ className: e, orientation: t = "horizontal", decorative: r = !0, ...n }, o) => /* @__PURE__ */ v.jsx(
|
|
4695
|
+
ko,
|
|
4696
|
+
{
|
|
4697
|
+
ref: o,
|
|
4698
|
+
decorative: r,
|
|
4699
|
+
orientation: t,
|
|
4700
|
+
className: M(
|
|
4701
|
+
"shrink-0 bg-border",
|
|
4702
|
+
t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
4703
|
+
e
|
|
4704
|
+
),
|
|
4705
|
+
...n
|
|
4706
|
+
}
|
|
4707
|
+
)
|
|
4708
|
+
);
|
|
4709
|
+
Do.displayName = ko.displayName;
|
|
4710
|
+
const El = Ro, Cl = So, Mo = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
4628
4711
|
Mt,
|
|
4629
4712
|
{
|
|
4630
4713
|
className: M(
|
|
@@ -4635,8 +4718,8 @@ const hl = _o, vl = ko, Do = l.forwardRef(({ className: e, ...t }, r) => /* @__P
|
|
|
4635
4718
|
ref: r
|
|
4636
4719
|
}
|
|
4637
4720
|
));
|
|
4638
|
-
|
|
4639
|
-
const
|
|
4721
|
+
Mo.displayName = Mt.displayName;
|
|
4722
|
+
const Rl = yr(
|
|
4640
4723
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
4641
4724
|
{
|
|
4642
4725
|
variants: {
|
|
@@ -4651,17 +4734,17 @@ const bl = yr(
|
|
|
4651
4734
|
side: "right"
|
|
4652
4735
|
}
|
|
4653
4736
|
}
|
|
4654
|
-
),
|
|
4655
|
-
/* @__PURE__ */ v.jsx(
|
|
4737
|
+
), jo = l.forwardRef(({ side: e = "right", className: t, children: r, ...n }, o) => /* @__PURE__ */ v.jsxs(Cl, { children: [
|
|
4738
|
+
/* @__PURE__ */ v.jsx(Mo, {}),
|
|
4656
4739
|
/* @__PURE__ */ v.jsxs(
|
|
4657
4740
|
jt,
|
|
4658
4741
|
{
|
|
4659
4742
|
ref: o,
|
|
4660
|
-
className: M(
|
|
4743
|
+
className: M(Rl({ side: e }), t),
|
|
4661
4744
|
...n,
|
|
4662
4745
|
children: [
|
|
4663
4746
|
/* @__PURE__ */ v.jsxs(Or, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
4664
|
-
/* @__PURE__ */ v.jsx(
|
|
4747
|
+
/* @__PURE__ */ v.jsx(To, { className: "h-4 w-4" }),
|
|
4665
4748
|
/* @__PURE__ */ v.jsx("span", { className: "sr-only", children: "Close" })
|
|
4666
4749
|
] }),
|
|
4667
4750
|
r
|
|
@@ -4669,8 +4752,8 @@ const bl = yr(
|
|
|
4669
4752
|
}
|
|
4670
4753
|
)
|
|
4671
4754
|
] }));
|
|
4672
|
-
|
|
4673
|
-
const
|
|
4755
|
+
jo.displayName = jt.displayName;
|
|
4756
|
+
const Io = ({
|
|
4674
4757
|
className: e,
|
|
4675
4758
|
...t
|
|
4676
4759
|
}) => /* @__PURE__ */ v.jsx(
|
|
@@ -4683,8 +4766,8 @@ const jo = ({
|
|
|
4683
4766
|
...t
|
|
4684
4767
|
}
|
|
4685
4768
|
);
|
|
4686
|
-
|
|
4687
|
-
const
|
|
4769
|
+
Io.displayName = "SheetHeader";
|
|
4770
|
+
const Lo = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
4688
4771
|
It,
|
|
4689
4772
|
{
|
|
4690
4773
|
ref: r,
|
|
@@ -4692,8 +4775,8 @@ const Io = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
4692
4775
|
...t
|
|
4693
4776
|
}
|
|
4694
4777
|
));
|
|
4695
|
-
|
|
4696
|
-
const
|
|
4778
|
+
Lo.displayName = It.displayName;
|
|
4779
|
+
const Fo = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
4697
4780
|
Lt,
|
|
4698
4781
|
{
|
|
4699
4782
|
ref: r,
|
|
@@ -4701,7 +4784,7 @@ const Lo = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
4701
4784
|
...t
|
|
4702
4785
|
}
|
|
4703
4786
|
));
|
|
4704
|
-
|
|
4787
|
+
Fo.displayName = Lt.displayName;
|
|
4705
4788
|
function En({
|
|
4706
4789
|
className: e,
|
|
4707
4790
|
...t
|
|
@@ -4714,15 +4797,15 @@ function En({
|
|
|
4714
4797
|
}
|
|
4715
4798
|
);
|
|
4716
4799
|
}
|
|
4717
|
-
const
|
|
4800
|
+
const Sl = ["top", "right", "bottom", "left"], Ae = Math.min, oe = Math.max, Ot = Math.round, Ct = Math.floor, me = (e) => ({
|
|
4718
4801
|
x: e,
|
|
4719
4802
|
y: e
|
|
4720
|
-
}),
|
|
4803
|
+
}), Pl = {
|
|
4721
4804
|
left: "right",
|
|
4722
4805
|
right: "left",
|
|
4723
4806
|
bottom: "top",
|
|
4724
4807
|
top: "bottom"
|
|
4725
|
-
},
|
|
4808
|
+
}, Al = {
|
|
4726
4809
|
start: "end",
|
|
4727
4810
|
end: "start"
|
|
4728
4811
|
};
|
|
@@ -4750,20 +4833,20 @@ function Te(e) {
|
|
|
4750
4833
|
function kr(e) {
|
|
4751
4834
|
return Nr(Te(e));
|
|
4752
4835
|
}
|
|
4753
|
-
function
|
|
4836
|
+
function Tl(e, t, r) {
|
|
4754
4837
|
r === void 0 && (r = !1);
|
|
4755
4838
|
const n = nt(e), o = kr(e), a = _r(o);
|
|
4756
4839
|
let i = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
4757
4840
|
return t.reference[a] > t.floating[a] && (i = Nt(i)), [i, Nt(i)];
|
|
4758
4841
|
}
|
|
4759
|
-
function
|
|
4842
|
+
function Ol(e) {
|
|
4760
4843
|
const t = Nt(e);
|
|
4761
4844
|
return [gr(e), t, gr(t)];
|
|
4762
4845
|
}
|
|
4763
4846
|
function gr(e) {
|
|
4764
|
-
return e.replace(/start|end/g, (t) =>
|
|
4847
|
+
return e.replace(/start|end/g, (t) => Al[t]);
|
|
4765
4848
|
}
|
|
4766
|
-
function
|
|
4849
|
+
function Nl(e, t, r) {
|
|
4767
4850
|
const n = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], i = ["bottom", "top"];
|
|
4768
4851
|
switch (e) {
|
|
4769
4852
|
case "top":
|
|
@@ -4776,15 +4859,15 @@ function Rl(e, t, r) {
|
|
|
4776
4859
|
return [];
|
|
4777
4860
|
}
|
|
4778
4861
|
}
|
|
4779
|
-
function
|
|
4862
|
+
function _l(e, t, r, n) {
|
|
4780
4863
|
const o = nt(e);
|
|
4781
|
-
let a =
|
|
4864
|
+
let a = Nl(xe(e), r === "start", n);
|
|
4782
4865
|
return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(gr)))), a;
|
|
4783
4866
|
}
|
|
4784
4867
|
function Nt(e) {
|
|
4785
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4868
|
+
return e.replace(/left|right|bottom|top/g, (t) => Pl[t]);
|
|
4786
4869
|
}
|
|
4787
|
-
function
|
|
4870
|
+
function kl(e) {
|
|
4788
4871
|
return {
|
|
4789
4872
|
top: 0,
|
|
4790
4873
|
right: 0,
|
|
@@ -4793,8 +4876,8 @@ function Pl(e) {
|
|
|
4793
4876
|
...e
|
|
4794
4877
|
};
|
|
4795
4878
|
}
|
|
4796
|
-
function
|
|
4797
|
-
return typeof e != "number" ?
|
|
4879
|
+
function zo(e) {
|
|
4880
|
+
return typeof e != "number" ? kl(e) : {
|
|
4798
4881
|
top: e,
|
|
4799
4882
|
right: e,
|
|
4800
4883
|
bottom: e,
|
|
@@ -4867,7 +4950,7 @@ function Cn(e, t, r) {
|
|
|
4867
4950
|
}
|
|
4868
4951
|
return g;
|
|
4869
4952
|
}
|
|
4870
|
-
const
|
|
4953
|
+
const Dl = async (e, t, r) => {
|
|
4871
4954
|
const {
|
|
4872
4955
|
placement: n = "bottom",
|
|
4873
4956
|
strategy: o = "absolute",
|
|
@@ -4944,7 +5027,7 @@ async function lt(e, t) {
|
|
|
4944
5027
|
elementContext: p = "floating",
|
|
4945
5028
|
altBoundary: h = !1,
|
|
4946
5029
|
padding: g = 0
|
|
4947
|
-
} = ye(t, e), b =
|
|
5030
|
+
} = ye(t, e), b = zo(g), y = s[h ? p === "floating" ? "reference" : "floating" : p], x = _t(await a.getClippingRect({
|
|
4948
5031
|
element: (r = await (a.isElement == null ? void 0 : a.isElement(y))) == null || r ? y : y.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
4949
5032
|
boundary: d,
|
|
4950
5033
|
rootBoundary: f,
|
|
@@ -4973,7 +5056,7 @@ async function lt(e, t) {
|
|
|
4973
5056
|
right: (P.right - x.right + b.right) / S.x
|
|
4974
5057
|
};
|
|
4975
5058
|
}
|
|
4976
|
-
const
|
|
5059
|
+
const Ml = (e) => ({
|
|
4977
5060
|
name: "arrow",
|
|
4978
5061
|
options: e,
|
|
4979
5062
|
async fn(t) {
|
|
@@ -4991,7 +5074,7 @@ const Tl = (e) => ({
|
|
|
4991
5074
|
} = ye(e, t) || {};
|
|
4992
5075
|
if (d == null)
|
|
4993
5076
|
return {};
|
|
4994
|
-
const p =
|
|
5077
|
+
const p = zo(f), h = {
|
|
4995
5078
|
x: r,
|
|
4996
5079
|
y: n
|
|
4997
5080
|
}, g = kr(o), b = _r(g), m = await i.getDimensions(d), y = g === "y", x = y ? "top" : "left", w = y ? "bottom" : "right", R = y ? "clientHeight" : "clientWidth", S = a.reference[b] + a.reference[g] - h[g] - a.floating[b], P = h[g] - a.reference[g], C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
|
|
@@ -5010,7 +5093,7 @@ const Tl = (e) => ({
|
|
|
5010
5093
|
reset: k
|
|
5011
5094
|
};
|
|
5012
5095
|
}
|
|
5013
|
-
}),
|
|
5096
|
+
}), jl = function(e) {
|
|
5014
5097
|
return e === void 0 && (e = {}), {
|
|
5015
5098
|
name: "flip",
|
|
5016
5099
|
options: e,
|
|
@@ -5034,12 +5117,12 @@ const Tl = (e) => ({
|
|
|
5034
5117
|
} = ye(e, t);
|
|
5035
5118
|
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
5036
5119
|
return {};
|
|
5037
|
-
const x = xe(o), w = Te(s), R = xe(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), P = h || (R || !m ? [Nt(s)] :
|
|
5038
|
-
!h && C && P.push(...
|
|
5120
|
+
const x = xe(o), w = Te(s), R = xe(s) === s, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), P = h || (R || !m ? [Nt(s)] : Ol(s)), C = b !== "none";
|
|
5121
|
+
!h && C && P.push(..._l(s, m, b, S));
|
|
5039
5122
|
const T = [s, ...P], W = await lt(t, y), G = [];
|
|
5040
5123
|
let V = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
5041
5124
|
if (f && G.push(W[x]), p) {
|
|
5042
|
-
const j =
|
|
5125
|
+
const j = Tl(o, i, S);
|
|
5043
5126
|
G.push(W[j[0]], W[j[1]]);
|
|
5044
5127
|
}
|
|
5045
5128
|
if (V = [...V, {
|
|
@@ -5099,9 +5182,9 @@ function Rn(e, t) {
|
|
|
5099
5182
|
};
|
|
5100
5183
|
}
|
|
5101
5184
|
function Sn(e) {
|
|
5102
|
-
return
|
|
5185
|
+
return Sl.some((t) => e[t] >= 0);
|
|
5103
5186
|
}
|
|
5104
|
-
const
|
|
5187
|
+
const Il = function(e) {
|
|
5105
5188
|
return e === void 0 && (e = {}), {
|
|
5106
5189
|
name: "hide",
|
|
5107
5190
|
options: e,
|
|
@@ -5143,7 +5226,7 @@ const Nl = function(e) {
|
|
|
5143
5226
|
}
|
|
5144
5227
|
};
|
|
5145
5228
|
};
|
|
5146
|
-
async function
|
|
5229
|
+
async function Ll(e, t) {
|
|
5147
5230
|
const {
|
|
5148
5231
|
placement: r,
|
|
5149
5232
|
platform: n,
|
|
@@ -5170,7 +5253,7 @@ async function _l(e, t) {
|
|
|
5170
5253
|
y: g * f
|
|
5171
5254
|
};
|
|
5172
5255
|
}
|
|
5173
|
-
const
|
|
5256
|
+
const Fl = function(e) {
|
|
5174
5257
|
return e === void 0 && (e = 0), {
|
|
5175
5258
|
name: "offset",
|
|
5176
5259
|
options: e,
|
|
@@ -5181,7 +5264,7 @@ const kl = function(e) {
|
|
|
5181
5264
|
y: a,
|
|
5182
5265
|
placement: i,
|
|
5183
5266
|
middlewareData: s
|
|
5184
|
-
} = t, c = await
|
|
5267
|
+
} = t, c = await Ll(t, e);
|
|
5185
5268
|
return i === ((r = s.offset) == null ? void 0 : r.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
|
|
5186
5269
|
x: o + c.x,
|
|
5187
5270
|
y: a + c.y,
|
|
@@ -5192,7 +5275,7 @@ const kl = function(e) {
|
|
|
5192
5275
|
};
|
|
5193
5276
|
}
|
|
5194
5277
|
};
|
|
5195
|
-
},
|
|
5278
|
+
}, zl = function(e) {
|
|
5196
5279
|
return e === void 0 && (e = {}), {
|
|
5197
5280
|
name: "shift",
|
|
5198
5281
|
options: e,
|
|
@@ -5248,7 +5331,7 @@ const kl = function(e) {
|
|
|
5248
5331
|
};
|
|
5249
5332
|
}
|
|
5250
5333
|
};
|
|
5251
|
-
},
|
|
5334
|
+
}, $l = function(e) {
|
|
5252
5335
|
return e === void 0 && (e = {}), {
|
|
5253
5336
|
options: e,
|
|
5254
5337
|
fn(t) {
|
|
@@ -5290,7 +5373,7 @@ const kl = function(e) {
|
|
|
5290
5373
|
};
|
|
5291
5374
|
}
|
|
5292
5375
|
};
|
|
5293
|
-
},
|
|
5376
|
+
}, Wl = function(e) {
|
|
5294
5377
|
return e === void 0 && (e = {}), {
|
|
5295
5378
|
name: "size",
|
|
5296
5379
|
options: e,
|
|
@@ -5335,7 +5418,7 @@ function Ft() {
|
|
|
5335
5418
|
return typeof window < "u";
|
|
5336
5419
|
}
|
|
5337
5420
|
function ot(e) {
|
|
5338
|
-
return
|
|
5421
|
+
return $o(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5339
5422
|
}
|
|
5340
5423
|
function ae(e) {
|
|
5341
5424
|
var t;
|
|
@@ -5343,9 +5426,9 @@ function ae(e) {
|
|
|
5343
5426
|
}
|
|
5344
5427
|
function he(e) {
|
|
5345
5428
|
var t;
|
|
5346
|
-
return (t = (
|
|
5429
|
+
return (t = ($o(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5347
5430
|
}
|
|
5348
|
-
function
|
|
5431
|
+
function $o(e) {
|
|
5349
5432
|
return Ft() ? e instanceof Node || e instanceof ae(e).Node : !1;
|
|
5350
5433
|
}
|
|
5351
5434
|
function le(e) {
|
|
@@ -5366,7 +5449,7 @@ function ut(e) {
|
|
|
5366
5449
|
} = ce(e);
|
|
5367
5450
|
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(o);
|
|
5368
5451
|
}
|
|
5369
|
-
function
|
|
5452
|
+
function Bl(e) {
|
|
5370
5453
|
return ["table", "td", "th"].includes(ot(e));
|
|
5371
5454
|
}
|
|
5372
5455
|
function zt(e) {
|
|
@@ -5382,7 +5465,7 @@ function Dr(e) {
|
|
|
5382
5465
|
const t = Mr(), r = le(e) ? ce(e) : e;
|
|
5383
5466
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
|
|
5384
5467
|
}
|
|
5385
|
-
function
|
|
5468
|
+
function Vl(e) {
|
|
5386
5469
|
let t = Oe(e);
|
|
5387
5470
|
for (; ge(t) && !Ze(t); ) {
|
|
5388
5471
|
if (Dr(t))
|
|
@@ -5423,14 +5506,14 @@ function Oe(e) {
|
|
|
5423
5506
|
);
|
|
5424
5507
|
return Pn(t) ? t.host : t;
|
|
5425
5508
|
}
|
|
5426
|
-
function
|
|
5509
|
+
function Wo(e) {
|
|
5427
5510
|
const t = Oe(e);
|
|
5428
|
-
return Ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ge(t) && ut(t) ? t :
|
|
5511
|
+
return Ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ge(t) && ut(t) ? t : Wo(t);
|
|
5429
5512
|
}
|
|
5430
5513
|
function ct(e, t, r) {
|
|
5431
5514
|
var n;
|
|
5432
5515
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
5433
|
-
const o =
|
|
5516
|
+
const o = Wo(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = ae(o);
|
|
5434
5517
|
if (a) {
|
|
5435
5518
|
const s = hr(i);
|
|
5436
5519
|
return t.concat(i, i.visualViewport || [], ut(o) ? o : [], s && r ? ct(s) : []);
|
|
@@ -5440,7 +5523,7 @@ function ct(e, t, r) {
|
|
|
5440
5523
|
function hr(e) {
|
|
5441
5524
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5442
5525
|
}
|
|
5443
|
-
function
|
|
5526
|
+
function Bo(e) {
|
|
5444
5527
|
const t = ce(e);
|
|
5445
5528
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
5446
5529
|
const o = ge(e), a = o ? e.offsetWidth : r, i = o ? e.offsetHeight : n, s = Ot(r) !== a || Ot(n) !== i;
|
|
@@ -5461,22 +5544,22 @@ function Je(e) {
|
|
|
5461
5544
|
width: n,
|
|
5462
5545
|
height: o,
|
|
5463
5546
|
$: a
|
|
5464
|
-
} =
|
|
5547
|
+
} = Bo(t);
|
|
5465
5548
|
let i = (a ? Ot(r.width) : r.width) / n, s = (a ? Ot(r.height) : r.height) / o;
|
|
5466
5549
|
return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
5467
5550
|
x: i,
|
|
5468
5551
|
y: s
|
|
5469
5552
|
};
|
|
5470
5553
|
}
|
|
5471
|
-
const
|
|
5472
|
-
function
|
|
5554
|
+
const Hl = /* @__PURE__ */ me(0);
|
|
5555
|
+
function Vo(e) {
|
|
5473
5556
|
const t = ae(e);
|
|
5474
|
-
return !Mr() || !t.visualViewport ?
|
|
5557
|
+
return !Mr() || !t.visualViewport ? Hl : {
|
|
5475
5558
|
x: t.visualViewport.offsetLeft,
|
|
5476
5559
|
y: t.visualViewport.offsetTop
|
|
5477
5560
|
};
|
|
5478
5561
|
}
|
|
5479
|
-
function
|
|
5562
|
+
function Gl(e, t, r) {
|
|
5480
5563
|
return t === void 0 && (t = !1), !r || t && r !== ae(e) ? !1 : t;
|
|
5481
5564
|
}
|
|
5482
5565
|
function We(e, t, r, n) {
|
|
@@ -5484,7 +5567,7 @@ function We(e, t, r, n) {
|
|
|
5484
5567
|
const o = e.getBoundingClientRect(), a = jr(e);
|
|
5485
5568
|
let i = me(1);
|
|
5486
5569
|
t && (n ? le(n) && (i = Je(n)) : i = Je(e));
|
|
5487
|
-
const s =
|
|
5570
|
+
const s = Gl(a, r, n) ? Vo(a) : me(0);
|
|
5488
5571
|
let c = (o.left + s.x) / i.x, d = (o.top + s.y) / i.y, f = o.width / i.x, p = o.height / i.y;
|
|
5489
5572
|
if (a) {
|
|
5490
5573
|
const h = ae(a), g = n && le(n) ? ae(n) : n;
|
|
@@ -5505,7 +5588,7 @@ function Ir(e, t) {
|
|
|
5505
5588
|
const r = $t(e).scrollLeft;
|
|
5506
5589
|
return t ? t.left + r : We(he(e)).left + r;
|
|
5507
5590
|
}
|
|
5508
|
-
function
|
|
5591
|
+
function Ho(e, t, r) {
|
|
5509
5592
|
r === void 0 && (r = !1);
|
|
5510
5593
|
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - (r ? 0 : (
|
|
5511
5594
|
// RTL <body> scrollbar.
|
|
@@ -5516,7 +5599,7 @@ function Vo(e, t, r) {
|
|
|
5516
5599
|
y: a
|
|
5517
5600
|
};
|
|
5518
5601
|
}
|
|
5519
|
-
function
|
|
5602
|
+
function Ul(e) {
|
|
5520
5603
|
let {
|
|
5521
5604
|
elements: t,
|
|
5522
5605
|
rect: r,
|
|
@@ -5535,7 +5618,7 @@ function $l(e) {
|
|
|
5535
5618
|
const g = We(n);
|
|
5536
5619
|
d = Je(n), f.x = g.x + n.clientLeft, f.y = g.y + n.clientTop;
|
|
5537
5620
|
}
|
|
5538
|
-
const h = i && !p && !a ?
|
|
5621
|
+
const h = i && !p && !a ? Ho(i, c, !0) : me(0);
|
|
5539
5622
|
return {
|
|
5540
5623
|
width: r.width * d.x,
|
|
5541
5624
|
height: r.height * d.y,
|
|
@@ -5543,10 +5626,10 @@ function $l(e) {
|
|
|
5543
5626
|
y: r.y * d.y - c.scrollTop * d.y + f.y + h.y
|
|
5544
5627
|
};
|
|
5545
5628
|
}
|
|
5546
|
-
function
|
|
5629
|
+
function Yl(e) {
|
|
5547
5630
|
return Array.from(e.getClientRects());
|
|
5548
5631
|
}
|
|
5549
|
-
function
|
|
5632
|
+
function Kl(e) {
|
|
5550
5633
|
const t = he(e), r = $t(e), n = e.ownerDocument.body, o = oe(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = oe(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
5551
5634
|
let i = -r.scrollLeft + Ir(e);
|
|
5552
5635
|
const s = -r.scrollTop;
|
|
@@ -5557,7 +5640,7 @@ function Bl(e) {
|
|
|
5557
5640
|
y: s
|
|
5558
5641
|
};
|
|
5559
5642
|
}
|
|
5560
|
-
function
|
|
5643
|
+
function Xl(e, t) {
|
|
5561
5644
|
const r = ae(e), n = he(e), o = r.visualViewport;
|
|
5562
5645
|
let a = n.clientWidth, i = n.clientHeight, s = 0, c = 0;
|
|
5563
5646
|
if (o) {
|
|
@@ -5572,7 +5655,7 @@ function Vl(e, t) {
|
|
|
5572
5655
|
y: c
|
|
5573
5656
|
};
|
|
5574
5657
|
}
|
|
5575
|
-
function
|
|
5658
|
+
function ql(e, t) {
|
|
5576
5659
|
const r = We(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, a = ge(e) ? Je(e) : me(1), i = e.clientWidth * a.x, s = e.clientHeight * a.y, c = o * a.x, d = n * a.y;
|
|
5577
5660
|
return {
|
|
5578
5661
|
width: i,
|
|
@@ -5584,13 +5667,13 @@ function Hl(e, t) {
|
|
|
5584
5667
|
function An(e, t, r) {
|
|
5585
5668
|
let n;
|
|
5586
5669
|
if (t === "viewport")
|
|
5587
|
-
n =
|
|
5670
|
+
n = Xl(e, r);
|
|
5588
5671
|
else if (t === "document")
|
|
5589
|
-
n =
|
|
5672
|
+
n = Kl(he(e));
|
|
5590
5673
|
else if (le(t))
|
|
5591
|
-
n =
|
|
5674
|
+
n = ql(t, r);
|
|
5592
5675
|
else {
|
|
5593
|
-
const o =
|
|
5676
|
+
const o = Vo(e);
|
|
5594
5677
|
n = {
|
|
5595
5678
|
x: t.x - o.x,
|
|
5596
5679
|
y: t.y - o.y,
|
|
@@ -5600,11 +5683,11 @@ function An(e, t, r) {
|
|
|
5600
5683
|
}
|
|
5601
5684
|
return _t(n);
|
|
5602
5685
|
}
|
|
5603
|
-
function
|
|
5686
|
+
function Go(e, t) {
|
|
5604
5687
|
const r = Oe(e);
|
|
5605
|
-
return r === t || !le(r) || Ze(r) ? !1 : ce(r).position === "fixed" ||
|
|
5688
|
+
return r === t || !le(r) || Ze(r) ? !1 : ce(r).position === "fixed" || Go(r, t);
|
|
5606
5689
|
}
|
|
5607
|
-
function
|
|
5690
|
+
function Jl(e, t) {
|
|
5608
5691
|
const r = t.get(e);
|
|
5609
5692
|
if (r)
|
|
5610
5693
|
return r;
|
|
@@ -5613,18 +5696,18 @@ function Gl(e, t) {
|
|
|
5613
5696
|
let i = a ? Oe(e) : e;
|
|
5614
5697
|
for (; le(i) && !Ze(i); ) {
|
|
5615
5698
|
const s = ce(i), c = Dr(i);
|
|
5616
|
-
!c && s.position === "fixed" && (o = null), (a ? !c && !o : !c && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ut(i) && !c &&
|
|
5699
|
+
!c && s.position === "fixed" && (o = null), (a ? !c && !o : !c && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ut(i) && !c && Go(e, i)) ? n = n.filter((f) => f !== i) : o = s, i = Oe(i);
|
|
5617
5700
|
}
|
|
5618
5701
|
return t.set(e, n), n;
|
|
5619
5702
|
}
|
|
5620
|
-
function
|
|
5703
|
+
function Zl(e) {
|
|
5621
5704
|
let {
|
|
5622
5705
|
element: t,
|
|
5623
5706
|
boundary: r,
|
|
5624
5707
|
rootBoundary: n,
|
|
5625
5708
|
strategy: o
|
|
5626
5709
|
} = e;
|
|
5627
|
-
const i = [...r === "clippingAncestors" ? zt(t) ? [] :
|
|
5710
|
+
const i = [...r === "clippingAncestors" ? zt(t) ? [] : Jl(t, this._c) : [].concat(r), n], s = i[0], c = i.reduce((d, f) => {
|
|
5628
5711
|
const p = An(t, f, o);
|
|
5629
5712
|
return d.top = oe(p.top, d.top), d.right = Ae(p.right, d.right), d.bottom = Ae(p.bottom, d.bottom), d.left = oe(p.left, d.left), d;
|
|
5630
5713
|
}, An(t, s, o));
|
|
@@ -5635,17 +5718,17 @@ function Ul(e) {
|
|
|
5635
5718
|
y: c.top
|
|
5636
5719
|
};
|
|
5637
5720
|
}
|
|
5638
|
-
function
|
|
5721
|
+
function Ql(e) {
|
|
5639
5722
|
const {
|
|
5640
5723
|
width: t,
|
|
5641
5724
|
height: r
|
|
5642
|
-
} =
|
|
5725
|
+
} = Bo(e);
|
|
5643
5726
|
return {
|
|
5644
5727
|
width: t,
|
|
5645
5728
|
height: r
|
|
5646
5729
|
};
|
|
5647
5730
|
}
|
|
5648
|
-
function
|
|
5731
|
+
function ec(e, t, r) {
|
|
5649
5732
|
const n = ge(t), o = he(t), a = r === "fixed", i = We(e, !0, a, t);
|
|
5650
5733
|
let s = {
|
|
5651
5734
|
scrollLeft: 0,
|
|
@@ -5657,7 +5740,7 @@ function Kl(e, t, r) {
|
|
|
5657
5740
|
const h = We(t, !0, a, t);
|
|
5658
5741
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
5659
5742
|
} else o && (c.x = Ir(o));
|
|
5660
|
-
const d = o && !n && !a ?
|
|
5743
|
+
const d = o && !n && !a ? Ho(o, s) : me(0), f = i.left + s.scrollLeft - c.x - d.x, p = i.top + s.scrollTop - c.y - d.y;
|
|
5661
5744
|
return {
|
|
5662
5745
|
x: f,
|
|
5663
5746
|
y: p,
|
|
@@ -5676,7 +5759,7 @@ function Tn(e, t) {
|
|
|
5676
5759
|
let r = e.offsetParent;
|
|
5677
5760
|
return he(e) === r && (r = r.ownerDocument.body), r;
|
|
5678
5761
|
}
|
|
5679
|
-
function
|
|
5762
|
+
function Uo(e, t) {
|
|
5680
5763
|
const r = ae(e);
|
|
5681
5764
|
if (zt(e))
|
|
5682
5765
|
return r;
|
|
@@ -5690,14 +5773,14 @@ function Go(e, t) {
|
|
|
5690
5773
|
return r;
|
|
5691
5774
|
}
|
|
5692
5775
|
let n = Tn(e, t);
|
|
5693
|
-
for (; n &&
|
|
5776
|
+
for (; n && Bl(n) && ar(n); )
|
|
5694
5777
|
n = Tn(n, t);
|
|
5695
|
-
return n && Ze(n) && ar(n) && !Dr(n) ? r : n ||
|
|
5778
|
+
return n && Ze(n) && ar(n) && !Dr(n) ? r : n || Vl(e) || r;
|
|
5696
5779
|
}
|
|
5697
|
-
const
|
|
5698
|
-
const t = this.getOffsetParent ||
|
|
5780
|
+
const tc = async function(e) {
|
|
5781
|
+
const t = this.getOffsetParent || Uo, r = this.getDimensions, n = await r(e.floating);
|
|
5699
5782
|
return {
|
|
5700
|
-
reference:
|
|
5783
|
+
reference: ec(e.reference, await t(e.floating), e.strategy),
|
|
5701
5784
|
floating: {
|
|
5702
5785
|
x: 0,
|
|
5703
5786
|
y: 0,
|
|
@@ -5706,25 +5789,25 @@ const Xl = async function(e) {
|
|
|
5706
5789
|
}
|
|
5707
5790
|
};
|
|
5708
5791
|
};
|
|
5709
|
-
function
|
|
5792
|
+
function rc(e) {
|
|
5710
5793
|
return ce(e).direction === "rtl";
|
|
5711
5794
|
}
|
|
5712
|
-
const
|
|
5713
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5795
|
+
const nc = {
|
|
5796
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ul,
|
|
5714
5797
|
getDocumentElement: he,
|
|
5715
|
-
getClippingRect:
|
|
5716
|
-
getOffsetParent:
|
|
5717
|
-
getElementRects:
|
|
5718
|
-
getClientRects:
|
|
5719
|
-
getDimensions:
|
|
5798
|
+
getClippingRect: Zl,
|
|
5799
|
+
getOffsetParent: Uo,
|
|
5800
|
+
getElementRects: tc,
|
|
5801
|
+
getClientRects: Yl,
|
|
5802
|
+
getDimensions: Ql,
|
|
5720
5803
|
getScale: Je,
|
|
5721
5804
|
isElement: le,
|
|
5722
|
-
isRTL:
|
|
5805
|
+
isRTL: rc
|
|
5723
5806
|
};
|
|
5724
|
-
function
|
|
5807
|
+
function Yo(e, t) {
|
|
5725
5808
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5726
5809
|
}
|
|
5727
|
-
function
|
|
5810
|
+
function oc(e, t) {
|
|
5728
5811
|
let r = null, n;
|
|
5729
5812
|
const o = he(e);
|
|
5730
5813
|
function a() {
|
|
@@ -5755,7 +5838,7 @@ function Zl(e, t) {
|
|
|
5755
5838
|
i(!1, 1e-7);
|
|
5756
5839
|
}, 1e3);
|
|
5757
5840
|
}
|
|
5758
|
-
T === 1 && !
|
|
5841
|
+
T === 1 && !Yo(d, e.getBoundingClientRect()) && i(), S = !1;
|
|
5759
5842
|
}
|
|
5760
5843
|
try {
|
|
5761
5844
|
r = new IntersectionObserver(P, {
|
|
@@ -5770,7 +5853,7 @@ function Zl(e, t) {
|
|
|
5770
5853
|
}
|
|
5771
5854
|
return i(!0), a;
|
|
5772
5855
|
}
|
|
5773
|
-
function
|
|
5856
|
+
function ac(e, t, r, n) {
|
|
5774
5857
|
n === void 0 && (n = {});
|
|
5775
5858
|
const {
|
|
5776
5859
|
ancestorScroll: o = !0,
|
|
@@ -5784,7 +5867,7 @@ function Ql(e, t, r, n) {
|
|
|
5784
5867
|
passive: !0
|
|
5785
5868
|
}), a && x.addEventListener("resize", r);
|
|
5786
5869
|
});
|
|
5787
|
-
const p = d && s ?
|
|
5870
|
+
const p = d && s ? oc(d, r) : null;
|
|
5788
5871
|
let h = -1, g = null;
|
|
5789
5872
|
i && (g = new ResizeObserver((x) => {
|
|
5790
5873
|
let [w] = x;
|
|
@@ -5797,7 +5880,7 @@ function Ql(e, t, r, n) {
|
|
|
5797
5880
|
c && y();
|
|
5798
5881
|
function y() {
|
|
5799
5882
|
const x = We(e);
|
|
5800
|
-
m && !
|
|
5883
|
+
m && !Yo(m, x) && r(), m = x, b = requestAnimationFrame(y);
|
|
5801
5884
|
}
|
|
5802
5885
|
return r(), () => {
|
|
5803
5886
|
var x;
|
|
@@ -5806,15 +5889,15 @@ function Ql(e, t, r, n) {
|
|
|
5806
5889
|
}), p == null || p(), (x = g) == null || x.disconnect(), g = null, c && cancelAnimationFrame(b);
|
|
5807
5890
|
};
|
|
5808
5891
|
}
|
|
5809
|
-
const
|
|
5892
|
+
const ic = Fl, sc = zl, lc = jl, cc = Wl, uc = Il, On = Ml, dc = $l, fc = (e, t, r) => {
|
|
5810
5893
|
const n = /* @__PURE__ */ new Map(), o = {
|
|
5811
|
-
platform:
|
|
5894
|
+
platform: nc,
|
|
5812
5895
|
...r
|
|
5813
5896
|
}, a = {
|
|
5814
5897
|
...o.platform,
|
|
5815
5898
|
_c: n
|
|
5816
5899
|
};
|
|
5817
|
-
return
|
|
5900
|
+
return Dl(e, t, {
|
|
5818
5901
|
...o,
|
|
5819
5902
|
platform: a
|
|
5820
5903
|
});
|
|
@@ -5850,11 +5933,11 @@ function kt(e, t) {
|
|
|
5850
5933
|
}
|
|
5851
5934
|
return e !== e && t !== t;
|
|
5852
5935
|
}
|
|
5853
|
-
function
|
|
5936
|
+
function Ko(e) {
|
|
5854
5937
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5855
5938
|
}
|
|
5856
5939
|
function Nn(e, t) {
|
|
5857
|
-
const r =
|
|
5940
|
+
const r = Ko(e);
|
|
5858
5941
|
return Math.round(t * r) / r;
|
|
5859
5942
|
}
|
|
5860
5943
|
function ir(e) {
|
|
@@ -5863,7 +5946,7 @@ function ir(e) {
|
|
|
5863
5946
|
t.current = e;
|
|
5864
5947
|
}), t;
|
|
5865
5948
|
}
|
|
5866
|
-
function
|
|
5949
|
+
function pc(e) {
|
|
5867
5950
|
e === void 0 && (e = {});
|
|
5868
5951
|
const {
|
|
5869
5952
|
placement: t = "bottom",
|
|
@@ -5898,7 +5981,7 @@ function sc(e) {
|
|
|
5898
5981
|
strategy: r,
|
|
5899
5982
|
middleware: h
|
|
5900
5983
|
};
|
|
5901
|
-
q.current && (_.platform = q.current),
|
|
5984
|
+
q.current && (_.platform = q.current), fc(C.current, T.current, _).then(($) => {
|
|
5902
5985
|
const Z = {
|
|
5903
5986
|
...$,
|
|
5904
5987
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5948,7 +6031,7 @@ function sc(e) {
|
|
|
5948
6031
|
return s ? {
|
|
5949
6032
|
..._,
|
|
5950
6033
|
transform: "translate(" + $ + "px, " + Z + "px)",
|
|
5951
|
-
...
|
|
6034
|
+
...Ko(k.floating) >= 1.5 && {
|
|
5952
6035
|
willChange: "transform"
|
|
5953
6036
|
}
|
|
5954
6037
|
} : {
|
|
@@ -5965,7 +6048,7 @@ function sc(e) {
|
|
|
5965
6048
|
floatingStyles: Y
|
|
5966
6049
|
}), [f, F, U, k, Y]);
|
|
5967
6050
|
}
|
|
5968
|
-
const
|
|
6051
|
+
const mc = (e) => {
|
|
5969
6052
|
function t(r) {
|
|
5970
6053
|
return {}.hasOwnProperty.call(r, "current");
|
|
5971
6054
|
}
|
|
@@ -5986,29 +6069,29 @@ const lc = (e) => {
|
|
|
5986
6069
|
}).fn(r) : {};
|
|
5987
6070
|
}
|
|
5988
6071
|
};
|
|
5989
|
-
},
|
|
5990
|
-
...
|
|
6072
|
+
}, gc = (e, t) => ({
|
|
6073
|
+
...ic(e),
|
|
5991
6074
|
options: [e, t]
|
|
5992
|
-
}),
|
|
5993
|
-
...
|
|
6075
|
+
}), hc = (e, t) => ({
|
|
6076
|
+
...sc(e),
|
|
5994
6077
|
options: [e, t]
|
|
5995
|
-
}),
|
|
5996
|
-
...
|
|
6078
|
+
}), vc = (e, t) => ({
|
|
6079
|
+
...dc(e),
|
|
5997
6080
|
options: [e, t]
|
|
5998
|
-
}),
|
|
5999
|
-
...
|
|
6081
|
+
}), bc = (e, t) => ({
|
|
6082
|
+
...lc(e),
|
|
6000
6083
|
options: [e, t]
|
|
6001
|
-
}),
|
|
6002
|
-
...
|
|
6084
|
+
}), yc = (e, t) => ({
|
|
6085
|
+
...cc(e),
|
|
6003
6086
|
options: [e, t]
|
|
6004
|
-
}),
|
|
6005
|
-
...
|
|
6087
|
+
}), xc = (e, t) => ({
|
|
6088
|
+
...uc(e),
|
|
6006
6089
|
options: [e, t]
|
|
6007
|
-
}),
|
|
6008
|
-
...
|
|
6090
|
+
}), wc = (e, t) => ({
|
|
6091
|
+
...mc(e),
|
|
6009
6092
|
options: [e, t]
|
|
6010
6093
|
});
|
|
6011
|
-
var
|
|
6094
|
+
var Ec = "Arrow", Xo = l.forwardRef((e, t) => {
|
|
6012
6095
|
const { children: r, width: n = 10, height: o = 5, ...a } = e;
|
|
6013
6096
|
return /* @__PURE__ */ v.jsx(
|
|
6014
6097
|
te.svg,
|
|
@@ -6023,9 +6106,9 @@ var hc = "Arrow", Ko = l.forwardRef((e, t) => {
|
|
|
6023
6106
|
}
|
|
6024
6107
|
);
|
|
6025
6108
|
});
|
|
6026
|
-
|
|
6027
|
-
var
|
|
6028
|
-
function
|
|
6109
|
+
Xo.displayName = Ec;
|
|
6110
|
+
var Cc = Xo;
|
|
6111
|
+
function Rc(e) {
|
|
6029
6112
|
const [t, r] = l.useState(void 0);
|
|
6030
6113
|
return ze(() => {
|
|
6031
6114
|
if (e) {
|
|
@@ -6047,21 +6130,21 @@ function bc(e) {
|
|
|
6047
6130
|
r(void 0);
|
|
6048
6131
|
}, [e]), t;
|
|
6049
6132
|
}
|
|
6050
|
-
var Lr = "Popper", [
|
|
6133
|
+
var Lr = "Popper", [qo, Jo] = Er(Lr), [Sc, Zo] = qo(Lr), Qo = (e) => {
|
|
6051
6134
|
const { __scopePopper: t, children: r } = e, [n, o] = l.useState(null);
|
|
6052
|
-
return /* @__PURE__ */ v.jsx(
|
|
6135
|
+
return /* @__PURE__ */ v.jsx(Sc, { scope: t, anchor: n, onAnchorChange: o, children: r });
|
|
6053
6136
|
};
|
|
6054
|
-
|
|
6055
|
-
var
|
|
6137
|
+
Qo.displayName = Lr;
|
|
6138
|
+
var ea = "PopperAnchor", ta = l.forwardRef(
|
|
6056
6139
|
(e, t) => {
|
|
6057
|
-
const { __scopePopper: r, virtualRef: n, ...o } = e, a =
|
|
6140
|
+
const { __scopePopper: r, virtualRef: n, ...o } = e, a = Zo(ea, r), i = l.useRef(null), s = ue(t, i);
|
|
6058
6141
|
return l.useEffect(() => {
|
|
6059
6142
|
a.onAnchorChange((n == null ? void 0 : n.current) || i.current);
|
|
6060
6143
|
}), n ? null : /* @__PURE__ */ v.jsx(te.div, { ...o, ref: s });
|
|
6061
6144
|
}
|
|
6062
6145
|
);
|
|
6063
|
-
|
|
6064
|
-
var Fr = "PopperContent", [
|
|
6146
|
+
ta.displayName = ea;
|
|
6147
|
+
var Fr = "PopperContent", [Pc, Ac] = qo(Fr), ra = l.forwardRef(
|
|
6065
6148
|
(e, t) => {
|
|
6066
6149
|
var se, ke, Be, De, ft, at;
|
|
6067
6150
|
const {
|
|
@@ -6079,42 +6162,42 @@ var Fr = "PopperContent", [xc, wc] = Xo(Fr), ta = l.forwardRef(
|
|
|
6079
6162
|
updatePositionStrategy: g = "optimized",
|
|
6080
6163
|
onPlaced: b,
|
|
6081
6164
|
...m
|
|
6082
|
-
} = e, y =
|
|
6165
|
+
} = e, y = Zo(Fr, r), [x, w] = l.useState(null), R = ue(t, (Me) => w(Me)), [S, P] = l.useState(null), C = Rc(S), T = (C == null ? void 0 : C.width) ?? 0, W = (C == null ? void 0 : C.height) ?? 0, G = n + (a !== "center" ? "-" + a : ""), V = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, q = Array.isArray(d) ? d : [d], K = q.length > 0, F = {
|
|
6083
6166
|
padding: V,
|
|
6084
|
-
boundary: q.filter(
|
|
6167
|
+
boundary: q.filter(Oc),
|
|
6085
6168
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
6086
6169
|
altBoundary: K
|
|
6087
|
-
}, { refs: j, floatingStyles: U, placement: k, isPositioned: Y, middlewareData: _ } =
|
|
6170
|
+
}, { refs: j, floatingStyles: U, placement: k, isPositioned: Y, middlewareData: _ } = pc({
|
|
6088
6171
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
6089
6172
|
strategy: "fixed",
|
|
6090
6173
|
placement: G,
|
|
6091
|
-
whileElementsMounted: (...Me) =>
|
|
6174
|
+
whileElementsMounted: (...Me) => ac(...Me, {
|
|
6092
6175
|
animationFrame: g === "always"
|
|
6093
6176
|
}),
|
|
6094
6177
|
elements: {
|
|
6095
6178
|
reference: y.anchor
|
|
6096
6179
|
},
|
|
6097
6180
|
middleware: [
|
|
6098
|
-
|
|
6099
|
-
c &&
|
|
6181
|
+
gc({ mainAxis: o + W, alignmentAxis: i }),
|
|
6182
|
+
c && hc({
|
|
6100
6183
|
mainAxis: !0,
|
|
6101
6184
|
crossAxis: !1,
|
|
6102
|
-
limiter: p === "partial" ?
|
|
6185
|
+
limiter: p === "partial" ? vc() : void 0,
|
|
6103
6186
|
...F
|
|
6104
6187
|
}),
|
|
6105
|
-
c &&
|
|
6106
|
-
|
|
6188
|
+
c && bc({ ...F }),
|
|
6189
|
+
yc({
|
|
6107
6190
|
...F,
|
|
6108
6191
|
apply: ({ elements: Me, rects: pt, availableWidth: Ve, availableHeight: je }) => {
|
|
6109
6192
|
const { width: mt, height: gt } = pt.reference, be = Me.floating.style;
|
|
6110
6193
|
be.setProperty("--radix-popper-available-width", `${Ve}px`), be.setProperty("--radix-popper-available-height", `${je}px`), be.setProperty("--radix-popper-anchor-width", `${mt}px`), be.setProperty("--radix-popper-anchor-height", `${gt}px`);
|
|
6111
6194
|
}
|
|
6112
6195
|
}),
|
|
6113
|
-
S &&
|
|
6114
|
-
|
|
6115
|
-
h &&
|
|
6196
|
+
S && wc({ element: S, padding: s }),
|
|
6197
|
+
Nc({ arrowWidth: T, arrowHeight: W }),
|
|
6198
|
+
h && xc({ strategy: "referenceHidden", ...F })
|
|
6116
6199
|
]
|
|
6117
|
-
}), [$, Z] =
|
|
6200
|
+
}), [$, Z] = aa(k), fe = Pe(b);
|
|
6118
6201
|
ze(() => {
|
|
6119
6202
|
Y && (fe == null || fe());
|
|
6120
6203
|
}, [Y, fe]);
|
|
@@ -6146,7 +6229,7 @@ var Fr = "PopperContent", [xc, wc] = Xo(Fr), ta = l.forwardRef(
|
|
|
6146
6229
|
},
|
|
6147
6230
|
dir: e.dir,
|
|
6148
6231
|
children: /* @__PURE__ */ v.jsx(
|
|
6149
|
-
|
|
6232
|
+
Pc,
|
|
6150
6233
|
{
|
|
6151
6234
|
scope: r,
|
|
6152
6235
|
placedSide: $,
|
|
@@ -6175,14 +6258,14 @@ var Fr = "PopperContent", [xc, wc] = Xo(Fr), ta = l.forwardRef(
|
|
|
6175
6258
|
);
|
|
6176
6259
|
}
|
|
6177
6260
|
);
|
|
6178
|
-
|
|
6179
|
-
var
|
|
6261
|
+
ra.displayName = Fr;
|
|
6262
|
+
var na = "PopperArrow", Tc = {
|
|
6180
6263
|
top: "bottom",
|
|
6181
6264
|
right: "left",
|
|
6182
6265
|
bottom: "top",
|
|
6183
6266
|
left: "right"
|
|
6184
|
-
},
|
|
6185
|
-
const { __scopePopper: n, ...o } = t, a =
|
|
6267
|
+
}, oa = l.forwardRef(function(t, r) {
|
|
6268
|
+
const { __scopePopper: n, ...o } = t, a = Ac(na, n), i = Tc[a.placedSide];
|
|
6186
6269
|
return (
|
|
6187
6270
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6188
6271
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6211,7 +6294,7 @@ var ra = "PopperArrow", Ec = {
|
|
|
6211
6294
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
6212
6295
|
},
|
|
6213
6296
|
children: /* @__PURE__ */ v.jsx(
|
|
6214
|
-
|
|
6297
|
+
Cc,
|
|
6215
6298
|
{
|
|
6216
6299
|
...o,
|
|
6217
6300
|
ref: r,
|
|
@@ -6226,25 +6309,25 @@ var ra = "PopperArrow", Ec = {
|
|
|
6226
6309
|
)
|
|
6227
6310
|
);
|
|
6228
6311
|
});
|
|
6229
|
-
|
|
6230
|
-
function
|
|
6312
|
+
oa.displayName = na;
|
|
6313
|
+
function Oc(e) {
|
|
6231
6314
|
return e !== null;
|
|
6232
6315
|
}
|
|
6233
|
-
var
|
|
6316
|
+
var Nc = (e) => ({
|
|
6234
6317
|
name: "transformOrigin",
|
|
6235
6318
|
options: e,
|
|
6236
6319
|
fn(t) {
|
|
6237
6320
|
var y, x, w;
|
|
6238
|
-
const { placement: r, rects: n, middlewareData: o } = t, i = ((y = o.arrow) == null ? void 0 : y.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [d, f] =
|
|
6321
|
+
const { placement: r, rects: n, middlewareData: o } = t, i = ((y = o.arrow) == null ? void 0 : y.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [d, f] = aa(r), p = { start: "0%", center: "50%", end: "100%" }[f], h = (((x = o.arrow) == null ? void 0 : x.x) ?? 0) + s / 2, g = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + c / 2;
|
|
6239
6322
|
let b = "", m = "";
|
|
6240
6323
|
return d === "bottom" ? (b = i ? p : `${h}px`, m = `${-c}px`) : d === "top" ? (b = i ? p : `${h}px`, m = `${n.floating.height + c}px`) : d === "right" ? (b = `${-c}px`, m = i ? p : `${g}px`) : d === "left" && (b = `${n.floating.width + c}px`, m = i ? p : `${g}px`), { data: { x: b, y: m } };
|
|
6241
6324
|
}
|
|
6242
6325
|
});
|
|
6243
|
-
function
|
|
6326
|
+
function aa(e) {
|
|
6244
6327
|
const [t, r = "center"] = e.split("-");
|
|
6245
6328
|
return [t, r];
|
|
6246
6329
|
}
|
|
6247
|
-
var
|
|
6330
|
+
var _c = Qo, kc = ta, Dc = ra, Mc = oa, jc = "VisuallyHidden", ia = l.forwardRef(
|
|
6248
6331
|
(e, t) => /* @__PURE__ */ v.jsx(
|
|
6249
6332
|
te.span,
|
|
6250
6333
|
{
|
|
@@ -6267,13 +6350,13 @@ var Sc = Zo, Pc = ea, Ac = ta, Tc = na, Oc = "VisuallyHidden", aa = l.forwardRef
|
|
|
6267
6350
|
}
|
|
6268
6351
|
)
|
|
6269
6352
|
);
|
|
6270
|
-
|
|
6271
|
-
var
|
|
6272
|
-
|
|
6273
|
-
]), Bt =
|
|
6353
|
+
ia.displayName = jc;
|
|
6354
|
+
var Ic = ia, [Wt, Bu] = Er("Tooltip", [
|
|
6355
|
+
Jo
|
|
6356
|
+
]), Bt = Jo(), sa = "TooltipProvider", Lc = 700, vr = "tooltip.open", [Fc, zr] = Wt(sa), la = (e) => {
|
|
6274
6357
|
const {
|
|
6275
6358
|
__scopeTooltip: t,
|
|
6276
|
-
delayDuration: r =
|
|
6359
|
+
delayDuration: r = Lc,
|
|
6277
6360
|
skipDelayDuration: n = 300,
|
|
6278
6361
|
disableHoverableContent: o = !1,
|
|
6279
6362
|
children: a
|
|
@@ -6282,7 +6365,7 @@ var Nc = aa, [Wt, zu] = Er("Tooltip", [
|
|
|
6282
6365
|
const f = d.current;
|
|
6283
6366
|
return () => window.clearTimeout(f);
|
|
6284
6367
|
}, []), /* @__PURE__ */ v.jsx(
|
|
6285
|
-
|
|
6368
|
+
Fc,
|
|
6286
6369
|
{
|
|
6287
6370
|
scope: t,
|
|
6288
6371
|
isOpenDelayed: i,
|
|
@@ -6305,8 +6388,8 @@ var Nc = aa, [Wt, zu] = Er("Tooltip", [
|
|
|
6305
6388
|
}
|
|
6306
6389
|
);
|
|
6307
6390
|
};
|
|
6308
|
-
|
|
6309
|
-
var Vt = "Tooltip", [
|
|
6391
|
+
la.displayName = sa;
|
|
6392
|
+
var Vt = "Tooltip", [zc, dt] = Wt(Vt), ca = (e) => {
|
|
6310
6393
|
const {
|
|
6311
6394
|
__scopeTooltip: t,
|
|
6312
6395
|
children: r,
|
|
@@ -6315,7 +6398,7 @@ var Vt = "Tooltip", [Dc, dt] = Wt(Vt), la = (e) => {
|
|
|
6315
6398
|
onOpenChange: a,
|
|
6316
6399
|
disableHoverableContent: i,
|
|
6317
6400
|
delayDuration: s
|
|
6318
|
-
} = e, c = zr(Vt, e.__scopeTooltip), d = Bt(t), [f, p] = l.useState(null), h = Rt(), g = l.useRef(0), b = i ?? c.disableHoverableContent, m = s ?? c.delayDuration, y = l.useRef(!1), [x = !1, w] =
|
|
6401
|
+
} = e, c = zr(Vt, e.__scopeTooltip), d = Bt(t), [f, p] = l.useState(null), h = Rt(), g = l.useRef(0), b = i ?? c.disableHoverableContent, m = s ?? c.delayDuration, y = l.useRef(!1), [x = !1, w] = Yn({
|
|
6319
6402
|
prop: n,
|
|
6320
6403
|
defaultProp: o,
|
|
6321
6404
|
onChange: (T) => {
|
|
@@ -6332,8 +6415,8 @@ var Vt = "Tooltip", [Dc, dt] = Wt(Vt), la = (e) => {
|
|
|
6332
6415
|
}, [m, w]);
|
|
6333
6416
|
return l.useEffect(() => () => {
|
|
6334
6417
|
g.current && (window.clearTimeout(g.current), g.current = 0);
|
|
6335
|
-
}, []), /* @__PURE__ */ v.jsx(
|
|
6336
|
-
|
|
6418
|
+
}, []), /* @__PURE__ */ v.jsx(_c, { ...d, children: /* @__PURE__ */ v.jsx(
|
|
6419
|
+
zc,
|
|
6337
6420
|
{
|
|
6338
6421
|
scope: t,
|
|
6339
6422
|
contentId: h,
|
|
@@ -6354,11 +6437,11 @@ var Vt = "Tooltip", [Dc, dt] = Wt(Vt), la = (e) => {
|
|
|
6354
6437
|
}
|
|
6355
6438
|
) });
|
|
6356
6439
|
};
|
|
6357
|
-
|
|
6358
|
-
var br = "TooltipTrigger",
|
|
6440
|
+
ca.displayName = Vt;
|
|
6441
|
+
var br = "TooltipTrigger", ua = l.forwardRef(
|
|
6359
6442
|
(e, t) => {
|
|
6360
6443
|
const { __scopeTooltip: r, ...n } = e, o = dt(br, r), a = zr(br, r), i = Bt(r), s = l.useRef(null), c = ue(t, s, o.onTriggerChange), d = l.useRef(!1), f = l.useRef(!1), p = l.useCallback(() => d.current = !1, []);
|
|
6361
|
-
return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ v.jsx(
|
|
6444
|
+
return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ v.jsx(kc, { asChild: !0, ...i, children: /* @__PURE__ */ v.jsx(
|
|
6362
6445
|
te.button,
|
|
6363
6446
|
{
|
|
6364
6447
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -6383,25 +6466,25 @@ var br = "TooltipTrigger", ca = l.forwardRef(
|
|
|
6383
6466
|
) });
|
|
6384
6467
|
}
|
|
6385
6468
|
);
|
|
6386
|
-
|
|
6387
|
-
var $r = "TooltipPortal", [
|
|
6469
|
+
ua.displayName = br;
|
|
6470
|
+
var $r = "TooltipPortal", [$c, Wc] = Wt($r, {
|
|
6388
6471
|
forceMount: void 0
|
|
6389
|
-
}),
|
|
6472
|
+
}), da = (e) => {
|
|
6390
6473
|
const { __scopeTooltip: t, forceMount: r, children: n, container: o } = e, a = dt($r, t);
|
|
6391
|
-
return /* @__PURE__ */ v.jsx(
|
|
6474
|
+
return /* @__PURE__ */ v.jsx($c, { scope: t, forceMount: r, children: /* @__PURE__ */ v.jsx(rt, { present: r || a.open, children: /* @__PURE__ */ v.jsx(Rr, { asChild: !0, container: o, children: n }) }) });
|
|
6392
6475
|
};
|
|
6393
|
-
|
|
6394
|
-
var Qe = "TooltipContent",
|
|
6476
|
+
da.displayName = $r;
|
|
6477
|
+
var Qe = "TooltipContent", fa = l.forwardRef(
|
|
6395
6478
|
(e, t) => {
|
|
6396
|
-
const r =
|
|
6397
|
-
return /* @__PURE__ */ v.jsx(rt, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ v.jsx(
|
|
6479
|
+
const r = Wc(Qe, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = e, i = dt(Qe, e.__scopeTooltip);
|
|
6480
|
+
return /* @__PURE__ */ v.jsx(rt, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ v.jsx(pa, { side: o, ...a, ref: t }) : /* @__PURE__ */ v.jsx(Bc, { side: o, ...a, ref: t }) });
|
|
6398
6481
|
}
|
|
6399
|
-
),
|
|
6482
|
+
), Bc = l.forwardRef((e, t) => {
|
|
6400
6483
|
const r = dt(Qe, e.__scopeTooltip), n = zr(Qe, e.__scopeTooltip), o = l.useRef(null), a = ue(t, o), [i, s] = l.useState(null), { trigger: c, onClose: d } = r, f = o.current, { onPointerInTransitChange: p } = n, h = l.useCallback(() => {
|
|
6401
6484
|
s(null), p(!1);
|
|
6402
6485
|
}, [p]), g = l.useCallback(
|
|
6403
6486
|
(b, m) => {
|
|
6404
|
-
const y = b.currentTarget, x = { x: b.clientX, y: b.clientY }, w =
|
|
6487
|
+
const y = b.currentTarget, x = { x: b.clientX, y: b.clientY }, w = Uc(x, y.getBoundingClientRect()), R = Yc(x, w), S = Kc(m.getBoundingClientRect()), P = qc([...R, ...S]);
|
|
6405
6488
|
s(P), p(!0);
|
|
6406
6489
|
},
|
|
6407
6490
|
[p]
|
|
@@ -6416,13 +6499,13 @@ var Qe = "TooltipContent", da = l.forwardRef(
|
|
|
6416
6499
|
}, [c, f, g, h]), l.useEffect(() => {
|
|
6417
6500
|
if (i) {
|
|
6418
6501
|
const b = (m) => {
|
|
6419
|
-
const y = m.target, x = { x: m.clientX, y: m.clientY }, w = (c == null ? void 0 : c.contains(y)) || (f == null ? void 0 : f.contains(y)), R = !
|
|
6502
|
+
const y = m.target, x = { x: m.clientX, y: m.clientY }, w = (c == null ? void 0 : c.contains(y)) || (f == null ? void 0 : f.contains(y)), R = !Xc(x, i);
|
|
6420
6503
|
w ? h() : R && (h(), d());
|
|
6421
6504
|
};
|
|
6422
6505
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
6423
6506
|
}
|
|
6424
|
-
}, [c, f, i, d, h]), /* @__PURE__ */ v.jsx(
|
|
6425
|
-
}), [
|
|
6507
|
+
}, [c, f, i, d, h]), /* @__PURE__ */ v.jsx(pa, { ...e, ref: a });
|
|
6508
|
+
}), [Vc, Hc] = Wt(Vt, { isInside: !1 }), pa = l.forwardRef(
|
|
6426
6509
|
(e, t) => {
|
|
6427
6510
|
const {
|
|
6428
6511
|
__scopeTooltip: r,
|
|
@@ -6450,7 +6533,7 @@ var Qe = "TooltipContent", da = l.forwardRef(
|
|
|
6450
6533
|
onFocusOutside: (p) => p.preventDefault(),
|
|
6451
6534
|
onDismiss: f,
|
|
6452
6535
|
children: /* @__PURE__ */ v.jsxs(
|
|
6453
|
-
|
|
6536
|
+
Dc,
|
|
6454
6537
|
{
|
|
6455
6538
|
"data-state": c.stateAttribute,
|
|
6456
6539
|
...d,
|
|
@@ -6466,7 +6549,7 @@ var Qe = "TooltipContent", da = l.forwardRef(
|
|
|
6466
6549
|
},
|
|
6467
6550
|
children: [
|
|
6468
6551
|
/* @__PURE__ */ v.jsx(jn, { children: n }),
|
|
6469
|
-
/* @__PURE__ */ v.jsx(
|
|
6552
|
+
/* @__PURE__ */ v.jsx(Vc, { scope: r, isInside: !0, children: /* @__PURE__ */ v.jsx(Ic, { id: c.contentId, role: "tooltip", children: o || n }) })
|
|
6470
6553
|
]
|
|
6471
6554
|
}
|
|
6472
6555
|
)
|
|
@@ -6474,18 +6557,18 @@ var Qe = "TooltipContent", da = l.forwardRef(
|
|
|
6474
6557
|
);
|
|
6475
6558
|
}
|
|
6476
6559
|
);
|
|
6477
|
-
|
|
6478
|
-
var
|
|
6560
|
+
fa.displayName = Qe;
|
|
6561
|
+
var ma = "TooltipArrow", Gc = l.forwardRef(
|
|
6479
6562
|
(e, t) => {
|
|
6480
6563
|
const { __scopeTooltip: r, ...n } = e, o = Bt(r);
|
|
6481
|
-
return
|
|
6482
|
-
|
|
6564
|
+
return Hc(
|
|
6565
|
+
ma,
|
|
6483
6566
|
r
|
|
6484
|
-
).isInside ? null : /* @__PURE__ */ v.jsx(
|
|
6567
|
+
).isInside ? null : /* @__PURE__ */ v.jsx(Mc, { ...o, ...n, ref: t });
|
|
6485
6568
|
}
|
|
6486
6569
|
);
|
|
6487
|
-
|
|
6488
|
-
function
|
|
6570
|
+
Gc.displayName = ma;
|
|
6571
|
+
function Uc(e, t) {
|
|
6489
6572
|
const r = Math.abs(t.top - e.y), n = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
6490
6573
|
switch (Math.min(r, n, o, a)) {
|
|
6491
6574
|
case a:
|
|
@@ -6500,7 +6583,7 @@ function $c(e, t) {
|
|
|
6500
6583
|
throw new Error("unreachable");
|
|
6501
6584
|
}
|
|
6502
6585
|
}
|
|
6503
|
-
function
|
|
6586
|
+
function Yc(e, t, r = 5) {
|
|
6504
6587
|
const n = [];
|
|
6505
6588
|
switch (t) {
|
|
6506
6589
|
case "top":
|
|
@@ -6530,7 +6613,7 @@ function Wc(e, t, r = 5) {
|
|
|
6530
6613
|
}
|
|
6531
6614
|
return n;
|
|
6532
6615
|
}
|
|
6533
|
-
function
|
|
6616
|
+
function Kc(e) {
|
|
6534
6617
|
const { top: t, right: r, bottom: n, left: o } = e;
|
|
6535
6618
|
return [
|
|
6536
6619
|
{ x: o, y: t },
|
|
@@ -6539,7 +6622,7 @@ function Bc(e) {
|
|
|
6539
6622
|
{ x: o, y: n }
|
|
6540
6623
|
];
|
|
6541
6624
|
}
|
|
6542
|
-
function
|
|
6625
|
+
function Xc(e, t) {
|
|
6543
6626
|
const { x: r, y: n } = e;
|
|
6544
6627
|
let o = !1;
|
|
6545
6628
|
for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
|
|
@@ -6548,11 +6631,11 @@ function Vc(e, t) {
|
|
|
6548
6631
|
}
|
|
6549
6632
|
return o;
|
|
6550
6633
|
}
|
|
6551
|
-
function
|
|
6634
|
+
function qc(e) {
|
|
6552
6635
|
const t = e.slice();
|
|
6553
|
-
return t.sort((r, n) => r.x < n.x ? -1 : r.x > n.x ? 1 : r.y < n.y ? -1 : r.y > n.y ? 1 : 0),
|
|
6636
|
+
return t.sort((r, n) => r.x < n.x ? -1 : r.x > n.x ? 1 : r.y < n.y ? -1 : r.y > n.y ? 1 : 0), Jc(t);
|
|
6554
6637
|
}
|
|
6555
|
-
function
|
|
6638
|
+
function Jc(e) {
|
|
6556
6639
|
if (e.length <= 1) return e.slice();
|
|
6557
6640
|
const t = [];
|
|
6558
6641
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -6577,9 +6660,9 @@ function Gc(e) {
|
|
|
6577
6660
|
}
|
|
6578
6661
|
return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
|
|
6579
6662
|
}
|
|
6580
|
-
var
|
|
6581
|
-
const
|
|
6582
|
-
|
|
6663
|
+
var Zc = la, Qc = ca, eu = ua, tu = da, ga = fa;
|
|
6664
|
+
const ru = Zc, nu = Qc, ou = eu, ha = l.forwardRef(({ className: e, sideOffset: t = 4, ...r }, n) => /* @__PURE__ */ v.jsx(tu, { children: /* @__PURE__ */ v.jsx(
|
|
6665
|
+
ga,
|
|
6583
6666
|
{
|
|
6584
6667
|
ref: n,
|
|
6585
6668
|
sideOffset: t,
|
|
@@ -6590,15 +6673,15 @@ const qc = Uc, Jc = Yc, Zc = Kc, ga = l.forwardRef(({ className: e, sideOffset:
|
|
|
6590
6673
|
...r
|
|
6591
6674
|
}
|
|
6592
6675
|
) }));
|
|
6593
|
-
|
|
6594
|
-
const
|
|
6676
|
+
ha.displayName = ga.displayName;
|
|
6677
|
+
const au = "sidebar_state", iu = 60 * 60 * 24 * 7, su = "16rem", lu = "18rem", cu = "3rem", uu = "b", va = l.createContext(null);
|
|
6595
6678
|
function Ht() {
|
|
6596
|
-
const e = l.useContext(
|
|
6679
|
+
const e = l.useContext(va);
|
|
6597
6680
|
if (!e)
|
|
6598
6681
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
6599
6682
|
return e;
|
|
6600
6683
|
}
|
|
6601
|
-
const
|
|
6684
|
+
const du = l.forwardRef(
|
|
6602
6685
|
({
|
|
6603
6686
|
defaultOpen: e = !0,
|
|
6604
6687
|
open: t,
|
|
@@ -6608,16 +6691,16 @@ const au = l.forwardRef(
|
|
|
6608
6691
|
children: a,
|
|
6609
6692
|
...i
|
|
6610
6693
|
}, s) => {
|
|
6611
|
-
const c =
|
|
6694
|
+
const c = bl(), [d, f] = l.useState(!1), [p, h] = l.useState(e), g = t ?? p, b = l.useCallback(
|
|
6612
6695
|
(w) => {
|
|
6613
6696
|
const R = typeof w == "function" ? w(g) : w;
|
|
6614
|
-
r ? r(R) : h(R), document.cookie = `${
|
|
6697
|
+
r ? r(R) : h(R), document.cookie = `${au}=${R}; path=/; max-age=${iu}`;
|
|
6615
6698
|
},
|
|
6616
6699
|
[r, g]
|
|
6617
6700
|
), m = l.useCallback(() => c ? f((w) => !w) : b((w) => !w), [c, b, f]);
|
|
6618
6701
|
l.useEffect(() => {
|
|
6619
6702
|
const w = (R) => {
|
|
6620
|
-
R.key ===
|
|
6703
|
+
R.key === uu && (R.metaKey || R.ctrlKey) && (R.preventDefault(), m());
|
|
6621
6704
|
};
|
|
6622
6705
|
return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
|
|
6623
6706
|
}, [m]);
|
|
@@ -6633,12 +6716,12 @@ const au = l.forwardRef(
|
|
|
6633
6716
|
}),
|
|
6634
6717
|
[y, g, b, c, d, f, m]
|
|
6635
6718
|
);
|
|
6636
|
-
return /* @__PURE__ */ v.jsx(
|
|
6719
|
+
return /* @__PURE__ */ v.jsx(va.Provider, { value: x, children: /* @__PURE__ */ v.jsx(ru, { delayDuration: 0, children: /* @__PURE__ */ v.jsx(
|
|
6637
6720
|
"div",
|
|
6638
6721
|
{
|
|
6639
6722
|
style: {
|
|
6640
|
-
"--sidebar-width":
|
|
6641
|
-
"--sidebar-width-icon":
|
|
6723
|
+
"--sidebar-width": su,
|
|
6724
|
+
"--sidebar-width-icon": cu,
|
|
6642
6725
|
...o
|
|
6643
6726
|
},
|
|
6644
6727
|
className: M(
|
|
@@ -6652,8 +6735,8 @@ const au = l.forwardRef(
|
|
|
6652
6735
|
) }) });
|
|
6653
6736
|
}
|
|
6654
6737
|
);
|
|
6655
|
-
|
|
6656
|
-
const
|
|
6738
|
+
du.displayName = "SidebarProvider";
|
|
6739
|
+
const fu = l.forwardRef(
|
|
6657
6740
|
({
|
|
6658
6741
|
side: e = "left",
|
|
6659
6742
|
variant: t = "sidebar",
|
|
@@ -6674,20 +6757,20 @@ const iu = l.forwardRef(
|
|
|
6674
6757
|
...a,
|
|
6675
6758
|
children: o
|
|
6676
6759
|
}
|
|
6677
|
-
) : s ? /* @__PURE__ */ v.jsx(
|
|
6678
|
-
|
|
6760
|
+
) : s ? /* @__PURE__ */ v.jsx(El, { open: d, onOpenChange: f, ...a, children: /* @__PURE__ */ v.jsxs(
|
|
6761
|
+
jo,
|
|
6679
6762
|
{
|
|
6680
6763
|
"data-sidebar": "sidebar",
|
|
6681
6764
|
"data-mobile": "true",
|
|
6682
6765
|
className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
6683
6766
|
style: {
|
|
6684
|
-
"--sidebar-width":
|
|
6767
|
+
"--sidebar-width": lu
|
|
6685
6768
|
},
|
|
6686
6769
|
side: e,
|
|
6687
6770
|
children: [
|
|
6688
|
-
/* @__PURE__ */ v.jsxs(
|
|
6689
|
-
/* @__PURE__ */ v.jsx(
|
|
6690
|
-
/* @__PURE__ */ v.jsx(
|
|
6771
|
+
/* @__PURE__ */ v.jsxs(Io, { className: "sr-only", children: [
|
|
6772
|
+
/* @__PURE__ */ v.jsx(Lo, { children: "Sidebar" }),
|
|
6773
|
+
/* @__PURE__ */ v.jsx(Fo, { children: "Displays the mobile sidebar." })
|
|
6691
6774
|
] }),
|
|
6692
6775
|
/* @__PURE__ */ v.jsx("div", { className: "flex h-full w-full flex-col", children: o })
|
|
6693
6776
|
]
|
|
@@ -6739,8 +6822,8 @@ const iu = l.forwardRef(
|
|
|
6739
6822
|
);
|
|
6740
6823
|
}
|
|
6741
6824
|
);
|
|
6742
|
-
|
|
6743
|
-
const
|
|
6825
|
+
fu.displayName = "Sidebar";
|
|
6826
|
+
const pu = l.forwardRef(({ className: e, onClick: t, ...r }, n) => {
|
|
6744
6827
|
const { toggleSidebar: o } = Ht();
|
|
6745
6828
|
return /* @__PURE__ */ v.jsxs(
|
|
6746
6829
|
Un,
|
|
@@ -6755,14 +6838,14 @@ const su = l.forwardRef(({ className: e, onClick: t, ...r }, n) => {
|
|
|
6755
6838
|
},
|
|
6756
6839
|
...r,
|
|
6757
6840
|
children: [
|
|
6758
|
-
/* @__PURE__ */ v.jsx(
|
|
6841
|
+
/* @__PURE__ */ v.jsx(ul, {}),
|
|
6759
6842
|
/* @__PURE__ */ v.jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
6760
6843
|
]
|
|
6761
6844
|
}
|
|
6762
6845
|
);
|
|
6763
6846
|
});
|
|
6764
|
-
|
|
6765
|
-
const
|
|
6847
|
+
pu.displayName = "SidebarTrigger";
|
|
6848
|
+
const mu = l.forwardRef(({ className: e, ...t }, r) => {
|
|
6766
6849
|
const { toggleSidebar: n } = Ht();
|
|
6767
6850
|
return /* @__PURE__ */ v.jsx(
|
|
6768
6851
|
"button",
|
|
@@ -6786,8 +6869,8 @@ const lu = l.forwardRef(({ className: e, ...t }, r) => {
|
|
|
6786
6869
|
}
|
|
6787
6870
|
);
|
|
6788
6871
|
});
|
|
6789
|
-
|
|
6790
|
-
const
|
|
6872
|
+
mu.displayName = "SidebarRail";
|
|
6873
|
+
const gu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6791
6874
|
"main",
|
|
6792
6875
|
{
|
|
6793
6876
|
ref: r,
|
|
@@ -6799,9 +6882,9 @@ const cu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6799
6882
|
...t
|
|
6800
6883
|
}
|
|
6801
6884
|
));
|
|
6802
|
-
|
|
6803
|
-
const
|
|
6804
|
-
|
|
6885
|
+
gu.displayName = "SidebarInset";
|
|
6886
|
+
const hu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6887
|
+
No,
|
|
6805
6888
|
{
|
|
6806
6889
|
ref: r,
|
|
6807
6890
|
"data-sidebar": "input",
|
|
@@ -6812,8 +6895,8 @@ const uu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6812
6895
|
...t
|
|
6813
6896
|
}
|
|
6814
6897
|
));
|
|
6815
|
-
|
|
6816
|
-
const
|
|
6898
|
+
hu.displayName = "SidebarInput";
|
|
6899
|
+
const vu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6817
6900
|
"div",
|
|
6818
6901
|
{
|
|
6819
6902
|
ref: r,
|
|
@@ -6822,8 +6905,8 @@ const du = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6822
6905
|
...t
|
|
6823
6906
|
}
|
|
6824
6907
|
));
|
|
6825
|
-
|
|
6826
|
-
const
|
|
6908
|
+
vu.displayName = "SidebarHeader";
|
|
6909
|
+
const bu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6827
6910
|
"div",
|
|
6828
6911
|
{
|
|
6829
6912
|
ref: r,
|
|
@@ -6832,9 +6915,9 @@ const fu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6832
6915
|
...t
|
|
6833
6916
|
}
|
|
6834
6917
|
));
|
|
6835
|
-
|
|
6836
|
-
const
|
|
6837
|
-
|
|
6918
|
+
bu.displayName = "SidebarFooter";
|
|
6919
|
+
const yu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6920
|
+
Do,
|
|
6838
6921
|
{
|
|
6839
6922
|
ref: r,
|
|
6840
6923
|
"data-sidebar": "separator",
|
|
@@ -6842,8 +6925,8 @@ const pu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6842
6925
|
...t
|
|
6843
6926
|
}
|
|
6844
6927
|
));
|
|
6845
|
-
|
|
6846
|
-
const
|
|
6928
|
+
yu.displayName = "SidebarSeparator";
|
|
6929
|
+
const xu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6847
6930
|
"div",
|
|
6848
6931
|
{
|
|
6849
6932
|
ref: r,
|
|
@@ -6855,8 +6938,8 @@ const mu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6855
6938
|
...t
|
|
6856
6939
|
}
|
|
6857
6940
|
));
|
|
6858
|
-
|
|
6859
|
-
const
|
|
6941
|
+
xu.displayName = "SidebarContent";
|
|
6942
|
+
const wu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6860
6943
|
"div",
|
|
6861
6944
|
{
|
|
6862
6945
|
ref: r,
|
|
@@ -6865,8 +6948,8 @@ const gu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6865
6948
|
...t
|
|
6866
6949
|
}
|
|
6867
6950
|
));
|
|
6868
|
-
|
|
6869
|
-
const
|
|
6951
|
+
wu.displayName = "SidebarGroup";
|
|
6952
|
+
const Eu = l.forwardRef(({ className: e, asChild: t = !1, ...r }, n) => {
|
|
6870
6953
|
const o = t ? we : "div";
|
|
6871
6954
|
return /* @__PURE__ */ v.jsx(
|
|
6872
6955
|
o,
|
|
@@ -6882,8 +6965,8 @@ const hu = l.forwardRef(({ className: e, asChild: t = !1, ...r }, n) => {
|
|
|
6882
6965
|
}
|
|
6883
6966
|
);
|
|
6884
6967
|
});
|
|
6885
|
-
|
|
6886
|
-
const
|
|
6968
|
+
Eu.displayName = "SidebarGroupLabel";
|
|
6969
|
+
const Cu = l.forwardRef(({ className: e, asChild: t = !1, ...r }, n) => {
|
|
6887
6970
|
const o = t ? we : "button";
|
|
6888
6971
|
return /* @__PURE__ */ v.jsx(
|
|
6889
6972
|
o,
|
|
@@ -6901,8 +6984,8 @@ const vu = l.forwardRef(({ className: e, asChild: t = !1, ...r }, n) => {
|
|
|
6901
6984
|
}
|
|
6902
6985
|
);
|
|
6903
6986
|
});
|
|
6904
|
-
|
|
6905
|
-
const
|
|
6987
|
+
Cu.displayName = "SidebarGroupAction";
|
|
6988
|
+
const Ru = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6906
6989
|
"div",
|
|
6907
6990
|
{
|
|
6908
6991
|
ref: r,
|
|
@@ -6911,8 +6994,8 @@ const bu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6911
6994
|
...t
|
|
6912
6995
|
}
|
|
6913
6996
|
));
|
|
6914
|
-
|
|
6915
|
-
const
|
|
6997
|
+
Ru.displayName = "SidebarGroupContent";
|
|
6998
|
+
const Su = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6916
6999
|
"ul",
|
|
6917
7000
|
{
|
|
6918
7001
|
ref: r,
|
|
@@ -6921,8 +7004,8 @@ const yu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6921
7004
|
...t
|
|
6922
7005
|
}
|
|
6923
7006
|
));
|
|
6924
|
-
|
|
6925
|
-
const
|
|
7007
|
+
Su.displayName = "SidebarMenu";
|
|
7008
|
+
const Pu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
6926
7009
|
"li",
|
|
6927
7010
|
{
|
|
6928
7011
|
ref: r,
|
|
@@ -6931,8 +7014,8 @@ const xu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
6931
7014
|
...t
|
|
6932
7015
|
}
|
|
6933
7016
|
));
|
|
6934
|
-
|
|
6935
|
-
const
|
|
7017
|
+
Pu.displayName = "SidebarMenuItem";
|
|
7018
|
+
const Au = yr(
|
|
6936
7019
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
6937
7020
|
{
|
|
6938
7021
|
variants: {
|
|
@@ -6951,7 +7034,7 @@ const wu = yr(
|
|
|
6951
7034
|
size: "default"
|
|
6952
7035
|
}
|
|
6953
7036
|
}
|
|
6954
|
-
),
|
|
7037
|
+
), Tu = l.forwardRef(
|
|
6955
7038
|
({
|
|
6956
7039
|
asChild: e = !1,
|
|
6957
7040
|
isActive: t = !1,
|
|
@@ -6968,16 +7051,16 @@ const wu = yr(
|
|
|
6968
7051
|
"data-sidebar": "menu-button",
|
|
6969
7052
|
"data-size": n,
|
|
6970
7053
|
"data-active": t,
|
|
6971
|
-
className: M(
|
|
7054
|
+
className: M(Au({ variant: r, size: n }), a),
|
|
6972
7055
|
...i
|
|
6973
7056
|
}
|
|
6974
7057
|
);
|
|
6975
7058
|
return o ? (typeof o == "string" && (o = {
|
|
6976
7059
|
children: o
|
|
6977
|
-
}), /* @__PURE__ */ v.jsxs(
|
|
6978
|
-
/* @__PURE__ */ v.jsx(
|
|
7060
|
+
}), /* @__PURE__ */ v.jsxs(nu, { children: [
|
|
7061
|
+
/* @__PURE__ */ v.jsx(ou, { asChild: !0, children: p }),
|
|
6979
7062
|
/* @__PURE__ */ v.jsx(
|
|
6980
|
-
|
|
7063
|
+
ha,
|
|
6981
7064
|
{
|
|
6982
7065
|
side: "right",
|
|
6983
7066
|
align: "center",
|
|
@@ -6988,8 +7071,8 @@ const wu = yr(
|
|
|
6988
7071
|
] })) : p;
|
|
6989
7072
|
}
|
|
6990
7073
|
);
|
|
6991
|
-
|
|
6992
|
-
const
|
|
7074
|
+
Tu.displayName = "SidebarMenuButton";
|
|
7075
|
+
const Ou = l.forwardRef(({ className: e, asChild: t = !1, showOnHover: r = !1, ...n }, o) => {
|
|
6993
7076
|
const a = t ? we : "button";
|
|
6994
7077
|
return /* @__PURE__ */ v.jsx(
|
|
6995
7078
|
a,
|
|
@@ -7011,8 +7094,8 @@ const Cu = l.forwardRef(({ className: e, asChild: t = !1, showOnHover: r = !1, .
|
|
|
7011
7094
|
}
|
|
7012
7095
|
);
|
|
7013
7096
|
});
|
|
7014
|
-
|
|
7015
|
-
const
|
|
7097
|
+
Ou.displayName = "SidebarMenuAction";
|
|
7098
|
+
const Nu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
7016
7099
|
"div",
|
|
7017
7100
|
{
|
|
7018
7101
|
ref: r,
|
|
@@ -7029,8 +7112,8 @@ const Ru = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
7029
7112
|
...t
|
|
7030
7113
|
}
|
|
7031
7114
|
));
|
|
7032
|
-
|
|
7033
|
-
const
|
|
7115
|
+
Nu.displayName = "SidebarMenuBadge";
|
|
7116
|
+
const _u = l.forwardRef(({ className: e, showIcon: t = !1, ...r }, n) => {
|
|
7034
7117
|
const o = l.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
7035
7118
|
return /* @__PURE__ */ v.jsxs(
|
|
7036
7119
|
"div",
|
|
@@ -7061,8 +7144,8 @@ const Su = l.forwardRef(({ className: e, showIcon: t = !1, ...r }, n) => {
|
|
|
7061
7144
|
}
|
|
7062
7145
|
);
|
|
7063
7146
|
});
|
|
7064
|
-
|
|
7065
|
-
const
|
|
7147
|
+
_u.displayName = "SidebarMenuSkeleton";
|
|
7148
|
+
const ku = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
7066
7149
|
"ul",
|
|
7067
7150
|
{
|
|
7068
7151
|
ref: r,
|
|
@@ -7075,10 +7158,10 @@ const Pu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
|
7075
7158
|
...t
|
|
7076
7159
|
}
|
|
7077
7160
|
));
|
|
7078
|
-
|
|
7079
|
-
const
|
|
7080
|
-
|
|
7081
|
-
const
|
|
7161
|
+
ku.displayName = "SidebarMenuSub";
|
|
7162
|
+
const Du = l.forwardRef(({ ...e }, t) => /* @__PURE__ */ v.jsx("li", { ref: t, ...e }));
|
|
7163
|
+
Du.displayName = "SidebarMenuSubItem";
|
|
7164
|
+
const Mu = l.forwardRef(({ asChild: e = !1, size: t = "md", isActive: r, className: n, ...o }, a) => {
|
|
7082
7165
|
const i = e ? we : "a";
|
|
7083
7166
|
return /* @__PURE__ */ v.jsx(
|
|
7084
7167
|
i,
|
|
@@ -7099,102 +7182,41 @@ const Tu = l.forwardRef(({ asChild: e = !1, size: t = "md", isActive: r, classNa
|
|
|
7099
7182
|
}
|
|
7100
7183
|
);
|
|
7101
7184
|
});
|
|
7102
|
-
|
|
7103
|
-
const $u = _o, Wu = gl, Ou = ko, Bu = Or, va = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
7104
|
-
Mt,
|
|
7105
|
-
{
|
|
7106
|
-
ref: r,
|
|
7107
|
-
className: M(
|
|
7108
|
-
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
7109
|
-
e
|
|
7110
|
-
),
|
|
7111
|
-
...t
|
|
7112
|
-
}
|
|
7113
|
-
));
|
|
7114
|
-
va.displayName = Mt.displayName;
|
|
7115
|
-
const Nu = l.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ v.jsxs(Ou, { children: [
|
|
7116
|
-
/* @__PURE__ */ v.jsx(va, {}),
|
|
7117
|
-
/* @__PURE__ */ v.jsxs(
|
|
7118
|
-
jt,
|
|
7119
|
-
{
|
|
7120
|
-
ref: n,
|
|
7121
|
-
className: M(
|
|
7122
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
7123
|
-
e
|
|
7124
|
-
),
|
|
7125
|
-
...r,
|
|
7126
|
-
children: [
|
|
7127
|
-
t,
|
|
7128
|
-
/* @__PURE__ */ v.jsxs(Or, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
7129
|
-
/* @__PURE__ */ v.jsx(Xn, { className: "h-4 w-4" }),
|
|
7130
|
-
/* @__PURE__ */ v.jsx("span", { className: "sr-only", children: "Close" })
|
|
7131
|
-
] })
|
|
7132
|
-
]
|
|
7133
|
-
}
|
|
7134
|
-
)
|
|
7135
|
-
] }));
|
|
7136
|
-
Nu.displayName = jt.displayName;
|
|
7137
|
-
const _u = ({
|
|
7138
|
-
className: e,
|
|
7139
|
-
...t
|
|
7140
|
-
}) => /* @__PURE__ */ v.jsx(
|
|
7141
|
-
"div",
|
|
7142
|
-
{
|
|
7143
|
-
className: M(
|
|
7144
|
-
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
7145
|
-
e
|
|
7146
|
-
),
|
|
7147
|
-
...t
|
|
7148
|
-
}
|
|
7149
|
-
);
|
|
7150
|
-
_u.displayName = "DialogHeader";
|
|
7151
|
-
const ku = ({
|
|
7152
|
-
className: e,
|
|
7153
|
-
...t
|
|
7154
|
-
}) => /* @__PURE__ */ v.jsx(
|
|
7155
|
-
"div",
|
|
7156
|
-
{
|
|
7157
|
-
className: M(
|
|
7158
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
7159
|
-
e
|
|
7160
|
-
),
|
|
7161
|
-
...t
|
|
7162
|
-
}
|
|
7163
|
-
);
|
|
7164
|
-
ku.displayName = "DialogFooter";
|
|
7165
|
-
const Du = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
7166
|
-
It,
|
|
7167
|
-
{
|
|
7168
|
-
ref: r,
|
|
7169
|
-
className: M(
|
|
7170
|
-
"text-lg font-semibold leading-none tracking-tight",
|
|
7171
|
-
e
|
|
7172
|
-
),
|
|
7173
|
-
...t
|
|
7174
|
-
}
|
|
7175
|
-
));
|
|
7176
|
-
Du.displayName = It.displayName;
|
|
7177
|
-
const Mu = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ v.jsx(
|
|
7178
|
-
Lt,
|
|
7179
|
-
{
|
|
7180
|
-
ref: r,
|
|
7181
|
-
className: M("text-sm text-muted-foreground", e),
|
|
7182
|
-
...t
|
|
7183
|
-
}
|
|
7184
|
-
));
|
|
7185
|
-
Mu.displayName = Lt.displayName;
|
|
7185
|
+
Mu.displayName = "SidebarMenuSubButton";
|
|
7186
7186
|
export {
|
|
7187
7187
|
Un as Button,
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7188
|
+
zu as Dialog,
|
|
7189
|
+
Wu as DialogClose,
|
|
7190
|
+
pl as DialogContent,
|
|
7191
|
+
vl as DialogDescription,
|
|
7192
|
+
gl as DialogFooter,
|
|
7193
|
+
ml as DialogHeader,
|
|
7194
|
+
Oo as DialogOverlay,
|
|
7195
|
+
fl as DialogPortal,
|
|
7196
|
+
hl as DialogTitle,
|
|
7197
|
+
$u as DialogTrigger,
|
|
7198
|
+
fu as Sidebar,
|
|
7199
|
+
xu as SidebarContent,
|
|
7200
|
+
bu as SidebarFooter,
|
|
7201
|
+
wu as SidebarGroup,
|
|
7202
|
+
Cu as SidebarGroupAction,
|
|
7203
|
+
Ru as SidebarGroupContent,
|
|
7204
|
+
Eu as SidebarGroupLabel,
|
|
7205
|
+
vu as SidebarHeader,
|
|
7206
|
+
hu as SidebarInput,
|
|
7207
|
+
gu as SidebarInset,
|
|
7208
|
+
Su as SidebarMenu,
|
|
7209
|
+
Ou as SidebarMenuAction,
|
|
7210
|
+
Nu as SidebarMenuBadge,
|
|
7211
|
+
Tu as SidebarMenuButton,
|
|
7212
|
+
Pu as SidebarMenuItem,
|
|
7213
|
+
_u as SidebarMenuSkeleton,
|
|
7214
|
+
ku as SidebarMenuSub,
|
|
7215
|
+
Mu as SidebarMenuSubButton,
|
|
7216
|
+
Du as SidebarMenuSubItem,
|
|
7217
|
+
du as SidebarProvider,
|
|
7218
|
+
mu as SidebarRail,
|
|
7219
|
+
yu as SidebarSeparator,
|
|
7220
|
+
pu as SidebarTrigger,
|
|
7221
|
+
Ht as useSidebar
|
|
7200
7222
|
};
|