mainstack-payments 0.5.9 → 0.5.10

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,5 +1,5 @@
1
1
  import { jsx as S, jsxs as H, Fragment as rn } from "react/jsx-runtime";
2
- import { Colors as Zt, CancelFilledIcon as Ql, Input as Ta, CountrySelect as w0, Button as yn, LockIcon as A0, customSnackbar as Pt, SnackbarType as kt, GooglePayIcon as T0, PhoneNumberInput as C0, InfoIcon as Xc, Paragraph as E0, NotificationsFilledIcon as Pf, ClickTooltip as kf, CloseIcon as P0, Loader as k0, MainstackProvider as $0, CustomSnackbarContainer as _0 } from "mainstack-design-system";
2
+ import { Colors as Zt, CancelFilledIcon as Ql, Input as Ta, CountrySelect as w0, Button as yn, LockIcon as A0, customSnackbar as kt, SnackbarType as $t, GooglePayIcon as T0, PhoneNumberInput as C0, InfoIcon as Xc, Paragraph as E0, NotificationsFilledIcon as Pf, ClickTooltip as kf, CloseIcon as P0, Loader as k0, MainstackProvider as $0, CustomSnackbarContainer as _0 } from "mainstack-design-system";
3
3
  import * as R from "react";
4
4
  import _e, { createContext as sn, useContext as Ge, useRef as Ee, useEffect as pe, useCallback as fe, useState as ce, useId as ja, useLayoutEffect as ai, forwardRef as Xt, useMemo as ut, useReducer as F0, useInsertionEffect as Qu, createElement as ed, cloneElement as M0, Children as R0, isValidElement as Qm, memo as O0, useSyncExternalStore as I0, PureComponent as D0, useImperativeHandle as B0 } from "react";
5
5
  import { createPortal as eg } from "react-dom";
@@ -328,7 +328,7 @@ Vs.exports;
328
328
  return g(v(C));
329
329
  };
330
330
  }
331
- var vt = Array.prototype, Ct = Function.prototype, pt = Object.prototype, mt = G["__core-js_shared__"], P = Ct.toString, I = pt.hasOwnProperty, j = function() {
331
+ var vt = Array.prototype, Et = Function.prototype, pt = Object.prototype, mt = G["__core-js_shared__"], P = Et.toString, I = pt.hasOwnProperty, j = function() {
332
332
  var g = /[^.]+$/.exec(mt && mt.keys && mt.keys.IE_PROTO || "");
333
333
  return g ? "Symbol(src)_1." + g : "";
334
334
  }(), Z = pt.toString, ue = P.call(Object), he = RegExp(
@@ -426,7 +426,7 @@ Vs.exports;
426
426
  string: new ee()
427
427
  };
428
428
  }
429
- function Mt(g) {
429
+ function wt(g) {
430
430
  var v = hr(this, g).delete(g);
431
431
  return this.size -= v ? 1 : 0, v;
432
432
  }
@@ -440,7 +440,7 @@ Vs.exports;
440
440
  var C = hr(this, g), z = C.size;
441
441
  return C.set(g, v), this.size += C.size == z ? 0 : 1, this;
442
442
  }
443
- Hn.prototype.clear = Lc, Hn.prototype.delete = Mt, Hn.prototype.get = zc, Hn.prototype.has = Vc, Hn.prototype.set = jc;
443
+ Hn.prototype.clear = Lc, Hn.prototype.delete = wt, Hn.prototype.get = zc, Hn.prototype.has = Vc, Hn.prototype.set = jc;
444
444
  function Kn(g) {
445
445
  var v = this.__data__ = new xt(g);
446
446
  this.size = v.size;
@@ -2714,7 +2714,7 @@ function h1(e, t, n, r, a) {
2714
2714
  e = e ? e[t[r]] : a;
2715
2715
  return e === a ? n : e;
2716
2716
  }
2717
- const At = (e, t, n) => {
2717
+ const Tt = (e, t, n) => {
2718
2718
  const r = h1(e, `colors.${t}`, t);
2719
2719
  try {
2720
2720
  return d1(r), r;
@@ -2725,10 +2725,10 @@ const At = (e, t, n) => {
2725
2725
  const [t, n, r] = ad(e);
2726
2726
  return (t * 299 + n * 587 + r * 114) / 1e3;
2727
2727
  }, m1 = (e) => (t) => {
2728
- const n = At(t, e);
2728
+ const n = Tt(t, e);
2729
2729
  return p1(n) < 128 ? "dark" : "light";
2730
2730
  }, g1 = (e) => (t) => m1(e)(t) === "dark", Oa = (e, t) => (n) => {
2731
- const r = At(n, e);
2731
+ const r = Tt(n, e);
2732
2732
  return u1(r, 1 - t);
2733
2733
  };
2734
2734
  function Vf(e = "1rem", t = "rgba(255, 255, 255, 0.15)") {
@@ -3000,7 +3000,7 @@ const _1 = ii((e) => {
3000
3000
  ...D1,
3001
3001
  container: B1
3002
3002
  }, N1 = (e) => typeof e == "function";
3003
- function Tt(e, ...t) {
3003
+ function Ct(e, ...t) {
3004
3004
  return N1(e) ? e(...t) : e;
3005
3005
  }
3006
3006
  const { definePartsStyle: mg, defineMultiStyleConfig: L1 } = Ne(wx.keys), Ca = J("avatar-border-color"), ko = J("avatar-bg"), Vo = J("avatar-font-size"), Ia = J("avatar-size"), z1 = {
@@ -3044,9 +3044,9 @@ const { definePartsStyle: mg, defineMultiStyleConfig: L1 } = Ne(wx.keys), Ca = J
3044
3044
  fontSize: Vo.reference,
3045
3045
  lineHeight: "1"
3046
3046
  }, G1 = mg((e) => ({
3047
- badge: Tt(z1, e),
3048
- excessLabel: Tt(V1, e),
3049
- container: Tt(j1, e),
3047
+ badge: Ct(z1, e),
3048
+ excessLabel: Ct(V1, e),
3049
+ container: Ct(j1, e),
3050
3050
  label: U1
3051
3051
  }));
3052
3052
  function Yn(e) {
@@ -3194,7 +3194,7 @@ const W1 = {
3194
3194
  borderColor: t === "gray" ? n : "currentColor",
3195
3195
  ".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": { marginEnd: "-1px" },
3196
3196
  ".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": { marginBottom: "-1px" },
3197
- ...Tt(gg, e)
3197
+ ...Ct(gg, e)
3198
3198
  };
3199
3199
  }, ow = {
3200
3200
  yellow: {
@@ -3437,7 +3437,7 @@ const W1 = {
3437
3437
  }, ww = Ts((e) => ({
3438
3438
  icon: xw,
3439
3439
  container: vw,
3440
- control: Tt(bw, e),
3440
+ control: Ct(bw, e),
3441
3441
  label: Sw
3442
3442
  })), Aw = {
3443
3443
  sm: Ts({
@@ -3594,7 +3594,7 @@ const Lw = {
3594
3594
  }, Hw = cu((e) => ({
3595
3595
  overlay: Lw,
3596
3596
  dialogContainer: zw,
3597
- dialog: Tt(Vw, e),
3597
+ dialog: Ct(Vw, e),
3598
3598
  header: jw,
3599
3599
  closeButton: Uw,
3600
3600
  body: Gw,
@@ -3829,13 +3829,13 @@ const wA = Dn((e) => {
3829
3829
  userSelect: "all"
3830
3830
  },
3831
3831
  _invalid: {
3832
- borderColor: At(t, r),
3833
- boxShadow: `0 0 0 1px ${At(t, r)}`
3832
+ borderColor: Tt(t, r),
3833
+ boxShadow: `0 0 0 1px ${Tt(t, r)}`
3834
3834
  },
3835
3835
  _focusVisible: {
3836
3836
  zIndex: 1,
3837
- borderColor: At(t, n),
3838
- boxShadow: `0 0 0 1px ${At(t, n)}`
3837
+ borderColor: Tt(t, n),
3838
+ boxShadow: `0 0 0 1px ${Tt(t, n)}`
3839
3839
  }
3840
3840
  },
3841
3841
  addon: {
@@ -3859,11 +3859,11 @@ const wA = Dn((e) => {
3859
3859
  userSelect: "all"
3860
3860
  },
3861
3861
  _invalid: {
3862
- borderColor: At(t, r)
3862
+ borderColor: Tt(t, r)
3863
3863
  },
3864
3864
  _focusVisible: {
3865
3865
  bg: "transparent",
3866
- borderColor: At(t, n)
3866
+ borderColor: Tt(t, n)
3867
3867
  }
3868
3868
  },
3869
3869
  addon: {
@@ -3886,12 +3886,12 @@ const wA = Dn((e) => {
3886
3886
  userSelect: "all"
3887
3887
  },
3888
3888
  _invalid: {
3889
- borderColor: At(t, r),
3890
- boxShadow: `0px 1px 0px 0px ${At(t, r)}`
3889
+ borderColor: Tt(t, r),
3890
+ boxShadow: `0px 1px 0px 0px ${Tt(t, r)}`
3891
3891
  },
3892
3892
  _focusVisible: {
3893
- borderColor: At(t, n),
3894
- boxShadow: `0px 1px 0px 0px ${At(t, n)}`
3893
+ borderColor: Tt(t, n),
3894
+ boxShadow: `0px 1px 0px 0px ${Tt(t, n)}`
3895
3895
  }
3896
3896
  },
3897
3897
  addon: {
@@ -4094,11 +4094,11 @@ const wA = Dn((e) => {
4094
4094
  py: "4"
4095
4095
  }, tT = lu((e) => ({
4096
4096
  overlay: ZA,
4097
- dialogContainer: Tt(qA, e),
4098
- dialog: Tt(YA, e),
4097
+ dialogContainer: Ct(qA, e),
4098
+ dialog: Ct(YA, e),
4099
4099
  header: XA,
4100
4100
  closeButton: JA,
4101
- body: Tt(QA, e),
4101
+ body: Ct(QA, e),
4102
4102
  footer: eT
4103
4103
  }));
4104
4104
  function tn(e) {
@@ -4193,7 +4193,7 @@ const nT = {
4193
4193
  [wg.variable]: oT
4194
4194
  }, sT = (e) => {
4195
4195
  var t;
4196
- return ((t = Tt(Ce.baseStyle, e)) == null ? void 0 : t.field) ?? {};
4196
+ return ((t = Ct(Ce.baseStyle, e)) == null ? void 0 : t.field) ?? {};
4197
4197
  }, cT = {
4198
4198
  width: cd.reference
4199
4199
  }, lT = {
@@ -4219,7 +4219,7 @@ const nT = {
4219
4219
  }
4220
4220
  }, uT = xg((e) => ({
4221
4221
  root: iT,
4222
- field: Tt(sT, e) ?? {},
4222
+ field: Ct(sT, e) ?? {},
4223
4223
  stepperGroup: cT,
4224
4224
  stepper: lT
4225
4225
  }));
@@ -4295,15 +4295,15 @@ var Bm;
4295
4295
  const mT = {
4296
4296
  outline: (e) => {
4297
4297
  var t, n;
4298
- return ((n = Tt((t = Ce.variants) == null ? void 0 : t.outline, e)) == null ? void 0 : n.field) ?? {};
4298
+ return ((n = Ct((t = Ce.variants) == null ? void 0 : t.outline, e)) == null ? void 0 : n.field) ?? {};
4299
4299
  },
4300
4300
  flushed: (e) => {
4301
4301
  var t, n;
4302
- return ((n = Tt((t = Ce.variants) == null ? void 0 : t.flushed, e)) == null ? void 0 : n.field) ?? {};
4302
+ return ((n = Ct((t = Ce.variants) == null ? void 0 : t.flushed, e)) == null ? void 0 : n.field) ?? {};
4303
4303
  },
4304
4304
  filled: (e) => {
4305
4305
  var t, n;
4306
- return ((n = Tt((t = Ce.variants) == null ? void 0 : t.filled, e)) == null ? void 0 : n.field) ?? {};
4306
+ return ((n = Ct((t = Ce.variants) == null ? void 0 : t.filled, e)) == null ? void 0 : n.field) ?? {};
4307
4307
  },
4308
4308
  unstyled: ((Bm = Ce.variants) == null ? void 0 : Bm.unstyled.field) ?? {}
4309
4309
  }, gT = {
@@ -4365,7 +4365,7 @@ const mT = {
4365
4365
  )(e), i = X(`${t}.500`, `${t}.200`)(e), s = `linear-gradient(
4366
4366
  to right,
4367
4367
  transparent 0%,
4368
- ${At(n, i)} 50%,
4368
+ ${Tt(n, i)} 50%,
4369
4369
  transparent 100%
4370
4370
  )`;
4371
4371
  return {
@@ -4409,7 +4409,7 @@ const mT = {
4409
4409
  }
4410
4410
  }), { defineMultiStyleConfig: DT, definePartsStyle: Cs } = Ne(Dx.keys), BT = (e) => {
4411
4411
  var n;
4412
- const t = (n = Tt(Qn.baseStyle, e)) == null ? void 0 : n.control;
4412
+ const t = (n = Ct(Qn.baseStyle, e)) == null ? void 0 : n.control;
4413
4413
  return {
4414
4414
  ...t,
4415
4415
  borderRadius: "full",
@@ -5102,7 +5102,7 @@ const HT = {
5102
5102
  size: "md",
5103
5103
  colorScheme: "gray"
5104
5104
  }
5105
- }), _t = J("tabs-color"), an = J("tabs-bg"), rs = J("tabs-border-color"), { defineMultiStyleConfig: BC, definePartsStyle: xn } = Ne(jx.keys), NC = (e) => {
5105
+ }), Ft = J("tabs-color"), an = J("tabs-bg"), rs = J("tabs-border-color"), { defineMultiStyleConfig: BC, definePartsStyle: xn } = Ne(jx.keys), NC = (e) => {
5106
5106
  const { orientation: t } = e;
5107
5107
  return {
5108
5108
  display: t === "vertical" ? "flex" : "block"
@@ -5173,9 +5173,9 @@ const HT = {
5173
5173
  borderColor: "transparent",
5174
5174
  [o]: "-2px",
5175
5175
  _selected: {
5176
- [_t.variable]: `colors.${t}.600`,
5176
+ [Ft.variable]: `colors.${t}.600`,
5177
5177
  _dark: {
5178
- [_t.variable]: `colors.${t}.300`
5178
+ [Ft.variable]: `colors.${t}.300`
5179
5179
  },
5180
5180
  borderColor: "currentColor"
5181
5181
  },
@@ -5188,7 +5188,7 @@ const HT = {
5188
5188
  _disabled: {
5189
5189
  _active: { bg: "none" }
5190
5190
  },
5191
- color: _t.reference,
5191
+ color: Ft.reference,
5192
5192
  bg: an.reference
5193
5193
  }
5194
5194
  };
@@ -5202,16 +5202,16 @@ const HT = {
5202
5202
  mb: "-1px",
5203
5203
  [rs.variable]: "transparent",
5204
5204
  _selected: {
5205
- [_t.variable]: `colors.${t}.600`,
5205
+ [Ft.variable]: `colors.${t}.600`,
5206
5206
  [rs.variable]: "colors.white",
5207
5207
  _dark: {
5208
- [_t.variable]: `colors.${t}.300`,
5208
+ [Ft.variable]: `colors.${t}.300`,
5209
5209
  [rs.variable]: "colors.gray.800"
5210
5210
  },
5211
5211
  borderColor: "inherit",
5212
5212
  borderBottomColor: rs.reference
5213
5213
  },
5214
- color: _t.reference
5214
+ color: Ft.reference
5215
5215
  },
5216
5216
  tablist: {
5217
5217
  mb: "-1px",
@@ -5235,16 +5235,16 @@ const HT = {
5235
5235
  },
5236
5236
  _selected: {
5237
5237
  [an.variable]: "colors.white",
5238
- [_t.variable]: `colors.${t}.600`,
5238
+ [Ft.variable]: `colors.${t}.600`,
5239
5239
  _dark: {
5240
5240
  [an.variable]: "colors.gray.800",
5241
- [_t.variable]: `colors.${t}.300`
5241
+ [Ft.variable]: `colors.${t}.300`
5242
5242
  },
5243
5243
  borderColor: "inherit",
5244
5244
  borderTopColor: "currentColor",
5245
5245
  borderBottomColor: "transparent"
5246
5246
  },
5247
- color: _t.reference,
5247
+ color: Ft.reference,
5248
5248
  bg: an.reference
5249
5249
  },
5250
5250
  tablist: {
@@ -5261,8 +5261,8 @@ const HT = {
5261
5261
  fontWeight: "semibold",
5262
5262
  color: "gray.600",
5263
5263
  _selected: {
5264
- color: At(n, `${t}.700`),
5265
- bg: At(n, `${t}.100`)
5264
+ color: Tt(n, `${t}.700`),
5265
+ bg: Tt(n, `${t}.100`)
5266
5266
  }
5267
5267
  }
5268
5268
  };
@@ -5272,19 +5272,19 @@ const HT = {
5272
5272
  tab: {
5273
5273
  borderRadius: "full",
5274
5274
  fontWeight: "semibold",
5275
- [_t.variable]: "colors.gray.600",
5275
+ [Ft.variable]: "colors.gray.600",
5276
5276
  _dark: {
5277
- [_t.variable]: "inherit"
5277
+ [Ft.variable]: "inherit"
5278
5278
  },
5279
5279
  _selected: {
5280
- [_t.variable]: "colors.white",
5280
+ [Ft.variable]: "colors.white",
5281
5281
  [an.variable]: `colors.${t}.600`,
5282
5282
  _dark: {
5283
- [_t.variable]: "colors.gray.800",
5283
+ [Ft.variable]: "colors.gray.800",
5284
5284
  [an.variable]: `colors.${t}.300`
5285
5285
  }
5286
5286
  },
5287
- color: _t.reference,
5287
+ color: Ft.reference,
5288
5288
  bg: an.reference
5289
5289
  }
5290
5290
  };
@@ -5866,7 +5866,7 @@ function os(e, t) {
5866
5866
  function VE(e, t) {
5867
5867
  return e.map(t).join("");
5868
5868
  }
5869
- var dc = 1, Da = 1, Pg = 0, Ft = 0, tt = 0, Ua = "";
5869
+ var dc = 1, Da = 1, Pg = 0, Mt = 0, tt = 0, Ua = "";
5870
5870
  function fc(e, t, n, r, a, o, i) {
5871
5871
  return { value: e, root: t, parent: n, type: r, props: a, children: o, line: dc, column: Da, length: i, return: "" };
5872
5872
  }
@@ -5877,16 +5877,16 @@ function jE() {
5877
5877
  return tt;
5878
5878
  }
5879
5879
  function UE() {
5880
- return tt = Ft > 0 ? ft(Ua, --Ft) : 0, Da--, tt === 10 && (Da = 1, dc--), tt;
5880
+ return tt = Mt > 0 ? ft(Ua, --Mt) : 0, Da--, tt === 10 && (Da = 1, dc--), tt;
5881
5881
  }
5882
5882
  function Nt() {
5883
- return tt = Ft < Pg ? ft(Ua, Ft++) : 0, Da++, tt === 10 && (Da = 1, dc++), tt;
5883
+ return tt = Mt < Pg ? ft(Ua, Mt++) : 0, Da++, tt === 10 && (Da = 1, dc++), tt;
5884
5884
  }
5885
5885
  function wn() {
5886
- return ft(Ua, Ft);
5886
+ return ft(Ua, Mt);
5887
5887
  }
5888
5888
  function Fs() {
5889
- return Ft;
5889
+ return Mt;
5890
5890
  }
5891
5891
  function si(e, t) {
5892
5892
  return Uo(Ua, e, t);
@@ -5924,13 +5924,13 @@ function Go(e) {
5924
5924
  return 0;
5925
5925
  }
5926
5926
  function kg(e) {
5927
- return dc = Da = 1, Pg = mn(Ua = e), Ft = 0, [];
5927
+ return dc = Da = 1, Pg = mn(Ua = e), Mt = 0, [];
5928
5928
  }
5929
5929
  function $g(e) {
5930
5930
  return Ua = "", e;
5931
5931
  }
5932
5932
  function Ms(e) {
5933
- return Eg(si(Ft - 1, fu(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
5933
+ return Eg(si(Mt - 1, fu(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
5934
5934
  }
5935
5935
  function GE(e) {
5936
5936
  for (; (tt = wn()) && tt < 33; )
@@ -5946,7 +5946,7 @@ function fu(e) {
5946
5946
  for (; Nt(); )
5947
5947
  switch (tt) {
5948
5948
  case e:
5949
- return Ft;
5949
+ return Mt;
5950
5950
  case 34:
5951
5951
  case 39:
5952
5952
  e !== 34 && e !== 39 && fu(tt);
@@ -5958,18 +5958,18 @@ function fu(e) {
5958
5958
  Nt();
5959
5959
  break;
5960
5960
  }
5961
- return Ft;
5961
+ return Mt;
5962
5962
  }
5963
5963
  function HE(e, t) {
5964
5964
  for (; Nt() && e + tt !== 47 + 10; )
5965
5965
  if (e + tt === 42 + 42 && wn() === 47)
5966
5966
  break;
5967
- return "/*" + si(t, Ft - 1) + "*" + uc(e === 47 ? e : Nt());
5967
+ return "/*" + si(t, Mt - 1) + "*" + uc(e === 47 ? e : Nt());
5968
5968
  }
5969
5969
  function KE(e) {
5970
5970
  for (; !Go(wn()); )
5971
5971
  Nt();
5972
- return si(e, Ft);
5972
+ return si(e, Mt);
5973
5973
  }
5974
5974
  function ZE(e) {
5975
5975
  return $g(Rs("", null, null, null, [""], e = kg(e), 0, [0], e));
@@ -6121,13 +6121,13 @@ var Xf = function(t) {
6121
6121
  }, QE = function(t, n, r) {
6122
6122
  for (var a = 0, o = 0; a = o, o = wn(), a === 38 && o === 12 && (n[r] = 1), !Go(o); )
6123
6123
  Nt();
6124
- return si(t, Ft);
6124
+ return si(t, Mt);
6125
6125
  }, eP = function(t, n) {
6126
6126
  var r = -1, a = 44;
6127
6127
  do
6128
6128
  switch (Go(a)) {
6129
6129
  case 0:
6130
- a === 38 && wn() === 12 && (n[r] = 1), t[r] += QE(Ft - 1, n, r);
6130
+ a === 38 && wn() === 12 && (n[r] = 1), t[r] += QE(Mt - 1, n, r);
6131
6131
  break;
6132
6132
  case 2:
6133
6133
  t[r] += Ms(a);
@@ -8473,7 +8473,7 @@ const gu = {
8473
8473
  test: Md("hsl", "hue"),
8474
8474
  parse: wy("hue", "saturation", "lightness"),
8475
8475
  transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + An.transform(Oo(t)) + ", " + An.transform(Oo(n)) + ", " + Oo(Ro.transform(r)) + ")"
8476
- }, wt = {
8476
+ }, At = {
8477
8477
  test: (e) => Tr.test(e) || gu.test(e) || ba.test(e),
8478
8478
  parse: (e) => Tr.test(e) ? Tr.parse(e) : ba.test(e) ? ba.parse(e) : gu.parse(e),
8479
8479
  transform: (e) => ui(e) ? e : e.hasOwnProperty("red") ? Tr.transform(e) : ba.transform(e)
@@ -8524,7 +8524,7 @@ const Ty = {
8524
8524
  regex: Yg,
8525
8525
  countKey: "Colors",
8526
8526
  token: "${c}",
8527
- parse: wt.parse
8527
+ parse: At.parse
8528
8528
  }, Ey = {
8529
8529
  regex: Sc,
8530
8530
  countKey: "Numbers",
@@ -8554,7 +8554,7 @@ function ky(e) {
8554
8554
  return (i) => {
8555
8555
  let s = a;
8556
8556
  for (let c = 0; c < o; c++)
8557
- c < r ? s = s.replace(Ty.token, i[c]) : c < r + n ? s = s.replace(Cy.token, wt.transform(i[c])) : s = s.replace(Ey.token, Oo(i[c]));
8557
+ c < r ? s = s.replace(Ty.token, i[c]) : c < r + n ? s = s.replace(Cy.token, At.transform(i[c])) : s = s.replace(Ey.token, Oo(i[c]));
8558
8558
  return s;
8559
8559
  };
8560
8560
  }
@@ -8570,7 +8570,7 @@ const ir = {
8570
8570
  getAnimatableNone: u2
8571
8571
  }, $y = (e, t) => (n) => `${n > 0 ? t : e}`;
8572
8572
  function _y(e, t) {
8573
- return typeof e == "number" ? (n) => We(e, t, n) : wt.test(e) ? Ay(e, t) : e.startsWith("var(") ? $y(e, t) : My(e, t);
8573
+ return typeof e == "number" ? (n) => We(e, t, n) : At.test(e) ? Ay(e, t) : e.startsWith("var(") ? $y(e, t) : My(e, t);
8574
8574
  }
8575
8575
  const Fy = (e, t) => {
8576
8576
  const n = [...e], r = n.length, a = e.map((o, i) => _y(o, t[i]));
@@ -8596,7 +8596,7 @@ const Fy = (e, t) => {
8596
8596
  return r === 0 ? 1 : (n - e) / r;
8597
8597
  }, vh = (e, t) => (n) => We(e, t, n);
8598
8598
  function f2(e) {
8599
- return typeof e == "number" ? vh : typeof e == "string" ? wt.test(e) ? Ay : My : Array.isArray(e) ? Fy : typeof e == "object" ? d2 : vh;
8599
+ return typeof e == "number" ? vh : typeof e == "string" ? At.test(e) ? Ay : My : Array.isArray(e) ? Fy : typeof e == "object" ? d2 : vh;
8600
8600
  }
8601
8601
  function h2(e, t, n) {
8602
8602
  const r = [], a = n || f2(e[0]), o = e.length - 1;
@@ -9088,17 +9088,17 @@ const G2 = /([a-z-]*)\(.*?\)/g, vu = {
9088
9088
  }, W2 = {
9089
9089
  ...Xg,
9090
9090
  // Color props
9091
- color: wt,
9092
- backgroundColor: wt,
9093
- outlineColor: wt,
9094
- fill: wt,
9095
- stroke: wt,
9091
+ color: At,
9092
+ backgroundColor: At,
9093
+ outlineColor: At,
9094
+ fill: At,
9095
+ stroke: At,
9096
9096
  // Border props
9097
- borderColor: wt,
9098
- borderTopColor: wt,
9099
- borderRightColor: wt,
9100
- borderBottomColor: wt,
9101
- borderLeftColor: wt,
9097
+ borderColor: At,
9098
+ borderTopColor: At,
9099
+ borderRightColor: At,
9100
+ borderBottomColor: At,
9101
+ borderLeftColor: At,
9102
9102
  filter: vu,
9103
9103
  WebkitFilter: vu
9104
9104
  }, Rd = (e) => W2[e];
@@ -9416,7 +9416,7 @@ function Dr(e, t) {
9416
9416
  const zy = (e) => (t) => t.test(e), J2 = {
9417
9417
  test: (e) => e === "auto",
9418
9418
  parse: (e) => e
9419
- }, Vy = [Vr, ne, An, Jn, sk, ik, J2], fo = (e) => Vy.find(zy(e)), Q2 = [...Vy, wt, ir], e$ = (e) => Q2.find(zy(e));
9419
+ }, Vy = [Vr, ne, An, Jn, sk, ik, J2], fo = (e) => Vy.find(zy(e)), Q2 = [...Vy, At, ir], e$ = (e) => Q2.find(zy(e));
9420
9420
  function t$(e, t, n) {
9421
9421
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Dr(n));
9422
9422
  }
@@ -13817,7 +13817,7 @@ var _b = Hd({}, function(e) {
13817
13817
  var r, a = R.useState(), o = a[0], i = a[1], s = R.useRef(), c = R.useRef(!1), l = R.useRef(null), d = R.useState({}), u = d[1], f = t.children, h = t.disabled, p = h === void 0 ? !1 : h, m = t.noFocusGuards, y = m === void 0 ? !1 : m, x = t.persistentFocus, b = x === void 0 ? !1 : x, w = t.crossFrame, k = w === void 0 ? !0 : w, E = t.autoFocus, F = E === void 0 ? !0 : E, $ = t.allowTextSelection, N = t.group, D = t.className, oe = t.whiteList, Y = t.hasPositiveIndices, ie = t.shards, de = ie === void 0 ? CM : ie, ae = t.as, le = ae === void 0 ? "div" : ae, q = t.lockProps, me = q === void 0 ? {} : q, Oe = t.sideCar, Se = t.returnFocus, M = Se === void 0 ? !1 : Se, _ = t.focusOptions, K = t.onActivation, O = t.onDeactivation, U = R.useState({}), te = U[0], G = R.useCallback(function(ht) {
13818
13818
  var vt = ht.captureFocusRestore;
13819
13819
  if (!l.current) {
13820
- var Ct, pt = (Ct = document) == null ? void 0 : Ct.activeElement;
13820
+ var Et, pt = (Et = document) == null ? void 0 : Et.activeElement;
13821
13821
  l.current = pt, pt !== document.body && (l.current = vt(pt));
13822
13822
  }
13823
13823
  s.current && K && K(s.current), c.current = !0, u();
@@ -13826,12 +13826,12 @@ var _b = Hd({}, function(e) {
13826
13826
  }, [O]), re = R.useCallback(function(ht) {
13827
13827
  var vt = l.current;
13828
13828
  if (vt) {
13829
- var Ct = (typeof vt == "function" ? vt() : vt) || document.body, pt = typeof M == "function" ? M(Ct) : M;
13829
+ var Et = (typeof vt == "function" ? vt() : vt) || document.body, pt = typeof M == "function" ? M(Et) : M;
13830
13830
  if (pt) {
13831
13831
  var mt = typeof pt == "object" ? pt : void 0;
13832
13832
  l.current = null, ht ? Promise.resolve().then(function() {
13833
- return Ct.focus(mt);
13834
- }) : Ct.focus(mt);
13833
+ return Et.focus(mt);
13834
+ }) : Et.focus(mt);
13835
13835
  }
13836
13836
  }
13837
13837
  }, [M]), se = R.useCallback(function(ht) {
@@ -17658,11 +17658,11 @@ function H5(e) {
17658
17658
  he === "checkbox" ? Ie === void 0 ? ue.checked = !!Z : (ue.checked = !!(Array.isArray(Z) && ~Z.indexOf(Ie)), ue.value = Ie) : he === "radio" ? (ue.checked = Z === Ie, ue.value = Ie) : St === "select" && Un && (ue.value = ue.value || [], ue.multiple = !0);
17659
17659
  }
17660
17660
  return ue;
17661
- }, [Q, U, F.values]), Ct = ut(function() {
17661
+ }, [Q, U, F.values]), Et = ut(function() {
17662
17662
  return !xr(h.current, F.values);
17663
17663
  }, [h.current, F.values]), pt = ut(function() {
17664
- return typeof s < "u" ? Ct ? F.errors && Object.keys(F.errors).length === 0 : s !== !1 && nn(s) ? s(f) : s : F.errors && Object.keys(F.errors).length === 0;
17665
- }, [s, Ct, F.errors, f]), mt = st({}, F, {
17664
+ return typeof s < "u" ? Et ? F.errors && Object.keys(F.errors).length === 0 : s !== !1 && nn(s) ? s(f) : s : F.errors && Object.keys(F.errors).length === 0;
17665
+ }, [s, Et, F.errors, f]), mt = st({}, F, {
17666
17666
  initialValues: h.current,
17667
17667
  initialErrors: p.current,
17668
17668
  initialTouched: m.current,
@@ -17685,7 +17685,7 @@ function H5(e) {
17685
17685
  validateForm: de,
17686
17686
  validateField: le,
17687
17687
  isValid: pt,
17688
- dirty: Ct,
17688
+ dirty: Et,
17689
17689
  unregisterField: me,
17690
17690
  registerField: q,
17691
17691
  getFieldProps: vt,
@@ -18004,7 +18004,7 @@ g0 = Symbol.toStringTag;
18004
18004
  class _m {
18005
18005
  constructor(t, n, r, a) {
18006
18006
  this.name = void 0, this.message = void 0, this.value = void 0, this.path = void 0, this.type = void 0, this.params = void 0, this.errors = void 0, this.inner = void 0, this[g0] = "Error", this.name = "ValidationError", this.value = n, this.path = r, this.type = a, this.errors = [], this.inner = [], m0(t).forEach((o) => {
18007
- if ($t.isError(o)) {
18007
+ if (_t.isError(o)) {
18008
18008
  this.errors.push(...o.errors);
18009
18009
  const i = o.inner.length ? o.inner : [o];
18010
18010
  this.inner.push(...i);
@@ -18015,7 +18015,7 @@ class _m {
18015
18015
  }
18016
18016
  y0 = Symbol.hasInstance;
18017
18017
  b0 = Symbol.toStringTag;
18018
- class $t extends Error {
18018
+ class _t extends Error {
18019
18019
  static formatError(t, n) {
18020
18020
  const r = n.label || n.path || "this";
18021
18021
  return r !== n.path && (n = Object.assign({}, n, {
@@ -18029,7 +18029,7 @@ class $t extends Error {
18029
18029
  const i = new _m(t, n, r, a);
18030
18030
  if (o)
18031
18031
  return i;
18032
- super(), this.value = void 0, this.path = void 0, this.type = void 0, this.params = void 0, this.errors = [], this.inner = [], this[b0] = "Error", this.name = i.name, this.message = i.message, this.type = i.type, this.value = i.value, this.path = i.path, this.errors = i.errors, this.inner = i.inner, Error.captureStackTrace && Error.captureStackTrace(this, $t);
18032
+ super(), this.value = void 0, this.path = void 0, this.type = void 0, this.params = void 0, this.errors = [], this.inner = [], this[b0] = "Error", this.name = i.name, this.message = i.message, this.type = i.type, this.value = i.value, this.path = i.path, this.errors = i.errors, this.inner = i.inner, Error.captureStackTrace && Error.captureStackTrace(this, _t);
18033
18033
  }
18034
18034
  static [y0](t) {
18035
18035
  return _m[Symbol.hasInstance](t) || super[Symbol.hasInstance](t);
@@ -18051,7 +18051,7 @@ let pn = {
18051
18051
  const a = r != null && r !== n ? ` (cast from the value \`${ar(r, !0)}\`).` : ".";
18052
18052
  return t !== "mixed" ? `${e} must be a \`${t}\` type, but the final value was: \`${ar(n, !0)}\`` + a : `${e} must match the configured type. The validated value was: \`${ar(n, !0)}\`` + a;
18053
18053
  }
18054
- }, Et = {
18054
+ }, Pt = {
18055
18055
  length: "${path} must be exactly ${length} characters",
18056
18056
  min: "${path} must be at least ${min} characters",
18057
18057
  max: "${path} must be at most ${max} characters",
@@ -18097,12 +18097,12 @@ let pn = {
18097
18097
  if (n.length > a)
18098
18098
  return `${t} tuple value has too many items, expected a length of ${a} but got ${n.length} for value: \`${ar(n, !0)}\``;
18099
18099
  }
18100
- return $t.formatError(pn.notType, e);
18100
+ return _t.formatError(pn.notType, e);
18101
18101
  }
18102
18102
  };
18103
18103
  Object.assign(/* @__PURE__ */ Object.create(null), {
18104
18104
  mixed: pn,
18105
- string: Et,
18105
+ string: Pt,
18106
18106
  number: _L,
18107
18107
  date: qu,
18108
18108
  object: Yu,
@@ -18223,7 +18223,7 @@ function ua(e) {
18223
18223
  }, u, Y.params);
18224
18224
  for (const ae of Object.keys(ie))
18225
18225
  ie[ae] = b(ie[ae]);
18226
- const de = new $t($t.formatError(Y.message || f, ie), n, ie.path, Y.type || l, ie.disableStackTrace);
18226
+ const de = new _t(_t.formatError(Y.message || f, ie), n, ie.path, Y.type || l, ie.disableStackTrace);
18227
18227
  return de.params = ie, de;
18228
18228
  }
18229
18229
  const k = y ? s : c;
@@ -18239,9 +18239,9 @@ function ua(e) {
18239
18239
  schema: i
18240
18240
  };
18241
18241
  const F = (Y) => {
18242
- $t.isError(Y) ? k(Y) : Y ? c(null) : k(w());
18242
+ _t.isError(Y) ? k(Y) : Y ? c(null) : k(w());
18243
18243
  }, $ = (Y) => {
18244
- $t.isError(Y) ? k(Y) : s(Y);
18244
+ _t.isError(Y) ? k(Y) : s(Y);
18245
18245
  };
18246
18246
  if (h && Er(n))
18247
18247
  return F(!0);
@@ -18542,9 +18542,9 @@ attempted value: ${i}
18542
18542
  value: t
18543
18543
  })), o = (r = n == null ? void 0 : n.disableStackTrace) != null ? r : a.spec.disableStackTrace;
18544
18544
  return new Promise((i, s) => a._validate(t, n, (c, l) => {
18545
- $t.isError(c) && (c.value = l), s(c);
18545
+ _t.isError(c) && (c.value = l), s(c);
18546
18546
  }, (c, l) => {
18547
- c.length ? s(new $t(c, l, void 0, void 0, o)) : i(l);
18547
+ c.length ? s(new _t(c, l, void 0, void 0, o)) : i(l);
18548
18548
  }));
18549
18549
  }
18550
18550
  validateSync(t, n) {
@@ -18555,16 +18555,16 @@ attempted value: ${i}
18555
18555
  return a._validate(t, Object.assign({}, n, {
18556
18556
  sync: !0
18557
18557
  }), (s, c) => {
18558
- throw $t.isError(s) && (s.value = c), s;
18558
+ throw _t.isError(s) && (s.value = c), s;
18559
18559
  }, (s, c) => {
18560
18560
  if (s.length)
18561
- throw new $t(s, t, void 0, void 0, i);
18561
+ throw new _t(s, t, void 0, void 0, i);
18562
18562
  o = c;
18563
18563
  }), o;
18564
18564
  }
18565
18565
  isValid(t, n) {
18566
18566
  return this.validate(t, n).then(() => !0, (r) => {
18567
- if ($t.isError(r))
18567
+ if (_t.isError(r))
18568
18568
  return !1;
18569
18569
  throw r;
18570
18570
  });
@@ -18573,7 +18573,7 @@ attempted value: ${i}
18573
18573
  try {
18574
18574
  return this.validateSync(t, n), !0;
18575
18575
  } catch (r) {
18576
- if ($t.isError(r))
18576
+ if (_t.isError(r))
18577
18577
  return !1;
18578
18578
  throw r;
18579
18579
  }
@@ -18851,7 +18851,7 @@ class v0 extends Cn {
18851
18851
  notRequired() {
18852
18852
  return super.notRequired().withMutation((t) => (t.tests = t.tests.filter((n) => n.OPTIONS.name !== "required"), t));
18853
18853
  }
18854
- length(t, n = Et.length) {
18854
+ length(t, n = Pt.length) {
18855
18855
  return this.test({
18856
18856
  message: n,
18857
18857
  name: "length",
@@ -18865,7 +18865,7 @@ class v0 extends Cn {
18865
18865
  }
18866
18866
  });
18867
18867
  }
18868
- min(t, n = Et.min) {
18868
+ min(t, n = Pt.min) {
18869
18869
  return this.test({
18870
18870
  message: n,
18871
18871
  name: "min",
@@ -18879,7 +18879,7 @@ class v0 extends Cn {
18879
18879
  }
18880
18880
  });
18881
18881
  }
18882
- max(t, n = Et.max) {
18882
+ max(t, n = Pt.max) {
18883
18883
  return this.test({
18884
18884
  name: "max",
18885
18885
  exclusive: !0,
@@ -18901,7 +18901,7 @@ class v0 extends Cn {
18901
18901
  name: o
18902
18902
  } = n : a = n), this.test({
18903
18903
  name: o || "matches",
18904
- message: a || Et.matches,
18904
+ message: a || Pt.matches,
18905
18905
  params: {
18906
18906
  regex: t
18907
18907
  },
@@ -18909,21 +18909,21 @@ class v0 extends Cn {
18909
18909
  test: (i) => i === "" && r || i.search(t) !== -1
18910
18910
  });
18911
18911
  }
18912
- email(t = Et.email) {
18912
+ email(t = Pt.email) {
18913
18913
  return this.matches(BL, {
18914
18914
  name: "email",
18915
18915
  message: t,
18916
18916
  excludeEmptyString: !0
18917
18917
  });
18918
18918
  }
18919
- url(t = Et.url) {
18919
+ url(t = Pt.url) {
18920
18920
  return this.matches(NL, {
18921
18921
  name: "url",
18922
18922
  message: t,
18923
18923
  excludeEmptyString: !0
18924
18924
  });
18925
18925
  }
18926
- uuid(t = Et.uuid) {
18926
+ uuid(t = Pt.uuid) {
18927
18927
  return this.matches(LL, {
18928
18928
  name: "uuid",
18929
18929
  message: t,
@@ -18938,11 +18938,11 @@ class v0 extends Cn {
18938
18938
  precision: a = void 0
18939
18939
  } = t : n = t), this.matches(UL, {
18940
18940
  name: "datetime",
18941
- message: n || Et.datetime,
18941
+ message: n || Pt.datetime,
18942
18942
  excludeEmptyString: !0
18943
18943
  }).test({
18944
18944
  name: "datetime_offset",
18945
- message: n || Et.datetime_offset,
18945
+ message: n || Pt.datetime_offset,
18946
18946
  params: {
18947
18947
  allowOffset: r
18948
18948
  },
@@ -18955,7 +18955,7 @@ class v0 extends Cn {
18955
18955
  }
18956
18956
  }).test({
18957
18957
  name: "datetime_precision",
18958
- message: n || Et.datetime_precision,
18958
+ message: n || Pt.datetime_precision,
18959
18959
  params: {
18960
18960
  precision: a
18961
18961
  },
@@ -18972,14 +18972,14 @@ class v0 extends Cn {
18972
18972
  ensure() {
18973
18973
  return this.default("").transform((t) => t === null ? "" : t);
18974
18974
  }
18975
- trim(t = Et.trim) {
18975
+ trim(t = Pt.trim) {
18976
18976
  return this.transform((n) => n != null ? n.trim() : n).test({
18977
18977
  message: t,
18978
18978
  name: "trim",
18979
18979
  test: GL
18980
18980
  });
18981
18981
  }
18982
- lowercase(t = Et.lowercase) {
18982
+ lowercase(t = Pt.lowercase) {
18983
18983
  return this.transform((n) => Er(n) ? n : n.toLowerCase()).test({
18984
18984
  message: t,
18985
18985
  name: "string_case",
@@ -18988,7 +18988,7 @@ class v0 extends Cn {
18988
18988
  test: (n) => Er(n) || n === n.toLowerCase()
18989
18989
  });
18990
18990
  }
18991
- uppercase(t = Et.uppercase) {
18991
+ uppercase(t = Pt.uppercase) {
18992
18992
  return this.transform((n) => Er(n) ? n : n.toUpperCase()).test({
18993
18993
  message: t,
18994
18994
  name: "string_case",
@@ -21092,7 +21092,7 @@ const Rm = /* @__PURE__ */ new Map([
21092
21092
  address_line1: N,
21093
21093
  address_zip: k
21094
21094
  }), _.error)
21095
- x(!1), Pt((me = _ == null ? void 0 : _.error) == null ? void 0 : me.message, kt.error);
21095
+ x(!1), kt((me = _ == null ? void 0 : _.error) == null ? void 0 : me.message, $t.error);
21096
21096
  else {
21097
21097
  const K = {
21098
21098
  amount: t,
@@ -21118,7 +21118,7 @@ const Rm = /* @__PURE__ */ new Map([
21118
21118
  },
21119
21119
  onError: (O) => {
21120
21120
  var U;
21121
- x(!1), Pt((U = O == null ? void 0 : O.raw) == null ? void 0 : U.message, kt.error);
21121
+ x(!1), kt((U = O == null ? void 0 : O.raw) == null ? void 0 : U.message, $t.error);
21122
21122
  }
21123
21123
  });
21124
21124
  }
@@ -25724,9 +25724,9 @@ const az = "Payment Completed", oz = ({
25724
25724
  reference: b
25725
25725
  });
25726
25726
  } catch (F) {
25727
- x.complete("fail"), Pt(
25727
+ x.complete("fail"), kt(
25728
25728
  (F == null ? void 0 : F.message) ?? "We couldn't initialize your payment",
25729
- kt.error
25729
+ $t.error
25730
25730
  );
25731
25731
  return;
25732
25732
  }
@@ -25748,16 +25748,16 @@ const az = "Payment Completed", oz = ({
25748
25748
  { handleActions: !1 }
25749
25749
  );
25750
25750
  if (E)
25751
- x.complete("fail"), Pt(
25751
+ x.complete("fail"), kt(
25752
25752
  (E == null ? void 0 : E.message) ?? "We couldn't process your payment",
25753
- kt.error
25753
+ $t.error
25754
25754
  );
25755
25755
  else {
25756
25756
  if (x.complete("success"), k.status === "requires_action") {
25757
25757
  const { error: F } = await c.confirmCardPayment(w);
25758
- F ? Pt(
25758
+ F ? kt(
25759
25759
  "Payment failed, please add a new payment method",
25760
- kt.error
25760
+ $t.error
25761
25761
  ) : (m(!0), setTimeout(() => {
25762
25762
  o({
25763
25763
  fullname: r.values.fullname,
@@ -25768,7 +25768,7 @@ const az = "Payment Completed", oz = ({
25768
25768
  });
25769
25769
  }, 3e3));
25770
25770
  }
25771
- Pt("Payment was successful", kt.success), m(!0), setTimeout(() => {
25771
+ kt("Payment was successful", $t.success), m(!0), setTimeout(() => {
25772
25772
  o({
25773
25773
  fullname: r.values.fullname,
25774
25774
  email: r.values.email,
@@ -25891,7 +25891,7 @@ const Jl = [
25891
25891
  pe(() => {
25892
25892
  O(f);
25893
25893
  }, [f]);
25894
- const vt = oF(0, { damping: 130, stiffness: 500 }), [Ct] = Ac("(max-width: 767px)");
25894
+ const vt = oF(0, { damping: 130, stiffness: 500 }), [Et] = Ac("(max-width: 767px)");
25895
25895
  ai(() => {
25896
25896
  vt.onChange((L) => {
25897
25897
  window.scrollTo(0, L);
@@ -25952,7 +25952,8 @@ const Jl = [
25952
25952
  fullname: L.fullname,
25953
25953
  email: L.email,
25954
25954
  reference: g,
25955
- amount: 0
25955
+ amount: 0,
25956
+ metadata: wt
25956
25957
  });
25957
25958
  return;
25958
25959
  }
@@ -25962,7 +25963,7 @@ const Jl = [
25962
25963
  reference: g,
25963
25964
  currency: u,
25964
25965
  metadata: {
25965
- ...Mt,
25966
+ ...wt,
25966
25967
  reference: g
25967
25968
  }
25968
25969
  },
@@ -25973,7 +25974,7 @@ const Jl = [
25973
25974
  amount: en,
25974
25975
  currency: u,
25975
25976
  metadata: {
25976
- ...Mt,
25977
+ ...wt,
25977
25978
  reference: g
25978
25979
  },
25979
25980
  callback_url: b
@@ -25994,9 +25995,9 @@ const Jl = [
25994
25995
  },
25995
25996
  onError: (v) => {
25996
25997
  var C;
25997
- Qe(!1), Pt(
25998
+ Qe(!1), kt(
25998
25999
  ((C = v == null ? void 0 : v.response) == null ? void 0 : C.data) ?? "Error loading payment gateway",
25999
- kt.error
26000
+ $t.error
26000
26001
  );
26001
26002
  }
26002
26003
  }
@@ -26038,7 +26039,7 @@ const Jl = [
26038
26039
  (Number((eo = ee == null ? void 0 : ee.payload) == null ? void 0 : eo.dollar_transaction_fee) + Number(Qt ? qa : 0)).toFixed(2)
26039
26040
  ).toString(), Lc = parseFloat(
26040
26041
  (Number(xt) + Number(Qt ? kn : 0)).toFixed(2)
26041
- ).toString(), Mt = {
26042
+ ).toString(), wt = {
26042
26043
  ...e.metadata,
26043
26044
  phone_number: (Bi = V.values) == null ? void 0 : Bi.phone,
26044
26045
  reference: M,
@@ -26069,7 +26070,7 @@ const Jl = [
26069
26070
  }, { refetch: zc, isLoading: Vc } = dI(
26070
26071
  {
26071
26072
  discount_code: nt,
26072
- product_id: Mt == null ? void 0 : Mt.product_id,
26073
+ product_id: wt == null ? void 0 : wt.product_id,
26073
26074
  account_id: m,
26074
26075
  currency: u,
26075
26076
  store_id: $
@@ -26085,15 +26086,15 @@ const Jl = [
26085
26086
  type: (Qe = C == null ? void 0 : C.data) == null ? void 0 : Qe.discount_type,
26086
26087
  value: (g = C == null ? void 0 : C.data) == null ? void 0 : g.discount_value,
26087
26088
  isFullDiscount: ((v = C == null ? void 0 : C.data) == null ? void 0 : v.amount_to_pay) === 0
26088
- }), Pt("Discount has been applied", kt.success)) : Pt(`${C == null ? void 0 : C.error}`, kt.error);
26089
+ }), kt("Discount has been applied", $t.success)) : kt(`${C == null ? void 0 : C.error}`, $t.error);
26089
26090
  } catch (C) {
26090
- Pt(
26091
+ kt(
26091
26092
  `${C ?? (C == null ? void 0 : C.message) ?? "An Error occured applying discount code"}`,
26092
- kt.error
26093
+ $t.error
26093
26094
  );
26094
26095
  }
26095
26096
  else
26096
- Pt('"Kindly add a discount code"', kt.info);
26097
+ kt('"Kindly add a discount code"', $t.info);
26097
26098
  }, Kn = () => {
26098
26099
  Jt(""), ht({
26099
26100
  amount: 0,
@@ -26131,7 +26132,8 @@ const Jl = [
26131
26132
  fullname: V.values.fullname,
26132
26133
  email: V.values.email,
26133
26134
  reference: L,
26134
- amount: 0
26135
+ amount: 0,
26136
+ metadata: wt
26135
26137
  });
26136
26138
  return;
26137
26139
  }
@@ -26141,18 +26143,18 @@ const Jl = [
26141
26143
  reference: L,
26142
26144
  currency: u,
26143
26145
  metadata: {
26144
- ...Mt,
26146
+ ...wt,
26145
26147
  reference: L
26146
26148
  }
26147
26149
  },
26148
26150
  {
26149
26151
  onSuccess() {
26150
26152
  var g;
26151
- se(!0), Q(!G), (le || Ct) && (mt != null && mt.current) && pt((g = mt == null ? void 0 : mt.current) == null ? void 0 : g.offsetTop);
26153
+ se(!0), Q(!G), (le || Et) && (mt != null && mt.current) && pt((g = mt == null ? void 0 : mt.current) == null ? void 0 : g.offsetTop);
26152
26154
  },
26153
26155
  onError(g) {
26154
26156
  var v;
26155
- Pt((v = g == null ? void 0 : g.response) == null ? void 0 : v.data, kt.error);
26157
+ kt((v = g == null ? void 0 : g.response) == null ? void 0 : v.data, $t.error);
26156
26158
  }
26157
26159
  }
26158
26160
  );
@@ -26176,9 +26178,9 @@ const Jl = [
26176
26178
  email: V.values.email,
26177
26179
  reference: W == null ? void 0 : W.reference,
26178
26180
  ...L.data
26179
- }) : Pt(`${L == null ? void 0 : L.error}`, kt.error);
26181
+ }) : kt(`${L == null ? void 0 : L.error}`, $t.error);
26180
26182
  } catch {
26181
- Pt("Failed to complete transaction", kt.error), V.setSubmitting(!1);
26183
+ kt("Failed to complete transaction", $t.error), V.setSubmitting(!1);
26182
26184
  }
26183
26185
  }, _n = Ee(null), Xa = (ta = _n == null ? void 0 : _n.current) == null ? void 0 : ta.offsetWidth, Zc = (L) => L > 0 ? u === fn.NGN ? `+ ${u} ${L}` : `+ ${L * 100} cents` : "";
26184
26186
  return /* @__PURE__ */ S(rn, { children: /* @__PURE__ */ H(
@@ -26302,7 +26304,7 @@ const Jl = [
26302
26304
  children: /* @__PURE__ */ S(
26303
26305
  cz,
26304
26306
  {
26305
- metadata: Mt,
26307
+ metadata: wt,
26306
26308
  currency: u,
26307
26309
  stripeCountry: Jl.indexOf(u) > -1 ? "GB" : "US",
26308
26310
  amount: en,
@@ -26370,7 +26372,7 @@ const Jl = [
26370
26372
  ez,
26371
26373
  {
26372
26374
  metadata: {
26373
- ...Mt,
26375
+ ...wt,
26374
26376
  reference: M
26375
26377
  },
26376
26378
  currency: u,
@@ -26467,7 +26469,7 @@ const Jl = [
26467
26469
  borderRadius: "12px",
26468
26470
  textAlign: "center",
26469
26471
  children: [
26470
- /* @__PURE__ */ S(Ye, { fontSize: ".875rem", lineHeight: "22px", children: t ?? (Mt == null ? void 0 : Mt.productName) }),
26472
+ /* @__PURE__ */ S(Ye, { fontSize: ".875rem", lineHeight: "22px", children: t ?? (wt == null ? void 0 : wt.productName) }),
26471
26473
  /* @__PURE__ */ H(
26472
26474
  La,
26473
26475
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "0.5.9",
4
+ "version": "0.5.10",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [