mainstack-payments 0.5.1 → 0.5.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/build/mainstack-payments.js +98 -98
- package/package.json +1 -1
|
@@ -776,7 +776,7 @@ function VS() {
|
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
var C = l, F = c, P = s, N = i, I = t,
|
|
779
|
+
var C = l, F = c, P = s, N = i, I = t, ie = u, ee = r, se = h, fe = p, oe = n, ce = o, q = a, me = d, Re = !1;
|
|
780
780
|
function Se(B) {
|
|
781
781
|
return Re || (Re = !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) || k(B) === l;
|
|
782
782
|
}
|
|
@@ -807,7 +807,7 @@ function VS() {
|
|
|
807
807
|
function re(B) {
|
|
808
808
|
return k(B) === n;
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function le(B) {
|
|
811
811
|
return k(B) === o;
|
|
812
812
|
}
|
|
813
813
|
function H(B) {
|
|
@@ -816,7 +816,7 @@ function VS() {
|
|
|
816
816
|
function ye(B) {
|
|
817
817
|
return k(B) === d;
|
|
818
818
|
}
|
|
819
|
-
Pe.AsyncMode = C, Pe.ConcurrentMode = F, Pe.ContextConsumer = P, Pe.ContextProvider = N, Pe.Element = I, Pe.ForwardRef =
|
|
819
|
+
Pe.AsyncMode = C, Pe.ConcurrentMode = F, Pe.ContextConsumer = P, Pe.ContextProvider = N, Pe.Element = I, Pe.ForwardRef = ie, Pe.Fragment = ee, Pe.Lazy = se, Pe.Memo = fe, Pe.Portal = oe, Pe.Profiler = ce, Pe.StrictMode = q, Pe.Suspense = me, Pe.isAsyncMode = Se, Pe.isConcurrentMode = M, Pe.isContextConsumer = $, Pe.isContextProvider = j, Pe.isElement = D, Pe.isForwardRef = U, Pe.isFragment = Z, Pe.isLazy = W, Pe.isMemo = Q, Pe.isPortal = re, Pe.isProfiler = le, Pe.isStrictMode = H, Pe.isSuspense = ye, Pe.isValidElementType = E, Pe.typeOf = k;
|
|
820
820
|
}()), Pe;
|
|
821
821
|
}
|
|
822
822
|
process.env.NODE_ENV === "production" ? su.exports = zS() : su.exports = VS();
|
|
@@ -1973,9 +1973,9 @@ function xo(...e) {
|
|
|
1973
1973
|
var Hs = { exports: {} };
|
|
1974
1974
|
Hs.exports;
|
|
1975
1975
|
(function(e, t) {
|
|
1976
|
-
var n = 200, r = "__lodash_hash_undefined__", a = 800, o = 16, i = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", h = "[object GeneratorFunction]", m = "[object Map]", v = "[object Number]", y = "[object Null]", w = "[object Object]", E = "[object Proxy]", k = "[object RegExp]", C = "[object Set]", F = "[object String]", P = "[object Undefined]", N = "[object WeakMap]", I = "[object ArrayBuffer]",
|
|
1977
|
-
D[ee] = D[
|
|
1978
|
-
var U = typeof ts == "object" && ts && ts.Object === Object && ts, Z = typeof self == "object" && self && self.Object === Object && self, W = U || Z || Function("return this")(), Q = t && !t.nodeType && t, re = Q && !0 && e && !e.nodeType && e,
|
|
1976
|
+
var n = 200, r = "__lodash_hash_undefined__", a = 800, o = 16, i = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Function]", h = "[object GeneratorFunction]", m = "[object Map]", v = "[object Number]", y = "[object Null]", w = "[object Object]", E = "[object Proxy]", k = "[object RegExp]", C = "[object Set]", F = "[object String]", P = "[object Undefined]", N = "[object WeakMap]", I = "[object ArrayBuffer]", ie = "[object DataView]", ee = "[object Float32Array]", se = "[object Float64Array]", fe = "[object Int8Array]", oe = "[object Int16Array]", ce = "[object Int32Array]", q = "[object Uint8Array]", me = "[object Uint8ClampedArray]", Re = "[object Uint16Array]", Se = "[object Uint32Array]", M = /[\\^$.*+?()[\]{}|]/g, $ = /^\[object .+?Constructor\]$/, j = /^(?:0|[1-9]\d*)$/, D = {};
|
|
1977
|
+
D[ee] = D[se] = D[fe] = D[oe] = D[ce] = D[q] = D[me] = D[Re] = D[Se] = !0, D[s] = D[l] = D[I] = D[u] = D[ie] = D[d] = D[f] = D[p] = D[m] = D[v] = D[w] = D[k] = D[C] = D[F] = D[N] = !1;
|
|
1978
|
+
var U = typeof ts == "object" && ts && ts.Object === Object && ts, Z = typeof self == "object" && self && self.Object === Object && self, W = U || Z || Function("return this")(), Q = t && !t.nodeType && t, re = Q && !0 && e && !e.nodeType && e, le = re && re.exports === Q, H = le && U.process, ye = function() {
|
|
1979
1979
|
try {
|
|
1980
1980
|
var g = re && re.require && re.require("util").types;
|
|
1981
1981
|
return g || H && H.binding && H.binding("util");
|
|
@@ -2018,7 +2018,7 @@ Hs.exports;
|
|
|
2018
2018
|
return g ? "Symbol(src)_1." + g : "";
|
|
2019
2019
|
}(), Y = mt.toString, ue = T.call(Object), de = RegExp(
|
|
2020
2020
|
"^" + T.call(O).replace(M, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2021
|
-
), Oe =
|
|
2021
|
+
), Oe = le ? W.Buffer : void 0, xt = W.Symbol, Ln = W.Uint8Array, zn = Oe ? Oe.allocUnsafe : void 0, Za = ht(Object.getPrototypeOf, Object), qr = Object.create, Zr = mt.propertyIsEnumerable, Xa = St.splice, vt = xt ? xt.toStringTag : void 0, Xr = function() {
|
|
2022
2022
|
try {
|
|
2023
2023
|
var g = na(Object, "defineProperty");
|
|
2024
2024
|
return g({}, "", {}), g;
|
|
@@ -7710,9 +7710,9 @@ You may have forgotten to import it.`);
|
|
|
7710
7710
|
var P = Ba(d.concat(k), v.registered, C);
|
|
7711
7711
|
E += v.key + "-" + P.name, i !== void 0 && (E += " " + i);
|
|
7712
7712
|
var N = c && s === void 0 ? zp(w) : l, I = {};
|
|
7713
|
-
for (var
|
|
7714
|
-
c &&
|
|
7715
|
-
N(
|
|
7713
|
+
for (var ie in m)
|
|
7714
|
+
c && ie === "as" || // $FlowFixMe
|
|
7715
|
+
N(ie) && (I[ie] = m[ie]);
|
|
7716
7716
|
return I.className = E, I.ref = y, /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement(Bk, {
|
|
7717
7717
|
cache: v,
|
|
7718
7718
|
serialized: P,
|
|
@@ -9496,8 +9496,8 @@ function lh({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
9496
9496
|
const v = d + m, y = i === void 0 ? v : i(v);
|
|
9497
9497
|
y !== v && (m = y - d);
|
|
9498
9498
|
const w = (N) => -m * Math.exp(-N / r), E = (N) => y + w(N), k = (N) => {
|
|
9499
|
-
const I = w(N),
|
|
9500
|
-
f.done = Math.abs(I) <= c, f.value = f.done ? y :
|
|
9499
|
+
const I = w(N), ie = E(N);
|
|
9500
|
+
f.done = Math.abs(I) <= c, f.value = f.done ? y : ie;
|
|
9501
9501
|
};
|
|
9502
9502
|
let C, F;
|
|
9503
9503
|
const P = (N) => {
|
|
@@ -9566,11 +9566,11 @@ function Qo({ autoplay: e = !0, delay: t = 0, driver: n = z2, keyframes: r, type
|
|
|
9566
9566
|
keyframes: [...r].reverse(),
|
|
9567
9567
|
velocity: -(f.velocity || 0)
|
|
9568
9568
|
}));
|
|
9569
|
-
let P = "idle", N = null, I = null,
|
|
9569
|
+
let P = "idle", N = null, I = null, ie = null;
|
|
9570
9570
|
C.calculatedDuration === null && o && (C.calculatedDuration = uh(C));
|
|
9571
9571
|
const { calculatedDuration: ee } = C;
|
|
9572
|
-
let
|
|
9573
|
-
ee !== null && (
|
|
9572
|
+
let se = 1 / 0, fe = 1 / 0;
|
|
9573
|
+
ee !== null && (se = ee + i, fe = se * (o + 1) - i);
|
|
9574
9574
|
let oe = 0;
|
|
9575
9575
|
const ce = ($) => {
|
|
9576
9576
|
if (I === null)
|
|
@@ -9580,9 +9580,9 @@ function Qo({ autoplay: e = !0, delay: t = 0, driver: n = z2, keyframes: r, type
|
|
|
9580
9580
|
oe = Math.max(j, 0), P === "finished" && N === null && (oe = fe);
|
|
9581
9581
|
let U = oe, Z = C;
|
|
9582
9582
|
if (o) {
|
|
9583
|
-
const
|
|
9584
|
-
let H = Math.floor(
|
|
9585
|
-
!ye &&
|
|
9583
|
+
const le = Math.min(oe, fe) / se;
|
|
9584
|
+
let H = Math.floor(le), ye = le % 1;
|
|
9585
|
+
!ye && le >= 1 && (ye = 1), ye === 1 && H--, H = Math.min(H, o + 1), !!(H % 2) && (s === "reverse" ? (ye = 1 - ye, i && (ye -= i / se)) : s === "mirror" && (Z = F)), U = rr(0, 1, ye) * se;
|
|
9586
9586
|
}
|
|
9587
9587
|
const W = D ? { done: !1, value: r[0] } : Z.next(U);
|
|
9588
9588
|
k && (W.value = k(W.value));
|
|
@@ -9593,7 +9593,7 @@ function Qo({ autoplay: e = !0, delay: t = 0, driver: n = z2, keyframes: r, type
|
|
|
9593
9593
|
}, q = () => {
|
|
9594
9594
|
w && w.stop(), w = void 0;
|
|
9595
9595
|
}, me = () => {
|
|
9596
|
-
P = "idle", q(), m(), y(), I =
|
|
9596
|
+
P = "idle", q(), m(), y(), I = ie = null;
|
|
9597
9597
|
}, Re = () => {
|
|
9598
9598
|
P = "finished", u && u(), q(), m();
|
|
9599
9599
|
}, Se = () => {
|
|
@@ -9601,7 +9601,7 @@ function Qo({ autoplay: e = !0, delay: t = 0, driver: n = z2, keyframes: r, type
|
|
|
9601
9601
|
return;
|
|
9602
9602
|
w || (w = n(ce));
|
|
9603
9603
|
const $ = w.now();
|
|
9604
|
-
l && l(), N !== null ? I = $ - N : (!I || P === "finished") && (I = $), P === "finished" && y(),
|
|
9604
|
+
l && l(), N !== null ? I = $ - N : (!I || P === "finished") && (I = $), P === "finished" && y(), ie = I, N = null, P = "running", w.start();
|
|
9605
9605
|
};
|
|
9606
9606
|
e && Se();
|
|
9607
9607
|
const M = {
|
|
@@ -9635,7 +9635,7 @@ function Qo({ autoplay: e = !0, delay: t = 0, driver: n = z2, keyframes: r, type
|
|
|
9635
9635
|
h = !0, P !== "idle" && (P = "idle", c && c(), me());
|
|
9636
9636
|
},
|
|
9637
9637
|
cancel: () => {
|
|
9638
|
-
|
|
9638
|
+
ie !== null && ce(ie), me();
|
|
9639
9639
|
},
|
|
9640
9640
|
complete: () => {
|
|
9641
9641
|
P = "finished";
|
|
@@ -10288,24 +10288,24 @@ function _$(e) {
|
|
|
10288
10288
|
continue;
|
|
10289
10289
|
let I = k$(E.prevProp, k) || // If we're making this variant active, we want to always make it active
|
|
10290
10290
|
w === c && E.isActive && !P && C || // If we removed a higher-priority variant (i is in reverse order)
|
|
10291
|
-
y > m && C,
|
|
10291
|
+
y > m && C, ie = !1;
|
|
10292
10292
|
const ee = Array.isArray(k) ? k : [k];
|
|
10293
|
-
let
|
|
10294
|
-
F === !1 && (
|
|
10293
|
+
let se = ee.reduce(a, {});
|
|
10294
|
+
F === !1 && (se = {});
|
|
10295
10295
|
const { prevResolvedValues: fe = {} } = E, oe = {
|
|
10296
10296
|
...fe,
|
|
10297
|
-
...
|
|
10297
|
+
...se
|
|
10298
10298
|
}, ce = (q) => {
|
|
10299
|
-
I = !0, p.has(q) && (
|
|
10299
|
+
I = !0, p.has(q) && (ie = !0, p.delete(q)), E.needsAnimating[q] = !0;
|
|
10300
10300
|
};
|
|
10301
10301
|
for (const q in oe) {
|
|
10302
|
-
const me =
|
|
10302
|
+
const me = se[q], Re = fe[q];
|
|
10303
10303
|
if (h.hasOwnProperty(q))
|
|
10304
10304
|
continue;
|
|
10305
10305
|
let Se = !1;
|
|
10306
10306
|
el(me) && el(Re) ? Se = !jv(me, Re) : Se = me !== Re, Se ? me !== void 0 ? ce(q) : p.add(q) : me !== void 0 && p.has(q) ? ce(q) : E.protectedKeys[q] = !0;
|
|
10307
10307
|
}
|
|
10308
|
-
E.prevProp = k, E.prevResolvedValues =
|
|
10308
|
+
E.prevProp = k, E.prevResolvedValues = se, E.isActive && (h = { ...h, ...se }), r && e.blockInitialAnimation && (I = !1), I && (!P || ie) && f.push(...ee.map((q) => ({
|
|
10309
10309
|
animation: q,
|
|
10310
10310
|
options: { type: w, ...l }
|
|
10311
10311
|
})));
|
|
@@ -12438,11 +12438,11 @@ const zr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, exitBe
|
|
|
12438
12438
|
d.delete(E);
|
|
12439
12439
|
const N = Array.from(p.keys()).filter((I) => !v.includes(I));
|
|
12440
12440
|
if (N.forEach((I) => p.delete(I)), f.current = c.filter((I) => {
|
|
12441
|
-
const
|
|
12441
|
+
const ie = yr(I);
|
|
12442
12442
|
return (
|
|
12443
12443
|
// filter out the node exiting
|
|
12444
|
-
|
|
12445
|
-
N.includes(
|
|
12444
|
+
ie === E || // filter out the leftover children
|
|
12445
|
+
N.includes(ie)
|
|
12446
12446
|
);
|
|
12447
12447
|
}), !d.size) {
|
|
12448
12448
|
if (l.current === !1)
|
|
@@ -13757,11 +13757,11 @@ function nR() {
|
|
|
13757
13757
|
element: k(),
|
|
13758
13758
|
elementType: C(),
|
|
13759
13759
|
instanceOf: F,
|
|
13760
|
-
node:
|
|
13760
|
+
node: ie(),
|
|
13761
13761
|
objectOf: N,
|
|
13762
13762
|
oneOf: P,
|
|
13763
13763
|
oneOfType: I,
|
|
13764
|
-
shape:
|
|
13764
|
+
shape: se,
|
|
13765
13765
|
exact: fe
|
|
13766
13766
|
};
|
|
13767
13767
|
function h(M, $) {
|
|
@@ -13774,7 +13774,7 @@ function nR() {
|
|
|
13774
13774
|
function v(M) {
|
|
13775
13775
|
if (process.env.NODE_ENV !== "production")
|
|
13776
13776
|
var $ = {}, j = 0;
|
|
13777
|
-
function D(Z, W, Q, re,
|
|
13777
|
+
function D(Z, W, Q, re, le, H, ye) {
|
|
13778
13778
|
if (re = re || f, H = H || Q, ye !== n) {
|
|
13779
13779
|
if (l) {
|
|
13780
13780
|
var B = new Error(
|
|
@@ -13789,15 +13789,15 @@ function nR() {
|
|
|
13789
13789
|
), $[Xe] = !0, j++);
|
|
13790
13790
|
}
|
|
13791
13791
|
}
|
|
13792
|
-
return W[Q] == null ? Z ? W[Q] === null ? new m("The " +
|
|
13792
|
+
return W[Q] == null ? Z ? W[Q] === null ? new m("The " + le + " `" + H + "` is marked as required " + ("in `" + re + "`, but its value is `null`.")) : new m("The " + le + " `" + H + "` is marked as required in " + ("`" + re + "`, but its value is `undefined`.")) : null : M(W, Q, re, le, H);
|
|
13793
13793
|
}
|
|
13794
13794
|
var U = D.bind(null, !1);
|
|
13795
13795
|
return U.isRequired = D.bind(null, !0), U;
|
|
13796
13796
|
}
|
|
13797
13797
|
function y(M) {
|
|
13798
13798
|
function $(j, D, U, Z, W, Q) {
|
|
13799
|
-
var re = j[D],
|
|
13800
|
-
if (
|
|
13799
|
+
var re = j[D], le = q(re);
|
|
13800
|
+
if (le !== M) {
|
|
13801
13801
|
var H = me(re);
|
|
13802
13802
|
return new m(
|
|
13803
13803
|
"Invalid " + Z + " `" + W + "` of type " + ("`" + H + "` supplied to `" + U + "`, expected ") + ("`" + M + "`."),
|
|
@@ -13820,8 +13820,8 @@ function nR() {
|
|
|
13820
13820
|
var re = q(Q);
|
|
13821
13821
|
return new m("Invalid " + Z + " `" + W + "` of type " + ("`" + re + "` supplied to `" + U + "`, expected an array."));
|
|
13822
13822
|
}
|
|
13823
|
-
for (var
|
|
13824
|
-
var H = M(Q,
|
|
13823
|
+
for (var le = 0; le < Q.length; le++) {
|
|
13824
|
+
var H = M(Q, le, U, Z, W + "[" + le + "]", n);
|
|
13825
13825
|
if (H instanceof Error)
|
|
13826
13826
|
return H;
|
|
13827
13827
|
}
|
|
@@ -13870,11 +13870,11 @@ function nR() {
|
|
|
13870
13870
|
for (var Q = j[D], re = 0; re < M.length; re++)
|
|
13871
13871
|
if (h(Q, M[re]))
|
|
13872
13872
|
return null;
|
|
13873
|
-
var
|
|
13873
|
+
var le = JSON.stringify(M, function(ye, B) {
|
|
13874
13874
|
var Xe = me(B);
|
|
13875
13875
|
return Xe === "symbol" ? String(B) : B;
|
|
13876
13876
|
});
|
|
13877
|
-
return new m("Invalid " + Z + " `" + W + "` of value `" + String(Q) + "` " + ("supplied to `" + U + "`, expected one of " +
|
|
13877
|
+
return new m("Invalid " + Z + " `" + W + "` of value `" + String(Q) + "` " + ("supplied to `" + U + "`, expected one of " + le + "."));
|
|
13878
13878
|
}
|
|
13879
13879
|
return v($);
|
|
13880
13880
|
}
|
|
@@ -13885,9 +13885,9 @@ function nR() {
|
|
|
13885
13885
|
var Q = j[D], re = q(Q);
|
|
13886
13886
|
if (re !== "object")
|
|
13887
13887
|
return new m("Invalid " + Z + " `" + W + "` of type " + ("`" + re + "` supplied to `" + U + "`, expected an object."));
|
|
13888
|
-
for (var
|
|
13889
|
-
if (r(Q,
|
|
13890
|
-
var H = M(Q,
|
|
13888
|
+
for (var le in Q)
|
|
13889
|
+
if (r(Q, le)) {
|
|
13890
|
+
var H = M(Q, le, U, Z, W + "." + le, n);
|
|
13891
13891
|
if (H instanceof Error)
|
|
13892
13892
|
return H;
|
|
13893
13893
|
}
|
|
@@ -13906,18 +13906,18 @@ function nR() {
|
|
|
13906
13906
|
), i;
|
|
13907
13907
|
}
|
|
13908
13908
|
function D(U, Z, W, Q, re) {
|
|
13909
|
-
for (var
|
|
13909
|
+
for (var le = [], H = 0; H < M.length; H++) {
|
|
13910
13910
|
var ye = M[H], B = ye(U, Z, W, Q, re, n);
|
|
13911
13911
|
if (B == null)
|
|
13912
13912
|
return null;
|
|
13913
|
-
B.data && r(B.data, "expectedType") &&
|
|
13913
|
+
B.data && r(B.data, "expectedType") && le.push(B.data.expectedType);
|
|
13914
13914
|
}
|
|
13915
|
-
var Xe =
|
|
13915
|
+
var Xe = le.length > 0 ? ", expected one of type [" + le.join(", ") + "]" : "";
|
|
13916
13916
|
return new m("Invalid " + Q + " `" + re + "` supplied to " + ("`" + W + "`" + Xe + "."));
|
|
13917
13917
|
}
|
|
13918
13918
|
return v(D);
|
|
13919
13919
|
}
|
|
13920
|
-
function
|
|
13920
|
+
function ie() {
|
|
13921
13921
|
function M($, j, D, U, Z) {
|
|
13922
13922
|
return oe($[j]) ? null : new m("Invalid " + U + " `" + Z + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
|
|
13923
13923
|
}
|
|
@@ -13928,16 +13928,16 @@ function nR() {
|
|
|
13928
13928
|
(M || "React class") + ": " + $ + " type `" + j + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
|
|
13929
13929
|
);
|
|
13930
13930
|
}
|
|
13931
|
-
function
|
|
13931
|
+
function se(M) {
|
|
13932
13932
|
function $(j, D, U, Z, W) {
|
|
13933
13933
|
var Q = j[D], re = q(Q);
|
|
13934
13934
|
if (re !== "object")
|
|
13935
13935
|
return new m("Invalid " + Z + " `" + W + "` of type `" + re + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
13936
|
-
for (var
|
|
13937
|
-
var H = M[
|
|
13936
|
+
for (var le in M) {
|
|
13937
|
+
var H = M[le];
|
|
13938
13938
|
if (typeof H != "function")
|
|
13939
|
-
return ee(U, Z, W,
|
|
13940
|
-
var ye = H(Q,
|
|
13939
|
+
return ee(U, Z, W, le, me(H));
|
|
13940
|
+
var ye = H(Q, le, U, Z, W + "." + le, n);
|
|
13941
13941
|
if (ye)
|
|
13942
13942
|
return ye;
|
|
13943
13943
|
}
|
|
@@ -13950,8 +13950,8 @@ function nR() {
|
|
|
13950
13950
|
var Q = j[D], re = q(Q);
|
|
13951
13951
|
if (re !== "object")
|
|
13952
13952
|
return new m("Invalid " + Z + " `" + W + "` of type `" + re + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
13953
|
-
var
|
|
13954
|
-
for (var H in
|
|
13953
|
+
var le = t({}, j[D], M);
|
|
13954
|
+
for (var H in le) {
|
|
13955
13955
|
var ye = M[H];
|
|
13956
13956
|
if (r(M, H) && typeof ye != "function")
|
|
13957
13957
|
return ee(U, Z, W, H, me(ye));
|
|
@@ -14265,7 +14265,7 @@ var ab = Xd({}, function(e) {
|
|
|
14265
14265
|
async: !0,
|
|
14266
14266
|
ssr: typeof document < "u"
|
|
14267
14267
|
}), mR = /* @__PURE__ */ Qt(void 0), gR = [], ib = /* @__PURE__ */ R.forwardRef(function(t, n) {
|
|
14268
|
-
var r, a = R.useState(), o = a[0], i = a[1], s = R.useRef(), l = R.useRef(!1), c = R.useRef(null), u = R.useState({}), d = u[1], f = t.children, p = t.disabled, h = p === void 0 ? !1 : p, m = t.noFocusGuards, v = m === void 0 ? !1 : m, y = t.persistentFocus, w = y === void 0 ? !1 : y, E = t.crossFrame, k = E === void 0 ? !0 : E, C = t.autoFocus, F = C === void 0 ? !0 : C, P = t.allowTextSelection, N = t.group, I = t.className,
|
|
14268
|
+
var r, a = R.useState(), o = a[0], i = a[1], s = R.useRef(), l = R.useRef(!1), c = R.useRef(null), u = R.useState({}), d = u[1], f = t.children, p = t.disabled, h = p === void 0 ? !1 : p, m = t.noFocusGuards, v = m === void 0 ? !1 : m, y = t.persistentFocus, w = y === void 0 ? !1 : y, E = t.crossFrame, k = E === void 0 ? !0 : E, C = t.autoFocus, F = C === void 0 ? !0 : C, P = t.allowTextSelection, N = t.group, I = t.className, ie = t.whiteList, ee = t.hasPositiveIndices, se = t.shards, fe = se === void 0 ? gR : se, oe = t.as, ce = oe === void 0 ? "div" : oe, q = t.lockProps, me = q === void 0 ? {} : q, Re = t.sideCar, Se = t.returnFocus, M = Se === void 0 ? !1 : Se, $ = t.focusOptions, j = t.onActivation, D = t.onDeactivation, U = R.useState({}), Z = U[0], W = R.useCallback(function(ht) {
|
|
14269
14269
|
var St = ht.captureFocusRestore;
|
|
14270
14270
|
if (!c.current) {
|
|
14271
14271
|
var _t, mt = (_t = document) == null ? void 0 : _t.activeElement;
|
|
@@ -14285,7 +14285,7 @@ var ab = Xd({}, function(e) {
|
|
|
14285
14285
|
}) : _t.focus(gt);
|
|
14286
14286
|
}
|
|
14287
14287
|
}
|
|
14288
|
-
}, [M]),
|
|
14288
|
+
}, [M]), le = R.useCallback(function(ht) {
|
|
14289
14289
|
l.current && ab.useMedium(ht);
|
|
14290
14290
|
}, []), H = ob.useMedium, ye = R.useCallback(function(ht) {
|
|
14291
14291
|
s.current !== ht && (s.current = ht, i(ht));
|
|
@@ -14322,7 +14322,7 @@ var ab = Xd({}, function(e) {
|
|
|
14322
14322
|
persistentFocus: w,
|
|
14323
14323
|
crossFrame: k,
|
|
14324
14324
|
autoFocus: F,
|
|
14325
|
-
whiteList:
|
|
14325
|
+
whiteList: ie,
|
|
14326
14326
|
shards: fe,
|
|
14327
14327
|
onActivation: W,
|
|
14328
14328
|
onDeactivation: Q,
|
|
@@ -14333,7 +14333,7 @@ var ab = Xd({}, function(e) {
|
|
|
14333
14333
|
}, B, {
|
|
14334
14334
|
className: I,
|
|
14335
14335
|
onBlur: H,
|
|
14336
|
-
onFocus:
|
|
14336
|
+
onFocus: le
|
|
14337
14337
|
}), /* @__PURE__ */ R.createElement(mR.Provider, {
|
|
14338
14338
|
value: ut
|
|
14339
14339
|
}, f)), nt && /* @__PURE__ */ R.createElement("div", {
|
|
@@ -15482,10 +15482,10 @@ function XO(e) {
|
|
|
15482
15482
|
},
|
|
15483
15483
|
[o, n, l]
|
|
15484
15484
|
), [w, E] = ae(!1), [k, C] = ae(!1), F = pe(
|
|
15485
|
-
(I = {},
|
|
15485
|
+
(I = {}, ie = null) => ({
|
|
15486
15486
|
role: "dialog",
|
|
15487
15487
|
...I,
|
|
15488
|
-
ref: ol(
|
|
15488
|
+
ref: ol(ie, c),
|
|
15489
15489
|
id: d,
|
|
15490
15490
|
tabIndex: -1,
|
|
15491
15491
|
"aria-modal": !0,
|
|
@@ -15503,9 +15503,9 @@ function XO(e) {
|
|
|
15503
15503
|
},
|
|
15504
15504
|
[n, a, s]
|
|
15505
15505
|
), N = pe(
|
|
15506
|
-
(I = {},
|
|
15506
|
+
(I = {}, ie = null) => ({
|
|
15507
15507
|
...I,
|
|
15508
|
-
ref: ol(
|
|
15508
|
+
ref: ol(ie, u),
|
|
15509
15509
|
onClick: xo(I.onClick, P),
|
|
15510
15510
|
onKeyDown: xo(I.onKeyDown, y),
|
|
15511
15511
|
onMouseDown: xo(I.onMouseDown, v)
|
|
@@ -16433,17 +16433,17 @@ var Vu = function(t) {
|
|
|
16433
16433
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
16434
16434
|
}, it = function(t, n) {
|
|
16435
16435
|
var r = "".concat(XI(t), "Element"), a = function(l) {
|
|
16436
|
-
var c = l.id, u = l.className, d = l.options, f = d === void 0 ? {} : d, p = l.onBlur, h = l.onFocus, m = l.onReady, v = l.onChange, y = l.onEscape, w = l.onClick, E = l.onLoadError, k = l.onLoaderStart, C = l.onNetworksChange, F = l.onConfirm, P = l.onCancel, N = l.onShippingAddressChange, I = l.onShippingRateChange,
|
|
16436
|
+
var c = l.id, u = l.className, d = l.options, f = d === void 0 ? {} : d, p = l.onBlur, h = l.onFocus, m = l.onReady, v = l.onChange, y = l.onEscape, w = l.onClick, E = l.onLoadError, k = l.onLoaderStart, C = l.onNetworksChange, F = l.onConfirm, P = l.onCancel, N = l.onShippingAddressChange, I = l.onShippingRateChange, ie = Vu("mounts <".concat(r, ">")), ee = "elements" in ie ? ie.elements : null, se = "customCheckoutSdk" in ie ? ie.customCheckoutSdk : null, fe = xe.useState(null), oe = Kb(fe, 2), ce = oe[0], q = oe[1], me = xe.useRef(null), Re = xe.useRef(null);
|
|
16437
16437
|
Nt(ce, "blur", p), Nt(ce, "focus", h), Nt(ce, "escape", y), Nt(ce, "click", w), Nt(ce, "loaderror", E), Nt(ce, "loaderstart", k), Nt(ce, "networkschange", C), Nt(ce, "confirm", F), Nt(ce, "cancel", P), Nt(ce, "shippingaddresschange", N), Nt(ce, "shippingratechange", I), Nt(ce, "change", v);
|
|
16438
16438
|
var Se;
|
|
16439
16439
|
m && (t === "expressCheckout" ? Se = m : Se = function() {
|
|
16440
16440
|
m(ce);
|
|
16441
16441
|
}), Nt(ce, "ready", Se), xe.useLayoutEffect(function() {
|
|
16442
|
-
if (me.current === null && Re.current !== null && (ee ||
|
|
16442
|
+
if (me.current === null && Re.current !== null && (ee || se)) {
|
|
16443
16443
|
var $ = null;
|
|
16444
|
-
|
|
16444
|
+
se ? $ = se.createElement(t, f) : ee && ($ = ee.create(t, f)), me.current = $, q($), $ && $.mount(Re.current);
|
|
16445
16445
|
}
|
|
16446
|
-
}, [ee,
|
|
16446
|
+
}, [ee, se, f]);
|
|
16447
16447
|
var M = Lu(f);
|
|
16448
16448
|
return xe.useEffect(function() {
|
|
16449
16449
|
if (me.current) {
|
|
@@ -17679,7 +17679,7 @@ function Kj(e) {
|
|
|
17679
17679
|
xt.name === "ValidationError" ? de(Yj(xt)) : (process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", xt), Oe(xt));
|
|
17680
17680
|
});
|
|
17681
17681
|
});
|
|
17682
|
-
}, [f.validationSchema]),
|
|
17682
|
+
}, [f.validationSchema]), ie = pe(function(T, O) {
|
|
17683
17683
|
return new Promise(function(G) {
|
|
17684
17684
|
return G(w.current[T].validate(O));
|
|
17685
17685
|
});
|
|
@@ -17687,14 +17687,14 @@ function Kj(e) {
|
|
|
17687
17687
|
var O = Object.keys(w.current).filter(function(Y) {
|
|
17688
17688
|
return nn(w.current[Y].validate);
|
|
17689
17689
|
}), G = O.length > 0 ? O.map(function(Y) {
|
|
17690
|
-
return
|
|
17690
|
+
return ie(Y, Bt(T, Y));
|
|
17691
17691
|
}) : [Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];
|
|
17692
17692
|
return Promise.all(G).then(function(Y) {
|
|
17693
17693
|
return Y.reduce(function(ue, de, Oe) {
|
|
17694
17694
|
return de === "DO_NOT_DELETE_YOU_WILL_BE_FIRED" || de && (ue = Mr(ue, O[Oe], de)), ue;
|
|
17695
17695
|
}, {});
|
|
17696
17696
|
});
|
|
17697
|
-
}, [
|
|
17697
|
+
}, [ie]), se = pe(function(T) {
|
|
17698
17698
|
return Promise.all([ee(T), f.validationSchema ? I(T) : {}, f.validate ? N(T) : {}]).then(function(O) {
|
|
17699
17699
|
var G = O[0], Y = O[1], ue = O[2], de = Uu.all([G, Y, ue], {
|
|
17700
17700
|
arrayMerge: Zj
|
|
@@ -17705,7 +17705,7 @@ function Kj(e) {
|
|
|
17705
17705
|
return T === void 0 && (T = F.values), P({
|
|
17706
17706
|
type: "SET_ISVALIDATING",
|
|
17707
17707
|
payload: !0
|
|
17708
|
-
}),
|
|
17708
|
+
}), se(T).then(function(O) {
|
|
17709
17709
|
return y.current && (P({
|
|
17710
17710
|
type: "SET_ISVALIDATING",
|
|
17711
17711
|
payload: !1
|
|
@@ -17901,7 +17901,7 @@ function Kj(e) {
|
|
|
17901
17901
|
return T;
|
|
17902
17902
|
}
|
|
17903
17903
|
});
|
|
17904
|
-
}, []),
|
|
17904
|
+
}, []), le = pe(function(T) {
|
|
17905
17905
|
P({
|
|
17906
17906
|
type: "SET_STATUS",
|
|
17907
17907
|
payload: T
|
|
@@ -17955,7 +17955,7 @@ function Kj(e) {
|
|
|
17955
17955
|
setFieldError: $,
|
|
17956
17956
|
setFieldTouched: Z,
|
|
17957
17957
|
setFieldValue: j,
|
|
17958
|
-
setStatus:
|
|
17958
|
+
setStatus: le,
|
|
17959
17959
|
setSubmitting: H,
|
|
17960
17960
|
setTouched: Re,
|
|
17961
17961
|
setValues: M,
|
|
@@ -18017,7 +18017,7 @@ function Kj(e) {
|
|
|
18017
18017
|
setFieldTouched: Z,
|
|
18018
18018
|
setFieldValue: j,
|
|
18019
18019
|
setFieldError: $,
|
|
18020
|
-
setStatus:
|
|
18020
|
+
setStatus: le,
|
|
18021
18021
|
setSubmitting: H,
|
|
18022
18022
|
setTouched: Re,
|
|
18023
18023
|
setValues: M,
|
|
@@ -18553,7 +18553,7 @@ function fa(e) {
|
|
|
18553
18553
|
return Yr.isRef(ee) ? ee.getValue(n, h, m) : ee;
|
|
18554
18554
|
}
|
|
18555
18555
|
function E(ee = {}) {
|
|
18556
|
-
const
|
|
18556
|
+
const se = Object.assign({
|
|
18557
18557
|
value: n,
|
|
18558
18558
|
originalValue: o,
|
|
18559
18559
|
label: i.spec.label,
|
|
@@ -18561,10 +18561,10 @@ function fa(e) {
|
|
|
18561
18561
|
spec: i.spec,
|
|
18562
18562
|
disableStackTrace: ee.disableStackTrace || y
|
|
18563
18563
|
}, d, ee.params);
|
|
18564
|
-
for (const oe of Object.keys(
|
|
18565
|
-
|
|
18566
|
-
const fe = new Mt(Mt.formatError(ee.message || f,
|
|
18567
|
-
return fe.params =
|
|
18564
|
+
for (const oe of Object.keys(se))
|
|
18565
|
+
se[oe] = w(se[oe]);
|
|
18566
|
+
const fe = new Mt(Mt.formatError(ee.message || f, se), n, se.path, ee.type || c, se.disableStackTrace);
|
|
18567
|
+
return fe.params = se, fe;
|
|
18568
18568
|
}
|
|
18569
18569
|
const k = v ? s : l;
|
|
18570
18570
|
let C = {
|
|
@@ -18587,8 +18587,8 @@ function fa(e) {
|
|
|
18587
18587
|
return F(!0);
|
|
18588
18588
|
let I;
|
|
18589
18589
|
try {
|
|
18590
|
-
var
|
|
18591
|
-
if (I = u.call(C, n, C), typeof ((
|
|
18590
|
+
var ie;
|
|
18591
|
+
if (I = u.call(C, n, C), typeof ((ie = I) == null ? void 0 : ie.then) == "function") {
|
|
18592
18592
|
if (a.sync)
|
|
18593
18593
|
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`);
|
|
18594
18594
|
return Promise.resolve(I).then(F, P);
|
|
@@ -21375,7 +21375,7 @@ const vg = /* @__PURE__ */ new Map([
|
|
|
21375
21375
|
var oe, ce;
|
|
21376
21376
|
const d = Qb(), f = Xb(), p = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: h, data: m } = a0(c), [v, y] = ae(!1), [w, E] = ae(""), [k, C] = ae((p == null ? void 0 : p.country_name) || ""), [F, P] = ae(""), [N, I] = ae("");
|
|
21377
21377
|
ae(!1);
|
|
21378
|
-
const
|
|
21378
|
+
const ie = async (q) => {
|
|
21379
21379
|
var me, Re, Se, M;
|
|
21380
21380
|
if (y(!0), q.preventDefault(), !(!d || !f))
|
|
21381
21381
|
if (a)
|
|
@@ -21439,7 +21439,7 @@ const vg = /* @__PURE__ */ new Map([
|
|
|
21439
21439
|
});
|
|
21440
21440
|
}
|
|
21441
21441
|
}
|
|
21442
|
-
}, [ee] = $l("(max-width: 767px)"),
|
|
21442
|
+
}, [ee] = $l("(max-width: 767px)"), se = {
|
|
21443
21443
|
backgroundColor: "#fff",
|
|
21444
21444
|
iconColor: "#c4f0ff",
|
|
21445
21445
|
color: "#131316",
|
|
@@ -21542,7 +21542,7 @@ const vg = /* @__PURE__ */ new Map([
|
|
|
21542
21542
|
{
|
|
21543
21543
|
options: {
|
|
21544
21544
|
style: {
|
|
21545
|
-
base:
|
|
21545
|
+
base: se,
|
|
21546
21546
|
invalid: {
|
|
21547
21547
|
iconColor: "red",
|
|
21548
21548
|
color: "red"
|
|
@@ -21570,7 +21570,7 @@ const vg = /* @__PURE__ */ new Map([
|
|
|
21570
21570
|
{
|
|
21571
21571
|
options: {
|
|
21572
21572
|
style: {
|
|
21573
|
-
base:
|
|
21573
|
+
base: se,
|
|
21574
21574
|
invalid: {
|
|
21575
21575
|
iconColor: "red",
|
|
21576
21576
|
color: "red"
|
|
@@ -21596,7 +21596,7 @@ const vg = /* @__PURE__ */ new Map([
|
|
|
21596
21596
|
{
|
|
21597
21597
|
options: {
|
|
21598
21598
|
style: {
|
|
21599
|
-
base:
|
|
21599
|
+
base: se,
|
|
21600
21600
|
invalid: {
|
|
21601
21601
|
iconColor: "red",
|
|
21602
21602
|
color: "red"
|
|
@@ -21685,7 +21685,7 @@ const vg = /* @__PURE__ */ new Map([
|
|
|
21685
21685
|
width: "100%",
|
|
21686
21686
|
mt: "12px",
|
|
21687
21687
|
onClick: (q) => {
|
|
21688
|
-
|
|
21688
|
+
ie(q);
|
|
21689
21689
|
},
|
|
21690
21690
|
isLoading: v,
|
|
21691
21691
|
disabled: v,
|
|
@@ -26180,11 +26180,11 @@ const bz = ln(
|
|
|
26180
26180
|
mainstackProductId: P,
|
|
26181
26181
|
STRIPE_SECRET_KEY: N,
|
|
26182
26182
|
STRIPE_SECRET_KEY_GBP: I,
|
|
26183
|
-
applyTrancheFee:
|
|
26183
|
+
applyTrancheFee: ie,
|
|
26184
26184
|
ip: ee,
|
|
26185
|
-
shouldApplyTax:
|
|
26185
|
+
shouldApplyTax: se,
|
|
26186
26186
|
paymentModel: fe = "default"
|
|
26187
|
-
} = e, oe = h == null ? void 0 : h.hideDetails, ce = h == null ? void 0 : h.isSingleColumn, q = ((ta = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : ta.email) ?? !0, me = ((Ti = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : Ti.phone) ?? !1, Re = ((dr = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : dr.fullname) ?? !0, { Request: Se } = uz(C), [M, $] = ae(""), [j, D] = ae(f), [U, Z] = ae(!1), [W, Q] = ae(!0), [re,
|
|
26187
|
+
} = e, oe = h == null ? void 0 : h.hideDetails, ce = h == null ? void 0 : h.isSingleColumn, q = ((ta = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : ta.email) ?? !0, me = ((Ti = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : Ti.phone) ?? !1, Re = ((dr = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : dr.fullname) ?? !0, { Request: Se } = uz(C), [M, $] = ae(""), [j, D] = ae(f), [U, Z] = ae(!1), [W, Q] = ae(!0), [re, le] = ae(!1), [H, ye] = ae(), [B, Xe] = ae(!1), [nt, en] = ae(""), [ut, ht] = ae({
|
|
26188
26188
|
amount: 0,
|
|
26189
26189
|
type: "",
|
|
26190
26190
|
value: 0,
|
|
@@ -26318,10 +26318,10 @@ const bz = ln(
|
|
|
26318
26318
|
amount: j,
|
|
26319
26319
|
currency: d,
|
|
26320
26320
|
slug: v,
|
|
26321
|
-
apply_tranche_fee:
|
|
26322
|
-
ip:
|
|
26323
|
-
country:
|
|
26324
|
-
postal_code:
|
|
26321
|
+
apply_tranche_fee: ie,
|
|
26322
|
+
ip: se ? ee : "",
|
|
26323
|
+
country: se ? (Pi = Zt == null ? void 0 : Zt.find((V) => V.name === L.values.country)) == null ? void 0 : Pi.alpha2Code : "",
|
|
26324
|
+
postal_code: se ? zl : "",
|
|
26325
26325
|
product_id: (to = e == null ? void 0 : e.metadata) == null ? void 0 : to.product_id,
|
|
26326
26326
|
apply_switching_fee: cn,
|
|
26327
26327
|
apply_currency_conversion_fee: wi
|
|
@@ -26448,7 +26448,7 @@ const bz = ln(
|
|
|
26448
26448
|
{
|
|
26449
26449
|
onSuccess() {
|
|
26450
26450
|
var Qe;
|
|
26451
|
-
|
|
26451
|
+
le(!0), Q(!W), (ce || _t) && (gt != null && gt.current) && mt((Qe = gt == null ? void 0 : gt.current) == null ? void 0 : Qe.offsetTop);
|
|
26452
26452
|
},
|
|
26453
26453
|
onError(Qe) {
|
|
26454
26454
|
var kt;
|
|
@@ -26459,7 +26459,7 @@ const bz = ln(
|
|
|
26459
26459
|
}
|
|
26460
26460
|
vt(!1);
|
|
26461
26461
|
}, Xl = () => {
|
|
26462
|
-
|
|
26462
|
+
le(!1), Q(!W);
|
|
26463
26463
|
}, {
|
|
26464
26464
|
isOpen: Jl,
|
|
26465
26465
|
onClose: Ql,
|
|
@@ -26757,7 +26757,7 @@ const bz = ln(
|
|
|
26757
26757
|
border: `1px solid ${Xt.gray50}`,
|
|
26758
26758
|
position: ce ? "static" : { lg: "fixed" },
|
|
26759
26759
|
width: ce ? "auto" : { lg: `${ea}px` },
|
|
26760
|
-
zIndex:
|
|
26760
|
+
zIndex: 10,
|
|
26761
26761
|
children: [
|
|
26762
26762
|
/* @__PURE__ */ K(
|
|
26763
26763
|
rt,
|
|
@@ -26843,7 +26843,7 @@ const bz = ln(
|
|
|
26843
26843
|
}
|
|
26844
26844
|
)
|
|
26845
26845
|
] }),
|
|
26846
|
-
Vn > 0 &&
|
|
26846
|
+
Vn > 0 && se && /* @__PURE__ */ K(Ye, { width: "100%", justifyContent: "space-between", children: [
|
|
26847
26847
|
/* @__PURE__ */ b(Ye, { alignItems: "center", children: /* @__PURE__ */ K(
|
|
26848
26848
|
qe,
|
|
26849
26849
|
{
|