lizaui 3.0.51 → 3.0.53
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/calendar/index.cjs.js +1 -1
- package/dist/calendar/index.es.js +1 -1
- package/dist/chunks/index-32mPyHbg.js +65 -0
- package/dist/chunks/index-32mPyHbg.js.map +1 -0
- package/dist/chunks/index-BNmRGtA6.js +35 -0
- package/dist/chunks/index-BNmRGtA6.js.map +1 -0
- package/dist/chunks/{index-16iPHlf0.js → index-DALlpGON.js} +1122 -1151
- package/dist/chunks/index-DALlpGON.js.map +1 -0
- package/dist/chunks/index-DCbyaYR7.js +2 -0
- package/dist/chunks/index-DCbyaYR7.js.map +1 -0
- package/dist/chunks/label-error-8p4Smomu.js +2 -0
- package/dist/chunks/{label-error-noAu6DKg.js.map → label-error-8p4Smomu.js.map} +1 -1
- package/dist/chunks/label-error-D2dOTiDS.js +10 -0
- package/dist/chunks/{label-error-DwHE_f3w.js.map → label-error-D2dOTiDS.js.map} +1 -1
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/modal/modal.type.d.ts +6 -2
- package/dist/components/modal/modal.type.d.ts.map +1 -1
- package/dist/modal/index.cjs.js +1 -1
- package/dist/modal/index.cjs.js.map +1 -1
- package/dist/modal/index.es.js +145 -59
- package/dist/modal/index.es.js.map +1 -1
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.es.js +1 -1
- package/dist/select-input/index.cjs.js +1 -1
- package/dist/select-input/index.es.js +1 -1
- package/dist/ui/index.cjs.js +3 -3
- package/dist/ui/index.cjs.js.map +1 -1
- package/dist/ui/index.es.js +243 -242
- package/dist/ui/index.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/index-16iPHlf0.js.map +0 -1
- package/dist/chunks/index-CMmK7lyb.js +0 -65
- package/dist/chunks/index-CMmK7lyb.js.map +0 -1
- package/dist/chunks/label-error-DwHE_f3w.js +0 -10
- package/dist/chunks/label-error-noAu6DKg.js +0 -2
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { j as p } from "./jsx-runtime-BYq8_R6m.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import je, { useId as
|
|
3
|
+
import je, { useId as Wo, useState as De, useEffect as _e, forwardRef as Et, createElement as Ne, createContext as Vo, useContext as Kn, useRef as he, useLayoutEffect as Uo, useImperativeHandle as Xn, useCallback as me, useMemo as Go } from "react";
|
|
4
4
|
import { c as oe } from "./variants-DhZQjbsQ.js";
|
|
5
|
-
import { t as
|
|
5
|
+
import { t as Ko } from "./tv-ButAo3dF.js";
|
|
6
|
+
import { c as Yn } from "./index-BNmRGtA6.js";
|
|
6
7
|
import { t as Ee } from "./bundle-mjs-kGHm2Pod.js";
|
|
7
8
|
import { c as ce } from "./utils-DF-FHKXF.js";
|
|
8
|
-
import { c as
|
|
9
|
-
import { v as
|
|
9
|
+
import { c as Ze } from "./clsx-OuTLNxxd.js";
|
|
10
|
+
import { v as Xo } from "./pattern-CdQavADx.js";
|
|
10
11
|
import "./assertion-CrT8p68K.js";
|
|
11
|
-
import { L as
|
|
12
|
+
import { L as qn } from "./label-error-D2dOTiDS.js";
|
|
12
13
|
import { m as Lt } from "./proxy-gd0H-9gQ.js";
|
|
13
14
|
import { a as it, u as ie } from "./index-ctnzfHek.js";
|
|
14
|
-
import { B as
|
|
15
|
-
import { A as
|
|
15
|
+
import { B as Yo } from "./button-CT1gzAt1.js";
|
|
16
|
+
import { A as qo } from "./ripple-DV2Gx-M9.js";
|
|
16
17
|
import * as an from "react-dom";
|
|
17
|
-
import
|
|
18
|
-
import { u as
|
|
19
|
-
import { q as
|
|
20
|
-
const
|
|
18
|
+
import Zo from "react-dom";
|
|
19
|
+
import { u as Jo, o as Qo, s as ea, f as ta, b as na, a as ra, h as oa, l as aa } from "./floating-ui.react-dom-CryFonyk.js";
|
|
20
|
+
import { q as sa } from "./floating-ui.dom-Cg-kYEhk.js";
|
|
21
|
+
const ia = Ko({
|
|
21
22
|
slots: {
|
|
22
23
|
base: ["relative", "inline-flex", "shrink-0"],
|
|
23
24
|
badge: [
|
|
@@ -392,15 +393,15 @@ const ca = Yo({
|
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
]
|
|
395
|
-
}),
|
|
396
|
-
({ className: e, variant: t, size: n, color: r, children: a, content: o, shape: i, placement: s, ...c },
|
|
397
|
-
const { base: h, badge: m } =
|
|
396
|
+
}), uc = l.forwardRef(
|
|
397
|
+
({ className: e, variant: t, size: n, color: r, children: a, content: o, shape: i, placement: s, ...c }, d) => {
|
|
398
|
+
const { base: h, badge: m } = ia({ variant: t, size: n, color: r, shape: i, placement: s });
|
|
398
399
|
return /* @__PURE__ */ p.jsxs("div", { className: h(), children: [
|
|
399
400
|
a,
|
|
400
401
|
/* @__PURE__ */ p.jsx(
|
|
401
402
|
"span",
|
|
402
403
|
{
|
|
403
|
-
ref:
|
|
404
|
+
ref: d,
|
|
404
405
|
className: m({ class: e }),
|
|
405
406
|
...c,
|
|
406
407
|
children: o
|
|
@@ -408,36 +409,7 @@ const ca = Yo({
|
|
|
408
409
|
)
|
|
409
410
|
] });
|
|
410
411
|
}
|
|
411
|
-
),
|
|
412
|
-
var r;
|
|
413
|
-
if ((t == null ? void 0 : t.variants) == null) return Pn(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
414
|
-
const { variants: a, defaultVariants: o } = t, i = Object.keys(a).map((u) => {
|
|
415
|
-
const h = n == null ? void 0 : n[u], m = o == null ? void 0 : o[u];
|
|
416
|
-
if (h === null) return null;
|
|
417
|
-
const f = En(h) || En(m);
|
|
418
|
-
return a[u][f];
|
|
419
|
-
}), s = n && Object.entries(n).reduce((u, h) => {
|
|
420
|
-
let [m, f] = h;
|
|
421
|
-
return f === void 0 || (u[m] = f), u;
|
|
422
|
-
}, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, h) => {
|
|
423
|
-
let { class: m, className: f, ...x } = h;
|
|
424
|
-
return Object.entries(x).every((b) => {
|
|
425
|
-
let [d, v] = b;
|
|
426
|
-
return Array.isArray(v) ? v.includes({
|
|
427
|
-
...o,
|
|
428
|
-
...s
|
|
429
|
-
}[d]) : {
|
|
430
|
-
...o,
|
|
431
|
-
...s
|
|
432
|
-
}[d] === v;
|
|
433
|
-
}) ? [
|
|
434
|
-
...u,
|
|
435
|
-
m,
|
|
436
|
-
f
|
|
437
|
-
] : u;
|
|
438
|
-
}, []);
|
|
439
|
-
return Pn(e, i, c, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
440
|
-
}, ua = Jn(
|
|
412
|
+
), la = Yn(
|
|
441
413
|
[
|
|
442
414
|
"bg-white",
|
|
443
415
|
"transition duration-250 ease appearance-none file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 border px-3 py-1 text-base transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm focus-visible:border-primary focus-visible:ring-primary/20 focus-visible:ring-[3px] aria-invalid:ring-danger/20 dark:aria-invalid:ring-danger/40 font-normal aria-invalid:border-danger"
|
|
@@ -461,7 +433,7 @@ const ca = Yo({
|
|
|
461
433
|
radius: "md"
|
|
462
434
|
}
|
|
463
435
|
}
|
|
464
|
-
),
|
|
436
|
+
), ca = l.forwardRef((e, t) => {
|
|
465
437
|
const {
|
|
466
438
|
id: n,
|
|
467
439
|
type: r = "text",
|
|
@@ -470,32 +442,32 @@ const ca = Yo({
|
|
|
470
442
|
className: i,
|
|
471
443
|
classNameContainer: s,
|
|
472
444
|
startClassName: c,
|
|
473
|
-
endClassName:
|
|
445
|
+
endClassName: d,
|
|
474
446
|
size: h,
|
|
475
447
|
radius: m,
|
|
476
448
|
startContent: f,
|
|
477
|
-
endContent:
|
|
449
|
+
endContent: y,
|
|
478
450
|
disabled: b,
|
|
479
|
-
error:
|
|
480
|
-
touched:
|
|
481
|
-
pattern:
|
|
482
|
-
isErrorText:
|
|
451
|
+
error: u,
|
|
452
|
+
touched: g,
|
|
453
|
+
pattern: v,
|
|
454
|
+
isErrorText: x = !0,
|
|
483
455
|
label: w,
|
|
484
456
|
required: E = !1,
|
|
485
457
|
isClearable: M = !1,
|
|
486
458
|
onChange: I,
|
|
487
459
|
onClear: C,
|
|
488
460
|
...B
|
|
489
|
-
} = e, _ = l.useId(), H = n || _, U = a !== void 0, k = !b && !!
|
|
461
|
+
} = e, _ = l.useId(), H = n || _, U = a !== void 0, k = !b && !!u && g, j = Ze("absolute top-0 h-full flex items-center cursor-pointer px-1.5 z-[1]", {
|
|
490
462
|
"text-red-700": k,
|
|
491
463
|
"text-gray-400": b,
|
|
492
|
-
"text-green-700": !
|
|
464
|
+
"text-green-700": !u && g,
|
|
493
465
|
"text-gray-500": !k
|
|
494
|
-
}), X =
|
|
466
|
+
}), X = Ze(f && "pl-8", !f && "pl-2.5", y && "pr-8", !y && "pr-2.5"), K = ce(la({ size: h, radius: m }), X, i), V = ce("block font-normal text-sm text-foreground mb-1", {
|
|
495
467
|
"text-danger": k
|
|
496
468
|
}), Q = (Z) => {
|
|
497
469
|
const de = Z.target.value;
|
|
498
|
-
|
|
470
|
+
v && !Xo(v, de) || I == null || I(Z);
|
|
499
471
|
}, J = (Z) => {
|
|
500
472
|
Z.preventDefault(), C == null || C();
|
|
501
473
|
};
|
|
@@ -540,13 +512,13 @@ const ca = Yo({
|
|
|
540
512
|
) })
|
|
541
513
|
}
|
|
542
514
|
) : null,
|
|
543
|
-
|
|
515
|
+
y && /* @__PURE__ */ p.jsx("div", { className: Ee("right-1", j, d), children: y })
|
|
544
516
|
] }),
|
|
545
|
-
!b &&
|
|
517
|
+
!b && u && g && x && /* @__PURE__ */ p.jsx(qn, { text: u })
|
|
546
518
|
] });
|
|
547
519
|
});
|
|
548
|
-
|
|
549
|
-
var
|
|
520
|
+
ca.displayName = "Input";
|
|
521
|
+
var ua = [
|
|
550
522
|
"a",
|
|
551
523
|
"button",
|
|
552
524
|
"div",
|
|
@@ -564,17 +536,17 @@ var fa = [
|
|
|
564
536
|
"span",
|
|
565
537
|
"svg",
|
|
566
538
|
"ul"
|
|
567
|
-
], te =
|
|
539
|
+
], te = ua.reduce((e, t) => {
|
|
568
540
|
const n = it(`Primitive.${t}`), r = l.forwardRef((a, o) => {
|
|
569
541
|
const { asChild: i, ...s } = a, c = i ? n : t;
|
|
570
542
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p.jsx(c, { ...s, ref: o });
|
|
571
543
|
});
|
|
572
544
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
573
545
|
}, {});
|
|
574
|
-
function
|
|
546
|
+
function da(e, t) {
|
|
575
547
|
e && an.flushSync(() => e.dispatchEvent(t));
|
|
576
548
|
}
|
|
577
|
-
const
|
|
549
|
+
const fa = Yn(["flex items-center cursor-pointer relative rounded-full p-0.5 px-1 relative overflow-hidden"], {
|
|
578
550
|
variants: {
|
|
579
551
|
color: {
|
|
580
552
|
primary: "bg-primary",
|
|
@@ -594,7 +566,7 @@ const ma = Jn(["flex items-center cursor-pointer relative rounded-full p-0.5 px-
|
|
|
594
566
|
color: "primary",
|
|
595
567
|
size: "md"
|
|
596
568
|
}
|
|
597
|
-
}),
|
|
569
|
+
}), pa = ({
|
|
598
570
|
id: e = null,
|
|
599
571
|
color: t,
|
|
600
572
|
size: n = "md",
|
|
@@ -604,26 +576,26 @@ const ma = Jn(["flex items-center cursor-pointer relative rounded-full p-0.5 px-
|
|
|
604
576
|
description: i,
|
|
605
577
|
positionLabel: s = "end",
|
|
606
578
|
required: c,
|
|
607
|
-
error:
|
|
579
|
+
error: d,
|
|
608
580
|
touched: h,
|
|
609
581
|
value: m,
|
|
610
582
|
leftIcon: f,
|
|
611
|
-
rightIcon:
|
|
583
|
+
rightIcon: y,
|
|
612
584
|
thumbIcon: b,
|
|
613
|
-
onChange:
|
|
614
|
-
...
|
|
585
|
+
onChange: u,
|
|
586
|
+
...g
|
|
615
587
|
}) => {
|
|
616
|
-
const
|
|
588
|
+
const v = Wo(), x = e || v, [w, E] = De(!1);
|
|
617
589
|
_e(() => {
|
|
618
590
|
E(m);
|
|
619
591
|
}, [m]);
|
|
620
592
|
const M = (U) => {
|
|
621
|
-
|
|
593
|
+
u(U.target.checked);
|
|
622
594
|
}, I = () => {
|
|
623
|
-
a ||
|
|
595
|
+
a || u(!w);
|
|
624
596
|
}, C = Ee(
|
|
625
597
|
"transition transform bg-white rounded-full shadow-sm flex justify-center items-center",
|
|
626
|
-
|
|
598
|
+
Ze(
|
|
627
599
|
n === "sm" && "w-4 h-4",
|
|
628
600
|
n === "md" && "w-5 h-5",
|
|
629
601
|
n === "lg" && "w-6 h-6",
|
|
@@ -631,16 +603,16 @@ const ma = Jn(["flex items-center cursor-pointer relative rounded-full p-0.5 px-
|
|
|
631
603
|
n === "md" && w && "translate-x-5",
|
|
632
604
|
n === "lg" && w && "translate-x-6"
|
|
633
605
|
)
|
|
634
|
-
), B = Ee(
|
|
606
|
+
), B = Ee(Ze(!w && "bg-default-200", a && "bg-default-100 hover:bg-default-100")), _ = Ee(
|
|
635
607
|
"text-gray-500 leading-none",
|
|
636
|
-
|
|
608
|
+
Ze({
|
|
637
609
|
"text-sm": n === "sm" || n === "md",
|
|
638
610
|
"after:content-['*'] after:ml-0.5 after:text-green-500": c,
|
|
639
611
|
"after:text-gray-400 text-gray-400": a
|
|
640
612
|
})
|
|
641
613
|
), H = Ee("text-xs text-gray-500 mt-1", a && "text-gray-400");
|
|
642
614
|
return /* @__PURE__ */ p.jsxs("div", { className: Ee(r), children: [
|
|
643
|
-
/* @__PURE__ */ p.jsxs("div", { className:
|
|
615
|
+
/* @__PURE__ */ p.jsxs("div", { className: Ze("flex gap-2", i && o ? "items-start" : "items-center"), children: [
|
|
644
616
|
s === "start" && (o || i) && /* @__PURE__ */ p.jsxs("div", { onClick: I, className: "cursor-pointer", children: [
|
|
645
617
|
o && /* @__PURE__ */ p.jsx("p", { className: _, children: o }),
|
|
646
618
|
i && /* @__PURE__ */ p.jsx("p", { className: H, children: i })
|
|
@@ -648,20 +620,20 @@ const ma = Jn(["flex items-center cursor-pointer relative rounded-full p-0.5 px-
|
|
|
648
620
|
/* @__PURE__ */ p.jsxs(
|
|
649
621
|
"label",
|
|
650
622
|
{
|
|
651
|
-
htmlFor:
|
|
652
|
-
className: ce(
|
|
623
|
+
htmlFor: x,
|
|
624
|
+
className: ce(fa({ size: n, color: t }), B),
|
|
653
625
|
children: [
|
|
654
626
|
/* @__PURE__ */ p.jsx(
|
|
655
627
|
"input",
|
|
656
628
|
{
|
|
657
629
|
type: "checkbox",
|
|
658
|
-
id:
|
|
630
|
+
id: x,
|
|
659
631
|
className: "sr-only peer",
|
|
660
632
|
onChange: M,
|
|
661
633
|
disabled: a,
|
|
662
634
|
checked: w,
|
|
663
635
|
"data-state": w ? "checked" : "unchecked",
|
|
664
|
-
...
|
|
636
|
+
...g
|
|
665
637
|
}
|
|
666
638
|
),
|
|
667
639
|
f && /* @__PURE__ */ p.jsx(
|
|
@@ -674,14 +646,14 @@ const ma = Jn(["flex items-center cursor-pointer relative rounded-full p-0.5 px-
|
|
|
674
646
|
children: f
|
|
675
647
|
}
|
|
676
648
|
),
|
|
677
|
-
|
|
649
|
+
y && /* @__PURE__ */ p.jsx(
|
|
678
650
|
Lt.div,
|
|
679
651
|
{
|
|
680
652
|
initial: !1,
|
|
681
653
|
animate: w ? { scale: 0, opacity: 0 } : { scale: 1, opacity: 1 },
|
|
682
654
|
transition: { type: "spring", bounce: 0 },
|
|
683
655
|
className: "absolute right-1 top-1/2 -translate-y-1/2 text-neutral-400",
|
|
684
|
-
children:
|
|
656
|
+
children: y
|
|
685
657
|
}
|
|
686
658
|
),
|
|
687
659
|
/* @__PURE__ */ p.jsx("span", { className: C, children: b && /* @__PURE__ */ p.jsx(
|
|
@@ -701,17 +673,17 @@ const ma = Jn(["flex items-center cursor-pointer relative rounded-full p-0.5 px-
|
|
|
701
673
|
i && /* @__PURE__ */ p.jsx("p", { className: H, children: i })
|
|
702
674
|
] })
|
|
703
675
|
] }),
|
|
704
|
-
!a &&
|
|
676
|
+
!a && d && h && /* @__PURE__ */ p.jsx(qn, { text: d })
|
|
705
677
|
] });
|
|
706
678
|
};
|
|
707
|
-
|
|
679
|
+
pa.displayName = "Switch";
|
|
708
680
|
function ne(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
709
681
|
return function(a) {
|
|
710
682
|
if (e == null || e(a), n === !1 || !a.defaultPrevented)
|
|
711
683
|
return t == null ? void 0 : t(a);
|
|
712
684
|
};
|
|
713
685
|
}
|
|
714
|
-
function
|
|
686
|
+
function ma(e, t) {
|
|
715
687
|
const n = l.createContext(t), r = (o) => {
|
|
716
688
|
const { children: i, ...s } = o, c = l.useMemo(() => s, Object.values(s));
|
|
717
689
|
return /* @__PURE__ */ p.jsx(n.Provider, { value: c, children: i });
|
|
@@ -730,20 +702,20 @@ function Pt(e, t = []) {
|
|
|
730
702
|
function r(o, i) {
|
|
731
703
|
const s = l.createContext(i), c = n.length;
|
|
732
704
|
n = [...n, i];
|
|
733
|
-
const
|
|
734
|
-
var
|
|
735
|
-
const { scope: f, children:
|
|
736
|
-
return /* @__PURE__ */ p.jsx(
|
|
705
|
+
const d = (m) => {
|
|
706
|
+
var v;
|
|
707
|
+
const { scope: f, children: y, ...b } = m, u = ((v = f == null ? void 0 : f[e]) == null ? void 0 : v[c]) || s, g = l.useMemo(() => b, Object.values(b));
|
|
708
|
+
return /* @__PURE__ */ p.jsx(u.Provider, { value: g, children: y });
|
|
737
709
|
};
|
|
738
|
-
|
|
710
|
+
d.displayName = o + "Provider";
|
|
739
711
|
function h(m, f) {
|
|
740
|
-
var
|
|
741
|
-
const
|
|
712
|
+
var u;
|
|
713
|
+
const y = ((u = f == null ? void 0 : f[e]) == null ? void 0 : u[c]) || s, b = l.useContext(y);
|
|
742
714
|
if (b) return b;
|
|
743
715
|
if (i !== void 0) return i;
|
|
744
716
|
throw new Error(`\`${m}\` must be used within \`${o}\``);
|
|
745
717
|
}
|
|
746
|
-
return [
|
|
718
|
+
return [d, h];
|
|
747
719
|
}
|
|
748
720
|
const a = () => {
|
|
749
721
|
const o = n.map((i) => l.createContext(i));
|
|
@@ -755,9 +727,9 @@ function Pt(e, t = []) {
|
|
|
755
727
|
);
|
|
756
728
|
};
|
|
757
729
|
};
|
|
758
|
-
return a.scopeName = e, [r,
|
|
730
|
+
return a.scopeName = e, [r, ha(a, ...t)];
|
|
759
731
|
}
|
|
760
|
-
function
|
|
732
|
+
function ha(...e) {
|
|
761
733
|
const t = e[0];
|
|
762
734
|
if (e.length === 1) return t;
|
|
763
735
|
const n = () => {
|
|
@@ -766,8 +738,8 @@ function ga(...e) {
|
|
|
766
738
|
scopeName: a.scopeName
|
|
767
739
|
}));
|
|
768
740
|
return function(o) {
|
|
769
|
-
const i = r.reduce((s, { useScope: c, scopeName:
|
|
770
|
-
const m = c(o)[`__scope${
|
|
741
|
+
const i = r.reduce((s, { useScope: c, scopeName: d }) => {
|
|
742
|
+
const m = c(o)[`__scope${d}`];
|
|
771
743
|
return { ...s, ...m };
|
|
772
744
|
}, {});
|
|
773
745
|
return l.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
@@ -776,7 +748,7 @@ function ga(...e) {
|
|
|
776
748
|
return n.scopeName = t.scopeName, n;
|
|
777
749
|
}
|
|
778
750
|
var ue = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
779
|
-
},
|
|
751
|
+
}, ga = l[" useInsertionEffect ".trim().toString()] || ue;
|
|
780
752
|
function qt({
|
|
781
753
|
prop: e,
|
|
782
754
|
defaultProp: t,
|
|
@@ -784,7 +756,7 @@ function qt({
|
|
|
784
756
|
},
|
|
785
757
|
caller: r
|
|
786
758
|
}) {
|
|
787
|
-
const [a, o, i] =
|
|
759
|
+
const [a, o, i] = va({
|
|
788
760
|
defaultProp: t,
|
|
789
761
|
onChange: n
|
|
790
762
|
}), s = e !== void 0, c = s ? e : a;
|
|
@@ -793,85 +765,85 @@ function qt({
|
|
|
793
765
|
l.useEffect(() => {
|
|
794
766
|
const m = h.current;
|
|
795
767
|
if (m !== s) {
|
|
796
|
-
const f = m ? "controlled" : "uncontrolled",
|
|
768
|
+
const f = m ? "controlled" : "uncontrolled", y = s ? "controlled" : "uncontrolled";
|
|
797
769
|
}
|
|
798
770
|
h.current = s;
|
|
799
771
|
}, [s, r]);
|
|
800
772
|
}
|
|
801
|
-
const
|
|
773
|
+
const d = l.useCallback(
|
|
802
774
|
(h) => {
|
|
803
775
|
var m;
|
|
804
776
|
if (s) {
|
|
805
|
-
const f =
|
|
777
|
+
const f = xa(h) ? h(e) : h;
|
|
806
778
|
f !== e && ((m = i.current) == null || m.call(i, f));
|
|
807
779
|
} else
|
|
808
780
|
o(h);
|
|
809
781
|
},
|
|
810
782
|
[s, e, o, i]
|
|
811
783
|
);
|
|
812
|
-
return [c,
|
|
784
|
+
return [c, d];
|
|
813
785
|
}
|
|
814
|
-
function
|
|
786
|
+
function va({
|
|
815
787
|
defaultProp: e,
|
|
816
788
|
onChange: t
|
|
817
789
|
}) {
|
|
818
790
|
const [n, r] = l.useState(e), a = l.useRef(n), o = l.useRef(t);
|
|
819
|
-
return
|
|
791
|
+
return ga(() => {
|
|
820
792
|
o.current = t;
|
|
821
793
|
}, [t]), l.useEffect(() => {
|
|
822
794
|
var i;
|
|
823
795
|
a.current !== n && ((i = o.current) == null || i.call(o, n), a.current = n);
|
|
824
796
|
}, [n, a]), [n, r, o];
|
|
825
797
|
}
|
|
826
|
-
function
|
|
798
|
+
function xa(e) {
|
|
827
799
|
return typeof e == "function";
|
|
828
800
|
}
|
|
829
|
-
function
|
|
801
|
+
function ya(e) {
|
|
830
802
|
const t = e + "CollectionProvider", [n, r] = Pt(t), [a, o] = n(
|
|
831
803
|
t,
|
|
832
804
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
833
|
-
), i = (
|
|
834
|
-
const { scope:
|
|
835
|
-
return /* @__PURE__ */ p.jsx(a, { scope:
|
|
805
|
+
), i = (u) => {
|
|
806
|
+
const { scope: g, children: v } = u, x = je.useRef(null), w = je.useRef(/* @__PURE__ */ new Map()).current;
|
|
807
|
+
return /* @__PURE__ */ p.jsx(a, { scope: g, itemMap: w, collectionRef: x, children: v });
|
|
836
808
|
};
|
|
837
809
|
i.displayName = t;
|
|
838
|
-
const s = e + "CollectionSlot", c = it(s),
|
|
839
|
-
(
|
|
840
|
-
const { scope:
|
|
841
|
-
return /* @__PURE__ */ p.jsx(c, { ref: E, children:
|
|
810
|
+
const s = e + "CollectionSlot", c = it(s), d = je.forwardRef(
|
|
811
|
+
(u, g) => {
|
|
812
|
+
const { scope: v, children: x } = u, w = o(s, v), E = ie(g, w.collectionRef);
|
|
813
|
+
return /* @__PURE__ */ p.jsx(c, { ref: E, children: x });
|
|
842
814
|
}
|
|
843
815
|
);
|
|
844
|
-
|
|
845
|
-
const h = e + "CollectionItemSlot", m = "data-radix-collection-item", f = it(h),
|
|
846
|
-
(
|
|
847
|
-
const { scope:
|
|
848
|
-
return je.useEffect(() => (I.itemMap.set(E, { ref: E, ...w }), () => void I.itemMap.delete(E))), /* @__PURE__ */ p.jsx(f, { [m]: "", ref: M, children:
|
|
816
|
+
d.displayName = s;
|
|
817
|
+
const h = e + "CollectionItemSlot", m = "data-radix-collection-item", f = it(h), y = je.forwardRef(
|
|
818
|
+
(u, g) => {
|
|
819
|
+
const { scope: v, children: x, ...w } = u, E = je.useRef(null), M = ie(g, E), I = o(h, v);
|
|
820
|
+
return je.useEffect(() => (I.itemMap.set(E, { ref: E, ...w }), () => void I.itemMap.delete(E))), /* @__PURE__ */ p.jsx(f, { [m]: "", ref: M, children: x });
|
|
849
821
|
}
|
|
850
822
|
);
|
|
851
|
-
|
|
852
|
-
function b(
|
|
853
|
-
const
|
|
823
|
+
y.displayName = h;
|
|
824
|
+
function b(u) {
|
|
825
|
+
const g = o(e + "CollectionConsumer", u);
|
|
854
826
|
return je.useCallback(() => {
|
|
855
|
-
const
|
|
856
|
-
if (!
|
|
857
|
-
const w = Array.from(
|
|
858
|
-
return Array.from(
|
|
827
|
+
const x = g.collectionRef.current;
|
|
828
|
+
if (!x) return [];
|
|
829
|
+
const w = Array.from(x.querySelectorAll(`[${m}]`));
|
|
830
|
+
return Array.from(g.itemMap.values()).sort(
|
|
859
831
|
(I, C) => w.indexOf(I.ref.current) - w.indexOf(C.ref.current)
|
|
860
832
|
);
|
|
861
|
-
}, [
|
|
833
|
+
}, [g.collectionRef, g.itemMap]);
|
|
862
834
|
}
|
|
863
835
|
return [
|
|
864
|
-
{ Provider: i, Slot:
|
|
836
|
+
{ Provider: i, Slot: d, ItemSlot: y },
|
|
865
837
|
b,
|
|
866
838
|
r
|
|
867
839
|
];
|
|
868
840
|
}
|
|
869
|
-
var
|
|
870
|
-
function
|
|
871
|
-
const t = l.useContext(
|
|
841
|
+
var ba = l.createContext(void 0);
|
|
842
|
+
function wa(e) {
|
|
843
|
+
const t = l.useContext(ba);
|
|
872
844
|
return e || t || "ltr";
|
|
873
845
|
}
|
|
874
|
-
function
|
|
846
|
+
function He(e) {
|
|
875
847
|
const t = l.useRef(e);
|
|
876
848
|
return l.useEffect(() => {
|
|
877
849
|
t.current = e;
|
|
@@ -880,8 +852,8 @@ function Fe(e) {
|
|
|
880
852
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
881
853
|
}, []);
|
|
882
854
|
}
|
|
883
|
-
function
|
|
884
|
-
const n =
|
|
855
|
+
function Sa(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
856
|
+
const n = He(e);
|
|
885
857
|
l.useEffect(() => {
|
|
886
858
|
const r = (a) => {
|
|
887
859
|
a.key === "Escape" && n(a);
|
|
@@ -889,7 +861,7 @@ function Ea(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
889
861
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
890
862
|
}, [n, t]);
|
|
891
863
|
}
|
|
892
|
-
var
|
|
864
|
+
var Ca = "DismissableLayer", Zt = "dismissableLayer.update", Ea = "dismissableLayer.pointerDownOutside", Pa = "dismissableLayer.focusOutside", En, Zn = l.createContext({
|
|
893
865
|
layers: /* @__PURE__ */ new Set(),
|
|
894
866
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
895
867
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -903,24 +875,24 @@ var Pa = "DismissableLayer", Zt = "dismissableLayer.update", Na = "dismissableLa
|
|
|
903
875
|
onInteractOutside: i,
|
|
904
876
|
onDismiss: s,
|
|
905
877
|
...c
|
|
906
|
-
} = e,
|
|
907
|
-
const B = C.target, _ = [...
|
|
878
|
+
} = e, d = l.useContext(Zn), [h, m] = l.useState(null), f = (h == null ? void 0 : h.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, y] = l.useState({}), b = ie(t, (C) => m(C)), u = Array.from(d.layers), [g] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), v = u.indexOf(g), x = h ? u.indexOf(h) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, E = x >= v, M = Ia((C) => {
|
|
879
|
+
const B = C.target, _ = [...d.branches].some((H) => H.contains(B));
|
|
908
880
|
!E || _ || (a == null || a(C), i == null || i(C), C.defaultPrevented || s == null || s());
|
|
909
|
-
}, f), I =
|
|
881
|
+
}, f), I = Aa((C) => {
|
|
910
882
|
const B = C.target;
|
|
911
|
-
[...
|
|
883
|
+
[...d.branches].some((H) => H.contains(B)) || (o == null || o(C), i == null || i(C), C.defaultPrevented || s == null || s());
|
|
912
884
|
}, f);
|
|
913
|
-
return
|
|
914
|
-
|
|
885
|
+
return Sa((C) => {
|
|
886
|
+
x === d.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && s && (C.preventDefault(), s()));
|
|
915
887
|
}, f), l.useEffect(() => {
|
|
916
888
|
if (h)
|
|
917
|
-
return n && (
|
|
918
|
-
n &&
|
|
889
|
+
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (En = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(h)), d.layers.add(h), Pn(), () => {
|
|
890
|
+
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = En);
|
|
919
891
|
};
|
|
920
|
-
}, [h, f, n,
|
|
921
|
-
h && (
|
|
922
|
-
}, [h,
|
|
923
|
-
const C = () =>
|
|
892
|
+
}, [h, f, n, d]), l.useEffect(() => () => {
|
|
893
|
+
h && (d.layers.delete(h), d.layersWithOutsidePointerEventsDisabled.delete(h), Pn());
|
|
894
|
+
}, [h, d]), l.useEffect(() => {
|
|
895
|
+
const C = () => y({});
|
|
924
896
|
return document.addEventListener(Zt, C), () => document.removeEventListener(Zt, C);
|
|
925
897
|
}, []), /* @__PURE__ */ p.jsx(
|
|
926
898
|
te.div,
|
|
@@ -941,9 +913,9 @@ var Pa = "DismissableLayer", Zt = "dismissableLayer.update", Na = "dismissableLa
|
|
|
941
913
|
);
|
|
942
914
|
}
|
|
943
915
|
);
|
|
944
|
-
sn.displayName =
|
|
945
|
-
var
|
|
946
|
-
const n = l.useContext(
|
|
916
|
+
sn.displayName = Ca;
|
|
917
|
+
var Na = "DismissableLayerBranch", Ra = l.forwardRef((e, t) => {
|
|
918
|
+
const n = l.useContext(Zn), r = l.useRef(null), a = ie(t, r);
|
|
947
919
|
return l.useEffect(() => {
|
|
948
920
|
const o = r.current;
|
|
949
921
|
if (o)
|
|
@@ -952,22 +924,22 @@ var Ia = "DismissableLayerBranch", Aa = l.forwardRef((e, t) => {
|
|
|
952
924
|
};
|
|
953
925
|
}, [n.branches]), /* @__PURE__ */ p.jsx(te.div, { ...e, ref: a });
|
|
954
926
|
});
|
|
955
|
-
|
|
956
|
-
function
|
|
957
|
-
const n =
|
|
927
|
+
Ra.displayName = Na;
|
|
928
|
+
function Ia(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
929
|
+
const n = He(e), r = l.useRef(!1), a = l.useRef(() => {
|
|
958
930
|
});
|
|
959
931
|
return l.useEffect(() => {
|
|
960
932
|
const o = (s) => {
|
|
961
933
|
if (s.target && !r.current) {
|
|
962
934
|
let c = function() {
|
|
963
|
-
|
|
964
|
-
|
|
935
|
+
Jn(
|
|
936
|
+
Ea,
|
|
965
937
|
n,
|
|
966
|
-
|
|
938
|
+
d,
|
|
967
939
|
{ discrete: !0 }
|
|
968
940
|
);
|
|
969
941
|
};
|
|
970
|
-
const
|
|
942
|
+
const d = { originalEvent: s };
|
|
971
943
|
s.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = c, t.addEventListener("click", a.current, { once: !0 })) : c();
|
|
972
944
|
} else
|
|
973
945
|
t.removeEventListener("click", a.current);
|
|
@@ -983,11 +955,11 @@ function Ta(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
983
955
|
onPointerDownCapture: () => r.current = !0
|
|
984
956
|
};
|
|
985
957
|
}
|
|
986
|
-
function
|
|
987
|
-
const n =
|
|
958
|
+
function Aa(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
959
|
+
const n = He(e), r = l.useRef(!1);
|
|
988
960
|
return l.useEffect(() => {
|
|
989
961
|
const a = (o) => {
|
|
990
|
-
o.target && !r.current &&
|
|
962
|
+
o.target && !r.current && Jn(Pa, n, { originalEvent: o }, {
|
|
991
963
|
discrete: !1
|
|
992
964
|
});
|
|
993
965
|
};
|
|
@@ -997,35 +969,35 @@ function Ma(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
997
969
|
onBlurCapture: () => r.current = !1
|
|
998
970
|
};
|
|
999
971
|
}
|
|
1000
|
-
function
|
|
972
|
+
function Pn() {
|
|
1001
973
|
const e = new CustomEvent(Zt);
|
|
1002
974
|
document.dispatchEvent(e);
|
|
1003
975
|
}
|
|
1004
|
-
function
|
|
976
|
+
function Jn(e, t, n, { discrete: r }) {
|
|
1005
977
|
const a = n.originalEvent.target, o = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
1006
|
-
t && a.addEventListener(e, t, { once: !0 }), r ?
|
|
978
|
+
t && a.addEventListener(e, t, { once: !0 }), r ? da(a, o) : a.dispatchEvent(o);
|
|
1007
979
|
}
|
|
1008
980
|
var jt = 0;
|
|
1009
|
-
function
|
|
981
|
+
function Qn() {
|
|
1010
982
|
l.useEffect(() => {
|
|
1011
983
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
1012
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
984
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Nn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Nn()), jt++, () => {
|
|
1013
985
|
jt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), jt--;
|
|
1014
986
|
};
|
|
1015
987
|
}, []);
|
|
1016
988
|
}
|
|
1017
|
-
function
|
|
989
|
+
function Nn() {
|
|
1018
990
|
const e = document.createElement("span");
|
|
1019
991
|
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;
|
|
1020
992
|
}
|
|
1021
|
-
var $t = "focusScope.autoFocusOnMount", Bt = "focusScope.autoFocusOnUnmount",
|
|
993
|
+
var $t = "focusScope.autoFocusOnMount", Bt = "focusScope.autoFocusOnUnmount", Rn = { bubbles: !1, cancelable: !0 }, Ta = "FocusScope", ln = l.forwardRef((e, t) => {
|
|
1022
994
|
const {
|
|
1023
995
|
loop: n = !1,
|
|
1024
996
|
trapped: r = !1,
|
|
1025
997
|
onMountAutoFocus: a,
|
|
1026
998
|
onUnmountAutoFocus: o,
|
|
1027
999
|
...i
|
|
1028
|
-
} = e, [s, c] = l.useState(null),
|
|
1000
|
+
} = e, [s, c] = l.useState(null), d = He(a), h = He(o), m = l.useRef(null), f = ie(t, (u) => c(u)), y = l.useRef({
|
|
1029
1001
|
paused: !1,
|
|
1030
1002
|
pause() {
|
|
1031
1003
|
this.paused = !0;
|
|
@@ -1036,65 +1008,65 @@ var $t = "focusScope.autoFocusOnMount", Bt = "focusScope.autoFocusOnUnmount", An
|
|
|
1036
1008
|
}).current;
|
|
1037
1009
|
l.useEffect(() => {
|
|
1038
1010
|
if (r) {
|
|
1039
|
-
let
|
|
1040
|
-
if (
|
|
1011
|
+
let u = function(w) {
|
|
1012
|
+
if (y.paused || !s) return;
|
|
1041
1013
|
const E = w.target;
|
|
1042
1014
|
s.contains(E) ? m.current = E : Ae(m.current, { select: !0 });
|
|
1043
|
-
},
|
|
1044
|
-
if (
|
|
1015
|
+
}, g = function(w) {
|
|
1016
|
+
if (y.paused || !s) return;
|
|
1045
1017
|
const E = w.relatedTarget;
|
|
1046
1018
|
E !== null && (s.contains(E) || Ae(m.current, { select: !0 }));
|
|
1047
|
-
},
|
|
1019
|
+
}, v = function(w) {
|
|
1048
1020
|
if (document.activeElement === document.body)
|
|
1049
1021
|
for (const M of w)
|
|
1050
1022
|
M.removedNodes.length > 0 && Ae(s);
|
|
1051
1023
|
};
|
|
1052
|
-
document.addEventListener("focusin",
|
|
1053
|
-
const
|
|
1054
|
-
return s &&
|
|
1055
|
-
document.removeEventListener("focusin",
|
|
1024
|
+
document.addEventListener("focusin", u), document.addEventListener("focusout", g);
|
|
1025
|
+
const x = new MutationObserver(v);
|
|
1026
|
+
return s && x.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
1027
|
+
document.removeEventListener("focusin", u), document.removeEventListener("focusout", g), x.disconnect();
|
|
1056
1028
|
};
|
|
1057
1029
|
}
|
|
1058
|
-
}, [r, s,
|
|
1030
|
+
}, [r, s, y.paused]), l.useEffect(() => {
|
|
1059
1031
|
if (s) {
|
|
1060
|
-
|
|
1061
|
-
const
|
|
1062
|
-
if (!s.contains(
|
|
1063
|
-
const
|
|
1064
|
-
s.addEventListener($t,
|
|
1032
|
+
An.add(y);
|
|
1033
|
+
const u = document.activeElement;
|
|
1034
|
+
if (!s.contains(u)) {
|
|
1035
|
+
const v = new CustomEvent($t, Rn);
|
|
1036
|
+
s.addEventListener($t, d), s.dispatchEvent(v), v.defaultPrevented || (Ma(ka(er(s)), { select: !0 }), document.activeElement === u && Ae(s));
|
|
1065
1037
|
}
|
|
1066
1038
|
return () => {
|
|
1067
|
-
s.removeEventListener($t,
|
|
1068
|
-
const
|
|
1069
|
-
s.addEventListener(Bt, h), s.dispatchEvent(
|
|
1039
|
+
s.removeEventListener($t, d), setTimeout(() => {
|
|
1040
|
+
const v = new CustomEvent(Bt, Rn);
|
|
1041
|
+
s.addEventListener(Bt, h), s.dispatchEvent(v), v.defaultPrevented || Ae(u ?? document.body, { select: !0 }), s.removeEventListener(Bt, h), An.remove(y);
|
|
1070
1042
|
}, 0);
|
|
1071
1043
|
};
|
|
1072
1044
|
}
|
|
1073
|
-
}, [s,
|
|
1045
|
+
}, [s, d, h, y]);
|
|
1074
1046
|
const b = l.useCallback(
|
|
1075
|
-
(
|
|
1076
|
-
if (!n && !r ||
|
|
1077
|
-
const
|
|
1078
|
-
if (
|
|
1079
|
-
const
|
|
1080
|
-
w && E ? !
|
|
1047
|
+
(u) => {
|
|
1048
|
+
if (!n && !r || y.paused) return;
|
|
1049
|
+
const g = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, v = document.activeElement;
|
|
1050
|
+
if (g && v) {
|
|
1051
|
+
const x = u.currentTarget, [w, E] = Da(x);
|
|
1052
|
+
w && E ? !u.shiftKey && v === E ? (u.preventDefault(), n && Ae(w, { select: !0 })) : u.shiftKey && v === w && (u.preventDefault(), n && Ae(E, { select: !0 })) : v === x && u.preventDefault();
|
|
1081
1053
|
}
|
|
1082
1054
|
},
|
|
1083
|
-
[n, r,
|
|
1055
|
+
[n, r, y.paused]
|
|
1084
1056
|
);
|
|
1085
1057
|
return /* @__PURE__ */ p.jsx(te.div, { tabIndex: -1, ...i, ref: f, onKeyDown: b });
|
|
1086
1058
|
});
|
|
1087
|
-
ln.displayName =
|
|
1088
|
-
function
|
|
1059
|
+
ln.displayName = Ta;
|
|
1060
|
+
function Ma(e, { select: t = !1 } = {}) {
|
|
1089
1061
|
const n = document.activeElement;
|
|
1090
1062
|
for (const r of e)
|
|
1091
1063
|
if (Ae(r, { select: t }), document.activeElement !== n) return;
|
|
1092
1064
|
}
|
|
1093
|
-
function
|
|
1094
|
-
const t =
|
|
1065
|
+
function Da(e) {
|
|
1066
|
+
const t = er(e), n = In(t, e), r = In(t.reverse(), e);
|
|
1095
1067
|
return [n, r];
|
|
1096
1068
|
}
|
|
1097
|
-
function
|
|
1069
|
+
function er(e) {
|
|
1098
1070
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
1099
1071
|
acceptNode: (r) => {
|
|
1100
1072
|
const a = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -1104,11 +1076,11 @@ function nr(e) {
|
|
|
1104
1076
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
1105
1077
|
return t;
|
|
1106
1078
|
}
|
|
1107
|
-
function
|
|
1079
|
+
function In(e, t) {
|
|
1108
1080
|
for (const n of e)
|
|
1109
|
-
if (!
|
|
1081
|
+
if (!_a(n, { upTo: t })) return n;
|
|
1110
1082
|
}
|
|
1111
|
-
function
|
|
1083
|
+
function _a(e, { upTo: t }) {
|
|
1112
1084
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1113
1085
|
for (; e; ) {
|
|
1114
1086
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -1117,45 +1089,45 @@ function Oa(e, { upTo: t }) {
|
|
|
1117
1089
|
}
|
|
1118
1090
|
return !1;
|
|
1119
1091
|
}
|
|
1120
|
-
function
|
|
1092
|
+
function za(e) {
|
|
1121
1093
|
return e instanceof HTMLInputElement && "select" in e;
|
|
1122
1094
|
}
|
|
1123
1095
|
function Ae(e, { select: t = !1 } = {}) {
|
|
1124
1096
|
if (e && e.focus) {
|
|
1125
1097
|
const n = document.activeElement;
|
|
1126
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1098
|
+
e.focus({ preventScroll: !0 }), e !== n && za(e) && t && e.select();
|
|
1127
1099
|
}
|
|
1128
1100
|
}
|
|
1129
|
-
var
|
|
1130
|
-
function
|
|
1101
|
+
var An = Oa();
|
|
1102
|
+
function Oa() {
|
|
1131
1103
|
let e = [];
|
|
1132
1104
|
return {
|
|
1133
1105
|
add(t) {
|
|
1134
1106
|
const n = e[0];
|
|
1135
|
-
t !== n && (n == null || n.pause()), e =
|
|
1107
|
+
t !== n && (n == null || n.pause()), e = Tn(e, t), e.unshift(t);
|
|
1136
1108
|
},
|
|
1137
1109
|
remove(t) {
|
|
1138
1110
|
var n;
|
|
1139
|
-
e =
|
|
1111
|
+
e = Tn(e, t), (n = e[0]) == null || n.resume();
|
|
1140
1112
|
}
|
|
1141
1113
|
};
|
|
1142
1114
|
}
|
|
1143
|
-
function
|
|
1115
|
+
function Tn(e, t) {
|
|
1144
1116
|
const n = [...e], r = n.indexOf(t);
|
|
1145
1117
|
return r !== -1 && n.splice(r, 1), n;
|
|
1146
1118
|
}
|
|
1147
|
-
function
|
|
1119
|
+
function ka(e) {
|
|
1148
1120
|
return e.filter((t) => t.tagName !== "A");
|
|
1149
1121
|
}
|
|
1150
|
-
var
|
|
1151
|
-
}),
|
|
1122
|
+
var La = l[" useId ".trim().toString()] || (() => {
|
|
1123
|
+
}), ja = 0;
|
|
1152
1124
|
function Qe(e) {
|
|
1153
|
-
const [t, n] = l.useState(
|
|
1125
|
+
const [t, n] = l.useState(La());
|
|
1154
1126
|
return ue(() => {
|
|
1155
|
-
n((r) => r ?? String(
|
|
1127
|
+
n((r) => r ?? String(ja++));
|
|
1156
1128
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1157
1129
|
}
|
|
1158
|
-
var
|
|
1130
|
+
var $a = "Arrow", tr = l.forwardRef((e, t) => {
|
|
1159
1131
|
const { children: n, width: r = 10, height: a = 5, ...o } = e;
|
|
1160
1132
|
return /* @__PURE__ */ p.jsx(
|
|
1161
1133
|
te.svg,
|
|
@@ -1170,9 +1142,9 @@ var Ha = "Arrow", rr = l.forwardRef((e, t) => {
|
|
|
1170
1142
|
}
|
|
1171
1143
|
);
|
|
1172
1144
|
});
|
|
1173
|
-
|
|
1174
|
-
var
|
|
1175
|
-
function
|
|
1145
|
+
tr.displayName = $a;
|
|
1146
|
+
var Ba = tr;
|
|
1147
|
+
function Ha(e) {
|
|
1176
1148
|
const [t, n] = l.useState(void 0);
|
|
1177
1149
|
return ue(() => {
|
|
1178
1150
|
if (e) {
|
|
@@ -1183,8 +1155,8 @@ function Wa(e) {
|
|
|
1183
1155
|
const o = a[0];
|
|
1184
1156
|
let i, s;
|
|
1185
1157
|
if ("borderBoxSize" in o) {
|
|
1186
|
-
const c = o.borderBoxSize,
|
|
1187
|
-
i =
|
|
1158
|
+
const c = o.borderBoxSize, d = Array.isArray(c) ? c[0] : c;
|
|
1159
|
+
i = d.inlineSize, s = d.blockSize;
|
|
1188
1160
|
} else
|
|
1189
1161
|
i = e.offsetWidth, s = e.offsetHeight;
|
|
1190
1162
|
n({ width: i, height: s });
|
|
@@ -1194,21 +1166,21 @@ function Wa(e) {
|
|
|
1194
1166
|
n(void 0);
|
|
1195
1167
|
}, [e]), t;
|
|
1196
1168
|
}
|
|
1197
|
-
var cn = "Popper", [
|
|
1169
|
+
var cn = "Popper", [nr, rr] = Pt(cn), [Fa, or] = nr(cn), ar = (e) => {
|
|
1198
1170
|
const { __scopePopper: t, children: n } = e, [r, a] = l.useState(null);
|
|
1199
|
-
return /* @__PURE__ */ p.jsx(
|
|
1171
|
+
return /* @__PURE__ */ p.jsx(Fa, { scope: t, anchor: r, onAnchorChange: a, children: n });
|
|
1200
1172
|
};
|
|
1201
|
-
|
|
1202
|
-
var
|
|
1173
|
+
ar.displayName = cn;
|
|
1174
|
+
var sr = "PopperAnchor", ir = l.forwardRef(
|
|
1203
1175
|
(e, t) => {
|
|
1204
|
-
const { __scopePopper: n, virtualRef: r, ...a } = e, o = sr
|
|
1176
|
+
const { __scopePopper: n, virtualRef: r, ...a } = e, o = or(sr, n), i = l.useRef(null), s = ie(t, i);
|
|
1205
1177
|
return l.useEffect(() => {
|
|
1206
1178
|
o.onAnchorChange((r == null ? void 0 : r.current) || i.current);
|
|
1207
1179
|
}), r ? null : /* @__PURE__ */ p.jsx(te.div, { ...a, ref: s });
|
|
1208
1180
|
}
|
|
1209
1181
|
);
|
|
1210
|
-
|
|
1211
|
-
var un = "PopperContent", [
|
|
1182
|
+
ir.displayName = sr;
|
|
1183
|
+
var un = "PopperContent", [Wa, Va] = nr(un), lr = l.forwardRef(
|
|
1212
1184
|
(e, t) => {
|
|
1213
1185
|
var S, N, L, O, F, $;
|
|
1214
1186
|
const {
|
|
@@ -1219,56 +1191,56 @@ var un = "PopperContent", [Ua, Ga] = or(un), ur = l.forwardRef(
|
|
|
1219
1191
|
alignOffset: i = 0,
|
|
1220
1192
|
arrowPadding: s = 0,
|
|
1221
1193
|
avoidCollisions: c = !0,
|
|
1222
|
-
collisionBoundary:
|
|
1194
|
+
collisionBoundary: d = [],
|
|
1223
1195
|
collisionPadding: h = 0,
|
|
1224
1196
|
sticky: m = "partial",
|
|
1225
1197
|
hideWhenDetached: f = !1,
|
|
1226
|
-
updatePositionStrategy:
|
|
1198
|
+
updatePositionStrategy: y = "optimized",
|
|
1227
1199
|
onPlaced: b,
|
|
1228
|
-
...
|
|
1229
|
-
} = e,
|
|
1200
|
+
...u
|
|
1201
|
+
} = e, g = or(un, n), [v, x] = l.useState(null), w = ie(t, (G) => x(G)), [E, M] = l.useState(null), I = Ha(E), C = (I == null ? void 0 : I.width) ?? 0, B = (I == null ? void 0 : I.height) ?? 0, _ = r + (o !== "center" ? "-" + o : ""), H = typeof h == "number" ? h : { top: 0, right: 0, bottom: 0, left: 0, ...h }, U = Array.isArray(d) ? d : [d], k = U.length > 0, j = {
|
|
1230
1202
|
padding: H,
|
|
1231
|
-
boundary: U.filter(
|
|
1203
|
+
boundary: U.filter(Ga),
|
|
1232
1204
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1233
1205
|
altBoundary: k
|
|
1234
|
-
}, { refs: X, floatingStyles: K, placement: V, isPositioned: Q, middlewareData: J } =
|
|
1206
|
+
}, { refs: X, floatingStyles: K, placement: V, isPositioned: Q, middlewareData: J } = Jo({
|
|
1235
1207
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1236
1208
|
strategy: "fixed",
|
|
1237
1209
|
placement: _,
|
|
1238
|
-
whileElementsMounted: (...G) =>
|
|
1239
|
-
animationFrame:
|
|
1210
|
+
whileElementsMounted: (...G) => sa(...G, {
|
|
1211
|
+
animationFrame: y === "always"
|
|
1240
1212
|
}),
|
|
1241
1213
|
elements: {
|
|
1242
|
-
reference:
|
|
1214
|
+
reference: g.anchor
|
|
1243
1215
|
},
|
|
1244
1216
|
middleware: [
|
|
1245
|
-
|
|
1246
|
-
c &&
|
|
1217
|
+
Qo({ mainAxis: a + B, alignmentAxis: i }),
|
|
1218
|
+
c && ea({
|
|
1247
1219
|
mainAxis: !0,
|
|
1248
1220
|
crossAxis: !1,
|
|
1249
|
-
limiter: m === "partial" ?
|
|
1221
|
+
limiter: m === "partial" ? aa() : void 0,
|
|
1250
1222
|
...j
|
|
1251
1223
|
}),
|
|
1252
|
-
c &&
|
|
1253
|
-
|
|
1224
|
+
c && ta({ ...j }),
|
|
1225
|
+
na({
|
|
1254
1226
|
...j,
|
|
1255
1227
|
apply: ({ elements: G, rects: R, availableWidth: z, availableHeight: ee }) => {
|
|
1256
1228
|
const { width: ae, height: q } = R.reference, Y = G.floating.style;
|
|
1257
1229
|
Y.setProperty("--radix-popper-available-width", `${z}px`), Y.setProperty("--radix-popper-available-height", `${ee}px`), Y.setProperty("--radix-popper-anchor-width", `${ae}px`), Y.setProperty("--radix-popper-anchor-height", `${q}px`);
|
|
1258
1230
|
}
|
|
1259
1231
|
}),
|
|
1260
|
-
E &&
|
|
1261
|
-
|
|
1262
|
-
f &&
|
|
1232
|
+
E && ra({ element: E, padding: s }),
|
|
1233
|
+
Ka({ arrowWidth: C, arrowHeight: B }),
|
|
1234
|
+
f && oa({ strategy: "referenceHidden", ...j })
|
|
1263
1235
|
]
|
|
1264
|
-
}), [Z, de] =
|
|
1236
|
+
}), [Z, de] = dr(V), re = He(b);
|
|
1265
1237
|
ue(() => {
|
|
1266
1238
|
Q && (re == null || re());
|
|
1267
1239
|
}, [Q, re]);
|
|
1268
1240
|
const le = (S = J.arrow) == null ? void 0 : S.x, P = (N = J.arrow) == null ? void 0 : N.y, A = ((L = J.arrow) == null ? void 0 : L.centerOffset) !== 0, [D, T] = l.useState();
|
|
1269
1241
|
return ue(() => {
|
|
1270
|
-
|
|
1271
|
-
}, [
|
|
1242
|
+
v && T(window.getComputedStyle(v).zIndex);
|
|
1243
|
+
}, [v]), /* @__PURE__ */ p.jsx(
|
|
1272
1244
|
"div",
|
|
1273
1245
|
{
|
|
1274
1246
|
ref: X.setFloating,
|
|
@@ -1293,7 +1265,7 @@ var un = "PopperContent", [Ua, Ga] = or(un), ur = l.forwardRef(
|
|
|
1293
1265
|
},
|
|
1294
1266
|
dir: e.dir,
|
|
1295
1267
|
children: /* @__PURE__ */ p.jsx(
|
|
1296
|
-
|
|
1268
|
+
Wa,
|
|
1297
1269
|
{
|
|
1298
1270
|
scope: n,
|
|
1299
1271
|
placedSide: Z,
|
|
@@ -1306,10 +1278,10 @@ var un = "PopperContent", [Ua, Ga] = or(un), ur = l.forwardRef(
|
|
|
1306
1278
|
{
|
|
1307
1279
|
"data-side": Z,
|
|
1308
1280
|
"data-align": de,
|
|
1309
|
-
...
|
|
1281
|
+
...u,
|
|
1310
1282
|
ref: w,
|
|
1311
1283
|
style: {
|
|
1312
|
-
...
|
|
1284
|
+
...u.style,
|
|
1313
1285
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
1314
1286
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
1315
1287
|
animation: Q ? void 0 : "none"
|
|
@@ -1322,14 +1294,14 @@ var un = "PopperContent", [Ua, Ga] = or(un), ur = l.forwardRef(
|
|
|
1322
1294
|
);
|
|
1323
1295
|
}
|
|
1324
1296
|
);
|
|
1325
|
-
|
|
1326
|
-
var
|
|
1297
|
+
lr.displayName = un;
|
|
1298
|
+
var cr = "PopperArrow", Ua = {
|
|
1327
1299
|
top: "bottom",
|
|
1328
1300
|
right: "left",
|
|
1329
1301
|
bottom: "top",
|
|
1330
1302
|
left: "right"
|
|
1331
|
-
},
|
|
1332
|
-
const { __scopePopper: r, ...a } = t, o =
|
|
1303
|
+
}, ur = l.forwardRef(function(t, n) {
|
|
1304
|
+
const { __scopePopper: r, ...a } = t, o = Va(cr, r), i = Ua[o.placedSide];
|
|
1333
1305
|
return (
|
|
1334
1306
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
1335
1307
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -1358,7 +1330,7 @@ var dr = "PopperArrow", Ka = {
|
|
|
1358
1330
|
visibility: o.shouldHideArrow ? "hidden" : void 0
|
|
1359
1331
|
},
|
|
1360
1332
|
children: /* @__PURE__ */ p.jsx(
|
|
1361
|
-
|
|
1333
|
+
Ba,
|
|
1362
1334
|
{
|
|
1363
1335
|
...a,
|
|
1364
1336
|
ref: n,
|
|
@@ -1373,42 +1345,42 @@ var dr = "PopperArrow", Ka = {
|
|
|
1373
1345
|
)
|
|
1374
1346
|
);
|
|
1375
1347
|
});
|
|
1376
|
-
|
|
1377
|
-
function
|
|
1348
|
+
ur.displayName = cr;
|
|
1349
|
+
function Ga(e) {
|
|
1378
1350
|
return e !== null;
|
|
1379
1351
|
}
|
|
1380
|
-
var
|
|
1352
|
+
var Ka = (e) => ({
|
|
1381
1353
|
name: "transformOrigin",
|
|
1382
1354
|
options: e,
|
|
1383
1355
|
fn(t) {
|
|
1384
|
-
var
|
|
1385
|
-
const { placement: n, rects: r, middlewareData: a } = t, i = ((
|
|
1386
|
-
let b = "",
|
|
1387
|
-
return
|
|
1356
|
+
var g, v, x;
|
|
1357
|
+
const { placement: n, rects: r, middlewareData: a } = t, i = ((g = a.arrow) == null ? void 0 : g.centerOffset) !== 0, s = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [d, h] = dr(n), m = { start: "0%", center: "50%", end: "100%" }[h], f = (((v = a.arrow) == null ? void 0 : v.x) ?? 0) + s / 2, y = (((x = a.arrow) == null ? void 0 : x.y) ?? 0) + c / 2;
|
|
1358
|
+
let b = "", u = "";
|
|
1359
|
+
return d === "bottom" ? (b = i ? m : `${f}px`, u = `${-c}px`) : d === "top" ? (b = i ? m : `${f}px`, u = `${r.floating.height + c}px`) : d === "right" ? (b = `${-c}px`, u = i ? m : `${y}px`) : d === "left" && (b = `${r.floating.width + c}px`, u = i ? m : `${y}px`), { data: { x: b, y: u } };
|
|
1388
1360
|
}
|
|
1389
1361
|
});
|
|
1390
|
-
function
|
|
1362
|
+
function dr(e) {
|
|
1391
1363
|
const [t, n = "center"] = e.split("-");
|
|
1392
1364
|
return [t, n];
|
|
1393
1365
|
}
|
|
1394
|
-
var
|
|
1366
|
+
var Xa = ar, Ya = ir, qa = lr, Za = ur, Ja = "Portal", dn = l.forwardRef((e, t) => {
|
|
1395
1367
|
var s;
|
|
1396
1368
|
const { container: n, ...r } = e, [a, o] = l.useState(!1);
|
|
1397
1369
|
ue(() => o(!0), []);
|
|
1398
1370
|
const i = n || a && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
|
|
1399
|
-
return i ?
|
|
1371
|
+
return i ? Zo.createPortal(/* @__PURE__ */ p.jsx(te.div, { ...r, ref: t }), i) : null;
|
|
1400
1372
|
});
|
|
1401
|
-
dn.displayName =
|
|
1402
|
-
function
|
|
1373
|
+
dn.displayName = Ja;
|
|
1374
|
+
function Qa(e, t) {
|
|
1403
1375
|
return l.useReducer((n, r) => t[n][r] ?? n, e);
|
|
1404
1376
|
}
|
|
1405
1377
|
var Nt = (e) => {
|
|
1406
|
-
const { present: t, children: n } = e, r =
|
|
1378
|
+
const { present: t, children: n } = e, r = es(t), a = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), o = ie(r.ref, ts(a));
|
|
1407
1379
|
return typeof n == "function" || r.isPresent ? l.cloneElement(a, { ref: o }) : null;
|
|
1408
1380
|
};
|
|
1409
1381
|
Nt.displayName = "Presence";
|
|
1410
|
-
function
|
|
1411
|
-
const [t, n] = l.useState(), r = l.useRef(null), a = l.useRef(e), o = l.useRef("none"), i = e ? "mounted" : "unmounted", [s, c] =
|
|
1382
|
+
function es(e) {
|
|
1383
|
+
const [t, n] = l.useState(), r = l.useRef(null), a = l.useRef(e), o = l.useRef("none"), i = e ? "mounted" : "unmounted", [s, c] = Qa(i, {
|
|
1412
1384
|
mounted: {
|
|
1413
1385
|
UNMOUNT: "unmounted",
|
|
1414
1386
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -1422,93 +1394,93 @@ function ns(e) {
|
|
|
1422
1394
|
}
|
|
1423
1395
|
});
|
|
1424
1396
|
return l.useEffect(() => {
|
|
1425
|
-
const
|
|
1426
|
-
o.current = s === "mounted" ?
|
|
1397
|
+
const d = ut(r.current);
|
|
1398
|
+
o.current = s === "mounted" ? d : "none";
|
|
1427
1399
|
}, [s]), ue(() => {
|
|
1428
|
-
const
|
|
1400
|
+
const d = r.current, h = a.current;
|
|
1429
1401
|
if (h !== e) {
|
|
1430
|
-
const f = o.current,
|
|
1431
|
-
e ? c("MOUNT") :
|
|
1402
|
+
const f = o.current, y = ut(d);
|
|
1403
|
+
e ? c("MOUNT") : y === "none" || (d == null ? void 0 : d.display) === "none" ? c("UNMOUNT") : c(h && f !== y ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
1432
1404
|
}
|
|
1433
1405
|
}, [e, c]), ue(() => {
|
|
1434
1406
|
if (t) {
|
|
1435
|
-
let
|
|
1436
|
-
const h = t.ownerDocument.defaultView ?? window, m = (
|
|
1437
|
-
const
|
|
1438
|
-
if (
|
|
1439
|
-
const
|
|
1440
|
-
t.style.animationFillMode = "forwards",
|
|
1441
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
1407
|
+
let d;
|
|
1408
|
+
const h = t.ownerDocument.defaultView ?? window, m = (y) => {
|
|
1409
|
+
const u = ut(r.current).includes(y.animationName);
|
|
1410
|
+
if (y.target === t && u && (c("ANIMATION_END"), !a.current)) {
|
|
1411
|
+
const g = t.style.animationFillMode;
|
|
1412
|
+
t.style.animationFillMode = "forwards", d = h.setTimeout(() => {
|
|
1413
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
|
|
1442
1414
|
});
|
|
1443
1415
|
}
|
|
1444
|
-
}, f = (
|
|
1445
|
-
|
|
1416
|
+
}, f = (y) => {
|
|
1417
|
+
y.target === t && (o.current = ut(r.current));
|
|
1446
1418
|
};
|
|
1447
1419
|
return t.addEventListener("animationstart", f), t.addEventListener("animationcancel", m), t.addEventListener("animationend", m), () => {
|
|
1448
|
-
h.clearTimeout(
|
|
1420
|
+
h.clearTimeout(d), t.removeEventListener("animationstart", f), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
|
|
1449
1421
|
};
|
|
1450
1422
|
} else
|
|
1451
1423
|
c("ANIMATION_END");
|
|
1452
1424
|
}, [t, c]), {
|
|
1453
1425
|
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
1454
|
-
ref: l.useCallback((
|
|
1455
|
-
r.current =
|
|
1426
|
+
ref: l.useCallback((d) => {
|
|
1427
|
+
r.current = d ? getComputedStyle(d) : null, n(d);
|
|
1456
1428
|
}, [])
|
|
1457
1429
|
};
|
|
1458
1430
|
}
|
|
1459
1431
|
function ut(e) {
|
|
1460
1432
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
1461
1433
|
}
|
|
1462
|
-
function
|
|
1434
|
+
function ts(e) {
|
|
1463
1435
|
var r, a;
|
|
1464
1436
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1465
1437
|
return n ? e.ref : (t = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1466
1438
|
}
|
|
1467
|
-
var
|
|
1439
|
+
var ns = function(e) {
|
|
1468
1440
|
if (typeof document > "u")
|
|
1469
1441
|
return null;
|
|
1470
1442
|
var t = Array.isArray(e) ? e[0] : e;
|
|
1471
1443
|
return t.ownerDocument.body;
|
|
1472
|
-
},
|
|
1473
|
-
return e && (e.host ||
|
|
1474
|
-
},
|
|
1444
|
+
}, Ge = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), ft = {}, Ht = 0, fr = function(e) {
|
|
1445
|
+
return e && (e.host || fr(e.parentNode));
|
|
1446
|
+
}, rs = function(e, t) {
|
|
1475
1447
|
return t.map(function(n) {
|
|
1476
1448
|
if (e.contains(n))
|
|
1477
1449
|
return n;
|
|
1478
|
-
var r =
|
|
1450
|
+
var r = fr(n);
|
|
1479
1451
|
return r && e.contains(r) ? r : null;
|
|
1480
1452
|
}).filter(function(n) {
|
|
1481
1453
|
return !!n;
|
|
1482
1454
|
});
|
|
1483
|
-
},
|
|
1484
|
-
var a =
|
|
1455
|
+
}, os = function(e, t, n, r) {
|
|
1456
|
+
var a = rs(t, Array.isArray(e) ? e : [e]);
|
|
1485
1457
|
ft[n] || (ft[n] = /* @__PURE__ */ new WeakMap());
|
|
1486
|
-
var o = ft[n], i = [], s = /* @__PURE__ */ new Set(), c = new Set(a),
|
|
1487
|
-
!m || s.has(m) || (s.add(m),
|
|
1458
|
+
var o = ft[n], i = [], s = /* @__PURE__ */ new Set(), c = new Set(a), d = function(m) {
|
|
1459
|
+
!m || s.has(m) || (s.add(m), d(m.parentNode));
|
|
1488
1460
|
};
|
|
1489
|
-
a.forEach(
|
|
1461
|
+
a.forEach(d);
|
|
1490
1462
|
var h = function(m) {
|
|
1491
1463
|
!m || c.has(m) || Array.prototype.forEach.call(m.children, function(f) {
|
|
1492
1464
|
if (s.has(f))
|
|
1493
1465
|
h(f);
|
|
1494
1466
|
else
|
|
1495
1467
|
try {
|
|
1496
|
-
var
|
|
1497
|
-
|
|
1468
|
+
var y = f.getAttribute(r), b = y !== null && y !== "false", u = (Ge.get(f) || 0) + 1, g = (o.get(f) || 0) + 1;
|
|
1469
|
+
Ge.set(f, u), o.set(f, g), i.push(f), u === 1 && b && dt.set(f, !0), g === 1 && f.setAttribute(n, "true"), b || f.setAttribute(r, "true");
|
|
1498
1470
|
} catch {
|
|
1499
1471
|
}
|
|
1500
1472
|
});
|
|
1501
1473
|
};
|
|
1502
1474
|
return h(t), s.clear(), Ht++, function() {
|
|
1503
1475
|
i.forEach(function(m) {
|
|
1504
|
-
var f =
|
|
1505
|
-
|
|
1506
|
-
}), Ht--, Ht || (
|
|
1476
|
+
var f = Ge.get(m) - 1, y = o.get(m) - 1;
|
|
1477
|
+
Ge.set(m, f), o.set(m, y), f || (dt.has(m) || m.removeAttribute(r), dt.delete(m)), y || m.removeAttribute(n);
|
|
1478
|
+
}), Ht--, Ht || (Ge = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), ft = {});
|
|
1507
1479
|
};
|
|
1508
|
-
},
|
|
1480
|
+
}, pr = function(e, t, n) {
|
|
1509
1481
|
n === void 0 && (n = "data-aria-hidden");
|
|
1510
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), a =
|
|
1511
|
-
return a ? (r.push.apply(r, Array.from(a.querySelectorAll("[aria-live], script"))),
|
|
1482
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), a = ns(e);
|
|
1483
|
+
return a ? (r.push.apply(r, Array.from(a.querySelectorAll("[aria-live], script"))), os(r, a, n, "aria-hidden")) : function() {
|
|
1512
1484
|
return null;
|
|
1513
1485
|
};
|
|
1514
1486
|
}, we = function() {
|
|
@@ -1520,7 +1492,7 @@ var os = function(e) {
|
|
|
1520
1492
|
return t;
|
|
1521
1493
|
}, we.apply(this, arguments);
|
|
1522
1494
|
};
|
|
1523
|
-
function
|
|
1495
|
+
function mr(e, t) {
|
|
1524
1496
|
var n = {};
|
|
1525
1497
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
1526
1498
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -1528,16 +1500,16 @@ function vr(e, t) {
|
|
|
1528
1500
|
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
1529
1501
|
return n;
|
|
1530
1502
|
}
|
|
1531
|
-
function
|
|
1503
|
+
function as(e, t, n) {
|
|
1532
1504
|
if (n || arguments.length === 2) for (var r = 0, a = t.length, o; r < a; r++)
|
|
1533
1505
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
1534
1506
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1535
1507
|
}
|
|
1536
|
-
var
|
|
1508
|
+
var gt = "right-scroll-bar-position", vt = "width-before-scroll-bar", ss = "with-scroll-bars-hidden", is = "--removed-body-scroll-bar-size";
|
|
1537
1509
|
function Ft(e, t) {
|
|
1538
1510
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
1539
1511
|
}
|
|
1540
|
-
function
|
|
1512
|
+
function ls(e, t) {
|
|
1541
1513
|
var n = De(function() {
|
|
1542
1514
|
return {
|
|
1543
1515
|
// value
|
|
@@ -1558,15 +1530,15 @@ function us(e, t) {
|
|
|
1558
1530
|
})[0];
|
|
1559
1531
|
return n.callback = t, n.facade;
|
|
1560
1532
|
}
|
|
1561
|
-
var
|
|
1562
|
-
function
|
|
1563
|
-
var n =
|
|
1533
|
+
var cs = typeof window < "u" ? l.useLayoutEffect : l.useEffect, Mn = /* @__PURE__ */ new WeakMap();
|
|
1534
|
+
function us(e, t) {
|
|
1535
|
+
var n = ls(null, function(r) {
|
|
1564
1536
|
return e.forEach(function(a) {
|
|
1565
1537
|
return Ft(a, r);
|
|
1566
1538
|
});
|
|
1567
1539
|
});
|
|
1568
|
-
return
|
|
1569
|
-
var r =
|
|
1540
|
+
return cs(function() {
|
|
1541
|
+
var r = Mn.get(n);
|
|
1570
1542
|
if (r) {
|
|
1571
1543
|
var a = new Set(r), o = new Set(e), i = n.current;
|
|
1572
1544
|
a.forEach(function(s) {
|
|
@@ -1575,14 +1547,14 @@ function fs(e, t) {
|
|
|
1575
1547
|
a.has(s) || Ft(s, i);
|
|
1576
1548
|
});
|
|
1577
1549
|
}
|
|
1578
|
-
|
|
1550
|
+
Mn.set(n, e);
|
|
1579
1551
|
}, [e]), n;
|
|
1580
1552
|
}
|
|
1581
|
-
function
|
|
1553
|
+
function ds(e) {
|
|
1582
1554
|
return e;
|
|
1583
1555
|
}
|
|
1584
|
-
function
|
|
1585
|
-
t === void 0 && (t =
|
|
1556
|
+
function fs(e, t) {
|
|
1557
|
+
t === void 0 && (t = ds);
|
|
1586
1558
|
var n = [], r = !1, a = {
|
|
1587
1559
|
read: function() {
|
|
1588
1560
|
if (r)
|
|
@@ -1621,12 +1593,12 @@ function ms(e, t) {
|
|
|
1621
1593
|
var c = function() {
|
|
1622
1594
|
var h = i;
|
|
1623
1595
|
i = [], h.forEach(o);
|
|
1624
|
-
},
|
|
1596
|
+
}, d = function() {
|
|
1625
1597
|
return Promise.resolve().then(c);
|
|
1626
1598
|
};
|
|
1627
|
-
|
|
1599
|
+
d(), n = {
|
|
1628
1600
|
push: function(h) {
|
|
1629
|
-
i.push(h),
|
|
1601
|
+
i.push(h), d();
|
|
1630
1602
|
},
|
|
1631
1603
|
filter: function(h) {
|
|
1632
1604
|
return i = i.filter(h), n;
|
|
@@ -1636,13 +1608,13 @@ function ms(e, t) {
|
|
|
1636
1608
|
};
|
|
1637
1609
|
return a;
|
|
1638
1610
|
}
|
|
1639
|
-
function
|
|
1611
|
+
function ps(e) {
|
|
1640
1612
|
e === void 0 && (e = {});
|
|
1641
|
-
var t =
|
|
1613
|
+
var t = fs(null);
|
|
1642
1614
|
return t.options = we({ async: !0, ssr: !1 }, e), t;
|
|
1643
1615
|
}
|
|
1644
|
-
var
|
|
1645
|
-
var t = e.sideCar, n =
|
|
1616
|
+
var hr = function(e) {
|
|
1617
|
+
var t = e.sideCar, n = mr(e, ["sideCar"]);
|
|
1646
1618
|
if (!t)
|
|
1647
1619
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
1648
1620
|
var r = t.read();
|
|
@@ -1650,22 +1622,22 @@ var gr = function(e) {
|
|
|
1650
1622
|
throw new Error("Sidecar medium not found");
|
|
1651
1623
|
return l.createElement(r, we({}, n));
|
|
1652
1624
|
};
|
|
1653
|
-
|
|
1654
|
-
function
|
|
1655
|
-
return e.useMedium(t),
|
|
1625
|
+
hr.isSideCarExport = !0;
|
|
1626
|
+
function ms(e, t) {
|
|
1627
|
+
return e.useMedium(t), hr;
|
|
1656
1628
|
}
|
|
1657
|
-
var
|
|
1629
|
+
var gr = ps(), Wt = function() {
|
|
1658
1630
|
}, Rt = l.forwardRef(function(e, t) {
|
|
1659
1631
|
var n = l.useRef(null), r = l.useState({
|
|
1660
1632
|
onScrollCapture: Wt,
|
|
1661
1633
|
onWheelCapture: Wt,
|
|
1662
1634
|
onTouchMoveCapture: Wt
|
|
1663
|
-
}), a = r[0], o = r[1], i = e.forwardProps, s = e.children, c = e.className,
|
|
1635
|
+
}), a = r[0], o = r[1], i = e.forwardProps, s = e.children, c = e.className, d = e.removeScrollBar, h = e.enabled, m = e.shards, f = e.sideCar, y = e.noRelative, b = e.noIsolation, u = e.inert, g = e.allowPinchZoom, v = e.as, x = v === void 0 ? "div" : v, w = e.gapMode, E = mr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), M = f, I = us([n, t]), C = we(we({}, E), a);
|
|
1664
1636
|
return l.createElement(
|
|
1665
1637
|
l.Fragment,
|
|
1666
1638
|
null,
|
|
1667
|
-
h && l.createElement(M, { sideCar:
|
|
1668
|
-
i ? l.cloneElement(l.Children.only(s), we(we({}, C), { ref: I })) : l.createElement(
|
|
1639
|
+
h && l.createElement(M, { sideCar: gr, removeScrollBar: d, shards: m, noRelative: y, noIsolation: b, inert: u, setCallbacks: o, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
|
|
1640
|
+
i ? l.cloneElement(l.Children.only(s), we(we({}, C), { ref: I })) : l.createElement(x, we({}, C, { className: c, ref: I }), s)
|
|
1669
1641
|
);
|
|
1670
1642
|
});
|
|
1671
1643
|
Rt.defaultProps = {
|
|
@@ -1674,40 +1646,40 @@ Rt.defaultProps = {
|
|
|
1674
1646
|
inert: !1
|
|
1675
1647
|
};
|
|
1676
1648
|
Rt.classNames = {
|
|
1677
|
-
fullWidth:
|
|
1678
|
-
zeroRight:
|
|
1649
|
+
fullWidth: vt,
|
|
1650
|
+
zeroRight: gt
|
|
1679
1651
|
};
|
|
1680
|
-
var
|
|
1652
|
+
var hs = function() {
|
|
1681
1653
|
if (typeof __webpack_nonce__ < "u")
|
|
1682
1654
|
return __webpack_nonce__;
|
|
1683
1655
|
};
|
|
1684
|
-
function
|
|
1656
|
+
function gs() {
|
|
1685
1657
|
if (!document)
|
|
1686
1658
|
return null;
|
|
1687
1659
|
var e = document.createElement("style");
|
|
1688
1660
|
e.type = "text/css";
|
|
1689
|
-
var t =
|
|
1661
|
+
var t = hs();
|
|
1690
1662
|
return t && e.setAttribute("nonce", t), e;
|
|
1691
1663
|
}
|
|
1692
|
-
function
|
|
1664
|
+
function vs(e, t) {
|
|
1693
1665
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
1694
1666
|
}
|
|
1695
|
-
function
|
|
1667
|
+
function xs(e) {
|
|
1696
1668
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
1697
1669
|
t.appendChild(e);
|
|
1698
1670
|
}
|
|
1699
|
-
var
|
|
1671
|
+
var ys = function() {
|
|
1700
1672
|
var e = 0, t = null;
|
|
1701
1673
|
return {
|
|
1702
1674
|
add: function(n) {
|
|
1703
|
-
e == 0 && (t =
|
|
1675
|
+
e == 0 && (t = gs()) && (vs(t, n), xs(t)), e++;
|
|
1704
1676
|
},
|
|
1705
1677
|
remove: function() {
|
|
1706
1678
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
1707
1679
|
}
|
|
1708
1680
|
};
|
|
1709
|
-
},
|
|
1710
|
-
var e =
|
|
1681
|
+
}, bs = function() {
|
|
1682
|
+
var e = ys();
|
|
1711
1683
|
return function(t, n) {
|
|
1712
1684
|
l.useEffect(function() {
|
|
1713
1685
|
return e.add(t), function() {
|
|
@@ -1715,36 +1687,36 @@ var ws = function() {
|
|
|
1715
1687
|
};
|
|
1716
1688
|
}, [t && n]);
|
|
1717
1689
|
};
|
|
1718
|
-
},
|
|
1719
|
-
var e =
|
|
1690
|
+
}, vr = function() {
|
|
1691
|
+
var e = bs(), t = function(n) {
|
|
1720
1692
|
var r = n.styles, a = n.dynamic;
|
|
1721
1693
|
return e(r, a), null;
|
|
1722
1694
|
};
|
|
1723
1695
|
return t;
|
|
1724
|
-
},
|
|
1696
|
+
}, ws = {
|
|
1725
1697
|
left: 0,
|
|
1726
1698
|
top: 0,
|
|
1727
1699
|
right: 0,
|
|
1728
1700
|
gap: 0
|
|
1729
1701
|
}, Vt = function(e) {
|
|
1730
1702
|
return parseInt(e || "", 10) || 0;
|
|
1731
|
-
},
|
|
1703
|
+
}, Ss = function(e) {
|
|
1732
1704
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], a = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
1733
1705
|
return [Vt(n), Vt(r), Vt(a)];
|
|
1734
|
-
},
|
|
1706
|
+
}, Cs = function(e) {
|
|
1735
1707
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
1736
|
-
return
|
|
1737
|
-
var t =
|
|
1708
|
+
return ws;
|
|
1709
|
+
var t = Ss(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
1738
1710
|
return {
|
|
1739
1711
|
left: t[0],
|
|
1740
1712
|
top: t[1],
|
|
1741
1713
|
right: t[2],
|
|
1742
1714
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
1743
1715
|
};
|
|
1744
|
-
},
|
|
1716
|
+
}, Es = vr(), et = "data-scroll-locked", Ps = function(e, t, n, r) {
|
|
1745
1717
|
var a = e.left, o = e.top, i = e.right, s = e.gap;
|
|
1746
1718
|
return n === void 0 && (n = "margin"), `
|
|
1747
|
-
.`.concat(
|
|
1719
|
+
.`.concat(ss, ` {
|
|
1748
1720
|
overflow: hidden `).concat(r, `;
|
|
1749
1721
|
padding-right: `).concat(s, "px ").concat(r, `;
|
|
1750
1722
|
}
|
|
@@ -1765,43 +1737,43 @@ var ws = function() {
|
|
|
1765
1737
|
].filter(Boolean).join(""), `
|
|
1766
1738
|
}
|
|
1767
1739
|
|
|
1768
|
-
.`).concat(
|
|
1740
|
+
.`).concat(gt, ` {
|
|
1769
1741
|
right: `).concat(s, "px ").concat(r, `;
|
|
1770
1742
|
}
|
|
1771
1743
|
|
|
1772
|
-
.`).concat(
|
|
1744
|
+
.`).concat(vt, ` {
|
|
1773
1745
|
margin-right: `).concat(s, "px ").concat(r, `;
|
|
1774
1746
|
}
|
|
1775
1747
|
|
|
1776
|
-
.`).concat(
|
|
1748
|
+
.`).concat(gt, " .").concat(gt, ` {
|
|
1777
1749
|
right: 0 `).concat(r, `;
|
|
1778
1750
|
}
|
|
1779
1751
|
|
|
1780
|
-
.`).concat(
|
|
1752
|
+
.`).concat(vt, " .").concat(vt, ` {
|
|
1781
1753
|
margin-right: 0 `).concat(r, `;
|
|
1782
1754
|
}
|
|
1783
1755
|
|
|
1784
1756
|
body[`).concat(et, `] {
|
|
1785
|
-
`).concat(
|
|
1757
|
+
`).concat(is, ": ").concat(s, `px;
|
|
1786
1758
|
}
|
|
1787
1759
|
`);
|
|
1788
|
-
},
|
|
1760
|
+
}, Dn = function() {
|
|
1789
1761
|
var e = parseInt(document.body.getAttribute(et) || "0", 10);
|
|
1790
1762
|
return isFinite(e) ? e : 0;
|
|
1791
|
-
},
|
|
1763
|
+
}, Ns = function() {
|
|
1792
1764
|
l.useEffect(function() {
|
|
1793
|
-
return document.body.setAttribute(et, (
|
|
1794
|
-
var e =
|
|
1765
|
+
return document.body.setAttribute(et, (Dn() + 1).toString()), function() {
|
|
1766
|
+
var e = Dn() - 1;
|
|
1795
1767
|
e <= 0 ? document.body.removeAttribute(et) : document.body.setAttribute(et, e.toString());
|
|
1796
1768
|
};
|
|
1797
1769
|
}, []);
|
|
1798
|
-
},
|
|
1770
|
+
}, Rs = function(e) {
|
|
1799
1771
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, a = r === void 0 ? "margin" : r;
|
|
1800
|
-
|
|
1772
|
+
Ns();
|
|
1801
1773
|
var o = l.useMemo(function() {
|
|
1802
|
-
return
|
|
1774
|
+
return Cs(a);
|
|
1803
1775
|
}, [a]);
|
|
1804
|
-
return l.createElement(
|
|
1776
|
+
return l.createElement(Es, { styles: Ps(o, !t, a, n ? "" : "!important") });
|
|
1805
1777
|
}, Jt = !1;
|
|
1806
1778
|
if (typeof window < "u")
|
|
1807
1779
|
try {
|
|
@@ -1814,187 +1786,187 @@ if (typeof window < "u")
|
|
|
1814
1786
|
} catch {
|
|
1815
1787
|
Jt = !1;
|
|
1816
1788
|
}
|
|
1817
|
-
var
|
|
1789
|
+
var Ke = Jt ? { passive: !1 } : !1, Is = function(e) {
|
|
1818
1790
|
return e.tagName === "TEXTAREA";
|
|
1819
|
-
},
|
|
1791
|
+
}, xr = function(e, t) {
|
|
1820
1792
|
if (!(e instanceof Element))
|
|
1821
1793
|
return !1;
|
|
1822
1794
|
var n = window.getComputedStyle(e);
|
|
1823
1795
|
return (
|
|
1824
1796
|
// not-not-scrollable
|
|
1825
1797
|
n[t] !== "hidden" && // contains scroll inside self
|
|
1826
|
-
!(n.overflowY === n.overflowX && !
|
|
1798
|
+
!(n.overflowY === n.overflowX && !Is(e) && n[t] === "visible")
|
|
1827
1799
|
);
|
|
1828
|
-
},
|
|
1829
|
-
return
|
|
1830
|
-
},
|
|
1831
|
-
return
|
|
1832
|
-
},
|
|
1800
|
+
}, As = function(e) {
|
|
1801
|
+
return xr(e, "overflowY");
|
|
1802
|
+
}, Ts = function(e) {
|
|
1803
|
+
return xr(e, "overflowX");
|
|
1804
|
+
}, _n = function(e, t) {
|
|
1833
1805
|
var n = t.ownerDocument, r = t;
|
|
1834
1806
|
do {
|
|
1835
1807
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
1836
|
-
var a =
|
|
1808
|
+
var a = yr(e, r);
|
|
1837
1809
|
if (a) {
|
|
1838
|
-
var o =
|
|
1810
|
+
var o = br(e, r), i = o[1], s = o[2];
|
|
1839
1811
|
if (i > s)
|
|
1840
1812
|
return !0;
|
|
1841
1813
|
}
|
|
1842
1814
|
r = r.parentNode;
|
|
1843
1815
|
} while (r && r !== n.body);
|
|
1844
1816
|
return !1;
|
|
1845
|
-
},
|
|
1817
|
+
}, Ms = function(e) {
|
|
1846
1818
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
1847
1819
|
return [
|
|
1848
1820
|
t,
|
|
1849
1821
|
n,
|
|
1850
1822
|
r
|
|
1851
1823
|
];
|
|
1852
|
-
},
|
|
1824
|
+
}, Ds = function(e) {
|
|
1853
1825
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
1854
1826
|
return [
|
|
1855
1827
|
t,
|
|
1856
1828
|
n,
|
|
1857
1829
|
r
|
|
1858
1830
|
];
|
|
1859
|
-
},
|
|
1831
|
+
}, yr = function(e, t) {
|
|
1832
|
+
return e === "v" ? As(t) : Ts(t);
|
|
1833
|
+
}, br = function(e, t) {
|
|
1860
1834
|
return e === "v" ? Ms(t) : Ds(t);
|
|
1861
|
-
},
|
|
1862
|
-
return e === "v" ? _s(t) : zs(t);
|
|
1863
|
-
}, Os = function(e, t) {
|
|
1835
|
+
}, _s = function(e, t) {
|
|
1864
1836
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1865
|
-
},
|
|
1866
|
-
var o =
|
|
1837
|
+
}, zs = function(e, t, n, r, a) {
|
|
1838
|
+
var o = _s(e, window.getComputedStyle(t).direction), i = o * r, s = n.target, c = t.contains(s), d = !1, h = i > 0, m = 0, f = 0;
|
|
1867
1839
|
do {
|
|
1868
1840
|
if (!s)
|
|
1869
1841
|
break;
|
|
1870
|
-
var
|
|
1871
|
-
(b ||
|
|
1872
|
-
var
|
|
1873
|
-
s =
|
|
1842
|
+
var y = br(e, s), b = y[0], u = y[1], g = y[2], v = u - g - o * b;
|
|
1843
|
+
(b || v) && yr(e, s) && (m += v, f += b);
|
|
1844
|
+
var x = s.parentNode;
|
|
1845
|
+
s = x && x.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? x.host : x;
|
|
1874
1846
|
} while (
|
|
1875
1847
|
// portaled content
|
|
1876
1848
|
!c && s !== document.body || // self content
|
|
1877
1849
|
c && (t.contains(s) || t === s)
|
|
1878
1850
|
);
|
|
1879
|
-
return (h && Math.abs(m) < 1 || !h && Math.abs(f) < 1) && (
|
|
1851
|
+
return (h && Math.abs(m) < 1 || !h && Math.abs(f) < 1) && (d = !0), d;
|
|
1880
1852
|
}, mt = function(e) {
|
|
1881
1853
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1882
|
-
},
|
|
1854
|
+
}, zn = function(e) {
|
|
1883
1855
|
return [e.deltaX, e.deltaY];
|
|
1884
|
-
},
|
|
1856
|
+
}, On = function(e) {
|
|
1885
1857
|
return e && "current" in e ? e.current : e;
|
|
1886
|
-
},
|
|
1858
|
+
}, Os = function(e, t) {
|
|
1887
1859
|
return e[0] === t[0] && e[1] === t[1];
|
|
1888
|
-
},
|
|
1860
|
+
}, ks = function(e) {
|
|
1889
1861
|
return `
|
|
1890
1862
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
1891
1863
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
1892
1864
|
`);
|
|
1893
|
-
},
|
|
1894
|
-
function
|
|
1895
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), a = l.useState(
|
|
1865
|
+
}, Ls = 0, Xe = [];
|
|
1866
|
+
function js(e) {
|
|
1867
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), a = l.useState(Ls++)[0], o = l.useState(vr)[0], i = l.useRef(e);
|
|
1896
1868
|
l.useEffect(function() {
|
|
1897
1869
|
i.current = e;
|
|
1898
1870
|
}, [e]), l.useEffect(function() {
|
|
1899
1871
|
if (e.inert) {
|
|
1900
1872
|
document.body.classList.add("block-interactivity-".concat(a));
|
|
1901
|
-
var
|
|
1902
|
-
return
|
|
1903
|
-
return
|
|
1873
|
+
var u = as([e.lockRef.current], (e.shards || []).map(On), !0).filter(Boolean);
|
|
1874
|
+
return u.forEach(function(g) {
|
|
1875
|
+
return g.classList.add("allow-interactivity-".concat(a));
|
|
1904
1876
|
}), function() {
|
|
1905
|
-
document.body.classList.remove("block-interactivity-".concat(a)),
|
|
1906
|
-
return
|
|
1877
|
+
document.body.classList.remove("block-interactivity-".concat(a)), u.forEach(function(g) {
|
|
1878
|
+
return g.classList.remove("allow-interactivity-".concat(a));
|
|
1907
1879
|
});
|
|
1908
1880
|
};
|
|
1909
1881
|
}
|
|
1910
1882
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
1911
|
-
var s = l.useCallback(function(
|
|
1912
|
-
if ("touches" in
|
|
1883
|
+
var s = l.useCallback(function(u, g) {
|
|
1884
|
+
if ("touches" in u && u.touches.length === 2 || u.type === "wheel" && u.ctrlKey)
|
|
1913
1885
|
return !i.current.allowPinchZoom;
|
|
1914
|
-
var
|
|
1915
|
-
if ("touches" in
|
|
1886
|
+
var v = mt(u), x = n.current, w = "deltaX" in u ? u.deltaX : x[0] - v[0], E = "deltaY" in u ? u.deltaY : x[1] - v[1], M, I = u.target, C = Math.abs(w) > Math.abs(E) ? "h" : "v";
|
|
1887
|
+
if ("touches" in u && C === "h" && I.type === "range")
|
|
1916
1888
|
return !1;
|
|
1917
|
-
var B =
|
|
1889
|
+
var B = _n(C, I);
|
|
1918
1890
|
if (!B)
|
|
1919
1891
|
return !0;
|
|
1920
|
-
if (B ? M = C : (M = C === "v" ? "h" : "v", B =
|
|
1892
|
+
if (B ? M = C : (M = C === "v" ? "h" : "v", B = _n(C, I)), !B)
|
|
1921
1893
|
return !1;
|
|
1922
|
-
if (!r.current && "changedTouches" in
|
|
1894
|
+
if (!r.current && "changedTouches" in u && (w || E) && (r.current = M), !M)
|
|
1923
1895
|
return !0;
|
|
1924
1896
|
var _ = r.current || M;
|
|
1925
|
-
return
|
|
1926
|
-
}, []), c = l.useCallback(function(
|
|
1927
|
-
var
|
|
1928
|
-
if (!(!
|
|
1929
|
-
var
|
|
1930
|
-
return M.name ===
|
|
1897
|
+
return zs(_, g, u, _ === "h" ? w : E);
|
|
1898
|
+
}, []), c = l.useCallback(function(u) {
|
|
1899
|
+
var g = u;
|
|
1900
|
+
if (!(!Xe.length || Xe[Xe.length - 1] !== o)) {
|
|
1901
|
+
var v = "deltaY" in g ? zn(g) : mt(g), x = t.current.filter(function(M) {
|
|
1902
|
+
return M.name === g.type && (M.target === g.target || g.target === M.shadowParent) && Os(M.delta, v);
|
|
1931
1903
|
})[0];
|
|
1932
|
-
if (
|
|
1933
|
-
|
|
1904
|
+
if (x && x.should) {
|
|
1905
|
+
g.cancelable && g.preventDefault();
|
|
1934
1906
|
return;
|
|
1935
1907
|
}
|
|
1936
|
-
if (!
|
|
1937
|
-
var w = (i.current.shards || []).map(
|
|
1938
|
-
return M.contains(
|
|
1939
|
-
}), E = w.length > 0 ? s(
|
|
1940
|
-
E &&
|
|
1908
|
+
if (!x) {
|
|
1909
|
+
var w = (i.current.shards || []).map(On).filter(Boolean).filter(function(M) {
|
|
1910
|
+
return M.contains(g.target);
|
|
1911
|
+
}), E = w.length > 0 ? s(g, w[0]) : !i.current.noIsolation;
|
|
1912
|
+
E && g.cancelable && g.preventDefault();
|
|
1941
1913
|
}
|
|
1942
1914
|
}
|
|
1943
|
-
}, []),
|
|
1944
|
-
var w = { name:
|
|
1915
|
+
}, []), d = l.useCallback(function(u, g, v, x) {
|
|
1916
|
+
var w = { name: u, delta: g, target: v, should: x, shadowParent: $s(v) };
|
|
1945
1917
|
t.current.push(w), setTimeout(function() {
|
|
1946
1918
|
t.current = t.current.filter(function(E) {
|
|
1947
1919
|
return E !== w;
|
|
1948
1920
|
});
|
|
1949
1921
|
}, 1);
|
|
1950
|
-
}, []), h = l.useCallback(function(
|
|
1951
|
-
n.current = mt(
|
|
1952
|
-
}, []), m = l.useCallback(function(
|
|
1953
|
-
u
|
|
1954
|
-
}, []), f = l.useCallback(function(
|
|
1955
|
-
u
|
|
1922
|
+
}, []), h = l.useCallback(function(u) {
|
|
1923
|
+
n.current = mt(u), r.current = void 0;
|
|
1924
|
+
}, []), m = l.useCallback(function(u) {
|
|
1925
|
+
d(u.type, zn(u), u.target, s(u, e.lockRef.current));
|
|
1926
|
+
}, []), f = l.useCallback(function(u) {
|
|
1927
|
+
d(u.type, mt(u), u.target, s(u, e.lockRef.current));
|
|
1956
1928
|
}, []);
|
|
1957
1929
|
l.useEffect(function() {
|
|
1958
|
-
return
|
|
1930
|
+
return Xe.push(o), e.setCallbacks({
|
|
1959
1931
|
onScrollCapture: m,
|
|
1960
1932
|
onWheelCapture: m,
|
|
1961
1933
|
onTouchMoveCapture: f
|
|
1962
|
-
}), document.addEventListener("wheel", c,
|
|
1963
|
-
|
|
1964
|
-
return
|
|
1965
|
-
}), document.removeEventListener("wheel", c,
|
|
1934
|
+
}), document.addEventListener("wheel", c, Ke), document.addEventListener("touchmove", c, Ke), document.addEventListener("touchstart", h, Ke), function() {
|
|
1935
|
+
Xe = Xe.filter(function(u) {
|
|
1936
|
+
return u !== o;
|
|
1937
|
+
}), document.removeEventListener("wheel", c, Ke), document.removeEventListener("touchmove", c, Ke), document.removeEventListener("touchstart", h, Ke);
|
|
1966
1938
|
};
|
|
1967
1939
|
}, []);
|
|
1968
|
-
var
|
|
1940
|
+
var y = e.removeScrollBar, b = e.inert;
|
|
1969
1941
|
return l.createElement(
|
|
1970
1942
|
l.Fragment,
|
|
1971
1943
|
null,
|
|
1972
|
-
b ? l.createElement(o, { styles:
|
|
1973
|
-
|
|
1944
|
+
b ? l.createElement(o, { styles: ks(a) }) : null,
|
|
1945
|
+
y ? l.createElement(Rs, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
1974
1946
|
);
|
|
1975
1947
|
}
|
|
1976
|
-
function
|
|
1948
|
+
function $s(e) {
|
|
1977
1949
|
for (var t = null; e !== null; )
|
|
1978
1950
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1979
1951
|
return t;
|
|
1980
1952
|
}
|
|
1981
|
-
const
|
|
1953
|
+
const Bs = ms(gr, js);
|
|
1982
1954
|
var fn = l.forwardRef(function(e, t) {
|
|
1983
|
-
return l.createElement(Rt, we({}, e, { ref: t, sideCar:
|
|
1955
|
+
return l.createElement(Rt, we({}, e, { ref: t, sideCar: Bs }));
|
|
1984
1956
|
});
|
|
1985
1957
|
fn.classNames = Rt.classNames;
|
|
1986
|
-
const
|
|
1958
|
+
const Hs = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Fs = (e) => e.replace(
|
|
1987
1959
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
1988
1960
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
1989
|
-
),
|
|
1990
|
-
const t =
|
|
1961
|
+
), kn = (e) => {
|
|
1962
|
+
const t = Fs(e);
|
|
1991
1963
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1992
|
-
},
|
|
1964
|
+
}, wr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Ws = (e) => {
|
|
1993
1965
|
for (const t in e)
|
|
1994
1966
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
1995
1967
|
return !0;
|
|
1996
1968
|
};
|
|
1997
|
-
var
|
|
1969
|
+
var Vs = {
|
|
1998
1970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1999
1971
|
width: 24,
|
|
2000
1972
|
height: 24,
|
|
@@ -2005,7 +1977,7 @@ var Gs = {
|
|
|
2005
1977
|
strokeLinecap: "round",
|
|
2006
1978
|
strokeLinejoin: "round"
|
|
2007
1979
|
};
|
|
2008
|
-
const
|
|
1980
|
+
const Us = Et(
|
|
2009
1981
|
({
|
|
2010
1982
|
color: e = "currentColor",
|
|
2011
1983
|
size: t = 24,
|
|
@@ -2019,39 +1991,39 @@ const Ks = Et(
|
|
|
2019
1991
|
"svg",
|
|
2020
1992
|
{
|
|
2021
1993
|
ref: c,
|
|
2022
|
-
...
|
|
1994
|
+
...Vs,
|
|
2023
1995
|
width: t,
|
|
2024
1996
|
height: t,
|
|
2025
1997
|
stroke: e,
|
|
2026
1998
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
2027
|
-
className:
|
|
2028
|
-
...!o && !
|
|
1999
|
+
className: wr("lucide", a),
|
|
2000
|
+
...!o && !Ws(s) && { "aria-hidden": "true" },
|
|
2029
2001
|
...s
|
|
2030
2002
|
},
|
|
2031
2003
|
[
|
|
2032
|
-
...i.map(([
|
|
2004
|
+
...i.map(([d, h]) => Ne(d, h)),
|
|
2033
2005
|
...Array.isArray(o) ? o : [o]
|
|
2034
2006
|
]
|
|
2035
2007
|
)
|
|
2036
2008
|
);
|
|
2037
2009
|
const pn = (e, t) => {
|
|
2038
2010
|
const n = Et(
|
|
2039
|
-
({ className: r, ...a }, o) => Ne(
|
|
2011
|
+
({ className: r, ...a }, o) => Ne(Us, {
|
|
2040
2012
|
ref: o,
|
|
2041
2013
|
iconNode: t,
|
|
2042
|
-
className:
|
|
2043
|
-
`lucide-${
|
|
2014
|
+
className: wr(
|
|
2015
|
+
`lucide-${Hs(kn(e))}`,
|
|
2044
2016
|
`lucide-${e}`,
|
|
2045
2017
|
r
|
|
2046
2018
|
),
|
|
2047
2019
|
...a
|
|
2048
2020
|
})
|
|
2049
2021
|
);
|
|
2050
|
-
return n.displayName =
|
|
2022
|
+
return n.displayName = kn(e), n;
|
|
2051
2023
|
};
|
|
2052
|
-
const
|
|
2053
|
-
const
|
|
2054
|
-
const
|
|
2024
|
+
const Gs = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Ks = pn("check", Gs);
|
|
2025
|
+
const Xs = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Sr = pn("chevron-down", Xs);
|
|
2026
|
+
const Ys = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], qs = pn("chevron-up", Ys), It = Vo(null);
|
|
2055
2027
|
It.displayName = "PanelGroupContext";
|
|
2056
2028
|
const se = {
|
|
2057
2029
|
group: "data-panel-group",
|
|
@@ -2066,13 +2038,13 @@ const se = {
|
|
|
2066
2038
|
resizeHandleEnabled: "data-panel-resize-handle-enabled",
|
|
2067
2039
|
resizeHandleId: "data-panel-resize-handle-id",
|
|
2068
2040
|
resizeHandleState: "data-resize-handle-state"
|
|
2069
|
-
}, mn = 10,
|
|
2070
|
-
let
|
|
2041
|
+
}, mn = 10, Be = Uo, Ln = l.useId, Zs = typeof Ln == "function" ? Ln : () => null;
|
|
2042
|
+
let Js = 0;
|
|
2071
2043
|
function hn(e = null) {
|
|
2072
|
-
const t =
|
|
2073
|
-
return n.current === null && (n.current = "" +
|
|
2044
|
+
const t = Zs(), n = he(e || t || null);
|
|
2045
|
+
return n.current === null && (n.current = "" + Js++), e ?? n.current;
|
|
2074
2046
|
}
|
|
2075
|
-
function
|
|
2047
|
+
function Cr({
|
|
2076
2048
|
children: e,
|
|
2077
2049
|
className: t = "",
|
|
2078
2050
|
collapsedSize: n,
|
|
@@ -2082,20 +2054,20 @@ function Pr({
|
|
|
2082
2054
|
id: i,
|
|
2083
2055
|
maxSize: s,
|
|
2084
2056
|
minSize: c,
|
|
2085
|
-
onCollapse:
|
|
2057
|
+
onCollapse: d,
|
|
2086
2058
|
onExpand: h,
|
|
2087
2059
|
onResize: m,
|
|
2088
2060
|
order: f,
|
|
2089
|
-
style:
|
|
2061
|
+
style: y,
|
|
2090
2062
|
tagName: b = "div",
|
|
2091
|
-
...
|
|
2063
|
+
...u
|
|
2092
2064
|
}) {
|
|
2093
|
-
const
|
|
2094
|
-
if (
|
|
2065
|
+
const g = Kn(It);
|
|
2066
|
+
if (g === null)
|
|
2095
2067
|
throw Error("Panel components must be rendered within a PanelGroup container");
|
|
2096
2068
|
const {
|
|
2097
|
-
collapsePanel:
|
|
2098
|
-
expandPanel:
|
|
2069
|
+
collapsePanel: v,
|
|
2070
|
+
expandPanel: x,
|
|
2099
2071
|
getPanelSize: w,
|
|
2100
2072
|
getPanelStyle: E,
|
|
2101
2073
|
groupId: M,
|
|
@@ -2104,9 +2076,9 @@ function Pr({
|
|
|
2104
2076
|
registerPanel: B,
|
|
2105
2077
|
resizePanel: _,
|
|
2106
2078
|
unregisterPanel: H
|
|
2107
|
-
} =
|
|
2079
|
+
} = g, U = hn(i), k = he({
|
|
2108
2080
|
callbacks: {
|
|
2109
|
-
onCollapse:
|
|
2081
|
+
onCollapse: d,
|
|
2110
2082
|
onExpand: h,
|
|
2111
2083
|
onResize: m
|
|
2112
2084
|
},
|
|
@@ -2123,25 +2095,25 @@ function Pr({
|
|
|
2123
2095
|
});
|
|
2124
2096
|
he({
|
|
2125
2097
|
didLogMissingDefaultSizeWarning: !1
|
|
2126
|
-
}),
|
|
2098
|
+
}), Be(() => {
|
|
2127
2099
|
const {
|
|
2128
2100
|
callbacks: X,
|
|
2129
2101
|
constraints: K
|
|
2130
2102
|
} = k.current, V = {
|
|
2131
2103
|
...K
|
|
2132
2104
|
};
|
|
2133
|
-
k.current.id = U, k.current.idIsFromProps = i !== void 0, k.current.order = f, X.onCollapse =
|
|
2134
|
-
}),
|
|
2105
|
+
k.current.id = U, k.current.idIsFromProps = i !== void 0, k.current.order = f, X.onCollapse = d, X.onExpand = h, X.onResize = m, K.collapsedSize = n, K.collapsible = r, K.defaultSize = a, K.maxSize = s, K.minSize = c, (V.collapsedSize !== K.collapsedSize || V.collapsible !== K.collapsible || V.maxSize !== K.maxSize || V.minSize !== K.minSize) && C(k.current, V);
|
|
2106
|
+
}), Be(() => {
|
|
2135
2107
|
const X = k.current;
|
|
2136
2108
|
return B(X), () => {
|
|
2137
2109
|
H(X);
|
|
2138
2110
|
};
|
|
2139
|
-
}, [f, U, B, H]),
|
|
2111
|
+
}, [f, U, B, H]), Xn(o, () => ({
|
|
2140
2112
|
collapse: () => {
|
|
2141
|
-
|
|
2113
|
+
v(k.current);
|
|
2142
2114
|
},
|
|
2143
2115
|
expand: (X) => {
|
|
2144
|
-
|
|
2116
|
+
x(k.current, X);
|
|
2145
2117
|
},
|
|
2146
2118
|
getId() {
|
|
2147
2119
|
return U;
|
|
@@ -2158,16 +2130,16 @@ function Pr({
|
|
|
2158
2130
|
resize: (X) => {
|
|
2159
2131
|
_(k.current, X);
|
|
2160
2132
|
}
|
|
2161
|
-
}), [
|
|
2133
|
+
}), [v, x, w, I, U, _]);
|
|
2162
2134
|
const j = E(k.current, a);
|
|
2163
2135
|
return Ne(b, {
|
|
2164
|
-
...
|
|
2136
|
+
...u,
|
|
2165
2137
|
children: e,
|
|
2166
2138
|
className: t,
|
|
2167
2139
|
id: U,
|
|
2168
2140
|
style: {
|
|
2169
2141
|
...j,
|
|
2170
|
-
...
|
|
2142
|
+
...y
|
|
2171
2143
|
},
|
|
2172
2144
|
// CSS selectors
|
|
2173
2145
|
[se.groupId]: M,
|
|
@@ -2177,16 +2149,16 @@ function Pr({
|
|
|
2177
2149
|
[se.panelSize]: parseFloat("" + j.flexGrow).toFixed(1)
|
|
2178
2150
|
});
|
|
2179
2151
|
}
|
|
2180
|
-
const
|
|
2152
|
+
const Qs = Et((e, t) => Ne(Cr, {
|
|
2181
2153
|
...e,
|
|
2182
2154
|
forwardedRef: t
|
|
2183
2155
|
}));
|
|
2184
|
-
|
|
2185
|
-
|
|
2156
|
+
Cr.displayName = "Panel";
|
|
2157
|
+
Qs.displayName = "forwardRef(Panel)";
|
|
2186
2158
|
let Qt = null, xt = -1, Te = null;
|
|
2187
|
-
function
|
|
2159
|
+
function ei(e, t) {
|
|
2188
2160
|
if (t) {
|
|
2189
|
-
const n = (t &
|
|
2161
|
+
const n = (t & Ir) !== 0, r = (t & Ar) !== 0, a = (t & Tr) !== 0, o = (t & Mr) !== 0;
|
|
2190
2162
|
if (n)
|
|
2191
2163
|
return a ? "se-resize" : o ? "ne-resize" : "e-resize";
|
|
2192
2164
|
if (r)
|
|
@@ -2205,12 +2177,12 @@ function ni(e, t) {
|
|
|
2205
2177
|
return "ns-resize";
|
|
2206
2178
|
}
|
|
2207
2179
|
}
|
|
2208
|
-
function
|
|
2180
|
+
function ti() {
|
|
2209
2181
|
Te !== null && (document.head.removeChild(Te), Qt = null, Te = null, xt = -1);
|
|
2210
2182
|
}
|
|
2211
2183
|
function Ut(e, t) {
|
|
2212
2184
|
var n, r;
|
|
2213
|
-
const a =
|
|
2185
|
+
const a = ei(e, t);
|
|
2214
2186
|
if (Qt !== a) {
|
|
2215
2187
|
if (Qt = a, Te === null && (Te = document.createElement("style"), document.head.appendChild(Te)), xt >= 0) {
|
|
2216
2188
|
var o;
|
|
@@ -2219,23 +2191,23 @@ function Ut(e, t) {
|
|
|
2219
2191
|
xt = (n = (r = Te.sheet) === null || r === void 0 ? void 0 : r.insertRule(`*{cursor: ${a} !important;}`)) !== null && n !== void 0 ? n : -1;
|
|
2220
2192
|
}
|
|
2221
2193
|
}
|
|
2222
|
-
function
|
|
2194
|
+
function Er(e) {
|
|
2223
2195
|
return e.type === "keydown";
|
|
2224
2196
|
}
|
|
2225
|
-
function
|
|
2197
|
+
function Pr(e) {
|
|
2226
2198
|
return e.type.startsWith("pointer");
|
|
2227
2199
|
}
|
|
2228
|
-
function
|
|
2200
|
+
function Nr(e) {
|
|
2229
2201
|
return e.type.startsWith("mouse");
|
|
2230
2202
|
}
|
|
2231
2203
|
function At(e) {
|
|
2232
|
-
if (
|
|
2204
|
+
if (Pr(e)) {
|
|
2233
2205
|
if (e.isPrimary)
|
|
2234
2206
|
return {
|
|
2235
2207
|
x: e.clientX,
|
|
2236
2208
|
y: e.clientY
|
|
2237
2209
|
};
|
|
2238
|
-
} else if (
|
|
2210
|
+
} else if (Nr(e))
|
|
2239
2211
|
return {
|
|
2240
2212
|
x: e.clientX,
|
|
2241
2213
|
y: e.clientY
|
|
@@ -2245,26 +2217,26 @@ function At(e) {
|
|
|
2245
2217
|
y: 1 / 0
|
|
2246
2218
|
};
|
|
2247
2219
|
}
|
|
2248
|
-
function
|
|
2220
|
+
function ni() {
|
|
2249
2221
|
if (typeof matchMedia == "function")
|
|
2250
2222
|
return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
|
|
2251
2223
|
}
|
|
2252
|
-
function
|
|
2224
|
+
function ri(e, t, n) {
|
|
2253
2225
|
return e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
|
|
2254
2226
|
}
|
|
2255
|
-
function
|
|
2227
|
+
function oi(e, t) {
|
|
2256
2228
|
if (e === t) throw new Error("Cannot compare node with itself");
|
|
2257
2229
|
const n = {
|
|
2258
|
-
a:
|
|
2259
|
-
b:
|
|
2230
|
+
a: Bn(e),
|
|
2231
|
+
b: Bn(t)
|
|
2260
2232
|
};
|
|
2261
2233
|
let r;
|
|
2262
2234
|
for (; n.a.at(-1) === n.b.at(-1); )
|
|
2263
2235
|
e = n.a.pop(), t = n.b.pop(), r = e;
|
|
2264
2236
|
W(r, "Stacking order can only be calculated for elements with a common ancestor");
|
|
2265
2237
|
const a = {
|
|
2266
|
-
a:
|
|
2267
|
-
b:
|
|
2238
|
+
a: $n(jn(n.a)),
|
|
2239
|
+
b: $n(jn(n.b))
|
|
2268
2240
|
};
|
|
2269
2241
|
if (a.a === a.b) {
|
|
2270
2242
|
const o = r.childNodes, i = {
|
|
@@ -2280,43 +2252,43 @@ function si(e, t) {
|
|
|
2280
2252
|
}
|
|
2281
2253
|
return Math.sign(a.a - a.b);
|
|
2282
2254
|
}
|
|
2283
|
-
const
|
|
2284
|
-
function
|
|
2255
|
+
const ai = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
2256
|
+
function si(e) {
|
|
2285
2257
|
var t;
|
|
2286
|
-
const n = getComputedStyle((t =
|
|
2258
|
+
const n = getComputedStyle((t = Rr(e)) !== null && t !== void 0 ? t : e).display;
|
|
2287
2259
|
return n === "flex" || n === "inline-flex";
|
|
2288
2260
|
}
|
|
2289
|
-
function
|
|
2261
|
+
function ii(e) {
|
|
2290
2262
|
const t = getComputedStyle(e);
|
|
2291
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
2263
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || si(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || ai.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
2292
2264
|
}
|
|
2293
|
-
function
|
|
2265
|
+
function jn(e) {
|
|
2294
2266
|
let t = e.length;
|
|
2295
2267
|
for (; t--; ) {
|
|
2296
2268
|
const n = e[t];
|
|
2297
|
-
if (W(n, "Missing node"),
|
|
2269
|
+
if (W(n, "Missing node"), ii(n)) return n;
|
|
2298
2270
|
}
|
|
2299
2271
|
return null;
|
|
2300
2272
|
}
|
|
2301
|
-
function
|
|
2273
|
+
function $n(e) {
|
|
2302
2274
|
return e && Number(getComputedStyle(e).zIndex) || 0;
|
|
2303
2275
|
}
|
|
2304
|
-
function
|
|
2276
|
+
function Bn(e) {
|
|
2305
2277
|
const t = [];
|
|
2306
2278
|
for (; e; )
|
|
2307
|
-
t.push(e), e =
|
|
2279
|
+
t.push(e), e = Rr(e);
|
|
2308
2280
|
return t;
|
|
2309
2281
|
}
|
|
2310
|
-
function
|
|
2282
|
+
function Rr(e) {
|
|
2311
2283
|
const {
|
|
2312
2284
|
parentNode: t
|
|
2313
2285
|
} = e;
|
|
2314
2286
|
return t && t instanceof ShadowRoot ? t.host : t;
|
|
2315
2287
|
}
|
|
2316
|
-
const
|
|
2288
|
+
const Ir = 1, Ar = 2, Tr = 4, Mr = 8, li = ni() === "coarse";
|
|
2317
2289
|
let xe = [], tt = !1, Me = /* @__PURE__ */ new Map(), Tt = /* @__PURE__ */ new Map();
|
|
2318
2290
|
const lt = /* @__PURE__ */ new Set();
|
|
2319
|
-
function
|
|
2291
|
+
function ci(e, t, n, r, a) {
|
|
2320
2292
|
var o;
|
|
2321
2293
|
const {
|
|
2322
2294
|
ownerDocument: i
|
|
@@ -2332,22 +2304,22 @@ function di(e, t, n, r, a) {
|
|
|
2332
2304
|
const m = (h = Me.get(i)) !== null && h !== void 0 ? h : 1;
|
|
2333
2305
|
if (Me.set(i, m - 1), yt(), m === 1 && Me.delete(i), xe.includes(s)) {
|
|
2334
2306
|
const f = xe.indexOf(s);
|
|
2335
|
-
f >= 0 && xe.splice(f, 1),
|
|
2307
|
+
f >= 0 && xe.splice(f, 1), vn(), a("up", !0, null);
|
|
2336
2308
|
}
|
|
2337
2309
|
};
|
|
2338
2310
|
}
|
|
2339
|
-
function
|
|
2311
|
+
function ui(e) {
|
|
2340
2312
|
const {
|
|
2341
2313
|
target: t
|
|
2342
2314
|
} = e, {
|
|
2343
2315
|
x: n,
|
|
2344
2316
|
y: r
|
|
2345
2317
|
} = At(e);
|
|
2346
|
-
tt = !0,
|
|
2318
|
+
tt = !0, gn({
|
|
2347
2319
|
target: t,
|
|
2348
2320
|
x: n,
|
|
2349
2321
|
y: r
|
|
2350
|
-
}), yt(), xe.length > 0 && (bt("down", e), e.preventDefault(),
|
|
2322
|
+
}), yt(), xe.length > 0 && (bt("down", e), e.preventDefault(), Dr(t) || e.stopImmediatePropagation());
|
|
2351
2323
|
}
|
|
2352
2324
|
function Gt(e) {
|
|
2353
2325
|
const {
|
|
@@ -2358,13 +2330,13 @@ function Gt(e) {
|
|
|
2358
2330
|
const {
|
|
2359
2331
|
target: r
|
|
2360
2332
|
} = e;
|
|
2361
|
-
|
|
2333
|
+
gn({
|
|
2362
2334
|
target: r,
|
|
2363
2335
|
x: t,
|
|
2364
2336
|
y: n
|
|
2365
2337
|
});
|
|
2366
2338
|
}
|
|
2367
|
-
bt("move", e),
|
|
2339
|
+
bt("move", e), vn(), xe.length > 0 && e.preventDefault();
|
|
2368
2340
|
}
|
|
2369
2341
|
function Kt(e) {
|
|
2370
2342
|
const {
|
|
@@ -2373,13 +2345,13 @@ function Kt(e) {
|
|
|
2373
2345
|
x: n,
|
|
2374
2346
|
y: r
|
|
2375
2347
|
} = At(e);
|
|
2376
|
-
Tt.clear(), tt = !1, xe.length > 0 && (e.preventDefault(),
|
|
2348
|
+
Tt.clear(), tt = !1, xe.length > 0 && (e.preventDefault(), Dr(t) || e.stopImmediatePropagation()), bt("up", e), gn({
|
|
2377
2349
|
target: t,
|
|
2378
2350
|
x: n,
|
|
2379
2351
|
y: r
|
|
2380
|
-
}),
|
|
2352
|
+
}), vn(), yt();
|
|
2381
2353
|
}
|
|
2382
|
-
function
|
|
2354
|
+
function Dr(e) {
|
|
2383
2355
|
let t = e;
|
|
2384
2356
|
for (; t; ) {
|
|
2385
2357
|
if (t.hasAttribute(se.resizeHandle))
|
|
@@ -2388,7 +2360,7 @@ function zr(e) {
|
|
|
2388
2360
|
}
|
|
2389
2361
|
return !1;
|
|
2390
2362
|
}
|
|
2391
|
-
function
|
|
2363
|
+
function gn({
|
|
2392
2364
|
target: e,
|
|
2393
2365
|
x: t,
|
|
2394
2366
|
y: n
|
|
@@ -2401,24 +2373,24 @@ function vn({
|
|
|
2401
2373
|
hitAreaMargins: i
|
|
2402
2374
|
} = a, s = o.getBoundingClientRect(), {
|
|
2403
2375
|
bottom: c,
|
|
2404
|
-
left:
|
|
2376
|
+
left: d,
|
|
2405
2377
|
right: h,
|
|
2406
2378
|
top: m
|
|
2407
|
-
} = s, f =
|
|
2408
|
-
if (t >=
|
|
2379
|
+
} = s, f = li ? i.coarse : i.fine;
|
|
2380
|
+
if (t >= d - f && t <= h + f && n >= m - f && n <= c + f) {
|
|
2409
2381
|
if (r !== null && document.contains(r) && o !== r && !o.contains(r) && !r.contains(o) && // Calculating stacking order has a cost, so we should avoid it if possible
|
|
2410
2382
|
// That is why we only check potentially intersecting handles,
|
|
2411
2383
|
// and why we skip if the event target is within the handle's DOM
|
|
2412
|
-
|
|
2413
|
-
let b = r,
|
|
2384
|
+
oi(r, o) > 0) {
|
|
2385
|
+
let b = r, u = !1;
|
|
2414
2386
|
for (; b && !b.contains(o); ) {
|
|
2415
|
-
if (
|
|
2416
|
-
|
|
2387
|
+
if (ri(b.getBoundingClientRect(), s)) {
|
|
2388
|
+
u = !0;
|
|
2417
2389
|
break;
|
|
2418
2390
|
}
|
|
2419
2391
|
b = b.parentElement;
|
|
2420
2392
|
}
|
|
2421
|
-
if (
|
|
2393
|
+
if (u)
|
|
2422
2394
|
return;
|
|
2423
2395
|
}
|
|
2424
2396
|
xe.push(a);
|
|
@@ -2428,7 +2400,7 @@ function vn({
|
|
|
2428
2400
|
function Xt(e, t) {
|
|
2429
2401
|
Tt.set(e, t);
|
|
2430
2402
|
}
|
|
2431
|
-
function
|
|
2403
|
+
function vn() {
|
|
2432
2404
|
let e = !1, t = !1;
|
|
2433
2405
|
xe.forEach((r) => {
|
|
2434
2406
|
const {
|
|
@@ -2439,7 +2411,7 @@ function gn() {
|
|
|
2439
2411
|
let n = 0;
|
|
2440
2412
|
Tt.forEach((r) => {
|
|
2441
2413
|
n |= r;
|
|
2442
|
-
}), e && t ? Ut("intersection", n) : e ? Ut("horizontal", n) : t ? Ut("vertical", n) :
|
|
2414
|
+
}), e && t ? Ut("intersection", n) : e ? Ut("horizontal", n) : t ? Ut("vertical", n) : ti();
|
|
2443
2415
|
}
|
|
2444
2416
|
let Yt = new AbortController();
|
|
2445
2417
|
function yt() {
|
|
@@ -2462,7 +2434,7 @@ function yt() {
|
|
|
2462
2434
|
const {
|
|
2463
2435
|
body: r
|
|
2464
2436
|
} = n;
|
|
2465
|
-
t > 0 && (r.addEventListener("pointerdown",
|
|
2437
|
+
t > 0 && (r.addEventListener("pointerdown", ui, e), r.addEventListener("pointermove", Gt, e));
|
|
2466
2438
|
}));
|
|
2467
2439
|
}
|
|
2468
2440
|
function bt(e, t) {
|
|
@@ -2473,7 +2445,7 @@ function bt(e, t) {
|
|
|
2473
2445
|
r(e, a, t);
|
|
2474
2446
|
});
|
|
2475
2447
|
}
|
|
2476
|
-
function
|
|
2448
|
+
function di() {
|
|
2477
2449
|
const [e, t] = De(0);
|
|
2478
2450
|
return me(() => t((n) => n + 1), []);
|
|
2479
2451
|
}
|
|
@@ -2481,21 +2453,21 @@ function W(e, t) {
|
|
|
2481
2453
|
if (!e)
|
|
2482
2454
|
throw Error(t);
|
|
2483
2455
|
}
|
|
2484
|
-
function
|
|
2456
|
+
function Fe(e, t, n = mn) {
|
|
2485
2457
|
return e.toFixed(n) === t.toFixed(n) ? 0 : e > t ? 1 : -1;
|
|
2486
2458
|
}
|
|
2487
2459
|
function Pe(e, t, n = mn) {
|
|
2488
|
-
return
|
|
2460
|
+
return Fe(e, t, n) === 0;
|
|
2489
2461
|
}
|
|
2490
|
-
function
|
|
2491
|
-
return
|
|
2462
|
+
function ge(e, t, n) {
|
|
2463
|
+
return Fe(e, t, n) === 0;
|
|
2492
2464
|
}
|
|
2493
|
-
function
|
|
2465
|
+
function fi(e, t, n) {
|
|
2494
2466
|
if (e.length !== t.length)
|
|
2495
2467
|
return !1;
|
|
2496
2468
|
for (let r = 0; r < e.length; r++) {
|
|
2497
2469
|
const a = e[r], o = t[r];
|
|
2498
|
-
if (!
|
|
2470
|
+
if (!ge(a, o, n))
|
|
2499
2471
|
return !1;
|
|
2500
2472
|
}
|
|
2501
2473
|
return !0;
|
|
@@ -2513,10 +2485,10 @@ function Je({
|
|
|
2513
2485
|
maxSize: i = 100,
|
|
2514
2486
|
minSize: s = 0
|
|
2515
2487
|
} = r;
|
|
2516
|
-
if (
|
|
2488
|
+
if (Fe(n, s) < 0)
|
|
2517
2489
|
if (o) {
|
|
2518
2490
|
const c = (a + s) / 2;
|
|
2519
|
-
|
|
2491
|
+
Fe(n, c) < 0 ? n = a : n = s;
|
|
2520
2492
|
} else
|
|
2521
2493
|
n = s;
|
|
2522
2494
|
return n = Math.min(i, n), n = parseFloat(n.toFixed(mn)), n;
|
|
@@ -2529,25 +2501,25 @@ function ot({
|
|
|
2529
2501
|
prevLayout: a,
|
|
2530
2502
|
trigger: o
|
|
2531
2503
|
}) {
|
|
2532
|
-
if (
|
|
2504
|
+
if (ge(e, 0))
|
|
2533
2505
|
return t;
|
|
2534
2506
|
const i = [...t], [s, c] = r;
|
|
2535
2507
|
W(s != null, "Invalid first pivot index"), W(c != null, "Invalid second pivot index");
|
|
2536
|
-
let
|
|
2508
|
+
let d = 0;
|
|
2537
2509
|
if (o === "keyboard") {
|
|
2538
2510
|
{
|
|
2539
2511
|
const m = e < 0 ? c : s, f = n[m];
|
|
2540
2512
|
W(f, `Panel constraints not found for index ${m}`);
|
|
2541
2513
|
const {
|
|
2542
|
-
collapsedSize:
|
|
2514
|
+
collapsedSize: y = 0,
|
|
2543
2515
|
collapsible: b,
|
|
2544
|
-
minSize:
|
|
2516
|
+
minSize: u = 0
|
|
2545
2517
|
} = f;
|
|
2546
2518
|
if (b) {
|
|
2547
|
-
const
|
|
2548
|
-
if (W(
|
|
2549
|
-
const
|
|
2550
|
-
|
|
2519
|
+
const g = t[m];
|
|
2520
|
+
if (W(g != null, `Previous layout not found for panel index ${m}`), ge(g, y)) {
|
|
2521
|
+
const v = u - g;
|
|
2522
|
+
Fe(v, Math.abs(e)) > 0 && (e = e < 0 ? 0 - v : v);
|
|
2551
2523
|
}
|
|
2552
2524
|
}
|
|
2553
2525
|
}
|
|
@@ -2555,83 +2527,83 @@ function ot({
|
|
|
2555
2527
|
const m = e < 0 ? s : c, f = n[m];
|
|
2556
2528
|
W(f, `No panel constraints found for index ${m}`);
|
|
2557
2529
|
const {
|
|
2558
|
-
collapsedSize:
|
|
2530
|
+
collapsedSize: y = 0,
|
|
2559
2531
|
collapsible: b,
|
|
2560
|
-
minSize:
|
|
2532
|
+
minSize: u = 0
|
|
2561
2533
|
} = f;
|
|
2562
2534
|
if (b) {
|
|
2563
|
-
const
|
|
2564
|
-
if (W(
|
|
2565
|
-
const
|
|
2566
|
-
|
|
2535
|
+
const g = t[m];
|
|
2536
|
+
if (W(g != null, `Previous layout not found for panel index ${m}`), ge(g, u)) {
|
|
2537
|
+
const v = g - y;
|
|
2538
|
+
Fe(v, Math.abs(e)) > 0 && (e = e < 0 ? 0 - v : v);
|
|
2567
2539
|
}
|
|
2568
2540
|
}
|
|
2569
2541
|
}
|
|
2570
2542
|
}
|
|
2571
2543
|
{
|
|
2572
2544
|
const m = e < 0 ? 1 : -1;
|
|
2573
|
-
let f = e < 0 ? c : s,
|
|
2545
|
+
let f = e < 0 ? c : s, y = 0;
|
|
2574
2546
|
for (; ; ) {
|
|
2575
|
-
const
|
|
2576
|
-
W(
|
|
2577
|
-
const
|
|
2547
|
+
const u = t[f];
|
|
2548
|
+
W(u != null, `Previous layout not found for panel index ${f}`);
|
|
2549
|
+
const v = Je({
|
|
2578
2550
|
panelConstraints: n,
|
|
2579
2551
|
panelIndex: f,
|
|
2580
2552
|
size: 100
|
|
2581
|
-
}) -
|
|
2582
|
-
if (
|
|
2553
|
+
}) - u;
|
|
2554
|
+
if (y += v, f += m, f < 0 || f >= n.length)
|
|
2583
2555
|
break;
|
|
2584
2556
|
}
|
|
2585
|
-
const b = Math.min(Math.abs(e), Math.abs(
|
|
2557
|
+
const b = Math.min(Math.abs(e), Math.abs(y));
|
|
2586
2558
|
e = e < 0 ? 0 - b : b;
|
|
2587
2559
|
}
|
|
2588
2560
|
{
|
|
2589
2561
|
let f = e < 0 ? s : c;
|
|
2590
2562
|
for (; f >= 0 && f < n.length; ) {
|
|
2591
|
-
const
|
|
2563
|
+
const y = Math.abs(e) - Math.abs(d), b = t[f];
|
|
2592
2564
|
W(b != null, `Previous layout not found for panel index ${f}`);
|
|
2593
|
-
const
|
|
2565
|
+
const u = b - y, g = Je({
|
|
2594
2566
|
panelConstraints: n,
|
|
2595
2567
|
panelIndex: f,
|
|
2596
|
-
size:
|
|
2568
|
+
size: u
|
|
2597
2569
|
});
|
|
2598
|
-
if (!
|
|
2570
|
+
if (!ge(b, g) && (d += b - g, i[f] = g, d.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3), void 0, {
|
|
2599
2571
|
numeric: !0
|
|
2600
2572
|
}) >= 0))
|
|
2601
2573
|
break;
|
|
2602
2574
|
e < 0 ? f-- : f++;
|
|
2603
2575
|
}
|
|
2604
2576
|
}
|
|
2605
|
-
if (
|
|
2577
|
+
if (fi(a, i))
|
|
2606
2578
|
return a;
|
|
2607
2579
|
{
|
|
2608
2580
|
const m = e < 0 ? c : s, f = t[m];
|
|
2609
2581
|
W(f != null, `Previous layout not found for panel index ${m}`);
|
|
2610
|
-
const
|
|
2582
|
+
const y = f + d, b = Je({
|
|
2611
2583
|
panelConstraints: n,
|
|
2612
2584
|
panelIndex: m,
|
|
2613
|
-
size:
|
|
2585
|
+
size: y
|
|
2614
2586
|
});
|
|
2615
|
-
if (i[m] = b, !
|
|
2616
|
-
let
|
|
2617
|
-
for (;
|
|
2618
|
-
const
|
|
2619
|
-
W(
|
|
2620
|
-
const w =
|
|
2587
|
+
if (i[m] = b, !ge(b, y)) {
|
|
2588
|
+
let u = y - b, v = e < 0 ? c : s;
|
|
2589
|
+
for (; v >= 0 && v < n.length; ) {
|
|
2590
|
+
const x = i[v];
|
|
2591
|
+
W(x != null, `Previous layout not found for panel index ${v}`);
|
|
2592
|
+
const w = x + u, E = Je({
|
|
2621
2593
|
panelConstraints: n,
|
|
2622
|
-
panelIndex:
|
|
2594
|
+
panelIndex: v,
|
|
2623
2595
|
size: w
|
|
2624
2596
|
});
|
|
2625
|
-
if (
|
|
2597
|
+
if (ge(x, E) || (u -= E - x, i[v] = E), ge(u, 0))
|
|
2626
2598
|
break;
|
|
2627
|
-
e > 0 ?
|
|
2599
|
+
e > 0 ? v-- : v++;
|
|
2628
2600
|
}
|
|
2629
2601
|
}
|
|
2630
2602
|
}
|
|
2631
2603
|
const h = i.reduce((m, f) => f + m, 0);
|
|
2632
|
-
return
|
|
2604
|
+
return ge(h, 100) ? i : a;
|
|
2633
2605
|
}
|
|
2634
|
-
function
|
|
2606
|
+
function pi({
|
|
2635
2607
|
layout: e,
|
|
2636
2608
|
panelsArray: t,
|
|
2637
2609
|
pivotIndices: n
|
|
@@ -2640,36 +2612,36 @@ function hi({
|
|
|
2640
2612
|
const s = n[0];
|
|
2641
2613
|
W(s != null, "No pivot index found"), t.forEach((m, f) => {
|
|
2642
2614
|
const {
|
|
2643
|
-
constraints:
|
|
2615
|
+
constraints: y
|
|
2644
2616
|
} = m, {
|
|
2645
2617
|
maxSize: b = 100,
|
|
2646
|
-
minSize:
|
|
2647
|
-
} =
|
|
2648
|
-
f === s ? (r =
|
|
2618
|
+
minSize: u = 0
|
|
2619
|
+
} = y;
|
|
2620
|
+
f === s ? (r = u, a = b) : (o += u, i += b);
|
|
2649
2621
|
});
|
|
2650
|
-
const c = Math.min(a, 100 - o),
|
|
2622
|
+
const c = Math.min(a, 100 - o), d = Math.max(r, 100 - i), h = e[s];
|
|
2651
2623
|
return {
|
|
2652
2624
|
valueMax: c,
|
|
2653
|
-
valueMin:
|
|
2625
|
+
valueMin: d,
|
|
2654
2626
|
valueNow: h
|
|
2655
2627
|
};
|
|
2656
2628
|
}
|
|
2657
2629
|
function ct(e, t = document) {
|
|
2658
2630
|
return Array.from(t.querySelectorAll(`[${se.resizeHandleId}][data-panel-group-id="${e}"]`));
|
|
2659
2631
|
}
|
|
2660
|
-
function
|
|
2632
|
+
function _r(e, t, n = document) {
|
|
2661
2633
|
const a = ct(e, n).findIndex((o) => o.getAttribute(se.resizeHandleId) === t);
|
|
2662
2634
|
return a ?? null;
|
|
2663
2635
|
}
|
|
2664
|
-
function
|
|
2665
|
-
const r =
|
|
2636
|
+
function zr(e, t, n) {
|
|
2637
|
+
const r = _r(e, t, n);
|
|
2666
2638
|
return r != null ? [r, r + 1] : [-1, -1];
|
|
2667
2639
|
}
|
|
2668
|
-
function
|
|
2640
|
+
function mi(e) {
|
|
2669
2641
|
return e instanceof HTMLElement ? !0 : typeof e == "object" && e !== null && "tagName" in e && "getAttribute" in e;
|
|
2670
2642
|
}
|
|
2671
|
-
function
|
|
2672
|
-
if (
|
|
2643
|
+
function Or(e, t = document) {
|
|
2644
|
+
if (mi(t) && t.dataset.panelGroupId == e)
|
|
2673
2645
|
return t;
|
|
2674
2646
|
const n = t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);
|
|
2675
2647
|
return n || null;
|
|
@@ -2678,12 +2650,12 @@ function Mt(e, t = document) {
|
|
|
2678
2650
|
const n = t.querySelector(`[${se.resizeHandleId}="${e}"]`);
|
|
2679
2651
|
return n || null;
|
|
2680
2652
|
}
|
|
2681
|
-
function
|
|
2653
|
+
function hi(e, t, n, r = document) {
|
|
2682
2654
|
var a, o, i, s;
|
|
2683
|
-
const c = Mt(t, r),
|
|
2655
|
+
const c = Mt(t, r), d = ct(e, r), h = c ? d.indexOf(c) : -1, m = (a = (o = n[h]) === null || o === void 0 ? void 0 : o.id) !== null && a !== void 0 ? a : null, f = (i = (s = n[h + 1]) === null || s === void 0 ? void 0 : s.id) !== null && i !== void 0 ? i : null;
|
|
2684
2656
|
return [m, f];
|
|
2685
2657
|
}
|
|
2686
|
-
function
|
|
2658
|
+
function gi({
|
|
2687
2659
|
committedValuesRef: e,
|
|
2688
2660
|
eagerValuesRef: t,
|
|
2689
2661
|
groupId: n,
|
|
@@ -2694,27 +2666,27 @@ function xi({
|
|
|
2694
2666
|
}) {
|
|
2695
2667
|
he({
|
|
2696
2668
|
didWarnAboutMissingResizeHandle: !1
|
|
2697
|
-
}),
|
|
2669
|
+
}), Be(() => {
|
|
2698
2670
|
if (!o)
|
|
2699
2671
|
return;
|
|
2700
2672
|
const s = ct(n, o);
|
|
2701
2673
|
for (let c = 0; c < a.length - 1; c++) {
|
|
2702
2674
|
const {
|
|
2703
|
-
valueMax:
|
|
2675
|
+
valueMax: d,
|
|
2704
2676
|
valueMin: h,
|
|
2705
2677
|
valueNow: m
|
|
2706
|
-
} =
|
|
2678
|
+
} = pi({
|
|
2707
2679
|
layout: r,
|
|
2708
2680
|
panelsArray: a,
|
|
2709
2681
|
pivotIndices: [c, c + 1]
|
|
2710
2682
|
}), f = s[c];
|
|
2711
2683
|
if (f != null) {
|
|
2712
|
-
const
|
|
2713
|
-
W(
|
|
2684
|
+
const y = a[c];
|
|
2685
|
+
W(y, `No panel data found for index "${c}"`), f.setAttribute("aria-controls", y.id), f.setAttribute("aria-valuemax", "" + Math.round(d)), f.setAttribute("aria-valuemin", "" + Math.round(h)), f.setAttribute("aria-valuenow", m != null ? "" + Math.round(m) : "");
|
|
2714
2686
|
}
|
|
2715
2687
|
}
|
|
2716
2688
|
return () => {
|
|
2717
|
-
s.forEach((c,
|
|
2689
|
+
s.forEach((c, d) => {
|
|
2718
2690
|
c.removeAttribute("aria-controls"), c.removeAttribute("aria-valuemax"), c.removeAttribute("aria-valuemin"), c.removeAttribute("aria-valuenow");
|
|
2719
2691
|
});
|
|
2720
2692
|
};
|
|
@@ -2725,37 +2697,37 @@ function xi({
|
|
|
2725
2697
|
W(s, "Eager values not found");
|
|
2726
2698
|
const {
|
|
2727
2699
|
panelDataArray: c
|
|
2728
|
-
} = s,
|
|
2729
|
-
W(
|
|
2700
|
+
} = s, d = Or(n, o);
|
|
2701
|
+
W(d != null, `No group found for id "${n}"`);
|
|
2730
2702
|
const h = ct(n, o);
|
|
2731
2703
|
W(h, `No resize handles found for group id "${n}"`);
|
|
2732
2704
|
const m = h.map((f) => {
|
|
2733
|
-
const
|
|
2734
|
-
W(
|
|
2735
|
-
const [b,
|
|
2736
|
-
if (b == null ||
|
|
2705
|
+
const y = f.getAttribute(se.resizeHandleId);
|
|
2706
|
+
W(y, "Resize handle element has no handle id attribute");
|
|
2707
|
+
const [b, u] = hi(n, y, c, o);
|
|
2708
|
+
if (b == null || u == null)
|
|
2737
2709
|
return () => {
|
|
2738
2710
|
};
|
|
2739
|
-
const
|
|
2740
|
-
if (!
|
|
2741
|
-
switch (
|
|
2711
|
+
const g = (v) => {
|
|
2712
|
+
if (!v.defaultPrevented)
|
|
2713
|
+
switch (v.key) {
|
|
2742
2714
|
case "Enter": {
|
|
2743
|
-
|
|
2744
|
-
const
|
|
2745
|
-
if (
|
|
2746
|
-
const w = c[
|
|
2747
|
-
W(w, `No panel data found for index ${
|
|
2748
|
-
const E = r[
|
|
2715
|
+
v.preventDefault();
|
|
2716
|
+
const x = c.findIndex((w) => w.id === b);
|
|
2717
|
+
if (x >= 0) {
|
|
2718
|
+
const w = c[x];
|
|
2719
|
+
W(w, `No panel data found for index ${x}`);
|
|
2720
|
+
const E = r[x], {
|
|
2749
2721
|
collapsedSize: M = 0,
|
|
2750
2722
|
collapsible: I,
|
|
2751
2723
|
minSize: C = 0
|
|
2752
2724
|
} = w.constraints;
|
|
2753
2725
|
if (E != null && I) {
|
|
2754
2726
|
const B = ot({
|
|
2755
|
-
delta:
|
|
2727
|
+
delta: ge(E, M) ? C - M : M - E,
|
|
2756
2728
|
initialLayout: r,
|
|
2757
2729
|
panelConstraints: c.map((_) => _.constraints),
|
|
2758
|
-
pivotIndices:
|
|
2730
|
+
pivotIndices: zr(n, y, o),
|
|
2759
2731
|
prevLayout: r,
|
|
2760
2732
|
trigger: "keyboard"
|
|
2761
2733
|
});
|
|
@@ -2766,8 +2738,8 @@ function xi({
|
|
|
2766
2738
|
}
|
|
2767
2739
|
}
|
|
2768
2740
|
};
|
|
2769
|
-
return f.addEventListener("keydown",
|
|
2770
|
-
f.removeEventListener("keydown",
|
|
2741
|
+
return f.addEventListener("keydown", g), () => {
|
|
2742
|
+
f.removeEventListener("keydown", g);
|
|
2771
2743
|
};
|
|
2772
2744
|
});
|
|
2773
2745
|
return () => {
|
|
@@ -2775,7 +2747,7 @@ function xi({
|
|
|
2775
2747
|
};
|
|
2776
2748
|
}, [o, e, t, n, r, a, i]);
|
|
2777
2749
|
}
|
|
2778
|
-
function
|
|
2750
|
+
function Hn(e, t) {
|
|
2779
2751
|
if (e.length !== t.length)
|
|
2780
2752
|
return !1;
|
|
2781
2753
|
for (let n = 0; n < e.length; n++)
|
|
@@ -2783,14 +2755,14 @@ function Wn(e, t) {
|
|
|
2783
2755
|
return !1;
|
|
2784
2756
|
return !0;
|
|
2785
2757
|
}
|
|
2786
|
-
function
|
|
2758
|
+
function kr(e, t) {
|
|
2787
2759
|
const n = e === "horizontal", {
|
|
2788
2760
|
x: r,
|
|
2789
2761
|
y: a
|
|
2790
2762
|
} = At(t);
|
|
2791
2763
|
return n ? r : a;
|
|
2792
2764
|
}
|
|
2793
|
-
function
|
|
2765
|
+
function vi(e, t, n, r, a) {
|
|
2794
2766
|
const o = n === "horizontal", i = Mt(t, a);
|
|
2795
2767
|
W(i, `No resize handle element found for id "${t}"`);
|
|
2796
2768
|
const s = i.getAttribute(se.groupId);
|
|
@@ -2798,13 +2770,13 @@ function yi(e, t, n, r, a) {
|
|
|
2798
2770
|
let {
|
|
2799
2771
|
initialCursorPosition: c
|
|
2800
2772
|
} = r;
|
|
2801
|
-
const
|
|
2773
|
+
const d = kr(n, e), h = Or(s, a);
|
|
2802
2774
|
W(h, `No group element found for id "${s}"`);
|
|
2803
2775
|
const m = h.getBoundingClientRect(), f = o ? m.width : m.height;
|
|
2804
|
-
return (
|
|
2776
|
+
return (d - c) / f * 100;
|
|
2805
2777
|
}
|
|
2806
|
-
function
|
|
2807
|
-
if (
|
|
2778
|
+
function xi(e, t, n, r, a, o) {
|
|
2779
|
+
if (Er(e)) {
|
|
2808
2780
|
const i = n === "horizontal";
|
|
2809
2781
|
let s = 0;
|
|
2810
2782
|
e.shiftKey ? s = 100 : a != null ? s = a : s = 10;
|
|
@@ -2831,9 +2803,9 @@ function bi(e, t, n, r, a, o) {
|
|
|
2831
2803
|
}
|
|
2832
2804
|
return c;
|
|
2833
2805
|
} else
|
|
2834
|
-
return r == null ? 0 :
|
|
2806
|
+
return r == null ? 0 : vi(e, t, n, r, o);
|
|
2835
2807
|
}
|
|
2836
|
-
function
|
|
2808
|
+
function yi({
|
|
2837
2809
|
panelDataArray: e
|
|
2838
2810
|
}) {
|
|
2839
2811
|
const t = Array(e.length), n = e.map((o) => o.constraints);
|
|
@@ -2854,12 +2826,12 @@ function wi({
|
|
|
2854
2826
|
} = i;
|
|
2855
2827
|
if (s != null)
|
|
2856
2828
|
continue;
|
|
2857
|
-
const c = e.length - r,
|
|
2858
|
-
r++, t[o] =
|
|
2829
|
+
const c = e.length - r, d = a / c;
|
|
2830
|
+
r++, t[o] = d, a -= d;
|
|
2859
2831
|
}
|
|
2860
2832
|
return t;
|
|
2861
2833
|
}
|
|
2862
|
-
function
|
|
2834
|
+
function Ye(e, t, n) {
|
|
2863
2835
|
t.forEach((r, a) => {
|
|
2864
2836
|
const o = e[a];
|
|
2865
2837
|
W(o, `Panel data not found for index ${a}`);
|
|
@@ -2868,17 +2840,17 @@ function qe(e, t, n) {
|
|
|
2868
2840
|
constraints: s,
|
|
2869
2841
|
id: c
|
|
2870
2842
|
} = o, {
|
|
2871
|
-
collapsedSize:
|
|
2843
|
+
collapsedSize: d = 0,
|
|
2872
2844
|
collapsible: h
|
|
2873
2845
|
} = s, m = n[c];
|
|
2874
2846
|
if (m == null || r !== m) {
|
|
2875
2847
|
n[c] = r;
|
|
2876
2848
|
const {
|
|
2877
2849
|
onCollapse: f,
|
|
2878
|
-
onExpand:
|
|
2850
|
+
onExpand: y,
|
|
2879
2851
|
onResize: b
|
|
2880
2852
|
} = i;
|
|
2881
|
-
b && b(r, m), h && (f ||
|
|
2853
|
+
b && b(r, m), h && (f || y) && (y && (m == null || Pe(m, d)) && !Pe(r, d) && y(), f && (m == null || !Pe(m, d)) && Pe(r, d) && f());
|
|
2882
2854
|
}
|
|
2883
2855
|
});
|
|
2884
2856
|
}
|
|
@@ -2890,7 +2862,7 @@ function ht(e, t) {
|
|
|
2890
2862
|
return !1;
|
|
2891
2863
|
return !0;
|
|
2892
2864
|
}
|
|
2893
|
-
function
|
|
2865
|
+
function bi({
|
|
2894
2866
|
defaultSize: e,
|
|
2895
2867
|
dragState: t,
|
|
2896
2868
|
layout: n,
|
|
@@ -2911,7 +2883,7 @@ function Si({
|
|
|
2911
2883
|
pointerEvents: t !== null ? "none" : void 0
|
|
2912
2884
|
};
|
|
2913
2885
|
}
|
|
2914
|
-
function
|
|
2886
|
+
function wi(e, t = 10) {
|
|
2915
2887
|
let n = null;
|
|
2916
2888
|
return (...a) => {
|
|
2917
2889
|
n !== null && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -2919,7 +2891,7 @@ function Ci(e, t = 10) {
|
|
|
2919
2891
|
}, t);
|
|
2920
2892
|
};
|
|
2921
2893
|
}
|
|
2922
|
-
function
|
|
2894
|
+
function Fn(e) {
|
|
2923
2895
|
try {
|
|
2924
2896
|
if (typeof localStorage < "u")
|
|
2925
2897
|
e.getItem = (t) => localStorage.getItem(t), e.setItem = (t, n) => {
|
|
@@ -2932,10 +2904,10 @@ function Vn(e) {
|
|
|
2932
2904
|
};
|
|
2933
2905
|
}
|
|
2934
2906
|
}
|
|
2935
|
-
function
|
|
2907
|
+
function Lr(e) {
|
|
2936
2908
|
return `react-resizable-panels:${e}`;
|
|
2937
2909
|
}
|
|
2938
|
-
function
|
|
2910
|
+
function jr(e) {
|
|
2939
2911
|
return e.map((t) => {
|
|
2940
2912
|
const {
|
|
2941
2913
|
constraints: n,
|
|
@@ -2946,9 +2918,9 @@ function Br(e) {
|
|
|
2946
2918
|
return a ? r : o ? `${o}:${JSON.stringify(n)}` : JSON.stringify(n);
|
|
2947
2919
|
}).sort((t, n) => t.localeCompare(n)).join(",");
|
|
2948
2920
|
}
|
|
2949
|
-
function
|
|
2921
|
+
function $r(e, t) {
|
|
2950
2922
|
try {
|
|
2951
|
-
const n =
|
|
2923
|
+
const n = Lr(e), r = t.getItem(n);
|
|
2952
2924
|
if (r) {
|
|
2953
2925
|
const a = JSON.parse(r);
|
|
2954
2926
|
if (typeof a == "object" && a != null)
|
|
@@ -2958,14 +2930,14 @@ function Hr(e, t) {
|
|
|
2958
2930
|
}
|
|
2959
2931
|
return null;
|
|
2960
2932
|
}
|
|
2961
|
-
function
|
|
2933
|
+
function Si(e, t, n) {
|
|
2962
2934
|
var r, a;
|
|
2963
|
-
const o = (r =
|
|
2935
|
+
const o = (r = $r(e, n)) !== null && r !== void 0 ? r : {}, i = jr(t);
|
|
2964
2936
|
return (a = o[i]) !== null && a !== void 0 ? a : null;
|
|
2965
2937
|
}
|
|
2966
|
-
function
|
|
2938
|
+
function Ci(e, t, n, r, a) {
|
|
2967
2939
|
var o;
|
|
2968
|
-
const i =
|
|
2940
|
+
const i = Lr(e), s = jr(t), c = (o = $r(e, a)) !== null && o !== void 0 ? o : {};
|
|
2969
2941
|
c[s] = {
|
|
2970
2942
|
expandToSizes: Object.fromEntries(n.entries()),
|
|
2971
2943
|
layout: r
|
|
@@ -2975,14 +2947,14 @@ function Pi(e, t, n, r, a) {
|
|
|
2975
2947
|
} catch {
|
|
2976
2948
|
}
|
|
2977
2949
|
}
|
|
2978
|
-
function
|
|
2950
|
+
function Wn({
|
|
2979
2951
|
layout: e,
|
|
2980
2952
|
panelConstraints: t
|
|
2981
2953
|
}) {
|
|
2982
2954
|
const n = [...e], r = n.reduce((o, i) => o + i, 0);
|
|
2983
2955
|
if (n.length !== t.length)
|
|
2984
2956
|
throw Error(`Invalid ${t.length} panel layout: ${n.map((o) => `${o}%`).join(", ")}`);
|
|
2985
|
-
if (!
|
|
2957
|
+
if (!ge(r, 100) && n.length > 0)
|
|
2986
2958
|
for (let o = 0; o < t.length; o++) {
|
|
2987
2959
|
const i = n[o];
|
|
2988
2960
|
W(i != null, `No layout data found for index ${o}`);
|
|
@@ -3000,7 +2972,7 @@ function Un({
|
|
|
3000
2972
|
});
|
|
3001
2973
|
i != s && (a += i - s, n[o] = s);
|
|
3002
2974
|
}
|
|
3003
|
-
if (!
|
|
2975
|
+
if (!ge(a, 0))
|
|
3004
2976
|
for (let o = 0; o < t.length; o++) {
|
|
3005
2977
|
const i = n[o];
|
|
3006
2978
|
W(i != null, `No layout data found for index ${o}`);
|
|
@@ -3009,18 +2981,18 @@ function Un({
|
|
|
3009
2981
|
panelIndex: o,
|
|
3010
2982
|
size: s
|
|
3011
2983
|
});
|
|
3012
|
-
if (i !== c && (a -= c - i, n[o] = c,
|
|
2984
|
+
if (i !== c && (a -= c - i, n[o] = c, ge(a, 0)))
|
|
3013
2985
|
break;
|
|
3014
2986
|
}
|
|
3015
2987
|
return n;
|
|
3016
2988
|
}
|
|
3017
|
-
const
|
|
3018
|
-
getItem: (e) => (
|
|
2989
|
+
const Ei = 100, at = {
|
|
2990
|
+
getItem: (e) => (Fn(at), at.getItem(e)),
|
|
3019
2991
|
setItem: (e, t) => {
|
|
3020
|
-
|
|
2992
|
+
Fn(at), at.setItem(e, t);
|
|
3021
2993
|
}
|
|
3022
|
-
},
|
|
3023
|
-
function
|
|
2994
|
+
}, Vn = {};
|
|
2995
|
+
function Br({
|
|
3024
2996
|
autoSaveId: e = null,
|
|
3025
2997
|
children: t,
|
|
3026
2998
|
className: n = "",
|
|
@@ -3030,11 +3002,11 @@ function Fr({
|
|
|
3030
3002
|
onLayout: i = null,
|
|
3031
3003
|
keyboardResizeBy: s = null,
|
|
3032
3004
|
storage: c = at,
|
|
3033
|
-
style:
|
|
3005
|
+
style: d,
|
|
3034
3006
|
tagName: h = "div",
|
|
3035
3007
|
...m
|
|
3036
3008
|
}) {
|
|
3037
|
-
const f = hn(o),
|
|
3009
|
+
const f = hn(o), y = he(null), [b, u] = De(null), [g, v] = De([]), x = di(), w = he({}), E = he(/* @__PURE__ */ new Map()), M = he(0), I = he({
|
|
3038
3010
|
autoSaveId: e,
|
|
3039
3011
|
direction: r,
|
|
3040
3012
|
dragState: b,
|
|
@@ -3043,7 +3015,7 @@ function Fr({
|
|
|
3043
3015
|
onLayout: i,
|
|
3044
3016
|
storage: c
|
|
3045
3017
|
}), C = he({
|
|
3046
|
-
layout:
|
|
3018
|
+
layout: g,
|
|
3047
3019
|
panelDataArray: [],
|
|
3048
3020
|
panelDataArrayChanged: !1
|
|
3049
3021
|
});
|
|
@@ -3051,7 +3023,7 @@ function Fr({
|
|
|
3051
3023
|
didLogIdAndOrderWarning: !1,
|
|
3052
3024
|
didLogPanelConstraintsWarning: !1,
|
|
3053
3025
|
prevPanelIds: []
|
|
3054
|
-
}),
|
|
3026
|
+
}), Xn(a, () => ({
|
|
3055
3027
|
getId: () => I.current.id,
|
|
3056
3028
|
getLayout: () => {
|
|
3057
3029
|
const {
|
|
@@ -3065,35 +3037,35 @@ function Fr({
|
|
|
3065
3037
|
} = I.current, {
|
|
3066
3038
|
layout: D,
|
|
3067
3039
|
panelDataArray: T
|
|
3068
|
-
} = C.current, S =
|
|
3040
|
+
} = C.current, S = Wn({
|
|
3069
3041
|
layout: P,
|
|
3070
3042
|
panelConstraints: T.map((N) => N.constraints)
|
|
3071
3043
|
});
|
|
3072
|
-
|
|
3044
|
+
Hn(D, S) || (v(S), C.current.layout = S, A && A(S), Ye(T, S, w.current));
|
|
3073
3045
|
}
|
|
3074
|
-
}), []),
|
|
3046
|
+
}), []), Be(() => {
|
|
3075
3047
|
I.current.autoSaveId = e, I.current.direction = r, I.current.dragState = b, I.current.id = f, I.current.onLayout = i, I.current.storage = c;
|
|
3076
|
-
}),
|
|
3048
|
+
}), gi({
|
|
3077
3049
|
committedValuesRef: I,
|
|
3078
3050
|
eagerValuesRef: C,
|
|
3079
3051
|
groupId: f,
|
|
3080
|
-
layout:
|
|
3052
|
+
layout: g,
|
|
3081
3053
|
panelDataArray: C.current.panelDataArray,
|
|
3082
|
-
setLayout:
|
|
3083
|
-
panelGroupElement:
|
|
3054
|
+
setLayout: v,
|
|
3055
|
+
panelGroupElement: y.current
|
|
3084
3056
|
}), _e(() => {
|
|
3085
3057
|
const {
|
|
3086
3058
|
panelDataArray: P
|
|
3087
3059
|
} = C.current;
|
|
3088
3060
|
if (e) {
|
|
3089
|
-
if (
|
|
3061
|
+
if (g.length === 0 || g.length !== P.length)
|
|
3090
3062
|
return;
|
|
3091
|
-
let A =
|
|
3092
|
-
A == null && (A = Ci
|
|
3063
|
+
let A = Vn[e];
|
|
3064
|
+
A == null && (A = wi(Ci, Ei), Vn[e] = A);
|
|
3093
3065
|
const D = [...P], T = new Map(E.current);
|
|
3094
|
-
A(e, D, T,
|
|
3066
|
+
A(e, D, T, g, c);
|
|
3095
3067
|
}
|
|
3096
|
-
}, [e,
|
|
3068
|
+
}, [e, g, c]), _e(() => {
|
|
3097
3069
|
});
|
|
3098
3070
|
const B = me((P) => {
|
|
3099
3071
|
const {
|
|
@@ -3110,7 +3082,7 @@ function Fr({
|
|
|
3110
3082
|
} = $e(T, P, D);
|
|
3111
3083
|
if (W(L != null, `Panel size not found for panel "${P.id}"`), !Pe(L, N)) {
|
|
3112
3084
|
E.current.set(P.id, L);
|
|
3113
|
-
const $ =
|
|
3085
|
+
const $ = qe(T, P) === T.length - 1 ? L - N : N - L, G = ot({
|
|
3114
3086
|
delta: $,
|
|
3115
3087
|
initialLayout: D,
|
|
3116
3088
|
panelConstraints: S,
|
|
@@ -3118,7 +3090,7 @@ function Fr({
|
|
|
3118
3090
|
prevLayout: D,
|
|
3119
3091
|
trigger: "imperative-api"
|
|
3120
3092
|
});
|
|
3121
|
-
ht(D, G) || (
|
|
3093
|
+
ht(D, G) || (v(G), C.current.layout = G, A && A(G), Ye(T, G, w.current));
|
|
3122
3094
|
}
|
|
3123
3095
|
}
|
|
3124
3096
|
}, []), _ = me((P, A) => {
|
|
@@ -3136,7 +3108,7 @@ function Fr({
|
|
|
3136
3108
|
pivotIndices: $
|
|
3137
3109
|
} = $e(S, P, T), G = A ?? F;
|
|
3138
3110
|
if (Pe(O, L)) {
|
|
3139
|
-
const R = E.current.get(P.id), z = R != null && R >= G ? R : G, ae =
|
|
3111
|
+
const R = E.current.get(P.id), z = R != null && R >= G ? R : G, ae = qe(S, P) === S.length - 1 ? O - z : z - O, q = ot({
|
|
3140
3112
|
delta: ae,
|
|
3141
3113
|
initialLayout: T,
|
|
3142
3114
|
panelConstraints: N,
|
|
@@ -3144,7 +3116,7 @@ function Fr({
|
|
|
3144
3116
|
prevLayout: T,
|
|
3145
3117
|
trigger: "imperative-api"
|
|
3146
3118
|
});
|
|
3147
|
-
ht(T, q) || (
|
|
3119
|
+
ht(T, q) || (v(q), C.current.layout = q, D && D(q), Ye(S, q, w.current));
|
|
3148
3120
|
}
|
|
3149
3121
|
}
|
|
3150
3122
|
}, []), H = me((P) => {
|
|
@@ -3158,15 +3130,15 @@ function Fr({
|
|
|
3158
3130
|
}, []), U = me((P, A) => {
|
|
3159
3131
|
const {
|
|
3160
3132
|
panelDataArray: D
|
|
3161
|
-
} = C.current, T =
|
|
3162
|
-
return
|
|
3133
|
+
} = C.current, T = qe(D, P);
|
|
3134
|
+
return bi({
|
|
3163
3135
|
defaultSize: A,
|
|
3164
3136
|
dragState: b,
|
|
3165
|
-
layout:
|
|
3137
|
+
layout: g,
|
|
3166
3138
|
panelData: D,
|
|
3167
3139
|
panelIndex: T
|
|
3168
3140
|
});
|
|
3169
|
-
}, [b,
|
|
3141
|
+
}, [b, g]), k = me((P) => {
|
|
3170
3142
|
const {
|
|
3171
3143
|
layout: A,
|
|
3172
3144
|
panelDataArray: D
|
|
@@ -3185,7 +3157,7 @@ function Fr({
|
|
|
3185
3157
|
collapsible: S,
|
|
3186
3158
|
panelSize: N
|
|
3187
3159
|
} = $e(D, P, A);
|
|
3188
|
-
return W(N != null, `Panel size not found for panel "${P.id}"`), !S ||
|
|
3160
|
+
return W(N != null, `Panel size not found for panel "${P.id}"`), !S || Fe(N, T) > 0;
|
|
3189
3161
|
}, []), X = me((P) => {
|
|
3190
3162
|
const {
|
|
3191
3163
|
panelDataArray: A
|
|
@@ -3193,9 +3165,9 @@ function Fr({
|
|
|
3193
3165
|
A.push(P), A.sort((D, T) => {
|
|
3194
3166
|
const S = D.order, N = T.order;
|
|
3195
3167
|
return S == null && N == null ? 0 : S == null ? -1 : N == null ? 1 : S - N;
|
|
3196
|
-
}), C.current.panelDataArrayChanged = !0,
|
|
3197
|
-
}, [
|
|
3198
|
-
|
|
3168
|
+
}), C.current.panelDataArrayChanged = !0, x();
|
|
3169
|
+
}, [x]);
|
|
3170
|
+
Be(() => {
|
|
3199
3171
|
if (C.current.panelDataArrayChanged) {
|
|
3200
3172
|
C.current.panelDataArrayChanged = !1;
|
|
3201
3173
|
const {
|
|
@@ -3208,19 +3180,19 @@ function Fr({
|
|
|
3208
3180
|
} = C.current;
|
|
3209
3181
|
let N = null;
|
|
3210
3182
|
if (P) {
|
|
3211
|
-
const O =
|
|
3183
|
+
const O = Si(P, S, D);
|
|
3212
3184
|
O && (E.current = new Map(Object.entries(O.expandToSizes)), N = O.layout);
|
|
3213
3185
|
}
|
|
3214
|
-
N == null && (N =
|
|
3186
|
+
N == null && (N = yi({
|
|
3215
3187
|
panelDataArray: S
|
|
3216
3188
|
}));
|
|
3217
|
-
const L =
|
|
3189
|
+
const L = Wn({
|
|
3218
3190
|
layout: N,
|
|
3219
3191
|
panelConstraints: S.map((O) => O.constraints)
|
|
3220
3192
|
});
|
|
3221
|
-
|
|
3193
|
+
Hn(T, L) || (v(L), C.current.layout = L, A && A(L), Ye(S, L, w.current));
|
|
3222
3194
|
}
|
|
3223
|
-
}),
|
|
3195
|
+
}), Be(() => {
|
|
3224
3196
|
const P = C.current;
|
|
3225
3197
|
return () => {
|
|
3226
3198
|
P.layout = [];
|
|
@@ -3228,10 +3200,10 @@ function Fr({
|
|
|
3228
3200
|
}, []);
|
|
3229
3201
|
const K = me((P) => {
|
|
3230
3202
|
let A = !1;
|
|
3231
|
-
const D =
|
|
3203
|
+
const D = y.current;
|
|
3232
3204
|
return D && window.getComputedStyle(D, null).getPropertyValue("direction") === "rtl" && (A = !0), function(S) {
|
|
3233
3205
|
S.preventDefault();
|
|
3234
|
-
const N =
|
|
3206
|
+
const N = y.current;
|
|
3235
3207
|
if (!N)
|
|
3236
3208
|
return () => null;
|
|
3237
3209
|
const {
|
|
@@ -3245,8 +3217,8 @@ function Fr({
|
|
|
3245
3217
|
panelDataArray: z
|
|
3246
3218
|
} = C.current, {
|
|
3247
3219
|
initialLayout: ee
|
|
3248
|
-
} = O ?? {}, ae =
|
|
3249
|
-
let q =
|
|
3220
|
+
} = O ?? {}, ae = zr(F, P, N);
|
|
3221
|
+
let q = xi(S, P, L, O, $, N);
|
|
3250
3222
|
const Y = L === "horizontal";
|
|
3251
3223
|
Y && A && (q = -q);
|
|
3252
3224
|
const fe = z.map((Se) => Se.constraints), be = ot({
|
|
@@ -3255,9 +3227,9 @@ function Fr({
|
|
|
3255
3227
|
panelConstraints: fe,
|
|
3256
3228
|
pivotIndices: ae,
|
|
3257
3229
|
prevLayout: R,
|
|
3258
|
-
trigger:
|
|
3230
|
+
trigger: Er(S) ? "keyboard" : "mouse-or-touch"
|
|
3259
3231
|
}), pe = !ht(R, be);
|
|
3260
|
-
(
|
|
3232
|
+
(Pr(S) || Nr(S)) && M.current != q && (M.current = q, !pe && q !== 0 ? Y ? Xt(P, q < 0 ? Ir : Ar) : Xt(P, q < 0 ? Tr : Mr) : Xt(P, 0)), pe && (v(be), C.current.layout = be, G && G(be), Ye(z, be, w.current));
|
|
3261
3233
|
};
|
|
3262
3234
|
}, []), V = me((P, A) => {
|
|
3263
3235
|
const {
|
|
@@ -3270,7 +3242,7 @@ function Fr({
|
|
|
3270
3242
|
pivotIndices: O
|
|
3271
3243
|
} = $e(S, P, T);
|
|
3272
3244
|
W(L != null, `Panel size not found for panel "${P.id}"`);
|
|
3273
|
-
const $ =
|
|
3245
|
+
const $ = qe(S, P) === S.length - 1 ? L - A : A - L, G = ot({
|
|
3274
3246
|
delta: $,
|
|
3275
3247
|
initialLayout: T,
|
|
3276
3248
|
panelConstraints: N,
|
|
@@ -3278,7 +3250,7 @@ function Fr({
|
|
|
3278
3250
|
prevLayout: T,
|
|
3279
3251
|
trigger: "imperative-api"
|
|
3280
3252
|
});
|
|
3281
|
-
ht(T, G) || (
|
|
3253
|
+
ht(T, G) || (v(G), C.current.layout = G, D && D(G), Ye(S, G, w.current));
|
|
3282
3254
|
}, []), Q = me((P, A) => {
|
|
3283
3255
|
const {
|
|
3284
3256
|
layout: D,
|
|
@@ -3301,25 +3273,25 @@ function Fr({
|
|
|
3301
3273
|
} = I.current, {
|
|
3302
3274
|
layout: T
|
|
3303
3275
|
} = C.current;
|
|
3304
|
-
if (!
|
|
3276
|
+
if (!y.current)
|
|
3305
3277
|
return;
|
|
3306
|
-
const S = Mt(P,
|
|
3278
|
+
const S = Mt(P, y.current);
|
|
3307
3279
|
W(S, `Drag handle element not found for id "${P}"`);
|
|
3308
|
-
const N =
|
|
3309
|
-
|
|
3280
|
+
const N = kr(D, A);
|
|
3281
|
+
u({
|
|
3310
3282
|
dragHandleId: P,
|
|
3311
3283
|
dragHandleRect: S.getBoundingClientRect(),
|
|
3312
3284
|
initialCursorPosition: N,
|
|
3313
3285
|
initialLayout: T
|
|
3314
3286
|
});
|
|
3315
3287
|
}, []), Z = me(() => {
|
|
3316
|
-
|
|
3288
|
+
u(null);
|
|
3317
3289
|
}, []), de = me((P) => {
|
|
3318
3290
|
const {
|
|
3319
3291
|
panelDataArray: A
|
|
3320
|
-
} = C.current, D =
|
|
3321
|
-
D >= 0 && (A.splice(D, 1), delete w.current[P.id], C.current.panelDataArrayChanged = !0,
|
|
3322
|
-
}, [
|
|
3292
|
+
} = C.current, D = qe(A, P);
|
|
3293
|
+
D >= 0 && (A.splice(D, 1), delete w.current[P.id], C.current.panelDataArrayChanged = !0, x());
|
|
3294
|
+
}, [x]), re = Go(() => ({
|
|
3323
3295
|
collapsePanel: B,
|
|
3324
3296
|
direction: r,
|
|
3325
3297
|
dragState: b,
|
|
@@ -3336,7 +3308,7 @@ function Fr({
|
|
|
3336
3308
|
startDragging: J,
|
|
3337
3309
|
stopDragging: Z,
|
|
3338
3310
|
unregisterPanel: de,
|
|
3339
|
-
panelGroupElement:
|
|
3311
|
+
panelGroupElement: y.current
|
|
3340
3312
|
}), [B, b, r, _, H, U, f, k, j, Q, X, K, V, J, Z, de]), le = {
|
|
3341
3313
|
display: "flex",
|
|
3342
3314
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
@@ -3351,10 +3323,10 @@ function Fr({
|
|
|
3351
3323
|
children: t,
|
|
3352
3324
|
className: n,
|
|
3353
3325
|
id: o,
|
|
3354
|
-
ref:
|
|
3326
|
+
ref: y,
|
|
3355
3327
|
style: {
|
|
3356
3328
|
...le,
|
|
3357
|
-
...
|
|
3329
|
+
...d
|
|
3358
3330
|
},
|
|
3359
3331
|
// CSS selectors
|
|
3360
3332
|
[se.group]: "",
|
|
@@ -3362,24 +3334,24 @@ function Fr({
|
|
|
3362
3334
|
[se.groupId]: f
|
|
3363
3335
|
}));
|
|
3364
3336
|
}
|
|
3365
|
-
const
|
|
3337
|
+
const Pi = Et((e, t) => Ne(Br, {
|
|
3366
3338
|
...e,
|
|
3367
3339
|
forwardedRef: t
|
|
3368
3340
|
}));
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
function
|
|
3341
|
+
Br.displayName = "PanelGroup";
|
|
3342
|
+
Pi.displayName = "forwardRef(PanelGroup)";
|
|
3343
|
+
function qe(e, t) {
|
|
3372
3344
|
return e.findIndex((n) => n === t || n.id === t.id);
|
|
3373
3345
|
}
|
|
3374
3346
|
function $e(e, t, n) {
|
|
3375
|
-
const r =
|
|
3347
|
+
const r = qe(e, t), o = r === e.length - 1 ? [r - 1, r] : [r, r + 1], i = n[r];
|
|
3376
3348
|
return {
|
|
3377
3349
|
...t.constraints,
|
|
3378
3350
|
panelSize: i,
|
|
3379
3351
|
pivotIndices: o
|
|
3380
3352
|
};
|
|
3381
3353
|
}
|
|
3382
|
-
function
|
|
3354
|
+
function Ni({
|
|
3383
3355
|
disabled: e,
|
|
3384
3356
|
handleId: t,
|
|
3385
3357
|
resizeHandler: n,
|
|
@@ -3407,9 +3379,9 @@ function Ii({
|
|
|
3407
3379
|
i.preventDefault();
|
|
3408
3380
|
const s = a.getAttribute(se.groupId);
|
|
3409
3381
|
W(s, `No group element found for id "${s}"`);
|
|
3410
|
-
const c = ct(s, r),
|
|
3411
|
-
W(
|
|
3412
|
-
const h = i.shiftKey ?
|
|
3382
|
+
const c = ct(s, r), d = _r(s, t, r);
|
|
3383
|
+
W(d !== null, `No resize element found for id "${t}"`);
|
|
3384
|
+
const h = i.shiftKey ? d > 0 ? d - 1 : c.length - 1 : d + 1 < c.length ? d + 1 : 0;
|
|
3413
3385
|
c[h].focus();
|
|
3414
3386
|
break;
|
|
3415
3387
|
}
|
|
@@ -3420,7 +3392,7 @@ function Ii({
|
|
|
3420
3392
|
};
|
|
3421
3393
|
}, [r, e, t, n]);
|
|
3422
3394
|
}
|
|
3423
|
-
function
|
|
3395
|
+
function Ri({
|
|
3424
3396
|
children: e = null,
|
|
3425
3397
|
className: t = "",
|
|
3426
3398
|
disabled: n = !1,
|
|
@@ -3430,24 +3402,24 @@ function Ai({
|
|
|
3430
3402
|
onClick: i,
|
|
3431
3403
|
onDragging: s,
|
|
3432
3404
|
onFocus: c,
|
|
3433
|
-
onPointerDown:
|
|
3405
|
+
onPointerDown: d,
|
|
3434
3406
|
onPointerUp: h,
|
|
3435
3407
|
style: m = {},
|
|
3436
3408
|
tabIndex: f = 0,
|
|
3437
|
-
tagName:
|
|
3409
|
+
tagName: y = "div",
|
|
3438
3410
|
...b
|
|
3439
3411
|
}) {
|
|
3440
|
-
var
|
|
3441
|
-
const
|
|
3412
|
+
var u, g;
|
|
3413
|
+
const v = he(null), x = he({
|
|
3442
3414
|
onClick: i,
|
|
3443
3415
|
onDragging: s,
|
|
3444
|
-
onPointerDown:
|
|
3416
|
+
onPointerDown: d,
|
|
3445
3417
|
onPointerUp: h
|
|
3446
3418
|
});
|
|
3447
3419
|
_e(() => {
|
|
3448
|
-
|
|
3420
|
+
x.current.onClick = i, x.current.onDragging = s, x.current.onPointerDown = d, x.current.onPointerUp = h;
|
|
3449
3421
|
});
|
|
3450
|
-
const w =
|
|
3422
|
+
const w = Kn(It);
|
|
3451
3423
|
if (w === null)
|
|
3452
3424
|
throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
3453
3425
|
const {
|
|
@@ -3460,7 +3432,7 @@ function Ai({
|
|
|
3460
3432
|
} = w, H = hn(a), [U, k] = De("inactive"), [j, X] = De(!1), [K, V] = De(null), Q = he({
|
|
3461
3433
|
state: U
|
|
3462
3434
|
});
|
|
3463
|
-
|
|
3435
|
+
Be(() => {
|
|
3464
3436
|
Q.current.state = U;
|
|
3465
3437
|
}), _e(() => {
|
|
3466
3438
|
if (n)
|
|
@@ -3470,14 +3442,14 @@ function Ai({
|
|
|
3470
3442
|
V(() => re);
|
|
3471
3443
|
}
|
|
3472
3444
|
}, [n, H, I]);
|
|
3473
|
-
const J = (
|
|
3445
|
+
const J = (u = r == null ? void 0 : r.coarse) !== null && u !== void 0 ? u : 15, Z = (g = r == null ? void 0 : r.fine) !== null && g !== void 0 ? g : 5;
|
|
3474
3446
|
return _e(() => {
|
|
3475
3447
|
if (n || K == null)
|
|
3476
3448
|
return;
|
|
3477
|
-
const re =
|
|
3449
|
+
const re = v.current;
|
|
3478
3450
|
W(re, "Element ref not attached");
|
|
3479
3451
|
let le = !1;
|
|
3480
|
-
return
|
|
3452
|
+
return ci(H, re, E, {
|
|
3481
3453
|
coarse: J,
|
|
3482
3454
|
fine: Z
|
|
3483
3455
|
}, (A, D, T) => {
|
|
@@ -3491,7 +3463,7 @@ function Ai({
|
|
|
3491
3463
|
const {
|
|
3492
3464
|
onDragging: S,
|
|
3493
3465
|
onPointerDown: N
|
|
3494
|
-
} =
|
|
3466
|
+
} = x.current;
|
|
3495
3467
|
S == null || S(!0), N == null || N();
|
|
3496
3468
|
break;
|
|
3497
3469
|
}
|
|
@@ -3508,18 +3480,18 @@ function Ai({
|
|
|
3508
3480
|
onClick: S,
|
|
3509
3481
|
onDragging: N,
|
|
3510
3482
|
onPointerUp: L
|
|
3511
|
-
} =
|
|
3483
|
+
} = x.current;
|
|
3512
3484
|
N == null || N(!1), L == null || L(), le || S == null || S();
|
|
3513
3485
|
break;
|
|
3514
3486
|
}
|
|
3515
3487
|
}
|
|
3516
3488
|
});
|
|
3517
|
-
}, [J, E, n, Z, I, H, K, C, B]),
|
|
3489
|
+
}, [J, E, n, Z, I, H, K, C, B]), Ni({
|
|
3518
3490
|
disabled: n,
|
|
3519
3491
|
handleId: H,
|
|
3520
3492
|
resizeHandler: K,
|
|
3521
3493
|
panelGroupElement: _
|
|
3522
|
-
}), Ne(
|
|
3494
|
+
}), Ne(y, {
|
|
3523
3495
|
...b,
|
|
3524
3496
|
children: e,
|
|
3525
3497
|
className: t,
|
|
@@ -3530,7 +3502,7 @@ function Ai({
|
|
|
3530
3502
|
onFocus: () => {
|
|
3531
3503
|
X(!0), c == null || c();
|
|
3532
3504
|
},
|
|
3533
|
-
ref:
|
|
3505
|
+
ref: v,
|
|
3534
3506
|
role: "separator",
|
|
3535
3507
|
style: {
|
|
3536
3508
|
...{
|
|
@@ -3550,8 +3522,8 @@ function Ai({
|
|
|
3550
3522
|
[se.resizeHandleState]: U
|
|
3551
3523
|
});
|
|
3552
3524
|
}
|
|
3553
|
-
|
|
3554
|
-
var Dt = "Dialog", [
|
|
3525
|
+
Ri.displayName = "PanelResizeHandle";
|
|
3526
|
+
var Dt = "Dialog", [Hr, dc] = Pt(Dt), [Ii, ye] = Hr(Dt), Fr = (e) => {
|
|
3555
3527
|
const {
|
|
3556
3528
|
__scopeDialog: t,
|
|
3557
3529
|
children: n,
|
|
@@ -3559,14 +3531,14 @@ var Dt = "Dialog", [Wr, fc] = Pt(Dt), [Ti, ye] = Wr(Dt), Vr = (e) => {
|
|
|
3559
3531
|
defaultOpen: a,
|
|
3560
3532
|
onOpenChange: o,
|
|
3561
3533
|
modal: i = !0
|
|
3562
|
-
} = e, s = l.useRef(null), c = l.useRef(null), [
|
|
3534
|
+
} = e, s = l.useRef(null), c = l.useRef(null), [d, h] = qt({
|
|
3563
3535
|
prop: r,
|
|
3564
3536
|
defaultProp: a ?? !1,
|
|
3565
3537
|
onChange: o,
|
|
3566
3538
|
caller: Dt
|
|
3567
3539
|
});
|
|
3568
3540
|
return /* @__PURE__ */ p.jsx(
|
|
3569
|
-
|
|
3541
|
+
Ii,
|
|
3570
3542
|
{
|
|
3571
3543
|
scope: t,
|
|
3572
3544
|
triggerRef: s,
|
|
@@ -3574,7 +3546,7 @@ var Dt = "Dialog", [Wr, fc] = Pt(Dt), [Ti, ye] = Wr(Dt), Vr = (e) => {
|
|
|
3574
3546
|
contentId: Qe(),
|
|
3575
3547
|
titleId: Qe(),
|
|
3576
3548
|
descriptionId: Qe(),
|
|
3577
|
-
open:
|
|
3549
|
+
open: d,
|
|
3578
3550
|
onOpenChange: h,
|
|
3579
3551
|
onOpenToggle: l.useCallback(() => h((m) => !m), [h]),
|
|
3580
3552
|
modal: i,
|
|
@@ -3582,10 +3554,10 @@ var Dt = "Dialog", [Wr, fc] = Pt(Dt), [Ti, ye] = Wr(Dt), Vr = (e) => {
|
|
|
3582
3554
|
}
|
|
3583
3555
|
);
|
|
3584
3556
|
};
|
|
3585
|
-
|
|
3586
|
-
var
|
|
3557
|
+
Fr.displayName = Dt;
|
|
3558
|
+
var Wr = "DialogTrigger", Vr = l.forwardRef(
|
|
3587
3559
|
(e, t) => {
|
|
3588
|
-
const { __scopeDialog: n, ...r } = e, a = ye(
|
|
3560
|
+
const { __scopeDialog: n, ...r } = e, a = ye(Wr, n), o = ie(t, a.triggerRef);
|
|
3589
3561
|
return /* @__PURE__ */ p.jsx(
|
|
3590
3562
|
te.button,
|
|
3591
3563
|
{
|
|
@@ -3601,28 +3573,28 @@ var Ur = "DialogTrigger", Gr = l.forwardRef(
|
|
|
3601
3573
|
);
|
|
3602
3574
|
}
|
|
3603
3575
|
);
|
|
3604
|
-
|
|
3605
|
-
var xn = "DialogPortal", [
|
|
3576
|
+
Vr.displayName = Wr;
|
|
3577
|
+
var xn = "DialogPortal", [Ai, Ur] = Hr(xn, {
|
|
3606
3578
|
forceMount: void 0
|
|
3607
|
-
}),
|
|
3579
|
+
}), Gr = (e) => {
|
|
3608
3580
|
const { __scopeDialog: t, forceMount: n, children: r, container: a } = e, o = ye(xn, t);
|
|
3609
|
-
return /* @__PURE__ */ p.jsx(
|
|
3581
|
+
return /* @__PURE__ */ p.jsx(Ai, { scope: t, forceMount: n, children: l.Children.map(r, (i) => /* @__PURE__ */ p.jsx(Nt, { present: n || o.open, children: /* @__PURE__ */ p.jsx(dn, { asChild: !0, container: a, children: i }) })) });
|
|
3610
3582
|
};
|
|
3611
|
-
|
|
3612
|
-
var wt = "DialogOverlay",
|
|
3583
|
+
Gr.displayName = xn;
|
|
3584
|
+
var wt = "DialogOverlay", Kr = l.forwardRef(
|
|
3613
3585
|
(e, t) => {
|
|
3614
|
-
const n =
|
|
3615
|
-
return o.modal ? /* @__PURE__ */ p.jsx(Nt, { present: r || o.open, children: /* @__PURE__ */ p.jsx(
|
|
3586
|
+
const n = Ur(wt, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = ye(wt, e.__scopeDialog);
|
|
3587
|
+
return o.modal ? /* @__PURE__ */ p.jsx(Nt, { present: r || o.open, children: /* @__PURE__ */ p.jsx(Mi, { ...a, ref: t }) }) : null;
|
|
3616
3588
|
}
|
|
3617
3589
|
);
|
|
3618
|
-
|
|
3619
|
-
var
|
|
3590
|
+
Kr.displayName = wt;
|
|
3591
|
+
var Ti = it("DialogOverlay.RemoveScroll"), Mi = l.forwardRef(
|
|
3620
3592
|
(e, t) => {
|
|
3621
3593
|
const { __scopeDialog: n, ...r } = e, a = ye(wt, n);
|
|
3622
3594
|
return (
|
|
3623
3595
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
3624
3596
|
// ie. when `Overlay` and `Content` are siblings
|
|
3625
|
-
/* @__PURE__ */ p.jsx(fn, { as:
|
|
3597
|
+
/* @__PURE__ */ p.jsx(fn, { as: Ti, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ p.jsx(
|
|
3626
3598
|
te.div,
|
|
3627
3599
|
{
|
|
3628
3600
|
"data-state": bn(a.open),
|
|
@@ -3633,21 +3605,21 @@ var Di = it("DialogOverlay.RemoveScroll"), _i = l.forwardRef(
|
|
|
3633
3605
|
) })
|
|
3634
3606
|
);
|
|
3635
3607
|
}
|
|
3636
|
-
),
|
|
3608
|
+
), We = "DialogContent", Xr = l.forwardRef(
|
|
3637
3609
|
(e, t) => {
|
|
3638
|
-
const n =
|
|
3639
|
-
return /* @__PURE__ */ p.jsx(Nt, { present: r || o.open, children: o.modal ? /* @__PURE__ */ p.jsx(
|
|
3610
|
+
const n = Ur(We, e.__scopeDialog), { forceMount: r = n.forceMount, ...a } = e, o = ye(We, e.__scopeDialog);
|
|
3611
|
+
return /* @__PURE__ */ p.jsx(Nt, { present: r || o.open, children: o.modal ? /* @__PURE__ */ p.jsx(Di, { ...a, ref: t }) : /* @__PURE__ */ p.jsx(_i, { ...a, ref: t }) });
|
|
3640
3612
|
}
|
|
3641
3613
|
);
|
|
3642
|
-
|
|
3643
|
-
var
|
|
3614
|
+
Xr.displayName = We;
|
|
3615
|
+
var Di = l.forwardRef(
|
|
3644
3616
|
(e, t) => {
|
|
3645
|
-
const n = ye(
|
|
3617
|
+
const n = ye(We, e.__scopeDialog), r = l.useRef(null), a = ie(t, n.contentRef, r);
|
|
3646
3618
|
return l.useEffect(() => {
|
|
3647
3619
|
const o = r.current;
|
|
3648
|
-
if (o) return
|
|
3620
|
+
if (o) return pr(o);
|
|
3649
3621
|
}, []), /* @__PURE__ */ p.jsx(
|
|
3650
|
-
|
|
3622
|
+
Yr,
|
|
3651
3623
|
{
|
|
3652
3624
|
...e,
|
|
3653
3625
|
ref: a,
|
|
@@ -3668,11 +3640,11 @@ var zi = l.forwardRef(
|
|
|
3668
3640
|
}
|
|
3669
3641
|
);
|
|
3670
3642
|
}
|
|
3671
|
-
),
|
|
3643
|
+
), _i = l.forwardRef(
|
|
3672
3644
|
(e, t) => {
|
|
3673
|
-
const n = ye(
|
|
3645
|
+
const n = ye(We, e.__scopeDialog), r = l.useRef(!1), a = l.useRef(!1);
|
|
3674
3646
|
return /* @__PURE__ */ p.jsx(
|
|
3675
|
-
|
|
3647
|
+
Yr,
|
|
3676
3648
|
{
|
|
3677
3649
|
...e,
|
|
3678
3650
|
ref: t,
|
|
@@ -3683,18 +3655,18 @@ var zi = l.forwardRef(
|
|
|
3683
3655
|
(i = e.onCloseAutoFocus) == null || i.call(e, o), o.defaultPrevented || (r.current || (s = n.triggerRef.current) == null || s.focus(), o.preventDefault()), r.current = !1, a.current = !1;
|
|
3684
3656
|
},
|
|
3685
3657
|
onInteractOutside: (o) => {
|
|
3686
|
-
var c,
|
|
3658
|
+
var c, d;
|
|
3687
3659
|
(c = e.onInteractOutside) == null || c.call(e, o), o.defaultPrevented || (r.current = !0, o.detail.originalEvent.type === "pointerdown" && (a.current = !0));
|
|
3688
3660
|
const i = o.target;
|
|
3689
|
-
((
|
|
3661
|
+
((d = n.triggerRef.current) == null ? void 0 : d.contains(i)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && a.current && o.preventDefault();
|
|
3690
3662
|
}
|
|
3691
3663
|
}
|
|
3692
3664
|
);
|
|
3693
3665
|
}
|
|
3694
|
-
),
|
|
3666
|
+
), Yr = l.forwardRef(
|
|
3695
3667
|
(e, t) => {
|
|
3696
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: a, onCloseAutoFocus: o, ...i } = e, s = ye(
|
|
3697
|
-
return
|
|
3668
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: a, onCloseAutoFocus: o, ...i } = e, s = ye(We, n), c = l.useRef(null), d = ie(t, c);
|
|
3669
|
+
return Qn(), /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
3698
3670
|
/* @__PURE__ */ p.jsx(
|
|
3699
3671
|
ln,
|
|
3700
3672
|
{
|
|
@@ -3712,35 +3684,35 @@ var zi = l.forwardRef(
|
|
|
3712
3684
|
"aria-labelledby": s.titleId,
|
|
3713
3685
|
"data-state": bn(s.open),
|
|
3714
3686
|
...i,
|
|
3715
|
-
ref:
|
|
3687
|
+
ref: d,
|
|
3716
3688
|
onDismiss: () => s.onOpenChange(!1)
|
|
3717
3689
|
}
|
|
3718
3690
|
)
|
|
3719
3691
|
}
|
|
3720
3692
|
),
|
|
3721
3693
|
/* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
3722
|
-
/* @__PURE__ */ p.jsx(
|
|
3723
|
-
/* @__PURE__ */ p.jsx(
|
|
3694
|
+
/* @__PURE__ */ p.jsx(zi, { titleId: s.titleId }),
|
|
3695
|
+
/* @__PURE__ */ p.jsx(ki, { contentRef: c, descriptionId: s.descriptionId })
|
|
3724
3696
|
] })
|
|
3725
3697
|
] });
|
|
3726
3698
|
}
|
|
3727
|
-
), yn = "DialogTitle",
|
|
3699
|
+
), yn = "DialogTitle", qr = l.forwardRef(
|
|
3728
3700
|
(e, t) => {
|
|
3729
3701
|
const { __scopeDialog: n, ...r } = e, a = ye(yn, n);
|
|
3730
3702
|
return /* @__PURE__ */ p.jsx(te.h2, { id: a.titleId, ...r, ref: t });
|
|
3731
3703
|
}
|
|
3732
3704
|
);
|
|
3733
|
-
|
|
3734
|
-
var
|
|
3705
|
+
qr.displayName = yn;
|
|
3706
|
+
var Zr = "DialogDescription", Jr = l.forwardRef(
|
|
3735
3707
|
(e, t) => {
|
|
3736
|
-
const { __scopeDialog: n, ...r } = e, a = ye(
|
|
3708
|
+
const { __scopeDialog: n, ...r } = e, a = ye(Zr, n);
|
|
3737
3709
|
return /* @__PURE__ */ p.jsx(te.p, { id: a.descriptionId, ...r, ref: t });
|
|
3738
3710
|
}
|
|
3739
3711
|
);
|
|
3740
|
-
|
|
3741
|
-
var
|
|
3712
|
+
Jr.displayName = Zr;
|
|
3713
|
+
var Qr = "DialogClose", eo = l.forwardRef(
|
|
3742
3714
|
(e, t) => {
|
|
3743
|
-
const { __scopeDialog: n, ...r } = e, a = ye(
|
|
3715
|
+
const { __scopeDialog: n, ...r } = e, a = ye(Qr, n);
|
|
3744
3716
|
return /* @__PURE__ */ p.jsx(
|
|
3745
3717
|
te.button,
|
|
3746
3718
|
{
|
|
@@ -3752,16 +3724,16 @@ var to = "DialogClose", no = l.forwardRef(
|
|
|
3752
3724
|
);
|
|
3753
3725
|
}
|
|
3754
3726
|
);
|
|
3755
|
-
|
|
3727
|
+
eo.displayName = Qr;
|
|
3756
3728
|
function bn(e) {
|
|
3757
3729
|
return e ? "open" : "closed";
|
|
3758
3730
|
}
|
|
3759
|
-
var
|
|
3760
|
-
contentName:
|
|
3731
|
+
var to = "DialogTitleWarning", [fc, no] = ma(to, {
|
|
3732
|
+
contentName: We,
|
|
3761
3733
|
titleName: yn,
|
|
3762
3734
|
docsSlug: "dialog"
|
|
3763
|
-
}),
|
|
3764
|
-
const t =
|
|
3735
|
+
}), zi = ({ titleId: e }) => {
|
|
3736
|
+
const t = no(to), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
3765
3737
|
|
|
3766
3738
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
3767
3739
|
|
|
@@ -3771,8 +3743,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
3771
3743
|
const r = document.getElementById(e);
|
|
3772
3744
|
}
|
|
3773
3745
|
}, [n, e]), null;
|
|
3774
|
-
},
|
|
3775
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
3746
|
+
}, Oi = "DialogDescriptionWarning", ki = ({ contentRef: e, descriptionId: t }) => {
|
|
3747
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${no(Oi).contentName}}.`;
|
|
3776
3748
|
return l.useEffect(() => {
|
|
3777
3749
|
var o;
|
|
3778
3750
|
const a = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
@@ -3780,20 +3752,20 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
3780
3752
|
const i = document.getElementById(t);
|
|
3781
3753
|
}
|
|
3782
3754
|
}, [r, e, t]), null;
|
|
3783
|
-
},
|
|
3784
|
-
function
|
|
3785
|
-
return /* @__PURE__ */ p.jsx(
|
|
3755
|
+
}, Li = Fr, ji = Vr, $i = Gr, Bi = Kr, Hi = Xr, Fi = qr, Wi = Jr, ro = eo;
|
|
3756
|
+
function pc({ ...e }) {
|
|
3757
|
+
return /* @__PURE__ */ p.jsx(Li, { "data-slot": "dialog", ...e });
|
|
3786
3758
|
}
|
|
3787
|
-
function
|
|
3788
|
-
return /* @__PURE__ */ p.jsx(
|
|
3759
|
+
function mc({ ...e }) {
|
|
3760
|
+
return /* @__PURE__ */ p.jsx(ji, { "data-slot": "dialog-trigger", ...e });
|
|
3789
3761
|
}
|
|
3790
|
-
function
|
|
3791
|
-
return /* @__PURE__ */ p.jsx(
|
|
3762
|
+
function Vi({ ...e }) {
|
|
3763
|
+
return /* @__PURE__ */ p.jsx($i, { "data-slot": "dialog-portal", ...e });
|
|
3792
3764
|
}
|
|
3793
|
-
function
|
|
3794
|
-
return /* @__PURE__ */ p.jsx(
|
|
3765
|
+
function hc({ ...e }) {
|
|
3766
|
+
return /* @__PURE__ */ p.jsx(ro, { "data-slot": "dialog-close", ...e });
|
|
3795
3767
|
}
|
|
3796
|
-
function
|
|
3768
|
+
function Ui({ className: e, backdrop: t, ...n }) {
|
|
3797
3769
|
let r = "";
|
|
3798
3770
|
switch (t) {
|
|
3799
3771
|
case "transparent":
|
|
@@ -3807,7 +3779,7 @@ function Ki({ className: e, backdrop: t, ...n }) {
|
|
|
3807
3779
|
break;
|
|
3808
3780
|
}
|
|
3809
3781
|
return /* @__PURE__ */ p.jsx(
|
|
3810
|
-
|
|
3782
|
+
Bi,
|
|
3811
3783
|
{
|
|
3812
3784
|
"data-slot": "dialog-overlay",
|
|
3813
3785
|
className: ce(
|
|
@@ -3820,10 +3792,10 @@ function Ki({ className: e, backdrop: t, ...n }) {
|
|
|
3820
3792
|
);
|
|
3821
3793
|
}
|
|
3822
3794
|
const gc = l.forwardRef(
|
|
3823
|
-
({ className: e, children: t, showCloseButton: n = !0, disabled: r = !1, backdrop: a = "opaque", ...o }, i) => /* @__PURE__ */ p.jsx(
|
|
3824
|
-
/* @__PURE__ */ p.jsx(
|
|
3795
|
+
({ className: e, children: t, showCloseButton: n = !0, disabled: r = !1, backdrop: a = "opaque", ...o }, i) => /* @__PURE__ */ p.jsx(qo, { children: /* @__PURE__ */ p.jsxs(Vi, { "data-slot": "dialog-portal", children: [
|
|
3796
|
+
/* @__PURE__ */ p.jsx(Ui, { backdrop: a }),
|
|
3825
3797
|
/* @__PURE__ */ p.jsxs(
|
|
3826
|
-
|
|
3798
|
+
Hi,
|
|
3827
3799
|
{
|
|
3828
3800
|
"data-slot": "dialog-content",
|
|
3829
3801
|
ref: i,
|
|
@@ -3834,8 +3806,8 @@ const gc = l.forwardRef(
|
|
|
3834
3806
|
...o,
|
|
3835
3807
|
children: [
|
|
3836
3808
|
t,
|
|
3837
|
-
n && /* @__PURE__ */ p.jsx(
|
|
3838
|
-
|
|
3809
|
+
n && /* @__PURE__ */ p.jsx(ro, { "data-slot": "dialog-close", asChild: !0, className: "absolute top-3 right-4 disabled:pointer-events-none", children: /* @__PURE__ */ p.jsx("div", { children: /* @__PURE__ */ p.jsxs(
|
|
3810
|
+
Yo,
|
|
3839
3811
|
{
|
|
3840
3812
|
isIconOnly: !0,
|
|
3841
3813
|
variant: "light",
|
|
@@ -3857,23 +3829,23 @@ const gc = l.forwardRef(
|
|
|
3857
3829
|
)
|
|
3858
3830
|
] }) })
|
|
3859
3831
|
);
|
|
3860
|
-
function
|
|
3832
|
+
function vc({ className: e, ...t }) {
|
|
3861
3833
|
return /* @__PURE__ */ p.jsx("div", { "data-slot": "dialog-header", className: ce("flex flex-col gap-2 text-center sm:text-left", e), ...t });
|
|
3862
3834
|
}
|
|
3863
|
-
function
|
|
3835
|
+
function xc({ className: e, ...t }) {
|
|
3864
3836
|
return /* @__PURE__ */ p.jsx("div", { "data-slot": "dialog-footer", className: ce("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e), ...t });
|
|
3865
3837
|
}
|
|
3866
|
-
function
|
|
3867
|
-
return /* @__PURE__ */ p.jsx(
|
|
3838
|
+
function yc({ className: e, ...t }) {
|
|
3839
|
+
return /* @__PURE__ */ p.jsx(Fi, { "data-slot": "dialog-title", className: ce("text-lg leading-none font-semibold", e), ...t });
|
|
3868
3840
|
}
|
|
3869
|
-
function
|
|
3870
|
-
return /* @__PURE__ */ p.jsx(
|
|
3841
|
+
function bc({ className: e, ...t }) {
|
|
3842
|
+
return /* @__PURE__ */ p.jsx(Wi, { "data-slot": "dialog-description", className: ce("text-muted-foreground text-sm", e), ...t });
|
|
3871
3843
|
}
|
|
3872
|
-
function
|
|
3844
|
+
function Gi(e) {
|
|
3873
3845
|
const t = l.useRef({ value: e, previous: e });
|
|
3874
3846
|
return l.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
3875
3847
|
}
|
|
3876
|
-
var
|
|
3848
|
+
var oo = Object.freeze({
|
|
3877
3849
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
3878
3850
|
position: "absolute",
|
|
3879
3851
|
border: 0,
|
|
@@ -3885,25 +3857,25 @@ var so = Object.freeze({
|
|
|
3885
3857
|
clip: "rect(0, 0, 0, 0)",
|
|
3886
3858
|
whiteSpace: "nowrap",
|
|
3887
3859
|
wordWrap: "normal"
|
|
3888
|
-
}),
|
|
3860
|
+
}), Ki = "VisuallyHidden", ao = l.forwardRef(
|
|
3889
3861
|
(e, t) => /* @__PURE__ */ p.jsx(
|
|
3890
3862
|
te.span,
|
|
3891
3863
|
{
|
|
3892
3864
|
...e,
|
|
3893
3865
|
ref: t,
|
|
3894
|
-
style: { ...
|
|
3866
|
+
style: { ...oo, ...e.style }
|
|
3895
3867
|
}
|
|
3896
3868
|
)
|
|
3897
3869
|
);
|
|
3898
|
-
|
|
3899
|
-
var
|
|
3900
|
-
function
|
|
3870
|
+
ao.displayName = Ki;
|
|
3871
|
+
var wc = ao;
|
|
3872
|
+
function Un(e, [t, n]) {
|
|
3901
3873
|
return Math.min(n, Math.max(t, e));
|
|
3902
3874
|
}
|
|
3903
|
-
var
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
]), Ot =
|
|
3875
|
+
var Xi = [" ", "Enter", "ArrowUp", "ArrowDown"], Yi = [" ", "Enter"], Ve = "Select", [_t, zt, qi] = ya(Ve), [nt, Sc] = Pt(Ve, [
|
|
3876
|
+
qi,
|
|
3877
|
+
rr
|
|
3878
|
+
]), Ot = rr(), [Zi, ze] = nt(Ve), [Ji, Qi] = nt(Ve), so = (e) => {
|
|
3907
3879
|
const {
|
|
3908
3880
|
__scopeSelect: t,
|
|
3909
3881
|
children: n,
|
|
@@ -3913,31 +3885,31 @@ var qi = [" ", "Enter", "ArrowUp", "ArrowDown"], Zi = [" ", "Enter"], Ue = "Sele
|
|
|
3913
3885
|
value: i,
|
|
3914
3886
|
defaultValue: s,
|
|
3915
3887
|
onValueChange: c,
|
|
3916
|
-
dir:
|
|
3888
|
+
dir: d,
|
|
3917
3889
|
name: h,
|
|
3918
3890
|
autoComplete: m,
|
|
3919
3891
|
disabled: f,
|
|
3920
|
-
required:
|
|
3892
|
+
required: y,
|
|
3921
3893
|
form: b
|
|
3922
|
-
} = e,
|
|
3894
|
+
} = e, u = Ot(t), [g, v] = l.useState(null), [x, w] = l.useState(null), [E, M] = l.useState(!1), I = wa(d), [C, B] = qt({
|
|
3923
3895
|
prop: r,
|
|
3924
3896
|
defaultProp: a ?? !1,
|
|
3925
3897
|
onChange: o,
|
|
3926
|
-
caller:
|
|
3898
|
+
caller: Ve
|
|
3927
3899
|
}), [_, H] = qt({
|
|
3928
3900
|
prop: i,
|
|
3929
3901
|
defaultProp: s,
|
|
3930
3902
|
onChange: c,
|
|
3931
|
-
caller:
|
|
3932
|
-
}), U = l.useRef(null), k =
|
|
3933
|
-
return /* @__PURE__ */ p.jsx(
|
|
3934
|
-
|
|
3903
|
+
caller: Ve
|
|
3904
|
+
}), U = l.useRef(null), k = g ? b || !!g.closest("form") : !0, [j, X] = l.useState(/* @__PURE__ */ new Set()), K = Array.from(j).map((V) => V.props.value).join(";");
|
|
3905
|
+
return /* @__PURE__ */ p.jsx(Xa, { ...u, children: /* @__PURE__ */ p.jsxs(
|
|
3906
|
+
Zi,
|
|
3935
3907
|
{
|
|
3936
|
-
required:
|
|
3908
|
+
required: y,
|
|
3937
3909
|
scope: t,
|
|
3938
|
-
trigger:
|
|
3939
|
-
onTriggerChange:
|
|
3940
|
-
valueNode:
|
|
3910
|
+
trigger: g,
|
|
3911
|
+
onTriggerChange: v,
|
|
3912
|
+
valueNode: x,
|
|
3941
3913
|
onValueNodeChange: w,
|
|
3942
3914
|
valueNodeHasChildren: E,
|
|
3943
3915
|
onValueNodeHasChildrenChange: M,
|
|
@@ -3951,7 +3923,7 @@ var qi = [" ", "Enter", "ArrowUp", "ArrowDown"], Zi = [" ", "Enter"], Ue = "Sele
|
|
|
3951
3923
|
disabled: f,
|
|
3952
3924
|
children: [
|
|
3953
3925
|
/* @__PURE__ */ p.jsx(_t.Provider, { scope: t, children: /* @__PURE__ */ p.jsx(
|
|
3954
|
-
|
|
3926
|
+
Ji,
|
|
3955
3927
|
{
|
|
3956
3928
|
scope: e.__scopeSelect,
|
|
3957
3929
|
onNativeOptionAdd: l.useCallback((V) => {
|
|
@@ -3967,10 +3939,10 @@ var qi = [" ", "Enter", "ArrowUp", "ArrowDown"], Zi = [" ", "Enter"], Ue = "Sele
|
|
|
3967
3939
|
}
|
|
3968
3940
|
) }),
|
|
3969
3941
|
k ? /* @__PURE__ */ p.jsxs(
|
|
3970
|
-
|
|
3942
|
+
Do,
|
|
3971
3943
|
{
|
|
3972
3944
|
"aria-hidden": !0,
|
|
3973
|
-
required:
|
|
3945
|
+
required: y,
|
|
3974
3946
|
tabIndex: -1,
|
|
3975
3947
|
name: h,
|
|
3976
3948
|
autoComplete: m,
|
|
@@ -3989,19 +3961,19 @@ var qi = [" ", "Enter", "ArrowUp", "ArrowDown"], Zi = [" ", "Enter"], Ue = "Sele
|
|
|
3989
3961
|
}
|
|
3990
3962
|
) });
|
|
3991
3963
|
};
|
|
3992
|
-
|
|
3993
|
-
var
|
|
3964
|
+
so.displayName = Ve;
|
|
3965
|
+
var io = "SelectTrigger", lo = l.forwardRef(
|
|
3994
3966
|
(e, t) => {
|
|
3995
|
-
const { __scopeSelect: n, disabled: r = !1, ...a } = e, o = Ot(n), i = ze(
|
|
3996
|
-
const
|
|
3997
|
-
|
|
3998
|
-
}), b = (
|
|
3999
|
-
s || (i.onOpenChange(!0),
|
|
4000
|
-
x: Math.round(
|
|
4001
|
-
y: Math.round(
|
|
3967
|
+
const { __scopeSelect: n, disabled: r = !1, ...a } = e, o = Ot(n), i = ze(io, n), s = i.disabled || r, c = ie(t, i.onTriggerChange), d = zt(n), h = l.useRef("touch"), [m, f, y] = zo((u) => {
|
|
3968
|
+
const g = d().filter((w) => !w.disabled), v = g.find((w) => w.value === i.value), x = Oo(g, u, v);
|
|
3969
|
+
x !== void 0 && i.onValueChange(x.value);
|
|
3970
|
+
}), b = (u) => {
|
|
3971
|
+
s || (i.onOpenChange(!0), y()), u && (i.triggerPointerDownPosRef.current = {
|
|
3972
|
+
x: Math.round(u.pageX),
|
|
3973
|
+
y: Math.round(u.pageY)
|
|
4002
3974
|
});
|
|
4003
3975
|
};
|
|
4004
|
-
return /* @__PURE__ */ p.jsx(
|
|
3976
|
+
return /* @__PURE__ */ p.jsx(Ya, { asChild: !0, ...o, children: /* @__PURE__ */ p.jsx(
|
|
4005
3977
|
te.button,
|
|
4006
3978
|
{
|
|
4007
3979
|
type: "button",
|
|
@@ -4014,69 +3986,69 @@ var co = "SelectTrigger", uo = l.forwardRef(
|
|
|
4014
3986
|
"data-state": i.open ? "open" : "closed",
|
|
4015
3987
|
disabled: s,
|
|
4016
3988
|
"data-disabled": s ? "" : void 0,
|
|
4017
|
-
"data-placeholder":
|
|
3989
|
+
"data-placeholder": _o(i.value) ? "" : void 0,
|
|
4018
3990
|
...a,
|
|
4019
3991
|
ref: c,
|
|
4020
|
-
onClick: ne(a.onClick, (
|
|
4021
|
-
|
|
3992
|
+
onClick: ne(a.onClick, (u) => {
|
|
3993
|
+
u.currentTarget.focus(), h.current !== "mouse" && b(u);
|
|
4022
3994
|
}),
|
|
4023
|
-
onPointerDown: ne(a.onPointerDown, (
|
|
4024
|
-
h.current =
|
|
4025
|
-
const
|
|
4026
|
-
|
|
3995
|
+
onPointerDown: ne(a.onPointerDown, (u) => {
|
|
3996
|
+
h.current = u.pointerType;
|
|
3997
|
+
const g = u.target;
|
|
3998
|
+
g.hasPointerCapture(u.pointerId) && g.releasePointerCapture(u.pointerId), u.button === 0 && u.ctrlKey === !1 && u.pointerType === "mouse" && (b(u), u.preventDefault());
|
|
4027
3999
|
}),
|
|
4028
|
-
onKeyDown: ne(a.onKeyDown, (
|
|
4029
|
-
const
|
|
4030
|
-
!(
|
|
4000
|
+
onKeyDown: ne(a.onKeyDown, (u) => {
|
|
4001
|
+
const g = m.current !== "";
|
|
4002
|
+
!(u.ctrlKey || u.altKey || u.metaKey) && u.key.length === 1 && f(u.key), !(g && u.key === " ") && Xi.includes(u.key) && (b(), u.preventDefault());
|
|
4031
4003
|
})
|
|
4032
4004
|
}
|
|
4033
4005
|
) });
|
|
4034
4006
|
}
|
|
4035
4007
|
);
|
|
4036
|
-
|
|
4037
|
-
var
|
|
4008
|
+
lo.displayName = io;
|
|
4009
|
+
var co = "SelectValue", uo = l.forwardRef(
|
|
4038
4010
|
(e, t) => {
|
|
4039
|
-
const { __scopeSelect: n, className: r, style: a, children: o, placeholder: i = "", ...s } = e, c = ze(
|
|
4011
|
+
const { __scopeSelect: n, className: r, style: a, children: o, placeholder: i = "", ...s } = e, c = ze(co, n), { onValueNodeHasChildrenChange: d } = c, h = o !== void 0, m = ie(t, c.onValueNodeChange);
|
|
4040
4012
|
return ue(() => {
|
|
4041
|
-
|
|
4042
|
-
}, [
|
|
4013
|
+
d(h);
|
|
4014
|
+
}, [d, h]), /* @__PURE__ */ p.jsx(
|
|
4043
4015
|
te.span,
|
|
4044
4016
|
{
|
|
4045
4017
|
...s,
|
|
4046
4018
|
ref: m,
|
|
4047
4019
|
style: { pointerEvents: "none" },
|
|
4048
|
-
children:
|
|
4020
|
+
children: _o(c.value) ? /* @__PURE__ */ p.jsx(p.Fragment, { children: i }) : o
|
|
4049
4021
|
}
|
|
4050
4022
|
);
|
|
4051
4023
|
}
|
|
4052
4024
|
);
|
|
4053
|
-
|
|
4054
|
-
var
|
|
4025
|
+
uo.displayName = co;
|
|
4026
|
+
var el = "SelectIcon", fo = l.forwardRef(
|
|
4055
4027
|
(e, t) => {
|
|
4056
4028
|
const { __scopeSelect: n, children: r, ...a } = e;
|
|
4057
4029
|
return /* @__PURE__ */ p.jsx(te.span, { "aria-hidden": !0, ...a, ref: t, children: r || "▼" });
|
|
4058
4030
|
}
|
|
4059
4031
|
);
|
|
4060
|
-
|
|
4061
|
-
var
|
|
4062
|
-
|
|
4063
|
-
var
|
|
4032
|
+
fo.displayName = el;
|
|
4033
|
+
var tl = "SelectPortal", po = (e) => /* @__PURE__ */ p.jsx(dn, { asChild: !0, ...e });
|
|
4034
|
+
po.displayName = tl;
|
|
4035
|
+
var Ue = "SelectContent", mo = l.forwardRef(
|
|
4064
4036
|
(e, t) => {
|
|
4065
|
-
const n = ze(
|
|
4037
|
+
const n = ze(Ue, e.__scopeSelect), [r, a] = l.useState();
|
|
4066
4038
|
if (ue(() => {
|
|
4067
4039
|
a(new DocumentFragment());
|
|
4068
4040
|
}, []), !n.open) {
|
|
4069
4041
|
const o = r;
|
|
4070
4042
|
return o ? an.createPortal(
|
|
4071
|
-
/* @__PURE__ */ p.jsx(
|
|
4043
|
+
/* @__PURE__ */ p.jsx(ho, { scope: e.__scopeSelect, children: /* @__PURE__ */ p.jsx(_t.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ p.jsx("div", { children: e.children }) }) }),
|
|
4072
4044
|
o
|
|
4073
4045
|
) : null;
|
|
4074
4046
|
}
|
|
4075
|
-
return /* @__PURE__ */ p.jsx(
|
|
4047
|
+
return /* @__PURE__ */ p.jsx(go, { ...e, ref: t });
|
|
4076
4048
|
}
|
|
4077
4049
|
);
|
|
4078
|
-
|
|
4079
|
-
var
|
|
4050
|
+
mo.displayName = Ue;
|
|
4051
|
+
var ve = 10, [ho, Oe] = nt(Ue), nl = "SelectContentImpl", rl = it("SelectContent.RemoveScroll"), go = l.forwardRef(
|
|
4080
4052
|
(e, t) => {
|
|
4081
4053
|
const {
|
|
4082
4054
|
__scopeSelect: n,
|
|
@@ -4088,22 +4060,22 @@ var ge = 10, [go, Oe] = nt(Ge), ol = "SelectContentImpl", al = it("SelectContent
|
|
|
4088
4060
|
// PopperContent props
|
|
4089
4061
|
side: s,
|
|
4090
4062
|
sideOffset: c,
|
|
4091
|
-
align:
|
|
4063
|
+
align: d,
|
|
4092
4064
|
alignOffset: h,
|
|
4093
4065
|
arrowPadding: m,
|
|
4094
4066
|
collisionBoundary: f,
|
|
4095
|
-
collisionPadding:
|
|
4067
|
+
collisionPadding: y,
|
|
4096
4068
|
sticky: b,
|
|
4097
|
-
hideWhenDetached:
|
|
4098
|
-
avoidCollisions:
|
|
4069
|
+
hideWhenDetached: u,
|
|
4070
|
+
avoidCollisions: g,
|
|
4099
4071
|
//
|
|
4100
|
-
...
|
|
4101
|
-
} = e,
|
|
4072
|
+
...v
|
|
4073
|
+
} = e, x = ze(Ue, n), [w, E] = l.useState(null), [M, I] = l.useState(null), C = ie(t, (S) => E(S)), [B, _] = l.useState(null), [H, U] = l.useState(
|
|
4102
4074
|
null
|
|
4103
4075
|
), k = zt(n), [j, X] = l.useState(!1), K = l.useRef(!1);
|
|
4104
4076
|
l.useEffect(() => {
|
|
4105
|
-
if (w) return
|
|
4106
|
-
}, [w]),
|
|
4077
|
+
if (w) return pr(w);
|
|
4078
|
+
}, [w]), Qn();
|
|
4107
4079
|
const V = l.useCallback(
|
|
4108
4080
|
(S) => {
|
|
4109
4081
|
const [N, ...L] = k().map(($) => $.ref.current), [O] = L.slice(-1), F = document.activeElement;
|
|
@@ -4118,7 +4090,7 @@ var ge = 10, [go, Oe] = nt(Ge), ol = "SelectContentImpl", al = it("SelectContent
|
|
|
4118
4090
|
l.useEffect(() => {
|
|
4119
4091
|
j && Q();
|
|
4120
4092
|
}, [j, Q]);
|
|
4121
|
-
const { onOpenChange: J, triggerPointerDownPosRef: Z } =
|
|
4093
|
+
const { onOpenChange: J, triggerPointerDownPosRef: Z } = x;
|
|
4122
4094
|
l.useEffect(() => {
|
|
4123
4095
|
if (w) {
|
|
4124
4096
|
let S = { x: 0, y: 0 };
|
|
@@ -4141,35 +4113,35 @@ var ge = 10, [go, Oe] = nt(Ge), ol = "SelectContentImpl", al = it("SelectContent
|
|
|
4141
4113
|
window.removeEventListener("blur", S), window.removeEventListener("resize", S);
|
|
4142
4114
|
};
|
|
4143
4115
|
}, [J]);
|
|
4144
|
-
const [de, re] =
|
|
4145
|
-
const N = k().filter((F) => !F.disabled), L = N.find((F) => F.ref.current === document.activeElement), O =
|
|
4116
|
+
const [de, re] = zo((S) => {
|
|
4117
|
+
const N = k().filter((F) => !F.disabled), L = N.find((F) => F.ref.current === document.activeElement), O = Oo(N, S, L);
|
|
4146
4118
|
O && setTimeout(() => O.ref.current.focus());
|
|
4147
4119
|
}), le = l.useCallback(
|
|
4148
4120
|
(S, N, L) => {
|
|
4149
4121
|
const O = !K.current && !L;
|
|
4150
|
-
(
|
|
4122
|
+
(x.value !== void 0 && x.value === N || O) && (_(S), O && (K.current = !0));
|
|
4151
4123
|
},
|
|
4152
|
-
[
|
|
4124
|
+
[x.value]
|
|
4153
4125
|
), P = l.useCallback(() => w == null ? void 0 : w.focus(), [w]), A = l.useCallback(
|
|
4154
4126
|
(S, N, L) => {
|
|
4155
4127
|
const O = !K.current && !L;
|
|
4156
|
-
(
|
|
4128
|
+
(x.value !== void 0 && x.value === N || O) && U(S);
|
|
4157
4129
|
},
|
|
4158
|
-
[
|
|
4159
|
-
), D = r === "popper" ? en :
|
|
4130
|
+
[x.value]
|
|
4131
|
+
), D = r === "popper" ? en : vo, T = D === en ? {
|
|
4160
4132
|
side: s,
|
|
4161
4133
|
sideOffset: c,
|
|
4162
|
-
align:
|
|
4134
|
+
align: d,
|
|
4163
4135
|
alignOffset: h,
|
|
4164
4136
|
arrowPadding: m,
|
|
4165
4137
|
collisionBoundary: f,
|
|
4166
|
-
collisionPadding:
|
|
4138
|
+
collisionPadding: y,
|
|
4167
4139
|
sticky: b,
|
|
4168
|
-
hideWhenDetached:
|
|
4169
|
-
avoidCollisions:
|
|
4140
|
+
hideWhenDetached: u,
|
|
4141
|
+
avoidCollisions: g
|
|
4170
4142
|
} : {};
|
|
4171
4143
|
return /* @__PURE__ */ p.jsx(
|
|
4172
|
-
|
|
4144
|
+
ho,
|
|
4173
4145
|
{
|
|
4174
4146
|
scope: n,
|
|
4175
4147
|
content: w,
|
|
@@ -4184,17 +4156,17 @@ var ge = 10, [go, Oe] = nt(Ge), ol = "SelectContentImpl", al = it("SelectContent
|
|
|
4184
4156
|
position: r,
|
|
4185
4157
|
isPositioned: j,
|
|
4186
4158
|
searchRef: de,
|
|
4187
|
-
children: /* @__PURE__ */ p.jsx(fn, { as:
|
|
4159
|
+
children: /* @__PURE__ */ p.jsx(fn, { as: rl, allowPinchZoom: !0, children: /* @__PURE__ */ p.jsx(
|
|
4188
4160
|
ln,
|
|
4189
4161
|
{
|
|
4190
4162
|
asChild: !0,
|
|
4191
|
-
trapped:
|
|
4163
|
+
trapped: x.open,
|
|
4192
4164
|
onMountAutoFocus: (S) => {
|
|
4193
4165
|
S.preventDefault();
|
|
4194
4166
|
},
|
|
4195
4167
|
onUnmountAutoFocus: ne(a, (S) => {
|
|
4196
4168
|
var N;
|
|
4197
|
-
(N =
|
|
4169
|
+
(N = x.trigger) == null || N.focus({ preventScroll: !0 }), S.preventDefault();
|
|
4198
4170
|
}),
|
|
4199
4171
|
children: /* @__PURE__ */ p.jsx(
|
|
4200
4172
|
sn,
|
|
@@ -4204,16 +4176,16 @@ var ge = 10, [go, Oe] = nt(Ge), ol = "SelectContentImpl", al = it("SelectContent
|
|
|
4204
4176
|
onEscapeKeyDown: o,
|
|
4205
4177
|
onPointerDownOutside: i,
|
|
4206
4178
|
onFocusOutside: (S) => S.preventDefault(),
|
|
4207
|
-
onDismiss: () =>
|
|
4179
|
+
onDismiss: () => x.onOpenChange(!1),
|
|
4208
4180
|
children: /* @__PURE__ */ p.jsx(
|
|
4209
4181
|
D,
|
|
4210
4182
|
{
|
|
4211
4183
|
role: "listbox",
|
|
4212
|
-
id:
|
|
4213
|
-
"data-state":
|
|
4214
|
-
dir:
|
|
4184
|
+
id: x.contentId,
|
|
4185
|
+
"data-state": x.open ? "open" : "closed",
|
|
4186
|
+
dir: x.dir,
|
|
4215
4187
|
onContextMenu: (S) => S.preventDefault(),
|
|
4216
|
-
...
|
|
4188
|
+
...v,
|
|
4217
4189
|
...T,
|
|
4218
4190
|
onPlaced: () => X(!0),
|
|
4219
4191
|
ref: C,
|
|
@@ -4223,9 +4195,9 @@ var ge = 10, [go, Oe] = nt(Ge), ol = "SelectContentImpl", al = it("SelectContent
|
|
|
4223
4195
|
flexDirection: "column",
|
|
4224
4196
|
// reset the outline by default as the content MAY get focused
|
|
4225
4197
|
outline: "none",
|
|
4226
|
-
...
|
|
4198
|
+
...v.style
|
|
4227
4199
|
},
|
|
4228
|
-
onKeyDown: ne(
|
|
4200
|
+
onKeyDown: ne(v.onKeyDown, (S) => {
|
|
4229
4201
|
const N = S.ctrlKey || S.altKey || S.metaKey;
|
|
4230
4202
|
if (S.key === "Tab" && S.preventDefault(), !N && S.key.length === 1 && re(S.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(S.key)) {
|
|
4231
4203
|
let O = k().filter((F) => !F.disabled).map((F) => F.ref.current);
|
|
@@ -4246,80 +4218,80 @@ var ge = 10, [go, Oe] = nt(Ge), ol = "SelectContentImpl", al = it("SelectContent
|
|
|
4246
4218
|
);
|
|
4247
4219
|
}
|
|
4248
4220
|
);
|
|
4249
|
-
|
|
4250
|
-
var
|
|
4251
|
-
const { __scopeSelect: n, onPlaced: r, ...a } = e, o = ze(
|
|
4252
|
-
if (o.trigger && o.valueNode && s &&
|
|
4253
|
-
const C = o.trigger.getBoundingClientRect(), B =
|
|
4221
|
+
go.displayName = nl;
|
|
4222
|
+
var ol = "SelectItemAlignedPosition", vo = l.forwardRef((e, t) => {
|
|
4223
|
+
const { __scopeSelect: n, onPlaced: r, ...a } = e, o = ze(Ue, n), i = Oe(Ue, n), [s, c] = l.useState(null), [d, h] = l.useState(null), m = ie(t, (C) => h(C)), f = zt(n), y = l.useRef(!1), b = l.useRef(!0), { viewport: u, selectedItem: g, selectedItemText: v, focusSelectedItem: x } = i, w = l.useCallback(() => {
|
|
4224
|
+
if (o.trigger && o.valueNode && s && d && u && g && v) {
|
|
4225
|
+
const C = o.trigger.getBoundingClientRect(), B = d.getBoundingClientRect(), _ = o.valueNode.getBoundingClientRect(), H = v.getBoundingClientRect();
|
|
4254
4226
|
if (o.dir !== "rtl") {
|
|
4255
|
-
const F = H.left - B.left, $ = _.left - F, G = C.left - $, R = C.width + G, z = Math.max(R, B.width), ee = window.innerWidth -
|
|
4256
|
-
|
|
4227
|
+
const F = H.left - B.left, $ = _.left - F, G = C.left - $, R = C.width + G, z = Math.max(R, B.width), ee = window.innerWidth - ve, ae = Un($, [
|
|
4228
|
+
ve,
|
|
4257
4229
|
// Prevents the content from going off the starting edge of the
|
|
4258
4230
|
// viewport. It may still go off the ending edge, but this can be
|
|
4259
4231
|
// controlled by the user since they may want to manage overflow in a
|
|
4260
4232
|
// specific way.
|
|
4261
4233
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
4262
|
-
Math.max(
|
|
4234
|
+
Math.max(ve, ee - z)
|
|
4263
4235
|
]);
|
|
4264
4236
|
s.style.minWidth = R + "px", s.style.left = ae + "px";
|
|
4265
4237
|
} else {
|
|
4266
|
-
const F = B.right - H.right, $ = window.innerWidth - _.right - F, G = window.innerWidth - C.right - $, R = C.width + G, z = Math.max(R, B.width), ee = window.innerWidth -
|
|
4267
|
-
|
|
4268
|
-
Math.max(
|
|
4238
|
+
const F = B.right - H.right, $ = window.innerWidth - _.right - F, G = window.innerWidth - C.right - $, R = C.width + G, z = Math.max(R, B.width), ee = window.innerWidth - ve, ae = Un($, [
|
|
4239
|
+
ve,
|
|
4240
|
+
Math.max(ve, ee - z)
|
|
4269
4241
|
]);
|
|
4270
4242
|
s.style.minWidth = R + "px", s.style.right = ae + "px";
|
|
4271
4243
|
}
|
|
4272
|
-
const U = f(), k = window.innerHeight -
|
|
4244
|
+
const U = f(), k = window.innerHeight - ve * 2, j = u.scrollHeight, X = window.getComputedStyle(d), K = parseInt(X.borderTopWidth, 10), V = parseInt(X.paddingTop, 10), Q = parseInt(X.borderBottomWidth, 10), J = parseInt(X.paddingBottom, 10), Z = K + V + j + J + Q, de = Math.min(g.offsetHeight * 5, Z), re = window.getComputedStyle(u), le = parseInt(re.paddingTop, 10), P = parseInt(re.paddingBottom, 10), A = C.top + C.height / 2 - ve, D = k - A, T = g.offsetHeight / 2, S = g.offsetTop + T, N = K + V + S, L = Z - N;
|
|
4273
4245
|
if (N <= A) {
|
|
4274
|
-
const F = U.length > 0 &&
|
|
4246
|
+
const F = U.length > 0 && g === U[U.length - 1].ref.current;
|
|
4275
4247
|
s.style.bottom = "0px";
|
|
4276
|
-
const $ =
|
|
4248
|
+
const $ = d.clientHeight - u.offsetTop - u.offsetHeight, G = Math.max(
|
|
4277
4249
|
D,
|
|
4278
4250
|
T + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
4279
4251
|
(F ? P : 0) + $ + Q
|
|
4280
4252
|
), R = N + G;
|
|
4281
4253
|
s.style.height = R + "px";
|
|
4282
4254
|
} else {
|
|
4283
|
-
const F = U.length > 0 &&
|
|
4255
|
+
const F = U.length > 0 && g === U[0].ref.current;
|
|
4284
4256
|
s.style.top = "0px";
|
|
4285
4257
|
const G = Math.max(
|
|
4286
4258
|
A,
|
|
4287
|
-
K +
|
|
4259
|
+
K + u.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
4288
4260
|
(F ? le : 0) + T
|
|
4289
4261
|
) + L;
|
|
4290
|
-
s.style.height = G + "px",
|
|
4262
|
+
s.style.height = G + "px", u.scrollTop = N - A + u.offsetTop;
|
|
4291
4263
|
}
|
|
4292
|
-
s.style.margin = `${
|
|
4264
|
+
s.style.margin = `${ve}px 0`, s.style.minHeight = de + "px", s.style.maxHeight = k + "px", r == null || r(), requestAnimationFrame(() => y.current = !0);
|
|
4293
4265
|
}
|
|
4294
4266
|
}, [
|
|
4295
4267
|
f,
|
|
4296
4268
|
o.trigger,
|
|
4297
4269
|
o.valueNode,
|
|
4298
4270
|
s,
|
|
4299
|
-
u,
|
|
4300
4271
|
d,
|
|
4301
|
-
|
|
4272
|
+
u,
|
|
4302
4273
|
g,
|
|
4274
|
+
v,
|
|
4303
4275
|
o.dir,
|
|
4304
4276
|
r
|
|
4305
4277
|
]);
|
|
4306
4278
|
ue(() => w(), [w]);
|
|
4307
4279
|
const [E, M] = l.useState();
|
|
4308
4280
|
ue(() => {
|
|
4309
|
-
|
|
4310
|
-
}, [
|
|
4281
|
+
d && M(window.getComputedStyle(d).zIndex);
|
|
4282
|
+
}, [d]);
|
|
4311
4283
|
const I = l.useCallback(
|
|
4312
4284
|
(C) => {
|
|
4313
|
-
C && b.current === !0 && (w(),
|
|
4285
|
+
C && b.current === !0 && (w(), x == null || x(), b.current = !1);
|
|
4314
4286
|
},
|
|
4315
|
-
[w,
|
|
4287
|
+
[w, x]
|
|
4316
4288
|
);
|
|
4317
4289
|
return /* @__PURE__ */ p.jsx(
|
|
4318
|
-
|
|
4290
|
+
sl,
|
|
4319
4291
|
{
|
|
4320
4292
|
scope: n,
|
|
4321
4293
|
contentWrapper: s,
|
|
4322
|
-
shouldExpandOnScrollRef:
|
|
4294
|
+
shouldExpandOnScrollRef: y,
|
|
4323
4295
|
onScrollButtonChange: I,
|
|
4324
4296
|
children: /* @__PURE__ */ p.jsx(
|
|
4325
4297
|
"div",
|
|
@@ -4351,16 +4323,16 @@ var sl = "SelectItemAlignedPosition", yo = l.forwardRef((e, t) => {
|
|
|
4351
4323
|
}
|
|
4352
4324
|
);
|
|
4353
4325
|
});
|
|
4354
|
-
|
|
4355
|
-
var
|
|
4326
|
+
vo.displayName = ol;
|
|
4327
|
+
var al = "SelectPopperPosition", en = l.forwardRef((e, t) => {
|
|
4356
4328
|
const {
|
|
4357
4329
|
__scopeSelect: n,
|
|
4358
4330
|
align: r = "start",
|
|
4359
|
-
collisionPadding: a =
|
|
4331
|
+
collisionPadding: a = ve,
|
|
4360
4332
|
...o
|
|
4361
4333
|
} = e, i = Ot(n);
|
|
4362
4334
|
return /* @__PURE__ */ p.jsx(
|
|
4363
|
-
|
|
4335
|
+
qa,
|
|
4364
4336
|
{
|
|
4365
4337
|
...i,
|
|
4366
4338
|
...o,
|
|
@@ -4380,8 +4352,8 @@ var il = "SelectPopperPosition", en = l.forwardRef((e, t) => {
|
|
|
4380
4352
|
}
|
|
4381
4353
|
);
|
|
4382
4354
|
});
|
|
4383
|
-
en.displayName =
|
|
4384
|
-
var [
|
|
4355
|
+
en.displayName = al;
|
|
4356
|
+
var [sl, wn] = nt(Ue, {}), tn = "SelectViewport", xo = l.forwardRef(
|
|
4385
4357
|
(e, t) => {
|
|
4386
4358
|
const { __scopeSelect: n, nonce: r, ...a } = e, o = Oe(tn, n), i = wn(tn, n), s = ie(t, o.onViewportChange), c = l.useRef(0);
|
|
4387
4359
|
return /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
@@ -4414,14 +4386,14 @@ var [ll, wn] = nt(Ge, {}), tn = "SelectViewport", bo = l.forwardRef(
|
|
|
4414
4386
|
overflow: "hidden auto",
|
|
4415
4387
|
...a.style
|
|
4416
4388
|
},
|
|
4417
|
-
onScroll: ne(a.onScroll, (
|
|
4418
|
-
const h =
|
|
4389
|
+
onScroll: ne(a.onScroll, (d) => {
|
|
4390
|
+
const h = d.currentTarget, { contentWrapper: m, shouldExpandOnScrollRef: f } = i;
|
|
4419
4391
|
if (f != null && f.current && m) {
|
|
4420
|
-
const
|
|
4421
|
-
if (
|
|
4422
|
-
const b = window.innerHeight -
|
|
4423
|
-
if (
|
|
4424
|
-
const
|
|
4392
|
+
const y = Math.abs(c.current - h.scrollTop);
|
|
4393
|
+
if (y > 0) {
|
|
4394
|
+
const b = window.innerHeight - ve * 2, u = parseFloat(m.style.minHeight), g = parseFloat(m.style.height), v = Math.max(u, g);
|
|
4395
|
+
if (v < b) {
|
|
4396
|
+
const x = v + y, w = Math.min(b, x), E = x - w;
|
|
4425
4397
|
m.style.height = w + "px", m.style.bottom === "0px" && (h.scrollTop = E > 0 ? E : 0, m.style.justifyContent = "flex-end");
|
|
4426
4398
|
}
|
|
4427
4399
|
}
|
|
@@ -4433,22 +4405,22 @@ var [ll, wn] = nt(Ge, {}), tn = "SelectViewport", bo = l.forwardRef(
|
|
|
4433
4405
|
] });
|
|
4434
4406
|
}
|
|
4435
4407
|
);
|
|
4436
|
-
|
|
4437
|
-
var
|
|
4408
|
+
xo.displayName = tn;
|
|
4409
|
+
var yo = "SelectGroup", [il, ll] = nt(yo), bo = l.forwardRef(
|
|
4438
4410
|
(e, t) => {
|
|
4439
4411
|
const { __scopeSelect: n, ...r } = e, a = Qe();
|
|
4440
|
-
return /* @__PURE__ */ p.jsx(
|
|
4412
|
+
return /* @__PURE__ */ p.jsx(il, { scope: n, id: a, children: /* @__PURE__ */ p.jsx(te.div, { role: "group", "aria-labelledby": a, ...r, ref: t }) });
|
|
4441
4413
|
}
|
|
4442
4414
|
);
|
|
4443
|
-
|
|
4444
|
-
var
|
|
4415
|
+
bo.displayName = yo;
|
|
4416
|
+
var wo = "SelectLabel", So = l.forwardRef(
|
|
4445
4417
|
(e, t) => {
|
|
4446
|
-
const { __scopeSelect: n, ...r } = e, a =
|
|
4418
|
+
const { __scopeSelect: n, ...r } = e, a = ll(wo, n);
|
|
4447
4419
|
return /* @__PURE__ */ p.jsx(te.div, { id: a.id, ...r, ref: t });
|
|
4448
4420
|
}
|
|
4449
4421
|
);
|
|
4450
|
-
|
|
4451
|
-
var St = "SelectItem", [
|
|
4422
|
+
So.displayName = wo;
|
|
4423
|
+
var St = "SelectItem", [cl, Co] = nt(St), Eo = l.forwardRef(
|
|
4452
4424
|
(e, t) => {
|
|
4453
4425
|
const {
|
|
4454
4426
|
__scopeSelect: n,
|
|
@@ -4456,13 +4428,13 @@ var St = "SelectItem", [dl, Po] = nt(St), No = l.forwardRef(
|
|
|
4456
4428
|
disabled: a = !1,
|
|
4457
4429
|
textValue: o,
|
|
4458
4430
|
...i
|
|
4459
|
-
} = e, s = ze(St, n), c = Oe(St, n),
|
|
4431
|
+
} = e, s = ze(St, n), c = Oe(St, n), d = s.value === r, [h, m] = l.useState(o ?? ""), [f, y] = l.useState(!1), b = ie(
|
|
4460
4432
|
t,
|
|
4461
|
-
(
|
|
4433
|
+
(x) => {
|
|
4462
4434
|
var w;
|
|
4463
|
-
return (w = c.itemRefCallback) == null ? void 0 : w.call(c,
|
|
4435
|
+
return (w = c.itemRefCallback) == null ? void 0 : w.call(c, x, r, a);
|
|
4464
4436
|
}
|
|
4465
|
-
),
|
|
4437
|
+
), u = Qe(), g = l.useRef("touch"), v = () => {
|
|
4466
4438
|
a || (s.onValueChange(r), s.onOpenChange(!1));
|
|
4467
4439
|
};
|
|
4468
4440
|
if (r === "")
|
|
@@ -4470,15 +4442,15 @@ var St = "SelectItem", [dl, Po] = nt(St), No = l.forwardRef(
|
|
|
4470
4442
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
4471
4443
|
);
|
|
4472
4444
|
return /* @__PURE__ */ p.jsx(
|
|
4473
|
-
|
|
4445
|
+
cl,
|
|
4474
4446
|
{
|
|
4475
4447
|
scope: n,
|
|
4476
4448
|
value: r,
|
|
4477
4449
|
disabled: a,
|
|
4478
|
-
textId:
|
|
4479
|
-
isSelected:
|
|
4480
|
-
onItemTextChange: l.useCallback((
|
|
4481
|
-
m((w) => w || ((
|
|
4450
|
+
textId: u,
|
|
4451
|
+
isSelected: d,
|
|
4452
|
+
onItemTextChange: l.useCallback((x) => {
|
|
4453
|
+
m((w) => w || ((x == null ? void 0 : x.textContent) ?? "").trim());
|
|
4482
4454
|
}, []),
|
|
4483
4455
|
children: /* @__PURE__ */ p.jsx(
|
|
4484
4456
|
_t.ItemSlot,
|
|
@@ -4491,37 +4463,37 @@ var St = "SelectItem", [dl, Po] = nt(St), No = l.forwardRef(
|
|
|
4491
4463
|
te.div,
|
|
4492
4464
|
{
|
|
4493
4465
|
role: "option",
|
|
4494
|
-
"aria-labelledby":
|
|
4466
|
+
"aria-labelledby": u,
|
|
4495
4467
|
"data-highlighted": f ? "" : void 0,
|
|
4496
|
-
"aria-selected":
|
|
4497
|
-
"data-state":
|
|
4468
|
+
"aria-selected": d && f,
|
|
4469
|
+
"data-state": d ? "checked" : "unchecked",
|
|
4498
4470
|
"aria-disabled": a || void 0,
|
|
4499
4471
|
"data-disabled": a ? "" : void 0,
|
|
4500
4472
|
tabIndex: a ? void 0 : -1,
|
|
4501
4473
|
...i,
|
|
4502
4474
|
ref: b,
|
|
4503
|
-
onFocus: ne(i.onFocus, () =>
|
|
4504
|
-
onBlur: ne(i.onBlur, () =>
|
|
4475
|
+
onFocus: ne(i.onFocus, () => y(!0)),
|
|
4476
|
+
onBlur: ne(i.onBlur, () => y(!1)),
|
|
4505
4477
|
onClick: ne(i.onClick, () => {
|
|
4506
|
-
|
|
4478
|
+
g.current !== "mouse" && v();
|
|
4507
4479
|
}),
|
|
4508
4480
|
onPointerUp: ne(i.onPointerUp, () => {
|
|
4509
|
-
|
|
4481
|
+
g.current === "mouse" && v();
|
|
4510
4482
|
}),
|
|
4511
|
-
onPointerDown: ne(i.onPointerDown, (
|
|
4512
|
-
|
|
4483
|
+
onPointerDown: ne(i.onPointerDown, (x) => {
|
|
4484
|
+
g.current = x.pointerType;
|
|
4513
4485
|
}),
|
|
4514
|
-
onPointerMove: ne(i.onPointerMove, (
|
|
4486
|
+
onPointerMove: ne(i.onPointerMove, (x) => {
|
|
4515
4487
|
var w;
|
|
4516
|
-
|
|
4488
|
+
g.current = x.pointerType, a ? (w = c.onItemLeave) == null || w.call(c) : g.current === "mouse" && x.currentTarget.focus({ preventScroll: !0 });
|
|
4517
4489
|
}),
|
|
4518
|
-
onPointerLeave: ne(i.onPointerLeave, (
|
|
4490
|
+
onPointerLeave: ne(i.onPointerLeave, (x) => {
|
|
4519
4491
|
var w;
|
|
4520
|
-
|
|
4492
|
+
x.currentTarget === document.activeElement && ((w = c.onItemLeave) == null || w.call(c));
|
|
4521
4493
|
}),
|
|
4522
|
-
onKeyDown: ne(i.onKeyDown, (
|
|
4494
|
+
onKeyDown: ne(i.onKeyDown, (x) => {
|
|
4523
4495
|
var E;
|
|
4524
|
-
((E = c.searchRef) == null ? void 0 : E.current) !== "" &&
|
|
4496
|
+
((E = c.searchRef) == null ? void 0 : E.current) !== "" && x.key === " " || (Yi.includes(x.key) && v(), x.key === " " && x.preventDefault());
|
|
4525
4497
|
})
|
|
4526
4498
|
}
|
|
4527
4499
|
)
|
|
@@ -4531,48 +4503,48 @@ var St = "SelectItem", [dl, Po] = nt(St), No = l.forwardRef(
|
|
|
4531
4503
|
);
|
|
4532
4504
|
}
|
|
4533
4505
|
);
|
|
4534
|
-
|
|
4535
|
-
var st = "SelectItemText",
|
|
4506
|
+
Eo.displayName = St;
|
|
4507
|
+
var st = "SelectItemText", Po = l.forwardRef(
|
|
4536
4508
|
(e, t) => {
|
|
4537
|
-
const { __scopeSelect: n, className: r, style: a, ...o } = e, i = ze(st, n), s = Oe(st, n), c =
|
|
4509
|
+
const { __scopeSelect: n, className: r, style: a, ...o } = e, i = ze(st, n), s = Oe(st, n), c = Co(st, n), d = Qi(st, n), [h, m] = l.useState(null), f = ie(
|
|
4538
4510
|
t,
|
|
4539
|
-
(
|
|
4511
|
+
(v) => m(v),
|
|
4540
4512
|
c.onItemTextChange,
|
|
4541
|
-
(
|
|
4542
|
-
var
|
|
4543
|
-
return (
|
|
4513
|
+
(v) => {
|
|
4514
|
+
var x;
|
|
4515
|
+
return (x = s.itemTextRefCallback) == null ? void 0 : x.call(s, v, c.value, c.disabled);
|
|
4544
4516
|
}
|
|
4545
|
-
),
|
|
4546
|
-
() => /* @__PURE__ */ p.jsx("option", { value: c.value, disabled: c.disabled, children:
|
|
4547
|
-
[c.disabled, c.value,
|
|
4548
|
-
), { onNativeOptionAdd:
|
|
4549
|
-
return ue(() => (
|
|
4517
|
+
), y = h == null ? void 0 : h.textContent, b = l.useMemo(
|
|
4518
|
+
() => /* @__PURE__ */ p.jsx("option", { value: c.value, disabled: c.disabled, children: y }, c.value),
|
|
4519
|
+
[c.disabled, c.value, y]
|
|
4520
|
+
), { onNativeOptionAdd: u, onNativeOptionRemove: g } = d;
|
|
4521
|
+
return ue(() => (u(b), () => g(b)), [u, g, b]), /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
4550
4522
|
/* @__PURE__ */ p.jsx(te.span, { id: c.textId, ...o, ref: f }),
|
|
4551
4523
|
c.isSelected && i.valueNode && !i.valueNodeHasChildren ? an.createPortal(o.children, i.valueNode) : null
|
|
4552
4524
|
] });
|
|
4553
4525
|
}
|
|
4554
4526
|
);
|
|
4555
|
-
|
|
4556
|
-
var
|
|
4527
|
+
Po.displayName = st;
|
|
4528
|
+
var No = "SelectItemIndicator", Ro = l.forwardRef(
|
|
4557
4529
|
(e, t) => {
|
|
4558
4530
|
const { __scopeSelect: n, ...r } = e;
|
|
4559
|
-
return
|
|
4531
|
+
return Co(No, n).isSelected ? /* @__PURE__ */ p.jsx(te.span, { "aria-hidden": !0, ...r, ref: t }) : null;
|
|
4560
4532
|
}
|
|
4561
4533
|
);
|
|
4562
|
-
|
|
4563
|
-
var nn = "SelectScrollUpButton",
|
|
4534
|
+
Ro.displayName = No;
|
|
4535
|
+
var nn = "SelectScrollUpButton", Io = l.forwardRef((e, t) => {
|
|
4564
4536
|
const n = Oe(nn, e.__scopeSelect), r = wn(nn, e.__scopeSelect), [a, o] = l.useState(!1), i = ie(t, r.onScrollButtonChange);
|
|
4565
4537
|
return ue(() => {
|
|
4566
4538
|
if (n.viewport && n.isPositioned) {
|
|
4567
4539
|
let s = function() {
|
|
4568
|
-
const
|
|
4569
|
-
o(
|
|
4540
|
+
const d = c.scrollTop > 0;
|
|
4541
|
+
o(d);
|
|
4570
4542
|
};
|
|
4571
4543
|
const c = n.viewport;
|
|
4572
4544
|
return s(), c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
|
|
4573
4545
|
}
|
|
4574
4546
|
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ p.jsx(
|
|
4575
|
-
|
|
4547
|
+
To,
|
|
4576
4548
|
{
|
|
4577
4549
|
...e,
|
|
4578
4550
|
ref: i,
|
|
@@ -4583,20 +4555,20 @@ var nn = "SelectScrollUpButton", To = l.forwardRef((e, t) => {
|
|
|
4583
4555
|
}
|
|
4584
4556
|
) : null;
|
|
4585
4557
|
});
|
|
4586
|
-
|
|
4587
|
-
var rn = "SelectScrollDownButton",
|
|
4558
|
+
Io.displayName = nn;
|
|
4559
|
+
var rn = "SelectScrollDownButton", Ao = l.forwardRef((e, t) => {
|
|
4588
4560
|
const n = Oe(rn, e.__scopeSelect), r = wn(rn, e.__scopeSelect), [a, o] = l.useState(!1), i = ie(t, r.onScrollButtonChange);
|
|
4589
4561
|
return ue(() => {
|
|
4590
4562
|
if (n.viewport && n.isPositioned) {
|
|
4591
4563
|
let s = function() {
|
|
4592
|
-
const
|
|
4564
|
+
const d = c.scrollHeight - c.clientHeight, h = Math.ceil(c.scrollTop) < d;
|
|
4593
4565
|
o(h);
|
|
4594
4566
|
};
|
|
4595
4567
|
const c = n.viewport;
|
|
4596
4568
|
return s(), c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
|
|
4597
4569
|
}
|
|
4598
4570
|
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ p.jsx(
|
|
4599
|
-
|
|
4571
|
+
To,
|
|
4600
4572
|
{
|
|
4601
4573
|
...e,
|
|
4602
4574
|
ref: i,
|
|
@@ -4607,15 +4579,15 @@ var rn = "SelectScrollDownButton", Mo = l.forwardRef((e, t) => {
|
|
|
4607
4579
|
}
|
|
4608
4580
|
) : null;
|
|
4609
4581
|
});
|
|
4610
|
-
|
|
4611
|
-
var
|
|
4582
|
+
Ao.displayName = rn;
|
|
4583
|
+
var To = l.forwardRef((e, t) => {
|
|
4612
4584
|
const { __scopeSelect: n, onAutoScroll: r, ...a } = e, o = Oe("SelectScrollButton", n), i = l.useRef(null), s = zt(n), c = l.useCallback(() => {
|
|
4613
4585
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
4614
4586
|
}, []);
|
|
4615
4587
|
return l.useEffect(() => () => c(), [c]), ue(() => {
|
|
4616
4588
|
var h;
|
|
4617
|
-
const
|
|
4618
|
-
(h =
|
|
4589
|
+
const d = s().find((m) => m.ref.current === document.activeElement);
|
|
4590
|
+
(h = d == null ? void 0 : d.ref.current) == null || h.scrollIntoView({ block: "nearest" });
|
|
4619
4591
|
}, [s]), /* @__PURE__ */ p.jsx(
|
|
4620
4592
|
te.div,
|
|
4621
4593
|
{
|
|
@@ -4627,31 +4599,31 @@ var Do = l.forwardRef((e, t) => {
|
|
|
4627
4599
|
i.current === null && (i.current = window.setInterval(r, 50));
|
|
4628
4600
|
}),
|
|
4629
4601
|
onPointerMove: ne(a.onPointerMove, () => {
|
|
4630
|
-
var
|
|
4631
|
-
(
|
|
4602
|
+
var d;
|
|
4603
|
+
(d = o.onItemLeave) == null || d.call(o), i.current === null && (i.current = window.setInterval(r, 50));
|
|
4632
4604
|
}),
|
|
4633
4605
|
onPointerLeave: ne(a.onPointerLeave, () => {
|
|
4634
4606
|
c();
|
|
4635
4607
|
})
|
|
4636
4608
|
}
|
|
4637
4609
|
);
|
|
4638
|
-
}),
|
|
4610
|
+
}), ul = "SelectSeparator", Mo = l.forwardRef(
|
|
4639
4611
|
(e, t) => {
|
|
4640
4612
|
const { __scopeSelect: n, ...r } = e;
|
|
4641
4613
|
return /* @__PURE__ */ p.jsx(te.div, { "aria-hidden": !0, ...r, ref: t });
|
|
4642
4614
|
}
|
|
4643
4615
|
);
|
|
4644
|
-
|
|
4645
|
-
var on = "SelectArrow",
|
|
4616
|
+
Mo.displayName = ul;
|
|
4617
|
+
var on = "SelectArrow", dl = l.forwardRef(
|
|
4646
4618
|
(e, t) => {
|
|
4647
4619
|
const { __scopeSelect: n, ...r } = e, a = Ot(n), o = ze(on, n), i = Oe(on, n);
|
|
4648
|
-
return o.open && i.position === "popper" ? /* @__PURE__ */ p.jsx(
|
|
4620
|
+
return o.open && i.position === "popper" ? /* @__PURE__ */ p.jsx(Za, { ...a, ...r, ref: t }) : null;
|
|
4649
4621
|
}
|
|
4650
4622
|
);
|
|
4651
|
-
|
|
4652
|
-
var
|
|
4623
|
+
dl.displayName = on;
|
|
4624
|
+
var fl = "SelectBubbleInput", Do = l.forwardRef(
|
|
4653
4625
|
({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
4654
|
-
const a = l.useRef(null), o = ie(r, a), i =
|
|
4626
|
+
const a = l.useRef(null), o = ie(r, a), i = Gi(t);
|
|
4655
4627
|
return l.useEffect(() => {
|
|
4656
4628
|
const s = a.current;
|
|
4657
4629
|
if (!s) return;
|
|
@@ -4667,23 +4639,23 @@ var ml = "SelectBubbleInput", zo = l.forwardRef(
|
|
|
4667
4639
|
te.select,
|
|
4668
4640
|
{
|
|
4669
4641
|
...n,
|
|
4670
|
-
style: { ...
|
|
4642
|
+
style: { ...oo, ...n.style },
|
|
4671
4643
|
ref: o,
|
|
4672
4644
|
defaultValue: t
|
|
4673
4645
|
}
|
|
4674
4646
|
);
|
|
4675
4647
|
}
|
|
4676
4648
|
);
|
|
4677
|
-
|
|
4678
|
-
function
|
|
4649
|
+
Do.displayName = fl;
|
|
4650
|
+
function _o(e) {
|
|
4679
4651
|
return e === "" || e === void 0;
|
|
4680
4652
|
}
|
|
4681
|
-
function
|
|
4682
|
-
const t =
|
|
4653
|
+
function zo(e) {
|
|
4654
|
+
const t = He(e), n = l.useRef(""), r = l.useRef(0), a = l.useCallback(
|
|
4683
4655
|
(i) => {
|
|
4684
4656
|
const s = n.current + i;
|
|
4685
|
-
t(s), function c(
|
|
4686
|
-
n.current =
|
|
4657
|
+
t(s), function c(d) {
|
|
4658
|
+
n.current = d, window.clearTimeout(r.current), d !== "" && (r.current = window.setTimeout(() => c(""), 1e3));
|
|
4687
4659
|
}(s);
|
|
4688
4660
|
},
|
|
4689
4661
|
[t]
|
|
@@ -4692,36 +4664,36 @@ function ko(e) {
|
|
|
4692
4664
|
}, []);
|
|
4693
4665
|
return l.useEffect(() => () => window.clearTimeout(r.current), []), [n, a, o];
|
|
4694
4666
|
}
|
|
4695
|
-
function
|
|
4696
|
-
const a = t.length > 1 && Array.from(t).every((
|
|
4697
|
-
let i =
|
|
4698
|
-
a.length === 1 && (i = i.filter((
|
|
4667
|
+
function Oo(e, t, n) {
|
|
4668
|
+
const a = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, o = n ? e.indexOf(n) : -1;
|
|
4669
|
+
let i = pl(e, Math.max(o, 0));
|
|
4670
|
+
a.length === 1 && (i = i.filter((d) => d !== n));
|
|
4699
4671
|
const c = i.find(
|
|
4700
|
-
(
|
|
4672
|
+
(d) => d.textValue.toLowerCase().startsWith(a.toLowerCase())
|
|
4701
4673
|
);
|
|
4702
4674
|
return c !== n ? c : void 0;
|
|
4703
4675
|
}
|
|
4704
|
-
function
|
|
4676
|
+
function pl(e, t) {
|
|
4705
4677
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
4706
4678
|
}
|
|
4707
|
-
var
|
|
4679
|
+
var ml = so, hl = lo, gl = uo, vl = fo, xl = po, yl = mo, bl = xo, wl = bo, Sl = So, Cl = Eo, El = Po, Pl = Ro, Nl = Io, Rl = Ao, Il = Mo;
|
|
4680
|
+
function Cc({ ...e }) {
|
|
4681
|
+
return /* @__PURE__ */ p.jsx(ml, { "data-slot": "select", ...e });
|
|
4682
|
+
}
|
|
4708
4683
|
function Ec({ ...e }) {
|
|
4709
|
-
return /* @__PURE__ */ p.jsx(
|
|
4684
|
+
return /* @__PURE__ */ p.jsx(wl, { "data-slot": "select-group", ...e });
|
|
4710
4685
|
}
|
|
4711
4686
|
function Pc({ ...e }) {
|
|
4712
|
-
return /* @__PURE__ */ p.jsx(
|
|
4713
|
-
}
|
|
4714
|
-
function Nc({ ...e }) {
|
|
4715
|
-
return /* @__PURE__ */ p.jsx(xl, { "data-slot": "select-value", ...e });
|
|
4687
|
+
return /* @__PURE__ */ p.jsx(gl, { "data-slot": "select-value", ...e });
|
|
4716
4688
|
}
|
|
4717
|
-
function
|
|
4689
|
+
function Nc({
|
|
4718
4690
|
className: e,
|
|
4719
4691
|
size: t = "default",
|
|
4720
4692
|
children: n,
|
|
4721
4693
|
...r
|
|
4722
4694
|
}) {
|
|
4723
4695
|
return /* @__PURE__ */ p.jsxs(
|
|
4724
|
-
|
|
4696
|
+
hl,
|
|
4725
4697
|
{
|
|
4726
4698
|
"data-slot": "select-trigger",
|
|
4727
4699
|
"data-size": t,
|
|
@@ -4732,14 +4704,14 @@ function Rc({
|
|
|
4732
4704
|
...r,
|
|
4733
4705
|
children: [
|
|
4734
4706
|
n,
|
|
4735
|
-
/* @__PURE__ */ p.jsx(
|
|
4707
|
+
/* @__PURE__ */ p.jsx(vl, { asChild: !0, children: /* @__PURE__ */ p.jsx(Sr, { className: "size-4 opacity-50" }) })
|
|
4736
4708
|
]
|
|
4737
4709
|
}
|
|
4738
4710
|
);
|
|
4739
4711
|
}
|
|
4740
|
-
function
|
|
4741
|
-
return /* @__PURE__ */ p.jsx(
|
|
4742
|
-
|
|
4712
|
+
function Rc({ className: e, children: t, position: n = "popper", ...r }) {
|
|
4713
|
+
return /* @__PURE__ */ p.jsx(xl, { children: /* @__PURE__ */ p.jsxs(
|
|
4714
|
+
yl,
|
|
4743
4715
|
{
|
|
4744
4716
|
"data-slot": "select-content",
|
|
4745
4717
|
className: ce(
|
|
@@ -4750,9 +4722,9 @@ function Ic({ className: e, children: t, position: n = "popper", ...r }) {
|
|
|
4750
4722
|
position: n,
|
|
4751
4723
|
...r,
|
|
4752
4724
|
children: [
|
|
4753
|
-
/* @__PURE__ */ p.jsx(
|
|
4725
|
+
/* @__PURE__ */ p.jsx(Al, {}),
|
|
4754
4726
|
/* @__PURE__ */ p.jsx(
|
|
4755
|
-
|
|
4727
|
+
bl,
|
|
4756
4728
|
{
|
|
4757
4729
|
className: ce(
|
|
4758
4730
|
"p-1",
|
|
@@ -4761,17 +4733,17 @@ function Ic({ className: e, children: t, position: n = "popper", ...r }) {
|
|
|
4761
4733
|
children: t
|
|
4762
4734
|
}
|
|
4763
4735
|
),
|
|
4764
|
-
/* @__PURE__ */ p.jsx(
|
|
4736
|
+
/* @__PURE__ */ p.jsx(Tl, {})
|
|
4765
4737
|
]
|
|
4766
4738
|
}
|
|
4767
4739
|
) });
|
|
4768
4740
|
}
|
|
4769
|
-
function
|
|
4770
|
-
return /* @__PURE__ */ p.jsx(
|
|
4741
|
+
function Ic({ className: e, ...t }) {
|
|
4742
|
+
return /* @__PURE__ */ p.jsx(Sl, { "data-slot": "select-label", className: ce("text-muted-foreground px-2 py-1.5 text-xs", e), ...t });
|
|
4771
4743
|
}
|
|
4772
|
-
function
|
|
4744
|
+
function Ac({ className: e, children: t, ...n }) {
|
|
4773
4745
|
return /* @__PURE__ */ p.jsxs(
|
|
4774
|
-
|
|
4746
|
+
Cl,
|
|
4775
4747
|
{
|
|
4776
4748
|
"data-slot": "select-item",
|
|
4777
4749
|
className: ce(
|
|
@@ -4780,15 +4752,15 @@ function Tc({ className: e, children: t, ...n }) {
|
|
|
4780
4752
|
),
|
|
4781
4753
|
...n,
|
|
4782
4754
|
children: [
|
|
4783
|
-
/* @__PURE__ */ p.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ p.jsx(
|
|
4784
|
-
/* @__PURE__ */ p.jsx(
|
|
4755
|
+
/* @__PURE__ */ p.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ p.jsx(Pl, { children: /* @__PURE__ */ p.jsx(Ks, { className: "size-4" }) }) }),
|
|
4756
|
+
/* @__PURE__ */ p.jsx(El, { children: t })
|
|
4785
4757
|
]
|
|
4786
4758
|
}
|
|
4787
4759
|
);
|
|
4788
4760
|
}
|
|
4789
|
-
function
|
|
4761
|
+
function Tc({ className: e, ...t }) {
|
|
4790
4762
|
return /* @__PURE__ */ p.jsx(
|
|
4791
|
-
|
|
4763
|
+
Il,
|
|
4792
4764
|
{
|
|
4793
4765
|
"data-slot": "select-separator",
|
|
4794
4766
|
className: ce("bg-border pointer-events-none -mx-1 my-1 h-px", e),
|
|
@@ -4796,84 +4768,84 @@ function Mc({ className: e, ...t }) {
|
|
|
4796
4768
|
}
|
|
4797
4769
|
);
|
|
4798
4770
|
}
|
|
4799
|
-
function
|
|
4771
|
+
function Al({ className: e, ...t }) {
|
|
4800
4772
|
return /* @__PURE__ */ p.jsx(
|
|
4801
|
-
|
|
4773
|
+
Nl,
|
|
4802
4774
|
{
|
|
4803
4775
|
"data-slot": "select-scroll-up-button",
|
|
4804
4776
|
className: ce("flex cursor-default items-center justify-center py-1", e),
|
|
4805
4777
|
...t,
|
|
4806
|
-
children: /* @__PURE__ */ p.jsx(
|
|
4778
|
+
children: /* @__PURE__ */ p.jsx(qs, { className: "size-4" })
|
|
4807
4779
|
}
|
|
4808
4780
|
);
|
|
4809
4781
|
}
|
|
4810
|
-
function
|
|
4782
|
+
function Tl({ className: e, ...t }) {
|
|
4811
4783
|
return /* @__PURE__ */ p.jsx(
|
|
4812
|
-
|
|
4784
|
+
Rl,
|
|
4813
4785
|
{
|
|
4814
4786
|
"data-slot": "select-scroll-down-button",
|
|
4815
4787
|
className: ce("flex cursor-default items-center justify-center py-1", e),
|
|
4816
4788
|
...t,
|
|
4817
|
-
children: /* @__PURE__ */ p.jsx(
|
|
4789
|
+
children: /* @__PURE__ */ p.jsx(Sr, { className: "size-4" })
|
|
4818
4790
|
}
|
|
4819
4791
|
);
|
|
4820
4792
|
}
|
|
4821
|
-
var
|
|
4822
|
-
for (var n in t || (t = {}))
|
|
4823
|
-
if (Ct) for (var n of Ct(t))
|
|
4793
|
+
var Ml = Object.defineProperty, Dl = Object.defineProperties, _l = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, ko = Object.prototype.hasOwnProperty, Lo = Object.prototype.propertyIsEnumerable, Gn = (e, t, n) => t in e ? Ml(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zl = (e, t) => {
|
|
4794
|
+
for (var n in t || (t = {})) ko.call(t, n) && Gn(e, n, t[n]);
|
|
4795
|
+
if (Ct) for (var n of Ct(t)) Lo.call(t, n) && Gn(e, n, t[n]);
|
|
4824
4796
|
return e;
|
|
4825
|
-
},
|
|
4797
|
+
}, Ol = (e, t) => Dl(e, _l(t)), kl = (e, t) => {
|
|
4826
4798
|
var n = {};
|
|
4827
|
-
for (var r in e)
|
|
4828
|
-
if (e != null && Ct) for (var r of Ct(e)) t.indexOf(r) < 0 &&
|
|
4799
|
+
for (var r in e) ko.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4800
|
+
if (e != null && Ct) for (var r of Ct(e)) t.indexOf(r) < 0 && Lo.call(e, r) && (n[r] = e[r]);
|
|
4829
4801
|
return n;
|
|
4830
4802
|
};
|
|
4831
|
-
function
|
|
4803
|
+
function Ll(e) {
|
|
4832
4804
|
let t = setTimeout(e, 0), n = setTimeout(e, 10), r = setTimeout(e, 50);
|
|
4833
4805
|
return [t, n, r];
|
|
4834
4806
|
}
|
|
4835
|
-
function
|
|
4807
|
+
function jl(e) {
|
|
4836
4808
|
let t = l.useRef();
|
|
4837
4809
|
return l.useEffect(() => {
|
|
4838
4810
|
t.current = e;
|
|
4839
4811
|
}), t.current;
|
|
4840
4812
|
}
|
|
4841
|
-
var
|
|
4842
|
-
function
|
|
4843
|
-
let [a, o] = l.useState(!1), [i, s] = l.useState(!1), [c,
|
|
4844
|
-
let f = e.current,
|
|
4845
|
-
if (!f || !
|
|
4846
|
-
let b = f,
|
|
4847
|
-
document.querySelectorAll(
|
|
4813
|
+
var $l = 18, jo = 40, Bl = `${jo}px`, Hl = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
|
|
4814
|
+
function Fl({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
|
|
4815
|
+
let [a, o] = l.useState(!1), [i, s] = l.useState(!1), [c, d] = l.useState(!1), h = l.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && a && i, [a, i, n]), m = l.useCallback(() => {
|
|
4816
|
+
let f = e.current, y = t.current;
|
|
4817
|
+
if (!f || !y || c || n === "none") return;
|
|
4818
|
+
let b = f, u = b.getBoundingClientRect().left + b.offsetWidth, g = b.getBoundingClientRect().top + b.offsetHeight / 2, v = u - $l, x = g;
|
|
4819
|
+
document.querySelectorAll(Hl).length === 0 && document.elementFromPoint(v, x) === f || (o(!0), d(!0));
|
|
4848
4820
|
}, [e, t, c, n]);
|
|
4849
4821
|
return l.useEffect(() => {
|
|
4850
4822
|
let f = e.current;
|
|
4851
4823
|
if (!f || n === "none") return;
|
|
4852
|
-
function
|
|
4853
|
-
let
|
|
4854
|
-
s(
|
|
4824
|
+
function y() {
|
|
4825
|
+
let u = window.innerWidth - f.getBoundingClientRect().right;
|
|
4826
|
+
s(u >= jo);
|
|
4855
4827
|
}
|
|
4856
|
-
|
|
4857
|
-
let b = setInterval(
|
|
4828
|
+
y();
|
|
4829
|
+
let b = setInterval(y, 1e3);
|
|
4858
4830
|
return () => {
|
|
4859
4831
|
clearInterval(b);
|
|
4860
4832
|
};
|
|
4861
4833
|
}, [e, n]), l.useEffect(() => {
|
|
4862
4834
|
let f = r || document.activeElement === t.current;
|
|
4863
4835
|
if (n === "none" || !f) return;
|
|
4864
|
-
let
|
|
4865
|
-
|
|
4836
|
+
let y = setTimeout(m, 0), b = setTimeout(m, 2e3), u = setTimeout(m, 5e3), g = setTimeout(() => {
|
|
4837
|
+
d(!0);
|
|
4866
4838
|
}, 6e3);
|
|
4867
4839
|
return () => {
|
|
4868
|
-
clearTimeout(
|
|
4840
|
+
clearTimeout(y), clearTimeout(b), clearTimeout(u), clearTimeout(g);
|
|
4869
4841
|
};
|
|
4870
|
-
}, [t, r, n, m]), { hasPWMBadge: a, willPushPWMBadge: h, PWM_BADGE_SPACE_WIDTH:
|
|
4842
|
+
}, [t, r, n, m]), { hasPWMBadge: a, willPushPWMBadge: h, PWM_BADGE_SPACE_WIDTH: Bl };
|
|
4871
4843
|
}
|
|
4872
|
-
var
|
|
4873
|
-
var n = e, { value: r, onChange: a, maxLength: o, textAlign: i = "left", pattern: s, placeholder: c, inputMode:
|
|
4874
|
-
let [C, B] = l.useState(typeof
|
|
4844
|
+
var Wl = l.createContext({}), Vl = l.forwardRef((e, t) => {
|
|
4845
|
+
var n = e, { value: r, onChange: a, maxLength: o, textAlign: i = "left", pattern: s, placeholder: c, inputMode: d = "numeric", onComplete: h, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: f, containerClassName: y, noScriptCSSFallback: b = Ul, render: u, children: g } = n, v = kl(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), x, w, E, M, I;
|
|
4846
|
+
let [C, B] = l.useState(typeof v.defaultValue == "string" ? v.defaultValue : ""), _ = r ?? C, H = jl(_), U = l.useCallback((R) => {
|
|
4875
4847
|
a == null || a(R), B(R);
|
|
4876
|
-
}, [a]), k = l.useMemo(() => s ? typeof s == "string" ? new RegExp(s) : s : null, [s]), j = l.useRef(null), X = l.useRef(null), K = l.useRef({ value: _, onChange: U, isIOS: typeof window < "u" && ((w = (
|
|
4848
|
+
}, [a]), k = l.useMemo(() => s ? typeof s == "string" ? new RegExp(s) : s : null, [s]), j = l.useRef(null), X = l.useRef(null), K = l.useRef({ value: _, onChange: U, isIOS: typeof window < "u" && ((w = (x = window == null ? void 0 : window.CSS) == null ? void 0 : x.supports) == null ? void 0 : w.call(x, "-webkit-touch-callout", "none")) }), V = l.useRef({ prev: [(E = j.current) == null ? void 0 : E.selectionStart, (M = j.current) == null ? void 0 : M.selectionEnd, (I = j.current) == null ? void 0 : I.selectionDirection] });
|
|
4877
4849
|
l.useImperativeHandle(t, () => j.current, []), l.useEffect(() => {
|
|
4878
4850
|
let R = j.current, z = X.current;
|
|
4879
4851
|
if (!R || !z) return;
|
|
@@ -4885,8 +4857,8 @@ var Ul = l.createContext({}), Gl = l.forwardRef((e, t) => {
|
|
|
4885
4857
|
}
|
|
4886
4858
|
let Y = R.selectionStart, fe = R.selectionEnd, be = R.selectionDirection, pe = R.maxLength, Se = R.value, Ce = V.current.prev, Re = -1, Ie = -1, ke;
|
|
4887
4859
|
if (Se.length !== 0 && Y !== null && fe !== null) {
|
|
4888
|
-
let
|
|
4889
|
-
if (
|
|
4860
|
+
let Bo = Y === fe, Ho = Y === Se.length && Se.length < pe;
|
|
4861
|
+
if (Bo && !Ho) {
|
|
4890
4862
|
let Le = Y;
|
|
4891
4863
|
if (Le === 0) Re = 0, Ie = 1, ke = "forward";
|
|
4892
4864
|
else if (Le === pe) Re = Le - 1, Ie = Le, ke = "backward";
|
|
@@ -4894,16 +4866,16 @@ var Ul = l.createContext({}), Gl = l.forwardRef((e, t) => {
|
|
|
4894
4866
|
let kt = 0;
|
|
4895
4867
|
if (Ce[0] !== null && Ce[1] !== null) {
|
|
4896
4868
|
ke = Le < Ce[1] ? "backward" : "forward";
|
|
4897
|
-
let
|
|
4898
|
-
ke === "backward" && !
|
|
4869
|
+
let Fo = Ce[0] === Ce[1] && Ce[0] < pe;
|
|
4870
|
+
ke === "backward" && !Fo && (kt = -1);
|
|
4899
4871
|
}
|
|
4900
4872
|
Re = kt + Le, Ie = kt + Le + 1;
|
|
4901
4873
|
}
|
|
4902
4874
|
}
|
|
4903
4875
|
Re !== -1 && Ie !== -1 && Re !== Ie && j.current.setSelectionRange(Re, Ie, ke);
|
|
4904
4876
|
}
|
|
4905
|
-
let Sn = Re !== -1 ? Re : Y, Cn = Ie !== -1 ? Ie : fe,
|
|
4906
|
-
le(Sn), A(Cn), V.current.prev = [Sn, Cn,
|
|
4877
|
+
let Sn = Re !== -1 ? Re : Y, Cn = Ie !== -1 ? Ie : fe, $o = ke ?? be;
|
|
4878
|
+
le(Sn), A(Cn), V.current.prev = [Sn, Cn, $o];
|
|
4907
4879
|
}
|
|
4908
4880
|
if (document.addEventListener("selectionchange", ee, { capture: !0 }), ee(), document.activeElement === R && de(!0), !document.getElementById("input-otp-style")) {
|
|
4909
4881
|
let Y = document.createElement("style");
|
|
@@ -4923,7 +4895,7 @@ var Ul = l.createContext({}), Gl = l.forwardRef((e, t) => {
|
|
|
4923
4895
|
}, []);
|
|
4924
4896
|
let [Q, J] = l.useState(!1), [Z, de] = l.useState(!1), [re, le] = l.useState(null), [P, A] = l.useState(null);
|
|
4925
4897
|
l.useEffect(() => {
|
|
4926
|
-
|
|
4898
|
+
Ll(() => {
|
|
4927
4899
|
var R, z, ee, ae;
|
|
4928
4900
|
(R = j.current) == null || R.dispatchEvent(new Event("input"));
|
|
4929
4901
|
let q = (z = j.current) == null ? void 0 : z.selectionStart, Y = (ee = j.current) == null ? void 0 : ee.selectionEnd, fe = (ae = j.current) == null ? void 0 : ae.selectionDirection;
|
|
@@ -4932,7 +4904,7 @@ var Ul = l.createContext({}), Gl = l.forwardRef((e, t) => {
|
|
|
4932
4904
|
}, [_, Z]), l.useEffect(() => {
|
|
4933
4905
|
H !== void 0 && _ !== H && H.length < o && _.length === o && (h == null || h(_));
|
|
4934
4906
|
}, [o, h, H, _]);
|
|
4935
|
-
let D =
|
|
4907
|
+
let D = Fl({ containerRef: X, inputRef: j, pushPasswordManagerStrategy: m, isFocused: Z }), T = l.useCallback((R) => {
|
|
4936
4908
|
let z = R.currentTarget.value.slice(0, o);
|
|
4937
4909
|
if (z.length > 0 && k && !k.test(z)) {
|
|
4938
4910
|
R.preventDefault();
|
|
@@ -4957,36 +4929,36 @@ var Ul = l.createContext({}), Gl = l.forwardRef((e, t) => {
|
|
|
4957
4929
|
ae.value = pe, U(pe);
|
|
4958
4930
|
let Se = Math.min(pe.length, o - 1), Ce = pe.length;
|
|
4959
4931
|
ae.setSelectionRange(Se, Ce), le(Se), A(Ce);
|
|
4960
|
-
}, [o, U, k, _]), L = l.useMemo(() => ({ position: "relative", cursor:
|
|
4932
|
+
}, [o, U, k, _]), L = l.useMemo(() => ({ position: "relative", cursor: v.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [v.disabled]), O = l.useMemo(() => ({ position: "absolute", inset: 0, width: D.willPushPWMBadge ? `calc(100% + ${D.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: D.willPushPWMBadge ? `inset(0 ${D.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: i, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [D.PWM_BADGE_SPACE_WIDTH, D.willPushPWMBadge, i]), F = l.useMemo(() => l.createElement("input", Ol(zl({ autoComplete: v.autoComplete || "one-time-code" }, v), { "data-input-otp": !0, "data-input-otp-placeholder-shown": _.length === 0 || void 0, "data-input-otp-mss": re, "data-input-otp-mse": P, inputMode: d, pattern: k == null ? void 0 : k.source, "aria-placeholder": c, style: O, maxLength: o, value: _, ref: j, onPaste: (R) => {
|
|
4961
4933
|
var z;
|
|
4962
|
-
N(R), (z =
|
|
4934
|
+
N(R), (z = v.onPaste) == null || z.call(v, R);
|
|
4963
4935
|
}, onChange: T, onMouseOver: (R) => {
|
|
4964
4936
|
var z;
|
|
4965
|
-
J(!0), (z =
|
|
4937
|
+
J(!0), (z = v.onMouseOver) == null || z.call(v, R);
|
|
4966
4938
|
}, onMouseLeave: (R) => {
|
|
4967
4939
|
var z;
|
|
4968
|
-
J(!1), (z =
|
|
4940
|
+
J(!1), (z = v.onMouseLeave) == null || z.call(v, R);
|
|
4969
4941
|
}, onFocus: (R) => {
|
|
4970
4942
|
var z;
|
|
4971
|
-
S(), (z =
|
|
4943
|
+
S(), (z = v.onFocus) == null || z.call(v, R);
|
|
4972
4944
|
}, onBlur: (R) => {
|
|
4973
4945
|
var z;
|
|
4974
|
-
de(!1), (z =
|
|
4975
|
-
} })), [T, S, N,
|
|
4946
|
+
de(!1), (z = v.onBlur) == null || z.call(v, R);
|
|
4947
|
+
} })), [T, S, N, d, O, o, P, re, v, k == null ? void 0 : k.source, _]), $ = l.useMemo(() => ({ slots: Array.from({ length: o }).map((R, z) => {
|
|
4976
4948
|
var ee;
|
|
4977
4949
|
let ae = Z && re !== null && P !== null && (re === P && z === re || z >= re && z < P), q = _[z] !== void 0 ? _[z] : null, Y = _[0] !== void 0 ? null : (ee = c == null ? void 0 : c[z]) != null ? ee : null;
|
|
4978
4950
|
return { char: q, placeholderChar: Y, isActive: ae, hasFakeCaret: ae && q === null };
|
|
4979
|
-
}), isFocused: Z, isHovering: !
|
|
4980
|
-
return l.createElement(l.Fragment, null, b !== null && l.createElement("noscript", null, l.createElement("style", null, b)), l.createElement("div", { ref: X, "data-input-otp-container": !0, style: L, className:
|
|
4951
|
+
}), isFocused: Z, isHovering: !v.disabled && Q }), [Z, Q, o, P, re, v.disabled, _]), G = l.useMemo(() => u ? u($) : l.createElement(Wl.Provider, { value: $ }, g), [g, $, u]);
|
|
4952
|
+
return l.createElement(l.Fragment, null, b !== null && l.createElement("noscript", null, l.createElement("style", null, b)), l.createElement("div", { ref: X, "data-input-otp-container": !0, style: L, className: y }, G, l.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, F)));
|
|
4981
4953
|
});
|
|
4982
|
-
|
|
4954
|
+
Vl.displayName = "Input";
|
|
4983
4955
|
function rt(e, t) {
|
|
4984
4956
|
try {
|
|
4985
4957
|
e.insertRule(t);
|
|
4986
4958
|
} catch {
|
|
4987
4959
|
}
|
|
4988
4960
|
}
|
|
4989
|
-
var
|
|
4961
|
+
var Ul = `
|
|
4990
4962
|
[data-input-otp] {
|
|
4991
4963
|
--nojs-bg: white !important;
|
|
4992
4964
|
--nojs-fg: black !important;
|
|
@@ -5007,73 +4979,72 @@ var Kl = `
|
|
|
5007
4979
|
}
|
|
5008
4980
|
}`;
|
|
5009
4981
|
export {
|
|
5010
|
-
|
|
5011
|
-
|
|
4982
|
+
Wi as $,
|
|
4983
|
+
Ya as A,
|
|
5012
4984
|
ue as B,
|
|
5013
|
-
|
|
4985
|
+
qa as C,
|
|
5014
4986
|
sn as D,
|
|
5015
|
-
|
|
4987
|
+
Li as E,
|
|
5016
4988
|
ln as F,
|
|
5017
4989
|
$i as G,
|
|
5018
4990
|
Hi as H,
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
4991
|
+
pc as I,
|
|
4992
|
+
vc as J,
|
|
4993
|
+
yc as K,
|
|
5022
4994
|
bc as L,
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
4995
|
+
gc as M,
|
|
4996
|
+
Sr as N,
|
|
4997
|
+
Bi as O,
|
|
5026
4998
|
te as P,
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
4999
|
+
wc as Q,
|
|
5000
|
+
Xa as R,
|
|
5001
|
+
Cc as S,
|
|
5002
|
+
Gi as T,
|
|
5003
|
+
Un as U,
|
|
5004
|
+
Vl as V,
|
|
5005
|
+
Wl as W,
|
|
5006
|
+
Ha as X,
|
|
5007
|
+
ji as Y,
|
|
5008
|
+
ro as Z,
|
|
5009
|
+
Fi as _,
|
|
5010
|
+
Nc as a,
|
|
5011
|
+
dc as a0,
|
|
5040
5012
|
fc as a1,
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
Ac as
|
|
5057
|
-
Tc as f,
|
|
5013
|
+
uc as a2,
|
|
5014
|
+
ca as a3,
|
|
5015
|
+
pa as a4,
|
|
5016
|
+
hc as a5,
|
|
5017
|
+
xc as a6,
|
|
5018
|
+
Ui as a7,
|
|
5019
|
+
Vi as a8,
|
|
5020
|
+
mc as a9,
|
|
5021
|
+
Tl as aa,
|
|
5022
|
+
Al as ab,
|
|
5023
|
+
Tc as ac,
|
|
5024
|
+
Pc as b,
|
|
5025
|
+
Rc as c,
|
|
5026
|
+
Ec as d,
|
|
5027
|
+
Ic as e,
|
|
5028
|
+
Ac as f,
|
|
5058
5029
|
Pt as g,
|
|
5059
|
-
|
|
5030
|
+
ya as h,
|
|
5060
5031
|
ne as i,
|
|
5061
|
-
|
|
5032
|
+
wa as j,
|
|
5062
5033
|
qt as k,
|
|
5063
|
-
|
|
5064
|
-
|
|
5034
|
+
He as l,
|
|
5035
|
+
rr as m,
|
|
5065
5036
|
Nt as n,
|
|
5066
5037
|
dn as o,
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5038
|
+
pr as p,
|
|
5039
|
+
da as q,
|
|
5040
|
+
Qn as r,
|
|
5070
5041
|
fn as s,
|
|
5071
|
-
|
|
5042
|
+
Za as t,
|
|
5072
5043
|
Qe as u,
|
|
5073
5044
|
pn as v,
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5045
|
+
Ks as w,
|
|
5046
|
+
Pi as x,
|
|
5047
|
+
Qs as y,
|
|
5048
|
+
Ri as z
|
|
5078
5049
|
};
|
|
5079
|
-
//# sourceMappingURL=index-
|
|
5050
|
+
//# sourceMappingURL=index-DALlpGON.js.map
|