@paynext/sdk 0.0.70 → 0.0.71

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
@@ -20,7 +20,7 @@ var ke = (t, e) => {
20
20
  return a;
21
21
  };
22
22
  var A = (t, e, a) => Na(t, typeof e != "symbol" ? e + "" : e, a);
23
- var H = (t, e, a) => new Promise((r, i) => {
23
+ var Y = (t, e, a) => new Promise((r, i) => {
24
24
  var n = (l) => {
25
25
  try {
26
26
  o(a.next(l));
@@ -37,14 +37,14 @@ var H = (t, e, a) => new Promise((r, i) => {
37
37
  o((a = a.apply(t, e)).next());
38
38
  });
39
39
  import ei from "react";
40
- class Zu {
40
+ class Xu {
41
41
  constructor(e) {
42
42
  A(this, "parent");
43
43
  A(this, "core");
44
44
  typeof window != "undefined" && (this.parent = e);
45
45
  }
46
46
  mount(e) {
47
- return H(this, null, function* () {
47
+ return Y(this, null, function* () {
48
48
  if (!this.parent)
49
49
  return;
50
50
  if (!this.core) {
@@ -57,14 +57,14 @@ class Zu {
57
57
  });
58
58
  }
59
59
  unmount() {
60
- return H(this, null, function* () {
60
+ return Y(this, null, function* () {
61
61
  !this.parent || !this.core || (this.parent.innerHTML = "", this.core.clearState());
62
62
  });
63
63
  }
64
64
  }
65
65
  let ma = null;
66
66
  function ai() {
67
- return H(this, null, function* () {
67
+ return Y(this, null, function* () {
68
68
  return ma || (ma = new Promise((t, e) => {
69
69
  const a = document.createElement("script");
70
70
  if (a.src = "https://js.evervault.com/v2", a.onload = () => t(), a.onerror = () => {
@@ -78,7 +78,7 @@ function ai() {
78
78
  });
79
79
  }
80
80
  function Mr() {
81
- return H(this, null, function* () {
81
+ return Y(this, null, function* () {
82
82
  if (window.Evervault)
83
83
  return window.Evervault;
84
84
  try {
@@ -89,7 +89,7 @@ function Mr() {
89
89
  });
90
90
  }
91
91
  function ti(t, e, a) {
92
- return H(this, null, function* () {
92
+ return Y(this, null, function* () {
93
93
  const r = yield Mr();
94
94
  return new r(t, e, a);
95
95
  });
@@ -105,10 +105,9 @@ let ri = class {
105
105
  this.ev = e;
106
106
  }
107
107
  init(d, c) {
108
- return H(this, arguments, function* ({ transaction: e, locale: a, supportedCardTypes: r, onReady: i, onError: n, onSuccess: s, onCancel: o }, l) {
108
+ return Y(this, arguments, function* ({ transaction: e, locale: a, supportedCardTypes: r, onReady: i, onError: n, onSuccess: s, onCancel: o }, l) {
109
109
  const u = this.ev.transactions.create(e);
110
110
  this.apple = this.ev.ui.applePay(u, ee(K({
111
- type: "pay",
112
111
  locale: a,
113
112
  borderRadius: 12,
114
113
  size: {
@@ -119,7 +118,7 @@ let ri = class {
119
118
  allowedCardNetworks: r,
120
119
  requestBillingAddress: !0,
121
120
  requestPayerDetails: ["name", "email", "phone"],
122
- process: (y, f) => H(this, [y, f], function* (p, { fail: m }) {
121
+ process: (y, f) => Y(this, [y, f], function* (p, { fail: m }) {
123
122
  try {
124
123
  s == null || s(p);
125
124
  } catch (g) {
@@ -134,7 +133,7 @@ let ri = class {
134
133
  });
135
134
  }
136
135
  render(e) {
137
- return H(this, null, function* () {
136
+ return Y(this, null, function* () {
138
137
  var a;
139
138
  !this.apple || !this.isAvailable || (e.innerHTML = "", yield this.apple.mount(e), (a = this.onReady) == null || a.call(this));
140
139
  });
@@ -145,10 +144,9 @@ let ri = class {
145
144
  this.ev = e;
146
145
  }
147
146
  init(l, d) {
148
- return H(this, arguments, function* ({ transaction: e, locale: a, onReady: r, onError: i, onSuccess: n, onCancel: s }, o) {
147
+ return Y(this, arguments, function* ({ transaction: e, locale: a, onReady: r, onError: i, onSuccess: n, onCancel: s }, o) {
149
148
  const c = this.ev.transactions.create(e);
150
149
  this.google = this.ev.ui.googlePay(c, ee(K({
151
- type: "pay",
152
150
  locale: a,
153
151
  size: {
154
152
  width: "100%",
@@ -159,7 +157,7 @@ let ri = class {
159
157
  phoneNumber: !0
160
158
  }
161
159
  }, o == null ? void 0 : o.styles), {
162
- process: (p, m) => H(this, [p, m], function* (u, { fail: h }) {
160
+ process: (p, m) => Y(this, [p, m], function* (u, { fail: h }) {
163
161
  try {
164
162
  n == null || n(u);
165
163
  } catch (y) {
@@ -172,7 +170,7 @@ let ri = class {
172
170
  });
173
171
  }
174
172
  render(e) {
175
- return H(this, null, function* () {
173
+ return Y(this, null, function* () {
176
174
  this.google && (e.innerHTML = "", this.google.mount(e));
177
175
  });
178
176
  }
@@ -201,12 +199,12 @@ class ii {
201
199
  this.ev = e;
202
200
  }
203
201
  init(n) {
204
- return H(this, arguments, function* ({ threeDsId: e, onReady: a, onSuccess: r, onError: i }) {
202
+ return Y(this, arguments, function* ({ threeDsId: e, onReady: a, onSuccess: r, onError: i }) {
205
203
  this.threeDs = this.ev.ui.threeDSecure(e), this.threeDs.on("ready", () => a == null ? void 0 : a()), this.threeDs.on("success", () => r == null ? void 0 : r()), this.threeDs.on("failure", () => i == null ? void 0 : i()), this.threeDs.on("error", () => i == null ? void 0 : i());
206
204
  });
207
205
  }
208
206
  render(e) {
209
- return H(this, null, function* () {
207
+ return Y(this, null, function* () {
210
208
  this.threeDs && this.threeDs.mount(e);
211
209
  });
212
210
  }
@@ -229,27 +227,27 @@ class oi {
229
227
  }
230
228
  // init ev
231
229
  initEv(e) {
232
- return H(this, null, function* () {
230
+ return Y(this, null, function* () {
233
231
  this.isShouldLoad(e) && (this.isReady = !1, this.ev = yield ti(e.teamId, e.appId), this.apple = new ri(this.ev), this.google = new ni(this.ev), this.events.ready.emit(), this.isReady = !0);
234
232
  });
235
233
  }
236
234
  // init three ds
237
235
  initThreeDs(e) {
238
- return H(this, null, function* () {
236
+ return Y(this, null, function* () {
239
237
  if (!this.ev) throw new Error("Evervault should be init before using Three DS Secure");
240
238
  this.threeDs = new ii(this.ev), yield this.threeDs.init(e), yield this.threeDs.render();
241
239
  });
242
240
  }
243
241
  // init apple
244
242
  initApple(e, a) {
245
- return H(this, null, function* () {
243
+ return Y(this, null, function* () {
246
244
  if (!this.apple) throw new Error("Evervault should be init before using Apple Pay");
247
245
  yield this.apple.init(e, a);
248
246
  });
249
247
  }
250
248
  // init google
251
249
  initGoogle(e, a) {
252
- return H(this, null, function* () {
250
+ return Y(this, null, function* () {
253
251
  if (!this.google) throw new Error("Evervault should be init before using Google Pay");
254
252
  yield this.google.init(e, a);
255
253
  });
@@ -265,14 +263,14 @@ class oi {
265
263
  }
266
264
  // render apple
267
265
  renderApple(e) {
268
- return H(this, null, function* () {
266
+ return Y(this, null, function* () {
269
267
  var a;
270
268
  return yield (a = this.apple) == null ? void 0 : a.render(e);
271
269
  });
272
270
  }
273
271
  // render google
274
272
  renderGoogle(e) {
275
- return H(this, null, function* () {
273
+ return Y(this, null, function* () {
276
274
  var a;
277
275
  return yield (a = this.google) == null ? void 0 : a.render(e);
278
276
  });
@@ -405,73 +403,73 @@ function vi(t, n = {}, r, i) {
405
403
  }
406
404
  let [g, E, N = {}] = f;
407
405
  N.at !== void 0 && (p = Ut(p, N.at, h, u));
408
- let _ = 0;
409
- const I = (O, w, x, U = 0, G = 0) => {
410
- const Y = gi(O), S = w, { delay: j = 0, times: F = Kr(Y), type: B = "keyframes", repeat: J, repeatType: z, repeatDelay: W = 0 } = S, q = ke(S, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
411
- let { ease: b = e.ease || "easeOut", duration: v } = w;
412
- const D = typeof j == "function" ? j(U, G) : j, M = Y.length, P = ot(B) ? B : i == null ? void 0 : i[B];
406
+ let R = 0;
407
+ const I = (w, _, x, V = 0, H = 0) => {
408
+ const G = gi(w), S = _, { delay: j = 0, times: B = Kr(G), type: U = "keyframes", repeat: J, repeatType: z, repeatDelay: W = 0 } = S, q = ke(S, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
409
+ let { ease: b = e.ease || "easeOut", duration: v } = _;
410
+ const D = typeof j == "function" ? j(V, H) : j, M = G.length, P = ot(U) ? U : i == null ? void 0 : i[U];
413
411
  if (M <= 2 && P) {
414
412
  let C = 100;
415
- if (M === 2 && bi(Y)) {
416
- const re = Y[1] - Y[0];
413
+ if (M === 2 && bi(G)) {
414
+ const re = G[1] - G[0];
417
415
  C = Math.abs(re);
418
416
  }
419
- const V = K({}, q);
420
- v !== void 0 && (V.duration = /* @__PURE__ */ be(v));
421
- const $ = qr(V, C, P);
417
+ const F = K({}, q);
418
+ v !== void 0 && (F.duration = /* @__PURE__ */ be(v));
419
+ const $ = qr(F, C, P);
422
420
  b = $.ease, v = $.duration;
423
421
  }
424
422
  v != null || (v = o);
425
423
  const T = p + D;
426
- F.length === 1 && F[0] === 0 && (F[1] = 1);
427
- const k = F.length - Y.length;
428
- if (k > 0 && Ur(F, k), Y.length === 1 && Y.unshift(null), J) {
424
+ B.length === 1 && B[0] === 0 && (B[1] = 1);
425
+ const k = B.length - G.length;
426
+ if (k > 0 && Ur(B, k), G.length === 1 && G.unshift(null), J) {
429
427
  Te(J < fi, "Repeat count too high, must be less than 20"), v = li(v, J);
430
- const C = [...Y], V = [...F];
428
+ const C = [...G], F = [...B];
431
429
  b = Array.isArray(b) ? [...b] : [b];
432
430
  const $ = [...b];
433
431
  for (let re = 0; re < J; re++) {
434
- Y.push(...C);
432
+ G.push(...C);
435
433
  for (let L = 0; L < C.length; L++)
436
- F.push(V[L] + (re + 1)), b.push(L === 0 ? "linear" : Fr($, L - 1));
434
+ B.push(F[L] + (re + 1)), b.push(L === 0 ? "linear" : Fr($, L - 1));
437
435
  }
438
- hi(F, J);
436
+ hi(B, J);
439
437
  }
440
- const R = T + v;
441
- pi(x, Y, b, F, T, R), _ = Math.max(D + v, _), m = Math.max(R, m);
438
+ const O = T + v;
439
+ pi(x, G, b, B, T, O), R = Math.max(D + v, R), m = Math.max(O, m);
442
440
  };
443
441
  if (he(g)) {
444
- const O = Kt(g, d);
445
- I(E, N, qt("default", O));
442
+ const w = Kt(g, d);
443
+ I(E, N, qt("default", w));
446
444
  } else {
447
- const O = jr(g, E, r, c), w = O.length;
448
- for (let x = 0; x < w; x++) {
445
+ const w = jr(g, E, r, c), _ = w.length;
446
+ for (let x = 0; x < _; x++) {
449
447
  E = E, N = N;
450
- const U = O[x], G = Kt(U, d);
451
- for (const Y in E)
452
- I(E[Y], Pi(N, Y), qt(Y, G), x, w);
448
+ const V = w[x], H = Kt(V, d);
449
+ for (const G in E)
450
+ I(E[G], Pi(N, G), qt(G, H), x, _);
453
451
  }
454
452
  }
455
- h = p, p += _;
453
+ h = p, p += R;
456
454
  }
457
455
  return d.forEach((y, f) => {
458
456
  for (const g in y) {
459
457
  const E = y[g];
460
458
  E.sort(mi);
461
- const N = [], _ = [], I = [];
462
- for (let w = 0; w < E.length; w++) {
463
- const { at: x, value: U, easing: G } = E[w];
464
- N.push(U), _.push(/* @__PURE__ */ it(0, m, x)), I.push(G || "easeOut");
459
+ const N = [], R = [], I = [];
460
+ for (let _ = 0; _ < E.length; _++) {
461
+ const { at: x, value: V, easing: H } = E[_];
462
+ N.push(V), R.push(/* @__PURE__ */ it(0, m, x)), I.push(H || "easeOut");
465
463
  }
466
- _[0] !== 0 && (_.unshift(0), N.unshift(N[0]), I.unshift(yi)), _[_.length - 1] !== 1 && (_.push(1), N.push(null)), l.has(f) || l.set(f, {
464
+ R[0] !== 0 && (R.unshift(0), N.unshift(N[0]), I.unshift(yi)), R[R.length - 1] !== 1 && (R.push(1), N.push(null)), l.has(f) || l.set(f, {
467
465
  keyframes: {},
468
466
  transition: {}
469
467
  });
470
- const O = l.get(f);
471
- O.keyframes[g] = N, O.transition[g] = K(ee(K({}, e), {
468
+ const w = l.get(f);
469
+ w.keyframes[g] = N, w.transition[g] = K(ee(K({}, e), {
472
470
  duration: m,
473
471
  ease: I,
474
- times: _
472
+ times: R
475
473
  }), a);
476
474
  }
477
475
  }), l;
@@ -573,18 +571,18 @@ function Ii(t, e) {
573
571
  delta: 0,
574
572
  timestamp: 0,
575
573
  isProcessing: !1
576
- }, n = () => a = !0, s = ya.reduce((N, _) => (N[_] = Ei(n), N), {}), { setup: o, read: l, resolveKeyframes: d, preUpdate: c, update: u, preRender: h, render: p, postRender: m } = s, y = () => {
574
+ }, n = () => a = !0, s = ya.reduce((N, R) => (N[R] = Ei(n), N), {}), { setup: o, read: l, resolveKeyframes: d, preUpdate: c, update: u, preRender: h, render: p, postRender: m } = s, y = () => {
577
575
  const N = Ie.useManualTiming ? i.timestamp : performance.now();
578
576
  a = !1, Ie.useManualTiming || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(N - i.timestamp, Ti), 1)), i.timestamp = N, i.isProcessing = !0, o.process(i), l.process(i), d.process(i), c.process(i), u.process(i), h.process(i), p.process(i), m.process(i), i.isProcessing = !1, a && e && (r = !1, t(y));
579
577
  }, f = () => {
580
578
  a = !0, r = !0, i.isProcessing || t(y);
581
579
  };
582
- return { schedule: ya.reduce((N, _) => {
583
- const I = s[_];
584
- return N[_] = (O, w = !1, x = !1) => (a || f(), I.schedule(O, w, x)), N;
580
+ return { schedule: ya.reduce((N, R) => {
581
+ const I = s[R];
582
+ return N[R] = (w, _ = !1, x = !1) => (a || f(), I.schedule(w, _, x)), N;
585
583
  }, {}), cancel: (N) => {
586
- for (let _ = 0; _ < ya.length; _++)
587
- s[ya[_]].cancel(N);
584
+ for (let R = 0; R < ya.length; R++)
585
+ s[ya[R]].cancel(N);
588
586
  }, state: i, steps: s };
589
587
  }
590
588
  const Be = /* @__NO_SIDE_EFFECTS__ */ (t) => t, { schedule: Ne, cancel: Fa, state: Aa } = /* @__PURE__ */ Ii(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : Be, !0);
@@ -1234,41 +1232,41 @@ function sa(t = ie.visualDuration, e = ie.bounce) {
1234
1232
  let N;
1235
1233
  if (y < 1) {
1236
1234
  const I = Ka(g, y);
1237
- N = (O) => {
1238
- const w = Math.exp(-y * g * O);
1239
- return s - w * ((m + y * g * f) / I * Math.sin(I * O) + f * Math.cos(I * O));
1235
+ N = (w) => {
1236
+ const _ = Math.exp(-y * g * w);
1237
+ return s - _ * ((m + y * g * f) / I * Math.sin(I * w) + f * Math.cos(I * w));
1240
1238
  };
1241
1239
  } else if (y === 1)
1242
1240
  N = (I) => s - Math.exp(-g * I) * (f + (m + g * f) * I);
1243
1241
  else {
1244
1242
  const I = g * Math.sqrt(y * y - 1);
1245
- N = (O) => {
1246
- const w = Math.exp(-y * g * O), x = Math.min(I * O, 300);
1247
- return s - w * ((m + y * g * f) * Math.sinh(x) + I * f * Math.cosh(x)) / I;
1243
+ N = (w) => {
1244
+ const _ = Math.exp(-y * g * w), x = Math.min(I * w, 300);
1245
+ return s - _ * ((m + y * g * f) * Math.sinh(x) + I * f * Math.cosh(x)) / I;
1248
1246
  };
1249
1247
  }
1250
- const _ = {
1248
+ const R = {
1251
1249
  calculatedDuration: p && u || null,
1252
1250
  next: (I) => {
1253
- const O = N(I);
1251
+ const w = N(I);
1254
1252
  if (p)
1255
1253
  o.done = I >= u;
1256
1254
  else {
1257
- let w = I === 0 ? m : 0;
1258
- y < 1 && (w = I === 0 ? /* @__PURE__ */ be(m) : sn(N, I, O));
1259
- const x = Math.abs(w) <= r, U = Math.abs(s - O) <= i;
1260
- o.done = x && U;
1255
+ let _ = I === 0 ? m : 0;
1256
+ y < 1 && (_ = I === 0 ? /* @__PURE__ */ be(m) : sn(N, I, w));
1257
+ const x = Math.abs(_) <= r, V = Math.abs(s - w) <= i;
1258
+ o.done = x && V;
1261
1259
  }
1262
- return o.value = o.done ? s : O, o;
1260
+ return o.value = o.done ? s : w, o;
1263
1261
  },
1264
1262
  toString: () => {
1265
- const I = Math.min(st(_), ba), O = on((w) => _.next(I * w).value, I, 30);
1266
- return I + "ms " + O;
1263
+ const I = Math.min(st(R), ba), w = on((_) => R.next(I * _).value, I, 30);
1264
+ return I + "ms " + w;
1267
1265
  },
1268
1266
  toTransition: () => {
1269
1267
  }
1270
1268
  };
1271
- return _;
1269
+ return R;
1272
1270
  }
1273
1271
  sa.applyToOptions = (t) => {
1274
1272
  const e = qr(t, 100, sa);
@@ -1282,13 +1280,13 @@ function qa({ keyframes: t, velocity: e = 0, power: a = 0.8, timeConstant: r = 3
1282
1280
  let y = a * e;
1283
1281
  const f = u + y, g = s === void 0 ? f : s(f);
1284
1282
  g !== f && (y = g - u);
1285
- const E = (x) => -y * Math.exp(-x / r), N = (x) => g + E(x), _ = (x) => {
1286
- const U = E(x), G = N(x);
1287
- h.done = Math.abs(U) <= d, h.value = h.done ? g : G;
1283
+ const E = (x) => -y * Math.exp(-x / r), N = (x) => g + E(x), R = (x) => {
1284
+ const V = E(x), H = N(x);
1285
+ h.done = Math.abs(V) <= d, h.value = h.done ? g : H;
1288
1286
  };
1289
- let I, O;
1290
- const w = (x) => {
1291
- p(h.value) && (I = x, O = sa({
1287
+ let I, w;
1288
+ const _ = (x) => {
1289
+ p(h.value) && (I = x, w = sa({
1292
1290
  keyframes: [h.value, m(h.value)],
1293
1291
  velocity: sn(N, x, h.value),
1294
1292
  // TODO: This should be passing * 1000
@@ -1298,11 +1296,11 @@ function qa({ keyframes: t, velocity: e = 0, power: a = 0.8, timeConstant: r = 3
1298
1296
  restSpeed: c
1299
1297
  }));
1300
1298
  };
1301
- return w(0), {
1299
+ return _(0), {
1302
1300
  calculatedDuration: null,
1303
1301
  next: (x) => {
1304
- let U = !1;
1305
- return !O && I === void 0 && (U = !0, _(x), w(x)), I !== void 0 && x >= I ? O.next(x - I) : (!U && _(x), h);
1302
+ let V = !1;
1303
+ return !w && I === void 0 && (V = !0, R(x), _(x)), I !== void 0 && x >= I ? w.next(x - I) : (!V && R(x), h);
1306
1304
  }
1307
1305
  };
1308
1306
  }
@@ -1471,18 +1469,18 @@ class gt extends vt {
1471
1469
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - i / this.speed, this.startTime)), a ? this.currentTime = e : this.updateTime(e);
1472
1470
  const g = this.currentTime - d * (this.playbackSpeed >= 0 ? 1 : -1), E = this.playbackSpeed >= 0 ? g < 0 : g > i;
1473
1471
  this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
1474
- let N = this.currentTime, _ = r;
1472
+ let N = this.currentTime, R = r;
1475
1473
  if (u) {
1476
1474
  const x = Math.min(this.currentTime, i) / o;
1477
- let U = Math.floor(x), G = x % 1;
1478
- !G && x >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, u + 1), !!(U % 2) && (h === "reverse" ? (G = 1 - G, p && (G -= p / o)) : h === "mirror" && (_ = s)), N = ze(0, 1, G) * o;
1475
+ let V = Math.floor(x), H = x % 1;
1476
+ !H && x >= 1 && (H = 1), H === 1 && V--, V = Math.min(V, u + 1), !!(V % 2) && (h === "reverse" ? (H = 1 - H, p && (H -= p / o)) : h === "mirror" && (R = s)), N = ze(0, 1, H) * o;
1479
1477
  }
1480
- const I = E ? { done: !1, value: c[0] } : _.next(N);
1478
+ const I = E ? { done: !1, value: c[0] } : R.next(N);
1481
1479
  n && (I.value = n(I.value));
1482
- let { done: O } = I;
1483
- !E && l !== null && (O = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
1484
- const w = this.holdTime === null && (this.state === "finished" || this.state === "running" && O);
1485
- return w && m !== qa && (I.value = ft(c, this.options, f, this.speed)), y && y(I.value), w && this.finish(), I;
1480
+ let { done: w } = I;
1481
+ !E && l !== null && (w = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
1482
+ const _ = this.holdTime === null && (this.state === "finished" || this.state === "running" && w);
1483
+ return _ && m !== qa && (I.value = ft(c, this.options, f, this.speed)), y && y(I.value), _ && this.finish(), I;
1486
1484
  }
1487
1485
  /**
1488
1486
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -2088,8 +2086,8 @@ function ms(t, e, { delay: a = 0, transitionOverride: r, type: i } = {}) {
2088
2086
  if (window.MotionHandoffAnimation) {
2089
2087
  const N = Mi(t);
2090
2088
  if (N) {
2091
- const _ = window.MotionHandoffAnimation(N, h, Ne);
2092
- _ !== null && (y.startTime = _, g = !0);
2089
+ const R = window.MotionHandoffAnimation(N, h, Ne);
2090
+ R !== null && (y.startTime = R, g = !0);
2093
2091
  }
2094
2092
  }
2095
2093
  xi(t, h), p.start(En(h, p, m, t.shouldReduceMotion && Tn.has(h) ? { type: !1 } : y, t, g));
@@ -2996,7 +2994,7 @@ function hl(t) {
2996
2994
  }
2997
2995
  return e;
2998
2996
  }
2999
- const le = hl(), ml = "_spinner_1waxg_1", yl = "_spinnerContainer_1waxg_5", fl = "_success_1waxg_9", vl = "_successContainer_1waxg_13", gl = "_container_1waxg_17", Pl = "_card_1waxg_26", kl = "_warning_1waxg_35", bl = "_svg_1waxg_43", Al = "_srOnly_1waxg_48", X = {
2997
+ const le = hl(), ml = "_spinner_k40uq_1", yl = "_spinnerContainer_k40uq_5", fl = "_success_k40uq_9", vl = "_successContainer_k40uq_13", gl = "_container_k40uq_17", Pl = "_card_k40uq_26", kl = "_warning_k40uq_35", bl = "_svg_k40uq_43", Al = "_srOnly_k40uq_48", Cl = "_backButton_k40uq_52", X = {
3000
2998
  spinner: ml,
3001
2999
  spinnerContainer: yl,
3002
3000
  success: fl,
@@ -3005,7 +3003,8 @@ const le = hl(), ml = "_spinner_1waxg_1", yl = "_spinnerContainer_1waxg_5", fl =
3005
3003
  card: Pl,
3006
3004
  warning: kl,
3007
3005
  svg: bl,
3008
- srOnly: Al
3006
+ srOnly: Al,
3007
+ backButton: Cl
3009
3008
  };
3010
3009
  class qn {
3011
3010
  constructor() {
@@ -3029,10 +3028,10 @@ class qn {
3029
3028
  return this.spinner;
3030
3029
  }
3031
3030
  }
3032
- const Cl = "_loader_nwq3e_1", hr = {
3033
- loader: Cl
3031
+ const El = "_loader_nwq3e_1", hr = {
3032
+ loader: El
3034
3033
  };
3035
- class El {
3034
+ class Tl {
3036
3035
  constructor() {
3037
3036
  A(this, "loader");
3038
3037
  this.loader = document.createElement("div"), this.loader.classList.add(hr.loader), this.loader.appendChild(new qn().render());
@@ -3044,23 +3043,23 @@ class El {
3044
3043
  return this.loader;
3045
3044
  }
3046
3045
  }
3047
- const Tl = "_checkout_5sq3n_1", Il = "_hidden_5sq3n_7", Nl = "_formInitial_5sq3n_11", _l = "_btnsInitial_5sq3n_16", ye = {
3048
- checkout: Tl,
3049
- hidden: Il,
3050
- formInitial: Nl,
3051
- btnsInitial: _l
3052
- }, Rl = "_buttons_1i8cu_1", Ol = "_hidden_1i8cu_5", Da = {
3053
- buttons: Rl,
3054
- hidden: Ol
3055
- }, wl = "_applePay_1ce61_1", Dl = "_hidden_1ce61_26", La = {
3056
- applePay: wl,
3057
- hidden: Dl
3046
+ const Il = "_checkout_5sq3n_1", Nl = "_hidden_5sq3n_7", _l = "_formInitial_5sq3n_11", Rl = "_btnsInitial_5sq3n_16", ye = {
3047
+ checkout: Il,
3048
+ hidden: Nl,
3049
+ formInitial: _l,
3050
+ btnsInitial: Rl
3051
+ }, Ol = "_buttons_1i8cu_1", wl = "_hidden_1i8cu_5", Da = {
3052
+ buttons: Ol,
3053
+ hidden: wl
3054
+ }, Dl = "_applePay_1ce61_1", Ll = "_hidden_1ce61_26", La = {
3055
+ applePay: Dl,
3056
+ hidden: Ll
3058
3057
  };
3059
3058
  function Ct(t) {
3060
3059
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3061
3060
  }
3062
3061
  var xa, mr;
3063
- function Ll() {
3062
+ function xl() {
3064
3063
  if (mr) return xa;
3065
3064
  mr = 1;
3066
3065
  var t = {
@@ -3267,7 +3266,7 @@ function Hn() {
3267
3266
  return Ge.clone = t, Ge;
3268
3267
  }
3269
3268
  var We = {}, fr;
3270
- function xl() {
3269
+ function zl() {
3271
3270
  if (fr) return We;
3272
3271
  fr = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.matches = void 0;
3273
3272
  function t(r, i, n) {
@@ -3283,10 +3282,10 @@ function xl() {
3283
3282
  return We.matches = a, We;
3284
3283
  }
3285
3284
  var vr;
3286
- function zl() {
3285
+ function Sl() {
3287
3286
  if (vr) return Ye;
3288
3287
  vr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.addMatchingCardsToResults = void 0;
3289
- var t = Hn(), e = xl();
3288
+ var t = Hn(), e = zl();
3290
3289
  function a(r, i, n) {
3291
3290
  var s, o;
3292
3291
  for (s = 0; s < i.patterns.length; s++) {
@@ -3301,7 +3300,7 @@ function zl() {
3301
3300
  return Ye.addMatchingCardsToResults = a, Ye;
3302
3301
  }
3303
3302
  var $e = {}, gr;
3304
- function Sl() {
3303
+ function Ml() {
3305
3304
  if (gr) return $e;
3306
3305
  gr = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.isValidInputType = void 0;
3307
3306
  function t(e) {
@@ -3310,7 +3309,7 @@ function Sl() {
3310
3309
  return $e.isValidInputType = t, $e;
3311
3310
  }
3312
3311
  var Qe = {}, Pr;
3313
- function Ml() {
3312
+ function jl() {
3314
3313
  if (Pr) return Qe;
3315
3314
  Pr = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.findBestMatch = void 0;
3316
3315
  function t(a) {
@@ -3327,7 +3326,7 @@ function Ml() {
3327
3326
  return Qe.findBestMatch = e, Qe;
3328
3327
  }
3329
3328
  var Ze, kr;
3330
- function jl() {
3329
+ function Vl() {
3331
3330
  if (kr) return Ze;
3332
3331
  kr = 1;
3333
3332
  var t = Ze && Ze.__assign || function() {
@@ -3338,7 +3337,7 @@ function jl() {
3338
3337
  }
3339
3338
  return m;
3340
3339
  }, t.apply(this, arguments);
3341
- }, e = Ll(), a = zl(), r = Sl(), i = Ml(), n = Hn(), s = {}, o = {
3340
+ }, e = xl(), a = Sl(), r = Ml(), i = jl(), n = Hn(), s = {}, o = {
3342
3341
  VISA: "visa",
3343
3342
  MASTERCARD: "mastercard",
3344
3343
  AMERICAN_EXPRESS: "american-express",
@@ -3416,24 +3415,24 @@ function jl() {
3416
3415
  d = (0, n.clone)(l), s = {};
3417
3416
  }, p.types = o, Ze = p, Ze;
3418
3417
  }
3419
- var Fe = jl();
3418
+ var Fe = Vl();
3420
3419
  Fe.updateCard("visa", {
3421
3420
  lengths: [16]
3422
3421
  });
3423
3422
  Fe.updateCard("unionpay", {
3424
3423
  gaps: [4, 8, 12, 16]
3425
3424
  });
3426
- const Vl = (t, e) => {
3425
+ const Fl = (t, e) => {
3427
3426
  const a = Fe.getTypeInfo(e), r = t.replace(/\D/g, ""), i = (a == null ? void 0 : a.gaps) || [4, 8, 12], n = a ? Math.max(...a.lengths) + i.length : 19, s = [0].concat(i, r.length), o = [];
3428
3427
  for (let l = 0; s[l] < r.length; l++) {
3429
3428
  const d = s[l], c = Math.min(s[l + 1], r.length);
3430
3429
  o.push(r.slice(d, c));
3431
3430
  }
3432
3431
  return o.join(" ").slice(0, n);
3433
- }, Fl = (t, e) => {
3432
+ }, Bl = (t, e) => {
3434
3433
  const a = Fe.getTypeInfo(e), r = (a == null ? void 0 : a.code.size) || 4;
3435
3434
  return t.replace(/\D/g, "").slice(0, r);
3436
- }, Bl = (t, e) => {
3435
+ }, Ul = (t, e) => {
3437
3436
  const a = t.replace(/\D/g, "");
3438
3437
  let r = a.slice(0, 2);
3439
3438
  if (!r) return "";
@@ -3497,7 +3496,7 @@ const Ea = [
3497
3496
  minLength: 12,
3498
3497
  maxLength: 19
3499
3498
  }
3500
- ], Yn = (t) => Ea.find((e) => e.pattern.test(t)) || null, br = (t) => Ea.filter((e) => e.pattern.test(t)), Ul = (t) => {
3499
+ ], Yn = (t) => Ea.find((e) => e.pattern.test(t)) || null, br = (t) => Ea.filter((e) => e.pattern.test(t)), Kl = (t) => {
3501
3500
  let e = 0, a = !1;
3502
3501
  for (let r = t.length - 1; r >= 0; r--) {
3503
3502
  let i = parseInt(t[r]);
@@ -3527,8 +3526,8 @@ const Ea = [
3527
3526
  return r && e && !e.includes(r.type) ? {
3528
3527
  isValid: !1,
3529
3528
  cardType: r.name,
3530
- error: "unsupported"
3531
- } : Ul(a) ? {
3529
+ error: de.Unsupported
3530
+ } : Kl(a) ? {
3532
3531
  isValid: !0,
3533
3532
  cardType: (r == null ? void 0 : r.name) || null,
3534
3533
  error: null
@@ -3544,7 +3543,7 @@ const Et = (t = "sandbox") => ({
3544
3543
  staging: "https://staging-api.paynext.com",
3545
3544
  sandbox: "https://sandbox-api.paynext.com",
3546
3545
  production: "https://api.paynext.com"
3547
- })[t], Kl = [
3546
+ })[t], ql = [
3548
3547
  {
3549
3548
  type: te.PAYPAL,
3550
3549
  order: 1,
@@ -3565,7 +3564,7 @@ const Et = (t = "sandbox") => ({
3565
3564
  order: 4,
3566
3565
  is_active: !0
3567
3566
  }
3568
- ], ql = (t) => t.googlePay ? te.GOOGLE_PAY : t.applePay ? te.APPLE_PAY : t.paypal ? te.PAYPAL : t.braintree ? te.VENMO : te.CARD, Hl = (t) => {
3567
+ ], Hl = (t) => t.googlePay ? te.GOOGLE_PAY : t.applePay ? te.APPLE_PAY : t.paypal ? te.PAYPAL : t.braintree ? te.VENMO : te.CARD, Yl = (t) => {
3569
3568
  const e = t.card;
3570
3569
  if (e)
3571
3570
  return {
@@ -3584,14 +3583,14 @@ const Et = (t = "sandbox") => ({
3584
3583
  last4: e.lastFourDigits,
3585
3584
  number: e.number
3586
3585
  };
3587
- }, Yl = (t) => {
3586
+ }, Gl = (t) => {
3588
3587
  var a;
3589
3588
  const e = t.paypal;
3590
3589
  if ((a = e == null ? void 0 : e.billing_agreement_token) != null && a.paypalId)
3591
3590
  return {
3592
3591
  billing_agreement_token: e.billing_agreement_token.paypalId
3593
3592
  };
3594
- }, Gl = (t) => {
3593
+ }, Wl = (t) => {
3595
3594
  var a, r;
3596
3595
  const e = t.googlePay;
3597
3596
  if (e != null && e.token)
@@ -3603,7 +3602,7 @@ const Et = (t = "sandbox") => ({
3603
3602
  token: e.token.number,
3604
3603
  token_service_provider: e.token.tokenServiceProvider
3605
3604
  };
3606
- }, Wl = (t) => {
3605
+ }, $l = (t) => {
3607
3606
  var a, r, i, n, s, o;
3608
3607
  const e = t.applePay;
3609
3608
  if (e)
@@ -3615,7 +3614,7 @@ const Et = (t = "sandbox") => ({
3615
3614
  token: (s = e.networkToken) == null ? void 0 : s.number,
3616
3615
  token_service_provider: (o = e.networkToken) == null ? void 0 : o.tokenServiceProvider
3617
3616
  };
3618
- }, $l = (t) => {
3617
+ }, Ql = (t) => {
3619
3618
  const e = t.braintree;
3620
3619
  if (e)
3621
3620
  return {
@@ -3634,7 +3633,7 @@ const Et = (t = "sandbox") => ({
3634
3633
  state: ((y = e == null ? void 0 : e.billingContact) == null ? void 0 : y.administrativeArea) || ((f = a == null ? void 0 : a.billingAddress) == null ? void 0 : f.administrativeArea) || void 0
3635
3634
  };
3636
3635
  }, Er = (t) => {
3637
- var i, n, s, o, l, d, c, u, h, p, m, y, f, g, E, N, _, I, O;
3636
+ var i, n, s, o, l, d, c, u, h, p, m, y, f, g, E, N, R, I, w;
3638
3637
  const { card: e, googlePay: a, applePay: r } = t;
3639
3638
  if (!(!e && !(a != null && a.card) && !(r != null && r.card)))
3640
3639
  return {
@@ -3650,16 +3649,16 @@ const Et = (t = "sandbox") => ({
3650
3649
  cvc: e == null ? void 0 : e.cvc,
3651
3650
  exp_month: e != null && e.expMonth || (f = a == null ? void 0 : a.card) != null && f.expiry.month ? Number((e == null ? void 0 : e.expMonth) || ((g = a == null ? void 0 : a.card) == null ? void 0 : g.expiry.month)) : void 0,
3652
3651
  exp_year: e != null && e.expYear || (E = a == null ? void 0 : a.card) != null && E.expiry.year ? Number((e == null ? void 0 : e.expYear) || ((N = a == null ? void 0 : a.card) == null ? void 0 : N.expiry.year)) : void 0,
3653
- last4: (e == null ? void 0 : e.lastFourDigits) || ((_ = a == null ? void 0 : a.card) == null ? void 0 : _.lastFour) || ((I = r == null ? void 0 : r.card) == null ? void 0 : I.lastFour),
3654
- number: (e == null ? void 0 : e.number) || ((O = a == null ? void 0 : a.card) == null ? void 0 : O.number)
3652
+ last4: (e == null ? void 0 : e.lastFourDigits) || ((R = a == null ? void 0 : a.card) == null ? void 0 : R.lastFour) || ((I = r == null ? void 0 : r.card) == null ? void 0 : I.lastFour),
3653
+ number: (e == null ? void 0 : e.number) || ((w = a == null ? void 0 : a.card) == null ? void 0 : w.number)
3655
3654
  };
3656
3655
  }, Tr = (t) => {
3657
3656
  var r, i;
3658
3657
  const { applePay: e, card: a } = t;
3659
3658
  return (r = e == null ? void 0 : e.billingContact) != null && r.givenName ? `${e.billingContact.givenName} ${e.billingContact.familyName || ""}`.trim() : (i = a == null ? void 0 : a.metadata) == null ? void 0 : i.name;
3660
- }, Ql = (t) => {
3659
+ }, Zl = (t) => {
3661
3660
  var r, i;
3662
- const e = ql(t), a = {
3661
+ const e = Hl(t), a = {
3663
3662
  client_session: t.clientSession,
3664
3663
  three_ds_session_id: t.threeDsSessionId,
3665
3664
  type: e
@@ -3668,55 +3667,55 @@ const Et = (t = "sandbox") => ({
3668
3667
  case te.CARD:
3669
3668
  return ee(K({}, a), {
3670
3669
  name: Tr(t),
3671
- card: Hl(t)
3670
+ card: Yl(t)
3672
3671
  });
3673
3672
  case te.PAYPAL:
3674
3673
  return ee(K({}, a), {
3675
- paypal: Yl(t)
3674
+ paypal: Gl(t)
3676
3675
  });
3677
3676
  case te.GOOGLE_PAY:
3678
3677
  return ee(K({}, a), {
3679
3678
  card: Er(t),
3680
- google_pay: Gl(t),
3679
+ google_pay: Wl(t),
3681
3680
  billing_address: Cr(t)
3682
3681
  });
3683
3682
  case te.APPLE_PAY:
3684
3683
  return ee(K({}, a), {
3685
3684
  name: Tr(t),
3686
3685
  card: Er(t),
3687
- apple_pay: Wl(t),
3686
+ apple_pay: $l(t),
3688
3687
  phone: (i = (r = t.applePay) == null ? void 0 : r.shippingContact) == null ? void 0 : i.phoneNumber,
3689
3688
  billing_address: Cr(t)
3690
3689
  });
3691
3690
  case te.VENMO:
3692
3691
  return ee(K({}, a), {
3693
- venmo: $l(t)
3692
+ venmo: Ql(t)
3694
3693
  });
3695
3694
  default:
3696
3695
  throw new Error(`Unsupported payment method: ${e}`);
3697
3696
  }
3698
- }, Zl = (t, e, a) => H(void 0, null, function* () {
3697
+ }, Xl = (t, e, a) => Y(void 0, null, function* () {
3699
3698
  const r = `${Et(e)}/payments/create`, i = new Headers();
3700
3699
  i.append("Content-Type", "application/json"), i.append("X-API-Version", a);
3701
- const n = Ql(t);
3700
+ const n = Zl(t);
3702
3701
  return yield (yield fetch(r, {
3703
3702
  method: "POST",
3704
3703
  headers: i,
3705
3704
  body: JSON.stringify(n)
3706
3705
  })).json();
3707
- }), Xl = (t, e, a) => H(void 0, null, function* () {
3706
+ }), Jl = (t, e, a) => Y(void 0, null, function* () {
3708
3707
  const r = `${Et(e)}/payments/create/billing/agreement`, i = new Headers();
3709
3708
  return i.append("Content-Type", "application/json"), i.append("X-API-Version", a), (yield (yield fetch(r, {
3710
3709
  method: "POST",
3711
3710
  headers: i,
3712
3711
  body: JSON.stringify({ client_session: t })
3713
3712
  })).json()).paypal_agreement_token_response.token_id || "";
3714
- }), Jl = (t, e, a) => H(void 0, null, function* () {
3713
+ }), ed = (t, e, a) => Y(void 0, null, function* () {
3715
3714
  const r = `${Et(e)}/payments/config?client_session_id=${t}`, i = new Headers();
3716
3715
  i.append("X-API-Version", a);
3717
3716
  const s = yield (yield fetch(r, { headers: i })).json();
3718
- return s.checkout_config || (s.checkout_config = Kl), s;
3719
- }), ed = (t) => {
3717
+ return s.checkout_config || (s.checkout_config = ql), s;
3718
+ }), ad = (t) => {
3720
3719
  var e;
3721
3720
  return t ? typeof t.amount != "number" ? (console.error("Transaction amount is missing or invalid for Google Pay"), null) : t.currency ? t.country ? t.merchant_id ? t.checkout_config && !((e = t.checkout_config) == null ? void 0 : e.find(
3722
3721
  ({ is_active: r, type: i }) => r && i === te.GOOGLE_PAY
@@ -3727,7 +3726,7 @@ const Et = (t = "sandbox") => ({
3727
3726
  merchantId: t.merchant_id,
3728
3727
  lineItems: []
3729
3728
  } : (console.error("Transaction merchant_id is missing for Google Pay"), null) : (console.error("Transaction country is missing for Google Pay"), null) : (console.error("Transaction currency is missing for Google Pay"), null) : (console.error("TransactionConfig is missing for Google Pay"), null);
3730
- }, ad = (t) => {
3729
+ }, td = (t) => {
3731
3730
  var e, a;
3732
3731
  return t ? typeof t.amount != "number" ? (console.error("Transaction amount is missing or invalid for Apple Pay"), null) : t.currency ? t.country ? t.merchant_id ? t.checkout_config && !((e = t.checkout_config) == null ? void 0 : e.find(
3733
3732
  ({ is_active: i, type: n }) => i && n === te.APPLE_PAY
@@ -3738,7 +3737,7 @@ const Et = (t = "sandbox") => ({
3738
3737
  merchantId: t.merchant_id,
3739
3738
  lineItems: ((a = t.apple_pay_info) == null ? void 0 : a.line_items) || []
3740
3739
  } : (console.error("Transaction merchant_id is missing for Apple Pay"), null) : (console.error("Transaction country is missing for Apple Pay"), null) : (console.error("Transaction currency is missing for Apple Pay"), null) : (console.error("TransactionConfig is missing for Apple Pay"), null);
3741
- }, td = (t = []) => t.reduce((e, a) => {
3740
+ }, rd = (t = []) => t.reduce((e, a) => {
3742
3741
  switch (a) {
3743
3742
  case oe.Visa:
3744
3743
  return e.push("visa"), e;
@@ -3755,7 +3754,7 @@ const Et = (t = "sandbox") => ({
3755
3754
  default:
3756
3755
  return e;
3757
3756
  }
3758
- }, []), rd = (t) => ({
3757
+ }, []), nd = (t) => ({
3759
3758
  ar: "ar-AB",
3760
3759
  en: "en-US",
3761
3760
  cs: "cs-CZ",
@@ -3786,7 +3785,7 @@ const Et = (t = "sandbox") => ({
3786
3785
  tr: "tr-TR",
3787
3786
  vi: "vi-VN",
3788
3787
  zh: "zh-CN"
3789
- })[t] || "en-US", nd = (t) => ({
3788
+ })[t] || "en-US", id = (t) => ({
3790
3789
  en: "en",
3791
3790
  ar: "ar",
3792
3791
  bg: "bg",
@@ -3819,7 +3818,7 @@ const Et = (t = "sandbox") => ({
3819
3818
  tr: "tr",
3820
3819
  ua: "uk",
3821
3820
  zh: "zh"
3822
- })[t] || "en", id = (t) => ({
3821
+ })[t] || "en", od = (t) => ({
3823
3822
  en: "en_US",
3824
3823
  ar: "ar_EG",
3825
3824
  cs: "cs_CZ",
@@ -3866,9 +3865,9 @@ class Ta {
3866
3865
  return this.element;
3867
3866
  }
3868
3867
  }
3869
- const od = "_container_94v1h_1", sd = "_title_94v1h_10", Ir = {
3870
- container: od,
3871
- title: sd
3868
+ const sd = "_container_94v1h_1", ld = "_title_94v1h_10", Ir = {
3869
+ container: sd,
3870
+ title: ld
3872
3871
  }, ta = class ta {
3873
3872
  constructor(e) {
3874
3873
  A(this, "element");
@@ -3918,7 +3917,7 @@ var va = { exports: {} }, Xe = {};
3918
3917
  * LICENSE file in the root directory of this source tree.
3919
3918
  */
3920
3919
  var Nr;
3921
- function ld() {
3920
+ function dd() {
3922
3921
  if (Nr) return Xe;
3923
3922
  Nr = 1;
3924
3923
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
@@ -3950,12 +3949,12 @@ var Je = {};
3950
3949
  * LICENSE file in the root directory of this source tree.
3951
3950
  */
3952
3951
  var _r;
3953
- function dd() {
3952
+ function cd() {
3954
3953
  return _r || (_r = 1, process.env.NODE_ENV !== "production" && function() {
3955
3954
  function t(v) {
3956
3955
  if (v == null) return null;
3957
3956
  if (typeof v == "function")
3958
- return v.$$typeof === G ? null : v.displayName || v.name || null;
3957
+ return v.$$typeof === H ? null : v.displayName || v.name || null;
3959
3958
  if (typeof v == "string") return v;
3960
3959
  switch (v) {
3961
3960
  case y:
@@ -3966,9 +3965,9 @@ function dd() {
3966
3965
  return "StrictMode";
3967
3966
  case I:
3968
3967
  return "Suspense";
3969
- case O:
3968
+ case w:
3970
3969
  return "SuspenseList";
3971
- case U:
3970
+ case V:
3972
3971
  return "Activity";
3973
3972
  }
3974
3973
  if (typeof v == "object")
@@ -3981,10 +3980,10 @@ function dd() {
3981
3980
  return (v.displayName || "Context") + ".Provider";
3982
3981
  case E:
3983
3982
  return (v._context.displayName || "Context") + ".Consumer";
3984
- case _:
3983
+ case R:
3985
3984
  var D = v.render;
3986
3985
  return v = v.displayName, v || (v = D.displayName || D.name || "", v = v !== "" ? "ForwardRef(" + v + ")" : "ForwardRef"), v;
3987
- case w:
3986
+ case _:
3988
3987
  return D = v.displayName || null, D !== null ? D : t(v.type) || "Memo";
3989
3988
  case x:
3990
3989
  D = v._payload, v = v._init;
@@ -4027,7 +4026,7 @@ function dd() {
4027
4026
  }
4028
4027
  }
4029
4028
  function i() {
4030
- var v = Y.A;
4029
+ var v = G.A;
4031
4030
  return v === null ? null : v.getOwner();
4032
4031
  }
4033
4032
  function n() {
@@ -4058,7 +4057,7 @@ function dd() {
4058
4057
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
4059
4058
  )), v = this.props.ref, v !== void 0 ? v : null;
4060
4059
  }
4061
- function d(v, D, M, P, T, k, R, S) {
4060
+ function d(v, D, M, P, T, k, O, S) {
4062
4061
  return M = k.ref, v = {
4063
4062
  $$typeof: p,
4064
4063
  type: v,
@@ -4082,7 +4081,7 @@ function dd() {
4082
4081
  configurable: !1,
4083
4082
  enumerable: !1,
4084
4083
  writable: !0,
4085
- value: R
4084
+ value: O
4086
4085
  }), Object.defineProperty(v, "_debugTask", {
4087
4086
  configurable: !1,
4088
4087
  enumerable: !1,
@@ -4090,11 +4089,11 @@ function dd() {
4090
4089
  value: S
4091
4090
  }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
4092
4091
  }
4093
- function c(v, D, M, P, T, k, R, S) {
4092
+ function c(v, D, M, P, T, k, O, S) {
4094
4093
  var C = D.children;
4095
4094
  if (C !== void 0)
4096
4095
  if (P)
4097
- if (F(C)) {
4096
+ if (B(C)) {
4098
4097
  for (P = 0; P < C.length; P++)
4099
4098
  u(C[P]);
4100
4099
  Object.freeze && Object.freeze(C);
@@ -4105,10 +4104,10 @@ function dd() {
4105
4104
  else u(C);
4106
4105
  if (j.call(D, "key")) {
4107
4106
  C = t(v);
4108
- var V = Object.keys(D).filter(function(re) {
4107
+ var F = Object.keys(D).filter(function(re) {
4109
4108
  return re !== "key";
4110
4109
  });
4111
- P = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", b[C + P] || (V = 0 < V.length ? "{" + V.join(": ..., ") + ": ...}" : "{}", console.error(
4110
+ P = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", b[C + P] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
4112
4111
  `A props object containing a "key" prop is being spread into JSX:
4113
4112
  let props = %s;
4114
4113
  <%s {...props} />
@@ -4117,7 +4116,7 @@ React keys must be passed directly to JSX without using spread:
4117
4116
  <%s key={someKey} {...props} />`,
4118
4117
  P,
4119
4118
  C,
4120
- V,
4119
+ F,
4121
4120
  C
4122
4121
  ), b[C + P] = !0);
4123
4122
  }
@@ -4136,14 +4135,14 @@ React keys must be passed directly to JSX without using spread:
4136
4135
  T,
4137
4136
  i(),
4138
4137
  M,
4139
- R,
4138
+ O,
4140
4139
  S
4141
4140
  );
4142
4141
  }
4143
4142
  function u(v) {
4144
4143
  typeof v == "object" && v !== null && v.$$typeof === p && v._store && (v._store.validated = 1);
4145
4144
  }
4146
- var h = ei, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), N = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), Y = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, F = Array.isArray, B = console.createTask ? console.createTask : function() {
4145
+ var h = ei, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), N = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), G = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, B = Array.isArray, U = console.createTask ? console.createTask : function() {
4147
4146
  return null;
4148
4147
  };
4149
4148
  h = {
@@ -4154,9 +4153,9 @@ React keys must be passed directly to JSX without using spread:
4154
4153
  var J, z = {}, W = h.react_stack_bottom_frame.bind(
4155
4154
  h,
4156
4155
  n
4157
- )(), q = B(r(n)), b = {};
4156
+ )(), q = U(r(n)), b = {};
4158
4157
  Je.Fragment = y, Je.jsx = function(v, D, M, P, T) {
4159
- var k = 1e4 > Y.recentlyCreatedOwnerStacks++;
4158
+ var k = 1e4 > G.recentlyCreatedOwnerStacks++;
4160
4159
  return c(
4161
4160
  v,
4162
4161
  D,
@@ -4165,10 +4164,10 @@ React keys must be passed directly to JSX without using spread:
4165
4164
  P,
4166
4165
  T,
4167
4166
  k ? Error("react-stack-top-frame") : W,
4168
- k ? B(r(v)) : q
4167
+ k ? U(r(v)) : q
4169
4168
  );
4170
4169
  }, Je.jsxs = function(v, D, M, P, T) {
4171
- var k = 1e4 > Y.recentlyCreatedOwnerStacks++;
4170
+ var k = 1e4 > G.recentlyCreatedOwnerStacks++;
4172
4171
  return c(
4173
4172
  v,
4174
4173
  D,
@@ -4177,17 +4176,17 @@ React keys must be passed directly to JSX without using spread:
4177
4176
  P,
4178
4177
  T,
4179
4178
  k ? Error("react-stack-top-frame") : W,
4180
- k ? B(r(v)) : q
4179
+ k ? U(r(v)) : q
4181
4180
  );
4182
4181
  };
4183
4182
  }()), Je;
4184
4183
  }
4185
4184
  var Rr;
4186
- function cd() {
4187
- return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? va.exports = ld() : va.exports = dd()), va.exports;
4185
+ function ud() {
4186
+ return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? va.exports = dd() : va.exports = cd()), va.exports;
4188
4187
  }
4189
- cd();
4190
- const ud = [
4188
+ ud();
4189
+ const pd = [
4191
4190
  oe.DinersClub,
4192
4191
  oe.DinersClub,
4193
4192
  oe.Discover,
@@ -4339,7 +4338,7 @@ const ud = [
4339
4338
  } else t instanceof Error ? r = t.message : typeof t == "string" && (r = t);
4340
4339
  return r;
4341
4340
  };
4342
- class pd {
4341
+ class hd {
4343
4342
  constructor(e) {
4344
4343
  A(this, "element");
4345
4344
  A(this, "events", {
@@ -4354,11 +4353,11 @@ class pd {
4354
4353
  this.ev = this.config.service.ev, this.customButtonStyles = a, this.error = new Ae(this.config.state.translate), this.element = document.createElement("div"), this.element.classList.add(La.applePay, La.hidden), this.error.setMessage(""), this.error.render().style.display = "none";
4355
4354
  }
4356
4355
  init(e) {
4357
- return H(this, null, function* () {
4358
- if (!this.config) return;
4359
- const a = this.config.state.transaction.getState(), r = this.config.state.translate.locale(), i = ad(a);
4356
+ return Y(this, null, function* () {
4357
+ if (!this.config) return !1;
4358
+ const a = this.config.state.transaction.getState(), r = this.config.state.translate.locale(), i = td(a);
4360
4359
  if (!i)
4361
- return;
4360
+ return !1;
4362
4361
  const n = e ? ee(K({}, e), {
4363
4362
  onError: (s) => {
4364
4363
  var u, h;
@@ -4375,14 +4374,14 @@ class pd {
4375
4374
  this.error.render().style.display = "none", (o = e.onSuccess) == null || o.call(e, s);
4376
4375
  }
4377
4376
  }) : void 0;
4378
- yield this.ev.initApple(
4377
+ return yield this.ev.initApple(
4379
4378
  ee(K({}, n), {
4380
4379
  transaction: i,
4381
- supportedCardTypes: td(ud),
4382
- locale: rd(r || "en")
4380
+ supportedCardTypes: rd(pd),
4381
+ locale: nd(r || "en")
4383
4382
  }),
4384
4383
  this.customButtonStyles
4385
- ), this.ev.isAppleAvailable() && (yield this.ev.renderApple(this.element), this.element.addEventListener("click", () => Ae.hideAll()), this.element.append(this.error.render()), this.isInitialized = !0, this.element.classList.remove(La.hidden), this.events.ready.emit());
4384
+ ), this.ev.isAppleAvailable() ? (yield this.ev.renderApple(this.element), this.element.addEventListener("click", () => Ae.hideAll()), this.element.append(this.error.render()), this.isInitialized = !0, this.element.classList.remove(La.hidden), this.events.ready.emit(), !0) : !1;
4386
4385
  });
4387
4386
  }
4388
4387
  addEventListener(e, a) {
@@ -4401,7 +4400,7 @@ class pd {
4401
4400
  return this.element;
4402
4401
  }
4403
4402
  }
4404
- const hd = [
4403
+ const md = [
4405
4404
  { type: te.PAYPAL, is_active: !0, order: 1 },
4406
4405
  { type: te.APPLE_PAY, is_active: !0, order: 2 },
4407
4406
  { type: te.GOOGLE_PAY, is_active: !0, order: 3 },
@@ -4410,24 +4409,24 @@ const hd = [
4410
4409
  ], Se = {
4411
4410
  open: { y: 0, opacity: 1 },
4412
4411
  close: { y: 100, opacity: 0 },
4413
- transition: { duration: 0.5, type: "spring", bounce: 0 }
4412
+ transition: { duration: 0.25, type: "spring", bounce: 0 }
4414
4413
  }, ga = {
4415
4414
  open: { y: 0, opacity: 1 },
4416
4415
  close: { y: -100, opacity: 0 },
4417
- transition: { duration: 0.5, type: "spring", bounce: 0 }
4416
+ transition: { duration: 0.25, type: "spring", bounce: 0 }
4418
4417
  }, pe = {
4419
4418
  open: { y: 0, opacity: 1 },
4420
4419
  close: { y: 15, opacity: 0 },
4421
- transition: { duration: 0.5, type: "spring", bounce: 0 }
4420
+ transition: { duration: 0.25, type: "spring", bounce: 0 }
4422
4421
  }, ve = {
4423
4422
  open: { y: 0, opacity: 1, height: "auto" },
4424
4423
  close: { y: -15, opacity: 0, height: 0 },
4425
- transition: { duration: 0.5, type: "spring", bounce: 0 }
4426
- }, md = "_googlePay_gmreq_1", yd = "_hidden_gmreq_20", za = {
4427
- googlePay: md,
4428
- hidden: yd
4424
+ transition: { duration: 0.25, type: "spring", bounce: 0 }
4425
+ }, yd = "_googlePay_gmreq_1", fd = "_hidden_gmreq_20", za = {
4426
+ googlePay: yd,
4427
+ hidden: fd
4429
4428
  };
4430
- class fd {
4429
+ class vd {
4431
4430
  constructor(e) {
4432
4431
  A(this, "element");
4433
4432
  A(this, "events", {
@@ -4440,11 +4439,11 @@ class fd {
4440
4439
  this.config = e, this.ev = this.config.service.ev, this.customButtonStyles = this.config.state.styles.getState().GooglePayButton, this.element = document.createElement("div"), this.element.classList.add(za.googlePay, za.hidden), this.error = new Ae(this.config.state.translate), this.error.setMessage(""), this.error.render().style.display = "none";
4441
4440
  }
4442
4441
  init(e) {
4443
- return H(this, null, function* () {
4444
- if (!this.config) return;
4445
- const a = this.config.state.transaction.getState(), r = this.config.state.translate.locale(), i = ed(a);
4442
+ return Y(this, null, function* () {
4443
+ if (!this.config) return !1;
4444
+ const a = this.config.state.transaction.getState(), r = this.config.state.translate.locale(), i = ad(a);
4446
4445
  if (!i)
4447
- return;
4446
+ return !1;
4448
4447
  const n = e ? ee(K({}, e), {
4449
4448
  onError: (s) => {
4450
4449
  var d, c;
@@ -4461,13 +4460,13 @@ class fd {
4461
4460
  this.error.render().style.display = "none", (o = e.onSuccess) == null || o.call(e, s);
4462
4461
  }
4463
4462
  }) : void 0;
4464
- yield this.ev.initGoogle(
4463
+ return yield this.ev.initGoogle(
4465
4464
  ee(K({}, n), {
4466
4465
  transaction: i,
4467
- locale: nd(r || "en")
4466
+ locale: id(r || "en")
4468
4467
  }),
4469
4468
  this.customButtonStyles
4470
- ), yield this.ev.renderGoogle(this.element), this.element.addEventListener("click", () => Ae.hideAll()), this.element.append(this.error.render()), this.element.classList.remove(za.hidden), this.isInitialized = !0, this.events.ready.emit();
4469
+ ), yield this.ev.renderGoogle(this.element), this.element.addEventListener("click", () => Ae.hideAll()), this.element.append(this.error.render()), this.element.classList.remove(za.hidden), this.isInitialized = !0, this.events.ready.emit(), !0;
4471
4470
  });
4472
4471
  }
4473
4472
  addEventListener(e, a) {
@@ -4486,11 +4485,11 @@ class fd {
4486
4485
  return this.element;
4487
4486
  }
4488
4487
  }
4489
- const vd = "_paypal_90mm5_1", gd = "_hidden_90mm5_12", Sa = {
4490
- paypal: vd,
4491
- hidden: gd
4488
+ const gd = "_paypal_90mm5_1", Pd = "_hidden_90mm5_12", Sa = {
4489
+ paypal: gd,
4490
+ hidden: Pd
4492
4491
  };
4493
- class Pd {
4492
+ class kd {
4494
4493
  constructor(e) {
4495
4494
  A(this, "element");
4496
4495
  A(this, "events", {
@@ -4504,21 +4503,19 @@ class Pd {
4504
4503
  }
4505
4504
  // init
4506
4505
  init(e) {
4507
- return H(this, null, function* () {
4506
+ return Y(this, null, function* () {
4508
4507
  var s, o, l;
4509
- if (!this.config) return;
4510
- const a = this.config.state.transaction.getState(), r = this.config.state.checkout.getState(), i = () => H(this, null, function* () {
4511
- return yield Xl(r.clientToken, r.environment, r.apiVersion);
4508
+ if (!this.config) return !1;
4509
+ const a = this.config.state.transaction.getState(), r = this.config.state.checkout.getState(), i = () => Y(this, null, function* () {
4510
+ return yield Jl(r.clientToken, r.environment, r.apiVersion);
4512
4511
  });
4513
- if (!a || Object.keys(a).length === 0) {
4514
- console.error("PayPal transaction data is empty or invalid");
4515
- return;
4516
- }
4512
+ if (!a || Object.keys(a).length === 0)
4513
+ return console.error("PayPal transaction data is empty or invalid"), !1;
4517
4514
  yield this.paypal.init({
4518
4515
  clientId: ((s = a == null ? void 0 : a.paypal_info) == null ? void 0 : s.client_id) || "",
4519
4516
  environment: ((o = a == null ? void 0 : a.paypal_info) == null ? void 0 : o.environment) || "sandbox",
4520
4517
  vault: !0,
4521
- locale: id(this.config.state.translate.locale())
4518
+ locale: od(this.config.state.translate.locale())
4522
4519
  });
4523
4520
  const n = e ? ee(K({}, e), {
4524
4521
  onError: (d) => {
@@ -4536,16 +4533,16 @@ class Pd {
4536
4533
  this.error.render().style.display = "none", (c = e.onSuccess) == null || c.call(e, d);
4537
4534
  }
4538
4535
  }) : void 0;
4539
- yield this.paypal.render(this.element, ee(K({}, n), {
4536
+ return yield this.paypal.render(this.element, ee(K({}, n), {
4540
4537
  createBillingAgreement: i,
4541
- onApprove: (c) => H(this, [c], function* ({ billingToken: d }) {
4538
+ onApprove: (c) => Y(this, [c], function* ({ billingToken: d }) {
4542
4539
  var u;
4543
4540
  (u = n == null ? void 0 : n.onSuccess) == null || u.call(n, d || "");
4544
4541
  }),
4545
4542
  style: (l = this.customButtonStyles) == null ? void 0 : l.styles,
4546
4543
  onCancel: n == null ? void 0 : n.onCancel,
4547
4544
  onError: n == null ? void 0 : n.onError
4548
- })), this.element.addEventListener("click", () => Ae.hideAll()), this.element.append(this.error.render()), this.element.classList.remove(Sa.hidden), this.isInitialized = !0, this.events.ready.emit();
4545
+ })), this.element.addEventListener("click", () => Ae.hideAll()), this.element.append(this.error.render()), this.element.classList.remove(Sa.hidden), this.isInitialized = !0, this.events.ready.emit(), !0;
4549
4546
  });
4550
4547
  }
4551
4548
  // add event listener
@@ -4566,7 +4563,7 @@ class Pd {
4566
4563
  return this.element;
4567
4564
  }
4568
4565
  }
4569
- class kd {
4566
+ class bd {
4570
4567
  constructor() {
4571
4568
  A(this, "template", `
4572
4569
  <svg
@@ -4591,13 +4588,13 @@ class kd {
4591
4588
  return this.element;
4592
4589
  }
4593
4590
  }
4594
- const bd = "_button_13xr0_1", Or = {
4595
- button: bd
4591
+ const Ad = "_button_13xr0_1", Or = {
4592
+ button: Ad
4596
4593
  };
4597
- class Ad {
4594
+ class Cd {
4598
4595
  constructor(e) {
4599
4596
  A(this, "element");
4600
- A(this, "icon", new kd());
4597
+ A(this, "icon", new bd());
4601
4598
  this.config = e;
4602
4599
  const a = this.config.state.styles.getState().WalletButton, r = this.config.state.translate;
4603
4600
  this.element = document.createElement("button"), this.element.classList.add(Or.button, Or.press), a != null && a.className && this.element.classList.add(a.className), a != null && a.styles && Object.assign(this.element.style, a.styles);
@@ -4613,19 +4610,19 @@ class Ad {
4613
4610
  return this.element;
4614
4611
  }
4615
4612
  }
4616
- const Cd = (t, e, a) => e.concat(t.filter((r) => e.every((i) => !a(r, i)))), Ed = "_conteiner_1j5pe_2", Td = "_venmo_1j5pe_8", Id = "_hidden_1j5pe_33", Pa = {
4617
- conteiner: Ed,
4618
- venmo: Td,
4619
- hidden: Id
4620
- }, Nd = {
4613
+ const Ed = (t, e, a) => e.concat(t.filter((r) => e.every((i) => !a(r, i)))), Td = "_conteiner_1j5pe_2", Id = "_venmo_1j5pe_8", Nd = "_hidden_1j5pe_33", Pa = {
4614
+ conteiner: Td,
4615
+ venmo: Id,
4616
+ hidden: Nd
4617
+ }, _d = {
4621
4618
  display: "flex",
4622
4619
  height: 40,
4623
4620
  borderRadius: 12
4624
- }, _d = `<svg viewBox="2.3 484.3 611.9 117.80000000000001" xmlns="http://www.w3.org/2000/svg">
4621
+ }, Rd = `<svg viewBox="2.3 484.3 611.9 117.80000000000001" xmlns="http://www.w3.org/2000/svg">
4625
4622
  <path d="M103.1 485.8c4.2 7 5.7 14 5.7 22.4 0 28-23.8 65.9-43.4 91.1H20.5L2.3 491.5l40.6-2.8 9.8 77.1c8.4-14 19.7-37.9 19.7-53.2 0-8.4-1.4-14-4.2-19.7zm51.8 47.7c7 0 25.2-2.8 25.2-14 0-5.7-2.8-7-7-7-8.3 0-18.2 8.4-18.2 21zm-1.3 21c0 12.7 7 18.2 16.8 18.2s19.7-2.8 32.2-8.4l-5.7 30.8c-8.4 4.2-22.4 7-36.4 7-33.5 0-46.2-21-46.2-46.2 0-33.5 19.7-68.6 60.2-68.6 22.4 0 35 12.7 35 30.8 1.5 26.6-35 36.4-55.9 36.4zM324.4 511c0 4.2 0 9.8-1.4 14l-11.2 74.2H274l11.2-68.6c0-1.4 1.4-5.7 1.4-7 0-5.7-2.8-5.7-7-5.7-5.7 0-9.8 2.8-12.7 4.2l-14 77.1H215l16.8-112.1h33.5v8.4c8.4-5.7 18.2-11.2 32.2-11.2 19.9 3 26.9 12.7 26.9 26.7zm113.4-12.5c11.2-8.4 21-12.7 35-12.7 19.7 0 26.7 9.8 26.7 25.2 0 4.2 0 9.8-1.4 14L487 599.3h-37.9l11.2-70v-5.7c0-5.7-2.8-7-7-7s-9.8 1.4-12.7 4.2L428 599.2h-37.9l11.2-70v-5.7c0-5.7-2.8-7-7-7-5.7 0-9.8 2.8-12.7 4.2L369 599h-37.9L348 487h32.2l1.4 9.8c7-5.7 18.2-11.2 32.2-11.2 11.4 1.7 19.7 5.9 24 12.9zM575 532.1c0-9.8-2.8-15.4-9.8-15.4-15.4 0-18.2 26.7-18.2 40.6 0 9.8 2.8 16.8 9.8 16.8 15.5-1.4 18.2-29.4 18.2-42zm-65.8 22.4c0-35 18.2-68.6 61.6-68.6 32.2 0 43.4 19.7 43.4 44.9 0 35-18.2 70-61.6 70-32.2 1.3-43.4-19.7-43.4-46.3z"
4626
4623
  fill="currentColor"/>
4627
4624
  </svg>`;
4628
- class Rd {
4625
+ class Od {
4629
4626
  constructor(e) {
4630
4627
  A(this, "isProcessing", !1);
4631
4628
  A(this, "container");
@@ -4638,41 +4635,31 @@ class Rd {
4638
4635
  A(this, "isInitialized", !1);
4639
4636
  this.config = e, this.braintree = this.config.service.braintree;
4640
4637
  const a = this.config.state.styles.getState().BraintreeButton;
4641
- this.container = document.createElement("div"), this.container.classList.add(Pa.conteiner), this.venmoButton = document.createElement("button"), this.venmoButton.classList.add(Pa.venmo, Pa.hidden), a != null && a.className && this.venmoButton.classList.add(a.className), a != null && a.styles && Object.assign(this.venmoButton.style, a.styles), this.venmoButton.setAttribute("aria-label", "Venmo"), this.venmoButton.innerHTML = _d, this.error = new Ae(this.config.state.translate), this.error.setMessage(""), this.error.render().style.display = "none", this.container.append(this.venmoButton);
4638
+ this.container = document.createElement("div"), this.container.classList.add(Pa.conteiner), this.venmoButton = document.createElement("button"), this.venmoButton.classList.add(Pa.venmo, Pa.hidden), a != null && a.className && this.venmoButton.classList.add(a.className), a != null && a.styles && Object.assign(this.venmoButton.style, a.styles), this.venmoButton.setAttribute("aria-label", "Venmo"), this.venmoButton.innerHTML = Rd, this.error = new Ae(this.config.state.translate), this.error.setMessage(""), this.error.render().style.display = "none", this.container.append(this.venmoButton);
4642
4639
  }
4643
4640
  // init
4644
4641
  init(e) {
4645
- return H(this, null, function* () {
4642
+ return Y(this, null, function* () {
4646
4643
  var r;
4647
- if (!this.config) return;
4644
+ if (!this.config) return !1;
4648
4645
  const a = this.config.state.transaction.getState();
4649
- if (console.log("----- init braintree venmo: ", a), !a || Object.keys(a).length === 0) {
4650
- console.error("Braintree Venmo transaction data is empty or invalid");
4651
- return;
4652
- }
4646
+ if (console.log("----- init braintree venmo: ", a), !a || Object.keys(a).length === 0)
4647
+ return console.error("Braintree Venmo transaction data is empty or invalid"), !1;
4653
4648
  try {
4654
- if (yield this.braintree.init({
4649
+ return yield this.braintree.init({
4655
4650
  authorization: ((r = a == null ? void 0 : a.brain_tree_info) == null ? void 0 : r.client_token) || ""
4656
4651
  }), yield this.braintree.createVenmo({
4657
4652
  // ToDo: update before release
4658
4653
  // deepLinkReturnUrl: checkout?.returnUrl,
4659
- }), !this.braintree.isBrowserSupported()) {
4660
- console.log("Browser does not support Venmo"), this.handleVenmoError(new Error("Browser does not support Venmo"));
4661
- return;
4662
- }
4663
- if (this.displayVenmoButton(e), this.braintree.hasTokenizationResult()) {
4664
- yield this.handleExistingTokenization(e);
4665
- return;
4666
- }
4667
- this.venmoButton.classList.remove(Pa.hidden), this.container.append(this.error.render()), this.isInitialized = !0, this.events.ready.emit();
4654
+ }), this.braintree.isBrowserSupported() ? (this.displayVenmoButton(e), this.braintree.hasTokenizationResult() ? (yield this.handleExistingTokenization(e), !1) : (this.venmoButton.classList.remove(Pa.hidden), this.container.append(this.error.render()), this.isInitialized = !0, this.events.ready.emit(), !0)) : (console.log("Browser does not support Venmo"), this.handleVenmoError(new Error("Browser does not support Venmo")), !1);
4668
4655
  } catch (i) {
4669
- console.error("Error initializing Venmo:", i), this.handleVenmoError(i);
4656
+ return console.error("Error initializing Venmo:", i), this.handleVenmoError(i), !1;
4670
4657
  }
4671
4658
  });
4672
4659
  }
4673
4660
  // display venmo button
4674
4661
  displayVenmoButton(e) {
4675
- Object.assign(this.venmoButton.style, Nd), this.venmoButton.addEventListener("click", () => H(this, null, function* () {
4662
+ Object.assign(this.venmoButton.style, _d), this.venmoButton.addEventListener("click", () => Y(this, null, function* () {
4676
4663
  if (Ae.hideAll(), !this.isProcessing) {
4677
4664
  this.isProcessing = !0, this.venmoButton.disabled = !0;
4678
4665
  try {
@@ -4688,7 +4675,7 @@ class Rd {
4688
4675
  }
4689
4676
  // handle existing tokenization results
4690
4677
  handleExistingTokenization(e) {
4691
- return H(this, null, function* () {
4678
+ return Y(this, null, function* () {
4692
4679
  try {
4693
4680
  const a = yield this.braintree.tokenize();
4694
4681
  this.handleVenmoSuccess(a, e);
@@ -4728,7 +4715,7 @@ class Rd {
4728
4715
  return this.container;
4729
4716
  }
4730
4717
  }
4731
- class Od {
4718
+ class wd {
4732
4719
  constructor(e) {
4733
4720
  A(this, "isAppleReady", !0);
4734
4721
  A(this, "isGoogleReady", !0);
@@ -4752,7 +4739,7 @@ class Od {
4752
4739
  }
4753
4740
  // init
4754
4741
  init() {
4755
- return H(this, null, function* () {
4742
+ return Y(this, null, function* () {
4756
4743
  this.config.state.transaction.subscribe(() => {
4757
4744
  this.config.service.ev.isReady && this.initPaymentMethods().catch(console.error);
4758
4745
  }), this.config.state.checkout.subscribe(() => {
@@ -4763,20 +4750,20 @@ class Od {
4763
4750
  });
4764
4751
  }
4765
4752
  // init apple
4766
- initApple() {
4767
- return H(this, null, function* () {
4753
+ initApple(e) {
4754
+ return Y(this, null, function* () {
4768
4755
  if (this.applePay) {
4769
- this.isAppleReady = !1, this.buttons.appendChild(this.applePay.render());
4756
+ this.isAppleReady = !1;
4770
4757
  try {
4771
- yield this.applePay.init({
4758
+ (yield this.applePay.init({
4772
4759
  onError: () => this.events.error.emit(),
4773
4760
  onCancel: () => this.events.cancel.emit(),
4774
- onSuccess: (e) => {
4775
- this.lastInteracted = "apple", this.events.success.emit(ee(K({}, e), { type: "apple" }));
4761
+ onSuccess: (r) => {
4762
+ this.lastInteracted = "apple", this.events.success.emit(ee(K({}, r), { type: "apple" }));
4776
4763
  }
4777
- });
4778
- } catch (e) {
4779
- console.error(e);
4764
+ })) ? e == null || e.appendChild(this.applePay.render()) : e == null || e.remove();
4765
+ } catch (a) {
4766
+ console.error(a), e == null || e.remove();
4780
4767
  } finally {
4781
4768
  this.isAppleReady = !0;
4782
4769
  }
@@ -4784,20 +4771,20 @@ class Od {
4784
4771
  });
4785
4772
  }
4786
4773
  // init google
4787
- initGoogle() {
4788
- return H(this, null, function* () {
4774
+ initGoogle(e) {
4775
+ return Y(this, null, function* () {
4789
4776
  if (this.googlePay) {
4790
- this.isGoogleReady = !1, this.buttons.appendChild(this.googlePay.render());
4777
+ this.isGoogleReady = !1;
4791
4778
  try {
4792
- yield this.googlePay.init({
4779
+ (yield this.googlePay.init({
4793
4780
  onError: () => this.events.error.emit(),
4794
4781
  onCancel: () => this.events.cancel.emit(),
4795
- onSuccess: (e) => {
4796
- this.lastInteracted = "google", this.events.success.emit(ee(K({}, e), { type: "google" }));
4782
+ onSuccess: (r) => {
4783
+ this.lastInteracted = "google", this.events.success.emit(ee(K({}, r), { type: "google" }));
4797
4784
  }
4798
- });
4799
- } catch (e) {
4800
- console.error(e);
4785
+ })) ? e == null || e.appendChild(this.googlePay.render()) : e == null || e.remove();
4786
+ } catch (a) {
4787
+ console.error(a), e == null || e.remove();
4801
4788
  } finally {
4802
4789
  this.isGoogleReady = !0;
4803
4790
  }
@@ -4805,20 +4792,20 @@ class Od {
4805
4792
  });
4806
4793
  }
4807
4794
  // init paypal
4808
- initPayPal() {
4809
- return H(this, null, function* () {
4795
+ initPayPal(e) {
4796
+ return Y(this, null, function* () {
4810
4797
  if (this.paypal) {
4811
- this.isPayPalReady = !1, this.buttons.appendChild(this.paypal.render());
4798
+ this.isPayPalReady = !1;
4812
4799
  try {
4813
- yield this.paypal.init({
4800
+ (yield this.paypal.init({
4814
4801
  onError: () => this.events.error.emit(),
4815
4802
  onCancel: () => this.events.cancel.emit(),
4816
- onSuccess: (e) => {
4817
- this.lastInteracted = "paypal", this.events.success.emit({ paypalId: e, type: "paypal" });
4803
+ onSuccess: (r) => {
4804
+ this.lastInteracted = "paypal", this.events.success.emit({ paypalId: r, type: "paypal" });
4818
4805
  }
4819
- });
4820
- } catch (e) {
4821
- console.error(e);
4806
+ })) ? e == null || e.appendChild(this.paypal.render()) : e == null || e.remove();
4807
+ } catch (a) {
4808
+ console.error(a), e == null || e.remove();
4822
4809
  } finally {
4823
4810
  this.isPayPalReady = !0;
4824
4811
  }
@@ -4826,20 +4813,20 @@ class Od {
4826
4813
  });
4827
4814
  }
4828
4815
  // init braintree
4829
- initBraintreeVenmo() {
4830
- return H(this, null, function* () {
4816
+ initBraintreeVenmo(e) {
4817
+ return Y(this, null, function* () {
4831
4818
  if (this.braintree) {
4832
- this.isBraintreeReady = !1, this.buttons.appendChild(this.braintree.render());
4819
+ this.isBraintreeReady = !1;
4833
4820
  try {
4834
- yield this.braintree.init({
4821
+ (yield this.braintree.init({
4835
4822
  onError: () => this.events.error.emit(),
4836
4823
  onCancel: () => this.events.cancel.emit(),
4837
- onSuccess: (e) => {
4838
- this.lastInteracted = "venmo", this.events.success.emit({ nonce: e == null ? void 0 : e.nonce, type: "venmo" });
4824
+ onSuccess: (r) => {
4825
+ this.lastInteracted = "venmo", this.events.success.emit({ nonce: r == null ? void 0 : r.nonce, type: "venmo" });
4839
4826
  }
4840
- });
4841
- } catch (e) {
4842
- console.error(e);
4827
+ })) ? e == null || e.appendChild(this.braintree.render()) : e == null || e.remove();
4828
+ } catch (a) {
4829
+ console.error(a), e == null || e.remove();
4843
4830
  } finally {
4844
4831
  this.isBraintreeReady = !0;
4845
4832
  }
@@ -4847,40 +4834,46 @@ class Od {
4847
4834
  });
4848
4835
  }
4849
4836
  // init card
4850
- initCard() {
4851
- return H(this, null, function* () {
4852
- this.card && this.buttons.appendChild(this.card.render());
4837
+ initCard(e) {
4838
+ return Y(this, null, function* () {
4839
+ this.card && (e == null || e.appendChild(this.card.render()));
4853
4840
  });
4854
4841
  }
4855
4842
  // init payment methods
4856
4843
  initPaymentMethods() {
4857
- return H(this, null, function* () {
4858
- const e = this.config.state.transaction.getState(), a = Cd(hd, (e == null ? void 0 : e.checkout_config) || [], (s, o) => s.type === o.type), r = this.config.state.checkout.getState();
4859
- let i = a.filter(({ is_active: s }) => s);
4860
- (r == null ? void 0 : r.variant) === "default" && (i = i.filter(({ type: s }) => s !== te.CARD)), this.initializeButtonInstances(i);
4861
- const n = i.sort((s, o) => s.order - o.order).map(({ type: s }) => {
4862
- switch (s) {
4844
+ return Y(this, null, function* () {
4845
+ const e = this.config.state.transaction.getState(), a = Ed(md, (e == null ? void 0 : e.checkout_config) || [], (l, d) => l.type === d.type), r = this.config.state.checkout.getState();
4846
+ let i = a.filter(({ is_active: l }) => l);
4847
+ (r == null ? void 0 : r.variant) === "default" && (i = i.filter(({ type: l }) => l !== te.CARD)), this.initializeButtonInstances(i), this.buttons.innerHTML = "";
4848
+ const n = i.sort((l, d) => l.order - d.order), s = /* @__PURE__ */ new Map();
4849
+ for (const { type: l } of n) {
4850
+ const d = document.createElement("div");
4851
+ this.buttons.appendChild(d), s.set(l, d);
4852
+ }
4853
+ const o = n.map(({ type: l }) => {
4854
+ const d = s.get(l);
4855
+ switch (l) {
4863
4856
  case te.APPLE_PAY:
4864
- return this.initApple();
4857
+ return this.initApple(d);
4865
4858
  case te.GOOGLE_PAY:
4866
- return this.initGoogle();
4859
+ return this.initGoogle(d);
4867
4860
  case te.PAYPAL:
4868
- return this.initPayPal();
4861
+ return this.initPayPal(d);
4869
4862
  case te.VENMO:
4870
- return this.initBraintreeVenmo();
4863
+ return this.initBraintreeVenmo(d);
4871
4864
  case te.CARD:
4872
- return this.initCard();
4865
+ return this.initCard(d);
4873
4866
  default:
4874
4867
  throw new Error("Unknown button type");
4875
4868
  }
4876
4869
  });
4877
- yield Promise.all(n), this.handleReady();
4870
+ yield Promise.all(o), this.handleReady();
4878
4871
  });
4879
4872
  }
4880
4873
  // Initialize button instances only for active payment methods
4881
4874
  initializeButtonInstances(e) {
4882
4875
  const a = e.map(({ type: r }) => r);
4883
- a.includes(te.APPLE_PAY) && !this.applePay && (this.applePay = new pd(this.config)), a.includes(te.GOOGLE_PAY) && !this.googlePay && (this.googlePay = new fd(this.config)), a.includes(te.PAYPAL) && !this.paypal && (this.paypal = new Pd(this.config)), a.includes(te.VENMO) && !this.braintree && (this.braintree = new Rd(this.config)), a.includes(te.CARD) && !this.card && (this.card = new Ad(this.config), this.card.addEventListener(() => {
4876
+ a.includes(te.APPLE_PAY) && !this.applePay && (this.applePay = new hd(this.config)), a.includes(te.GOOGLE_PAY) && !this.googlePay && (this.googlePay = new vd(this.config)), a.includes(te.PAYPAL) && !this.paypal && (this.paypal = new kd(this.config)), a.includes(te.VENMO) && !this.braintree && (this.braintree = new Od(this.config)), a.includes(te.CARD) && !this.card && (this.card = new Cd(this.config), this.card.addEventListener(() => {
4884
4877
  this.lastInteracted = "card", this.events.open.emit();
4885
4878
  }));
4886
4879
  }
@@ -4918,7 +4911,7 @@ class Od {
4918
4911
  }
4919
4912
  }
4920
4913
  }
4921
- class wd {
4914
+ class Dd {
4922
4915
  constructor() {
4923
4916
  A(this, "template", `
4924
4917
  <svg
@@ -4938,20 +4931,20 @@ class wd {
4938
4931
  <span class="${X.srOnly}">Back</span>
4939
4932
  `);
4940
4933
  A(this, "element", document.createElement("div"));
4941
- this.element.classList.add(X.container), this.element.innerHTML = this.template;
4934
+ this.element.classList.add(X.backButton), this.element.innerHTML = this.template;
4942
4935
  }
4943
4936
  render() {
4944
4937
  return this.element;
4945
4938
  }
4946
4939
  }
4947
- const Dd = "_button_125my_1", Ld = {
4948
- button: Dd
4940
+ const Ld = "_button_125my_1", xd = {
4941
+ button: Ld
4949
4942
  };
4950
- class xd {
4943
+ class zd {
4951
4944
  constructor() {
4952
4945
  A(this, "element");
4953
- A(this, "icon", new wd());
4954
- this.element = document.createElement("div"), this.element.classList.add(Ld.button), this.element.appendChild(this.icon.render());
4946
+ A(this, "icon", new Dd());
4947
+ this.element = document.createElement("div"), this.element.classList.add(xd.button), this.element.appendChild(this.icon.render());
4955
4948
  }
4956
4949
  addEventListener(e) {
4957
4950
  return this.element.addEventListener("click", e);
@@ -4960,14 +4953,14 @@ class xd {
4960
4953
  return this.element;
4961
4954
  }
4962
4955
  }
4963
- const zd = "_button_191iv_1", Sd = "_disabled_191iv_17", Md = "_press_191iv_22", jd = "_hidden_191iv_26", Vd = "_spinner_191iv_30", _e = {
4964
- button: zd,
4965
- disabled: Sd,
4966
- press: Md,
4967
- hidden: jd,
4968
- spinner: Vd
4956
+ const Sd = "_button_191iv_1", Md = "_disabled_191iv_17", jd = "_press_191iv_22", Vd = "_hidden_191iv_26", Fd = "_spinner_191iv_30", _e = {
4957
+ button: Sd,
4958
+ disabled: Md,
4959
+ press: jd,
4960
+ hidden: Vd,
4961
+ spinner: Fd
4969
4962
  };
4970
- class Fd {
4963
+ class Bd {
4971
4964
  constructor(e, a) {
4972
4965
  A(this, "element");
4973
4966
  A(this, "spinner", new qn());
@@ -4986,22 +4979,22 @@ class Fd {
4986
4979
  return this.element;
4987
4980
  }
4988
4981
  }
4989
- const Bd = "_cardForm_kzlcj_1", Ud = "_hidden_kzlcj_5", Kd = "_topOffset_kzlcj_9", Ce = {
4990
- cardForm: Bd,
4991
- hidden: Ud,
4992
- topOffset: Kd
4993
- }, qd = "_wrapper_4knhb_1", Hd = "_inputContainer_4knhb_5", Yd = "_input_4knhb_5", Gd = "_errorInput_4knhb_24", Wd = "_label_4knhb_28", $d = "_labelError_4knhb_32", Qd = "_disabled_4knhb_36", Zd = "_disabledInput_4knhb_40", Xd = "_hidden_4knhb_47", se = {
4994
- wrapper: qd,
4995
- inputContainer: Hd,
4996
- input: Yd,
4997
- errorInput: Gd,
4998
- label: Wd,
4999
- labelError: $d,
5000
- disabled: Qd,
5001
- disabledInput: Zd,
5002
- hidden: Xd
4982
+ const Ud = "_cardForm_kzlcj_1", Kd = "_hidden_kzlcj_5", qd = "_topOffset_kzlcj_9", Ce = {
4983
+ cardForm: Ud,
4984
+ hidden: Kd,
4985
+ topOffset: qd
4986
+ }, Hd = "_wrapper_4knhb_1", Yd = "_inputContainer_4knhb_5", Gd = "_input_4knhb_5", Wd = "_errorInput_4knhb_24", $d = "_label_4knhb_28", Qd = "_labelError_4knhb_32", Zd = "_disabled_4knhb_36", Xd = "_disabledInput_4knhb_40", Jd = "_hidden_4knhb_47", se = {
4987
+ wrapper: Hd,
4988
+ inputContainer: Yd,
4989
+ input: Gd,
4990
+ errorInput: Wd,
4991
+ label: $d,
4992
+ labelError: Qd,
4993
+ disabled: Zd,
4994
+ disabledInput: Xd,
4995
+ hidden: Jd
5003
4996
  };
5004
- class Jd {
4997
+ class ec {
5005
4998
  constructor(e, a) {
5006
4999
  A(this, "id", "paynext-card-input-name");
5007
5000
  A(this, "element");
@@ -5022,7 +5015,7 @@ class Jd {
5022
5015
  });
5023
5016
  var i, n, s, o, l, d, c, u, h;
5024
5017
  const r = e.messages();
5025
- if (this.element = document.createElement("div"), this.element.classList.add(se.wrapper), this.inputContainer.classList.add(se.inputContainer), (i = a == null ? void 0 : a.container) != null && i.className && this.inputContainer.classList.add(a.container.className), (n = a == null ? void 0 : a.container) != null && n.styles && Object.assign(this.inputContainer.style, a.container.styles), this.input.setAttribute("id", this.id), this.input.setAttribute("auto-complete", "cc-name"), this.input.setAttribute("placeholder", r.card.name.placeholder), this.input.classList.add(se.input), (s = a == null ? void 0 : a.field) != null && s.className && this.input.classList.add(a.field.className), (o = a == null ? void 0 : a.field) != null && o.styles && Object.assign(this.input.style, a.field.styles), (l = a == null ? void 0 : a.placeholder) != null && l.styles && Object.keys(a.placeholder.styles).length) {
5018
+ if (this.element = document.createElement("div"), this.element.classList.add(se.wrapper), this.inputContainer.classList.add(se.inputContainer), (i = a == null ? void 0 : a.container) != null && i.className && this.inputContainer.classList.add(a.container.className), (n = a == null ? void 0 : a.container) != null && n.styles && Object.assign(this.inputContainer.style, a.container.styles), this.input.setAttribute("id", this.id), this.input.setAttribute("autocomplete", "cc-name"), this.input.setAttribute("placeholder", r.card.name.placeholder), this.input.classList.add(se.input), (s = a == null ? void 0 : a.field) != null && s.className && this.input.classList.add(a.field.className), (o = a == null ? void 0 : a.field) != null && o.styles && Object.assign(this.input.style, a.field.styles), (l = a == null ? void 0 : a.placeholder) != null && l.styles && Object.keys(a.placeholder.styles).length) {
5026
5019
  const p = (y) => y.replace(/[A-Z]/g, (f) => "-" + f.toLowerCase()), m = Object.entries(a.placeholder.styles).map(([y, f]) => `${p(y)}:${f};`).join("");
5027
5020
  this.placeholderStyle.textContent = `#${this.id}::placeholder{${m}}`, this.element.appendChild(this.placeholderStyle);
5028
5021
  }
@@ -5040,7 +5033,7 @@ class Jd {
5040
5033
  }), this.render());
5041
5034
  }
5042
5035
  toggleLabelError(e) {
5043
- return H(this, null, function* () {
5036
+ return Y(this, null, function* () {
5044
5037
  if (e) {
5045
5038
  this.inputContainer.classList.add(se.errorInput), this.endContent.classList.remove(se.hidden), this.labelError.classList.remove(se.hidden), yield le(this.labelError, pe.open, pe.transition);
5046
5039
  return;
@@ -5069,20 +5062,20 @@ class Jd {
5069
5062
  return this.toggleLabelError(r), this.isDisabled ? (this.inputContainer.classList.add(se.disabled), this.input.classList.add(se.disabledInput)) : (this.inputContainer.classList.remove(se.disabled), this.input.classList.remove(se.disabledInput)), this.element;
5070
5063
  }
5071
5064
  }
5072
- const ec = "_wrapper_j8wuo_1", ac = "_inputContainer_j8wuo_5", tc = "_input_j8wuo_5", rc = "_endContent_j8wuo_20", nc = "_errorInput_j8wuo_24", ic = "_error_j8wuo_24", oc = "_label_j8wuo_32", sc = "_labelError_j8wuo_36", lc = "_disabled_j8wuo_40", dc = "_disabledInput_j8wuo_44", cc = "_hidden_j8wuo_51", ne = {
5073
- wrapper: ec,
5074
- inputContainer: ac,
5075
- input: tc,
5076
- endContent: rc,
5077
- errorInput: nc,
5078
- error: ic,
5079
- label: oc,
5080
- labelError: sc,
5081
- disabled: lc,
5082
- disabledInput: dc,
5083
- hidden: cc
5065
+ const ac = "_wrapper_j8wuo_1", tc = "_inputContainer_j8wuo_5", rc = "_input_j8wuo_5", nc = "_endContent_j8wuo_20", ic = "_errorInput_j8wuo_24", oc = "_error_j8wuo_24", sc = "_label_j8wuo_32", lc = "_labelError_j8wuo_36", dc = "_disabled_j8wuo_40", cc = "_disabledInput_j8wuo_44", uc = "_hidden_j8wuo_51", ne = {
5066
+ wrapper: ac,
5067
+ inputContainer: tc,
5068
+ input: rc,
5069
+ endContent: nc,
5070
+ errorInput: ic,
5071
+ error: oc,
5072
+ label: sc,
5073
+ labelError: lc,
5074
+ disabled: dc,
5075
+ disabledInput: cc,
5076
+ hidden: uc
5084
5077
  };
5085
- class uc {
5078
+ class pc {
5086
5079
  constructor() {
5087
5080
  A(this, "template", `
5088
5081
  <svg
@@ -5120,7 +5113,7 @@ class uc {
5120
5113
  return this.element;
5121
5114
  }
5122
5115
  }
5123
- class pc {
5116
+ class hc {
5124
5117
  constructor() {
5125
5118
  A(this, "template", `
5126
5119
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' class='${X.svg}'>
@@ -5157,7 +5150,7 @@ class pc {
5157
5150
  return this.element;
5158
5151
  }
5159
5152
  }
5160
- class hc {
5153
+ class mc {
5161
5154
  constructor() {
5162
5155
  A(this, "template", `
5163
5156
  <svg
@@ -5207,7 +5200,7 @@ class hc {
5207
5200
  return this.element;
5208
5201
  }
5209
5202
  }
5210
- class mc {
5203
+ class yc {
5211
5204
  constructor() {
5212
5205
  A(this, "template", `
5213
5206
  <svg
@@ -5262,7 +5255,7 @@ class mc {
5262
5255
  return this.element;
5263
5256
  }
5264
5257
  }
5265
- class yc {
5258
+ class fc {
5266
5259
  constructor() {
5267
5260
  A(this, "template", `
5268
5261
  <svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 23 16' width='23' class='${X.svg}'>
@@ -5302,7 +5295,7 @@ class yc {
5302
5295
  return this.element;
5303
5296
  }
5304
5297
  }
5305
- class fc {
5298
+ class vc {
5306
5299
  constructor() {
5307
5300
  A(this, "template", `
5308
5301
  <svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 24 16' width='24' class='${X.svg}'>
@@ -5325,7 +5318,7 @@ class fc {
5325
5318
  return this.element;
5326
5319
  }
5327
5320
  }
5328
- class vc {
5321
+ class gc {
5329
5322
  constructor() {
5330
5323
  A(this, "template", `
5331
5324
  <svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 24 16' width='24' class='${X.svg}'>
@@ -5357,7 +5350,7 @@ class vc {
5357
5350
  return this.element;
5358
5351
  }
5359
5352
  }
5360
- class gc {
5353
+ class Pc {
5361
5354
  constructor() {
5362
5355
  A(this, "template", `
5363
5356
  <svg
@@ -5406,7 +5399,7 @@ class gc {
5406
5399
  return this.element;
5407
5400
  }
5408
5401
  }
5409
- class Pc {
5402
+ class kc {
5410
5403
  constructor(e, a) {
5411
5404
  A(this, "id", "paynext-card-input-number");
5412
5405
  A(this, "initialCardTypes", Ea.map((e) => e.type));
@@ -5418,14 +5411,14 @@ class Pc {
5418
5411
  A(this, "labelError", document.createElement("span"));
5419
5412
  A(this, "endContent", document.createElement("div"));
5420
5413
  A(this, "error", document.createElement("p"));
5421
- A(this, "unknownCard", new uc());
5422
- A(this, "amex", new pc());
5423
- A(this, "dinerClub", new hc());
5424
- A(this, "discover", new mc());
5425
- A(this, "jcb", new yc());
5426
- A(this, "masterCard", new fc());
5427
- A(this, "unionPay", new vc());
5428
- A(this, "visa", new gc());
5414
+ A(this, "unknownCard", new pc());
5415
+ A(this, "amex", new hc());
5416
+ A(this, "dinerClub", new mc());
5417
+ A(this, "discover", new yc());
5418
+ A(this, "jcb", new fc());
5419
+ A(this, "masterCard", new vc());
5420
+ A(this, "unionPay", new gc());
5421
+ A(this, "visa", new Pc());
5429
5422
  A(this, "placeholderStyle", document.createElement("style"));
5430
5423
  A(this, "supportedCardTypes", this.initialCardTypes);
5431
5424
  A(this, "isTouchSubmit", !1);
@@ -5439,7 +5432,7 @@ class Pc {
5439
5432
  var i, n, s, o, l, d, c, u, h;
5440
5433
  this.translate = e;
5441
5434
  const r = e.messages();
5442
- if (this.element = document.createElement("div"), this.element.classList.add(ne.wrapper), this.inputContainer.classList.add(ne.inputContainer), (i = a == null ? void 0 : a.container) != null && i.className && this.inputContainer.classList.add(a.container.className), (n = a == null ? void 0 : a.container) != null && n.styles && Object.assign(this.inputContainer.style, a.container.styles), this.input.setAttribute("id", this.id), this.input.setAttribute("auto-complete", "cc-number"), this.input.setAttribute("placeholder", "1234 1234 1234 1234"), this.input.classList.add(ne.input), (s = a == null ? void 0 : a.field) != null && s.className && this.input.classList.add(a.field.className), (o = a == null ? void 0 : a.field) != null && o.styles && Object.assign(this.input.style, a.field.styles), (l = a == null ? void 0 : a.placeholder) != null && l.styles && Object.keys(a.placeholder.styles).length) {
5435
+ if (this.element = document.createElement("div"), this.element.classList.add(ne.wrapper), this.inputContainer.classList.add(ne.inputContainer), (i = a == null ? void 0 : a.container) != null && i.className && this.inputContainer.classList.add(a.container.className), (n = a == null ? void 0 : a.container) != null && n.styles && Object.assign(this.inputContainer.style, a.container.styles), this.input.setAttribute("id", this.id), this.input.setAttribute("autocomplete", "cc-number"), this.input.setAttribute("placeholder", "1234 1234 1234 1234"), this.input.setAttribute("inputmode", "numeric"), this.input.setAttribute("pattern", "[0-9]*"), this.input.setAttribute("enterkeyhint", "done"), this.input.classList.add(ne.input), (s = a == null ? void 0 : a.field) != null && s.className && this.input.classList.add(a.field.className), (o = a == null ? void 0 : a.field) != null && o.styles && Object.assign(this.input.style, a.field.styles), (l = a == null ? void 0 : a.placeholder) != null && l.styles && Object.keys(a.placeholder.styles).length) {
5443
5436
  const p = (f) => f.replace(/[A-Z]/g, (g) => "-" + g.toLowerCase()), m = Object.entries(a.placeholder.styles).map(([f, g]) => `${p(f)}:${g} !important;`).join(""), y = `#${this.id}`;
5444
5437
  this.placeholderStyle.textContent = `${y}::placeholder{${m}}
5445
5438
  ${y}::-webkit-input-placeholder{${m}}
@@ -5448,11 +5441,25 @@ ${y}:-ms-input-placeholder{${m}}
5448
5441
  ${y}::-ms-input-placeholder{${m}}
5449
5442
  `, document.head.appendChild(this.placeholderStyle);
5450
5443
  }
5451
- this.endContent.classList.add(ne.endContent), this.endContent.append(...this.getCardIcons()), this.inputContainer.append(this.input, this.endContent), this.label.setAttribute("for", this.id), this.label.classList.add(ne.label), (d = a == null ? void 0 : a.label) != null && d.className && this.label.classList.add(a.label.className), (c = a == null ? void 0 : a.label) != null && c.styles && Object.assign(this.label.style, a.label.styles), this.labelText.textContent = r.card.number.label, this.labelError.textContent = r.card.number.error.required, this.labelError.classList.add(ne.labelError, ne.hidden), (u = a == null ? void 0 : a.error) != null && u.className && this.labelError.classList.add(a.error.className), (h = a == null ? void 0 : a.error) != null && h.styles && Object.assign(this.labelError.style, a.error.styles), this.label.append(this.labelText, this.labelError), this.error.classList.add(ne.error, ne.hidden), this.element.append(this.label, this.inputContainer, this.error), this.input.addEventListener("input", (p) => {
5452
- p.stopPropagation(), this.handleChange(this.input.value);
5444
+ this.endContent.classList.add(ne.endContent), this.endContent.append(...this.getCardIcons()), this.inputContainer.append(this.input, this.endContent), this.label.setAttribute("for", this.id), this.label.classList.add(ne.label), (d = a == null ? void 0 : a.label) != null && d.className && this.label.classList.add(a.label.className), (c = a == null ? void 0 : a.label) != null && c.styles && Object.assign(this.label.style, a.label.styles), this.labelText.textContent = r.card.number.label, this.labelError.textContent = r.card.number.error.required, this.labelError.classList.add(ne.labelError, ne.hidden), (u = a == null ? void 0 : a.error) != null && u.className && this.labelError.classList.add(a.error.className), (h = a == null ? void 0 : a.error) != null && h.styles && Object.assign(this.labelError.style, a.error.styles), this.label.append(this.labelText, this.labelError), this.error.classList.add(ne.error, ne.hidden), this.element.append(this.label, this.inputContainer, this.error), this.input.addEventListener("keydown", (p) => {
5445
+ this.isDisabled || [
5446
+ "Backspace",
5447
+ "Delete",
5448
+ "Tab",
5449
+ "ArrowLeft",
5450
+ "ArrowRight",
5451
+ "Home",
5452
+ "End"
5453
+ ].includes(p.key) || p.ctrlKey || p.metaKey || /^\d$/.test(p.key) || p.preventDefault();
5454
+ }), this.input.addEventListener("input", (p) => {
5455
+ p.stopPropagation();
5456
+ const y = this.input.value.replace(/\D/g, "");
5457
+ this.handleChange(y);
5453
5458
  }), this.input.addEventListener("paste", (p) => {
5454
- var m;
5455
- p.preventDefault(), this.handleChange(((m = p.clipboardData) == null ? void 0 : m.getData("text")) || "");
5459
+ var f;
5460
+ p.preventDefault();
5461
+ const y = (((f = p.clipboardData) == null ? void 0 : f.getData("text")) || "").replace(/\D/g, "");
5462
+ this.handleChange(y);
5456
5463
  }), this.input.addEventListener("blur", () => this.validate(this.input.value)), this.translate.subscribe(({ messages: p }) => {
5457
5464
  this.labelText.textContent = p.card.number.label, this.labelError.textContent = p.card.number.error.required, this.render();
5458
5465
  });
@@ -5460,8 +5467,8 @@ ${y}::-ms-input-placeholder{${m}}
5460
5467
  handleChange(e) {
5461
5468
  if (this.isDisabled) return;
5462
5469
  this.isRequired = !1, this.errorMessage = "", this.isChanged || (this.isChanged = !0);
5463
- const a = br(e).map((n) => n.type), r = Yn(e), i = Vl(e, (r == null ? void 0 : r.type) || "");
5464
- i.replace(/\D/g, "").length === ((r == null ? void 0 : r.maxLength) || 16) && this.validate(i), this.supportedCardTypes = a.length ? a : this.initialCardTypes, this.input.value = i, this.events.change.emit({
5470
+ const a = br(e).map((n) => n.type), r = Yn(e), i = Fl(e, (r == null ? void 0 : r.type) || "");
5471
+ this.supportedCardTypes = a.length ? a : this.initialCardTypes, i.replace(/\D/g, "").length === ((r == null ? void 0 : r.maxLength) || 16) && this.validate(i), this.input.value = i, this.events.change.emit({
5465
5472
  card: i,
5466
5473
  cardType: r == null ? void 0 : r.type,
5467
5474
  cardTypes: a,
@@ -5469,7 +5476,7 @@ ${y}::-ms-input-placeholder{${m}}
5469
5476
  }), this.render();
5470
5477
  }
5471
5478
  toggleLabelError(e) {
5472
- return H(this, null, function* () {
5479
+ return Y(this, null, function* () {
5473
5480
  if (e) {
5474
5481
  this.inputContainer.classList.add(ne.errorInput), this.labelError.classList.remove(ne.hidden), yield le(this.labelError, pe.open, pe.transition);
5475
5482
  return;
@@ -5478,7 +5485,7 @@ ${y}::-ms-input-placeholder{${m}}
5478
5485
  });
5479
5486
  }
5480
5487
  toggleErrorMessage(e) {
5481
- return H(this, null, function* () {
5488
+ return Y(this, null, function* () {
5482
5489
  if (e) {
5483
5490
  this.inputContainer.classList.add(ne.errorInput), this.error.textContent = this.errorMessage, this.error.classList.remove(ne.hidden), yield le(this.error, ve.open, ve.transition);
5484
5491
  return;
@@ -5532,20 +5539,20 @@ ${y}::-ms-input-placeholder{${m}}
5532
5539
  return this.toggleLabelError(a), this.toggleErrorMessage(r), !a && !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;
5533
5540
  }
5534
5541
  }
5535
- const kc = "_inputContainer_1xdj3_5", bc = "_input_1xdj3_5", Ac = "_endContent_1xdj3_20", Cc = "_errorInput_1xdj3_24", Ec = "_error_1xdj3_24", Tc = "_label_1xdj3_32", Ic = "_labelError_1xdj3_36", Nc = "_disabled_1xdj3_40", _c = "_disabledInput_1xdj3_44", Rc = "_hidden_1xdj3_51", Oc = "_securityContent_1xdj3_55", Q = {
5536
- inputContainer: kc,
5537
- input: bc,
5538
- endContent: Ac,
5539
- errorInput: Cc,
5540
- error: Ec,
5541
- label: Tc,
5542
- labelError: Ic,
5543
- disabled: Nc,
5544
- disabledInput: _c,
5545
- hidden: Rc,
5546
- securityContent: Oc
5542
+ const bc = "_inputContainer_1xdj3_5", Ac = "_input_1xdj3_5", Cc = "_endContent_1xdj3_20", Ec = "_errorInput_1xdj3_24", Tc = "_error_1xdj3_24", Ic = "_label_1xdj3_32", Nc = "_labelError_1xdj3_36", _c = "_disabled_1xdj3_40", Rc = "_disabledInput_1xdj3_44", Oc = "_hidden_1xdj3_51", wc = "_securityContent_1xdj3_55", Q = {
5543
+ inputContainer: bc,
5544
+ input: Ac,
5545
+ endContent: Cc,
5546
+ errorInput: Ec,
5547
+ error: Tc,
5548
+ label: Ic,
5549
+ labelError: Nc,
5550
+ disabled: _c,
5551
+ disabledInput: Rc,
5552
+ hidden: Oc,
5553
+ securityContent: wc
5547
5554
  };
5548
- class wc {
5555
+ class Dc {
5549
5556
  constructor() {
5550
5557
  A(this, "template", `
5551
5558
  <svg class='${X.svg}' focusable='false' viewBox='0 0 32 21' role='img' aria-label='CVC'>
@@ -5574,14 +5581,14 @@ class wc {
5574
5581
  return this.element;
5575
5582
  }
5576
5583
  }
5577
- class Dc {
5584
+ class Lc {
5578
5585
  constructor(e, a) {
5579
5586
  A(this, "cvcId", "paynext-card-input-cvc");
5580
5587
  A(this, "expiryId", "paynext-card-input-expiry");
5581
5588
  A(this, "element");
5582
5589
  A(this, "expiryWarning", new Ta());
5583
5590
  A(this, "cvcWarning", new Ta());
5584
- A(this, "cardCvc", new wc());
5591
+ A(this, "cardCvc", new Dc());
5585
5592
  A(this, "expiryInputContainer", document.createElement("div"));
5586
5593
  A(this, "expiryInput", document.createElement("input"));
5587
5594
  A(this, "expiryLabel", document.createElement("label"));
@@ -5611,16 +5618,16 @@ class Dc {
5611
5618
  expiryChange: new ce(),
5612
5619
  cvcChange: new ce()
5613
5620
  });
5614
- var s, o, l, d, c, u, h, p, m, y, f, g, E, N, _, I, O;
5621
+ var s, o, l, d, c, u, h, p, m, y, f, g, E, N, R, I, w;
5615
5622
  this.translate = e;
5616
5623
  const r = e.messages();
5617
- this.element = document.createElement("div"), this.element.classList.add(Q.securityContent), this.expiryInputContainer.classList.add(Q.inputContainer), (s = a == null ? void 0 : a.container) != null && s.className && this.expiryInputContainer.classList.add(a.container.className), (o = a == null ? void 0 : a.container) != null && o.styles && Object.assign(this.expiryInputContainer.style, a.container.styles), this.expiryInput.setAttribute("id", this.expiryId), this.expiryInput.setAttribute("auto-complete", "cc-expiry"), this.expiryInput.setAttribute("placeholder", r.card.expiry.placeholder), this.expiryInput.classList.add(Q.input), (l = a == null ? void 0 : a.field) != null && l.className && this.expiryInput.classList.add(a.field.className), (d = a == null ? void 0 : a.field) != null && d.styles && Object.assign(this.expiryInput.style, a.field.styles), this.expiryEndContent.classList.add(Q.endContent), this.expiryEndContent.appendChild(this.expiryWarning.render()), this.expiryInputContainer.append(this.expiryInput, this.expiryEndContent), this.expiryLabel.setAttribute("for", this.expiryId), this.expiryLabel.classList.add(Q.label), (c = a == null ? void 0 : a.label) != null && c.className && this.expiryLabel.classList.add(a.label.className), (u = a == null ? void 0 : a.label) != null && u.styles && Object.assign(this.expiryLabel.style, a.label.styles), this.expiryLabelText.textContent = r.card.expiry.label, this.expiryLabelError.textContent = r.card.expiry.error.required, this.expiryLabelError.classList.add(Q.labelError, Q.hidden), this.expiryLabel.append(this.expiryLabelText, this.expiryLabelError), this.expiryError.classList.add(Q.error, Q.hidden), (h = a == null ? void 0 : a.error) != null && h.className && this.expiryError.classList.add(a.error.className), (p = a == null ? void 0 : a.error) != null && p.styles && Object.assign(this.expiryError.style, a.error.styles);
5624
+ this.element = document.createElement("div"), this.element.classList.add(Q.securityContent), this.expiryInputContainer.classList.add(Q.inputContainer), (s = a == null ? void 0 : a.container) != null && s.className && this.expiryInputContainer.classList.add(a.container.className), (o = a == null ? void 0 : a.container) != null && o.styles && Object.assign(this.expiryInputContainer.style, a.container.styles), this.expiryInput.setAttribute("id", this.expiryId), this.expiryInput.setAttribute("autocomplete", "cc-exp"), this.expiryInput.setAttribute("placeholder", r.card.expiry.placeholder), this.expiryInput.setAttribute("inputmode", "numeric"), this.expiryInput.setAttribute("pattern", "[0-9]*"), this.expiryInput.setAttribute("enterkeyhint", "next"), this.expiryInput.classList.add(Q.input), (l = a == null ? void 0 : a.field) != null && l.className && this.expiryInput.classList.add(a.field.className), (d = a == null ? void 0 : a.field) != null && d.styles && Object.assign(this.expiryInput.style, a.field.styles), this.expiryEndContent.classList.add(Q.endContent), this.expiryEndContent.appendChild(this.expiryWarning.render()), this.expiryInputContainer.append(this.expiryInput, this.expiryEndContent), this.expiryLabel.setAttribute("for", this.expiryId), this.expiryLabel.classList.add(Q.label), (c = a == null ? void 0 : a.label) != null && c.className && this.expiryLabel.classList.add(a.label.className), (u = a == null ? void 0 : a.label) != null && u.styles && Object.assign(this.expiryLabel.style, a.label.styles), this.expiryLabelText.textContent = r.card.expiry.label, this.expiryLabelError.textContent = r.card.expiry.error.required, this.expiryLabelError.classList.add(Q.labelError, Q.hidden), this.expiryLabel.append(this.expiryLabelText, this.expiryLabelError), this.expiryError.classList.add(Q.error, Q.hidden), (h = a == null ? void 0 : a.error) != null && h.className && this.expiryError.classList.add(a.error.className), (p = a == null ? void 0 : a.error) != null && p.styles && Object.assign(this.expiryError.style, a.error.styles);
5618
5625
  const i = document.createElement("div");
5619
- if (i.appendChild(this.expiryError), this.cvcInputContainer.classList.add(Q.inputContainer), (m = a == null ? void 0 : a.container) != null && m.className && this.cvcInputContainer.classList.add(a.container.className), (y = a == null ? void 0 : a.container) != null && y.styles && Object.assign(this.cvcInputContainer.style, a.container.styles), this.cvcInput.setAttribute("id", this.cvcId), this.cvcInput.setAttribute("auto-complete", "cc-cvc"), this.cvcInput.setAttribute("placeholder", r.card.cvc.placeholder), this.cvcInput.classList.add(Q.input), (f = a == null ? void 0 : a.field) != null && f.className && this.cvcInput.classList.add(a.field.className), (g = a == null ? void 0 : a.field) != null && g.styles && Object.assign(this.cvcInput.style, a.field.styles), (E = a == null ? void 0 : a.placeholder) != null && E.styles && Object.keys(a.placeholder.styles).length) {
5620
- const w = (U) => U.replace(/[A-Z]/g, (G) => "-" + G.toLowerCase()), x = Object.entries(a.placeholder.styles).map(([U, G]) => `${w(U)}:${G};`).join("");
5626
+ if (i.appendChild(this.expiryError), this.cvcInputContainer.classList.add(Q.inputContainer), (m = a == null ? void 0 : a.container) != null && m.className && this.cvcInputContainer.classList.add(a.container.className), (y = a == null ? void 0 : a.container) != null && y.styles && Object.assign(this.cvcInputContainer.style, a.container.styles), this.cvcInput.setAttribute("id", this.cvcId), this.cvcInput.setAttribute("autocomplete", "cc-csc"), this.cvcInput.setAttribute("placeholder", r.card.cvc.placeholder), this.cvcInput.setAttribute("inputmode", "numeric"), this.cvcInput.setAttribute("pattern", "[0-9]*"), this.cvcInput.setAttribute("enterkeyhint", "done"), this.cvcInput.classList.add(Q.input), (f = a == null ? void 0 : a.field) != null && f.className && this.cvcInput.classList.add(a.field.className), (g = a == null ? void 0 : a.field) != null && g.styles && Object.assign(this.cvcInput.style, a.field.styles), (E = a == null ? void 0 : a.placeholder) != null && E.styles && Object.keys(a.placeholder.styles).length) {
5627
+ const _ = (V) => V.replace(/[A-Z]/g, (H) => "-" + H.toLowerCase()), x = Object.entries(a.placeholder.styles).map(([V, H]) => `${_(V)}:${H};`).join("");
5621
5628
  this.placeholderStyle.textContent = `#${this.expiryId}::placeholder{${x}}#${this.cvcId}::placeholder{${x}}`, this.element.appendChild(this.placeholderStyle);
5622
5629
  }
5623
- this.cvcEndContent.classList.add(Q.endContent), this.cvcEndContent.appendChild(this.cardCvc.render()), this.cvcInputContainer.append(this.cvcInput, this.cvcEndContent), this.cvcLabel.setAttribute("for", this.cvcId), this.cvcLabel.classList.add(Q.label), (N = a == null ? void 0 : a.label) != null && N.className && this.cvcLabel.classList.add(a.label.className), (_ = a == null ? void 0 : a.label) != null && _.styles && Object.assign(this.cvcLabel.style, a.label.styles), this.cvcLabelText.textContent = r.card.cvc.label, this.cvcLabelError.textContent = r.card.cvc.error.required, this.cvcLabelError.classList.add(Q.labelError, Q.hidden), (I = a == null ? void 0 : a.error) != null && I.className && this.cvcLabel.classList.add(a.error.className), (O = a == null ? void 0 : a.error) != null && O.styles && Object.assign(this.cvcLabelError.style, a.error.styles), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(Q.error, Q.hidden);
5630
+ this.cvcEndContent.classList.add(Q.endContent), this.cvcEndContent.appendChild(this.cardCvc.render()), this.cvcInputContainer.append(this.cvcInput, this.cvcEndContent), this.cvcLabel.setAttribute("for", this.cvcId), this.cvcLabel.classList.add(Q.label), (N = a == null ? void 0 : a.label) != null && N.className && this.cvcLabel.classList.add(a.label.className), (R = a == null ? void 0 : a.label) != null && R.styles && Object.assign(this.cvcLabel.style, a.label.styles), this.cvcLabelText.textContent = r.card.cvc.label, this.cvcLabelError.textContent = r.card.cvc.error.required, this.cvcLabelError.classList.add(Q.labelError, Q.hidden), (I = a == null ? void 0 : a.error) != null && I.className && this.cvcLabel.classList.add(a.error.className), (w = a == null ? void 0 : a.error) != null && w.styles && Object.assign(this.cvcLabelError.style, a.error.styles), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(Q.error, Q.hidden);
5624
5631
  const n = document.createElement("div");
5625
5632
  n.appendChild(this.cvcError), this.element.append(
5626
5633
  this.expiryLabel,
@@ -5629,18 +5636,46 @@ class Dc {
5629
5636
  this.cvcInputContainer,
5630
5637
  i,
5631
5638
  n
5632
- ), this.expiryInput.addEventListener("input", (w) => {
5633
- w.preventDefault(), this.handleExpiryChange(this.expiryInput.value);
5634
- }), this.expiryInput.addEventListener("paste", (w) => {
5635
- var x;
5636
- w.preventDefault(), this.handleExpiryChange(((x = w.clipboardData) == null ? void 0 : x.getData("text")) || "");
5637
- }), this.expiryInput.addEventListener("blur", () => this.validateExpiry(this.expiryInput.value)), this.cvcInput.addEventListener("input", (w) => {
5638
- w.preventDefault(), this.handleCvcChange(this.cvcInput.value);
5639
- }), this.cvcInput.addEventListener("paste", (w) => {
5640
- var x;
5641
- w.preventDefault(), this.handleCvcChange(((x = w.clipboardData) == null ? void 0 : x.getData("text")) || "");
5642
- }), this.cvcInput.addEventListener("blur", () => this.validateCvc(this.cvcInput.value)), this.translate.subscribe(({ messages: w }) => {
5643
- this.cvcInput.setAttribute("placeholder", w.card.cvc.placeholder), this.expiryInput.setAttribute("placeholder", w.card.expiry.placeholder), this.expiryLabelText.textContent = w.card.expiry.label, this.cvcLabelText.textContent = w.card.cvc.label, this.expiryLabelError.textContent = w.card.expiry.error.required, this.cvcLabelError.textContent = w.card.cvc.error.required, this.render();
5639
+ ), this.expiryInput.addEventListener("input", (_) => {
5640
+ _.preventDefault();
5641
+ const V = this.expiryInput.value.replace(/\D/g, "");
5642
+ this.handleExpiryChange(V);
5643
+ }), this.expiryInput.addEventListener("paste", (_) => {
5644
+ var H;
5645
+ _.preventDefault();
5646
+ const V = (((H = _.clipboardData) == null ? void 0 : H.getData("text")) || "").replace(/\D/g, "");
5647
+ this.handleExpiryChange(V);
5648
+ }), this.expiryInput.addEventListener("keydown", (_) => {
5649
+ this.isDisabled || [
5650
+ "Backspace",
5651
+ "Delete",
5652
+ "Tab",
5653
+ "ArrowLeft",
5654
+ "ArrowRight",
5655
+ "Home",
5656
+ "End"
5657
+ ].includes(_.key) || _.ctrlKey || _.metaKey || /^\d$/.test(_.key) || _.preventDefault();
5658
+ }), this.expiryInput.addEventListener("blur", () => this.validateExpiry(this.expiryInput.value)), this.cvcInput.addEventListener("input", (_) => {
5659
+ _.preventDefault();
5660
+ const V = this.cvcInput.value.replace(/\D/g, "");
5661
+ this.handleCvcChange(V);
5662
+ }), this.cvcInput.addEventListener("paste", (_) => {
5663
+ var H;
5664
+ _.preventDefault();
5665
+ const V = (((H = _.clipboardData) == null ? void 0 : H.getData("text")) || "").replace(/\D/g, "");
5666
+ this.handleCvcChange(V);
5667
+ }), this.cvcInput.addEventListener("keydown", (_) => {
5668
+ this.isDisabled || [
5669
+ "Backspace",
5670
+ "Delete",
5671
+ "Tab",
5672
+ "ArrowLeft",
5673
+ "ArrowRight",
5674
+ "Home",
5675
+ "End"
5676
+ ].includes(_.key) || _.ctrlKey || _.metaKey || /^\d$/.test(_.key) || _.preventDefault();
5677
+ }), this.cvcInput.addEventListener("blur", () => this.validateCvc(this.cvcInput.value)), this.translate.subscribe(({ messages: _ }) => {
5678
+ this.cvcInput.setAttribute("placeholder", _.card.cvc.placeholder), this.expiryInput.setAttribute("placeholder", _.card.expiry.placeholder), this.expiryLabelText.textContent = _.card.expiry.label, this.cvcLabelText.textContent = _.card.cvc.label, this.expiryLabelError.textContent = _.card.expiry.error.required, this.cvcLabelError.textContent = _.card.cvc.error.required, this.render();
5644
5679
  });
5645
5680
  }
5646
5681
  cvcValidator(e) {
@@ -5663,28 +5698,28 @@ class Dc {
5663
5698
  handleCvcChange(e) {
5664
5699
  if (this.isDisabled) return;
5665
5700
  this.isCvcRequired = !1, this.cvcErrorMessage = "", this.isCvcChanged || (this.isCvcChanged = !0);
5666
- const a = Fl(e, this.cardType || ""), r = Fe.getTypeInfo(this.cardType || "");
5701
+ const a = Bl(e, this.cardType || ""), r = Fe.getTypeInfo(this.cardType || "");
5667
5702
  a.length === (r == null ? void 0 : r.code.size) && this.validateCvc(a), this.events.cvcChange.emit({
5668
5703
  value: a,
5669
5704
  isValid: this.cvcValidator(a) === null
5670
5705
  }), this.cvcInput.value = a, this.render();
5671
5706
  }
5672
5707
  toggleCvcLabelError(e) {
5673
- return H(this, null, function* () {
5708
+ return Y(this, null, function* () {
5674
5709
  if (e) {
5675
5710
  this.cvcInputContainer.classList.add(Q.errorInput), this.cvcLabelError.classList.remove(Q.hidden), yield le(this.cvcLabelError, pe.open, pe.transition);
5676
5711
  return;
5677
5712
  }
5678
- yield le(this.cvcLabelError, pe.close, pe.transition);
5713
+ yield le(this.cvcLabelError, pe.close, pe.transition), this.cvcLabelError.classList.add(Q.hidden);
5679
5714
  });
5680
5715
  }
5681
5716
  toggleCvcErrorMessage(e) {
5682
- return H(this, null, function* () {
5717
+ return Y(this, null, function* () {
5683
5718
  if (e) {
5684
5719
  this.cvcInputContainer.classList.add(Q.errorInput), this.cvcError.textContent = this.cvcErrorMessage, this.cvcError.classList.remove(Q.hidden), yield le(this.cvcError, ve.open, ve.transition);
5685
5720
  return;
5686
5721
  }
5687
- yield le(this.cvcError, ve.close, ve.transition);
5722
+ yield le(this.cvcError, ve.close, ve.transition), this.cvcError.classList.add(Q.hidden);
5688
5723
  });
5689
5724
  }
5690
5725
  /* ----- Expiry ----- */
@@ -5710,14 +5745,14 @@ class Dc {
5710
5745
  handleExpiryChange(e) {
5711
5746
  if (this.isDisabled) return;
5712
5747
  this.isExpiryRequired = !1, this.expiryErrorMessage = "", this.isExpiryChanged || (this.isExpiryChanged = !0);
5713
- const a = Bl(e, this.expiryPrevValue);
5748
+ const a = Ul(e, this.expiryPrevValue);
5714
5749
  a.length === 7 && this.validateExpiry(a), this.events.expiryChange.emit({
5715
5750
  value: a,
5716
5751
  isValid: this.expiryValidator(a) === null
5717
5752
  }), this.expiryPrevValue = a, this.expiryInput.value = a, this.render();
5718
5753
  }
5719
5754
  toggleExpiryLabelError(e) {
5720
- return H(this, null, function* () {
5755
+ return Y(this, null, function* () {
5721
5756
  if (e) {
5722
5757
  this.expiryInputContainer.classList.add(Q.errorInput), this.expiryLabelError.classList.remove(Q.hidden), yield le(this.expiryLabelError, pe.open, pe.transition);
5723
5758
  return;
@@ -5726,7 +5761,7 @@ class Dc {
5726
5761
  });
5727
5762
  }
5728
5763
  toggleExpiryErrorMessage(e) {
5729
- return H(this, null, function* () {
5764
+ return Y(this, null, function* () {
5730
5765
  if (e) {
5731
5766
  this.expiryInputContainer.classList.add(Q.errorInput), this.expiryError.textContent = this.expiryErrorMessage, this.expiryError.classList.remove(Q.hidden), yield le(this.expiryError, ve.open, ve.transition);
5732
5767
  return;
@@ -5763,7 +5798,7 @@ class Dc {
5763
5798
  return this.toggleCvcLabelError(n), this.toggleCvcErrorMessage(s), !n && !s ? (this.cvcInputContainer.classList.remove(Q.errorInput), this.cvcEndContent.innerHTML = "", this.cvcEndContent.appendChild(this.cardCvc.render())) : (this.cvcEndContent.innerHTML = "", this.cvcEndContent.appendChild(this.cvcWarning.render())), this.isDisabled ? (this.expiryInputContainer.classList.add(Q.disabled), this.expiryInput.classList.add(Q.disabledInput), this.cvcInputContainer.classList.add(Q.disabled), this.cvcInput.classList.add(Q.disabledInput)) : (this.expiryInputContainer.classList.remove(Q.disabled), this.expiryInput.classList.remove(Q.disabledInput), this.cvcInputContainer.classList.remove(Q.disabled), this.cvcInput.classList.remove(Q.disabledInput)), this.element;
5764
5799
  }
5765
5800
  }
5766
- class Lc {
5801
+ class xc {
5767
5802
  constructor({ translate: e, className: a, stylesState: r, isDefaultVariant: i }) {
5768
5803
  A(this, "element");
5769
5804
  A(this, "error");
@@ -5779,7 +5814,7 @@ class Lc {
5779
5814
  close: new ce()
5780
5815
  });
5781
5816
  const n = r.getState();
5782
- this.translate = e, this.element = document.createElement("form"), this.error = new Ae(e), this.submit = new Fd(e, n.SubmitButton), this.back = new xd(), this.number = new Pc(e, n.Input), this.name = new Jd(e, n.Input), this.cardSecurity = new Dc(e, n.Input), this.error.addClassName(Ce.hidden), this.element.classList.add(Ce.cardForm, a || "");
5817
+ this.translate = e, this.element = document.createElement("form"), this.error = new Ae(e), this.submit = new Bd(e, n.SubmitButton), this.back = new zd(), this.number = new kc(e, n.Input), this.name = new ec(e, n.Input), this.cardSecurity = new Lc(e, n.Input), this.error.addClassName(Ce.hidden), this.element.classList.add(Ce.cardForm, a || "");
5783
5818
  const s = this.back.render();
5784
5819
  i && (this.isBackVisible = !1, s.classList.add(Ce.hidden), this.element.classList.add(Ce.topOffset)), this.element.append(
5785
5820
  s,
@@ -5836,7 +5871,7 @@ class Lc {
5836
5871
  return this.element;
5837
5872
  }
5838
5873
  }
5839
- class xc {
5874
+ class zc {
5840
5875
  constructor() {
5841
5876
  A(this, "template", `
5842
5877
  <svg
@@ -5863,15 +5898,15 @@ class xc {
5863
5898
  return this.element;
5864
5899
  }
5865
5900
  }
5866
- const zc = "_container_hoha1_1", Sc = "_title_hoha1_5", wr = {
5867
- container: zc,
5868
- title: Sc
5901
+ const Sc = "_container_hoha1_1", Mc = "_title_hoha1_5", wr = {
5902
+ container: Sc,
5903
+ title: Mc
5869
5904
  };
5870
- class Mc {
5905
+ class jc {
5871
5906
  constructor(e) {
5872
5907
  A(this, "element");
5873
5908
  A(this, "message", document.createElement("p"));
5874
- A(this, "icon", new xc());
5909
+ A(this, "icon", new zc());
5875
5910
  this.translate = e, this.element = document.createElement("div"), this.element.classList.add(wr.container), this.message.classList.add(wr.title), this.message.textContent = e.messages().status.success, this.element.append(this.icon.render(), this.message), this.translate.subscribe(({ messages: a }) => {
5876
5911
  this.message.textContent = a.status.success;
5877
5912
  });
@@ -5886,31 +5921,31 @@ class Mc {
5886
5921
  return this.element;
5887
5922
  }
5888
5923
  }
5889
- class jc {
5924
+ class Vc {
5890
5925
  constructor(e) {
5891
5926
  A(this, "isLoading", !1);
5892
5927
  A(this, "isFormOpen", !1);
5893
5928
  A(this, "checkout");
5894
5929
  A(this, "container", document.createElement("div"));
5895
- A(this, "loader", new El());
5930
+ A(this, "loader", new Tl());
5896
5931
  A(this, "success");
5897
5932
  A(this, "buttons");
5898
5933
  A(this, "form");
5899
- this.config = e, this.buttons = new Od(e), this.form = new Lc({
5934
+ this.config = e, this.buttons = new wd(e), this.form = new xc({
5900
5935
  translate: e.state.translate,
5901
5936
  className: ye.hidden,
5902
5937
  stylesState: e.state.styles,
5903
5938
  isDefaultVariant: e.state.checkout.getState().variant === "default"
5904
- }), this.success = new Mc(e.state.translate), this.success.addClassName(ye.hidden), this.container.append(this.loader.render(), this.buttons.render(), this.form.render()), this.checkout = document.createElement("div"), this.checkout.classList.add(ye.checkout), this.checkout.append(this.container, this.success.render());
5939
+ }), this.success = new jc(e.state.translate), this.success.addClassName(ye.hidden), this.container.append(this.loader.render(), this.buttons.render(), this.form.render()), this.checkout = document.createElement("div"), this.checkout.classList.add(ye.checkout), this.checkout.append(this.container, this.success.render());
5905
5940
  }
5906
5941
  // init
5907
5942
  init() {
5908
- return H(this, null, function* () {
5909
- this.buttons.addEventListener("ready", () => H(this, null, function* () {
5943
+ return Y(this, null, function* () {
5944
+ this.buttons.addEventListener("ready", () => Y(this, null, function* () {
5910
5945
  this.loader.setClassName(ye.hidden);
5911
5946
  const { variant: e } = this.config.state.checkout.getState();
5912
5947
  this.form.setDefaultVariant(e === "default"), this.buttons.showButton(), e === "default" && (this.form.element.classList.remove(ye.hidden), this.isFormOpen = !0);
5913
- })), this.buttons.addEventListener("open", () => H(this, null, function* () {
5948
+ })), this.buttons.addEventListener("open", () => Y(this, null, function* () {
5914
5949
  this.isLoading || (this.hideError(), yield le(this.buttons.buttons, ga.close, ga.transition), this.buttons.buttons.classList.add(ye.hidden), this.form.element.classList.add(ye.formInitial), this.form.element.classList.remove(ye.hidden), yield le(this.form.element, Se.open, Se.transition), this.isFormOpen = !0);
5915
5950
  })), this.buttons.addEventListener("error", () => {
5916
5951
  const { onCheckoutFail: e } = this.config.state.checkout.getState(), a = this.config.state.translate.messages();
@@ -5930,12 +5965,12 @@ class jc {
5930
5965
  case "venmo":
5931
5966
  return this.handleSuccess({ clientSession: a, braintree: { nonce: e } });
5932
5967
  }
5933
- }), this.form.addEventListener("close", () => H(this, null, function* () {
5968
+ }), this.form.addEventListener("close", () => Y(this, null, function* () {
5934
5969
  if (this.isLoading) return;
5935
5970
  this.hideError(), yield le(this.form.element, Se.close, Se.transition), this.form.element.classList.add(ye.hidden);
5936
5971
  const { variant: e } = this.config.state.checkout.getState();
5937
5972
  e !== "default" && (this.buttons.buttons.classList.add(ye.btnsInitial), this.buttons.buttons.classList.remove(ye.hidden), yield le(this.buttons.buttons, ga.open, ga.transition)), this.isFormOpen = !1;
5938
- })), this.form.addEventListener("submit", (e) => H(this, null, function* () {
5973
+ })), this.form.addEventListener("submit", (e) => Y(this, null, function* () {
5939
5974
  if (this.isLoading || (this.form.touchSubmit(), !this.form.validate())) return;
5940
5975
  const r = e.number.replace(/\D/g, ""), i = this.config.state.checkout.getState(), n = this.config.service.ev.getEv(), [s, o] = yield Promise.all([n.encrypt(r), n.encrypt(e.cvc)]), [l, d] = e.expiry.split("/");
5941
5976
  yield this.handleSuccess({
@@ -5968,13 +6003,13 @@ class jc {
5968
6003
  }
5969
6004
  // handle success
5970
6005
  handleSuccess(e) {
5971
- return H(this, null, function* () {
6006
+ return Y(this, null, function* () {
5972
6007
  var i, n, s;
5973
6008
  if (this.isLoading) return;
5974
6009
  this.hideError(), this.setLoading(!0);
5975
6010
  const a = this.config.state.checkout.getState(), r = this.config.state.translate.messages();
5976
6011
  try {
5977
- const o = yield Zl(e, a.environment, a.apiVersion);
6012
+ const o = yield Xl(e, a.environment, a.apiVersion);
5978
6013
  if (o.error)
5979
6014
  throw new Error(((i = o.error) == null ? void 0 : i.message) || r.status.error);
5980
6015
  if (o.three_ds_session_id) {
@@ -6001,7 +6036,7 @@ class jc {
6001
6036
  }
6002
6037
  // show success
6003
6038
  showSuccess() {
6004
- return H(this, null, function* () {
6039
+ return Y(this, null, function* () {
6005
6040
  this.container.classList.add(ye.hidden), this.success.removeClassName(ye.hidden), yield le(this.success.element, Se.open, Se.transition);
6006
6041
  });
6007
6042
  }
@@ -6022,14 +6057,14 @@ class jc {
6022
6057
  return this.checkout;
6023
6058
  }
6024
6059
  }
6025
- class Vc {
6060
+ class Fc {
6026
6061
  constructor(e) {
6027
6062
  A(this, "component");
6028
6063
  this.config = e;
6029
6064
  }
6030
6065
  // init
6031
6066
  init() {
6032
- return H(this, null, function* () {
6067
+ return Y(this, null, function* () {
6033
6068
  const { checkout: e, transaction: a, translate: r, styles: i } = this.config.state, { apiVersion: n } = e.getState();
6034
6069
  e.subscribe(({ clientToken: s, environment: o, locale: l, translate: d, styles: c }) => {
6035
6070
  l && r.locale() !== l && r.setLocale(l), d && r.overrides() !== d && r.setMessages(d), c && i.setState(c), a.updateTransaction(s, o, n).then((u) => {
@@ -6045,8 +6080,8 @@ class Vc {
6045
6080
  }
6046
6081
  // mount
6047
6082
  mount() {
6048
- return H(this, null, function* () {
6049
- return this.component || (this.component = new jc(this.config)), yield this.init(), yield this.component.init(), this.component.render();
6083
+ return Y(this, null, function* () {
6084
+ return this.component || (this.component = new Vc(this.config)), yield this.init(), yield this.component.init(), this.component.render();
6050
6085
  });
6051
6086
  }
6052
6087
  }
@@ -6070,39 +6105,39 @@ class Ia {
6070
6105
  return this.observer.addListener(e);
6071
6106
  }
6072
6107
  }
6073
- const Fc = {
6108
+ const Bc = {
6074
6109
  clientToken: "",
6075
6110
  environment: "sandbox",
6076
6111
  apiVersion: "1.0.0",
6077
6112
  variant: "default"
6078
6113
  };
6079
- class Bc extends Ia {
6114
+ class Uc extends Ia {
6080
6115
  constructor(e) {
6081
- super(K(K({}, Fc), e));
6116
+ super(K(K({}, Bc), e));
6082
6117
  }
6083
6118
  }
6084
- const Uc = {};
6085
- class Kc extends Ia {
6119
+ const Kc = {};
6120
+ class qc extends Ia {
6086
6121
  constructor(e) {
6087
- super(K(K({}, Uc), e));
6122
+ super(K(K({}, Kc), e));
6088
6123
  }
6089
6124
  }
6090
- class qc extends Ia {
6125
+ class Hc extends Ia {
6091
6126
  constructor(a) {
6092
6127
  super(a || null);
6093
6128
  A(this, "clientToken", "");
6094
6129
  }
6095
6130
  // update transaction
6096
6131
  updateTransaction(a, r, i) {
6097
- return H(this, null, function* () {
6132
+ return Y(this, null, function* () {
6098
6133
  if (this.clientToken === a) return this.getState();
6099
6134
  this.clientToken = a;
6100
- const n = yield Jl(a, r, i);
6135
+ const n = yield ed(a, r, i);
6101
6136
  return this.setState(n), n;
6102
6137
  });
6103
6138
  }
6104
6139
  }
6105
- const Hc = {
6140
+ const Yc = {
6106
6141
  card: {
6107
6142
  title: "طريقة الدفع",
6108
6143
  number: {
@@ -6269,7 +6304,7 @@ const Hc = {
6269
6304
  paypalPopupClosed: "تم اكتشاف إغلاق النافذة المنبثقة",
6270
6305
  applePayClosed: "تم الإلغاء"
6271
6306
  }
6272
- }, Yc = {
6307
+ }, Gc = {
6273
6308
  card: {
6274
6309
  title: "Метод на плащане",
6275
6310
  number: {
@@ -6436,7 +6471,7 @@ const Hc = {
6436
6471
  paypalPopupClosed: "Засечено затваряне на изскачащ прозорец",
6437
6472
  applePayClosed: "Отменено"
6438
6473
  }
6439
- }, Gc = {
6474
+ }, Wc = {
6440
6475
  card: {
6441
6476
  title: "Způsob platby",
6442
6477
  number: {
@@ -6603,7 +6638,7 @@ const Hc = {
6603
6638
  paypalPopupClosed: "Zjištěno zavření vyskakovacího okna",
6604
6639
  applePayClosed: "Zrušeno"
6605
6640
  }
6606
- }, Wc = {
6641
+ }, $c = {
6607
6642
  card: {
6608
6643
  title: "Betalingsmetode",
6609
6644
  number: {
@@ -6770,7 +6805,7 @@ const Hc = {
6770
6805
  paypalPopupClosed: "Registreret lukning af pop op‑vindue",
6771
6806
  applePayClosed: "Annulleret"
6772
6807
  }
6773
- }, $c = {
6808
+ }, Qc = {
6774
6809
  card: {
6775
6810
  title: "Zahlungsmethode",
6776
6811
  number: {
@@ -6802,7 +6837,7 @@ const Hc = {
6802
6837
  }
6803
6838
  },
6804
6839
  name: {
6805
- label: "Name des/der Karteninhaber/in",
6840
+ label: "Name des/der Karteninhaber",
6806
6841
  placeholder: "Vollständiger Name",
6807
6842
  error: {
6808
6843
  required: "Pflichtfeld",
@@ -6937,7 +6972,7 @@ const Hc = {
6937
6972
  paypalPopupClosed: "Schließen des Pop-ups erkannt",
6938
6973
  applePayClosed: "Abgebrochen"
6939
6974
  }
6940
- }, Qc = {
6975
+ }, Zc = {
6941
6976
  card: {
6942
6977
  title: "Μέθοδος πληρωμής",
6943
6978
  number: {
@@ -7271,7 +7306,7 @@ const Hc = {
7271
7306
  paypalPopupClosed: "Detected popup close",
7272
7307
  applePayClosed: "Cancelled"
7273
7308
  }
7274
- }, Zc = {
7309
+ }, Xc = {
7275
7310
  card: {
7276
7311
  title: "Método de pago",
7277
7312
  number: {
@@ -7438,7 +7473,7 @@ const Hc = {
7438
7473
  paypalPopupClosed: "Cierre de ventana emergente detectado",
7439
7474
  applePayClosed: "Cancelado"
7440
7475
  }
7441
- }, Xc = {
7476
+ }, Jc = {
7442
7477
  card: {
7443
7478
  title: "Makseviis",
7444
7479
  number: {
@@ -7605,7 +7640,7 @@ const Hc = {
7605
7640
  paypalPopupClosed: "Tuvastati hüpikakna sulgemine",
7606
7641
  applePayClosed: "Tühistatud"
7607
7642
  }
7608
- }, Jc = {
7643
+ }, eu = {
7609
7644
  card: {
7610
7645
  title: "Maksutapa",
7611
7646
  number: {
@@ -7772,7 +7807,7 @@ const Hc = {
7772
7807
  paypalPopupClosed: "Havaittiin ponnahdusikkunan sulkeminen",
7773
7808
  applePayClosed: "Peruutettu"
7774
7809
  }
7775
- }, eu = {
7810
+ }, au = {
7776
7811
  card: {
7777
7812
  title: "Paraan ng pagbabayad",
7778
7813
  number: {
@@ -7939,7 +7974,7 @@ const Hc = {
7939
7974
  paypalPopupClosed: "Nakita ang pagsasara ng pop-up",
7940
7975
  applePayClosed: "Kanselado"
7941
7976
  }
7942
- }, au = {
7977
+ }, tu = {
7943
7978
  card: {
7944
7979
  title: "Moyen de paiement",
7945
7980
  number: {
@@ -8106,7 +8141,7 @@ const Hc = {
8106
8141
  paypalPopupClosed: "Fermeture de fenêtre contextuelle détectée",
8107
8142
  applePayClosed: "Annulé"
8108
8143
  }
8109
- }, tu = {
8144
+ }, ru = {
8110
8145
  card: {
8111
8146
  title: "Način plaćanja",
8112
8147
  number: {
@@ -8273,7 +8308,7 @@ const Hc = {
8273
8308
  paypalPopupClosed: "Otkriveno zatvaranje skočnog prozora",
8274
8309
  applePayClosed: "Otkazano"
8275
8310
  }
8276
- }, ru = {
8311
+ }, nu = {
8277
8312
  card: {
8278
8313
  title: "Fizetési mód",
8279
8314
  number: {
@@ -8440,7 +8475,7 @@ const Hc = {
8440
8475
  paypalPopupClosed: "Észlelt felugró ablak bezárása",
8441
8476
  applePayClosed: "Megszakítva"
8442
8477
  }
8443
- }, nu = {
8478
+ }, iu = {
8444
8479
  card: {
8445
8480
  title: "Metode pembayaran",
8446
8481
  number: {
@@ -8607,7 +8642,7 @@ const Hc = {
8607
8642
  paypalPopupClosed: "Terdeteksi penutupan jendela pop-up",
8608
8643
  applePayClosed: "Dibatalkan"
8609
8644
  }
8610
- }, iu = {
8645
+ }, ou = {
8611
8646
  card: {
8612
8647
  title: "Modalità di pagamento",
8613
8648
  number: {
@@ -8774,7 +8809,7 @@ const Hc = {
8774
8809
  paypalPopupClosed: "Rilevata chiusura del popup",
8775
8810
  applePayClosed: "Annullato"
8776
8811
  }
8777
- }, ou = {
8812
+ }, su = {
8778
8813
  card: {
8779
8814
  title: "支払い方法",
8780
8815
  number: {
@@ -8941,7 +8976,7 @@ const Hc = {
8941
8976
  paypalPopupClosed: "ポップアップの閉鎖を検出しました",
8942
8977
  applePayClosed: "キャンセルされました"
8943
8978
  }
8944
- }, su = {
8979
+ }, lu = {
8945
8980
  card: {
8946
8981
  title: "결제 방식",
8947
8982
  number: {
@@ -9108,7 +9143,7 @@ const Hc = {
9108
9143
  paypalPopupClosed: "팝업 창 닫힘 감지됨",
9109
9144
  applePayClosed: "취소됨"
9110
9145
  }
9111
- }, lu = {
9146
+ }, du = {
9112
9147
  card: {
9113
9148
  title: "Mokėjimo būdas",
9114
9149
  number: {
@@ -9275,7 +9310,7 @@ const Hc = {
9275
9310
  paypalPopupClosed: "Aptiktas iššokančiojo lango uždarymas",
9276
9311
  applePayClosed: "Atšaukta"
9277
9312
  }
9278
- }, du = {
9313
+ }, cu = {
9279
9314
  card: {
9280
9315
  title: "Maksājumu veids",
9281
9316
  number: {
@@ -9442,7 +9477,7 @@ const Hc = {
9442
9477
  paypalPopupClosed: "Konstatēta uznirstošā loga aizvēršana",
9443
9478
  applePayClosed: "Atcelts"
9444
9479
  }
9445
- }, cu = {
9480
+ }, uu = {
9446
9481
  card: {
9447
9482
  title: "Kaedah pembayaran",
9448
9483
  number: {
@@ -9609,7 +9644,7 @@ const Hc = {
9609
9644
  paypalPopupClosed: "Pengesan penutupan tetingkap timbul",
9610
9645
  applePayClosed: "Dibatalkan"
9611
9646
  }
9612
- }, uu = {
9647
+ }, pu = {
9613
9648
  card: {
9614
9649
  title: "Metodu tal-ħlas",
9615
9650
  number: {
@@ -9776,7 +9811,7 @@ const Hc = {
9776
9811
  paypalPopupClosed: "Innotata għeluq ta’ pop‑up",
9777
9812
  applePayClosed: "Ikkanċellat"
9778
9813
  }
9779
- }, pu = {
9814
+ }, hu = {
9780
9815
  card: {
9781
9816
  title: "Betalingsmetode",
9782
9817
  number: {
@@ -9943,7 +9978,7 @@ const Hc = {
9943
9978
  paypalPopupClosed: "Oppdaget lukking av popup‑vindu",
9944
9979
  applePayClosed: "Avbrutt"
9945
9980
  }
9946
- }, hu = {
9981
+ }, mu = {
9947
9982
  card: {
9948
9983
  title: "Betalingsmetode",
9949
9984
  number: {
@@ -10110,7 +10145,7 @@ const Hc = {
10110
10145
  paypalPopupClosed: "Oppdaget lukking av popup‑vindu",
10111
10146
  applePayClosed: "Avbrutt"
10112
10147
  }
10113
- }, mu = {
10148
+ }, yu = {
10114
10149
  card: {
10115
10150
  title: "Betaalmethode",
10116
10151
  number: {
@@ -10277,7 +10312,7 @@ const Hc = {
10277
10312
  paypalPopupClosed: "Detectie van sluiten van pop‑up",
10278
10313
  applePayClosed: "Geannuleerd"
10279
10314
  }
10280
- }, yu = {
10315
+ }, fu = {
10281
10316
  card: {
10282
10317
  title: "Metoda płatności",
10283
10318
  number: {
@@ -10444,7 +10479,7 @@ const Hc = {
10444
10479
  paypalPopupClosed: "Wykryto zamknięcie okna podręcznego",
10445
10480
  applePayClosed: "Anulowano"
10446
10481
  }
10447
- }, fu = {
10482
+ }, vu = {
10448
10483
  card: {
10449
10484
  title: "Forma de pagamento",
10450
10485
  number: {
@@ -10611,7 +10646,7 @@ const Hc = {
10611
10646
  paypalPopupClosed: "Deteção de fecho de pop‑up",
10612
10647
  applePayClosed: "Cancelado"
10613
10648
  }
10614
- }, vu = {
10649
+ }, gu = {
10615
10650
  card: {
10616
10651
  title: "Metoda de plată",
10617
10652
  number: {
@@ -10778,14 +10813,14 @@ const Hc = {
10778
10813
  paypalPopupClosed: "S-a detectat închiderea ferestrei pop‑up",
10779
10814
  applePayClosed: "Anulat"
10780
10815
  }
10781
- }, gu = {
10816
+ }, Pu = {
10782
10817
  card: {
10783
10818
  title: "Метод оплаты",
10784
10819
  number: {
10785
10820
  label: "Номер карты",
10786
10821
  error: {
10787
10822
  required: "ОБЯЗАТЕЛЬНО",
10788
- invalid: "Недопустимый номер карты",
10823
+ invalid: "Неверный номер карты",
10789
10824
  incomplete: "Номер карты неполон",
10790
10825
  unsupported: "Неподдерживаемый тип карты"
10791
10826
  }
@@ -10945,7 +10980,7 @@ const Hc = {
10945
10980
  paypalPopupClosed: "Обнаружено закрытие всплывающего окна",
10946
10981
  applePayClosed: "Отменено"
10947
10982
  }
10948
- }, Pu = {
10983
+ }, ku = {
10949
10984
  card: {
10950
10985
  title: "Спосіб оплати",
10951
10986
  number: {
@@ -11112,7 +11147,7 @@ const Hc = {
11112
11147
  paypalPopupClosed: "Виявлено закриття спливаючого вікна",
11113
11148
  applePayClosed: "Скасовано"
11114
11149
  }
11115
- }, ku = {
11150
+ }, bu = {
11116
11151
  card: {
11117
11152
  title: "Spôsob platby",
11118
11153
  number: {
@@ -11279,7 +11314,7 @@ const Hc = {
11279
11314
  paypalPopupClosed: "Zistené zatvorenie vyskakovacieho okna",
11280
11315
  applePayClosed: "Zrušené"
11281
11316
  }
11282
- }, bu = {
11317
+ }, Au = {
11283
11318
  card: {
11284
11319
  title: "Način plačila",
11285
11320
  number: {
@@ -11446,7 +11481,7 @@ const Hc = {
11446
11481
  paypalPopupClosed: "Zaznano zaprtje pojavnega okna",
11447
11482
  applePayClosed: "Preklicano"
11448
11483
  }
11449
- }, Au = {
11484
+ }, Cu = {
11450
11485
  card: {
11451
11486
  title: "Betalningsmetod",
11452
11487
  number: {
@@ -11613,7 +11648,7 @@ const Hc = {
11613
11648
  paypalPopupClosed: "Upptäckt stängning av popup‑fönster",
11614
11649
  applePayClosed: "Avbruten"
11615
11650
  }
11616
- }, Cu = {
11651
+ }, Eu = {
11617
11652
  card: {
11618
11653
  title: "วิธีการชำระเงิน",
11619
11654
  number: {
@@ -11780,7 +11815,7 @@ const Hc = {
11780
11815
  paypalPopupClosed: "ตรวจพบการปิดหน้าต่างป๊อปอัป",
11781
11816
  applePayClosed: "ยกเลิกแล้ว"
11782
11817
  }
11783
- }, Eu = {
11818
+ }, Tu = {
11784
11819
  card: {
11785
11820
  title: "Ödeme yöntemi",
11786
11821
  number: {
@@ -11947,7 +11982,7 @@ const Hc = {
11947
11982
  paypalPopupClosed: "Açılır pencere kapanması algılandı",
11948
11983
  applePayClosed: "İptal edildi"
11949
11984
  }
11950
- }, Tu = {
11985
+ }, Iu = {
11951
11986
  card: {
11952
11987
  title: "Phương thức thanh toán",
11953
11988
  number: {
@@ -12114,7 +12149,7 @@ const Hc = {
12114
12149
  paypalPopupClosed: "Phát hiện đóng cửa sổ bật lên",
12115
12150
  applePayClosed: "Đã hủy"
12116
12151
  }
12117
- }, Iu = {
12152
+ }, Nu = {
12118
12153
  card: {
12119
12154
  title: "支付方式",
12120
12155
  number: {
@@ -12282,48 +12317,48 @@ const Hc = {
12282
12317
  applePayClosed: "已取消"
12283
12318
  }
12284
12319
  }, tt = {
12285
- ar: Hc,
12320
+ ar: Yc,
12286
12321
  en: Gn,
12287
- bg: Yc,
12288
- cs: Gc,
12289
- da: Wc,
12290
- de: $c,
12291
- el: Qc,
12292
- es: Zc,
12293
- et: Xc,
12294
- fi: Jc,
12295
- fil: eu,
12296
- fr: au,
12297
- hr: tu,
12298
- hu: ru,
12299
- id: nu,
12300
- it: iu,
12301
- ja: ou,
12302
- ko: su,
12303
- lt: lu,
12304
- lv: du,
12305
- ms: cu,
12306
- ru: gu,
12307
- mt: uu,
12308
- no: pu,
12309
- nb: hu,
12310
- nl: mu,
12311
- pl: yu,
12312
- pt: fu,
12313
- ro: vu,
12314
- ua: Pu,
12315
- sk: ku,
12316
- sl: bu,
12317
- sv: Au,
12318
- th: Cu,
12319
- tr: Eu,
12320
- vi: Tu,
12321
- zh: Iu
12322
+ bg: Gc,
12323
+ cs: Wc,
12324
+ da: $c,
12325
+ de: Qc,
12326
+ el: Zc,
12327
+ es: Xc,
12328
+ et: Jc,
12329
+ fi: eu,
12330
+ fil: au,
12331
+ fr: tu,
12332
+ hr: ru,
12333
+ hu: nu,
12334
+ id: iu,
12335
+ it: ou,
12336
+ ja: su,
12337
+ ko: lu,
12338
+ lt: du,
12339
+ lv: cu,
12340
+ ms: uu,
12341
+ ru: Pu,
12342
+ mt: pu,
12343
+ no: hu,
12344
+ nb: mu,
12345
+ nl: yu,
12346
+ pl: fu,
12347
+ pt: vu,
12348
+ ro: gu,
12349
+ ua: ku,
12350
+ sk: bu,
12351
+ sl: Au,
12352
+ sv: Cu,
12353
+ th: Eu,
12354
+ tr: Tu,
12355
+ vi: Iu,
12356
+ zh: Nu
12322
12357
  }, rt = () => {
12323
12358
  const t = navigator == null ? void 0 : navigator.language.split("-")[0];
12324
12359
  return tt[t] || tt.en;
12325
12360
  }, Dr = (t, e = {}) => {
12326
- var n, s, o, l, d, c, u, h, p, m, y, f, g, E, N, _, I, O, w, x, U, G, Y, j, F, B, J, z, W, q, b, v, D, M, P, T, k, R, S, C, V, $, re, L, ae, me, Tt, It, Nt, _t, Rt, Ot, wt, Dt, Lt, xt, zt, St, Mt, jt;
12361
+ var n, s, o, l, d, c, u, h, p, m, y, f, g, E, N, R, I, w, _, x, V, H, G, j, B, U, J, z, W, q, b, v, D, M, P, T, k, O, S, C, F, $, re, L, ae, me, Tt, It, Nt, _t, Rt, Ot, wt, Dt, Lt, xt, zt, St, Mt, jt;
12327
12362
  if (!t) return rt();
12328
12363
  const a = tt[t] || rt(), r = Object.keys(Gn.errors || {}).reduce((Vt, Qn) => (Vt[Qn] = a.status.error, Vt), {}), i = K(K(K({}, r), a.errors || {}), e.errors || {});
12329
12364
  return {
@@ -12339,12 +12374,12 @@ const Hc = {
12339
12374
  }
12340
12375
  },
12341
12376
  expiry: {
12342
- label: ((I = (_ = e == null ? void 0 : e.card) == null ? void 0 : _.expiry) == null ? void 0 : I.label) || a.card.expiry.label,
12343
- placeholder: ((w = (O = e == null ? void 0 : e.card) == null ? void 0 : O.expiry) == null ? void 0 : w.placeholder) || a.card.expiry.placeholder,
12377
+ label: ((I = (R = e == null ? void 0 : e.card) == null ? void 0 : R.expiry) == null ? void 0 : I.label) || a.card.expiry.label,
12378
+ placeholder: ((_ = (w = e == null ? void 0 : e.card) == null ? void 0 : w.expiry) == null ? void 0 : _.placeholder) || a.card.expiry.placeholder,
12344
12379
  error: {
12345
- required: ((G = (U = (x = e == null ? void 0 : e.card) == null ? void 0 : x.expiry) == null ? void 0 : U.error) == null ? void 0 : G.required) || a.card.expiry.error.required,
12346
- invalid: ((F = (j = (Y = e == null ? void 0 : e.card) == null ? void 0 : Y.expiry) == null ? void 0 : j.error) == null ? void 0 : F.invalid) || a.card.expiry.error.invalid,
12347
- incomplete: ((z = (J = (B = e == null ? void 0 : e.card) == null ? void 0 : B.expiry) == null ? void 0 : J.error) == null ? void 0 : z.incomplete) || a.card.expiry.error.incomplete,
12380
+ required: ((H = (V = (x = e == null ? void 0 : e.card) == null ? void 0 : x.expiry) == null ? void 0 : V.error) == null ? void 0 : H.required) || a.card.expiry.error.required,
12381
+ invalid: ((B = (j = (G = e == null ? void 0 : e.card) == null ? void 0 : G.expiry) == null ? void 0 : j.error) == null ? void 0 : B.invalid) || a.card.expiry.error.invalid,
12382
+ incomplete: ((z = (J = (U = e == null ? void 0 : e.card) == null ? void 0 : U.expiry) == null ? void 0 : J.error) == null ? void 0 : z.incomplete) || a.card.expiry.error.incomplete,
12348
12383
  expired: ((b = (q = (W = e == null ? void 0 : e.card) == null ? void 0 : W.expiry) == null ? void 0 : q.error) == null ? void 0 : b.expired) || a.card.expiry.error.expired
12349
12384
  }
12350
12385
  },
@@ -12352,8 +12387,8 @@ const Hc = {
12352
12387
  label: ((D = (v = e == null ? void 0 : e.card) == null ? void 0 : v.cvc) == null ? void 0 : D.label) || a.card.cvc.label,
12353
12388
  placeholder: ((P = (M = e == null ? void 0 : e.card) == null ? void 0 : M.cvc) == null ? void 0 : P.placeholder) || a.card.cvc.placeholder,
12354
12389
  error: {
12355
- required: ((R = (k = (T = e == null ? void 0 : e.card) == null ? void 0 : T.cvc) == null ? void 0 : k.error) == null ? void 0 : R.required) || a.card.cvc.error.required,
12356
- incomplete: ((V = (C = (S = e == null ? void 0 : e.card) == null ? void 0 : S.cvc) == null ? void 0 : C.error) == null ? void 0 : V.incomplete) || a.card.cvc.error.incomplete,
12390
+ required: ((O = (k = (T = e == null ? void 0 : e.card) == null ? void 0 : T.cvc) == null ? void 0 : k.error) == null ? void 0 : O.required) || a.card.cvc.error.required,
12391
+ incomplete: ((F = (C = (S = e == null ? void 0 : e.card) == null ? void 0 : S.cvc) == null ? void 0 : C.error) == null ? void 0 : F.incomplete) || a.card.cvc.error.incomplete,
12357
12392
  invalid: ((L = (re = ($ = e == null ? void 0 : e.card) == null ? void 0 : $.cvc) == null ? void 0 : re.error) == null ? void 0 : L.invalid) || a.card.cvc.error.invalid
12358
12393
  }
12359
12394
  },
@@ -12379,7 +12414,7 @@ const Hc = {
12379
12414
  errors: i
12380
12415
  };
12381
12416
  };
12382
- class Nu extends Ia {
12417
+ class _u extends Ia {
12383
12418
  constructor() {
12384
12419
  super({
12385
12420
  messages: rt(),
@@ -12426,7 +12461,7 @@ class Nu extends Ia {
12426
12461
  * See the License for the specific language governing permissions and
12427
12462
  * limitations under the License.
12428
12463
  */
12429
- function _u(t, e) {
12464
+ function Ru(t, e) {
12430
12465
  var a = {};
12431
12466
  for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (a[r] = t[r]);
12432
12467
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -12434,7 +12469,7 @@ function _u(t, e) {
12434
12469
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (a[r[i]] = t[r[i]]);
12435
12470
  return a;
12436
12471
  }
12437
- function Ru(t, e) {
12472
+ function Ou(t, e) {
12438
12473
  var a = document.querySelector('script[src="'.concat(t, '"]'));
12439
12474
  if (a === null)
12440
12475
  return null;
@@ -12446,38 +12481,38 @@ function Ru(t, e) {
12446
12481
  i.dataset[s] !== r.dataset[s] && (n = !1);
12447
12482
  }), n ? a : null;
12448
12483
  }
12449
- function Ou(t) {
12484
+ function wu(t) {
12450
12485
  var e = t.url, a = t.attributes, r = t.onSuccess, i = t.onError, n = Wn(e, a);
12451
12486
  n.onerror = i, n.onload = r, document.head.insertBefore(n, document.head.firstElementChild);
12452
12487
  }
12453
- function wu(t) {
12454
- var e = t.sdkBaseUrl, a = t.environment, r = _u(t, ["sdkBaseUrl", "environment"]), i = e || xu(a), n = r, s = Object.keys(n).filter(function(d) {
12488
+ function Du(t) {
12489
+ var e = t.sdkBaseUrl, a = t.environment, r = Ru(t, ["sdkBaseUrl", "environment"]), i = e || zu(a), n = r, s = Object.keys(n).filter(function(d) {
12455
12490
  return typeof n[d] != "undefined" && n[d] !== null && n[d] !== "";
12456
12491
  }).reduce(function(d, c) {
12457
12492
  var u = n[c].toString();
12458
- return c = Du(c), c.substring(0, 4) === "data" || c === "crossorigin" ? d.attributes[c] = u : d.queryParams[c] = u, d;
12493
+ return c = Lu(c), c.substring(0, 4) === "data" || c === "crossorigin" ? d.attributes[c] = u : d.queryParams[c] = u, d;
12459
12494
  }, {
12460
12495
  queryParams: {},
12461
12496
  attributes: {}
12462
12497
  }), o = s.queryParams, l = s.attributes;
12463
12498
  return o["merchant-id"] && o["merchant-id"].indexOf(",") !== -1 && (l["data-merchant-id"] = o["merchant-id"], o["merchant-id"] = "*"), {
12464
- url: "".concat(i, "?").concat(Lu(o)),
12499
+ url: "".concat(i, "?").concat(xu(o)),
12465
12500
  attributes: l
12466
12501
  };
12467
12502
  }
12468
- function Du(t) {
12503
+ function Lu(t) {
12469
12504
  var e = function(a, r) {
12470
12505
  return (r ? "-" : "") + a.toLowerCase();
12471
12506
  };
12472
12507
  return t.replace(/[A-Z]+(?![a-z])|[A-Z]/g, e);
12473
12508
  }
12474
- function Lu(t) {
12509
+ function xu(t) {
12475
12510
  var e = "";
12476
12511
  return Object.keys(t).forEach(function(a) {
12477
12512
  e.length !== 0 && (e += "&"), e += a + "=" + t[a];
12478
12513
  }), e;
12479
12514
  }
12480
- function xu(t) {
12515
+ function zu(t) {
12481
12516
  return t === "sandbox" ? "https://www.sandbox.paypal.com/sdk/js" : "https://www.paypal.com/sdk/js";
12482
12517
  }
12483
12518
  function Wn(t, e) {
@@ -12487,11 +12522,11 @@ function Wn(t, e) {
12487
12522
  a.setAttribute(r, e[r]), r === "data-csp-nonce" && a.setAttribute("nonce", e["data-csp-nonce"]);
12488
12523
  }), a;
12489
12524
  }
12490
- function zu(t, e) {
12525
+ function Su(t, e) {
12491
12526
  if (e === void 0 && (e = Promise), $n(t, e), typeof document == "undefined")
12492
12527
  return e.resolve(null);
12493
- var a = wu(t), r = a.url, i = a.attributes, n = i["data-namespace"] || "paypal", s = Lr(n);
12494
- return i["data-js-sdk-library"] || (i["data-js-sdk-library"] = "paypal-js"), Ru(r, i) && s ? e.resolve(s) : Su({
12528
+ var a = Du(t), r = a.url, i = a.attributes, n = i["data-namespace"] || "paypal", s = Lr(n);
12529
+ return i["data-js-sdk-library"] || (i["data-js-sdk-library"] = "paypal-js"), Ou(r, i) && s ? e.resolve(s) : Mu({
12495
12530
  url: r,
12496
12531
  attributes: i
12497
12532
  }, e).then(function() {
@@ -12501,7 +12536,7 @@ function zu(t, e) {
12501
12536
  throw new Error("The window.".concat(n, " global variable is not available."));
12502
12537
  });
12503
12538
  }
12504
- function Su(t, e) {
12539
+ function Mu(t, e) {
12505
12540
  e === void 0 && (e = Promise), $n(t, e);
12506
12541
  var a = t.url, r = t.attributes;
12507
12542
  if (typeof a != "string" || a.length === 0)
@@ -12511,7 +12546,7 @@ function Su(t, e) {
12511
12546
  return new e(function(i, n) {
12512
12547
  if (typeof document == "undefined")
12513
12548
  return i();
12514
- Ou({
12549
+ wu({
12515
12550
  url: a,
12516
12551
  attributes: r,
12517
12552
  onSuccess: function() {
@@ -12536,21 +12571,21 @@ function $n(t, e) {
12536
12571
  if (typeof e != "undefined" && typeof e != "function")
12537
12572
  throw new Error("Expected PromisePonyfill to be a function.");
12538
12573
  }
12539
- const Mu = {
12574
+ const ju = {
12540
12575
  layout: "vertical",
12541
12576
  tagline: !1,
12542
12577
  height: 40,
12543
12578
  borderRadius: 12
12544
12579
  };
12545
- class ju {
12580
+ class Vu {
12546
12581
  constructor() {
12547
12582
  A(this, "paypal", null);
12548
12583
  }
12549
12584
  // init
12550
12585
  init(e) {
12551
- return H(this, null, function* () {
12586
+ return Y(this, null, function* () {
12552
12587
  try {
12553
- this.paypal = yield zu(e);
12588
+ this.paypal = yield Su(e);
12554
12589
  } catch (a) {
12555
12590
  console.error("failed to load the PayPal JS SDK script", a);
12556
12591
  }
@@ -12558,10 +12593,10 @@ class ju {
12558
12593
  }
12559
12594
  // render
12560
12595
  render(e, a) {
12561
- return H(this, null, function* () {
12596
+ return Y(this, null, function* () {
12562
12597
  var r, i;
12563
12598
  if (this.paypal) {
12564
- const n = K(K({}, Mu), (a == null ? void 0 : a.style) || {});
12599
+ const n = K(K({}, ju), (a == null ? void 0 : a.style) || {});
12565
12600
  yield (i = (r = this.paypal).Buttons) == null ? void 0 : i.call(r, ee(K({
12566
12601
  fundingSource: "paypal"
12567
12602
  }, a), {
@@ -12575,7 +12610,7 @@ function Pe(t) {
12575
12610
  throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
12576
12611
  }
12577
12612
  var Ma = { exports: {} }, xr;
12578
- function Vu() {
12613
+ function Fu() {
12579
12614
  return xr || (xr = 1, function(t, e) {
12580
12615
  (function(a) {
12581
12616
  t.exports = a();
@@ -12713,50 +12748,50 @@ function Vu() {
12713
12748
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
12714
12749
  PERFORMANCE OF THIS SOFTWARE.
12715
12750
  ***************************************************************************** */
12716
- function s(P, T, k, R) {
12751
+ function s(P, T, k, O) {
12717
12752
  function S(C) {
12718
- return C instanceof k ? C : new k(function(V) {
12719
- V(C);
12753
+ return C instanceof k ? C : new k(function(F) {
12754
+ F(C);
12720
12755
  });
12721
12756
  }
12722
- return new (k || (k = Promise))(function(C, V) {
12757
+ return new (k || (k = Promise))(function(C, F) {
12723
12758
  function $(ae) {
12724
12759
  try {
12725
- L(R.next(ae));
12760
+ L(O.next(ae));
12726
12761
  } catch (me) {
12727
- V(me);
12762
+ F(me);
12728
12763
  }
12729
12764
  }
12730
12765
  function re(ae) {
12731
12766
  try {
12732
- L(R.throw(ae));
12767
+ L(O.throw(ae));
12733
12768
  } catch (me) {
12734
- V(me);
12769
+ F(me);
12735
12770
  }
12736
12771
  }
12737
12772
  function L(ae) {
12738
12773
  ae.done ? C(ae.value) : S(ae.value).then($, re);
12739
12774
  }
12740
- L((R = R.apply(P, [])).next());
12775
+ L((O = O.apply(P, [])).next());
12741
12776
  });
12742
12777
  }
12743
12778
  function o(P, T) {
12744
12779
  var k = { label: 0, sent: function() {
12745
12780
  if (C[0] & 1) throw C[1];
12746
12781
  return C[1];
12747
- }, trys: [], ops: [] }, R, S, C, V;
12748
- return V = { next: $(0), throw: $(1), return: $(2) }, typeof Symbol == "function" && (V[Symbol.iterator] = function() {
12782
+ }, trys: [], ops: [] }, O, S, C, F;
12783
+ return F = { next: $(0), throw: $(1), return: $(2) }, typeof Symbol == "function" && (F[Symbol.iterator] = function() {
12749
12784
  return this;
12750
- }), V;
12785
+ }), F;
12751
12786
  function $(L) {
12752
12787
  return function(ae) {
12753
12788
  return re([L, ae]);
12754
12789
  };
12755
12790
  }
12756
12791
  function re(L) {
12757
- if (R) throw new TypeError("Generator is already executing.");
12792
+ if (O) throw new TypeError("Generator is already executing.");
12758
12793
  for (; k; ) try {
12759
- if (R = 1, S && (C = L[0] & 2 ? S.return : L[0] ? S.throw || ((C = S.return) && C.call(S), 0) : S.next) && !(C = C.call(S, L[1])).done) return C;
12794
+ if (O = 1, S && (C = L[0] & 2 ? S.return : L[0] ? S.throw || ((C = S.return) && C.call(S), 0) : S.next) && !(C = C.call(S, L[1])).done) return C;
12760
12795
  switch (S = 0, C && (L = [L[0] & 2, C.value]), L[0]) {
12761
12796
  case 0:
12762
12797
  case 1:
@@ -12794,7 +12829,7 @@ function Vu() {
12794
12829
  } catch (ae) {
12795
12830
  L = [6, ae], S = 0;
12796
12831
  } finally {
12797
- R = C = 0;
12832
+ O = C = 0;
12798
12833
  }
12799
12834
  if (L[0] & 5) throw L[1];
12800
12835
  return { value: L[0] ? L[1] : void 0, done: !0 };
@@ -12805,17 +12840,17 @@ function Vu() {
12805
12840
  var T, k = JSON.stringify(P);
12806
12841
  if (!P.forceScriptReload && (T = d[k], T))
12807
12842
  return T;
12808
- var R = document.createElement("script"), S = P.dataAttributes || {}, C = P.container || document.head;
12809
- return R.src = P.src, R.id = P.id || "", R.async = !0, P.type && R.setAttribute("type", "".concat(P.type)), P.crossorigin && R.setAttribute("crossorigin", "".concat(P.crossorigin)), Object.keys(S).forEach(function(V) {
12810
- R.setAttribute("data-".concat(V), "".concat(S[V]));
12811
- }), T = new Promise(function(V, $) {
12812
- R.addEventListener("load", function() {
12813
- V(R);
12814
- }), R.addEventListener("error", function() {
12843
+ var O = document.createElement("script"), S = P.dataAttributes || {}, C = P.container || document.head;
12844
+ return O.src = P.src, O.id = P.id || "", O.async = !0, P.type && O.setAttribute("type", "".concat(P.type)), P.crossorigin && O.setAttribute("crossorigin", "".concat(P.crossorigin)), Object.keys(S).forEach(function(F) {
12845
+ O.setAttribute("data-".concat(F), "".concat(S[F]));
12846
+ }), T = new Promise(function(F, $) {
12847
+ O.addEventListener("load", function() {
12848
+ F(O);
12849
+ }), O.addEventListener("error", function() {
12815
12850
  $(new Error("".concat(P.src, " failed to load.")));
12816
- }), R.addEventListener("abort", function() {
12851
+ }), O.addEventListener("abort", function() {
12817
12852
  $(new Error("".concat(P.src, " has aborted.")));
12818
- }), C.appendChild(R);
12853
+ }), C.appendChild(O);
12819
12854
  }), d[k] = T, T;
12820
12855
  }
12821
12856
  c.clearCache = function() {
@@ -12826,8 +12861,8 @@ function Vu() {
12826
12861
  if (k)
12827
12862
  return Promise.resolve(k);
12828
12863
  k = document.createElement("link");
12829
- var R = T.container || document.head;
12830
- return k.setAttribute("rel", "stylesheet"), k.setAttribute("type", "text/css"), k.setAttribute("href", T.href), k.setAttribute("id", T.id), R.firstChild ? R.insertBefore(k, R.firstChild) : R.appendChild(k), Promise.resolve(k);
12864
+ var O = T.container || document.head;
12865
+ return k.setAttribute("rel", "stylesheet"), k.setAttribute("type", "text/css"), k.setAttribute("href", T.href), k.setAttribute("id", T.id), O.firstChild ? O.insertBefore(k, O.firstChild) : O.appendChild(k), Promise.resolve(k);
12831
12866
  };
12832
12867
  Object.defineProperty(l, "__esModule", { value: !0 }), l.loadStylesheet = m = l.loadScript = void 0;
12833
12868
  var p = u, m = l.loadScript = p, y = h;
@@ -12835,42 +12870,42 @@ function Vu() {
12835
12870
  var f = "https://www.paypalobjects.com", g = {
12836
12871
  minified: "axo.min",
12837
12872
  unminified: "axo"
12838
- }, E = "fastlane", N = "connect-boba", _ = "".concat(N, "/locales/"), I = {
12873
+ }, E = "fastlane", N = "connect-boba", R = "".concat(N, "/locales/"), I = {
12839
12874
  AXO_ASSET_NAME: g,
12840
12875
  AXO_ASSET_PATH: N,
12841
- LOCALE_PATH: _,
12876
+ LOCALE_PATH: R,
12842
12877
  CDNX_PROD: f
12843
- }, O = {
12878
+ }, w = {
12844
12879
  BT: "BT",
12845
12880
  PPCP: "PPCP"
12846
12881
  };
12847
- function w() {
12882
+ function _() {
12848
12883
  return typeof window.define == "function" && !!window.define.amd;
12849
12884
  }
12850
12885
  function x() {
12851
- return w() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
12886
+ return _() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
12852
12887
  }
12853
- function U(P, T, k) {
12854
- var R, S;
12888
+ function V(P, T, k) {
12889
+ var O, S;
12855
12890
  return k === void 0 && (k = !0), s(this, void 0, void 0, function() {
12856
- var C, V;
12891
+ var C, F;
12857
12892
  return o(this, function($) {
12858
- if (C = Y(), C && C[P.module]) {
12859
- if (T && ((R = C[P.module]) === null || R === void 0 ? void 0 : R.VERSION) !== T)
12860
- throw V = (S = C[P.module]) === null || S === void 0 ? void 0 : S.VERSION, new Error("".concat(P.module, " already loaded with version ").concat(V, " cannot load version ").concat(T));
12893
+ if (C = G(), C && C[P.module]) {
12894
+ if (T && ((O = C[P.module]) === null || O === void 0 ? void 0 : O.VERSION) !== T)
12895
+ throw F = (S = C[P.module]) === null || S === void 0 ? void 0 : S.VERSION, new Error("".concat(P.module, " already loaded with version ").concat(F, " cannot load version ").concat(T));
12861
12896
  return [2, !0];
12862
12897
  }
12863
12898
  if (!T)
12864
12899
  throw new Error("Attempted to load ".concat(P.module, " without specifying version"));
12865
- return [2, G(P, T, k)];
12900
+ return [2, H(P, T, k)];
12866
12901
  });
12867
12902
  });
12868
12903
  }
12869
- function G(P, T, k) {
12870
- if (k === void 0 && (k = !0), w()) {
12871
- var R = k ? P.amdModule.minified : P.amdModule.unminified;
12872
- return new Promise(function(C, V) {
12873
- window.require([R], C, V);
12904
+ function H(P, T, k) {
12905
+ if (k === void 0 && (k = !0), _()) {
12906
+ var O = k ? P.amdModule.minified : P.amdModule.unminified;
12907
+ return new Promise(function(C, F) {
12908
+ window.require([O], C, F);
12874
12909
  });
12875
12910
  }
12876
12911
  var S = k ? P.script.minified : P.script.unminified;
@@ -12879,52 +12914,52 @@ function Vu() {
12879
12914
  src: "https://js.braintreegateway.com/web/".concat(T, "/js/").concat(S)
12880
12915
  });
12881
12916
  }
12882
- function Y() {
12917
+ function G() {
12883
12918
  return window == null ? void 0 : window.braintree;
12884
12919
  }
12885
- var j, F, B = {
12920
+ var j, B, U = {
12886
12921
  Client: "client",
12887
12922
  HostedCardFields: "hostedFields"
12888
- }, J = "braintree", z = (j = {}, j[B.Client] = "client", j[B.HostedCardFields] = "hosted-fields", j), W = (F = {}, F[B.Client] = {
12923
+ }, J = "braintree", z = (j = {}, j[U.Client] = "client", j[U.HostedCardFields] = "hosted-fields", j), W = (B = {}, B[U.Client] = {
12889
12924
  id: "client",
12890
- module: B.Client,
12925
+ module: U.Client,
12891
12926
  amdModule: {
12892
- unminified: "".concat(J, "/").concat(z[B.Client]),
12893
- minified: "".concat(J, "/").concat(z[B.Client], ".min")
12927
+ unminified: "".concat(J, "/").concat(z[U.Client]),
12928
+ minified: "".concat(J, "/").concat(z[U.Client], ".min")
12894
12929
  },
12895
12930
  script: {
12896
- unminified: "".concat(z[B.Client], ".js"),
12897
- minified: "".concat(z[B.Client], ".min.js")
12931
+ unminified: "".concat(z[U.Client], ".js"),
12932
+ minified: "".concat(z[U.Client], ".min.js")
12898
12933
  }
12899
- }, F[B.HostedCardFields] = {
12934
+ }, B[U.HostedCardFields] = {
12900
12935
  id: "hcf",
12901
- module: B.HostedCardFields,
12936
+ module: U.HostedCardFields,
12902
12937
  amdModule: {
12903
- unminified: "".concat(J, "/").concat(z[B.HostedCardFields]),
12904
- minified: "".concat(J, "/").concat(z[B.HostedCardFields], ".min")
12938
+ unminified: "".concat(J, "/").concat(z[U.HostedCardFields]),
12939
+ minified: "".concat(J, "/").concat(z[U.HostedCardFields], ".min")
12905
12940
  },
12906
12941
  script: {
12907
- unminified: "".concat(z[B.HostedCardFields], ".js"),
12908
- minified: "".concat(z[B.HostedCardFields], ".min.js")
12942
+ unminified: "".concat(z[U.HostedCardFields], ".js"),
12943
+ minified: "".concat(z[U.HostedCardFields], ".min.js")
12909
12944
  }
12910
- }, F);
12945
+ }, B);
12911
12946
  function q(P) {
12912
12947
  return s(this, void 0, void 0, function() {
12913
- var T, k, R, S;
12948
+ var T, k, O, S;
12914
12949
  return o(this, function(C) {
12915
12950
  switch (C.label) {
12916
12951
  case 0:
12917
- return performance.mark("pp_axo_sdk_init_invoked"), T = P.btSdkVersion, k = P.minified, R = D(P), S = M(P), P.platform !== O.BT ? [3, 2] : [4, Promise.all([
12918
- U(W.hostedFields, T, k),
12919
- b(R, k)
12952
+ return performance.mark("pp_axo_sdk_init_invoked"), T = P.btSdkVersion, k = P.minified, O = D(P), S = M(P), P.platform !== w.BT ? [3, 2] : [4, Promise.all([
12953
+ V(W.hostedFields, T, k),
12954
+ b(O, k)
12920
12955
  ])];
12921
12956
  case 1:
12922
12957
  return C.sent(), [3, 5];
12923
12958
  case 2:
12924
- return P.platform !== O.PPCP ? [3, 4] : [4, Promise.all([
12925
- U(W.client, T, k),
12926
- U(W.hostedFields, T, k),
12927
- b(R, k)
12959
+ return P.platform !== w.PPCP ? [3, 4] : [4, Promise.all([
12960
+ V(W.client, T, k),
12961
+ V(W.hostedFields, T, k),
12962
+ b(O, k)
12928
12963
  ])];
12929
12964
  case 3:
12930
12965
  return C.sent(), [3, 5];
@@ -12938,13 +12973,13 @@ function Vu() {
12938
12973
  }
12939
12974
  function b(P, T) {
12940
12975
  var k;
12941
- if (T === void 0 && (T = !0), w()) {
12976
+ if (T === void 0 && (T = !0), _()) {
12942
12977
  x() && requirejs.config({
12943
12978
  paths: (k = {}, k[E] = P, k)
12944
12979
  });
12945
- var R = "".concat(E, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
12980
+ var O = "".concat(E, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
12946
12981
  return new Promise(function(S, C) {
12947
- window.require([R], S, C);
12982
+ window.require([O], S, C);
12948
12983
  });
12949
12984
  }
12950
12985
  return m({
@@ -12958,9 +12993,9 @@ function Vu() {
12958
12993
  return k ? "https://cdn-".concat(k, ".static.engineering.dev.paypalinc.com/").concat(T) : "".concat(I.CDNX_PROD, "/").concat(T);
12959
12994
  }
12960
12995
  function D(P) {
12961
- var T, k = (P == null ? void 0 : P.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, R = w() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(k, ".js");
12996
+ var T, k = (P == null ? void 0 : P.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, O = _() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(k, ".js");
12962
12997
  return v({
12963
- assetUrl: R,
12998
+ assetUrl: O,
12964
12999
  bundleId: (T = P == null ? void 0 : P.metadata) === null || T === void 0 ? void 0 : T.bundleIdOverride
12965
13000
  });
12966
13001
  }
@@ -12974,8 +13009,8 @@ function Vu() {
12974
13009
  n.constants = I, n.loadAxo = q;
12975
13010
  });
12976
13011
  }, {}], 9: [function(a, r, i) {
12977
- var n = a("./constants").BRAINTREE_VERSION, s = a("./request/graphql"), o = a("./request"), l = a("../lib/is-verified-domain"), d = a("../lib/braintree-error"), c = a("../lib/convert-to-braintree-error"), u = a("./get-configuration").getConfiguration, h = a("../lib/create-authorization-data"), p = a("../lib/add-metadata"), m = a("@braintree/wrap-promise"), y = a("../lib/once"), f = a("../lib/deferred"), g = a("../lib/assign").assign, E = a("../lib/analytics"), N = a("./errors"), _ = a("../lib/constants").VERSION, I = a("../lib/constants").GRAPHQL_URLS, O = a("../lib/methods"), w = a("../lib/convert-methods-to-error"), x = a("../lib/assets"), U = a("../lib/constants").FRAUDNET_FNCLS, G = a("../lib/constants").FRAUDNET_SOURCE, Y = a("../lib/constants").FRAUDNET_URL, j = {};
12978
- function F(z) {
13012
+ var n = a("./constants").BRAINTREE_VERSION, s = a("./request/graphql"), o = a("./request"), l = a("../lib/is-verified-domain"), d = a("../lib/braintree-error"), c = a("../lib/convert-to-braintree-error"), u = a("./get-configuration").getConfiguration, h = a("../lib/create-authorization-data"), p = a("../lib/add-metadata"), m = a("@braintree/wrap-promise"), y = a("../lib/once"), f = a("../lib/deferred"), g = a("../lib/assign").assign, E = a("../lib/analytics"), N = a("./errors"), R = a("../lib/constants").VERSION, I = a("../lib/constants").GRAPHQL_URLS, w = a("../lib/methods"), _ = a("../lib/convert-methods-to-error"), x = a("../lib/assets"), V = a("../lib/constants").FRAUDNET_FNCLS, H = a("../lib/constants").FRAUDNET_SOURCE, G = a("../lib/constants").FRAUDNET_URL, j = {};
13013
+ function B(z) {
12979
13014
  var W, q;
12980
13015
  if (z = z || {}, W = JSON.stringify(z), q = z.gatewayConfiguration, !q)
12981
13016
  throw new d(N.CLIENT_MISSING_GATEWAY_CONFIGURATION);
@@ -13000,7 +13035,7 @@ function Vu() {
13000
13035
  });
13001
13036
  }
13002
13037
  }
13003
- F.initialize = function(z) {
13038
+ B.initialize = function(z) {
13004
13039
  var W, q, b = j[z.authorization];
13005
13040
  if (b)
13006
13041
  return E.sendEvent(b, "custom.client.load.cached"), b;
@@ -13013,18 +13048,18 @@ function Vu() {
13013
13048
  }
13014
13049
  return b = u(q, z.sessionId).then(
13015
13050
  function(v) {
13016
- return z.debug && (v.isDebug = !0), v.authorization = z.authorization, W = new F(v), W;
13051
+ return z.debug && (v.isDebug = !0), v.authorization = z.authorization, W = new B(v), W;
13017
13052
  }
13018
13053
  ), j[z.authorization] = b, E.sendEvent(b, "custom.client.load.initialized"), b.then(function(v) {
13019
13054
  return E.sendEvent(W, "custom.client.load.succeeded"), v;
13020
13055
  }).catch(function(v) {
13021
13056
  return delete j[z.authorization], Promise.reject(v);
13022
13057
  });
13023
- }, F.clearCache = function() {
13058
+ }, B.clearCache = function() {
13024
13059
  j = {};
13025
- }, F.prototype._findOrCreateFraudnetJSON = function(z) {
13026
- var W = document.querySelector('script[fncls="' + U + '"]'), q, b, v, D;
13027
- W || (W = document.body.appendChild(document.createElement("script")), W.type = "application/json", W.setAttribute("fncls", U)), q = this.getConfiguration(), b = {
13060
+ }, B.prototype._findOrCreateFraudnetJSON = function(z) {
13061
+ var W = document.querySelector('script[fncls="' + V + '"]'), q, b, v, D;
13062
+ W || (W = document.body.appendChild(document.createElement("script")), W.type = "application/json", W.setAttribute("fncls", V)), q = this.getConfiguration(), b = {
13028
13063
  rda_tenant: "bt_card",
13029
13064
  // eslint-disable-line camelcase
13030
13065
  mid: q.gatewayConfiguration.merchantId
@@ -13035,11 +13070,11 @@ function Vu() {
13035
13070
  f: z.substr(0, 32),
13036
13071
  fp: b,
13037
13072
  bu: !1,
13038
- s: G
13073
+ s: H
13039
13074
  }, W.text = JSON.stringify(D);
13040
- }, F.prototype.request = function(z, W) {
13075
+ }, B.prototype.request = function(z, W) {
13041
13076
  var q = this, b = new Promise(function(v, D) {
13042
- var M, P, T, k, R = !!(z.endpoint === "payment_methods/credit_cards" && q.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);
13077
+ var M, P, T, k, O = !!(z.endpoint === "payment_methods/credit_cards" && q.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);
13043
13078
  if (z.api !== "graphQLApi" && (z.method ? z.endpoint || (M = "options.endpoint") : M = "options.method"), M)
13044
13079
  throw new d({
13045
13080
  type: N.CLIENT_OPTION_REQUIRED.type,
@@ -13064,7 +13099,7 @@ function Vu() {
13064
13099
  source: q._configuration.analyticsMetadata.source,
13065
13100
  integration: q._configuration.analyticsMetadata.integration,
13066
13101
  sessionId: q._configuration.analyticsMetadata.sessionId,
13067
- version: _
13102
+ version: R
13068
13103
  }
13069
13104
  },
13070
13105
  z.data
@@ -13079,9 +13114,9 @@ function Vu() {
13079
13114
  });
13080
13115
  k.url = T + z.endpoint, k.sendAnalyticsEvent = function(S) {
13081
13116
  E.sendEvent(q, S);
13082
- }, q._request(k, function(S, C, V) {
13117
+ }, q._request(k, function(S, C, F) {
13083
13118
  var $, re;
13084
- if (re = B(V, S), re) {
13119
+ if (re = U(F, S), re) {
13085
13120
  D(re);
13086
13121
  return;
13087
13122
  }
@@ -13095,8 +13130,8 @@ function Vu() {
13095
13130
  );
13096
13131
  return;
13097
13132
  }
13098
- $ = g({ _httpStatus: V }, C), R && $.creditCards && $.creditCards.length > 0 && (q._findOrCreateFraudnetJSON($.creditCards[0].nonce), x.loadScript({
13099
- src: Y,
13133
+ $ = g({ _httpStatus: F }, C), O && $.creditCards && $.creditCards.length > 0 && (q._findOrCreateFraudnetJSON($.creditCards[0].nonce), x.loadScript({
13134
+ src: G,
13100
13135
  forceScriptReload: !0
13101
13136
  })), v($);
13102
13137
  });
@@ -13112,7 +13147,7 @@ function Vu() {
13112
13147
  }
13113
13148
  return b;
13114
13149
  };
13115
- function B(z, W) {
13150
+ function U(z, W) {
13116
13151
  var q;
13117
13152
  if (z === -1 ? q = new d(N.CLIENT_REQUEST_TIMEOUT) : z === 401 ? q = new d(N.CLIENT_AUTHORIZATION_INVALID) : z === 403 ? q = new d(N.CLIENT_AUTHORIZATION_INSUFFICIENT) : z === 429 ? q = new d(N.CLIENT_RATE_LIMITED) : z >= 500 ? q = new d(N.CLIENT_GATEWAY_NETWORK) : (z < 200 || z >= 400) && (q = c(W, {
13118
13153
  type: N.CLIENT_REQUEST_ERROR.type,
@@ -13121,13 +13156,13 @@ function Vu() {
13121
13156
  })), q)
13122
13157
  return q.details = q.details || {}, q.details.httpStatus = z, q;
13123
13158
  }
13124
- F.prototype.toJSON = function() {
13159
+ B.prototype.toJSON = function() {
13125
13160
  return this.getConfiguration();
13126
- }, F.prototype.getVersion = function() {
13127
- return _;
13128
- }, F.prototype.teardown = m(function() {
13161
+ }, B.prototype.getVersion = function() {
13162
+ return R;
13163
+ }, B.prototype.teardown = m(function() {
13129
13164
  var z = this;
13130
- return delete j[z.getConfiguration().authorization], w(z, O(F.prototype)), Promise.resolve();
13165
+ return delete j[z.getConfiguration().authorization], _(z, w(B.prototype)), Promise.resolve();
13131
13166
  });
13132
13167
  function J(z) {
13133
13168
  var W = z.authorizationFingerprint || z.authorization;
@@ -13136,7 +13171,7 @@ function Vu() {
13136
13171
  "Braintree-Version": n
13137
13172
  };
13138
13173
  }
13139
- r.exports = F;
13174
+ r.exports = B;
13140
13175
  }, { "../lib/add-metadata": 29, "../lib/analytics": 30, "../lib/assets": 31, "../lib/assign": 32, "../lib/braintree-error": 33, "../lib/constants": 34, "../lib/convert-methods-to-error": 35, "../lib/convert-to-braintree-error": 36, "../lib/create-authorization-data": 37, "../lib/deferred": 38, "../lib/is-verified-domain": 43, "../lib/methods": 45, "../lib/once": 46, "./constants": 10, "./errors": 11, "./get-configuration": 12, "./request": 25, "./request/graphql": 23, "@braintree/wrap-promise": 7 }], 10: [function(a, r, i) {
13141
13176
  r.exports = {
13142
13177
  BRAINTREE_VERSION: "2018-05-10"
@@ -13206,7 +13241,7 @@ function Vu() {
13206
13241
  var n = a("../lib/braintree-error"), s = a("@braintree/wrap-promise"), o = a("./request"), l = a("@braintree/uuid"), d = a("../lib/constants"), c = a("./errors"), u = a("./request/graphql"), h = a("../lib/constants").GRAPHQL_URLS, p = a("../lib/is-date-string-before-or-on"), m = a("./constants").BRAINTREE_VERSION;
13207
13242
  function y(f, g) {
13208
13243
  return new Promise(function(E, N) {
13209
- var _, I, O, w, x = g || l(), U = {
13244
+ var R, I, w, _, x = g || l(), V = {
13210
13245
  merchantAppId: window.location.host,
13211
13246
  platform: d.PLATFORM,
13212
13247
  sdkVersion: d.VERSION,
@@ -13216,41 +13251,41 @@ function Vu() {
13216
13251
  integrationType: d.INTEGRATION,
13217
13252
  sessionId: x
13218
13253
  };
13219
- I = f.attrs, O = f.configUrl, I._meta = U, I.braintreeLibraryVersion = d.BRAINTREE_LIBRARY_VERSION, I.configVersion = "3", w = {
13220
- url: O,
13254
+ I = f.attrs, w = f.configUrl, I._meta = V, I.braintreeLibraryVersion = d.BRAINTREE_LIBRARY_VERSION, I.configVersion = "3", _ = {
13255
+ url: w,
13221
13256
  method: "GET",
13222
13257
  data: I
13223
- }, I.authorizationFingerprint && f.graphQL ? (p(f.graphQL.date, m) && (w.graphQL = new u({
13258
+ }, I.authorizationFingerprint && f.graphQL ? (p(f.graphQL.date, m) && (_.graphQL = new u({
13224
13259
  graphQL: {
13225
13260
  url: f.graphQL.url,
13226
13261
  features: ["configuration"]
13227
13262
  }
13228
- })), w.metadata = U) : I.tokenizationKey && (w.graphQL = new u({
13263
+ })), _.metadata = V) : I.tokenizationKey && (_.graphQL = new u({
13229
13264
  graphQL: {
13230
13265
  url: h[f.environment],
13231
13266
  features: ["configuration"]
13232
13267
  }
13233
- }), w.metadata = U), o(w, function(G, Y, j) {
13234
- var F;
13235
- if (G) {
13236
- j === 403 ? F = c.CLIENT_AUTHORIZATION_INSUFFICIENT : j === 401 ? F = c.CLIENT_AUTHORIZATION_INVALID : F = c.CLIENT_GATEWAY_NETWORK, N(
13268
+ }), _.metadata = V), o(_, function(H, G, j) {
13269
+ var B;
13270
+ if (H) {
13271
+ j === 403 ? B = c.CLIENT_AUTHORIZATION_INSUFFICIENT : j === 401 ? B = c.CLIENT_AUTHORIZATION_INVALID : B = c.CLIENT_GATEWAY_NETWORK, N(
13237
13272
  new n({
13238
- type: F.type,
13239
- code: F.code,
13240
- message: F.message,
13273
+ type: B.type,
13274
+ code: B.code,
13275
+ message: B.message,
13241
13276
  details: {
13242
- originalError: G
13277
+ originalError: H
13243
13278
  }
13244
13279
  })
13245
13280
  );
13246
13281
  return;
13247
13282
  }
13248
- _ = {
13283
+ R = {
13249
13284
  authorizationType: I.tokenizationKey ? "TOKENIZATION_KEY" : "CLIENT_TOKEN",
13250
13285
  authorizationFingerprint: I.authorizationFingerprint,
13251
- analyticsMetadata: U,
13252
- gatewayConfiguration: Y
13253
- }, E(_);
13286
+ analyticsMetadata: V,
13287
+ gatewayConfiguration: G
13288
+ }, E(R);
13254
13289
  });
13255
13290
  });
13256
13291
  }
@@ -13282,34 +13317,34 @@ function Vu() {
13282
13317
  return !N || N === m;
13283
13318
  }
13284
13319
  function f(N) {
13285
- var _ = !N.data && N.errors && N.errors[0] && N.errors[0].extensions && N.errors[0].extensions.errorClass;
13286
- return _ === "UNKNOWN" || _ === "INTERNAL";
13320
+ var R = !N.data && N.errors && N.errors[0] && N.errors[0].extensions && N.errors[0].extensions.errorClass;
13321
+ return R === "UNKNOWN" || R === "INTERNAL";
13287
13322
  }
13288
- function g(N, _, I) {
13289
- var O, w, x, U, G, Y, j, F = N.url, B = N.graphQL, J = N.timeout, z = d.getRequestObject(), W = I, q = !!(B && B.isGraphQLRequest(F, N.data));
13323
+ function g(N, R, I) {
13324
+ var w, _, x, V, H, G, j, B = N.url, U = N.graphQL, J = N.timeout, z = d.getRequestObject(), W = I, q = !!(U && U.isGraphQLRequest(B, N.data));
13290
13325
  N.headers = s(
13291
13326
  { "Content-Type": "application/json" },
13292
13327
  N.headers
13293
- ), q ? x = new u(N) : x = new h(N), F = x.getUrl(), U = x.getBody(), G = x.getMethod(), Y = x.getHeaders(), G === "GET" && (F = n.queryify(F, U), U = null), c ? z.onreadystatechange = function() {
13328
+ ), q ? x = new u(N) : x = new h(N), B = x.getUrl(), V = x.getBody(), H = x.getMethod(), G = x.getHeaders(), H === "GET" && (B = n.queryify(B, V), V = null), c ? z.onreadystatechange = function() {
13294
13329
  if (z.readyState === 4) {
13295
13330
  if (z.status === 0 && q) {
13296
- delete N.graphQL, g(N, _, I);
13331
+ delete N.graphQL, g(N, R, I);
13297
13332
  return;
13298
13333
  }
13299
- if (j = l(z.responseText), w = x.adaptResponseBody(j), O = x.determineStatus(z.status, j), O >= 400 || O < 200) {
13334
+ if (j = l(z.responseText), _ = x.adaptResponseBody(j), w = x.determineStatus(z.status, j), w >= 400 || w < 200) {
13300
13335
  if (q && f(j)) {
13301
- delete N.graphQL, g(N, _, I);
13336
+ delete N.graphQL, g(N, R, I);
13302
13337
  return;
13303
13338
  }
13304
- if (_ < p && y(O)) {
13305
- _++, g(N, _, I);
13339
+ if (R < p && y(w)) {
13340
+ R++, g(N, R, I);
13306
13341
  return;
13307
13342
  }
13308
- W(w || "error", null, O || 500);
13343
+ W(_ || "error", null, w || 500);
13309
13344
  } else
13310
- W(null, w, O);
13345
+ W(null, _, w);
13311
13346
  }
13312
- } : (N.headers && (F = n.queryify(F, Y)), z.onload = function() {
13347
+ } : (N.headers && (B = n.queryify(B, G)), z.onload = function() {
13313
13348
  W(null, l(z.responseText), z.status);
13314
13349
  }, z.onerror = function() {
13315
13350
  W("error", null, 500);
@@ -13318,23 +13353,23 @@ function Vu() {
13318
13353
  W("timeout", null, -1);
13319
13354
  });
13320
13355
  try {
13321
- z.open(G, F, !0);
13356
+ z.open(H, B, !0);
13322
13357
  } catch (b) {
13323
13358
  if (!q)
13324
13359
  throw b;
13325
- delete N.graphQL, g(N, _, I);
13360
+ delete N.graphQL, g(N, R, I);
13326
13361
  return;
13327
13362
  }
13328
- z.timeout = J, c && Object.keys(Y).forEach(function(b) {
13329
- z.setRequestHeader(b, Y[b]);
13363
+ z.timeout = J, c && Object.keys(G).forEach(function(b) {
13364
+ z.setRequestHeader(b, G[b]);
13330
13365
  });
13331
13366
  try {
13332
- z.send(o(G, U));
13367
+ z.send(o(H, V));
13333
13368
  } catch (b) {
13334
13369
  }
13335
13370
  }
13336
- function E(N, _) {
13337
- g(N, 0, _);
13371
+ function E(N, R) {
13372
+ g(N, 0, R);
13338
13373
  }
13339
13374
  r.exports = {
13340
13375
  request: E
@@ -13689,7 +13724,7 @@ function Vu() {
13689
13724
  return h && (p += ", $authenticationInsightInput: AuthenticationInsightInput!"), p += ") { tokenizeCreditCardForPayPalConnect(input: $input) { clientMutationId paymentMethod { id details { ... on CreditCardDetails { bin brandCode last4 cardholderName expirationMonth expirationYear binData { prepaid healthcare debit durbinRegulated commercial payroll issuingBank countryOfIssuance productId business consumer purchase corporate } } } }", h && (p += " authenticationInsight(input: $authenticationInsightInput) { customerAuthenticationRegulationEnvironment }"), p += " } }", p;
13690
13725
  }
13691
13726
  function o(u, h) {
13692
- var p = u.creditCard, m = p.fastlane || {}, y = "fastlane" in p && "termsAndConditionsVersion" in p.fastlane && p.fastlane.termsAndConditionsVersion, f = "fastlane" in p && "termsAndConditionsCountry" in p.fastlane && p.fastlane.termsAndConditionsCountry, g = p.email, E = "hasBuyerConsent" in m && m.hasBuyerConsent, N = p.shippingAddress, _ = l(u, h), I = n({}, _.input, {
13727
+ var p = u.creditCard, m = p.fastlane || {}, y = "fastlane" in p && "termsAndConditionsVersion" in p.fastlane && p.fastlane.termsAndConditionsVersion, f = "fastlane" in p && "termsAndConditionsCountry" in p.fastlane && p.fastlane.termsAndConditionsCountry, g = p.email, E = "hasBuyerConsent" in m && m.hasBuyerConsent, N = p.shippingAddress, R = l(u, h), I = n({}, R.input, {
13693
13728
  email: g,
13694
13729
  optIn: E,
13695
13730
  phone: p.phone
@@ -13809,63 +13844,63 @@ function Vu() {
13809
13844
  r.exports = o;
13810
13845
  }, {}], 24: [function(a, r, i) {
13811
13846
  var n = a("../../constants").BRAINTREE_VERSION, s = a("../../../lib/assign").assign, o = a("../../../lib/snake-case-to-camel-case"), l = a("../../../lib/is-fastlane-checkout"), d = a("./generators/credit-card-tokenization"), c = a("./adapters/credit-card-tokenization"), u = a("./adapters/credit-card-tokenization-fastlane"), h = a("./generators/credit-card-for-fastlane-tokenization"), p = a("./generators/configuration"), m = a("./adapters/configuration"), y = {
13812
- "payment_methods/credit_cards": function(_, I) {
13813
- return I ? h(_) : d(_);
13847
+ "payment_methods/credit_cards": function(R, I) {
13848
+ return I ? h(R) : d(R);
13814
13849
  },
13815
13850
  configuration: p
13816
13851
  }, f = {
13817
- "payment_methods/credit_cards": function(_, I, O) {
13818
- return O ? u(_, I) : c(_, I);
13852
+ "payment_methods/credit_cards": function(R, I, w) {
13853
+ return w ? u(R, I) : c(R, I);
13819
13854
  },
13820
13855
  configuration: m
13821
13856
  };
13822
- function g(_) {
13823
- var I = _.graphQL.getClientApiPath(_.url);
13824
- this._graphQL = _.graphQL, this._data = _.data, this._method = _.method, this._headers = _.headers, this._clientSdkMetadata = {
13825
- source: _.metadata.source,
13826
- integration: _.metadata.integration,
13827
- sessionId: _.metadata.sessionId
13828
- }, this._sendAnalyticsEvent = _.sendAnalyticsEvent || Function.prototype, this._generator = y[I], this._adapter = f[I], this._sendAnalyticsEvent("graphql.init");
13857
+ function g(R) {
13858
+ var I = R.graphQL.getClientApiPath(R.url);
13859
+ this._graphQL = R.graphQL, this._data = R.data, this._method = R.method, this._headers = R.headers, this._clientSdkMetadata = {
13860
+ source: R.metadata.source,
13861
+ integration: R.metadata.integration,
13862
+ sessionId: R.metadata.sessionId
13863
+ }, this._sendAnalyticsEvent = R.sendAnalyticsEvent || Function.prototype, this._generator = y[I], this._adapter = f[I], this._sendAnalyticsEvent("graphql.init");
13829
13864
  }
13830
13865
  g.prototype.getUrl = function() {
13831
13866
  return this._graphQL.getGraphQLEndpoint();
13832
13867
  }, g.prototype.getBody = function() {
13833
- var _ = N(this._data), I = this._generator(
13834
- _,
13868
+ var R = N(this._data), I = this._generator(
13869
+ R,
13835
13870
  // Since this is used for all GQL requests, we only want this if it's a Fastlane Tokenization request
13836
13871
  l(this._data.creditCard)
13837
- ), O = s(
13872
+ ), w = s(
13838
13873
  { clientSdkMetadata: this._clientSdkMetadata },
13839
13874
  I
13840
13875
  );
13841
- return JSON.stringify(O);
13876
+ return JSON.stringify(w);
13842
13877
  }, g.prototype.getMethod = function() {
13843
13878
  return "POST";
13844
13879
  }, g.prototype.getHeaders = function() {
13845
- var _, I;
13846
- return this._data.authorizationFingerprint ? (this._sendAnalyticsEvent("graphql.authorization-fingerprint"), _ = this._data.authorizationFingerprint) : (this._sendAnalyticsEvent("graphql.tokenization-key"), _ = this._data.tokenizationKey), I = {
13847
- Authorization: "Bearer " + _,
13880
+ var R, I;
13881
+ return this._data.authorizationFingerprint ? (this._sendAnalyticsEvent("graphql.authorization-fingerprint"), R = this._data.authorizationFingerprint) : (this._sendAnalyticsEvent("graphql.tokenization-key"), R = this._data.tokenizationKey), I = {
13882
+ Authorization: "Bearer " + R,
13848
13883
  "Braintree-Version": n
13849
13884
  }, s({}, this._headers, I);
13850
- }, g.prototype.adaptResponseBody = function(_) {
13885
+ }, g.prototype.adaptResponseBody = function(R) {
13851
13886
  return this._adapter(
13852
- _,
13887
+ R,
13853
13888
  this,
13854
13889
  // Since this is used for all GQL requests, we only want this if it's a Fastlane Checkout Tokenization request
13855
13890
  "creditCard" in this._data && l(this._data.creditCard)
13856
13891
  );
13857
- }, g.prototype.determineStatus = function(_, I) {
13858
- var O, w;
13859
- return _ === 200 ? (w = I.errors && I.errors[0] && I.errors[0].extensions && I.errors[0].extensions.errorClass, I.data && !I.errors ? O = 200 : w === "VALIDATION" ? O = 422 : w === "AUTHORIZATION" ? O = 403 : w === "AUTHENTICATION" ? O = 401 : E(w, I) ? O = 403 : O = 500) : _ ? O = _ : O = 500, this._sendAnalyticsEvent("graphql.status." + _), this._sendAnalyticsEvent("graphql.determinedStatus." + O), O;
13892
+ }, g.prototype.determineStatus = function(R, I) {
13893
+ var w, _;
13894
+ return R === 200 ? (_ = I.errors && I.errors[0] && I.errors[0].extensions && I.errors[0].extensions.errorClass, I.data && !I.errors ? w = 200 : _ === "VALIDATION" ? w = 422 : _ === "AUTHORIZATION" ? w = 403 : _ === "AUTHENTICATION" ? w = 401 : E(_, I) ? w = 403 : w = 500) : R ? w = R : w = 500, this._sendAnalyticsEvent("graphql.status." + R), this._sendAnalyticsEvent("graphql.determinedStatus." + w), w;
13860
13895
  };
13861
- function E(_, I) {
13862
- return !_ && I.errors[0].message;
13896
+ function E(R, I) {
13897
+ return !R && I.errors[0].message;
13863
13898
  }
13864
- function N(_) {
13899
+ function N(R) {
13865
13900
  var I = {};
13866
- return Object.keys(_).forEach(function(O) {
13867
- var w = o(O);
13868
- typeof _[O] == "object" ? I[w] = N(_[O]) : typeof _[O] == "number" ? I[w] = String(_[O]) : I[w] = _[O];
13901
+ return Object.keys(R).forEach(function(w) {
13902
+ var _ = o(w);
13903
+ typeof R[w] == "object" ? I[_] = N(R[w]) : typeof R[w] == "number" ? I[_] = String(R[w]) : I[_] = R[w];
13869
13904
  }), I;
13870
13905
  }
13871
13906
  r.exports = g;
@@ -13942,11 +13977,11 @@ function Vu() {
13942
13977
  function d(u, h, p, m) {
13943
13978
  var y = Date.now();
13944
13979
  return p.flow === "vault" ? p.context_type = "BA_Token" : p.flow === "checkout" && (p.context_type = "EC_Token"), Promise.resolve(u).then(function(f) {
13945
- var g = f._request, E = n.ANALYTICS_URL, N = n.ANALYTICS_PREFIX + h, _ = f.getConfiguration(), I = _.gatewayConfiguration.environment === "production", O = {
13980
+ var g = f._request, E = n.ANALYTICS_URL, N = n.ANALYTICS_PREFIX + h, R = f.getConfiguration(), I = R.gatewayConfiguration.environment === "production", w = {
13946
13981
  events: [],
13947
13982
  tracking: []
13948
- }, w = s.addEventMetadata(f, O);
13949
- return w.event_name = N, w.t = y, O.events = [
13983
+ }, _ = s.addEventMetadata(f, w);
13984
+ return _.event_name = N, _.t = y, w.events = [
13950
13985
  {
13951
13986
  level: "info",
13952
13987
  event: N,
@@ -13958,11 +13993,11 @@ function Vu() {
13958
13993
  p
13959
13994
  )
13960
13995
  }
13961
- ], O.tracking = [w], p && typeof p == "object" && (O.tracking = [c(w, p)]), g(
13996
+ ], w.tracking = [_], p && typeof p == "object" && (w.tracking = [c(_, p)]), g(
13962
13997
  {
13963
13998
  url: E,
13964
13999
  method: "post",
13965
- data: O,
14000
+ data: w,
13966
14001
  timeout: n.ANALYTICS_REQUEST_TIMEOUT_MS
13967
14002
  },
13968
14003
  m
@@ -14249,10 +14284,10 @@ function Vu() {
14249
14284
  });
14250
14285
  }(Ma)), Ma.exports;
14251
14286
  }
14252
- var Fu = Vu();
14253
- const Bu = /* @__PURE__ */ Ct(Fu);
14287
+ var Bu = Fu();
14288
+ const Uu = /* @__PURE__ */ Ct(Bu);
14254
14289
  var ja = { exports: {} }, zr;
14255
- function Uu() {
14290
+ function Ku() {
14256
14291
  return zr || (zr = 1, function(t, e) {
14257
14292
  (function(a) {
14258
14293
  t.exports = a();
@@ -14382,50 +14417,50 @@ function Uu() {
14382
14417
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14383
14418
  PERFORMANCE OF THIS SOFTWARE.
14384
14419
  ***************************************************************************** */
14385
- function s(P, T, k, R) {
14420
+ function s(P, T, k, O) {
14386
14421
  function S(C) {
14387
- return C instanceof k ? C : new k(function(V) {
14388
- V(C);
14422
+ return C instanceof k ? C : new k(function(F) {
14423
+ F(C);
14389
14424
  });
14390
14425
  }
14391
- return new (k || (k = Promise))(function(C, V) {
14426
+ return new (k || (k = Promise))(function(C, F) {
14392
14427
  function $(ae) {
14393
14428
  try {
14394
- L(R.next(ae));
14429
+ L(O.next(ae));
14395
14430
  } catch (me) {
14396
- V(me);
14431
+ F(me);
14397
14432
  }
14398
14433
  }
14399
14434
  function re(ae) {
14400
14435
  try {
14401
- L(R.throw(ae));
14436
+ L(O.throw(ae));
14402
14437
  } catch (me) {
14403
- V(me);
14438
+ F(me);
14404
14439
  }
14405
14440
  }
14406
14441
  function L(ae) {
14407
14442
  ae.done ? C(ae.value) : S(ae.value).then($, re);
14408
14443
  }
14409
- L((R = R.apply(P, [])).next());
14444
+ L((O = O.apply(P, [])).next());
14410
14445
  });
14411
14446
  }
14412
14447
  function o(P, T) {
14413
14448
  var k = { label: 0, sent: function() {
14414
14449
  if (C[0] & 1) throw C[1];
14415
14450
  return C[1];
14416
- }, trys: [], ops: [] }, R, S, C, V;
14417
- return V = { next: $(0), throw: $(1), return: $(2) }, typeof Symbol == "function" && (V[Symbol.iterator] = function() {
14451
+ }, trys: [], ops: [] }, O, S, C, F;
14452
+ return F = { next: $(0), throw: $(1), return: $(2) }, typeof Symbol == "function" && (F[Symbol.iterator] = function() {
14418
14453
  return this;
14419
- }), V;
14454
+ }), F;
14420
14455
  function $(L) {
14421
14456
  return function(ae) {
14422
14457
  return re([L, ae]);
14423
14458
  };
14424
14459
  }
14425
14460
  function re(L) {
14426
- if (R) throw new TypeError("Generator is already executing.");
14461
+ if (O) throw new TypeError("Generator is already executing.");
14427
14462
  for (; k; ) try {
14428
- if (R = 1, S && (C = L[0] & 2 ? S.return : L[0] ? S.throw || ((C = S.return) && C.call(S), 0) : S.next) && !(C = C.call(S, L[1])).done) return C;
14463
+ if (O = 1, S && (C = L[0] & 2 ? S.return : L[0] ? S.throw || ((C = S.return) && C.call(S), 0) : S.next) && !(C = C.call(S, L[1])).done) return C;
14429
14464
  switch (S = 0, C && (L = [L[0] & 2, C.value]), L[0]) {
14430
14465
  case 0:
14431
14466
  case 1:
@@ -14463,7 +14498,7 @@ function Uu() {
14463
14498
  } catch (ae) {
14464
14499
  L = [6, ae], S = 0;
14465
14500
  } finally {
14466
- R = C = 0;
14501
+ O = C = 0;
14467
14502
  }
14468
14503
  if (L[0] & 5) throw L[1];
14469
14504
  return { value: L[0] ? L[1] : void 0, done: !0 };
@@ -14474,17 +14509,17 @@ function Uu() {
14474
14509
  var T, k = JSON.stringify(P);
14475
14510
  if (!P.forceScriptReload && (T = d[k], T))
14476
14511
  return T;
14477
- var R = document.createElement("script"), S = P.dataAttributes || {}, C = P.container || document.head;
14478
- return R.src = P.src, R.id = P.id || "", R.async = !0, P.type && R.setAttribute("type", "".concat(P.type)), P.crossorigin && R.setAttribute("crossorigin", "".concat(P.crossorigin)), Object.keys(S).forEach(function(V) {
14479
- R.setAttribute("data-".concat(V), "".concat(S[V]));
14480
- }), T = new Promise(function(V, $) {
14481
- R.addEventListener("load", function() {
14482
- V(R);
14483
- }), R.addEventListener("error", function() {
14512
+ var O = document.createElement("script"), S = P.dataAttributes || {}, C = P.container || document.head;
14513
+ return O.src = P.src, O.id = P.id || "", O.async = !0, P.type && O.setAttribute("type", "".concat(P.type)), P.crossorigin && O.setAttribute("crossorigin", "".concat(P.crossorigin)), Object.keys(S).forEach(function(F) {
14514
+ O.setAttribute("data-".concat(F), "".concat(S[F]));
14515
+ }), T = new Promise(function(F, $) {
14516
+ O.addEventListener("load", function() {
14517
+ F(O);
14518
+ }), O.addEventListener("error", function() {
14484
14519
  $(new Error("".concat(P.src, " failed to load.")));
14485
- }), R.addEventListener("abort", function() {
14520
+ }), O.addEventListener("abort", function() {
14486
14521
  $(new Error("".concat(P.src, " has aborted.")));
14487
- }), C.appendChild(R);
14522
+ }), C.appendChild(O);
14488
14523
  }), d[k] = T, T;
14489
14524
  }
14490
14525
  c.clearCache = function() {
@@ -14495,8 +14530,8 @@ function Uu() {
14495
14530
  if (k)
14496
14531
  return Promise.resolve(k);
14497
14532
  k = document.createElement("link");
14498
- var R = T.container || document.head;
14499
- return k.setAttribute("rel", "stylesheet"), k.setAttribute("type", "text/css"), k.setAttribute("href", T.href), k.setAttribute("id", T.id), R.firstChild ? R.insertBefore(k, R.firstChild) : R.appendChild(k), Promise.resolve(k);
14533
+ var O = T.container || document.head;
14534
+ return k.setAttribute("rel", "stylesheet"), k.setAttribute("type", "text/css"), k.setAttribute("href", T.href), k.setAttribute("id", T.id), O.firstChild ? O.insertBefore(k, O.firstChild) : O.appendChild(k), Promise.resolve(k);
14500
14535
  };
14501
14536
  Object.defineProperty(l, "__esModule", { value: !0 }), l.loadStylesheet = m = l.loadScript = void 0;
14502
14537
  var p = u, m = l.loadScript = p, y = h;
@@ -14504,42 +14539,42 @@ function Uu() {
14504
14539
  var f = "https://www.paypalobjects.com", g = {
14505
14540
  minified: "axo.min",
14506
14541
  unminified: "axo"
14507
- }, E = "fastlane", N = "connect-boba", _ = "".concat(N, "/locales/"), I = {
14542
+ }, E = "fastlane", N = "connect-boba", R = "".concat(N, "/locales/"), I = {
14508
14543
  AXO_ASSET_NAME: g,
14509
14544
  AXO_ASSET_PATH: N,
14510
- LOCALE_PATH: _,
14545
+ LOCALE_PATH: R,
14511
14546
  CDNX_PROD: f
14512
- }, O = {
14547
+ }, w = {
14513
14548
  BT: "BT",
14514
14549
  PPCP: "PPCP"
14515
14550
  };
14516
- function w() {
14551
+ function _() {
14517
14552
  return typeof window.define == "function" && !!window.define.amd;
14518
14553
  }
14519
14554
  function x() {
14520
- return w() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
14555
+ return _() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
14521
14556
  }
14522
- function U(P, T, k) {
14523
- var R, S;
14557
+ function V(P, T, k) {
14558
+ var O, S;
14524
14559
  return k === void 0 && (k = !0), s(this, void 0, void 0, function() {
14525
- var C, V;
14560
+ var C, F;
14526
14561
  return o(this, function($) {
14527
- if (C = Y(), C && C[P.module]) {
14528
- if (T && ((R = C[P.module]) === null || R === void 0 ? void 0 : R.VERSION) !== T)
14529
- throw V = (S = C[P.module]) === null || S === void 0 ? void 0 : S.VERSION, new Error("".concat(P.module, " already loaded with version ").concat(V, " cannot load version ").concat(T));
14562
+ if (C = G(), C && C[P.module]) {
14563
+ if (T && ((O = C[P.module]) === null || O === void 0 ? void 0 : O.VERSION) !== T)
14564
+ throw F = (S = C[P.module]) === null || S === void 0 ? void 0 : S.VERSION, new Error("".concat(P.module, " already loaded with version ").concat(F, " cannot load version ").concat(T));
14530
14565
  return [2, !0];
14531
14566
  }
14532
14567
  if (!T)
14533
14568
  throw new Error("Attempted to load ".concat(P.module, " without specifying version"));
14534
- return [2, G(P, T, k)];
14569
+ return [2, H(P, T, k)];
14535
14570
  });
14536
14571
  });
14537
14572
  }
14538
- function G(P, T, k) {
14539
- if (k === void 0 && (k = !0), w()) {
14540
- var R = k ? P.amdModule.minified : P.amdModule.unminified;
14541
- return new Promise(function(C, V) {
14542
- window.require([R], C, V);
14573
+ function H(P, T, k) {
14574
+ if (k === void 0 && (k = !0), _()) {
14575
+ var O = k ? P.amdModule.minified : P.amdModule.unminified;
14576
+ return new Promise(function(C, F) {
14577
+ window.require([O], C, F);
14543
14578
  });
14544
14579
  }
14545
14580
  var S = k ? P.script.minified : P.script.unminified;
@@ -14548,52 +14583,52 @@ function Uu() {
14548
14583
  src: "https://js.braintreegateway.com/web/".concat(T, "/js/").concat(S)
14549
14584
  });
14550
14585
  }
14551
- function Y() {
14586
+ function G() {
14552
14587
  return window == null ? void 0 : window.braintree;
14553
14588
  }
14554
- var j, F, B = {
14589
+ var j, B, U = {
14555
14590
  Client: "client",
14556
14591
  HostedCardFields: "hostedFields"
14557
- }, J = "braintree", z = (j = {}, j[B.Client] = "client", j[B.HostedCardFields] = "hosted-fields", j), W = (F = {}, F[B.Client] = {
14592
+ }, J = "braintree", z = (j = {}, j[U.Client] = "client", j[U.HostedCardFields] = "hosted-fields", j), W = (B = {}, B[U.Client] = {
14558
14593
  id: "client",
14559
- module: B.Client,
14594
+ module: U.Client,
14560
14595
  amdModule: {
14561
- unminified: "".concat(J, "/").concat(z[B.Client]),
14562
- minified: "".concat(J, "/").concat(z[B.Client], ".min")
14596
+ unminified: "".concat(J, "/").concat(z[U.Client]),
14597
+ minified: "".concat(J, "/").concat(z[U.Client], ".min")
14563
14598
  },
14564
14599
  script: {
14565
- unminified: "".concat(z[B.Client], ".js"),
14566
- minified: "".concat(z[B.Client], ".min.js")
14600
+ unminified: "".concat(z[U.Client], ".js"),
14601
+ minified: "".concat(z[U.Client], ".min.js")
14567
14602
  }
14568
- }, F[B.HostedCardFields] = {
14603
+ }, B[U.HostedCardFields] = {
14569
14604
  id: "hcf",
14570
- module: B.HostedCardFields,
14605
+ module: U.HostedCardFields,
14571
14606
  amdModule: {
14572
- unminified: "".concat(J, "/").concat(z[B.HostedCardFields]),
14573
- minified: "".concat(J, "/").concat(z[B.HostedCardFields], ".min")
14607
+ unminified: "".concat(J, "/").concat(z[U.HostedCardFields]),
14608
+ minified: "".concat(J, "/").concat(z[U.HostedCardFields], ".min")
14574
14609
  },
14575
14610
  script: {
14576
- unminified: "".concat(z[B.HostedCardFields], ".js"),
14577
- minified: "".concat(z[B.HostedCardFields], ".min.js")
14611
+ unminified: "".concat(z[U.HostedCardFields], ".js"),
14612
+ minified: "".concat(z[U.HostedCardFields], ".min.js")
14578
14613
  }
14579
- }, F);
14614
+ }, B);
14580
14615
  function q(P) {
14581
14616
  return s(this, void 0, void 0, function() {
14582
- var T, k, R, S;
14617
+ var T, k, O, S;
14583
14618
  return o(this, function(C) {
14584
14619
  switch (C.label) {
14585
14620
  case 0:
14586
- return performance.mark("pp_axo_sdk_init_invoked"), T = P.btSdkVersion, k = P.minified, R = D(P), S = M(P), P.platform !== O.BT ? [3, 2] : [4, Promise.all([
14587
- U(W.hostedFields, T, k),
14588
- b(R, k)
14621
+ return performance.mark("pp_axo_sdk_init_invoked"), T = P.btSdkVersion, k = P.minified, O = D(P), S = M(P), P.platform !== w.BT ? [3, 2] : [4, Promise.all([
14622
+ V(W.hostedFields, T, k),
14623
+ b(O, k)
14589
14624
  ])];
14590
14625
  case 1:
14591
14626
  return C.sent(), [3, 5];
14592
14627
  case 2:
14593
- return P.platform !== O.PPCP ? [3, 4] : [4, Promise.all([
14594
- U(W.client, T, k),
14595
- U(W.hostedFields, T, k),
14596
- b(R, k)
14628
+ return P.platform !== w.PPCP ? [3, 4] : [4, Promise.all([
14629
+ V(W.client, T, k),
14630
+ V(W.hostedFields, T, k),
14631
+ b(O, k)
14597
14632
  ])];
14598
14633
  case 3:
14599
14634
  return C.sent(), [3, 5];
@@ -14607,13 +14642,13 @@ function Uu() {
14607
14642
  }
14608
14643
  function b(P, T) {
14609
14644
  var k;
14610
- if (T === void 0 && (T = !0), w()) {
14645
+ if (T === void 0 && (T = !0), _()) {
14611
14646
  x() && requirejs.config({
14612
14647
  paths: (k = {}, k[E] = P, k)
14613
14648
  });
14614
- var R = "".concat(E, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
14649
+ var O = "".concat(E, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
14615
14650
  return new Promise(function(S, C) {
14616
- window.require([R], S, C);
14651
+ window.require([O], S, C);
14617
14652
  });
14618
14653
  }
14619
14654
  return m({
@@ -14627,9 +14662,9 @@ function Uu() {
14627
14662
  return k ? "https://cdn-".concat(k, ".static.engineering.dev.paypalinc.com/").concat(T) : "".concat(I.CDNX_PROD, "/").concat(T);
14628
14663
  }
14629
14664
  function D(P) {
14630
- var T, k = (P == null ? void 0 : P.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, R = w() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(k, ".js");
14665
+ var T, k = (P == null ? void 0 : P.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, O = _() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(k, ".js");
14631
14666
  return v({
14632
- assetUrl: R,
14667
+ assetUrl: O,
14633
14668
  bundleId: (T = P == null ? void 0 : P.metadata) === null || T === void 0 ? void 0 : T.bundleIdOverride
14634
14669
  });
14635
14670
  }
@@ -14671,8 +14706,8 @@ function Uu() {
14671
14706
  g.cb1
14672
14707
  ), l({
14673
14708
  src: o
14674
- }).then(function(_) {
14675
- return N._thirdPartyBlock = _, N;
14709
+ }).then(function(R) {
14710
+ return N._thirdPartyBlock = R, N;
14676
14711
  }).catch(function() {
14677
14712
  return null;
14678
14713
  });
@@ -14686,14 +14721,14 @@ function Uu() {
14686
14721
  var E = (/* @__PURE__ */ new Date()).getTime() / 1e3;
14687
14722
  return "https://b.stats.paypal.com/counter.cgi?i=127.0.0.1&p=" + g + "&t=" + E + "&a=14";
14688
14723
  }
14689
- function f(g, E, N, _) {
14690
- var I = document.body.appendChild(document.createElement("script")), O = {
14724
+ function f(g, E, N, R) {
14725
+ var I = document.body.appendChild(document.createElement("script")), w = {
14691
14726
  f: g,
14692
14727
  s,
14693
14728
  b: E,
14694
- cb1: _
14729
+ cb1: R
14695
14730
  };
14696
- return N !== "production" && (O.sandbox = !0), I.type = "application/json", I.setAttribute("fncls", n), I.text = JSON.stringify(O), I;
14731
+ return N !== "production" && (w.sandbox = !0), I.type = "application/json", I.setAttribute("fncls", n), I.text = JSON.stringify(w), I;
14697
14732
  }
14698
14733
  r.exports = {
14699
14734
  setup: u,
@@ -14702,7 +14737,7 @@ function Uu() {
14702
14737
  }, { "../lib/assets": 11, "../lib/constants": 14 }], 10: [function(a, r, i) {
14703
14738
  var n = a("./fraudnet"), s = a("../lib/braintree-error"), o = a("../lib/basic-component-verification"), l = a("../lib/create-deferred-client"), d = a("../lib/create-assets-url"), c = a("../lib/methods"), u = a("../lib/convert-methods-to-error"), h = "3.126.0", p = a("@braintree/wrap-promise"), m = a("./errors");
14704
14739
  function y(E) {
14705
- var N = "Data Collector", _ = {
14740
+ var N = "Data Collector", R = {
14706
14741
  _instances: []
14707
14742
  }, I = {};
14708
14743
  return o.verify({
@@ -14710,42 +14745,42 @@ function Uu() {
14710
14745
  client: E.client,
14711
14746
  authorization: E.authorization
14712
14747
  }).then(function() {
14713
- return _._instantiatedWithAClient = !E.useDeferredClient, _._createPromise = l.create({
14748
+ return R._instantiatedWithAClient = !E.useDeferredClient, R._createPromise = l.create({
14714
14749
  authorization: E.authorization,
14715
14750
  client: E.client,
14716
14751
  debug: E.debug,
14717
14752
  assetsUrl: d.create(E.authorization),
14718
14753
  name: N
14719
- }).then(function(O) {
14720
- var w = O.getConfiguration();
14754
+ }).then(function(w) {
14755
+ var _ = w.getConfiguration();
14721
14756
  return n.setup({
14722
14757
  sessionId: E.riskCorrelationId || E.clientMetadataId || E.correlationId,
14723
- clientSessionId: w.analyticsMetadata.sessionId,
14724
- environment: w.gatewayConfiguration.environment,
14758
+ clientSessionId: _.analyticsMetadata.sessionId,
14759
+ environment: _.gatewayConfiguration.environment,
14725
14760
  cb1: E.cb1
14726
14761
  }).then(function(x) {
14727
- x && (I.correlation_id = x.sessionId, _._instances.push(x));
14762
+ x && (I.correlation_id = x.sessionId, R._instances.push(x));
14728
14763
  });
14729
14764
  }).then(function() {
14730
- return _._instances.length === 0 ? Promise.reject(
14765
+ return R._instances.length === 0 ? Promise.reject(
14731
14766
  new s(m.DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS)
14732
- ) : (_.deviceData = JSON.stringify(I), _.rawDeviceData = I, _);
14733
- }), _.teardown = f(_), _.getDeviceData = g(_), _._instantiatedWithAClient ? _._createPromise : _;
14767
+ ) : (R.deviceData = JSON.stringify(I), R.rawDeviceData = I, R);
14768
+ }), R.teardown = f(R), R.getDeviceData = g(R), R._instantiatedWithAClient ? R._createPromise : R;
14734
14769
  });
14735
14770
  }
14736
14771
  function f(E) {
14737
14772
  return p(function() {
14738
14773
  return E._createPromise.then(function() {
14739
- E._instances.forEach(function(_) {
14740
- _ && _.teardown();
14774
+ E._instances.forEach(function(R) {
14775
+ R && R.teardown();
14741
14776
  }), u(E, c(E));
14742
14777
  });
14743
14778
  });
14744
14779
  }
14745
14780
  function g(E) {
14746
- return p(function(_) {
14747
- return _ = _ || {}, E._createPromise.then(function() {
14748
- return _.raw ? Promise.resolve(E.rawDeviceData) : Promise.resolve(E.deviceData);
14781
+ return p(function(R) {
14782
+ return R = R || {}, E._createPromise.then(function() {
14783
+ return R.raw ? Promise.resolve(E.rawDeviceData) : Promise.resolve(E.deviceData);
14749
14784
  });
14750
14785
  });
14751
14786
  }
@@ -14938,10 +14973,10 @@ function Uu() {
14938
14973
  });
14939
14974
  }(ja)), ja.exports;
14940
14975
  }
14941
- var Ku = Uu();
14942
- const qu = /* @__PURE__ */ Ct(Ku);
14976
+ var qu = Ku();
14977
+ const Hu = /* @__PURE__ */ Ct(qu);
14943
14978
  var Va = { exports: {} }, Sr;
14944
- function Hu() {
14979
+ function Yu() {
14945
14980
  return Sr || (Sr = 1, function(t, e) {
14946
14981
  (function(a) {
14947
14982
  t.exports = a();
@@ -15299,50 +15334,50 @@ function Hu() {
15299
15334
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15300
15335
  PERFORMANCE OF THIS SOFTWARE.
15301
15336
  ***************************************************************************** */
15302
- function s(P, T, k, R) {
15337
+ function s(P, T, k, O) {
15303
15338
  function S(C) {
15304
- return C instanceof k ? C : new k(function(V) {
15305
- V(C);
15339
+ return C instanceof k ? C : new k(function(F) {
15340
+ F(C);
15306
15341
  });
15307
15342
  }
15308
- return new (k || (k = Promise))(function(C, V) {
15343
+ return new (k || (k = Promise))(function(C, F) {
15309
15344
  function $(ae) {
15310
15345
  try {
15311
- L(R.next(ae));
15346
+ L(O.next(ae));
15312
15347
  } catch (me) {
15313
- V(me);
15348
+ F(me);
15314
15349
  }
15315
15350
  }
15316
15351
  function re(ae) {
15317
15352
  try {
15318
- L(R.throw(ae));
15353
+ L(O.throw(ae));
15319
15354
  } catch (me) {
15320
- V(me);
15355
+ F(me);
15321
15356
  }
15322
15357
  }
15323
15358
  function L(ae) {
15324
15359
  ae.done ? C(ae.value) : S(ae.value).then($, re);
15325
15360
  }
15326
- L((R = R.apply(P, [])).next());
15361
+ L((O = O.apply(P, [])).next());
15327
15362
  });
15328
15363
  }
15329
15364
  function o(P, T) {
15330
15365
  var k = { label: 0, sent: function() {
15331
15366
  if (C[0] & 1) throw C[1];
15332
15367
  return C[1];
15333
- }, trys: [], ops: [] }, R, S, C, V;
15334
- return V = { next: $(0), throw: $(1), return: $(2) }, typeof Symbol == "function" && (V[Symbol.iterator] = function() {
15368
+ }, trys: [], ops: [] }, O, S, C, F;
15369
+ return F = { next: $(0), throw: $(1), return: $(2) }, typeof Symbol == "function" && (F[Symbol.iterator] = function() {
15335
15370
  return this;
15336
- }), V;
15371
+ }), F;
15337
15372
  function $(L) {
15338
15373
  return function(ae) {
15339
15374
  return re([L, ae]);
15340
15375
  };
15341
15376
  }
15342
15377
  function re(L) {
15343
- if (R) throw new TypeError("Generator is already executing.");
15378
+ if (O) throw new TypeError("Generator is already executing.");
15344
15379
  for (; k; ) try {
15345
- if (R = 1, S && (C = L[0] & 2 ? S.return : L[0] ? S.throw || ((C = S.return) && C.call(S), 0) : S.next) && !(C = C.call(S, L[1])).done) return C;
15380
+ if (O = 1, S && (C = L[0] & 2 ? S.return : L[0] ? S.throw || ((C = S.return) && C.call(S), 0) : S.next) && !(C = C.call(S, L[1])).done) return C;
15346
15381
  switch (S = 0, C && (L = [L[0] & 2, C.value]), L[0]) {
15347
15382
  case 0:
15348
15383
  case 1:
@@ -15380,7 +15415,7 @@ function Hu() {
15380
15415
  } catch (ae) {
15381
15416
  L = [6, ae], S = 0;
15382
15417
  } finally {
15383
- R = C = 0;
15418
+ O = C = 0;
15384
15419
  }
15385
15420
  if (L[0] & 5) throw L[1];
15386
15421
  return { value: L[0] ? L[1] : void 0, done: !0 };
@@ -15391,17 +15426,17 @@ function Hu() {
15391
15426
  var T, k = JSON.stringify(P);
15392
15427
  if (!P.forceScriptReload && (T = d[k], T))
15393
15428
  return T;
15394
- var R = document.createElement("script"), S = P.dataAttributes || {}, C = P.container || document.head;
15395
- return R.src = P.src, R.id = P.id || "", R.async = !0, P.type && R.setAttribute("type", "".concat(P.type)), P.crossorigin && R.setAttribute("crossorigin", "".concat(P.crossorigin)), Object.keys(S).forEach(function(V) {
15396
- R.setAttribute("data-".concat(V), "".concat(S[V]));
15397
- }), T = new Promise(function(V, $) {
15398
- R.addEventListener("load", function() {
15399
- V(R);
15400
- }), R.addEventListener("error", function() {
15429
+ var O = document.createElement("script"), S = P.dataAttributes || {}, C = P.container || document.head;
15430
+ return O.src = P.src, O.id = P.id || "", O.async = !0, P.type && O.setAttribute("type", "".concat(P.type)), P.crossorigin && O.setAttribute("crossorigin", "".concat(P.crossorigin)), Object.keys(S).forEach(function(F) {
15431
+ O.setAttribute("data-".concat(F), "".concat(S[F]));
15432
+ }), T = new Promise(function(F, $) {
15433
+ O.addEventListener("load", function() {
15434
+ F(O);
15435
+ }), O.addEventListener("error", function() {
15401
15436
  $(new Error("".concat(P.src, " failed to load.")));
15402
- }), R.addEventListener("abort", function() {
15437
+ }), O.addEventListener("abort", function() {
15403
15438
  $(new Error("".concat(P.src, " has aborted.")));
15404
- }), C.appendChild(R);
15439
+ }), C.appendChild(O);
15405
15440
  }), d[k] = T, T;
15406
15441
  }
15407
15442
  c.clearCache = function() {
@@ -15412,8 +15447,8 @@ function Hu() {
15412
15447
  if (k)
15413
15448
  return Promise.resolve(k);
15414
15449
  k = document.createElement("link");
15415
- var R = T.container || document.head;
15416
- return k.setAttribute("rel", "stylesheet"), k.setAttribute("type", "text/css"), k.setAttribute("href", T.href), k.setAttribute("id", T.id), R.firstChild ? R.insertBefore(k, R.firstChild) : R.appendChild(k), Promise.resolve(k);
15450
+ var O = T.container || document.head;
15451
+ return k.setAttribute("rel", "stylesheet"), k.setAttribute("type", "text/css"), k.setAttribute("href", T.href), k.setAttribute("id", T.id), O.firstChild ? O.insertBefore(k, O.firstChild) : O.appendChild(k), Promise.resolve(k);
15417
15452
  };
15418
15453
  Object.defineProperty(l, "__esModule", { value: !0 }), l.loadStylesheet = m = l.loadScript = void 0;
15419
15454
  var p = u, m = l.loadScript = p, y = h;
@@ -15421,42 +15456,42 @@ function Hu() {
15421
15456
  var f = "https://www.paypalobjects.com", g = {
15422
15457
  minified: "axo.min",
15423
15458
  unminified: "axo"
15424
- }, E = "fastlane", N = "connect-boba", _ = "".concat(N, "/locales/"), I = {
15459
+ }, E = "fastlane", N = "connect-boba", R = "".concat(N, "/locales/"), I = {
15425
15460
  AXO_ASSET_NAME: g,
15426
15461
  AXO_ASSET_PATH: N,
15427
- LOCALE_PATH: _,
15462
+ LOCALE_PATH: R,
15428
15463
  CDNX_PROD: f
15429
- }, O = {
15464
+ }, w = {
15430
15465
  BT: "BT",
15431
15466
  PPCP: "PPCP"
15432
15467
  };
15433
- function w() {
15468
+ function _() {
15434
15469
  return typeof window.define == "function" && !!window.define.amd;
15435
15470
  }
15436
15471
  function x() {
15437
- return w() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
15472
+ return _() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
15438
15473
  }
15439
- function U(P, T, k) {
15440
- var R, S;
15474
+ function V(P, T, k) {
15475
+ var O, S;
15441
15476
  return k === void 0 && (k = !0), s(this, void 0, void 0, function() {
15442
- var C, V;
15477
+ var C, F;
15443
15478
  return o(this, function($) {
15444
- if (C = Y(), C && C[P.module]) {
15445
- if (T && ((R = C[P.module]) === null || R === void 0 ? void 0 : R.VERSION) !== T)
15446
- throw V = (S = C[P.module]) === null || S === void 0 ? void 0 : S.VERSION, new Error("".concat(P.module, " already loaded with version ").concat(V, " cannot load version ").concat(T));
15479
+ if (C = G(), C && C[P.module]) {
15480
+ if (T && ((O = C[P.module]) === null || O === void 0 ? void 0 : O.VERSION) !== T)
15481
+ throw F = (S = C[P.module]) === null || S === void 0 ? void 0 : S.VERSION, new Error("".concat(P.module, " already loaded with version ").concat(F, " cannot load version ").concat(T));
15447
15482
  return [2, !0];
15448
15483
  }
15449
15484
  if (!T)
15450
15485
  throw new Error("Attempted to load ".concat(P.module, " without specifying version"));
15451
- return [2, G(P, T, k)];
15486
+ return [2, H(P, T, k)];
15452
15487
  });
15453
15488
  });
15454
15489
  }
15455
- function G(P, T, k) {
15456
- if (k === void 0 && (k = !0), w()) {
15457
- var R = k ? P.amdModule.minified : P.amdModule.unminified;
15458
- return new Promise(function(C, V) {
15459
- window.require([R], C, V);
15490
+ function H(P, T, k) {
15491
+ if (k === void 0 && (k = !0), _()) {
15492
+ var O = k ? P.amdModule.minified : P.amdModule.unminified;
15493
+ return new Promise(function(C, F) {
15494
+ window.require([O], C, F);
15460
15495
  });
15461
15496
  }
15462
15497
  var S = k ? P.script.minified : P.script.unminified;
@@ -15465,52 +15500,52 @@ function Hu() {
15465
15500
  src: "https://js.braintreegateway.com/web/".concat(T, "/js/").concat(S)
15466
15501
  });
15467
15502
  }
15468
- function Y() {
15503
+ function G() {
15469
15504
  return window == null ? void 0 : window.braintree;
15470
15505
  }
15471
- var j, F, B = {
15506
+ var j, B, U = {
15472
15507
  Client: "client",
15473
15508
  HostedCardFields: "hostedFields"
15474
- }, J = "braintree", z = (j = {}, j[B.Client] = "client", j[B.HostedCardFields] = "hosted-fields", j), W = (F = {}, F[B.Client] = {
15509
+ }, J = "braintree", z = (j = {}, j[U.Client] = "client", j[U.HostedCardFields] = "hosted-fields", j), W = (B = {}, B[U.Client] = {
15475
15510
  id: "client",
15476
- module: B.Client,
15511
+ module: U.Client,
15477
15512
  amdModule: {
15478
- unminified: "".concat(J, "/").concat(z[B.Client]),
15479
- minified: "".concat(J, "/").concat(z[B.Client], ".min")
15513
+ unminified: "".concat(J, "/").concat(z[U.Client]),
15514
+ minified: "".concat(J, "/").concat(z[U.Client], ".min")
15480
15515
  },
15481
15516
  script: {
15482
- unminified: "".concat(z[B.Client], ".js"),
15483
- minified: "".concat(z[B.Client], ".min.js")
15517
+ unminified: "".concat(z[U.Client], ".js"),
15518
+ minified: "".concat(z[U.Client], ".min.js")
15484
15519
  }
15485
- }, F[B.HostedCardFields] = {
15520
+ }, B[U.HostedCardFields] = {
15486
15521
  id: "hcf",
15487
- module: B.HostedCardFields,
15522
+ module: U.HostedCardFields,
15488
15523
  amdModule: {
15489
- unminified: "".concat(J, "/").concat(z[B.HostedCardFields]),
15490
- minified: "".concat(J, "/").concat(z[B.HostedCardFields], ".min")
15524
+ unminified: "".concat(J, "/").concat(z[U.HostedCardFields]),
15525
+ minified: "".concat(J, "/").concat(z[U.HostedCardFields], ".min")
15491
15526
  },
15492
15527
  script: {
15493
- unminified: "".concat(z[B.HostedCardFields], ".js"),
15494
- minified: "".concat(z[B.HostedCardFields], ".min.js")
15528
+ unminified: "".concat(z[U.HostedCardFields], ".js"),
15529
+ minified: "".concat(z[U.HostedCardFields], ".min.js")
15495
15530
  }
15496
- }, F);
15531
+ }, B);
15497
15532
  function q(P) {
15498
15533
  return s(this, void 0, void 0, function() {
15499
- var T, k, R, S;
15534
+ var T, k, O, S;
15500
15535
  return o(this, function(C) {
15501
15536
  switch (C.label) {
15502
15537
  case 0:
15503
- return performance.mark("pp_axo_sdk_init_invoked"), T = P.btSdkVersion, k = P.minified, R = D(P), S = M(P), P.platform !== O.BT ? [3, 2] : [4, Promise.all([
15504
- U(W.hostedFields, T, k),
15505
- b(R, k)
15538
+ return performance.mark("pp_axo_sdk_init_invoked"), T = P.btSdkVersion, k = P.minified, O = D(P), S = M(P), P.platform !== w.BT ? [3, 2] : [4, Promise.all([
15539
+ V(W.hostedFields, T, k),
15540
+ b(O, k)
15506
15541
  ])];
15507
15542
  case 1:
15508
15543
  return C.sent(), [3, 5];
15509
15544
  case 2:
15510
- return P.platform !== O.PPCP ? [3, 4] : [4, Promise.all([
15511
- U(W.client, T, k),
15512
- U(W.hostedFields, T, k),
15513
- b(R, k)
15545
+ return P.platform !== w.PPCP ? [3, 4] : [4, Promise.all([
15546
+ V(W.client, T, k),
15547
+ V(W.hostedFields, T, k),
15548
+ b(O, k)
15514
15549
  ])];
15515
15550
  case 3:
15516
15551
  return C.sent(), [3, 5];
@@ -15524,13 +15559,13 @@ function Hu() {
15524
15559
  }
15525
15560
  function b(P, T) {
15526
15561
  var k;
15527
- if (T === void 0 && (T = !0), w()) {
15562
+ if (T === void 0 && (T = !0), _()) {
15528
15563
  x() && requirejs.config({
15529
15564
  paths: (k = {}, k[E] = P, k)
15530
15565
  });
15531
- var R = "".concat(E, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
15566
+ var O = "".concat(E, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
15532
15567
  return new Promise(function(S, C) {
15533
- window.require([R], S, C);
15568
+ window.require([O], S, C);
15534
15569
  });
15535
15570
  }
15536
15571
  return m({
@@ -15544,9 +15579,9 @@ function Hu() {
15544
15579
  return k ? "https://cdn-".concat(k, ".static.engineering.dev.paypalinc.com/").concat(T) : "".concat(I.CDNX_PROD, "/").concat(T);
15545
15580
  }
15546
15581
  function D(P) {
15547
- var T, k = (P == null ? void 0 : P.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, R = w() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(k, ".js");
15582
+ var T, k = (P == null ? void 0 : P.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, O = _() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(k, ".js");
15548
15583
  return v({
15549
- assetUrl: R,
15584
+ assetUrl: O,
15550
15585
  bundleId: (T = P == null ? void 0 : P.metadata) === null || T === void 0 ? void 0 : T.bundleIdOverride
15551
15586
  });
15552
15587
  }
@@ -15886,11 +15921,11 @@ function Hu() {
15886
15921
  function d(u, h, p, m) {
15887
15922
  var y = Date.now();
15888
15923
  return p.flow === "vault" ? p.context_type = "BA_Token" : p.flow === "checkout" && (p.context_type = "EC_Token"), Promise.resolve(u).then(function(f) {
15889
- var g = f._request, E = n.ANALYTICS_URL, N = n.ANALYTICS_PREFIX + h, _ = f.getConfiguration(), I = _.gatewayConfiguration.environment === "production", O = {
15924
+ var g = f._request, E = n.ANALYTICS_URL, N = n.ANALYTICS_PREFIX + h, R = f.getConfiguration(), I = R.gatewayConfiguration.environment === "production", w = {
15890
15925
  events: [],
15891
15926
  tracking: []
15892
- }, w = s.addEventMetadata(f, O);
15893
- return w.event_name = N, w.t = y, O.events = [
15927
+ }, _ = s.addEventMetadata(f, w);
15928
+ return _.event_name = N, _.t = y, w.events = [
15894
15929
  {
15895
15930
  level: "info",
15896
15931
  event: N,
@@ -15902,11 +15937,11 @@ function Hu() {
15902
15937
  p
15903
15938
  )
15904
15939
  }
15905
- ], O.tracking = [w], p && typeof p == "object" && (O.tracking = [c(w, p)]), g(
15940
+ ], w.tracking = [_], p && typeof p == "object" && (w.tracking = [c(_, p)]), g(
15906
15941
  {
15907
15942
  url: E,
15908
15943
  method: "post",
15909
- data: O,
15944
+ data: w,
15910
15945
  timeout: n.ANALYTICS_REQUEST_TIMEOUT_MS
15911
15946
  },
15912
15947
  m
@@ -16135,38 +16170,38 @@ function Hu() {
16135
16170
  var n = a("./strategies/popup"), s = a("./strategies/popup-bridge"), o = a("./strategies/modal"), l = a("framebus"), d = a("../shared/events"), c = a("../shared/errors"), u = a("../shared/constants"), h = a("@braintree/uuid"), p = a("@braintree/iframer"), m = a("../../braintree-error"), y = a("../shared/browser-detection"), f = a("./../../assign").assign, g = a("../../constants").BUS_CONFIGURATION_REQUEST_EVENT, E = ["name", "dispatchFrameUrl", "openFrameUrl"];
16136
16171
  function N() {
16137
16172
  }
16138
- function _(O) {
16139
- if (!O)
16173
+ function R(w) {
16174
+ if (!w)
16140
16175
  throw new Error("Valid configuration is required");
16141
- if (E.forEach(function(w) {
16142
- if (!O.hasOwnProperty(w))
16143
- throw new Error("A valid frame " + w + " must be provided");
16144
- }), !/^[\w_]+$/.test(O.name))
16176
+ if (E.forEach(function(_) {
16177
+ if (!w.hasOwnProperty(_))
16178
+ throw new Error("A valid frame " + _ + " must be provided");
16179
+ }), !/^[\w_]+$/.test(w.name))
16145
16180
  throw new Error("A valid frame name must be provided");
16146
16181
  }
16147
- function I(O) {
16148
- _(O), this._serviceId = h().replace(/-/g, ""), this._options = {
16149
- name: O.name + "_" + this._serviceId,
16150
- dispatchFrameUrl: O.dispatchFrameUrl,
16151
- openFrameUrl: O.openFrameUrl,
16152
- height: O.height,
16153
- width: O.width,
16154
- top: O.top,
16155
- left: O.left
16156
- }, this.state = O.state || {}, this._bus = new l({ channel: this._serviceId }), this._setBusEvents();
16182
+ function I(w) {
16183
+ R(w), this._serviceId = h().replace(/-/g, ""), this._options = {
16184
+ name: w.name + "_" + this._serviceId,
16185
+ dispatchFrameUrl: w.dispatchFrameUrl,
16186
+ openFrameUrl: w.openFrameUrl,
16187
+ height: w.height,
16188
+ width: w.width,
16189
+ top: w.top,
16190
+ left: w.left
16191
+ }, this.state = w.state || {}, this._bus = new l({ channel: this._serviceId }), this._setBusEvents();
16157
16192
  }
16158
- I.prototype.initialize = function(O) {
16159
- var w = function() {
16160
- O(), this._bus.off(d.DISPATCH_FRAME_READY, w);
16193
+ I.prototype.initialize = function(w) {
16194
+ var _ = function() {
16195
+ w(), this._bus.off(d.DISPATCH_FRAME_READY, _);
16161
16196
  }.bind(this);
16162
- this._bus.on(d.DISPATCH_FRAME_READY, w), this._writeDispatchFrame();
16197
+ this._bus.on(d.DISPATCH_FRAME_READY, _), this._writeDispatchFrame();
16163
16198
  }, I.prototype._writeDispatchFrame = function() {
16164
- var O = u.DISPATCH_FRAME_NAME + "_" + this._serviceId, w = this._options.dispatchFrameUrl;
16199
+ var w = u.DISPATCH_FRAME_NAME + "_" + this._serviceId, _ = this._options.dispatchFrameUrl;
16165
16200
  this._dispatchFrame = p({
16166
16201
  "aria-hidden": !0,
16167
- name: O,
16168
- title: O,
16169
- src: w,
16202
+ name: w,
16203
+ title: w,
16204
+ src: _,
16170
16205
  class: u.DISPATCH_FRAME_CLASS,
16171
16206
  height: 0,
16172
16207
  width: 0,
@@ -16178,36 +16213,36 @@ function Hu() {
16178
16213
  }, I.prototype._setBusEvents = function() {
16179
16214
  this._bus.on(
16180
16215
  d.DISPATCH_FRAME_REPORT,
16181
- function(O, w) {
16182
- this._onCompleteCallback && this._onCompleteCallback.call(null, O.err, O.payload), this._frame.close(), this._onCompleteCallback = null, w && w();
16216
+ function(w, _) {
16217
+ this._onCompleteCallback && this._onCompleteCallback.call(null, w.err, w.payload), this._frame.close(), this._onCompleteCallback = null, _ && _();
16183
16218
  }.bind(this)
16184
16219
  ), this._bus.on(
16185
16220
  g,
16186
- function(O) {
16187
- O(this.state);
16221
+ function(w) {
16222
+ w(this.state);
16188
16223
  }.bind(this)
16189
16224
  );
16190
- }, I.prototype.open = function(O, w) {
16191
- if (O = O || {}, this._frame = this._getFrameForEnvironment(O), this._frame.initialize(w), !(this._frame instanceof s)) {
16192
- if (f(this.state, O.state), this._onCompleteCallback = w, this._frame.open(), this.isFrameClosed()) {
16193
- this._cleanupFrame(), w && w(new m(c.FRAME_SERVICE_FRAME_OPEN_FAILED));
16225
+ }, I.prototype.open = function(w, _) {
16226
+ if (w = w || {}, this._frame = this._getFrameForEnvironment(w), this._frame.initialize(_), !(this._frame instanceof s)) {
16227
+ if (f(this.state, w.state), this._onCompleteCallback = _, this._frame.open(), this.isFrameClosed()) {
16228
+ this._cleanupFrame(), _ && _(new m(c.FRAME_SERVICE_FRAME_OPEN_FAILED));
16194
16229
  return;
16195
16230
  }
16196
16231
  this._pollForPopupClose();
16197
16232
  }
16198
- }, I.prototype.redirect = function(O) {
16199
- this._frame && !this.isFrameClosed() && this._frame.redirect(O);
16233
+ }, I.prototype.redirect = function(w) {
16234
+ this._frame && !this.isFrameClosed() && this._frame.redirect(w);
16200
16235
  }, I.prototype.close = function() {
16201
16236
  this.isFrameClosed() || this._frame.close();
16202
16237
  }, I.prototype.focus = function() {
16203
16238
  this.isFrameClosed() || this._frame.focus();
16204
- }, I.prototype.createHandler = function(O) {
16205
- return O = O || {}, {
16239
+ }, I.prototype.createHandler = function(w) {
16240
+ return w = w || {}, {
16206
16241
  close: function() {
16207
- O.beforeClose && O.beforeClose(), this.close();
16242
+ w.beforeClose && w.beforeClose(), this.close();
16208
16243
  }.bind(this),
16209
16244
  focus: function() {
16210
- O.beforeFocus && O.beforeFocus(), this.focus();
16245
+ w.beforeFocus && w.beforeFocus(), this.focus();
16211
16246
  }.bind(this)
16212
16247
  };
16213
16248
  }, I.prototype.createNoopHandler = function() {
@@ -16230,9 +16265,9 @@ function Hu() {
16230
16265
  }.bind(this),
16231
16266
  u.POPUP_POLL_INTERVAL
16232
16267
  ), this._popupInterval;
16233
- }, I.prototype._getFrameForEnvironment = function(O) {
16234
- var w = y.supportsPopups(), x = !!window.popupBridge, U = f({}, this._options, O);
16235
- return x ? new s(U) : w ? new n(U) : new o(U);
16268
+ }, I.prototype._getFrameForEnvironment = function(w) {
16269
+ var _ = y.supportsPopups(), x = !!window.popupBridge, V = f({}, this._options, w);
16270
+ return x ? new s(V) : _ ? new n(V) : new o(V);
16236
16271
  }, r.exports = I;
16237
16272
  }, { "../../braintree-error": 59, "../../constants": 60, "../shared/browser-detection": 74, "../shared/constants": 75, "../shared/errors": 76, "../shared/events": 77, "./../../assign": 57, "./strategies/modal": 69, "./strategies/popup": 72, "./strategies/popup-bridge": 70, "@braintree/iframer": 27, "@braintree/uuid": 31, framebus: 38 }], 68: [function(a, r, i) {
16238
16273
  var n = a("./frame-service");
@@ -16655,33 +16690,33 @@ function Hu() {
16655
16690
  this.isHidden = !1;
16656
16691
  var g = new this.Promise(function(E, N) {
16657
16692
  f.launchDesktopPromiseRejectFunction = N;
16658
- var _ = function() {
16693
+ var R = function() {
16659
16694
  f.bus.off(
16660
16695
  c.VENMO_DESKTOP_CUSTOMER_CANCELED,
16661
- O
16696
+ w
16662
16697
  ), f.bus.off(
16663
16698
  c.VENMO_DESKTOP_UNKNOWN_ERROR,
16664
16699
  I
16665
16700
  );
16666
- }, I = function(w) {
16667
- _(), f.sendEvent("venmo.tokenize.desktop.unknown-error"), N({
16701
+ }, I = function(_) {
16702
+ R(), f.sendEvent("venmo.tokenize.desktop.unknown-error"), N({
16668
16703
  allowUIToHandleError: !1,
16669
16704
  reason: "UNKNOWN_ERROR",
16670
- err: w
16705
+ err: _
16671
16706
  });
16672
- }, O = function() {
16673
- _(), f.updateVenmoDesktopPaymentContext("CANCELED"), f.sendEvent(
16707
+ }, w = function() {
16708
+ R(), f.updateVenmoDesktopPaymentContext("CANCELED"), f.sendEvent(
16674
16709
  "venmo.tokenize.desktop.status-change.canceled-from-modal"
16675
16710
  ), N({
16676
16711
  allowUIToHandleError: !1,
16677
16712
  reason: "CUSTOMER_CANCELED"
16678
16713
  });
16679
16714
  };
16680
- f.completedHandler = function(w) {
16681
- _(), E(w);
16715
+ f.completedHandler = function(_) {
16716
+ R(), E(_);
16682
16717
  }, f.bus.on(
16683
16718
  c.VENMO_DESKTOP_CUSTOMER_CANCELED,
16684
- O
16719
+ w
16685
16720
  ), f.bus.on(c.VENMO_DESKTOP_UNKNOWN_ERROR, I);
16686
16721
  });
16687
16722
  return this.iframe.style.display = "block", this.setAlert("Generating a QR code, get your Venmo app ready"), this.iframe.focus(), this.startPolling(), g.then(function(E) {
@@ -16739,9 +16774,9 @@ function Hu() {
16739
16774
  }) : this.lookupVenmoDesktopPaymentContext().then(function(N) {
16740
16775
  if (!E.venmoContextId || !N)
16741
16776
  return E.Promise.resolve();
16742
- var _ = N.status;
16743
- if (_ !== f)
16744
- switch (f = _, E.sendEvent(
16777
+ var R = N.status;
16778
+ if (R !== f)
16779
+ switch (f = R, E.sendEvent(
16745
16780
  "venmo.tokenize.desktop.status-change." + f.toLowerCase()
16746
16781
  ), f) {
16747
16782
  case "CREATED":
@@ -16760,9 +16795,9 @@ function Hu() {
16760
16795
  case "APPROVED":
16761
16796
  return E.authorize(), E.Promise.resolve(N);
16762
16797
  }
16763
- return new E.Promise(function(O, w) {
16798
+ return new E.Promise(function(w, _) {
16764
16799
  setTimeout(function() {
16765
- E.pollForStatusChange(f, g).then(O).catch(w);
16800
+ E.pollForStatusChange(f, g).then(w).catch(_);
16766
16801
  }, h);
16767
16802
  });
16768
16803
  }) : this.Promise.resolve();
@@ -16836,7 +16871,7 @@ function Hu() {
16836
16871
  client: g.client,
16837
16872
  authorization: g.authorization
16838
16873
  }).then(function() {
16839
- var N, _;
16874
+ var N, R;
16840
16875
  return g.profileId && typeof g.profileId != "string" ? Promise.reject(
16841
16876
  new u(d.VENMO_INVALID_PROFILE_ID)
16842
16877
  ) : g.deepLinkReturnUrl && typeof g.deepLinkReturnUrl != "string" ? Promise.reject(
@@ -16848,10 +16883,10 @@ function Hu() {
16848
16883
  assetsUrl: l.create(g.authorization),
16849
16884
  name: E
16850
16885
  }).then(function(I) {
16851
- var O = I.getConfiguration();
16852
- return g.client = I, O.gatewayConfiguration.payWithVenmo ? I : Promise.reject(new u(d.VENMO_NOT_ENABLED));
16853
- }), g.createPromise = N, _ = new h(g), n.sendEvent(N, "venmo.initialized"), N.then(function() {
16854
- return _;
16886
+ var w = I.getConfiguration();
16887
+ return g.client = I, w.gatewayConfiguration.payWithVenmo ? I : Promise.reject(new u(d.VENMO_NOT_ENABLED));
16888
+ }), g.createPromise = N, R = new h(g), n.sendEvent(N, "venmo.initialized"), N.then(function() {
16889
+ return R;
16855
16890
  }));
16856
16891
  });
16857
16892
  }
@@ -17053,29 +17088,29 @@ function Hu() {
17053
17088
  venmoLogo: "venmo-full-logo"
17054
17089
  };
17055
17090
  o.suppressUnhandledPromiseMessage = !0;
17056
- function f(w) {
17057
- var x = w.frameServiceInstance, U = w.venmoUrl, G = w.checkForStatusChange, Y = w.cancelTokenization, j = w.checkPaymentContextStatus, F = new o();
17091
+ function f(_) {
17092
+ var x = _.frameServiceInstance, V = _.venmoUrl, H = _.checkForStatusChange, G = _.cancelTokenization, j = _.checkPaymentContextStatus, B = new o();
17058
17093
  return document.getElementById(y.continueButton).addEventListener("click", function() {
17059
17094
  x.focus();
17060
17095
  }), document.getElementById(y.cancelButton).addEventListener("click", function() {
17061
- x.close(), Y(), E();
17062
- }), x.open({}, function(B) {
17096
+ x.close(), G(), E();
17097
+ }), x.open({}, function(U) {
17063
17098
  var J = 1;
17064
- B ? F.reject(B) : G(J).then(function(z) {
17065
- F.resolve(z);
17099
+ U ? B.reject(U) : H(J).then(function(z) {
17100
+ B.resolve(z);
17066
17101
  }).catch(function(z) {
17067
17102
  j().then(function(W) {
17068
- W.status === "CREATED" ? F.reject(
17103
+ W.status === "CREATED" ? B.reject(
17069
17104
  new d(l.VENMO_CUSTOMER_CANCELED)
17070
- ) : F.reject(z);
17105
+ ) : B.reject(z);
17071
17106
  });
17072
17107
  }), x.close(), E();
17073
- }), x.redirect(U), F;
17108
+ }), x.redirect(V), B;
17074
17109
  }
17075
17110
  function g() {
17076
- var w = Math.round((window.outerHeight - m) / 2) + window.screenTop, x = Math.round((window.outerWidth - p) / 2) + window.screenLeft;
17111
+ var _ = Math.round((window.outerHeight - m) / 2) + window.screenTop, x = Math.round((window.outerWidth - p) / 2) + window.screenLeft;
17077
17112
  return {
17078
- top: w,
17113
+ top: _,
17079
17114
  left: x
17080
17115
  };
17081
17116
  }
@@ -17083,7 +17118,7 @@ function Hu() {
17083
17118
  document.getElementById("venmo-desktop-web-backdrop").classList.add("hidden");
17084
17119
  }
17085
17120
  function N() {
17086
- var w = [
17121
+ var _ = [
17087
17122
  "#" + y.backdropHidden + " {",
17088
17123
  "display: none;",
17089
17124
  "}",
@@ -17107,7 +17142,7 @@ function Hu() {
17107
17142
  "height: 100%;",
17108
17143
  "flex-direction: column;",
17109
17144
  "}"
17110
- ], U = [
17145
+ ], V = [
17111
17146
  "#" + y.cancelButton + " {",
17112
17147
  "height: 24px;",
17113
17148
  "width: 380px;",
@@ -17122,7 +17157,7 @@ function Hu() {
17122
17157
  "color: #FFFFFF;",
17123
17158
  "margin-top: 28px;",
17124
17159
  "}"
17125
- ], G = [
17160
+ ], H = [
17126
17161
  "#" + y.continueButton + " {",
17127
17162
  "width: 400px;",
17128
17163
  "height: 50px;",
@@ -17136,7 +17171,7 @@ function Hu() {
17136
17171
  "color: #FFFFFF;",
17137
17172
  "margin-top: 44px;",
17138
17173
  "}"
17139
- ], Y = [
17174
+ ], G = [
17140
17175
  "#" + y.message + " {",
17141
17176
  "font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;",
17142
17177
  "font-style: normal;",
@@ -17159,55 +17194,55 @@ function Hu() {
17159
17194
  "margin-top: 16px;",
17160
17195
  "width: 400px;",
17161
17196
  "}"
17162
- ], F = w.concat(
17197
+ ], B = _.concat(
17163
17198
  x,
17164
- U,
17199
+ V,
17200
+ H,
17165
17201
  G,
17166
- Y,
17167
17202
  j
17168
17203
  );
17169
- return F.join(`
17204
+ return B.join(`
17170
17205
  `);
17171
17206
  }
17172
- function _(w) {
17173
- var x = document.getElementById(y.backdrop), U, G, Y, j, F, B, J, z;
17207
+ function R(_) {
17208
+ var x = document.getElementById(y.backdrop), V, H, G, j, B, U, J, z;
17174
17209
  if (x) {
17175
17210
  x.classList.remove("hidden");
17176
17211
  return;
17177
17212
  }
17178
- U = document.createElement("style"), G = document.createElement("div"), Y = document.createElement("div"), j = document.createElement("div"), F = document.createElement("div"), B = document.createElement("div"), J = document.createElement("button"), z = document.createElement("button"), w && (U.nonce = w), U.id = "venmo-desktop-web__injected-styles", U.innerHTML = N(), G.id = y.backdrop, Y.id = y.backdropContainer, j.id = y.venmoLogo, j.innerHTML = u, F.id = y.message, F.innerText = "What would you like to do?", B.id = y.instructions, B.innerText = h, J.id = y.continueButton, J.innerText = "Continue payment", z.id = y.cancelButton, z.innerText = "Cancel payment", document.head.appendChild(U), Y.appendChild(j), Y.appendChild(F), Y.appendChild(B), Y.appendChild(J), Y.appendChild(z), G.appendChild(Y), document.body.appendChild(G), G.addEventListener("click", function(W) {
17213
+ V = document.createElement("style"), H = document.createElement("div"), G = document.createElement("div"), j = document.createElement("div"), B = document.createElement("div"), U = document.createElement("div"), J = document.createElement("button"), z = document.createElement("button"), _ && (V.nonce = _), V.id = "venmo-desktop-web__injected-styles", V.innerHTML = N(), H.id = y.backdrop, G.id = y.backdropContainer, j.id = y.venmoLogo, j.innerHTML = u, B.id = y.message, B.innerText = "What would you like to do?", U.id = y.instructions, U.innerText = h, J.id = y.continueButton, J.innerText = "Continue payment", z.id = y.cancelButton, z.innerText = "Cancel payment", document.head.appendChild(V), G.appendChild(j), G.appendChild(B), G.appendChild(U), G.appendChild(J), G.appendChild(z), H.appendChild(G), document.body.appendChild(H), H.addEventListener("click", function(W) {
17179
17214
  W.stopPropagation();
17180
17215
  });
17181
17216
  }
17182
- function I(w) {
17183
- return _(w.styleCspNonce), f(w);
17217
+ function I(_) {
17218
+ return R(_.styleCspNonce), f(_);
17184
17219
  }
17185
- function O(w) {
17186
- var x = new o(), U = "venmoDesktopWebLogin", G = w.assetsUrl, Y = w.debug || !1, j = g(), F = G + "/web/" + c + "/html";
17220
+ function w(_) {
17221
+ var x = new o(), V = "venmoDesktopWebLogin", H = _.assetsUrl, G = _.debug || !1, j = g(), B = H + "/web/" + c + "/html";
17187
17222
  return n.create(
17188
17223
  {
17189
- name: U,
17190
- dispatchFrameUrl: F + "/dispatch-frame" + s(Y) + ".html",
17191
- openFrameUrl: F + "/venmo-landing-frame" + s(Y) + ".html",
17224
+ name: V,
17225
+ dispatchFrameUrl: B + "/dispatch-frame" + s(G) + ".html",
17226
+ openFrameUrl: B + "/venmo-landing-frame" + s(G) + ".html",
17192
17227
  top: j.top,
17193
17228
  left: j.left,
17194
17229
  height: m,
17195
17230
  width: p
17196
17231
  },
17197
- function(B) {
17198
- x.resolve(B);
17232
+ function(U) {
17233
+ x.resolve(U);
17199
17234
  }
17200
17235
  ), x;
17201
17236
  }
17202
17237
  r.exports = {
17203
17238
  runWebLogin: I,
17204
17239
  openPopup: f,
17205
- setupDesktopWebLogin: O,
17240
+ setupDesktopWebLogin: w,
17206
17241
  POPUP_WIDTH: p,
17207
17242
  POPUP_HEIGHT: m
17208
17243
  };
17209
17244
  }, { "../../lib/braintree-error": 59, "../../lib/frame-service/external": 68, "../../lib/use-min": 85, "../shared/errors": 93, "@braintree/extended-promise": 26 }], 98: [function(a, r, i) {
17210
- var n = a("../lib/analytics"), s = a("../lib/assign").assign, o = a("./shared/supports-venmo"), l = a("./shared/browser-detection"), d = a("./shared/constants"), c = a("./shared/errors"), u = a("../lib/querystring"), h = a("../lib/is-verified-domain"), p = a("../lib/methods"), m = a("../lib/convert-methods-to-error"), y = a("@braintree/wrap-promise"), f = a("../lib/braintree-error"), g = a("../lib/in-iframe"), E = a("@braintree/extended-promise"), N = a("./shared/get-venmo-url"), _ = a("./shared/web-login-backdrop"), I = a("../lib/snake-case-to-camel-case"), O = a("../lib/url-params"), w = a("./external/"), x = a("./external/queries"), U = "3.126.0", G = 250, Y = 3e5;
17245
+ var n = a("../lib/analytics"), s = a("../lib/assign").assign, o = a("./shared/supports-venmo"), l = a("./shared/browser-detection"), d = a("./shared/constants"), c = a("./shared/errors"), u = a("../lib/querystring"), h = a("../lib/is-verified-domain"), p = a("../lib/methods"), m = a("../lib/convert-methods-to-error"), y = a("@braintree/wrap-promise"), f = a("../lib/braintree-error"), g = a("../lib/in-iframe"), E = a("@braintree/extended-promise"), N = a("./shared/get-venmo-url"), R = a("./shared/web-login-backdrop"), I = a("../lib/snake-case-to-camel-case"), w = a("../lib/url-params"), _ = a("./external/"), x = a("./external/queries"), V = "3.126.0", H = 250, G = 3e5;
17211
17246
  E.suppressUnhandledPromiseMessage = !0;
17212
17247
  function j(b) {
17213
17248
  var v = this;
@@ -17219,8 +17254,8 @@ function Hu() {
17219
17254
  "venmo.appswitch.return-in-new-tab"
17220
17255
  ) : this._useDesktopQRFlow ? this._createPromise = this._createPromise.then(function(D) {
17221
17256
  var M = D.getConfiguration().gatewayConfiguration;
17222
- return w({
17223
- url: M.assetsUrl + "/web/" + U + "/html/venmo-desktop-frame.html",
17257
+ return _({
17258
+ url: M.assetsUrl + "/web/" + V + "/html/venmo-desktop-frame.html",
17224
17259
  environment: M.environment === "production" ? "PRODUCTION" : "SANDBOX",
17225
17260
  profileId: v._profileId || M.payWithVenmo.merchantId,
17226
17261
  paymentMethodUsage: v._paymentMethodUsage,
@@ -17252,21 +17287,21 @@ function Hu() {
17252
17287
  "venmo.desktop-flow.setup-failed"
17253
17288
  ), v._useDesktopQRFlow = !1, D;
17254
17289
  });
17255
- }) : this._shouldCreateVenmoPaymentContext && (this._mobilePollingInterval = G, this._mobilePollingExpiresThreshold = Y, this._createPromise = this._createPromise.then(function(D) {
17290
+ }) : this._shouldCreateVenmoPaymentContext && (this._mobilePollingInterval = H, this._mobilePollingExpiresThreshold = G, this._createPromise = this._createPromise.then(function(D) {
17256
17291
  var M, P, T = v._cannotHaveReturnUrls ? "manual-return" : "mobile-payment-context", k = D.getConfiguration();
17257
- return P = _.setupDesktopWebLogin({
17292
+ return P = R.setupDesktopWebLogin({
17258
17293
  assetsUrl: k.gatewayConfiguration.assetsUrl,
17259
17294
  debug: k.isDebug
17260
- }).then(function(R) {
17261
- v._frameServiceInstance = R;
17262
- }).catch(function(R) {
17263
- return R;
17295
+ }).then(function(O) {
17296
+ v._frameServiceInstance = O;
17297
+ }).catch(function(O) {
17298
+ return O;
17264
17299
  }), v._mobilePollingContextEnvironment = k.gatewayConfiguration.environment.toUpperCase(), M = v._createVenmoPaymentContext(D).then(function() {
17265
17300
  return n.sendEvent(
17266
17301
  v._createPromise,
17267
17302
  "venmo." + T + ".presented"
17268
17303
  ), D;
17269
- }).catch(function(R) {
17304
+ }).catch(function(O) {
17270
17305
  return n.sendEvent(
17271
17306
  v._createPromise,
17272
17307
  "venmo." + T + ".setup-failed"
@@ -17274,25 +17309,25 @@ function Hu() {
17274
17309
  new f({
17275
17310
  type: c.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.type,
17276
17311
  code: c.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.code,
17277
- message: F(R) ? R.details.originalError[0].message : c.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.message,
17312
+ message: B(O) ? O.details.originalError[0].message : c.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.message,
17278
17313
  details: {
17279
- originalError: R
17314
+ originalError: O
17280
17315
  }
17281
17316
  })
17282
17317
  );
17283
- }), E.all([P, M]).then(function(R) {
17284
- var S = R[1];
17318
+ }), E.all([P, M]).then(function(O) {
17319
+ var S = O[1];
17285
17320
  return Promise.resolve(S);
17286
- }).catch(function(R) {
17287
- return Promise.reject(R);
17321
+ }).catch(function(O) {
17322
+ return Promise.reject(O);
17288
17323
  });
17289
17324
  }));
17290
17325
  }
17291
- function F(b) {
17326
+ function B(b) {
17292
17327
  return b.details && b.details.originalError && b.details.originalError[0] && b.details.originalError[0].extensions && b.details.originalError[0].extensions.errorClass === "VALIDATION" && b.details.originalError[0].extensions.errorType === "user_error";
17293
17328
  }
17294
17329
  j.prototype._createVenmoPaymentContext = function(b, v) {
17295
- var D = this, M, P, T = b.getConfiguration(), k = T.gatewayConfiguration.payWithVenmo, R = !1, S = D._useAllowDesktopWebLogin ? "NATIVE_WEB" : "MOBILE_WEB";
17330
+ var D = this, M, P, T = b.getConfiguration(), k = T.gatewayConfiguration.payWithVenmo, O = !1, S = D._useAllowDesktopWebLogin ? "NATIVE_WEB" : "MOBILE_WEB";
17296
17331
  if (!this._shouldCreateVenmoPaymentContext)
17297
17332
  return Promise.resolve();
17298
17333
  if (this._shouldUseLegacyFlow)
@@ -17322,7 +17357,7 @@ function Hu() {
17322
17357
  shippingAmount: this._shippingAmount,
17323
17358
  totalAmount: this._totalAmount,
17324
17359
  lineItems: this._lineItems
17325
- }, R = Object.keys(P).some(
17360
+ }, O = Object.keys(P).some(
17326
17361
  function(C) {
17327
17362
  return P[C] !== void 0;
17328
17363
  }
@@ -17340,7 +17375,7 @@ function Hu() {
17340
17375
  paysheetDetails: {
17341
17376
  collectCustomerBillingAddress: this._collectCustomerBillingAddress,
17342
17377
  collectCustomerShippingAddress: this._collectCustomerShippingAddress,
17343
- transactionDetails: R ? P : void 0
17378
+ transactionDetails: O ? P : void 0
17344
17379
  }
17345
17380
  }
17346
17381
  }
@@ -17350,7 +17385,7 @@ function Hu() {
17350
17385
  });
17351
17386
  }
17352
17387
  return M.then(function(C) {
17353
- var V = new Date(C.expiresAt) - new Date(C.createdAt), $ = V * 0.6666;
17388
+ var F = new Date(C.expiresAt) - new Date(C.createdAt), $ = F * 0.6666;
17354
17389
  clearTimeout(D._refreshPaymentContextTimeout), D._refreshPaymentContextTimeout = setTimeout(function() {
17355
17390
  D._tokenizationInProgress || D._createVenmoPaymentContext(b, !0);
17356
17391
  }, $), !(v && D._tokenizationInProgress) && (D._venmoPaymentContextStatus = C.status, D._venmoPaymentContextId = C.id);
@@ -17379,7 +17414,7 @@ function Hu() {
17379
17414
  }, j.prototype.getUrl = function() {
17380
17415
  return this._createPromise.then(
17381
17416
  function(b) {
17382
- var v = b.getConfiguration(), D = {}, M = this._deepLinkReturnUrl || window.location.href.replace(window.location.hash, ""), P = v.gatewayConfiguration.payWithVenmo, T = v.analyticsMetadata, k = P.accessToken, R = {
17417
+ var v = b.getConfiguration(), D = {}, M = this._deepLinkReturnUrl || window.location.href.replace(window.location.hash, ""), P = v.gatewayConfiguration.payWithVenmo, T = v.analyticsMetadata, k = P.accessToken, O = {
17383
17418
  _meta: {
17384
17419
  version: T.sdkVersion,
17385
17420
  integration: T.integration,
@@ -17387,8 +17422,8 @@ function Hu() {
17387
17422
  sessionId: T.sessionId
17388
17423
  }
17389
17424
  };
17390
- return this._isDebug = v.isDebug, this._assetsUrl = v.gatewayConfiguration.assetsUrl, M = M.replace(/#*$/, ""), this._venmoPaymentContextId && (this._shouldUseLegacyFlow ? k += "|pcid:" + this._venmoPaymentContextId : D.resource_id = this._venmoPaymentContextId), this._shouldIncludeReturnUrls() || this._useAllowDesktopWebLogin ? (this._useAllowDesktopWebLogin && (M = this._assetsUrl + "/web/" + U + "/html/redirect-frame.html"), D["x-success"] = M + "#venmoSuccess=1", D["x-cancel"] = M + "#venmoCancel=1", D["x-error"] = M + "#venmoError=1") : (D["x-success"] = "NOOP", D["x-cancel"] = "NOOP", D["x-error"] = "NOOP"), this._allowAndroidRecreation ? D.allowAndroidRecreation = 1 : D.allowAndroidRecreation = 0, D.ua = window.navigator.userAgent, D.braintree_merchant_id = // eslint-disable-line camelcase
17391
- this._profileId || P.merchantId, D.braintree_access_token = k, D.braintree_environment = P.environment, D.braintree_sdk_data = btoa(JSON.stringify(R)), N({
17425
+ return this._isDebug = v.isDebug, this._assetsUrl = v.gatewayConfiguration.assetsUrl, M = M.replace(/#*$/, ""), this._venmoPaymentContextId && (this._shouldUseLegacyFlow ? k += "|pcid:" + this._venmoPaymentContextId : D.resource_id = this._venmoPaymentContextId), this._shouldIncludeReturnUrls() || this._useAllowDesktopWebLogin ? (this._useAllowDesktopWebLogin && (M = this._assetsUrl + "/web/" + V + "/html/redirect-frame.html"), D["x-success"] = M + "#venmoSuccess=1", D["x-cancel"] = M + "#venmoCancel=1", D["x-error"] = M + "#venmoError=1") : (D["x-success"] = "NOOP", D["x-cancel"] = "NOOP", D["x-error"] = "NOOP"), this._allowAndroidRecreation ? D.allowAndroidRecreation = 1 : D.allowAndroidRecreation = 0, D.ua = window.navigator.userAgent, D.braintree_merchant_id = // eslint-disable-line camelcase
17426
+ this._profileId || P.merchantId, D.braintree_access_token = k, D.braintree_environment = P.environment, D.braintree_sdk_data = btoa(JSON.stringify(O)), N({
17392
17427
  useAllowDesktopWebLogin: this._useAllowDesktopWebLogin,
17393
17428
  mobileWebFallBack: this._mobileWebFallBack
17394
17429
  }) + "?" + u.stringify(D);
@@ -17404,7 +17439,7 @@ function Hu() {
17404
17439
  }, j.prototype.hasTokenizationResult = function() {
17405
17440
  return this._hasTokenizationResult();
17406
17441
  }, j.prototype._hasTokenizationResult = function(b) {
17407
- var v = B(b), D = O.getUrlParams();
17442
+ var v = U(b), D = w.getUrlParams();
17408
17443
  return D.resource_id ? this._venmoPaymentContextId = D.resource_id : v.id && (this._venmoPaymentContextId = v.id), typeof (v.venmoSuccess || v.venmoError || v.venmoCancel) != "undefined";
17409
17444
  }, j.prototype._shouldIncludeReturnUrls = function() {
17410
17445
  return this._deepLinkReturnUrl ? !0 : !this._cannotHaveReturnUrls;
@@ -17455,7 +17490,7 @@ function Hu() {
17455
17490
  checkPaymentContextStatus: b._checkPaymentContextStatus.bind(b)
17456
17491
  }, b._cspNonce && (v = s({}, v, {
17457
17492
  styleCspNonce: b._cspNonce
17458
- })), _.runWebLogin(v).then(function(M) {
17493
+ })), R.runWebLogin(v).then(function(M) {
17459
17494
  n.sendEventPlus(
17460
17495
  b._createPromise,
17461
17496
  "venmo.tokenize.web-login.success",
@@ -17650,10 +17685,10 @@ function Hu() {
17650
17685
  n.sendEvent(this._createPromise, "venmo.tokenize.mobile.start"), this._tokenizePromise = new E(), this._previousHash = window.location.hash;
17651
17686
  function P(T) {
17652
17687
  var k;
17653
- v.processHashChangeFlowResults(T).catch(function(R) {
17654
- k = R;
17655
- }).then(function(R) {
17656
- !v._ignoreHistoryChanges && window.location.hash !== v._previousHash && (window.location.hash = v._previousHash), v._removeVisibilityEventListener(), k ? v._tokenizePromise.reject(k) : v._tokenizePromise.resolve(R), delete v._tokenizePromise;
17688
+ v.processHashChangeFlowResults(T).catch(function(O) {
17689
+ k = O;
17690
+ }).then(function(O) {
17691
+ !v._ignoreHistoryChanges && window.location.hash !== v._previousHash && (window.location.hash = v._previousHash), v._removeVisibilityEventListener(), k ? v._tokenizePromise.reject(k) : v._tokenizePromise.resolve(O), delete v._tokenizePromise;
17657
17692
  });
17658
17693
  }
17659
17694
  return this._onHashChangeListener = function(T) {
@@ -17735,7 +17770,7 @@ function Hu() {
17735
17770
  this._visibilityChangeListener
17736
17771
  ), delete this._visibilityChangeListener, delete this._onHashChangeListener;
17737
17772
  }, j.prototype.processHashChangeFlowResults = function(b) {
17738
- var v = this, D = B(b);
17773
+ var v = this, D = U(b);
17739
17774
  return new Promise(function(M, P) {
17740
17775
  v._shouldUseLegacyFlow ? D.venmoSuccess ? (n.sendEvent(
17741
17776
  v._createPromise,
@@ -17799,10 +17834,10 @@ function Hu() {
17799
17834
  window.location.href.slice(0, window.location.href.indexOf("#"))
17800
17835
  );
17801
17836
  };
17802
- function B(b) {
17837
+ function U(b) {
17803
17838
  var v = (b || window.location.hash.substring(1)).split("&"), D = v.reduce(function(M, P) {
17804
- var T = P.split("="), k = decodeURIComponent(T[0]).replace(/\W/g, ""), R = I(k), S = decodeURIComponent(T[1]);
17805
- return M[R] = S, M;
17839
+ var T = P.split("="), k = decodeURIComponent(T[0]).replace(/\W/g, ""), O = I(k), S = decodeURIComponent(T[1]);
17840
+ return M[O] = S, M;
17806
17841
  }, {});
17807
17842
  return D.resourceId && (D.id = D.resourceId), D;
17808
17843
  }
@@ -17834,9 +17869,9 @@ function Hu() {
17834
17869
  });
17835
17870
  }(Va)), Va.exports;
17836
17871
  }
17837
- var Yu = Hu();
17838
- const Gu = /* @__PURE__ */ Ct(Yu);
17839
- class Wu {
17872
+ var Gu = Yu();
17873
+ const Wu = /* @__PURE__ */ Ct(Gu);
17874
+ class $u {
17840
17875
  constructor() {
17841
17876
  A(this, "client", null);
17842
17877
  A(this, "venmoInstance", null);
@@ -17844,11 +17879,11 @@ class Wu {
17844
17879
  }
17845
17880
  // init
17846
17881
  init(e) {
17847
- return H(this, null, function* () {
17882
+ return Y(this, null, function* () {
17848
17883
  try {
17849
- this.client = yield Bu.create({ authorization: e.authorization });
17884
+ this.client = yield Uu.create({ authorization: e.authorization });
17850
17885
  try {
17851
- const a = yield qu.create({ client: this.client, paypal: !0 });
17886
+ const a = yield Hu.create({ client: this.client, paypal: !0 });
17852
17887
  this.deviceData = a.deviceData || null;
17853
17888
  } catch (a) {
17854
17889
  console.warn("Braintree device data collection failed:", a), this.deviceData = null;
@@ -17860,11 +17895,11 @@ class Wu {
17860
17895
  }
17861
17896
  // create venmo instance
17862
17897
  createVenmo(e) {
17863
- return H(this, null, function* () {
17898
+ return Y(this, null, function* () {
17864
17899
  if (!this.client)
17865
17900
  throw new Error("Braintree client must be initialized before creating Venmo instance");
17866
17901
  try {
17867
- return this.venmoInstance = yield Gu.create(K({
17902
+ return this.venmoInstance = yield Wu.create(K({
17868
17903
  client: this.client,
17869
17904
  allowDesktop: !0,
17870
17905
  mobileWebFallBack: !0,
@@ -17888,7 +17923,7 @@ class Wu {
17888
17923
  }
17889
17924
  // tokenize venmo payment
17890
17925
  tokenize() {
17891
- return H(this, null, function* () {
17926
+ return Y(this, null, function* () {
17892
17927
  if (!this.venmoInstance)
17893
17928
  throw new Error("Venmo instance not initialized");
17894
17929
  return new Promise((e, a) => {
@@ -17917,18 +17952,18 @@ class Wu {
17917
17952
  });
17918
17953
  }
17919
17954
  }
17920
- class ep {
17955
+ class ap {
17921
17956
  constructor() {
17922
17957
  A(this, "ev", new oi());
17923
- A(this, "paypal", new ju());
17924
- A(this, "braintree", new Wu());
17958
+ A(this, "paypal", new Vu());
17959
+ A(this, "braintree", new $u());
17925
17960
  A(this, "state", {
17926
- translate: new Nu(),
17927
- checkout: new Bc(),
17928
- transaction: new qc(),
17929
- styles: new Kc()
17961
+ translate: new _u(),
17962
+ checkout: new Uc(),
17963
+ transaction: new Hc(),
17964
+ styles: new qc()
17930
17965
  });
17931
- A(this, "checkout", new Vc({
17966
+ A(this, "checkout", new Fc({
17932
17967
  state: this.state,
17933
17968
  service: { ev: this.ev, paypal: this.paypal, braintree: this.braintree }
17934
17969
  }));
@@ -17938,8 +17973,8 @@ class ep {
17938
17973
  }
17939
17974
  }
17940
17975
  export {
17941
- ep as Core,
17942
- Zu as PayNextCheckout,
17976
+ ap as Core,
17977
+ Xu as PayNextCheckout,
17943
17978
  te as PaymentMethod
17944
17979
  };
17945
17980
  //# sourceMappingURL=index.es.js.map