@odus/checkout 0.14.0-beta.1 → 0.14.0-beta.3

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.
@@ -30,7 +30,7 @@ function et(n, t) {
30
30
  function St(n, t) {
31
31
  return n ^ t;
32
32
  }
33
- function xt(n, t) {
33
+ function Ct(n, t) {
34
34
  return n & ~t;
35
35
  }
36
36
  function jt(n) {
@@ -53,7 +53,7 @@ function Y(n) {
53
53
  r += Vt;
54
54
  return r;
55
55
  }
56
- function Ct(n) {
56
+ function xt(n) {
57
57
  var t = "", e, r = 0, i = 0;
58
58
  for (e = 0; e < n.length && n.charAt(e) != Vt; ++e) {
59
59
  var s = $.indexOf(n.charAt(e));
@@ -276,7 +276,7 @@ var ut = (
276
276
  return a > 0 && (i += ".incomplete"), i;
277
277
  }, n;
278
278
  }()
279
- ), Qt = (
279
+ ), Wt = (
280
280
  /** @class */
281
281
  function() {
282
282
  function n(t, e, r, i, s) {
@@ -506,7 +506,7 @@ var ut = (
506
506
  return this.tagClass === 0 && this.tagNumber === 0;
507
507
  }, n;
508
508
  }()
509
- ), V, Wt = 244837814094590, Tt = (Wt & 16777215) == 15715070, T = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], Xt = (1 << 26) / T[T.length - 1], p = (
509
+ ), V, Qt = 244837814094590, Tt = (Qt & 16777215) == 15715070, T = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], Xt = (1 << 26) / T[T.length - 1], p = (
510
510
  /** @class */
511
511
  function() {
512
512
  function n(t, e, r) {
@@ -604,7 +604,7 @@ var ut = (
604
604
  return this.bitwiseTo(t, St, e), e;
605
605
  }, n.prototype.andNot = function(t) {
606
606
  var e = g();
607
- return this.bitwiseTo(t, xt, e), e;
607
+ return this.bitwiseTo(t, Ct, e), e;
608
608
  }, n.prototype.not = function() {
609
609
  for (var t = g(), e = 0; e < this.t; ++e)
610
610
  t[e] = this.DM & ~this[e];
@@ -630,7 +630,7 @@ var ut = (
630
630
  }, n.prototype.setBit = function(t) {
631
631
  return this.changeBit(t, et);
632
632
  }, n.prototype.clearBit = function(t) {
633
- return this.changeBit(t, xt);
633
+ return this.changeBit(t, Ct);
634
634
  }, n.prototype.flipBit = function(t) {
635
635
  return this.changeBit(t, St);
636
636
  }, n.prototype.add = function(t) {
@@ -1116,7 +1116,7 @@ var ut = (
1116
1116
  function g() {
1117
1117
  return new p(null);
1118
1118
  }
1119
- function x(n, t) {
1119
+ function C(n, t) {
1120
1120
  return new p(n, t);
1121
1121
  }
1122
1122
  var Dt = typeof navigator < "u";
@@ -1303,7 +1303,7 @@ function pe(n, t) {
1303
1303
  for (var e = t - n.length - 6, r = "", i = 0; i < e; i += 2)
1304
1304
  r += "ff";
1305
1305
  var s = "0001" + r + "00" + n;
1306
- return x(s, 16);
1306
+ return C(s, 16);
1307
1307
  }
1308
1308
  function ge(n, t) {
1309
1309
  if (t < n.length + 11)
@@ -1363,7 +1363,7 @@ var Ee = (
1363
1363
  e = e.add(this.p);
1364
1364
  return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r);
1365
1365
  }, n.prototype.setPublic = function(t, e) {
1366
- t != null && e != null && t.length > 0 && e.length > 0 ? (this.n = x(t, 16), this.e = parseInt(e, 16)) : console.error("Invalid RSA public key");
1366
+ t != null && e != null && t.length > 0 && e.length > 0 ? (this.n = C(t, 16), this.e = parseInt(e, 16)) : console.error("Invalid RSA public key");
1367
1367
  }, n.prototype.encrypt = function(t, e) {
1368
1368
  typeof e > "u" && (e = ge);
1369
1369
  var r = this.n.bitLength() + 7 >> 3, i = e(t, r);
@@ -1376,9 +1376,9 @@ var Ee = (
1376
1376
  a = "0" + a;
1377
1377
  return a;
1378
1378
  }, n.prototype.setPrivate = function(t, e, r) {
1379
- t != null && e != null && t.length > 0 && e.length > 0 ? (this.n = x(t, 16), this.e = parseInt(e, 16), this.d = x(r, 16)) : console.error("Invalid RSA private key");
1379
+ t != null && e != null && t.length > 0 && e.length > 0 ? (this.n = C(t, 16), this.e = parseInt(e, 16), this.d = C(r, 16)) : console.error("Invalid RSA private key");
1380
1380
  }, n.prototype.setPrivateEx = function(t, e, r, i, s, a, o, l) {
1381
- t != null && e != null && t.length > 0 && e.length > 0 ? (this.n = x(t, 16), this.e = parseInt(e, 16), this.d = x(r, 16), this.p = x(i, 16), this.q = x(s, 16), this.dmp1 = x(a, 16), this.dmq1 = x(o, 16), this.coeff = x(l, 16)) : console.error("Invalid RSA private key");
1381
+ t != null && e != null && t.length > 0 && e.length > 0 ? (this.n = C(t, 16), this.e = parseInt(e, 16), this.d = C(r, 16), this.p = C(i, 16), this.q = C(s, 16), this.dmp1 = C(a, 16), this.dmq1 = C(o, 16), this.coeff = C(l, 16)) : console.error("Invalid RSA private key");
1382
1382
  }, n.prototype.generate = function(t, e) {
1383
1383
  var r = new lt(), i = t >> 1;
1384
1384
  this.e = parseInt(e, 16);
@@ -1398,7 +1398,7 @@ var Ee = (
1398
1398
  }
1399
1399
  }
1400
1400
  }, n.prototype.decrypt = function(t) {
1401
- var e = x(t, 16), r = this.doPrivate(e);
1401
+ var e = C(t, 16), r = this.doPrivate(e);
1402
1402
  return r == null ? null : be(r, this.n.bitLength() + 7 >> 3);
1403
1403
  }, n.prototype.generateAsync = function(t, e, r) {
1404
1404
  var i = new lt(), s = t >> 1;
@@ -1440,10 +1440,10 @@ var Ee = (
1440
1440
  c = "0" + c;
1441
1441
  return c;
1442
1442
  }, n.prototype.verify = function(t, e, r) {
1443
- var i = x(e, 16), s = this.doPublic(i);
1443
+ var i = C(e, 16), s = this.doPublic(i);
1444
1444
  if (s == null)
1445
1445
  return null;
1446
- var a = s.toString(16).replace(/^1f+00/, ""), o = xe(a);
1446
+ var a = s.toString(16).replace(/^1f+00/, ""), o = Ce(a);
1447
1447
  return o == r(t).toString();
1448
1448
  }, n;
1449
1449
  }()
@@ -1475,7 +1475,7 @@ var ot = {
1475
1475
  function Se(n) {
1476
1476
  return ot[n] || "";
1477
1477
  }
1478
- function xe(n) {
1478
+ function Ce(n) {
1479
1479
  for (var t in ot)
1480
1480
  if (ot.hasOwnProperty(t)) {
1481
1481
  var e = ot[t], r = e.length;
@@ -1484,7 +1484,7 @@ function xe(n) {
1484
1484
  }
1485
1485
  return n;
1486
1486
  }
1487
- function C(n, t, e) {
1487
+ function x(n, t, e) {
1488
1488
  if (!t || !n)
1489
1489
  throw new Error("extend failed, please check that all dependencies are included.");
1490
1490
  var r = function() {
@@ -1658,7 +1658,7 @@ h.asn1.DERAbstractString = function(n) {
1658
1658
  return this.hV;
1659
1659
  }, typeof n < "u" && (typeof n == "string" ? this.setString(n) : typeof n.str < "u" ? this.setString(n.str) : typeof n.hex < "u" && this.setStringHex(n.hex));
1660
1660
  };
1661
- C(h.asn1.DERAbstractString, h.asn1.ASN1Object);
1661
+ x(h.asn1.DERAbstractString, h.asn1.ASN1Object);
1662
1662
  h.asn1.DERAbstractTime = function(n) {
1663
1663
  h.asn1.DERAbstractTime.superclass.constructor.call(this), this.localDateToUTC = function(t) {
1664
1664
  utc = t.getTime() + t.getTimezoneOffset() * 6e4;
@@ -1689,7 +1689,7 @@ h.asn1.DERAbstractTime = function(n) {
1689
1689
  return this.hV;
1690
1690
  };
1691
1691
  };
1692
- C(h.asn1.DERAbstractTime, h.asn1.ASN1Object);
1692
+ x(h.asn1.DERAbstractTime, h.asn1.ASN1Object);
1693
1693
  h.asn1.DERAbstractStructured = function(n) {
1694
1694
  h.asn1.DERAbstractString.superclass.constructor.call(this), this.setByASN1ObjectArray = function(t) {
1695
1695
  this.hTLV = null, this.isModified = !0, this.asn1Array = t;
@@ -1697,11 +1697,11 @@ h.asn1.DERAbstractStructured = function(n) {
1697
1697
  this.hTLV = null, this.isModified = !0, this.asn1Array.push(t);
1698
1698
  }, this.asn1Array = new Array(), typeof n < "u" && typeof n.array < "u" && (this.asn1Array = n.array);
1699
1699
  };
1700
- C(h.asn1.DERAbstractStructured, h.asn1.ASN1Object);
1700
+ x(h.asn1.DERAbstractStructured, h.asn1.ASN1Object);
1701
1701
  h.asn1.DERBoolean = function() {
1702
1702
  h.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff";
1703
1703
  };
1704
- C(h.asn1.DERBoolean, h.asn1.ASN1Object);
1704
+ x(h.asn1.DERBoolean, h.asn1.ASN1Object);
1705
1705
  h.asn1.DERInteger = function(n) {
1706
1706
  h.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function(t) {
1707
1707
  this.hTLV = null, this.isModified = !0, this.hV = h.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);
@@ -1714,7 +1714,7 @@ h.asn1.DERInteger = function(n) {
1714
1714
  return this.hV;
1715
1715
  }, typeof n < "u" && (typeof n.bigint < "u" ? this.setByBigInteger(n.bigint) : typeof n.int < "u" ? this.setByInteger(n.int) : typeof n == "number" ? this.setByInteger(n) : typeof n.hex < "u" && this.setValueHex(n.hex));
1716
1716
  };
1717
- C(h.asn1.DERInteger, h.asn1.ASN1Object);
1717
+ x(h.asn1.DERInteger, h.asn1.ASN1Object);
1718
1718
  h.asn1.DERBitString = function(n) {
1719
1719
  if (n !== void 0 && typeof n.obj < "u") {
1720
1720
  var t = h.asn1.ASN1Util.newObject(n.obj);
@@ -1750,7 +1750,7 @@ h.asn1.DERBitString = function(n) {
1750
1750
  return this.hV;
1751
1751
  }, typeof n < "u" && (typeof n == "string" && n.toLowerCase().match(/^[0-9a-f]+$/) ? this.setHexValueIncludingUnusedBits(n) : typeof n.hex < "u" ? this.setHexValueIncludingUnusedBits(n.hex) : typeof n.bin < "u" ? this.setByBinaryString(n.bin) : typeof n.array < "u" && this.setByBooleanArray(n.array));
1752
1752
  };
1753
- C(h.asn1.DERBitString, h.asn1.ASN1Object);
1753
+ x(h.asn1.DERBitString, h.asn1.ASN1Object);
1754
1754
  h.asn1.DEROctetString = function(n) {
1755
1755
  if (n !== void 0 && typeof n.obj < "u") {
1756
1756
  var t = h.asn1.ASN1Util.newObject(n.obj);
@@ -1758,11 +1758,11 @@ h.asn1.DEROctetString = function(n) {
1758
1758
  }
1759
1759
  h.asn1.DEROctetString.superclass.constructor.call(this, n), this.hT = "04";
1760
1760
  };
1761
- C(h.asn1.DEROctetString, h.asn1.DERAbstractString);
1761
+ x(h.asn1.DEROctetString, h.asn1.DERAbstractString);
1762
1762
  h.asn1.DERNull = function() {
1763
1763
  h.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500";
1764
1764
  };
1765
- C(h.asn1.DERNull, h.asn1.ASN1Object);
1765
+ x(h.asn1.DERNull, h.asn1.ASN1Object);
1766
1766
  h.asn1.DERObjectIdentifier = function(n) {
1767
1767
  var t = function(r) {
1768
1768
  var i = r.toString(16);
@@ -1799,7 +1799,7 @@ h.asn1.DERObjectIdentifier = function(n) {
1799
1799
  return this.hV;
1800
1800
  }, n !== void 0 && (typeof n == "string" ? n.match(/^[0-2].[0-9.]+$/) ? this.setValueOidString(n) : this.setValueName(n) : n.oid !== void 0 ? this.setValueOidString(n.oid) : n.hex !== void 0 ? this.setValueHex(n.hex) : n.name !== void 0 && this.setValueName(n.name));
1801
1801
  };
1802
- C(h.asn1.DERObjectIdentifier, h.asn1.ASN1Object);
1802
+ x(h.asn1.DERObjectIdentifier, h.asn1.ASN1Object);
1803
1803
  h.asn1.DEREnumerated = function(n) {
1804
1804
  h.asn1.DEREnumerated.superclass.constructor.call(this), this.hT = "0a", this.setByBigInteger = function(t) {
1805
1805
  this.hTLV = null, this.isModified = !0, this.hV = h.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);
@@ -1812,27 +1812,27 @@ h.asn1.DEREnumerated = function(n) {
1812
1812
  return this.hV;
1813
1813
  }, typeof n < "u" && (typeof n.int < "u" ? this.setByInteger(n.int) : typeof n == "number" ? this.setByInteger(n) : typeof n.hex < "u" && this.setValueHex(n.hex));
1814
1814
  };
1815
- C(h.asn1.DEREnumerated, h.asn1.ASN1Object);
1815
+ x(h.asn1.DEREnumerated, h.asn1.ASN1Object);
1816
1816
  h.asn1.DERUTF8String = function(n) {
1817
1817
  h.asn1.DERUTF8String.superclass.constructor.call(this, n), this.hT = "0c";
1818
1818
  };
1819
- C(h.asn1.DERUTF8String, h.asn1.DERAbstractString);
1819
+ x(h.asn1.DERUTF8String, h.asn1.DERAbstractString);
1820
1820
  h.asn1.DERNumericString = function(n) {
1821
1821
  h.asn1.DERNumericString.superclass.constructor.call(this, n), this.hT = "12";
1822
1822
  };
1823
- C(h.asn1.DERNumericString, h.asn1.DERAbstractString);
1823
+ x(h.asn1.DERNumericString, h.asn1.DERAbstractString);
1824
1824
  h.asn1.DERPrintableString = function(n) {
1825
1825
  h.asn1.DERPrintableString.superclass.constructor.call(this, n), this.hT = "13";
1826
1826
  };
1827
- C(h.asn1.DERPrintableString, h.asn1.DERAbstractString);
1827
+ x(h.asn1.DERPrintableString, h.asn1.DERAbstractString);
1828
1828
  h.asn1.DERTeletexString = function(n) {
1829
1829
  h.asn1.DERTeletexString.superclass.constructor.call(this, n), this.hT = "14";
1830
1830
  };
1831
- C(h.asn1.DERTeletexString, h.asn1.DERAbstractString);
1831
+ x(h.asn1.DERTeletexString, h.asn1.DERAbstractString);
1832
1832
  h.asn1.DERIA5String = function(n) {
1833
1833
  h.asn1.DERIA5String.superclass.constructor.call(this, n), this.hT = "16";
1834
1834
  };
1835
- C(h.asn1.DERIA5String, h.asn1.DERAbstractString);
1835
+ x(h.asn1.DERIA5String, h.asn1.DERAbstractString);
1836
1836
  h.asn1.DERUTCTime = function(n) {
1837
1837
  h.asn1.DERUTCTime.superclass.constructor.call(this, n), this.hT = "17", this.setByDate = function(t) {
1838
1838
  this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s);
@@ -1840,7 +1840,7 @@ h.asn1.DERUTCTime = function(n) {
1840
1840
  return typeof this.date > "u" && typeof this.s > "u" && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s)), this.hV;
1841
1841
  }, n !== void 0 && (n.str !== void 0 ? this.setString(n.str) : typeof n == "string" && n.match(/^[0-9]{12}Z$/) ? this.setString(n) : n.hex !== void 0 ? this.setStringHex(n.hex) : n.date !== void 0 && this.setByDate(n.date));
1842
1842
  };
1843
- C(h.asn1.DERUTCTime, h.asn1.DERAbstractTime);
1843
+ x(h.asn1.DERUTCTime, h.asn1.DERAbstractTime);
1844
1844
  h.asn1.DERGeneralizedTime = function(n) {
1845
1845
  h.asn1.DERGeneralizedTime.superclass.constructor.call(this, n), this.hT = "18", this.withMillis = !1, this.setByDate = function(t) {
1846
1846
  this.hTLV = null, this.isModified = !0, this.date = t, this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s);
@@ -1848,7 +1848,7 @@ h.asn1.DERGeneralizedTime = function(n) {
1848
1848
  return this.date === void 0 && this.s === void 0 && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s)), this.hV;
1849
1849
  }, n !== void 0 && (n.str !== void 0 ? this.setString(n.str) : typeof n == "string" && n.match(/^[0-9]{14}Z$/) ? this.setString(n) : n.hex !== void 0 ? this.setStringHex(n.hex) : n.date !== void 0 && this.setByDate(n.date), n.millis === !0 && (this.withMillis = !0));
1850
1850
  };
1851
- C(h.asn1.DERGeneralizedTime, h.asn1.DERAbstractTime);
1851
+ x(h.asn1.DERGeneralizedTime, h.asn1.DERAbstractTime);
1852
1852
  h.asn1.DERSequence = function(n) {
1853
1853
  h.asn1.DERSequence.superclass.constructor.call(this, n), this.hT = "30", this.getFreshValueHex = function() {
1854
1854
  for (var t = "", e = 0; e < this.asn1Array.length; e++) {
@@ -1858,7 +1858,7 @@ h.asn1.DERSequence = function(n) {
1858
1858
  return this.hV = t, this.hV;
1859
1859
  };
1860
1860
  };
1861
- C(h.asn1.DERSequence, h.asn1.DERAbstractStructured);
1861
+ x(h.asn1.DERSequence, h.asn1.DERAbstractStructured);
1862
1862
  h.asn1.DERSet = function(n) {
1863
1863
  h.asn1.DERSet.superclass.constructor.call(this, n), this.hT = "31", this.sortFlag = !0, this.getFreshValueHex = function() {
1864
1864
  for (var t = new Array(), e = 0; e < this.asn1Array.length; e++) {
@@ -1868,7 +1868,7 @@ h.asn1.DERSet = function(n) {
1868
1868
  return this.sortFlag == !0 && t.sort(), this.hV = t.join(""), this.hV;
1869
1869
  }, typeof n < "u" && typeof n.sortflag < "u" && n.sortflag == !1 && (this.sortFlag = !1);
1870
1870
  };
1871
- C(h.asn1.DERSet, h.asn1.DERAbstractStructured);
1871
+ x(h.asn1.DERSet, h.asn1.DERAbstractStructured);
1872
1872
  h.asn1.DERTaggedObject = function(n) {
1873
1873
  h.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function(t, e, r) {
1874
1874
  this.hT = e, this.isExplicit = t, this.asn1Object = r, this.isExplicit ? (this.hV = this.asn1Object.getEncodedHex(), this.hTLV = null, this.isModified = !0) : (this.hV = null, this.hTLV = r.getEncodedHex(), this.hTLV = this.hTLV.replace(/^../, e), this.isModified = !1);
@@ -1876,8 +1876,8 @@ h.asn1.DERTaggedObject = function(n) {
1876
1876
  return this.hV;
1877
1877
  }, typeof n < "u" && (typeof n.tag < "u" && (this.hT = n.tag), typeof n.explicit < "u" && (this.isExplicit = n.explicit), typeof n.obj < "u" && (this.asn1Object = n.obj, this.setASN1Object(this.isExplicit, this.hT, this.asn1Object)));
1878
1878
  };
1879
- C(h.asn1.DERTaggedObject, h.asn1.ASN1Object);
1880
- var Ce = /* @__PURE__ */ function() {
1879
+ x(h.asn1.DERTaggedObject, h.asn1.ASN1Object);
1880
+ var xe = /* @__PURE__ */ function() {
1881
1881
  var n = function(t, e) {
1882
1882
  return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
1883
1883
  r.__proto__ = i;
@@ -1897,34 +1897,34 @@ var Ce = /* @__PURE__ */ function() {
1897
1897
  }(), Nt = (
1898
1898
  /** @class */
1899
1899
  function(n) {
1900
- Ce(t, n);
1900
+ xe(t, n);
1901
1901
  function t(e) {
1902
1902
  var r = n.call(this) || this;
1903
1903
  return e && (typeof e == "string" ? r.parseKey(e) : (t.hasPrivateKeyProperty(e) || t.hasPublicKeyProperty(e)) && r.parsePropertiesFrom(e)), r;
1904
1904
  }
1905
1905
  return t.prototype.parseKey = function(e) {
1906
1906
  try {
1907
- var r = 0, i = 0, s = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/, a = s.test(e) ? Zt.decode(e) : mt.unarmor(e), o = Qt.decode(a);
1907
+ var r = 0, i = 0, s = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/, a = s.test(e) ? Zt.decode(e) : mt.unarmor(e), o = Wt.decode(a);
1908
1908
  if (o.sub.length === 3 && (o = o.sub[2].sub[0]), o.sub.length === 9) {
1909
- r = o.sub[1].getHexStringValue(), this.n = x(r, 16), i = o.sub[2].getHexStringValue(), this.e = parseInt(i, 16);
1909
+ r = o.sub[1].getHexStringValue(), this.n = C(r, 16), i = o.sub[2].getHexStringValue(), this.e = parseInt(i, 16);
1910
1910
  var l = o.sub[3].getHexStringValue();
1911
- this.d = x(l, 16);
1911
+ this.d = C(l, 16);
1912
1912
  var c = o.sub[4].getHexStringValue();
1913
- this.p = x(c, 16);
1913
+ this.p = C(c, 16);
1914
1914
  var u = o.sub[5].getHexStringValue();
1915
- this.q = x(u, 16);
1915
+ this.q = C(u, 16);
1916
1916
  var d = o.sub[6].getHexStringValue();
1917
- this.dmp1 = x(d, 16);
1917
+ this.dmp1 = C(d, 16);
1918
1918
  var m = o.sub[7].getHexStringValue();
1919
- this.dmq1 = x(m, 16);
1919
+ this.dmq1 = C(m, 16);
1920
1920
  var f = o.sub[8].getHexStringValue();
1921
- this.coeff = x(f, 16);
1921
+ this.coeff = C(f, 16);
1922
1922
  } else if (o.sub.length === 2)
1923
1923
  if (o.sub[0].sub) {
1924
1924
  var y = o.sub[1], E = y.sub[0];
1925
- r = E.sub[0].getHexStringValue(), this.n = x(r, 16), i = E.sub[1].getHexStringValue(), this.e = parseInt(i, 16);
1925
+ r = E.sub[0].getHexStringValue(), this.n = C(r, 16), i = E.sub[1].getHexStringValue(), this.e = parseInt(i, 16);
1926
1926
  } else
1927
- r = o.sub[0].getHexStringValue(), this.n = x(r, 16), i = o.sub[1].getHexStringValue(), this.e = parseInt(i, 16);
1927
+ r = o.sub[0].getHexStringValue(), this.n = C(r, 16), i = o.sub[1].getHexStringValue(), this.e = parseInt(i, 16);
1928
1928
  else
1929
1929
  return !1;
1930
1930
  return !0;
@@ -2007,7 +2007,7 @@ var Ce = /* @__PURE__ */ function() {
2007
2007
  this.setKey(t);
2008
2008
  }, n.prototype.decrypt = function(t) {
2009
2009
  try {
2010
- return this.getKey().decrypt(Ct(t));
2010
+ return this.getKey().decrypt(xt(t));
2011
2011
  } catch {
2012
2012
  return !1;
2013
2013
  }
@@ -2041,7 +2041,7 @@ var Ce = /* @__PURE__ */ function() {
2041
2041
  return i;
2042
2042
  });
2043
2043
  try {
2044
- return this.getKey().verify(t, Ct(e), r);
2044
+ return this.getKey().verify(t, xt(e), r);
2045
2045
  } catch {
2046
2046
  return !1;
2047
2047
  }
@@ -2076,7 +2076,13 @@ class De {
2076
2076
  browserInfo;
2077
2077
  publicKey;
2078
2078
  constructor(t, e, r) {
2079
- this.apiKey = t, this.baseUrl = gt(e), this.publicKey = e === "test" ? Fe : Me, this.browserInfo = r || { userAgent: navigator.userAgent };
2079
+ this.apiKey = t, this.baseUrl = gt(e), this.publicKey = e === "test" ? Fe : Me, this.browserInfo = r || {
2080
+ colorDepth: screen.colorDepth,
2081
+ javaEnabled: navigator.javaEnabled(),
2082
+ screenHeight: screen.height,
2083
+ screenWidth: screen.width,
2084
+ timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset().toString()
2085
+ };
2080
2086
  }
2081
2087
  async fetchApi({
2082
2088
  endpoint: t,
@@ -2359,7 +2365,7 @@ function Pe({
2359
2365
  reload: s
2360
2366
  };
2361
2367
  }
2362
- const Q = (n) => {
2368
+ const W = (n) => {
2363
2369
  const t = n.replace(/\s/g, "");
2364
2370
  return /^4\d{0,15}$/.test(t) ? "visa" : /^(5[1-5]\d{4}|677189|222[1-9]\d{2}|22[3-9]\d{3}|2[3-6]\d{4}|27[01]\d{3}|2720\d{2})\d{0,13}$/.test(
2365
2371
  t
@@ -2576,7 +2582,7 @@ const Q = (n) => {
2576
2582
  const r = e.replace(/\s/g, "");
2577
2583
  if (!r)
2578
2584
  return n("validation.cardNumberInvalid");
2579
- const i = Q(r);
2585
+ const i = W(r);
2580
2586
  if (i === "unknown")
2581
2587
  return n("validation.cardNumberInvalid");
2582
2588
  const s = i === "amex" ? 15 : 16;
@@ -2587,7 +2593,7 @@ const Q = (n) => {
2587
2593
  const i = e.replace(/\s/g, "");
2588
2594
  if (!i || !/^\d+$/.test(i))
2589
2595
  return n("validation.cardSecurityFormat");
2590
- const a = (r ? Q(r) : "unknown") === "amex" ? 4 : 3;
2596
+ const a = (r ? W(r) : "unknown") === "amex" ? 4 : 3;
2591
2597
  if (i.length !== a)
2592
2598
  return n("validation.cardSecurityFormat");
2593
2599
  }
@@ -2633,7 +2639,7 @@ const Q = (n) => {
2633
2639
  let d = c;
2634
2640
  if (l in J)
2635
2641
  if (l === "cardCvv") {
2636
- const E = Q(u.formData.cardNumber) === "amex" ? 4 : 3;
2642
+ const E = W(u.formData.cardNumber) === "amex" ? 4 : 3;
2637
2643
  d = J.cardCvv(c, E);
2638
2644
  } else
2639
2645
  d = J[l](c);
@@ -2687,9 +2693,9 @@ const Q = (n) => {
2687
2693
  "pay-with-card": "oder mit Karte bezahlen",
2688
2694
  buttonTexts: Ze,
2689
2695
  validation: Ye
2690
- }, Qe = "Email", We = "Cardholder name", Xe = "Card information", tr = "Full name on card", er = "MM / YY", rr = "Do not close the window", ir = { pay: "PAY", submit: "SUBMIT", getPlan: "GET MY PLAN", donate: "DONATE", book: "BOOK NOW", order: "ORDER NOW" }, nr = { emailSuggestion: "Did you mean {{email}}?", emailInvalid: "Your email is not correct", cardExpiryInvalid: "Your card's expiration date is in the past", cardExpiryFormat: "Your card’s expiration date is incomplete", cardSecurityFormat: "Your card’s security code is incomplete", nameRequired: "Please enter the name as it appears on your card", cardNumberInvalid: "Your card number is invalid", "invalid-checkout": "Failed to initialize checkout" }, sr = {
2691
- email: Qe,
2692
- cardholderNameLabel: We,
2696
+ }, We = "Email", Qe = "Cardholder name", Xe = "Card information", tr = "Full name on card", er = "MM / YY", rr = "Do not close the window", ir = { pay: "PAY", submit: "SUBMIT", getPlan: "GET MY PLAN", donate: "DONATE", book: "BOOK NOW", order: "ORDER NOW" }, nr = { emailSuggestion: "Did you mean {{email}}?", emailInvalid: "Your email is not correct", cardExpiryInvalid: "Your card's expiration date is in the past", cardExpiryFormat: "Your card’s expiration date is incomplete", cardSecurityFormat: "Your card’s security code is incomplete", nameRequired: "Please enter the name as it appears on your card", cardNumberInvalid: "Your card number is invalid", "invalid-checkout": "Failed to initialize checkout" }, sr = {
2697
+ email: We,
2698
+ cardholderNameLabel: Qe,
2693
2699
  cardInformation: Xe,
2694
2700
  cardholderNamePlaceholder: tr,
2695
2701
  cardExpiry: er,
@@ -2707,7 +2713,7 @@ const Q = (n) => {
2707
2713
  "pay-with-card": "o paga con tarjeta",
2708
2714
  buttonTexts: dr,
2709
2715
  validation: fr
2710
- }, pr = "E-mail", gr = "Nom du titulaire de la carte", vr = "Informations de la carte", yr = "Nom complet figurant sur la carte", Er = "MM / AA", br = "Veuillez ne pas fermer cette fenêtre", Sr = { pay: "PAYER", submit: "ENVOYER", getPlan: "OBTENIR MON PLAN", donate: "FAIRE UN DON", book: "RÉSERVER MAINTENANT", order: "COMMANDER MAINTENANT" }, xr = { emailSuggestion: "Vouliez-vous dire {{email}}?", emailInvalid: "Votre adresse e-mail n’est pas valide", cardExpiryInvalid: "La date d'expiration de votre carte est dans le passé", cardExpiryFormat: "La date d’expiration de votre carte est incomplète", cardSecurityFormat: "Le code de sécurité de votre carte est incomplet", nameRequired: "Veuillez saisir le nom tel qu’il figure sur votre carte", cardNumberInvalid: "Votre numéro de carte est invalide", "invalid-checkout": "Échec de l'initialisation du checkout" }, Cr = {
2716
+ }, pr = "E-mail", gr = "Nom du titulaire de la carte", vr = "Informations de la carte", yr = "Nom complet figurant sur la carte", Er = "MM / AA", br = "Veuillez ne pas fermer cette fenêtre", Sr = { pay: "PAYER", submit: "ENVOYER", getPlan: "OBTENIR MON PLAN", donate: "FAIRE UN DON", book: "RÉSERVER MAINTENANT", order: "COMMANDER MAINTENANT" }, Cr = { emailSuggestion: "Vouliez-vous dire {{email}}?", emailInvalid: "Votre adresse e-mail n’est pas valide", cardExpiryInvalid: "La date d'expiration de votre carte est dans le passé", cardExpiryFormat: "La date d’expiration de votre carte est incomplète", cardSecurityFormat: "Le code de sécurité de votre carte est incomplet", nameRequired: "Veuillez saisir le nom tel qu’il figure sur votre carte", cardNumberInvalid: "Votre numéro de carte est invalide", "invalid-checkout": "Échec de l'initialisation du checkout" }, xr = {
2711
2717
  email: pr,
2712
2718
  cardholderNameLabel: gr,
2713
2719
  cardInformation: vr,
@@ -2716,7 +2722,7 @@ const Q = (n) => {
2716
2722
  loading: br,
2717
2723
  "pay-with-card": "ou payez avec une carte",
2718
2724
  buttonTexts: Sr,
2719
- validation: xr
2725
+ validation: Cr
2720
2726
  }, wr = "Email", Tr = "Nome del titolare della carta", Fr = "Informazioni sulla carta", Mr = "Nome completo sulla carta", Dr = "MM / AA", Ir = "Non chiudere la finestra", Br = { pay: "PAGA", submit: "INVIA", getPlan: "OTTIENI IL MIO PIANO", donate: "DONARE", book: "PRENOTA ORA", order: "ORDINA ORA" }, Ar = { emailSuggestion: "Intendevi {{email}}?", emailInvalid: "La tua email non è corretta", cardExpiryInvalid: "La data di scadenza della tua carta è nel passato", cardExpiryFormat: "La data di scadenza della tua carta è incompleta", cardSecurityFormat: "Il codice di sicurezza della tua carta è incompleto", nameRequired: "Inserisci il nome come appare sulla tua carta", cardNumberInvalid: "Il numero della tua carta non è valido", "invalid-checkout": "Impossibile inizializzare il checkout" }, Nr = {
2721
2727
  email: wr,
2722
2728
  cardholderNameLabel: Tr,
@@ -2747,9 +2753,9 @@ const Q = (n) => {
2747
2753
  "pay-with-card": "ou pagar com cartão",
2748
2754
  buttonTexts: Zr,
2749
2755
  validation: Yr
2750
- }, Qr = "E-posta", Wr = "Kart sahibinin adı", Xr = "Kart bilgileri", ti = "Kart üzerindeki tam ad", ei = "AA / YY", ri = "Lütfen pencereyi kapatmayın", ii = { pay: "ÖDE", submit: "GÖNDER", getPlan: "PLANIMI AL", donate: "BAĞIŞ YAP", book: "ŞİMDİ REZERVASYON YAP", order: "ŞİMDİ SİPARİŞ VER" }, ni = { emailSuggestion: "{{email}} demek mi istediniz?", emailInvalid: "E-posta adresiniz geçerli değil", cardExpiryInvalid: "Kartınızın son kullanma tarihi geçmiş", cardExpiryFormat: "Kartınızın son kullanma tarihi eksik", cardSecurityFormat: "Kartınızın güvenlik kodu eksik", nameRequired: "Lütfen kart üzerindeki ismi girin", cardNumberInvalid: "Kart numaranız geçersiz", "invalid-checkout": "Checkout başlatılamadı" }, si = {
2751
- email: Qr,
2752
- cardholderNameLabel: Wr,
2756
+ }, Wr = "E-posta", Qr = "Kart sahibinin adı", Xr = "Kart bilgileri", ti = "Kart üzerindeki tam ad", ei = "AA / YY", ri = "Lütfen pencereyi kapatmayın", ii = { pay: "ÖDE", submit: "GÖNDER", getPlan: "PLANIMI AL", donate: "BAĞIŞ YAP", book: "ŞİMDİ REZERVASYON YAP", order: "ŞİMDİ SİPARİŞ VER" }, ni = { emailSuggestion: "{{email}} demek mi istediniz?", emailInvalid: "E-posta adresiniz geçerli değil", cardExpiryInvalid: "Kartınızın son kullanma tarihi geçmiş", cardExpiryFormat: "Kartınızın son kullanma tarihi eksik", cardSecurityFormat: "Kartınızın güvenlik kodu eksik", nameRequired: "Lütfen kart üzerindeki ismi girin", cardNumberInvalid: "Kart numaranız geçersiz", "invalid-checkout": "Checkout başlatılamadı" }, si = {
2757
+ email: Wr,
2758
+ cardholderNameLabel: Qr,
2753
2759
  cardInformation: Xr,
2754
2760
  cardholderNamePlaceholder: ti,
2755
2761
  cardExpiry: ei,
@@ -2761,7 +2767,7 @@ const Q = (n) => {
2761
2767
  en: sr,
2762
2768
  de: Je,
2763
2769
  es: mr,
2764
- fr: Cr,
2770
+ fr: xr,
2765
2771
  pl: qr,
2766
2772
  pt: Jr,
2767
2773
  tr: si,
@@ -3183,7 +3189,7 @@ class di extends S {
3183
3189
  e.style.fontFamily = "inherit", e.style.color = t.styles.color, e.style.fontSize = `${t.styles.fontSize}px`;
3184
3190
  }
3185
3191
  }
3186
- class W extends S {
3192
+ class Q extends S {
3187
3193
  inputElement;
3188
3194
  helperText = null;
3189
3195
  constructor(t) {
@@ -3248,7 +3254,7 @@ class fi {
3248
3254
  translationFunc: o,
3249
3255
  autocomplete: l = "cc-name"
3250
3256
  } = t;
3251
- this.input = new W({
3257
+ this.input = new Q({
3252
3258
  name: "name",
3253
3259
  label: o("cardholderNameLabel"),
3254
3260
  // Always hide error initially - we'll show it only on blur if needed
@@ -3301,7 +3307,7 @@ class mi {
3301
3307
  constructor(t) {
3302
3308
  this.options = t, this.currentMaxLength = this.getMaxLengthForCardBrand(
3303
3309
  t.cardBrand || "unknown"
3304
- ), this.input = new W({
3310
+ ), this.input = new Q({
3305
3311
  name: "cardCvv",
3306
3312
  placeholder: "CVV",
3307
3313
  type: "tel",
@@ -3382,8 +3388,9 @@ class Ei {
3382
3388
  options;
3383
3389
  cardIconsContainer;
3384
3390
  wrapper;
3391
+ inputContainer = null;
3385
3392
  constructor(t) {
3386
- this.options = t, this.wrapper = document.createElement("div"), this.wrapper.style.position = "relative", this.input = new W({
3393
+ this.options = t, this.wrapper = document.createElement("div"), this.wrapper.style.position = "relative", this.input = new Q({
3387
3394
  name: "cardNumber",
3388
3395
  label: t.translationFunc?.("cardInformation") ?? "Card number",
3389
3396
  placeholder: "1234 5678 9012 3456",
@@ -3401,10 +3408,9 @@ class Ei {
3401
3408
  }), this.cardIconsContainer = document.createElement("div"), this.cardIconsContainer.className = "cards-position", this.updateCardIcons("unknown");
3402
3409
  const e = this.input.getElement(), r = e.querySelector(".form-input");
3403
3410
  if (r) {
3404
- const i = document.createElement("div");
3405
- i.style.position = "relative";
3406
- const s = r.parentElement;
3407
- s && (s.insertBefore(i, r), i.appendChild(r), i.appendChild(this.cardIconsContainer));
3411
+ this.inputContainer = document.createElement("div"), this.inputContainer.style.position = "relative", this.inputContainer.style.zIndex = "1";
3412
+ const i = r.parentElement;
3413
+ i && (i.insertBefore(this.inputContainer, r), this.inputContainer.appendChild(r), this.inputContainer.appendChild(this.cardIconsContainer));
3408
3414
  }
3409
3415
  this.wrapper.appendChild(e), this.input.addEventListener("blur", this.handleBlur), this.input.addEventListener("focus", this.handleFocus);
3410
3416
  }
@@ -3426,16 +3432,16 @@ class Ei {
3426
3432
  }
3427
3433
  handleChange = (t) => {
3428
3434
  let i = t.target.value.replace(/\D/g, "");
3429
- const s = Q(i), a = s === "amex" ? 15 : 16;
3435
+ const s = W(i), a = s === "amex" ? 15 : 16;
3430
3436
  i = i.slice(0, a);
3431
3437
  const o = J.cardNumber(i);
3432
3438
  this.input.setValue(o), this.currentCardBrand = s, this.updateCardIcons(this.currentCardBrand), this.options.onChange && this.options.onChange(o, this.currentCardBrand);
3433
3439
  };
3434
3440
  handleBlur = () => {
3435
- this.options.onBlur && this.options.onBlur();
3441
+ this.inputContainer && (this.inputContainer.style.zIndex = "1"), this.options.onBlur && this.options.onBlur();
3436
3442
  };
3437
3443
  handleFocus = () => {
3438
- this.options.onFocus && this.options.onFocus();
3444
+ this.inputContainer && (this.inputContainer.style.zIndex = "10"), this.options.onFocus && this.options.onFocus();
3439
3445
  };
3440
3446
  getElement() {
3441
3447
  return this.wrapper;
@@ -3444,7 +3450,7 @@ class Ei {
3444
3450
  return this.input.getValue();
3445
3451
  }
3446
3452
  setValue(t) {
3447
- this.input.setValue(t), this.currentCardBrand = Q(t), this.updateCardIcons(this.currentCardBrand);
3453
+ this.input.setValue(t), this.currentCardBrand = W(t), this.updateCardIcons(this.currentCardBrand);
3448
3454
  }
3449
3455
  setError(t) {
3450
3456
  this.input.getElement().querySelector(".form-input")?.classList.toggle("form-input-error", t);
@@ -3508,7 +3514,7 @@ class bi extends S {
3508
3514
  }
3509
3515
  }), r && this.cardNumberElement.setValue(r), y.appendChild(this.cardNumberElement.getElement());
3510
3516
  const E = document.createElement("div");
3511
- E.className = "card-details", this.cardExpiry = new W({
3517
+ E.className = "card-details", this.cardExpiry = new Q({
3512
3518
  name: "cardExpiry",
3513
3519
  type: "tel",
3514
3520
  placeholder: m("cardExpiry"),
@@ -3608,7 +3614,7 @@ class Si {
3608
3614
  translationFunc: l,
3609
3615
  autocomplete: c = "email"
3610
3616
  } = t;
3611
- this.input = new W({
3617
+ this.input = new Q({
3612
3618
  name: "email",
3613
3619
  label: l("email"),
3614
3620
  // Always hide error initially - we'll show it only on blur if needed
@@ -3683,8 +3689,8 @@ class qt extends S {
3683
3689
  return t.appendChild(e), t.appendChild(r), t.appendChild(i), t;
3684
3690
  }
3685
3691
  }
3686
- const xi = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='101px'%20height='32'%20viewBox='0%200%20101%2032'%20preserveAspectRatio='xMinYMin%20meet'%3e%3cpath%20fill='%23003087'%20d='M%2012.237%202.8%20L%204.437%202.8%20C%203.937%202.8%203.437%203.2%203.337%203.7%20L%200.237%2023.7%20C%200.137%2024.1%200.437%2024.4%200.837%2024.4%20L%204.537%2024.4%20C%205.037%2024.4%205.537%2024%205.637%2023.5%20L%206.437%2018.1%20C%206.537%2017.6%206.937%2017.2%207.537%2017.2%20L%2010.037%2017.2%20C%2015.137%2017.2%2018.137%2014.7%2018.937%209.8%20C%2019.237%207.7%2018.937%206%2017.937%204.8%20C%2016.837%203.5%2014.837%202.8%2012.237%202.8%20Z%20M%2013.137%2010.1%20C%2012.737%2012.9%2010.537%2012.9%208.537%2012.9%20L%207.337%2012.9%20L%208.137%207.7%20C%208.137%207.4%208.437%207.2%208.737%207.2%20L%209.237%207.2%20C%2010.637%207.2%2011.937%207.2%2012.637%208%20C%2013.137%208.4%2013.337%209.1%2013.137%2010.1%20Z'/%3e%3cpath%20fill='%23003087'%20d='M%2035.437%2010%20L%2031.737%2010%20C%2031.437%2010%2031.137%2010.2%2031.137%2010.5%20L%2030.937%2011.5%20L%2030.637%2011.1%20C%2029.837%209.9%2028.037%209.5%2026.237%209.5%20C%2022.137%209.5%2018.637%2012.6%2017.937%2017%20C%2017.537%2019.2%2018.037%2021.3%2019.337%2022.7%20C%2020.437%2024%2022.137%2024.6%2024.037%2024.6%20C%2027.337%2024.6%2029.237%2022.5%2029.237%2022.5%20L%2029.037%2023.5%20C%2028.937%2023.9%2029.237%2024.3%2029.637%2024.3%20L%2033.037%2024.3%20C%2033.537%2024.3%2034.037%2023.9%2034.137%2023.4%20L%2036.137%2010.6%20C%2036.237%2010.4%2035.837%2010%2035.437%2010%20Z%20M%2030.337%2017.2%20C%2029.937%2019.3%2028.337%2020.8%2026.137%2020.8%20C%2025.037%2020.8%2024.237%2020.5%2023.637%2019.8%20C%2023.037%2019.1%2022.837%2018.2%2023.037%2017.2%20C%2023.337%2015.1%2025.137%2013.6%2027.237%2013.6%20C%2028.337%2013.6%2029.137%2014%2029.737%2014.6%20C%2030.237%2015.3%2030.437%2016.2%2030.337%2017.2%20Z'/%3e%3cpath%20fill='%23003087'%20d='M%2055.337%2010%20L%2051.637%2010%20C%2051.237%2010%2050.937%2010.2%2050.737%2010.5%20L%2045.537%2018.1%20L%2043.337%2010.8%20C%2043.237%2010.3%2042.737%2010%2042.337%2010%20L%2038.637%2010%20C%2038.237%2010%2037.837%2010.4%2038.037%2010.9%20L%2042.137%2023%20L%2038.237%2028.4%20C%2037.937%2028.8%2038.237%2029.4%2038.737%2029.4%20L%2042.437%2029.4%20C%2042.837%2029.4%2043.137%2029.2%2043.337%2028.9%20L%2055.837%2010.9%20C%2056.137%2010.6%2055.837%2010%2055.337%2010%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2067.737%202.8%20L%2059.937%202.8%20C%2059.437%202.8%2058.937%203.2%2058.837%203.7%20L%2055.737%2023.6%20C%2055.637%2024%2055.937%2024.3%2056.337%2024.3%20L%2060.337%2024.3%20C%2060.737%2024.3%2061.037%2024%2061.037%2023.7%20L%2061.937%2018%20C%2062.037%2017.5%2062.437%2017.1%2063.037%2017.1%20L%2065.537%2017.1%20C%2070.637%2017.1%2073.637%2014.6%2074.437%209.7%20C%2074.737%207.6%2074.437%205.9%2073.437%204.7%20C%2072.237%203.5%2070.337%202.8%2067.737%202.8%20Z%20M%2068.637%2010.1%20C%2068.237%2012.9%2066.037%2012.9%2064.037%2012.9%20L%2062.837%2012.9%20L%2063.637%207.7%20C%2063.637%207.4%2063.937%207.2%2064.237%207.2%20L%2064.737%207.2%20C%2066.137%207.2%2067.437%207.2%2068.137%208%20C%2068.637%208.4%2068.737%209.1%2068.637%2010.1%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2090.937%2010%20L%2087.237%2010%20C%2086.937%2010%2086.637%2010.2%2086.637%2010.5%20L%2086.437%2011.5%20L%2086.137%2011.1%20C%2085.337%209.9%2083.537%209.5%2081.737%209.5%20C%2077.637%209.5%2074.137%2012.6%2073.437%2017%20C%2073.037%2019.2%2073.537%2021.3%2074.837%2022.7%20C%2075.937%2024%2077.637%2024.6%2079.537%2024.6%20C%2082.837%2024.6%2084.737%2022.5%2084.737%2022.5%20L%2084.537%2023.5%20C%2084.437%2023.9%2084.737%2024.3%2085.137%2024.3%20L%2088.537%2024.3%20C%2089.037%2024.3%2089.537%2023.9%2089.637%2023.4%20L%2091.637%2010.6%20C%2091.637%2010.4%2091.337%2010%2090.937%2010%20Z%20M%2085.737%2017.2%20C%2085.337%2019.3%2083.737%2020.8%2081.537%2020.8%20C%2080.437%2020.8%2079.637%2020.5%2079.037%2019.8%20C%2078.437%2019.1%2078.237%2018.2%2078.437%2017.2%20C%2078.737%2015.1%2080.537%2013.6%2082.637%2013.6%20C%2083.737%2013.6%2084.537%2014%2085.137%2014.6%20C%2085.737%2015.3%2085.937%2016.2%2085.737%2017.2%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2095.337%203.3%20L%2092.137%2023.6%20C%2092.037%2024%2092.337%2024.3%2092.737%2024.3%20L%2095.937%2024.3%20C%2096.437%2024.3%2096.937%2023.9%2097.037%2023.4%20L%20100.237%203.5%20C%20100.337%203.1%20100.037%202.8%2099.637%202.8%20L%2096.037%202.8%20C%2095.637%202.8%2095.437%203%2095.337%203.3%20Z'/%3e%3c/svg%3e";
3687
- class Ci extends S {
3692
+ const Ci = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='101px'%20height='32'%20viewBox='0%200%20101%2032'%20preserveAspectRatio='xMinYMin%20meet'%3e%3cpath%20fill='%23003087'%20d='M%2012.237%202.8%20L%204.437%202.8%20C%203.937%202.8%203.437%203.2%203.337%203.7%20L%200.237%2023.7%20C%200.137%2024.1%200.437%2024.4%200.837%2024.4%20L%204.537%2024.4%20C%205.037%2024.4%205.537%2024%205.637%2023.5%20L%206.437%2018.1%20C%206.537%2017.6%206.937%2017.2%207.537%2017.2%20L%2010.037%2017.2%20C%2015.137%2017.2%2018.137%2014.7%2018.937%209.8%20C%2019.237%207.7%2018.937%206%2017.937%204.8%20C%2016.837%203.5%2014.837%202.8%2012.237%202.8%20Z%20M%2013.137%2010.1%20C%2012.737%2012.9%2010.537%2012.9%208.537%2012.9%20L%207.337%2012.9%20L%208.137%207.7%20C%208.137%207.4%208.437%207.2%208.737%207.2%20L%209.237%207.2%20C%2010.637%207.2%2011.937%207.2%2012.637%208%20C%2013.137%208.4%2013.337%209.1%2013.137%2010.1%20Z'/%3e%3cpath%20fill='%23003087'%20d='M%2035.437%2010%20L%2031.737%2010%20C%2031.437%2010%2031.137%2010.2%2031.137%2010.5%20L%2030.937%2011.5%20L%2030.637%2011.1%20C%2029.837%209.9%2028.037%209.5%2026.237%209.5%20C%2022.137%209.5%2018.637%2012.6%2017.937%2017%20C%2017.537%2019.2%2018.037%2021.3%2019.337%2022.7%20C%2020.437%2024%2022.137%2024.6%2024.037%2024.6%20C%2027.337%2024.6%2029.237%2022.5%2029.237%2022.5%20L%2029.037%2023.5%20C%2028.937%2023.9%2029.237%2024.3%2029.637%2024.3%20L%2033.037%2024.3%20C%2033.537%2024.3%2034.037%2023.9%2034.137%2023.4%20L%2036.137%2010.6%20C%2036.237%2010.4%2035.837%2010%2035.437%2010%20Z%20M%2030.337%2017.2%20C%2029.937%2019.3%2028.337%2020.8%2026.137%2020.8%20C%2025.037%2020.8%2024.237%2020.5%2023.637%2019.8%20C%2023.037%2019.1%2022.837%2018.2%2023.037%2017.2%20C%2023.337%2015.1%2025.137%2013.6%2027.237%2013.6%20C%2028.337%2013.6%2029.137%2014%2029.737%2014.6%20C%2030.237%2015.3%2030.437%2016.2%2030.337%2017.2%20Z'/%3e%3cpath%20fill='%23003087'%20d='M%2055.337%2010%20L%2051.637%2010%20C%2051.237%2010%2050.937%2010.2%2050.737%2010.5%20L%2045.537%2018.1%20L%2043.337%2010.8%20C%2043.237%2010.3%2042.737%2010%2042.337%2010%20L%2038.637%2010%20C%2038.237%2010%2037.837%2010.4%2038.037%2010.9%20L%2042.137%2023%20L%2038.237%2028.4%20C%2037.937%2028.8%2038.237%2029.4%2038.737%2029.4%20L%2042.437%2029.4%20C%2042.837%2029.4%2043.137%2029.2%2043.337%2028.9%20L%2055.837%2010.9%20C%2056.137%2010.6%2055.837%2010%2055.337%2010%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2067.737%202.8%20L%2059.937%202.8%20C%2059.437%202.8%2058.937%203.2%2058.837%203.7%20L%2055.737%2023.6%20C%2055.637%2024%2055.937%2024.3%2056.337%2024.3%20L%2060.337%2024.3%20C%2060.737%2024.3%2061.037%2024%2061.037%2023.7%20L%2061.937%2018%20C%2062.037%2017.5%2062.437%2017.1%2063.037%2017.1%20L%2065.537%2017.1%20C%2070.637%2017.1%2073.637%2014.6%2074.437%209.7%20C%2074.737%207.6%2074.437%205.9%2073.437%204.7%20C%2072.237%203.5%2070.337%202.8%2067.737%202.8%20Z%20M%2068.637%2010.1%20C%2068.237%2012.9%2066.037%2012.9%2064.037%2012.9%20L%2062.837%2012.9%20L%2063.637%207.7%20C%2063.637%207.4%2063.937%207.2%2064.237%207.2%20L%2064.737%207.2%20C%2066.137%207.2%2067.437%207.2%2068.137%208%20C%2068.637%208.4%2068.737%209.1%2068.637%2010.1%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2090.937%2010%20L%2087.237%2010%20C%2086.937%2010%2086.637%2010.2%2086.637%2010.5%20L%2086.437%2011.5%20L%2086.137%2011.1%20C%2085.337%209.9%2083.537%209.5%2081.737%209.5%20C%2077.637%209.5%2074.137%2012.6%2073.437%2017%20C%2073.037%2019.2%2073.537%2021.3%2074.837%2022.7%20C%2075.937%2024%2077.637%2024.6%2079.537%2024.6%20C%2082.837%2024.6%2084.737%2022.5%2084.737%2022.5%20L%2084.537%2023.5%20C%2084.437%2023.9%2084.737%2024.3%2085.137%2024.3%20L%2088.537%2024.3%20C%2089.037%2024.3%2089.537%2023.9%2089.637%2023.4%20L%2091.637%2010.6%20C%2091.637%2010.4%2091.337%2010%2090.937%2010%20Z%20M%2085.737%2017.2%20C%2085.337%2019.3%2083.737%2020.8%2081.537%2020.8%20C%2080.437%2020.8%2079.637%2020.5%2079.037%2019.8%20C%2078.437%2019.1%2078.237%2018.2%2078.437%2017.2%20C%2078.737%2015.1%2080.537%2013.6%2082.637%2013.6%20C%2083.737%2013.6%2084.537%2014%2085.137%2014.6%20C%2085.737%2015.3%2085.937%2016.2%2085.737%2017.2%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2095.337%203.3%20L%2092.137%2023.6%20C%2092.037%2024%2092.337%2024.3%2092.737%2024.3%20L%2095.937%2024.3%20C%2096.437%2024.3%2096.937%2023.9%2097.037%2023.4%20L%20100.237%203.5%20C%20100.337%203.1%20100.037%202.8%2099.637%202.8%20L%2096.037%202.8%20C%2095.637%202.8%2095.437%203%2095.337%203.3%20Z'/%3e%3c/svg%3e";
3693
+ class xi extends S {
3688
3694
  formData;
3689
3695
  onSubmit;
3690
3696
  isSubmitting = !1;
@@ -3695,7 +3701,7 @@ class Ci extends S {
3695
3701
  const i = document.createElement("div");
3696
3702
  i.className = "paypal-icon-container";
3697
3703
  const s = document.createElement("img");
3698
- s.src = xi, s.style.width = "69px", s.style.height = "22px", s.style.maxWidth = "100%", s.style.display = "block", s.style.height = "auto", i.appendChild(s), this.getElement().appendChild(i), r && this.getElement().addEventListener("click", () => this.handleSubmit());
3704
+ s.src = Ci, s.style.width = "69px", s.style.height = "22px", s.style.maxWidth = "100%", s.style.display = "block", s.style.height = "auto", i.appendChild(s), this.getElement().appendChild(i), r && this.getElement().addEventListener("click", () => this.handleSubmit());
3699
3705
  }
3700
3706
  async handleSubmit() {
3701
3707
  if (!(!this.onSubmit || this.isSubmitting)) {
@@ -3762,7 +3768,7 @@ class Ti extends S {
3762
3768
  switch (l) {
3763
3769
  case "paypal": {
3764
3770
  if (i) {
3765
- const c = new Ci({
3771
+ const c = new xi({
3766
3772
  checkoutProfile: e,
3767
3773
  formData: r,
3768
3774
  onSubmit: i
@@ -4390,18 +4396,18 @@ class Ri extends S {
4390
4396
  async handleSubmit() {
4391
4397
  if (!this.stateCoordinator.isFormDisabled())
4392
4398
  try {
4393
- this.stateCoordinator.setSubmitting(!0), this.updateFormUI(), this.uiManager.showSpinner(this.translation.t("loading")), await this.options.onSubmit({
4399
+ this.stateCoordinator.setSubmitting(!0), this.updateFormUI(), this.options.onLoadingStateChange?.(!0), this.uiManager.showSpinner(this.translation.t("loading")), await this.options.onSubmit({
4394
4400
  formData: this.formManager.getFormState().formData
4395
- }), this.uiManager.hideSpinner(), this.stateCoordinator.setSubmitting(!1), this.updateFormUI();
4401
+ }), this.uiManager.hideSpinner(), this.options.onLoadingStateChange?.(!1), this.stateCoordinator.setSubmitting(!1), this.updateFormUI();
4396
4402
  } catch {
4397
4403
  this.handleSubmitError("Payment processing failed. Please try again.");
4398
4404
  }
4399
4405
  }
4400
4406
  handleSubmitError(t) {
4401
- this.uiManager.hideSpinner(), this.stateCoordinator.setSubmitting(!1), this.uiManager.setErrorMessage(t), this.updateFormUI();
4407
+ this.uiManager.hideSpinner(), this.options.onLoadingStateChange?.(!1), this.stateCoordinator.setSubmitting(!1), this.uiManager.setErrorMessage(t), this.updateFormUI();
4402
4408
  }
4403
4409
  async handlePaypalSubmit() {
4404
- this.stateCoordinator.setSubmitting(!0), this.updateFormUI(), this.uiManager.showSpinner(this.translation.t("loading"));
4410
+ this.stateCoordinator.setSubmitting(!0), this.updateFormUI(), this.options.onLoadingStateChange?.(!0), this.uiManager.showSpinner(this.translation.t("loading"));
4405
4411
  try {
4406
4412
  await this.options.onSubmit({
4407
4413
  formData: null
@@ -4409,7 +4415,7 @@ class Ri extends S {
4409
4415
  } catch {
4410
4416
  this.uiManager.setErrorMessage(
4411
4417
  "PayPal processing failed. Please try again."
4412
- ), this.uiManager.hideSpinner(), this.stateCoordinator.setSubmitting(!1), this.updateFormUI();
4418
+ ), this.uiManager.hideSpinner(), this.options.onLoadingStateChange?.(!1), this.stateCoordinator.setSubmitting(!1), this.updateFormUI();
4413
4419
  }
4414
4420
  }
4415
4421
  setErrorMessage(t) {
@@ -4640,7 +4646,7 @@ export {
4640
4646
  Je as deLocale,
4641
4647
  sr as enLocale,
4642
4648
  mr as esLocale,
4643
- Cr as frLocale,
4649
+ xr as frLocale,
4644
4650
  Nr as itLocale,
4645
4651
  qr as plLocale,
4646
4652
  Jr as ptLocale,
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .form-container{display:flex;flex-direction:column;gap:24px;padding:4px;position:relative;min-height:340px;max-width:100%;text-align:left}.form-container>*{font-family:inherit}.card-details{display:flex}.error-messages-container>*{display:none}.error-messages-container>*:first-child{display:block}.input-wrapper{display:flex;flex-direction:column;width:100%;min-width:0;flex-grow:1;flex-basis:0;box-sizing:border-box;align-items:stretch}.input-wrapper *{box-sizing:border-box}.form-input{opacity:1;font-weight:400;letter-spacing:.02em;transition:box-shadow .1s ease-in,border-radius .2s ease-in;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;background:#fff;padding:8px 12px;border:none;outline:none;line-height:1.5;z-index:0;box-sizing:border-box;min-height:0;flex:1;width:100%}.form-input[name=cardNumber]{padding-right:100px}.form-input-error{color:#dc2727}.form-input::placeholder{color:#717173;opacity:.3}.form-input:focus{box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d;z-index:2}.form-helper-text{color:#dc2727;font-size:12px;font-weight:500;margin-top:4px;display:block;overflow:hidden;max-height:100px;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out}.form-helper-text-hidden{max-height:0;opacity:0;margin-top:0;overflow:hidden}.input-label{margin-bottom:6px}.card-element{position:relative;height:38.5px;transition:box-shadow .1s ease-in;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;padding:0;border:none;background:#fff;border-radius:inherit;box-sizing:border-box}.card-element iframe{width:100%;min-width:0;display:block}.card-element-focus{box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-icon{width:16px;transition:opacity .6s ease-in;opacity:1}.card-icon img{max-width:100%;display:block;height:auto}.cards-position{position:absolute;z-index:10;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:8px;pointer-events:none}.loading{position:relative}.loading:after{content:"";position:absolute;inset:0;height:100%;width:100%;background-color:#fff;border-radius:inherit}@media only screen and (min-width: 600px){.card-icon{width:20px}}.skeleton-container{display:flex;flex-direction:column;gap:12px;padding:4px;position:relative;height:49px;max-width:100%;text-align:left;inset:0;width:100%}.skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;border-radius:8px;animation:shimmer 1.5s ease-in-out infinite;position:relative;overflow:hidden}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton-field{display:flex;flex-direction:column;gap:8px}.skeleton-label{height:16px;width:80px;border-radius:4px}.skeleton-input,.skeleton-payment-method{height:35px;width:100%;border-radius:8px}.skeleton-card-row{display:flex;gap:12px}.skeleton-card-row .skeleton-field{flex:1}.skeleton-submit-button{height:35px;width:100%;border-radius:8px}.skeleton-separator-text{height:14px;width:100px;border-radius:4px}.payment-separator_container{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}.paypal{background-color:#ffc439;color:#253b80;font-weight:700;padding:8px 16px;box-shadow:0 2px 4px #0000001a;text-transform:none;cursor:pointer;border-radius:4px}.paypal:hover{background-color:#ffc439;filter:brightness(.95)}.paypal-icon-container{display:flex;align-items:center;justify-content:center}.paypal-icon-container img{width:69px;height:22px}.payment-separator{width:100%;display:flex;align-items:center;justify-content:space-between;margin:12px 0 -16px}.payment-separator__line{height:1.3px;flex-grow:1;background:#9f9f9f}.payment-separator__text{font-size:14px;color:#0d0d0d;padding:0 16px;margin:0;font-weight:400}.button{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;font-size:14px;font-weight:500;line-height:1.5;text-align:center;cursor:pointer;transition:all .2s ease;font-weight:700;border:none;outline:none;white-space:nowrap;height:min-content;width:100%}.disabled{pointer-events:none}.valid{outline:none;overflow:hidden;transition:all .3s ease}.valid:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transition:left .5s;animation:glowSlide 6s infinite}@keyframes glowSlide{0%{left:-100%}50%{left:100%}to{left:100%}}.valid:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.1) 25%,rgba(255,255,255,.3) 50%,rgba(255,255,255,.1) 75%,transparent 100%);transform:translate(-100%);animation:smoothGlow 7s infinite}@keyframes smoothGlow{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.error-alert{background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:16px;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;animation:slideIn .3s ease-out}.error-alert-content{display:flex;align-items:flex-start;gap:12px}.error-alert-icon-container{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;background-color:#fee2e2;border-radius:50%;color:#dc2626}.error-alert-icon{color:#dc2626}.error-alert-text-container{flex:1;min-width:0}.error-alert-title{margin:0 0 4px;font-size:14px;font-weight:600;color:#991b1b;line-height:1.4}.error-alert-message{margin:0;font-size:14px;color:#7f1d1d;line-height:1.5;word-break:break-word}.blur-bg{position:absolute;inset:0;height:100%;width:100%;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(3.5px);z-index:9999}.loader{width:64px;height:64px;border-radius:50%;background:conic-gradient(from 270deg,#134e4a 0deg,#0f766e 90deg,#0d9488 180deg,#5eaba3 240deg,rgba(13,148,136,.2) 300deg,transparent 330deg);animation:spin 1s linear infinite;position:relative}.loader:before{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff}@keyframes spin{to{transform:rotate(360deg)}}.title{margin-top:20px;font-size:18px;color:#4f4f4f;animation:fadeIn 1s ease-in-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
1
+ .form-container{display:flex;flex-direction:column;gap:24px;padding:4px;position:relative;min-height:340px;max-width:100%;text-align:left}.form-container>*{font-family:inherit}.card-details{display:flex}.error-messages-container>*{display:none}.error-messages-container>*:first-child{display:block}.input-wrapper{display:flex;flex-direction:column;width:100%;min-width:0;flex-grow:1;flex-basis:0;box-sizing:border-box;align-items:stretch}.input-wrapper *{box-sizing:border-box}.form-input{opacity:1;font-weight:400;letter-spacing:.02em;transition:box-shadow .1s ease-in,border-radius .2s ease-in;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;background:#fff;padding:8px 12px;border:none;outline:none;line-height:1.5;z-index:0;box-sizing:border-box;min-height:0;flex:1;width:100%}.form-input[name=cardNumber]{padding-right:100px}.form-input-error{color:#dc2727}.form-input::placeholder{color:#717173;opacity:.3}.form-input:focus{box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d;position:relative;z-index:2}.form-helper-text{color:#dc2727;font-size:12px;font-weight:500;margin-top:4px;display:block;overflow:hidden;max-height:100px;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out}.form-helper-text-hidden{max-height:0;opacity:0;margin-top:0;overflow:hidden}.input-label{margin-bottom:6px}.card-element{position:relative;height:38.5px;transition:box-shadow .1s ease-in;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d;padding:0;border:none;background:#fff;border-radius:inherit;box-sizing:border-box}.card-element iframe{width:100%;min-width:0;display:block}.card-element-focus{box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-icon{width:18px;transition:opacity .6s ease-in;opacity:1}.card-icon img{max-width:100%;display:block;height:auto}.cards-position{position:absolute;z-index:10;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:8px;pointer-events:none}.loading{position:relative}.loading:after{content:"";position:absolute;inset:0;height:100%;width:100%;background-color:#fff;border-radius:inherit}@media only screen and (min-width: 600px){.card-icon{width:20px}}.skeleton-container{display:flex;flex-direction:column;gap:12px;padding:4px;position:relative;height:49px;max-width:100%;text-align:left;inset:0;width:100%}.skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;border-radius:8px;animation:shimmer 1.5s ease-in-out infinite;position:relative;overflow:hidden}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton-field{display:flex;flex-direction:column;gap:8px}.skeleton-label{height:16px;width:80px;border-radius:4px}.skeleton-input,.skeleton-payment-method{height:35px;width:100%;border-radius:8px}.skeleton-card-row{display:flex;gap:12px}.skeleton-card-row .skeleton-field{flex:1}.skeleton-submit-button{height:35px;width:100%;border-radius:8px}.skeleton-separator-text{height:14px;width:100px;border-radius:4px}.payment-separator_container{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}.paypal{background-color:#ffc439;color:#253b80;font-weight:700;padding:8px 16px;box-shadow:0 2px 4px #0000001a;text-transform:none;cursor:pointer;border-radius:4px}.paypal:hover{background-color:#ffc439;filter:brightness(.95)}.paypal-icon-container{display:flex;align-items:center;justify-content:center}.paypal-icon-container img{width:69px;height:22px}.payment-separator{width:100%;display:flex;align-items:center;justify-content:space-between;margin:12px 0 -16px}.payment-separator__line{height:1.3px;flex-grow:1;background:#9f9f9f}.payment-separator__text{font-size:14px;color:#0d0d0d;padding:0 16px;margin:0;font-weight:400}.button{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;font-size:14px;font-weight:500;line-height:1.5;text-align:center;cursor:pointer;transition:all .2s ease;font-weight:700;border:none;outline:none;white-space:nowrap;height:min-content;width:100%}.disabled{pointer-events:none}.valid{outline:none;overflow:hidden;transition:all .3s ease}.valid:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transition:left .5s;animation:glowSlide 6s infinite}@keyframes glowSlide{0%{left:-100%}50%{left:100%}to{left:100%}}.valid:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.1) 25%,rgba(255,255,255,.3) 50%,rgba(255,255,255,.1) 75%,transparent 100%);transform:translate(-100%);animation:smoothGlow 7s infinite}@keyframes smoothGlow{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.error-alert{background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:16px;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f;animation:slideIn .3s ease-out}.error-alert-content{display:flex;align-items:flex-start;gap:12px}.error-alert-icon-container{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;background-color:#fee2e2;border-radius:50%;color:#dc2626}.error-alert-icon{color:#dc2626}.error-alert-text-container{flex:1;min-width:0}.error-alert-title{margin:0 0 4px;font-size:14px;font-weight:600;color:#991b1b;line-height:1.4}.error-alert-message{margin:0;font-size:14px;color:#7f1d1d;line-height:1.5;word-break:break-word}.blur-bg{position:absolute;inset:0;height:100%;width:100%;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(3.5px);z-index:9999}.loader{width:64px;height:64px;border-radius:50%;background:conic-gradient(from 270deg,#134e4a 0deg,#0f766e 90deg,#0d9488 180deg,#5eaba3 240deg,rgba(13,148,136,.2) 300deg,transparent 330deg);animation:spin 1s linear infinite;position:relative}.loader:before{content:"";position:absolute;inset:6px;border-radius:50%;background:#fff}@keyframes spin{to{transform:rotate(360deg)}}.title{margin-top:20px;font-size:18px;color:#4f4f4f;animation:fadeIn 1s ease-in-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odus/checkout",
3
- "version": "0.14.0-beta.1",
3
+ "version": "0.14.0-beta.3",
4
4
  "displayName": "Odus Checkout SDK",
5
5
  "keywords": [
6
6
  "odus",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odus/checkout",
3
- "version": "0.14.0-beta.1",
3
+ "version": "0.14.0-beta.3",
4
4
  "displayName": "Odus Checkout SDK",
5
5
  "keywords": [
6
6
  "odus",