@gup-fe/js-sdk 2.1.2 → 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 +33 -7
- package/dist/js-sdk.js +741 -721
- package/dist/js-sdk.umd.js +16 -16
- package/package.json +4 -4
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
|
}
|
|
@@ -12382,7 +12382,7 @@ function Bh({
|
|
|
12382
12382
|
}, []);
|
|
12383
12383
|
return [a, l];
|
|
12384
12384
|
}
|
|
12385
|
-
function
|
|
12385
|
+
function At(e) {
|
|
12386
12386
|
return Er(e, "base-ui");
|
|
12387
12387
|
}
|
|
12388
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]);
|
|
@@ -12439,9 +12439,9 @@ function ES(e) {
|
|
|
12439
12439
|
overflowX: r.style.overflowX,
|
|
12440
12440
|
scrollBehavior: r.style.scrollBehavior
|
|
12441
12441
|
};
|
|
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),
|
|
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;
|
|
12443
12443
|
if (a = bS(e), a) {
|
|
12444
|
-
n.style.scrollbarGutter = v,
|
|
12444
|
+
n.style.scrollbarGutter = v, N.style.overflowY = "hidden", N.style.overflowX = "hidden";
|
|
12445
12445
|
return;
|
|
12446
12446
|
}
|
|
12447
12447
|
Object.assign(n.style, {
|
|
@@ -12557,8 +12557,8 @@ function RS(e) {
|
|
|
12557
12557
|
Sh(t);
|
|
12558
12558
|
const {
|
|
12559
12559
|
forceUnmount: u
|
|
12560
|
-
} = Ch(o, t), d = ge((
|
|
12561
|
-
const L = Ze(
|
|
12560
|
+
} = Ch(o, t), d = ge((N) => {
|
|
12561
|
+
const L = Ze(N);
|
|
12562
12562
|
return L.preventUnmountOnClose = () => {
|
|
12563
12563
|
t.set("preventUnmountingOnClose", !0);
|
|
12564
12564
|
}, L;
|
|
@@ -12581,10 +12581,10 @@ function RS(e) {
|
|
|
12581
12581
|
touch: "sloppy"
|
|
12582
12582
|
};
|
|
12583
12583
|
},
|
|
12584
|
-
outsidePress(
|
|
12585
|
-
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)
|
|
12586
12586
|
return !1;
|
|
12587
|
-
const L = mt(
|
|
12587
|
+
const L = mt(N);
|
|
12588
12588
|
if (v && !s) {
|
|
12589
12589
|
const M = L;
|
|
12590
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;
|
|
@@ -12599,8 +12599,8 @@ function RS(e) {
|
|
|
12599
12599
|
getFloatingProps: x,
|
|
12600
12600
|
getTriggerProps: w
|
|
12601
12601
|
} = Mi([y, b]);
|
|
12602
|
-
t.useContextCallback("onNestedDialogOpen", (
|
|
12603
|
-
m(
|
|
12602
|
+
t.useContextCallback("onNestedDialogOpen", (N) => {
|
|
12603
|
+
m(N + 1);
|
|
12604
12604
|
}), t.useContextCallback("onNestedDialogClose", () => {
|
|
12605
12605
|
m(0);
|
|
12606
12606
|
}), f.useEffect(() => (n?.onNestedDialogOpen && o && n.onNestedDialogOpen(g), n?.onNestedDialogClose && !o && n.onNestedDialogClose(), () => {
|
|
@@ -12731,7 +12731,7 @@ const Kh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12731
12731
|
const {
|
|
12732
12732
|
getButtonProps: d,
|
|
12733
12733
|
buttonRef: h
|
|
12734
|
-
} =
|
|
12734
|
+
} = Ni({
|
|
12735
12735
|
disabled: s,
|
|
12736
12736
|
native: i
|
|
12737
12737
|
});
|
|
@@ -12754,7 +12754,7 @@ const Jh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12754
12754
|
...i
|
|
12755
12755
|
} = t, {
|
|
12756
12756
|
store: a
|
|
12757
|
-
} = Jn(), l =
|
|
12757
|
+
} = Jn(), l = At(s);
|
|
12758
12758
|
return a.useSyncedValueWithCleanup("descriptionElementId", l), qe("p", t, {
|
|
12759
12759
|
ref: n,
|
|
12760
12760
|
props: [{
|
|
@@ -12765,23 +12765,23 @@ const Jh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12765
12765
|
process.env.NODE_ENV !== "production" && (Jh.displayName = "DialogDescription");
|
|
12766
12766
|
let IS = /* @__PURE__ */ (function(e) {
|
|
12767
12767
|
return e.nestedDialogs = "--nested-dialogs", e;
|
|
12768
|
-
})({}),
|
|
12768
|
+
})({}), _S = (function(e) {
|
|
12769
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;
|
|
12770
12770
|
})({});
|
|
12771
12771
|
const vl = /* @__PURE__ */ f.createContext(void 0);
|
|
12772
12772
|
process.env.NODE_ENV !== "production" && (vl.displayName = "DialogPortalContext");
|
|
12773
|
-
function
|
|
12773
|
+
function NS() {
|
|
12774
12774
|
const e = f.useContext(vl);
|
|
12775
12775
|
if (e === void 0)
|
|
12776
12776
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." : lt(26));
|
|
12777
12777
|
return e;
|
|
12778
12778
|
}
|
|
12779
|
-
const
|
|
12779
|
+
const AS = {
|
|
12780
12780
|
...oo,
|
|
12781
12781
|
...wr,
|
|
12782
12782
|
nestedDialogOpen(e) {
|
|
12783
12783
|
return e ? {
|
|
12784
|
-
[
|
|
12784
|
+
[_S.nestedDialogOpen]: ""
|
|
12785
12785
|
} : null;
|
|
12786
12786
|
}
|
|
12787
12787
|
}, Qh = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
@@ -12794,7 +12794,7 @@ const _S = {
|
|
|
12794
12794
|
} = t, {
|
|
12795
12795
|
store: l
|
|
12796
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");
|
|
12797
|
-
|
|
12797
|
+
NS(), no({
|
|
12798
12798
|
open: y,
|
|
12799
12799
|
ref: l.context.popupRef,
|
|
12800
12800
|
onComplete() {
|
|
@@ -12825,7 +12825,7 @@ const _S = {
|
|
|
12825
12825
|
}
|
|
12826
12826
|
}, a],
|
|
12827
12827
|
ref: [n, l.context.popupRef, l.useStateSetter("popupElement")],
|
|
12828
|
-
stateAttributesMapping:
|
|
12828
|
+
stateAttributesMapping: AS
|
|
12829
12829
|
});
|
|
12830
12830
|
return /* @__PURE__ */ A(dh, {
|
|
12831
12831
|
context: d,
|
|
@@ -12904,7 +12904,7 @@ const tm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12904
12904
|
...i
|
|
12905
12905
|
} = t, {
|
|
12906
12906
|
store: a
|
|
12907
|
-
} = Jn(), l =
|
|
12907
|
+
} = Jn(), l = At(s);
|
|
12908
12908
|
return a.useSyncedValueWithCleanup("titleElementId", l), qe("h2", t, {
|
|
12909
12909
|
ref: n,
|
|
12910
12910
|
props: [{
|
|
@@ -12926,7 +12926,7 @@ const nm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12926
12926
|
} = t, d = Jn(!0), h = c?.store ?? d?.store;
|
|
12927
12927
|
if (!h)
|
|
12928
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));
|
|
12929
|
-
const p =
|
|
12929
|
+
const p = At(a), g = h.useState("floatingRootContext"), m = h.useState("isOpenedByTrigger", p), v = f.useRef(null), {
|
|
12930
12930
|
registerTrigger: y,
|
|
12931
12931
|
isMountedByThisTrigger: b
|
|
12932
12932
|
} = xh(p, v, h, {
|
|
@@ -12934,7 +12934,7 @@ const nm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12934
12934
|
}), {
|
|
12935
12935
|
getButtonProps: E,
|
|
12936
12936
|
buttonRef: x
|
|
12937
|
-
} =
|
|
12937
|
+
} = Ni({
|
|
12938
12938
|
disabled: s,
|
|
12939
12939
|
native: i
|
|
12940
12940
|
}), w = fh(g, {
|
|
@@ -12950,7 +12950,7 @@ const nm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
12950
12950
|
[tl]: "",
|
|
12951
12951
|
id: p
|
|
12952
12952
|
}, u, E],
|
|
12953
|
-
stateAttributesMapping:
|
|
12953
|
+
stateAttributesMapping: Ah
|
|
12954
12954
|
});
|
|
12955
12955
|
});
|
|
12956
12956
|
process.env.NODE_ENV !== "production" && (nm.displayName = "DialogTrigger");
|
|
@@ -13124,7 +13124,7 @@ function MS(e = {}) {
|
|
|
13124
13124
|
} = e, {
|
|
13125
13125
|
controlId: o,
|
|
13126
13126
|
registerControlId: s
|
|
13127
|
-
} = 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(() => {
|
|
13128
13128
|
!c.current || s === gt || (c.current = !1, s(l.current, void 0));
|
|
13129
13129
|
});
|
|
13130
13130
|
return be(() => {
|
|
@@ -13172,7 +13172,7 @@ function LS() {
|
|
|
13172
13172
|
return f.useContext(im);
|
|
13173
13173
|
}
|
|
13174
13174
|
function $S(e, t, n, r = !0, o) {
|
|
13175
|
-
const [s, i] = f.useState(), a =
|
|
13175
|
+
const [s, i] = f.useState(), a = At(o ? `${o}-label` : void 0), l = e ?? t ?? s;
|
|
13176
13176
|
return be(() => {
|
|
13177
13177
|
const c = e || t || !r ? void 0 : FS(n.current, a);
|
|
13178
13178
|
s !== c && i(c);
|
|
@@ -13240,10 +13240,10 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13240
13240
|
disabled: R,
|
|
13241
13241
|
name: S,
|
|
13242
13242
|
setDirty: P,
|
|
13243
|
-
setFilled:
|
|
13243
|
+
setFilled: N,
|
|
13244
13244
|
setFocused: L,
|
|
13245
13245
|
setTouched: M,
|
|
13246
|
-
state:
|
|
13246
|
+
state: _,
|
|
13247
13247
|
validationMode: O,
|
|
13248
13248
|
validityData: k,
|
|
13249
13249
|
shouldValidateOnChange: C,
|
|
@@ -13253,7 +13253,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13253
13253
|
controlId: $,
|
|
13254
13254
|
registerControlId: F,
|
|
13255
13255
|
getDescriptionProps: W
|
|
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 =
|
|
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();
|
|
13257
13257
|
let te = $;
|
|
13258
13258
|
Z ? te = p ? ne : `${z.id}-${j}` : l && (te = l);
|
|
13259
13259
|
let Q = {};
|
|
@@ -13266,10 +13266,10 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13266
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), {
|
|
13267
13267
|
getButtonProps: he,
|
|
13268
13268
|
buttonRef: Ce
|
|
13269
|
-
} =
|
|
13269
|
+
} = Ni({
|
|
13270
13270
|
disabled: q,
|
|
13271
13271
|
native: E
|
|
13272
|
-
}),
|
|
13272
|
+
}), Ne = V?.validation ?? I, [Fe, _e] = Bh({
|
|
13273
13273
|
controlled: j && re && !p ? re.includes(j) : X,
|
|
13274
13274
|
default: j && ee && !p ? ee.includes(j) : s,
|
|
13275
13275
|
name: "Checkbox",
|
|
@@ -13285,17 +13285,17 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13285
13285
|
}, [F, B]), om({
|
|
13286
13286
|
enabled: !V,
|
|
13287
13287
|
id: Y,
|
|
13288
|
-
commit:
|
|
13288
|
+
commit: Ne.commit,
|
|
13289
13289
|
value: Fe,
|
|
13290
13290
|
controlRef: G,
|
|
13291
13291
|
name: H,
|
|
13292
13292
|
getValue: () => Fe
|
|
13293
13293
|
});
|
|
13294
|
-
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);
|
|
13295
13295
|
be(() => {
|
|
13296
|
-
we.current && (we.current.indeterminate = U, Fe &&
|
|
13297
|
-
}, [Fe, U,
|
|
13298
|
-
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));
|
|
13299
13299
|
});
|
|
13300
13300
|
const Be = Ur(
|
|
13301
13301
|
{
|
|
@@ -13316,7 +13316,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13316
13316
|
if (ye.nativeEvent.defaultPrevented)
|
|
13317
13317
|
return;
|
|
13318
13318
|
const Ge = ye.target.checked, ie = Ze(ol, ye.nativeEvent);
|
|
13319
|
-
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)) {
|
|
13320
13320
|
const ve = Ge ? [...re, j] : re.filter((Te) => Te !== j);
|
|
13321
13321
|
de(ve, ie);
|
|
13322
13322
|
}
|
|
@@ -13331,7 +13331,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13331
13331
|
value: (V ? Fe && b : b) || ""
|
|
13332
13332
|
} : rt,
|
|
13333
13333
|
W,
|
|
13334
|
-
V ?
|
|
13334
|
+
V ? Ne.getValidationProps : Ne.getInputValidationProps
|
|
13335
13335
|
), et = Z ? !!X : Fe, ut = Z && U || c;
|
|
13336
13336
|
f.useEffect(() => {
|
|
13337
13337
|
if (!z || !j)
|
|
@@ -13342,13 +13342,13 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13342
13342
|
};
|
|
13343
13343
|
}, [z, q, j]);
|
|
13344
13344
|
const St = f.useMemo(() => ({
|
|
13345
|
-
...
|
|
13345
|
+
..._,
|
|
13346
13346
|
checked: et,
|
|
13347
13347
|
disabled: q,
|
|
13348
13348
|
readOnly: g,
|
|
13349
13349
|
required: v,
|
|
13350
13350
|
indeterminate: ut
|
|
13351
|
-
}), [
|
|
13351
|
+
}), [_, et, q, g, v, ut]), kt = sm(St), Lt = qe("span", t, {
|
|
13352
13352
|
state: St,
|
|
13353
13353
|
ref: [Ce, G, n, V?.registerControlRef],
|
|
13354
13354
|
props: [{
|
|
@@ -13364,7 +13364,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13364
13364
|
},
|
|
13365
13365
|
onBlur() {
|
|
13366
13366
|
const ye = we.current;
|
|
13367
|
-
ye && (M(!0), L(!1), O === "onBlur" &&
|
|
13367
|
+
ye && (M(!0), L(!1), O === "onBlur" && Ne.commit(V ? re : ye.checked));
|
|
13368
13368
|
},
|
|
13369
13369
|
onClick(ye) {
|
|
13370
13370
|
g || q || (ye.preventDefault(), we.current?.dispatchEvent(new PointerEvent("click", {
|
|
@@ -13375,7 +13375,7 @@ const jS = "data-parent", Sl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13375
13375
|
metaKey: ye.metaKey
|
|
13376
13376
|
})));
|
|
13377
13377
|
}
|
|
13378
|
-
}, W,
|
|
13378
|
+
}, W, Ne.getValidationProps, x, pe, he],
|
|
13379
13379
|
stateAttributesMapping: kt
|
|
13380
13380
|
});
|
|
13381
13381
|
return /* @__PURE__ */ ce(xl.Provider, {
|
|
@@ -13425,7 +13425,7 @@ const Cl = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13425
13425
|
});
|
|
13426
13426
|
process.env.NODE_ENV !== "production" && (Cl.displayName = "CheckboxIndicator");
|
|
13427
13427
|
function HS(e, t) {
|
|
13428
|
-
const n =
|
|
13428
|
+
const n = At(e);
|
|
13429
13429
|
return be(() => (t(n), () => {
|
|
13430
13430
|
t(void 0);
|
|
13431
13431
|
}), [n, t]), n;
|
|
@@ -13543,7 +13543,7 @@ function ZS(e = !1) {
|
|
|
13543
13543
|
return t;
|
|
13544
13544
|
}
|
|
13545
13545
|
const um = function(t) {
|
|
13546
|
-
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()), {
|
|
13547
13547
|
messageIds: d
|
|
13548
13548
|
} = Qn(), h = ge((m, v) => {
|
|
13549
13549
|
const y = u.current;
|
|
@@ -13653,19 +13653,19 @@ function XS(e) {
|
|
|
13653
13653
|
}
|
|
13654
13654
|
g.clear();
|
|
13655
13655
|
let S = null, P = [];
|
|
13656
|
-
const
|
|
13656
|
+
const N = R(w);
|
|
13657
13657
|
let L;
|
|
13658
13658
|
const M = d();
|
|
13659
13659
|
if (w.validationMessage && !M)
|
|
13660
13660
|
L = w.validationMessage, P = [w.validationMessage];
|
|
13661
13661
|
else {
|
|
13662
13662
|
const O = Array.from(t.current.fields.values()).reduce((C, I) => (I.name && (C[I.name] = I.getValue()), C), {}), k = o(E, O);
|
|
13663
|
-
typeof k == "object" && k !== null && "then" in k ? S = await k : S = k, S !== null ? (
|
|
13664
|
-
`))) : 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));
|
|
13665
13665
|
}
|
|
13666
|
-
const
|
|
13666
|
+
const _ = {
|
|
13667
13667
|
value: E,
|
|
13668
|
-
state:
|
|
13668
|
+
state: N,
|
|
13669
13669
|
error: L ?? (Array.isArray(S) ? S[0] : S ?? ""),
|
|
13670
13670
|
errors: P,
|
|
13671
13671
|
initialValue: s.initialValue
|
|
@@ -13675,10 +13675,10 @@ function XS(e) {
|
|
|
13675
13675
|
O && t.current.fields.set(h, {
|
|
13676
13676
|
...O,
|
|
13677
13677
|
// Keep Form-level errors part of overall field validity for submit blocking/focus logic.
|
|
13678
|
-
...hc(
|
|
13678
|
+
...hc(_, a)
|
|
13679
13679
|
});
|
|
13680
13680
|
}
|
|
13681
|
-
r(
|
|
13681
|
+
r(_);
|
|
13682
13682
|
}), y = f.useCallback((E = {}) => Ur(p, c.valid === !1 ? {
|
|
13683
13683
|
"aria-invalid": !0
|
|
13684
13684
|
} : rt, E), [p, c.valid]), b = f.useCallback((E = {}) => Ur({
|
|
@@ -13726,7 +13726,7 @@ const dm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13726
13726
|
...y
|
|
13727
13727
|
} = t, {
|
|
13728
13728
|
disabled: b
|
|
13729
|
-
} = 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) => {
|
|
13730
13730
|
g === void 0 && (ne && (C.current = !0), P(ne));
|
|
13731
13731
|
}), D = ge((ne) => {
|
|
13732
13732
|
m === void 0 && R(ne);
|
|
@@ -13741,9 +13741,9 @@ const dm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13741
13741
|
touched: k,
|
|
13742
13742
|
dirty: O,
|
|
13743
13743
|
valid: z,
|
|
13744
|
-
filled:
|
|
13744
|
+
filled: N,
|
|
13745
13745
|
focused: M
|
|
13746
|
-
}), [x, k, O, z,
|
|
13746
|
+
}), [x, k, O, z, N, M]), q = XS({
|
|
13747
13747
|
setValidityData: V,
|
|
13748
13748
|
validate: E,
|
|
13749
13749
|
validityData: W,
|
|
@@ -13769,10 +13769,10 @@ const dm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13769
13769
|
setTouched: D,
|
|
13770
13770
|
dirty: O,
|
|
13771
13771
|
setDirty: I,
|
|
13772
|
-
filled:
|
|
13772
|
+
filled: N,
|
|
13773
13773
|
setFilled: L,
|
|
13774
13774
|
focused: M,
|
|
13775
|
-
setFocused:
|
|
13775
|
+
setFocused: _,
|
|
13776
13776
|
validate: E,
|
|
13777
13777
|
validationMode: u,
|
|
13778
13778
|
validationDebounceTime: c,
|
|
@@ -13780,7 +13780,7 @@ const dm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13780
13780
|
state: Z,
|
|
13781
13781
|
markedDirtyRef: C,
|
|
13782
13782
|
validation: q
|
|
13783
|
-
}), [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, {
|
|
13784
13784
|
ref: n,
|
|
13785
13785
|
state: Z,
|
|
13786
13786
|
props: y,
|
|
@@ -13845,7 +13845,7 @@ const KS = {
|
|
|
13845
13845
|
className: s,
|
|
13846
13846
|
match: i,
|
|
13847
13847
|
...a
|
|
13848
|
-
} = t, l =
|
|
13848
|
+
} = t, l = At(o), {
|
|
13849
13849
|
validityData: c,
|
|
13850
13850
|
state: u,
|
|
13851
13851
|
name: d
|
|
@@ -13863,17 +13863,17 @@ const KS = {
|
|
|
13863
13863
|
} = fl(m);
|
|
13864
13864
|
be(() => {
|
|
13865
13865
|
if (!(!m || !l))
|
|
13866
|
-
return h((
|
|
13867
|
-
h((
|
|
13866
|
+
return h((_) => _.concat(l)), () => {
|
|
13867
|
+
h((_) => _.filter((O) => O !== l));
|
|
13868
13868
|
};
|
|
13869
13869
|
}, [m, l, h]);
|
|
13870
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", {
|
|
13871
|
-
children: c.errors.map((
|
|
13872
|
-
children:
|
|
13873
|
-
},
|
|
13871
|
+
children: c.errors.map((_) => /* @__PURE__ */ A("li", {
|
|
13872
|
+
children: _
|
|
13873
|
+
}, _))
|
|
13874
13874
|
}) : c.error);
|
|
13875
|
-
let
|
|
13876
|
-
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({
|
|
13877
13877
|
open: m,
|
|
13878
13878
|
ref: E,
|
|
13879
13879
|
onComplete() {
|
|
@@ -13919,7 +13919,7 @@ const mr = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13919
13919
|
setFilled: x,
|
|
13920
13920
|
validationMode: w,
|
|
13921
13921
|
validation: R
|
|
13922
|
-
} = Qo(), S = m || l, P = g ?? i,
|
|
13922
|
+
} = Qo(), S = m || l, P = g ?? i, N = {
|
|
13923
13923
|
...p,
|
|
13924
13924
|
disabled: S
|
|
13925
13925
|
}, {
|
|
@@ -13931,9 +13931,9 @@ const mr = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13931
13931
|
const D = a != null;
|
|
13932
13932
|
R.inputRef.current?.value || D && a !== "" ? x(!0) : D && a === "" && x(!1);
|
|
13933
13933
|
}, [R.inputRef, x, a]);
|
|
13934
|
-
const
|
|
13934
|
+
const _ = f.useRef(null);
|
|
13935
13935
|
be(() => {
|
|
13936
|
-
d &&
|
|
13936
|
+
d && _.current === Vt(De(_.current)) && E(!0);
|
|
13937
13937
|
}, [d, E]);
|
|
13938
13938
|
const [O] = Bh({
|
|
13939
13939
|
controlled: a,
|
|
@@ -13949,8 +13949,8 @@ const mr = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
13949
13949
|
getValue: () => R.inputRef.current?.value,
|
|
13950
13950
|
controlRef: R.inputRef
|
|
13951
13951
|
}), qe("input", t, {
|
|
13952
|
-
ref: [n,
|
|
13953
|
-
state:
|
|
13952
|
+
ref: [n, _],
|
|
13953
|
+
state: N,
|
|
13954
13954
|
props: [{
|
|
13955
13955
|
id: M,
|
|
13956
13956
|
disabled: S,
|
|
@@ -14033,7 +14033,7 @@ const Fi = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14033
14033
|
w.preventDefault(), g(S[0].controlRef.current);
|
|
14034
14034
|
else if (h.current = !0, a?.(w), l) {
|
|
14035
14035
|
w.preventDefault();
|
|
14036
|
-
const P = R.reduce((
|
|
14036
|
+
const P = R.reduce((N, L) => (L.name && (N[L.name] = L.getValue()), N), {});
|
|
14037
14037
|
l(P, TE(ol, w.nativeEvent));
|
|
14038
14038
|
}
|
|
14039
14039
|
}
|
|
@@ -14215,14 +14215,14 @@ function gd({
|
|
|
14215
14215
|
}), R = Ph(x), {
|
|
14216
14216
|
getReferenceProps: S,
|
|
14217
14217
|
getFloatingProps: P,
|
|
14218
|
-
getTriggerProps:
|
|
14219
|
-
} = 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]);
|
|
14220
14220
|
u.useSyncedValues({
|
|
14221
14221
|
modal: i,
|
|
14222
14222
|
openMethod: m,
|
|
14223
14223
|
activeTriggerProps: L,
|
|
14224
14224
|
inactiveTriggerProps: M,
|
|
14225
|
-
popupProps:
|
|
14225
|
+
popupProps: _,
|
|
14226
14226
|
floatingRootContext: x,
|
|
14227
14227
|
nested: xr() != null
|
|
14228
14228
|
});
|
|
@@ -14261,7 +14261,7 @@ const tC = 300, fm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14261
14261
|
} = t, g = On(!0), m = a?.store ?? g?.store;
|
|
14262
14262
|
if (!m)
|
|
14263
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));
|
|
14264
|
-
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), {
|
|
14265
14265
|
registerTrigger: w,
|
|
14266
14266
|
isMountedByThisTrigger: R
|
|
14267
14267
|
} = xh(v, x, m, {
|
|
@@ -14269,8 +14269,8 @@ const tC = 300, fm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14269
14269
|
disabled: s,
|
|
14270
14270
|
openOnHover: c,
|
|
14271
14271
|
closeDelay: d
|
|
14272
|
-
}), S = m.useState("openChangeReason"), P = m.useState("stickIfOpen"),
|
|
14273
|
-
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),
|
|
14274
14274
|
mouseOnly: !0,
|
|
14275
14275
|
move: !1,
|
|
14276
14276
|
handleClose: Hx(),
|
|
@@ -14283,23 +14283,23 @@ const tC = 300, fm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14283
14283
|
}), M = fh(b, {
|
|
14284
14284
|
enabled: b != null,
|
|
14285
14285
|
stickIfOpen: P
|
|
14286
|
-
}),
|
|
14286
|
+
}), _ = Mi([M]), O = m.useState("triggerProps", R), k = {
|
|
14287
14287
|
disabled: s,
|
|
14288
14288
|
open: E
|
|
14289
14289
|
}, {
|
|
14290
14290
|
getButtonProps: C,
|
|
14291
14291
|
buttonRef: I
|
|
14292
|
-
} =
|
|
14292
|
+
} = Ni({
|
|
14293
14293
|
disabled: s,
|
|
14294
14294
|
native: i
|
|
14295
14295
|
}), D = f.useMemo(() => ({
|
|
14296
14296
|
open(V) {
|
|
14297
|
-
return V && S === Gr ? nS.open(V) :
|
|
14297
|
+
return V && S === Gr ? nS.open(V) : Ah.open(V);
|
|
14298
14298
|
}
|
|
14299
14299
|
}), [S]), T = qe("button", t, {
|
|
14300
14300
|
state: k,
|
|
14301
14301
|
ref: [I, n, w, x],
|
|
14302
|
-
props: [
|
|
14302
|
+
props: [_.getReferenceProps(), L, O, {
|
|
14303
14303
|
[tl]: "",
|
|
14304
14304
|
id: v
|
|
14305
14305
|
}, p, C],
|
|
@@ -14391,7 +14391,7 @@ const mm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14391
14391
|
...y
|
|
14392
14392
|
} = t, {
|
|
14393
14393
|
store: b
|
|
14394
|
-
} = 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({
|
|
14395
14395
|
anchor: s,
|
|
14396
14396
|
floatingRootContext: w,
|
|
14397
14397
|
positionMethod: i,
|
|
@@ -14440,7 +14440,7 @@ const mm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14440
14440
|
side: $.side,
|
|
14441
14441
|
align: $.align,
|
|
14442
14442
|
anchorHidden: $.anchorHidden,
|
|
14443
|
-
instant:
|
|
14443
|
+
instant: _
|
|
14444
14444
|
}, V = f.useCallback((Z) => {
|
|
14445
14445
|
b.set("positionerElement", Z);
|
|
14446
14446
|
}, [b]), z = qe("div", t, {
|
|
@@ -14454,8 +14454,8 @@ const mm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14454
14454
|
children: [R && L === !0 && P !== Tt && /* @__PURE__ */ A(yl, {
|
|
14455
14455
|
ref: b.context.internalBackdropRef,
|
|
14456
14456
|
inert: nl(!S),
|
|
14457
|
-
cutout:
|
|
14458
|
-
}), /* @__PURE__ */ A(
|
|
14457
|
+
cutout: N
|
|
14458
|
+
}), /* @__PURE__ */ A(AE, {
|
|
14459
14459
|
id: x,
|
|
14460
14460
|
children: z
|
|
14461
14461
|
})]
|
|
@@ -14508,15 +14508,15 @@ const sC = {
|
|
|
14508
14508
|
p && l.context.onOpenChangeComplete?.(!0);
|
|
14509
14509
|
}
|
|
14510
14510
|
});
|
|
14511
|
-
const
|
|
14511
|
+
const N = l.useState("disabled"), L = l.useState("openOnHover"), M = l.useState("closeDelay");
|
|
14512
14512
|
$x(P, {
|
|
14513
|
-
enabled: L && !
|
|
14513
|
+
enabled: L && !N,
|
|
14514
14514
|
closeDelay: M
|
|
14515
14515
|
});
|
|
14516
|
-
function
|
|
14516
|
+
function _(T) {
|
|
14517
14517
|
return T === "touch" ? l.context.popupRef.current : !0;
|
|
14518
14518
|
}
|
|
14519
|
-
const O = s === void 0 ?
|
|
14519
|
+
const O = s === void 0 ? _ : s, k = {
|
|
14520
14520
|
open: p,
|
|
14521
14521
|
side: c.side,
|
|
14522
14522
|
align: c.align,
|
|
@@ -14621,7 +14621,7 @@ const wm = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14621
14621
|
...s
|
|
14622
14622
|
} = t, {
|
|
14623
14623
|
store: i
|
|
14624
|
-
} = On(), a =
|
|
14624
|
+
} = On(), a = At(s.id);
|
|
14625
14625
|
return be(() => (i.set("titleElementId", a), () => {
|
|
14626
14626
|
i.set("titleElementId", void 0);
|
|
14627
14627
|
}), [i, a]), qe("h2", t, {
|
|
@@ -14639,7 +14639,7 @@ const Em = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
14639
14639
|
...s
|
|
14640
14640
|
} = t, {
|
|
14641
14641
|
store: i
|
|
14642
|
-
} = On(), a =
|
|
14642
|
+
} = On(), a = At(s.id);
|
|
14643
14643
|
return be(() => (i.set("descriptionElementId", a), () => {
|
|
14644
14644
|
i.set("descriptionElementId", void 0);
|
|
14645
14645
|
}), [i, a]), qe("p", t, {
|
|
@@ -14844,7 +14844,7 @@ function kC(e) {
|
|
|
14844
14844
|
}
|
|
14845
14845
|
);
|
|
14846
14846
|
}
|
|
14847
|
-
function
|
|
14847
|
+
function _l() {
|
|
14848
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 = [];
|
|
14849
14849
|
return i && n !== Ye.GIANT && a.push({
|
|
14850
14850
|
type: Ye.GIANT,
|
|
@@ -14923,19 +14923,19 @@ function ao(e, t) {
|
|
|
14923
14923
|
const n = f.useRef(yd);
|
|
14924
14924
|
return n.current === yd && (n.current = e(t)), n;
|
|
14925
14925
|
}
|
|
14926
|
-
const wa = f[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)],
|
|
14926
|
+
const wa = f[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0, -3)], _C = (
|
|
14927
14927
|
// React 17 doesn't have useInsertionEffect.
|
|
14928
14928
|
wa && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
|
|
14929
14929
|
wa !== f.useLayoutEffect ? wa : (e) => e()
|
|
14930
14930
|
);
|
|
14931
14931
|
function Qe(e) {
|
|
14932
|
-
const t = ao(
|
|
14933
|
-
return t.next = e,
|
|
14932
|
+
const t = ao(NC).current;
|
|
14933
|
+
return t.next = e, _C(t.effect), t.trampoline;
|
|
14934
14934
|
}
|
|
14935
|
-
function
|
|
14935
|
+
function NC() {
|
|
14936
14936
|
const e = {
|
|
14937
14937
|
next: void 0,
|
|
14938
|
-
callback:
|
|
14938
|
+
callback: AC,
|
|
14939
14939
|
trampoline: (...t) => e.callback?.(...t),
|
|
14940
14940
|
effect: () => {
|
|
14941
14941
|
e.callback = e.next;
|
|
@@ -14943,7 +14943,7 @@ function AC() {
|
|
|
14943
14943
|
};
|
|
14944
14944
|
return e;
|
|
14945
14945
|
}
|
|
14946
|
-
function
|
|
14946
|
+
function AC() {
|
|
14947
14947
|
if (process.env.NODE_ENV !== "production")
|
|
14948
14948
|
throw new Error("Base UI: Cannot call an event handler while rendering.");
|
|
14949
14949
|
}
|
|
@@ -15177,7 +15177,7 @@ function Bi() {
|
|
|
15177
15177
|
return typeof window < "u";
|
|
15178
15178
|
}
|
|
15179
15179
|
function er(e) {
|
|
15180
|
-
return
|
|
15180
|
+
return _m(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
15181
15181
|
}
|
|
15182
15182
|
function vt(e) {
|
|
15183
15183
|
var t;
|
|
@@ -15185,9 +15185,9 @@ function vt(e) {
|
|
|
15185
15185
|
}
|
|
15186
15186
|
function fn(e) {
|
|
15187
15187
|
var t;
|
|
15188
|
-
return (t = (
|
|
15188
|
+
return (t = (_m(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
15189
15189
|
}
|
|
15190
|
-
function
|
|
15190
|
+
function _m(e) {
|
|
15191
15191
|
return Bi() ? e instanceof Node || e instanceof vt(e).Node : !1;
|
|
15192
15192
|
}
|
|
15193
15193
|
function je(e) {
|
|
@@ -15224,14 +15224,14 @@ function Wi(e) {
|
|
|
15224
15224
|
});
|
|
15225
15225
|
}
|
|
15226
15226
|
const nR = ["transform", "translate", "scale", "rotate", "perspective"], rR = ["transform", "translate", "scale", "rotate", "perspective", "filter"], oR = ["paint", "layout", "strict", "content"];
|
|
15227
|
-
function
|
|
15227
|
+
function Nl(e) {
|
|
15228
15228
|
const t = ji(), n = je(e) ? Wt(e) : e;
|
|
15229
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));
|
|
15230
15230
|
}
|
|
15231
15231
|
function sR(e) {
|
|
15232
15232
|
let t = Cn(e);
|
|
15233
15233
|
for (; pt(t) && !En(t); ) {
|
|
15234
|
-
if (
|
|
15234
|
+
if (Nl(t))
|
|
15235
15235
|
return t;
|
|
15236
15236
|
if (Wi(t))
|
|
15237
15237
|
return null;
|
|
@@ -15270,14 +15270,14 @@ function Cn(e) {
|
|
|
15270
15270
|
);
|
|
15271
15271
|
return yc(t) ? t.host : t;
|
|
15272
15272
|
}
|
|
15273
|
-
function
|
|
15273
|
+
function Nm(e) {
|
|
15274
15274
|
const t = Cn(e);
|
|
15275
|
-
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);
|
|
15276
15276
|
}
|
|
15277
15277
|
function jn(e, t, n) {
|
|
15278
15278
|
var r;
|
|
15279
15279
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
15280
|
-
const o =
|
|
15280
|
+
const o = Nm(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = vt(o);
|
|
15281
15281
|
if (s) {
|
|
15282
15282
|
const a = bc(i);
|
|
15283
15283
|
return t.concat(i, i.visualViewport || [], ts(o) ? o : [], a && n ? jn(a) : []);
|
|
@@ -15287,11 +15287,11 @@ function jn(e, t, n) {
|
|
|
15287
15287
|
function bc(e) {
|
|
15288
15288
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
15289
15289
|
}
|
|
15290
|
-
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 = (
|
|
15291
15291
|
// iPads can claim to be MacIntel
|
|
15292
15292
|
Ea.platform === "MacIntel" && Ea.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(Ea.platform)
|
|
15293
|
-
), cR = ns && /apple/i.test(navigator.vendor), wc = ns && /android/i.test(
|
|
15294
|
-
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;
|
|
15295
15295
|
const lR = Dm.includes("jsdom/");
|
|
15296
15296
|
function uR() {
|
|
15297
15297
|
if (typeof navigator > "u")
|
|
@@ -15324,7 +15324,7 @@ function fR() {
|
|
|
15324
15324
|
return e?.platform ? e.platform : navigator.platform;
|
|
15325
15325
|
}
|
|
15326
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])";
|
|
15327
|
-
function
|
|
15327
|
+
function Ar(e) {
|
|
15328
15328
|
let t = e.activeElement;
|
|
15329
15329
|
for (; t?.shadowRoot?.activeElement != null; )
|
|
15330
15330
|
t = t.shadowRoot.activeElement;
|
|
@@ -15400,7 +15400,7 @@ function Lo(e, t) {
|
|
|
15400
15400
|
const n = ["mouse", "pen"];
|
|
15401
15401
|
return t || n.push("", void 0), n.includes(e);
|
|
15402
15402
|
}
|
|
15403
|
-
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) => ({
|
|
15404
15404
|
x: e,
|
|
15405
15405
|
y: e
|
|
15406
15406
|
}), wR = {
|
|
@@ -15413,7 +15413,7 @@ const bR = ["top", "right", "bottom", "left"], zn = Math.min, Nt = Math.max, ui
|
|
|
15413
15413
|
end: "start"
|
|
15414
15414
|
};
|
|
15415
15415
|
function Sc(e, t, n) {
|
|
15416
|
-
return
|
|
15416
|
+
return _t(e, zn(t, n));
|
|
15417
15417
|
}
|
|
15418
15418
|
function Rn(e, t) {
|
|
15419
15419
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -15424,7 +15424,7 @@ function jt(e) {
|
|
|
15424
15424
|
function tr(e) {
|
|
15425
15425
|
return e.split("-")[1];
|
|
15426
15426
|
}
|
|
15427
|
-
function
|
|
15427
|
+
function Al(e) {
|
|
15428
15428
|
return e === "x" ? "y" : "x";
|
|
15429
15429
|
}
|
|
15430
15430
|
function Dl(e) {
|
|
@@ -15435,7 +15435,7 @@ function Zt(e) {
|
|
|
15435
15435
|
return xR.has(jt(e)) ? "y" : "x";
|
|
15436
15436
|
}
|
|
15437
15437
|
function Ml(e) {
|
|
15438
|
-
return
|
|
15438
|
+
return Al(Zt(e));
|
|
15439
15439
|
}
|
|
15440
15440
|
function SR(e, t, n) {
|
|
15441
15441
|
n === void 0 && (n = !1);
|
|
@@ -15517,7 +15517,7 @@ var IR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
15517
15517
|
n === void 0 && (n = !0);
|
|
15518
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);
|
|
15519
15519
|
return i;
|
|
15520
|
-
},
|
|
15520
|
+
}, _R = function(t) {
|
|
15521
15521
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
15522
15522
|
return r === "" || r === "true";
|
|
15523
15523
|
}, Bm = function(t, n, r) {
|
|
@@ -15556,11 +15556,11 @@ var IR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
15556
15556
|
}, Hm = function(t) {
|
|
15557
15557
|
if (!t)
|
|
15558
15558
|
throw new Error("No node provided");
|
|
15559
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
15560
|
-
},
|
|
15559
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || _R(t)) && !jm(t) ? 0 : t.tabIndex;
|
|
15560
|
+
}, NR = function(t, n) {
|
|
15561
15561
|
var r = Hm(t);
|
|
15562
15562
|
return r < 0 && n && !jm(t) ? 0 : r;
|
|
15563
|
-
},
|
|
15563
|
+
}, AR = function(t, n) {
|
|
15564
15564
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
15565
15565
|
}, Um = function(t) {
|
|
15566
15566
|
return t.tagName === "INPUT";
|
|
@@ -15660,7 +15660,7 @@ var IR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
15660
15660
|
}, UR = function e(t) {
|
|
15661
15661
|
var n = [], r = [];
|
|
15662
15662
|
return t.forEach(function(o, s) {
|
|
15663
|
-
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;
|
|
15664
15664
|
l === 0 ? i ? n.push.apply(n, c) : n.push(a) : r.push({
|
|
15665
15665
|
documentOrder: s,
|
|
15666
15666
|
tabIndex: l,
|
|
@@ -15668,7 +15668,7 @@ var IR = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
15668
15668
|
isScope: i,
|
|
15669
15669
|
content: c
|
|
15670
15670
|
});
|
|
15671
|
-
}), r.sort(
|
|
15671
|
+
}), r.sort(AR).reduce(function(o, s) {
|
|
15672
15672
|
return s.isScope ? o.push.apply(o, s.content) : o.push(s.content), o;
|
|
15673
15673
|
}, []).concat(n);
|
|
15674
15674
|
}, Ui = function(t, n) {
|
|
@@ -15706,7 +15706,7 @@ function zm(e, t) {
|
|
|
15706
15706
|
const n = Ui(e, rs()), r = n.length;
|
|
15707
15707
|
if (r === 0)
|
|
15708
15708
|
return;
|
|
15709
|
-
const o =
|
|
15709
|
+
const o = Ar(nt(e)), s = n.indexOf(o), i = s === -1 ? t === 1 ? 0 : r - 1 : s + t;
|
|
15710
15710
|
return n[i];
|
|
15711
15711
|
}
|
|
15712
15712
|
function Ym(e) {
|
|
@@ -16187,7 +16187,7 @@ function yT(e, t = {}) {
|
|
|
16187
16187
|
mouseOnly: u = !1,
|
|
16188
16188
|
restMs: d = 0,
|
|
16189
16189
|
move: h = !0
|
|
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),
|
|
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(() => {
|
|
16191
16191
|
}), L = f.useRef(!1), M = Qe(() => {
|
|
16192
16192
|
const D = o.current.openEvent?.type;
|
|
16193
16193
|
return D?.includes("mouse") && D !== "mousedown";
|
|
@@ -16214,11 +16214,11 @@ function yT(e, t = {}) {
|
|
|
16214
16214
|
T.removeEventListener("mouseleave", D);
|
|
16215
16215
|
};
|
|
16216
16216
|
}, [i.floating, n, r, a, m, M]);
|
|
16217
|
-
const
|
|
16217
|
+
const _ = f.useCallback((D, T = !0, $ = "hover") => {
|
|
16218
16218
|
const F = Ca(v.current, "close", E.current);
|
|
16219
16219
|
F && !w.current ? x.start(F, () => r(!1, D, $)) : T && (x.clear(), r(!1, D, $));
|
|
16220
16220
|
}, [v, r, x]), O = Qe(() => {
|
|
16221
|
-
|
|
16221
|
+
N.current(), w.current = void 0;
|
|
16222
16222
|
}), k = Qe(() => {
|
|
16223
16223
|
if (P.current) {
|
|
16224
16224
|
const D = nt(i.floating).body;
|
|
@@ -16241,7 +16241,7 @@ function yT(e, t = {}) {
|
|
|
16241
16241
|
k();
|
|
16242
16242
|
return;
|
|
16243
16243
|
}
|
|
16244
|
-
|
|
16244
|
+
N.current();
|
|
16245
16245
|
const z = nt(i.floating);
|
|
16246
16246
|
if (R.clear(), L.current = !1, m.current && o.current.floatingContext) {
|
|
16247
16247
|
n || x.clear(), w.current = m.current({
|
|
@@ -16250,16 +16250,16 @@ function yT(e, t = {}) {
|
|
|
16250
16250
|
x: V.clientX,
|
|
16251
16251
|
y: V.clientY,
|
|
16252
16252
|
onClose() {
|
|
16253
|
-
k(), O(), C() ||
|
|
16253
|
+
k(), O(), C() || _(V, !0, "safe-polygon");
|
|
16254
16254
|
}
|
|
16255
16255
|
});
|
|
16256
16256
|
const q = w.current;
|
|
16257
|
-
z.addEventListener("mousemove", q),
|
|
16257
|
+
z.addEventListener("mousemove", q), N.current = () => {
|
|
16258
16258
|
z.removeEventListener("mousemove", q);
|
|
16259
16259
|
};
|
|
16260
16260
|
return;
|
|
16261
16261
|
}
|
|
16262
|
-
(E.current !== "touch" || !dt(i.floating, V.relatedTarget)) &&
|
|
16262
|
+
(E.current !== "touch" || !dt(i.floating, V.relatedTarget)) && _(V);
|
|
16263
16263
|
}
|
|
16264
16264
|
function $(V) {
|
|
16265
16265
|
C() || o.current.floatingContext && m.current?.({
|
|
@@ -16268,7 +16268,7 @@ function yT(e, t = {}) {
|
|
|
16268
16268
|
x: V.clientX,
|
|
16269
16269
|
y: V.clientY,
|
|
16270
16270
|
onClose() {
|
|
16271
|
-
k(), O(), C() ||
|
|
16271
|
+
k(), O(), C() || _(V);
|
|
16272
16272
|
}
|
|
16273
16273
|
})(V);
|
|
16274
16274
|
}
|
|
@@ -16276,7 +16276,7 @@ function yT(e, t = {}) {
|
|
|
16276
16276
|
x.clear();
|
|
16277
16277
|
}
|
|
16278
16278
|
function W(V) {
|
|
16279
|
-
C() ||
|
|
16279
|
+
C() || _(V, !1);
|
|
16280
16280
|
}
|
|
16281
16281
|
if (je(i.domReference)) {
|
|
16282
16282
|
const V = i.domReference, z = i.floating;
|
|
@@ -16286,7 +16286,7 @@ function yT(e, t = {}) {
|
|
|
16286
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));
|
|
16287
16287
|
};
|
|
16288
16288
|
}
|
|
16289
|
-
}, [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(() => {
|
|
16290
16290
|
if (a && n && m.current?.__options?.blockPointerEvents && M()) {
|
|
16291
16291
|
P.current = !0;
|
|
16292
16292
|
const D = i.floating;
|
|
@@ -16374,7 +16374,7 @@ const Vr = {
|
|
|
16374
16374
|
"aria-hidden": /* @__PURE__ */ new WeakMap(),
|
|
16375
16375
|
none: /* @__PURE__ */ new WeakMap()
|
|
16376
16376
|
};
|
|
16377
|
-
function
|
|
16377
|
+
function _d(e) {
|
|
16378
16378
|
return e === "inert" ? Vr.inert : e === "aria-hidden" ? Vr["aria-hidden"] : Vr.none;
|
|
16379
16379
|
}
|
|
16380
16380
|
let Ps = /* @__PURE__ */ new WeakSet(), Is = {}, Ta = 0;
|
|
@@ -16398,25 +16398,25 @@ function ET(e, t, n, r) {
|
|
|
16398
16398
|
if (a.has(g))
|
|
16399
16399
|
h(g);
|
|
16400
16400
|
else {
|
|
16401
|
-
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;
|
|
16402
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");
|
|
16403
16403
|
}
|
|
16404
16404
|
});
|
|
16405
16405
|
}
|
|
16406
16406
|
return Ta += 1, () => {
|
|
16407
16407
|
c.forEach((p) => {
|
|
16408
|
-
const g =
|
|
16408
|
+
const g = _d(s), v = (g.get(p) || 0) - 1, y = (u.get(p) || 0) - 1;
|
|
16409
16409
|
g.set(p, v), u.set(p, y), v || (!Ps.has(p) && s && p.removeAttribute(s), Ps.delete(p)), y || p.removeAttribute(o);
|
|
16410
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 = {});
|
|
16411
16411
|
};
|
|
16412
16412
|
}
|
|
16413
|
-
function
|
|
16413
|
+
function Nd(e, t = !1, n = !1) {
|
|
16414
16414
|
const r = nt(e[0]).body;
|
|
16415
16415
|
return ET(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n);
|
|
16416
16416
|
}
|
|
16417
16417
|
const Vl = /* @__PURE__ */ f.createContext(null);
|
|
16418
16418
|
process.env.NODE_ENV !== "production" && (Vl.displayName = "PortalContext");
|
|
16419
|
-
const lg = () => f.useContext(Vl),
|
|
16419
|
+
const lg = () => f.useContext(Vl), Ad = Fo("portal");
|
|
16420
16420
|
function xT(e = {}) {
|
|
16421
16421
|
const {
|
|
16422
16422
|
id: t,
|
|
@@ -16433,7 +16433,7 @@ function xT(e = {}) {
|
|
|
16433
16433
|
if (!l)
|
|
16434
16434
|
return;
|
|
16435
16435
|
const c = document.createElement("div");
|
|
16436
|
-
c.id = r, c.setAttribute(
|
|
16436
|
+
c.id = r, c.setAttribute(Ad, ""), l.appendChild(c), a.current = c, i(c);
|
|
16437
16437
|
}, [t, r]), Ue(() => {
|
|
16438
16438
|
if (n === null || !r || a.current)
|
|
16439
16439
|
return;
|
|
@@ -16442,7 +16442,7 @@ function xT(e = {}) {
|
|
|
16442
16442
|
let c = null;
|
|
16443
16443
|
t && (c = document.createElement("div"), c.id = t, l.appendChild(c));
|
|
16444
16444
|
const u = document.createElement("div");
|
|
16445
|
-
u.id = r, u.setAttribute(
|
|
16445
|
+
u.id = r, u.setAttribute(Ad, ""), l = c || l, l.appendChild(u), a.current = u, i(u);
|
|
16446
16446
|
}, [t, n, r, o]), s;
|
|
16447
16447
|
}
|
|
16448
16448
|
function ug(e) {
|
|
@@ -16565,7 +16565,7 @@ function fg(e) {
|
|
|
16565
16565
|
domReference: b,
|
|
16566
16566
|
floating: E
|
|
16567
16567
|
}
|
|
16568
|
-
} = 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) => {
|
|
16569
16569
|
const ue = z(Q);
|
|
16570
16570
|
return M.current.map((X) => b && X === "reference" ? b : V && X === "floating" ? V : ue).filter(Boolean).flat();
|
|
16571
16571
|
});
|
|
@@ -16574,7 +16574,7 @@ function fg(e) {
|
|
|
16574
16574
|
return;
|
|
16575
16575
|
function Q(X) {
|
|
16576
16576
|
if (X.key === "Tab") {
|
|
16577
|
-
dt(V,
|
|
16577
|
+
dt(V, Ar(nt(V))) && z().length === 0 && !S && Sa(X);
|
|
16578
16578
|
const U = Z(), fe = nn(X);
|
|
16579
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]));
|
|
16580
16580
|
}
|
|
@@ -16605,7 +16605,7 @@ function fg(e) {
|
|
|
16605
16605
|
const U = X.relatedTarget, fe = X.currentTarget, pe = nn(X);
|
|
16606
16606
|
queueMicrotask(() => {
|
|
16607
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)));
|
|
16608
|
-
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) {
|
|
16609
16609
|
pt(V) && V.focus();
|
|
16610
16610
|
const ee = F.current, G = z(), B = G[ee] || G[G.length - 1] || V;
|
|
16611
16611
|
pt(B) && B.focus();
|
|
@@ -16627,24 +16627,24 @@ function fg(e) {
|
|
|
16627
16627
|
f.useEffect(() => {
|
|
16628
16628
|
if (r || !E)
|
|
16629
16629
|
return;
|
|
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 ?
|
|
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);
|
|
16631
16631
|
return () => {
|
|
16632
16632
|
pe();
|
|
16633
16633
|
};
|
|
16634
|
-
}, [r, b, E, c, M, C, S,
|
|
16634
|
+
}, [r, b, E, c, M, C, S, N, L, k, x, w]), Ue(() => {
|
|
16635
16635
|
if (r || !pt(V))
|
|
16636
16636
|
return;
|
|
16637
|
-
const Q = nt(V), ue =
|
|
16637
|
+
const Q = nt(V), ue = Ar(Q);
|
|
16638
16638
|
queueMicrotask(() => {
|
|
16639
|
-
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);
|
|
16640
16640
|
!R && !pe && g && kr(fe, {
|
|
16641
16641
|
preventScroll: fe === V
|
|
16642
16642
|
});
|
|
16643
16643
|
});
|
|
16644
|
-
}, [r, g, V, R, Z,
|
|
16644
|
+
}, [r, g, V, R, Z, _]), Ue(() => {
|
|
16645
16645
|
if (r || !V)
|
|
16646
16646
|
return;
|
|
16647
|
-
const Q = nt(V), ue =
|
|
16647
|
+
const Q = nt(V), ue = Ar(Q);
|
|
16648
16648
|
ST(ue);
|
|
16649
16649
|
function X({
|
|
16650
16650
|
reason: pe,
|
|
@@ -16677,7 +16677,7 @@ function fg(e) {
|
|
|
16677
16677
|
}
|
|
16678
16678
|
return () => {
|
|
16679
16679
|
v.off("openchange", X);
|
|
16680
|
-
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();
|
|
16681
16681
|
queueMicrotask(() => {
|
|
16682
16682
|
const ee = CT(de);
|
|
16683
16683
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -16714,7 +16714,7 @@ function fg(e) {
|
|
|
16714
16714
|
children: typeof u == "string" ? u : "Dismiss"
|
|
16715
16715
|
});
|
|
16716
16716
|
}
|
|
16717
|
-
const te = !r &&
|
|
16717
|
+
const te = !r && N && (c ? !S : !0) && (W || c);
|
|
16718
16718
|
return /* @__PURE__ */ ce(f.Fragment, {
|
|
16719
16719
|
children: [te && /* @__PURE__ */ A(Vo, {
|
|
16720
16720
|
"data-type": "inside",
|
|
@@ -16955,7 +16955,7 @@ const TT = (e) => ({
|
|
|
16955
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));
|
|
16956
16956
|
let S = R ? R[E] : 0;
|
|
16957
16957
|
(!S || !await (i.isElement == null ? void 0 : i.isElement(R))) && (S = a.floating[E] || s.floating[g]);
|
|
16958
|
-
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;
|
|
16959
16959
|
return {
|
|
16960
16960
|
[p]: h[p] + D,
|
|
16961
16961
|
data: {
|
|
@@ -16994,17 +16994,17 @@ const TT = (e) => ({
|
|
|
16994
16994
|
return {};
|
|
16995
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";
|
|
16996
16996
|
!h && R && w.push(...kR(a, m, g, x));
|
|
16997
|
-
const S = [a, ...w], P = await Bo(t, v),
|
|
16997
|
+
const S = [a, ...w], P = await Bo(t, v), N = [];
|
|
16998
16998
|
let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
16999
|
-
if (u &&
|
|
16999
|
+
if (u && N.push(P[y]), d) {
|
|
17000
17000
|
const k = SR(o, i, x);
|
|
17001
|
-
|
|
17001
|
+
N.push(P[k[0]], P[k[1]]);
|
|
17002
17002
|
}
|
|
17003
17003
|
if (L = [...L, {
|
|
17004
17004
|
placement: o,
|
|
17005
|
-
overflows:
|
|
17006
|
-
}], !
|
|
17007
|
-
var M,
|
|
17005
|
+
overflows: N
|
|
17006
|
+
}], !N.every((k) => k <= 0)) {
|
|
17007
|
+
var M, _;
|
|
17008
17008
|
const k = (((M = s.flip) == null ? void 0 : M.index) || 0) + 1, C = S[k];
|
|
17009
17009
|
if (C && (!(d === "alignment" ? b !== Zt(C) : !1) || // We leave the current main axis only if every placement on that axis
|
|
17010
17010
|
// overflows the main axis.
|
|
@@ -17018,7 +17018,7 @@ const TT = (e) => ({
|
|
|
17018
17018
|
placement: C
|
|
17019
17019
|
}
|
|
17020
17020
|
};
|
|
17021
|
-
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;
|
|
17022
17022
|
if (!I)
|
|
17023
17023
|
switch (p) {
|
|
17024
17024
|
case "bestFit": {
|
|
@@ -17152,7 +17152,7 @@ const IT = function(e) {
|
|
|
17152
17152
|
};
|
|
17153
17153
|
}
|
|
17154
17154
|
};
|
|
17155
|
-
},
|
|
17155
|
+
}, _T = function(e) {
|
|
17156
17156
|
return e === void 0 && (e = {}), {
|
|
17157
17157
|
name: "shift",
|
|
17158
17158
|
options: e,
|
|
@@ -17180,7 +17180,7 @@ const IT = function(e) {
|
|
|
17180
17180
|
} = Rn(e, t), c = {
|
|
17181
17181
|
x: n,
|
|
17182
17182
|
y: r
|
|
17183
|
-
}, u = await Bo(t, l), d = Zt(jt(o)), h =
|
|
17183
|
+
}, u = await Bo(t, l), d = Zt(jt(o)), h = Al(d);
|
|
17184
17184
|
let p = c[h], g = c[d];
|
|
17185
17185
|
if (s) {
|
|
17186
17186
|
const v = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", b = p + u[v], E = p - u[y];
|
|
@@ -17208,7 +17208,7 @@ const IT = function(e) {
|
|
|
17208
17208
|
};
|
|
17209
17209
|
}
|
|
17210
17210
|
};
|
|
17211
|
-
},
|
|
17211
|
+
}, NT = function(e) {
|
|
17212
17212
|
return e === void 0 && (e = {}), {
|
|
17213
17213
|
options: e,
|
|
17214
17214
|
fn(t) {
|
|
@@ -17225,7 +17225,7 @@ const IT = function(e) {
|
|
|
17225
17225
|
} = Rn(e, t), u = {
|
|
17226
17226
|
x: n,
|
|
17227
17227
|
y: r
|
|
17228
|
-
}, d = Zt(o), h =
|
|
17228
|
+
}, d = Zt(o), h = Al(d);
|
|
17229
17229
|
let p = u[h], g = u[d];
|
|
17230
17230
|
const m = Rn(a, t), v = typeof m == "number" ? {
|
|
17231
17231
|
mainAxis: m,
|
|
@@ -17250,7 +17250,7 @@ const IT = function(e) {
|
|
|
17250
17250
|
};
|
|
17251
17251
|
}
|
|
17252
17252
|
};
|
|
17253
|
-
},
|
|
17253
|
+
}, AT = function(e) {
|
|
17254
17254
|
return e === void 0 && (e = {}), {
|
|
17255
17255
|
name: "size",
|
|
17256
17256
|
options: e,
|
|
@@ -17274,16 +17274,16 @@ const IT = function(e) {
|
|
|
17274
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;
|
|
17275
17275
|
let S = x, P = w;
|
|
17276
17276
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = E), (r = t.middlewareData.shift) != null && r.enabled.y && (S = b), R && !h) {
|
|
17277
|
-
const L =
|
|
17278
|
-
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));
|
|
17279
17279
|
}
|
|
17280
17280
|
await l({
|
|
17281
17281
|
...t,
|
|
17282
17282
|
availableWidth: P,
|
|
17283
17283
|
availableHeight: S
|
|
17284
17284
|
});
|
|
17285
|
-
const
|
|
17286
|
-
return g !==
|
|
17285
|
+
const N = await i.getDimensions(a.floating);
|
|
17286
|
+
return g !== N.width || m !== N.height ? {
|
|
17287
17287
|
reset: {
|
|
17288
17288
|
rects: !0
|
|
17289
17289
|
}
|
|
@@ -17398,10 +17398,10 @@ function $T(e) {
|
|
|
17398
17398
|
return Array.from(e.getClientRects());
|
|
17399
17399
|
}
|
|
17400
17400
|
function FT(e) {
|
|
17401
|
-
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);
|
|
17402
17402
|
let i = -n.scrollLeft + Wl(e);
|
|
17403
17403
|
const a = -n.scrollTop;
|
|
17404
|
-
return Wt(r).direction === "rtl" && (i +=
|
|
17404
|
+
return Wt(r).direction === "rtl" && (i += _t(t.clientWidth, r.clientWidth) - o), {
|
|
17405
17405
|
width: o,
|
|
17406
17406
|
height: s,
|
|
17407
17407
|
x: i,
|
|
@@ -17464,7 +17464,7 @@ function jT(e, t) {
|
|
|
17464
17464
|
const s = Wt(e).position === "fixed";
|
|
17465
17465
|
let i = s ? Cn(e) : e;
|
|
17466
17466
|
for (; je(i) && !En(i); ) {
|
|
17467
|
-
const a = Wt(i), l =
|
|
17467
|
+
const a = Wt(i), l = Nl(i);
|
|
17468
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);
|
|
17469
17469
|
}
|
|
17470
17470
|
return t.set(e, r), r;
|
|
@@ -17478,7 +17478,7 @@ function HT(e) {
|
|
|
17478
17478
|
} = e;
|
|
17479
17479
|
const i = [...n === "clippingAncestors" ? Wi(t) ? [] : jT(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((c, u) => {
|
|
17480
17480
|
const d = Bd(t, u, o);
|
|
17481
|
-
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;
|
|
17482
17482
|
}, Bd(t, a, o));
|
|
17483
17483
|
return {
|
|
17484
17484
|
width: l.right - l.left,
|
|
@@ -17548,7 +17548,7 @@ function bg(e, t) {
|
|
|
17548
17548
|
let r = Wd(e, t);
|
|
17549
17549
|
for (; r && eR(r) && Oa(r); )
|
|
17550
17550
|
r = Wd(r, t);
|
|
17551
|
-
return r && En(r) && Oa(r) && !
|
|
17551
|
+
return r && En(r) && Oa(r) && !Nl(r) ? n : r || sR(e) || n;
|
|
17552
17552
|
}
|
|
17553
17553
|
const zT = async function(e) {
|
|
17554
17554
|
const t = this.getOffsetParent || bg, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -17599,7 +17599,7 @@ function qT(e, t) {
|
|
|
17599
17599
|
return;
|
|
17600
17600
|
const g = Ts(d), m = Ts(o.clientWidth - (u + h)), v = Ts(o.clientHeight - (d + p)), y = Ts(u), E = {
|
|
17601
17601
|
rootMargin: -g + "px " + -m + "px " + -v + "px " + -y + "px",
|
|
17602
|
-
threshold:
|
|
17602
|
+
threshold: _t(0, zn(1, l)) || 1
|
|
17603
17603
|
};
|
|
17604
17604
|
let x = !0;
|
|
17605
17605
|
function w(R) {
|
|
@@ -17662,7 +17662,7 @@ function jd(e, t, n, r) {
|
|
|
17662
17662
|
}), d?.(), (y = p) == null || y.disconnect(), p = null, l && cancelAnimationFrame(g);
|
|
17663
17663
|
};
|
|
17664
17664
|
}
|
|
17665
|
-
const XT = IT, KT =
|
|
17665
|
+
const XT = IT, KT = _T, JT = OT, QT = AT, eO = kT, Hd = TT, tO = NT, nO = (e, t, n) => {
|
|
17666
17666
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
17667
17667
|
platform: ZT,
|
|
17668
17668
|
...n
|
|
@@ -17747,7 +17747,7 @@ function sO(e) {
|
|
|
17747
17747
|
T !== R.current && (R.current = T, m(T));
|
|
17748
17748
|
}, []), E = f.useCallback((T) => {
|
|
17749
17749
|
T !== S.current && (S.current = T, y(T));
|
|
17750
|
-
}, []), 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(() => {
|
|
17751
17751
|
if (!R.current || !S.current)
|
|
17752
17752
|
return;
|
|
17753
17753
|
const T = {
|
|
@@ -17762,13 +17762,13 @@ function sO(e) {
|
|
|
17762
17762
|
// but still mounted (such as when transitioning out). To ensure
|
|
17763
17763
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
17764
17764
|
// setting it to `true` when `open === false` (must be specified).
|
|
17765
|
-
isPositioned:
|
|
17765
|
+
isPositioned: _.current !== !1
|
|
17766
17766
|
};
|
|
17767
17767
|
k.current && !vi(P.current, F) && (P.current = F, ht.flushSync(() => {
|
|
17768
17768
|
d(F);
|
|
17769
17769
|
}));
|
|
17770
17770
|
});
|
|
17771
|
-
}, [h, t, n, M,
|
|
17771
|
+
}, [h, t, n, M, _]);
|
|
17772
17772
|
Gs(() => {
|
|
17773
17773
|
c === !1 && P.current.isPositioned && (P.current.isPositioned = !1, d((T) => ({
|
|
17774
17774
|
...T,
|
|
@@ -17784,7 +17784,7 @@ function sO(e) {
|
|
|
17784
17784
|
return L.current(x, w, O);
|
|
17785
17785
|
O();
|
|
17786
17786
|
}
|
|
17787
|
-
}, [x, w, O, L,
|
|
17787
|
+
}, [x, w, O, L, N]);
|
|
17788
17788
|
const C = f.useMemo(() => ({
|
|
17789
17789
|
reference: R,
|
|
17790
17790
|
floating: S,
|
|
@@ -17898,7 +17898,7 @@ function xg(e, t = {}) {
|
|
|
17898
17898
|
} = Gd(p), {
|
|
17899
17899
|
escapeKey: w,
|
|
17900
17900
|
outsidePress: R
|
|
17901
|
-
} = Gd(g), S = f.useRef(!1), P = $o(),
|
|
17901
|
+
} = Gd(g), S = f.useRef(!1), P = $o(), N = Qe((C) => {
|
|
17902
17902
|
if (!n || !i || !a || C.key !== "Escape" || S.current)
|
|
17903
17903
|
return;
|
|
17904
17904
|
const I = s.current.floatingContext?.nodeId, D = m ? fr(m.nodesRef.current, I) : [];
|
|
@@ -17912,7 +17912,7 @@ function xg(e, t = {}) {
|
|
|
17912
17912
|
r(!1, gR(C) ? C.nativeEvent : C, "escape-key");
|
|
17913
17913
|
}), L = Qe((C) => {
|
|
17914
17914
|
const I = () => {
|
|
17915
|
-
|
|
17915
|
+
N(C), nn(C)?.removeEventListener("keydown", I);
|
|
17916
17916
|
};
|
|
17917
17917
|
nn(C)?.addEventListener("keydown", I);
|
|
17918
17918
|
}), M = Qe((C) => {
|
|
@@ -17951,7 +17951,7 @@ function xg(e, t = {}) {
|
|
|
17951
17951
|
return;
|
|
17952
17952
|
}
|
|
17953
17953
|
r(!1, C, "outside-press");
|
|
17954
|
-
}),
|
|
17954
|
+
}), _ = Qe((C) => {
|
|
17955
17955
|
const I = () => {
|
|
17956
17956
|
M(C), nn(C)?.removeEventListener(c, I);
|
|
17957
17957
|
};
|
|
@@ -17979,22 +17979,22 @@ function xg(e, t = {}) {
|
|
|
17979
17979
|
);
|
|
17980
17980
|
}
|
|
17981
17981
|
const $ = nt(o.floating);
|
|
17982
|
-
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);
|
|
17983
17983
|
let F = [];
|
|
17984
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) => {
|
|
17985
17985
|
W.addEventListener("scroll", I, {
|
|
17986
17986
|
passive: !0
|
|
17987
17987
|
});
|
|
17988
17988
|
}), () => {
|
|
17989
|
-
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) => {
|
|
17990
17990
|
W.removeEventListener("scroll", I);
|
|
17991
17991
|
}), C.clear();
|
|
17992
17992
|
};
|
|
17993
|
-
}, [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(() => {
|
|
17994
17994
|
s.current.insideReactTree = !1;
|
|
17995
17995
|
}, [s, y, c]);
|
|
17996
17996
|
const O = f.useMemo(() => ({
|
|
17997
|
-
onKeyDown:
|
|
17997
|
+
onKeyDown: N,
|
|
17998
17998
|
...u && {
|
|
17999
17999
|
[hO[d]]: (C) => {
|
|
18000
18000
|
r(!1, C.nativeEvent, "reference-press");
|
|
@@ -18005,8 +18005,8 @@ function xg(e, t = {}) {
|
|
|
18005
18005
|
}
|
|
18006
18006
|
}
|
|
18007
18007
|
}
|
|
18008
|
-
}), [
|
|
18009
|
-
onKeyDown:
|
|
18008
|
+
}), [N, r, u, d]), k = f.useMemo(() => ({
|
|
18009
|
+
onKeyDown: N,
|
|
18010
18010
|
onMouseDown() {
|
|
18011
18011
|
b.current = !0;
|
|
18012
18012
|
},
|
|
@@ -18021,7 +18021,7 @@ function xg(e, t = {}) {
|
|
|
18021
18021
|
s.current.insideReactTree = !1;
|
|
18022
18022
|
}));
|
|
18023
18023
|
}
|
|
18024
|
-
}), [
|
|
18024
|
+
}), [N, c, s, m, P]);
|
|
18025
18025
|
return f.useMemo(() => i ? {
|
|
18026
18026
|
reference: O,
|
|
18027
18027
|
floating: k
|
|
@@ -18276,32 +18276,32 @@ function bO(e = {}) {
|
|
|
18276
18276
|
const {
|
|
18277
18277
|
clientX: w,
|
|
18278
18278
|
clientY: R
|
|
18279
|
-
} = E, S = [w, R], P = nn(E),
|
|
18280
|
-
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))
|
|
18281
18281
|
return;
|
|
18282
|
-
if (M && (s = !1), M && !
|
|
18282
|
+
if (M && (s = !1), M && !N) {
|
|
18283
18283
|
s = !0;
|
|
18284
18284
|
return;
|
|
18285
18285
|
}
|
|
18286
|
-
if (
|
|
18286
|
+
if (N && je(E.relatedTarget) && dt(g.floating, E.relatedTarget) || y && fr(y.nodesRef.current, v).some(({
|
|
18287
18287
|
context: H
|
|
18288
18288
|
}) => H?.open))
|
|
18289
18289
|
return;
|
|
18290
|
-
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)
|
|
18291
18291
|
return x();
|
|
18292
18292
|
let Z = [];
|
|
18293
18293
|
switch (k) {
|
|
18294
18294
|
case "top":
|
|
18295
|
-
Z = [[F,
|
|
18295
|
+
Z = [[F, _.top + 1], [F, O.bottom - 1], [W, O.bottom - 1], [W, _.top + 1]];
|
|
18296
18296
|
break;
|
|
18297
18297
|
case "bottom":
|
|
18298
|
-
Z = [[F, O.top + 1], [F,
|
|
18298
|
+
Z = [[F, O.top + 1], [F, _.bottom - 1], [W, _.bottom - 1], [W, O.top + 1]];
|
|
18299
18299
|
break;
|
|
18300
18300
|
case "left":
|
|
18301
|
-
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]];
|
|
18302
18302
|
break;
|
|
18303
18303
|
case "right":
|
|
18304
|
-
Z = [[
|
|
18304
|
+
Z = [[_.right - 1, z], [_.right - 1, V], [O.left + 1, V], [O.left + 1, z]];
|
|
18305
18305
|
break;
|
|
18306
18306
|
}
|
|
18307
18307
|
function q([H, j]) {
|
|
@@ -18329,7 +18329,7 @@ function bO(e = {}) {
|
|
|
18329
18329
|
if (!Yd([w, R], Z)) {
|
|
18330
18330
|
if (s && !D)
|
|
18331
18331
|
return x();
|
|
18332
|
-
if (!
|
|
18332
|
+
if (!N && r) {
|
|
18333
18333
|
const H = c(E.clientX, E.clientY);
|
|
18334
18334
|
if (H !== null && H < 0.1)
|
|
18335
18335
|
return x();
|
|
@@ -18583,7 +18583,7 @@ function kO(e) {
|
|
|
18583
18583
|
mounted: R,
|
|
18584
18584
|
setMounted: S,
|
|
18585
18585
|
transitionStatus: P
|
|
18586
|
-
} = og(c),
|
|
18586
|
+
} = og(c), N = Qe((H, j, Y) => {
|
|
18587
18587
|
i?.(H, j, Y), u(H);
|
|
18588
18588
|
}), L = Qe(() => {
|
|
18589
18589
|
S(!1), l?.(!1);
|
|
@@ -18598,16 +18598,16 @@ function kO(e) {
|
|
|
18598
18598
|
}), f.useImperativeHandle(e.actionsRef, () => ({
|
|
18599
18599
|
unmount: L
|
|
18600
18600
|
}), [L]);
|
|
18601
|
-
const
|
|
18601
|
+
const _ = jl({
|
|
18602
18602
|
elements: {
|
|
18603
18603
|
reference: b,
|
|
18604
18604
|
floating: x
|
|
18605
18605
|
},
|
|
18606
18606
|
open: c,
|
|
18607
18607
|
onOpenChange: (H, j, Y) => {
|
|
18608
|
-
|
|
18608
|
+
N(H, j, kg(Y));
|
|
18609
18609
|
}
|
|
18610
|
-
}), [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(_, {
|
|
18611
18611
|
outsidePressEvent: "mousedown",
|
|
18612
18612
|
outsidePress(H) {
|
|
18613
18613
|
if (H.button !== 0)
|
|
@@ -18644,7 +18644,7 @@ function kO(e) {
|
|
|
18644
18644
|
} = Og(c), q = f.useMemo(() => $(Z), [$, Z]);
|
|
18645
18645
|
return f.useMemo(() => ({
|
|
18646
18646
|
modal: r,
|
|
18647
|
-
setOpen:
|
|
18647
|
+
setOpen: N,
|
|
18648
18648
|
open: c,
|
|
18649
18649
|
titleElementId: g,
|
|
18650
18650
|
setTitleElementId: m,
|
|
@@ -18663,8 +18663,8 @@ function kO(e) {
|
|
|
18663
18663
|
popupRef: d,
|
|
18664
18664
|
backdropRef: h,
|
|
18665
18665
|
internalBackdropRef: p,
|
|
18666
|
-
floatingRootContext:
|
|
18667
|
-
}), [r,
|
|
18666
|
+
floatingRootContext: _
|
|
18667
|
+
}), [r, N, c, g, v, W, V, O, z, R, P, q, F, _]);
|
|
18668
18668
|
}
|
|
18669
18669
|
function Pg(e, t, n) {
|
|
18670
18670
|
const r = e === "inline-start" || e === "inline-end";
|
|
@@ -18715,18 +18715,18 @@ function PO(e) {
|
|
|
18715
18715
|
shiftCrossAxis: v = !1,
|
|
18716
18716
|
nodeId: y,
|
|
18717
18717
|
adaptiveOrigin: b
|
|
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,
|
|
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", _ = {
|
|
18719
18719
|
top: "top",
|
|
18720
18720
|
right: "right",
|
|
18721
18721
|
bottom: "bottom",
|
|
18722
18722
|
left: "left",
|
|
18723
18723
|
"inline-end": M ? "left" : "right",
|
|
18724
18724
|
"inline-start": M ? "right" : "left"
|
|
18725
|
-
}[r], O = s === "center" ?
|
|
18725
|
+
}[r], O = s === "center" ? _ : `${_}-${s}`, k = {
|
|
18726
18726
|
boundary: a === "clipping-ancestors" ? "clippingAncestors" : a,
|
|
18727
18727
|
padding: l
|
|
18728
|
-
}, C = f.useRef(null), I = qt(o), D = qt(i), F = [aO((
|
|
18729
|
-
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;
|
|
18730
18730
|
return {
|
|
18731
18731
|
mainAxis: ke,
|
|
18732
18732
|
crossAxis: Re,
|
|
@@ -18737,8 +18737,8 @@ function PO(e) {
|
|
|
18737
18737
|
mainAxis: !v && E === "flip",
|
|
18738
18738
|
crossAxis: x === "flip" ? "alignment" : !1,
|
|
18739
18739
|
fallbackAxisSideDirection: w
|
|
18740
|
-
}), Z = W ? null : cO((
|
|
18741
|
-
const we = nt(
|
|
18740
|
+
}), Z = W ? null : cO((_e) => {
|
|
18741
|
+
const we = nt(_e.elements.floating).documentElement;
|
|
18742
18742
|
return {
|
|
18743
18743
|
...k,
|
|
18744
18744
|
// Use the Layout Viewport to avoid shifting around when pinch-zooming
|
|
@@ -18767,7 +18767,7 @@ function PO(e) {
|
|
|
18767
18767
|
...k,
|
|
18768
18768
|
apply({
|
|
18769
18769
|
elements: {
|
|
18770
|
-
floating:
|
|
18770
|
+
floating: _e
|
|
18771
18771
|
},
|
|
18772
18772
|
rects: {
|
|
18773
18773
|
reference: we
|
|
@@ -18781,7 +18781,7 @@ function PO(e) {
|
|
|
18781
18781
|
"--anchor-width": `${we.width}px`,
|
|
18782
18782
|
"--anchor-height": `${we.height}px`
|
|
18783
18783
|
}).forEach(([Be, et]) => {
|
|
18784
|
-
|
|
18784
|
+
_e.style.setProperty(Be, et);
|
|
18785
18785
|
});
|
|
18786
18786
|
}
|
|
18787
18787
|
}), pO(() => ({
|
|
@@ -18791,14 +18791,14 @@ function PO(e) {
|
|
|
18791
18791
|
padding: u
|
|
18792
18792
|
}), [u]), fO(), {
|
|
18793
18793
|
name: "transformOrigin",
|
|
18794
|
-
fn(
|
|
18794
|
+
fn(_e) {
|
|
18795
18795
|
const {
|
|
18796
18796
|
elements: we,
|
|
18797
18797
|
middlewareData: ke,
|
|
18798
18798
|
placement: Re,
|
|
18799
18799
|
rects: Be,
|
|
18800
18800
|
y: et
|
|
18801
|
-
} =
|
|
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 = {
|
|
18802
18802
|
top: `${ve}px calc(100% + ${o}px)`,
|
|
18803
18803
|
bottom: `${ve}px ${-o}px`,
|
|
18804
18804
|
left: `calc(100% + ${o}px) ${Te}px`,
|
|
@@ -18835,7 +18835,7 @@ function PO(e) {
|
|
|
18835
18835
|
placement: O,
|
|
18836
18836
|
middleware: F,
|
|
18837
18837
|
strategy: n,
|
|
18838
|
-
whileElementsMounted: h ? void 0 : (...
|
|
18838
|
+
whileElementsMounted: h ? void 0 : (..._e) => jd(..._e, H),
|
|
18839
18839
|
nodeId: y
|
|
18840
18840
|
}), {
|
|
18841
18841
|
sideX: re,
|
|
@@ -18848,25 +18848,25 @@ function PO(e) {
|
|
|
18848
18848
|
Ue(() => {
|
|
18849
18849
|
if (!g)
|
|
18850
18850
|
return;
|
|
18851
|
-
const
|
|
18851
|
+
const _e = N.current, we = typeof _e == "function" ? _e() : _e, Re = (Jd(we) ? we.current : we) || null || null;
|
|
18852
18852
|
Re !== G.current && (j.setPositionReference(Re), G.current = Re);
|
|
18853
|
-
}, [g, j, P,
|
|
18853
|
+
}, [g, j, P, N]), f.useEffect(() => {
|
|
18854
18854
|
if (!g)
|
|
18855
18855
|
return;
|
|
18856
|
-
const
|
|
18857
|
-
typeof
|
|
18858
|
-
}, [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(() => {
|
|
18859
18859
|
if (h && g && Y.domReference && Y.floating)
|
|
18860
18860
|
return jd(Y.domReference, Y.floating, ue, H);
|
|
18861
18861
|
}, [h, g, Y, ue, H]);
|
|
18862
|
-
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(() => ({
|
|
18863
18863
|
position: "absolute",
|
|
18864
18864
|
top: Q.arrow?.y,
|
|
18865
18865
|
left: Q.arrow?.x
|
|
18866
18866
|
}), [Q.arrow]), Fe = Q.arrow?.centerOffset !== 0;
|
|
18867
18867
|
return f.useMemo(() => ({
|
|
18868
18868
|
positionerStyles: ee,
|
|
18869
|
-
arrowStyles:
|
|
18869
|
+
arrowStyles: Ne,
|
|
18870
18870
|
arrowRef: C,
|
|
18871
18871
|
arrowUncentered: Fe,
|
|
18872
18872
|
side: K,
|
|
@@ -18876,7 +18876,7 @@ function PO(e) {
|
|
|
18876
18876
|
context: U,
|
|
18877
18877
|
isPositioned: fe,
|
|
18878
18878
|
update: ue
|
|
18879
|
-
}), [ee,
|
|
18879
|
+
}), [ee, Ne, C, Fe, K, he, Ce, j, U, fe, ue]);
|
|
18880
18880
|
}
|
|
18881
18881
|
function Jd(e) {
|
|
18882
18882
|
return e != null && "current" in e;
|
|
@@ -18900,7 +18900,7 @@ function Sr() {
|
|
|
18900
18900
|
...t
|
|
18901
18901
|
};
|
|
18902
18902
|
}
|
|
18903
|
-
const
|
|
18903
|
+
const _O = {
|
|
18904
18904
|
...co,
|
|
18905
18905
|
...zi
|
|
18906
18906
|
}, Ig = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
@@ -18921,7 +18921,7 @@ const NO = {
|
|
|
18921
18921
|
return Mt("div", t, {
|
|
18922
18922
|
state: d,
|
|
18923
18923
|
ref: [u, n],
|
|
18924
|
-
customStyleHookMapping:
|
|
18924
|
+
customStyleHookMapping: _O,
|
|
18925
18925
|
props: [{
|
|
18926
18926
|
role: "presentation",
|
|
18927
18927
|
hidden: !l,
|
|
@@ -18935,7 +18935,7 @@ const NO = {
|
|
|
18935
18935
|
});
|
|
18936
18936
|
});
|
|
18937
18937
|
process.env.NODE_ENV !== "production" && (Ig.displayName = "DialogBackdrop");
|
|
18938
|
-
const
|
|
18938
|
+
const _g = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
18939
18939
|
const {
|
|
18940
18940
|
render: r,
|
|
18941
18941
|
className: o,
|
|
@@ -18962,8 +18962,8 @@ const Ng = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
18962
18962
|
props: [a, u]
|
|
18963
18963
|
});
|
|
18964
18964
|
});
|
|
18965
|
-
process.env.NODE_ENV !== "production" && (
|
|
18966
|
-
const
|
|
18965
|
+
process.env.NODE_ENV !== "production" && (_g.displayName = "DialogClose");
|
|
18966
|
+
const Ng = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
18967
18967
|
const {
|
|
18968
18968
|
render: r,
|
|
18969
18969
|
className: o,
|
|
@@ -18981,10 +18981,10 @@ const Ag = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
18981
18981
|
}, i]
|
|
18982
18982
|
});
|
|
18983
18983
|
});
|
|
18984
|
-
process.env.NODE_ENV !== "production" && (
|
|
18985
|
-
let
|
|
18984
|
+
process.env.NODE_ENV !== "production" && (Ng.displayName = "DialogDescription");
|
|
18985
|
+
let NO = /* @__PURE__ */ (function(e) {
|
|
18986
18986
|
return e.nestedDialogs = "--nested-dialogs", e;
|
|
18987
|
-
})({}),
|
|
18987
|
+
})({}), AO = (function(e) {
|
|
18988
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;
|
|
18989
18989
|
})({});
|
|
18990
18990
|
const Ul = /* @__PURE__ */ f.createContext(void 0);
|
|
@@ -19000,10 +19000,10 @@ const MO = {
|
|
|
19000
19000
|
...zi,
|
|
19001
19001
|
nestedDialogOpen(e) {
|
|
19002
19002
|
return e ? {
|
|
19003
|
-
[
|
|
19003
|
+
[AO.nestedDialogOpen]: ""
|
|
19004
19004
|
} : null;
|
|
19005
19005
|
}
|
|
19006
|
-
},
|
|
19006
|
+
}, Ag = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
19007
19007
|
const {
|
|
19008
19008
|
className: r,
|
|
19009
19009
|
finalFocus: o,
|
|
@@ -19036,7 +19036,7 @@ const MO = {
|
|
|
19036
19036
|
}
|
|
19037
19037
|
});
|
|
19038
19038
|
const P = zr(n, b), {
|
|
19039
|
-
popupProps:
|
|
19039
|
+
popupProps: N,
|
|
19040
19040
|
resolvedInitialFocus: L
|
|
19041
19041
|
} = wO({
|
|
19042
19042
|
descriptionElementId: l,
|
|
@@ -19047,16 +19047,16 @@ const MO = {
|
|
|
19047
19047
|
ref: P,
|
|
19048
19048
|
setPopupElement: E,
|
|
19049
19049
|
titleElementId: x
|
|
19050
|
-
}), M = m > 0,
|
|
19050
|
+
}), M = m > 0, _ = f.useMemo(() => ({
|
|
19051
19051
|
open: v,
|
|
19052
19052
|
nested: g,
|
|
19053
19053
|
transitionStatus: w,
|
|
19054
19054
|
nestedDialogOpen: M
|
|
19055
19055
|
}), [v, g, w, M]), O = Mt("div", t, {
|
|
19056
|
-
state:
|
|
19057
|
-
props: [d(),
|
|
19056
|
+
state: _,
|
|
19057
|
+
props: [d(), N, {
|
|
19058
19058
|
style: {
|
|
19059
|
-
[
|
|
19059
|
+
[NO.nestedDialogs]: m
|
|
19060
19060
|
}
|
|
19061
19061
|
}, a],
|
|
19062
19062
|
customStyleHookMapping: MO
|
|
@@ -19076,7 +19076,7 @@ const MO = {
|
|
|
19076
19076
|
})]
|
|
19077
19077
|
});
|
|
19078
19078
|
});
|
|
19079
|
-
process.env.NODE_ENV !== "production" && (
|
|
19079
|
+
process.env.NODE_ENV !== "production" && (Ag.displayName = "DialogPopup");
|
|
19080
19080
|
function LO(e) {
|
|
19081
19081
|
const {
|
|
19082
19082
|
children: t,
|
|
@@ -19197,37 +19197,37 @@ function Qd({
|
|
|
19197
19197
|
openOnHover: i = !1,
|
|
19198
19198
|
onOpenChangeComplete: a,
|
|
19199
19199
|
modal: l = !1
|
|
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(), [
|
|
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({
|
|
19201
19201
|
controlled: t,
|
|
19202
19202
|
default: r,
|
|
19203
19203
|
name: "Popover",
|
|
19204
19204
|
state: "open"
|
|
19205
19205
|
}), {
|
|
19206
19206
|
mounted: M,
|
|
19207
|
-
setMounted:
|
|
19207
|
+
setMounted: _,
|
|
19208
19208
|
transitionStatus: O
|
|
19209
|
-
} = og(
|
|
19209
|
+
} = og(N);
|
|
19210
19210
|
Tg({
|
|
19211
|
-
enabled:
|
|
19211
|
+
enabled: N && l === !0 && E !== "trigger-hover",
|
|
19212
19212
|
mounted: M,
|
|
19213
|
-
open:
|
|
19213
|
+
open: N,
|
|
19214
19214
|
referenceElement: y
|
|
19215
19215
|
});
|
|
19216
19216
|
const k = Qe(() => {
|
|
19217
|
-
|
|
19217
|
+
_(!1), R(!0), x(null), a?.(!1);
|
|
19218
19218
|
});
|
|
19219
19219
|
Yi({
|
|
19220
19220
|
enabled: !e.actionsRef,
|
|
19221
|
-
open:
|
|
19221
|
+
open: N,
|
|
19222
19222
|
ref: S,
|
|
19223
19223
|
onComplete() {
|
|
19224
|
-
|
|
19224
|
+
N || k();
|
|
19225
19225
|
}
|
|
19226
19226
|
}), f.useImperativeHandle(e.actionsRef, () => ({
|
|
19227
19227
|
unmount: k
|
|
19228
19228
|
}), [k]), f.useEffect(() => {
|
|
19229
|
-
|
|
19230
|
-
}, [P,
|
|
19229
|
+
N || P.clear();
|
|
19230
|
+
}, [P, N]);
|
|
19231
19231
|
const C = Qe((j, Y, ne) => {
|
|
19232
19232
|
const te = ne === "trigger-hover", Q = ne === "trigger-press" && Y.detail === 0, ue = !j && (ne === "escape-key" || ne == null);
|
|
19233
19233
|
function X() {
|
|
@@ -19241,14 +19241,14 @@ function Qd({
|
|
|
19241
19241
|
reference: m,
|
|
19242
19242
|
floating: y
|
|
19243
19243
|
},
|
|
19244
|
-
open:
|
|
19244
|
+
open: N,
|
|
19245
19245
|
onOpenChange(j, Y, ne) {
|
|
19246
19246
|
C(j, Y, kg(ne));
|
|
19247
19247
|
}
|
|
19248
19248
|
}), {
|
|
19249
19249
|
openMethod: D,
|
|
19250
19250
|
triggerProps: T
|
|
19251
|
-
} = Og(
|
|
19251
|
+
} = Og(N), $ = o, F = yT(I, {
|
|
19252
19252
|
enabled: i && (D !== "touch" || E !== "trigger-press"),
|
|
19253
19253
|
mouseOnly: !0,
|
|
19254
19254
|
move: !1,
|
|
@@ -19265,10 +19265,10 @@ function Qd({
|
|
|
19265
19265
|
getReferenceProps: Z,
|
|
19266
19266
|
getFloatingProps: q
|
|
19267
19267
|
} = Sg([F, W, V, z]), H = f.useMemo(() => ({
|
|
19268
|
-
open:
|
|
19268
|
+
open: N,
|
|
19269
19269
|
setOpen: C,
|
|
19270
19270
|
mounted: M,
|
|
19271
|
-
setMounted:
|
|
19271
|
+
setMounted: _,
|
|
19272
19272
|
transitionStatus: O,
|
|
19273
19273
|
triggerElement: m,
|
|
19274
19274
|
setTriggerElement: v,
|
|
@@ -19290,7 +19290,7 @@ function Qd({
|
|
|
19290
19290
|
delay: o,
|
|
19291
19291
|
closeDelay: s,
|
|
19292
19292
|
modal: l
|
|
19293
|
-
}), [
|
|
19293
|
+
}), [N, C, M, _, O, y, d, p, Z, m, T, q, I, c, D, E, a, i, o, s, l]);
|
|
19294
19294
|
return /* @__PURE__ */ A(Gl.Provider, {
|
|
19295
19295
|
value: H,
|
|
19296
19296
|
children: e.children
|
|
@@ -19396,8 +19396,8 @@ const Vg = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
19396
19396
|
modal: R,
|
|
19397
19397
|
openReason: S,
|
|
19398
19398
|
openMethod: P,
|
|
19399
|
-
triggerElement:
|
|
19400
|
-
} = kn(), L = VO(), M = mT(),
|
|
19399
|
+
triggerElement: N
|
|
19400
|
+
} = kn(), L = VO(), M = mT(), _ = PO({
|
|
19401
19401
|
anchor: s,
|
|
19402
19402
|
floatingRootContext: b,
|
|
19403
19403
|
positionMethod: i,
|
|
@@ -19420,14 +19420,14 @@ const Vg = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
19420
19420
|
role: "presentation",
|
|
19421
19421
|
hidden: !x,
|
|
19422
19422
|
style: {
|
|
19423
|
-
...
|
|
19423
|
+
..._.positionerStyles,
|
|
19424
19424
|
...D
|
|
19425
19425
|
}
|
|
19426
19426
|
};
|
|
19427
|
-
}, [E, x,
|
|
19427
|
+
}, [E, x, _.positionerStyles]), k = f.useMemo(() => ({
|
|
19428
19428
|
props: O,
|
|
19429
|
-
...
|
|
19430
|
-
}), [O,
|
|
19429
|
+
..._
|
|
19430
|
+
}), [O, _]), C = f.useMemo(() => ({
|
|
19431
19431
|
open: E,
|
|
19432
19432
|
side: k.side,
|
|
19433
19433
|
align: k.align,
|
|
@@ -19442,7 +19442,7 @@ const Vg = /* @__PURE__ */ f.forwardRef(function(t, n) {
|
|
|
19442
19442
|
value: k,
|
|
19443
19443
|
children: [x && R === !0 && S !== "trigger-hover" && P !== "touch" && /* @__PURE__ */ A(Hl, {
|
|
19444
19444
|
inert: Rg(!E),
|
|
19445
|
-
cutout:
|
|
19445
|
+
cutout: N
|
|
19446
19446
|
}), /* @__PURE__ */ A(gT, {
|
|
19447
19447
|
id: M,
|
|
19448
19448
|
children: I
|
|
@@ -19678,16 +19678,16 @@ function GO() {
|
|
|
19678
19678
|
return u.Date.now();
|
|
19679
19679
|
};
|
|
19680
19680
|
function v(w, R, S) {
|
|
19681
|
-
var P,
|
|
19681
|
+
var P, N, L, M, _, O, k = 0, C = !1, I = !1, D = !0;
|
|
19682
19682
|
if (typeof w != "function")
|
|
19683
19683
|
throw new TypeError(e);
|
|
19684
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);
|
|
19685
19685
|
function T(j) {
|
|
19686
|
-
var Y = P, ne =
|
|
19687
|
-
return P =
|
|
19686
|
+
var Y = P, ne = N;
|
|
19687
|
+
return P = N = void 0, k = j, M = w.apply(ne, Y), M;
|
|
19688
19688
|
}
|
|
19689
19689
|
function $(j) {
|
|
19690
|
-
return k = j,
|
|
19690
|
+
return k = j, _ = setTimeout(V, R), C ? T(j) : M;
|
|
19691
19691
|
}
|
|
19692
19692
|
function F(j) {
|
|
19693
19693
|
var Y = j - O, ne = j - k, te = R - Y;
|
|
@@ -19701,26 +19701,26 @@ function GO() {
|
|
|
19701
19701
|
var j = m();
|
|
19702
19702
|
if (W(j))
|
|
19703
19703
|
return z(j);
|
|
19704
|
-
|
|
19704
|
+
_ = setTimeout(V, F(j));
|
|
19705
19705
|
}
|
|
19706
19706
|
function z(j) {
|
|
19707
|
-
return
|
|
19707
|
+
return _ = void 0, D && P ? T(j) : (P = N = void 0, M);
|
|
19708
19708
|
}
|
|
19709
19709
|
function Z() {
|
|
19710
|
-
|
|
19710
|
+
_ !== void 0 && clearTimeout(_), k = 0, P = O = N = _ = void 0;
|
|
19711
19711
|
}
|
|
19712
19712
|
function q() {
|
|
19713
|
-
return
|
|
19713
|
+
return _ === void 0 ? M : z(m());
|
|
19714
19714
|
}
|
|
19715
19715
|
function H() {
|
|
19716
19716
|
var j = m(), Y = W(j);
|
|
19717
|
-
if (P = arguments,
|
|
19718
|
-
if (
|
|
19717
|
+
if (P = arguments, N = this, O = j, Y) {
|
|
19718
|
+
if (_ === void 0)
|
|
19719
19719
|
return $(O);
|
|
19720
19720
|
if (I)
|
|
19721
|
-
return
|
|
19721
|
+
return _ = setTimeout(V, R), T(O);
|
|
19722
19722
|
}
|
|
19723
|
-
return
|
|
19723
|
+
return _ === void 0 && (_ = setTimeout(V, R)), M;
|
|
19724
19724
|
}
|
|
19725
19725
|
return H.cancel = Z, H.flush = q, H;
|
|
19726
19726
|
}
|
|
@@ -19933,7 +19933,7 @@ function ek(...e) {
|
|
|
19933
19933
|
var Wo = globalThis?.document ? f.useLayoutEffect : () => {
|
|
19934
19934
|
}, tk = f[" useId ".trim().toString()] || (() => {
|
|
19935
19935
|
}), nk = 0;
|
|
19936
|
-
function
|
|
19936
|
+
function _a(e) {
|
|
19937
19937
|
const [t, n] = f.useState(tk());
|
|
19938
19938
|
return Wo(() => {
|
|
19939
19939
|
n((r) => r ?? String(nk++));
|
|
@@ -20087,8 +20087,8 @@ var mk = "DismissableLayer", kc = "dismissableLayer.update", gk = "dismissableLa
|
|
|
20087
20087
|
onDismiss: a,
|
|
20088
20088
|
...l
|
|
20089
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) => {
|
|
20090
|
-
const P = S.target,
|
|
20091
|
-
!x ||
|
|
20090
|
+
const P = S.target, N = [...c.branches].some((L) => L.contains(P));
|
|
20091
|
+
!x || N || (o?.(S), i?.(S), S.defaultPrevented || a?.());
|
|
20092
20092
|
}, h), R = Ek((S) => {
|
|
20093
20093
|
const P = S.target;
|
|
20094
20094
|
[...c.branches].some((L) => L.contains(P)) || (s?.(S), i?.(S), S.defaultPrevented || a?.());
|
|
@@ -20188,7 +20188,7 @@ function Xg(e, t, n, { discrete: r }) {
|
|
|
20188
20188
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
20189
20189
|
t && o.addEventListener(e, t, { once: !0 }), r ? pk(o, s) : o.dispatchEvent(s);
|
|
20190
20190
|
}
|
|
20191
|
-
var
|
|
20191
|
+
var Na = "focusScope.autoFocusOnMount", Aa = "focusScope.autoFocusOnUnmount", of = { bubbles: !1, cancelable: !0 }, xk = "FocusScope", Kg = f.forwardRef((e, t) => {
|
|
20192
20192
|
const {
|
|
20193
20193
|
loop: n = !1,
|
|
20194
20194
|
trapped: r = !1,
|
|
@@ -20230,13 +20230,13 @@ var Aa = "focusScope.autoFocusOnMount", _a = "focusScope.autoFocusOnUnmount", of
|
|
|
20230
20230
|
af.add(p);
|
|
20231
20231
|
const m = document.activeElement;
|
|
20232
20232
|
if (!a.contains(m)) {
|
|
20233
|
-
const y = new CustomEvent(
|
|
20234
|
-
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));
|
|
20235
20235
|
}
|
|
20236
20236
|
return () => {
|
|
20237
|
-
a.removeEventListener(
|
|
20238
|
-
const y = new CustomEvent(
|
|
20239
|
-
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);
|
|
20240
20240
|
}, 0);
|
|
20241
20241
|
};
|
|
20242
20242
|
}
|
|
@@ -20327,11 +20327,11 @@ function Ik(e, t) {
|
|
|
20327
20327
|
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
20328
20328
|
}
|
|
20329
20329
|
var Ki = (e) => {
|
|
20330
|
-
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));
|
|
20331
20331
|
return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: s }) : null;
|
|
20332
20332
|
};
|
|
20333
20333
|
Ki.displayName = "Presence";
|
|
20334
|
-
function
|
|
20334
|
+
function _k(e) {
|
|
20335
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, {
|
|
20336
20336
|
mounted: {
|
|
20337
20337
|
UNMOUNT: "unmounted",
|
|
@@ -20346,19 +20346,19 @@ function Nk(e) {
|
|
|
20346
20346
|
}
|
|
20347
20347
|
});
|
|
20348
20348
|
return f.useEffect(() => {
|
|
20349
|
-
const c =
|
|
20349
|
+
const c = _s(r.current);
|
|
20350
20350
|
s.current = a === "mounted" ? c : "none";
|
|
20351
20351
|
}, [a]), Wo(() => {
|
|
20352
20352
|
const c = r.current, u = o.current;
|
|
20353
20353
|
if (u !== e) {
|
|
20354
|
-
const h = s.current, p =
|
|
20354
|
+
const h = s.current, p = _s(c);
|
|
20355
20355
|
e ? l("MOUNT") : p === "none" || c?.display === "none" ? l("UNMOUNT") : l(u && h !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
20356
20356
|
}
|
|
20357
20357
|
}, [e, l]), Wo(() => {
|
|
20358
20358
|
if (t) {
|
|
20359
20359
|
let c;
|
|
20360
20360
|
const u = t.ownerDocument.defaultView ?? window, d = (p) => {
|
|
20361
|
-
const m =
|
|
20361
|
+
const m = _s(r.current).includes(p.animationName);
|
|
20362
20362
|
if (p.target === t && m && (l("ANIMATION_END"), !o.current)) {
|
|
20363
20363
|
const v = t.style.animationFillMode;
|
|
20364
20364
|
t.style.animationFillMode = "forwards", c = u.setTimeout(() => {
|
|
@@ -20366,7 +20366,7 @@ function Nk(e) {
|
|
|
20366
20366
|
});
|
|
20367
20367
|
}
|
|
20368
20368
|
}, h = (p) => {
|
|
20369
|
-
p.target === t && (s.current =
|
|
20369
|
+
p.target === t && (s.current = _s(r.current));
|
|
20370
20370
|
};
|
|
20371
20371
|
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
20372
20372
|
u.clearTimeout(c), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
@@ -20380,15 +20380,15 @@ function Nk(e) {
|
|
|
20380
20380
|
}, [])
|
|
20381
20381
|
};
|
|
20382
20382
|
}
|
|
20383
|
-
function
|
|
20383
|
+
function _s(e) {
|
|
20384
20384
|
return e?.animationName || "none";
|
|
20385
20385
|
}
|
|
20386
|
-
function
|
|
20386
|
+
function Nk(e) {
|
|
20387
20387
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
20388
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);
|
|
20389
20389
|
}
|
|
20390
20390
|
var Da = 0;
|
|
20391
|
-
function
|
|
20391
|
+
function Ak() {
|
|
20392
20392
|
f.useEffect(() => {
|
|
20393
20393
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
20394
20394
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? lf()), document.body.insertAdjacentElement("beforeend", e[1] ?? lf()), Da++, () => {
|
|
@@ -20672,12 +20672,12 @@ var Yk = function() {
|
|
|
20672
20672
|
}, Pc = !1;
|
|
20673
20673
|
if (typeof window < "u")
|
|
20674
20674
|
try {
|
|
20675
|
-
var
|
|
20675
|
+
var Ns = Object.defineProperty({}, "passive", {
|
|
20676
20676
|
get: function() {
|
|
20677
20677
|
return Pc = !0, !0;
|
|
20678
20678
|
}
|
|
20679
20679
|
});
|
|
20680
|
-
window.addEventListener("test",
|
|
20680
|
+
window.addEventListener("test", Ns, Ns), window.removeEventListener("test", Ns, Ns);
|
|
20681
20681
|
} catch {
|
|
20682
20682
|
Pc = !1;
|
|
20683
20683
|
}
|
|
@@ -20744,7 +20744,7 @@ var Pr = Pc ? { passive: !1 } : !1, nP = function(e) {
|
|
|
20744
20744
|
l && (t.contains(a) || t === a)
|
|
20745
20745
|
);
|
|
20746
20746
|
return (u && Math.abs(d) < 1 || !u && Math.abs(h) < 1) && (c = !0), c;
|
|
20747
|
-
},
|
|
20747
|
+
}, As = function(e) {
|
|
20748
20748
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
20749
20749
|
}, pf = function(e) {
|
|
20750
20750
|
return [e.deltaX, e.deltaY];
|
|
@@ -20778,7 +20778,7 @@ function fP(e) {
|
|
|
20778
20778
|
var a = f.useCallback(function(m, v) {
|
|
20779
20779
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
20780
20780
|
return !i.current.allowPinchZoom;
|
|
20781
|
-
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";
|
|
20782
20782
|
if ("touches" in m && S === "h" && R.type === "range")
|
|
20783
20783
|
return !1;
|
|
20784
20784
|
var P = ff(S, R);
|
|
@@ -20788,12 +20788,12 @@ function fP(e) {
|
|
|
20788
20788
|
return !1;
|
|
20789
20789
|
if (!r.current && "changedTouches" in m && (E || x) && (r.current = w), !w)
|
|
20790
20790
|
return !0;
|
|
20791
|
-
var
|
|
20792
|
-
return cP(
|
|
20791
|
+
var N = r.current || w;
|
|
20792
|
+
return cP(N, v, m, N === "h" ? E : x);
|
|
20793
20793
|
}, []), l = f.useCallback(function(m) {
|
|
20794
20794
|
var v = m;
|
|
20795
20795
|
if (!(!Ir.length || Ir[Ir.length - 1] !== s)) {
|
|
20796
|
-
var y = "deltaY" in v ? pf(v) :
|
|
20796
|
+
var y = "deltaY" in v ? pf(v) : As(v), b = t.current.filter(function(w) {
|
|
20797
20797
|
return w.name === v.type && (w.target === v.target || v.target === w.shadowParent) && lP(w.delta, y);
|
|
20798
20798
|
})[0];
|
|
20799
20799
|
if (b && b.should) {
|
|
@@ -20815,11 +20815,11 @@ function fP(e) {
|
|
|
20815
20815
|
});
|
|
20816
20816
|
}, 1);
|
|
20817
20817
|
}, []), u = f.useCallback(function(m) {
|
|
20818
|
-
n.current =
|
|
20818
|
+
n.current = As(m), r.current = void 0;
|
|
20819
20819
|
}, []), d = f.useCallback(function(m) {
|
|
20820
20820
|
c(m.type, pf(m), m.target, a(m, e.lockRef.current));
|
|
20821
20821
|
}, []), h = f.useCallback(function(m) {
|
|
20822
|
-
c(m.type,
|
|
20822
|
+
c(m.type, As(m), m.target, a(m, e.lockRef.current));
|
|
20823
20823
|
}, []);
|
|
20824
20824
|
f.useEffect(function() {
|
|
20825
20825
|
return Ir.push(s), e.setCallbacks({
|
|
@@ -20855,7 +20855,7 @@ var mP = function(e) {
|
|
|
20855
20855
|
return null;
|
|
20856
20856
|
var t = Array.isArray(e) ? e[0] : e;
|
|
20857
20857
|
return t.ownerDocument.body;
|
|
20858
|
-
},
|
|
20858
|
+
}, _r = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Ms = {}, Fa = 0, av = function(e) {
|
|
20859
20859
|
return e && (e.host || av(e.parentNode));
|
|
20860
20860
|
}, gP = function(e, t) {
|
|
20861
20861
|
return t.map(function(n) {
|
|
@@ -20879,8 +20879,8 @@ var mP = function(e) {
|
|
|
20879
20879
|
u(h);
|
|
20880
20880
|
else
|
|
20881
20881
|
try {
|
|
20882
|
-
var p = h.getAttribute(r), g = p !== null && p !== "false", m = (
|
|
20883
|
-
|
|
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");
|
|
20884
20884
|
} catch (y) {
|
|
20885
20885
|
console.error("aria-hidden: cannot operate on ", h, y);
|
|
20886
20886
|
}
|
|
@@ -20888,9 +20888,9 @@ var mP = function(e) {
|
|
|
20888
20888
|
};
|
|
20889
20889
|
return u(t), a.clear(), Fa++, function() {
|
|
20890
20890
|
i.forEach(function(d) {
|
|
20891
|
-
var h =
|
|
20892
|
-
|
|
20893
|
-
}), 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 = {});
|
|
20894
20894
|
};
|
|
20895
20895
|
}, yP = function(e, t, n) {
|
|
20896
20896
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -20918,9 +20918,9 @@ var mP = function(e) {
|
|
|
20918
20918
|
scope: t,
|
|
20919
20919
|
triggerRef: a,
|
|
20920
20920
|
contentRef: l,
|
|
20921
|
-
contentId:
|
|
20922
|
-
titleId:
|
|
20923
|
-
descriptionId:
|
|
20921
|
+
contentId: _a(),
|
|
20922
|
+
titleId: _a(),
|
|
20923
|
+
descriptionId: _a(),
|
|
20924
20924
|
open: c,
|
|
20925
20925
|
onOpenChange: u,
|
|
20926
20926
|
onOpenToggle: f.useCallback(() => u((d) => !d), [u]),
|
|
@@ -21038,7 +21038,7 @@ var SP = f.forwardRef(
|
|
|
21038
21038
|
), gv = f.forwardRef(
|
|
21039
21039
|
(e, t) => {
|
|
21040
21040
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = Jt(yr, n), l = f.useRef(null), c = Cr(t, l);
|
|
21041
|
-
return
|
|
21041
|
+
return Ak(), /* @__PURE__ */ ce(Ql, { children: [
|
|
21042
21042
|
/* @__PURE__ */ A(
|
|
21043
21043
|
Kg,
|
|
21044
21044
|
{
|
|
@@ -21119,7 +21119,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
21119
21119
|
const o = e.current?.getAttribute("aria-describedby");
|
|
21120
21120
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
21121
21121
|
}, [r, e, t]), null;
|
|
21122
|
-
}, IP = lv,
|
|
21122
|
+
}, IP = lv, _P = dv, NP = pv, AP = hv, DP = mv, MP = vv;
|
|
21123
21123
|
function LP(e) {
|
|
21124
21124
|
if (typeof document > "u") return;
|
|
21125
21125
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
@@ -21386,7 +21386,7 @@ const Ke = {
|
|
|
21386
21386
|
0,
|
|
21387
21387
|
1
|
|
21388
21388
|
]
|
|
21389
|
-
}, 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";
|
|
21390
21390
|
function Pv(e) {
|
|
21391
21391
|
const t = oe.useRef(e);
|
|
21392
21392
|
return oe.useEffect(() => {
|
|
@@ -21464,15 +21464,15 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21464
21464
|
height: 0
|
|
21465
21465
|
};
|
|
21466
21466
|
var P;
|
|
21467
|
-
return (P = n?.map((
|
|
21468
|
-
const L = typeof
|
|
21467
|
+
return (P = n?.map((N) => {
|
|
21468
|
+
const L = typeof N == "string";
|
|
21469
21469
|
let M = 0;
|
|
21470
|
-
if (L && (M = parseInt(
|
|
21471
|
-
const O = L ? M : h ?
|
|
21470
|
+
if (L && (M = parseInt(N, 10)), ot(a)) {
|
|
21471
|
+
const O = L ? M : h ? N * S.height : 0;
|
|
21472
21472
|
return h ? a === "bottom" ? S.height - O : -S.height + O : O;
|
|
21473
21473
|
}
|
|
21474
|
-
const
|
|
21475
|
-
return h ? a === "right" ? S.width -
|
|
21474
|
+
const _ = L ? M : h ? N * S.width : 0;
|
|
21475
|
+
return h ? a === "right" ? S.width - _ : -S.width + _ : _;
|
|
21476
21476
|
})) != null ? P : [];
|
|
21477
21477
|
}, [
|
|
21478
21478
|
n,
|
|
@@ -21483,17 +21483,17 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21483
21483
|
m
|
|
21484
21484
|
]), E = oe.useCallback((S) => {
|
|
21485
21485
|
var P;
|
|
21486
|
-
const
|
|
21487
|
-
i(
|
|
21486
|
+
const N = (P = y?.findIndex((L) => L === S)) != null ? P : null;
|
|
21487
|
+
i(N), ct(r.current, {
|
|
21488
21488
|
transition: `transform ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,
|
|
21489
21489
|
transform: ot(a) ? `translate3d(0, ${S}px, 0)` : `translate3d(${S}px, 0, 0)`
|
|
21490
|
-
}), y &&
|
|
21490
|
+
}), y && N !== y.length - 1 && s !== void 0 && N !== s && N < s ? ct(o.current, {
|
|
21491
21491
|
transition: `opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,
|
|
21492
21492
|
opacity: "0"
|
|
21493
21493
|
}) : ct(o.current, {
|
|
21494
21494
|
transition: `opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`,
|
|
21495
21495
|
opacity: "1"
|
|
21496
|
-
}), d(n?.[Math.max(
|
|
21496
|
+
}), d(n?.[Math.max(N, 0)]);
|
|
21497
21497
|
}, [
|
|
21498
21498
|
r.current,
|
|
21499
21499
|
n,
|
|
@@ -21505,7 +21505,7 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21505
21505
|
oe.useEffect(() => {
|
|
21506
21506
|
if (u || e) {
|
|
21507
21507
|
var S;
|
|
21508
|
-
const P = (S = n?.findIndex((
|
|
21508
|
+
const P = (S = n?.findIndex((N) => N === e || N === u)) != null ? S : -1;
|
|
21509
21509
|
y && P !== -1 && typeof y[P] == "number" && E(y[P]);
|
|
21510
21510
|
}
|
|
21511
21511
|
}, [
|
|
@@ -21515,21 +21515,21 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21515
21515
|
y,
|
|
21516
21516
|
E
|
|
21517
21517
|
]);
|
|
21518
|
-
function x({ draggedDistance: S, closeDrawer: P, velocity:
|
|
21518
|
+
function x({ draggedDistance: S, closeDrawer: P, velocity: N, dismissible: L }) {
|
|
21519
21519
|
if (s === void 0) return;
|
|
21520
|
-
const M = a === "bottom" || a === "right" ? (b ?? 0) - S : (b ?? 0) + S,
|
|
21521
|
-
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, {
|
|
21522
21522
|
transition: `opacity ${Ke.DURATION}s cubic-bezier(${Ke.EASE.join(",")})`
|
|
21523
|
-
}), !c &&
|
|
21523
|
+
}), !c && N > 2 && !k) {
|
|
21524
21524
|
L ? P() : E(y[0]);
|
|
21525
21525
|
return;
|
|
21526
21526
|
}
|
|
21527
|
-
if (!c &&
|
|
21527
|
+
if (!c && N > 2 && k && y && n) {
|
|
21528
21528
|
E(y[n.length - 1]);
|
|
21529
21529
|
return;
|
|
21530
21530
|
}
|
|
21531
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;
|
|
21532
|
-
if (
|
|
21532
|
+
if (N > Ov && Math.abs(S) < I * 0.4) {
|
|
21533
21533
|
const D = k ? 1 : -1;
|
|
21534
21534
|
if (D > 0 && g && n) {
|
|
21535
21535
|
E(y[n.length - 1]);
|
|
@@ -21550,13 +21550,13 @@ function t2({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
|
|
|
21550
21550
|
}
|
|
21551
21551
|
function R(S, P) {
|
|
21552
21552
|
if (!n || typeof m != "number" || !y || s === void 0) return null;
|
|
21553
|
-
const
|
|
21553
|
+
const N = m === s - 1;
|
|
21554
21554
|
if (m >= s && P)
|
|
21555
21555
|
return 0;
|
|
21556
|
-
if (
|
|
21557
|
-
if (!v && !
|
|
21558
|
-
const M =
|
|
21559
|
-
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;
|
|
21560
21560
|
}
|
|
21561
21561
|
return {
|
|
21562
21562
|
isLastSnapPoint: g,
|
|
@@ -21575,7 +21575,7 @@ const n2 = () => () => {
|
|
|
21575
21575
|
function r2() {
|
|
21576
21576
|
const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = as(), s = oe.useRef(null), i = Ga(() => document.body.style.backgroundColor, []);
|
|
21577
21577
|
function a() {
|
|
21578
|
-
return (window.innerWidth -
|
|
21578
|
+
return (window.innerWidth - _c) / window.innerWidth;
|
|
21579
21579
|
}
|
|
21580
21580
|
oe.useEffect(() => {
|
|
21581
21581
|
if (t && n) {
|
|
@@ -21680,13 +21680,13 @@ function o2({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
|
|
|
21680
21680
|
restorePositionSetting: u
|
|
21681
21681
|
};
|
|
21682
21682
|
}
|
|
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:
|
|
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 }) {
|
|
21684
21684
|
var O, k;
|
|
21685
21685
|
const [C = !1, I] = Iv({
|
|
21686
21686
|
defaultProp: w,
|
|
21687
21687
|
prop: e,
|
|
21688
21688
|
onChange: (ie) => {
|
|
21689
|
-
t?.(ie), !ie && !b &&
|
|
21689
|
+
t?.(ie), !ie && !b && _e(), setTimeout(() => {
|
|
21690
21690
|
L?.(ie);
|
|
21691
21691
|
}, Ke.DURATION * 1e3), ie && !v && typeof window < "u" && window.requestAnimationFrame(() => {
|
|
21692
21692
|
document.body.style.pointerEvents = "auto";
|
|
@@ -21694,7 +21694,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21694
21694
|
}
|
|
21695
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) => {
|
|
21696
21696
|
s && ie === he.length - 1 && (Z.current = /* @__PURE__ */ new Date());
|
|
21697
|
-
}, []), { 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({
|
|
21698
21698
|
snapPoints: s,
|
|
21699
21699
|
activeSnapPointProp: p,
|
|
21700
21700
|
setActiveSnapPointProp: g,
|
|
@@ -21707,9 +21707,9 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21707
21707
|
snapToSequentialPoint: S
|
|
21708
21708
|
});
|
|
21709
21709
|
UP({
|
|
21710
|
-
isDisabled: !C || $ || !v || W || !D || !
|
|
21710
|
+
isDisabled: !C || $ || !v || W || !D || !N || !R
|
|
21711
21711
|
});
|
|
21712
|
-
const { restorePositionSetting:
|
|
21712
|
+
const { restorePositionSetting: _e } = o2({
|
|
21713
21713
|
isOpen: C,
|
|
21714
21714
|
modal: v,
|
|
21715
21715
|
nested: b ?? !1,
|
|
@@ -21718,7 +21718,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21718
21718
|
noBodyStyles: E
|
|
21719
21719
|
});
|
|
21720
21720
|
function we() {
|
|
21721
|
-
return (window.innerWidth -
|
|
21721
|
+
return (window.innerWidth - _c) / window.innerWidth;
|
|
21722
21722
|
}
|
|
21723
21723
|
function ke(ie) {
|
|
21724
21724
|
var ve, Te;
|
|
@@ -21775,7 +21775,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21775
21775
|
return;
|
|
21776
21776
|
}
|
|
21777
21777
|
const Qt = 1 - bt;
|
|
21778
|
-
if ((
|
|
21778
|
+
if ((Ne || h && G === h - 1) && (r?.(ie, bt), ct(z.current, {
|
|
21779
21779
|
opacity: `${Qt}`,
|
|
21780
21780
|
transition: "none"
|
|
21781
21781
|
}, !0)), tt && z.current && i) {
|
|
@@ -21801,7 +21801,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21801
21801
|
}, []), oe.useEffect(() => {
|
|
21802
21802
|
var ie;
|
|
21803
21803
|
function ve() {
|
|
21804
|
-
if (!U.current || !
|
|
21804
|
+
if (!U.current || !N) return;
|
|
21805
21805
|
const Te = document.activeElement;
|
|
21806
21806
|
if (Ic(Te) || Q.current) {
|
|
21807
21807
|
var Ee;
|
|
@@ -21817,7 +21817,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21817
21817
|
if (X.current = tt, Ct > Le || Q.current) {
|
|
21818
21818
|
const Qt = U.current.getBoundingClientRect().height;
|
|
21819
21819
|
let Rt = Qt;
|
|
21820
|
-
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`;
|
|
21821
21821
|
} else $P() || (U.current.style.height = `${re.current}px`);
|
|
21822
21822
|
s && s.length > 0 && !Q.current ? U.current.style.bottom = "0px" : U.current.style.bottom = `${Math.max(tt, 0)}px`;
|
|
21823
21823
|
}
|
|
@@ -21961,7 +21961,7 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21961
21961
|
handleOnly: d,
|
|
21962
21962
|
isOpen: C,
|
|
21963
21963
|
isDragging: $,
|
|
21964
|
-
shouldFade:
|
|
21964
|
+
shouldFade: Ne,
|
|
21965
21965
|
closeDrawer: et,
|
|
21966
21966
|
onNestedDrag: ye,
|
|
21967
21967
|
onNestedOpenChange: Lt,
|
|
@@ -21975,18 +21975,18 @@ function s2({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, sn
|
|
|
21975
21975
|
setBackgroundColorOnScale: a,
|
|
21976
21976
|
noBodyStyles: E,
|
|
21977
21977
|
container: M,
|
|
21978
|
-
autoFocus:
|
|
21978
|
+
autoFocus: _
|
|
21979
21979
|
}
|
|
21980
21980
|
}, n));
|
|
21981
21981
|
}
|
|
21982
|
-
const
|
|
21982
|
+
const _v = /* @__PURE__ */ oe.forwardRef(function({ ...e }, t) {
|
|
21983
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;
|
|
21984
21984
|
if (!a)
|
|
21985
21985
|
return null;
|
|
21986
21986
|
const d = oe.useCallback((h) => o(h), [
|
|
21987
21987
|
o
|
|
21988
21988
|
]);
|
|
21989
|
-
return /* @__PURE__ */ oe.createElement(
|
|
21989
|
+
return /* @__PURE__ */ oe.createElement(AP, {
|
|
21990
21990
|
onMouseUp: d,
|
|
21991
21991
|
ref: c,
|
|
21992
21992
|
"data-vaul-overlay": "",
|
|
@@ -21996,12 +21996,12 @@ const Nv = /* @__PURE__ */ oe.forwardRef(function({ ...e }, t) {
|
|
|
21996
21996
|
...e
|
|
21997
21997
|
});
|
|
21998
21998
|
});
|
|
21999
|
-
|
|
22000
|
-
const
|
|
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),
|
|
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;
|
|
22002
22002
|
r2();
|
|
22003
22003
|
const M = (O, k, C = 0) => {
|
|
22004
|
-
if (
|
|
22004
|
+
if (N.current) return !0;
|
|
22005
22005
|
const I = Math.abs(O.y), D = Math.abs(O.x), T = D > I, $ = [
|
|
22006
22006
|
"bottom",
|
|
22007
22007
|
"right"
|
|
@@ -22011,15 +22011,15 @@ const Av = /* @__PURE__ */ oe.forwardRef(function({ onPointerDownOutside: e, sty
|
|
|
22011
22011
|
return T;
|
|
22012
22012
|
} else if (!(O.y * $ < 0) && I >= 0 && I <= C)
|
|
22013
22013
|
return !T;
|
|
22014
|
-
return
|
|
22014
|
+
return N.current = !0, !0;
|
|
22015
22015
|
};
|
|
22016
22016
|
oe.useEffect(() => {
|
|
22017
22017
|
L && window.requestAnimationFrame(() => {
|
|
22018
22018
|
w(!0);
|
|
22019
22019
|
});
|
|
22020
22020
|
}, []);
|
|
22021
|
-
function
|
|
22022
|
-
S.current = null,
|
|
22021
|
+
function _(O) {
|
|
22022
|
+
S.current = null, N.current = !1, a(O);
|
|
22023
22023
|
}
|
|
22024
22024
|
return /* @__PURE__ */ oe.createElement(DP, {
|
|
22025
22025
|
"data-vaul-drawer-direction": g,
|
|
@@ -22065,17 +22065,17 @@ const Av = /* @__PURE__ */ oe.forwardRef(function({ onPointerDownOutside: e, sty
|
|
|
22065
22065
|
}, g, I) ? l(O) : (Math.abs(C) > I || Math.abs(k) > I) && (S.current = null);
|
|
22066
22066
|
},
|
|
22067
22067
|
onPointerUp: (O) => {
|
|
22068
|
-
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);
|
|
22069
22069
|
},
|
|
22070
22070
|
onPointerOut: (O) => {
|
|
22071
|
-
r.onPointerOut == null || r.onPointerOut.call(r, O),
|
|
22071
|
+
r.onPointerOut == null || r.onPointerOut.call(r, O), _(P.current);
|
|
22072
22072
|
},
|
|
22073
22073
|
onContextMenu: (O) => {
|
|
22074
|
-
r.onContextMenu == null || r.onContextMenu.call(r, O), P.current &&
|
|
22074
|
+
r.onContextMenu == null || r.onContextMenu.call(r, O), P.current && _(P.current);
|
|
22075
22075
|
}
|
|
22076
22076
|
});
|
|
22077
22077
|
});
|
|
22078
|
-
|
|
22078
|
+
Nv.displayName = "Drawer.Content";
|
|
22079
22079
|
const i2 = 250, a2 = 120, c2 = /* @__PURE__ */ oe.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
|
|
22080
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);
|
|
22081
22081
|
function v() {
|
|
@@ -22136,16 +22136,16 @@ const i2 = 250, a2 = 120, c2 = /* @__PURE__ */ oe.forwardRef(function({ preventC
|
|
|
22136
22136
|
c2.displayName = "Drawer.Handle";
|
|
22137
22137
|
function l2(e) {
|
|
22138
22138
|
const t = as(), { container: n = t.container, ...r } = e;
|
|
22139
|
-
return /* @__PURE__ */ oe.createElement(
|
|
22139
|
+
return /* @__PURE__ */ oe.createElement(NP, {
|
|
22140
22140
|
container: n,
|
|
22141
22141
|
...r
|
|
22142
22142
|
});
|
|
22143
22143
|
}
|
|
22144
|
-
const
|
|
22144
|
+
const Nr = {
|
|
22145
22145
|
Root: s2,
|
|
22146
|
-
Content:
|
|
22147
|
-
Overlay:
|
|
22148
|
-
Trigger:
|
|
22146
|
+
Content: Nv,
|
|
22147
|
+
Overlay: _v,
|
|
22148
|
+
Trigger: _P,
|
|
22149
22149
|
Portal: l2,
|
|
22150
22150
|
Title: MP
|
|
22151
22151
|
};
|
|
@@ -22171,7 +22171,7 @@ function bf({
|
|
|
22171
22171
|
}
|
|
22172
22172
|
),
|
|
22173
22173
|
/* @__PURE__ */ ce(
|
|
22174
|
-
|
|
22174
|
+
Ag,
|
|
22175
22175
|
{
|
|
22176
22176
|
style: { zIndex: a },
|
|
22177
22177
|
className: tn(
|
|
@@ -22180,18 +22180,18 @@ function bf({
|
|
|
22180
22180
|
),
|
|
22181
22181
|
children: [
|
|
22182
22182
|
t && /* @__PURE__ */ A(Mg, { className: tn("-mt-1.5 mb-1 text-lg font-medium", l?.title), children: t }),
|
|
22183
|
-
n && /* @__PURE__ */ A(
|
|
22184
|
-
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, {}) }),
|
|
22185
22185
|
/* @__PURE__ */ A("div", { children: r })
|
|
22186
22186
|
]
|
|
22187
22187
|
}
|
|
22188
22188
|
)
|
|
22189
22189
|
] })
|
|
22190
|
-
] }) : /* @__PURE__ */ ce(
|
|
22191
|
-
e && /* @__PURE__ */ A(
|
|
22192
|
-
/* @__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: [
|
|
22193
22193
|
/* @__PURE__ */ A(
|
|
22194
|
-
|
|
22194
|
+
Nr.Overlay,
|
|
22195
22195
|
{
|
|
22196
22196
|
style: { zIndex: a },
|
|
22197
22197
|
className: tn(
|
|
@@ -22201,7 +22201,7 @@ function bf({
|
|
|
22201
22201
|
}
|
|
22202
22202
|
),
|
|
22203
22203
|
/* @__PURE__ */ ce(
|
|
22204
|
-
|
|
22204
|
+
Nr.Content,
|
|
22205
22205
|
{
|
|
22206
22206
|
style: { zIndex: a },
|
|
22207
22207
|
className: tn(
|
|
@@ -22209,7 +22209,7 @@ function bf({
|
|
|
22209
22209
|
l?.mobilePopup
|
|
22210
22210
|
),
|
|
22211
22211
|
children: [
|
|
22212
|
-
/* @__PURE__ */ A(
|
|
22212
|
+
/* @__PURE__ */ A(Nr.Title, { className: "hidden" }),
|
|
22213
22213
|
/* @__PURE__ */ ce("div", { className: "p-4 bg-white rounded-t-xl", children: [
|
|
22214
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" }),
|
|
22215
22215
|
/* @__PURE__ */ A("div", { children: r })
|
|
@@ -22220,7 +22220,7 @@ function bf({
|
|
|
22220
22220
|
] })
|
|
22221
22221
|
] });
|
|
22222
22222
|
}
|
|
22223
|
-
function
|
|
22223
|
+
function Av({
|
|
22224
22224
|
checked: e,
|
|
22225
22225
|
onChange: t
|
|
22226
22226
|
}) {
|
|
@@ -22288,7 +22288,17 @@ function u2() {
|
|
|
22288
22288
|
password: a
|
|
22289
22289
|
}),
|
|
22290
22290
|
onSuccess: (v) => {
|
|
22291
|
-
|
|
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);
|
|
22292
22302
|
},
|
|
22293
22303
|
onError: (v) => {
|
|
22294
22304
|
r?.(v);
|
|
@@ -22352,8 +22362,8 @@ function u2() {
|
|
|
22352
22362
|
}
|
|
22353
22363
|
)
|
|
22354
22364
|
] }),
|
|
22355
|
-
/* @__PURE__ */ A(
|
|
22356
|
-
/* @__PURE__ */ A(
|
|
22365
|
+
/* @__PURE__ */ A(_l, {}),
|
|
22366
|
+
/* @__PURE__ */ A(Av, { checked: d, onChange: h })
|
|
22357
22367
|
] });
|
|
22358
22368
|
}
|
|
22359
22369
|
var d2 = function(e) {
|
|
@@ -22391,8 +22401,8 @@ function h2() {
|
|
|
22391
22401
|
} }, w = "en", R = {};
|
|
22392
22402
|
R[w] = b;
|
|
22393
22403
|
var S = "$isDayjsObject", P = function(k) {
|
|
22394
|
-
return k instanceof
|
|
22395
|
-
},
|
|
22404
|
+
return k instanceof _ || !(!k || !k[S]);
|
|
22405
|
+
}, N = function k(C, I, D) {
|
|
22396
22406
|
var T;
|
|
22397
22407
|
if (!C) return w;
|
|
22398
22408
|
if (typeof C == "string") {
|
|
@@ -22408,14 +22418,14 @@ function h2() {
|
|
|
22408
22418
|
}, L = function(k, C) {
|
|
22409
22419
|
if (P(k)) return k.clone();
|
|
22410
22420
|
var I = typeof C == "object" ? C : {};
|
|
22411
|
-
return I.date = k, I.args = arguments, new
|
|
22421
|
+
return I.date = k, I.args = arguments, new _(I);
|
|
22412
22422
|
}, M = x;
|
|
22413
|
-
M.l =
|
|
22423
|
+
M.l = N, M.i = P, M.w = function(k, C) {
|
|
22414
22424
|
return L(k, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
|
|
22415
22425
|
};
|
|
22416
|
-
var
|
|
22426
|
+
var _ = (function() {
|
|
22417
22427
|
function k(I) {
|
|
22418
|
-
this.$L =
|
|
22428
|
+
this.$L = N(I.locale, null, !0), this.parse(I), this.$x = this.$x || I.x || {}, this[S] = !0;
|
|
22419
22429
|
}
|
|
22420
22430
|
var C = k.prototype;
|
|
22421
22431
|
return C.parse = function(I) {
|
|
@@ -22615,7 +22625,7 @@ function h2() {
|
|
|
22615
22625
|
return R[this.$L];
|
|
22616
22626
|
}, C.locale = function(I, D) {
|
|
22617
22627
|
if (!I) return this.$L;
|
|
22618
|
-
var T = this.clone(), $ =
|
|
22628
|
+
var T = this.clone(), $ = N(I, D, !0);
|
|
22619
22629
|
return $ && (T.$L = $), T;
|
|
22620
22630
|
}, C.clone = function() {
|
|
22621
22631
|
return M.w(this.$d, this);
|
|
@@ -22628,14 +22638,14 @@ function h2() {
|
|
|
22628
22638
|
}, C.toString = function() {
|
|
22629
22639
|
return this.$d.toUTCString();
|
|
22630
22640
|
}, k;
|
|
22631
|
-
})(), O =
|
|
22641
|
+
})(), O = _.prototype;
|
|
22632
22642
|
return L.prototype = O, [["$ms", s], ["$s", i], ["$m", a], ["$H", l], ["$W", c], ["$M", d], ["$y", p], ["$D", g]].forEach((function(k) {
|
|
22633
22643
|
O[k[1]] = function(C) {
|
|
22634
22644
|
return this.$g(C, k[0], k[1]);
|
|
22635
22645
|
};
|
|
22636
22646
|
})), L.extend = function(k, C) {
|
|
22637
|
-
return k.$i || (k(C,
|
|
22638
|
-
}, L.locale =
|
|
22647
|
+
return k.$i || (k(C, _, L), k.$i = !0), L;
|
|
22648
|
+
}, L.locale = N, L.isDayjs = P, L.unix = function(k) {
|
|
22639
22649
|
return L(1e3 * k);
|
|
22640
22650
|
}, L.en = R[w], L.Ls = R, L.p = {}, L;
|
|
22641
22651
|
}));
|
|
@@ -22850,7 +22860,7 @@ class Tn extends Error {
|
|
|
22850
22860
|
}
|
|
22851
22861
|
}
|
|
22852
22862
|
Tn.create = (e) => new Tn(e);
|
|
22853
|
-
const
|
|
22863
|
+
const Nc = (e, t) => {
|
|
22854
22864
|
let n;
|
|
22855
22865
|
switch (e.code) {
|
|
22856
22866
|
case J.invalid_type:
|
|
@@ -22906,7 +22916,7 @@ const Ac = (e, t) => {
|
|
|
22906
22916
|
}
|
|
22907
22917
|
return { message: n };
|
|
22908
22918
|
};
|
|
22909
|
-
let b2 =
|
|
22919
|
+
let b2 = Nc;
|
|
22910
22920
|
function w2() {
|
|
22911
22921
|
return b2;
|
|
22912
22922
|
}
|
|
@@ -22943,7 +22953,7 @@ function se(e, t) {
|
|
|
22943
22953
|
// then schema-bound map if available
|
|
22944
22954
|
n,
|
|
22945
22955
|
// then global override map
|
|
22946
|
-
n ===
|
|
22956
|
+
n === Nc ? void 0 : Nc
|
|
22947
22957
|
// then global default map
|
|
22948
22958
|
].filter((o) => !!o)
|
|
22949
22959
|
});
|
|
@@ -23031,7 +23041,7 @@ function Ie(e) {
|
|
|
23031
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 };
|
|
23032
23042
|
}, description: o };
|
|
23033
23043
|
}
|
|
23034
|
-
class
|
|
23044
|
+
class Ae {
|
|
23035
23045
|
get description() {
|
|
23036
23046
|
return this._def.description;
|
|
23037
23047
|
}
|
|
@@ -23251,7 +23261,7 @@ class _e {
|
|
|
23251
23261
|
}
|
|
23252
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})+$";
|
|
23253
23263
|
let Ua;
|
|
23254
|
-
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}$`);
|
|
23255
23265
|
function Mv(e) {
|
|
23256
23266
|
let t = "[0-5]\\d";
|
|
23257
23267
|
e.precision ? t = `${t}\\.\\d{${e.precision}}` : e.precision == null && (t = `${t}(\\.\\d+)?`);
|
|
@@ -23267,7 +23277,7 @@ function V2(e) {
|
|
|
23267
23277
|
return n.push(e.local ? "Z?" : "Z"), e.offset && n.push("([+-]\\d{2}:?\\d{2})"), t = `${t}(${n.join("|")})`, new RegExp(`^${t}$`);
|
|
23268
23278
|
}
|
|
23269
23279
|
function B2(e, t) {
|
|
23270
|
-
return !!((t === "v4" || !t) &&
|
|
23280
|
+
return !!((t === "v4" || !t) && _2.test(e) || (t === "v6" || !t) && A2.test(e));
|
|
23271
23281
|
}
|
|
23272
23282
|
function W2(e, t) {
|
|
23273
23283
|
if (!O2.test(e))
|
|
@@ -23283,9 +23293,9 @@ function W2(e, t) {
|
|
|
23283
23293
|
}
|
|
23284
23294
|
}
|
|
23285
23295
|
function j2(e, t) {
|
|
23286
|
-
return !!((t === "v4" || !t) &&
|
|
23296
|
+
return !!((t === "v4" || !t) && N2.test(e) || (t === "v6" || !t) && D2.test(e));
|
|
23287
23297
|
}
|
|
23288
|
-
class Vn extends
|
|
23298
|
+
class Vn extends Ae {
|
|
23289
23299
|
_parse(t) {
|
|
23290
23300
|
if (this._def.coerce && (t.data = String(t.data)), this._getType(t) !== ae.string) {
|
|
23291
23301
|
const s = this._getOrReturnCtx(t);
|
|
@@ -23672,7 +23682,7 @@ function H2(e, t) {
|
|
|
23672
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(".", ""));
|
|
23673
23683
|
return s % i / 10 ** o;
|
|
23674
23684
|
}
|
|
23675
|
-
class Ho extends
|
|
23685
|
+
class Ho extends Ae {
|
|
23676
23686
|
constructor() {
|
|
23677
23687
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
23678
23688
|
}
|
|
@@ -23844,7 +23854,7 @@ Ho.create = (e) => new Ho({
|
|
|
23844
23854
|
coerce: e?.coerce || !1,
|
|
23845
23855
|
...Ie(e)
|
|
23846
23856
|
});
|
|
23847
|
-
class Uo extends
|
|
23857
|
+
class Uo extends Ae {
|
|
23848
23858
|
constructor() {
|
|
23849
23859
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
23850
23860
|
}
|
|
@@ -23977,7 +23987,7 @@ Uo.create = (e) => new Uo({
|
|
|
23977
23987
|
coerce: e?.coerce ?? !1,
|
|
23978
23988
|
...Ie(e)
|
|
23979
23989
|
});
|
|
23980
|
-
class Rf extends
|
|
23990
|
+
class Rf extends Ae {
|
|
23981
23991
|
_parse(t) {
|
|
23982
23992
|
if (this._def.coerce && (t.data = !!t.data), this._getType(t) !== ae.boolean) {
|
|
23983
23993
|
const r = this._getOrReturnCtx(t);
|
|
@@ -23995,7 +24005,7 @@ Rf.create = (e) => new Rf({
|
|
|
23995
24005
|
coerce: e?.coerce || !1,
|
|
23996
24006
|
...Ie(e)
|
|
23997
24007
|
});
|
|
23998
|
-
class wi extends
|
|
24008
|
+
class wi extends Ae {
|
|
23999
24009
|
_parse(t) {
|
|
24000
24010
|
if (this._def.coerce && (t.data = new Date(t.data)), this._getType(t) !== ae.date) {
|
|
24001
24011
|
const s = this._getOrReturnCtx(t);
|
|
@@ -24073,7 +24083,7 @@ wi.create = (e) => new wi({
|
|
|
24073
24083
|
typeName: Se.ZodDate,
|
|
24074
24084
|
...Ie(e)
|
|
24075
24085
|
});
|
|
24076
|
-
class Tf extends
|
|
24086
|
+
class Tf extends Ae {
|
|
24077
24087
|
_parse(t) {
|
|
24078
24088
|
if (this._getType(t) !== ae.symbol) {
|
|
24079
24089
|
const r = this._getOrReturnCtx(t);
|
|
@@ -24090,7 +24100,7 @@ Tf.create = (e) => new Tf({
|
|
|
24090
24100
|
typeName: Se.ZodSymbol,
|
|
24091
24101
|
...Ie(e)
|
|
24092
24102
|
});
|
|
24093
|
-
class Of extends
|
|
24103
|
+
class Of extends Ae {
|
|
24094
24104
|
_parse(t) {
|
|
24095
24105
|
if (this._getType(t) !== ae.undefined) {
|
|
24096
24106
|
const r = this._getOrReturnCtx(t);
|
|
@@ -24107,7 +24117,7 @@ Of.create = (e) => new Of({
|
|
|
24107
24117
|
typeName: Se.ZodUndefined,
|
|
24108
24118
|
...Ie(e)
|
|
24109
24119
|
});
|
|
24110
|
-
class kf extends
|
|
24120
|
+
class kf extends Ae {
|
|
24111
24121
|
_parse(t) {
|
|
24112
24122
|
if (this._getType(t) !== ae.null) {
|
|
24113
24123
|
const r = this._getOrReturnCtx(t);
|
|
@@ -24124,7 +24134,7 @@ kf.create = (e) => new kf({
|
|
|
24124
24134
|
typeName: Se.ZodNull,
|
|
24125
24135
|
...Ie(e)
|
|
24126
24136
|
});
|
|
24127
|
-
class Pf extends
|
|
24137
|
+
class Pf extends Ae {
|
|
24128
24138
|
constructor() {
|
|
24129
24139
|
super(...arguments), this._any = !0;
|
|
24130
24140
|
}
|
|
@@ -24136,7 +24146,7 @@ Pf.create = (e) => new Pf({
|
|
|
24136
24146
|
typeName: Se.ZodAny,
|
|
24137
24147
|
...Ie(e)
|
|
24138
24148
|
});
|
|
24139
|
-
class If extends
|
|
24149
|
+
class If extends Ae {
|
|
24140
24150
|
constructor() {
|
|
24141
24151
|
super(...arguments), this._unknown = !0;
|
|
24142
24152
|
}
|
|
@@ -24148,7 +24158,7 @@ If.create = (e) => new If({
|
|
|
24148
24158
|
typeName: Se.ZodUnknown,
|
|
24149
24159
|
...Ie(e)
|
|
24150
24160
|
});
|
|
24151
|
-
class Zn extends
|
|
24161
|
+
class Zn extends Ae {
|
|
24152
24162
|
_parse(t) {
|
|
24153
24163
|
const n = this._getOrReturnCtx(t);
|
|
24154
24164
|
return se(n, {
|
|
@@ -24162,7 +24172,7 @@ Zn.create = (e) => new Zn({
|
|
|
24162
24172
|
typeName: Se.ZodNever,
|
|
24163
24173
|
...Ie(e)
|
|
24164
24174
|
});
|
|
24165
|
-
class
|
|
24175
|
+
class _f extends Ae {
|
|
24166
24176
|
_parse(t) {
|
|
24167
24177
|
if (this._getType(t) !== ae.undefined) {
|
|
24168
24178
|
const r = this._getOrReturnCtx(t);
|
|
@@ -24175,11 +24185,11 @@ class Nf extends _e {
|
|
|
24175
24185
|
return Ht(t.data);
|
|
24176
24186
|
}
|
|
24177
24187
|
}
|
|
24178
|
-
|
|
24188
|
+
_f.create = (e) => new _f({
|
|
24179
24189
|
typeName: Se.ZodVoid,
|
|
24180
24190
|
...Ie(e)
|
|
24181
24191
|
});
|
|
24182
|
-
class cn extends
|
|
24192
|
+
class cn extends Ae {
|
|
24183
24193
|
_parse(t) {
|
|
24184
24194
|
const { ctx: n, status: r } = this._processInputParams(t), o = this._def;
|
|
24185
24195
|
if (n.parsedType !== ae.array)
|
|
@@ -24268,7 +24278,7 @@ function Dr(e) {
|
|
|
24268
24278
|
type: Dr(e.element)
|
|
24269
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;
|
|
24270
24280
|
}
|
|
24271
|
-
class st extends
|
|
24281
|
+
class st extends Ae {
|
|
24272
24282
|
constructor() {
|
|
24273
24283
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
24274
24284
|
}
|
|
@@ -24555,7 +24565,7 @@ st.lazycreate = (e, t) => new st({
|
|
|
24555
24565
|
typeName: Se.ZodObject,
|
|
24556
24566
|
...Ie(t)
|
|
24557
24567
|
});
|
|
24558
|
-
class Ei extends
|
|
24568
|
+
class Ei extends Ae {
|
|
24559
24569
|
_parse(t) {
|
|
24560
24570
|
const { ctx: n } = this._processInputParams(t), r = this._def.options;
|
|
24561
24571
|
function o(s) {
|
|
@@ -24628,14 +24638,14 @@ Ei.create = (e, t) => new Ei({
|
|
|
24628
24638
|
typeName: Se.ZodUnion,
|
|
24629
24639
|
...Ie(t)
|
|
24630
24640
|
});
|
|
24631
|
-
function
|
|
24641
|
+
function Ac(e, t) {
|
|
24632
24642
|
const n = Ln(e), r = Ln(t);
|
|
24633
24643
|
if (e === t)
|
|
24634
24644
|
return { valid: !0, data: e };
|
|
24635
24645
|
if (n === ae.object && r === ae.object) {
|
|
24636
24646
|
const o = Me.objectKeys(t), s = Me.objectKeys(e).filter((a) => o.indexOf(a) !== -1), i = { ...e, ...t };
|
|
24637
24647
|
for (const a of s) {
|
|
24638
|
-
const l =
|
|
24648
|
+
const l = Ac(e[a], t[a]);
|
|
24639
24649
|
if (!l.valid)
|
|
24640
24650
|
return { valid: !1 };
|
|
24641
24651
|
i[a] = l.data;
|
|
@@ -24646,7 +24656,7 @@ function _c(e, t) {
|
|
|
24646
24656
|
return { valid: !1 };
|
|
24647
24657
|
const o = [];
|
|
24648
24658
|
for (let s = 0; s < e.length; s++) {
|
|
24649
|
-
const i = e[s], a = t[s], l =
|
|
24659
|
+
const i = e[s], a = t[s], l = Ac(i, a);
|
|
24650
24660
|
if (!l.valid)
|
|
24651
24661
|
return { valid: !1 };
|
|
24652
24662
|
o.push(l.data);
|
|
@@ -24654,12 +24664,12 @@ function _c(e, t) {
|
|
|
24654
24664
|
return { valid: !0, data: o };
|
|
24655
24665
|
} else return n === ae.date && r === ae.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
|
|
24656
24666
|
}
|
|
24657
|
-
class xi extends
|
|
24667
|
+
class xi extends Ae {
|
|
24658
24668
|
_parse(t) {
|
|
24659
24669
|
const { status: n, ctx: r } = this._processInputParams(t), o = (s, i) => {
|
|
24660
24670
|
if (xf(s) || xf(i))
|
|
24661
24671
|
return xe;
|
|
24662
|
-
const a =
|
|
24672
|
+
const a = Ac(s.value, i.value);
|
|
24663
24673
|
return a.valid ? ((Sf(s) || Sf(i)) && n.dirty(), { status: n.value, value: a.data }) : (se(r, {
|
|
24664
24674
|
code: J.invalid_intersection_types
|
|
24665
24675
|
}), xe);
|
|
@@ -24692,7 +24702,7 @@ xi.create = (e, t, n) => new xi({
|
|
|
24692
24702
|
typeName: Se.ZodIntersection,
|
|
24693
24703
|
...Ie(n)
|
|
24694
24704
|
});
|
|
24695
|
-
class br extends
|
|
24705
|
+
class br extends Ae {
|
|
24696
24706
|
_parse(t) {
|
|
24697
24707
|
const { status: n, ctx: r } = this._processInputParams(t);
|
|
24698
24708
|
if (r.parsedType !== ae.array)
|
|
@@ -24742,7 +24752,7 @@ br.create = (e, t) => {
|
|
|
24742
24752
|
...Ie(t)
|
|
24743
24753
|
});
|
|
24744
24754
|
};
|
|
24745
|
-
class
|
|
24755
|
+
class Nf extends Ae {
|
|
24746
24756
|
get keySchema() {
|
|
24747
24757
|
return this._def.keyType;
|
|
24748
24758
|
}
|
|
@@ -24784,13 +24794,13 @@ class Af extends _e {
|
|
|
24784
24794
|
}
|
|
24785
24795
|
}
|
|
24786
24796
|
}
|
|
24787
|
-
|
|
24797
|
+
Nf.create = (e, t, n) => new Nf({
|
|
24788
24798
|
valueType: t,
|
|
24789
24799
|
keyType: e,
|
|
24790
24800
|
typeName: Se.ZodMap,
|
|
24791
24801
|
...Ie(n)
|
|
24792
24802
|
});
|
|
24793
|
-
class Go extends
|
|
24803
|
+
class Go extends Ae {
|
|
24794
24804
|
_parse(t) {
|
|
24795
24805
|
const { status: n, ctx: r } = this._processInputParams(t);
|
|
24796
24806
|
if (r.parsedType !== ae.set)
|
|
@@ -24854,7 +24864,7 @@ Go.create = (e, t) => new Go({
|
|
|
24854
24864
|
typeName: Se.ZodSet,
|
|
24855
24865
|
...Ie(t)
|
|
24856
24866
|
});
|
|
24857
|
-
class
|
|
24867
|
+
class Af extends Ae {
|
|
24858
24868
|
get schema() {
|
|
24859
24869
|
return this._def.getter();
|
|
24860
24870
|
}
|
|
@@ -24863,12 +24873,12 @@ class _f extends _e {
|
|
|
24863
24873
|
return this._def.getter()._parse({ data: n.data, path: n.path, parent: n });
|
|
24864
24874
|
}
|
|
24865
24875
|
}
|
|
24866
|
-
|
|
24876
|
+
Af.create = (e, t) => new Af({
|
|
24867
24877
|
getter: e,
|
|
24868
24878
|
typeName: Se.ZodLazy,
|
|
24869
24879
|
...Ie(t)
|
|
24870
24880
|
});
|
|
24871
|
-
class Df extends
|
|
24881
|
+
class Df extends Ae {
|
|
24872
24882
|
_parse(t) {
|
|
24873
24883
|
if (t.data !== this._def.value) {
|
|
24874
24884
|
const n = this._getOrReturnCtx(t);
|
|
@@ -24896,7 +24906,7 @@ function Lv(e, t) {
|
|
|
24896
24906
|
...Ie(t)
|
|
24897
24907
|
});
|
|
24898
24908
|
}
|
|
24899
|
-
class qr extends
|
|
24909
|
+
class qr extends Ae {
|
|
24900
24910
|
_parse(t) {
|
|
24901
24911
|
if (typeof t.data != "string") {
|
|
24902
24912
|
const n = this._getOrReturnCtx(t), r = this._def.values;
|
|
@@ -24951,7 +24961,7 @@ class qr extends _e {
|
|
|
24951
24961
|
}
|
|
24952
24962
|
}
|
|
24953
24963
|
qr.create = Lv;
|
|
24954
|
-
class Mf extends
|
|
24964
|
+
class Mf extends Ae {
|
|
24955
24965
|
_parse(t) {
|
|
24956
24966
|
const n = Me.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
|
|
24957
24967
|
if (r.parsedType !== ae.string && r.parsedType !== ae.number) {
|
|
@@ -24981,7 +24991,7 @@ Mf.create = (e, t) => new Mf({
|
|
|
24981
24991
|
typeName: Se.ZodNativeEnum,
|
|
24982
24992
|
...Ie(t)
|
|
24983
24993
|
});
|
|
24984
|
-
class Si extends
|
|
24994
|
+
class Si extends Ae {
|
|
24985
24995
|
unwrap() {
|
|
24986
24996
|
return this._def.type;
|
|
24987
24997
|
}
|
|
@@ -25005,7 +25015,7 @@ Si.create = (e, t) => new Si({
|
|
|
25005
25015
|
typeName: Se.ZodPromise,
|
|
25006
25016
|
...Ie(t)
|
|
25007
25017
|
});
|
|
25008
|
-
class Xr extends
|
|
25018
|
+
class Xr extends Ae {
|
|
25009
25019
|
innerType() {
|
|
25010
25020
|
return this._def.schema;
|
|
25011
25021
|
}
|
|
@@ -25097,7 +25107,7 @@ Xr.createWithPreprocess = (e, t, n) => new Xr({
|
|
|
25097
25107
|
typeName: Se.ZodEffects,
|
|
25098
25108
|
...Ie(n)
|
|
25099
25109
|
});
|
|
25100
|
-
class Un extends
|
|
25110
|
+
class Un extends Ae {
|
|
25101
25111
|
_parse(t) {
|
|
25102
25112
|
return this._getType(t) === ae.undefined ? Ht(void 0) : this._def.innerType._parse(t);
|
|
25103
25113
|
}
|
|
@@ -25110,7 +25120,7 @@ Un.create = (e, t) => new Un({
|
|
|
25110
25120
|
typeName: Se.ZodOptional,
|
|
25111
25121
|
...Ie(t)
|
|
25112
25122
|
});
|
|
25113
|
-
class Kr extends
|
|
25123
|
+
class Kr extends Ae {
|
|
25114
25124
|
_parse(t) {
|
|
25115
25125
|
return this._getType(t) === ae.null ? Ht(null) : this._def.innerType._parse(t);
|
|
25116
25126
|
}
|
|
@@ -25123,7 +25133,7 @@ Kr.create = (e, t) => new Kr({
|
|
|
25123
25133
|
typeName: Se.ZodNullable,
|
|
25124
25134
|
...Ie(t)
|
|
25125
25135
|
});
|
|
25126
|
-
class Dc extends
|
|
25136
|
+
class Dc extends Ae {
|
|
25127
25137
|
_parse(t) {
|
|
25128
25138
|
const { ctx: n } = this._processInputParams(t);
|
|
25129
25139
|
let r = n.data;
|
|
@@ -25143,7 +25153,7 @@ Dc.create = (e, t) => new Dc({
|
|
|
25143
25153
|
defaultValue: typeof t.default == "function" ? t.default : () => t.default,
|
|
25144
25154
|
...Ie(t)
|
|
25145
25155
|
});
|
|
25146
|
-
class Mc extends
|
|
25156
|
+
class Mc extends Ae {
|
|
25147
25157
|
_parse(t) {
|
|
25148
25158
|
const { ctx: n } = this._processInputParams(t), r = {
|
|
25149
25159
|
...n,
|
|
@@ -25186,7 +25196,7 @@ Mc.create = (e, t) => new Mc({
|
|
|
25186
25196
|
catchValue: typeof t.catch == "function" ? t.catch : () => t.catch,
|
|
25187
25197
|
...Ie(t)
|
|
25188
25198
|
});
|
|
25189
|
-
class Lf extends
|
|
25199
|
+
class Lf extends Ae {
|
|
25190
25200
|
_parse(t) {
|
|
25191
25201
|
if (this._getType(t) !== ae.nan) {
|
|
25192
25202
|
const r = this._getOrReturnCtx(t);
|
|
@@ -25203,7 +25213,7 @@ Lf.create = (e) => new Lf({
|
|
|
25203
25213
|
typeName: Se.ZodNaN,
|
|
25204
25214
|
...Ie(e)
|
|
25205
25215
|
});
|
|
25206
|
-
class U2 extends
|
|
25216
|
+
class U2 extends Ae {
|
|
25207
25217
|
_parse(t) {
|
|
25208
25218
|
const { ctx: n } = this._processInputParams(t), r = n.data;
|
|
25209
25219
|
return this._def.type._parse({
|
|
@@ -25216,7 +25226,7 @@ class U2 extends _e {
|
|
|
25216
25226
|
return this._def.type;
|
|
25217
25227
|
}
|
|
25218
25228
|
}
|
|
25219
|
-
class Jl extends
|
|
25229
|
+
class Jl extends Ae {
|
|
25220
25230
|
_parse(t) {
|
|
25221
25231
|
const { status: n, ctx: r } = this._processInputParams(t);
|
|
25222
25232
|
if (r.common.async)
|
|
@@ -25256,7 +25266,7 @@ class Jl extends _e {
|
|
|
25256
25266
|
});
|
|
25257
25267
|
}
|
|
25258
25268
|
}
|
|
25259
|
-
class Lc extends
|
|
25269
|
+
class Lc extends Ae {
|
|
25260
25270
|
_parse(t) {
|
|
25261
25271
|
const n = this._def.innerType._parse(t), r = (o) => (Zr(o) && (o.value = Object.freeze(o.value)), o);
|
|
25262
25272
|
return bi(n) ? n.then((o) => r(o)) : r(n);
|
|
@@ -25342,16 +25352,26 @@ function q2() {
|
|
|
25342
25352
|
}
|
|
25343
25353
|
}), { mutate: E, isPending: x } = Oo({
|
|
25344
25354
|
mutationFn: () => RC({ mobile: a, countryCode: s, type: e.smsType }),
|
|
25345
|
-
onSuccess: (
|
|
25346
|
-
p(
|
|
25355
|
+
onSuccess: (N) => {
|
|
25356
|
+
p(N.lock_time), ur.success("验证码已发送,请注意查收");
|
|
25347
25357
|
}
|
|
25348
25358
|
}), { mutate: w, isPending: R } = Oo({
|
|
25349
25359
|
mutationFn: async () => {
|
|
25350
|
-
const
|
|
25351
|
-
|
|
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;
|
|
25352
25372
|
},
|
|
25353
|
-
onError: (
|
|
25354
|
-
o?.(
|
|
25373
|
+
onError: (N) => {
|
|
25374
|
+
o?.(N);
|
|
25355
25375
|
}
|
|
25356
25376
|
});
|
|
25357
25377
|
function S() {
|
|
@@ -25359,19 +25379,19 @@ function q2() {
|
|
|
25359
25379
|
ur.warning("请先阅读并同意用户协议和隐私政策");
|
|
25360
25380
|
return;
|
|
25361
25381
|
}
|
|
25362
|
-
const
|
|
25382
|
+
const N = new FormData(c.current), L = Ff.pick({ phoneNumber: !0 }).safeParse(Object.fromEntries(N));
|
|
25363
25383
|
if (!L.success) {
|
|
25364
25384
|
y(L.error.flatten().fieldErrors);
|
|
25365
25385
|
return;
|
|
25366
25386
|
}
|
|
25367
25387
|
E();
|
|
25368
25388
|
}
|
|
25369
|
-
async function P(
|
|
25370
|
-
if (
|
|
25389
|
+
async function P(N) {
|
|
25390
|
+
if (N.preventDefault(), !g)
|
|
25371
25391
|
return ur.warning("请先阅读并同意用户协议和隐私政策"), {
|
|
25372
25392
|
errors: {}
|
|
25373
25393
|
};
|
|
25374
|
-
const L = new FormData(
|
|
25394
|
+
const L = new FormData(N.currentTarget), M = Ff.safeParse(Object.fromEntries(L));
|
|
25375
25395
|
return M.success ? (w(), {
|
|
25376
25396
|
errors: {}
|
|
25377
25397
|
}) : {
|
|
@@ -25383,8 +25403,8 @@ function q2() {
|
|
|
25383
25403
|
{
|
|
25384
25404
|
ref: c,
|
|
25385
25405
|
errors: v,
|
|
25386
|
-
onSubmit: async (
|
|
25387
|
-
const L = await P(
|
|
25406
|
+
onSubmit: async (N) => {
|
|
25407
|
+
const L = await P(N);
|
|
25388
25408
|
y(L.errors);
|
|
25389
25409
|
},
|
|
25390
25410
|
className: "space-y-5",
|
|
@@ -25399,7 +25419,7 @@ function q2() {
|
|
|
25399
25419
|
placeholder: "请输入手机号码",
|
|
25400
25420
|
autoFocus: !0,
|
|
25401
25421
|
type: "tel",
|
|
25402
|
-
onChange: (
|
|
25422
|
+
onChange: (N) => l(N.currentTarget.value)
|
|
25403
25423
|
}
|
|
25404
25424
|
)
|
|
25405
25425
|
] }),
|
|
@@ -25414,7 +25434,7 @@ function q2() {
|
|
|
25414
25434
|
placeholder: "请输入验证码",
|
|
25415
25435
|
value: u,
|
|
25416
25436
|
type: "number",
|
|
25417
|
-
onValueChange: (
|
|
25437
|
+
onValueChange: (N) => d(N)
|
|
25418
25438
|
}
|
|
25419
25439
|
),
|
|
25420
25440
|
/* @__PURE__ */ A(
|
|
@@ -25442,8 +25462,8 @@ function q2() {
|
|
|
25442
25462
|
children: R ? "登录中..." : e.buttonText || "登录"
|
|
25443
25463
|
}
|
|
25444
25464
|
),
|
|
25445
|
-
/* @__PURE__ */ A(
|
|
25446
|
-
/* @__PURE__ */ A(
|
|
25465
|
+
/* @__PURE__ */ A(_l, {}),
|
|
25466
|
+
/* @__PURE__ */ A(Av, { checked: g, onChange: m })
|
|
25447
25467
|
]
|
|
25448
25468
|
}
|
|
25449
25469
|
);
|
|
@@ -25601,7 +25621,7 @@ function oI({
|
|
|
25601
25621
|
x(), ur.success(L.error);
|
|
25602
25622
|
}
|
|
25603
25623
|
});
|
|
25604
|
-
async function
|
|
25624
|
+
async function N(L) {
|
|
25605
25625
|
L.preventDefault(), R();
|
|
25606
25626
|
}
|
|
25607
25627
|
return vn(() => {
|
|
@@ -25610,7 +25630,7 @@ function oI({
|
|
|
25610
25630
|
}, 0);
|
|
25611
25631
|
}, [p, d]), vn(() => {
|
|
25612
25632
|
E === 0 && w(), b(E !== 120);
|
|
25613
|
-
}, [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: [
|
|
25614
25634
|
["5199", "5012"].includes(r) ? /* @__PURE__ */ A("p", { className: "text-center text-xs text-white/80", children: "请点击游戏右上角“设置”查看账号ID" }) : null,
|
|
25615
25635
|
/* @__PURE__ */ ce(
|
|
25616
25636
|
wn,
|
|
@@ -25719,7 +25739,7 @@ function oI({
|
|
|
25719
25739
|
}
|
|
25720
25740
|
) }) : null,
|
|
25721
25741
|
["5199", "5012"].includes(r) ? /* @__PURE__ */ A("div", { className: "text-[#f59e9e] text-center text-[11px]", children: "请点击游戏内“邮件”查收口令码,未收到请重启游戏再次查看" }) : null,
|
|
25722
|
-
/* @__PURE__ */ A(
|
|
25742
|
+
/* @__PURE__ */ A(_l, {})
|
|
25723
25743
|
] });
|
|
25724
25744
|
}
|
|
25725
25745
|
const sI = "_modal_1pbx2_2", iI = "_close_1pbx2_8", Vf = {
|