mainstack-payments 0.1.4 → 0.1.6

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.
@@ -776,7 +776,7 @@ function IS() {
776
776
  }
777
777
  }
778
778
  }
779
- var C = l, M = c, _ = s, j = i, I = t, Q = u, Z = r, ce = m, de = h, H = n, oe = o, ne = a, fe = d, xe = !1;
779
+ var C = l, M = c, _ = s, j = i, I = t, Q = u, Z = r, ce = m, de = h, H = n, ie = o, ne = a, fe = d, xe = !1;
780
780
  function Fe(N) {
781
781
  return xe || (xe = !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.")), $(N) || P(N) === l;
782
782
  }
@@ -807,7 +807,7 @@ function IS() {
807
807
  function re(N) {
808
808
  return P(N) === n;
809
809
  }
810
- function ie(N) {
810
+ function se(N) {
811
811
  return P(N) === o;
812
812
  }
813
813
  function K(N) {
@@ -816,7 +816,7 @@ function IS() {
816
816
  function be(N) {
817
817
  return P(N) === d;
818
818
  }
819
- Pe.AsyncMode = C, Pe.ConcurrentMode = M, Pe.ContextConsumer = _, Pe.ContextProvider = j, Pe.Element = I, Pe.ForwardRef = Q, Pe.Fragment = Z, Pe.Lazy = ce, Pe.Memo = de, Pe.Portal = H, Pe.Profiler = oe, Pe.StrictMode = ne, Pe.Suspense = fe, Pe.isAsyncMode = Fe, Pe.isConcurrentMode = $, Pe.isContextConsumer = F, Pe.isContextProvider = G, Pe.isElement = B, Pe.isForwardRef = U, Pe.isFragment = ee, Pe.isLazy = z, Pe.isMemo = J, Pe.isPortal = re, Pe.isProfiler = ie, Pe.isStrictMode = K, Pe.isSuspense = be, Pe.isValidElementType = E, Pe.typeOf = P;
819
+ Pe.AsyncMode = C, Pe.ConcurrentMode = M, Pe.ContextConsumer = _, Pe.ContextProvider = j, Pe.Element = I, Pe.ForwardRef = Q, Pe.Fragment = Z, Pe.Lazy = ce, Pe.Memo = de, Pe.Portal = H, Pe.Profiler = ie, Pe.StrictMode = ne, Pe.Suspense = fe, Pe.isAsyncMode = Fe, Pe.isConcurrentMode = $, Pe.isContextConsumer = F, Pe.isContextProvider = G, Pe.isElement = B, Pe.isForwardRef = U, Pe.isFragment = ee, Pe.isLazy = z, Pe.isMemo = J, Pe.isPortal = re, Pe.isProfiler = se, Pe.isStrictMode = K, Pe.isSuspense = be, Pe.isValidElementType = E, Pe.typeOf = P;
820
820
  }()), Pe;
821
821
  }
822
822
  process.env.NODE_ENV === "production" ? Cc.exports = OS() : Cc.exports = IS();
@@ -1973,9 +1973,9 @@ function Ya(...e) {
1973
1973
  var ps = { exports: {} };
1974
1974
  ps.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]", h = "[object Function]", m = "[object GeneratorFunction]", p = "[object Map]", v = "[object Number]", y = "[object Null]", w = "[object Object]", E = "[object Proxy]", P = "[object RegExp]", C = "[object Set]", M = "[object String]", _ = "[object Undefined]", j = "[object WeakMap]", I = "[object ArrayBuffer]", Q = "[object DataView]", Z = "[object Float32Array]", ce = "[object Float64Array]", de = "[object Int8Array]", H = "[object Int16Array]", oe = "[object Int32Array]", ne = "[object Uint8Array]", fe = "[object Uint8ClampedArray]", xe = "[object Uint16Array]", Fe = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, F = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, B = {};
1977
- B[Z] = B[ce] = B[de] = B[H] = B[oe] = B[ne] = B[fe] = B[xe] = B[Fe] = !0, B[s] = B[l] = B[I] = B[u] = B[Q] = B[d] = B[f] = B[h] = B[p] = B[v] = B[w] = B[P] = B[C] = B[M] = B[j] = !1;
1978
- var U = typeof Ei == "object" && Ei && Ei.Object === Object && Ei, ee = typeof self == "object" && self && self.Object === Object && self, z = U || ee || Function("return this")(), J = t && !t.nodeType && t, re = J && !0 && e && !e.nodeType && e, ie = re && re.exports === J, K = ie && U.process, be = function() {
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]", h = "[object Function]", m = "[object GeneratorFunction]", p = "[object Map]", v = "[object Number]", y = "[object Null]", w = "[object Object]", E = "[object Proxy]", P = "[object RegExp]", C = "[object Set]", M = "[object String]", _ = "[object Undefined]", j = "[object WeakMap]", I = "[object ArrayBuffer]", Q = "[object DataView]", Z = "[object Float32Array]", ce = "[object Float64Array]", de = "[object Int8Array]", H = "[object Int16Array]", ie = "[object Int32Array]", ne = "[object Uint8Array]", fe = "[object Uint8ClampedArray]", xe = "[object Uint16Array]", Fe = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, F = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, B = {};
1977
+ B[Z] = B[ce] = B[de] = B[H] = B[ie] = B[ne] = B[fe] = B[xe] = B[Fe] = !0, B[s] = B[l] = B[I] = B[u] = B[Q] = B[d] = B[f] = B[h] = B[p] = B[v] = B[w] = B[P] = B[C] = B[M] = B[j] = !1;
1978
+ var U = typeof Ei == "object" && Ei && Ei.Object === Object && Ei, ee = typeof self == "object" && self && self.Object === Object && self, z = U || ee || Function("return this")(), J = t && !t.nodeType && t, re = J && !0 && e && !e.nodeType && e, se = re && re.exports === J, K = se && U.process, be = function() {
1979
1979
  try {
1980
1980
  var g = re && re.require && re.require("util").types;
1981
1981
  return g || K && K.binding && K.binding("util");
@@ -2018,7 +2018,7 @@ ps.exports;
2018
2018
  return g ? "Symbol(src)_1." + g : "";
2019
2019
  }(), W = dt.toString, ae = T.call(Object), he = RegExp(
2020
2020
  "^" + T.call(O).replace($, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2021
- ), D = ie ? z.Buffer : void 0, ot = z.Symbol, qt = z.Uint8Array, Yt = D ? D.allocUnsafe : void 0, ir = ut(Object.getPrototypeOf, Object), It = Object.create, Bn = dt.propertyIsEnumerable, xt = Pt.splice, xn = ot ? ot.toStringTag : void 0, ft = function() {
2021
+ ), D = se ? z.Buffer : void 0, ot = z.Symbol, qt = z.Uint8Array, Yt = D ? D.allocUnsafe : void 0, ir = ut(Object.getPrototypeOf, Object), It = Object.create, Bn = dt.propertyIsEnumerable, xt = Pt.splice, xn = ot ? ot.toStringTag : void 0, ft = function() {
2022
2022
  try {
2023
2023
  var g = hl(Object, "defineProperty");
2024
2024
  return g({}, "", {}), g;
@@ -2209,17 +2209,17 @@ ps.exports;
2209
2209
  L == "constructor" && (S || !O.call(g, L)) || k.push(L);
2210
2210
  return k;
2211
2211
  }
2212
- function se(g, S, k, L, ye) {
2212
+ function oe(g, S, k, L, ye) {
2213
2213
  g !== S && mi(S, function(Me, ze) {
2214
2214
  if (ye || (ye = new Cn()), cr(Me))
2215
- Le(g, S, ze, k, se, L, ye);
2215
+ Ne(g, S, ze, k, oe, L, ye);
2216
2216
  else {
2217
2217
  var me = L ? L(ml(g, ze), Me, ze + "", g, S, ye) : void 0;
2218
2218
  me === void 0 && (me = Me), Ur(g, ze, me);
2219
2219
  }
2220
2220
  }, Xd);
2221
2221
  }
2222
- function Le(g, S, k, L, ye, Me, ze) {
2222
+ function Ne(g, S, k, L, ye, Me, ze) {
2223
2223
  var me = ml(g, k), Ve = ml(S, k), Nt = ze.get(Ve);
2224
2224
  if (Nt) {
2225
2225
  Ur(g, k, Nt);
@@ -2432,7 +2432,7 @@ ps.exports;
2432
2432
  return yl(g) ? pi(g, !0) : bi(g);
2433
2433
  }
2434
2434
  var N0 = x0(function(g, S, k, L) {
2435
- se(g, S, k, L);
2435
+ oe(g, S, k, L);
2436
2436
  });
2437
2437
  function B0(g) {
2438
2438
  return function() {
@@ -3110,7 +3110,7 @@ var t1 = {
3110
3110
  ringOffset: x.prop("--chakra-ring-offset-width"),
3111
3111
  ringOffsetColor: x.colors("--chakra-ring-offset-color"),
3112
3112
  ringInset: x.prop("--chakra-ring-inset")
3113
- }, Ne = {
3113
+ }, Be = {
3114
3114
  margin: x.spaceT("margin"),
3115
3115
  marginTop: x.spaceT("marginTop"),
3116
3116
  marginBlockStart: x.spaceT("marginBlockStart"),
@@ -3138,29 +3138,29 @@ var t1 = {
3138
3138
  paddingY: x.space(["paddingTop", "paddingBottom"]),
3139
3139
  paddingBlock: x.space("paddingBlock")
3140
3140
  };
3141
- Object.assign(Ne, {
3142
- m: Ne.margin,
3143
- mt: Ne.marginTop,
3144
- mr: Ne.marginRight,
3145
- me: Ne.marginInlineEnd,
3146
- marginEnd: Ne.marginInlineEnd,
3147
- mb: Ne.marginBottom,
3148
- ml: Ne.marginLeft,
3149
- ms: Ne.marginInlineStart,
3150
- marginStart: Ne.marginInlineStart,
3151
- mx: Ne.marginX,
3152
- my: Ne.marginY,
3153
- p: Ne.padding,
3154
- pt: Ne.paddingTop,
3155
- py: Ne.paddingY,
3156
- px: Ne.paddingX,
3157
- pb: Ne.paddingBottom,
3158
- pl: Ne.paddingLeft,
3159
- ps: Ne.paddingInlineStart,
3160
- paddingStart: Ne.paddingInlineStart,
3161
- pr: Ne.paddingRight,
3162
- pe: Ne.paddingInlineEnd,
3163
- paddingEnd: Ne.paddingInlineEnd
3141
+ Object.assign(Be, {
3142
+ m: Be.margin,
3143
+ mt: Be.marginTop,
3144
+ mr: Be.marginRight,
3145
+ me: Be.marginInlineEnd,
3146
+ marginEnd: Be.marginInlineEnd,
3147
+ mb: Be.marginBottom,
3148
+ ml: Be.marginLeft,
3149
+ ms: Be.marginInlineStart,
3150
+ marginStart: Be.marginInlineStart,
3151
+ mx: Be.marginX,
3152
+ my: Be.marginY,
3153
+ p: Be.padding,
3154
+ pt: Be.paddingTop,
3155
+ py: Be.paddingY,
3156
+ px: Be.paddingX,
3157
+ pb: Be.paddingBottom,
3158
+ pl: Be.paddingLeft,
3159
+ ps: Be.paddingInlineStart,
3160
+ paddingStart: Be.paddingInlineStart,
3161
+ pr: Be.paddingRight,
3162
+ pe: Be.paddingInlineEnd,
3163
+ paddingEnd: Be.paddingInlineEnd
3164
3164
  });
3165
3165
  var n1 = {
3166
3166
  textDecorationColor: x.colors("textDecorationColor"),
@@ -3903,7 +3903,7 @@ var Mu = pn(
3903
3903
  e1,
3904
3904
  ro,
3905
3905
  Pc,
3906
- Ne,
3906
+ Be,
3907
3907
  i1,
3908
3908
  o1,
3909
3909
  n1,
@@ -3911,7 +3911,7 @@ var Mu = pn(
3911
3911
  qx,
3912
3912
  a1
3913
3913
  );
3914
- Object.assign({}, Ne, Vt, hs, vg, ro);
3914
+ Object.assign({}, Be, Vt, hs, vg, ro);
3915
3915
  var $1 = [...Object.keys(Mu), ...xg], F1 = { ...Mu, ...zs }, M1 = (e) => e in F1, R1 = (e) => (t) => {
3916
3916
  if (!t.__breakpoints)
3917
3917
  return e;
@@ -9572,7 +9572,7 @@ function Cs({ autoplay: e = !0, delay: t = 0, driver: n = O2, keyframes: r, type
9572
9572
  let ce = 1 / 0, de = 1 / 0;
9573
9573
  Z !== null && (ce = Z + i, de = ce * (o + 1) - i);
9574
9574
  let H = 0;
9575
- const oe = (F) => {
9575
+ const ie = (F) => {
9576
9576
  if (I === null)
9577
9577
  return;
9578
9578
  h > 0 && (I = Math.min(I, F)), h < 0 && (I = Math.min(F - de / h, I)), j !== null ? H = j : H = Math.round(F - I) * h;
@@ -9580,9 +9580,9 @@ function Cs({ autoplay: e = !0, delay: t = 0, driver: n = O2, keyframes: r, type
9580
9580
  H = Math.max(G, 0), _ === "finished" && j === null && (H = de);
9581
9581
  let U = H, ee = C;
9582
9582
  if (o) {
9583
- const ie = Math.min(H, de) / ce;
9584
- let K = Math.floor(ie), be = ie % 1;
9585
- !be && ie >= 1 && (be = 1), be === 1 && K--, K = Math.min(K, o + 1), !!(K % 2) && (s === "reverse" ? (be = 1 - be, i && (be -= i / ce)) : s === "mirror" && (ee = M)), U = Qn(0, 1, be) * ce;
9583
+ const se = Math.min(H, de) / ce;
9584
+ let K = Math.floor(se), be = se % 1;
9585
+ !be && se >= 1 && (be = 1), be === 1 && K--, K = Math.min(K, o + 1), !!(K % 2) && (s === "reverse" ? (be = 1 - be, i && (be -= i / ce)) : s === "mirror" && (ee = M)), U = Qn(0, 1, be) * ce;
9586
9586
  }
9587
9587
  const z = B ? { done: !1, value: r[0] } : ee.next(U);
9588
9588
  P && (z.value = P(z.value));
@@ -9599,7 +9599,7 @@ function Cs({ autoplay: e = !0, delay: t = 0, driver: n = O2, keyframes: r, type
9599
9599
  }, Fe = () => {
9600
9600
  if (m)
9601
9601
  return;
9602
- w || (w = n(oe));
9602
+ w || (w = n(ie));
9603
9603
  const F = w.now();
9604
9604
  l && l(), j !== null ? I = F - j : (!I || _ === "finished") && (I = F), _ === "finished" && y(), Q = I, j = null, _ = "running", w.start();
9605
9605
  };
@@ -9635,12 +9635,12 @@ function Cs({ autoplay: e = !0, delay: t = 0, driver: n = O2, keyframes: r, type
9635
9635
  m = !0, _ !== "idle" && (_ = "idle", c && c(), fe());
9636
9636
  },
9637
9637
  cancel: () => {
9638
- Q !== null && oe(Q), fe();
9638
+ Q !== null && ie(Q), fe();
9639
9639
  },
9640
9640
  complete: () => {
9641
9641
  _ = "finished";
9642
9642
  },
9643
- sample: (F) => (I = 0, oe(F))
9643
+ sample: (F) => (I = 0, ie(F))
9644
9644
  };
9645
9645
  return $;
9646
9646
  }
@@ -10295,7 +10295,7 @@ function S$(e) {
10295
10295
  const { prevResolvedValues: de = {} } = E, H = {
10296
10296
  ...de,
10297
10297
  ...ce
10298
- }, oe = (ne) => {
10298
+ }, ie = (ne) => {
10299
10299
  I = !0, h.has(ne) && (Q = !0, h.delete(ne)), E.needsAnimating[ne] = !0;
10300
10300
  };
10301
10301
  for (const ne in H) {
@@ -10303,7 +10303,7 @@ function S$(e) {
10303
10303
  if (m.hasOwnProperty(ne))
10304
10304
  continue;
10305
10305
  let Fe = !1;
10306
- xs(fe) && xs(xe) ? Fe = !hv(fe, xe) : Fe = fe !== xe, Fe ? fe !== void 0 ? oe(ne) : h.add(ne) : fe !== void 0 && h.has(ne) ? oe(ne) : E.protectedKeys[ne] = !0;
10306
+ xs(fe) && xs(xe) ? Fe = !hv(fe, xe) : Fe = fe !== xe, Fe ? fe !== void 0 ? ie(ne) : h.add(ne) : fe !== void 0 && h.has(ne) ? ie(ne) : E.protectedKeys[ne] = !0;
10307
10307
  }
10308
10308
  E.prevProp = P, E.prevResolvedValues = ce, E.isActive && (m = { ...m, ...ce }), r && e.blockInitialAnimation && (I = !1), I && (!_ || Q) && f.push(...Z.map((ne) => ({
10309
10309
  animation: ne,
@@ -13741,7 +13741,7 @@ function KM() {
13741
13741
  function v($) {
13742
13742
  if (process.env.NODE_ENV !== "production")
13743
13743
  var F = {}, G = 0;
13744
- function B(ee, z, J, re, ie, K, be) {
13744
+ function B(ee, z, J, re, se, K, be) {
13745
13745
  if (re = re || f, K = K || J, be !== n) {
13746
13746
  if (l) {
13747
13747
  var N = new Error(
@@ -13756,15 +13756,15 @@ function KM() {
13756
13756
  ), F[Je] = !0, G++);
13757
13757
  }
13758
13758
  }
13759
- return z[J] == null ? ee ? z[J] === null ? new p("The " + ie + " `" + K + "` is marked as required " + ("in `" + re + "`, but its value is `null`.")) : new p("The " + ie + " `" + K + "` is marked as required in " + ("`" + re + "`, but its value is `undefined`.")) : null : $(z, J, re, ie, K);
13759
+ return z[J] == null ? ee ? z[J] === null ? new p("The " + se + " `" + K + "` is marked as required " + ("in `" + re + "`, but its value is `null`.")) : new p("The " + se + " `" + K + "` is marked as required in " + ("`" + re + "`, but its value is `undefined`.")) : null : $(z, J, re, se, K);
13760
13760
  }
13761
13761
  var U = B.bind(null, !1);
13762
13762
  return U.isRequired = B.bind(null, !0), U;
13763
13763
  }
13764
13764
  function y($) {
13765
13765
  function F(G, B, U, ee, z, J) {
13766
- var re = G[B], ie = ne(re);
13767
- if (ie !== $) {
13766
+ var re = G[B], se = ne(re);
13767
+ if (se !== $) {
13768
13768
  var K = fe(re);
13769
13769
  return new p(
13770
13770
  "Invalid " + ee + " `" + z + "` of type " + ("`" + K + "` supplied to `" + U + "`, expected ") + ("`" + $ + "`."),
@@ -13787,8 +13787,8 @@ function KM() {
13787
13787
  var re = ne(J);
13788
13788
  return new p("Invalid " + ee + " `" + z + "` of type " + ("`" + re + "` supplied to `" + U + "`, expected an array."));
13789
13789
  }
13790
- for (var ie = 0; ie < J.length; ie++) {
13791
- var K = $(J, ie, U, ee, z + "[" + ie + "]", n);
13790
+ for (var se = 0; se < J.length; se++) {
13791
+ var K = $(J, se, U, ee, z + "[" + se + "]", n);
13792
13792
  if (K instanceof Error)
13793
13793
  return K;
13794
13794
  }
@@ -13837,11 +13837,11 @@ function KM() {
13837
13837
  for (var J = G[B], re = 0; re < $.length; re++)
13838
13838
  if (m(J, $[re]))
13839
13839
  return null;
13840
- var ie = JSON.stringify($, function(be, N) {
13840
+ var se = JSON.stringify($, function(be, N) {
13841
13841
  var Je = fe(N);
13842
13842
  return Je === "symbol" ? String(N) : N;
13843
13843
  });
13844
- return new p("Invalid " + ee + " `" + z + "` of value `" + String(J) + "` " + ("supplied to `" + U + "`, expected one of " + ie + "."));
13844
+ return new p("Invalid " + ee + " `" + z + "` of value `" + String(J) + "` " + ("supplied to `" + U + "`, expected one of " + se + "."));
13845
13845
  }
13846
13846
  return v(F);
13847
13847
  }
@@ -13852,9 +13852,9 @@ function KM() {
13852
13852
  var J = G[B], re = ne(J);
13853
13853
  if (re !== "object")
13854
13854
  return new p("Invalid " + ee + " `" + z + "` of type " + ("`" + re + "` supplied to `" + U + "`, expected an object."));
13855
- for (var ie in J)
13856
- if (r(J, ie)) {
13857
- var K = $(J, ie, U, ee, z + "." + ie, n);
13855
+ for (var se in J)
13856
+ if (r(J, se)) {
13857
+ var K = $(J, se, U, ee, z + "." + se, n);
13858
13858
  if (K instanceof Error)
13859
13859
  return K;
13860
13860
  }
@@ -13873,13 +13873,13 @@ function KM() {
13873
13873
  ), i;
13874
13874
  }
13875
13875
  function B(U, ee, z, J, re) {
13876
- for (var ie = [], K = 0; K < $.length; K++) {
13876
+ for (var se = [], K = 0; K < $.length; K++) {
13877
13877
  var be = $[K], N = be(U, ee, z, J, re, n);
13878
13878
  if (N == null)
13879
13879
  return null;
13880
- N.data && r(N.data, "expectedType") && ie.push(N.data.expectedType);
13880
+ N.data && r(N.data, "expectedType") && se.push(N.data.expectedType);
13881
13881
  }
13882
- var Je = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : "";
13882
+ var Je = se.length > 0 ? ", expected one of type [" + se.join(", ") + "]" : "";
13883
13883
  return new p("Invalid " + J + " `" + re + "` supplied to " + ("`" + z + "`" + Je + "."));
13884
13884
  }
13885
13885
  return v(B);
@@ -13900,11 +13900,11 @@ function KM() {
13900
13900
  var J = G[B], re = ne(J);
13901
13901
  if (re !== "object")
13902
13902
  return new p("Invalid " + ee + " `" + z + "` of type `" + re + "` " + ("supplied to `" + U + "`, expected `object`."));
13903
- for (var ie in $) {
13904
- var K = $[ie];
13903
+ for (var se in $) {
13904
+ var K = $[se];
13905
13905
  if (typeof K != "function")
13906
- return Z(U, ee, z, ie, fe(K));
13907
- var be = K(J, ie, U, ee, z + "." + ie, n);
13906
+ return Z(U, ee, z, se, fe(K));
13907
+ var be = K(J, se, U, ee, z + "." + se, n);
13908
13908
  if (be)
13909
13909
  return be;
13910
13910
  }
@@ -13917,8 +13917,8 @@ function KM() {
13917
13917
  var J = G[B], re = ne(J);
13918
13918
  if (re !== "object")
13919
13919
  return new p("Invalid " + ee + " `" + z + "` of type `" + re + "` " + ("supplied to `" + U + "`, expected `object`."));
13920
- var ie = t({}, G[B], $);
13921
- for (var K in ie) {
13920
+ var se = t({}, G[B], $);
13921
+ for (var K in se) {
13922
13922
  var be = $[K];
13923
13923
  if (r($, K) && typeof be != "function")
13924
13924
  return Z(U, ee, z, K, fe(be));
@@ -13968,12 +13968,12 @@ Valid keys: ` + JSON.stringify(Object.keys($), null, " ")
13968
13968
  return !1;
13969
13969
  }
13970
13970
  }
13971
- function oe($, F) {
13971
+ function ie($, F) {
13972
13972
  return $ === "symbol" ? !0 : F ? F["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && F instanceof Symbol : !1;
13973
13973
  }
13974
13974
  function ne($) {
13975
13975
  var F = typeof $;
13976
- return Array.isArray($) ? "array" : $ instanceof RegExp ? "object" : oe(F, $) ? "symbol" : F;
13976
+ return Array.isArray($) ? "array" : $ instanceof RegExp ? "object" : ie(F, $) ? "symbol" : F;
13977
13977
  }
13978
13978
  function fe($) {
13979
13979
  if (typeof $ > "u" || $ === null)
@@ -14062,7 +14062,7 @@ if (process.env.NODE_ENV !== "production") {
14062
14062
  } else
14063
14063
  Yc.exports = qM()();
14064
14064
  var Re = Yc.exports;
14065
- const Be = /* @__PURE__ */ Io(Re);
14065
+ const je = /* @__PURE__ */ Io(Re);
14066
14066
  var Zc = "data-focus-lock", Ay = "data-focus-lock-disabled", XM = "data-no-focus-lock", JM = "data-autofocus-inside", QM = "data-no-autofocus";
14067
14067
  function ic(e, t) {
14068
14068
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
@@ -14117,7 +14117,7 @@ var sc = {
14117
14117
  top: "1px",
14118
14118
  left: "1px"
14119
14119
  };
14120
- process.env.NODE_ENV !== "production" && Be.node;
14120
+ process.env.NODE_ENV !== "production" && je.node;
14121
14121
  var fn = function() {
14122
14122
  return fn = Object.assign || function(t) {
14123
14123
  for (var n, r = 1, a = arguments.length; r < a; r++) {
@@ -14232,7 +14232,7 @@ var My = pd({}, function(e) {
14232
14232
  async: !0,
14233
14233
  ssr: typeof document < "u"
14234
14234
  }), iR = /* @__PURE__ */ Kt(void 0), sR = [], Oy = /* @__PURE__ */ R.forwardRef(function(t, n) {
14235
- 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, h = t.disabled, m = h === void 0 ? !1 : h, p = t.noFocusGuards, v = p === void 0 ? !1 : p, y = t.persistentFocus, w = y === void 0 ? !1 : y, E = t.crossFrame, P = E === void 0 ? !0 : E, C = t.autoFocus, M = C === void 0 ? !0 : C, _ = t.allowTextSelection, j = t.group, I = t.className, Q = t.whiteList, Z = t.hasPositiveIndices, ce = t.shards, de = ce === void 0 ? sR : ce, H = t.as, oe = H === void 0 ? "div" : H, ne = t.lockProps, fe = ne === void 0 ? {} : ne, xe = t.sideCar, Fe = t.returnFocus, $ = Fe === void 0 ? !1 : Fe, F = t.focusOptions, G = t.onActivation, B = t.onDeactivation, U = R.useState({}), ee = U[0], z = R.useCallback(function(ut) {
14235
+ 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, h = t.disabled, m = h === void 0 ? !1 : h, p = t.noFocusGuards, v = p === void 0 ? !1 : p, y = t.persistentFocus, w = y === void 0 ? !1 : y, E = t.crossFrame, P = E === void 0 ? !0 : E, C = t.autoFocus, M = C === void 0 ? !0 : C, _ = t.allowTextSelection, j = t.group, I = t.className, Q = t.whiteList, Z = t.hasPositiveIndices, ce = t.shards, de = ce === void 0 ? sR : ce, H = t.as, ie = H === void 0 ? "div" : H, ne = t.lockProps, fe = ne === void 0 ? {} : ne, xe = t.sideCar, Fe = t.returnFocus, $ = Fe === void 0 ? !1 : Fe, F = t.focusOptions, G = t.onActivation, B = t.onDeactivation, U = R.useState({}), ee = U[0], z = R.useCallback(function(ut) {
14236
14236
  var Pt = ut.captureFocusRestore;
14237
14237
  if (!c.current) {
14238
14238
  var gt, dt = (gt = document) == null ? void 0 : gt.activeElement;
@@ -14252,13 +14252,13 @@ var My = pd({}, function(e) {
14252
14252
  }) : gt.focus(an);
14253
14253
  }
14254
14254
  }
14255
- }, [$]), ie = R.useCallback(function(ut) {
14255
+ }, [$]), se = R.useCallback(function(ut) {
14256
14256
  l.current && My.useMedium(ut);
14257
14257
  }, []), K = Ry.useMedium, be = R.useCallback(function(ut) {
14258
14258
  s.current !== ut && (s.current = ut, i(ut));
14259
14259
  }, []);
14260
14260
  process.env.NODE_ENV !== "production" && (typeof _ < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), R.useEffect(function() {
14261
- !s.current && typeof oe != "string" && console.error("FocusLock: could not obtain ref to internal node");
14261
+ !s.current && typeof ie != "string" && console.error("FocusLock: could not obtain ref to internal node");
14262
14262
  }, []));
14263
14263
  var N = $r((r = {}, r[Ay] = m && "disabled", r[Zc] = j, r), fe), Je = v !== !0, St = Je && v !== "tail", at = Ty([n, be]), pe = R.useMemo(function() {
14264
14264
  return {
@@ -14295,12 +14295,12 @@ var My = pd({}, function(e) {
14295
14295
  onDeactivation: J,
14296
14296
  returnFocus: re,
14297
14297
  focusOptions: F
14298
- }), /* @__PURE__ */ R.createElement(oe, $r({
14298
+ }), /* @__PURE__ */ R.createElement(ie, $r({
14299
14299
  ref: at
14300
14300
  }, N, {
14301
14301
  className: I,
14302
14302
  onBlur: K,
14303
- onFocus: ie
14303
+ onFocus: se
14304
14304
  }), /* @__PURE__ */ R.createElement(iR.Provider, {
14305
14305
  value: pe
14306
14306
  }, f)), St && /* @__PURE__ */ R.createElement("div", {
@@ -14949,7 +14949,7 @@ var rO = function(t) {
14949
14949
  }, sO = function() {
14950
14950
  return null;
14951
14951
  };
14952
- process.env.NODE_ENV !== "production" && Be.node.isRequired;
14952
+ process.env.NODE_ENV !== "production" && je.node.isRequired;
14953
14953
  var Jy = function() {
14954
14954
  $o = "just", wd(function() {
14955
14955
  $o = "meanwhile";
@@ -16353,8 +16353,8 @@ var Eb = function(t, n) {
16353
16353
  }, a);
16354
16354
  };
16355
16355
  au.propTypes = {
16356
- stripe: Be.any,
16357
- options: Be.object
16356
+ stripe: je.any,
16357
+ options: je.object
16358
16358
  };
16359
16359
  var BI = function(t) {
16360
16360
  var n = Se.useContext(Js);
@@ -16363,7 +16363,7 @@ var BI = function(t) {
16363
16363
  var t = BI("calls useElements()"), n = t.elements;
16364
16364
  return n;
16365
16365
  };
16366
- Be.func.isRequired;
16366
+ je.func.isRequired;
16367
16367
  var Ab = /* @__PURE__ */ Se.createContext(null);
16368
16368
  Ab.displayName = "CustomCheckoutSdkContext";
16369
16369
  var jI = function(t, n) {
@@ -16372,9 +16372,9 @@ var jI = function(t, n) {
16372
16372
  return t;
16373
16373
  }, LI = /* @__PURE__ */ Se.createContext(null);
16374
16374
  LI.displayName = "CustomCheckoutContext";
16375
- Be.any, Be.shape({
16376
- clientSecret: Be.string.isRequired,
16377
- elementsOptions: Be.object
16375
+ je.any, je.shape({
16376
+ clientSecret: je.string.isRequired,
16377
+ elementsOptions: je.object
16378
16378
  }).isRequired;
16379
16379
  var ou = function(t) {
16380
16380
  var n = Se.useContext(Ab), r = Se.useContext(Js);
@@ -16385,12 +16385,12 @@ var ou = function(t) {
16385
16385
  return t.charAt(0).toUpperCase() + t.slice(1);
16386
16386
  }, nt = function(t, n) {
16387
16387
  var r = "".concat(zI(t), "Element"), a = function(l) {
16388
- var c = l.id, u = l.className, d = l.options, f = d === void 0 ? {} : d, h = l.onBlur, m = l.onFocus, p = l.onReady, v = l.onChange, y = l.onEscape, w = l.onClick, E = l.onLoadError, P = l.onLoaderStart, C = l.onNetworksChange, M = l.onConfirm, _ = l.onCancel, j = l.onShippingAddressChange, I = l.onShippingRateChange, Q = ou("mounts <".concat(r, ">")), Z = "elements" in Q ? Q.elements : null, ce = "customCheckoutSdk" in Q ? Q.customCheckoutSdk : null, de = Se.useState(null), H = Sb(de, 2), oe = H[0], ne = H[1], fe = Se.useRef(null), xe = Se.useRef(null);
16389
- $t(oe, "blur", h), $t(oe, "focus", m), $t(oe, "escape", y), $t(oe, "click", w), $t(oe, "loaderror", E), $t(oe, "loaderstart", P), $t(oe, "networkschange", C), $t(oe, "confirm", M), $t(oe, "cancel", _), $t(oe, "shippingaddresschange", j), $t(oe, "shippingratechange", I), $t(oe, "change", v);
16388
+ var c = l.id, u = l.className, d = l.options, f = d === void 0 ? {} : d, h = l.onBlur, m = l.onFocus, p = l.onReady, v = l.onChange, y = l.onEscape, w = l.onClick, E = l.onLoadError, P = l.onLoaderStart, C = l.onNetworksChange, M = l.onConfirm, _ = l.onCancel, j = l.onShippingAddressChange, I = l.onShippingRateChange, Q = ou("mounts <".concat(r, ">")), Z = "elements" in Q ? Q.elements : null, ce = "customCheckoutSdk" in Q ? Q.customCheckoutSdk : null, de = Se.useState(null), H = Sb(de, 2), ie = H[0], ne = H[1], fe = Se.useRef(null), xe = Se.useRef(null);
16389
+ $t(ie, "blur", h), $t(ie, "focus", m), $t(ie, "escape", y), $t(ie, "click", w), $t(ie, "loaderror", E), $t(ie, "loaderstart", P), $t(ie, "networkschange", C), $t(ie, "confirm", M), $t(ie, "cancel", _), $t(ie, "shippingaddresschange", j), $t(ie, "shippingratechange", I), $t(ie, "change", v);
16390
16390
  var Fe;
16391
16391
  p && (t === "expressCheckout" ? Fe = p : Fe = function() {
16392
- p(oe);
16393
- }), $t(oe, "ready", Fe), Se.useLayoutEffect(function() {
16392
+ p(ie);
16393
+ }), $t(ie, "ready", Fe), Se.useLayoutEffect(function() {
16394
16394
  if (fe.current === null && xe.current !== null && (Z || ce)) {
16395
16395
  var F = null;
16396
16396
  ce ? F = ce.createElement(t, f) : Z && (F = Z.create(t, f)), fe.current = F, ne(F), F && F.mount(xe.current);
@@ -16424,22 +16424,22 @@ var ou = function(t) {
16424
16424
  });
16425
16425
  }, i = n ? o : a;
16426
16426
  return i.propTypes = {
16427
- id: Be.string,
16428
- className: Be.string,
16429
- onChange: Be.func,
16430
- onBlur: Be.func,
16431
- onFocus: Be.func,
16432
- onReady: Be.func,
16433
- onEscape: Be.func,
16434
- onClick: Be.func,
16435
- onLoadError: Be.func,
16436
- onLoaderStart: Be.func,
16437
- onNetworksChange: Be.func,
16438
- onConfirm: Be.func,
16439
- onCancel: Be.func,
16440
- onShippingAddressChange: Be.func,
16441
- onShippingRateChange: Be.func,
16442
- options: Be.object
16427
+ id: je.string,
16428
+ className: je.string,
16429
+ onChange: je.func,
16430
+ onBlur: je.func,
16431
+ onFocus: je.func,
16432
+ onReady: je.func,
16433
+ onEscape: je.func,
16434
+ onClick: je.func,
16435
+ onLoadError: je.func,
16436
+ onLoaderStart: je.func,
16437
+ onNetworksChange: je.func,
16438
+ onConfirm: je.func,
16439
+ onCancel: je.func,
16440
+ onShippingAddressChange: je.func,
16441
+ onShippingRateChange: je.func,
16442
+ options: je.object
16443
16443
  }, i.displayName = r, i.__elementType = t, i;
16444
16444
  }, rt = typeof window > "u", VI = /* @__PURE__ */ Se.createContext(null);
16445
16445
  VI.displayName = "EmbeddedCheckoutProviderContext";
@@ -17010,11 +17010,11 @@ var UN = 9007199254740991;
17010
17010
  function Ub(e) {
17011
17011
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= UN;
17012
17012
  }
17013
- var GN = "[object Arguments]", WN = "[object Array]", HN = "[object Boolean]", KN = "[object Date]", qN = "[object Error]", YN = "[object Function]", ZN = "[object Map]", XN = "[object Number]", JN = "[object Object]", QN = "[object RegExp]", eB = "[object Set]", tB = "[object String]", nB = "[object WeakMap]", rB = "[object ArrayBuffer]", aB = "[object DataView]", oB = "[object Float32Array]", iB = "[object Float64Array]", sB = "[object Int8Array]", lB = "[object Int16Array]", cB = "[object Int32Array]", uB = "[object Uint8Array]", dB = "[object Uint8ClampedArray]", fB = "[object Uint16Array]", pB = "[object Uint32Array]", je = {};
17014
- je[oB] = je[iB] = je[sB] = je[lB] = je[cB] = je[uB] = je[dB] = je[fB] = je[pB] = !0;
17015
- je[GN] = je[WN] = je[rB] = je[HN] = je[aB] = je[KN] = je[qN] = je[YN] = je[ZN] = je[XN] = je[JN] = je[QN] = je[eB] = je[tB] = je[nB] = !1;
17013
+ var GN = "[object Arguments]", WN = "[object Array]", HN = "[object Boolean]", KN = "[object Date]", qN = "[object Error]", YN = "[object Function]", ZN = "[object Map]", XN = "[object Number]", JN = "[object Object]", QN = "[object RegExp]", eB = "[object Set]", tB = "[object String]", nB = "[object WeakMap]", rB = "[object ArrayBuffer]", aB = "[object DataView]", oB = "[object Float32Array]", iB = "[object Float64Array]", sB = "[object Int8Array]", lB = "[object Int16Array]", cB = "[object Int32Array]", uB = "[object Uint8Array]", dB = "[object Uint8ClampedArray]", fB = "[object Uint16Array]", pB = "[object Uint32Array]", Le = {};
17014
+ Le[oB] = Le[iB] = Le[sB] = Le[lB] = Le[cB] = Le[uB] = Le[dB] = Le[fB] = Le[pB] = !0;
17015
+ Le[GN] = Le[WN] = Le[rB] = Le[HN] = Le[aB] = Le[KN] = Le[qN] = Le[YN] = Le[ZN] = Le[XN] = Le[JN] = Le[QN] = Le[eB] = Le[tB] = Le[nB] = !1;
17016
17016
  function hB(e) {
17017
- return Br(e) && Ub(e.length) && !!je[Nr(e)];
17017
+ return Br(e) && Ub(e.length) && !!Le[Nr(e)];
17018
17018
  }
17019
17019
  function Md(e) {
17020
17020
  return function(t) {
@@ -17694,7 +17694,7 @@ function Nj(e) {
17694
17694
  payload: f.initialStatus
17695
17695
  }));
17696
17696
  }, [c, f.initialStatus, f.initialTouched]);
17697
- var oe = Lt(function(T) {
17697
+ var ie = Lt(function(T) {
17698
17698
  if (w.current[T] && Xt(w.current[T].validate)) {
17699
17699
  var O = Ft(M.values, T), V = w.current[T].validate(O);
17700
17700
  return yc(V) ? (_({
@@ -17836,7 +17836,7 @@ function Nj(e) {
17836
17836
  return T;
17837
17837
  }
17838
17838
  });
17839
- }, []), ie = ue(function(T) {
17839
+ }, []), se = ue(function(T) {
17840
17840
  _({
17841
17841
  type: "SET_STATUS",
17842
17842
  payload: T
@@ -17885,12 +17885,12 @@ function Nj(e) {
17885
17885
  }), Je = {
17886
17886
  resetForm: H,
17887
17887
  validateForm: de,
17888
- validateField: oe,
17888
+ validateField: ie,
17889
17889
  setErrors: Fe,
17890
17890
  setFieldError: F,
17891
17891
  setFieldTouched: ee,
17892
17892
  setFieldValue: G,
17893
- setStatus: ie,
17893
+ setStatus: se,
17894
17894
  setSubmitting: K,
17895
17895
  setTouched: xe,
17896
17896
  setValues: $,
@@ -17952,13 +17952,13 @@ function Nj(e) {
17952
17952
  setFieldTouched: ee,
17953
17953
  setFieldValue: G,
17954
17954
  setFieldError: F,
17955
- setStatus: ie,
17955
+ setStatus: se,
17956
17956
  setSubmitting: K,
17957
17957
  setTouched: xe,
17958
17958
  setValues: $,
17959
17959
  submitForm: be,
17960
17960
  validateForm: de,
17961
- validateField: oe,
17961
+ validateField: ie,
17962
17962
  isValid: dt,
17963
17963
  dirty: gt,
17964
17964
  unregisterField: fe,
@@ -21280,7 +21280,7 @@ const Um = /* @__PURE__ */ new Map([
21280
21280
  const u = Tb(), d = Cb(), f = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: h, data: m } = Fb(c), [p, v] = le(!1), [y, w] = le(""), [E, P] = le((f == null ? void 0 : f.country_name) || ""), [C, M] = le(""), [_, j] = le("");
21281
21281
  le(!1);
21282
21282
  const I = async (H) => {
21283
- var oe, ne;
21283
+ var ie, ne;
21284
21284
  if (v(!0), H.preventDefault(), !(!u || !d))
21285
21285
  if (a)
21286
21286
  l({
@@ -21300,7 +21300,7 @@ const Um = /* @__PURE__ */ new Map([
21300
21300
  address_zip: _
21301
21301
  });
21302
21302
  if (xe.error)
21303
- v(!1), Gt((oe = xe == null ? void 0 : xe.error) == null ? void 0 : oe.message, Wt.error);
21303
+ v(!1), Gt((ie = xe == null ? void 0 : xe.error) == null ? void 0 : ie.message, Wt.error);
21304
21304
  else {
21305
21305
  const Fe = {
21306
21306
  source: (ne = xe == null ? void 0 : xe.token) == null ? void 0 : ne.id,
@@ -21542,11 +21542,11 @@ const Um = /* @__PURE__ */ new Map([
21542
21542
  type: "text",
21543
21543
  bg: "#EFF1F6",
21544
21544
  onChange: (H) => {
21545
- var oe, ne;
21545
+ var ie, ne;
21546
21546
  j(H.target.value), r.setFieldValue("zipCode", H.target.value), de(
21547
- ((oe = Zr == null ? void 0 : Zr.find(
21547
+ ((ie = Zr == null ? void 0 : Zr.find(
21548
21548
  (fe) => fe.name === r.values.country
21549
- )) == null ? void 0 : oe.alpha2Code) ?? "" ? LL(
21549
+ )) == null ? void 0 : ie.alpha2Code) ?? "" ? LL(
21550
21550
  H.target.value,
21551
21551
  ((ne = Zr == null ? void 0 : Zr.find(
21552
21552
  (fe) => fe.name === r.values.country
@@ -26041,12 +26041,12 @@ const WL = "Payment Completed", HL = ({
26041
26041
  authMSUrl: _,
26042
26042
  hasDiscountCode: j,
26043
26043
  mainstackProductId: I
26044
- } = e, { Request: Q, AuthMSRequest: Z } = ZL(M, _), [ce, de] = le(h), [H, oe] = le(!1), [ne, fe] = le(!0), [xe, Fe] = le(!1), [$, F] = le(), [G, B] = le(!1), [U, ee] = le(""), [z, J] = le({
26044
+ } = e, { Request: Q, AuthMSRequest: Z } = ZL(M, _), [ce, de] = le(h), [H, ie] = le(!1), [ne, fe] = le(!0), [xe, Fe] = le(!1), [$, F] = le(), [G, B] = le(!1), [U, ee] = le(""), [z, J] = le({
26045
26045
  amount: 0,
26046
26046
  type: "",
26047
26047
  value: 0,
26048
26048
  isFullDiscount: !1
26049
- }), { isOpen: re, onToggle: ie } = Hh(), K = (se) => !w || w.length <= 0 ? !0 : w == null ? void 0 : w.includes(se), be = vu().shape({
26049
+ }), { isOpen: re, onToggle: se } = Hh(), K = (oe) => !w || w.length <= 0 ? !0 : w == null ? void 0 : w.includes(oe), be = vu().shape({
26050
26050
  email: zt().matches(
26051
26051
  /^(([^<>()[\]\\.,;:\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,}))$/,
26052
26052
  "Please enter a valid email"
@@ -26097,17 +26097,17 @@ const WL = "Payment Completed", HL = ({
26097
26097
  },
26098
26098
  validationSchema: G ? be : N,
26099
26099
  validateOnChange: !1,
26100
- onSubmit: (se, { setSubmitting: Le }) => {
26100
+ onSubmit: (oe, { setSubmitting: Ne }) => {
26101
26101
  if (xt === 0) {
26102
26102
  c({
26103
- fullname: se.fullname,
26104
- email: se.email,
26103
+ fullname: oe.fullname,
26104
+ email: oe.email,
26105
26105
  reference: d,
26106
26106
  amount: 0
26107
26107
  });
26108
26108
  return;
26109
26109
  }
26110
- Le(!0), Pt(
26110
+ Ne(!0), Pt(
26111
26111
  {
26112
26112
  amount: xt,
26113
26113
  reference: d,
@@ -26116,7 +26116,7 @@ const WL = "Payment Completed", HL = ({
26116
26116
  },
26117
26117
  {
26118
26118
  onSuccess: () => {
26119
- se.currency === Wn.NGN && K("paystack") || se.currency === Wn.GHS && K("startbutton") ? dt(
26119
+ oe.currency === Wn.NGN && K("paystack") || oe.currency === Wn.GHS && K("startbutton") ? dt(
26120
26120
  {
26121
26121
  amount: xt,
26122
26122
  currency: f,
@@ -26135,11 +26135,11 @@ const WL = "Payment Completed", HL = ({
26135
26135
  fl();
26136
26136
  }
26137
26137
  }
26138
- ) : (oe(!0), Le(!1));
26138
+ ) : (ie(!0), Ne(!1));
26139
26139
  },
26140
26140
  onError: (wt) => {
26141
26141
  var on;
26142
- Le(!1), Gt(
26142
+ Ne(!1), Gt(
26143
26143
  ((on = wt == null ? void 0 : wt.response) == null ? void 0 : on.data) ?? "Error loading payment gateway",
26144
26144
  Wt.error
26145
26145
  );
@@ -26151,14 +26151,14 @@ const WL = "Payment Completed", HL = ({
26151
26151
  ve(() => {
26152
26152
  D.setFieldValue("email", (i == null ? void 0 : i.email) ?? ""), D.setFieldValue("fullname", (i == null ? void 0 : i.fullname) ?? ""), D.setTouched({}, !1);
26153
26153
  }, [i]), Q0(u, () => ({
26154
- updateCustomFormValues(se, Le) {
26155
- D.setFieldValue(se, Le);
26154
+ updateCustomFormValues(oe, Ne) {
26155
+ D.setFieldValue(oe, Ne);
26156
26156
  }
26157
26157
  }));
26158
26158
  const ot = ((Xo = pe == null ? void 0 : pe.payload) == null ? void 0 : Xo.local_amount) ?? 0, qt = ((Dt = pe == null ? void 0 : pe.payload) == null ? void 0 : Dt.local_transaction_fee) ?? 0, Yt = ((Jo = pe == null ? void 0 : pe.payload) == null ? void 0 : Jo.local_international_card_fee) ?? 0, ir = ((Qo = pe == null ? void 0 : pe.payload) == null ? void 0 : Qo.dollar_international_card_fee) ?? 0, It = parseFloat(ot) + parseFloat(qt) + (f !== Wn.NGN && (D.values.country !== "" || (at == null ? void 0 : at.currency) !== f) && St((ei = D == null ? void 0 : D.values) == null ? void 0 : ei.country) !== f ? Number(Yt) : 0), Bn = D.values.country !== "" ? St((ti = D == null ? void 0 : D.values) == null ? void 0 : ti.country) !== f : (at == null ? void 0 : at.currency) !== f, xt = st(() => {
26159
- var se;
26159
+ var oe;
26160
26160
  return f === Wn.UGX ? Math.ceil(It) * 100 : Math.round(
26161
- It * ((se = pe == null ? void 0 : pe.payload) != null && se.is_zero_decimal_currency ? 1 : 100)
26161
+ It * ((oe = pe == null ? void 0 : pe.payload) != null && oe.is_zero_decimal_currency ? 1 : 100)
26162
26162
  );
26163
26163
  }, [
26164
26164
  It,
@@ -26194,12 +26194,12 @@ const WL = "Payment Completed", HL = ({
26194
26194
  },
26195
26195
  Q
26196
26196
  ), ll = async () => {
26197
- var se, Le, wt, on;
26197
+ var oe, Ne, wt, on;
26198
26198
  if (U !== "") {
26199
26199
  const qe = await sl();
26200
26200
  qe.isSuccess ? (J({
26201
- amount: (se = qe == null ? void 0 : qe.data) == null ? void 0 : se.discounted_amount,
26202
- type: (Le = qe == null ? void 0 : qe.data) == null ? void 0 : Le.discount_type,
26201
+ amount: (oe = qe == null ? void 0 : qe.data) == null ? void 0 : oe.discounted_amount,
26202
+ type: (Ne = qe == null ? void 0 : qe.data) == null ? void 0 : Ne.discount_type,
26203
26203
  value: (wt = qe == null ? void 0 : qe.data) == null ? void 0 : wt.discount_value,
26204
26204
  isFullDiscount: xt - ((on = qe == null ? void 0 : qe.data) == null ? void 0 : on.discounted_amount) === 0
26205
26205
  }), Gt("Discount has been applied", Wt.success)) : Gt(`${qe == null ? void 0 : qe.error}`, Wt.error);
@@ -26209,8 +26209,8 @@ const WL = "Payment Completed", HL = ({
26209
26209
  ee("");
26210
26210
  };
26211
26211
  ve(() => {
26212
- const { amount: se } = z;
26213
- se !== 0 && U !== "" && (Number(h) - se > 0 && Number(h) - se < 1 ? de(1) : de(h - se));
26212
+ const { amount: oe } = z;
26213
+ oe !== 0 && U !== "" && (Number(h) - oe > 0 && Number(h) - oe < 1 ? de(1) : de(h - oe));
26214
26214
  }, [z, D]);
26215
26215
  const jn = async () => {
26216
26216
  try {
@@ -26222,16 +26222,20 @@ const WL = "Payment Completed", HL = ({
26222
26222
  }
26223
26223
  };
26224
26224
  ve(() => {
26225
- oe(
26225
+ ie(
26226
26226
  // isFree
26227
26227
  f !== "NGN" && f !== "GHS"
26228
26228
  );
26229
26229
  }, [f]);
26230
26230
  const cl = async () => {
26231
- if (ae(!0), l && (await l(D.values)).terminate)
26232
- return;
26233
- const se = await D.validateForm();
26234
- if (Object.keys(se).length <= 0) {
26231
+ ae(!0);
26232
+ let oe = {};
26233
+ if (l) {
26234
+ const Ne = await l(D.values);
26235
+ if (oe = await D.validateForm(), Ne.terminate)
26236
+ return;
26237
+ }
26238
+ if (Object.keys(oe).length <= 0) {
26235
26239
  if (B(!0), xt === 0) {
26236
26240
  c({
26237
26241
  fullname: D.values.fullname,
@@ -26252,9 +26256,9 @@ const WL = "Payment Completed", HL = ({
26252
26256
  onSuccess() {
26253
26257
  Fe(!0), fe(!ne);
26254
26258
  },
26255
- onError(Le) {
26259
+ onError(Ne) {
26256
26260
  var wt;
26257
- Gt((wt = Le == null ? void 0 : Le.response) == null ? void 0 : wt.data, Wt.error);
26261
+ Gt((wt = Ne == null ? void 0 : Ne.response) == null ? void 0 : wt.data, Wt.error);
26258
26262
  }
26259
26263
  }
26260
26264
  );
@@ -26266,17 +26270,17 @@ const WL = "Payment Completed", HL = ({
26266
26270
  onClose: dl,
26267
26271
  onOpen: fl
26268
26272
  } = Hh(), pl = async () => {
26269
- F((Le) => ({
26270
- ...Le,
26273
+ F((Ne) => ({
26274
+ ...Ne,
26271
26275
  url: void 0
26272
26276
  }));
26273
- const se = await O();
26274
- se.isSuccess ? c({
26277
+ const oe = await O();
26278
+ oe.isSuccess ? c({
26275
26279
  fullname: D.values.fullname,
26276
26280
  email: D.values.email,
26277
26281
  reference: $ == null ? void 0 : $.reference,
26278
- ...se.data
26279
- }) : Gt(`${se == null ? void 0 : se.error}`, Wt.error);
26282
+ ...oe.data
26283
+ }) : Gt(`${oe == null ? void 0 : oe.error}`, Wt.error);
26280
26284
  };
26281
26285
  return /* @__PURE__ */ b(kn, { children: /* @__PURE__ */ X(
26282
26286
  Cd,
@@ -26306,9 +26310,9 @@ const WL = "Payment Completed", HL = ({
26306
26310
  da,
26307
26311
  {
26308
26312
  id: "fullname",
26309
- label: "Your name *",
26313
+ label: "Your name",
26310
26314
  name: "fullname",
26311
- onChange: (se) => D.setFieldValue("fullname", se.target.value),
26315
+ onChange: (oe) => D.setFieldValue("fullname", oe.target.value),
26312
26316
  value: (si = D.values) == null ? void 0 : si.fullname,
26313
26317
  placeholder: "name",
26314
26318
  type: "text",
@@ -26321,9 +26325,9 @@ const WL = "Payment Completed", HL = ({
26321
26325
  da,
26322
26326
  {
26323
26327
  id: "email",
26324
- label: "Email address *",
26328
+ label: "Email address",
26325
26329
  name: "email",
26326
- onChange: (se) => D.setFieldValue("email", se.target.value),
26330
+ onChange: (oe) => D.setFieldValue("email", oe.target.value),
26327
26331
  value: (ci = D.values) == null ? void 0 : ci.email,
26328
26332
  placeholder: "email",
26329
26333
  type: "email",
@@ -26354,8 +26358,8 @@ const WL = "Payment Completed", HL = ({
26354
26358
  formik: D,
26355
26359
  checkForErrors: async () => {
26356
26360
  l && await l(D.values);
26357
- const se = await D.validateForm();
26358
- return Object.keys(se).length > 0;
26361
+ const oe = await D.validateForm();
26362
+ return Object.keys(oe).length > 0;
26359
26363
  },
26360
26364
  onPaymentComplete: c,
26361
26365
  Request: Q
@@ -26459,12 +26463,14 @@ const WL = "Payment Completed", HL = ({
26459
26463
  width: "100%",
26460
26464
  type: "submit",
26461
26465
  isLoading: he,
26462
- onClick: async (se) => {
26463
- if (se.preventDefault(), ae(!0), l) {
26464
- const Le = await l(D.values);
26465
- if (Le != null && Le.terminate)
26466
+ onClick: async (oe) => {
26467
+ if (oe.preventDefault(), ae(!0), D.submitForm(), l) {
26468
+ const Ne = await l(D.values);
26469
+ if (Ne != null && Ne.terminate) {
26470
+ ae(!1);
26466
26471
  return;
26467
- ae(!1), D.submitForm();
26472
+ }
26473
+ ae(!1);
26468
26474
  } else
26469
26475
  ae(!1), D.submitForm();
26470
26476
  },
@@ -26519,7 +26525,7 @@ const WL = "Payment Completed", HL = ({
26519
26525
  Qe,
26520
26526
  {
26521
26527
  alignItems: "center",
26522
- onClick: ie,
26528
+ onClick: se,
26523
26529
  cursor: "pointer",
26524
26530
  mb: "12px",
26525
26531
  children: [
@@ -26546,9 +26552,9 @@ const WL = "Payment Completed", HL = ({
26546
26552
  placeholder: "Discount Code",
26547
26553
  name: "discount_code",
26548
26554
  type: "text",
26549
- onChange: (se) => {
26550
- var Le;
26551
- ee((Le = se == null ? void 0 : se.target) == null ? void 0 : Le.value);
26555
+ onChange: (oe) => {
26556
+ var Ne;
26557
+ ee((Ne = oe == null ? void 0 : oe.target) == null ? void 0 : Ne.value);
26552
26558
  },
26553
26559
  value: U
26554
26560
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [