mainstack-payments 1.0.49 → 1.0.51

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.
@@ -1,7 +1,7 @@
1
- import { jsx as p, jsxs as M, Fragment as ot } from "react/jsx-runtime";
1
+ import { jsx as p, jsxs as M, Fragment as lt } from "react/jsx-runtime";
2
2
  import { Colors as Qe, InfoIcon as Ja, Paragraph as Sy, CountrySelect as V1, NotificationsFilledIcon as ja, LockIcon as j1, customSnackbar as Ct, SnackbarType as At, CancelFilledIcon as Eu, Button as dr, Loader as U1, ExpandMoreIcon as Kr, ClickTooltip as Gp, DiscountIcon as G1, PhoneNumberInput as W1, MainstackProvider as H1, CustomSnackbarContainer as K1 } from "mainstack-design-system";
3
3
  import * as L from "react";
4
- import Ae, { Children as xy, isValidElement as $i, createContext as gn, useContext as nt, useRef as be, useEffect as he, useCallback as ue, useState as X, useId as lo, useLayoutEffect as Fi, useMemo as st, forwardRef as Gt, useReducer as Z1, useInsertionEffect as Fd, createElement as Md, cloneElement as Js, memo as Od, useSyncExternalStore as q1, Fragment as Y1, PureComponent as X1, useImperativeHandle as J1 } from "react";
4
+ import Te, { Children as xy, isValidElement as $i, createContext as gn, useContext as nt, useRef as be, useEffect as he, useCallback as ue, useState as X, useId as lo, useLayoutEffect as Fi, useMemo as it, forwardRef as Gt, useReducer as Z1, useInsertionEffect as Fd, createElement as Md, cloneElement as Js, memo as Od, useSyncExternalStore as q1, Fragment as Y1, PureComponent as X1, useImperativeHandle as J1 } from "react";
5
5
  import { createPortal as wy } from "react-dom";
6
6
  import Q1 from "axios";
7
7
  function e2(e) {
@@ -475,11 +475,11 @@ Qs.exports;
475
475
  }
476
476
  dn.prototype.clear = cc, dn.prototype.delete = nr, dn.prototype.get = Ki, dn.prototype.has = po, dn.prototype.set = uc;
477
477
  function pp(y, w) {
478
- var $ = So(y), V = !$ && vo(y), Te = !$ && !V && xo(y), Be = !$ && !V && !Te && Tr(y), We = $ || V || Te || Be, Ce = We ? fe(y.length, String) : [], He = Ce.length;
478
+ var $ = So(y), V = !$ && vo(y), Ee = !$ && !V && xo(y), Be = !$ && !V && !Ee && Tr(y), We = $ || V || Ee || Be, Ce = We ? fe(y.length, String) : [], He = Ce.length;
479
479
  for (var Ot in y)
480
480
  (w || I.call(y, Ot)) && !(We && // Safari 9 has enumerable `arguments.length` in strict mode.
481
481
  (Ot == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
482
- Te && (Ot == "offset" || Ot == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
482
+ Ee && (Ot == "offset" || Ot == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
483
483
  Be && (Ot == "buffer" || Ot == "byteLength" || Ot == "byteOffset") || // Skip index properties.
484
484
  Ji(Ot, He))) && Ce.push(Ot);
485
485
  return Ce;
@@ -529,17 +529,17 @@ Qs.exports;
529
529
  V == "constructor" && (w || !I.call(y, V)) || $.push(V);
530
530
  return $;
531
531
  }
532
- function Yi(y, w, $, V, Te) {
532
+ function Yi(y, w, $, V, Ee) {
533
533
  y !== w && qi(w, function(Be, We) {
534
- if (Te || (Te = new dn()), Nn(Be))
535
- pc(y, w, We, $, Yi, V, Te);
534
+ if (Ee || (Ee = new dn()), Nn(Be))
535
+ pc(y, w, We, $, Yi, V, Ee);
536
536
  else {
537
- var Ce = V ? V(bo(y, We), Be, We + "", y, w, Te) : void 0;
537
+ var Ce = V ? V(bo(y, We), Be, We + "", y, w, Ee) : void 0;
538
538
  Ce === void 0 && (Ce = Be), ho(y, We, Ce);
539
539
  }
540
540
  }, os);
541
541
  }
542
- function pc(y, w, $, V, Te, Be, We) {
542
+ function pc(y, w, $, V, Ee, Be, We) {
543
543
  var Ce = bo(y, $), He = bo(w, $), Ot = We.get(He);
544
544
  if (Ot) {
545
545
  ho(y, $, Ot);
@@ -550,7 +550,7 @@ Qs.exports;
550
550
  var xa = So(He), wa = !xa && xo(He), To = !xa && !wa && Tr(He);
551
551
  $t = He, xa || wa || To ? So(Ce) ? $t = Ce : wc(Ce) ? $t = Nt(Ce) : wa ? (ar = !1, $t = ga(He, !0)) : To ? (ar = !1, $t = Ar(He, !0)) : $t = [] : Sa(He) || vo(He) ? ($t = Ce, vo(Ce) ? $t = Co(Ce) : (!Nn(Ce) || wo(Ce)) && ($t = yc(He))) : ar = !1;
552
552
  }
553
- ar && (We.set(He, $t), Te($t, He, V, Be, We), We.delete(He)), ho(y, $, $t);
553
+ ar && (We.set(He, $t), Ee($t, He, V, Be, We), We.delete(He)), ho(y, $, $t);
554
554
  }
555
555
  function mo(y, w) {
556
556
  return vc(rs(y, w, is), y + "");
@@ -584,18 +584,18 @@ Qs.exports;
584
584
  return w;
585
585
  }
586
586
  function mc(y, w, $, V) {
587
- var Te = !$;
587
+ var Ee = !$;
588
588
  $ || ($ = {});
589
589
  for (var Be = -1, We = w.length; ++Be < We; ) {
590
590
  var Ce = w[Be], He = V ? V($[Ce], y[Ce], Ce, $, y) : void 0;
591
- He === void 0 && (He = y[Ce]), Te ? Zi($, Ce, He) : dc($, Ce, He);
591
+ He === void 0 && (He = y[Ce]), Ee ? Zi($, Ce, He) : dc($, Ce, He);
592
592
  }
593
593
  return $;
594
594
  }
595
595
  function gc(y) {
596
596
  return mo(function(w, $) {
597
- var V = -1, Te = $.length, Be = Te > 1 ? $[Te - 1] : void 0, We = Te > 2 ? $[2] : void 0;
598
- for (Be = y.length > 3 && typeof Be == "function" ? (Te--, Be) : void 0, We && Qi($[0], $[1], We) && (Be = Te < 3 ? void 0 : Be, Te = 1), w = Object(w); ++V < Te; ) {
597
+ var V = -1, Ee = $.length, Be = Ee > 1 ? $[Ee - 1] : void 0, We = Ee > 2 ? $[2] : void 0;
598
+ for (Be = y.length > 3 && typeof Be == "function" ? (Ee--, Be) : void 0, We && Qi($[0], $[1], We) && (Be = Ee < 3 ? void 0 : Be, Ee = 1), w = Object(w); ++V < Ee; ) {
599
599
  var Ce = $[V];
600
600
  Ce && y(w, Ce, V, Be);
601
601
  }
@@ -604,8 +604,8 @@ Qs.exports;
604
604
  }
605
605
  function $e(y) {
606
606
  return function(w, $, V) {
607
- for (var Te = -1, Be = Object(w), We = V(w), Ce = We.length; Ce--; ) {
608
- var He = We[y ? Ce : ++Te];
607
+ for (var Ee = -1, Be = Object(w), We = V(w), Ce = We.length; Ce--; ) {
608
+ var He = We[y ? Ce : ++Ee];
609
609
  if ($(Be[He], He, Be) === !1)
610
610
  break;
611
611
  }
@@ -627,8 +627,8 @@ Qs.exports;
627
627
  var V = !0;
628
628
  } catch {
629
629
  }
630
- var Te = J.call(y);
631
- return V && (w ? y[Dn] = $ : delete y[Dn]), Te;
630
+ var Ee = J.call(y);
631
+ return V && (w ? y[Dn] = $ : delete y[Dn]), Ee;
632
632
  }
633
633
  function yc(y) {
634
634
  return typeof y.constructor == "function" && !ts(y) ? Hi(la(y)) : {};
@@ -666,11 +666,11 @@ Qs.exports;
666
666
  }
667
667
  function rs(y, w, $) {
668
668
  return w = Xt(w === void 0 ? y.length - 1 : w, 0), function() {
669
- for (var V = arguments, Te = -1, Be = Xt(V.length - w, 0), We = Array(Be); ++Te < Be; )
670
- We[Te] = V[w + Te];
671
- Te = -1;
672
- for (var Ce = Array(w + 1); ++Te < w; )
673
- Ce[Te] = V[Te];
669
+ for (var V = arguments, Ee = -1, Be = Xt(V.length - w, 0), We = Array(Be); ++Ee < Be; )
670
+ We[Ee] = V[w + Ee];
671
+ Ee = -1;
672
+ for (var Ce = Array(w + 1); ++Ee < w; )
673
+ Ce[Ee] = V[Ee];
674
674
  return Ce[w] = $(We), rt(y, this, Ce);
675
675
  };
676
676
  }
@@ -682,8 +682,8 @@ Qs.exports;
682
682
  function Sc(y) {
683
683
  var w = 0, $ = 0;
684
684
  return function() {
685
- var V = Jl(), Te = o - (V - $);
686
- if ($ = V, Te > 0) {
685
+ var V = Jl(), Ee = o - (V - $);
686
+ if ($ = V, Ee > 0) {
687
687
  if (++w >= a)
688
688
  return arguments[0];
689
689
  } else
@@ -850,7 +850,7 @@ function li(...e) {
850
850
  };
851
851
  }
852
852
  function _2(...e) {
853
- return st(() => li(...e), e);
853
+ return it(() => li(...e), e);
854
854
  }
855
855
  function $2(e) {
856
856
  const t = be(void 0);
@@ -6989,7 +6989,7 @@ const a0 = function(t) {
6989
6989
  () => Ch(s, c)
6990
6990
  ), [f, h] = X(
6991
6991
  () => Ch(s)
6992
- ), { getSystemTheme: g, setClassName: m, setDataset: b, addListener: S } = st(
6992
+ ), { getSystemTheme: g, setClassName: m, setDataset: b, addListener: S } = it(
6993
6993
  () => qE({
6994
6994
  preventTransition: i,
6995
6995
  nonce: l == null ? void 0 : l.nonce
@@ -7023,7 +7023,7 @@ const a0 = function(t) {
7023
7023
  if (a)
7024
7024
  return S(v);
7025
7025
  }, [a, S, v]);
7026
- const T = st(
7026
+ const T = it(
7027
7027
  () => ({
7028
7028
  colorMode: n ?? x,
7029
7029
  toggleColorMode: n ? wh : E,
@@ -7321,7 +7321,7 @@ const o0 = String.raw, i0 = o0`
7321
7321
  }
7322
7322
  );
7323
7323
  function nP(e) {
7324
- const { cssVarsRoot: t, theme: n, children: r } = e, a = st(() => BS(n), [n]);
7324
+ const { cssVarsRoot: t, theme: n, children: r } = e, a = it(() => BS(n), [n]);
7325
7325
  return /* @__PURE__ */ M(UE, { theme: a, children: [
7326
7326
  /* @__PURE__ */ p(rP, { root: t }),
7327
7327
  r
@@ -7372,7 +7372,7 @@ function sP({ defer: e } = {}) {
7372
7372
  }, [e]), nt(ef);
7373
7373
  }
7374
7374
  function l0(e) {
7375
- const { children: t, environment: n, disabled: r } = e, a = be(null), o = st(() => n || {
7375
+ const { children: t, environment: n, disabled: r } = e, a = be(null), o = it(() => n || {
7376
7376
  getDocument: () => {
7377
7377
  var s;
7378
7378
  return ((s = a.current) == null ? void 0 : s.ownerDocument) ?? document;
@@ -7495,7 +7495,7 @@ function fP(e, t) {
7495
7495
  }
7496
7496
  function pP(e) {
7497
7497
  const { initial: t, animate: n } = fP(e, nt(Pl));
7498
- return st(() => ({ initial: t, animate: n }), [Ah(t), Ah(n)]);
7498
+ return it(() => ({ initial: t, animate: n }), [Ah(t), Ah(n)]);
7499
7499
  }
7500
7500
  function Ah(e) {
7501
7501
  return Array.isArray(e) ? e.join(" ") : e;
@@ -7796,7 +7796,7 @@ function b0(e, t, n) {
7796
7796
  !Mt(t[r]) && !p0(r, n) && (e[r] = t[r]);
7797
7797
  }
7798
7798
  function _P({ transformTemplate: e }, t, n) {
7799
- return st(() => {
7799
+ return it(() => {
7800
7800
  const r = lf();
7801
7801
  return sf(r, t, { enableHardwareAcceleration: !n }, e), Object.assign({}, r.vars, r.style);
7802
7802
  }, [t]);
@@ -7906,7 +7906,7 @@ const S0 = () => ({
7906
7906
  attrs: {}
7907
7907
  }), uf = (e) => typeof e == "string" && e.toLowerCase() === "svg";
7908
7908
  function LP(e, t, n, r) {
7909
- const a = st(() => {
7909
+ const a = it(() => {
7910
7910
  const o = S0();
7911
7911
  return cf(o, t, { enableHardwareAcceleration: !1 }, uf(r), e.transformTemplate), {
7912
7912
  ...o.attrs,
@@ -7925,7 +7925,7 @@ function zP(e = !1) {
7925
7925
  ...IP(r, typeof n == "string", e),
7926
7926
  ...l,
7927
7927
  ref: a
7928
- }, { children: d } = r, f = st(() => Mt(d) ? d.get() : d, [d]);
7928
+ }, { children: d } = r, f = it(() => Mt(d) ? d.get() : d, [d]);
7929
7929
  return Md(n, {
7930
7930
  ...u,
7931
7931
  children: f
@@ -8032,7 +8032,7 @@ function GP(e, t, n, r) {
8032
8032
  a[x] = m[x];
8033
8033
  }), a;
8034
8034
  }
8035
- const it = (e) => e;
8035
+ const ot = (e) => e;
8036
8036
  class _h {
8037
8037
  constructor() {
8038
8038
  this.order = [], this.scheduled = /* @__PURE__ */ new Set();
@@ -8108,7 +8108,7 @@ function KP(e, t) {
8108
8108
  return d[f] = (g, m = !1, b = !1) => (n || l(), h.schedule(g, m, b)), d;
8109
8109
  }, {}), cancel: (d) => bs.forEach((f) => o[f].cancel(d)), state: a, steps: o };
8110
8110
  }
8111
- const { schedule: qe, cancel: Yn, state: wt, steps: Uc } = KP(typeof requestAnimationFrame < "u" ? requestAnimationFrame : it, !0), ZP = {
8111
+ const { schedule: qe, cancel: Yn, state: wt, steps: Uc } = KP(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ot, !0), ZP = {
8112
8112
  useVisualState: T0({
8113
8113
  scrapeMotionValuesFromProps: A0,
8114
8114
  createRenderState: S0,
@@ -8245,7 +8245,7 @@ function Gc(e, t) {
8245
8245
  }
8246
8246
  class t6 extends Sr {
8247
8247
  constructor() {
8248
- super(...arguments), this.removeStartListeners = it, this.removeEndListeners = it, this.removeAccessibleListeners = it, this.startPointerPress = (t, n) => {
8248
+ super(...arguments), this.removeStartListeners = ot, this.removeEndListeners = ot, this.removeAccessibleListeners = ot, this.startPointerPress = (t, n) => {
8249
8249
  if (this.isPressing)
8250
8250
  return;
8251
8251
  this.removeEndListeners();
@@ -8393,7 +8393,7 @@ function Il(e, t, n) {
8393
8393
  const r = e.getProps();
8394
8394
  return ff(r, t, n !== void 0 ? n : r.custom, u6(e), d6(e));
8395
8395
  }
8396
- let Li = it, sn = it;
8396
+ let Li = ot, sn = ot;
8397
8397
  process.env.NODE_ENV !== "production" && (Li = (e, t) => {
8398
8398
  !e && typeof console < "u" && console.warn(t);
8399
8399
  }, sn = (e, t) => {
@@ -8448,12 +8448,12 @@ function y6(e, t, n, r, a) {
8448
8448
  }
8449
8449
  function zi(e, t, n, r) {
8450
8450
  if (e === t && n === r)
8451
- return it;
8451
+ return ot;
8452
8452
  const a = (o) => y6(o, 0, 1, e, n);
8453
8453
  return (o) => o === 0 || o === 1 ? o : D0(a(o), t, r);
8454
8454
  }
8455
8455
  const b6 = zi(0.42, 0, 1, 1), v6 = zi(0, 0, 0.58, 1), B0 = zi(0.42, 0, 0.58, 1), S6 = (e) => Array.isArray(e) && typeof e[0] != "number", N0 = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, L0 = (e) => (t) => 1 - e(1 - t), hf = (e) => 1 - Math.sin(Math.acos(e)), z0 = L0(hf), x6 = N0(hf), V0 = zi(0.33, 1.53, 0.69, 0.99), mf = L0(V0), w6 = N0(mf), C6 = (e) => (e *= 2) < 1 ? 0.5 * mf(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Oh = {
8456
- linear: it,
8456
+ linear: ot,
8457
8457
  easeIn: b6,
8458
8458
  easeInOut: B0,
8459
8459
  easeOut: v6,
@@ -8553,7 +8553,7 @@ const G0 = {
8553
8553
  regex: AP,
8554
8554
  countKey: "Vars",
8555
8555
  token: "${v}",
8556
- parse: it
8556
+ parse: ot
8557
8557
  }, W0 = {
8558
8558
  regex: g0,
8559
8559
  countKey: "Colors",
@@ -8637,7 +8637,7 @@ function I6(e, t, n) {
8637
8637
  for (let i = 0; i < o; i++) {
8638
8638
  let s = a(e[i], e[i + 1]);
8639
8639
  if (t) {
8640
- const l = Array.isArray(t) ? t[i] || it : t;
8640
+ const l = Array.isArray(t) ? t[i] || ot : t;
8641
8641
  s = fr(l, s);
8642
8642
  }
8643
8643
  r.push(s);
@@ -9023,7 +9023,7 @@ function nk(e, t, { onUpdate: n, onComplete: r, ...a }) {
9023
9023
  return l.then(v, E);
9024
9024
  },
9025
9025
  attachTimeline(v) {
9026
- return m.timeline = v, m.onfinish = null, it;
9026
+ return m.timeline = v, m.onfinish = null, ot;
9027
9027
  },
9028
9028
  get time() {
9029
9029
  return Fn(m.currentTime || 0);
@@ -9068,12 +9068,12 @@ function rk({ keyframes: e, delay: t, onUpdate: n, onComplete: r }) {
9068
9068
  time: 0,
9069
9069
  speed: 1,
9070
9070
  duration: 0,
9071
- play: it,
9072
- pause: it,
9073
- stop: it,
9071
+ play: ot,
9072
+ pause: ot,
9073
+ stop: ot,
9074
9074
  then: (o) => (o(), Promise.resolve()),
9075
- cancel: it,
9076
- complete: it
9075
+ cancel: ot,
9076
+ complete: ot
9077
9077
  });
9078
9078
  return t ? bi({
9079
9079
  keyframes: [0, 1],
@@ -10223,11 +10223,11 @@ function i_(e, t = 10) {
10223
10223
  }
10224
10224
  class s_ extends Sr {
10225
10225
  constructor(t) {
10226
- super(t), this.removeGroupControls = it, this.removeListeners = it, this.controls = new o_(t);
10226
+ super(t), this.removeGroupControls = ot, this.removeListeners = ot, this.controls = new o_(t);
10227
10227
  }
10228
10228
  mount() {
10229
10229
  const { dragControls: t } = this.node.getProps();
10230
- t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || it;
10230
+ t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || ot;
10231
10231
  }
10232
10232
  unmount() {
10233
10233
  this.removeGroupControls(), this.removeListeners();
@@ -10238,7 +10238,7 @@ const am = (e) => (t, n) => {
10238
10238
  };
10239
10239
  class l_ extends Sr {
10240
10240
  constructor() {
10241
- super(...arguments), this.removePointerDownListener = it;
10241
+ super(...arguments), this.removePointerDownListener = ot;
10242
10242
  }
10243
10243
  onPointerDown(t) {
10244
10244
  this.session = new cb(t, this.createPanHandlers(), {
@@ -10318,7 +10318,7 @@ const Oo = {
10318
10318
  return typeof a[2 + i] == "number" && (a[2 + i] /= c), typeof a[3 + i] == "number" && (a[3 + i] /= c), o(a);
10319
10319
  }
10320
10320
  };
10321
- class f_ extends Ae.Component {
10321
+ class f_ extends Te.Component {
10322
10322
  /**
10323
10323
  * This only mounts projection nodes for components that
10324
10324
  * need measuring, we might want to do it for all components
@@ -10360,7 +10360,7 @@ class f_ extends Ae.Component {
10360
10360
  }
10361
10361
  function yb(e) {
10362
10362
  const [t, n] = gb(), r = nt(af);
10363
- return Ae.createElement(f_, { ...e, layoutGroup: r, switchLayoutGroup: nt(f0), isPresent: t, safeToRemove: n });
10363
+ return Te.createElement(f_, { ...e, layoutGroup: r, switchLayoutGroup: nt(f0), isPresent: t, safeToRemove: n });
10364
10364
  }
10365
10365
  const p_ = {
10366
10366
  borderRadius: {
@@ -10397,7 +10397,7 @@ function m_(e, t, n, r, a, o) {
10397
10397
  function lm(e, t) {
10398
10398
  return e[t] !== void 0 ? e[t] : e.borderRadius;
10399
10399
  }
10400
- const g_ = vb(0, 0.5, z0), y_ = vb(0.5, 0.95, it);
10400
+ const g_ = vb(0, 0.5, z0), y_ = vb(0.5, 0.95, ot);
10401
10401
  function vb(e, t, n) {
10402
10402
  return (r) => r < e ? 0 : r > t ? 1 : n(yi(e, t, r));
10403
10403
  }
@@ -11076,7 +11076,7 @@ function U_(e) {
11076
11076
  const G_ = {
11077
11077
  duration: 0.45,
11078
11078
  ease: [0.4, 0, 0.1, 1]
11079
- }, wm = (e) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(e), Cm = wm("applewebkit/") && !wm("chrome/") ? Math.round : it;
11079
+ }, wm = (e) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(e), Cm = wm("applewebkit/") && !wm("chrome/") ? Math.round : ot;
11080
11080
  function Am(e) {
11081
11081
  e.min = Cm(e.min), e.max = Cm(e.max);
11082
11082
  }
@@ -11680,7 +11680,7 @@ function S4({ children: e, isPresent: t }) {
11680
11680
  }, [t]), L.createElement(v4, { isPresent: t, childRef: r, sizeRef: a }, L.cloneElement(e, { ref: r }));
11681
11681
  }
11682
11682
  const tu = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: a, presenceAffectsLayout: o, mode: i }) => {
11683
- const s = pf(x4), l = lo(), c = st(
11683
+ const s = pf(x4), l = lo(), c = it(
11684
11684
  () => ({
11685
11685
  id: l,
11686
11686
  initial: t,
@@ -11702,7 +11702,7 @@ const tu = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
11702
11702
  */
11703
11703
  o ? void 0 : [n]
11704
11704
  );
11705
- return st(() => {
11705
+ return it(() => {
11706
11706
  s.forEach((u, d) => s.set(d, !1));
11707
11707
  }, [n]), L.useEffect(() => {
11708
11708
  !n && !s.size && r && r();
@@ -12184,7 +12184,7 @@ const ve = G4(), W4 = {
12184
12184
  he(() => {
12185
12185
  h && o && a();
12186
12186
  }, [h, o, a]), F2(b, d);
12187
- const S = st(
12187
+ const S = it(
12188
12188
  () => ({
12189
12189
  pointerEvents: "auto",
12190
12190
  maxWidth: 560,
@@ -12193,7 +12193,7 @@ const ve = G4(), W4 = {
12193
12193
  ...l
12194
12194
  }),
12195
12195
  [l, u]
12196
- ), x = st(() => k4(i), [i]);
12196
+ ), x = it(() => k4(i), [i]);
12197
12197
  return /* @__PURE__ */ p(
12198
12198
  Xn.div,
12199
12199
  {
@@ -12814,7 +12814,7 @@ const [Nb, y3] = Yt({
12814
12814
  }
12815
12815
  );
12816
12816
  }, x3 = (e) => {
12817
- const { children: t, containerRef: n, appendToParentPortal: r } = e, a = n.current, o = a ?? (typeof window < "u" ? document.body : void 0), i = st(() => {
12817
+ const { children: t, containerRef: n, appendToParentPortal: r } = e, a = n.current, o = a ?? (typeof window < "u" ? document.body : void 0), i = it(() => {
12818
12818
  const l = a == null ? void 0 : a.ownerDocument.createElement("div");
12819
12819
  return l && (l.className = _f), l;
12820
12820
  }, [a]), [, s] = X({});
@@ -13067,8 +13067,8 @@ const Ur = {
13067
13067
  }
13068
13068
  );
13069
13069
  vi.displayName = "Collapse";
13070
- const Ee = ve("div");
13071
- Ee.displayName = "Box";
13070
+ const Ae = ve("div");
13071
+ Ae.displayName = "Box";
13072
13072
  const [cD, k3] = Yt({
13073
13073
  strict: !1,
13074
13074
  name: "ButtonGroupContext"
@@ -13100,7 +13100,7 @@ function rd(e) {
13100
13100
  className: o,
13101
13101
  __css: i,
13102
13102
  ...s
13103
- } = e, l = ze("chakra-button__spinner", o), c = n === "start" ? "marginEnd" : "marginStart", u = st(
13103
+ } = e, l = ze("chakra-button__spinner", o), c = n === "start" ? "marginEnd" : "marginStart", u = it(
13104
13104
  () => ({
13105
13105
  display: "flex",
13106
13106
  alignItems: "center",
@@ -13138,7 +13138,7 @@ const $f = Ge((e, t) => {
13138
13138
  as: b,
13139
13139
  shouldWrapChildren: S,
13140
13140
  ...x
13141
- } = ln(e), v = st(() => {
13141
+ } = ln(e), v = it(() => {
13142
13142
  const _ = { ...r == null ? void 0 : r._focus, zIndex: 1 };
13143
13143
  return {
13144
13144
  display: "inline-flex",
@@ -13205,7 +13205,7 @@ function Dm(e) {
13205
13205
  t && /* @__PURE__ */ p(Wo, { marginEnd: a, children: t }),
13206
13206
  r,
13207
13207
  n && /* @__PURE__ */ p(Wo, { marginStart: a, children: n })
13208
- ] }) : /* @__PURE__ */ M(ot, { children: [
13208
+ ] }) : /* @__PURE__ */ M(lt, { children: [
13209
13209
  t && /* @__PURE__ */ p(Wo, { marginEnd: a, children: t }),
13210
13210
  r,
13211
13211
  n && /* @__PURE__ */ p(Wo, { marginStart: a, children: n })
@@ -14180,7 +14180,7 @@ var Zb = Mf({}, function(e) {
14180
14180
  process.env.NODE_ENV !== "production" && (typeof _ < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), he(function() {
14181
14181
  !s.current && typeof Se != "string" && console.error("FocusLock: could not obtain ref to internal node");
14182
14182
  }, []));
14183
- var B = qr((r = {}, r[Vb] = g && "disabled", r[sd] = D, r), re), rt = b !== !0, fe = rt && b !== "tail", ht = jb([n, Pe]), Bt = st(function() {
14183
+ var B = qr((r = {}, r[Vb] = g && "disabled", r[sd] = D, r), re), rt = b !== !0, fe = rt && b !== "tail", ht = jb([n, Pe]), Bt = it(function() {
14184
14184
  return {
14185
14185
  observed: s,
14186
14186
  shards: W,
@@ -14188,20 +14188,20 @@ var Zb = Mf({}, function(e) {
14188
14188
  active: l.current
14189
14189
  };
14190
14190
  }, [g, l.current, W, o]);
14191
- return /* @__PURE__ */ Ae.createElement(Y1, null, rt && [
14192
- /* @__PURE__ */ Ae.createElement("div", {
14191
+ return /* @__PURE__ */ Te.createElement(Y1, null, rt && [
14192
+ /* @__PURE__ */ Te.createElement("div", {
14193
14193
  key: "guard-first",
14194
14194
  "data-focus-guard": !0,
14195
14195
  tabIndex: g ? -1 : 0,
14196
14196
  style: uu
14197
14197
  }),
14198
- H ? /* @__PURE__ */ Ae.createElement("div", {
14198
+ H ? /* @__PURE__ */ Te.createElement("div", {
14199
14199
  key: "guard-nearest",
14200
14200
  "data-focus-guard": !0,
14201
14201
  tabIndex: g ? -1 : 1,
14202
14202
  style: uu
14203
14203
  }) : null
14204
- ], !g && /* @__PURE__ */ Ae.createElement(Ve, {
14204
+ ], !g && /* @__PURE__ */ Te.createElement(Ve, {
14205
14205
  id: ae,
14206
14206
  sideCar: Q3,
14207
14207
  observed: o,
@@ -14216,15 +14216,15 @@ var Zb = Mf({}, function(e) {
14216
14216
  returnFocus: ce,
14217
14217
  focusOptions: F,
14218
14218
  noFocusGuards: b
14219
- }), /* @__PURE__ */ Ae.createElement(Se, qr({
14219
+ }), /* @__PURE__ */ Te.createElement(Se, qr({
14220
14220
  ref: ht
14221
14221
  }, B, {
14222
14222
  className: R,
14223
14223
  onBlur: Z,
14224
14224
  onFocus: se
14225
- }), /* @__PURE__ */ Ae.createElement(e$.Provider, {
14225
+ }), /* @__PURE__ */ Te.createElement(e$.Provider, {
14226
14226
  value: Bt
14227
- }, f)), fe && /* @__PURE__ */ Ae.createElement("div", {
14227
+ }, f)), fe && /* @__PURE__ */ Te.createElement("div", {
14228
14228
  "data-focus-guard": !0,
14229
14229
  tabIndex: g ? -1 : 0,
14230
14230
  style: uu
@@ -14328,7 +14328,7 @@ function i$(e, t) {
14328
14328
  var h = o.indexOf(this);
14329
14329
  o.splice(h, 1), s();
14330
14330
  }, d.render = function() {
14331
- return /* @__PURE__ */ Ae.createElement(a, this.props);
14331
+ return /* @__PURE__ */ Te.createElement(a, this.props);
14332
14332
  }, u;
14333
14333
  }(X1);
14334
14334
  return o$(l, "displayName", "SideEffect(" + n(a) + ")"), l;
@@ -14942,7 +14942,7 @@ J3.assignMedium(function(e) {
14942
14942
  });
14943
14943
  const oF = i$(rF, aF)(eF);
14944
14944
  var Sv = /* @__PURE__ */ Gt(function(t, n) {
14945
- return /* @__PURE__ */ Ae.createElement(Xb, qr({
14945
+ return /* @__PURE__ */ Te.createElement(Xb, qr({
14946
14946
  sideCar: oF,
14947
14947
  ref: n
14948
14948
  }, t));
@@ -15310,7 +15310,7 @@ function bF(e, t) {
15310
15310
  }
15311
15311
  function vF(e, ...t) {
15312
15312
  const n = lo(), r = e || n;
15313
- return st(() => t.map((a) => `${a}-${r}`), [r, t]);
15313
+ return it(() => t.map((a) => `${a}-${r}`), [r, t]);
15314
15314
  }
15315
15315
  const [SF, ta] = Yt({
15316
15316
  name: "ModalStylesContext",
@@ -16407,10 +16407,10 @@ function x9() {
16407
16407
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
16408
16408
  }
16409
16409
  var Wt = function(t, n, r) {
16410
- var a = !!r, o = Ae.useRef(r);
16411
- Ae.useEffect(function() {
16410
+ var a = !!r, o = Te.useRef(r);
16411
+ Te.useEffect(function() {
16412
16412
  o.current = r;
16413
- }, [r]), Ae.useEffect(function() {
16413
+ }, [r]), Te.useEffect(function() {
16414
16414
  if (!a || !t)
16415
16415
  return function() {
16416
16416
  };
@@ -16422,8 +16422,8 @@ var Wt = function(t, n, r) {
16422
16422
  };
16423
16423
  }, [a, n, t, o]);
16424
16424
  }, bd = function(t) {
16425
- var n = Ae.useRef(t);
16426
- return Ae.useEffect(function() {
16425
+ var n = Te.useRef(t);
16426
+ return Te.useEffect(function() {
16427
16427
  n.current = t;
16428
16428
  }, [t]), n.current;
16429
16429
  }, oo = function(t) {
@@ -16492,22 +16492,22 @@ var Wt = function(t, n, r) {
16492
16492
  version: "2.8.1",
16493
16493
  url: "https://stripe.com/docs/stripe-js/react"
16494
16494
  }));
16495
- }, Vl = /* @__PURE__ */ Ae.createContext(null);
16495
+ }, Vl = /* @__PURE__ */ Te.createContext(null);
16496
16496
  Vl.displayName = "ElementsContext";
16497
16497
  var Wv = function(t, n) {
16498
16498
  if (!t)
16499
16499
  throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n, " in an <Elements> provider."));
16500
16500
  return t;
16501
16501
  }, Hv = function(t) {
16502
- var n = t.stripe, r = t.options, a = t.children, o = Ae.useMemo(function() {
16502
+ var n = t.stripe, r = t.options, a = t.children, o = Te.useMemo(function() {
16503
16503
  return T9(n);
16504
- }, [n]), i = Ae.useState(function() {
16504
+ }, [n]), i = Te.useState(function() {
16505
16505
  return {
16506
16506
  stripe: o.tag === "sync" ? o.stripe : null,
16507
16507
  elements: o.tag === "sync" ? o.stripe.elements(r) : null
16508
16508
  };
16509
16509
  }), s = jv(i, 2), l = s[0], c = s[1];
16510
- Ae.useEffect(function() {
16510
+ Te.useEffect(function() {
16511
16511
  var f = !0, h = function(m) {
16512
16512
  c(function(b) {
16513
16513
  return b.stripe ? b : {
@@ -16523,18 +16523,18 @@ var Wv = function(t, n) {
16523
16523
  };
16524
16524
  }, [o, l, r]);
16525
16525
  var u = bd(n);
16526
- Ae.useEffect(function() {
16526
+ Te.useEffect(function() {
16527
16527
  u !== null && u !== n && console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.");
16528
16528
  }, [u, n]);
16529
16529
  var d = bd(r);
16530
- return Ae.useEffect(function() {
16530
+ return Te.useEffect(function() {
16531
16531
  if (l.elements) {
16532
16532
  var f = Uv(r, d, ["clientSecret", "fonts"]);
16533
16533
  f && l.elements.update(f);
16534
16534
  }
16535
- }, [r, d, l.elements]), Ae.useEffect(function() {
16535
+ }, [r, d, l.elements]), Te.useEffect(function() {
16536
16536
  E9(l.stripe);
16537
- }, [l.stripe]), /* @__PURE__ */ Ae.createElement(Vl.Provider, {
16537
+ }, [l.stripe]), /* @__PURE__ */ Te.createElement(Vl.Provider, {
16538
16538
  value: l
16539
16539
  }, a);
16540
16540
  };
@@ -16543,27 +16543,27 @@ Hv.propTypes = {
16543
16543
  options: et.object
16544
16544
  };
16545
16545
  var P9 = function(t) {
16546
- var n = Ae.useContext(Vl);
16546
+ var n = Te.useContext(Vl);
16547
16547
  return Wv(n, t);
16548
16548
  }, Kv = function() {
16549
16549
  var t = P9("calls useElements()"), n = t.elements;
16550
16550
  return n;
16551
16551
  };
16552
16552
  et.func.isRequired;
16553
- var Zv = /* @__PURE__ */ Ae.createContext(null);
16553
+ var Zv = /* @__PURE__ */ Te.createContext(null);
16554
16554
  Zv.displayName = "CustomCheckoutSdkContext";
16555
16555
  var k9 = function(t, n) {
16556
16556
  if (!t)
16557
16557
  throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(n, " in an <CustomCheckoutProvider> provider."));
16558
16558
  return t;
16559
- }, _9 = /* @__PURE__ */ Ae.createContext(null);
16559
+ }, _9 = /* @__PURE__ */ Te.createContext(null);
16560
16560
  _9.displayName = "CustomCheckoutContext";
16561
16561
  et.any, et.shape({
16562
16562
  clientSecret: et.string.isRequired,
16563
16563
  elementsOptions: et.object
16564
16564
  }).isRequired;
16565
16565
  var vd = function(t) {
16566
- var n = Ae.useContext(Zv), r = Ae.useContext(Vl);
16566
+ var n = Te.useContext(Zv), r = Te.useContext(Vl);
16567
16567
  if (n && r)
16568
16568
  throw new Error("You cannot wrap the part of your app that ".concat(t, " in both <CustomCheckoutProvider> and <Elements> providers."));
16569
16569
  return n ? k9(n, t) : Wv(r, t);
@@ -16571,24 +16571,24 @@ var vd = function(t) {
16571
16571
  return t.charAt(0).toUpperCase() + t.slice(1);
16572
16572
  }, ft = function(t, n) {
16573
16573
  var r = "".concat($9(t), "Element"), a = function(l) {
16574
- var c = l.id, u = l.className, d = l.options, f = d === void 0 ? {} : d, h = l.onBlur, g = l.onFocus, m = l.onReady, b = l.onChange, S = l.onEscape, x = l.onClick, v = l.onLoadError, E = l.onLoaderStart, T = l.onNetworksChange, P = l.onConfirm, _ = l.onCancel, D = l.onShippingAddressChange, R = l.onShippingRateChange, le = vd("mounts <".concat(r, ">")), H = "elements" in le ? le.elements : null, ie = "customCheckoutSdk" in le ? le.customCheckoutSdk : null, W = Ae.useState(null), pe = jv(W, 2), Se = pe[0], z = pe[1], re = Ae.useRef(null), Ve = Ae.useRef(null);
16574
+ var c = l.id, u = l.className, d = l.options, f = d === void 0 ? {} : d, h = l.onBlur, g = l.onFocus, m = l.onReady, b = l.onChange, S = l.onEscape, x = l.onClick, v = l.onLoadError, E = l.onLoaderStart, T = l.onNetworksChange, P = l.onConfirm, _ = l.onCancel, D = l.onShippingAddressChange, R = l.onShippingRateChange, le = vd("mounts <".concat(r, ">")), H = "elements" in le ? le.elements : null, ie = "customCheckoutSdk" in le ? le.customCheckoutSdk : null, W = Te.useState(null), pe = jv(W, 2), Se = pe[0], z = pe[1], re = Te.useRef(null), Ve = Te.useRef(null);
16575
16575
  Wt(Se, "blur", h), Wt(Se, "focus", g), Wt(Se, "escape", S), Wt(Se, "click", x), Wt(Se, "loaderror", v), Wt(Se, "loaderstart", E), Wt(Se, "networkschange", T), Wt(Se, "confirm", P), Wt(Se, "cancel", _), Wt(Se, "shippingaddresschange", D), Wt(Se, "shippingratechange", R), Wt(Se, "change", b);
16576
16576
  var je;
16577
16577
  m && (t === "expressCheckout" ? je = m : je = function() {
16578
16578
  m(Se);
16579
- }), Wt(Se, "ready", je), Ae.useLayoutEffect(function() {
16579
+ }), Wt(Se, "ready", je), Te.useLayoutEffect(function() {
16580
16580
  if (re.current === null && Ve.current !== null && (H || ie)) {
16581
16581
  var F = null;
16582
16582
  ie ? F = ie.createElement(t, f) : H && (F = H.create(t, f)), re.current = F, z(F), F && F.mount(Ve.current);
16583
16583
  }
16584
16584
  }, [H, ie, f]);
16585
16585
  var O = bd(f);
16586
- return Ae.useEffect(function() {
16586
+ return Te.useEffect(function() {
16587
16587
  if (re.current) {
16588
16588
  var F = Uv(f, O, ["paymentRequest"]);
16589
16589
  F && "update" in re.current && re.current.update(F);
16590
16590
  }
16591
- }, [f, O]), Ae.useLayoutEffect(function() {
16591
+ }, [f, O]), Te.useLayoutEffect(function() {
16592
16592
  return function() {
16593
16593
  if (re.current && typeof re.current.destroy == "function")
16594
16594
  try {
@@ -16596,7 +16596,7 @@ var vd = function(t) {
16596
16596
  } catch {
16597
16597
  }
16598
16598
  };
16599
- }, []), /* @__PURE__ */ Ae.createElement("div", {
16599
+ }, []), /* @__PURE__ */ Te.createElement("div", {
16600
16600
  id: c,
16601
16601
  className: u,
16602
16602
  ref: Ve
@@ -16604,7 +16604,7 @@ var vd = function(t) {
16604
16604
  }, o = function(l) {
16605
16605
  vd("mounts <".concat(r, ">"));
16606
16606
  var c = l.id, u = l.className;
16607
- return /* @__PURE__ */ Ae.createElement("div", {
16607
+ return /* @__PURE__ */ Te.createElement("div", {
16608
16608
  id: c,
16609
16609
  className: u
16610
16610
  });
@@ -16627,7 +16627,7 @@ var vd = function(t) {
16627
16627
  onShippingRateChange: et.func,
16628
16628
  options: et.object
16629
16629
  }, i.displayName = r, i.__elementType = t, i;
16630
- }, pt = typeof window > "u", F9 = /* @__PURE__ */ Ae.createContext(null);
16630
+ }, pt = typeof window > "u", F9 = /* @__PURE__ */ Te.createContext(null);
16631
16631
  F9.displayName = "EmbeddedCheckoutProviderContext";
16632
16632
  var jl = function() {
16633
16633
  var t = vd("calls useStripe()"), n = t.stripe;
@@ -18157,9 +18157,9 @@ function TI(e) {
18157
18157
  xe === "checkbox" ? Xe === void 0 ? ye.checked = !!J : (ye.checked = !!(Array.isArray(J) && ~J.indexOf(Xe)), ye.value = Xe) : xe === "radio" ? (ye.checked = J === Xe, ye.value = Xe) : me === "select" && er && (ye.value = ye.value || [], ye.multiple = !0);
18158
18158
  }
18159
18159
  return ye;
18160
- }, [Q, Y, P.values]), _e = st(function() {
18160
+ }, [Q, Y, P.values]), _e = it(function() {
18161
18161
  return !Or(h.current, P.values);
18162
- }, [h.current, P.values]), gt = st(function() {
18162
+ }, [h.current, P.values]), gt = it(function() {
18163
18163
  return typeof s < "u" ? _e ? P.errors && Object.keys(P.errors).length === 0 : s !== !1 && pn(s) ? s(f) : s : P.errors && Object.keys(P.errors).length === 0;
18164
18164
  }, [s, _e, P.errors, f]), De = xt({}, P, {
18165
18165
  initialValues: h.current,
@@ -21592,7 +21592,7 @@ const Xg = /* @__PURE__ */ new Map([
21592
21592
  const [x, v] = X(!1);
21593
21593
  be(null);
21594
21594
  const [E, T] = X(0);
21595
- return /* @__PURE__ */ M(Ee, { w: h || "full", children: [
21595
+ return /* @__PURE__ */ M(Ae, { w: h || "full", children: [
21596
21596
  e && /* @__PURE__ */ p(
21597
21597
  we,
21598
21598
  {
@@ -21689,8 +21689,8 @@ const Xg = /* @__PURE__ */ new Map([
21689
21689
  borderRadius: "64px",
21690
21690
  ...n,
21691
21691
  children: [
21692
- /* @__PURE__ */ p(ot, { children: e }),
21693
- t && /* @__PURE__ */ p(Ee, { position: "absolute", right: "6px", children: t })
21692
+ /* @__PURE__ */ p(lt, { children: e }),
21693
+ t && /* @__PURE__ */ p(Ae, { position: "absolute", right: "6px", children: t })
21694
21694
  ]
21695
21695
  }
21696
21696
  ), OR = ({
@@ -21859,15 +21859,15 @@ const Xg = /* @__PURE__ */ new Map([
21859
21859
  return fe(), window.addEventListener("resize", fe), () => {
21860
21860
  window.removeEventListener("resize", fe);
21861
21861
  };
21862
- }, []), /* @__PURE__ */ p(ot, { children: i && /* @__PURE__ */ p(Ee, { position: "relative", children: a ? /* @__PURE__ */ p(ot, {}) : /* @__PURE__ */ p(vi, { in: o, animateOpacity: !0, children: /* @__PURE__ */ M(
21863
- Ee,
21862
+ }, []), /* @__PURE__ */ p(lt, { children: i && /* @__PURE__ */ p(Ae, { position: "relative", children: a ? /* @__PURE__ */ p(lt, {}) : /* @__PURE__ */ p(vi, { in: o, animateOpacity: !0, children: /* @__PURE__ */ M(
21863
+ Ae,
21864
21864
  {
21865
21865
  ref: Y,
21866
21866
  mt: "24px",
21867
21867
  fontFamily: "inherit",
21868
21868
  children: [
21869
21869
  /* @__PURE__ */ M(Gf, { gap: "16px", children: [
21870
- /* @__PURE__ */ M(Ee, { children: [
21870
+ /* @__PURE__ */ M(Ae, { children: [
21871
21871
  /* @__PURE__ */ p(
21872
21872
  we,
21873
21873
  {
@@ -21882,7 +21882,7 @@ const Xg = /* @__PURE__ */ new Map([
21882
21882
  }
21883
21883
  ),
21884
21884
  /* @__PURE__ */ p(
21885
- Ee,
21885
+ Ae,
21886
21886
  {
21887
21887
  bg: "#fff",
21888
21888
  height: "48px",
@@ -21910,7 +21910,7 @@ const Xg = /* @__PURE__ */ new Map([
21910
21910
  )
21911
21911
  ] }),
21912
21912
  /* @__PURE__ */ M(te, { width: "100%", gap: "8px", children: [
21913
- /* @__PURE__ */ M(Ee, { flexBasis: "50%", children: [
21913
+ /* @__PURE__ */ M(Ae, { flexBasis: "50%", children: [
21914
21914
  /* @__PURE__ */ p(
21915
21915
  we,
21916
21916
  {
@@ -21925,7 +21925,7 @@ const Xg = /* @__PURE__ */ new Map([
21925
21925
  }
21926
21926
  ),
21927
21927
  /* @__PURE__ */ p(
21928
- Ee,
21928
+ Ae,
21929
21929
  {
21930
21930
  bg: "#fff",
21931
21931
  height: "48px",
@@ -21952,7 +21952,7 @@ const Xg = /* @__PURE__ */ new Map([
21952
21952
  }
21953
21953
  )
21954
21954
  ] }),
21955
- /* @__PURE__ */ M(Ee, { flexBasis: "50%", children: [
21955
+ /* @__PURE__ */ M(Ae, { flexBasis: "50%", children: [
21956
21956
  /* @__PURE__ */ p(
21957
21957
  we,
21958
21958
  {
@@ -21967,7 +21967,7 @@ const Xg = /* @__PURE__ */ new Map([
21967
21967
  }
21968
21968
  ),
21969
21969
  /* @__PURE__ */ p(
21970
- Ee,
21970
+ Ae,
21971
21971
  {
21972
21972
  bg: "#fff",
21973
21973
  height: "48px",
@@ -22088,7 +22088,7 @@ const Xg = /* @__PURE__ */ new Map([
22088
22088
  mt: "12px",
22089
22089
  flexDirection: { base: "column", md: "row" },
22090
22090
  children: [
22091
- !(b != null && b.hideBackButton) && /* @__PURE__ */ p(
22091
+ /* @__PURE__ */ p(
22092
22092
  gl,
22093
22093
  {
22094
22094
  bgColor: "#F2F4F7",
@@ -26213,7 +26213,7 @@ const Qg = "Payment Completed", BR = ({
26213
26213
  c.close();
26214
26214
  };
26215
26215
  }, [n]), /* @__PURE__ */ p(
26216
- Ee,
26216
+ Ae,
26217
26217
  {
26218
26218
  display: t ? "block" : "none",
26219
26219
  position: "fixed",
@@ -26226,7 +26226,7 @@ const Qg = "Payment Completed", BR = ({
26226
26226
  overflow: "hidden",
26227
26227
  backgroundColor: "rgba(0, 0, 0, 0.4)",
26228
26228
  children: /* @__PURE__ */ M(
26229
- Ee,
26229
+ Ae,
26230
26230
  {
26231
26231
  className: `modal-content ${t ? "show" : ""}`,
26232
26232
  margin: { base: "0px", lg: "5% auto" },
@@ -26243,7 +26243,7 @@ const Qg = "Payment Completed", BR = ({
26243
26243
  } : {},
26244
26244
  children: [
26245
26245
  /* @__PURE__ */ p(
26246
- Ee,
26246
+ Ae,
26247
26247
  {
26248
26248
  onClick: n,
26249
26249
  fontSize: "20px",
@@ -26354,7 +26354,7 @@ const Qg = "Payment Completed", BR = ({
26354
26354
  maxHeight: { lg: "95vh", base: "80vh" },
26355
26355
  fontFamily: "Bricolage Grotesque",
26356
26356
  children: [
26357
- r && /* @__PURE__ */ M(ot, { children: [
26357
+ r && /* @__PURE__ */ M(lt, { children: [
26358
26358
  /* @__PURE__ */ p(Bv, {}),
26359
26359
  /* @__PURE__ */ p(
26360
26360
  Ll,
@@ -26377,7 +26377,7 @@ const Qg = "Payment Completed", BR = ({
26377
26377
  onClose: t
26378
26378
  }) => {
26379
26379
  const [n] = yr("(min-width: 768px)");
26380
- return /* @__PURE__ */ p(ot, { children: n ? /* @__PURE__ */ M(
26380
+ return /* @__PURE__ */ p(lt, { children: n ? /* @__PURE__ */ M(
26381
26381
  Dl,
26382
26382
  {
26383
26383
  isCentered: !0,
@@ -26480,7 +26480,7 @@ const Qg = "Payment Completed", BR = ({
26480
26480
  onConfirm: a
26481
26481
  }) => {
26482
26482
  const [o] = yr("(min-width: 768px)");
26483
- return /* @__PURE__ */ p(ot, { children: o ? /* @__PURE__ */ M(
26483
+ return /* @__PURE__ */ p(lt, { children: o ? /* @__PURE__ */ M(
26484
26484
  Dl,
26485
26485
  {
26486
26486
  isCentered: !0,
@@ -26695,7 +26695,7 @@ const Qg = "Payment Completed", BR = ({
26695
26695
  }
26696
26696
  ) }) })
26697
26697
  ] }), so = ({ children: e, isLoading: t, ...n }) => /* @__PURE__ */ p(
26698
- Ee,
26698
+ Ae,
26699
26699
  {
26700
26700
  borderRadius: "12px",
26701
26701
  border: "1px solid #E8EBF2",
@@ -26705,7 +26705,7 @@ const Qg = "Payment Completed", BR = ({
26705
26705
  cursor: "pointer",
26706
26706
  textAlign: "left",
26707
26707
  ...n,
26708
- children: t ? /* @__PURE__ */ p(te, { justifyContent: "center", children: /* @__PURE__ */ p(U1, { width: "20px", height: "20px" }) }) : /* @__PURE__ */ p(ot, { children: e })
26708
+ children: t ? /* @__PURE__ */ p(te, { justifyContent: "center", children: /* @__PURE__ */ p(U1, { width: "20px", height: "20px" }) }) : /* @__PURE__ */ p(lt, { children: e })
26709
26709
  }
26710
26710
  ), L1 = Od(
26711
26711
  ({
@@ -26832,7 +26832,7 @@ const Qg = "Payment Completed", BR = ({
26832
26832
  }
26833
26833
  }), f == null || f.show());
26834
26834
  }, [l, r, f, u]);
26835
- return /* @__PURE__ */ p(ot, { children: f && ((g == null ? void 0 : g.applePay) || (g == null ? void 0 : g.googlePay)) && /* @__PURE__ */ M(ot, { children: [
26835
+ return /* @__PURE__ */ p(lt, { children: f && ((g == null ? void 0 : g.applePay) || (g == null ? void 0 : g.googlePay)) && /* @__PURE__ */ M(lt, { children: [
26836
26836
  (g == null ? void 0 : g.applePay) && /* @__PURE__ */ p(so, { onClick: x, disabled: b, children: /* @__PURE__ */ M(
26837
26837
  te,
26838
26838
  {
@@ -26997,7 +26997,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
26997
26997
  }
26998
26998
  );
26999
26999
  return /* @__PURE__ */ p(
27000
- Ee,
27000
+ Ae,
27001
27001
  {
27002
27002
  px: b ? "16px" : { base: "16px", lg: "32px" },
27003
27003
  zIndex: 10,
@@ -27005,17 +27005,17 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27005
27005
  position: b ? "static" : { base: "static", lg: "fixed" },
27006
27006
  width: b ? "100%" : { base: "100%", lg: `${P}px` },
27007
27007
  children: /* @__PURE__ */ M(
27008
- Ee,
27008
+ Ae,
27009
27009
  {
27010
27010
  width: b ? "100%" : { base: "100%", lg: T ?? "356px" },
27011
27011
  mx: "auto",
27012
27012
  children: [
27013
27013
  /* @__PURE__ */ M(
27014
- Ee,
27014
+ Ae,
27015
27015
  {
27016
27016
  textAlign: b ? "center" : { base: "center", lg: "left" },
27017
27017
  children: [
27018
- m.totalAmountPlusFees <= 0 ? /* @__PURE__ */ p(ot, {}) : typeof e == "string" ? /* @__PURE__ */ p(W, { color: "#7D879B", children: e }) : /* @__PURE__ */ p(ot, { children: e }),
27018
+ m.totalAmountPlusFees <= 0 ? /* @__PURE__ */ p(lt, {}) : typeof e == "string" ? /* @__PURE__ */ p(W, { color: "#7D879B", children: e }) : /* @__PURE__ */ p(lt, { children: e }),
27019
27019
  r ? /* @__PURE__ */ p(yd, { height: "20px", width: "100px", mx: "auto" }) : /* @__PURE__ */ p(
27020
27020
  W,
27021
27021
  {
@@ -27032,7 +27032,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27032
27032
  }
27033
27033
  ),
27034
27034
  /* @__PURE__ */ M(vi, { in: !R && !b || _, children: [
27035
- (pe = S == null ? void 0 : S[0]) != null && pe.image ? /* @__PURE__ */ p(ot, { children: Array.isArray(S) && S.length > 0 && /* @__PURE__ */ p(Ee, { pt: "20px", pb: "12px", borderBottom: "1px solid #E8EBF2", children: S.map((z, re) => /* @__PURE__ */ M(te, { justifyContent: "space-between", children: [
27035
+ (pe = S == null ? void 0 : S[0]) != null && pe.image ? /* @__PURE__ */ p(lt, { children: Array.isArray(S) && S.length > 0 && /* @__PURE__ */ p(Ae, { pt: "20px", pb: "12px", borderBottom: "1px solid #E8EBF2", children: S.map((z, re) => /* @__PURE__ */ M(te, { justifyContent: "space-between", children: [
27036
27036
  /* @__PURE__ */ p(
27037
27037
  Ai,
27038
27038
  {
@@ -27044,7 +27044,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27044
27044
  borderRadius: "6px"
27045
27045
  }
27046
27046
  ),
27047
- /* @__PURE__ */ M(Ee, { children: [
27047
+ /* @__PURE__ */ M(Ae, { children: [
27048
27048
  /* @__PURE__ */ M(
27049
27049
  W,
27050
27050
  {
@@ -27065,7 +27065,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27065
27065
  vn(z.price)
27066
27066
  ] })
27067
27067
  ] })
27068
- ] }, re)) }) }) : /* @__PURE__ */ M(Ee, { borderBottom: "1px solid #E8EBF2", py: "12px", children: [
27068
+ ] }, re)) }) }) : /* @__PURE__ */ M(Ae, { borderBottom: "1px solid #E8EBF2", py: "12px", children: [
27069
27069
  /* @__PURE__ */ M(te, { justifyContent: "space-between", alignItems: "center", children: [
27070
27070
  /* @__PURE__ */ p(
27071
27071
  Ai,
@@ -27078,7 +27078,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27078
27078
  borderRadius: "6px"
27079
27079
  }
27080
27080
  ),
27081
- /* @__PURE__ */ M(Ee, { children: [
27081
+ /* @__PURE__ */ M(Ae, { children: [
27082
27082
  /* @__PURE__ */ M(
27083
27083
  W,
27084
27084
  {
@@ -27100,7 +27100,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27100
27100
  ] })
27101
27101
  ] })
27102
27102
  ] }),
27103
- Array.isArray(S) && S.length > 0 && /* @__PURE__ */ p(Ee, { pt: "12px", children: S.map((z, re) => /* @__PURE__ */ M(
27103
+ Array.isArray(S) && S.length > 0 && /* @__PURE__ */ p(Ae, { pt: "12px", children: S.map((z, re) => /* @__PURE__ */ M(
27104
27104
  te,
27105
27105
  {
27106
27106
  justifyContent: "space-between",
@@ -27130,7 +27130,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27130
27130
  vn(n)
27131
27131
  ] })
27132
27132
  ] }),
27133
- !(a != null && a.isFullDiscount) && /* @__PURE__ */ M(ot, { children: [
27133
+ !(a != null && a.isFullDiscount) && /* @__PURE__ */ M(lt, { children: [
27134
27134
  " ",
27135
27135
  h.localTaxFees > 0 && h.shouldApplyTax && /* @__PURE__ */ M(te, { width: "100%", justifyContent: "space-between", children: [
27136
27136
  /* @__PURE__ */ p(te, { alignItems: "center", children: /* @__PURE__ */ M(W, { fontWeight: 400, mr: "8px", children: [
@@ -27169,7 +27169,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27169
27169
  m.transactionFeeValue > 0 && /* @__PURE__ */ p(
27170
27170
  Gp,
27171
27171
  {
27172
- body: /* @__PURE__ */ p(Ee, { mb: "20px", children: (Se = m.applied_fees) == null ? void 0 : Se.map((z) => /* @__PURE__ */ M(we, { mb: "5px", children: [
27172
+ body: /* @__PURE__ */ p(Ae, { mb: "20px", children: (Se = m.applied_fees) == null ? void 0 : Se.map((z) => /* @__PURE__ */ M(we, { mb: "5px", children: [
27173
27173
  z.display_name,
27174
27174
  ": ",
27175
27175
  z.amount,
@@ -27236,7 +27236,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27236
27236
  vn(a == null ? void 0 : a.amount)
27237
27237
  ] })
27238
27238
  ] }),
27239
- i && !(a != null && a.amount) && n > 0 && /* @__PURE__ */ p(Ee, { mb: "20px", children: /* @__PURE__ */ M(
27239
+ i && !(a != null && a.amount) && n > 0 && /* @__PURE__ */ p(Ae, { mb: "20px", children: /* @__PURE__ */ M(
27240
27240
  te,
27241
27241
  {
27242
27242
  alignItems: "center",
@@ -27365,7 +27365,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27365
27365
  errors: s,
27366
27366
  setFieldValue: l,
27367
27367
  proceedButton: c
27368
- }) => /* @__PURE__ */ M(ot, { children: [
27368
+ }) => /* @__PURE__ */ M(lt, { children: [
27369
27369
  /* @__PURE__ */ M(te, { flexDirection: "column", gap: "20px", children: [
27370
27370
  t && /* @__PURE__ */ p(
27371
27371
  si,
@@ -27399,7 +27399,7 @@ const Au = (e) => Math.round((e + Number.EPSILON) * 100) / 100, vn = (e) => {
27399
27399
  bg: a ? "#FFE1DE" : Qe.white100
27400
27400
  }
27401
27401
  ),
27402
- r && /* @__PURE__ */ M(Ee, { position: "relative", zIndex: "9", children: [
27402
+ r && /* @__PURE__ */ M(Ae, { position: "relative", zIndex: "9", children: [
27403
27403
  /* @__PURE__ */ p(
27404
27404
  W1,
27405
27405
  {
@@ -27925,7 +27925,7 @@ const KR = (e) => /* @__PURE__ */ M(cn, { viewBox: "0 0 32 32", ...e, fill: "non
27925
27925
  FooterElement: e,
27926
27926
  hidePoweredBy: t,
27927
27927
  showFooterElement: n = !1
27928
- }) => /* @__PURE__ */ M(Ee, { mt: "16px", children: [
27928
+ }) => /* @__PURE__ */ M(Ae, { mt: "16px", children: [
27929
27929
  n ? e ?? /* @__PURE__ */ p(
27930
27930
  we,
27931
27931
  {
@@ -27937,7 +27937,7 @@ const KR = (e) => /* @__PURE__ */ M(cn, { viewBox: "0 0 32 32", ...e, fill: "non
27937
27937
  color: "#586172",
27938
27938
  children: "As the Merchant of Record, Mainstack handles the collection and remittance of all applicable taxes for transactions processed on our platform. This ensures compliance with local regulations and removes the burden of tax management from merchants."
27939
27939
  }
27940
- ) : /* @__PURE__ */ p(ot, {}),
27940
+ ) : /* @__PURE__ */ p(lt, {}),
27941
27941
  /* @__PURE__ */ M(
27942
27942
  te,
27943
27943
  {
@@ -28340,16 +28340,16 @@ const Tu = [
28340
28340
  validationSchema: J ? Jl : Wi,
28341
28341
  validateOnChange: !1,
28342
28342
  onSubmit: (q, { setSubmitting: ge }) => {
28343
- const lt = _i();
28344
- if (Bt(lt), ge(!0), Nt === 0 || me != null && me.isFullDiscount) {
28343
+ const st = _i();
28344
+ if (Bt(st), ge(!0), Nt === 0 || me != null && me.isFullDiscount) {
28345
28345
  u({
28346
28346
  fullname: q.fullname,
28347
28347
  email: q.email,
28348
- reference: lt,
28348
+ reference: st,
28349
28349
  amount: 0,
28350
28350
  metadata: {
28351
28351
  ...$e,
28352
- reference: lt,
28352
+ reference: st,
28353
28353
  country: fo($e.country)
28354
28354
  }
28355
28355
  });
@@ -28357,11 +28357,11 @@ const Tu = [
28357
28357
  }
28358
28358
  const yt = {
28359
28359
  amount: Nt,
28360
- reference: lt,
28360
+ reference: st,
28361
28361
  currency: v,
28362
28362
  metadata: {
28363
28363
  ...$e,
28364
- reference: lt,
28364
+ reference: st,
28365
28365
  payment_mode: q.payment_mode
28366
28366
  }
28367
28367
  }, Cc = {
@@ -28369,7 +28369,7 @@ const Tu = [
28369
28369
  currency: v,
28370
28370
  metadata: {
28371
28371
  ...$e,
28372
- reference: lt,
28372
+ reference: st,
28373
28373
  payment_mode: q.payment_mode
28374
28374
  },
28375
28375
  callback_url: le
@@ -28429,7 +28429,7 @@ const Tu = [
28429
28429
  _t && !_e && (h && h({
28430
28430
  message: `Error loading transaction information: ${((wa = _t == null ? void 0 : _t.raw) == null ? void 0 : wa.message) ?? _t ?? ""}, please reload or contact us.`
28431
28431
  }), console.error(((To = _t == null ? void 0 : _t.raw) == null ? void 0 : To.message) ?? _t));
28432
- const fc = (yp = (gp = (mp = ee == null ? void 0 : ee.payload) == null ? void 0 : mp.tax_calculation) == null ? void 0 : gp.breakdown[0]) == null ? void 0 : yp.percentage_decimal, ma = ((vp = (bp = ee == null ? void 0 : ee.payload) == null ? void 0 : bp.tax_calculation) == null ? void 0 : vp.local_tax) ?? 0, Yi = ((xp = (Sp = ee == null ? void 0 : ee.payload) == null ? void 0 : Sp.tax_calculation) == null ? void 0 : xp.dollar_tax) ?? 0, pc = ((wp = ee == null ? void 0 : ee.payload) == null ? void 0 : wp.local_amount) ?? 0, mo = ((Cp = ee == null ? void 0 : ee.payload) == null ? void 0 : Cp.local_transaction_fee) ?? 0, hc = ((Ap = ee == null ? void 0 : ee.payload) == null ? void 0 : Ap.currency_switching_fee) ?? 0, ga = ((Tp = ee == null ? void 0 : ee.payload) == null ? void 0 : Tp.local_currency_switching_fee) ?? 0, Xi = ((Ep = ee == null ? void 0 : ee.payload) == null ? void 0 : Ep.dollar_currency_switching_fee) ?? 0, Ar = parseFloat(pc) + parseFloat(mo) + (ce ? 0 : parseFloat(ma)) + (nr ? Number(ga) : 0), Nt = st(() => {
28432
+ const fc = (yp = (gp = (mp = ee == null ? void 0 : ee.payload) == null ? void 0 : mp.tax_calculation) == null ? void 0 : gp.breakdown[0]) == null ? void 0 : yp.percentage_decimal, ma = ((vp = (bp = ee == null ? void 0 : ee.payload) == null ? void 0 : bp.tax_calculation) == null ? void 0 : vp.local_tax) ?? 0, Yi = ((xp = (Sp = ee == null ? void 0 : ee.payload) == null ? void 0 : Sp.tax_calculation) == null ? void 0 : xp.dollar_tax) ?? 0, pc = ((wp = ee == null ? void 0 : ee.payload) == null ? void 0 : wp.local_amount) ?? 0, mo = ((Cp = ee == null ? void 0 : ee.payload) == null ? void 0 : Cp.local_transaction_fee) ?? 0, hc = ((Ap = ee == null ? void 0 : ee.payload) == null ? void 0 : Ap.currency_switching_fee) ?? 0, ga = ((Tp = ee == null ? void 0 : ee.payload) == null ? void 0 : Tp.local_currency_switching_fee) ?? 0, Xi = ((Ep = ee == null ? void 0 : ee.payload) == null ? void 0 : Ep.dollar_currency_switching_fee) ?? 0, Ar = parseFloat(pc) + parseFloat(mo) + (ce ? 0 : parseFloat(ma)) + (nr ? Number(ga) : 0), Nt = it(() => {
28433
28433
  var q;
28434
28434
  return v === Ue.UGX ? Math.ceil(Ar) * 100 : Math.round(
28435
28435
  Ar * ((q = ee == null ? void 0 : ee.payload) != null && q.is_zero_decimal_currency ? 1 : 100)
@@ -28488,7 +28488,7 @@ const Tu = [
28488
28488
  q !== 0 && xe !== "" && (Number(E) - q > 0 && Number(E) - q < 1 ? St(1) : St(E - q));
28489
28489
  }, [me, j]);
28490
28490
  let ba;
28491
- const yc = st(() => {
28491
+ const yc = it(() => {
28492
28492
  let q = "";
28493
28493
  switch (!0) {
28494
28494
  case Tu.indexOf(v) > -1:
@@ -28541,16 +28541,16 @@ const Tu = [
28541
28541
  var ge;
28542
28542
  if (k(!0), // (isSingleColumn || isLessThan768) &&
28543
28543
  Bn != null && Bn.current) {
28544
- const lt = (ge = Bn == null ? void 0 : Bn.current) == null ? void 0 : ge.offsetTop, yt = lt - 100;
28544
+ const st = (ge = Bn == null ? void 0 : Bn.current) == null ? void 0 : ge.offsetTop, yt = st - 100;
28545
28545
  ua(
28546
- Z || Dn ? lt : yt
28546
+ Z || Dn ? st : yt
28547
28547
  );
28548
28548
  }
28549
28549
  },
28550
28550
  onError(ge) {
28551
28551
  var yt;
28552
- let lt = ((yt = ge == null ? void 0 : ge.raw) == null ? void 0 : yt.message) ?? "Error loading payment gateway";
28553
- lt.includes("ip_address") && (lt = "Payment failed: An extension may be blocking us from completing your payment or your browser may be unsupported. Please try again."), Ct(lt, At.error);
28552
+ let st = ((yt = ge == null ? void 0 : ge.raw) == null ? void 0 : yt.message) ?? "Error loading payment gateway";
28553
+ st.includes("ip_address") && (st = "Payment failed: An extension may be blocking us from completing your payment or your browser may be unsupported. Please try again."), Ct(st, At.error);
28554
28554
  }
28555
28555
  }
28556
28556
  );
@@ -28576,17 +28576,17 @@ const Tu = [
28576
28576
  Ue.KES
28577
28577
  ].includes(v);
28578
28578
  kt(!0);
28579
- let lt = {};
28579
+ let st = {};
28580
28580
  if (c) {
28581
28581
  const Cc = await c(j.values);
28582
- if (lt = await j.validateForm(), Cc.terminate) {
28582
+ if (st = await j.validateForm(), Cc.terminate) {
28583
28583
  kt(!1);
28584
28584
  return;
28585
28585
  }
28586
28586
  ge && kt(!1);
28587
28587
  } else
28588
- lt = await j.validateForm(), ge && kt(!1);
28589
- if (!(Object.keys(lt).includes("email") || Object.keys(lt).includes("fullname"))) {
28588
+ st = await j.validateForm(), ge && kt(!1);
28589
+ if (!(Object.keys(st).includes("email") || Object.keys(st).includes("fullname"))) {
28590
28590
  if (kt(!1), Nt === 0 || me != null && me.isFullDiscount)
28591
28591
  if (j.values.email !== Rn && !s)
28592
28592
  ns();
@@ -28613,7 +28613,7 @@ const Tu = [
28613
28613
  onClose: va,
28614
28614
  onOpen: vo
28615
28615
  } = _a(), So = async () => {
28616
- var q, ge, lt;
28616
+ var q, ge, st;
28617
28617
  U({
28618
28618
  url: "",
28619
28619
  reference: "",
@@ -28632,7 +28632,7 @@ const Tu = [
28632
28632
  );
28633
28633
  } catch (yt) {
28634
28634
  Ct(
28635
- `${((lt = yt == null ? void 0 : yt.raw) == null ? void 0 : lt.message) ?? "Failed to complete transaction"}`,
28635
+ `${((st = yt == null ? void 0 : yt.raw) == null ? void 0 : st.message) ?? "Failed to complete transaction"}`,
28636
28636
  At.error
28637
28637
  ), j.setSubmitting(!1), kt(!1);
28638
28638
  }
@@ -28689,10 +28689,10 @@ const Tu = [
28689
28689
  v
28690
28690
  ) && sc && H || w && H, V = !$ && Xt("crypto") && W && xo || [Ue.NGN, Ue.GHS, Ue.KES].includes(
28691
28691
  v
28692
- ) && !$ && N !== "ips", Te = () => {
28692
+ ) && !$ && N !== "ips", Ee = () => {
28693
28693
  Er && is(), Co(), k(!1);
28694
28694
  };
28695
- return /* @__PURE__ */ p(ot, { children: /* @__PURE__ */ M(
28695
+ return /* @__PURE__ */ p(lt, { children: /* @__PURE__ */ M(
28696
28696
  Gf,
28697
28697
  {
28698
28698
  py: (P == null ? void 0 : P.padding) ?? "0px",
@@ -28771,44 +28771,52 @@ const Tu = [
28771
28771
  overflowY: "auto",
28772
28772
  height: { base: "100%", lg: "90vh" },
28773
28773
  px: Z ? "16px" : { base: "0px", lg: "32px" },
28774
- children: /* @__PURE__ */ M(Ee, { width: "100%", maxWidth: "560px", children: [
28775
- /* @__PURE__ */ p(ot, { children: m }),
28774
+ children: /* @__PURE__ */ M(Ae, { width: "100%", maxWidth: "560px", children: [
28775
+ !(P != null && P.hideBackButton) && /* @__PURE__ */ p(
28776
+ gl,
28777
+ {
28778
+ bgColor: "#fff",
28779
+ color: "#111215",
28780
+ padding: "0px",
28781
+ fontWeight: "600",
28782
+ height: "20px",
28783
+ _hover: {
28784
+ backgroundColor: "none"
28785
+ },
28786
+ _active: {
28787
+ backgroundColor: "none"
28788
+ },
28789
+ mb: "20px",
28790
+ label: /* @__PURE__ */ M(te, { alignItems: "center", gap: "12px", children: [
28791
+ /* @__PURE__ */ p(
28792
+ ja,
28793
+ {
28794
+ transform: "rotate(-90deg)",
28795
+ transition: "transform 0.2s",
28796
+ boxSize: "20px"
28797
+ }
28798
+ ),
28799
+ (P == null ? void 0 : P.back_button_label) ?? "Back"
28800
+ ] }),
28801
+ width: "fit-content",
28802
+ fontFamily: "inherit",
28803
+ onClick: l
28804
+ }
28805
+ ),
28806
+ m && /* @__PURE__ */ p(Ae, { mb: "20px", children: m }),
28776
28807
  /* @__PURE__ */ M(SI, { value: j, children: [
28777
- /* @__PURE__ */ p("form", { onSubmit: j.handleSubmit, children: /* @__PURE__ */ M(Ee, { borderBottom: "1px solid #E8EBF2", py: "20px", children: [
28778
- !(P != null && P.hideBackButton) && /* @__PURE__ */ p(
28779
- gl,
28780
- {
28781
- bgColor: "#fff",
28782
- color: "#111215",
28783
- padding: "0px",
28784
- fontWeight: "600",
28785
- label: /* @__PURE__ */ M(te, { alignItems: "center", gap: "12px", children: [
28786
- /* @__PURE__ */ p(
28787
- ja,
28788
- {
28789
- transform: "rotate(-90deg)",
28790
- transition: "transform 0.2s",
28791
- boxSize: "20px"
28792
- }
28793
- ),
28794
- (P == null ? void 0 : P.back_button_label) ?? "Back"
28795
- ] }),
28796
- width: "fit-content",
28797
- fontFamily: "inherit",
28798
- onClick: l
28799
- }
28800
- ),
28808
+ /* @__PURE__ */ p("form", { onSubmit: j.handleSubmit, children: /* @__PURE__ */ M(Ae, { borderBottom: "1px solid #E8EBF2", pb: "20px", children: [
28801
28809
  /* @__PURE__ */ M(
28802
28810
  te,
28803
28811
  {
28804
28812
  justifyContent: "space-between",
28805
28813
  alignItems: "center",
28806
28814
  cursor: "pointer",
28807
- onClick: Te,
28815
+ onClick: Ee,
28808
28816
  opacity: Tr ? 1 : 0.6,
28809
28817
  transition: "opacity 0.2s",
28810
28818
  children: [
28811
- $i(n) ? /* @__PURE__ */ p(ot, { children: n }) : /* @__PURE__ */ M(Ee, { children: [
28819
+ $i(n) ? /* @__PURE__ */ p(lt, { children: n }) : /* @__PURE__ */ M(Ae, { children: [
28812
28820
  /* @__PURE__ */ p(
28813
28821
  we,
28814
28822
  {
@@ -28843,7 +28851,7 @@ const Tu = [
28843
28851
  ]
28844
28852
  }
28845
28853
  ),
28846
- /* @__PURE__ */ p(vi, { in: Tr, children: /* @__PURE__ */ p(Ee, { transition: "all 0.2s", mt: "20px", children: s ? /* @__PURE__ */ M(ot, { children: [
28854
+ /* @__PURE__ */ p(vi, { in: Tr, children: /* @__PURE__ */ p(Ae, { transition: "all 0.2s", mt: "20px", children: s ? /* @__PURE__ */ M(lt, { children: [
28847
28855
  s,
28848
28856
  /* @__PURE__ */ p(
28849
28857
  ny,
@@ -28886,7 +28894,7 @@ const Tu = [
28886
28894
  }
28887
28895
  ) }) })
28888
28896
  ] }) }),
28889
- Ar > 0 && /* @__PURE__ */ M(Ee, { width: "100%", children: [
28897
+ Ar > 0 && /* @__PURE__ */ M(Ae, { width: "100%", children: [
28890
28898
  /* @__PURE__ */ M(
28891
28899
  te,
28892
28900
  {
@@ -28906,7 +28914,7 @@ const Tu = [
28906
28914
  cursor: "not-allowed"
28907
28915
  },
28908
28916
  children: [
28909
- /* @__PURE__ */ M(Ee, { children: [
28917
+ /* @__PURE__ */ M(Ae, { children: [
28910
28918
  /* @__PURE__ */ p(
28911
28919
  we,
28912
28920
  {
@@ -28961,8 +28969,8 @@ const Tu = [
28961
28969
  }
28962
28970
  }
28963
28971
  },
28964
- children: /* @__PURE__ */ M(Ee, { transition: "all 0.2s", pb: "200px", children: [
28965
- /* @__PURE__ */ p(te, { gap: "12px", children: (Xt("wallet") || Xt("cashapp")) && !(me != null && me.isFullDiscount) && /* @__PURE__ */ p(ot, { children: H && v !== Ue.NGN && v !== Ue.GHS && v !== Ue.KES && /* @__PURE__ */ M(ot, { children: [
28972
+ children: /* @__PURE__ */ M(Ae, { transition: "all 0.2s", pb: "200px", children: [
28973
+ /* @__PURE__ */ p(te, { gap: "12px", children: (Xt("wallet") || Xt("cashapp")) && !(me != null && me.isFullDiscount) && /* @__PURE__ */ p(lt, { children: H && v !== Ue.NGN && v !== Ue.GHS && v !== Ue.KES && /* @__PURE__ */ M(lt, { children: [
28966
28974
  " ",
28967
28975
  /* @__PURE__ */ p(
28968
28976
  L1,
@@ -29071,7 +29079,7 @@ const Tu = [
29071
29079
  lg: "flex"
29072
29080
  },
29073
29081
  children: wo.map((q, ge) => /* @__PURE__ */ p(
29074
- Ee,
29082
+ Ae,
29075
29083
  {
29076
29084
  flexShrink: 0,
29077
29085
  children: /* @__PURE__ */ p(
@@ -29100,7 +29108,7 @@ const Tu = [
29100
29108
  }
29101
29109
  )
29102
29110
  ] }),
29103
- /* @__PURE__ */ p(Ee, { ref: Bn, children: /* @__PURE__ */ p(
29111
+ /* @__PURE__ */ p(Ae, { ref: Bn, children: /* @__PURE__ */ p(
29104
29112
  OR,
29105
29113
  {
29106
29114
  metadata: {
@@ -29133,7 +29141,7 @@ const Tu = [
29133
29141
  isEuroCurrencies: Tu.indexOf(v) > -1,
29134
29142
  paymentWidth: as,
29135
29143
  customizations: P,
29136
- onGoBack: Te,
29144
+ onGoBack: Ee,
29137
29145
  Styles: {
29138
29146
  lSpan: se || Z ? 12 : { base: 12, lg: 5 },
29139
29147
  rSpan: se || Z ? 12 : { base: 12, lg: 7 }
@@ -29144,7 +29152,7 @@ const Tu = [
29144
29152
  }
29145
29153
  ),
29146
29154
  /* @__PURE__ */ p(
29147
- Ee,
29155
+ Ae,
29148
29156
  {
29149
29157
  mb: V ? "0px" : "12px",
29150
29158
  children: V && /* @__PURE__ */ p(ty, {})
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "1.0.49",
4
+ "version": "1.0.51",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [