mainstack-payments 0.5.12 → 0.5.13
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/build/mainstack-payments.js +215 -213
- package/package.json +1 -1
|
@@ -288,8 +288,8 @@ function ni(e) {
|
|
|
288
288
|
var Bs = { exports: {} };
|
|
289
289
|
Bs.exports;
|
|
290
290
|
(function(e, t) {
|
|
291
|
-
var n = 200, r = "__lodash_hash_undefined__", a = 800, o = 16, i = 9007199254740991, s = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", h = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", x = "[object Null]", b = "[object Object]", S = "[object Proxy]",
|
|
292
|
-
O[X] = O[se] = O[ce] = O[ne] = O[G] = O[oe] = O[me] = O[he] = O[Z] = !0, O[s] = O[c] = O[I] = O[u] = O[te] = O[d] = O[f] = O[p] = O[m] = O[y] = O[b] = O[
|
|
291
|
+
var n = 200, r = "__lodash_hash_undefined__", a = 800, o = 16, i = 9007199254740991, s = "[object Arguments]", c = "[object Array]", l = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", h = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", x = "[object Null]", b = "[object Object]", S = "[object Proxy]", $ = "[object RegExp]", C = "[object Set]", _ = "[object String]", k = "[object Undefined]", N = "[object WeakMap]", I = "[object ArrayBuffer]", te = "[object DataView]", X = "[object Float32Array]", se = "[object Float64Array]", ce = "[object Int8Array]", ne = "[object Int16Array]", G = "[object Int32Array]", oe = "[object Uint8Array]", me = "[object Uint8ClampedArray]", he = "[object Uint16Array]", Z = "[object Uint32Array]", M = /[\\^$.*+?()[\]{}|]/g, F = /^\[object .+?Constructor\]$/, U = /^(?:0|[1-9]\d*)$/, O = {};
|
|
292
|
+
O[X] = O[se] = O[ce] = O[ne] = O[G] = O[oe] = O[me] = O[he] = O[Z] = !0, O[s] = O[c] = O[I] = O[u] = O[te] = O[d] = O[f] = O[p] = O[m] = O[y] = O[b] = O[$] = O[C] = O[_] = O[N] = !1;
|
|
293
293
|
var K = typeof Ki == "object" && Ki && Ki.Object === Object && Ki, L = typeof self == "object" && self && self.Object === Object && self, V = K || L || Function("return this")(), Y = t && !t.nodeType && t, ie = Y && !0 && e && !e.nodeType && e, ue = ie && ie.exports === Y, W = ue && K.process, be = function() {
|
|
294
294
|
try {
|
|
295
295
|
var g = ie && ie.require && ie.require("util").types;
|
|
@@ -502,7 +502,7 @@ Bs.exports;
|
|
|
502
502
|
}
|
|
503
503
|
var jc = Ri();
|
|
504
504
|
function _n(g) {
|
|
505
|
-
return g == null ? g === void 0 ?
|
|
505
|
+
return g == null ? g === void 0 ? k : x : kn && kn in Object(g) ? Oi(g) : zi(g);
|
|
506
506
|
}
|
|
507
507
|
function Si(g) {
|
|
508
508
|
return sa(g) && _n(g) == s;
|
|
@@ -792,8 +792,8 @@ function fS(e = {}) {
|
|
|
792
792
|
"aria-expanded": l,
|
|
793
793
|
"aria-controls": f,
|
|
794
794
|
onClick(S) {
|
|
795
|
-
var
|
|
796
|
-
(
|
|
795
|
+
var $;
|
|
796
|
+
($ = b.onClick) == null || $.call(b, S), m();
|
|
797
797
|
}
|
|
798
798
|
};
|
|
799
799
|
}
|
|
@@ -5963,26 +5963,26 @@ function qE(e) {
|
|
|
5963
5963
|
return Pg($s("", null, null, null, [""], e = Eg(e), 0, [0], e));
|
|
5964
5964
|
}
|
|
5965
5965
|
function $s(e, t, n, r, a, o, i, s, c) {
|
|
5966
|
-
for (var l = 0, u = 0, d = i, f = 0, p = 0, h = 0, m = 1, y = 1, x = 1, b = 0, S = "",
|
|
5966
|
+
for (var l = 0, u = 0, d = i, f = 0, p = 0, h = 0, m = 1, y = 1, x = 1, b = 0, S = "", $ = a, C = o, _ = r, k = S; y; )
|
|
5967
5967
|
switch (h = b, b = Bt()) {
|
|
5968
5968
|
case 40:
|
|
5969
|
-
if (h != 108 && ht(
|
|
5970
|
-
ou(
|
|
5969
|
+
if (h != 108 && ht(k, d - 1) == 58) {
|
|
5970
|
+
ou(k += Te(ks(b), "&", "&\f"), "&\f") != -1 && (x = -1);
|
|
5971
5971
|
break;
|
|
5972
5972
|
}
|
|
5973
5973
|
case 34:
|
|
5974
5974
|
case 39:
|
|
5975
5975
|
case 91:
|
|
5976
|
-
|
|
5976
|
+
k += ks(b);
|
|
5977
5977
|
break;
|
|
5978
5978
|
case 9:
|
|
5979
5979
|
case 10:
|
|
5980
5980
|
case 13:
|
|
5981
5981
|
case 32:
|
|
5982
|
-
|
|
5982
|
+
k += WE(h);
|
|
5983
5983
|
break;
|
|
5984
5984
|
case 92:
|
|
5985
|
-
|
|
5985
|
+
k += HE(Ps() - 1, 7);
|
|
5986
5986
|
continue;
|
|
5987
5987
|
case 47:
|
|
5988
5988
|
switch (xn()) {
|
|
@@ -5991,11 +5991,11 @@ function $s(e, t, n, r, a, o, i, s, c) {
|
|
|
5991
5991
|
ts(YE(KE(Bt(), Ps()), t, n), c);
|
|
5992
5992
|
break;
|
|
5993
5993
|
default:
|
|
5994
|
-
|
|
5994
|
+
k += "/";
|
|
5995
5995
|
}
|
|
5996
5996
|
break;
|
|
5997
5997
|
case 123 * m:
|
|
5998
|
-
s[l++] = mn(
|
|
5998
|
+
s[l++] = mn(k) * x;
|
|
5999
5999
|
case 125 * m:
|
|
6000
6000
|
case 59:
|
|
6001
6001
|
case 0:
|
|
@@ -6004,30 +6004,30 @@ function $s(e, t, n, r, a, o, i, s, c) {
|
|
|
6004
6004
|
case 125:
|
|
6005
6005
|
y = 0;
|
|
6006
6006
|
case 59 + u:
|
|
6007
|
-
x == -1 && (
|
|
6007
|
+
x == -1 && (k = Te(k, /\f/g, "")), p > 0 && mn(k) - d && ts(p > 32 ? Kf(k + ";", r, n, d - 1) : Kf(Te(k, " ", "") + ";", r, n, d - 2), c);
|
|
6008
6008
|
break;
|
|
6009
6009
|
case 59:
|
|
6010
|
-
|
|
6010
|
+
k += ";";
|
|
6011
6011
|
default:
|
|
6012
|
-
if (ts(_ = Hf(
|
|
6012
|
+
if (ts(_ = Hf(k, t, n, l, u, a, s, S, $ = [], C = [], d), o), b === 123)
|
|
6013
6013
|
if (u === 0)
|
|
6014
|
-
$s(
|
|
6014
|
+
$s(k, t, _, _, $, o, d, s, C);
|
|
6015
6015
|
else
|
|
6016
|
-
switch (f === 99 && ht(
|
|
6016
|
+
switch (f === 99 && ht(k, 3) === 110 ? 100 : f) {
|
|
6017
6017
|
case 100:
|
|
6018
6018
|
case 108:
|
|
6019
6019
|
case 109:
|
|
6020
6020
|
case 115:
|
|
6021
|
-
$s(e, _, _, r && ts(Hf(e, _, _, 0, 0, a, s, S, a,
|
|
6021
|
+
$s(e, _, _, r && ts(Hf(e, _, _, 0, 0, a, s, S, a, $ = [], d), C), a, C, d, s, r ? $ : C);
|
|
6022
6022
|
break;
|
|
6023
6023
|
default:
|
|
6024
|
-
$s(
|
|
6024
|
+
$s(k, _, _, _, [""], C, 0, s, C);
|
|
6025
6025
|
}
|
|
6026
6026
|
}
|
|
6027
|
-
l = u = p = 0, m = x = 1, S =
|
|
6027
|
+
l = u = p = 0, m = x = 1, S = k = "", d = i;
|
|
6028
6028
|
break;
|
|
6029
6029
|
case 58:
|
|
6030
|
-
d = 1 + mn(
|
|
6030
|
+
d = 1 + mn(k), p = h;
|
|
6031
6031
|
default:
|
|
6032
6032
|
if (m < 1) {
|
|
6033
6033
|
if (b == 123)
|
|
@@ -6035,18 +6035,18 @@ function $s(e, t, n, r, a, o, i, s, c) {
|
|
|
6035
6035
|
else if (b == 125 && m++ == 0 && GE() == 125)
|
|
6036
6036
|
continue;
|
|
6037
6037
|
}
|
|
6038
|
-
switch (
|
|
6038
|
+
switch (k += oc(b), b * m) {
|
|
6039
6039
|
case 38:
|
|
6040
|
-
x = u > 0 ? 1 : (
|
|
6040
|
+
x = u > 0 ? 1 : (k += "\f", -1);
|
|
6041
6041
|
break;
|
|
6042
6042
|
case 44:
|
|
6043
|
-
s[l++] = (mn(
|
|
6043
|
+
s[l++] = (mn(k) - 1) * x, x = 1;
|
|
6044
6044
|
break;
|
|
6045
6045
|
case 64:
|
|
6046
|
-
xn() === 45 && (
|
|
6046
|
+
xn() === 45 && (k += ks(Bt())), f = xn(), u = d = mn(S = k += ZE(Ps())), b++;
|
|
6047
6047
|
break;
|
|
6048
6048
|
case 45:
|
|
6049
|
-
h === 45 && mn(
|
|
6049
|
+
h === 45 && mn(k) == 2 && (m = 0);
|
|
6050
6050
|
}
|
|
6051
6051
|
}
|
|
6052
6052
|
return o;
|
|
@@ -6402,12 +6402,12 @@ function cP() {
|
|
|
6402
6402
|
}
|
|
6403
6403
|
}
|
|
6404
6404
|
}
|
|
6405
|
-
function
|
|
6405
|
+
function $(C) {
|
|
6406
6406
|
return S(C) === l;
|
|
6407
6407
|
}
|
|
6408
6408
|
return ke.AsyncMode = c, ke.ConcurrentMode = l, ke.ContextConsumer = s, ke.ContextProvider = i, ke.Element = t, ke.ForwardRef = u, ke.Fragment = r, ke.Lazy = h, ke.Memo = p, ke.Portal = n, ke.Profiler = o, ke.StrictMode = a, ke.Suspense = d, ke.isAsyncMode = function(C) {
|
|
6409
|
-
return
|
|
6410
|
-
}, ke.isConcurrentMode =
|
|
6409
|
+
return $(C) || S(C) === c;
|
|
6410
|
+
}, ke.isConcurrentMode = $, ke.isContextConsumer = function(C) {
|
|
6411
6411
|
return S(C) === s;
|
|
6412
6412
|
}, ke.isContextProvider = function(C) {
|
|
6413
6413
|
return S(C) === i;
|
|
@@ -6450,7 +6450,7 @@ function lP() {
|
|
|
6450
6450
|
return typeof B == "string" || typeof B == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
6451
6451
|
B === r || B === l || B === o || B === a || B === d || B === f || typeof B == "object" && B !== null && (B.$$typeof === h || B.$$typeof === p || B.$$typeof === i || B.$$typeof === s || B.$$typeof === u || B.$$typeof === y || B.$$typeof === x || B.$$typeof === b || B.$$typeof === m);
|
|
6452
6452
|
}
|
|
6453
|
-
function
|
|
6453
|
+
function $(B) {
|
|
6454
6454
|
if (typeof B == "object" && B !== null) {
|
|
6455
6455
|
var Qe = B.$$typeof;
|
|
6456
6456
|
switch (Qe) {
|
|
@@ -6482,47 +6482,47 @@ function lP() {
|
|
|
6482
6482
|
}
|
|
6483
6483
|
}
|
|
6484
6484
|
}
|
|
6485
|
-
var C = c, _ = l,
|
|
6485
|
+
var C = c, _ = l, k = s, N = i, I = t, te = u, X = r, se = h, ce = p, ne = n, G = o, oe = a, me = d, he = !1;
|
|
6486
6486
|
function Z(B) {
|
|
6487
|
-
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), M(B) ||
|
|
6487
|
+
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), M(B) || $(B) === c;
|
|
6488
6488
|
}
|
|
6489
6489
|
function M(B) {
|
|
6490
|
-
return
|
|
6490
|
+
return $(B) === l;
|
|
6491
6491
|
}
|
|
6492
6492
|
function F(B) {
|
|
6493
|
-
return
|
|
6493
|
+
return $(B) === s;
|
|
6494
6494
|
}
|
|
6495
6495
|
function U(B) {
|
|
6496
|
-
return
|
|
6496
|
+
return $(B) === i;
|
|
6497
6497
|
}
|
|
6498
6498
|
function O(B) {
|
|
6499
6499
|
return typeof B == "object" && B !== null && B.$$typeof === t;
|
|
6500
6500
|
}
|
|
6501
6501
|
function K(B) {
|
|
6502
|
-
return
|
|
6502
|
+
return $(B) === u;
|
|
6503
6503
|
}
|
|
6504
6504
|
function L(B) {
|
|
6505
|
-
return
|
|
6505
|
+
return $(B) === r;
|
|
6506
6506
|
}
|
|
6507
6507
|
function V(B) {
|
|
6508
|
-
return
|
|
6508
|
+
return $(B) === h;
|
|
6509
6509
|
}
|
|
6510
6510
|
function Y(B) {
|
|
6511
|
-
return
|
|
6511
|
+
return $(B) === p;
|
|
6512
6512
|
}
|
|
6513
6513
|
function ie(B) {
|
|
6514
|
-
return
|
|
6514
|
+
return $(B) === n;
|
|
6515
6515
|
}
|
|
6516
6516
|
function ue(B) {
|
|
6517
|
-
return
|
|
6517
|
+
return $(B) === o;
|
|
6518
6518
|
}
|
|
6519
6519
|
function W(B) {
|
|
6520
|
-
return
|
|
6520
|
+
return $(B) === a;
|
|
6521
6521
|
}
|
|
6522
6522
|
function be(B) {
|
|
6523
|
-
return
|
|
6523
|
+
return $(B) === d;
|
|
6524
6524
|
}
|
|
6525
|
-
$e.AsyncMode = C, $e.ConcurrentMode = _, $e.ContextConsumer =
|
|
6525
|
+
$e.AsyncMode = C, $e.ConcurrentMode = _, $e.ContextConsumer = k, $e.ContextProvider = N, $e.Element = I, $e.ForwardRef = te, $e.Fragment = X, $e.Lazy = se, $e.Memo = ce, $e.Portal = ne, $e.Profiler = G, $e.StrictMode = oe, $e.Suspense = me, $e.isAsyncMode = Z, $e.isConcurrentMode = M, $e.isContextConsumer = F, $e.isContextProvider = U, $e.isElement = O, $e.isForwardRef = K, $e.isFragment = L, $e.isLazy = V, $e.isMemo = Y, $e.isPortal = ie, $e.isProfiler = ue, $e.isStrictMode = W, $e.isSuspense = be, $e.isValidElementType = S, $e.typeOf = $;
|
|
6526
6526
|
}()), $e;
|
|
6527
6527
|
}
|
|
6528
6528
|
process.env.NODE_ENV === "production" ? su.exports = cP() : su.exports = lP();
|
|
@@ -6951,8 +6951,8 @@ const Dg = cd(function(t, n) {
|
|
|
6951
6951
|
[s, n == null ? void 0 : n.nonce]
|
|
6952
6952
|
), b = i === "system" && !u ? f : u, S = pe(
|
|
6953
6953
|
(_) => {
|
|
6954
|
-
const
|
|
6955
|
-
d(
|
|
6954
|
+
const k = _ === "system" ? h() : _;
|
|
6955
|
+
d(k), m(k === "dark"), y(k), c.set(k);
|
|
6956
6956
|
},
|
|
6957
6957
|
[c, h, m, y]
|
|
6958
6958
|
);
|
|
@@ -6970,7 +6970,7 @@ const Dg = cd(function(t, n) {
|
|
|
6970
6970
|
}
|
|
6971
6971
|
S(l);
|
|
6972
6972
|
}, [c, l, i, S]);
|
|
6973
|
-
const
|
|
6973
|
+
const $ = pe(() => {
|
|
6974
6974
|
S(b === "dark" ? "light" : "dark");
|
|
6975
6975
|
}, [b, S]);
|
|
6976
6976
|
ye(() => {
|
|
@@ -6980,11 +6980,11 @@ const Dg = cd(function(t, n) {
|
|
|
6980
6980
|
const C = ut(
|
|
6981
6981
|
() => ({
|
|
6982
6982
|
colorMode: r ?? b,
|
|
6983
|
-
toggleColorMode: r ? nh :
|
|
6983
|
+
toggleColorMode: r ? nh : $,
|
|
6984
6984
|
setColorMode: r ? nh : S,
|
|
6985
6985
|
forced: r !== void 0
|
|
6986
6986
|
}),
|
|
6987
|
-
[b,
|
|
6987
|
+
[b, $, S, r]
|
|
6988
6988
|
);
|
|
6989
6989
|
return /* @__PURE__ */ v(ld.Provider, { value: C, children: a });
|
|
6990
6990
|
});
|
|
@@ -7977,8 +7977,8 @@ function Tk(e, t, n, r) {
|
|
|
7977
7977
|
for (const b in x) {
|
|
7978
7978
|
let S = x[b];
|
|
7979
7979
|
if (Array.isArray(S)) {
|
|
7980
|
-
const
|
|
7981
|
-
S = S[
|
|
7980
|
+
const $ = u ? S.length - 1 : 0;
|
|
7981
|
+
S = S[$];
|
|
7982
7982
|
}
|
|
7983
7983
|
S !== null && (a[b] = S);
|
|
7984
7984
|
}
|
|
@@ -8731,32 +8731,32 @@ function Oy({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
8731
8731
|
let b;
|
|
8732
8732
|
if (h < 1) {
|
|
8733
8733
|
const S = du(y, h);
|
|
8734
|
-
b = (
|
|
8735
|
-
const C = Math.exp(-h * y *
|
|
8736
|
-
return o - C * ((p + h * y * m) / S * Math.sin(S *
|
|
8734
|
+
b = ($) => {
|
|
8735
|
+
const C = Math.exp(-h * y * $);
|
|
8736
|
+
return o - C * ((p + h * y * m) / S * Math.sin(S * $) + m * Math.cos(S * $));
|
|
8737
8737
|
};
|
|
8738
8738
|
} else if (h === 1)
|
|
8739
8739
|
b = (S) => o - Math.exp(-y * S) * (m + (p + y * m) * S);
|
|
8740
8740
|
else {
|
|
8741
8741
|
const S = y * Math.sqrt(h * h - 1);
|
|
8742
|
-
b = (
|
|
8743
|
-
const C = Math.exp(-h * y *
|
|
8742
|
+
b = ($) => {
|
|
8743
|
+
const C = Math.exp(-h * y * $), _ = Math.min(S * $, 300);
|
|
8744
8744
|
return o - C * ((p + h * y * m) * Math.sinh(_) + S * m * Math.cosh(_)) / S;
|
|
8745
8745
|
};
|
|
8746
8746
|
}
|
|
8747
8747
|
return {
|
|
8748
8748
|
calculatedDuration: f && u || null,
|
|
8749
8749
|
next: (S) => {
|
|
8750
|
-
const
|
|
8750
|
+
const $ = b(S);
|
|
8751
8751
|
if (f)
|
|
8752
8752
|
i.done = S >= u;
|
|
8753
8753
|
else {
|
|
8754
8754
|
let C = p;
|
|
8755
|
-
S !== 0 && (h < 1 ? C = Ry(b, S,
|
|
8756
|
-
const _ = Math.abs(C) <= n,
|
|
8757
|
-
i.done = _ &&
|
|
8755
|
+
S !== 0 && (h < 1 ? C = Ry(b, S, $) : C = 0);
|
|
8756
|
+
const _ = Math.abs(C) <= n, k = Math.abs(o - $) <= t;
|
|
8757
|
+
i.done = _ && k;
|
|
8758
8758
|
}
|
|
8759
|
-
return i.value = i.done ? o :
|
|
8759
|
+
return i.value = i.done ? o : $, i;
|
|
8760
8760
|
}
|
|
8761
8761
|
};
|
|
8762
8762
|
}
|
|
@@ -8768,12 +8768,12 @@ function vh({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
8768
8768
|
let m = n * t;
|
|
8769
8769
|
const y = d + m, x = i === void 0 ? y : i(y);
|
|
8770
8770
|
x !== y && (m = x - d);
|
|
8771
|
-
const b = (N) => -m * Math.exp(-N / r), S = (N) => x + b(N),
|
|
8771
|
+
const b = (N) => -m * Math.exp(-N / r), S = (N) => x + b(N), $ = (N) => {
|
|
8772
8772
|
const I = b(N), te = S(N);
|
|
8773
8773
|
f.done = Math.abs(I) <= l, f.value = f.done ? x : te;
|
|
8774
8774
|
};
|
|
8775
8775
|
let C, _;
|
|
8776
|
-
const
|
|
8776
|
+
const k = (N) => {
|
|
8777
8777
|
p(f.value) && (C = N, _ = Oy({
|
|
8778
8778
|
keyframes: [f.value, h(f.value)],
|
|
8779
8779
|
velocity: Ry(S, N, f.value),
|
|
@@ -8783,11 +8783,11 @@ function vh({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
8783
8783
|
restSpeed: u
|
|
8784
8784
|
}));
|
|
8785
8785
|
};
|
|
8786
|
-
return
|
|
8786
|
+
return k(0), {
|
|
8787
8787
|
calculatedDuration: null,
|
|
8788
8788
|
next: (N) => {
|
|
8789
8789
|
let I = !1;
|
|
8790
|
-
return !_ && C === void 0 && (I = !0,
|
|
8790
|
+
return !_ && C === void 0 && (I = !0, $(N), k(N)), C !== void 0 && N > C ? _.next(N - C) : (!I && $(N), f);
|
|
8791
8791
|
}
|
|
8792
8792
|
};
|
|
8793
8793
|
}
|
|
@@ -8828,8 +8828,8 @@ function Ko({ autoplay: e = !0, delay: t = 0, driver: n = $2, keyframes: r, type
|
|
|
8828
8828
|
x();
|
|
8829
8829
|
let b;
|
|
8830
8830
|
const S = _2[a] || Zs;
|
|
8831
|
-
let
|
|
8832
|
-
S !== Zs && typeof r[0] != "number" && (process.env.NODE_ENV !== "production" && Yt(r.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),
|
|
8831
|
+
let $;
|
|
8832
|
+
S !== Zs && typeof r[0] != "number" && (process.env.NODE_ENV !== "production" && Yt(r.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`), $ = Fy([0, 100], r, {
|
|
8833
8833
|
clamp: !1
|
|
8834
8834
|
}), r = [0, 100]);
|
|
8835
8835
|
const C = S({ ...f, keyframes: r });
|
|
@@ -8839,7 +8839,7 @@ function Ko({ autoplay: e = !0, delay: t = 0, driver: n = $2, keyframes: r, type
|
|
|
8839
8839
|
keyframes: [...r].reverse(),
|
|
8840
8840
|
velocity: -(f.velocity || 0)
|
|
8841
8841
|
}));
|
|
8842
|
-
let
|
|
8842
|
+
let k = "idle", N = null, I = null, te = null;
|
|
8843
8843
|
C.calculatedDuration === null && o && (C.calculatedDuration = xh(C));
|
|
8844
8844
|
const { calculatedDuration: X } = C;
|
|
8845
8845
|
let se = 1 / 0, ce = 1 / 0;
|
|
@@ -8850,7 +8850,7 @@ function Ko({ autoplay: e = !0, delay: t = 0, driver: n = $2, keyframes: r, type
|
|
|
8850
8850
|
return;
|
|
8851
8851
|
p > 0 && (I = Math.min(I, F)), p < 0 && (I = Math.min(F - ce / p, I)), N !== null ? ne = N : ne = Math.round(F - I) * p;
|
|
8852
8852
|
const U = ne - t * (p >= 0 ? 1 : -1), O = p >= 0 ? U < 0 : U > ce;
|
|
8853
|
-
ne = Math.max(U, 0),
|
|
8853
|
+
ne = Math.max(U, 0), k === "finished" && N === null && (ne = ce);
|
|
8854
8854
|
let K = ne, L = C;
|
|
8855
8855
|
if (o) {
|
|
8856
8856
|
const ue = Math.min(ne, ce) / se;
|
|
@@ -8858,23 +8858,23 @@ function Ko({ autoplay: e = !0, delay: t = 0, driver: n = $2, keyframes: r, type
|
|
|
8858
8858
|
!be && ue >= 1 && (be = 1), be === 1 && W--, W = Math.min(W, o + 1), !!(W % 2) && (s === "reverse" ? (be = 1 - be, i && (be -= i / se)) : s === "mirror" && (L = _)), K = ar(0, 1, be) * se;
|
|
8859
8859
|
}
|
|
8860
8860
|
const V = O ? { done: !1, value: r[0] } : L.next(K);
|
|
8861
|
-
|
|
8861
|
+
$ && (V.value = $(V.value));
|
|
8862
8862
|
let { done: Y } = V;
|
|
8863
8863
|
!O && X !== null && (Y = p >= 0 ? ne >= ce : ne <= 0);
|
|
8864
|
-
const ie = N === null && (
|
|
8864
|
+
const ie = N === null && (k === "finished" || k === "running" && Y);
|
|
8865
8865
|
return d && d(V.value), ie && he(), V;
|
|
8866
8866
|
}, oe = () => {
|
|
8867
8867
|
b && b.stop(), b = void 0;
|
|
8868
8868
|
}, me = () => {
|
|
8869
|
-
|
|
8869
|
+
k = "idle", oe(), m(), x(), I = te = null;
|
|
8870
8870
|
}, he = () => {
|
|
8871
|
-
|
|
8871
|
+
k = "finished", u && u(), oe(), m();
|
|
8872
8872
|
}, Z = () => {
|
|
8873
8873
|
if (h)
|
|
8874
8874
|
return;
|
|
8875
8875
|
b || (b = n(G));
|
|
8876
8876
|
const F = b.now();
|
|
8877
|
-
c && c(), N !== null ? I = F - N : (!I ||
|
|
8877
|
+
c && c(), N !== null ? I = F - N : (!I || k === "finished") && (I = F), k === "finished" && x(), te = I, N = null, k = "running", b.start();
|
|
8878
8878
|
};
|
|
8879
8879
|
e && Z();
|
|
8880
8880
|
const M = {
|
|
@@ -8898,20 +8898,20 @@ function Ko({ autoplay: e = !0, delay: t = 0, driver: n = $2, keyframes: r, type
|
|
|
8898
8898
|
F === p || !b || (p = F, M.time = An(ne));
|
|
8899
8899
|
},
|
|
8900
8900
|
get state() {
|
|
8901
|
-
return
|
|
8901
|
+
return k;
|
|
8902
8902
|
},
|
|
8903
8903
|
play: Z,
|
|
8904
8904
|
pause: () => {
|
|
8905
|
-
|
|
8905
|
+
k = "paused", N = ne;
|
|
8906
8906
|
},
|
|
8907
8907
|
stop: () => {
|
|
8908
|
-
h = !0,
|
|
8908
|
+
h = !0, k !== "idle" && (k = "idle", l && l(), me());
|
|
8909
8909
|
},
|
|
8910
8910
|
cancel: () => {
|
|
8911
8911
|
te !== null && G(te), me();
|
|
8912
8912
|
},
|
|
8913
8913
|
complete: () => {
|
|
8914
|
-
|
|
8914
|
+
k = "finished";
|
|
8915
8915
|
},
|
|
8916
8916
|
sample: (F) => (I = 0, G(F))
|
|
8917
8917
|
};
|
|
@@ -8945,11 +8945,11 @@ function D2(e, t, { onUpdate: n, onComplete: r, ...a }) {
|
|
|
8945
8945
|
repeat: 0,
|
|
8946
8946
|
delay: 0
|
|
8947
8947
|
});
|
|
8948
|
-
let
|
|
8948
|
+
let $ = { done: !1, value: d[0] };
|
|
8949
8949
|
const C = [];
|
|
8950
8950
|
let _ = 0;
|
|
8951
|
-
for (;
|
|
8952
|
-
|
|
8951
|
+
for (; !$.done && _ < O2; )
|
|
8952
|
+
$ = S.sample(_), C.push($.value), _ += os;
|
|
8953
8953
|
h = void 0, d = C, f = _ - os, p = "linear";
|
|
8954
8954
|
}
|
|
8955
8955
|
const m = Kk(e.owner.current, t, d, {
|
|
@@ -8973,8 +8973,8 @@ function D2(e, t, { onUpdate: n, onComplete: r, ...a }) {
|
|
|
8973
8973
|
return m.onfinish = () => {
|
|
8974
8974
|
l || (e.set(Zk(d, a)), r && r(), x());
|
|
8975
8975
|
}, {
|
|
8976
|
-
then(S,
|
|
8977
|
-
return c.then(S,
|
|
8976
|
+
then(S, $) {
|
|
8977
|
+
return c.then(S, $);
|
|
8978
8978
|
},
|
|
8979
8979
|
attachTimeline(S) {
|
|
8980
8980
|
return m.timeline = S, m.onfinish = null, qe;
|
|
@@ -9003,11 +9003,11 @@ function D2(e, t, { onUpdate: n, onComplete: r, ...a }) {
|
|
|
9003
9003
|
return;
|
|
9004
9004
|
const { currentTime: S } = m;
|
|
9005
9005
|
if (S) {
|
|
9006
|
-
const
|
|
9006
|
+
const $ = Ko({
|
|
9007
9007
|
...a,
|
|
9008
9008
|
autoplay: !1
|
|
9009
9009
|
});
|
|
9010
|
-
e.setWithVelocity(
|
|
9010
|
+
e.setWithVelocity($.sample(S - os).value, $.sample(S).value, os);
|
|
9011
9011
|
}
|
|
9012
9012
|
x();
|
|
9013
9013
|
},
|
|
@@ -9551,18 +9551,18 @@ function m$(e) {
|
|
|
9551
9551
|
const u = e.getProps(), d = e.getVariantContext(!0) || {}, f = [], p = /* @__PURE__ */ new Set();
|
|
9552
9552
|
let h = {}, m = 1 / 0;
|
|
9553
9553
|
for (let x = 0; x < h$; x++) {
|
|
9554
|
-
const b = f$[x], S = n[b],
|
|
9554
|
+
const b = f$[x], S = n[b], $ = u[b] !== void 0 ? u[b] : d[b], C = Go($), _ = b === l ? S.isActive : null;
|
|
9555
9555
|
_ === !1 && (m = x);
|
|
9556
|
-
let
|
|
9557
|
-
if (
|
|
9556
|
+
let k = $ === d[b] && $ !== u[b] && C;
|
|
9557
|
+
if (k && r && e.manuallyAnimateOnMount && (k = !1), S.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
|
|
9558
9558
|
!S.isActive && _ === null || // If we didn't and don't have any defined prop for this animation type
|
|
9559
|
-
|
|
9560
|
-
hc(
|
|
9559
|
+
!$ && !S.prevProp || // Or if the prop doesn't define an animation
|
|
9560
|
+
hc($) || typeof $ == "boolean")
|
|
9561
9561
|
continue;
|
|
9562
|
-
let I = g$(S.prevProp,
|
|
9563
|
-
b === l && S.isActive &&
|
|
9562
|
+
let I = g$(S.prevProp, $) || // If we're making this variant active, we want to always make it active
|
|
9563
|
+
b === l && S.isActive && !k && C || // If we removed a higher-priority variant (i is in reverse order)
|
|
9564
9564
|
x > m && C, te = !1;
|
|
9565
|
-
const X = Array.isArray(
|
|
9565
|
+
const X = Array.isArray($) ? $ : [$];
|
|
9566
9566
|
let se = X.reduce(a, {});
|
|
9567
9567
|
_ === !1 && (se = {});
|
|
9568
9568
|
const { prevResolvedValues: ce = {} } = S, ne = {
|
|
@@ -9578,7 +9578,7 @@ function m$(e) {
|
|
|
9578
9578
|
let Z = !1;
|
|
9579
9579
|
Hs(me) && Hs(he) ? Z = !ly(me, he) : Z = me !== he, Z ? me !== void 0 ? G(oe) : p.add(oe) : me !== void 0 && p.has(oe) ? G(oe) : S.protectedKeys[oe] = !0;
|
|
9580
9580
|
}
|
|
9581
|
-
S.prevProp =
|
|
9581
|
+
S.prevProp = $, S.prevResolvedValues = se, S.isActive && (h = { ...h, ...se }), r && e.blockInitialAnimation && (I = !1), I && (!k || te) && f.push(...X.map((oe) => ({
|
|
9582
9582
|
animation: oe,
|
|
9583
9583
|
options: { type: b, ...c }
|
|
9584
9584
|
})));
|
|
@@ -10541,12 +10541,12 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
10541
10541
|
const m = this.options.transition || u.getDefaultTransition() || T_, { onLayoutAnimationStart: y, onLayoutAnimationComplete: x } = u.getProps(), b = !this.targetLayout || !Qy(this.targetLayout, h) || p, S = !f && p;
|
|
10542
10542
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || S || f && (b || !this.currentAnimation)) {
|
|
10543
10543
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, S);
|
|
10544
|
-
const
|
|
10544
|
+
const $ = {
|
|
10545
10545
|
...kd(m, "layout"),
|
|
10546
10546
|
onPlay: y,
|
|
10547
10547
|
onComplete: x
|
|
10548
10548
|
};
|
|
10549
|
-
(u.shouldReduceMotion || this.options.layoutRoot) && (
|
|
10549
|
+
(u.shouldReduceMotion || this.options.layoutRoot) && ($.delay = 0, $.type = !1), this.startAnimation($);
|
|
10550
10550
|
} else
|
|
10551
10551
|
f || Qh(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
10552
10552
|
this.targetLayout = h;
|
|
@@ -10796,8 +10796,8 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
10796
10796
|
const f = tt(), p = c ? c.source : void 0, h = this.layout ? this.layout.source : void 0, m = p !== h, y = this.getStack(), x = !y || y.members.length <= 1, b = !!(m && !x && this.options.crossfade === !0 && !this.path.some(A_));
|
|
10797
10797
|
this.animationProgress = 0;
|
|
10798
10798
|
let S;
|
|
10799
|
-
this.mixTargetDelta = (
|
|
10800
|
-
const C =
|
|
10799
|
+
this.mixTargetDelta = ($) => {
|
|
10800
|
+
const C = $ / 1e3;
|
|
10801
10801
|
ep(d.x, i.x, C), ep(d.y, i.y, C), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ro(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), w_(this.relativeTarget, this.relativeTargetOrigin, f, C), S && t_(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = tt()), Vt(S, this.relativeTarget)), m && (this.animationValues = u, q$(u, l, this.latestValues, C, b, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
|
|
10802
10802
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
10803
10803
|
}
|
|
@@ -10915,8 +10915,8 @@ function eb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
10915
10915
|
const { correct: y, applyTo: x } = Gs[m], b = l.transform === "none" ? f[m] : y(f[m], d);
|
|
10916
10916
|
if (x) {
|
|
10917
10917
|
const S = x.length;
|
|
10918
|
-
for (let
|
|
10919
|
-
l[x[
|
|
10918
|
+
for (let $ = 0; $ < S; $++)
|
|
10919
|
+
l[x[$]] = b;
|
|
10920
10920
|
} else
|
|
10921
10921
|
l[m] = b;
|
|
10922
10922
|
}
|
|
@@ -11701,13 +11701,13 @@ const Ur = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, exitBe
|
|
|
11701
11701
|
return i === "wait" && d.size && (u = []), d.forEach((b, S) => {
|
|
11702
11702
|
if (y.indexOf(S) !== -1)
|
|
11703
11703
|
return;
|
|
11704
|
-
const
|
|
11705
|
-
if (
|
|
11704
|
+
const $ = p.get(S);
|
|
11705
|
+
if (!$)
|
|
11706
11706
|
return;
|
|
11707
11707
|
const C = m.indexOf(S);
|
|
11708
11708
|
let _ = b;
|
|
11709
11709
|
if (!_) {
|
|
11710
|
-
const
|
|
11710
|
+
const k = () => {
|
|
11711
11711
|
d.delete(S);
|
|
11712
11712
|
const N = Array.from(p.keys()).filter((I) => !y.includes(I));
|
|
11713
11713
|
if (N.forEach((I) => p.delete(I)), f.current = l.filter((I) => {
|
|
@@ -11723,7 +11723,7 @@ const Ur = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, exitBe
|
|
|
11723
11723
|
s(), r && r();
|
|
11724
11724
|
}
|
|
11725
11725
|
};
|
|
11726
|
-
_ = R.createElement(xl, { key: Sr(
|
|
11726
|
+
_ = R.createElement(xl, { key: Sr($), isPresent: !1, onExitComplete: k, custom: t, presenceAffectsLayout: o, mode: i }, $), d.set(S, _);
|
|
11727
11727
|
}
|
|
11728
11728
|
u.splice(C, 0, _);
|
|
11729
11729
|
}), u = u.map((b) => {
|
|
@@ -11847,22 +11847,22 @@ var dF = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
11847
11847
|
d.push(u[p], u[0][p]);
|
|
11848
11848
|
}
|
|
11849
11849
|
var h = cd(function(m, y, x) {
|
|
11850
|
-
var b = l && m.as || a, S = "",
|
|
11850
|
+
var b = l && m.as || a, S = "", $ = [], C = m;
|
|
11851
11851
|
if (m.theme == null) {
|
|
11852
11852
|
C = {};
|
|
11853
11853
|
for (var _ in m)
|
|
11854
11854
|
C[_] = m[_];
|
|
11855
11855
|
C.theme = R.useContext(Uo);
|
|
11856
11856
|
}
|
|
11857
|
-
typeof m.className == "string" ? S = hP(y.registered,
|
|
11858
|
-
var
|
|
11859
|
-
S += y.key + "-" +
|
|
11857
|
+
typeof m.className == "string" ? S = hP(y.registered, $, m.className) : m.className != null && (S = m.className + " ");
|
|
11858
|
+
var k = sd(d.concat($), y.registered, C);
|
|
11859
|
+
S += y.key + "-" + k.name, i !== void 0 && (S += " " + i);
|
|
11860
11860
|
var N = l && s === void 0 ? up(b) : c, I = {};
|
|
11861
11861
|
for (var te in m)
|
|
11862
11862
|
l && te === "as" || N(te) && (I[te] = m[te]);
|
|
11863
11863
|
return I.className = S, x && (I.ref = x), /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement(gF, {
|
|
11864
11864
|
cache: y,
|
|
11865
|
-
serialized:
|
|
11865
|
+
serialized: k,
|
|
11866
11866
|
isStringTag: typeof b == "string"
|
|
11867
11867
|
}), /* @__PURE__ */ R.createElement(b, I));
|
|
11868
11868
|
});
|
|
@@ -12998,9 +12998,9 @@ function sM(e) {
|
|
|
12998
12998
|
isReadOnly: o,
|
|
12999
12999
|
...i
|
|
13000
13000
|
} = e, s = Wa(), c = t || `field-${s}`, l = `${c}-label`, u = `${c}-feedback`, d = `${c}-helptext`, [f, p] = de(!1), [h, m] = de(!1), [y, x] = de(!1), b = pe(
|
|
13001
|
-
(
|
|
13001
|
+
(k = {}, N = null) => ({
|
|
13002
13002
|
id: d,
|
|
13003
|
-
|
|
13003
|
+
...k,
|
|
13004
13004
|
/**
|
|
13005
13005
|
* Notify the field context when the help text is rendered on screen,
|
|
13006
13006
|
* so we can apply the correct `aria-describedby` to the field (e.g. input, textarea).
|
|
@@ -13011,21 +13011,21 @@ function sM(e) {
|
|
|
13011
13011
|
}),
|
|
13012
13012
|
[d]
|
|
13013
13013
|
), S = pe(
|
|
13014
|
-
(
|
|
13015
|
-
|
|
13014
|
+
(k = {}, N = null) => ({
|
|
13015
|
+
...k,
|
|
13016
13016
|
ref: N,
|
|
13017
13017
|
"data-focus": Kn(y),
|
|
13018
13018
|
"data-disabled": Kn(a),
|
|
13019
13019
|
"data-invalid": Kn(r),
|
|
13020
13020
|
"data-readonly": Kn(o),
|
|
13021
|
-
id:
|
|
13022
|
-
htmlFor:
|
|
13021
|
+
id: k.id !== void 0 ? k.id : l,
|
|
13022
|
+
htmlFor: k.htmlFor !== void 0 ? k.htmlFor : c
|
|
13023
13023
|
}),
|
|
13024
13024
|
[c, a, y, r, o, l]
|
|
13025
|
-
),
|
|
13026
|
-
(
|
|
13025
|
+
), $ = pe(
|
|
13026
|
+
(k = {}, N = null) => ({
|
|
13027
13027
|
id: u,
|
|
13028
|
-
|
|
13028
|
+
...k,
|
|
13029
13029
|
/**
|
|
13030
13030
|
* Notify the field context when the error message is rendered on screen,
|
|
13031
13031
|
* so we can apply the correct `aria-describedby` to the field (e.g. input, textarea).
|
|
@@ -13037,8 +13037,8 @@ function sM(e) {
|
|
|
13037
13037
|
}),
|
|
13038
13038
|
[u]
|
|
13039
13039
|
), C = pe(
|
|
13040
|
-
(
|
|
13041
|
-
|
|
13040
|
+
(k = {}, N = null) => ({
|
|
13041
|
+
...k,
|
|
13042
13042
|
...i,
|
|
13043
13043
|
ref: N,
|
|
13044
13044
|
role: "group",
|
|
@@ -13049,12 +13049,12 @@ function sM(e) {
|
|
|
13049
13049
|
}),
|
|
13050
13050
|
[i, a, y, r, o]
|
|
13051
13051
|
), _ = pe(
|
|
13052
|
-
(
|
|
13053
|
-
|
|
13052
|
+
(k = {}, N = null) => ({
|
|
13053
|
+
...k,
|
|
13054
13054
|
ref: N,
|
|
13055
13055
|
role: "presentation",
|
|
13056
13056
|
"aria-hidden": !0,
|
|
13057
|
-
children:
|
|
13057
|
+
children: k.children || "*"
|
|
13058
13058
|
}),
|
|
13059
13059
|
[]
|
|
13060
13060
|
);
|
|
@@ -13076,7 +13076,7 @@ function sM(e) {
|
|
|
13076
13076
|
helpTextId: d,
|
|
13077
13077
|
htmlProps: i,
|
|
13078
13078
|
getHelpTextProps: b,
|
|
13079
|
-
getErrorMessageProps:
|
|
13079
|
+
getErrorMessageProps: $,
|
|
13080
13080
|
getRootProps: C,
|
|
13081
13081
|
getLabelProps: S,
|
|
13082
13082
|
getRequiredIndicatorProps: _
|
|
@@ -13291,12 +13291,12 @@ function fM() {
|
|
|
13291
13291
|
symbol: x("symbol"),
|
|
13292
13292
|
any: b(),
|
|
13293
13293
|
arrayOf: S,
|
|
13294
|
-
element:
|
|
13294
|
+
element: $(),
|
|
13295
13295
|
elementType: C(),
|
|
13296
13296
|
instanceOf: _,
|
|
13297
13297
|
node: te(),
|
|
13298
13298
|
objectOf: N,
|
|
13299
|
-
oneOf:
|
|
13299
|
+
oneOf: k,
|
|
13300
13300
|
oneOfType: I,
|
|
13301
13301
|
shape: se,
|
|
13302
13302
|
exact: ce
|
|
@@ -13366,7 +13366,7 @@ function fM() {
|
|
|
13366
13366
|
}
|
|
13367
13367
|
return y(F);
|
|
13368
13368
|
}
|
|
13369
|
-
function
|
|
13369
|
+
function $() {
|
|
13370
13370
|
function M(F, U, O, K, L) {
|
|
13371
13371
|
var V = F[U];
|
|
13372
13372
|
if (!s(V)) {
|
|
@@ -13398,7 +13398,7 @@ function fM() {
|
|
|
13398
13398
|
}
|
|
13399
13399
|
return y(F);
|
|
13400
13400
|
}
|
|
13401
|
-
function
|
|
13401
|
+
function k(M) {
|
|
13402
13402
|
if (!Array.isArray(M))
|
|
13403
13403
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
13404
13404
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -13802,7 +13802,7 @@ var kb = zd({}, function(e) {
|
|
|
13802
13802
|
async: !0,
|
|
13803
13803
|
ssr: typeof document < "u"
|
|
13804
13804
|
}), CM = /* @__PURE__ */ on(void 0), EM = [], _b = /* @__PURE__ */ R.forwardRef(function(t, n) {
|
|
13805
|
-
var r, a = R.useState(), o = a[0], i = a[1], s = R.useRef(), c = R.useRef(!1), l = R.useRef(null), u = R.useState({}), d = u[1], f = t.children, p = t.disabled, h = p === void 0 ? !1 : p, m = t.noFocusGuards, y = m === void 0 ? !1 : m, x = t.persistentFocus, b = x === void 0 ? !1 : x, S = t.crossFrame,
|
|
13805
|
+
var r, a = R.useState(), o = a[0], i = a[1], s = R.useRef(), c = R.useRef(!1), l = R.useRef(null), u = R.useState({}), d = u[1], f = t.children, p = t.disabled, h = p === void 0 ? !1 : p, m = t.noFocusGuards, y = m === void 0 ? !1 : m, x = t.persistentFocus, b = x === void 0 ? !1 : x, S = t.crossFrame, $ = S === void 0 ? !0 : S, C = t.autoFocus, _ = C === void 0 ? !0 : C, k = t.allowTextSelection, N = t.group, I = t.className, te = t.whiteList, X = t.hasPositiveIndices, se = t.shards, ce = se === void 0 ? EM : se, ne = t.as, G = ne === void 0 ? "div" : ne, oe = t.lockProps, me = oe === void 0 ? {} : oe, he = t.sideCar, Z = t.returnFocus, M = Z === void 0 ? !1 : Z, F = t.focusOptions, U = t.onActivation, O = t.onDeactivation, K = R.useState({}), L = K[0], V = R.useCallback(function(vt) {
|
|
13806
13806
|
var St = vt.captureFocusRestore;
|
|
13807
13807
|
if (!l.current) {
|
|
13808
13808
|
var Ct, mt = (Ct = document) == null ? void 0 : Ct.activeElement;
|
|
@@ -13827,7 +13827,7 @@ var kb = zd({}, function(e) {
|
|
|
13827
13827
|
}, []), W = $b.useMedium, be = R.useCallback(function(vt) {
|
|
13828
13828
|
s.current !== vt && (s.current = vt, i(vt));
|
|
13829
13829
|
}, []);
|
|
13830
|
-
process.env.NODE_ENV !== "production" && (typeof
|
|
13830
|
+
process.env.NODE_ENV !== "production" && (typeof k < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), R.useEffect(function() {
|
|
13831
13831
|
!s.current && typeof G != "string" && console.error("FocusLock: could not obtain ref to internal node");
|
|
13832
13832
|
}, []));
|
|
13833
13833
|
var B = Dr((r = {}, r[xb] = h && "disabled", r[Tu] = N, r), me), Qe = y !== !0, pt = Qe && y !== "tail", cn = wb([n, be]), Be = R.useMemo(function() {
|
|
@@ -13857,7 +13857,7 @@ var kb = zd({}, function(e) {
|
|
|
13857
13857
|
observed: o,
|
|
13858
13858
|
disabled: h,
|
|
13859
13859
|
persistentFocus: b,
|
|
13860
|
-
crossFrame:
|
|
13860
|
+
crossFrame: $,
|
|
13861
13861
|
autoFocus: _,
|
|
13862
13862
|
whiteList: te,
|
|
13863
13863
|
shards: ce,
|
|
@@ -14370,8 +14370,8 @@ var oR = function(e) {
|
|
|
14370
14370
|
p
|
|
14371
14371
|
)
|
|
14372
14372
|
); b; ) {
|
|
14373
|
-
for (var S = 0,
|
|
14374
|
-
var C =
|
|
14373
|
+
for (var S = 0, $ = x; S < $.length; S++) {
|
|
14374
|
+
var C = $[S];
|
|
14375
14375
|
if (b != null && b.contains(C.node))
|
|
14376
14376
|
return C.node;
|
|
14377
14377
|
}
|
|
@@ -14508,11 +14508,11 @@ var SR = function(t) {
|
|
|
14508
14508
|
var p = [u].concat(i.map(pR).filter(Boolean)), h = function() {
|
|
14509
14509
|
if (!SR(s) || !l || !Ot || Yd)
|
|
14510
14510
|
return !1;
|
|
14511
|
-
var S = qb(p),
|
|
14511
|
+
var S = qb(p), $ = S.findIndex(function(C) {
|
|
14512
14512
|
var _ = C.node;
|
|
14513
14513
|
return _ === Ot;
|
|
14514
14514
|
});
|
|
14515
|
-
return
|
|
14515
|
+
return $ === 0 || $ === S.length - 1;
|
|
14516
14516
|
};
|
|
14517
14517
|
if ((!f || yR(f)) && (a || h() || !mR() || !Ot && o) && (u && !(jb(p) || f && wR(f, p) || vR(f)) && (document && !Ot && f && !o ? (f.blur && f.blur(), document.body.focus()) : (t = Gb(p, Ot, {
|
|
14518
14518
|
focusOptions: c
|
|
@@ -14522,8 +14522,8 @@ var SR = function(t) {
|
|
|
14522
14522
|
return S;
|
|
14523
14523
|
}).indexOf(m);
|
|
14524
14524
|
x > -1 && (y.filter(function(b) {
|
|
14525
|
-
var S = b.guard,
|
|
14526
|
-
return S &&
|
|
14525
|
+
var S = b.guard, $ = b.node;
|
|
14526
|
+
return S && $.dataset.focusAutoGuard;
|
|
14527
14527
|
}).forEach(function(b) {
|
|
14528
14528
|
var S = b.node;
|
|
14529
14529
|
return S.removeAttribute("tabIndex");
|
|
@@ -14843,7 +14843,7 @@ function VR(e) {
|
|
|
14843
14843
|
I.key === "Escape" && (I.stopPropagation(), o && (n == null || n()), c == null || c());
|
|
14844
14844
|
},
|
|
14845
14845
|
[o, n, c]
|
|
14846
|
-
), [b, S] = de(!1), [
|
|
14846
|
+
), [b, S] = de(!1), [$, C] = de(!1), _ = pe(
|
|
14847
14847
|
(I = {}, te = null) => ({
|
|
14848
14848
|
role: "dialog",
|
|
14849
14849
|
...I,
|
|
@@ -14852,14 +14852,14 @@ function VR(e) {
|
|
|
14852
14852
|
tabIndex: -1,
|
|
14853
14853
|
"aria-modal": !0,
|
|
14854
14854
|
"aria-labelledby": b ? f : void 0,
|
|
14855
|
-
"aria-describedby":
|
|
14855
|
+
"aria-describedby": $ ? p : void 0,
|
|
14856
14856
|
onClick: yo(
|
|
14857
14857
|
I.onClick,
|
|
14858
14858
|
(X) => X.stopPropagation()
|
|
14859
14859
|
)
|
|
14860
14860
|
}),
|
|
14861
|
-
[p,
|
|
14862
|
-
),
|
|
14861
|
+
[p, $, d, f, b]
|
|
14862
|
+
), k = pe(
|
|
14863
14863
|
(I) => {
|
|
14864
14864
|
I.stopPropagation(), m.current === I.target && $u.isTopModal(l.current) && (a && (n == null || n()), s == null || s());
|
|
14865
14865
|
},
|
|
@@ -14868,11 +14868,11 @@ function VR(e) {
|
|
|
14868
14868
|
(I = {}, te = null) => ({
|
|
14869
14869
|
...I,
|
|
14870
14870
|
ref: Ls(te, u),
|
|
14871
|
-
onClick: yo(I.onClick,
|
|
14871
|
+
onClick: yo(I.onClick, k),
|
|
14872
14872
|
onKeyDown: yo(I.onKeyDown, x),
|
|
14873
14873
|
onMouseDown: yo(I.onMouseDown, y)
|
|
14874
14874
|
}),
|
|
14875
|
-
[x, y,
|
|
14875
|
+
[x, y, k]
|
|
14876
14876
|
);
|
|
14877
14877
|
return {
|
|
14878
14878
|
isOpen: t,
|
|
@@ -14962,11 +14962,11 @@ var Rs = "right-scroll-bar-position", Os = "width-before-scroll-bar", HR = "with
|
|
|
14962
14962
|
onScrollCapture: Il,
|
|
14963
14963
|
onWheelCapture: Il,
|
|
14964
14964
|
onTouchMoveCapture: Il
|
|
14965
|
-
}), a = r[0], o = r[1], i = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noIsolation, h = e.inert, m = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, S = Ab(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]),
|
|
14965
|
+
}), a = r[0], o = r[1], i = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noIsolation, h = e.inert, m = e.allowPinchZoom, y = e.as, x = y === void 0 ? "div" : y, b = e.gapMode, S = Ab(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), $ = f, C = wb([n, t]), _ = yn(yn({}, S), a);
|
|
14966
14966
|
return R.createElement(
|
|
14967
14967
|
R.Fragment,
|
|
14968
14968
|
null,
|
|
14969
|
-
u && R.createElement(
|
|
14969
|
+
u && R.createElement($, { sideCar: sv, removeScrollBar: l, shards: d, noIsolation: p, inert: h, setCallbacks: o, allowPinchZoom: !!m, lockRef: n, gapMode: b }),
|
|
14970
14970
|
i ? R.cloneElement(R.Children.only(s), yn(yn({}, _), { ref: C })) : R.createElement(x, yn({}, _, { className: c, ref: C }), s)
|
|
14971
14971
|
);
|
|
14972
14972
|
});
|
|
@@ -15211,18 +15211,18 @@ function yO(e) {
|
|
|
15211
15211
|
var s = R.useCallback(function(m, y) {
|
|
15212
15212
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
15213
15213
|
return !i.current.allowPinchZoom;
|
|
15214
|
-
var x = ds(m), b = n.current, S = "deltaX" in m ? m.deltaX : b[0] - x[0],
|
|
15215
|
-
if ("touches" in m &&
|
|
15214
|
+
var x = ds(m), b = n.current, S = "deltaX" in m ? m.deltaX : b[0] - x[0], $ = "deltaY" in m ? m.deltaY : b[1] - x[1], C, _ = m.target, k = Math.abs(S) > Math.abs($) ? "h" : "v";
|
|
15215
|
+
if ("touches" in m && k === "h" && _.type === "range")
|
|
15216
15216
|
return !1;
|
|
15217
|
-
var N = Ip(
|
|
15217
|
+
var N = Ip(k, _);
|
|
15218
15218
|
if (!N)
|
|
15219
15219
|
return !0;
|
|
15220
|
-
if (N ? C =
|
|
15220
|
+
if (N ? C = k : (C = k === "v" ? "h" : "v", N = Ip(k, _)), !N)
|
|
15221
15221
|
return !1;
|
|
15222
|
-
if (!r.current && "changedTouches" in m && (S ||
|
|
15222
|
+
if (!r.current && "changedTouches" in m && (S || $) && (r.current = C), !C)
|
|
15223
15223
|
return !0;
|
|
15224
15224
|
var I = r.current || C;
|
|
15225
|
-
return hO(I, y, m, I === "h" ? S :
|
|
15225
|
+
return hO(I, y, m, I === "h" ? S : $, !0);
|
|
15226
15226
|
}, []), c = R.useCallback(function(m) {
|
|
15227
15227
|
var y = m;
|
|
15228
15228
|
if (!(!da.length || da[da.length - 1] !== o)) {
|
|
@@ -15236,15 +15236,15 @@ function yO(e) {
|
|
|
15236
15236
|
if (!b) {
|
|
15237
15237
|
var S = (i.current.shards || []).map(Bp).filter(Boolean).filter(function(C) {
|
|
15238
15238
|
return C.contains(y.target);
|
|
15239
|
-
}),
|
|
15240
|
-
|
|
15239
|
+
}), $ = S.length > 0 ? s(y, S[0]) : !i.current.noIsolation;
|
|
15240
|
+
$ && y.cancelable && y.preventDefault();
|
|
15241
15241
|
}
|
|
15242
15242
|
}
|
|
15243
15243
|
}, []), l = R.useCallback(function(m, y, x, b) {
|
|
15244
15244
|
var S = { name: m, delta: y, target: x, should: b, shadowParent: bO(x) };
|
|
15245
15245
|
t.current.push(S), setTimeout(function() {
|
|
15246
|
-
t.current = t.current.filter(function(
|
|
15247
|
-
return
|
|
15246
|
+
t.current = t.current.filter(function($) {
|
|
15247
|
+
return $ !== S;
|
|
15248
15248
|
});
|
|
15249
15249
|
}, 1);
|
|
15250
15250
|
}, []), u = R.useCallback(function(m) {
|
|
@@ -16073,8 +16073,8 @@ var Ru = function(t) {
|
|
|
16073
16073
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
16074
16074
|
}, rt = function(t, n) {
|
|
16075
16075
|
var r = "".concat(YO(t), "Element"), a = function(c) {
|
|
16076
|
-
var l = c.id, u = c.className, d = c.options, f = d === void 0 ? {} : d, p = c.onBlur, h = c.onFocus, m = c.onReady, y = c.onChange, x = c.onEscape, b = c.onClick, S = c.onLoadError,
|
|
16077
|
-
Rt(G, "blur", p), Rt(G, "focus", h), Rt(G, "escape", x), Rt(G, "click", b), Rt(G, "loaderror", S), Rt(G, "loaderstart",
|
|
16076
|
+
var l = c.id, u = c.className, d = c.options, f = d === void 0 ? {} : d, p = c.onBlur, h = c.onFocus, m = c.onReady, y = c.onChange, x = c.onEscape, b = c.onClick, S = c.onLoadError, $ = c.onLoaderStart, C = c.onNetworksChange, _ = c.onConfirm, k = c.onCancel, N = c.onShippingAddressChange, I = c.onShippingRateChange, te = Ru("mounts <".concat(r, ">")), X = "elements" in te ? te.elements : null, se = "customCheckoutSdk" in te ? te.customCheckoutSdk : null, ce = _e.useState(null), ne = Av(ce, 2), G = ne[0], oe = ne[1], me = _e.useRef(null), he = _e.useRef(null);
|
|
16077
|
+
Rt(G, "blur", p), Rt(G, "focus", h), Rt(G, "escape", x), Rt(G, "click", b), Rt(G, "loaderror", S), Rt(G, "loaderstart", $), Rt(G, "networkschange", C), Rt(G, "confirm", _), Rt(G, "cancel", k), Rt(G, "shippingaddresschange", N), Rt(G, "shippingratechange", I), Rt(G, "change", y);
|
|
16078
16078
|
var Z;
|
|
16079
16079
|
m && (t === "expressCheckout" ? Z = m : Z = function() {
|
|
16080
16080
|
m(G);
|
|
@@ -17289,7 +17289,7 @@ function W5(e) {
|
|
|
17289
17289
|
x.current = !1;
|
|
17290
17290
|
};
|
|
17291
17291
|
}, []);
|
|
17292
|
-
var S = de(0),
|
|
17292
|
+
var S = de(0), $ = S[1], C = Ee({
|
|
17293
17293
|
values: ps(f.initialValues),
|
|
17294
17294
|
errors: ps(f.initialErrors) || yr,
|
|
17295
17295
|
touched: ps(f.initialTouched) || ms,
|
|
@@ -17297,9 +17297,9 @@ function W5(e) {
|
|
|
17297
17297
|
isSubmitting: !1,
|
|
17298
17298
|
isValidating: !1,
|
|
17299
17299
|
submitCount: 0
|
|
17300
|
-
}), _ = C.current,
|
|
17300
|
+
}), _ = C.current, k = pe(function(E) {
|
|
17301
17301
|
var D = C.current;
|
|
17302
|
-
C.current = G5(D, E), D !== C.current &&
|
|
17302
|
+
C.current = G5(D, E), D !== C.current && $(function(j) {
|
|
17303
17303
|
return j + 1;
|
|
17304
17304
|
});
|
|
17305
17305
|
}, []), N = pe(function(E, D) {
|
|
@@ -17343,14 +17343,14 @@ function W5(e) {
|
|
|
17343
17343
|
return ge;
|
|
17344
17344
|
});
|
|
17345
17345
|
}, [f.validate, f.validationSchema, X, N, I]), ce = jt(function(E) {
|
|
17346
|
-
return E === void 0 && (E = _.values),
|
|
17346
|
+
return E === void 0 && (E = _.values), k({
|
|
17347
17347
|
type: "SET_ISVALIDATING",
|
|
17348
17348
|
payload: !0
|
|
17349
17349
|
}), se(E).then(function(D) {
|
|
17350
|
-
return x.current && (
|
|
17350
|
+
return x.current && (k({
|
|
17351
17351
|
type: "SET_ISVALIDATING",
|
|
17352
17352
|
payload: !1
|
|
17353
|
-
}),
|
|
17353
|
+
}), k({
|
|
17354
17354
|
type: "SET_ERRORS",
|
|
17355
17355
|
payload: D
|
|
17356
17356
|
})), D;
|
|
@@ -17363,7 +17363,7 @@ function W5(e) {
|
|
|
17363
17363
|
var D = E && E.values ? E.values : p.current, j = E && E.errors ? E.errors : h.current ? h.current : f.initialErrors || {}, q = E && E.touched ? E.touched : m.current ? m.current : f.initialTouched || {}, fe = E && E.status ? E.status : y.current ? y.current : f.initialStatus;
|
|
17364
17364
|
p.current = D, h.current = j, m.current = q, y.current = fe;
|
|
17365
17365
|
var ge = function() {
|
|
17366
|
-
|
|
17366
|
+
k({
|
|
17367
17367
|
type: "RESET_FORM",
|
|
17368
17368
|
payload: {
|
|
17369
17369
|
isSubmitting: !!E && !!E.isSubmitting,
|
|
@@ -17385,17 +17385,17 @@ function W5(e) {
|
|
|
17385
17385
|
ye(function() {
|
|
17386
17386
|
x.current === !0 && !wr(p.current, f.initialValues) && l && (p.current = f.initialValues, ne(), i && ce(p.current));
|
|
17387
17387
|
}, [l, f.initialValues, ne, i, ce]), ye(function() {
|
|
17388
|
-
l && x.current === !0 && !wr(h.current, f.initialErrors) && (h.current = f.initialErrors || yr,
|
|
17388
|
+
l && x.current === !0 && !wr(h.current, f.initialErrors) && (h.current = f.initialErrors || yr, k({
|
|
17389
17389
|
type: "SET_ERRORS",
|
|
17390
17390
|
payload: f.initialErrors || yr
|
|
17391
17391
|
}));
|
|
17392
17392
|
}, [l, f.initialErrors]), ye(function() {
|
|
17393
|
-
l && x.current === !0 && !wr(m.current, f.initialTouched) && (m.current = f.initialTouched || ms,
|
|
17393
|
+
l && x.current === !0 && !wr(m.current, f.initialTouched) && (m.current = f.initialTouched || ms, k({
|
|
17394
17394
|
type: "SET_TOUCHED",
|
|
17395
17395
|
payload: f.initialTouched || ms
|
|
17396
17396
|
}));
|
|
17397
17397
|
}, [l, f.initialTouched]), ye(function() {
|
|
17398
|
-
l && x.current === !0 && !wr(y.current, f.initialStatus) && (y.current = f.initialStatus,
|
|
17398
|
+
l && x.current === !0 && !wr(y.current, f.initialStatus) && (y.current = f.initialStatus, k({
|
|
17399
17399
|
type: "SET_STATUS",
|
|
17400
17400
|
payload: f.initialStatus
|
|
17401
17401
|
}));
|
|
@@ -17403,23 +17403,23 @@ function W5(e) {
|
|
|
17403
17403
|
var G = jt(function(E) {
|
|
17404
17404
|
if (b.current[E] && nn(b.current[E].validate)) {
|
|
17405
17405
|
var D = It(_.values, E), j = b.current[E].validate(D);
|
|
17406
|
-
return zl(j) ? (
|
|
17406
|
+
return zl(j) ? (k({
|
|
17407
17407
|
type: "SET_ISVALIDATING",
|
|
17408
17408
|
payload: !0
|
|
17409
17409
|
}), j.then(function(q) {
|
|
17410
17410
|
return q;
|
|
17411
17411
|
}).then(function(q) {
|
|
17412
|
-
|
|
17412
|
+
k({
|
|
17413
17413
|
type: "SET_FIELD_ERROR",
|
|
17414
17414
|
payload: {
|
|
17415
17415
|
field: E,
|
|
17416
17416
|
value: q
|
|
17417
17417
|
}
|
|
17418
|
-
}),
|
|
17418
|
+
}), k({
|
|
17419
17419
|
type: "SET_ISVALIDATING",
|
|
17420
17420
|
payload: !1
|
|
17421
17421
|
});
|
|
17422
|
-
})) : (
|
|
17422
|
+
})) : (k({
|
|
17423
17423
|
type: "SET_FIELD_ERROR",
|
|
17424
17424
|
payload: {
|
|
17425
17425
|
field: E,
|
|
@@ -17427,19 +17427,19 @@ function W5(e) {
|
|
|
17427
17427
|
}
|
|
17428
17428
|
}), Promise.resolve(j));
|
|
17429
17429
|
} else if (f.validationSchema)
|
|
17430
|
-
return
|
|
17430
|
+
return k({
|
|
17431
17431
|
type: "SET_ISVALIDATING",
|
|
17432
17432
|
payload: !0
|
|
17433
17433
|
}), I(_.values, E).then(function(q) {
|
|
17434
17434
|
return q;
|
|
17435
17435
|
}).then(function(q) {
|
|
17436
|
-
|
|
17436
|
+
k({
|
|
17437
17437
|
type: "SET_FIELD_ERROR",
|
|
17438
17438
|
payload: {
|
|
17439
17439
|
field: E,
|
|
17440
17440
|
value: It(q, E)
|
|
17441
17441
|
}
|
|
17442
|
-
}),
|
|
17442
|
+
}), k({
|
|
17443
17443
|
type: "SET_ISVALIDATING",
|
|
17444
17444
|
payload: !1
|
|
17445
17445
|
});
|
|
@@ -17453,27 +17453,27 @@ function W5(e) {
|
|
|
17453
17453
|
}, []), me = pe(function(E) {
|
|
17454
17454
|
delete b.current[E];
|
|
17455
17455
|
}, []), he = jt(function(E, D) {
|
|
17456
|
-
|
|
17456
|
+
k({
|
|
17457
17457
|
type: "SET_TOUCHED",
|
|
17458
17458
|
payload: E
|
|
17459
17459
|
});
|
|
17460
17460
|
var j = D === void 0 ? a : D;
|
|
17461
17461
|
return j ? ce(_.values) : Promise.resolve();
|
|
17462
17462
|
}), Z = pe(function(E) {
|
|
17463
|
-
|
|
17463
|
+
k({
|
|
17464
17464
|
type: "SET_ERRORS",
|
|
17465
17465
|
payload: E
|
|
17466
17466
|
});
|
|
17467
17467
|
}, []), M = jt(function(E, D) {
|
|
17468
17468
|
var j = nn(E) ? E(_.values) : E;
|
|
17469
|
-
|
|
17469
|
+
k({
|
|
17470
17470
|
type: "SET_VALUES",
|
|
17471
17471
|
payload: j
|
|
17472
17472
|
});
|
|
17473
17473
|
var q = D === void 0 ? n : D;
|
|
17474
17474
|
return q ? ce(j) : Promise.resolve();
|
|
17475
17475
|
}), F = pe(function(E, D) {
|
|
17476
|
-
|
|
17476
|
+
k({
|
|
17477
17477
|
type: "SET_FIELD_ERROR",
|
|
17478
17478
|
payload: {
|
|
17479
17479
|
field: E,
|
|
@@ -17481,7 +17481,7 @@ function W5(e) {
|
|
|
17481
17481
|
}
|
|
17482
17482
|
});
|
|
17483
17483
|
}, []), U = jt(function(E, D, j) {
|
|
17484
|
-
|
|
17484
|
+
k({
|
|
17485
17485
|
type: "SET_FIELD_VALUE",
|
|
17486
17486
|
payload: {
|
|
17487
17487
|
field: E,
|
|
@@ -17509,7 +17509,7 @@ function W5(e) {
|
|
|
17509
17509
|
};
|
|
17510
17510
|
O(E);
|
|
17511
17511
|
}), L = jt(function(E, D, j) {
|
|
17512
|
-
D === void 0 && (D = !0),
|
|
17512
|
+
D === void 0 && (D = !0), k({
|
|
17513
17513
|
type: "SET_FIELD_TOUCHED",
|
|
17514
17514
|
payload: {
|
|
17515
17515
|
field: E,
|
|
@@ -17533,27 +17533,27 @@ function W5(e) {
|
|
|
17533
17533
|
};
|
|
17534
17534
|
V(E);
|
|
17535
17535
|
}), ie = pe(function(E) {
|
|
17536
|
-
nn(E) ?
|
|
17536
|
+
nn(E) ? k({
|
|
17537
17537
|
type: "SET_FORMIK_STATE",
|
|
17538
17538
|
payload: E
|
|
17539
|
-
}) :
|
|
17539
|
+
}) : k({
|
|
17540
17540
|
type: "SET_FORMIK_STATE",
|
|
17541
17541
|
payload: function() {
|
|
17542
17542
|
return E;
|
|
17543
17543
|
}
|
|
17544
17544
|
});
|
|
17545
17545
|
}, []), ue = pe(function(E) {
|
|
17546
|
-
|
|
17546
|
+
k({
|
|
17547
17547
|
type: "SET_STATUS",
|
|
17548
17548
|
payload: E
|
|
17549
17549
|
});
|
|
17550
17550
|
}, []), W = pe(function(E) {
|
|
17551
|
-
|
|
17551
|
+
k({
|
|
17552
17552
|
type: "SET_ISSUBMITTING",
|
|
17553
17553
|
payload: E
|
|
17554
17554
|
});
|
|
17555
17555
|
}, []), be = jt(function() {
|
|
17556
|
-
return
|
|
17556
|
+
return k({
|
|
17557
17557
|
type: "SUBMIT_ATTEMPT"
|
|
17558
17558
|
}), ce().then(function(E) {
|
|
17559
17559
|
var D = E instanceof Error, j = !D && Object.keys(E).length === 0;
|
|
@@ -17566,16 +17566,16 @@ function W5(e) {
|
|
|
17566
17566
|
throw fe;
|
|
17567
17567
|
}
|
|
17568
17568
|
return Promise.resolve(q).then(function(fe) {
|
|
17569
|
-
return x.current &&
|
|
17569
|
+
return x.current && k({
|
|
17570
17570
|
type: "SUBMIT_SUCCESS"
|
|
17571
17571
|
}), fe;
|
|
17572
17572
|
}).catch(function(fe) {
|
|
17573
17573
|
if (x.current)
|
|
17574
|
-
throw
|
|
17574
|
+
throw k({
|
|
17575
17575
|
type: "SUBMIT_FAILURE"
|
|
17576
17576
|
}), fe;
|
|
17577
17577
|
});
|
|
17578
|
-
} else if (x.current && (
|
|
17578
|
+
} else if (x.current && (k({
|
|
17579
17579
|
type: "SUBMIT_FAILURE"
|
|
17580
17580
|
}), D))
|
|
17581
17581
|
throw E;
|
|
@@ -18207,7 +18207,7 @@ function fa(e) {
|
|
|
18207
18207
|
const ce = new Pt(Pt.formatError(X.message || f, se), n, se.path, X.type || l, se.disableStackTrace);
|
|
18208
18208
|
return ce.params = se, ce;
|
|
18209
18209
|
}
|
|
18210
|
-
const
|
|
18210
|
+
const $ = y ? s : c;
|
|
18211
18211
|
let C = {
|
|
18212
18212
|
path: r,
|
|
18213
18213
|
parent: h,
|
|
@@ -18220,9 +18220,9 @@ function fa(e) {
|
|
|
18220
18220
|
schema: i
|
|
18221
18221
|
};
|
|
18222
18222
|
const _ = (X) => {
|
|
18223
|
-
Pt.isError(X) ?
|
|
18224
|
-
},
|
|
18225
|
-
Pt.isError(X) ?
|
|
18223
|
+
Pt.isError(X) ? $(X) : X ? c(null) : $(S());
|
|
18224
|
+
}, k = (X) => {
|
|
18225
|
+
Pt.isError(X) ? $(X) : s(X);
|
|
18226
18226
|
};
|
|
18227
18227
|
if (p && Pr(n))
|
|
18228
18228
|
return _(!0);
|
|
@@ -18232,10 +18232,10 @@ function fa(e) {
|
|
|
18232
18232
|
if (I = u.call(C, n, C), typeof ((te = I) == null ? void 0 : te.then) == "function") {
|
|
18233
18233
|
if (a.sync)
|
|
18234
18234
|
throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
|
|
18235
|
-
return Promise.resolve(I).then(_,
|
|
18235
|
+
return Promise.resolve(I).then(_, k);
|
|
18236
18236
|
}
|
|
18237
18237
|
} catch (X) {
|
|
18238
|
-
|
|
18238
|
+
k(X);
|
|
18239
18239
|
return;
|
|
18240
18240
|
}
|
|
18241
18241
|
_(I);
|
|
@@ -21038,7 +21038,7 @@ const _m = /* @__PURE__ */ new Map([
|
|
|
21038
21038
|
setIframeUrl: f
|
|
21039
21039
|
}) => {
|
|
21040
21040
|
var G, oe, me;
|
|
21041
|
-
const p = $v(), h = Pv(), m = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: y, data: x } = af(l), [b, S] = de(!1), [
|
|
21041
|
+
const p = $v(), h = Pv(), m = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: y, data: x } = af(l), [b, S] = de(!1), [$, C] = de(""), [_, k] = de("");
|
|
21042
21042
|
de(!1);
|
|
21043
21043
|
const N = (n == null ? void 0 : n.country) ?? (m == null ? void 0 : m.country_name), I = (G = Ht == null ? void 0 : Ht.find(
|
|
21044
21044
|
(he) => he.name === N
|
|
@@ -21070,7 +21070,7 @@ const _m = /* @__PURE__ */ new Map([
|
|
|
21070
21070
|
}
|
|
21071
21071
|
}
|
|
21072
21072
|
}) : O = await p.createToken(U, {
|
|
21073
|
-
name:
|
|
21073
|
+
name: $,
|
|
21074
21074
|
address_country: I,
|
|
21075
21075
|
address_line1: te,
|
|
21076
21076
|
address_zip: _
|
|
@@ -21335,7 +21335,7 @@ const _m = /* @__PURE__ */ new Map([
|
|
|
21335
21335
|
fontSize: "16px",
|
|
21336
21336
|
type: "text",
|
|
21337
21337
|
onChange: (he) => {
|
|
21338
|
-
|
|
21338
|
+
k(he.target.value), r.setFieldValue("zipCode", he.target.value);
|
|
21339
21339
|
},
|
|
21340
21340
|
value: r.values.zipCode,
|
|
21341
21341
|
fontFamily: "inherit"
|
|
@@ -25704,6 +25704,7 @@ const rz = "Payment Completed", az = ({
|
|
|
25704
25704
|
y.canMakePayment().then((x) => {
|
|
25705
25705
|
x && (d(y), p(x));
|
|
25706
25706
|
}), y.on("paymentmethod", async (x) => {
|
|
25707
|
+
var _;
|
|
25707
25708
|
const b = Vu();
|
|
25708
25709
|
try {
|
|
25709
25710
|
await i.post("payments/init", {
|
|
@@ -25715,9 +25716,9 @@ const rz = "Payment Completed", az = ({
|
|
|
25715
25716
|
},
|
|
25716
25717
|
reference: b
|
|
25717
25718
|
});
|
|
25718
|
-
} catch (
|
|
25719
|
+
} catch (k) {
|
|
25719
25720
|
x.complete("fail"), $t(
|
|
25720
|
-
(
|
|
25721
|
+
(k == null ? void 0 : k.message) ?? "We couldn't initialize your payment",
|
|
25721
25722
|
_t.error
|
|
25722
25723
|
);
|
|
25723
25724
|
return;
|
|
@@ -25730,9 +25731,10 @@ const rz = "Payment Completed", az = ({
|
|
|
25730
25731
|
metadata: {
|
|
25731
25732
|
...t,
|
|
25732
25733
|
reference: b
|
|
25733
|
-
}
|
|
25734
|
+
},
|
|
25735
|
+
payment_method_id: (_ = x == null ? void 0 : x.paymentMethod) == null ? void 0 : _.id
|
|
25734
25736
|
}
|
|
25735
|
-
).then((
|
|
25737
|
+
).then((k) => k.data), { paymentIntent: $, error: C } = await c.confirmCardPayment(
|
|
25736
25738
|
S,
|
|
25737
25739
|
{
|
|
25738
25740
|
payment_method: x.paymentMethod.id
|
|
@@ -25745,9 +25747,9 @@ const rz = "Payment Completed", az = ({
|
|
|
25745
25747
|
_t.error
|
|
25746
25748
|
);
|
|
25747
25749
|
else {
|
|
25748
|
-
if (x.complete("success"),
|
|
25749
|
-
const { error:
|
|
25750
|
-
|
|
25750
|
+
if (x.complete("success"), $.status === "requires_action") {
|
|
25751
|
+
const { error: k } = await c.confirmCardPayment(S);
|
|
25752
|
+
k ? $t(
|
|
25751
25753
|
"Payment failed, please add a new payment method",
|
|
25752
25754
|
_t.error
|
|
25753
25755
|
) : (m(!0), setTimeout(() => {
|
|
@@ -25854,7 +25856,7 @@ const Gl = (e) => Math.round((e + Number.EPSILON) * 100) / 100, uz = (e) => {
|
|
|
25854
25856
|
switchingFees: p,
|
|
25855
25857
|
transactionFees: h
|
|
25856
25858
|
}) => {
|
|
25857
|
-
var b, S,
|
|
25859
|
+
var b, S, $, C, _, k, N, I, te, X, se, ce, ne;
|
|
25858
25860
|
const m = async () => {
|
|
25859
25861
|
var G, oe, me, he;
|
|
25860
25862
|
if (c !== "")
|
|
@@ -25979,7 +25981,7 @@ const Gl = (e) => Math.round((e + Number.EPSILON) * 100) / 100, uz = (e) => {
|
|
|
25979
25981
|
/* @__PURE__ */ H(Ye, { fontSize: ".875rem", lineHeight: "22px", fontWeight: 600, children: [
|
|
25980
25982
|
n,
|
|
25981
25983
|
" ",
|
|
25982
|
-
(C = (
|
|
25984
|
+
(C = ($ = f.localTaxFees) == null ? void 0 : $.toFixed(2)) == null ? void 0 : C.replace(/\B(?=(\d{3})+(?!\d))/g, ",")
|
|
25983
25985
|
] })
|
|
25984
25986
|
] }),
|
|
25985
25987
|
p.applySwitchingFee && p.localSwitchingFee > 0 && /* @__PURE__ */ H(Xe, { width: "100%", justifyContent: "space-between", children: [
|
|
@@ -26004,7 +26006,7 @@ const Gl = (e) => Math.round((e + Number.EPSILON) * 100) / 100, uz = (e) => {
|
|
|
26004
26006
|
children: [
|
|
26005
26007
|
n,
|
|
26006
26008
|
" ",
|
|
26007
|
-
(
|
|
26009
|
+
(k = (_ = p.localSwitchingFee) == null ? void 0 : _.toFixed(2)) == null ? void 0 : k.replace(/\B(?=(\d{3})+(?!\d))/g, ",")
|
|
26008
26010
|
]
|
|
26009
26011
|
}
|
|
26010
26012
|
)
|
|
@@ -26336,10 +26338,10 @@ const Wl = [
|
|
|
26336
26338
|
paymentOptions: x,
|
|
26337
26339
|
paymentRedirectUrl: b,
|
|
26338
26340
|
userAllowsWalletPayment: S,
|
|
26339
|
-
userAllowsCardPayment:
|
|
26341
|
+
userAllowsCardPayment: $,
|
|
26340
26342
|
baseUrl: C,
|
|
26341
26343
|
hasDiscountCode: _,
|
|
26342
|
-
mainstackProductId:
|
|
26344
|
+
mainstackProductId: k,
|
|
26343
26345
|
STRIPE_SECRET_KEY: N,
|
|
26344
26346
|
STRIPE_SECRET_KEY_GBP: I,
|
|
26345
26347
|
applyTrancheFee: te,
|
|
@@ -26537,7 +26539,7 @@ const Wl = [
|
|
|
26537
26539
|
product_id: et == null ? void 0 : et.product_id,
|
|
26538
26540
|
account_id: m,
|
|
26539
26541
|
currency: d,
|
|
26540
|
-
store_id:
|
|
26542
|
+
store_id: k
|
|
26541
26543
|
},
|
|
26542
26544
|
Z
|
|
26543
26545
|
);
|
|
@@ -26700,7 +26702,7 @@ const Wl = [
|
|
|
26700
26702
|
] }),
|
|
26701
26703
|
E("stripe") && /* @__PURE__ */ H(Zt, { children: [
|
|
26702
26704
|
" ",
|
|
26703
|
-
|
|
26705
|
+
$ && K && V && /* @__PURE__ */ H(Xe, { mt: "12px", gap: "10px", children: [
|
|
26704
26706
|
!(h != null && h.hideBackButton) && /* @__PURE__ */ v(
|
|
26705
26707
|
Tn,
|
|
26706
26708
|
{
|
|
@@ -26776,7 +26778,7 @@ const Wl = [
|
|
|
26776
26778
|
vi
|
|
26777
26779
|
) })
|
|
26778
26780
|
] }),
|
|
26779
|
-
(E("paystack") || E("startbutton")) && /* @__PURE__ */ v(Zt, { children:
|
|
26781
|
+
(E("paystack") || E("startbutton")) && /* @__PURE__ */ v(Zt, { children: $ && !K && /* @__PURE__ */ v(
|
|
26780
26782
|
fz,
|
|
26781
26783
|
{
|
|
26782
26784
|
showBackButton: !(h != null && h.hideBackButton),
|