@paynext/sdk 0.0.45 → 0.0.46

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.
package/dist/index.es.js CHANGED
@@ -2,12 +2,12 @@ var Pa = Object.defineProperty, Ra = Object.defineProperties;
2
2
  var Sa = Object.getOwnPropertyDescriptors;
3
3
  var ht = Object.getOwnPropertySymbols;
4
4
  var Or = Object.prototype.hasOwnProperty, Nr = Object.prototype.propertyIsEnumerable;
5
- var Ot = (n, e, t) => e in n ? Pa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, $ = (n, e) => {
5
+ var It = (n, e, t) => e in n ? Pa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, $ = (n, e) => {
6
6
  for (var t in e || (e = {}))
7
- Or.call(e, t) && Ot(n, t, e[t]);
7
+ Or.call(e, t) && It(n, t, e[t]);
8
8
  if (ht)
9
9
  for (var t of ht(e))
10
- Nr.call(e, t) && Ot(n, t, e[t]);
10
+ Nr.call(e, t) && It(n, t, e[t]);
11
11
  return n;
12
12
  }, te = (n, e) => Ra(n, Sa(e));
13
13
  var ge = (n, e) => {
@@ -19,7 +19,7 @@ var ge = (n, e) => {
19
19
  e.indexOf(r) < 0 && Nr.call(n, r) && (t[r] = n[r]);
20
20
  return t;
21
21
  };
22
- var b = (n, e, t) => Ot(n, typeof e != "symbol" ? e + "" : e, t);
22
+ var b = (n, e, t) => It(n, typeof e != "symbol" ? e + "" : e, t);
23
23
  var j = (n, e, t) => new Promise((r, i) => {
24
24
  var a = (l) => {
25
25
  try {
@@ -332,18 +332,18 @@ function Ai(n) {
332
332
  function rn(n) {
333
333
  return typeof n == "function" && "applyToOptions" in n;
334
334
  }
335
- const Ct = 2e4;
335
+ const _t = 2e4;
336
336
  function an(n) {
337
337
  let e = 0;
338
338
  const t = 50;
339
339
  let r = n.next(e);
340
- for (; !r.done && e < Ct; )
340
+ for (; !r.done && e < _t; )
341
341
  e += t, r = n.next(e);
342
- return e >= Ct ? 1 / 0 : e;
342
+ return e >= _t ? 1 / 0 : e;
343
343
  }
344
344
  const ye = /* @__NO_SIDE_EFFECTS__ */ (n) => n * 1e3, Ee = /* @__NO_SIDE_EFFECTS__ */ (n) => n / 1e3;
345
345
  function wi(n, e = 100, t) {
346
- const r = t(te($({}, n), { keyframes: [0, e] })), i = Math.min(an(r), Ct);
346
+ const r = t(te($({}, n), { keyframes: [0, e] })), i = Math.min(an(r), _t);
347
347
  return {
348
348
  type: "keyframes",
349
349
  ease: (a) => r.next(i * a).value / e,
@@ -557,15 +557,15 @@ function as(n, e) {
557
557
  s[ft[x]].cancel(T);
558
558
  }, state: i, steps: s };
559
559
  }
560
- const De = /* @__NO_SIDE_EFFECTS__ */ (n) => n, { schedule: Ae, cancel: Ft, state: At } = /* @__PURE__ */ as(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : De, !0);
561
- let _t;
560
+ const De = /* @__NO_SIDE_EFFECTS__ */ (n) => n, { schedule: Ae, cancel: Ft, state: Ct } = /* @__PURE__ */ as(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : De, !0);
561
+ let Et;
562
562
  function ss() {
563
- _t = void 0;
563
+ Et = void 0;
564
564
  }
565
565
  const ve = {
566
- now: () => (_t === void 0 && ve.set(At.isProcessing || Ce.useManualTiming ? At.timestamp : performance.now()), _t),
566
+ now: () => (Et === void 0 && ve.set(Ct.isProcessing || Ce.useManualTiming ? Ct.timestamp : performance.now()), Et),
567
567
  set: (n) => {
568
- _t = n, queueMicrotask(ss);
568
+ Et = n, queueMicrotask(ss);
569
569
  }
570
570
  }, Sr = /* @__PURE__ */ new Set();
571
571
  function Ii(n, e, t) {
@@ -907,12 +907,12 @@ const Ns = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
907
907
  [t]: parseFloat(s),
908
908
  alpha: o !== void 0 ? parseFloat(o) : 1
909
909
  };
910
- }, xs = (n) => Le(0, 255, n), Nt = te($({}, Ue), {
910
+ }, xs = (n) => Le(0, 255, n), Ot = te($({}, Ue), {
911
911
  transform: (n) => Math.round(xs(n))
912
912
  }), Ie = {
913
913
  test: /* @__PURE__ */ cn("rgb", "red"),
914
914
  parse: /* @__PURE__ */ Ri("red", "green", "blue"),
915
- transform: ({ red: n, green: e, blue: t, alpha: r = 1 }) => "rgba(" + Nt.transform(n) + ", " + Nt.transform(e) + ", " + Nt.transform(t) + ", " + rt(st.transform(r)) + ")"
915
+ transform: ({ red: n, green: e, blue: t, alpha: r = 1 }) => "rgba(" + Ot.transform(n) + ", " + Ot.transform(e) + ", " + Ot.transform(t) + ", " + rt(st.transform(r)) + ")"
916
916
  };
917
917
  function Ls(n) {
918
918
  let e = "", t = "", r = "", i = "";
@@ -984,7 +984,7 @@ const Be = {
984
984
  createTransformer: Di,
985
985
  getAnimatableNone: Us
986
986
  };
987
- function xt(n, e, t) {
987
+ function Nt(n, e, t) {
988
988
  return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? n + (e - n) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? n + (e - n) * (2 / 3 - t) * 6 : n;
989
989
  }
990
990
  function Bs({ hue: n, saturation: e, lightness: t, alpha: r }) {
@@ -994,7 +994,7 @@ function Bs({ hue: n, saturation: e, lightness: t, alpha: r }) {
994
994
  i = a = s = t;
995
995
  else {
996
996
  const o = t < 0.5 ? t * (1 + e) : t + e - t * e, l = 2 * t - o;
997
- i = xt(l, o, n + 1 / 3), a = xt(l, o, n), s = xt(l, o, n - 1 / 3);
997
+ i = Nt(l, o, n + 1 / 3), a = Nt(l, o, n), s = Nt(l, o, n - 1 / 3);
998
998
  }
999
999
  return {
1000
1000
  red: Math.round(i * 255),
@@ -1003,10 +1003,10 @@ function Bs({ hue: n, saturation: e, lightness: t, alpha: r }) {
1003
1003
  alpha: r
1004
1004
  };
1005
1005
  }
1006
- function wt(n, e) {
1006
+ function At(n, e) {
1007
1007
  return (t) => t > 0 ? e : n;
1008
1008
  }
1009
- const Lt = (n, e, t) => {
1009
+ const xt = (n, e, t) => {
1010
1010
  const r = n * n, i = t * (e * e - r) + r;
1011
1011
  return i < 0 ? 0 : Math.sqrt(i);
1012
1012
  }, zs = [Ut, Ie, Re], js = (n) => zs.find((e) => e.test(n));
@@ -1020,9 +1020,9 @@ function Vr(n) {
1020
1020
  const Fr = (n, e) => {
1021
1021
  const t = Vr(n), r = Vr(e);
1022
1022
  if (!t || !r)
1023
- return wt(n, e);
1023
+ return At(n, e);
1024
1024
  const i = $({}, t);
1025
- return (a) => (i.red = Lt(t.red, r.red, a), i.green = Lt(t.green, r.green, a), i.blue = Lt(t.blue, r.blue, a), i.alpha = ct(t.alpha, r.alpha, a), Ie.transform(i));
1025
+ return (a) => (i.red = xt(t.red, r.red, a), i.green = xt(t.green, r.green, a), i.blue = xt(t.blue, r.blue, a), i.alpha = ct(t.alpha, r.alpha, a), Ie.transform(i));
1026
1026
  }, Bt = /* @__PURE__ */ new Set(["none", "hidden"]);
1027
1027
  function Ks(n, e) {
1028
1028
  return Bt.has(n) ? (t) => t <= 0 ? n : e : (t) => t >= 1 ? e : n;
@@ -1032,7 +1032,7 @@ function Hs(n, e) {
1032
1032
  return (t) => ct(n, e, t);
1033
1033
  }
1034
1034
  function dn(n) {
1035
- return typeof n == "number" ? Hs : typeof n == "string" ? on(n) ? wt : ue.test(n) ? Fr : Ys : Array.isArray(n) ? Vi : typeof n == "object" ? ue.test(n) ? Fr : Ws : wt;
1035
+ return typeof n == "number" ? Hs : typeof n == "string" ? on(n) ? At : ue.test(n) ? Fr : Ys : Array.isArray(n) ? Vi : typeof n == "object" ? ue.test(n) ? Fr : Ws : At;
1036
1036
  }
1037
1037
  function Vi(n, e) {
1038
1038
  const t = [...n], r = t.length, i = n.map((a, s) => dn(a)(a, e[s]));
@@ -1063,7 +1063,7 @@ function Gs(n, e) {
1063
1063
  }
1064
1064
  const Ys = (n, e) => {
1065
1065
  const t = Be.createTransformer(e), r = ot(n), i = ot(e);
1066
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Bt.has(n) && !i.values.length || Bt.has(e) && !r.values.length ? Ks(n, e) : un(Vi(Gs(r, i), i.values), t) : (ut(!0, `Complex values '${n}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), wt(n, e));
1066
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Bt.has(n) && !i.values.length || Bt.has(e) && !r.values.length ? Ks(n, e) : un(Vi(Gs(r, i), i.values), t) : (ut(!0, `Complex values '${n}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), At(n, e));
1067
1067
  };
1068
1068
  function Fi(n, e, t) {
1069
1069
  return typeof n == "number" && typeof e == "number" && typeof t == "number" ? ct(n, e, t) : dn(n)(n, e);
@@ -1077,7 +1077,7 @@ const Qs = (n) => {
1077
1077
  * If we're processing this frame we can use the
1078
1078
  * framelocked timestamp to keep things in sync.
1079
1079
  */
1080
- now: () => At.isProcessing ? At.timestamp : ve.now()
1080
+ now: () => Ct.isProcessing ? Ct.timestamp : ve.now()
1081
1081
  };
1082
1082
  }, Ui = (n, e, t = 10) => {
1083
1083
  let r = "";
@@ -1232,7 +1232,7 @@ function lt(n = ie.visualDuration, e = ie.bounce) {
1232
1232
  return o.value = o.done ? s : I, o;
1233
1233
  },
1234
1234
  toString: () => {
1235
- const A = Math.min(an(x), Ct), I = Ui((L) => x.next(A * L).value, A, 30);
1235
+ const A = Math.min(an(x), _t), I = Ui((L) => x.next(A * L).value, A, 30);
1236
1236
  return A + "ms " + I;
1237
1237
  },
1238
1238
  toTransition: () => {
@@ -3019,10 +3019,10 @@ const ic = "_checkout_5sq3n_1", ac = "_hidden_5sq3n_7", sc = "_formInitial_5sq3n
3019
3019
  hidden: ac,
3020
3020
  formInitial: sc,
3021
3021
  btnsInitial: oc
3022
- }, lc = "_buttons_1i8cu_1", cc = "_hidden_1i8cu_5", Pt = {
3022
+ }, lc = "_buttons_1i8cu_1", cc = "_hidden_1i8cu_5", Lt = {
3023
3023
  buttons: lc,
3024
3024
  hidden: cc
3025
- }, uc = "_applePay_1m9xd_1", dc = "_hidden_1m9xd_22", Rt = {
3025
+ }, uc = "_applePay_1m9xd_1", dc = "_hidden_1m9xd_22", Pt = {
3026
3026
  applePay: uc,
3027
3027
  hidden: dc
3028
3028
  };
@@ -3032,11 +3032,11 @@ class pc {
3032
3032
  b(this, "events", {
3033
3033
  ready: new ce()
3034
3034
  });
3035
- this.ev = e, this.element = document.createElement("div"), this.element.classList.add(Rt.applePay, Rt.hidden);
3035
+ this.ev = e, this.element = document.createElement("div"), this.element.classList.add(Pt.applePay, Pt.hidden);
3036
3036
  }
3037
3037
  init(e) {
3038
3038
  return j(this, null, function* () {
3039
- e && (yield this.ev.initApple(e), this.ev.isAppleAvailable() && (yield this.ev.renderApple(this.element), this.element.classList.remove(Rt.hidden), this.events.ready.emit()));
3039
+ e && (yield this.ev.initApple(e), this.ev.isAppleAvailable() && (yield this.ev.renderApple(this.element), this.element.classList.remove(Pt.hidden), this.events.ready.emit()));
3040
3040
  });
3041
3041
  }
3042
3042
  addEventListener(e, t) {
@@ -3071,9 +3071,9 @@ const hc = [
3071
3071
  function wa(n) {
3072
3072
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
3073
3073
  }
3074
- var St, ni;
3074
+ var Rt, ni;
3075
3075
  function mc() {
3076
- if (ni) return St;
3076
+ if (ni) return Rt;
3077
3077
  ni = 1;
3078
3078
  var n = {
3079
3079
  visa: {
@@ -3267,7 +3267,7 @@ function mc() {
3267
3267
  }
3268
3268
  }
3269
3269
  };
3270
- return St = n, St;
3270
+ return Rt = n, Rt;
3271
3271
  }
3272
3272
  var $e = {}, Ze = {}, ri;
3273
3273
  function Ta() {
@@ -3464,7 +3464,7 @@ const Ec = (n, e) => {
3464
3464
  return `${r} / ${a}`;
3465
3465
  };
3466
3466
  var oe = /* @__PURE__ */ ((n) => (n.Invalid = "invalid", n.Empty = "empty", n.Incomplete = "incomplete", n.Unsupported = "unsupported", n.Expired = "expired", n))(oe || {}), pe = /* @__PURE__ */ ((n) => (n.Visa = "visa", n.Mastercard = "mastercard", n.AmericanExpress = "american-express", n.Discover = "discover", n.JCB = "jcb", n.DinersClub = "diners-club", n.UnionPay = "unionpay", n.Maestro = "maestro", n))(pe || {});
3467
- const Tt = [
3467
+ const wt = [
3468
3468
  { name: "Visa", type: "visa", pattern: /^4/, minLength: 16, maxLength: 16 },
3469
3469
  {
3470
3470
  name: "MasterCard",
@@ -3509,7 +3509,7 @@ const Tt = [
3509
3509
  minLength: 12,
3510
3510
  maxLength: 19
3511
3511
  }
3512
- ], Ia = (n) => Tt.find((e) => e.pattern.test(n)) || null, ci = (n) => Tt.filter((e) => e.pattern.test(n)), Ac = (n) => {
3512
+ ], Ia = (n) => wt.find((e) => e.pattern.test(n)) || null, ci = (n) => wt.filter((e) => e.pattern.test(n)), Ac = (n) => {
3513
3513
  let e = 0, t = !1;
3514
3514
  for (let r = n.length - 1; r >= 0; r--) {
3515
3515
  let i = parseInt(n[r]);
@@ -3588,7 +3588,7 @@ const Tt = [
3588
3588
  default:
3589
3589
  return e;
3590
3590
  }
3591
- }, []), Oc = "_googlePay_1j5ka_1", Nc = "_hidden_1j5ka_17", kt = {
3591
+ }, []), Oc = "_googlePay_1j5ka_1", Nc = "_hidden_1j5ka_17", St = {
3592
3592
  googlePay: Oc,
3593
3593
  hidden: Nc
3594
3594
  };
@@ -3598,11 +3598,11 @@ class xc {
3598
3598
  b(this, "events", {
3599
3599
  ready: new ce()
3600
3600
  });
3601
- this.ev = e, this.element = document.createElement("div"), this.element.classList.add(kt.googlePay, kt.hidden);
3601
+ this.ev = e, this.element = document.createElement("div"), this.element.classList.add(St.googlePay, St.hidden);
3602
3602
  }
3603
3603
  init(e) {
3604
3604
  return j(this, null, function* () {
3605
- e && (yield this.ev.initGoogle(e), yield this.ev.renderGoogle(this.element), this.element.classList.remove(kt.hidden), this.events.ready.emit());
3605
+ e && (yield this.ev.initGoogle(e), yield this.ev.renderGoogle(this.element), this.element.classList.remove(St.hidden), this.events.ready.emit());
3606
3606
  });
3607
3607
  }
3608
3608
  addEventListener(e, t) {
@@ -3612,7 +3612,7 @@ class xc {
3612
3612
  return this.element;
3613
3613
  }
3614
3614
  }
3615
- const Lc = "_paypal_1al9c_1", Pc = "_hidden_1al9c_8", Mt = {
3615
+ const Lc = "_paypal_1al9c_1", Pc = "_hidden_1al9c_8", kt = {
3616
3616
  paypal: Lc,
3617
3617
  hidden: Pc
3618
3618
  };
@@ -3622,7 +3622,7 @@ class Rc {
3622
3622
  b(this, "events", {
3623
3623
  ready: new ce()
3624
3624
  });
3625
- this.paypal = e, this.element = document.createElement("div"), this.element.classList.add(Mt.paypal, Mt.hidden);
3625
+ this.paypal = e, this.element = document.createElement("div"), this.element.classList.add(kt.paypal, kt.hidden);
3626
3626
  }
3627
3627
  // init
3628
3628
  init(e) {
@@ -3637,7 +3637,7 @@ class Rc {
3637
3637
  }),
3638
3638
  onCancel: e.onCancel,
3639
3639
  onError: e.onError
3640
- })), this.element.classList.remove(Mt.hidden), this.events.ready.emit());
3640
+ })), this.element.classList.remove(kt.hidden), this.events.ready.emit());
3641
3641
  });
3642
3642
  }
3643
3643
  // add event listener
@@ -3845,11 +3845,15 @@ const Uc = (n, e, t) => e.concat(n.filter((r) => e.every((i) => !t(r, i)))), _n
3845
3845
  return i.checkout_config || (i.checkout_config = Bc), i;
3846
3846
  });
3847
3847
  var Oa = /* @__PURE__ */ ((n) => (n.Card = "CARD", n))(Oa || {});
3848
- const qc = "_venmo_11kil_1", Hc = "_hidden_11kil_18", bt = {
3848
+ const qc = "_venmo_10t25_1", Hc = "_hidden_10t25_17", Mt = {
3849
3849
  venmo: qc,
3850
3850
  hidden: Hc
3851
+ }, Wc = {
3852
+ display: "block",
3853
+ height: 40,
3854
+ borderRadius: 12
3851
3855
  };
3852
- class Wc {
3856
+ class Gc {
3853
3857
  constructor(e) {
3854
3858
  b(this, "isProcessing", !1);
3855
3859
  b(this, "element");
@@ -3857,13 +3861,13 @@ class Wc {
3857
3861
  b(this, "events", {
3858
3862
  ready: new ce()
3859
3863
  });
3860
- this.braintree = e, this.element = document.createElement("div"), this.element.classList.add(bt.braintree, bt.hidden), this.venmoButton = document.createElement("button"), this.venmoButton.textContent = "Venmo", this.venmoButton.classList.add(bt.venmo), this.venmoButton.style.display = "none", this.element.appendChild(this.venmoButton);
3864
+ this.braintree = e, this.element = document.createElement("div"), this.venmoButton = document.createElement("button"), this.venmoButton.classList.add(Mt.venmo, Mt.hidden), this.venmoButton.textContent = "Venmo", this.element.appendChild(this.venmoButton);
3861
3865
  }
3862
3866
  // init
3863
3867
  init(e) {
3864
3868
  return j(this, null, function* () {
3865
3869
  if (e) {
3866
- console.log("Initializing Braintree with config:", e);
3870
+ console.log("Initializing Braintree Venmo with config:", e);
3867
3871
  try {
3868
3872
  if (yield this.braintree.init({
3869
3873
  authorization: e.authorization
@@ -3875,7 +3879,7 @@ class Wc {
3875
3879
  yield this.handleExistingTokenization(e);
3876
3880
  return;
3877
3881
  }
3878
- this.element.classList.remove(bt.hidden), this.events.ready.emit();
3882
+ this.element.classList.remove(Mt.hidden), this.events.ready.emit();
3879
3883
  } catch (t) {
3880
3884
  console.error("Error initializing Venmo:", t), this.handleVenmoError(t);
3881
3885
  }
@@ -3884,7 +3888,7 @@ class Wc {
3884
3888
  }
3885
3889
  // display venmo button
3886
3890
  displayVenmoButton(e) {
3887
- this.venmoButton.style.display = "block", this.venmoButton.addEventListener("click", () => j(this, null, function* () {
3891
+ Object.assign(this.venmoButton.style, Wc), this.venmoButton.addEventListener("click", () => j(this, null, function* () {
3888
3892
  if (!this.isProcessing) {
3889
3893
  this.isProcessing = !0, this.venmoButton.disabled = !0;
3890
3894
  try {
@@ -3928,7 +3932,7 @@ class Wc {
3928
3932
  return this.element;
3929
3933
  }
3930
3934
  }
3931
- class Gc {
3935
+ class Yc {
3932
3936
  constructor(e) {
3933
3937
  b(this, "isAppleReady", !0);
3934
3938
  b(this, "isGoogleReady", !0);
@@ -3947,7 +3951,7 @@ class Gc {
3947
3951
  cancel: new ce(),
3948
3952
  success: new ce()
3949
3953
  });
3950
- this.config = e, this.applePay = new pc(e.service.ev), this.paypal = new Rc(e.service.paypal), this.googlePay = new xc(e.service.ev), this.braintree = new Wc(e.service.braintree), this.card = new Fc(e.state.translate), this.buttons = document.createElement("div"), this.buttons.classList.add(Pt.buttons, Pt.hidden);
3954
+ this.config = e, this.applePay = new pc(e.service.ev), this.paypal = new Rc(e.service.paypal), this.googlePay = new xc(e.service.ev), this.braintree = new Gc(e.service.braintree), this.card = new Fc(e.state.translate), this.buttons = document.createElement("div"), this.buttons.classList.add(Lt.buttons, Lt.hidden);
3951
3955
  }
3952
3956
  // init
3953
3957
  init() {
@@ -4094,14 +4098,14 @@ class Gc {
4094
4098
  }
4095
4099
  // show button
4096
4100
  showButton() {
4097
- this.buttons.classList.remove(Pt.hidden);
4101
+ this.buttons.classList.remove(Lt.hidden);
4098
4102
  }
4099
4103
  // render
4100
4104
  render() {
4101
4105
  return this.buttons;
4102
4106
  }
4103
4107
  }
4104
- class Yc {
4108
+ class Qc {
4105
4109
  constructor() {
4106
4110
  b(this, "template", `
4107
4111
  <svg
@@ -4127,14 +4131,14 @@ class Yc {
4127
4131
  return this.element;
4128
4132
  }
4129
4133
  }
4130
- const Qc = "_button_125my_1", $c = {
4131
- button: Qc
4134
+ const $c = "_button_125my_1", Zc = {
4135
+ button: $c
4132
4136
  };
4133
- class Zc {
4137
+ class Xc {
4134
4138
  constructor() {
4135
4139
  b(this, "element");
4136
- b(this, "icon", new Yc());
4137
- this.element = document.createElement("div"), this.element.classList.add($c.button), this.element.appendChild(this.icon.render());
4140
+ b(this, "icon", new Qc());
4141
+ this.element = document.createElement("div"), this.element.classList.add(Zc.button), this.element.appendChild(this.icon.render());
4138
4142
  }
4139
4143
  addEventListener(e) {
4140
4144
  return this.element.addEventListener("click", e);
@@ -4143,14 +4147,14 @@ class Zc {
4143
4147
  return this.element;
4144
4148
  }
4145
4149
  }
4146
- const Xc = "_button_rx9be_1", Jc = "_disabled_rx9be_17", eu = "_press_rx9be_22", tu = "_hidden_rx9be_26", nu = "_spinner_rx9be_30", be = {
4147
- button: Xc,
4148
- disabled: Jc,
4149
- press: eu,
4150
- hidden: tu,
4151
- spinner: nu
4150
+ const Jc = "_button_rx9be_1", eu = "_disabled_rx9be_17", tu = "_press_rx9be_22", nu = "_hidden_rx9be_26", ru = "_spinner_rx9be_30", be = {
4151
+ button: Jc,
4152
+ disabled: eu,
4153
+ press: tu,
4154
+ hidden: nu,
4155
+ spinner: ru
4152
4156
  };
4153
- class ru {
4157
+ class iu {
4154
4158
  constructor(e) {
4155
4159
  b(this, "element");
4156
4160
  b(this, "spinner", new Aa());
@@ -4169,19 +4173,19 @@ class ru {
4169
4173
  return this.element;
4170
4174
  }
4171
4175
  }
4172
- const iu = "_cardForm_isqbi_1", au = "_hidden_isqbi_5", Et = {
4173
- cardForm: iu,
4174
- hidden: au
4175
- }, su = "_wrapper_4knhb_1", ou = "_inputContainer_4knhb_5", lu = "_input_4knhb_5", cu = "_errorInput_4knhb_24", uu = "_label_4knhb_28", du = "_labelError_4knhb_32", pu = "_disabled_4knhb_36", hu = "_disabledInput_4knhb_40", mu = "_hidden_4knhb_47", ae = {
4176
- wrapper: su,
4177
- inputContainer: ou,
4178
- input: lu,
4179
- errorInput: cu,
4180
- label: uu,
4181
- labelError: du,
4182
- disabled: pu,
4183
- disabledInput: hu,
4184
- hidden: mu
4176
+ const au = "_cardForm_isqbi_1", su = "_hidden_isqbi_5", bt = {
4177
+ cardForm: au,
4178
+ hidden: su
4179
+ }, ou = "_wrapper_4knhb_1", lu = "_inputContainer_4knhb_5", cu = "_input_4knhb_5", uu = "_errorInput_4knhb_24", du = "_label_4knhb_28", pu = "_labelError_4knhb_32", hu = "_disabled_4knhb_36", mu = "_disabledInput_4knhb_40", fu = "_hidden_4knhb_47", ae = {
4180
+ wrapper: ou,
4181
+ inputContainer: lu,
4182
+ input: cu,
4183
+ errorInput: uu,
4184
+ label: du,
4185
+ labelError: pu,
4186
+ disabled: hu,
4187
+ disabledInput: mu,
4188
+ hidden: fu
4185
4189
  };
4186
4190
  class Cn {
4187
4191
  constructor() {
@@ -4204,7 +4208,7 @@ class Cn {
4204
4208
  return this.element;
4205
4209
  }
4206
4210
  }
4207
- class fu {
4211
+ class vu {
4208
4212
  constructor(e) {
4209
4213
  b(this, "id", "paynext-card-input-name");
4210
4214
  b(this, "element");
@@ -4266,20 +4270,20 @@ class fu {
4266
4270
  return this.toggleLabelError(r), this.isDisabled ? (this.inputContainer.classList.add(ae.disabled), this.input.classList.add(ae.disabledInput)) : (this.inputContainer.classList.remove(ae.disabled), this.input.classList.remove(ae.disabledInput)), this.element;
4267
4271
  }
4268
4272
  }
4269
- const vu = "_wrapper_j8wuo_1", gu = "_inputContainer_j8wuo_5", yu = "_input_j8wuo_5", bu = "_endContent_j8wuo_20", Eu = "_errorInput_j8wuo_24", _u = "_error_j8wuo_24", Cu = "_label_j8wuo_32", Au = "_labelError_j8wuo_36", wu = "_disabled_j8wuo_40", Tu = "_disabledInput_j8wuo_44", Iu = "_hidden_j8wuo_51", ne = {
4270
- wrapper: vu,
4271
- inputContainer: gu,
4272
- input: yu,
4273
- endContent: bu,
4274
- errorInput: Eu,
4275
- error: _u,
4276
- label: Cu,
4277
- labelError: Au,
4278
- disabled: wu,
4279
- disabledInput: Tu,
4280
- hidden: Iu
4273
+ const gu = "_wrapper_j8wuo_1", yu = "_inputContainer_j8wuo_5", bu = "_input_j8wuo_5", Eu = "_endContent_j8wuo_20", _u = "_errorInput_j8wuo_24", Cu = "_error_j8wuo_24", Au = "_label_j8wuo_32", wu = "_labelError_j8wuo_36", Tu = "_disabled_j8wuo_40", Iu = "_disabledInput_j8wuo_44", Ou = "_hidden_j8wuo_51", ne = {
4274
+ wrapper: gu,
4275
+ inputContainer: yu,
4276
+ input: bu,
4277
+ endContent: Eu,
4278
+ errorInput: _u,
4279
+ error: Cu,
4280
+ label: Au,
4281
+ labelError: wu,
4282
+ disabled: Tu,
4283
+ disabledInput: Iu,
4284
+ hidden: Ou
4281
4285
  };
4282
- class Ou {
4286
+ class Nu {
4283
4287
  constructor() {
4284
4288
  b(this, "template", `
4285
4289
  <svg
@@ -4317,7 +4321,7 @@ class Ou {
4317
4321
  return this.element;
4318
4322
  }
4319
4323
  }
4320
- class Nu {
4324
+ class xu {
4321
4325
  constructor() {
4322
4326
  b(this, "template", `
4323
4327
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' class='${Z.svg}'>
@@ -4354,7 +4358,7 @@ class Nu {
4354
4358
  return this.element;
4355
4359
  }
4356
4360
  }
4357
- class xu {
4361
+ class Lu {
4358
4362
  constructor() {
4359
4363
  b(this, "template", `
4360
4364
  <svg
@@ -4404,7 +4408,7 @@ class xu {
4404
4408
  return this.element;
4405
4409
  }
4406
4410
  }
4407
- class Lu {
4411
+ class Pu {
4408
4412
  constructor() {
4409
4413
  b(this, "template", `
4410
4414
  <svg
@@ -4459,7 +4463,7 @@ class Lu {
4459
4463
  return this.element;
4460
4464
  }
4461
4465
  }
4462
- class Pu {
4466
+ class Ru {
4463
4467
  constructor() {
4464
4468
  b(this, "template", `
4465
4469
  <svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 23 16' width='23' class='${Z.svg}'>
@@ -4499,7 +4503,7 @@ class Pu {
4499
4503
  return this.element;
4500
4504
  }
4501
4505
  }
4502
- class Ru {
4506
+ class Su {
4503
4507
  constructor() {
4504
4508
  b(this, "template", `
4505
4509
  <svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 24 16' width='24' class='${Z.svg}'>
@@ -4522,7 +4526,7 @@ class Ru {
4522
4526
  return this.element;
4523
4527
  }
4524
4528
  }
4525
- class Su {
4529
+ class ku {
4526
4530
  constructor() {
4527
4531
  b(this, "template", `
4528
4532
  <svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 24 16' width='24' class='${Z.svg}'>
@@ -4554,7 +4558,7 @@ class Su {
4554
4558
  return this.element;
4555
4559
  }
4556
4560
  }
4557
- class ku {
4561
+ class Mu {
4558
4562
  constructor() {
4559
4563
  b(this, "template", `
4560
4564
  <svg
@@ -4603,10 +4607,10 @@ class ku {
4603
4607
  return this.element;
4604
4608
  }
4605
4609
  }
4606
- class Mu {
4610
+ class Du {
4607
4611
  constructor(e) {
4608
4612
  b(this, "id", "paynext-card-input-number");
4609
- b(this, "initialCardTypes", Tt.map((e) => e.type));
4613
+ b(this, "initialCardTypes", wt.map((e) => e.type));
4610
4614
  b(this, "element");
4611
4615
  b(this, "inputContainer", document.createElement("div"));
4612
4616
  b(this, "input", document.createElement("input"));
@@ -4615,14 +4619,14 @@ class Mu {
4615
4619
  b(this, "labelError", document.createElement("span"));
4616
4620
  b(this, "endContent", document.createElement("div"));
4617
4621
  b(this, "error", document.createElement("p"));
4618
- b(this, "unknownCard", new Ou());
4619
- b(this, "amex", new Nu());
4620
- b(this, "dinerClub", new xu());
4621
- b(this, "discover", new Lu());
4622
- b(this, "jcb", new Pu());
4623
- b(this, "masterCard", new Ru());
4624
- b(this, "unionPay", new Su());
4625
- b(this, "visa", new ku());
4622
+ b(this, "unknownCard", new Nu());
4623
+ b(this, "amex", new xu());
4624
+ b(this, "dinerClub", new Lu());
4625
+ b(this, "discover", new Pu());
4626
+ b(this, "jcb", new Ru());
4627
+ b(this, "masterCard", new Su());
4628
+ b(this, "unionPay", new ku());
4629
+ b(this, "visa", new Mu());
4626
4630
  b(this, "supportedCardTypes", this.initialCardTypes);
4627
4631
  b(this, "isTouchSubmit", !1);
4628
4632
  b(this, "errorMessage", "");
@@ -4673,7 +4677,7 @@ class Mu {
4673
4677
  });
4674
4678
  }
4675
4679
  getCardIcons() {
4676
- return Tt.filter(({ type: e }) => this.supportedCardTypes.includes(e)).slice(0, 3).map(({ type: e }) => {
4680
+ return wt.filter(({ type: e }) => this.supportedCardTypes.includes(e)).slice(0, 3).map(({ type: e }) => {
4677
4681
  switch (e) {
4678
4682
  case pe.Visa:
4679
4683
  return this.visa.render();
@@ -4718,20 +4722,20 @@ class Mu {
4718
4722
  return this.toggleLabelError(t), this.toggleErrorMessage(r), !t && !r ? (this.inputContainer.classList.remove(ne.errorInput), this.endContent.innerHTML = "", this.endContent.append(...this.getCardIcons())) : (this.endContent.innerHTML = "", this.endContent.appendChild(this.unknownCard.render())), this.isDisabled ? (this.inputContainer.classList.add(ne.disabled), this.input.classList.add(ne.disabledInput)) : (this.inputContainer.classList.remove(ne.disabled), this.input.classList.remove(ne.disabledInput)), this.element;
4719
4723
  }
4720
4724
  }
4721
- const Du = "_inputContainer_1xdj3_5", Vu = "_input_1xdj3_5", Fu = "_endContent_1xdj3_20", Uu = "_errorInput_1xdj3_24", Bu = "_error_1xdj3_24", zu = "_label_1xdj3_32", ju = "_labelError_1xdj3_36", Ku = "_disabled_1xdj3_40", qu = "_disabledInput_1xdj3_44", Hu = "_hidden_1xdj3_51", Wu = "_securityContent_1xdj3_55", Y = {
4722
- inputContainer: Du,
4723
- input: Vu,
4724
- endContent: Fu,
4725
- errorInput: Uu,
4726
- error: Bu,
4727
- label: zu,
4728
- labelError: ju,
4729
- disabled: Ku,
4730
- disabledInput: qu,
4731
- hidden: Hu,
4732
- securityContent: Wu
4725
+ const Vu = "_inputContainer_1xdj3_5", Fu = "_input_1xdj3_5", Uu = "_endContent_1xdj3_20", Bu = "_errorInput_1xdj3_24", zu = "_error_1xdj3_24", ju = "_label_1xdj3_32", Ku = "_labelError_1xdj3_36", qu = "_disabled_1xdj3_40", Hu = "_disabledInput_1xdj3_44", Wu = "_hidden_1xdj3_51", Gu = "_securityContent_1xdj3_55", Y = {
4726
+ inputContainer: Vu,
4727
+ input: Fu,
4728
+ endContent: Uu,
4729
+ errorInput: Bu,
4730
+ error: zu,
4731
+ label: ju,
4732
+ labelError: Ku,
4733
+ disabled: qu,
4734
+ disabledInput: Hu,
4735
+ hidden: Wu,
4736
+ securityContent: Gu
4733
4737
  };
4734
- class Gu {
4738
+ class Yu {
4735
4739
  constructor() {
4736
4740
  b(this, "template", `
4737
4741
  <svg class='${Z.svg}' focusable='false' viewBox='0 0 32 21' role='img' aria-label='CVC'>
@@ -4760,13 +4764,13 @@ class Gu {
4760
4764
  return this.element;
4761
4765
  }
4762
4766
  }
4763
- class Yu {
4767
+ class Qu {
4764
4768
  constructor(e) {
4765
4769
  b(this, "cvcId", "paynext-card-input-cvc");
4766
4770
  b(this, "expiryId", "paynext-card-input-expiry");
4767
4771
  b(this, "element");
4768
4772
  b(this, "warning", new Cn());
4769
- b(this, "cardCvc", new Gu());
4773
+ b(this, "cardCvc", new Yu());
4770
4774
  b(this, "expiryInputContainer", document.createElement("div"));
4771
4775
  b(this, "expiryInput", document.createElement("input"));
4772
4776
  b(this, "expiryLabel", document.createElement("label"));
@@ -4942,9 +4946,9 @@ class Yu {
4942
4946
  return this.toggleCvcLabelError(a), this.toggleCvcErrorMessage(s), !a && !s ? (this.cvcInputContainer.classList.remove(Y.errorInput), this.cvcEndContent.innerHTML = "", this.cvcEndContent.appendChild(this.cardCvc.render())) : (this.cvcEndContent.innerHTML = "", this.cvcEndContent.appendChild(this.warning.render())), this.isDisabled ? (this.expiryInputContainer.classList.add(Y.disabled), this.expiryInput.classList.add(Y.disabledInput), this.cvcInputContainer.classList.add(Y.disabled), this.cvcInput.classList.add(Y.disabledInput)) : (this.expiryInputContainer.classList.remove(Y.disabled), this.expiryInput.classList.remove(Y.disabledInput), this.cvcInputContainer.classList.remove(Y.disabled), this.cvcInput.classList.remove(Y.disabledInput)), this.element;
4943
4947
  }
4944
4948
  }
4945
- const Qu = "_container_94v1h_1", $u = "_title_94v1h_10", di = {
4946
- container: Qu,
4947
- title: $u
4949
+ const $u = "_container_94v1h_1", Zu = "_title_94v1h_10", di = {
4950
+ container: $u,
4951
+ title: Zu
4948
4952
  };
4949
4953
  class Na {
4950
4954
  constructor(e) {
@@ -4965,7 +4969,7 @@ class Na {
4965
4969
  return this.element;
4966
4970
  }
4967
4971
  }
4968
- class Zu {
4972
+ class Xu {
4969
4973
  constructor(e, t) {
4970
4974
  b(this, "element");
4971
4975
  b(this, "error");
@@ -4978,7 +4982,7 @@ class Zu {
4978
4982
  submit: new ce(),
4979
4983
  close: new ce()
4980
4984
  });
4981
- this.element = document.createElement("form"), this.error = new Na(e), this.submit = new ru(e), this.back = new Zc(), this.number = new Mu(e), this.name = new fu(e), this.cardSecurity = new Yu(e), this.error.addClassName(Et.hidden), this.element.classList.add(Et.cardForm, t || ""), this.element.append(
4985
+ this.element = document.createElement("form"), this.error = new Na(e), this.submit = new iu(e), this.back = new Xc(), this.number = new Du(e), this.name = new vu(e), this.cardSecurity = new Qu(e), this.error.addClassName(bt.hidden), this.element.classList.add(bt.cardForm, t || ""), this.element.append(
4982
4986
  this.back.render(),
4983
4987
  this.number.render(),
4984
4988
  this.cardSecurity.render(),
@@ -5011,16 +5015,16 @@ class Zu {
5011
5015
  return e && t && r;
5012
5016
  }
5013
5017
  showError() {
5014
- this.error.removeClassName(Et.hidden);
5018
+ this.error.removeClassName(bt.hidden);
5015
5019
  }
5016
5020
  hideError() {
5017
- this.error.addClassName(Et.hidden);
5021
+ this.error.addClassName(bt.hidden);
5018
5022
  }
5019
5023
  render() {
5020
5024
  return this.element;
5021
5025
  }
5022
5026
  }
5023
- class Xu {
5027
+ class Ju {
5024
5028
  constructor() {
5025
5029
  b(this, "template", `
5026
5030
  <svg
@@ -5047,15 +5051,15 @@ class Xu {
5047
5051
  return this.element;
5048
5052
  }
5049
5053
  }
5050
- const Ju = "_container_hoha1_1", ed = "_title_hoha1_5", pi = {
5051
- container: Ju,
5052
- title: ed
5054
+ const ed = "_container_hoha1_1", td = "_title_hoha1_5", pi = {
5055
+ container: ed,
5056
+ title: td
5053
5057
  };
5054
- class td {
5058
+ class nd {
5055
5059
  constructor(e) {
5056
5060
  b(this, "element");
5057
5061
  b(this, "message", document.createElement("p"));
5058
- b(this, "icon", new Xu());
5062
+ b(this, "icon", new Ju());
5059
5063
  this.translate = e, this.element = document.createElement("div"), this.element.classList.add(pi.container), this.message.classList.add(pi.title), this.message.textContent = e.messages().status.success, this.element.append(this.icon.render(), this.message), this.translate.subscribe(({ messages: t }) => {
5060
5064
  this.message.textContent = t.status.success;
5061
5065
  });
@@ -5070,7 +5074,7 @@ class td {
5070
5074
  return this.element;
5071
5075
  }
5072
5076
  }
5073
- class nd {
5077
+ class rd {
5074
5078
  constructor(e) {
5075
5079
  b(this, "isLoading", !1);
5076
5080
  b(this, "isFormOpen", !1);
@@ -5081,7 +5085,7 @@ class nd {
5081
5085
  b(this, "success");
5082
5086
  b(this, "buttons");
5083
5087
  b(this, "form");
5084
- this.config = e, this.buttons = new Gc(e), this.form = new Zu(e.state.translate, le.hidden), this.error = new Na(e.state.translate), this.success = new td(e.state.translate), this.error.addClassName(le.hidden), this.success.addClassName(le.hidden), this.container.append(this.loader.render(), this.buttons.render(), this.form.render()), this.checkout = document.createElement("div"), this.checkout.classList.add(le.checkout), this.checkout.append(this.container, this.error.render(), this.success.render());
5088
+ this.config = e, this.buttons = new Yc(e), this.form = new Xu(e.state.translate, le.hidden), this.error = new Na(e.state.translate), this.success = new nd(e.state.translate), this.error.addClassName(le.hidden), this.success.addClassName(le.hidden), this.container.append(this.loader.render(), this.buttons.render(), this.form.render()), this.checkout = document.createElement("div"), this.checkout.classList.add(le.checkout), this.checkout.append(this.container, this.error.render(), this.success.render());
5085
5089
  }
5086
5090
  // init
5087
5091
  init() {
@@ -5162,7 +5166,7 @@ class nd {
5162
5166
  }
5163
5167
  this.showSuccess(), (i = t.onCheckoutComplete) == null || i.call(t, a), this.setLoading(!1);
5164
5168
  } catch (a) {
5165
- console.log("----- handle success error: ", a), this.handleError(a);
5169
+ this.handleError(a);
5166
5170
  }
5167
5171
  });
5168
5172
  }
@@ -5189,10 +5193,10 @@ class nd {
5189
5193
  return this.checkout;
5190
5194
  }
5191
5195
  }
5192
- class rd {
5196
+ class id {
5193
5197
  constructor(e) {
5194
5198
  b(this, "component");
5195
- this.config = e, this.component = new nd(e);
5199
+ this.config = e, this.component = new rd(e);
5196
5200
  }
5197
5201
  // init
5198
5202
  init() {
@@ -5217,7 +5221,7 @@ class rd {
5217
5221
  });
5218
5222
  }
5219
5223
  }
5220
- class It {
5224
+ class Tt {
5221
5225
  constructor(e) {
5222
5226
  b(this, "initialState");
5223
5227
  b(this, "state");
@@ -5237,22 +5241,22 @@ class It {
5237
5241
  return this.observer.addListener(e);
5238
5242
  }
5239
5243
  }
5240
- const id = {
5244
+ const ad = {
5241
5245
  clientToken: "",
5242
5246
  environment: "sandbox"
5243
5247
  };
5244
- class ad extends It {
5248
+ class sd extends Tt {
5245
5249
  constructor(e) {
5246
- super(e || id);
5250
+ super(e || ad);
5247
5251
  }
5248
5252
  }
5249
- const sd = {};
5250
- class od extends It {
5253
+ const od = {};
5254
+ class ld extends Tt {
5251
5255
  constructor(e) {
5252
- super(e || sd);
5256
+ super(e || od);
5253
5257
  }
5254
5258
  }
5255
- class ld extends It {
5259
+ class cd extends Tt {
5256
5260
  constructor(t) {
5257
5261
  super(t || null);
5258
5262
  b(this, "clientToken", "");
@@ -5267,7 +5271,7 @@ class ld extends It {
5267
5271
  });
5268
5272
  }
5269
5273
  }
5270
- const cd = {
5274
+ const ud = {
5271
5275
  card: {
5272
5276
  title: "طريقة الدفع",
5273
5277
  number: {
@@ -5317,7 +5321,7 @@ const cd = {
5317
5321
  success: "تمت عملية الدفع الخاصة بك بنجاح!",
5318
5322
  error: "لم نتمكن من التحقق من طريقة الدفع الخاصة بك. يرجى اختيار طريقة دفع أخرى وإعادة المحاولة."
5319
5323
  }
5320
- }, ud = {
5324
+ }, dd = {
5321
5325
  card: {
5322
5326
  title: "Метод на плащане",
5323
5327
  number: {
@@ -5367,7 +5371,7 @@ const cd = {
5367
5371
  success: "Успех",
5368
5372
  error: "Не можем да удостоверим автентичността на вашия метод на плащане. Моля, изберете друг метод на плащане и опитайте отново."
5369
5373
  }
5370
- }, dd = {
5374
+ }, pd = {
5371
5375
  card: {
5372
5376
  title: "Způsob platby",
5373
5377
  number: {
@@ -5417,7 +5421,7 @@ const cd = {
5417
5421
  success: "Úspěch",
5418
5422
  error: "Váš způsob platby se nám nedaří ověřit. Zvolte prosím jiný způsob platby a zkuste to znovu."
5419
5423
  }
5420
- }, pd = {
5424
+ }, hd = {
5421
5425
  card: {
5422
5426
  title: "Betalingsmetode",
5423
5427
  number: {
@@ -5467,7 +5471,7 @@ const cd = {
5467
5471
  success: "Succes",
5468
5472
  error: "Vi kan ikke godkende din betalingsmetode. Vælg venligst en anden betalingsmetode og prøv igen."
5469
5473
  }
5470
- }, hd = {
5474
+ }, md = {
5471
5475
  card: {
5472
5476
  title: "Zahlungsmethode",
5473
5477
  number: {
@@ -5517,7 +5521,7 @@ const cd = {
5517
5521
  success: "Erfolg",
5518
5522
  error: "Wir können Ihre Zahlungsmethode nicht authentifizieren. Bitte wählen Sie eine andere Zahlungsmethode und versuchen Sie es erneut."
5519
5523
  }
5520
- }, md = {
5524
+ }, fd = {
5521
5525
  card: {
5522
5526
  title: "Μέθοδος πληρωμής",
5523
5527
  number: {
@@ -5567,7 +5571,7 @@ const cd = {
5567
5571
  success: "Επιτυχία",
5568
5572
  error: "Δεν μπορούμε να πιστοποιήσουμε τη μέθοδο πληρωμής σας. Παρακαλούμε επιλέξτε μια διαφορετική μέθοδο πληρωμής και προσπαθήστε ξανά."
5569
5573
  }
5570
- }, fd = {
5574
+ }, vd = {
5571
5575
  card: {
5572
5576
  title: "Payment method",
5573
5577
  number: {
@@ -5617,7 +5621,7 @@ const cd = {
5617
5621
  success: "Your payment was successful!",
5618
5622
  error: "We are unable to authenticate your payment method. Please choose a different payment method and try again."
5619
5623
  }
5620
- }, vd = {
5624
+ }, gd = {
5621
5625
  card: {
5622
5626
  title: "Método de pago",
5623
5627
  number: {
@@ -5667,7 +5671,7 @@ const cd = {
5667
5671
  success: "Éxito",
5668
5672
  error: "No podemos autenticar su método de pago. Elija otro método de pago e inténtelo de nuevo."
5669
5673
  }
5670
- }, gd = {
5674
+ }, yd = {
5671
5675
  card: {
5672
5676
  title: "Makseviis",
5673
5677
  number: {
@@ -5717,7 +5721,7 @@ const cd = {
5717
5721
  success: "Edu",
5718
5722
  error: "Me ei suuda teie makseviisi autentida. Palun valige teine makseviis ja proovige uuesti."
5719
5723
  }
5720
- }, yd = {
5724
+ }, bd = {
5721
5725
  card: {
5722
5726
  title: "Maksutapa",
5723
5727
  number: {
@@ -5767,7 +5771,7 @@ const cd = {
5767
5771
  success: "Menestys",
5768
5772
  error: "Emme pysty todentamaan maksutapaasi. Valitse toinen maksutapa ja yritä uudelleen."
5769
5773
  }
5770
- }, bd = {
5774
+ }, Ed = {
5771
5775
  card: {
5772
5776
  title: "Paraan ng pagbabayad",
5773
5777
  number: {
@@ -5817,7 +5821,7 @@ const cd = {
5817
5821
  success: "Tagumpay",
5818
5822
  error: "Hindi namin ma-authenticate ang iyong paraan ng pagbabayad. Mangyaring pumili ng ibang paraan ng pagbabayad at subukang muli."
5819
5823
  }
5820
- }, Ed = {
5824
+ }, _d = {
5821
5825
  card: {
5822
5826
  title: "Moyen de paiement",
5823
5827
  number: {
@@ -5867,7 +5871,7 @@ const cd = {
5867
5871
  success: "Succès",
5868
5872
  error: "Nous ne sommes pas en mesure d'authentifier votre méthode de paiement. Veuillez choisir un autre mode de paiement et réessayer."
5869
5873
  }
5870
- }, _d = {
5874
+ }, Cd = {
5871
5875
  card: {
5872
5876
  title: "Način plaćanja",
5873
5877
  number: {
@@ -5917,7 +5921,7 @@ const cd = {
5917
5921
  success: "Uspjeh",
5918
5922
  error: "Ne možemo provjeriti autentičnost vašeg načina plaćanja. Odaberite drugi način plaćanja i pokušajte ponovno."
5919
5923
  }
5920
- }, Cd = {
5924
+ }, Ad = {
5921
5925
  card: {
5922
5926
  title: "Fizetési mód",
5923
5927
  number: {
@@ -5967,7 +5971,7 @@ const cd = {
5967
5971
  success: "Siker",
5968
5972
  error: "Nem tudjuk hitelesíteni a fizetési módját. Kérjük, válasszon másik fizetési módot, és próbálja meg újra."
5969
5973
  }
5970
- }, Ad = {
5974
+ }, wd = {
5971
5975
  card: {
5972
5976
  title: "Metode pembayaran",
5973
5977
  number: {
@@ -6017,7 +6021,7 @@ const cd = {
6017
6021
  success: "Sukses",
6018
6022
  error: "Kami tidak dapat mengautentikasi metode pembayaran Anda. Silakan pilih metode pembayaran lain dan coba lagi."
6019
6023
  }
6020
- }, wd = {
6024
+ }, Td = {
6021
6025
  card: {
6022
6026
  title: "Modalità di pagamento",
6023
6027
  number: {
@@ -6067,7 +6071,7 @@ const cd = {
6067
6071
  success: "Il successo",
6068
6072
  error: "Non siamo in grado di autenticare il suo metodo di pagamento. Scegliere un altro metodo di pagamento e riprovare."
6069
6073
  }
6070
- }, Td = {
6074
+ }, Id = {
6071
6075
  card: {
6072
6076
  title: "支払い方法",
6073
6077
  number: {
@@ -6117,7 +6121,7 @@ const cd = {
6117
6121
  success: "成功",
6118
6122
  error: "お客様のお支払い方法を認証できません。別のお支払い方法を選択し、再度お試しください。"
6119
6123
  }
6120
- }, Id = {
6124
+ }, Od = {
6121
6125
  card: {
6122
6126
  title: "결제 방식",
6123
6127
  number: {
@@ -6167,7 +6171,7 @@ const cd = {
6167
6171
  success: "성공",
6168
6172
  error: "결제 방법을 인증할 수 없습니다. 다른 결제 방법을 선택하고 다시 시도해 주세요."
6169
6173
  }
6170
- }, Od = {
6174
+ }, Nd = {
6171
6175
  card: {
6172
6176
  title: "Mokėjimo būdas",
6173
6177
  number: {
@@ -6217,7 +6221,7 @@ const cd = {
6217
6221
  success: "Sėkmė",
6218
6222
  error: "Negalime patvirtinti jūsų mokėjimo būdo. Pasirinkite kitą mokėjimo būdą ir bandykite dar kartą."
6219
6223
  }
6220
- }, Nd = {
6224
+ }, xd = {
6221
6225
  card: {
6222
6226
  title: "Maksājumu veids",
6223
6227
  number: {
@@ -6267,7 +6271,7 @@ const cd = {
6267
6271
  success: "Panākumi",
6268
6272
  error: "Mēs nevaram pārbaudīt jūsu maksājuma metodes autentiskumu. Lūdzu, izvēlieties citu maksājumu metodi un mēģiniet vēlreiz."
6269
6273
  }
6270
- }, xd = {
6274
+ }, Ld = {
6271
6275
  card: {
6272
6276
  title: "Kaedah pembayaran",
6273
6277
  number: {
@@ -6317,7 +6321,7 @@ const cd = {
6317
6321
  success: "Kejayaan",
6318
6322
  error: "Kami tidak dapat mengesahkan kaedah pembayaran anda. Sila pilih kaedah pembayaran lain dan cuba lagi."
6319
6323
  }
6320
- }, Ld = {
6324
+ }, Pd = {
6321
6325
  card: {
6322
6326
  title: "Metodu tal-ħlas",
6323
6327
  number: {
@@ -6367,7 +6371,7 @@ const cd = {
6367
6371
  success: "Suċċess",
6368
6372
  error: "Aħna ma nistgħux jawtentikaw il-metodu tal-ħlas tiegħek. Jekk jogħġbok agħżel metodu ta' ħlas differenti u erġa' pprova."
6369
6373
  }
6370
- }, Pd = {
6374
+ }, Rd = {
6371
6375
  card: {
6372
6376
  title: "Betalingsmetode",
6373
6377
  number: {
@@ -6417,7 +6421,7 @@ const cd = {
6417
6421
  success: "Suksess",
6418
6422
  error: "Vi kan ikke godkjenne betalingsmåten din. Vennligst velg en annen betalingsmetode og prøv på nytt."
6419
6423
  }
6420
- }, Rd = {
6424
+ }, Sd = {
6421
6425
  card: {
6422
6426
  title: "Betaalmethode",
6423
6427
  number: {
@@ -6467,7 +6471,7 @@ const cd = {
6467
6471
  success: "Succes",
6468
6472
  error: "We kunnen je betaalmethode niet verifiëren. Kies een andere betaalmethode en probeer het opnieuw."
6469
6473
  }
6470
- }, Sd = {
6474
+ }, kd = {
6471
6475
  card: {
6472
6476
  title: "Metoda płatności",
6473
6477
  number: {
@@ -6517,7 +6521,7 @@ const cd = {
6517
6521
  success: "Sukces",
6518
6522
  error: "Nie możemy uwierzytelnić metody płatności. Wybierz inną metodę płatności i spróbuj ponownie."
6519
6523
  }
6520
- }, kd = {
6524
+ }, Md = {
6521
6525
  card: {
6522
6526
  title: "Forma de pagamento",
6523
6527
  number: {
@@ -6567,7 +6571,7 @@ const cd = {
6567
6571
  success: "Sucesso",
6568
6572
  error: "Não foi possível autenticar o seu método de pagamento. Selecione outro método de pagamento e tente novamente."
6569
6573
  }
6570
- }, Md = {
6574
+ }, Dd = {
6571
6575
  card: {
6572
6576
  title: "Metoda de plată",
6573
6577
  number: {
@@ -6617,7 +6621,7 @@ const cd = {
6617
6621
  success: "Succes",
6618
6622
  error: "Nu putem să vă autentificăm metoda de plată. Vă rugăm să alegeți o altă metodă de plată și să încercați din nou."
6619
6623
  }
6620
- }, Dd = {
6624
+ }, Vd = {
6621
6625
  card: {
6622
6626
  title: "Метод оплаты",
6623
6627
  number: {
@@ -6667,7 +6671,7 @@ const cd = {
6667
6671
  success: "Успех",
6668
6672
  error: "Мы не можем проверить подлинность вашего способа оплаты. Пожалуйста, выберите другой способ оплаты и повторите попытку."
6669
6673
  }
6670
- }, Vd = {
6674
+ }, Fd = {
6671
6675
  card: {
6672
6676
  title: "Spôsob platby",
6673
6677
  number: {
@@ -6717,7 +6721,7 @@ const cd = {
6717
6721
  success: "Úspech",
6718
6722
  error: "Nemôžeme overiť váš spôsob platby. Vyberte si iný spôsob platby a skúste to znova."
6719
6723
  }
6720
- }, Fd = {
6724
+ }, Ud = {
6721
6725
  card: {
6722
6726
  title: "Način plačila",
6723
6727
  number: {
@@ -6767,7 +6771,7 @@ const cd = {
6767
6771
  success: "Uspeh",
6768
6772
  error: "Vašega načina plačila ne moremo preveriti. Izberite drug način plačila in poskusite znova."
6769
6773
  }
6770
- }, Ud = {
6774
+ }, Bd = {
6771
6775
  card: {
6772
6776
  title: "Betalningsmetod",
6773
6777
  number: {
@@ -6817,7 +6821,7 @@ const cd = {
6817
6821
  success: "Framgång",
6818
6822
  error: "Vi kan inte verifiera din betalningsmetod. Vänligen välj en annan betalningsmetod och försök igen."
6819
6823
  }
6820
- }, Bd = {
6824
+ }, zd = {
6821
6825
  card: {
6822
6826
  title: "วิธีการชำระเงิน",
6823
6827
  number: {
@@ -6867,7 +6871,7 @@ const cd = {
6867
6871
  success: "ความสำเร็จ",
6868
6872
  error: "เราไม่สามารถตรวจสอบวิธีการชำระเงินของคุณได้ โปรดเลือกวิธีการชำระเงินอื่นแล้วลองอีกครั้ง"
6869
6873
  }
6870
- }, zd = {
6874
+ }, jd = {
6871
6875
  card: {
6872
6876
  title: "Ödeme yöntemi",
6873
6877
  number: {
@@ -6917,7 +6921,7 @@ const cd = {
6917
6921
  success: "Başarı",
6918
6922
  error: "Ödeme yönteminizi doğrulayamıyoruz. Lütfen farklı bir ödeme yöntemi seçin ve tekrar deneyin."
6919
6923
  }
6920
- }, jd = {
6924
+ }, Kd = {
6921
6925
  card: {
6922
6926
  title: "Phương thức thanh toán",
6923
6927
  number: {
@@ -6967,7 +6971,7 @@ const cd = {
6967
6971
  success: "Thành công",
6968
6972
  error: "Chúng tôi không thể xác thực phương thức thanh toán của bạn. Vui lòng chọn phương thức thanh toán khác và thử lại."
6969
6973
  }
6970
- }, Kd = {
6974
+ }, qd = {
6971
6975
  card: {
6972
6976
  title: "支付方式",
6973
6977
  number: {
@@ -7018,41 +7022,41 @@ const cd = {
7018
7022
  error: "我们无法验证您的付款方式。请选择其他付款方式并重试。"
7019
7023
  }
7020
7024
  }, Jt = {
7021
- ar: cd,
7022
- en: fd,
7023
- bg: ud,
7024
- cs: dd,
7025
- da: pd,
7026
- de: hd,
7027
- el: md,
7028
- es: vd,
7029
- et: gd,
7030
- fi: yd,
7031
- fil: bd,
7032
- fr: Ed,
7033
- hr: _d,
7034
- hu: Cd,
7035
- id: Ad,
7036
- it: wd,
7037
- ja: Td,
7038
- ko: Id,
7039
- lt: Od,
7040
- lv: Nd,
7041
- ms: xd,
7042
- ru: Dd,
7043
- mt: Ld,
7044
- nb: Pd,
7045
- nl: Rd,
7046
- pl: Sd,
7047
- pt: kd,
7048
- ro: Md,
7049
- sk: Vd,
7050
- sl: Fd,
7051
- sv: Ud,
7052
- th: Bd,
7053
- tr: zd,
7054
- vi: jd,
7055
- zh: Kd
7025
+ ar: ud,
7026
+ en: vd,
7027
+ bg: dd,
7028
+ cs: pd,
7029
+ da: hd,
7030
+ de: md,
7031
+ el: fd,
7032
+ es: gd,
7033
+ et: yd,
7034
+ fi: bd,
7035
+ fil: Ed,
7036
+ fr: _d,
7037
+ hr: Cd,
7038
+ hu: Ad,
7039
+ id: wd,
7040
+ it: Td,
7041
+ ja: Id,
7042
+ ko: Od,
7043
+ lt: Nd,
7044
+ lv: xd,
7045
+ ms: Ld,
7046
+ ru: Vd,
7047
+ mt: Pd,
7048
+ nb: Rd,
7049
+ nl: Sd,
7050
+ pl: kd,
7051
+ pt: Md,
7052
+ ro: Dd,
7053
+ sk: Fd,
7054
+ sl: Ud,
7055
+ sv: Bd,
7056
+ th: zd,
7057
+ tr: jd,
7058
+ vi: Kd,
7059
+ zh: qd
7056
7060
  }, en = () => {
7057
7061
  const n = navigator == null ? void 0 : navigator.language.split("-")[0];
7058
7062
  return Jt[n] || Jt.en;
@@ -7112,7 +7116,7 @@ const cd = {
7112
7116
  }
7113
7117
  };
7114
7118
  };
7115
- class qd extends It {
7119
+ class Hd extends Tt {
7116
7120
  constructor() {
7117
7121
  super({
7118
7122
  messages: en(),
@@ -7159,7 +7163,7 @@ class qd extends It {
7159
7163
  * See the License for the specific language governing permissions and
7160
7164
  * limitations under the License.
7161
7165
  */
7162
- function Hd(n, e) {
7166
+ function Wd(n, e) {
7163
7167
  var t = {};
7164
7168
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
7165
7169
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -7167,7 +7171,7 @@ function Hd(n, e) {
7167
7171
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[i]) && (t[r[i]] = n[r[i]]);
7168
7172
  return t;
7169
7173
  }
7170
- function Wd(n, e) {
7174
+ function Gd(n, e) {
7171
7175
  var t = document.querySelector('script[src="'.concat(n, '"]'));
7172
7176
  if (t === null)
7173
7177
  return null;
@@ -7179,38 +7183,38 @@ function Wd(n, e) {
7179
7183
  i.dataset[s] !== r.dataset[s] && (a = !1);
7180
7184
  }), a ? t : null;
7181
7185
  }
7182
- function Gd(n) {
7186
+ function Yd(n) {
7183
7187
  var e = n.url, t = n.attributes, r = n.onSuccess, i = n.onError, a = xa(e, t);
7184
7188
  a.onerror = i, a.onload = r, document.head.insertBefore(a, document.head.firstElementChild);
7185
7189
  }
7186
- function Yd(n) {
7187
- var e = n.sdkBaseUrl, t = n.environment, r = Hd(n, ["sdkBaseUrl", "environment"]), i = e || Zd(t), a = r, s = Object.keys(a).filter(function(c) {
7190
+ function Qd(n) {
7191
+ var e = n.sdkBaseUrl, t = n.environment, r = Wd(n, ["sdkBaseUrl", "environment"]), i = e || Xd(t), a = r, s = Object.keys(a).filter(function(c) {
7188
7192
  return typeof a[c] != "undefined" && a[c] !== null && a[c] !== "";
7189
7193
  }).reduce(function(c, u) {
7190
7194
  var d = a[u].toString();
7191
- return u = Qd(u), u.substring(0, 4) === "data" || u === "crossorigin" ? c.attributes[u] = d : c.queryParams[u] = d, c;
7195
+ return u = $d(u), u.substring(0, 4) === "data" || u === "crossorigin" ? c.attributes[u] = d : c.queryParams[u] = d, c;
7192
7196
  }, {
7193
7197
  queryParams: {},
7194
7198
  attributes: {}
7195
7199
  }), o = s.queryParams, l = s.attributes;
7196
7200
  return o["merchant-id"] && o["merchant-id"].indexOf(",") !== -1 && (l["data-merchant-id"] = o["merchant-id"], o["merchant-id"] = "*"), {
7197
- url: "".concat(i, "?").concat($d(o)),
7201
+ url: "".concat(i, "?").concat(Zd(o)),
7198
7202
  attributes: l
7199
7203
  };
7200
7204
  }
7201
- function Qd(n) {
7205
+ function $d(n) {
7202
7206
  var e = function(t, r) {
7203
7207
  return (r ? "-" : "") + t.toLowerCase();
7204
7208
  };
7205
7209
  return n.replace(/[A-Z]+(?![a-z])|[A-Z]/g, e);
7206
7210
  }
7207
- function $d(n) {
7211
+ function Zd(n) {
7208
7212
  var e = "";
7209
7213
  return Object.keys(n).forEach(function(t) {
7210
7214
  e.length !== 0 && (e += "&"), e += t + "=" + n[t];
7211
7215
  }), e;
7212
7216
  }
7213
- function Zd(n) {
7217
+ function Xd(n) {
7214
7218
  return n === "sandbox" ? "https://www.sandbox.paypal.com/sdk/js" : "https://www.paypal.com/sdk/js";
7215
7219
  }
7216
7220
  function xa(n, e) {
@@ -7220,11 +7224,11 @@ function xa(n, e) {
7220
7224
  t.setAttribute(r, e[r]), r === "data-csp-nonce" && t.setAttribute("nonce", e["data-csp-nonce"]);
7221
7225
  }), t;
7222
7226
  }
7223
- function Xd(n, e) {
7227
+ function Jd(n, e) {
7224
7228
  if (e === void 0 && (e = Promise), La(n, e), typeof document == "undefined")
7225
7229
  return e.resolve(null);
7226
- var t = Yd(n), r = t.url, i = t.attributes, a = i["data-namespace"] || "paypal", s = mi(a);
7227
- return i["data-js-sdk-library"] || (i["data-js-sdk-library"] = "paypal-js"), Wd(r, i) && s ? e.resolve(s) : Jd({
7230
+ var t = Qd(n), r = t.url, i = t.attributes, a = i["data-namespace"] || "paypal", s = mi(a);
7231
+ return i["data-js-sdk-library"] || (i["data-js-sdk-library"] = "paypal-js"), Gd(r, i) && s ? e.resolve(s) : ep({
7228
7232
  url: r,
7229
7233
  attributes: i
7230
7234
  }, e).then(function() {
@@ -7234,7 +7238,7 @@ function Xd(n, e) {
7234
7238
  throw new Error("The window.".concat(a, " global variable is not available."));
7235
7239
  });
7236
7240
  }
7237
- function Jd(n, e) {
7241
+ function ep(n, e) {
7238
7242
  e === void 0 && (e = Promise), La(n, e);
7239
7243
  var t = n.url, r = n.attributes;
7240
7244
  if (typeof t != "string" || t.length === 0)
@@ -7244,7 +7248,7 @@ function Jd(n, e) {
7244
7248
  return new e(function(i, a) {
7245
7249
  if (typeof document == "undefined")
7246
7250
  return i();
7247
- Gd({
7251
+ Yd({
7248
7252
  url: t,
7249
7253
  attributes: r,
7250
7254
  onSuccess: function() {
@@ -7269,13 +7273,13 @@ function La(n, e) {
7269
7273
  if (typeof e != "undefined" && typeof e != "function")
7270
7274
  throw new Error("Expected PromisePonyfill to be a function.");
7271
7275
  }
7272
- const ep = {
7276
+ const tp = {
7273
7277
  layout: "vertical",
7274
7278
  tagline: !1,
7275
7279
  height: 40,
7276
7280
  borderRadius: 12
7277
7281
  };
7278
- class tp {
7282
+ class np {
7279
7283
  constructor() {
7280
7284
  b(this, "paypal", null);
7281
7285
  }
@@ -7283,7 +7287,7 @@ class tp {
7283
7287
  init(e) {
7284
7288
  return j(this, null, function* () {
7285
7289
  try {
7286
- this.paypal = yield Xd(e);
7290
+ this.paypal = yield Jd(e);
7287
7291
  } catch (t) {
7288
7292
  console.error("failed to load the PayPal JS SDK script", t);
7289
7293
  }
@@ -7295,7 +7299,7 @@ class tp {
7295
7299
  var r, i;
7296
7300
  this.paypal && (yield (i = (r = this.paypal).Buttons) == null ? void 0 : i.call(r, $({
7297
7301
  fundingSource: "paypal",
7298
- style: ep
7302
+ style: tp
7299
7303
  }, t)).render(e));
7300
7304
  });
7301
7305
  }
@@ -7304,7 +7308,7 @@ function Te(n) {
7304
7308
  throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
7305
7309
  }
7306
7310
  var Dt = { exports: {} }, fi;
7307
- function np() {
7311
+ function rp() {
7308
7312
  return fi || (fi = 1, function(n, e) {
7309
7313
  (function(t) {
7310
7314
  n.exports = t();
@@ -8978,10 +8982,10 @@ function np() {
8978
8982
  });
8979
8983
  }(Dt)), Dt.exports;
8980
8984
  }
8981
- var rp = np();
8982
- const ip = /* @__PURE__ */ wa(rp);
8985
+ var ip = rp();
8986
+ const ap = /* @__PURE__ */ wa(ip);
8983
8987
  var Vt = { exports: {} }, vi;
8984
- function ap() {
8988
+ function sp() {
8985
8989
  return vi || (vi = 1, function(n, e) {
8986
8990
  (function(t) {
8987
8991
  n.exports = t();
@@ -11874,9 +11878,9 @@ function ap() {
11874
11878
  });
11875
11879
  }(Vt)), Vt.exports;
11876
11880
  }
11877
- var sp = ap();
11878
- const op = /* @__PURE__ */ wa(sp);
11879
- class lp {
11881
+ var op = sp();
11882
+ const lp = /* @__PURE__ */ wa(op);
11883
+ class cp {
11880
11884
  constructor() {
11881
11885
  b(this, "client", null);
11882
11886
  b(this, "venmoInstance", null);
@@ -11885,7 +11889,7 @@ class lp {
11885
11889
  init(e) {
11886
11890
  return j(this, null, function* () {
11887
11891
  try {
11888
- this.client = yield ip.create({ authorization: e.authorization });
11892
+ this.client = yield ap.create({ authorization: e.authorization });
11889
11893
  } catch (t) {
11890
11894
  throw console.error("Failed to initialize Braintree client:", t), t;
11891
11895
  }
@@ -11897,14 +11901,13 @@ class lp {
11897
11901
  if (!this.client)
11898
11902
  throw new Error("Braintree client must be initialized before creating Venmo instance");
11899
11903
  try {
11900
- const t = $({
11904
+ return this.venmoInstance = yield lp.create($({
11901
11905
  client: this.client,
11902
11906
  allowDesktop: !0,
11907
+ mobileWebFallBack: !0,
11903
11908
  allowDesktopWebLogin: !0,
11904
- paymentMethodUsage: "multi_use",
11905
- mobileWebFallBack: !0
11906
- }, e);
11907
- return this.venmoInstance = yield op.create(t), this.venmoInstance;
11909
+ paymentMethodUsage: "multi_use"
11910
+ }, e)), this.venmoInstance;
11908
11911
  } catch (t) {
11909
11912
  throw console.error("Failed to create Venmo instance:", t), t;
11910
11913
  }
@@ -11926,33 +11929,25 @@ class lp {
11926
11929
  if (!this.venmoInstance)
11927
11930
  throw new Error("Venmo instance not initialized");
11928
11931
  return new Promise((e, t) => {
11929
- this.venmoInstance.tokenize({}, (r, i) => {
11932
+ this.venmoInstance.tokenize(void 0, (r, i) => {
11930
11933
  r ? t(r) : e(i);
11931
11934
  });
11932
11935
  });
11933
11936
  });
11934
11937
  }
11935
- // get client instance
11936
- getClient() {
11937
- return this.client;
11938
- }
11939
- // get venmo instance
11940
- getVenmoInstance() {
11941
- return this.venmoInstance;
11942
- }
11943
11938
  }
11944
- class cp {
11939
+ class up {
11945
11940
  constructor() {
11946
11941
  b(this, "ev", new Ua());
11947
- b(this, "paypal", new tp());
11948
- b(this, "braintree", new lp());
11942
+ b(this, "paypal", new np());
11943
+ b(this, "braintree", new cp());
11949
11944
  b(this, "state", {
11950
- translate: new qd(),
11951
- checkout: new ad(),
11952
- transaction: new ld(),
11953
- styles: new od()
11945
+ translate: new Hd(),
11946
+ checkout: new sd(),
11947
+ transaction: new cd(),
11948
+ styles: new ld()
11954
11949
  });
11955
- b(this, "checkout", new rd({
11950
+ b(this, "checkout", new id({
11956
11951
  state: this.state,
11957
11952
  // ToDo: add braintree
11958
11953
  service: { ev: this.ev, paypal: this.paypal, braintree: this.braintree }
@@ -11962,10 +11957,10 @@ class cp {
11962
11957
  Object.values(this.state).forEach((e) => e.clearState());
11963
11958
  }
11964
11959
  }
11965
- class hp {
11960
+ class mp {
11966
11961
  constructor(e) {
11967
11962
  b(this, "parent");
11968
- b(this, "core", new cp());
11963
+ b(this, "core", new up());
11969
11964
  this.parent = e;
11970
11965
  }
11971
11966
  mount(e) {
@@ -11981,7 +11976,7 @@ class hp {
11981
11976
  }
11982
11977
  }
11983
11978
  export {
11984
- cp as Core,
11985
- hp as PayNextCheckout
11979
+ up as Core,
11980
+ mp as PayNextCheckout
11986
11981
  };
11987
11982
  //# sourceMappingURL=index.es.js.map