mainstack-payments 0.5.26 → 0.5.27

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.
@@ -290,13 +290,13 @@ js.exports;
290
290
  (function(e, t) {
291
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]", m = "[object GeneratorFunction]", h = "[object Map]", y = "[object Number]", x = "[object Null]", v = "[object Object]", b = "[object Proxy]", k = "[object RegExp]", C = "[object Set]", _ = "[object String]", E = "[object Undefined]", O = "[object WeakMap]", B = "[object ArrayBuffer]", ae = "[object DataView]", K = "[object Float32Array]", he = "[object Float64Array]", de = "[object Int8Array]", ne = "[object Int16Array]", fe = "[object Int32Array]", ue = "[object Uint8Array]", me = "[object Uint8ClampedArray]", Re = "[object Uint16Array]", ce = "[object Uint32Array]", M = /[\\^$.*+?()[\]{}|]/g, F = /^\[object .+?Constructor\]$/, W = /^(?:0|[1-9]\d*)$/, R = {};
292
292
  R[K] = R[he] = R[de] = R[ne] = R[fe] = R[ue] = R[me] = R[Re] = R[ce] = !0, R[s] = R[c] = R[B] = R[u] = R[ae] = R[d] = R[f] = R[p] = R[h] = R[y] = R[v] = R[k] = R[C] = R[_] = R[O] = !1;
293
- var z = typeof Zi == "object" && Zi && Zi.Object === Object && Zi, Q = typeof self == "object" && self && self.Object === Object && self, N = z || Q || Function("return this")(), H = t && !t.nodeType && t, q = H && !0 && e && !e.nodeType && e, le = q && q.exports === H, ee = le && z.process, xe = function() {
293
+ var z = typeof Zi == "object" && Zi && Zi.Object === Object && Zi, Q = typeof self == "object" && self && self.Object === Object && self, N = z || Q || Function("return this")(), H = t && !t.nodeType && t, q = H && !0 && e && !e.nodeType && e, le = q && q.exports === H, ee = le && z.process, we = function() {
294
294
  try {
295
295
  var g = q && q.require && q.require("util").types;
296
296
  return g || ee && ee.binding && ee.binding("util");
297
297
  } catch {
298
298
  }
299
- }(), D = xe && xe.isTypedArray;
299
+ }(), D = we && we.isTypedArray;
300
300
  function Je(g, T, $) {
301
301
  switch ($.length) {
302
302
  case 0:
@@ -328,12 +328,12 @@ js.exports;
328
328
  return g(T($));
329
329
  };
330
330
  }
331
- var pt = Array.prototype, Tt = Function.prototype, we = Object.prototype, un = N["__core-js_shared__"], P = Tt.toString, I = we.hasOwnProperty, V = function() {
331
+ var pt = Array.prototype, Tt = Function.prototype, ye = Object.prototype, un = N["__core-js_shared__"], P = Tt.toString, I = ye.hasOwnProperty, V = function() {
332
332
  var g = /[^.]+$/.exec(un && un.keys && un.keys.IE_PROTO || "");
333
333
  return g ? "Symbol(src)_1." + g : "";
334
- }(), G = we.toString, oe = P.call(Object), ye = RegExp(
334
+ }(), G = ye.toString, oe = P.call(Object), be = RegExp(
335
335
  "^" + P.call(I).replace(M, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
336
- ), Le = le ? N.Buffer : void 0, Ct = N.Symbol, Vn = N.Uint8Array, Mt = Le ? Le.allocUnsafe : void 0, Jr = bt(Object.getPrototypeOf, Object), Qr = Object.create, Qa = we.propertyIsEnumerable, eo = pt.splice, kn = Ct ? Ct.toStringTag : void 0, ea = function() {
336
+ ), Le = le ? N.Buffer : void 0, Ct = N.Symbol, Vn = N.Uint8Array, Mt = Le ? Le.allocUnsafe : void 0, Jr = bt(Object.getPrototypeOf, Object), Qr = Object.create, Qa = ye.propertyIsEnumerable, eo = pt.splice, kn = Ct ? Ct.toStringTag : void 0, ea = function() {
337
337
  try {
338
338
  var g = oa(Object, "defineProperty");
339
339
  return g({}, "", {}), g;
@@ -470,14 +470,14 @@ js.exports;
470
470
  }
471
471
  en.prototype.clear = tn, en.prototype.delete = Wc, en.prototype.get = Hc, en.prototype.has = ct, en.prototype.set = Kc;
472
472
  function Zc(g, T) {
473
- var $ = ca(g), j = !$ && sa(g), Ae = !$ && !j && so(g), Oe = !$ && !j && !Ae && pr(g), Ue = $ || j || Ae || Oe, ve = Ue ? He(g.length, String) : [], Ge = ve.length;
473
+ var $ = ca(g), j = !$ && sa(g), Ae = !$ && !j && so(g), Oe = !$ && !j && !Ae && pr(g), Ue = $ || j || Ae || Oe, Se = Ue ? He(g.length, String) : [], Ge = Se.length;
474
474
  for (var jt in g)
475
475
  (T || I.call(g, jt)) && !(Ue && // Safari 9 has enumerable `arguments.length` in strict mode.
476
476
  (jt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
477
477
  Ae && (jt == "offset" || jt == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
478
478
  Oe && (jt == "buffer" || jt == "byteLength" || jt == "byteOffset") || // Skip index properties.
479
- oo(jt, Ge))) && ve.push(jt);
480
- return ve;
479
+ oo(jt, Ge))) && Se.push(jt);
480
+ return Se;
481
481
  }
482
482
  function dr(g, T, $) {
483
483
  ($ !== void 0 && !hr(g[T], $) || $ === void 0 && !(T in g)) && ao(g, T, $);
@@ -505,16 +505,16 @@ js.exports;
505
505
  return g == null ? g === void 0 ? E : x : kn && kn in Object(g) ? Ii(g) : ji(g);
506
506
  }
507
507
  function Ti(g) {
508
- return be(g) && ra(g) == s;
508
+ return ve(g) && ra(g) == s;
509
509
  }
510
510
  function qc(g) {
511
511
  if (!Z(g) || Li(g))
512
512
  return !1;
513
- var T = ua(g) ? ye : F;
513
+ var T = ua(g) ? be : F;
514
514
  return T.test(Wi(g));
515
515
  }
516
516
  function Xc(g) {
517
- return be(g) && co(g.length) && !!R[ra(g)];
517
+ return ve(g) && co(g.length) && !!R[ra(g)];
518
518
  }
519
519
  function aa(g) {
520
520
  if (!Z(g))
@@ -529,21 +529,21 @@ js.exports;
529
529
  if (Ae || (Ae = new en()), Z(Oe))
530
530
  Jc(g, T, Ue, $, Ci, j, Ae);
531
531
  else {
532
- var ve = j ? j(ia(g, Ue), Oe, Ue + "", g, T, Ae) : void 0;
533
- ve === void 0 && (ve = Oe), dr(g, Ue, ve);
532
+ var Se = j ? j(ia(g, Ue), Oe, Ue + "", g, T, Ae) : void 0;
533
+ Se === void 0 && (Se = Oe), dr(g, Ue, Se);
534
534
  }
535
535
  }, el);
536
536
  }
537
537
  function Jc(g, T, $, j, Ae, Oe, Ue) {
538
- var ve = ia(g, $), Ge = ia(T, $), jt = Ue.get(Ge);
538
+ var Se = ia(g, $), Ge = ia(T, $), jt = Ue.get(Ge);
539
539
  if (jt) {
540
540
  dr(g, $, jt);
541
541
  return;
542
542
  }
543
- var Rt = Oe ? Oe(ve, Ge, $ + "", g, T, Ue) : void 0, lo = Rt === void 0;
543
+ var Rt = Oe ? Oe(Se, Ge, $ + "", g, T, Ue) : void 0, lo = Rt === void 0;
544
544
  if (lo) {
545
545
  var tl = ca(Ge), nl = !tl && so(Ge), If = !tl && !nl && pr(Ge);
546
- Rt = Ge, tl || nl || If ? ca(ve) ? Rt = ve : Hi(ve) ? Rt = Fi(ve) : nl ? (lo = !1, Rt = ki(Ge, !0)) : If ? (lo = !1, Rt = _i(Ge, !0)) : Rt = [] : mt(Ge) || sa(Ge) ? (Rt = ve, sa(ve) ? Rt = Qc(ve) : (!Z(ve) || ua(ve)) && (Rt = Di(Ge))) : lo = !1;
546
+ Rt = Ge, tl || nl || If ? ca(Se) ? Rt = Se : Hi(Se) ? Rt = Fi(Se) : nl ? (lo = !1, Rt = ki(Ge, !0)) : If ? (lo = !1, Rt = _i(Ge, !0)) : Rt = [] : mt(Ge) || sa(Ge) ? (Rt = Se, sa(Se) ? Rt = Qc(Se) : (!Z(Se) || ua(Se)) && (Rt = Di(Ge))) : lo = !1;
547
547
  }
548
548
  lo && (Ue.set(Ge, Rt), Ae(Rt, Ge, j, Oe, Ue), Ue.delete(Ge)), dr(g, $, Rt);
549
549
  }
@@ -582,8 +582,8 @@ js.exports;
582
582
  var Ae = !$;
583
583
  $ || ($ = {});
584
584
  for (var Oe = -1, Ue = T.length; ++Oe < Ue; ) {
585
- var ve = T[Oe], Ge = j ? j($[ve], g[ve], ve, $, g) : void 0;
586
- Ge === void 0 && (Ge = g[ve]), Ae ? ao($, ve, Ge) : ro($, ve, Ge);
585
+ var Se = T[Oe], Ge = j ? j($[Se], g[Se], Se, $, g) : void 0;
586
+ Ge === void 0 && (Ge = g[Se]), Ae ? ao($, Se, Ge) : ro($, Se, Ge);
587
587
  }
588
588
  return $;
589
589
  }
@@ -591,16 +591,16 @@ js.exports;
591
591
  return Ei(function(T, $) {
592
592
  var j = -1, Ae = $.length, Oe = Ae > 1 ? $[Ae - 1] : void 0, Ue = Ae > 2 ? $[2] : void 0;
593
593
  for (Oe = g.length > 3 && typeof Oe == "function" ? (Ae--, Oe) : void 0, Ue && Bi($[0], $[1], Ue) && (Oe = Ae < 3 ? void 0 : Oe, Ae = 1), T = Object(T); ++j < Ae; ) {
594
- var ve = $[j];
595
- ve && g(T, ve, j, Oe);
594
+ var Se = $[j];
595
+ Se && g(T, Se, j, Oe);
596
596
  }
597
597
  return T;
598
598
  });
599
599
  }
600
600
  function Oi(g) {
601
601
  return function(T, $, j) {
602
- for (var Ae = -1, Oe = Object(T), Ue = j(T), ve = Ue.length; ve--; ) {
603
- var Ge = Ue[g ? ve : ++Ae];
602
+ for (var Ae = -1, Oe = Object(T), Ue = j(T), Se = Ue.length; Se--; ) {
603
+ var Ge = Ue[g ? Se : ++Ae];
604
604
  if ($(Oe[Ge], Ge, Oe) === !1)
605
605
  break;
606
606
  }
@@ -646,7 +646,7 @@ js.exports;
646
646
  return !!V && V in g;
647
647
  }
648
648
  function io(g) {
649
- var T = g && g.constructor, $ = typeof T == "function" && T.prototype || we;
649
+ var T = g && g.constructor, $ = typeof T == "function" && T.prototype || ye;
650
650
  return g === $;
651
651
  }
652
652
  function zi(g) {
@@ -664,9 +664,9 @@ js.exports;
664
664
  for (var j = arguments, Ae = -1, Oe = Bc(j.length - T, 0), Ue = Array(Oe); ++Ae < Oe; )
665
665
  Ue[Ae] = j[T + Ae];
666
666
  Ae = -1;
667
- for (var ve = Array(T + 1); ++Ae < T; )
668
- ve[Ae] = j[Ae];
669
- return ve[T] = $(Ue), Je(g, this, ve);
667
+ for (var Se = Array(T + 1); ++Ae < T; )
668
+ Se[Ae] = j[Ae];
669
+ return Se[T] = $(Ue), Je(g, this, Se);
670
670
  };
671
671
  }
672
672
  function ia(g, T) {
@@ -705,13 +705,13 @@ js.exports;
705
705
  var sa = Ti(function() {
706
706
  return arguments;
707
707
  }()) ? Ti : function(g) {
708
- return be(g) && I.call(g, "callee") && !Qa.call(g, "callee");
708
+ return ve(g) && I.call(g, "callee") && !Qa.call(g, "callee");
709
709
  }, ca = Array.isArray;
710
710
  function la(g) {
711
711
  return g != null && co(g.length) && !ua(g);
712
712
  }
713
713
  function Hi(g) {
714
- return be(g) && la(g);
714
+ return ve(g) && la(g);
715
715
  }
716
716
  var so = Dc || Ki;
717
717
  function ua(g) {
@@ -727,11 +727,11 @@ js.exports;
727
727
  var T = typeof g;
728
728
  return g != null && (T == "object" || T == "function");
729
729
  }
730
- function be(g) {
730
+ function ve(g) {
731
731
  return g != null && typeof g == "object";
732
732
  }
733
733
  function mt(g) {
734
- if (!be(g) || ra(g) != v)
734
+ if (!ve(g) || ra(g) != v)
735
735
  return !1;
736
736
  var T = Jr(g);
737
737
  if (T === null)
@@ -1357,7 +1357,7 @@ function BS(e) {
1357
1357
  const NS = (e) => {
1358
1358
  const t = parseFloat(e.toString()), n = e.toString().replace(String(t), "");
1359
1359
  return { unitless: !n, value: t, unit: n };
1360
- }, hn = (e) => (t) => `${e}(${t})`, Se = {
1360
+ }, hn = (e) => (t) => `${e}(${t})`, xe = {
1361
1361
  filter(e) {
1362
1362
  return e !== "auto" ? e : $S;
1363
1363
  },
@@ -1365,7 +1365,7 @@ const NS = (e) => {
1365
1365
  return e !== "auto" ? e : _S;
1366
1366
  },
1367
1367
  ring(e) {
1368
- return FS(Se.px(e));
1368
+ return FS(xe.px(e));
1369
1369
  },
1370
1370
  bgClip(e) {
1371
1371
  return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e };
@@ -1402,7 +1402,7 @@ const NS = (e) => {
1402
1402
  contrast: hn("contrast"),
1403
1403
  dropShadow: hn("drop-shadow"),
1404
1404
  grayscale: hn("grayscale"),
1405
- hueRotate: (e) => hn("hue-rotate")(Se.degree(e)),
1405
+ hueRotate: (e) => hn("hue-rotate")(xe.degree(e)),
1406
1406
  invert: hn("invert"),
1407
1407
  saturate: hn("saturate"),
1408
1408
  sepia: hn("sepia"),
@@ -1422,12 +1422,12 @@ const NS = (e) => {
1422
1422
  borderStyles: Vt("borderStyles"),
1423
1423
  colors: Vt("colors"),
1424
1424
  borders: Vt("borders"),
1425
- gradients: Vt("gradients", Se.gradient),
1426
- radii: Vt("radii", Se.px),
1427
- space: Vt("space", Yi(Se.vh, Se.px)),
1428
- spaceT: Vt("space", Yi(Se.vh, Se.px)),
1425
+ gradients: Vt("gradients", xe.gradient),
1426
+ radii: Vt("radii", xe.px),
1427
+ space: Vt("space", Yi(xe.vh, xe.px)),
1428
+ spaceT: Vt("space", Yi(xe.vh, xe.px)),
1429
1429
  degreeT(e) {
1430
- return { property: e, transform: Se.degree };
1430
+ return { property: e, transform: xe.degree };
1431
1431
  },
1432
1432
  prop(e, t, n) {
1433
1433
  return {
@@ -1441,11 +1441,11 @@ const NS = (e) => {
1441
1441
  propT(e, t) {
1442
1442
  return { property: e, transform: t };
1443
1443
  },
1444
- sizes: Vt("sizes", Yi(Se.vh, Se.px)),
1445
- sizesT: Vt("sizes", Yi(Se.vh, Se.fraction)),
1444
+ sizes: Vt("sizes", Yi(xe.vh, xe.px)),
1445
+ sizesT: Vt("sizes", Yi(xe.vh, xe.fraction)),
1446
1446
  shadows: Vt("shadows"),
1447
1447
  logical: ES,
1448
- blur: Vt("blur", Se.blur)
1448
+ blur: Vt("blur", xe.blur)
1449
1449
  }, Ss = {
1450
1450
  background: A.colors("background"),
1451
1451
  backgroundColor: A.colors("backgroundColor"),
@@ -1454,7 +1454,7 @@ const NS = (e) => {
1454
1454
  backgroundPosition: !0,
1455
1455
  backgroundRepeat: !0,
1456
1456
  backgroundAttachment: !0,
1457
- backgroundClip: { transform: Se.bgClip },
1457
+ backgroundClip: { transform: xe.bgClip },
1458
1458
  bgSize: A.prop("backgroundSize"),
1459
1459
  bgPosition: A.prop("backgroundPosition"),
1460
1460
  bg: A.colors("background"),
@@ -1463,7 +1463,7 @@ const NS = (e) => {
1463
1463
  bgRepeat: A.prop("backgroundRepeat"),
1464
1464
  bgAttachment: A.prop("backgroundAttachment"),
1465
1465
  bgGradient: A.gradients("backgroundImage"),
1466
- bgClip: { transform: Se.bgClip }
1466
+ bgClip: { transform: xe.bgClip }
1467
1467
  };
1468
1468
  Object.assign(Ss, {
1469
1469
  bgImage: Ss.backgroundImage,
@@ -1615,7 +1615,7 @@ const LS = {
1615
1615
  justifyItems: !0,
1616
1616
  justifyContent: !0,
1617
1617
  flexWrap: !0,
1618
- flexDirection: { transform: Se.flexDirection },
1618
+ flexDirection: { transform: xe.flexDirection },
1619
1619
  flex: !0,
1620
1620
  flexFlow: !0,
1621
1621
  flexGrow: !0,
@@ -1673,7 +1673,7 @@ const Ht = {
1673
1673
  verticalAlign: !0,
1674
1674
  boxSizing: !0,
1675
1675
  boxDecorationBreak: !0,
1676
- float: A.propT("float", Se.float),
1676
+ float: A.propT("float", xe.float),
1677
1677
  objectFit: !0,
1678
1678
  objectPosition: !0,
1679
1679
  visibility: !0,
@@ -1691,29 +1691,29 @@ Object.assign(Ht, {
1691
1691
  overscrollY: Ht.overscrollBehaviorY
1692
1692
  });
1693
1693
  const zS = {
1694
- filter: { transform: Se.filter },
1694
+ filter: { transform: xe.filter },
1695
1695
  blur: A.blur("--chakra-blur"),
1696
- brightness: A.propT("--chakra-brightness", Se.brightness),
1697
- contrast: A.propT("--chakra-contrast", Se.contrast),
1698
- hueRotate: A.propT("--chakra-hue-rotate", Se.hueRotate),
1699
- invert: A.propT("--chakra-invert", Se.invert),
1700
- saturate: A.propT("--chakra-saturate", Se.saturate),
1701
- dropShadow: A.propT("--chakra-drop-shadow", Se.dropShadow),
1702
- backdropFilter: { transform: Se.backdropFilter },
1696
+ brightness: A.propT("--chakra-brightness", xe.brightness),
1697
+ contrast: A.propT("--chakra-contrast", xe.contrast),
1698
+ hueRotate: A.propT("--chakra-hue-rotate", xe.hueRotate),
1699
+ invert: A.propT("--chakra-invert", xe.invert),
1700
+ saturate: A.propT("--chakra-saturate", xe.saturate),
1701
+ dropShadow: A.propT("--chakra-drop-shadow", xe.dropShadow),
1702
+ backdropFilter: { transform: xe.backdropFilter },
1703
1703
  backdropBlur: A.blur("--chakra-backdrop-blur"),
1704
1704
  backdropBrightness: A.propT(
1705
1705
  "--chakra-backdrop-brightness",
1706
- Se.brightness
1706
+ xe.brightness
1707
1707
  ),
1708
- backdropContrast: A.propT("--chakra-backdrop-contrast", Se.contrast),
1708
+ backdropContrast: A.propT("--chakra-backdrop-contrast", xe.contrast),
1709
1709
  backdropHueRotate: A.propT(
1710
1710
  "--chakra-backdrop-hue-rotate",
1711
- Se.hueRotate
1711
+ xe.hueRotate
1712
1712
  ),
1713
- backdropInvert: A.propT("--chakra-backdrop-invert", Se.invert),
1714
- backdropSaturate: A.propT("--chakra-backdrop-saturate", Se.saturate)
1713
+ backdropInvert: A.propT("--chakra-backdrop-invert", xe.invert),
1714
+ backdropSaturate: A.propT("--chakra-backdrop-saturate", xe.saturate)
1715
1715
  }, jS = {
1716
- ring: { transform: Se.ring },
1716
+ ring: { transform: xe.ring },
1717
1717
  ringColor: A.colors("--chakra-ring-color"),
1718
1718
  ringOffset: A.prop("--chakra-ring-offset-width"),
1719
1719
  ringOffsetColor: A.colors("--chakra-ring-offset-color"),
@@ -1724,7 +1724,7 @@ const zS = {
1724
1724
  resize: !0,
1725
1725
  userSelect: !0,
1726
1726
  pointerEvents: !0,
1727
- outline: { transform: Se.outline },
1727
+ outline: { transform: xe.outline },
1728
1728
  outlineOffset: !0,
1729
1729
  outlineColor: A.colors("outlineColor")
1730
1730
  }, vg = {
@@ -1920,7 +1920,7 @@ const YS = {
1920
1920
  scrollPaddingY: A.spaceT(["scrollPaddingTop", "scrollPaddingBottom"])
1921
1921
  }, qS = {
1922
1922
  fontFamily: A.prop("fontFamily", "fonts"),
1923
- fontSize: A.prop("fontSize", "fontSizes", Se.px),
1923
+ fontSize: A.prop("fontSize", "fontSizes", xe.px),
1924
1924
  fontWeight: A.prop("fontWeight", "fontWeights"),
1925
1925
  lineHeight: A.prop("lineHeight", "lineHeights"),
1926
1926
  letterSpacing: A.prop("letterSpacing", "letterSpacings"),
@@ -1964,7 +1964,7 @@ const YS = {
1964
1964
  textShadow: A.shadows("textShadow")
1965
1965
  }, JS = {
1966
1966
  clipPath: !0,
1967
- transform: A.propT("transform", Se.transform),
1967
+ transform: A.propT("transform", xe.transform),
1968
1968
  transformOrigin: !0,
1969
1969
  translateX: A.spaceT("--chakra-translate-x"),
1970
1970
  translateY: A.spaceT("--chakra-translate-y"),
@@ -6519,10 +6519,10 @@ function yP() {
6519
6519
  function ee(D) {
6520
6520
  return k(D) === a;
6521
6521
  }
6522
- function xe(D) {
6522
+ function we(D) {
6523
6523
  return k(D) === d;
6524
6524
  }
6525
- Fe.AsyncMode = C, Fe.ConcurrentMode = _, Fe.ContextConsumer = E, Fe.ContextProvider = O, Fe.Element = B, Fe.ForwardRef = ae, Fe.Fragment = K, Fe.Lazy = he, Fe.Memo = de, Fe.Portal = ne, Fe.Profiler = fe, Fe.StrictMode = ue, Fe.Suspense = me, Fe.isAsyncMode = ce, Fe.isConcurrentMode = M, Fe.isContextConsumer = F, Fe.isContextProvider = W, Fe.isElement = R, Fe.isForwardRef = z, Fe.isFragment = Q, Fe.isLazy = N, Fe.isMemo = H, Fe.isPortal = q, Fe.isProfiler = le, Fe.isStrictMode = ee, Fe.isSuspense = xe, Fe.isValidElementType = b, Fe.typeOf = k;
6525
+ Fe.AsyncMode = C, Fe.ConcurrentMode = _, Fe.ContextConsumer = E, Fe.ContextProvider = O, Fe.Element = B, Fe.ForwardRef = ae, Fe.Fragment = K, Fe.Lazy = he, Fe.Memo = de, Fe.Portal = ne, Fe.Profiler = fe, Fe.StrictMode = ue, Fe.Suspense = me, Fe.isAsyncMode = ce, Fe.isConcurrentMode = M, Fe.isContextConsumer = F, Fe.isContextProvider = W, Fe.isElement = R, Fe.isForwardRef = z, Fe.isFragment = Q, Fe.isLazy = N, Fe.isMemo = H, Fe.isPortal = q, Fe.isProfiler = le, Fe.isStrictMode = ee, Fe.isSuspense = we, Fe.isValidElementType = b, Fe.typeOf = k;
6526
6526
  }()), Fe;
6527
6527
  }
6528
6528
  process.env.NODE_ENV === "production" ? bu.exports = gP() : bu.exports = yP();
@@ -8893,8 +8893,8 @@ function Jo({ autoplay: e = !0, delay: t = 0, driver: n = zk, keyframes: r, type
8893
8893
  let z = ne, Q = C;
8894
8894
  if (o) {
8895
8895
  const le = Math.min(ne, de) / he;
8896
- let ee = Math.floor(le), xe = le % 1;
8897
- !xe && le >= 1 && (xe = 1), xe === 1 && ee--, ee = Math.min(ee, o + 1), !!(ee % 2) && (s === "reverse" ? (xe = 1 - xe, i && (xe -= i / he)) : s === "mirror" && (Q = _)), z = nr(0, 1, xe) * he;
8896
+ let ee = Math.floor(le), we = le % 1;
8897
+ !we && le >= 1 && (we = 1), we === 1 && ee--, ee = Math.min(ee, o + 1), !!(ee % 2) && (s === "reverse" ? (we = 1 - we, i && (we -= i / he)) : s === "mirror" && (Q = _)), z = nr(0, 1, we) * he;
8898
8898
  }
8899
8899
  const N = R ? { done: !1, value: r[0] } : Q.next(z);
8900
8900
  k && (N.value = k(N.value));
@@ -13352,8 +13352,8 @@ function AM() {
13352
13352
  function y(M) {
13353
13353
  if (process.env.NODE_ENV !== "production")
13354
13354
  var F = {}, W = 0;
13355
- function R(Q, N, H, q, le, ee, xe) {
13356
- if (q = q || f, ee = ee || H, xe !== n) {
13355
+ function R(Q, N, H, q, le, ee, we) {
13356
+ if (q = q || f, ee = ee || H, we !== n) {
13357
13357
  if (c) {
13358
13358
  var D = new Error(
13359
13359
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -13448,7 +13448,7 @@ function AM() {
13448
13448
  for (var H = W[R], q = 0; q < M.length; q++)
13449
13449
  if (m(H, M[q]))
13450
13450
  return null;
13451
- var le = JSON.stringify(M, function(xe, D) {
13451
+ var le = JSON.stringify(M, function(we, D) {
13452
13452
  var Je = me(D);
13453
13453
  return Je === "symbol" ? String(D) : D;
13454
13454
  });
@@ -13485,7 +13485,7 @@ function AM() {
13485
13485
  }
13486
13486
  function R(z, Q, N, H, q) {
13487
13487
  for (var le = [], ee = 0; ee < M.length; ee++) {
13488
- var xe = M[ee], D = xe(z, Q, N, H, q, n);
13488
+ var we = M[ee], D = we(z, Q, N, H, q, n);
13489
13489
  if (D == null)
13490
13490
  return null;
13491
13491
  D.data && r(D.data, "expectedType") && le.push(D.data.expectedType);
@@ -13515,9 +13515,9 @@ function AM() {
13515
13515
  var ee = M[le];
13516
13516
  if (typeof ee != "function")
13517
13517
  return K(z, Q, N, le, me(ee));
13518
- var xe = ee(H, le, z, Q, N + "." + le, n);
13519
- if (xe)
13520
- return xe;
13518
+ var we = ee(H, le, z, Q, N + "." + le, n);
13519
+ if (we)
13520
+ return we;
13521
13521
  }
13522
13522
  return null;
13523
13523
  }
@@ -13530,15 +13530,15 @@ function AM() {
13530
13530
  return new h("Invalid " + Q + " `" + N + "` of type `" + q + "` " + ("supplied to `" + z + "`, expected `object`."));
13531
13531
  var le = t({}, W[R], M);
13532
13532
  for (var ee in le) {
13533
- var xe = M[ee];
13534
- if (r(M, ee) && typeof xe != "function")
13535
- return K(z, Q, N, ee, me(xe));
13536
- if (!xe)
13533
+ var we = M[ee];
13534
+ if (r(M, ee) && typeof we != "function")
13535
+ return K(z, Q, N, ee, me(we));
13536
+ if (!we)
13537
13537
  return new h(
13538
13538
  "Invalid " + Q + " `" + N + "` key `" + ee + "` supplied to `" + z + "`.\nBad object: " + JSON.stringify(W[R], null, " ") + `
13539
13539
  Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
13540
13540
  );
13541
- var D = xe(H, ee, z, Q, N + "." + ee, n);
13541
+ var D = we(H, ee, z, Q, N + "." + ee, n);
13542
13542
  if (D)
13543
13543
  return D;
13544
13544
  }
@@ -13846,8 +13846,8 @@ var jb = qd({}, function(e) {
13846
13846
  var r, a = re(), o = a[0], i = a[1], s = Te(), c = Te(!1), l = Te(null), u = re({}), d = u[1], f = t.children, p = t.disabled, m = p === void 0 ? !1 : p, h = t.noFocusGuards, y = h === void 0 ? !1 : h, x = t.persistentFocus, v = x === void 0 ? !1 : x, b = t.crossFrame, k = b === void 0 ? !0 : b, C = t.autoFocus, _ = C === void 0 ? !0 : C, E = t.allowTextSelection, O = t.group, B = t.className, ae = t.whiteList, K = t.hasPositiveIndices, he = t.shards, de = he === void 0 ? BM : he, ne = t.as, fe = ne === void 0 ? "div" : ne, ue = t.lockProps, me = ue === void 0 ? {} : ue, Re = t.sideCar, ce = t.returnFocus, M = ce === void 0 ? !1 : ce, F = t.focusOptions, W = t.onActivation, R = t.onDeactivation, z = re({}), Q = z[0], N = ie(function(bt) {
13847
13847
  var pt = bt.captureFocusRestore;
13848
13848
  if (!l.current) {
13849
- var Tt, we = (Tt = document) == null ? void 0 : Tt.activeElement;
13850
- l.current = we, we !== document.body && (l.current = pt(we));
13849
+ var Tt, ye = (Tt = document) == null ? void 0 : Tt.activeElement;
13850
+ l.current = ye, ye !== document.body && (l.current = pt(ye));
13851
13851
  }
13852
13852
  s.current && W && W(s.current), c.current = !0, d();
13853
13853
  }, [W]), H = ie(function() {
@@ -13855,9 +13855,9 @@ var jb = qd({}, function(e) {
13855
13855
  }, [R]), q = ie(function(bt) {
13856
13856
  var pt = l.current;
13857
13857
  if (pt) {
13858
- var Tt = (typeof pt == "function" ? pt() : pt) || document.body, we = typeof M == "function" ? M(Tt) : M;
13859
- if (we) {
13860
- var un = typeof we == "object" ? we : void 0;
13858
+ var Tt = (typeof pt == "function" ? pt() : pt) || document.body, ye = typeof M == "function" ? M(Tt) : M;
13859
+ if (ye) {
13860
+ var un = typeof ye == "object" ? ye : void 0;
13861
13861
  l.current = null, bt ? Promise.resolve().then(function() {
13862
13862
  return Tt.focus(un);
13863
13863
  }) : Tt.focus(un);
@@ -13865,13 +13865,13 @@ var jb = qd({}, function(e) {
13865
13865
  }
13866
13866
  }, [M]), le = ie(function(bt) {
13867
13867
  c.current && jb.useMedium(bt);
13868
- }, []), ee = Vb.useMedium, xe = ie(function(bt) {
13868
+ }, []), ee = Vb.useMedium, we = ie(function(bt) {
13869
13869
  s.current !== bt && (s.current = bt, i(bt));
13870
13870
  }, []);
13871
13871
  process.env.NODE_ENV !== "production" && (typeof E < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), pe(function() {
13872
13872
  !s.current && typeof fe != "string" && console.error("FocusLock: could not obtain ref to internal node");
13873
13873
  }, []));
13874
- var D = Br((r = {}, r[Ob] = m && "disabled", r[Du] = O, r), me), Je = y !== !0, He = Je && y !== "tail", zt = Ib([n, xe]), lr = it(function() {
13874
+ var D = Br((r = {}, r[Ob] = m && "disabled", r[Du] = O, r), me), Je = y !== !0, He = Je && y !== "tail", zt = Ib([n, we]), lr = it(function() {
13875
13875
  return {
13876
13876
  observed: s,
13877
13877
  shards: de,
@@ -16353,6 +16353,7 @@ const mf = ({
16353
16353
  enabled: !!n && n > 0,
16354
16354
  dependingOn: [
16355
16355
  n,
16356
+ t,
16356
16357
  e,
16357
16358
  r,
16358
16359
  a,
@@ -17362,19 +17363,19 @@ function rL(e) {
17362
17363
  }, []), O = ie(function(P, I) {
17363
17364
  return new Promise(function(V, G) {
17364
17365
  var oe = f.validate(P, I);
17365
- oe == null ? V(yr) : Jl(oe) ? oe.then(function(ye) {
17366
- V(ye || yr);
17367
- }, function(ye) {
17368
- process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", ye), G(ye);
17366
+ oe == null ? V(yr) : Jl(oe) ? oe.then(function(be) {
17367
+ V(be || yr);
17368
+ }, function(be) {
17369
+ process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validate />", be), G(be);
17369
17370
  }) : V(oe);
17370
17371
  });
17371
17372
  }, [f.validate]), B = ie(function(P, I) {
17372
17373
  var V = f.validationSchema, G = rn(V) ? V(I) : V, oe = I && G.validateAt ? G.validateAt(I, P) : oL(P, G);
17373
- return new Promise(function(ye, Le) {
17374
+ return new Promise(function(be, Le) {
17374
17375
  oe.then(function() {
17375
- ye(yr);
17376
+ be(yr);
17376
17377
  }, function(Ct) {
17377
- Ct.name === "ValidationError" ? ye(aL(Ct)) : (process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", Ct), Le(Ct));
17378
+ Ct.name === "ValidationError" ? be(aL(Ct)) : (process.env.NODE_ENV !== "production" && console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />", Ct), Le(Ct));
17378
17379
  });
17379
17380
  });
17380
17381
  }, [f.validationSchema]), ae = ie(function(P, I) {
@@ -17388,16 +17389,16 @@ function rL(e) {
17388
17389
  return ae(G, It(P, G));
17389
17390
  }) : [Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];
17390
17391
  return Promise.all(V).then(function(G) {
17391
- return G.reduce(function(oe, ye, Le) {
17392
- return ye === "DO_NOT_DELETE_YOU_WILL_BE_FIRED" || ye && (oe = Or(oe, I[Le], ye)), oe;
17392
+ return G.reduce(function(oe, be, Le) {
17393
+ return be === "DO_NOT_DELETE_YOU_WILL_BE_FIRED" || be && (oe = Or(oe, I[Le], be)), oe;
17393
17394
  }, {});
17394
17395
  });
17395
17396
  }, [ae]), he = ie(function(P) {
17396
17397
  return Promise.all([K(P), f.validationSchema ? B(P) : {}, f.validate ? O(P) : {}]).then(function(I) {
17397
- var V = I[0], G = I[1], oe = I[2], ye = Wu.all([V, G, oe], {
17398
+ var V = I[0], G = I[1], oe = I[2], be = Wu.all([V, G, oe], {
17398
17399
  arrayMerge: iL
17399
17400
  });
17400
- return ye;
17401
+ return be;
17401
17402
  });
17402
17403
  }, [f.validate, f.validationSchema, K, O, B]), de = Gt(function(P) {
17403
17404
  return P === void 0 && (P = _.values), E({
@@ -17419,7 +17420,7 @@ function rL(e) {
17419
17420
  var ne = ie(function(P) {
17420
17421
  var I = P && P.values ? P.values : p.current, V = P && P.errors ? P.errors : m.current ? m.current : f.initialErrors || {}, G = P && P.touched ? P.touched : h.current ? h.current : f.initialTouched || {}, oe = P && P.status ? P.status : y.current ? y.current : f.initialStatus;
17421
17422
  p.current = I, m.current = V, h.current = G, y.current = oe;
17422
- var ye = function() {
17423
+ var be = function() {
17423
17424
  E({
17424
17425
  type: "RESET_FORM",
17425
17426
  payload: {
@@ -17435,9 +17436,9 @@ function rL(e) {
17435
17436
  };
17436
17437
  if (f.onReset) {
17437
17438
  var Le = f.onReset(_.values, Je);
17438
- Jl(Le) ? Le.then(ye) : ye();
17439
+ Jl(Le) ? Le.then(be) : be();
17439
17440
  } else
17440
- ye();
17441
+ be();
17441
17442
  }, [f.initialErrors, f.initialStatus, f.initialTouched, f.onReset]);
17442
17443
  pe(function() {
17443
17444
  x.current === !0 && !Ar(p.current, f.initialValues) && l && (p.current = f.initialValues, ne(), i && de(p.current));
@@ -17551,7 +17552,7 @@ function rL(e) {
17551
17552
  var V = I, G = P, oe;
17552
17553
  if (!Xl(P)) {
17553
17554
  P.persist && P.persist();
17554
- var ye = P.target ? P.target : P.currentTarget, Le = ye.type, Ct = ye.name, Vn = ye.id, Mt = ye.value, Jr = ye.checked, Qr = ye.outerHTML, Qa = ye.options, eo = ye.multiple;
17555
+ var be = P.target ? P.target : P.currentTarget, Le = be.type, Ct = be.name, Vn = be.id, Mt = be.value, Jr = be.checked, Qr = be.outerHTML, Qa = be.options, eo = be.multiple;
17555
17556
  V = I || Ct || Vn, !V && process.env.NODE_ENV !== "production" && Rm({
17556
17557
  htmlContent: Qr,
17557
17558
  documentationAnchorLink: "handlechange-e-reactchangeeventany--void",
@@ -17577,9 +17578,9 @@ function rL(e) {
17577
17578
  return G ? de(_.values) : Promise.resolve();
17578
17579
  }), N = ie(function(P, I) {
17579
17580
  P.persist && P.persist();
17580
- var V = P.target, G = V.name, oe = V.id, ye = V.outerHTML, Le = I || G || oe;
17581
+ var V = P.target, G = V.name, oe = V.id, be = V.outerHTML, Le = I || G || oe;
17581
17582
  !Le && process.env.NODE_ENV !== "production" && Rm({
17582
- htmlContent: ye,
17583
+ htmlContent: be,
17583
17584
  documentationAnchorLink: "handleblur-e-any--void",
17584
17585
  handlerName: "handleBlur"
17585
17586
  }), Q(Le, !0);
@@ -17609,7 +17610,7 @@ function rL(e) {
17609
17610
  type: "SET_ISSUBMITTING",
17610
17611
  payload: P
17611
17612
  });
17612
- }, []), xe = Gt(function() {
17613
+ }, []), we = Gt(function() {
17613
17614
  return E({
17614
17615
  type: "SUBMIT_ATTEMPT"
17615
17616
  }), de().then(function(P) {
@@ -17642,7 +17643,7 @@ function rL(e) {
17642
17643
  var I = tL();
17643
17644
  I !== null && I instanceof HTMLButtonElement && (I.attributes && I.attributes.getNamedItem("type") || (process.env.NODE_ENV !== "production" ? Pa(!1, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : Pa(!1)));
17644
17645
  }
17645
- xe().catch(function(V) {
17646
+ we().catch(function(V) {
17646
17647
  console.warn("Warning: An unhandled error was caught from submitForm()", V);
17647
17648
  });
17648
17649
  }), Je = {
@@ -17658,7 +17659,7 @@ function rL(e) {
17658
17659
  setTouched: Re,
17659
17660
  setValues: M,
17660
17661
  setFormikState: q,
17661
- submitForm: xe
17662
+ submitForm: we
17662
17663
  }, He = Gt(function() {
17663
17664
  return u(_.values, Je);
17664
17665
  }), zt = Gt(function(P) {
@@ -17692,13 +17693,13 @@ function rL(e) {
17692
17693
  onBlur: H
17693
17694
  };
17694
17695
  if (I) {
17695
- var ye = P.type, Le = P.value, Ct = P.as, Vn = P.multiple;
17696
- ye === "checkbox" ? Le === void 0 ? oe.checked = !!G : (oe.checked = !!(Array.isArray(G) && ~G.indexOf(Le)), oe.value = Le) : ye === "radio" ? (oe.checked = G === Le, oe.value = Le) : Ct === "select" && Vn && (oe.value = oe.value || [], oe.multiple = !0);
17696
+ var be = P.type, Le = P.value, Ct = P.as, Vn = P.multiple;
17697
+ be === "checkbox" ? Le === void 0 ? oe.checked = !!G : (oe.checked = !!(Array.isArray(G) && ~G.indexOf(Le)), oe.value = Le) : be === "radio" ? (oe.checked = G === Le, oe.value = Le) : Ct === "select" && Vn && (oe.value = oe.value || [], oe.multiple = !0);
17697
17698
  }
17698
17699
  return oe;
17699
17700
  }, [H, z, _.values]), Tt = it(function() {
17700
17701
  return !Ar(p.current, _.values);
17701
- }, [p.current, _.values]), we = it(function() {
17702
+ }, [p.current, _.values]), ye = it(function() {
17702
17703
  return typeof s < "u" ? Tt ? _.errors && Object.keys(_.errors).length === 0 : s !== !1 && rn(s) ? s(f) : s : _.errors && Object.keys(_.errors).length === 0;
17703
17704
  }, [s, Tt, _.errors, f]), un = lt({}, _, {
17704
17705
  initialValues: p.current,
@@ -17719,10 +17720,10 @@ function rL(e) {
17719
17720
  setSubmitting: ee,
17720
17721
  setTouched: Re,
17721
17722
  setValues: M,
17722
- submitForm: xe,
17723
+ submitForm: we,
17723
17724
  validateForm: de,
17724
17725
  validateField: fe,
17725
- isValid: we,
17726
+ isValid: ye,
17726
17727
  dirty: Tt,
17727
17728
  unregisterField: me,
17728
17729
  registerField: ue,
@@ -26568,11 +26569,11 @@ const Ez = () => /* @__PURE__ */ U(
26568
26569
  paymentModel: fe = "default",
26569
26570
  cryptoRedirectUrl: ue,
26570
26571
  isFreeTrial: me
26571
- } = e, Re = h == null ? void 0 : h.hideDetails, ce = h == null ? void 0 : h.isSingleColumn, M = ((Ei = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : Ei.email) ?? !0, F = ((Pi = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : Pi.phone) ?? !1, W = ((ki = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : ki.fullname) ?? !0, { Request: R } = Sz(E), [z, Q] = re(""), [N, H] = re(p), [q, le] = re(!1), [ee, xe] = re(!0), [D, Je] = re(!1), [He, zt] = re({
26572
+ } = e, Re = h == null ? void 0 : h.hideDetails, ce = h == null ? void 0 : h.isSingleColumn, M = ((Ei = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : Ei.email) ?? !0, F = ((Pi = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : Pi.phone) ?? !1, W = ((ki = h == null ? void 0 : h.showDefaultInputFields) == null ? void 0 : ki.fullname) ?? !0, { Request: R } = Sz(E), [z, Q] = re(""), [N, H] = re(p), [q, le] = re(!1), [ee, we] = re(!0), [D, Je] = re(!1), [He, zt] = re({
26572
26573
  openModal: !1,
26573
26574
  url: "",
26574
26575
  reference: ""
26575
- }), [lr, bt] = re(!1), [pt, Tt] = re(""), [we, un] = re({
26576
+ }), [lr, bt] = re(!1), [pt, Tt] = re(""), [ye, un] = re({
26576
26577
  amount: 0,
26577
26578
  type: "",
26578
26579
  value: 0,
@@ -26592,7 +26593,7 @@ const Ez = () => /* @__PURE__ */ U(
26592
26593
  P.set(Z);
26593
26594
  }, 50);
26594
26595
  }
26595
- const G = Te(null), oe = (Z) => !v || v.length <= 0 ? !0 : v == null ? void 0 : v.includes(Z), ye = td().shape({
26596
+ const G = Te(null), oe = (Z) => !v || v.length <= 0 ? !0 : v == null ? void 0 : v.includes(Z), be = td().shape({
26596
26597
  email: Wt().matches(
26597
26598
  /^(([^<>()[\]\\.,;:\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,}))$/,
26598
26599
  "Please enter a valid email"
@@ -26637,11 +26638,11 @@ const Ez = () => /* @__PURE__ */ U(
26637
26638
  isCard: !1,
26638
26639
  ...o
26639
26640
  },
26640
- validationSchema: lr ? ye : Le,
26641
+ validationSchema: lr ? be : Le,
26641
26642
  validateOnChange: !1,
26642
- onSubmit: (Z, { setSubmitting: be }) => {
26643
+ onSubmit: (Z, { setSubmitting: ve }) => {
26643
26644
  const mt = rc();
26644
- if (Q(mt), be(!0), tn === 0 || we != null && we.isFullDiscount) {
26645
+ if (Q(mt), ve(!0), tn === 0 || ye != null && ye.isFullDiscount) {
26645
26646
  u({
26646
26647
  fullname: Z.fullname,
26647
26648
  email: Z.email,
@@ -26685,7 +26686,7 @@ const Ez = () => /* @__PURE__ */ U(
26685
26686
  handleChargeError: () => qc(),
26686
26687
  handleInitError: (mr) => {
26687
26688
  var Wn;
26688
- be(!1), St(
26689
+ ve(!1), St(
26689
26690
  ((Wn = mr == null ? void 0 : mr.raw) == null ? void 0 : Wn.message) ?? "Error loading payment gateway",
26690
26691
  xt.error
26691
26692
  );
@@ -26696,14 +26697,15 @@ const Ez = () => /* @__PURE__ */ U(
26696
26697
  pe(() => {
26697
26698
  Y.setFieldValue("email", (i == null ? void 0 : i.email) ?? ""), Y.setFieldValue("fullname", (i == null ? void 0 : i.fullname) ?? ""), Y.setTouched({}, !1);
26698
26699
  }, [i]), H0(d, () => ({
26699
- updateCustomFormValues(Z, be) {
26700
- Y.setFieldValue(Z, be);
26700
+ updateCustomFormValues(Z, ve) {
26701
+ Y.setFieldValue(Z, ve);
26701
26702
  }
26702
26703
  }));
26703
26704
  const jc = xz((_i = Y.values) == null ? void 0 : _i.zipCode), Un = me ? !1 : f !== (Mt == null ? void 0 : Mt.currency), Qt = Y.values.country !== "" ? Vn((Fi = Y == null ? void 0 : Y.values) == null ? void 0 : Fi.country) !== f : (Mt == null ? void 0 : Mt.currency) !== f, xi = me ? !1 : Qt || f !== Fn.USD, { data: se, isLoading: wi } = vI(
26704
26705
  {
26705
26706
  account_id: y,
26706
- amount: N,
26707
+ // only use price when discount has a value, this is due to rerendering issues using price causes
26708
+ amount: ye != null && ye.amount ? N : p,
26707
26709
  currency: f,
26708
26710
  slug: x,
26709
26711
  apply_tranche_fee: he,
@@ -26738,9 +26740,9 @@ const Ez = () => /* @__PURE__ */ U(
26738
26740
  actual_price: (Wi = se == null ? void 0 : se.payload) == null ? void 0 : Wi.dollar_amount.toString(),
26739
26741
  transaction_fee: Wc,
26740
26742
  local_transaction_fee: Hc,
26741
- ...we.amount > 0 && {
26743
+ ...ye.amount > 0 && {
26742
26744
  amount_discounted: Number(
26743
- ((we == null ? void 0 : we.amount) / ((hr = se == null ? void 0 : se.payload) == null ? void 0 : hr.exchange_rate)).toFixed(2)
26745
+ ((ye == null ? void 0 : ye.amount) / ((hr = se == null ? void 0 : se.payload) == null ? void 0 : hr.exchange_rate)).toFixed(2)
26744
26746
  ),
26745
26747
  discount_code: pt
26746
26748
  },
@@ -26763,9 +26765,9 @@ const Ez = () => /* @__PURE__ */ U(
26763
26765
  R
26764
26766
  );
26765
26767
  pe(() => {
26766
- const { amount: Z } = we;
26768
+ const { amount: Z } = ye;
26767
26769
  Z !== 0 && pt !== "" && (Number(p) - Z > 0 && Number(p) - Z < 1 ? H(1) : H(p - Z));
26768
- }, [we, Y]);
26770
+ }, [ye, Y]);
26769
26771
  const dr = it(() => {
26770
26772
  let Z = "";
26771
26773
  return vs.indexOf(f) > -1 ? Z = K : Z = ae, bI(Z);
@@ -26777,17 +26779,17 @@ const Ez = () => /* @__PURE__ */ U(
26777
26779
  const na = async () => {
26778
26780
  const Z = rc();
26779
26781
  Q(Z), dn(!0);
26780
- let be = {};
26782
+ let ve = {};
26781
26783
  if (l) {
26782
26784
  const mt = await l(Y.values);
26783
- if (be = await Y.validateForm(), mt.terminate) {
26785
+ if (ve = await Y.validateForm(), mt.terminate) {
26784
26786
  dn(!1);
26785
26787
  return;
26786
26788
  }
26787
26789
  } else
26788
- be = await Y.validateForm();
26789
- if (!Object.keys(be).includes("email") && !Object.keys(be).includes("fullname")) {
26790
- if (bt(!0), tn === 0 || we != null && we.isFullDiscount) {
26790
+ ve = await Y.validateForm();
26791
+ if (!Object.keys(ve).includes("email") && !Object.keys(ve).includes("fullname")) {
26792
+ if (bt(!0), tn === 0 || ye != null && ye.isFullDiscount) {
26791
26793
  u({
26792
26794
  fullname: Y.values.fullname,
26793
26795
  email: Y.values.email,
@@ -26813,7 +26815,7 @@ const Ez = () => /* @__PURE__ */ U(
26813
26815
  {
26814
26816
  onSuccess() {
26815
26817
  var mt;
26816
- Je(!0), xe(!ee), (ce || I) && (G != null && G.current) && V((mt = G == null ? void 0 : G.current) == null ? void 0 : mt.offsetTop);
26818
+ Je(!0), we(!ee), (ce || I) && (G != null && G.current) && V((mt = G == null ? void 0 : G.current) == null ? void 0 : mt.offsetTop);
26817
26819
  },
26818
26820
  onError(mt) {
26819
26821
  var pr;
@@ -26828,8 +26830,8 @@ const Ez = () => /* @__PURE__ */ U(
26828
26830
  dn(!1);
26829
26831
  }, ao = async (Z) => {
26830
26832
  if (Z.preventDefault(), dn(!0), l) {
26831
- const be = await l(Y.values);
26832
- if (await Y.validateForm(), be != null && be.terminate) {
26833
+ const ve = await l(Y.values);
26834
+ if (await Y.validateForm(), ve != null && ve.terminate) {
26833
26835
  dn(!1), Y.setSubmitting(!1);
26834
26836
  return;
26835
26837
  }
@@ -26837,7 +26839,7 @@ const Ez = () => /* @__PURE__ */ U(
26837
26839
  } else
26838
26840
  Y.submitForm(), dn(!1);
26839
26841
  }, Yc = () => {
26840
- Je(!1), xe(!ee);
26842
+ Je(!1), we(!ee);
26841
26843
  }, {
26842
26844
  isOpen: ra,
26843
26845
  onClose: Ti,
@@ -26890,7 +26892,7 @@ const Ez = () => /* @__PURE__ */ U(
26890
26892
  }
26891
26893
  ),
26892
26894
  /* @__PURE__ */ U(qe, { gap: "12px", children: [
26893
- (oe("wallet") || !(we != null && we.isFullDiscount)) && /* @__PURE__ */ U(Dt, { children: [
26895
+ (oe("wallet") || !(ye != null && ye.isFullDiscount)) && /* @__PURE__ */ U(Dt, { children: [
26894
26896
  " ",
26895
26897
  k && ee && f !== Fn.NGN && f !== Fn.GHS && /* @__PURE__ */ S(
26896
26898
  Ns,
@@ -26911,9 +26913,9 @@ const Ez = () => /* @__PURE__ */ U(
26911
26913
  formik: Y,
26912
26914
  checkForErrors: async () => {
26913
26915
  if (l) {
26914
- const be = await l(Y.values);
26915
- if (be != null && be.terminate)
26916
- return be == null ? void 0 : be.terminate;
26916
+ const ve = await l(Y.values);
26917
+ if (ve != null && ve.terminate)
26918
+ return ve == null ? void 0 : ve.terminate;
26917
26919
  }
26918
26920
  const Z = await Y.validateForm();
26919
26921
  return Object.keys(Z).length > 0;
@@ -26945,9 +26947,9 @@ const Ez = () => /* @__PURE__ */ U(
26945
26947
  redirectUrl: ue,
26946
26948
  checkForErrors: async () => {
26947
26949
  if (l) {
26948
- const be = await l(Y.values);
26949
- if (be != null && be.terminate)
26950
- return be == null ? void 0 : be.terminate;
26950
+ const ve = await l(Y.values);
26951
+ if (ve != null && ve.terminate)
26952
+ return ve == null ? void 0 : ve.terminate;
26951
26953
  }
26952
26954
  const Z = await Y.validateForm();
26953
26955
  return Object.keys(Z).length > 0;
@@ -27013,7 +27015,7 @@ const Ez = () => /* @__PURE__ */ U(
27013
27015
  amount: tn,
27014
27016
  discount_code: pt,
27015
27017
  formik: Y,
27016
- isFree: tn === 0 || (we == null ? void 0 : we.isFullDiscount),
27018
+ isFree: tn === 0 || (ye == null ? void 0 : ye.isFullDiscount),
27017
27019
  showPayment: D,
27018
27020
  onCancel: Yc,
27019
27021
  btn_color: h == null ? void 0 : h.theme_color,
@@ -27021,11 +27023,11 @@ const Ez = () => /* @__PURE__ */ U(
27021
27023
  Request: R,
27022
27024
  paymentModel: fe,
27023
27025
  callbackUrl: b,
27024
- setIframeUrl: ({ url: Z, reference: be }) => {
27026
+ setIframeUrl: ({ url: Z, reference: ve }) => {
27025
27027
  zt({
27026
27028
  openModal: !0,
27027
27029
  url: Z,
27028
- reference: be
27030
+ reference: ve
27029
27031
  });
27030
27032
  },
27031
27033
  isEuroCurrencies: vs.indexOf(f) > -1
@@ -27062,7 +27064,7 @@ const Ez = () => /* @__PURE__ */ U(
27062
27064
  currency: f,
27063
27065
  amount: p,
27064
27066
  feesLoading: wi,
27065
- discount: we,
27067
+ discount: ye,
27066
27068
  setDiscount: un,
27067
27069
  hasDiscountCode: O,
27068
27070
  discountCode: pt,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "0.5.26",
4
+ "version": "0.5.27",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [