@odus/checkout 0.14.0-beta.0 → 0.14.0-beta.2
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/checkout.d.ts +0 -1
- package/dist/checkout.es.js +65 -60
- package/dist/index.css +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/checkout.d.ts
CHANGED
package/dist/checkout.es.js
CHANGED
|
@@ -30,7 +30,7 @@ function et(n, t) {
|
|
|
30
30
|
function St(n, t) {
|
|
31
31
|
return n ^ t;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
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
|
|
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));
|
|
@@ -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,
|
|
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,
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1880
|
-
var
|
|
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,7 +1897,7 @@ var Ce = /* @__PURE__ */ function() {
|
|
|
1897
1897
|
}(), Nt = (
|
|
1898
1898
|
/** @class */
|
|
1899
1899
|
function(n) {
|
|
1900
|
-
|
|
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;
|
|
@@ -1906,25 +1906,25 @@ var Ce = /* @__PURE__ */ function() {
|
|
|
1906
1906
|
try {
|
|
1907
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);
|
|
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 =
|
|
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 =
|
|
1911
|
+
this.d = C(l, 16);
|
|
1912
1912
|
var c = o.sub[4].getHexStringValue();
|
|
1913
|
-
this.p =
|
|
1913
|
+
this.p = C(c, 16);
|
|
1914
1914
|
var u = o.sub[5].getHexStringValue();
|
|
1915
|
-
this.q =
|
|
1915
|
+
this.q = C(u, 16);
|
|
1916
1916
|
var d = o.sub[6].getHexStringValue();
|
|
1917
|
-
this.dmp1 =
|
|
1917
|
+
this.dmp1 = C(d, 16);
|
|
1918
1918
|
var m = o.sub[7].getHexStringValue();
|
|
1919
|
-
this.dmq1 =
|
|
1919
|
+
this.dmq1 = C(m, 16);
|
|
1920
1920
|
var f = o.sub[8].getHexStringValue();
|
|
1921
|
-
this.coeff =
|
|
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 =
|
|
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 =
|
|
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(
|
|
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,
|
|
2044
|
+
return this.getKey().verify(t, xt(e), r);
|
|
2045
2045
|
} catch {
|
|
2046
2046
|
return !1;
|
|
2047
2047
|
}
|
|
@@ -2295,7 +2295,6 @@ function Le(n, t) {
|
|
|
2295
2295
|
},
|
|
2296
2296
|
layout: {
|
|
2297
2297
|
actionButton: n.layout?.actionButton || {
|
|
2298
|
-
label: "Pay",
|
|
2299
2298
|
translationKey: null
|
|
2300
2299
|
},
|
|
2301
2300
|
billingFields: {
|
|
@@ -2708,7 +2707,7 @@ const Q = (n) => {
|
|
|
2708
2707
|
"pay-with-card": "o paga con tarjeta",
|
|
2709
2708
|
buttonTexts: dr,
|
|
2710
2709
|
validation: fr
|
|
2711
|
-
}, 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" },
|
|
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" }, 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 = {
|
|
2712
2711
|
email: pr,
|
|
2713
2712
|
cardholderNameLabel: gr,
|
|
2714
2713
|
cardInformation: vr,
|
|
@@ -2717,7 +2716,7 @@ const Q = (n) => {
|
|
|
2717
2716
|
loading: br,
|
|
2718
2717
|
"pay-with-card": "ou payez avec une carte",
|
|
2719
2718
|
buttonTexts: Sr,
|
|
2720
|
-
validation:
|
|
2719
|
+
validation: Cr
|
|
2721
2720
|
}, 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 = {
|
|
2722
2721
|
email: wr,
|
|
2723
2722
|
cardholderNameLabel: Tr,
|
|
@@ -2762,7 +2761,7 @@ const Q = (n) => {
|
|
|
2762
2761
|
en: sr,
|
|
2763
2762
|
de: Je,
|
|
2764
2763
|
es: mr,
|
|
2765
|
-
fr:
|
|
2764
|
+
fr: xr,
|
|
2766
2765
|
pl: qr,
|
|
2767
2766
|
pt: Jr,
|
|
2768
2767
|
tr: si,
|
|
@@ -3383,6 +3382,7 @@ class Ei {
|
|
|
3383
3382
|
options;
|
|
3384
3383
|
cardIconsContainer;
|
|
3385
3384
|
wrapper;
|
|
3385
|
+
inputContainer = null;
|
|
3386
3386
|
constructor(t) {
|
|
3387
3387
|
this.options = t, this.wrapper = document.createElement("div"), this.wrapper.style.position = "relative", this.input = new W({
|
|
3388
3388
|
name: "cardNumber",
|
|
@@ -3400,8 +3400,13 @@ class Ei {
|
|
|
3400
3400
|
},
|
|
3401
3401
|
onChange: this.handleChange
|
|
3402
3402
|
}), this.cardIconsContainer = document.createElement("div"), this.cardIconsContainer.className = "cards-position", this.updateCardIcons("unknown");
|
|
3403
|
-
const e = this.input.getElement();
|
|
3404
|
-
|
|
3403
|
+
const e = this.input.getElement(), r = e.querySelector(".form-input");
|
|
3404
|
+
if (r) {
|
|
3405
|
+
this.inputContainer = document.createElement("div"), this.inputContainer.style.position = "relative", this.inputContainer.style.zIndex = "1";
|
|
3406
|
+
const i = r.parentElement;
|
|
3407
|
+
i && (i.insertBefore(this.inputContainer, r), this.inputContainer.appendChild(r), this.inputContainer.appendChild(this.cardIconsContainer));
|
|
3408
|
+
}
|
|
3409
|
+
this.wrapper.appendChild(e), this.input.addEventListener("blur", this.handleBlur), this.input.addEventListener("focus", this.handleFocus);
|
|
3405
3410
|
}
|
|
3406
3411
|
updateCardIcons(t) {
|
|
3407
3412
|
if (this.cardIconsContainer.innerHTML = "", t === "unknown")
|
|
@@ -3427,10 +3432,10 @@ class Ei {
|
|
|
3427
3432
|
this.input.setValue(o), this.currentCardBrand = s, this.updateCardIcons(this.currentCardBrand), this.options.onChange && this.options.onChange(o, this.currentCardBrand);
|
|
3428
3433
|
};
|
|
3429
3434
|
handleBlur = () => {
|
|
3430
|
-
this.options.onBlur && this.options.onBlur();
|
|
3435
|
+
this.inputContainer && (this.inputContainer.style.zIndex = "1"), this.options.onBlur && this.options.onBlur();
|
|
3431
3436
|
};
|
|
3432
3437
|
handleFocus = () => {
|
|
3433
|
-
this.options.onFocus && this.options.onFocus();
|
|
3438
|
+
this.inputContainer && (this.inputContainer.style.zIndex = "10"), this.options.onFocus && this.options.onFocus();
|
|
3434
3439
|
};
|
|
3435
3440
|
getElement() {
|
|
3436
3441
|
return this.wrapper;
|
|
@@ -3678,8 +3683,8 @@ class qt extends S {
|
|
|
3678
3683
|
return t.appendChild(e), t.appendChild(r), t.appendChild(i), t;
|
|
3679
3684
|
}
|
|
3680
3685
|
}
|
|
3681
|
-
const
|
|
3682
|
-
class
|
|
3686
|
+
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";
|
|
3687
|
+
class xi extends S {
|
|
3683
3688
|
formData;
|
|
3684
3689
|
onSubmit;
|
|
3685
3690
|
isSubmitting = !1;
|
|
@@ -3690,7 +3695,7 @@ class Ci extends S {
|
|
|
3690
3695
|
const i = document.createElement("div");
|
|
3691
3696
|
i.className = "paypal-icon-container";
|
|
3692
3697
|
const s = document.createElement("img");
|
|
3693
|
-
s.src =
|
|
3698
|
+
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());
|
|
3694
3699
|
}
|
|
3695
3700
|
async handleSubmit() {
|
|
3696
3701
|
if (!(!this.onSubmit || this.isSubmitting)) {
|
|
@@ -3757,7 +3762,7 @@ class Ti extends S {
|
|
|
3757
3762
|
switch (l) {
|
|
3758
3763
|
case "paypal": {
|
|
3759
3764
|
if (i) {
|
|
3760
|
-
const c = new
|
|
3765
|
+
const c = new xi({
|
|
3761
3766
|
checkoutProfile: e,
|
|
3762
3767
|
formData: r,
|
|
3763
3768
|
onSubmit: i
|
|
@@ -4635,7 +4640,7 @@ export {
|
|
|
4635
4640
|
Je as deLocale,
|
|
4636
4641
|
sr as enLocale,
|
|
4637
4642
|
mr as esLocale,
|
|
4638
|
-
|
|
4643
|
+
xr as frLocale,
|
|
4639
4644
|
Nr as itLocale,
|
|
4640
4645
|
qr as plLocale,
|
|
4641
4646
|
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}.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:
|
|
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