@sendity/client 0.1.10 → 0.1.12
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/components/sendity.d.ts +1 -0
- package/dist/i18n/index.d.ts +3 -1
- package/dist/i18n/sendity.bg.d.ts +3 -0
- package/dist/i18n/sendity.bn.d.ts +3 -0
- package/dist/i18n/sendity.bs.d.ts +3 -0
- package/dist/i18n/sendity.ga.d.ts +3 -0
- package/dist/i18n/sendity.hi.d.ts +3 -0
- package/dist/i18n/sendity.hu.d.ts +3 -0
- package/dist/i18n/sendity.id.d.ts +3 -0
- package/dist/i18n/sendity.is.d.ts +3 -0
- package/dist/i18n/sendity.mk.d.ts +3 -0
- package/dist/i18n/sendity.ms.d.ts +3 -0
- package/dist/i18n/sendity.mt.d.ts +3 -0
- package/dist/i18n/sendity.no.d.ts +3 -0
- package/dist/i18n/sendity.ro.d.ts +3 -0
- package/dist/i18n/sendity.th.d.ts +3 -0
- package/dist/i18n/sendity.uk.d.ts +3 -0
- package/dist/i18n/sendity.vi.d.ts +3 -0
- package/dist/sendity-client.js +918 -433
- package/package.json +1 -1
package/dist/sendity-client.js
CHANGED
|
@@ -241,6 +241,8 @@ const ft = `<template id="sendity-tpl">
|
|
|
241
241
|
min-height: var(--sendity-code-min-height);
|
|
242
242
|
flex: 0 0 auto;
|
|
243
243
|
text-align: center;
|
|
244
|
+
direction: ltr;
|
|
245
|
+
unicode-bidi: isolate;
|
|
244
246
|
gap: 0.5rem;
|
|
245
247
|
overflow: hidden;
|
|
246
248
|
transition: opacity var(--sendity-crossfade-duration) ease, transform var(--sendity-crossfade-duration) ease, background-color var(--sendity-crossfade-duration) ease, border-color var(--sendity-crossfade-duration) ease, color var(--sendity-crossfade-duration) ease;
|
|
@@ -610,13 +612,20 @@ const ft = `<template id="sendity-tpl">
|
|
|
610
612
|
display: inline-flex;
|
|
611
613
|
align-items: center;
|
|
612
614
|
gap: 0.5rem;
|
|
615
|
+
flex: 1 1 auto;
|
|
613
616
|
min-width: 0;
|
|
617
|
+
overflow: hidden;
|
|
614
618
|
}
|
|
615
619
|
|
|
616
|
-
.sendity .footer-message {
|
|
620
|
+
.sendity .footer-message {
|
|
621
|
+
min-width: 0;
|
|
622
|
+
overflow: hidden;
|
|
623
|
+
text-overflow: ellipsis;
|
|
624
|
+
white-space: nowrap;
|
|
625
|
+
}
|
|
617
626
|
.sendity .footer-timer {
|
|
618
627
|
margin-left: auto;
|
|
619
|
-
flex:
|
|
628
|
+
flex: 0 0 auto;
|
|
620
629
|
font-variant-numeric: tabular-nums;
|
|
621
630
|
font-feature-settings: "tnum";
|
|
622
631
|
color: var(--sendity-fg-3);
|
|
@@ -693,7 +702,7 @@ const ft = `<template id="sendity-tpl">
|
|
|
693
702
|
--sendity-shadow-error: 0 0 0 1px rgb(244 63 94 / 0.24), 0 18px 46px -18px rgb(244 63 94 / 0.9);
|
|
694
703
|
}
|
|
695
704
|
`;
|
|
696
|
-
class
|
|
705
|
+
class He {
|
|
697
706
|
constructor() {
|
|
698
707
|
this.notificationCreatedEvent = ".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated";
|
|
699
708
|
}
|
|
@@ -722,7 +731,7 @@ class We {
|
|
|
722
731
|
return this.stopListening(".client-" + i, s);
|
|
723
732
|
}
|
|
724
733
|
}
|
|
725
|
-
class
|
|
734
|
+
class St {
|
|
726
735
|
/**
|
|
727
736
|
* Create a new class instance.
|
|
728
737
|
*/
|
|
@@ -749,12 +758,12 @@ function Di(g) {
|
|
|
749
758
|
return !1;
|
|
750
759
|
}
|
|
751
760
|
}
|
|
752
|
-
class Ne extends
|
|
761
|
+
class Ne extends He {
|
|
753
762
|
/**
|
|
754
763
|
* Create a new class instance.
|
|
755
764
|
*/
|
|
756
765
|
constructor(i, s, a) {
|
|
757
|
-
super(), this.name = s, this.pusher = i, this.options = a, this.eventFormatter = new
|
|
766
|
+
super(), this.name = s, this.pusher = i, this.options = a, this.eventFormatter = new St(this.options.namespace), this.subscribe();
|
|
758
767
|
}
|
|
759
768
|
/**
|
|
760
769
|
* Subscribe to a Pusher channel.
|
|
@@ -784,8 +793,8 @@ class Ne extends We {
|
|
|
784
793
|
let d = String(this.options.namespace ?? "").replace(
|
|
785
794
|
/\./g,
|
|
786
795
|
"\\"
|
|
787
|
-
),
|
|
788
|
-
i(
|
|
796
|
+
), h = s.startsWith(d) ? s.substring(d.length + 1) : "." + s;
|
|
797
|
+
i(h, a);
|
|
789
798
|
}), this;
|
|
790
799
|
}
|
|
791
800
|
/**
|
|
@@ -883,12 +892,12 @@ class $i extends xt {
|
|
|
883
892
|
}), this;
|
|
884
893
|
}
|
|
885
894
|
}
|
|
886
|
-
class Et extends
|
|
895
|
+
class Et extends He {
|
|
887
896
|
/**
|
|
888
897
|
* Create a new class instance.
|
|
889
898
|
*/
|
|
890
899
|
constructor(i, s, a) {
|
|
891
|
-
super(), this.events = {}, this.listeners = {}, this.name = s, this.socket = i, this.options = a, this.eventFormatter = new
|
|
900
|
+
super(), this.events = {}, this.listeners = {}, this.name = s, this.socket = i, this.options = a, this.eventFormatter = new St(this.options.namespace), this.subscribe();
|
|
892
901
|
}
|
|
893
902
|
/**
|
|
894
903
|
* Subscribe to a Socket.io channel.
|
|
@@ -939,7 +948,7 @@ class Et extends We {
|
|
|
939
948
|
*/
|
|
940
949
|
on(i, s) {
|
|
941
950
|
return this.listeners[i] = this.listeners[i] || [], this.events[i] || (this.events[i] = (a, d) => {
|
|
942
|
-
this.name === a && this.listeners[i] && this.listeners[i].forEach((
|
|
951
|
+
this.name === a && this.listeners[i] && this.listeners[i].forEach((h) => h(d));
|
|
943
952
|
}, this.socket.on(i, this.events[i])), this.listeners[i].push(s), this;
|
|
944
953
|
}
|
|
945
954
|
/**
|
|
@@ -1009,7 +1018,7 @@ class Gi extends Tt {
|
|
|
1009
1018
|
), this;
|
|
1010
1019
|
}
|
|
1011
1020
|
}
|
|
1012
|
-
class ge extends
|
|
1021
|
+
class ge extends He {
|
|
1013
1022
|
/**
|
|
1014
1023
|
* Subscribe to a channel.
|
|
1015
1024
|
*/
|
|
@@ -1065,7 +1074,7 @@ class _t extends ge {
|
|
|
1065
1074
|
return this;
|
|
1066
1075
|
}
|
|
1067
1076
|
}
|
|
1068
|
-
class
|
|
1077
|
+
class Ki extends ge {
|
|
1069
1078
|
/**
|
|
1070
1079
|
* Send a whisper event to other clients in the channel.
|
|
1071
1080
|
*/
|
|
@@ -1073,7 +1082,7 @@ class Vi extends ge {
|
|
|
1073
1082
|
return this;
|
|
1074
1083
|
}
|
|
1075
1084
|
}
|
|
1076
|
-
class
|
|
1085
|
+
class Vi extends _t {
|
|
1077
1086
|
/**
|
|
1078
1087
|
* Register a callback to be called anytime the member list changes.
|
|
1079
1088
|
*/
|
|
@@ -1141,8 +1150,8 @@ At._defaultOptions = {
|
|
|
1141
1150
|
key: null,
|
|
1142
1151
|
namespace: "App.Events"
|
|
1143
1152
|
};
|
|
1144
|
-
let
|
|
1145
|
-
class pe extends
|
|
1153
|
+
let Ie = At;
|
|
1154
|
+
class pe extends Ie {
|
|
1146
1155
|
constructor() {
|
|
1147
1156
|
super(...arguments), this.channels = {};
|
|
1148
1157
|
}
|
|
@@ -1279,7 +1288,7 @@ class pe extends He {
|
|
|
1279
1288
|
this.pusher.disconnect();
|
|
1280
1289
|
}
|
|
1281
1290
|
}
|
|
1282
|
-
class Xi extends
|
|
1291
|
+
class Xi extends Ie {
|
|
1283
1292
|
constructor() {
|
|
1284
1293
|
super(...arguments), this.channels = {};
|
|
1285
1294
|
}
|
|
@@ -1401,7 +1410,7 @@ class Xi extends He {
|
|
|
1401
1410
|
this.socket.disconnect();
|
|
1402
1411
|
}
|
|
1403
1412
|
}
|
|
1404
|
-
class mt extends
|
|
1413
|
+
class mt extends Ie {
|
|
1405
1414
|
constructor() {
|
|
1406
1415
|
super(...arguments), this.channels = {};
|
|
1407
1416
|
}
|
|
@@ -1432,13 +1441,13 @@ class mt extends He {
|
|
|
1432
1441
|
* Get a private encrypted channel instance by name.
|
|
1433
1442
|
*/
|
|
1434
1443
|
encryptedPrivateChannel(i) {
|
|
1435
|
-
return new
|
|
1444
|
+
return new Ki();
|
|
1436
1445
|
}
|
|
1437
1446
|
/**
|
|
1438
1447
|
* Get a presence channel instance by name.
|
|
1439
1448
|
*/
|
|
1440
1449
|
presenceChannel(i) {
|
|
1441
|
-
return new
|
|
1450
|
+
return new Vi();
|
|
1442
1451
|
}
|
|
1443
1452
|
/**
|
|
1444
1453
|
* Leave the given channel, as well as its private and presence variants.
|
|
@@ -1648,12 +1657,12 @@ function Zi() {
|
|
|
1648
1657
|
var s = {
|
|
1649
1658
|
/***/
|
|
1650
1659
|
594(m, v) {
|
|
1651
|
-
var
|
|
1660
|
+
var b = this && this.__extends || /* @__PURE__ */ (function() {
|
|
1652
1661
|
var x = function(u, p) {
|
|
1653
1662
|
return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, P) {
|
|
1654
1663
|
C.__proto__ = P;
|
|
1655
1664
|
} || function(C, P) {
|
|
1656
|
-
for (var
|
|
1665
|
+
for (var H in P) P.hasOwnProperty(H) && (C[H] = P[H]);
|
|
1657
1666
|
}, x(u, p);
|
|
1658
1667
|
};
|
|
1659
1668
|
return function(u, p) {
|
|
@@ -1665,7 +1674,7 @@ function Zi() {
|
|
|
1665
1674
|
};
|
|
1666
1675
|
})();
|
|
1667
1676
|
Object.defineProperty(v, "__esModule", { value: !0 });
|
|
1668
|
-
var E = 256,
|
|
1677
|
+
var E = 256, k = (
|
|
1669
1678
|
/** @class */
|
|
1670
1679
|
(function() {
|
|
1671
1680
|
function x(u) {
|
|
@@ -1678,10 +1687,10 @@ function Zi() {
|
|
|
1678
1687
|
var P = u[C] << 16 | u[C + 1] << 8 | u[C + 2];
|
|
1679
1688
|
p += this._encodeByte(P >>> 18 & 63), p += this._encodeByte(P >>> 12 & 63), p += this._encodeByte(P >>> 6 & 63), p += this._encodeByte(P >>> 0 & 63);
|
|
1680
1689
|
}
|
|
1681
|
-
var
|
|
1682
|
-
if (
|
|
1683
|
-
var P = u[C] << 16 | (
|
|
1684
|
-
p += this._encodeByte(P >>> 18 & 63), p += this._encodeByte(P >>> 12 & 63),
|
|
1690
|
+
var H = u.length - C;
|
|
1691
|
+
if (H > 0) {
|
|
1692
|
+
var P = u[C] << 16 | (H === 2 ? u[C + 1] << 8 : 0);
|
|
1693
|
+
p += this._encodeByte(P >>> 18 & 63), p += this._encodeByte(P >>> 12 & 63), H === 2 ? p += this._encodeByte(P >>> 6 & 63) : p += this._paddingCharacter || "", p += this._paddingCharacter || "";
|
|
1685
1694
|
}
|
|
1686
1695
|
return p;
|
|
1687
1696
|
}, x.prototype.maxDecodedLength = function(u) {
|
|
@@ -1691,9 +1700,9 @@ function Zi() {
|
|
|
1691
1700
|
}, x.prototype.decode = function(u) {
|
|
1692
1701
|
if (u.length === 0)
|
|
1693
1702
|
return new Uint8Array(0);
|
|
1694
|
-
for (var p = this._getPaddingLength(u), C = u.length - p, P = new Uint8Array(this.maxDecodedLength(C)),
|
|
1695
|
-
|
|
1696
|
-
if (z < C - 1 && (
|
|
1703
|
+
for (var p = this._getPaddingLength(u), C = u.length - p, P = new Uint8Array(this.maxDecodedLength(C)), H = 0, z = 0, O = 0, V = 0, M = 0, q = 0, X = 0; z < C - 4; z += 4)
|
|
1704
|
+
V = this._decodeChar(u.charCodeAt(z + 0)), M = this._decodeChar(u.charCodeAt(z + 1)), q = this._decodeChar(u.charCodeAt(z + 2)), X = this._decodeChar(u.charCodeAt(z + 3)), P[H++] = V << 2 | M >>> 4, P[H++] = M << 4 | q >>> 2, P[H++] = q << 6 | X, O |= V & E, O |= M & E, O |= q & E, O |= X & E;
|
|
1705
|
+
if (z < C - 1 && (V = this._decodeChar(u.charCodeAt(z)), M = this._decodeChar(u.charCodeAt(z + 1)), P[H++] = V << 2 | M >>> 4, O |= V & E, O |= M & E), z < C - 2 && (q = this._decodeChar(u.charCodeAt(z + 2)), P[H++] = M << 4 | q >>> 2, O |= q & E), z < C - 3 && (X = this._decodeChar(u.charCodeAt(z + 3)), P[H++] = q << 6 | X, O |= X & E), O !== 0)
|
|
1697
1706
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
1698
1707
|
return P;
|
|
1699
1708
|
}, x.prototype._encodeByte = function(u) {
|
|
@@ -1714,20 +1723,20 @@ function Zi() {
|
|
|
1714
1723
|
}, x;
|
|
1715
1724
|
})()
|
|
1716
1725
|
);
|
|
1717
|
-
v.Coder =
|
|
1718
|
-
var
|
|
1719
|
-
function
|
|
1720
|
-
return
|
|
1726
|
+
v.Coder = k;
|
|
1727
|
+
var W = new k();
|
|
1728
|
+
function S(x) {
|
|
1729
|
+
return W.encode(x);
|
|
1721
1730
|
}
|
|
1722
|
-
v.encode =
|
|
1731
|
+
v.encode = S;
|
|
1723
1732
|
function A(x) {
|
|
1724
|
-
return
|
|
1733
|
+
return W.decode(x);
|
|
1725
1734
|
}
|
|
1726
1735
|
v.decode = A;
|
|
1727
1736
|
var B = (
|
|
1728
1737
|
/** @class */
|
|
1729
1738
|
(function(x) {
|
|
1730
|
-
|
|
1739
|
+
b(u, x);
|
|
1731
1740
|
function u() {
|
|
1732
1741
|
return x !== null && x.apply(this, arguments) || this;
|
|
1733
1742
|
}
|
|
@@ -1738,80 +1747,80 @@ function Zi() {
|
|
|
1738
1747
|
var C = E;
|
|
1739
1748
|
return C += (44 - p & p - 46) >>> 8 & -E + p - 45 + 62, C += (94 - p & p - 96) >>> 8 & -E + p - 95 + 63, C += (47 - p & p - 58) >>> 8 & -E + p - 48 + 52, C += (64 - p & p - 91) >>> 8 & -E + p - 65 + 0, C += (96 - p & p - 123) >>> 8 & -E + p - 97 + 26, C;
|
|
1740
1749
|
}, u;
|
|
1741
|
-
})(
|
|
1750
|
+
})(k)
|
|
1742
1751
|
);
|
|
1743
1752
|
v.URLSafeCoder = B;
|
|
1744
|
-
var
|
|
1753
|
+
var I = new B();
|
|
1745
1754
|
function D(x) {
|
|
1746
|
-
return
|
|
1755
|
+
return I.encode(x);
|
|
1747
1756
|
}
|
|
1748
1757
|
v.encodeURLSafe = D;
|
|
1749
1758
|
function te(x) {
|
|
1750
|
-
return
|
|
1759
|
+
return I.decode(x);
|
|
1751
1760
|
}
|
|
1752
1761
|
v.decodeURLSafe = te, v.encodedLength = function(x) {
|
|
1753
|
-
return
|
|
1762
|
+
return W.encodedLength(x);
|
|
1754
1763
|
}, v.maxDecodedLength = function(x) {
|
|
1755
|
-
return
|
|
1764
|
+
return W.maxDecodedLength(x);
|
|
1756
1765
|
}, v.decodedLength = function(x) {
|
|
1757
|
-
return
|
|
1766
|
+
return W.decodedLength(x);
|
|
1758
1767
|
};
|
|
1759
1768
|
},
|
|
1760
1769
|
/***/
|
|
1761
1770
|
978(m, v) {
|
|
1762
|
-
var
|
|
1763
|
-
function E(
|
|
1764
|
-
for (var
|
|
1765
|
-
var A = S
|
|
1771
|
+
var b = "utf8: invalid source encoding";
|
|
1772
|
+
function E(k) {
|
|
1773
|
+
for (var W = [], S = 0; S < k.length; S++) {
|
|
1774
|
+
var A = k[S];
|
|
1766
1775
|
if (A & 128) {
|
|
1767
1776
|
var B = void 0;
|
|
1768
1777
|
if (A < 224) {
|
|
1769
|
-
if (
|
|
1770
|
-
throw new Error(
|
|
1771
|
-
var
|
|
1772
|
-
if ((
|
|
1773
|
-
throw new Error(
|
|
1774
|
-
A = (A & 31) << 6 |
|
|
1778
|
+
if (S >= k.length)
|
|
1779
|
+
throw new Error(b);
|
|
1780
|
+
var I = k[++S];
|
|
1781
|
+
if ((I & 192) !== 128)
|
|
1782
|
+
throw new Error(b);
|
|
1783
|
+
A = (A & 31) << 6 | I & 63, B = 128;
|
|
1775
1784
|
} else if (A < 240) {
|
|
1776
|
-
if (
|
|
1777
|
-
throw new Error(
|
|
1778
|
-
var
|
|
1779
|
-
if ((
|
|
1780
|
-
throw new Error(
|
|
1781
|
-
A = (A & 15) << 12 | (
|
|
1785
|
+
if (S >= k.length - 1)
|
|
1786
|
+
throw new Error(b);
|
|
1787
|
+
var I = k[++S], D = k[++S];
|
|
1788
|
+
if ((I & 192) !== 128 || (D & 192) !== 128)
|
|
1789
|
+
throw new Error(b);
|
|
1790
|
+
A = (A & 15) << 12 | (I & 63) << 6 | D & 63, B = 2048;
|
|
1782
1791
|
} else if (A < 248) {
|
|
1783
|
-
if (
|
|
1784
|
-
throw new Error(
|
|
1785
|
-
var
|
|
1786
|
-
if ((
|
|
1787
|
-
throw new Error(
|
|
1788
|
-
A = (A & 15) << 18 | (
|
|
1792
|
+
if (S >= k.length - 2)
|
|
1793
|
+
throw new Error(b);
|
|
1794
|
+
var I = k[++S], D = k[++S], te = k[++S];
|
|
1795
|
+
if ((I & 192) !== 128 || (D & 192) !== 128 || (te & 192) !== 128)
|
|
1796
|
+
throw new Error(b);
|
|
1797
|
+
A = (A & 15) << 18 | (I & 63) << 12 | (D & 63) << 6 | te & 63, B = 65536;
|
|
1789
1798
|
} else
|
|
1790
|
-
throw new Error(
|
|
1799
|
+
throw new Error(b);
|
|
1791
1800
|
if (A < B || A >= 55296 && A <= 57343)
|
|
1792
|
-
throw new Error(
|
|
1801
|
+
throw new Error(b);
|
|
1793
1802
|
if (A >= 65536) {
|
|
1794
1803
|
if (A > 1114111)
|
|
1795
|
-
throw new Error(
|
|
1796
|
-
A -= 65536,
|
|
1804
|
+
throw new Error(b);
|
|
1805
|
+
A -= 65536, W.push(String.fromCharCode(55296 | A >> 10)), A = 56320 | A & 1023;
|
|
1797
1806
|
}
|
|
1798
1807
|
}
|
|
1799
|
-
|
|
1808
|
+
W.push(String.fromCharCode(A));
|
|
1800
1809
|
}
|
|
1801
|
-
return
|
|
1810
|
+
return W.join("");
|
|
1802
1811
|
}
|
|
1803
1812
|
v.D4 = E;
|
|
1804
1813
|
},
|
|
1805
1814
|
/***/
|
|
1806
|
-
721(m, v,
|
|
1807
|
-
m.exports =
|
|
1815
|
+
721(m, v, b) {
|
|
1816
|
+
m.exports = b(207).default;
|
|
1808
1817
|
},
|
|
1809
1818
|
/***/
|
|
1810
|
-
207(m, v,
|
|
1811
|
-
|
|
1819
|
+
207(m, v, b) {
|
|
1820
|
+
b.d(v, {
|
|
1812
1821
|
default: () => (
|
|
1813
1822
|
/* binding */
|
|
1814
|
-
|
|
1823
|
+
he
|
|
1815
1824
|
)
|
|
1816
1825
|
});
|
|
1817
1826
|
class E {
|
|
@@ -1820,16 +1829,16 @@ function Zi() {
|
|
|
1820
1829
|
}
|
|
1821
1830
|
create(e) {
|
|
1822
1831
|
this.lastId++;
|
|
1823
|
-
var t = this.lastId, r = this.prefix + t, o = this.name + "[" + t + "]", c = !1,
|
|
1832
|
+
var t = this.lastId, r = this.prefix + t, o = this.name + "[" + t + "]", c = !1, l = function() {
|
|
1824
1833
|
c || (e.apply(null, arguments), c = !0);
|
|
1825
1834
|
};
|
|
1826
|
-
return this[t] =
|
|
1835
|
+
return this[t] = l, { number: t, id: r, name: o, callback: l };
|
|
1827
1836
|
}
|
|
1828
1837
|
remove(e) {
|
|
1829
1838
|
delete this[e.number];
|
|
1830
1839
|
}
|
|
1831
1840
|
}
|
|
1832
|
-
var
|
|
1841
|
+
var k = new E("_pusher_script_", "Pusher.ScriptReceivers"), W = {
|
|
1833
1842
|
VERSION: "8.5.0",
|
|
1834
1843
|
PROTOCOL: 7,
|
|
1835
1844
|
wsPort: 80,
|
|
@@ -1857,10 +1866,10 @@ function Zi() {
|
|
|
1857
1866
|
cdn_https: "https://js.pusher.com",
|
|
1858
1867
|
dependency_suffix: ""
|
|
1859
1868
|
};
|
|
1860
|
-
const
|
|
1869
|
+
const S = W;
|
|
1861
1870
|
class A {
|
|
1862
1871
|
constructor(e) {
|
|
1863
|
-
this.options = e, this.receivers = e.receivers ||
|
|
1872
|
+
this.options = e, this.receivers = e.receivers || k, this.loading = {};
|
|
1864
1873
|
}
|
|
1865
1874
|
load(e, t, r) {
|
|
1866
1875
|
var o = this;
|
|
@@ -1868,17 +1877,17 @@ function Zi() {
|
|
|
1868
1877
|
o.loading[e].push(r);
|
|
1869
1878
|
else {
|
|
1870
1879
|
o.loading[e] = [r];
|
|
1871
|
-
var c = w.createScriptRequest(o.getPath(e, t)),
|
|
1872
|
-
if (o.receivers.remove(
|
|
1873
|
-
var
|
|
1880
|
+
var c = w.createScriptRequest(o.getPath(e, t)), l = o.receivers.create(function(f) {
|
|
1881
|
+
if (o.receivers.remove(l), o.loading[e]) {
|
|
1882
|
+
var y = o.loading[e];
|
|
1874
1883
|
delete o.loading[e];
|
|
1875
1884
|
for (var T = function(R) {
|
|
1876
1885
|
R || c.cleanup();
|
|
1877
|
-
}, _ = 0; _ <
|
|
1878
|
-
|
|
1886
|
+
}, _ = 0; _ < y.length; _++)
|
|
1887
|
+
y[_](f, T);
|
|
1879
1888
|
}
|
|
1880
1889
|
});
|
|
1881
|
-
c.send(
|
|
1890
|
+
c.send(l);
|
|
1882
1891
|
}
|
|
1883
1892
|
}
|
|
1884
1893
|
getRoot(e) {
|
|
@@ -1889,11 +1898,11 @@ function Zi() {
|
|
|
1889
1898
|
return this.getRoot(t) + "/" + e + this.options.suffix + ".js";
|
|
1890
1899
|
}
|
|
1891
1900
|
}
|
|
1892
|
-
var B = new E("_pusher_dependencies", "Pusher.DependenciesReceivers"),
|
|
1893
|
-
cdn_http:
|
|
1894
|
-
cdn_https:
|
|
1895
|
-
version:
|
|
1896
|
-
suffix:
|
|
1901
|
+
var B = new E("_pusher_dependencies", "Pusher.DependenciesReceivers"), I = new A({
|
|
1902
|
+
cdn_http: S.cdn_http,
|
|
1903
|
+
cdn_https: S.cdn_https,
|
|
1904
|
+
version: S.VERSION,
|
|
1905
|
+
suffix: S.dependency_suffix,
|
|
1897
1906
|
receivers: B
|
|
1898
1907
|
});
|
|
1899
1908
|
const D = {
|
|
@@ -1941,7 +1950,7 @@ function Zi() {
|
|
|
1941
1950
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1942
1951
|
}
|
|
1943
1952
|
}
|
|
1944
|
-
class
|
|
1953
|
+
class H extends Error {
|
|
1945
1954
|
constructor(e) {
|
|
1946
1955
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1947
1956
|
}
|
|
@@ -1951,12 +1960,12 @@ function Zi() {
|
|
|
1951
1960
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1952
1961
|
}
|
|
1953
1962
|
}
|
|
1954
|
-
class
|
|
1963
|
+
class O extends Error {
|
|
1955
1964
|
constructor(e) {
|
|
1956
1965
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1957
1966
|
}
|
|
1958
1967
|
}
|
|
1959
|
-
class
|
|
1968
|
+
class V extends Error {
|
|
1960
1969
|
constructor(e) {
|
|
1961
1970
|
super(e), Object.setPrototypeOf(this, new.target.prototype);
|
|
1962
1971
|
}
|
|
@@ -1974,23 +1983,23 @@ function Zi() {
|
|
|
1974
1983
|
const jt = function(n, e, t, r, o) {
|
|
1975
1984
|
const c = w.createXHR();
|
|
1976
1985
|
c.open("POST", t.endpoint, !0), c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
1977
|
-
for (var
|
|
1978
|
-
c.setRequestHeader(
|
|
1986
|
+
for (var l in t.headers)
|
|
1987
|
+
c.setRequestHeader(l, t.headers[l]);
|
|
1979
1988
|
if (t.headersProvider != null) {
|
|
1980
1989
|
let f = t.headersProvider();
|
|
1981
|
-
for (var
|
|
1982
|
-
c.setRequestHeader(
|
|
1990
|
+
for (var l in f)
|
|
1991
|
+
c.setRequestHeader(l, f[l]);
|
|
1983
1992
|
}
|
|
1984
1993
|
return c.onreadystatechange = function() {
|
|
1985
1994
|
if (c.readyState === 4)
|
|
1986
1995
|
if (c.status === 200) {
|
|
1987
|
-
let f,
|
|
1996
|
+
let f, y = !1;
|
|
1988
1997
|
try {
|
|
1989
|
-
f = JSON.parse(c.responseText),
|
|
1998
|
+
f = JSON.parse(c.responseText), y = !0;
|
|
1990
1999
|
} catch {
|
|
1991
2000
|
o(new q(200, `JSON returned from ${r.toString()} endpoint was invalid, yet status code was 200. Data was: ${c.responseText}`), null);
|
|
1992
2001
|
}
|
|
1993
|
-
|
|
2002
|
+
y && o(null, f);
|
|
1994
2003
|
} else {
|
|
1995
2004
|
let f = "";
|
|
1996
2005
|
switch (r) {
|
|
@@ -2005,15 +2014,15 @@ function Zi() {
|
|
|
2005
2014
|
}
|
|
2006
2015
|
}, c.send(e), c;
|
|
2007
2016
|
};
|
|
2008
|
-
function
|
|
2017
|
+
function Wt(n) {
|
|
2009
2018
|
return zt(Nt(n));
|
|
2010
2019
|
}
|
|
2011
|
-
var ne = String.fromCharCode, oe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
2020
|
+
var ne = String.fromCharCode, oe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ht = function(n) {
|
|
2012
2021
|
var e = n.charCodeAt(0);
|
|
2013
2022
|
return e < 128 ? n : e < 2048 ? ne(192 | e >>> 6) + ne(128 | e & 63) : ne(224 | e >>> 12 & 15) + ne(128 | e >>> 6 & 63) + ne(128 | e & 63);
|
|
2014
2023
|
}, Nt = function(n) {
|
|
2015
|
-
return n.replace(/[^\x00-\x7F]/g,
|
|
2016
|
-
},
|
|
2024
|
+
return n.replace(/[^\x00-\x7F]/g, Ht);
|
|
2025
|
+
}, It = function(n) {
|
|
2017
2026
|
var e = [0, 2, 1][n.length % 3], t = n.charCodeAt(0) << 16 | (n.length > 1 ? n.charCodeAt(1) : 0) << 8 | (n.length > 2 ? n.charCodeAt(2) : 0), r = [
|
|
2018
2027
|
oe.charAt(t >>> 18),
|
|
2019
2028
|
oe.charAt(t >>> 12 & 63),
|
|
@@ -2022,9 +2031,9 @@ function Zi() {
|
|
|
2022
2031
|
];
|
|
2023
2032
|
return r.join("");
|
|
2024
2033
|
}, zt = window.btoa || function(n) {
|
|
2025
|
-
return n.replace(/[\s\S]{1,3}/g,
|
|
2034
|
+
return n.replace(/[\s\S]{1,3}/g, It);
|
|
2026
2035
|
};
|
|
2027
|
-
class
|
|
2036
|
+
class Ut {
|
|
2028
2037
|
constructor(e, t, r, o) {
|
|
2029
2038
|
this.clear = t, this.timer = e(() => {
|
|
2030
2039
|
this.timer && (this.timer = o(this.timer));
|
|
@@ -2037,21 +2046,21 @@ function Zi() {
|
|
|
2037
2046
|
this.timer && (this.clear(this.timer), this.timer = null);
|
|
2038
2047
|
}
|
|
2039
2048
|
}
|
|
2040
|
-
const
|
|
2041
|
-
function
|
|
2049
|
+
const Oe = Ut;
|
|
2050
|
+
function Ot(n) {
|
|
2042
2051
|
window.clearTimeout(n);
|
|
2043
2052
|
}
|
|
2044
2053
|
function qt(n) {
|
|
2045
2054
|
window.clearInterval(n);
|
|
2046
2055
|
}
|
|
2047
|
-
class J extends
|
|
2056
|
+
class J extends Oe {
|
|
2048
2057
|
constructor(e, t) {
|
|
2049
|
-
super(setTimeout,
|
|
2058
|
+
super(setTimeout, Ot, e, function(r) {
|
|
2050
2059
|
return t(), null;
|
|
2051
2060
|
});
|
|
2052
2061
|
}
|
|
2053
2062
|
}
|
|
2054
|
-
class Mt extends
|
|
2063
|
+
class Mt extends Oe {
|
|
2055
2064
|
constructor(e, t) {
|
|
2056
2065
|
super(setInterval, qt, e, function(r) {
|
|
2057
2066
|
return t(), r;
|
|
@@ -2073,11 +2082,11 @@ function Zi() {
|
|
|
2073
2082
|
}
|
|
2074
2083
|
};
|
|
2075
2084
|
const N = Bt;
|
|
2076
|
-
function
|
|
2085
|
+
function U(n, ...e) {
|
|
2077
2086
|
for (var t = 0; t < e.length; t++) {
|
|
2078
2087
|
var r = e[t];
|
|
2079
2088
|
for (var o in r)
|
|
2080
|
-
r[o] && r[o].constructor && r[o].constructor === Object ? n[o] =
|
|
2089
|
+
r[o] && r[o].constructor && r[o].constructor === Object ? n[o] = U(n[o] || {}, r[o]) : n[o] = r[o];
|
|
2081
2090
|
}
|
|
2082
2091
|
return n;
|
|
2083
2092
|
}
|
|
@@ -2154,43 +2163,43 @@ function Zi() {
|
|
|
2154
2163
|
return !0;
|
|
2155
2164
|
return !1;
|
|
2156
2165
|
}
|
|
2157
|
-
function
|
|
2166
|
+
function Kt(n, e) {
|
|
2158
2167
|
for (var t = 0; t < n.length; t++)
|
|
2159
2168
|
if (!e(n[t], t, n))
|
|
2160
2169
|
return !1;
|
|
2161
2170
|
return !0;
|
|
2162
2171
|
}
|
|
2163
|
-
function
|
|
2172
|
+
function Vt(n) {
|
|
2164
2173
|
return $t(n, function(e) {
|
|
2165
|
-
return typeof e == "object" && (e = ae(e)), encodeURIComponent(
|
|
2174
|
+
return typeof e == "object" && (e = ae(e)), encodeURIComponent(Wt(e.toString()));
|
|
2166
2175
|
});
|
|
2167
2176
|
}
|
|
2168
2177
|
function Xt(n) {
|
|
2169
2178
|
var e = Fe(n, function(r) {
|
|
2170
2179
|
return r !== void 0;
|
|
2171
|
-
}), t = Be(Gt(
|
|
2180
|
+
}), t = Be(Gt(Vt(e)), N.method("join", "=")).join("&");
|
|
2172
2181
|
return t;
|
|
2173
2182
|
}
|
|
2174
2183
|
function Jt(n) {
|
|
2175
2184
|
var e = [], t = [];
|
|
2176
2185
|
return (function r(o, c) {
|
|
2177
|
-
var
|
|
2186
|
+
var l, f, y;
|
|
2178
2187
|
switch (typeof o) {
|
|
2179
2188
|
case "object":
|
|
2180
2189
|
if (!o)
|
|
2181
2190
|
return null;
|
|
2182
|
-
for (
|
|
2183
|
-
if (e[
|
|
2184
|
-
return { $ref: t[
|
|
2191
|
+
for (l = 0; l < e.length; l += 1)
|
|
2192
|
+
if (e[l] === o)
|
|
2193
|
+
return { $ref: t[l] };
|
|
2185
2194
|
if (e.push(o), t.push(c), Object.prototype.toString.apply(o) === "[object Array]")
|
|
2186
|
-
for (
|
|
2187
|
-
|
|
2195
|
+
for (y = [], l = 0; l < o.length; l += 1)
|
|
2196
|
+
y[l] = r(o[l], c + "[" + l + "]");
|
|
2188
2197
|
else {
|
|
2189
|
-
|
|
2198
|
+
y = {};
|
|
2190
2199
|
for (f in o)
|
|
2191
|
-
Object.prototype.hasOwnProperty.call(o, f) && (
|
|
2200
|
+
Object.prototype.hasOwnProperty.call(o, f) && (y[f] = r(o[f], c + "[" + JSON.stringify(f) + "]"));
|
|
2192
2201
|
}
|
|
2193
|
-
return
|
|
2202
|
+
return y;
|
|
2194
2203
|
case "number":
|
|
2195
2204
|
case "string":
|
|
2196
2205
|
case "boolean":
|
|
@@ -2228,7 +2237,7 @@ function Zi() {
|
|
|
2228
2237
|
}
|
|
2229
2238
|
log(e, ...t) {
|
|
2230
2239
|
var r = Dt.apply(this, arguments);
|
|
2231
|
-
|
|
2240
|
+
he.log ? he.log(r) : he.logToConsole && e.bind(this)(r);
|
|
2232
2241
|
}
|
|
2233
2242
|
}
|
|
2234
2243
|
const L = new Yt();
|
|
@@ -2236,13 +2245,13 @@ function Zi() {
|
|
|
2236
2245
|
(t.headers !== void 0 || t.headersProvider != null) && L.warn(`To send headers with the ${r.toString()} request, you must use AJAX, rather than JSONP.`);
|
|
2237
2246
|
var c = n.nextAuthCallbackID.toString();
|
|
2238
2247
|
n.nextAuthCallbackID++;
|
|
2239
|
-
var
|
|
2248
|
+
var l = n.getDocument(), f = l.createElement("script");
|
|
2240
2249
|
n.auth_callbacks[c] = function(_) {
|
|
2241
2250
|
o(null, _);
|
|
2242
2251
|
};
|
|
2243
|
-
var
|
|
2244
|
-
f.src = t.endpoint + "?callback=" + encodeURIComponent(
|
|
2245
|
-
var T =
|
|
2252
|
+
var y = "Pusher.auth_callbacks['" + c + "']";
|
|
2253
|
+
f.src = t.endpoint + "?callback=" + encodeURIComponent(y) + "&" + e;
|
|
2254
|
+
var T = l.getElementsByTagName("head")[0] || l.documentElement;
|
|
2246
2255
|
T.insertBefore(f, T.firstChild);
|
|
2247
2256
|
};
|
|
2248
2257
|
const Qt = Zt;
|
|
@@ -2282,40 +2291,40 @@ function Zi() {
|
|
|
2282
2291
|
}
|
|
2283
2292
|
var nn = function(n, e) {
|
|
2284
2293
|
return function(t, r) {
|
|
2285
|
-
var o = "http" + (e ? "s" : "") + "://", c = o + (n.host || n.options.host) + n.options.path,
|
|
2286
|
-
|
|
2294
|
+
var o = "http" + (e ? "s" : "") + "://", c = o + (n.host || n.options.host) + n.options.path, l = w.createJSONPRequest(c, t), f = w.ScriptReceivers.create(function(y, T) {
|
|
2295
|
+
k.remove(f), l.cleanup(), T && T.host && (n.host = T.host), r && r(y, T);
|
|
2287
2296
|
});
|
|
2288
|
-
|
|
2297
|
+
l.send(f);
|
|
2289
2298
|
};
|
|
2290
2299
|
}, rn = {
|
|
2291
2300
|
name: "jsonp",
|
|
2292
2301
|
getAgent: nn
|
|
2293
2302
|
};
|
|
2294
2303
|
const sn = rn;
|
|
2295
|
-
function
|
|
2304
|
+
function be(n, e, t) {
|
|
2296
2305
|
var r = n + (e.useTLS ? "s" : ""), o = e.useTLS ? e.hostTLS : e.hostNonTLS;
|
|
2297
2306
|
return r + "://" + o + t;
|
|
2298
2307
|
}
|
|
2299
|
-
function
|
|
2300
|
-
var t = "/app/" + n, r = "?protocol=" +
|
|
2308
|
+
function ye(n, e) {
|
|
2309
|
+
var t = "/app/" + n, r = "?protocol=" + S.PROTOCOL + "&client=js&version=" + S.VERSION + (e ? "&" + e : "");
|
|
2301
2310
|
return t + r;
|
|
2302
2311
|
}
|
|
2303
2312
|
var on = {
|
|
2304
2313
|
getInitial: function(n, e) {
|
|
2305
|
-
var t = (e.httpPath || "") +
|
|
2306
|
-
return
|
|
2314
|
+
var t = (e.httpPath || "") + ye(n, "flash=false");
|
|
2315
|
+
return be("ws", e, t);
|
|
2307
2316
|
}
|
|
2308
2317
|
}, an = {
|
|
2309
2318
|
getInitial: function(n, e) {
|
|
2310
|
-
var t = (e.httpPath || "/pusher") +
|
|
2311
|
-
return
|
|
2319
|
+
var t = (e.httpPath || "/pusher") + ye(n);
|
|
2320
|
+
return be("http", e, t);
|
|
2312
2321
|
}
|
|
2313
2322
|
}, cn = {
|
|
2314
2323
|
getInitial: function(n, e) {
|
|
2315
|
-
return
|
|
2324
|
+
return be("http", e, e.httpPath || "/pusher");
|
|
2316
2325
|
},
|
|
2317
2326
|
getPath: function(n, e) {
|
|
2318
|
-
return
|
|
2327
|
+
return ye(n);
|
|
2319
2328
|
}
|
|
2320
2329
|
};
|
|
2321
2330
|
class dn {
|
|
@@ -2378,15 +2387,15 @@ function Zi() {
|
|
|
2378
2387
|
emit(e, t, r) {
|
|
2379
2388
|
for (var o = 0; o < this.global_callbacks.length; o++)
|
|
2380
2389
|
this.global_callbacks[o](e, t);
|
|
2381
|
-
var c = this.callbacks.get(e),
|
|
2382
|
-
if (r ?
|
|
2390
|
+
var c = this.callbacks.get(e), l = [];
|
|
2391
|
+
if (r ? l.push(t, r) : t && l.push(t), c && c.length > 0)
|
|
2383
2392
|
for (var o = 0; o < c.length; o++)
|
|
2384
|
-
c[o].fn.apply(c[o].context || window,
|
|
2393
|
+
c[o].fn.apply(c[o].context || window, l);
|
|
2385
2394
|
else this.failThrough && this.failThrough(e, t);
|
|
2386
2395
|
return this;
|
|
2387
2396
|
}
|
|
2388
2397
|
}
|
|
2389
|
-
class
|
|
2398
|
+
class ln extends G {
|
|
2390
2399
|
constructor(e, t, r, o, c) {
|
|
2391
2400
|
super(), this.initialize = w.transportConnectionInitializer, this.hooks = e, this.name = t, this.priority = r, this.key = o, this.options = c, this.state = "new", this.timeline = c.timeline, this.activityTimeout = c.activityTimeout, this.id = this.timeline.generateUniqueID();
|
|
2392
2401
|
}
|
|
@@ -2462,7 +2471,7 @@ function Zi() {
|
|
|
2462
2471
|
})), this.emit(e, t);
|
|
2463
2472
|
}
|
|
2464
2473
|
buildTimelineMessage(e) {
|
|
2465
|
-
return
|
|
2474
|
+
return U({ cid: this.id }, e);
|
|
2466
2475
|
}
|
|
2467
2476
|
}
|
|
2468
2477
|
class ee {
|
|
@@ -2473,10 +2482,10 @@ function Zi() {
|
|
|
2473
2482
|
return this.hooks.isSupported(e);
|
|
2474
2483
|
}
|
|
2475
2484
|
createConnection(e, t, r, o) {
|
|
2476
|
-
return new
|
|
2485
|
+
return new ln(this.hooks, e, t, r, o);
|
|
2477
2486
|
}
|
|
2478
2487
|
}
|
|
2479
|
-
var
|
|
2488
|
+
var hn = new ee({
|
|
2480
2489
|
urls: on,
|
|
2481
2490
|
handlesActivityChecks: !1,
|
|
2482
2491
|
supportsPing: !1,
|
|
@@ -2496,11 +2505,11 @@ function Zi() {
|
|
|
2496
2505
|
isInitialized: function() {
|
|
2497
2506
|
return !0;
|
|
2498
2507
|
}
|
|
2499
|
-
},
|
|
2508
|
+
}, Ke = U({
|
|
2500
2509
|
getSocket: function(n) {
|
|
2501
2510
|
return w.HTTPFactory.createStreamingSocket(n);
|
|
2502
2511
|
}
|
|
2503
|
-
}, Ge),
|
|
2512
|
+
}, Ge), Ve = U({
|
|
2504
2513
|
getSocket: function(n) {
|
|
2505
2514
|
return w.HTTPFactory.createPollingSocket(n);
|
|
2506
2515
|
}
|
|
@@ -2508,8 +2517,8 @@ function Zi() {
|
|
|
2508
2517
|
isSupported: function() {
|
|
2509
2518
|
return w.isXHRSupported();
|
|
2510
2519
|
}
|
|
2511
|
-
}, un = new ee(
|
|
2512
|
-
ws:
|
|
2520
|
+
}, un = new ee(U({}, Ke, Xe)), pn = new ee(U({}, Ve, Xe)), fn = {
|
|
2521
|
+
ws: hn,
|
|
2513
2522
|
xhr_streaming: un,
|
|
2514
2523
|
xhr_polling: pn
|
|
2515
2524
|
};
|
|
@@ -2527,7 +2536,7 @@ function Zi() {
|
|
|
2527
2536
|
},
|
|
2528
2537
|
getSocket: function(n, e) {
|
|
2529
2538
|
return new window.SockJS(n, null, {
|
|
2530
|
-
js_path:
|
|
2539
|
+
js_path: I.getPath("sockjs", {
|
|
2531
2540
|
useTLS: e.useTLS
|
|
2532
2541
|
}),
|
|
2533
2542
|
ignore_null_origin: e.ignoreNullOrigin
|
|
@@ -2543,10 +2552,10 @@ function Zi() {
|
|
|
2543
2552
|
var e = w.isXDRSupported(n.useTLS);
|
|
2544
2553
|
return e;
|
|
2545
2554
|
}
|
|
2546
|
-
}, gn = new ee(
|
|
2555
|
+
}, gn = new ee(U({}, Ke, Je)), vn = new ee(U({}, Ve, Je));
|
|
2547
2556
|
ce.xdr_streaming = gn, ce.xdr_polling = vn, ce.sockjs = mn;
|
|
2548
|
-
const
|
|
2549
|
-
class
|
|
2557
|
+
const bn = ce;
|
|
2558
|
+
class yn extends G {
|
|
2550
2559
|
constructor() {
|
|
2551
2560
|
super();
|
|
2552
2561
|
var e = this;
|
|
@@ -2560,22 +2569,22 @@ function Zi() {
|
|
|
2560
2569
|
return window.navigator.onLine === void 0 ? !0 : window.navigator.onLine;
|
|
2561
2570
|
}
|
|
2562
2571
|
}
|
|
2563
|
-
var wn = new
|
|
2572
|
+
var wn = new yn();
|
|
2564
2573
|
class Cn {
|
|
2565
2574
|
constructor(e, t, r) {
|
|
2566
2575
|
this.manager = e, this.transport = t, this.minPingDelay = r.minPingDelay, this.maxPingDelay = r.maxPingDelay, this.pingDelay = void 0;
|
|
2567
2576
|
}
|
|
2568
2577
|
createConnection(e, t, r, o) {
|
|
2569
|
-
o =
|
|
2578
|
+
o = U({}, o, {
|
|
2570
2579
|
activityTimeout: this.pingDelay
|
|
2571
2580
|
});
|
|
2572
|
-
var c = this.transport.createConnection(e, t, r, o),
|
|
2573
|
-
c.unbind("open", f), c.bind("closed",
|
|
2574
|
-
},
|
|
2575
|
-
if (c.unbind("closed",
|
|
2581
|
+
var c = this.transport.createConnection(e, t, r, o), l = null, f = function() {
|
|
2582
|
+
c.unbind("open", f), c.bind("closed", y), l = N.now();
|
|
2583
|
+
}, y = (T) => {
|
|
2584
|
+
if (c.unbind("closed", y), T.code === 1002 || T.code === 1003)
|
|
2576
2585
|
this.manager.reportDeath();
|
|
2577
|
-
else if (!T.wasClean &&
|
|
2578
|
-
var _ = N.now() -
|
|
2586
|
+
else if (!T.wasClean && l) {
|
|
2587
|
+
var _ = N.now() - l;
|
|
2579
2588
|
_ < 2 * this.maxPingDelay && (this.manager.reportDeath(), this.pingDelay = Math.max(_ / 2, this.minPingDelay));
|
|
2580
2589
|
}
|
|
2581
2590
|
};
|
|
@@ -2639,7 +2648,7 @@ function Zi() {
|
|
|
2639
2648
|
} : null;
|
|
2640
2649
|
}
|
|
2641
2650
|
}, Y = Ye;
|
|
2642
|
-
class
|
|
2651
|
+
class kn extends G {
|
|
2643
2652
|
constructor(e, t) {
|
|
2644
2653
|
super(), this.id = e, this.transport = t, this.activityTimeout = t.activityTimeout, this.bindListeners();
|
|
2645
2654
|
}
|
|
@@ -2713,7 +2722,7 @@ function Zi() {
|
|
|
2713
2722
|
r && this.emit("error", r), t && this.emit(t, { action: t, error: r });
|
|
2714
2723
|
}
|
|
2715
2724
|
}
|
|
2716
|
-
class
|
|
2725
|
+
class Sn {
|
|
2717
2726
|
constructor(e, t) {
|
|
2718
2727
|
this.transport = e, this.callback = t, this.bindListeners();
|
|
2719
2728
|
}
|
|
@@ -2731,7 +2740,7 @@ function Zi() {
|
|
|
2731
2740
|
return;
|
|
2732
2741
|
}
|
|
2733
2742
|
t.action === "connected" ? this.finish("connected", {
|
|
2734
|
-
connection: new
|
|
2743
|
+
connection: new kn(t.id, this.transport),
|
|
2735
2744
|
activityTimeout: t.activityTimeout
|
|
2736
2745
|
}) : (this.finish(t.action, { error: t.error }), this.transport.close());
|
|
2737
2746
|
}, this.onClosed = (e) => {
|
|
@@ -2744,7 +2753,7 @@ function Zi() {
|
|
|
2744
2753
|
this.transport.unbind("message", this.onMessage), this.transport.unbind("closed", this.onClosed);
|
|
2745
2754
|
}
|
|
2746
2755
|
finish(e, t) {
|
|
2747
|
-
this.callback(
|
|
2756
|
+
this.callback(U({ transport: this.transport, action: e }, t));
|
|
2748
2757
|
}
|
|
2749
2758
|
}
|
|
2750
2759
|
class xn {
|
|
@@ -2817,7 +2826,7 @@ function Zi() {
|
|
|
2817
2826
|
this.subscriptionCancelled = !1;
|
|
2818
2827
|
}
|
|
2819
2828
|
}
|
|
2820
|
-
class
|
|
2829
|
+
class ke extends Ce {
|
|
2821
2830
|
authorize(e, t) {
|
|
2822
2831
|
return this.pusher.config.channelAuthorizer({
|
|
2823
2832
|
channelName: this.name,
|
|
@@ -2859,32 +2868,32 @@ function Zi() {
|
|
|
2859
2868
|
}
|
|
2860
2869
|
var Tn = function(n, e, t, r) {
|
|
2861
2870
|
function o(c) {
|
|
2862
|
-
return c instanceof t ? c : new t(function(
|
|
2863
|
-
|
|
2871
|
+
return c instanceof t ? c : new t(function(l) {
|
|
2872
|
+
l(c);
|
|
2864
2873
|
});
|
|
2865
2874
|
}
|
|
2866
|
-
return new (t || (t = Promise))(function(c,
|
|
2875
|
+
return new (t || (t = Promise))(function(c, l) {
|
|
2867
2876
|
function f(_) {
|
|
2868
2877
|
try {
|
|
2869
2878
|
T(r.next(_));
|
|
2870
2879
|
} catch (R) {
|
|
2871
|
-
|
|
2880
|
+
l(R);
|
|
2872
2881
|
}
|
|
2873
2882
|
}
|
|
2874
|
-
function
|
|
2883
|
+
function y(_) {
|
|
2875
2884
|
try {
|
|
2876
2885
|
T(r.throw(_));
|
|
2877
2886
|
} catch (R) {
|
|
2878
|
-
|
|
2887
|
+
l(R);
|
|
2879
2888
|
}
|
|
2880
2889
|
}
|
|
2881
2890
|
function T(_) {
|
|
2882
|
-
_.done ? c(_.value) : o(_.value).then(f,
|
|
2891
|
+
_.done ? c(_.value) : o(_.value).then(f, y);
|
|
2883
2892
|
}
|
|
2884
2893
|
T((r = r.apply(n, e || [])).next());
|
|
2885
2894
|
});
|
|
2886
2895
|
};
|
|
2887
|
-
class _n extends
|
|
2896
|
+
class _n extends ke {
|
|
2888
2897
|
constructor(e, t) {
|
|
2889
2898
|
super(e, t), this.members = new En();
|
|
2890
2899
|
}
|
|
@@ -2897,8 +2906,8 @@ function Zi() {
|
|
|
2897
2906
|
} else if (yield this.pusher.user.signinDonePromise, this.pusher.user.user_data != null)
|
|
2898
2907
|
this.members.setMyID(this.pusher.user.user_data.id);
|
|
2899
2908
|
else {
|
|
2900
|
-
let
|
|
2901
|
-
L.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${
|
|
2909
|
+
let l = x.buildLogSuffix("authorizationEndpoint");
|
|
2910
|
+
L.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${l}, or the user should be signed in.`), t("Invalid auth response");
|
|
2902
2911
|
return;
|
|
2903
2912
|
}
|
|
2904
2913
|
t(r, o);
|
|
@@ -2939,8 +2948,8 @@ function Zi() {
|
|
|
2939
2948
|
this.members.reset(), super.disconnect();
|
|
2940
2949
|
}
|
|
2941
2950
|
}
|
|
2942
|
-
var An =
|
|
2943
|
-
class Pn extends
|
|
2951
|
+
var An = b(978), Se = b(594);
|
|
2952
|
+
class Pn extends ke {
|
|
2944
2953
|
constructor(e, t, r) {
|
|
2945
2954
|
super(e, t), this.key = null, this.nacl = r;
|
|
2946
2955
|
}
|
|
@@ -2955,11 +2964,11 @@ function Zi() {
|
|
|
2955
2964
|
t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`), null);
|
|
2956
2965
|
return;
|
|
2957
2966
|
}
|
|
2958
|
-
this.key = (0,
|
|
2967
|
+
this.key = (0, Se.decode)(c), delete o.shared_secret, t(null, o);
|
|
2959
2968
|
});
|
|
2960
2969
|
}
|
|
2961
2970
|
trigger(e, t) {
|
|
2962
|
-
throw new
|
|
2971
|
+
throw new O("Client events are not currently supported for encrypted channels");
|
|
2963
2972
|
}
|
|
2964
2973
|
handleEvent(e) {
|
|
2965
2974
|
var t = e.event, r = e.data;
|
|
@@ -2978,20 +2987,20 @@ function Zi() {
|
|
|
2978
2987
|
L.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: " + t);
|
|
2979
2988
|
return;
|
|
2980
2989
|
}
|
|
2981
|
-
let r = (0,
|
|
2990
|
+
let r = (0, Se.decode)(t.ciphertext);
|
|
2982
2991
|
if (r.length < this.nacl.secretbox.overheadLength) {
|
|
2983
2992
|
L.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);
|
|
2984
2993
|
return;
|
|
2985
2994
|
}
|
|
2986
|
-
let o = (0,
|
|
2995
|
+
let o = (0, Se.decode)(t.nonce);
|
|
2987
2996
|
if (o.length < this.nacl.secretbox.nonceLength) {
|
|
2988
2997
|
L.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${o.length}`);
|
|
2989
2998
|
return;
|
|
2990
2999
|
}
|
|
2991
3000
|
let c = this.nacl.secretbox.open(r, o, this.key);
|
|
2992
3001
|
if (c === null) {
|
|
2993
|
-
L.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (
|
|
2994
|
-
if (
|
|
3002
|
+
L.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (l, f) => {
|
|
3003
|
+
if (l) {
|
|
2995
3004
|
L.error(`Failed to make a request to the authEndpoint: ${f}. Unable to fetch new key, so dropping encrypted event`);
|
|
2996
3005
|
return;
|
|
2997
3006
|
}
|
|
@@ -3103,7 +3112,7 @@ function Zi() {
|
|
|
3103
3112
|
this.activityTimer && this.activityTimer.ensureAborted();
|
|
3104
3113
|
}
|
|
3105
3114
|
buildConnectionCallbacks(e) {
|
|
3106
|
-
return
|
|
3115
|
+
return U({}, e, {
|
|
3107
3116
|
message: (t) => {
|
|
3108
3117
|
this.resetActivityCheck(), this.emit("message", t);
|
|
3109
3118
|
},
|
|
@@ -3122,7 +3131,7 @@ function Zi() {
|
|
|
3122
3131
|
});
|
|
3123
3132
|
}
|
|
3124
3133
|
buildHandshakeCallbacks(e) {
|
|
3125
|
-
return
|
|
3134
|
+
return U({}, e, {
|
|
3126
3135
|
connected: (t) => {
|
|
3127
3136
|
this.activityTimeout = Math.min(this.options.activityTimeout, t.activityTimeout, t.connection.activityTimeout || 1 / 0), this.clearUnavailableTimer(), this.setConnection(t.connection), this.socket_id = this.connection.id, this.updateState("connected", { socket_id: this.socket_id });
|
|
3128
3137
|
}
|
|
@@ -3199,20 +3208,20 @@ function Zi() {
|
|
|
3199
3208
|
function jn(n, e) {
|
|
3200
3209
|
if (n.indexOf("private-encrypted-") === 0) {
|
|
3201
3210
|
if (e.config.nacl)
|
|
3202
|
-
return
|
|
3211
|
+
return K.createEncryptedChannel(n, e, e.config.nacl);
|
|
3203
3212
|
let t = "Tried to subscribe to a private-encrypted- channel but no nacl implementation available", r = x.buildLogSuffix("encryptedChannelSupport");
|
|
3204
|
-
throw new
|
|
3213
|
+
throw new O(`${t}. ${r}`);
|
|
3205
3214
|
} else {
|
|
3206
3215
|
if (n.indexOf("private-") === 0)
|
|
3207
|
-
return
|
|
3216
|
+
return K.createPrivateChannel(n, e);
|
|
3208
3217
|
if (n.indexOf("presence-") === 0)
|
|
3209
|
-
return
|
|
3218
|
+
return K.createPresenceChannel(n, e);
|
|
3210
3219
|
if (n.indexOf("#") === 0)
|
|
3211
3220
|
throw new C('Cannot create a channel with name "' + n + '".');
|
|
3212
|
-
return
|
|
3221
|
+
return K.createChannel(n, e);
|
|
3213
3222
|
}
|
|
3214
3223
|
}
|
|
3215
|
-
var
|
|
3224
|
+
var Wn = {
|
|
3216
3225
|
createChannels() {
|
|
3217
3226
|
return new Rn();
|
|
3218
3227
|
},
|
|
@@ -3223,7 +3232,7 @@ function Zi() {
|
|
|
3223
3232
|
return new Ce(n, e);
|
|
3224
3233
|
},
|
|
3225
3234
|
createPrivateChannel(n, e) {
|
|
3226
|
-
return new
|
|
3235
|
+
return new ke(n, e);
|
|
3227
3236
|
},
|
|
3228
3237
|
createPresenceChannel(n, e) {
|
|
3229
3238
|
return new _n(n, e);
|
|
@@ -3235,19 +3244,19 @@ function Zi() {
|
|
|
3235
3244
|
return new xn(n, e);
|
|
3236
3245
|
},
|
|
3237
3246
|
createHandshake(n, e) {
|
|
3238
|
-
return new
|
|
3247
|
+
return new Sn(n, e);
|
|
3239
3248
|
},
|
|
3240
3249
|
createAssistantToTheTransportManager(n, e, t) {
|
|
3241
3250
|
return new Cn(n, e, t);
|
|
3242
3251
|
}
|
|
3243
3252
|
};
|
|
3244
|
-
const
|
|
3253
|
+
const K = Wn;
|
|
3245
3254
|
class Ze {
|
|
3246
3255
|
constructor(e) {
|
|
3247
3256
|
this.options = e || {}, this.livesLeft = this.options.lives || 1 / 0;
|
|
3248
3257
|
}
|
|
3249
3258
|
getAssistant(e) {
|
|
3250
|
-
return
|
|
3259
|
+
return K.createAssistantToTheTransportManager(this, e, {
|
|
3251
3260
|
minPingDelay: this.options.minPingDelay,
|
|
3252
3261
|
maxPingDelay: this.options.maxPingDelay
|
|
3253
3262
|
});
|
|
@@ -3267,30 +3276,30 @@ function Zi() {
|
|
|
3267
3276
|
return $e(this.strategies, N.method("isSupported"));
|
|
3268
3277
|
}
|
|
3269
3278
|
connect(e, t) {
|
|
3270
|
-
var r = this.strategies, o = 0, c = this.timeout,
|
|
3271
|
-
T ? t(null, T) : (o = o + 1, this.loop && (o = o % r.length), o < r.length ? (c && (c = c * 2, this.timeoutLimit && (c = Math.min(c, this.timeoutLimit))),
|
|
3279
|
+
var r = this.strategies, o = 0, c = this.timeout, l = null, f = (y, T) => {
|
|
3280
|
+
T ? t(null, T) : (o = o + 1, this.loop && (o = o % r.length), o < r.length ? (c && (c = c * 2, this.timeoutLimit && (c = Math.min(c, this.timeoutLimit))), l = this.tryStrategy(r[o], e, { timeout: c, failFast: this.failFast }, f)) : t(!0));
|
|
3272
3281
|
};
|
|
3273
|
-
return
|
|
3282
|
+
return l = this.tryStrategy(r[o], e, { timeout: c, failFast: this.failFast }, f), {
|
|
3274
3283
|
abort: function() {
|
|
3275
|
-
|
|
3284
|
+
l.abort();
|
|
3276
3285
|
},
|
|
3277
|
-
forceMinPriority: function(
|
|
3278
|
-
e =
|
|
3286
|
+
forceMinPriority: function(y) {
|
|
3287
|
+
e = y, l && l.forceMinPriority(y);
|
|
3279
3288
|
}
|
|
3280
3289
|
};
|
|
3281
3290
|
}
|
|
3282
3291
|
tryStrategy(e, t, r, o) {
|
|
3283
|
-
var c = null,
|
|
3292
|
+
var c = null, l = null;
|
|
3284
3293
|
return r.timeout > 0 && (c = new J(r.timeout, function() {
|
|
3285
|
-
|
|
3286
|
-
})),
|
|
3287
|
-
f && c && c.isRunning() && !r.failFast || (c && c.ensureAborted(), o(f,
|
|
3294
|
+
l.abort(), o(!0);
|
|
3295
|
+
})), l = e.connect(t, function(f, y) {
|
|
3296
|
+
f && c && c.isRunning() && !r.failFast || (c && c.ensureAborted(), o(f, y));
|
|
3288
3297
|
}), {
|
|
3289
3298
|
abort: function() {
|
|
3290
|
-
c && c.ensureAborted(),
|
|
3299
|
+
c && c.ensureAborted(), l.abort();
|
|
3291
3300
|
},
|
|
3292
3301
|
forceMinPriority: function(f) {
|
|
3293
|
-
|
|
3302
|
+
l.forceMinPriority(f);
|
|
3294
3303
|
}
|
|
3295
3304
|
};
|
|
3296
3305
|
}
|
|
@@ -3303,26 +3312,26 @@ function Zi() {
|
|
|
3303
3312
|
return $e(this.strategies, N.method("isSupported"));
|
|
3304
3313
|
}
|
|
3305
3314
|
connect(e, t) {
|
|
3306
|
-
return
|
|
3307
|
-
return function(c,
|
|
3315
|
+
return Hn(this.strategies, e, function(r, o) {
|
|
3316
|
+
return function(c, l) {
|
|
3308
3317
|
if (o[r].error = c, c) {
|
|
3309
3318
|
Nn(o) && t(!0);
|
|
3310
3319
|
return;
|
|
3311
3320
|
}
|
|
3312
3321
|
ie(o, function(f) {
|
|
3313
|
-
f.forceMinPriority(
|
|
3314
|
-
}), t(null,
|
|
3322
|
+
f.forceMinPriority(l.transport.priority);
|
|
3323
|
+
}), t(null, l);
|
|
3315
3324
|
};
|
|
3316
3325
|
});
|
|
3317
3326
|
}
|
|
3318
3327
|
}
|
|
3319
|
-
function
|
|
3320
|
-
var r = Be(n, function(o, c,
|
|
3328
|
+
function Hn(n, e, t) {
|
|
3329
|
+
var r = Be(n, function(o, c, l, f) {
|
|
3321
3330
|
return o.connect(e, t(c, f));
|
|
3322
3331
|
});
|
|
3323
3332
|
return {
|
|
3324
3333
|
abort: function() {
|
|
3325
|
-
ie(r,
|
|
3334
|
+
ie(r, In);
|
|
3326
3335
|
},
|
|
3327
3336
|
forceMinPriority: function(o) {
|
|
3328
3337
|
ie(r, function(c) {
|
|
@@ -3332,11 +3341,11 @@ function Zi() {
|
|
|
3332
3341
|
};
|
|
3333
3342
|
}
|
|
3334
3343
|
function Nn(n) {
|
|
3335
|
-
return
|
|
3344
|
+
return Kt(n, function(e) {
|
|
3336
3345
|
return !!e.error;
|
|
3337
3346
|
});
|
|
3338
3347
|
}
|
|
3339
|
-
function
|
|
3348
|
+
function In(n) {
|
|
3340
3349
|
!n.error && !n.aborted && (n.abort(), n.aborted = !0);
|
|
3341
3350
|
}
|
|
3342
3351
|
class zn {
|
|
@@ -3347,20 +3356,20 @@ function Zi() {
|
|
|
3347
3356
|
return this.strategy.isSupported();
|
|
3348
3357
|
}
|
|
3349
3358
|
connect(e, t) {
|
|
3350
|
-
var r = this.usingTLS, o =
|
|
3359
|
+
var r = this.usingTLS, o = Un(r), c = o && o.cacheSkipCount ? o.cacheSkipCount : 0, l = [this.strategy];
|
|
3351
3360
|
if (o && o.timestamp + this.ttl >= N.now()) {
|
|
3352
3361
|
var f = this.transports[o.transport];
|
|
3353
3362
|
f && (["ws", "wss"].includes(o.transport) || c > 3 ? (this.timeline.info({
|
|
3354
3363
|
cached: !0,
|
|
3355
3364
|
transport: o.transport,
|
|
3356
3365
|
latency: o.latency
|
|
3357
|
-
}),
|
|
3366
|
+
}), l.push(new Z([f], {
|
|
3358
3367
|
timeout: o.latency * 2 + 1e3,
|
|
3359
3368
|
failFast: !0
|
|
3360
3369
|
}))) : c++);
|
|
3361
3370
|
}
|
|
3362
|
-
var
|
|
3363
|
-
R ? (Qe(r),
|
|
3371
|
+
var y = N.now(), T = l.pop().connect(e, function _(R, ue) {
|
|
3372
|
+
R ? (Qe(r), l.length > 0 ? (y = N.now(), T = l.pop().connect(e, _)) : t(R)) : (On(r, ue.transport.name, N.now() - y, c), t(null, ue));
|
|
3364
3373
|
});
|
|
3365
3374
|
return {
|
|
3366
3375
|
abort: function() {
|
|
@@ -3375,7 +3384,7 @@ function Zi() {
|
|
|
3375
3384
|
function Ee(n) {
|
|
3376
3385
|
return "pusherTransport" + (n ? "TLS" : "NonTLS");
|
|
3377
3386
|
}
|
|
3378
|
-
function
|
|
3387
|
+
function Un(n) {
|
|
3379
3388
|
var e = w.getLocalStorage();
|
|
3380
3389
|
if (e)
|
|
3381
3390
|
try {
|
|
@@ -3387,7 +3396,7 @@ function Zi() {
|
|
|
3387
3396
|
}
|
|
3388
3397
|
return null;
|
|
3389
3398
|
}
|
|
3390
|
-
function
|
|
3399
|
+
function On(n, e, t, r) {
|
|
3391
3400
|
var o = w.getLocalStorage();
|
|
3392
3401
|
if (o)
|
|
3393
3402
|
try {
|
|
@@ -3423,8 +3432,8 @@ function Zi() {
|
|
|
3423
3432
|
abort: function() {
|
|
3424
3433
|
c.ensureAborted(), o && o.abort();
|
|
3425
3434
|
},
|
|
3426
|
-
forceMinPriority: function(
|
|
3427
|
-
e =
|
|
3435
|
+
forceMinPriority: function(l) {
|
|
3436
|
+
e = l, o && o.forceMinPriority(l);
|
|
3428
3437
|
}
|
|
3429
3438
|
};
|
|
3430
3439
|
}
|
|
@@ -3463,21 +3472,21 @@ function Zi() {
|
|
|
3463
3472
|
}
|
|
3464
3473
|
var Mn = function(n, e, t) {
|
|
3465
3474
|
var r = {};
|
|
3466
|
-
function o(ut,
|
|
3467
|
-
var pt = t(n, ut,
|
|
3475
|
+
function o(ut, Ui, Oi, qi, Mi) {
|
|
3476
|
+
var pt = t(n, ut, Ui, Oi, qi, Mi);
|
|
3468
3477
|
return r[ut] = pt, pt;
|
|
3469
3478
|
}
|
|
3470
3479
|
var c = Object.assign({}, e, {
|
|
3471
3480
|
hostNonTLS: n.wsHost + ":" + n.wsPort,
|
|
3472
3481
|
hostTLS: n.wsHost + ":" + n.wssPort,
|
|
3473
3482
|
httpPath: n.wsPath
|
|
3474
|
-
}),
|
|
3483
|
+
}), l = Object.assign({}, c, {
|
|
3475
3484
|
useTLS: !0
|
|
3476
3485
|
}), f = Object.assign({}, e, {
|
|
3477
3486
|
hostNonTLS: n.httpHost + ":" + n.httpPort,
|
|
3478
3487
|
hostTLS: n.httpHost + ":" + n.httpsPort,
|
|
3479
3488
|
httpPath: n.httpPath
|
|
3480
|
-
}),
|
|
3489
|
+
}), y = {
|
|
3481
3490
|
loop: !0,
|
|
3482
3491
|
timeout: 15e3,
|
|
3483
3492
|
timeoutLimit: 6e4
|
|
@@ -3488,22 +3497,22 @@ function Zi() {
|
|
|
3488
3497
|
lives: 2,
|
|
3489
3498
|
minPingDelay: 1e4,
|
|
3490
3499
|
maxPingDelay: n.activityTimeout
|
|
3491
|
-
}), R = o("ws", "ws", 3, c, T), ue = o("wss", "ws", 3,
|
|
3492
|
-
new re(se(ot), ot,
|
|
3493
|
-
],
|
|
3500
|
+
}), R = o("ws", "ws", 3, c, T), ue = o("wss", "ws", 3, l, T), Wi = o("sockjs", "sockjs", 1, f), ot = o("xhr_streaming", "xhr_streaming", 1, f, _), Hi = o("xdr_streaming", "xdr_streaming", 1, f, _), at = o("xhr_polling", "xhr_polling", 1, f), Ni = o("xdr_polling", "xdr_polling", 1, f), ct = new Z([R], y), Ii = new Z([ue], y), zi = new Z([Wi], y), dt = new Z([
|
|
3501
|
+
new re(se(ot), ot, Hi)
|
|
3502
|
+
], y), lt = new Z([
|
|
3494
3503
|
new re(se(at), at, Ni)
|
|
3495
|
-
],
|
|
3504
|
+
], y), ht = new Z([
|
|
3496
3505
|
new re(se(dt), new xe([
|
|
3497
3506
|
dt,
|
|
3498
|
-
new de(
|
|
3499
|
-
]),
|
|
3500
|
-
],
|
|
3507
|
+
new de(lt, { delay: 4e3 })
|
|
3508
|
+
]), lt)
|
|
3509
|
+
], y), Ae = new re(se(ht), ht, zi), Pe;
|
|
3501
3510
|
return e.useTLS ? Pe = new xe([
|
|
3502
3511
|
ct,
|
|
3503
3512
|
new de(Ae, { delay: 2e3 })
|
|
3504
3513
|
]) : Pe = new xe([
|
|
3505
3514
|
ct,
|
|
3506
|
-
new de(
|
|
3515
|
+
new de(Ii, { delay: 2e3 }),
|
|
3507
3516
|
new de(Ae, { delay: 5e3 })
|
|
3508
3517
|
]), new zn(new qn(new re(se(R), Pe, Ae)), r, {
|
|
3509
3518
|
ttl: 18e5,
|
|
@@ -3516,7 +3525,7 @@ function Zi() {
|
|
|
3516
3525
|
var n = this;
|
|
3517
3526
|
n.timeline.info(n.buildTimelineMessage({
|
|
3518
3527
|
transport: n.name + (n.options.useTLS ? "s" : "")
|
|
3519
|
-
})), n.hooks.isInitialized() ? n.changeState("initialized") : n.hooks.file ? (n.changeState("initializing"),
|
|
3528
|
+
})), n.hooks.isInitialized() ? n.changeState("initialized") : n.hooks.file ? (n.changeState("initializing"), I.load(n.hooks.file, { useTLS: n.options.useTLS }, function(e, t) {
|
|
3520
3529
|
n.hooks.isInitialized() ? (n.changeState("initialized"), t(!0)) : (e && n.onError(e), n.onClose(), t(!1));
|
|
3521
3530
|
})) : n.onClose();
|
|
3522
3531
|
}
|
|
@@ -3538,7 +3547,7 @@ function Zi() {
|
|
|
3538
3547
|
}
|
|
3539
3548
|
};
|
|
3540
3549
|
const $n = Fn, Gn = 256 * 1024;
|
|
3541
|
-
class
|
|
3550
|
+
class Kn extends G {
|
|
3542
3551
|
constructor(e, t, r) {
|
|
3543
3552
|
super(), this.hooks = e, this.method = t, this.url = r;
|
|
3544
3553
|
}
|
|
@@ -3574,7 +3583,7 @@ function Zi() {
|
|
|
3574
3583
|
n[n.CONNECTING = 0] = "CONNECTING", n[n.OPEN = 1] = "OPEN", n[n.CLOSED = 3] = "CLOSED";
|
|
3575
3584
|
})(Te || (Te = {}));
|
|
3576
3585
|
const Q = Te;
|
|
3577
|
-
var
|
|
3586
|
+
var Vn = 1;
|
|
3578
3587
|
class Xn {
|
|
3579
3588
|
constructor(e, t) {
|
|
3580
3589
|
this.hooks = e, this.session = tt(1e3) + "/" + Qn(8), this.location = Jn(t), this.readyState = Q.CONNECTING, this.openStream();
|
|
@@ -3677,7 +3686,7 @@ function Zi() {
|
|
|
3677
3686
|
}
|
|
3678
3687
|
function et(n) {
|
|
3679
3688
|
var e = n.indexOf("?") === -1 ? "?" : "&";
|
|
3680
|
-
return n + e + "t=" + +/* @__PURE__ */ new Date() + "&n=" +
|
|
3689
|
+
return n + e + "t=" + +/* @__PURE__ */ new Date() + "&n=" + Vn++;
|
|
3681
3690
|
}
|
|
3682
3691
|
function Zn(n, e) {
|
|
3683
3692
|
var t = /(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(n);
|
|
@@ -3754,7 +3763,7 @@ function Zi() {
|
|
|
3754
3763
|
return this.createRequest(oi, n, e);
|
|
3755
3764
|
},
|
|
3756
3765
|
createRequest(n, e, t) {
|
|
3757
|
-
return new
|
|
3766
|
+
return new Kn(n, e, t);
|
|
3758
3767
|
}
|
|
3759
3768
|
};
|
|
3760
3769
|
const nt = ai;
|
|
@@ -3764,10 +3773,10 @@ function Zi() {
|
|
|
3764
3773
|
var ci = {
|
|
3765
3774
|
nextAuthCallbackID: 1,
|
|
3766
3775
|
auth_callbacks: {},
|
|
3767
|
-
ScriptReceivers:
|
|
3776
|
+
ScriptReceivers: k,
|
|
3768
3777
|
DependenciesReceivers: B,
|
|
3769
3778
|
getDefaultStrategy: Bn,
|
|
3770
|
-
Transports:
|
|
3779
|
+
Transports: bn,
|
|
3771
3780
|
transportConnectionInitializer: Dn,
|
|
3772
3781
|
HTTPFactory: nt,
|
|
3773
3782
|
TimelineTransport: sn,
|
|
@@ -3782,7 +3791,7 @@ function Zi() {
|
|
|
3782
3791
|
var e = () => {
|
|
3783
3792
|
this.onDocumentBody(n.ready);
|
|
3784
3793
|
};
|
|
3785
|
-
window.JSON ? e() :
|
|
3794
|
+
window.JSON ? e() : I.load("json2", {}, e);
|
|
3786
3795
|
},
|
|
3787
3796
|
getDocument() {
|
|
3788
3797
|
return document;
|
|
@@ -3860,28 +3869,28 @@ function Zi() {
|
|
|
3860
3869
|
(function(n) {
|
|
3861
3870
|
n[n.ERROR = 3] = "ERROR", n[n.INFO = 6] = "INFO", n[n.DEBUG = 7] = "DEBUG";
|
|
3862
3871
|
})(_e || (_e = {}));
|
|
3863
|
-
const
|
|
3872
|
+
const le = _e;
|
|
3864
3873
|
class di {
|
|
3865
3874
|
constructor(e, t, r) {
|
|
3866
3875
|
this.key = e, this.session = t, this.events = [], this.options = r || {}, this.sent = 0, this.uniqueID = 0;
|
|
3867
3876
|
}
|
|
3868
3877
|
log(e, t) {
|
|
3869
|
-
e <= this.options.level && (this.events.push(
|
|
3878
|
+
e <= this.options.level && (this.events.push(U({}, t, { timestamp: N.now() })), this.options.limit && this.events.length > this.options.limit && this.events.shift());
|
|
3870
3879
|
}
|
|
3871
3880
|
error(e) {
|
|
3872
|
-
this.log(
|
|
3881
|
+
this.log(le.ERROR, e);
|
|
3873
3882
|
}
|
|
3874
3883
|
info(e) {
|
|
3875
|
-
this.log(
|
|
3884
|
+
this.log(le.INFO, e);
|
|
3876
3885
|
}
|
|
3877
3886
|
debug(e) {
|
|
3878
|
-
this.log(
|
|
3887
|
+
this.log(le.DEBUG, e);
|
|
3879
3888
|
}
|
|
3880
3889
|
isEmpty() {
|
|
3881
3890
|
return this.events.length === 0;
|
|
3882
3891
|
}
|
|
3883
3892
|
send(e, t) {
|
|
3884
|
-
var r =
|
|
3893
|
+
var r = U({
|
|
3885
3894
|
session: this.session,
|
|
3886
3895
|
bundle: this.sent + 1,
|
|
3887
3896
|
key: this.key,
|
|
@@ -3899,7 +3908,7 @@ function Zi() {
|
|
|
3899
3908
|
return this.uniqueID++, this.uniqueID;
|
|
3900
3909
|
}
|
|
3901
3910
|
}
|
|
3902
|
-
class
|
|
3911
|
+
class li {
|
|
3903
3912
|
constructor(e, t, r, o) {
|
|
3904
3913
|
this.name = e, this.priority = t, this.transport = r, this.options = o || {};
|
|
3905
3914
|
}
|
|
@@ -3911,24 +3920,24 @@ function Zi() {
|
|
|
3911
3920
|
connect(e, t) {
|
|
3912
3921
|
if (this.isSupported()) {
|
|
3913
3922
|
if (this.priority < e)
|
|
3914
|
-
return it(new
|
|
3923
|
+
return it(new H(), t);
|
|
3915
3924
|
} else return it(new M(), t);
|
|
3916
|
-
var r = !1, o = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), c = null,
|
|
3917
|
-
o.unbind("initialized",
|
|
3925
|
+
var r = !1, o = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), c = null, l = function() {
|
|
3926
|
+
o.unbind("initialized", l), o.connect();
|
|
3918
3927
|
}, f = function() {
|
|
3919
|
-
c =
|
|
3928
|
+
c = K.createHandshake(o, function(R) {
|
|
3920
3929
|
r = !0, _(), t(null, R);
|
|
3921
3930
|
});
|
|
3922
|
-
},
|
|
3931
|
+
}, y = function(R) {
|
|
3923
3932
|
_(), t(R);
|
|
3924
3933
|
}, T = function() {
|
|
3925
3934
|
_();
|
|
3926
3935
|
var R;
|
|
3927
3936
|
R = ae(o), t(new z(R));
|
|
3928
3937
|
}, _ = function() {
|
|
3929
|
-
o.unbind("initialized",
|
|
3938
|
+
o.unbind("initialized", l), o.unbind("open", f), o.unbind("error", y), o.unbind("closed", T);
|
|
3930
3939
|
};
|
|
3931
|
-
return o.bind("initialized",
|
|
3940
|
+
return o.bind("initialized", l), o.bind("open", f), o.bind("error", y), o.bind("closed", T), o.initialize(), {
|
|
3932
3941
|
abort: () => {
|
|
3933
3942
|
r || (_(), c ? c.close() : o.close());
|
|
3934
3943
|
},
|
|
@@ -3948,13 +3957,13 @@ function Zi() {
|
|
|
3948
3957
|
}
|
|
3949
3958
|
};
|
|
3950
3959
|
}
|
|
3951
|
-
const { Transports:
|
|
3960
|
+
const { Transports: hi } = w;
|
|
3952
3961
|
var ui = function(n, e, t, r, o, c) {
|
|
3953
|
-
var
|
|
3954
|
-
if (!
|
|
3955
|
-
throw new
|
|
3956
|
-
var f = (!n.enabledTransports || qe(n.enabledTransports, e) !== -1) && (!n.disabledTransports || qe(n.disabledTransports, e) === -1),
|
|
3957
|
-
return f ? (o = Object.assign({ ignoreNullOrigin: n.ignoreNullOrigin }, o),
|
|
3962
|
+
var l = hi[t];
|
|
3963
|
+
if (!l)
|
|
3964
|
+
throw new V(t);
|
|
3965
|
+
var f = (!n.enabledTransports || qe(n.enabledTransports, e) !== -1) && (!n.disabledTransports || qe(n.disabledTransports, e) === -1), y;
|
|
3966
|
+
return f ? (o = Object.assign({ ignoreNullOrigin: n.ignoreNullOrigin }, o), y = new li(e, r, c ? c.getAssistant(l) : l, o)) : y = pi, y;
|
|
3958
3967
|
}, pi = {
|
|
3959
3968
|
isSupported: function() {
|
|
3960
3969
|
return !1;
|
|
@@ -4007,14 +4016,14 @@ function Zi() {
|
|
|
4007
4016
|
t += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(o[r]);
|
|
4008
4017
|
}
|
|
4009
4018
|
return t;
|
|
4010
|
-
},
|
|
4019
|
+
}, bi = (n) => {
|
|
4011
4020
|
if (typeof w.getAuthorizers()[n.transport] > "u")
|
|
4012
4021
|
throw `'${n.transport}' is not a recognized auth transport`;
|
|
4013
4022
|
return (e, t) => {
|
|
4014
4023
|
const r = vi(e, n);
|
|
4015
4024
|
w.getAuthorizers()[n.transport](w, r, n, u.ChannelAuthorization, t);
|
|
4016
4025
|
};
|
|
4017
|
-
},
|
|
4026
|
+
}, yi = (n, e, t) => {
|
|
4018
4027
|
const r = {
|
|
4019
4028
|
authTransport: e.transport,
|
|
4020
4029
|
authEndpoint: e.endpoint,
|
|
@@ -4024,26 +4033,26 @@ function Zi() {
|
|
|
4024
4033
|
}
|
|
4025
4034
|
};
|
|
4026
4035
|
return (o, c) => {
|
|
4027
|
-
const
|
|
4028
|
-
t(
|
|
4036
|
+
const l = n.channel(o.channelName);
|
|
4037
|
+
t(l, r).authorize(o.socketId, c);
|
|
4029
4038
|
};
|
|
4030
4039
|
};
|
|
4031
4040
|
function rt(n, e) {
|
|
4032
4041
|
let t = {
|
|
4033
|
-
activityTimeout: n.activityTimeout ||
|
|
4042
|
+
activityTimeout: n.activityTimeout || S.activityTimeout,
|
|
4034
4043
|
cluster: n.cluster,
|
|
4035
|
-
httpPath: n.httpPath ||
|
|
4036
|
-
httpPort: n.httpPort ||
|
|
4037
|
-
httpsPort: n.httpsPort ||
|
|
4038
|
-
pongTimeout: n.pongTimeout ||
|
|
4039
|
-
statsHost: n.statsHost ||
|
|
4040
|
-
unavailableTimeout: n.unavailableTimeout ||
|
|
4041
|
-
wsPath: n.wsPath ||
|
|
4042
|
-
wsPort: n.wsPort ||
|
|
4043
|
-
wssPort: n.wssPort ||
|
|
4044
|
+
httpPath: n.httpPath || S.httpPath,
|
|
4045
|
+
httpPort: n.httpPort || S.httpPort,
|
|
4046
|
+
httpsPort: n.httpsPort || S.httpsPort,
|
|
4047
|
+
pongTimeout: n.pongTimeout || S.pongTimeout,
|
|
4048
|
+
statsHost: n.statsHost || S.stats_host,
|
|
4049
|
+
unavailableTimeout: n.unavailableTimeout || S.unavailableTimeout,
|
|
4050
|
+
wsPath: n.wsPath || S.wsPath,
|
|
4051
|
+
wsPort: n.wsPort || S.wsPort,
|
|
4052
|
+
wssPort: n.wssPort || S.wssPort,
|
|
4044
4053
|
enableStats: xi(n),
|
|
4045
4054
|
httpHost: wi(n),
|
|
4046
|
-
useTLS:
|
|
4055
|
+
useTLS: Si(n),
|
|
4047
4056
|
wsHost: Ci(n),
|
|
4048
4057
|
userAuthenticator: Ei(n),
|
|
4049
4058
|
channelAuthorizer: _i(n, e)
|
|
@@ -4051,15 +4060,15 @@ function Zi() {
|
|
|
4051
4060
|
return "disabledTransports" in n && (t.disabledTransports = n.disabledTransports), "enabledTransports" in n && (t.enabledTransports = n.enabledTransports), "ignoreNullOrigin" in n && (t.ignoreNullOrigin = n.ignoreNullOrigin), "timelineParams" in n && (t.timelineParams = n.timelineParams), "nacl" in n && (t.nacl = n.nacl), t;
|
|
4052
4061
|
}
|
|
4053
4062
|
function wi(n) {
|
|
4054
|
-
return n.httpHost ? n.httpHost : n.cluster ? `sockjs-${n.cluster}.pusher.com` :
|
|
4063
|
+
return n.httpHost ? n.httpHost : n.cluster ? `sockjs-${n.cluster}.pusher.com` : S.httpHost;
|
|
4055
4064
|
}
|
|
4056
4065
|
function Ci(n) {
|
|
4057
|
-
return n.wsHost ? n.wsHost :
|
|
4066
|
+
return n.wsHost ? n.wsHost : ki(n.cluster);
|
|
4058
4067
|
}
|
|
4059
|
-
function
|
|
4068
|
+
function ki(n) {
|
|
4060
4069
|
return `ws-${n}.pusher.com`;
|
|
4061
4070
|
}
|
|
4062
|
-
function
|
|
4071
|
+
function Si(n) {
|
|
4063
4072
|
return w.getProtocol() === "https:" ? !0 : n.forceTLS !== !1;
|
|
4064
4073
|
}
|
|
4065
4074
|
function xi(n) {
|
|
@@ -4067,25 +4076,25 @@ function Zi() {
|
|
|
4067
4076
|
}
|
|
4068
4077
|
const st = (n) => "customHandler" in n && n.customHandler != null;
|
|
4069
4078
|
function Ei(n) {
|
|
4070
|
-
const e = Object.assign(Object.assign({},
|
|
4079
|
+
const e = Object.assign(Object.assign({}, S.userAuthentication), n.userAuthentication);
|
|
4071
4080
|
return st(e) ? e.customHandler : gi(e);
|
|
4072
4081
|
}
|
|
4073
4082
|
function Ti(n, e) {
|
|
4074
4083
|
let t;
|
|
4075
4084
|
if ("channelAuthorization" in n)
|
|
4076
|
-
t = Object.assign(Object.assign({},
|
|
4085
|
+
t = Object.assign(Object.assign({}, S.channelAuthorization), n.channelAuthorization);
|
|
4077
4086
|
else if (t = {
|
|
4078
|
-
transport: n.authTransport ||
|
|
4079
|
-
endpoint: n.authEndpoint ||
|
|
4087
|
+
transport: n.authTransport || S.authTransport,
|
|
4088
|
+
endpoint: n.authEndpoint || S.authEndpoint
|
|
4080
4089
|
}, "auth" in n && ("params" in n.auth && (t.params = n.auth.params), "headers" in n.auth && (t.headers = n.auth.headers)), "authorizer" in n)
|
|
4081
4090
|
return {
|
|
4082
|
-
customHandler:
|
|
4091
|
+
customHandler: yi(e, t, n.authorizer)
|
|
4083
4092
|
};
|
|
4084
4093
|
return t;
|
|
4085
4094
|
}
|
|
4086
4095
|
function _i(n, e) {
|
|
4087
4096
|
const t = Ti(n, e);
|
|
4088
|
-
return st(t) ? t.customHandler :
|
|
4097
|
+
return st(t) ? t.customHandler : bi(t);
|
|
4089
4098
|
}
|
|
4090
4099
|
class Ai extends G {
|
|
4091
4100
|
constructor(e) {
|
|
@@ -4187,19 +4196,19 @@ function Zi() {
|
|
|
4187
4196
|
}));
|
|
4188
4197
|
}
|
|
4189
4198
|
constructor(e, t) {
|
|
4190
|
-
ji(e), fi(t), this.key = e, this.options = t, this.config = rt(this.options, this), this.channels =
|
|
4199
|
+
ji(e), fi(t), this.key = e, this.options = t, this.config = rt(this.options, this), this.channels = K.createChannels(), this.global_emitter = new G(), this.sessionID = w.randomInt(1e9), this.timeline = new di(this.key, this.sessionID, {
|
|
4191
4200
|
cluster: this.config.cluster,
|
|
4192
4201
|
features: j.getClientFeatures(),
|
|
4193
4202
|
params: this.config.timelineParams || {},
|
|
4194
4203
|
limit: 50,
|
|
4195
|
-
level:
|
|
4196
|
-
version:
|
|
4197
|
-
}), this.config.enableStats && (this.timelineSender =
|
|
4204
|
+
level: le.INFO,
|
|
4205
|
+
version: S.VERSION
|
|
4206
|
+
}), this.config.enableStats && (this.timelineSender = K.createTimelineSender(this.timeline, {
|
|
4198
4207
|
host: this.config.statsHost,
|
|
4199
4208
|
path: "/timeline/v2/" + w.TimelineTransport.name
|
|
4200
4209
|
}));
|
|
4201
4210
|
var r = (o) => w.getDefaultStrategy(this.config, o, ui);
|
|
4202
|
-
this.connection =
|
|
4211
|
+
this.connection = K.createConnectionManager(this.key, {
|
|
4203
4212
|
getStrategy: r,
|
|
4204
4213
|
timeline: this.timeline,
|
|
4205
4214
|
activityTimeout: this.config.activityTimeout,
|
|
@@ -4209,12 +4218,12 @@ function Zi() {
|
|
|
4209
4218
|
}), this.connection.bind("connected", () => {
|
|
4210
4219
|
this.subscribeAll(), this.timelineSender && this.timelineSender.send(this.connection.isUsingTLS());
|
|
4211
4220
|
}), this.connection.bind("message", (o) => {
|
|
4212
|
-
var c = o.event,
|
|
4221
|
+
var c = o.event, l = c.indexOf("pusher_internal:") === 0;
|
|
4213
4222
|
if (o.channel) {
|
|
4214
4223
|
var f = this.channel(o.channel);
|
|
4215
4224
|
f && f.handleEvent(o);
|
|
4216
4225
|
}
|
|
4217
|
-
|
|
4226
|
+
l || this.global_emitter.emit(o.event, o.data);
|
|
4218
4227
|
}), this.connection.bind("connecting", () => {
|
|
4219
4228
|
this.channels.disconnect();
|
|
4220
4229
|
}), this.connection.bind("disconnected", () => {
|
|
@@ -4283,7 +4292,7 @@ function Zi() {
|
|
|
4283
4292
|
}
|
|
4284
4293
|
}
|
|
4285
4294
|
j.instances = [], j.isReady = !1, j.logToConsole = !1, j.Runtime = w, j.ScriptReceivers = w.ScriptReceivers, j.DependenciesReceivers = w.DependenciesReceivers, j.auth_callbacks = w.auth_callbacks;
|
|
4286
|
-
const
|
|
4295
|
+
const he = j;
|
|
4287
4296
|
function ji(n) {
|
|
4288
4297
|
if (n == null)
|
|
4289
4298
|
throw "You must pass your app key when you instantiate Pusher.";
|
|
@@ -4296,7 +4305,7 @@ function Zi() {
|
|
|
4296
4305
|
var v = a[m];
|
|
4297
4306
|
if (v !== void 0)
|
|
4298
4307
|
return v.exports;
|
|
4299
|
-
var
|
|
4308
|
+
var b = a[m] = {
|
|
4300
4309
|
/******/
|
|
4301
4310
|
// no module.id needed
|
|
4302
4311
|
/******/
|
|
@@ -4305,14 +4314,14 @@ function Zi() {
|
|
|
4305
4314
|
exports: {}
|
|
4306
4315
|
/******/
|
|
4307
4316
|
};
|
|
4308
|
-
return s[m].call(
|
|
4317
|
+
return s[m].call(b.exports, b, b.exports, d), b.exports;
|
|
4309
4318
|
}
|
|
4310
4319
|
d.d = (m, v) => {
|
|
4311
|
-
for (var
|
|
4312
|
-
d.o(v,
|
|
4320
|
+
for (var b in v)
|
|
4321
|
+
d.o(v, b) && !d.o(m, b) && Object.defineProperty(m, b, { enumerable: !0, get: v[b] });
|
|
4313
4322
|
}, d.o = (m, v) => Object.prototype.hasOwnProperty.call(m, v);
|
|
4314
|
-
var
|
|
4315
|
-
return
|
|
4323
|
+
var h = d(721);
|
|
4324
|
+
return h;
|
|
4316
4325
|
})()
|
|
4317
4326
|
));
|
|
4318
4327
|
})(Le)), Le.exports;
|
|
@@ -4548,7 +4557,7 @@ Code: (Code)`,
|
|
|
4548
4557
|
Kod: (Code)`,
|
|
4549
4558
|
whatsappText: "Prijavi me u (Host) ovim kodom: (Code)"
|
|
4550
4559
|
}
|
|
4551
|
-
},
|
|
4560
|
+
}, lr = {
|
|
4552
4561
|
labels: {
|
|
4553
4562
|
email: "Ηλεκτρονικό ταχυδρομείο",
|
|
4554
4563
|
whatsapp: "WhatsApp"
|
|
@@ -4571,7 +4580,7 @@ Kod: (Code)`,
|
|
|
4571
4580
|
Κωδικός: (Code)`,
|
|
4572
4581
|
whatsappText: "Σύνδεσέ με στο (Host) με αυτόν τον κωδικό: (Code)"
|
|
4573
4582
|
}
|
|
4574
|
-
},
|
|
4583
|
+
}, hr = {
|
|
4575
4584
|
labels: {
|
|
4576
4585
|
email: "E-posta",
|
|
4577
4586
|
whatsapp: "WhatsApp"
|
|
@@ -4732,7 +4741,7 @@ Koda: (Code)`,
|
|
|
4732
4741
|
Kód: (Code)`,
|
|
4733
4742
|
whatsappText: "Prihlás ma do (Host) týmto kódom: (Code)"
|
|
4734
4743
|
}
|
|
4735
|
-
},
|
|
4744
|
+
}, br = {
|
|
4736
4745
|
labels: {
|
|
4737
4746
|
email: "E-mail",
|
|
4738
4747
|
whatsapp: "WhatsApp"
|
|
@@ -4755,7 +4764,7 @@ Kód: (Code)`,
|
|
|
4755
4764
|
Kodi: (Code)`,
|
|
4756
4765
|
whatsappText: "Më identifiko në (Host) me këtë kod: (Code)"
|
|
4757
4766
|
}
|
|
4758
|
-
},
|
|
4767
|
+
}, yr = {
|
|
4759
4768
|
labels: {
|
|
4760
4769
|
email: "Էլ. փոստ",
|
|
4761
4770
|
whatsapp: "WhatsApp"
|
|
@@ -4824,7 +4833,7 @@ Kod: (Code)`,
|
|
|
4824
4833
|
Kodas: (Code)`,
|
|
4825
4834
|
whatsappText: "Prisijungti prie (Host) šiuo kodu: (Code)"
|
|
4826
4835
|
}
|
|
4827
|
-
},
|
|
4836
|
+
}, kr = {
|
|
4828
4837
|
labels: {
|
|
4829
4838
|
email: "E-pasts",
|
|
4830
4839
|
whatsapp: "WhatsApp"
|
|
@@ -4847,7 +4856,7 @@ Kodas: (Code)`,
|
|
|
4847
4856
|
Kods: (Code)`,
|
|
4848
4857
|
whatsappText: "Pierakstīties (Host) ar šo kodu: (Code)"
|
|
4849
4858
|
}
|
|
4850
|
-
},
|
|
4859
|
+
}, Sr = {
|
|
4851
4860
|
labels: {
|
|
4852
4861
|
email: "E-post",
|
|
4853
4862
|
whatsapp: "WhatsApp"
|
|
@@ -4894,6 +4903,236 @@ Koodi: (Code)`,
|
|
|
4894
4903
|
whatsappText: "Kirjaa minut palveluun (Host) tällä koodilla: (Code)"
|
|
4895
4904
|
}
|
|
4896
4905
|
}, Er = {
|
|
4906
|
+
labels: {
|
|
4907
|
+
email: "Email",
|
|
4908
|
+
whatsapp: "WhatsApp"
|
|
4909
|
+
},
|
|
4910
|
+
ui: {
|
|
4911
|
+
sendCodePrompt: "Trimite acest cod pentru a continua",
|
|
4912
|
+
successGreeting: "Salut, (Name)",
|
|
4913
|
+
by: "prin",
|
|
4914
|
+
toPrefix: "către",
|
|
4915
|
+
footerWaiting: "Gata să primească codul tău…",
|
|
4916
|
+
footerWaitingUntil: "Gata să primească codul tău…",
|
|
4917
|
+
footerReturnedWaiting: "Așteptăm să sosească mesajul tău…",
|
|
4918
|
+
codeExpired: "Codul a expirat, solicită unul nou.",
|
|
4919
|
+
getNewCode: "Obține un cod nou"
|
|
4920
|
+
},
|
|
4921
|
+
templates: {
|
|
4922
|
+
emailSubject: "Conectează-mă la (Host) cu acest cod: (Code)",
|
|
4923
|
+
emailBody: `Pentru a te autentifica la (Host), trimite acest email fără modificări.
|
|
4924
|
+
|
|
4925
|
+
Cod: (Code)`,
|
|
4926
|
+
whatsappText: "Conectează-mă la (Host) cu acest cod: (Code)"
|
|
4927
|
+
}
|
|
4928
|
+
}, Tr = {
|
|
4929
|
+
labels: {
|
|
4930
|
+
email: "Имейл",
|
|
4931
|
+
whatsapp: "WhatsApp"
|
|
4932
|
+
},
|
|
4933
|
+
ui: {
|
|
4934
|
+
sendCodePrompt: "Изпратете този код, за да продължите",
|
|
4935
|
+
successGreeting: "Здравейте, (Name)",
|
|
4936
|
+
by: "чрез",
|
|
4937
|
+
toPrefix: "до",
|
|
4938
|
+
footerWaiting: "Готово за получаване на вашия код…",
|
|
4939
|
+
footerWaitingUntil: "Готово за получаване на вашия код…",
|
|
4940
|
+
footerReturnedWaiting: "Изчакваме съобщението ви да пристигне…",
|
|
4941
|
+
codeExpired: "Кодът изтече, поискайте нов.",
|
|
4942
|
+
getNewCode: "Получете нов код"
|
|
4943
|
+
},
|
|
4944
|
+
templates: {
|
|
4945
|
+
emailSubject: "Впиши ме в (Host) с този код: (Code)",
|
|
4946
|
+
emailBody: `За да се удостоверите в (Host), изпратете този имейл без промени.
|
|
4947
|
+
|
|
4948
|
+
Код: (Code)`,
|
|
4949
|
+
whatsappText: "Впиши ме в (Host) с този код: (Code)"
|
|
4950
|
+
}
|
|
4951
|
+
}, _r = {
|
|
4952
|
+
labels: {
|
|
4953
|
+
email: "E-mail",
|
|
4954
|
+
whatsapp: "WhatsApp"
|
|
4955
|
+
},
|
|
4956
|
+
ui: {
|
|
4957
|
+
sendCodePrompt: "Küldd el ezt a kódot a folytatáshoz",
|
|
4958
|
+
successGreeting: "Szia, (Name)",
|
|
4959
|
+
by: "ezen keresztül",
|
|
4960
|
+
toPrefix: "ide",
|
|
4961
|
+
footerWaiting: "Készen áll a kód fogadására…",
|
|
4962
|
+
footerWaitingUntil: "Készen áll a kód fogadására…",
|
|
4963
|
+
footerReturnedWaiting: "Várjuk, hogy megérkezzen az üzeneted…",
|
|
4964
|
+
codeExpired: "A kód lejárt, kérj újat.",
|
|
4965
|
+
getNewCode: "Új kód kérése"
|
|
4966
|
+
},
|
|
4967
|
+
templates: {
|
|
4968
|
+
emailSubject: "Jelentkeztess be ide: (Host) ezzel a kóddal: (Code)",
|
|
4969
|
+
emailBody: `A (Host) hitelesítéséhez küldd el ezt az e-mailt módosítás nélkül.
|
|
4970
|
+
|
|
4971
|
+
Kód: (Code)`,
|
|
4972
|
+
whatsappText: "Jelentkeztess be ide: (Host) ezzel a kóddal: (Code)"
|
|
4973
|
+
}
|
|
4974
|
+
}, Ar = {
|
|
4975
|
+
labels: {
|
|
4976
|
+
email: "E-post",
|
|
4977
|
+
whatsapp: "WhatsApp"
|
|
4978
|
+
},
|
|
4979
|
+
ui: {
|
|
4980
|
+
sendCodePrompt: "Send denne koden for å fortsette",
|
|
4981
|
+
successGreeting: "Hei, (Name)",
|
|
4982
|
+
by: "via",
|
|
4983
|
+
toPrefix: "til",
|
|
4984
|
+
footerWaiting: "Klar til å motta koden din…",
|
|
4985
|
+
footerWaitingUntil: "Klar til å motta koden din…",
|
|
4986
|
+
footerReturnedWaiting: "Venter på at meldingen din skal komme fram…",
|
|
4987
|
+
codeExpired: "Koden er utløpt, be om en ny.",
|
|
4988
|
+
getNewCode: "Få ny kode"
|
|
4989
|
+
},
|
|
4990
|
+
templates: {
|
|
4991
|
+
emailSubject: "Logg meg inn på (Host) med denne koden: (Code)",
|
|
4992
|
+
emailBody: `For å autentisere deg hos (Host), send denne e-posten uten endringer.
|
|
4993
|
+
|
|
4994
|
+
Kode: (Code)`,
|
|
4995
|
+
whatsappText: "Logg meg inn på (Host) med denne koden: (Code)"
|
|
4996
|
+
}
|
|
4997
|
+
}, Pr = {
|
|
4998
|
+
labels: {
|
|
4999
|
+
email: "Електронна пошта",
|
|
5000
|
+
whatsapp: "WhatsApp"
|
|
5001
|
+
},
|
|
5002
|
+
ui: {
|
|
5003
|
+
sendCodePrompt: "Надішліть цей код, щоб продовжити",
|
|
5004
|
+
successGreeting: "Вітаємо, (Name)",
|
|
5005
|
+
by: "через",
|
|
5006
|
+
toPrefix: "на",
|
|
5007
|
+
footerWaiting: "Готово до отримання вашого коду…",
|
|
5008
|
+
footerWaitingUntil: "Готово до отримання вашого коду…",
|
|
5009
|
+
footerReturnedWaiting: "Очікуємо, доки ваше повідомлення надійде…",
|
|
5010
|
+
codeExpired: "Термін дії коду минув, запросіть новий.",
|
|
5011
|
+
getNewCode: "Отримати новий код"
|
|
5012
|
+
},
|
|
5013
|
+
templates: {
|
|
5014
|
+
emailSubject: "Увійти в (Host) з цим кодом: (Code)",
|
|
5015
|
+
emailBody: `Щоб автентифікуватися в (Host), надішліть цей лист без змін.
|
|
5016
|
+
|
|
5017
|
+
Код: (Code)`,
|
|
5018
|
+
whatsappText: "Увійти в (Host) з цим кодом: (Code)"
|
|
5019
|
+
}
|
|
5020
|
+
}, Lr = {
|
|
5021
|
+
labels: {
|
|
5022
|
+
email: "Email",
|
|
5023
|
+
whatsapp: "WhatsApp"
|
|
5024
|
+
},
|
|
5025
|
+
ui: {
|
|
5026
|
+
sendCodePrompt: "Pošalji ovaj kod za nastavak",
|
|
5027
|
+
successGreeting: "Zdravo, (Name)",
|
|
5028
|
+
by: "putem",
|
|
5029
|
+
toPrefix: "na",
|
|
5030
|
+
footerWaiting: "Spremno za prijem tvog koda…",
|
|
5031
|
+
footerWaitingUntil: "Spremno za prijem tvog koda…",
|
|
5032
|
+
footerReturnedWaiting: "Čekamo da tvoja poruka stigne…",
|
|
5033
|
+
codeExpired: "Kod je istekao, zatraži novi.",
|
|
5034
|
+
getNewCode: "Dobij novi kod"
|
|
5035
|
+
},
|
|
5036
|
+
templates: {
|
|
5037
|
+
emailSubject: "Prijavi me na (Host) ovim kodom: (Code)",
|
|
5038
|
+
emailBody: `Za autentifikaciju na (Host), pošalji ovaj email bez izmjena.
|
|
5039
|
+
|
|
5040
|
+
Kod: (Code)`,
|
|
5041
|
+
whatsappText: "Prijavi me na (Host) ovim kodom: (Code)"
|
|
5042
|
+
}
|
|
5043
|
+
}, Rr = {
|
|
5044
|
+
labels: {
|
|
5045
|
+
email: "Е-пошта",
|
|
5046
|
+
whatsapp: "WhatsApp"
|
|
5047
|
+
},
|
|
5048
|
+
ui: {
|
|
5049
|
+
sendCodePrompt: "Испратете го овој код за да продолжите",
|
|
5050
|
+
successGreeting: "Здраво, (Name)",
|
|
5051
|
+
by: "преку",
|
|
5052
|
+
toPrefix: "до",
|
|
5053
|
+
footerWaiting: "Подготвено за прием на вашиот код…",
|
|
5054
|
+
footerWaitingUntil: "Подготвено за прием на вашиот код…",
|
|
5055
|
+
footerReturnedWaiting: "Чекаме да пристигне вашата порака…",
|
|
5056
|
+
codeExpired: "Кодот истече, побарајте нов.",
|
|
5057
|
+
getNewCode: "Добиј нов код"
|
|
5058
|
+
},
|
|
5059
|
+
templates: {
|
|
5060
|
+
emailSubject: "Најави ме во (Host) со овој код: (Code)",
|
|
5061
|
+
emailBody: `За автентикација во (Host), испратете ја оваа е-пошта без измени.
|
|
5062
|
+
|
|
5063
|
+
Код: (Code)`,
|
|
5064
|
+
whatsappText: "Најави ме во (Host) со овој код: (Code)"
|
|
5065
|
+
}
|
|
5066
|
+
}, jr = {
|
|
5067
|
+
labels: {
|
|
5068
|
+
email: "Netfang",
|
|
5069
|
+
whatsapp: "WhatsApp"
|
|
5070
|
+
},
|
|
5071
|
+
ui: {
|
|
5072
|
+
sendCodePrompt: "Sendu þennan kóða til að halda áfram",
|
|
5073
|
+
successGreeting: "Halló, (Name)",
|
|
5074
|
+
by: "með",
|
|
5075
|
+
toPrefix: "til",
|
|
5076
|
+
footerWaiting: "Tilbúið að taka á móti kóðanum þínum…",
|
|
5077
|
+
footerWaitingUntil: "Tilbúið að taka á móti kóðanum þínum…",
|
|
5078
|
+
footerReturnedWaiting: "Bíðum eftir að skilaboðin þín berist…",
|
|
5079
|
+
codeExpired: "Kóðinn er útrunninn, fáðu nýjan.",
|
|
5080
|
+
getNewCode: "Fá nýjan kóða"
|
|
5081
|
+
},
|
|
5082
|
+
templates: {
|
|
5083
|
+
emailSubject: "Skráðu mig inn á (Host) með þessum kóða: (Code)",
|
|
5084
|
+
emailBody: `Til að auðkenna þig hjá (Host), sendu þennan tölvupóst án breytinga.
|
|
5085
|
+
|
|
5086
|
+
Kóði: (Code)`,
|
|
5087
|
+
whatsappText: "Skráðu mig inn á (Host) með þessum kóða: (Code)"
|
|
5088
|
+
}
|
|
5089
|
+
}, Wr = {
|
|
5090
|
+
labels: {
|
|
5091
|
+
email: "Ríomhphost",
|
|
5092
|
+
whatsapp: "WhatsApp"
|
|
5093
|
+
},
|
|
5094
|
+
ui: {
|
|
5095
|
+
sendCodePrompt: "Seol an cód seo chun leanúint ar aghaidh",
|
|
5096
|
+
successGreeting: "Dia dhuit, (Name)",
|
|
5097
|
+
by: "trí",
|
|
5098
|
+
toPrefix: "chuig",
|
|
5099
|
+
footerWaiting: "Réidh chun do chód a fháil…",
|
|
5100
|
+
footerWaitingUntil: "Réidh chun do chód a fháil…",
|
|
5101
|
+
footerReturnedWaiting: "Ag fanacht go dtiocfaidh do theachtaireacht…",
|
|
5102
|
+
codeExpired: "Tá an cód imithe in éag, iarr ceann nua.",
|
|
5103
|
+
getNewCode: "Faigh cód nua"
|
|
5104
|
+
},
|
|
5105
|
+
templates: {
|
|
5106
|
+
emailSubject: "Logáil isteach mé i (Host) leis an gcód seo: (Code)",
|
|
5107
|
+
emailBody: `Chun fíordheimhniú le (Host), seol an ríomhphost seo gan athruithe.
|
|
5108
|
+
|
|
5109
|
+
Cód: (Code)`,
|
|
5110
|
+
whatsappText: "Logáil isteach mé i (Host) leis an gcód seo: (Code)"
|
|
5111
|
+
}
|
|
5112
|
+
}, Hr = {
|
|
5113
|
+
labels: {
|
|
5114
|
+
email: "Email",
|
|
5115
|
+
whatsapp: "WhatsApp"
|
|
5116
|
+
},
|
|
5117
|
+
ui: {
|
|
5118
|
+
sendCodePrompt: "Ibgħat dan il-kodiċi biex tkompli",
|
|
5119
|
+
successGreeting: "Bonġu, (Name)",
|
|
5120
|
+
by: "permezz ta’",
|
|
5121
|
+
toPrefix: "lil",
|
|
5122
|
+
footerWaiting: "Lest biex jirċievi l-kodiċi tiegħek…",
|
|
5123
|
+
footerWaitingUntil: "Lest biex jirċievi l-kodiċi tiegħek…",
|
|
5124
|
+
footerReturnedWaiting: "Qed nistennew il-messaġġ tiegħek jasal…",
|
|
5125
|
+
codeExpired: "Il-kodiċi skada, itlob wieħed ġdid.",
|
|
5126
|
+
getNewCode: "Ikseb kodiċi ġdid"
|
|
5127
|
+
},
|
|
5128
|
+
templates: {
|
|
5129
|
+
emailSubject: "Daħħalni f’(Host) b’dan il-kodiċi: (Code)",
|
|
5130
|
+
emailBody: `Biex tawtentika ma’ (Host), ibgħat dan l-email mingħajr tibdil.
|
|
5131
|
+
|
|
5132
|
+
Kodiċi: (Code)`,
|
|
5133
|
+
whatsappText: "Daħħalni f’(Host) b’dan il-kodiċi: (Code)"
|
|
5134
|
+
}
|
|
5135
|
+
}, Nr = {
|
|
4897
5136
|
labels: {
|
|
4898
5137
|
email: "البريد الإلكتروني",
|
|
4899
5138
|
whatsapp: "WhatsApp"
|
|
@@ -4916,7 +5155,7 @@ Koodi: (Code)`,
|
|
|
4916
5155
|
الرمز: (Code)`,
|
|
4917
5156
|
whatsappText: "سجّل دخولي إلى (Host) بهذا الرمز: (Code)"
|
|
4918
5157
|
}
|
|
4919
|
-
},
|
|
5158
|
+
}, Ir = {
|
|
4920
5159
|
labels: {
|
|
4921
5160
|
email: "אימייל",
|
|
4922
5161
|
whatsapp: "WhatsApp"
|
|
@@ -4939,7 +5178,7 @@ Koodi: (Code)`,
|
|
|
4939
5178
|
קוד: (Code)`,
|
|
4940
5179
|
whatsappText: "היכנס אותי אל (Host) עם הקוד הזה: (Code)"
|
|
4941
5180
|
}
|
|
4942
|
-
},
|
|
5181
|
+
}, zr = {
|
|
4943
5182
|
labels: {
|
|
4944
5183
|
email: "メール",
|
|
4945
5184
|
whatsapp: "WhatsApp"
|
|
@@ -4962,7 +5201,7 @@ Koodi: (Code)`,
|
|
|
4962
5201
|
コード: (Code)`,
|
|
4963
5202
|
whatsappText: "このコードで (Host) にサインインします: (Code)"
|
|
4964
5203
|
}
|
|
4965
|
-
},
|
|
5204
|
+
}, Ur = {
|
|
4966
5205
|
labels: {
|
|
4967
5206
|
email: "이메일",
|
|
4968
5207
|
whatsapp: "WhatsApp"
|
|
@@ -4985,7 +5224,7 @@ Koodi: (Code)`,
|
|
|
4985
5224
|
코드: (Code)`,
|
|
4986
5225
|
whatsappText: "이 코드로 (Host)에 로그인합니다: (Code)"
|
|
4987
5226
|
}
|
|
4988
|
-
},
|
|
5227
|
+
}, Or = {
|
|
4989
5228
|
labels: {
|
|
4990
5229
|
email: "电子邮件",
|
|
4991
5230
|
whatsapp: "WhatsApp"
|
|
@@ -5008,7 +5247,145 @@ Koodi: (Code)`,
|
|
|
5008
5247
|
代码:(Code)`,
|
|
5009
5248
|
whatsappText: "使用此代码登录 (Host):(Code)"
|
|
5010
5249
|
}
|
|
5011
|
-
},
|
|
5250
|
+
}, qr = {
|
|
5251
|
+
labels: {
|
|
5252
|
+
email: "Email",
|
|
5253
|
+
whatsapp: "WhatsApp"
|
|
5254
|
+
},
|
|
5255
|
+
ui: {
|
|
5256
|
+
sendCodePrompt: "Gửi mã này để tiếp tục",
|
|
5257
|
+
successGreeting: "Xin chào, (Name)",
|
|
5258
|
+
by: "qua",
|
|
5259
|
+
toPrefix: "đến",
|
|
5260
|
+
footerWaiting: "Sẵn sàng nhận mã của bạn…",
|
|
5261
|
+
footerWaitingUntil: "Sẵn sàng nhận mã của bạn…",
|
|
5262
|
+
footerReturnedWaiting: "Đang chờ tin nhắn của bạn đến…",
|
|
5263
|
+
codeExpired: "Mã đã hết hạn, hãy yêu cầu mã mới.",
|
|
5264
|
+
getNewCode: "Lấy mã mới"
|
|
5265
|
+
},
|
|
5266
|
+
templates: {
|
|
5267
|
+
emailSubject: "Đăng nhập tôi vào (Host) bằng mã này: (Code)",
|
|
5268
|
+
emailBody: `Để xác thực với (Host), hãy gửi email này mà không thay đổi.
|
|
5269
|
+
|
|
5270
|
+
Mã: (Code)`,
|
|
5271
|
+
whatsappText: "Đăng nhập tôi vào (Host) bằng mã này: (Code)"
|
|
5272
|
+
}
|
|
5273
|
+
}, Mr = {
|
|
5274
|
+
labels: {
|
|
5275
|
+
email: "ईमेल",
|
|
5276
|
+
whatsapp: "WhatsApp"
|
|
5277
|
+
},
|
|
5278
|
+
ui: {
|
|
5279
|
+
sendCodePrompt: "जारी रखने के लिए यह कोड भेजें",
|
|
5280
|
+
successGreeting: "नमस्ते, (Name)",
|
|
5281
|
+
by: "के माध्यम से",
|
|
5282
|
+
toPrefix: "को",
|
|
5283
|
+
footerWaiting: "आपका कोड प्राप्त करने के लिए तैयार…",
|
|
5284
|
+
footerWaitingUntil: "आपका कोड प्राप्त करने के लिए तैयार…",
|
|
5285
|
+
footerReturnedWaiting: "आपके संदेश के पहुँचने की प्रतीक्षा कर रहे हैं…",
|
|
5286
|
+
codeExpired: "कोड समाप्त हो गया है, नया कोड माँगें।",
|
|
5287
|
+
getNewCode: "नया कोड प्राप्त करें"
|
|
5288
|
+
},
|
|
5289
|
+
templates: {
|
|
5290
|
+
emailSubject: "इस कोड से मुझे (Host) में साइन इन करें: (Code)",
|
|
5291
|
+
emailBody: `(Host) के साथ प्रमाणीकरण करने के लिए, यह ईमेल बिना किसी बदलाव के भेजें।
|
|
5292
|
+
|
|
5293
|
+
कोड: (Code)`,
|
|
5294
|
+
whatsappText: "इस कोड से मुझे (Host) में साइन इन करें: (Code)"
|
|
5295
|
+
}
|
|
5296
|
+
}, Br = {
|
|
5297
|
+
labels: {
|
|
5298
|
+
email: "Email",
|
|
5299
|
+
whatsapp: "WhatsApp"
|
|
5300
|
+
},
|
|
5301
|
+
ui: {
|
|
5302
|
+
sendCodePrompt: "Kirim kode ini untuk melanjutkan",
|
|
5303
|
+
successGreeting: "Halo, (Name)",
|
|
5304
|
+
by: "melalui",
|
|
5305
|
+
toPrefix: "ke",
|
|
5306
|
+
footerWaiting: "Siap menerima kode Anda…",
|
|
5307
|
+
footerWaitingUntil: "Siap menerima kode Anda…",
|
|
5308
|
+
footerReturnedWaiting: "Menunggu pesan Anda tiba…",
|
|
5309
|
+
codeExpired: "Kode kedaluwarsa, minta yang baru.",
|
|
5310
|
+
getNewCode: "Dapatkan kode baru"
|
|
5311
|
+
},
|
|
5312
|
+
templates: {
|
|
5313
|
+
emailSubject: "Masukkan saya ke (Host) dengan kode ini: (Code)",
|
|
5314
|
+
emailBody: `Untuk autentikasi dengan (Host), kirim email ini tanpa perubahan.
|
|
5315
|
+
|
|
5316
|
+
Kode: (Code)`,
|
|
5317
|
+
whatsappText: "Masukkan saya ke (Host) dengan kode ini: (Code)"
|
|
5318
|
+
}
|
|
5319
|
+
}, Dr = {
|
|
5320
|
+
labels: {
|
|
5321
|
+
email: "E-mel",
|
|
5322
|
+
whatsapp: "WhatsApp"
|
|
5323
|
+
},
|
|
5324
|
+
ui: {
|
|
5325
|
+
sendCodePrompt: "Hantar kod ini untuk meneruskan",
|
|
5326
|
+
successGreeting: "Hai, (Name)",
|
|
5327
|
+
by: "melalui",
|
|
5328
|
+
toPrefix: "kepada",
|
|
5329
|
+
footerWaiting: "Sedia menerima kod anda…",
|
|
5330
|
+
footerWaitingUntil: "Sedia menerima kod anda…",
|
|
5331
|
+
footerReturnedWaiting: "Menunggu mesej anda tiba…",
|
|
5332
|
+
codeExpired: "Kod telah tamat tempoh, minta yang baharu.",
|
|
5333
|
+
getNewCode: "Dapatkan kod baharu"
|
|
5334
|
+
},
|
|
5335
|
+
templates: {
|
|
5336
|
+
emailSubject: "Log masuk saya ke (Host) dengan kod ini: (Code)",
|
|
5337
|
+
emailBody: `Untuk mengesahkan dengan (Host), hantar e-mel ini tanpa sebarang perubahan.
|
|
5338
|
+
|
|
5339
|
+
Kod: (Code)`,
|
|
5340
|
+
whatsappText: "Log masuk saya ke (Host) dengan kod ini: (Code)"
|
|
5341
|
+
}
|
|
5342
|
+
}, Fr = {
|
|
5343
|
+
labels: {
|
|
5344
|
+
email: "ইমেইল",
|
|
5345
|
+
whatsapp: "WhatsApp"
|
|
5346
|
+
},
|
|
5347
|
+
ui: {
|
|
5348
|
+
sendCodePrompt: "চালিয়ে যেতে এই কোডটি পাঠান",
|
|
5349
|
+
successGreeting: "হ্যালো, (Name)",
|
|
5350
|
+
by: "এর মাধ্যমে",
|
|
5351
|
+
toPrefix: "প্রতি",
|
|
5352
|
+
footerWaiting: "আপনার কোড গ্রহণের জন্য প্রস্তুত…",
|
|
5353
|
+
footerWaitingUntil: "আপনার কোড গ্রহণের জন্য প্রস্তুত…",
|
|
5354
|
+
footerReturnedWaiting: "আপনার বার্তা পৌঁছানোর অপেক্ষায়…",
|
|
5355
|
+
codeExpired: "কোডের মেয়াদ শেষ, নতুন কোড নিন।",
|
|
5356
|
+
getNewCode: "নতুন কোড নিন"
|
|
5357
|
+
},
|
|
5358
|
+
templates: {
|
|
5359
|
+
emailSubject: "এই কোড দিয়ে আমাকে (Host)-এ সাইন ইন করুন: (Code)",
|
|
5360
|
+
emailBody: `(Host)-এর সঙ্গে প্রমাণীকরণের জন্য, কোনো পরিবর্তন ছাড়াই এই ইমেইলটি পাঠান।
|
|
5361
|
+
|
|
5362
|
+
কোড: (Code)`,
|
|
5363
|
+
whatsappText: "এই কোড দিয়ে আমাকে (Host)-এ সাইন ইন করুন: (Code)"
|
|
5364
|
+
}
|
|
5365
|
+
}, $r = {
|
|
5366
|
+
labels: {
|
|
5367
|
+
email: "อีเมล",
|
|
5368
|
+
whatsapp: "WhatsApp"
|
|
5369
|
+
},
|
|
5370
|
+
ui: {
|
|
5371
|
+
sendCodePrompt: "ส่งรหัสนี้เพื่อดำเนินการต่อ",
|
|
5372
|
+
successGreeting: "สวัสดี, (Name)",
|
|
5373
|
+
by: "ผ่าน",
|
|
5374
|
+
toPrefix: "ถึง",
|
|
5375
|
+
footerWaiting: "พร้อมรับรหัสของคุณ…",
|
|
5376
|
+
footerWaitingUntil: "พร้อมรับรหัสของคุณ…",
|
|
5377
|
+
footerReturnedWaiting: "กำลังรอให้ข้อความของคุณมาถึง…",
|
|
5378
|
+
codeExpired: "รหัสหมดอายุแล้ว โปรดขอรหัสใหม่",
|
|
5379
|
+
getNewCode: "รับรหัสใหม่"
|
|
5380
|
+
},
|
|
5381
|
+
templates: {
|
|
5382
|
+
emailSubject: "ลงชื่อเข้าใช้ (Host) ด้วยรหัสนี้: (Code)",
|
|
5383
|
+
emailBody: `เพื่อยืนยันตัวตนกับ (Host) ให้ส่งอีเมลนี้โดยไม่แก้ไขใด ๆ
|
|
5384
|
+
|
|
5385
|
+
รหัส: (Code)`,
|
|
5386
|
+
whatsappText: "ลงชื่อเข้าใช้ (Host) ด้วยรหัสนี้: (Code)"
|
|
5387
|
+
}
|
|
5388
|
+
}, Gr = [
|
|
5012
5389
|
"en",
|
|
5013
5390
|
"de",
|
|
5014
5391
|
"fr",
|
|
@@ -5034,12 +5411,32 @@ Koodi: (Code)`,
|
|
|
5034
5411
|
"lv",
|
|
5035
5412
|
"et",
|
|
5036
5413
|
"fi",
|
|
5414
|
+
"ro",
|
|
5415
|
+
"bg",
|
|
5416
|
+
"hu",
|
|
5417
|
+
"no",
|
|
5418
|
+
"uk",
|
|
5419
|
+
"bs",
|
|
5420
|
+
"mk",
|
|
5421
|
+
"is",
|
|
5422
|
+
"ga",
|
|
5423
|
+
"mt",
|
|
5037
5424
|
"ar",
|
|
5038
5425
|
"he",
|
|
5039
5426
|
"ja",
|
|
5040
5427
|
"ko",
|
|
5041
|
-
"zh"
|
|
5042
|
-
|
|
5428
|
+
"zh",
|
|
5429
|
+
"vi",
|
|
5430
|
+
"hi",
|
|
5431
|
+
"id",
|
|
5432
|
+
"ms",
|
|
5433
|
+
"bn",
|
|
5434
|
+
"th"
|
|
5435
|
+
], Kr = ["ar", "he"];
|
|
5436
|
+
function Vr(g) {
|
|
5437
|
+
return Kr.includes(g);
|
|
5438
|
+
}
|
|
5439
|
+
const Xr = {
|
|
5043
5440
|
en: Lt,
|
|
5044
5441
|
de: tr,
|
|
5045
5442
|
fr: nr,
|
|
@@ -5050,31 +5447,47 @@ Koodi: (Code)`,
|
|
|
5050
5447
|
da: ar,
|
|
5051
5448
|
nl: cr,
|
|
5052
5449
|
hr: dr,
|
|
5053
|
-
el:
|
|
5054
|
-
tr:
|
|
5450
|
+
el: lr,
|
|
5451
|
+
tr: hr,
|
|
5055
5452
|
"de-he": ur,
|
|
5056
5453
|
ru: pr,
|
|
5057
5454
|
sv: fr,
|
|
5058
5455
|
pt: mr,
|
|
5059
5456
|
sl: gr,
|
|
5060
5457
|
sk: vr,
|
|
5061
|
-
sq:
|
|
5062
|
-
hy:
|
|
5458
|
+
sq: br,
|
|
5459
|
+
hy: yr,
|
|
5063
5460
|
sr: wr,
|
|
5064
5461
|
lt: Cr,
|
|
5065
|
-
lv:
|
|
5066
|
-
et:
|
|
5462
|
+
lv: kr,
|
|
5463
|
+
et: Sr,
|
|
5067
5464
|
fi: xr,
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5465
|
+
ro: Er,
|
|
5466
|
+
bg: Tr,
|
|
5467
|
+
hu: _r,
|
|
5468
|
+
no: Ar,
|
|
5469
|
+
uk: Pr,
|
|
5470
|
+
bs: Lr,
|
|
5471
|
+
mk: Rr,
|
|
5472
|
+
is: jr,
|
|
5473
|
+
ga: Wr,
|
|
5474
|
+
mt: Hr,
|
|
5475
|
+
ar: Nr,
|
|
5476
|
+
he: Ir,
|
|
5477
|
+
ja: zr,
|
|
5478
|
+
ko: Ur,
|
|
5479
|
+
zh: Or,
|
|
5480
|
+
vi: qr,
|
|
5481
|
+
hi: Mr,
|
|
5482
|
+
id: Br,
|
|
5483
|
+
ms: Dr,
|
|
5484
|
+
bn: Fr,
|
|
5485
|
+
th: $r
|
|
5073
5486
|
};
|
|
5074
5487
|
function vt(g) {
|
|
5075
|
-
return
|
|
5488
|
+
return Gr.includes(g);
|
|
5076
5489
|
}
|
|
5077
|
-
function
|
|
5490
|
+
function bt(g) {
|
|
5078
5491
|
if (!g) return null;
|
|
5079
5492
|
const i = g.trim().toLowerCase().replace("_", "-");
|
|
5080
5493
|
if (vt(i)) return i;
|
|
@@ -5082,39 +5495,39 @@ function yt(g) {
|
|
|
5082
5495
|
return vt(s) ? s : null;
|
|
5083
5496
|
}
|
|
5084
5497
|
function F(g) {
|
|
5085
|
-
return
|
|
5498
|
+
return Xr[g] ?? Lt;
|
|
5086
5499
|
}
|
|
5087
|
-
const
|
|
5088
|
-
`, wt = '<svg role="img" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>WhatsApp</title><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>',
|
|
5089
|
-
function
|
|
5500
|
+
const yt = `<svg role="img" viewBox="0 0 512 512" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>Email</title><path d="M64 112c-8.8 0-16 7.2-16 16l0 22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1l0-22.1c0-8.8-7.2-16-16-16L64 112zM48 212.2L48 384c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-171.8L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"/></svg>
|
|
5501
|
+
`, wt = '<svg role="img" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>WhatsApp</title><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>', Jr = '<svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M4.998 9.332A5.002 5.002 0 0 1 13.2 5.5H11a1 1 0 1 0 0 2h4.5a1 1 0 0 0 1-1V2a1 1 0 1 0-2 0v1.74A7.002 7.002 0 0 0 3 9.332a1 1 0 1 0 1.998 0ZM15.002 10.668A5.002 5.002 0 0 1 6.8 14.5H9a1 1 0 1 0 0-2H4.5a1 1 0 0 0-1 1V18a1 1 0 1 0 2 0v-1.74a7.002 7.002 0 0 0 11.5-5.592 1 1 0 1 0-1.998 0Z" clip-rule="evenodd" /></svg>', Yr = '<svg viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM7.22 6.22a.75.75 0 0 0-1.06 1.06L8.88 10l-2.72 2.72a.75.75 0 1 0 1.06 1.06L9.94 11.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L11 10l2.72-2.72a.75.75 0 0 0-1.06-1.06L9.94 8.94 7.22 6.22Z" clip-rule="evenodd" /></svg>', ze = "sendityAuthRequest", Zr = "https://sendity.io/api/sendity", Qr = 600 * 1e3, es = 5e3, ts = 15e3, ns = 1e3, je = 2e3, fe = 220, Rt = 0;
|
|
5502
|
+
function Ue(g, i) {
|
|
5090
5503
|
return `sendity:auth-request:${encodeURIComponent(g)}:${encodeURIComponent(i)}`;
|
|
5091
5504
|
}
|
|
5092
5505
|
function Ct(g, i, s, a = Date.now()) {
|
|
5093
5506
|
g.removeItem(ze);
|
|
5094
|
-
const d =
|
|
5095
|
-
if (!
|
|
5507
|
+
const d = Ue(i, s), h = g.getItem(d);
|
|
5508
|
+
if (!h) return null;
|
|
5096
5509
|
try {
|
|
5097
|
-
const m = JSON.parse(
|
|
5510
|
+
const m = JSON.parse(h);
|
|
5098
5511
|
if (typeof m.id != "string" || typeof m.clientSecret != "string" || typeof m.createdAt != "number")
|
|
5099
5512
|
throw new Error("invalid stored auth request");
|
|
5100
|
-
return a - m.createdAt >=
|
|
5513
|
+
return a - m.createdAt >= Qr ? (g.removeItem(d), null) : { id: m.id, clientSecret: m.clientSecret };
|
|
5101
5514
|
} catch {
|
|
5102
5515
|
return g.removeItem(d), null;
|
|
5103
5516
|
}
|
|
5104
5517
|
}
|
|
5105
|
-
function
|
|
5106
|
-
g.setItem(
|
|
5518
|
+
function is(g, i, s, a, d = Date.now()) {
|
|
5519
|
+
g.setItem(Ue(i, s), JSON.stringify({ ...a, createdAt: d }));
|
|
5107
5520
|
}
|
|
5108
|
-
function
|
|
5109
|
-
g.removeItem(
|
|
5521
|
+
function kt(g, i, s) {
|
|
5522
|
+
g.removeItem(Ue(i, s)), g.removeItem(ze);
|
|
5110
5523
|
}
|
|
5111
5524
|
function me() {
|
|
5112
5525
|
return window.localStorage.removeItem(ze), window.sessionStorage;
|
|
5113
5526
|
}
|
|
5114
|
-
function
|
|
5115
|
-
return g.filter((s) =>
|
|
5527
|
+
function rs(g, i = window.location.origin) {
|
|
5528
|
+
return g.filter((s) => ss(s, i));
|
|
5116
5529
|
}
|
|
5117
|
-
function
|
|
5530
|
+
function ss(g, i) {
|
|
5118
5531
|
try {
|
|
5119
5532
|
const s = new URL(g, i);
|
|
5120
5533
|
return ["http:", "https:", "mailto:", "whatsapp:"].includes(s.protocol);
|
|
@@ -5122,7 +5535,7 @@ function Mr(g, i) {
|
|
|
5122
5535
|
return !1;
|
|
5123
5536
|
}
|
|
5124
5537
|
}
|
|
5125
|
-
function
|
|
5538
|
+
function os(g, i, s) {
|
|
5126
5539
|
return g === "push" ? { start: !1, delayMs: 0 } : g === "polling" || !i || !s ? { start: !0, delayMs: 0 } : { start: !0, delayMs: Rt };
|
|
5127
5540
|
}
|
|
5128
5541
|
const ve = class ve extends HTMLElement {
|
|
@@ -5134,8 +5547,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5134
5547
|
this.injectTailwind(i);
|
|
5135
5548
|
const s = document.createElement("div");
|
|
5136
5549
|
s.innerHTML = ft;
|
|
5137
|
-
const a = s.querySelector("template"), d = a ? a.content.cloneNode(!0) : document.createRange().createContextualFragment(ft),
|
|
5138
|
-
|
|
5550
|
+
const a = s.querySelector("template"), d = a ? a.content.cloneNode(!0) : document.createRange().createContextualFragment(ft), h = document.createElement("style");
|
|
5551
|
+
h.textContent = Bi, i.appendChild(h), i.appendChild(d);
|
|
5139
5552
|
}
|
|
5140
5553
|
static get observedAttributes() {
|
|
5141
5554
|
return ["server-url", "public-key", "lang", "transport", "hide-footer", "footer", "authenticated-event-delay-ms", "variant", "no-card"];
|
|
@@ -5148,7 +5561,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5148
5561
|
this.handleInitialError(i);
|
|
5149
5562
|
return;
|
|
5150
5563
|
}
|
|
5151
|
-
this.configureFooter(), this.bindBrowserReturnListeners(), this.dispatchPublicEvent("sendity:ready", {
|
|
5564
|
+
this.configureLanguageDirection(), this.configureFooter(), this.bindBrowserReturnListeners(), this.dispatchPublicEvent("sendity:ready", {
|
|
5152
5565
|
transport: this.currentConfig.transport,
|
|
5153
5566
|
channel: this.primaryChannel(this.activeVerifyUrls)
|
|
5154
5567
|
}), this.showPlaceholderCode(), this.startWhenVisible();
|
|
@@ -5157,7 +5570,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5157
5570
|
this.stop(), this.destroyed = !0;
|
|
5158
5571
|
}
|
|
5159
5572
|
attributeChangedCallback() {
|
|
5160
|
-
this.isConnected && (this.syncLayoutVariant(), this.currentConfig = this.resolveConfig(), this.configureFooter());
|
|
5573
|
+
this.isConnected && (this.syncLayoutVariant(), this.currentConfig = this.resolveConfig(), this.configureLanguageDirection(), this.configureFooter());
|
|
5161
5574
|
}
|
|
5162
5575
|
isNoCardVariant() {
|
|
5163
5576
|
return this.getAttribute("variant") === "no-card" || this.hasAttribute("no-card");
|
|
@@ -5165,6 +5578,11 @@ const ve = class ve extends HTMLElement {
|
|
|
5165
5578
|
syncLayoutVariant() {
|
|
5166
5579
|
this.rootEl?.classList.toggle("sendity--no-card", this.isNoCardVariant());
|
|
5167
5580
|
}
|
|
5581
|
+
configureLanguageDirection() {
|
|
5582
|
+
if (!this.currentConfig || !this.rootEl) return;
|
|
5583
|
+
const i = Vr(this.currentConfig.lang) ? "rtl" : "ltr";
|
|
5584
|
+
this.rootEl.setAttribute("lang", this.currentConfig.lang), this.rootEl.setAttribute("dir", i), this.codeContainerEl?.setAttribute("dir", "ltr"), this.codeEl?.setAttribute("dir", "ltr");
|
|
5585
|
+
}
|
|
5168
5586
|
startWhenVisible() {
|
|
5169
5587
|
if (!(this.authFlowStarted || this.destroyed)) {
|
|
5170
5588
|
if (!("IntersectionObserver" in window)) {
|
|
@@ -5236,7 +5654,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5236
5654
|
scheduleBrowserReturnCheck() {
|
|
5237
5655
|
this.destroyed || this.authenticated || !this.activeAuthRequestId || !this.activeAuthRequestSecret || document.visibilityState && document.visibilityState !== "visible" || (this.returnWaitTimer !== null && clearTimeout(this.returnWaitTimer), this.returnWaitTimer = window.setTimeout(() => {
|
|
5238
5656
|
this.returnWaitTimer = null, !(this.destroyed || this.authenticated) && (this.showFooterWaitingState({ returnedFromClient: !0 }), this.step().catch((i) => console.warn("[sendity-auth] return check failed", i)));
|
|
5239
|
-
},
|
|
5657
|
+
}, ns));
|
|
5240
5658
|
}
|
|
5241
5659
|
isFooterHidden() {
|
|
5242
5660
|
const i = (this.getAttribute("footer") ?? "").trim().toLowerCase();
|
|
@@ -5250,13 +5668,13 @@ const ve = class ve extends HTMLElement {
|
|
|
5250
5668
|
scheduleFooterWaitingState() {
|
|
5251
5669
|
this.footerWaitTimer !== null || this.isFooterHidden() || (this.footerWaitTimer = window.setTimeout(() => {
|
|
5252
5670
|
this.footerWaitTimer = null, this.showFooterWaitingState();
|
|
5253
|
-
},
|
|
5671
|
+
}, ts));
|
|
5254
5672
|
}
|
|
5255
5673
|
setFooterIndicatorWaiting() {
|
|
5256
5674
|
this.footerIndicatorEl && (this.footerIndicatorEl.classList.remove("footer-indicator--error"), this.footerIndicatorEl.innerHTML = "", this.footerIndicatorEl.removeAttribute("hidden"));
|
|
5257
5675
|
}
|
|
5258
5676
|
setFooterIndicatorError() {
|
|
5259
|
-
this.footerIndicatorEl && (this.footerIndicatorEl.classList.add("footer-indicator--error"), this.footerIndicatorEl.innerHTML =
|
|
5677
|
+
this.footerIndicatorEl && (this.footerIndicatorEl.classList.add("footer-indicator--error"), this.footerIndicatorEl.innerHTML = Yr, this.footerIndicatorEl.removeAttribute("hidden"));
|
|
5260
5678
|
}
|
|
5261
5679
|
showFooterWaitingState(i = {}) {
|
|
5262
5680
|
this.isFooterHidden() || (this.currentConfig && this.footerMessageEl && (this.footerMessageEl.textContent = i.returnedFromClient ? F(this.currentConfig.lang).ui.footerReturnedWaiting : this.waitingFooterMessage()), this.setFooterIndicatorWaiting(), this.footerEl?.classList.add("footer--waiting", "footer--transitioning"), this.footerBrandEl?.removeAttribute("hidden"), this.footerStatusEl?.removeAttribute("hidden"), this.footerTransitionTimer !== null && clearTimeout(this.footerTransitionTimer), this.footerTransitionTimer = window.setTimeout(() => {
|
|
@@ -5276,8 +5694,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5276
5694
|
this.footerTimerEl.setAttribute("hidden", "");
|
|
5277
5695
|
return;
|
|
5278
5696
|
}
|
|
5279
|
-
const a = Math.max(0, Math.floor((s - Date.now()) / 1e3)), d = Math.floor(a / 60),
|
|
5280
|
-
this.footerTimerEl.textContent = `${d}:${
|
|
5697
|
+
const a = Math.max(0, Math.floor((s - Date.now()) / 1e3)), d = Math.floor(a / 60), h = String(a % 60).padStart(2, "0");
|
|
5698
|
+
this.footerTimerEl.textContent = `${d}:${h}`, this.footerTimerEl.classList.toggle("low", a > 0 && a <= 60), this.footerTimerEl.removeAttribute("hidden"), a <= 0 && this.timerInterval !== null && (clearInterval(this.timerInterval), this.timerInterval = null, this.showExpiredState());
|
|
5281
5699
|
};
|
|
5282
5700
|
i(), this.timerInterval = window.setInterval(i, 1e3);
|
|
5283
5701
|
}
|
|
@@ -5301,12 +5719,12 @@ const ve = class ve extends HTMLElement {
|
|
|
5301
5719
|
this.verifiersEl.innerHTML = "", this.verifiersEl.classList.remove("is-two", "verifiers--exiting"), this.verifiersEl.removeAttribute("aria-hidden");
|
|
5302
5720
|
const s = document.createElement("button");
|
|
5303
5721
|
s.type = "button", s.className = "chan error", s.addEventListener("click", () => {
|
|
5304
|
-
s.disabled = !0, this.requestNewAuthRequest().catch((
|
|
5305
|
-
console.warn("[sendity-auth] failed to request a new code",
|
|
5722
|
+
s.disabled = !0, this.requestNewAuthRequest().catch((h) => {
|
|
5723
|
+
console.warn("[sendity-auth] failed to request a new code", h), s.disabled = !1;
|
|
5306
5724
|
});
|
|
5307
5725
|
});
|
|
5308
5726
|
const a = document.createElement("span");
|
|
5309
|
-
a.className = "icon", a.setAttribute("aria-hidden", "true"), a.innerHTML =
|
|
5727
|
+
a.className = "icon", a.setAttribute("aria-hidden", "true"), a.innerHTML = Jr, s.appendChild(a);
|
|
5310
5728
|
const d = document.createElement("span");
|
|
5311
5729
|
d.className = "label", d.textContent = i.ui.getNewCode, s.appendChild(d), this.verifiersEl.appendChild(s);
|
|
5312
5730
|
}
|
|
@@ -5328,13 +5746,13 @@ const ve = class ve extends HTMLElement {
|
|
|
5328
5746
|
}
|
|
5329
5747
|
resolveConfig() {
|
|
5330
5748
|
const i = {
|
|
5331
|
-
lang:
|
|
5749
|
+
lang: bt(navigator.language) ?? "en",
|
|
5332
5750
|
transport: "auto"
|
|
5333
|
-
}, s = (E) => this.getAttribute(E) ?? void 0, a = s("server-url")?.trim() ||
|
|
5751
|
+
}, s = (E) => this.getAttribute(E) ?? void 0, a = s("server-url")?.trim() || Zr, d = s("public-key")?.trim();
|
|
5334
5752
|
if (!d)
|
|
5335
5753
|
throw new Error("Missing required sendity-auth attribute: public-key");
|
|
5336
|
-
const
|
|
5337
|
-
return { serverUrl: a, publicKey: d, lang:
|
|
5754
|
+
const h = bt(s("lang")) ?? i.lang, m = s("transport"), v = m === "push" || m === "polling" ? m : i.transport, b = this.parseAuthenticatedEventDelayMs(s("authenticated-event-delay-ms"));
|
|
5755
|
+
return { serverUrl: a, publicKey: d, lang: h, transport: v, authenticatedEventDelayMs: b };
|
|
5338
5756
|
}
|
|
5339
5757
|
parseAuthenticatedEventDelayMs(i) {
|
|
5340
5758
|
if (i === void 0 || i.trim() === "") return je;
|
|
@@ -5352,43 +5770,43 @@ const ve = class ve extends HTMLElement {
|
|
|
5352
5770
|
body: JSON.stringify({ public_key: s })
|
|
5353
5771
|
});
|
|
5354
5772
|
if (!d.ok) throw new Error(`Auth request creation failed: ${d.status}`);
|
|
5355
|
-
const
|
|
5356
|
-
if (!
|
|
5357
|
-
const m = this.extractClientSecret(
|
|
5773
|
+
const h = await d.json();
|
|
5774
|
+
if (!h.id) throw new Error("Missing id from server response");
|
|
5775
|
+
const m = this.extractClientSecret(h);
|
|
5358
5776
|
if (!m) throw new Error("Missing client secret from server response");
|
|
5359
|
-
return
|
|
5360
|
-
verificationId: String(
|
|
5361
|
-
code:
|
|
5777
|
+
return is(a, i, s, { id: String(h.id), clientSecret: m }), this.activeAuthRequestId = String(h.id), this.activeAuthRequestSecret = m, this.updateActiveAuthRequestExpiry(h), this.applyVerifyUrlsFromResponse(h), this.updateCode(h.formattedCode ?? h.code), this.dispatchPublicEvent("sendity:challenge-created", {
|
|
5778
|
+
verificationId: String(h.id),
|
|
5779
|
+
code: h.formattedCode ?? h.code ?? "",
|
|
5362
5780
|
channel: this.primaryChannel(this.activeVerifyUrls)
|
|
5363
|
-
}),
|
|
5781
|
+
}), h;
|
|
5364
5782
|
}
|
|
5365
5783
|
async step() {
|
|
5366
5784
|
this.currentConfig || (this.currentConfig = this.resolveConfig());
|
|
5367
|
-
const { serverUrl: i, publicKey: s } = this.currentConfig, a = me(), d = Ct(a, i, s),
|
|
5368
|
-
if (!
|
|
5785
|
+
const { serverUrl: i, publicKey: s } = this.currentConfig, a = me(), d = Ct(a, i, s), h = d?.id;
|
|
5786
|
+
if (!h)
|
|
5369
5787
|
return await this.createAuthRequest(i, s, a);
|
|
5370
|
-
this.activeAuthRequestId =
|
|
5788
|
+
this.activeAuthRequestId = h, this.activeAuthRequestSecret = d.clientSecret;
|
|
5371
5789
|
const m = await fetch(
|
|
5372
|
-
this.authRequestStatusUrl(i,
|
|
5790
|
+
this.authRequestStatusUrl(i, h),
|
|
5373
5791
|
this.authRequestStatusInit(d.clientSecret)
|
|
5374
5792
|
);
|
|
5375
5793
|
if (m.status !== 200)
|
|
5376
|
-
return
|
|
5794
|
+
return kt(a, i, s), await this.step();
|
|
5377
5795
|
const v = await m.json();
|
|
5378
5796
|
if (this.applyVerifyUrlsFromResponse(v), v.status === "verified")
|
|
5379
5797
|
return this.handleAuthenticated(v), v;
|
|
5380
5798
|
if (v.status === "expired")
|
|
5381
5799
|
return this.updateActiveAuthRequestExpiry(v), this.updateCode(v.formattedCode ?? v.code), this.showExpiredState(), v;
|
|
5382
5800
|
v.id && (this.activeAuthRequestId = String(v.id));
|
|
5383
|
-
const
|
|
5384
|
-
return
|
|
5801
|
+
const b = this.extractClientSecret(v);
|
|
5802
|
+
return b && (this.activeAuthRequestSecret = b), this.updateActiveAuthRequestExpiry(v), this.updateCode(v.formattedCode ?? v.code), v;
|
|
5385
5803
|
}
|
|
5386
5804
|
configureRealtime(i) {
|
|
5387
5805
|
this.currentConfig || (this.currentConfig = this.resolveConfig());
|
|
5388
5806
|
const { transport: s } = this.currentConfig, a = i?.broadcasting, d = !!(a?.key && a.channel && a.authEndpoint);
|
|
5389
|
-
let
|
|
5390
|
-
s !== "polling" && d && a ?
|
|
5391
|
-
const m =
|
|
5807
|
+
let h = !1;
|
|
5808
|
+
s !== "polling" && d && a ? h = this.subscribeToBroadcasting(a) : s === "push" && console.warn("[sendity-auth] Push transport requested, but server response does not contain broadcasting metadata");
|
|
5809
|
+
const m = os(s, d, h);
|
|
5392
5810
|
m.start && this.startPolling(m.delayMs);
|
|
5393
5811
|
}
|
|
5394
5812
|
subscribeToBroadcasting(i) {
|
|
@@ -5427,7 +5845,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5427
5845
|
const s = () => {
|
|
5428
5846
|
this.pollTimer !== null || this.authenticated || this.destroyed || (this.pollTimer = window.setInterval(() => {
|
|
5429
5847
|
this.step().catch((a) => console.warn("[sendity-auth] poll failed", a));
|
|
5430
|
-
},
|
|
5848
|
+
}, es));
|
|
5431
5849
|
};
|
|
5432
5850
|
i > 0 ? this.fallbackPollTimer = window.setTimeout(() => {
|
|
5433
5851
|
this.fallbackPollTimer = null, s();
|
|
@@ -5441,7 +5859,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5441
5859
|
});
|
|
5442
5860
|
return;
|
|
5443
5861
|
}
|
|
5444
|
-
this.authenticated = !0, this.currentConfig &&
|
|
5862
|
+
this.authenticated = !0, this.currentConfig && kt(me(), this.currentConfig.serverUrl, this.currentConfig.publicKey), this.stopAuthTransports(), this.showSuccess(i);
|
|
5445
5863
|
const s = this.toPublicAuthenticatedDetail(i), a = this.currentConfig?.authenticatedEventDelayMs ?? je;
|
|
5446
5864
|
this.authenticatedEventTimer = window.setTimeout(() => {
|
|
5447
5865
|
this.authenticatedEventTimer = null, !this.destroyed && this.dispatchPublicEvent("sendity:authenticated", s);
|
|
@@ -5469,7 +5887,7 @@ const ve = class ve extends HTMLElement {
|
|
|
5469
5887
|
return s.startsWith("mailto:") ? "email" : s.startsWith("whatsapp:") || s.startsWith("whatsapp://") ? "whatsapp" : "unknown";
|
|
5470
5888
|
}
|
|
5471
5889
|
applyVerifyUrlsFromResponse(i) {
|
|
5472
|
-
const s = Array.isArray(i.verify_urls) ? i.verify_urls : Array.isArray(i.verifyUrls) ? i.verifyUrls : [], a = Array.isArray(i.verification_endpoints) ? i.verification_endpoints.map((
|
|
5890
|
+
const s = Array.isArray(i.verify_urls) ? i.verify_urls : Array.isArray(i.verifyUrls) ? i.verifyUrls : [], a = Array.isArray(i.verification_endpoints) ? i.verification_endpoints.map((h) => typeof h.url == "string" ? h.url : typeof h.scheme == "string" && typeof h.recipient == "string" ? `${h.scheme}:${h.recipient}` : "") : [], d = rs([...s, ...a].map(String));
|
|
5473
5891
|
d.length !== 0 && (this.activeVerifyUrls = [...new Set(d)], this.renderVerifiers(this.activeVerifyUrls));
|
|
5474
5892
|
}
|
|
5475
5893
|
authRequestStatusUrl(i, s) {
|
|
@@ -5551,6 +5969,26 @@ const ve = class ve extends HTMLElement {
|
|
|
5551
5969
|
return "et-EE";
|
|
5552
5970
|
case "fi":
|
|
5553
5971
|
return "fi-FI";
|
|
5972
|
+
case "ro":
|
|
5973
|
+
return "ro-RO";
|
|
5974
|
+
case "bg":
|
|
5975
|
+
return "bg-BG";
|
|
5976
|
+
case "hu":
|
|
5977
|
+
return "hu-HU";
|
|
5978
|
+
case "no":
|
|
5979
|
+
return "nb-NO";
|
|
5980
|
+
case "uk":
|
|
5981
|
+
return "uk-UA";
|
|
5982
|
+
case "bs":
|
|
5983
|
+
return "bs-BA";
|
|
5984
|
+
case "mk":
|
|
5985
|
+
return "mk-MK";
|
|
5986
|
+
case "is":
|
|
5987
|
+
return "is-IS";
|
|
5988
|
+
case "ga":
|
|
5989
|
+
return "ga-IE";
|
|
5990
|
+
case "mt":
|
|
5991
|
+
return "mt-MT";
|
|
5554
5992
|
case "ar":
|
|
5555
5993
|
return "ar-SA";
|
|
5556
5994
|
case "he":
|
|
@@ -5561,6 +5999,18 @@ const ve = class ve extends HTMLElement {
|
|
|
5561
5999
|
return "ko-KR";
|
|
5562
6000
|
case "zh":
|
|
5563
6001
|
return "zh-CN";
|
|
6002
|
+
case "vi":
|
|
6003
|
+
return "vi-VN";
|
|
6004
|
+
case "hi":
|
|
6005
|
+
return "hi-IN";
|
|
6006
|
+
case "id":
|
|
6007
|
+
return "id-ID";
|
|
6008
|
+
case "ms":
|
|
6009
|
+
return "ms-MY";
|
|
6010
|
+
case "bn":
|
|
6011
|
+
return "bn-BD";
|
|
6012
|
+
case "th":
|
|
6013
|
+
return "th-TH";
|
|
5564
6014
|
default:
|
|
5565
6015
|
return "en-US";
|
|
5566
6016
|
}
|
|
@@ -5576,9 +6026,9 @@ const ve = class ve extends HTMLElement {
|
|
|
5576
6026
|
);
|
|
5577
6027
|
if (!d.ok)
|
|
5578
6028
|
throw new Error(`Authorization fetch failed: ${d.status}`);
|
|
5579
|
-
const
|
|
5580
|
-
if (
|
|
5581
|
-
this.handleAuthenticated(
|
|
6029
|
+
const h = await d.json();
|
|
6030
|
+
if (h.status === "verified" && h.authorization) {
|
|
6031
|
+
this.handleAuthenticated(h);
|
|
5582
6032
|
return;
|
|
5583
6033
|
}
|
|
5584
6034
|
throw new Error("Verified auth request did not include authorization");
|
|
@@ -5645,8 +6095,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5645
6095
|
if (d.protocol === "mailto:")
|
|
5646
6096
|
return decodeURIComponent(d.pathname || d.href.replace(/^mailto:/, "").split("?")[0]) || null;
|
|
5647
6097
|
if (d.protocol === "whatsapp:" || d.protocol === "whatsapp://") {
|
|
5648
|
-
const
|
|
5649
|
-
return
|
|
6098
|
+
const h = d.searchParams.get("phone") || d.pathname.replace(/^\/+/, "");
|
|
6099
|
+
return h ? `+${h.replace(/^\+/, "")}` : null;
|
|
5650
6100
|
}
|
|
5651
6101
|
} catch {
|
|
5652
6102
|
if (a.startsWith("mailto:")) return a.replace(/^mailto:/, "").split("?")[0] || null;
|
|
@@ -5682,6 +6132,41 @@ const ve = class ve extends HTMLElement {
|
|
|
5682
6132
|
return "ή";
|
|
5683
6133
|
case "tr":
|
|
5684
6134
|
return "veya";
|
|
6135
|
+
case "ro":
|
|
6136
|
+
return "sau";
|
|
6137
|
+
case "bg":
|
|
6138
|
+
return "или";
|
|
6139
|
+
case "hu":
|
|
6140
|
+
return "vagy";
|
|
6141
|
+
case "no":
|
|
6142
|
+
return "eller";
|
|
6143
|
+
case "uk":
|
|
6144
|
+
return "або";
|
|
6145
|
+
case "bs":
|
|
6146
|
+
return "ili";
|
|
6147
|
+
case "mk":
|
|
6148
|
+
return "или";
|
|
6149
|
+
case "is":
|
|
6150
|
+
return "eða";
|
|
6151
|
+
case "ga":
|
|
6152
|
+
return "nó";
|
|
6153
|
+
case "mt":
|
|
6154
|
+
return "jew";
|
|
6155
|
+
case "ar":
|
|
6156
|
+
return "أو";
|
|
6157
|
+
case "he":
|
|
6158
|
+
return "או";
|
|
6159
|
+
case "vi":
|
|
6160
|
+
return "hoặc";
|
|
6161
|
+
case "hi":
|
|
6162
|
+
return "या";
|
|
6163
|
+
case "id":
|
|
6164
|
+
case "ms":
|
|
6165
|
+
return "atau";
|
|
6166
|
+
case "bn":
|
|
6167
|
+
return "অথবা";
|
|
6168
|
+
case "th":
|
|
6169
|
+
return "หรือ";
|
|
5685
6170
|
default:
|
|
5686
6171
|
return "or";
|
|
5687
6172
|
}
|
|
@@ -5692,30 +6177,30 @@ const ve = class ve extends HTMLElement {
|
|
|
5692
6177
|
const s = this.currentConfig;
|
|
5693
6178
|
i.forEach((a, d) => {
|
|
5694
6179
|
if (d > 0 && i.length === 2) {
|
|
5695
|
-
const
|
|
5696
|
-
|
|
5697
|
-
const
|
|
5698
|
-
|
|
6180
|
+
const k = document.createElement("div");
|
|
6181
|
+
k.className = "divider", k.setAttribute("aria-hidden", "true");
|
|
6182
|
+
const W = document.createElement("span");
|
|
6183
|
+
W.textContent = this.orLabel(s.lang), k.appendChild(W), this.verifiersEl.appendChild(k);
|
|
5699
6184
|
}
|
|
5700
|
-
const
|
|
5701
|
-
|
|
6185
|
+
const h = document.createElement("div");
|
|
6186
|
+
h.className = "opt";
|
|
5702
6187
|
const m = document.createElement("a");
|
|
5703
6188
|
m.className = "chan " + this.channelClass(a), m.href = this.buildLink(a, s.lang), m.target = "_blank", m.rel = "noopener noreferrer", m.addEventListener("click", () => {
|
|
5704
6189
|
this.footerWaitTimer !== null && (clearTimeout(this.footerWaitTimer), this.footerWaitTimer = null), this.showFooterWaitingState();
|
|
5705
6190
|
});
|
|
5706
6191
|
const v = this.iconForUrl(a);
|
|
5707
6192
|
if (v) {
|
|
5708
|
-
const
|
|
5709
|
-
|
|
6193
|
+
const k = document.createElement("span");
|
|
6194
|
+
k.className = "icon", k.setAttribute("aria-hidden", "true"), k.innerHTML = v, m.appendChild(k);
|
|
5710
6195
|
}
|
|
5711
|
-
const
|
|
5712
|
-
|
|
6196
|
+
const b = document.createElement("span");
|
|
6197
|
+
b.className = "label", b.textContent = this.channelLabel(a, s.lang), m.appendChild(b), h.appendChild(m);
|
|
5713
6198
|
const E = this.destinationText(a, s.lang);
|
|
5714
6199
|
if (E) {
|
|
5715
|
-
const
|
|
5716
|
-
|
|
6200
|
+
const k = document.createElement("a");
|
|
6201
|
+
k.className = "dest", k.href = m.href, k.target = "_blank", k.rel = "noopener noreferrer", k.textContent = E, h.appendChild(k);
|
|
5717
6202
|
}
|
|
5718
|
-
this.verifiersEl.appendChild(
|
|
6203
|
+
this.verifiersEl.appendChild(h);
|
|
5719
6204
|
});
|
|
5720
6205
|
}
|
|
5721
6206
|
channelClass(i) {
|
|
@@ -5734,8 +6219,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5734
6219
|
if (d === "email") return a.labels.email;
|
|
5735
6220
|
if (d === "whatsapp") return a.labels.whatsapp;
|
|
5736
6221
|
try {
|
|
5737
|
-
const
|
|
5738
|
-
return
|
|
6222
|
+
const h = new URL(i, window.location.origin);
|
|
6223
|
+
return h.protocol.startsWith("http") ? h.hostname : h.protocol.replace(":", "");
|
|
5739
6224
|
} catch {
|
|
5740
6225
|
return i;
|
|
5741
6226
|
}
|
|
@@ -5743,17 +6228,17 @@ const ve = class ve extends HTMLElement {
|
|
|
5743
6228
|
destinationText(i, s) {
|
|
5744
6229
|
const d = F(s).ui.toPrefix ?? "to";
|
|
5745
6230
|
try {
|
|
5746
|
-
const
|
|
5747
|
-
if (
|
|
5748
|
-
const m = decodeURIComponent(
|
|
6231
|
+
const h = new URL(i, window.location.origin);
|
|
6232
|
+
if (h.protocol === "mailto:") {
|
|
6233
|
+
const m = decodeURIComponent(h.pathname || h.href.replace(/^mailto:/, "").split("?")[0]);
|
|
5749
6234
|
return m ? `${d} ${m}` : null;
|
|
5750
6235
|
}
|
|
5751
|
-
if (
|
|
5752
|
-
const m =
|
|
6236
|
+
if (h.protocol === "whatsapp:" || h.protocol === "whatsapp://") {
|
|
6237
|
+
const m = h.searchParams.get("phone") || h.pathname.replace(/^\/+/, "");
|
|
5753
6238
|
return m ? `${d} +${m.replace(/^\+/, "")}` : null;
|
|
5754
6239
|
}
|
|
5755
|
-
if (
|
|
5756
|
-
const m =
|
|
6240
|
+
if (h.protocol.startsWith("http") && (h.hostname === "wa.me" || h.hostname === "api.whatsapp.com")) {
|
|
6241
|
+
const m = h.pathname.replace(/^\/+/, "").replace(/[^0-9]/g, "");
|
|
5757
6242
|
return m ? `${d} +${m}` : null;
|
|
5758
6243
|
}
|
|
5759
6244
|
} catch {
|
|
@@ -5763,10 +6248,10 @@ const ve = class ve extends HTMLElement {
|
|
|
5763
6248
|
iconForUrl(i) {
|
|
5764
6249
|
try {
|
|
5765
6250
|
const s = new URL(i, window.location.origin);
|
|
5766
|
-
if (s.protocol === "mailto:") return
|
|
6251
|
+
if (s.protocol === "mailto:") return yt;
|
|
5767
6252
|
if (s.protocol === "whatsapp:" || s.protocol === "whatsapp://") return wt;
|
|
5768
6253
|
} catch {
|
|
5769
|
-
if (i.startsWith("mailto:")) return
|
|
6254
|
+
if (i.startsWith("mailto:")) return yt;
|
|
5770
6255
|
if (i.startsWith("whatsapp:") || i.startsWith("whatsapp://")) return wt;
|
|
5771
6256
|
}
|
|
5772
6257
|
return null;
|
|
@@ -5781,19 +6266,19 @@ const ve = class ve extends HTMLElement {
|
|
|
5781
6266
|
}
|
|
5782
6267
|
}
|
|
5783
6268
|
buildLink(i, s) {
|
|
5784
|
-
const a = this.lastCode, d = F(s),
|
|
6269
|
+
const a = this.lastCode, d = F(s), h = window.location.host;
|
|
5785
6270
|
if (!a) return i;
|
|
5786
6271
|
if (i.startsWith("mailto:")) {
|
|
5787
|
-
const [m, v = ""] = i.split("?"),
|
|
5788
|
-
|
|
5789
|
-
const
|
|
5790
|
-
return `${m}?${
|
|
6272
|
+
const [m, v = ""] = i.split("?"), b = new URLSearchParams(v), E = this.applyTemplate(d.templates.emailSubject, h, a), k = this.applyTemplate(d.templates.emailBody, h, a);
|
|
6273
|
+
b.set("subject", E), b.set("body", k);
|
|
6274
|
+
const W = this.toQuery(b);
|
|
6275
|
+
return `${m}?${W}`;
|
|
5791
6276
|
}
|
|
5792
6277
|
if (i.startsWith("whatsapp:") || i.startsWith("whatsapp://")) {
|
|
5793
|
-
const [m, v = ""] = i.split("?"),
|
|
5794
|
-
|
|
5795
|
-
const
|
|
5796
|
-
return `${m}?${
|
|
6278
|
+
const [m, v = ""] = i.split("?"), b = new URLSearchParams(v), E = this.applyTemplate(d.templates.whatsappText, h, a);
|
|
6279
|
+
b.set("text", E);
|
|
6280
|
+
const k = this.toQuery(b);
|
|
6281
|
+
return `${m}?${k}`;
|
|
5797
6282
|
}
|
|
5798
6283
|
return i;
|
|
5799
6284
|
}
|
|
@@ -5806,8 +6291,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5806
6291
|
toQuery(i) {
|
|
5807
6292
|
const s = [];
|
|
5808
6293
|
return i.forEach((a, d) => {
|
|
5809
|
-
const
|
|
5810
|
-
s.push(`${
|
|
6294
|
+
const h = encodeURIComponent(d), m = encodeURIComponent(a);
|
|
6295
|
+
s.push(`${h}=${m}`);
|
|
5811
6296
|
}), s.join("&");
|
|
5812
6297
|
}
|
|
5813
6298
|
joinUrl(i, s) {
|
|
@@ -5815,8 +6300,8 @@ const ve = class ve extends HTMLElement {
|
|
|
5815
6300
|
}
|
|
5816
6301
|
};
|
|
5817
6302
|
ve.tailwindCssText = null, ve.tailwindLoading = null;
|
|
5818
|
-
let
|
|
5819
|
-
customElements.get("sendity-auth") || customElements.define("sendity-auth",
|
|
6303
|
+
let We = ve;
|
|
6304
|
+
customElements.get("sendity-auth") || customElements.define("sendity-auth", We);
|
|
5820
6305
|
export {
|
|
5821
|
-
|
|
6306
|
+
We as Sendity
|
|
5822
6307
|
};
|