@paynext/sdk 0.0.66 → 0.0.68

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
@@ -1,12 +1,12 @@
1
1
  var Zn = Object.defineProperty, Xn = Object.defineProperties;
2
2
  var Jn = Object.getOwnPropertyDescriptors;
3
- var pa = Object.getOwnPropertySymbols;
3
+ var ha = Object.getOwnPropertySymbols;
4
4
  var Ft = Object.prototype.hasOwnProperty, Bt = Object.prototype.propertyIsEnumerable;
5
5
  var Na = (t, e, a) => e in t ? Zn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, K = (t, e) => {
6
6
  for (var a in e || (e = {}))
7
7
  Ft.call(e, a) && Na(t, a, e[a]);
8
- if (pa)
9
- for (var a of pa(e))
8
+ if (ha)
9
+ for (var a of ha(e))
10
10
  Bt.call(e, a) && Na(t, a, e[a]);
11
11
  return t;
12
12
  }, ee = (t, e) => Xn(t, Jn(e));
@@ -14,8 +14,8 @@ var ke = (t, e) => {
14
14
  var a = {};
15
15
  for (var r in t)
16
16
  Ft.call(t, r) && e.indexOf(r) < 0 && (a[r] = t[r]);
17
- if (t != null && pa)
18
- for (var r of pa(t))
17
+ if (t != null && ha)
18
+ for (var r of ha(t))
19
19
  e.indexOf(r) < 0 && Bt.call(t, r) && (a[r] = t[r]);
20
20
  return a;
21
21
  };
@@ -37,19 +37,43 @@ var H = (t, e, a) => new Promise((r, i) => {
37
37
  o((a = a.apply(t, e)).next());
38
38
  });
39
39
  import ei from "react";
40
- let ha = null;
40
+ class Zu {
41
+ constructor(e) {
42
+ A(this, "parent");
43
+ A(this, "core");
44
+ typeof window != "undefined" && (this.parent = e);
45
+ }
46
+ mount(e) {
47
+ return H(this, null, function* () {
48
+ if (!this.parent)
49
+ return;
50
+ if (!this.core) {
51
+ const i = (yield import("./index-C6qOiJ-j.js")).Core;
52
+ this.core = new i();
53
+ }
54
+ const a = yield this.core.checkout.mount();
55
+ this.parent.innerHTML = "", this.parent.appendChild(a), this.core.state.checkout.setState(e);
56
+ });
57
+ }
58
+ unmount() {
59
+ return H(this, null, function* () {
60
+ !this.parent || !this.core || (this.parent.innerHTML = "", this.core.clearState());
61
+ });
62
+ }
63
+ }
64
+ let ma = null;
41
65
  function ai() {
42
66
  return H(this, null, function* () {
43
- return ha || (ha = new Promise((t, e) => {
67
+ return ma || (ma = new Promise((t, e) => {
44
68
  const a = document.createElement("script");
45
69
  if (a.src = "https://js.evervault.com/v2", a.onload = () => t(), a.onerror = () => {
46
- ha = null, e();
70
+ ma = null, e();
47
71
  }, !document.head)
48
72
  throw new Error(
49
73
  "Expected document.head not to be null. Evervault.js requires a <head> element."
50
74
  );
51
75
  document.head.appendChild(a);
52
- }), ha);
76
+ }), ma);
53
77
  });
54
78
  }
55
79
  function Mr() {
@@ -283,7 +307,7 @@ function Ut(t, e, a, r) {
283
307
  var i;
284
308
  return typeof e == "number" ? e : e.startsWith("-") || e.startsWith("+") ? Math.max(0, t + parseFloat(e)) : e === "<" ? a : (i = r.get(e)) != null ? i : t;
285
309
  }
286
- const sa = (t, e, a) => t + (e - t) * a, di = (t, e, a) => {
310
+ const la = (t, e, a) => t + (e - t) * a, di = (t, e, a) => {
287
311
  const r = e - t;
288
312
  return ((a - t) % r + r) % r + t;
289
313
  }, Vr = (t) => Array.isArray(t) && typeof t[0] != "number";
@@ -308,7 +332,7 @@ function pi(t, e, a, r, i, n) {
308
332
  for (let s = 0; s < e.length; s++)
309
333
  t.push({
310
334
  value: e[s],
311
- at: sa(i, n, r[s]),
335
+ at: la(i, n, r[s]),
312
336
  easing: Fr(a, s)
313
337
  });
314
338
  }
@@ -327,7 +351,7 @@ function Ur(t, e) {
327
351
  const a = t[t.length - 1];
328
352
  for (let r = 1; r <= e; r++) {
329
353
  const i = /* @__PURE__ */ it(0, e, r);
330
- t.push(sa(a, 1, i));
354
+ t.push(la(a, 1, i));
331
355
  }
332
356
  }
333
357
  function Kr(t) {
@@ -346,21 +370,21 @@ function st(t) {
346
370
  e += a, r = t.next(e);
347
371
  return e >= ba ? 1 / 0 : e;
348
372
  }
349
- const be = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Ce = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
373
+ const be = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Ee = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
350
374
  function qr(t, e = 100, a) {
351
375
  const r = a(ee(K({}, t), { keyframes: [0, e] })), i = Math.min(st(r), ba);
352
376
  return {
353
377
  type: "keyframes",
354
378
  ease: (n) => r.next(i * n).value / e,
355
- duration: /* @__PURE__ */ Ce(i)
379
+ duration: /* @__PURE__ */ Ee(i)
356
380
  };
357
381
  }
358
- let la = () => {
359
- }, Ee = () => {
382
+ let da = () => {
383
+ }, Te = () => {
360
384
  };
361
- process.env.NODE_ENV !== "production" && (la = (t, e) => {
385
+ process.env.NODE_ENV !== "production" && (da = (t, e) => {
362
386
  !t && typeof console != "undefined" && console.warn(e);
363
- }, Ee = (t, e) => {
387
+ }, Te = (t, e) => {
364
388
  if (!t)
365
389
  throw new Error(e);
366
390
  });
@@ -401,7 +425,7 @@ function vi(t, n = {}, r, i) {
401
425
  F.length === 1 && F[0] === 0 && (F[1] = 1);
402
426
  const k = F.length - Y.length;
403
427
  if (k > 0 && Ur(F, k), Y.length === 1 && Y.unshift(null), J) {
404
- Ee(J < fi, "Repeat count too high, must be less than 20"), v = li(v, J);
428
+ Te(J < fi, "Repeat count too high, must be less than 20"), v = li(v, J);
405
429
  const C = [...Y], V = [...F];
406
430
  b = Array.isArray(b) ? [...b] : [b];
407
431
  const $ = [...b];
@@ -463,7 +487,7 @@ function gi(t) {
463
487
  function Pi(t, e) {
464
488
  return t && t[e] ? K(K({}, t), t[e]) : K({}, t);
465
489
  }
466
- const ki = (t) => typeof t == "number", bi = (t) => t.every(ki), ta = /* @__PURE__ */ new WeakMap(), Ai = (t) => Array.isArray(t);
490
+ const ki = (t) => typeof t == "number", bi = (t) => t.every(ki), ra = /* @__PURE__ */ new WeakMap(), Ai = (t) => Array.isArray(t);
467
491
  function Ht(t) {
468
492
  const e = [{}, {}];
469
493
  return t == null || t.values.forEach((a, r) => {
@@ -485,7 +509,7 @@ function Ci(t, e, a) {
485
509
  const r = t.getProps();
486
510
  return Hr(r, e, r.custom, t);
487
511
  }
488
- const ma = [
512
+ const ya = [
489
513
  "setup",
490
514
  // Compute
491
515
  "read",
@@ -541,34 +565,34 @@ function Ei(t, e) {
541
565
  };
542
566
  return d;
543
567
  }
544
- const Te = {}, Ti = 40;
568
+ const Ie = {}, Ti = 40;
545
569
  function Ii(t, e) {
546
570
  let a = !1, r = !0;
547
571
  const i = {
548
572
  delta: 0,
549
573
  timestamp: 0,
550
574
  isProcessing: !1
551
- }, n = () => a = !0, s = ma.reduce((N, _) => (N[_] = Ei(n), N), {}), { setup: o, read: l, resolveKeyframes: d, preUpdate: c, update: u, preRender: h, render: p, postRender: m } = s, y = () => {
552
- const N = Te.useManualTiming ? i.timestamp : performance.now();
553
- a = !1, Te.useManualTiming || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(N - i.timestamp, Ti), 1)), i.timestamp = N, i.isProcessing = !0, o.process(i), l.process(i), d.process(i), c.process(i), u.process(i), h.process(i), p.process(i), m.process(i), i.isProcessing = !1, a && e && (r = !1, t(y));
575
+ }, n = () => a = !0, s = ya.reduce((N, _) => (N[_] = Ei(n), N), {}), { setup: o, read: l, resolveKeyframes: d, preUpdate: c, update: u, preRender: h, render: p, postRender: m } = s, y = () => {
576
+ const N = Ie.useManualTiming ? i.timestamp : performance.now();
577
+ a = !1, Ie.useManualTiming || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(N - i.timestamp, Ti), 1)), i.timestamp = N, i.isProcessing = !0, o.process(i), l.process(i), d.process(i), c.process(i), u.process(i), h.process(i), p.process(i), m.process(i), i.isProcessing = !1, a && e && (r = !1, t(y));
554
578
  }, f = () => {
555
579
  a = !0, r = !0, i.isProcessing || t(y);
556
580
  };
557
- return { schedule: ma.reduce((N, _) => {
581
+ return { schedule: ya.reduce((N, _) => {
558
582
  const I = s[_];
559
583
  return N[_] = (O, w = !1, x = !1) => (a || f(), I.schedule(O, w, x)), N;
560
584
  }, {}), cancel: (N) => {
561
- for (let _ = 0; _ < ma.length; _++)
562
- s[ma[_]].cancel(N);
585
+ for (let _ = 0; _ < ya.length; _++)
586
+ s[ya[_]].cancel(N);
563
587
  }, state: i, steps: s };
564
588
  }
565
- const Fe = /* @__NO_SIDE_EFFECTS__ */ (t) => t, { schedule: Ie, cancel: Fa, state: Aa } = /* @__PURE__ */ Ii(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : Fe, !0);
589
+ const Be = /* @__NO_SIDE_EFFECTS__ */ (t) => t, { schedule: Ne, cancel: Fa, state: Aa } = /* @__PURE__ */ Ii(typeof requestAnimationFrame != "undefined" ? requestAnimationFrame : Be, !0);
566
590
  let ka;
567
591
  function Ni() {
568
592
  ka = void 0;
569
593
  }
570
594
  const ge = {
571
- now: () => (ka === void 0 && ge.set(Aa.isProcessing || Te.useManualTiming ? Aa.timestamp : performance.now()), ka),
595
+ now: () => (ka === void 0 && ge.set(Aa.isProcessing || Ie.useManualTiming ? Aa.timestamp : performance.now()), ka),
572
596
  set: (t) => {
573
597
  ka = t, queueMicrotask(Ni);
574
598
  }
@@ -675,7 +699,7 @@ class Ri {
675
699
  this.events[e] || (this.events[e] = new Gr());
676
700
  const r = this.events[e].add(a);
677
701
  return e === "change" ? () => {
678
- r(), Ie.read(() => {
702
+ r(), Ne.read(() => {
679
703
  this.events.change.getSize() || this.stop();
680
704
  });
681
705
  } : r;
@@ -808,11 +832,11 @@ class Ri {
808
832
  (e = this.dependents) == null || e.clear(), (a = this.events.destroy) == null || a.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
809
833
  }
810
834
  }
811
- function ra(t, e) {
835
+ function na(t, e) {
812
836
  return new Ri(t, e);
813
837
  }
814
838
  function Oi(t, e, a) {
815
- t.hasValue(e) ? t.getValue(e).set(a) : t.addValue(e, ra(a));
839
+ t.hasValue(e) ? t.getValue(e).set(a) : t.addValue(e, na(a));
816
840
  }
817
841
  function wi(t) {
818
842
  return Ai(t) ? t[t.length - 1] || 0 : t;
@@ -832,8 +856,8 @@ function xi(t, e) {
832
856
  const a = t.getValue("willChange");
833
857
  if (Li(a))
834
858
  return a.add(e);
835
- if (!a && Te.WillChange) {
836
- const r = new Te.WillChange("auto");
859
+ if (!a && Ie.WillChange) {
860
+ const r = new Ie.WillChange("auto");
837
861
  t.addValue("willChange", r), r.add(e);
838
862
  }
839
863
  }
@@ -846,7 +870,7 @@ function Vi(t, { repeat: e, repeatType: a = "loop" }, r) {
846
870
  const i = t.filter(ji), n = e && a !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
847
871
  return i[n];
848
872
  }
849
- const Be = [
873
+ const Ue = [
850
874
  "transformPerspective",
851
875
  "x",
852
876
  "y",
@@ -864,7 +888,7 @@ const Be = [
864
888
  "skew",
865
889
  "skewX",
866
890
  "skewY"
867
- ], Ue = new Set(Be), Fi = {
891
+ ], Ke = new Set(Ue), Fi = {
868
892
  type: "spring",
869
893
  stiffness: 500,
870
894
  damping: 25,
@@ -881,7 +905,7 @@ const Be = [
881
905
  type: "keyframes",
882
906
  ease: [0.25, 0.1, 0.35, 1],
883
907
  duration: 0.3
884
- }, qi = (t, { keyframes: e }) => e.length > 2 ? Ui : Ue.has(t) ? t.startsWith("scale") ? Bi(e[1]) : Fi : Ki;
908
+ }, qi = (t, { keyframes: e }) => e.length > 2 ? Ui : Ke.has(t) ? t.startsWith("scale") ? Bi(e[1]) : Fi : Ki;
885
909
  function Hi(u) {
886
910
  var h = u, { when: t, delay: e, delayChildren: a, staggerChildren: r, staggerDirection: i, repeat: n, repeatType: s, repeatDelay: o, from: l, elapsed: d } = h, c = ke(h, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from", "elapsed"]);
887
911
  return !!Object.keys(c).length;
@@ -890,15 +914,15 @@ function $r(t, e) {
890
914
  var a, r;
891
915
  return (r = (a = t == null ? void 0 : t[e]) != null ? a : t == null ? void 0 : t.default) != null ? r : t;
892
916
  }
893
- const Qr = (t) => (e) => typeof e == "string" && e.startsWith(t), Zr = /* @__PURE__ */ Qr("--"), Yi = /* @__PURE__ */ Qr("var(--"), dt = (t) => Yi(t) ? Gi.test(t.split("/*")[0].trim()) : !1, Gi = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, xe = (t, e, a) => a > e ? e : a < t ? t : a, Ke = {
917
+ const Qr = (t) => (e) => typeof e == "string" && e.startsWith(t), Zr = /* @__PURE__ */ Qr("--"), Yi = /* @__PURE__ */ Qr("var(--"), dt = (t) => Yi(t) ? Gi.test(t.split("/*")[0].trim()) : !1, Gi = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, ze = (t, e, a) => a > e ? e : a < t ? t : a, qe = {
894
918
  test: (t) => typeof t == "number",
895
919
  parse: parseFloat,
896
920
  transform: (t) => t
897
- }, na = ee(K({}, Ke), {
898
- transform: (t) => xe(0, 1, t)
899
- }), ya = ee(K({}, Ke), {
921
+ }, ia = ee(K({}, qe), {
922
+ transform: (t) => ze(0, 1, t)
923
+ }), fa = ee(K({}, qe), {
900
924
  default: 1
901
- }), ea = (t) => Math.round(t * 1e5) / 1e5, ct = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
925
+ }), aa = (t) => Math.round(t * 1e5) / 1e5, ct = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
902
926
  function Wi(t) {
903
927
  return t == null;
904
928
  }
@@ -912,12 +936,12 @@ const $i = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
912
936
  [a]: parseFloat(s),
913
937
  alpha: o !== void 0 ? parseFloat(o) : 1
914
938
  };
915
- }, Qi = (t) => xe(0, 255, t), _a = ee(K({}, Ke), {
939
+ }, Qi = (t) => ze(0, 255, t), _a = ee(K({}, qe), {
916
940
  transform: (t) => Math.round(Qi(t))
917
- }), Oe = {
941
+ }), we = {
918
942
  test: /* @__PURE__ */ ut("rgb", "red"),
919
943
  parse: /* @__PURE__ */ Xr("red", "green", "blue"),
920
- transform: ({ red: t, green: e, blue: a, alpha: r = 1 }) => "rgba(" + _a.transform(t) + ", " + _a.transform(e) + ", " + _a.transform(a) + ", " + ea(na.transform(r)) + ")"
944
+ transform: ({ red: t, green: e, blue: a, alpha: r = 1 }) => "rgba(" + _a.transform(t) + ", " + _a.transform(e) + ", " + _a.transform(a) + ", " + aa(ia.transform(r)) + ")"
921
945
  };
922
946
  function Zi(t) {
923
947
  let e = "", a = "", r = "", i = "";
@@ -931,29 +955,29 @@ function Zi(t) {
931
955
  const Ba = {
932
956
  test: /* @__PURE__ */ ut("#"),
933
957
  parse: Zi,
934
- transform: Oe.transform
935
- }, da = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
958
+ transform: we.transform
959
+ }, ca = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
936
960
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
937
961
  parse: parseFloat,
938
962
  transform: (e) => `${e}${t}`
939
- }), _e = /* @__PURE__ */ da("deg"), je = /* @__PURE__ */ da("%"), Z = /* @__PURE__ */ da("px"), Xi = /* @__PURE__ */ da("vh"), Ji = /* @__PURE__ */ da("vw"), Wt = ee(K({}, je), {
940
- parse: (t) => je.parse(t) / 100,
941
- transform: (t) => je.transform(t * 100)
942
- }), Se = {
963
+ }), Re = /* @__PURE__ */ ca("deg"), Ve = /* @__PURE__ */ ca("%"), Z = /* @__PURE__ */ ca("px"), Xi = /* @__PURE__ */ ca("vh"), Ji = /* @__PURE__ */ ca("vw"), Wt = ee(K({}, Ve), {
964
+ parse: (t) => Ve.parse(t) / 100,
965
+ transform: (t) => Ve.transform(t * 100)
966
+ }), Me = {
943
967
  test: /* @__PURE__ */ ut("hsl", "hue"),
944
968
  parse: /* @__PURE__ */ Xr("hue", "saturation", "lightness"),
945
- transform: ({ hue: t, saturation: e, lightness: a, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + je.transform(ea(e)) + ", " + je.transform(ea(a)) + ", " + ea(na.transform(r)) + ")"
969
+ transform: ({ hue: t, saturation: e, lightness: a, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + Ve.transform(aa(e)) + ", " + Ve.transform(aa(a)) + ", " + aa(ia.transform(r)) + ")"
946
970
  }, ue = {
947
- test: (t) => Oe.test(t) || Ba.test(t) || Se.test(t),
948
- parse: (t) => Oe.test(t) ? Oe.parse(t) : Se.test(t) ? Se.parse(t) : Ba.parse(t),
949
- transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Oe.transform(t) : Se.transform(t)
971
+ test: (t) => we.test(t) || Ba.test(t) || Me.test(t),
972
+ parse: (t) => we.test(t) ? we.parse(t) : Me.test(t) ? Me.parse(t) : Ba.parse(t),
973
+ transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? we.transform(t) : Me.transform(t)
950
974
  }, eo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
951
975
  function ao(t) {
952
976
  var e, a;
953
977
  return isNaN(t) && typeof t == "string" && (((e = t.match(ct)) == null ? void 0 : e.length) || 0) + (((a = t.match(eo)) == null ? void 0 : a.length) || 0) > 0;
954
978
  }
955
979
  const Jr = "number", en = "color", to = "var", ro = "var(", $t = "${}", no = /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;
956
- function ia(t) {
980
+ function oa(t) {
957
981
  const e = t.toString(), a = [], r = {
958
982
  color: [],
959
983
  number: [],
@@ -964,16 +988,16 @@ function ia(t) {
964
988
  return { values: a, split: o, indexes: r, types: i };
965
989
  }
966
990
  function an(t) {
967
- return ia(t).values;
991
+ return oa(t).values;
968
992
  }
969
993
  function tn(t) {
970
- const { split: e, types: a } = ia(t), r = e.length;
994
+ const { split: e, types: a } = oa(t), r = e.length;
971
995
  return (i) => {
972
996
  let n = "";
973
997
  for (let s = 0; s < r; s++)
974
998
  if (n += e[s], i[s] !== void 0) {
975
999
  const o = a[s];
976
- o === Jr ? n += ea(i[s]) : o === en ? n += ue.transform(i[s]) : n += i[s];
1000
+ o === Jr ? n += aa(i[s]) : o === en ? n += ue.transform(i[s]) : n += i[s];
977
1001
  }
978
1002
  return n;
979
1003
  };
@@ -983,7 +1007,7 @@ function oo(t) {
983
1007
  const e = an(t);
984
1008
  return tn(t)(e.map(io));
985
1009
  }
986
- const qe = {
1010
+ const He = {
987
1011
  test: ao,
988
1012
  parse: an,
989
1013
  createTransformer: tn,
@@ -1014,27 +1038,27 @@ function Ca(t, e) {
1014
1038
  const Oa = (t, e, a) => {
1015
1039
  const r = t * t, i = a * (e * e - r) + r;
1016
1040
  return i < 0 ? 0 : Math.sqrt(i);
1017
- }, lo = [Ba, Oe, Se], co = (t) => lo.find((e) => e.test(t));
1041
+ }, lo = [Ba, we, Me], co = (t) => lo.find((e) => e.test(t));
1018
1042
  function Qt(t) {
1019
1043
  const e = co(t);
1020
- if (la(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
1044
+ if (da(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
1021
1045
  return !1;
1022
1046
  let a = e.parse(t);
1023
- return e === Se && (a = so(a)), a;
1047
+ return e === Me && (a = so(a)), a;
1024
1048
  }
1025
1049
  const Zt = (t, e) => {
1026
1050
  const a = Qt(t), r = Qt(e);
1027
1051
  if (!a || !r)
1028
1052
  return Ca(t, e);
1029
1053
  const i = K({}, a);
1030
- return (n) => (i.red = Oa(a.red, r.red, n), i.green = Oa(a.green, r.green, n), i.blue = Oa(a.blue, r.blue, n), i.alpha = sa(a.alpha, r.alpha, n), Oe.transform(i));
1054
+ return (n) => (i.red = Oa(a.red, r.red, n), i.green = Oa(a.green, r.green, n), i.blue = Oa(a.blue, r.blue, n), i.alpha = la(a.alpha, r.alpha, n), we.transform(i));
1031
1055
  }, Ua = /* @__PURE__ */ new Set(["none", "hidden"]);
1032
1056
  function uo(t, e) {
1033
1057
  return Ua.has(t) ? (a) => a <= 0 ? t : e : (a) => a >= 1 ? e : t;
1034
1058
  }
1035
1059
  const po = (t, e) => (a) => e(t(a)), pt = (...t) => t.reduce(po);
1036
1060
  function ho(t, e) {
1037
- return (a) => sa(t, e, a);
1061
+ return (a) => la(t, e, a);
1038
1062
  }
1039
1063
  function ht(t) {
1040
1064
  return typeof t == "number" ? ho : typeof t == "string" ? dt(t) ? Ca : ue.test(t) ? Zt : fo : Array.isArray(t) ? rn : typeof t == "object" ? ue.test(t) ? Zt : mo : Ca;
@@ -1067,16 +1091,16 @@ function yo(t, e) {
1067
1091
  return a;
1068
1092
  }
1069
1093
  const fo = (t, e) => {
1070
- const a = qe.createTransformer(e), r = ia(t), i = ia(e);
1071
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Ua.has(t) && !i.values.length || Ua.has(e) && !r.values.length ? uo(t, e) : pt(rn(yo(r, i), i.values), a) : (la(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ca(t, e));
1094
+ const a = He.createTransformer(e), r = oa(t), i = oa(e);
1095
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Ua.has(t) && !i.values.length || Ua.has(e) && !r.values.length ? uo(t, e) : pt(rn(yo(r, i), i.values), a) : (da(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ca(t, e));
1072
1096
  };
1073
1097
  function nn(t, e, a) {
1074
- return typeof t == "number" && typeof e == "number" && typeof a == "number" ? sa(t, e, a) : ht(t)(t, e);
1098
+ return typeof t == "number" && typeof e == "number" && typeof a == "number" ? la(t, e, a) : ht(t)(t, e);
1075
1099
  }
1076
1100
  const vo = (t) => {
1077
1101
  const e = ({ timestamp: a }) => t(a);
1078
1102
  return {
1079
- start: (a = !0) => Ie.update(e, a),
1103
+ start: (a = !0) => Ne.update(e, a),
1080
1104
  stop: () => Fa(e),
1081
1105
  /**
1082
1106
  * If we're processing this frame we can use the
@@ -1126,9 +1150,9 @@ const ie = {
1126
1150
  }, wa = 1e-3;
1127
1151
  function Po({ duration: t = ie.duration, bounce: e = ie.bounce, velocity: a = ie.velocity, mass: r = ie.mass }) {
1128
1152
  let i, n;
1129
- la(t <= /* @__PURE__ */ be(ie.maxDuration), "Spring duration must be 10 seconds or less");
1153
+ da(t <= /* @__PURE__ */ be(ie.maxDuration), "Spring duration must be 10 seconds or less");
1130
1154
  let s = 1 - e;
1131
- s = xe(ie.minDamping, ie.maxDamping, s), t = xe(ie.minDuration, ie.maxDuration, /* @__PURE__ */ Ce(t)), s < 1 ? (i = (d) => {
1155
+ s = ze(ie.minDamping, ie.maxDamping, s), t = ze(ie.minDuration, ie.maxDuration, /* @__PURE__ */ Ee(t)), s < 1 ? (i = (d) => {
1132
1156
  const c = d * s, u = c * t, h = c - a, p = Ka(d, s), m = Math.exp(-u);
1133
1157
  return wa - h / p * m;
1134
1158
  }, n = (d) => {
@@ -1181,7 +1205,7 @@ function Eo(t) {
1181
1205
  }, t);
1182
1206
  if (!Xt(t, Co) && Xt(t, Ao))
1183
1207
  if (t.visualDuration) {
1184
- const a = t.visualDuration, r = 2 * Math.PI / (a * 1.2), i = r * r, n = 2 * xe(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
1208
+ const a = t.visualDuration, r = 2 * Math.PI / (a * 1.2), i = r * r, n = 2 * ze(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
1185
1209
  e = ee(K({}, e), {
1186
1210
  mass: ie.mass,
1187
1211
  stiffness: i,
@@ -1195,7 +1219,7 @@ function Eo(t) {
1195
1219
  }
1196
1220
  return e;
1197
1221
  }
1198
- function oa(t = ie.visualDuration, e = ie.bounce) {
1222
+ function sa(t = ie.visualDuration, e = ie.bounce) {
1199
1223
  const a = typeof t != "object" ? {
1200
1224
  visualDuration: t,
1201
1225
  keyframes: [0, 1],
@@ -1203,8 +1227,8 @@ function oa(t = ie.visualDuration, e = ie.bounce) {
1203
1227
  } : t;
1204
1228
  let { restSpeed: r, restDelta: i } = a;
1205
1229
  const n = a.keyframes[0], s = a.keyframes[a.keyframes.length - 1], o = { done: !1, value: n }, { stiffness: l, damping: d, mass: c, duration: u, velocity: h, isResolvedFromDuration: p } = Eo(ee(K({}, a), {
1206
- velocity: -/* @__PURE__ */ Ce(a.velocity || 0)
1207
- })), m = h || 0, y = d / (2 * Math.sqrt(l * c)), f = s - n, g = /* @__PURE__ */ Ce(Math.sqrt(l / c)), E = Math.abs(f) < 5;
1230
+ velocity: -/* @__PURE__ */ Ee(a.velocity || 0)
1231
+ })), m = h || 0, y = d / (2 * Math.sqrt(l * c)), f = s - n, g = /* @__PURE__ */ Ee(Math.sqrt(l / c)), E = Math.abs(f) < 5;
1208
1232
  r || (r = E ? ie.restSpeed.granular : ie.restSpeed.default), i || (i = E ? ie.restDelta.granular : ie.restDelta.default);
1209
1233
  let N;
1210
1234
  if (y < 1) {
@@ -1245,8 +1269,8 @@ function oa(t = ie.visualDuration, e = ie.bounce) {
1245
1269
  };
1246
1270
  return _;
1247
1271
  }
1248
- oa.applyToOptions = (t) => {
1249
- const e = qr(t, 100, oa);
1272
+ sa.applyToOptions = (t) => {
1273
+ const e = qr(t, 100, sa);
1250
1274
  return t.ease = e.ease, t.duration = /* @__PURE__ */ be(e.duration), t.type = "keyframes", t;
1251
1275
  };
1252
1276
  function qa({ keyframes: t, velocity: e = 0, power: a = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: n = 500, modifyTarget: s, min: o, max: l, restDelta: d = 0.5, restSpeed: c }) {
@@ -1263,7 +1287,7 @@ function qa({ keyframes: t, velocity: e = 0, power: a = 0.8, timeConstant: r = 3
1263
1287
  };
1264
1288
  let I, O;
1265
1289
  const w = (x) => {
1266
- p(h.value) && (I = x, O = oa({
1290
+ p(h.value) && (I = x, O = sa({
1267
1291
  keyframes: [h.value, m(h.value)],
1268
1292
  velocity: sn(N, x, h.value),
1269
1293
  // TODO: This should be passing * 1000
@@ -1282,11 +1306,11 @@ function qa({ keyframes: t, velocity: e = 0, power: a = 0.8, timeConstant: r = 3
1282
1306
  };
1283
1307
  }
1284
1308
  function To(t, e, a) {
1285
- const r = [], i = a || Te.mix || nn, n = t.length - 1;
1309
+ const r = [], i = a || Ie.mix || nn, n = t.length - 1;
1286
1310
  for (let s = 0; s < n; s++) {
1287
1311
  let o = i(t[s], t[s + 1]);
1288
1312
  if (e) {
1289
- const l = Array.isArray(e) ? e[s] || Fe : e;
1313
+ const l = Array.isArray(e) ? e[s] || Be : e;
1290
1314
  o = pt(l, o);
1291
1315
  }
1292
1316
  r.push(o);
@@ -1295,7 +1319,7 @@ function To(t, e, a) {
1295
1319
  }
1296
1320
  function Io(t, e, { clamp: a = !0, ease: r, mixer: i } = {}) {
1297
1321
  const n = t.length;
1298
- if (Ee(n === e.length, "Both input and output ranges must be the same length"), n === 1)
1322
+ if (Te(n === e.length, "Both input and output ranges must be the same length"), n === 1)
1299
1323
  return () => e[0];
1300
1324
  if (n === 2 && e[0] === e[1])
1301
1325
  return () => e[1];
@@ -1311,7 +1335,7 @@ function Io(t, e, { clamp: a = !0, ease: r, mixer: i } = {}) {
1311
1335
  const h = /* @__PURE__ */ it(t[u], t[u + 1], c);
1312
1336
  return o[u](h);
1313
1337
  };
1314
- return a ? (c) => d(xe(t[0], t[n - 1], c)) : d;
1338
+ return a ? (c) => d(ze(t[0], t[n - 1], c)) : d;
1315
1339
  }
1316
1340
  function No(t, e) {
1317
1341
  return t.map((a) => a * e);
@@ -1324,14 +1348,14 @@ function Oo(t, e, a, r, i) {
1324
1348
  while (Math.abs(n) > _o && ++o < Ro);
1325
1349
  return s;
1326
1350
  }
1327
- function ca(t, e, a, r) {
1351
+ function ua(t, e, a, r) {
1328
1352
  if (t === e && a === r)
1329
- return Fe;
1353
+ return Be;
1330
1354
  const i = (n) => Oo(n, 0, 1, t, a);
1331
1355
  return (n) => n === 0 || n === 1 ? n : ln(i(n), e, r);
1332
1356
  }
1333
- const wo = /* @__PURE__ */ ca(0.42, 0, 1, 1), Do = /* @__PURE__ */ ca(0, 0, 0.58, 1), dn = /* @__PURE__ */ ca(0.42, 0, 0.58, 1), cn = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, un = (t) => (e) => 1 - t(1 - e), pn = /* @__PURE__ */ ca(0.33, 1.53, 0.69, 0.99), mt = /* @__PURE__ */ un(pn), hn = /* @__PURE__ */ cn(mt), mn = (t) => (t *= 2) < 1 ? 0.5 * mt(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), yt = (t) => 1 - Math.sin(Math.acos(t)), Lo = un(yt), yn = cn(yt), fn = (t) => Array.isArray(t) && typeof t[0] == "number", Jt = {
1334
- linear: Fe,
1357
+ const wo = /* @__PURE__ */ ua(0.42, 0, 1, 1), Do = /* @__PURE__ */ ua(0, 0, 0.58, 1), dn = /* @__PURE__ */ ua(0.42, 0, 0.58, 1), cn = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, un = (t) => (e) => 1 - t(1 - e), pn = /* @__PURE__ */ ua(0.33, 1.53, 0.69, 0.99), mt = /* @__PURE__ */ un(pn), hn = /* @__PURE__ */ cn(mt), mn = (t) => (t *= 2) < 1 ? 0.5 * mt(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), yt = (t) => 1 - Math.sin(Math.acos(t)), Lo = un(yt), yn = cn(yt), fn = (t) => Array.isArray(t) && typeof t[0] == "number", Jt = {
1358
+ linear: Be,
1335
1359
  easeIn: wo,
1336
1360
  easeInOut: dn,
1337
1361
  easeOut: Do,
@@ -1344,17 +1368,17 @@ const wo = /* @__PURE__ */ ca(0.42, 0, 1, 1), Do = /* @__PURE__ */ ca(0, 0, 0.58
1344
1368
  anticipate: mn
1345
1369
  }, xo = (t) => typeof t == "string", er = (t) => {
1346
1370
  if (fn(t)) {
1347
- Ee(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
1371
+ Te(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
1348
1372
  const [e, a, r, i] = t;
1349
- return ca(e, a, r, i);
1373
+ return ua(e, a, r, i);
1350
1374
  } else if (xo(t))
1351
- return Ee(Jt[t] !== void 0, `Invalid easing type '${t}'`), Jt[t];
1375
+ return Te(Jt[t] !== void 0, `Invalid easing type '${t}'`), Jt[t];
1352
1376
  return t;
1353
1377
  };
1354
1378
  function zo(t, e) {
1355
1379
  return t.map(() => e || dn).splice(0, t.length - 1);
1356
1380
  }
1357
- function Me({ duration: t = 300, keyframes: e, times: a, ease: r = "easeInOut" }) {
1381
+ function je({ duration: t = 300, keyframes: e, times: a, ease: r = "easeInOut" }) {
1358
1382
  const i = Vr(r) ? r.map(er) : er(r), n = {
1359
1383
  done: !1,
1360
1384
  value: e[0]
@@ -1379,9 +1403,9 @@ function ft(t, { repeat: e, repeatType: a = "loop" }, r, i = 1) {
1379
1403
  const Mo = {
1380
1404
  decay: qa,
1381
1405
  inertia: qa,
1382
- tween: Me,
1383
- keyframes: Me,
1384
- spring: oa
1406
+ tween: je,
1407
+ keyframes: je,
1408
+ spring: sa
1385
1409
  };
1386
1410
  function vn(t) {
1387
1411
  typeof t.type == "string" && (t.type = Mo[t.type]);
@@ -1422,10 +1446,10 @@ class gt extends vt {
1422
1446
  initAnimation() {
1423
1447
  const { options: e } = this;
1424
1448
  vn(e);
1425
- const { type: a = Me, repeat: r = 0, repeatDelay: i = 0, repeatType: n, velocity: s = 0 } = e;
1449
+ const { type: a = je, repeat: r = 0, repeatDelay: i = 0, repeatType: n, velocity: s = 0 } = e;
1426
1450
  let { keyframes: o } = e;
1427
- const l = a || Me;
1428
- process.env.NODE_ENV !== "production" && l !== Me && Ee(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== Me && typeof o[0] != "number" && (this.mixKeyframes = pt(jo, nn(o[0], o[1])), o = [0, 100]);
1451
+ const l = a || je;
1452
+ process.env.NODE_ENV !== "production" && l !== je && Te(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== je && typeof o[0] != "number" && (this.mixKeyframes = pt(jo, nn(o[0], o[1])), o = [0, 100]);
1429
1453
  const d = l(ee(K({}, e), { keyframes: o }));
1430
1454
  n === "mirror" && (this.mirroredGenerator = l(ee(K({}, e), {
1431
1455
  keyframes: [...o].reverse(),
@@ -1450,7 +1474,7 @@ class gt extends vt {
1450
1474
  if (u) {
1451
1475
  const x = Math.min(this.currentTime, i) / o;
1452
1476
  let U = Math.floor(x), G = x % 1;
1453
- !G && x >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, u + 1), !!(U % 2) && (h === "reverse" ? (G = 1 - G, p && (G -= p / o)) : h === "mirror" && (_ = s)), N = xe(0, 1, G) * o;
1477
+ !G && x >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, u + 1), !!(U % 2) && (h === "reverse" ? (G = 1 - G, p && (G -= p / o)) : h === "mirror" && (_ = s)), N = ze(0, 1, G) * o;
1454
1478
  }
1455
1479
  const I = E ? { done: !1, value: c[0] } : _.next(N);
1456
1480
  n && (I.value = n(I.value));
@@ -1468,10 +1492,10 @@ class gt extends vt {
1468
1492
  return this.finished.then(e, a);
1469
1493
  }
1470
1494
  get duration() {
1471
- return /* @__PURE__ */ Ce(this.calculatedDuration);
1495
+ return /* @__PURE__ */ Ee(this.calculatedDuration);
1472
1496
  }
1473
1497
  get time() {
1474
- return /* @__PURE__ */ Ce(this.currentTime);
1498
+ return /* @__PURE__ */ Ee(this.currentTime);
1475
1499
  }
1476
1500
  set time(e) {
1477
1501
  var a;
@@ -1483,7 +1507,7 @@ class gt extends vt {
1483
1507
  set speed(e) {
1484
1508
  this.updateTime(ge.now());
1485
1509
  const a = this.playbackSpeed !== e;
1486
- this.playbackSpeed = e, a && (this.time = /* @__PURE__ */ Ce(this.currentTime));
1510
+ this.playbackSpeed = e, a && (this.time = /* @__PURE__ */ Ee(this.currentTime));
1487
1511
  }
1488
1512
  play() {
1489
1513
  var i, n;
@@ -1527,8 +1551,8 @@ function Vo(t) {
1527
1551
  for (let a = 1; a < t.length; a++)
1528
1552
  (e = t[a]) != null || (t[a] = t[a - 1]);
1529
1553
  }
1530
- const we = (t) => t * 180 / Math.PI, Ha = (t) => {
1531
- const e = we(Math.atan2(t[1], t[0]));
1554
+ const De = (t) => t * 180 / Math.PI, Ha = (t) => {
1555
+ const e = De(Math.atan2(t[1], t[0]));
1532
1556
  return Ya(e);
1533
1557
  }, Fo = {
1534
1558
  x: 4,
@@ -1540,8 +1564,8 @@ const we = (t) => t * 180 / Math.PI, Ha = (t) => {
1540
1564
  scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
1541
1565
  rotate: Ha,
1542
1566
  rotateZ: Ha,
1543
- skewX: (t) => we(Math.atan(t[1])),
1544
- skewY: (t) => we(Math.atan(t[2])),
1567
+ skewX: (t) => De(Math.atan(t[1])),
1568
+ skewY: (t) => De(Math.atan(t[2])),
1545
1569
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
1546
1570
  }, Ya = (t) => (t = t % 360, t < 0 && (t += 360), t), ar = Ha, tr = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), rr = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Bo = {
1547
1571
  x: 12,
@@ -1553,12 +1577,12 @@ const we = (t) => t * 180 / Math.PI, Ha = (t) => {
1553
1577
  scaleX: tr,
1554
1578
  scaleY: rr,
1555
1579
  scale: (t) => (tr(t) + rr(t)) / 2,
1556
- rotateX: (t) => Ya(we(Math.atan2(t[6], t[5]))),
1557
- rotateY: (t) => Ya(we(Math.atan2(-t[2], t[0]))),
1580
+ rotateX: (t) => Ya(De(Math.atan2(t[6], t[5]))),
1581
+ rotateY: (t) => Ya(De(Math.atan2(-t[2], t[0]))),
1558
1582
  rotateZ: ar,
1559
1583
  rotate: ar,
1560
- skewX: (t) => we(Math.atan(t[4])),
1561
- skewY: (t) => we(Math.atan(t[1])),
1584
+ skewX: (t) => De(Math.atan(t[4])),
1585
+ skewY: (t) => De(Math.atan(t[1])),
1562
1586
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
1563
1587
  };
1564
1588
  function Ga(t) {
@@ -1587,7 +1611,7 @@ const Uo = (t, e) => {
1587
1611
  function Ko(t) {
1588
1612
  return parseFloat(t.trim());
1589
1613
  }
1590
- const nr = (t) => t === Ke || t === Z, qo = /* @__PURE__ */ new Set(["x", "y", "z"]), Ho = Be.filter((t) => !qo.has(t));
1614
+ const nr = (t) => t === qe || t === Z, qo = /* @__PURE__ */ new Set(["x", "y", "z"]), Ho = Ue.filter((t) => !qo.has(t));
1591
1615
  function Yo(t) {
1592
1616
  const e = [];
1593
1617
  return Ho.forEach((a) => {
@@ -1595,7 +1619,7 @@ function Yo(t) {
1595
1619
  r !== void 0 && (e.push([a, r.get()]), r.set(a.startsWith("scale") ? 1 : 0));
1596
1620
  }), e;
1597
1621
  }
1598
- const De = {
1622
+ const Le = {
1599
1623
  // Dimensions
1600
1624
  width: ({ x: t }, { paddingLeft: e = "0", paddingRight: a = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(a),
1601
1625
  height: ({ y: t }, { paddingTop: e = "0", paddingBottom: a = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(a),
@@ -1607,13 +1631,13 @@ const De = {
1607
1631
  x: (t, { transform: e }) => Wa(e, "x"),
1608
1632
  y: (t, { transform: e }) => Wa(e, "y")
1609
1633
  };
1610
- De.translateX = De.x;
1611
- De.translateY = De.y;
1612
- const Le = /* @__PURE__ */ new Set();
1634
+ Le.translateX = Le.x;
1635
+ Le.translateY = Le.y;
1636
+ const xe = /* @__PURE__ */ new Set();
1613
1637
  let $a = !1, Qa = !1, Za = !1;
1614
1638
  function gn() {
1615
1639
  if (Qa) {
1616
- const t = Array.from(Le).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), a = /* @__PURE__ */ new Map();
1640
+ const t = Array.from(xe).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), a = /* @__PURE__ */ new Map();
1617
1641
  e.forEach((r) => {
1618
1642
  const i = Yo(r);
1619
1643
  i.length && (a.set(r, i), r.render());
@@ -1628,10 +1652,10 @@ function gn() {
1628
1652
  r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
1629
1653
  });
1630
1654
  }
1631
- Qa = !1, $a = !1, Le.forEach((t) => t.complete(Za)), Le.clear();
1655
+ Qa = !1, $a = !1, xe.forEach((t) => t.complete(Za)), xe.clear();
1632
1656
  }
1633
1657
  function Pn() {
1634
- Le.forEach((t) => {
1658
+ xe.forEach((t) => {
1635
1659
  t.readKeyframes(), t.needsMeasurement && (Qa = !0);
1636
1660
  });
1637
1661
  }
@@ -1643,7 +1667,7 @@ class Pt {
1643
1667
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = a, this.name = r, this.motionValue = i, this.element = n, this.isAsync = s;
1644
1668
  }
1645
1669
  scheduleResolve() {
1646
- this.state = "scheduled", this.isAsync ? (Le.add(this), $a || ($a = !0, Ie.read(Pn), Ie.resolveKeyframes(gn))) : (this.readKeyframes(), this.complete());
1670
+ this.state = "scheduled", this.isAsync ? (xe.add(this), $a || ($a = !0, Ne.read(Pn), Ne.resolveKeyframes(gn))) : (this.readKeyframes(), this.complete());
1647
1671
  }
1648
1672
  readKeyframes() {
1649
1673
  const { unresolvedKeyframes: e, name: a, element: r, motionValue: i } = this;
@@ -1668,10 +1692,10 @@ class Pt {
1668
1692
  measureEndState() {
1669
1693
  }
1670
1694
  complete(e = !1) {
1671
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Le.delete(this);
1695
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), xe.delete(this);
1672
1696
  }
1673
1697
  cancel() {
1674
- this.state === "scheduled" && (Le.delete(this), this.state = "pending");
1698
+ this.state === "scheduled" && (xe.delete(this), this.state = "pending");
1675
1699
  }
1676
1700
  resume() {
1677
1701
  this.state === "pending" && this.scheduleResolve();
@@ -1701,20 +1725,20 @@ const kn = /* @__PURE__ */ Xo(() => {
1701
1725
  return !1;
1702
1726
  }
1703
1727
  return !0;
1704
- }, "linearEasing"), Je = ([t, e, a, r]) => `cubic-bezier(${t}, ${e}, ${a}, ${r})`, ir = {
1728
+ }, "linearEasing"), ea = ([t, e, a, r]) => `cubic-bezier(${t}, ${e}, ${a}, ${r})`, ir = {
1705
1729
  linear: "linear",
1706
1730
  ease: "ease",
1707
1731
  easeIn: "ease-in",
1708
1732
  easeOut: "ease-out",
1709
1733
  easeInOut: "ease-in-out",
1710
- circIn: /* @__PURE__ */ Je([0, 0.65, 0.55, 1]),
1711
- circOut: /* @__PURE__ */ Je([0.55, 0, 1, 0.45]),
1712
- backIn: /* @__PURE__ */ Je([0.31, 0.01, 0.66, -0.59]),
1713
- backOut: /* @__PURE__ */ Je([0.33, 1.53, 0.69, 0.99])
1734
+ circIn: /* @__PURE__ */ ea([0, 0.65, 0.55, 1]),
1735
+ circOut: /* @__PURE__ */ ea([0.55, 0, 1, 0.45]),
1736
+ backIn: /* @__PURE__ */ ea([0.31, 0.01, 0.66, -0.59]),
1737
+ backOut: /* @__PURE__ */ ea([0.33, 1.53, 0.69, 0.99])
1714
1738
  };
1715
1739
  function bn(t, e) {
1716
1740
  if (t)
1717
- return typeof t == "function" ? kn() ? on(t, e) : "ease-out" : fn(t) ? Je(t) : Array.isArray(t) ? t.map((a) => bn(a, e) || ir.easeOut) : ir[t];
1741
+ return typeof t == "function" ? kn() ? on(t, e) : "ease-out" : fn(t) ? ea(t) : Array.isArray(t) ? t.map((a) => bn(a, e) || ir.easeOut) : ir[t];
1718
1742
  }
1719
1743
  function Jo(t, e, a, { delay: r = 0, duration: i = 300, repeat: n = 0, repeatType: s = "loop", ease: o = "easeOut", times: l } = {}, d = void 0) {
1720
1744
  const c = {
@@ -1743,7 +1767,7 @@ class as extends vt {
1743
1767
  if (super(), this.finishedTime = null, this.isStopped = !1, !e)
1744
1768
  return;
1745
1769
  const { element: a, name: r, keyframes: i, pseudoElement: n, allowFlatten: s = !1, finalKeyframe: o, onComplete: l } = e;
1746
- this.isPseudoElement = !!n, this.allowFlatten = s, this.options = e, Ee(typeof e.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1770
+ this.isPseudoElement = !!n, this.allowFlatten = s, this.options = e, Te(typeof e.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1747
1771
  const d = es(e);
1748
1772
  this.animation = Jo(a, r, i, d, n), d.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1749
1773
  if (this.finishedTime = this.time, !n) {
@@ -1795,10 +1819,10 @@ class as extends vt {
1795
1819
  get duration() {
1796
1820
  var a, r;
1797
1821
  const e = ((r = (a = this.animation.effect) == null ? void 0 : a.getComputedTiming) == null ? void 0 : r.call(a).duration) || 0;
1798
- return /* @__PURE__ */ Ce(Number(e));
1822
+ return /* @__PURE__ */ Ee(Number(e));
1799
1823
  }
1800
1824
  get time() {
1801
- return /* @__PURE__ */ Ce(Number(this.animation.currentTime) || 0);
1825
+ return /* @__PURE__ */ Ee(Number(this.animation.currentTime) || 0);
1802
1826
  }
1803
1827
  set time(e) {
1804
1828
  this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ be(e);
@@ -1827,7 +1851,7 @@ class as extends vt {
1827
1851
  */
1828
1852
  attachTimeline({ timeline: e, observe: a }) {
1829
1853
  var r;
1830
- return this.allowFlatten && ((r = this.animation.effect) == null || r.updateTiming({ easing: "linear" })), this.animation.onfinish = null, e && Qo() ? (this.animation.timeline = e, Fe) : a(this);
1854
+ return this.allowFlatten && ((r = this.animation.effect) == null || r.updateTiming({ easing: "linear" })), this.animation.onfinish = null, e && Qo() ? (this.animation.timeline = e, Be) : a(this);
1831
1855
  }
1832
1856
  }
1833
1857
  const An = {
@@ -1870,7 +1894,7 @@ class ns extends as {
1870
1894
  }
1871
1895
  }
1872
1896
  const sr = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
1873
- (qe.test(t) || t === "0") && // And it contains numbers and/or colors
1897
+ (He.test(t) || t === "0") && // And it contains numbers and/or colors
1874
1898
  !t.startsWith("url("));
1875
1899
  function is(t) {
1876
1900
  const e = t[0];
@@ -1887,7 +1911,7 @@ function os(t, e, a, r) {
1887
1911
  if (e === "display" || e === "visibility")
1888
1912
  return !0;
1889
1913
  const n = t[t.length - 1], s = sr(i, e), o = sr(n, e);
1890
- return la(s === o, `You are trying to animate ${e} from "${i}" to "${n}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${n} via the \`style\` property.`), !s || !o ? !1 : is(t) || (a === "spring" || ot(a)) && r;
1914
+ return da(s === o, `You are trying to animate ${e} from "${i}" to "${n}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${n} via the \`style\` property.`), !s || !o ? !1 : is(t) || (a === "spring" || ot(a)) && r;
1891
1915
  }
1892
1916
  function Cn(t) {
1893
1917
  return typeof t == "object" && t !== null;
@@ -1940,7 +1964,7 @@ class ps extends vt {
1940
1964
  onKeyframesResolved(e, a, r, i) {
1941
1965
  this.keyframeResolver = void 0;
1942
1966
  const { name: n, type: s, velocity: o, delay: l, isHandoff: d, onUpdate: c } = r;
1943
- this.resolvedAt = ge.now(), os(e, n, s, o) || ((Te.instantAnimations || !l) && (c == null || c(ft(e, r, a))), e[0] = e[e.length - 1], r.duration = 0, r.repeat = 0);
1967
+ this.resolvedAt = ge.now(), os(e, n, s, o) || ((Ie.instantAnimations || !l) && (c == null || c(ft(e, r, a))), e[0] = e[e.length - 1], r.duration = 0, r.repeat = 0);
1944
1968
  const u = i ? this.resolvedAt ? this.resolvedAt - this.createdAt > us ? this.resolvedAt : this.createdAt : this.createdAt : void 0, h = ee(K({
1945
1969
  startTime: u,
1946
1970
  finalKeyframe: a
@@ -1949,7 +1973,7 @@ class ps extends vt {
1949
1973
  }), p = !d && cs(h) ? new ns(ee(K({}, h), {
1950
1974
  element: h.motionValue.owner.current
1951
1975
  })) : new gt(h);
1952
- p.finished.then(() => this.notifyFinished()).catch(Fe), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
1976
+ p.finished.then(() => this.notifyFinished()).catch(Be), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
1953
1977
  }
1954
1978
  get finished() {
1955
1979
  return this._animation ? this.animation.finished : this._finished;
@@ -2022,10 +2046,10 @@ const En = (t, e, a, r = {}, i, n) => (s) => {
2022
2046
  });
2023
2047
  Hi(o) || Object.assign(c, qi(t, c)), c.duration && (c.duration = /* @__PURE__ */ be(c.duration)), c.repeatDelay && (c.repeatDelay = /* @__PURE__ */ be(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
2024
2048
  let u = !1;
2025
- if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (c.duration = 0, c.delay === 0 && (u = !0)), (Te.instantAnimations || Te.skipAnimations) && (u = !0, c.duration = 0, c.delay = 0), c.allowFlatten = !o.type && !o.ease, u && !n && e.get() !== void 0) {
2049
+ if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (c.duration = 0, c.delay === 0 && (u = !0)), (Ie.instantAnimations || Ie.skipAnimations) && (u = !0, c.duration = 0, c.delay = 0), c.allowFlatten = !o.type && !o.ease, u && !n && e.get() !== void 0) {
2026
2050
  const h = Vi(c.keyframes, o);
2027
2051
  if (h !== void 0) {
2028
- Ie.update(() => {
2052
+ Ne.update(() => {
2029
2053
  c.onUpdate(h), c.onComplete();
2030
2054
  });
2031
2055
  return;
@@ -2039,7 +2063,7 @@ const En = (t, e, a, r = {}, i, n) => (s) => {
2039
2063
  "left",
2040
2064
  "right",
2041
2065
  "bottom",
2042
- ...Be
2066
+ ...Ue
2043
2067
  ]);
2044
2068
  function hs({ protectedKeys: t, needsAnimating: e }, a) {
2045
2069
  const r = t.hasOwnProperty(a) && e[a] !== !0;
@@ -2063,7 +2087,7 @@ function ms(t, e, { delay: a = 0, transitionOverride: r, type: i } = {}) {
2063
2087
  if (window.MotionHandoffAnimation) {
2064
2088
  const N = Mi(t);
2065
2089
  if (N) {
2066
- const _ = window.MotionHandoffAnimation(N, h, Ie);
2090
+ const _ = window.MotionHandoffAnimation(N, h, Ne);
2067
2091
  _ !== null && (y.startTime = _, g = !0);
2068
2092
  }
2069
2093
  }
@@ -2072,7 +2096,7 @@ function ms(t, e, { delay: a = 0, transitionOverride: r, type: i } = {}) {
2072
2096
  E && l.push(E);
2073
2097
  }
2074
2098
  return s && Promise.all(l).then(() => {
2075
- Ie.update(() => {
2099
+ Ne.update(() => {
2076
2100
  s && Di(t, s);
2077
2101
  });
2078
2102
  }), l;
@@ -2160,14 +2184,14 @@ function Ts(t, e, a) {
2160
2184
  if (he(i))
2161
2185
  t.addValue(r, i);
2162
2186
  else if (he(n))
2163
- t.addValue(r, ra(i, { owner: t }));
2187
+ t.addValue(r, na(i, { owner: t }));
2164
2188
  else if (n !== i)
2165
2189
  if (t.hasValue(r)) {
2166
2190
  const s = t.getValue(r);
2167
2191
  s.liveStyle === !0 ? s.jump(i) : s.hasAnimated || s.set(i);
2168
2192
  } else {
2169
2193
  const s = t.getStaticValue(r);
2170
- t.addValue(r, ra(s !== void 0 ? s : i, { owner: t }));
2194
+ t.addValue(r, na(s !== void 0 ? s : i, { owner: t }));
2171
2195
  }
2172
2196
  }
2173
2197
  for (const r in a)
@@ -2177,7 +2201,7 @@ function Ts(t, e, a) {
2177
2201
  const _n = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Rn = (t) => /^0[^.\s]+$/u.test(t), Is = {
2178
2202
  test: (t) => t === "auto",
2179
2203
  parse: (t) => t
2180
- }, On = (t) => (e) => e.test(t), wn = [Ke, Z, je, _e, Ji, Xi, Is], cr = (t) => wn.find(On(t)), Ns = [...wn, ue, qe], _s = (t) => Ns.find(On(t)), Rs = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2204
+ }, On = (t) => (e) => e.test(t), wn = [qe, Z, Ve, Re, Ji, Xi, Is], cr = (t) => wn.find(On(t)), Ns = [...wn, ue, He], _s = (t) => Ns.find(On(t)), Rs = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2181
2205
  function Os(t) {
2182
2206
  const [e, a] = t.slice(0, -1).split("(");
2183
2207
  if (e === "drop-shadow")
@@ -2189,25 +2213,25 @@ function Os(t) {
2189
2213
  let n = Rs.has(e) ? 1 : 0;
2190
2214
  return r !== a && (n *= 100), e + "(" + n + i + ")";
2191
2215
  }
2192
- const ws = /\b([a-z-]*)\(.*?\)/gu, et = ee(K({}, qe), {
2216
+ const ws = /\b([a-z-]*)\(.*?\)/gu, et = ee(K({}, He), {
2193
2217
  getAnimatableNone: (t) => {
2194
2218
  const e = t.match(ws);
2195
2219
  return e ? e.map(Os).join(" ") : t;
2196
2220
  }
2197
- }), ur = ee(K({}, Ke), {
2221
+ }), ur = ee(K({}, qe), {
2198
2222
  transform: Math.round
2199
2223
  }), Ds = {
2200
- rotate: _e,
2201
- rotateX: _e,
2202
- rotateY: _e,
2203
- rotateZ: _e,
2204
- scale: ya,
2205
- scaleX: ya,
2206
- scaleY: ya,
2207
- scaleZ: ya,
2208
- skew: _e,
2209
- skewX: _e,
2210
- skewY: _e,
2224
+ rotate: Re,
2225
+ rotateX: Re,
2226
+ rotateY: Re,
2227
+ rotateZ: Re,
2228
+ scale: fa,
2229
+ scaleX: fa,
2230
+ scaleY: fa,
2231
+ scaleZ: fa,
2232
+ skew: Re,
2233
+ skewX: Re,
2234
+ skewY: Re,
2211
2235
  distance: Z,
2212
2236
  translateX: Z,
2213
2237
  translateY: Z,
@@ -2217,7 +2241,7 @@ const ws = /\b([a-z-]*)\(.*?\)/gu, et = ee(K({}, qe), {
2217
2241
  z: Z,
2218
2242
  perspective: Z,
2219
2243
  transformPerspective: Z,
2220
- opacity: na,
2244
+ opacity: ia,
2221
2245
  originX: Wt,
2222
2246
  originY: Wt,
2223
2247
  originZ: Z
@@ -2260,8 +2284,8 @@ const ws = /\b([a-z-]*)\(.*?\)/gu, et = ee(K({}, qe), {
2260
2284
  }, Ds), {
2261
2285
  zIndex: ur,
2262
2286
  // SVG
2263
- fillOpacity: na,
2264
- strokeOpacity: na,
2287
+ fillOpacity: ia,
2288
+ strokeOpacity: ia,
2265
2289
  numOctaves: ur
2266
2290
  }), Ls = ee(K({}, At), {
2267
2291
  // Color props
@@ -2281,7 +2305,7 @@ const ws = /\b([a-z-]*)\(.*?\)/gu, et = ee(K({}, qe), {
2281
2305
  }), Dn = (t) => Ls[t];
2282
2306
  function Ln(t, e) {
2283
2307
  let a = Dn(t);
2284
- return a !== et && (a = qe), a.getAnimatableNone ? a.getAnimatableNone(e) : void 0;
2308
+ return a !== et && (a = He), a.getAnimatableNone ? a.getAnimatableNone(e) : void 0;
2285
2309
  }
2286
2310
  const pr = [
2287
2311
  "AnimationStart",
@@ -2308,7 +2332,7 @@ class xn {
2308
2332
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2309
2333
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2310
2334
  const p = ge.now();
2311
- this.renderScheduledAt < p && (this.renderScheduledAt = p, Ie.render(this.render, !1, !0));
2335
+ this.renderScheduledAt < p && (this.renderScheduledAt = p, Ne.render(this.render, !1, !0));
2312
2336
  };
2313
2337
  const { latestValues: l, renderState: d } = s;
2314
2338
  this.latestValues = l, this.baseTarget = K({}, l), this.initialValues = a.initial ? K({}, l) : {}, this.renderState = d, this.parent = e, this.props = a, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!n, this.isControllingVariants = Nn(a), this.isVariantNode = Es(a), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
@@ -2319,7 +2343,7 @@ class xn {
2319
2343
  }
2320
2344
  }
2321
2345
  mount(e) {
2322
- this.current = e, ta.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((a, r) => this.bindToMotionValue(r, a)), In.current || Ps(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Ja.current, process.env.NODE_ENV !== "production" && Yr(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);
2346
+ this.current = e, ra.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((a, r) => this.bindToMotionValue(r, a)), In.current || Ps(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Ja.current, process.env.NODE_ENV !== "production" && Yr(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);
2323
2347
  }
2324
2348
  unmount() {
2325
2349
  this.projection && this.projection.unmount(), Fa(this.notifyUpdate), Fa(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -2333,10 +2357,10 @@ class xn {
2333
2357
  }
2334
2358
  bindToMotionValue(e, a) {
2335
2359
  this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
2336
- const r = Ue.has(e);
2360
+ const r = Ke.has(e);
2337
2361
  r && this.onBindTransform && this.onBindTransform();
2338
2362
  const i = a.on("change", (o) => {
2339
- this.latestValues[e] = o, this.props.onUpdate && Ie.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
2363
+ this.latestValues[e] = o, this.props.onUpdate && Ne.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0);
2340
2364
  }), n = a.on("renderRequest", this.scheduleRender);
2341
2365
  let s;
2342
2366
  window.MotionCheckAppearSync && (s = window.MotionCheckAppearSync(this, e, a)), this.valueSubscriptions.set(e, () => {
@@ -2444,7 +2468,7 @@ class xn {
2444
2468
  if (this.props.values && this.props.values[e])
2445
2469
  return this.props.values[e];
2446
2470
  let r = this.values.get(e);
2447
- return r === void 0 && a !== void 0 && (r = ra(a === null ? void 0 : a, { owner: this }), this.addValue(e, r)), r;
2471
+ return r === void 0 && a !== void 0 && (r = na(a === null ? void 0 : a, { owner: this }), this.addValue(e, r)), r;
2448
2472
  }
2449
2473
  /**
2450
2474
  * If we're trying to animate to a previously unencountered value,
@@ -2454,7 +2478,7 @@ class xn {
2454
2478
  readValue(e, a) {
2455
2479
  var i;
2456
2480
  let r = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) != null ? i : this.readValueFromInstance(this.current, e, this.options);
2457
- return r != null && (typeof r == "string" && (_n(r) || Rn(r)) ? r = parseFloat(r) : !_s(r) && qe.test(a) && (r = Ln(e, a)), this.setBaseTarget(e, he(r) ? r.get() : r)), he(r) ? r.get() : r;
2481
+ return r != null && (typeof r == "string" && (_n(r) || Rn(r)) ? r = parseFloat(r) : !_s(r) && He.test(a) && (r = Ln(e, a)), this.setBaseTarget(e, he(r) ? r.get() : r)), he(r) ? r.get() : r;
2458
2482
  }
2459
2483
  /**
2460
2484
  * Set the base target to later animate back to. This is currently
@@ -2500,7 +2524,7 @@ function zs(t) {
2500
2524
  }
2501
2525
  const Ss = 4;
2502
2526
  function zn(t, e, a = 1) {
2503
- Ee(a <= Ss, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
2527
+ Te(a <= Ss, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
2504
2528
  const [r, i] = zs(t);
2505
2529
  if (!r)
2506
2530
  return;
@@ -2519,7 +2543,7 @@ function Vs(t, e, a) {
2519
2543
  let r = 0, i;
2520
2544
  for (; r < t.length && !i; ) {
2521
2545
  const n = t[r];
2522
- typeof n == "string" && !js.has(n) && ia(n).values.length && (i = t[r]), r++;
2546
+ typeof n == "string" && !js.has(n) && oa(n).values.length && (i = t[r]), r++;
2523
2547
  }
2524
2548
  if (i && a)
2525
2549
  for (const n of e)
@@ -2550,7 +2574,7 @@ class Fs extends Pt {
2550
2574
  const d = e[l];
2551
2575
  typeof d == "string" && (e[l] = parseFloat(d));
2552
2576
  }
2553
- else De[r] && (this.needsMeasurement = !0);
2577
+ else Le[r] && (this.needsMeasurement = !0);
2554
2578
  }
2555
2579
  resolveNoneKeyframes() {
2556
2580
  const { unresolvedKeyframes: e, name: a } = this, r = [];
@@ -2562,7 +2586,7 @@ class Fs extends Pt {
2562
2586
  const { element: e, unresolvedKeyframes: a, name: r } = this;
2563
2587
  if (!e || !e.current)
2564
2588
  return;
2565
- r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = De[r](e.measureViewportBox(), window.getComputedStyle(e.current)), a[0] = this.measuredOrigin;
2589
+ r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Le[r](e.measureViewportBox(), window.getComputedStyle(e.current)), a[0] = this.measuredOrigin;
2566
2590
  const i = a[a.length - 1];
2567
2591
  i !== void 0 && e.getValue(r, i).jump(i, !1);
2568
2592
  }
@@ -2574,7 +2598,7 @@ class Fs extends Pt {
2574
2598
  const i = e.getValue(a);
2575
2599
  i && i.jump(this.measuredOrigin, !1);
2576
2600
  const n = r.length - 1, s = r[n];
2577
- r[n] = De[a](e.measureViewportBox(), window.getComputedStyle(e.current)), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), (o = this.removedTransforms) != null && o.length && this.removedTransforms.forEach(([l, d]) => {
2601
+ r[n] = Le[a](e.measureViewportBox(), window.getComputedStyle(e.current)), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), (o = this.removedTransforms) != null && o.length && this.removedTransforms.forEach(([l, d]) => {
2578
2602
  e.getValue(l).set(d);
2579
2603
  }), this.resolveNoneKeyframes();
2580
2604
  }
@@ -2605,11 +2629,11 @@ const Mn = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Bs = {
2605
2629
  y: "translateY",
2606
2630
  z: "translateZ",
2607
2631
  transformPerspective: "perspective"
2608
- }, Us = Be.length;
2632
+ }, Us = Ue.length;
2609
2633
  function Ks(t, e, a) {
2610
2634
  let r = "", i = !0;
2611
2635
  for (let n = 0; n < Us; n++) {
2612
- const s = Be[n], o = t[s];
2636
+ const s = Ue[n], o = t[s];
2613
2637
  if (o === void 0)
2614
2638
  continue;
2615
2639
  let l = !0;
@@ -2630,7 +2654,7 @@ function jn(t, e, a) {
2630
2654
  let s = !1, o = !1;
2631
2655
  for (const l in e) {
2632
2656
  const d = e[l];
2633
- if (Ue.has(l)) {
2657
+ if (Ke.has(l)) {
2634
2658
  s = !0;
2635
2659
  continue;
2636
2660
  } else if (Zr(l)) {
@@ -2653,7 +2677,7 @@ function Vn(t, { style: e, vars: a }, r, i) {
2653
2677
  }
2654
2678
  const qs = {};
2655
2679
  function Hs(t, { layout: e, layoutId: a }) {
2656
- return Ue.has(t) || t.startsWith("origin") || (e || a !== void 0) && (!!qs[t] || t === "opacity");
2680
+ return Ke.has(t) || t.startsWith("origin") || (e || a !== void 0) && (!!qs[t] || t === "opacity");
2657
2681
  }
2658
2682
  function Fn(t, e, a) {
2659
2683
  var n;
@@ -2671,7 +2695,7 @@ class Gs extends Sn {
2671
2695
  }
2672
2696
  readValueFromInstance(e, a) {
2673
2697
  var r;
2674
- if (Ue.has(a))
2698
+ if (Ke.has(a))
2675
2699
  return (r = this.projection) != null && r.isProjecting ? Ga(a) : Uo(e, a);
2676
2700
  {
2677
2701
  const i = Ys(e), n = (Zr(a) ? i.getPropertyValue(a) : i[a]) || 0;
@@ -2793,7 +2817,7 @@ function tl(t, e, a) {
2793
2817
  const r = Fn(t, e, a);
2794
2818
  for (const i in t)
2795
2819
  if (he(t[i]) || he(e[i])) {
2796
- const n = Be.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2820
+ const n = Ue.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2797
2821
  r[n] = t[i];
2798
2822
  }
2799
2823
  return r;
@@ -2806,7 +2830,7 @@ class rl extends Sn {
2806
2830
  return e[a];
2807
2831
  }
2808
2832
  readValueFromInstance(e, a) {
2809
- if (Ue.has(a)) {
2833
+ if (Ke.has(a)) {
2810
2834
  const r = Dn(a);
2811
2835
  return r && r.default || 0;
2812
2836
  }
@@ -2846,7 +2870,7 @@ function il(t) {
2846
2870
  latestValues: {}
2847
2871
  }
2848
2872
  }, a = Un(t) && !nl(t) ? new rl(e) : new Gs(e);
2849
- a.mount(t), ta.set(t, a);
2873
+ a.mount(t), ra.set(t, a);
2850
2874
  }
2851
2875
  function ol(t) {
2852
2876
  const e = {
@@ -2859,10 +2883,10 @@ function ol(t) {
2859
2883
  latestValues: {}
2860
2884
  }
2861
2885
  }, a = new $s(e);
2862
- a.mount(t), ta.set(t, a);
2886
+ a.mount(t), ra.set(t, a);
2863
2887
  }
2864
2888
  function sl(t, e, a) {
2865
- const r = he(t) ? t : ra(t);
2889
+ const r = he(t) ? t : na(t);
2866
2890
  return r.start(En("", r, e, a)), r.animation;
2867
2891
  }
2868
2892
  function ll(t, e) {
@@ -2874,11 +2898,11 @@ function Kn(t, e, a, r) {
2874
2898
  i.push(sl(t, nt(e) && e.default || e, a && (a.default || a)));
2875
2899
  else {
2876
2900
  const n = jr(t, e, r), s = n.length;
2877
- Ee(!!s, "No valid elements provided.");
2901
+ Te(!!s, "No valid elements provided.");
2878
2902
  for (let o = 0; o < s; o++) {
2879
2903
  const l = n[o], d = l instanceof Element ? il : ol;
2880
- ta.has(l) || d(l);
2881
- const c = ta.get(l), u = K({}, a);
2904
+ ra.has(l) || d(l);
2905
+ const c = ra.get(l), u = K({}, a);
2882
2906
  "delay" in u && typeof u.delay == "function" && (u.delay = u.delay(o, s)), i.push(...ms(c, ee(K({}, e), { transition: u }), {}));
2883
2907
  }
2884
2908
  }
@@ -2886,7 +2910,7 @@ function Kn(t, e, a, r) {
2886
2910
  }
2887
2911
  function dl(t, e, a) {
2888
2912
  const r = [];
2889
- return vi(t, e, a, { spring: oa }).forEach(({ keyframes: n, transition: s }, o) => {
2913
+ return vi(t, e, a, { spring: sa }).forEach(({ keyframes: n, transition: s }, o) => {
2890
2914
  r.push(...Kn(o, n, s));
2891
2915
  }), r;
2892
2916
  }
@@ -3019,7 +3043,7 @@ class El {
3019
3043
  return this.loader;
3020
3044
  }
3021
3045
  }
3022
- const Tl = "_checkout_5sq3n_1", Il = "_hidden_5sq3n_7", Nl = "_formInitial_5sq3n_11", _l = "_btnsInitial_5sq3n_16", fe = {
3046
+ const Tl = "_checkout_5sq3n_1", Il = "_hidden_5sq3n_7", Nl = "_formInitial_5sq3n_11", _l = "_btnsInitial_5sq3n_16", ye = {
3023
3047
  checkout: Tl,
3024
3048
  hidden: Il,
3025
3049
  formInitial: Nl,
@@ -3232,19 +3256,19 @@ function Ll() {
3232
3256
  };
3233
3257
  return xa = t, xa;
3234
3258
  }
3235
- var He = {}, Ye = {}, yr;
3259
+ var Ye = {}, Ge = {}, yr;
3236
3260
  function Hn() {
3237
- if (yr) return Ye;
3238
- yr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.clone = void 0;
3261
+ if (yr) return Ge;
3262
+ yr = 1, Object.defineProperty(Ge, "__esModule", { value: !0 }), Ge.clone = void 0;
3239
3263
  function t(e) {
3240
3264
  return e ? JSON.parse(JSON.stringify(e)) : null;
3241
3265
  }
3242
- return Ye.clone = t, Ye;
3266
+ return Ge.clone = t, Ge;
3243
3267
  }
3244
- var Ge = {}, fr;
3268
+ var We = {}, fr;
3245
3269
  function xl() {
3246
- if (fr) return Ge;
3247
- fr = 1, Object.defineProperty(Ge, "__esModule", { value: !0 }), Ge.matches = void 0;
3270
+ if (fr) return We;
3271
+ fr = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.matches = void 0;
3248
3272
  function t(r, i, n) {
3249
3273
  var s = String(i).length, o = r.substr(0, s), l = parseInt(o, 10);
3250
3274
  return i = parseInt(String(i).substr(0, o.length), 10), n = parseInt(String(n).substr(0, o.length), 10), l >= i && l <= n;
@@ -3255,12 +3279,12 @@ function xl() {
3255
3279
  function a(r, i) {
3256
3280
  return Array.isArray(i) ? t(r, i[0], i[1]) : e(r, i);
3257
3281
  }
3258
- return Ge.matches = a, Ge;
3282
+ return We.matches = a, We;
3259
3283
  }
3260
3284
  var vr;
3261
3285
  function zl() {
3262
- if (vr) return He;
3263
- vr = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.addMatchingCardsToResults = void 0;
3286
+ if (vr) return Ye;
3287
+ vr = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.addMatchingCardsToResults = void 0;
3264
3288
  var t = Hn(), e = xl();
3265
3289
  function a(r, i, n) {
3266
3290
  var s, o;
@@ -3273,21 +3297,21 @@ function zl() {
3273
3297
  }
3274
3298
  }
3275
3299
  }
3276
- return He.addMatchingCardsToResults = a, He;
3300
+ return Ye.addMatchingCardsToResults = a, Ye;
3277
3301
  }
3278
- var We = {}, gr;
3302
+ var $e = {}, gr;
3279
3303
  function Sl() {
3280
- if (gr) return We;
3281
- gr = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.isValidInputType = void 0;
3304
+ if (gr) return $e;
3305
+ gr = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.isValidInputType = void 0;
3282
3306
  function t(e) {
3283
3307
  return typeof e == "string" || e instanceof String;
3284
3308
  }
3285
- return We.isValidInputType = t, We;
3309
+ return $e.isValidInputType = t, $e;
3286
3310
  }
3287
- var $e = {}, Pr;
3311
+ var Qe = {}, Pr;
3288
3312
  function Ml() {
3289
- if (Pr) return $e;
3290
- Pr = 1, Object.defineProperty($e, "__esModule", { value: !0 }), $e.findBestMatch = void 0;
3313
+ if (Pr) return Qe;
3314
+ Pr = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.findBestMatch = void 0;
3291
3315
  function t(a) {
3292
3316
  var r = a.filter(function(i) {
3293
3317
  return i.matchStrength;
@@ -3299,13 +3323,13 @@ function Ml() {
3299
3323
  return !r || Number(r.matchStrength) < Number(i.matchStrength) ? i : r;
3300
3324
  }) : null;
3301
3325
  }
3302
- return $e.findBestMatch = e, $e;
3326
+ return Qe.findBestMatch = e, Qe;
3303
3327
  }
3304
- var Qe, kr;
3328
+ var Ze, kr;
3305
3329
  function jl() {
3306
- if (kr) return Qe;
3330
+ if (kr) return Ze;
3307
3331
  kr = 1;
3308
- var t = Qe && Qe.__assign || function() {
3332
+ var t = Ze && Ze.__assign || function() {
3309
3333
  return t = Object.assign || function(m) {
3310
3334
  for (var y, f = 1, g = arguments.length; f < g; f++) {
3311
3335
  y = arguments[f];
@@ -3389,24 +3413,24 @@ function jl() {
3389
3413
  d.splice(f, 1), d.splice(y, 0, m);
3390
3414
  }, p.resetModifications = function() {
3391
3415
  d = (0, n.clone)(l), s = {};
3392
- }, p.types = o, Qe = p, Qe;
3416
+ }, p.types = o, Ze = p, Ze;
3393
3417
  }
3394
- var Ve = jl();
3395
- Ve.updateCard("visa", {
3418
+ var Fe = jl();
3419
+ Fe.updateCard("visa", {
3396
3420
  lengths: [16]
3397
3421
  });
3398
- Ve.updateCard("unionpay", {
3422
+ Fe.updateCard("unionpay", {
3399
3423
  gaps: [4, 8, 12, 16]
3400
3424
  });
3401
3425
  const Vl = (t, e) => {
3402
- const a = Ve.getTypeInfo(e), r = t.replace(/\D/g, ""), i = (a == null ? void 0 : a.gaps) || [4, 8, 12], n = a ? Math.max(...a.lengths) + i.length : 19, s = [0].concat(i, r.length), o = [];
3426
+ const a = Fe.getTypeInfo(e), r = t.replace(/\D/g, ""), i = (a == null ? void 0 : a.gaps) || [4, 8, 12], n = a ? Math.max(...a.lengths) + i.length : 19, s = [0].concat(i, r.length), o = [];
3403
3427
  for (let l = 0; s[l] < r.length; l++) {
3404
3428
  const d = s[l], c = Math.min(s[l + 1], r.length);
3405
3429
  o.push(r.slice(d, c));
3406
3430
  }
3407
3431
  return o.join(" ").slice(0, n);
3408
3432
  }, Fl = (t, e) => {
3409
- const a = Ve.getTypeInfo(e), r = (a == null ? void 0 : a.code.size) || 4;
3433
+ const a = Fe.getTypeInfo(e), r = (a == null ? void 0 : a.code.size) || 4;
3410
3434
  return t.replace(/\D/g, "").slice(0, r);
3411
3435
  }, Bl = (t, e) => {
3412
3436
  const a = t.replace(/\D/g, "");
@@ -3513,7 +3537,7 @@ const Ea = [
3513
3537
  error: de.Invalid
3514
3538
  };
3515
3539
  };
3516
- var te = /* @__PURE__ */ ((t) => (t.PAYPAL = "PAYPAL", t.APPLE_PAY = "APPLEPAY", t.GOOGLE_PAY = "GPAY", t.CARD = "CARD", t.VENMO = "VENMO", t))(te || {}), at = /* @__PURE__ */ ((t) => (t.PENDING = "PENDING", t.FAILED = "FAILED", t.AUTHORIZED = "AUTHORIZED", t.SETTLING = "SETTLING", t.SETTLED = "SETTLED", t.DECLINED = "DECLINED", t.CANCELLED = "CANCELLED", t))(at || {}), ye = /* @__PURE__ */ ((t) => (t.INSUFFICIENT_FUNDS = "insufficient_funds", t.AUTHENTICATION_REQUIRED = "authentication_required", t.CARD_ISSUER_DECLINE = "card_issuer_decline", t.GENERIC_DECLINE = "generic_decline", t.WITHDRAWAL_LIMIT_EXCEEDED = "withdrawal_limit_exceeded", t.DO_NOT_HONOR = "do_not_honor", t.EXPIRED_CARD = "expired_card", t.SUSPECTED_FRAUD = "suspected_fraud", t.INCORRECT_CVC = "incorrect_cvc", t.INVALID_CARD_NUMBER = "invalid_card_number", t.ISSUER_UNAVAILABLE = "issuer_unavailable", t.CARD_LOST_OR_STOLEN = "card_lost_or_stolen", t.CARD_DECLINED = "card_declined", t))(ye || {});
3540
+ var te = /* @__PURE__ */ ((t) => (t.PAYPAL = "PAYPAL", t.APPLE_PAY = "APPLEPAY", t.GOOGLE_PAY = "GPAY", t.CARD = "CARD", t.VENMO = "VENMO", t))(te || {}), at = /* @__PURE__ */ ((t) => (t.PENDING = "PENDING", t.FAILED = "FAILED", t.AUTHORIZED = "AUTHORIZED", t.SETTLING = "SETTLING", t.SETTLED = "SETTLED", t.DECLINED = "DECLINED", t.CANCELLED = "CANCELLED", t))(at || {}), fe = /* @__PURE__ */ ((t) => (t.INSUFFICIENT_FUNDS = "insufficient_funds", t.AUTHENTICATION_REQUIRED = "authentication_required", t.CARD_ISSUER_DECLINE = "card_issuer_decline", t.GENERIC_DECLINE = "generic_decline", t.WITHDRAWAL_LIMIT_EXCEEDED = "withdrawal_limit_exceeded", t.DO_NOT_HONOR = "do_not_honor", t.EXPIRED_CARD = "expired_card", t.SUSPECTED_FRAUD = "suspected_fraud", t.INCORRECT_CVC = "incorrect_cvc", t.INVALID_CARD_NUMBER = "invalid_card_number", t.ISSUER_UNAVAILABLE = "issuer_unavailable", t.CARD_LOST_OR_STOLEN = "card_lost_or_stolen", t.CARD_DECLINED = "card_declined", t))(fe || {});
3517
3541
  const Et = (t = "sandbox") => ({
3518
3542
  develop: "https://dev-api.paynext.com",
3519
3543
  staging: "https://staging-api.paynext.com",
@@ -3844,7 +3868,7 @@ class Ta {
3844
3868
  const od = "_container_94v1h_1", sd = "_title_94v1h_10", Ir = {
3845
3869
  container: od,
3846
3870
  title: sd
3847
- }, aa = class aa {
3871
+ }, ta = class ta {
3848
3872
  constructor(e) {
3849
3873
  A(this, "element");
3850
3874
  A(this, "message", document.createElement("p"));
@@ -3852,7 +3876,7 @@ const od = "_container_94v1h_1", sd = "_title_94v1h_10", Ir = {
3852
3876
  A(this, "hasCustomMessage", !1);
3853
3877
  this.translate = e, this.element = document.createElement("div"), this.element.classList.add(Ir.container), this.message.classList.add(Ir.title), this.message.textContent = e.messages().status.error, this.element.append(this.icon.render(), this.message), this.translate.subscribe(({ messages: a }) => {
3854
3878
  this.hasCustomMessage || (this.message.textContent = a.status.error);
3855
- }), aa.instances.add(this);
3879
+ }), ta.instances.add(this);
3856
3880
  }
3857
3881
  setMessage(e) {
3858
3882
  this.message.textContent = e, this.hasCustomMessage = !!e;
@@ -3873,16 +3897,16 @@ const od = "_container_94v1h_1", sd = "_title_94v1h_10", Ir = {
3873
3897
  }
3874
3898
  // hide all alert instances across the checkout UI
3875
3899
  static hideAll() {
3876
- for (const e of aa.instances)
3900
+ for (const e of ta.instances)
3877
3901
  e.element.style.display = "none";
3878
3902
  }
3879
3903
  render() {
3880
3904
  return this.element;
3881
3905
  }
3882
3906
  };
3883
- A(aa, "instances", /* @__PURE__ */ new Set());
3884
- let Ae = aa;
3885
- var fa = { exports: {} }, Ze = {};
3907
+ A(ta, "instances", /* @__PURE__ */ new Set());
3908
+ let Ae = ta;
3909
+ var va = { exports: {} }, Xe = {};
3886
3910
  /**
3887
3911
  * @license React
3888
3912
  * react-jsx-runtime.production.js
@@ -3894,7 +3918,7 @@ var fa = { exports: {} }, Ze = {};
3894
3918
  */
3895
3919
  var Nr;
3896
3920
  function ld() {
3897
- if (Nr) return Ze;
3921
+ if (Nr) return Xe;
3898
3922
  Nr = 1;
3899
3923
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
3900
3924
  function a(r, i, n) {
@@ -3912,9 +3936,9 @@ function ld() {
3912
3936
  props: n
3913
3937
  };
3914
3938
  }
3915
- return Ze.Fragment = e, Ze.jsx = a, Ze.jsxs = a, Ze;
3939
+ return Xe.Fragment = e, Xe.jsx = a, Xe.jsxs = a, Xe;
3916
3940
  }
3917
- var Xe = {};
3941
+ var Je = {};
3918
3942
  /**
3919
3943
  * @license React
3920
3944
  * react-jsx-runtime.development.js
@@ -4130,7 +4154,7 @@ React keys must be passed directly to JSX without using spread:
4130
4154
  h,
4131
4155
  n
4132
4156
  )(), q = B(r(n)), b = {};
4133
- Xe.Fragment = y, Xe.jsx = function(v, D, M, P, T) {
4157
+ Je.Fragment = y, Je.jsx = function(v, D, M, P, T) {
4134
4158
  var k = 1e4 > Y.recentlyCreatedOwnerStacks++;
4135
4159
  return c(
4136
4160
  v,
@@ -4142,7 +4166,7 @@ React keys must be passed directly to JSX without using spread:
4142
4166
  k ? Error("react-stack-top-frame") : W,
4143
4167
  k ? B(r(v)) : q
4144
4168
  );
4145
- }, Xe.jsxs = function(v, D, M, P, T) {
4169
+ }, Je.jsxs = function(v, D, M, P, T) {
4146
4170
  var k = 1e4 > Y.recentlyCreatedOwnerStacks++;
4147
4171
  return c(
4148
4172
  v,
@@ -4155,11 +4179,11 @@ React keys must be passed directly to JSX without using spread:
4155
4179
  k ? B(r(v)) : q
4156
4180
  );
4157
4181
  };
4158
- }()), Xe;
4182
+ }()), Je;
4159
4183
  }
4160
4184
  var Rr;
4161
4185
  function cd() {
4162
- return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? fa.exports = ld() : fa.exports = dd()), fa.exports;
4186
+ return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? va.exports = ld() : va.exports = dd()), va.exports;
4163
4187
  }
4164
4188
  cd();
4165
4189
  const ud = [
@@ -4171,7 +4195,7 @@ const ud = [
4171
4195
  oe.Visa,
4172
4196
  oe.UnionPay,
4173
4197
  oe.Maestro
4174
- ], Re = (t) => {
4198
+ ], Oe = (t) => {
4175
4199
  const e = t.errors;
4176
4200
  return {
4177
4201
  // Braintree
@@ -4286,27 +4310,27 @@ const ud = [
4286
4310
  "Closed Card": e == null ? void 0 : e.closedCard,
4287
4311
  "Processor Network Unavailable - Try Again": e == null ? void 0 : e.processorNetworkUnavailableTryAgain,
4288
4312
  // DeclineCode enum mapping (keys are API decline_code values)
4289
- [ye.INSUFFICIENT_FUNDS]: e == null ? void 0 : e.insufficientFunds,
4290
- [ye.AUTHENTICATION_REQUIRED]: e == null ? void 0 : e.cardholderAuthenticationRequired,
4291
- [ye.CARD_ISSUER_DECLINE]: e == null ? void 0 : e.declined,
4292
- [ye.GENERIC_DECLINE]: e == null ? void 0 : e.declined,
4293
- [ye.WITHDRAWAL_LIMIT_EXCEEDED]: e == null ? void 0 : e.limitExceeded,
4294
- [ye.DO_NOT_HONOR]: e == null ? void 0 : e.doNotHonor,
4295
- [ye.EXPIRED_CARD]: e == null ? void 0 : e.expiredCard,
4296
- [ye.SUSPECTED_FRAUD]: e == null ? void 0 : e.processorDeclinedFraudSuspected,
4297
- [ye.INCORRECT_CVC]: (e == null ? void 0 : e.invalidSecurePaymentData) || (e == null ? void 0 : e.invalidCreditCardNumber),
4298
- [ye.INVALID_CARD_NUMBER]: e == null ? void 0 : e.invalidCreditCardNumber,
4299
- [ye.ISSUER_UNAVAILABLE]: e == null ? void 0 : e.offlineIssuerDeclined,
4300
- [ye.CARD_LOST_OR_STOLEN]: e == null ? void 0 : e.cardReportedAsLostOrStolen,
4301
- [ye.CARD_DECLINED]: e == null ? void 0 : e.declined,
4313
+ [fe.INSUFFICIENT_FUNDS]: e == null ? void 0 : e.insufficientFunds,
4314
+ [fe.AUTHENTICATION_REQUIRED]: e == null ? void 0 : e.cardholderAuthenticationRequired,
4315
+ [fe.CARD_ISSUER_DECLINE]: e == null ? void 0 : e.declined,
4316
+ [fe.GENERIC_DECLINE]: e == null ? void 0 : e.declined,
4317
+ [fe.WITHDRAWAL_LIMIT_EXCEEDED]: e == null ? void 0 : e.limitExceeded,
4318
+ [fe.DO_NOT_HONOR]: e == null ? void 0 : e.doNotHonor,
4319
+ [fe.EXPIRED_CARD]: e == null ? void 0 : e.expiredCard,
4320
+ [fe.SUSPECTED_FRAUD]: e == null ? void 0 : e.processorDeclinedFraudSuspected,
4321
+ [fe.INCORRECT_CVC]: (e == null ? void 0 : e.invalidSecurePaymentData) || (e == null ? void 0 : e.invalidCreditCardNumber),
4322
+ [fe.INVALID_CARD_NUMBER]: e == null ? void 0 : e.invalidCreditCardNumber,
4323
+ [fe.ISSUER_UNAVAILABLE]: e == null ? void 0 : e.offlineIssuerDeclined,
4324
+ [fe.CARD_LOST_OR_STOLEN]: e == null ? void 0 : e.cardReportedAsLostOrStolen,
4325
+ [fe.CARD_DECLINED]: e == null ? void 0 : e.declined,
4302
4326
  errorText: e == null ? void 0 : e.errorText,
4303
4327
  "Frame closed before tokenization could occur.": e == null ? void 0 : e.venmoClosed,
4304
4328
  "Window is closed, can not determine type": e == null ? void 0 : e.paypalClosed,
4305
4329
  "Detected popup close": e == null ? void 0 : e.paypalPopupClosed,
4306
4330
  Cancelled: e == null ? void 0 : e.applePayClosed
4307
4331
  };
4308
- }, ua = (t, e) => {
4309
- const a = Re(e);
4332
+ }, pa = (t, e) => {
4333
+ const a = Oe(e);
4310
4334
  let r = e.status.error;
4311
4335
  if (t && typeof t == "object") {
4312
4336
  const i = t, n = i && typeof i.status_reason == "object" && i.status_reason ? i.status_reason : i, s = n && typeof n.decline_code == "string" ? n.decline_code : void 0, o = n && typeof n.message == "string" ? n.message : void 0;
@@ -4341,7 +4365,7 @@ class pd {
4341
4365
  console.error("Apple Pay error:", s);
4342
4366
  return;
4343
4367
  }
4344
- const o = this.config.state.translate.messages(), l = ua(s, o), d = Re(o)[l], c = ((u = this.config.state.translate.messages().errors) == null ? void 0 : u.errorText) || "Error";
4368
+ const o = this.config.state.translate.messages(), l = pa(s, o), d = Oe(o)[l], c = ((u = this.config.state.translate.messages().errors) == null ? void 0 : u.errorText) || "Error";
4345
4369
  this.error.setMessage(`Apple Pay ${c.toLowerCase()}: ${d != null ? d : l}`), this.error.render().style.display = "", (h = e.onError) == null || h.call(e, s);
4346
4370
  },
4347
4371
  onCancel: e.onCancel,
@@ -4369,7 +4393,7 @@ class pd {
4369
4393
  console.error("Apple Pay error:", e);
4370
4394
  return;
4371
4395
  }
4372
- const a = this.config.state.translate.messages(), r = Re(a)[e], i = ((n = this.config.state.translate.messages().errors) == null ? void 0 : n.errorText) || "Error";
4396
+ const a = this.config.state.translate.messages(), r = Oe(a)[e], i = ((n = this.config.state.translate.messages().errors) == null ? void 0 : n.errorText) || "Error";
4373
4397
  this.error.setMessage(`Apple Pay ${i.toLowerCase()}: ${r != null ? r : e}`), this.error.render().style.display = "";
4374
4398
  }
4375
4399
  render() {
@@ -4382,11 +4406,11 @@ const hd = [
4382
4406
  { type: te.GOOGLE_PAY, is_active: !0, order: 3 },
4383
4407
  { type: te.VENMO, is_active: !0, order: 4 },
4384
4408
  { type: te.CARD, is_active: !0, order: 5 }
4385
- ], ze = {
4409
+ ], Se = {
4386
4410
  open: { y: 0, opacity: 1 },
4387
4411
  close: { y: 100, opacity: 0 },
4388
4412
  transition: { duration: 0.5, type: "spring", bounce: 0 }
4389
- }, va = {
4413
+ }, ga = {
4390
4414
  open: { y: 0, opacity: 1 },
4391
4415
  close: { y: -100, opacity: 0 },
4392
4416
  transition: { duration: 0.5, type: "spring", bounce: 0 }
@@ -4427,7 +4451,7 @@ class fd {
4427
4451
  console.error("Google Pay error:", s);
4428
4452
  return;
4429
4453
  }
4430
- const o = ua(s, this.config.state.translate.messages()), l = ((d = this.config.state.translate.messages().errors) == null ? void 0 : d.errorText) || "Error";
4454
+ const o = pa(s, this.config.state.translate.messages()), l = ((d = this.config.state.translate.messages().errors) == null ? void 0 : d.errorText) || "Error";
4431
4455
  this.error.setMessage(`Google Pay ${l.toLowerCase()}: ${o}`), this.error.render().style.display = "", (c = e.onError) == null || c.call(e, s);
4432
4456
  },
4433
4457
  onCancel: e.onCancel,
@@ -4502,7 +4526,7 @@ class Pd {
4502
4526
  console.error("PayPal error:", d);
4503
4527
  return;
4504
4528
  }
4505
- const c = this.config.state.translate.messages(), u = ua(d, c), h = Re(c)[u], p = ((m = this.config.state.translate.messages().errors) == null ? void 0 : m.errorText) || "Error";
4529
+ const c = this.config.state.translate.messages(), u = pa(d, c), h = Oe(c)[u], p = ((m = this.config.state.translate.messages().errors) == null ? void 0 : m.errorText) || "Error";
4506
4530
  this.error.setMessage(`PayPal ${p.toLowerCase()}: ${h != null ? h : u}`), this.error.render().style.display = "", (y = e.onError) == null || y.call(e, d);
4507
4531
  },
4508
4532
  onCancel: e.onCancel,
@@ -4533,7 +4557,7 @@ class Pd {
4533
4557
  console.error("PayPal error:", e);
4534
4558
  return;
4535
4559
  }
4536
- const a = this.config.state.translate.messages(), r = Re(a)[e], i = ((n = this.config.state.translate.messages().errors) == null ? void 0 : n.errorText) || "Error";
4560
+ const a = this.config.state.translate.messages(), r = Oe(a)[e], i = ((n = this.config.state.translate.messages().errors) == null ? void 0 : n.errorText) || "Error";
4537
4561
  this.error.setMessage(`PayPal ${i.toLowerCase()}: ${r != null ? r : e}`), this.error.render().style.display = "";
4538
4562
  }
4539
4563
  // render
@@ -4588,7 +4612,7 @@ class Ad {
4588
4612
  return this.element;
4589
4613
  }
4590
4614
  }
4591
- const Cd = (t, e, a) => e.concat(t.filter((r) => e.every((i) => !a(r, i)))), Ed = "_conteiner_1j5pe_2", Td = "_venmo_1j5pe_8", Id = "_hidden_1j5pe_33", ga = {
4615
+ const Cd = (t, e, a) => e.concat(t.filter((r) => e.every((i) => !a(r, i)))), Ed = "_conteiner_1j5pe_2", Td = "_venmo_1j5pe_8", Id = "_hidden_1j5pe_33", Pa = {
4592
4616
  conteiner: Ed,
4593
4617
  venmo: Td,
4594
4618
  hidden: Id
@@ -4613,7 +4637,7 @@ class Rd {
4613
4637
  A(this, "isInitialized", !1);
4614
4638
  this.config = e, this.braintree = this.config.service.braintree;
4615
4639
  const a = this.config.state.styles.getState().BraintreeButton;
4616
- this.container = document.createElement("div"), this.container.classList.add(ga.conteiner), this.venmoButton = document.createElement("button"), this.venmoButton.classList.add(ga.venmo, ga.hidden), a != null && a.className && this.venmoButton.classList.add(a.className), a != null && a.styles && Object.assign(this.venmoButton.style, a.styles), this.venmoButton.setAttribute("aria-label", "Venmo"), this.venmoButton.innerHTML = _d, this.error = new Ae(this.config.state.translate), this.error.setMessage(""), this.error.render().style.display = "none", this.container.append(this.venmoButton);
4640
+ this.container = document.createElement("div"), this.container.classList.add(Pa.conteiner), this.venmoButton = document.createElement("button"), this.venmoButton.classList.add(Pa.venmo, Pa.hidden), a != null && a.className && this.venmoButton.classList.add(a.className), a != null && a.styles && Object.assign(this.venmoButton.style, a.styles), this.venmoButton.setAttribute("aria-label", "Venmo"), this.venmoButton.innerHTML = _d, this.error = new Ae(this.config.state.translate), this.error.setMessage(""), this.error.render().style.display = "none", this.container.append(this.venmoButton);
4617
4641
  }
4618
4642
  // init
4619
4643
  init(e) {
@@ -4639,7 +4663,7 @@ class Rd {
4639
4663
  yield this.handleExistingTokenization(e);
4640
4664
  return;
4641
4665
  }
4642
- this.venmoButton.classList.remove(ga.hidden), this.container.append(this.error.render()), this.isInitialized = !0, this.events.ready.emit();
4666
+ this.venmoButton.classList.remove(Pa.hidden), this.container.append(this.error.render()), this.isInitialized = !0, this.events.ready.emit();
4643
4667
  } catch (i) {
4644
4668
  console.error("Error initializing Venmo:", i), this.handleVenmoError(i);
4645
4669
  }
@@ -4682,7 +4706,7 @@ class Rd {
4682
4706
  var o, l;
4683
4707
  if (console.error("Venmo error:", e), !this.isInitialized)
4684
4708
  return;
4685
- const r = this.config.state.translate.messages(), i = ua(e, r), n = Re(r)[i], s = ((o = r.errors) == null ? void 0 : o.errorText) || "Error";
4709
+ const r = this.config.state.translate.messages(), i = pa(e, r), n = Oe(r)[i], s = ((o = r.errors) == null ? void 0 : o.errorText) || "Error";
4686
4710
  this.error.setMessage(`Venmo ${s.toLowerCase()}: ${n != null ? n : i}`), this.error.render().style.display = "", (l = a == null ? void 0 : a.onError) == null || l.call(a, e);
4687
4711
  }
4688
4712
  // add event listener
@@ -4695,7 +4719,7 @@ class Rd {
4695
4719
  console.error("Venmo error:", e);
4696
4720
  return;
4697
4721
  }
4698
- const a = this.config.state.translate.messages(), r = Re(a)[e], i = ((n = a.errors) == null ? void 0 : n.errorText) || "Error";
4722
+ const a = this.config.state.translate.messages(), r = Oe(a)[e], i = ((n = a.errors) == null ? void 0 : n.errorText) || "Error";
4699
4723
  this.error.setMessage(`Venmo ${i.toLowerCase()}: ${r != null ? r : e}`), this.error.render().style.display = "";
4700
4724
  }
4701
4725
  // render
@@ -4830,10 +4854,11 @@ class Od {
4830
4854
  // init payment methods
4831
4855
  initPaymentMethods() {
4832
4856
  return H(this, null, function* () {
4833
- const e = this.config.state.transaction.getState(), r = Cd(hd, (e == null ? void 0 : e.checkout_config) || [], (n, s) => n.type === s.type).filter(({ is_active: n }) => n);
4834
- this.initializeButtonInstances(r);
4835
- const i = r.sort((n, s) => n.order - s.order).map(({ type: n }) => {
4836
- switch (n) {
4857
+ const e = this.config.state.transaction.getState(), a = Cd(hd, (e == null ? void 0 : e.checkout_config) || [], (s, o) => s.type === o.type), r = this.config.state.checkout.getState();
4858
+ let i = a.filter(({ is_active: s }) => s);
4859
+ (r == null ? void 0 : r.variant) === "default" && (i = i.filter(({ type: s }) => s !== te.CARD)), this.initializeButtonInstances(i);
4860
+ const n = i.sort((s, o) => s.order - o.order).map(({ type: s }) => {
4861
+ switch (s) {
4837
4862
  case te.APPLE_PAY:
4838
4863
  return this.initApple();
4839
4864
  case te.GOOGLE_PAY:
@@ -4848,7 +4873,7 @@ class Od {
4848
4873
  throw new Error("Unknown button type");
4849
4874
  }
4850
4875
  });
4851
- yield Promise.all(i), this.handleReady();
4876
+ yield Promise.all(n), this.handleReady();
4852
4877
  });
4853
4878
  }
4854
4879
  // Initialize button instances only for active payment methods
@@ -4934,7 +4959,7 @@ class xd {
4934
4959
  return this.element;
4935
4960
  }
4936
4961
  }
4937
- const zd = "_button_191iv_1", Sd = "_disabled_191iv_17", Md = "_press_191iv_22", jd = "_hidden_191iv_26", Vd = "_spinner_191iv_30", Ne = {
4962
+ const zd = "_button_191iv_1", Sd = "_disabled_191iv_17", Md = "_press_191iv_22", jd = "_hidden_191iv_26", Vd = "_spinner_191iv_30", _e = {
4938
4963
  button: zd,
4939
4964
  disabled: Sd,
4940
4965
  press: Md,
@@ -4946,7 +4971,7 @@ class Fd {
4946
4971
  A(this, "element");
4947
4972
  A(this, "spinner", new qn());
4948
4973
  A(this, "message", document.createElement("span"));
4949
- this.element = document.createElement("button"), this.element.classList.add(Ne.button, Ne.press), a != null && a.className && this.element.classList.add(a.className), a != null && a.styles && Object.assign(this.element.style, a.styles), this.spinner.addClass(Ne.spinner), this.spinner.addClass(Ne.hidden), this.message.textContent = e.messages().card.pay.button, this.element.append(this.spinner.render(), this.message), e.subscribe((r) => {
4974
+ this.element = document.createElement("button"), this.element.classList.add(_e.button, _e.press), a != null && a.className && this.element.classList.add(a.className), a != null && a.styles && Object.assign(this.element.style, a.styles), this.spinner.addClass(_e.spinner), this.spinner.addClass(_e.hidden), this.message.textContent = e.messages().card.pay.button, this.element.append(this.spinner.render(), this.message), e.subscribe((r) => {
4950
4975
  this.message.textContent = r.messages.card.pay.button;
4951
4976
  });
4952
4977
  }
@@ -4954,27 +4979,28 @@ class Fd {
4954
4979
  return this.element.addEventListener("click", e);
4955
4980
  }
4956
4981
  disable(e) {
4957
- e ? (this.element.setAttribute("disabled", "true"), this.element.classList.add(Ne.disabled), this.spinner.removeClass(Ne.hidden)) : (this.element.removeAttribute("disabled"), this.element.classList.remove(Ne.disabled), this.spinner.addClass(Ne.hidden));
4982
+ e ? (this.element.setAttribute("disabled", "true"), this.element.classList.add(_e.disabled), this.spinner.removeClass(_e.hidden)) : (this.element.removeAttribute("disabled"), this.element.classList.remove(_e.disabled), this.spinner.addClass(_e.hidden));
4958
4983
  }
4959
4984
  render() {
4960
4985
  return this.element;
4961
4986
  }
4962
4987
  }
4963
- const Bd = "_cardForm_isqbi_1", Ud = "_hidden_isqbi_5", Pa = {
4988
+ const Bd = "_cardForm_kzlcj_1", Ud = "_hidden_kzlcj_5", Kd = "_topOffset_kzlcj_9", Ce = {
4964
4989
  cardForm: Bd,
4965
- hidden: Ud
4966
- }, Kd = "_wrapper_4knhb_1", qd = "_inputContainer_4knhb_5", Hd = "_input_4knhb_5", Yd = "_errorInput_4knhb_24", Gd = "_label_4knhb_28", Wd = "_labelError_4knhb_32", $d = "_disabled_4knhb_36", Qd = "_disabledInput_4knhb_40", Zd = "_hidden_4knhb_47", se = {
4967
- wrapper: Kd,
4968
- inputContainer: qd,
4969
- input: Hd,
4970
- errorInput: Yd,
4971
- label: Gd,
4972
- labelError: Wd,
4973
- disabled: $d,
4974
- disabledInput: Qd,
4975
- hidden: Zd
4990
+ hidden: Ud,
4991
+ topOffset: Kd
4992
+ }, qd = "_wrapper_4knhb_1", Hd = "_inputContainer_4knhb_5", Yd = "_input_4knhb_5", Gd = "_errorInput_4knhb_24", Wd = "_label_4knhb_28", $d = "_labelError_4knhb_32", Qd = "_disabled_4knhb_36", Zd = "_disabledInput_4knhb_40", Xd = "_hidden_4knhb_47", se = {
4993
+ wrapper: qd,
4994
+ inputContainer: Hd,
4995
+ input: Yd,
4996
+ errorInput: Gd,
4997
+ label: Wd,
4998
+ labelError: $d,
4999
+ disabled: Qd,
5000
+ disabledInput: Zd,
5001
+ hidden: Xd
4976
5002
  };
4977
- class Xd {
5003
+ class Jd {
4978
5004
  constructor(e, a) {
4979
5005
  A(this, "id", "paynext-card-input-name");
4980
5006
  A(this, "element");
@@ -5042,20 +5068,20 @@ class Xd {
5042
5068
  return this.toggleLabelError(r), this.isDisabled ? (this.inputContainer.classList.add(se.disabled), this.input.classList.add(se.disabledInput)) : (this.inputContainer.classList.remove(se.disabled), this.input.classList.remove(se.disabledInput)), this.element;
5043
5069
  }
5044
5070
  }
5045
- const Jd = "_wrapper_j8wuo_1", ec = "_inputContainer_j8wuo_5", ac = "_input_j8wuo_5", tc = "_endContent_j8wuo_20", rc = "_errorInput_j8wuo_24", nc = "_error_j8wuo_24", ic = "_label_j8wuo_32", oc = "_labelError_j8wuo_36", sc = "_disabled_j8wuo_40", lc = "_disabledInput_j8wuo_44", dc = "_hidden_j8wuo_51", ne = {
5046
- wrapper: Jd,
5047
- inputContainer: ec,
5048
- input: ac,
5049
- endContent: tc,
5050
- errorInput: rc,
5051
- error: nc,
5052
- label: ic,
5053
- labelError: oc,
5054
- disabled: sc,
5055
- disabledInput: lc,
5056
- hidden: dc
5071
+ const ec = "_wrapper_j8wuo_1", ac = "_inputContainer_j8wuo_5", tc = "_input_j8wuo_5", rc = "_endContent_j8wuo_20", nc = "_errorInput_j8wuo_24", ic = "_error_j8wuo_24", oc = "_label_j8wuo_32", sc = "_labelError_j8wuo_36", lc = "_disabled_j8wuo_40", dc = "_disabledInput_j8wuo_44", cc = "_hidden_j8wuo_51", ne = {
5072
+ wrapper: ec,
5073
+ inputContainer: ac,
5074
+ input: tc,
5075
+ endContent: rc,
5076
+ errorInput: nc,
5077
+ error: ic,
5078
+ label: oc,
5079
+ labelError: sc,
5080
+ disabled: lc,
5081
+ disabledInput: dc,
5082
+ hidden: cc
5057
5083
  };
5058
- class cc {
5084
+ class uc {
5059
5085
  constructor() {
5060
5086
  A(this, "template", `
5061
5087
  <svg
@@ -5093,7 +5119,7 @@ class cc {
5093
5119
  return this.element;
5094
5120
  }
5095
5121
  }
5096
- class uc {
5122
+ class pc {
5097
5123
  constructor() {
5098
5124
  A(this, "template", `
5099
5125
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' class='${X.svg}'>
@@ -5130,7 +5156,7 @@ class uc {
5130
5156
  return this.element;
5131
5157
  }
5132
5158
  }
5133
- class pc {
5159
+ class hc {
5134
5160
  constructor() {
5135
5161
  A(this, "template", `
5136
5162
  <svg
@@ -5180,7 +5206,7 @@ class pc {
5180
5206
  return this.element;
5181
5207
  }
5182
5208
  }
5183
- class hc {
5209
+ class mc {
5184
5210
  constructor() {
5185
5211
  A(this, "template", `
5186
5212
  <svg
@@ -5235,7 +5261,7 @@ class hc {
5235
5261
  return this.element;
5236
5262
  }
5237
5263
  }
5238
- class mc {
5264
+ class yc {
5239
5265
  constructor() {
5240
5266
  A(this, "template", `
5241
5267
  <svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 23 16' width='23' class='${X.svg}'>
@@ -5275,7 +5301,7 @@ class mc {
5275
5301
  return this.element;
5276
5302
  }
5277
5303
  }
5278
- class yc {
5304
+ class fc {
5279
5305
  constructor() {
5280
5306
  A(this, "template", `
5281
5307
  <svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 24 16' width='24' class='${X.svg}'>
@@ -5298,7 +5324,7 @@ class yc {
5298
5324
  return this.element;
5299
5325
  }
5300
5326
  }
5301
- class fc {
5327
+ class vc {
5302
5328
  constructor() {
5303
5329
  A(this, "template", `
5304
5330
  <svg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 0 24 16' width='24' class='${X.svg}'>
@@ -5330,7 +5356,7 @@ class fc {
5330
5356
  return this.element;
5331
5357
  }
5332
5358
  }
5333
- class vc {
5359
+ class gc {
5334
5360
  constructor() {
5335
5361
  A(this, "template", `
5336
5362
  <svg
@@ -5379,7 +5405,7 @@ class vc {
5379
5405
  return this.element;
5380
5406
  }
5381
5407
  }
5382
- class gc {
5408
+ class Pc {
5383
5409
  constructor(e, a) {
5384
5410
  A(this, "id", "paynext-card-input-number");
5385
5411
  A(this, "initialCardTypes", Ea.map((e) => e.type));
@@ -5391,14 +5417,14 @@ class gc {
5391
5417
  A(this, "labelError", document.createElement("span"));
5392
5418
  A(this, "endContent", document.createElement("div"));
5393
5419
  A(this, "error", document.createElement("p"));
5394
- A(this, "unknownCard", new cc());
5395
- A(this, "amex", new uc());
5396
- A(this, "dinerClub", new pc());
5397
- A(this, "discover", new hc());
5398
- A(this, "jcb", new mc());
5399
- A(this, "masterCard", new yc());
5400
- A(this, "unionPay", new fc());
5401
- A(this, "visa", new vc());
5420
+ A(this, "unknownCard", new uc());
5421
+ A(this, "amex", new pc());
5422
+ A(this, "dinerClub", new hc());
5423
+ A(this, "discover", new mc());
5424
+ A(this, "jcb", new yc());
5425
+ A(this, "masterCard", new fc());
5426
+ A(this, "unionPay", new vc());
5427
+ A(this, "visa", new gc());
5402
5428
  A(this, "placeholderStyle", document.createElement("style"));
5403
5429
  A(this, "supportedCardTypes", this.initialCardTypes);
5404
5430
  A(this, "isTouchSubmit", !1);
@@ -5500,20 +5526,20 @@ class gc {
5500
5526
  return this.toggleLabelError(a), this.toggleErrorMessage(r), !a && !r ? (this.inputContainer.classList.remove(ne.errorInput), this.endContent.innerHTML = "", this.endContent.append(...this.getCardIcons())) : (this.endContent.innerHTML = "", this.endContent.appendChild(this.unknownCard.render())), this.isDisabled ? (this.inputContainer.classList.add(ne.disabled), this.input.classList.add(ne.disabledInput)) : (this.inputContainer.classList.remove(ne.disabled), this.input.classList.remove(ne.disabledInput)), this.element;
5501
5527
  }
5502
5528
  }
5503
- const Pc = "_inputContainer_1xdj3_5", kc = "_input_1xdj3_5", bc = "_endContent_1xdj3_20", Ac = "_errorInput_1xdj3_24", Cc = "_error_1xdj3_24", Ec = "_label_1xdj3_32", Tc = "_labelError_1xdj3_36", Ic = "_disabled_1xdj3_40", Nc = "_disabledInput_1xdj3_44", _c = "_hidden_1xdj3_51", Rc = "_securityContent_1xdj3_55", Q = {
5504
- inputContainer: Pc,
5505
- input: kc,
5506
- endContent: bc,
5507
- errorInput: Ac,
5508
- error: Cc,
5509
- label: Ec,
5510
- labelError: Tc,
5511
- disabled: Ic,
5512
- disabledInput: Nc,
5513
- hidden: _c,
5514
- securityContent: Rc
5529
+ const kc = "_inputContainer_1xdj3_5", bc = "_input_1xdj3_5", Ac = "_endContent_1xdj3_20", Cc = "_errorInput_1xdj3_24", Ec = "_error_1xdj3_24", Tc = "_label_1xdj3_32", Ic = "_labelError_1xdj3_36", Nc = "_disabled_1xdj3_40", _c = "_disabledInput_1xdj3_44", Rc = "_hidden_1xdj3_51", Oc = "_securityContent_1xdj3_55", Q = {
5530
+ inputContainer: kc,
5531
+ input: bc,
5532
+ endContent: Ac,
5533
+ errorInput: Cc,
5534
+ error: Ec,
5535
+ label: Tc,
5536
+ labelError: Ic,
5537
+ disabled: Nc,
5538
+ disabledInput: _c,
5539
+ hidden: Rc,
5540
+ securityContent: Oc
5515
5541
  };
5516
- class Oc {
5542
+ class wc {
5517
5543
  constructor() {
5518
5544
  A(this, "template", `
5519
5545
  <svg class='${X.svg}' focusable='false' viewBox='0 0 32 21' role='img' aria-label='CVC'>
@@ -5542,14 +5568,14 @@ class Oc {
5542
5568
  return this.element;
5543
5569
  }
5544
5570
  }
5545
- class wc {
5571
+ class Dc {
5546
5572
  constructor(e, a) {
5547
5573
  A(this, "cvcId", "paynext-card-input-cvc");
5548
5574
  A(this, "expiryId", "paynext-card-input-expiry");
5549
5575
  A(this, "element");
5550
5576
  A(this, "expiryWarning", new Ta());
5551
5577
  A(this, "cvcWarning", new Ta());
5552
- A(this, "cardCvc", new Oc());
5578
+ A(this, "cardCvc", new wc());
5553
5579
  A(this, "expiryInputContainer", document.createElement("div"));
5554
5580
  A(this, "expiryInput", document.createElement("input"));
5555
5581
  A(this, "expiryLabel", document.createElement("label"));
@@ -5612,7 +5638,7 @@ class wc {
5612
5638
  });
5613
5639
  }
5614
5640
  cvcValidator(e) {
5615
- const a = Ve.getTypeInfo(this.cardType || ""), r = !e, i = e.length < ((a == null ? void 0 : a.code.size) || 3);
5641
+ const a = Fe.getTypeInfo(this.cardType || ""), r = !e, i = e.length < ((a == null ? void 0 : a.code.size) || 3);
5616
5642
  return !r && !i ? null : r ? de.Empty : de.Incomplete;
5617
5643
  }
5618
5644
  validateCvc(e) {
@@ -5631,7 +5657,7 @@ class wc {
5631
5657
  handleCvcChange(e) {
5632
5658
  if (this.isDisabled) return;
5633
5659
  this.isCvcRequired = !1, this.cvcErrorMessage = "", this.isCvcChanged || (this.isCvcChanged = !0);
5634
- const a = Fl(e, this.cardType || ""), r = Ve.getTypeInfo(this.cardType || "");
5660
+ const a = Fl(e, this.cardType || ""), r = Fe.getTypeInfo(this.cardType || "");
5635
5661
  a.length === (r == null ? void 0 : r.code.size) && this.validateCvc(a), this.events.cvcChange.emit({
5636
5662
  value: a,
5637
5663
  isValid: this.cvcValidator(a) === null
@@ -5731,8 +5757,8 @@ class wc {
5731
5757
  return this.toggleCvcLabelError(n), this.toggleCvcErrorMessage(s), !n && !s ? (this.cvcInputContainer.classList.remove(Q.errorInput), this.cvcEndContent.innerHTML = "", this.cvcEndContent.appendChild(this.cardCvc.render())) : (this.cvcEndContent.innerHTML = "", this.cvcEndContent.appendChild(this.cvcWarning.render())), this.isDisabled ? (this.expiryInputContainer.classList.add(Q.disabled), this.expiryInput.classList.add(Q.disabledInput), this.cvcInputContainer.classList.add(Q.disabled), this.cvcInput.classList.add(Q.disabledInput)) : (this.expiryInputContainer.classList.remove(Q.disabled), this.expiryInput.classList.remove(Q.disabledInput), this.cvcInputContainer.classList.remove(Q.disabled), this.cvcInput.classList.remove(Q.disabledInput)), this.element;
5732
5758
  }
5733
5759
  }
5734
- class Dc {
5735
- constructor({ translate: e, className: a, stylesState: r }) {
5760
+ class Lc {
5761
+ constructor({ translate: e, className: a, stylesState: r, isDefaultVariant: i }) {
5736
5762
  A(this, "element");
5737
5763
  A(this, "error");
5738
5764
  A(this, "submit");
@@ -5741,27 +5767,30 @@ class Dc {
5741
5767
  A(this, "name");
5742
5768
  A(this, "cardSecurity");
5743
5769
  A(this, "translate");
5770
+ A(this, "isBackVisible", !0);
5744
5771
  A(this, "events", {
5745
5772
  submit: new ce(),
5746
5773
  close: new ce()
5747
5774
  });
5748
- const i = r.getState();
5749
- this.translate = e, this.element = document.createElement("form"), this.error = new Ae(e), this.submit = new Fd(e, i.SubmitButton), this.back = new xd(), this.number = new gc(e, i.Input), this.name = new Xd(e, i.Input), this.cardSecurity = new wc(e, i.Input), this.error.addClassName(Pa.hidden), this.element.classList.add(Pa.cardForm, a || ""), this.element.append(
5750
- this.back.render(),
5775
+ const n = r.getState();
5776
+ this.translate = e, this.element = document.createElement("form"), this.error = new Ae(e), this.submit = new Fd(e, n.SubmitButton), this.back = new xd(), this.number = new Pc(e, n.Input), this.name = new Jd(e, n.Input), this.cardSecurity = new Dc(e, n.Input), this.error.addClassName(Ce.hidden), this.element.classList.add(Ce.cardForm, a || "");
5777
+ const s = this.back.render();
5778
+ i && (this.isBackVisible = !1, s.classList.add(Ce.hidden), this.element.classList.add(Ce.topOffset)), this.element.append(
5779
+ s,
5751
5780
  this.number.render(),
5752
5781
  this.cardSecurity.render(),
5753
5782
  this.name.render(),
5754
5783
  this.error.render(),
5755
5784
  this.submit.render()
5756
- ), this.back.addEventListener(() => this.events.close.emit()), this.number.addEventListener("change", ({ cardType: n }) => this.cardSecurity.updateCardType(n || null)), this.submit.addEventListener((n) => {
5757
- n.preventDefault();
5758
- const { cvc: s, expiry: o } = this.cardSecurity.value(), { value: l, cardType: d } = this.number.value();
5785
+ ), this.back.addEventListener(() => this.events.close.emit()), this.number.addEventListener("change", ({ cardType: o }) => this.cardSecurity.updateCardType(o || null)), this.submit.addEventListener((o) => {
5786
+ o.preventDefault();
5787
+ const { cvc: l, expiry: d } = this.cardSecurity.value(), { value: c, cardType: u } = this.number.value();
5759
5788
  this.events.submit.emit({
5760
- number: l,
5761
- expiry: o,
5762
- cvc: s,
5789
+ number: c,
5790
+ expiry: d,
5791
+ cvc: l,
5763
5792
  name: this.name.value(),
5764
- cardBrand: d
5793
+ cardBrand: u
5765
5794
  });
5766
5795
  });
5767
5796
  }
@@ -5780,19 +5809,28 @@ class Dc {
5780
5809
  }
5781
5810
  showError(e) {
5782
5811
  if (e) {
5783
- const a = Re(this.translate.messages());
5812
+ const a = Oe(this.translate.messages());
5784
5813
  this.error.setMessage(a[e] || e);
5785
5814
  }
5786
- this.error.show(), this.error.removeClassName(Pa.hidden);
5815
+ this.error.show(), this.error.removeClassName(Ce.hidden);
5787
5816
  }
5788
5817
  hideError() {
5789
- this.error.hide(), this.error.addClassName(Pa.hidden);
5818
+ this.error.hide(), this.error.addClassName(Ce.hidden);
5819
+ }
5820
+ // toggle default variant behavior: hide back button and add top offset
5821
+ setDefaultVariant(e) {
5822
+ const a = this.back.render();
5823
+ if (e && this.isBackVisible) {
5824
+ a.classList.add(Ce.hidden), this.element.classList.add(Ce.topOffset), this.isBackVisible = !1;
5825
+ return;
5826
+ }
5827
+ !e && !this.isBackVisible && (a.classList.remove(Ce.hidden), this.element.classList.remove(Ce.topOffset), this.isBackVisible = !0);
5790
5828
  }
5791
5829
  render() {
5792
5830
  return this.element;
5793
5831
  }
5794
5832
  }
5795
- class Lc {
5833
+ class xc {
5796
5834
  constructor() {
5797
5835
  A(this, "template", `
5798
5836
  <svg
@@ -5819,15 +5857,15 @@ class Lc {
5819
5857
  return this.element;
5820
5858
  }
5821
5859
  }
5822
- const xc = "_container_hoha1_1", zc = "_title_hoha1_5", wr = {
5823
- container: xc,
5824
- title: zc
5860
+ const zc = "_container_hoha1_1", Sc = "_title_hoha1_5", wr = {
5861
+ container: zc,
5862
+ title: Sc
5825
5863
  };
5826
- class Sc {
5864
+ class Mc {
5827
5865
  constructor(e) {
5828
5866
  A(this, "element");
5829
5867
  A(this, "message", document.createElement("p"));
5830
- A(this, "icon", new Lc());
5868
+ A(this, "icon", new xc());
5831
5869
  this.translate = e, this.element = document.createElement("div"), this.element.classList.add(wr.container), this.message.classList.add(wr.title), this.message.textContent = e.messages().status.success, this.element.append(this.icon.render(), this.message), this.translate.subscribe(({ messages: a }) => {
5832
5870
  this.message.textContent = a.status.success;
5833
5871
  });
@@ -5842,7 +5880,7 @@ class Sc {
5842
5880
  return this.element;
5843
5881
  }
5844
5882
  }
5845
- class Mc {
5883
+ class jc {
5846
5884
  constructor(e) {
5847
5885
  A(this, "isLoading", !1);
5848
5886
  A(this, "isFormOpen", !1);
@@ -5852,19 +5890,22 @@ class Mc {
5852
5890
  A(this, "success");
5853
5891
  A(this, "buttons");
5854
5892
  A(this, "form");
5855
- this.config = e, this.buttons = new Od(e), this.form = new Dc({
5893
+ this.config = e, this.buttons = new Od(e), this.form = new Lc({
5856
5894
  translate: e.state.translate,
5857
- className: fe.hidden,
5858
- stylesState: e.state.styles
5859
- }), this.success = new Sc(e.state.translate), this.success.addClassName(fe.hidden), this.container.append(this.loader.render(), this.buttons.render(), this.form.render()), this.checkout = document.createElement("div"), this.checkout.classList.add(fe.checkout), this.checkout.append(this.container, this.success.render());
5895
+ className: ye.hidden,
5896
+ stylesState: e.state.styles,
5897
+ isDefaultVariant: e.state.checkout.getState().variant === "default"
5898
+ }), this.success = new Mc(e.state.translate), this.success.addClassName(ye.hidden), this.container.append(this.loader.render(), this.buttons.render(), this.form.render()), this.checkout = document.createElement("div"), this.checkout.classList.add(ye.checkout), this.checkout.append(this.container, this.success.render());
5860
5899
  }
5861
5900
  // init
5862
5901
  init() {
5863
5902
  return H(this, null, function* () {
5864
- this.buttons.addEventListener("ready", () => {
5865
- this.loader.setClassName(fe.hidden), this.buttons.showButton();
5866
- }), this.buttons.addEventListener("open", () => H(this, null, function* () {
5867
- this.isLoading || (this.hideError(), yield le(this.buttons.buttons, va.close, va.transition), this.buttons.buttons.classList.add(fe.hidden), this.form.element.classList.add(fe.formInitial), this.form.element.classList.remove(fe.hidden), yield le(this.form.element, ze.open, ze.transition), this.isFormOpen = !0);
5903
+ this.buttons.addEventListener("ready", () => H(this, null, function* () {
5904
+ this.loader.setClassName(ye.hidden);
5905
+ const { variant: e } = this.config.state.checkout.getState();
5906
+ this.form.setDefaultVariant(e === "default"), this.buttons.showButton(), e === "default" && (this.form.element.classList.remove(ye.hidden), this.isFormOpen = !0);
5907
+ })), this.buttons.addEventListener("open", () => H(this, null, function* () {
5908
+ this.isLoading || (this.hideError(), yield le(this.buttons.buttons, ga.close, ga.transition), this.buttons.buttons.classList.add(ye.hidden), this.form.element.classList.add(ye.formInitial), this.form.element.classList.remove(ye.hidden), yield le(this.form.element, Se.open, Se.transition), this.isFormOpen = !0);
5868
5909
  })), this.buttons.addEventListener("error", () => {
5869
5910
  const { onCheckoutFail: e } = this.config.state.checkout.getState(), a = this.config.state.translate.messages();
5870
5911
  e == null || e(new Error(a.status.error));
@@ -5884,7 +5925,10 @@ class Mc {
5884
5925
  return this.handleSuccess({ clientSession: a, braintree: { nonce: e } });
5885
5926
  }
5886
5927
  }), this.form.addEventListener("close", () => H(this, null, function* () {
5887
- this.isLoading || (this.hideError(), yield le(this.form.element, ze.close, ze.transition), this.form.element.classList.add(fe.hidden), this.buttons.buttons.classList.add(fe.btnsInitial), this.buttons.buttons.classList.remove(fe.hidden), yield le(this.buttons.buttons, va.open, va.transition), this.isFormOpen = !1);
5928
+ if (this.isLoading) return;
5929
+ this.hideError(), yield le(this.form.element, Se.close, Se.transition), this.form.element.classList.add(ye.hidden);
5930
+ const { variant: e } = this.config.state.checkout.getState();
5931
+ e !== "default" && (this.buttons.buttons.classList.add(ye.btnsInitial), this.buttons.buttons.classList.remove(ye.hidden), yield le(this.buttons.buttons, ga.open, ga.transition)), this.isFormOpen = !1;
5888
5932
  })), this.form.addEventListener("submit", (e) => H(this, null, function* () {
5889
5933
  if (this.isLoading || (this.form.touchSubmit(), !this.form.validate())) return;
5890
5934
  const r = e.number.replace(/\D/g, ""), i = this.config.state.checkout.getState(), n = this.config.service.ev.getEv(), [s, o] = yield Promise.all([n.encrypt(r), n.encrypt(e.cvc)]), [l, d] = e.expiry.split("/");
@@ -5913,7 +5957,7 @@ class Mc {
5913
5957
  var n;
5914
5958
  const a = this.config.state.checkout.getState();
5915
5959
  console.error(e);
5916
- const r = this.config.state.translate.messages(), i = ua(e, r);
5960
+ const r = this.config.state.translate.messages(), i = pa(e, r);
5917
5961
  this.buttons.showExternalError(i), this.showError(i), (n = a.onCheckoutFail) == null || n.call(a, new Error(i)), this.setLoading(!1);
5918
5962
  }
5919
5963
  // handle success
@@ -5952,7 +5996,7 @@ class Mc {
5952
5996
  // show success
5953
5997
  showSuccess() {
5954
5998
  return H(this, null, function* () {
5955
- this.container.classList.add(fe.hidden), this.success.removeClassName(fe.hidden), yield le(this.success.element, ze.open, ze.transition);
5999
+ this.container.classList.add(ye.hidden), this.success.removeClassName(ye.hidden), yield le(this.success.element, Se.open, Se.transition);
5956
6000
  });
5957
6001
  }
5958
6002
  // hide error
@@ -5965,17 +6009,17 @@ class Mc {
5965
6009
  }
5966
6010
  // set loading
5967
6011
  setLoading(e) {
5968
- this.isLoading = e, this.form.setLoading(e), this.loader.setClassName(!e || this.isFormOpen ? fe.hidden : "");
6012
+ this.isLoading = e, this.form.setLoading(e), this.loader.setClassName(!e || this.isFormOpen ? ye.hidden : "");
5969
6013
  }
5970
6014
  // render
5971
6015
  render() {
5972
6016
  return this.checkout;
5973
6017
  }
5974
6018
  }
5975
- class jc {
6019
+ class Vc {
5976
6020
  constructor(e) {
5977
6021
  A(this, "component");
5978
- this.config = e, this.component = new Mc(e);
6022
+ this.config = e, this.component = new jc(e);
5979
6023
  }
5980
6024
  // init
5981
6025
  init() {
@@ -6020,23 +6064,24 @@ class Ia {
6020
6064
  return this.observer.addListener(e);
6021
6065
  }
6022
6066
  }
6023
- const Vc = {
6067
+ const Fc = {
6024
6068
  clientToken: "",
6025
6069
  environment: "sandbox",
6026
- apiVersion: "1.0.0"
6070
+ apiVersion: "1.0.0",
6071
+ variant: "default"
6027
6072
  };
6028
- class Fc extends Ia {
6073
+ class Bc extends Ia {
6029
6074
  constructor(e) {
6030
- super(K(K({}, Vc), e));
6075
+ super(K(K({}, Fc), e));
6031
6076
  }
6032
6077
  }
6033
- const Bc = {};
6034
- class Uc extends Ia {
6078
+ const Uc = {};
6079
+ class Kc extends Ia {
6035
6080
  constructor(e) {
6036
- super(K(K({}, Bc), e));
6081
+ super(K(K({}, Uc), e));
6037
6082
  }
6038
6083
  }
6039
- class Kc extends Ia {
6084
+ class qc extends Ia {
6040
6085
  constructor(a) {
6041
6086
  super(a || null);
6042
6087
  A(this, "clientToken", "");
@@ -6051,7 +6096,7 @@ class Kc extends Ia {
6051
6096
  });
6052
6097
  }
6053
6098
  }
6054
- const qc = {
6099
+ const Hc = {
6055
6100
  card: {
6056
6101
  title: "طريقة الدفع",
6057
6102
  number: {
@@ -6218,7 +6263,7 @@ const qc = {
6218
6263
  paypalPopupClosed: "تم اكتشاف إغلاق النافذة المنبثقة",
6219
6264
  applePayClosed: "تم الإلغاء"
6220
6265
  }
6221
- }, Hc = {
6266
+ }, Yc = {
6222
6267
  card: {
6223
6268
  title: "Метод на плащане",
6224
6269
  number: {
@@ -6385,7 +6430,7 @@ const qc = {
6385
6430
  paypalPopupClosed: "Засечено затваряне на изскачащ прозорец",
6386
6431
  applePayClosed: "Отменено"
6387
6432
  }
6388
- }, Yc = {
6433
+ }, Gc = {
6389
6434
  card: {
6390
6435
  title: "Způsob platby",
6391
6436
  number: {
@@ -6552,7 +6597,7 @@ const qc = {
6552
6597
  paypalPopupClosed: "Zjištěno zavření vyskakovacího okna",
6553
6598
  applePayClosed: "Zrušeno"
6554
6599
  }
6555
- }, Gc = {
6600
+ }, Wc = {
6556
6601
  card: {
6557
6602
  title: "Betalingsmetode",
6558
6603
  number: {
@@ -6719,7 +6764,7 @@ const qc = {
6719
6764
  paypalPopupClosed: "Registreret lukning af pop op‑vindue",
6720
6765
  applePayClosed: "Annulleret"
6721
6766
  }
6722
- }, Wc = {
6767
+ }, $c = {
6723
6768
  card: {
6724
6769
  title: "Zahlungsmethode",
6725
6770
  number: {
@@ -6886,7 +6931,7 @@ const qc = {
6886
6931
  paypalPopupClosed: "Schließen des Pop-ups erkannt",
6887
6932
  applePayClosed: "Abgebrochen"
6888
6933
  }
6889
- }, $c = {
6934
+ }, Qc = {
6890
6935
  card: {
6891
6936
  title: "Μέθοδος πληρωμής",
6892
6937
  number: {
@@ -7220,7 +7265,7 @@ const qc = {
7220
7265
  paypalPopupClosed: "Detected popup close",
7221
7266
  applePayClosed: "Cancelled"
7222
7267
  }
7223
- }, Qc = {
7268
+ }, Zc = {
7224
7269
  card: {
7225
7270
  title: "Método de pago",
7226
7271
  number: {
@@ -7387,7 +7432,7 @@ const qc = {
7387
7432
  paypalPopupClosed: "Cierre de ventana emergente detectado",
7388
7433
  applePayClosed: "Cancelado"
7389
7434
  }
7390
- }, Zc = {
7435
+ }, Xc = {
7391
7436
  card: {
7392
7437
  title: "Makseviis",
7393
7438
  number: {
@@ -7554,7 +7599,7 @@ const qc = {
7554
7599
  paypalPopupClosed: "Tuvastati hüpikakna sulgemine",
7555
7600
  applePayClosed: "Tühistatud"
7556
7601
  }
7557
- }, Xc = {
7602
+ }, Jc = {
7558
7603
  card: {
7559
7604
  title: "Maksutapa",
7560
7605
  number: {
@@ -7721,7 +7766,7 @@ const qc = {
7721
7766
  paypalPopupClosed: "Havaittiin ponnahdusikkunan sulkeminen",
7722
7767
  applePayClosed: "Peruutettu"
7723
7768
  }
7724
- }, Jc = {
7769
+ }, eu = {
7725
7770
  card: {
7726
7771
  title: "Paraan ng pagbabayad",
7727
7772
  number: {
@@ -7888,7 +7933,7 @@ const qc = {
7888
7933
  paypalPopupClosed: "Nakita ang pagsasara ng pop-up",
7889
7934
  applePayClosed: "Kanselado"
7890
7935
  }
7891
- }, eu = {
7936
+ }, au = {
7892
7937
  card: {
7893
7938
  title: "Moyen de paiement",
7894
7939
  number: {
@@ -8055,7 +8100,7 @@ const qc = {
8055
8100
  paypalPopupClosed: "Fermeture de fenêtre contextuelle détectée",
8056
8101
  applePayClosed: "Annulé"
8057
8102
  }
8058
- }, au = {
8103
+ }, tu = {
8059
8104
  card: {
8060
8105
  title: "Način plaćanja",
8061
8106
  number: {
@@ -8222,7 +8267,7 @@ const qc = {
8222
8267
  paypalPopupClosed: "Otkriveno zatvaranje skočnog prozora",
8223
8268
  applePayClosed: "Otkazano"
8224
8269
  }
8225
- }, tu = {
8270
+ }, ru = {
8226
8271
  card: {
8227
8272
  title: "Fizetési mód",
8228
8273
  number: {
@@ -8389,7 +8434,7 @@ const qc = {
8389
8434
  paypalPopupClosed: "Észlelt felugró ablak bezárása",
8390
8435
  applePayClosed: "Megszakítva"
8391
8436
  }
8392
- }, ru = {
8437
+ }, nu = {
8393
8438
  card: {
8394
8439
  title: "Metode pembayaran",
8395
8440
  number: {
@@ -8556,7 +8601,7 @@ const qc = {
8556
8601
  paypalPopupClosed: "Terdeteksi penutupan jendela pop-up",
8557
8602
  applePayClosed: "Dibatalkan"
8558
8603
  }
8559
- }, nu = {
8604
+ }, iu = {
8560
8605
  card: {
8561
8606
  title: "Modalità di pagamento",
8562
8607
  number: {
@@ -8723,7 +8768,7 @@ const qc = {
8723
8768
  paypalPopupClosed: "Rilevata chiusura del popup",
8724
8769
  applePayClosed: "Annullato"
8725
8770
  }
8726
- }, iu = {
8771
+ }, ou = {
8727
8772
  card: {
8728
8773
  title: "支払い方法",
8729
8774
  number: {
@@ -8890,7 +8935,7 @@ const qc = {
8890
8935
  paypalPopupClosed: "ポップアップの閉鎖を検出しました",
8891
8936
  applePayClosed: "キャンセルされました"
8892
8937
  }
8893
- }, ou = {
8938
+ }, su = {
8894
8939
  card: {
8895
8940
  title: "결제 방식",
8896
8941
  number: {
@@ -9057,7 +9102,7 @@ const qc = {
9057
9102
  paypalPopupClosed: "팝업 창 닫힘 감지됨",
9058
9103
  applePayClosed: "취소됨"
9059
9104
  }
9060
- }, su = {
9105
+ }, lu = {
9061
9106
  card: {
9062
9107
  title: "Mokėjimo būdas",
9063
9108
  number: {
@@ -9224,7 +9269,7 @@ const qc = {
9224
9269
  paypalPopupClosed: "Aptiktas iššokančiojo lango uždarymas",
9225
9270
  applePayClosed: "Atšaukta"
9226
9271
  }
9227
- }, lu = {
9272
+ }, du = {
9228
9273
  card: {
9229
9274
  title: "Maksājumu veids",
9230
9275
  number: {
@@ -9391,7 +9436,7 @@ const qc = {
9391
9436
  paypalPopupClosed: "Konstatēta uznirstošā loga aizvēršana",
9392
9437
  applePayClosed: "Atcelts"
9393
9438
  }
9394
- }, du = {
9439
+ }, cu = {
9395
9440
  card: {
9396
9441
  title: "Kaedah pembayaran",
9397
9442
  number: {
@@ -9558,7 +9603,7 @@ const qc = {
9558
9603
  paypalPopupClosed: "Pengesan penutupan tetingkap timbul",
9559
9604
  applePayClosed: "Dibatalkan"
9560
9605
  }
9561
- }, cu = {
9606
+ }, uu = {
9562
9607
  card: {
9563
9608
  title: "Metodu tal-ħlas",
9564
9609
  number: {
@@ -9725,7 +9770,7 @@ const qc = {
9725
9770
  paypalPopupClosed: "Innotata għeluq ta’ pop‑up",
9726
9771
  applePayClosed: "Ikkanċellat"
9727
9772
  }
9728
- }, uu = {
9773
+ }, pu = {
9729
9774
  card: {
9730
9775
  title: "Betalingsmetode",
9731
9776
  number: {
@@ -9892,7 +9937,7 @@ const qc = {
9892
9937
  paypalPopupClosed: "Oppdaget lukking av popup‑vindu",
9893
9938
  applePayClosed: "Avbrutt"
9894
9939
  }
9895
- }, pu = {
9940
+ }, hu = {
9896
9941
  card: {
9897
9942
  title: "Betalingsmetode",
9898
9943
  number: {
@@ -10059,7 +10104,7 @@ const qc = {
10059
10104
  paypalPopupClosed: "Oppdaget lukking av popup‑vindu",
10060
10105
  applePayClosed: "Avbrutt"
10061
10106
  }
10062
- }, hu = {
10107
+ }, mu = {
10063
10108
  card: {
10064
10109
  title: "Betaalmethode",
10065
10110
  number: {
@@ -10226,7 +10271,7 @@ const qc = {
10226
10271
  paypalPopupClosed: "Detectie van sluiten van pop‑up",
10227
10272
  applePayClosed: "Geannuleerd"
10228
10273
  }
10229
- }, mu = {
10274
+ }, yu = {
10230
10275
  card: {
10231
10276
  title: "Metoda płatności",
10232
10277
  number: {
@@ -10393,7 +10438,7 @@ const qc = {
10393
10438
  paypalPopupClosed: "Wykryto zamknięcie okna podręcznego",
10394
10439
  applePayClosed: "Anulowano"
10395
10440
  }
10396
- }, yu = {
10441
+ }, fu = {
10397
10442
  card: {
10398
10443
  title: "Forma de pagamento",
10399
10444
  number: {
@@ -10560,7 +10605,7 @@ const qc = {
10560
10605
  paypalPopupClosed: "Deteção de fecho de pop‑up",
10561
10606
  applePayClosed: "Cancelado"
10562
10607
  }
10563
- }, fu = {
10608
+ }, vu = {
10564
10609
  card: {
10565
10610
  title: "Metoda de plată",
10566
10611
  number: {
@@ -10727,7 +10772,7 @@ const qc = {
10727
10772
  paypalPopupClosed: "S-a detectat închiderea ferestrei pop‑up",
10728
10773
  applePayClosed: "Anulat"
10729
10774
  }
10730
- }, vu = {
10775
+ }, gu = {
10731
10776
  card: {
10732
10777
  title: "Метод оплаты",
10733
10778
  number: {
@@ -10894,7 +10939,7 @@ const qc = {
10894
10939
  paypalPopupClosed: "Обнаружено закрытие всплывающего окна",
10895
10940
  applePayClosed: "Отменено"
10896
10941
  }
10897
- }, gu = {
10942
+ }, Pu = {
10898
10943
  card: {
10899
10944
  title: "Спосіб оплати",
10900
10945
  number: {
@@ -11061,7 +11106,7 @@ const qc = {
11061
11106
  paypalPopupClosed: "Виявлено закриття спливаючого вікна",
11062
11107
  applePayClosed: "Скасовано"
11063
11108
  }
11064
- }, Pu = {
11109
+ }, ku = {
11065
11110
  card: {
11066
11111
  title: "Spôsob platby",
11067
11112
  number: {
@@ -11228,7 +11273,7 @@ const qc = {
11228
11273
  paypalPopupClosed: "Zistené zatvorenie vyskakovacieho okna",
11229
11274
  applePayClosed: "Zrušené"
11230
11275
  }
11231
- }, ku = {
11276
+ }, bu = {
11232
11277
  card: {
11233
11278
  title: "Način plačila",
11234
11279
  number: {
@@ -11395,7 +11440,7 @@ const qc = {
11395
11440
  paypalPopupClosed: "Zaznano zaprtje pojavnega okna",
11396
11441
  applePayClosed: "Preklicano"
11397
11442
  }
11398
- }, bu = {
11443
+ }, Au = {
11399
11444
  card: {
11400
11445
  title: "Betalningsmetod",
11401
11446
  number: {
@@ -11562,7 +11607,7 @@ const qc = {
11562
11607
  paypalPopupClosed: "Upptäckt stängning av popup‑fönster",
11563
11608
  applePayClosed: "Avbruten"
11564
11609
  }
11565
- }, Au = {
11610
+ }, Cu = {
11566
11611
  card: {
11567
11612
  title: "วิธีการชำระเงิน",
11568
11613
  number: {
@@ -11729,7 +11774,7 @@ const qc = {
11729
11774
  paypalPopupClosed: "ตรวจพบการปิดหน้าต่างป๊อปอัป",
11730
11775
  applePayClosed: "ยกเลิกแล้ว"
11731
11776
  }
11732
- }, Cu = {
11777
+ }, Eu = {
11733
11778
  card: {
11734
11779
  title: "Ödeme yöntemi",
11735
11780
  number: {
@@ -11896,7 +11941,7 @@ const qc = {
11896
11941
  paypalPopupClosed: "Açılır pencere kapanması algılandı",
11897
11942
  applePayClosed: "İptal edildi"
11898
11943
  }
11899
- }, Eu = {
11944
+ }, Tu = {
11900
11945
  card: {
11901
11946
  title: "Phương thức thanh toán",
11902
11947
  number: {
@@ -12063,7 +12108,7 @@ const qc = {
12063
12108
  paypalPopupClosed: "Phát hiện đóng cửa sổ bật lên",
12064
12109
  applePayClosed: "Đã hủy"
12065
12110
  }
12066
- }, Tu = {
12111
+ }, Iu = {
12067
12112
  card: {
12068
12113
  title: "支付方式",
12069
12114
  number: {
@@ -12231,43 +12276,43 @@ const qc = {
12231
12276
  applePayClosed: "已取消"
12232
12277
  }
12233
12278
  }, tt = {
12234
- ar: qc,
12279
+ ar: Hc,
12235
12280
  en: Gn,
12236
- bg: Hc,
12237
- cs: Yc,
12238
- da: Gc,
12239
- de: Wc,
12240
- el: $c,
12241
- es: Qc,
12242
- et: Zc,
12243
- fi: Xc,
12244
- fil: Jc,
12245
- fr: eu,
12246
- hr: au,
12247
- hu: tu,
12248
- id: ru,
12249
- it: nu,
12250
- ja: iu,
12251
- ko: ou,
12252
- lt: su,
12253
- lv: lu,
12254
- ms: du,
12255
- ru: vu,
12256
- mt: cu,
12257
- no: uu,
12258
- nb: pu,
12259
- nl: hu,
12260
- pl: mu,
12261
- pt: yu,
12262
- ro: fu,
12263
- ua: gu,
12264
- sk: Pu,
12265
- sl: ku,
12266
- sv: bu,
12267
- th: Au,
12268
- tr: Cu,
12269
- vi: Eu,
12270
- zh: Tu
12281
+ bg: Yc,
12282
+ cs: Gc,
12283
+ da: Wc,
12284
+ de: $c,
12285
+ el: Qc,
12286
+ es: Zc,
12287
+ et: Xc,
12288
+ fi: Jc,
12289
+ fil: eu,
12290
+ fr: au,
12291
+ hr: tu,
12292
+ hu: ru,
12293
+ id: nu,
12294
+ it: iu,
12295
+ ja: ou,
12296
+ ko: su,
12297
+ lt: lu,
12298
+ lv: du,
12299
+ ms: cu,
12300
+ ru: gu,
12301
+ mt: uu,
12302
+ no: pu,
12303
+ nb: hu,
12304
+ nl: mu,
12305
+ pl: yu,
12306
+ pt: fu,
12307
+ ro: vu,
12308
+ ua: Pu,
12309
+ sk: ku,
12310
+ sl: bu,
12311
+ sv: Au,
12312
+ th: Cu,
12313
+ tr: Eu,
12314
+ vi: Tu,
12315
+ zh: Iu
12271
12316
  }, rt = () => {
12272
12317
  const t = navigator == null ? void 0 : navigator.language.split("-")[0];
12273
12318
  return tt[t] || tt.en;
@@ -12328,7 +12373,7 @@ const qc = {
12328
12373
  errors: i
12329
12374
  };
12330
12375
  };
12331
- class Iu extends Ia {
12376
+ class Nu extends Ia {
12332
12377
  constructor() {
12333
12378
  super({
12334
12379
  messages: rt(),
@@ -12375,7 +12420,7 @@ class Iu extends Ia {
12375
12420
  * See the License for the specific language governing permissions and
12376
12421
  * limitations under the License.
12377
12422
  */
12378
- function Nu(t, e) {
12423
+ function _u(t, e) {
12379
12424
  var a = {};
12380
12425
  for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (a[r] = t[r]);
12381
12426
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -12383,7 +12428,7 @@ function Nu(t, e) {
12383
12428
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (a[r[i]] = t[r[i]]);
12384
12429
  return a;
12385
12430
  }
12386
- function _u(t, e) {
12431
+ function Ru(t, e) {
12387
12432
  var a = document.querySelector('script[src="'.concat(t, '"]'));
12388
12433
  if (a === null)
12389
12434
  return null;
@@ -12395,38 +12440,38 @@ function _u(t, e) {
12395
12440
  i.dataset[s] !== r.dataset[s] && (n = !1);
12396
12441
  }), n ? a : null;
12397
12442
  }
12398
- function Ru(t) {
12443
+ function Ou(t) {
12399
12444
  var e = t.url, a = t.attributes, r = t.onSuccess, i = t.onError, n = Wn(e, a);
12400
12445
  n.onerror = i, n.onload = r, document.head.insertBefore(n, document.head.firstElementChild);
12401
12446
  }
12402
- function Ou(t) {
12403
- var e = t.sdkBaseUrl, a = t.environment, r = Nu(t, ["sdkBaseUrl", "environment"]), i = e || Lu(a), n = r, s = Object.keys(n).filter(function(d) {
12447
+ function wu(t) {
12448
+ var e = t.sdkBaseUrl, a = t.environment, r = _u(t, ["sdkBaseUrl", "environment"]), i = e || xu(a), n = r, s = Object.keys(n).filter(function(d) {
12404
12449
  return typeof n[d] != "undefined" && n[d] !== null && n[d] !== "";
12405
12450
  }).reduce(function(d, c) {
12406
12451
  var u = n[c].toString();
12407
- return c = wu(c), c.substring(0, 4) === "data" || c === "crossorigin" ? d.attributes[c] = u : d.queryParams[c] = u, d;
12452
+ return c = Du(c), c.substring(0, 4) === "data" || c === "crossorigin" ? d.attributes[c] = u : d.queryParams[c] = u, d;
12408
12453
  }, {
12409
12454
  queryParams: {},
12410
12455
  attributes: {}
12411
12456
  }), o = s.queryParams, l = s.attributes;
12412
12457
  return o["merchant-id"] && o["merchant-id"].indexOf(",") !== -1 && (l["data-merchant-id"] = o["merchant-id"], o["merchant-id"] = "*"), {
12413
- url: "".concat(i, "?").concat(Du(o)),
12458
+ url: "".concat(i, "?").concat(Lu(o)),
12414
12459
  attributes: l
12415
12460
  };
12416
12461
  }
12417
- function wu(t) {
12462
+ function Du(t) {
12418
12463
  var e = function(a, r) {
12419
12464
  return (r ? "-" : "") + a.toLowerCase();
12420
12465
  };
12421
12466
  return t.replace(/[A-Z]+(?![a-z])|[A-Z]/g, e);
12422
12467
  }
12423
- function Du(t) {
12468
+ function Lu(t) {
12424
12469
  var e = "";
12425
12470
  return Object.keys(t).forEach(function(a) {
12426
12471
  e.length !== 0 && (e += "&"), e += a + "=" + t[a];
12427
12472
  }), e;
12428
12473
  }
12429
- function Lu(t) {
12474
+ function xu(t) {
12430
12475
  return t === "sandbox" ? "https://www.sandbox.paypal.com/sdk/js" : "https://www.paypal.com/sdk/js";
12431
12476
  }
12432
12477
  function Wn(t, e) {
@@ -12436,11 +12481,11 @@ function Wn(t, e) {
12436
12481
  a.setAttribute(r, e[r]), r === "data-csp-nonce" && a.setAttribute("nonce", e["data-csp-nonce"]);
12437
12482
  }), a;
12438
12483
  }
12439
- function xu(t, e) {
12484
+ function zu(t, e) {
12440
12485
  if (e === void 0 && (e = Promise), $n(t, e), typeof document == "undefined")
12441
12486
  return e.resolve(null);
12442
- var a = Ou(t), r = a.url, i = a.attributes, n = i["data-namespace"] || "paypal", s = Lr(n);
12443
- return i["data-js-sdk-library"] || (i["data-js-sdk-library"] = "paypal-js"), _u(r, i) && s ? e.resolve(s) : zu({
12487
+ var a = wu(t), r = a.url, i = a.attributes, n = i["data-namespace"] || "paypal", s = Lr(n);
12488
+ return i["data-js-sdk-library"] || (i["data-js-sdk-library"] = "paypal-js"), Ru(r, i) && s ? e.resolve(s) : Su({
12444
12489
  url: r,
12445
12490
  attributes: i
12446
12491
  }, e).then(function() {
@@ -12450,7 +12495,7 @@ function xu(t, e) {
12450
12495
  throw new Error("The window.".concat(n, " global variable is not available."));
12451
12496
  });
12452
12497
  }
12453
- function zu(t, e) {
12498
+ function Su(t, e) {
12454
12499
  e === void 0 && (e = Promise), $n(t, e);
12455
12500
  var a = t.url, r = t.attributes;
12456
12501
  if (typeof a != "string" || a.length === 0)
@@ -12460,7 +12505,7 @@ function zu(t, e) {
12460
12505
  return new e(function(i, n) {
12461
12506
  if (typeof document == "undefined")
12462
12507
  return i();
12463
- Ru({
12508
+ Ou({
12464
12509
  url: a,
12465
12510
  attributes: r,
12466
12511
  onSuccess: function() {
@@ -12485,13 +12530,13 @@ function $n(t, e) {
12485
12530
  if (typeof e != "undefined" && typeof e != "function")
12486
12531
  throw new Error("Expected PromisePonyfill to be a function.");
12487
12532
  }
12488
- const Su = {
12533
+ const Mu = {
12489
12534
  layout: "vertical",
12490
12535
  tagline: !1,
12491
12536
  height: 40,
12492
12537
  borderRadius: 12
12493
12538
  };
12494
- class Mu {
12539
+ class ju {
12495
12540
  constructor() {
12496
12541
  A(this, "paypal", null);
12497
12542
  }
@@ -12499,7 +12544,7 @@ class Mu {
12499
12544
  init(e) {
12500
12545
  return H(this, null, function* () {
12501
12546
  try {
12502
- this.paypal = yield xu(e);
12547
+ this.paypal = yield zu(e);
12503
12548
  } catch (a) {
12504
12549
  console.error("failed to load the PayPal JS SDK script", a);
12505
12550
  }
@@ -12510,7 +12555,7 @@ class Mu {
12510
12555
  return H(this, null, function* () {
12511
12556
  var r, i;
12512
12557
  if (this.paypal) {
12513
- const n = K(K({}, Su), (a == null ? void 0 : a.style) || {});
12558
+ const n = K(K({}, Mu), (a == null ? void 0 : a.style) || {});
12514
12559
  yield (i = (r = this.paypal).Buttons) == null ? void 0 : i.call(r, ee(K({
12515
12560
  fundingSource: "paypal"
12516
12561
  }, a), {
@@ -12524,7 +12569,7 @@ function Pe(t) {
12524
12569
  throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
12525
12570
  }
12526
12571
  var Ma = { exports: {} }, xr;
12527
- function ju() {
12572
+ function Vu() {
12528
12573
  return xr || (xr = 1, function(t, e) {
12529
12574
  (function(a) {
12530
12575
  t.exports = a();
@@ -14198,10 +14243,10 @@ function ju() {
14198
14243
  });
14199
14244
  }(Ma)), Ma.exports;
14200
14245
  }
14201
- var Vu = ju();
14202
- const Fu = /* @__PURE__ */ Ct(Vu);
14246
+ var Fu = Vu();
14247
+ const Bu = /* @__PURE__ */ Ct(Fu);
14203
14248
  var ja = { exports: {} }, zr;
14204
- function Bu() {
14249
+ function Uu() {
14205
14250
  return zr || (zr = 1, function(t, e) {
14206
14251
  (function(a) {
14207
14252
  t.exports = a();
@@ -14887,10 +14932,10 @@ function Bu() {
14887
14932
  });
14888
14933
  }(ja)), ja.exports;
14889
14934
  }
14890
- var Uu = Bu();
14891
- const Ku = /* @__PURE__ */ Ct(Uu);
14935
+ var Ku = Uu();
14936
+ const qu = /* @__PURE__ */ Ct(Ku);
14892
14937
  var Va = { exports: {} }, Sr;
14893
- function qu() {
14938
+ function Hu() {
14894
14939
  return Sr || (Sr = 1, function(t, e) {
14895
14940
  (function(a) {
14896
14941
  t.exports = a();
@@ -17783,9 +17828,9 @@ function qu() {
17783
17828
  });
17784
17829
  }(Va)), Va.exports;
17785
17830
  }
17786
- var Hu = qu();
17787
- const Yu = /* @__PURE__ */ Ct(Hu);
17788
- class Gu {
17831
+ var Yu = Hu();
17832
+ const Gu = /* @__PURE__ */ Ct(Yu);
17833
+ class Wu {
17789
17834
  constructor() {
17790
17835
  A(this, "client", null);
17791
17836
  A(this, "venmoInstance", null);
@@ -17795,9 +17840,9 @@ class Gu {
17795
17840
  init(e) {
17796
17841
  return H(this, null, function* () {
17797
17842
  try {
17798
- this.client = yield Fu.create({ authorization: e.authorization });
17843
+ this.client = yield Bu.create({ authorization: e.authorization });
17799
17844
  try {
17800
- const a = yield Ku.create({ client: this.client, paypal: !0 });
17845
+ const a = yield qu.create({ client: this.client, paypal: !0 });
17801
17846
  this.deviceData = a.deviceData || null;
17802
17847
  } catch (a) {
17803
17848
  console.warn("Braintree device data collection failed:", a), this.deviceData = null;
@@ -17813,7 +17858,7 @@ class Gu {
17813
17858
  if (!this.client)
17814
17859
  throw new Error("Braintree client must be initialized before creating Venmo instance");
17815
17860
  try {
17816
- return this.venmoInstance = yield Yu.create(K({
17861
+ return this.venmoInstance = yield Gu.create(K({
17817
17862
  client: this.client,
17818
17863
  allowDesktop: !0,
17819
17864
  mobileWebFallBack: !0,
@@ -17866,18 +17911,18 @@ class Gu {
17866
17911
  });
17867
17912
  }
17868
17913
  }
17869
- class Wu {
17914
+ class ep {
17870
17915
  constructor() {
17871
17916
  A(this, "ev", new oi());
17872
- A(this, "paypal", new Mu());
17873
- A(this, "braintree", new Gu());
17917
+ A(this, "paypal", new ju());
17918
+ A(this, "braintree", new Wu());
17874
17919
  A(this, "state", {
17875
- translate: new Iu(),
17876
- checkout: new Fc(),
17877
- transaction: new Kc(),
17878
- styles: new Uc()
17920
+ translate: new Nu(),
17921
+ checkout: new Bc(),
17922
+ transaction: new qc(),
17923
+ styles: new Kc()
17879
17924
  });
17880
- A(this, "checkout", new jc({
17925
+ A(this, "checkout", new Vc({
17881
17926
  state: this.state,
17882
17927
  service: { ev: this.ev, paypal: this.paypal, braintree: this.braintree }
17883
17928
  }));
@@ -17886,29 +17931,9 @@ class Wu {
17886
17931
  Object.values(this.state).forEach((e) => e.clearState());
17887
17932
  }
17888
17933
  }
17889
- class Ju {
17890
- constructor(e) {
17891
- A(this, "parent");
17892
- A(this, "core");
17893
- typeof window != "undefined" && (this.parent = e, this.core = new Wu());
17894
- }
17895
- mount(e) {
17896
- return H(this, null, function* () {
17897
- if (!this.parent || !this.core)
17898
- return;
17899
- const a = yield this.core.checkout.mount();
17900
- this.parent.innerHTML = "", this.parent.appendChild(a), this.core.state.checkout.setState(e);
17901
- });
17902
- }
17903
- unmount() {
17904
- return H(this, null, function* () {
17905
- !this.parent || !this.core || (this.parent.innerHTML = "", this.core.clearState());
17906
- });
17907
- }
17908
- }
17909
17934
  export {
17910
- Wu as Core,
17911
- Ju as PayNextCheckout,
17935
+ ep as Core,
17936
+ Zu as PayNextCheckout,
17912
17937
  te as PaymentMethod
17913
17938
  };
17914
17939
  //# sourceMappingURL=index.es.js.map