@sentinel-core/sentinel 1.0.32 → 1.0.33
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/sentinel.cjs +16 -16
- package/dist/sentinel.css +1 -1
- package/dist/sentinel.es.js +873 -827
- package/package.json +1 -1
package/dist/sentinel.es.js
CHANGED
|
@@ -3376,7 +3376,7 @@ var Ki = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, qi = Ve, Ji
|
|
|
3376
3376
|
Xi.displayName = "Button";
|
|
3377
3377
|
//#endregion
|
|
3378
3378
|
//#region src/ui/components/Dialog.tsx
|
|
3379
|
-
var Zi = Ji("fixed z-[
|
|
3379
|
+
var Zi = Ji("fixed z-[10000] gap-4 bg-background !p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
|
|
3380
3380
|
variants: { variant: {
|
|
3381
3381
|
center: "left-[50%] top-[50%] grid w-full h-full max-w-5/6 max-h-5/6 translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background !p-6 shadow-lg duration-200 sm:rounded-lg",
|
|
3382
3382
|
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
@@ -3387,7 +3387,7 @@ var Zi = Ji("fixed z-[999] gap-4 bg-background !p-6 shadow-lg transition ease-in
|
|
|
3387
3387
|
defaultVariants: { variant: "center" }
|
|
3388
3388
|
}), Qi = vi, $i = Ti, ea = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Di, {
|
|
3389
3389
|
ref: r,
|
|
3390
|
-
className: G("fixed inset-0 z-[
|
|
3390
|
+
className: G("fixed inset-0 z-[10000] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", t),
|
|
3391
3391
|
...n
|
|
3392
3392
|
}));
|
|
3393
3393
|
ea.displayName = Di.displayName;
|
|
@@ -3546,48 +3546,248 @@ var oa = (e) => {
|
|
|
3546
3546
|
}), a < o.length - 1 && /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground" }, ","))), "}"));
|
|
3547
3547
|
}
|
|
3548
3548
|
return /* @__PURE__ */ t.createElement("span", null, String(e));
|
|
3549
|
-
}, ma = (
|
|
3550
|
-
let
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3549
|
+
}, ma = "Collapsible", [ha, ga] = h(ma), [_a, va] = ha(ma), ya = e.forwardRef((t, n) => {
|
|
3550
|
+
let { __scopeCollapsible: r, open: i, defaultOpen: a, disabled: o, onOpenChange: s, ...c } = t, [l = !1, u] = P({
|
|
3551
|
+
prop: i,
|
|
3552
|
+
defaultProp: a,
|
|
3553
|
+
onChange: s
|
|
3554
|
+
});
|
|
3555
|
+
return /* @__PURE__ */ e.createElement(_a, {
|
|
3556
|
+
scope: r,
|
|
3557
|
+
disabled: o,
|
|
3558
|
+
contentId: A(),
|
|
3559
|
+
open: l,
|
|
3560
|
+
onOpenToggle: e.useCallback(() => u((e) => !e), [u])
|
|
3561
|
+
}, /* @__PURE__ */ e.createElement(j.div, {
|
|
3562
|
+
"data-state": ba(l),
|
|
3563
|
+
"data-disabled": o ? "" : void 0,
|
|
3564
|
+
...c,
|
|
3565
|
+
ref: n
|
|
3566
|
+
}));
|
|
3567
|
+
});
|
|
3568
|
+
ya.displayName = ma;
|
|
3569
|
+
function ba(e) {
|
|
3570
|
+
return e ? "open" : "closed";
|
|
3571
|
+
}
|
|
3572
|
+
var xa = ya, Sa = "CollapsibleTrigger", Ca = t.forwardRef((e, n) => {
|
|
3573
|
+
let { __scopeCollapsible: r, ...i } = e, a = va(Sa, r);
|
|
3574
|
+
return /* @__PURE__ */ t.createElement(j.button, {
|
|
3575
|
+
type: "button",
|
|
3576
|
+
"aria-controls": a.contentId,
|
|
3577
|
+
"aria-expanded": a.open || !1,
|
|
3578
|
+
"data-state": ba(a.open),
|
|
3579
|
+
"data-disabled": a.disabled ? "" : void 0,
|
|
3580
|
+
disabled: a.disabled,
|
|
3581
|
+
...i,
|
|
3582
|
+
ref: n,
|
|
3583
|
+
onClick: _(e.onClick, a.onOpenToggle)
|
|
3584
|
+
});
|
|
3585
|
+
});
|
|
3586
|
+
Ca.displayName = Sa;
|
|
3587
|
+
var wa = "CollapsibleContent", Ta = t.forwardRef((e, n) => {
|
|
3588
|
+
let { forceMount: r, ...i } = e, a = va(wa, e.__scopeCollapsible);
|
|
3589
|
+
return /* @__PURE__ */ t.createElement(xe, { present: r || a.open }, ({ present: e }) => /* @__PURE__ */ t.createElement(Ea, {
|
|
3590
|
+
...i,
|
|
3591
|
+
ref: n,
|
|
3592
|
+
present: e
|
|
3593
|
+
}));
|
|
3594
|
+
});
|
|
3595
|
+
Ta.displayName = wa;
|
|
3596
|
+
var Ea = t.forwardRef((e, n) => {
|
|
3597
|
+
let { __scopeCollapsible: r, present: i, children: a, ...o } = e, s = va(wa, r), [c, l] = t.useState(i), u = t.useRef(null), d = b(n, u), f = t.useRef(0), p = f.current, m = t.useRef(0), h = m.current, g = s.open || c, _ = t.useRef(g), v = t.useRef();
|
|
3598
|
+
return t.useEffect(() => {
|
|
3599
|
+
let e = requestAnimationFrame(() => _.current = !1);
|
|
3600
|
+
return () => cancelAnimationFrame(e);
|
|
3601
|
+
}, []), D(() => {
|
|
3602
|
+
let e = u.current;
|
|
3603
|
+
if (e) {
|
|
3604
|
+
v.current = v.current || {
|
|
3605
|
+
transitionDuration: e.style.transitionDuration,
|
|
3606
|
+
animationName: e.style.animationName
|
|
3607
|
+
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
|
|
3608
|
+
let t = e.getBoundingClientRect();
|
|
3609
|
+
f.current = t.height, m.current = t.width, _.current || (e.style.transitionDuration = v.current.transitionDuration, e.style.animationName = v.current.animationName), l(i);
|
|
3555
3610
|
}
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
},
|
|
3569
|
-
},
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
let
|
|
3611
|
+
}, [s.open, i]), /* @__PURE__ */ t.createElement(j.div, {
|
|
3612
|
+
"data-state": ba(s.open),
|
|
3613
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
3614
|
+
id: s.contentId,
|
|
3615
|
+
hidden: !g,
|
|
3616
|
+
...o,
|
|
3617
|
+
ref: d,
|
|
3618
|
+
style: {
|
|
3619
|
+
"--huin-core-collapsible-content-height": p ? `${p}px` : void 0,
|
|
3620
|
+
"--huin-core-collapsible-content-width": h ? `${h}px` : void 0,
|
|
3621
|
+
...e.style
|
|
3622
|
+
}
|
|
3623
|
+
}, g && a);
|
|
3624
|
+
}), Da = "Accordion", Oa = [
|
|
3625
|
+
"Home",
|
|
3626
|
+
"End",
|
|
3627
|
+
"ArrowDown",
|
|
3628
|
+
"ArrowUp",
|
|
3629
|
+
"ArrowLeft",
|
|
3630
|
+
"ArrowRight"
|
|
3631
|
+
], [ka, Aa, ja] = ee(Da), [Ma, Na] = h(Da, [ja, ga]), Pa = ga(), Fa = t.forwardRef((e, n) => {
|
|
3632
|
+
let { type: r, ...i } = e, a = i, o = i;
|
|
3633
|
+
return /* @__PURE__ */ t.createElement(ka.Provider, { scope: e.__scopeAccordion }, r === "multiple" ? /* @__PURE__ */ t.createElement(Va, {
|
|
3634
|
+
...o,
|
|
3635
|
+
ref: n
|
|
3636
|
+
}) : /* @__PURE__ */ t.createElement(Ba, {
|
|
3637
|
+
...a,
|
|
3638
|
+
ref: n
|
|
3639
|
+
}));
|
|
3640
|
+
});
|
|
3641
|
+
Fa.displayName = Da;
|
|
3642
|
+
var [Ia, La] = Ma(Da), [Ra, za] = Ma(Da, { collapsible: !1 }), Ba = t.forwardRef((e, n) => {
|
|
3643
|
+
let { value: r, defaultValue: i, onValueChange: a = () => {}, collapsible: o = !1, ...s } = e, [c, l] = P({
|
|
3644
|
+
prop: r,
|
|
3645
|
+
defaultProp: i,
|
|
3646
|
+
onChange: a
|
|
3647
|
+
});
|
|
3648
|
+
return /* @__PURE__ */ t.createElement(Ia, {
|
|
3649
|
+
scope: e.__scopeAccordion,
|
|
3650
|
+
value: c ? [c] : [],
|
|
3651
|
+
onItemOpen: l,
|
|
3652
|
+
onItemClose: t.useCallback(() => o && l(""), [o, l])
|
|
3653
|
+
}, /* @__PURE__ */ t.createElement(Ra, {
|
|
3654
|
+
scope: e.__scopeAccordion,
|
|
3655
|
+
collapsible: o
|
|
3656
|
+
}, /* @__PURE__ */ t.createElement(Wa, {
|
|
3657
|
+
...s,
|
|
3658
|
+
ref: n
|
|
3659
|
+
})));
|
|
3660
|
+
}), Va = t.forwardRef((e, n) => {
|
|
3661
|
+
let { value: r, defaultValue: i, onValueChange: a = () => {}, ...o } = e, [s = [], c] = P({
|
|
3662
|
+
prop: r,
|
|
3663
|
+
defaultProp: i,
|
|
3664
|
+
onChange: a
|
|
3665
|
+
}), l = t.useCallback((e) => c((t = []) => [...t, e]), [c]), u = t.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
3666
|
+
return /* @__PURE__ */ t.createElement(Ia, {
|
|
3667
|
+
scope: e.__scopeAccordion,
|
|
3668
|
+
value: s,
|
|
3669
|
+
onItemOpen: l,
|
|
3670
|
+
onItemClose: u
|
|
3671
|
+
}, /* @__PURE__ */ t.createElement(Ra, {
|
|
3672
|
+
scope: e.__scopeAccordion,
|
|
3673
|
+
collapsible: !0
|
|
3674
|
+
}, /* @__PURE__ */ t.createElement(Wa, {
|
|
3675
|
+
...o,
|
|
3676
|
+
ref: n
|
|
3677
|
+
})));
|
|
3678
|
+
}), [Ha, Ua] = Ma(Da), Wa = t.forwardRef((e, n) => {
|
|
3679
|
+
let { __scopeAccordion: r, disabled: i, dir: a, orientation: o = "vertical", ...s } = e, c = b(t.useRef(null), n), l = Aa(r), u = ne(a) === "ltr", d = _(e.onKeyDown, (e) => {
|
|
3680
|
+
if (!Oa.includes(e.key)) return;
|
|
3681
|
+
let t = e.target, n = l().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
3682
|
+
if (r === -1) return;
|
|
3683
|
+
e.preventDefault();
|
|
3684
|
+
let a = r, s = i - 1, c = () => {
|
|
3685
|
+
a = r + 1, a > s && (a = 0);
|
|
3686
|
+
}, d = () => {
|
|
3687
|
+
a = r - 1, a < 0 && (a = s);
|
|
3688
|
+
};
|
|
3689
|
+
switch (e.key) {
|
|
3690
|
+
case "Home":
|
|
3691
|
+
a = 0;
|
|
3692
|
+
break;
|
|
3693
|
+
case "End":
|
|
3694
|
+
a = s;
|
|
3695
|
+
break;
|
|
3696
|
+
case "ArrowRight":
|
|
3697
|
+
o === "horizontal" && (u ? c() : d());
|
|
3698
|
+
break;
|
|
3699
|
+
case "ArrowDown":
|
|
3700
|
+
o === "vertical" && c();
|
|
3701
|
+
break;
|
|
3702
|
+
case "ArrowLeft":
|
|
3703
|
+
o === "horizontal" && (u ? d() : c());
|
|
3704
|
+
break;
|
|
3705
|
+
case "ArrowUp":
|
|
3706
|
+
o === "vertical" && d();
|
|
3707
|
+
break;
|
|
3708
|
+
}
|
|
3709
|
+
n[a % i].ref.current?.focus();
|
|
3710
|
+
});
|
|
3711
|
+
return /* @__PURE__ */ t.createElement(Ha, {
|
|
3712
|
+
scope: r,
|
|
3713
|
+
disabled: i,
|
|
3714
|
+
direction: a,
|
|
3715
|
+
orientation: o
|
|
3716
|
+
}, /* @__PURE__ */ t.createElement(ka.Slot, { scope: r }, /* @__PURE__ */ t.createElement(j.div, {
|
|
3717
|
+
...s,
|
|
3718
|
+
"data-orientation": o,
|
|
3719
|
+
ref: c,
|
|
3720
|
+
onKeyDown: i ? void 0 : d
|
|
3721
|
+
})));
|
|
3722
|
+
});
|
|
3723
|
+
function Ga(e) {
|
|
3724
|
+
return e ? "open" : "closed";
|
|
3725
|
+
}
|
|
3726
|
+
var Ka = "AccordionItem", [qa, Ja] = Ma(Ka), Ya = t.forwardRef((e, n) => {
|
|
3727
|
+
let { __scopeAccordion: r, value: i, ...a } = e, o = Ua(Ka, r), s = La(Ka, r), c = Pa(r), l = A(), u = i && s.value.includes(i) || !1, d = o.disabled || e.disabled;
|
|
3728
|
+
return /* @__PURE__ */ t.createElement(qa, {
|
|
3729
|
+
scope: r,
|
|
3730
|
+
open: u,
|
|
3731
|
+
disabled: d,
|
|
3732
|
+
triggerId: l
|
|
3733
|
+
}, /* @__PURE__ */ t.createElement(xa, {
|
|
3734
|
+
"data-orientation": o.orientation,
|
|
3735
|
+
"data-state": Ga(u),
|
|
3736
|
+
...c,
|
|
3737
|
+
...a,
|
|
3738
|
+
ref: n,
|
|
3739
|
+
disabled: d,
|
|
3740
|
+
open: u,
|
|
3741
|
+
onOpenChange: (e) => {
|
|
3742
|
+
e ? s.onItemOpen(i) : s.onItemClose(i);
|
|
3743
|
+
}
|
|
3744
|
+
}));
|
|
3745
|
+
});
|
|
3746
|
+
Ya.displayName = Ka;
|
|
3747
|
+
var Xa = "AccordionHeader", Za = t.forwardRef((e, n) => {
|
|
3748
|
+
let { __scopeAccordion: r, ...i } = e, a = Ua(Da, r), o = Ja(Xa, r);
|
|
3749
|
+
return /* @__PURE__ */ t.createElement(j.h3, {
|
|
3750
|
+
"data-orientation": a.orientation,
|
|
3751
|
+
"data-state": Ga(o.open),
|
|
3752
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
3753
|
+
...i,
|
|
3754
|
+
ref: n
|
|
3755
|
+
});
|
|
3756
|
+
}), Qa = "AccordionTrigger", $a = t.forwardRef((e, n) => {
|
|
3757
|
+
let { __scopeAccordion: r, ...i } = e, a = Ua(Da, r), o = Ja(Qa, r), s = za(Qa, r), c = Pa(r);
|
|
3758
|
+
return /* @__PURE__ */ t.createElement(ka.ItemSlot, { scope: r }, /* @__PURE__ */ t.createElement(Ca, {
|
|
3759
|
+
"aria-disabled": o.open && !s.collapsible || void 0,
|
|
3760
|
+
"data-orientation": a.orientation,
|
|
3761
|
+
id: o.triggerId,
|
|
3762
|
+
...c,
|
|
3763
|
+
...i,
|
|
3764
|
+
ref: n
|
|
3765
|
+
}));
|
|
3766
|
+
});
|
|
3767
|
+
$a.displayName = Qa;
|
|
3768
|
+
var eo = "AccordionContent", to = t.forwardRef((e, n) => {
|
|
3769
|
+
let { __scopeAccordion: r, ...i } = e, a = Ua(Da, r), o = Ja(eo, r), s = Pa(r);
|
|
3770
|
+
return /* @__PURE__ */ t.createElement(Ta, {
|
|
3771
|
+
role: "region",
|
|
3772
|
+
"aria-labelledby": o.triggerId,
|
|
3773
|
+
"data-orientation": a.orientation,
|
|
3774
|
+
...s,
|
|
3775
|
+
...i,
|
|
3776
|
+
ref: n,
|
|
3777
|
+
style: {
|
|
3778
|
+
"--huin-core-accordion-content-height": "var(--huin-core-collapsible-content-height)",
|
|
3779
|
+
"--huin-core-accordion-content-width": "var(--huin-core-collapsible-content-width)",
|
|
3780
|
+
...e.style
|
|
3781
|
+
}
|
|
3782
|
+
});
|
|
3783
|
+
});
|
|
3784
|
+
to.displayName = eo;
|
|
3785
|
+
//#endregion
|
|
3786
|
+
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
|
|
3787
|
+
var no = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), ro = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), io = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), ao = (e) => {
|
|
3788
|
+
let t = io(e);
|
|
3589
3789
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3590
|
-
},
|
|
3790
|
+
}, oo = {
|
|
3591
3791
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3592
3792
|
width: 24,
|
|
3593
3793
|
height: 24,
|
|
@@ -3597,34 +3797,34 @@ var oa = (e) => {
|
|
|
3597
3797
|
strokeWidth: 2,
|
|
3598
3798
|
strokeLinecap: "round",
|
|
3599
3799
|
strokeLinejoin: "round"
|
|
3600
|
-
},
|
|
3800
|
+
}, so = (e) => {
|
|
3601
3801
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
3602
3802
|
return !1;
|
|
3603
|
-
},
|
|
3604
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } =
|
|
3803
|
+
}, co = n({}), lo = () => o(co), uo = i(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => {
|
|
3804
|
+
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = lo() ?? {}, h = i ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
3605
3805
|
return r("svg", {
|
|
3606
3806
|
ref: l,
|
|
3607
|
-
...
|
|
3608
|
-
width: t ?? u ??
|
|
3609
|
-
height: t ?? u ??
|
|
3807
|
+
...oo,
|
|
3808
|
+
width: t ?? u ?? oo.width,
|
|
3809
|
+
height: t ?? u ?? oo.height,
|
|
3610
3810
|
stroke: e ?? p,
|
|
3611
3811
|
strokeWidth: h,
|
|
3612
|
-
className:
|
|
3613
|
-
...!o && !
|
|
3812
|
+
className: no("lucide", m, a),
|
|
3813
|
+
...!o && !so(c) && { "aria-hidden": "true" },
|
|
3614
3814
|
...c
|
|
3615
3815
|
}, [...s.map(([e, t]) => r(e, t)), ...Array.isArray(o) ? o : [o]]);
|
|
3616
|
-
}),
|
|
3617
|
-
let n = i(({ className: n, ...i }, a) => r(
|
|
3816
|
+
}), fo = (e, t) => {
|
|
3817
|
+
let n = i(({ className: n, ...i }, a) => r(uo, {
|
|
3618
3818
|
ref: a,
|
|
3619
3819
|
iconNode: t,
|
|
3620
|
-
className:
|
|
3820
|
+
className: no(`lucide-${ro(ao(e))}`, `lucide-${e}`, n),
|
|
3621
3821
|
...i
|
|
3622
3822
|
}));
|
|
3623
|
-
return n.displayName =
|
|
3624
|
-
},
|
|
3823
|
+
return n.displayName = ao(e), n;
|
|
3824
|
+
}, po = fo("chevron-down", [["path", {
|
|
3625
3825
|
d: "m6 9 6 6 6-6",
|
|
3626
3826
|
key: "qrunsl"
|
|
3627
|
-
}]]),
|
|
3827
|
+
}]]), mo = fo("maximize-2", [
|
|
3628
3828
|
["path", {
|
|
3629
3829
|
d: "M15 3h6v6",
|
|
3630
3830
|
key: "1q9fwt"
|
|
@@ -3641,7 +3841,7 @@ var oa = (e) => {
|
|
|
3641
3841
|
d: "M9 21H3v-6",
|
|
3642
3842
|
key: "wtvkvv"
|
|
3643
3843
|
}]
|
|
3644
|
-
]),
|
|
3844
|
+
]), ho = fo("scan-eye", [
|
|
3645
3845
|
["path", {
|
|
3646
3846
|
d: "M3 7V5a2 2 0 0 1 2-2h2",
|
|
3647
3847
|
key: "aa7l1z"
|
|
@@ -3668,80 +3868,152 @@ var oa = (e) => {
|
|
|
3668
3868
|
d: "M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",
|
|
3669
3869
|
key: "11ak4c"
|
|
3670
3870
|
}]
|
|
3671
|
-
]),
|
|
3871
|
+
]), go = Fa, _o = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ya, {
|
|
3872
|
+
ref: r,
|
|
3873
|
+
className: G("border-b", t),
|
|
3874
|
+
...n
|
|
3875
|
+
}));
|
|
3876
|
+
_o.displayName = Ya.displayName;
|
|
3877
|
+
var vo = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Za, {
|
|
3878
|
+
ref: r,
|
|
3879
|
+
className: G("d-flex", t),
|
|
3880
|
+
...n
|
|
3881
|
+
}));
|
|
3882
|
+
vo.displayName = Za.displayName;
|
|
3883
|
+
var yo = e.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ e.createElement($a, {
|
|
3884
|
+
ref: i,
|
|
3885
|
+
className: G("flex flex-1 w-full items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", t),
|
|
3886
|
+
...r
|
|
3887
|
+
}, n, /* @__PURE__ */ e.createElement(po, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })));
|
|
3888
|
+
yo.displayName = $a.displayName;
|
|
3889
|
+
var bo = e.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ e.createElement(to, {
|
|
3890
|
+
ref: i,
|
|
3891
|
+
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
3892
|
+
...r
|
|
3893
|
+
}, /* @__PURE__ */ e.createElement("div", { className: G("pb-4 pt-0", t) }, n)));
|
|
3894
|
+
bo.displayName = to.displayName;
|
|
3895
|
+
//#endregion
|
|
3896
|
+
//#region src/ui/widgets/PropsViewer.tsx
|
|
3897
|
+
var xo = ({ data: e, history: n }) => {
|
|
3898
|
+
let [r, i] = d(!1), a = () => {
|
|
3899
|
+
try {
|
|
3900
|
+
navigator.clipboard.writeText(JSON.stringify(e, null, 2));
|
|
3901
|
+
} catch {
|
|
3902
|
+
navigator.clipboard.writeText("[Circular structure — could not serialize]");
|
|
3903
|
+
}
|
|
3904
|
+
i(!0), setTimeout(() => i(!1), 2e3);
|
|
3905
|
+
}, o = n?.slice(1) ?? [];
|
|
3906
|
+
return /* @__PURE__ */ t.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ t.createElement("div", { className: "relative bg-primary text-primary-foreground p-4! rounded-md font-mono text-sm leading-6 overflow-x-hidden" }, /* @__PURE__ */ t.createElement("button", {
|
|
3907
|
+
onClick: a,
|
|
3908
|
+
className: "absolute top-2 right-2 text-xs text-muted-foreground hover:text-primary-foreground transition-colors"
|
|
3909
|
+
}, r ? "✓ Copied" : "Copy"), /* @__PURE__ */ t.createElement(pa, { value: e })), o.length > 0 && /* @__PURE__ */ t.createElement(go, {
|
|
3910
|
+
type: "multiple",
|
|
3911
|
+
className: "w-full"
|
|
3912
|
+
}, o.map((e, n) => /* @__PURE__ */ t.createElement(_o, {
|
|
3913
|
+
key: n,
|
|
3914
|
+
value: String(n)
|
|
3915
|
+
}, /* @__PURE__ */ t.createElement(yo, {
|
|
3916
|
+
className: "py-2 px-1 hover:no-underline hover:bg-muted/50 rounded font-mono text-xs font-normal",
|
|
3917
|
+
style: { opacity: 1 - n * .12 }
|
|
3918
|
+
}, /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground" }, "-", n + 1, " render")), /* @__PURE__ */ t.createElement(bo, { className: "pb-2! pt-0 px-1" }, /* @__PURE__ */ t.createElement("div", {
|
|
3919
|
+
className: "bg-muted p-3! rounded-md font-mono text-xs leading-5 overflow-x-hidden",
|
|
3920
|
+
style: { opacity: 1 - n * .12 }
|
|
3921
|
+
}, /* @__PURE__ */ t.createElement(pa, {
|
|
3922
|
+
value: e,
|
|
3923
|
+
collapseFromDepth: 1
|
|
3924
|
+
})))))));
|
|
3925
|
+
}, So = (e) => {
|
|
3926
|
+
let [t] = e.split(":");
|
|
3927
|
+
return t.replace(/\\/g, "/").split("/").slice(-3).join("/");
|
|
3928
|
+
}, Co = () => {
|
|
3929
|
+
let { openDialogId: e, closeDialog: n, dialogMeta: r } = Qu();
|
|
3930
|
+
return /* @__PURE__ */ t.createElement(Qi, {
|
|
3931
|
+
open: e !== null,
|
|
3932
|
+
onOpenChange: (e) => !e && n()
|
|
3933
|
+
}, /* @__PURE__ */ t.createElement(fn, {
|
|
3934
|
+
className: "mt-1",
|
|
3935
|
+
defaultValue: "md"
|
|
3936
|
+
}, /* @__PURE__ */ t.createElement(ta, { className: "h-fit overflow-y-auto" }, /* @__PURE__ */ t.createElement(na, null, /* @__PURE__ */ t.createElement(ia, { className: "text-center" }, /* @__PURE__ */ t.createElement("span", { className: "flex items-center justify-center gap-2" }, r?.componentName ? /* @__PURE__ */ t.createElement("span", null, /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground font-normal" }, "<"), r.componentName, /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground font-normal" }, " />")) : "Sentinel", r?.renderCount !== void 0 && /* @__PURE__ */ t.createElement("span", { className: "text-xs font-normal bg-muted text-muted-foreground px-1.5 py-0.5 rounded-full" }, "×", r.renderCount)), r?.sourceFile && /* @__PURE__ */ t.createElement("a", {
|
|
3937
|
+
href: `vscode://file/${r.sourceFile}`,
|
|
3938
|
+
className: "block text-xs font-normal text-muted-foreground hover:text-sky-400 transition-colors mt-0.5 font-mono"
|
|
3939
|
+
}, So(r.sourceFile))), /* @__PURE__ */ t.createElement(aa, null, /* @__PURE__ */ t.createElement(pn, { className: "grid w-full grid-cols-4" }, /* @__PURE__ */ t.createElement(K, { value: "md" }, ".md"), /* @__PURE__ */ t.createElement(K, { value: "props-tracker" }, "Props Tracker"), /* @__PURE__ */ t.createElement(K, { value: "api-layer" }, "API Layer"), /* @__PURE__ */ t.createElement(K, { value: "event-tracker" }, "Event Tracker")))), /* @__PURE__ */ t.createElement(q, { value: "md" }, /* @__PURE__ */ t.createElement(ua, { content: r?.md || "" })), /* @__PURE__ */ t.createElement(q, { value: "props-tracker" }, r.componentProps && /* @__PURE__ */ t.createElement(xo, {
|
|
3940
|
+
data: r.componentProps,
|
|
3941
|
+
history: r.propHistory
|
|
3942
|
+
})), /* @__PURE__ */ t.createElement(q, { value: "api-layer" }), /* @__PURE__ */ t.createElement(q, { value: "event-tracker" }), /* @__PURE__ */ t.createElement(ra, null))));
|
|
3943
|
+
}, wo = [
|
|
3672
3944
|
"top",
|
|
3673
3945
|
"right",
|
|
3674
3946
|
"bottom",
|
|
3675
3947
|
"left"
|
|
3676
|
-
],
|
|
3948
|
+
], To = Math.min, X = Math.max, Eo = Math.round, Do = Math.floor, Oo = (e) => ({
|
|
3677
3949
|
x: e,
|
|
3678
3950
|
y: e
|
|
3679
|
-
}),
|
|
3951
|
+
}), ko = {
|
|
3680
3952
|
left: "right",
|
|
3681
3953
|
right: "left",
|
|
3682
3954
|
bottom: "top",
|
|
3683
3955
|
top: "bottom"
|
|
3684
3956
|
};
|
|
3685
|
-
function
|
|
3686
|
-
return X(e,
|
|
3957
|
+
function Ao(e, t, n) {
|
|
3958
|
+
return X(e, To(t, n));
|
|
3687
3959
|
}
|
|
3688
|
-
function
|
|
3960
|
+
function jo(e, t) {
|
|
3689
3961
|
return typeof e == "function" ? e(t) : e;
|
|
3690
3962
|
}
|
|
3691
|
-
function
|
|
3963
|
+
function Mo(e) {
|
|
3692
3964
|
return e.split("-")[0];
|
|
3693
3965
|
}
|
|
3694
|
-
function
|
|
3966
|
+
function No(e) {
|
|
3695
3967
|
return e.split("-")[1];
|
|
3696
3968
|
}
|
|
3697
|
-
function
|
|
3969
|
+
function Po(e) {
|
|
3698
3970
|
return e === "x" ? "y" : "x";
|
|
3699
3971
|
}
|
|
3700
|
-
function
|
|
3972
|
+
function Fo(e) {
|
|
3701
3973
|
return e === "y" ? "height" : "width";
|
|
3702
3974
|
}
|
|
3703
|
-
function
|
|
3975
|
+
function Io(e) {
|
|
3704
3976
|
let t = e[0];
|
|
3705
3977
|
return t === "t" || t === "b" ? "y" : "x";
|
|
3706
3978
|
}
|
|
3707
|
-
function
|
|
3708
|
-
return
|
|
3979
|
+
function Lo(e) {
|
|
3980
|
+
return Po(Io(e));
|
|
3709
3981
|
}
|
|
3710
|
-
function
|
|
3982
|
+
function Ro(e, t, n) {
|
|
3711
3983
|
n === void 0 && (n = !1);
|
|
3712
|
-
let r =
|
|
3713
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
3984
|
+
let r = No(e), i = Lo(e), a = Fo(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
3985
|
+
return t.reference[a] > t.floating[a] && (o = qo(o)), [o, qo(o)];
|
|
3714
3986
|
}
|
|
3715
|
-
function
|
|
3716
|
-
let t =
|
|
3987
|
+
function zo(e) {
|
|
3988
|
+
let t = qo(e);
|
|
3717
3989
|
return [
|
|
3718
|
-
|
|
3990
|
+
Bo(e),
|
|
3719
3991
|
t,
|
|
3720
|
-
|
|
3992
|
+
Bo(t)
|
|
3721
3993
|
];
|
|
3722
3994
|
}
|
|
3723
|
-
function
|
|
3995
|
+
function Bo(e) {
|
|
3724
3996
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
3725
3997
|
}
|
|
3726
|
-
var
|
|
3727
|
-
function
|
|
3998
|
+
var Vo = ["left", "right"], Ho = ["right", "left"], Uo = ["top", "bottom"], Wo = ["bottom", "top"];
|
|
3999
|
+
function Go(e, t, n) {
|
|
3728
4000
|
switch (e) {
|
|
3729
4001
|
case "top":
|
|
3730
|
-
case "bottom": return n ? t ?
|
|
4002
|
+
case "bottom": return n ? t ? Ho : Vo : t ? Vo : Ho;
|
|
3731
4003
|
case "left":
|
|
3732
|
-
case "right": return t ?
|
|
4004
|
+
case "right": return t ? Uo : Wo;
|
|
3733
4005
|
default: return [];
|
|
3734
4006
|
}
|
|
3735
4007
|
}
|
|
3736
|
-
function
|
|
3737
|
-
let i =
|
|
3738
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
4008
|
+
function Ko(e, t, n, r) {
|
|
4009
|
+
let i = No(e), a = Go(Mo(e), n === "start", r);
|
|
4010
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Bo)))), a;
|
|
3739
4011
|
}
|
|
3740
|
-
function
|
|
3741
|
-
let t =
|
|
3742
|
-
return
|
|
4012
|
+
function qo(e) {
|
|
4013
|
+
let t = Mo(e);
|
|
4014
|
+
return ko[t] + e.slice(t.length);
|
|
3743
4015
|
}
|
|
3744
|
-
function
|
|
4016
|
+
function Jo(e) {
|
|
3745
4017
|
return {
|
|
3746
4018
|
top: 0,
|
|
3747
4019
|
right: 0,
|
|
@@ -3750,15 +4022,15 @@ function eo(e) {
|
|
|
3750
4022
|
...e
|
|
3751
4023
|
};
|
|
3752
4024
|
}
|
|
3753
|
-
function
|
|
4025
|
+
function Yo(e) {
|
|
3754
4026
|
return typeof e == "number" ? {
|
|
3755
4027
|
top: e,
|
|
3756
4028
|
right: e,
|
|
3757
4029
|
bottom: e,
|
|
3758
4030
|
left: e
|
|
3759
|
-
} :
|
|
4031
|
+
} : Jo(e);
|
|
3760
4032
|
}
|
|
3761
|
-
function
|
|
4033
|
+
function Xo(e) {
|
|
3762
4034
|
let { x: t, y: n, width: r, height: i } = e;
|
|
3763
4035
|
return {
|
|
3764
4036
|
width: r,
|
|
@@ -3773,8 +4045,8 @@ function no(e) {
|
|
|
3773
4045
|
}
|
|
3774
4046
|
//#endregion
|
|
3775
4047
|
//#region ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
3776
|
-
function
|
|
3777
|
-
let { reference: r, floating: i } = e, a =
|
|
4048
|
+
function Zo(e, t, n) {
|
|
4049
|
+
let { reference: r, floating: i } = e, a = Io(t), o = Lo(t), s = Fo(o), c = Mo(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
3778
4050
|
switch (c) {
|
|
3779
4051
|
case "top":
|
|
3780
4052
|
p = {
|
|
@@ -3805,7 +4077,7 @@ function ro(e, t, n) {
|
|
|
3805
4077
|
y: r.y
|
|
3806
4078
|
};
|
|
3807
4079
|
}
|
|
3808
|
-
switch (
|
|
4080
|
+
switch (No(t)) {
|
|
3809
4081
|
case "start":
|
|
3810
4082
|
p[o] -= f * (n && l ? -1 : 1);
|
|
3811
4083
|
break;
|
|
@@ -3815,9 +4087,9 @@ function ro(e, t, n) {
|
|
|
3815
4087
|
}
|
|
3816
4088
|
return p;
|
|
3817
4089
|
}
|
|
3818
|
-
async function
|
|
4090
|
+
async function Qo(e, t) {
|
|
3819
4091
|
t === void 0 && (t = {});
|
|
3820
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
4092
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = jo(t, e), p = Yo(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Xo(await i.getClippingRect({
|
|
3821
4093
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
3822
4094
|
boundary: c,
|
|
3823
4095
|
rootBoundary: l,
|
|
@@ -3830,7 +4102,7 @@ async function io(e, t) {
|
|
|
3830
4102
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
3831
4103
|
x: 1,
|
|
3832
4104
|
y: 1
|
|
3833
|
-
}, y =
|
|
4105
|
+
}, y = Xo(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3834
4106
|
elements: o,
|
|
3835
4107
|
rect: g,
|
|
3836
4108
|
offsetParent: _,
|
|
@@ -3843,15 +4115,15 @@ async function io(e, t) {
|
|
|
3843
4115
|
right: (y.right - h.right + p.right) / v.x
|
|
3844
4116
|
};
|
|
3845
4117
|
}
|
|
3846
|
-
var
|
|
4118
|
+
var $o = 50, es = async (e, t, n) => {
|
|
3847
4119
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
3848
4120
|
...o,
|
|
3849
|
-
detectOverflow:
|
|
4121
|
+
detectOverflow: Qo
|
|
3850
4122
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
3851
4123
|
reference: e,
|
|
3852
4124
|
floating: t,
|
|
3853
4125
|
strategy: i
|
|
3854
|
-
}), { x: u, y: d } =
|
|
4126
|
+
}), { x: u, y: d } = Zo(l, r, c), f = r, p = 0, m = {};
|
|
3855
4127
|
for (let n = 0; n < a.length; n++) {
|
|
3856
4128
|
let h = a[n];
|
|
3857
4129
|
if (!h) continue;
|
|
@@ -3872,11 +4144,11 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3872
4144
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
3873
4145
|
...m[g],
|
|
3874
4146
|
...b
|
|
3875
|
-
}, x && p <
|
|
4147
|
+
}, x && p < $o && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
3876
4148
|
reference: e,
|
|
3877
4149
|
floating: t,
|
|
3878
4150
|
strategy: i
|
|
3879
|
-
}) : x.rects), {x: u, y: d} =
|
|
4151
|
+
}) : x.rects), {x: u, y: d} = Zo(l, f, c)), n = -1);
|
|
3880
4152
|
}
|
|
3881
4153
|
return {
|
|
3882
4154
|
x: u,
|
|
@@ -3885,18 +4157,18 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3885
4157
|
strategy: i,
|
|
3886
4158
|
middlewareData: m
|
|
3887
4159
|
};
|
|
3888
|
-
},
|
|
4160
|
+
}, ts = (e) => ({
|
|
3889
4161
|
name: "arrow",
|
|
3890
4162
|
options: e,
|
|
3891
4163
|
async fn(t) {
|
|
3892
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
4164
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = jo(e, t) || {};
|
|
3893
4165
|
if (l == null) return {};
|
|
3894
|
-
let d =
|
|
4166
|
+
let d = Yo(u), f = {
|
|
3895
4167
|
x: n,
|
|
3896
4168
|
y: r
|
|
3897
|
-
}, p =
|
|
4169
|
+
}, p = Lo(i), m = Fo(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
3898
4170
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
3899
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
4171
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = To(d[_], T), ee = To(d[v], T), D = E, O = C - h[m] - ee, k = C / 2 - h[m] / 2 + w, A = Ao(D, k, O), j = !c.arrow && No(i) != null && k !== A && a.reference[m] / 2 - (k < D ? E : ee) - h[m] / 2 < 0, M = j ? k < D ? k - D : k - O : 0;
|
|
3900
4172
|
return {
|
|
3901
4173
|
[p]: f[p] + M,
|
|
3902
4174
|
data: {
|
|
@@ -3907,19 +4179,19 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3907
4179
|
reset: j
|
|
3908
4180
|
};
|
|
3909
4181
|
}
|
|
3910
|
-
}),
|
|
4182
|
+
}), ns = function(e) {
|
|
3911
4183
|
return e === void 0 && (e = {}), {
|
|
3912
4184
|
name: "flip",
|
|
3913
4185
|
options: e,
|
|
3914
4186
|
async fn(t) {
|
|
3915
4187
|
var n;
|
|
3916
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
4188
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = jo(e, t);
|
|
3917
4189
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
3918
|
-
let g =
|
|
3919
|
-
!d && x && b.push(...
|
|
4190
|
+
let g = Mo(r), _ = Io(o), v = Mo(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [qo(o)] : zo(o)), x = p !== "none";
|
|
4191
|
+
!d && x && b.push(...Ko(o, m, p, y));
|
|
3920
4192
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
3921
4193
|
if (l && w.push(C[g]), u) {
|
|
3922
|
-
let e =
|
|
4194
|
+
let e = Ro(r, a, y);
|
|
3923
4195
|
w.push(C[e[0]], C[e[1]]);
|
|
3924
4196
|
}
|
|
3925
4197
|
if (T = [...T, {
|
|
@@ -3927,7 +4199,7 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3927
4199
|
overflows: w
|
|
3928
4200
|
}], !w.every((e) => e <= 0)) {
|
|
3929
4201
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
3930
|
-
if (t && (!(u === "alignment" && _ !==
|
|
4202
|
+
if (t && (!(u === "alignment" && _ !== Io(t)) || T.every((e) => Io(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
3931
4203
|
data: {
|
|
3932
4204
|
index: e,
|
|
3933
4205
|
overflows: T
|
|
@@ -3939,7 +4211,7 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3939
4211
|
case "bestFit": {
|
|
3940
4212
|
let e = T.filter((e) => {
|
|
3941
4213
|
if (x) {
|
|
3942
|
-
let t =
|
|
4214
|
+
let t = Io(e.placement);
|
|
3943
4215
|
return t === _ || t === "y";
|
|
3944
4216
|
}
|
|
3945
4217
|
return !0;
|
|
@@ -3957,7 +4229,7 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3957
4229
|
}
|
|
3958
4230
|
};
|
|
3959
4231
|
};
|
|
3960
|
-
function
|
|
4232
|
+
function rs(e, t) {
|
|
3961
4233
|
return {
|
|
3962
4234
|
top: e.top - t.height,
|
|
3963
4235
|
right: e.right - t.width,
|
|
@@ -3965,43 +4237,43 @@ function lo(e, t) {
|
|
|
3965
4237
|
left: e.left - t.width
|
|
3966
4238
|
};
|
|
3967
4239
|
}
|
|
3968
|
-
function
|
|
3969
|
-
return
|
|
4240
|
+
function is(e) {
|
|
4241
|
+
return wo.some((t) => e[t] >= 0);
|
|
3970
4242
|
}
|
|
3971
|
-
var
|
|
4243
|
+
var as = function(e) {
|
|
3972
4244
|
return e === void 0 && (e = {}), {
|
|
3973
4245
|
name: "hide",
|
|
3974
4246
|
options: e,
|
|
3975
4247
|
async fn(t) {
|
|
3976
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
4248
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = jo(e, t);
|
|
3977
4249
|
switch (i) {
|
|
3978
4250
|
case "referenceHidden": {
|
|
3979
|
-
let e =
|
|
4251
|
+
let e = rs(await r.detectOverflow(t, {
|
|
3980
4252
|
...a,
|
|
3981
4253
|
elementContext: "reference"
|
|
3982
4254
|
}), n.reference);
|
|
3983
4255
|
return { data: {
|
|
3984
4256
|
referenceHiddenOffsets: e,
|
|
3985
|
-
referenceHidden:
|
|
4257
|
+
referenceHidden: is(e)
|
|
3986
4258
|
} };
|
|
3987
4259
|
}
|
|
3988
4260
|
case "escaped": {
|
|
3989
|
-
let e =
|
|
4261
|
+
let e = rs(await r.detectOverflow(t, {
|
|
3990
4262
|
...a,
|
|
3991
4263
|
altBoundary: !0
|
|
3992
4264
|
}), n.floating);
|
|
3993
4265
|
return { data: {
|
|
3994
4266
|
escapedOffsets: e,
|
|
3995
|
-
escaped:
|
|
4267
|
+
escaped: is(e)
|
|
3996
4268
|
} };
|
|
3997
4269
|
}
|
|
3998
4270
|
default: return {};
|
|
3999
4271
|
}
|
|
4000
4272
|
}
|
|
4001
4273
|
};
|
|
4002
|
-
},
|
|
4003
|
-
async function
|
|
4004
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
4274
|
+
}, os = /*#__PURE__*/ new Set(["left", "top"]);
|
|
4275
|
+
async function ss(e, t) {
|
|
4276
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Mo(n), s = No(n), c = Io(n) === "y", l = os.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = jo(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
4005
4277
|
mainAxis: d,
|
|
4006
4278
|
crossAxis: 0,
|
|
4007
4279
|
alignmentAxis: null
|
|
@@ -4018,13 +4290,13 @@ async function mo(e, t) {
|
|
|
4018
4290
|
y: p * u
|
|
4019
4291
|
};
|
|
4020
4292
|
}
|
|
4021
|
-
var
|
|
4293
|
+
var cs = function(e) {
|
|
4022
4294
|
return e === void 0 && (e = 0), {
|
|
4023
4295
|
name: "offset",
|
|
4024
4296
|
options: e,
|
|
4025
4297
|
async fn(t) {
|
|
4026
4298
|
var n;
|
|
4027
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
4299
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ss(t, e);
|
|
4028
4300
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
4029
4301
|
x: r + s.x,
|
|
4030
4302
|
y: i + s.y,
|
|
@@ -4035,7 +4307,7 @@ var ho = function(e) {
|
|
|
4035
4307
|
};
|
|
4036
4308
|
}
|
|
4037
4309
|
};
|
|
4038
|
-
},
|
|
4310
|
+
}, ls = function(e) {
|
|
4039
4311
|
return e === void 0 && (e = {}), {
|
|
4040
4312
|
name: "shift",
|
|
4041
4313
|
options: e,
|
|
@@ -4046,17 +4318,17 @@ var ho = function(e) {
|
|
|
4046
4318
|
x: t,
|
|
4047
4319
|
y: n
|
|
4048
4320
|
};
|
|
4049
|
-
} }, ...l } =
|
|
4321
|
+
} }, ...l } = jo(e, t), u = {
|
|
4050
4322
|
x: n,
|
|
4051
4323
|
y: r
|
|
4052
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
4324
|
+
}, d = await a.detectOverflow(t, l), f = Io(Mo(i)), p = Po(f), m = u[p], h = u[f];
|
|
4053
4325
|
if (o) {
|
|
4054
4326
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
4055
|
-
m =
|
|
4327
|
+
m = Ao(n, m, r);
|
|
4056
4328
|
}
|
|
4057
4329
|
if (s) {
|
|
4058
4330
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
4059
|
-
h =
|
|
4331
|
+
h = Ao(n, h, r);
|
|
4060
4332
|
}
|
|
4061
4333
|
let g = c.fn({
|
|
4062
4334
|
...t,
|
|
@@ -4076,14 +4348,14 @@ var ho = function(e) {
|
|
|
4076
4348
|
};
|
|
4077
4349
|
}
|
|
4078
4350
|
};
|
|
4079
|
-
},
|
|
4351
|
+
}, us = function(e) {
|
|
4080
4352
|
return e === void 0 && (e = {}), {
|
|
4081
4353
|
options: e,
|
|
4082
4354
|
fn(t) {
|
|
4083
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } =
|
|
4355
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = jo(e, t), u = {
|
|
4084
4356
|
x: n,
|
|
4085
4357
|
y: r
|
|
4086
|
-
}, d =
|
|
4358
|
+
}, d = Io(i), f = Po(d), p = u[f], m = u[d], h = jo(s, t), g = typeof h == "number" ? {
|
|
4087
4359
|
mainAxis: h,
|
|
4088
4360
|
crossAxis: 0
|
|
4089
4361
|
} : {
|
|
@@ -4096,7 +4368,7 @@ var ho = function(e) {
|
|
|
4096
4368
|
p < t ? p = t : p > n && (p = n);
|
|
4097
4369
|
}
|
|
4098
4370
|
if (l) {
|
|
4099
|
-
let e = f === "y" ? "width" : "height", t =
|
|
4371
|
+
let e = f === "y" ? "width" : "height", t = os.has(Mo(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
4100
4372
|
m < n ? m = n : m > r && (m = r);
|
|
4101
4373
|
}
|
|
4102
4374
|
return {
|
|
@@ -4105,15 +4377,15 @@ var ho = function(e) {
|
|
|
4105
4377
|
};
|
|
4106
4378
|
}
|
|
4107
4379
|
};
|
|
4108
|
-
},
|
|
4380
|
+
}, ds = function(e) {
|
|
4109
4381
|
return e === void 0 && (e = {}), {
|
|
4110
4382
|
name: "size",
|
|
4111
4383
|
options: e,
|
|
4112
4384
|
async fn(t) {
|
|
4113
4385
|
var n, r;
|
|
4114
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
4386
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = jo(e, t), u = await o.detectOverflow(t, l), d = Mo(i), f = No(i), p = Io(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
4115
4387
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
4116
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
4388
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = To(h - u[g], v), x = To(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
4117
4389
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
4118
4390
|
let e = X(u.left, 0), t = X(u.right, 0), n = X(u.top, 0), r = X(u.bottom, 0);
|
|
4119
4391
|
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : X(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : X(u.top, u.bottom));
|
|
@@ -4130,39 +4402,39 @@ var ho = function(e) {
|
|
|
4130
4402
|
};
|
|
4131
4403
|
//#endregion
|
|
4132
4404
|
//#region ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
4133
|
-
function
|
|
4405
|
+
function fs() {
|
|
4134
4406
|
return typeof window < "u";
|
|
4135
4407
|
}
|
|
4136
|
-
function
|
|
4137
|
-
return
|
|
4408
|
+
function ps(e) {
|
|
4409
|
+
return hs(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
4138
4410
|
}
|
|
4139
4411
|
function Z(e) {
|
|
4140
4412
|
var t;
|
|
4141
4413
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
4142
4414
|
}
|
|
4143
|
-
function
|
|
4144
|
-
return ((
|
|
4415
|
+
function ms(e) {
|
|
4416
|
+
return ((hs(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
4145
4417
|
}
|
|
4146
|
-
function
|
|
4147
|
-
return
|
|
4418
|
+
function hs(e) {
|
|
4419
|
+
return fs() ? e instanceof Node || e instanceof Z(e).Node : !1;
|
|
4148
4420
|
}
|
|
4149
4421
|
function Q(e) {
|
|
4150
|
-
return
|
|
4422
|
+
return fs() ? e instanceof Element || e instanceof Z(e).Element : !1;
|
|
4151
4423
|
}
|
|
4152
|
-
function
|
|
4153
|
-
return
|
|
4424
|
+
function gs(e) {
|
|
4425
|
+
return fs() ? e instanceof HTMLElement || e instanceof Z(e).HTMLElement : !1;
|
|
4154
4426
|
}
|
|
4155
|
-
function
|
|
4156
|
-
return !
|
|
4427
|
+
function _s(e) {
|
|
4428
|
+
return !fs() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Z(e).ShadowRoot;
|
|
4157
4429
|
}
|
|
4158
|
-
function
|
|
4430
|
+
function vs(e) {
|
|
4159
4431
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = $(e);
|
|
4160
4432
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
4161
4433
|
}
|
|
4162
|
-
function
|
|
4163
|
-
return /^(table|td|th)$/.test(
|
|
4434
|
+
function ys(e) {
|
|
4435
|
+
return /^(table|td|th)$/.test(ps(e));
|
|
4164
4436
|
}
|
|
4165
|
-
function
|
|
4437
|
+
function bs(e) {
|
|
4166
4438
|
try {
|
|
4167
4439
|
if (e.matches(":popover-open")) return !0;
|
|
4168
4440
|
} catch {}
|
|
@@ -4172,30 +4444,30 @@ function Do(e) {
|
|
|
4172
4444
|
return !1;
|
|
4173
4445
|
}
|
|
4174
4446
|
}
|
|
4175
|
-
var
|
|
4176
|
-
function
|
|
4447
|
+
var xs = /transform|translate|scale|rotate|perspective|filter/, Ss = /paint|layout|strict|content/, Cs = (e) => !!e && e !== "none", ws;
|
|
4448
|
+
function Ts(e) {
|
|
4177
4449
|
let t = Q(e) ? $(e) : e;
|
|
4178
|
-
return
|
|
4179
|
-
}
|
|
4180
|
-
function
|
|
4181
|
-
let t =
|
|
4182
|
-
for (;
|
|
4183
|
-
if (
|
|
4184
|
-
if (
|
|
4185
|
-
t =
|
|
4450
|
+
return Cs(t.transform) || Cs(t.translate) || Cs(t.scale) || Cs(t.rotate) || Cs(t.perspective) || !Ds() && (Cs(t.backdropFilter) || Cs(t.filter)) || xs.test(t.willChange || "") || Ss.test(t.contain || "");
|
|
4451
|
+
}
|
|
4452
|
+
function Es(e) {
|
|
4453
|
+
let t = As(e);
|
|
4454
|
+
for (; gs(t) && !Os(t);) {
|
|
4455
|
+
if (Ts(t)) return t;
|
|
4456
|
+
if (bs(t)) return null;
|
|
4457
|
+
t = As(t);
|
|
4186
4458
|
}
|
|
4187
4459
|
return null;
|
|
4188
4460
|
}
|
|
4189
|
-
function
|
|
4190
|
-
return
|
|
4461
|
+
function Ds() {
|
|
4462
|
+
return ws ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ws;
|
|
4191
4463
|
}
|
|
4192
|
-
function
|
|
4193
|
-
return /^(html|body|#document)$/.test(
|
|
4464
|
+
function Os(e) {
|
|
4465
|
+
return /^(html|body|#document)$/.test(ps(e));
|
|
4194
4466
|
}
|
|
4195
4467
|
function $(e) {
|
|
4196
4468
|
return Z(e).getComputedStyle(e);
|
|
4197
4469
|
}
|
|
4198
|
-
function
|
|
4470
|
+
function ks(e) {
|
|
4199
4471
|
return Q(e) ? {
|
|
4200
4472
|
scrollLeft: e.scrollLeft,
|
|
4201
4473
|
scrollTop: e.scrollTop
|
|
@@ -4204,101 +4476,101 @@ function Io(e) {
|
|
|
4204
4476
|
scrollTop: e.scrollY
|
|
4205
4477
|
};
|
|
4206
4478
|
}
|
|
4207
|
-
function
|
|
4208
|
-
if (
|
|
4209
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
4210
|
-
return
|
|
4479
|
+
function As(e) {
|
|
4480
|
+
if (ps(e) === "html") return e;
|
|
4481
|
+
let t = e.assignedSlot || e.parentNode || _s(e) && e.host || ms(e);
|
|
4482
|
+
return _s(t) ? t.host : t;
|
|
4211
4483
|
}
|
|
4212
|
-
function
|
|
4213
|
-
let t =
|
|
4214
|
-
return
|
|
4484
|
+
function js(e) {
|
|
4485
|
+
let t = As(e);
|
|
4486
|
+
return Os(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : gs(t) && vs(t) ? t : js(t);
|
|
4215
4487
|
}
|
|
4216
|
-
function
|
|
4488
|
+
function Ms(e, t, n) {
|
|
4217
4489
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
4218
|
-
let r =
|
|
4490
|
+
let r = js(e), i = r === e.ownerDocument?.body, a = Z(r);
|
|
4219
4491
|
if (i) {
|
|
4220
|
-
let e =
|
|
4221
|
-
return t.concat(a, a.visualViewport || [],
|
|
4222
|
-
} else return t.concat(r,
|
|
4492
|
+
let e = Ns(a);
|
|
4493
|
+
return t.concat(a, a.visualViewport || [], vs(r) ? r : [], e && n ? Ms(e) : []);
|
|
4494
|
+
} else return t.concat(r, Ms(r, [], n));
|
|
4223
4495
|
}
|
|
4224
|
-
function
|
|
4496
|
+
function Ns(e) {
|
|
4225
4497
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
4226
4498
|
}
|
|
4227
4499
|
//#endregion
|
|
4228
4500
|
//#region ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
4229
|
-
function
|
|
4230
|
-
let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i =
|
|
4501
|
+
function Ps(e) {
|
|
4502
|
+
let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = gs(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Eo(n) !== a || Eo(r) !== o;
|
|
4231
4503
|
return s && (n = a, r = o), {
|
|
4232
4504
|
width: n,
|
|
4233
4505
|
height: r,
|
|
4234
4506
|
$: s
|
|
4235
4507
|
};
|
|
4236
4508
|
}
|
|
4237
|
-
function
|
|
4509
|
+
function Fs(e) {
|
|
4238
4510
|
return Q(e) ? e : e.contextElement;
|
|
4239
4511
|
}
|
|
4240
|
-
function
|
|
4241
|
-
let t =
|
|
4242
|
-
if (!
|
|
4243
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
4512
|
+
function Is(e) {
|
|
4513
|
+
let t = Fs(e);
|
|
4514
|
+
if (!gs(t)) return Oo(1);
|
|
4515
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ps(t), o = (a ? Eo(n.width) : n.width) / r, s = (a ? Eo(n.height) : n.height) / i;
|
|
4244
4516
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
4245
4517
|
x: o,
|
|
4246
4518
|
y: s
|
|
4247
4519
|
};
|
|
4248
4520
|
}
|
|
4249
|
-
var
|
|
4250
|
-
function
|
|
4521
|
+
var Ls = /*#__PURE__*/ Oo(0);
|
|
4522
|
+
function Rs(e) {
|
|
4251
4523
|
let t = Z(e);
|
|
4252
|
-
return !
|
|
4524
|
+
return !Ds() || !t.visualViewport ? Ls : {
|
|
4253
4525
|
x: t.visualViewport.offsetLeft,
|
|
4254
4526
|
y: t.visualViewport.offsetTop
|
|
4255
4527
|
};
|
|
4256
4528
|
}
|
|
4257
|
-
function
|
|
4529
|
+
function zs(e, t, n) {
|
|
4258
4530
|
return t === void 0 && (t = !1), !n || t && n !== Z(e) ? !1 : t;
|
|
4259
4531
|
}
|
|
4260
|
-
function
|
|
4532
|
+
function Bs(e, t, n, r) {
|
|
4261
4533
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4262
|
-
let i = e.getBoundingClientRect(), a =
|
|
4263
|
-
t && (r ? Q(r) && (o =
|
|
4264
|
-
let s =
|
|
4534
|
+
let i = e.getBoundingClientRect(), a = Fs(e), o = Oo(1);
|
|
4535
|
+
t && (r ? Q(r) && (o = Is(r)) : o = Is(e));
|
|
4536
|
+
let s = zs(a, n, r) ? Rs(a) : Oo(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
4265
4537
|
if (a) {
|
|
4266
|
-
let e = Z(a), t = r && Q(r) ? Z(r) : r, n = e, i =
|
|
4538
|
+
let e = Z(a), t = r && Q(r) ? Z(r) : r, n = e, i = Ns(n);
|
|
4267
4539
|
for (; i && r && t !== n;) {
|
|
4268
|
-
let e =
|
|
4269
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Z(i), i =
|
|
4540
|
+
let e = Is(i), t = i.getBoundingClientRect(), r = $(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
4541
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Z(i), i = Ns(n);
|
|
4270
4542
|
}
|
|
4271
4543
|
}
|
|
4272
|
-
return
|
|
4544
|
+
return Xo({
|
|
4273
4545
|
width: u,
|
|
4274
4546
|
height: d,
|
|
4275
4547
|
x: c,
|
|
4276
4548
|
y: l
|
|
4277
4549
|
});
|
|
4278
4550
|
}
|
|
4279
|
-
function
|
|
4280
|
-
let n =
|
|
4281
|
-
return t ? t.left + n :
|
|
4551
|
+
function Vs(e, t) {
|
|
4552
|
+
let n = ks(e).scrollLeft;
|
|
4553
|
+
return t ? t.left + n : Bs(ms(e)).left + n;
|
|
4282
4554
|
}
|
|
4283
|
-
function
|
|
4555
|
+
function Hs(e, t) {
|
|
4284
4556
|
let n = e.getBoundingClientRect();
|
|
4285
4557
|
return {
|
|
4286
|
-
x: n.left + t.scrollLeft -
|
|
4558
|
+
x: n.left + t.scrollLeft - Vs(e, n),
|
|
4287
4559
|
y: n.top + t.scrollTop
|
|
4288
4560
|
};
|
|
4289
4561
|
}
|
|
4290
|
-
function
|
|
4291
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
4562
|
+
function Us(e) {
|
|
4563
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = ms(r), s = t ? bs(t.floating) : !1;
|
|
4292
4564
|
if (r === o || s && a) return n;
|
|
4293
4565
|
let c = {
|
|
4294
4566
|
scrollLeft: 0,
|
|
4295
4567
|
scrollTop: 0
|
|
4296
|
-
}, l =
|
|
4297
|
-
if ((d || !d && !a) && ((
|
|
4298
|
-
let e =
|
|
4299
|
-
l =
|
|
4568
|
+
}, l = Oo(1), u = Oo(0), d = gs(r);
|
|
4569
|
+
if ((d || !d && !a) && ((ps(r) !== "body" || vs(o)) && (c = ks(r)), d)) {
|
|
4570
|
+
let e = Bs(r);
|
|
4571
|
+
l = Is(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
4300
4572
|
}
|
|
4301
|
-
let f = o && !d && !a ?
|
|
4573
|
+
let f = o && !d && !a ? Hs(o, c) : Oo(0);
|
|
4302
4574
|
return {
|
|
4303
4575
|
width: n.width * l.x,
|
|
4304
4576
|
height: n.height * l.y,
|
|
@@ -4306,11 +4578,11 @@ function Xo(e) {
|
|
|
4306
4578
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
4307
4579
|
};
|
|
4308
4580
|
}
|
|
4309
|
-
function
|
|
4581
|
+
function Ws(e) {
|
|
4310
4582
|
return Array.from(e.getClientRects());
|
|
4311
4583
|
}
|
|
4312
|
-
function
|
|
4313
|
-
let t =
|
|
4584
|
+
function Gs(e) {
|
|
4585
|
+
let t = ms(e), n = ks(e), r = e.ownerDocument.body, i = X(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = X(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Vs(e), s = -n.scrollTop;
|
|
4314
4586
|
return $(r).direction === "rtl" && (o += X(t.clientWidth, r.clientWidth) - i), {
|
|
4315
4587
|
width: i,
|
|
4316
4588
|
height: a,
|
|
@@ -4318,19 +4590,19 @@ function Qo(e) {
|
|
|
4318
4590
|
y: s
|
|
4319
4591
|
};
|
|
4320
4592
|
}
|
|
4321
|
-
var
|
|
4322
|
-
function
|
|
4323
|
-
let n = Z(e), r =
|
|
4593
|
+
var Ks = 25;
|
|
4594
|
+
function qs(e, t) {
|
|
4595
|
+
let n = Z(e), r = ms(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
4324
4596
|
if (i) {
|
|
4325
4597
|
a = i.width, o = i.height;
|
|
4326
|
-
let e =
|
|
4598
|
+
let e = Ds();
|
|
4327
4599
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
4328
4600
|
}
|
|
4329
|
-
let l =
|
|
4601
|
+
let l = Vs(r);
|
|
4330
4602
|
if (l <= 0) {
|
|
4331
4603
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
4332
|
-
o <=
|
|
4333
|
-
} else l <=
|
|
4604
|
+
o <= Ks && (a -= o);
|
|
4605
|
+
} else l <= Ks && (a += l);
|
|
4334
4606
|
return {
|
|
4335
4607
|
width: a,
|
|
4336
4608
|
height: o,
|
|
@@ -4338,8 +4610,8 @@ function es(e, t) {
|
|
|
4338
4610
|
y: c
|
|
4339
4611
|
};
|
|
4340
4612
|
}
|
|
4341
|
-
function
|
|
4342
|
-
let n =
|
|
4613
|
+
function Js(e, t) {
|
|
4614
|
+
let n = Bs(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = gs(e) ? Is(e) : Oo(1);
|
|
4343
4615
|
return {
|
|
4344
4616
|
width: e.clientWidth * a.x,
|
|
4345
4617
|
height: e.clientHeight * a.y,
|
|
@@ -4347,13 +4619,13 @@ function ts(e, t) {
|
|
|
4347
4619
|
y: r * a.y
|
|
4348
4620
|
};
|
|
4349
4621
|
}
|
|
4350
|
-
function
|
|
4622
|
+
function Ys(e, t, n) {
|
|
4351
4623
|
let r;
|
|
4352
|
-
if (t === "viewport") r =
|
|
4353
|
-
else if (t === "document") r =
|
|
4354
|
-
else if (Q(t)) r =
|
|
4624
|
+
if (t === "viewport") r = qs(e, n);
|
|
4625
|
+
else if (t === "document") r = Gs(ms(e));
|
|
4626
|
+
else if (Q(t)) r = Js(t, n);
|
|
4355
4627
|
else {
|
|
4356
|
-
let n =
|
|
4628
|
+
let n = Rs(e);
|
|
4357
4629
|
r = {
|
|
4358
4630
|
x: t.x - n.x,
|
|
4359
4631
|
y: t.y - n.y,
|
|
@@ -4361,27 +4633,27 @@ function ns(e, t, n) {
|
|
|
4361
4633
|
height: t.height
|
|
4362
4634
|
};
|
|
4363
4635
|
}
|
|
4364
|
-
return
|
|
4636
|
+
return Xo(r);
|
|
4365
4637
|
}
|
|
4366
|
-
function
|
|
4367
|
-
let n =
|
|
4368
|
-
return n === t || !Q(n) ||
|
|
4638
|
+
function Xs(e, t) {
|
|
4639
|
+
let n = As(e);
|
|
4640
|
+
return n === t || !Q(n) || Os(n) ? !1 : $(n).position === "fixed" || Xs(n, t);
|
|
4369
4641
|
}
|
|
4370
|
-
function
|
|
4642
|
+
function Zs(e, t) {
|
|
4371
4643
|
let n = t.get(e);
|
|
4372
4644
|
if (n) return n;
|
|
4373
|
-
let r =
|
|
4374
|
-
for (; Q(o) && !
|
|
4375
|
-
let t = $(o), n =
|
|
4376
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
4645
|
+
let r = Ms(e, [], !1).filter((e) => Q(e) && ps(e) !== "body"), i = null, a = $(e).position === "fixed", o = a ? As(e) : e;
|
|
4646
|
+
for (; Q(o) && !Os(o);) {
|
|
4647
|
+
let t = $(o), n = Ts(o);
|
|
4648
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || vs(o) && !n && Xs(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = As(o);
|
|
4377
4649
|
}
|
|
4378
4650
|
return t.set(e, r), r;
|
|
4379
4651
|
}
|
|
4380
|
-
function
|
|
4381
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
4652
|
+
function Qs(e) {
|
|
4653
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? bs(t) ? [] : Zs(t, this._c) : [].concat(n), r], o = Ys(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
4382
4654
|
for (let e = 1; e < a.length; e++) {
|
|
4383
|
-
let n =
|
|
4384
|
-
s = X(n.top, s), c =
|
|
4655
|
+
let n = Ys(t, a[e], i);
|
|
4656
|
+
s = X(n.top, s), c = To(n.right, c), l = To(n.bottom, l), u = X(n.left, u);
|
|
4385
4657
|
}
|
|
4386
4658
|
return {
|
|
4387
4659
|
width: c - u,
|
|
@@ -4390,27 +4662,27 @@ function as(e) {
|
|
|
4390
4662
|
y: s
|
|
4391
4663
|
};
|
|
4392
4664
|
}
|
|
4393
|
-
function
|
|
4394
|
-
let { width: t, height: n } =
|
|
4665
|
+
function $s(e) {
|
|
4666
|
+
let { width: t, height: n } = Ps(e);
|
|
4395
4667
|
return {
|
|
4396
4668
|
width: t,
|
|
4397
4669
|
height: n
|
|
4398
4670
|
};
|
|
4399
4671
|
}
|
|
4400
|
-
function
|
|
4401
|
-
let r =
|
|
4672
|
+
function ec(e, t, n) {
|
|
4673
|
+
let r = gs(t), i = ms(t), a = n === "fixed", o = Bs(e, !0, a, t), s = {
|
|
4402
4674
|
scrollLeft: 0,
|
|
4403
4675
|
scrollTop: 0
|
|
4404
|
-
}, c =
|
|
4676
|
+
}, c = Oo(0);
|
|
4405
4677
|
function l() {
|
|
4406
|
-
c.x =
|
|
4678
|
+
c.x = Vs(i);
|
|
4407
4679
|
}
|
|
4408
|
-
if (r || !r && !a) if ((
|
|
4409
|
-
let e =
|
|
4680
|
+
if (r || !r && !a) if ((ps(t) !== "body" || vs(i)) && (s = ks(t)), r) {
|
|
4681
|
+
let e = Bs(t, !0, a, t);
|
|
4410
4682
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
4411
4683
|
} else i && l();
|
|
4412
4684
|
a && !r && i && l();
|
|
4413
|
-
let u = i && !r && !a ?
|
|
4685
|
+
let u = i && !r && !a ? Hs(i, s) : Oo(0);
|
|
4414
4686
|
return {
|
|
4415
4687
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
4416
4688
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -4418,34 +4690,34 @@ function ss(e, t, n) {
|
|
|
4418
4690
|
height: o.height
|
|
4419
4691
|
};
|
|
4420
4692
|
}
|
|
4421
|
-
function
|
|
4693
|
+
function tc(e) {
|
|
4422
4694
|
return $(e).position === "static";
|
|
4423
4695
|
}
|
|
4424
|
-
function
|
|
4425
|
-
if (!
|
|
4696
|
+
function nc(e, t) {
|
|
4697
|
+
if (!gs(e) || $(e).position === "fixed") return null;
|
|
4426
4698
|
if (t) return t(e);
|
|
4427
4699
|
let n = e.offsetParent;
|
|
4428
|
-
return
|
|
4700
|
+
return ms(e) === n && (n = n.ownerDocument.body), n;
|
|
4429
4701
|
}
|
|
4430
|
-
function
|
|
4702
|
+
function rc(e, t) {
|
|
4431
4703
|
let n = Z(e);
|
|
4432
|
-
if (
|
|
4433
|
-
if (!
|
|
4434
|
-
let t =
|
|
4435
|
-
for (; t && !
|
|
4436
|
-
if (Q(t) && !
|
|
4437
|
-
t =
|
|
4704
|
+
if (bs(e)) return n;
|
|
4705
|
+
if (!gs(e)) {
|
|
4706
|
+
let t = As(e);
|
|
4707
|
+
for (; t && !Os(t);) {
|
|
4708
|
+
if (Q(t) && !tc(t)) return t;
|
|
4709
|
+
t = As(t);
|
|
4438
4710
|
}
|
|
4439
4711
|
return n;
|
|
4440
4712
|
}
|
|
4441
|
-
let r =
|
|
4442
|
-
for (; r &&
|
|
4443
|
-
return r &&
|
|
4713
|
+
let r = nc(e, t);
|
|
4714
|
+
for (; r && ys(r) && tc(r);) r = nc(r, t);
|
|
4715
|
+
return r && Os(r) && tc(r) && !Ts(r) ? n : r || Es(e) || n;
|
|
4444
4716
|
}
|
|
4445
|
-
var
|
|
4446
|
-
let t = this.getOffsetParent ||
|
|
4717
|
+
var ic = async function(e) {
|
|
4718
|
+
let t = this.getOffsetParent || rc, n = this.getDimensions, r = await n(e.floating);
|
|
4447
4719
|
return {
|
|
4448
|
-
reference:
|
|
4720
|
+
reference: ec(e.reference, await t(e.floating), e.strategy),
|
|
4449
4721
|
floating: {
|
|
4450
4722
|
x: 0,
|
|
4451
4723
|
y: 0,
|
|
@@ -4454,26 +4726,26 @@ var ds = async function(e) {
|
|
|
4454
4726
|
}
|
|
4455
4727
|
};
|
|
4456
4728
|
};
|
|
4457
|
-
function
|
|
4729
|
+
function ac(e) {
|
|
4458
4730
|
return $(e).direction === "rtl";
|
|
4459
4731
|
}
|
|
4460
|
-
var
|
|
4461
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4462
|
-
getDocumentElement:
|
|
4463
|
-
getClippingRect:
|
|
4464
|
-
getOffsetParent:
|
|
4465
|
-
getElementRects:
|
|
4466
|
-
getClientRects:
|
|
4467
|
-
getDimensions:
|
|
4468
|
-
getScale:
|
|
4732
|
+
var oc = {
|
|
4733
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Us,
|
|
4734
|
+
getDocumentElement: ms,
|
|
4735
|
+
getClippingRect: Qs,
|
|
4736
|
+
getOffsetParent: rc,
|
|
4737
|
+
getElementRects: ic,
|
|
4738
|
+
getClientRects: Ws,
|
|
4739
|
+
getDimensions: $s,
|
|
4740
|
+
getScale: Is,
|
|
4469
4741
|
isElement: Q,
|
|
4470
|
-
isRTL:
|
|
4742
|
+
isRTL: ac
|
|
4471
4743
|
};
|
|
4472
|
-
function
|
|
4744
|
+
function sc(e, t) {
|
|
4473
4745
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
4474
4746
|
}
|
|
4475
|
-
function
|
|
4476
|
-
let n = null, r, i =
|
|
4747
|
+
function cc(e, t) {
|
|
4748
|
+
let n = null, r, i = ms(e);
|
|
4477
4749
|
function a() {
|
|
4478
4750
|
var e;
|
|
4479
4751
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -4482,9 +4754,9 @@ function hs(e, t) {
|
|
|
4482
4754
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
4483
4755
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
4484
4756
|
if (s || t(), !f || !p) return;
|
|
4485
|
-
let m =
|
|
4757
|
+
let m = Do(d), h = Do(i.clientWidth - (u + f)), g = Do(i.clientHeight - (d + p)), _ = Do(u), v = {
|
|
4486
4758
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
4487
|
-
threshold: X(0,
|
|
4759
|
+
threshold: X(0, To(1, c)) || 1
|
|
4488
4760
|
}, y = !0;
|
|
4489
4761
|
function b(t) {
|
|
4490
4762
|
let n = t[0].intersectionRatio;
|
|
@@ -4494,7 +4766,7 @@ function hs(e, t) {
|
|
|
4494
4766
|
o(!1, 1e-7);
|
|
4495
4767
|
}, 1e3);
|
|
4496
4768
|
}
|
|
4497
|
-
n === 1 && !
|
|
4769
|
+
n === 1 && !sc(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
4498
4770
|
}
|
|
4499
4771
|
try {
|
|
4500
4772
|
n = new IntersectionObserver(b, {
|
|
@@ -4508,13 +4780,13 @@ function hs(e, t) {
|
|
|
4508
4780
|
}
|
|
4509
4781
|
return o(!0), a;
|
|
4510
4782
|
}
|
|
4511
|
-
function
|
|
4783
|
+
function lc(e, t, n, r) {
|
|
4512
4784
|
r === void 0 && (r = {});
|
|
4513
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
4785
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Fs(e), u = i || a ? [...l ? Ms(l) : [], ...t ? Ms(t) : []] : [];
|
|
4514
4786
|
u.forEach((e) => {
|
|
4515
4787
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
4516
4788
|
});
|
|
4517
|
-
let d = l && s ?
|
|
4789
|
+
let d = l && s ? cc(l, n) : null, f = -1, p = null;
|
|
4518
4790
|
o && (p = new ResizeObserver((e) => {
|
|
4519
4791
|
let [r] = e;
|
|
4520
4792
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -4522,11 +4794,11 @@ function gs(e, t, n, r) {
|
|
|
4522
4794
|
(e = p) == null || e.observe(t);
|
|
4523
4795
|
})), n();
|
|
4524
4796
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
4525
|
-
let m, h = c ?
|
|
4797
|
+
let m, h = c ? Bs(e) : null;
|
|
4526
4798
|
c && g();
|
|
4527
4799
|
function g() {
|
|
4528
|
-
let t =
|
|
4529
|
-
h && !
|
|
4800
|
+
let t = Bs(e);
|
|
4801
|
+
h && !sc(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
4530
4802
|
}
|
|
4531
4803
|
return n(), () => {
|
|
4532
4804
|
var e;
|
|
@@ -4535,20 +4807,20 @@ function gs(e, t, n, r) {
|
|
|
4535
4807
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
4536
4808
|
};
|
|
4537
4809
|
}
|
|
4538
|
-
var
|
|
4810
|
+
var uc = cs, dc = ls, fc = ns, pc = ds, mc = as, hc = ts, gc = us, _c = (e, t, n) => {
|
|
4539
4811
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
4540
|
-
platform:
|
|
4812
|
+
platform: oc,
|
|
4541
4813
|
...n
|
|
4542
4814
|
}, a = {
|
|
4543
4815
|
...i.platform,
|
|
4544
4816
|
_c: r
|
|
4545
4817
|
};
|
|
4546
|
-
return
|
|
4818
|
+
return es(e, t, {
|
|
4547
4819
|
...i,
|
|
4548
4820
|
platform: a
|
|
4549
4821
|
});
|
|
4550
|
-
},
|
|
4551
|
-
function
|
|
4822
|
+
}, vc = typeof document < "u" ? c : function() {};
|
|
4823
|
+
function yc(e, t) {
|
|
4552
4824
|
if (e === t) return !0;
|
|
4553
4825
|
if (typeof e != typeof t) return !1;
|
|
4554
4826
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -4556,33 +4828,33 @@ function Es(e, t) {
|
|
|
4556
4828
|
if (e && t && typeof e == "object") {
|
|
4557
4829
|
if (Array.isArray(e)) {
|
|
4558
4830
|
if (n = e.length, n !== t.length) return !1;
|
|
4559
|
-
for (r = n; r-- !== 0;) if (!
|
|
4831
|
+
for (r = n; r-- !== 0;) if (!yc(e[r], t[r])) return !1;
|
|
4560
4832
|
return !0;
|
|
4561
4833
|
}
|
|
4562
4834
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
4563
4835
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
4564
4836
|
for (r = n; r-- !== 0;) {
|
|
4565
4837
|
let n = i[r];
|
|
4566
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
4838
|
+
if (!(n === "_owner" && e.$$typeof) && !yc(e[n], t[n])) return !1;
|
|
4567
4839
|
}
|
|
4568
4840
|
return !0;
|
|
4569
4841
|
}
|
|
4570
4842
|
return e !== e && t !== t;
|
|
4571
4843
|
}
|
|
4572
|
-
function
|
|
4844
|
+
function bc(e) {
|
|
4573
4845
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
4574
4846
|
}
|
|
4575
|
-
function
|
|
4576
|
-
let n =
|
|
4847
|
+
function xc(e, t) {
|
|
4848
|
+
let n = bc(e);
|
|
4577
4849
|
return Math.round(t * n) / n;
|
|
4578
4850
|
}
|
|
4579
|
-
function
|
|
4851
|
+
function Sc(t) {
|
|
4580
4852
|
let n = e.useRef(t);
|
|
4581
|
-
return
|
|
4853
|
+
return vc(() => {
|
|
4582
4854
|
n.current = t;
|
|
4583
4855
|
}), n;
|
|
4584
4856
|
}
|
|
4585
|
-
function
|
|
4857
|
+
function Cc(t) {
|
|
4586
4858
|
t === void 0 && (t = {});
|
|
4587
4859
|
let { placement: n = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = t, [d, p] = e.useState({
|
|
4588
4860
|
x: 0,
|
|
@@ -4592,24 +4864,24 @@ function As(t) {
|
|
|
4592
4864
|
middlewareData: {},
|
|
4593
4865
|
isPositioned: !1
|
|
4594
4866
|
}), [m, h] = e.useState(i);
|
|
4595
|
-
|
|
4867
|
+
yc(m, i) || h(i);
|
|
4596
4868
|
let [g, _] = e.useState(null), [v, y] = e.useState(null), b = e.useCallback((e) => {
|
|
4597
4869
|
e !== w.current && (w.current = e, _(e));
|
|
4598
4870
|
}, []), x = e.useCallback((e) => {
|
|
4599
4871
|
e !== T.current && (T.current = e, y(e));
|
|
4600
|
-
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D =
|
|
4872
|
+
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D = Sc(l), O = Sc(a), k = Sc(u), A = e.useCallback(() => {
|
|
4601
4873
|
if (!w.current || !T.current) return;
|
|
4602
4874
|
let e = {
|
|
4603
4875
|
placement: n,
|
|
4604
4876
|
strategy: r,
|
|
4605
4877
|
middleware: m
|
|
4606
4878
|
};
|
|
4607
|
-
O.current && (e.platform = O.current),
|
|
4879
|
+
O.current && (e.platform = O.current), _c(w.current, T.current, e).then((e) => {
|
|
4608
4880
|
let t = {
|
|
4609
4881
|
...e,
|
|
4610
4882
|
isPositioned: k.current !== !1
|
|
4611
4883
|
};
|
|
4612
|
-
j.current && !
|
|
4884
|
+
j.current && !yc(E.current, t) && (E.current = t, f.flushSync(() => {
|
|
4613
4885
|
p(t);
|
|
4614
4886
|
}));
|
|
4615
4887
|
});
|
|
@@ -4620,16 +4892,16 @@ function As(t) {
|
|
|
4620
4892
|
O,
|
|
4621
4893
|
k
|
|
4622
4894
|
]);
|
|
4623
|
-
|
|
4895
|
+
vc(() => {
|
|
4624
4896
|
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, p((e) => ({
|
|
4625
4897
|
...e,
|
|
4626
4898
|
isPositioned: !1
|
|
4627
4899
|
})));
|
|
4628
4900
|
}, [u]);
|
|
4629
4901
|
let j = e.useRef(!1);
|
|
4630
|
-
|
|
4902
|
+
vc(() => (j.current = !0, () => {
|
|
4631
4903
|
j.current = !1;
|
|
4632
|
-
}), []),
|
|
4904
|
+
}), []), vc(() => {
|
|
4633
4905
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
4634
4906
|
if (D.current) return D.current(S, C, A);
|
|
4635
4907
|
A();
|
|
@@ -4656,11 +4928,11 @@ function As(t) {
|
|
|
4656
4928
|
top: 0
|
|
4657
4929
|
};
|
|
4658
4930
|
if (!N.floating) return e;
|
|
4659
|
-
let t =
|
|
4931
|
+
let t = xc(N.floating, d.x), n = xc(N.floating, d.y);
|
|
4660
4932
|
return c ? {
|
|
4661
4933
|
...e,
|
|
4662
4934
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
4663
|
-
...
|
|
4935
|
+
...bc(N.floating) >= 1.5 && { willChange: "transform" }
|
|
4664
4936
|
} : {
|
|
4665
4937
|
position: r,
|
|
4666
4938
|
left: t,
|
|
@@ -4687,7 +4959,7 @@ function As(t) {
|
|
|
4687
4959
|
P
|
|
4688
4960
|
]);
|
|
4689
4961
|
}
|
|
4690
|
-
var
|
|
4962
|
+
var wc = (e) => {
|
|
4691
4963
|
function t(e) {
|
|
4692
4964
|
return {}.hasOwnProperty.call(e, "current");
|
|
4693
4965
|
}
|
|
@@ -4696,61 +4968,61 @@ var js = (e) => {
|
|
|
4696
4968
|
options: e,
|
|
4697
4969
|
fn(n) {
|
|
4698
4970
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
4699
|
-
return r && t(r) ? r.current == null ? {} :
|
|
4971
|
+
return r && t(r) ? r.current == null ? {} : hc({
|
|
4700
4972
|
element: r.current,
|
|
4701
4973
|
padding: i
|
|
4702
|
-
}).fn(n) : r ?
|
|
4974
|
+
}).fn(n) : r ? hc({
|
|
4703
4975
|
element: r,
|
|
4704
4976
|
padding: i
|
|
4705
4977
|
}).fn(n) : {};
|
|
4706
4978
|
}
|
|
4707
4979
|
};
|
|
4708
|
-
},
|
|
4709
|
-
let n =
|
|
4980
|
+
}, Tc = (e, t) => {
|
|
4981
|
+
let n = uc(e);
|
|
4710
4982
|
return {
|
|
4711
4983
|
name: n.name,
|
|
4712
4984
|
fn: n.fn,
|
|
4713
4985
|
options: [e, t]
|
|
4714
4986
|
};
|
|
4715
|
-
},
|
|
4716
|
-
let n =
|
|
4987
|
+
}, Ec = (e, t) => {
|
|
4988
|
+
let n = dc(e);
|
|
4717
4989
|
return {
|
|
4718
4990
|
name: n.name,
|
|
4719
4991
|
fn: n.fn,
|
|
4720
4992
|
options: [e, t]
|
|
4721
4993
|
};
|
|
4722
|
-
},
|
|
4723
|
-
fn:
|
|
4994
|
+
}, Dc = (e, t) => ({
|
|
4995
|
+
fn: gc(e).fn,
|
|
4724
4996
|
options: [e, t]
|
|
4725
|
-
}),
|
|
4726
|
-
let n =
|
|
4997
|
+
}), Oc = (e, t) => {
|
|
4998
|
+
let n = fc(e);
|
|
4727
4999
|
return {
|
|
4728
5000
|
name: n.name,
|
|
4729
5001
|
fn: n.fn,
|
|
4730
5002
|
options: [e, t]
|
|
4731
5003
|
};
|
|
4732
|
-
},
|
|
4733
|
-
let n =
|
|
5004
|
+
}, kc = (e, t) => {
|
|
5005
|
+
let n = pc(e);
|
|
4734
5006
|
return {
|
|
4735
5007
|
name: n.name,
|
|
4736
5008
|
fn: n.fn,
|
|
4737
5009
|
options: [e, t]
|
|
4738
5010
|
};
|
|
4739
|
-
},
|
|
4740
|
-
let n =
|
|
5011
|
+
}, Ac = (e, t) => {
|
|
5012
|
+
let n = mc(e);
|
|
4741
5013
|
return {
|
|
4742
5014
|
name: n.name,
|
|
4743
5015
|
fn: n.fn,
|
|
4744
5016
|
options: [e, t]
|
|
4745
5017
|
};
|
|
4746
|
-
},
|
|
4747
|
-
let n =
|
|
5018
|
+
}, jc = (e, t) => {
|
|
5019
|
+
let n = wc(e);
|
|
4748
5020
|
return {
|
|
4749
5021
|
name: n.name,
|
|
4750
5022
|
fn: n.fn,
|
|
4751
5023
|
options: [e, t]
|
|
4752
5024
|
};
|
|
4753
|
-
},
|
|
5025
|
+
}, Mc = "Arrow", Nc = e.forwardRef((t, n) => {
|
|
4754
5026
|
let { children: r, width: i = 10, height: a = 5, ...o } = t;
|
|
4755
5027
|
return /* @__PURE__ */ e.createElement(j.svg, {
|
|
4756
5028
|
...o,
|
|
@@ -4761,11 +5033,11 @@ var js = (e) => {
|
|
|
4761
5033
|
preserveAspectRatio: "none"
|
|
4762
5034
|
}, t.asChild ? r : /* @__PURE__ */ e.createElement("polygon", { points: "0,0 30,0 15,10" }));
|
|
4763
5035
|
});
|
|
4764
|
-
|
|
4765
|
-
var
|
|
5036
|
+
Nc.displayName = Mc;
|
|
5037
|
+
var Pc = Nc;
|
|
4766
5038
|
//#endregion
|
|
4767
5039
|
//#region ../../node_modules/@huin-core/react-use-size/dist/index.mjs
|
|
4768
|
-
function
|
|
5040
|
+
function Fc(t) {
|
|
4769
5041
|
let [n, r] = e.useState(void 0);
|
|
4770
5042
|
return D(() => {
|
|
4771
5043
|
if (t) {
|
|
@@ -4791,17 +5063,17 @@ function Hs(t) {
|
|
|
4791
5063
|
}
|
|
4792
5064
|
//#endregion
|
|
4793
5065
|
//#region ../../node_modules/@huin-core/react-popper/dist/index.mjs
|
|
4794
|
-
var
|
|
5066
|
+
var Ic = "Popper", [Lc, Rc] = h(Ic), [zc, Bc] = Lc(Ic), Vc = (t) => {
|
|
4795
5067
|
let { __scopePopper: n, children: r } = t, [i, a] = e.useState(null);
|
|
4796
|
-
return /* @__PURE__ */ e.createElement(
|
|
5068
|
+
return /* @__PURE__ */ e.createElement(zc, {
|
|
4797
5069
|
scope: n,
|
|
4798
5070
|
anchor: i,
|
|
4799
5071
|
onAnchorChange: a
|
|
4800
5072
|
}, r);
|
|
4801
5073
|
};
|
|
4802
|
-
|
|
4803
|
-
var
|
|
4804
|
-
let { __scopePopper: r, virtualRef: i, ...a } = t, o =
|
|
5074
|
+
Vc.displayName = Ic;
|
|
5075
|
+
var Hc = "PopperAnchor", Uc = e.forwardRef((t, n) => {
|
|
5076
|
+
let { __scopePopper: r, virtualRef: i, ...a } = t, o = Bc(Hc, r), s = e.useRef(null), c = b(n, s);
|
|
4805
5077
|
return e.useEffect(() => {
|
|
4806
5078
|
o.onAnchorChange(i?.current || s.current);
|
|
4807
5079
|
}), i ? null : /* @__PURE__ */ e.createElement(j.div, {
|
|
@@ -4809,9 +5081,9 @@ var Ys = "PopperAnchor", Xs = e.forwardRef((t, n) => {
|
|
|
4809
5081
|
ref: c
|
|
4810
5082
|
});
|
|
4811
5083
|
});
|
|
4812
|
-
|
|
4813
|
-
var
|
|
4814
|
-
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ...g } = t, _ =
|
|
5084
|
+
Uc.displayName = Hc;
|
|
5085
|
+
var Wc = "PopperContent", [Gc, Kc] = Lc(Wc), qc = e.forwardRef((t, n) => {
|
|
5086
|
+
let { __scopePopper: r, side: i = "bottom", sideOffset: a = 0, align: o = "center", alignOffset: s = 0, arrowPadding: c = 0, avoidCollisions: l = !0, collisionBoundary: u = [], collisionPadding: d = 0, sticky: f = "partial", hideWhenDetached: p = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ...g } = t, _ = Bc(Wc, r), [v, y] = e.useState(null), x = b(n, (e) => y(e)), [S, C] = e.useState(null), w = Fc(S), T = w?.width ?? 0, E = w?.height ?? 0, ee = i + (o === "center" ? "" : "-" + o), O = typeof d == "number" ? d : {
|
|
4815
5087
|
top: 0,
|
|
4816
5088
|
right: 0,
|
|
4817
5089
|
bottom: 0,
|
|
@@ -4819,46 +5091,46 @@ var Zs = "PopperContent", [Qs, $s] = Ws(Zs), ec = e.forwardRef((t, n) => {
|
|
|
4819
5091
|
...d
|
|
4820
5092
|
}, k = Array.isArray(u) ? u : [u], A = k.length > 0, M = {
|
|
4821
5093
|
padding: O,
|
|
4822
|
-
boundary: k.filter(
|
|
5094
|
+
boundary: k.filter(Zc),
|
|
4823
5095
|
altBoundary: A
|
|
4824
|
-
}, { refs: P, floatingStyles: F, placement: te, isPositioned: ne, middlewareData: I } =
|
|
5096
|
+
}, { refs: P, floatingStyles: F, placement: te, isPositioned: ne, middlewareData: I } = Cc({
|
|
4825
5097
|
strategy: "fixed",
|
|
4826
5098
|
placement: ee,
|
|
4827
|
-
whileElementsMounted: (...e) =>
|
|
5099
|
+
whileElementsMounted: (...e) => lc(...e, { animationFrame: m === "always" }),
|
|
4828
5100
|
elements: { reference: _.anchor },
|
|
4829
5101
|
middleware: [
|
|
4830
|
-
|
|
5102
|
+
Tc({
|
|
4831
5103
|
mainAxis: a + E,
|
|
4832
5104
|
alignmentAxis: s
|
|
4833
5105
|
}),
|
|
4834
|
-
l &&
|
|
5106
|
+
l && Ec({
|
|
4835
5107
|
mainAxis: !0,
|
|
4836
5108
|
crossAxis: !1,
|
|
4837
|
-
limiter: f === "partial" ?
|
|
5109
|
+
limiter: f === "partial" ? Dc() : void 0,
|
|
4838
5110
|
...M
|
|
4839
5111
|
}),
|
|
4840
|
-
l &&
|
|
4841
|
-
|
|
5112
|
+
l && Oc({ ...M }),
|
|
5113
|
+
kc({
|
|
4842
5114
|
...M,
|
|
4843
5115
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
4844
5116
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
4845
5117
|
o.setProperty("--huin-core-popper-available-width", `${n}px`), o.setProperty("--huin-core-popper-available-height", `${r}px`), o.setProperty("--huin-core-popper-anchor-width", `${i}px`), o.setProperty("--huin-core-popper-anchor-height", `${a}px`);
|
|
4846
5118
|
}
|
|
4847
5119
|
}),
|
|
4848
|
-
S &&
|
|
5120
|
+
S && jc({
|
|
4849
5121
|
element: S,
|
|
4850
5122
|
padding: c
|
|
4851
5123
|
}),
|
|
4852
|
-
|
|
5124
|
+
Qc({
|
|
4853
5125
|
arrowWidth: T,
|
|
4854
5126
|
arrowHeight: E
|
|
4855
5127
|
}),
|
|
4856
|
-
p &&
|
|
5128
|
+
p && Ac({
|
|
4857
5129
|
strategy: "referenceHidden",
|
|
4858
5130
|
...M
|
|
4859
5131
|
})
|
|
4860
5132
|
]
|
|
4861
|
-
}), [re, L] =
|
|
5133
|
+
}), [re, L] = $c(te), R = N(h);
|
|
4862
5134
|
D(() => {
|
|
4863
5135
|
ne && R?.();
|
|
4864
5136
|
}, [ne, R]);
|
|
@@ -4880,7 +5152,7 @@ var Zs = "PopperContent", [Qs, $s] = Ws(Zs), ec = e.forwardRef((t, n) => {
|
|
|
4880
5152
|
}
|
|
4881
5153
|
},
|
|
4882
5154
|
dir: t.dir
|
|
4883
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5155
|
+
}, /* @__PURE__ */ e.createElement(Gc, {
|
|
4884
5156
|
scope: r,
|
|
4885
5157
|
placedSide: re,
|
|
4886
5158
|
onArrowChange: C,
|
|
@@ -4898,14 +5170,14 @@ var Zs = "PopperContent", [Qs, $s] = Ws(Zs), ec = e.forwardRef((t, n) => {
|
|
|
4898
5170
|
}
|
|
4899
5171
|
})));
|
|
4900
5172
|
});
|
|
4901
|
-
|
|
4902
|
-
var
|
|
5173
|
+
qc.displayName = Wc;
|
|
5174
|
+
var Jc = "PopperArrow", Yc = {
|
|
4903
5175
|
top: "bottom",
|
|
4904
5176
|
right: "left",
|
|
4905
5177
|
bottom: "top",
|
|
4906
5178
|
left: "right"
|
|
4907
|
-
},
|
|
4908
|
-
let { __scopePopper: r, ...i } = t, a =
|
|
5179
|
+
}, Xc = e.forwardRef(function(t, n) {
|
|
5180
|
+
let { __scopePopper: r, ...i } = t, a = Kc(Jc, r), o = Yc[a.placedSide];
|
|
4909
5181
|
return /* @__PURE__ */ e.createElement("span", {
|
|
4910
5182
|
ref: a.onArrowChange,
|
|
4911
5183
|
style: {
|
|
@@ -4927,7 +5199,7 @@ var tc = "PopperArrow", nc = {
|
|
|
4927
5199
|
}[a.placedSide],
|
|
4928
5200
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
4929
5201
|
}
|
|
4930
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5202
|
+
}, /* @__PURE__ */ e.createElement(Pc, {
|
|
4931
5203
|
...i,
|
|
4932
5204
|
ref: n,
|
|
4933
5205
|
style: {
|
|
@@ -4936,15 +5208,15 @@ var tc = "PopperArrow", nc = {
|
|
|
4936
5208
|
}
|
|
4937
5209
|
}));
|
|
4938
5210
|
});
|
|
4939
|
-
|
|
4940
|
-
function
|
|
5211
|
+
Xc.displayName = Jc;
|
|
5212
|
+
function Zc(e) {
|
|
4941
5213
|
return e !== null;
|
|
4942
5214
|
}
|
|
4943
|
-
var
|
|
5215
|
+
var Qc = (e) => ({
|
|
4944
5216
|
name: "transformOrigin",
|
|
4945
5217
|
options: e,
|
|
4946
5218
|
fn(t) {
|
|
4947
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
5219
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = $c(n), u = {
|
|
4948
5220
|
start: "0%",
|
|
4949
5221
|
center: "50%",
|
|
4950
5222
|
end: "100%"
|
|
@@ -4955,15 +5227,15 @@ var ac = (e) => ({
|
|
|
4955
5227
|
} };
|
|
4956
5228
|
}
|
|
4957
5229
|
});
|
|
4958
|
-
function
|
|
5230
|
+
function $c(e) {
|
|
4959
5231
|
let [t, n = "center"] = e.split("-");
|
|
4960
5232
|
return [t, n];
|
|
4961
5233
|
}
|
|
4962
|
-
var
|
|
5234
|
+
var el = Vc, tl = Uc, nl = qc, rl = Xc, il = kn(), al = function() {}, ol = e.forwardRef(function(t, n) {
|
|
4963
5235
|
var r = e.useRef(null), i = e.useState({
|
|
4964
|
-
onScrollCapture:
|
|
4965
|
-
onWheelCapture:
|
|
4966
|
-
onTouchMoveCapture:
|
|
5236
|
+
onScrollCapture: al,
|
|
5237
|
+
onWheelCapture: al,
|
|
5238
|
+
onTouchMoveCapture: al
|
|
4967
5239
|
}), a = i[0], o = i[1], s = t.forwardProps, c = t.children, l = t.className, u = t.removeScrollBar, d = t.enabled, f = t.shards, p = t.sideCar, m = t.noIsolation, h = t.inert, g = t.allowPinchZoom, _ = t.as, v = _ === void 0 ? "div" : _, y = t.gapMode, b = gn(t, [
|
|
4968
5240
|
"forwardProps",
|
|
4969
5241
|
"children",
|
|
@@ -4979,7 +5251,7 @@ var sc = Js, cc = Xs, lc = ec, uc = rc, dc = kn(), fc = function() {}, pc = e.fo
|
|
|
4979
5251
|
"gapMode"
|
|
4980
5252
|
]), x = p, S = En([r, n]), C = J(J({}, b), a);
|
|
4981
5253
|
return e.createElement(e.Fragment, null, d && e.createElement(x, {
|
|
4982
|
-
sideCar:
|
|
5254
|
+
sideCar: il,
|
|
4983
5255
|
removeScrollBar: u,
|
|
4984
5256
|
shards: f,
|
|
4985
5257
|
noIsolation: m,
|
|
@@ -4993,91 +5265,91 @@ var sc = Js, cc = Xs, lc = ec, uc = rc, dc = kn(), fc = function() {}, pc = e.fo
|
|
|
4993
5265
|
ref: S
|
|
4994
5266
|
}), c));
|
|
4995
5267
|
});
|
|
4996
|
-
|
|
5268
|
+
ol.defaultProps = {
|
|
4997
5269
|
enabled: !0,
|
|
4998
5270
|
removeScrollBar: !0,
|
|
4999
5271
|
inert: !1
|
|
5000
|
-
},
|
|
5272
|
+
}, ol.classNames = {
|
|
5001
5273
|
fullWidth: yn,
|
|
5002
5274
|
zeroRight: vn
|
|
5003
5275
|
};
|
|
5004
5276
|
//#endregion
|
|
5005
5277
|
//#region ../../node_modules/@huin-core/react-popover/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
5006
|
-
var
|
|
5278
|
+
var sl = !1;
|
|
5007
5279
|
if (typeof window < "u") try {
|
|
5008
|
-
var
|
|
5009
|
-
return
|
|
5280
|
+
var cl = Object.defineProperty({}, "passive", { get: function() {
|
|
5281
|
+
return sl = !0, !0;
|
|
5010
5282
|
} });
|
|
5011
|
-
window.addEventListener("test",
|
|
5283
|
+
window.addEventListener("test", cl, cl), window.removeEventListener("test", cl, cl);
|
|
5012
5284
|
} catch {
|
|
5013
|
-
|
|
5285
|
+
sl = !1;
|
|
5014
5286
|
}
|
|
5015
|
-
var
|
|
5287
|
+
var ll = sl ? { passive: !1 } : !1, ul = function(e) {
|
|
5016
5288
|
return e.tagName === "TEXTAREA";
|
|
5017
|
-
},
|
|
5289
|
+
}, dl = function(e, t) {
|
|
5018
5290
|
var n = window.getComputedStyle(e);
|
|
5019
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
5020
|
-
},
|
|
5021
|
-
return
|
|
5022
|
-
},
|
|
5023
|
-
return
|
|
5024
|
-
},
|
|
5291
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !ul(e) && n[t] === "visible");
|
|
5292
|
+
}, fl = function(e) {
|
|
5293
|
+
return dl(e, "overflowY");
|
|
5294
|
+
}, pl = function(e) {
|
|
5295
|
+
return dl(e, "overflowX");
|
|
5296
|
+
}, ml = function(e, t) {
|
|
5025
5297
|
var n = t.ownerDocument, r = t;
|
|
5026
5298
|
do {
|
|
5027
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
5028
|
-
var i =
|
|
5299
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), _l(e, r)) {
|
|
5300
|
+
var i = vl(e, r);
|
|
5029
5301
|
if (i[1] > i[2]) return !0;
|
|
5030
5302
|
}
|
|
5031
5303
|
r = r.parentNode;
|
|
5032
5304
|
} while (r && r !== n.body);
|
|
5033
5305
|
return !1;
|
|
5034
|
-
},
|
|
5306
|
+
}, hl = function(e) {
|
|
5035
5307
|
return [
|
|
5036
5308
|
e.scrollTop,
|
|
5037
5309
|
e.scrollHeight,
|
|
5038
5310
|
e.clientHeight
|
|
5039
5311
|
];
|
|
5040
|
-
},
|
|
5312
|
+
}, gl = function(e) {
|
|
5041
5313
|
return [
|
|
5042
5314
|
e.scrollLeft,
|
|
5043
5315
|
e.scrollWidth,
|
|
5044
5316
|
e.clientWidth
|
|
5045
5317
|
];
|
|
5046
|
-
},
|
|
5047
|
-
return e === "v" ?
|
|
5048
|
-
},
|
|
5049
|
-
return e === "v" ?
|
|
5050
|
-
},
|
|
5318
|
+
}, _l = function(e, t) {
|
|
5319
|
+
return e === "v" ? fl(t) : pl(t);
|
|
5320
|
+
}, vl = function(e, t) {
|
|
5321
|
+
return e === "v" ? hl(t) : gl(t);
|
|
5322
|
+
}, yl = function(e, t) {
|
|
5051
5323
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
5052
|
-
},
|
|
5053
|
-
var a =
|
|
5324
|
+
}, bl = function(e, t, n, r, i) {
|
|
5325
|
+
var a = yl(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
5054
5326
|
do {
|
|
5055
|
-
var p =
|
|
5056
|
-
(m || h) &&
|
|
5327
|
+
var p = vl(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
5328
|
+
(m || h) && _l(e, s) && (d += h, f += m), s = s instanceof ShadowRoot ? s.host : s.parentNode;
|
|
5057
5329
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
5058
5330
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
5059
|
-
},
|
|
5331
|
+
}, xl = function(e) {
|
|
5060
5332
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
5061
|
-
},
|
|
5333
|
+
}, Sl = function(e) {
|
|
5062
5334
|
return [e.deltaX, e.deltaY];
|
|
5063
|
-
},
|
|
5335
|
+
}, Cl = function(e) {
|
|
5064
5336
|
return e && "current" in e ? e.current : e;
|
|
5065
|
-
},
|
|
5337
|
+
}, wl = function(e, t) {
|
|
5066
5338
|
return e[0] === t[0] && e[1] === t[1];
|
|
5067
|
-
},
|
|
5339
|
+
}, Tl = function(e) {
|
|
5068
5340
|
return `
|
|
5069
5341
|
.block-interactivity-${e} {pointer-events: none;}
|
|
5070
5342
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
5071
5343
|
`;
|
|
5072
|
-
},
|
|
5073
|
-
function
|
|
5074
|
-
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(
|
|
5344
|
+
}, El = 0, Dl = [];
|
|
5345
|
+
function Ol(t) {
|
|
5346
|
+
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(El++)[0], o = e.useState(Hn)[0], s = e.useRef(t);
|
|
5075
5347
|
e.useEffect(function() {
|
|
5076
5348
|
s.current = t;
|
|
5077
5349
|
}, [t]), e.useEffect(function() {
|
|
5078
5350
|
if (t.inert) {
|
|
5079
5351
|
document.body.classList.add(`block-interactivity-${a}`);
|
|
5080
|
-
var e = _n([t.lockRef.current], (t.shards || []).map(
|
|
5352
|
+
var e = _n([t.lockRef.current], (t.shards || []).map(Cl), !0).filter(Boolean);
|
|
5081
5353
|
return e.forEach(function(e) {
|
|
5082
5354
|
return e.classList.add(`allow-interactivity-${a}`);
|
|
5083
5355
|
}), function() {
|
|
@@ -5093,26 +5365,26 @@ function Fc(t) {
|
|
|
5093
5365
|
]);
|
|
5094
5366
|
var c = e.useCallback(function(e, t) {
|
|
5095
5367
|
if ("touches" in e && e.touches.length === 2) return !s.current.allowPinchZoom;
|
|
5096
|
-
var n =
|
|
5368
|
+
var n = xl(e), a = r.current, o = "deltaX" in e ? e.deltaX : a[0] - n[0], c = "deltaY" in e ? e.deltaY : a[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
5097
5369
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
5098
|
-
var f =
|
|
5370
|
+
var f = ml(d, u);
|
|
5099
5371
|
if (!f) return !0;
|
|
5100
|
-
if (f ? l = d : (l = d === "v" ? "h" : "v", f =
|
|
5372
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = ml(d, u)), !f) return !1;
|
|
5101
5373
|
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
5102
5374
|
var p = i.current || l;
|
|
5103
|
-
return
|
|
5375
|
+
return bl(p, t, e, p === "h" ? o : c, !0);
|
|
5104
5376
|
}, []), l = e.useCallback(function(e) {
|
|
5105
5377
|
var t = e;
|
|
5106
|
-
if (!(!
|
|
5107
|
-
var r = "deltaY" in t ?
|
|
5108
|
-
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) &&
|
|
5378
|
+
if (!(!Dl.length || Dl[Dl.length - 1] !== o)) {
|
|
5379
|
+
var r = "deltaY" in t ? Sl(t) : xl(t), i = n.current.filter(function(e) {
|
|
5380
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && wl(e.delta, r);
|
|
5109
5381
|
})[0];
|
|
5110
5382
|
if (i && i.should) {
|
|
5111
5383
|
t.cancelable && t.preventDefault();
|
|
5112
5384
|
return;
|
|
5113
5385
|
}
|
|
5114
5386
|
if (!i) {
|
|
5115
|
-
var a = (s.current.shards || []).map(
|
|
5387
|
+
var a = (s.current.shards || []).map(Cl).filter(Boolean).filter(function(e) {
|
|
5116
5388
|
return e.contains(t.target);
|
|
5117
5389
|
});
|
|
5118
5390
|
(a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
@@ -5124,7 +5396,7 @@ function Fc(t) {
|
|
|
5124
5396
|
delta: t,
|
|
5125
5397
|
target: r,
|
|
5126
5398
|
should: i,
|
|
5127
|
-
shadowParent:
|
|
5399
|
+
shadowParent: kl(r)
|
|
5128
5400
|
};
|
|
5129
5401
|
n.current.push(a), setTimeout(function() {
|
|
5130
5402
|
n.current = n.current.filter(function(e) {
|
|
@@ -5132,48 +5404,48 @@ function Fc(t) {
|
|
|
5132
5404
|
});
|
|
5133
5405
|
}, 1);
|
|
5134
5406
|
}, []), d = e.useCallback(function(e) {
|
|
5135
|
-
r.current =
|
|
5407
|
+
r.current = xl(e), i.current = void 0;
|
|
5136
5408
|
}, []), f = e.useCallback(function(e) {
|
|
5137
|
-
u(e.type,
|
|
5409
|
+
u(e.type, Sl(e), e.target, c(e, t.lockRef.current));
|
|
5138
5410
|
}, []), p = e.useCallback(function(e) {
|
|
5139
|
-
u(e.type,
|
|
5411
|
+
u(e.type, xl(e), e.target, c(e, t.lockRef.current));
|
|
5140
5412
|
}, []);
|
|
5141
5413
|
e.useEffect(function() {
|
|
5142
|
-
return
|
|
5414
|
+
return Dl.push(o), t.setCallbacks({
|
|
5143
5415
|
onScrollCapture: f,
|
|
5144
5416
|
onWheelCapture: f,
|
|
5145
5417
|
onTouchMoveCapture: p
|
|
5146
|
-
}), document.addEventListener("wheel", l,
|
|
5147
|
-
|
|
5418
|
+
}), document.addEventListener("wheel", l, ll), document.addEventListener("touchmove", l, ll), document.addEventListener("touchstart", d, ll), function() {
|
|
5419
|
+
Dl = Dl.filter(function(e) {
|
|
5148
5420
|
return e !== o;
|
|
5149
|
-
}), document.removeEventListener("wheel", l,
|
|
5421
|
+
}), document.removeEventListener("wheel", l, ll), document.removeEventListener("touchmove", l, ll), document.removeEventListener("touchstart", d, ll);
|
|
5150
5422
|
};
|
|
5151
5423
|
}, []);
|
|
5152
5424
|
var m = t.removeScrollBar, h = t.inert;
|
|
5153
|
-
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles:
|
|
5425
|
+
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: Tl(a) }) : null, m ? e.createElement(Qn, { gapMode: t.gapMode }) : null);
|
|
5154
5426
|
}
|
|
5155
|
-
function
|
|
5427
|
+
function kl(e) {
|
|
5156
5428
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
5157
5429
|
return t;
|
|
5158
5430
|
}
|
|
5159
5431
|
//#endregion
|
|
5160
5432
|
//#region ../../node_modules/@huin-core/react-popover/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
5161
|
-
var
|
|
5162
|
-
return e.createElement(
|
|
5433
|
+
var Al = jn(il, Ol), jl = e.forwardRef(function(t, n) {
|
|
5434
|
+
return e.createElement(ol, J({}, t, {
|
|
5163
5435
|
ref: n,
|
|
5164
|
-
sideCar:
|
|
5436
|
+
sideCar: Al
|
|
5165
5437
|
}));
|
|
5166
5438
|
});
|
|
5167
|
-
|
|
5439
|
+
jl.classNames = ol.classNames;
|
|
5168
5440
|
//#endregion
|
|
5169
5441
|
//#region ../../node_modules/@huin-core/react-popover/dist/index.mjs
|
|
5170
|
-
var
|
|
5171
|
-
let { __scopePopover: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !1 } = t, c =
|
|
5442
|
+
var Ml = "Popover", [Nl, Pl] = h(Ml, [Rc]), Fl = Rc(), [Il, Ll] = Nl(Ml), Rl = (t) => {
|
|
5443
|
+
let { __scopePopover: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !1 } = t, c = Fl(n), l = e.useRef(null), [u, d] = e.useState(!1), [f = !1, p] = P({
|
|
5172
5444
|
prop: i,
|
|
5173
5445
|
defaultProp: a,
|
|
5174
5446
|
onChange: o
|
|
5175
5447
|
});
|
|
5176
|
-
return /* @__PURE__ */ e.createElement(
|
|
5448
|
+
return /* @__PURE__ */ e.createElement(el, { ...c }, /* @__PURE__ */ e.createElement(Il, {
|
|
5177
5449
|
scope: n,
|
|
5178
5450
|
contentId: A(),
|
|
5179
5451
|
triggerRef: l,
|
|
@@ -5186,19 +5458,19 @@ var zc = "Popover", [Bc, Vc] = h(zc, [Gs]), Hc = Gs(), [Uc, Wc] = Bc(zc), Gc = (
|
|
|
5186
5458
|
modal: s
|
|
5187
5459
|
}, r));
|
|
5188
5460
|
};
|
|
5189
|
-
|
|
5190
|
-
var
|
|
5191
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5192
|
-
return t.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ t.createElement(
|
|
5461
|
+
Rl.displayName = Ml;
|
|
5462
|
+
var zl = Rl, Bl = "PopoverAnchor", Vl = t.forwardRef((e, n) => {
|
|
5463
|
+
let { __scopePopover: r, ...i } = e, a = Ll(Bl, r), o = Fl(r), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = a;
|
|
5464
|
+
return t.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ t.createElement(tl, {
|
|
5193
5465
|
...o,
|
|
5194
5466
|
...i,
|
|
5195
5467
|
ref: n
|
|
5196
5468
|
});
|
|
5197
5469
|
});
|
|
5198
|
-
|
|
5199
|
-
var
|
|
5200
|
-
let { __scopePopover: n, forceMount: r, children: i, container: a } = e, o =
|
|
5201
|
-
return /* @__PURE__ */ t.createElement(
|
|
5470
|
+
Vl.displayName = Bl;
|
|
5471
|
+
var Hl = "PopoverPortal", [Ul, Wl] = Nl(Hl, { forceMount: void 0 }), Gl = (e) => {
|
|
5472
|
+
let { __scopePopover: n, forceMount: r, children: i, container: a } = e, o = Ll(Hl, n);
|
|
5473
|
+
return /* @__PURE__ */ t.createElement(Ul, {
|
|
5202
5474
|
scope: n,
|
|
5203
5475
|
forceMount: r
|
|
5204
5476
|
}, /* @__PURE__ */ t.createElement(xe, { present: r || o.open }, /* @__PURE__ */ t.createElement(hn, {
|
|
@@ -5206,27 +5478,27 @@ var Yc = "PopoverPortal", [Xc, Zc] = Bc(Yc, { forceMount: void 0 }), Qc = (e) =>
|
|
|
5206
5478
|
container: a
|
|
5207
5479
|
}, i)));
|
|
5208
5480
|
};
|
|
5209
|
-
|
|
5210
|
-
var
|
|
5211
|
-
let r =
|
|
5212
|
-
return /* @__PURE__ */ t.createElement(xe, { present: i || o.open }, o.modal ? /* @__PURE__ */ t.createElement(
|
|
5481
|
+
Gl.displayName = Hl;
|
|
5482
|
+
var Kl = "PopoverContent", ql = t.forwardRef((e, n) => {
|
|
5483
|
+
let r = Wl(Kl, e.__scopePopover), { forceMount: i = r.forceMount, ...a } = e, o = Ll(Kl, e.__scopePopover);
|
|
5484
|
+
return /* @__PURE__ */ t.createElement(xe, { present: i || o.open }, o.modal ? /* @__PURE__ */ t.createElement(Jl, {
|
|
5213
5485
|
...a,
|
|
5214
5486
|
ref: n
|
|
5215
|
-
}) : /* @__PURE__ */ t.createElement(
|
|
5487
|
+
}) : /* @__PURE__ */ t.createElement(Yl, {
|
|
5216
5488
|
...a,
|
|
5217
5489
|
ref: n
|
|
5218
5490
|
}));
|
|
5219
5491
|
});
|
|
5220
|
-
|
|
5221
|
-
var
|
|
5222
|
-
let r =
|
|
5492
|
+
ql.displayName = Kl;
|
|
5493
|
+
var Jl = t.forwardRef((e, n) => {
|
|
5494
|
+
let r = Ll(Kl, e.__scopePopover), i = t.useRef(null), a = b(n, i), o = t.useRef(!1);
|
|
5223
5495
|
return t.useEffect(() => {
|
|
5224
5496
|
let e = i.current;
|
|
5225
5497
|
if (e) return Mr(e);
|
|
5226
|
-
}, []), /* @__PURE__ */ t.createElement(
|
|
5498
|
+
}, []), /* @__PURE__ */ t.createElement(jl, {
|
|
5227
5499
|
as: x,
|
|
5228
5500
|
allowPinchZoom: !0
|
|
5229
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5501
|
+
}, /* @__PURE__ */ t.createElement(Xl, {
|
|
5230
5502
|
...e,
|
|
5231
5503
|
ref: a,
|
|
5232
5504
|
trapFocus: r.open,
|
|
@@ -5240,9 +5512,9 @@ var tl = t.forwardRef((e, n) => {
|
|
|
5240
5512
|
}, { checkForDefaultPrevented: !1 }),
|
|
5241
5513
|
onFocusOutside: _(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
5242
5514
|
}));
|
|
5243
|
-
}),
|
|
5244
|
-
let r =
|
|
5245
|
-
return /* @__PURE__ */ t.createElement(
|
|
5515
|
+
}), Yl = t.forwardRef((e, n) => {
|
|
5516
|
+
let r = Ll(Kl, e.__scopePopover), i = t.useRef(!1), a = t.useRef(!1);
|
|
5517
|
+
return /* @__PURE__ */ t.createElement(Xl, {
|
|
5246
5518
|
...e,
|
|
5247
5519
|
ref: n,
|
|
5248
5520
|
trapFocus: !1,
|
|
@@ -5256,8 +5528,8 @@ var tl = t.forwardRef((e, n) => {
|
|
|
5256
5528
|
r.triggerRef.current?.contains(n) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
5257
5529
|
}
|
|
5258
5530
|
});
|
|
5259
|
-
}),
|
|
5260
|
-
let { __scopePopover: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, ...f } = e, p =
|
|
5531
|
+
}), Xl = t.forwardRef((e, n) => {
|
|
5532
|
+
let { __scopePopover: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, ...f } = e, p = Ll(Kl, r), m = Fl(r);
|
|
5261
5533
|
return ui(), /* @__PURE__ */ t.createElement(Zr, {
|
|
5262
5534
|
asChild: !0,
|
|
5263
5535
|
loop: !0,
|
|
@@ -5272,8 +5544,8 @@ var tl = t.forwardRef((e, n) => {
|
|
|
5272
5544
|
onPointerDownOutside: l,
|
|
5273
5545
|
onFocusOutside: u,
|
|
5274
5546
|
onDismiss: () => p.onOpenChange(!1)
|
|
5275
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5276
|
-
"data-state":
|
|
5547
|
+
}, /* @__PURE__ */ t.createElement(nl, {
|
|
5548
|
+
"data-state": Zl(p.open),
|
|
5277
5549
|
role: "dialog",
|
|
5278
5550
|
id: p.contentId,
|
|
5279
5551
|
...m,
|
|
@@ -5289,28 +5561,28 @@ var tl = t.forwardRef((e, n) => {
|
|
|
5289
5561
|
}
|
|
5290
5562
|
})));
|
|
5291
5563
|
});
|
|
5292
|
-
function
|
|
5564
|
+
function Zl(e) {
|
|
5293
5565
|
return e ? "open" : "closed";
|
|
5294
5566
|
}
|
|
5295
|
-
var
|
|
5296
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5567
|
+
var Ql = "PopoverTrigger", $l = t.forwardRef((e, n) => {
|
|
5568
|
+
let { __scopePopover: r, ...i } = e, a = Ll(Ql, r), o = Fl(r), s = b(n, a.triggerRef), c = /* @__PURE__ */ t.createElement(j.button, {
|
|
5297
5569
|
type: "button",
|
|
5298
5570
|
"aria-haspopup": "dialog",
|
|
5299
5571
|
"aria-expanded": a.open,
|
|
5300
5572
|
"aria-controls": a.contentId,
|
|
5301
|
-
"data-state":
|
|
5573
|
+
"data-state": Zl(a.open),
|
|
5302
5574
|
...i,
|
|
5303
5575
|
ref: s,
|
|
5304
5576
|
onClick: _(e.onClick, a.onOpenToggle)
|
|
5305
5577
|
});
|
|
5306
|
-
return a.hasCustomAnchor ? c : /* @__PURE__ */ t.createElement(
|
|
5578
|
+
return a.hasCustomAnchor ? c : /* @__PURE__ */ t.createElement(tl, {
|
|
5307
5579
|
asChild: !0,
|
|
5308
5580
|
...o
|
|
5309
5581
|
}, c);
|
|
5310
5582
|
});
|
|
5311
|
-
|
|
5312
|
-
var
|
|
5313
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5583
|
+
$l.displayName = Ql;
|
|
5584
|
+
var eu = "PopoverClose", tu = t.forwardRef((e, n) => {
|
|
5585
|
+
let { __scopePopover: r, ...i } = e, a = Ll(eu, r);
|
|
5314
5586
|
return /* @__PURE__ */ t.createElement(j.button, {
|
|
5315
5587
|
type: "button",
|
|
5316
5588
|
...i,
|
|
@@ -5318,29 +5590,29 @@ var sl = "PopoverClose", cl = t.forwardRef((e, n) => {
|
|
|
5318
5590
|
onClick: _(e.onClick, () => a.onOpenChange(!1))
|
|
5319
5591
|
});
|
|
5320
5592
|
});
|
|
5321
|
-
|
|
5322
|
-
var
|
|
5323
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5324
|
-
return /* @__PURE__ */ t.createElement(
|
|
5593
|
+
tu.displayName = eu;
|
|
5594
|
+
var nu = "PopoverArrow", ru = t.forwardRef((e, n) => {
|
|
5595
|
+
let { __scopePopover: r, ...i } = e, a = Fl(r);
|
|
5596
|
+
return /* @__PURE__ */ t.createElement(rl, {
|
|
5325
5597
|
...a,
|
|
5326
5598
|
...i,
|
|
5327
5599
|
ref: n
|
|
5328
5600
|
});
|
|
5329
5601
|
});
|
|
5330
|
-
|
|
5602
|
+
ru.displayName = nu;
|
|
5331
5603
|
//#endregion
|
|
5332
5604
|
//#region src/ui/components/Popover.tsx
|
|
5333
|
-
var
|
|
5605
|
+
var iu = zl, au = $l, ou = e.forwardRef(({ className: t, align: n = "center", sideOffset: r = 4, ...i }, a) => /* @__PURE__ */ e.createElement(Gl, null, /* @__PURE__ */ e.createElement("div", { className: "sentinel-root" }, /* @__PURE__ */ e.createElement(ql, {
|
|
5334
5606
|
ref: a,
|
|
5335
5607
|
align: n,
|
|
5336
5608
|
sideOffset: r,
|
|
5337
|
-
className: G("z-
|
|
5609
|
+
className: G("z-[10000] w-72 rounded-md border bg-popover p-4! text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", t),
|
|
5338
5610
|
...i
|
|
5339
5611
|
}))));
|
|
5340
|
-
|
|
5612
|
+
ou.displayName = ql.displayName;
|
|
5341
5613
|
//#endregion
|
|
5342
5614
|
//#region ../../node_modules/@huin-core/react-use-previous/dist/index.mjs
|
|
5343
|
-
function
|
|
5615
|
+
function su(t) {
|
|
5344
5616
|
let n = e.useRef({
|
|
5345
5617
|
value: t,
|
|
5346
5618
|
previous: t
|
|
@@ -5349,13 +5621,13 @@ function ml(t) {
|
|
|
5349
5621
|
}
|
|
5350
5622
|
//#endregion
|
|
5351
5623
|
//#region ../../node_modules/@huin-core/react-switch/dist/index.mjs
|
|
5352
|
-
var
|
|
5624
|
+
var cu = "Switch", [lu] = h(cu), [uu, du] = lu(cu), fu = e.forwardRef((t, n) => {
|
|
5353
5625
|
let { __scopeSwitch: r, name: i, checked: a, defaultChecked: o, required: s, disabled: c, value: l = "on", onCheckedChange: u, form: d, ...f } = t, [p, m] = e.useState(null), h = b(n, (e) => m(e)), g = e.useRef(!1), v = p ? !!p.closest("form") : !0, [y = !1, x] = P({
|
|
5354
5626
|
prop: a,
|
|
5355
5627
|
defaultProp: o,
|
|
5356
5628
|
onChange: u
|
|
5357
5629
|
});
|
|
5358
|
-
return /* @__PURE__ */ e.createElement(
|
|
5630
|
+
return /* @__PURE__ */ e.createElement(uu, {
|
|
5359
5631
|
scope: r,
|
|
5360
5632
|
checked: y,
|
|
5361
5633
|
disabled: c
|
|
@@ -5364,7 +5636,7 @@ var hl = "Switch", [gl] = h(hl), [_l, vl] = gl(hl), yl = e.forwardRef((t, n) =>
|
|
|
5364
5636
|
role: "switch",
|
|
5365
5637
|
"aria-checked": y,
|
|
5366
5638
|
"aria-required": s,
|
|
5367
|
-
"data-state":
|
|
5639
|
+
"data-state": mu(y),
|
|
5368
5640
|
"data-disabled": c ? "" : void 0,
|
|
5369
5641
|
disabled: c,
|
|
5370
5642
|
value: l,
|
|
@@ -5373,7 +5645,7 @@ var hl = "Switch", [gl] = h(hl), [_l, vl] = gl(hl), yl = e.forwardRef((t, n) =>
|
|
|
5373
5645
|
onClick: _(t.onClick, (e) => {
|
|
5374
5646
|
x((e) => !e), v && (g.current = e.isPropagationStopped(), g.current || e.stopPropagation());
|
|
5375
5647
|
})
|
|
5376
|
-
}), v && /* @__PURE__ */ e.createElement(
|
|
5648
|
+
}), v && /* @__PURE__ */ e.createElement(pu, {
|
|
5377
5649
|
control: p,
|
|
5378
5650
|
bubbles: !g.current,
|
|
5379
5651
|
name: i,
|
|
@@ -5385,9 +5657,9 @@ var hl = "Switch", [gl] = h(hl), [_l, vl] = gl(hl), yl = e.forwardRef((t, n) =>
|
|
|
5385
5657
|
style: { transform: "translateX(-100%)" }
|
|
5386
5658
|
}));
|
|
5387
5659
|
});
|
|
5388
|
-
|
|
5389
|
-
var
|
|
5390
|
-
let { control: n, checked: r, bubbles: i = !0, ...a } = t, o = e.useRef(null), s =
|
|
5660
|
+
fu.displayName = cu;
|
|
5661
|
+
var pu = (t) => {
|
|
5662
|
+
let { control: n, checked: r, bubbles: i = !0, ...a } = t, o = e.useRef(null), s = su(r), c = Fc(n);
|
|
5391
5663
|
return e.useEffect(() => {
|
|
5392
5664
|
let e = o.current, t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set;
|
|
5393
5665
|
if (s !== r && n) {
|
|
@@ -5415,47 +5687,47 @@ var bl = (t) => {
|
|
|
5415
5687
|
}
|
|
5416
5688
|
});
|
|
5417
5689
|
};
|
|
5418
|
-
function
|
|
5690
|
+
function mu(e) {
|
|
5419
5691
|
return e ? "checked" : "unchecked";
|
|
5420
5692
|
}
|
|
5421
|
-
var
|
|
5422
|
-
let { __scopeSwitch: r, ...i } = e, a =
|
|
5693
|
+
var hu = fu, gu = "SwitchThumb", _u = t.forwardRef((e, n) => {
|
|
5694
|
+
let { __scopeSwitch: r, ...i } = e, a = du(gu, r);
|
|
5423
5695
|
return /* @__PURE__ */ t.createElement(j.span, {
|
|
5424
|
-
"data-state":
|
|
5696
|
+
"data-state": mu(a.checked),
|
|
5425
5697
|
"data-disabled": a.disabled ? "" : void 0,
|
|
5426
5698
|
...i,
|
|
5427
5699
|
ref: n
|
|
5428
5700
|
});
|
|
5429
5701
|
});
|
|
5430
|
-
|
|
5702
|
+
_u.displayName = gu;
|
|
5431
5703
|
//#endregion
|
|
5432
5704
|
//#region src/ui/components/Switch.tsx
|
|
5433
|
-
var
|
|
5705
|
+
var vu = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(hu, {
|
|
5434
5706
|
className: G("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", t),
|
|
5435
5707
|
...n,
|
|
5436
5708
|
ref: r
|
|
5437
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5438
|
-
|
|
5709
|
+
}, /* @__PURE__ */ e.createElement(_u, { className: G("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") })));
|
|
5710
|
+
vu.displayName = hu.displayName;
|
|
5439
5711
|
//#endregion
|
|
5440
5712
|
//#region ../../node_modules/@huin-core/react-label/dist/index.mjs
|
|
5441
|
-
var
|
|
5713
|
+
var yu = "Label", bu = e.forwardRef(({ ...t }, n) => /* @__PURE__ */ e.createElement(j.label, {
|
|
5442
5714
|
...t,
|
|
5443
5715
|
ref: n,
|
|
5444
5716
|
onMouseDown: (e) => {
|
|
5445
5717
|
e.target.closest("button, input, select, textarea") || (t.onMouseDown?.(e), !e.defaultPrevented && e.detail > 1 && e.preventDefault());
|
|
5446
5718
|
}
|
|
5447
5719
|
}));
|
|
5448
|
-
|
|
5449
|
-
var
|
|
5720
|
+
bu.displayName = yu;
|
|
5721
|
+
var xu = bu, Su = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(bu, {
|
|
5450
5722
|
ref: r,
|
|
5451
5723
|
className: G("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", t),
|
|
5452
5724
|
...n
|
|
5453
5725
|
}));
|
|
5454
|
-
|
|
5726
|
+
Su.displayName = xu.displayName;
|
|
5455
5727
|
//#endregion
|
|
5456
5728
|
//#region ../../node_modules/@huin-core/react-separator/dist/index.mjs
|
|
5457
|
-
var
|
|
5458
|
-
let { decorative: r, orientation: i =
|
|
5729
|
+
var Cu = "Separator", wu = "horizontal", Tu = ["horizontal", "vertical"], Eu = e.forwardRef((t, n) => {
|
|
5730
|
+
let { decorative: r, orientation: i = wu, ...a } = t, o = Du(i) ? i : wu, s = r ? { role: "none" } : {
|
|
5459
5731
|
"aria-orientation": o === "vertical" ? o : void 0,
|
|
5460
5732
|
role: "separator"
|
|
5461
5733
|
};
|
|
@@ -5466,291 +5738,27 @@ var Al = "Separator", jl = "horizontal", Ml = ["horizontal", "vertical"], Nl = e
|
|
|
5466
5738
|
ref: n
|
|
5467
5739
|
});
|
|
5468
5740
|
});
|
|
5469
|
-
|
|
5470
|
-
function
|
|
5471
|
-
return
|
|
5741
|
+
Eu.displayName = Cu;
|
|
5742
|
+
function Du(e) {
|
|
5743
|
+
return Tu.includes(e);
|
|
5472
5744
|
}
|
|
5473
|
-
var
|
|
5745
|
+
var Ou = Eu, ku = e.forwardRef(({ className: t, orientation: n = "horizontal", decorative: r = !0, ...i }, a) => /* @__PURE__ */ e.createElement(Ou, {
|
|
5474
5746
|
ref: a,
|
|
5475
5747
|
decorative: r,
|
|
5476
5748
|
orientation: n,
|
|
5477
5749
|
className: G("shrink-0 bg-border", n === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", t),
|
|
5478
5750
|
...i
|
|
5479
5751
|
}));
|
|
5480
|
-
|
|
5752
|
+
ku.displayName = Ou.displayName;
|
|
5481
5753
|
//#endregion
|
|
5482
5754
|
//#region src/ui/components/Input.tsx
|
|
5483
|
-
var
|
|
5755
|
+
var Au = e.forwardRef(({ className: t, type: n, ...r }, i) => /* @__PURE__ */ e.createElement(j.input, {
|
|
5484
5756
|
type: n,
|
|
5485
5757
|
className: G("flex h-10 w-full rounded-md border border-input bg-background px-3! py-2! text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", t),
|
|
5486
5758
|
ref: i,
|
|
5487
5759
|
...r
|
|
5488
5760
|
}));
|
|
5489
|
-
|
|
5490
|
-
//#endregion
|
|
5491
|
-
//#region ../../node_modules/@huin-core/react-collapsible/dist/index.mjs
|
|
5492
|
-
var Rl = "Collapsible", [zl, Bl] = h(Rl), [Vl, Hl] = zl(Rl), Ul = e.forwardRef((t, n) => {
|
|
5493
|
-
let { __scopeCollapsible: r, open: i, defaultOpen: a, disabled: o, onOpenChange: s, ...c } = t, [l = !1, u] = P({
|
|
5494
|
-
prop: i,
|
|
5495
|
-
defaultProp: a,
|
|
5496
|
-
onChange: s
|
|
5497
|
-
});
|
|
5498
|
-
return /* @__PURE__ */ e.createElement(Vl, {
|
|
5499
|
-
scope: r,
|
|
5500
|
-
disabled: o,
|
|
5501
|
-
contentId: A(),
|
|
5502
|
-
open: l,
|
|
5503
|
-
onOpenToggle: e.useCallback(() => u((e) => !e), [u])
|
|
5504
|
-
}, /* @__PURE__ */ e.createElement(j.div, {
|
|
5505
|
-
"data-state": Wl(l),
|
|
5506
|
-
"data-disabled": o ? "" : void 0,
|
|
5507
|
-
...c,
|
|
5508
|
-
ref: n
|
|
5509
|
-
}));
|
|
5510
|
-
});
|
|
5511
|
-
Ul.displayName = Rl;
|
|
5512
|
-
function Wl(e) {
|
|
5513
|
-
return e ? "open" : "closed";
|
|
5514
|
-
}
|
|
5515
|
-
var Gl = Ul, Kl = "CollapsibleTrigger", ql = t.forwardRef((e, n) => {
|
|
5516
|
-
let { __scopeCollapsible: r, ...i } = e, a = Hl(Kl, r);
|
|
5517
|
-
return /* @__PURE__ */ t.createElement(j.button, {
|
|
5518
|
-
type: "button",
|
|
5519
|
-
"aria-controls": a.contentId,
|
|
5520
|
-
"aria-expanded": a.open || !1,
|
|
5521
|
-
"data-state": Wl(a.open),
|
|
5522
|
-
"data-disabled": a.disabled ? "" : void 0,
|
|
5523
|
-
disabled: a.disabled,
|
|
5524
|
-
...i,
|
|
5525
|
-
ref: n,
|
|
5526
|
-
onClick: _(e.onClick, a.onOpenToggle)
|
|
5527
|
-
});
|
|
5528
|
-
});
|
|
5529
|
-
ql.displayName = Kl;
|
|
5530
|
-
var Jl = "CollapsibleContent", Yl = t.forwardRef((e, n) => {
|
|
5531
|
-
let { forceMount: r, ...i } = e, a = Hl(Jl, e.__scopeCollapsible);
|
|
5532
|
-
return /* @__PURE__ */ t.createElement(xe, { present: r || a.open }, ({ present: e }) => /* @__PURE__ */ t.createElement(Xl, {
|
|
5533
|
-
...i,
|
|
5534
|
-
ref: n,
|
|
5535
|
-
present: e
|
|
5536
|
-
}));
|
|
5537
|
-
});
|
|
5538
|
-
Yl.displayName = Jl;
|
|
5539
|
-
var Xl = t.forwardRef((e, n) => {
|
|
5540
|
-
let { __scopeCollapsible: r, present: i, children: a, ...o } = e, s = Hl(Jl, r), [c, l] = t.useState(i), u = t.useRef(null), d = b(n, u), f = t.useRef(0), p = f.current, m = t.useRef(0), h = m.current, g = s.open || c, _ = t.useRef(g), v = t.useRef();
|
|
5541
|
-
return t.useEffect(() => {
|
|
5542
|
-
let e = requestAnimationFrame(() => _.current = !1);
|
|
5543
|
-
return () => cancelAnimationFrame(e);
|
|
5544
|
-
}, []), D(() => {
|
|
5545
|
-
let e = u.current;
|
|
5546
|
-
if (e) {
|
|
5547
|
-
v.current = v.current || {
|
|
5548
|
-
transitionDuration: e.style.transitionDuration,
|
|
5549
|
-
animationName: e.style.animationName
|
|
5550
|
-
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
|
|
5551
|
-
let t = e.getBoundingClientRect();
|
|
5552
|
-
f.current = t.height, m.current = t.width, _.current || (e.style.transitionDuration = v.current.transitionDuration, e.style.animationName = v.current.animationName), l(i);
|
|
5553
|
-
}
|
|
5554
|
-
}, [s.open, i]), /* @__PURE__ */ t.createElement(j.div, {
|
|
5555
|
-
"data-state": Wl(s.open),
|
|
5556
|
-
"data-disabled": s.disabled ? "" : void 0,
|
|
5557
|
-
id: s.contentId,
|
|
5558
|
-
hidden: !g,
|
|
5559
|
-
...o,
|
|
5560
|
-
ref: d,
|
|
5561
|
-
style: {
|
|
5562
|
-
"--huin-core-collapsible-content-height": p ? `${p}px` : void 0,
|
|
5563
|
-
"--huin-core-collapsible-content-width": h ? `${h}px` : void 0,
|
|
5564
|
-
...e.style
|
|
5565
|
-
}
|
|
5566
|
-
}, g && a);
|
|
5567
|
-
}), Zl = "Accordion", Ql = [
|
|
5568
|
-
"Home",
|
|
5569
|
-
"End",
|
|
5570
|
-
"ArrowDown",
|
|
5571
|
-
"ArrowUp",
|
|
5572
|
-
"ArrowLeft",
|
|
5573
|
-
"ArrowRight"
|
|
5574
|
-
], [$l, eu, tu] = ee(Zl), [nu, ru] = h(Zl, [tu, Bl]), iu = Bl(), au = t.forwardRef((e, n) => {
|
|
5575
|
-
let { type: r, ...i } = e, a = i, o = i;
|
|
5576
|
-
return /* @__PURE__ */ t.createElement($l.Provider, { scope: e.__scopeAccordion }, r === "multiple" ? /* @__PURE__ */ t.createElement(du, {
|
|
5577
|
-
...o,
|
|
5578
|
-
ref: n
|
|
5579
|
-
}) : /* @__PURE__ */ t.createElement(uu, {
|
|
5580
|
-
...a,
|
|
5581
|
-
ref: n
|
|
5582
|
-
}));
|
|
5583
|
-
});
|
|
5584
|
-
au.displayName = Zl;
|
|
5585
|
-
var [ou, su] = nu(Zl), [cu, lu] = nu(Zl, { collapsible: !1 }), uu = t.forwardRef((e, n) => {
|
|
5586
|
-
let { value: r, defaultValue: i, onValueChange: a = () => {}, collapsible: o = !1, ...s } = e, [c, l] = P({
|
|
5587
|
-
prop: r,
|
|
5588
|
-
defaultProp: i,
|
|
5589
|
-
onChange: a
|
|
5590
|
-
});
|
|
5591
|
-
return /* @__PURE__ */ t.createElement(ou, {
|
|
5592
|
-
scope: e.__scopeAccordion,
|
|
5593
|
-
value: c ? [c] : [],
|
|
5594
|
-
onItemOpen: l,
|
|
5595
|
-
onItemClose: t.useCallback(() => o && l(""), [o, l])
|
|
5596
|
-
}, /* @__PURE__ */ t.createElement(cu, {
|
|
5597
|
-
scope: e.__scopeAccordion,
|
|
5598
|
-
collapsible: o
|
|
5599
|
-
}, /* @__PURE__ */ t.createElement(mu, {
|
|
5600
|
-
...s,
|
|
5601
|
-
ref: n
|
|
5602
|
-
})));
|
|
5603
|
-
}), du = t.forwardRef((e, n) => {
|
|
5604
|
-
let { value: r, defaultValue: i, onValueChange: a = () => {}, ...o } = e, [s = [], c] = P({
|
|
5605
|
-
prop: r,
|
|
5606
|
-
defaultProp: i,
|
|
5607
|
-
onChange: a
|
|
5608
|
-
}), l = t.useCallback((e) => c((t = []) => [...t, e]), [c]), u = t.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
5609
|
-
return /* @__PURE__ */ t.createElement(ou, {
|
|
5610
|
-
scope: e.__scopeAccordion,
|
|
5611
|
-
value: s,
|
|
5612
|
-
onItemOpen: l,
|
|
5613
|
-
onItemClose: u
|
|
5614
|
-
}, /* @__PURE__ */ t.createElement(cu, {
|
|
5615
|
-
scope: e.__scopeAccordion,
|
|
5616
|
-
collapsible: !0
|
|
5617
|
-
}, /* @__PURE__ */ t.createElement(mu, {
|
|
5618
|
-
...o,
|
|
5619
|
-
ref: n
|
|
5620
|
-
})));
|
|
5621
|
-
}), [fu, pu] = nu(Zl), mu = t.forwardRef((e, n) => {
|
|
5622
|
-
let { __scopeAccordion: r, disabled: i, dir: a, orientation: o = "vertical", ...s } = e, c = b(t.useRef(null), n), l = eu(r), u = ne(a) === "ltr", d = _(e.onKeyDown, (e) => {
|
|
5623
|
-
if (!Ql.includes(e.key)) return;
|
|
5624
|
-
let t = e.target, n = l().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
5625
|
-
if (r === -1) return;
|
|
5626
|
-
e.preventDefault();
|
|
5627
|
-
let a = r, s = i - 1, c = () => {
|
|
5628
|
-
a = r + 1, a > s && (a = 0);
|
|
5629
|
-
}, d = () => {
|
|
5630
|
-
a = r - 1, a < 0 && (a = s);
|
|
5631
|
-
};
|
|
5632
|
-
switch (e.key) {
|
|
5633
|
-
case "Home":
|
|
5634
|
-
a = 0;
|
|
5635
|
-
break;
|
|
5636
|
-
case "End":
|
|
5637
|
-
a = s;
|
|
5638
|
-
break;
|
|
5639
|
-
case "ArrowRight":
|
|
5640
|
-
o === "horizontal" && (u ? c() : d());
|
|
5641
|
-
break;
|
|
5642
|
-
case "ArrowDown":
|
|
5643
|
-
o === "vertical" && c();
|
|
5644
|
-
break;
|
|
5645
|
-
case "ArrowLeft":
|
|
5646
|
-
o === "horizontal" && (u ? d() : c());
|
|
5647
|
-
break;
|
|
5648
|
-
case "ArrowUp":
|
|
5649
|
-
o === "vertical" && d();
|
|
5650
|
-
break;
|
|
5651
|
-
}
|
|
5652
|
-
n[a % i].ref.current?.focus();
|
|
5653
|
-
});
|
|
5654
|
-
return /* @__PURE__ */ t.createElement(fu, {
|
|
5655
|
-
scope: r,
|
|
5656
|
-
disabled: i,
|
|
5657
|
-
direction: a,
|
|
5658
|
-
orientation: o
|
|
5659
|
-
}, /* @__PURE__ */ t.createElement($l.Slot, { scope: r }, /* @__PURE__ */ t.createElement(j.div, {
|
|
5660
|
-
...s,
|
|
5661
|
-
"data-orientation": o,
|
|
5662
|
-
ref: c,
|
|
5663
|
-
onKeyDown: i ? void 0 : d
|
|
5664
|
-
})));
|
|
5665
|
-
});
|
|
5666
|
-
function hu(e) {
|
|
5667
|
-
return e ? "open" : "closed";
|
|
5668
|
-
}
|
|
5669
|
-
var gu = "AccordionItem", [_u, vu] = nu(gu), yu = t.forwardRef((e, n) => {
|
|
5670
|
-
let { __scopeAccordion: r, value: i, ...a } = e, o = pu(gu, r), s = su(gu, r), c = iu(r), l = A(), u = i && s.value.includes(i) || !1, d = o.disabled || e.disabled;
|
|
5671
|
-
return /* @__PURE__ */ t.createElement(_u, {
|
|
5672
|
-
scope: r,
|
|
5673
|
-
open: u,
|
|
5674
|
-
disabled: d,
|
|
5675
|
-
triggerId: l
|
|
5676
|
-
}, /* @__PURE__ */ t.createElement(Gl, {
|
|
5677
|
-
"data-orientation": o.orientation,
|
|
5678
|
-
"data-state": hu(u),
|
|
5679
|
-
...c,
|
|
5680
|
-
...a,
|
|
5681
|
-
ref: n,
|
|
5682
|
-
disabled: d,
|
|
5683
|
-
open: u,
|
|
5684
|
-
onOpenChange: (e) => {
|
|
5685
|
-
e ? s.onItemOpen(i) : s.onItemClose(i);
|
|
5686
|
-
}
|
|
5687
|
-
}));
|
|
5688
|
-
});
|
|
5689
|
-
yu.displayName = gu;
|
|
5690
|
-
var bu = "AccordionHeader", xu = t.forwardRef((e, n) => {
|
|
5691
|
-
let { __scopeAccordion: r, ...i } = e, a = pu(Zl, r), o = vu(bu, r);
|
|
5692
|
-
return /* @__PURE__ */ t.createElement(j.h3, {
|
|
5693
|
-
"data-orientation": a.orientation,
|
|
5694
|
-
"data-state": hu(o.open),
|
|
5695
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
5696
|
-
...i,
|
|
5697
|
-
ref: n
|
|
5698
|
-
});
|
|
5699
|
-
}), Su = "AccordionTrigger", Cu = t.forwardRef((e, n) => {
|
|
5700
|
-
let { __scopeAccordion: r, ...i } = e, a = pu(Zl, r), o = vu(Su, r), s = lu(Su, r), c = iu(r);
|
|
5701
|
-
return /* @__PURE__ */ t.createElement($l.ItemSlot, { scope: r }, /* @__PURE__ */ t.createElement(ql, {
|
|
5702
|
-
"aria-disabled": o.open && !s.collapsible || void 0,
|
|
5703
|
-
"data-orientation": a.orientation,
|
|
5704
|
-
id: o.triggerId,
|
|
5705
|
-
...c,
|
|
5706
|
-
...i,
|
|
5707
|
-
ref: n
|
|
5708
|
-
}));
|
|
5709
|
-
});
|
|
5710
|
-
Cu.displayName = Su;
|
|
5711
|
-
var wu = "AccordionContent", Tu = t.forwardRef((e, n) => {
|
|
5712
|
-
let { __scopeAccordion: r, ...i } = e, a = pu(Zl, r), o = vu(wu, r), s = iu(r);
|
|
5713
|
-
return /* @__PURE__ */ t.createElement(Yl, {
|
|
5714
|
-
role: "region",
|
|
5715
|
-
"aria-labelledby": o.triggerId,
|
|
5716
|
-
"data-orientation": a.orientation,
|
|
5717
|
-
...s,
|
|
5718
|
-
...i,
|
|
5719
|
-
ref: n,
|
|
5720
|
-
style: {
|
|
5721
|
-
"--huin-core-accordion-content-height": "var(--huin-core-collapsible-content-height)",
|
|
5722
|
-
"--huin-core-accordion-content-width": "var(--huin-core-collapsible-content-width)",
|
|
5723
|
-
...e.style
|
|
5724
|
-
}
|
|
5725
|
-
});
|
|
5726
|
-
});
|
|
5727
|
-
Tu.displayName = wu;
|
|
5728
|
-
//#endregion
|
|
5729
|
-
//#region src/ui/components/Accordion.tsx
|
|
5730
|
-
var Eu = au, Du = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(yu, {
|
|
5731
|
-
ref: r,
|
|
5732
|
-
className: G("border-b", t),
|
|
5733
|
-
...n
|
|
5734
|
-
}));
|
|
5735
|
-
Du.displayName = yu.displayName;
|
|
5736
|
-
var Ou = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(xu, {
|
|
5737
|
-
ref: r,
|
|
5738
|
-
className: G("d-flex", t),
|
|
5739
|
-
...n
|
|
5740
|
-
}));
|
|
5741
|
-
Ou.displayName = xu.displayName;
|
|
5742
|
-
var ku = e.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ e.createElement(Cu, {
|
|
5743
|
-
ref: i,
|
|
5744
|
-
className: G("flex flex-1 w-full items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", t),
|
|
5745
|
-
...r
|
|
5746
|
-
}, n, /* @__PURE__ */ e.createElement(Da, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })));
|
|
5747
|
-
ku.displayName = Cu.displayName;
|
|
5748
|
-
var Au = e.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ e.createElement(Tu, {
|
|
5749
|
-
ref: i,
|
|
5750
|
-
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
5751
|
-
...r
|
|
5752
|
-
}, /* @__PURE__ */ e.createElement("div", { className: G("pb-4 pt-0", t) }, n)));
|
|
5753
|
-
Au.displayName = Tu.displayName;
|
|
5761
|
+
Au.displayName = "Input";
|
|
5754
5762
|
//#endregion
|
|
5755
5763
|
//#region src/saga/createSentinelSagaMonitor.ts
|
|
5756
5764
|
var ju = 100, Mu = (e) => {
|
|
@@ -5847,27 +5855,41 @@ var ju = 100, Mu = (e) => {
|
|
|
5847
5855
|
e.clear(), n();
|
|
5848
5856
|
}
|
|
5849
5857
|
};
|
|
5850
|
-
}, Fu = (e
|
|
5858
|
+
}, Fu = (e) => {
|
|
5859
|
+
if (e === null) return "null";
|
|
5860
|
+
if (e === void 0) return "undefined";
|
|
5861
|
+
if (typeof e == "boolean" || typeof e == "number") return String(e);
|
|
5862
|
+
if (typeof e == "string") return `"${e.length > 20 ? e.slice(0, 20) + "…" : e}"`;
|
|
5863
|
+
if (Array.isArray(e)) return `[${e.length}]`;
|
|
5864
|
+
if (typeof e == "object") {
|
|
5865
|
+
let t = Object.keys(e).length;
|
|
5866
|
+
return `{ ${t} key${t === 1 ? "" : "s"} }`;
|
|
5867
|
+
}
|
|
5868
|
+
return String(e);
|
|
5869
|
+
}, Iu = (e, t) => {
|
|
5851
5870
|
if (!t) return e;
|
|
5852
5871
|
let n = t.toLowerCase();
|
|
5853
5872
|
if (typeof e != "object" || !e) return String(e).toLowerCase().includes(n) ? e : void 0;
|
|
5854
5873
|
if (Array.isArray(e)) {
|
|
5855
|
-
let n = e.map((e) =>
|
|
5874
|
+
let n = e.map((e) => Iu(e, t)).filter((e) => e !== void 0);
|
|
5856
5875
|
return n.length > 0 ? n : void 0;
|
|
5857
5876
|
}
|
|
5858
5877
|
let r = {};
|
|
5859
5878
|
for (let [i, a] of Object.entries(e)) if (i.toLowerCase().includes(n)) r[i] = a;
|
|
5860
5879
|
else {
|
|
5861
|
-
let e =
|
|
5880
|
+
let e = Iu(a, t);
|
|
5862
5881
|
e !== void 0 && (r[i] = e);
|
|
5863
5882
|
}
|
|
5864
5883
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
5865
|
-
},
|
|
5866
|
-
let [n, r] = t.useState(""), [i, a] = t.useState(!1), o =
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5884
|
+
}, Lu = ({ state: e }) => {
|
|
5885
|
+
let [n, r] = t.useState(""), [i, a] = t.useState(!1), o = Iu(e, n), s = typeof e == "object" && !!e && !Array.isArray(e), c = s ? Object.entries(e) : [], l = ({ value: e, collapseDepth: r }) => {
|
|
5886
|
+
let i = Iu(e, n);
|
|
5887
|
+
return i === void 0 ? /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground italic" }, "No results for \"", n, "\"") : /* @__PURE__ */ t.createElement(pa, {
|
|
5888
|
+
value: i,
|
|
5889
|
+
collapseFromDepth: r
|
|
5890
|
+
});
|
|
5891
|
+
};
|
|
5892
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", { className: "py-3! space-y-2!" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center gap-1.5" }, /* @__PURE__ */ t.createElement(Au, {
|
|
5871
5893
|
placeholder: "Search state…",
|
|
5872
5894
|
value: n,
|
|
5873
5895
|
onChange: (e) => r(e.target.value),
|
|
@@ -5876,20 +5898,44 @@ var ju = 100, Mu = (e) => {
|
|
|
5876
5898
|
onClick: () => a(!0),
|
|
5877
5899
|
title: "Expand",
|
|
5878
5900
|
className: "shrink-0 text-muted-foreground hover:text-foreground transition-colors"
|
|
5879
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5901
|
+
}, /* @__PURE__ */ t.createElement(mo, { size: 14 }))), /* @__PURE__ */ t.createElement("div", { className: "max-h-60 overflow-y-auto" }, n || !s || c.length === 0 ? /* @__PURE__ */ t.createElement("div", { className: "bg-primary text-primary-foreground p-3! rounded-md font-mono text-xs leading-5 overflow-x-hidden" }, o === void 0 ? /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground italic" }, "No results for \"", n, "\"") : /* @__PURE__ */ t.createElement(pa, {
|
|
5902
|
+
value: o,
|
|
5903
|
+
collapseFromDepth: 1
|
|
5904
|
+
})) : /* @__PURE__ */ t.createElement(go, {
|
|
5905
|
+
type: "multiple",
|
|
5906
|
+
className: "w-full font-mono text-xs"
|
|
5907
|
+
}, c.map(([e, n]) => /* @__PURE__ */ t.createElement(_o, {
|
|
5908
|
+
key: e,
|
|
5909
|
+
value: e
|
|
5910
|
+
}, /* @__PURE__ */ t.createElement(yo, { className: "py-2 px-2 hover:no-underline hover:bg-muted/50 rounded font-mono text-xs font-normal" }, /* @__PURE__ */ t.createElement("span", { className: "flex-1 text-left truncate text-foreground" }, e), /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground text-xs mr-2 shrink-0 font-normal" }, Fu(n))), /* @__PURE__ */ t.createElement(bo, { className: "pb-2! pt-0 px-1" }, /* @__PURE__ */ t.createElement("div", { className: "bg-primary text-primary-foreground p-2! rounded-md font-mono text-xs leading-5 overflow-x-hidden" }, /* @__PURE__ */ t.createElement(l, {
|
|
5911
|
+
value: n,
|
|
5912
|
+
collapseDepth: 1
|
|
5913
|
+
})))))))), /* @__PURE__ */ t.createElement(Qi, {
|
|
5880
5914
|
open: i,
|
|
5881
5915
|
onOpenChange: a
|
|
5882
|
-
}, /* @__PURE__ */ t.createElement(ta, { className: "flex flex-col overflow-hidden" }, /* @__PURE__ */ t.createElement(na, null, /* @__PURE__ */ t.createElement(ia, null, "Redux State")), /* @__PURE__ */ t.createElement(
|
|
5916
|
+
}, /* @__PURE__ */ t.createElement(ta, { className: "flex flex-col overflow-hidden" }, /* @__PURE__ */ t.createElement(na, null, /* @__PURE__ */ t.createElement(ia, null, "Redux State")), /* @__PURE__ */ t.createElement(Au, {
|
|
5883
5917
|
placeholder: "Search state…",
|
|
5884
5918
|
value: n,
|
|
5885
5919
|
onChange: (e) => r(e.target.value),
|
|
5886
5920
|
className: "h-8 text-sm shrink-0"
|
|
5887
|
-
}), /* @__PURE__ */ t.createElement("div", { className: "overflow-y-auto min-h-0 flex-1" }, /* @__PURE__ */ t.createElement("div", { className: "bg-primary text-primary-foreground p-4! rounded-md font-mono text-xs leading-5 overflow-x-hidden" }, /* @__PURE__ */ t.createElement(
|
|
5888
|
-
|
|
5921
|
+
}), /* @__PURE__ */ t.createElement("div", { className: "overflow-y-auto min-h-0 flex-1" }, n || !s || c.length === 0 ? /* @__PURE__ */ t.createElement("div", { className: "bg-primary text-primary-foreground p-4! rounded-md font-mono text-xs leading-5 overflow-x-hidden" }, o === void 0 ? /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground italic" }, "No results for \"", n, "\"") : /* @__PURE__ */ t.createElement(pa, {
|
|
5922
|
+
value: o,
|
|
5923
|
+
collapseFromDepth: 2
|
|
5924
|
+
})) : /* @__PURE__ */ t.createElement(go, {
|
|
5925
|
+
type: "multiple",
|
|
5926
|
+
className: "w-full font-mono text-xs"
|
|
5927
|
+
}, c.map(([e, n]) => /* @__PURE__ */ t.createElement(_o, {
|
|
5928
|
+
key: e,
|
|
5929
|
+
value: e
|
|
5930
|
+
}, /* @__PURE__ */ t.createElement(yo, { className: "py-2 px-2 hover:no-underline hover:bg-muted/50 rounded font-mono text-xs font-normal" }, /* @__PURE__ */ t.createElement("span", { className: "flex-1 text-left truncate text-foreground" }, e), /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground text-xs mr-2 shrink-0 font-normal" }, Fu(n))), /* @__PURE__ */ t.createElement(bo, { className: "pb-2! pt-0 px-1" }, /* @__PURE__ */ t.createElement("div", { className: "bg-primary text-primary-foreground p-2! rounded-md font-mono text-xs leading-5 overflow-x-hidden" }, /* @__PURE__ */ t.createElement(l, {
|
|
5931
|
+
value: n,
|
|
5932
|
+
collapseDepth: 2
|
|
5933
|
+
}))))))))));
|
|
5934
|
+
}, Ru = ({ store: e, serverState: n }) => {
|
|
5889
5935
|
let [r, i] = t.useState(e?.getState());
|
|
5890
5936
|
return t.useEffect(() => {
|
|
5891
5937
|
if (e) return i(e.getState()), e.subscribe(() => i(e.getState()));
|
|
5892
|
-
}, [e]), n == null ? e ? /* @__PURE__ */ t.createElement(
|
|
5938
|
+
}, [e]), n == null ? e ? /* @__PURE__ */ t.createElement(Lu, { state: r }) : /* @__PURE__ */ t.createElement("div", { className: "py-6 text-center text-sm text-muted-foreground" }, "No store connected.", /* @__PURE__ */ t.createElement("span", { className: "block mt-1 text-xs font-mono" }, "<SentinelProvider store={store}>")) : /* @__PURE__ */ t.createElement(fn, { defaultValue: "server" }, /* @__PURE__ */ t.createElement(pn, { className: "grid w-full grid-cols-2 mx-0 rounded-none border-b bg-transparent h-8 gap-1 mt-2" }, /* @__PURE__ */ t.createElement(K, {
|
|
5893
5939
|
value: "client",
|
|
5894
5940
|
className: "text-xs"
|
|
5895
5941
|
}, "Client"), /* @__PURE__ */ t.createElement(K, {
|
|
@@ -5898,27 +5944,27 @@ var ju = 100, Mu = (e) => {
|
|
|
5898
5944
|
}, "Server")), /* @__PURE__ */ t.createElement(q, {
|
|
5899
5945
|
value: "client",
|
|
5900
5946
|
className: "mt-0"
|
|
5901
|
-
}, e ? /* @__PURE__ */ t.createElement(
|
|
5947
|
+
}, e ? /* @__PURE__ */ t.createElement(Lu, { state: r }) : /* @__PURE__ */ t.createElement("div", { className: "py-4 text-center text-xs text-muted-foreground" }, "No client store connected.")), /* @__PURE__ */ t.createElement(q, {
|
|
5902
5948
|
value: "server",
|
|
5903
5949
|
className: "mt-0"
|
|
5904
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5905
|
-
},
|
|
5950
|
+
}, /* @__PURE__ */ t.createElement(Lu, { state: n })));
|
|
5951
|
+
}, zu = {
|
|
5906
5952
|
pending: "⏳",
|
|
5907
5953
|
resolved: "✓",
|
|
5908
5954
|
rejected: "✗",
|
|
5909
5955
|
cancelled: "⊘"
|
|
5910
|
-
},
|
|
5956
|
+
}, Bu = {
|
|
5911
5957
|
pending: "text-amber-400",
|
|
5912
5958
|
resolved: "text-emerald-400",
|
|
5913
5959
|
rejected: "text-red-400",
|
|
5914
5960
|
cancelled: "text-muted-foreground"
|
|
5915
|
-
},
|
|
5961
|
+
}, Vu = ({ effects: e }) => e.length === 0 ? /* @__PURE__ */ t.createElement("div", { className: "py-4 text-center text-xs text-muted-foreground" }, "No calls captured yet.") : /* @__PURE__ */ t.createElement(go, {
|
|
5916
5962
|
type: "multiple",
|
|
5917
5963
|
className: "w-full font-mono text-xs"
|
|
5918
|
-
}, e.map((e) => /* @__PURE__ */ t.createElement(
|
|
5964
|
+
}, e.map((e) => /* @__PURE__ */ t.createElement(_o, {
|
|
5919
5965
|
key: e.id,
|
|
5920
5966
|
value: String(e.id)
|
|
5921
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5967
|
+
}, /* @__PURE__ */ t.createElement(yo, { className: "py-2 px-2 hover:no-underline hover:bg-muted/50 rounded font-mono text-xs font-normal" }, /* @__PURE__ */ t.createElement("span", { className: G("shrink-0 w-4 text-center", Bu[e.status]) }, zu[e.status]), /* @__PURE__ */ t.createElement("span", { className: "flex-1 truncate text-left text-foreground mx-2" }, e.fnName), e.duration !== void 0 && /* @__PURE__ */ t.createElement("span", { className: "shrink-0 text-muted-foreground mr-1" }, e.duration, "ms")), /* @__PURE__ */ t.createElement(bo, { className: "pb-2! pt-0 px-2" }, /* @__PURE__ */ t.createElement("div", { className: "space-y-1.5" }, (e.args?.length ?? 0) > 0 && /* @__PURE__ */ t.createElement("div", { className: "bg-muted p-2! rounded overflow-x-hidden" }, /* @__PURE__ */ t.createElement("div", { className: "text-muted-foreground mb-1!" }, "args"), /* @__PURE__ */ t.createElement(pa, {
|
|
5922
5968
|
value: e.args,
|
|
5923
5969
|
collapseFromDepth: 1
|
|
5924
5970
|
})), e.result !== void 0 && /* @__PURE__ */ t.createElement("div", { className: "bg-primary text-primary-foreground p-2! rounded overflow-x-hidden" }, /* @__PURE__ */ t.createElement("div", { className: "text-muted-foreground mb-1" }, "result"), /* @__PURE__ */ t.createElement(pa, {
|
|
@@ -5927,9 +5973,9 @@ var ju = 100, Mu = (e) => {
|
|
|
5927
5973
|
})), e.error !== void 0 && /* @__PURE__ */ t.createElement("div", { className: "bg-destructive/10 text-destructive p-2 rounded overflow-x-hidden" }, /* @__PURE__ */ t.createElement("div", { className: "mb-1! font-medium" }, "error"), /* @__PURE__ */ t.createElement(pa, {
|
|
5928
5974
|
value: e.error instanceof Error ? e.error.message : e.error,
|
|
5929
5975
|
collapseFromDepth: 1
|
|
5930
|
-
}))))))),
|
|
5976
|
+
}))))))), Hu = ({ effects: e, onClear: n }) => {
|
|
5931
5977
|
let r = e ?? [], [i, a] = t.useState(""), [o, s] = t.useState(!1), c = i ? r.filter((e) => e.fnName.toLowerCase().includes(i.toLowerCase())) : r;
|
|
5932
|
-
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", { className: "py-3! space-y-2!" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center gap-1.5" }, /* @__PURE__ */ t.createElement(
|
|
5978
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", { className: "py-3! space-y-2!" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center gap-1.5" }, /* @__PURE__ */ t.createElement(Au, {
|
|
5933
5979
|
placeholder: "Search calls…",
|
|
5934
5980
|
value: i,
|
|
5935
5981
|
onChange: (e) => a(e.target.value),
|
|
@@ -5941,20 +5987,20 @@ var ju = 100, Mu = (e) => {
|
|
|
5941
5987
|
onClick: () => s(!0),
|
|
5942
5988
|
title: "Expand",
|
|
5943
5989
|
className: "shrink-0 text-muted-foreground hover:text-foreground transition-colors"
|
|
5944
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5990
|
+
}, /* @__PURE__ */ t.createElement(mo, { size: 14 }))), /* @__PURE__ */ t.createElement("div", { className: "max-h-60 overflow-y-auto" }, /* @__PURE__ */ t.createElement(Vu, { effects: c }))), /* @__PURE__ */ t.createElement(Qi, {
|
|
5945
5991
|
open: o,
|
|
5946
5992
|
onOpenChange: s
|
|
5947
|
-
}, /* @__PURE__ */ t.createElement(ta, { className: "flex flex-col overflow-hidden" }, /* @__PURE__ */ t.createElement(na, null, /* @__PURE__ */ t.createElement(ia, null, "Saga Calls")), /* @__PURE__ */ t.createElement(
|
|
5993
|
+
}, /* @__PURE__ */ t.createElement(ta, { className: "flex flex-col overflow-hidden" }, /* @__PURE__ */ t.createElement(na, null, /* @__PURE__ */ t.createElement(ia, null, "Saga Calls")), /* @__PURE__ */ t.createElement(Au, {
|
|
5948
5994
|
placeholder: "Search calls…",
|
|
5949
5995
|
value: i,
|
|
5950
5996
|
onChange: (e) => a(e.target.value),
|
|
5951
5997
|
className: "h-8 text-sm shrink-0"
|
|
5952
|
-
}), /* @__PURE__ */ t.createElement("div", { className: "overflow-y-auto min-h-0 flex-1" }, /* @__PURE__ */ t.createElement(
|
|
5953
|
-
},
|
|
5998
|
+
}), /* @__PURE__ */ t.createElement("div", { className: "overflow-y-auto min-h-0 flex-1" }, /* @__PURE__ */ t.createElement(Vu, { effects: c })))));
|
|
5999
|
+
}, Uu = ({ monitor: e, serverEffects: n }) => {
|
|
5954
6000
|
let [r, i] = t.useState(() => e?._getEffects() ?? []);
|
|
5955
6001
|
return t.useEffect(() => {
|
|
5956
6002
|
if (e) return i(e._getEffects()), e._subscribe(() => i(e._getEffects()));
|
|
5957
|
-
}, [e]), n == null ? e ? /* @__PURE__ */ t.createElement(
|
|
6003
|
+
}, [e]), n == null ? e ? /* @__PURE__ */ t.createElement(Hu, {
|
|
5958
6004
|
effects: r,
|
|
5959
6005
|
onClear: () => e._clear()
|
|
5960
6006
|
}) : /* @__PURE__ */ t.createElement("div", { className: "py-6 text-center text-sm text-muted-foreground" }, "No saga monitor connected.", /* @__PURE__ */ t.createElement("span", { className: "block mt-1 text-xs font-mono" }, "sagaMonitor={sentinelMonitor}")) : /* @__PURE__ */ t.createElement(fn, { defaultValue: "server" }, /* @__PURE__ */ t.createElement(pn, { className: "grid w-full grid-cols-2 mx-0 rounded-none border-b bg-transparent h-8 gap-1 mt-2" }, /* @__PURE__ */ t.createElement(K, {
|
|
@@ -5966,23 +6012,23 @@ var ju = 100, Mu = (e) => {
|
|
|
5966
6012
|
}, "Server")), /* @__PURE__ */ t.createElement(q, {
|
|
5967
6013
|
value: "client",
|
|
5968
6014
|
className: "mt-0"
|
|
5969
|
-
}, e ? /* @__PURE__ */ t.createElement(
|
|
6015
|
+
}, e ? /* @__PURE__ */ t.createElement(Hu, {
|
|
5970
6016
|
effects: r,
|
|
5971
6017
|
onClear: () => e._clear()
|
|
5972
6018
|
}) : /* @__PURE__ */ t.createElement("div", { className: "py-4 text-center text-xs text-muted-foreground" }, "No client monitor connected.")), /* @__PURE__ */ t.createElement(q, {
|
|
5973
6019
|
value: "server",
|
|
5974
6020
|
className: "mt-0"
|
|
5975
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5976
|
-
},
|
|
5977
|
-
let { isActive: i, setIsActive: a, showOutlines: o, setShowOutlines: s, highlightName: c, setHighlightName: l, reduxStore: u } =
|
|
5978
|
-
return /* @__PURE__ */ t.createElement(hn, null, /* @__PURE__ */ t.createElement("div", { className: "sentinel-root" }, /* @__PURE__ */ t.createElement("div", { className: "fixed bottom-4 right-4 z-[9999]" }, /* @__PURE__ */ t.createElement(
|
|
6021
|
+
}, /* @__PURE__ */ t.createElement(Hu, { effects: n })));
|
|
6022
|
+
}, Wu = ({ sagaMonitor: e, serverState: n, serverSagaEffects: r }) => {
|
|
6023
|
+
let { isActive: i, setIsActive: a, showOutlines: o, setShowOutlines: s, highlightName: c, setHighlightName: l, reduxStore: u } = Zu();
|
|
6024
|
+
return /* @__PURE__ */ t.createElement(hn, null, /* @__PURE__ */ t.createElement("div", { className: "sentinel-root" }, /* @__PURE__ */ t.createElement("div", { className: "fixed bottom-4 right-4 z-[9999]" }, /* @__PURE__ */ t.createElement(iu, null, /* @__PURE__ */ t.createElement(au, { className: G("flex h-10 w-10 items-center justify-center rounded-full border shadow-lg transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer", i ? "bg-primary text-primary-foreground border-primary/30" : "bg-background text-muted-foreground border-border hover:text-foreground") }, /* @__PURE__ */ t.createElement(ho, { size: 18 })), /* @__PURE__ */ t.createElement(ou, {
|
|
5979
6025
|
side: "top",
|
|
5980
6026
|
align: "end",
|
|
5981
6027
|
className: "w-72"
|
|
5982
|
-
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between py-3!" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ t.createElement(
|
|
6028
|
+
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between py-3!" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ t.createElement(ho, {
|
|
5983
6029
|
size: 14,
|
|
5984
6030
|
className: "text-muted-foreground"
|
|
5985
|
-
}), /* @__PURE__ */ t.createElement("span", { className: "text-sm font-semibold" }, "Sentinel")), /* @__PURE__ */ t.createElement("kbd", { className: "text-sm text-muted-foreground bg-muted px-1.5! py-0.5! rounded font-mono" }, "⌃ ⇧ S")), /* @__PURE__ */ t.createElement(
|
|
6031
|
+
}), /* @__PURE__ */ t.createElement("span", { className: "text-sm font-semibold" }, "Sentinel")), /* @__PURE__ */ t.createElement("kbd", { className: "text-sm text-muted-foreground bg-muted px-1.5! py-0.5! rounded font-mono" }, "⌃ ⇧ S")), /* @__PURE__ */ t.createElement(ku, null), /* @__PURE__ */ t.createElement(fn, { defaultValue: "controls" }, /* @__PURE__ */ t.createElement(pn, { className: "grid w-full grid-cols-3 mx-0 rounded-none border-b bg-transparent h-9 gap-2" }, /* @__PURE__ */ t.createElement(K, {
|
|
5986
6032
|
value: "controls",
|
|
5987
6033
|
className: "text-xs"
|
|
5988
6034
|
}, "Controls"), /* @__PURE__ */ t.createElement(K, {
|
|
@@ -5994,25 +6040,25 @@ var ju = 100, Mu = (e) => {
|
|
|
5994
6040
|
}, "Saga")), /* @__PURE__ */ t.createElement(q, {
|
|
5995
6041
|
value: "controls",
|
|
5996
6042
|
className: "mt-0"
|
|
5997
|
-
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between py-3!" }, /* @__PURE__ */ t.createElement(
|
|
6043
|
+
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between py-3!" }, /* @__PURE__ */ t.createElement(Su, {
|
|
5998
6044
|
htmlFor: "sentinel-active-switch",
|
|
5999
6045
|
className: "cursor-pointer"
|
|
6000
|
-
}, "Active"), /* @__PURE__ */ t.createElement(
|
|
6046
|
+
}, "Active"), /* @__PURE__ */ t.createElement(vu, {
|
|
6001
6047
|
id: "sentinel-active-switch",
|
|
6002
6048
|
checked: i,
|
|
6003
6049
|
onCheckedChange: a
|
|
6004
|
-
})), /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between pb-3!" }, /* @__PURE__ */ t.createElement(
|
|
6050
|
+
})), /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between pb-3!" }, /* @__PURE__ */ t.createElement(Su, {
|
|
6005
6051
|
htmlFor: "sentinel-outline-switch",
|
|
6006
6052
|
className: G("cursor-pointer", !i && "opacity-40")
|
|
6007
|
-
}, "Outline All"), /* @__PURE__ */ t.createElement(
|
|
6053
|
+
}, "Outline All"), /* @__PURE__ */ t.createElement(vu, {
|
|
6008
6054
|
id: "sentinel-outline-switch",
|
|
6009
6055
|
checked: o,
|
|
6010
6056
|
onCheckedChange: s,
|
|
6011
6057
|
disabled: !i
|
|
6012
|
-
})), /* @__PURE__ */ t.createElement(
|
|
6058
|
+
})), /* @__PURE__ */ t.createElement(ku, null), /* @__PURE__ */ t.createElement("div", { className: "py-3! space-y-1.5!" }, /* @__PURE__ */ t.createElement(Su, {
|
|
6013
6059
|
htmlFor: "sentinel-filter-input",
|
|
6014
6060
|
className: G("text-xs text-muted-foreground", !i && "opacity-40")
|
|
6015
|
-
}, "Filter component"), /* @__PURE__ */ t.createElement(
|
|
6061
|
+
}, "Filter component"), /* @__PURE__ */ t.createElement(Au, {
|
|
6016
6062
|
id: "sentinel-filter-input",
|
|
6017
6063
|
placeholder: "e.g. ProductCard",
|
|
6018
6064
|
value: c,
|
|
@@ -6022,19 +6068,19 @@ var ju = 100, Mu = (e) => {
|
|
|
6022
6068
|
}))), /* @__PURE__ */ t.createElement(q, {
|
|
6023
6069
|
value: "redux",
|
|
6024
6070
|
className: "mt-0"
|
|
6025
|
-
}, /* @__PURE__ */ t.createElement(
|
|
6071
|
+
}, /* @__PURE__ */ t.createElement(Ru, {
|
|
6026
6072
|
store: u,
|
|
6027
6073
|
serverState: n
|
|
6028
6074
|
})), /* @__PURE__ */ t.createElement(q, {
|
|
6029
6075
|
value: "saga",
|
|
6030
6076
|
className: "mt-0"
|
|
6031
|
-
}, /* @__PURE__ */ t.createElement(
|
|
6077
|
+
}, /* @__PURE__ */ t.createElement(Uu, {
|
|
6032
6078
|
monitor: e,
|
|
6033
6079
|
serverEffects: r
|
|
6034
6080
|
}))))))));
|
|
6035
|
-
},
|
|
6081
|
+
}, Gu = ({ children: e, active: n = !0 }) => {
|
|
6036
6082
|
if (!n) return /* @__PURE__ */ t.createElement(t.Fragment, null, e);
|
|
6037
|
-
let { activeRect: r } =
|
|
6083
|
+
let { activeRect: r } = Zu(), i = r ? r.left + r.width / 2 : 0, a = r ? r.top + r.height / 2 : 0;
|
|
6038
6084
|
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(hn, null, /* @__PURE__ */ t.createElement("div", { className: "sentinel-root" }, r && /* @__PURE__ */ t.createElement("div", {
|
|
6039
6085
|
className: "pointer-events-none fixed inset-0 z-[999] transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
6040
6086
|
style: {
|
|
@@ -6051,7 +6097,7 @@ var ju = 100, Mu = (e) => {
|
|
|
6051
6097
|
WebkitBackdropFilter: "blur(8px) saturate(140%) contrast(105%)"
|
|
6052
6098
|
}
|
|
6053
6099
|
}), e)));
|
|
6054
|
-
},
|
|
6100
|
+
}, Ku = n(void 0), qu = n(void 0), Ju = ({ children: e, store: n, sagaMonitor: r, serverState: i, serverSagaEffects: o }) => {
|
|
6055
6101
|
let [c, u] = d(null), [f, p] = d(null), [m, h] = d(null), [g, _] = d({}), [v, y] = d(!1), [b, x] = d(!1), [S, C] = d("");
|
|
6056
6102
|
s(() => {
|
|
6057
6103
|
v || (u(null), p(null), h(null), _({}));
|
|
@@ -6108,12 +6154,12 @@ var ju = 100, Mu = (e) => {
|
|
|
6108
6154
|
g,
|
|
6109
6155
|
ee
|
|
6110
6156
|
]);
|
|
6111
|
-
return /* @__PURE__ */ t.createElement(
|
|
6157
|
+
return /* @__PURE__ */ t.createElement(Ku.Provider, { value: D }, /* @__PURE__ */ t.createElement(qu.Provider, { value: O }, e, /* @__PURE__ */ t.createElement(Gu, { active: v }, /* @__PURE__ */ t.createElement(Co, null)), /* @__PURE__ */ t.createElement(Wu, {
|
|
6112
6158
|
sagaMonitor: r,
|
|
6113
6159
|
serverState: i,
|
|
6114
6160
|
serverSagaEffects: o
|
|
6115
6161
|
})));
|
|
6116
|
-
},
|
|
6162
|
+
}, Yu = {
|
|
6117
6163
|
activeId: null,
|
|
6118
6164
|
activeRect: null,
|
|
6119
6165
|
isActive: !1,
|
|
@@ -6126,12 +6172,12 @@ var ju = 100, Mu = (e) => {
|
|
|
6126
6172
|
registerHover: () => {},
|
|
6127
6173
|
unregisterHover: () => {},
|
|
6128
6174
|
openDialog: () => {}
|
|
6129
|
-
},
|
|
6175
|
+
}, Xu = {
|
|
6130
6176
|
openDialogId: null,
|
|
6131
6177
|
dialogMeta: {},
|
|
6132
6178
|
closeDialog: () => {}
|
|
6133
|
-
},
|
|
6134
|
-
let e =
|
|
6179
|
+
}, Zu = () => o(Ku) ?? Yu, Qu = () => o(qu) ?? Xu, $u = () => {
|
|
6180
|
+
let e = Zu(), t = Qu();
|
|
6135
6181
|
return {
|
|
6136
6182
|
...e,
|
|
6137
6183
|
...t
|
|
@@ -6139,7 +6185,7 @@ var ju = 100, Mu = (e) => {
|
|
|
6139
6185
|
};
|
|
6140
6186
|
//#endregion
|
|
6141
6187
|
//#region src/utils/safeSerialize.ts
|
|
6142
|
-
function
|
|
6188
|
+
function ed(e, t = 0, n = /* @__PURE__ */ new WeakSet()) {
|
|
6143
6189
|
if (t > 6) return "[Max Depth]";
|
|
6144
6190
|
if (e === null) return null;
|
|
6145
6191
|
if (typeof e == "function") return "[Function]";
|
|
@@ -6147,15 +6193,15 @@ function $u(e, t = 0, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
6147
6193
|
if (n.has(e)) return "[Circular]";
|
|
6148
6194
|
if (n.add(e), "$$typeof" in e) return "[React Element]";
|
|
6149
6195
|
if ("_context" in e || "Provider" in e && "Consumer" in e) return "[React Context]";
|
|
6150
|
-
if (Array.isArray(e)) return e.map((e) =>
|
|
6196
|
+
if (Array.isArray(e)) return e.map((e) => ed(e, t + 1, n));
|
|
6151
6197
|
let r = {};
|
|
6152
|
-
for (let [i, a] of Object.entries(e)) i.startsWith("__react") || i.startsWith("_react") || i === "_owner" || (r[i] =
|
|
6198
|
+
for (let [i, a] of Object.entries(e)) i.startsWith("__react") || i.startsWith("_react") || i === "_owner" || (r[i] = ed(a, t + 1, n));
|
|
6153
6199
|
return r;
|
|
6154
6200
|
}
|
|
6155
6201
|
//#endregion
|
|
6156
6202
|
//#region src/react/Sentinel.tsx
|
|
6157
|
-
var
|
|
6158
|
-
let s = A(), { activeId: c, isActive: l, showOutlines: d, highlightName: f, registerHover: p, unregisterHover: m, openDialog: h } =
|
|
6203
|
+
var td = ({ children: e, componentName: n, sourceFile: r, renderCount: i, dialogMd: a, componentProps: o }) => {
|
|
6204
|
+
let s = A(), { activeId: c, isActive: l, showOutlines: d, highlightName: f, registerHover: p, unregisterHover: m, openDialog: h } = Zu(), g = u([]), _ = u(""), v = o ? ed(o) : void 0, y = v ? JSON.stringify(v) : "";
|
|
6159
6205
|
v && y !== _.current && (_.current = y, g.current = [v, ...g.current].slice(0, 6));
|
|
6160
6206
|
let b = l && c === s, x = l && !!f && !!n && n.toLowerCase().includes(f.toLowerCase());
|
|
6161
6207
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -6180,4 +6226,4 @@ var ed = ({ children: e, componentName: n, sourceFile: r, renderCount: i, dialog
|
|
|
6180
6226
|
}, e));
|
|
6181
6227
|
};
|
|
6182
6228
|
//#endregion
|
|
6183
|
-
export {
|
|
6229
|
+
export { td as Sentinel, Ju as SentinelProvider, Pu as createSentinelSagaMonitor, $u as useSentinel, Qu as useSentinelDialog, Zu as useSentinelInteraction };
|