@gup-fe/js-sdk 2.1.1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +35 -8
- package/dist/js-sdk.js +769 -744
- package/dist/js-sdk.umd.js +16 -16
- package/package.json +1 -1
package/dist/js-sdk.js
CHANGED
|
@@ -1745,15 +1745,15 @@ function Iy(e, t) {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
return ze(i, r), ze(a, r), In(i, a), In(a, i), cu(i), cu(a), In(i, a), In(a, i), ("00000000" + (i[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (a[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (a[1] >>> 0).toString(16)).slice(-8);
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function _y(e) {
|
|
1749
1749
|
var t;
|
|
1750
1750
|
return Yt({ name: e.name, message: e.message, stack: (t = e.stack) === null || t === void 0 ? void 0 : t.split(`
|
|
1751
1751
|
`) }, e);
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function Ny(e) {
|
|
1754
1754
|
return /^function\s.*?\{\s*\[native code]\s*}$/.test(String(e));
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function Ay(e) {
|
|
1757
1757
|
return typeof e != "function";
|
|
1758
1758
|
}
|
|
1759
1759
|
function Dy(e, t) {
|
|
@@ -1768,7 +1768,7 @@ function Dy(e, t) {
|
|
|
1768
1768
|
return { error: s[1], duration: a };
|
|
1769
1769
|
});
|
|
1770
1770
|
var l = s[1];
|
|
1771
|
-
if (
|
|
1771
|
+
if (Ay(l))
|
|
1772
1772
|
return r(function() {
|
|
1773
1773
|
return { value: l, duration: a };
|
|
1774
1774
|
});
|
|
@@ -1877,7 +1877,7 @@ function Zo() {
|
|
|
1877
1877
|
var e = window;
|
|
1878
1878
|
return (
|
|
1879
1879
|
// Filters-out Chrome, Yandex, DuckDuckGo (macOS and iOS), Edge
|
|
1880
|
-
|
|
1880
|
+
Ny(e.print) && // Doesn't work in Safari < 15.4
|
|
1881
1881
|
String(e.browser) === "[object WebPageNamespace]"
|
|
1882
1882
|
);
|
|
1883
1883
|
}
|
|
@@ -2470,14 +2470,14 @@ function Pb() {
|
|
|
2470
2470
|
function Ib() {
|
|
2471
2471
|
return !!window.openDatabase;
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function _b() {
|
|
2474
2474
|
return navigator.cpuClass;
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function Nb() {
|
|
2477
2477
|
var e = navigator.platform;
|
|
2478
2478
|
return e === "MacIntel" && Kt() && !Bc() ? By() ? "iPad" : "iPhone" : e;
|
|
2479
2479
|
}
|
|
2480
|
-
function
|
|
2480
|
+
function Ab() {
|
|
2481
2481
|
return navigator.vendor || "";
|
|
2482
2482
|
}
|
|
2483
2483
|
function Db() {
|
|
@@ -3203,9 +3203,9 @@ function f0(e) {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
}
|
|
3205
3205
|
}
|
|
3206
|
-
for (var P = 0,
|
|
3207
|
-
for (var L =
|
|
3208
|
-
var O =
|
|
3206
|
+
for (var P = 0, N = c0; P < N.length; P++)
|
|
3207
|
+
for (var L = N[P], M = 0, _ = l0; M < _.length; M++) {
|
|
3208
|
+
var O = _[M], k = p0(n, L, O);
|
|
3209
3209
|
c.push("".concat(L, ".").concat(O, "=").concat(k.join(",")));
|
|
3210
3210
|
}
|
|
3211
3211
|
return l.sort(), a.sort(), {
|
|
@@ -3296,11 +3296,11 @@ var y0 = {
|
|
|
3296
3296
|
localStorage: kb,
|
|
3297
3297
|
indexedDB: Pb,
|
|
3298
3298
|
openDatabase: Ib,
|
|
3299
|
-
cpuClass:
|
|
3300
|
-
platform:
|
|
3299
|
+
cpuClass: _b,
|
|
3300
|
+
platform: Nb,
|
|
3301
3301
|
plugins: nb,
|
|
3302
3302
|
touchSupport: fb,
|
|
3303
|
-
vendor:
|
|
3303
|
+
vendor: Ab,
|
|
3304
3304
|
vendorFlavors: Db,
|
|
3305
3305
|
cookiesEnabled: Mb,
|
|
3306
3306
|
colorGamut: Wb,
|
|
@@ -3351,7 +3351,7 @@ function C0(e) {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
function lp(e) {
|
|
3353
3353
|
return JSON.stringify(e, function(t, n) {
|
|
3354
|
-
return n instanceof Error ?
|
|
3354
|
+
return n instanceof Error ? _y(n) : n;
|
|
3355
3355
|
}, 2);
|
|
3356
3356
|
}
|
|
3357
3357
|
function up(e) {
|
|
@@ -3433,15 +3433,15 @@ function fp() {
|
|
|
3433
3433
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = dp(e)) && (r && (r += " "), r += t);
|
|
3434
3434
|
return r;
|
|
3435
3435
|
}
|
|
3436
|
-
const jc = "-",
|
|
3437
|
-
const t =
|
|
3436
|
+
const jc = "-", _0 = (e) => {
|
|
3437
|
+
const t = A0(e), {
|
|
3438
3438
|
conflictingClassGroups: n,
|
|
3439
3439
|
conflictingClassGroupModifiers: r
|
|
3440
3440
|
} = e;
|
|
3441
3441
|
return {
|
|
3442
3442
|
getClassGroupId: (i) => {
|
|
3443
3443
|
const a = i.split(jc);
|
|
3444
|
-
return a[0] === "" && a.length !== 1 && a.shift(), pp(a, t) ||
|
|
3444
|
+
return a[0] === "" && a.length !== 1 && a.shift(), pp(a, t) || N0(i);
|
|
3445
3445
|
},
|
|
3446
3446
|
getConflictingClassGroupIds: (i, a) => {
|
|
3447
3447
|
const l = n[i] || [];
|
|
@@ -3460,13 +3460,13 @@ const jc = "-", N0 = (e) => {
|
|
|
3460
3460
|
return t.validators.find(({
|
|
3461
3461
|
validator: i
|
|
3462
3462
|
}) => i(s))?.classGroupId;
|
|
3463
|
-
}, bu = /^\[(.+)\]$/,
|
|
3463
|
+
}, bu = /^\[(.+)\]$/, N0 = (e) => {
|
|
3464
3464
|
if (bu.test(e)) {
|
|
3465
3465
|
const t = bu.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
|
|
3466
3466
|
if (n)
|
|
3467
3467
|
return "arbitrary.." + n;
|
|
3468
3468
|
}
|
|
3469
|
-
},
|
|
3469
|
+
}, A0 = (e) => {
|
|
3470
3470
|
const {
|
|
3471
3471
|
theme: t,
|
|
3472
3472
|
prefix: n
|
|
@@ -3578,7 +3578,7 @@ const jc = "-", N0 = (e) => {
|
|
|
3578
3578
|
}, V0 = (e) => ({
|
|
3579
3579
|
cache: L0(e.cacheSize),
|
|
3580
3580
|
parseClassName: $0(e),
|
|
3581
|
-
...
|
|
3581
|
+
..._0(e)
|
|
3582
3582
|
}), B0 = /\s+/, W0 = (e, t) => {
|
|
3583
3583
|
const {
|
|
3584
3584
|
parseClassName: n,
|
|
@@ -3652,7 +3652,7 @@ function H0(e, ...t) {
|
|
|
3652
3652
|
const He = (e) => {
|
|
3653
3653
|
const t = (n) => n[e] || [];
|
|
3654
3654
|
return t.isThemeGetter = !0, t;
|
|
3655
|
-
}, gp = /^\[(?:([a-z-]+):)?(.+)\]$/i, U0 = /^\d+\/\d+$/, G0 = /* @__PURE__ */ new Set(["px", "full", "screen"]), z0 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Y0 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Z0 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, q0 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, X0 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pn = (e) => Lr(e) || G0.has(e) || U0.test(e),
|
|
3655
|
+
}, gp = /^\[(?:([a-z-]+):)?(.+)\]$/i, U0 = /^\d+\/\d+$/, G0 = /* @__PURE__ */ new Set(["px", "full", "screen"]), z0 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Y0 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Z0 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, q0 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, X0 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pn = (e) => Lr(e) || G0.has(e) || U0.test(e), _n = (e) => Qr(e, "length", ow), Lr = (e) => !!e && !Number.isNaN(Number(e)), oa = (e) => Qr(e, "number", Lr), uo = (e) => !!e && Number.isInteger(Number(e)), K0 = (e) => e.endsWith("%") && Lr(e.slice(0, -1)), Oe = (e) => gp.test(e), Nn = (e) => z0.test(e), J0 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Q0 = (e) => Qr(e, J0, vp), ew = (e) => Qr(e, "position", vp), tw = /* @__PURE__ */ new Set(["image", "url"]), nw = (e) => Qr(e, tw, iw), rw = (e) => Qr(e, "", sw), fo = () => !0, Qr = (e, t, n) => {
|
|
3656
3656
|
const r = gp.exec(e);
|
|
3657
3657
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
3658
3658
|
}, ow = (e) => (
|
|
@@ -3661,36 +3661,36 @@ const He = (e) => {
|
|
|
3661
3661
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
3662
3662
|
Y0.test(e) && !Z0.test(e)
|
|
3663
3663
|
), vp = () => !1, sw = (e) => q0.test(e), iw = (e) => X0.test(e), aw = () => {
|
|
3664
|
-
const e = He("colors"), t = He("spacing"), n = He("blur"), r = He("brightness"), o = He("borderColor"), s = He("borderRadius"), i = He("borderSpacing"), a = He("borderWidth"), l = He("contrast"), c = He("grayscale"), u = He("hueRotate"), d = He("invert"), h = He("gap"), p = He("gradientColorStops"), g = He("gradientColorStopPositions"), m = He("inset"), v = He("margin"), y = He("opacity"), b = He("padding"), E = He("saturate"), x = He("scale"), w = He("sepia"), R = He("skew"), S = He("space"), P = He("translate"),
|
|
3664
|
+
const e = He("colors"), t = He("spacing"), n = He("blur"), r = He("brightness"), o = He("borderColor"), s = He("borderRadius"), i = He("borderSpacing"), a = He("borderWidth"), l = He("contrast"), c = He("grayscale"), u = He("hueRotate"), d = He("invert"), h = He("gap"), p = He("gradientColorStops"), g = He("gradientColorStopPositions"), m = He("inset"), v = He("margin"), y = He("opacity"), b = He("padding"), E = He("saturate"), x = He("scale"), w = He("sepia"), R = He("skew"), S = He("space"), P = He("translate"), N = () => ["auto", "contain", "none"], L = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", Oe, t], _ = () => [Oe, t], O = () => ["", pn, _n], k = () => ["auto", Lr, Oe], C = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], I = () => ["solid", "dashed", "dotted", "double", "none"], D = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], T = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], $ = () => ["", "0", Oe], F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [Lr, Oe];
|
|
3665
3665
|
return {
|
|
3666
3666
|
cacheSize: 500,
|
|
3667
3667
|
separator: ":",
|
|
3668
3668
|
theme: {
|
|
3669
3669
|
colors: [fo],
|
|
3670
|
-
spacing: [pn,
|
|
3671
|
-
blur: ["none", "",
|
|
3670
|
+
spacing: [pn, _n],
|
|
3671
|
+
blur: ["none", "", Nn, Oe],
|
|
3672
3672
|
brightness: W(),
|
|
3673
3673
|
borderColor: [e],
|
|
3674
|
-
borderRadius: ["none", "", "full",
|
|
3675
|
-
borderSpacing:
|
|
3674
|
+
borderRadius: ["none", "", "full", Nn, Oe],
|
|
3675
|
+
borderSpacing: _(),
|
|
3676
3676
|
borderWidth: O(),
|
|
3677
3677
|
contrast: W(),
|
|
3678
3678
|
grayscale: $(),
|
|
3679
3679
|
hueRotate: W(),
|
|
3680
3680
|
invert: $(),
|
|
3681
|
-
gap:
|
|
3681
|
+
gap: _(),
|
|
3682
3682
|
gradientColorStops: [e],
|
|
3683
|
-
gradientColorStopPositions: [K0,
|
|
3683
|
+
gradientColorStopPositions: [K0, _n],
|
|
3684
3684
|
inset: M(),
|
|
3685
3685
|
margin: M(),
|
|
3686
3686
|
opacity: W(),
|
|
3687
|
-
padding:
|
|
3687
|
+
padding: _(),
|
|
3688
3688
|
saturate: W(),
|
|
3689
3689
|
scale: W(),
|
|
3690
3690
|
sepia: $(),
|
|
3691
3691
|
skew: W(),
|
|
3692
|
-
space:
|
|
3693
|
-
translate:
|
|
3692
|
+
space: _(),
|
|
3693
|
+
translate: _()
|
|
3694
3694
|
},
|
|
3695
3695
|
classGroups: {
|
|
3696
3696
|
// Layout
|
|
@@ -3711,7 +3711,7 @@ const He = (e) => {
|
|
|
3711
3711
|
* @see https://tailwindcss.com/docs/columns
|
|
3712
3712
|
*/
|
|
3713
3713
|
columns: [{
|
|
3714
|
-
columns: [
|
|
3714
|
+
columns: [Nn]
|
|
3715
3715
|
}],
|
|
3716
3716
|
/**
|
|
3717
3717
|
* Break After
|
|
@@ -3812,21 +3812,21 @@ const He = (e) => {
|
|
|
3812
3812
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3813
3813
|
*/
|
|
3814
3814
|
overscroll: [{
|
|
3815
|
-
overscroll:
|
|
3815
|
+
overscroll: N()
|
|
3816
3816
|
}],
|
|
3817
3817
|
/**
|
|
3818
3818
|
* Overscroll Behavior X
|
|
3819
3819
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3820
3820
|
*/
|
|
3821
3821
|
"overscroll-x": [{
|
|
3822
|
-
"overscroll-x":
|
|
3822
|
+
"overscroll-x": N()
|
|
3823
3823
|
}],
|
|
3824
3824
|
/**
|
|
3825
3825
|
* Overscroll Behavior Y
|
|
3826
3826
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
3827
3827
|
*/
|
|
3828
3828
|
"overscroll-y": [{
|
|
3829
|
-
"overscroll-y":
|
|
3829
|
+
"overscroll-y": N()
|
|
3830
3830
|
}],
|
|
3831
3831
|
/**
|
|
3832
3832
|
* Position
|
|
@@ -4295,8 +4295,8 @@ const He = (e) => {
|
|
|
4295
4295
|
*/
|
|
4296
4296
|
"max-w": [{
|
|
4297
4297
|
"max-w": [Oe, t, "none", "full", "min", "max", "fit", "prose", {
|
|
4298
|
-
screen: [
|
|
4299
|
-
},
|
|
4298
|
+
screen: [Nn]
|
|
4299
|
+
}, Nn]
|
|
4300
4300
|
}],
|
|
4301
4301
|
/**
|
|
4302
4302
|
* Height
|
|
@@ -4332,7 +4332,7 @@ const He = (e) => {
|
|
|
4332
4332
|
* @see https://tailwindcss.com/docs/font-size
|
|
4333
4333
|
*/
|
|
4334
4334
|
"font-size": [{
|
|
4335
|
-
text: ["base",
|
|
4335
|
+
text: ["base", Nn, _n]
|
|
4336
4336
|
}],
|
|
4337
4337
|
/**
|
|
4338
4338
|
* Font Smoothing
|
|
@@ -4483,7 +4483,7 @@ const He = (e) => {
|
|
|
4483
4483
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
4484
4484
|
*/
|
|
4485
4485
|
"text-decoration-thickness": [{
|
|
4486
|
-
decoration: ["auto", "from-font", pn,
|
|
4486
|
+
decoration: ["auto", "from-font", pn, _n]
|
|
4487
4487
|
}],
|
|
4488
4488
|
/**
|
|
4489
4489
|
* Text Underline Offset
|
|
@@ -4521,7 +4521,7 @@ const He = (e) => {
|
|
|
4521
4521
|
* @see https://tailwindcss.com/docs/text-indent
|
|
4522
4522
|
*/
|
|
4523
4523
|
indent: [{
|
|
4524
|
-
indent:
|
|
4524
|
+
indent: _()
|
|
4525
4525
|
}],
|
|
4526
4526
|
/**
|
|
4527
4527
|
* Vertical Alignment
|
|
@@ -4979,7 +4979,7 @@ const He = (e) => {
|
|
|
4979
4979
|
* @see https://tailwindcss.com/docs/outline-width
|
|
4980
4980
|
*/
|
|
4981
4981
|
"outline-w": [{
|
|
4982
|
-
outline: [pn,
|
|
4982
|
+
outline: [pn, _n]
|
|
4983
4983
|
}],
|
|
4984
4984
|
/**
|
|
4985
4985
|
* Outline Color
|
|
@@ -5019,7 +5019,7 @@ const He = (e) => {
|
|
|
5019
5019
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
5020
5020
|
*/
|
|
5021
5021
|
"ring-offset-w": [{
|
|
5022
|
-
"ring-offset": [pn,
|
|
5022
|
+
"ring-offset": [pn, _n]
|
|
5023
5023
|
}],
|
|
5024
5024
|
/**
|
|
5025
5025
|
* Ring Offset Color
|
|
@@ -5034,7 +5034,7 @@ const He = (e) => {
|
|
|
5034
5034
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
5035
5035
|
*/
|
|
5036
5036
|
shadow: [{
|
|
5037
|
-
shadow: ["", "inner", "none",
|
|
5037
|
+
shadow: ["", "inner", "none", Nn, rw]
|
|
5038
5038
|
}],
|
|
5039
5039
|
/**
|
|
5040
5040
|
* Box Shadow Color
|
|
@@ -5099,7 +5099,7 @@ const He = (e) => {
|
|
|
5099
5099
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
5100
5100
|
*/
|
|
5101
5101
|
"drop-shadow": [{
|
|
5102
|
-
"drop-shadow": ["", "none",
|
|
5102
|
+
"drop-shadow": ["", "none", Nn, Oe]
|
|
5103
5103
|
}],
|
|
5104
5104
|
/**
|
|
5105
5105
|
* Grayscale
|
|
@@ -5412,126 +5412,126 @@ const He = (e) => {
|
|
|
5412
5412
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5413
5413
|
*/
|
|
5414
5414
|
"scroll-m": [{
|
|
5415
|
-
"scroll-m":
|
|
5415
|
+
"scroll-m": _()
|
|
5416
5416
|
}],
|
|
5417
5417
|
/**
|
|
5418
5418
|
* Scroll Margin X
|
|
5419
5419
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5420
5420
|
*/
|
|
5421
5421
|
"scroll-mx": [{
|
|
5422
|
-
"scroll-mx":
|
|
5422
|
+
"scroll-mx": _()
|
|
5423
5423
|
}],
|
|
5424
5424
|
/**
|
|
5425
5425
|
* Scroll Margin Y
|
|
5426
5426
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5427
5427
|
*/
|
|
5428
5428
|
"scroll-my": [{
|
|
5429
|
-
"scroll-my":
|
|
5429
|
+
"scroll-my": _()
|
|
5430
5430
|
}],
|
|
5431
5431
|
/**
|
|
5432
5432
|
* Scroll Margin Start
|
|
5433
5433
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5434
5434
|
*/
|
|
5435
5435
|
"scroll-ms": [{
|
|
5436
|
-
"scroll-ms":
|
|
5436
|
+
"scroll-ms": _()
|
|
5437
5437
|
}],
|
|
5438
5438
|
/**
|
|
5439
5439
|
* Scroll Margin End
|
|
5440
5440
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5441
5441
|
*/
|
|
5442
5442
|
"scroll-me": [{
|
|
5443
|
-
"scroll-me":
|
|
5443
|
+
"scroll-me": _()
|
|
5444
5444
|
}],
|
|
5445
5445
|
/**
|
|
5446
5446
|
* Scroll Margin Top
|
|
5447
5447
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5448
5448
|
*/
|
|
5449
5449
|
"scroll-mt": [{
|
|
5450
|
-
"scroll-mt":
|
|
5450
|
+
"scroll-mt": _()
|
|
5451
5451
|
}],
|
|
5452
5452
|
/**
|
|
5453
5453
|
* Scroll Margin Right
|
|
5454
5454
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5455
5455
|
*/
|
|
5456
5456
|
"scroll-mr": [{
|
|
5457
|
-
"scroll-mr":
|
|
5457
|
+
"scroll-mr": _()
|
|
5458
5458
|
}],
|
|
5459
5459
|
/**
|
|
5460
5460
|
* Scroll Margin Bottom
|
|
5461
5461
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5462
5462
|
*/
|
|
5463
5463
|
"scroll-mb": [{
|
|
5464
|
-
"scroll-mb":
|
|
5464
|
+
"scroll-mb": _()
|
|
5465
5465
|
}],
|
|
5466
5466
|
/**
|
|
5467
5467
|
* Scroll Margin Left
|
|
5468
5468
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
5469
5469
|
*/
|
|
5470
5470
|
"scroll-ml": [{
|
|
5471
|
-
"scroll-ml":
|
|
5471
|
+
"scroll-ml": _()
|
|
5472
5472
|
}],
|
|
5473
5473
|
/**
|
|
5474
5474
|
* Scroll Padding
|
|
5475
5475
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5476
5476
|
*/
|
|
5477
5477
|
"scroll-p": [{
|
|
5478
|
-
"scroll-p":
|
|
5478
|
+
"scroll-p": _()
|
|
5479
5479
|
}],
|
|
5480
5480
|
/**
|
|
5481
5481
|
* Scroll Padding X
|
|
5482
5482
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5483
5483
|
*/
|
|
5484
5484
|
"scroll-px": [{
|
|
5485
|
-
"scroll-px":
|
|
5485
|
+
"scroll-px": _()
|
|
5486
5486
|
}],
|
|
5487
5487
|
/**
|
|
5488
5488
|
* Scroll Padding Y
|
|
5489
5489
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5490
5490
|
*/
|
|
5491
5491
|
"scroll-py": [{
|
|
5492
|
-
"scroll-py":
|
|
5492
|
+
"scroll-py": _()
|
|
5493
5493
|
}],
|
|
5494
5494
|
/**
|
|
5495
5495
|
* Scroll Padding Start
|
|
5496
5496
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5497
5497
|
*/
|
|
5498
5498
|
"scroll-ps": [{
|
|
5499
|
-
"scroll-ps":
|
|
5499
|
+
"scroll-ps": _()
|
|
5500
5500
|
}],
|
|
5501
5501
|
/**
|
|
5502
5502
|
* Scroll Padding End
|
|
5503
5503
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5504
5504
|
*/
|
|
5505
5505
|
"scroll-pe": [{
|
|
5506
|
-
"scroll-pe":
|
|
5506
|
+
"scroll-pe": _()
|
|
5507
5507
|
}],
|
|
5508
5508
|
/**
|
|
5509
5509
|
* Scroll Padding Top
|
|
5510
5510
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5511
5511
|
*/
|
|
5512
5512
|
"scroll-pt": [{
|
|
5513
|
-
"scroll-pt":
|
|
5513
|
+
"scroll-pt": _()
|
|
5514
5514
|
}],
|
|
5515
5515
|
/**
|
|
5516
5516
|
* Scroll Padding Right
|
|
5517
5517
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5518
5518
|
*/
|
|
5519
5519
|
"scroll-pr": [{
|
|
5520
|
-
"scroll-pr":
|
|
5520
|
+
"scroll-pr": _()
|
|
5521
5521
|
}],
|
|
5522
5522
|
/**
|
|
5523
5523
|
* Scroll Padding Bottom
|
|
5524
5524
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5525
5525
|
*/
|
|
5526
5526
|
"scroll-pb": [{
|
|
5527
|
-
"scroll-pb":
|
|
5527
|
+
"scroll-pb": _()
|
|
5528
5528
|
}],
|
|
5529
5529
|
/**
|
|
5530
5530
|
* Scroll Padding Left
|
|
5531
5531
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
5532
5532
|
*/
|
|
5533
5533
|
"scroll-pl": [{
|
|
5534
|
-
"scroll-pl":
|
|
5534
|
+
"scroll-pl": _()
|
|
5535
5535
|
}],
|
|
5536
5536
|
/**
|
|
5537
5537
|
* Scroll Snap Align
|
|
@@ -5614,7 +5614,7 @@ const He = (e) => {
|
|
|
5614
5614
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
5615
5615
|
*/
|
|
5616
5616
|
"stroke-w": [{
|
|
5617
|
-
stroke: [pn,
|
|
5617
|
+
stroke: [pn, _n, oa]
|
|
5618
5618
|
}],
|
|
5619
5619
|
/**
|
|
5620
5620
|
* Stroke
|
|
@@ -5971,17 +5971,17 @@ function wp(e, ...t) {
|
|
|
5971
5971
|
arguments
|
|
5972
5972
|
);
|
|
5973
5973
|
if (a = E.apply(null, S), process.env.NODE_ENV !== "production") {
|
|
5974
|
-
const { identityFunctionCheck: P, inputStabilityCheck:
|
|
5974
|
+
const { identityFunctionCheck: P, inputStabilityCheck: N } = vw(x, m);
|
|
5975
5975
|
if (P.shouldRun && P.run(
|
|
5976
5976
|
c,
|
|
5977
5977
|
S,
|
|
5978
5978
|
a
|
|
5979
|
-
),
|
|
5979
|
+
), N.shouldRun) {
|
|
5980
5980
|
const L = Su(
|
|
5981
5981
|
b,
|
|
5982
5982
|
arguments
|
|
5983
5983
|
);
|
|
5984
|
-
|
|
5984
|
+
N.run(
|
|
5985
5985
|
{ inputSelectorResults: S, inputSelectorResultsCopy: L },
|
|
5986
5986
|
{ memoize: d, memoizeOptions: v },
|
|
5987
5987
|
arguments
|
|
@@ -6109,7 +6109,7 @@ function Iw(e) {
|
|
|
6109
6109
|
}
|
|
6110
6110
|
var hs = { exports: {} }, sa = {};
|
|
6111
6111
|
var Ru;
|
|
6112
|
-
function
|
|
6112
|
+
function _w() {
|
|
6113
6113
|
if (Ru) return sa;
|
|
6114
6114
|
Ru = 1;
|
|
6115
6115
|
var e = oe;
|
|
@@ -6151,7 +6151,7 @@ function Nw() {
|
|
|
6151
6151
|
}
|
|
6152
6152
|
var ia = {};
|
|
6153
6153
|
var Tu;
|
|
6154
|
-
function
|
|
6154
|
+
function Nw() {
|
|
6155
6155
|
return Tu || (Tu = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
6156
6156
|
function e(p, g) {
|
|
6157
6157
|
return p === g && (p !== 0 || 1 / p === 1 / g) || p !== p && g !== g;
|
|
@@ -6205,9 +6205,9 @@ function Aw() {
|
|
|
6205
6205
|
}
|
|
6206
6206
|
var Ou;
|
|
6207
6207
|
function Uc() {
|
|
6208
|
-
return Ou || (Ou = 1, process.env.NODE_ENV === "production" ? hs.exports =
|
|
6208
|
+
return Ou || (Ou = 1, process.env.NODE_ENV === "production" ? hs.exports = _w() : hs.exports = Nw()), hs.exports;
|
|
6209
6209
|
}
|
|
6210
|
-
var
|
|
6210
|
+
var Aw = Uc(), ms = { exports: {} }, aa = {};
|
|
6211
6211
|
var ku;
|
|
6212
6212
|
function Dw() {
|
|
6213
6213
|
if (ku) return aa;
|
|
@@ -6327,7 +6327,7 @@ function Ep(e, t, n, r, o) {
|
|
|
6327
6327
|
}
|
|
6328
6328
|
function Ww(e, t, n, r, o) {
|
|
6329
6329
|
const s = f.useCallback(() => t(e.getSnapshot(), n, r, o), [e, t, n, r, o]);
|
|
6330
|
-
return
|
|
6330
|
+
return Aw.useSyncExternalStore(e.subscribe, s, s);
|
|
6331
6331
|
}
|
|
6332
6332
|
function jw(e, t, n, r, o) {
|
|
6333
6333
|
return Ww(e, t, n, r, o);
|
|
@@ -6586,7 +6586,7 @@ class Oi extends Uw {
|
|
|
6586
6586
|
}
|
|
6587
6587
|
}
|
|
6588
6588
|
const gs = null;
|
|
6589
|
-
let
|
|
6589
|
+
let _u = globalThis.requestAnimationFrame, qw = class {
|
|
6590
6590
|
/* This implementation uses an array as a backing data-structure for frame callbacks.
|
|
6591
6591
|
* It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
|
|
6592
6592
|
* never calls the native `cancelAnimationFrame` if there are no frames left. This can
|
|
@@ -6609,7 +6609,7 @@ let Nu = globalThis.requestAnimationFrame, qw = class {
|
|
|
6609
6609
|
request(t) {
|
|
6610
6610
|
const n = this.nextId;
|
|
6611
6611
|
this.nextId += 1, this.callbacks.push(t), this.callbacksCount += 1;
|
|
6612
|
-
const r = process.env.NODE_ENV !== "production" &&
|
|
6612
|
+
const r = process.env.NODE_ENV !== "production" && _u !== requestAnimationFrame && (_u = requestAnimationFrame, !0);
|
|
6613
6613
|
return (!this.isScheduled || r) && (requestAnimationFrame(this.tick), this.isScheduled = !0), n;
|
|
6614
6614
|
}
|
|
6615
6615
|
cancel(t) {
|
|
@@ -6672,9 +6672,9 @@ function Gn() {
|
|
|
6672
6672
|
const e = yt(Xt.create).current;
|
|
6673
6673
|
return Xo(e.disposeEffect), e;
|
|
6674
6674
|
}
|
|
6675
|
-
let
|
|
6675
|
+
let Nu = 0;
|
|
6676
6676
|
function Xw(e) {
|
|
6677
|
-
return
|
|
6677
|
+
return Nu += 1, `${e}-${Math.random().toString(36).slice(2, 6)}-${Nu}`;
|
|
6678
6678
|
}
|
|
6679
6679
|
function ki() {
|
|
6680
6680
|
return typeof window < "u";
|
|
@@ -6708,7 +6708,7 @@ function Xn(e) {
|
|
|
6708
6708
|
overflowX: n,
|
|
6709
6709
|
overflowY: r,
|
|
6710
6710
|
display: o
|
|
6711
|
-
} =
|
|
6711
|
+
} = Nt(e);
|
|
6712
6712
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && o !== "inline" && o !== "contents";
|
|
6713
6713
|
}
|
|
6714
6714
|
function Kw(e) {
|
|
@@ -6729,7 +6729,7 @@ function Pi(e) {
|
|
|
6729
6729
|
const Jw = /transform|translate|scale|rotate|perspective|filter/, Qw = /paint|layout|strict|content/, rr = (e) => !!e && e !== "none";
|
|
6730
6730
|
let ua;
|
|
6731
6731
|
function Zc(e) {
|
|
6732
|
-
const t = Ve(e) ?
|
|
6732
|
+
const t = Ve(e) ? Nt(e) : e;
|
|
6733
6733
|
return rr(t.transform) || rr(t.translate) || rr(t.scale) || rr(t.rotate) || rr(t.perspective) || !Ii() && (rr(t.backdropFilter) || rr(t.filter)) || Jw.test(t.willChange || "") || Qw.test(t.contain || "");
|
|
6734
6734
|
}
|
|
6735
6735
|
function e1(e) {
|
|
@@ -6749,10 +6749,10 @@ function Ii() {
|
|
|
6749
6749
|
function yn(e) {
|
|
6750
6750
|
return /^(html|body|#document)$/.test(qn(e));
|
|
6751
6751
|
}
|
|
6752
|
-
function
|
|
6752
|
+
function Nt(e) {
|
|
6753
6753
|
return at(e).getComputedStyle(e);
|
|
6754
6754
|
}
|
|
6755
|
-
function
|
|
6755
|
+
function _i(e) {
|
|
6756
6756
|
return Ve(e) ? {
|
|
6757
6757
|
scrollLeft: e.scrollLeft,
|
|
6758
6758
|
scrollTop: e.scrollTop
|
|
@@ -6842,7 +6842,7 @@ function o1() {
|
|
|
6842
6842
|
const e = navigator.userAgentData;
|
|
6843
6843
|
return e?.platform ? e.platform : navigator.platform ?? "";
|
|
6844
6844
|
}
|
|
6845
|
-
const ec = "data-base-ui-focusable", Ip = "active",
|
|
6845
|
+
const ec = "data-base-ui-focusable", Ip = "active", _p = "selected", Np = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
6846
6846
|
function Vt(e) {
|
|
6847
6847
|
let t = e.activeElement;
|
|
6848
6848
|
for (; t?.shadowRoot?.activeElement != null; )
|
|
@@ -6865,7 +6865,7 @@ function Pe(e, t) {
|
|
|
6865
6865
|
}
|
|
6866
6866
|
return !1;
|
|
6867
6867
|
}
|
|
6868
|
-
function
|
|
6868
|
+
function Ap(e, t) {
|
|
6869
6869
|
if (!Ve(e))
|
|
6870
6870
|
return !1;
|
|
6871
6871
|
const n = e;
|
|
@@ -6891,9 +6891,9 @@ function s1(e) {
|
|
|
6891
6891
|
return e.matches("html,body");
|
|
6892
6892
|
}
|
|
6893
6893
|
function qc(e) {
|
|
6894
|
-
return it(e) && e.matches(
|
|
6894
|
+
return it(e) && e.matches(Np);
|
|
6895
6895
|
}
|
|
6896
|
-
function
|
|
6896
|
+
function Au(e) {
|
|
6897
6897
|
return e ? e.getAttribute("role") === "combobox" && qc(e) : !1;
|
|
6898
6898
|
}
|
|
6899
6899
|
function tc(e) {
|
|
@@ -6932,7 +6932,7 @@ function l1(e) {
|
|
|
6932
6932
|
return Pp ? !1 : !Qa && e.width === 0 && e.height === 0 || Qa && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
6933
6933
|
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
6934
6934
|
}
|
|
6935
|
-
function
|
|
6935
|
+
function _o(e, t) {
|
|
6936
6936
|
const n = ["mouse", "pen"];
|
|
6937
6937
|
return t || n.push("", void 0), n.includes(e);
|
|
6938
6938
|
}
|
|
@@ -7045,7 +7045,7 @@ function ti(e) {
|
|
|
7045
7045
|
};
|
|
7046
7046
|
}
|
|
7047
7047
|
function b1(e) {
|
|
7048
|
-
return
|
|
7048
|
+
return Nt(e).display !== "none";
|
|
7049
7049
|
}
|
|
7050
7050
|
var w1 = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], ni = /* @__PURE__ */ w1.join(","), Lp = typeof Element > "u", Hr = Lp ? function() {
|
|
7051
7051
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, ri = !Lp && Element.prototype.getRootNode ? function(e) {
|
|
@@ -7151,7 +7151,7 @@ var w1 = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
7151
7151
|
}, $u = function(t) {
|
|
7152
7152
|
var n = t.getBoundingClientRect(), r = n.width, o = n.height;
|
|
7153
7153
|
return r === 0 && o === 0;
|
|
7154
|
-
},
|
|
7154
|
+
}, _1 = function(t, n) {
|
|
7155
7155
|
var r = n.displayCheck, o = n.getShadowRoot;
|
|
7156
7156
|
if (r === "full-native" && "checkVisibility" in t) {
|
|
7157
7157
|
var s = t.checkVisibility({
|
|
@@ -7193,7 +7193,7 @@ var w1 = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
7193
7193
|
} else if (r === "non-zero-area")
|
|
7194
7194
|
return $u(t);
|
|
7195
7195
|
return !1;
|
|
7196
|
-
},
|
|
7196
|
+
}, N1 = function(t) {
|
|
7197
7197
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
7198
7198
|
for (var n = t.parentElement; n; ) {
|
|
7199
7199
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -7208,11 +7208,11 @@ var w1 = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
7208
7208
|
}
|
|
7209
7209
|
return !1;
|
|
7210
7210
|
}, sc = function(t, n) {
|
|
7211
|
-
return !(n.disabled || C1(n) ||
|
|
7212
|
-
R1(n) ||
|
|
7211
|
+
return !(n.disabled || C1(n) || _1(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
7212
|
+
R1(n) || N1(n));
|
|
7213
7213
|
}, ic = function(t, n) {
|
|
7214
7214
|
return !(P1(n) || Vp(n) < 0 || !sc(t, n));
|
|
7215
|
-
},
|
|
7215
|
+
}, A1 = function(t) {
|
|
7216
7216
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
7217
7217
|
return !!(isNaN(n) || n >= 0);
|
|
7218
7218
|
}, Wp = function(t) {
|
|
@@ -7236,7 +7236,7 @@ var w1 = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
7236
7236
|
filter: ic.bind(null, n),
|
|
7237
7237
|
flatten: !1,
|
|
7238
7238
|
getShadowRoot: n.getShadowRoot,
|
|
7239
|
-
shadowRootFilter:
|
|
7239
|
+
shadowRootFilter: A1
|
|
7240
7240
|
}) : r = $p(t, n.includeContainer, ic.bind(null, n)), Wp(r);
|
|
7241
7241
|
}, D1 = function(t, n) {
|
|
7242
7242
|
n = n || {};
|
|
@@ -7625,7 +7625,7 @@ const Yp = {
|
|
|
7625
7625
|
});
|
|
7626
7626
|
});
|
|
7627
7627
|
process.env.NODE_ENV !== "production" && (sn.displayName = "FocusGuard");
|
|
7628
|
-
function
|
|
7628
|
+
function No(e, t, n, r) {
|
|
7629
7629
|
const o = yt(Zp).current;
|
|
7630
7630
|
return W1(o, e, t, n, r) && qp(o, [e, t, n, r]), o.callback;
|
|
7631
7631
|
}
|
|
@@ -7839,7 +7839,7 @@ function iE(e, t = {}) {
|
|
|
7839
7839
|
stateAttributesMapping: l,
|
|
7840
7840
|
enabled: c = !0
|
|
7841
7841
|
} = t, u = c ? G1(n, s) : void 0, d = c ? z1(r, s) : void 0, h = c ? U1(s, l) : rt, p = c ? ac(h, Array.isArray(a) ? Y1(a) : a) ?? rt : rt;
|
|
7842
|
-
return typeof document < "u" && (c ? Array.isArray(i) ? p.ref = B1([p.ref, Vu(o), ...i]) : p.ref =
|
|
7842
|
+
return typeof document < "u" && (c ? Array.isArray(i) ? p.ref = B1([p.ref, Vu(o), ...i]) : p.ref = No(p.ref, Vu(o), i) : No(null, null)), c ? (u !== void 0 && (p.className = Kp(p.className, u)), d !== void 0 && (p.style = ac(p.style, d)), p) : rt;
|
|
7843
7843
|
}
|
|
7844
7844
|
const aE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
7845
7845
|
function cE(e, t, n, r) {
|
|
@@ -7885,33 +7885,33 @@ const Jp = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
7885
7885
|
className: o,
|
|
7886
7886
|
children: s,
|
|
7887
7887
|
...i
|
|
7888
|
-
} = t, a = yp(), l = Gn(), c = f.useRef(!1), u = f.useRef(!1), d = a.useState("isEmpty"), h = a.useState("toasts"), p = a.useState("focused"), g = a.useState("expanded"), m = a.useState("prevFocusElement"), v = h[0]?.height ?? 0, y = f.useMemo(() => h.some((
|
|
7888
|
+
} = t, a = yp(), l = Gn(), c = f.useRef(!1), u = f.useRef(!1), d = a.useState("isEmpty"), h = a.useState("toasts"), p = a.useState("focused"), g = a.useState("expanded"), m = a.useState("prevFocusElement"), v = h[0]?.height ?? 0, y = f.useMemo(() => h.some((_) => _.transitionStatus === "ending"), [h]);
|
|
7889
7889
|
f.useEffect(() => {
|
|
7890
|
-
const
|
|
7891
|
-
if (!
|
|
7890
|
+
const _ = a.state.viewport;
|
|
7891
|
+
if (!_)
|
|
7892
7892
|
return;
|
|
7893
7893
|
function O(C) {
|
|
7894
|
-
d || C.key === "F6" && C.target !==
|
|
7894
|
+
d || C.key === "F6" && C.target !== _ && (C.preventDefault(), a.setPrevFocusElement(Vt(De(_))), _?.focus({
|
|
7895
7895
|
preventScroll: !0
|
|
7896
7896
|
}), a.pauseTimers(), a.setFocused(!0));
|
|
7897
7897
|
}
|
|
7898
|
-
const k = at(
|
|
7898
|
+
const k = at(_);
|
|
7899
7899
|
return k.addEventListener("keydown", O), () => {
|
|
7900
7900
|
k.removeEventListener("keydown", O);
|
|
7901
7901
|
};
|
|
7902
7902
|
}, [a, d]), f.useEffect(() => {
|
|
7903
|
-
const
|
|
7904
|
-
if (!
|
|
7903
|
+
const _ = a.state.viewport;
|
|
7904
|
+
if (!_ || d)
|
|
7905
7905
|
return;
|
|
7906
|
-
const O = at(
|
|
7906
|
+
const O = at(_);
|
|
7907
7907
|
function k(I) {
|
|
7908
7908
|
I.target === O && (a.setIsWindowFocused(!1), a.pauseTimers());
|
|
7909
7909
|
}
|
|
7910
7910
|
function C(I) {
|
|
7911
7911
|
if (I.relatedTarget || I.target === O)
|
|
7912
7912
|
return;
|
|
7913
|
-
const D = mt(I), T = Vt(De(
|
|
7914
|
-
(!Pe(
|
|
7913
|
+
const D = mt(I), T = Vt(De(_));
|
|
7914
|
+
(!Pe(_, D) || !tc(T)) && a.resumeTimers(), l.start(0, () => a.setIsWindowFocused(!0));
|
|
7915
7915
|
}
|
|
7916
7916
|
return O.addEventListener("blur", k, !0), O.addEventListener("focus", C, !0), () => {
|
|
7917
7917
|
O.removeEventListener("blur", k, !0), O.removeEventListener("focus", C, !0);
|
|
@@ -7925,20 +7925,20 @@ const Jp = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
7925
7925
|
// are added when toasts have been created, once the ref is available.
|
|
7926
7926
|
d
|
|
7927
7927
|
]), f.useEffect(() => {
|
|
7928
|
-
const
|
|
7929
|
-
if (!
|
|
7928
|
+
const _ = a.state.viewport;
|
|
7929
|
+
if (!_ || d)
|
|
7930
7930
|
return;
|
|
7931
|
-
const O = De(
|
|
7931
|
+
const O = De(_);
|
|
7932
7932
|
return O.addEventListener("pointerdown", a.handleDocumentPointerDown, !0), () => {
|
|
7933
7933
|
O.removeEventListener("pointerdown", a.handleDocumentPointerDown, !0);
|
|
7934
7934
|
};
|
|
7935
7935
|
}, [d, a]);
|
|
7936
|
-
function b(
|
|
7936
|
+
function b(_) {
|
|
7937
7937
|
const O = a.state.viewport;
|
|
7938
|
-
O && (c.current = !0,
|
|
7938
|
+
O && (c.current = !0, _.relatedTarget === O ? h[0]?.ref?.current?.focus() : a.restoreFocusToPrevElement());
|
|
7939
7939
|
}
|
|
7940
|
-
function E(
|
|
7941
|
-
|
|
7940
|
+
function E(_) {
|
|
7941
|
+
_.key === "Tab" && _.shiftKey && _.target === a.state.viewport && (_.preventDefault(), a.restoreFocusToPrevElement(), a.resumeTimers());
|
|
7942
7942
|
}
|
|
7943
7943
|
f.useEffect(() => {
|
|
7944
7944
|
!a.state.isWindowFocused || y || !u.current || (a.resumeTimers(), a.setHovering(!1), u.current = !1);
|
|
@@ -7956,8 +7956,8 @@ const Jp = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
7956
7956
|
}
|
|
7957
7957
|
p || tc(De(a.state.viewport).activeElement) && (a.setFocused(!0), a.pauseTimers());
|
|
7958
7958
|
}
|
|
7959
|
-
function S(
|
|
7960
|
-
!p || Pe(a.state.viewport,
|
|
7959
|
+
function S(_) {
|
|
7960
|
+
!p || Pe(a.state.viewport, _.relatedTarget) || (a.setFocused(!1), a.resumeTimers());
|
|
7961
7961
|
}
|
|
7962
7962
|
const P = {
|
|
7963
7963
|
tabIndex: -1,
|
|
@@ -7973,11 +7973,11 @@ const Jp = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
7973
7973
|
onBlur: S,
|
|
7974
7974
|
onKeyDown: E,
|
|
7975
7975
|
onClick: R
|
|
7976
|
-
},
|
|
7976
|
+
}, N = {
|
|
7977
7977
|
expanded: g
|
|
7978
7978
|
}, L = qe("div", t, {
|
|
7979
7979
|
ref: [n, a.setViewport],
|
|
7980
|
-
state:
|
|
7980
|
+
state: N,
|
|
7981
7981
|
props: [P, {
|
|
7982
7982
|
style: {
|
|
7983
7983
|
[dE.frontmostHeight]: v ? `${v}px` : void 0
|
|
@@ -7991,21 +7991,21 @@ const Jp = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
7991
7991
|
})]
|
|
7992
7992
|
})
|
|
7993
7993
|
}]
|
|
7994
|
-
}), M = f.useMemo(() => h.filter((
|
|
7994
|
+
}), M = f.useMemo(() => h.filter((_) => _.priority === "high"), [h]);
|
|
7995
7995
|
return /* @__PURE__ */ ce(f.Fragment, {
|
|
7996
7996
|
children: [!d && m && /* @__PURE__ */ A(sn, {
|
|
7997
7997
|
onFocus: b
|
|
7998
7998
|
}), L, !p && M.length > 0 && /* @__PURE__ */ A("div", {
|
|
7999
7999
|
style: el,
|
|
8000
|
-
children: M.map((
|
|
8000
|
+
children: M.map((_) => /* @__PURE__ */ ce("div", {
|
|
8001
8001
|
role: "alert",
|
|
8002
8002
|
"aria-atomic": !0,
|
|
8003
8003
|
children: [/* @__PURE__ */ A("div", {
|
|
8004
|
-
children:
|
|
8004
|
+
children: _.title
|
|
8005
8005
|
}), /* @__PURE__ */ A("div", {
|
|
8006
|
-
children:
|
|
8006
|
+
children: _.description
|
|
8007
8007
|
})]
|
|
8008
|
-
},
|
|
8008
|
+
}, _.id))
|
|
8009
8009
|
})]
|
|
8010
8010
|
});
|
|
8011
8011
|
});
|
|
@@ -8021,13 +8021,13 @@ function fE() {
|
|
|
8021
8021
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>." : lt(66));
|
|
8022
8022
|
return e;
|
|
8023
8023
|
}
|
|
8024
|
-
let
|
|
8024
|
+
let Ao = /* @__PURE__ */ (function(e) {
|
|
8025
8025
|
return e.startingStyle = "data-starting-style", e.endingStyle = "data-ending-style", e;
|
|
8026
8026
|
})({});
|
|
8027
8027
|
const pE = {
|
|
8028
|
-
[
|
|
8028
|
+
[Ao.startingStyle]: ""
|
|
8029
8029
|
}, hE = {
|
|
8030
|
-
[
|
|
8030
|
+
[Ao.endingStyle]: ""
|
|
8031
8031
|
}, wr = {
|
|
8032
8032
|
transitionStatus(e) {
|
|
8033
8033
|
return e === "starting" ? pE : e === "ending" ? hE : null;
|
|
@@ -8051,7 +8051,7 @@ function Qp(e, t = !1, n = !0) {
|
|
|
8051
8051
|
o();
|
|
8052
8052
|
else {
|
|
8053
8053
|
let c = function() {
|
|
8054
|
-
const d =
|
|
8054
|
+
const d = Ao.startingStyle;
|
|
8055
8055
|
if (!l.hasAttribute(d)) {
|
|
8056
8056
|
r.request(u);
|
|
8057
8057
|
return;
|
|
@@ -8111,7 +8111,7 @@ const mE = {
|
|
|
8111
8111
|
"data-swipe-direction": e
|
|
8112
8112
|
} : null;
|
|
8113
8113
|
}
|
|
8114
|
-
}, ho = 40, gE = 10,
|
|
8114
|
+
}, ho = 40, gE = 10, An = 0.5, vE = 1, yE = `${nE},${rE}`;
|
|
8115
8115
|
function Bu(e, t, n) {
|
|
8116
8116
|
switch (e) {
|
|
8117
8117
|
case "up":
|
|
@@ -8159,7 +8159,7 @@ const eh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
8159
8159
|
x: 0,
|
|
8160
8160
|
y: 0,
|
|
8161
8161
|
scale: 1
|
|
8162
|
-
}), [P,
|
|
8162
|
+
}), [P, N] = f.useState(), [L, M] = f.useState(), [_, O] = f.useState(null), k = f.useRef(null), C = f.useRef({
|
|
8163
8163
|
x: 0,
|
|
8164
8164
|
y: 0
|
|
8165
8165
|
}), I = f.useRef({
|
|
@@ -8199,7 +8199,7 @@ const eh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
8199
8199
|
be(j, [j]);
|
|
8200
8200
|
function Y(ee, G) {
|
|
8201
8201
|
let B = ee, K = G;
|
|
8202
|
-
return !c.includes("left") && !c.includes("right") ? B = ee > 0 ? ee **
|
|
8202
|
+
return !c.includes("left") && !c.includes("right") ? B = ee > 0 ? ee ** An : -(Math.abs(ee) ** An) : (!c.includes("right") && ee > 0 && (B = ee ** An), !c.includes("left") && ee < 0 && (B = -(Math.abs(ee) ** An))), !c.includes("up") && !c.includes("down") ? K = G > 0 ? G ** An : -(Math.abs(G) ** An) : (!c.includes("down") && G > 0 && (K = G ** An), !c.includes("up") && G < 0 && (K = -(Math.abs(G) ** An))), {
|
|
8203
8203
|
x: B,
|
|
8204
8204
|
y: K
|
|
8205
8205
|
};
|
|
@@ -8243,24 +8243,24 @@ const eh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
8243
8243
|
x: B,
|
|
8244
8244
|
y: F.current.y
|
|
8245
8245
|
});
|
|
8246
|
-
const Ce = B - C.current.x,
|
|
8247
|
-
if (!v && Math.sqrt(Ce * Ce +
|
|
8246
|
+
const Ce = B - C.current.x, Ne = G - C.current.y, Fe = G - F.current.y, _e = B - F.current.x;
|
|
8247
|
+
if (!v && Math.sqrt(Ce * Ce + Ne * Ne) >= vE && (y(!0), _ === null)) {
|
|
8248
8248
|
const ut = c.includes("left") || c.includes("right"), St = c.includes("up") || c.includes("down");
|
|
8249
8249
|
if (ut && St) {
|
|
8250
|
-
const kt = Math.abs(Ce), Lt = Math.abs(
|
|
8250
|
+
const kt = Math.abs(Ce), Lt = Math.abs(Ne);
|
|
8251
8251
|
O(kt > Lt ? "horizontal" : "vertical");
|
|
8252
8252
|
}
|
|
8253
8253
|
}
|
|
8254
8254
|
let we;
|
|
8255
8255
|
if (!D.current)
|
|
8256
|
-
|
|
8256
|
+
_ === "vertical" ? Ne > 0 ? we = "down" : Ne < 0 && (we = "up") : _ === "horizontal" ? Ce > 0 ? we = "right" : Ce < 0 && (we = "left") : Math.abs(Ce) >= Math.abs(Ne) ? we = Ce > 0 ? "right" : "left" : we = Ne > 0 ? "down" : "up", we && c.includes(we) && (D.current = we, T.current = Bu(we, Ce, Ne), p(we));
|
|
8257
8257
|
else {
|
|
8258
|
-
const et = D.current, ut = Bu(et,
|
|
8258
|
+
const et = D.current, ut = Bu(et, _e, Fe);
|
|
8259
8259
|
ut > ho ? ($.current = !1, p(et)) : !(c.includes("left") && c.includes("right")) && !(c.includes("up") && c.includes("down")) && T.current - ut >= gE && ($.current = !0);
|
|
8260
8260
|
}
|
|
8261
|
-
const ke = Y(Ce,
|
|
8261
|
+
const ke = Y(Ce, Ne);
|
|
8262
8262
|
let Re = I.current.x, Be = I.current.y;
|
|
8263
|
-
|
|
8263
|
+
_ === "horizontal" ? (c.includes("left") || c.includes("right")) && (Re += ke.x) : (_ === "vertical" || (c.includes("left") || c.includes("right")) && (Re += ke.x), (c.includes("up") || c.includes("down")) && (Be += ke.y)), w({
|
|
8264
8264
|
x: Re,
|
|
8265
8265
|
y: Be
|
|
8266
8266
|
});
|
|
@@ -8361,7 +8361,7 @@ const eh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
8361
8361
|
rootRef: k,
|
|
8362
8362
|
toast: r,
|
|
8363
8363
|
titleId: P,
|
|
8364
|
-
setTitleId:
|
|
8364
|
+
setTitleId: N,
|
|
8365
8365
|
descriptionId: L,
|
|
8366
8366
|
setDescriptionId: M,
|
|
8367
8367
|
swiping: g,
|
|
@@ -8474,7 +8474,7 @@ function xE(e) {
|
|
|
8474
8474
|
}, [r, n, t, i, a, s, o])
|
|
8475
8475
|
};
|
|
8476
8476
|
}
|
|
8477
|
-
function
|
|
8477
|
+
function Ni(e = {}) {
|
|
8478
8478
|
const {
|
|
8479
8479
|
disabled: t = !1,
|
|
8480
8480
|
focusableWhenDisabled: n,
|
|
@@ -8533,14 +8533,14 @@ function Ai(e = {}) {
|
|
|
8533
8533
|
onKeyDown(w) {
|
|
8534
8534
|
if (t || (uc(w), y?.(w), w.baseUIHandlerPrevented))
|
|
8535
8535
|
return;
|
|
8536
|
-
const R = w.target === w.currentTarget, S = w.currentTarget, P = ws(S),
|
|
8537
|
-
if (R && l &&
|
|
8536
|
+
const R = w.target === w.currentTarget, S = w.currentTarget, P = ws(S), N = !o && SE(S), L = R && (o ? P : !N), M = w.key === "Enter", _ = w.key === " ", O = S.getAttribute("role"), k = O?.startsWith("menuitem") || O === "option" || O === "gridcell";
|
|
8537
|
+
if (R && l && _) {
|
|
8538
8538
|
if (w.defaultPrevented && k)
|
|
8539
8539
|
return;
|
|
8540
|
-
w.preventDefault(),
|
|
8540
|
+
w.preventDefault(), N || o && P ? (S.click(), w.preventBaseUIHandler()) : L && (g?.(w), w.preventBaseUIHandler());
|
|
8541
8541
|
return;
|
|
8542
8542
|
}
|
|
8543
|
-
L && (!o && (
|
|
8543
|
+
L && (!o && (_ || M) && w.preventDefault(), !o && M && g?.(w));
|
|
8544
8544
|
},
|
|
8545
8545
|
onKeyUp(w) {
|
|
8546
8546
|
if (!t) {
|
|
@@ -8576,7 +8576,7 @@ function SE(e) {
|
|
|
8576
8576
|
return !!(e?.tagName === "A" && e?.href);
|
|
8577
8577
|
}
|
|
8578
8578
|
function CE(e, t) {
|
|
8579
|
-
return t != null && !
|
|
8579
|
+
return t != null && !_o(t) ? 0 : typeof e == "function" ? e() : e;
|
|
8580
8580
|
}
|
|
8581
8581
|
function Bs(e, t, n) {
|
|
8582
8582
|
const r = CE(e, n);
|
|
@@ -8846,7 +8846,7 @@ function uh() {
|
|
|
8846
8846
|
}
|
|
8847
8847
|
};
|
|
8848
8848
|
}
|
|
8849
|
-
class
|
|
8849
|
+
class _E {
|
|
8850
8850
|
nodesRef = {
|
|
8851
8851
|
current: []
|
|
8852
8852
|
};
|
|
@@ -8867,7 +8867,7 @@ const xr = () => f.useContext(al)?.id || null, ro = (e) => {
|
|
|
8867
8867
|
const t = f.useContext(cl);
|
|
8868
8868
|
return e ?? t;
|
|
8869
8869
|
};
|
|
8870
|
-
function
|
|
8870
|
+
function NE(e) {
|
|
8871
8871
|
const t = Er(), n = ro(e), r = xr();
|
|
8872
8872
|
return be(() => {
|
|
8873
8873
|
if (!t)
|
|
@@ -8881,7 +8881,7 @@ function AE(e) {
|
|
|
8881
8881
|
};
|
|
8882
8882
|
}, [n, t, r]), t;
|
|
8883
8883
|
}
|
|
8884
|
-
function
|
|
8884
|
+
function AE(e) {
|
|
8885
8885
|
const {
|
|
8886
8886
|
children: t,
|
|
8887
8887
|
id: n
|
|
@@ -8898,7 +8898,7 @@ function DE(e) {
|
|
|
8898
8898
|
const {
|
|
8899
8899
|
children: t,
|
|
8900
8900
|
externalTree: n
|
|
8901
|
-
} = e, r = yt(() => n ?? new
|
|
8901
|
+
} = e, r = yt(() => n ?? new _E()).current;
|
|
8902
8902
|
return /* @__PURE__ */ A(cl.Provider, {
|
|
8903
8903
|
value: r,
|
|
8904
8904
|
children: t
|
|
@@ -8956,7 +8956,7 @@ function dh(e) {
|
|
|
8956
8956
|
} = e, m = "rootStore" in t ? t.rootStore : t, v = m.useState("open"), y = m.useState("domReferenceElement"), b = m.useState("floatingElement"), {
|
|
8957
8957
|
events: E,
|
|
8958
8958
|
dataRef: x
|
|
8959
|
-
} = m.context, w = ge(() => x.current.floatingContext?.nodeId), R = o === !1, S =
|
|
8959
|
+
} = m.context, w = ge(() => x.current.floatingContext?.nodeId), R = o === !1, S = Au(y) && R, P = f.useRef(["content"]), N = rn(o), L = rn(s), M = rn(c), _ = ro(p), O = ch(), k = f.useRef(!1), C = f.useRef(!1), I = f.useRef(!1), D = f.useRef(-1), T = f.useRef(""), $ = f.useRef(""), F = f.useRef(null), W = f.useRef(null), V = No(F, h, O?.beforeInsideRef), z = No(W, O?.afterInsideRef), Z = Gn(), q = Gn(), H = zc(), j = O != null, Y = nc(b), ne = ge((X = Y) => X ? Ko(X, to()) : []), te = ge(() => g?.().filter((X) => X != null) ?? []), Q = ge((X) => {
|
|
8960
8960
|
const U = ne(X);
|
|
8961
8961
|
return P.current.map(() => U).filter(Boolean).flat();
|
|
8962
8962
|
});
|
|
@@ -9003,7 +9003,7 @@ function dh(e) {
|
|
|
9003
9003
|
function pe(G) {
|
|
9004
9004
|
const B = G.relatedTarget, K = G.currentTarget, he = mt(G);
|
|
9005
9005
|
queueMicrotask(() => {
|
|
9006
|
-
const Ce = w(),
|
|
9006
|
+
const Ce = w(), Ne = m.context.triggerElements, Fe = te(), _e = B?.hasAttribute(ai("focus-guard")) && [F.current, W.current, O?.beforeInsideRef.current, O?.afterInsideRef.current, O?.beforeOutsideRef.current, O?.afterOutsideRef.current, mn(d), mn(u)].includes(B), we = !(Pe(y, B) || Pe(b, B) || Pe(B, b) || Pe(O?.portalNode, B) || Fe.some((ke) => ke === B || Pe(ke, B)) || B != null && Ne.hasElement(B) || Ne.hasMatchingElement((ke) => Pe(ke, B)) || _e || _ && (bn(_.nodesRef.current, Ce).find((ke) => Pe(ke.context?.elements.floating, B) || Pe(ke.context?.elements.domReference, B)) || Du(_.nodesRef.current, Ce).find((ke) => [ke.context?.elements.floating, nc(ke.context?.elements.floating)].includes(B) || ke.context?.elements.domReference === B)));
|
|
9007
9007
|
if (K === y && Y && Xu(Y, P), i && K !== y && !FE(he) && Vt(X) === X.body) {
|
|
9008
9008
|
if (it(Y) && (Y.focus(), i === "popup")) {
|
|
9009
9009
|
H.request(() => {
|
|
@@ -9046,22 +9046,22 @@ function dh(e) {
|
|
|
9046
9046
|
G();
|
|
9047
9047
|
});
|
|
9048
9048
|
};
|
|
9049
|
-
}, [r, y, b, Y, a,
|
|
9049
|
+
}, [r, y, b, Y, a, _, O, m, l, i, ne, S, w, P, x, Z, q, H, u, d, te]), f.useEffect(() => {
|
|
9050
9050
|
if (r || !b || !v)
|
|
9051
9051
|
return;
|
|
9052
|
-
const X = Array.from(O?.portalNode?.querySelectorAll(`[${ai("portal")}]`) || []), fe = (
|
|
9052
|
+
const X = Array.from(O?.portalNode?.querySelectorAll(`[${ai("portal")}]`) || []), fe = (_ ? Du(_.nodesRef.current, w()) : []).find((B) => Au(B.context?.elements.domReference || null))?.context?.elements.domReference, re = [...[b, ...X, F.current, W.current, O?.beforeOutsideRef.current, O?.afterOutsideRef.current, ...te()], fe, mn(d), mn(u), S ? y : null].filter((B) => B != null), de = Zu(re, {
|
|
9053
9053
|
ariaHidden: a || S,
|
|
9054
9054
|
mark: !1
|
|
9055
9055
|
}), ee = [b, ...X].filter((B) => B != null), G = Zu(ee);
|
|
9056
9056
|
return () => {
|
|
9057
9057
|
G(), de();
|
|
9058
9058
|
};
|
|
9059
|
-
}, [v, r, y, b, a, P, O, S,
|
|
9059
|
+
}, [v, r, y, b, a, P, O, S, _, w, u, d, te]), be(() => {
|
|
9060
9060
|
if (!v || r || !it(Y))
|
|
9061
9061
|
return;
|
|
9062
9062
|
const X = De(Y), U = Vt(X);
|
|
9063
9063
|
queueMicrotask(() => {
|
|
9064
|
-
const fe = Q(Y), pe =
|
|
9064
|
+
const fe = Q(Y), pe = N.current, re = typeof pe == "function" ? pe(M.current || "") : pe;
|
|
9065
9065
|
if (re === void 0 || re === !1)
|
|
9066
9066
|
return;
|
|
9067
9067
|
let de;
|
|
@@ -9069,7 +9069,7 @@ function dh(e) {
|
|
|
9069
9069
|
preventScroll: de === Y
|
|
9070
9070
|
});
|
|
9071
9071
|
});
|
|
9072
|
-
}, [r, v, Y, R, Q,
|
|
9072
|
+
}, [r, v, Y, R, Q, N, M]), be(() => {
|
|
9073
9073
|
if (r || !Y)
|
|
9074
9074
|
return;
|
|
9075
9075
|
const X = De(Y), U = Vt(X);
|
|
@@ -9104,7 +9104,7 @@ function dh(e) {
|
|
|
9104
9104
|
}
|
|
9105
9105
|
return () => {
|
|
9106
9106
|
E.off("openchange", fe);
|
|
9107
|
-
const re = Vt(X), de = te(), ee = Pe(b, re) || de.some((B) => B === re || Pe(B, re)) ||
|
|
9107
|
+
const re = Vt(X), de = te(), ee = Pe(b, re) || de.some((B) => B === re || Pe(B, re)) || _ && bn(_.nodesRef.current, w(), !1).some((B) => Pe(B.context?.elements.floating, re)), G = pe();
|
|
9108
9108
|
queueMicrotask(() => {
|
|
9109
9109
|
const B = $E(G), K = typeof L.current != "boolean";
|
|
9110
9110
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -9116,7 +9116,7 @@ function dh(e) {
|
|
|
9116
9116
|
}), k.current = !1;
|
|
9117
9117
|
});
|
|
9118
9118
|
};
|
|
9119
|
-
}, [r, b, Y, L, x, E,
|
|
9119
|
+
}, [r, b, Y, L, x, E, _, y, w, te]), be(() => {
|
|
9120
9120
|
if (!Op || v || !b)
|
|
9121
9121
|
return;
|
|
9122
9122
|
const X = Vt(De(b));
|
|
@@ -9173,7 +9173,7 @@ function fh(e, t = {}) {
|
|
|
9173
9173
|
},
|
|
9174
9174
|
onMouseDown(m) {
|
|
9175
9175
|
const v = d.current, y = m.nativeEvent, b = n.select("open");
|
|
9176
|
-
if (m.button !== 0 || s === "click" ||
|
|
9176
|
+
if (m.button !== 0 || s === "click" || _o(v, !0) && a)
|
|
9177
9177
|
return;
|
|
9178
9178
|
const E = r.current.openEvent, x = E?.type, w = n.select("domReferenceElement") !== m.currentTarget, R = b && w || !(b && i && (!(E && l) || x === "click" || x === "mousedown"));
|
|
9179
9179
|
if (qc(y.target)) {
|
|
@@ -9199,7 +9199,7 @@ function fh(e, t = {}) {
|
|
|
9199
9199
|
d.current = void 0;
|
|
9200
9200
|
return;
|
|
9201
9201
|
}
|
|
9202
|
-
if (
|
|
9202
|
+
if (_o(v, !0) && a)
|
|
9203
9203
|
return;
|
|
9204
9204
|
const y = n.select("open"), b = r.current.openEvent, E = n.select("domReferenceElement") !== m.currentTarget, x = y && E || !(y && i && (!(b && l) || Dp(b))), w = Ze(u, m.nativeEvent, m.currentTarget);
|
|
9205
9205
|
x && v === "touch" && c > 0 ? p.start(c, () => {
|
|
@@ -9242,10 +9242,10 @@ function ph(e, t = {}) {
|
|
|
9242
9242
|
} = t, g = ro(p), m = ge(typeof l == "function" ? l : () => !1), v = typeof l == "function" ? m : l, y = v !== !1, b = ge(() => c), E = f.useRef(!1), x = f.useRef(!1), w = f.useRef(!1), {
|
|
9243
9243
|
escapeKey: R,
|
|
9244
9244
|
outsidePress: S
|
|
9245
|
-
} = WE(h), P = f.useRef(null),
|
|
9245
|
+
} = WE(h), P = f.useRef(null), N = Gn(), L = Gn(), M = ge(() => {
|
|
9246
9246
|
L.clear(), s.current.insideReactTree = !1;
|
|
9247
|
-
}),
|
|
9248
|
-
if (!r || !i || !a || W.key !== "Escape" ||
|
|
9247
|
+
}), _ = f.useRef(!1), O = f.useRef(""), k = ge(u), C = ge((W) => {
|
|
9248
|
+
if (!r || !i || !a || W.key !== "Escape" || _.current)
|
|
9249
9249
|
return;
|
|
9250
9250
|
const V = s.current.floatingContext?.nodeId, z = g ? bn(g.nodesRef.current, V) : [];
|
|
9251
9251
|
if (!R && z.length > 0) {
|
|
@@ -9266,7 +9266,7 @@ function ph(e, t = {}) {
|
|
|
9266
9266
|
s.current.__escapeKeyBubbles = R, s.current.__outsidePressBubbles = S;
|
|
9267
9267
|
const W = new Xt(), V = new Xt();
|
|
9268
9268
|
function z() {
|
|
9269
|
-
W.clear(),
|
|
9269
|
+
W.clear(), _.current = !0;
|
|
9270
9270
|
}
|
|
9271
9271
|
function Z() {
|
|
9272
9272
|
W.start(
|
|
@@ -9274,7 +9274,7 @@ function ph(e, t = {}) {
|
|
|
9274
9274
|
// Only apply to WebKit for the test to remain 0ms.
|
|
9275
9275
|
Ii() ? 5 : 0,
|
|
9276
9276
|
() => {
|
|
9277
|
-
|
|
9277
|
+
_.current = !1;
|
|
9278
9278
|
}
|
|
9279
9279
|
);
|
|
9280
9280
|
}
|
|
@@ -9309,25 +9309,25 @@ function ph(e, t = {}) {
|
|
|
9309
9309
|
}
|
|
9310
9310
|
const K = mt(B), he = `[${ai("inert")}]`;
|
|
9311
9311
|
let Ce = Array.from(De(n.select("floatingElement")).querySelectorAll(he));
|
|
9312
|
-
const
|
|
9313
|
-
Po(
|
|
9312
|
+
const Ne = Ve(K) ? K.getRootNode() : null;
|
|
9313
|
+
Po(Ne) && (Ce = Ce.concat(Array.from(Ne.querySelectorAll(he))));
|
|
9314
9314
|
const Fe = n.context.triggerElements;
|
|
9315
9315
|
if (K && (Fe.hasElement(K) || Fe.hasMatchingElement((Re) => Pe(Re, K))))
|
|
9316
9316
|
return;
|
|
9317
|
-
let
|
|
9318
|
-
for (;
|
|
9319
|
-
const Re = xn(
|
|
9317
|
+
let _e = Ve(K) ? K : null;
|
|
9318
|
+
for (; _e && !yn(_e); ) {
|
|
9319
|
+
const Re = xn(_e);
|
|
9320
9320
|
if (yn(Re) || !Ve(Re))
|
|
9321
9321
|
break;
|
|
9322
|
-
|
|
9322
|
+
_e = Re;
|
|
9323
9323
|
}
|
|
9324
9324
|
if (Ce.length && Ve(K) && !s1(K) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
9325
9325
|
!Pe(K, n.select("floatingElement")) && // If the target root element contains none of the markers, then the
|
|
9326
9326
|
// element was injected after the floating element rendered.
|
|
9327
|
-
Ce.every((Re) => !Pe(
|
|
9327
|
+
Ce.every((Re) => !Pe(_e, Re)))
|
|
9328
9328
|
return;
|
|
9329
9329
|
if (it(K) && !("touches" in B)) {
|
|
9330
|
-
const Re = yn(K), Be =
|
|
9330
|
+
const Re = yn(K), Be = Nt(K), et = /auto|scroll/, ut = Re || et.test(Be.overflowX), St = Re || et.test(Be.overflowY), kt = ut && K.clientWidth > 0 && K.scrollWidth > K.clientWidth, Lt = St && K.clientHeight > 0 && K.scrollHeight > K.clientHeight, ye = Be.direction === "rtl", Ge = Lt && (ye ? B.offsetX <= K.offsetWidth - K.clientWidth : B.offsetX > K.clientWidth), ie = kt && B.offsetY > K.clientHeight;
|
|
9331
9331
|
if (Ge || ie)
|
|
9332
9332
|
return;
|
|
9333
9333
|
}
|
|
@@ -9362,7 +9362,7 @@ function ph(e, t = {}) {
|
|
|
9362
9362
|
startY: K.clientY,
|
|
9363
9363
|
dismissOnTouchEnd: !1,
|
|
9364
9364
|
dismissOnMouseDown: !0
|
|
9365
|
-
},
|
|
9365
|
+
}, N.start(1e3, () => {
|
|
9366
9366
|
P.current && (P.current.dismissOnTouchEnd = !1, P.current.dismissOnMouseDown = !1);
|
|
9367
9367
|
}));
|
|
9368
9368
|
}
|
|
@@ -9375,7 +9375,7 @@ function ph(e, t = {}) {
|
|
|
9375
9375
|
K?.addEventListener(B.type, he);
|
|
9376
9376
|
}
|
|
9377
9377
|
function U(B) {
|
|
9378
|
-
if (
|
|
9378
|
+
if (N.clear(), B.type === "pointerdown" && (O.current = B.pointerType), B.type === "mousedown" && P.current && !P.current.dismissOnMouseDown)
|
|
9379
9379
|
return;
|
|
9380
9380
|
const K = mt(B);
|
|
9381
9381
|
function he() {
|
|
@@ -9407,8 +9407,8 @@ function ph(e, t = {}) {
|
|
|
9407
9407
|
const K = B.touches[0];
|
|
9408
9408
|
if (!K)
|
|
9409
9409
|
return;
|
|
9410
|
-
const he = Math.abs(K.clientX - P.current.startX), Ce = Math.abs(K.clientY - P.current.startY),
|
|
9411
|
-
|
|
9410
|
+
const he = Math.abs(K.clientX - P.current.startX), Ce = Math.abs(K.clientY - P.current.startY), Ne = Math.sqrt(he * he + Ce * Ce);
|
|
9411
|
+
Ne > 5 && (P.current.dismissOnTouchEnd = !0), Ne > 10 && (te(B), N.clear(), P.current = null);
|
|
9412
9412
|
}
|
|
9413
9413
|
function re(B) {
|
|
9414
9414
|
const K = mt(B);
|
|
@@ -9418,7 +9418,7 @@ function ph(e, t = {}) {
|
|
|
9418
9418
|
K?.addEventListener(B.type, he);
|
|
9419
9419
|
}
|
|
9420
9420
|
function de(B) {
|
|
9421
|
-
j() !== "sloppy" || !P.current || Gt(B, n.select("floatingElement")) || Gt(B, n.select("domReferenceElement")) || (P.current.dismissOnTouchEnd && te(B),
|
|
9421
|
+
j() !== "sloppy" || !P.current || Gt(B, n.select("floatingElement")) || Gt(B, n.select("domReferenceElement")) || (P.current.dismissOnTouchEnd && te(B), N.clear(), P.current = null);
|
|
9422
9422
|
}
|
|
9423
9423
|
function ee(B) {
|
|
9424
9424
|
const K = mt(B);
|
|
@@ -9431,7 +9431,7 @@ function ph(e, t = {}) {
|
|
|
9431
9431
|
return a && (G.addEventListener("keydown", C), G.addEventListener("compositionstart", z), G.addEventListener("compositionend", Z)), y && (G.addEventListener("click", U, !0), G.addEventListener("pointerdown", U, !0), G.addEventListener("pointerup", fe, !0), G.addEventListener("pointercancel", fe, !0), G.addEventListener("mousedown", U, !0), G.addEventListener("mouseup", fe, !0), G.addEventListener("touchstart", X, !0), G.addEventListener("touchmove", re, !0), G.addEventListener("touchend", ee, !0)), () => {
|
|
9432
9432
|
a && (G.removeEventListener("keydown", C), G.removeEventListener("compositionstart", z), G.removeEventListener("compositionend", Z)), y && (G.removeEventListener("click", U, !0), G.removeEventListener("pointerdown", U, !0), G.removeEventListener("pointerup", fe, !0), G.removeEventListener("pointercancel", fe, !0), G.removeEventListener("mousedown", U, !0), G.removeEventListener("mouseup", fe, !0), G.removeEventListener("touchstart", X, !0), G.removeEventListener("touchmove", re, !0), G.removeEventListener("touchend", ee, !0)), W.clear(), V.clear(), H(), w.current = !1;
|
|
9433
9433
|
};
|
|
9434
|
-
}, [s, o, a, y, v, r, i, R, S, C, M, b, g, n,
|
|
9434
|
+
}, [s, o, a, y, v, r, i, R, S, C, M, b, g, n, N]), f.useEffect(M, [v, M]);
|
|
9435
9435
|
const D = f.useMemo(() => ({
|
|
9436
9436
|
onKeyDown: C,
|
|
9437
9437
|
[VE[d]]: (W) => {
|
|
@@ -9656,17 +9656,17 @@ const HE = 50, UE = async (e, t, n) => {
|
|
|
9656
9656
|
return {};
|
|
9657
9657
|
const y = Ot(o), b = Bt(a), E = Ot(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = h || (E || !m ? [ei(a)] : p1(a)), R = g !== "none";
|
|
9658
9658
|
!h && R && w.push(...v1(a, m, g, x));
|
|
9659
|
-
const S = [a, ...w], P = await l.detectOverflow(t, v),
|
|
9659
|
+
const S = [a, ...w], P = await l.detectOverflow(t, v), N = [];
|
|
9660
9660
|
let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
9661
|
-
if (u &&
|
|
9661
|
+
if (u && N.push(P[y]), d) {
|
|
9662
9662
|
const k = f1(o, i, x);
|
|
9663
|
-
|
|
9663
|
+
N.push(P[k[0]], P[k[1]]);
|
|
9664
9664
|
}
|
|
9665
9665
|
if (L = [...L, {
|
|
9666
9666
|
placement: o,
|
|
9667
|
-
overflows:
|
|
9668
|
-
}], !
|
|
9669
|
-
var M,
|
|
9667
|
+
overflows: N
|
|
9668
|
+
}], !N.every((k) => k <= 0)) {
|
|
9669
|
+
var M, _;
|
|
9670
9670
|
const k = (((M = s.flip) == null ? void 0 : M.index) || 0) + 1, C = S[k];
|
|
9671
9671
|
if (C && (!(d === "alignment" ? b !== Bt(C) : !1) || // We leave the current main axis only if every placement on that axis
|
|
9672
9672
|
// overflows the main axis.
|
|
@@ -9680,7 +9680,7 @@ const HE = 50, UE = async (e, t, n) => {
|
|
|
9680
9680
|
placement: C
|
|
9681
9681
|
}
|
|
9682
9682
|
};
|
|
9683
|
-
let I = (
|
|
9683
|
+
let I = (_ = L.filter((D) => D.overflows[0] <= 0).sort((D, T) => D.overflows[1] - T.overflows[1])[0]) == null ? void 0 : _.placement;
|
|
9684
9684
|
if (!I)
|
|
9685
9685
|
switch (p) {
|
|
9686
9686
|
case "bestFit": {
|
|
@@ -9938,16 +9938,16 @@ const ZE = function(e) {
|
|
|
9938
9938
|
const b = m - u.top - u.bottom, E = g - u.left - u.right, x = jr(m - u[v], b), w = jr(g - u[y], E), R = !t.middlewareData.shift;
|
|
9939
9939
|
let S = x, P = w;
|
|
9940
9940
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = E), (r = t.middlewareData.shift) != null && r.enabled.y && (S = b), R && !h) {
|
|
9941
|
-
const L = It(u.left, 0), M = It(u.right, 0),
|
|
9942
|
-
p ? P = g - 2 * (L !== 0 || M !== 0 ? L + M : It(u.left, u.right)) : S = m - 2 * (
|
|
9941
|
+
const L = It(u.left, 0), M = It(u.right, 0), _ = It(u.top, 0), O = It(u.bottom, 0);
|
|
9942
|
+
p ? P = g - 2 * (L !== 0 || M !== 0 ? L + M : It(u.left, u.right)) : S = m - 2 * (_ !== 0 || O !== 0 ? _ + O : It(u.top, u.bottom));
|
|
9943
9943
|
}
|
|
9944
9944
|
await l({
|
|
9945
9945
|
...t,
|
|
9946
9946
|
availableWidth: P,
|
|
9947
9947
|
availableHeight: S
|
|
9948
9948
|
});
|
|
9949
|
-
const
|
|
9950
|
-
return g !==
|
|
9949
|
+
const N = await i.getDimensions(a.floating);
|
|
9950
|
+
return g !== N.width || m !== N.height ? {
|
|
9951
9951
|
reset: {
|
|
9952
9952
|
rects: !0
|
|
9953
9953
|
}
|
|
@@ -9956,7 +9956,7 @@ const ZE = function(e) {
|
|
|
9956
9956
|
};
|
|
9957
9957
|
};
|
|
9958
9958
|
function mh(e) {
|
|
9959
|
-
const t =
|
|
9959
|
+
const t = Nt(e);
|
|
9960
9960
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
9961
9961
|
const o = it(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = Qs(n) !== s || Qs(r) !== i;
|
|
9962
9962
|
return a && (n = s, r = i), {
|
|
@@ -10005,7 +10005,7 @@ function hr(e, t, n, r) {
|
|
|
10005
10005
|
const h = at(s), p = r && Ve(r) ? at(r) : r;
|
|
10006
10006
|
let g = h, m = Ja(g);
|
|
10007
10007
|
for (; m && r && p !== g; ) {
|
|
10008
|
-
const v = Fr(m), y = m.getBoundingClientRect(), b =
|
|
10008
|
+
const v = Fr(m), y = m.getBoundingClientRect(), b = Nt(m), E = y.left + (m.clientLeft + parseFloat(b.paddingLeft)) * v.x, x = y.top + (m.clientTop + parseFloat(b.paddingTop)) * v.y;
|
|
10009
10009
|
l *= v.x, c *= v.y, u *= v.x, d *= v.y, l += E, c += x, g = at(m), m = Ja(g);
|
|
10010
10010
|
}
|
|
10011
10011
|
}
|
|
@@ -10016,12 +10016,12 @@ function hr(e, t, n, r) {
|
|
|
10016
10016
|
y: c
|
|
10017
10017
|
});
|
|
10018
10018
|
}
|
|
10019
|
-
function
|
|
10020
|
-
const n =
|
|
10019
|
+
function Ai(e, t) {
|
|
10020
|
+
const n = _i(e).scrollLeft;
|
|
10021
10021
|
return t ? t.left + n : hr(dn(e)).left + n;
|
|
10022
10022
|
}
|
|
10023
10023
|
function vh(e, t) {
|
|
10024
|
-
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft -
|
|
10024
|
+
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Ai(e, n), o = n.top + t.scrollTop;
|
|
10025
10025
|
return {
|
|
10026
10026
|
x: r,
|
|
10027
10027
|
y: o
|
|
@@ -10042,7 +10042,7 @@ function ex(e) {
|
|
|
10042
10042
|
scrollTop: 0
|
|
10043
10043
|
}, c = on(1);
|
|
10044
10044
|
const u = on(0), d = it(r);
|
|
10045
|
-
if ((d || !d && !s) && ((qn(r) !== "body" || Xn(i)) && (l =
|
|
10045
|
+
if ((d || !d && !s) && ((qn(r) !== "body" || Xn(i)) && (l = _i(r)), d)) {
|
|
10046
10046
|
const p = hr(r);
|
|
10047
10047
|
c = Fr(r), u.x = p.x + r.clientLeft, u.y = p.y + r.clientTop;
|
|
10048
10048
|
}
|
|
@@ -10058,10 +10058,10 @@ function tx(e) {
|
|
|
10058
10058
|
return Array.from(e.getClientRects());
|
|
10059
10059
|
}
|
|
10060
10060
|
function nx(e) {
|
|
10061
|
-
const t = dn(e), n =
|
|
10062
|
-
let i = -n.scrollLeft +
|
|
10061
|
+
const t = dn(e), n = _i(e), r = e.ownerDocument.body, o = It(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = It(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
10062
|
+
let i = -n.scrollLeft + Ai(e);
|
|
10063
10063
|
const a = -n.scrollTop;
|
|
10064
|
-
return
|
|
10064
|
+
return Nt(r).direction === "rtl" && (i += It(t.clientWidth, r.clientWidth) - o), {
|
|
10065
10065
|
width: o,
|
|
10066
10066
|
height: s,
|
|
10067
10067
|
x: i,
|
|
@@ -10077,7 +10077,7 @@ function rx(e, t) {
|
|
|
10077
10077
|
const u = Ii();
|
|
10078
10078
|
(!u || u && t === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
|
|
10079
10079
|
}
|
|
10080
|
-
const c =
|
|
10080
|
+
const c = Ai(r);
|
|
10081
10081
|
if (c <= 0) {
|
|
10082
10082
|
const u = r.ownerDocument, d = u.body, h = getComputedStyle(d), p = u.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, g = Math.abs(r.clientWidth - d.clientWidth - p);
|
|
10083
10083
|
g <= ed && (s -= g);
|
|
@@ -10119,17 +10119,17 @@ function td(e, t, n) {
|
|
|
10119
10119
|
}
|
|
10120
10120
|
function yh(e, t) {
|
|
10121
10121
|
const n = xn(e);
|
|
10122
|
-
return n === t || !Ve(n) || yn(n) ? !1 :
|
|
10122
|
+
return n === t || !Ve(n) || yn(n) ? !1 : Nt(n).position === "fixed" || yh(n, t);
|
|
10123
10123
|
}
|
|
10124
10124
|
function sx(e, t) {
|
|
10125
10125
|
const n = t.get(e);
|
|
10126
10126
|
if (n)
|
|
10127
10127
|
return n;
|
|
10128
10128
|
let r = Io(e, [], !1).filter((a) => Ve(a) && qn(a) !== "body"), o = null;
|
|
10129
|
-
const s =
|
|
10129
|
+
const s = Nt(e).position === "fixed";
|
|
10130
10130
|
let i = s ? xn(e) : e;
|
|
10131
10131
|
for (; Ve(i) && !yn(i); ) {
|
|
10132
|
-
const a =
|
|
10132
|
+
const a = Nt(i), l = Zc(i);
|
|
10133
10133
|
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Xn(i) && !l && yh(e, i)) ? r = r.filter((u) => u !== i) : o = a, i = xn(i);
|
|
10134
10134
|
}
|
|
10135
10135
|
return t.set(e, r), r;
|
|
@@ -10172,10 +10172,10 @@ function cx(e, t, n) {
|
|
|
10172
10172
|
};
|
|
10173
10173
|
const l = on(0);
|
|
10174
10174
|
function c() {
|
|
10175
|
-
l.x =
|
|
10175
|
+
l.x = Ai(o);
|
|
10176
10176
|
}
|
|
10177
10177
|
if (r || !r && !s)
|
|
10178
|
-
if ((qn(t) !== "body" || Xn(o)) && (a =
|
|
10178
|
+
if ((qn(t) !== "body" || Xn(o)) && (a = _i(t)), r) {
|
|
10179
10179
|
const p = hr(t, !0, s, t);
|
|
10180
10180
|
l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
|
|
10181
10181
|
} else o && c();
|
|
@@ -10189,10 +10189,10 @@ function cx(e, t, n) {
|
|
|
10189
10189
|
};
|
|
10190
10190
|
}
|
|
10191
10191
|
function ya(e) {
|
|
10192
|
-
return
|
|
10192
|
+
return Nt(e).position === "static";
|
|
10193
10193
|
}
|
|
10194
10194
|
function nd(e, t) {
|
|
10195
|
-
if (!it(e) ||
|
|
10195
|
+
if (!it(e) || Nt(e).position === "fixed")
|
|
10196
10196
|
return null;
|
|
10197
10197
|
if (t)
|
|
10198
10198
|
return t(e);
|
|
@@ -10230,7 +10230,7 @@ const lx = async function(e) {
|
|
|
10230
10230
|
};
|
|
10231
10231
|
};
|
|
10232
10232
|
function ux(e) {
|
|
10233
|
-
return
|
|
10233
|
+
return Nt(e).direction === "rtl";
|
|
10234
10234
|
}
|
|
10235
10235
|
const dx = {
|
|
10236
10236
|
convertOffsetParentRelativeRectToViewportRelativeRect: ex,
|
|
@@ -10414,7 +10414,7 @@ function xx(e) {
|
|
|
10414
10414
|
T !== R.current && (R.current = T, m(T));
|
|
10415
10415
|
}, []), E = f.useCallback((T) => {
|
|
10416
10416
|
T !== S.current && (S.current = T, y(T));
|
|
10417
|
-
}, []), x = s || g, w = i || v, R = f.useRef(null), S = f.useRef(null), P = f.useRef(u),
|
|
10417
|
+
}, []), x = s || g, w = i || v, R = f.useRef(null), S = f.useRef(null), P = f.useRef(u), N = l != null, L = ba(l), M = ba(o), _ = ba(c), O = f.useCallback(() => {
|
|
10418
10418
|
if (!R.current || !S.current)
|
|
10419
10419
|
return;
|
|
10420
10420
|
const T = {
|
|
@@ -10429,13 +10429,13 @@ function xx(e) {
|
|
|
10429
10429
|
// but still mounted (such as when transitioning out). To ensure
|
|
10430
10430
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
10431
10431
|
// setting it to `true` when `open === false` (must be specified).
|
|
10432
|
-
isPositioned:
|
|
10432
|
+
isPositioned: _.current !== !1
|
|
10433
10433
|
};
|
|
10434
10434
|
k.current && !ci(P.current, F) && (P.current = F, ht.flushSync(() => {
|
|
10435
10435
|
d(F);
|
|
10436
10436
|
}));
|
|
10437
10437
|
});
|
|
10438
|
-
}, [h, t, n, M,
|
|
10438
|
+
}, [h, t, n, M, _]);
|
|
10439
10439
|
Ws(() => {
|
|
10440
10440
|
c === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((T) => ({
|
|
10441
10441
|
...T,
|
|
@@ -10451,7 +10451,7 @@ function xx(e) {
|
|
|
10451
10451
|
return L.current(x, w, O);
|
|
10452
10452
|
O();
|
|
10453
10453
|
}
|
|
10454
|
-
}, [x, w, O, L,
|
|
10454
|
+
}, [x, w, O, L, N]);
|
|
10455
10455
|
const C = f.useMemo(() => ({
|
|
10456
10456
|
reference: R,
|
|
10457
10457
|
floating: S,
|
|
@@ -10761,7 +10761,7 @@ class Di {
|
|
|
10761
10761
|
return this.idMap.size;
|
|
10762
10762
|
}
|
|
10763
10763
|
}
|
|
10764
|
-
function
|
|
10764
|
+
function _x() {
|
|
10765
10765
|
return new dl({
|
|
10766
10766
|
open: !1,
|
|
10767
10767
|
floatingElement: null,
|
|
@@ -10779,7 +10779,7 @@ function Rh() {
|
|
|
10779
10779
|
openProp: void 0,
|
|
10780
10780
|
mounted: !1,
|
|
10781
10781
|
transitionStatus: "idle",
|
|
10782
|
-
floatingRootContext:
|
|
10782
|
+
floatingRootContext: _x(),
|
|
10783
10783
|
preventUnmountingOnClose: !1,
|
|
10784
10784
|
payload: void 0,
|
|
10785
10785
|
activeTriggerId: null,
|
|
@@ -10818,7 +10818,7 @@ const Es = me((e) => e.triggerIdProp ?? e.activeTriggerId), Th = {
|
|
|
10818
10818
|
popupElement: me((e) => e.popupElement),
|
|
10819
10819
|
positionerElement: me((e) => e.positionerElement)
|
|
10820
10820
|
};
|
|
10821
|
-
function
|
|
10821
|
+
function Nx(e) {
|
|
10822
10822
|
const {
|
|
10823
10823
|
open: t = !1,
|
|
10824
10824
|
onOpenChange: n,
|
|
@@ -10846,11 +10846,11 @@ function Ax(e) {
|
|
|
10846
10846
|
r.reference !== void 0 && (a.referenceElement = r.reference, a.domReferenceElement = Ve(r.reference) ? r.reference : null), r.floating !== void 0 && (a.floatingElement = r.floating), i.update(a);
|
|
10847
10847
|
}, [t, o, r.reference, r.floating, i]), i.context.onOpenChange = n, i.context.nested = s, i.context.noEmit = !1, i;
|
|
10848
10848
|
}
|
|
10849
|
-
function
|
|
10849
|
+
function Ax(e = {}) {
|
|
10850
10850
|
const {
|
|
10851
10851
|
nodeId: t,
|
|
10852
10852
|
externalTree: n
|
|
10853
|
-
} = e, r =
|
|
10853
|
+
} = e, r = Nx(e), o = e.rootContext || r, s = {
|
|
10854
10854
|
reference: o.useState("referenceElement"),
|
|
10855
10855
|
floating: o.useState("floatingElement"),
|
|
10856
10856
|
domReference: o.useState("domReferenceElement")
|
|
@@ -10941,7 +10941,7 @@ function Oh(e) {
|
|
|
10941
10941
|
Ve(l) && (h.domReferenceElement = l), d.state.positionReference === d.state.referenceElement && (h.positionReference = l), d.update(h);
|
|
10942
10942
|
}, [a, s, l, c, d]), d.context.onOpenChange = o, d.context.nested = i, d.context.noEmit = n, d;
|
|
10943
10943
|
}
|
|
10944
|
-
const Dx = `button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${
|
|
10944
|
+
const Dx = `button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${Np}`;
|
|
10945
10945
|
function Mx(e) {
|
|
10946
10946
|
return e ? !!e.closest(Dx) : !1;
|
|
10947
10947
|
}
|
|
@@ -10981,7 +10981,7 @@ function $x(e, t = {}) {
|
|
|
10981
10981
|
} = t, c = kh(n), u = ro(), d = xr(), h = ge(() => rh(i.current.openEvent?.type, c.interactedInside)), p = ge(() => {
|
|
10982
10982
|
const E = i.current.openEvent?.type;
|
|
10983
10983
|
return E?.includes("mouse") && E !== "mousedown";
|
|
10984
|
-
}), g = ge((E) =>
|
|
10984
|
+
}), g = ge((E) => Ap(E, n.context.triggerElements)), m = f.useCallback((E) => {
|
|
10985
10985
|
const x = Bs(l, "close", c.pointerType), w = () => {
|
|
10986
10986
|
n.setOpen(!1, Ze(Tt, E)), u?.events.emit("floating.closed", E);
|
|
10987
10987
|
};
|
|
@@ -11063,45 +11063,45 @@ function Vx(e, t = {}) {
|
|
|
11063
11063
|
getHandleCloseContext: g
|
|
11064
11064
|
} = t, m = ro(h), v = kh(n), y = rn(a), b = rn(i), E = rn(c), x = rn(s);
|
|
11065
11065
|
p && (v.handleCloseOptions = y.current?.__options);
|
|
11066
|
-
const w = ge(() => rh(r.current.openEvent?.type, v.interactedInside)), R = ge((M) =>
|
|
11066
|
+
const w = ge(() => rh(r.current.openEvent?.type, v.interactedInside)), R = ge((M) => Ap(M, n.context.triggerElements)), S = ge((M, _, O) => {
|
|
11067
11067
|
const k = n.context.triggerElements;
|
|
11068
|
-
if (k.hasElement(
|
|
11069
|
-
return !M || !Pe(M,
|
|
11068
|
+
if (k.hasElement(_))
|
|
11069
|
+
return !M || !Pe(M, _);
|
|
11070
11070
|
if (!Ve(O))
|
|
11071
11071
|
return !1;
|
|
11072
11072
|
const C = O;
|
|
11073
11073
|
return k.hasMatchingElement((I) => Pe(I, C)) && (!M || !Pe(M, C));
|
|
11074
|
-
}), P = f.useCallback((M,
|
|
11074
|
+
}), P = f.useCallback((M, _ = !0) => {
|
|
11075
11075
|
const O = Bs(b.current, "close", v.pointerType);
|
|
11076
11076
|
O ? v.openChangeTimeout.start(O, () => {
|
|
11077
11077
|
n.setOpen(!1, Ze(Tt, M)), m?.events.emit("floating.closed", M);
|
|
11078
|
-
}) :
|
|
11079
|
-
}, [b, n, v, m]),
|
|
11078
|
+
}) : _ && (v.openChangeTimeout.clear(), n.setOpen(!1, Ze(Tt, M)), m?.events.emit("floating.closed", M));
|
|
11079
|
+
}, [b, n, v, m]), N = ge(() => {
|
|
11080
11080
|
if (!v.handler)
|
|
11081
11081
|
return;
|
|
11082
11082
|
De(n.select("domReferenceElement")).removeEventListener("mousemove", v.handler), v.handler = void 0;
|
|
11083
11083
|
});
|
|
11084
|
-
f.useEffect(() =>
|
|
11084
|
+
f.useEffect(() => N, [N]);
|
|
11085
11085
|
const L = ge(() => {
|
|
11086
11086
|
hl(v);
|
|
11087
11087
|
});
|
|
11088
11088
|
return f.useEffect(() => {
|
|
11089
11089
|
if (!s)
|
|
11090
11090
|
return;
|
|
11091
|
-
function M(
|
|
11092
|
-
|
|
11091
|
+
function M(_) {
|
|
11092
|
+
_.open || (N(), v.openChangeTimeout.clear(), v.restTimeout.clear(), v.blockMouseMove = !0, v.restTimeoutPending = !1);
|
|
11093
11093
|
}
|
|
11094
11094
|
return o.on("openchange", M), () => {
|
|
11095
11095
|
o.off("openchange", M);
|
|
11096
11096
|
};
|
|
11097
|
-
}, [s, o, v,
|
|
11097
|
+
}, [s, o, v, N]), f.useEffect(() => {
|
|
11098
11098
|
if (!s)
|
|
11099
11099
|
return;
|
|
11100
11100
|
const M = d.current ?? (p ? n.select("domReferenceElement") : null);
|
|
11101
11101
|
if (!Ve(M))
|
|
11102
11102
|
return;
|
|
11103
|
-
function
|
|
11104
|
-
if (v.openChangeTimeout.clear(), v.blockMouseMove = !1, l && !
|
|
11103
|
+
function _(k) {
|
|
11104
|
+
if (v.openChangeTimeout.clear(), v.blockMouseMove = !1, l && !_o(v.pointerType) || Hu(E.current) > 0 && !Bs(b.current, "open"))
|
|
11105
11105
|
return;
|
|
11106
11106
|
const I = Bs(b.current, "open", v.pointerType), D = k.currentTarget ?? null, T = n.select("domReferenceElement"), $ = D == null ? !1 : S(T, D, k.target), F = n.select("open"), W = !F || $;
|
|
11107
11107
|
$ && F ? n.setOpen(!0, Ze(Tt, k, D)) : I ? v.openChangeTimeout.start(I, () => {
|
|
@@ -11113,7 +11113,7 @@ function Vx(e, t = {}) {
|
|
|
11113
11113
|
L();
|
|
11114
11114
|
return;
|
|
11115
11115
|
}
|
|
11116
|
-
|
|
11116
|
+
N();
|
|
11117
11117
|
const C = n.select("domReferenceElement"), I = De(C);
|
|
11118
11118
|
v.restTimeout.clear(), v.restTimeoutPending = !1;
|
|
11119
11119
|
const D = r.current.floatingContext ?? g?.();
|
|
@@ -11128,35 +11128,35 @@ function Vx(e, t = {}) {
|
|
|
11128
11128
|
x: k.clientX,
|
|
11129
11129
|
y: k.clientY,
|
|
11130
11130
|
onClose() {
|
|
11131
|
-
L(),
|
|
11131
|
+
L(), N(), x.current && !w() && F === n.select("domReferenceElement") && P(k, !0);
|
|
11132
11132
|
}
|
|
11133
11133
|
}), I.addEventListener("mousemove", v.handler), v.handler(k);
|
|
11134
11134
|
return;
|
|
11135
11135
|
}
|
|
11136
11136
|
(v.pointerType !== "touch" || !Pe(n.select("floatingElement"), k.relatedTarget)) && P(k);
|
|
11137
11137
|
}
|
|
11138
|
-
return u && M.addEventListener("mousemove",
|
|
11138
|
+
return u && M.addEventListener("mousemove", _, {
|
|
11139
11139
|
once: !0
|
|
11140
|
-
}), M.addEventListener("mouseenter",
|
|
11141
|
-
u && M.removeEventListener("mousemove",
|
|
11140
|
+
}), M.addEventListener("mouseenter", _), M.addEventListener("mouseleave", O), () => {
|
|
11141
|
+
u && M.removeEventListener("mousemove", _), M.removeEventListener("mouseenter", _), M.removeEventListener("mouseleave", O);
|
|
11142
11142
|
};
|
|
11143
|
-
}, [
|
|
11143
|
+
}, [N, L, r, b, P, n, s, y, v, p, S, w, R, l, u, E, d, m, x, g]), f.useMemo(() => {
|
|
11144
11144
|
if (!s)
|
|
11145
11145
|
return;
|
|
11146
|
-
function M(
|
|
11147
|
-
v.pointerType =
|
|
11146
|
+
function M(_) {
|
|
11147
|
+
v.pointerType = _.pointerType;
|
|
11148
11148
|
}
|
|
11149
11149
|
return {
|
|
11150
11150
|
onPointerDown: M,
|
|
11151
11151
|
onPointerEnter: M,
|
|
11152
|
-
onMouseMove(
|
|
11152
|
+
onMouseMove(_) {
|
|
11153
11153
|
const {
|
|
11154
11154
|
nativeEvent: O
|
|
11155
|
-
} =
|
|
11156
|
-
if (l && !
|
|
11155
|
+
} = _, k = _.currentTarget, C = n.select("domReferenceElement"), I = n.select("open"), D = S(C, k, _.target);
|
|
11156
|
+
if (l && !_o(v.pointerType))
|
|
11157
11157
|
return;
|
|
11158
11158
|
const T = Hu(E.current);
|
|
11159
|
-
if (I && !D || T === 0 || !D && v.restTimeoutPending &&
|
|
11159
|
+
if (I && !D || T === 0 || !D && v.restTimeoutPending && _.movementX ** 2 + _.movementY ** 2 < 2)
|
|
11160
11160
|
return;
|
|
11161
11161
|
v.restTimeout.clear();
|
|
11162
11162
|
function $() {
|
|
@@ -11201,7 +11201,7 @@ function xs(e, t, n) {
|
|
|
11201
11201
|
const r = /* @__PURE__ */ new Map(), o = n === "item", s = {};
|
|
11202
11202
|
n === "floating" && (s.tabIndex = -1, s[ec] = "");
|
|
11203
11203
|
for (const i in e)
|
|
11204
|
-
o && e && (i === Ip || i ===
|
|
11204
|
+
o && e && (i === Ip || i === _p) || (s[i] = e[i]);
|
|
11205
11205
|
for (let i = 0; i < t.length; i += 1) {
|
|
11206
11206
|
let a;
|
|
11207
11207
|
const l = t[i]?.[n];
|
|
@@ -11212,7 +11212,7 @@ function xs(e, t, n) {
|
|
|
11212
11212
|
function sd(e, t, n, r) {
|
|
11213
11213
|
for (const o in t) {
|
|
11214
11214
|
const s = t[o];
|
|
11215
|
-
n && (o === Ip || o ===
|
|
11215
|
+
n && (o === Ip || o === _p) || (o.startsWith("on") ? (r.has(o) || r.set(o, []), typeof s == "function" && (r.get(o)?.push(s), e[o] = (...i) => r.get(o)?.map((a) => a(...i)).find((a) => a !== void 0))) : e[o] = s);
|
|
11216
11216
|
}
|
|
11217
11217
|
}
|
|
11218
11218
|
const Bx = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
@@ -11316,8 +11316,8 @@ function Hx(e = {}) {
|
|
|
11316
11316
|
const x = performance.now(), w = x - m;
|
|
11317
11317
|
if (p === null || g === null || w === 0)
|
|
11318
11318
|
return p = b, g = E, m = x, !1;
|
|
11319
|
-
const R = b - p, S = E - g, P = R * R + S * S,
|
|
11320
|
-
return p = b, g = E, m = x, P <
|
|
11319
|
+
const R = b - p, S = E - g, P = R * R + S * S, N = w * w * Wx;
|
|
11320
|
+
return p = b, g = E, m = x, P < N;
|
|
11321
11321
|
}
|
|
11322
11322
|
function y() {
|
|
11323
11323
|
n.clear(), l();
|
|
@@ -11330,22 +11330,22 @@ function Hx(e = {}) {
|
|
|
11330
11330
|
const {
|
|
11331
11331
|
clientX: R,
|
|
11332
11332
|
clientY: S
|
|
11333
|
-
} = E, P = mt(E),
|
|
11334
|
-
if (L && (h = !0, !
|
|
11333
|
+
} = E, P = mt(E), N = E.type === "mouseleave", L = Pe(w, P), M = Pe(x, P);
|
|
11334
|
+
if (L && (h = !0, !N))
|
|
11335
11335
|
return;
|
|
11336
|
-
if (M && (h = !1, !
|
|
11336
|
+
if (M && (h = !1, !N)) {
|
|
11337
11337
|
h = !0;
|
|
11338
11338
|
return;
|
|
11339
11339
|
}
|
|
11340
|
-
if (
|
|
11340
|
+
if (N && Ve(E.relatedTarget) && Pe(w, E.relatedTarget))
|
|
11341
11341
|
return;
|
|
11342
|
-
function
|
|
11342
|
+
function _() {
|
|
11343
11343
|
return !!(u && bn(u.nodesRef.current, c).length > 0);
|
|
11344
11344
|
}
|
|
11345
11345
|
function O() {
|
|
11346
|
-
|
|
11346
|
+
_() || y();
|
|
11347
11347
|
}
|
|
11348
|
-
if (
|
|
11348
|
+
if (_())
|
|
11349
11349
|
return;
|
|
11350
11350
|
const k = x.getBoundingClientRect(), C = w.getBoundingClientRect(), I = o > C.right - C.width / 2, D = s > C.bottom - C.height / 2, T = C.width > k.width, $ = C.height > k.height, F = (T ? k : C).left, W = (T ? k : C).right, V = ($ ? k : C).top, z = ($ ? k : C).bottom;
|
|
11351
11351
|
if (d === "top" && s >= k.bottom - 1 || d === "bottom" && s <= k.top + 1 || d === "left" && o >= k.right - 1 || d === "right" && o <= k.left + 1) {
|
|
@@ -11373,7 +11373,7 @@ function Hx(e = {}) {
|
|
|
11373
11373
|
O();
|
|
11374
11374
|
return;
|
|
11375
11375
|
}
|
|
11376
|
-
if (!
|
|
11376
|
+
if (!N && v(R, S)) {
|
|
11377
11377
|
O();
|
|
11378
11378
|
return;
|
|
11379
11379
|
}
|
|
@@ -11428,10 +11428,10 @@ const Ih = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
11428
11428
|
});
|
|
11429
11429
|
});
|
|
11430
11430
|
process.env.NODE_ENV !== "production" && (Ih.displayName = "FloatingPortalLite");
|
|
11431
|
-
const Ux = Ih,
|
|
11432
|
-
process.env.NODE_ENV !== "production" && (
|
|
11431
|
+
const Ux = Ih, _h = /* @__PURE__ */ f.createContext(void 0);
|
|
11432
|
+
process.env.NODE_ENV !== "production" && (_h.displayName = "DirectionContext");
|
|
11433
11433
|
function Gx() {
|
|
11434
|
-
return f.useContext(
|
|
11434
|
+
return f.useContext(_h)?.direction ?? "ltr";
|
|
11435
11435
|
}
|
|
11436
11436
|
const zx = (e) => ({
|
|
11437
11437
|
name: "arrow",
|
|
@@ -11458,7 +11458,7 @@ const zx = (e) => ({
|
|
|
11458
11458
|
}, g = Jc(o), m = Kc(g), v = await i.getDimensions(c), y = g === "y", b = y ? "top" : "left", E = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", w = s.reference[m] + s.reference[g] - p[g] - s.floating[m], R = p[g] - s.reference[g], S = d === "real" ? await i.getOffsetParent?.(c) : a.floating;
|
|
11459
11459
|
let P = a.floating[x] || s.floating[m];
|
|
11460
11460
|
(!P || !await i.isElement?.(S)) && (P = a.floating[x] || s.floating[m]);
|
|
11461
|
-
const
|
|
11461
|
+
const N = w / 2 - R / 2, L = P / 2 - v[m] / 2 - 1, M = Math.min(h[b], L), _ = Math.min(h[E], L), O = M, k = P - v[m] - _, C = P / 2 - v[m] / 2 + N, I = rc(O, C, k), D = !l.arrow && Kn(o) != null && C !== I && s.reference[m] / 2 - (C < O ? M : _) - v[m] / 2 < 0, T = D ? C < O ? C - O : C - k : 0;
|
|
11462
11462
|
return {
|
|
11463
11463
|
[g]: p[g] + T,
|
|
11464
11464
|
data: {
|
|
@@ -11545,7 +11545,7 @@ const zx = (e) => ({
|
|
|
11545
11545
|
};
|
|
11546
11546
|
}
|
|
11547
11547
|
};
|
|
11548
|
-
function
|
|
11548
|
+
function Nh(e, t, n) {
|
|
11549
11549
|
const r = e === "inline-start" || e === "inline-end";
|
|
11550
11550
|
return {
|
|
11551
11551
|
top: "top",
|
|
@@ -11560,7 +11560,7 @@ function ad(e, t, n) {
|
|
|
11560
11560
|
placement: o
|
|
11561
11561
|
} = e;
|
|
11562
11562
|
return {
|
|
11563
|
-
side:
|
|
11563
|
+
side: Nh(t, Ot(o), n),
|
|
11564
11564
|
align: Kn(o) || "center",
|
|
11565
11565
|
anchor: {
|
|
11566
11566
|
width: r.reference.width,
|
|
@@ -11598,7 +11598,7 @@ function Xx(e) {
|
|
|
11598
11598
|
externalTree: x
|
|
11599
11599
|
} = e, [w, R] = f.useState(null);
|
|
11600
11600
|
!g && w !== null && R(null);
|
|
11601
|
-
const S = m.side || "flip", P = m.align || "flip",
|
|
11601
|
+
const S = m.side || "flip", P = m.align || "flip", N = m.fallbackAxisSide || "end", L = typeof t == "function" ? t : void 0, M = ge(L), _ = L ? M : t, O = rn(t), C = Gx() === "rtl", I = w || {
|
|
11602
11602
|
top: "top",
|
|
11603
11603
|
right: "right",
|
|
11604
11604
|
bottom: "bottom",
|
|
@@ -11641,7 +11641,7 @@ function Xx(e) {
|
|
|
11641
11641
|
},
|
|
11642
11642
|
mainAxis: !v && S === "flip",
|
|
11643
11643
|
crossAxis: P === "flip" ? "alignment" : !1,
|
|
11644
|
-
fallbackAxisSideDirection:
|
|
11644
|
+
fallbackAxisSideDirection: N
|
|
11645
11645
|
}), U = Q ? null : Cx((ye) => {
|
|
11646
11646
|
const Ge = De(ye.elements.floating).documentElement;
|
|
11647
11647
|
return {
|
|
@@ -11732,8 +11732,8 @@ function Xx(e) {
|
|
|
11732
11732
|
placement: K,
|
|
11733
11733
|
context: he,
|
|
11734
11734
|
isPositioned: Ce,
|
|
11735
|
-
floatingStyles:
|
|
11736
|
-
} =
|
|
11735
|
+
floatingStyles: Ne
|
|
11736
|
+
} = Ax({
|
|
11737
11737
|
rootContext: p,
|
|
11738
11738
|
placement: D,
|
|
11739
11739
|
middleware: te,
|
|
@@ -11743,33 +11743,33 @@ function Xx(e) {
|
|
|
11743
11743
|
externalTree: x
|
|
11744
11744
|
}), {
|
|
11745
11745
|
sideX: Fe,
|
|
11746
|
-
sideY:
|
|
11746
|
+
sideY: _e
|
|
11747
11747
|
} = G.adaptiveOrigin || js, we = Ce ? n : "fixed", ke = f.useMemo(() => {
|
|
11748
11748
|
const ye = b ? {
|
|
11749
11749
|
position: we,
|
|
11750
11750
|
[Fe]: de,
|
|
11751
|
-
[
|
|
11751
|
+
[_e]: ee
|
|
11752
11752
|
} : {
|
|
11753
11753
|
position: we,
|
|
11754
|
-
...
|
|
11754
|
+
...Ne
|
|
11755
11755
|
};
|
|
11756
11756
|
return Ce || (ye.opacity = 0), ye;
|
|
11757
|
-
}, [b, we, Fe, de,
|
|
11757
|
+
}, [b, we, Fe, de, _e, ee, Ne, Ce]), Re = f.useRef(null);
|
|
11758
11758
|
be(() => {
|
|
11759
11759
|
if (!g)
|
|
11760
11760
|
return;
|
|
11761
11761
|
const ye = O.current, Ge = typeof ye == "function" ? ye() : ye, ve = (cd(Ge) ? Ge.current : Ge) || null || null;
|
|
11762
11762
|
ve !== Re.current && (pe.setPositionReference(ve), Re.current = ve);
|
|
11763
|
-
}, [g, pe,
|
|
11763
|
+
}, [g, pe, _, O]), f.useEffect(() => {
|
|
11764
11764
|
if (!g)
|
|
11765
11765
|
return;
|
|
11766
11766
|
const ye = O.current;
|
|
11767
11767
|
typeof ye != "function" && cd(ye) && ye.current !== Re.current && (pe.setPositionReference(ye.current), Re.current = ye.current);
|
|
11768
|
-
}, [g, pe,
|
|
11768
|
+
}, [g, pe, _, O]), f.useEffect(() => {
|
|
11769
11769
|
if (h && g && re.domReference && re.floating)
|
|
11770
11770
|
return rd(re.domReference, re.floating, B, fe);
|
|
11771
11771
|
}, [h, g, re, B, fe]);
|
|
11772
|
-
const Be = Ot(K), et =
|
|
11772
|
+
const Be = Ot(K), et = Nh(r, Be, C), ut = Kn(K) || "center", St = !!G.hide?.referenceHidden;
|
|
11773
11773
|
be(() => {
|
|
11774
11774
|
E && g && Ce && R(Be);
|
|
11775
11775
|
}, [E, g, Ce, Be]);
|
|
@@ -11797,7 +11797,7 @@ function cd(e) {
|
|
|
11797
11797
|
return e != null && "current" in e;
|
|
11798
11798
|
}
|
|
11799
11799
|
let cr = (function(e) {
|
|
11800
|
-
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle =
|
|
11800
|
+
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = Ao.startingStyle] = "startingStyle", e[e.endingStyle = Ao.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
|
|
11801
11801
|
})({}), pc = /* @__PURE__ */ (function(e) {
|
|
11802
11802
|
return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
|
|
11803
11803
|
})({});
|
|
@@ -11812,7 +11812,7 @@ const Kx = {
|
|
|
11812
11812
|
[cr.closed]: ""
|
|
11813
11813
|
}, tS = {
|
|
11814
11814
|
[cr.anchorHidden]: ""
|
|
11815
|
-
},
|
|
11815
|
+
}, Ah = {
|
|
11816
11816
|
open(e) {
|
|
11817
11817
|
return e ? Kx : null;
|
|
11818
11818
|
}
|
|
@@ -11996,7 +11996,9 @@ const Wn = new cS({
|
|
|
11996
11996
|
},
|
|
11997
11997
|
async responseInterceptor(e, t) {
|
|
11998
11998
|
if ([
|
|
11999
|
-
"/passport-api/v2/ztgame/auth/login"
|
|
11999
|
+
"/passport-api/v2/ztgame/auth/login",
|
|
12000
|
+
"/passport-api/v2/sms-captchas",
|
|
12001
|
+
"/passport-api/v2/ztgame/auth/mobile-register"
|
|
12000
12002
|
].some((r) => t.url.includes(r)))
|
|
12001
12003
|
return e;
|
|
12002
12004
|
if (e?.code !== 0)
|
|
@@ -12380,7 +12382,7 @@ function Bh({
|
|
|
12380
12382
|
}, []);
|
|
12381
12383
|
return [a, l];
|
|
12382
12384
|
}
|
|
12383
|
-
function
|
|
12385
|
+
function At(e) {
|
|
12384
12386
|
return Er(e, "base-ui");
|
|
12385
12387
|
}
|
|
12386
12388
|
const Wh = "ArrowUp", jh = "ArrowDown", Hh = "ArrowLeft", Uh = "ArrowRight", Gh = "Home", zh = "End", mS = /* @__PURE__ */ new Set([Hh, Uh]), gS = /* @__PURE__ */ new Set([Wh, jh]), vS = /* @__PURE__ */ new Set([...mS, ...gS]);
|
|
@@ -12437,9 +12439,9 @@ function ES(e) {
|
|
|
12437
12439
|
overflowX: r.style.overflowX,
|
|
12438
12440
|
scrollBehavior: r.style.scrollBehavior
|
|
12439
12441
|
};
|
|
12440
|
-
const y = n.scrollHeight > n.clientHeight, b = n.scrollWidth > n.clientWidth, E = h.overflowY === "scroll" || p.overflowY === "scroll", x = h.overflowX === "scroll" || p.overflowX === "scroll", w = Math.max(0, o.innerWidth - r.clientWidth), R = Math.max(0, o.innerHeight - r.clientHeight), S = parseFloat(p.marginTop) + parseFloat(p.marginBottom), P = parseFloat(p.marginLeft) + parseFloat(p.marginRight),
|
|
12442
|
+
const y = n.scrollHeight > n.clientHeight, b = n.scrollWidth > n.clientWidth, E = h.overflowY === "scroll" || p.overflowY === "scroll", x = h.overflowX === "scroll" || p.overflowX === "scroll", w = Math.max(0, o.innerWidth - r.clientWidth), R = Math.max(0, o.innerHeight - r.clientHeight), S = parseFloat(p.marginTop) + parseFloat(p.marginBottom), P = parseFloat(p.marginLeft) + parseFloat(p.marginRight), N = Xn(n) ? n : r;
|
|
12441
12443
|
if (a = bS(e), a) {
|
|
12442
|
-
n.style.scrollbarGutter = v,
|
|
12444
|
+
n.style.scrollbarGutter = v, N.style.overflowY = "hidden", N.style.overflowX = "hidden";
|
|
12443
12445
|
return;
|
|
12444
12446
|
}
|
|
12445
12447
|
Object.assign(n.style, {
|
|
@@ -12555,8 +12557,8 @@ function RS(e) {
|
|
|
12555
12557
|
Sh(t);
|
|
12556
12558
|
const {
|
|
12557
12559
|
forceUnmount: u
|
|
12558
|
-
} = Ch(o, t), d = ge((
|
|
12559
|
-
const L = Ze(
|
|
12560
|
+
} = Ch(o, t), d = ge((N) => {
|
|
12561
|
+
const L = Ze(N);
|
|
12560
12562
|
return L.preventUnmountOnClose = () => {
|
|
12561
12563
|
t.set("preventUnmountingOnClose", !0);
|
|
12562
12564
|
}, L;
|
|
@@ -12579,10 +12581,10 @@ function RS(e) {
|
|
|
12579
12581
|
touch: "sloppy"
|
|
12580
12582
|
};
|
|
12581
12583
|
},
|
|
12582
|
-
outsidePress(
|
|
12583
|
-
if (!t.context.outsidePressEnabledRef.current || "button" in
|
|
12584
|
+
outsidePress(N) {
|
|
12585
|
+
if (!t.context.outsidePressEnabledRef.current || "button" in N && N.button !== 0 || "touches" in N && N.touches.length !== 1)
|
|
12584
12586
|
return !1;
|
|
12585
|
-
const L = mt(
|
|
12587
|
+
const L = mt(N);
|
|
12586
12588
|
if (v && !s) {
|
|
12587
12589
|
const M = L;
|
|
12588
12590
|
return i && (t.context.internalBackdropRef.current || t.context.backdropRef.current) ? t.context.internalBackdropRef.current === M || t.context.backdropRef.current === M || Pe(M, a) && !M?.hasAttribute("data-base-ui-portal") : !0;
|
|
@@ -12597,8 +12599,8 @@ function RS(e) {
|
|
|
12597
12599
|
getFloatingProps: x,
|
|
12598
12600
|
getTriggerProps: w
|
|
12599
12601
|
} = Mi([y, b]);
|
|
12600
|
-
t.useContextCallback("onNestedDialogOpen", (
|
|
12601
|
-
m(
|
|
12602
|
+
t.useContextCallback("onNestedDialogOpen", (N) => {
|
|
12603
|
+
m(N + 1);
|
|
12602
12604
|
}), t.useContextCallback("onNestedDialogClose", () => {
|
|
12603
12605
|
m(0);
|
|
12604
12606
|
}), f.useEffect(() => (n?.onNestedDialogOpen && o && n.onNestedDialogOpen(g), n?.onNestedDialogClose && !o && n.onNestedDialogClose(), () => {
|
|
@@ -12729,7 +12731,7 @@ const Kh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12729
12731
|
const {
|
|
12730
12732
|
getButtonProps: d,
|
|
12731
12733
|
buttonRef: h
|
|
12732
|
-
} =
|
|
12734
|
+
} = Ni({
|
|
12733
12735
|
disabled: s,
|
|
12734
12736
|
native: i
|
|
12735
12737
|
});
|
|
@@ -12752,7 +12754,7 @@ const Jh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12752
12754
|
...i
|
|
12753
12755
|
} = t, {
|
|
12754
12756
|
store: a
|
|
12755
|
-
} = Jn(), l =
|
|
12757
|
+
} = Jn(), l = At(s);
|
|
12756
12758
|
return a.useSyncedValueWithCleanup("descriptionElementId", l), qe("p", t, {
|
|
12757
12759
|
ref: n,
|
|
12758
12760
|
props: [{
|
|
@@ -12763,23 +12765,23 @@ const Jh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12763
12765
|
process.env.NODE_ENV !== "production" && (Jh.displayName = "DialogDescription");
|
|
12764
12766
|
let IS = /* @__PURE__ */ (function(e) {
|
|
12765
12767
|
return e.nestedDialogs = "--nested-dialogs", e;
|
|
12766
|
-
})({}),
|
|
12768
|
+
})({}), _S = (function(e) {
|
|
12767
12769
|
return e[e.open = cr.open] = "open", e[e.closed = cr.closed] = "closed", e[e.startingStyle = cr.startingStyle] = "startingStyle", e[e.endingStyle = cr.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
|
|
12768
12770
|
})({});
|
|
12769
12771
|
const vl = /* @__PURE__ */ f.createContext(void 0);
|
|
12770
12772
|
process.env.NODE_ENV !== "production" && (vl.displayName = "DialogPortalContext");
|
|
12771
|
-
function
|
|
12773
|
+
function NS() {
|
|
12772
12774
|
const e = f.useContext(vl);
|
|
12773
12775
|
if (e === void 0)
|
|
12774
12776
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." : lt(26));
|
|
12775
12777
|
return e;
|
|
12776
12778
|
}
|
|
12777
|
-
const
|
|
12779
|
+
const AS = {
|
|
12778
12780
|
...oo,
|
|
12779
12781
|
...wr,
|
|
12780
12782
|
nestedDialogOpen(e) {
|
|
12781
12783
|
return e ? {
|
|
12782
|
-
[
|
|
12784
|
+
[_S.nestedDialogOpen]: ""
|
|
12783
12785
|
} : null;
|
|
12784
12786
|
}
|
|
12785
12787
|
}, Qh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
@@ -12792,7 +12794,7 @@ const _S = {
|
|
|
12792
12794
|
} = t, {
|
|
12793
12795
|
store: l
|
|
12794
12796
|
} = Jn(), c = l.useState("descriptionElementId"), u = l.useState("disablePointerDismissal"), d = l.useState("floatingRootContext"), h = l.useState("popupProps"), p = l.useState("modal"), g = l.useState("mounted"), m = l.useState("nested"), v = l.useState("nestedOpenDialogCount"), y = l.useState("open"), b = l.useState("openMethod"), E = l.useState("titleElementId"), x = l.useState("transitionStatus"), w = l.useState("role");
|
|
12795
|
-
|
|
12797
|
+
NS(), no({
|
|
12796
12798
|
open: y,
|
|
12797
12799
|
ref: l.context.popupRef,
|
|
12798
12800
|
onComplete() {
|
|
@@ -12823,7 +12825,7 @@ const _S = {
|
|
|
12823
12825
|
}
|
|
12824
12826
|
}, a],
|
|
12825
12827
|
ref: [n, l.context.popupRef, l.useStateSetter("popupElement")],
|
|
12826
|
-
stateAttributesMapping:
|
|
12828
|
+
stateAttributesMapping: AS
|
|
12827
12829
|
});
|
|
12828
12830
|
return /* @__PURE__ */ A(dh, {
|
|
12829
12831
|
context: d,
|
|
@@ -12902,7 +12904,7 @@ const tm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12902
12904
|
...i
|
|
12903
12905
|
} = t, {
|
|
12904
12906
|
store: a
|
|
12905
|
-
} = Jn(), l =
|
|
12907
|
+
} = Jn(), l = At(s);
|
|
12906
12908
|
return a.useSyncedValueWithCleanup("titleElementId", l), qe("h2", t, {
|
|
12907
12909
|
ref: n,
|
|
12908
12910
|
props: [{
|
|
@@ -12924,7 +12926,7 @@ const nm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12924
12926
|
} = t, d = Jn(!0), h = c?.store ?? d?.store;
|
|
12925
12927
|
if (!h)
|
|
12926
12928
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle." : lt(79));
|
|
12927
|
-
const p =
|
|
12929
|
+
const p = At(a), g = h.useState("floatingRootContext"), m = h.useState("isOpenedByTrigger", p), v = f.useRef(null), {
|
|
12928
12930
|
registerTrigger: y,
|
|
12929
12931
|
isMountedByThisTrigger: b
|
|
12930
12932
|
} = xh(p, v, h, {
|
|
@@ -12932,7 +12934,7 @@ const nm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12932
12934
|
}), {
|
|
12933
12935
|
getButtonProps: E,
|
|
12934
12936
|
buttonRef: x
|
|
12935
|
-
} =
|
|
12937
|
+
} = Ni({
|
|
12936
12938
|
disabled: s,
|
|
12937
12939
|
native: i
|
|
12938
12940
|
}), w = fh(g, {
|
|
@@ -12948,7 +12950,7 @@ const nm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12948
12950
|
[tl]: "",
|
|
12949
12951
|
id: p
|
|
12950
12952
|
}, u, E],
|
|
12951
|
-
stateAttributesMapping:
|
|
12953
|
+
stateAttributesMapping: Ah
|
|
12952
12954
|
});
|
|
12953
12955
|
});
|
|
12954
12956
|
process.env.NODE_ENV !== "production" && (nm.displayName = "DialogTrigger");
|
|
@@ -13122,7 +13124,7 @@ function MS(e = {}) {
|
|
|
13122
13124
|
} = e, {
|
|
13123
13125
|
controlId: o,
|
|
13124
13126
|
registerControlId: s
|
|
13125
|
-
} = Qn(), i =
|
|
13127
|
+
} = Qn(), i = At(t), a = n ? o : void 0, l = yt(() => /* @__PURE__ */ Symbol("labelable-control")), c = f.useRef(!1), u = f.useRef(t != null), d = ge(() => {
|
|
13126
13128
|
!c.current || s === gt || (c.current = !1, s(l.current, void 0));
|
|
13127
13129
|
});
|
|
13128
13130
|
return be(() => {
|
|
@@ -13170,7 +13172,7 @@ function LS() {
|
|
|
13170
13172
|
return f.useContext(im);
|
|
13171
13173
|
}
|
|
13172
13174
|
function $S(e, t, n, r = !0, o) {
|
|
13173
|
-
const [s, i] = f.useState(), a =
|
|
13175
|
+
const [s, i] = f.useState(), a = At(o ? `${o}-label` : void 0), l = e ?? t ?? s;
|
|
13174
13176
|
return be(() => {
|
|
13175
13177
|
const c = e || t || !r ? void 0 : FS(n.current, a);
|
|
13176
13178
|
s !== c && i(c);
|
|
@@ -13238,10 +13240,10 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13238
13240
|
disabled: R,
|
|
13239
13241
|
name: S,
|
|
13240
13242
|
setDirty: P,
|
|
13241
|
-
setFilled:
|
|
13243
|
+
setFilled: N,
|
|
13242
13244
|
setFocused: L,
|
|
13243
13245
|
setTouched: M,
|
|
13244
|
-
state:
|
|
13246
|
+
state: _,
|
|
13245
13247
|
validationMode: O,
|
|
13246
13248
|
validityData: k,
|
|
13247
13249
|
shouldValidateOnChange: C,
|
|
@@ -13251,7 +13253,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13251
13253
|
controlId: $,
|
|
13252
13254
|
registerControlId: F,
|
|
13253
13255
|
getDescriptionProps: W
|
|
13254
|
-
} = Qn(), V = BS(), z = V?.parent, Z = z && V.allValues, q = R || D.disabled || V?.disabled || a, H = S ?? d, j = b ?? H, Y =
|
|
13256
|
+
} = Qn(), V = BS(), z = V?.parent, Z = z && V.allValues, q = R || D.disabled || V?.disabled || a, H = S ?? d, j = b ?? H, Y = At(), ne = At();
|
|
13255
13257
|
let te = $;
|
|
13256
13258
|
Z ? te = p ? ne : `${z.id}-${j}` : l && (te = l);
|
|
13257
13259
|
let Q = {};
|
|
@@ -13264,10 +13266,10 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13264
13266
|
} = Q, re = V?.value, de = V?.setValue, ee = V?.defaultValue, G = f.useRef(null), B = yt(() => /* @__PURE__ */ Symbol("checkbox-control")), K = f.useRef(!1), {
|
|
13265
13267
|
getButtonProps: he,
|
|
13266
13268
|
buttonRef: Ce
|
|
13267
|
-
} =
|
|
13269
|
+
} = Ni({
|
|
13268
13270
|
disabled: q,
|
|
13269
13271
|
native: E
|
|
13270
|
-
}),
|
|
13272
|
+
}), Ne = V?.validation ?? I, [Fe, _e] = Bh({
|
|
13271
13273
|
controlled: j && re && !p ? re.includes(j) : X,
|
|
13272
13274
|
default: j && ee && !p ? ee.includes(j) : s,
|
|
13273
13275
|
name: "Checkbox",
|
|
@@ -13283,17 +13285,17 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13283
13285
|
}, [F, B]), om({
|
|
13284
13286
|
enabled: !V,
|
|
13285
13287
|
id: Y,
|
|
13286
|
-
commit:
|
|
13288
|
+
commit: Ne.commit,
|
|
13287
13289
|
value: Fe,
|
|
13288
13290
|
controlRef: G,
|
|
13289
13291
|
name: H,
|
|
13290
13292
|
getValue: () => Fe
|
|
13291
13293
|
});
|
|
13292
|
-
const we = f.useRef(null), ke =
|
|
13294
|
+
const we = f.useRef(null), ke = No(u, we, Ne.inputRef), Re = $S(i, T, we, !E, te ?? void 0);
|
|
13293
13295
|
be(() => {
|
|
13294
|
-
we.current && (we.current.indeterminate = U, Fe &&
|
|
13295
|
-
}, [Fe, U,
|
|
13296
|
-
V && !p || (w(H),
|
|
13296
|
+
we.current && (we.current.indeterminate = U, Fe && N(!0));
|
|
13297
|
+
}, [Fe, U, N]), ml(Fe, () => {
|
|
13298
|
+
V && !p || (w(H), N(Fe), P(Fe !== k.initialValue), C() ? Ne.commit(Fe) : Ne.commit(Fe, !0));
|
|
13297
13299
|
});
|
|
13298
13300
|
const Be = Ur(
|
|
13299
13301
|
{
|
|
@@ -13314,7 +13316,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13314
13316
|
if (ye.nativeEvent.defaultPrevented)
|
|
13315
13317
|
return;
|
|
13316
13318
|
const Ge = ye.target.checked, ie = Ze(ol, ye.nativeEvent);
|
|
13317
|
-
if (fe?.(Ge, ie), ue(Ge, ie), !ie.isCanceled && (
|
|
13319
|
+
if (fe?.(Ge, ie), ue(Ge, ie), !ie.isCanceled && (_e(Ge), j && re && de && !p)) {
|
|
13318
13320
|
const ve = Ge ? [...re, j] : re.filter((Te) => Te !== j);
|
|
13319
13321
|
de(ve, ie);
|
|
13320
13322
|
}
|
|
@@ -13329,7 +13331,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13329
13331
|
value: (V ? Fe && b : b) || ""
|
|
13330
13332
|
} : rt,
|
|
13331
13333
|
W,
|
|
13332
|
-
V ?
|
|
13334
|
+
V ? Ne.getValidationProps : Ne.getInputValidationProps
|
|
13333
13335
|
), et = Z ? !!X : Fe, ut = Z && U || c;
|
|
13334
13336
|
f.useEffect(() => {
|
|
13335
13337
|
if (!z || !j)
|
|
@@ -13340,13 +13342,13 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13340
13342
|
};
|
|
13341
13343
|
}, [z, q, j]);
|
|
13342
13344
|
const St = f.useMemo(() => ({
|
|
13343
|
-
...
|
|
13345
|
+
..._,
|
|
13344
13346
|
checked: et,
|
|
13345
13347
|
disabled: q,
|
|
13346
13348
|
readOnly: g,
|
|
13347
13349
|
required: v,
|
|
13348
13350
|
indeterminate: ut
|
|
13349
|
-
}), [
|
|
13351
|
+
}), [_, et, q, g, v, ut]), kt = sm(St), Lt = qe("span", t, {
|
|
13350
13352
|
state: St,
|
|
13351
13353
|
ref: [Ce, G, n, V?.registerControlRef],
|
|
13352
13354
|
props: [{
|
|
@@ -13362,7 +13364,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13362
13364
|
},
|
|
13363
13365
|
onBlur() {
|
|
13364
13366
|
const ye = we.current;
|
|
13365
|
-
ye && (M(!0), L(!1), O === "onBlur" &&
|
|
13367
|
+
ye && (M(!0), L(!1), O === "onBlur" && Ne.commit(V ? re : ye.checked));
|
|
13366
13368
|
},
|
|
13367
13369
|
onClick(ye) {
|
|
13368
13370
|
g || q || (ye.preventDefault(), we.current?.dispatchEvent(new PointerEvent("click", {
|
|
@@ -13373,7 +13375,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13373
13375
|
metaKey: ye.metaKey
|
|
13374
13376
|
})));
|
|
13375
13377
|
}
|
|
13376
|
-
}, W,
|
|
13378
|
+
}, W, Ne.getValidationProps, x, pe, he],
|
|
13377
13379
|
stateAttributesMapping: kt
|
|
13378
13380
|
});
|
|
13379
13381
|
return /* @__PURE__ */ ce(xl.Provider, {
|
|
@@ -13423,7 +13425,7 @@ const Cl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13423
13425
|
});
|
|
13424
13426
|
process.env.NODE_ENV !== "production" && (Cl.displayName = "CheckboxIndicator");
|
|
13425
13427
|
function HS(e, t) {
|
|
13426
|
-
const n =
|
|
13428
|
+
const n = At(e);
|
|
13427
13429
|
return be(() => (t(n), () => {
|
|
13428
13430
|
t(void 0);
|
|
13429
13431
|
}), [n, t]), n;
|
|
@@ -13541,7 +13543,7 @@ function ZS(e = !1) {
|
|
|
13541
13543
|
return t;
|
|
13542
13544
|
}
|
|
13543
13545
|
const um = function(t) {
|
|
13544
|
-
const n =
|
|
13546
|
+
const n = At(), r = t.controlId === void 0 ? n : t.controlId, [o, s] = f.useState(r), [i, a] = f.useState(t.labelId), [l, c] = f.useState([]), u = yt(() => /* @__PURE__ */ new Map()), {
|
|
13545
13547
|
messageIds: d
|
|
13546
13548
|
} = Qn(), h = ge((m, v) => {
|
|
13547
13549
|
const y = u.current;
|
|
@@ -13651,19 +13653,19 @@ function XS(e) {
|
|
|
13651
13653
|
}
|
|
13652
13654
|
g.clear();
|
|
13653
13655
|
let S = null, P = [];
|
|
13654
|
-
const
|
|
13656
|
+
const N = R(w);
|
|
13655
13657
|
let L;
|
|
13656
13658
|
const M = d();
|
|
13657
13659
|
if (w.validationMessage && !M)
|
|
13658
13660
|
L = w.validationMessage, P = [w.validationMessage];
|
|
13659
13661
|
else {
|
|
13660
13662
|
const O = Array.from(t.current.fields.values()).reduce((C, I) => (I.name && (C[I.name] = I.getValue()), C), {}), k = o(E, O);
|
|
13661
|
-
typeof k == "object" && k !== null && "then" in k ? S = await k : S = k, S !== null ? (
|
|
13662
|
-
`))) : S && (P = [S], w.setCustomValidity(S))) : M && (w.setCustomValidity(""),
|
|
13663
|
+
typeof k == "object" && k !== null && "then" in k ? S = await k : S = k, S !== null ? (N.valid = !1, N.customError = !0, Array.isArray(S) ? (P = S, w.setCustomValidity(S.join(`
|
|
13664
|
+
`))) : S && (P = [S], w.setCustomValidity(S))) : M && (w.setCustomValidity(""), N.customError = !1, w.validationMessage ? (L = w.validationMessage, P = [w.validationMessage]) : w.validity.valid && !N.valid && (N.valid = !0));
|
|
13663
13665
|
}
|
|
13664
|
-
const
|
|
13666
|
+
const _ = {
|
|
13665
13667
|
value: E,
|
|
13666
|
-
state:
|
|
13668
|
+
state: N,
|
|
13667
13669
|
error: L ?? (Array.isArray(S) ? S[0] : S ?? ""),
|
|
13668
13670
|
errors: P,
|
|
13669
13671
|
initialValue: s.initialValue
|
|
@@ -13673,10 +13675,10 @@ function XS(e) {
|
|
|
13673
13675
|
O && t.current.fields.set(h, {
|
|
13674
13676
|
...O,
|
|
13675
13677
|
// Keep Form-level errors part of overall field validity for submit blocking/focus logic.
|
|
13676
|
-
...hc(
|
|
13678
|
+
...hc(_, a)
|
|
13677
13679
|
});
|
|
13678
13680
|
}
|
|
13679
|
-
r(
|
|
13681
|
+
r(_);
|
|
13680
13682
|
}), y = f.useCallback((E = {}) => Ur(p, c.valid === !1 ? {
|
|
13681
13683
|
"aria-invalid": !0
|
|
13682
13684
|
} : rt, E), [p, c.valid]), b = f.useCallback((E = {}) => Ur({
|
|
@@ -13724,7 +13726,7 @@ const dm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13724
13726
|
...y
|
|
13725
13727
|
} = t, {
|
|
13726
13728
|
disabled: b
|
|
13727
|
-
} = ZS(), E = ge(l || (() => null)), x = b || h, [w, R] = f.useState(!1), [S, P] = f.useState(!1), [
|
|
13729
|
+
} = ZS(), E = ge(l || (() => null)), x = b || h, [w, R] = f.useState(!1), [S, P] = f.useState(!1), [N, L] = f.useState(!1), [M, _] = f.useState(!1), O = g ?? S, k = m ?? w, C = f.useRef(!1), I = ge((ne) => {
|
|
13728
13730
|
g === void 0 && (ne && (C.current = !0), P(ne));
|
|
13729
13731
|
}), D = ge((ne) => {
|
|
13730
13732
|
m === void 0 && R(ne);
|
|
@@ -13739,9 +13741,9 @@ const dm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13739
13741
|
touched: k,
|
|
13740
13742
|
dirty: O,
|
|
13741
13743
|
valid: z,
|
|
13742
|
-
filled:
|
|
13744
|
+
filled: N,
|
|
13743
13745
|
focused: M
|
|
13744
|
-
}), [x, k, O, z,
|
|
13746
|
+
}), [x, k, O, z, N, M]), q = XS({
|
|
13745
13747
|
setValidityData: V,
|
|
13746
13748
|
validate: E,
|
|
13747
13749
|
validityData: W,
|
|
@@ -13767,10 +13769,10 @@ const dm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13767
13769
|
setTouched: D,
|
|
13768
13770
|
dirty: O,
|
|
13769
13771
|
setDirty: I,
|
|
13770
|
-
filled:
|
|
13772
|
+
filled: N,
|
|
13771
13773
|
setFilled: L,
|
|
13772
13774
|
focused: M,
|
|
13773
|
-
setFocused:
|
|
13775
|
+
setFocused: _,
|
|
13774
13776
|
validate: E,
|
|
13775
13777
|
validationMode: u,
|
|
13776
13778
|
validationDebounceTime: c,
|
|
@@ -13778,7 +13780,7 @@ const dm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13778
13780
|
state: Z,
|
|
13779
13781
|
markedDirtyRef: C,
|
|
13780
13782
|
validation: q
|
|
13781
|
-
}), [F, d, W, x, k, D, O, I,
|
|
13783
|
+
}), [F, d, W, x, k, D, O, I, N, L, M, _, E, u, c, T, Z, q]), Y = qe("div", t, {
|
|
13782
13784
|
ref: n,
|
|
13783
13785
|
state: Z,
|
|
13784
13786
|
props: y,
|
|
@@ -13843,7 +13845,7 @@ const KS = {
|
|
|
13843
13845
|
className: s,
|
|
13844
13846
|
match: i,
|
|
13845
13847
|
...a
|
|
13846
|
-
} = t, l =
|
|
13848
|
+
} = t, l = At(o), {
|
|
13847
13849
|
validityData: c,
|
|
13848
13850
|
state: u,
|
|
13849
13851
|
name: d
|
|
@@ -13861,17 +13863,17 @@ const KS = {
|
|
|
13861
13863
|
} = fl(m);
|
|
13862
13864
|
be(() => {
|
|
13863
13865
|
if (!(!m || !l))
|
|
13864
|
-
return h((
|
|
13865
|
-
h((
|
|
13866
|
+
return h((_) => _.concat(l)), () => {
|
|
13867
|
+
h((_) => _.filter((O) => O !== l));
|
|
13866
13868
|
};
|
|
13867
13869
|
}, [m, l, h]);
|
|
13868
13870
|
const E = f.useRef(null), [x, w] = f.useState(null), [R, S] = f.useState(null), P = g || (c.errors.length > 1 ? /* @__PURE__ */ A("ul", {
|
|
13869
|
-
children: c.errors.map((
|
|
13870
|
-
children:
|
|
13871
|
-
},
|
|
13871
|
+
children: c.errors.map((_) => /* @__PURE__ */ A("li", {
|
|
13872
|
+
children: _
|
|
13873
|
+
}, _))
|
|
13872
13874
|
}) : c.error);
|
|
13873
|
-
let
|
|
13874
|
-
g != null ?
|
|
13875
|
+
let N = c.error;
|
|
13876
|
+
g != null ? N = Array.isArray(g) ? JSON.stringify(g) : g : c.errors.length > 1 && (N = JSON.stringify(c.errors)), m && N !== R && (S(N), w(P)), no({
|
|
13875
13877
|
open: m,
|
|
13876
13878
|
ref: E,
|
|
13877
13879
|
onComplete() {
|
|
@@ -13917,7 +13919,7 @@ const mr = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13917
13919
|
setFilled: x,
|
|
13918
13920
|
validationMode: w,
|
|
13919
13921
|
validation: R
|
|
13920
|
-
} = Qo(), S = m || l, P = g ?? i,
|
|
13922
|
+
} = Qo(), S = m || l, P = g ?? i, N = {
|
|
13921
13923
|
...p,
|
|
13922
13924
|
disabled: S
|
|
13923
13925
|
}, {
|
|
@@ -13929,9 +13931,9 @@ const mr = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13929
13931
|
const D = a != null;
|
|
13930
13932
|
R.inputRef.current?.value || D && a !== "" ? x(!0) : D && a === "" && x(!1);
|
|
13931
13933
|
}, [R.inputRef, x, a]);
|
|
13932
|
-
const
|
|
13934
|
+
const _ = f.useRef(null);
|
|
13933
13935
|
be(() => {
|
|
13934
|
-
d &&
|
|
13936
|
+
d && _.current === Vt(De(_.current)) && E(!0);
|
|
13935
13937
|
}, [d, E]);
|
|
13936
13938
|
const [O] = Bh({
|
|
13937
13939
|
controlled: a,
|
|
@@ -13947,8 +13949,8 @@ const mr = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13947
13949
|
getValue: () => R.inputRef.current?.value,
|
|
13948
13950
|
controlRef: R.inputRef
|
|
13949
13951
|
}), qe("input", t, {
|
|
13950
|
-
ref: [n,
|
|
13951
|
-
state:
|
|
13952
|
+
ref: [n, _],
|
|
13953
|
+
state: N,
|
|
13952
13954
|
props: [{
|
|
13953
13955
|
id: M,
|
|
13954
13956
|
disabled: S,
|
|
@@ -14031,7 +14033,7 @@ const Fi = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14031
14033
|
w.preventDefault(), g(S[0].controlRef.current);
|
|
14032
14034
|
else if (h.current = !0, a?.(w), l) {
|
|
14033
14035
|
w.preventDefault();
|
|
14034
|
-
const P = R.reduce((
|
|
14036
|
+
const P = R.reduce((N, L) => (L.name && (N[L.name] = L.getValue()), N), {});
|
|
14035
14037
|
l(P, TE(ol, w.nativeEvent));
|
|
14036
14038
|
}
|
|
14037
14039
|
}
|
|
@@ -14213,14 +14215,14 @@ function gd({
|
|
|
14213
14215
|
}), R = Ph(x), {
|
|
14214
14216
|
getReferenceProps: S,
|
|
14215
14217
|
getFloatingProps: P,
|
|
14216
|
-
getTriggerProps:
|
|
14217
|
-
} = Mi([w, R]), L = f.useMemo(() => S(v), [S, v]), M = f.useMemo(() =>
|
|
14218
|
+
getTriggerProps: N
|
|
14219
|
+
} = Mi([w, R]), L = f.useMemo(() => S(v), [S, v]), M = f.useMemo(() => N(v), [N, v]), _ = f.useMemo(() => P(), [P]);
|
|
14218
14220
|
u.useSyncedValues({
|
|
14219
14221
|
modal: i,
|
|
14220
14222
|
openMethod: m,
|
|
14221
14223
|
activeTriggerProps: L,
|
|
14222
14224
|
inactiveTriggerProps: M,
|
|
14223
|
-
popupProps:
|
|
14225
|
+
popupProps: _,
|
|
14224
14226
|
floatingRootContext: x,
|
|
14225
14227
|
nested: xr() != null
|
|
14226
14228
|
});
|
|
@@ -14259,7 +14261,7 @@ const tC = 300, fm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14259
14261
|
} = t, g = On(!0), m = a?.store ?? g?.store;
|
|
14260
14262
|
if (!m)
|
|
14261
14263
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle." : lt(74));
|
|
14262
|
-
const v =
|
|
14264
|
+
const v = At(h), y = m.useState("isTriggerActive", v), b = m.useState("floatingRootContext"), E = m.useState("isOpenedByTrigger", v), x = f.useRef(null), {
|
|
14263
14265
|
registerTrigger: w,
|
|
14264
14266
|
isMountedByThisTrigger: R
|
|
14265
14267
|
} = xh(v, x, m, {
|
|
@@ -14267,8 +14269,8 @@ const tC = 300, fm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14267
14269
|
disabled: s,
|
|
14268
14270
|
openOnHover: c,
|
|
14269
14271
|
closeDelay: d
|
|
14270
|
-
}), S = m.useState("openChangeReason"), P = m.useState("stickIfOpen"),
|
|
14271
|
-
enabled: b != null && c && (
|
|
14272
|
+
}), S = m.useState("openChangeReason"), P = m.useState("stickIfOpen"), N = m.useState("openMethod"), L = Vx(b, {
|
|
14273
|
+
enabled: b != null && c && (N !== "touch" || S !== Gr),
|
|
14272
14274
|
mouseOnly: !0,
|
|
14273
14275
|
move: !1,
|
|
14274
14276
|
handleClose: Hx(),
|
|
@@ -14281,23 +14283,23 @@ const tC = 300, fm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14281
14283
|
}), M = fh(b, {
|
|
14282
14284
|
enabled: b != null,
|
|
14283
14285
|
stickIfOpen: P
|
|
14284
|
-
}),
|
|
14286
|
+
}), _ = Mi([M]), O = m.useState("triggerProps", R), k = {
|
|
14285
14287
|
disabled: s,
|
|
14286
14288
|
open: E
|
|
14287
14289
|
}, {
|
|
14288
14290
|
getButtonProps: C,
|
|
14289
14291
|
buttonRef: I
|
|
14290
|
-
} =
|
|
14292
|
+
} = Ni({
|
|
14291
14293
|
disabled: s,
|
|
14292
14294
|
native: i
|
|
14293
14295
|
}), D = f.useMemo(() => ({
|
|
14294
14296
|
open(V) {
|
|
14295
|
-
return V && S === Gr ? nS.open(V) :
|
|
14297
|
+
return V && S === Gr ? nS.open(V) : Ah.open(V);
|
|
14296
14298
|
}
|
|
14297
14299
|
}), [S]), T = qe("button", t, {
|
|
14298
14300
|
state: k,
|
|
14299
14301
|
ref: [I, n, w, x],
|
|
14300
|
-
props: [
|
|
14302
|
+
props: [_.getReferenceProps(), L, O, {
|
|
14301
14303
|
[tl]: "",
|
|
14302
14304
|
id: v
|
|
14303
14305
|
}, p, C],
|
|
@@ -14389,7 +14391,7 @@ const mm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14389
14391
|
...y
|
|
14390
14392
|
} = t, {
|
|
14391
14393
|
store: b
|
|
14392
|
-
} = On(), E = nC(), x =
|
|
14394
|
+
} = On(), E = nC(), x = NE(), w = b.useState("floatingRootContext"), R = b.useState("mounted"), S = b.useState("open"), P = b.useState("openChangeReason"), N = b.useState("activeTriggerElement"), L = b.useState("modal"), M = b.useState("positionerElement"), _ = b.useState("instantType"), O = b.useState("transitionStatus"), k = b.useState("hasViewport"), C = f.useRef(null), I = Qp(M, !1, !1), D = Xx({
|
|
14393
14395
|
anchor: s,
|
|
14394
14396
|
floatingRootContext: w,
|
|
14395
14397
|
positionMethod: i,
|
|
@@ -14438,7 +14440,7 @@ const mm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14438
14440
|
side: $.side,
|
|
14439
14441
|
align: $.align,
|
|
14440
14442
|
anchorHidden: $.anchorHidden,
|
|
14441
|
-
instant:
|
|
14443
|
+
instant: _
|
|
14442
14444
|
}, V = f.useCallback((Z) => {
|
|
14443
14445
|
b.set("positionerElement", Z);
|
|
14444
14446
|
}, [b]), z = qe("div", t, {
|
|
@@ -14452,8 +14454,8 @@ const mm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14452
14454
|
children: [R && L === !0 && P !== Tt && /* @__PURE__ */ A(yl, {
|
|
14453
14455
|
ref: b.context.internalBackdropRef,
|
|
14454
14456
|
inert: nl(!S),
|
|
14455
|
-
cutout:
|
|
14456
|
-
}), /* @__PURE__ */ A(
|
|
14457
|
+
cutout: N
|
|
14458
|
+
}), /* @__PURE__ */ A(AE, {
|
|
14457
14459
|
id: x,
|
|
14458
14460
|
children: z
|
|
14459
14461
|
})]
|
|
@@ -14506,15 +14508,15 @@ const sC = {
|
|
|
14506
14508
|
p && l.context.onOpenChangeComplete?.(!0);
|
|
14507
14509
|
}
|
|
14508
14510
|
});
|
|
14509
|
-
const
|
|
14511
|
+
const N = l.useState("disabled"), L = l.useState("openOnHover"), M = l.useState("closeDelay");
|
|
14510
14512
|
$x(P, {
|
|
14511
|
-
enabled: L && !
|
|
14513
|
+
enabled: L && !N,
|
|
14512
14514
|
closeDelay: M
|
|
14513
14515
|
});
|
|
14514
|
-
function
|
|
14516
|
+
function _(T) {
|
|
14515
14517
|
return T === "touch" ? l.context.popupRef.current : !0;
|
|
14516
14518
|
}
|
|
14517
|
-
const O = s === void 0 ?
|
|
14519
|
+
const O = s === void 0 ? _ : s, k = {
|
|
14518
14520
|
open: p,
|
|
14519
14521
|
side: c.side,
|
|
14520
14522
|
align: c.align,
|
|
@@ -14619,7 +14621,7 @@ const wm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14619
14621
|
...s
|
|
14620
14622
|
} = t, {
|
|
14621
14623
|
store: i
|
|
14622
|
-
} = On(), a =
|
|
14624
|
+
} = On(), a = At(s.id);
|
|
14623
14625
|
return be(() => (i.set("titleElementId", a), () => {
|
|
14624
14626
|
i.set("titleElementId", void 0);
|
|
14625
14627
|
}), [i, a]), qe("h2", t, {
|
|
@@ -14637,7 +14639,7 @@ const Em = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14637
14639
|
...s
|
|
14638
14640
|
} = t, {
|
|
14639
14641
|
store: i
|
|
14640
|
-
} = On(), a =
|
|
14642
|
+
} = On(), a = At(s.id);
|
|
14641
14643
|
return be(() => (i.set("descriptionElementId", a), () => {
|
|
14642
14644
|
i.set("descriptionElementId", void 0);
|
|
14643
14645
|
}), [i, a]), qe("p", t, {
|
|
@@ -14842,7 +14844,7 @@ function kC(e) {
|
|
|
14842
14844
|
}
|
|
14843
14845
|
);
|
|
14844
14846
|
}
|
|
14845
|
-
function
|
|
14847
|
+
function _l() {
|
|
14846
14848
|
const { gameId: e, loginTypes: t, currentLoginType: n, setCurrentLoginType: r } = Jo(), o = $h({ loginTypes: t, gameId: e }), s = Fh({ loginTypes: t, gameId: e }), i = Lh({ loginTypes: t, gameId: e }), a = [];
|
|
14847
14849
|
return i && n !== Ye.GIANT && a.push({
|
|
14848
14850
|
type: Ye.GIANT,
|
|
@@ -14921,19 +14923,19 @@ function ao(e, t) {
|
|
|
14921
14923
|
const n = f.useRef(yd);
|
|
14922
14924
|
return n.current === yd && (n.current = e(t)), n;
|
|
14923
14925
|
}
|
|
14924
|
-
const wa = f[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)],
|
|
14926
|
+
const wa = f[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], _C = (
|
|
14925
14927
|
// React 17 doesn't have useInsertionEffect.
|
|
14926
14928
|
wa && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
|
|
14927
14929
|
wa !== f.useLayoutEffect ? wa : (e) => e()
|
|
14928
14930
|
);
|
|
14929
14931
|
function Qe(e) {
|
|
14930
|
-
const t = ao(
|
|
14931
|
-
return t.next = e,
|
|
14932
|
+
const t = ao(NC).current;
|
|
14933
|
+
return t.next = e, _C(t.effect), t.trampoline;
|
|
14932
14934
|
}
|
|
14933
|
-
function
|
|
14935
|
+
function NC() {
|
|
14934
14936
|
const e = {
|
|
14935
14937
|
next: void 0,
|
|
14936
|
-
callback:
|
|
14938
|
+
callback: AC,
|
|
14937
14939
|
trampoline: (...t) => e.callback?.(...t),
|
|
14938
14940
|
effect: () => {
|
|
14939
14941
|
e.callback = e.next;
|
|
@@ -14941,7 +14943,7 @@ function AC() {
|
|
|
14941
14943
|
};
|
|
14942
14944
|
return e;
|
|
14943
14945
|
}
|
|
14944
|
-
function
|
|
14946
|
+
function AC() {
|
|
14945
14947
|
if (process.env.NODE_ENV !== "production")
|
|
14946
14948
|
throw new Error("Base UI: Cannot call an event handler while rendering.");
|
|
14947
14949
|
}
|
|
@@ -15175,7 +15177,7 @@ function Bi() {
|
|
|
15175
15177
|
return typeof window < "u";
|
|
15176
15178
|
}
|
|
15177
15179
|
function er(e) {
|
|
15178
|
-
return
|
|
15180
|
+
return _m(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
15179
15181
|
}
|
|
15180
15182
|
function vt(e) {
|
|
15181
15183
|
var t;
|
|
@@ -15183,9 +15185,9 @@ function vt(e) {
|
|
|
15183
15185
|
}
|
|
15184
15186
|
function fn(e) {
|
|
15185
15187
|
var t;
|
|
15186
|
-
return (t = (
|
|
15188
|
+
return (t = (_m(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
15187
15189
|
}
|
|
15188
|
-
function
|
|
15190
|
+
function _m(e) {
|
|
15189
15191
|
return Bi() ? e instanceof Node || e instanceof vt(e).Node : !1;
|
|
15190
15192
|
}
|
|
15191
15193
|
function je(e) {
|
|
@@ -15222,14 +15224,14 @@ function Wi(e) {
|
|
|
15222
15224
|
});
|
|
15223
15225
|
}
|
|
15224
15226
|
const nR = ["transform", "translate", "scale", "rotate", "perspective"], rR = ["transform", "translate", "scale", "rotate", "perspective", "filter"], oR = ["paint", "layout", "strict", "content"];
|
|
15225
|
-
function
|
|
15227
|
+
function Nl(e) {
|
|
15226
15228
|
const t = ji(), n = je(e) ? Wt(e) : e;
|
|
15227
15229
|
return nR.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || rR.some((r) => (n.willChange || "").includes(r)) || oR.some((r) => (n.contain || "").includes(r));
|
|
15228
15230
|
}
|
|
15229
15231
|
function sR(e) {
|
|
15230
15232
|
let t = Cn(e);
|
|
15231
15233
|
for (; pt(t) && !En(t); ) {
|
|
15232
|
-
if (
|
|
15234
|
+
if (Nl(t))
|
|
15233
15235
|
return t;
|
|
15234
15236
|
if (Wi(t))
|
|
15235
15237
|
return null;
|
|
@@ -15268,14 +15270,14 @@ function Cn(e) {
|
|
|
15268
15270
|
);
|
|
15269
15271
|
return yc(t) ? t.host : t;
|
|
15270
15272
|
}
|
|
15271
|
-
function
|
|
15273
|
+
function Nm(e) {
|
|
15272
15274
|
const t = Cn(e);
|
|
15273
|
-
return En(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : pt(t) && ts(t) ? t :
|
|
15275
|
+
return En(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : pt(t) && ts(t) ? t : Nm(t);
|
|
15274
15276
|
}
|
|
15275
15277
|
function jn(e, t, n) {
|
|
15276
15278
|
var r;
|
|
15277
15279
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
15278
|
-
const o =
|
|
15280
|
+
const o = Nm(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = vt(o);
|
|
15279
15281
|
if (s) {
|
|
15280
15282
|
const a = bc(i);
|
|
15281
15283
|
return t.concat(i, i.visualViewport || [], ts(o) ? o : [], a && n ? jn(a) : []);
|
|
@@ -15285,11 +15287,11 @@ function jn(e, t, n) {
|
|
|
15285
15287
|
function bc(e) {
|
|
15286
15288
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
15287
15289
|
}
|
|
15288
|
-
const ns = typeof navigator < "u", Ea = uR(),
|
|
15290
|
+
const ns = typeof navigator < "u", Ea = uR(), Am = fR(), Dm = dR(), Mm = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), aR = (
|
|
15289
15291
|
// iPads can claim to be MacIntel
|
|
15290
15292
|
Ea.platform === "MacIntel" && Ea.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(Ea.platform)
|
|
15291
|
-
), cR = ns && /apple/i.test(navigator.vendor), wc = ns && /android/i.test(
|
|
15292
|
-
ns &&
|
|
15293
|
+
), cR = ns && /apple/i.test(navigator.vendor), wc = ns && /android/i.test(Am) || /android/i.test(Dm);
|
|
15294
|
+
ns && Am.toLowerCase().startsWith("mac") && navigator.maxTouchPoints;
|
|
15293
15295
|
const lR = Dm.includes("jsdom/");
|
|
15294
15296
|
function uR() {
|
|
15295
15297
|
if (typeof navigator > "u")
|
|
@@ -15322,7 +15324,7 @@ function fR() {
|
|
|
15322
15324
|
return e?.platform ? e.platform : navigator.platform;
|
|
15323
15325
|
}
|
|
15324
15326
|
const Ec = "data-base-ui-focusable", Lm = "active", $m = "selected", pR = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
15325
|
-
function
|
|
15327
|
+
function Ar(e) {
|
|
15326
15328
|
let t = e.activeElement;
|
|
15327
15329
|
for (; t?.shadowRoot?.activeElement != null; )
|
|
15328
15330
|
t = t.shadowRoot.activeElement;
|
|
@@ -15398,7 +15400,7 @@ function Lo(e, t) {
|
|
|
15398
15400
|
const n = ["mouse", "pen"];
|
|
15399
15401
|
return t || n.push("", void 0), n.includes(e);
|
|
15400
15402
|
}
|
|
15401
|
-
const bR = ["top", "right", "bottom", "left"], zn = Math.min,
|
|
15403
|
+
const bR = ["top", "right", "bottom", "left"], zn = Math.min, _t = Math.max, ui = Math.round, Ts = Math.floor, an = (e) => ({
|
|
15402
15404
|
x: e,
|
|
15403
15405
|
y: e
|
|
15404
15406
|
}), wR = {
|
|
@@ -15411,7 +15413,7 @@ const bR = ["top", "right", "bottom", "left"], zn = Math.min, Nt = Math.max, ui
|
|
|
15411
15413
|
end: "start"
|
|
15412
15414
|
};
|
|
15413
15415
|
function Sc(e, t, n) {
|
|
15414
|
-
return
|
|
15416
|
+
return _t(e, zn(t, n));
|
|
15415
15417
|
}
|
|
15416
15418
|
function Rn(e, t) {
|
|
15417
15419
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -15422,7 +15424,7 @@ function jt(e) {
|
|
|
15422
15424
|
function tr(e) {
|
|
15423
15425
|
return e.split("-")[1];
|
|
15424
15426
|
}
|
|
15425
|
-
function
|
|
15427
|
+
function Al(e) {
|
|
15426
15428
|
return e === "x" ? "y" : "x";
|
|
15427
15429
|
}
|
|
15428
15430
|
function Dl(e) {
|
|
@@ -15433,7 +15435,7 @@ function Zt(e) {
|
|
|
15433
15435
|
return xR.has(jt(e)) ? "y" : "x";
|
|
15434
15436
|
}
|
|
15435
15437
|
function Ml(e) {
|
|
15436
|
-
return
|
|
15438
|
+
return Al(Zt(e));
|
|
15437
15439
|
}
|
|
15438
15440
|
function SR(e, t, n) {
|
|
15439
15441
|
n === void 0 && (n = !1);
|
|
@@ -15515,7 +15517,7 @@ var IR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
15515
15517
|
n === void 0 && (n = !0);
|
|
15516
15518
|
var o = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), s = o === "" || o === "true", i = s || n && t && e(t.parentNode);
|
|
15517
15519
|
return i;
|
|
15518
|
-
},
|
|
15520
|
+
}, _R = function(t) {
|
|
15519
15521
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
15520
15522
|
return r === "" || r === "true";
|
|
15521
15523
|
}, Bm = function(t, n, r) {
|
|
@@ -15554,11 +15556,11 @@ var IR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
15554
15556
|
}, Hm = function(t) {
|
|
15555
15557
|
if (!t)
|
|
15556
15558
|
throw new Error("No node provided");
|
|
15557
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
15558
|
-
},
|
|
15559
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || _R(t)) && !jm(t) ? 0 : t.tabIndex;
|
|
15560
|
+
}, NR = function(t, n) {
|
|
15559
15561
|
var r = Hm(t);
|
|
15560
15562
|
return r < 0 && n && !jm(t) ? 0 : r;
|
|
15561
|
-
},
|
|
15563
|
+
}, AR = function(t, n) {
|
|
15562
15564
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
15563
15565
|
}, Um = function(t) {
|
|
15564
15566
|
return t.tagName === "INPUT";
|
|
@@ -15658,7 +15660,7 @@ var IR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
15658
15660
|
}, UR = function e(t) {
|
|
15659
15661
|
var n = [], r = [];
|
|
15660
15662
|
return t.forEach(function(o, s) {
|
|
15661
|
-
var i = !!o.scopeParent, a = i ? o.scopeParent : o, l =
|
|
15663
|
+
var i = !!o.scopeParent, a = i ? o.scopeParent : o, l = NR(a, i), c = i ? e(o.candidates) : a;
|
|
15662
15664
|
l === 0 ? i ? n.push.apply(n, c) : n.push(a) : r.push({
|
|
15663
15665
|
documentOrder: s,
|
|
15664
15666
|
tabIndex: l,
|
|
@@ -15666,7 +15668,7 @@ var IR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
15666
15668
|
isScope: i,
|
|
15667
15669
|
content: c
|
|
15668
15670
|
});
|
|
15669
|
-
}), r.sort(
|
|
15671
|
+
}), r.sort(AR).reduce(function(o, s) {
|
|
15670
15672
|
return s.isScope ? o.push.apply(o, s.content) : o.push(s.content), o;
|
|
15671
15673
|
}, []).concat(n);
|
|
15672
15674
|
}, Ui = function(t, n) {
|
|
@@ -15704,7 +15706,7 @@ function zm(e, t) {
|
|
|
15704
15706
|
const n = Ui(e, rs()), r = n.length;
|
|
15705
15707
|
if (r === 0)
|
|
15706
15708
|
return;
|
|
15707
|
-
const o =
|
|
15709
|
+
const o = Ar(nt(e)), s = n.indexOf(o), i = s === -1 ? t === 1 ? 0 : r - 1 : s + t;
|
|
15708
15710
|
return n[i];
|
|
15709
15711
|
}
|
|
15710
15712
|
function Ym(e) {
|
|
@@ -16185,7 +16187,7 @@ function yT(e, t = {}) {
|
|
|
16185
16187
|
mouseOnly: u = !1,
|
|
16186
16188
|
restMs: d = 0,
|
|
16187
16189
|
move: h = !0
|
|
16188
|
-
} = t, p = is(), g = ss(), m = qt(c), v = qt(l), y = qt(n), b = qt(d), E = f.useRef(void 0), x = $o(), w = f.useRef(void 0), R = $o(), S = f.useRef(!0), P = f.useRef(!1),
|
|
16190
|
+
} = t, p = is(), g = ss(), m = qt(c), v = qt(l), y = qt(n), b = qt(d), E = f.useRef(void 0), x = $o(), w = f.useRef(void 0), R = $o(), S = f.useRef(!0), P = f.useRef(!1), N = f.useRef(() => {
|
|
16189
16191
|
}), L = f.useRef(!1), M = Qe(() => {
|
|
16190
16192
|
const D = o.current.openEvent?.type;
|
|
16191
16193
|
return D?.includes("mouse") && D !== "mousedown";
|
|
@@ -16212,11 +16214,11 @@ function yT(e, t = {}) {
|
|
|
16212
16214
|
T.removeEventListener("mouseleave", D);
|
|
16213
16215
|
};
|
|
16214
16216
|
}, [i.floating, n, r, a, m, M]);
|
|
16215
|
-
const
|
|
16217
|
+
const _ = f.useCallback((D, T = !0, $ = "hover") => {
|
|
16216
16218
|
const F = Ca(v.current, "close", E.current);
|
|
16217
16219
|
F && !w.current ? x.start(F, () => r(!1, D, $)) : T && (x.clear(), r(!1, D, $));
|
|
16218
16220
|
}, [v, r, x]), O = Qe(() => {
|
|
16219
|
-
|
|
16221
|
+
N.current(), w.current = void 0;
|
|
16220
16222
|
}), k = Qe(() => {
|
|
16221
16223
|
if (P.current) {
|
|
16222
16224
|
const D = nt(i.floating).body;
|
|
@@ -16239,7 +16241,7 @@ function yT(e, t = {}) {
|
|
|
16239
16241
|
k();
|
|
16240
16242
|
return;
|
|
16241
16243
|
}
|
|
16242
|
-
|
|
16244
|
+
N.current();
|
|
16243
16245
|
const z = nt(i.floating);
|
|
16244
16246
|
if (R.clear(), L.current = !1, m.current && o.current.floatingContext) {
|
|
16245
16247
|
n || x.clear(), w.current = m.current({
|
|
@@ -16248,16 +16250,16 @@ function yT(e, t = {}) {
|
|
|
16248
16250
|
x: V.clientX,
|
|
16249
16251
|
y: V.clientY,
|
|
16250
16252
|
onClose() {
|
|
16251
|
-
k(), O(), C() ||
|
|
16253
|
+
k(), O(), C() || _(V, !0, "safe-polygon");
|
|
16252
16254
|
}
|
|
16253
16255
|
});
|
|
16254
16256
|
const q = w.current;
|
|
16255
|
-
z.addEventListener("mousemove", q),
|
|
16257
|
+
z.addEventListener("mousemove", q), N.current = () => {
|
|
16256
16258
|
z.removeEventListener("mousemove", q);
|
|
16257
16259
|
};
|
|
16258
16260
|
return;
|
|
16259
16261
|
}
|
|
16260
|
-
(E.current !== "touch" || !dt(i.floating, V.relatedTarget)) &&
|
|
16262
|
+
(E.current !== "touch" || !dt(i.floating, V.relatedTarget)) && _(V);
|
|
16261
16263
|
}
|
|
16262
16264
|
function $(V) {
|
|
16263
16265
|
C() || o.current.floatingContext && m.current?.({
|
|
@@ -16266,7 +16268,7 @@ function yT(e, t = {}) {
|
|
|
16266
16268
|
x: V.clientX,
|
|
16267
16269
|
y: V.clientY,
|
|
16268
16270
|
onClose() {
|
|
16269
|
-
k(), O(), C() ||
|
|
16271
|
+
k(), O(), C() || _(V);
|
|
16270
16272
|
}
|
|
16271
16273
|
})(V);
|
|
16272
16274
|
}
|
|
@@ -16274,7 +16276,7 @@ function yT(e, t = {}) {
|
|
|
16274
16276
|
x.clear();
|
|
16275
16277
|
}
|
|
16276
16278
|
function W(V) {
|
|
16277
|
-
C() ||
|
|
16279
|
+
C() || _(V, !1);
|
|
16278
16280
|
}
|
|
16279
16281
|
if (je(i.domReference)) {
|
|
16280
16282
|
const V = i.domReference, z = i.floating;
|
|
@@ -16284,7 +16286,7 @@ function yT(e, t = {}) {
|
|
|
16284
16286
|
n && V.removeEventListener("mouseleave", $), h && V.removeEventListener("mousemove", D), V.removeEventListener("mouseenter", D), V.removeEventListener("mouseleave", T), z && (z.removeEventListener("mouseleave", $), z.removeEventListener("mouseenter", F), z.removeEventListener("mouseleave", W));
|
|
16285
16287
|
};
|
|
16286
16288
|
}
|
|
16287
|
-
}, [i, a, e, u, h,
|
|
16289
|
+
}, [i, a, e, u, h, _, O, k, r, n, y, p, v, m, o, C, b, x, R]), Ue(() => {
|
|
16288
16290
|
if (a && n && m.current?.__options?.blockPointerEvents && M()) {
|
|
16289
16291
|
P.current = !0;
|
|
16290
16292
|
const D = i.floating;
|
|
@@ -16372,7 +16374,7 @@ const Vr = {
|
|
|
16372
16374
|
"aria-hidden": /* @__PURE__ */ new WeakMap(),
|
|
16373
16375
|
none: /* @__PURE__ */ new WeakMap()
|
|
16374
16376
|
};
|
|
16375
|
-
function
|
|
16377
|
+
function _d(e) {
|
|
16376
16378
|
return e === "inert" ? Vr.inert : e === "aria-hidden" ? Vr["aria-hidden"] : Vr.none;
|
|
16377
16379
|
}
|
|
16378
16380
|
let Ps = /* @__PURE__ */ new WeakSet(), Is = {}, Ta = 0;
|
|
@@ -16396,25 +16398,25 @@ function ET(e, t, n, r) {
|
|
|
16396
16398
|
if (a.has(g))
|
|
16397
16399
|
h(g);
|
|
16398
16400
|
else {
|
|
16399
|
-
const m = s ? g.getAttribute(s) : null, v = m !== null && m !== "false", y =
|
|
16401
|
+
const m = s ? g.getAttribute(s) : null, v = m !== null && m !== "false", y = _d(s), b = (y.get(g) || 0) + 1, E = (u.get(g) || 0) + 1;
|
|
16400
16402
|
y.set(g, b), u.set(g, E), c.push(g), b === 1 && v && Ps.add(g), E === 1 && g.setAttribute(o, ""), !v && s && g.setAttribute(s, s === "inert" ? "" : "true");
|
|
16401
16403
|
}
|
|
16402
16404
|
});
|
|
16403
16405
|
}
|
|
16404
16406
|
return Ta += 1, () => {
|
|
16405
16407
|
c.forEach((p) => {
|
|
16406
|
-
const g =
|
|
16408
|
+
const g = _d(s), v = (g.get(p) || 0) - 1, y = (u.get(p) || 0) - 1;
|
|
16407
16409
|
g.set(p, v), u.set(p, y), v || (!Ps.has(p) && s && p.removeAttribute(s), Ps.delete(p)), y || p.removeAttribute(o);
|
|
16408
16410
|
}), Ta -= 1, Ta || (Vr.inert = /* @__PURE__ */ new WeakMap(), Vr["aria-hidden"] = /* @__PURE__ */ new WeakMap(), Vr.none = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakSet(), Is = {});
|
|
16409
16411
|
};
|
|
16410
16412
|
}
|
|
16411
|
-
function
|
|
16413
|
+
function Nd(e, t = !1, n = !1) {
|
|
16412
16414
|
const r = nt(e[0]).body;
|
|
16413
16415
|
return ET(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n);
|
|
16414
16416
|
}
|
|
16415
16417
|
const Vl = /* @__PURE__ */ f.createContext(null);
|
|
16416
16418
|
process.env.NODE_ENV !== "production" && (Vl.displayName = "PortalContext");
|
|
16417
|
-
const lg = () => f.useContext(Vl),
|
|
16419
|
+
const lg = () => f.useContext(Vl), Ad = Fo("portal");
|
|
16418
16420
|
function xT(e = {}) {
|
|
16419
16421
|
const {
|
|
16420
16422
|
id: t,
|
|
@@ -16431,7 +16433,7 @@ function xT(e = {}) {
|
|
|
16431
16433
|
if (!l)
|
|
16432
16434
|
return;
|
|
16433
16435
|
const c = document.createElement("div");
|
|
16434
|
-
c.id = r, c.setAttribute(
|
|
16436
|
+
c.id = r, c.setAttribute(Ad, ""), l.appendChild(c), a.current = c, i(c);
|
|
16435
16437
|
}, [t, r]), Ue(() => {
|
|
16436
16438
|
if (n === null || !r || a.current)
|
|
16437
16439
|
return;
|
|
@@ -16440,7 +16442,7 @@ function xT(e = {}) {
|
|
|
16440
16442
|
let c = null;
|
|
16441
16443
|
t && (c = document.createElement("div"), c.id = t, l.appendChild(c));
|
|
16442
16444
|
const u = document.createElement("div");
|
|
16443
|
-
u.id = r, u.setAttribute(
|
|
16445
|
+
u.id = r, u.setAttribute(Ad, ""), l = c || l, l.appendChild(u), a.current = u, i(u);
|
|
16444
16446
|
}, [t, n, r, o]), s;
|
|
16445
16447
|
}
|
|
16446
16448
|
function ug(e) {
|
|
@@ -16563,7 +16565,7 @@ function fg(e) {
|
|
|
16563
16565
|
domReference: b,
|
|
16564
16566
|
floating: E
|
|
16565
16567
|
}
|
|
16566
|
-
} = t, x = Qe(() => y.current.floatingContext?.nodeId), w = Qe(p), R = typeof i == "number" && i < 0, S = wd(b) && R, P = bT(),
|
|
16568
|
+
} = t, x = Qe(() => y.current.floatingContext?.nodeId), w = Qe(p), R = typeof i == "number" && i < 0, S = wd(b) && R, P = bT(), N = P ? s : !0, L = !N || P && h, M = qt(o), _ = qt(i), O = qt(a), k = is(), C = lg(), I = f.useRef(null), D = f.useRef(null), T = f.useRef(!1), $ = f.useRef(!1), F = f.useRef(-1), W = C != null, V = xc(E), z = Qe((Q = V) => Q ? Ui(Q, rs()) : []), Z = Qe((Q) => {
|
|
16567
16569
|
const ue = z(Q);
|
|
16568
16570
|
return M.current.map((X) => b && X === "reference" ? b : V && X === "floating" ? V : ue).filter(Boolean).flat();
|
|
16569
16571
|
});
|
|
@@ -16572,7 +16574,7 @@ function fg(e) {
|
|
|
16572
16574
|
return;
|
|
16573
16575
|
function Q(X) {
|
|
16574
16576
|
if (X.key === "Tab") {
|
|
16575
|
-
dt(V,
|
|
16577
|
+
dt(V, Ar(nt(V))) && z().length === 0 && !S && Sa(X);
|
|
16576
16578
|
const U = Z(), fe = nn(X);
|
|
16577
16579
|
M.current[0] === "reference" && fe === b && (Sa(X), X.shiftKey ? kr(U[U.length - 1]) : kr(U[1])), M.current[1] === "floating" && fe === V && X.shiftKey && (Sa(X), kr(U[0]));
|
|
16578
16580
|
}
|
|
@@ -16603,7 +16605,7 @@ function fg(e) {
|
|
|
16603
16605
|
const U = X.relatedTarget, fe = X.currentTarget, pe = nn(X);
|
|
16604
16606
|
queueMicrotask(() => {
|
|
16605
16607
|
const re = x(), de = !(dt(b, U) || dt(E, U) || dt(U, E) || dt(C?.portalNode, U) || U?.hasAttribute(Fo("focus-guard")) || k && (fr(k.nodesRef.current, re).find((ee) => dt(ee.context?.elements.floating, U) || dt(ee.context?.elements.domReference, U)) || Ed(k.nodesRef.current, re).find((ee) => [ee.context?.elements.floating, xc(ee.context?.elements.floating)].includes(U) || ee.context?.elements.domReference === U)));
|
|
16606
|
-
if (fe === b && V && Ld(V, M), l && fe !== b && !pe?.isConnected &&
|
|
16608
|
+
if (fe === b && V && Ld(V, M), l && fe !== b && !pe?.isConnected && Ar(nt(V)) === nt(V).body) {
|
|
16607
16609
|
pt(V) && V.focus();
|
|
16608
16610
|
const ee = F.current, G = z(), B = G[ee] || G[G.length - 1] || V;
|
|
16609
16611
|
pt(B) && B.focus();
|
|
@@ -16625,24 +16627,24 @@ function fg(e) {
|
|
|
16625
16627
|
f.useEffect(() => {
|
|
16626
16628
|
if (r || !E)
|
|
16627
16629
|
return;
|
|
16628
|
-
const Q = Array.from(C?.portalNode?.querySelectorAll(`[${Fo("portal")}]`) || []), ue = k ? Ed(k.nodesRef.current, x()) : [], X = k && !c ? ue.map((re) => re.context?.elements.floating) : [], U = ue.find((re) => wd(re.context?.elements.domReference || null))?.context?.elements.domReference, fe = [E, U, ...Q, ...X, ...w(), I.current, D.current, q.current, H.current, C?.beforeOutsideRef.current, C?.afterOutsideRef.current, M.current.includes("reference") || S ? b : null].filter((re) => re != null), pe = c || S ?
|
|
16630
|
+
const Q = Array.from(C?.portalNode?.querySelectorAll(`[${Fo("portal")}]`) || []), ue = k ? Ed(k.nodesRef.current, x()) : [], X = k && !c ? ue.map((re) => re.context?.elements.floating) : [], U = ue.find((re) => wd(re.context?.elements.domReference || null))?.context?.elements.domReference, fe = [E, U, ...Q, ...X, ...w(), I.current, D.current, q.current, H.current, C?.beforeOutsideRef.current, C?.afterOutsideRef.current, M.current.includes("reference") || S ? b : null].filter((re) => re != null), pe = c || S ? Nd(fe, !L, L) : Nd(fe);
|
|
16629
16631
|
return () => {
|
|
16630
16632
|
pe();
|
|
16631
16633
|
};
|
|
16632
|
-
}, [r, b, E, c, M, C, S,
|
|
16634
|
+
}, [r, b, E, c, M, C, S, N, L, k, x, w]), Ue(() => {
|
|
16633
16635
|
if (r || !pt(V))
|
|
16634
16636
|
return;
|
|
16635
|
-
const Q = nt(V), ue =
|
|
16637
|
+
const Q = nt(V), ue = Ar(Q);
|
|
16636
16638
|
queueMicrotask(() => {
|
|
16637
|
-
const X = Z(V), U =
|
|
16639
|
+
const X = Z(V), U = _.current, fe = (typeof U == "number" ? X[U] : U.current) || V, pe = dt(V, ue);
|
|
16638
16640
|
!R && !pe && g && kr(fe, {
|
|
16639
16641
|
preventScroll: fe === V
|
|
16640
16642
|
});
|
|
16641
16643
|
});
|
|
16642
|
-
}, [r, g, V, R, Z,
|
|
16644
|
+
}, [r, g, V, R, Z, _]), Ue(() => {
|
|
16643
16645
|
if (r || !V)
|
|
16644
16646
|
return;
|
|
16645
|
-
const Q = nt(V), ue =
|
|
16647
|
+
const Q = nt(V), ue = Ar(Q);
|
|
16646
16648
|
ST(ue);
|
|
16647
16649
|
function X({
|
|
16648
16650
|
reason: pe,
|
|
@@ -16675,7 +16677,7 @@ function fg(e) {
|
|
|
16675
16677
|
}
|
|
16676
16678
|
return () => {
|
|
16677
16679
|
v.off("openchange", X);
|
|
16678
|
-
const pe =
|
|
16680
|
+
const pe = Ar(Q), re = dt(E, pe) || k && fr(k.nodesRef.current, x(), !1).some((ee) => dt(ee.context?.elements.floating, pe)), de = fe();
|
|
16679
16681
|
queueMicrotask(() => {
|
|
16680
16682
|
const ee = CT(de);
|
|
16681
16683
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -16712,7 +16714,7 @@ function fg(e) {
|
|
|
16712
16714
|
children: typeof u == "string" ? u : "Dismiss"
|
|
16713
16715
|
});
|
|
16714
16716
|
}
|
|
16715
|
-
const te = !r &&
|
|
16717
|
+
const te = !r && N && (c ? !S : !0) && (W || c);
|
|
16716
16718
|
return /* @__PURE__ */ ce(f.Fragment, {
|
|
16717
16719
|
children: [te && /* @__PURE__ */ A(Vo, {
|
|
16718
16720
|
"data-type": "inside",
|
|
@@ -16953,7 +16955,7 @@ const TT = (e) => ({
|
|
|
16953
16955
|
}, p = Ml(o), g = Dl(p), m = await i.getDimensions(c), v = p === "y", y = v ? "top" : "left", b = v ? "bottom" : "right", E = v ? "clientHeight" : "clientWidth", x = s.reference[g] + s.reference[p] - h[p] - s.floating[g], w = h[p] - s.reference[p], R = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
16954
16956
|
let S = R ? R[E] : 0;
|
|
16955
16957
|
(!S || !await (i.isElement == null ? void 0 : i.isElement(R))) && (S = a.floating[E] || s.floating[g]);
|
|
16956
|
-
const P = x / 2 - w / 2,
|
|
16958
|
+
const P = x / 2 - w / 2, N = S / 2 - m[g] / 2 - 1, L = zn(d[y], N), M = zn(d[b], N), _ = L, O = S - m[g] - M, k = S / 2 - m[g] / 2 + P, C = Sc(_, k, O), I = !l.arrow && tr(o) != null && k !== C && s.reference[g] / 2 - (k < _ ? L : M) - m[g] / 2 < 0, D = I ? k < _ ? k - _ : k - O : 0;
|
|
16957
16959
|
return {
|
|
16958
16960
|
[p]: h[p] + D,
|
|
16959
16961
|
data: {
|
|
@@ -16992,17 +16994,17 @@ const TT = (e) => ({
|
|
|
16992
16994
|
return {};
|
|
16993
16995
|
const y = jt(o), b = Zt(a), E = jt(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = h || (E || !m ? [di(a)] : CR(a)), R = g !== "none";
|
|
16994
16996
|
!h && R && w.push(...kR(a, m, g, x));
|
|
16995
|
-
const S = [a, ...w], P = await Bo(t, v),
|
|
16997
|
+
const S = [a, ...w], P = await Bo(t, v), N = [];
|
|
16996
16998
|
let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
16997
|
-
if (u &&
|
|
16999
|
+
if (u && N.push(P[y]), d) {
|
|
16998
17000
|
const k = SR(o, i, x);
|
|
16999
|
-
|
|
17001
|
+
N.push(P[k[0]], P[k[1]]);
|
|
17000
17002
|
}
|
|
17001
17003
|
if (L = [...L, {
|
|
17002
17004
|
placement: o,
|
|
17003
|
-
overflows:
|
|
17004
|
-
}], !
|
|
17005
|
-
var M,
|
|
17005
|
+
overflows: N
|
|
17006
|
+
}], !N.every((k) => k <= 0)) {
|
|
17007
|
+
var M, _;
|
|
17006
17008
|
const k = (((M = s.flip) == null ? void 0 : M.index) || 0) + 1, C = S[k];
|
|
17007
17009
|
if (C && (!(d === "alignment" ? b !== Zt(C) : !1) || // We leave the current main axis only if every placement on that axis
|
|
17008
17010
|
// overflows the main axis.
|
|
@@ -17016,7 +17018,7 @@ const TT = (e) => ({
|
|
|
17016
17018
|
placement: C
|
|
17017
17019
|
}
|
|
17018
17020
|
};
|
|
17019
|
-
let I = (
|
|
17021
|
+
let I = (_ = L.filter((D) => D.overflows[0] <= 0).sort((D, T) => D.overflows[1] - T.overflows[1])[0]) == null ? void 0 : _.placement;
|
|
17020
17022
|
if (!I)
|
|
17021
17023
|
switch (p) {
|
|
17022
17024
|
case "bestFit": {
|
|
@@ -17150,7 +17152,7 @@ const IT = function(e) {
|
|
|
17150
17152
|
};
|
|
17151
17153
|
}
|
|
17152
17154
|
};
|
|
17153
|
-
},
|
|
17155
|
+
}, _T = function(e) {
|
|
17154
17156
|
return e === void 0 && (e = {}), {
|
|
17155
17157
|
name: "shift",
|
|
17156
17158
|
options: e,
|
|
@@ -17178,7 +17180,7 @@ const IT = function(e) {
|
|
|
17178
17180
|
} = Rn(e, t), c = {
|
|
17179
17181
|
x: n,
|
|
17180
17182
|
y: r
|
|
17181
|
-
}, u = await Bo(t, l), d = Zt(jt(o)), h =
|
|
17183
|
+
}, u = await Bo(t, l), d = Zt(jt(o)), h = Al(d);
|
|
17182
17184
|
let p = c[h], g = c[d];
|
|
17183
17185
|
if (s) {
|
|
17184
17186
|
const v = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", b = p + u[v], E = p - u[y];
|
|
@@ -17206,7 +17208,7 @@ const IT = function(e) {
|
|
|
17206
17208
|
};
|
|
17207
17209
|
}
|
|
17208
17210
|
};
|
|
17209
|
-
},
|
|
17211
|
+
}, NT = function(e) {
|
|
17210
17212
|
return e === void 0 && (e = {}), {
|
|
17211
17213
|
options: e,
|
|
17212
17214
|
fn(t) {
|
|
@@ -17223,7 +17225,7 @@ const IT = function(e) {
|
|
|
17223
17225
|
} = Rn(e, t), u = {
|
|
17224
17226
|
x: n,
|
|
17225
17227
|
y: r
|
|
17226
|
-
}, d = Zt(o), h =
|
|
17228
|
+
}, d = Zt(o), h = Al(d);
|
|
17227
17229
|
let p = u[h], g = u[d];
|
|
17228
17230
|
const m = Rn(a, t), v = typeof m == "number" ? {
|
|
17229
17231
|
mainAxis: m,
|
|
@@ -17248,7 +17250,7 @@ const IT = function(e) {
|
|
|
17248
17250
|
};
|
|
17249
17251
|
}
|
|
17250
17252
|
};
|
|
17251
|
-
},
|
|
17253
|
+
}, AT = function(e) {
|
|
17252
17254
|
return e === void 0 && (e = {}), {
|
|
17253
17255
|
name: "size",
|
|
17254
17256
|
options: e,
|
|
@@ -17272,16 +17274,16 @@ const IT = function(e) {
|
|
|
17272
17274
|
const b = m - u.top - u.bottom, E = g - u.left - u.right, x = zn(m - u[v], b), w = zn(g - u[y], E), R = !t.middlewareData.shift;
|
|
17273
17275
|
let S = x, P = w;
|
|
17274
17276
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = E), (r = t.middlewareData.shift) != null && r.enabled.y && (S = b), R && !h) {
|
|
17275
|
-
const L =
|
|
17276
|
-
p ? P = g - 2 * (L !== 0 || M !== 0 ? L + M :
|
|
17277
|
+
const L = _t(u.left, 0), M = _t(u.right, 0), _ = _t(u.top, 0), O = _t(u.bottom, 0);
|
|
17278
|
+
p ? P = g - 2 * (L !== 0 || M !== 0 ? L + M : _t(u.left, u.right)) : S = m - 2 * (_ !== 0 || O !== 0 ? _ + O : _t(u.top, u.bottom));
|
|
17277
17279
|
}
|
|
17278
17280
|
await l({
|
|
17279
17281
|
...t,
|
|
17280
17282
|
availableWidth: P,
|
|
17281
17283
|
availableHeight: S
|
|
17282
17284
|
});
|
|
17283
|
-
const
|
|
17284
|
-
return g !==
|
|
17285
|
+
const N = await i.getDimensions(a.floating);
|
|
17286
|
+
return g !== N.width || m !== N.height ? {
|
|
17285
17287
|
reset: {
|
|
17286
17288
|
rects: !0
|
|
17287
17289
|
}
|
|
@@ -17396,10 +17398,10 @@ function $T(e) {
|
|
|
17396
17398
|
return Array.from(e.getClientRects());
|
|
17397
17399
|
}
|
|
17398
17400
|
function FT(e) {
|
|
17399
|
-
const t = fn(e), n = Hi(e), r = e.ownerDocument.body, o =
|
|
17401
|
+
const t = fn(e), n = Hi(e), r = e.ownerDocument.body, o = _t(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = _t(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
17400
17402
|
let i = -n.scrollLeft + Wl(e);
|
|
17401
17403
|
const a = -n.scrollTop;
|
|
17402
|
-
return Wt(r).direction === "rtl" && (i +=
|
|
17404
|
+
return Wt(r).direction === "rtl" && (i += _t(t.clientWidth, r.clientWidth) - o), {
|
|
17403
17405
|
width: o,
|
|
17404
17406
|
height: s,
|
|
17405
17407
|
x: i,
|
|
@@ -17462,7 +17464,7 @@ function jT(e, t) {
|
|
|
17462
17464
|
const s = Wt(e).position === "fixed";
|
|
17463
17465
|
let i = s ? Cn(e) : e;
|
|
17464
17466
|
for (; je(i) && !En(i); ) {
|
|
17465
|
-
const a = Wt(i), l =
|
|
17467
|
+
const a = Wt(i), l = Nl(i);
|
|
17466
17468
|
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && BT.has(o.position) || ts(i) && !l && yg(e, i)) ? r = r.filter((u) => u !== i) : o = a, i = Cn(i);
|
|
17467
17469
|
}
|
|
17468
17470
|
return t.set(e, r), r;
|
|
@@ -17476,7 +17478,7 @@ function HT(e) {
|
|
|
17476
17478
|
} = e;
|
|
17477
17479
|
const i = [...n === "clippingAncestors" ? Wi(t) ? [] : jT(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((c, u) => {
|
|
17478
17480
|
const d = Bd(t, u, o);
|
|
17479
|
-
return c.top =
|
|
17481
|
+
return c.top = _t(d.top, c.top), c.right = zn(d.right, c.right), c.bottom = zn(d.bottom, c.bottom), c.left = _t(d.left, c.left), c;
|
|
17480
17482
|
}, Bd(t, a, o));
|
|
17481
17483
|
return {
|
|
17482
17484
|
width: l.right - l.left,
|
|
@@ -17546,7 +17548,7 @@ function bg(e, t) {
|
|
|
17546
17548
|
let r = Wd(e, t);
|
|
17547
17549
|
for (; r && eR(r) && Oa(r); )
|
|
17548
17550
|
r = Wd(r, t);
|
|
17549
|
-
return r && En(r) && Oa(r) && !
|
|
17551
|
+
return r && En(r) && Oa(r) && !Nl(r) ? n : r || sR(e) || n;
|
|
17550
17552
|
}
|
|
17551
17553
|
const zT = async function(e) {
|
|
17552
17554
|
const t = this.getOffsetParent || bg, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -17597,7 +17599,7 @@ function qT(e, t) {
|
|
|
17597
17599
|
return;
|
|
17598
17600
|
const g = Ts(d), m = Ts(o.clientWidth - (u + h)), v = Ts(o.clientHeight - (d + p)), y = Ts(u), E = {
|
|
17599
17601
|
rootMargin: -g + "px " + -m + "px " + -v + "px " + -y + "px",
|
|
17600
|
-
threshold:
|
|
17602
|
+
threshold: _t(0, zn(1, l)) || 1
|
|
17601
17603
|
};
|
|
17602
17604
|
let x = !0;
|
|
17603
17605
|
function w(R) {
|
|
@@ -17660,7 +17662,7 @@ function jd(e, t, n, r) {
|
|
|
17660
17662
|
}), d?.(), (y = p) == null || y.disconnect(), p = null, l && cancelAnimationFrame(g);
|
|
17661
17663
|
};
|
|
17662
17664
|
}
|
|
17663
|
-
const XT = IT, KT =
|
|
17665
|
+
const XT = IT, KT = _T, JT = OT, QT = AT, eO = kT, Hd = TT, tO = NT, nO = (e, t, n) => {
|
|
17664
17666
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
17665
17667
|
platform: ZT,
|
|
17666
17668
|
...n
|
|
@@ -17745,7 +17747,7 @@ function sO(e) {
|
|
|
17745
17747
|
T !== R.current && (R.current = T, m(T));
|
|
17746
17748
|
}, []), E = f.useCallback((T) => {
|
|
17747
17749
|
T !== S.current && (S.current = T, y(T));
|
|
17748
|
-
}, []), x = s || g, w = i || v, R = f.useRef(null), S = f.useRef(null), P = f.useRef(u),
|
|
17750
|
+
}, []), x = s || g, w = i || v, R = f.useRef(null), S = f.useRef(null), P = f.useRef(u), N = l != null, L = ka(l), M = ka(o), _ = ka(c), O = f.useCallback(() => {
|
|
17749
17751
|
if (!R.current || !S.current)
|
|
17750
17752
|
return;
|
|
17751
17753
|
const T = {
|
|
@@ -17760,13 +17762,13 @@ function sO(e) {
|
|
|
17760
17762
|
// but still mounted (such as when transitioning out). To ensure
|
|
17761
17763
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
17762
17764
|
// setting it to `true` when `open === false` (must be specified).
|
|
17763
|
-
isPositioned:
|
|
17765
|
+
isPositioned: _.current !== !1
|
|
17764
17766
|
};
|
|
17765
17767
|
k.current && !vi(P.current, F) && (P.current = F, ht.flushSync(() => {
|
|
17766
17768
|
d(F);
|
|
17767
17769
|
}));
|
|
17768
17770
|
});
|
|
17769
|
-
}, [h, t, n, M,
|
|
17771
|
+
}, [h, t, n, M, _]);
|
|
17770
17772
|
Gs(() => {
|
|
17771
17773
|
c === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((T) => ({
|
|
17772
17774
|
...T,
|
|
@@ -17782,7 +17784,7 @@ function sO(e) {
|
|
|
17782
17784
|
return L.current(x, w, O);
|
|
17783
17785
|
O();
|
|
17784
17786
|
}
|
|
17785
|
-
}, [x, w, O, L,
|
|
17787
|
+
}, [x, w, O, L, N]);
|
|
17786
17788
|
const C = f.useMemo(() => ({
|
|
17787
17789
|
reference: R,
|
|
17788
17790
|
floating: S,
|
|
@@ -17896,7 +17898,7 @@ function xg(e, t = {}) {
|
|
|
17896
17898
|
} = Gd(p), {
|
|
17897
17899
|
escapeKey: w,
|
|
17898
17900
|
outsidePress: R
|
|
17899
|
-
} = Gd(g), S = f.useRef(!1), P = $o(),
|
|
17901
|
+
} = Gd(g), S = f.useRef(!1), P = $o(), N = Qe((C) => {
|
|
17900
17902
|
if (!n || !i || !a || C.key !== "Escape" || S.current)
|
|
17901
17903
|
return;
|
|
17902
17904
|
const I = s.current.floatingContext?.nodeId, D = m ? fr(m.nodesRef.current, I) : [];
|
|
@@ -17910,7 +17912,7 @@ function xg(e, t = {}) {
|
|
|
17910
17912
|
r(!1, gR(C) ? C.nativeEvent : C, "escape-key");
|
|
17911
17913
|
}), L = Qe((C) => {
|
|
17912
17914
|
const I = () => {
|
|
17913
|
-
|
|
17915
|
+
N(C), nn(C)?.removeEventListener("keydown", I);
|
|
17914
17916
|
};
|
|
17915
17917
|
nn(C)?.addEventListener("keydown", I);
|
|
17916
17918
|
}), M = Qe((C) => {
|
|
@@ -17949,7 +17951,7 @@ function xg(e, t = {}) {
|
|
|
17949
17951
|
return;
|
|
17950
17952
|
}
|
|
17951
17953
|
r(!1, C, "outside-press");
|
|
17952
|
-
}),
|
|
17954
|
+
}), _ = Qe((C) => {
|
|
17953
17955
|
const I = () => {
|
|
17954
17956
|
M(C), nn(C)?.removeEventListener(c, I);
|
|
17955
17957
|
};
|
|
@@ -17977,22 +17979,22 @@ function xg(e, t = {}) {
|
|
|
17977
17979
|
);
|
|
17978
17980
|
}
|
|
17979
17981
|
const $ = nt(o.floating);
|
|
17980
|
-
a && ($.addEventListener("keydown", w ? L :
|
|
17982
|
+
a && ($.addEventListener("keydown", w ? L : N, w), $.addEventListener("compositionstart", D), $.addEventListener("compositionend", T)), y && $.addEventListener(c, R ? _ : M, R);
|
|
17981
17983
|
let F = [];
|
|
17982
17984
|
return h && (je(o.domReference) && (F = jn(o.domReference)), je(o.floating) && (F = F.concat(jn(o.floating))), !je(o.reference) && o.reference && o.reference.contextElement && (F = F.concat(jn(o.reference.contextElement)))), F = F.filter((W) => W !== $.defaultView?.visualViewport), F.forEach((W) => {
|
|
17983
17985
|
W.addEventListener("scroll", I, {
|
|
17984
17986
|
passive: !0
|
|
17985
17987
|
});
|
|
17986
17988
|
}), () => {
|
|
17987
|
-
a && ($.removeEventListener("keydown", w ? L :
|
|
17989
|
+
a && ($.removeEventListener("keydown", w ? L : N, w), $.removeEventListener("compositionstart", D), $.removeEventListener("compositionend", T)), y && $.removeEventListener(c, R ? _ : M, R), F.forEach((W) => {
|
|
17988
17990
|
W.removeEventListener("scroll", I);
|
|
17989
17991
|
}), C.clear();
|
|
17990
17992
|
};
|
|
17991
|
-
}, [s, o, a, y, c, n, r, h, i, E, x,
|
|
17993
|
+
}, [s, o, a, y, c, n, r, h, i, E, x, N, w, L, M, R, _]), f.useEffect(() => {
|
|
17992
17994
|
s.current.insideReactTree = !1;
|
|
17993
17995
|
}, [s, y, c]);
|
|
17994
17996
|
const O = f.useMemo(() => ({
|
|
17995
|
-
onKeyDown:
|
|
17997
|
+
onKeyDown: N,
|
|
17996
17998
|
...u && {
|
|
17997
17999
|
[hO[d]]: (C) => {
|
|
17998
18000
|
r(!1, C.nativeEvent, "reference-press");
|
|
@@ -18003,8 +18005,8 @@ function xg(e, t = {}) {
|
|
|
18003
18005
|
}
|
|
18004
18006
|
}
|
|
18005
18007
|
}
|
|
18006
|
-
}), [
|
|
18007
|
-
onKeyDown:
|
|
18008
|
+
}), [N, r, u, d]), k = f.useMemo(() => ({
|
|
18009
|
+
onKeyDown: N,
|
|
18008
18010
|
onMouseDown() {
|
|
18009
18011
|
b.current = !0;
|
|
18010
18012
|
},
|
|
@@ -18019,7 +18021,7 @@ function xg(e, t = {}) {
|
|
|
18019
18021
|
s.current.insideReactTree = !1;
|
|
18020
18022
|
}));
|
|
18021
18023
|
}
|
|
18022
|
-
}), [
|
|
18024
|
+
}), [N, c, s, m, P]);
|
|
18023
18025
|
return f.useMemo(() => i ? {
|
|
18024
18026
|
reference: O,
|
|
18025
18027
|
floating: k
|
|
@@ -18274,32 +18276,32 @@ function bO(e = {}) {
|
|
|
18274
18276
|
const {
|
|
18275
18277
|
clientX: w,
|
|
18276
18278
|
clientY: R
|
|
18277
|
-
} = E, S = [w, R], P = nn(E),
|
|
18278
|
-
if (L && (s = !0, !
|
|
18279
|
+
} = E, S = [w, R], P = nn(E), N = E.type === "mouseleave", L = dt(g.floating, P), M = dt(g.domReference, P), _ = g.domReference.getBoundingClientRect(), O = g.floating.getBoundingClientRect(), k = p.split("-")[0], C = d > O.right - O.width / 2, I = h > O.bottom - O.height / 2, D = yO(S, _), T = O.width > _.width, $ = O.height > _.height, F = (T ? _ : O).left, W = (T ? _ : O).right, V = ($ ? _ : O).top, z = ($ ? _ : O).bottom;
|
|
18280
|
+
if (L && (s = !0, !N))
|
|
18279
18281
|
return;
|
|
18280
|
-
if (M && (s = !1), M && !
|
|
18282
|
+
if (M && (s = !1), M && !N) {
|
|
18281
18283
|
s = !0;
|
|
18282
18284
|
return;
|
|
18283
18285
|
}
|
|
18284
|
-
if (
|
|
18286
|
+
if (N && je(E.relatedTarget) && dt(g.floating, E.relatedTarget) || y && fr(y.nodesRef.current, v).some(({
|
|
18285
18287
|
context: H
|
|
18286
18288
|
}) => H?.open))
|
|
18287
18289
|
return;
|
|
18288
|
-
if (k === "top" && h >=
|
|
18290
|
+
if (k === "top" && h >= _.bottom - 1 || k === "bottom" && h <= _.top + 1 || k === "left" && d >= _.right - 1 || k === "right" && d <= _.left + 1)
|
|
18289
18291
|
return x();
|
|
18290
18292
|
let Z = [];
|
|
18291
18293
|
switch (k) {
|
|
18292
18294
|
case "top":
|
|
18293
|
-
Z = [[F,
|
|
18295
|
+
Z = [[F, _.top + 1], [F, O.bottom - 1], [W, O.bottom - 1], [W, _.top + 1]];
|
|
18294
18296
|
break;
|
|
18295
18297
|
case "bottom":
|
|
18296
|
-
Z = [[F, O.top + 1], [F,
|
|
18298
|
+
Z = [[F, O.top + 1], [F, _.bottom - 1], [W, _.bottom - 1], [W, O.top + 1]];
|
|
18297
18299
|
break;
|
|
18298
18300
|
case "left":
|
|
18299
|
-
Z = [[O.right - 1, z], [O.right - 1, V], [
|
|
18301
|
+
Z = [[O.right - 1, z], [O.right - 1, V], [_.left + 1, V], [_.left + 1, z]];
|
|
18300
18302
|
break;
|
|
18301
18303
|
case "right":
|
|
18302
|
-
Z = [[
|
|
18304
|
+
Z = [[_.right - 1, z], [_.right - 1, V], [O.left + 1, V], [O.left + 1, z]];
|
|
18303
18305
|
break;
|
|
18304
18306
|
}
|
|
18305
18307
|
function q([H, j]) {
|
|
@@ -18327,7 +18329,7 @@ function bO(e = {}) {
|
|
|
18327
18329
|
if (!Yd([w, R], Z)) {
|
|
18328
18330
|
if (s && !D)
|
|
18329
18331
|
return x();
|
|
18330
|
-
if (!
|
|
18332
|
+
if (!N && r) {
|
|
18331
18333
|
const H = c(E.clientX, E.clientY);
|
|
18332
18334
|
if (H !== null && H < 0.1)
|
|
18333
18335
|
return x();
|
|
@@ -18581,7 +18583,7 @@ function kO(e) {
|
|
|
18581
18583
|
mounted: R,
|
|
18582
18584
|
setMounted: S,
|
|
18583
18585
|
transitionStatus: P
|
|
18584
|
-
} = og(c),
|
|
18586
|
+
} = og(c), N = Qe((H, j, Y) => {
|
|
18585
18587
|
i?.(H, j, Y), u(H);
|
|
18586
18588
|
}), L = Qe(() => {
|
|
18587
18589
|
S(!1), l?.(!1);
|
|
@@ -18596,16 +18598,16 @@ function kO(e) {
|
|
|
18596
18598
|
}), f.useImperativeHandle(e.actionsRef, () => ({
|
|
18597
18599
|
unmount: L
|
|
18598
18600
|
}), [L]);
|
|
18599
|
-
const
|
|
18601
|
+
const _ = jl({
|
|
18600
18602
|
elements: {
|
|
18601
18603
|
reference: b,
|
|
18602
18604
|
floating: x
|
|
18603
18605
|
},
|
|
18604
18606
|
open: c,
|
|
18605
18607
|
onOpenChange: (H, j, Y) => {
|
|
18606
|
-
|
|
18608
|
+
N(H, j, kg(Y));
|
|
18607
18609
|
}
|
|
18608
|
-
}), [O, k] = f.useState(0), C = O === 0, I = Cg(
|
|
18610
|
+
}), [O, k] = f.useState(0), C = O === 0, I = Cg(_), D = pg(_), T = xg(_, {
|
|
18609
18611
|
outsidePressEvent: "mousedown",
|
|
18610
18612
|
outsidePress(H) {
|
|
18611
18613
|
if (H.button !== 0)
|
|
@@ -18642,7 +18644,7 @@ function kO(e) {
|
|
|
18642
18644
|
} = Og(c), q = f.useMemo(() => $(Z), [$, Z]);
|
|
18643
18645
|
return f.useMemo(() => ({
|
|
18644
18646
|
modal: r,
|
|
18645
|
-
setOpen:
|
|
18647
|
+
setOpen: N,
|
|
18646
18648
|
open: c,
|
|
18647
18649
|
titleElementId: g,
|
|
18648
18650
|
setTitleElementId: m,
|
|
@@ -18661,8 +18663,8 @@ function kO(e) {
|
|
|
18661
18663
|
popupRef: d,
|
|
18662
18664
|
backdropRef: h,
|
|
18663
18665
|
internalBackdropRef: p,
|
|
18664
|
-
floatingRootContext:
|
|
18665
|
-
}), [r,
|
|
18666
|
+
floatingRootContext: _
|
|
18667
|
+
}), [r, N, c, g, v, W, V, O, z, R, P, q, F, _]);
|
|
18666
18668
|
}
|
|
18667
18669
|
function Pg(e, t, n) {
|
|
18668
18670
|
const r = e === "inline-start" || e === "inline-end";
|
|
@@ -18713,18 +18715,18 @@ function PO(e) {
|
|
|
18713
18715
|
shiftCrossAxis: v = !1,
|
|
18714
18716
|
nodeId: y,
|
|
18715
18717
|
adaptiveOrigin: b
|
|
18716
|
-
} = e, E = m.side || "flip", x = m.align || "flip", w = m.fallbackAxisSide || "end", R = typeof t == "function" ? t : void 0, S = Qe(R), P = R ? S : t,
|
|
18718
|
+
} = e, E = m.side || "flip", x = m.align || "flip", w = m.fallbackAxisSide || "end", R = typeof t == "function" ? t : void 0, S = Qe(R), P = R ? S : t, N = qt(t), M = KR() === "rtl", _ = {
|
|
18717
18719
|
top: "top",
|
|
18718
18720
|
right: "right",
|
|
18719
18721
|
bottom: "bottom",
|
|
18720
18722
|
left: "left",
|
|
18721
18723
|
"inline-end": M ? "left" : "right",
|
|
18722
18724
|
"inline-start": M ? "right" : "left"
|
|
18723
|
-
}[r], O = s === "center" ?
|
|
18725
|
+
}[r], O = s === "center" ? _ : `${_}-${s}`, k = {
|
|
18724
18726
|
boundary: a === "clipping-ancestors" ? "clippingAncestors" : a,
|
|
18725
18727
|
padding: l
|
|
18726
|
-
}, C = f.useRef(null), I = qt(o), D = qt(i), F = [aO((
|
|
18727
|
-
const we = Kd(
|
|
18728
|
+
}, C = f.useRef(null), I = qt(o), D = qt(i), F = [aO((_e) => {
|
|
18729
|
+
const we = Kd(_e, r, M), ke = typeof I.current == "function" ? I.current(we) : I.current, Re = typeof D.current == "function" ? D.current(we) : D.current;
|
|
18728
18730
|
return {
|
|
18729
18731
|
mainAxis: ke,
|
|
18730
18732
|
crossAxis: Re,
|
|
@@ -18735,8 +18737,8 @@ function PO(e) {
|
|
|
18735
18737
|
mainAxis: !v && E === "flip",
|
|
18736
18738
|
crossAxis: x === "flip" ? "alignment" : !1,
|
|
18737
18739
|
fallbackAxisSideDirection: w
|
|
18738
|
-
}), Z = W ? null : cO((
|
|
18739
|
-
const we = nt(
|
|
18740
|
+
}), Z = W ? null : cO((_e) => {
|
|
18741
|
+
const we = nt(_e.elements.floating).documentElement;
|
|
18740
18742
|
return {
|
|
18741
18743
|
...k,
|
|
18742
18744
|
// Use the Layout Viewport to avoid shifting around when pinch-zooming
|
|
@@ -18765,7 +18767,7 @@ function PO(e) {
|
|
|
18765
18767
|
...k,
|
|
18766
18768
|
apply({
|
|
18767
18769
|
elements: {
|
|
18768
|
-
floating:
|
|
18770
|
+
floating: _e
|
|
18769
18771
|
},
|
|
18770
18772
|
rects: {
|
|
18771
18773
|
reference: we
|
|
@@ -18779,7 +18781,7 @@ function PO(e) {
|
|
|
18779
18781
|
"--anchor-width": `${we.width}px`,
|
|
18780
18782
|
"--anchor-height": `${we.height}px`
|
|
18781
18783
|
}).forEach(([Be, et]) => {
|
|
18782
|
-
|
|
18784
|
+
_e.style.setProperty(Be, et);
|
|
18783
18785
|
});
|
|
18784
18786
|
}
|
|
18785
18787
|
}), pO(() => ({
|
|
@@ -18789,14 +18791,14 @@ function PO(e) {
|
|
|
18789
18791
|
padding: u
|
|
18790
18792
|
}), [u]), fO(), {
|
|
18791
18793
|
name: "transformOrigin",
|
|
18792
|
-
fn(
|
|
18794
|
+
fn(_e) {
|
|
18793
18795
|
const {
|
|
18794
18796
|
elements: we,
|
|
18795
18797
|
middlewareData: ke,
|
|
18796
18798
|
placement: Re,
|
|
18797
18799
|
rects: Be,
|
|
18798
18800
|
y: et
|
|
18799
|
-
} =
|
|
18801
|
+
} = _e, ut = jt(Re), St = Zt(ut), kt = C.current, Lt = ke.arrow?.x || 0, ye = ke.arrow?.y || 0, Ge = kt?.clientWidth || 0, ie = kt?.clientHeight || 0, ve = Lt + Ge / 2, Te = ye + ie / 2, Ee = Math.abs(ke.shift?.y || 0), Le = Be.reference.height / 2, Xe = Ee > (typeof o == "function" ? o(Kd(_e, r, M)) : o), tt = {
|
|
18800
18802
|
top: `${ve}px calc(100% + ${o}px)`,
|
|
18801
18803
|
bottom: `${ve}px ${-o}px`,
|
|
18802
18804
|
left: `calc(100% + ${o}px) ${Te}px`,
|
|
@@ -18833,7 +18835,7 @@ function PO(e) {
|
|
|
18833
18835
|
placement: O,
|
|
18834
18836
|
middleware: F,
|
|
18835
18837
|
strategy: n,
|
|
18836
|
-
whileElementsMounted: h ? void 0 : (...
|
|
18838
|
+
whileElementsMounted: h ? void 0 : (..._e) => jd(..._e, H),
|
|
18837
18839
|
nodeId: y
|
|
18838
18840
|
}), {
|
|
18839
18841
|
sideX: re,
|
|
@@ -18846,25 +18848,25 @@ function PO(e) {
|
|
|
18846
18848
|
Ue(() => {
|
|
18847
18849
|
if (!g)
|
|
18848
18850
|
return;
|
|
18849
|
-
const
|
|
18851
|
+
const _e = N.current, we = typeof _e == "function" ? _e() : _e, Re = (Jd(we) ? we.current : we) || null || null;
|
|
18850
18852
|
Re !== G.current && (j.setPositionReference(Re), G.current = Re);
|
|
18851
|
-
}, [g, j, P,
|
|
18853
|
+
}, [g, j, P, N]), f.useEffect(() => {
|
|
18852
18854
|
if (!g)
|
|
18853
18855
|
return;
|
|
18854
|
-
const
|
|
18855
|
-
typeof
|
|
18856
|
-
}, [g, j, P,
|
|
18856
|
+
const _e = N.current;
|
|
18857
|
+
typeof _e != "function" && Jd(_e) && _e.current !== G.current && (j.setPositionReference(_e.current), G.current = _e.current);
|
|
18858
|
+
}, [g, j, P, N]), f.useEffect(() => {
|
|
18857
18859
|
if (h && g && Y.domReference && Y.floating)
|
|
18858
18860
|
return jd(Y.domReference, Y.floating, ue, H);
|
|
18859
18861
|
}, [h, g, Y, ue, H]);
|
|
18860
|
-
const B = jt(X), K = Pg(r, B, M), he = tr(X) || "center", Ce = !!Q.hide?.referenceHidden,
|
|
18862
|
+
const B = jt(X), K = Pg(r, B, M), he = tr(X) || "center", Ce = !!Q.hide?.referenceHidden, Ne = f.useMemo(() => ({
|
|
18861
18863
|
position: "absolute",
|
|
18862
18864
|
top: Q.arrow?.y,
|
|
18863
18865
|
left: Q.arrow?.x
|
|
18864
18866
|
}), [Q.arrow]), Fe = Q.arrow?.centerOffset !== 0;
|
|
18865
18867
|
return f.useMemo(() => ({
|
|
18866
18868
|
positionerStyles: ee,
|
|
18867
|
-
arrowStyles:
|
|
18869
|
+
arrowStyles: Ne,
|
|
18868
18870
|
arrowRef: C,
|
|
18869
18871
|
arrowUncentered: Fe,
|
|
18870
18872
|
side: K,
|
|
@@ -18874,7 +18876,7 @@ function PO(e) {
|
|
|
18874
18876
|
context: U,
|
|
18875
18877
|
isPositioned: fe,
|
|
18876
18878
|
update: ue
|
|
18877
|
-
}), [ee,
|
|
18879
|
+
}), [ee, Ne, C, Fe, K, he, Ce, j, U, fe, ue]);
|
|
18878
18880
|
}
|
|
18879
18881
|
function Jd(e) {
|
|
18880
18882
|
return e != null && "current" in e;
|
|
@@ -18898,7 +18900,7 @@ function Sr() {
|
|
|
18898
18900
|
...t
|
|
18899
18901
|
};
|
|
18900
18902
|
}
|
|
18901
|
-
const
|
|
18903
|
+
const _O = {
|
|
18902
18904
|
...co,
|
|
18903
18905
|
...zi
|
|
18904
18906
|
}, Ig = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
@@ -18919,7 +18921,7 @@ const NO = {
|
|
|
18919
18921
|
return Mt("div", t, {
|
|
18920
18922
|
state: d,
|
|
18921
18923
|
ref: [u, n],
|
|
18922
|
-
customStyleHookMapping:
|
|
18924
|
+
customStyleHookMapping: _O,
|
|
18923
18925
|
props: [{
|
|
18924
18926
|
role: "presentation",
|
|
18925
18927
|
hidden: !l,
|
|
@@ -18933,7 +18935,7 @@ const NO = {
|
|
|
18933
18935
|
});
|
|
18934
18936
|
});
|
|
18935
18937
|
process.env.NODE_ENV !== "production" && (Ig.displayName = "DialogBackdrop");
|
|
18936
|
-
const
|
|
18938
|
+
const _g = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
18937
18939
|
const {
|
|
18938
18940
|
render: r,
|
|
18939
18941
|
className: o,
|
|
@@ -18960,8 +18962,8 @@ const Ng = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
18960
18962
|
props: [a, u]
|
|
18961
18963
|
});
|
|
18962
18964
|
});
|
|
18963
|
-
process.env.NODE_ENV !== "production" && (
|
|
18964
|
-
const
|
|
18965
|
+
process.env.NODE_ENV !== "production" && (_g.displayName = "DialogClose");
|
|
18966
|
+
const Ng = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
18965
18967
|
const {
|
|
18966
18968
|
render: r,
|
|
18967
18969
|
className: o,
|
|
@@ -18979,10 +18981,10 @@ const Ag = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
18979
18981
|
}, i]
|
|
18980
18982
|
});
|
|
18981
18983
|
});
|
|
18982
|
-
process.env.NODE_ENV !== "production" && (
|
|
18983
|
-
let
|
|
18984
|
+
process.env.NODE_ENV !== "production" && (Ng.displayName = "DialogDescription");
|
|
18985
|
+
let NO = /* @__PURE__ */ (function(e) {
|
|
18984
18986
|
return e.nestedDialogs = "--nested-dialogs", e;
|
|
18985
|
-
})({}),
|
|
18987
|
+
})({}), AO = (function(e) {
|
|
18986
18988
|
return e[e.open = lr.open] = "open", e[e.closed = lr.closed] = "closed", e[e.startingStyle = lr.startingStyle] = "startingStyle", e[e.endingStyle = lr.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
|
|
18987
18989
|
})({});
|
|
18988
18990
|
const Ul = /* @__PURE__ */ f.createContext(void 0);
|
|
@@ -18998,10 +19000,10 @@ const MO = {
|
|
|
18998
19000
|
...zi,
|
|
18999
19001
|
nestedDialogOpen(e) {
|
|
19000
19002
|
return e ? {
|
|
19001
|
-
[
|
|
19003
|
+
[AO.nestedDialogOpen]: ""
|
|
19002
19004
|
} : null;
|
|
19003
19005
|
}
|
|
19004
|
-
},
|
|
19006
|
+
}, Ag = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
19005
19007
|
const {
|
|
19006
19008
|
className: r,
|
|
19007
19009
|
finalFocus: o,
|
|
@@ -19034,7 +19036,7 @@ const MO = {
|
|
|
19034
19036
|
}
|
|
19035
19037
|
});
|
|
19036
19038
|
const P = zr(n, b), {
|
|
19037
|
-
popupProps:
|
|
19039
|
+
popupProps: N,
|
|
19038
19040
|
resolvedInitialFocus: L
|
|
19039
19041
|
} = wO({
|
|
19040
19042
|
descriptionElementId: l,
|
|
@@ -19045,16 +19047,16 @@ const MO = {
|
|
|
19045
19047
|
ref: P,
|
|
19046
19048
|
setPopupElement: E,
|
|
19047
19049
|
titleElementId: x
|
|
19048
|
-
}), M = m > 0,
|
|
19050
|
+
}), M = m > 0, _ = f.useMemo(() => ({
|
|
19049
19051
|
open: v,
|
|
19050
19052
|
nested: g,
|
|
19051
19053
|
transitionStatus: w,
|
|
19052
19054
|
nestedDialogOpen: M
|
|
19053
19055
|
}), [v, g, w, M]), O = Mt("div", t, {
|
|
19054
|
-
state:
|
|
19055
|
-
props: [d(),
|
|
19056
|
+
state: _,
|
|
19057
|
+
props: [d(), N, {
|
|
19056
19058
|
style: {
|
|
19057
|
-
[
|
|
19059
|
+
[NO.nestedDialogs]: m
|
|
19058
19060
|
}
|
|
19059
19061
|
}, a],
|
|
19060
19062
|
customStyleHookMapping: MO
|
|
@@ -19074,7 +19076,7 @@ const MO = {
|
|
|
19074
19076
|
})]
|
|
19075
19077
|
});
|
|
19076
19078
|
});
|
|
19077
|
-
process.env.NODE_ENV !== "production" && (
|
|
19079
|
+
process.env.NODE_ENV !== "production" && (Ag.displayName = "DialogPopup");
|
|
19078
19080
|
function LO(e) {
|
|
19079
19081
|
const {
|
|
19080
19082
|
children: t,
|
|
@@ -19195,37 +19197,37 @@ function Qd({
|
|
|
19195
19197
|
openOnHover: i = !1,
|
|
19196
19198
|
onOpenChangeComplete: a,
|
|
19197
19199
|
modal: l = !1
|
|
19198
|
-
} = e, [c, u] = f.useState(), [d, h] = f.useState(), [p, g] = f.useState(), [m, v] = f.useState(null), [y, b] = f.useState(null), [E, x] = f.useState(null), [w, R] = f.useState(!0), S = f.useRef(null), P = $o(), [
|
|
19200
|
+
} = e, [c, u] = f.useState(), [d, h] = f.useState(), [p, g] = f.useState(), [m, v] = f.useState(null), [y, b] = f.useState(null), [E, x] = f.useState(null), [w, R] = f.useState(!0), S = f.useRef(null), P = $o(), [N, L] = Cm({
|
|
19199
19201
|
controlled: t,
|
|
19200
19202
|
default: r,
|
|
19201
19203
|
name: "Popover",
|
|
19202
19204
|
state: "open"
|
|
19203
19205
|
}), {
|
|
19204
19206
|
mounted: M,
|
|
19205
|
-
setMounted:
|
|
19207
|
+
setMounted: _,
|
|
19206
19208
|
transitionStatus: O
|
|
19207
|
-
} = og(
|
|
19209
|
+
} = og(N);
|
|
19208
19210
|
Tg({
|
|
19209
|
-
enabled:
|
|
19211
|
+
enabled: N && l === !0 && E !== "trigger-hover",
|
|
19210
19212
|
mounted: M,
|
|
19211
|
-
open:
|
|
19213
|
+
open: N,
|
|
19212
19214
|
referenceElement: y
|
|
19213
19215
|
});
|
|
19214
19216
|
const k = Qe(() => {
|
|
19215
|
-
|
|
19217
|
+
_(!1), R(!0), x(null), a?.(!1);
|
|
19216
19218
|
});
|
|
19217
19219
|
Yi({
|
|
19218
19220
|
enabled: !e.actionsRef,
|
|
19219
|
-
open:
|
|
19221
|
+
open: N,
|
|
19220
19222
|
ref: S,
|
|
19221
19223
|
onComplete() {
|
|
19222
|
-
|
|
19224
|
+
N || k();
|
|
19223
19225
|
}
|
|
19224
19226
|
}), f.useImperativeHandle(e.actionsRef, () => ({
|
|
19225
19227
|
unmount: k
|
|
19226
19228
|
}), [k]), f.useEffect(() => {
|
|
19227
|
-
|
|
19228
|
-
}, [P,
|
|
19229
|
+
N || P.clear();
|
|
19230
|
+
}, [P, N]);
|
|
19229
19231
|
const C = Qe((j, Y, ne) => {
|
|
19230
19232
|
const te = ne === "trigger-hover", Q = ne === "trigger-press" && Y.detail === 0, ue = !j && (ne === "escape-key" || ne == null);
|
|
19231
19233
|
function X() {
|
|
@@ -19239,14 +19241,14 @@ function Qd({
|
|
|
19239
19241
|
reference: m,
|
|
19240
19242
|
floating: y
|
|
19241
19243
|
},
|
|
19242
|
-
open:
|
|
19244
|
+
open: N,
|
|
19243
19245
|
onOpenChange(j, Y, ne) {
|
|
19244
19246
|
C(j, Y, kg(ne));
|
|
19245
19247
|
}
|
|
19246
19248
|
}), {
|
|
19247
19249
|
openMethod: D,
|
|
19248
19250
|
triggerProps: T
|
|
19249
|
-
} = Og(
|
|
19251
|
+
} = Og(N), $ = o, F = yT(I, {
|
|
19250
19252
|
enabled: i && (D !== "touch" || E !== "trigger-press"),
|
|
19251
19253
|
mouseOnly: !0,
|
|
19252
19254
|
move: !1,
|
|
@@ -19263,10 +19265,10 @@ function Qd({
|
|
|
19263
19265
|
getReferenceProps: Z,
|
|
19264
19266
|
getFloatingProps: q
|
|
19265
19267
|
} = Sg([F, W, V, z]), H = f.useMemo(() => ({
|
|
19266
|
-
open:
|
|
19268
|
+
open: N,
|
|
19267
19269
|
setOpen: C,
|
|
19268
19270
|
mounted: M,
|
|
19269
|
-
setMounted:
|
|
19271
|
+
setMounted: _,
|
|
19270
19272
|
transitionStatus: O,
|
|
19271
19273
|
triggerElement: m,
|
|
19272
19274
|
setTriggerElement: v,
|
|
@@ -19288,7 +19290,7 @@ function Qd({
|
|
|
19288
19290
|
delay: o,
|
|
19289
19291
|
closeDelay: s,
|
|
19290
19292
|
modal: l
|
|
19291
|
-
}), [
|
|
19293
|
+
}), [N, C, M, _, O, y, d, p, Z, m, T, q, I, c, D, E, a, i, o, s, l]);
|
|
19292
19294
|
return /* @__PURE__ */ A(Gl.Provider, {
|
|
19293
19295
|
value: H,
|
|
19294
19296
|
children: e.children
|
|
@@ -19394,8 +19396,8 @@ const Vg = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
19394
19396
|
modal: R,
|
|
19395
19397
|
openReason: S,
|
|
19396
19398
|
openMethod: P,
|
|
19397
|
-
triggerElement:
|
|
19398
|
-
} = kn(), L = VO(), M = mT(),
|
|
19399
|
+
triggerElement: N
|
|
19400
|
+
} = kn(), L = VO(), M = mT(), _ = PO({
|
|
19399
19401
|
anchor: s,
|
|
19400
19402
|
floatingRootContext: b,
|
|
19401
19403
|
positionMethod: i,
|
|
@@ -19418,14 +19420,14 @@ const Vg = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
19418
19420
|
role: "presentation",
|
|
19419
19421
|
hidden: !x,
|
|
19420
19422
|
style: {
|
|
19421
|
-
...
|
|
19423
|
+
..._.positionerStyles,
|
|
19422
19424
|
...D
|
|
19423
19425
|
}
|
|
19424
19426
|
};
|
|
19425
|
-
}, [E, x,
|
|
19427
|
+
}, [E, x, _.positionerStyles]), k = f.useMemo(() => ({
|
|
19426
19428
|
props: O,
|
|
19427
|
-
...
|
|
19428
|
-
}), [O,
|
|
19429
|
+
..._
|
|
19430
|
+
}), [O, _]), C = f.useMemo(() => ({
|
|
19429
19431
|
open: E,
|
|
19430
19432
|
side: k.side,
|
|
19431
19433
|
align: k.align,
|
|
@@ -19440,7 +19442,7 @@ const Vg = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
19440
19442
|
value: k,
|
|
19441
19443
|
children: [x && R === !0 && S !== "trigger-hover" && P !== "touch" && /* @__PURE__ */ A(Hl, {
|
|
19442
19444
|
inert: Rg(!E),
|
|
19443
|
-
cutout:
|
|
19445
|
+
cutout: N
|
|
19444
19446
|
}), /* @__PURE__ */ A(gT, {
|
|
19445
19447
|
id: M,
|
|
19446
19448
|
children: I
|
|
@@ -19676,16 +19678,16 @@ function GO() {
|
|
|
19676
19678
|
return u.Date.now();
|
|
19677
19679
|
};
|
|
19678
19680
|
function v(w, R, S) {
|
|
19679
|
-
var P,
|
|
19681
|
+
var P, N, L, M, _, O, k = 0, C = !1, I = !1, D = !0;
|
|
19680
19682
|
if (typeof w != "function")
|
|
19681
19683
|
throw new TypeError(e);
|
|
19682
19684
|
R = x(R) || 0, y(S) && (C = !!S.leading, I = "maxWait" in S, L = I ? p(x(S.maxWait) || 0, R) : L, D = "trailing" in S ? !!S.trailing : D);
|
|
19683
19685
|
function T(j) {
|
|
19684
|
-
var Y = P, ne =
|
|
19685
|
-
return P =
|
|
19686
|
+
var Y = P, ne = N;
|
|
19687
|
+
return P = N = void 0, k = j, M = w.apply(ne, Y), M;
|
|
19686
19688
|
}
|
|
19687
19689
|
function $(j) {
|
|
19688
|
-
return k = j,
|
|
19690
|
+
return k = j, _ = setTimeout(V, R), C ? T(j) : M;
|
|
19689
19691
|
}
|
|
19690
19692
|
function F(j) {
|
|
19691
19693
|
var Y = j - O, ne = j - k, te = R - Y;
|
|
@@ -19699,26 +19701,26 @@ function GO() {
|
|
|
19699
19701
|
var j = m();
|
|
19700
19702
|
if (W(j))
|
|
19701
19703
|
return z(j);
|
|
19702
|
-
|
|
19704
|
+
_ = setTimeout(V, F(j));
|
|
19703
19705
|
}
|
|
19704
19706
|
function z(j) {
|
|
19705
|
-
return
|
|
19707
|
+
return _ = void 0, D && P ? T(j) : (P = N = void 0, M);
|
|
19706
19708
|
}
|
|
19707
19709
|
function Z() {
|
|
19708
|
-
|
|
19710
|
+
_ !== void 0 && clearTimeout(_), k = 0, P = O = N = _ = void 0;
|
|
19709
19711
|
}
|
|
19710
19712
|
function q() {
|
|
19711
|
-
return
|
|
19713
|
+
return _ === void 0 ? M : z(m());
|
|
19712
19714
|
}
|
|
19713
19715
|
function H() {
|
|
19714
19716
|
var j = m(), Y = W(j);
|
|
19715
|
-
if (P = arguments,
|
|
19716
|
-
if (
|
|
19717
|
+
if (P = arguments, N = this, O = j, Y) {
|
|
19718
|
+
if (_ === void 0)
|
|
19717
19719
|
return $(O);
|
|
19718
19720
|
if (I)
|
|
19719
|
-
return
|
|
19721
|
+
return _ = setTimeout(V, R), T(O);
|
|
19720
19722
|
}
|
|
19721
|
-
return
|
|
19723
|
+
return _ === void 0 && (_ = setTimeout(V, R)), M;
|
|
19722
19724
|
}
|
|
19723
19725
|
return H.cancel = Z, H.flush = q, H;
|
|
19724
19726
|
}
|
|
@@ -19931,7 +19933,7 @@ function ek(...e) {
|
|
|
19931
19933
|
var Wo = globalThis?.document ? f.useLayoutEffect : () => {
|
|
19932
19934
|
}, tk = f[" useId ".trim().toString()] || (() => {
|
|
19933
19935
|
}), nk = 0;
|
|
19934
|
-
function
|
|
19936
|
+
function _a(e) {
|
|
19935
19937
|
const [t, n] = f.useState(tk());
|
|
19936
19938
|
return Wo(() => {
|
|
19937
19939
|
n((r) => r ?? String(nk++));
|
|
@@ -20085,8 +20087,8 @@ var mk = "DismissableLayer", kc = "dismissableLayer.update", gk = "dismissableLa
|
|
|
20085
20087
|
onDismiss: a,
|
|
20086
20088
|
...l
|
|
20087
20089
|
} = e, c = f.useContext(Zg), [u, d] = f.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), g = Cr(t, (S) => d(S)), m = Array.from(c.layers), [v] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), y = m.indexOf(v), b = u ? m.indexOf(u) : -1, E = c.layersWithOutsidePointerEventsDisabled.size > 0, x = b >= y, w = wk((S) => {
|
|
20088
|
-
const P = S.target,
|
|
20089
|
-
!x ||
|
|
20090
|
+
const P = S.target, N = [...c.branches].some((L) => L.contains(P));
|
|
20091
|
+
!x || N || (o?.(S), i?.(S), S.defaultPrevented || a?.());
|
|
20090
20092
|
}, h), R = Ek((S) => {
|
|
20091
20093
|
const P = S.target;
|
|
20092
20094
|
[...c.branches].some((L) => L.contains(P)) || (s?.(S), i?.(S), S.defaultPrevented || a?.());
|
|
@@ -20186,7 +20188,7 @@ function Xg(e, t, n, { discrete: r }) {
|
|
|
20186
20188
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
20187
20189
|
t && o.addEventListener(e, t, { once: !0 }), r ? pk(o, s) : o.dispatchEvent(s);
|
|
20188
20190
|
}
|
|
20189
|
-
var
|
|
20191
|
+
var Na = "focusScope.autoFocusOnMount", Aa = "focusScope.autoFocusOnUnmount", of = { bubbles: !1, cancelable: !0 }, xk = "FocusScope", Kg = f.forwardRef((e, t) => {
|
|
20190
20192
|
const {
|
|
20191
20193
|
loop: n = !1,
|
|
20192
20194
|
trapped: r = !1,
|
|
@@ -20228,13 +20230,13 @@ var Aa = "focusScope.autoFocusOnMount", _a = "focusScope.autoFocusOnUnmount", of
|
|
|
20228
20230
|
af.add(p);
|
|
20229
20231
|
const m = document.activeElement;
|
|
20230
20232
|
if (!a.contains(m)) {
|
|
20231
|
-
const y = new CustomEvent(
|
|
20232
|
-
a.addEventListener(
|
|
20233
|
+
const y = new CustomEvent(Na, of);
|
|
20234
|
+
a.addEventListener(Na, c), a.dispatchEvent(y), y.defaultPrevented || (Sk(kk(Jg(a)), { select: !0 }), document.activeElement === m && Dn(a));
|
|
20233
20235
|
}
|
|
20234
20236
|
return () => {
|
|
20235
|
-
a.removeEventListener(
|
|
20236
|
-
const y = new CustomEvent(
|
|
20237
|
-
a.addEventListener(
|
|
20237
|
+
a.removeEventListener(Na, c), setTimeout(() => {
|
|
20238
|
+
const y = new CustomEvent(Aa, of);
|
|
20239
|
+
a.addEventListener(Aa, u), a.dispatchEvent(y), y.defaultPrevented || Dn(m ?? document.body, { select: !0 }), a.removeEventListener(Aa, u), af.remove(p);
|
|
20238
20240
|
}, 0);
|
|
20239
20241
|
};
|
|
20240
20242
|
}
|
|
@@ -20325,11 +20327,11 @@ function Ik(e, t) {
|
|
|
20325
20327
|
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
20326
20328
|
}
|
|
20327
20329
|
var Ki = (e) => {
|
|
20328
|
-
const { present: t, children: n } = e, r =
|
|
20330
|
+
const { present: t, children: n } = e, r = _k(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), s = Cr(r.ref, Nk(o));
|
|
20329
20331
|
return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: s }) : null;
|
|
20330
20332
|
};
|
|
20331
20333
|
Ki.displayName = "Presence";
|
|
20332
|
-
function
|
|
20334
|
+
function _k(e) {
|
|
20333
20335
|
const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] = Ik(i, {
|
|
20334
20336
|
mounted: {
|
|
20335
20337
|
UNMOUNT: "unmounted",
|
|
@@ -20344,19 +20346,19 @@ function Nk(e) {
|
|
|
20344
20346
|
}
|
|
20345
20347
|
});
|
|
20346
20348
|
return f.useEffect(() => {
|
|
20347
|
-
const c =
|
|
20349
|
+
const c = _s(r.current);
|
|
20348
20350
|
s.current = a === "mounted" ? c : "none";
|
|
20349
20351
|
}, [a]), Wo(() => {
|
|
20350
20352
|
const c = r.current, u = o.current;
|
|
20351
20353
|
if (u !== e) {
|
|
20352
|
-
const h = s.current, p =
|
|
20354
|
+
const h = s.current, p = _s(c);
|
|
20353
20355
|
e ? l("MOUNT") : p === "none" || c?.display === "none" ? l("UNMOUNT") : l(u && h !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
20354
20356
|
}
|
|
20355
20357
|
}, [e, l]), Wo(() => {
|
|
20356
20358
|
if (t) {
|
|
20357
20359
|
let c;
|
|
20358
20360
|
const u = t.ownerDocument.defaultView ?? window, d = (p) => {
|
|
20359
|
-
const m =
|
|
20361
|
+
const m = _s(r.current).includes(p.animationName);
|
|
20360
20362
|
if (p.target === t && m && (l("ANIMATION_END"), !o.current)) {
|
|
20361
20363
|
const v = t.style.animationFillMode;
|
|
20362
20364
|
t.style.animationFillMode = "forwards", c = u.setTimeout(() => {
|
|
@@ -20364,7 +20366,7 @@ function Nk(e) {
|
|
|
20364
20366
|
});
|
|
20365
20367
|
}
|
|
20366
20368
|
}, h = (p) => {
|
|
20367
|
-
p.target === t && (s.current =
|
|
20369
|
+
p.target === t && (s.current = _s(r.current));
|
|
20368
20370
|
};
|
|
20369
20371
|
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
20370
20372
|
u.clearTimeout(c), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
@@ -20378,15 +20380,15 @@ function Nk(e) {
|
|
|
20378
20380
|
}, [])
|
|
20379
20381
|
};
|
|
20380
20382
|
}
|
|
20381
|
-
function
|
|
20383
|
+
function _s(e) {
|
|
20382
20384
|
return e?.animationName || "none";
|
|
20383
20385
|
}
|
|
20384
|
-
function
|
|
20386
|
+
function Nk(e) {
|
|
20385
20387
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
20386
20388
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
20387
20389
|
}
|
|
20388
20390
|
var Da = 0;
|
|
20389
|
-
function
|
|
20391
|
+
function Ak() {
|
|
20390
20392
|
f.useEffect(() => {
|
|
20391
20393
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
20392
20394
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? lf()), document.body.insertAdjacentElement("beforeend", e[1] ?? lf()), Da++, () => {
|
|
@@ -20670,12 +20672,12 @@ var Yk = function() {
|
|
|
20670
20672
|
}, Pc = !1;
|
|
20671
20673
|
if (typeof window < "u")
|
|
20672
20674
|
try {
|
|
20673
|
-
var
|
|
20675
|
+
var Ns = Object.defineProperty({}, "passive", {
|
|
20674
20676
|
get: function() {
|
|
20675
20677
|
return Pc = !0, !0;
|
|
20676
20678
|
}
|
|
20677
20679
|
});
|
|
20678
|
-
window.addEventListener("test",
|
|
20680
|
+
window.addEventListener("test", Ns, Ns), window.removeEventListener("test", Ns, Ns);
|
|
20679
20681
|
} catch {
|
|
20680
20682
|
Pc = !1;
|
|
20681
20683
|
}
|
|
@@ -20742,7 +20744,7 @@ var Pr = Pc ? { passive: !1 } : !1, nP = function(e) {
|
|
|
20742
20744
|
l && (t.contains(a) || t === a)
|
|
20743
20745
|
);
|
|
20744
20746
|
return (u && Math.abs(d) < 1 || !u && Math.abs(h) < 1) && (c = !0), c;
|
|
20745
|
-
},
|
|
20747
|
+
}, As = function(e) {
|
|
20746
20748
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
20747
20749
|
}, pf = function(e) {
|
|
20748
20750
|
return [e.deltaX, e.deltaY];
|
|
@@ -20776,7 +20778,7 @@ function fP(e) {
|
|
|
20776
20778
|
var a = f.useCallback(function(m, v) {
|
|
20777
20779
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
20778
20780
|
return !i.current.allowPinchZoom;
|
|
20779
|
-
var y =
|
|
20781
|
+
var y = As(m), b = n.current, E = "deltaX" in m ? m.deltaX : b[0] - y[0], x = "deltaY" in m ? m.deltaY : b[1] - y[1], w, R = m.target, S = Math.abs(E) > Math.abs(x) ? "h" : "v";
|
|
20780
20782
|
if ("touches" in m && S === "h" && R.type === "range")
|
|
20781
20783
|
return !1;
|
|
20782
20784
|
var P = ff(S, R);
|
|
@@ -20786,12 +20788,12 @@ function fP(e) {
|
|
|
20786
20788
|
return !1;
|
|
20787
20789
|
if (!r.current && "changedTouches" in m && (E || x) && (r.current = w), !w)
|
|
20788
20790
|
return !0;
|
|
20789
|
-
var
|
|
20790
|
-
return cP(
|
|
20791
|
+
var N = r.current || w;
|
|
20792
|
+
return cP(N, v, m, N === "h" ? E : x);
|
|
20791
20793
|
}, []), l = f.useCallback(function(m) {
|
|
20792
20794
|
var v = m;
|
|
20793
20795
|
if (!(!Ir.length || Ir[Ir.length - 1] !== s)) {
|
|
20794
|
-
var y = "deltaY" in v ? pf(v) :
|
|
20796
|
+
var y = "deltaY" in v ? pf(v) : As(v), b = t.current.filter(function(w) {
|
|
20795
20797
|
return w.name === v.type && (w.target === v.target || v.target === w.shadowParent) && lP(w.delta, y);
|
|
20796
20798
|
})[0];
|
|
20797
20799
|
if (b && b.should) {
|
|
@@ -20813,11 +20815,11 @@ function fP(e) {
|
|
|
20813
20815
|
});
|
|
20814
20816
|
}, 1);
|
|
20815
20817
|
}, []), u = f.useCallback(function(m) {
|
|
20816
|
-
n.current =
|
|
20818
|
+
n.current = As(m), r.current = void 0;
|
|
20817
20819
|
}, []), d = f.useCallback(function(m) {
|
|
20818
20820
|
c(m.type, pf(m), m.target, a(m, e.lockRef.current));
|
|
20819
20821
|
}, []), h = f.useCallback(function(m) {
|
|
20820
|
-
c(m.type,
|
|
20822
|
+
c(m.type, As(m), m.target, a(m, e.lockRef.current));
|
|
20821
20823
|
}, []);
|
|
20822
20824
|
f.useEffect(function() {
|
|
20823
20825
|
return Ir.push(s), e.setCallbacks({
|
|
@@ -20853,7 +20855,7 @@ var mP = function(e) {
|
|
|
20853
20855
|
return null;
|
|
20854
20856
|
var t = Array.isArray(e) ? e[0] : e;
|
|
20855
20857
|
return t.ownerDocument.body;
|
|
20856
|
-
},
|
|
20858
|
+
}, _r = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Ms = {}, Fa = 0, av = function(e) {
|
|
20857
20859
|
return e && (e.host || av(e.parentNode));
|
|
20858
20860
|
}, gP = function(e, t) {
|
|
20859
20861
|
return t.map(function(n) {
|
|
@@ -20877,8 +20879,8 @@ var mP = function(e) {
|
|
|
20877
20879
|
u(h);
|
|
20878
20880
|
else
|
|
20879
20881
|
try {
|
|
20880
|
-
var p = h.getAttribute(r), g = p !== null && p !== "false", m = (
|
|
20881
|
-
|
|
20882
|
+
var p = h.getAttribute(r), g = p !== null && p !== "false", m = (_r.get(h) || 0) + 1, v = (s.get(h) || 0) + 1;
|
|
20883
|
+
_r.set(h, m), s.set(h, v), i.push(h), m === 1 && g && Ds.set(h, !0), v === 1 && h.setAttribute(n, "true"), g || h.setAttribute(r, "true");
|
|
20882
20884
|
} catch (y) {
|
|
20883
20885
|
console.error("aria-hidden: cannot operate on ", h, y);
|
|
20884
20886
|
}
|
|
@@ -20886,9 +20888,9 @@ var mP = function(e) {
|
|
|
20886
20888
|
};
|
|
20887
20889
|
return u(t), a.clear(), Fa++, function() {
|
|
20888
20890
|
i.forEach(function(d) {
|
|
20889
|
-
var h =
|
|
20890
|
-
|
|
20891
|
-
}), Fa--, Fa || (
|
|
20891
|
+
var h = _r.get(d) - 1, p = s.get(d) - 1;
|
|
20892
|
+
_r.set(d, h), s.set(d, p), h || (Ds.has(d) || d.removeAttribute(r), Ds.delete(d)), p || d.removeAttribute(n);
|
|
20893
|
+
}), Fa--, Fa || (_r = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Ms = {});
|
|
20892
20894
|
};
|
|
20893
20895
|
}, yP = function(e, t, n) {
|
|
20894
20896
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -20916,9 +20918,9 @@ var mP = function(e) {
|
|
|
20916
20918
|
scope: t,
|
|
20917
20919
|
triggerRef: a,
|
|
20918
20920
|
contentRef: l,
|
|
20919
|
-
contentId:
|
|
20920
|
-
titleId:
|
|
20921
|
-
descriptionId:
|
|
20921
|
+
contentId: _a(),
|
|
20922
|
+
titleId: _a(),
|
|
20923
|
+
descriptionId: _a(),
|
|
20922
20924
|
open: c,
|
|
20923
20925
|
onOpenChange: u,
|
|
20924
20926
|
onOpenToggle: f.useCallback(() => u((d) => !d), [u]),
|
|
@@ -21036,7 +21038,7 @@ var SP = f.forwardRef(
|
|
|
21036
21038
|
), gv = f.forwardRef(
|
|
21037
21039
|
(e, t) => {
|
|
21038
21040
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = Jt(yr, n), l = f.useRef(null), c = Cr(t, l);
|
|
21039
|
-
return
|
|
21041
|
+
return Ak(), /* @__PURE__ */ ce(Ql, { children: [
|
|
21040
21042
|
/* @__PURE__ */ A(
|
|
21041
21043
|
Kg,
|
|
21042
21044
|
{
|
|
@@ -21117,7 +21119,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
21117
21119
|
const o = e.current?.getAttribute("aria-describedby");
|
|
21118
21120
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
21119
21121
|
}, [r, e, t]), null;
|
|
21120
|
-
}, IP = lv,
|
|
21122
|
+
}, IP = lv, _P = dv, NP = pv, AP = hv, DP = mv, MP = vv;
|
|
21121
21123
|
function LP(e) {
|
|
21122
21124
|
if (typeof document > "u") return;
|
|
21123
21125
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
@@ -21384,7 +21386,7 @@ const Ke = {
|
|
|
21384
21386
|
0,
|
|
21385
21387
|
1
|
|
21386
21388
|
]
|
|
21387
|
-
}, Ov = 0.4, JP = 0.25, QP = 100, kv = 8, sr = 16,
|
|
21389
|
+
}, Ov = 0.4, JP = 0.25, QP = 100, kv = 8, sr = 16, _c = 26, ja = "vaul-dragging";
|
|
21388
21390
|
function Pv(e) {
|
|
21389
21391
|
const t = oe.useRef(e);
|
|
21390
21392
|
return oe.useEffect(() => {
|
|
@@ -21462,15 +21464,15 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21462
21464
|
height: 0
|
|
21463
21465
|
};
|
|
21464
21466
|
var P;
|
|
21465
|
-
return (P = n?.map((
|
|
21466
|
-
const L = typeof
|
|
21467
|
+
return (P = n?.map((N) => {
|
|
21468
|
+
const L = typeof N == "string";
|
|
21467
21469
|
let M = 0;
|
|
21468
|
-
if (L && (M = parseInt(
|
|
21469
|
-
const O = L ? M : h ?
|
|
21470
|
+
if (L && (M = parseInt(N, 10)), ot(a)) {
|
|
21471
|
+
const O = L ? M : h ? N * S.height : 0;
|
|
21470
21472
|
return h ? a === "bottom" ? S.height - O : -S.height + O : O;
|
|
21471
21473
|
}
|
|
21472
|
-
const
|
|
21473
|
-
return h ? a === "right" ? S.width -
|
|
21474
|
+
const _ = L ? M : h ? N * S.width : 0;
|
|
21475
|
+
return h ? a === "right" ? S.width - _ : -S.width + _ : _;
|
|
21474
21476
|
})) != null ? P : [];
|
|
21475
21477
|
}, [
|
|
21476
21478
|
n,
|
|
@@ -21481,17 +21483,17 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21481
21483
|
m
|
|
21482
21484
|
]), E = oe.useCallback((S) => {
|
|
21483
21485
|
var P;
|
|
21484
|
-
const
|
|
21485
|
-
i(
|
|
21486
|
+
const N = (P = y?.findIndex((L) => L === S)) != null ? P : null;
|
|
21487
|
+
i(N), ct(r.current, {
|
|
21486
21488
|
transition: `transform ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,
|
|
21487
21489
|
transform: ot(a) ? `translate3d(0, ${S}px, 0)` : `translate3d(${S}px, 0, 0)`
|
|
21488
|
-
}), y &&
|
|
21490
|
+
}), y && N !== y.length - 1 && s !== void 0 && N !== s && N < s ? ct(o.current, {
|
|
21489
21491
|
transition: `opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,
|
|
21490
21492
|
opacity: "0"
|
|
21491
21493
|
}) : ct(o.current, {
|
|
21492
21494
|
transition: `opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,
|
|
21493
21495
|
opacity: "1"
|
|
21494
|
-
}), d(n?.[Math.max(
|
|
21496
|
+
}), d(n?.[Math.max(N, 0)]);
|
|
21495
21497
|
}, [
|
|
21496
21498
|
r.current,
|
|
21497
21499
|
n,
|
|
@@ -21503,7 +21505,7 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21503
21505
|
oe.useEffect(() => {
|
|
21504
21506
|
if (u || e) {
|
|
21505
21507
|
var S;
|
|
21506
|
-
const P = (S = n?.findIndex((
|
|
21508
|
+
const P = (S = n?.findIndex((N) => N === e || N === u)) != null ? S : -1;
|
|
21507
21509
|
y && P !== -1 && typeof y[P] == "number" && E(y[P]);
|
|
21508
21510
|
}
|
|
21509
21511
|
}, [
|
|
@@ -21513,21 +21515,21 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21513
21515
|
y,
|
|
21514
21516
|
E
|
|
21515
21517
|
]);
|
|
21516
|
-
function x({ draggedDistance: S, closeDrawer: P, velocity:
|
|
21518
|
+
function x({ draggedDistance: S, closeDrawer: P, velocity: N, dismissible: L }) {
|
|
21517
21519
|
if (s === void 0) return;
|
|
21518
|
-
const M = a === "bottom" || a === "right" ? (b ?? 0) - S : (b ?? 0) + S,
|
|
21519
|
-
if (
|
|
21520
|
+
const M = a === "bottom" || a === "right" ? (b ?? 0) - S : (b ?? 0) + S, _ = m === s - 1, O = m === 0, k = S > 0;
|
|
21521
|
+
if (_ && ct(o.current, {
|
|
21520
21522
|
transition: `opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`
|
|
21521
|
-
}), !c &&
|
|
21523
|
+
}), !c && N > 2 && !k) {
|
|
21522
21524
|
L ? P() : E(y[0]);
|
|
21523
21525
|
return;
|
|
21524
21526
|
}
|
|
21525
|
-
if (!c &&
|
|
21527
|
+
if (!c && N > 2 && k && y && n) {
|
|
21526
21528
|
E(y[n.length - 1]);
|
|
21527
21529
|
return;
|
|
21528
21530
|
}
|
|
21529
21531
|
const C = y?.reduce((D, T) => typeof D != "number" || typeof T != "number" ? D : Math.abs(T - M) < Math.abs(D - M) ? T : D), I = ot(a) ? window.innerHeight : window.innerWidth;
|
|
21530
|
-
if (
|
|
21532
|
+
if (N > Ov && Math.abs(S) < I * 0.4) {
|
|
21531
21533
|
const D = k ? 1 : -1;
|
|
21532
21534
|
if (D > 0 && g && n) {
|
|
21533
21535
|
E(y[n.length - 1]);
|
|
@@ -21548,13 +21550,13 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21548
21550
|
}
|
|
21549
21551
|
function R(S, P) {
|
|
21550
21552
|
if (!n || typeof m != "number" || !y || s === void 0) return null;
|
|
21551
|
-
const
|
|
21553
|
+
const N = m === s - 1;
|
|
21552
21554
|
if (m >= s && P)
|
|
21553
21555
|
return 0;
|
|
21554
|
-
if (
|
|
21555
|
-
if (!v && !
|
|
21556
|
-
const M =
|
|
21557
|
-
return
|
|
21556
|
+
if (N && !P) return 1;
|
|
21557
|
+
if (!v && !N) return null;
|
|
21558
|
+
const M = N ? m + 1 : m - 1, _ = N ? y[M] - y[M - 1] : y[M + 1] - y[M], O = S / Math.abs(_);
|
|
21559
|
+
return N ? 1 - O : O;
|
|
21558
21560
|
}
|
|
21559
21561
|
return {
|
|
21560
21562
|
isLastSnapPoint: g,
|
|
@@ -21573,7 +21575,7 @@ const n2 = () => () => {
|
|
|
21573
21575
|
function r2() {
|
|
21574
21576
|
const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = as(), s = oe.useRef(null), i = Ga(() => document.body.style.backgroundColor, []);
|
|
21575
21577
|
function a() {
|
|
21576
|
-
return (window.innerWidth -
|
|
21578
|
+
return (window.innerWidth - _c) / window.innerWidth;
|
|
21577
21579
|
}
|
|
21578
21580
|
oe.useEffect(() => {
|
|
21579
21581
|
if (t && n) {
|
|
@@ -21678,13 +21680,13 @@ function o2({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
|
|
|
21678
21680
|
restorePositionSetting: u
|
|
21679
21681
|
};
|
|
21680
21682
|
}
|
|
21681
|
-
function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: a = !0, closeThreshold: l = JP, scrollLockTimeout: c = QP, dismissible: u = !0, handleOnly: d = !1, fadeFromIndex: h = s && s.length - 1, activeSnapPoint: p, setActiveSnapPoint: g, fixed: m, modal: v = !0, onClose: y, nested: b, noBodyStyles: E = !1, direction: x = "bottom", defaultOpen: w = !1, disablePreventScroll: R = !0, snapToSequentialPoint: S = !1, preventScrollRestoration: P = !1, repositionInputs:
|
|
21683
|
+
function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: a = !0, closeThreshold: l = JP, scrollLockTimeout: c = QP, dismissible: u = !0, handleOnly: d = !1, fadeFromIndex: h = s && s.length - 1, activeSnapPoint: p, setActiveSnapPoint: g, fixed: m, modal: v = !0, onClose: y, nested: b, noBodyStyles: E = !1, direction: x = "bottom", defaultOpen: w = !1, disablePreventScroll: R = !0, snapToSequentialPoint: S = !1, preventScrollRestoration: P = !1, repositionInputs: N = !0, onAnimationEnd: L, container: M, autoFocus: _ = !1 }) {
|
|
21682
21684
|
var O, k;
|
|
21683
21685
|
const [C = !1, I] = Iv({
|
|
21684
21686
|
defaultProp: w,
|
|
21685
21687
|
prop: e,
|
|
21686
21688
|
onChange: (ie) => {
|
|
21687
|
-
t?.(ie), !ie && !b &&
|
|
21689
|
+
t?.(ie), !ie && !b && _e(), setTimeout(() => {
|
|
21688
21690
|
L?.(ie);
|
|
21689
21691
|
}, Ke.DURATION * 1e3), ie && !v && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
21690
21692
|
document.body.style.pointerEvents = "auto";
|
|
@@ -21692,7 +21694,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21692
21694
|
}
|
|
21693
21695
|
}), [D, T] = oe.useState(!1), [$, F] = oe.useState(!1), [W, V] = oe.useState(!1), z = oe.useRef(null), Z = oe.useRef(null), q = oe.useRef(null), H = oe.useRef(null), j = oe.useRef(null), Y = oe.useRef(!1), ne = oe.useRef(null), te = oe.useRef(0), Q = oe.useRef(!1), ue = oe.useRef(!w), X = oe.useRef(0), U = oe.useRef(null), fe = oe.useRef(((O = U.current) == null ? void 0 : O.getBoundingClientRect().height) || 0), pe = oe.useRef(((k = U.current) == null ? void 0 : k.getBoundingClientRect().width) || 0), re = oe.useRef(0), de = oe.useCallback((ie) => {
|
|
21694
21696
|
s && ie === he.length - 1 && (Z.current = /* @__PURE__ */ new Date());
|
|
21695
|
-
}, []), { activeSnapPoint: ee, activeSnapPointIndex: G, setActiveSnapPoint: B, onRelease: K, snapPointsOffset: he, onDrag: Ce, shouldFade:
|
|
21697
|
+
}, []), { activeSnapPoint: ee, activeSnapPointIndex: G, setActiveSnapPoint: B, onRelease: K, snapPointsOffset: he, onDrag: Ce, shouldFade: Ne, getPercentageDragged: Fe } = t2({
|
|
21696
21698
|
snapPoints: s,
|
|
21697
21699
|
activeSnapPointProp: p,
|
|
21698
21700
|
setActiveSnapPointProp: g,
|
|
@@ -21705,9 +21707,9 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21705
21707
|
snapToSequentialPoint: S
|
|
21706
21708
|
});
|
|
21707
21709
|
UP({
|
|
21708
|
-
isDisabled: !C || $ || !v || W || !D || !
|
|
21710
|
+
isDisabled: !C || $ || !v || W || !D || !N || !R
|
|
21709
21711
|
});
|
|
21710
|
-
const { restorePositionSetting:
|
|
21712
|
+
const { restorePositionSetting: _e } = o2({
|
|
21711
21713
|
isOpen: C,
|
|
21712
21714
|
modal: v,
|
|
21713
21715
|
nested: b ?? !1,
|
|
@@ -21716,7 +21718,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21716
21718
|
noBodyStyles: E
|
|
21717
21719
|
});
|
|
21718
21720
|
function we() {
|
|
21719
|
-
return (window.innerWidth -
|
|
21721
|
+
return (window.innerWidth - _c) / window.innerWidth;
|
|
21720
21722
|
}
|
|
21721
21723
|
function ke(ie) {
|
|
21722
21724
|
var ve, Te;
|
|
@@ -21773,7 +21775,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21773
21775
|
return;
|
|
21774
21776
|
}
|
|
21775
21777
|
const Qt = 1 - bt;
|
|
21776
|
-
if ((
|
|
21778
|
+
if ((Ne || h && G === h - 1) && (r?.(ie, bt), ct(z.current, {
|
|
21777
21779
|
opacity: `${Qt}`,
|
|
21778
21780
|
transition: "none"
|
|
21779
21781
|
}, !0)), tt && z.current && i) {
|
|
@@ -21799,7 +21801,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21799
21801
|
}, []), oe.useEffect(() => {
|
|
21800
21802
|
var ie;
|
|
21801
21803
|
function ve() {
|
|
21802
|
-
if (!U.current || !
|
|
21804
|
+
if (!U.current || !N) return;
|
|
21803
21805
|
const Te = document.activeElement;
|
|
21804
21806
|
if (Ic(Te) || Q.current) {
|
|
21805
21807
|
var Ee;
|
|
@@ -21815,7 +21817,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21815
21817
|
if (X.current = tt, Ct > Le || Q.current) {
|
|
21816
21818
|
const Qt = U.current.getBoundingClientRect().height;
|
|
21817
21819
|
let Rt = Qt;
|
|
21818
|
-
Qt > Le && (Rt = Le - (bt ? Ut :
|
|
21820
|
+
Qt > Le && (Rt = Le - (bt ? Ut : _c)), m ? U.current.style.height = `${Qt - Math.max(tt, 0)}px` : U.current.style.height = `${Math.max(Rt, Le - Ut)}px`;
|
|
21819
21821
|
} else $P() || (U.current.style.height = `${re.current}px`);
|
|
21820
21822
|
s && s.length > 0 && !Q.current ? U.current.style.bottom = "0px" : U.current.style.bottom = `${Math.max(tt, 0)}px`;
|
|
21821
21823
|
}
|
|
@@ -21959,7 +21961,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21959
21961
|
handleOnly: d,
|
|
21960
21962
|
isOpen: C,
|
|
21961
21963
|
isDragging: $,
|
|
21962
|
-
shouldFade:
|
|
21964
|
+
shouldFade: Ne,
|
|
21963
21965
|
closeDrawer: et,
|
|
21964
21966
|
onNestedDrag: ye,
|
|
21965
21967
|
onNestedOpenChange: Lt,
|
|
@@ -21973,18 +21975,18 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21973
21975
|
setBackgroundColorOnScale: a,
|
|
21974
21976
|
noBodyStyles: E,
|
|
21975
21977
|
container: M,
|
|
21976
|
-
autoFocus:
|
|
21978
|
+
autoFocus: _
|
|
21977
21979
|
}
|
|
21978
21980
|
}, n));
|
|
21979
21981
|
}
|
|
21980
|
-
const
|
|
21982
|
+
const _v = /* @__PURE__ */ oe.forwardRef(function({ ...e }, t) {
|
|
21981
21983
|
const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: s, isOpen: i, modal: a, shouldAnimate: l } = as(), c = Rv(t, n), u = r && r.length > 0;
|
|
21982
21984
|
if (!a)
|
|
21983
21985
|
return null;
|
|
21984
21986
|
const d = oe.useCallback((h) => o(h), [
|
|
21985
21987
|
o
|
|
21986
21988
|
]);
|
|
21987
|
-
return /* @__PURE__ */ oe.createElement(
|
|
21989
|
+
return /* @__PURE__ */ oe.createElement(AP, {
|
|
21988
21990
|
onMouseUp: d,
|
|
21989
21991
|
ref: c,
|
|
21990
21992
|
"data-vaul-overlay": "",
|
|
@@ -21994,12 +21996,12 @@ const Nv = /* @__PURE__ */ oe.forwardRef(function({ ...e }, t) {
|
|
|
21994
21996
|
...e
|
|
21995
21997
|
});
|
|
21996
21998
|
});
|
|
21997
|
-
|
|
21998
|
-
const
|
|
21999
|
-
const { drawerRef: s, onPress: i, onRelease: a, onDrag: l, keyboardIsOpen: c, snapPointsOffset: u, activeSnapPointIndex: d, modal: h, isOpen: p, direction: g, snapPoints: m, container: v, handleOnly: y, shouldAnimate: b, autoFocus: E } = as(), [x, w] = oe.useState(!1), R = Rv(o, s), S = oe.useRef(null), P = oe.useRef(null),
|
|
21999
|
+
_v.displayName = "Drawer.Overlay";
|
|
22000
|
+
const Nv = /* @__PURE__ */ oe.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
|
|
22001
|
+
const { drawerRef: s, onPress: i, onRelease: a, onDrag: l, keyboardIsOpen: c, snapPointsOffset: u, activeSnapPointIndex: d, modal: h, isOpen: p, direction: g, snapPoints: m, container: v, handleOnly: y, shouldAnimate: b, autoFocus: E } = as(), [x, w] = oe.useState(!1), R = Rv(o, s), S = oe.useRef(null), P = oe.useRef(null), N = oe.useRef(!1), L = m && m.length > 0;
|
|
22000
22002
|
r2();
|
|
22001
22003
|
const M = (O, k, C = 0) => {
|
|
22002
|
-
if (
|
|
22004
|
+
if (N.current) return !0;
|
|
22003
22005
|
const I = Math.abs(O.y), D = Math.abs(O.x), T = D > I, $ = [
|
|
22004
22006
|
"bottom",
|
|
22005
22007
|
"right"
|
|
@@ -22009,15 +22011,15 @@ const Av = /* @__PURE__ */ oe.forwardRef(function({ onPointerDownOutside: e, sty
|
|
|
22009
22011
|
return T;
|
|
22010
22012
|
} else if (!(O.y * $ < 0) && I >= 0 && I <= C)
|
|
22011
22013
|
return !T;
|
|
22012
|
-
return
|
|
22014
|
+
return N.current = !0, !0;
|
|
22013
22015
|
};
|
|
22014
22016
|
oe.useEffect(() => {
|
|
22015
22017
|
L && window.requestAnimationFrame(() => {
|
|
22016
22018
|
w(!0);
|
|
22017
22019
|
});
|
|
22018
22020
|
}, []);
|
|
22019
|
-
function
|
|
22020
|
-
S.current = null,
|
|
22021
|
+
function _(O) {
|
|
22022
|
+
S.current = null, N.current = !1, a(O);
|
|
22021
22023
|
}
|
|
22022
22024
|
return /* @__PURE__ */ oe.createElement(DP, {
|
|
22023
22025
|
"data-vaul-drawer-direction": g,
|
|
@@ -22063,17 +22065,17 @@ const Av = /* @__PURE__ */ oe.forwardRef(function({ onPointerDownOutside: e, sty
|
|
|
22063
22065
|
}, g, I) ? l(O) : (Math.abs(C) > I || Math.abs(k) > I) && (S.current = null);
|
|
22064
22066
|
},
|
|
22065
22067
|
onPointerUp: (O) => {
|
|
22066
|
-
r.onPointerUp == null || r.onPointerUp.call(r, O), S.current = null,
|
|
22068
|
+
r.onPointerUp == null || r.onPointerUp.call(r, O), S.current = null, N.current = !1, a(O);
|
|
22067
22069
|
},
|
|
22068
22070
|
onPointerOut: (O) => {
|
|
22069
|
-
r.onPointerOut == null || r.onPointerOut.call(r, O),
|
|
22071
|
+
r.onPointerOut == null || r.onPointerOut.call(r, O), _(P.current);
|
|
22070
22072
|
},
|
|
22071
22073
|
onContextMenu: (O) => {
|
|
22072
|
-
r.onContextMenu == null || r.onContextMenu.call(r, O), P.current &&
|
|
22074
|
+
r.onContextMenu == null || r.onContextMenu.call(r, O), P.current && _(P.current);
|
|
22073
22075
|
}
|
|
22074
22076
|
});
|
|
22075
22077
|
});
|
|
22076
|
-
|
|
22078
|
+
Nv.displayName = "Drawer.Content";
|
|
22077
22079
|
const i2 = 250, a2 = 120, c2 = /* @__PURE__ */ oe.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
|
|
22078
22080
|
const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: a, setActiveSnapPoint: l, dismissible: c, handleOnly: u, isOpen: d, onPress: h, onDrag: p } = as(), g = oe.useRef(null), m = oe.useRef(!1);
|
|
22079
22081
|
function v() {
|
|
@@ -22134,16 +22136,16 @@ const i2 = 250, a2 = 120, c2 = /* @__PURE__ */ oe.forwardRef(function({ preventC
|
|
|
22134
22136
|
c2.displayName = "Drawer.Handle";
|
|
22135
22137
|
function l2(e) {
|
|
22136
22138
|
const t = as(), { container: n = t.container, ...r } = e;
|
|
22137
|
-
return /* @__PURE__ */ oe.createElement(
|
|
22139
|
+
return /* @__PURE__ */ oe.createElement(NP, {
|
|
22138
22140
|
container: n,
|
|
22139
22141
|
...r
|
|
22140
22142
|
});
|
|
22141
22143
|
}
|
|
22142
|
-
const
|
|
22144
|
+
const Nr = {
|
|
22143
22145
|
Root: s2,
|
|
22144
|
-
Content:
|
|
22145
|
-
Overlay:
|
|
22146
|
-
Trigger:
|
|
22146
|
+
Content: Nv,
|
|
22147
|
+
Overlay: _v,
|
|
22148
|
+
Trigger: _P,
|
|
22147
22149
|
Portal: l2,
|
|
22148
22150
|
Title: MP
|
|
22149
22151
|
};
|
|
@@ -22169,7 +22171,7 @@ function bf({
|
|
|
22169
22171
|
}
|
|
22170
22172
|
),
|
|
22171
22173
|
/* @__PURE__ */ ce(
|
|
22172
|
-
|
|
22174
|
+
Ag,
|
|
22173
22175
|
{
|
|
22174
22176
|
style: { zIndex: a },
|
|
22175
22177
|
className: tn(
|
|
@@ -22178,18 +22180,18 @@ function bf({
|
|
|
22178
22180
|
),
|
|
22179
22181
|
children: [
|
|
22180
22182
|
t && /* @__PURE__ */ A(Mg, { className: tn("-mt-1.5 mb-1 text-lg font-medium", l?.title), children: t }),
|
|
22181
|
-
n && /* @__PURE__ */ A(
|
|
22182
|
-
s && /* @__PURE__ */ A(
|
|
22183
|
+
n && /* @__PURE__ */ A(Ng, { className: tn("mb-6 text-base text-gray-600", l?.description), children: n }),
|
|
22184
|
+
s && /* @__PURE__ */ A(_g, { className: "absolute right-4 top-4 text-gray-700 hover:bg-gray-200 rounded p-0.5", children: /* @__PURE__ */ A(Sm, {}) }),
|
|
22183
22185
|
/* @__PURE__ */ A("div", { children: r })
|
|
22184
22186
|
]
|
|
22185
22187
|
}
|
|
22186
22188
|
)
|
|
22187
22189
|
] })
|
|
22188
|
-
] }) : /* @__PURE__ */ ce(
|
|
22189
|
-
e && /* @__PURE__ */ A(
|
|
22190
|
-
/* @__PURE__ */ ce(
|
|
22190
|
+
] }) : /* @__PURE__ */ ce(Nr.Root, { open: o, onOpenChange: i, children: [
|
|
22191
|
+
e && /* @__PURE__ */ A(Nr.Trigger, { className: l?.trigger, children: e }),
|
|
22192
|
+
/* @__PURE__ */ ce(Nr.Portal, { children: [
|
|
22191
22193
|
/* @__PURE__ */ A(
|
|
22192
|
-
|
|
22194
|
+
Nr.Overlay,
|
|
22193
22195
|
{
|
|
22194
22196
|
style: { zIndex: a },
|
|
22195
22197
|
className: tn(
|
|
@@ -22199,7 +22201,7 @@ function bf({
|
|
|
22199
22201
|
}
|
|
22200
22202
|
),
|
|
22201
22203
|
/* @__PURE__ */ ce(
|
|
22202
|
-
|
|
22204
|
+
Nr.Content,
|
|
22203
22205
|
{
|
|
22204
22206
|
style: { zIndex: a },
|
|
22205
22207
|
className: tn(
|
|
@@ -22207,7 +22209,7 @@ function bf({
|
|
|
22207
22209
|
l?.mobilePopup
|
|
22208
22210
|
),
|
|
22209
22211
|
children: [
|
|
22210
|
-
/* @__PURE__ */ A(
|
|
22212
|
+
/* @__PURE__ */ A(Nr.Title, { className: "hidden" }),
|
|
22211
22213
|
/* @__PURE__ */ ce("div", { className: "p-4 bg-white rounded-t-xl", children: [
|
|
22212
22214
|
/* @__PURE__ */ A("div", { "aria-hidden": !0, className: "mx-auto w-12 h-1.5 flex-shrink-0 rounded-full bg-gray-300 mb-4" }),
|
|
22213
22215
|
/* @__PURE__ */ A("div", { children: r })
|
|
@@ -22218,7 +22220,7 @@ function bf({
|
|
|
22218
22220
|
] })
|
|
22219
22221
|
] });
|
|
22220
22222
|
}
|
|
22221
|
-
function
|
|
22223
|
+
function Av({
|
|
22222
22224
|
checked: e,
|
|
22223
22225
|
onChange: t
|
|
22224
22226
|
}) {
|
|
@@ -22286,7 +22288,17 @@ function u2() {
|
|
|
22286
22288
|
password: a
|
|
22287
22289
|
}),
|
|
22288
22290
|
onSuccess: (v) => {
|
|
22289
|
-
|
|
22291
|
+
const y = {
|
|
22292
|
+
account: v.account,
|
|
22293
|
+
entity: v.channel_info.entity,
|
|
22294
|
+
token: v.channel_info.token,
|
|
22295
|
+
sign: v.channel_info.sign,
|
|
22296
|
+
accid: v.channel_info.entity.openid,
|
|
22297
|
+
extra_data: v.channel_info.extra_data,
|
|
22298
|
+
gaplaySign: v.channel_info.gaplaySign,
|
|
22299
|
+
realname: v.channel_info.realname
|
|
22300
|
+
};
|
|
22301
|
+
t?.(y), n?.(y);
|
|
22290
22302
|
},
|
|
22291
22303
|
onError: (v) => {
|
|
22292
22304
|
r?.(v);
|
|
@@ -22350,8 +22362,8 @@ function u2() {
|
|
|
22350
22362
|
}
|
|
22351
22363
|
)
|
|
22352
22364
|
] }),
|
|
22353
|
-
/* @__PURE__ */ A(
|
|
22354
|
-
/* @__PURE__ */ A(
|
|
22365
|
+
/* @__PURE__ */ A(_l, {}),
|
|
22366
|
+
/* @__PURE__ */ A(Av, { checked: d, onChange: h })
|
|
22355
22367
|
] });
|
|
22356
22368
|
}
|
|
22357
22369
|
var d2 = function(e) {
|
|
@@ -22389,8 +22401,8 @@ function h2() {
|
|
|
22389
22401
|
} }, w = "en", R = {};
|
|
22390
22402
|
R[w] = b;
|
|
22391
22403
|
var S = "$isDayjsObject", P = function(k) {
|
|
22392
|
-
return k instanceof
|
|
22393
|
-
},
|
|
22404
|
+
return k instanceof _ || !(!k || !k[S]);
|
|
22405
|
+
}, N = function k(C, I, D) {
|
|
22394
22406
|
var T;
|
|
22395
22407
|
if (!C) return w;
|
|
22396
22408
|
if (typeof C == "string") {
|
|
@@ -22406,14 +22418,14 @@ function h2() {
|
|
|
22406
22418
|
}, L = function(k, C) {
|
|
22407
22419
|
if (P(k)) return k.clone();
|
|
22408
22420
|
var I = typeof C == "object" ? C : {};
|
|
22409
|
-
return I.date = k, I.args = arguments, new
|
|
22421
|
+
return I.date = k, I.args = arguments, new _(I);
|
|
22410
22422
|
}, M = x;
|
|
22411
|
-
M.l =
|
|
22423
|
+
M.l = N, M.i = P, M.w = function(k, C) {
|
|
22412
22424
|
return L(k, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
|
|
22413
22425
|
};
|
|
22414
|
-
var
|
|
22426
|
+
var _ = (function() {
|
|
22415
22427
|
function k(I) {
|
|
22416
|
-
this.$L =
|
|
22428
|
+
this.$L = N(I.locale, null, !0), this.parse(I), this.$x = this.$x || I.x || {}, this[S] = !0;
|
|
22417
22429
|
}
|
|
22418
22430
|
var C = k.prototype;
|
|
22419
22431
|
return C.parse = function(I) {
|
|
@@ -22613,7 +22625,7 @@ function h2() {
|
|
|
22613
22625
|
return R[this.$L];
|
|
22614
22626
|
}, C.locale = function(I, D) {
|
|
22615
22627
|
if (!I) return this.$L;
|
|
22616
|
-
var T = this.clone(), $ =
|
|
22628
|
+
var T = this.clone(), $ = N(I, D, !0);
|
|
22617
22629
|
return $ && (T.$L = $), T;
|
|
22618
22630
|
}, C.clone = function() {
|
|
22619
22631
|
return M.w(this.$d, this);
|
|
@@ -22626,14 +22638,14 @@ function h2() {
|
|
|
22626
22638
|
}, C.toString = function() {
|
|
22627
22639
|
return this.$d.toUTCString();
|
|
22628
22640
|
}, k;
|
|
22629
|
-
})(), O =
|
|
22641
|
+
})(), O = _.prototype;
|
|
22630
22642
|
return L.prototype = O, [["$ms", s], ["$s", i], ["$m", a], ["$H", l], ["$W", c], ["$M", d], ["$y", p], ["$D", g]].forEach((function(k) {
|
|
22631
22643
|
O[k[1]] = function(C) {
|
|
22632
22644
|
return this.$g(C, k[0], k[1]);
|
|
22633
22645
|
};
|
|
22634
22646
|
})), L.extend = function(k, C) {
|
|
22635
|
-
return k.$i || (k(C,
|
|
22636
|
-
}, L.locale =
|
|
22647
|
+
return k.$i || (k(C, _, L), k.$i = !0), L;
|
|
22648
|
+
}, L.locale = N, L.isDayjs = P, L.unix = function(k) {
|
|
22637
22649
|
return L(1e3 * k);
|
|
22638
22650
|
}, L.en = R[w], L.Ls = R, L.p = {}, L;
|
|
22639
22651
|
}));
|
|
@@ -22848,7 +22860,7 @@ class Tn extends Error {
|
|
|
22848
22860
|
}
|
|
22849
22861
|
}
|
|
22850
22862
|
Tn.create = (e) => new Tn(e);
|
|
22851
|
-
const
|
|
22863
|
+
const Nc = (e, t) => {
|
|
22852
22864
|
let n;
|
|
22853
22865
|
switch (e.code) {
|
|
22854
22866
|
case J.invalid_type:
|
|
@@ -22904,7 +22916,7 @@ const Ac = (e, t) => {
|
|
|
22904
22916
|
}
|
|
22905
22917
|
return { message: n };
|
|
22906
22918
|
};
|
|
22907
|
-
let b2 =
|
|
22919
|
+
let b2 = Nc;
|
|
22908
22920
|
function w2() {
|
|
22909
22921
|
return b2;
|
|
22910
22922
|
}
|
|
@@ -22941,7 +22953,7 @@ function se(e, t) {
|
|
|
22941
22953
|
// then schema-bound map if available
|
|
22942
22954
|
n,
|
|
22943
22955
|
// then global override map
|
|
22944
|
-
n ===
|
|
22956
|
+
n === Nc ? void 0 : Nc
|
|
22945
22957
|
// then global default map
|
|
22946
22958
|
].filter((o) => !!o)
|
|
22947
22959
|
});
|
|
@@ -23029,7 +23041,7 @@ function Ie(e) {
|
|
|
23029
23041
|
return i.code === "invalid_enum_value" ? { message: l ?? a.defaultError } : typeof a.data > "u" ? { message: l ?? r ?? a.defaultError } : i.code !== "invalid_type" ? { message: a.defaultError } : { message: l ?? n ?? a.defaultError };
|
|
23030
23042
|
}, description: o };
|
|
23031
23043
|
}
|
|
23032
|
-
class
|
|
23044
|
+
class Ae {
|
|
23033
23045
|
get description() {
|
|
23034
23046
|
return this._def.description;
|
|
23035
23047
|
}
|
|
@@ -23249,7 +23261,7 @@ class _e {
|
|
|
23249
23261
|
}
|
|
23250
23262
|
const x2 = /^c[^\s-]{8,}$/i, S2 = /^[0-9a-z]+$/, C2 = /^[0-9A-HJKMNP-TV-Z]{26}$/i, R2 = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, T2 = /^[a-z0-9_-]{21}$/i, O2 = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, k2 = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, P2 = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, I2 = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
23251
23263
|
let Ua;
|
|
23252
|
-
const
|
|
23264
|
+
const _2 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, N2 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, A2 = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, D2 = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, M2 = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, L2 = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Dv = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", $2 = new RegExp(`^${Dv}$`);
|
|
23253
23265
|
function Mv(e) {
|
|
23254
23266
|
let t = "[0-5]\\d";
|
|
23255
23267
|
e.precision ? t = `${t}\\.\\d{${e.precision}}` : e.precision == null && (t = `${t}(\\.\\d+)?`);
|
|
@@ -23265,7 +23277,7 @@ function V2(e) {
|
|
|
23265
23277
|
return n.push(e.local ? "Z?" : "Z"), e.offset && n.push("([+-]\\d{2}:?\\d{2})"), t = `${t}(${n.join("|")})`, new RegExp(`^${t}$`);
|
|
23266
23278
|
}
|
|
23267
23279
|
function B2(e, t) {
|
|
23268
|
-
return !!((t === "v4" || !t) &&
|
|
23280
|
+
return !!((t === "v4" || !t) && _2.test(e) || (t === "v6" || !t) && A2.test(e));
|
|
23269
23281
|
}
|
|
23270
23282
|
function W2(e, t) {
|
|
23271
23283
|
if (!O2.test(e))
|
|
@@ -23281,9 +23293,9 @@ function W2(e, t) {
|
|
|
23281
23293
|
}
|
|
23282
23294
|
}
|
|
23283
23295
|
function j2(e, t) {
|
|
23284
|
-
return !!((t === "v4" || !t) &&
|
|
23296
|
+
return !!((t === "v4" || !t) && N2.test(e) || (t === "v6" || !t) && D2.test(e));
|
|
23285
23297
|
}
|
|
23286
|
-
class Vn extends
|
|
23298
|
+
class Vn extends Ae {
|
|
23287
23299
|
_parse(t) {
|
|
23288
23300
|
if (this._def.coerce && (t.data = String(t.data)), this._getType(t) !== ae.string) {
|
|
23289
23301
|
const s = this._getOrReturnCtx(t);
|
|
@@ -23670,7 +23682,7 @@ function H2(e, t) {
|
|
|
23670
23682
|
const n = (e.toString().split(".")[1] || "").length, r = (t.toString().split(".")[1] || "").length, o = n > r ? n : r, s = Number.parseInt(e.toFixed(o).replace(".", "")), i = Number.parseInt(t.toFixed(o).replace(".", ""));
|
|
23671
23683
|
return s % i / 10 ** o;
|
|
23672
23684
|
}
|
|
23673
|
-
class Ho extends
|
|
23685
|
+
class Ho extends Ae {
|
|
23674
23686
|
constructor() {
|
|
23675
23687
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
23676
23688
|
}
|
|
@@ -23842,7 +23854,7 @@ Ho.create = (e) => new Ho({
|
|
|
23842
23854
|
coerce: e?.coerce || !1,
|
|
23843
23855
|
...Ie(e)
|
|
23844
23856
|
});
|
|
23845
|
-
class Uo extends
|
|
23857
|
+
class Uo extends Ae {
|
|
23846
23858
|
constructor() {
|
|
23847
23859
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
23848
23860
|
}
|
|
@@ -23975,7 +23987,7 @@ Uo.create = (e) => new Uo({
|
|
|
23975
23987
|
coerce: e?.coerce ?? !1,
|
|
23976
23988
|
...Ie(e)
|
|
23977
23989
|
});
|
|
23978
|
-
class Rf extends
|
|
23990
|
+
class Rf extends Ae {
|
|
23979
23991
|
_parse(t) {
|
|
23980
23992
|
if (this._def.coerce && (t.data = !!t.data), this._getType(t) !== ae.boolean) {
|
|
23981
23993
|
const r = this._getOrReturnCtx(t);
|
|
@@ -23993,7 +24005,7 @@ Rf.create = (e) => new Rf({
|
|
|
23993
24005
|
coerce: e?.coerce || !1,
|
|
23994
24006
|
...Ie(e)
|
|
23995
24007
|
});
|
|
23996
|
-
class wi extends
|
|
24008
|
+
class wi extends Ae {
|
|
23997
24009
|
_parse(t) {
|
|
23998
24010
|
if (this._def.coerce && (t.data = new Date(t.data)), this._getType(t) !== ae.date) {
|
|
23999
24011
|
const s = this._getOrReturnCtx(t);
|
|
@@ -24071,7 +24083,7 @@ wi.create = (e) => new wi({
|
|
|
24071
24083
|
typeName: Se.ZodDate,
|
|
24072
24084
|
...Ie(e)
|
|
24073
24085
|
});
|
|
24074
|
-
class Tf extends
|
|
24086
|
+
class Tf extends Ae {
|
|
24075
24087
|
_parse(t) {
|
|
24076
24088
|
if (this._getType(t) !== ae.symbol) {
|
|
24077
24089
|
const r = this._getOrReturnCtx(t);
|
|
@@ -24088,7 +24100,7 @@ Tf.create = (e) => new Tf({
|
|
|
24088
24100
|
typeName: Se.ZodSymbol,
|
|
24089
24101
|
...Ie(e)
|
|
24090
24102
|
});
|
|
24091
|
-
class Of extends
|
|
24103
|
+
class Of extends Ae {
|
|
24092
24104
|
_parse(t) {
|
|
24093
24105
|
if (this._getType(t) !== ae.undefined) {
|
|
24094
24106
|
const r = this._getOrReturnCtx(t);
|
|
@@ -24105,7 +24117,7 @@ Of.create = (e) => new Of({
|
|
|
24105
24117
|
typeName: Se.ZodUndefined,
|
|
24106
24118
|
...Ie(e)
|
|
24107
24119
|
});
|
|
24108
|
-
class kf extends
|
|
24120
|
+
class kf extends Ae {
|
|
24109
24121
|
_parse(t) {
|
|
24110
24122
|
if (this._getType(t) !== ae.null) {
|
|
24111
24123
|
const r = this._getOrReturnCtx(t);
|
|
@@ -24122,7 +24134,7 @@ kf.create = (e) => new kf({
|
|
|
24122
24134
|
typeName: Se.ZodNull,
|
|
24123
24135
|
...Ie(e)
|
|
24124
24136
|
});
|
|
24125
|
-
class Pf extends
|
|
24137
|
+
class Pf extends Ae {
|
|
24126
24138
|
constructor() {
|
|
24127
24139
|
super(...arguments), this._any = !0;
|
|
24128
24140
|
}
|
|
@@ -24134,7 +24146,7 @@ Pf.create = (e) => new Pf({
|
|
|
24134
24146
|
typeName: Se.ZodAny,
|
|
24135
24147
|
...Ie(e)
|
|
24136
24148
|
});
|
|
24137
|
-
class If extends
|
|
24149
|
+
class If extends Ae {
|
|
24138
24150
|
constructor() {
|
|
24139
24151
|
super(...arguments), this._unknown = !0;
|
|
24140
24152
|
}
|
|
@@ -24146,7 +24158,7 @@ If.create = (e) => new If({
|
|
|
24146
24158
|
typeName: Se.ZodUnknown,
|
|
24147
24159
|
...Ie(e)
|
|
24148
24160
|
});
|
|
24149
|
-
class Zn extends
|
|
24161
|
+
class Zn extends Ae {
|
|
24150
24162
|
_parse(t) {
|
|
24151
24163
|
const n = this._getOrReturnCtx(t);
|
|
24152
24164
|
return se(n, {
|
|
@@ -24160,7 +24172,7 @@ Zn.create = (e) => new Zn({
|
|
|
24160
24172
|
typeName: Se.ZodNever,
|
|
24161
24173
|
...Ie(e)
|
|
24162
24174
|
});
|
|
24163
|
-
class
|
|
24175
|
+
class _f extends Ae {
|
|
24164
24176
|
_parse(t) {
|
|
24165
24177
|
if (this._getType(t) !== ae.undefined) {
|
|
24166
24178
|
const r = this._getOrReturnCtx(t);
|
|
@@ -24173,11 +24185,11 @@ class Nf extends _e {
|
|
|
24173
24185
|
return Ht(t.data);
|
|
24174
24186
|
}
|
|
24175
24187
|
}
|
|
24176
|
-
|
|
24188
|
+
_f.create = (e) => new _f({
|
|
24177
24189
|
typeName: Se.ZodVoid,
|
|
24178
24190
|
...Ie(e)
|
|
24179
24191
|
});
|
|
24180
|
-
class cn extends
|
|
24192
|
+
class cn extends Ae {
|
|
24181
24193
|
_parse(t) {
|
|
24182
24194
|
const { ctx: n, status: r } = this._processInputParams(t), o = this._def;
|
|
24183
24195
|
if (n.parsedType !== ae.array)
|
|
@@ -24266,7 +24278,7 @@ function Dr(e) {
|
|
|
24266
24278
|
type: Dr(e.element)
|
|
24267
24279
|
}) : e instanceof Un ? Un.create(Dr(e.unwrap())) : e instanceof Kr ? Kr.create(Dr(e.unwrap())) : e instanceof br ? br.create(e.items.map((t) => Dr(t))) : e;
|
|
24268
24280
|
}
|
|
24269
|
-
class st extends
|
|
24281
|
+
class st extends Ae {
|
|
24270
24282
|
constructor() {
|
|
24271
24283
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
24272
24284
|
}
|
|
@@ -24553,7 +24565,7 @@ st.lazycreate = (e, t) => new st({
|
|
|
24553
24565
|
typeName: Se.ZodObject,
|
|
24554
24566
|
...Ie(t)
|
|
24555
24567
|
});
|
|
24556
|
-
class Ei extends
|
|
24568
|
+
class Ei extends Ae {
|
|
24557
24569
|
_parse(t) {
|
|
24558
24570
|
const { ctx: n } = this._processInputParams(t), r = this._def.options;
|
|
24559
24571
|
function o(s) {
|
|
@@ -24626,14 +24638,14 @@ Ei.create = (e, t) => new Ei({
|
|
|
24626
24638
|
typeName: Se.ZodUnion,
|
|
24627
24639
|
...Ie(t)
|
|
24628
24640
|
});
|
|
24629
|
-
function
|
|
24641
|
+
function Ac(e, t) {
|
|
24630
24642
|
const n = Ln(e), r = Ln(t);
|
|
24631
24643
|
if (e === t)
|
|
24632
24644
|
return { valid: !0, data: e };
|
|
24633
24645
|
if (n === ae.object && r === ae.object) {
|
|
24634
24646
|
const o = Me.objectKeys(t), s = Me.objectKeys(e).filter((a) => o.indexOf(a) !== -1), i = { ...e, ...t };
|
|
24635
24647
|
for (const a of s) {
|
|
24636
|
-
const l =
|
|
24648
|
+
const l = Ac(e[a], t[a]);
|
|
24637
24649
|
if (!l.valid)
|
|
24638
24650
|
return { valid: !1 };
|
|
24639
24651
|
i[a] = l.data;
|
|
@@ -24644,7 +24656,7 @@ function _c(e, t) {
|
|
|
24644
24656
|
return { valid: !1 };
|
|
24645
24657
|
const o = [];
|
|
24646
24658
|
for (let s = 0; s < e.length; s++) {
|
|
24647
|
-
const i = e[s], a = t[s], l =
|
|
24659
|
+
const i = e[s], a = t[s], l = Ac(i, a);
|
|
24648
24660
|
if (!l.valid)
|
|
24649
24661
|
return { valid: !1 };
|
|
24650
24662
|
o.push(l.data);
|
|
@@ -24652,12 +24664,12 @@ function _c(e, t) {
|
|
|
24652
24664
|
return { valid: !0, data: o };
|
|
24653
24665
|
} else return n === ae.date && r === ae.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
|
|
24654
24666
|
}
|
|
24655
|
-
class xi extends
|
|
24667
|
+
class xi extends Ae {
|
|
24656
24668
|
_parse(t) {
|
|
24657
24669
|
const { status: n, ctx: r } = this._processInputParams(t), o = (s, i) => {
|
|
24658
24670
|
if (xf(s) || xf(i))
|
|
24659
24671
|
return xe;
|
|
24660
|
-
const a =
|
|
24672
|
+
const a = Ac(s.value, i.value);
|
|
24661
24673
|
return a.valid ? ((Sf(s) || Sf(i)) && n.dirty(), { status: n.value, value: a.data }) : (se(r, {
|
|
24662
24674
|
code: J.invalid_intersection_types
|
|
24663
24675
|
}), xe);
|
|
@@ -24690,7 +24702,7 @@ xi.create = (e, t, n) => new xi({
|
|
|
24690
24702
|
typeName: Se.ZodIntersection,
|
|
24691
24703
|
...Ie(n)
|
|
24692
24704
|
});
|
|
24693
|
-
class br extends
|
|
24705
|
+
class br extends Ae {
|
|
24694
24706
|
_parse(t) {
|
|
24695
24707
|
const { status: n, ctx: r } = this._processInputParams(t);
|
|
24696
24708
|
if (r.parsedType !== ae.array)
|
|
@@ -24740,7 +24752,7 @@ br.create = (e, t) => {
|
|
|
24740
24752
|
...Ie(t)
|
|
24741
24753
|
});
|
|
24742
24754
|
};
|
|
24743
|
-
class
|
|
24755
|
+
class Nf extends Ae {
|
|
24744
24756
|
get keySchema() {
|
|
24745
24757
|
return this._def.keyType;
|
|
24746
24758
|
}
|
|
@@ -24782,13 +24794,13 @@ class Af extends _e {
|
|
|
24782
24794
|
}
|
|
24783
24795
|
}
|
|
24784
24796
|
}
|
|
24785
|
-
|
|
24797
|
+
Nf.create = (e, t, n) => new Nf({
|
|
24786
24798
|
valueType: t,
|
|
24787
24799
|
keyType: e,
|
|
24788
24800
|
typeName: Se.ZodMap,
|
|
24789
24801
|
...Ie(n)
|
|
24790
24802
|
});
|
|
24791
|
-
class Go extends
|
|
24803
|
+
class Go extends Ae {
|
|
24792
24804
|
_parse(t) {
|
|
24793
24805
|
const { status: n, ctx: r } = this._processInputParams(t);
|
|
24794
24806
|
if (r.parsedType !== ae.set)
|
|
@@ -24852,7 +24864,7 @@ Go.create = (e, t) => new Go({
|
|
|
24852
24864
|
typeName: Se.ZodSet,
|
|
24853
24865
|
...Ie(t)
|
|
24854
24866
|
});
|
|
24855
|
-
class
|
|
24867
|
+
class Af extends Ae {
|
|
24856
24868
|
get schema() {
|
|
24857
24869
|
return this._def.getter();
|
|
24858
24870
|
}
|
|
@@ -24861,12 +24873,12 @@ class _f extends _e {
|
|
|
24861
24873
|
return this._def.getter()._parse({ data: n.data, path: n.path, parent: n });
|
|
24862
24874
|
}
|
|
24863
24875
|
}
|
|
24864
|
-
|
|
24876
|
+
Af.create = (e, t) => new Af({
|
|
24865
24877
|
getter: e,
|
|
24866
24878
|
typeName: Se.ZodLazy,
|
|
24867
24879
|
...Ie(t)
|
|
24868
24880
|
});
|
|
24869
|
-
class Df extends
|
|
24881
|
+
class Df extends Ae {
|
|
24870
24882
|
_parse(t) {
|
|
24871
24883
|
if (t.data !== this._def.value) {
|
|
24872
24884
|
const n = this._getOrReturnCtx(t);
|
|
@@ -24894,7 +24906,7 @@ function Lv(e, t) {
|
|
|
24894
24906
|
...Ie(t)
|
|
24895
24907
|
});
|
|
24896
24908
|
}
|
|
24897
|
-
class qr extends
|
|
24909
|
+
class qr extends Ae {
|
|
24898
24910
|
_parse(t) {
|
|
24899
24911
|
if (typeof t.data != "string") {
|
|
24900
24912
|
const n = this._getOrReturnCtx(t), r = this._def.values;
|
|
@@ -24949,7 +24961,7 @@ class qr extends _e {
|
|
|
24949
24961
|
}
|
|
24950
24962
|
}
|
|
24951
24963
|
qr.create = Lv;
|
|
24952
|
-
class Mf extends
|
|
24964
|
+
class Mf extends Ae {
|
|
24953
24965
|
_parse(t) {
|
|
24954
24966
|
const n = Me.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
|
|
24955
24967
|
if (r.parsedType !== ae.string && r.parsedType !== ae.number) {
|
|
@@ -24979,7 +24991,7 @@ Mf.create = (e, t) => new Mf({
|
|
|
24979
24991
|
typeName: Se.ZodNativeEnum,
|
|
24980
24992
|
...Ie(t)
|
|
24981
24993
|
});
|
|
24982
|
-
class Si extends
|
|
24994
|
+
class Si extends Ae {
|
|
24983
24995
|
unwrap() {
|
|
24984
24996
|
return this._def.type;
|
|
24985
24997
|
}
|
|
@@ -25003,7 +25015,7 @@ Si.create = (e, t) => new Si({
|
|
|
25003
25015
|
typeName: Se.ZodPromise,
|
|
25004
25016
|
...Ie(t)
|
|
25005
25017
|
});
|
|
25006
|
-
class Xr extends
|
|
25018
|
+
class Xr extends Ae {
|
|
25007
25019
|
innerType() {
|
|
25008
25020
|
return this._def.schema;
|
|
25009
25021
|
}
|
|
@@ -25095,7 +25107,7 @@ Xr.createWithPreprocess = (e, t, n) => new Xr({
|
|
|
25095
25107
|
typeName: Se.ZodEffects,
|
|
25096
25108
|
...Ie(n)
|
|
25097
25109
|
});
|
|
25098
|
-
class Un extends
|
|
25110
|
+
class Un extends Ae {
|
|
25099
25111
|
_parse(t) {
|
|
25100
25112
|
return this._getType(t) === ae.undefined ? Ht(void 0) : this._def.innerType._parse(t);
|
|
25101
25113
|
}
|
|
@@ -25108,7 +25120,7 @@ Un.create = (e, t) => new Un({
|
|
|
25108
25120
|
typeName: Se.ZodOptional,
|
|
25109
25121
|
...Ie(t)
|
|
25110
25122
|
});
|
|
25111
|
-
class Kr extends
|
|
25123
|
+
class Kr extends Ae {
|
|
25112
25124
|
_parse(t) {
|
|
25113
25125
|
return this._getType(t) === ae.null ? Ht(null) : this._def.innerType._parse(t);
|
|
25114
25126
|
}
|
|
@@ -25121,7 +25133,7 @@ Kr.create = (e, t) => new Kr({
|
|
|
25121
25133
|
typeName: Se.ZodNullable,
|
|
25122
25134
|
...Ie(t)
|
|
25123
25135
|
});
|
|
25124
|
-
class Dc extends
|
|
25136
|
+
class Dc extends Ae {
|
|
25125
25137
|
_parse(t) {
|
|
25126
25138
|
const { ctx: n } = this._processInputParams(t);
|
|
25127
25139
|
let r = n.data;
|
|
@@ -25141,7 +25153,7 @@ Dc.create = (e, t) => new Dc({
|
|
|
25141
25153
|
defaultValue: typeof t.default == "function" ? t.default : () => t.default,
|
|
25142
25154
|
...Ie(t)
|
|
25143
25155
|
});
|
|
25144
|
-
class Mc extends
|
|
25156
|
+
class Mc extends Ae {
|
|
25145
25157
|
_parse(t) {
|
|
25146
25158
|
const { ctx: n } = this._processInputParams(t), r = {
|
|
25147
25159
|
...n,
|
|
@@ -25184,7 +25196,7 @@ Mc.create = (e, t) => new Mc({
|
|
|
25184
25196
|
catchValue: typeof t.catch == "function" ? t.catch : () => t.catch,
|
|
25185
25197
|
...Ie(t)
|
|
25186
25198
|
});
|
|
25187
|
-
class Lf extends
|
|
25199
|
+
class Lf extends Ae {
|
|
25188
25200
|
_parse(t) {
|
|
25189
25201
|
if (this._getType(t) !== ae.nan) {
|
|
25190
25202
|
const r = this._getOrReturnCtx(t);
|
|
@@ -25201,7 +25213,7 @@ Lf.create = (e) => new Lf({
|
|
|
25201
25213
|
typeName: Se.ZodNaN,
|
|
25202
25214
|
...Ie(e)
|
|
25203
25215
|
});
|
|
25204
|
-
class U2 extends
|
|
25216
|
+
class U2 extends Ae {
|
|
25205
25217
|
_parse(t) {
|
|
25206
25218
|
const { ctx: n } = this._processInputParams(t), r = n.data;
|
|
25207
25219
|
return this._def.type._parse({
|
|
@@ -25214,7 +25226,7 @@ class U2 extends _e {
|
|
|
25214
25226
|
return this._def.type;
|
|
25215
25227
|
}
|
|
25216
25228
|
}
|
|
25217
|
-
class Jl extends
|
|
25229
|
+
class Jl extends Ae {
|
|
25218
25230
|
_parse(t) {
|
|
25219
25231
|
const { status: n, ctx: r } = this._processInputParams(t);
|
|
25220
25232
|
if (r.common.async)
|
|
@@ -25254,7 +25266,7 @@ class Jl extends _e {
|
|
|
25254
25266
|
});
|
|
25255
25267
|
}
|
|
25256
25268
|
}
|
|
25257
|
-
class Lc extends
|
|
25269
|
+
class Lc extends Ae {
|
|
25258
25270
|
_parse(t) {
|
|
25259
25271
|
const n = this._def.innerType._parse(t), r = (o) => (Zr(o) && (o.value = Object.freeze(o.value)), o);
|
|
25260
25272
|
return bi(n) ? n.then((o) => r(o)) : r(n);
|
|
@@ -25340,16 +25352,26 @@ function q2() {
|
|
|
25340
25352
|
}
|
|
25341
25353
|
}), { mutate: E, isPending: x } = Oo({
|
|
25342
25354
|
mutationFn: () => RC({ mobile: a, countryCode: s, type: e.smsType }),
|
|
25343
|
-
onSuccess: (
|
|
25344
|
-
p(
|
|
25355
|
+
onSuccess: (N) => {
|
|
25356
|
+
p(N.lock_time), ur.success("验证码已发送,请注意查收");
|
|
25345
25357
|
}
|
|
25346
25358
|
}), { mutate: w, isPending: R } = Oo({
|
|
25347
25359
|
mutationFn: async () => {
|
|
25348
|
-
const
|
|
25349
|
-
|
|
25360
|
+
const N = await TC({ mobile: a, countryCode: s, captcha: u });
|
|
25361
|
+
p(void 0);
|
|
25362
|
+
const L = {
|
|
25363
|
+
account: N.account,
|
|
25364
|
+
entity: N.channel_info.entity,
|
|
25365
|
+
token: N.channel_info.token,
|
|
25366
|
+
sign: N.channel_info.sign,
|
|
25367
|
+
accid: N.channel_info.entity.openid,
|
|
25368
|
+
extra_data: N.channel_info.extra_data,
|
|
25369
|
+
gaplaySign: N.channel_info.gaplaySign
|
|
25370
|
+
};
|
|
25371
|
+
return n && await n(L), r?.(L), N;
|
|
25350
25372
|
},
|
|
25351
|
-
onError: (
|
|
25352
|
-
o?.(
|
|
25373
|
+
onError: (N) => {
|
|
25374
|
+
o?.(N);
|
|
25353
25375
|
}
|
|
25354
25376
|
});
|
|
25355
25377
|
function S() {
|
|
@@ -25357,19 +25379,19 @@ function q2() {
|
|
|
25357
25379
|
ur.warning("请先阅读并同意用户协议和隐私政策");
|
|
25358
25380
|
return;
|
|
25359
25381
|
}
|
|
25360
|
-
const
|
|
25382
|
+
const N = new FormData(c.current), L = Ff.pick({ phoneNumber: !0 }).safeParse(Object.fromEntries(N));
|
|
25361
25383
|
if (!L.success) {
|
|
25362
25384
|
y(L.error.flatten().fieldErrors);
|
|
25363
25385
|
return;
|
|
25364
25386
|
}
|
|
25365
25387
|
E();
|
|
25366
25388
|
}
|
|
25367
|
-
async function P(
|
|
25368
|
-
if (
|
|
25389
|
+
async function P(N) {
|
|
25390
|
+
if (N.preventDefault(), !g)
|
|
25369
25391
|
return ur.warning("请先阅读并同意用户协议和隐私政策"), {
|
|
25370
25392
|
errors: {}
|
|
25371
25393
|
};
|
|
25372
|
-
const L = new FormData(
|
|
25394
|
+
const L = new FormData(N.currentTarget), M = Ff.safeParse(Object.fromEntries(L));
|
|
25373
25395
|
return M.success ? (w(), {
|
|
25374
25396
|
errors: {}
|
|
25375
25397
|
}) : {
|
|
@@ -25381,8 +25403,8 @@ function q2() {
|
|
|
25381
25403
|
{
|
|
25382
25404
|
ref: c,
|
|
25383
25405
|
errors: v,
|
|
25384
|
-
onSubmit: async (
|
|
25385
|
-
const L = await P(
|
|
25406
|
+
onSubmit: async (N) => {
|
|
25407
|
+
const L = await P(N);
|
|
25386
25408
|
y(L.errors);
|
|
25387
25409
|
},
|
|
25388
25410
|
className: "space-y-5",
|
|
@@ -25397,7 +25419,7 @@ function q2() {
|
|
|
25397
25419
|
placeholder: "请输入手机号码",
|
|
25398
25420
|
autoFocus: !0,
|
|
25399
25421
|
type: "tel",
|
|
25400
|
-
onChange: (
|
|
25422
|
+
onChange: (N) => l(N.currentTarget.value)
|
|
25401
25423
|
}
|
|
25402
25424
|
)
|
|
25403
25425
|
] }),
|
|
@@ -25412,7 +25434,7 @@ function q2() {
|
|
|
25412
25434
|
placeholder: "请输入验证码",
|
|
25413
25435
|
value: u,
|
|
25414
25436
|
type: "number",
|
|
25415
|
-
onValueChange: (
|
|
25437
|
+
onValueChange: (N) => d(N)
|
|
25416
25438
|
}
|
|
25417
25439
|
),
|
|
25418
25440
|
/* @__PURE__ */ A(
|
|
@@ -25440,8 +25462,8 @@ function q2() {
|
|
|
25440
25462
|
children: R ? "登录中..." : e.buttonText || "登录"
|
|
25441
25463
|
}
|
|
25442
25464
|
),
|
|
25443
|
-
/* @__PURE__ */ A(
|
|
25444
|
-
/* @__PURE__ */ A(
|
|
25465
|
+
/* @__PURE__ */ A(_l, {}),
|
|
25466
|
+
/* @__PURE__ */ A(Av, { checked: g, onChange: m })
|
|
25445
25467
|
]
|
|
25446
25468
|
}
|
|
25447
25469
|
);
|
|
@@ -25599,7 +25621,7 @@ function oI({
|
|
|
25599
25621
|
x(), ur.success(L.error);
|
|
25600
25622
|
}
|
|
25601
25623
|
});
|
|
25602
|
-
async function
|
|
25624
|
+
async function N(L) {
|
|
25603
25625
|
L.preventDefault(), R();
|
|
25604
25626
|
}
|
|
25605
25627
|
return vn(() => {
|
|
@@ -25608,7 +25630,7 @@ function oI({
|
|
|
25608
25630
|
}, 0);
|
|
25609
25631
|
}, [p, d]), vn(() => {
|
|
25610
25632
|
E === 0 && w(), b(E !== 120);
|
|
25611
|
-
}, [E, w]), /* @__PURE__ */ ce(Fi, { ref: u, onSubmit:
|
|
25633
|
+
}, [E, w]), /* @__PURE__ */ ce(Fi, { ref: u, onSubmit: N, className: Et("space-y-6", ir.form), autoComplete: "off", children: [
|
|
25612
25634
|
["5199", "5012"].includes(r) ? /* @__PURE__ */ A("p", { className: "text-center text-xs text-white/80", children: "请点击游戏右上角“设置”查看账号ID" }) : null,
|
|
25613
25635
|
/* @__PURE__ */ ce(
|
|
25614
25636
|
wn,
|
|
@@ -25717,7 +25739,7 @@ function oI({
|
|
|
25717
25739
|
}
|
|
25718
25740
|
) }) : null,
|
|
25719
25741
|
["5199", "5012"].includes(r) ? /* @__PURE__ */ A("div", { className: "text-[#f59e9e] text-center text-[11px]", children: "请点击游戏内“邮件”查收口令码,未收到请重启游戏再次查看" }) : null,
|
|
25720
|
-
/* @__PURE__ */ A(
|
|
25742
|
+
/* @__PURE__ */ A(_l, {})
|
|
25721
25743
|
] });
|
|
25722
25744
|
}
|
|
25723
25745
|
const sI = "_modal_1pbx2_2", iI = "_close_1pbx2_8", Vf = {
|
|
@@ -25787,49 +25809,52 @@ function Bf({
|
|
|
25787
25809
|
}
|
|
25788
25810
|
function lI({
|
|
25789
25811
|
loginTypes: e,
|
|
25790
|
-
|
|
25791
|
-
|
|
25792
|
-
|
|
25812
|
+
defaultLoginType: t,
|
|
25813
|
+
gameId: n,
|
|
25814
|
+
onLoginSuccess: r,
|
|
25815
|
+
onLoginError: o
|
|
25793
25816
|
}) {
|
|
25794
25817
|
if (document.querySelector(".login-sdk-container"))
|
|
25795
25818
|
return console.warn("Login component is already active. Multiple instances are not allowed."), { close: () => {
|
|
25796
25819
|
} };
|
|
25797
|
-
const
|
|
25798
|
-
|
|
25799
|
-
const
|
|
25820
|
+
const s = document.createElement("div");
|
|
25821
|
+
s.className = "login-sdk-container", document.body.appendChild(s);
|
|
25822
|
+
const i = jv.createRoot(s), a = () => {
|
|
25800
25823
|
setTimeout(() => {
|
|
25801
|
-
|
|
25824
|
+
i.unmount(), s.remove();
|
|
25802
25825
|
}, 200);
|
|
25803
|
-
},
|
|
25804
|
-
|
|
25826
|
+
}, l = () => {
|
|
25827
|
+
i.render(
|
|
25805
25828
|
/* @__PURE__ */ A(
|
|
25806
25829
|
Bf,
|
|
25807
25830
|
{
|
|
25808
|
-
gameId:
|
|
25831
|
+
gameId: n,
|
|
25809
25832
|
loginTypes: e,
|
|
25833
|
+
defaultLoginType: t,
|
|
25810
25834
|
open: !1,
|
|
25811
|
-
onOpenChange:
|
|
25812
|
-
onLoginSuccess:
|
|
25813
|
-
onLoginError:
|
|
25835
|
+
onOpenChange: c,
|
|
25836
|
+
onLoginSuccess: r,
|
|
25837
|
+
onLoginError: o
|
|
25814
25838
|
}
|
|
25815
25839
|
)
|
|
25816
|
-
),
|
|
25817
|
-
},
|
|
25818
|
-
|
|
25840
|
+
), a();
|
|
25841
|
+
}, c = (u) => {
|
|
25842
|
+
u || l();
|
|
25819
25843
|
};
|
|
25820
|
-
return
|
|
25844
|
+
return i.render(
|
|
25821
25845
|
/* @__PURE__ */ A(
|
|
25822
25846
|
Bf,
|
|
25823
25847
|
{
|
|
25824
|
-
gameId:
|
|
25848
|
+
gameId: n,
|
|
25825
25849
|
loginTypes: e,
|
|
25850
|
+
defaultLoginType: t,
|
|
25826
25851
|
open: !0,
|
|
25827
|
-
onOpenChange:
|
|
25828
|
-
onLoginSuccess:
|
|
25829
|
-
onLoginError:
|
|
25852
|
+
onOpenChange: c,
|
|
25853
|
+
onLoginSuccess: r,
|
|
25854
|
+
onLoginError: o
|
|
25830
25855
|
}
|
|
25831
25856
|
)
|
|
25832
|
-
), { close:
|
|
25857
|
+
), { close: l };
|
|
25833
25858
|
}
|
|
25834
25859
|
const bI = {
|
|
25835
25860
|
login: lI
|