mainstack-payments 2.0.4 → 2.0.5

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, Fragment as J, jsxs as p } from "react/jsx-runtime";
2
- import { ModalRoot as cl, ModalPortal as dl, ModalOverlay as ul, ModalBody as ml, ModalContentSlot as pl, ModalContentHeader as gl, ModalClose as fl, ModalContentMain as hl, HeadlineText as nn, BodyText as _, ModalContentFooter as yl, Button as La, FormItem as Ta, FormLabel as Ne, Input as Ra, FormErrorStatus as Dt, PhoneNumberInput as Xs, Spinner as Qs, ButtonRoot as rn, ButtonLabel as ln, ButtonIcon as sn, ChevronRightIcon as da, useMatchMedia as mt, useDisclosure as Ba, KeyboardBackSpaceIcon as ei, KeyboardArrowDownIcon as Kt, toast as ue, MainstackDesignSystemProvider as ai, Toaster as ti, TooltipRoot as dr, TooltipTrigger as ur, InfoIcon as mr, TooltipContent as pr, TooltipHeader as gr, TooltipTitle as fr, TooltipBody as hr, CountrySelect as ni, LockIcon as ri, CancelIcon as yr } from "mainstack-design-system";
2
+ import { ModalRoot as cl, ModalPortal as dl, ModalOverlay as ul, ModalBody as ml, ModalContentSlot as pl, ModalContentHeader as gl, ModalClose as fl, ModalContentMain as hl, HeadlineText as nn, BodyText as _, ModalContentFooter as yl, Button as La, FormItem as xa, FormLabel as Te, Input as Ga, FormErrorStatus as Dt, PhoneNumberInput as Xs, Spinner as Qs, ButtonRoot as rn, ButtonLabel as ln, ButtonIcon as sn, ChevronRightIcon as da, useMatchMedia as mt, useDisclosure as Ba, KeyboardBackSpaceIcon as ei, KeyboardArrowDownIcon as Kt, toast as ue, MainstackDesignSystemProvider as ai, Toaster as ti, TooltipRoot as dr, TooltipTrigger as ur, InfoIcon as mr, TooltipContent as pr, TooltipHeader as gr, TooltipTitle as fr, TooltipBody as hr, CountrySelect as ni, LockIcon as ri, CancelIcon as yr } from "mainstack-design-system";
3
3
  import { useState as U, useEffect as ee, useRef as oe, useCallback as Z, useMemo as pt, createContext as li, useLayoutEffect as si, forwardRef as vl, createElement as ii, useContext as oi, lazy as ma, useImperativeHandle as ci, Suspense as ra, isValidElement as di, memo as ui } from "react";
4
4
  import { g as bl, r as mi, l as pi, E as gi, u as Sl, a as Al, C as vr, b as fi, c as hi } from "./payments-B3Hm80pK.js";
5
5
  import st from "axios";
@@ -132,34 +132,26 @@ import './index.css';const on = ({
132
132
  paymentMethodId: i,
133
133
  ip: d,
134
134
  paymentMethod: m = "card"
135
- }) => {
136
- const u = n || e.totalAmount.currency;
137
- return {
138
- orderId: e.orderId,
139
- reference: e.reference,
140
- iPAddress: d || t.ip_address || "",
141
- customerPaymentMethodId: i,
142
- paymentToken: l,
143
- callbackUrl: r,
144
- paymentMethod: m,
145
- amount: {
146
- currency: u,
147
- value: e.totalAmount.amount
148
- },
149
- feeAmount: {
150
- currency: u,
151
- value: a.localTransactionFee
152
- },
153
- feeIds: a.appliedFeeIds,
154
- merchantId: e.merchantId,
155
- customer: {
156
- email: e.customer.email,
157
- name: e.customer.fullName,
158
- phone: e.customer.phoneNumber
159
- },
160
- metadata: e.metadata
161
- };
162
- }, dn = (e) => cn({
135
+ }) => ({
136
+ orderId: e.orderId,
137
+ reference: e.reference,
138
+ iPAddress: d || t.ip_address || "",
139
+ customerPaymentMethodId: i,
140
+ paymentToken: l,
141
+ callbackUrl: r,
142
+ paymentMethod: m,
143
+ amount: {
144
+ currency: e.currency,
145
+ value: e.totalAmount
146
+ },
147
+ merchantId: e.merchantId,
148
+ customer: {
149
+ email: e.customer.email,
150
+ name: e.customer.fullName,
151
+ phone: e.customer.phoneNumber
152
+ },
153
+ metadata: e.metadata
154
+ }), dn = (e) => cn({
163
155
  mutationFn: async (a) => {
164
156
  var t;
165
157
  try {
@@ -183,7 +175,7 @@ import './index.css';const on = ({
183
175
  throw (n = t == null ? void 0 : t.response) == null ? void 0 : n.data;
184
176
  }),
185
177
  enabled: !1
186
- }), Tp = ({
178
+ }), xp = ({
187
179
  discount_code: e,
188
180
  product_id: a,
189
181
  account_id: t,
@@ -225,12 +217,12 @@ function Fi(e) {
225
217
  function gt(e, a) {
226
218
  return a.clone !== !1 && a.isMergeableObject(e) ? Ka(Fi(e), e, a) : e;
227
219
  }
228
- function Ti(e, a, t) {
220
+ function xi(e, a, t) {
229
221
  return e.concat(a).map(function(n) {
230
222
  return gt(n, t);
231
223
  });
232
224
  }
233
- function xi(e, a, t) {
225
+ function Ti(e, a, t) {
234
226
  var n = {};
235
227
  return t.isMergeableObject(e) && Object.keys(e).forEach(function(r) {
236
228
  n[r] = gt(e[r], t);
@@ -239,9 +231,9 @@ function xi(e, a, t) {
239
231
  }), n;
240
232
  }
241
233
  function Ka(e, a, t) {
242
- t = t || {}, t.arrayMerge = t.arrayMerge || Ti, t.isMergeableObject = t.isMergeableObject || bi;
234
+ t = t || {}, t.arrayMerge = t.arrayMerge || xi, t.isMergeableObject = t.isMergeableObject || bi;
243
235
  var n = Array.isArray(a), r = Array.isArray(e), l = n === r;
244
- return l ? n ? t.arrayMerge(e, a, t) : xi(e, a, t) : gt(a, t);
236
+ return l ? n ? t.arrayMerge(e, a, t) : Ti(e, a, t) : gt(a, t);
245
237
  }
246
238
  Ka.all = function(a, t) {
247
239
  if (!Array.isArray(a))
@@ -250,7 +242,7 @@ Ka.all = function(a, t) {
250
242
  return Ka(n, r, t);
251
243
  }, {});
252
244
  };
253
- var zt = Ka, Cl = typeof global == "object" && global && global.Object === Object && global, Ni = typeof self == "object" && self && self.Object === Object && self, $e = Cl || Ni || Function("return this")(), Ze = $e.Symbol, wl = Object.prototype, Mi = wl.hasOwnProperty, Pi = wl.toString, Ua = Ze ? Ze.toStringTag : void 0;
245
+ var zt = Ka, Cl = typeof global == "object" && global && global.Object === Object && global, Ni = typeof self == "object" && self && self.Object === Object && self, Pe = Cl || Ni || Function("return this")(), Ze = Pe.Symbol, wl = Object.prototype, Mi = wl.hasOwnProperty, Pi = wl.toString, Ua = Ze ? Ze.toStringTag : void 0;
254
246
  function $i(e) {
255
247
  var a = Mi.call(e, Ua), t = e[Ua];
256
248
  try {
@@ -278,25 +270,25 @@ var un = Fl(Object.getPrototypeOf, Object);
278
270
  function ga(e) {
279
271
  return e != null && typeof e == "object";
280
272
  }
281
- var Ui = "[object Object]", Bi = Function.prototype, Ri = Object.prototype, Tl = Bi.toString, Gi = Ri.hasOwnProperty, ji = Tl.call(Object);
273
+ var Ui = "[object Object]", Bi = Function.prototype, Gi = Object.prototype, xl = Bi.toString, Ri = Gi.hasOwnProperty, ji = xl.call(Object);
282
274
  function Er(e) {
283
275
  if (!ga(e) || pa(e) != Ui)
284
276
  return !1;
285
277
  var a = un(e);
286
278
  if (a === null)
287
279
  return !0;
288
- var t = Gi.call(a, "constructor") && a.constructor;
289
- return typeof t == "function" && t instanceof t && Tl.call(t) == ji;
280
+ var t = Ri.call(a, "constructor") && a.constructor;
281
+ return typeof t == "function" && t instanceof t && xl.call(t) == ji;
290
282
  }
291
283
  function Li() {
292
284
  this.__data__ = [], this.size = 0;
293
285
  }
294
- function xl(e, a) {
286
+ function Tl(e, a) {
295
287
  return e === a || e !== e && a !== a;
296
288
  }
297
289
  function bt(e, a) {
298
290
  for (var t = e.length; t--; )
299
- if (xl(e[t][0], a))
291
+ if (Tl(e[t][0], a))
300
292
  return t;
301
293
  return -1;
302
294
  }
@@ -355,7 +347,7 @@ function Nl(e) {
355
347
  var a = pa(e);
356
348
  return a == eo || a == ao || a == Qi || a == to;
357
349
  }
358
- var It = $e["__core-js_shared__"], Cr = function() {
350
+ var It = Pe["__core-js_shared__"], Cr = function() {
359
351
  var e = /[^.]+$/.exec(It && It.keys && It.keys.IE_PROTO || "");
360
352
  return e ? "Symbol(src)_1." + e : "";
361
353
  }();
@@ -392,7 +384,7 @@ function ha(e, a) {
392
384
  var t = fo(e, a);
393
385
  return go(t) ? t : void 0;
394
386
  }
395
- var za = ha($e, "Map"), Va = ha(Object, "create");
387
+ var za = ha(Pe, "Map"), Va = ha(Object, "create");
396
388
  function ho() {
397
389
  this.__data__ = Va ? Va(null) : {}, this.size = 0;
398
390
  }
@@ -415,7 +407,7 @@ function wo(e) {
415
407
  return Va ? a[e] !== void 0 : Co.call(a, e);
416
408
  }
417
409
  var Fo = "__lodash_hash_undefined__";
418
- function To(e, a) {
410
+ function xo(e, a) {
419
411
  var t = this.__data__;
420
412
  return this.size += this.has(e) ? 0 : 1, t[e] = Va && a === void 0 ? Fo : a, this;
421
413
  }
@@ -430,8 +422,8 @@ ua.prototype.clear = ho;
430
422
  ua.prototype.delete = yo;
431
423
  ua.prototype.get = Ao;
432
424
  ua.prototype.has = wo;
433
- ua.prototype.set = To;
434
- function xo() {
425
+ ua.prototype.set = xo;
426
+ function To() {
435
427
  this.size = 0, this.__data__ = {
436
428
  hash: new ua(),
437
429
  map: new (za || je)(),
@@ -467,7 +459,7 @@ function We(e) {
467
459
  this.set(n[0], n[1]);
468
460
  }
469
461
  }
470
- We.prototype.clear = xo;
462
+ We.prototype.clear = To;
471
463
  We.prototype.delete = Mo;
472
464
  We.prototype.get = Po;
473
465
  We.prototype.has = $o;
@@ -515,7 +507,7 @@ function Ml(e, a, t) {
515
507
  var ko = Object.prototype, Uo = ko.hasOwnProperty;
516
508
  function Pl(e, a, t) {
517
509
  var n = e[a];
518
- (!(Uo.call(e, a) && xl(n, t)) || t === void 0 && !(a in e)) && Ml(e, a, t);
510
+ (!(Uo.call(e, a) && Tl(n, t)) || t === void 0 && !(a in e)) && Ml(e, a, t);
519
511
  }
520
512
  function At(e, a, t, n) {
521
513
  var r = !t;
@@ -531,19 +523,19 @@ function Bo(e, a) {
531
523
  n[t] = a(t);
532
524
  return n;
533
525
  }
534
- var Ro = "[object Arguments]";
526
+ var Go = "[object Arguments]";
535
527
  function Fr(e) {
536
- return ga(e) && pa(e) == Ro;
528
+ return ga(e) && pa(e) == Go;
537
529
  }
538
- var $l = Object.prototype, Go = $l.hasOwnProperty, jo = $l.propertyIsEnumerable, Lo = Fr(/* @__PURE__ */ function() {
530
+ var $l = Object.prototype, Ro = $l.hasOwnProperty, jo = $l.propertyIsEnumerable, Lo = Fr(/* @__PURE__ */ function() {
539
531
  return arguments;
540
532
  }()) ? Fr : function(e) {
541
- return ga(e) && Go.call(e, "callee") && !jo.call(e, "callee");
533
+ return ga(e) && Ro.call(e, "callee") && !jo.call(e, "callee");
542
534
  }, Za = Array.isArray;
543
535
  function Ko() {
544
536
  return !1;
545
537
  }
546
- var Ol = typeof exports == "object" && exports && !exports.nodeType && exports, Tr = Ol && typeof module == "object" && module && !module.nodeType && module, zo = Tr && Tr.exports === Ol, xr = zo ? $e.Buffer : void 0, Vo = xr ? xr.isBuffer : void 0, _l = Vo || Ko, Ho = 9007199254740991, Zo = /^(?:0|[1-9]\d*)$/;
538
+ var Ol = typeof exports == "object" && exports && !exports.nodeType && exports, xr = Ol && typeof module == "object" && module && !module.nodeType && module, zo = xr && xr.exports === Ol, Tr = zo ? Pe.Buffer : void 0, Vo = Tr ? Tr.isBuffer : void 0, _l = Vo || Ko, Ho = 9007199254740991, Zo = /^(?:0|[1-9]\d*)$/;
547
539
  function Wo(e, a) {
548
540
  var t = typeof e;
549
541
  return a = a ?? Ho, !!a && (t == "number" || t != "symbol" && Zo.test(e)) && e > -1 && e % 1 == 0 && e < a;
@@ -563,13 +555,13 @@ function mn(e) {
563
555
  return e(a);
564
556
  };
565
557
  }
566
- var Il = typeof exports == "object" && exports && !exports.nodeType && exports, Ga = Il && typeof module == "object" && module && !module.nodeType && module, Ac = Ga && Ga.exports === Il, kt = Ac && Cl.process, xa = function() {
558
+ var Il = typeof exports == "object" && exports && !exports.nodeType && exports, Ra = Il && typeof module == "object" && module && !module.nodeType && module, Ac = Ra && Ra.exports === Il, kt = Ac && Cl.process, Ta = function() {
567
559
  try {
568
- var e = Ga && Ga.require && Ga.require("util").types;
560
+ var e = Ra && Ra.require && Ra.require("util").types;
569
561
  return e || kt && kt.binding && kt.binding("util");
570
562
  } catch {
571
563
  }
572
- }(), Nr = xa && xa.isTypedArray, Ec = Nr ? mn(Nr) : Sc, Cc = Object.prototype, wc = Cc.hasOwnProperty;
564
+ }(), Nr = Ta && Ta.isTypedArray, Ec = Nr ? mn(Nr) : Sc, Cc = Object.prototype, wc = Cc.hasOwnProperty;
573
565
  function kl(e, a) {
574
566
  var t = Za(e), n = !t && Lo(e), r = !t && !n && _l(e), l = !t && !n && !r && Ec(e), i = t || n || r || l, d = i ? Bo(e.length, String) : [], m = d.length;
575
567
  for (var u in e)
@@ -585,10 +577,10 @@ function pn(e) {
585
577
  var a = e && e.constructor, t = typeof a == "function" && a.prototype || Fc;
586
578
  return e === t;
587
579
  }
588
- var Tc = Fl(Object.keys, Object), xc = Object.prototype, Nc = xc.hasOwnProperty;
580
+ var xc = Fl(Object.keys, Object), Tc = Object.prototype, Nc = Tc.hasOwnProperty;
589
581
  function Mc(e) {
590
582
  if (!pn(e))
591
- return Tc(e);
583
+ return xc(e);
592
584
  var a = [];
593
585
  for (var t in Object(e))
594
586
  Nc.call(e, t) && t != "constructor" && a.push(t);
@@ -625,14 +617,14 @@ function fn(e) {
625
617
  function Ic(e, a) {
626
618
  return e && At(a, fn(a), e);
627
619
  }
628
- var Bl = typeof exports == "object" && exports && !exports.nodeType && exports, Mr = Bl && typeof module == "object" && module && !module.nodeType && module, kc = Mr && Mr.exports === Bl, Pr = kc ? $e.Buffer : void 0, $r = Pr ? Pr.allocUnsafe : void 0;
620
+ var Bl = typeof exports == "object" && exports && !exports.nodeType && exports, Mr = Bl && typeof module == "object" && module && !module.nodeType && module, kc = Mr && Mr.exports === Bl, Pr = kc ? Pe.Buffer : void 0, $r = Pr ? Pr.allocUnsafe : void 0;
629
621
  function Uc(e, a) {
630
622
  if (a)
631
623
  return e.slice();
632
624
  var t = e.length, n = $r ? $r(t) : new e.constructor(t);
633
625
  return e.copy(n), n;
634
626
  }
635
- function Rl(e, a) {
627
+ function Gl(e, a) {
636
628
  var t = -1, n = e.length;
637
629
  for (a || (a = Array(n)); ++t < n; )
638
630
  a[t] = e[t];
@@ -645,14 +637,14 @@ function Bc(e, a) {
645
637
  }
646
638
  return l;
647
639
  }
648
- function Gl() {
640
+ function Rl() {
649
641
  return [];
650
642
  }
651
- var Rc = Object.prototype, Gc = Rc.propertyIsEnumerable, Or = Object.getOwnPropertySymbols, hn = Or ? function(e) {
643
+ var Gc = Object.prototype, Rc = Gc.propertyIsEnumerable, Or = Object.getOwnPropertySymbols, hn = Or ? function(e) {
652
644
  return e == null ? [] : (e = Object(e), Bc(Or(e), function(a) {
653
- return Gc.call(e, a);
645
+ return Rc.call(e, a);
654
646
  }));
655
- } : Gl;
647
+ } : Rl;
656
648
  function jc(e, a) {
657
649
  return At(e, hn(e), a);
658
650
  }
@@ -665,7 +657,7 @@ var Lc = Object.getOwnPropertySymbols, Ll = Lc ? function(e) {
665
657
  for (var a = []; e; )
666
658
  jl(a, hn(e)), e = un(e);
667
659
  return a;
668
- } : Gl;
660
+ } : Rl;
669
661
  function Kc(e, a) {
670
662
  return At(e, Ll(e), a);
671
663
  }
@@ -679,8 +671,8 @@ function zc(e) {
679
671
  function Vc(e) {
680
672
  return Kl(e, fn, Ll);
681
673
  }
682
- var Vt = ha($e, "DataView"), Ht = ha($e, "Promise"), Zt = ha($e, "Set"), Wt = ha($e, "WeakMap"), _r = "[object Map]", Hc = "[object Object]", Dr = "[object Promise]", Ir = "[object Set]", kr = "[object WeakMap]", Ur = "[object DataView]", Zc = fa(Vt), Wc = fa(za), qc = fa(Ht), Yc = fa(Zt), Jc = fa(Wt), Ge = pa;
683
- (Vt && Ge(new Vt(new ArrayBuffer(1))) != Ur || za && Ge(new za()) != _r || Ht && Ge(Ht.resolve()) != Dr || Zt && Ge(new Zt()) != Ir || Wt && Ge(new Wt()) != kr) && (Ge = function(e) {
674
+ var Vt = ha(Pe, "DataView"), Ht = ha(Pe, "Promise"), Zt = ha(Pe, "Set"), Wt = ha(Pe, "WeakMap"), _r = "[object Map]", Hc = "[object Object]", Dr = "[object Promise]", Ir = "[object Set]", kr = "[object WeakMap]", Ur = "[object DataView]", Zc = fa(Vt), Wc = fa(za), qc = fa(Ht), Yc = fa(Zt), Jc = fa(Wt), Re = pa;
675
+ (Vt && Re(new Vt(new ArrayBuffer(1))) != Ur || za && Re(new za()) != _r || Ht && Re(Ht.resolve()) != Dr || Zt && Re(new Zt()) != Ir || Wt && Re(new Wt()) != kr) && (Re = function(e) {
684
676
  var a = pa(e), t = a == Hc ? e.constructor : void 0, n = t ? fa(t) : "";
685
677
  if (n)
686
678
  switch (n) {
@@ -702,7 +694,7 @@ function ed(e) {
702
694
  var a = e.length, t = new e.constructor(a);
703
695
  return a && typeof e[0] == "string" && Qc.call(e, "index") && (t.index = e.index, t.input = e.input), t;
704
696
  }
705
- var Br = $e.Uint8Array;
697
+ var Br = Pe.Uint8Array;
706
698
  function yn(e) {
707
699
  var a = new e.constructor(e.byteLength);
708
700
  return new Br(a).set(new Br(e)), a;
@@ -716,9 +708,9 @@ function nd(e) {
716
708
  var a = new e.constructor(e.source, td.exec(e));
717
709
  return a.lastIndex = e.lastIndex, a;
718
710
  }
719
- var Rr = Ze ? Ze.prototype : void 0, Gr = Rr ? Rr.valueOf : void 0;
711
+ var Gr = Ze ? Ze.prototype : void 0, Rr = Gr ? Gr.valueOf : void 0;
720
712
  function rd(e) {
721
- return Gr ? Object(Gr.call(e)) : {};
713
+ return Rr ? Object(Rr.call(e)) : {};
722
714
  }
723
715
  function ld(e, a) {
724
716
  var t = a ? yn(e.buffer) : e.buffer;
@@ -758,7 +750,7 @@ function Fd(e, a, t) {
758
750
  return rd(e);
759
751
  }
760
752
  }
761
- var jr = Object.create, Td = /* @__PURE__ */ function() {
753
+ var jr = Object.create, xd = /* @__PURE__ */ function() {
762
754
  function e() {
763
755
  }
764
756
  return function(a) {
@@ -771,20 +763,20 @@ var jr = Object.create, Td = /* @__PURE__ */ function() {
771
763
  return e.prototype = void 0, t;
772
764
  };
773
765
  }();
774
- function xd(e) {
775
- return typeof e.constructor == "function" && !pn(e) ? Td(un(e)) : {};
766
+ function Td(e) {
767
+ return typeof e.constructor == "function" && !pn(e) ? xd(un(e)) : {};
776
768
  }
777
769
  var Nd = "[object Map]";
778
770
  function Md(e) {
779
- return ga(e) && Ge(e) == Nd;
771
+ return ga(e) && Re(e) == Nd;
780
772
  }
781
- var Lr = xa && xa.isMap, Pd = Lr ? mn(Lr) : Md, $d = "[object Set]";
773
+ var Lr = Ta && Ta.isMap, Pd = Lr ? mn(Lr) : Md, $d = "[object Set]";
782
774
  function Od(e) {
783
- return ga(e) && Ge(e) == $d;
775
+ return ga(e) && Re(e) == $d;
784
776
  }
785
- var Kr = xa && xa.isSet, _d = Kr ? mn(Kr) : Od, Dd = 1, Id = 2, kd = 4, zl = "[object Arguments]", Ud = "[object Array]", Bd = "[object Boolean]", Rd = "[object Date]", Gd = "[object Error]", Vl = "[object Function]", jd = "[object GeneratorFunction]", Ld = "[object Map]", Kd = "[object Number]", Hl = "[object Object]", zd = "[object RegExp]", Vd = "[object Set]", Hd = "[object String]", Zd = "[object Symbol]", Wd = "[object WeakMap]", qd = "[object ArrayBuffer]", Yd = "[object DataView]", Jd = "[object Float32Array]", Xd = "[object Float64Array]", Qd = "[object Int8Array]", eu = "[object Int16Array]", au = "[object Int32Array]", tu = "[object Uint8Array]", nu = "[object Uint8ClampedArray]", ru = "[object Uint16Array]", lu = "[object Uint32Array]", G = {};
786
- G[zl] = G[Ud] = G[qd] = G[Yd] = G[Bd] = G[Rd] = G[Jd] = G[Xd] = G[Qd] = G[eu] = G[au] = G[Ld] = G[Kd] = G[Hl] = G[zd] = G[Vd] = G[Hd] = G[Zd] = G[tu] = G[nu] = G[ru] = G[lu] = !0;
787
- G[Gd] = G[Vl] = G[Wd] = !1;
777
+ var Kr = Ta && Ta.isSet, _d = Kr ? mn(Kr) : Od, Dd = 1, Id = 2, kd = 4, zl = "[object Arguments]", Ud = "[object Array]", Bd = "[object Boolean]", Gd = "[object Date]", Rd = "[object Error]", Vl = "[object Function]", jd = "[object GeneratorFunction]", Ld = "[object Map]", Kd = "[object Number]", Hl = "[object Object]", zd = "[object RegExp]", Vd = "[object Set]", Hd = "[object String]", Zd = "[object Symbol]", Wd = "[object WeakMap]", qd = "[object ArrayBuffer]", Yd = "[object DataView]", Jd = "[object Float32Array]", Xd = "[object Float64Array]", Qd = "[object Int8Array]", eu = "[object Int16Array]", au = "[object Int32Array]", tu = "[object Uint8Array]", nu = "[object Uint8ClampedArray]", ru = "[object Uint16Array]", lu = "[object Uint32Array]", R = {};
778
+ R[zl] = R[Ud] = R[qd] = R[Yd] = R[Bd] = R[Gd] = R[Jd] = R[Xd] = R[Qd] = R[eu] = R[au] = R[Ld] = R[Kd] = R[Hl] = R[zd] = R[Vd] = R[Hd] = R[Zd] = R[tu] = R[nu] = R[ru] = R[lu] = !0;
779
+ R[Rd] = R[Vl] = R[Wd] = !1;
788
780
  function ja(e, a, t, n, r, l) {
789
781
  var i, d = a & Dd, m = a & Id, u = a & kd;
790
782
  if (i !== void 0)
@@ -794,16 +786,16 @@ function ja(e, a, t, n, r, l) {
794
786
  var g = Za(e);
795
787
  if (g) {
796
788
  if (i = ed(e), !d)
797
- return Rl(e, i);
789
+ return Gl(e, i);
798
790
  } else {
799
- var y = Ge(e), f = y == Vl || y == jd;
791
+ var y = Re(e), f = y == Vl || y == jd;
800
792
  if (_l(e))
801
793
  return Uc(e, d);
802
794
  if (y == Hl || y == zl || f && !r) {
803
- if (i = m || f ? {} : xd(e), !d)
795
+ if (i = m || f ? {} : Td(e), !d)
804
796
  return m ? Kc(e, Ic(i, e)) : jc(e, Pc(i, e));
805
797
  } else {
806
- if (!G[y])
798
+ if (!R[y])
807
799
  return r ? e : {};
808
800
  i = Fd(e, y, d);
809
801
  }
@@ -940,7 +932,7 @@ function Au(e) {
940
932
  return e == null ? "" : Wl(e);
941
933
  }
942
934
  function ql(e) {
943
- return Za(e) ? Zl(e, Su) : vn(e) ? [e] : Rl(bu(Au(e)));
935
+ return Za(e) ? Zl(e, Su) : vn(e) ? [e] : Gl(bu(Au(e)));
944
936
  }
945
937
  var Yl = mi(), Eu = {
946
938
  $$typeof: !0,
@@ -983,18 +975,18 @@ function Fu() {
983
975
  var e = oi(Et);
984
976
  return e || (process.env.NODE_ENV !== "production" ? wa(!1, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.") : wa()), e;
985
977
  }
986
- var Fe = function(a) {
978
+ var we = function(a) {
987
979
  return typeof a == "function";
988
980
  }, Ct = function(a) {
989
981
  return a !== null && typeof a == "object";
990
- }, Tu = function(a) {
982
+ }, xu = function(a) {
991
983
  return String(Math.floor(Number(a))) === a;
992
984
  }, Ut = function(a) {
993
985
  return Object.prototype.toString.call(a) === "[object String]";
994
986
  }, Bt = function(a) {
995
- return Ct(a) && Fe(a.then);
987
+ return Ct(a) && we(a.then);
996
988
  };
997
- function xu(e) {
989
+ function Tu(e) {
998
990
  if (e = e || (typeof document < "u" ? document : void 0), typeof e > "u")
999
991
  return null;
1000
992
  try {
@@ -1016,7 +1008,7 @@ function oa(e, a, t) {
1016
1008
  r = r[d] = Hr(m);
1017
1009
  else {
1018
1010
  var u = i[l + 1];
1019
- r = r[d] = Tu(u) && Number(u) >= 0 ? [] : {};
1011
+ r = r[d] = xu(u) && Number(u) >= 0 ? [] : {};
1020
1012
  }
1021
1013
  }
1022
1014
  return (l === 0 ? e : r)[i[l]] === t ? e : (t === void 0 ? delete r[i[l]] : r[i[l]] = t, l === 0 && t === void 0 && delete n[i[l]], n);
@@ -1112,7 +1104,7 @@ function Mu(e) {
1112
1104
  isSubmitting: !1,
1113
1105
  isValidating: !1,
1114
1106
  submitCount: 0
1115
- }), F = E.current, O = Z(function(c) {
1107
+ }), x = E.current, O = Z(function(c) {
1116
1108
  var h = E.current;
1117
1109
  E.current = Nu(h, c), h !== E.current && j(function(S) {
1118
1110
  return S + 1;
@@ -1127,7 +1119,7 @@ function Mu(e) {
1127
1119
  }) : S(M);
1128
1120
  });
1129
1121
  }, [f.validate]), ae = Z(function(c, h) {
1130
- var S = f.validationSchema, A = Fe(S) ? S(h) : S, M = h && A.validateAt ? A.validateAt(h, c) : $u(c, A);
1122
+ var S = f.validationSchema, A = we(S) ? S(h) : S, M = h && A.validateAt ? A.validateAt(h, c) : $u(c, A);
1131
1123
  return new Promise(function(D, z) {
1132
1124
  M.then(function() {
1133
1125
  D(la);
@@ -1141,7 +1133,7 @@ function Mu(e) {
1141
1133
  });
1142
1134
  }, []), k = Z(function(c) {
1143
1135
  var h = Object.keys(C.current).filter(function(A) {
1144
- return Fe(C.current[A].validate);
1136
+ return we(C.current[A].validate);
1145
1137
  }), S = h.length > 0 ? h.map(function(A) {
1146
1138
  return me(A, de(c, A));
1147
1139
  }) : [Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];
@@ -1158,7 +1150,7 @@ function Mu(e) {
1158
1150
  return D;
1159
1151
  });
1160
1152
  }, [f.validate, f.validationSchema, k, Se, ae]), te = ye(function(c) {
1161
- return c === void 0 && (c = F.values), O({
1153
+ return c === void 0 && (c = x.values), O({
1162
1154
  type: "SET_ISVALIDATING",
1163
1155
  payload: !0
1164
1156
  }), H(c).then(function(h) {
@@ -1192,7 +1184,7 @@ function Mu(e) {
1192
1184
  });
1193
1185
  };
1194
1186
  if (f.onReset) {
1195
- var z = f.onReset(F.values, Ye);
1187
+ var z = f.onReset(x.values, Ye);
1196
1188
  Bt(z) ? z.then(D) : D();
1197
1189
  } else
1198
1190
  D();
@@ -1216,8 +1208,8 @@ function Mu(e) {
1216
1208
  }));
1217
1209
  }, [u, f.initialStatus, f.initialTouched]);
1218
1210
  var Ae = ye(function(c) {
1219
- if (C.current[c] && Fe(C.current[c].validate)) {
1220
- var h = de(F.values, c), S = C.current[c].validate(h);
1211
+ if (C.current[c] && we(C.current[c].validate)) {
1212
+ var h = de(x.values, c), S = C.current[c].validate(h);
1221
1213
  return Bt(S) ? (O({
1222
1214
  type: "SET_ISVALIDATING",
1223
1215
  payload: !0
@@ -1245,7 +1237,7 @@ function Mu(e) {
1245
1237
  return O({
1246
1238
  type: "SET_ISVALIDATING",
1247
1239
  payload: !0
1248
- }), ae(F.values, c).then(function(A) {
1240
+ }), ae(x.values, c).then(function(A) {
1249
1241
  return A;
1250
1242
  }).then(function(A) {
1251
1243
  O({
@@ -1273,14 +1265,14 @@ function Mu(e) {
1273
1265
  payload: c
1274
1266
  });
1275
1267
  var S = h === void 0 ? r : h;
1276
- return S ? te(F.values) : Promise.resolve();
1277
- }), Te = Z(function(c) {
1268
+ return S ? te(x.values) : Promise.resolve();
1269
+ }), Fe = Z(function(c) {
1278
1270
  O({
1279
1271
  type: "SET_ERRORS",
1280
1272
  payload: c
1281
1273
  });
1282
- }, []), Oe = ye(function(c, h) {
1283
- var S = Fe(c) ? c(F.values) : c;
1274
+ }, []), $e = ye(function(c, h) {
1275
+ var S = we(c) ? c(x.values) : c;
1284
1276
  O({
1285
1277
  type: "SET_VALUES",
1286
1278
  payload: S
@@ -1304,7 +1296,7 @@ function Mu(e) {
1304
1296
  }
1305
1297
  });
1306
1298
  var A = S === void 0 ? t : S;
1307
- return A ? te(oa(F.values, c, h)) : Promise.resolve();
1299
+ return A ? te(oa(x.values, c, h)) : Promise.resolve();
1308
1300
  }), ba = Z(function(c, h) {
1309
1301
  var S = h, A = c, M;
1310
1302
  if (!Ut(c)) {
@@ -1314,10 +1306,10 @@ function Mu(e) {
1314
1306
  htmlContent: qa,
1315
1307
  documentationAnchorLink: "handlechange-e-reactchangeeventany--void",
1316
1308
  handlerName: "handleChange"
1317
- }), A = /number|range/.test(z) ? (M = parseFloat($a), isNaN(M) ? "" : M) : /checkbox/.test(z) ? Du(de(F.values, S), Oa, $a) : Ya && wt ? _u(Ya) : $a;
1309
+ }), A = /number|range/.test(z) ? (M = parseFloat($a), isNaN(M) ? "" : M) : /checkbox/.test(z) ? Du(de(x.values, S), Oa, $a) : Ya && wt ? _u(Ya) : $a;
1318
1310
  }
1319
1311
  S && ge(S, A);
1320
- }, [ge, F.values]), Ke = ye(function(c) {
1312
+ }, [ge, x.values]), Ke = ye(function(c) {
1321
1313
  if (Ut(c))
1322
1314
  return function(h) {
1323
1315
  return ba(h, c);
@@ -1332,7 +1324,7 @@ function Mu(e) {
1332
1324
  }
1333
1325
  });
1334
1326
  var A = S === void 0 ? r : S;
1335
- return A ? te(F.values) : Promise.resolve();
1327
+ return A ? te(x.values) : Promise.resolve();
1336
1328
  }), Sa = Z(function(c, h) {
1337
1329
  c.persist && c.persist();
1338
1330
  var S = c.target, A = S.name, M = S.id, D = S.outerHTML, z = h || A || M;
@@ -1348,7 +1340,7 @@ function Mu(e) {
1348
1340
  };
1349
1341
  Sa(c);
1350
1342
  }), Pa = Z(function(c) {
1351
- Fe(c) ? O({
1343
+ we(c) ? O({
1352
1344
  type: "SET_FORMIK_STATE",
1353
1345
  payload: c
1354
1346
  }) : O({
@@ -1375,7 +1367,7 @@ function Mu(e) {
1375
1367
  if (S) {
1376
1368
  var A;
1377
1369
  try {
1378
- if (A = R(), A === void 0)
1370
+ if (A = G(), A === void 0)
1379
1371
  return;
1380
1372
  } catch (M) {
1381
1373
  throw M;
@@ -1396,8 +1388,8 @@ function Mu(e) {
1396
1388
  throw c;
1397
1389
  });
1398
1390
  }), he = ye(function(c) {
1399
- if (c && c.preventDefault && Fe(c.preventDefault) && c.preventDefault(), c && c.stopPropagation && Fe(c.stopPropagation) && c.stopPropagation(), process.env.NODE_ENV !== "production" && typeof document < "u") {
1400
- var h = xu();
1391
+ if (c && c.preventDefault && we(c.preventDefault) && c.preventDefault(), c && c.stopPropagation && we(c.stopPropagation) && c.stopPropagation(), process.env.NODE_ENV !== "production" && typeof document < "u") {
1392
+ var h = Tu();
1401
1393
  h !== null && h instanceof HTMLButtonElement && (h.attributes && h.attributes.getNamedItem("type") || (process.env.NODE_ENV !== "production" ? wa(!1, 'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.') : wa()));
1402
1394
  }
1403
1395
  fe().catch(function(S) {
@@ -1407,30 +1399,30 @@ function Mu(e) {
1407
1399
  resetForm: le,
1408
1400
  validateForm: te,
1409
1401
  validateField: Ae,
1410
- setErrors: Te,
1402
+ setErrors: Fe,
1411
1403
  setFieldError: Le,
1412
1404
  setFieldTouched: Ee,
1413
1405
  setFieldValue: ge,
1414
1406
  setStatus: ze,
1415
1407
  setSubmitting: ne,
1416
1408
  setTouched: pe,
1417
- setValues: Oe,
1409
+ setValues: $e,
1418
1410
  setFormikState: Pa,
1419
1411
  submitForm: fe
1420
- }, R = ye(function() {
1421
- return g(F.values, Ye);
1422
- }), _e = ye(function(c) {
1423
- c && c.preventDefault && Fe(c.preventDefault) && c.preventDefault(), c && c.stopPropagation && Fe(c.stopPropagation) && c.stopPropagation(), le();
1424
- }), De = Z(function(c) {
1412
+ }, G = ye(function() {
1413
+ return g(x.values, Ye);
1414
+ }), Oe = ye(function(c) {
1415
+ c && c.preventDefault && we(c.preventDefault) && c.preventDefault(), c && c.stopPropagation && we(c.stopPropagation) && c.stopPropagation(), le();
1416
+ }), _e = Z(function(c) {
1425
1417
  return {
1426
- value: de(F.values, c),
1427
- error: de(F.errors, c),
1428
- touched: !!de(F.touched, c),
1418
+ value: de(x.values, c),
1419
+ error: de(x.errors, c),
1420
+ touched: !!de(x.touched, c),
1429
1421
  initialValue: de(P.current, c),
1430
1422
  initialTouched: !!de(I.current, c),
1431
1423
  initialError: de(T.current, c)
1432
1424
  };
1433
- }, [F.errors, F.touched, F.values]), Ce = Z(function(c) {
1425
+ }, [x.errors, x.touched, x.values]), Ce = Z(function(c) {
1434
1426
  return {
1435
1427
  setValue: function(S, A) {
1436
1428
  return ge(c, S, A);
@@ -1443,7 +1435,7 @@ function Mu(e) {
1443
1435
  }
1444
1436
  };
1445
1437
  }, [ge, Ee, Le]), xe = Z(function(c) {
1446
- var h = Ct(c), S = h ? c.name : c, A = de(F.values, S), M = {
1438
+ var h = Ct(c), S = h ? c.name : c, A = de(x.values, S), M = {
1447
1439
  name: S,
1448
1440
  value: A,
1449
1441
  onChange: Ke,
@@ -1454,21 +1446,21 @@ function Mu(e) {
1454
1446
  D === "checkbox" ? z === void 0 ? M.checked = !!A : (M.checked = !!(Array.isArray(A) && ~A.indexOf(z)), M.value = z) : D === "radio" ? (M.checked = A === z, M.value = z) : V === "select" && Qe && (M.value = M.value || [], M.multiple = !0);
1455
1447
  }
1456
1448
  return M;
1457
- }, [qe, Ke, F.values]), X = pt(function() {
1458
- return !sa(P.current, F.values);
1459
- }, [P.current, F.values]), Je = pt(function() {
1460
- return typeof d < "u" ? X ? F.errors && Object.keys(F.errors).length === 0 : d !== !1 && Fe(d) ? d(f) : d : F.errors && Object.keys(F.errors).length === 0;
1461
- }, [d, X, F.errors, f]), Xe = Q({}, F, {
1449
+ }, [qe, Ke, x.values]), X = pt(function() {
1450
+ return !sa(P.current, x.values);
1451
+ }, [P.current, x.values]), Je = pt(function() {
1452
+ return typeof d < "u" ? X ? x.errors && Object.keys(x.errors).length === 0 : d !== !1 && we(d) ? d(f) : d : x.errors && Object.keys(x.errors).length === 0;
1453
+ }, [d, X, x.errors, f]), Xe = Q({}, x, {
1462
1454
  initialValues: P.current,
1463
1455
  initialErrors: T.current,
1464
1456
  initialTouched: I.current,
1465
1457
  initialStatus: v.current,
1466
1458
  handleBlur: qe,
1467
1459
  handleChange: Ke,
1468
- handleReset: _e,
1460
+ handleReset: Oe,
1469
1461
  handleSubmit: he,
1470
1462
  resetForm: le,
1471
- setErrors: Te,
1463
+ setErrors: Fe,
1472
1464
  setFormikState: Pa,
1473
1465
  setFieldTouched: Ee,
1474
1466
  setFieldValue: ge,
@@ -1476,7 +1468,7 @@ function Mu(e) {
1476
1468
  setStatus: ze,
1477
1469
  setSubmitting: ne,
1478
1470
  setTouched: pe,
1479
- setValues: Oe,
1471
+ setValues: $e,
1480
1472
  submitForm: fe,
1481
1473
  validateForm: te,
1482
1474
  validateField: Ae,
@@ -1485,7 +1477,7 @@ function Mu(e) {
1485
1477
  unregisterField: Wa,
1486
1478
  registerField: va,
1487
1479
  getFieldProps: xe,
1488
- getFieldMeta: De,
1480
+ getFieldMeta: _e,
1489
1481
  getFieldHelpers: Ce,
1490
1482
  validateOnBlur: r,
1491
1483
  validateOnChange: t,
@@ -1586,26 +1578,26 @@ var ku = /* @__PURE__ */ vl(function(e, a) {
1586
1578
  });
1587
1579
  ku.displayName = "Form";
1588
1580
  var re = [];
1589
- for (var Rt = 0; Rt < 256; ++Rt)
1590
- re.push((Rt + 256).toString(16).slice(1));
1581
+ for (var Gt = 0; Gt < 256; ++Gt)
1582
+ re.push((Gt + 256).toString(16).slice(1));
1591
1583
  function Uu(e, a = 0) {
1592
1584
  return (re[e[a + 0]] + re[e[a + 1]] + re[e[a + 2]] + re[e[a + 3]] + "-" + re[e[a + 4]] + re[e[a + 5]] + "-" + re[e[a + 6]] + re[e[a + 7]] + "-" + re[e[a + 8]] + re[e[a + 9]] + "-" + re[e[a + 10]] + re[e[a + 11]] + re[e[a + 12]] + re[e[a + 13]] + re[e[a + 14]] + re[e[a + 15]]).toLowerCase();
1593
1585
  }
1594
1586
  var ct, Bu = new Uint8Array(16);
1595
- function Ru() {
1587
+ function Gu() {
1596
1588
  if (!ct && (ct = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ct))
1597
1589
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1598
1590
  return ct(Bu);
1599
1591
  }
1600
- var Gu = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1592
+ var Ru = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1601
1593
  const Yr = {
1602
- randomUUID: Gu
1594
+ randomUUID: Ru
1603
1595
  };
1604
1596
  function Jt(e, a, t) {
1605
1597
  if (Yr.randomUUID && !e)
1606
1598
  return Yr.randomUUID();
1607
1599
  e = e || {};
1608
- var n = e.random || (e.rng || Ru)();
1600
+ var n = e.random || (e.rng || Gu)();
1609
1601
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Uu(n);
1610
1602
  }
1611
1603
  function Ma(e) {
@@ -1675,7 +1667,7 @@ const qu = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|r
1675
1667
  (a, t) => `${a}${a ? t[0].toUpperCase() + t.slice(1).toLowerCase() : t.toLowerCase()}`,
1676
1668
  ""
1677
1669
  ), Xu = (e) => Yu(e, "_");
1678
- var Gt = {
1670
+ var Rt = {
1679
1671
  camelCase: Ju,
1680
1672
  snakeCase: Xu
1681
1673
  }, En = { exports: {} };
@@ -1798,7 +1790,7 @@ class ce extends Error {
1798
1790
  return al[Symbol.hasInstance](a) || super[Symbol.hasInstance](a);
1799
1791
  }
1800
1792
  }
1801
- let Me = {
1793
+ let Ne = {
1802
1794
  default: "${path} is invalid",
1803
1795
  required: "${path} is a required field",
1804
1796
  defined: "${path} must be defined",
@@ -1858,11 +1850,11 @@ let Me = {
1858
1850
  if (t.length < r) return `${a} tuple value has too few items, expected a length of ${r} but got ${t.length} for value: \`${He(t, !0)}\``;
1859
1851
  if (t.length > r) return `${a} tuple value has too many items, expected a length of ${r} but got ${t.length} for value: \`${He(t, !0)}\``;
1860
1852
  }
1861
- return ce.formatError(Me.notType, e);
1853
+ return ce.formatError(Ne.notType, e);
1862
1854
  }
1863
1855
  };
1864
1856
  Object.assign(/* @__PURE__ */ Object.create(null), {
1865
- mixed: Me,
1857
+ mixed: Ne,
1866
1858
  string: ie,
1867
1859
  number: um,
1868
1860
  date: Qt,
@@ -1994,26 +1986,26 @@ function Ca(e) {
1994
1986
  originalValue: l,
1995
1987
  schema: i
1996
1988
  };
1997
- const F = (k) => {
1989
+ const x = (k) => {
1998
1990
  ce.isError(k) ? j(k) : k ? m(null) : j(q());
1999
1991
  }, O = (k) => {
2000
1992
  ce.isError(k) ? j(k) : d(k);
2001
1993
  };
2002
1994
  if (P && ia(t))
2003
- return F(!0);
1995
+ return x(!0);
2004
1996
  let ae;
2005
1997
  try {
2006
1998
  var me;
2007
1999
  if (ae = g.call(E, t, E), typeof ((me = ae) == null ? void 0 : me.then) == "function") {
2008
2000
  if (r.sync)
2009
2001
  throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
2010
- return Promise.resolve(ae).then(F, O);
2002
+ return Promise.resolve(ae).then(x, O);
2011
2003
  }
2012
2004
  } catch (k) {
2013
2005
  O(k);
2014
2006
  return;
2015
2007
  }
2016
- F(ae);
2008
+ x(ae);
2017
2009
  }
2018
2010
  return a.OPTIONS = e, a;
2019
2011
  }
@@ -2093,10 +2085,10 @@ function Fa(e, a = /* @__PURE__ */ new Map()) {
2093
2085
  throw Error(`Unable to clone ${e}`);
2094
2086
  return t;
2095
2087
  }
2096
- class Pe {
2088
+ class Me {
2097
2089
  constructor(a) {
2098
2090
  this.type = void 0, this.deps = [], this.tests = void 0, this.transforms = void 0, this.conditions = [], this._mutate = void 0, this.internalTests = {}, this._whitelist = new ht(), this._blacklist = new ht(), this.exclusiveTests = /* @__PURE__ */ Object.create(null), this._typeCheck = void 0, this.spec = void 0, this.tests = [], this.transforms = [], this.withMutation(() => {
2099
- this.typeError(Me.notType);
2091
+ this.typeError(Ne.notType);
2100
2092
  }), this.type = a.type, this._typeCheck = a.check, this.spec = Object.assign({
2101
2093
  strip: !1,
2102
2094
  strict: !1,
@@ -2363,16 +2355,16 @@ attempted value: ${i}
2363
2355
  optional() {
2364
2356
  return this.optionality(!0);
2365
2357
  }
2366
- defined(a = Me.defined) {
2358
+ defined(a = Ne.defined) {
2367
2359
  return this.optionality(!1, a);
2368
2360
  }
2369
2361
  nullable() {
2370
2362
  return this.nullability(!0);
2371
2363
  }
2372
- nonNullable(a = Me.notNull) {
2364
+ nonNullable(a = Ne.notNull) {
2373
2365
  return this.nullability(!1, a);
2374
2366
  }
2375
- required(a = Me.required) {
2367
+ required(a = Ne.required) {
2376
2368
  return this.clone().withMutation((t) => t.nonNullable(a).defined(a));
2377
2369
  }
2378
2370
  notRequired() {
@@ -2406,7 +2398,7 @@ attempted value: ${i}
2406
2398
  name: a[0],
2407
2399
  message: a[1],
2408
2400
  test: a[2]
2409
- }, t.message === void 0 && (t.message = Me.default), typeof t.test != "function") throw new TypeError("`test` is a required parameters");
2401
+ }, t.message === void 0 && (t.message = Ne.default), typeof t.test != "function") throw new TypeError("`test` is a required parameters");
2410
2402
  let n = this.clone(), r = Ca(t), l = t.exclusive || t.name && n.exclusiveTests[t.name] === !0;
2411
2403
  if (t.exclusive && !t.name)
2412
2404
  throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");
@@ -2434,7 +2426,7 @@ attempted value: ${i}
2434
2426
  }
2435
2427
  }), t;
2436
2428
  }
2437
- oneOf(a, t = Me.oneOf) {
2429
+ oneOf(a, t = Ne.oneOf) {
2438
2430
  let n = this.clone();
2439
2431
  return a.forEach((r) => {
2440
2432
  n._whitelist.add(r), n._blacklist.delete(r);
@@ -2453,7 +2445,7 @@ attempted value: ${i}
2453
2445
  }
2454
2446
  }), n;
2455
2447
  }
2456
- notOneOf(a, t = Me.notOneOf) {
2448
+ notOneOf(a, t = Ne.notOneOf) {
2457
2449
  let n = this.clone();
2458
2450
  return a.forEach((r) => {
2459
2451
  n._blacklist.add(r), n._whitelist.delete(r);
@@ -2503,8 +2495,8 @@ attempted value: ${i}
2503
2495
  };
2504
2496
  }
2505
2497
  }
2506
- Pe.prototype.__isYupSchema__ = !0;
2507
- for (const e of ["validate", "validateSync"]) Pe.prototype[`${e}At`] = function(a, t, n = {}) {
2498
+ Me.prototype.__isYupSchema__ = !0;
2499
+ for (const e of ["validate", "validateSync"]) Me.prototype[`${e}At`] = function(a, t, n = {}) {
2508
2500
  const {
2509
2501
  parent: r,
2510
2502
  parentPath: l,
@@ -2515,8 +2507,8 @@ for (const e of ["validate", "validateSync"]) Pe.prototype[`${e}At`] = function(
2515
2507
  path: a
2516
2508
  }));
2517
2509
  };
2518
- for (const e of ["equals", "is"]) Pe.prototype[e] = Pe.prototype.oneOf;
2519
- for (const e of ["not", "nope"]) Pe.prototype[e] = Pe.prototype.notOneOf;
2510
+ for (const e of ["equals", "is"]) Me.prototype[e] = Me.prototype.oneOf;
2511
+ for (const e of ["not", "nope"]) Me.prototype[e] = Me.prototype.notOneOf;
2520
2512
  const hm = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
2521
2513
  function ym(e) {
2522
2514
  const a = an(e);
@@ -2556,11 +2548,11 @@ let vm = (
2556
2548
  ), bm = (
2557
2549
  // eslint-disable-next-line
2558
2550
  /^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i
2559
- ), Sm = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, Am = "^\\d{4}-\\d{2}-\\d{2}", Em = "\\d{2}:\\d{2}:\\d{2}", Cm = "(([+-]\\d{2}(:?\\d{2})?)|Z)", wm = new RegExp(`${Am}T${Em}(\\.\\d+)?${Cm}$`), Fm = (e) => ia(e) || e === e.trim(), Tm = {}.toString();
2551
+ ), Sm = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, Am = "^\\d{4}-\\d{2}-\\d{2}", Em = "\\d{2}:\\d{2}:\\d{2}", Cm = "(([+-]\\d{2}(:?\\d{2})?)|Z)", wm = new RegExp(`${Am}T${Em}(\\.\\d+)?${Cm}$`), Fm = (e) => ia(e) || e === e.trim(), xm = {}.toString();
2560
2552
  function ve() {
2561
2553
  return new is();
2562
2554
  }
2563
- class is extends Pe {
2555
+ class is extends Me {
2564
2556
  constructor() {
2565
2557
  super({
2566
2558
  type: "string",
@@ -2571,13 +2563,13 @@ class is extends Pe {
2571
2563
  this.transform((a, t, n) => {
2572
2564
  if (!n.spec.coerce || n.isType(a) || Array.isArray(a)) return a;
2573
2565
  const r = a != null && a.toString ? a.toString() : a;
2574
- return r === Tm ? a : r;
2566
+ return r === xm ? a : r;
2575
2567
  });
2576
2568
  });
2577
2569
  }
2578
2570
  required(a) {
2579
2571
  return super.required(a).withMutation((t) => t.test({
2580
- message: a || Me.required,
2572
+ message: a || Ne.required,
2581
2573
  name: "required",
2582
2574
  skipAbsent: !0,
2583
2575
  test: (n) => !!n.length
@@ -2732,8 +2724,8 @@ class is extends Pe {
2732
2724
  }
2733
2725
  }
2734
2726
  ve.prototype = is.prototype;
2735
- let xm = /* @__PURE__ */ new Date(""), Nm = (e) => Object.prototype.toString.call(e) === "[object Date]";
2736
- class wn extends Pe {
2727
+ let Tm = /* @__PURE__ */ new Date(""), Nm = (e) => Object.prototype.toString.call(e) === "[object Date]";
2728
+ class wn extends Me {
2737
2729
  constructor() {
2738
2730
  super({
2739
2731
  type: "date",
@@ -2786,7 +2778,7 @@ class wn extends Pe {
2786
2778
  });
2787
2779
  }
2788
2780
  }
2789
- wn.INVALID_DATE = xm;
2781
+ wn.INVALID_DATE = Tm;
2790
2782
  function Mm(e, a = []) {
2791
2783
  let t = [], n = /* @__PURE__ */ new Set(), r = new Set(a.map(([i, d]) => `${i}-${d}`));
2792
2784
  function l(i, d) {
@@ -2850,7 +2842,7 @@ const _m = os([]);
2850
2842
  function tn(e) {
2851
2843
  return new cs(e);
2852
2844
  }
2853
- class cs extends Pe {
2845
+ class cs extends Me {
2854
2846
  constructor(a) {
2855
2847
  super({
2856
2848
  type: "object",
@@ -2879,7 +2871,7 @@ class cs extends Pe {
2879
2871
  context: t.context,
2880
2872
  parent: m
2881
2873
  });
2882
- let v = f instanceof Pe ? f.spec : void 0, $ = v == null ? void 0 : v.strict;
2874
+ let v = f instanceof Me ? f.spec : void 0, $ = v == null ? void 0 : v.strict;
2883
2875
  if (v != null && v.strip) {
2884
2876
  g = g || y in r;
2885
2877
  continue;
@@ -3033,13 +3025,13 @@ class cs extends Pe {
3033
3025
  });
3034
3026
  }
3035
3027
  camelCase() {
3036
- return this.transformKeys(Gt.camelCase);
3028
+ return this.transformKeys(Rt.camelCase);
3037
3029
  }
3038
3030
  snakeCase() {
3039
- return this.transformKeys(Gt.snakeCase);
3031
+ return this.transformKeys(Rt.snakeCase);
3040
3032
  }
3041
3033
  constantCase() {
3042
- return this.transformKeys((a) => Gt.snakeCase(a).toUpperCase());
3034
+ return this.transformKeys((a) => Rt.snakeCase(a).toUpperCase());
3043
3035
  }
3044
3036
  describe(a) {
3045
3037
  const t = (a ? this.resolve(a) : this).clone(), n = super.describe(a);
@@ -8668,7 +8660,7 @@ const Um = ({
8668
8660
  independent: !1
8669
8661
  }
8670
8662
  ];
8671
- function Rm(e, a) {
8663
+ function Gm(e, a) {
8672
8664
  const [t, n] = U(e);
8673
8665
  return ee(() => {
8674
8666
  const r = setTimeout(() => n(e), 500);
@@ -8677,7 +8669,7 @@ function Rm(e, a) {
8677
8669
  };
8678
8670
  }, [e, a]), t;
8679
8671
  }
8680
- const Gm = ({
8672
+ const Rm = ({
8681
8673
  showFullname: e,
8682
8674
  showEmail: a,
8683
8675
  showPhone: t,
@@ -8688,10 +8680,10 @@ const Gm = ({
8688
8680
  proceedButton: d
8689
8681
  }) => /* @__PURE__ */ p(J, { children: [
8690
8682
  /* @__PURE__ */ p("div", { className: "mpl:flex mpl:flex-col mpl:gap-20 mpl:px-2", children: [
8691
- e && /* @__PURE__ */ p(Ta, { children: [
8692
- /* @__PURE__ */ s(Ne, { htmlFor: "fullname", children: "Full name" }),
8683
+ e && /* @__PURE__ */ p(xa, { children: [
8684
+ /* @__PURE__ */ s(Te, { htmlFor: "fullname", children: "Full name" }),
8693
8685
  /* @__PURE__ */ s(
8694
- Ra,
8686
+ Ga,
8695
8687
  {
8696
8688
  id: "fullname",
8697
8689
  name: "fullname",
@@ -8704,10 +8696,10 @@ const Gm = ({
8704
8696
  ),
8705
8697
  (l == null ? void 0 : l.fullname) && /* @__PURE__ */ s(Dt, { children: l.fullname })
8706
8698
  ] }),
8707
- a && /* @__PURE__ */ p(Ta, { children: [
8708
- /* @__PURE__ */ s(Ne, { htmlFor: "email", children: "Email address" }),
8699
+ a && /* @__PURE__ */ p(xa, { children: [
8700
+ /* @__PURE__ */ s(Te, { htmlFor: "email", children: "Email address" }),
8709
8701
  /* @__PURE__ */ s(
8710
- Ra,
8702
+ Ga,
8711
8703
  {
8712
8704
  id: "email",
8713
8705
  name: "email",
@@ -8720,8 +8712,8 @@ const Gm = ({
8720
8712
  ),
8721
8713
  (l == null ? void 0 : l.email) && /* @__PURE__ */ s(Dt, { children: l.email })
8722
8714
  ] }),
8723
- t && /* @__PURE__ */ p(Ta, { children: [
8724
- /* @__PURE__ */ s(Ne, { children: "Phone Number (optional)" }),
8715
+ t && /* @__PURE__ */ p(xa, { children: [
8716
+ /* @__PURE__ */ s(Te, { children: "Phone Number (optional)" }),
8725
8717
  /* @__PURE__ */ s(
8726
8718
  Xs,
8727
8719
  {
@@ -9085,7 +9077,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9085
9077
  },
9086
9078
  children: /* @__PURE__ */ s("div", { className: "mpl:overflow-hidden", children: a })
9087
9079
  }
9088
- ), Zm = ma(() => Promise.resolve().then(() => ap)), Wm = ma(() => Promise.resolve().then(() => op)), qm = ma(() => import("./CashAppPayment-BghcQZPY.js")), Ym = ma(() => import("./CryptoPayments-eVW9ZpTq.js")), Jm = ma(() => Promise.resolve().then(() => rp)), Xm = ma(
9080
+ ), Zm = ma(() => Promise.resolve().then(() => ap)), Wm = ma(() => Promise.resolve().then(() => op)), qm = ma(() => import("./CashAppPayment-D4RId4l8.js")), Ym = ma(() => import("./CryptoPayments-agwrxVl5.js")), Jm = ma(() => Promise.resolve().then(() => rp)), Xm = ma(
9089
9081
  () => Promise.resolve().then(() => pp)
9090
9082
  ), Qm = ma(
9091
9083
  () => Promise.resolve().then(() => dp).then((e) => ({
@@ -9101,7 +9093,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9101
9093
  "PLN",
9102
9094
  "RON",
9103
9095
  "SEK"
9104
- ], xp = vl(
9096
+ ], Tp = vl(
9105
9097
  ({
9106
9098
  paymentConfig: e,
9107
9099
  summaryTitle: a,
@@ -9119,7 +9111,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9119
9111
  customStyle: P,
9120
9112
  DiscountComponent: T
9121
9113
  }, I) => {
9122
- var Bn, Rn, Gn, jn, Ln, Kn, zn, Vn, Hn, Zn, Wn, qn, Yn, Jn, Xn, Qn, er, ar, tr, nr, rr, lr, sr, ir;
9114
+ var Bn, Gn, Rn, jn, Ln, Kn, zn, Vn, Hn, Zn, Wn, qn, Yn, Jn, Xn, Qn, er, ar, tr, nr, rr, lr, sr, ir;
9123
9115
  const {
9124
9116
  currency: v,
9125
9117
  amount: $,
@@ -9127,7 +9119,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9127
9119
  accountId: q,
9128
9120
  transactionFeesSlug: j,
9129
9121
  paymentOptions: E,
9130
- paymentRedirectUrl: F,
9122
+ paymentRedirectUrl: x,
9131
9123
  userAllowsWalletPayment: O,
9132
9124
  userAllowsCardPayment: Se,
9133
9125
  userAllowsCryptoPayment: ae,
@@ -9140,8 +9132,8 @@ const Lm = (e) => /* @__PURE__ */ p(
9140
9132
  STRIPE_SECRET_KEY_CAD: va,
9141
9133
  applyTrancheFee: Wa,
9142
9134
  ip: pe,
9143
- shouldApplyTax: Te,
9144
- paymentModel: Oe = "default",
9135
+ shouldApplyTax: Fe,
9136
+ paymentModel: $e = "default",
9145
9137
  cryptoRedirectUrl: Le,
9146
9138
  isFreeTrial: ge,
9147
9139
  itemsList: ba,
@@ -9152,7 +9144,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9152
9144
  merchantIsKycVerified: Pa,
9153
9145
  merchantCountry: ze,
9154
9146
  amountDiscounted: ne
9155
- } = e, fe = C == null ? void 0 : C.hideDetails, he = C == null ? void 0 : C.isSingleColumn, Ye = ((Bn = C == null ? void 0 : C.showDefaultInputFields) == null ? void 0 : Bn.email) ?? !0, R = ((Rn = C == null ? void 0 : C.showDefaultInputFields) == null ? void 0 : Rn.phone) ?? !1, _e = ((Gn = C == null ? void 0 : C.showDefaultInputFields) == null ? void 0 : Gn.fullname) ?? !0, { Request: De, PaymentRequest: Ce, ProductRequest: xe, FeeRequest: X } = Bm(
9147
+ } = e, fe = C == null ? void 0 : C.hideDetails, he = C == null ? void 0 : C.isSingleColumn, Ye = ((Bn = C == null ? void 0 : C.showDefaultInputFields) == null ? void 0 : Bn.email) ?? !0, G = ((Gn = C == null ? void 0 : C.showDefaultInputFields) == null ? void 0 : Gn.phone) ?? !1, Oe = ((Rn = C == null ? void 0 : C.showDefaultInputFields) == null ? void 0 : Rn.fullname) ?? !0, { Request: _e, PaymentRequest: Ce, ProductRequest: xe, FeeRequest: X } = Bm(
9156
9148
  me,
9157
9149
  k,
9158
9150
  H,
@@ -9163,7 +9155,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9163
9155
  openModal: !1,
9164
9156
  url: "",
9165
9157
  reference: ""
9166
- }), [$a, Oa] = U(!1), [qa, Ya] = U(""), [wt, Fn] = U(!1), ea = !!(ne && $ - ne === 0), [us] = mt("(max-width: 767px)"), { scrollTo: ms } = Hm(), aa = oe(null), Ve = (w) => !E || E.length <= 0 ? !0 : E == null ? void 0 : E.includes(w), ps = tn().shape({
9158
+ }), [$a, Oa] = U(!1), [qa, Ya] = U(""), [wt, Fn] = U(!1), ea = !!(ne && $ - ne === 0), [us] = mt("(max-width: 767px)"), { scrollTo: ms } = Hm(), aa = oe(null), Ve = (F) => !E || E.length <= 0 ? !0 : E == null ? void 0 : E.includes(F), ps = tn().shape({
9167
9159
  email: ve().matches(
9168
9160
  /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
9169
9161
  "Please enter a valid email"
@@ -9194,7 +9186,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9194
9186
  "Emojis are not allowed in name"
9195
9187
  ),
9196
9188
  currency: ve().required("Please select a currency.")
9197
- }), { getCountryCurrency: Tn } = km(v), Ie = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: fs, isLoading: hs } = El(xe), { mutate: gp, isLoading: ys } = dn(Ce), {
9189
+ }), { getCountryCurrency: xn } = km(v), De = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: fs, isLoading: hs } = El(xe), { mutate: gp, isLoading: ys } = dn(Ce), {
9198
9190
  makePaystackPayment: vs,
9199
9191
  isInitializingPayment: bs,
9200
9192
  isChargingCard: Ss
@@ -9202,7 +9194,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9202
9194
  data: fp,
9203
9195
  refetch: As,
9204
9196
  isLoading: Es
9205
- } = vi(V == null ? void 0 : V.reference, De), [Cs, ke] = U(!1), [ws, Fs] = U(!1), Ft = (w) => w === "United States" ? "United States of America" : w === "United Kingdom" ? "United Kingdom of Great Britain and Northern Ireland" : w, b = Mu({
9197
+ } = vi(V == null ? void 0 : V.reference, _e), [Cs, Ie] = U(!1), [ws, Fs] = U(!1), Ft = (F) => F === "United States" ? "United States of America" : F === "United Kingdom" ? "United Kingdom of Great Britain and Northern Ireland" : F, b = Mu({
9206
9198
  initialValues: {
9207
9199
  email: (r == null ? void 0 : r.email) ?? "",
9208
9200
  fullname: (r == null ? void 0 : r.fullname) ?? "",
@@ -9220,12 +9212,12 @@ const Lm = (e) => /* @__PURE__ */ p(
9220
9212
  },
9221
9213
  validationSchema: $a ? ps : gs,
9222
9214
  validateOnChange: !1,
9223
- onSubmit: (w, { setSubmitting: x }) => {
9215
+ onSubmit: (F, { setSubmitting: N }) => {
9224
9216
  const Y = Jt();
9225
- if (c(Y), x(!0), we === 0 || ea) {
9217
+ if (c(Y), N(!0), ke === 0 || ea) {
9226
9218
  m({
9227
- fullname: w.fullname,
9228
- email: w.email,
9219
+ fullname: F.fullname,
9220
+ email: F.email,
9229
9221
  reference: Y,
9230
9222
  amount: 0,
9231
9223
  metadata: {
@@ -9240,23 +9232,23 @@ const Lm = (e) => /* @__PURE__ */ p(
9240
9232
  metadata: {
9241
9233
  ...K,
9242
9234
  reference: Y,
9243
- payment_mode: w.payment_mode
9235
+ payment_mode: F.payment_mode
9244
9236
  },
9245
- amount: we,
9237
+ amount: parseFloat(w == null ? void 0 : w.localAmount),
9246
9238
  currency: v,
9247
9239
  totalAmount: ta
9248
9240
  }), Da = {
9249
9241
  ...K,
9250
- payment_mode: w.payment_mode
9242
+ payment_mode: F.payment_mode
9251
9243
  };
9252
9244
  vs({
9253
9245
  initPayload: W,
9254
9246
  buildChargePayload: (Ue) => Sr({
9255
9247
  initResponse: Ue,
9256
- feesResponse: N,
9248
+ feesResponse: w,
9257
9249
  metadata: Da,
9258
9250
  currency: v,
9259
- callbackUrl: F,
9251
+ callbackUrl: x,
9260
9252
  ip: pe
9261
9253
  }),
9262
9254
  handleChargeSuccess: (Ue) => {
@@ -9272,7 +9264,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9272
9264
  handleChargeError: () => Vs(),
9273
9265
  handleInitError: (Ue) => {
9274
9266
  var ka;
9275
- x(!1);
9267
+ N(!1);
9276
9268
  let Ia = ((ka = Ue == null ? void 0 : Ue.raw) == null ? void 0 : ka.message) ?? "Error loading payment gateway";
9277
9269
  Ia.includes("ip_address") && (Ia = "Payment failed: An extension may be blocking us from completing your payment or your browser may be unsupported. Please try again."), ue.error({ title: "", description: Ia });
9278
9270
  }
@@ -9282,18 +9274,18 @@ const Lm = (e) => /* @__PURE__ */ p(
9282
9274
  ee(() => {
9283
9275
  b.setFieldValue("email", (r == null ? void 0 : r.email) ?? ""), b.setFieldValue("fullname", (r == null ? void 0 : r.fullname) ?? ""), b.setTouched({}, !1);
9284
9276
  }, [r]), ci(I, () => ({
9285
- updateCustomFormValues(w, x) {
9286
- b.setFieldValue(w, x);
9277
+ updateCustomFormValues(F, N) {
9278
+ b.setFieldValue(F, N);
9287
9279
  }
9288
9280
  }));
9289
- const Ts = Rm((Ln = b.values) == null ? void 0 : Ln.zipCode), Aa = ge ? !1 : v !== (Ie == null ? void 0 : Ie.currency), xs = b.values.country !== "" ? Tn((Kn = b == null ? void 0 : b.values) == null ? void 0 : Kn.country) : Ie == null ? void 0 : Ie.currency, xn = Tn(ze);
9281
+ const xs = Gm((Ln = b.values) == null ? void 0 : Ln.zipCode), Aa = ge ? !1 : v !== (De == null ? void 0 : De.currency), Ts = b.values.country !== "" ? xn((Kn = b == null ? void 0 : b.values) == null ? void 0 : Kn.country) : De == null ? void 0 : De.currency, Tn = xn(ze);
9290
9282
  [B.USD, B.GBP, B.CAD, B.NGN].includes(
9291
- xn
9283
+ Tn
9292
9284
  );
9293
- const Ns = xs !== v, Ms = [B.USD].includes(v), Nn = ge ? !1 : Ns || !Ms, Qa = [];
9285
+ const Ns = Ts !== v, Ms = [B.USD].includes(v), Nn = ge ? !1 : Ns || !Ms, Qa = [];
9294
9286
  Wa && Qa.push("PIT"), Aa && Qa.push("SWITCHING"), Nn && Qa.push("CONVERSION");
9295
- const Tt = Te ? (zn = be == null ? void 0 : be.find((w) => w.name === b.values.country)) == null ? void 0 : zn.alpha2Code : "", xt = Te ? Ts : "", Ps = Te ? pe ?? (Ie == null ? void 0 : Ie.ip) : "", {
9296
- data: N,
9287
+ const xt = Fe ? (zn = be == null ? void 0 : be.find((F) => F.name === b.values.country)) == null ? void 0 : zn.alpha2Code : "", Tt = Fe ? xs : "", Ps = Fe ? pe ?? (De == null ? void 0 : De.ip) : "", {
9288
+ data: w,
9297
9289
  isLoading: Nt,
9298
9290
  error: se
9299
9291
  } = yi(
@@ -9302,10 +9294,10 @@ const Lm = (e) => /* @__PURE__ */ p(
9302
9294
  amount: Je,
9303
9295
  currencyCode: v,
9304
9296
  types: Qa,
9305
- ...Tt && xt ? {
9297
+ ...xt && Tt ? {
9306
9298
  address: {
9307
- ...Tt ? { country: Tt } : {},
9308
- ...xt ? { postal_code: xt.replace(/\s/g, "") } : {}
9299
+ ...xt ? { country: xt } : {},
9300
+ ...Tt ? { postal_code: Tt.replace(/\s/g, "") } : {}
9309
9301
  },
9310
9302
  ip: Ps
9311
9303
  } : {},
@@ -9317,14 +9309,14 @@ const Lm = (e) => /* @__PURE__ */ p(
9317
9309
  se && !A && (u && u({
9318
9310
  message: `Error loading transaction information: ${((Hn = se == null ? void 0 : se.raw) == null ? void 0 : Hn.message) ?? se ?? ""}, please reload or contact us.`
9319
9311
  }), console.error(((Zn = se == null ? void 0 : se.raw) == null ? void 0 : Zn.message) ?? se));
9320
- const $s = (Yn = (qn = (Wn = N == null ? void 0 : N.tax) == null ? void 0 : Wn.breakdown) == null ? void 0 : qn[0]) == null ? void 0 : Yn.percentage_decimal, et = ((Jn = N == null ? void 0 : N.tax) == null ? void 0 : Jn.local_tax) ?? 0, Os = ((Xn = N == null ? void 0 : N.tax) == null ? void 0 : Xn.dollar_tax) ?? 0, _s = (N == null ? void 0 : N.localAmount) ?? 0, Mt = (N == null ? void 0 : N.localTransactionFee) ?? 0, Ds = 0, at = 0, Mn = 0, ta = parseFloat(_s) + parseFloat(Mt) + (Ee ? 0 : parseFloat(et)) + (Aa ? Number(at) : 0), we = pt(() => v === B.UGX ? Math.ceil(ta) * 100 : Math.round(
9321
- ta * (N != null && N.isZeroDecimalCurrency ? 1 : 100)
9312
+ const $s = (Yn = (qn = (Wn = w == null ? void 0 : w.tax) == null ? void 0 : Wn.breakdown) == null ? void 0 : qn[0]) == null ? void 0 : Yn.percentage_decimal, et = ((Jn = w == null ? void 0 : w.tax) == null ? void 0 : Jn.local_tax) ?? 0, Os = ((Xn = w == null ? void 0 : w.tax) == null ? void 0 : Xn.dollar_tax) ?? 0, _s = (w == null ? void 0 : w.localAmount) ?? 0, Mt = (w == null ? void 0 : w.localTransactionFee) ?? 0, Ds = 0, at = 0, Mn = 0, ta = parseFloat(_s) + parseFloat(Mt) + (Ee ? 0 : parseFloat(et)) + (Aa ? Number(at) : 0), ke = pt(() => v === B.UGX ? Math.ceil(ta) * 100 : Math.round(
9313
+ ta * (w != null && w.isZeroDecimalCurrency ? 1 : 100)
9322
9314
  ), [
9323
9315
  ta,
9324
- N,
9316
+ w,
9325
9317
  v
9326
9318
  ]), Is = parseFloat(
9327
- (Number((N == null ? void 0 : N.dollarTransactionFee) ?? 0) + Number(Aa ? Mn : 0)).toFixed(2)
9319
+ (Number((w == null ? void 0 : w.dollarTransactionFee) ?? 0) + Number(Aa ? Mn : 0)).toFixed(2)
9328
9320
  ).toString(), ks = parseFloat(
9329
9321
  (Number(Mt) + Number(Aa ? at : 0)).toFixed(2)
9330
9322
  ).toString(), K = {
@@ -9334,19 +9326,19 @@ const Lm = (e) => /* @__PURE__ */ p(
9334
9326
  email: b.values.email,
9335
9327
  name: (er = b.values) == null ? void 0 : er.fullname,
9336
9328
  country: (ar = b == null ? void 0 : b.values) == null ? void 0 : ar.country,
9337
- actual_price: (tr = N == null ? void 0 : N.dollarAmount) == null ? void 0 : tr.toString(),
9329
+ actual_price: (tr = w == null ? void 0 : w.dollarAmount) == null ? void 0 : tr.toString(),
9338
9330
  transaction_fee: Is,
9339
9331
  local_transaction_fee: ks,
9340
9332
  ...ne && {
9341
9333
  amount_discounted: Number(
9342
- (ne / (N == null ? void 0 : N.exchangeRate)).toFixed(
9334
+ (ne / (w == null ? void 0 : w.exchangeRate)).toFixed(
9343
9335
  2
9344
9336
  )
9345
9337
  )
9346
9338
  },
9347
- tax_calculation_id: (nr = N == null ? void 0 : N.tax) == null ? void 0 : nr.id,
9348
- tax_calculation: N == null ? void 0 : N.tax,
9349
- local_amount: N == null ? void 0 : N.localAmount,
9339
+ tax_calculation_id: (nr = w == null ? void 0 : w.tax) == null ? void 0 : nr.id,
9340
+ tax_calculation: w == null ? void 0 : w.tax,
9341
+ local_amount: w == null ? void 0 : w.localAmount,
9350
9342
  local_tax: et,
9351
9343
  dollar_tax: Os,
9352
9344
  dollar_currency_switching_fee: Mn,
@@ -9357,18 +9349,18 @@ const Lm = (e) => /* @__PURE__ */ p(
9357
9349
  };
9358
9350
  let tt;
9359
9351
  const Us = pt(() => {
9360
- let w = "";
9352
+ let F = "";
9361
9353
  switch (!0) {
9362
9354
  case jt.indexOf(v) > -1:
9363
- w = Ae, tt = "GB_ACCOUNT";
9355
+ F = Ae, tt = "GB_ACCOUNT";
9364
9356
  break;
9365
9357
  case v === B.CAD:
9366
- w = va, tt = "CA_ACCOUNT";
9358
+ F = va, tt = "CA_ACCOUNT";
9367
9359
  break;
9368
9360
  default:
9369
- w = le, tt = "US_ACCOUNT";
9361
+ F = le, tt = "US_ACCOUNT";
9370
9362
  }
9371
- return pi(w);
9363
+ return pi(F);
9372
9364
  }, [
9373
9365
  v,
9374
9366
  le,
@@ -9380,12 +9372,12 @@ const Lm = (e) => /* @__PURE__ */ p(
9380
9372
  v !== B.NGN && v !== B.GHS && v !== B.KES ? M(!0) : (M(!1), Oa(!1)), z(!1);
9381
9373
  }, [v]);
9382
9374
  const Bs = () => {
9383
- const w = Jt();
9384
- if (c(w), ke(!0), Oa(!0), we === 0 || ea) {
9375
+ const F = Jt();
9376
+ if (c(F), Ie(!0), Oa(!0), ke === 0 || ea) {
9385
9377
  m({
9386
9378
  fullname: b.values.fullname,
9387
9379
  email: b.values.email,
9388
- reference: w,
9380
+ reference: F,
9389
9381
  amount: 0,
9390
9382
  metadata: {
9391
9383
  ...K,
@@ -9394,20 +9386,20 @@ const Lm = (e) => /* @__PURE__ */ p(
9394
9386
  });
9395
9387
  return;
9396
9388
  }
9397
- ke(!1), fs(
9389
+ Ie(!1), fs(
9398
9390
  br({
9399
9391
  metadata: {
9400
9392
  ...K,
9401
- reference: w
9393
+ reference: F
9402
9394
  },
9403
- amount: we,
9395
+ amount: parseFloat(w == null ? void 0 : w.localAmount),
9404
9396
  currency: v,
9405
9397
  totalAmount: ta
9406
9398
  }),
9407
9399
  {
9408
- onSuccess(x) {
9400
+ onSuccess(N) {
9409
9401
  var Y;
9410
- if (S(x), z(!0), // (isSingleColumn || isLessThan768) &&
9402
+ if (S(N), z(!0), // (isSingleColumn || isLessThan768) &&
9411
9403
  aa != null && aa.current) {
9412
9404
  const W = (Y = aa == null ? void 0 : aa.current) == null ? void 0 : Y.offsetTop, Da = W - 100;
9413
9405
  ms(
@@ -9415,21 +9407,21 @@ const Lm = (e) => /* @__PURE__ */ p(
9415
9407
  );
9416
9408
  }
9417
9409
  },
9418
- onError(x) {
9410
+ onError(N) {
9419
9411
  var W;
9420
- let Y = ((W = x == null ? void 0 : x.raw) == null ? void 0 : W.message) ?? "Error loading payment gateway";
9412
+ let Y = ((W = N == null ? void 0 : N.raw) == null ? void 0 : W.message) ?? "Error loading payment gateway";
9421
9413
  Y.includes("ip_address") && (Y = "Payment failed: An extension may be blocking us from completing your payment or your browser may be unsupported. Please try again."), ue.error({ title: "", description: Y });
9422
9414
  }
9423
9415
  }
9424
9416
  );
9425
- }, Pn = (w, x) => {
9426
- w.preventDefault(), Ve("stripe") && Se && A ? Bs() : (Ve("paystack") || Ve("startbutton")) && Se && !A && (ke(!0), b.setSubmitting(!0), b.setFieldValue("payment_mode", x), b.submitForm());
9427
- }, [Rs, $n] = U(!1), {
9428
- open: Gs,
9417
+ }, Pn = (F, N) => {
9418
+ F.preventDefault(), Ve("stripe") && Se && A ? Bs() : (Ve("paystack") || Ve("startbutton")) && Se && !A && (Ie(!0), b.setSubmitting(!0), b.setFieldValue("payment_mode", N), b.submitForm());
9419
+ }, [Gs, $n] = U(!1), {
9420
+ open: Rs,
9429
9421
  onOpenChange: _a
9430
- } = Ba(), On = async (w) => {
9422
+ } = Ba(), On = async (F) => {
9431
9423
  var W;
9432
- if (w.preventDefault(), se) {
9424
+ if (F.preventDefault(), se) {
9433
9425
  ue.error({
9434
9426
  title: "",
9435
9427
  description: `Error loading transaction information: ${((W = se == null ? void 0 : se.raw) == null ? void 0 : W.message) ?? se ?? ""}, please reload or contact us.`
@@ -9437,24 +9429,24 @@ const Lm = (e) => /* @__PURE__ */ p(
9437
9429
  return;
9438
9430
  }
9439
9431
  b.setErrors({});
9440
- const x = [
9432
+ const N = [
9441
9433
  B.NGN,
9442
9434
  B.GHS,
9443
9435
  B.KES
9444
9436
  ].includes(v);
9445
- ke(!0);
9437
+ Ie(!0);
9446
9438
  let Y = {};
9447
9439
  if (d) {
9448
9440
  const Da = await d(b.values);
9449
9441
  if (Y = await b.validateForm(), Da.terminate) {
9450
- ke(!1);
9442
+ Ie(!1);
9451
9443
  return;
9452
9444
  }
9453
- x && ke(!1);
9445
+ N && Ie(!1);
9454
9446
  } else
9455
- Y = await b.validateForm(), x && ke(!1);
9447
+ Y = await b.validateForm(), N && Ie(!1);
9456
9448
  if (!(Object.keys(Y).includes("email") || Object.keys(Y).includes("fullname"))) {
9457
- if (ke(!1), we === 0 || ea)
9449
+ if (Ie(!1), ke === 0 || ea)
9458
9450
  if (b.values.email !== qa && !l)
9459
9451
  _a(!0);
9460
9452
  else {
@@ -9465,7 +9457,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9465
9457
  }
9466
9458
  }, js = () => {
9467
9459
  Ya(b.values.email), _a(!1), Fn(!1), setTimeout(() => {
9468
- if (we === 0 || ea) {
9460
+ if (ke === 0 || ea) {
9469
9461
  b.submitForm();
9470
9462
  return;
9471
9463
  }
@@ -9479,7 +9471,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9479
9471
  open: zs,
9480
9472
  onOpenChange: _n
9481
9473
  } = Ba(), Vs = () => _n(!0), Hs = async () => {
9482
- var w, x, Y;
9474
+ var F, N, Y;
9483
9475
  Qe({
9484
9476
  url: "",
9485
9477
  reference: "",
@@ -9494,17 +9486,17 @@ const Lm = (e) => /* @__PURE__ */ p(
9494
9486
  ...W.data
9495
9487
  }) : ue.error({
9496
9488
  title: "",
9497
- description: `${((x = (w = W == null ? void 0 : W.error) == null ? void 0 : w.raw) == null ? void 0 : x.message) ?? "Error verifying payment"}`
9489
+ description: `${((N = (F = W == null ? void 0 : W.error) == null ? void 0 : F.raw) == null ? void 0 : N.message) ?? "Error verifying payment"}`
9498
9490
  });
9499
9491
  } catch (W) {
9500
9492
  ue.error({
9501
9493
  title: "",
9502
9494
  description: `${((Y = W == null ? void 0 : W.raw) == null ? void 0 : Y.message) ?? "Failed to complete transaction"}`
9503
- }), b.setSubmitting(!1), ke(!1);
9495
+ }), b.setSubmitting(!1), Ie(!1);
9504
9496
  }
9505
9497
  }, nt = oe(null);
9506
9498
  (rr = nt == null ? void 0 : nt.current) == null || rr.offsetWidth;
9507
- const Dn = v === B.USD && Oe !== "ips" && Je > 0, Zs = [
9499
+ const Dn = v === B.USD && $e !== "ips" && Je > 0, Zs = [
9508
9500
  {
9509
9501
  name: "visa",
9510
9502
  src: "https://res.cloudinary.com/mainstack-co/image/upload/v1743682005/payment_lib/visa.png"
@@ -9552,12 +9544,12 @@ const Lm = (e) => /* @__PURE__ */ p(
9552
9544
  payment_mode: "mobile_money"
9553
9545
  }
9554
9546
  ].find(
9555
- (w) => w.currency === v
9556
- ), In = v === B.USD && Oe !== "ips" && Ve("cashapp"), _t = ![B.NGN, B.GHS, B.KES].includes(
9547
+ (F) => F.currency === v
9548
+ ), In = v === B.USD && $e !== "ips" && Ve("cashapp"), _t = ![B.NGN, B.GHS, B.KES].includes(
9557
9549
  v
9558
9550
  ) && ws && O || In && O, kn = !_t && Ve("crypto") && ae && Dn || [B.NGN, B.GHS, B.KES].includes(
9559
9551
  v
9560
- ) && !_t && Oe !== "ips", Un = () => {
9552
+ ) && !_t && $e !== "ips", Un = () => {
9561
9553
  Ea && Js(!1), $t(), z(!1);
9562
9554
  };
9563
9555
  return /* @__PURE__ */ s(J, { children: /* @__PURE__ */ p(
@@ -9586,7 +9578,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9586
9578
  feesLoading: Nt,
9587
9579
  taxFees: {
9588
9580
  localTaxFees: et,
9589
- shouldApplyTax: Te && !Ee,
9581
+ shouldApplyTax: Fe && !Ee,
9590
9582
  taxedPercent: $s
9591
9583
  },
9592
9584
  switchingFees: {
@@ -9596,7 +9588,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9596
9588
  },
9597
9589
  transactionFees: {
9598
9590
  totalAmountPlusFees: ta,
9599
- applied_fees: N == null ? void 0 : N.appliedFees,
9591
+ applied_fees: w == null ? void 0 : w.appliedFees,
9600
9592
  transactionFeeValue: Mt
9601
9593
  },
9602
9594
  isSingleColumn: he ?? !1,
@@ -9683,12 +9675,12 @@ const Lm = (e) => /* @__PURE__ */ p(
9683
9675
  }
9684
9676
  )
9685
9677
  ] }) : /* @__PURE__ */ s(
9686
- Gm,
9678
+ Rm,
9687
9679
  {
9688
9680
  title: t,
9689
- showFullname: _e,
9681
+ showFullname: Oe,
9690
9682
  showEmail: Ye,
9691
- showPhone: R,
9683
+ showPhone: G,
9692
9684
  editEmail: wt,
9693
9685
  customForm: n,
9694
9686
  values: b.values,
@@ -9723,7 +9715,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9723
9715
  style: {
9724
9716
  opacity: Ea ? 1 : 0.6
9725
9717
  },
9726
- disabled: !Rs || Object.keys(b.errors).length > 0,
9718
+ disabled: !Gs || Object.keys(b.errors).length > 0,
9727
9719
  children: [
9728
9720
  /* @__PURE__ */ p("div", { children: [
9729
9721
  /* @__PURE__ */ s(
@@ -9786,18 +9778,18 @@ const Lm = (e) => /* @__PURE__ */ p(
9786
9778
  stripeCountry: jt.indexOf(
9787
9779
  v
9788
9780
  ) > -1 ? "GB" : "US",
9789
- amount: we,
9781
+ amount: ke,
9790
9782
  formik: b,
9791
9783
  checkForErrors: async () => {
9792
9784
  if (d) {
9793
- const x = await d(
9785
+ const N = await d(
9794
9786
  b.values
9795
9787
  );
9796
- if (x != null && x.terminate)
9797
- return x == null ? void 0 : x.terminate;
9788
+ if (N != null && N.terminate)
9789
+ return N == null ? void 0 : N.terminate;
9798
9790
  }
9799
- const w = await b.validateForm();
9800
- return Object.keys(w).length > 0;
9791
+ const F = await b.validateForm();
9792
+ return Object.keys(F).length > 0;
9801
9793
  },
9802
9794
  onPaymentComplete: m,
9803
9795
  PaymentRequest: Ce,
@@ -9809,20 +9801,20 @@ const Lm = (e) => /* @__PURE__ */ p(
9809
9801
  {
9810
9802
  metadata: K,
9811
9803
  currency: v,
9812
- amount: we,
9804
+ amount: ke,
9813
9805
  ProductRequest: xe,
9814
9806
  PaymentRequest: Ce,
9815
9807
  redirectUrl: Le,
9816
9808
  checkForErrors: async () => {
9817
9809
  if (d) {
9818
- const x = await d(
9810
+ const N = await d(
9819
9811
  b.values
9820
9812
  );
9821
- if (x != null && x.terminate)
9822
- return x == null ? void 0 : x.terminate;
9813
+ if (N != null && N.terminate)
9814
+ return N == null ? void 0 : N.terminate;
9823
9815
  }
9824
- const w = await b.validateForm();
9825
- return Object.keys(w).length > 0;
9816
+ const F = await b.validateForm();
9817
+ return Object.keys(F).length > 0;
9826
9818
  }
9827
9819
  }
9828
9820
  ) })
@@ -9832,20 +9824,20 @@ const Lm = (e) => /* @__PURE__ */ p(
9832
9824
  {
9833
9825
  metadata: K,
9834
9826
  currency: v,
9835
- amount: we,
9827
+ amount: ke,
9836
9828
  ProductRequest: xe,
9837
9829
  PaymentRequest: Ce,
9838
9830
  redirectUrl: Le,
9839
9831
  checkForErrors: async () => {
9840
9832
  if (d) {
9841
- const x = await d(
9833
+ const N = await d(
9842
9834
  b.values
9843
9835
  );
9844
- if (x != null && x.terminate)
9845
- return x == null ? void 0 : x.terminate;
9836
+ if (N != null && N.terminate)
9837
+ return N == null ? void 0 : N.terminate;
9846
9838
  }
9847
- const w = await b.validateForm();
9848
- return Object.keys(w).length > 0;
9839
+ const F = await b.validateForm();
9840
+ return Object.keys(F).length > 0;
9849
9841
  }
9850
9842
  }
9851
9843
  ) })
@@ -9854,8 +9846,8 @@ const Lm = (e) => /* @__PURE__ */ p(
9854
9846
  Se && /* @__PURE__ */ s(
9855
9847
  yt,
9856
9848
  {
9857
- onClick: (w) => {
9858
- Xa || Ja || D || (Pn(w, "card"), rt());
9849
+ onClick: (F) => {
9850
+ Xa || Ja || D || (Pn(F, "card"), rt());
9859
9851
  },
9860
9852
  isLoading: (b.values.payment_mode && b.values.payment_mode === "card" || !b.values.payment_mode) && (Xa || Ja),
9861
9853
  children: /* @__PURE__ */ p(J, { children: [
@@ -9872,7 +9864,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9872
9864
  )
9873
9865
  ] }),
9874
9866
  /* @__PURE__ */ p("div", { className: "mpl:flex mpl:items-center mpl:gap-12", children: [
9875
- !he && /* @__PURE__ */ s("div", { className: "mpl:hidden mpl:lg:flex mpl:items-center mpl:justify-center mpl:gap-2 mpl:w-full mpl:flex-wrap", children: Zs.map((w, x) => /* @__PURE__ */ s(
9867
+ !he && /* @__PURE__ */ s("div", { className: "mpl:hidden mpl:lg:flex mpl:items-center mpl:justify-center mpl:gap-2 mpl:w-full mpl:flex-wrap", children: Zs.map((F, N) => /* @__PURE__ */ s(
9876
9868
  "div",
9877
9869
  {
9878
9870
  className: "mpl:shrink-0",
@@ -9882,13 +9874,13 @@ const Lm = (e) => /* @__PURE__ */ p(
9882
9874
  children: /* @__PURE__ */ s(
9883
9875
  "img",
9884
9876
  {
9885
- src: w.src,
9886
- alt: `${w.name}-logo`,
9877
+ src: F.src,
9878
+ alt: `${F.name}-logo`,
9887
9879
  className: "mpl:w-32 mpl:h-20 mpl:object-cover"
9888
9880
  }
9889
9881
  )
9890
9882
  },
9891
- x
9883
+ N
9892
9884
  )) }),
9893
9885
  /* @__PURE__ */ s(da, { className: "mpl:size-20" })
9894
9886
  ] })
@@ -9901,40 +9893,40 @@ const Lm = (e) => /* @__PURE__ */ p(
9901
9893
  reference: Xe
9902
9894
  },
9903
9895
  currency: v,
9904
- amount: we,
9896
+ amount: ke,
9905
9897
  formik: b,
9906
- isFree: we === 0 || ea,
9898
+ isFree: ke === 0 || ea,
9907
9899
  showPayment: D,
9908
9900
  showCheckoutForm: A,
9909
9901
  onCancel: Ks,
9910
9902
  btn_color: (C == null ? void 0 : C.theme_color) ?? "#111215",
9911
9903
  onPaymentComplete: m,
9912
9904
  PaymentRequest: Ce,
9913
- paymentModel: Oe,
9914
- callbackUrl: F,
9905
+ paymentModel: $e,
9906
+ callbackUrl: x,
9915
9907
  buildChargePayload: ({
9916
- paymentToken: w,
9917
- paymentMethodId: x
9918
- }) => h && N ? Sr({
9908
+ paymentToken: F,
9909
+ paymentMethodId: N
9910
+ }) => h && w ? Sr({
9919
9911
  initResponse: h,
9920
- feesResponse: N,
9912
+ feesResponse: w,
9921
9913
  metadata: {
9922
9914
  ...K
9923
9915
  },
9924
9916
  currency: v,
9925
- callbackUrl: F,
9926
- paymentToken: w,
9927
- paymentMethodId: x,
9917
+ callbackUrl: x,
9918
+ paymentToken: F,
9919
+ paymentMethodId: N,
9928
9920
  ip: pe
9929
9921
  }) : null,
9930
9922
  setIframeUrl: ({
9931
- url: w,
9932
- reference: x
9923
+ url: F,
9924
+ reference: N
9933
9925
  }) => {
9934
9926
  Qe({
9935
9927
  openModal: !0,
9936
- url: w,
9937
- reference: x
9928
+ url: F,
9929
+ reference: N
9938
9930
  });
9939
9931
  },
9940
9932
  isEuroCurrencies: jt.indexOf(v) > -1,
@@ -9957,12 +9949,12 @@ const Lm = (e) => /* @__PURE__ */ p(
9957
9949
  children: kn && /* @__PURE__ */ s(ll, {})
9958
9950
  }
9959
9951
  ),
9960
- na && Oe !== "ips" && /* @__PURE__ */ s(
9952
+ na && $e !== "ips" && /* @__PURE__ */ s(
9961
9953
  yt,
9962
9954
  {
9963
- onClick: (w) => {
9955
+ onClick: (F) => {
9964
9956
  Xa || Ja || D || Pn(
9965
- w,
9957
+ F,
9966
9958
  na == null ? void 0 : na.payment_mode
9967
9959
  );
9968
9960
  },
@@ -9987,7 +9979,7 @@ const Lm = (e) => /* @__PURE__ */ p(
9987
9979
  zm,
9988
9980
  {
9989
9981
  FooterElement: f,
9990
- showFooterElement: Te && Number(et) > 0
9982
+ showFooterElement: Fe && Number(et) > 0
9991
9983
  }
9992
9984
  )
9993
9985
  ] })
@@ -10019,7 +10011,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10019
10011
  /* @__PURE__ */ s(
10020
10012
  Um,
10021
10013
  {
10022
- isOpen: Gs,
10014
+ isOpen: Rs,
10023
10015
  onClose: () => _a(!1),
10024
10016
  email: b.values.email,
10025
10017
  onEditEmail: Ls,
@@ -10033,7 +10025,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10033
10025
  ), Np = ({ children: e }) => /* @__PURE__ */ p(ai, { children: [
10034
10026
  /* @__PURE__ */ s(ti, {}),
10035
10027
  e
10036
- ] }), Lt = (e) => Math.round((e + Number.EPSILON) * 100) / 100, Re = (e) => {
10028
+ ] }), Lt = (e) => Math.round((e + Number.EPSILON) * 100) / 100, Ge = (e) => {
10037
10029
  var l;
10038
10030
  const a = e && Lt(Number(e)) && Lt(Number(e)).toString().split(".")[0], t = a && a.toString().split("").reverse(), n = [];
10039
10031
  for (let i = 0; i < (t == null ? void 0 : t.length); i++)
@@ -10077,12 +10069,12 @@ const Lm = (e) => /* @__PURE__ */ p(
10077
10069
  children: e
10078
10070
  }
10079
10071
  ) : /* @__PURE__ */ s(J, { children: e }),
10080
- n || C ? /* @__PURE__ */ s("div", { className: "mpl:h-5 mpl:w-100 mpl:mx-auto mpl:bg-gray-200 mpl:animate-pulse mpl:rounded" }) : /* @__PURE__ */ s(nn, { size: "medium", weight: "bold", children: d.totalAmountPlusFees > 0 ? `${a} ${r ? "0.00" : Re(d.totalAmountPlusFees)}` : "Free" })
10072
+ n || C ? /* @__PURE__ */ s("div", { className: "mpl:h-5 mpl:w-100 mpl:mx-auto mpl:bg-gray-200 mpl:animate-pulse mpl:rounded" }) : /* @__PURE__ */ s(nn, { size: "medium", weight: "bold", children: d.totalAmountPlusFees > 0 ? `${a} ${r ? "0.00" : Ge(d.totalAmountPlusFees)}` : "Free" })
10081
10073
  ]
10082
10074
  }
10083
10075
  ),
10084
10076
  /* @__PURE__ */ p(vt, { in: !v && !m || T, children: [
10085
- (q = u == null ? void 0 : u[0]) != null && q.image ? /* @__PURE__ */ s(J, { children: Array.isArray(u) && u.length > 0 && /* @__PURE__ */ s("div", { className: "mpl:pt-20 mpl:pb-16 mpl:border-b mpl:border-border-interactive-neutral mpl:space-y-8", children: u.map((E, F) => /* @__PURE__ */ p("div", { className: "mpl:flex mpl:justify-between", children: [
10077
+ (q = u == null ? void 0 : u[0]) != null && q.image ? /* @__PURE__ */ s(J, { children: Array.isArray(u) && u.length > 0 && /* @__PURE__ */ s("div", { className: "mpl:pt-20 mpl:pb-16 mpl:border-b mpl:border-border-interactive-neutral mpl:space-y-8", children: u.map((E, x) => /* @__PURE__ */ p("div", { className: "mpl:flex mpl:justify-between", children: [
10086
10078
  /* @__PURE__ */ s(
10087
10079
  "img",
10088
10080
  {
@@ -10114,12 +10106,12 @@ const Lm = (e) => /* @__PURE__ */ p(
10114
10106
  children: [
10115
10107
  E.currency,
10116
10108
  " ",
10117
- Re(E.price)
10109
+ Ge(E.price)
10118
10110
  ]
10119
10111
  }
10120
10112
  )
10121
10113
  ] })
10122
- ] }, F)) }) }) : /* @__PURE__ */ p("div", { className: " mpl:pt-20 mpl:pb-16 mpl:border-b mpl:border-border-interactive-neutral", children: [
10114
+ ] }, x)) }) }) : /* @__PURE__ */ p("div", { className: " mpl:pt-20 mpl:pb-16 mpl:border-b mpl:border-border-interactive-neutral", children: [
10123
10115
  /* @__PURE__ */ p("div", { className: "mpl:flex mpl:justify-between mpl:items-center mpl:pb-8", children: [
10124
10116
  /* @__PURE__ */ s(
10125
10117
  "img",
@@ -10152,13 +10144,13 @@ const Lm = (e) => /* @__PURE__ */ p(
10152
10144
  children: [
10153
10145
  a,
10154
10146
  " ",
10155
- Re(t)
10147
+ Ge(t)
10156
10148
  ]
10157
10149
  }
10158
10150
  )
10159
10151
  ] })
10160
10152
  ] }),
10161
- Array.isArray(u) && u.length > 0 && /* @__PURE__ */ s("div", { className: "mpl:pt-3 mpl:space-y-8", children: u.map((E, F) => /* @__PURE__ */ p(
10153
+ Array.isArray(u) && u.length > 0 && /* @__PURE__ */ s("div", { className: "mpl:pt-3 mpl:space-y-8", children: u.map((E, x) => /* @__PURE__ */ p(
10162
10154
  "div",
10163
10155
  {
10164
10156
  className: "mpl:flex mpl:justify-between mpl:items-center",
@@ -10185,13 +10177,13 @@ const Lm = (e) => /* @__PURE__ */ p(
10185
10177
  children: [
10186
10178
  E.currency,
10187
10179
  " ",
10188
- Re(E.price)
10180
+ Ge(E.price)
10189
10181
  ]
10190
10182
  }
10191
10183
  )
10192
10184
  ]
10193
10185
  },
10194
- F
10186
+ x
10195
10187
  )) })
10196
10188
  ] }),
10197
10189
  /* @__PURE__ */ p("div", { className: "mpl:flex mpl:flex-col mpl:gap-16 mpl:py-20 ", children: [
@@ -10214,7 +10206,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10214
10206
  children: [
10215
10207
  a,
10216
10208
  " ",
10217
- Re(t)
10209
+ Ge(t)
10218
10210
  ]
10219
10211
  }
10220
10212
  )
@@ -10243,7 +10235,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10243
10235
  children: [
10244
10236
  a,
10245
10237
  " ",
10246
- Re(l.localTaxFees)
10238
+ Ge(l.localTaxFees)
10247
10239
  ]
10248
10240
  }
10249
10241
  )
@@ -10276,7 +10268,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10276
10268
  children: [
10277
10269
  a,
10278
10270
  " ",
10279
- Re(i.localSwitchingFee)
10271
+ Ge(i.localSwitchingFee)
10280
10272
  ]
10281
10273
  }
10282
10274
  )
@@ -10318,7 +10310,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10318
10310
  children: [
10319
10311
  a,
10320
10312
  " ",
10321
- Re(d.transactionFeeValue)
10313
+ Ge(d.transactionFeeValue)
10322
10314
  ]
10323
10315
  }
10324
10316
  )
@@ -10344,7 +10336,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10344
10336
  children: [
10345
10337
  a,
10346
10338
  " ",
10347
- r ? "0.00" : Re(d.totalAmountPlusFees)
10339
+ r ? "0.00" : Ge(d.totalAmountPlusFees)
10348
10340
  ]
10349
10341
  }
10350
10342
  )
@@ -10528,16 +10520,16 @@ const Lm = (e) => /* @__PURE__ */ p(
10528
10520
  Object.keys(q).length > 0 || g && (f.on("paymentmethod", async (E) => {
10529
10521
  var me, k;
10530
10522
  $(!0);
10531
- const F = Jt();
10523
+ const x = Jt();
10532
10524
  try {
10533
10525
  await i.post("payments/init", {
10534
10526
  amount: t,
10535
10527
  currency: e,
10536
10528
  metadata: {
10537
10529
  ...a,
10538
- reference: F
10530
+ reference: x
10539
10531
  },
10540
- reference: F
10532
+ reference: x
10541
10533
  });
10542
10534
  } catch (H) {
10543
10535
  E.complete("fail"), ue.error({
@@ -10553,7 +10545,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10553
10545
  currency: e,
10554
10546
  metadata: {
10555
10547
  ...a,
10556
- reference: F
10548
+ reference: x
10557
10549
  },
10558
10550
  payment_method_id: (k = E == null ? void 0 : E.paymentMethod) == null ? void 0 : k.id
10559
10551
  }
@@ -10581,7 +10573,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10581
10573
  l({
10582
10574
  fullname: n.values.fullname,
10583
10575
  email: n.values.email,
10584
- reference: F,
10576
+ reference: x,
10585
10577
  amount: t,
10586
10578
  currency: e
10587
10579
  });
@@ -10594,7 +10586,7 @@ const Lm = (e) => /* @__PURE__ */ p(
10594
10586
  l({
10595
10587
  fullname: n.values.fullname,
10596
10588
  email: n.values.email,
10597
- reference: F,
10589
+ reference: x,
10598
10590
  amount: t,
10599
10591
  currency: e
10600
10592
  });
@@ -10834,26 +10826,26 @@ const il = /* @__PURE__ */ new Map([
10834
10826
  Styles: q
10835
10827
  }) => {
10836
10828
  var fe, he, Ye;
10837
- const j = Sl(), E = Al(), F = oe(null), [O, Se] = U(0), [ae, me] = U(0);
10829
+ const j = Sl(), E = Al(), x = oe(null), [O, Se] = U(0), [ae, me] = U(0);
10838
10830
  ee(() => {
10839
- const R = () => {
10840
- if (F.current) {
10841
- const _e = F.current.closest(".collapse-wrapper");
10842
- if (_e) {
10843
- const De = _e.getBoundingClientRect();
10844
- Se(De.width), me(De.left);
10831
+ const G = () => {
10832
+ if (x.current) {
10833
+ const Oe = x.current.closest(".collapse-wrapper");
10834
+ if (Oe) {
10835
+ const _e = Oe.getBoundingClientRect();
10836
+ Se(_e.width), me(_e.left);
10845
10837
  }
10846
10838
  }
10847
10839
  };
10848
- return R(), window.addEventListener("resize", R), () => {
10849
- window.removeEventListener("resize", R);
10840
+ return G(), window.addEventListener("resize", G), () => {
10841
+ window.removeEventListener("resize", G);
10850
10842
  };
10851
10843
  }, [l, i]);
10852
- const k = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: H, data: te } = dn(g), [le, Ae] = U(!1), [va, Wa] = U(""), [pe, Te] = U(""), [Oe, Le] = U(!1), [ge, ba] = U(0), Ke = oe(null), Ee = (t == null ? void 0 : t.country) ?? (k == null ? void 0 : k.country_name), Sa = (fe = be == null ? void 0 : be.find(
10853
- (R) => R.name === Ee
10854
- )) == null ? void 0 : fe.alpha2Code, qe = n.values.street, Pa = async (R) => {
10855
- var _e, De, Ce;
10856
- if (R.preventDefault(), !j || !E) {
10844
+ const k = typeof window < "u" ? JSON.parse(window.localStorage.getItem("userIp")) : "", { mutate: H, data: te } = dn(g), [le, Ae] = U(!1), [va, Wa] = U(""), [pe, Fe] = U(""), [$e, Le] = U(!1), [ge, ba] = U(0), Ke = oe(null), Ee = (t == null ? void 0 : t.country) ?? (k == null ? void 0 : k.country_name), Sa = (fe = be == null ? void 0 : be.find(
10845
+ (G) => G.name === Ee
10846
+ )) == null ? void 0 : fe.alpha2Code, qe = n.values.street, Pa = async (G) => {
10847
+ var Oe, _e, Ce;
10848
+ if (G.preventDefault(), !j || !E) {
10857
10849
  ue.error({
10858
10850
  title: "",
10859
10851
  description: "Couldn't process payment, please reload and try again"
@@ -10892,11 +10884,11 @@ const il = /* @__PURE__ */ new Map([
10892
10884
  }), X.error)
10893
10885
  Ae(!1), ue.error({
10894
10886
  title: "",
10895
- description: ((_e = X == null ? void 0 : X.error) == null ? void 0 : _e.message) ?? "An unexpected error occured"
10887
+ description: ((Oe = X == null ? void 0 : X.error) == null ? void 0 : Oe.message) ?? "An unexpected error occured"
10896
10888
  });
10897
10889
  else {
10898
10890
  const Je = y === "ips" || I, Xe = P({
10899
- paymentMethodId: Je ? (De = X == null ? void 0 : X.paymentMethod) == null ? void 0 : De.id : void 0,
10891
+ paymentMethodId: Je ? (_e = X == null ? void 0 : X.paymentMethod) == null ? void 0 : _e.id : void 0,
10900
10892
  // source: result?.token?.id
10901
10893
  paymentToken: Je || (Ce = X == null ? void 0 : X.token) == null ? void 0 : Ce.id
10902
10894
  });
@@ -10949,16 +10941,16 @@ const il = /* @__PURE__ */ new Map([
10949
10941
  },
10950
10942
  lineHeight: "28px",
10951
10943
  letterSpacing: "-0.2px"
10952
- }, ne = (he = be == null ? void 0 : be.find((R) => R.name === n.values.country)) != null && he.alpha2Code && pe ? sp(
10944
+ }, ne = (he = be == null ? void 0 : be.find((G) => G.name === n.values.country)) != null && he.alpha2Code && pe ? sp(
10953
10945
  pe,
10954
- ((Ye = be == null ? void 0 : be.find((R) => R.name === n.values.country)) == null ? void 0 : Ye.alpha2Code) ?? ""
10946
+ ((Ye = be == null ? void 0 : be.find((G) => G.name === n.values.country)) == null ? void 0 : Ye.alpha2Code) ?? ""
10955
10947
  ) : null;
10956
10948
  return ee(() => {
10957
- const R = () => {
10949
+ const G = () => {
10958
10950
  Ke.current && ba(Ke.current.offsetWidth);
10959
10951
  };
10960
- return R(), window.addEventListener("resize", R), () => {
10961
- window.removeEventListener("resize", R);
10952
+ return G(), window.addEventListener("resize", G), () => {
10953
+ window.removeEventListener("resize", G);
10962
10954
  };
10963
10955
  }, []), /* @__PURE__ */ s(J, { children: i && /* @__PURE__ */ s("div", { className: "mpl:relative", children: r ? /* @__PURE__ */ s(J, {}) : /* @__PURE__ */ s(vt, { in: l, animateOpacity: !0, children: /* @__PURE__ */ p(
10964
10956
  "div",
@@ -10968,7 +10960,7 @@ const il = /* @__PURE__ */ new Map([
10968
10960
  children: [
10969
10961
  /* @__PURE__ */ p("div", { className: "mpl:grid mpl:gap-16", children: [
10970
10962
  /* @__PURE__ */ p("div", { children: [
10971
- /* @__PURE__ */ s(Ne, { children: "Card number" }),
10963
+ /* @__PURE__ */ s(Te, { children: "Card number" }),
10972
10964
  /* @__PURE__ */ s("div", { className: "mpl:bg-surface-neutral mpl:h-48 mpl:text-sm mpl:rounded-12 mpl:items-center mpl:px-12 mpl:py-10 mpl:border mpl:border-border-interactive-neutral", children: /* @__PURE__ */ s(
10973
10965
  vr,
10974
10966
  {
@@ -10986,7 +10978,7 @@ const il = /* @__PURE__ */ new Map([
10986
10978
  ] }),
10987
10979
  /* @__PURE__ */ p("div", { className: "mpl:flex mpl:w-full mpl:gap-8", children: [
10988
10980
  /* @__PURE__ */ p("div", { className: "mpl:basis-1/2", children: [
10989
- /* @__PURE__ */ s(Ne, { children: " Expiration Date" }),
10981
+ /* @__PURE__ */ s(Te, { children: " Expiration Date" }),
10990
10982
  /* @__PURE__ */ s("div", { className: "mpl:bg-surface-neutral mpl:h-48 mpl:text-sm mpl:rounded-12 mpl:items-center mpl:px-12 mpl:py-10 mpl:border mpl:border-border-interactive-neutral", children: /* @__PURE__ */ s(
10991
10983
  fi,
10992
10984
  {
@@ -11003,7 +10995,7 @@ const il = /* @__PURE__ */ new Map([
11003
10995
  ) })
11004
10996
  ] }),
11005
10997
  /* @__PURE__ */ p("div", { className: "mpl:basis-1/2", children: [
11006
- /* @__PURE__ */ s(Ne, { children: " CVC" }),
10998
+ /* @__PURE__ */ s(Te, { children: " CVC" }),
11007
10999
  /* @__PURE__ */ s("div", { className: "mpl:bg-surface-neutral mpl:h-48 mpl:text-sm mpl:rounded-12 mpl:items-center mpl:px-12 mpl:py-10 mpl:border mpl:border-border-interactive-neutral", children: /* @__PURE__ */ s(
11008
11000
  hi,
11009
11001
  {
@@ -11020,10 +11012,10 @@ const il = /* @__PURE__ */ new Map([
11020
11012
  ) })
11021
11013
  ] })
11022
11014
  ] }),
11023
- /* @__PURE__ */ p(Ta, { children: [
11024
- /* @__PURE__ */ s(Ne, { htmlFor: "cardHolderName", children: "Cardholder name" }),
11015
+ /* @__PURE__ */ p(xa, { children: [
11016
+ /* @__PURE__ */ s(Te, { htmlFor: "cardHolderName", children: "Cardholder name" }),
11025
11017
  /* @__PURE__ */ s(
11026
- Ra,
11018
+ Ga,
11027
11019
  {
11028
11020
  id: "cardHolderName",
11029
11021
  placeholder: "Cardholder name",
@@ -11035,21 +11027,21 @@ const il = /* @__PURE__ */ new Map([
11035
11027
  )
11036
11028
  ] }),
11037
11029
  /* @__PURE__ */ p("div", { children: [
11038
- /* @__PURE__ */ s(Ne, { children: "Country" }),
11030
+ /* @__PURE__ */ s(Te, { children: "Country" }),
11039
11031
  /* @__PURE__ */ s(
11040
11032
  ni,
11041
11033
  {
11042
11034
  value: n.values.country,
11043
- onValueChange: (R) => {
11044
- n.setFieldValue("country", R);
11035
+ onValueChange: (G) => {
11036
+ n.setFieldValue("country", G);
11045
11037
  }
11046
11038
  }
11047
11039
  )
11048
11040
  ] }),
11049
- /* @__PURE__ */ p(Ta, { children: [
11050
- /* @__PURE__ */ s(Ne, { htmlFor: "street", children: "Street Address" }),
11041
+ /* @__PURE__ */ p(xa, { children: [
11042
+ /* @__PURE__ */ s(Te, { htmlFor: "street", children: "Street Address" }),
11051
11043
  /* @__PURE__ */ s(
11052
- Ra,
11044
+ Ga,
11053
11045
  {
11054
11046
  id: "street",
11055
11047
  placeholder: "Street Address",
@@ -11060,17 +11052,17 @@ const il = /* @__PURE__ */ new Map([
11060
11052
  }
11061
11053
  )
11062
11054
  ] }),
11063
- /* @__PURE__ */ p(Ta, { children: [
11064
- /* @__PURE__ */ s(Ne, { htmlFor: "zipCode", children: "Zip Code" }),
11055
+ /* @__PURE__ */ p(xa, { children: [
11056
+ /* @__PURE__ */ s(Te, { htmlFor: "zipCode", children: "Zip Code" }),
11065
11057
  /* @__PURE__ */ s(
11066
- Ra,
11058
+ Ga,
11067
11059
  {
11068
11060
  placeholder: "Zip Code",
11069
11061
  id: "zipCode",
11070
11062
  name: "zipCode",
11071
11063
  type: "text",
11072
- onChange: (R) => {
11073
- Te(R.target.value), n.setFieldValue("zipCode", R.target.value);
11064
+ onChange: (G) => {
11065
+ Fe(G.target.value), n.setFieldValue("zipCode", G.target.value);
11074
11066
  },
11075
11067
  value: n.values.zipCode
11076
11068
  }
@@ -11114,8 +11106,8 @@ const il = /* @__PURE__ */ new Map([
11114
11106
  backgroundColor: m,
11115
11107
  maxWidth: `${ge}px`
11116
11108
  },
11117
- onClick: (R) => {
11118
- Pa(R);
11109
+ onClick: (G) => {
11110
+ Pa(G);
11119
11111
  },
11120
11112
  isLoading: le,
11121
11113
  disabled: le,
@@ -11345,19 +11337,19 @@ const il = /* @__PURE__ */ new Map([
11345
11337
  }, Symbol.toStringTag, { value: "Module" }));
11346
11338
  export {
11347
11339
  yt as C,
11348
- xp as M,
11340
+ Tp as M,
11349
11341
  cp as P,
11350
11342
  ep as S,
11351
11343
  ds as W,
11352
11344
  Fp as a,
11353
11345
  br as b,
11354
11346
  ip as c,
11355
- Gm as d,
11347
+ Rm as d,
11356
11348
  Np as e,
11357
11349
  mp as f,
11358
11350
  Mp as g,
11359
11351
  Sr as h,
11360
- Tp as i,
11352
+ xp as i,
11361
11353
  dn as j,
11362
11354
  yi as k,
11363
11355
  jm as l,