@sentinel-core/sentinel 1.0.22 → 1.0.24
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 +3 -3
- package/dist/sentinel.css +1 -1
- package/dist/sentinel.es.js +780 -510
- package/dist/src/ui/components/Accordion.d.ts +8 -0
- package/package.json +2 -1
package/dist/sentinel.es.js
CHANGED
|
@@ -3570,7 +3570,7 @@ var la = (e) => {
|
|
|
3570
3570
|
let [t] = e.split(":");
|
|
3571
3571
|
return t.replace(/\\/g, "/").split("/").slice(-3).join("/");
|
|
3572
3572
|
}, ya = () => {
|
|
3573
|
-
let { openDialogId: e, closeDialog: n, dialogMeta: r } =
|
|
3573
|
+
let { openDialogId: e, closeDialog: n, dialogMeta: r } = qu();
|
|
3574
3574
|
return /* @__PURE__ */ t.createElement(ta, {
|
|
3575
3575
|
open: e !== null,
|
|
3576
3576
|
onOpenChange: (e) => !e && n()
|
|
@@ -3621,7 +3621,10 @@ var la = (e) => {
|
|
|
3621
3621
|
...i
|
|
3622
3622
|
}));
|
|
3623
3623
|
return n.displayName = Ca(e), n;
|
|
3624
|
-
}, Aa = ka("
|
|
3624
|
+
}, Aa = ka("chevron-down", [["path", {
|
|
3625
|
+
d: "m6 9 6 6 6-6",
|
|
3626
|
+
key: "qrunsl"
|
|
3627
|
+
}]]), ja = ka("maximize-2", [
|
|
3625
3628
|
["path", {
|
|
3626
3629
|
d: "M15 3h6v6",
|
|
3627
3630
|
key: "1q9fwt"
|
|
@@ -3638,7 +3641,7 @@ var la = (e) => {
|
|
|
3638
3641
|
d: "M9 21H3v-6",
|
|
3639
3642
|
key: "wtvkvv"
|
|
3640
3643
|
}]
|
|
3641
|
-
]),
|
|
3644
|
+
]), Ma = ka("scan-eye", [
|
|
3642
3645
|
["path", {
|
|
3643
3646
|
d: "M3 7V5a2 2 0 0 1 2-2h2",
|
|
3644
3647
|
key: "aa7l1z"
|
|
@@ -3665,80 +3668,80 @@ var la = (e) => {
|
|
|
3665
3668
|
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",
|
|
3666
3669
|
key: "11ak4c"
|
|
3667
3670
|
}]
|
|
3668
|
-
]),
|
|
3671
|
+
]), Na = [
|
|
3669
3672
|
"top",
|
|
3670
3673
|
"right",
|
|
3671
3674
|
"bottom",
|
|
3672
3675
|
"left"
|
|
3673
|
-
],
|
|
3676
|
+
], Pa = Math.min, q = Math.max, Fa = Math.round, Ia = Math.floor, J = (e) => ({
|
|
3674
3677
|
x: e,
|
|
3675
3678
|
y: e
|
|
3676
|
-
}),
|
|
3679
|
+
}), La = {
|
|
3677
3680
|
left: "right",
|
|
3678
3681
|
right: "left",
|
|
3679
3682
|
bottom: "top",
|
|
3680
3683
|
top: "bottom"
|
|
3681
3684
|
};
|
|
3682
|
-
function
|
|
3683
|
-
return q(e,
|
|
3685
|
+
function Ra(e, t, n) {
|
|
3686
|
+
return q(e, Pa(t, n));
|
|
3684
3687
|
}
|
|
3685
|
-
function
|
|
3688
|
+
function za(e, t) {
|
|
3686
3689
|
return typeof e == "function" ? e(t) : e;
|
|
3687
3690
|
}
|
|
3688
|
-
function
|
|
3691
|
+
function Ba(e) {
|
|
3689
3692
|
return e.split("-")[0];
|
|
3690
3693
|
}
|
|
3691
|
-
function
|
|
3694
|
+
function Va(e) {
|
|
3692
3695
|
return e.split("-")[1];
|
|
3693
3696
|
}
|
|
3694
|
-
function
|
|
3697
|
+
function Ha(e) {
|
|
3695
3698
|
return e === "x" ? "y" : "x";
|
|
3696
3699
|
}
|
|
3697
|
-
function
|
|
3700
|
+
function Ua(e) {
|
|
3698
3701
|
return e === "y" ? "height" : "width";
|
|
3699
3702
|
}
|
|
3700
3703
|
function Y(e) {
|
|
3701
3704
|
let t = e[0];
|
|
3702
3705
|
return t === "t" || t === "b" ? "y" : "x";
|
|
3703
3706
|
}
|
|
3704
|
-
function
|
|
3705
|
-
return
|
|
3707
|
+
function Wa(e) {
|
|
3708
|
+
return Ha(Y(e));
|
|
3706
3709
|
}
|
|
3707
|
-
function
|
|
3710
|
+
function Ga(e, t, n) {
|
|
3708
3711
|
n === void 0 && (n = !1);
|
|
3709
|
-
let r =
|
|
3710
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
3712
|
+
let r = Va(e), i = Wa(e), a = Ua(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
3713
|
+
return t.reference[a] > t.floating[a] && (o = eo(o)), [o, eo(o)];
|
|
3711
3714
|
}
|
|
3712
|
-
function
|
|
3713
|
-
let t =
|
|
3715
|
+
function Ka(e) {
|
|
3716
|
+
let t = eo(e);
|
|
3714
3717
|
return [
|
|
3715
|
-
|
|
3718
|
+
qa(e),
|
|
3716
3719
|
t,
|
|
3717
|
-
|
|
3720
|
+
qa(t)
|
|
3718
3721
|
];
|
|
3719
3722
|
}
|
|
3720
|
-
function
|
|
3723
|
+
function qa(e) {
|
|
3721
3724
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
3722
3725
|
}
|
|
3723
|
-
var
|
|
3724
|
-
function
|
|
3726
|
+
var Ja = ["left", "right"], Ya = ["right", "left"], Xa = ["top", "bottom"], Za = ["bottom", "top"];
|
|
3727
|
+
function Qa(e, t, n) {
|
|
3725
3728
|
switch (e) {
|
|
3726
3729
|
case "top":
|
|
3727
|
-
case "bottom": return n ? t ?
|
|
3730
|
+
case "bottom": return n ? t ? Ya : Ja : t ? Ja : Ya;
|
|
3728
3731
|
case "left":
|
|
3729
|
-
case "right": return t ?
|
|
3732
|
+
case "right": return t ? Xa : Za;
|
|
3730
3733
|
default: return [];
|
|
3731
3734
|
}
|
|
3732
3735
|
}
|
|
3733
|
-
function
|
|
3734
|
-
let i =
|
|
3735
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
3736
|
-
}
|
|
3737
|
-
function $a(e) {
|
|
3738
|
-
let t = za(e);
|
|
3739
|
-
return Ia[t] + e.slice(t.length);
|
|
3736
|
+
function $a(e, t, n, r) {
|
|
3737
|
+
let i = Va(e), a = Qa(Ba(e), n === "start", r);
|
|
3738
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(qa)))), a;
|
|
3740
3739
|
}
|
|
3741
3740
|
function eo(e) {
|
|
3741
|
+
let t = Ba(e);
|
|
3742
|
+
return La[t] + e.slice(t.length);
|
|
3743
|
+
}
|
|
3744
|
+
function to(e) {
|
|
3742
3745
|
return {
|
|
3743
3746
|
top: 0,
|
|
3744
3747
|
right: 0,
|
|
@@ -3747,15 +3750,15 @@ function eo(e) {
|
|
|
3747
3750
|
...e
|
|
3748
3751
|
};
|
|
3749
3752
|
}
|
|
3750
|
-
function
|
|
3753
|
+
function no(e) {
|
|
3751
3754
|
return typeof e == "number" ? {
|
|
3752
3755
|
top: e,
|
|
3753
3756
|
right: e,
|
|
3754
3757
|
bottom: e,
|
|
3755
3758
|
left: e
|
|
3756
|
-
} :
|
|
3759
|
+
} : to(e);
|
|
3757
3760
|
}
|
|
3758
|
-
function
|
|
3761
|
+
function ro(e) {
|
|
3759
3762
|
let { x: t, y: n, width: r, height: i } = e;
|
|
3760
3763
|
return {
|
|
3761
3764
|
width: r,
|
|
@@ -3770,8 +3773,8 @@ function no(e) {
|
|
|
3770
3773
|
}
|
|
3771
3774
|
//#endregion
|
|
3772
3775
|
//#region ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
3773
|
-
function
|
|
3774
|
-
let { reference: r, floating: i } = e, a = Y(t), o =
|
|
3776
|
+
function io(e, t, n) {
|
|
3777
|
+
let { reference: r, floating: i } = e, a = Y(t), o = Wa(t), s = Ua(o), c = Ba(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;
|
|
3775
3778
|
switch (c) {
|
|
3776
3779
|
case "top":
|
|
3777
3780
|
p = {
|
|
@@ -3802,7 +3805,7 @@ function ro(e, t, n) {
|
|
|
3802
3805
|
y: r.y
|
|
3803
3806
|
};
|
|
3804
3807
|
}
|
|
3805
|
-
switch (
|
|
3808
|
+
switch (Va(t)) {
|
|
3806
3809
|
case "start":
|
|
3807
3810
|
p[o] -= f * (n && l ? -1 : 1);
|
|
3808
3811
|
break;
|
|
@@ -3812,9 +3815,9 @@ function ro(e, t, n) {
|
|
|
3812
3815
|
}
|
|
3813
3816
|
return p;
|
|
3814
3817
|
}
|
|
3815
|
-
async function
|
|
3818
|
+
async function ao(e, t) {
|
|
3816
3819
|
t === void 0 && (t = {});
|
|
3817
|
-
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 } =
|
|
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 } = za(t, e), p = no(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = ro(await i.getClippingRect({
|
|
3818
3821
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
3819
3822
|
boundary: c,
|
|
3820
3823
|
rootBoundary: l,
|
|
@@ -3827,7 +3830,7 @@ async function io(e, t) {
|
|
|
3827
3830
|
} : 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(_)) || {
|
|
3828
3831
|
x: 1,
|
|
3829
3832
|
y: 1
|
|
3830
|
-
}, y =
|
|
3833
|
+
}, y = ro(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3831
3834
|
elements: o,
|
|
3832
3835
|
rect: g,
|
|
3833
3836
|
offsetParent: _,
|
|
@@ -3840,15 +3843,15 @@ async function io(e, t) {
|
|
|
3840
3843
|
right: (y.right - h.right + p.right) / v.x
|
|
3841
3844
|
};
|
|
3842
3845
|
}
|
|
3843
|
-
var
|
|
3846
|
+
var oo = 50, so = async (e, t, n) => {
|
|
3844
3847
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
3845
3848
|
...o,
|
|
3846
|
-
detectOverflow:
|
|
3849
|
+
detectOverflow: ao
|
|
3847
3850
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
3848
3851
|
reference: e,
|
|
3849
3852
|
floating: t,
|
|
3850
3853
|
strategy: i
|
|
3851
|
-
}), { x: u, y: d } =
|
|
3854
|
+
}), { x: u, y: d } = io(l, r, c), f = r, p = 0, m = {};
|
|
3852
3855
|
for (let n = 0; n < a.length; n++) {
|
|
3853
3856
|
let h = a[n];
|
|
3854
3857
|
if (!h) continue;
|
|
@@ -3869,11 +3872,11 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3869
3872
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
3870
3873
|
...m[g],
|
|
3871
3874
|
...b
|
|
3872
|
-
}, x && p <
|
|
3875
|
+
}, x && p < oo && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
3873
3876
|
reference: e,
|
|
3874
3877
|
floating: t,
|
|
3875
3878
|
strategy: i
|
|
3876
|
-
}) : x.rects), {x: u, y: d} =
|
|
3879
|
+
}) : x.rects), {x: u, y: d} = io(l, f, c)), n = -1);
|
|
3877
3880
|
}
|
|
3878
3881
|
return {
|
|
3879
3882
|
x: u,
|
|
@@ -3882,18 +3885,18 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3882
3885
|
strategy: i,
|
|
3883
3886
|
middlewareData: m
|
|
3884
3887
|
};
|
|
3885
|
-
},
|
|
3888
|
+
}, co = (e) => ({
|
|
3886
3889
|
name: "arrow",
|
|
3887
3890
|
options: e,
|
|
3888
3891
|
async fn(t) {
|
|
3889
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
3892
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = za(e, t) || {};
|
|
3890
3893
|
if (l == null) return {};
|
|
3891
|
-
let d =
|
|
3894
|
+
let d = no(u), f = {
|
|
3892
3895
|
x: n,
|
|
3893
3896
|
y: r
|
|
3894
|
-
}, p =
|
|
3897
|
+
}, p = Wa(i), m = Ua(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;
|
|
3895
3898
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
3896
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
3899
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Pa(d[_], T), ee = Pa(d[v], T), D = E, te = C - h[m] - ee, O = C / 2 - h[m] / 2 + w, k = Ra(D, O, te), A = !c.arrow && Va(i) != null && O !== k && a.reference[m] / 2 - (O < D ? E : ee) - h[m] / 2 < 0, j = A ? O < D ? O - D : O - te : 0;
|
|
3897
3900
|
return {
|
|
3898
3901
|
[p]: f[p] + j,
|
|
3899
3902
|
data: {
|
|
@@ -3904,19 +3907,19 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3904
3907
|
reset: A
|
|
3905
3908
|
};
|
|
3906
3909
|
}
|
|
3907
|
-
}),
|
|
3910
|
+
}), lo = function(e) {
|
|
3908
3911
|
return e === void 0 && (e = {}), {
|
|
3909
3912
|
name: "flip",
|
|
3910
3913
|
options: e,
|
|
3911
3914
|
async fn(t) {
|
|
3912
3915
|
var n;
|
|
3913
|
-
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 } =
|
|
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 } = za(e, t);
|
|
3914
3917
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
3915
|
-
let g =
|
|
3916
|
-
!d && x && b.push(
|
|
3918
|
+
let g = Ba(r), _ = Y(o), v = Ba(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [eo(o)] : Ka(o)), x = p !== "none";
|
|
3919
|
+
!d && x && b.push(...$a(o, m, p, y));
|
|
3917
3920
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
3918
3921
|
if (l && w.push(C[g]), u) {
|
|
3919
|
-
let e =
|
|
3922
|
+
let e = Ga(r, a, y);
|
|
3920
3923
|
w.push(C[e[0]], C[e[1]]);
|
|
3921
3924
|
}
|
|
3922
3925
|
if (T = [...T, {
|
|
@@ -3954,7 +3957,7 @@ var ao = 50, oo = async (e, t, n) => {
|
|
|
3954
3957
|
}
|
|
3955
3958
|
};
|
|
3956
3959
|
};
|
|
3957
|
-
function
|
|
3960
|
+
function uo(e, t) {
|
|
3958
3961
|
return {
|
|
3959
3962
|
top: e.top - t.height,
|
|
3960
3963
|
right: e.right - t.width,
|
|
@@ -3962,43 +3965,43 @@ function lo(e, t) {
|
|
|
3962
3965
|
left: e.left - t.width
|
|
3963
3966
|
};
|
|
3964
3967
|
}
|
|
3965
|
-
function
|
|
3966
|
-
return
|
|
3968
|
+
function fo(e) {
|
|
3969
|
+
return Na.some((t) => e[t] >= 0);
|
|
3967
3970
|
}
|
|
3968
|
-
var
|
|
3971
|
+
var po = function(e) {
|
|
3969
3972
|
return e === void 0 && (e = {}), {
|
|
3970
3973
|
name: "hide",
|
|
3971
3974
|
options: e,
|
|
3972
3975
|
async fn(t) {
|
|
3973
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
3976
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = za(e, t);
|
|
3974
3977
|
switch (i) {
|
|
3975
3978
|
case "referenceHidden": {
|
|
3976
|
-
let e =
|
|
3979
|
+
let e = uo(await r.detectOverflow(t, {
|
|
3977
3980
|
...a,
|
|
3978
3981
|
elementContext: "reference"
|
|
3979
3982
|
}), n.reference);
|
|
3980
3983
|
return { data: {
|
|
3981
3984
|
referenceHiddenOffsets: e,
|
|
3982
|
-
referenceHidden:
|
|
3985
|
+
referenceHidden: fo(e)
|
|
3983
3986
|
} };
|
|
3984
3987
|
}
|
|
3985
3988
|
case "escaped": {
|
|
3986
|
-
let e =
|
|
3989
|
+
let e = uo(await r.detectOverflow(t, {
|
|
3987
3990
|
...a,
|
|
3988
3991
|
altBoundary: !0
|
|
3989
3992
|
}), n.floating);
|
|
3990
3993
|
return { data: {
|
|
3991
3994
|
escapedOffsets: e,
|
|
3992
|
-
escaped:
|
|
3995
|
+
escaped: fo(e)
|
|
3993
3996
|
} };
|
|
3994
3997
|
}
|
|
3995
3998
|
default: return {};
|
|
3996
3999
|
}
|
|
3997
4000
|
}
|
|
3998
4001
|
};
|
|
3999
|
-
},
|
|
4000
|
-
async function
|
|
4001
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
4002
|
+
}, mo = /*#__PURE__*/ new Set(["left", "top"]);
|
|
4003
|
+
async function ho(e, t) {
|
|
4004
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Ba(n), s = Va(n), c = Y(n) === "y", l = mo.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = za(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
4002
4005
|
mainAxis: d,
|
|
4003
4006
|
crossAxis: 0,
|
|
4004
4007
|
alignmentAxis: null
|
|
@@ -4015,13 +4018,13 @@ async function mo(e, t) {
|
|
|
4015
4018
|
y: p * u
|
|
4016
4019
|
};
|
|
4017
4020
|
}
|
|
4018
|
-
var
|
|
4021
|
+
var go = function(e) {
|
|
4019
4022
|
return e === void 0 && (e = 0), {
|
|
4020
4023
|
name: "offset",
|
|
4021
4024
|
options: e,
|
|
4022
4025
|
async fn(t) {
|
|
4023
4026
|
var n;
|
|
4024
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
4027
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ho(t, e);
|
|
4025
4028
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
4026
4029
|
x: r + s.x,
|
|
4027
4030
|
y: i + s.y,
|
|
@@ -4032,7 +4035,7 @@ var ho = function(e) {
|
|
|
4032
4035
|
};
|
|
4033
4036
|
}
|
|
4034
4037
|
};
|
|
4035
|
-
},
|
|
4038
|
+
}, _o = function(e) {
|
|
4036
4039
|
return e === void 0 && (e = {}), {
|
|
4037
4040
|
name: "shift",
|
|
4038
4041
|
options: e,
|
|
@@ -4043,17 +4046,17 @@ var ho = function(e) {
|
|
|
4043
4046
|
x: t,
|
|
4044
4047
|
y: n
|
|
4045
4048
|
};
|
|
4046
|
-
} }, ...l } =
|
|
4049
|
+
} }, ...l } = za(e, t), u = {
|
|
4047
4050
|
x: n,
|
|
4048
4051
|
y: r
|
|
4049
|
-
}, d = await a.detectOverflow(t, l), f = Y(
|
|
4052
|
+
}, d = await a.detectOverflow(t, l), f = Y(Ba(i)), p = Ha(f), m = u[p], h = u[f];
|
|
4050
4053
|
if (o) {
|
|
4051
4054
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
4052
|
-
m =
|
|
4055
|
+
m = Ra(n, m, r);
|
|
4053
4056
|
}
|
|
4054
4057
|
if (s) {
|
|
4055
4058
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
4056
|
-
h =
|
|
4059
|
+
h = Ra(n, h, r);
|
|
4057
4060
|
}
|
|
4058
4061
|
let g = c.fn({
|
|
4059
4062
|
...t,
|
|
@@ -4073,14 +4076,14 @@ var ho = function(e) {
|
|
|
4073
4076
|
};
|
|
4074
4077
|
}
|
|
4075
4078
|
};
|
|
4076
|
-
},
|
|
4079
|
+
}, vo = function(e) {
|
|
4077
4080
|
return e === void 0 && (e = {}), {
|
|
4078
4081
|
options: e,
|
|
4079
4082
|
fn(t) {
|
|
4080
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } =
|
|
4083
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = za(e, t), u = {
|
|
4081
4084
|
x: n,
|
|
4082
4085
|
y: r
|
|
4083
|
-
}, d = Y(i), f =
|
|
4086
|
+
}, d = Y(i), f = Ha(d), p = u[f], m = u[d], h = za(s, t), g = typeof h == "number" ? {
|
|
4084
4087
|
mainAxis: h,
|
|
4085
4088
|
crossAxis: 0
|
|
4086
4089
|
} : {
|
|
@@ -4093,7 +4096,7 @@ var ho = function(e) {
|
|
|
4093
4096
|
p < t ? p = t : p > n && (p = n);
|
|
4094
4097
|
}
|
|
4095
4098
|
if (l) {
|
|
4096
|
-
let e = f === "y" ? "width" : "height", t =
|
|
4099
|
+
let e = f === "y" ? "width" : "height", t = mo.has(Ba(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);
|
|
4097
4100
|
m < n ? m = n : m > r && (m = r);
|
|
4098
4101
|
}
|
|
4099
4102
|
return {
|
|
@@ -4102,15 +4105,15 @@ var ho = function(e) {
|
|
|
4102
4105
|
};
|
|
4103
4106
|
}
|
|
4104
4107
|
};
|
|
4105
|
-
},
|
|
4108
|
+
}, yo = function(e) {
|
|
4106
4109
|
return e === void 0 && (e = {}), {
|
|
4107
4110
|
name: "size",
|
|
4108
4111
|
options: e,
|
|
4109
4112
|
async fn(t) {
|
|
4110
4113
|
var n, r;
|
|
4111
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
4114
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = za(e, t), u = await o.detectOverflow(t, l), d = Ba(i), f = Va(i), p = Y(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
4112
4115
|
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");
|
|
4113
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
4116
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = Pa(h - u[g], v), x = Pa(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
4114
4117
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
4115
4118
|
let e = q(u.left, 0), t = q(u.right, 0), n = q(u.top, 0), r = q(u.bottom, 0);
|
|
4116
4119
|
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : q(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : q(u.top, u.bottom));
|
|
@@ -4127,39 +4130,39 @@ var ho = function(e) {
|
|
|
4127
4130
|
};
|
|
4128
4131
|
//#endregion
|
|
4129
4132
|
//#region ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
4130
|
-
function
|
|
4133
|
+
function bo() {
|
|
4131
4134
|
return typeof window < "u";
|
|
4132
4135
|
}
|
|
4133
|
-
function
|
|
4134
|
-
return
|
|
4136
|
+
function xo(e) {
|
|
4137
|
+
return So(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
4135
4138
|
}
|
|
4136
4139
|
function X(e) {
|
|
4137
4140
|
var t;
|
|
4138
4141
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
4139
4142
|
}
|
|
4140
4143
|
function Z(e) {
|
|
4141
|
-
return ((
|
|
4144
|
+
return ((So(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
4142
4145
|
}
|
|
4143
|
-
function
|
|
4144
|
-
return
|
|
4146
|
+
function So(e) {
|
|
4147
|
+
return bo() ? e instanceof Node || e instanceof X(e).Node : !1;
|
|
4145
4148
|
}
|
|
4146
4149
|
function Q(e) {
|
|
4147
|
-
return
|
|
4148
|
-
}
|
|
4149
|
-
function So(e) {
|
|
4150
|
-
return yo() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
|
|
4150
|
+
return bo() ? e instanceof Element || e instanceof X(e).Element : !1;
|
|
4151
4151
|
}
|
|
4152
4152
|
function Co(e) {
|
|
4153
|
-
return
|
|
4153
|
+
return bo() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
|
|
4154
4154
|
}
|
|
4155
4155
|
function wo(e) {
|
|
4156
|
-
|
|
4157
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
4156
|
+
return !bo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
|
|
4158
4157
|
}
|
|
4159
4158
|
function To(e) {
|
|
4160
|
-
|
|
4159
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = $(e);
|
|
4160
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
4161
4161
|
}
|
|
4162
4162
|
function Eo(e) {
|
|
4163
|
+
return /^(table|td|th)$/.test(xo(e));
|
|
4164
|
+
}
|
|
4165
|
+
function Do(e) {
|
|
4163
4166
|
try {
|
|
4164
4167
|
if (e.matches(":popover-open")) return !0;
|
|
4165
4168
|
} catch {}
|
|
@@ -4169,30 +4172,30 @@ function Eo(e) {
|
|
|
4169
4172
|
return !1;
|
|
4170
4173
|
}
|
|
4171
4174
|
}
|
|
4172
|
-
var
|
|
4173
|
-
function jo(e) {
|
|
4174
|
-
let t = Q(e) ? $(e) : e;
|
|
4175
|
-
return ko(t.transform) || ko(t.translate) || ko(t.scale) || ko(t.rotate) || ko(t.perspective) || !No() && (ko(t.backdropFilter) || ko(t.filter)) || Do.test(t.willChange || "") || Oo.test(t.contain || "");
|
|
4176
|
-
}
|
|
4175
|
+
var Oo = /transform|translate|scale|rotate|perspective|filter/, ko = /paint|layout|strict|content/, Ao = (e) => !!e && e !== "none", jo;
|
|
4177
4176
|
function Mo(e) {
|
|
4178
|
-
let t =
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4177
|
+
let t = Q(e) ? $(e) : e;
|
|
4178
|
+
return Ao(t.transform) || Ao(t.translate) || Ao(t.scale) || Ao(t.rotate) || Ao(t.perspective) || !Po() && (Ao(t.backdropFilter) || Ao(t.filter)) || Oo.test(t.willChange || "") || ko.test(t.contain || "");
|
|
4179
|
+
}
|
|
4180
|
+
function No(e) {
|
|
4181
|
+
let t = Lo(e);
|
|
4182
|
+
for (; Co(t) && !Fo(t);) {
|
|
4183
|
+
if (Mo(t)) return t;
|
|
4184
|
+
if (Do(t)) return null;
|
|
4185
|
+
t = Lo(t);
|
|
4183
4186
|
}
|
|
4184
4187
|
return null;
|
|
4185
4188
|
}
|
|
4186
|
-
function
|
|
4187
|
-
return
|
|
4189
|
+
function Po() {
|
|
4190
|
+
return jo ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), jo;
|
|
4188
4191
|
}
|
|
4189
|
-
function
|
|
4190
|
-
return /^(html|body|#document)$/.test(
|
|
4192
|
+
function Fo(e) {
|
|
4193
|
+
return /^(html|body|#document)$/.test(xo(e));
|
|
4191
4194
|
}
|
|
4192
4195
|
function $(e) {
|
|
4193
4196
|
return X(e).getComputedStyle(e);
|
|
4194
4197
|
}
|
|
4195
|
-
function
|
|
4198
|
+
function Io(e) {
|
|
4196
4199
|
return Q(e) ? {
|
|
4197
4200
|
scrollLeft: e.scrollLeft,
|
|
4198
4201
|
scrollTop: e.scrollTop
|
|
@@ -4201,101 +4204,101 @@ function Fo(e) {
|
|
|
4201
4204
|
scrollTop: e.scrollY
|
|
4202
4205
|
};
|
|
4203
4206
|
}
|
|
4204
|
-
function Io(e) {
|
|
4205
|
-
if (bo(e) === "html") return e;
|
|
4206
|
-
let t = e.assignedSlot || e.parentNode || Co(e) && e.host || Z(e);
|
|
4207
|
-
return Co(t) ? t.host : t;
|
|
4208
|
-
}
|
|
4209
4207
|
function Lo(e) {
|
|
4210
|
-
|
|
4211
|
-
|
|
4208
|
+
if (xo(e) === "html") return e;
|
|
4209
|
+
let t = e.assignedSlot || e.parentNode || wo(e) && e.host || Z(e);
|
|
4210
|
+
return wo(t) ? t.host : t;
|
|
4211
|
+
}
|
|
4212
|
+
function Ro(e) {
|
|
4213
|
+
let t = Lo(e);
|
|
4214
|
+
return Fo(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Co(t) && To(t) ? t : Ro(t);
|
|
4212
4215
|
}
|
|
4213
|
-
function
|
|
4216
|
+
function zo(e, t, n) {
|
|
4214
4217
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
4215
|
-
let r =
|
|
4218
|
+
let r = Ro(e), i = r === e.ownerDocument?.body, a = X(r);
|
|
4216
4219
|
if (i) {
|
|
4217
|
-
let e =
|
|
4218
|
-
return t.concat(a, a.visualViewport || [],
|
|
4219
|
-
} else return t.concat(r,
|
|
4220
|
+
let e = Bo(a);
|
|
4221
|
+
return t.concat(a, a.visualViewport || [], To(r) ? r : [], e && n ? zo(e) : []);
|
|
4222
|
+
} else return t.concat(r, zo(r, [], n));
|
|
4220
4223
|
}
|
|
4221
|
-
function
|
|
4224
|
+
function Bo(e) {
|
|
4222
4225
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
4223
4226
|
}
|
|
4224
4227
|
//#endregion
|
|
4225
4228
|
//#region ../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
4226
|
-
function
|
|
4227
|
-
let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i =
|
|
4229
|
+
function Vo(e) {
|
|
4230
|
+
let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Co(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Fa(n) !== a || Fa(r) !== o;
|
|
4228
4231
|
return s && (n = a, r = o), {
|
|
4229
4232
|
width: n,
|
|
4230
4233
|
height: r,
|
|
4231
4234
|
$: s
|
|
4232
4235
|
};
|
|
4233
4236
|
}
|
|
4234
|
-
function
|
|
4237
|
+
function Ho(e) {
|
|
4235
4238
|
return Q(e) ? e : e.contextElement;
|
|
4236
4239
|
}
|
|
4237
|
-
function
|
|
4238
|
-
let t =
|
|
4239
|
-
if (!
|
|
4240
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
4240
|
+
function Uo(e) {
|
|
4241
|
+
let t = Ho(e);
|
|
4242
|
+
if (!Co(t)) return J(1);
|
|
4243
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Vo(t), o = (a ? Fa(n.width) : n.width) / r, s = (a ? Fa(n.height) : n.height) / i;
|
|
4241
4244
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
4242
4245
|
x: o,
|
|
4243
4246
|
y: s
|
|
4244
4247
|
};
|
|
4245
4248
|
}
|
|
4246
|
-
var
|
|
4247
|
-
function
|
|
4249
|
+
var Wo = /*#__PURE__*/ J(0);
|
|
4250
|
+
function Go(e) {
|
|
4248
4251
|
let t = X(e);
|
|
4249
|
-
return !
|
|
4252
|
+
return !Po() || !t.visualViewport ? Wo : {
|
|
4250
4253
|
x: t.visualViewport.offsetLeft,
|
|
4251
4254
|
y: t.visualViewport.offsetTop
|
|
4252
4255
|
};
|
|
4253
4256
|
}
|
|
4254
|
-
function
|
|
4257
|
+
function Ko(e, t, n) {
|
|
4255
4258
|
return t === void 0 && (t = !1), !n || t && n !== X(e) ? !1 : t;
|
|
4256
4259
|
}
|
|
4257
|
-
function
|
|
4260
|
+
function qo(e, t, n, r) {
|
|
4258
4261
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
4259
|
-
let i = e.getBoundingClientRect(), a =
|
|
4260
|
-
t && (r ? Q(r) && (o =
|
|
4261
|
-
let s =
|
|
4262
|
+
let i = e.getBoundingClientRect(), a = Ho(e), o = J(1);
|
|
4263
|
+
t && (r ? Q(r) && (o = Uo(r)) : o = Uo(e));
|
|
4264
|
+
let s = Ko(a, n, r) ? Go(a) : J(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;
|
|
4262
4265
|
if (a) {
|
|
4263
|
-
let e = X(a), t = r && Q(r) ? X(r) : r, n = e, i =
|
|
4266
|
+
let e = X(a), t = r && Q(r) ? X(r) : r, n = e, i = Bo(n);
|
|
4264
4267
|
for (; i && r && t !== n;) {
|
|
4265
|
-
let e =
|
|
4266
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i =
|
|
4268
|
+
let e = Uo(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;
|
|
4269
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i = Bo(n);
|
|
4267
4270
|
}
|
|
4268
4271
|
}
|
|
4269
|
-
return
|
|
4272
|
+
return ro({
|
|
4270
4273
|
width: u,
|
|
4271
4274
|
height: d,
|
|
4272
4275
|
x: c,
|
|
4273
4276
|
y: l
|
|
4274
4277
|
});
|
|
4275
4278
|
}
|
|
4276
|
-
function qo(e, t) {
|
|
4277
|
-
let n = Fo(e).scrollLeft;
|
|
4278
|
-
return t ? t.left + n : Ko(Z(e)).left + n;
|
|
4279
|
-
}
|
|
4280
4279
|
function Jo(e, t) {
|
|
4280
|
+
let n = Io(e).scrollLeft;
|
|
4281
|
+
return t ? t.left + n : qo(Z(e)).left + n;
|
|
4282
|
+
}
|
|
4283
|
+
function Yo(e, t) {
|
|
4281
4284
|
let n = e.getBoundingClientRect();
|
|
4282
4285
|
return {
|
|
4283
|
-
x: n.left + t.scrollLeft -
|
|
4286
|
+
x: n.left + t.scrollLeft - Jo(e, n),
|
|
4284
4287
|
y: n.top + t.scrollTop
|
|
4285
4288
|
};
|
|
4286
4289
|
}
|
|
4287
|
-
function
|
|
4288
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Z(r), s = t ?
|
|
4290
|
+
function Xo(e) {
|
|
4291
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Z(r), s = t ? Do(t.floating) : !1;
|
|
4289
4292
|
if (r === o || s && a) return n;
|
|
4290
4293
|
let c = {
|
|
4291
4294
|
scrollLeft: 0,
|
|
4292
4295
|
scrollTop: 0
|
|
4293
|
-
}, l = J(1), u = J(0), d =
|
|
4294
|
-
if ((d || !d && !a) && ((
|
|
4295
|
-
let e =
|
|
4296
|
-
l =
|
|
4296
|
+
}, l = J(1), u = J(0), d = Co(r);
|
|
4297
|
+
if ((d || !d && !a) && ((xo(r) !== "body" || To(o)) && (c = Io(r)), d)) {
|
|
4298
|
+
let e = qo(r);
|
|
4299
|
+
l = Uo(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
4297
4300
|
}
|
|
4298
|
-
let f = o && !d && !a ?
|
|
4301
|
+
let f = o && !d && !a ? Yo(o, c) : J(0);
|
|
4299
4302
|
return {
|
|
4300
4303
|
width: n.width * l.x,
|
|
4301
4304
|
height: n.height * l.y,
|
|
@@ -4303,11 +4306,11 @@ function Yo(e) {
|
|
|
4303
4306
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
4304
4307
|
};
|
|
4305
4308
|
}
|
|
4306
|
-
function
|
|
4309
|
+
function Zo(e) {
|
|
4307
4310
|
return Array.from(e.getClientRects());
|
|
4308
4311
|
}
|
|
4309
|
-
function
|
|
4310
|
-
let t = Z(e), n =
|
|
4312
|
+
function Qo(e) {
|
|
4313
|
+
let t = Z(e), n = Io(e), r = e.ownerDocument.body, i = q(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = q(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Jo(e), s = -n.scrollTop;
|
|
4311
4314
|
return $(r).direction === "rtl" && (o += q(t.clientWidth, r.clientWidth) - i), {
|
|
4312
4315
|
width: i,
|
|
4313
4316
|
height: a,
|
|
@@ -4315,19 +4318,19 @@ function Zo(e) {
|
|
|
4315
4318
|
y: s
|
|
4316
4319
|
};
|
|
4317
4320
|
}
|
|
4318
|
-
var
|
|
4319
|
-
function
|
|
4321
|
+
var $o = 25;
|
|
4322
|
+
function es(e, t) {
|
|
4320
4323
|
let n = X(e), r = Z(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
4321
4324
|
if (i) {
|
|
4322
4325
|
a = i.width, o = i.height;
|
|
4323
|
-
let e =
|
|
4326
|
+
let e = Po();
|
|
4324
4327
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
4325
4328
|
}
|
|
4326
|
-
let l =
|
|
4329
|
+
let l = Jo(r);
|
|
4327
4330
|
if (l <= 0) {
|
|
4328
4331
|
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);
|
|
4329
|
-
o <=
|
|
4330
|
-
} else l <=
|
|
4332
|
+
o <= $o && (a -= o);
|
|
4333
|
+
} else l <= $o && (a += l);
|
|
4331
4334
|
return {
|
|
4332
4335
|
width: a,
|
|
4333
4336
|
height: o,
|
|
@@ -4335,8 +4338,8 @@ function $o(e, t) {
|
|
|
4335
4338
|
y: c
|
|
4336
4339
|
};
|
|
4337
4340
|
}
|
|
4338
|
-
function
|
|
4339
|
-
let n =
|
|
4341
|
+
function ts(e, t) {
|
|
4342
|
+
let n = qo(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Co(e) ? Uo(e) : J(1);
|
|
4340
4343
|
return {
|
|
4341
4344
|
width: e.clientWidth * a.x,
|
|
4342
4345
|
height: e.clientHeight * a.y,
|
|
@@ -4344,13 +4347,13 @@ function es(e, t) {
|
|
|
4344
4347
|
y: r * a.y
|
|
4345
4348
|
};
|
|
4346
4349
|
}
|
|
4347
|
-
function
|
|
4350
|
+
function ns(e, t, n) {
|
|
4348
4351
|
let r;
|
|
4349
|
-
if (t === "viewport") r =
|
|
4350
|
-
else if (t === "document") r =
|
|
4351
|
-
else if (Q(t)) r =
|
|
4352
|
+
if (t === "viewport") r = es(e, n);
|
|
4353
|
+
else if (t === "document") r = Qo(Z(e));
|
|
4354
|
+
else if (Q(t)) r = ts(t, n);
|
|
4352
4355
|
else {
|
|
4353
|
-
let n =
|
|
4356
|
+
let n = Go(e);
|
|
4354
4357
|
r = {
|
|
4355
4358
|
x: t.x - n.x,
|
|
4356
4359
|
y: t.y - n.y,
|
|
@@ -4358,27 +4361,27 @@ function ts(e, t, n) {
|
|
|
4358
4361
|
height: t.height
|
|
4359
4362
|
};
|
|
4360
4363
|
}
|
|
4361
|
-
return
|
|
4362
|
-
}
|
|
4363
|
-
function ns(e, t) {
|
|
4364
|
-
let n = Io(e);
|
|
4365
|
-
return n === t || !Q(n) || Po(n) ? !1 : $(n).position === "fixed" || ns(n, t);
|
|
4364
|
+
return ro(r);
|
|
4366
4365
|
}
|
|
4367
4366
|
function rs(e, t) {
|
|
4367
|
+
let n = Lo(e);
|
|
4368
|
+
return n === t || !Q(n) || Fo(n) ? !1 : $(n).position === "fixed" || rs(n, t);
|
|
4369
|
+
}
|
|
4370
|
+
function is(e, t) {
|
|
4368
4371
|
let n = t.get(e);
|
|
4369
4372
|
if (n) return n;
|
|
4370
|
-
let r =
|
|
4371
|
-
for (; Q(o) && !
|
|
4372
|
-
let t = $(o), n =
|
|
4373
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
4373
|
+
let r = zo(e, [], !1).filter((e) => Q(e) && xo(e) !== "body"), i = null, a = $(e).position === "fixed", o = a ? Lo(e) : e;
|
|
4374
|
+
for (; Q(o) && !Fo(o);) {
|
|
4375
|
+
let t = $(o), n = Mo(o);
|
|
4376
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || To(o) && !n && rs(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Lo(o);
|
|
4374
4377
|
}
|
|
4375
4378
|
return t.set(e, r), r;
|
|
4376
4379
|
}
|
|
4377
|
-
function
|
|
4378
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
4380
|
+
function as(e) {
|
|
4381
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Do(t) ? [] : is(t, this._c) : [].concat(n), r], o = ns(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
4379
4382
|
for (let e = 1; e < a.length; e++) {
|
|
4380
|
-
let n =
|
|
4381
|
-
s = q(n.top, s), c =
|
|
4383
|
+
let n = ns(t, a[e], i);
|
|
4384
|
+
s = q(n.top, s), c = Pa(n.right, c), l = Pa(n.bottom, l), u = q(n.left, u);
|
|
4382
4385
|
}
|
|
4383
4386
|
return {
|
|
4384
4387
|
width: c - u,
|
|
@@ -4387,27 +4390,27 @@ function is(e) {
|
|
|
4387
4390
|
y: s
|
|
4388
4391
|
};
|
|
4389
4392
|
}
|
|
4390
|
-
function
|
|
4391
|
-
let { width: t, height: n } =
|
|
4393
|
+
function os(e) {
|
|
4394
|
+
let { width: t, height: n } = Vo(e);
|
|
4392
4395
|
return {
|
|
4393
4396
|
width: t,
|
|
4394
4397
|
height: n
|
|
4395
4398
|
};
|
|
4396
4399
|
}
|
|
4397
|
-
function
|
|
4398
|
-
let r =
|
|
4400
|
+
function ss(e, t, n) {
|
|
4401
|
+
let r = Co(t), i = Z(t), a = n === "fixed", o = qo(e, !0, a, t), s = {
|
|
4399
4402
|
scrollLeft: 0,
|
|
4400
4403
|
scrollTop: 0
|
|
4401
4404
|
}, c = J(0);
|
|
4402
4405
|
function l() {
|
|
4403
|
-
c.x =
|
|
4406
|
+
c.x = Jo(i);
|
|
4404
4407
|
}
|
|
4405
|
-
if (r || !r && !a) if ((
|
|
4406
|
-
let e =
|
|
4408
|
+
if (r || !r && !a) if ((xo(t) !== "body" || To(i)) && (s = Io(t)), r) {
|
|
4409
|
+
let e = qo(t, !0, a, t);
|
|
4407
4410
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
4408
4411
|
} else i && l();
|
|
4409
4412
|
a && !r && i && l();
|
|
4410
|
-
let u = i && !r && !a ?
|
|
4413
|
+
let u = i && !r && !a ? Yo(i, s) : J(0);
|
|
4411
4414
|
return {
|
|
4412
4415
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
4413
4416
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -4415,34 +4418,34 @@ function os(e, t, n) {
|
|
|
4415
4418
|
height: o.height
|
|
4416
4419
|
};
|
|
4417
4420
|
}
|
|
4418
|
-
function
|
|
4421
|
+
function cs(e) {
|
|
4419
4422
|
return $(e).position === "static";
|
|
4420
4423
|
}
|
|
4421
|
-
function
|
|
4422
|
-
if (!
|
|
4424
|
+
function ls(e, t) {
|
|
4425
|
+
if (!Co(e) || $(e).position === "fixed") return null;
|
|
4423
4426
|
if (t) return t(e);
|
|
4424
4427
|
let n = e.offsetParent;
|
|
4425
4428
|
return Z(e) === n && (n = n.ownerDocument.body), n;
|
|
4426
4429
|
}
|
|
4427
|
-
function
|
|
4430
|
+
function us(e, t) {
|
|
4428
4431
|
let n = X(e);
|
|
4429
|
-
if (
|
|
4430
|
-
if (!
|
|
4431
|
-
let t =
|
|
4432
|
-
for (; t && !
|
|
4433
|
-
if (Q(t) && !
|
|
4434
|
-
t =
|
|
4432
|
+
if (Do(e)) return n;
|
|
4433
|
+
if (!Co(e)) {
|
|
4434
|
+
let t = Lo(e);
|
|
4435
|
+
for (; t && !Fo(t);) {
|
|
4436
|
+
if (Q(t) && !cs(t)) return t;
|
|
4437
|
+
t = Lo(t);
|
|
4435
4438
|
}
|
|
4436
4439
|
return n;
|
|
4437
4440
|
}
|
|
4438
|
-
let r =
|
|
4439
|
-
for (; r &&
|
|
4440
|
-
return r &&
|
|
4441
|
+
let r = ls(e, t);
|
|
4442
|
+
for (; r && Eo(r) && cs(r);) r = ls(r, t);
|
|
4443
|
+
return r && Fo(r) && cs(r) && !Mo(r) ? n : r || No(e) || n;
|
|
4441
4444
|
}
|
|
4442
|
-
var
|
|
4443
|
-
let t = this.getOffsetParent ||
|
|
4445
|
+
var ds = async function(e) {
|
|
4446
|
+
let t = this.getOffsetParent || us, n = this.getDimensions, r = await n(e.floating);
|
|
4444
4447
|
return {
|
|
4445
|
-
reference:
|
|
4448
|
+
reference: ss(e.reference, await t(e.floating), e.strategy),
|
|
4446
4449
|
floating: {
|
|
4447
4450
|
x: 0,
|
|
4448
4451
|
y: 0,
|
|
@@ -4451,25 +4454,25 @@ var us = async function(e) {
|
|
|
4451
4454
|
}
|
|
4452
4455
|
};
|
|
4453
4456
|
};
|
|
4454
|
-
function
|
|
4457
|
+
function fs(e) {
|
|
4455
4458
|
return $(e).direction === "rtl";
|
|
4456
4459
|
}
|
|
4457
|
-
var
|
|
4458
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4460
|
+
var ps = {
|
|
4461
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Xo,
|
|
4459
4462
|
getDocumentElement: Z,
|
|
4460
|
-
getClippingRect:
|
|
4461
|
-
getOffsetParent:
|
|
4462
|
-
getElementRects:
|
|
4463
|
-
getClientRects:
|
|
4464
|
-
getDimensions:
|
|
4465
|
-
getScale:
|
|
4463
|
+
getClippingRect: as,
|
|
4464
|
+
getOffsetParent: us,
|
|
4465
|
+
getElementRects: ds,
|
|
4466
|
+
getClientRects: Zo,
|
|
4467
|
+
getDimensions: os,
|
|
4468
|
+
getScale: Uo,
|
|
4466
4469
|
isElement: Q,
|
|
4467
|
-
isRTL:
|
|
4470
|
+
isRTL: fs
|
|
4468
4471
|
};
|
|
4469
|
-
function
|
|
4472
|
+
function ms(e, t) {
|
|
4470
4473
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
4471
4474
|
}
|
|
4472
|
-
function
|
|
4475
|
+
function hs(e, t) {
|
|
4473
4476
|
let n = null, r, i = Z(e);
|
|
4474
4477
|
function a() {
|
|
4475
4478
|
var e;
|
|
@@ -4479,9 +4482,9 @@ function ms(e, t) {
|
|
|
4479
4482
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
4480
4483
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
4481
4484
|
if (s || t(), !f || !p) return;
|
|
4482
|
-
let m =
|
|
4485
|
+
let m = Ia(d), h = Ia(i.clientWidth - (u + f)), g = Ia(i.clientHeight - (d + p)), _ = Ia(u), v = {
|
|
4483
4486
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
4484
|
-
threshold: q(0,
|
|
4487
|
+
threshold: q(0, Pa(1, c)) || 1
|
|
4485
4488
|
}, y = !0;
|
|
4486
4489
|
function b(t) {
|
|
4487
4490
|
let n = t[0].intersectionRatio;
|
|
@@ -4491,7 +4494,7 @@ function ms(e, t) {
|
|
|
4491
4494
|
o(!1, 1e-7);
|
|
4492
4495
|
}, 1e3);
|
|
4493
4496
|
}
|
|
4494
|
-
n === 1 && !
|
|
4497
|
+
n === 1 && !ms(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
4495
4498
|
}
|
|
4496
4499
|
try {
|
|
4497
4500
|
n = new IntersectionObserver(b, {
|
|
@@ -4505,13 +4508,13 @@ function ms(e, t) {
|
|
|
4505
4508
|
}
|
|
4506
4509
|
return o(!0), a;
|
|
4507
4510
|
}
|
|
4508
|
-
function
|
|
4511
|
+
function gs(e, t, n, r) {
|
|
4509
4512
|
r === void 0 && (r = {});
|
|
4510
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
4513
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ho(e), u = i || a ? [...l ? zo(l) : [], ...t ? zo(t) : []] : [];
|
|
4511
4514
|
u.forEach((e) => {
|
|
4512
4515
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
4513
4516
|
});
|
|
4514
|
-
let d = l && s ?
|
|
4517
|
+
let d = l && s ? hs(l, n) : null, f = -1, p = null;
|
|
4515
4518
|
o && (p = new ResizeObserver((e) => {
|
|
4516
4519
|
let [r] = e;
|
|
4517
4520
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -4519,11 +4522,11 @@ function hs(e, t, n, r) {
|
|
|
4519
4522
|
(e = p) == null || e.observe(t);
|
|
4520
4523
|
})), n();
|
|
4521
4524
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
4522
|
-
let m, h = c ?
|
|
4525
|
+
let m, h = c ? qo(e) : null;
|
|
4523
4526
|
c && g();
|
|
4524
4527
|
function g() {
|
|
4525
|
-
let t =
|
|
4526
|
-
h && !
|
|
4528
|
+
let t = qo(e);
|
|
4529
|
+
h && !ms(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
4527
4530
|
}
|
|
4528
4531
|
return n(), () => {
|
|
4529
4532
|
var e;
|
|
@@ -4532,20 +4535,20 @@ function hs(e, t, n, r) {
|
|
|
4532
4535
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
4533
4536
|
};
|
|
4534
4537
|
}
|
|
4535
|
-
var
|
|
4538
|
+
var _s = go, vs = _o, ys = lo, bs = yo, xs = po, Ss = co, Cs = vo, ws = (e, t, n) => {
|
|
4536
4539
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
4537
|
-
platform:
|
|
4540
|
+
platform: ps,
|
|
4538
4541
|
...n
|
|
4539
4542
|
}, a = {
|
|
4540
4543
|
...i.platform,
|
|
4541
4544
|
_c: r
|
|
4542
4545
|
};
|
|
4543
|
-
return
|
|
4546
|
+
return so(e, t, {
|
|
4544
4547
|
...i,
|
|
4545
4548
|
platform: a
|
|
4546
4549
|
});
|
|
4547
|
-
},
|
|
4548
|
-
function
|
|
4550
|
+
}, Ts = typeof document < "u" ? c : function() {};
|
|
4551
|
+
function Es(e, t) {
|
|
4549
4552
|
if (e === t) return !0;
|
|
4550
4553
|
if (typeof e != typeof t) return !1;
|
|
4551
4554
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -4553,33 +4556,33 @@ function Ts(e, t) {
|
|
|
4553
4556
|
if (e && t && typeof e == "object") {
|
|
4554
4557
|
if (Array.isArray(e)) {
|
|
4555
4558
|
if (n = e.length, n !== t.length) return !1;
|
|
4556
|
-
for (r = n; r-- !== 0;) if (!
|
|
4559
|
+
for (r = n; r-- !== 0;) if (!Es(e[r], t[r])) return !1;
|
|
4557
4560
|
return !0;
|
|
4558
4561
|
}
|
|
4559
4562
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
4560
4563
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
4561
4564
|
for (r = n; r-- !== 0;) {
|
|
4562
4565
|
let n = i[r];
|
|
4563
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
4566
|
+
if (!(n === "_owner" && e.$$typeof) && !Es(e[n], t[n])) return !1;
|
|
4564
4567
|
}
|
|
4565
4568
|
return !0;
|
|
4566
4569
|
}
|
|
4567
4570
|
return e !== e && t !== t;
|
|
4568
4571
|
}
|
|
4569
|
-
function
|
|
4572
|
+
function Ds(e) {
|
|
4570
4573
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
4571
4574
|
}
|
|
4572
|
-
function
|
|
4573
|
-
let n =
|
|
4575
|
+
function Os(e, t) {
|
|
4576
|
+
let n = Ds(e);
|
|
4574
4577
|
return Math.round(t * n) / n;
|
|
4575
4578
|
}
|
|
4576
|
-
function
|
|
4579
|
+
function ks(t) {
|
|
4577
4580
|
let n = e.useRef(t);
|
|
4578
|
-
return
|
|
4581
|
+
return Ts(() => {
|
|
4579
4582
|
n.current = t;
|
|
4580
4583
|
}), n;
|
|
4581
4584
|
}
|
|
4582
|
-
function
|
|
4585
|
+
function As(t) {
|
|
4583
4586
|
t === void 0 && (t = {});
|
|
4584
4587
|
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({
|
|
4585
4588
|
x: 0,
|
|
@@ -4589,24 +4592,24 @@ function ks(t) {
|
|
|
4589
4592
|
middlewareData: {},
|
|
4590
4593
|
isPositioned: !1
|
|
4591
4594
|
}), [m, h] = e.useState(i);
|
|
4592
|
-
|
|
4595
|
+
Es(m, i) || h(i);
|
|
4593
4596
|
let [g, _] = e.useState(null), [v, y] = e.useState(null), b = e.useCallback((e) => {
|
|
4594
4597
|
e !== w.current && (w.current = e, _(e));
|
|
4595
4598
|
}, []), x = e.useCallback((e) => {
|
|
4596
4599
|
e !== T.current && (T.current = e, y(e));
|
|
4597
|
-
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D =
|
|
4600
|
+
}, []), S = o || g, C = s || v, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), ee = l != null, D = ks(l), te = ks(a), O = ks(u), k = e.useCallback(() => {
|
|
4598
4601
|
if (!w.current || !T.current) return;
|
|
4599
4602
|
let e = {
|
|
4600
4603
|
placement: n,
|
|
4601
4604
|
strategy: r,
|
|
4602
4605
|
middleware: m
|
|
4603
4606
|
};
|
|
4604
|
-
te.current && (e.platform = te.current),
|
|
4607
|
+
te.current && (e.platform = te.current), ws(w.current, T.current, e).then((e) => {
|
|
4605
4608
|
let t = {
|
|
4606
4609
|
...e,
|
|
4607
4610
|
isPositioned: O.current !== !1
|
|
4608
4611
|
};
|
|
4609
|
-
A.current && !
|
|
4612
|
+
A.current && !Es(E.current, t) && (E.current = t, f.flushSync(() => {
|
|
4610
4613
|
p(t);
|
|
4611
4614
|
}));
|
|
4612
4615
|
});
|
|
@@ -4617,16 +4620,16 @@ function ks(t) {
|
|
|
4617
4620
|
te,
|
|
4618
4621
|
O
|
|
4619
4622
|
]);
|
|
4620
|
-
|
|
4623
|
+
Ts(() => {
|
|
4621
4624
|
u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, p((e) => ({
|
|
4622
4625
|
...e,
|
|
4623
4626
|
isPositioned: !1
|
|
4624
4627
|
})));
|
|
4625
4628
|
}, [u]);
|
|
4626
4629
|
let A = e.useRef(!1);
|
|
4627
|
-
|
|
4630
|
+
Ts(() => (A.current = !0, () => {
|
|
4628
4631
|
A.current = !1;
|
|
4629
|
-
}), []),
|
|
4632
|
+
}), []), Ts(() => {
|
|
4630
4633
|
if (S && (w.current = S), C && (T.current = C), S && C) {
|
|
4631
4634
|
if (D.current) return D.current(S, C, k);
|
|
4632
4635
|
k();
|
|
@@ -4653,11 +4656,11 @@ function ks(t) {
|
|
|
4653
4656
|
top: 0
|
|
4654
4657
|
};
|
|
4655
4658
|
if (!M.floating) return e;
|
|
4656
|
-
let t =
|
|
4659
|
+
let t = Os(M.floating, d.x), n = Os(M.floating, d.y);
|
|
4657
4660
|
return c ? {
|
|
4658
4661
|
...e,
|
|
4659
4662
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
4660
|
-
...
|
|
4663
|
+
...Ds(M.floating) >= 1.5 && { willChange: "transform" }
|
|
4661
4664
|
} : {
|
|
4662
4665
|
position: r,
|
|
4663
4666
|
left: t,
|
|
@@ -4684,7 +4687,7 @@ function ks(t) {
|
|
|
4684
4687
|
N
|
|
4685
4688
|
]);
|
|
4686
4689
|
}
|
|
4687
|
-
var
|
|
4690
|
+
var js = (e) => {
|
|
4688
4691
|
function t(e) {
|
|
4689
4692
|
return {}.hasOwnProperty.call(e, "current");
|
|
4690
4693
|
}
|
|
@@ -4693,22 +4696,15 @@ var As = (e) => {
|
|
|
4693
4696
|
options: e,
|
|
4694
4697
|
fn(n) {
|
|
4695
4698
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
4696
|
-
return r && t(r) ? r.current == null ? {} :
|
|
4699
|
+
return r && t(r) ? r.current == null ? {} : Ss({
|
|
4697
4700
|
element: r.current,
|
|
4698
4701
|
padding: i
|
|
4699
|
-
}).fn(n) : r ?
|
|
4702
|
+
}).fn(n) : r ? Ss({
|
|
4700
4703
|
element: r,
|
|
4701
4704
|
padding: i
|
|
4702
4705
|
}).fn(n) : {};
|
|
4703
4706
|
}
|
|
4704
4707
|
};
|
|
4705
|
-
}, js = (e, t) => {
|
|
4706
|
-
let n = gs(e);
|
|
4707
|
-
return {
|
|
4708
|
-
name: n.name,
|
|
4709
|
-
fn: n.fn,
|
|
4710
|
-
options: [e, t]
|
|
4711
|
-
};
|
|
4712
4708
|
}, Ms = (e, t) => {
|
|
4713
4709
|
let n = _s(e);
|
|
4714
4710
|
return {
|
|
@@ -4716,17 +4712,17 @@ var As = (e) => {
|
|
|
4716
4712
|
fn: n.fn,
|
|
4717
4713
|
options: [e, t]
|
|
4718
4714
|
};
|
|
4719
|
-
}, Ns = (e, t) =>
|
|
4720
|
-
fn: Ss(e).fn,
|
|
4721
|
-
options: [e, t]
|
|
4722
|
-
}), Ps = (e, t) => {
|
|
4715
|
+
}, Ns = (e, t) => {
|
|
4723
4716
|
let n = vs(e);
|
|
4724
4717
|
return {
|
|
4725
4718
|
name: n.name,
|
|
4726
4719
|
fn: n.fn,
|
|
4727
4720
|
options: [e, t]
|
|
4728
4721
|
};
|
|
4729
|
-
},
|
|
4722
|
+
}, Ps = (e, t) => ({
|
|
4723
|
+
fn: Cs(e).fn,
|
|
4724
|
+
options: [e, t]
|
|
4725
|
+
}), Fs = (e, t) => {
|
|
4730
4726
|
let n = ys(e);
|
|
4731
4727
|
return {
|
|
4732
4728
|
name: n.name,
|
|
@@ -4741,13 +4737,20 @@ var As = (e) => {
|
|
|
4741
4737
|
options: [e, t]
|
|
4742
4738
|
};
|
|
4743
4739
|
}, Ls = (e, t) => {
|
|
4744
|
-
let n =
|
|
4740
|
+
let n = xs(e);
|
|
4745
4741
|
return {
|
|
4746
4742
|
name: n.name,
|
|
4747
4743
|
fn: n.fn,
|
|
4748
4744
|
options: [e, t]
|
|
4749
4745
|
};
|
|
4750
|
-
}, Rs =
|
|
4746
|
+
}, Rs = (e, t) => {
|
|
4747
|
+
let n = js(e);
|
|
4748
|
+
return {
|
|
4749
|
+
name: n.name,
|
|
4750
|
+
fn: n.fn,
|
|
4751
|
+
options: [e, t]
|
|
4752
|
+
};
|
|
4753
|
+
}, zs = "Arrow", Bs = e.forwardRef((t, n) => {
|
|
4751
4754
|
let { children: r, width: i = 10, height: a = 5, ...o } = t;
|
|
4752
4755
|
return /* @__PURE__ */ e.createElement(A.svg, {
|
|
4753
4756
|
...o,
|
|
@@ -4758,11 +4761,11 @@ var As = (e) => {
|
|
|
4758
4761
|
preserveAspectRatio: "none"
|
|
4759
4762
|
}, t.asChild ? r : /* @__PURE__ */ e.createElement("polygon", { points: "0,0 30,0 15,10" }));
|
|
4760
4763
|
});
|
|
4761
|
-
|
|
4762
|
-
var
|
|
4764
|
+
Bs.displayName = zs;
|
|
4765
|
+
var Vs = Bs;
|
|
4763
4766
|
//#endregion
|
|
4764
4767
|
//#region ../../node_modules/@huin-core/react-use-size/dist/index.mjs
|
|
4765
|
-
function
|
|
4768
|
+
function Hs(t) {
|
|
4766
4769
|
let [n, r] = e.useState(void 0);
|
|
4767
4770
|
return D(() => {
|
|
4768
4771
|
if (t) {
|
|
@@ -4788,17 +4791,17 @@ function Vs(t) {
|
|
|
4788
4791
|
}
|
|
4789
4792
|
//#endregion
|
|
4790
4793
|
//#region ../../node_modules/@huin-core/react-popper/dist/index.mjs
|
|
4791
|
-
var
|
|
4794
|
+
var Us = "Popper", [Ws, Gs] = h(Us), [Ks, qs] = Ws(Us), Js = (t) => {
|
|
4792
4795
|
let { __scopePopper: n, children: r } = t, [i, a] = e.useState(null);
|
|
4793
|
-
return /* @__PURE__ */ e.createElement(
|
|
4796
|
+
return /* @__PURE__ */ e.createElement(Ks, {
|
|
4794
4797
|
scope: n,
|
|
4795
4798
|
anchor: i,
|
|
4796
4799
|
onAnchorChange: a
|
|
4797
4800
|
}, r);
|
|
4798
4801
|
};
|
|
4799
|
-
|
|
4800
|
-
var
|
|
4801
|
-
let { __scopePopper: r, virtualRef: i, ...a } = t, o =
|
|
4802
|
+
Js.displayName = Us;
|
|
4803
|
+
var Ys = "PopperAnchor", Xs = e.forwardRef((t, n) => {
|
|
4804
|
+
let { __scopePopper: r, virtualRef: i, ...a } = t, o = qs(Ys, r), s = e.useRef(null), c = b(n, s);
|
|
4802
4805
|
return e.useEffect(() => {
|
|
4803
4806
|
o.onAnchorChange(i?.current || s.current);
|
|
4804
4807
|
}), i ? null : /* @__PURE__ */ e.createElement(A.div, {
|
|
@@ -4806,9 +4809,9 @@ var Js = "PopperAnchor", Ys = e.forwardRef((t, n) => {
|
|
|
4806
4809
|
ref: c
|
|
4807
4810
|
});
|
|
4808
4811
|
});
|
|
4809
|
-
|
|
4810
|
-
var
|
|
4811
|
-
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, _ =
|
|
4812
|
+
Xs.displayName = Ys;
|
|
4813
|
+
var Zs = "PopperContent", [Qs, $s] = Ws(Zs), ec = e.forwardRef((t, n) => {
|
|
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, _ = qs(Zs, r), [v, y] = e.useState(null), x = b(n, (e) => y(e)), [S, C] = e.useState(null), w = Hs(S), T = w?.width ?? 0, E = w?.height ?? 0, ee = i + (o === "center" ? "" : "-" + o), te = typeof d == "number" ? d : {
|
|
4812
4815
|
top: 0,
|
|
4813
4816
|
right: 0,
|
|
4814
4817
|
bottom: 0,
|
|
@@ -4816,46 +4819,46 @@ var Xs = "PopperContent", [Zs, Qs] = Us(Xs), $s = e.forwardRef((t, n) => {
|
|
|
4816
4819
|
...d
|
|
4817
4820
|
}, O = Array.isArray(u) ? u : [u], k = O.length > 0, j = {
|
|
4818
4821
|
padding: te,
|
|
4819
|
-
boundary: O.filter(
|
|
4822
|
+
boundary: O.filter(ic),
|
|
4820
4823
|
altBoundary: k
|
|
4821
|
-
}, { refs: N, floatingStyles: P, placement: ne, isPositioned: re, middlewareData: F } =
|
|
4824
|
+
}, { refs: N, floatingStyles: P, placement: ne, isPositioned: re, middlewareData: F } = As({
|
|
4822
4825
|
strategy: "fixed",
|
|
4823
4826
|
placement: ee,
|
|
4824
|
-
whileElementsMounted: (...e) =>
|
|
4827
|
+
whileElementsMounted: (...e) => gs(...e, { animationFrame: m === "always" }),
|
|
4825
4828
|
elements: { reference: _.anchor },
|
|
4826
4829
|
middleware: [
|
|
4827
|
-
|
|
4830
|
+
Ms({
|
|
4828
4831
|
mainAxis: a + E,
|
|
4829
4832
|
alignmentAxis: s
|
|
4830
4833
|
}),
|
|
4831
|
-
l &&
|
|
4834
|
+
l && Ns({
|
|
4832
4835
|
mainAxis: !0,
|
|
4833
4836
|
crossAxis: !1,
|
|
4834
|
-
limiter: f === "partial" ?
|
|
4837
|
+
limiter: f === "partial" ? Ps() : void 0,
|
|
4835
4838
|
...j
|
|
4836
4839
|
}),
|
|
4837
|
-
l &&
|
|
4838
|
-
|
|
4840
|
+
l && Fs({ ...j }),
|
|
4841
|
+
Is({
|
|
4839
4842
|
...j,
|
|
4840
4843
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
4841
4844
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
4842
4845
|
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`);
|
|
4843
4846
|
}
|
|
4844
4847
|
}),
|
|
4845
|
-
S &&
|
|
4848
|
+
S && Rs({
|
|
4846
4849
|
element: S,
|
|
4847
4850
|
padding: c
|
|
4848
4851
|
}),
|
|
4849
|
-
|
|
4852
|
+
ac({
|
|
4850
4853
|
arrowWidth: T,
|
|
4851
4854
|
arrowHeight: E
|
|
4852
4855
|
}),
|
|
4853
|
-
p &&
|
|
4856
|
+
p && Ls({
|
|
4854
4857
|
strategy: "referenceHidden",
|
|
4855
4858
|
...j
|
|
4856
4859
|
})
|
|
4857
4860
|
]
|
|
4858
|
-
}), [ie, I] =
|
|
4861
|
+
}), [ie, I] = oc(ne), L = M(h);
|
|
4859
4862
|
D(() => {
|
|
4860
4863
|
re && L?.();
|
|
4861
4864
|
}, [re, L]);
|
|
@@ -4877,7 +4880,7 @@ var Xs = "PopperContent", [Zs, Qs] = Us(Xs), $s = e.forwardRef((t, n) => {
|
|
|
4877
4880
|
}
|
|
4878
4881
|
},
|
|
4879
4882
|
dir: t.dir
|
|
4880
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4883
|
+
}, /* @__PURE__ */ e.createElement(Qs, {
|
|
4881
4884
|
scope: r,
|
|
4882
4885
|
placedSide: ie,
|
|
4883
4886
|
onArrowChange: C,
|
|
@@ -4895,14 +4898,14 @@ var Xs = "PopperContent", [Zs, Qs] = Us(Xs), $s = e.forwardRef((t, n) => {
|
|
|
4895
4898
|
}
|
|
4896
4899
|
})));
|
|
4897
4900
|
});
|
|
4898
|
-
|
|
4899
|
-
var
|
|
4901
|
+
ec.displayName = Zs;
|
|
4902
|
+
var tc = "PopperArrow", nc = {
|
|
4900
4903
|
top: "bottom",
|
|
4901
4904
|
right: "left",
|
|
4902
4905
|
bottom: "top",
|
|
4903
4906
|
left: "right"
|
|
4904
|
-
},
|
|
4905
|
-
let { __scopePopper: r, ...i } = t, a =
|
|
4907
|
+
}, rc = e.forwardRef(function(t, n) {
|
|
4908
|
+
let { __scopePopper: r, ...i } = t, a = $s(tc, r), o = nc[a.placedSide];
|
|
4906
4909
|
return /* @__PURE__ */ e.createElement("span", {
|
|
4907
4910
|
ref: a.onArrowChange,
|
|
4908
4911
|
style: {
|
|
@@ -4924,7 +4927,7 @@ var ec = "PopperArrow", tc = {
|
|
|
4924
4927
|
}[a.placedSide],
|
|
4925
4928
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
4926
4929
|
}
|
|
4927
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4930
|
+
}, /* @__PURE__ */ e.createElement(Vs, {
|
|
4928
4931
|
...i,
|
|
4929
4932
|
ref: n,
|
|
4930
4933
|
style: {
|
|
@@ -4933,15 +4936,15 @@ var ec = "PopperArrow", tc = {
|
|
|
4933
4936
|
}
|
|
4934
4937
|
}));
|
|
4935
4938
|
});
|
|
4936
|
-
|
|
4937
|
-
function
|
|
4939
|
+
rc.displayName = tc;
|
|
4940
|
+
function ic(e) {
|
|
4938
4941
|
return e !== null;
|
|
4939
4942
|
}
|
|
4940
|
-
var
|
|
4943
|
+
var ac = (e) => ({
|
|
4941
4944
|
name: "transformOrigin",
|
|
4942
4945
|
options: e,
|
|
4943
4946
|
fn(t) {
|
|
4944
|
-
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] =
|
|
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] = oc(n), u = {
|
|
4945
4948
|
start: "0%",
|
|
4946
4949
|
center: "50%",
|
|
4947
4950
|
end: "100%"
|
|
@@ -4952,15 +4955,15 @@ var ic = (e) => ({
|
|
|
4952
4955
|
} };
|
|
4953
4956
|
}
|
|
4954
4957
|
});
|
|
4955
|
-
function
|
|
4958
|
+
function oc(e) {
|
|
4956
4959
|
let [t, n = "center"] = e.split("-");
|
|
4957
4960
|
return [t, n];
|
|
4958
4961
|
}
|
|
4959
|
-
var
|
|
4962
|
+
var sc = Js, cc = Xs, lc = ec, uc = rc, dc = Mn(), fc = function() {}, pc = e.forwardRef(function(t, n) {
|
|
4960
4963
|
var r = e.useRef(null), i = e.useState({
|
|
4961
|
-
onScrollCapture:
|
|
4962
|
-
onWheelCapture:
|
|
4963
|
-
onTouchMoveCapture:
|
|
4964
|
+
onScrollCapture: fc,
|
|
4965
|
+
onWheelCapture: fc,
|
|
4966
|
+
onTouchMoveCapture: fc
|
|
4964
4967
|
}), 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 = yn(t, [
|
|
4965
4968
|
"forwardProps",
|
|
4966
4969
|
"children",
|
|
@@ -4976,7 +4979,7 @@ var oc = qs, sc = Ys, cc = $s, lc = nc, uc = Mn(), dc = function() {}, fc = e.fo
|
|
|
4976
4979
|
"gapMode"
|
|
4977
4980
|
]), x = p, S = kn([r, n]), C = G(G({}, b), a);
|
|
4978
4981
|
return e.createElement(e.Fragment, null, d && e.createElement(x, {
|
|
4979
|
-
sideCar:
|
|
4982
|
+
sideCar: dc,
|
|
4980
4983
|
removeScrollBar: u,
|
|
4981
4984
|
shards: f,
|
|
4982
4985
|
noIsolation: m,
|
|
@@ -4990,91 +4993,91 @@ var oc = qs, sc = Ys, cc = $s, lc = nc, uc = Mn(), dc = function() {}, fc = e.fo
|
|
|
4990
4993
|
ref: S
|
|
4991
4994
|
}), c));
|
|
4992
4995
|
});
|
|
4993
|
-
|
|
4996
|
+
pc.defaultProps = {
|
|
4994
4997
|
enabled: !0,
|
|
4995
4998
|
removeScrollBar: !0,
|
|
4996
4999
|
inert: !1
|
|
4997
|
-
},
|
|
5000
|
+
}, pc.classNames = {
|
|
4998
5001
|
fullWidth: Sn,
|
|
4999
5002
|
zeroRight: xn
|
|
5000
5003
|
};
|
|
5001
5004
|
//#endregion
|
|
5002
5005
|
//#region ../../node_modules/@huin-core/react-popover/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
5003
|
-
var
|
|
5006
|
+
var mc = !1;
|
|
5004
5007
|
if (typeof window < "u") try {
|
|
5005
|
-
var
|
|
5006
|
-
return
|
|
5008
|
+
var hc = Object.defineProperty({}, "passive", { get: function() {
|
|
5009
|
+
return mc = !0, !0;
|
|
5007
5010
|
} });
|
|
5008
|
-
window.addEventListener("test",
|
|
5011
|
+
window.addEventListener("test", hc, hc), window.removeEventListener("test", hc, hc);
|
|
5009
5012
|
} catch {
|
|
5010
|
-
|
|
5013
|
+
mc = !1;
|
|
5011
5014
|
}
|
|
5012
|
-
var
|
|
5015
|
+
var gc = mc ? { passive: !1 } : !1, _c = function(e) {
|
|
5013
5016
|
return e.tagName === "TEXTAREA";
|
|
5014
|
-
},
|
|
5017
|
+
}, vc = function(e, t) {
|
|
5015
5018
|
var n = window.getComputedStyle(e);
|
|
5016
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
5017
|
-
}, vc = function(e) {
|
|
5018
|
-
return _c(e, "overflowY");
|
|
5019
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !_c(e) && n[t] === "visible");
|
|
5019
5020
|
}, yc = function(e) {
|
|
5020
|
-
return
|
|
5021
|
-
}, bc = function(e
|
|
5021
|
+
return vc(e, "overflowY");
|
|
5022
|
+
}, bc = function(e) {
|
|
5023
|
+
return vc(e, "overflowX");
|
|
5024
|
+
}, xc = function(e, t) {
|
|
5022
5025
|
var n = t.ownerDocument, r = t;
|
|
5023
5026
|
do {
|
|
5024
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
5025
|
-
var i =
|
|
5027
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), wc(e, r)) {
|
|
5028
|
+
var i = Tc(e, r);
|
|
5026
5029
|
if (i[1] > i[2]) return !0;
|
|
5027
5030
|
}
|
|
5028
5031
|
r = r.parentNode;
|
|
5029
5032
|
} while (r && r !== n.body);
|
|
5030
5033
|
return !1;
|
|
5031
|
-
},
|
|
5034
|
+
}, Sc = function(e) {
|
|
5032
5035
|
return [
|
|
5033
5036
|
e.scrollTop,
|
|
5034
5037
|
e.scrollHeight,
|
|
5035
5038
|
e.clientHeight
|
|
5036
5039
|
];
|
|
5037
|
-
},
|
|
5040
|
+
}, Cc = function(e) {
|
|
5038
5041
|
return [
|
|
5039
5042
|
e.scrollLeft,
|
|
5040
5043
|
e.scrollWidth,
|
|
5041
5044
|
e.clientWidth
|
|
5042
5045
|
];
|
|
5043
|
-
}, Cc = function(e, t) {
|
|
5044
|
-
return e === "v" ? vc(t) : yc(t);
|
|
5045
5046
|
}, wc = function(e, t) {
|
|
5046
|
-
return e === "v" ?
|
|
5047
|
+
return e === "v" ? yc(t) : bc(t);
|
|
5047
5048
|
}, Tc = function(e, t) {
|
|
5049
|
+
return e === "v" ? Sc(t) : Cc(t);
|
|
5050
|
+
}, Ec = function(e, t) {
|
|
5048
5051
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
5049
|
-
},
|
|
5050
|
-
var a =
|
|
5052
|
+
}, Dc = function(e, t, n, r, i) {
|
|
5053
|
+
var a = Ec(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
5051
5054
|
do {
|
|
5052
|
-
var p =
|
|
5053
|
-
(m || h) &&
|
|
5055
|
+
var p = Tc(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
5056
|
+
(m || h) && wc(e, s) && (d += h, f += m), s = s instanceof ShadowRoot ? s.host : s.parentNode;
|
|
5054
5057
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
5055
5058
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
5056
|
-
}, Dc = function(e) {
|
|
5057
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
5058
5059
|
}, Oc = function(e) {
|
|
5059
|
-
return [e.
|
|
5060
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
5060
5061
|
}, kc = function(e) {
|
|
5062
|
+
return [e.deltaX, e.deltaY];
|
|
5063
|
+
}, Ac = function(e) {
|
|
5061
5064
|
return e && "current" in e ? e.current : e;
|
|
5062
|
-
},
|
|
5065
|
+
}, jc = function(e, t) {
|
|
5063
5066
|
return e[0] === t[0] && e[1] === t[1];
|
|
5064
|
-
},
|
|
5067
|
+
}, Mc = function(e) {
|
|
5065
5068
|
return `
|
|
5066
5069
|
.block-interactivity-${e} {pointer-events: none;}
|
|
5067
5070
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
5068
5071
|
`;
|
|
5069
|
-
},
|
|
5070
|
-
function
|
|
5071
|
-
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(
|
|
5072
|
+
}, Nc = 0, Pc = [];
|
|
5073
|
+
function Fc(t) {
|
|
5074
|
+
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(Nc++)[0], o = e.useState(Gn)[0], s = e.useRef(t);
|
|
5072
5075
|
e.useEffect(function() {
|
|
5073
5076
|
s.current = t;
|
|
5074
5077
|
}, [t]), e.useEffect(function() {
|
|
5075
5078
|
if (t.inert) {
|
|
5076
5079
|
document.body.classList.add(`block-interactivity-${a}`);
|
|
5077
|
-
var e = bn([t.lockRef.current], (t.shards || []).map(
|
|
5080
|
+
var e = bn([t.lockRef.current], (t.shards || []).map(Ac), !0).filter(Boolean);
|
|
5078
5081
|
return e.forEach(function(e) {
|
|
5079
5082
|
return e.classList.add(`allow-interactivity-${a}`);
|
|
5080
5083
|
}), function() {
|
|
@@ -5090,26 +5093,26 @@ function Pc(t) {
|
|
|
5090
5093
|
]);
|
|
5091
5094
|
var c = e.useCallback(function(e, t) {
|
|
5092
5095
|
if ("touches" in e && e.touches.length === 2) return !s.current.allowPinchZoom;
|
|
5093
|
-
var n =
|
|
5096
|
+
var n = Oc(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";
|
|
5094
5097
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
5095
|
-
var f =
|
|
5098
|
+
var f = xc(d, u);
|
|
5096
5099
|
if (!f) return !0;
|
|
5097
|
-
if (f ? l = d : (l = d === "v" ? "h" : "v", f =
|
|
5100
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = xc(d, u)), !f) return !1;
|
|
5098
5101
|
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
5099
5102
|
var p = i.current || l;
|
|
5100
|
-
return
|
|
5103
|
+
return Dc(p, t, e, p === "h" ? o : c, !0);
|
|
5101
5104
|
}, []), l = e.useCallback(function(e) {
|
|
5102
5105
|
var t = e;
|
|
5103
|
-
if (!(!
|
|
5104
|
-
var r = "deltaY" in t ?
|
|
5105
|
-
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) &&
|
|
5106
|
+
if (!(!Pc.length || Pc[Pc.length - 1] !== o)) {
|
|
5107
|
+
var r = "deltaY" in t ? kc(t) : Oc(t), i = n.current.filter(function(e) {
|
|
5108
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && jc(e.delta, r);
|
|
5106
5109
|
})[0];
|
|
5107
5110
|
if (i && i.should) {
|
|
5108
5111
|
t.cancelable && t.preventDefault();
|
|
5109
5112
|
return;
|
|
5110
5113
|
}
|
|
5111
5114
|
if (!i) {
|
|
5112
|
-
var a = (s.current.shards || []).map(
|
|
5115
|
+
var a = (s.current.shards || []).map(Ac).filter(Boolean).filter(function(e) {
|
|
5113
5116
|
return e.contains(t.target);
|
|
5114
5117
|
});
|
|
5115
5118
|
(a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
@@ -5121,7 +5124,7 @@ function Pc(t) {
|
|
|
5121
5124
|
delta: t,
|
|
5122
5125
|
target: r,
|
|
5123
5126
|
should: i,
|
|
5124
|
-
shadowParent:
|
|
5127
|
+
shadowParent: Ic(r)
|
|
5125
5128
|
};
|
|
5126
5129
|
n.current.push(a), setTimeout(function() {
|
|
5127
5130
|
n.current = n.current.filter(function(e) {
|
|
@@ -5129,48 +5132,48 @@ function Pc(t) {
|
|
|
5129
5132
|
});
|
|
5130
5133
|
}, 1);
|
|
5131
5134
|
}, []), d = e.useCallback(function(e) {
|
|
5132
|
-
r.current =
|
|
5135
|
+
r.current = Oc(e), i.current = void 0;
|
|
5133
5136
|
}, []), f = e.useCallback(function(e) {
|
|
5134
|
-
u(e.type,
|
|
5137
|
+
u(e.type, kc(e), e.target, c(e, t.lockRef.current));
|
|
5135
5138
|
}, []), p = e.useCallback(function(e) {
|
|
5136
|
-
u(e.type,
|
|
5139
|
+
u(e.type, Oc(e), e.target, c(e, t.lockRef.current));
|
|
5137
5140
|
}, []);
|
|
5138
5141
|
e.useEffect(function() {
|
|
5139
|
-
return
|
|
5142
|
+
return Pc.push(o), t.setCallbacks({
|
|
5140
5143
|
onScrollCapture: f,
|
|
5141
5144
|
onWheelCapture: f,
|
|
5142
5145
|
onTouchMoveCapture: p
|
|
5143
|
-
}), document.addEventListener("wheel", l,
|
|
5144
|
-
|
|
5146
|
+
}), document.addEventListener("wheel", l, gc), document.addEventListener("touchmove", l, gc), document.addEventListener("touchstart", d, gc), function() {
|
|
5147
|
+
Pc = Pc.filter(function(e) {
|
|
5145
5148
|
return e !== o;
|
|
5146
|
-
}), document.removeEventListener("wheel", l,
|
|
5149
|
+
}), document.removeEventListener("wheel", l, gc), document.removeEventListener("touchmove", l, gc), document.removeEventListener("touchstart", d, gc);
|
|
5147
5150
|
};
|
|
5148
5151
|
}, []);
|
|
5149
5152
|
var m = t.removeScrollBar, h = t.inert;
|
|
5150
|
-
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles:
|
|
5153
|
+
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: Mc(a) }) : null, m ? e.createElement(tr, { gapMode: t.gapMode }) : null);
|
|
5151
5154
|
}
|
|
5152
|
-
function
|
|
5155
|
+
function Ic(e) {
|
|
5153
5156
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
5154
5157
|
return t;
|
|
5155
5158
|
}
|
|
5156
5159
|
//#endregion
|
|
5157
5160
|
//#region ../../node_modules/@huin-core/react-popover/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
5158
|
-
var
|
|
5159
|
-
return e.createElement(
|
|
5161
|
+
var Lc = Pn(dc, Fc), Rc = e.forwardRef(function(t, n) {
|
|
5162
|
+
return e.createElement(pc, G({}, t, {
|
|
5160
5163
|
ref: n,
|
|
5161
|
-
sideCar:
|
|
5164
|
+
sideCar: Lc
|
|
5162
5165
|
}));
|
|
5163
5166
|
});
|
|
5164
|
-
|
|
5167
|
+
Rc.classNames = pc.classNames;
|
|
5165
5168
|
//#endregion
|
|
5166
5169
|
//#region ../../node_modules/@huin-core/react-popover/dist/index.mjs
|
|
5167
|
-
var
|
|
5168
|
-
let { __scopePopover: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !1 } = t, c =
|
|
5170
|
+
var zc = "Popover", [Bc, Vc] = h(zc, [Gs]), Hc = Gs(), [Uc, Wc] = Bc(zc), Gc = (t) => {
|
|
5171
|
+
let { __scopePopover: n, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !1 } = t, c = Hc(n), l = e.useRef(null), [u, d] = e.useState(!1), [f = !1, p] = N({
|
|
5169
5172
|
prop: i,
|
|
5170
5173
|
defaultProp: a,
|
|
5171
5174
|
onChange: o
|
|
5172
5175
|
});
|
|
5173
|
-
return /* @__PURE__ */ e.createElement(
|
|
5176
|
+
return /* @__PURE__ */ e.createElement(sc, { ...c }, /* @__PURE__ */ e.createElement(Uc, {
|
|
5174
5177
|
scope: n,
|
|
5175
5178
|
contentId: k(),
|
|
5176
5179
|
triggerRef: l,
|
|
@@ -5183,19 +5186,19 @@ var Rc = "Popover", [zc, Bc] = h(Rc, [Ws]), Vc = Ws(), [Hc, Uc] = zc(Rc), Wc = (
|
|
|
5183
5186
|
modal: s
|
|
5184
5187
|
}, r));
|
|
5185
5188
|
};
|
|
5186
|
-
|
|
5187
|
-
var
|
|
5188
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5189
|
-
return t.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ t.createElement(
|
|
5189
|
+
Gc.displayName = zc;
|
|
5190
|
+
var Kc = Gc, qc = "PopoverAnchor", Jc = t.forwardRef((e, n) => {
|
|
5191
|
+
let { __scopePopover: r, ...i } = e, a = Wc(qc, r), o = Hc(r), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = a;
|
|
5192
|
+
return t.useEffect(() => (s(), () => c()), [s, c]), /* @__PURE__ */ t.createElement(cc, {
|
|
5190
5193
|
...o,
|
|
5191
5194
|
...i,
|
|
5192
5195
|
ref: n
|
|
5193
5196
|
});
|
|
5194
5197
|
});
|
|
5195
|
-
|
|
5196
|
-
var
|
|
5197
|
-
let { __scopePopover: n, forceMount: r, children: i, container: a } = e, o =
|
|
5198
|
-
return /* @__PURE__ */ t.createElement(
|
|
5198
|
+
Jc.displayName = qc;
|
|
5199
|
+
var Yc = "PopoverPortal", [Xc, Zc] = Bc(Yc, { forceMount: void 0 }), Qc = (e) => {
|
|
5200
|
+
let { __scopePopover: n, forceMount: r, children: i, container: a } = e, o = Wc(Yc, n);
|
|
5201
|
+
return /* @__PURE__ */ t.createElement(Xc, {
|
|
5199
5202
|
scope: n,
|
|
5200
5203
|
forceMount: r
|
|
5201
5204
|
}, /* @__PURE__ */ t.createElement(Se, { present: r || o.open }, /* @__PURE__ */ t.createElement(vn, {
|
|
@@ -5203,27 +5206,27 @@ var Jc = "PopoverPortal", [Yc, Xc] = zc(Jc, { forceMount: void 0 }), Zc = (e) =>
|
|
|
5203
5206
|
container: a
|
|
5204
5207
|
}, i)));
|
|
5205
5208
|
};
|
|
5206
|
-
|
|
5207
|
-
var
|
|
5208
|
-
let r =
|
|
5209
|
-
return /* @__PURE__ */ t.createElement(Se, { present: i || o.open }, o.modal ? /* @__PURE__ */ t.createElement(
|
|
5209
|
+
Qc.displayName = Yc;
|
|
5210
|
+
var $c = "PopoverContent", el = t.forwardRef((e, n) => {
|
|
5211
|
+
let r = Zc($c, e.__scopePopover), { forceMount: i = r.forceMount, ...a } = e, o = Wc($c, e.__scopePopover);
|
|
5212
|
+
return /* @__PURE__ */ t.createElement(Se, { present: i || o.open }, o.modal ? /* @__PURE__ */ t.createElement(tl, {
|
|
5210
5213
|
...a,
|
|
5211
5214
|
ref: n
|
|
5212
|
-
}) : /* @__PURE__ */ t.createElement(
|
|
5215
|
+
}) : /* @__PURE__ */ t.createElement(nl, {
|
|
5213
5216
|
...a,
|
|
5214
5217
|
ref: n
|
|
5215
5218
|
}));
|
|
5216
5219
|
});
|
|
5217
|
-
|
|
5218
|
-
var
|
|
5219
|
-
let r =
|
|
5220
|
+
el.displayName = $c;
|
|
5221
|
+
var tl = t.forwardRef((e, n) => {
|
|
5222
|
+
let r = Wc($c, e.__scopePopover), i = t.useRef(null), a = b(n, i), o = t.useRef(!1);
|
|
5220
5223
|
return t.useEffect(() => {
|
|
5221
5224
|
let e = i.current;
|
|
5222
5225
|
if (e) return Fr(e);
|
|
5223
|
-
}, []), /* @__PURE__ */ t.createElement(
|
|
5226
|
+
}, []), /* @__PURE__ */ t.createElement(Rc, {
|
|
5224
5227
|
as: x,
|
|
5225
5228
|
allowPinchZoom: !0
|
|
5226
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5229
|
+
}, /* @__PURE__ */ t.createElement(rl, {
|
|
5227
5230
|
...e,
|
|
5228
5231
|
ref: a,
|
|
5229
5232
|
trapFocus: r.open,
|
|
@@ -5237,9 +5240,9 @@ var el = t.forwardRef((e, n) => {
|
|
|
5237
5240
|
}, { checkForDefaultPrevented: !1 }),
|
|
5238
5241
|
onFocusOutside: _(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
5239
5242
|
}));
|
|
5240
|
-
}),
|
|
5241
|
-
let r =
|
|
5242
|
-
return /* @__PURE__ */ t.createElement(
|
|
5243
|
+
}), nl = t.forwardRef((e, n) => {
|
|
5244
|
+
let r = Wc($c, e.__scopePopover), i = t.useRef(!1), a = t.useRef(!1);
|
|
5245
|
+
return /* @__PURE__ */ t.createElement(rl, {
|
|
5243
5246
|
...e,
|
|
5244
5247
|
ref: n,
|
|
5245
5248
|
trapFocus: !1,
|
|
@@ -5253,8 +5256,8 @@ var el = t.forwardRef((e, n) => {
|
|
|
5253
5256
|
r.triggerRef.current?.contains(n) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
5254
5257
|
}
|
|
5255
5258
|
});
|
|
5256
|
-
}),
|
|
5257
|
-
let { __scopePopover: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, ...f } = e, p =
|
|
5259
|
+
}), rl = t.forwardRef((e, n) => {
|
|
5260
|
+
let { __scopePopover: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, ...f } = e, p = Wc($c, r), m = Hc(r);
|
|
5258
5261
|
return pi(), /* @__PURE__ */ t.createElement(ei, {
|
|
5259
5262
|
asChild: !0,
|
|
5260
5263
|
loop: !0,
|
|
@@ -5269,8 +5272,8 @@ var el = t.forwardRef((e, n) => {
|
|
|
5269
5272
|
onPointerDownOutside: l,
|
|
5270
5273
|
onFocusOutside: u,
|
|
5271
5274
|
onDismiss: () => p.onOpenChange(!1)
|
|
5272
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5273
|
-
"data-state":
|
|
5275
|
+
}, /* @__PURE__ */ t.createElement(lc, {
|
|
5276
|
+
"data-state": il(p.open),
|
|
5274
5277
|
role: "dialog",
|
|
5275
5278
|
id: p.contentId,
|
|
5276
5279
|
...m,
|
|
@@ -5286,28 +5289,28 @@ var el = t.forwardRef((e, n) => {
|
|
|
5286
5289
|
}
|
|
5287
5290
|
})));
|
|
5288
5291
|
});
|
|
5289
|
-
function
|
|
5292
|
+
function il(e) {
|
|
5290
5293
|
return e ? "open" : "closed";
|
|
5291
5294
|
}
|
|
5292
|
-
var
|
|
5293
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5295
|
+
var al = "PopoverTrigger", ol = t.forwardRef((e, n) => {
|
|
5296
|
+
let { __scopePopover: r, ...i } = e, a = Wc(al, r), o = Hc(r), s = b(n, a.triggerRef), c = /* @__PURE__ */ t.createElement(A.button, {
|
|
5294
5297
|
type: "button",
|
|
5295
5298
|
"aria-haspopup": "dialog",
|
|
5296
5299
|
"aria-expanded": a.open,
|
|
5297
5300
|
"aria-controls": a.contentId,
|
|
5298
|
-
"data-state":
|
|
5301
|
+
"data-state": il(a.open),
|
|
5299
5302
|
...i,
|
|
5300
5303
|
ref: s,
|
|
5301
5304
|
onClick: _(e.onClick, a.onOpenToggle)
|
|
5302
5305
|
});
|
|
5303
|
-
return a.hasCustomAnchor ? c : /* @__PURE__ */ t.createElement(
|
|
5306
|
+
return a.hasCustomAnchor ? c : /* @__PURE__ */ t.createElement(cc, {
|
|
5304
5307
|
asChild: !0,
|
|
5305
5308
|
...o
|
|
5306
5309
|
}, c);
|
|
5307
5310
|
});
|
|
5308
|
-
|
|
5309
|
-
var
|
|
5310
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5311
|
+
ol.displayName = al;
|
|
5312
|
+
var sl = "PopoverClose", cl = t.forwardRef((e, n) => {
|
|
5313
|
+
let { __scopePopover: r, ...i } = e, a = Wc(sl, r);
|
|
5311
5314
|
return /* @__PURE__ */ t.createElement(A.button, {
|
|
5312
5315
|
type: "button",
|
|
5313
5316
|
...i,
|
|
@@ -5315,29 +5318,29 @@ var ol = "PopoverClose", sl = t.forwardRef((e, n) => {
|
|
|
5315
5318
|
onClick: _(e.onClick, () => a.onOpenChange(!1))
|
|
5316
5319
|
});
|
|
5317
5320
|
});
|
|
5318
|
-
|
|
5319
|
-
var
|
|
5320
|
-
let { __scopePopover: r, ...i } = e, a =
|
|
5321
|
-
return /* @__PURE__ */ t.createElement(
|
|
5321
|
+
cl.displayName = sl;
|
|
5322
|
+
var ll = "PopoverArrow", ul = t.forwardRef((e, n) => {
|
|
5323
|
+
let { __scopePopover: r, ...i } = e, a = Hc(r);
|
|
5324
|
+
return /* @__PURE__ */ t.createElement(uc, {
|
|
5322
5325
|
...a,
|
|
5323
5326
|
...i,
|
|
5324
5327
|
ref: n
|
|
5325
5328
|
});
|
|
5326
5329
|
});
|
|
5327
|
-
|
|
5330
|
+
ul.displayName = ll;
|
|
5328
5331
|
//#endregion
|
|
5329
5332
|
//#region src/ui/components/Popover.tsx
|
|
5330
|
-
var
|
|
5333
|
+
var dl = Kc, fl = ol, pl = e.forwardRef(({ className: t, align: n = "center", sideOffset: r = 4, ...i }, a) => /* @__PURE__ */ e.createElement(Qc, null, /* @__PURE__ */ e.createElement(el, {
|
|
5331
5334
|
ref: a,
|
|
5332
5335
|
align: n,
|
|
5333
5336
|
sideOffset: r,
|
|
5334
5337
|
className: W("z-50 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),
|
|
5335
5338
|
...i
|
|
5336
5339
|
})));
|
|
5337
|
-
|
|
5340
|
+
pl.displayName = el.displayName;
|
|
5338
5341
|
//#endregion
|
|
5339
5342
|
//#region ../../node_modules/@huin-core/react-use-previous/dist/index.mjs
|
|
5340
|
-
function
|
|
5343
|
+
function ml(t) {
|
|
5341
5344
|
let n = e.useRef({
|
|
5342
5345
|
value: t,
|
|
5343
5346
|
previous: t
|
|
@@ -5346,13 +5349,13 @@ function pl(t) {
|
|
|
5346
5349
|
}
|
|
5347
5350
|
//#endregion
|
|
5348
5351
|
//#region ../../node_modules/@huin-core/react-switch/dist/index.mjs
|
|
5349
|
-
var
|
|
5352
|
+
var hl = "Switch", [gl] = h(hl), [_l, vl] = gl(hl), yl = e.forwardRef((t, n) => {
|
|
5350
5353
|
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] = N({
|
|
5351
5354
|
prop: a,
|
|
5352
5355
|
defaultProp: o,
|
|
5353
5356
|
onChange: u
|
|
5354
5357
|
});
|
|
5355
|
-
return /* @__PURE__ */ e.createElement(
|
|
5358
|
+
return /* @__PURE__ */ e.createElement(_l, {
|
|
5356
5359
|
scope: r,
|
|
5357
5360
|
checked: y,
|
|
5358
5361
|
disabled: c
|
|
@@ -5361,7 +5364,7 @@ var ml = "Switch", [hl] = h(ml), [gl, _l] = hl(ml), vl = e.forwardRef((t, n) =>
|
|
|
5361
5364
|
role: "switch",
|
|
5362
5365
|
"aria-checked": y,
|
|
5363
5366
|
"aria-required": s,
|
|
5364
|
-
"data-state":
|
|
5367
|
+
"data-state": xl(y),
|
|
5365
5368
|
"data-disabled": c ? "" : void 0,
|
|
5366
5369
|
disabled: c,
|
|
5367
5370
|
value: l,
|
|
@@ -5370,7 +5373,7 @@ var ml = "Switch", [hl] = h(ml), [gl, _l] = hl(ml), vl = e.forwardRef((t, n) =>
|
|
|
5370
5373
|
onClick: _(t.onClick, (e) => {
|
|
5371
5374
|
x((e) => !e), v && (g.current = e.isPropagationStopped(), g.current || e.stopPropagation());
|
|
5372
5375
|
})
|
|
5373
|
-
}), v && /* @__PURE__ */ e.createElement(
|
|
5376
|
+
}), v && /* @__PURE__ */ e.createElement(bl, {
|
|
5374
5377
|
control: p,
|
|
5375
5378
|
bubbles: !g.current,
|
|
5376
5379
|
name: i,
|
|
@@ -5382,9 +5385,9 @@ var ml = "Switch", [hl] = h(ml), [gl, _l] = hl(ml), vl = e.forwardRef((t, n) =>
|
|
|
5382
5385
|
style: { transform: "translateX(-100%)" }
|
|
5383
5386
|
}));
|
|
5384
5387
|
});
|
|
5385
|
-
|
|
5386
|
-
var
|
|
5387
|
-
let { control: n, checked: r, bubbles: i = !0, ...a } = t, o = e.useRef(null), s =
|
|
5388
|
+
yl.displayName = hl;
|
|
5389
|
+
var bl = (t) => {
|
|
5390
|
+
let { control: n, checked: r, bubbles: i = !0, ...a } = t, o = e.useRef(null), s = ml(r), c = Hs(n);
|
|
5388
5391
|
return e.useEffect(() => {
|
|
5389
5392
|
let e = o.current, t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set;
|
|
5390
5393
|
if (s !== r && n) {
|
|
@@ -5412,47 +5415,47 @@ var yl = (t) => {
|
|
|
5412
5415
|
}
|
|
5413
5416
|
});
|
|
5414
5417
|
};
|
|
5415
|
-
function
|
|
5418
|
+
function xl(e) {
|
|
5416
5419
|
return e ? "checked" : "unchecked";
|
|
5417
5420
|
}
|
|
5418
|
-
var
|
|
5419
|
-
let { __scopeSwitch: r, ...i } = e, a =
|
|
5421
|
+
var Sl = yl, Cl = "SwitchThumb", wl = t.forwardRef((e, n) => {
|
|
5422
|
+
let { __scopeSwitch: r, ...i } = e, a = vl(Cl, r);
|
|
5420
5423
|
return /* @__PURE__ */ t.createElement(A.span, {
|
|
5421
|
-
"data-state":
|
|
5424
|
+
"data-state": xl(a.checked),
|
|
5422
5425
|
"data-disabled": a.disabled ? "" : void 0,
|
|
5423
5426
|
...i,
|
|
5424
5427
|
ref: n
|
|
5425
5428
|
});
|
|
5426
5429
|
});
|
|
5427
|
-
|
|
5430
|
+
wl.displayName = Cl;
|
|
5428
5431
|
//#endregion
|
|
5429
5432
|
//#region src/ui/components/Switch.tsx
|
|
5430
|
-
var
|
|
5433
|
+
var Tl = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Sl, {
|
|
5431
5434
|
className: W("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),
|
|
5432
5435
|
...n,
|
|
5433
5436
|
ref: r
|
|
5434
|
-
}, /* @__PURE__ */ e.createElement(
|
|
5435
|
-
|
|
5437
|
+
}, /* @__PURE__ */ e.createElement(wl, { className: W("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") })));
|
|
5438
|
+
Tl.displayName = Sl.displayName;
|
|
5436
5439
|
//#endregion
|
|
5437
5440
|
//#region ../../node_modules/@huin-core/react-label/dist/index.mjs
|
|
5438
|
-
var
|
|
5441
|
+
var El = "Label", Dl = e.forwardRef(({ ...t }, n) => /* @__PURE__ */ e.createElement(A.label, {
|
|
5439
5442
|
...t,
|
|
5440
5443
|
ref: n,
|
|
5441
5444
|
onMouseDown: (e) => {
|
|
5442
5445
|
e.target.closest("button, input, select, textarea") || (t.onMouseDown?.(e), !e.defaultPrevented && e.detail > 1 && e.preventDefault());
|
|
5443
5446
|
}
|
|
5444
5447
|
}));
|
|
5445
|
-
|
|
5446
|
-
var
|
|
5448
|
+
Dl.displayName = El;
|
|
5449
|
+
var Ol = Dl, kl = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Dl, {
|
|
5447
5450
|
ref: r,
|
|
5448
5451
|
className: W("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", t),
|
|
5449
5452
|
...n
|
|
5450
5453
|
}));
|
|
5451
|
-
|
|
5454
|
+
kl.displayName = Ol.displayName;
|
|
5452
5455
|
//#endregion
|
|
5453
5456
|
//#region ../../node_modules/@huin-core/react-separator/dist/index.mjs
|
|
5454
|
-
var
|
|
5455
|
-
let { decorative: r, orientation: i =
|
|
5457
|
+
var Al = "Separator", jl = "horizontal", Ml = ["horizontal", "vertical"], Nl = e.forwardRef((t, n) => {
|
|
5458
|
+
let { decorative: r, orientation: i = jl, ...a } = t, o = Pl(i) ? i : jl, s = r ? { role: "none" } : {
|
|
5456
5459
|
"aria-orientation": o === "vertical" ? o : void 0,
|
|
5457
5460
|
role: "separator"
|
|
5458
5461
|
};
|
|
@@ -5463,44 +5466,311 @@ var kl = "Separator", Al = "horizontal", jl = ["horizontal", "vertical"], Ml = e
|
|
|
5463
5466
|
ref: n
|
|
5464
5467
|
});
|
|
5465
5468
|
});
|
|
5466
|
-
|
|
5467
|
-
function
|
|
5468
|
-
return
|
|
5469
|
+
Nl.displayName = Al;
|
|
5470
|
+
function Pl(e) {
|
|
5471
|
+
return Ml.includes(e);
|
|
5469
5472
|
}
|
|
5470
|
-
var
|
|
5473
|
+
var Fl = Nl, Il = e.forwardRef(({ className: t, orientation: n = "horizontal", decorative: r = !0, ...i }, a) => /* @__PURE__ */ e.createElement(Fl, {
|
|
5471
5474
|
ref: a,
|
|
5472
5475
|
decorative: r,
|
|
5473
5476
|
orientation: n,
|
|
5474
5477
|
className: W("shrink-0 bg-border", n === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", t),
|
|
5475
5478
|
...i
|
|
5476
5479
|
}));
|
|
5477
|
-
|
|
5480
|
+
Il.displayName = Fl.displayName;
|
|
5478
5481
|
//#endregion
|
|
5479
5482
|
//#region src/ui/components/Input.tsx
|
|
5480
|
-
var
|
|
5483
|
+
var Ll = e.forwardRef(({ className: t, type: n, ...r }, i) => /* @__PURE__ */ e.createElement(A.input, {
|
|
5481
5484
|
type: n,
|
|
5482
5485
|
className: W("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),
|
|
5483
5486
|
ref: i,
|
|
5484
5487
|
...r
|
|
5485
5488
|
}));
|
|
5486
|
-
|
|
5489
|
+
Ll.displayName = "Input";
|
|
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] = N({
|
|
5494
|
+
prop: i,
|
|
5495
|
+
defaultProp: a,
|
|
5496
|
+
onChange: s
|
|
5497
|
+
});
|
|
5498
|
+
return /* @__PURE__ */ e.createElement(Vl, {
|
|
5499
|
+
scope: r,
|
|
5500
|
+
disabled: o,
|
|
5501
|
+
contentId: k(),
|
|
5502
|
+
open: l,
|
|
5503
|
+
onOpenToggle: e.useCallback(() => u((e) => !e), [u])
|
|
5504
|
+
}, /* @__PURE__ */ e.createElement(A.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(A.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(Se, { 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(A.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] = N({
|
|
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] = N({
|
|
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 = re(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(A.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 = k(), 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(A.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: W("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: W("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: W("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(Aa, { 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: W("pb-4 pt-0", t) }, n)));
|
|
5753
|
+
Au.displayName = Tu.displayName;
|
|
5487
5754
|
//#endregion
|
|
5488
5755
|
//#region src/saga/createSentinelSagaMonitor.ts
|
|
5489
|
-
var
|
|
5756
|
+
var ju = 100, Mu = () => {
|
|
5490
5757
|
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), n = () => t.forEach((e) => e()), r = () => {
|
|
5491
|
-
e.size >
|
|
5758
|
+
e.size > ju && e.delete(e.keys().next().value);
|
|
5492
5759
|
};
|
|
5493
5760
|
return {
|
|
5494
5761
|
effectTriggered({ effectId: t, parentEffectId: i, effect: a }) {
|
|
5495
|
-
let o = a;
|
|
5496
|
-
o?.type === "CALL"
|
|
5762
|
+
let o = a, s, c;
|
|
5763
|
+
if (o?.type === "CALL") s = o.payload?.fn?.name, c = o.payload?.args;
|
|
5764
|
+
else if (o?.CALL) s = o.CALL?.fn?.name, c = o.CALL?.args;
|
|
5765
|
+
else return;
|
|
5766
|
+
e.set(t, {
|
|
5497
5767
|
id: t,
|
|
5498
5768
|
parentId: i,
|
|
5499
|
-
fnName:
|
|
5500
|
-
args:
|
|
5769
|
+
fnName: s || "anonymous",
|
|
5770
|
+
args: c ?? [],
|
|
5501
5771
|
status: "pending",
|
|
5502
5772
|
startedAt: Date.now()
|
|
5503
|
-
}), r(), n()
|
|
5773
|
+
}), r(), n();
|
|
5504
5774
|
},
|
|
5505
5775
|
effectResolved(t, r) {
|
|
5506
5776
|
let i = e.get(t);
|
|
@@ -5538,31 +5808,31 @@ var Ll = 100, Rl = () => {
|
|
|
5538
5808
|
e.clear(), n();
|
|
5539
5809
|
}
|
|
5540
5810
|
};
|
|
5541
|
-
},
|
|
5811
|
+
}, Nu = (e, t) => {
|
|
5542
5812
|
if (!t) return e;
|
|
5543
5813
|
let n = t.toLowerCase();
|
|
5544
5814
|
if (typeof e != "object" || !e) return String(e).toLowerCase().includes(n) ? e : void 0;
|
|
5545
5815
|
if (Array.isArray(e)) {
|
|
5546
|
-
let n = e.map((e) =>
|
|
5816
|
+
let n = e.map((e) => Nu(e, t)).filter((e) => e !== void 0);
|
|
5547
5817
|
return n.length > 0 ? n : void 0;
|
|
5548
5818
|
}
|
|
5549
5819
|
let r = {};
|
|
5550
5820
|
for (let [i, a] of Object.entries(e)) if (i.toLowerCase().includes(n)) r[i] = a;
|
|
5551
5821
|
else {
|
|
5552
|
-
let e =
|
|
5822
|
+
let e = Nu(a, t);
|
|
5553
5823
|
e !== void 0 && (r[i] = e);
|
|
5554
5824
|
}
|
|
5555
5825
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
5556
|
-
},
|
|
5826
|
+
}, Pu = ({ store: e }) => {
|
|
5557
5827
|
let [n, r] = t.useState(e?.getState()), [i, a] = t.useState(""), [o, s] = t.useState(!1);
|
|
5558
5828
|
if (t.useEffect(() => {
|
|
5559
5829
|
if (e) return r(e.getState()), e.subscribe(() => r(e.getState()));
|
|
5560
5830
|
}, [e]), !e) return /* @__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}>"));
|
|
5561
|
-
let c =
|
|
5831
|
+
let c = Nu(n, i), l = ({ collapseDepth: e }) => c === void 0 ? /* @__PURE__ */ t.createElement("span", { className: "text-muted-foreground italic" }, "No results for \"", i, "\"") : /* @__PURE__ */ t.createElement(ga, {
|
|
5562
5832
|
value: c,
|
|
5563
5833
|
collapseFromDepth: e
|
|
5564
5834
|
});
|
|
5565
|
-
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(
|
|
5835
|
+
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(Ll, {
|
|
5566
5836
|
placeholder: "Search state…",
|
|
5567
5837
|
value: i,
|
|
5568
5838
|
onChange: (e) => a(e.target.value),
|
|
@@ -5571,77 +5841,77 @@ var Ll = 100, Rl = () => {
|
|
|
5571
5841
|
onClick: () => s(!0),
|
|
5572
5842
|
title: "Expand",
|
|
5573
5843
|
className: "shrink-0 text-muted-foreground hover:text-foreground transition-colors"
|
|
5574
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5844
|
+
}, /* @__PURE__ */ t.createElement(ja, { size: 14 }))), /* @__PURE__ */ t.createElement("div", { className: "max-h-60 overflow-y-auto" }, /* @__PURE__ */ t.createElement("div", { className: "bg-primary text-primary-foreground p-3! rounded-md font-mono text-xs leading-5 overflow-x-hidden" }, /* @__PURE__ */ t.createElement(l, { collapseDepth: 1 })))), /* @__PURE__ */ t.createElement(ta, {
|
|
5575
5845
|
open: o,
|
|
5576
5846
|
onOpenChange: s
|
|
5577
|
-
}, /* @__PURE__ */ t.createElement(ia, { className: "flex flex-col overflow-hidden" }, /* @__PURE__ */ t.createElement(aa, null, /* @__PURE__ */ t.createElement(sa, null, "Redux State")), /* @__PURE__ */ t.createElement(
|
|
5847
|
+
}, /* @__PURE__ */ t.createElement(ia, { className: "flex flex-col overflow-hidden" }, /* @__PURE__ */ t.createElement(aa, null, /* @__PURE__ */ t.createElement(sa, null, "Redux State")), /* @__PURE__ */ t.createElement(Ll, {
|
|
5578
5848
|
placeholder: "Search state…",
|
|
5579
5849
|
value: i,
|
|
5580
5850
|
onChange: (e) => a(e.target.value),
|
|
5581
5851
|
className: "h-8 text-sm shrink-0"
|
|
5582
5852
|
}), /* @__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(l, { collapseDepth: 2 }))))));
|
|
5583
|
-
},
|
|
5853
|
+
}, Fu = {
|
|
5584
5854
|
pending: "⏳",
|
|
5585
5855
|
resolved: "✓",
|
|
5586
5856
|
rejected: "✗",
|
|
5587
5857
|
cancelled: "⊘"
|
|
5588
|
-
},
|
|
5858
|
+
}, Iu = {
|
|
5589
5859
|
pending: "text-amber-400",
|
|
5590
5860
|
resolved: "text-emerald-400",
|
|
5591
5861
|
rejected: "text-red-400",
|
|
5592
5862
|
cancelled: "text-muted-foreground"
|
|
5593
|
-
},
|
|
5863
|
+
}, Lu = ({ 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(Eu, {
|
|
5864
|
+
type: "multiple",
|
|
5865
|
+
className: "w-full font-mono text-xs"
|
|
5866
|
+
}, e.map((e) => /* @__PURE__ */ t.createElement(Du, {
|
|
5594
5867
|
key: e.id,
|
|
5595
|
-
|
|
5596
|
-
}, /* @__PURE__ */ t.createElement("
|
|
5597
|
-
className: "w-full flex items-center gap-2 px-2 py-1.5 rounded hover:bg-muted/50 transition-colors text-left",
|
|
5598
|
-
onClick: () => r(e.id)
|
|
5599
|
-
}, /* @__PURE__ */ t.createElement("span", { className: W("shrink-0 w-4 text-center", Hl[e.status]) }, Vl[e.status]), /* @__PURE__ */ t.createElement("span", { className: "flex-1 truncate text-foreground" }, e.fnName), e.duration !== void 0 && /* @__PURE__ */ t.createElement("span", { className: "shrink-0 text-muted-foreground" }, e.duration, "ms")), n === e.id && /* @__PURE__ */ t.createElement("div", { className: "ml-6 mb-1 space-y-1" }, e.args.length > 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(ga, {
|
|
5868
|
+
value: String(e.id)
|
|
5869
|
+
}, /* @__PURE__ */ t.createElement(ku, { className: "py-2 px-2 hover:no-underline hover:bg-muted/50 rounded font-mono text-xs font-normal" }, /* @__PURE__ */ t.createElement("span", { className: W("shrink-0 w-4 text-center", Iu[e.status]) }, Fu[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(Au, { className: "pb-2! pt-0 px-2" }, /* @__PURE__ */ t.createElement("div", { className: "space-y-1.5" }, e.args.length > 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(ga, {
|
|
5600
5870
|
value: e.args,
|
|
5601
5871
|
collapseFromDepth: 1
|
|
5602
|
-
})), 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(ga, {
|
|
5872
|
+
})), 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(ga, {
|
|
5603
5873
|
value: e.result,
|
|
5604
5874
|
collapseFromDepth: 1
|
|
5605
|
-
})), 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(ga, {
|
|
5875
|
+
})), 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(ga, {
|
|
5606
5876
|
value: e.error instanceof Error ? e.error.message : e.error,
|
|
5607
5877
|
collapseFromDepth: 1
|
|
5608
|
-
})))))),
|
|
5609
|
-
let [n, r] = t.useState(() => e?._getEffects() ?? []), [i, a] = t.useState(
|
|
5610
|
-
t.useEffect(() => {
|
|
5878
|
+
}))))))), Ru = ({ monitor: e }) => {
|
|
5879
|
+
let [n, r] = t.useState(() => e?._getEffects() ?? []), [i, a] = t.useState(""), [o, s] = t.useState(!1);
|
|
5880
|
+
if (t.useEffect(() => {
|
|
5611
5881
|
if (e) return r(e._getEffects()), e._subscribe(() => r(e._getEffects()));
|
|
5612
|
-
}, [e]);
|
|
5613
|
-
let c = (e) =>
|
|
5614
|
-
return
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
className: "
|
|
5882
|
+
}, [e]), !e) return /* @__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}"));
|
|
5883
|
+
let c = i ? n.filter((e) => e.fnName.toLowerCase().includes(i.toLowerCase())) : n;
|
|
5884
|
+
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(Ll, {
|
|
5885
|
+
placeholder: "Search calls…",
|
|
5886
|
+
value: i,
|
|
5887
|
+
onChange: (e) => a(e.target.value),
|
|
5888
|
+
className: "h-7 text-xs"
|
|
5889
|
+
}), n.length > 0 && /* @__PURE__ */ t.createElement("button", {
|
|
5890
|
+
onClick: () => e._clear(),
|
|
5891
|
+
className: "shrink-0 text-xs text-muted-foreground hover:text-foreground transition-colors"
|
|
5619
5892
|
}, "Clear"), /* @__PURE__ */ t.createElement("button", {
|
|
5620
5893
|
onClick: () => s(!0),
|
|
5621
5894
|
title: "Expand",
|
|
5622
|
-
className: "text-muted-foreground hover:text-foreground transition-colors"
|
|
5623
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5624
|
-
effects: n,
|
|
5625
|
-
expandedId: i,
|
|
5626
|
-
onToggle: c
|
|
5627
|
-
}))), /* @__PURE__ */ t.createElement(ta, {
|
|
5895
|
+
className: "shrink-0 text-muted-foreground hover:text-foreground transition-colors"
|
|
5896
|
+
}, /* @__PURE__ */ t.createElement(ja, { size: 14 }))), /* @__PURE__ */ t.createElement("div", { className: "max-h-60 overflow-y-auto" }, /* @__PURE__ */ t.createElement(Lu, { effects: c }))), /* @__PURE__ */ t.createElement(ta, {
|
|
5628
5897
|
open: o,
|
|
5629
5898
|
onOpenChange: s
|
|
5630
|
-
}, /* @__PURE__ */ t.createElement(ia, { className: "flex flex-col overflow-hidden" }, /* @__PURE__ */ t.createElement(aa, null, /* @__PURE__ */ t.createElement(sa, null, "Saga Calls")), /* @__PURE__ */ t.createElement(
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
},
|
|
5636
|
-
|
|
5637
|
-
|
|
5899
|
+
}, /* @__PURE__ */ t.createElement(ia, { className: "flex flex-col overflow-hidden" }, /* @__PURE__ */ t.createElement(aa, null, /* @__PURE__ */ t.createElement(sa, null, "Saga Calls")), /* @__PURE__ */ t.createElement(Ll, {
|
|
5900
|
+
placeholder: "Search calls…",
|
|
5901
|
+
value: i,
|
|
5902
|
+
onChange: (e) => a(e.target.value),
|
|
5903
|
+
className: "h-8 text-sm shrink-0"
|
|
5904
|
+
}), /* @__PURE__ */ t.createElement("div", { className: "overflow-y-auto min-h-0 flex-1" }, /* @__PURE__ */ t.createElement(Lu, { effects: c })))));
|
|
5905
|
+
}, zu = ({ sagaMonitor: e }) => {
|
|
5906
|
+
let { isActive: n, setIsActive: r, showOutlines: i, setShowOutlines: a, highlightName: o, setHighlightName: s, reduxStore: c } = Ku();
|
|
5907
|
+
return /* @__PURE__ */ t.createElement(vn, null, /* @__PURE__ */ t.createElement("div", { className: "fixed bottom-4 right-4 z-[9999]" }, /* @__PURE__ */ t.createElement(dl, null, /* @__PURE__ */ t.createElement(fl, { className: W("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", n ? "bg-primary text-primary-foreground border-primary/30" : "bg-background text-muted-foreground border-border hover:text-foreground") }, /* @__PURE__ */ t.createElement(Ma, { size: 18 })), /* @__PURE__ */ t.createElement(pl, {
|
|
5638
5908
|
side: "top",
|
|
5639
5909
|
align: "end",
|
|
5640
5910
|
className: "w-72"
|
|
5641
|
-
}, /* @__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(
|
|
5911
|
+
}, /* @__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(Ma, {
|
|
5642
5912
|
size: 14,
|
|
5643
5913
|
className: "text-muted-foreground"
|
|
5644
|
-
}), /* @__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(
|
|
5914
|
+
}), /* @__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(Il, null), /* @__PURE__ */ t.createElement(pn, { defaultValue: "controls" }, /* @__PURE__ */ t.createElement(mn, { className: "grid w-full grid-cols-3 mx-0 rounded-none border-b bg-transparent h-9 gap-2" }, /* @__PURE__ */ t.createElement(hn, {
|
|
5645
5915
|
value: "controls",
|
|
5646
5916
|
className: "text-xs"
|
|
5647
5917
|
}, "Controls"), /* @__PURE__ */ t.createElement(hn, {
|
|
@@ -5653,25 +5923,25 @@ var Ll = 100, Rl = () => {
|
|
|
5653
5923
|
}, "Saga")), /* @__PURE__ */ t.createElement(gn, {
|
|
5654
5924
|
value: "controls",
|
|
5655
5925
|
className: "mt-0"
|
|
5656
|
-
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between py-3!" }, /* @__PURE__ */ t.createElement(
|
|
5926
|
+
}, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between py-3!" }, /* @__PURE__ */ t.createElement(kl, {
|
|
5657
5927
|
htmlFor: "sentinel-active-switch",
|
|
5658
5928
|
className: "cursor-pointer"
|
|
5659
|
-
}, "Active"), /* @__PURE__ */ t.createElement(
|
|
5929
|
+
}, "Active"), /* @__PURE__ */ t.createElement(Tl, {
|
|
5660
5930
|
id: "sentinel-active-switch",
|
|
5661
5931
|
checked: n,
|
|
5662
5932
|
onCheckedChange: r
|
|
5663
|
-
})), /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between pb-3!" }, /* @__PURE__ */ t.createElement(
|
|
5933
|
+
})), /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between pb-3!" }, /* @__PURE__ */ t.createElement(kl, {
|
|
5664
5934
|
htmlFor: "sentinel-outline-switch",
|
|
5665
5935
|
className: W("cursor-pointer", !n && "opacity-40")
|
|
5666
|
-
}, "Outline All"), /* @__PURE__ */ t.createElement(
|
|
5936
|
+
}, "Outline All"), /* @__PURE__ */ t.createElement(Tl, {
|
|
5667
5937
|
id: "sentinel-outline-switch",
|
|
5668
5938
|
checked: i,
|
|
5669
5939
|
onCheckedChange: a,
|
|
5670
5940
|
disabled: !n
|
|
5671
|
-
})), /* @__PURE__ */ t.createElement(
|
|
5941
|
+
})), /* @__PURE__ */ t.createElement(Il, null), /* @__PURE__ */ t.createElement("div", { className: "py-3! space-y-1.5" }, /* @__PURE__ */ t.createElement(kl, {
|
|
5672
5942
|
htmlFor: "sentinel-filter-input",
|
|
5673
5943
|
className: W("text-xs text-muted-foreground", !n && "opacity-40")
|
|
5674
|
-
}, "Filter component"), /* @__PURE__ */ t.createElement(
|
|
5944
|
+
}, "Filter component"), /* @__PURE__ */ t.createElement(Ll, {
|
|
5675
5945
|
id: "sentinel-filter-input",
|
|
5676
5946
|
placeholder: "e.g. ProductCard",
|
|
5677
5947
|
value: o,
|
|
@@ -5681,13 +5951,13 @@ var Ll = 100, Rl = () => {
|
|
|
5681
5951
|
}))), /* @__PURE__ */ t.createElement(gn, {
|
|
5682
5952
|
value: "redux",
|
|
5683
5953
|
className: "mt-0"
|
|
5684
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5954
|
+
}, /* @__PURE__ */ t.createElement(Pu, { store: c })), /* @__PURE__ */ t.createElement(gn, {
|
|
5685
5955
|
value: "saga",
|
|
5686
5956
|
className: "mt-0"
|
|
5687
|
-
}, /* @__PURE__ */ t.createElement(
|
|
5688
|
-
},
|
|
5957
|
+
}, /* @__PURE__ */ t.createElement(Ru, { monitor: e })))))));
|
|
5958
|
+
}, Bu = ({ children: e, active: n = !0 }) => {
|
|
5689
5959
|
if (!n) return /* @__PURE__ */ t.createElement(t.Fragment, null, e);
|
|
5690
|
-
let { activeRect: r } =
|
|
5960
|
+
let { activeRect: r } = Ku(), i = r ? r.left + r.width / 2 : 0, a = r ? r.top + r.height / 2 : 0;
|
|
5691
5961
|
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(vn, null, r && /* @__PURE__ */ t.createElement("div", {
|
|
5692
5962
|
className: "pointer-events-none fixed inset-0 z-[999] transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
5693
5963
|
style: {
|
|
@@ -5704,7 +5974,7 @@ var Ll = 100, Rl = () => {
|
|
|
5704
5974
|
WebkitBackdropFilter: "blur(8px) saturate(140%) contrast(105%)"
|
|
5705
5975
|
}
|
|
5706
5976
|
}), e));
|
|
5707
|
-
},
|
|
5977
|
+
}, Vu = n(void 0), Hu = n(void 0), Uu = ({ children: e, store: n, sagaMonitor: r }) => {
|
|
5708
5978
|
let [i, o] = d(null), [c, u] = d(null), [f, p] = d(null), [m, h] = d({}), [g, _] = d(!1), [v, y] = d(!1), [b, x] = d("");
|
|
5709
5979
|
s(() => {
|
|
5710
5980
|
g || (o(null), u(null), p(null), h({}));
|
|
@@ -5761,8 +6031,8 @@ var Ll = 100, Rl = () => {
|
|
|
5761
6031
|
m,
|
|
5762
6032
|
T
|
|
5763
6033
|
]);
|
|
5764
|
-
return /* @__PURE__ */ t.createElement(
|
|
5765
|
-
},
|
|
6034
|
+
return /* @__PURE__ */ t.createElement(Vu.Provider, { value: E }, /* @__PURE__ */ t.createElement(Hu.Provider, { value: ee }, e, /* @__PURE__ */ t.createElement(Bu, { active: g }, /* @__PURE__ */ t.createElement(ya, null)), /* @__PURE__ */ t.createElement(zu, { sagaMonitor: r })));
|
|
6035
|
+
}, Wu = {
|
|
5766
6036
|
activeId: null,
|
|
5767
6037
|
activeRect: null,
|
|
5768
6038
|
isActive: !1,
|
|
@@ -5775,12 +6045,12 @@ var Ll = 100, Rl = () => {
|
|
|
5775
6045
|
registerHover: () => {},
|
|
5776
6046
|
unregisterHover: () => {},
|
|
5777
6047
|
openDialog: () => {}
|
|
5778
|
-
},
|
|
6048
|
+
}, Gu = {
|
|
5779
6049
|
openDialogId: null,
|
|
5780
6050
|
dialogMeta: {},
|
|
5781
6051
|
closeDialog: () => {}
|
|
5782
|
-
},
|
|
5783
|
-
let e =
|
|
6052
|
+
}, Ku = () => o(Vu) ?? Wu, qu = () => o(Hu) ?? Gu, Ju = () => {
|
|
6053
|
+
let e = Ku(), t = qu();
|
|
5784
6054
|
return {
|
|
5785
6055
|
...e,
|
|
5786
6056
|
...t
|
|
@@ -5788,7 +6058,7 @@ var Ll = 100, Rl = () => {
|
|
|
5788
6058
|
};
|
|
5789
6059
|
//#endregion
|
|
5790
6060
|
//#region src/utils/safeSerialize.ts
|
|
5791
|
-
function
|
|
6061
|
+
function Yu(e, t = 0, n = /* @__PURE__ */ new WeakSet()) {
|
|
5792
6062
|
if (t > 6) return "[Max Depth]";
|
|
5793
6063
|
if (e === null) return null;
|
|
5794
6064
|
if (typeof e == "function") return "[Function]";
|
|
@@ -5796,15 +6066,15 @@ function tu(e, t = 0, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
5796
6066
|
if (n.has(e)) return "[Circular]";
|
|
5797
6067
|
if (n.add(e), "$$typeof" in e) return "[React Element]";
|
|
5798
6068
|
if ("_context" in e || "Provider" in e && "Consumer" in e) return "[React Context]";
|
|
5799
|
-
if (Array.isArray(e)) return e.map((e) =>
|
|
6069
|
+
if (Array.isArray(e)) return e.map((e) => Yu(e, t + 1, n));
|
|
5800
6070
|
let r = {};
|
|
5801
|
-
for (let [i, a] of Object.entries(e)) i.startsWith("__react") || i.startsWith("_react") || i === "_owner" || (r[i] =
|
|
6071
|
+
for (let [i, a] of Object.entries(e)) i.startsWith("__react") || i.startsWith("_react") || i === "_owner" || (r[i] = Yu(a, t + 1, n));
|
|
5802
6072
|
return r;
|
|
5803
6073
|
}
|
|
5804
6074
|
//#endregion
|
|
5805
6075
|
//#region src/react/Sentinel.tsx
|
|
5806
|
-
var
|
|
5807
|
-
let s = k(), { activeId: c, isActive: l, showOutlines: d, highlightName: f, registerHover: p, unregisterHover: m, openDialog: h } =
|
|
6076
|
+
var Xu = ({ children: e, componentName: n, sourceFile: r, renderCount: i, dialogMd: a, componentProps: o }) => {
|
|
6077
|
+
let s = k(), { activeId: c, isActive: l, showOutlines: d, highlightName: f, registerHover: p, unregisterHover: m, openDialog: h } = Ku(), g = u([]), _ = u(""), v = o ? Yu(o) : void 0, y = v ? JSON.stringify(v) : "";
|
|
5808
6078
|
v && y !== _.current && (_.current = y, g.current = [v, ...g.current].slice(0, 6));
|
|
5809
6079
|
let b = l && c === s, x = l && !!f && !!n && n.toLowerCase().includes(f.toLowerCase());
|
|
5810
6080
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -5829,4 +6099,4 @@ var nu = ({ children: e, componentName: n, sourceFile: r, renderCount: i, dialog
|
|
|
5829
6099
|
}, e));
|
|
5830
6100
|
};
|
|
5831
6101
|
//#endregion
|
|
5832
|
-
export {
|
|
6102
|
+
export { Xu as Sentinel, Uu as SentinelProvider, Mu as createSentinelSagaMonitor, Ju as useSentinel, qu as useSentinelDialog, Ku as useSentinelInteraction };
|