@paynext/sdk 0.0.114 → 0.0.115

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
@@ -113,14 +113,14 @@ const Xt = (n = "sandbox") => ({
113
113
  last4: e.lastFourDigits,
114
114
  number: e.number
115
115
  };
116
- }, _r = (n) => {
116
+ }, Lr = (n) => {
117
117
  var t;
118
118
  const e = n.paypal;
119
119
  if ((t = e == null ? void 0 : e.billing_agreement_token) != null && t.paypalId)
120
120
  return {
121
121
  billing_agreement_token: e.billing_agreement_token.paypalId
122
122
  };
123
- }, Lr = (n) => {
123
+ }, _r = (n) => {
124
124
  var t, i;
125
125
  const e = n.googlePay;
126
126
  if (e != null && e.token)
@@ -163,7 +163,7 @@ const Xt = (n = "sandbox") => ({
163
163
  state: ((b = e == null ? void 0 : e.billingContact) == null ? void 0 : b.administrativeArea) || ((y = t == null ? void 0 : t.billingAddress) == null ? void 0 : y.administrativeArea) || void 0
164
164
  };
165
165
  }, En = (n) => {
166
- var r, s, a, o, l, u, d, h, m, p, g, b, y, k, V, _, M, T, D;
166
+ var r, s, a, o, l, u, d, h, m, p, g, b, y, k, V, L, M, T, D;
167
167
  const { card: e, googlePay: t, applePay: i } = n;
168
168
  if (!(!e && !(t != null && t.card) && !(i != null && i.card)))
169
169
  return {
@@ -178,7 +178,7 @@ const Xt = (n = "sandbox") => ({
178
178
  },
179
179
  cvc: e == null ? void 0 : e.cvc,
180
180
  exp_month: e != null && e.expMonth || (y = t == null ? void 0 : t.card) != null && y.expiry.month ? Number((e == null ? void 0 : e.expMonth) || ((k = t == null ? void 0 : t.card) == null ? void 0 : k.expiry.month)) : void 0,
181
- exp_year: e != null && e.expYear || (V = t == null ? void 0 : t.card) != null && V.expiry.year ? Number((e == null ? void 0 : e.expYear) || ((_ = t == null ? void 0 : t.card) == null ? void 0 : _.expiry.year)) : void 0,
181
+ exp_year: e != null && e.expYear || (V = t == null ? void 0 : t.card) != null && V.expiry.year ? Number((e == null ? void 0 : e.expYear) || ((L = t == null ? void 0 : t.card) == null ? void 0 : L.expiry.year)) : void 0,
182
182
  last4: (e == null ? void 0 : e.lastFourDigits) || ((M = t == null ? void 0 : t.card) == null ? void 0 : M.lastFour) || ((T = i == null ? void 0 : i.card) == null ? void 0 : T.lastFour),
183
183
  number: (e == null ? void 0 : e.number) || ((D = t == null ? void 0 : t.card) == null ? void 0 : D.number)
184
184
  };
@@ -201,12 +201,12 @@ const Xt = (n = "sandbox") => ({
201
201
  });
202
202
  case x.PAYPAL:
203
203
  return I(v({}, t), {
204
- paypal: _r(n)
204
+ paypal: Lr(n)
205
205
  });
206
206
  case x.GOOGLE_PAY:
207
207
  return I(v({}, t), {
208
208
  card: En(n),
209
- google_pay: Lr(n),
209
+ google_pay: _r(n),
210
210
  billing_address: kn(n)
211
211
  });
212
212
  case x.APPLE_PAY:
@@ -241,9 +241,9 @@ const Xt = (n = "sandbox") => ({
241
241
  body: JSON.stringify({ client_session: n })
242
242
  })).json()).paypal_agreement_token_response.token_id || "";
243
243
  }), Rr = (n, e, t) => E(void 0, null, function* () {
244
- const i = `${Xt(e)}/payments/config?client_session_id=${n}`, r = new Headers();
245
- r.append("X-API-Version", t);
246
- const a = yield (yield fetch(i, { headers: r })).json();
244
+ const i = new Headers();
245
+ i.append("X-API-Version", t);
246
+ const r = `${Xt(e)}/payments/config?client_session_id=${n}`, a = yield (yield fetch(r, { headers: i })).json();
247
247
  return a.checkout_config || (a.checkout_config = wr), a;
248
248
  });
249
249
  let Or = class {
@@ -343,7 +343,7 @@ let Or = class {
343
343
  });
344
344
  }
345
345
  };
346
- class q {
346
+ class K {
347
347
  constructor() {
348
348
  c(this, "listeners", []);
349
349
  }
@@ -385,7 +385,7 @@ class Fr {
385
385
  c(this, "google", null);
386
386
  c(this, "threeDs", null);
387
387
  c(this, "events", {
388
- ready: new q()
388
+ ready: new K()
389
389
  });
390
390
  }
391
391
  // is should load
@@ -574,17 +574,17 @@ function Wr(n, s = {}, i, r) {
574
574
  h.set(y.name, wn(p, y.at, m, h));
575
575
  continue;
576
576
  }
577
- let [k, V, _ = {}] = y;
578
- _.at !== void 0 && (p = wn(p, _.at, m, h));
577
+ let [k, V, L = {}] = y;
578
+ L.at !== void 0 && (p = wn(p, L.at, m, h));
579
579
  let M = 0;
580
580
  const T = (D, C, w, R = 0, O = 0) => {
581
- const K = Zr(D), _e = C, { delay: Te = 0, times: te = bi(K), type: fe = "keyframes", repeat: he, repeatType: kt, repeatDelay: Et = 0 } = _e, at = se(_e, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
581
+ const q = Zr(D), Le = C, { delay: Te = 0, times: te = bi(q), type: fe = "keyframes", repeat: he, repeatType: kt, repeatDelay: Et = 0 } = Le, at = se(Le, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
582
582
  let { ease: ne = e.ease || "easeOut", duration: f } = C;
583
- const P = typeof Te == "function" ? Te(R, O) : Te, N = K.length, H = tn(fe) ? fe : r == null ? void 0 : r[fe];
583
+ const P = typeof Te == "function" ? Te(R, O) : Te, N = q.length, H = tn(fe) ? fe : r == null ? void 0 : r[fe];
584
584
  if (N <= 2 && H) {
585
585
  let z = 100;
586
- if (N === 2 && Qr(K)) {
587
- const ge = K[1] - K[0];
586
+ if (N === 2 && Qr(q)) {
587
+ const ge = q[1] - q[0];
588
588
  z = Math.abs(ge);
589
589
  }
590
590
  const re = v({}, at);
@@ -595,32 +595,32 @@ function Wr(n, s = {}, i, r) {
595
595
  f != null || (f = o);
596
596
  const ie = p + P;
597
597
  te.length === 1 && te[0] === 0 && (te[1] = 1);
598
- const X = te.length - K.length;
599
- if (X > 0 && gi(te, X), K.length === 1 && K.unshift(null), he) {
598
+ const X = te.length - q.length;
599
+ if (X > 0 && gi(te, X), q.length === 1 && q.unshift(null), he) {
600
600
  ce(he < Ur, "Repeat count too high, must be less than 20"), f = Br(f, he);
601
- const z = [...K], re = [...te];
601
+ const z = [...q], re = [...te];
602
602
  ne = Array.isArray(ne) ? [...ne] : [ne];
603
603
  const pe = [...ne];
604
604
  for (let ge = 0; ge < he; ge++) {
605
- K.push(...z);
605
+ q.push(...z);
606
606
  for (let je = 0; je < z.length; je++)
607
607
  te.push(re[je] + (ge + 1)), ne.push(je === 0 ? "linear" : mi(pe, je - 1));
608
608
  }
609
609
  Hr(te, he);
610
610
  }
611
611
  const Ae = ie + f;
612
- qr(w, K, ne, te, ie, Ae), M = Math.max(P + f, M), g = Math.max(Ae, g);
612
+ qr(w, q, ne, te, ie, Ae), M = Math.max(P + f, M), g = Math.max(Ae, g);
613
613
  };
614
614
  if (J(k)) {
615
615
  const D = Tn(k, u);
616
- T(V, _, An("default", D));
616
+ T(V, L, An("default", D));
617
617
  } else {
618
618
  const D = hi(k, V, i, d), C = D.length;
619
619
  for (let w = 0; w < C; w++) {
620
- V = V, _ = _;
620
+ V = V, L = L;
621
621
  const R = D[w], O = Tn(R, u);
622
- for (const K in V)
623
- T(V[K], Jr(_, K), An(K, O), w, C);
622
+ for (const q in V)
623
+ T(V[q], Jr(L, q), An(q, O), w, C);
624
624
  }
625
625
  }
626
626
  m = p, p += M;
@@ -629,17 +629,17 @@ function Wr(n, s = {}, i, r) {
629
629
  for (const k in b) {
630
630
  const V = b[k];
631
631
  V.sort(Gr);
632
- const _ = [], M = [], T = [];
632
+ const L = [], M = [], T = [];
633
633
  for (let C = 0; C < V.length; C++) {
634
634
  const { at: w, value: R, easing: O } = V[C];
635
- _.push(R), M.push(/* @__PURE__ */ en(0, g, w)), T.push(O || "easeOut");
635
+ L.push(R), M.push(/* @__PURE__ */ en(0, g, w)), T.push(O || "easeOut");
636
636
  }
637
- M[0] !== 0 && (M.unshift(0), _.unshift(_[0]), T.unshift(Yr)), M[M.length - 1] !== 1 && (M.push(1), _.push(null)), l.has(y) || l.set(y, {
637
+ M[0] !== 0 && (M.unshift(0), L.unshift(L[0]), T.unshift(Yr)), M[M.length - 1] !== 1 && (M.push(1), L.push(null)), l.has(y) || l.set(y, {
638
638
  keyframes: {},
639
639
  transition: {}
640
640
  });
641
641
  const D = l.get(y);
642
- D.keyframes[k] = _, D.transition[k] = v(I(v({}, e), {
642
+ D.keyframes[k] = L, D.transition[k] = v(I(v({}, e), {
643
643
  duration: g,
644
644
  ease: T,
645
645
  times: M
@@ -660,7 +660,7 @@ function Jr(n, e) {
660
660
  return n && n[e] ? v(v({}, n), n[e]) : v({}, n);
661
661
  }
662
662
  const Xr = (n) => typeof n == "number", Qr = (n) => n.every(Xr), Je = /* @__PURE__ */ new WeakMap(), es = (n) => Array.isArray(n);
663
- function _n(n) {
663
+ function Ln(n) {
664
664
  const e = [{}, {}];
665
665
  return n == null || n.values.forEach((t, i) => {
666
666
  e[0][i] = t.get(), e[1][i] = t.getVelocity();
@@ -668,11 +668,11 @@ function _n(n) {
668
668
  }
669
669
  function yi(n, e, t, i) {
670
670
  if (typeof e == "function") {
671
- const [r, s] = _n(i);
671
+ const [r, s] = Ln(i);
672
672
  e = e(t !== void 0 ? t : n.custom, r, s);
673
673
  }
674
674
  if (typeof e == "string" && (e = n.variants && n.variants[e]), typeof e == "function") {
675
- const [r, s] = _n(i);
675
+ const [r, s] = Ln(i);
676
676
  e = e(t !== void 0 ? t : n.custom, r, s);
677
677
  }
678
678
  return e;
@@ -744,18 +744,18 @@ function rs(n, e) {
744
744
  delta: 0,
745
745
  timestamp: 0,
746
746
  isProcessing: !1
747
- }, s = () => t = !0, a = lt.reduce((_, M) => (_[M] = ns(s), _), {}), { setup: o, read: l, resolveKeyframes: u, preUpdate: d, update: h, preRender: m, render: p, postRender: g } = a, b = () => {
748
- const _ = de.useManualTiming ? r.timestamp : performance.now();
749
- t = !1, de.useManualTiming || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(_ - r.timestamp, is), 1)), r.timestamp = _, r.isProcessing = !0, o.process(r), l.process(r), u.process(r), d.process(r), h.process(r), m.process(r), p.process(r), g.process(r), r.isProcessing = !1, t && e && (i = !1, n(b));
747
+ }, s = () => t = !0, a = lt.reduce((L, M) => (L[M] = ns(s), L), {}), { setup: o, read: l, resolveKeyframes: u, preUpdate: d, update: h, preRender: m, render: p, postRender: g } = a, b = () => {
748
+ const L = de.useManualTiming ? r.timestamp : performance.now();
749
+ t = !1, de.useManualTiming || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(L - r.timestamp, is), 1)), r.timestamp = L, r.isProcessing = !0, o.process(r), l.process(r), u.process(r), d.process(r), h.process(r), m.process(r), p.process(r), g.process(r), r.isProcessing = !1, t && e && (i = !1, n(b));
750
750
  }, y = () => {
751
751
  t = !0, i = !0, r.isProcessing || n(b);
752
752
  };
753
- return { schedule: lt.reduce((_, M) => {
753
+ return { schedule: lt.reduce((L, M) => {
754
754
  const T = a[M];
755
- return _[M] = (D, C = !1, w = !1) => (t || y(), T.schedule(D, C, w)), _;
756
- }, {}), cancel: (_) => {
755
+ return L[M] = (D, C = !1, w = !1) => (t || y(), T.schedule(D, C, w)), L;
756
+ }, {}), cancel: (L) => {
757
757
  for (let M = 0; M < lt.length; M++)
758
- a[lt[M]].cancel(_);
758
+ a[lt[M]].cancel(L);
759
759
  }, state: r, steps: a };
760
760
  }
761
761
  const De = /* @__NO_SIDE_EFFECTS__ */ (n) => n, { schedule: ue, cancel: Rt, state: ft } = /* @__PURE__ */ rs(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : De, !0);
@@ -768,9 +768,9 @@ const ee = {
768
768
  set: (n) => {
769
769
  pt = n, queueMicrotask(ss);
770
770
  }
771
- }, Ln = /* @__PURE__ */ new Set();
771
+ }, _n = /* @__PURE__ */ new Set();
772
772
  function Ci(n, e, t) {
773
- n || Ln.has(e) || (console.warn(e), Ln.add(e));
773
+ n || _n.has(e) || (console.warn(e), _n.add(e));
774
774
  }
775
775
  class ki {
776
776
  constructor() {
@@ -1098,7 +1098,7 @@ const wi = (n) => (e) => typeof e == "string" && e.startsWith(n), Ti = /* @__PUR
1098
1098
  function As(n) {
1099
1099
  return n == null;
1100
1100
  }
1101
- const _s = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, on = (n, e) => (t) => !!(typeof t == "string" && _s.test(t) && t.startsWith(n) || e && !As(t) && Object.prototype.hasOwnProperty.call(t, e)), Ai = (n, e, t) => (i) => {
1101
+ const Ls = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, on = (n, e) => (t) => !!(typeof t == "string" && Ls.test(t) && t.startsWith(n) || e && !As(t) && Object.prototype.hasOwnProperty.call(t, e)), Ai = (n, e, t) => (i) => {
1102
1102
  if (typeof i != "string")
1103
1103
  return i;
1104
1104
  const [r, s, a, o] = i.match(an);
@@ -1108,8 +1108,8 @@ const _s = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
1108
1108
  [t]: parseFloat(a),
1109
1109
  alpha: o !== void 0 ? parseFloat(o) : 1
1110
1110
  };
1111
- }, Ls = (n) => xe(0, 255, n), wt = I(v({}, Ne), {
1112
- transform: (n) => Math.round(Ls(n))
1111
+ }, _s = (n) => xe(0, 255, n), wt = I(v({}, Ne), {
1112
+ transform: (n) => Math.round(_s(n))
1113
1113
  }), ye = {
1114
1114
  test: /* @__PURE__ */ on("rgb", "red"),
1115
1115
  parse: /* @__PURE__ */ Ai("red", "green", "blue"),
@@ -1132,7 +1132,7 @@ const Ot = {
1132
1132
  test: (e) => typeof e == "string" && e.endsWith(n) && e.split(" ").length === 1,
1133
1133
  parse: parseFloat,
1134
1134
  transform: (e) => `${e}${n}`
1135
- }), me = /* @__PURE__ */ rt("deg"), Me = /* @__PURE__ */ rt("%"), L = /* @__PURE__ */ rt("px"), Is = /* @__PURE__ */ rt("vh"), Ms = /* @__PURE__ */ rt("vw"), In = I(v({}, Me), {
1135
+ }), me = /* @__PURE__ */ rt("deg"), Me = /* @__PURE__ */ rt("%"), _ = /* @__PURE__ */ rt("px"), Is = /* @__PURE__ */ rt("vh"), Ms = /* @__PURE__ */ rt("vw"), In = I(v({}, Me), {
1136
1136
  parse: (n) => Me.parse(n) / 100,
1137
1137
  transform: (n) => Me.transform(n * 100)
1138
1138
  }), Ve = {
@@ -1148,7 +1148,7 @@ function Ds(n) {
1148
1148
  var e, t;
1149
1149
  return isNaN(n) && typeof n == "string" && (((e = n.match(an)) == null ? void 0 : e.length) || 0) + (((t = n.match(Ps)) == null ? void 0 : t.length) || 0) > 0;
1150
1150
  }
1151
- const _i = "number", Li = "color", Rs = "var", Os = "var(", Mn = "${}", Ns = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
1151
+ const Li = "number", _i = "color", Rs = "var", Os = "var(", Mn = "${}", Ns = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
1152
1152
  function et(n) {
1153
1153
  const e = n.toString(), t = [], i = {
1154
1154
  color: [],
@@ -1156,7 +1156,7 @@ function et(n) {
1156
1156
  var: []
1157
1157
  }, r = [];
1158
1158
  let s = 0;
1159
- const o = e.replace(Ns, (l) => (U.test(l) ? (i.color.push(s), r.push(Li), t.push(U.parse(l))) : l.startsWith(Os) ? (i.var.push(s), r.push(Rs), t.push(l)) : (i.number.push(s), r.push(_i), t.push(parseFloat(l))), ++s, Mn)).split(Mn);
1159
+ const o = e.replace(Ns, (l) => (U.test(l) ? (i.color.push(s), r.push(_i), t.push(U.parse(l))) : l.startsWith(Os) ? (i.var.push(s), r.push(Rs), t.push(l)) : (i.number.push(s), r.push(Li), t.push(parseFloat(l))), ++s, Mn)).split(Mn);
1160
1160
  return { values: t, split: o, indexes: i, types: r };
1161
1161
  }
1162
1162
  function Vi(n) {
@@ -1169,7 +1169,7 @@ function Ii(n) {
1169
1169
  for (let a = 0; a < i; a++)
1170
1170
  if (s += e[a], r[a] !== void 0) {
1171
1171
  const o = t[a];
1172
- o === _i ? s += We(r[a]) : o === Li ? s += U.transform(r[a]) : s += r[a];
1172
+ o === Li ? s += We(r[a]) : o === _i ? s += U.transform(r[a]) : s += r[a];
1173
1173
  }
1174
1174
  return s;
1175
1175
  };
@@ -1319,20 +1319,20 @@ const B = {
1319
1319
  // in seconds
1320
1320
  minDamping: 0.05,
1321
1321
  maxDamping: 1
1322
- }, _t = 1e-3;
1322
+ }, Lt = 1e-3;
1323
1323
  function Zs({ duration: n = B.duration, bounce: e = B.bounce, velocity: t = B.velocity, mass: i = B.mass }) {
1324
1324
  let r, s;
1325
1325
  it(n <= /* @__PURE__ */ ae(B.maxDuration), "Spring duration must be 10 seconds or less");
1326
1326
  let a = 1 - e;
1327
1327
  a = xe(B.minDamping, B.maxDamping, a), n = xe(B.minDuration, B.maxDuration, /* @__PURE__ */ le(n)), a < 1 ? (r = (u) => {
1328
1328
  const d = u * a, h = d * n, m = d - t, p = St(u, a), g = Math.exp(-h);
1329
- return _t - m / p * g;
1329
+ return Lt - m / p * g;
1330
1330
  }, s = (u) => {
1331
1331
  const h = u * a * n, m = h * t + t, p = Math.pow(a, 2) * Math.pow(u, 2) * n, g = Math.exp(-h), b = St(Math.pow(u, 2), a);
1332
- return (-r(u) + _t > 0 ? -1 : 1) * ((m - p) * g) / b;
1332
+ return (-r(u) + Lt > 0 ? -1 : 1) * ((m - p) * g) / b;
1333
1333
  }) : (r = (u) => {
1334
1334
  const d = Math.exp(-u * n), h = (u - t) * n + 1;
1335
- return -_t + d * h;
1335
+ return -Lt + d * h;
1336
1336
  }, s = (u) => {
1337
1337
  const d = Math.exp(-u * n), h = (t - u) * (n * n);
1338
1338
  return d * h;
@@ -1402,18 +1402,18 @@ function tt(n = B.visualDuration, e = B.bounce) {
1402
1402
  velocity: -/* @__PURE__ */ le(t.velocity || 0)
1403
1403
  })), g = m || 0, b = u / (2 * Math.sqrt(l * d)), y = a - s, k = /* @__PURE__ */ le(Math.sqrt(l / d)), V = Math.abs(y) < 5;
1404
1404
  i || (i = V ? B.restSpeed.granular : B.restSpeed.default), r || (r = V ? B.restDelta.granular : B.restDelta.default);
1405
- let _;
1405
+ let L;
1406
1406
  if (b < 1) {
1407
1407
  const T = St(k, b);
1408
- _ = (D) => {
1408
+ L = (D) => {
1409
1409
  const C = Math.exp(-b * k * D);
1410
1410
  return a - C * ((g + b * k * y) / T * Math.sin(T * D) + y * Math.cos(T * D));
1411
1411
  };
1412
1412
  } else if (b === 1)
1413
- _ = (T) => a - Math.exp(-k * T) * (y + (g + k * y) * T);
1413
+ L = (T) => a - Math.exp(-k * T) * (y + (g + k * y) * T);
1414
1414
  else {
1415
1415
  const T = k * Math.sqrt(b * b - 1);
1416
- _ = (D) => {
1416
+ L = (D) => {
1417
1417
  const C = Math.exp(-b * k * D), w = Math.min(T * D, 300);
1418
1418
  return a - C * ((g + b * k * y) * Math.sinh(w) + T * y * Math.cosh(w)) / T;
1419
1419
  };
@@ -1421,12 +1421,12 @@ function tt(n = B.visualDuration, e = B.bounce) {
1421
1421
  const M = {
1422
1422
  calculatedDuration: p && h || null,
1423
1423
  next: (T) => {
1424
- const D = _(T);
1424
+ const D = L(T);
1425
1425
  if (p)
1426
1426
  o.done = T >= h;
1427
1427
  else {
1428
1428
  let C = T === 0 ? g : 0;
1429
- b < 1 && (C = T === 0 ? /* @__PURE__ */ ae(g) : Ri(_, T, D));
1429
+ b < 1 && (C = T === 0 ? /* @__PURE__ */ ae(g) : Ri(L, T, D));
1430
1430
  const w = Math.abs(C) <= i, R = Math.abs(a - D) <= r;
1431
1431
  o.done = w && R;
1432
1432
  }
@@ -1453,15 +1453,15 @@ function Ft({ keyframes: n, velocity: e = 0, power: t = 0.8, timeConstant: i = 3
1453
1453
  let b = t * e;
1454
1454
  const y = h + b, k = a === void 0 ? y : a(y);
1455
1455
  k !== y && (b = k - h);
1456
- const V = (w) => -b * Math.exp(-w / i), _ = (w) => k + V(w), M = (w) => {
1457
- const R = V(w), O = _(w);
1456
+ const V = (w) => -b * Math.exp(-w / i), L = (w) => k + V(w), M = (w) => {
1457
+ const R = V(w), O = L(w);
1458
1458
  m.done = Math.abs(R) <= u, m.value = m.done ? k : O;
1459
1459
  };
1460
1460
  let T, D;
1461
1461
  const C = (w) => {
1462
1462
  p(m.value) && (T = w, D = tt({
1463
1463
  keyframes: [m.value, g(m.value)],
1464
- velocity: Ri(_, w, m.value),
1464
+ velocity: Ri(L, w, m.value),
1465
1465
  // TODO: This should be passing * 1000
1466
1466
  damping: r,
1467
1467
  stiffness: s,
@@ -1642,13 +1642,13 @@ class mn extends pn {
1642
1642
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
1643
1643
  const k = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), V = this.playbackSpeed >= 0 ? k < 0 : k > r;
1644
1644
  this.currentTime = Math.max(k, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
1645
- let _ = this.currentTime, M = i;
1645
+ let L = this.currentTime, M = i;
1646
1646
  if (h) {
1647
1647
  const w = Math.min(this.currentTime, r) / o;
1648
1648
  let R = Math.floor(w), O = w % 1;
1649
- !O && w >= 1 && (O = 1), O === 1 && R--, R = Math.min(R, h + 1), !!(R % 2) && (m === "reverse" ? (O = 1 - O, p && (O -= p / o)) : m === "mirror" && (M = a)), _ = xe(0, 1, O) * o;
1649
+ !O && w >= 1 && (O = 1), O === 1 && R--, R = Math.min(R, h + 1), !!(R % 2) && (m === "reverse" ? (O = 1 - O, p && (O -= p / o)) : m === "mirror" && (M = a)), L = xe(0, 1, O) * o;
1650
1650
  }
1651
- const T = V ? { done: !1, value: d[0] } : M.next(_);
1651
+ const T = V ? { done: !1, value: d[0] } : M.next(L);
1652
1652
  s && (T.value = s(T.value));
1653
1653
  let { done: D } = T;
1654
1654
  !V && l !== null && (D = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
@@ -1783,7 +1783,7 @@ const ya = (n, e) => {
1783
1783
  function Ca(n) {
1784
1784
  return parseFloat(n.trim());
1785
1785
  }
1786
- const Bn = (n) => n === Ne || n === L, ka = /* @__PURE__ */ new Set(["x", "y", "z"]), Ea = Re.filter((n) => !ka.has(n));
1786
+ const Bn = (n) => n === Ne || n === _, ka = /* @__PURE__ */ new Set(["x", "y", "z"]), Ea = Re.filter((n) => !ka.has(n));
1787
1787
  function xa(n) {
1788
1788
  const e = [];
1789
1789
  return Ea.forEach((t) => {
@@ -1882,12 +1882,12 @@ function gn(n) {
1882
1882
  let e;
1883
1883
  return () => (e === void 0 && (e = n()), e);
1884
1884
  }
1885
- const _a = /* @__PURE__ */ gn(() => window.ScrollTimeline !== void 0), La = {};
1885
+ const La = /* @__PURE__ */ gn(() => window.ScrollTimeline !== void 0), _a = {};
1886
1886
  function Va(n, e) {
1887
1887
  const t = /* @__PURE__ */ gn(n);
1888
1888
  return () => {
1889
1889
  var i;
1890
- return (i = La[e]) != null ? i : t();
1890
+ return (i = _a[e]) != null ? i : t();
1891
1891
  };
1892
1892
  }
1893
1893
  const Yi = /* @__PURE__ */ Va(() => {
@@ -2023,7 +2023,7 @@ class Pa extends pn {
2023
2023
  */
2024
2024
  attachTimeline({ timeline: e, observe: t }) {
2025
2025
  var i;
2026
- return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, e && _a() ? (this.animation.timeline = e, De) : t(this);
2026
+ return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, e && La() ? (this.animation.timeline = e, De) : t(this);
2027
2027
  }
2028
2028
  }
2029
2029
  const Wi = {
@@ -2131,7 +2131,7 @@ class Ka extends pn {
2131
2131
  motionValue: u,
2132
2132
  element: d
2133
2133
  }, h), b = (d == null ? void 0 : d.KeyframeResolver) || fn;
2134
- this.keyframeResolver = new b(o, (k, V, _) => this.onKeyframesResolved(k, V, g, !_), l, u, d), (y = this.keyframeResolver) == null || y.scheduleResolve();
2134
+ this.keyframeResolver = new b(o, (k, V, L) => this.onKeyframesResolved(k, V, g, !L), l, u, d), (y = this.keyframeResolver) == null || y.scheduleResolve();
2135
2135
  }
2136
2136
  onKeyframesResolved(e, t, i, r) {
2137
2137
  this.keyframeResolver = void 0;
@@ -2257,9 +2257,9 @@ function Ha(n, e, { delay: t = 0, transitionOverride: i, type: r } = {}) {
2257
2257
  continue;
2258
2258
  let k = !1;
2259
2259
  if (window.MotionHandoffAnimation) {
2260
- const _ = fs(n);
2261
- if (_) {
2262
- const M = window.MotionHandoffAnimation(_, m, ue);
2260
+ const L = fs(n);
2261
+ if (L) {
2262
+ const M = window.MotionHandoffAnimation(L, m, ue);
2263
2263
  M !== null && (b.startTime = M, k = !0);
2264
2264
  }
2265
2265
  }
@@ -2373,7 +2373,7 @@ function no(n, e, t) {
2373
2373
  const tr = (n) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n), nr = (n) => /^0[^.\s]+$/u.test(n), io = {
2374
2374
  test: (n) => n === "auto",
2375
2375
  parse: (n) => n
2376
- }, ir = (n) => (e) => e.test(n), rr = [Ne, L, Me, me, Ms, Is, io], Gn = (n) => rr.find(ir(n)), ro = [...rr, U, Se], so = (n) => ro.find(ir(n)), ao = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2376
+ }, ir = (n) => (e) => e.test(n), rr = [Ne, _, Me, me, Ms, Is, io], Gn = (n) => rr.find(ir(n)), ro = [...rr, U, Se], so = (n) => ro.find(ir(n)), ao = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2377
2377
  function oo(n) {
2378
2378
  const [e, t] = n.slice(0, -1).split("(");
2379
2379
  if (e === "drop-shadow")
@@ -2404,55 +2404,55 @@ const lo = /\b([a-z-]*)\(.*?\)/gu, Ut = I(v({}, Se), {
2404
2404
  skew: me,
2405
2405
  skewX: me,
2406
2406
  skewY: me,
2407
- distance: L,
2408
- translateX: L,
2409
- translateY: L,
2410
- translateZ: L,
2411
- x: L,
2412
- y: L,
2413
- z: L,
2414
- perspective: L,
2415
- transformPerspective: L,
2407
+ distance: _,
2408
+ translateX: _,
2409
+ translateY: _,
2410
+ translateZ: _,
2411
+ x: _,
2412
+ y: _,
2413
+ z: _,
2414
+ perspective: _,
2415
+ transformPerspective: _,
2416
2416
  opacity: Qe,
2417
2417
  originX: In,
2418
2418
  originY: In,
2419
- originZ: L
2419
+ originZ: _
2420
2420
  }, vn = I(v({
2421
2421
  // Border props
2422
- borderWidth: L,
2423
- borderTopWidth: L,
2424
- borderRightWidth: L,
2425
- borderBottomWidth: L,
2426
- borderLeftWidth: L,
2427
- borderRadius: L,
2428
- radius: L,
2429
- borderTopLeftRadius: L,
2430
- borderTopRightRadius: L,
2431
- borderBottomRightRadius: L,
2432
- borderBottomLeftRadius: L,
2422
+ borderWidth: _,
2423
+ borderTopWidth: _,
2424
+ borderRightWidth: _,
2425
+ borderBottomWidth: _,
2426
+ borderLeftWidth: _,
2427
+ borderRadius: _,
2428
+ radius: _,
2429
+ borderTopLeftRadius: _,
2430
+ borderTopRightRadius: _,
2431
+ borderBottomRightRadius: _,
2432
+ borderBottomLeftRadius: _,
2433
2433
  // Positioning props
2434
- width: L,
2435
- maxWidth: L,
2436
- height: L,
2437
- maxHeight: L,
2438
- top: L,
2439
- right: L,
2440
- bottom: L,
2441
- left: L,
2434
+ width: _,
2435
+ maxWidth: _,
2436
+ height: _,
2437
+ maxHeight: _,
2438
+ top: _,
2439
+ right: _,
2440
+ bottom: _,
2441
+ left: _,
2442
2442
  // Spacing props
2443
- padding: L,
2444
- paddingTop: L,
2445
- paddingRight: L,
2446
- paddingBottom: L,
2447
- paddingLeft: L,
2448
- margin: L,
2449
- marginTop: L,
2450
- marginRight: L,
2451
- marginBottom: L,
2452
- marginLeft: L,
2443
+ padding: _,
2444
+ paddingTop: _,
2445
+ paddingRight: _,
2446
+ paddingBottom: _,
2447
+ paddingLeft: _,
2448
+ margin: _,
2449
+ marginTop: _,
2450
+ marginRight: _,
2451
+ marginBottom: _,
2452
+ marginLeft: _,
2453
2453
  // Misc
2454
- backgroundPositionX: L,
2455
- backgroundPositionY: L
2454
+ backgroundPositionX: _,
2455
+ backgroundPositionY: _
2456
2456
  }, co), {
2457
2457
  zIndex: Yn,
2458
2458
  // SVG
@@ -2887,7 +2887,7 @@ class To extends cr {
2887
2887
  function Ao(n, e) {
2888
2888
  return n in e;
2889
2889
  }
2890
- class _o extends or {
2890
+ class Lo extends or {
2891
2891
  constructor() {
2892
2892
  super(...arguments), this.type = "object";
2893
2893
  }
@@ -2916,7 +2916,7 @@ class _o extends or {
2916
2916
  return 0;
2917
2917
  }
2918
2918
  }
2919
- const Lo = {
2919
+ const _o = {
2920
2920
  offset: "stroke-dashoffset",
2921
2921
  array: "stroke-dasharray"
2922
2922
  }, Vo = {
@@ -2925,9 +2925,9 @@ const Lo = {
2925
2925
  };
2926
2926
  function Io(n, e, t = 1, i = 0, r = !0) {
2927
2927
  n.pathLength = 1;
2928
- const s = r ? Lo : Vo;
2929
- n[s.offset] = L.transform(-i);
2930
- const a = L.transform(e), o = L.transform(t);
2928
+ const s = r ? _o : Vo;
2929
+ n[s.offset] = _.transform(-i);
2930
+ const a = _.transform(e), o = _.transform(t);
2931
2931
  n[s.array] = `${a} ${o}`;
2932
2932
  }
2933
2933
  function Mo(n, h, l, u, d) {
@@ -3054,7 +3054,7 @@ function Fo(n) {
3054
3054
  },
3055
3055
  latestValues: {}
3056
3056
  }
3057
- }, t = new _o(e);
3057
+ }, t = new Lo(e);
3058
3058
  t.mount(n), Je.set(n, t);
3059
3059
  }
3060
3060
  function jo(n, e, t) {
@@ -3230,7 +3230,7 @@ const rl = "_checkout_mcuv2_1", sl = "_hidden_mcuv2_8", al = "_formInitial_mcuv2
3230
3230
  buttons: ll,
3231
3231
  hidden: cl,
3232
3232
  skeleton: dl
3233
- }, ul = "_applePay_1wlwu_1", hl = "_hidden_1wlwu_13", Lt = {
3233
+ }, ul = "_applePay_1wlwu_1", hl = "_hidden_1wlwu_13", _t = {
3234
3234
  applePay: ul,
3235
3235
  hidden: hl
3236
3236
  };
@@ -3692,10 +3692,10 @@ const bt = [
3692
3692
  }, Al = (n) => {
3693
3693
  var e, t;
3694
3694
  return (t = (e = Fe.find((i) => i.name === "Union Pay")) == null ? void 0 : e.pattern.test(n)) != null ? t : !1;
3695
- }, _l = (n) => {
3695
+ }, Ll = (n) => {
3696
3696
  var e, t;
3697
3697
  return (t = (e = Fe.find((i) => i.name === "Maestro")) == null ? void 0 : e.pattern.test(n)) != null ? t : !1;
3698
- }, yr = (n) => bt.find((e) => e.pattern.test(n)) || null, ii = (n) => bt.filter((e) => e.pattern.test(n)), Ll = (n) => {
3698
+ }, yr = (n) => bt.find((e) => e.pattern.test(n)) || null, ii = (n) => bt.filter((e) => e.pattern.test(n)), _l = (n) => {
3699
3699
  let e = 0, t = !1;
3700
3700
  for (let i = n.length - 1; i >= 0; i--) {
3701
3701
  let r = parseInt(n[i]);
@@ -3708,7 +3708,7 @@ const bt = [
3708
3708
  return { isValid: !1, cardType: null, error: Y.Empty };
3709
3709
  if (!/^\d+$/.test(t))
3710
3710
  return { isValid: !1, cardType: null, error: Y.Invalid };
3711
- if (El(t) || xl(t) || wl(t) || Tl(t) || Al(t) || _l(t))
3711
+ if (El(t) || xl(t) || wl(t) || Tl(t) || Al(t) || Ll(t))
3712
3712
  return { isValid: !1, cardType: null, error: Y.Unsupported };
3713
3713
  const i = yr(t);
3714
3714
  if (i) {
@@ -3728,7 +3728,7 @@ const bt = [
3728
3728
  isValid: !1,
3729
3729
  cardType: i.name,
3730
3730
  error: Y.Unsupported
3731
- } : Ll(t) ? {
3731
+ } : _l(t) ? {
3732
3732
  isValid: !0,
3733
3733
  cardType: (i == null ? void 0 : i.name) || null,
3734
3734
  error: null
@@ -3937,7 +3937,7 @@ function Nl() {
3937
3937
  ), f.$$typeof) {
3938
3938
  case g:
3939
3939
  return "Portal";
3940
- case _:
3940
+ case L:
3941
3941
  return (f.displayName || "Context") + ".Provider";
3942
3942
  case V:
3943
3943
  return (f._context.displayName || "Context") + ".Consumer";
@@ -3987,7 +3987,7 @@ function Nl() {
3987
3987
  }
3988
3988
  }
3989
3989
  function r() {
3990
- var f = K.A;
3990
+ var f = q.A;
3991
3991
  return f === null ? null : f.getOwner();
3992
3992
  }
3993
3993
  function s() {
@@ -4018,7 +4018,7 @@ function Nl() {
4018
4018
  "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."
4019
4019
  )), f = this.props.ref, f !== void 0 ? f : null;
4020
4020
  }
4021
- function u(f, P, N, H, ie, X, Ae, _e) {
4021
+ function u(f, P, N, H, ie, X, Ae, Le) {
4022
4022
  return N = X.ref, f = {
4023
4023
  $$typeof: p,
4024
4024
  type: f,
@@ -4047,10 +4047,10 @@ function Nl() {
4047
4047
  configurable: !1,
4048
4048
  enumerable: !1,
4049
4049
  writable: !0,
4050
- value: _e
4050
+ value: Le
4051
4051
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
4052
4052
  }
4053
- function d(f, P, N, H, ie, X, Ae, _e) {
4053
+ function d(f, P, N, H, ie, X, Ae, Le) {
4054
4054
  var z = P.children;
4055
4055
  if (z !== void 0)
4056
4056
  if (H)
@@ -4097,13 +4097,13 @@ React keys must be passed directly to JSX without using spread:
4097
4097
  r(),
4098
4098
  N,
4099
4099
  Ae,
4100
- _e
4100
+ Le
4101
4101
  );
4102
4102
  }
4103
4103
  function h(f) {
4104
4104
  typeof f == "object" && f !== null && f.$$typeof === p && f._store && (f._store.validated = 1);
4105
4105
  }
4106
- var m = xr, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), K = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Te = Object.prototype.hasOwnProperty, te = Array.isArray, fe = console.createTask ? console.createTask : function() {
4106
+ var m = xr, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), L = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), q = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Te = Object.prototype.hasOwnProperty, te = Array.isArray, fe = console.createTask ? console.createTask : function() {
4107
4107
  return null;
4108
4108
  };
4109
4109
  m = {
@@ -4116,7 +4116,7 @@ React keys must be passed directly to JSX without using spread:
4116
4116
  s
4117
4117
  )(), at = fe(i(s)), ne = {};
4118
4118
  Ye.Fragment = b, Ye.jsx = function(f, P, N, H, ie) {
4119
- var X = 1e4 > K.recentlyCreatedOwnerStacks++;
4119
+ var X = 1e4 > q.recentlyCreatedOwnerStacks++;
4120
4120
  return d(
4121
4121
  f,
4122
4122
  P,
@@ -4128,7 +4128,7 @@ React keys must be passed directly to JSX without using spread:
4128
4128
  X ? fe(i(f)) : at
4129
4129
  );
4130
4130
  }, Ye.jsxs = function(f, P, N, H, ie) {
4131
- var X = 1e4 > K.recentlyCreatedOwnerStacks++;
4131
+ var X = 1e4 > q.recentlyCreatedOwnerStacks++;
4132
4132
  return d(
4133
4133
  f,
4134
4134
  P,
@@ -4161,7 +4161,7 @@ class jl {
4161
4161
  constructor(e) {
4162
4162
  c(this, "element");
4163
4163
  c(this, "events", {
4164
- ready: new q()
4164
+ ready: new K()
4165
4165
  });
4166
4166
  c(this, "ev");
4167
4167
  c(this, "customButtonStyles");
@@ -4169,7 +4169,7 @@ class jl {
4169
4169
  c(this, "onPaymentAttempt");
4170
4170
  this.config = e;
4171
4171
  const t = this.config.state.styles.getState().ApplePayButton;
4172
- this.onPaymentAttempt = this.config.state.checkout.getState().onCheckoutAttempt, this.ev = this.config.service.ev, this.customButtonStyles = t, this.element = document.createElement("div"), this.element.classList.add(Lt.applePay, Lt.hidden);
4172
+ this.onPaymentAttempt = this.config.state.checkout.getState().onCheckoutAttempt, this.ev = this.config.service.ev, this.customButtonStyles = t, this.element = document.createElement("div"), this.element.classList.add(_t.applePay, _t.hidden);
4173
4173
  }
4174
4174
  init(e) {
4175
4175
  return E(this, null, function* () {
@@ -4200,7 +4200,7 @@ class jl {
4200
4200
  onPaymentAttempt: this.onPaymentAttempt
4201
4201
  }),
4202
4202
  this.customButtonStyles
4203
- ), this.ev.isAppleAvailable() ? (yield this.ev.renderApple(this.element), this.isInitialized = !0, this.element.classList.remove(Lt.hidden), this.events.ready.emit(), !0) : !1;
4203
+ ), this.ev.isAppleAvailable() ? (yield this.ev.renderApple(this.element), this.isInitialized = !0, this.element.classList.remove(_t.hidden), this.events.ready.emit(), !0) : !1;
4204
4204
  });
4205
4205
  }
4206
4206
  addEventListener(e, t) {
@@ -4216,7 +4216,7 @@ const Bl = [
4216
4216
  { type: x.GOOGLE_PAY, is_active: !1, order: 3 },
4217
4217
  { type: x.VENMO, is_active: !1, order: 4 },
4218
4218
  { type: x.CARD, is_active: !0, order: 5 }
4219
- ], Le = {
4219
+ ], _e = {
4220
4220
  open: { y: 0, opacity: 1 },
4221
4221
  close: { y: 100, opacity: 0 },
4222
4222
  transition: { duration: 0.25, ease: "easeOut" }
@@ -4240,7 +4240,7 @@ class Kl {
4240
4240
  constructor(e) {
4241
4241
  c(this, "element");
4242
4242
  c(this, "events", {
4243
- ready: new q()
4243
+ ready: new K()
4244
4244
  });
4245
4245
  c(this, "ev");
4246
4246
  c(this, "customButtonStyles");
@@ -4293,8 +4293,8 @@ class Gl {
4293
4293
  constructor(e) {
4294
4294
  c(this, "element");
4295
4295
  c(this, "events", {
4296
- ready: new q(),
4297
- onPaymentAttempt: new q()
4296
+ ready: new K(),
4297
+ onPaymentAttempt: new K()
4298
4298
  });
4299
4299
  c(this, "paypal");
4300
4300
  c(this, "customButtonStyles");
@@ -4486,8 +4486,8 @@ class nc {
4486
4486
  c(this, "container");
4487
4487
  c(this, "venmoButton");
4488
4488
  c(this, "events", {
4489
- ready: new q(),
4490
- onPaymentAttempt: new q()
4489
+ ready: new K(),
4490
+ onPaymentAttempt: new K()
4491
4491
  });
4492
4492
  c(this, "braintree");
4493
4493
  c(this, "isInitialized", !1);
@@ -4571,12 +4571,13 @@ class ic {
4571
4571
  c(this, "card");
4572
4572
  c(this, "braintree");
4573
4573
  c(this, "events", {
4574
- ready: new q(),
4575
- open: new q(),
4576
- error: new q(),
4577
- cancel: new q(),
4578
- success: new q(),
4579
- onPaymentAttempt: new q()
4574
+ onFormLoaded: new K(),
4575
+ ready: new K(),
4576
+ open: new K(),
4577
+ error: new K(),
4578
+ cancel: new K(),
4579
+ success: new K(),
4580
+ onPaymentAttempt: new K()
4580
4581
  });
4581
4582
  this.config = e, this.buttons = document.createElement("div"), this.buttons.classList.add(be.buttons, be.hidden);
4582
4583
  }
@@ -4740,7 +4741,9 @@ class ic {
4740
4741
  let r = t.filter(({ is_active: a }) => a);
4741
4742
  (i == null ? void 0 : i.variant) === "default" && (r = r.filter(({ type: a }) => a !== x.CARD));
4742
4743
  const s = this.initializeButtonInstances(r);
4743
- Promise.allSettled(s), this.handleReady();
4744
+ Promise.all(s).then(() => {
4745
+ this.handleOnFormLoaded();
4746
+ }), this.handleReady();
4744
4747
  });
4745
4748
  }
4746
4749
  // initialize button instances
@@ -4773,6 +4776,10 @@ class ic {
4773
4776
  handleReady() {
4774
4777
  this.events.ready.emit();
4775
4778
  }
4779
+ // handle on form loaded
4780
+ handleOnFormLoaded() {
4781
+ this.events.onFormLoaded.emit();
4782
+ }
4776
4783
  // add event listener
4777
4784
  addEventListener(e, t) {
4778
4785
  return this.events[e].addListener(t);
@@ -4907,7 +4914,7 @@ class Tc {
4907
4914
  c(this, "isDisabled", !1);
4908
4915
  c(this, "isChanged", !1);
4909
4916
  c(this, "events", {
4910
- change: new q()
4917
+ change: new K()
4911
4918
  });
4912
4919
  var r, s, a, o, l, u, d, h, m;
4913
4920
  const i = e.messages();
@@ -4963,10 +4970,10 @@ class Tc {
4963
4970
  return this.toggleLabelError(i), this.isDisabled ? (this.inputContainer.classList.add($.disabled), this.input.classList.add($.disabledInput)) : (this.inputContainer.classList.remove($.disabled), this.input.classList.remove($.disabledInput)), this.element;
4964
4971
  }
4965
4972
  }
4966
- const Ac = "_wrapper_1xw0g_1", _c = "_inputContainer_1xw0g_5", Lc = "_disabled_1xw0g_23", Vc = "_input_1xw0g_5", Ic = "_endContent_1xw0g_39", Mc = "_errorInput_1xw0g_18", Pc = "_error_1xw0g_18", Dc = "_label_1xw0g_56", Rc = "_labelError_1xw0g_67", Oc = "_disabledInput_1xw0g_75", Nc = "_hidden_1xw0g_82", j = {
4973
+ const Ac = "_wrapper_1xw0g_1", Lc = "_inputContainer_1xw0g_5", _c = "_disabled_1xw0g_23", Vc = "_input_1xw0g_5", Ic = "_endContent_1xw0g_39", Mc = "_errorInput_1xw0g_18", Pc = "_error_1xw0g_18", Dc = "_label_1xw0g_56", Rc = "_labelError_1xw0g_67", Oc = "_disabledInput_1xw0g_75", Nc = "_hidden_1xw0g_82", j = {
4967
4974
  wrapper: Ac,
4968
- inputContainer: _c,
4969
- disabled: Lc,
4975
+ inputContainer: Lc,
4976
+ disabled: _c,
4970
4977
  input: Vc,
4971
4978
  endContent: Ic,
4972
4979
  errorInput: Mc,
@@ -5112,7 +5119,7 @@ class Bc {
5112
5119
  c(this, "isDisabled", !1);
5113
5120
  c(this, "isChanged", !1);
5114
5121
  c(this, "events", {
5115
- change: new q()
5122
+ change: new K()
5116
5123
  });
5117
5124
  var r, s, a, o, l, u, d, h, m;
5118
5125
  this.translate = e;
@@ -5281,10 +5288,10 @@ class Qc {
5281
5288
  c(this, "isCvcRequired", !1);
5282
5289
  c(this, "isCvcChanged", !1);
5283
5290
  c(this, "events", {
5284
- expiryChange: new q(),
5285
- cvcChange: new q()
5291
+ expiryChange: new K(),
5292
+ cvcChange: new K()
5286
5293
  });
5287
- var a, o, l, u, d, h, m, p, g, b, y, k, V, _, M, T, D;
5294
+ var a, o, l, u, d, h, m, p, g, b, y, k, V, L, M, T, D;
5288
5295
  this.translate = e;
5289
5296
  const i = e.messages();
5290
5297
  this.element = document.createElement("div"), this.element.classList.add(A.securityContent), this.expiryInputContainer.classList.add(A.inputContainer), (a = t == null ? void 0 : t.container) != null && a.className && F(this.expiryInputContainer, t.container.className), (o = t == null ? void 0 : t.container) != null && o.styles && Object.assign(this.expiryInputContainer.style, t.container.styles), this.expiryInput.setAttribute("id", this.expiryId), this.expiryInput.setAttribute("autocomplete", "cc-exp"), this.expiryInput.setAttribute("placeholder", i.card.expiry.placeholder), this.expiryInput.setAttribute("inputmode", "numeric"), this.expiryInput.setAttribute("pattern", "[0-9]*"), this.expiryInput.setAttribute("enterkeyhint", "next"), this.expiryInput.classList.add(A.input), (l = t == null ? void 0 : t.field) != null && l.className && F(this.expiryInput, t.field.className), (u = t == null ? void 0 : t.field) != null && u.styles && Object.assign(this.expiryInput.style, t.field.styles), this.expiryEndContent.classList.add(A.endContent), this.expiryEndContent.appendChild(this.expiryWarning.render()), this.expiryInputContainer.append(this.expiryInput, this.expiryEndContent), this.expiryLabel.setAttribute("for", this.expiryId), this.expiryLabel.classList.add(A.label), (d = t == null ? void 0 : t.label) != null && d.className && F(this.expiryLabel, t.label.className), (h = t == null ? void 0 : t.label) != null && h.styles && Object.assign(this.expiryLabel.style, t.label.styles), this.expiryLabelText.contentEditable = "false", this.expiryLabelText.textContent = i.card.expiry.label, this.expiryLabelError.textContent = i.card.required, this.expiryLabelError.classList.add(A.labelError, A.hidden), this.expiryLabel.append(this.expiryLabelText, this.expiryLabelError), this.expiryError.classList.add(A.error, A.hidden), (m = t == null ? void 0 : t.error) != null && m.className && F(this.expiryError, t.error.className), (p = t == null ? void 0 : t.error) != null && p.styles && Object.assign(this.expiryError.style, t.error.styles);
@@ -5293,7 +5300,7 @@ class Qc {
5293
5300
  const C = (R) => R.replace(/[A-Z]/g, (O) => "-" + O.toLowerCase()), w = Object.entries(t.placeholder.styles).map(([R, O]) => `${C(R)}:${O};`).join("");
5294
5301
  this.placeholderStyle.textContent = `#${this.expiryId}::placeholder{${w}}#${this.cvcId}::placeholder{${w}}`, this.element.appendChild(this.placeholderStyle);
5295
5302
  }
5296
- this.cvcEndContent.classList.add(A.endContent), this.cvcEndContent.appendChild(this.cardCvc.render()), this.cvcInputContainer.append(this.cvcInput, this.cvcEndContent), this.cvcLabel.setAttribute("for", this.cvcId), this.cvcLabel.classList.add(A.label), (_ = t == null ? void 0 : t.label) != null && _.className && F(this.cvcLabel, t.label.className), (M = t == null ? void 0 : t.label) != null && M.styles && Object.assign(this.cvcLabel.style, t.label.styles), this.cvcLabelText.textContent = i.card.cvc.label, this.cvcLabelError.textContent = i.card.required, this.cvcLabelError.classList.add(A.labelError, A.hidden), (T = t == null ? void 0 : t.error) != null && T.className && F(this.cvcLabel, t.error.className), (D = t == null ? void 0 : t.error) != null && D.styles && Object.assign(this.cvcLabelError.style, t.error.styles), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(A.error, A.hidden);
5303
+ this.cvcEndContent.classList.add(A.endContent), this.cvcEndContent.appendChild(this.cardCvc.render()), this.cvcInputContainer.append(this.cvcInput, this.cvcEndContent), this.cvcLabel.setAttribute("for", this.cvcId), this.cvcLabel.classList.add(A.label), (L = t == null ? void 0 : t.label) != null && L.className && F(this.cvcLabel, t.label.className), (M = t == null ? void 0 : t.label) != null && M.styles && Object.assign(this.cvcLabel.style, t.label.styles), this.cvcLabelText.textContent = i.card.cvc.label, this.cvcLabelError.textContent = i.card.required, this.cvcLabelError.classList.add(A.labelError, A.hidden), (T = t == null ? void 0 : t.error) != null && T.className && F(this.cvcLabel, t.error.className), (D = t == null ? void 0 : t.error) != null && D.styles && Object.assign(this.cvcLabelError.style, t.error.styles), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(A.error, A.hidden);
5297
5304
  const s = document.createElement("div");
5298
5305
  s.appendChild(this.cvcError), this.element.append(
5299
5306
  this.expiryLabel,
@@ -5462,8 +5469,8 @@ class ed {
5462
5469
  c(this, "onPaymentAttempt");
5463
5470
  c(this, "isBackVisible", !0);
5464
5471
  c(this, "events", {
5465
- submit: new q(),
5466
- close: new q()
5472
+ submit: new K(),
5473
+ close: new K()
5467
5474
  });
5468
5475
  const a = i.getState();
5469
5476
  this.element = document.createElement("form"), this.onPaymentAttempt = s, this.submit = new hc(e, a.SubmitButton), this.back = new oc(a.BackButton), this.number = new Bc(e, a.Input), this.name = new Tc(e, a.Input), this.cardSecurity = new Qc(e, a.Input), this.element.classList.add(ve.cardForm), t && F(this.element, t);
@@ -5644,18 +5651,20 @@ class od {
5644
5651
  var i;
5645
5652
  const t = this.config.state.checkout.getState();
5646
5653
  (i = t.onCheckoutAttempt) == null || i.call(t, { paymentMethod: e }), this.hideError();
5654
+ }), this.buttons.addEventListener("onFormLoaded", () => {
5655
+ const { onCheckoutLoaded: e } = this.config.state.checkout.getState();
5656
+ !this.hasLoadedOnce && e && (this.hasLoadedOnce = !0, e({ success: !0 }));
5647
5657
  }), this.buttons.addEventListener("ready", () => E(this, null, function* () {
5648
- var i;
5658
+ var t;
5649
5659
  this.loader.setClassName(Z.hidden);
5650
- const { variant: e, onCheckoutLoaded: t } = this.config.state.checkout.getState();
5660
+ const { variant: e } = this.config.state.checkout.getState();
5651
5661
  if (this.form.setDefaultVariant(e === "default"), this.buttons.showButton(), e === "default") {
5652
- const r = this.checkout.getBoundingClientRect().height;
5653
- r < this.FORM_HEIGHT && (this.checkout.style.height = `${r}px`), this.form.element.classList.remove(Z.hidden), r < this.FORM_HEIGHT && (yield (i = this.checkout.animate(
5654
- { minHeight: [`${r}px`, `${this.FORM_HEIGHT}px`] },
5662
+ const i = this.checkout.getBoundingClientRect().height;
5663
+ i < this.FORM_HEIGHT && (this.checkout.style.height = `${i}px`), this.form.element.classList.remove(Z.hidden), i < this.FORM_HEIGHT && (yield (t = this.checkout.animate(
5664
+ { minHeight: [`${i}px`, `${this.FORM_HEIGHT}px`] },
5655
5665
  { duration: 250, easing: "ease-out", fill: "forwards" }
5656
- ).finished) != null ? i : Promise.resolve(), this.checkout.style.height = ""), this.isFormOpen = !0;
5666
+ ).finished) != null ? t : Promise.resolve(), this.checkout.style.height = ""), this.isFormOpen = !0;
5657
5667
  }
5658
- !this.hasLoadedOnce && t && (this.hasLoadedOnce = !0, t({ success: !0 }));
5659
5668
  })), this.buttons.addEventListener("open", () => E(this, null, function* () {
5660
5669
  var r;
5661
5670
  if (this.isLoading) return;
@@ -5668,7 +5677,7 @@ class od {
5668
5677
  { minHeight: [`${t}px`, `${this.FORM_HEIGHT}px`] },
5669
5678
  { duration: 250, easing: "ease-out", fill: "forwards" }
5670
5679
  ).finished) != null ? r : Promise.resolve()), yield Promise.all([
5671
- G(this.form.element, Le.open, Le.transition),
5680
+ G(this.form.element, _e.open, _e.transition),
5672
5681
  i != null ? i : Promise.resolve()
5673
5682
  ]), t < this.FORM_HEIGHT && (this.checkout.style.height = ""), this.isFormOpen = !0;
5674
5683
  })), this.buttons.addEventListener("error", (e) => {
@@ -5707,7 +5716,7 @@ class od {
5707
5716
  this.closedHeight > 0 && e > this.closedHeight && (this.checkout.style.height = `${e}px`, t = (s = this.checkout.animate(
5708
5717
  { minHeight: [`${e}px`, `${this.closedHeight}px`] },
5709
5718
  { duration: 250, easing: "ease-out", fill: "forwards" }
5710
- ).finished) != null ? s : Promise.resolve()), yield G(this.form.element, Le.close, Le.transition), this.form.element.classList.add(Z.hidden);
5719
+ ).finished) != null ? s : Promise.resolve()), yield G(this.form.element, _e.close, _e.transition), this.form.element.classList.add(Z.hidden);
5711
5720
  const { variant: r } = this.config.state.checkout.getState();
5712
5721
  if (r !== "default") {
5713
5722
  this.buttons.buttons.classList.add(Z.btnsInitial), this.buttons.buttons.classList.remove(Z.hidden);
@@ -5791,7 +5800,7 @@ class od {
5791
5800
  // show success
5792
5801
  showSuccess() {
5793
5802
  return E(this, null, function* () {
5794
- this.container.classList.add(Z.hidden), this.success.removeClassName(Z.hidden), yield G(this.success.element, Le.open, Le.transition);
5803
+ this.container.classList.add(Z.hidden), this.success.removeClassName(Z.hidden), yield G(this.success.element, _e.open, _e.transition);
5795
5804
  });
5796
5805
  }
5797
5806
  // hide error
@@ -5871,7 +5880,7 @@ class Ct {
5871
5880
  constructor(e) {
5872
5881
  c(this, "initialState");
5873
5882
  c(this, "state");
5874
- c(this, "observer", new q());
5883
+ c(this, "observer", new K());
5875
5884
  this.initialState = e, this.state = e;
5876
5885
  }
5877
5886
  getState() {
@@ -6484,7 +6493,7 @@ const md = {
6484
6493
  error: "Vaš način plaćanja je odbijen. To može biti zbog nedovoljnih sredstava, isteklih podataka o plaćanju ili sigurnosnih ograničenja. Molimo provjerite svoje podatke o plaćanju ili pokušajte s drugim načinom plaćanja.",
6485
6494
  invalidSession: "Vaša sesija plaćanja je istekla. Molimo osvježite stranicu za nastavak."
6486
6495
  }
6487
- }, _d = {
6496
+ }, Ld = {
6488
6497
  card: {
6489
6498
  required: "KÖTELEZŐ",
6490
6499
  number: {
@@ -6527,7 +6536,7 @@ const md = {
6527
6536
  error: "A fizetési módot elutasították. Ez annak köszönhető, hogy nincs elegendő fedezet, lejártak a fizetési adatok, vagy biztonsági korlátozások léptek életbe. Ellenőrizze a fizetési adatait, vagy próbáljon meg másik fizetési módot használni.",
6528
6537
  invalidSession: "A fizetési munkamenete lejárt. Frissítse az oldalt a folytatáshoz."
6529
6538
  }
6530
- }, Ld = {
6539
+ }, _d = {
6531
6540
  card: {
6532
6541
  required: "WAJIB",
6533
6542
  number: {
@@ -7487,8 +7496,8 @@ const md = {
7487
7496
  fil: wd,
7488
7497
  fr: Td,
7489
7498
  hr: Ad,
7490
- hu: _d,
7491
- id: Ld,
7499
+ hu: Ld,
7500
+ id: _d,
7492
7501
  it: Vd,
7493
7502
  ja: Id,
7494
7503
  ko: Md,