mainstack-payments 0.5.33 → 0.5.34

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.
@@ -288,8 +288,8 @@ function ci(e) {
288
288
  var Ns = { exports: {} };
289
289
  Ns.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]", h = "[object Function]", m = "[object GeneratorFunction]", p = "[object Map]", g = "[object Number]", x = "[object Null]", S = "[object Object]", b = "[object Proxy]", k = "[object RegExp]", C = "[object Set]", F = "[object String]", P = "[object Undefined]", R = "[object WeakMap]", D = "[object ArrayBuffer]", X = "[object DataView]", K = "[object Float32Array]", le = "[object Float64Array]", fe = "[object Int8Array]", ce = "[object Int16Array]", he = "[object Int32Array]", oe = "[object Uint8Array]", me = "[object Uint8ClampedArray]", Ie = "[object Uint16Array]", Me = "[object Uint32Array]", _ = /[\\^$.*+?()[\]{}|]/g, M = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, B = {};
292
- B[K] = B[le] = B[fe] = B[ce] = B[he] = B[oe] = B[me] = B[Ie] = B[Me] = !0, B[s] = B[c] = B[D] = B[u] = B[X] = B[d] = B[f] = B[h] = B[p] = B[g] = B[S] = B[k] = B[C] = B[F] = B[R] = !1;
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]", h = "[object Function]", m = "[object GeneratorFunction]", p = "[object Map]", g = "[object Number]", x = "[object Null]", S = "[object Object]", b = "[object Proxy]", k = "[object RegExp]", C = "[object Set]", F = "[object String]", P = "[object Undefined]", R = "[object WeakMap]", D = "[object ArrayBuffer]", X = "[object DataView]", K = "[object Float32Array]", le = "[object Float64Array]", de = "[object Int8Array]", ce = "[object Int16Array]", he = "[object Int32Array]", oe = "[object Uint8Array]", me = "[object Uint8ClampedArray]", Ie = "[object Uint16Array]", Me = "[object Uint32Array]", _ = /[\\^$.*+?()[\]{}|]/g, M = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, B = {};
292
+ B[K] = B[le] = B[de] = B[ce] = B[he] = B[oe] = B[me] = B[Ie] = B[Me] = !0, B[s] = B[c] = B[D] = B[u] = B[X] = B[d] = B[f] = B[h] = B[p] = B[g] = B[S] = B[k] = B[C] = B[F] = B[R] = !1;
293
293
  var H = typeof Hi == "object" && Hi && Hi.Object === Object && Hi, L = typeof self == "object" && self && self.Object === Object && self, W = H || L || Function("return this")(), z = t && !t.nodeType && t, q = z && !0 && e && !e.nodeType && e, re = q && q.exports === z, te = re && H.process, ve = function() {
294
294
  try {
295
295
  var y = q && q.require && q.require("util").types;
@@ -331,7 +331,7 @@ Ns.exports;
331
331
  var Lt = Array.prototype, bt = Function.prototype, Qe = Object.prototype, dn = W["__core-js_shared__"], E = bt.toString, I = Qe.hasOwnProperty, j = function() {
332
332
  var y = /[^.]+$/.exec(dn && dn.keys && dn.keys.IE_PROTO || "");
333
333
  return y ? "Symbol(src)_1." + y : "";
334
- }(), Z = Qe.toString, ue = E.call(Object), de = RegExp(
334
+ }(), Z = Qe.toString, ue = E.call(Object), fe = RegExp(
335
335
  "^" + E.call(I).replace(_, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
336
336
  ), _e = re ? W.Buffer : void 0, vt = W.Symbol, Gn = W.Uint8Array, fr = _e ? _e.allocUnsafe : void 0, ta = ft(Object.getPrototypeOf, Object), Jt = Object.create, na = Qe.propertyIsEnumerable, to = Lt.splice, Wn = vt ? vt.toStringTag : void 0, ra = function() {
337
337
  try {
@@ -510,7 +510,7 @@ Ns.exports;
510
510
  function Hc(y) {
511
511
  if (!hn(y) || Ni(y))
512
512
  return !1;
513
- var w = fa(y) ? de : M;
513
+ var w = fa(y) ? fe : M;
514
514
  return w.test(Gi(y));
515
515
  }
516
516
  function Kc(y) {
@@ -6482,7 +6482,7 @@ function bP() {
6482
6482
  }
6483
6483
  }
6484
6484
  }
6485
- var C = c, F = l, P = s, R = i, D = t, X = u, K = r, le = m, fe = h, ce = n, he = o, oe = a, me = d, Ie = !1;
6485
+ var C = c, F = l, P = s, R = i, D = t, X = u, K = r, le = m, de = h, ce = n, he = o, oe = a, me = d, Ie = !1;
6486
6486
  function Me(O) {
6487
6487
  return Ie || (Ie = !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.")), _(O) || k(O) === c;
6488
6488
  }
@@ -6522,7 +6522,7 @@ function bP() {
6522
6522
  function ve(O) {
6523
6523
  return k(O) === d;
6524
6524
  }
6525
- $e.AsyncMode = C, $e.ConcurrentMode = F, $e.ContextConsumer = P, $e.ContextProvider = R, $e.Element = D, $e.ForwardRef = X, $e.Fragment = K, $e.Lazy = le, $e.Memo = fe, $e.Portal = ce, $e.Profiler = he, $e.StrictMode = oe, $e.Suspense = me, $e.isAsyncMode = Me, $e.isConcurrentMode = _, $e.isContextConsumer = M, $e.isContextProvider = G, $e.isElement = B, $e.isForwardRef = H, $e.isFragment = L, $e.isLazy = W, $e.isMemo = z, $e.isPortal = q, $e.isProfiler = re, $e.isStrictMode = te, $e.isSuspense = ve, $e.isValidElementType = b, $e.typeOf = k;
6525
+ $e.AsyncMode = C, $e.ConcurrentMode = F, $e.ContextConsumer = P, $e.ContextProvider = R, $e.Element = D, $e.ForwardRef = X, $e.Fragment = K, $e.Lazy = le, $e.Memo = de, $e.Portal = ce, $e.Profiler = he, $e.StrictMode = oe, $e.Suspense = me, $e.isAsyncMode = Me, $e.isConcurrentMode = _, $e.isContextConsumer = M, $e.isContextProvider = G, $e.isElement = B, $e.isForwardRef = H, $e.isFragment = L, $e.isLazy = W, $e.isMemo = z, $e.isPortal = q, $e.isProfiler = re, $e.isStrictMode = te, $e.isSuspense = ve, $e.isValidElementType = b, $e.typeOf = k;
6526
6526
  }()), $e;
6527
6527
  }
6528
6528
  process.env.NODE_ENV === "production" ? yu.exports = yP() : yu.exports = bP();
@@ -8883,25 +8883,25 @@ function Qo({ autoplay: e = !0, delay: t = 0, driver: n = Vk, keyframes: r, type
8883
8883
  let P = "idle", R = null, D = null, X = null;
8884
8884
  C.calculatedDuration === null && o && (C.calculatedDuration = Oh(C));
8885
8885
  const { calculatedDuration: K } = C;
8886
- let le = 1 / 0, fe = 1 / 0;
8887
- K !== null && (le = K + i, fe = le * (o + 1) - i);
8886
+ let le = 1 / 0, de = 1 / 0;
8887
+ K !== null && (le = K + i, de = le * (o + 1) - i);
8888
8888
  let ce = 0;
8889
8889
  const he = (M) => {
8890
8890
  if (D === null)
8891
8891
  return;
8892
- h > 0 && (D = Math.min(D, M)), h < 0 && (D = Math.min(M - fe / h, D)), R !== null ? ce = R : ce = Math.round(M - D) * h;
8893
- const G = ce - t * (h >= 0 ? 1 : -1), B = h >= 0 ? G < 0 : G > fe;
8894
- ce = Math.max(G, 0), P === "finished" && R === null && (ce = fe);
8892
+ h > 0 && (D = Math.min(D, M)), h < 0 && (D = Math.min(M - de / h, D)), R !== null ? ce = R : ce = Math.round(M - D) * h;
8893
+ const G = ce - t * (h >= 0 ? 1 : -1), B = h >= 0 ? G < 0 : G > de;
8894
+ ce = Math.max(G, 0), P === "finished" && R === null && (ce = de);
8895
8895
  let H = ce, L = C;
8896
8896
  if (o) {
8897
- const re = Math.min(ce, fe) / le;
8897
+ const re = Math.min(ce, de) / le;
8898
8898
  let te = Math.floor(re), ve = re % 1;
8899
8899
  !ve && re >= 1 && (ve = 1), ve === 1 && te--, te = Math.min(te, o + 1), !!(te % 2) && (s === "reverse" ? (ve = 1 - ve, i && (ve -= i / le)) : s === "mirror" && (L = F)), H = or(0, 1, ve) * le;
8900
8900
  }
8901
8901
  const W = B ? { done: !1, value: r[0] } : L.next(H);
8902
8902
  k && (W.value = k(W.value));
8903
8903
  let { done: z } = W;
8904
- !B && K !== null && (z = h >= 0 ? ce >= fe : ce <= 0);
8904
+ !B && K !== null && (z = h >= 0 ? ce >= de : ce <= 0);
8905
8905
  const q = R === null && (P === "finished" || P === "running" && z);
8906
8906
  return d && d(W.value), q && Ie(), W;
8907
8907
  }, oe = () => {
@@ -9606,14 +9606,14 @@ function k$(e) {
9606
9606
  const K = Array.isArray(k) ? k : [k];
9607
9607
  let le = K.reduce(a, {});
9608
9608
  F === !1 && (le = {});
9609
- const { prevResolvedValues: fe = {} } = b, ce = {
9610
- ...fe,
9609
+ const { prevResolvedValues: de = {} } = b, ce = {
9610
+ ...de,
9611
9611
  ...le
9612
9612
  }, he = (oe) => {
9613
9613
  D = !0, h.has(oe) && (X = !0, h.delete(oe)), b.needsAnimating[oe] = !0;
9614
9614
  };
9615
9615
  for (const oe in ce) {
9616
- const me = le[oe], Ie = fe[oe];
9616
+ const me = le[oe], Ie = de[oe];
9617
9617
  if (m.hasOwnProperty(oe))
9618
9618
  continue;
9619
9619
  let Me = !1;
@@ -13342,7 +13342,7 @@ function CM() {
13342
13342
  oneOf: P,
13343
13343
  oneOfType: D,
13344
13344
  shape: le,
13345
- exact: fe
13345
+ exact: de
13346
13346
  };
13347
13347
  function m(_, M) {
13348
13348
  return _ === M ? _ !== 0 || 1 / _ === 1 / M : _ !== _ && M !== M;
@@ -13525,7 +13525,7 @@ function CM() {
13525
13525
  }
13526
13526
  return g(M);
13527
13527
  }
13528
- function fe(_) {
13528
+ function de(_) {
13529
13529
  function M(G, B, H, L, W) {
13530
13530
  var z = G[B], q = oe(z);
13531
13531
  if (q !== "object")
@@ -13845,7 +13845,7 @@ var Vb = Xd({}, function(e) {
13845
13845
  async: !0,
13846
13846
  ssr: typeof document < "u"
13847
13847
  }), NM = /* @__PURE__ */ ln(void 0), LM = [], Gb = /* @__PURE__ */ Ft(function(t, n) {
13848
- var r, a = ae(), o = a[0], i = a[1], s = xe(), c = xe(!1), l = xe(null), u = ae({}), d = u[1], f = t.children, h = t.disabled, m = h === void 0 ? !1 : h, p = t.noFocusGuards, g = p === void 0 ? !1 : p, x = t.persistentFocus, S = x === void 0 ? !1 : x, b = t.crossFrame, k = b === void 0 ? !0 : b, C = t.autoFocus, F = C === void 0 ? !0 : C, P = t.allowTextSelection, R = t.group, D = t.className, X = t.whiteList, K = t.hasPositiveIndices, le = t.shards, fe = le === void 0 ? LM : le, ce = t.as, he = ce === void 0 ? "div" : ce, oe = t.lockProps, me = oe === void 0 ? {} : oe, Ie = t.sideCar, Me = t.returnFocus, _ = Me === void 0 ? !1 : Me, M = t.focusOptions, G = t.onActivation, B = t.onDeactivation, H = ae({}), L = H[0], W = ie(function(ft) {
13848
+ var r, a = ae(), o = a[0], i = a[1], s = xe(), c = xe(!1), l = xe(null), u = ae({}), d = u[1], f = t.children, h = t.disabled, m = h === void 0 ? !1 : h, p = t.noFocusGuards, g = p === void 0 ? !1 : p, x = t.persistentFocus, S = x === void 0 ? !1 : x, b = t.crossFrame, k = b === void 0 ? !0 : b, C = t.autoFocus, F = C === void 0 ? !0 : C, P = t.allowTextSelection, R = t.group, D = t.className, X = t.whiteList, K = t.hasPositiveIndices, le = t.shards, de = le === void 0 ? LM : le, ce = t.as, he = ce === void 0 ? "div" : ce, oe = t.lockProps, me = oe === void 0 ? {} : oe, Ie = t.sideCar, Me = t.returnFocus, _ = Me === void 0 ? !1 : Me, M = t.focusOptions, G = t.onActivation, B = t.onDeactivation, H = ae({}), L = H[0], W = ie(function(ft) {
13849
13849
  var Lt = ft.captureFocusRestore;
13850
13850
  if (!l.current) {
13851
13851
  var bt, Qe = (bt = document) == null ? void 0 : bt.activeElement;
@@ -13876,11 +13876,11 @@ var Vb = Xd({}, function(e) {
13876
13876
  var O = zr((r = {}, r[Ib] = m && "disabled", r[Iu] = R, r), me), Xe = g !== !0, Nt = Xe && g !== "tail", Xt = Db([n, ve]), st = ot(function() {
13877
13877
  return {
13878
13878
  observed: s,
13879
- shards: fe,
13879
+ shards: de,
13880
13880
  enabled: !m,
13881
13881
  active: c.current
13882
13882
  };
13883
- }, [m, c.current, fe, o]);
13883
+ }, [m, c.current, de, o]);
13884
13884
  return /* @__PURE__ */ ge.createElement(W0, null, Xe && [
13885
13885
  /* @__PURE__ */ ge.createElement("div", {
13886
13886
  key: "guard-first",
@@ -13903,7 +13903,7 @@ var Vb = Xd({}, function(e) {
13903
13903
  crossFrame: k,
13904
13904
  autoFocus: F,
13905
13905
  whiteList: X,
13906
- shards: fe,
13906
+ shards: de,
13907
13907
  onActivation: W,
13908
13908
  onDeactivation: z,
13909
13909
  returnFocus: q,
@@ -16123,7 +16123,7 @@ var Uu = function(t) {
16123
16123
  return t.charAt(0).toUpperCase() + t.slice(1);
16124
16124
  }, nt = function(t, n) {
16125
16125
  var r = "".concat(lI(t), "Element"), a = function(c) {
16126
- var l = c.id, u = c.className, d = c.options, f = d === void 0 ? {} : d, h = c.onBlur, m = c.onFocus, p = c.onReady, g = c.onChange, x = c.onEscape, S = c.onClick, b = c.onLoadError, k = c.onLoaderStart, C = c.onNetworksChange, F = c.onConfirm, P = c.onCancel, R = c.onShippingAddressChange, D = c.onShippingRateChange, X = Uu("mounts <".concat(r, ">")), K = "elements" in X ? X.elements : null, le = "customCheckoutSdk" in X ? X.customCheckoutSdk : null, fe = ge.useState(null), ce = Bv(fe, 2), he = ce[0], oe = ce[1], me = ge.useRef(null), Ie = ge.useRef(null);
16126
+ var l = c.id, u = c.className, d = c.options, f = d === void 0 ? {} : d, h = c.onBlur, m = c.onFocus, p = c.onReady, g = c.onChange, x = c.onEscape, S = c.onClick, b = c.onLoadError, k = c.onLoaderStart, C = c.onNetworksChange, F = c.onConfirm, P = c.onCancel, R = c.onShippingAddressChange, D = c.onShippingRateChange, X = Uu("mounts <".concat(r, ">")), K = "elements" in X ? X.elements : null, le = "customCheckoutSdk" in X ? X.customCheckoutSdk : null, de = ge.useState(null), ce = Bv(de, 2), he = ce[0], oe = ce[1], me = ge.useRef(null), Ie = ge.useRef(null);
16127
16127
  Rt(he, "blur", h), Rt(he, "focus", m), Rt(he, "escape", x), Rt(he, "click", S), Rt(he, "loaderror", b), Rt(he, "loaderstart", k), Rt(he, "networkschange", C), Rt(he, "confirm", F), Rt(he, "cancel", P), Rt(he, "shippingaddresschange", R), Rt(he, "shippingratechange", D), Rt(he, "change", g);
16128
16128
  var Me;
16129
16129
  p && (t === "expressCheckout" ? Me = p : Me = function() {
@@ -17365,19 +17365,19 @@ function oL(e) {
17365
17365
  }, []), R = ie(function(E, I) {
17366
17366
  return new Promise(function(j, Z) {
17367
17367
  var ue = f.validate(E, I);
17368
- ue == null ? j(Sr) : Yl(ue) ? ue.then(function(de) {
17369
- j(de || Sr);
17370
- }, function(de) {
17371
- process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", de), Z(de);
17368
+ ue == null ? j(Sr) : Yl(ue) ? ue.then(function(fe) {
17369
+ j(fe || Sr);
17370
+ }, function(fe) {
17371
+ process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", fe), Z(fe);
17372
17372
  }) : j(ue);
17373
17373
  });
17374
17374
  }, [f.validate]), D = ie(function(E, I) {
17375
17375
  var j = f.validationSchema, Z = an(j) ? j(I) : j, ue = I && Z.validateAt ? Z.validateAt(I, E) : sL(E, Z);
17376
- return new Promise(function(de, _e) {
17376
+ return new Promise(function(fe, _e) {
17377
17377
  ue.then(function() {
17378
- de(Sr);
17378
+ fe(Sr);
17379
17379
  }, function(vt) {
17380
- vt.name === "ValidationError" ? de(iL(vt)) : (process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", vt), _e(vt));
17380
+ vt.name === "ValidationError" ? fe(iL(vt)) : (process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", vt), _e(vt));
17381
17381
  });
17382
17382
  });
17383
17383
  }, [f.validationSchema]), X = ie(function(E, I) {
@@ -17391,18 +17391,18 @@ function oL(e) {
17391
17391
  return X(Z, Ot(E, Z));
17392
17392
  }) : [Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];
17393
17393
  return Promise.all(j).then(function(Z) {
17394
- return Z.reduce(function(ue, de, _e) {
17395
- return de === "DO_NOT_DELETE_YOU_WILL_BE_FIRED" || de && (ue = Br(ue, I[_e], de)), ue;
17394
+ return Z.reduce(function(ue, fe, _e) {
17395
+ return fe === "DO_NOT_DELETE_YOU_WILL_BE_FIRED" || fe && (ue = Br(ue, I[_e], fe)), ue;
17396
17396
  }, {});
17397
17397
  });
17398
17398
  }, [X]), le = ie(function(E) {
17399
17399
  return Promise.all([K(E), f.validationSchema ? D(E) : {}, f.validate ? R(E) : {}]).then(function(I) {
17400
- var j = I[0], Z = I[1], ue = I[2], de = Gu.all([j, Z, ue], {
17400
+ var j = I[0], Z = I[1], ue = I[2], fe = Gu.all([j, Z, ue], {
17401
17401
  arrayMerge: cL
17402
17402
  });
17403
- return de;
17403
+ return fe;
17404
17404
  });
17405
- }, [f.validate, f.validationSchema, K, R, D]), fe = Ut(function(E) {
17405
+ }, [f.validate, f.validationSchema, K, R, D]), de = Ut(function(E) {
17406
17406
  return E === void 0 && (E = F.values), P({
17407
17407
  type: "SET_ISVALIDATING",
17408
17408
  payload: !0
@@ -17417,12 +17417,12 @@ function oL(e) {
17417
17417
  });
17418
17418
  });
17419
17419
  pe(function() {
17420
- i && x.current === !0 && Er(h.current, f.initialValues) && fe(h.current);
17421
- }, [i, fe]);
17420
+ i && x.current === !0 && Er(h.current, f.initialValues) && de(h.current);
17421
+ }, [i, de]);
17422
17422
  var ce = ie(function(E) {
17423
17423
  var I = E && E.values ? E.values : h.current, j = E && E.errors ? E.errors : m.current ? m.current : f.initialErrors || {}, Z = E && E.touched ? E.touched : p.current ? p.current : f.initialTouched || {}, ue = E && E.status ? E.status : g.current ? g.current : f.initialStatus;
17424
17424
  h.current = I, m.current = j, p.current = Z, g.current = ue;
17425
- var de = function() {
17425
+ var fe = function() {
17426
17426
  P({
17427
17427
  type: "RESET_FORM",
17428
17428
  payload: {
@@ -17438,13 +17438,13 @@ function oL(e) {
17438
17438
  };
17439
17439
  if (f.onReset) {
17440
17440
  var _e = f.onReset(F.values, Xe);
17441
- Yl(_e) ? _e.then(de) : de();
17441
+ Yl(_e) ? _e.then(fe) : fe();
17442
17442
  } else
17443
- de();
17443
+ fe();
17444
17444
  }, [f.initialErrors, f.initialStatus, f.initialTouched, f.onReset]);
17445
17445
  pe(function() {
17446
- x.current === !0 && !Er(h.current, f.initialValues) && l && (h.current = f.initialValues, ce(), i && fe(h.current));
17447
- }, [l, f.initialValues, ce, i, fe]), pe(function() {
17446
+ x.current === !0 && !Er(h.current, f.initialValues) && l && (h.current = f.initialValues, ce(), i && de(h.current));
17447
+ }, [l, f.initialValues, ce, i, de]), pe(function() {
17448
17448
  l && x.current === !0 && !Er(m.current, f.initialErrors) && (m.current = f.initialErrors || Sr, P({
17449
17449
  type: "SET_ERRORS",
17450
17450
  payload: f.initialErrors || Sr
@@ -17518,7 +17518,7 @@ function oL(e) {
17518
17518
  payload: E
17519
17519
  });
17520
17520
  var j = I === void 0 ? a : I;
17521
- return j ? fe(F.values) : Promise.resolve();
17521
+ return j ? de(F.values) : Promise.resolve();
17522
17522
  }), Me = ie(function(E) {
17523
17523
  P({
17524
17524
  type: "SET_ERRORS",
@@ -17531,7 +17531,7 @@ function oL(e) {
17531
17531
  payload: j
17532
17532
  });
17533
17533
  var Z = I === void 0 ? n : I;
17534
- return Z ? fe(j) : Promise.resolve();
17534
+ return Z ? de(j) : Promise.resolve();
17535
17535
  }), M = ie(function(E, I) {
17536
17536
  P({
17537
17537
  type: "SET_FIELD_ERROR",
@@ -17549,12 +17549,12 @@ function oL(e) {
17549
17549
  }
17550
17550
  });
17551
17551
  var Z = j === void 0 ? n : j;
17552
- return Z ? fe(Br(F.values, E, I)) : Promise.resolve();
17552
+ return Z ? de(Br(F.values, E, I)) : Promise.resolve();
17553
17553
  }), B = ie(function(E, I) {
17554
17554
  var j = I, Z = E, ue;
17555
17555
  if (!ql(E)) {
17556
17556
  E.persist && E.persist();
17557
- var de = E.target ? E.target : E.currentTarget, _e = de.type, vt = de.name, Gn = de.id, fr = de.value, ta = de.checked, Jt = de.outerHTML, na = de.options, to = de.multiple;
17557
+ var fe = E.target ? E.target : E.currentTarget, _e = fe.type, vt = fe.name, Gn = fe.id, fr = fe.value, ta = fe.checked, Jt = fe.outerHTML, na = fe.options, to = fe.multiple;
17558
17558
  j = I || vt || Gn, !j && process.env.NODE_ENV !== "production" && Om({
17559
17559
  htmlContent: Jt,
17560
17560
  documentationAnchorLink: "handlechange-e-reactchangeeventany--void",
@@ -17577,12 +17577,12 @@ function oL(e) {
17577
17577
  }
17578
17578
  });
17579
17579
  var Z = j === void 0 ? a : j;
17580
- return Z ? fe(F.values) : Promise.resolve();
17580
+ return Z ? de(F.values) : Promise.resolve();
17581
17581
  }), W = ie(function(E, I) {
17582
17582
  E.persist && E.persist();
17583
- var j = E.target, Z = j.name, ue = j.id, de = j.outerHTML, _e = I || Z || ue;
17583
+ var j = E.target, Z = j.name, ue = j.id, fe = j.outerHTML, _e = I || Z || ue;
17584
17584
  !_e && process.env.NODE_ENV !== "production" && Om({
17585
- htmlContent: de,
17585
+ htmlContent: fe,
17586
17586
  documentationAnchorLink: "handleblur-e-any--void",
17587
17587
  handlerName: "handleBlur"
17588
17588
  }), L(_e, !0);
@@ -17615,7 +17615,7 @@ function oL(e) {
17615
17615
  }, []), ve = Ut(function() {
17616
17616
  return P({
17617
17617
  type: "SUBMIT_ATTEMPT"
17618
- }), fe().then(function(E) {
17618
+ }), de().then(function(E) {
17619
17619
  var I = E instanceof Error, j = !I && Object.keys(E).length === 0;
17620
17620
  if (j) {
17621
17621
  var Z;
@@ -17650,7 +17650,7 @@ function oL(e) {
17650
17650
  });
17651
17651
  }), Xe = {
17652
17652
  resetForm: ce,
17653
- validateForm: fe,
17653
+ validateForm: de,
17654
17654
  validateField: he,
17655
17655
  setErrors: Me,
17656
17656
  setFieldError: M,
@@ -17695,8 +17695,8 @@ function oL(e) {
17695
17695
  onBlur: z
17696
17696
  };
17697
17697
  if (I) {
17698
- var de = E.type, _e = E.value, vt = E.as, Gn = E.multiple;
17699
- de === "checkbox" ? _e === void 0 ? ue.checked = !!Z : (ue.checked = !!(Array.isArray(Z) && ~Z.indexOf(_e)), ue.value = _e) : de === "radio" ? (ue.checked = Z === _e, ue.value = _e) : vt === "select" && Gn && (ue.value = ue.value || [], ue.multiple = !0);
17698
+ var fe = E.type, _e = E.value, vt = E.as, Gn = E.multiple;
17699
+ fe === "checkbox" ? _e === void 0 ? ue.checked = !!Z : (ue.checked = !!(Array.isArray(Z) && ~Z.indexOf(_e)), ue.value = _e) : fe === "radio" ? (ue.checked = Z === _e, ue.value = _e) : vt === "select" && Gn && (ue.value = ue.value || [], ue.multiple = !0);
17700
17700
  }
17701
17701
  return ue;
17702
17702
  }, [z, H, F.values]), bt = ot(function() {
@@ -17723,7 +17723,7 @@ function oL(e) {
17723
17723
  setTouched: Ie,
17724
17724
  setValues: _,
17725
17725
  submitForm: ve,
17726
- validateForm: fe,
17726
+ validateForm: de,
17727
17727
  validateField: he,
17728
17728
  isValid: Qe,
17729
17729
  dirty: bt,
@@ -18266,8 +18266,8 @@ function ya(e) {
18266
18266
  }, d, K.params);
18267
18267
  for (const ce of Object.keys(le))
18268
18268
  le[ce] = S(le[ce]);
18269
- const fe = new Pt(Pt.formatError(K.message || f, le), n, le.path, K.type || l, le.disableStackTrace);
18270
- return fe.params = le, fe;
18269
+ const de = new Pt(Pt.formatError(K.message || f, le), n, le.path, K.type || l, le.disableStackTrace);
18270
+ return de.params = le, de;
18271
18271
  }
18272
18272
  const k = g ? s : c;
18273
18273
  let C = {
@@ -21137,7 +21137,7 @@ const Gm = /* @__PURE__ */ new Map([
21137
21137
  ae(!1);
21138
21138
  const X = (n == null ? void 0 : n.country) ?? (x == null ? void 0 : x.country_name), K = (me = Kt == null ? void 0 : Kt.find(
21139
21139
  (_) => _.name === X
21140
- )) == null ? void 0 : me.alpha2Code, le = r.values.street, fe = async (_) => {
21140
+ )) == null ? void 0 : me.alpha2Code, le = r.values.street, de = async (_) => {
21141
21141
  var M, G, B;
21142
21142
  if (C(!0), _.preventDefault(), !(!p || !g))
21143
21143
  if (a)
@@ -21466,7 +21466,7 @@ const Gm = /* @__PURE__ */ new Map([
21466
21466
  width: "100%",
21467
21467
  mt: "12px",
21468
21468
  onClick: (_) => {
21469
- fe(_);
21469
+ de(_);
21470
21470
  },
21471
21471
  isLoading: k,
21472
21472
  disabled: k,
@@ -25637,6 +25637,7 @@ const Hm = "Payment Completed", yz = ({
25637
25637
  {
25638
25638
  href: e,
25639
25639
  target: "_blank",
25640
+ rel: "noreferrer",
25640
25641
  style: {
25641
25642
  textDecoration: "underline",
25642
25643
  color: "blue",
@@ -25646,7 +25647,7 @@ const Hm = "Payment Completed", yz = ({
25646
25647
  }
25647
25648
  ),
25648
25649
  " ",
25649
- "to prooceed to payment page"
25650
+ "to proceed to payment page"
25650
25651
  ]
25651
25652
  }
25652
25653
  ),
@@ -26625,7 +26626,7 @@ const Pz = () => /* @__PURE__ */ U(
26625
26626
  mainstackProductId: X,
26626
26627
  STRIPE_SECRET_KEY: K,
26627
26628
  STRIPE_SECRET_KEY_GBP: le,
26628
- STRIPE_SECRET_KEY_CAD: fe,
26629
+ STRIPE_SECRET_KEY_CAD: de,
26629
26630
  applyTrancheFee: ce,
26630
26631
  ip: he,
26631
26632
  shouldApplyTax: oe,
@@ -26658,7 +26659,7 @@ const Pz = () => /* @__PURE__ */ U(
26658
26659
  j.set(ee);
26659
26660
  }, 50);
26660
26661
  }
26661
- const de = xe(null), _e = (ee) => !b || b.length <= 0 ? !0 : b == null ? void 0 : b.includes(ee), vt = ed().shape({
26662
+ const fe = xe(null), _e = (ee) => !b || b.length <= 0 ? !0 : b == null ? void 0 : b.includes(ee), vt = ed().shape({
26662
26663
  email: Gt().matches(
26663
26664
  /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
26664
26665
  "Please enter a valid email"
@@ -26841,13 +26842,18 @@ const Pz = () => /* @__PURE__ */ U(
26841
26842
  ee = le, nn = "GB_ACCOUNT";
26842
26843
  break;
26843
26844
  case h === gn.CAD:
26844
- ee = fe, nn = "CA_ACCOUNT";
26845
+ ee = de, nn = "CA_ACCOUNT";
26845
26846
  break;
26846
26847
  default:
26847
26848
  ee = K, nn = "US_ACCOUNT";
26848
26849
  }
26849
26850
  return SI(ee);
26850
- }, [h, K, le]);
26851
+ }, [
26852
+ h,
26853
+ K,
26854
+ le,
26855
+ de
26856
+ ]);
26851
26857
  pe(() => {
26852
26858
  // isFree
26853
26859
  h !== gn.NGN && h !== gn.GHS ? ve(!0) : ve(!1);
@@ -26891,7 +26897,7 @@ const Pz = () => /* @__PURE__ */ U(
26891
26897
  {
26892
26898
  onSuccess() {
26893
26899
  var mt;
26894
- Xt(!0), Xe(!O), (M || Z) && (de != null && de.current) && ue((mt = de == null ? void 0 : de.current) == null ? void 0 : mt.offsetTop);
26900
+ Xt(!0), Xe(!O), (M || Z) && (fe != null && fe.current) && ue((mt = fe == null ? void 0 : fe.current) == null ? void 0 : mt.offsetTop);
26895
26901
  },
26896
26902
  onError(mt) {
26897
26903
  var yr;
@@ -27078,7 +27084,7 @@ const Pz = () => /* @__PURE__ */ U(
27078
27084
  }
27079
27085
  )
27080
27086
  ] }),
27081
- /* @__PURE__ */ v(dt, { ref: de, children: /* @__PURE__ */ v(Is, { stripe: pr, children: /* @__PURE__ */ v(
27087
+ /* @__PURE__ */ v(dt, { ref: fe, children: /* @__PURE__ */ v(Is, { stripe: pr, children: /* @__PURE__ */ v(
27082
27088
  hz,
27083
27089
  {
27084
27090
  metadata: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "0.5.33",
4
+ "version": "0.5.34",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [