@paynext/sdk 0.0.94 → 0.0.95

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
@@ -51,7 +51,12 @@ class Du {
51
51
  const a = (yield import("./index-C6qOiJ-j.js")).Core;
52
52
  this.core = new a();
53
53
  }
54
- t.styles && this.core.state.styles.setState(t.styles);
54
+ t.styles && this.core.state.styles.setState(t.styles), this.core.state.checkout.setState({
55
+ clientToken: t.clientToken,
56
+ environment: t.environment,
57
+ apiVersion: t.apiVersion,
58
+ errorMessageText: t.errorMessageText
59
+ });
55
60
  const e = yield this.core.checkout.mount();
56
61
  this.parent.innerHTML = "", this.parent.appendChild(e), this.core.state.checkout.setState(t);
57
62
  });
@@ -193,7 +198,7 @@ const rn = (n = "sandbox") => ({
193
198
  state: ((m = t == null ? void 0 : t.billingContact) == null ? void 0 : m.administrativeArea) || ((v = e == null ? void 0 : e.billingAddress) == null ? void 0 : v.administrativeArea) || void 0
194
199
  };
195
200
  }, Nn = (n) => {
196
- var a, i, s, o, c, l, d, u, h, p, f, m, v, y, w, O, L, I, x;
201
+ var a, i, s, o, c, l, d, u, h, p, f, m, v, y, w, O, L, I, P;
197
202
  const { card: t, googlePay: e, applePay: r } = n;
198
203
  if (!(!t && !(e != null && e.card) && !(r != null && r.card)))
199
204
  return {
@@ -210,7 +215,7 @@ const rn = (n = "sandbox") => ({
210
215
  exp_month: t != null && t.expMonth || (v = e == null ? void 0 : e.card) != null && v.expiry.month ? Number((t == null ? void 0 : t.expMonth) || ((y = e == null ? void 0 : e.card) == null ? void 0 : y.expiry.month)) : void 0,
211
216
  exp_year: t != null && t.expYear || (w = e == null ? void 0 : e.card) != null && w.expiry.year ? Number((t == null ? void 0 : t.expYear) || ((O = e == null ? void 0 : e.card) == null ? void 0 : O.expiry.year)) : void 0,
212
217
  last4: (t == null ? void 0 : t.lastFourDigits) || ((L = e == null ? void 0 : e.card) == null ? void 0 : L.lastFour) || ((I = r == null ? void 0 : r.card) == null ? void 0 : I.lastFour),
213
- number: (t == null ? void 0 : t.number) || ((x = e == null ? void 0 : e.card) == null ? void 0 : x.number)
218
+ number: (t == null ? void 0 : t.number) || ((P = e == null ? void 0 : e.card) == null ? void 0 : P.number)
214
219
  };
215
220
  }, Ln = (n) => {
216
221
  var r, a;
@@ -496,7 +501,7 @@ function Ar(n, t, e, r) {
496
501
  function ra(n, t, e) {
497
502
  return n * (t + 1);
498
503
  }
499
- function Pn(n, t, e, r) {
504
+ function xn(n, t, e, r) {
500
505
  var a;
501
506
  return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, n + parseFloat(t)) : t === "<" ? e : (a = r.get(t)) != null ? a : n;
502
507
  }
@@ -563,21 +568,21 @@ function cn(n) {
563
568
  t += e, r = n.next(t);
564
569
  return t >= gt ? 1 / 0 : t;
565
570
  }
566
- const Ee = /* @__NO_SIDE_EFFECTS__ */ (n) => n * 1e3, _e = /* @__NO_SIDE_EFFECTS__ */ (n) => n / 1e3;
571
+ const Ee = /* @__NO_SIDE_EFFECTS__ */ (n) => n * 1e3, Ce = /* @__NO_SIDE_EFFECTS__ */ (n) => n / 1e3;
567
572
  function Lr(n, t = 100, e) {
568
573
  const r = e(J(H({}, n), { keyframes: [0, t] })), a = Math.min(cn(r), gt);
569
574
  return {
570
575
  type: "keyframes",
571
576
  ease: (i) => r.next(a * i).value / t,
572
- duration: /* @__PURE__ */ _e(a)
577
+ duration: /* @__PURE__ */ Ce(a)
573
578
  };
574
579
  }
575
580
  let st = () => {
576
- }, Ce = () => {
581
+ }, Ae = () => {
577
582
  };
578
583
  process.env.NODE_ENV !== "production" && (st = (n, t) => {
579
584
  !n && typeof console != "undefined" && console.warn(t);
580
- }, Ce = (n, t) => {
585
+ }, Ae = (n, t) => {
581
586
  if (!n)
582
587
  throw new Error(t);
583
588
  });
@@ -592,14 +597,14 @@ function pa(n, i = {}, r, a) {
592
597
  u.set(v, p);
593
598
  continue;
594
599
  } else if (!Array.isArray(v)) {
595
- u.set(v.name, Pn(p, v.at, h, u));
600
+ u.set(v.name, xn(p, v.at, h, u));
596
601
  continue;
597
602
  }
598
603
  let [y, w, O = {}] = v;
599
- O.at !== void 0 && (p = Pn(p, O.at, h, u));
604
+ O.at !== void 0 && (p = xn(p, O.at, h, u));
600
605
  let L = 0;
601
- const I = (x, N, S, U = 0, Y = 0) => {
602
- const $ = ha(x), D = N, { delay: F = 0, times: z = Nr($), type: j = "keyframes", repeat: ee, repeatType: M, repeatDelay: q = 0 } = D, K = be(D, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
606
+ const I = (P, N, S, U = 0, Y = 0) => {
607
+ const $ = ha(P), D = N, { delay: F = 0, times: z = Nr($), type: j = "keyframes", repeat: ee, repeatType: M, repeatDelay: q = 0 } = D, K = be(D, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
603
608
  let { ease: _ = t.ease || "easeOut", duration: g } = N;
604
609
  const R = typeof F == "function" ? F(U, Y) : F, V = $.length, b = on(j) ? j : a == null ? void 0 : a[j];
605
610
  if (V <= 2 && b) {
@@ -618,7 +623,7 @@ function pa(n, i = {}, r, a) {
618
623
  z.length === 1 && z[0] === 0 && (z[1] = 1);
619
624
  const E = z.length - $.length;
620
625
  if (E > 0 && Or(z, E), $.length === 1 && $.unshift(null), ee) {
621
- Ce(ee < ua, "Repeat count too high, must be less than 20"), g = ra(g, ee);
626
+ Ae(ee < ua, "Repeat count too high, must be less than 20"), g = ra(g, ee);
622
627
  const A = [...$], B = [...z];
623
628
  _ = Array.isArray(_) ? [..._] : [_];
624
629
  const X = [..._];
@@ -629,17 +634,17 @@ function pa(n, i = {}, r, a) {
629
634
  }
630
635
  ca(z, ee);
631
636
  }
632
- const P = T + g;
633
- oa(S, $, _, z, T, P), L = Math.max(R + g, L), f = Math.max(P, f);
637
+ const x = T + g;
638
+ oa(S, $, _, z, T, x), L = Math.max(R + g, L), f = Math.max(x, f);
634
639
  };
635
640
  if (fe(y)) {
636
- const x = xn(y, l);
637
- I(w, O, Rn("default", x));
641
+ const P = Pn(y, l);
642
+ I(w, O, Rn("default", P));
638
643
  } else {
639
- const x = Ar(y, w, r, d), N = x.length;
644
+ const P = Ar(y, w, r, d), N = P.length;
640
645
  for (let S = 0; S < N; S++) {
641
646
  w = w, O = O;
642
- const U = x[S], Y = xn(U, l);
647
+ const U = P[S], Y = Pn(U, l);
643
648
  for (const $ in w)
644
649
  I(w[$], fa(O, $), Rn($, Y), S, N);
645
650
  }
@@ -659,8 +664,8 @@ function pa(n, i = {}, r, a) {
659
664
  keyframes: {},
660
665
  transition: {}
661
666
  });
662
- const x = c.get(v);
663
- x.keyframes[y] = O, x.transition[y] = H(J(H({}, t), {
667
+ const P = c.get(v);
668
+ P.keyframes[y] = O, P.transition[y] = H(J(H({}, t), {
664
669
  duration: f,
665
670
  ease: I,
666
671
  times: L
@@ -668,7 +673,7 @@ function pa(n, i = {}, r, a) {
668
673
  }
669
674
  }), c;
670
675
  }
671
- function xn(n, t) {
676
+ function Pn(n, t) {
672
677
  return !t.has(n) && t.set(n, {}), t.get(n);
673
678
  }
674
679
  function Rn(n, t) {
@@ -687,7 +692,7 @@ function kn(n) {
687
692
  t[0][r] = e.get(), t[1][r] = e.getVelocity();
688
693
  }), t;
689
694
  }
690
- function Pr(n, t, e, r) {
695
+ function xr(n, t, e, r) {
691
696
  if (typeof t == "function") {
692
697
  const [a, i] = kn(r);
693
698
  t = t(e !== void 0 ? e : n.custom, a, i);
@@ -700,7 +705,7 @@ function Pr(n, t, e, r) {
700
705
  }
701
706
  function ya(n, t, e) {
702
707
  const r = n.getProps();
703
- return Pr(r, t, r.custom, n);
708
+ return xr(r, t, r.custom, n);
704
709
  }
705
710
  const ut = [
706
711
  "setup",
@@ -758,7 +763,7 @@ function ba(n, t) {
758
763
  };
759
764
  return l;
760
765
  }
761
- const Ae = {}, Ea = 40;
766
+ const we = {}, Ea = 40;
762
767
  function _a(n, t) {
763
768
  let e = !1, r = !0;
764
769
  const a = {
@@ -766,31 +771,31 @@ function _a(n, t) {
766
771
  timestamp: 0,
767
772
  isProcessing: !1
768
773
  }, i = () => e = !0, s = ut.reduce((O, L) => (O[L] = ba(i), O), {}), { setup: o, read: c, resolveKeyframes: l, preUpdate: d, update: u, preRender: h, render: p, postRender: f } = s, m = () => {
769
- const O = Ae.useManualTiming ? a.timestamp : performance.now();
770
- e = !1, Ae.useManualTiming || (a.delta = r ? 1e3 / 60 : Math.max(Math.min(O - a.timestamp, Ea), 1)), a.timestamp = O, a.isProcessing = !0, o.process(a), c.process(a), l.process(a), d.process(a), u.process(a), h.process(a), p.process(a), f.process(a), a.isProcessing = !1, e && t && (r = !1, n(m));
774
+ const O = we.useManualTiming ? a.timestamp : performance.now();
775
+ e = !1, we.useManualTiming || (a.delta = r ? 1e3 / 60 : Math.max(Math.min(O - a.timestamp, Ea), 1)), a.timestamp = O, a.isProcessing = !0, o.process(a), c.process(a), l.process(a), d.process(a), u.process(a), h.process(a), p.process(a), f.process(a), a.isProcessing = !1, e && t && (r = !1, n(m));
771
776
  }, v = () => {
772
777
  e = !0, r = !0, a.isProcessing || n(m);
773
778
  };
774
779
  return { schedule: ut.reduce((O, L) => {
775
780
  const I = s[L];
776
- return O[L] = (x, N = !1, S = !1) => (e || v(), I.schedule(x, N, S)), O;
781
+ return O[L] = (P, N = !1, S = !1) => (e || v(), I.schedule(P, N, S)), O;
777
782
  }, {}), cancel: (O) => {
778
783
  for (let L = 0; L < ut.length; L++)
779
784
  s[ut[L]].cancel(O);
780
785
  }, state: a, steps: s };
781
786
  }
782
- const Fe = /* @__NO_SIDE_EFFECTS__ */ (n) => n, { schedule: we, cancel: Ut, state: yt } = /* @__PURE__ */ _a(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : Fe, !0);
787
+ const Fe = /* @__NO_SIDE_EFFECTS__ */ (n) => n, { schedule: Te, cancel: Ut, state: yt } = /* @__PURE__ */ _a(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : Fe, !0);
783
788
  let vt;
784
789
  function Ca() {
785
790
  vt = void 0;
786
791
  }
787
792
  const ve = {
788
- now: () => (vt === void 0 && ve.set(yt.isProcessing || Ae.useManualTiming ? yt.timestamp : performance.now()), vt),
793
+ now: () => (vt === void 0 && ve.set(yt.isProcessing || we.useManualTiming ? yt.timestamp : performance.now()), vt),
789
794
  set: (n) => {
790
795
  vt = n, queueMicrotask(Ca);
791
796
  }
792
797
  }, Sn = /* @__PURE__ */ new Set();
793
- function xr(n, t, e) {
798
+ function Pr(n, t, e) {
794
799
  n || Sn.has(t) || (console.warn(t), Sn.add(t));
795
800
  }
796
801
  class Rr {
@@ -886,13 +891,13 @@ class wa {
886
891
  * @deprecated
887
892
  */
888
893
  onChange(t) {
889
- return process.env.NODE_ENV !== "production" && xr(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
894
+ return process.env.NODE_ENV !== "production" && Pr(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
890
895
  }
891
896
  on(t, e) {
892
897
  this.events[t] || (this.events[t] = new Rr());
893
898
  const r = this.events[t].add(e);
894
899
  return t === "change" ? () => {
895
- r(), we.read(() => {
900
+ r(), Te.read(() => {
896
901
  this.events.change.getSize() || this.stop();
897
902
  });
898
903
  } : r;
@@ -1049,14 +1054,14 @@ function La(n, t) {
1049
1054
  const e = n.getValue("willChange");
1050
1055
  if (Na(e))
1051
1056
  return e.add(t);
1052
- if (!e && Ae.WillChange) {
1053
- const r = new Ae.WillChange("auto");
1057
+ if (!e && we.WillChange) {
1058
+ const r = new we.WillChange("auto");
1054
1059
  n.addValue("willChange", r), r.add(t);
1055
1060
  }
1056
1061
  }
1057
- const ln = (n) => n.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Pa = "framerAppearId", xa = "data-" + ln(Pa);
1062
+ const ln = (n) => n.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), xa = "framerAppearId", Pa = "data-" + ln(xa);
1058
1063
  function Ra(n) {
1059
- return n.props[xa];
1064
+ return n.props[Pa];
1060
1065
  }
1061
1066
  const ka = (n) => n !== null;
1062
1067
  function Sa(n, { repeat: t, repeatType: e = "loop" }, r) {
@@ -1293,7 +1298,7 @@ function Hr(n, t, e) {
1293
1298
  const us = (n) => {
1294
1299
  const t = ({ timestamp: e }) => n(e);
1295
1300
  return {
1296
- start: (e = !0) => we.update(t, e),
1301
+ start: (e = !0) => Te.update(t, e),
1297
1302
  stop: () => Ut(t),
1298
1303
  /**
1299
1304
  * If we're processing this frame we can use the
@@ -1345,7 +1350,7 @@ function hs({ duration: n = ae.duration, bounce: t = ae.bounce, velocity: e = ae
1345
1350
  let a, i;
1346
1351
  st(n <= /* @__PURE__ */ Ee(ae.maxDuration), "Spring duration must be 10 seconds or less");
1347
1352
  let s = 1 - t;
1348
- s = Re(ae.minDamping, ae.maxDamping, s), n = Re(ae.minDuration, ae.maxDuration, /* @__PURE__ */ _e(n)), s < 1 ? (a = (l) => {
1353
+ s = Re(ae.minDamping, ae.maxDamping, s), n = Re(ae.minDuration, ae.maxDuration, /* @__PURE__ */ Ce(n)), s < 1 ? (a = (l) => {
1349
1354
  const d = l * s, u = d * n, h = d - e, p = jt(l, s), f = Math.exp(-u);
1350
1355
  return Nt - h / p * f;
1351
1356
  }, i = (l) => {
@@ -1420,42 +1425,42 @@ function it(n = ae.visualDuration, t = ae.bounce) {
1420
1425
  } : n;
1421
1426
  let { restSpeed: r, restDelta: a } = e;
1422
1427
  const i = e.keyframes[0], s = e.keyframes[e.keyframes.length - 1], o = { done: !1, value: i }, { stiffness: c, damping: l, mass: d, duration: u, velocity: h, isResolvedFromDuration: p } = ys(J(H({}, e), {
1423
- velocity: -/* @__PURE__ */ _e(e.velocity || 0)
1424
- })), f = h || 0, m = l / (2 * Math.sqrt(c * d)), v = s - i, y = /* @__PURE__ */ _e(Math.sqrt(c / d)), w = Math.abs(v) < 5;
1428
+ velocity: -/* @__PURE__ */ Ce(e.velocity || 0)
1429
+ })), f = h || 0, m = l / (2 * Math.sqrt(c * d)), v = s - i, y = /* @__PURE__ */ Ce(Math.sqrt(c / d)), w = Math.abs(v) < 5;
1425
1430
  r || (r = w ? ae.restSpeed.granular : ae.restSpeed.default), a || (a = w ? ae.restDelta.granular : ae.restDelta.default);
1426
1431
  let O;
1427
1432
  if (m < 1) {
1428
1433
  const I = jt(y, m);
1429
- O = (x) => {
1430
- const N = Math.exp(-m * y * x);
1431
- return s - N * ((f + m * y * v) / I * Math.sin(I * x) + v * Math.cos(I * x));
1434
+ O = (P) => {
1435
+ const N = Math.exp(-m * y * P);
1436
+ return s - N * ((f + m * y * v) / I * Math.sin(I * P) + v * Math.cos(I * P));
1432
1437
  };
1433
1438
  } else if (m === 1)
1434
1439
  O = (I) => s - Math.exp(-y * I) * (v + (f + y * v) * I);
1435
1440
  else {
1436
1441
  const I = y * Math.sqrt(m * m - 1);
1437
- O = (x) => {
1438
- const N = Math.exp(-m * y * x), S = Math.min(I * x, 300);
1442
+ O = (P) => {
1443
+ const N = Math.exp(-m * y * P), S = Math.min(I * P, 300);
1439
1444
  return s - N * ((f + m * y * v) * Math.sinh(S) + I * v * Math.cosh(S)) / I;
1440
1445
  };
1441
1446
  }
1442
1447
  const L = {
1443
1448
  calculatedDuration: p && u || null,
1444
1449
  next: (I) => {
1445
- const x = O(I);
1450
+ const P = O(I);
1446
1451
  if (p)
1447
1452
  o.done = I >= u;
1448
1453
  else {
1449
1454
  let N = I === 0 ? f : 0;
1450
- m < 1 && (N = I === 0 ? /* @__PURE__ */ Ee(f) : Wr(O, I, x));
1451
- const S = Math.abs(N) <= r, U = Math.abs(s - x) <= a;
1455
+ m < 1 && (N = I === 0 ? /* @__PURE__ */ Ee(f) : Wr(O, I, P));
1456
+ const S = Math.abs(N) <= r, U = Math.abs(s - P) <= a;
1452
1457
  o.done = S && U;
1453
1458
  }
1454
- return o.value = o.done ? s : x, o;
1459
+ return o.value = o.done ? s : P, o;
1455
1460
  },
1456
1461
  toString: () => {
1457
- const I = Math.min(cn(L), gt), x = Kr((N) => L.next(I * N).value, I, 30);
1458
- return I + "ms " + x;
1462
+ const I = Math.min(cn(L), gt), P = Kr((N) => L.next(I * N).value, I, 30);
1463
+ return I + "ms " + P;
1459
1464
  },
1460
1465
  toTransition: () => {
1461
1466
  }
@@ -1478,9 +1483,9 @@ function Ht({ keyframes: n, velocity: t = 0, power: e = 0.8, timeConstant: r = 3
1478
1483
  const U = w(S), Y = O(S);
1479
1484
  h.done = Math.abs(U) <= l, h.value = h.done ? y : Y;
1480
1485
  };
1481
- let I, x;
1486
+ let I, P;
1482
1487
  const N = (S) => {
1483
- p(h.value) && (I = S, x = it({
1488
+ p(h.value) && (I = S, P = it({
1484
1489
  keyframes: [h.value, f(h.value)],
1485
1490
  velocity: Wr(O, S, h.value),
1486
1491
  // TODO: This should be passing * 1000
@@ -1494,12 +1499,12 @@ function Ht({ keyframes: n, velocity: t = 0, power: e = 0.8, timeConstant: r = 3
1494
1499
  calculatedDuration: null,
1495
1500
  next: (S) => {
1496
1501
  let U = !1;
1497
- return !x && I === void 0 && (U = !0, L(S), N(S)), I !== void 0 && S >= I ? x.next(S - I) : (!U && L(S), h);
1502
+ return !P && I === void 0 && (U = !0, L(S), N(S)), I !== void 0 && S >= I ? P.next(S - I) : (!U && L(S), h);
1498
1503
  }
1499
1504
  };
1500
1505
  }
1501
1506
  function bs(n, t, e) {
1502
- const r = [], a = e || Ae.mix || Hr, i = n.length - 1;
1507
+ const r = [], a = e || we.mix || Hr, i = n.length - 1;
1503
1508
  for (let s = 0; s < i; s++) {
1504
1509
  let o = a(n[s], n[s + 1]);
1505
1510
  if (t) {
@@ -1512,7 +1517,7 @@ function bs(n, t, e) {
1512
1517
  }
1513
1518
  function Es(n, t, { clamp: e = !0, ease: r, mixer: a } = {}) {
1514
1519
  const i = n.length;
1515
- if (Ce(i === t.length, "Both input and output ranges must be the same length"), i === 1)
1520
+ if (Ae(i === t.length, "Both input and output ranges must be the same length"), i === 1)
1516
1521
  return () => t[0];
1517
1522
  if (i === 2 && t[0] === t[1])
1518
1523
  return () => t[1];
@@ -1561,11 +1566,11 @@ const Ts = /* @__PURE__ */ ct(0.42, 0, 1, 1), Is = /* @__PURE__ */ ct(0, 0, 0.58
1561
1566
  anticipate: Zr
1562
1567
  }, Ns = (n) => typeof n == "string", jn = (n) => {
1563
1568
  if (ei(n)) {
1564
- Ce(n.length === 4, "Cubic bezier arrays must contain four numerical values.");
1569
+ Ae(n.length === 4, "Cubic bezier arrays must contain four numerical values.");
1565
1570
  const [t, e, r, a] = n;
1566
1571
  return ct(t, e, r, a);
1567
1572
  } else if (Ns(n))
1568
- return Ce(zn[n] !== void 0, `Invalid easing type '${n}'`), zn[n];
1573
+ return Ae(zn[n] !== void 0, `Invalid easing type '${n}'`), zn[n];
1569
1574
  return n;
1570
1575
  };
1571
1576
  function Ls(n, t) {
@@ -1588,12 +1593,12 @@ function Me({ duration: n = 300, keyframes: t, times: e, ease: r = "easeInOut" }
1588
1593
  next: (c) => (i.value = o(c), i.done = c >= n, i)
1589
1594
  };
1590
1595
  }
1591
- const Ps = (n) => n !== null;
1596
+ const xs = (n) => n !== null;
1592
1597
  function gn(n, { repeat: t, repeatType: e = "loop" }, r, a = 1) {
1593
- const i = n.filter(Ps), o = a < 0 || t && e !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
1598
+ const i = n.filter(xs), o = a < 0 || t && e !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
1594
1599
  return !o || r === void 0 ? i[o] : r;
1595
1600
  }
1596
- const xs = {
1601
+ const Ps = {
1597
1602
  decay: Ht,
1598
1603
  inertia: Ht,
1599
1604
  tween: Me,
@@ -1601,7 +1606,7 @@ const xs = {
1601
1606
  spring: it
1602
1607
  };
1603
1608
  function ti(n) {
1604
- typeof n.type == "string" && (n.type = xs[n.type]);
1609
+ typeof n.type == "string" && (n.type = Ps[n.type]);
1605
1610
  }
1606
1611
  class yn {
1607
1612
  constructor() {
@@ -1642,7 +1647,7 @@ class bn extends yn {
1642
1647
  const { type: e = Me, repeat: r = 0, repeatDelay: a = 0, repeatType: i, velocity: s = 0 } = t;
1643
1648
  let { keyframes: o } = t;
1644
1649
  const c = e || Me;
1645
- process.env.NODE_ENV !== "production" && c !== Me && Ce(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), c !== Me && typeof o[0] != "number" && (this.mixKeyframes = hn(Rs, Hr(o[0], o[1])), o = [0, 100]);
1650
+ process.env.NODE_ENV !== "production" && c !== Me && Ae(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), c !== Me && typeof o[0] != "number" && (this.mixKeyframes = hn(Rs, Hr(o[0], o[1])), o = [0, 100]);
1646
1651
  const l = c(J(H({}, t), { keyframes: o }));
1647
1652
  i === "mirror" && (this.mirroredGenerator = c(J(H({}, t), {
1648
1653
  keyframes: [...o].reverse(),
@@ -1671,9 +1676,9 @@ class bn extends yn {
1671
1676
  }
1672
1677
  const I = w ? { done: !1, value: d[0] } : L.next(O);
1673
1678
  i && (I.value = i(I.value));
1674
- let { done: x } = I;
1675
- !w && c !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= a : this.currentTime <= 0);
1676
- const N = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
1679
+ let { done: P } = I;
1680
+ !w && c !== null && (P = this.playbackSpeed >= 0 ? this.currentTime >= a : this.currentTime <= 0);
1681
+ const N = this.holdTime === null && (this.state === "finished" || this.state === "running" && P);
1677
1682
  return N && f !== Ht && (I.value = gn(d, this.options, v, this.speed)), m && m(I.value), N && this.finish(), I;
1678
1683
  }
1679
1684
  /**
@@ -1685,10 +1690,10 @@ class bn extends yn {
1685
1690
  return this.finished.then(t, e);
1686
1691
  }
1687
1692
  get duration() {
1688
- return /* @__PURE__ */ _e(this.calculatedDuration);
1693
+ return /* @__PURE__ */ Ce(this.calculatedDuration);
1689
1694
  }
1690
1695
  get time() {
1691
- return /* @__PURE__ */ _e(this.currentTime);
1696
+ return /* @__PURE__ */ Ce(this.currentTime);
1692
1697
  }
1693
1698
  set time(t) {
1694
1699
  var e;
@@ -1700,7 +1705,7 @@ class bn extends yn {
1700
1705
  set speed(t) {
1701
1706
  this.updateTime(ve.now());
1702
1707
  const e = this.playbackSpeed !== t;
1703
- this.playbackSpeed = t, e && (this.time = /* @__PURE__ */ _e(this.currentTime));
1708
+ this.playbackSpeed = t, e && (this.time = /* @__PURE__ */ Ce(this.currentTime));
1704
1709
  }
1705
1710
  play() {
1706
1711
  var a, i;
@@ -1812,7 +1817,7 @@ function Bs(n) {
1812
1817
  r !== void 0 && (t.push([e, r.get()]), r.set(e.startsWith("scale") ? 1 : 0));
1813
1818
  }), t;
1814
1819
  }
1815
- const Pe = {
1820
+ const xe = {
1816
1821
  // Dimensions
1817
1822
  width: ({ x: n }, { paddingLeft: t = "0", paddingRight: e = "0" }) => n.max - n.min - parseFloat(t) - parseFloat(e),
1818
1823
  height: ({ y: n }, { paddingTop: t = "0", paddingBottom: e = "0" }) => n.max - n.min - parseFloat(t) - parseFloat(e),
@@ -1824,13 +1829,13 @@ const Pe = {
1824
1829
  x: (n, { transform: t }) => Gt(t, "x"),
1825
1830
  y: (n, { transform: t }) => Gt(t, "y")
1826
1831
  };
1827
- Pe.translateX = Pe.x;
1828
- Pe.translateY = Pe.y;
1829
- const xe = /* @__PURE__ */ new Set();
1832
+ xe.translateX = xe.x;
1833
+ xe.translateY = xe.y;
1834
+ const Pe = /* @__PURE__ */ new Set();
1830
1835
  let $t = !1, qt = !1, Qt = !1;
1831
1836
  function ni() {
1832
1837
  if (qt) {
1833
- const n = Array.from(xe).filter((r) => r.needsMeasurement), t = new Set(n.map((r) => r.element)), e = /* @__PURE__ */ new Map();
1838
+ const n = Array.from(Pe).filter((r) => r.needsMeasurement), t = new Set(n.map((r) => r.element)), e = /* @__PURE__ */ new Map();
1834
1839
  t.forEach((r) => {
1835
1840
  const a = Bs(r);
1836
1841
  a.length && (e.set(r, a), r.render());
@@ -1845,10 +1850,10 @@ function ni() {
1845
1850
  r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
1846
1851
  });
1847
1852
  }
1848
- qt = !1, $t = !1, xe.forEach((n) => n.complete(Qt)), xe.clear();
1853
+ qt = !1, $t = !1, Pe.forEach((n) => n.complete(Qt)), Pe.clear();
1849
1854
  }
1850
1855
  function ri() {
1851
- xe.forEach((n) => {
1856
+ Pe.forEach((n) => {
1852
1857
  n.readKeyframes(), n.needsMeasurement && (qt = !0);
1853
1858
  });
1854
1859
  }
@@ -1860,7 +1865,7 @@ class En {
1860
1865
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = e, this.name = r, this.motionValue = a, this.element = i, this.isAsync = s;
1861
1866
  }
1862
1867
  scheduleResolve() {
1863
- this.state = "scheduled", this.isAsync ? (xe.add(this), $t || ($t = !0, we.read(ri), we.resolveKeyframes(ni))) : (this.readKeyframes(), this.complete());
1868
+ this.state = "scheduled", this.isAsync ? (Pe.add(this), $t || ($t = !0, Te.read(ri), Te.resolveKeyframes(ni))) : (this.readKeyframes(), this.complete());
1864
1869
  }
1865
1870
  readKeyframes() {
1866
1871
  const { unresolvedKeyframes: t, name: e, element: r, motionValue: a } = this;
@@ -1885,10 +1890,10 @@ class En {
1885
1890
  measureEndState() {
1886
1891
  }
1887
1892
  complete(t = !1) {
1888
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), xe.delete(this);
1893
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Pe.delete(this);
1889
1894
  }
1890
1895
  cancel() {
1891
- this.state === "scheduled" && (xe.delete(this), this.state = "pending");
1896
+ this.state === "scheduled" && (Pe.delete(this), this.state = "pending");
1892
1897
  }
1893
1898
  resume() {
1894
1899
  this.state === "pending" && this.scheduleResolve();
@@ -1960,7 +1965,7 @@ class qs extends yn {
1960
1965
  if (super(), this.finishedTime = null, this.isStopped = !1, !t)
1961
1966
  return;
1962
1967
  const { element: e, name: r, keyframes: a, pseudoElement: i, allowFlatten: s = !1, finalKeyframe: o, onComplete: c } = t;
1963
- this.isPseudoElement = !!i, this.allowFlatten = s, this.options = t, Ce(typeof t.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1968
+ this.isPseudoElement = !!i, this.allowFlatten = s, this.options = t, Ae(typeof t.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1964
1969
  const l = $s(t);
1965
1970
  this.animation = Gs(e, r, a, l, i), l.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1966
1971
  if (this.finishedTime = this.time, !i) {
@@ -2012,10 +2017,10 @@ class qs extends yn {
2012
2017
  get duration() {
2013
2018
  var e, r;
2014
2019
  const t = ((r = (e = this.animation.effect) == null ? void 0 : e.getComputedTiming) == null ? void 0 : r.call(e).duration) || 0;
2015
- return /* @__PURE__ */ _e(Number(t));
2020
+ return /* @__PURE__ */ Ce(Number(t));
2016
2021
  }
2017
2022
  get time() {
2018
- return /* @__PURE__ */ _e(Number(this.animation.currentTime) || 0);
2023
+ return /* @__PURE__ */ Ce(Number(this.animation.currentTime) || 0);
2019
2024
  }
2020
2025
  set time(t) {
2021
2026
  this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Ee(t);
@@ -2157,7 +2162,7 @@ class so extends yn {
2157
2162
  onKeyframesResolved(t, e, r, a) {
2158
2163
  this.keyframeResolver = void 0;
2159
2164
  const { name: i, type: s, velocity: o, delay: c, isHandoff: l, onUpdate: d } = r;
2160
- this.resolvedAt = ve.now(), eo(t, i, s, o) || ((Ae.instantAnimations || !c) && (d == null || d(gn(t, r, e))), t[0] = t[t.length - 1], r.duration = 0, r.repeat = 0);
2165
+ this.resolvedAt = ve.now(), eo(t, i, s, o) || ((we.instantAnimations || !c) && (d == null || d(gn(t, r, e))), t[0] = t[t.length - 1], r.duration = 0, r.repeat = 0);
2161
2166
  const u = a ? this.resolvedAt ? this.resolvedAt - this.createdAt > ao ? this.resolvedAt : this.createdAt : this.createdAt : void 0, h = J(H({
2162
2167
  startTime: u,
2163
2168
  finalKeyframe: e
@@ -2239,10 +2244,10 @@ const ci = (n, t, e, r = {}, a, i) => (s) => {
2239
2244
  });
2240
2245
  Ba(o) || Object.assign(d, Ua(n, d)), d.duration && (d.duration = /* @__PURE__ */ Ee(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ Ee(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
2241
2246
  let u = !1;
2242
- if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (d.duration = 0, d.delay === 0 && (u = !0)), (Ae.instantAnimations || Ae.skipAnimations) && (u = !0, d.duration = 0, d.delay = 0), d.allowFlatten = !o.type && !o.ease, u && !i && t.get() !== void 0) {
2247
+ if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (d.duration = 0, d.delay === 0 && (u = !0)), (we.instantAnimations || we.skipAnimations) && (u = !0, d.duration = 0, d.delay = 0), d.allowFlatten = !o.type && !o.ease, u && !i && t.get() !== void 0) {
2243
2248
  const h = Sa(d.keyframes, o);
2244
2249
  if (h !== void 0) {
2245
- we.update(() => {
2250
+ Te.update(() => {
2246
2251
  d.onUpdate(h), d.onComplete();
2247
2252
  });
2248
2253
  return;
@@ -2280,7 +2285,7 @@ function co(n, t, { delay: e = 0, transitionOverride: r, type: a } = {}) {
2280
2285
  if (window.MotionHandoffAnimation) {
2281
2286
  const O = Ra(n);
2282
2287
  if (O) {
2283
- const L = window.MotionHandoffAnimation(O, h, we);
2288
+ const L = window.MotionHandoffAnimation(O, h, Te);
2284
2289
  L !== null && (m.startTime = L, y = !0);
2285
2290
  }
2286
2291
  }
@@ -2289,7 +2294,7 @@ function co(n, t, { delay: e = 0, transitionOverride: r, type: a } = {}) {
2289
2294
  w && c.push(w);
2290
2295
  }
2291
2296
  return s && Promise.all(c).then(() => {
2292
- we.update(() => {
2297
+ Te.update(() => {
2293
2298
  s && Oa(n, s);
2294
2299
  });
2295
2300
  }), c;
@@ -2525,7 +2530,7 @@ class yi {
2525
2530
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2526
2531
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2527
2532
  const p = ve.now();
2528
- this.renderScheduledAt < p && (this.renderScheduledAt = p, we.render(this.render, !1, !0));
2533
+ this.renderScheduledAt < p && (this.renderScheduledAt = p, Te.render(this.render, !1, !0));
2529
2534
  };
2530
2535
  const { latestValues: c, renderState: l } = s;
2531
2536
  this.latestValues = c, this.baseTarget = H({}, c), this.initialValues = e.initial ? H({}, c) : {}, this.renderState = l, this.parent = t, this.props = e, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = a, this.options = o, this.blockInitialAnimation = !!i, this.isControllingVariants = ui(e), this.isVariantNode = bo(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
@@ -2536,7 +2541,7 @@ class yi {
2536
2541
  }
2537
2542
  }
2538
2543
  mount(t) {
2539
- this.current = t, et.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, r) => this.bindToMotionValue(r, e)), di.current || fo(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Zt.current, process.env.NODE_ENV !== "production" && xr(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
2544
+ this.current = t, et.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, r) => this.bindToMotionValue(r, e)), di.current || fo(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Zt.current, process.env.NODE_ENV !== "production" && Pr(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
2540
2545
  }
2541
2546
  unmount() {
2542
2547
  this.projection && this.projection.unmount(), Ut(this.notifyUpdate), Ut(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -2553,7 +2558,7 @@ class yi {
2553
2558
  const r = Be.has(t);
2554
2559
  r && this.onBindTransform && this.onBindTransform();
2555
2560
  const a = e.on("change", (o) => {
2556
- this.latestValues[t] = o, this.props.onUpdate && we.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
2561
+ this.latestValues[t] = o, this.props.onUpdate && Te.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
2557
2562
  }), i = e.on("renderRequest", this.scheduleRender);
2558
2563
  let s;
2559
2564
  window.MotionCheckAppearSync && (s = window.MotionCheckAppearSync(this, t, e)), this.valueSubscriptions.set(t, () => {
@@ -2689,7 +2694,7 @@ class yi {
2689
2694
  const { initial: e } = this.props;
2690
2695
  let r;
2691
2696
  if (typeof e == "string" || typeof e == "object") {
2692
- const s = Pr(this.props, e, (i = this.presenceContext) == null ? void 0 : i.custom);
2697
+ const s = xr(this.props, e, (i = this.presenceContext) == null ? void 0 : i.custom);
2693
2698
  s && (r = s[t]);
2694
2699
  }
2695
2700
  if (e && r !== void 0)
@@ -2708,17 +2713,17 @@ const Lo = (
2708
2713
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
2709
2714
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
2710
2715
  );
2711
- function Po(n) {
2716
+ function xo(n) {
2712
2717
  const t = Lo.exec(n);
2713
2718
  if (!t)
2714
2719
  return [,];
2715
2720
  const [, e, r, a] = t;
2716
2721
  return [`--${e != null ? e : r}`, a];
2717
2722
  }
2718
- const xo = 4;
2723
+ const Po = 4;
2719
2724
  function bi(n, t, e = 1) {
2720
- Ce(e <= xo, `Max CSS variable fallback depth detected in property "${n}". This may indicate a circular fallback dependency.`);
2721
- const [r, a] = Po(n);
2725
+ Ae(e <= Po, `Max CSS variable fallback depth detected in property "${n}". This may indicate a circular fallback dependency.`);
2726
+ const [r, a] = xo(n);
2722
2727
  if (!r)
2723
2728
  return;
2724
2729
  const i = window.getComputedStyle(t).getPropertyValue(r);
@@ -2767,7 +2772,7 @@ class Mo extends En {
2767
2772
  const l = t[c];
2768
2773
  typeof l == "string" && (t[c] = parseFloat(l));
2769
2774
  }
2770
- else Pe[r] && (this.needsMeasurement = !0);
2775
+ else xe[r] && (this.needsMeasurement = !0);
2771
2776
  }
2772
2777
  resolveNoneKeyframes() {
2773
2778
  const { unresolvedKeyframes: t, name: e } = this, r = [];
@@ -2779,7 +2784,7 @@ class Mo extends En {
2779
2784
  const { element: t, unresolvedKeyframes: e, name: r } = this;
2780
2785
  if (!t || !t.current)
2781
2786
  return;
2782
- r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Pe[r](t.measureViewportBox(), window.getComputedStyle(t.current)), e[0] = this.measuredOrigin;
2787
+ r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = xe[r](t.measureViewportBox(), window.getComputedStyle(t.current)), e[0] = this.measuredOrigin;
2783
2788
  const a = e[e.length - 1];
2784
2789
  a !== void 0 && t.getValue(r, a).jump(a, !1);
2785
2790
  }
@@ -2791,7 +2796,7 @@ class Mo extends En {
2791
2796
  const a = t.getValue(e);
2792
2797
  a && a.jump(this.measuredOrigin, !1);
2793
2798
  const i = r.length - 1, s = r[i];
2794
- r[i] = Pe[e](t.measureViewportBox(), window.getComputedStyle(t.current)), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), (o = this.removedTransforms) != null && o.length && this.removedTransforms.forEach(([c, l]) => {
2799
+ r[i] = xe[e](t.measureViewportBox(), window.getComputedStyle(t.current)), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), (o = this.removedTransforms) != null && o.length && this.removedTransforms.forEach(([c, l]) => {
2795
2800
  t.getValue(c).set(l);
2796
2801
  }), this.resolveNoneKeyframes();
2797
2802
  }
@@ -3091,7 +3096,7 @@ function Oi(n, t, e, r) {
3091
3096
  a.push(nc(n, an(t) && t.default || t, e && (e.default || e)));
3092
3097
  else {
3093
3098
  const i = Ar(n, t, r), s = i.length;
3094
- Ce(!!s, "No valid elements provided.");
3099
+ Ae(!!s, "No valid elements provided.");
3095
3100
  for (let o = 0; o < s; o++) {
3096
3101
  const c = i[o], l = c instanceof Element ? ec : tc;
3097
3102
  et.has(c) || l(c);
@@ -3245,16 +3250,16 @@ const _c = "_checkout_lsspc_1", Cc = "_hidden_lsspc_8", Ac = "_formInitial_lsspc
3245
3250
  }, Tc = "_buttons_1i8cu_1", Ic = "_hidden_1i8cu_5", Lt = {
3246
3251
  buttons: Tc,
3247
3252
  hidden: Ic
3248
- }, Oc = "_applePay_f1ztr_1", Nc = "_hidden_f1ztr_28", Pt = {
3253
+ }, Oc = "_applePay_f1ztr_1", Nc = "_hidden_f1ztr_28", xt = {
3249
3254
  applePay: Oc,
3250
3255
  hidden: Nc
3251
3256
  };
3252
3257
  function wn(n) {
3253
3258
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
3254
3259
  }
3255
- var xt, nr;
3260
+ var Pt, nr;
3256
3261
  function Lc() {
3257
- if (nr) return xt;
3262
+ if (nr) return Pt;
3258
3263
  nr = 1;
3259
3264
  var n = {
3260
3265
  visa: {
@@ -3448,7 +3453,7 @@ function Lc() {
3448
3453
  }
3449
3454
  }
3450
3455
  };
3451
- return xt = n, xt;
3456
+ return Pt = n, Pt;
3452
3457
  }
3453
3458
  var He = {}, Ke = {}, rr;
3454
3459
  function Li() {
@@ -3460,7 +3465,7 @@ function Li() {
3460
3465
  return Ke.clone = n, Ke;
3461
3466
  }
3462
3467
  var We = {}, ir;
3463
- function Pc() {
3468
+ function xc() {
3464
3469
  if (ir) return We;
3465
3470
  ir = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.matches = void 0;
3466
3471
  function n(r, a, i) {
@@ -3476,10 +3481,10 @@ function Pc() {
3476
3481
  return We.matches = e, We;
3477
3482
  }
3478
3483
  var ar;
3479
- function xc() {
3484
+ function Pc() {
3480
3485
  if (ar) return He;
3481
3486
  ar = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.addMatchingCardsToResults = void 0;
3482
- var n = Li(), t = Pc();
3487
+ var n = Li(), t = xc();
3483
3488
  function e(r, a, i) {
3484
3489
  var s, o;
3485
3490
  for (s = 0; s < a.patterns.length; s++) {
@@ -3531,7 +3536,7 @@ function Sc() {
3531
3536
  }
3532
3537
  return f;
3533
3538
  }, n.apply(this, arguments);
3534
- }, t = Lc(), e = xc(), r = Rc(), a = kc(), i = Li(), s = {}, o = {
3539
+ }, t = Lc(), e = Pc(), r = Rc(), a = kc(), i = Li(), s = {}, o = {
3535
3540
  VISA: "visa",
3536
3541
  MASTERCARD: "mastercard",
3537
3542
  AMERICAN_EXPRESS: "american-express",
@@ -3674,7 +3679,7 @@ const Et = [
3674
3679
  minLength: 12,
3675
3680
  maxLength: 19
3676
3681
  }
3677
- ], Pi = [
3682
+ ], xi = [
3678
3683
  {
3679
3684
  name: "American Express",
3680
3685
  // type: CardType.AmericanExpress,
@@ -3691,11 +3696,11 @@ const Et = [
3691
3696
  }
3692
3697
  ], Fc = (n) => {
3693
3698
  var t, e;
3694
- return (e = (t = Pi.find((r) => r.name === "American Express")) == null ? void 0 : t.pattern.test(n)) != null ? e : !1;
3699
+ return (e = (t = xi.find((r) => r.name === "American Express")) == null ? void 0 : t.pattern.test(n)) != null ? e : !1;
3695
3700
  }, Uc = (n) => {
3696
3701
  var t, e;
3697
- return (e = (t = Pi.find((r) => r.name === "Discover")) == null ? void 0 : t.pattern.test(n)) != null ? e : !1;
3698
- }, xi = (n) => Et.find((t) => t.pattern.test(n)) || null, lr = (n) => Et.filter((t) => t.pattern.test(n)), Bc = (n) => {
3702
+ return (e = (t = xi.find((r) => r.name === "Discover")) == null ? void 0 : t.pattern.test(n)) != null ? e : !1;
3703
+ }, Pi = (n) => Et.find((t) => t.pattern.test(n)) || null, lr = (n) => Et.filter((t) => t.pattern.test(n)), Bc = (n) => {
3699
3704
  let t = 0, e = !1;
3700
3705
  for (let r = n.length - 1; r >= 0; r--) {
3701
3706
  let a = parseInt(n[r]);
@@ -3710,7 +3715,7 @@ const Et = [
3710
3715
  return { isValid: !1, cardType: null, error: le.Invalid };
3711
3716
  if (Fc(e) || Uc(e))
3712
3717
  return { isValid: !1, cardType: null, error: le.Unsupported };
3713
- const r = xi(e);
3718
+ const r = Pi(e);
3714
3719
  if (r) {
3715
3720
  if (e.length < r.minLength || e.length > r.maxLength)
3716
3721
  return {
@@ -3924,7 +3929,7 @@ function $c() {
3924
3929
  return "StrictMode";
3925
3930
  case I:
3926
3931
  return "Suspense";
3927
- case x:
3932
+ case P:
3928
3933
  return "SuspenseList";
3929
3934
  case U:
3930
3935
  return "Activity";
@@ -4016,7 +4021,7 @@ function $c() {
4016
4021
  "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."
4017
4022
  )), g = this.props.ref, g !== void 0 ? g : null;
4018
4023
  }
4019
- function l(g, R, V, b, T, E, P, D) {
4024
+ function l(g, R, V, b, T, E, x, D) {
4020
4025
  return V = E.ref, g = {
4021
4026
  $$typeof: p,
4022
4027
  type: g,
@@ -4040,7 +4045,7 @@ function $c() {
4040
4045
  configurable: !1,
4041
4046
  enumerable: !1,
4042
4047
  writable: !0,
4043
- value: P
4048
+ value: x
4044
4049
  }), Object.defineProperty(g, "_debugTask", {
4045
4050
  configurable: !1,
4046
4051
  enumerable: !1,
@@ -4048,7 +4053,7 @@ function $c() {
4048
4053
  value: D
4049
4054
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
4050
4055
  }
4051
- function d(g, R, V, b, T, E, P, D) {
4056
+ function d(g, R, V, b, T, E, x, D) {
4052
4057
  var A = R.children;
4053
4058
  if (A !== void 0)
4054
4059
  if (b)
@@ -4094,14 +4099,14 @@ React keys must be passed directly to JSX without using spread:
4094
4099
  T,
4095
4100
  a(),
4096
4101
  V,
4097
- P,
4102
+ x,
4098
4103
  D
4099
4104
  );
4100
4105
  }
4101
4106
  function u(g) {
4102
4107
  typeof g == "object" && g !== null && g.$$typeof === p && g._store && (g._store.validated = 1);
4103
4108
  }
4104
- var h = Fi, p = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), O = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), $ = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, z = Array.isArray, j = console.createTask ? console.createTask : function() {
4109
+ var h = Fi, p = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), O = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), $ = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, z = Array.isArray, j = console.createTask ? console.createTask : function() {
4105
4110
  return null;
4106
4111
  };
4107
4112
  h = {
@@ -4175,7 +4180,7 @@ class Zc {
4175
4180
  C(this, "onPaymentAttempt");
4176
4181
  this.config = t;
4177
4182
  const e = this.config.state.styles.getState().ApplePayButton;
4178
- this.onPaymentAttempt = this.config.state.checkout.getState().onCheckoutAttempt, this.ev = this.config.service.ev, this.customButtonStyles = e, this.element = document.createElement("div"), this.element.classList.add(Pt.applePay, Pt.hidden);
4183
+ this.onPaymentAttempt = this.config.state.checkout.getState().onCheckoutAttempt, this.ev = this.config.service.ev, this.customButtonStyles = e, this.element = document.createElement("div"), this.element.classList.add(xt.applePay, xt.hidden);
4179
4184
  }
4180
4185
  init(t) {
4181
4186
  return W(this, null, function* () {
@@ -4206,7 +4211,7 @@ class Zc {
4206
4211
  onPaymentAttempt: this.onPaymentAttempt
4207
4212
  }),
4208
4213
  this.customButtonStyles
4209
- ), this.ev.isAppleAvailable() ? (yield this.ev.renderApple(this.element), this.isInitialized = !0, this.element.classList.remove(Pt.hidden), this.events.ready.emit(), !0) : !1;
4214
+ ), this.ev.isAppleAvailable() ? (yield this.ev.renderApple(this.element), this.isInitialized = !0, this.element.classList.remove(xt.hidden), this.events.ready.emit(), !0) : !1;
4210
4215
  });
4211
4216
  }
4212
4217
  addEventListener(t, e) {
@@ -5047,7 +5052,7 @@ class El {
5047
5052
  return this.element;
5048
5053
  }
5049
5054
  }
5050
- const _l = "_button_1lwej_1", Cl = "_disabled_1lwej_18", Al = "_press_1lwej_28", wl = "_hidden_1lwej_32", Tl = "_spinner_1lwej_36", Te = {
5055
+ const _l = "_button_1lwej_1", Cl = "_disabled_1lwej_18", Al = "_press_1lwej_28", wl = "_hidden_1lwej_32", Tl = "_spinner_1lwej_36", _e = {
5051
5056
  button: _l,
5052
5057
  disabled: Cl,
5053
5058
  press: Al,
@@ -5059,7 +5064,8 @@ class Il {
5059
5064
  C(this, "element");
5060
5065
  C(this, "spinner", new Ni());
5061
5066
  C(this, "message", document.createElement("span"));
5062
- this.element = document.createElement("button"), this.element.setAttribute("type", "button"), this.element.classList.add(Te.button, Te.press), e != null && e.className && this.element.classList.add(e.className), e != null && e.styles && Object.assign(this.element.style, e.styles), this.spinner.addClass(Te.spinner), this.spinner.addClass(Te.hidden), this.message.textContent = t.messages().card.pay.button, this.element.append(this.spinner.render(), this.message), t.subscribe((r) => {
5067
+ C(this, "iconElement");
5068
+ this.element = document.createElement("button"), this.element.setAttribute("type", "button"), this.element.classList.add(_e.button, _e.press), e != null && e.className && this.element.classList.add(e.className), e != null && e.styles && Object.assign(this.element.style, e.styles), e != null && e.iconSvg && (this.iconElement = document.createElement("div"), this.iconElement.classList.add(ne.card), this.iconElement.innerHTML = e.iconSvg), this.spinner.addClass(_e.spinner), this.spinner.addClass(_e.hidden), this.message.textContent = t.messages().card.pay.button, this.element.append(this.spinner.render()), this.iconElement && this.element.append(this.iconElement), this.element.append(this.message), t.subscribe((r) => {
5063
5069
  this.message.textContent = r.messages.card.pay.button;
5064
5070
  });
5065
5071
  }
@@ -5067,7 +5073,7 @@ class Il {
5067
5073
  return this.element.addEventListener("click", t);
5068
5074
  }
5069
5075
  disable(t) {
5070
- t ? (this.element.setAttribute("disabled", "true"), this.element.classList.add(Te.disabled), this.spinner.removeClass(Te.hidden)) : (this.element.removeAttribute("disabled"), this.element.classList.remove(Te.disabled), this.spinner.addClass(Te.hidden));
5076
+ t ? (this.element.setAttribute("disabled", "true"), this.element.classList.add(_e.disabled), this.spinner.removeClass(_e.hidden), this.iconElement && this.iconElement.classList.add(_e.hidden)) : (this.element.removeAttribute("disabled"), this.element.classList.remove(_e.disabled), this.spinner.addClass(_e.hidden), this.iconElement && this.iconElement.classList.remove(_e.hidden));
5071
5077
  }
5072
5078
  render() {
5073
5079
  return this.element;
@@ -5077,9 +5083,9 @@ const Ol = "_cardForm_ydw03_1", Nl = "_hidden_ydw03_5", Ll = "_topOffset_ydw03_9
5077
5083
  cardForm: Ol,
5078
5084
  hidden: Nl,
5079
5085
  topOffset: Ll
5080
- }, Pl = "_wrapper_1gvzd_1", xl = "_inputContainer_1gvzd_5", Rl = "_errorInput_1gvzd_23", kl = "_disabled_1gvzd_23", Sl = "_input_1gvzd_5", Ml = "_label_1gvzd_40", Dl = "_labelError_1gvzd_44", Vl = "_disabledInput_1gvzd_52", Fl = "_hidden_1gvzd_59", se = {
5081
- wrapper: Pl,
5082
- inputContainer: xl,
5086
+ }, xl = "_wrapper_1gvzd_1", Pl = "_inputContainer_1gvzd_5", Rl = "_errorInput_1gvzd_23", kl = "_disabled_1gvzd_23", Sl = "_input_1gvzd_5", Ml = "_label_1gvzd_40", Dl = "_labelError_1gvzd_44", Vl = "_disabledInput_1gvzd_52", Fl = "_hidden_1gvzd_59", se = {
5087
+ wrapper: xl,
5088
+ inputContainer: Pl,
5083
5089
  errorInput: Rl,
5084
5090
  disabled: kl,
5085
5091
  input: Sl,
@@ -5487,7 +5493,7 @@ ${m}::-ms-input-placeholder{${f}}
5487
5493
  handleChange(t) {
5488
5494
  if (this.isDisabled) return;
5489
5495
  this.isRequired = !1, this.errorMessage = "", this.isChanged || (this.isChanged = !0);
5490
- const e = lr(t).map((i) => i.type), r = xi(t), a = Mc(t, (r == null ? void 0 : r.type) || "");
5496
+ const e = lr(t).map((i) => i.type), r = Pi(t), a = Mc(t, (r == null ? void 0 : r.type) || "");
5491
5497
  this.supportedCardTypes = e.length ? e : this.initialCardTypes, a.replace(/\D/g, "").length === ((r == null ? void 0 : r.maxLength) || 16) && this.validate(a), this.input.value = a, this.events.change.emit({
5492
5498
  card: a,
5493
5499
  cardType: r == null ? void 0 : r.type,
@@ -5637,7 +5643,7 @@ class vd {
5637
5643
  expiryChange: new oe(),
5638
5644
  cvcChange: new oe()
5639
5645
  });
5640
- var s, o, c, l, d, u, h, p, f, m, v, y, w, O, L, I, x;
5646
+ var s, o, c, l, d, u, h, p, f, m, v, y, w, O, L, I, P;
5641
5647
  this.translate = t;
5642
5648
  const r = t.messages();
5643
5649
  this.element = document.createElement("div"), this.element.classList.add(Q.securityContent), this.expiryInputContainer.classList.add(Q.inputContainer), (s = e == null ? void 0 : e.container) != null && s.className && this.expiryInputContainer.classList.add(e.container.className), (o = e == null ? void 0 : e.container) != null && o.styles && Object.assign(this.expiryInputContainer.style, e.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), (c = e == null ? void 0 : e.field) != null && c.className && this.expiryInput.classList.add(e.field.className), (l = e == null ? void 0 : e.field) != null && l.styles && Object.assign(this.expiryInput.style, e.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), (d = e == null ? void 0 : e.label) != null && d.className && this.expiryLabel.classList.add(e.label.className), (u = e == null ? void 0 : e.label) != null && u.styles && Object.assign(this.expiryLabel.style, e.label.styles), this.expiryLabelText.contentEditable = "false", this.expiryLabelText.textContent = r.card.expiry.label, this.expiryLabelError.textContent = r.card.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 = e == null ? void 0 : e.error) != null && h.className && this.expiryError.classList.add(e.error.className), (p = e == null ? void 0 : e.error) != null && p.styles && Object.assign(this.expiryError.style, e.error.styles);
@@ -5646,7 +5652,7 @@ class vd {
5646
5652
  const N = (U) => U.replace(/[A-Z]/g, (Y) => "-" + Y.toLowerCase()), S = Object.entries(e.placeholder.styles).map(([U, Y]) => `${N(U)}:${Y};`).join("");
5647
5653
  this.placeholderStyle.textContent = `#${this.expiryId}::placeholder{${S}}#${this.cvcId}::placeholder{${S}}`, this.element.appendChild(this.placeholderStyle);
5648
5654
  }
5649
- 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), (O = e == null ? void 0 : e.label) != null && O.className && this.cvcLabel.classList.add(e.label.className), (L = e == null ? void 0 : e.label) != null && L.styles && Object.assign(this.cvcLabel.style, e.label.styles), this.cvcLabelText.textContent = r.card.cvc.label, this.cvcLabelError.textContent = r.card.required, this.cvcLabelError.classList.add(Q.labelError, Q.hidden), (I = e == null ? void 0 : e.error) != null && I.className && this.cvcLabel.classList.add(e.error.className), (x = e == null ? void 0 : e.error) != null && x.styles && Object.assign(this.cvcLabelError.style, e.error.styles), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(Q.error, Q.hidden);
5655
+ 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), (O = e == null ? void 0 : e.label) != null && O.className && this.cvcLabel.classList.add(e.label.className), (L = e == null ? void 0 : e.label) != null && L.styles && Object.assign(this.cvcLabel.style, e.label.styles), this.cvcLabelText.textContent = r.card.cvc.label, this.cvcLabelError.textContent = r.card.required, this.cvcLabelError.classList.add(Q.labelError, Q.hidden), (I = e == null ? void 0 : e.error) != null && I.className && this.cvcLabel.classList.add(e.error.className), (P = e == null ? void 0 : e.error) != null && P.styles && Object.assign(this.cvcLabelError.style, e.error.styles), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(Q.error, Q.hidden);
5650
5656
  const i = document.createElement("div");
5651
5657
  i.appendChild(this.cvcError), this.element.append(
5652
5658
  this.expiryLabel,
@@ -5923,18 +5929,19 @@ const Cd = "_container_1e7lb_1", Ad = "_title_1e7lb_11", vr = {
5923
5929
  container: Cd,
5924
5930
  title: Ad
5925
5931
  }, Je = class Je {
5926
- constructor(t) {
5932
+ constructor(t, e) {
5927
5933
  C(this, "element");
5928
5934
  C(this, "message", document.createElement("p"));
5929
5935
  C(this, "icon", new Ct());
5930
5936
  C(this, "hasCustomMessage", !1);
5931
- this.translate = t, this.element = document.createElement("div"), this.element.classList.add(vr.container), this.message.classList.add(vr.title), this.message.textContent = t.messages().status.error, this.element.append(this.icon.render(), this.message), this.translate.subscribe(({ messages: e }) => {
5932
- this.hasCustomMessage || (this.message.textContent = e.status.error);
5937
+ C(this, "hasConfigMessage", !1);
5938
+ this.translate = t, this.element = document.createElement("div"), this.element.classList.add(vr.container), this.message.classList.add(vr.title), e ? (this.message.textContent = e, this.hasCustomMessage = !0, this.hasConfigMessage = !0) : this.message.textContent = t.messages().status.error, this.element.append(this.icon.render(), this.message), this.translate.subscribe(({ messages: r }) => {
5939
+ this.hasCustomMessage || (this.message.textContent = r.status.error);
5933
5940
  }), Je.instances.add(this);
5934
5941
  }
5935
5942
  // set message
5936
5943
  setMessage(t) {
5937
- this.message.textContent = t, this.hasCustomMessage = !!t;
5944
+ this.hasConfigMessage || (this.message.textContent = t, this.hasCustomMessage = !!t);
5938
5945
  }
5939
5946
  // add class name
5940
5947
  addClassName(t) {
@@ -5987,7 +5994,10 @@ class wd {
5987
5994
  var r, a;
5988
5995
  return (a = (r = this.config.state.checkout.getState()).onCheckoutAttempt) == null ? void 0 : a.call(r, e);
5989
5996
  }
5990
- }), this.success = new _d(t.state.translate), this.success.addClassName(he.hidden), this.error = new en(t.state.translate), this.error.hide(), this.container.append(this.loader.render(), this.buttons.render(), this.form.render()), this.checkout = document.createElement("div"), this.checkout.classList.add(he.checkout), this.checkout.append(this.container, this.error.render(), this.success.render());
5997
+ }), this.success = new _d(t.state.translate), this.success.addClassName(he.hidden), this.error = new en(
5998
+ t.state.translate,
5999
+ t.state.checkout.getState().errorMessageText
6000
+ ), this.error.hide(), this.container.append(this.loader.render(), this.buttons.render(), this.form.render()), this.checkout = document.createElement("div"), this.checkout.classList.add(he.checkout), this.checkout.append(this.container, this.error.render(), this.success.render());
5991
6001
  }
5992
6002
  // init
5993
6003
  init() {
@@ -6266,7 +6276,7 @@ class Ld extends At {
6266
6276
  super(H(H({}, Nd), t));
6267
6277
  }
6268
6278
  }
6269
- class Pd extends At {
6279
+ class xd extends At {
6270
6280
  constructor(e) {
6271
6281
  super(e || null);
6272
6282
  C(this, "clientToken", "");
@@ -6287,7 +6297,7 @@ class Pd extends At {
6287
6297
  });
6288
6298
  }
6289
6299
  }
6290
- const xd = {
6300
+ const Pd = {
6291
6301
  card: {
6292
6302
  required: "يتطلب",
6293
6303
  number: {
@@ -7836,7 +7846,7 @@ const xd = {
7836
7846
  invalidSession: "您的付款会话已过期。请刷新页面以继续。"
7837
7847
  }
7838
7848
  }, tn = {
7839
- ar: xd,
7849
+ ar: Pd,
7840
7850
  en: Ri,
7841
7851
  bg: Rd,
7842
7852
  cs: kd,
@@ -8233,7 +8243,7 @@ function wu() {
8233
8243
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8234
8244
  PERFORMANCE OF THIS SOFTWARE.
8235
8245
  ***************************************************************************** */
8236
- function s(b, T, E, P) {
8246
+ function s(b, T, E, x) {
8237
8247
  function D(A) {
8238
8248
  return A instanceof E ? A : new E(function(B) {
8239
8249
  B(A);
@@ -8242,14 +8252,14 @@ function wu() {
8242
8252
  return new (E || (E = Promise))(function(A, B) {
8243
8253
  function X(te) {
8244
8254
  try {
8245
- k(P.next(te));
8255
+ k(x.next(te));
8246
8256
  } catch (ye) {
8247
8257
  B(ye);
8248
8258
  }
8249
8259
  }
8250
8260
  function ie(te) {
8251
8261
  try {
8252
- k(P.throw(te));
8262
+ k(x.throw(te));
8253
8263
  } catch (ye) {
8254
8264
  B(ye);
8255
8265
  }
@@ -8257,14 +8267,14 @@ function wu() {
8257
8267
  function k(te) {
8258
8268
  te.done ? A(te.value) : D(te.value).then(X, ie);
8259
8269
  }
8260
- k((P = P.apply(b, [])).next());
8270
+ k((x = x.apply(b, [])).next());
8261
8271
  });
8262
8272
  }
8263
8273
  function o(b, T) {
8264
8274
  var E = { label: 0, sent: function() {
8265
8275
  if (A[0] & 1) throw A[1];
8266
8276
  return A[1];
8267
- }, trys: [], ops: [] }, P, D, A, B;
8277
+ }, trys: [], ops: [] }, x, D, A, B;
8268
8278
  return B = { next: X(0), throw: X(1), return: X(2) }, typeof Symbol == "function" && (B[Symbol.iterator] = function() {
8269
8279
  return this;
8270
8280
  }), B;
@@ -8274,9 +8284,9 @@ function wu() {
8274
8284
  };
8275
8285
  }
8276
8286
  function ie(k) {
8277
- if (P) throw new TypeError("Generator is already executing.");
8287
+ if (x) throw new TypeError("Generator is already executing.");
8278
8288
  for (; E; ) try {
8279
- if (P = 1, D && (A = k[0] & 2 ? D.return : k[0] ? D.throw || ((A = D.return) && A.call(D), 0) : D.next) && !(A = A.call(D, k[1])).done) return A;
8289
+ if (x = 1, D && (A = k[0] & 2 ? D.return : k[0] ? D.throw || ((A = D.return) && A.call(D), 0) : D.next) && !(A = A.call(D, k[1])).done) return A;
8280
8290
  switch (D = 0, A && (k = [k[0] & 2, A.value]), k[0]) {
8281
8291
  case 0:
8282
8292
  case 1:
@@ -8314,7 +8324,7 @@ function wu() {
8314
8324
  } catch (te) {
8315
8325
  k = [6, te], D = 0;
8316
8326
  } finally {
8317
- P = A = 0;
8327
+ x = A = 0;
8318
8328
  }
8319
8329
  if (k[0] & 5) throw k[1];
8320
8330
  return { value: k[0] ? k[1] : void 0, done: !0 };
@@ -8325,17 +8335,17 @@ function wu() {
8325
8335
  var T, E = JSON.stringify(b);
8326
8336
  if (!b.forceScriptReload && (T = l[E], T))
8327
8337
  return T;
8328
- var P = document.createElement("script"), D = b.dataAttributes || {}, A = b.container || document.head;
8329
- return P.src = b.src, P.id = b.id || "", P.async = !0, b.type && P.setAttribute("type", "".concat(b.type)), b.crossorigin && P.setAttribute("crossorigin", "".concat(b.crossorigin)), Object.keys(D).forEach(function(B) {
8330
- P.setAttribute("data-".concat(B), "".concat(D[B]));
8338
+ var x = document.createElement("script"), D = b.dataAttributes || {}, A = b.container || document.head;
8339
+ return x.src = b.src, x.id = b.id || "", x.async = !0, b.type && x.setAttribute("type", "".concat(b.type)), b.crossorigin && x.setAttribute("crossorigin", "".concat(b.crossorigin)), Object.keys(D).forEach(function(B) {
8340
+ x.setAttribute("data-".concat(B), "".concat(D[B]));
8331
8341
  }), T = new Promise(function(B, X) {
8332
- P.addEventListener("load", function() {
8333
- B(P);
8334
- }), P.addEventListener("error", function() {
8342
+ x.addEventListener("load", function() {
8343
+ B(x);
8344
+ }), x.addEventListener("error", function() {
8335
8345
  X(new Error("".concat(b.src, " failed to load.")));
8336
- }), P.addEventListener("abort", function() {
8346
+ }), x.addEventListener("abort", function() {
8337
8347
  X(new Error("".concat(b.src, " has aborted.")));
8338
- }), A.appendChild(P);
8348
+ }), A.appendChild(x);
8339
8349
  }), l[E] = T, T;
8340
8350
  }
8341
8351
  d.clearCache = function() {
@@ -8346,8 +8356,8 @@ function wu() {
8346
8356
  if (E)
8347
8357
  return Promise.resolve(E);
8348
8358
  E = document.createElement("link");
8349
- var P = T.container || document.head;
8350
- return E.setAttribute("rel", "stylesheet"), E.setAttribute("type", "text/css"), E.setAttribute("href", T.href), E.setAttribute("id", T.id), P.firstChild ? P.insertBefore(E, P.firstChild) : P.appendChild(E), Promise.resolve(E);
8359
+ var x = T.container || document.head;
8360
+ return E.setAttribute("rel", "stylesheet"), E.setAttribute("type", "text/css"), E.setAttribute("href", T.href), E.setAttribute("id", T.id), x.firstChild ? x.insertBefore(E, x.firstChild) : x.appendChild(E), Promise.resolve(E);
8351
8361
  };
8352
8362
  Object.defineProperty(c, "__esModule", { value: !0 }), c.loadStylesheet = f = c.loadScript = void 0;
8353
8363
  var p = u, f = c.loadScript = p, m = h;
@@ -8360,7 +8370,7 @@ function wu() {
8360
8370
  AXO_ASSET_PATH: O,
8361
8371
  LOCALE_PATH: L,
8362
8372
  CDNX_PROD: v
8363
- }, x = {
8373
+ }, P = {
8364
8374
  BT: "BT",
8365
8375
  PPCP: "PPCP"
8366
8376
  };
@@ -8371,12 +8381,12 @@ function wu() {
8371
8381
  return N() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
8372
8382
  }
8373
8383
  function U(b, T, E) {
8374
- var P, D;
8384
+ var x, D;
8375
8385
  return E === void 0 && (E = !0), s(this, void 0, void 0, function() {
8376
8386
  var A, B;
8377
8387
  return o(this, function(X) {
8378
8388
  if (A = $(), A && A[b.module]) {
8379
- if (T && ((P = A[b.module]) === null || P === void 0 ? void 0 : P.VERSION) !== T)
8389
+ if (T && ((x = A[b.module]) === null || x === void 0 ? void 0 : x.VERSION) !== T)
8380
8390
  throw B = (D = A[b.module]) === null || D === void 0 ? void 0 : D.VERSION, new Error("".concat(b.module, " already loaded with version ").concat(B, " cannot load version ").concat(T));
8381
8391
  return [2, !0];
8382
8392
  }
@@ -8388,9 +8398,9 @@ function wu() {
8388
8398
  }
8389
8399
  function Y(b, T, E) {
8390
8400
  if (E === void 0 && (E = !0), N()) {
8391
- var P = E ? b.amdModule.minified : b.amdModule.unminified;
8401
+ var x = E ? b.amdModule.minified : b.amdModule.unminified;
8392
8402
  return new Promise(function(A, B) {
8393
- window.require([P], A, B);
8403
+ window.require([x], A, B);
8394
8404
  });
8395
8405
  }
8396
8406
  var D = E ? b.script.minified : b.script.unminified;
@@ -8430,21 +8440,21 @@ function wu() {
8430
8440
  }, z);
8431
8441
  function K(b) {
8432
8442
  return s(this, void 0, void 0, function() {
8433
- var T, E, P, D;
8443
+ var T, E, x, D;
8434
8444
  return o(this, function(A) {
8435
8445
  switch (A.label) {
8436
8446
  case 0:
8437
- return performance.mark("pp_axo_sdk_init_invoked"), T = b.btSdkVersion, E = b.minified, P = R(b), D = V(b), b.platform !== x.BT ? [3, 2] : [4, Promise.all([
8447
+ return performance.mark("pp_axo_sdk_init_invoked"), T = b.btSdkVersion, E = b.minified, x = R(b), D = V(b), b.platform !== P.BT ? [3, 2] : [4, Promise.all([
8438
8448
  U(q.hostedFields, T, E),
8439
- _(P, E)
8449
+ _(x, E)
8440
8450
  ])];
8441
8451
  case 1:
8442
8452
  return A.sent(), [3, 5];
8443
8453
  case 2:
8444
- return b.platform !== x.PPCP ? [3, 4] : [4, Promise.all([
8454
+ return b.platform !== P.PPCP ? [3, 4] : [4, Promise.all([
8445
8455
  U(q.client, T, E),
8446
8456
  U(q.hostedFields, T, E),
8447
- _(P, E)
8457
+ _(x, E)
8448
8458
  ])];
8449
8459
  case 3:
8450
8460
  return A.sent(), [3, 5];
@@ -8462,9 +8472,9 @@ function wu() {
8462
8472
  S() && requirejs.config({
8463
8473
  paths: (E = {}, E[w] = b, E)
8464
8474
  });
8465
- var P = "".concat(w, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
8475
+ var x = "".concat(w, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
8466
8476
  return new Promise(function(D, A) {
8467
- window.require([P], D, A);
8477
+ window.require([x], D, A);
8468
8478
  });
8469
8479
  }
8470
8480
  return f({
@@ -8478,9 +8488,9 @@ function wu() {
8478
8488
  return E ? "https://cdn-".concat(E, ".static.engineering.dev.paypalinc.com/").concat(T) : "".concat(I.CDNX_PROD, "/").concat(T);
8479
8489
  }
8480
8490
  function R(b) {
8481
- var T, E = (b == null ? void 0 : b.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, P = N() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(E, ".js");
8491
+ var T, E = (b == null ? void 0 : b.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, x = N() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(E, ".js");
8482
8492
  return g({
8483
- assetUrl: P,
8493
+ assetUrl: x,
8484
8494
  bundleId: (T = b == null ? void 0 : b.metadata) === null || T === void 0 ? void 0 : T.bundleIdOverride
8485
8495
  });
8486
8496
  }
@@ -8494,7 +8504,7 @@ function wu() {
8494
8504
  i.constants = I, i.loadAxo = K;
8495
8505
  });
8496
8506
  }, {}], 9: [function(e, r, a) {
8497
- var i = e("./constants").BRAINTREE_VERSION, s = e("./request/graphql"), o = e("./request"), c = e("../lib/is-verified-domain"), l = e("../lib/braintree-error"), d = e("../lib/convert-to-braintree-error"), u = e("./get-configuration").getConfiguration, h = e("../lib/create-authorization-data"), p = e("../lib/add-metadata"), f = e("@braintree/wrap-promise"), m = e("../lib/once"), v = e("../lib/deferred"), y = e("../lib/assign").assign, w = e("../lib/analytics"), O = e("./errors"), L = e("../lib/constants").VERSION, I = e("../lib/constants").GRAPHQL_URLS, x = e("../lib/methods"), N = e("../lib/convert-methods-to-error"), S = e("../lib/assets"), U = e("../lib/constants").FRAUDNET_FNCLS, Y = e("../lib/constants").FRAUDNET_SOURCE, $ = e("../lib/constants").FRAUDNET_URL, F = {};
8507
+ var i = e("./constants").BRAINTREE_VERSION, s = e("./request/graphql"), o = e("./request"), c = e("../lib/is-verified-domain"), l = e("../lib/braintree-error"), d = e("../lib/convert-to-braintree-error"), u = e("./get-configuration").getConfiguration, h = e("../lib/create-authorization-data"), p = e("../lib/add-metadata"), f = e("@braintree/wrap-promise"), m = e("../lib/once"), v = e("../lib/deferred"), y = e("../lib/assign").assign, w = e("../lib/analytics"), O = e("./errors"), L = e("../lib/constants").VERSION, I = e("../lib/constants").GRAPHQL_URLS, P = e("../lib/methods"), N = e("../lib/convert-methods-to-error"), S = e("../lib/assets"), U = e("../lib/constants").FRAUDNET_FNCLS, Y = e("../lib/constants").FRAUDNET_SOURCE, $ = e("../lib/constants").FRAUDNET_URL, F = {};
8498
8508
  function z(M) {
8499
8509
  var q, K;
8500
8510
  if (M = M || {}, q = JSON.stringify(M), K = M.gatewayConfiguration, !K)
@@ -8559,7 +8569,7 @@ function wu() {
8559
8569
  }, q.text = JSON.stringify(R);
8560
8570
  }, z.prototype.request = function(M, q) {
8561
8571
  var K = this, _ = new Promise(function(g, R) {
8562
- var V, b, T, E, P = !!(M.endpoint === "payment_methods/credit_cards" && K.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);
8572
+ var V, b, T, E, x = !!(M.endpoint === "payment_methods/credit_cards" && K.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);
8563
8573
  if (M.api !== "graphQLApi" && (M.method ? M.endpoint || (V = "options.endpoint") : V = "options.method"), V)
8564
8574
  throw new l({
8565
8575
  type: O.CLIENT_OPTION_REQUIRED.type,
@@ -8615,7 +8625,7 @@ function wu() {
8615
8625
  );
8616
8626
  return;
8617
8627
  }
8618
- X = y({ _httpStatus: B }, A), P && X.creditCards && X.creditCards.length > 0 && (K._findOrCreateFraudnetJSON(X.creditCards[0].nonce), S.loadScript({
8628
+ X = y({ _httpStatus: B }, A), x && X.creditCards && X.creditCards.length > 0 && (K._findOrCreateFraudnetJSON(X.creditCards[0].nonce), S.loadScript({
8619
8629
  src: $,
8620
8630
  forceScriptReload: !0
8621
8631
  })), g(X);
@@ -8647,7 +8657,7 @@ function wu() {
8647
8657
  return L;
8648
8658
  }, z.prototype.teardown = f(function() {
8649
8659
  var M = this;
8650
- return delete F[M.getConfiguration().authorization], N(M, x(z.prototype)), Promise.resolve();
8660
+ return delete F[M.getConfiguration().authorization], N(M, P(z.prototype)), Promise.resolve();
8651
8661
  });
8652
8662
  function ee(M) {
8653
8663
  var q = M.authorizationFingerprint || M.authorization;
@@ -8726,7 +8736,7 @@ function wu() {
8726
8736
  var i = e("../lib/braintree-error"), s = e("@braintree/wrap-promise"), o = e("./request"), c = e("@braintree/uuid"), l = e("../lib/constants"), d = e("./errors"), u = e("./request/graphql"), h = e("../lib/constants").GRAPHQL_URLS, p = e("../lib/is-date-string-before-or-on"), f = e("./constants").BRAINTREE_VERSION;
8727
8737
  function m(v, y) {
8728
8738
  return new Promise(function(w, O) {
8729
- var L, I, x, N, S = y || c(), U = {
8739
+ var L, I, P, N, S = y || c(), U = {
8730
8740
  merchantAppId: window.location.host,
8731
8741
  platform: l.PLATFORM,
8732
8742
  sdkVersion: l.VERSION,
@@ -8736,8 +8746,8 @@ function wu() {
8736
8746
  integrationType: l.INTEGRATION,
8737
8747
  sessionId: S
8738
8748
  };
8739
- I = v.attrs, x = v.configUrl, I._meta = U, I.braintreeLibraryVersion = l.BRAINTREE_LIBRARY_VERSION, I.configVersion = "3", N = {
8740
- url: x,
8749
+ I = v.attrs, P = v.configUrl, I._meta = U, I.braintreeLibraryVersion = l.BRAINTREE_LIBRARY_VERSION, I.configVersion = "3", N = {
8750
+ url: P,
8741
8751
  method: "GET",
8742
8752
  data: I
8743
8753
  }, I.authorizationFingerprint && v.graphQL ? (p(v.graphQL.date, f) && (N.graphQL = new u({
@@ -8806,7 +8816,7 @@ function wu() {
8806
8816
  return L === "UNKNOWN" || L === "INTERNAL";
8807
8817
  }
8808
8818
  function y(O, L, I) {
8809
- var x, N, S, U, Y, $, F, z = O.url, j = O.graphQL, ee = O.timeout, M = l.getRequestObject(), q = I, K = !!(j && j.isGraphQLRequest(z, O.data));
8819
+ var P, N, S, U, Y, $, F, z = O.url, j = O.graphQL, ee = O.timeout, M = l.getRequestObject(), q = I, K = !!(j && j.isGraphQLRequest(z, O.data));
8810
8820
  O.headers = s(
8811
8821
  { "Content-Type": "application/json" },
8812
8822
  O.headers
@@ -8816,18 +8826,18 @@ function wu() {
8816
8826
  delete O.graphQL, y(O, L, I);
8817
8827
  return;
8818
8828
  }
8819
- if (F = c(M.responseText), N = S.adaptResponseBody(F), x = S.determineStatus(M.status, F), x >= 400 || x < 200) {
8829
+ if (F = c(M.responseText), N = S.adaptResponseBody(F), P = S.determineStatus(M.status, F), P >= 400 || P < 200) {
8820
8830
  if (K && v(F)) {
8821
8831
  delete O.graphQL, y(O, L, I);
8822
8832
  return;
8823
8833
  }
8824
- if (L < p && m(x)) {
8834
+ if (L < p && m(P)) {
8825
8835
  L++, y(O, L, I);
8826
8836
  return;
8827
8837
  }
8828
- q(N || "error", null, x || 500);
8838
+ q(N || "error", null, P || 500);
8829
8839
  } else
8830
- q(null, N, x);
8840
+ q(null, N, P);
8831
8841
  }
8832
8842
  } : (O.headers && (z = i.queryify(z, $)), M.onload = function() {
8833
8843
  q(null, c(M.responseText), M.status);
@@ -9334,8 +9344,8 @@ function wu() {
9334
9344
  },
9335
9345
  configuration: p
9336
9346
  }, v = {
9337
- "payment_methods/credit_cards": function(L, I, x) {
9338
- return x ? u(L, I) : d(L, I);
9347
+ "payment_methods/credit_cards": function(L, I, P) {
9348
+ return P ? u(L, I) : d(L, I);
9339
9349
  },
9340
9350
  configuration: f
9341
9351
  };
@@ -9354,11 +9364,11 @@ function wu() {
9354
9364
  L,
9355
9365
  // Since this is used for all GQL requests, we only want this if it's a Fastlane Tokenization request
9356
9366
  c(this._data.creditCard)
9357
- ), x = s(
9367
+ ), P = s(
9358
9368
  { clientSdkMetadata: this._clientSdkMetadata },
9359
9369
  I
9360
9370
  );
9361
- return JSON.stringify(x);
9371
+ return JSON.stringify(P);
9362
9372
  }, y.prototype.getMethod = function() {
9363
9373
  return "POST";
9364
9374
  }, y.prototype.getHeaders = function() {
@@ -9375,17 +9385,17 @@ function wu() {
9375
9385
  "creditCard" in this._data && c(this._data.creditCard)
9376
9386
  );
9377
9387
  }, y.prototype.determineStatus = function(L, I) {
9378
- var x, N;
9379
- return L === 200 ? (N = I.errors && I.errors[0] && I.errors[0].extensions && I.errors[0].extensions.errorClass, I.data && !I.errors ? x = 200 : N === "VALIDATION" ? x = 422 : N === "AUTHORIZATION" ? x = 403 : N === "AUTHENTICATION" ? x = 401 : w(N, I) ? x = 403 : x = 500) : L ? x = L : x = 500, this._sendAnalyticsEvent("graphql.status." + L), this._sendAnalyticsEvent("graphql.determinedStatus." + x), x;
9388
+ var P, N;
9389
+ return L === 200 ? (N = I.errors && I.errors[0] && I.errors[0].extensions && I.errors[0].extensions.errorClass, I.data && !I.errors ? P = 200 : N === "VALIDATION" ? P = 422 : N === "AUTHORIZATION" ? P = 403 : N === "AUTHENTICATION" ? P = 401 : w(N, I) ? P = 403 : P = 500) : L ? P = L : P = 500, this._sendAnalyticsEvent("graphql.status." + L), this._sendAnalyticsEvent("graphql.determinedStatus." + P), P;
9380
9390
  };
9381
9391
  function w(L, I) {
9382
9392
  return !L && I.errors[0].message;
9383
9393
  }
9384
9394
  function O(L) {
9385
9395
  var I = {};
9386
- return Object.keys(L).forEach(function(x) {
9387
- var N = o(x);
9388
- typeof L[x] == "object" ? I[N] = O(L[x]) : typeof L[x] == "number" ? I[N] = String(L[x]) : I[N] = L[x];
9396
+ return Object.keys(L).forEach(function(P) {
9397
+ var N = o(P);
9398
+ typeof L[P] == "object" ? I[N] = O(L[P]) : typeof L[P] == "number" ? I[N] = String(L[P]) : I[N] = L[P];
9389
9399
  }), I;
9390
9400
  }
9391
9401
  r.exports = y;
@@ -9462,11 +9472,11 @@ function wu() {
9462
9472
  function l(u, h, p, f) {
9463
9473
  var m = Date.now();
9464
9474
  return p.flow === "vault" ? p.context_type = "BA_Token" : p.flow === "checkout" && (p.context_type = "EC_Token"), Promise.resolve(u).then(function(v) {
9465
- var y = v._request, w = i.ANALYTICS_URL, O = i.ANALYTICS_PREFIX + h, L = v.getConfiguration(), I = L.gatewayConfiguration.environment === "production", x = {
9475
+ var y = v._request, w = i.ANALYTICS_URL, O = i.ANALYTICS_PREFIX + h, L = v.getConfiguration(), I = L.gatewayConfiguration.environment === "production", P = {
9466
9476
  events: [],
9467
9477
  tracking: []
9468
- }, N = s.addEventMetadata(v, x);
9469
- return N.event_name = O, N.t = m, x.events = [
9478
+ }, N = s.addEventMetadata(v, P);
9479
+ return N.event_name = O, N.t = m, P.events = [
9470
9480
  {
9471
9481
  level: "info",
9472
9482
  event: O,
@@ -9478,11 +9488,11 @@ function wu() {
9478
9488
  p
9479
9489
  )
9480
9490
  }
9481
- ], x.tracking = [N], p && typeof p == "object" && (x.tracking = [d(N, p)]), y(
9491
+ ], P.tracking = [N], p && typeof p == "object" && (P.tracking = [d(N, p)]), y(
9482
9492
  {
9483
9493
  url: w,
9484
9494
  method: "post",
9485
- data: x,
9495
+ data: P,
9486
9496
  timeout: i.ANALYTICS_REQUEST_TIMEOUT_MS
9487
9497
  },
9488
9498
  f
@@ -9902,7 +9912,7 @@ function Ou() {
9902
9912
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
9903
9913
  PERFORMANCE OF THIS SOFTWARE.
9904
9914
  ***************************************************************************** */
9905
- function s(b, T, E, P) {
9915
+ function s(b, T, E, x) {
9906
9916
  function D(A) {
9907
9917
  return A instanceof E ? A : new E(function(B) {
9908
9918
  B(A);
@@ -9911,14 +9921,14 @@ function Ou() {
9911
9921
  return new (E || (E = Promise))(function(A, B) {
9912
9922
  function X(te) {
9913
9923
  try {
9914
- k(P.next(te));
9924
+ k(x.next(te));
9915
9925
  } catch (ye) {
9916
9926
  B(ye);
9917
9927
  }
9918
9928
  }
9919
9929
  function ie(te) {
9920
9930
  try {
9921
- k(P.throw(te));
9931
+ k(x.throw(te));
9922
9932
  } catch (ye) {
9923
9933
  B(ye);
9924
9934
  }
@@ -9926,14 +9936,14 @@ function Ou() {
9926
9936
  function k(te) {
9927
9937
  te.done ? A(te.value) : D(te.value).then(X, ie);
9928
9938
  }
9929
- k((P = P.apply(b, [])).next());
9939
+ k((x = x.apply(b, [])).next());
9930
9940
  });
9931
9941
  }
9932
9942
  function o(b, T) {
9933
9943
  var E = { label: 0, sent: function() {
9934
9944
  if (A[0] & 1) throw A[1];
9935
9945
  return A[1];
9936
- }, trys: [], ops: [] }, P, D, A, B;
9946
+ }, trys: [], ops: [] }, x, D, A, B;
9937
9947
  return B = { next: X(0), throw: X(1), return: X(2) }, typeof Symbol == "function" && (B[Symbol.iterator] = function() {
9938
9948
  return this;
9939
9949
  }), B;
@@ -9943,9 +9953,9 @@ function Ou() {
9943
9953
  };
9944
9954
  }
9945
9955
  function ie(k) {
9946
- if (P) throw new TypeError("Generator is already executing.");
9956
+ if (x) throw new TypeError("Generator is already executing.");
9947
9957
  for (; E; ) try {
9948
- if (P = 1, D && (A = k[0] & 2 ? D.return : k[0] ? D.throw || ((A = D.return) && A.call(D), 0) : D.next) && !(A = A.call(D, k[1])).done) return A;
9958
+ if (x = 1, D && (A = k[0] & 2 ? D.return : k[0] ? D.throw || ((A = D.return) && A.call(D), 0) : D.next) && !(A = A.call(D, k[1])).done) return A;
9949
9959
  switch (D = 0, A && (k = [k[0] & 2, A.value]), k[0]) {
9950
9960
  case 0:
9951
9961
  case 1:
@@ -9983,7 +9993,7 @@ function Ou() {
9983
9993
  } catch (te) {
9984
9994
  k = [6, te], D = 0;
9985
9995
  } finally {
9986
- P = A = 0;
9996
+ x = A = 0;
9987
9997
  }
9988
9998
  if (k[0] & 5) throw k[1];
9989
9999
  return { value: k[0] ? k[1] : void 0, done: !0 };
@@ -9994,17 +10004,17 @@ function Ou() {
9994
10004
  var T, E = JSON.stringify(b);
9995
10005
  if (!b.forceScriptReload && (T = l[E], T))
9996
10006
  return T;
9997
- var P = document.createElement("script"), D = b.dataAttributes || {}, A = b.container || document.head;
9998
- return P.src = b.src, P.id = b.id || "", P.async = !0, b.type && P.setAttribute("type", "".concat(b.type)), b.crossorigin && P.setAttribute("crossorigin", "".concat(b.crossorigin)), Object.keys(D).forEach(function(B) {
9999
- P.setAttribute("data-".concat(B), "".concat(D[B]));
10007
+ var x = document.createElement("script"), D = b.dataAttributes || {}, A = b.container || document.head;
10008
+ return x.src = b.src, x.id = b.id || "", x.async = !0, b.type && x.setAttribute("type", "".concat(b.type)), b.crossorigin && x.setAttribute("crossorigin", "".concat(b.crossorigin)), Object.keys(D).forEach(function(B) {
10009
+ x.setAttribute("data-".concat(B), "".concat(D[B]));
10000
10010
  }), T = new Promise(function(B, X) {
10001
- P.addEventListener("load", function() {
10002
- B(P);
10003
- }), P.addEventListener("error", function() {
10011
+ x.addEventListener("load", function() {
10012
+ B(x);
10013
+ }), x.addEventListener("error", function() {
10004
10014
  X(new Error("".concat(b.src, " failed to load.")));
10005
- }), P.addEventListener("abort", function() {
10015
+ }), x.addEventListener("abort", function() {
10006
10016
  X(new Error("".concat(b.src, " has aborted.")));
10007
- }), A.appendChild(P);
10017
+ }), A.appendChild(x);
10008
10018
  }), l[E] = T, T;
10009
10019
  }
10010
10020
  d.clearCache = function() {
@@ -10015,8 +10025,8 @@ function Ou() {
10015
10025
  if (E)
10016
10026
  return Promise.resolve(E);
10017
10027
  E = document.createElement("link");
10018
- var P = T.container || document.head;
10019
- return E.setAttribute("rel", "stylesheet"), E.setAttribute("type", "text/css"), E.setAttribute("href", T.href), E.setAttribute("id", T.id), P.firstChild ? P.insertBefore(E, P.firstChild) : P.appendChild(E), Promise.resolve(E);
10028
+ var x = T.container || document.head;
10029
+ return E.setAttribute("rel", "stylesheet"), E.setAttribute("type", "text/css"), E.setAttribute("href", T.href), E.setAttribute("id", T.id), x.firstChild ? x.insertBefore(E, x.firstChild) : x.appendChild(E), Promise.resolve(E);
10020
10030
  };
10021
10031
  Object.defineProperty(c, "__esModule", { value: !0 }), c.loadStylesheet = f = c.loadScript = void 0;
10022
10032
  var p = u, f = c.loadScript = p, m = h;
@@ -10029,7 +10039,7 @@ function Ou() {
10029
10039
  AXO_ASSET_PATH: O,
10030
10040
  LOCALE_PATH: L,
10031
10041
  CDNX_PROD: v
10032
- }, x = {
10042
+ }, P = {
10033
10043
  BT: "BT",
10034
10044
  PPCP: "PPCP"
10035
10045
  };
@@ -10040,12 +10050,12 @@ function Ou() {
10040
10050
  return N() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
10041
10051
  }
10042
10052
  function U(b, T, E) {
10043
- var P, D;
10053
+ var x, D;
10044
10054
  return E === void 0 && (E = !0), s(this, void 0, void 0, function() {
10045
10055
  var A, B;
10046
10056
  return o(this, function(X) {
10047
10057
  if (A = $(), A && A[b.module]) {
10048
- if (T && ((P = A[b.module]) === null || P === void 0 ? void 0 : P.VERSION) !== T)
10058
+ if (T && ((x = A[b.module]) === null || x === void 0 ? void 0 : x.VERSION) !== T)
10049
10059
  throw B = (D = A[b.module]) === null || D === void 0 ? void 0 : D.VERSION, new Error("".concat(b.module, " already loaded with version ").concat(B, " cannot load version ").concat(T));
10050
10060
  return [2, !0];
10051
10061
  }
@@ -10057,9 +10067,9 @@ function Ou() {
10057
10067
  }
10058
10068
  function Y(b, T, E) {
10059
10069
  if (E === void 0 && (E = !0), N()) {
10060
- var P = E ? b.amdModule.minified : b.amdModule.unminified;
10070
+ var x = E ? b.amdModule.minified : b.amdModule.unminified;
10061
10071
  return new Promise(function(A, B) {
10062
- window.require([P], A, B);
10072
+ window.require([x], A, B);
10063
10073
  });
10064
10074
  }
10065
10075
  var D = E ? b.script.minified : b.script.unminified;
@@ -10099,21 +10109,21 @@ function Ou() {
10099
10109
  }, z);
10100
10110
  function K(b) {
10101
10111
  return s(this, void 0, void 0, function() {
10102
- var T, E, P, D;
10112
+ var T, E, x, D;
10103
10113
  return o(this, function(A) {
10104
10114
  switch (A.label) {
10105
10115
  case 0:
10106
- return performance.mark("pp_axo_sdk_init_invoked"), T = b.btSdkVersion, E = b.minified, P = R(b), D = V(b), b.platform !== x.BT ? [3, 2] : [4, Promise.all([
10116
+ return performance.mark("pp_axo_sdk_init_invoked"), T = b.btSdkVersion, E = b.minified, x = R(b), D = V(b), b.platform !== P.BT ? [3, 2] : [4, Promise.all([
10107
10117
  U(q.hostedFields, T, E),
10108
- _(P, E)
10118
+ _(x, E)
10109
10119
  ])];
10110
10120
  case 1:
10111
10121
  return A.sent(), [3, 5];
10112
10122
  case 2:
10113
- return b.platform !== x.PPCP ? [3, 4] : [4, Promise.all([
10123
+ return b.platform !== P.PPCP ? [3, 4] : [4, Promise.all([
10114
10124
  U(q.client, T, E),
10115
10125
  U(q.hostedFields, T, E),
10116
- _(P, E)
10126
+ _(x, E)
10117
10127
  ])];
10118
10128
  case 3:
10119
10129
  return A.sent(), [3, 5];
@@ -10131,9 +10141,9 @@ function Ou() {
10131
10141
  S() && requirejs.config({
10132
10142
  paths: (E = {}, E[w] = b, E)
10133
10143
  });
10134
- var P = "".concat(w, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
10144
+ var x = "".concat(w, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
10135
10145
  return new Promise(function(D, A) {
10136
- window.require([P], D, A);
10146
+ window.require([x], D, A);
10137
10147
  });
10138
10148
  }
10139
10149
  return f({
@@ -10147,9 +10157,9 @@ function Ou() {
10147
10157
  return E ? "https://cdn-".concat(E, ".static.engineering.dev.paypalinc.com/").concat(T) : "".concat(I.CDNX_PROD, "/").concat(T);
10148
10158
  }
10149
10159
  function R(b) {
10150
- var T, E = (b == null ? void 0 : b.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, P = N() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(E, ".js");
10160
+ var T, E = (b == null ? void 0 : b.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, x = N() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(E, ".js");
10151
10161
  return g({
10152
- assetUrl: P,
10162
+ assetUrl: x,
10153
10163
  bundleId: (T = b == null ? void 0 : b.metadata) === null || T === void 0 ? void 0 : T.bundleIdOverride
10154
10164
  });
10155
10165
  }
@@ -10207,13 +10217,13 @@ function Ou() {
10207
10217
  return "https://b.stats.paypal.com/counter.cgi?i=127.0.0.1&p=" + y + "&t=" + w + "&a=14";
10208
10218
  }
10209
10219
  function v(y, w, O, L) {
10210
- var I = document.body.appendChild(document.createElement("script")), x = {
10220
+ var I = document.body.appendChild(document.createElement("script")), P = {
10211
10221
  f: y,
10212
10222
  s,
10213
10223
  b: w,
10214
10224
  cb1: L
10215
10225
  };
10216
- return O !== "production" && (x.sandbox = !0), I.type = "application/json", I.setAttribute("fncls", i), I.text = JSON.stringify(x), I;
10226
+ return O !== "production" && (P.sandbox = !0), I.type = "application/json", I.setAttribute("fncls", i), I.text = JSON.stringify(P), I;
10217
10227
  }
10218
10228
  r.exports = {
10219
10229
  setup: u,
@@ -10236,8 +10246,8 @@ function Ou() {
10236
10246
  debug: w.debug,
10237
10247
  assetsUrl: l.create(w.authorization),
10238
10248
  name: O
10239
- }).then(function(x) {
10240
- var N = x.getConfiguration();
10249
+ }).then(function(P) {
10250
+ var N = P.getConfiguration();
10241
10251
  return i.setup({
10242
10252
  sessionId: w.riskCorrelationId || w.clientMetadataId || w.correlationId,
10243
10253
  clientSessionId: N.analyticsMetadata.sessionId,
@@ -10461,7 +10471,7 @@ function Ou() {
10461
10471
  var Nu = Ou();
10462
10472
  const Lu = /* @__PURE__ */ wn(Nu);
10463
10473
  var Dt = { exports: {} }, _r;
10464
- function Pu() {
10474
+ function xu() {
10465
10475
  return _r || (_r = 1, function(n, t) {
10466
10476
  (function(e) {
10467
10477
  n.exports = e();
@@ -10819,7 +10829,7 @@ function Pu() {
10819
10829
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
10820
10830
  PERFORMANCE OF THIS SOFTWARE.
10821
10831
  ***************************************************************************** */
10822
- function s(b, T, E, P) {
10832
+ function s(b, T, E, x) {
10823
10833
  function D(A) {
10824
10834
  return A instanceof E ? A : new E(function(B) {
10825
10835
  B(A);
@@ -10828,14 +10838,14 @@ function Pu() {
10828
10838
  return new (E || (E = Promise))(function(A, B) {
10829
10839
  function X(te) {
10830
10840
  try {
10831
- k(P.next(te));
10841
+ k(x.next(te));
10832
10842
  } catch (ye) {
10833
10843
  B(ye);
10834
10844
  }
10835
10845
  }
10836
10846
  function ie(te) {
10837
10847
  try {
10838
- k(P.throw(te));
10848
+ k(x.throw(te));
10839
10849
  } catch (ye) {
10840
10850
  B(ye);
10841
10851
  }
@@ -10843,14 +10853,14 @@ function Pu() {
10843
10853
  function k(te) {
10844
10854
  te.done ? A(te.value) : D(te.value).then(X, ie);
10845
10855
  }
10846
- k((P = P.apply(b, [])).next());
10856
+ k((x = x.apply(b, [])).next());
10847
10857
  });
10848
10858
  }
10849
10859
  function o(b, T) {
10850
10860
  var E = { label: 0, sent: function() {
10851
10861
  if (A[0] & 1) throw A[1];
10852
10862
  return A[1];
10853
- }, trys: [], ops: [] }, P, D, A, B;
10863
+ }, trys: [], ops: [] }, x, D, A, B;
10854
10864
  return B = { next: X(0), throw: X(1), return: X(2) }, typeof Symbol == "function" && (B[Symbol.iterator] = function() {
10855
10865
  return this;
10856
10866
  }), B;
@@ -10860,9 +10870,9 @@ function Pu() {
10860
10870
  };
10861
10871
  }
10862
10872
  function ie(k) {
10863
- if (P) throw new TypeError("Generator is already executing.");
10873
+ if (x) throw new TypeError("Generator is already executing.");
10864
10874
  for (; E; ) try {
10865
- if (P = 1, D && (A = k[0] & 2 ? D.return : k[0] ? D.throw || ((A = D.return) && A.call(D), 0) : D.next) && !(A = A.call(D, k[1])).done) return A;
10875
+ if (x = 1, D && (A = k[0] & 2 ? D.return : k[0] ? D.throw || ((A = D.return) && A.call(D), 0) : D.next) && !(A = A.call(D, k[1])).done) return A;
10866
10876
  switch (D = 0, A && (k = [k[0] & 2, A.value]), k[0]) {
10867
10877
  case 0:
10868
10878
  case 1:
@@ -10900,7 +10910,7 @@ function Pu() {
10900
10910
  } catch (te) {
10901
10911
  k = [6, te], D = 0;
10902
10912
  } finally {
10903
- P = A = 0;
10913
+ x = A = 0;
10904
10914
  }
10905
10915
  if (k[0] & 5) throw k[1];
10906
10916
  return { value: k[0] ? k[1] : void 0, done: !0 };
@@ -10911,17 +10921,17 @@ function Pu() {
10911
10921
  var T, E = JSON.stringify(b);
10912
10922
  if (!b.forceScriptReload && (T = l[E], T))
10913
10923
  return T;
10914
- var P = document.createElement("script"), D = b.dataAttributes || {}, A = b.container || document.head;
10915
- return P.src = b.src, P.id = b.id || "", P.async = !0, b.type && P.setAttribute("type", "".concat(b.type)), b.crossorigin && P.setAttribute("crossorigin", "".concat(b.crossorigin)), Object.keys(D).forEach(function(B) {
10916
- P.setAttribute("data-".concat(B), "".concat(D[B]));
10924
+ var x = document.createElement("script"), D = b.dataAttributes || {}, A = b.container || document.head;
10925
+ return x.src = b.src, x.id = b.id || "", x.async = !0, b.type && x.setAttribute("type", "".concat(b.type)), b.crossorigin && x.setAttribute("crossorigin", "".concat(b.crossorigin)), Object.keys(D).forEach(function(B) {
10926
+ x.setAttribute("data-".concat(B), "".concat(D[B]));
10917
10927
  }), T = new Promise(function(B, X) {
10918
- P.addEventListener("load", function() {
10919
- B(P);
10920
- }), P.addEventListener("error", function() {
10928
+ x.addEventListener("load", function() {
10929
+ B(x);
10930
+ }), x.addEventListener("error", function() {
10921
10931
  X(new Error("".concat(b.src, " failed to load.")));
10922
- }), P.addEventListener("abort", function() {
10932
+ }), x.addEventListener("abort", function() {
10923
10933
  X(new Error("".concat(b.src, " has aborted.")));
10924
- }), A.appendChild(P);
10934
+ }), A.appendChild(x);
10925
10935
  }), l[E] = T, T;
10926
10936
  }
10927
10937
  d.clearCache = function() {
@@ -10932,8 +10942,8 @@ function Pu() {
10932
10942
  if (E)
10933
10943
  return Promise.resolve(E);
10934
10944
  E = document.createElement("link");
10935
- var P = T.container || document.head;
10936
- return E.setAttribute("rel", "stylesheet"), E.setAttribute("type", "text/css"), E.setAttribute("href", T.href), E.setAttribute("id", T.id), P.firstChild ? P.insertBefore(E, P.firstChild) : P.appendChild(E), Promise.resolve(E);
10945
+ var x = T.container || document.head;
10946
+ return E.setAttribute("rel", "stylesheet"), E.setAttribute("type", "text/css"), E.setAttribute("href", T.href), E.setAttribute("id", T.id), x.firstChild ? x.insertBefore(E, x.firstChild) : x.appendChild(E), Promise.resolve(E);
10937
10947
  };
10938
10948
  Object.defineProperty(c, "__esModule", { value: !0 }), c.loadStylesheet = f = c.loadScript = void 0;
10939
10949
  var p = u, f = c.loadScript = p, m = h;
@@ -10946,7 +10956,7 @@ function Pu() {
10946
10956
  AXO_ASSET_PATH: O,
10947
10957
  LOCALE_PATH: L,
10948
10958
  CDNX_PROD: v
10949
- }, x = {
10959
+ }, P = {
10950
10960
  BT: "BT",
10951
10961
  PPCP: "PPCP"
10952
10962
  };
@@ -10957,12 +10967,12 @@ function Pu() {
10957
10967
  return N() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
10958
10968
  }
10959
10969
  function U(b, T, E) {
10960
- var P, D;
10970
+ var x, D;
10961
10971
  return E === void 0 && (E = !0), s(this, void 0, void 0, function() {
10962
10972
  var A, B;
10963
10973
  return o(this, function(X) {
10964
10974
  if (A = $(), A && A[b.module]) {
10965
- if (T && ((P = A[b.module]) === null || P === void 0 ? void 0 : P.VERSION) !== T)
10975
+ if (T && ((x = A[b.module]) === null || x === void 0 ? void 0 : x.VERSION) !== T)
10966
10976
  throw B = (D = A[b.module]) === null || D === void 0 ? void 0 : D.VERSION, new Error("".concat(b.module, " already loaded with version ").concat(B, " cannot load version ").concat(T));
10967
10977
  return [2, !0];
10968
10978
  }
@@ -10974,9 +10984,9 @@ function Pu() {
10974
10984
  }
10975
10985
  function Y(b, T, E) {
10976
10986
  if (E === void 0 && (E = !0), N()) {
10977
- var P = E ? b.amdModule.minified : b.amdModule.unminified;
10987
+ var x = E ? b.amdModule.minified : b.amdModule.unminified;
10978
10988
  return new Promise(function(A, B) {
10979
- window.require([P], A, B);
10989
+ window.require([x], A, B);
10980
10990
  });
10981
10991
  }
10982
10992
  var D = E ? b.script.minified : b.script.unminified;
@@ -11016,21 +11026,21 @@ function Pu() {
11016
11026
  }, z);
11017
11027
  function K(b) {
11018
11028
  return s(this, void 0, void 0, function() {
11019
- var T, E, P, D;
11029
+ var T, E, x, D;
11020
11030
  return o(this, function(A) {
11021
11031
  switch (A.label) {
11022
11032
  case 0:
11023
- return performance.mark("pp_axo_sdk_init_invoked"), T = b.btSdkVersion, E = b.minified, P = R(b), D = V(b), b.platform !== x.BT ? [3, 2] : [4, Promise.all([
11033
+ return performance.mark("pp_axo_sdk_init_invoked"), T = b.btSdkVersion, E = b.minified, x = R(b), D = V(b), b.platform !== P.BT ? [3, 2] : [4, Promise.all([
11024
11034
  U(q.hostedFields, T, E),
11025
- _(P, E)
11035
+ _(x, E)
11026
11036
  ])];
11027
11037
  case 1:
11028
11038
  return A.sent(), [3, 5];
11029
11039
  case 2:
11030
- return b.platform !== x.PPCP ? [3, 4] : [4, Promise.all([
11040
+ return b.platform !== P.PPCP ? [3, 4] : [4, Promise.all([
11031
11041
  U(q.client, T, E),
11032
11042
  U(q.hostedFields, T, E),
11033
- _(P, E)
11043
+ _(x, E)
11034
11044
  ])];
11035
11045
  case 3:
11036
11046
  return A.sent(), [3, 5];
@@ -11048,9 +11058,9 @@ function Pu() {
11048
11058
  S() && requirejs.config({
11049
11059
  paths: (E = {}, E[w] = b, E)
11050
11060
  });
11051
- var P = "".concat(w, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
11061
+ var x = "".concat(w, "/").concat(T ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified);
11052
11062
  return new Promise(function(D, A) {
11053
- window.require([P], D, A);
11063
+ window.require([x], D, A);
11054
11064
  });
11055
11065
  }
11056
11066
  return f({
@@ -11064,9 +11074,9 @@ function Pu() {
11064
11074
  return E ? "https://cdn-".concat(E, ".static.engineering.dev.paypalinc.com/").concat(T) : "".concat(I.CDNX_PROD, "/").concat(T);
11065
11075
  }
11066
11076
  function R(b) {
11067
- var T, E = (b == null ? void 0 : b.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, P = N() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(E, ".js");
11077
+ var T, E = (b == null ? void 0 : b.minified) !== !1 ? I.AXO_ASSET_NAME.minified : I.AXO_ASSET_NAME.unminified, x = N() ? I.AXO_ASSET_PATH : "".concat(I.AXO_ASSET_PATH, "/").concat(E, ".js");
11068
11078
  return g({
11069
- assetUrl: P,
11079
+ assetUrl: x,
11070
11080
  bundleId: (T = b == null ? void 0 : b.metadata) === null || T === void 0 ? void 0 : T.bundleIdOverride
11071
11081
  });
11072
11082
  }
@@ -11406,11 +11416,11 @@ function Pu() {
11406
11416
  function l(u, h, p, f) {
11407
11417
  var m = Date.now();
11408
11418
  return p.flow === "vault" ? p.context_type = "BA_Token" : p.flow === "checkout" && (p.context_type = "EC_Token"), Promise.resolve(u).then(function(v) {
11409
- var y = v._request, w = i.ANALYTICS_URL, O = i.ANALYTICS_PREFIX + h, L = v.getConfiguration(), I = L.gatewayConfiguration.environment === "production", x = {
11419
+ var y = v._request, w = i.ANALYTICS_URL, O = i.ANALYTICS_PREFIX + h, L = v.getConfiguration(), I = L.gatewayConfiguration.environment === "production", P = {
11410
11420
  events: [],
11411
11421
  tracking: []
11412
- }, N = s.addEventMetadata(v, x);
11413
- return N.event_name = O, N.t = m, x.events = [
11422
+ }, N = s.addEventMetadata(v, P);
11423
+ return N.event_name = O, N.t = m, P.events = [
11414
11424
  {
11415
11425
  level: "info",
11416
11426
  event: O,
@@ -11422,11 +11432,11 @@ function Pu() {
11422
11432
  p
11423
11433
  )
11424
11434
  }
11425
- ], x.tracking = [N], p && typeof p == "object" && (x.tracking = [d(N, p)]), y(
11435
+ ], P.tracking = [N], p && typeof p == "object" && (P.tracking = [d(N, p)]), y(
11426
11436
  {
11427
11437
  url: w,
11428
11438
  method: "post",
11429
- data: x,
11439
+ data: P,
11430
11440
  timeout: i.ANALYTICS_REQUEST_TIMEOUT_MS
11431
11441
  },
11432
11442
  f
@@ -11655,37 +11665,37 @@ function Pu() {
11655
11665
  var i = e("./strategies/popup"), s = e("./strategies/popup-bridge"), o = e("./strategies/modal"), c = e("framebus"), l = e("../shared/events"), d = e("../shared/errors"), u = e("../shared/constants"), h = e("@braintree/uuid"), p = e("@braintree/iframer"), f = e("../../braintree-error"), m = e("../shared/browser-detection"), v = e("./../../assign").assign, y = e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT, w = ["name", "dispatchFrameUrl", "openFrameUrl"];
11656
11666
  function O() {
11657
11667
  }
11658
- function L(x) {
11659
- if (!x)
11668
+ function L(P) {
11669
+ if (!P)
11660
11670
  throw new Error("Valid configuration is required");
11661
11671
  if (w.forEach(function(N) {
11662
- if (!x.hasOwnProperty(N))
11672
+ if (!P.hasOwnProperty(N))
11663
11673
  throw new Error("A valid frame " + N + " must be provided");
11664
- }), !/^[\w_]+$/.test(x.name))
11674
+ }), !/^[\w_]+$/.test(P.name))
11665
11675
  throw new Error("A valid frame name must be provided");
11666
11676
  }
11667
- function I(x) {
11668
- L(x), this._serviceId = h().replace(/-/g, ""), this._options = {
11669
- name: x.name + "_" + this._serviceId,
11670
- dispatchFrameUrl: x.dispatchFrameUrl,
11671
- openFrameUrl: x.openFrameUrl,
11672
- height: x.height,
11673
- width: x.width,
11674
- top: x.top,
11675
- left: x.left
11676
- }, this.state = x.state || {}, this._bus = new c({ channel: this._serviceId }), this._setBusEvents();
11677
- }
11678
- I.prototype.initialize = function(x) {
11677
+ function I(P) {
11678
+ L(P), this._serviceId = h().replace(/-/g, ""), this._options = {
11679
+ name: P.name + "_" + this._serviceId,
11680
+ dispatchFrameUrl: P.dispatchFrameUrl,
11681
+ openFrameUrl: P.openFrameUrl,
11682
+ height: P.height,
11683
+ width: P.width,
11684
+ top: P.top,
11685
+ left: P.left
11686
+ }, this.state = P.state || {}, this._bus = new c({ channel: this._serviceId }), this._setBusEvents();
11687
+ }
11688
+ I.prototype.initialize = function(P) {
11679
11689
  var N = function() {
11680
- x(), this._bus.off(l.DISPATCH_FRAME_READY, N);
11690
+ P(), this._bus.off(l.DISPATCH_FRAME_READY, N);
11681
11691
  }.bind(this);
11682
11692
  this._bus.on(l.DISPATCH_FRAME_READY, N), this._writeDispatchFrame();
11683
11693
  }, I.prototype._writeDispatchFrame = function() {
11684
- var x = u.DISPATCH_FRAME_NAME + "_" + this._serviceId, N = this._options.dispatchFrameUrl;
11694
+ var P = u.DISPATCH_FRAME_NAME + "_" + this._serviceId, N = this._options.dispatchFrameUrl;
11685
11695
  this._dispatchFrame = p({
11686
11696
  "aria-hidden": !0,
11687
- name: x,
11688
- title: x,
11697
+ name: P,
11698
+ title: P,
11689
11699
  src: N,
11690
11700
  class: u.DISPATCH_FRAME_CLASS,
11691
11701
  height: 0,
@@ -11698,36 +11708,36 @@ function Pu() {
11698
11708
  }, I.prototype._setBusEvents = function() {
11699
11709
  this._bus.on(
11700
11710
  l.DISPATCH_FRAME_REPORT,
11701
- function(x, N) {
11702
- this._onCompleteCallback && this._onCompleteCallback.call(null, x.err, x.payload), this._frame.close(), this._onCompleteCallback = null, N && N();
11711
+ function(P, N) {
11712
+ this._onCompleteCallback && this._onCompleteCallback.call(null, P.err, P.payload), this._frame.close(), this._onCompleteCallback = null, N && N();
11703
11713
  }.bind(this)
11704
11714
  ), this._bus.on(
11705
11715
  y,
11706
- function(x) {
11707
- x(this.state);
11716
+ function(P) {
11717
+ P(this.state);
11708
11718
  }.bind(this)
11709
11719
  );
11710
- }, I.prototype.open = function(x, N) {
11711
- if (x = x || {}, this._frame = this._getFrameForEnvironment(x), this._frame.initialize(N), !(this._frame instanceof s)) {
11712
- if (v(this.state, x.state), this._onCompleteCallback = N, this._frame.open(), this.isFrameClosed()) {
11720
+ }, I.prototype.open = function(P, N) {
11721
+ if (P = P || {}, this._frame = this._getFrameForEnvironment(P), this._frame.initialize(N), !(this._frame instanceof s)) {
11722
+ if (v(this.state, P.state), this._onCompleteCallback = N, this._frame.open(), this.isFrameClosed()) {
11713
11723
  this._cleanupFrame(), N && N(new f(d.FRAME_SERVICE_FRAME_OPEN_FAILED));
11714
11724
  return;
11715
11725
  }
11716
11726
  this._pollForPopupClose();
11717
11727
  }
11718
- }, I.prototype.redirect = function(x) {
11719
- this._frame && !this.isFrameClosed() && this._frame.redirect(x);
11728
+ }, I.prototype.redirect = function(P) {
11729
+ this._frame && !this.isFrameClosed() && this._frame.redirect(P);
11720
11730
  }, I.prototype.close = function() {
11721
11731
  this.isFrameClosed() || this._frame.close();
11722
11732
  }, I.prototype.focus = function() {
11723
11733
  this.isFrameClosed() || this._frame.focus();
11724
- }, I.prototype.createHandler = function(x) {
11725
- return x = x || {}, {
11734
+ }, I.prototype.createHandler = function(P) {
11735
+ return P = P || {}, {
11726
11736
  close: function() {
11727
- x.beforeClose && x.beforeClose(), this.close();
11737
+ P.beforeClose && P.beforeClose(), this.close();
11728
11738
  }.bind(this),
11729
11739
  focus: function() {
11730
- x.beforeFocus && x.beforeFocus(), this.focus();
11740
+ P.beforeFocus && P.beforeFocus(), this.focus();
11731
11741
  }.bind(this)
11732
11742
  };
11733
11743
  }, I.prototype.createNoopHandler = function() {
@@ -11750,8 +11760,8 @@ function Pu() {
11750
11760
  }.bind(this),
11751
11761
  u.POPUP_POLL_INTERVAL
11752
11762
  ), this._popupInterval;
11753
- }, I.prototype._getFrameForEnvironment = function(x) {
11754
- var N = m.supportsPopups(), S = !!window.popupBridge, U = v({}, this._options, x);
11763
+ }, I.prototype._getFrameForEnvironment = function(P) {
11764
+ var N = m.supportsPopups(), S = !!window.popupBridge, U = v({}, this._options, P);
11755
11765
  return S ? new s(U) : N ? new i(U) : new o(U);
11756
11766
  }, r.exports = I;
11757
11767
  }, { "../../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(e, r, a) {
@@ -12178,7 +12188,7 @@ function Pu() {
12178
12188
  var L = function() {
12179
12189
  v.bus.off(
12180
12190
  d.VENMO_DESKTOP_CUSTOMER_CANCELED,
12181
- x
12191
+ P
12182
12192
  ), v.bus.off(
12183
12193
  d.VENMO_DESKTOP_UNKNOWN_ERROR,
12184
12194
  I
@@ -12189,7 +12199,7 @@ function Pu() {
12189
12199
  reason: "UNKNOWN_ERROR",
12190
12200
  err: N
12191
12201
  });
12192
- }, x = function() {
12202
+ }, P = function() {
12193
12203
  L(), v.updateVenmoDesktopPaymentContext("CANCELED"), v.sendEvent(
12194
12204
  "venmo.tokenize.desktop.status-change.canceled-from-modal"
12195
12205
  ), O({
@@ -12201,7 +12211,7 @@ function Pu() {
12201
12211
  L(), w(N);
12202
12212
  }, v.bus.on(
12203
12213
  d.VENMO_DESKTOP_CUSTOMER_CANCELED,
12204
- x
12214
+ P
12205
12215
  ), v.bus.on(d.VENMO_DESKTOP_UNKNOWN_ERROR, I);
12206
12216
  });
12207
12217
  return this.iframe.style.display = "block", this.setAlert("Generating a QR code, get your Venmo app ready"), this.iframe.focus(), this.startPolling(), y.then(function(w) {
@@ -12280,9 +12290,9 @@ function Pu() {
12280
12290
  case "APPROVED":
12281
12291
  return w.authorize(), w.Promise.resolve(O);
12282
12292
  }
12283
- return new w.Promise(function(x, N) {
12293
+ return new w.Promise(function(P, N) {
12284
12294
  setTimeout(function() {
12285
- w.pollForStatusChange(v, y).then(x).catch(N);
12295
+ w.pollForStatusChange(v, y).then(P).catch(N);
12286
12296
  }, h);
12287
12297
  });
12288
12298
  }) : this.Promise.resolve();
@@ -12368,8 +12378,8 @@ function Pu() {
12368
12378
  assetsUrl: c.create(y.authorization),
12369
12379
  name: w
12370
12380
  }).then(function(I) {
12371
- var x = I.getConfiguration();
12372
- return y.client = I, x.gatewayConfiguration.payWithVenmo ? I : Promise.reject(new u(l.VENMO_NOT_ENABLED));
12381
+ var P = I.getConfiguration();
12382
+ return y.client = I, P.gatewayConfiguration.payWithVenmo ? I : Promise.reject(new u(l.VENMO_NOT_ENABLED));
12373
12383
  }), y.createPromise = O, L = new h(y), i.sendEvent(O, "venmo.initialized"), O.then(function() {
12374
12384
  return L;
12375
12385
  }));
@@ -12702,7 +12712,7 @@ function Pu() {
12702
12712
  function I(N) {
12703
12713
  return L(N.styleCspNonce), v(N);
12704
12714
  }
12705
- function x(N) {
12715
+ function P(N) {
12706
12716
  var S = new o(), U = "venmoDesktopWebLogin", Y = N.assetsUrl, $ = N.debug || !1, F = y(), z = Y + "/web/" + d + "/html";
12707
12717
  return i.create(
12708
12718
  {
@@ -12722,12 +12732,12 @@ function Pu() {
12722
12732
  r.exports = {
12723
12733
  runWebLogin: I,
12724
12734
  openPopup: v,
12725
- setupDesktopWebLogin: x,
12735
+ setupDesktopWebLogin: P,
12726
12736
  POPUP_WIDTH: p,
12727
12737
  POPUP_HEIGHT: f
12728
12738
  };
12729
12739
  }, { "../../lib/braintree-error": 59, "../../lib/frame-service/external": 68, "../../lib/use-min": 85, "../shared/errors": 93, "@braintree/extended-promise": 26 }], 98: [function(e, r, a) {
12730
- var i = e("../lib/analytics"), s = e("../lib/assign").assign, o = e("./shared/supports-venmo"), c = e("./shared/browser-detection"), l = e("./shared/constants"), d = e("./shared/errors"), u = e("../lib/querystring"), h = e("../lib/is-verified-domain"), p = e("../lib/methods"), f = e("../lib/convert-methods-to-error"), m = e("@braintree/wrap-promise"), v = e("../lib/braintree-error"), y = e("../lib/in-iframe"), w = e("@braintree/extended-promise"), O = e("./shared/get-venmo-url"), L = e("./shared/web-login-backdrop"), I = e("../lib/snake-case-to-camel-case"), x = e("../lib/url-params"), N = e("./external/"), S = e("./external/queries"), U = "3.126.0", Y = 250, $ = 3e5;
12740
+ var i = e("../lib/analytics"), s = e("../lib/assign").assign, o = e("./shared/supports-venmo"), c = e("./shared/browser-detection"), l = e("./shared/constants"), d = e("./shared/errors"), u = e("../lib/querystring"), h = e("../lib/is-verified-domain"), p = e("../lib/methods"), f = e("../lib/convert-methods-to-error"), m = e("@braintree/wrap-promise"), v = e("../lib/braintree-error"), y = e("../lib/in-iframe"), w = e("@braintree/extended-promise"), O = e("./shared/get-venmo-url"), L = e("./shared/web-login-backdrop"), I = e("../lib/snake-case-to-camel-case"), P = e("../lib/url-params"), N = e("./external/"), S = e("./external/queries"), U = "3.126.0", Y = 250, $ = 3e5;
12731
12741
  w.suppressUnhandledPromiseMessage = !0;
12732
12742
  function F(_) {
12733
12743
  var g = this;
@@ -12777,16 +12787,16 @@ function Pu() {
12777
12787
  return b = L.setupDesktopWebLogin({
12778
12788
  assetsUrl: E.gatewayConfiguration.assetsUrl,
12779
12789
  debug: E.isDebug
12780
- }).then(function(P) {
12781
- g._frameServiceInstance = P;
12782
- }).catch(function(P) {
12783
- return P;
12790
+ }).then(function(x) {
12791
+ g._frameServiceInstance = x;
12792
+ }).catch(function(x) {
12793
+ return x;
12784
12794
  }), g._mobilePollingContextEnvironment = E.gatewayConfiguration.environment.toUpperCase(), V = g._createVenmoPaymentContext(R).then(function() {
12785
12795
  return i.sendEvent(
12786
12796
  g._createPromise,
12787
12797
  "venmo." + T + ".presented"
12788
12798
  ), R;
12789
- }).catch(function(P) {
12799
+ }).catch(function(x) {
12790
12800
  return i.sendEvent(
12791
12801
  g._createPromise,
12792
12802
  "venmo." + T + ".setup-failed"
@@ -12794,17 +12804,17 @@ function Pu() {
12794
12804
  new v({
12795
12805
  type: d.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.type,
12796
12806
  code: d.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.code,
12797
- message: z(P) ? P.details.originalError[0].message : d.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.message,
12807
+ message: z(x) ? x.details.originalError[0].message : d.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.message,
12798
12808
  details: {
12799
- originalError: P
12809
+ originalError: x
12800
12810
  }
12801
12811
  })
12802
12812
  );
12803
- }), w.all([b, V]).then(function(P) {
12804
- var D = P[1];
12813
+ }), w.all([b, V]).then(function(x) {
12814
+ var D = x[1];
12805
12815
  return Promise.resolve(D);
12806
- }).catch(function(P) {
12807
- return Promise.reject(P);
12816
+ }).catch(function(x) {
12817
+ return Promise.reject(x);
12808
12818
  });
12809
12819
  }));
12810
12820
  }
@@ -12812,7 +12822,7 @@ function Pu() {
12812
12822
  return _.details && _.details.originalError && _.details.originalError[0] && _.details.originalError[0].extensions && _.details.originalError[0].extensions.errorClass === "VALIDATION" && _.details.originalError[0].extensions.errorType === "user_error";
12813
12823
  }
12814
12824
  F.prototype._createVenmoPaymentContext = function(_, g) {
12815
- var R = this, V, b, T = _.getConfiguration(), E = T.gatewayConfiguration.payWithVenmo, P = !1, D = R._useAllowDesktopWebLogin ? "NATIVE_WEB" : "MOBILE_WEB";
12825
+ var R = this, V, b, T = _.getConfiguration(), E = T.gatewayConfiguration.payWithVenmo, x = !1, D = R._useAllowDesktopWebLogin ? "NATIVE_WEB" : "MOBILE_WEB";
12816
12826
  if (!this._shouldCreateVenmoPaymentContext)
12817
12827
  return Promise.resolve();
12818
12828
  if (this._shouldUseLegacyFlow)
@@ -12842,7 +12852,7 @@ function Pu() {
12842
12852
  shippingAmount: this._shippingAmount,
12843
12853
  totalAmount: this._totalAmount,
12844
12854
  lineItems: this._lineItems
12845
- }, P = Object.keys(b).some(
12855
+ }, x = Object.keys(b).some(
12846
12856
  function(A) {
12847
12857
  return b[A] !== void 0;
12848
12858
  }
@@ -12860,7 +12870,7 @@ function Pu() {
12860
12870
  paysheetDetails: {
12861
12871
  collectCustomerBillingAddress: this._collectCustomerBillingAddress,
12862
12872
  collectCustomerShippingAddress: this._collectCustomerShippingAddress,
12863
- transactionDetails: P ? b : void 0
12873
+ transactionDetails: x ? b : void 0
12864
12874
  }
12865
12875
  }
12866
12876
  }
@@ -12899,7 +12909,7 @@ function Pu() {
12899
12909
  }, F.prototype.getUrl = function() {
12900
12910
  return this._createPromise.then(
12901
12911
  function(_) {
12902
- var g = _.getConfiguration(), R = {}, V = this._deepLinkReturnUrl || window.location.href.replace(window.location.hash, ""), b = g.gatewayConfiguration.payWithVenmo, T = g.analyticsMetadata, E = b.accessToken, P = {
12912
+ var g = _.getConfiguration(), R = {}, V = this._deepLinkReturnUrl || window.location.href.replace(window.location.hash, ""), b = g.gatewayConfiguration.payWithVenmo, T = g.analyticsMetadata, E = b.accessToken, x = {
12903
12913
  _meta: {
12904
12914
  version: T.sdkVersion,
12905
12915
  integration: T.integration,
@@ -12908,7 +12918,7 @@ function Pu() {
12908
12918
  }
12909
12919
  };
12910
12920
  return this._isDebug = g.isDebug, this._assetsUrl = g.gatewayConfiguration.assetsUrl, V = V.replace(/#*$/, ""), this._venmoPaymentContextId && (this._shouldUseLegacyFlow ? E += "|pcid:" + this._venmoPaymentContextId : R.resource_id = this._venmoPaymentContextId), this._shouldIncludeReturnUrls() || this._useAllowDesktopWebLogin ? (this._useAllowDesktopWebLogin && (V = this._assetsUrl + "/web/" + U + "/html/redirect-frame.html"), R["x-success"] = V + "#venmoSuccess=1", R["x-cancel"] = V + "#venmoCancel=1", R["x-error"] = V + "#venmoError=1") : (R["x-success"] = "NOOP", R["x-cancel"] = "NOOP", R["x-error"] = "NOOP"), this._allowAndroidRecreation ? R.allowAndroidRecreation = 1 : R.allowAndroidRecreation = 0, R.ua = window.navigator.userAgent, R.braintree_merchant_id = // eslint-disable-line camelcase
12911
- this._profileId || b.merchantId, R.braintree_access_token = E, R.braintree_environment = b.environment, R.braintree_sdk_data = btoa(JSON.stringify(P)), O({
12921
+ this._profileId || b.merchantId, R.braintree_access_token = E, R.braintree_environment = b.environment, R.braintree_sdk_data = btoa(JSON.stringify(x)), O({
12912
12922
  useAllowDesktopWebLogin: this._useAllowDesktopWebLogin,
12913
12923
  mobileWebFallBack: this._mobileWebFallBack
12914
12924
  }) + "?" + u.stringify(R);
@@ -12924,7 +12934,7 @@ function Pu() {
12924
12934
  }, F.prototype.hasTokenizationResult = function() {
12925
12935
  return this._hasTokenizationResult();
12926
12936
  }, F.prototype._hasTokenizationResult = function(_) {
12927
- var g = j(_), R = x.getUrlParams();
12937
+ var g = j(_), R = P.getUrlParams();
12928
12938
  return R.resource_id ? this._venmoPaymentContextId = R.resource_id : g.id && (this._venmoPaymentContextId = g.id), typeof (g.venmoSuccess || g.venmoError || g.venmoCancel) != "undefined";
12929
12939
  }, F.prototype._shouldIncludeReturnUrls = function() {
12930
12940
  return this._deepLinkReturnUrl ? !0 : !this._cannotHaveReturnUrls;
@@ -13170,10 +13180,10 @@ function Pu() {
13170
13180
  i.sendEvent(this._createPromise, "venmo.tokenize.mobile.start"), this._tokenizePromise = new w(), this._previousHash = window.location.hash;
13171
13181
  function b(T) {
13172
13182
  var E;
13173
- g.processHashChangeFlowResults(T).catch(function(P) {
13174
- E = P;
13175
- }).then(function(P) {
13176
- !g._ignoreHistoryChanges && window.location.hash !== g._previousHash && (window.location.hash = g._previousHash), g._removeVisibilityEventListener(), E ? g._tokenizePromise.reject(E) : g._tokenizePromise.resolve(P), delete g._tokenizePromise;
13183
+ g.processHashChangeFlowResults(T).catch(function(x) {
13184
+ E = x;
13185
+ }).then(function(x) {
13186
+ !g._ignoreHistoryChanges && window.location.hash !== g._previousHash && (window.location.hash = g._previousHash), g._removeVisibilityEventListener(), E ? g._tokenizePromise.reject(E) : g._tokenizePromise.resolve(x), delete g._tokenizePromise;
13177
13187
  });
13178
13188
  }
13179
13189
  return this._onHashChangeListener = function(T) {
@@ -13321,8 +13331,8 @@ function Pu() {
13321
13331
  };
13322
13332
  function j(_) {
13323
13333
  var g = (_ || window.location.hash.substring(1)).split("&"), R = g.reduce(function(V, b) {
13324
- var T = b.split("="), E = decodeURIComponent(T[0]).replace(/\W/g, ""), P = I(E), D = decodeURIComponent(T[1]);
13325
- return V[P] = D, V;
13334
+ var T = b.split("="), E = decodeURIComponent(T[0]).replace(/\W/g, ""), x = I(E), D = decodeURIComponent(T[1]);
13335
+ return V[x] = D, V;
13326
13336
  }, {});
13327
13337
  return R.resourceId && (R.id = R.resourceId), R;
13328
13338
  }
@@ -13354,8 +13364,8 @@ function Pu() {
13354
13364
  });
13355
13365
  }(Dt)), Dt.exports;
13356
13366
  }
13357
- var xu = Pu();
13358
- const Ru = /* @__PURE__ */ wn(xu);
13367
+ var Pu = xu();
13368
+ const Ru = /* @__PURE__ */ wn(Pu);
13359
13369
  class ku {
13360
13370
  constructor() {
13361
13371
  C(this, "client", null);
@@ -13445,7 +13455,7 @@ class Uu {
13445
13455
  C(this, "state", {
13446
13456
  translate: new pu(),
13447
13457
  checkout: new Od(),
13448
- transaction: new Pd(),
13458
+ transaction: new xd(),
13449
13459
  styles: new Ld()
13450
13460
  });
13451
13461
  C(this, "checkout", new Td({