@ethora/chat-component 25.4.2 → 25.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +582 -575
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -27,7 +27,7 @@ function hm(n) {
|
|
|
27
27
|
});
|
|
28
28
|
}), i;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var gs = {}, ms = {}, on = {}, io = class extends Error {
|
|
31
31
|
constructor(e) {
|
|
32
32
|
super(e), this.name = "TimeoutError";
|
|
33
33
|
}
|
|
@@ -70,10 +70,10 @@ var wm = function(e, i, t = "error", r) {
|
|
|
70
70
|
});
|
|
71
71
|
}, to = { exports: {} }, Ti = typeof Reflect == "object" ? Reflect : null, uf = Ti && typeof Ti.apply == "function" ? Ti.apply : function(e, i, t) {
|
|
72
72
|
return Function.prototype.apply.call(e, i, t);
|
|
73
|
-
},
|
|
74
|
-
Ti && typeof Ti.ownKeys == "function" ?
|
|
73
|
+
}, vr;
|
|
74
|
+
Ti && typeof Ti.ownKeys == "function" ? vr = Ti.ownKeys : Object.getOwnPropertySymbols ? vr = function(e) {
|
|
75
75
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
76
|
-
} :
|
|
76
|
+
} : vr = function(e) {
|
|
77
77
|
return Object.getOwnPropertyNames(e);
|
|
78
78
|
};
|
|
79
79
|
function bm(n) {
|
|
@@ -92,7 +92,7 @@ ve.prototype._events = void 0;
|
|
|
92
92
|
ve.prototype._eventsCount = 0;
|
|
93
93
|
ve.prototype._maxListeners = void 0;
|
|
94
94
|
var hf = 10;
|
|
95
|
-
function
|
|
95
|
+
function ps(n) {
|
|
96
96
|
if (typeof n != "function")
|
|
97
97
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof n);
|
|
98
98
|
}
|
|
@@ -147,7 +147,7 @@ ve.prototype.emit = function(e) {
|
|
|
147
147
|
};
|
|
148
148
|
function Bl(n, e, i, t) {
|
|
149
149
|
var r, s, a;
|
|
150
|
-
if (
|
|
150
|
+
if (ps(i), s = n._events, s === void 0 ? (s = n._events = /* @__PURE__ */ Object.create(null), n._eventsCount = 0) : (s.newListener !== void 0 && (n.emit(
|
|
151
151
|
"newListener",
|
|
152
152
|
e,
|
|
153
153
|
i.listener ? i.listener : i
|
|
@@ -176,14 +176,14 @@ function Dl(n, e, i) {
|
|
|
176
176
|
return r.listener = i, t.wrapFn = r, r;
|
|
177
177
|
}
|
|
178
178
|
ve.prototype.once = function(e, i) {
|
|
179
|
-
return
|
|
179
|
+
return ps(i), this.on(e, Dl(this, e, i)), this;
|
|
180
180
|
};
|
|
181
181
|
ve.prototype.prependOnceListener = function(e, i) {
|
|
182
|
-
return
|
|
182
|
+
return ps(i), this.prependListener(e, Dl(this, e, i)), this;
|
|
183
183
|
};
|
|
184
184
|
ve.prototype.removeListener = function(e, i) {
|
|
185
185
|
var t, r, s, a, A;
|
|
186
|
-
if (
|
|
186
|
+
if (ps(i), r = this._events, r === void 0)
|
|
187
187
|
return this;
|
|
188
188
|
if (t = r[e], t === void 0)
|
|
189
189
|
return this;
|
|
@@ -250,7 +250,7 @@ function Nl(n) {
|
|
|
250
250
|
return 0;
|
|
251
251
|
}
|
|
252
252
|
ve.prototype.eventNames = function() {
|
|
253
|
-
return this._eventsCount > 0 ?
|
|
253
|
+
return this._eventsCount > 0 ? vr(this._events) : [];
|
|
254
254
|
};
|
|
255
255
|
function Sl(n, e) {
|
|
256
256
|
for (var i = new Array(e), t = 0; t < e; ++t)
|
|
@@ -291,29 +291,29 @@ function Pl(n, e, i, t) {
|
|
|
291
291
|
else
|
|
292
292
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof n);
|
|
293
293
|
}
|
|
294
|
-
var
|
|
294
|
+
var vs = to.exports, Bm = function() {
|
|
295
295
|
this.promise = new Promise((e, i) => {
|
|
296
296
|
this.resolve = e, this.reject = i;
|
|
297
297
|
});
|
|
298
298
|
};
|
|
299
|
-
const Dm = pm, Im = Cl, Nm = io, Sm = wm, Pm =
|
|
299
|
+
const Dm = pm, Im = Cl, Nm = io, Sm = wm, Pm = vs, Om = Bm;
|
|
300
300
|
on.EventEmitter = Pm;
|
|
301
301
|
on.timeout = Dm;
|
|
302
302
|
on.delay = Im;
|
|
303
303
|
on.TimeoutError = Nm;
|
|
304
304
|
on.promise = Sm;
|
|
305
305
|
on.Deferred = Om;
|
|
306
|
-
var Qn = { exports: {} },
|
|
307
|
-
|
|
306
|
+
var Qn = { exports: {} }, Ot = {};
|
|
307
|
+
Ot.detect = function(e) {
|
|
308
308
|
return !(!e || e.replace(/\\20/g, "").replace(/\\22/g, "").replace(/\\26/g, "").replace(/\\27/g, "").replace(/\\2f/g, "").replace(/\\3a/g, "").replace(/\\3c/g, "").replace(/\\3e/g, "").replace(/\\40/g, "").replace(/\\5c/g, "").search(/[ "&'/:<>@\\]/g) === -1);
|
|
309
309
|
};
|
|
310
|
-
|
|
310
|
+
Ot.escape = function(e) {
|
|
311
311
|
return e === null ? null : e.replace(/^\s+|\s+$/g, "").replace(/\\/g, "\\5c").replace(/ /g, "\\20").replace(/"/g, "\\22").replace(/&/g, "\\26").replace(/'/g, "\\27").replace(/\//g, "\\2f").replace(/:/g, "\\3a").replace(/</g, "\\3c").replace(/>/g, "\\3e").replace(/@/g, "\\40");
|
|
312
312
|
};
|
|
313
|
-
|
|
313
|
+
Ot.unescape = function(e) {
|
|
314
314
|
return e === null ? null : e.replace(/\\20/g, " ").replace(/\\22/g, '"').replace(/\\26/g, "&").replace(/\\27/g, "'").replace(/\\2f/g, "/").replace(/\\3a/g, ":").replace(/\\3c/g, "<").replace(/\\3e/g, ">").replace(/\\40/g, "@").replace(/\\5c/g, "\\");
|
|
315
315
|
};
|
|
316
|
-
const $s =
|
|
316
|
+
const $s = Ot;
|
|
317
317
|
let gn = class Ol {
|
|
318
318
|
constructor(e, i, t) {
|
|
319
319
|
if (typeof i != "string" || !i)
|
|
@@ -389,7 +389,7 @@ var Tm = function(e) {
|
|
|
389
389
|
const s = e.indexOf("@");
|
|
390
390
|
return s !== -1 && (i = e.slice(0, s), e = e.slice(s + 1)), new Mm(i, e, t);
|
|
391
391
|
};
|
|
392
|
-
const Tl = Ml, ro =
|
|
392
|
+
const Tl = Ml, ro = Ot, jl = Tm;
|
|
393
393
|
function Ql(...n) {
|
|
394
394
|
return !n[1] && !n[2] ? jl(...n) : new Tl(...n);
|
|
395
395
|
}
|
|
@@ -403,7 +403,7 @@ Qn.exports.detectEscape = ro.detect;
|
|
|
403
403
|
Qn.exports.escapeLocal = ro.escape;
|
|
404
404
|
Qn.exports.unescapeLocal = ro.unescape;
|
|
405
405
|
Qn.exports.parse = jl;
|
|
406
|
-
var
|
|
406
|
+
var ws = Qn.exports, Fl = { exports: {} }, ai = {};
|
|
407
407
|
Object.defineProperty(ai, "__esModule", { value: !0 });
|
|
408
408
|
const jm = {
|
|
409
409
|
"&": "&",
|
|
@@ -661,7 +661,7 @@ function Ym(n, e, ...i) {
|
|
|
661
661
|
Wl(t, r);
|
|
662
662
|
return t;
|
|
663
663
|
}
|
|
664
|
-
var Hm = Ym, Gm =
|
|
664
|
+
var Hm = Ym, Gm = vs, mf = ai;
|
|
665
665
|
const di = 0, na = 1, pf = 2, vf = 3, ia = 4, wf = 5, bf = 6, yf = 7, ta = 8, kf = 9, zm = 10;
|
|
666
666
|
class qm extends Gm.EventEmitter {
|
|
667
667
|
constructor() {
|
|
@@ -762,7 +762,7 @@ var Vm = qm, Yl = class extends Error {
|
|
|
762
762
|
super(...e), this.name = "XMLError";
|
|
763
763
|
}
|
|
764
764
|
};
|
|
765
|
-
const Um = Vm, Xm = so, Jm =
|
|
765
|
+
const Um = Vm, Xm = so, Jm = vs, _a = Yl;
|
|
766
766
|
let Hl = class extends Jm {
|
|
767
767
|
constructor() {
|
|
768
768
|
super();
|
|
@@ -867,8 +867,8 @@ var $m = _m, zl = { exports: {} };
|
|
|
867
867
|
Object.assign(n.exports, { parseURI: e, parseHost: i, parseService: t });
|
|
868
868
|
})(zl);
|
|
869
869
|
var ep = zl.exports;
|
|
870
|
-
const { EventEmitter: np, promise: ci } = on, ip =
|
|
871
|
-
let
|
|
870
|
+
const { EventEmitter: np, promise: ci } = on, ip = ws, ra = bn, tp = $m, { parseHost: rp, parseService: sp } = ep, ap = "urn:ietf:params:xml:ns:xmpp-streams", Ap = "http://etherx.jabber.org/streams";
|
|
871
|
+
let bs = class extends np {
|
|
872
872
|
constructor(e = {}) {
|
|
873
873
|
super(), this.jid = null, this.timeout = 2e3, this.options = e, this.socketListeners = /* @__PURE__ */ Object.create(null), this.parserListeners = /* @__PURE__ */ Object.create(null), this.status = "offline", this.socket = null, this.parser = null, this.root = null;
|
|
874
874
|
}
|
|
@@ -1086,10 +1086,10 @@ let ys = class extends np {
|
|
|
1086
1086
|
socketParameters() {
|
|
1087
1087
|
}
|
|
1088
1088
|
};
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
var ql =
|
|
1089
|
+
bs.prototype.NS = "";
|
|
1090
|
+
bs.prototype.Socket = null;
|
|
1091
|
+
bs.prototype.Parser = null;
|
|
1092
|
+
var ql = bs;
|
|
1093
1093
|
const op = ql;
|
|
1094
1094
|
let Vl = class extends op {
|
|
1095
1095
|
constructor(e) {
|
|
@@ -1134,10 +1134,10 @@ let Vl = class extends op {
|
|
|
1134
1134
|
};
|
|
1135
1135
|
Vl.prototype.NS = "jabber:client";
|
|
1136
1136
|
var fp = Vl;
|
|
1137
|
-
const dp = fp, cp = bn, lp =
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1137
|
+
const dp = fp, cp = bn, lp = ws;
|
|
1138
|
+
ms.Client = dp;
|
|
1139
|
+
ms.xml = cp;
|
|
1140
|
+
ms.jid = lp;
|
|
1141
1141
|
var up = function(e) {
|
|
1142
1142
|
return (e.split("://")[1] || e).split(":")[0].split("/")[0];
|
|
1143
1143
|
};
|
|
@@ -1180,7 +1180,7 @@ var mp = function({ entity: e }) {
|
|
|
1180
1180
|
const pp = {}, vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1181
1181
|
__proto__: null,
|
|
1182
1182
|
default: pp
|
|
1183
|
-
}, Symbol.toStringTag, { value: "Module" })), Hi = /* @__PURE__ */ hm(vp), Ul = Hi, Cf = window.WebSocket || Ul, wp =
|
|
1183
|
+
}, Symbol.toStringTag, { value: "Module" })), Hi = /* @__PURE__ */ hm(vp), Ul = Hi, Cf = window.WebSocket || Ul, wp = vs, sa = "ECONNERROR";
|
|
1184
1184
|
let bp = class extends wp {
|
|
1185
1185
|
constructor() {
|
|
1186
1186
|
super(), this.listeners = /* @__PURE__ */ Object.create(null);
|
|
@@ -1236,7 +1236,7 @@ var Ep = class extends kp {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
};
|
|
1238
1238
|
const Bp = yp, Dp = ql, Ip = bn, Np = Ep, xf = "urn:ietf:params:xml:ns:xmpp-framing";
|
|
1239
|
-
let
|
|
1239
|
+
let ys = class extends Dp {
|
|
1240
1240
|
send(e, ...i) {
|
|
1241
1241
|
return !e.attrs.xmlns && super.isStanza(e) && (e.attrs.xmlns = "jabber:client"), super.send(e, ...i);
|
|
1242
1242
|
}
|
|
@@ -1259,10 +1259,10 @@ let ks = class extends Dp {
|
|
|
1259
1259
|
return /^wss?:\/\//.test(e) ? e : void 0;
|
|
1260
1260
|
}
|
|
1261
1261
|
};
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
var Sp =
|
|
1262
|
+
ys.prototype.Socket = Bp;
|
|
1263
|
+
ys.prototype.NS = "jabber:client";
|
|
1264
|
+
ys.prototype.Parser = Np;
|
|
1265
|
+
var Sp = ys;
|
|
1266
1266
|
const Pp = Sp;
|
|
1267
1267
|
var Op = function({ entity: e }) {
|
|
1268
1268
|
e.transports.push(Pp);
|
|
@@ -1294,7 +1294,7 @@ var Xl = class {
|
|
|
1294
1294
|
this.name = t, this.id = a || "", t === "message" ? this.type = s || "normal" : t === "presence" ? this.type = s || "available" : this.type = s || "", this.from = null, this.to = null, this.local = "", this.domain = "", this.resource = "";
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
1297
|
-
const jp = Xl, Ef =
|
|
1297
|
+
const jp = Xl, Ef = ws;
|
|
1298
1298
|
var Qp = class extends jp {
|
|
1299
1299
|
constructor(e, i) {
|
|
1300
1300
|
super(e, i);
|
|
@@ -1302,7 +1302,7 @@ var Qp = class extends jp {
|
|
|
1302
1302
|
s && (this.to = new Ef(s)), a && (this.from = new Ef(a), this.local = this.from.local, this.domain = this.from.domain, this.resource = this.from.resource);
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
|
-
const Fp = Xl, Bf =
|
|
1305
|
+
const Fp = Xl, Bf = ws;
|
|
1306
1306
|
var Lp = class extends Fp {
|
|
1307
1307
|
constructor(e, i) {
|
|
1308
1308
|
super(e, i);
|
|
@@ -1476,7 +1476,7 @@ var dv = function({ middleware: e, entity: i }) {
|
|
|
1476
1476
|
e.use(Nf("set", t, r, s));
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
|
-
},
|
|
1479
|
+
}, ks = { exports: {} }, Kl = {};
|
|
1480
1480
|
const cv = Gl;
|
|
1481
1481
|
var lv = function(e) {
|
|
1482
1482
|
const i = new cv();
|
|
@@ -1491,12 +1491,12 @@ var lv = function(e) {
|
|
|
1491
1491
|
throw r;
|
|
1492
1492
|
return t;
|
|
1493
1493
|
}, Zl = {};
|
|
1494
|
-
function
|
|
1494
|
+
function Xt(n) {
|
|
1495
1495
|
return n.startsWith("https") || n.startsWith("wss");
|
|
1496
1496
|
}
|
|
1497
1497
|
Zl.compare = function(e, i) {
|
|
1498
1498
|
let t;
|
|
1499
|
-
if (
|
|
1499
|
+
if (Xt(e.uri) && !Xt(i.uri) ? t = -1 : !Xt(e.uri) && Xt(i.uri) ? t = 1 : t = 0, t !== 0)
|
|
1500
1500
|
return t;
|
|
1501
1501
|
let r;
|
|
1502
1502
|
return e.method === i.method ? r = 0 : e.method === "websocket" ? r = -1 : i.method === "websocket" ? r = 1 : e.method === "xbosh" ? r = -1 : i.method === "xbosh" ? r = 1 : e.method === "httppoll" ? r = -1 : i.method === "httppoll" ? r = 1 : r = 0, r !== 0 ? r : 0;
|
|
@@ -1517,16 +1517,16 @@ function mv(n) {
|
|
|
1517
1517
|
})).sort(gv)).catch(() => []);
|
|
1518
1518
|
}
|
|
1519
1519
|
Kl.resolve = mv;
|
|
1520
|
-
const
|
|
1521
|
-
|
|
1520
|
+
const Rr = Hi, _l = Kl;
|
|
1521
|
+
ks.exports = function(...e) {
|
|
1522
1522
|
return Promise.all([
|
|
1523
|
-
|
|
1523
|
+
Rr.resolve ? Rr.resolve(...e) : Promise.resolve([]),
|
|
1524
1524
|
_l.resolve(...e)
|
|
1525
1525
|
]).then(([i, t]) => [...i, ...t]);
|
|
1526
1526
|
};
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
var pv =
|
|
1527
|
+
Rr.resolve && (ks.exports.dns = Rr);
|
|
1528
|
+
ks.exports.http = _l;
|
|
1529
|
+
var pv = ks.exports;
|
|
1530
1530
|
const vv = pv, { promise: wv } = on;
|
|
1531
1531
|
async function bv(n) {
|
|
1532
1532
|
const e = await vv(n, {
|
|
@@ -1591,7 +1591,7 @@ let xv = class extends Cv {
|
|
|
1591
1591
|
super(...e), this.name = "SASLError";
|
|
1592
1592
|
}
|
|
1593
1593
|
};
|
|
1594
|
-
var Ev = xv, eA = { exports: {} },
|
|
1594
|
+
var Ev = xv, eA = { exports: {} }, Jt = { exports: {} }, Sf;
|
|
1595
1595
|
function Bv() {
|
|
1596
1596
|
return Sf || (Sf = 1, function(n, e) {
|
|
1597
1597
|
(function(i, t) {
|
|
@@ -1612,7 +1612,7 @@ function Bv() {
|
|
|
1612
1612
|
return null;
|
|
1613
1613
|
}, t.exports = r;
|
|
1614
1614
|
});
|
|
1615
|
-
}(
|
|
1615
|
+
}(Jt, Jt.exports)), Jt.exports;
|
|
1616
1616
|
}
|
|
1617
1617
|
(function(n, e) {
|
|
1618
1618
|
(function(i, t) {
|
|
@@ -1772,7 +1772,7 @@ var Wv = function({
|
|
|
1772
1772
|
}
|
|
1773
1773
|
s.inbound = 0;
|
|
1774
1774
|
}), s;
|
|
1775
|
-
}, nA = { exports: {} },
|
|
1775
|
+
}, nA = { exports: {} }, Kt = { exports: {} }, Ff;
|
|
1776
1776
|
function Yv() {
|
|
1777
1777
|
return Ff || (Ff = 1, function(n, e) {
|
|
1778
1778
|
(function(i, t) {
|
|
@@ -1785,7 +1785,7 @@ function Yv() {
|
|
|
1785
1785
|
}, r.prototype.challenge = function(s) {
|
|
1786
1786
|
}, t.exports = r;
|
|
1787
1787
|
});
|
|
1788
|
-
}(
|
|
1788
|
+
}(Kt, Kt.exports)), Kt.exports;
|
|
1789
1789
|
}
|
|
1790
1790
|
(function(n, e) {
|
|
1791
1791
|
(function(i, t) {
|
|
@@ -1802,7 +1802,7 @@ var Hv = nA.exports;
|
|
|
1802
1802
|
const Gv = Hv;
|
|
1803
1803
|
var zv = function(e) {
|
|
1804
1804
|
e.use(Gv);
|
|
1805
|
-
}, iA = { exports: {} },
|
|
1805
|
+
}, iA = { exports: {} }, Zt = { exports: {} }, Lf;
|
|
1806
1806
|
function qv() {
|
|
1807
1807
|
return Lf || (Lf = 1, function(n, e) {
|
|
1808
1808
|
(function(i, t) {
|
|
@@ -1817,7 +1817,7 @@ function qv() {
|
|
|
1817
1817
|
return this;
|
|
1818
1818
|
}, t.exports = r;
|
|
1819
1819
|
});
|
|
1820
|
-
}(
|
|
1820
|
+
}(Zt, Zt.exports)), Zt.exports;
|
|
1821
1821
|
}
|
|
1822
1822
|
(function(n, e) {
|
|
1823
1823
|
(function(i, t) {
|
|
@@ -1835,7 +1835,7 @@ const Uv = Vv;
|
|
|
1835
1835
|
var Xv = function(e) {
|
|
1836
1836
|
e.use(Uv);
|
|
1837
1837
|
};
|
|
1838
|
-
const { xml: Jv, jid: Kv, Client: Zv } =
|
|
1838
|
+
const { xml: Jv, jid: Kv, Client: Zv } = ms, _v = up, $v = mp, e0 = Op, n0 = Gp, i0 = Vp, t0 = rv, r0 = dv, s0 = kv, a0 = Ov, A0 = jv, o0 = Fv, f0 = Wv, d0 = zv, c0 = Xv;
|
|
1839
1839
|
function l0(n = {}) {
|
|
1840
1840
|
const { resource: e, credentials: i, username: t, password: r, ...s } = n, { domain: a, service: A } = s;
|
|
1841
1841
|
!a && A && (s.domain = _v(A));
|
|
@@ -1868,9 +1868,9 @@ function l0(n = {}) {
|
|
|
1868
1868
|
mechanisms: C
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
|
-
var q =
|
|
1872
|
-
|
|
1873
|
-
|
|
1871
|
+
var q = gs.xml = Jv;
|
|
1872
|
+
gs.jid = Kv;
|
|
1873
|
+
gs.client = l0;
|
|
1874
1874
|
function u0(n, e, i) {
|
|
1875
1875
|
var a, A;
|
|
1876
1876
|
const t = `send-media-message:${Date.now().toString()}`, r = {
|
|
@@ -2725,7 +2725,7 @@ var O0 = typeof Symbol == "function" && Symbol.observable || "@@observable", Wf
|
|
|
2725
2725
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ oa()}`,
|
|
2726
2726
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${oa()}`
|
|
2727
2727
|
}, vi = M0;
|
|
2728
|
-
function
|
|
2728
|
+
function Mt(n) {
|
|
2729
2729
|
if (typeof n != "object" || n === null)
|
|
2730
2730
|
return !1;
|
|
2731
2731
|
let e = n;
|
|
@@ -2816,7 +2816,7 @@ function lo(n, e, i) {
|
|
|
2816
2816
|
};
|
|
2817
2817
|
}
|
|
2818
2818
|
function l(v) {
|
|
2819
|
-
if (!
|
|
2819
|
+
if (!Mt(v))
|
|
2820
2820
|
throw new Error(process.env.NODE_ENV === "production" ? Se(7) : `Actions must be plain objects. Instead, the actual type was: '${qn(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
2821
2821
|
if (typeof v.type > "u")
|
|
2822
2822
|
throw new Error(process.env.NODE_ENV === "production" ? Se(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
@@ -2888,7 +2888,7 @@ function L0(n, e, i, t) {
|
|
|
2888
2888
|
const r = Object.keys(e), s = i && i.type === vi.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
2889
2889
|
if (r.length === 0)
|
|
2890
2890
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
2891
|
-
if (!
|
|
2891
|
+
if (!Mt(n))
|
|
2892
2892
|
return `The ${s} has unexpected type of "${qn(n)}". Expected argument to be an object with the following keys: "${r.join('", "')}"`;
|
|
2893
2893
|
const a = Object.keys(n).filter((A) => !e.hasOwnProperty(A) && !t[A]);
|
|
2894
2894
|
if (a.forEach((A) => {
|
|
@@ -2944,7 +2944,7 @@ function ou(n) {
|
|
|
2944
2944
|
return d = d || t.length !== Object.keys(A).length, d ? f : A;
|
|
2945
2945
|
};
|
|
2946
2946
|
}
|
|
2947
|
-
function
|
|
2947
|
+
function Wr(...n) {
|
|
2948
2948
|
return n.length === 0 ? (e) => e : n.length === 1 ? n[0] : n.reduce((e, i) => (...t) => e(i(...t)));
|
|
2949
2949
|
}
|
|
2950
2950
|
function W0(...n) {
|
|
@@ -2957,14 +2957,14 @@ function W0(...n) {
|
|
|
2957
2957
|
getState: r.getState,
|
|
2958
2958
|
dispatch: (o, ...d) => s(o, ...d)
|
|
2959
2959
|
}, A = n.map((o) => o(a));
|
|
2960
|
-
return s =
|
|
2960
|
+
return s = Wr(...A)(r.dispatch), {
|
|
2961
2961
|
...r,
|
|
2962
2962
|
dispatch: s
|
|
2963
2963
|
};
|
|
2964
2964
|
};
|
|
2965
2965
|
}
|
|
2966
2966
|
function fu(n) {
|
|
2967
|
-
return
|
|
2967
|
+
return Mt(n) && "type" in n && typeof n.type == "string";
|
|
2968
2968
|
}
|
|
2969
2969
|
var du = Symbol.for("immer-nothing"), Hf = Symbol.for("immer-draftable"), qe = Symbol.for("immer-state"), Y0 = process.env.NODE_ENV !== "production" ? [
|
|
2970
2970
|
// All error codes, starting by 0:
|
|
@@ -3012,7 +3012,7 @@ function ii(n) {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
function Mn(n) {
|
|
3014
3014
|
var e;
|
|
3015
|
-
return n ? cu(n) || Array.isArray(n) || !!n[Hf] || !!((e = n.constructor) != null && e[Hf]) ||
|
|
3015
|
+
return n ? cu(n) || Array.isArray(n) || !!n[Hf] || !!((e = n.constructor) != null && e[Hf]) || xs(n) || Es(n) : !1;
|
|
3016
3016
|
}
|
|
3017
3017
|
var H0 = Object.prototype.constructor.toString();
|
|
3018
3018
|
function cu(n) {
|
|
@@ -3024,38 +3024,38 @@ function cu(n) {
|
|
|
3024
3024
|
const i = Object.hasOwnProperty.call(e, "constructor") && e.constructor;
|
|
3025
3025
|
return i === Object ? !0 : typeof i == "function" && Function.toString.call(i) === H0;
|
|
3026
3026
|
}
|
|
3027
|
-
function
|
|
3028
|
-
|
|
3027
|
+
function Yr(n, e) {
|
|
3028
|
+
Cs(n) === 0 ? Reflect.ownKeys(n).forEach((i) => {
|
|
3029
3029
|
e(i, n[i], n);
|
|
3030
3030
|
}) : n.forEach((i, t) => e(t, i, n));
|
|
3031
3031
|
}
|
|
3032
|
-
function
|
|
3032
|
+
function Cs(n) {
|
|
3033
3033
|
const e = n[qe];
|
|
3034
|
-
return e ? e.type_ : Array.isArray(n) ? 1 :
|
|
3034
|
+
return e ? e.type_ : Array.isArray(n) ? 1 : xs(n) ? 2 : Es(n) ? 3 : 0;
|
|
3035
3035
|
}
|
|
3036
3036
|
function tA(n, e) {
|
|
3037
|
-
return
|
|
3037
|
+
return Cs(n) === 2 ? n.has(e) : Object.prototype.hasOwnProperty.call(n, e);
|
|
3038
3038
|
}
|
|
3039
3039
|
function lu(n, e, i) {
|
|
3040
|
-
const t =
|
|
3040
|
+
const t = Cs(n);
|
|
3041
3041
|
t === 2 ? n.set(e, i) : t === 3 ? n.add(i) : n[e] = i;
|
|
3042
3042
|
}
|
|
3043
3043
|
function G0(n, e) {
|
|
3044
3044
|
return n === e ? n !== 0 || 1 / n === 1 / e : n !== n && e !== e;
|
|
3045
3045
|
}
|
|
3046
|
-
function
|
|
3046
|
+
function xs(n) {
|
|
3047
3047
|
return n instanceof Map;
|
|
3048
3048
|
}
|
|
3049
|
-
function
|
|
3049
|
+
function Es(n) {
|
|
3050
3050
|
return n instanceof Set;
|
|
3051
3051
|
}
|
|
3052
3052
|
function ui(n) {
|
|
3053
3053
|
return n.copy_ || n.base_;
|
|
3054
3054
|
}
|
|
3055
3055
|
function rA(n, e) {
|
|
3056
|
-
if (
|
|
3056
|
+
if (xs(n))
|
|
3057
3057
|
return new Map(n);
|
|
3058
|
-
if (
|
|
3058
|
+
if (Es(n))
|
|
3059
3059
|
return new Set(n);
|
|
3060
3060
|
if (Array.isArray(n))
|
|
3061
3061
|
return Array.prototype.slice.call(n);
|
|
@@ -3084,12 +3084,12 @@ function rA(n, e) {
|
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
3086
|
function uo(n, e = !1) {
|
|
3087
|
-
return
|
|
3087
|
+
return Bs(n) || ii(n) || !Mn(n) || (Cs(n) > 1 && (n.set = n.add = n.clear = n.delete = z0), Object.freeze(n), e && Object.entries(n).forEach(([i, t]) => uo(t, !0))), n;
|
|
3088
3088
|
}
|
|
3089
3089
|
function z0() {
|
|
3090
3090
|
Le(2);
|
|
3091
3091
|
}
|
|
3092
|
-
function
|
|
3092
|
+
function Bs(n) {
|
|
3093
3093
|
return Object.isFrozen(n);
|
|
3094
3094
|
}
|
|
3095
3095
|
var q0 = {};
|
|
@@ -3131,34 +3131,34 @@ function U0(n) {
|
|
|
3131
3131
|
function qf(n, e) {
|
|
3132
3132
|
e.unfinalizedDrafts_ = e.drafts_.length;
|
|
3133
3133
|
const i = e.drafts_[0];
|
|
3134
|
-
return n !== void 0 && n !== i ? (i[qe].modified_ && (sA(e), Le(4)), Mn(n) && (n =
|
|
3134
|
+
return n !== void 0 && n !== i ? (i[qe].modified_ && (sA(e), Le(4)), Mn(n) && (n = Hr(e, n), e.parent_ || Gr(e, n)), e.patches_ && Ei("Patches").generateReplacementPatches_(
|
|
3135
3135
|
i[qe].base_,
|
|
3136
3136
|
n,
|
|
3137
3137
|
e.patches_,
|
|
3138
3138
|
e.inversePatches_
|
|
3139
|
-
)) : n =
|
|
3139
|
+
)) : n = Hr(e, i, []), sA(e), e.patches_ && e.patchListener_(e.patches_, e.inversePatches_), n !== du ? n : void 0;
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3142
|
-
if (
|
|
3141
|
+
function Hr(n, e, i) {
|
|
3142
|
+
if (Bs(e))
|
|
3143
3143
|
return e;
|
|
3144
3144
|
const t = e[qe];
|
|
3145
3145
|
if (!t)
|
|
3146
|
-
return
|
|
3146
|
+
return Yr(
|
|
3147
3147
|
e,
|
|
3148
3148
|
(r, s) => Vf(n, t, e, r, s, i)
|
|
3149
3149
|
), e;
|
|
3150
3150
|
if (t.scope_ !== n)
|
|
3151
3151
|
return e;
|
|
3152
3152
|
if (!t.modified_)
|
|
3153
|
-
return
|
|
3153
|
+
return Gr(n, t.base_, !0), t.base_;
|
|
3154
3154
|
if (!t.finalized_) {
|
|
3155
3155
|
t.finalized_ = !0, t.scope_.unfinalizedDrafts_--;
|
|
3156
3156
|
const r = t.copy_;
|
|
3157
3157
|
let s = r, a = !1;
|
|
3158
|
-
t.type_ === 3 && (s = new Set(r), r.clear(), a = !0),
|
|
3158
|
+
t.type_ === 3 && (s = new Set(r), r.clear(), a = !0), Yr(
|
|
3159
3159
|
s,
|
|
3160
3160
|
(A, o) => Vf(n, t, r, A, o, i, a)
|
|
3161
|
-
),
|
|
3161
|
+
), Gr(n, r, !1), i && n.patches_ && Ei("Patches").generatePatches_(
|
|
3162
3162
|
t,
|
|
3163
3163
|
i,
|
|
3164
3164
|
n.patches_,
|
|
@@ -3170,19 +3170,19 @@ function Gr(n, e, i) {
|
|
|
3170
3170
|
function Vf(n, e, i, t, r, s, a) {
|
|
3171
3171
|
if (process.env.NODE_ENV !== "production" && r === i && Le(5), ii(r)) {
|
|
3172
3172
|
const A = s && e && e.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
3173
|
-
!tA(e.assigned_, t) ? s.concat(t) : void 0, o =
|
|
3173
|
+
!tA(e.assigned_, t) ? s.concat(t) : void 0, o = Hr(n, r, A);
|
|
3174
3174
|
if (lu(i, t, o), ii(o))
|
|
3175
3175
|
n.canAutoFreeze_ = !1;
|
|
3176
3176
|
else
|
|
3177
3177
|
return;
|
|
3178
3178
|
} else a && i.add(r);
|
|
3179
|
-
if (Mn(r) && !
|
|
3179
|
+
if (Mn(r) && !Bs(r)) {
|
|
3180
3180
|
if (!n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1)
|
|
3181
3181
|
return;
|
|
3182
|
-
|
|
3182
|
+
Hr(n, r), (!e || !e.scope_.parent_) && typeof t != "symbol" && Object.prototype.propertyIsEnumerable.call(i, t) && Gr(n, r);
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
function
|
|
3185
|
+
function Gr(n, e, i = !1) {
|
|
3186
3186
|
!n.parent_ && n.immer_.autoFreeze_ && n.canAutoFreeze_ && uo(e, i);
|
|
3187
3187
|
}
|
|
3188
3188
|
function X0(n, e) {
|
|
@@ -3270,7 +3270,7 @@ var ho = {
|
|
|
3270
3270
|
Le(12);
|
|
3271
3271
|
}
|
|
3272
3272
|
}, xt = {};
|
|
3273
|
-
|
|
3273
|
+
Yr(ho, (n, e) => {
|
|
3274
3274
|
xt[n] = function() {
|
|
3275
3275
|
return arguments[0] = arguments[0][0], e.apply(this, arguments);
|
|
3276
3276
|
};
|
|
@@ -3398,14 +3398,14 @@ var K0 = class {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
};
|
|
3400
3400
|
function oA(n, e) {
|
|
3401
|
-
const i =
|
|
3401
|
+
const i = xs(n) ? Ei("MapSet").proxyMap_(n, e) : Es(n) ? Ei("MapSet").proxySet_(n, e) : X0(n, e);
|
|
3402
3402
|
return (e ? e.scope_ : uu()).drafts_.push(i), i;
|
|
3403
3403
|
}
|
|
3404
3404
|
function gu(n) {
|
|
3405
3405
|
return ii(n) || Le(10, n), mu(n);
|
|
3406
3406
|
}
|
|
3407
3407
|
function mu(n) {
|
|
3408
|
-
if (!Mn(n) ||
|
|
3408
|
+
if (!Mn(n) || Bs(n))
|
|
3409
3409
|
return n;
|
|
3410
3410
|
const e = n[qe];
|
|
3411
3411
|
let i;
|
|
@@ -3415,7 +3415,7 @@ function mu(n) {
|
|
|
3415
3415
|
e.finalized_ = !0, i = rA(n, e.scope_.immer_.useStrictShallowCopy_);
|
|
3416
3416
|
} else
|
|
3417
3417
|
i = rA(n, !0);
|
|
3418
|
-
return
|
|
3418
|
+
return Yr(i, (t, r) => {
|
|
3419
3419
|
lu(i, t, mu(r));
|
|
3420
3420
|
}), e && (e.finalized_ = !1), i;
|
|
3421
3421
|
}
|
|
@@ -3531,7 +3531,7 @@ var r2 = (n, e) => {
|
|
|
3531
3531
|
return this.value;
|
|
3532
3532
|
}
|
|
3533
3533
|
}, a2 = typeof WeakRef < "u" ? WeakRef : s2, A2 = 0, Jf = 1;
|
|
3534
|
-
function
|
|
3534
|
+
function _t() {
|
|
3535
3535
|
return {
|
|
3536
3536
|
s: A2,
|
|
3537
3537
|
v: void 0,
|
|
@@ -3540,7 +3540,7 @@ function $t() {
|
|
|
3540
3540
|
};
|
|
3541
3541
|
}
|
|
3542
3542
|
function go(n, e = {}) {
|
|
3543
|
-
let i =
|
|
3543
|
+
let i = _t();
|
|
3544
3544
|
const { resultEqualityCheck: t } = e;
|
|
3545
3545
|
let r, s = 0;
|
|
3546
3546
|
function a() {
|
|
@@ -3553,12 +3553,12 @@ function go(n, e = {}) {
|
|
|
3553
3553
|
let p = A.o;
|
|
3554
3554
|
p === null && (A.o = p = /* @__PURE__ */ new WeakMap());
|
|
3555
3555
|
const v = p.get(g);
|
|
3556
|
-
v === void 0 ? (A =
|
|
3556
|
+
v === void 0 ? (A = _t(), p.set(g, A)) : A = v;
|
|
3557
3557
|
} else {
|
|
3558
3558
|
let p = A.p;
|
|
3559
3559
|
p === null && (A.p = p = /* @__PURE__ */ new Map());
|
|
3560
3560
|
const v = p.get(g);
|
|
3561
|
-
v === void 0 ? (A =
|
|
3561
|
+
v === void 0 ? (A = _t(), p.set(g, A)) : A = v;
|
|
3562
3562
|
}
|
|
3563
3563
|
}
|
|
3564
3564
|
const d = A;
|
|
@@ -3572,7 +3572,7 @@ function go(n, e = {}) {
|
|
|
3572
3572
|
return d.s = Jf, d.v = f, f;
|
|
3573
3573
|
}
|
|
3574
3574
|
return a.clearCache = () => {
|
|
3575
|
-
i =
|
|
3575
|
+
i = _t(), a.resetResultsCount();
|
|
3576
3576
|
}, a.resultsCount = () => s, a.resetResultsCount = () => {
|
|
3577
3577
|
s = 0;
|
|
3578
3578
|
}, a;
|
|
@@ -3682,7 +3682,7 @@ var d2 = wu(), c2 = wu, l2 = (...n) => {
|
|
|
3682
3682
|
l2(go);
|
|
3683
3683
|
var u2 = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
|
|
3684
3684
|
if (arguments.length !== 0)
|
|
3685
|
-
return typeof arguments[0] == "object" ?
|
|
3685
|
+
return typeof arguments[0] == "object" ? Wr : Wr.apply(null, arguments);
|
|
3686
3686
|
}, h2 = (n) => n && typeof n.match == "function";
|
|
3687
3687
|
function zi(n, e) {
|
|
3688
3688
|
function i(...t) {
|
|
@@ -3870,7 +3870,7 @@ function b2(n = {}) {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
function xu(n) {
|
|
3872
3872
|
const e = typeof n;
|
|
3873
|
-
return n == null || e === "string" || e === "boolean" || e === "number" || Array.isArray(n) ||
|
|
3873
|
+
return n == null || e === "string" || e === "boolean" || e === "number" || Array.isArray(n) || Mt(n);
|
|
3874
3874
|
}
|
|
3875
3875
|
function fA(n, e = "", i = xu, t, r = [], s) {
|
|
3876
3876
|
let a;
|
|
@@ -3950,7 +3950,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
|
|
|
3950
3950
|
};
|
|
3951
3951
|
}
|
|
3952
3952
|
}
|
|
3953
|
-
function
|
|
3953
|
+
function $t(n) {
|
|
3954
3954
|
return typeof n == "boolean";
|
|
3955
3955
|
}
|
|
3956
3956
|
var k2 = () => function(e) {
|
|
@@ -3961,18 +3961,18 @@ var k2 = () => function(e) {
|
|
|
3961
3961
|
actionCreatorCheck: s = !0
|
|
3962
3962
|
} = e ?? {};
|
|
3963
3963
|
let a = new yu();
|
|
3964
|
-
if (i && (
|
|
3964
|
+
if (i && ($t(i) ? a.push(d2) : a.push(c2(i.extraArgument))), process.env.NODE_ENV !== "production") {
|
|
3965
3965
|
if (t) {
|
|
3966
3966
|
let A = {};
|
|
3967
|
-
|
|
3967
|
+
$t(t) || (A = t), a.unshift(b2(A));
|
|
3968
3968
|
}
|
|
3969
3969
|
if (r) {
|
|
3970
3970
|
let A = {};
|
|
3971
|
-
|
|
3971
|
+
$t(r) || (A = r), a.push(y2(A));
|
|
3972
3972
|
}
|
|
3973
3973
|
if (s) {
|
|
3974
3974
|
let A = {};
|
|
3975
|
-
|
|
3975
|
+
$t(s) || (A = s), a.unshift(p2(A));
|
|
3976
3976
|
}
|
|
3977
3977
|
}
|
|
3978
3978
|
return a;
|
|
@@ -4024,7 +4024,7 @@ function D2(n) {
|
|
|
4024
4024
|
let A;
|
|
4025
4025
|
if (typeof i == "function")
|
|
4026
4026
|
A = i;
|
|
4027
|
-
else if (
|
|
4027
|
+
else if (Mt(i))
|
|
4028
4028
|
A = ou(i);
|
|
4029
4029
|
else
|
|
4030
4030
|
throw new Error(process.env.NODE_ENV === "production" ? ge(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
|
|
@@ -4038,7 +4038,7 @@ function D2(n) {
|
|
|
4038
4038
|
o = e();
|
|
4039
4039
|
if (!Yn && o.some((g) => typeof g != "function"))
|
|
4040
4040
|
throw new Error(process.env.NODE_ENV === "production" ? ge(4) : "each middleware provided to configureStore must be a function");
|
|
4041
|
-
let d =
|
|
4041
|
+
let d = Wr;
|
|
4042
4042
|
r && (d = u2({
|
|
4043
4043
|
// Enable capture of stack traces for dispatched Redux actions
|
|
4044
4044
|
trace: !Yn,
|
|
@@ -4351,13 +4351,13 @@ function W2({
|
|
|
4351
4351
|
options: f
|
|
4352
4352
|
} = i, c = r(n, s, f);
|
|
4353
4353
|
t.exposeAction(e, c), a && t.addCase(c.fulfilled, a), A && t.addCase(c.pending, A), o && t.addCase(c.rejected, o), d && t.addMatcher(c.settled, d), t.exposeCaseReducer(e, {
|
|
4354
|
-
fulfilled: a ||
|
|
4355
|
-
pending: A ||
|
|
4356
|
-
rejected: o ||
|
|
4357
|
-
settled: d ||
|
|
4354
|
+
fulfilled: a || er,
|
|
4355
|
+
pending: A || er,
|
|
4356
|
+
rejected: o || er,
|
|
4357
|
+
settled: d || er
|
|
4358
4358
|
});
|
|
4359
4359
|
}
|
|
4360
|
-
function
|
|
4360
|
+
function er() {
|
|
4361
4361
|
}
|
|
4362
4362
|
var Y2 = (n, e) => {
|
|
4363
4363
|
if (typeof n != "function")
|
|
@@ -4439,7 +4439,7 @@ function pt(n) {
|
|
|
4439
4439
|
console.warn("No existing data found, initializing with updates."), i(r);
|
|
4440
4440
|
} };
|
|
4441
4441
|
}
|
|
4442
|
-
function
|
|
4442
|
+
function zr(n) {
|
|
4443
4443
|
return n ? n.replaceAll(/([A-Z])/g, "_$1").toLowerCase() : "";
|
|
4444
4444
|
}
|
|
4445
4445
|
const ca = (n) => {
|
|
@@ -4451,7 +4451,7 @@ const ca = (n) => {
|
|
|
4451
4451
|
_id: (n == null ? void 0 : n._id) || "",
|
|
4452
4452
|
walletAddress: ((e = n == null ? void 0 : n.defaultWallet) == null ? void 0 : e.walletAddress) || "",
|
|
4453
4453
|
xmppPassword: (n == null ? void 0 : n.xmppPassword) || "",
|
|
4454
|
-
xmppUsername: (n == null ? void 0 : n.xmppUsername) ||
|
|
4454
|
+
xmppUsername: (n == null ? void 0 : n.xmppUsername) || zr((i = n == null ? void 0 : n.defaultWallet) == null ? void 0 : i.walletAddress) || "",
|
|
4455
4455
|
refreshToken: (n == null ? void 0 : n.refreshToken) || "",
|
|
4456
4456
|
firstName: (n == null ? void 0 : n.firstName) || "",
|
|
4457
4457
|
lastName: (n == null ? void 0 : n.lastName) || "",
|
|
@@ -4559,9 +4559,9 @@ const ca = (n) => {
|
|
|
4559
4559
|
setUser: Kn,
|
|
4560
4560
|
setConfig: U2,
|
|
4561
4561
|
refreshTokens: Su,
|
|
4562
|
-
logout:
|
|
4562
|
+
logout: Ds,
|
|
4563
4563
|
setActiveModal: je,
|
|
4564
|
-
setDeleteModal:
|
|
4564
|
+
setDeleteModal: qr,
|
|
4565
4565
|
setSelectedUser: po,
|
|
4566
4566
|
updateUser: X2,
|
|
4567
4567
|
setActiveFile: Is,
|
|
@@ -4794,13 +4794,13 @@ const $2 = {
|
|
|
4794
4794
|
addRoom: Mu,
|
|
4795
4795
|
deleteAllRooms: PB,
|
|
4796
4796
|
setRoomMessages: iw,
|
|
4797
|
-
addRoomMessage:
|
|
4797
|
+
addRoomMessage: Vr,
|
|
4798
4798
|
deleteRoomMessage: Tu,
|
|
4799
4799
|
setEditAction: ti,
|
|
4800
4800
|
editRoomMessage: tw,
|
|
4801
4801
|
setComposing: rw,
|
|
4802
4802
|
setIsLoading: Fe,
|
|
4803
|
-
setLastViewedTimestamp:
|
|
4803
|
+
setLastViewedTimestamp: wr,
|
|
4804
4804
|
setRoomNoMessages: OB,
|
|
4805
4805
|
setCurrentRoom: ze,
|
|
4806
4806
|
setRoomRole: sw,
|
|
@@ -4842,12 +4842,12 @@ const ow = (n) => (e) => (i) => {
|
|
|
4842
4842
|
var yo = {}, ko = {};
|
|
4843
4843
|
ko.__esModule = !0;
|
|
4844
4844
|
ko.default = cw;
|
|
4845
|
-
function
|
|
4846
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
4845
|
+
function br(n) {
|
|
4846
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? br = function(i) {
|
|
4847
4847
|
return typeof i;
|
|
4848
|
-
} :
|
|
4848
|
+
} : br = function(i) {
|
|
4849
4849
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
4850
|
-
},
|
|
4850
|
+
}, br(n);
|
|
4851
4851
|
}
|
|
4852
4852
|
function ua() {
|
|
4853
4853
|
}
|
|
@@ -4857,7 +4857,7 @@ var fw = {
|
|
|
4857
4857
|
removeItem: ua
|
|
4858
4858
|
};
|
|
4859
4859
|
function dw(n) {
|
|
4860
|
-
if ((typeof self > "u" ? "undefined" :
|
|
4860
|
+
if ((typeof self > "u" ? "undefined" : br(self)) !== "object" || !(n in self))
|
|
4861
4861
|
return !1;
|
|
4862
4862
|
try {
|
|
4863
4863
|
var e = self[n], i = "redux-persist ".concat(n, " test");
|
|
@@ -6803,7 +6803,14 @@ const Kw = /* @__PURE__ */ no(Jw), lt = (n) => new Error(`redux-persist-transfor
|
|
|
6803
6803
|
}), $w = {
|
|
6804
6804
|
key: "chatSettingStore",
|
|
6805
6805
|
storage: Ns,
|
|
6806
|
-
blacklist: [
|
|
6806
|
+
blacklist: [
|
|
6807
|
+
"activeModal",
|
|
6808
|
+
"deleteModal",
|
|
6809
|
+
"selectedUser",
|
|
6810
|
+
"activeFile",
|
|
6811
|
+
"config.refreshTokens",
|
|
6812
|
+
"refreshTokens"
|
|
6813
|
+
],
|
|
6807
6814
|
transforms: [Uu]
|
|
6808
6815
|
}, eb = {
|
|
6809
6816
|
key: "roomMessages",
|
|
@@ -6828,7 +6835,7 @@ const Kw = /* @__PURE__ */ no(Jw), lt = (n) => new Error(`redux-persist-transfor
|
|
|
6828
6835
|
), Eo = (n) => {
|
|
6829
6836
|
const e = n.rooms;
|
|
6830
6837
|
return e.activeRoomJID ? e.rooms[e.activeRoomJID] : null;
|
|
6831
|
-
},
|
|
6838
|
+
}, $ = D2({
|
|
6832
6839
|
reducer: tb,
|
|
6833
6840
|
middleware: (n) => n({
|
|
6834
6841
|
serializableCheck: {
|
|
@@ -6840,7 +6847,7 @@ const Kw = /* @__PURE__ */ no(Jw), lt = (n) => new Error(`redux-persist-transfor
|
|
|
6840
6847
|
ignoredPaths: ["chat.messages.timestamp", "chatSettingStore.client"]
|
|
6841
6848
|
}
|
|
6842
6849
|
}).concat(ow).concat(Lw).concat(Rw)
|
|
6843
|
-
}), rb = Fw(
|
|
6850
|
+
}), rb = Fw($);
|
|
6844
6851
|
function sb(n) {
|
|
6845
6852
|
if (!n) return null;
|
|
6846
6853
|
const e = n.trim().toLowerCase();
|
|
@@ -6859,16 +6866,16 @@ function Xu(n, e) {
|
|
|
6859
6866
|
const { toString: ab } = Object.prototype, { getPrototypeOf: Bo } = Object, Ss = /* @__PURE__ */ ((n) => (e) => {
|
|
6860
6867
|
const i = ab.call(e);
|
|
6861
6868
|
return n[i] || (n[i] = i.slice(8, -1).toLowerCase());
|
|
6862
|
-
})(/* @__PURE__ */ Object.create(null)), fn = (n) => (n = n.toLowerCase(), (e) => Ss(e) === n), Ps = (n) => (e) => typeof e === n, { isArray: rt } = Array,
|
|
6869
|
+
})(/* @__PURE__ */ Object.create(null)), fn = (n) => (n = n.toLowerCase(), (e) => Ss(e) === n), Ps = (n) => (e) => typeof e === n, { isArray: rt } = Array, Et = Ps("undefined");
|
|
6863
6870
|
function Ab(n) {
|
|
6864
|
-
return n !== null && !
|
|
6871
|
+
return n !== null && !Et(n) && n.constructor !== null && !Et(n.constructor) && Ze(n.constructor.isBuffer) && n.constructor.isBuffer(n);
|
|
6865
6872
|
}
|
|
6866
6873
|
const Ju = fn("ArrayBuffer");
|
|
6867
6874
|
function ob(n) {
|
|
6868
6875
|
let e;
|
|
6869
6876
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && Ju(n.buffer), e;
|
|
6870
6877
|
}
|
|
6871
|
-
const fb = Ps("string"), Ze = Ps("function"), Ku = Ps("number"), Os = (n) => n !== null && typeof n == "object", db = (n) => n === !0 || n === !1,
|
|
6878
|
+
const fb = Ps("string"), Ze = Ps("function"), Ku = Ps("number"), Os = (n) => n !== null && typeof n == "object", db = (n) => n === !0 || n === !1, yr = (n) => {
|
|
6872
6879
|
if (Ss(n) !== "object")
|
|
6873
6880
|
return !1;
|
|
6874
6881
|
const e = Bo(n);
|
|
@@ -6878,7 +6885,7 @@ const fb = Ps("string"), Ze = Ps("function"), Ku = Ps("number"), Os = (n) => n !
|
|
|
6878
6885
|
return n && (typeof FormData == "function" && n instanceof FormData || Ze(n.append) && ((e = Ss(n)) === "formdata" || // detect form-data instance
|
|
6879
6886
|
e === "object" && Ze(n.toString) && n.toString() === "[object FormData]"));
|
|
6880
6887
|
}, pb = fn("URLSearchParams"), [vb, wb, bb, yb] = ["ReadableStream", "Request", "Response", "Headers"].map(fn), kb = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
6881
|
-
function
|
|
6888
|
+
function Tt(n, e, { allOwnKeys: i = !1 } = {}) {
|
|
6882
6889
|
if (n === null || typeof n > "u")
|
|
6883
6890
|
return;
|
|
6884
6891
|
let t, r;
|
|
@@ -6901,17 +6908,17 @@ function Zu(n, e) {
|
|
|
6901
6908
|
return r;
|
|
6902
6909
|
return null;
|
|
6903
6910
|
}
|
|
6904
|
-
const _u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : window, $u = (n) => !
|
|
6911
|
+
const _u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : window, $u = (n) => !Et(n) && n !== _u;
|
|
6905
6912
|
function uA() {
|
|
6906
6913
|
const { caseless: n } = $u(this) && this || {}, e = {}, i = (t, r) => {
|
|
6907
6914
|
const s = n && Zu(e, r) || r;
|
|
6908
|
-
|
|
6915
|
+
yr(e[s]) && yr(t) ? e[s] = uA(e[s], t) : yr(t) ? e[s] = uA({}, t) : rt(t) ? e[s] = t.slice() : e[s] = t;
|
|
6909
6916
|
};
|
|
6910
6917
|
for (let t = 0, r = arguments.length; t < r; t++)
|
|
6911
|
-
arguments[t] &&
|
|
6918
|
+
arguments[t] && Tt(arguments[t], i);
|
|
6912
6919
|
return e;
|
|
6913
6920
|
}
|
|
6914
|
-
const Cb = (n, e, i, { allOwnKeys: t } = {}) => (
|
|
6921
|
+
const Cb = (n, e, i, { allOwnKeys: t } = {}) => (Tt(e, (r, s) => {
|
|
6915
6922
|
i && Ze(r) ? n[s] = Xu(r, i) : n[s] = r;
|
|
6916
6923
|
}, { allOwnKeys: t }), n), xb = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), Eb = (n, e, i, t) => {
|
|
6917
6924
|
n.prototype = Object.create(e.prototype, t), n.prototype.constructor = n, Object.defineProperty(n, "super", {
|
|
@@ -6960,7 +6967,7 @@ const Cb = (n, e, i, { allOwnKeys: t } = {}) => (jt(e, (r, s) => {
|
|
|
6960
6967
|
}
|
|
6961
6968
|
), hd = (({ hasOwnProperty: n }) => (e, i) => n.call(e, i))(Object.prototype), Tb = fn("RegExp"), e1 = (n, e) => {
|
|
6962
6969
|
const i = Object.getOwnPropertyDescriptors(n), t = {};
|
|
6963
|
-
|
|
6970
|
+
Tt(i, (r, s) => {
|
|
6964
6971
|
let a;
|
|
6965
6972
|
(a = e(r, s, n)) !== !1 && (t[s] = a || r);
|
|
6966
6973
|
}), Object.defineProperties(n, t);
|
|
@@ -7009,9 +7016,9 @@ const Yb = (n) => {
|
|
|
7009
7016
|
if (!("toJSON" in t)) {
|
|
7010
7017
|
e[r] = t;
|
|
7011
7018
|
const s = rt(t) ? [] : {};
|
|
7012
|
-
return
|
|
7019
|
+
return Tt(t, (a, A) => {
|
|
7013
7020
|
const o = i(a, r + 1);
|
|
7014
|
-
!
|
|
7021
|
+
!Et(o) && (s[A] = o);
|
|
7015
7022
|
}), e[r] = void 0, s;
|
|
7016
7023
|
}
|
|
7017
7024
|
}
|
|
@@ -7028,12 +7035,12 @@ const Yb = (n) => {
|
|
|
7028
7035
|
isNumber: Ku,
|
|
7029
7036
|
isBoolean: db,
|
|
7030
7037
|
isObject: Os,
|
|
7031
|
-
isPlainObject:
|
|
7038
|
+
isPlainObject: yr,
|
|
7032
7039
|
isReadableStream: vb,
|
|
7033
7040
|
isRequest: wb,
|
|
7034
7041
|
isResponse: bb,
|
|
7035
7042
|
isHeaders: yb,
|
|
7036
|
-
isUndefined:
|
|
7043
|
+
isUndefined: Et,
|
|
7037
7044
|
isDate: cb,
|
|
7038
7045
|
isFile: lb,
|
|
7039
7046
|
isBlob: ub,
|
|
@@ -7043,7 +7050,7 @@ const Yb = (n) => {
|
|
|
7043
7050
|
isURLSearchParams: pb,
|
|
7044
7051
|
isTypedArray: Nb,
|
|
7045
7052
|
isFileList: hb,
|
|
7046
|
-
forEach:
|
|
7053
|
+
forEach: Tt,
|
|
7047
7054
|
merge: uA,
|
|
7048
7055
|
extend: Cb,
|
|
7049
7056
|
trim: kb,
|
|
@@ -7369,7 +7376,7 @@ function sy(n, e, i) {
|
|
|
7369
7376
|
}
|
|
7370
7377
|
return (i || JSON.stringify)(n);
|
|
7371
7378
|
}
|
|
7372
|
-
const
|
|
7379
|
+
const jt = {
|
|
7373
7380
|
transitional: A1,
|
|
7374
7381
|
adapter: ["xhr", "http", "fetch"],
|
|
7375
7382
|
transformRequest: [function(e, i) {
|
|
@@ -7398,7 +7405,7 @@ const Qt = {
|
|
|
7398
7405
|
return s || r ? (i.setContentType("application/json", !1), sy(e)) : e;
|
|
7399
7406
|
}],
|
|
7400
7407
|
transformResponse: [function(e) {
|
|
7401
|
-
const i = this.transitional ||
|
|
7408
|
+
const i = this.transitional || jt.transitional, t = i && i.forcedJSONParsing, r = this.responseType === "json";
|
|
7402
7409
|
if (L.isResponse(e) || L.isReadableStream(e))
|
|
7403
7410
|
return e;
|
|
7404
7411
|
if (e && L.isString(e) && (t && !this.responseType || r)) {
|
|
@@ -7436,7 +7443,7 @@ const Qt = {
|
|
|
7436
7443
|
}
|
|
7437
7444
|
};
|
|
7438
7445
|
L.forEach(["delete", "get", "head", "post", "put", "patch"], (n) => {
|
|
7439
|
-
|
|
7446
|
+
jt.headers[n] = {};
|
|
7440
7447
|
});
|
|
7441
7448
|
const ay = L.toObjectSet([
|
|
7442
7449
|
"age",
|
|
@@ -7467,8 +7474,8 @@ const ay = L.toObjectSet([
|
|
|
7467
7474
|
function ut(n) {
|
|
7468
7475
|
return n && String(n).trim().toLowerCase();
|
|
7469
7476
|
}
|
|
7470
|
-
function
|
|
7471
|
-
return n === !1 || n == null ? n : L.isArray(n) ? n.map(
|
|
7477
|
+
function kr(n) {
|
|
7478
|
+
return n === !1 || n == null ? n : L.isArray(n) ? n.map(kr) : String(n);
|
|
7472
7479
|
}
|
|
7473
7480
|
function oy(n) {
|
|
7474
7481
|
const e = /* @__PURE__ */ Object.create(null), i = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -7513,7 +7520,7 @@ class We {
|
|
|
7513
7520
|
if (!f)
|
|
7514
7521
|
throw new Error("header name must be a non-empty string");
|
|
7515
7522
|
const c = L.findKey(r, f);
|
|
7516
|
-
(!c || r[c] === void 0 || d === !0 || d === void 0 && r[c] !== !1) && (r[c || o] =
|
|
7523
|
+
(!c || r[c] === void 0 || d === !0 || d === void 0 && r[c] !== !1) && (r[c || o] = kr(A));
|
|
7517
7524
|
}
|
|
7518
7525
|
const a = (A, o) => L.forEach(A, (d, f) => s(d, f, o));
|
|
7519
7526
|
if (L.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -7576,11 +7583,11 @@ class We {
|
|
|
7576
7583
|
return L.forEach(this, (r, s) => {
|
|
7577
7584
|
const a = L.findKey(t, s);
|
|
7578
7585
|
if (a) {
|
|
7579
|
-
i[a] =
|
|
7586
|
+
i[a] = kr(r), delete i[s];
|
|
7580
7587
|
return;
|
|
7581
7588
|
}
|
|
7582
7589
|
const A = e ? dy(s) : String(s).trim();
|
|
7583
|
-
A !== s && delete i[s], i[A] =
|
|
7590
|
+
A !== s && delete i[s], i[A] = kr(r), t[A] = !0;
|
|
7584
7591
|
}), this;
|
|
7585
7592
|
}
|
|
7586
7593
|
concat(...e) {
|
|
@@ -7632,7 +7639,7 @@ L.reduceDescriptors(We.prototype, ({ value: n }, e) => {
|
|
|
7632
7639
|
});
|
|
7633
7640
|
L.freezeMethods(We);
|
|
7634
7641
|
function Ca(n, e) {
|
|
7635
|
-
const i = this ||
|
|
7642
|
+
const i = this || jt, t = e || i, r = We.from(t.headers);
|
|
7636
7643
|
let s = t.data;
|
|
7637
7644
|
return L.forEach(n, function(A) {
|
|
7638
7645
|
s = A.call(i, s, r.normalize(), e ? e.status : void 0);
|
|
@@ -7688,7 +7695,7 @@ function hy(n, e) {
|
|
|
7688
7695
|
r || (r = setTimeout(() => (r = null, i = Date.now(), n.apply(null, arguments)), t - (A - i)));
|
|
7689
7696
|
};
|
|
7690
7697
|
}
|
|
7691
|
-
const
|
|
7698
|
+
const Ur = (n, e, i = 3) => {
|
|
7692
7699
|
let t = 0;
|
|
7693
7700
|
const r = uy(50, 250);
|
|
7694
7701
|
return hy((s) => {
|
|
@@ -7906,7 +7913,7 @@ const l1 = (n) => {
|
|
|
7906
7913
|
)), f = null;
|
|
7907
7914
|
}, s === void 0 && a.setContentType(null), "setRequestHeader" in f && L.forEach(a.toJSON(), function(g, p) {
|
|
7908
7915
|
f.setRequestHeader(p, g);
|
|
7909
|
-
}), L.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), A && A !== "json" && (f.responseType = r.responseType), typeof r.onDownloadProgress == "function" && f.addEventListener("progress",
|
|
7916
|
+
}), L.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), A && A !== "json" && (f.responseType = r.responseType), typeof r.onDownloadProgress == "function" && f.addEventListener("progress", Ur(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && f.upload && f.upload.addEventListener("progress", Ur(r.onUploadProgress)), (r.cancelToken || r.signal) && (o = (h) => {
|
|
7910
7917
|
f && (t(!h || h.type ? new st(null, n, f) : h), f.abort(), f = null);
|
|
7911
7918
|
}, r.cancelToken && r.cancelToken.subscribe(o), r.signal && (r.signal.aborted ? o() : r.signal.addEventListener("abort", o)));
|
|
7912
7919
|
const l = ly(r.url);
|
|
@@ -7992,12 +7999,12 @@ const l1 = (n) => {
|
|
|
7992
7999
|
return L.isReadableStream(new Response("").body);
|
|
7993
8000
|
} catch {
|
|
7994
8001
|
}
|
|
7995
|
-
})(),
|
|
8002
|
+
})(), Xr = {
|
|
7996
8003
|
stream: mA && ((n) => n.body)
|
|
7997
8004
|
};
|
|
7998
8005
|
Ts && ((n) => {
|
|
7999
8006
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
8000
|
-
!
|
|
8007
|
+
!Xr[e] && (Xr[e] = L.isFunction(n[e]) ? (i) => i[e]() : (i, t) => {
|
|
8001
8008
|
throw new se(`Response type '${e}' is not supported`, se.ERR_NOT_SUPPORT, t);
|
|
8002
8009
|
});
|
|
8003
8010
|
});
|
|
@@ -8048,7 +8055,7 @@ const Ey = async (n) => {
|
|
|
8048
8055
|
}), x;
|
|
8049
8056
|
L.isFormData(t) && (x = w.headers.get("content-type")) && f.setContentType(x), w.body && (t = yd(w.body, Cd, kd(
|
|
8050
8057
|
b,
|
|
8051
|
-
|
|
8058
|
+
Ur(o)
|
|
8052
8059
|
), null, gA));
|
|
8053
8060
|
}
|
|
8054
8061
|
L.isString(c) || (c = c ? "cors" : "omit"), v = new Request(e, {
|
|
@@ -8071,13 +8078,13 @@ const Ey = async (n) => {
|
|
|
8071
8078
|
m = new Response(
|
|
8072
8079
|
yd(m.body, Cd, A && kd(
|
|
8073
8080
|
x,
|
|
8074
|
-
|
|
8081
|
+
Ur(A, !0)
|
|
8075
8082
|
), C && k, gA),
|
|
8076
8083
|
w
|
|
8077
8084
|
);
|
|
8078
8085
|
}
|
|
8079
8086
|
d = d || "text";
|
|
8080
|
-
let y = await
|
|
8087
|
+
let y = await Xr[L.findKey(Xr, d) || "text"](m, n);
|
|
8081
8088
|
return !C && k(), g && g(), await new Promise((w, x) => {
|
|
8082
8089
|
d1(w, x, {
|
|
8083
8090
|
data: y,
|
|
@@ -8149,7 +8156,7 @@ function Ed(n) {
|
|
|
8149
8156
|
return xa(n), n.headers = We.from(n.headers), n.data = Ca.call(
|
|
8150
8157
|
n,
|
|
8151
8158
|
n.transformRequest
|
|
8152
|
-
), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), h1.getAdapter(n.adapter ||
|
|
8159
|
+
), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), h1.getAdapter(n.adapter || jt.adapter)(n).then(function(t) {
|
|
8153
8160
|
return xa(n), t.data = Ca.call(
|
|
8154
8161
|
n,
|
|
8155
8162
|
n.transformResponse,
|
|
@@ -8479,7 +8486,7 @@ function m1(n) {
|
|
|
8479
8486
|
return m1(Bi(n, r));
|
|
8480
8487
|
}, i;
|
|
8481
8488
|
}
|
|
8482
|
-
const De = m1(
|
|
8489
|
+
const De = m1(jt);
|
|
8483
8490
|
De.Axios = bi;
|
|
8484
8491
|
De.CanceledError = st;
|
|
8485
8492
|
De.CancelToken = So;
|
|
@@ -8501,38 +8508,38 @@ De.HttpStatusCode = wA;
|
|
|
8501
8508
|
De.default = De;
|
|
8502
8509
|
const Oy = "JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlzVXNlckRhdGFFbmNyeXB0ZWQiOmZhbHNlLCJwYXJlbnRBcHBJZCI6bnVsbCwiaXNBbGxvd2VkTmV3QXBwQ3JlYXRlIjp0cnVlLCJpc0Jhc2VBcHAiOnRydWUsIl9pZCI6IjY0NmNjOGRjOTZkNGE0ZGM4ZjdiMmYyZCIsImRpc3BsYXlOYW1lIjoiRXRob3JhIiwiZG9tYWluTmFtZSI6ImV0aG9yYSIsImNyZWF0b3JJZCI6IjY0NmNjOGQzOTZkNGE0ZGM4ZjdiMmYyNSIsInVzZXJzQ2FuRnJlZSI6dHJ1ZSwiZGVmYXVsdEFjY2Vzc0Fzc2V0c09wZW4iOnRydWUsImRlZmF1bHRBY2Nlc3NQcm9maWxlT3BlbiI6dHJ1ZSwiYnVuZGxlSWQiOiJjb20uZXRob3JhIiwicHJpbWFyeUNvbG9yIjoiIzAwM0U5QyIsInNlY29uZGFyeUNvbG9yIjoiIzI3NzVFQSIsImNvaW5TeW1ib2wiOiJFVE8iLCJjb2luTmFtZSI6IkV0aG9yYSBDb2luIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX0FQSV9LRVkiOiJBSXphU3lEUWRrdnZ4S0t4NC1XcmpMUW9ZZjA4R0ZBUmdpX3FPNGciLCJSRUFDVF9BUFBfRklSRUJBU0VfQVVUSF9ET01BSU4iOiJldGhvcmEtNjY4ZTkuZmlyZWJhc2VhcHAuY29tIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX1BST0pFQ1RfSUQiOiJldGhvcmEtNjY4ZTkiLCJSRUFDVF9BUFBfRklSRUJBU0VfU1RPUkFHRV9CVUNLRVQiOiJldGhvcmEtNjY4ZTkuYXBwc3BvdC5jb20iLCJSRUFDVF9BUFBfRklSRUJBU0VfTUVTU0FHSU5HX1NFTkRFUl9JRCI6Ijk3MjkzMzQ3MDA1NCIsIlJFQUNUX0FQUF9GSVJFQkFTRV9BUFBfSUQiOiIxOjk3MjkzMzQ3MDA1NDp3ZWI6ZDQ2ODJlNzZlZjAyZmQ5YjljZGFhNyIsIlJFQUNUX0FQUF9GSVJFQkFTRV9NRUFTVVJNRU5UX0lEIjoiRy1XSE03WFJaNEM4IiwiUkVBQ1RfQVBQX1NUUklQRV9QVUJMSVNIQUJMRV9LRVkiOiIiLCJSRUFDVF9BUFBfU1RSSVBFX1NFQ1JFVF9LRVkiOiIiLCJjcmVhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJ1cGRhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJfX3YiOjB9LCJpYXQiOjE2ODQ4NTA5MjV9.-IqNVMsf8GyS9Z-_yuNW7hpSmejajjAy-W0J8TadRIM";
|
|
8503
8510
|
var bl, yl;
|
|
8504
|
-
let p1 = ((yl = (bl =
|
|
8511
|
+
let p1 = ((yl = (bl = $.getState().chatSettingStore) == null ? void 0 : bl.config) == null ? void 0 : yl.baseUrl) || "https://api.ethoradev.com/v1";
|
|
8505
8512
|
const Ee = De.create({
|
|
8506
8513
|
baseURL: p1
|
|
8507
8514
|
});
|
|
8508
|
-
let
|
|
8515
|
+
let Qt = Oy;
|
|
8509
8516
|
function My(n, e) {
|
|
8510
|
-
n && (p1 = n, Ee.defaults.baseURL = n), e && (
|
|
8517
|
+
n && (p1 = n, Ee.defaults.baseURL = n), e && (Qt = e);
|
|
8511
8518
|
}
|
|
8512
8519
|
function bA() {
|
|
8513
8520
|
return new Promise((n, e) => {
|
|
8514
|
-
const i =
|
|
8521
|
+
const i = $.getState().chatSettingStore.user;
|
|
8515
8522
|
try {
|
|
8516
8523
|
Ee.post(
|
|
8517
8524
|
"/users/login/refresh",
|
|
8518
8525
|
{},
|
|
8519
8526
|
{ headers: { Authorization: i.refreshToken } }
|
|
8520
8527
|
).then((t) => {
|
|
8521
|
-
|
|
8528
|
+
$.dispatch(
|
|
8522
8529
|
Su({
|
|
8523
8530
|
token: t.data.token,
|
|
8524
8531
|
refreshToken: t.data.refreshToken
|
|
8525
8532
|
})
|
|
8526
8533
|
);
|
|
8527
8534
|
}).catch((t) => {
|
|
8528
|
-
|
|
8535
|
+
e(t);
|
|
8529
8536
|
});
|
|
8530
8537
|
} catch {
|
|
8531
|
-
console.log("errr"),
|
|
8538
|
+
console.log("errr"), $.dispatch(Ds());
|
|
8532
8539
|
}
|
|
8533
8540
|
});
|
|
8534
8541
|
}
|
|
8535
|
-
let
|
|
8542
|
+
let nr = !1, yA = [];
|
|
8536
8543
|
const Ty = (n) => new Promise((e, i) => {
|
|
8537
8544
|
yA.push({ resolve: e, reject: i, config: n });
|
|
8538
8545
|
}), jy = (n) => {
|
|
@@ -8544,10 +8551,10 @@ Ee.interceptors.response.use(
|
|
|
8544
8551
|
(n) => n,
|
|
8545
8552
|
async (n) => {
|
|
8546
8553
|
var e, i, t, r, s, a, A, o, d;
|
|
8547
|
-
if (!((t = (i = (e =
|
|
8548
|
-
if ((a = (s = (r =
|
|
8549
|
-
const { refreshToken: f, accessToken: c } = (d = (o = (A =
|
|
8550
|
-
|
|
8554
|
+
if (!((t = (i = (e = $.getState().chatSettingStore) == null ? void 0 : e.config) == null ? void 0 : i.refreshTokens) != null && t.enabled))
|
|
8555
|
+
if ((a = (s = (r = $.getState().chatSettingStore) == null ? void 0 : r.config) == null ? void 0 : s.refreshTokens) != null && a.refreshFunction) {
|
|
8556
|
+
const { refreshToken: f, accessToken: c } = (d = (o = (A = $.getState().chatSettingStore) == null ? void 0 : A.config) == null ? void 0 : o.refreshTokens) == null ? void 0 : d.refreshFunction();
|
|
8557
|
+
$.dispatch(
|
|
8551
8558
|
Su({
|
|
8552
8559
|
token: c,
|
|
8553
8560
|
refreshToken: f
|
|
@@ -8560,20 +8567,20 @@ Ee.interceptors.response.use(
|
|
|
8560
8567
|
throw n;
|
|
8561
8568
|
if (f.url === "/users/login/refresh" || f.url === "/users/login")
|
|
8562
8569
|
return Promise.reject(n);
|
|
8563
|
-
if (f._retry = !0,
|
|
8570
|
+
if (f._retry = !0, nr)
|
|
8564
8571
|
return Ty(f);
|
|
8565
|
-
|
|
8572
|
+
nr = !0;
|
|
8566
8573
|
try {
|
|
8567
8574
|
const c = await bA();
|
|
8568
|
-
return
|
|
8575
|
+
return nr = !1, f.headers.Authorization = c.data.token, jy(c.data.token), Ee(f);
|
|
8569
8576
|
} catch (c) {
|
|
8570
|
-
return
|
|
8577
|
+
return nr = !1, c;
|
|
8571
8578
|
}
|
|
8572
8579
|
}
|
|
8573
8580
|
}
|
|
8574
8581
|
);
|
|
8575
8582
|
async function Po() {
|
|
8576
|
-
const n =
|
|
8583
|
+
const n = $.getState().chatSettingStore.user.token || "";
|
|
8577
8584
|
try {
|
|
8578
8585
|
return (await Ee.get("/chats/my", {
|
|
8579
8586
|
headers: {
|
|
@@ -8585,7 +8592,7 @@ async function Po() {
|
|
|
8585
8592
|
}
|
|
8586
8593
|
}
|
|
8587
8594
|
async function Qy(n) {
|
|
8588
|
-
const e =
|
|
8595
|
+
const e = $.getState().chatSettingStore.user.token || "";
|
|
8589
8596
|
try {
|
|
8590
8597
|
return (await Ee.get(`/chats/my/${n}`, {
|
|
8591
8598
|
headers: {
|
|
@@ -8597,7 +8604,7 @@ async function Qy(n) {
|
|
|
8597
8604
|
}
|
|
8598
8605
|
}
|
|
8599
8606
|
async function Fy(n) {
|
|
8600
|
-
const e =
|
|
8607
|
+
const e = $.getState().chatSettingStore.user.token || "";
|
|
8601
8608
|
try {
|
|
8602
8609
|
return (await Ee.post("/chats", n, {
|
|
8603
8610
|
headers: {
|
|
@@ -8609,7 +8616,7 @@ async function Fy(n) {
|
|
|
8609
8616
|
}
|
|
8610
8617
|
}
|
|
8611
8618
|
async function Ly(n) {
|
|
8612
|
-
const e =
|
|
8619
|
+
const e = $.getState().chatSettingStore.user.token || "";
|
|
8613
8620
|
try {
|
|
8614
8621
|
return (await Ee.post(
|
|
8615
8622
|
"/chats/private",
|
|
@@ -8625,7 +8632,7 @@ async function Ly(n) {
|
|
|
8625
8632
|
}
|
|
8626
8633
|
}
|
|
8627
8634
|
async function Ry(n) {
|
|
8628
|
-
const { chatName: e, category: i, text: t } = n, r =
|
|
8635
|
+
const { chatName: e, category: i, text: t } = n, r = $.getState().chatSettingStore.user.token || "";
|
|
8629
8636
|
try {
|
|
8630
8637
|
return (await Ee.post(
|
|
8631
8638
|
`/chats/reports/${e}`,
|
|
@@ -8641,7 +8648,7 @@ async function Ry(n) {
|
|
|
8641
8648
|
}
|
|
8642
8649
|
}
|
|
8643
8650
|
async function Wy(n) {
|
|
8644
|
-
const { chatName: e, members: i } = n, t =
|
|
8651
|
+
const { chatName: e, members: i } = n, t = $.getState().chatSettingStore.user.token || "";
|
|
8645
8652
|
try {
|
|
8646
8653
|
return (await Ee.post(
|
|
8647
8654
|
"/chats/users-access",
|
|
@@ -8657,7 +8664,7 @@ async function Wy(n) {
|
|
|
8657
8664
|
}
|
|
8658
8665
|
}
|
|
8659
8666
|
async function Yy(n) {
|
|
8660
|
-
const { roomId: e, members: i } = n, t =
|
|
8667
|
+
const { roomId: e, members: i } = n, t = $.getState().chatSettingStore.user.token || "";
|
|
8661
8668
|
try {
|
|
8662
8669
|
return (await Ee.delete("/chats/users-access", {
|
|
8663
8670
|
headers: {
|
|
@@ -8673,7 +8680,7 @@ async function Yy(n) {
|
|
|
8673
8680
|
}
|
|
8674
8681
|
}
|
|
8675
8682
|
async function Hy(n) {
|
|
8676
|
-
const e =
|
|
8683
|
+
const e = $.getState().chatSettingStore.user.token || "";
|
|
8677
8684
|
try {
|
|
8678
8685
|
return (await Ee.delete("/chats", {
|
|
8679
8686
|
headers: {
|
|
@@ -8685,7 +8692,7 @@ async function Hy(n) {
|
|
|
8685
8692
|
throw new Error("Error deleting room");
|
|
8686
8693
|
}
|
|
8687
8694
|
}
|
|
8688
|
-
const
|
|
8695
|
+
const Jr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
8689
8696
|
var t;
|
|
8690
8697
|
try {
|
|
8691
8698
|
return {
|
|
@@ -8718,8 +8725,8 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8718
8725
|
body: a,
|
|
8719
8726
|
...A
|
|
8720
8727
|
});
|
|
8721
|
-
return
|
|
8722
|
-
|
|
8728
|
+
return $.dispatch(
|
|
8729
|
+
Vr({
|
|
8723
8730
|
roomJID: n.attrs.from.split("/")[0],
|
|
8724
8731
|
message: o
|
|
8725
8732
|
})
|
|
@@ -8729,7 +8736,7 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8729
8736
|
var e, i;
|
|
8730
8737
|
if ((i = (e = n == null ? void 0 : n.attrs) == null ? void 0 : e.id) != null && i.includes("message-reaction")) {
|
|
8731
8738
|
const t = n.getChild("reactions"), r = n.getChild("stanza-id"), s = r.attrs.by, a = r.attrs.id, A = n.getChild("data"), o = t.getChildren("reaction").map((f) => f.text()), d = t.attrs.from;
|
|
8732
|
-
|
|
8739
|
+
$.dispatch(
|
|
8733
8740
|
ju({
|
|
8734
8741
|
roomJID: s,
|
|
8735
8742
|
messageId: t.attrs.id,
|
|
@@ -8745,12 +8752,12 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8745
8752
|
const e = n.getChild("delete"), i = n.getChild("stanza-id");
|
|
8746
8753
|
if (!e)
|
|
8747
8754
|
return;
|
|
8748
|
-
|
|
8755
|
+
$.dispatch(
|
|
8749
8756
|
Tu({
|
|
8750
8757
|
roomJID: i.attrs.by,
|
|
8751
8758
|
messageId: e.attrs.id
|
|
8752
8759
|
})
|
|
8753
|
-
),
|
|
8760
|
+
), $.dispatch(qr({ isDeleteModal: !1 }));
|
|
8754
8761
|
}
|
|
8755
8762
|
}, zy = async (n) => {
|
|
8756
8763
|
var e, i;
|
|
@@ -8758,7 +8765,7 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8758
8765
|
const t = n.getChild("stanza-id"), r = n.getChild("replace");
|
|
8759
8766
|
if (!t && !r)
|
|
8760
8767
|
return;
|
|
8761
|
-
|
|
8768
|
+
$.dispatch(
|
|
8762
8769
|
tw({
|
|
8763
8770
|
roomJID: t.attrs.by,
|
|
8764
8771
|
messageId: r.attrs.id,
|
|
@@ -8778,7 +8785,7 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8778
8785
|
senderFirstName: c.attrs.senderFirstName,
|
|
8779
8786
|
senderLastName: c.attrs.senderLastName
|
|
8780
8787
|
}, k = l.attrs.by, b = l.attrs.id;
|
|
8781
|
-
|
|
8788
|
+
$.dispatch(
|
|
8782
8789
|
ju({
|
|
8783
8790
|
roomJID: k,
|
|
8784
8791
|
messageId: h,
|
|
@@ -8804,8 +8811,8 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8804
8811
|
body: t,
|
|
8805
8812
|
...r
|
|
8806
8813
|
});
|
|
8807
|
-
|
|
8808
|
-
|
|
8814
|
+
$.dispatch(
|
|
8815
|
+
Vr({
|
|
8809
8816
|
roomJID: n.attrs.from,
|
|
8810
8817
|
message: s
|
|
8811
8818
|
})
|
|
@@ -8820,7 +8827,7 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8820
8827
|
let l = [];
|
|
8821
8828
|
n != null && n.getChild("composing") ? l.push(
|
|
8822
8829
|
((d = (o = (A = n.getChild("data").attrs) == null ? void 0 : A.fullName) == null ? void 0 : o.split(" ")) == null ? void 0 : d[0]) || "User"
|
|
8823
|
-
) : l.pop(),
|
|
8830
|
+
) : l.pop(), $.dispatch(
|
|
8824
8831
|
rw({
|
|
8825
8832
|
chatJID: c,
|
|
8826
8833
|
composing: !!(n != null && n.getChild("composing")),
|
|
@@ -8833,25 +8840,25 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8833
8840
|
var e, i;
|
|
8834
8841
|
if (n.attrs.id === "presenceInRoom" && !n.getChild("error")) {
|
|
8835
8842
|
const t = n.attrs.from.split("/")[0], r = (i = (e = n == null ? void 0 : n.children[1]) == null ? void 0 : e.children[0]) == null ? void 0 : i.attrs.role;
|
|
8836
|
-
|
|
8843
|
+
$.dispatch(sw({ chatJID: t, role: r }));
|
|
8837
8844
|
}
|
|
8838
8845
|
}, Uy = async (n, e) => {
|
|
8839
8846
|
if (n.is("message")) {
|
|
8840
8847
|
const i = n.attrs.from, t = n.getChildren("x");
|
|
8841
8848
|
for (const r of t)
|
|
8842
8849
|
if (r.getChild("invite")) {
|
|
8843
|
-
if (
|
|
8850
|
+
if ($.getState().rooms.rooms[i])
|
|
8844
8851
|
return;
|
|
8845
8852
|
e.presenceInRoomStanza(i);
|
|
8846
8853
|
const A = await Po();
|
|
8847
8854
|
A.items.map((o) => {
|
|
8848
|
-
|
|
8855
|
+
$.dispatch(
|
|
8849
8856
|
bo({
|
|
8850
|
-
room:
|
|
8857
|
+
room: Jr(o, e.conference),
|
|
8851
8858
|
xmpp: e
|
|
8852
8859
|
})
|
|
8853
8860
|
);
|
|
8854
|
-
}),
|
|
8861
|
+
}), $.dispatch(Qu({ rooms: A.items }));
|
|
8855
8862
|
}
|
|
8856
8863
|
}
|
|
8857
8864
|
}, Xy = (n) => {
|
|
@@ -8866,8 +8873,8 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8866
8873
|
const o = n == null ? void 0 : n.getChild("fin");
|
|
8867
8874
|
if ((s = o == null ? void 0 : o.attrs) != null && s.complete) {
|
|
8868
8875
|
const d = a == null ? void 0 : a.getChildText("first"), f = a == null ? void 0 : a.getChildText("last"), c = sb(o.attrs.complete), l = ud(f), h = ud(d);
|
|
8869
|
-
|
|
8870
|
-
|
|
8876
|
+
$.dispatch(
|
|
8877
|
+
$.dispatch(
|
|
8871
8878
|
wi({
|
|
8872
8879
|
jid: A,
|
|
8873
8880
|
updates: {
|
|
@@ -8885,12 +8892,12 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8885
8892
|
}
|
|
8886
8893
|
}
|
|
8887
8894
|
}, Ky = (n, e) => {
|
|
8888
|
-
|
|
8895
|
+
$.dispatch(ze({ roomJID: n.attrs.from })), e.getRoomsStanza();
|
|
8889
8896
|
}, Zy = (n, e) => {
|
|
8890
8897
|
var i, t;
|
|
8891
8898
|
n.attrs.id === "getUserRooms" && Array.isArray((i = n.getChild("query")) == null ? void 0 : i.children) && ((t = n.getChild("query")) == null || t.children.forEach(async (r) => {
|
|
8892
8899
|
var A, o, d, f, c, l, h, g;
|
|
8893
|
-
const s =
|
|
8900
|
+
const s = $.getState().rooms.rooms;
|
|
8894
8901
|
if (!Object.values(s).some(
|
|
8895
8902
|
(p) => {
|
|
8896
8903
|
var v;
|
|
@@ -8910,7 +8917,7 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8910
8917
|
unreadMessages: 0,
|
|
8911
8918
|
lastViewedTimestamp: 0
|
|
8912
8919
|
};
|
|
8913
|
-
|
|
8920
|
+
$.dispatch(Mu({ roomData: { ...p } })), $.getState().rooms.activeRoomJID || $.dispatch(ze({ roomJID: p.jid })), p.jid && e.presenceInRoomStanza(p.jid);
|
|
8914
8921
|
} catch {
|
|
8915
8922
|
}
|
|
8916
8923
|
}));
|
|
@@ -8923,7 +8930,7 @@ const Kr = (n, e = "conference.dev.xmpp.ethoradev.com", i = 0) => {
|
|
|
8923
8930
|
const t = i.map((r) => r.attrs.code);
|
|
8924
8931
|
if (t.includes("110") && t.includes("321")) {
|
|
8925
8932
|
const r = n.attrs.from.split("/")[0];
|
|
8926
|
-
|
|
8933
|
+
$.dispatch(wo({ jid: r })), await Po();
|
|
8927
8934
|
}
|
|
8928
8935
|
}
|
|
8929
8936
|
};
|
|
@@ -9053,7 +9060,7 @@ const t3 = (n, e, i) => {
|
|
|
9053
9060
|
};
|
|
9054
9061
|
function s3(n) {
|
|
9055
9062
|
{
|
|
9056
|
-
const e =
|
|
9063
|
+
const e = $.getState().rooms.rooms;
|
|
9057
9064
|
Object.keys(e).forEach((i) => {
|
|
9058
9065
|
nu(n, i);
|
|
9059
9066
|
});
|
|
@@ -9156,7 +9163,7 @@ class a3 {
|
|
|
9156
9163
|
var e;
|
|
9157
9164
|
try {
|
|
9158
9165
|
const i = this.devServer || "wss://xmpp.ethoradev.com:5443/ws";
|
|
9159
|
-
this.host = ((e = i.match(/wss:\/\/([^:/]+)/)) == null ? void 0 : e[1]) || "", this.conference = `conference.${this.host}`, console.log("+-+-+-+-+-+-+-+-+ ", { username: this.username }), this.devServer = i, this.client =
|
|
9166
|
+
this.host = ((e = i.match(/wss:\/\/([^:/]+)/)) == null ? void 0 : e[1]) || "", this.conference = `conference.${this.host}`, console.log("+-+-+-+-+-+-+-+-+ ", { username: this.username }), this.devServer = i, this.client = gs.client({
|
|
9160
9167
|
service: i,
|
|
9161
9168
|
username: this.username,
|
|
9162
9169
|
password: this.password
|
|
@@ -9315,7 +9322,7 @@ class a3 {
|
|
|
9315
9322
|
});
|
|
9316
9323
|
}
|
|
9317
9324
|
}
|
|
9318
|
-
const
|
|
9325
|
+
const Kr = (n, e) => {
|
|
9319
9326
|
if (n && n && Object.keys(n).length > 0) {
|
|
9320
9327
|
const i = Object.entries(n).map(
|
|
9321
9328
|
([t, r]) => ({
|
|
@@ -9325,7 +9332,7 @@ const Zr = (n, e) => {
|
|
|
9325
9332
|
);
|
|
9326
9333
|
console.log("getting roomTimestampArray", i), i.forEach(({ jid: t, timestamp: r }) => {
|
|
9327
9334
|
t && e(
|
|
9328
|
-
|
|
9335
|
+
wr({
|
|
9329
9336
|
chatJID: t,
|
|
9330
9337
|
timestamp: Number(r || 0)
|
|
9331
9338
|
})
|
|
@@ -9338,7 +9345,7 @@ const Zr = (n, e) => {
|
|
|
9338
9345
|
n.presenceInRoomStanza(r), console.log("Persisted history");
|
|
9339
9346
|
})
|
|
9340
9347
|
).then(() => i()).catch(t);
|
|
9341
|
-
}) : null),
|
|
9348
|
+
}) : null), Zr = async (n, e, i = 5, t = 4, r = 5) => {
|
|
9342
9349
|
const s = Object.keys(n);
|
|
9343
9350
|
if (s.length > 0) {
|
|
9344
9351
|
let a = 0;
|
|
@@ -9348,7 +9355,7 @@ const Zr = (n, e) => {
|
|
|
9348
9355
|
a + i
|
|
9349
9356
|
), o = A.reduce(
|
|
9350
9357
|
(d, f) => (d[f] = nw(
|
|
9351
|
-
|
|
9358
|
+
$.getState().rooms,
|
|
9352
9359
|
f
|
|
9353
9360
|
), d),
|
|
9354
9361
|
{}
|
|
@@ -9373,7 +9380,7 @@ const Zr = (n, e) => {
|
|
|
9373
9380
|
...g
|
|
9374
9381
|
], h = g.some(
|
|
9375
9382
|
(b) => Number(b.id) === Number(p)
|
|
9376
|
-
), !h && !(l <= t - 1) &&
|
|
9383
|
+
), !h && !(l <= t - 1) && $.dispatch(
|
|
9377
9384
|
iw({
|
|
9378
9385
|
roomJID: d,
|
|
9379
9386
|
messages: g
|
|
@@ -9397,7 +9404,7 @@ const Zr = (n, e) => {
|
|
|
9397
9404
|
}
|
|
9398
9405
|
if (i) {
|
|
9399
9406
|
const A = await i.getChatsPrivateStoreRequestStanza();
|
|
9400
|
-
|
|
9407
|
+
Kr(A, $.dispatch), await Zr(t, i);
|
|
9401
9408
|
} else {
|
|
9402
9409
|
if (console.log("No xmmpClient, initializing one"), !(t && Object.keys(t).length > 0)) {
|
|
9403
9410
|
if (e != null && e.newArch)
|
|
@@ -9406,13 +9413,13 @@ const Zr = (n, e) => {
|
|
|
9406
9413
|
console.log(o);
|
|
9407
9414
|
}
|
|
9408
9415
|
const A = await i.getChatsPrivateStoreRequestStanza();
|
|
9409
|
-
|
|
9416
|
+
Kr(A, $.dispatch), await Zr(t, i);
|
|
9410
9417
|
}
|
|
9411
9418
|
(s = e == null ? void 0 : e.refreshTokens) != null && s.enabled && ((a = e == null ? void 0 : e.refreshTokens) == null || a.refreshFunction());
|
|
9412
9419
|
} catch (A) {
|
|
9413
9420
|
console.error(A);
|
|
9414
9421
|
} finally {
|
|
9415
|
-
|
|
9422
|
+
$.dispatch(Fe({ loading: !1 }));
|
|
9416
9423
|
}
|
|
9417
9424
|
}, w1 = kl(null), MB = ({
|
|
9418
9425
|
children: n,
|
|
@@ -9444,7 +9451,7 @@ const Zr = (n, e) => {
|
|
|
9444
9451
|
const l = async () => {
|
|
9445
9452
|
var h, g, p, v, k;
|
|
9446
9453
|
f(
|
|
9447
|
-
|
|
9454
|
+
zr((p = (g = (h = e == null ? void 0 : e.userLogin) == null ? void 0 : h.user) == null ? void 0 : g.defaultWallet) == null ? void 0 : p.walletAddress),
|
|
9448
9455
|
(k = (v = e == null ? void 0 : e.userLogin) == null ? void 0 : v.user) == null ? void 0 : k.xmppPassword,
|
|
9449
9456
|
e == null ? void 0 : e.xmppSettings
|
|
9450
9457
|
).then(async (b) => {
|
|
@@ -9841,7 +9848,7 @@ function E3(n = ri) {
|
|
|
9841
9848
|
}
|
|
9842
9849
|
var ke = /* @__PURE__ */ E3();
|
|
9843
9850
|
u3(d3.useSyncExternalStoreWithSelector);
|
|
9844
|
-
const B3 = () =>
|
|
9851
|
+
const B3 = () => $.getState();
|
|
9845
9852
|
window.useStoreConsole = B3;
|
|
9846
9853
|
var Re = function() {
|
|
9847
9854
|
return Re = Object.assign || function(e) {
|
|
@@ -9889,7 +9896,7 @@ function En(n, e) {
|
|
|
9889
9896
|
function Ae(n, e, i) {
|
|
9890
9897
|
return n.replace(e, i);
|
|
9891
9898
|
}
|
|
9892
|
-
function
|
|
9899
|
+
function Cr(n, e, i) {
|
|
9893
9900
|
return n.indexOf(e, i);
|
|
9894
9901
|
}
|
|
9895
9902
|
function Ie(n, e) {
|
|
@@ -9939,7 +9946,7 @@ function sn() {
|
|
|
9939
9946
|
function yi() {
|
|
9940
9947
|
return Ie(at, _e);
|
|
9941
9948
|
}
|
|
9942
|
-
function
|
|
9949
|
+
function xr() {
|
|
9943
9950
|
return _e;
|
|
9944
9951
|
}
|
|
9945
9952
|
function Ls(n, e) {
|
|
@@ -9994,7 +10001,7 @@ function L3(n) {
|
|
|
9994
10001
|
function R3(n, e) {
|
|
9995
10002
|
for (; --e && sn() && !(Be < 48 || Be > 102 || Be > 57 && Be < 65 || Be > 70 && Be < 97); )
|
|
9996
10003
|
;
|
|
9997
|
-
return Ls(n,
|
|
10004
|
+
return Ls(n, xr() + (e < 6 && yi() == 32 && sn() == 32));
|
|
9998
10005
|
}
|
|
9999
10006
|
function EA(n) {
|
|
10000
10007
|
for (; sn(); )
|
|
@@ -10026,14 +10033,14 @@ function Y3(n) {
|
|
|
10026
10033
|
return Ls(n, _e);
|
|
10027
10034
|
}
|
|
10028
10035
|
function H3(n) {
|
|
10029
|
-
return F3(
|
|
10036
|
+
return F3(Er("", null, null, null, [""], n = Q3(n), 0, [0], n));
|
|
10030
10037
|
}
|
|
10031
|
-
function
|
|
10038
|
+
function Er(n, e, i, t, r, s, a, A, o) {
|
|
10032
10039
|
for (var d = 0, f = 0, c = a, l = 0, h = 0, g = 0, p = 1, v = 1, k = 1, b = 0, m = "", C = r, y = s, w = t, x = m; v; )
|
|
10033
10040
|
switch (g = b, b = sn()) {
|
|
10034
10041
|
case 40:
|
|
10035
10042
|
if (g != 108 && Ie(x, c - 1) == 58) {
|
|
10036
|
-
|
|
10043
|
+
Cr(x += Ae(Da(b), "&", "&\f"), "&\f", E1(d ? A[d - 1] : 0)) != -1 && (k = -1);
|
|
10037
10044
|
break;
|
|
10038
10045
|
}
|
|
10039
10046
|
case 34:
|
|
@@ -10048,13 +10055,13 @@ function Br(n, e, i, t, r, s, a, A, o) {
|
|
|
10048
10055
|
x += L3(g);
|
|
10049
10056
|
break;
|
|
10050
10057
|
case 92:
|
|
10051
|
-
x += R3(
|
|
10058
|
+
x += R3(xr() - 1, 7);
|
|
10052
10059
|
continue;
|
|
10053
10060
|
case 47:
|
|
10054
10061
|
switch (yi()) {
|
|
10055
10062
|
case 42:
|
|
10056
10063
|
case 47:
|
|
10057
|
-
gt(G3(W3(sn(),
|
|
10064
|
+
gt(G3(W3(sn(), xr()), e, i, o), o);
|
|
10058
10065
|
break;
|
|
10059
10066
|
default:
|
|
10060
10067
|
x += "/";
|
|
@@ -10077,17 +10084,17 @@ function Br(n, e, i, t, r, s, a, A, o) {
|
|
|
10077
10084
|
default:
|
|
10078
10085
|
if (gt(w = Fd(x, e, i, d, f, r, A, m, C = [], y = [], c, s), s), b === 123)
|
|
10079
10086
|
if (f === 0)
|
|
10080
|
-
|
|
10087
|
+
Er(x, e, w, w, C, s, c, A, y);
|
|
10081
10088
|
else
|
|
10082
10089
|
switch (l === 99 && Ie(x, 3) === 110 ? 100 : l) {
|
|
10083
10090
|
case 100:
|
|
10084
10091
|
case 108:
|
|
10085
10092
|
case 109:
|
|
10086
10093
|
case 115:
|
|
10087
|
-
|
|
10094
|
+
Er(n, w, w, t && gt(Fd(n, w, w, 0, 0, r, A, m, r, C = [], c, y), y), r, y, c, A, t ? C : y);
|
|
10088
10095
|
break;
|
|
10089
10096
|
default:
|
|
10090
|
-
|
|
10097
|
+
Er(x, w, w, w, [""], y, 0, A, y);
|
|
10091
10098
|
}
|
|
10092
10099
|
}
|
|
10093
10100
|
d = f = h = 0, p = k = 1, m = x = "", c = a;
|
|
@@ -10109,7 +10116,7 @@ function Br(n, e, i, t, r, s, a, A, o) {
|
|
|
10109
10116
|
A[d++] = (cn(x) - 1) * k, k = 1;
|
|
10110
10117
|
break;
|
|
10111
10118
|
case 64:
|
|
10112
|
-
yi() === 45 && (x += Da(sn())), l = yi(), f = c = cn(m = x += Y3(
|
|
10119
|
+
yi() === 45 && (x += Da(sn())), l = yi(), f = c = cn(m = x += Y3(xr())), b++;
|
|
10113
10120
|
break;
|
|
10114
10121
|
case 45:
|
|
10115
10122
|
g === 45 && cn(x) == 2 && (p = 0);
|
|
@@ -10213,7 +10220,7 @@ function N1(n, e, i) {
|
|
|
10213
10220
|
case 3616:
|
|
10214
10221
|
return i && i.some(function(t, r) {
|
|
10215
10222
|
return e = r, En(t.props, /grid-\w+-end/);
|
|
10216
|
-
}) ? ~
|
|
10223
|
+
}) ? ~Cr(n + (i = i[e].value), "span", 0) ? n : ye + Ae(n, "-start", "") + n + ye + "grid-row-span:" + (~Cr(i, "span", 0) ? En(i, /\d+/) : +En(i, /\d+/) - +En(n, /\d+/)) + ";" : ye + Ae(n, "-start", "") + n;
|
|
10217
10224
|
case 4896:
|
|
10218
10225
|
case 4128:
|
|
10219
10226
|
return i && i.some(function(t) {
|
|
@@ -10244,7 +10251,7 @@ function N1(n, e, i) {
|
|
|
10244
10251
|
case 102:
|
|
10245
10252
|
return Ae(n, /(.+:)(.+)-([^]+)/, "$1" + he + "$2-$3$1" + wt + (Ie(n, e + 3) == 108 ? "$3" : "$2-$3")) + n;
|
|
10246
10253
|
case 115:
|
|
10247
|
-
return ~
|
|
10254
|
+
return ~Cr(n, "stretch", 0) ? N1(Ae(n, "stretch", "fill-available"), e, i) + n : n;
|
|
10248
10255
|
}
|
|
10249
10256
|
break;
|
|
10250
10257
|
case 5152:
|
|
@@ -10273,7 +10280,7 @@ function N1(n, e, i) {
|
|
|
10273
10280
|
}
|
|
10274
10281
|
return n;
|
|
10275
10282
|
}
|
|
10276
|
-
function
|
|
10283
|
+
function _r(n, e) {
|
|
10277
10284
|
for (var i = "", t = 0; t < n.length; t++)
|
|
10278
10285
|
i += e(n[t], t, n, e) || "";
|
|
10279
10286
|
return i;
|
|
@@ -10288,11 +10295,11 @@ function z3(n, e, i, t) {
|
|
|
10288
10295
|
case C1:
|
|
10289
10296
|
return "";
|
|
10290
10297
|
case x1:
|
|
10291
|
-
return n.return = n.value + "{" +
|
|
10298
|
+
return n.return = n.value + "{" + _r(n.children, t) + "}";
|
|
10292
10299
|
case js:
|
|
10293
10300
|
if (!cn(n.value = n.props.join(","))) return "";
|
|
10294
10301
|
}
|
|
10295
|
-
return cn(i =
|
|
10302
|
+
return cn(i = _r(n.children, t)) ? n.return = n.value + "{" + i + "}" : "";
|
|
10296
10303
|
}
|
|
10297
10304
|
function q3(n) {
|
|
10298
10305
|
var e = D1(n);
|
|
@@ -10314,7 +10321,7 @@ function U3(n, e, i, t) {
|
|
|
10314
10321
|
n.return = N1(n.value, n.length, i);
|
|
10315
10322
|
return;
|
|
10316
10323
|
case x1:
|
|
10317
|
-
return
|
|
10324
|
+
return _r([Vn(n, { value: Ae(n.value, "@", "@" + he) })], t);
|
|
10318
10325
|
case js:
|
|
10319
10326
|
if (n.length)
|
|
10320
10327
|
return M3(i = n.props, function(r) {
|
|
@@ -10380,7 +10387,7 @@ var X3 = {
|
|
|
10380
10387
|
strokeOpacity: 1,
|
|
10381
10388
|
strokeWidth: 1
|
|
10382
10389
|
}, Ii = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", S1 = "active", P1 = "data-styled-version", Rs = "6.1.11", Qo = `/*!sc*/
|
|
10383
|
-
`, Fo = typeof window < "u" && "HTMLElement" in window, J3 = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Rd = /invalid hook call/i,
|
|
10390
|
+
`, Fo = typeof window < "u" && "HTMLElement" in window, J3 = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Rd = /invalid hook call/i, ir = /* @__PURE__ */ new Set(), K3 = function(n, e) {
|
|
10384
10391
|
if (process.env.NODE_ENV !== "production") {
|
|
10385
10392
|
var i = e ? ' with the id of "'.concat(e, '"') : "", t = "The component ".concat(n).concat(i, ` has been created dynamically.
|
|
10386
10393
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -10389,10 +10396,10 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
|
10389
10396
|
var s = !0;
|
|
10390
10397
|
console.error = function(a) {
|
|
10391
10398
|
for (var A = [], o = 1; o < arguments.length; o++) A[o - 1] = arguments[o];
|
|
10392
|
-
Rd.test(a) ? (s = !1,
|
|
10393
|
-
}, me(), s && !
|
|
10399
|
+
Rd.test(a) ? (s = !1, ir.delete(t)) : r.apply(void 0, Di([a], A, !1));
|
|
10400
|
+
}, me(), s && !ir.has(t) && (console.warn(t), ir.add(t));
|
|
10394
10401
|
} catch (a) {
|
|
10395
|
-
Rd.test(a.message) &&
|
|
10402
|
+
Rd.test(a.message) && ir.delete(t);
|
|
10396
10403
|
} finally {
|
|
10397
10404
|
console.error = r;
|
|
10398
10405
|
}
|
|
@@ -10405,13 +10412,13 @@ var BA = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "as
|
|
|
10405
10412
|
function Wd(n) {
|
|
10406
10413
|
return n.replace(_3, "-").replace($3, "");
|
|
10407
10414
|
}
|
|
10408
|
-
var ek = /(a)(d)/gi,
|
|
10415
|
+
var ek = /(a)(d)/gi, tr = 52, Yd = function(n) {
|
|
10409
10416
|
return String.fromCharCode(n + (n > 25 ? 39 : 97));
|
|
10410
10417
|
};
|
|
10411
10418
|
function DA(n) {
|
|
10412
10419
|
var e, i = "";
|
|
10413
|
-
for (e = Math.abs(n); e >
|
|
10414
|
-
return (Yd(e %
|
|
10420
|
+
for (e = Math.abs(n); e > tr; e = e / tr | 0) i = Yd(e % tr) + i;
|
|
10421
|
+
return (Yd(e % tr) + i).replace(ek, "$1-$2");
|
|
10415
10422
|
}
|
|
10416
10423
|
var Ia, O1 = 5381, gi = function(n, e) {
|
|
10417
10424
|
for (var i = e.length; i; ) n = 33 * n ^ e.charCodeAt(--i);
|
|
@@ -10560,14 +10567,14 @@ var ck = function() {
|
|
|
10560
10567
|
for (var t = this.groupSizes[e], r = this.indexOfGroup(e), s = r + t, a = r; a < s; a++) i += "".concat(this.tag.getRule(a)).concat(Qo);
|
|
10561
10568
|
return i;
|
|
10562
10569
|
}, n;
|
|
10563
|
-
}(), lk = 1 << 30,
|
|
10564
|
-
if (
|
|
10565
|
-
for (;
|
|
10566
|
-
var e =
|
|
10570
|
+
}(), lk = 1 << 30, Br = /* @__PURE__ */ new Map(), $r = /* @__PURE__ */ new Map(), Dr = 1, rr = function(n) {
|
|
10571
|
+
if (Br.has(n)) return Br.get(n);
|
|
10572
|
+
for (; $r.has(Dr); ) Dr++;
|
|
10573
|
+
var e = Dr++;
|
|
10567
10574
|
if (process.env.NODE_ENV !== "production" && ((0 | e) < 0 || e > lk)) throw At(16, "".concat(e));
|
|
10568
|
-
return
|
|
10575
|
+
return Br.set(n, e), $r.set(e, n), e;
|
|
10569
10576
|
}, uk = function(n, e) {
|
|
10570
|
-
|
|
10577
|
+
Dr = e + 1, Br.set(n, e), $r.set(e, n);
|
|
10571
10578
|
}, hk = "style[".concat(Ii, "][").concat(P1, '="').concat(Rs, '"]'), gk = new RegExp("^".concat(Ii, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), mk = function(n, e, i) {
|
|
10572
10579
|
for (var t, r = i.split(","), s = 0, a = r.length; s < a; s++) (t = r[s]) && n.registerName(e, t);
|
|
10573
10580
|
}, pk = function(n, e) {
|
|
@@ -10655,7 +10662,7 @@ var W1 = function(n) {
|
|
|
10655
10662
|
return function(s) {
|
|
10656
10663
|
for (var a = s.getTag(), A = a.length, o = "", d = function(c) {
|
|
10657
10664
|
var l = function(k) {
|
|
10658
|
-
return
|
|
10665
|
+
return $r.get(k);
|
|
10659
10666
|
}(c);
|
|
10660
10667
|
if (l === void 0) return "continue";
|
|
10661
10668
|
var h = s.names.get(l), g = a.getGroup(c);
|
|
@@ -10670,7 +10677,7 @@ var W1 = function(n) {
|
|
|
10670
10677
|
});
|
|
10671
10678
|
}
|
|
10672
10679
|
return n.registerId = function(e) {
|
|
10673
|
-
return
|
|
10680
|
+
return rr(e);
|
|
10674
10681
|
}, n.prototype.reconstructWithOptions = function(e, i) {
|
|
10675
10682
|
return i === void 0 && (i = !0), new n(Re(Re({}, this.options), e), this.gs, i && this.names || void 0);
|
|
10676
10683
|
}, n.prototype.allocateGSInstance = function(e) {
|
|
@@ -10684,17 +10691,17 @@ var W1 = function(n) {
|
|
|
10684
10691
|
}, n.prototype.hasNameForId = function(e, i) {
|
|
10685
10692
|
return this.names.has(e) && this.names.get(e).has(i);
|
|
10686
10693
|
}, n.prototype.registerName = function(e, i) {
|
|
10687
|
-
if (
|
|
10694
|
+
if (rr(e), this.names.has(e)) this.names.get(e).add(i);
|
|
10688
10695
|
else {
|
|
10689
10696
|
var t = /* @__PURE__ */ new Set();
|
|
10690
10697
|
t.add(i), this.names.set(e, t);
|
|
10691
10698
|
}
|
|
10692
10699
|
}, n.prototype.insertRules = function(e, i, t) {
|
|
10693
|
-
this.registerName(e, i), this.getTag().insertRules(
|
|
10700
|
+
this.registerName(e, i), this.getTag().insertRules(rr(e), t);
|
|
10694
10701
|
}, n.prototype.clearNames = function(e) {
|
|
10695
10702
|
this.names.has(e) && this.names.get(e).clear();
|
|
10696
10703
|
}, n.prototype.clearRules = function(e) {
|
|
10697
|
-
this.getTag().clearGroup(
|
|
10704
|
+
this.getTag().clearGroup(rr(e)), this.clearNames(e);
|
|
10698
10705
|
}, n.prototype.clearTag = function() {
|
|
10699
10706
|
this.tag = void 0;
|
|
10700
10707
|
}, n;
|
|
@@ -10718,7 +10725,7 @@ function Ek(n) {
|
|
|
10718
10725
|
var v = l.replace(xk, ""), k = H3(g || h ? "".concat(g, " ").concat(h, " { ").concat(v, " }") : v);
|
|
10719
10726
|
a.namespace && (k = H1(k, a.namespace));
|
|
10720
10727
|
var b = [];
|
|
10721
|
-
return
|
|
10728
|
+
return _r(k, q3(f.concat(V3(function(m) {
|
|
10722
10729
|
return b.push(m);
|
|
10723
10730
|
})))), b;
|
|
10724
10731
|
};
|
|
@@ -10845,11 +10852,11 @@ function Pk(n, e, i) {
|
|
|
10845
10852
|
var P = w.attrs, E = w.componentStyle, B = w.defaultProps, j = w.foldedComponentIds, I = w.styledComponentId, F = w.target, Y = Ye.useContext(V1), G = Vd(), J = w.shouldForwardProp || G.shouldForwardProp;
|
|
10846
10853
|
process.env.NODE_ENV !== "production" && cf(I);
|
|
10847
10854
|
var ne = Z3(x, Y, B) || Ui, V = function(Z, W, U) {
|
|
10848
|
-
for (var K,
|
|
10849
|
-
var ce = Xi(K = Z[re]) ? K(
|
|
10850
|
-
for (var z in ce)
|
|
10855
|
+
for (var K, _ = Re(Re({}, W), { className: void 0, theme: U }), re = 0; re < Z.length; re += 1) {
|
|
10856
|
+
var ce = Xi(K = Z[re]) ? K(_) : K;
|
|
10857
|
+
for (var z in ce) _[z] = z === "className" ? mi(_[z], ce[z]) : z === "style" ? Re(Re({}, _[z]), ce[z]) : ce[z];
|
|
10851
10858
|
}
|
|
10852
|
-
return W.className && (
|
|
10859
|
+
return W.className && (_.className = mi(_.className, W.className)), _;
|
|
10853
10860
|
}(P, x, ne), R = V.as || F, O = {};
|
|
10854
10861
|
for (var T in V) V[T] === void 0 || T[0] === "$" || T === "as" || T === "theme" && V.theme === ne || (T === "forwardedAs" ? O.as = V.forwardedAs : J && !J(T, R) || (O[T] = V[T], J || process.env.NODE_ENV !== "development" || N3(T) || Xd.has(T) || !BA.has(R) || (Xd.add(T), console.warn('styled-components: it looks like an unknown prop "'.concat(T, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
10855
10862
|
var Q = function(Z, W) {
|
|
@@ -10932,10 +10939,10 @@ function Ln(n) {
|
|
|
10932
10939
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
10933
10940
|
Perhaps you're looking to import 'styled-components/native'?
|
|
10934
10941
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
10935
|
-
var
|
|
10936
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[
|
|
10942
|
+
var sr = "__sc-".concat(Ii, "__");
|
|
10943
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[sr] || (window[sr] = 0), window[sr] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
10937
10944
|
|
|
10938
|
-
See https://s-c.sh/2BAXzed for more info.`), window[
|
|
10945
|
+
See https://s-c.sh/2BAXzed for more info.`), window[sr] += 1);
|
|
10939
10946
|
const X1 = N.div`
|
|
10940
10947
|
display: flex;
|
|
10941
10948
|
flex-direction: column;
|
|
@@ -11152,7 +11159,7 @@ const Jk = N.div`
|
|
|
11152
11159
|
font-size: 12px;
|
|
11153
11160
|
bottom: -24px;
|
|
11154
11161
|
}
|
|
11155
|
-
`,
|
|
11162
|
+
`, es = N.div`
|
|
11156
11163
|
display: flex;
|
|
11157
11164
|
align-items: center;
|
|
11158
11165
|
justify-content: center;
|
|
@@ -11374,13 +11381,13 @@ const Jk = N.div`
|
|
|
11374
11381
|
height: 24px;
|
|
11375
11382
|
white-space: nowrap;
|
|
11376
11383
|
`, u4 = ({ reply: n, colors: e }) => /* @__PURE__ */ D(c4, { children: [
|
|
11377
|
-
/* @__PURE__ */ u(
|
|
11384
|
+
/* @__PURE__ */ u(es, {}),
|
|
11378
11385
|
/* @__PURE__ */ D(l4, { ...e, children: [
|
|
11379
11386
|
n,
|
|
11380
11387
|
" ",
|
|
11381
11388
|
n > 1 ? "replies" : "reply"
|
|
11382
11389
|
] }),
|
|
11383
|
-
/* @__PURE__ */ u(
|
|
11390
|
+
/* @__PURE__ */ u(es, {})
|
|
11384
11391
|
] }), h4 = N.div`
|
|
11385
11392
|
display: flex;
|
|
11386
11393
|
align-items: center;
|
|
@@ -11416,9 +11423,9 @@ const Jk = N.div`
|
|
|
11416
11423
|
a = n.toLocaleDateString("en-US", A);
|
|
11417
11424
|
}
|
|
11418
11425
|
return /* @__PURE__ */ D(h4, { children: [
|
|
11419
|
-
/* @__PURE__ */ u(
|
|
11426
|
+
/* @__PURE__ */ u(es, {}),
|
|
11420
11427
|
/* @__PURE__ */ u(g4, { ...e, children: a }),
|
|
11421
|
-
/* @__PURE__ */ u(
|
|
11428
|
+
/* @__PURE__ */ u(es, {})
|
|
11422
11429
|
] });
|
|
11423
11430
|
}, m4 = N.div`
|
|
11424
11431
|
margin: 0;
|
|
@@ -12484,8 +12491,8 @@ const Jk = N.div`
|
|
|
12484
12491
|
if (!W) return Promise.resolve();
|
|
12485
12492
|
const U = W.getElementsByTagName("img");
|
|
12486
12493
|
if (U.length === 0) return Promise.resolve();
|
|
12487
|
-
const K = Array.from(U).map((
|
|
12488
|
-
|
|
12494
|
+
const K = Array.from(U).map((_) => _.complete ? Promise.resolve() : new Promise((re) => {
|
|
12495
|
+
_.onload = re, _.onerror = re;
|
|
12489
12496
|
}));
|
|
12490
12497
|
return Promise.all(K);
|
|
12491
12498
|
}, []), G = ie(async () => {
|
|
@@ -12495,10 +12502,10 @@ const Jk = N.div`
|
|
|
12495
12502
|
y.findIndex(
|
|
12496
12503
|
(K) => K.id === "delimiter-new"
|
|
12497
12504
|
) !== -1 ? setTimeout(() => {
|
|
12498
|
-
const K = W.querySelectorAll("[data-message-id]"),
|
|
12505
|
+
const K = W.querySelectorAll("[data-message-id]"), _ = Array.from(K).find(
|
|
12499
12506
|
(re) => re.getAttribute("data-message-id") === "delimiter-new"
|
|
12500
12507
|
);
|
|
12501
|
-
|
|
12508
|
+
_ ? _.scrollIntoView({
|
|
12502
12509
|
behavior: "auto",
|
|
12503
12510
|
block: "center"
|
|
12504
12511
|
}) : W.scrollTop = W.scrollHeight;
|
|
@@ -12524,8 +12531,8 @@ const Jk = N.div`
|
|
|
12524
12531
|
const W = F();
|
|
12525
12532
|
if (!W || W.top >= 150 || E.current) return;
|
|
12526
12533
|
j.current = F();
|
|
12527
|
-
const [U, K] = y,
|
|
12528
|
-
|
|
12534
|
+
const [U, K] = y, _ = (U == null ? void 0 : U.id) === "delimiter-new" ? K == null ? void 0 : K.id : U == null ? void 0 : U.id;
|
|
12535
|
+
_ && (E.current = !0, e(U.roomJid, 30, Number(_)).finally(
|
|
12529
12536
|
() => {
|
|
12530
12537
|
E.current = !1, P.current = y[y.length - 1];
|
|
12531
12538
|
}
|
|
@@ -12596,14 +12603,14 @@ const Jk = N.div`
|
|
|
12596
12603
|
)
|
|
12597
12604
|
] }),
|
|
12598
12605
|
y.map((W) => {
|
|
12599
|
-
var
|
|
12606
|
+
var _;
|
|
12600
12607
|
const U = new Date(W.date).toDateString(), K = U !== O;
|
|
12601
12608
|
return O = U, W.id === "delimiter-new" ? /* @__PURE__ */ u(
|
|
12602
12609
|
"div",
|
|
12603
12610
|
{
|
|
12604
12611
|
"data-message-id": "delimiter-new",
|
|
12605
12612
|
className: "message-container",
|
|
12606
|
-
children: /* @__PURE__ */ u(K1, { color: (
|
|
12613
|
+
children: /* @__PURE__ */ u(K1, { color: (_ = t == null ? void 0 : t.colors) == null ? void 0 : _.primary })
|
|
12607
12614
|
},
|
|
12608
12615
|
W.id
|
|
12609
12616
|
) : /* @__PURE__ */ u(
|
|
@@ -12712,7 +12719,7 @@ const G4 = N.div`
|
|
|
12712
12719
|
`, U4 = N.video`
|
|
12713
12720
|
max-width: 80%;
|
|
12714
12721
|
max-height: 80%;
|
|
12715
|
-
`,
|
|
12722
|
+
`, ns = N.input`
|
|
12716
12723
|
padding: 16px 12px;
|
|
12717
12724
|
background-color: #f5f7f9;
|
|
12718
12725
|
border: none;
|
|
@@ -13142,7 +13149,7 @@ const G4 = N.div`
|
|
|
13142
13149
|
]
|
|
13143
13150
|
}
|
|
13144
13151
|
);
|
|
13145
|
-
},
|
|
13152
|
+
}, Bt = ({
|
|
13146
13153
|
options: n,
|
|
13147
13154
|
openButton: e,
|
|
13148
13155
|
position: i = "right",
|
|
@@ -13384,7 +13391,7 @@ const lh = N.div`
|
|
|
13384
13391
|
margin-left: 8px;
|
|
13385
13392
|
position: absolute;
|
|
13386
13393
|
top: 42px;
|
|
13387
|
-
`,
|
|
13394
|
+
`, Ir = ({
|
|
13388
13395
|
label: n,
|
|
13389
13396
|
color: e,
|
|
13390
13397
|
helperText: i,
|
|
@@ -13800,10 +13807,10 @@ function j6() {
|
|
|
13800
13807
|
const Q6 = "FirebaseError";
|
|
13801
13808
|
class oi extends Error {
|
|
13802
13809
|
constructor(e, i, t) {
|
|
13803
|
-
super(i), this.code = e, this.customData = t, this.name = Q6, Object.setPrototypeOf(this, oi.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
13810
|
+
super(i), this.code = e, this.customData = t, this.name = Q6, Object.setPrototypeOf(this, oi.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Ft.prototype.create);
|
|
13804
13811
|
}
|
|
13805
13812
|
}
|
|
13806
|
-
class
|
|
13813
|
+
class Ft {
|
|
13807
13814
|
constructor(e, i, t) {
|
|
13808
13815
|
this.service = e, this.serviceName = i, this.errors = t;
|
|
13809
13816
|
}
|
|
@@ -13825,7 +13832,7 @@ function R6(n) {
|
|
|
13825
13832
|
return !1;
|
|
13826
13833
|
return !0;
|
|
13827
13834
|
}
|
|
13828
|
-
function
|
|
13835
|
+
function is(n, e) {
|
|
13829
13836
|
if (n === e)
|
|
13830
13837
|
return !0;
|
|
13831
13838
|
const i = Object.keys(n), t = Object.keys(e);
|
|
@@ -13834,7 +13841,7 @@ function ts(n, e) {
|
|
|
13834
13841
|
return !1;
|
|
13835
13842
|
const s = n[r], a = e[r];
|
|
13836
13843
|
if (ec(s) && ec(a)) {
|
|
13837
|
-
if (!
|
|
13844
|
+
if (!is(s, a))
|
|
13838
13845
|
return !1;
|
|
13839
13846
|
} else if (s !== a)
|
|
13840
13847
|
return !1;
|
|
@@ -13863,7 +13870,7 @@ function ec(n) {
|
|
|
13863
13870
|
* See the License for the specific language governing permissions and
|
|
13864
13871
|
* limitations under the License.
|
|
13865
13872
|
*/
|
|
13866
|
-
function
|
|
13873
|
+
function Lt(n) {
|
|
13867
13874
|
const e = [];
|
|
13868
13875
|
for (const [i, t] of Object.entries(n))
|
|
13869
13876
|
Array.isArray(t) ? t.forEach((r) => {
|
|
@@ -14606,7 +14613,7 @@ const LA = "[DEFAULT]", Q9 = {
|
|
|
14606
14613
|
* See the License for the specific language governing permissions and
|
|
14607
14614
|
* limitations under the License.
|
|
14608
14615
|
*/
|
|
14609
|
-
const
|
|
14616
|
+
const ts = /* @__PURE__ */ new Map(), F9 = /* @__PURE__ */ new Map(), RA = /* @__PURE__ */ new Map();
|
|
14610
14617
|
function sc(n, e) {
|
|
14611
14618
|
try {
|
|
14612
14619
|
n.container.addComponent(e);
|
|
@@ -14614,12 +14621,12 @@ function sc(n, e) {
|
|
|
14614
14621
|
Tn.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`, i);
|
|
14615
14622
|
}
|
|
14616
14623
|
}
|
|
14617
|
-
function
|
|
14624
|
+
function Dt(n) {
|
|
14618
14625
|
const e = n.name;
|
|
14619
14626
|
if (RA.has(e))
|
|
14620
14627
|
return Tn.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
14621
14628
|
RA.set(e, n);
|
|
14622
|
-
for (const i of
|
|
14629
|
+
for (const i of ts.values())
|
|
14623
14630
|
sc(i, n);
|
|
14624
14631
|
for (const i of F9.values())
|
|
14625
14632
|
sc(i, n);
|
|
@@ -14663,7 +14670,7 @@ const L9 = {
|
|
|
14663
14670
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
14664
14671
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
14665
14672
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
14666
|
-
}, ei = new
|
|
14673
|
+
}, ei = new Ft("app", "Firebase", L9);
|
|
14667
14674
|
/**
|
|
14668
14675
|
* @license
|
|
14669
14676
|
* Copyright 2019 Google LLC
|
|
@@ -14738,7 +14745,7 @@ class R9 {
|
|
|
14738
14745
|
* See the License for the specific language governing permissions and
|
|
14739
14746
|
* limitations under the License.
|
|
14740
14747
|
*/
|
|
14741
|
-
const
|
|
14748
|
+
const Rt = j9;
|
|
14742
14749
|
function Ch(n, e = {}) {
|
|
14743
14750
|
let i = n;
|
|
14744
14751
|
typeof e != "object" && (e = { name: e });
|
|
@@ -14752,9 +14759,9 @@ function Ch(n, e = {}) {
|
|
|
14752
14759
|
"no-options"
|
|
14753
14760
|
/* AppError.NO_OPTIONS */
|
|
14754
14761
|
);
|
|
14755
|
-
const s =
|
|
14762
|
+
const s = ts.get(r);
|
|
14756
14763
|
if (s) {
|
|
14757
|
-
if (
|
|
14764
|
+
if (is(i, s.options) && is(t, s.config))
|
|
14758
14765
|
return s;
|
|
14759
14766
|
throw ei.create("duplicate-app", { appName: r });
|
|
14760
14767
|
}
|
|
@@ -14762,10 +14769,10 @@ function Ch(n, e = {}) {
|
|
|
14762
14769
|
for (const o of RA.values())
|
|
14763
14770
|
a.addComponent(o);
|
|
14764
14771
|
const A = new R9(i, t, a);
|
|
14765
|
-
return
|
|
14772
|
+
return ts.set(r, A), A;
|
|
14766
14773
|
}
|
|
14767
14774
|
function W9(n = LA) {
|
|
14768
|
-
const e =
|
|
14775
|
+
const e = ts.get(n);
|
|
14769
14776
|
if (!e && n === LA && ph())
|
|
14770
14777
|
return Ch();
|
|
14771
14778
|
if (!e)
|
|
@@ -14784,7 +14791,7 @@ function Fi(n, e, i) {
|
|
|
14784
14791
|
s && A.push(`library name "${r}" contains illegal characters (whitespace or "/")`), s && a && A.push("and"), a && A.push(`version name "${e}" contains illegal characters (whitespace or "/")`), Tn.warn(A.join(" "));
|
|
14785
14792
|
return;
|
|
14786
14793
|
}
|
|
14787
|
-
|
|
14794
|
+
Dt(new $i(
|
|
14788
14795
|
`${r}-version`,
|
|
14789
14796
|
() => ({ library: r, version: e }),
|
|
14790
14797
|
"VERSION"
|
|
@@ -14807,7 +14814,7 @@ function Fi(n, e, i) {
|
|
|
14807
14814
|
* See the License for the specific language governing permissions and
|
|
14808
14815
|
* limitations under the License.
|
|
14809
14816
|
*/
|
|
14810
|
-
const Y9 = "firebase-heartbeat-database", H9 = 1,
|
|
14817
|
+
const Y9 = "firebase-heartbeat-database", H9 = 1, It = "firebase-heartbeat-store";
|
|
14811
14818
|
let Qa = null;
|
|
14812
14819
|
function xh() {
|
|
14813
14820
|
return Qa || (Qa = s9(Y9, H9, {
|
|
@@ -14815,7 +14822,7 @@ function xh() {
|
|
|
14815
14822
|
switch (e) {
|
|
14816
14823
|
case 0:
|
|
14817
14824
|
try {
|
|
14818
|
-
n.createObjectStore(
|
|
14825
|
+
n.createObjectStore(It);
|
|
14819
14826
|
} catch (i) {
|
|
14820
14827
|
console.warn(i);
|
|
14821
14828
|
}
|
|
@@ -14829,7 +14836,7 @@ function xh() {
|
|
|
14829
14836
|
}
|
|
14830
14837
|
async function G9(n) {
|
|
14831
14838
|
try {
|
|
14832
|
-
const i = (await xh()).transaction(
|
|
14839
|
+
const i = (await xh()).transaction(It), t = await i.objectStore(It).get(Eh(n));
|
|
14833
14840
|
return await i.done, t;
|
|
14834
14841
|
} catch (e) {
|
|
14835
14842
|
if (e instanceof oi)
|
|
@@ -14844,8 +14851,8 @@ async function G9(n) {
|
|
|
14844
14851
|
}
|
|
14845
14852
|
async function ac(n, e) {
|
|
14846
14853
|
try {
|
|
14847
|
-
const t = (await xh()).transaction(
|
|
14848
|
-
await t.objectStore(
|
|
14854
|
+
const t = (await xh()).transaction(It, "readwrite");
|
|
14855
|
+
await t.objectStore(It).put(e, Eh(n)), await t.done;
|
|
14849
14856
|
} catch (i) {
|
|
14850
14857
|
if (i instanceof oi)
|
|
14851
14858
|
Tn.warn(i.message);
|
|
@@ -15016,12 +15023,12 @@ function oc(n) {
|
|
|
15016
15023
|
* limitations under the License.
|
|
15017
15024
|
*/
|
|
15018
15025
|
function J9(n) {
|
|
15019
|
-
|
|
15026
|
+
Dt(new $i(
|
|
15020
15027
|
"platform-logger",
|
|
15021
15028
|
(e) => new o9(e),
|
|
15022
15029
|
"PRIVATE"
|
|
15023
15030
|
/* ComponentType.PRIVATE */
|
|
15024
|
-
)),
|
|
15031
|
+
)), Dt(new $i(
|
|
15025
15032
|
"heartbeat",
|
|
15026
15033
|
(e) => new V9(e),
|
|
15027
15034
|
"PRIVATE"
|
|
@@ -15034,7 +15041,7 @@ function Bh() {
|
|
|
15034
15041
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
|
15035
15042
|
};
|
|
15036
15043
|
}
|
|
15037
|
-
const K9 = Bh, Dh = new
|
|
15044
|
+
const K9 = Bh, Dh = new Ft("auth", "Firebase", Bh());
|
|
15038
15045
|
/**
|
|
15039
15046
|
* @license
|
|
15040
15047
|
* Copyright 2020 Google LLC
|
|
@@ -15051,12 +15058,12 @@ const K9 = Bh, Dh = new Lt("auth", "Firebase", Bh());
|
|
|
15051
15058
|
* See the License for the specific language governing permissions and
|
|
15052
15059
|
* limitations under the License.
|
|
15053
15060
|
*/
|
|
15054
|
-
const
|
|
15061
|
+
const rs = new wh("@firebase/auth");
|
|
15055
15062
|
function Z9(n, ...e) {
|
|
15056
|
-
|
|
15063
|
+
rs.logLevel <= we.WARN && rs.warn(`Auth (${Rt}): ${n}`, ...e);
|
|
15057
15064
|
}
|
|
15058
|
-
function
|
|
15059
|
-
|
|
15065
|
+
function Nr(n, ...e) {
|
|
15066
|
+
rs.logLevel <= we.ERROR && rs.error(`Auth (${Rt}): ${n}`, ...e);
|
|
15060
15067
|
}
|
|
15061
15068
|
/**
|
|
15062
15069
|
* @license
|
|
@@ -15082,7 +15089,7 @@ function An(n, ...e) {
|
|
|
15082
15089
|
}
|
|
15083
15090
|
function qo(n, e, i) {
|
|
15084
15091
|
const t = Object.assign(Object.assign({}, K9()), { [e]: i });
|
|
15085
|
-
return new
|
|
15092
|
+
return new Ft("auth", "Firebase", t).create(e, {
|
|
15086
15093
|
appName: n.name
|
|
15087
15094
|
});
|
|
15088
15095
|
}
|
|
@@ -15111,7 +15118,7 @@ function te(n, e, ...i) {
|
|
|
15111
15118
|
}
|
|
15112
15119
|
function Nn(n) {
|
|
15113
15120
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
|
15114
|
-
throw
|
|
15121
|
+
throw Nr(e), new Error(e);
|
|
15115
15122
|
}
|
|
15116
15123
|
function jn(n, e) {
|
|
15117
15124
|
n || Nn(e);
|
|
@@ -15195,7 +15202,7 @@ function nC() {
|
|
|
15195
15202
|
* See the License for the specific language governing permissions and
|
|
15196
15203
|
* limitations under the License.
|
|
15197
15204
|
*/
|
|
15198
|
-
class
|
|
15205
|
+
class Wt {
|
|
15199
15206
|
constructor(e, i) {
|
|
15200
15207
|
this.shortDelay = e, this.longDelay = i, jn(i > e, "Short delay should be less than long delay!"), this.isMobile = N6() || O6();
|
|
15201
15208
|
}
|
|
@@ -15385,7 +15392,7 @@ const iC = {
|
|
|
15385
15392
|
* See the License for the specific language governing permissions and
|
|
15386
15393
|
* limitations under the License.
|
|
15387
15394
|
*/
|
|
15388
|
-
const tC = new
|
|
15395
|
+
const tC = new Wt(3e4, 6e4);
|
|
15389
15396
|
function Xo(n, e) {
|
|
15390
15397
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
15391
15398
|
}
|
|
@@ -15395,7 +15402,7 @@ async function dt(n, e, i, t, r = {}) {
|
|
|
15395
15402
|
t && (e === "GET" ? a = t : s = {
|
|
15396
15403
|
body: JSON.stringify(t)
|
|
15397
15404
|
});
|
|
15398
|
-
const A =
|
|
15405
|
+
const A = Lt(Object.assign({ key: n.config.apiKey }, a)).slice(1), o = await n._getAdditionalHeaders();
|
|
15399
15406
|
o[
|
|
15400
15407
|
"Content-Type"
|
|
15401
15408
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -15421,17 +15428,17 @@ async function Nh(n, e, i) {
|
|
|
15421
15428
|
r.clearNetworkTimeout();
|
|
15422
15429
|
const a = await s.json();
|
|
15423
15430
|
if ("needConfirmation" in a)
|
|
15424
|
-
throw
|
|
15431
|
+
throw ar(n, "account-exists-with-different-credential", a);
|
|
15425
15432
|
if (s.ok && !("errorMessage" in a))
|
|
15426
15433
|
return a;
|
|
15427
15434
|
{
|
|
15428
15435
|
const A = s.ok ? a.errorMessage : a.error.message, [o, d] = A.split(" : ");
|
|
15429
15436
|
if (o === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
15430
|
-
throw
|
|
15437
|
+
throw ar(n, "credential-already-in-use", a);
|
|
15431
15438
|
if (o === "EMAIL_EXISTS")
|
|
15432
|
-
throw
|
|
15439
|
+
throw ar(n, "email-already-in-use", a);
|
|
15433
15440
|
if (o === "USER_DISABLED")
|
|
15434
|
-
throw
|
|
15441
|
+
throw ar(n, "user-disabled", a);
|
|
15435
15442
|
const f = t[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
|
15436
15443
|
if (d)
|
|
15437
15444
|
throw qo(n, f, d);
|
|
@@ -15467,7 +15474,7 @@ class sC {
|
|
|
15467
15474
|
clearTimeout(this.timer);
|
|
15468
15475
|
}
|
|
15469
15476
|
}
|
|
15470
|
-
function
|
|
15477
|
+
function ar(n, e, i) {
|
|
15471
15478
|
const t = {
|
|
15472
15479
|
appName: n.name
|
|
15473
15480
|
};
|
|
@@ -15547,12 +15554,12 @@ function Fa(n) {
|
|
|
15547
15554
|
function Jo(n) {
|
|
15548
15555
|
const [e, i, t] = n.split(".");
|
|
15549
15556
|
if (e === void 0 || i === void 0 || t === void 0)
|
|
15550
|
-
return
|
|
15557
|
+
return Nr("JWT malformed, contained fewer than 3 sections"), null;
|
|
15551
15558
|
try {
|
|
15552
15559
|
const r = mh(i);
|
|
15553
|
-
return r ? JSON.parse(r) : (
|
|
15560
|
+
return r ? JSON.parse(r) : (Nr("Failed to decode base64 JWT payload"), null);
|
|
15554
15561
|
} catch (r) {
|
|
15555
|
-
return
|
|
15562
|
+
return Nr("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
|
|
15556
15563
|
}
|
|
15557
15564
|
}
|
|
15558
15565
|
function dc(n) {
|
|
@@ -15587,7 +15594,7 @@ function dc(n) {
|
|
|
15587
15594
|
* See the License for the specific language governing permissions and
|
|
15588
15595
|
* limitations under the License.
|
|
15589
15596
|
*/
|
|
15590
|
-
async function
|
|
15597
|
+
async function Nt(n, e, i = !1) {
|
|
15591
15598
|
if (i)
|
|
15592
15599
|
return e;
|
|
15593
15600
|
try {
|
|
@@ -15710,9 +15717,9 @@ class YA {
|
|
|
15710
15717
|
* See the License for the specific language governing permissions and
|
|
15711
15718
|
* limitations under the License.
|
|
15712
15719
|
*/
|
|
15713
|
-
async function
|
|
15720
|
+
async function ss(n) {
|
|
15714
15721
|
var e;
|
|
15715
|
-
const i = n.auth, t = await n.getIdToken(), r = await
|
|
15722
|
+
const i = n.auth, t = await n.getIdToken(), r = await Nt(n, Ph(i, { idToken: t }));
|
|
15716
15723
|
te(
|
|
15717
15724
|
r == null ? void 0 : r.users.length,
|
|
15718
15725
|
i,
|
|
@@ -15737,7 +15744,7 @@ async function as(n) {
|
|
|
15737
15744
|
}
|
|
15738
15745
|
async function dC(n) {
|
|
15739
15746
|
const e = ft(n);
|
|
15740
|
-
await
|
|
15747
|
+
await ss(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
15741
15748
|
}
|
|
15742
15749
|
function cC(n, e) {
|
|
15743
15750
|
return [...n.filter((t) => !e.some((r) => r.providerId === t.providerId)), ...e];
|
|
@@ -15773,7 +15780,7 @@ function Oh(n) {
|
|
|
15773
15780
|
*/
|
|
15774
15781
|
async function lC(n, e) {
|
|
15775
15782
|
const i = await Nh(n, {}, async () => {
|
|
15776
|
-
const t =
|
|
15783
|
+
const t = Lt({
|
|
15777
15784
|
grant_type: "refresh_token",
|
|
15778
15785
|
refresh_token: e
|
|
15779
15786
|
}).slice(1), { tokenApiHost: r, apiKey: s } = n.config, a = Sh(n, r, "/v1/token", `key=${s}`), A = await n._getAdditionalHeaders();
|
|
@@ -15914,7 +15921,7 @@ class Sn {
|
|
|
15914
15921
|
this.providerId = "firebase", this.proactiveRefresh = new fC(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = i, this.auth = t, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new YA(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
15915
15922
|
}
|
|
15916
15923
|
async getIdToken(e) {
|
|
15917
|
-
const i = await
|
|
15924
|
+
const i = await Nt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
15918
15925
|
return te(
|
|
15919
15926
|
i,
|
|
15920
15927
|
this.auth,
|
|
@@ -15959,13 +15966,13 @@ class Sn {
|
|
|
15959
15966
|
}
|
|
15960
15967
|
async _updateTokensIfNecessary(e, i = !1) {
|
|
15961
15968
|
let t = !1;
|
|
15962
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), t = !0), i && await
|
|
15969
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), t = !0), i && await ss(this), await this.auth._persistUserIfCurrent(this), t && this.auth._notifyListenersIfCurrent(this);
|
|
15963
15970
|
}
|
|
15964
15971
|
async delete() {
|
|
15965
15972
|
if (In(this.auth.app))
|
|
15966
15973
|
return Promise.reject(xi(this.auth));
|
|
15967
15974
|
const e = await this.getIdToken();
|
|
15968
|
-
return await
|
|
15975
|
+
return await Nt(this, aC(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
15969
15976
|
}
|
|
15970
15977
|
toJSON() {
|
|
15971
15978
|
return Object.assign(Object.assign({
|
|
@@ -16047,7 +16054,7 @@ class Sn {
|
|
|
16047
16054
|
stsTokenManager: r,
|
|
16048
16055
|
isAnonymous: t
|
|
16049
16056
|
});
|
|
16050
|
-
return await
|
|
16057
|
+
return await ss(s), s;
|
|
16051
16058
|
}
|
|
16052
16059
|
/**
|
|
16053
16060
|
* Initialize a User from an idToken server response
|
|
@@ -16161,14 +16168,14 @@ const lc = Mh;
|
|
|
16161
16168
|
* See the License for the specific language governing permissions and
|
|
16162
16169
|
* limitations under the License.
|
|
16163
16170
|
*/
|
|
16164
|
-
function
|
|
16171
|
+
function Sr(n, e, i) {
|
|
16165
16172
|
return `firebase:${n}:${e}:${i}`;
|
|
16166
16173
|
}
|
|
16167
16174
|
class Ri {
|
|
16168
16175
|
constructor(e, i, t) {
|
|
16169
16176
|
this.persistence = e, this.auth = i, this.userKey = t;
|
|
16170
16177
|
const { config: r, name: s } = this.auth;
|
|
16171
|
-
this.fullUserKey =
|
|
16178
|
+
this.fullUserKey = Sr(this.userKey, r.apiKey, s), this.fullPersistenceKey = Sr("persistence", r.apiKey, s), this.boundEventHandler = i._onStorageEvent.bind(i), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
|
16172
16179
|
}
|
|
16173
16180
|
setCurrentUser(e) {
|
|
16174
16181
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -16201,7 +16208,7 @@ class Ri {
|
|
|
16201
16208
|
return d;
|
|
16202
16209
|
}))).filter((d) => d);
|
|
16203
16210
|
let s = r[0] || Pn(lc);
|
|
16204
|
-
const a =
|
|
16211
|
+
const a = Sr(t, e.config.apiKey, e.name);
|
|
16205
16212
|
let A = null;
|
|
16206
16213
|
for (const d of i)
|
|
16207
16214
|
try {
|
|
@@ -16334,7 +16341,7 @@ function Hh(n, e = []) {
|
|
|
16334
16341
|
i = n;
|
|
16335
16342
|
}
|
|
16336
16343
|
const t = e.length ? e.join(",") : "FirebaseCore-web";
|
|
16337
|
-
return `${i}/JsCore/${
|
|
16344
|
+
return `${i}/JsCore/${Rt}/${t}`;
|
|
16338
16345
|
}
|
|
16339
16346
|
/**
|
|
16340
16347
|
* @license
|
|
@@ -16602,7 +16609,7 @@ class bC {
|
|
|
16602
16609
|
}
|
|
16603
16610
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
16604
16611
|
try {
|
|
16605
|
-
await
|
|
16612
|
+
await ss(e);
|
|
16606
16613
|
} catch (i) {
|
|
16607
16614
|
if ((i == null ? void 0 : i.code) !== "auth/network-request-failed")
|
|
16608
16615
|
return this.directlySetCurrentUser(null);
|
|
@@ -16668,7 +16675,7 @@ class bC {
|
|
|
16668
16675
|
return this.assertedPersistence.persistence.type;
|
|
16669
16676
|
}
|
|
16670
16677
|
_updateErrorMap(e) {
|
|
16671
|
-
this._errorFactory = new
|
|
16678
|
+
this._errorFactory = new Ft("auth", "Firebase", e());
|
|
16672
16679
|
}
|
|
16673
16680
|
onAuthStateChanged(e, i, t) {
|
|
16674
16681
|
return this.registerStateListener(this.authStateSubscription, e, i, t);
|
|
@@ -16919,7 +16926,7 @@ function EC(n, e) {
|
|
|
16919
16926
|
const i = kh(n, "auth");
|
|
16920
16927
|
if (i.isInitialized()) {
|
|
16921
16928
|
const r = i.getImmediate(), s = i.getOptions();
|
|
16922
|
-
if (
|
|
16929
|
+
if (is(s, e ?? {}))
|
|
16923
16930
|
return r;
|
|
16924
16931
|
wn(
|
|
16925
16932
|
r,
|
|
@@ -17126,7 +17133,7 @@ class Si extends zh {
|
|
|
17126
17133
|
e.pendingToken = this.pendingToken;
|
|
17127
17134
|
else {
|
|
17128
17135
|
const i = {};
|
|
17129
|
-
this.idToken && (i.id_token = this.idToken), this.accessToken && (i.access_token = this.accessToken), this.secret && (i.oauth_token_secret = this.secret), i.providerId = this.providerId, this.nonce && !this.pendingToken && (i.nonce = this.nonce), e.postBody =
|
|
17136
|
+
this.idToken && (i.id_token = this.idToken), this.accessToken && (i.access_token = this.accessToken), this.secret && (i.oauth_token_secret = this.secret), i.providerId = this.providerId, this.nonce && !this.pendingToken && (i.nonce = this.nonce), e.postBody = Lt(i);
|
|
17130
17137
|
}
|
|
17131
17138
|
return e;
|
|
17132
17139
|
}
|
|
@@ -17200,7 +17207,7 @@ class _o {
|
|
|
17200
17207
|
* See the License for the specific language governing permissions and
|
|
17201
17208
|
* limitations under the License.
|
|
17202
17209
|
*/
|
|
17203
|
-
class
|
|
17210
|
+
class Yt extends _o {
|
|
17204
17211
|
constructor() {
|
|
17205
17212
|
super(...arguments), this.scopes = [];
|
|
17206
17213
|
}
|
|
@@ -17235,7 +17242,7 @@ class Ht extends _o {
|
|
|
17235
17242
|
* See the License for the specific language governing permissions and
|
|
17236
17243
|
* limitations under the License.
|
|
17237
17244
|
*/
|
|
17238
|
-
class Un extends
|
|
17245
|
+
class Un extends Yt {
|
|
17239
17246
|
constructor() {
|
|
17240
17247
|
super(
|
|
17241
17248
|
"facebook.com"
|
|
@@ -17306,7 +17313,7 @@ Un.PROVIDER_ID = "facebook.com";
|
|
|
17306
17313
|
* See the License for the specific language governing permissions and
|
|
17307
17314
|
* limitations under the License.
|
|
17308
17315
|
*/
|
|
17309
|
-
class ln extends
|
|
17316
|
+
class ln extends Yt {
|
|
17310
17317
|
constructor() {
|
|
17311
17318
|
super(
|
|
17312
17319
|
"google.com"
|
|
@@ -17382,7 +17389,7 @@ ln.PROVIDER_ID = "google.com";
|
|
|
17382
17389
|
* See the License for the specific language governing permissions and
|
|
17383
17390
|
* limitations under the License.
|
|
17384
17391
|
*/
|
|
17385
|
-
class Xn extends
|
|
17392
|
+
class Xn extends Yt {
|
|
17386
17393
|
constructor() {
|
|
17387
17394
|
super(
|
|
17388
17395
|
"github.com"
|
|
@@ -17446,7 +17453,7 @@ Xn.PROVIDER_ID = "github.com";
|
|
|
17446
17453
|
* See the License for the specific language governing permissions and
|
|
17447
17454
|
* limitations under the License.
|
|
17448
17455
|
*/
|
|
17449
|
-
class Jn extends
|
|
17456
|
+
class Jn extends Yt {
|
|
17450
17457
|
constructor() {
|
|
17451
17458
|
super(
|
|
17452
17459
|
"twitter.com"
|
|
@@ -17562,10 +17569,10 @@ function mc(n) {
|
|
|
17562
17569
|
* See the License for the specific language governing permissions and
|
|
17563
17570
|
* limitations under the License.
|
|
17564
17571
|
*/
|
|
17565
|
-
class
|
|
17572
|
+
class as extends oi {
|
|
17566
17573
|
constructor(e, i, t, r) {
|
|
17567
17574
|
var s;
|
|
17568
|
-
super(i.code, i.message), this.operationType = t, this.user = r, Object.setPrototypeOf(this,
|
|
17575
|
+
super(i.code, i.message), this.operationType = t, this.user = r, Object.setPrototypeOf(this, as.prototype), this.customData = {
|
|
17569
17576
|
appName: e.name,
|
|
17570
17577
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
|
17571
17578
|
_serverResponse: i.customData._serverResponse,
|
|
@@ -17573,16 +17580,16 @@ class As extends oi {
|
|
|
17573
17580
|
};
|
|
17574
17581
|
}
|
|
17575
17582
|
static _fromErrorAndOperation(e, i, t, r) {
|
|
17576
|
-
return new
|
|
17583
|
+
return new as(e, i, t, r);
|
|
17577
17584
|
}
|
|
17578
17585
|
}
|
|
17579
17586
|
function qh(n, e, i, t) {
|
|
17580
17587
|
return (e === "reauthenticate" ? i._getReauthenticationResolver(n) : i._getIdTokenResponse(n)).catch((s) => {
|
|
17581
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
|
17588
|
+
throw s.code === "auth/multi-factor-auth-required" ? as._fromErrorAndOperation(n, s, e, t) : s;
|
|
17582
17589
|
});
|
|
17583
17590
|
}
|
|
17584
17591
|
async function PC(n, e, i = !1) {
|
|
17585
|
-
const t = await
|
|
17592
|
+
const t = await Nt(n, e._linkToIdToken(n.auth, await n.getIdToken()), i);
|
|
17586
17593
|
return et._forOperation(n, "link", t);
|
|
17587
17594
|
}
|
|
17588
17595
|
/**
|
|
@@ -17607,7 +17614,7 @@ async function OC(n, e, i = !1) {
|
|
|
17607
17614
|
return Promise.reject(xi(t));
|
|
17608
17615
|
const r = "reauthenticate";
|
|
17609
17616
|
try {
|
|
17610
|
-
const s = await
|
|
17617
|
+
const s = await Nt(n, qh(t, r, e, n), i);
|
|
17611
17618
|
te(
|
|
17612
17619
|
s.idToken,
|
|
17613
17620
|
t,
|
|
@@ -17664,7 +17671,7 @@ function TC(n, e, i, t) {
|
|
|
17664
17671
|
function jC(n, e, i) {
|
|
17665
17672
|
return ft(n).beforeAuthStateChanged(e, i);
|
|
17666
17673
|
}
|
|
17667
|
-
const
|
|
17674
|
+
const As = "__sak";
|
|
17668
17675
|
/**
|
|
17669
17676
|
* @license
|
|
17670
17677
|
* Copyright 2019 Google LLC
|
|
@@ -17687,7 +17694,7 @@ class Vh {
|
|
|
17687
17694
|
}
|
|
17688
17695
|
_isAvailable() {
|
|
17689
17696
|
try {
|
|
17690
|
-
return this.storage ? (this.storage.setItem(
|
|
17697
|
+
return this.storage ? (this.storage.setItem(As, "1"), this.storage.removeItem(As), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
17691
17698
|
} catch {
|
|
17692
17699
|
return Promise.resolve(!1);
|
|
17693
17700
|
}
|
|
@@ -18142,8 +18149,8 @@ function zC() {
|
|
|
18142
18149
|
* See the License for the specific language governing permissions and
|
|
18143
18150
|
* limitations under the License.
|
|
18144
18151
|
*/
|
|
18145
|
-
const Zh = "firebaseLocalStorageDb", qC = 1,
|
|
18146
|
-
class
|
|
18152
|
+
const Zh = "firebaseLocalStorageDb", qC = 1, os = "firebaseLocalStorage", _h = "fbase_key";
|
|
18153
|
+
class Ht {
|
|
18147
18154
|
constructor(e) {
|
|
18148
18155
|
this.request = e;
|
|
18149
18156
|
}
|
|
@@ -18158,11 +18165,11 @@ class Gt {
|
|
|
18158
18165
|
}
|
|
18159
18166
|
}
|
|
18160
18167
|
function qs(n, e) {
|
|
18161
|
-
return n.transaction([
|
|
18168
|
+
return n.transaction([os], e ? "readwrite" : "readonly").objectStore(os);
|
|
18162
18169
|
}
|
|
18163
18170
|
function VC() {
|
|
18164
18171
|
const n = indexedDB.deleteDatabase(Zh);
|
|
18165
|
-
return new
|
|
18172
|
+
return new Ht(n).toPromise();
|
|
18166
18173
|
}
|
|
18167
18174
|
function HA() {
|
|
18168
18175
|
const n = indexedDB.open(Zh, qC);
|
|
@@ -18172,13 +18179,13 @@ function HA() {
|
|
|
18172
18179
|
}), n.addEventListener("upgradeneeded", () => {
|
|
18173
18180
|
const t = n.result;
|
|
18174
18181
|
try {
|
|
18175
|
-
t.createObjectStore(
|
|
18182
|
+
t.createObjectStore(os, { keyPath: _h });
|
|
18176
18183
|
} catch (r) {
|
|
18177
18184
|
i(r);
|
|
18178
18185
|
}
|
|
18179
18186
|
}), n.addEventListener("success", async () => {
|
|
18180
18187
|
const t = n.result;
|
|
18181
|
-
t.objectStoreNames.contains(
|
|
18188
|
+
t.objectStoreNames.contains(os) ? e(t) : (t.close(), await VC(), e(await HA()));
|
|
18182
18189
|
});
|
|
18183
18190
|
});
|
|
18184
18191
|
}
|
|
@@ -18187,15 +18194,15 @@ async function pc(n, e, i) {
|
|
|
18187
18194
|
[_h]: e,
|
|
18188
18195
|
value: i
|
|
18189
18196
|
});
|
|
18190
|
-
return new
|
|
18197
|
+
return new Ht(t).toPromise();
|
|
18191
18198
|
}
|
|
18192
18199
|
async function UC(n, e) {
|
|
18193
|
-
const i = qs(n, !1).get(e), t = await new
|
|
18200
|
+
const i = qs(n, !1).get(e), t = await new Ht(i).toPromise();
|
|
18194
18201
|
return t === void 0 ? null : t.value;
|
|
18195
18202
|
}
|
|
18196
18203
|
function vc(n, e) {
|
|
18197
18204
|
const i = qs(n, !0).delete(e);
|
|
18198
|
-
return new
|
|
18205
|
+
return new Ht(i).toPromise();
|
|
18199
18206
|
}
|
|
18200
18207
|
const XC = 800, JC = 3;
|
|
18201
18208
|
class $h {
|
|
@@ -18287,7 +18294,7 @@ class $h {
|
|
|
18287
18294
|
if (!indexedDB)
|
|
18288
18295
|
return !1;
|
|
18289
18296
|
const e = await HA();
|
|
18290
|
-
return await pc(e,
|
|
18297
|
+
return await pc(e, As, "1"), await vc(e, As), !0;
|
|
18291
18298
|
} catch {
|
|
18292
18299
|
}
|
|
18293
18300
|
return !1;
|
|
@@ -18313,7 +18320,7 @@ class $h {
|
|
|
18313
18320
|
async _poll() {
|
|
18314
18321
|
const e = await this._withRetries((r) => {
|
|
18315
18322
|
const s = qs(r, !1).getAll();
|
|
18316
|
-
return new
|
|
18323
|
+
return new Ht(s).toPromise();
|
|
18317
18324
|
});
|
|
18318
18325
|
if (!e)
|
|
18319
18326
|
return [];
|
|
@@ -18349,7 +18356,7 @@ class $h {
|
|
|
18349
18356
|
}
|
|
18350
18357
|
$h.type = "LOCAL";
|
|
18351
18358
|
const KC = $h;
|
|
18352
|
-
new
|
|
18359
|
+
new Wt(3e4, 6e4);
|
|
18353
18360
|
/**
|
|
18354
18361
|
* @license
|
|
18355
18362
|
* Copyright 2021 Google LLC
|
|
@@ -18540,7 +18547,7 @@ class ng {
|
|
|
18540
18547
|
* See the License for the specific language governing permissions and
|
|
18541
18548
|
* limitations under the License.
|
|
18542
18549
|
*/
|
|
18543
|
-
const e7 = new
|
|
18550
|
+
const e7 = new Wt(2e3, 1e4);
|
|
18544
18551
|
async function n7(n, e, i) {
|
|
18545
18552
|
if (In(n.app))
|
|
18546
18553
|
return Promise.reject(An(
|
|
@@ -18638,7 +18645,7 @@ pi.currentPopupAction = null;
|
|
|
18638
18645
|
* See the License for the specific language governing permissions and
|
|
18639
18646
|
* limitations under the License.
|
|
18640
18647
|
*/
|
|
18641
|
-
const i7 = "pendingRedirect",
|
|
18648
|
+
const i7 = "pendingRedirect", Pr = /* @__PURE__ */ new Map();
|
|
18642
18649
|
class t7 extends ng {
|
|
18643
18650
|
constructor(e, i, t = !1) {
|
|
18644
18651
|
super(e, [
|
|
@@ -18654,7 +18661,7 @@ class t7 extends ng {
|
|
|
18654
18661
|
* just return it.
|
|
18655
18662
|
*/
|
|
18656
18663
|
async execute() {
|
|
18657
|
-
let e =
|
|
18664
|
+
let e = Pr.get(this.auth._key());
|
|
18658
18665
|
if (!e) {
|
|
18659
18666
|
try {
|
|
18660
18667
|
const t = await r7(this.resolver, this.auth) ? await super.execute() : null;
|
|
@@ -18662,9 +18669,9 @@ class t7 extends ng {
|
|
|
18662
18669
|
} catch (i) {
|
|
18663
18670
|
e = () => Promise.reject(i);
|
|
18664
18671
|
}
|
|
18665
|
-
|
|
18672
|
+
Pr.set(this.auth._key(), e);
|
|
18666
18673
|
}
|
|
18667
|
-
return this.bypassAuthState ||
|
|
18674
|
+
return this.bypassAuthState || Pr.set(this.auth._key(), () => Promise.resolve(null)), e();
|
|
18668
18675
|
}
|
|
18669
18676
|
async onAuthEvent(e) {
|
|
18670
18677
|
if (e.type === "signInViaRedirect")
|
|
@@ -18693,13 +18700,13 @@ async function r7(n, e) {
|
|
|
18693
18700
|
return await t._remove(i), r;
|
|
18694
18701
|
}
|
|
18695
18702
|
function s7(n, e) {
|
|
18696
|
-
|
|
18703
|
+
Pr.set(n._key(), e);
|
|
18697
18704
|
}
|
|
18698
18705
|
function a7(n) {
|
|
18699
18706
|
return Pn(n._redirectPersistence);
|
|
18700
18707
|
}
|
|
18701
18708
|
function A7(n) {
|
|
18702
|
-
return
|
|
18709
|
+
return Sr(i7, n.config.apiKey, n.name);
|
|
18703
18710
|
}
|
|
18704
18711
|
async function o7(n, e, i = !1) {
|
|
18705
18712
|
if (In(n.app))
|
|
@@ -18860,7 +18867,7 @@ function m7(n) {
|
|
|
18860
18867
|
* See the License for the specific language governing permissions and
|
|
18861
18868
|
* limitations under the License.
|
|
18862
18869
|
*/
|
|
18863
|
-
const p7 = new
|
|
18870
|
+
const p7 = new Wt(3e4, 6e4);
|
|
18864
18871
|
function bc() {
|
|
18865
18872
|
const n = mn().___jsl;
|
|
18866
18873
|
if (n != null && n.H) {
|
|
@@ -18903,12 +18910,12 @@ function v7(n) {
|
|
|
18903
18910
|
}, kC(`${CC()}?onload=${A}`).catch((o) => i(o));
|
|
18904
18911
|
}
|
|
18905
18912
|
}).catch((e) => {
|
|
18906
|
-
throw
|
|
18913
|
+
throw Or = null, e;
|
|
18907
18914
|
});
|
|
18908
18915
|
}
|
|
18909
|
-
let
|
|
18916
|
+
let Or = null;
|
|
18910
18917
|
function w7(n) {
|
|
18911
|
-
return
|
|
18918
|
+
return Or = Or || v7(n), Or;
|
|
18912
18919
|
}
|
|
18913
18920
|
/**
|
|
18914
18921
|
* @license
|
|
@@ -18926,7 +18933,7 @@ function w7(n) {
|
|
|
18926
18933
|
* See the License for the specific language governing permissions and
|
|
18927
18934
|
* limitations under the License.
|
|
18928
18935
|
*/
|
|
18929
|
-
const b7 = new
|
|
18936
|
+
const b7 = new Wt(5e3, 15e3), y7 = "__/auth/iframe", k7 = "emulator/auth/iframe", C7 = {
|
|
18930
18937
|
style: {
|
|
18931
18938
|
position: "absolute",
|
|
18932
18939
|
top: "-100px",
|
|
@@ -18952,11 +18959,11 @@ function E7(n) {
|
|
|
18952
18959
|
const i = e.emulator ? Uo(e, k7) : `https://${n.config.authDomain}/${y7}`, t = {
|
|
18953
18960
|
apiKey: e.apiKey,
|
|
18954
18961
|
appName: n.name,
|
|
18955
|
-
v:
|
|
18962
|
+
v: Rt
|
|
18956
18963
|
}, r = x7.get(n.config.apiHost);
|
|
18957
18964
|
r && (t.eid = r);
|
|
18958
18965
|
const s = n._getFrameworks();
|
|
18959
|
-
return s.length && (t.fw = s.join(",")), `${i}?${
|
|
18966
|
+
return s.length && (t.fw = s.join(",")), `${i}?${Lt(t).slice(1)}`;
|
|
18960
18967
|
}
|
|
18961
18968
|
async function B7(n) {
|
|
18962
18969
|
const e = await w7(n), i = mn().gapi;
|
|
@@ -19091,7 +19098,7 @@ async function kc(n, e, i, t, r, s) {
|
|
|
19091
19098
|
appName: n.name,
|
|
19092
19099
|
authType: i,
|
|
19093
19100
|
redirectUrl: t,
|
|
19094
|
-
v:
|
|
19101
|
+
v: Rt,
|
|
19095
19102
|
eventId: r
|
|
19096
19103
|
};
|
|
19097
19104
|
if (e instanceof _o) {
|
|
@@ -19099,7 +19106,7 @@ async function kc(n, e, i, t, r, s) {
|
|
|
19099
19106
|
for (const [f, c] of Object.entries({}))
|
|
19100
19107
|
a[f] = c;
|
|
19101
19108
|
}
|
|
19102
|
-
if (e instanceof
|
|
19109
|
+
if (e instanceof Yt) {
|
|
19103
19110
|
const f = e.getScopes().filter((c) => c !== "");
|
|
19104
19111
|
f.length > 0 && (a.scopes = f.join(","));
|
|
19105
19112
|
}
|
|
@@ -19108,7 +19115,7 @@ async function kc(n, e, i, t, r, s) {
|
|
|
19108
19115
|
for (const f of Object.keys(A))
|
|
19109
19116
|
A[f] === void 0 && delete A[f];
|
|
19110
19117
|
const o = await n._getAppCheckToken(), d = o ? `#${Q7}=${encodeURIComponent(o)}` : "";
|
|
19111
|
-
return `${F7(n)}?${
|
|
19118
|
+
return `${F7(n)}?${Lt(A).slice(1)}${d}`;
|
|
19112
19119
|
}
|
|
19113
19120
|
function F7({ config: n }) {
|
|
19114
19121
|
return n.emulator ? Uo(n, j7) : `https://${n.authDomain}/${T7}`;
|
|
@@ -19276,7 +19283,7 @@ function Y7(n) {
|
|
|
19276
19283
|
}
|
|
19277
19284
|
}
|
|
19278
19285
|
function H7(n) {
|
|
19279
|
-
|
|
19286
|
+
Dt(new $i(
|
|
19280
19287
|
"auth",
|
|
19281
19288
|
(e, { options: i }) => {
|
|
19282
19289
|
const t = e.getProvider("app").getImmediate(), r = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: A } = t.options;
|
|
@@ -19302,7 +19309,7 @@ function H7(n) {
|
|
|
19302
19309
|
"auth-internal"
|
|
19303
19310
|
/* _ComponentName.AUTH_INTERNAL */
|
|
19304
19311
|
).initialize();
|
|
19305
|
-
})),
|
|
19312
|
+
})), Dt(new $i(
|
|
19306
19313
|
"auth-internal",
|
|
19307
19314
|
(e) => {
|
|
19308
19315
|
const i = Gs(e.getProvider(
|
|
@@ -19428,7 +19435,7 @@ async function tg(n, e) {
|
|
|
19428
19435
|
email: n,
|
|
19429
19436
|
password: e
|
|
19430
19437
|
},
|
|
19431
|
-
{ headers: { Authorization:
|
|
19438
|
+
{ headers: { Authorization: Qt } }
|
|
19432
19439
|
);
|
|
19433
19440
|
}
|
|
19434
19441
|
function Bc(n, e, i, t = "authToken") {
|
|
@@ -19440,7 +19447,7 @@ function Bc(n, e, i, t = "authToken") {
|
|
|
19440
19447
|
loginType: i,
|
|
19441
19448
|
authToken: t
|
|
19442
19449
|
},
|
|
19443
|
-
{ headers: { Authorization:
|
|
19450
|
+
{ headers: { Authorization: Qt } }
|
|
19444
19451
|
);
|
|
19445
19452
|
}
|
|
19446
19453
|
function _7(n, e, i, t, r) {
|
|
@@ -19453,13 +19460,13 @@ function _7(n, e, i, t, r) {
|
|
|
19453
19460
|
authToken: i,
|
|
19454
19461
|
signupPlan: r
|
|
19455
19462
|
},
|
|
19456
|
-
{ headers: { Authorization:
|
|
19463
|
+
{ headers: { Authorization: Qt } }
|
|
19457
19464
|
);
|
|
19458
19465
|
}
|
|
19459
19466
|
function $7(n) {
|
|
19460
19467
|
return Ee.get(
|
|
19461
19468
|
"/users/checkEmail/" + n,
|
|
19462
|
-
{ headers: { Authorization:
|
|
19469
|
+
{ headers: { Authorization: Qt } }
|
|
19463
19470
|
);
|
|
19464
19471
|
}
|
|
19465
19472
|
async function e5(n) {
|
|
@@ -19486,7 +19493,7 @@ const n5 = async () => {
|
|
|
19486
19493
|
}
|
|
19487
19494
|
};
|
|
19488
19495
|
function nf(n) {
|
|
19489
|
-
const e =
|
|
19496
|
+
const e = $.getState().chatSettingStore.user.token;
|
|
19490
19497
|
return Ee.post("/files/", n, {
|
|
19491
19498
|
headers: {
|
|
19492
19499
|
Authorization: e,
|
|
@@ -19753,7 +19760,7 @@ const ag = ({
|
|
|
19753
19760
|
}, [r]), /* @__PURE__ */ D("div", { style: { maxHeight: "100px", ...n }, children: [
|
|
19754
19761
|
t ? /* @__PURE__ */ u(_i, { children: "Select Users (max 20)" }) : /* @__PURE__ */ u("div", { style: { fontSize: "14px", fontWeight: 600 }, children: "Select Users (max 20)" }),
|
|
19755
19762
|
/* @__PURE__ */ u(
|
|
19756
|
-
|
|
19763
|
+
ns,
|
|
19757
19764
|
{
|
|
19758
19765
|
type: "text",
|
|
19759
19766
|
placeholder: "Search users...",
|
|
@@ -19914,7 +19921,7 @@ const ag = ({
|
|
|
19914
19921
|
}, F = async (ne, V) => {
|
|
19915
19922
|
var R, O;
|
|
19916
19923
|
try {
|
|
19917
|
-
const T =
|
|
19924
|
+
const T = Jr(
|
|
19918
19925
|
ne,
|
|
19919
19926
|
(R = n == null ? void 0 : n.xmppSettings) == null ? void 0 : R.conference,
|
|
19920
19927
|
V
|
|
@@ -19923,7 +19930,7 @@ const ag = ({
|
|
|
19923
19930
|
const Q = await Qy(T.jid);
|
|
19924
19931
|
e(
|
|
19925
19932
|
bo({
|
|
19926
|
-
room:
|
|
19933
|
+
room: Jr(
|
|
19927
19934
|
Q,
|
|
19928
19935
|
(O = n == null ? void 0 : n.xmppSettings) == null ? void 0 : O.conference,
|
|
19929
19936
|
V
|
|
@@ -20009,7 +20016,7 @@ const ag = ({
|
|
|
20009
20016
|
},
|
|
20010
20017
|
children: [
|
|
20011
20018
|
/* @__PURE__ */ u(
|
|
20012
|
-
|
|
20019
|
+
Ir,
|
|
20013
20020
|
{
|
|
20014
20021
|
style: { flex: 1 },
|
|
20015
20022
|
id: "roomName",
|
|
@@ -20211,7 +20218,7 @@ const N5 = N.div`
|
|
|
20211
20218
|
] }) }),
|
|
20212
20219
|
/* @__PURE__ */ u(h6, { children: i })
|
|
20213
20220
|
] });
|
|
20214
|
-
var Vs = {}, GA = { exports: {} },
|
|
20221
|
+
var Vs = {}, GA = { exports: {} }, Ar = { exports: {} }, le = {};
|
|
20215
20222
|
/** @license React v16.13.1
|
|
20216
20223
|
* react-is.production.min.js
|
|
20217
20224
|
*
|
|
@@ -20308,17 +20315,17 @@ function P5() {
|
|
|
20308
20315
|
var dn = z.$$typeof;
|
|
20309
20316
|
switch (dn) {
|
|
20310
20317
|
case e:
|
|
20311
|
-
var
|
|
20312
|
-
switch (
|
|
20318
|
+
var Ut = z.type;
|
|
20319
|
+
switch (Ut) {
|
|
20313
20320
|
case o:
|
|
20314
20321
|
case d:
|
|
20315
20322
|
case t:
|
|
20316
20323
|
case s:
|
|
20317
20324
|
case r:
|
|
20318
20325
|
case c:
|
|
20319
|
-
return
|
|
20326
|
+
return Ut;
|
|
20320
20327
|
default:
|
|
20321
|
-
var df =
|
|
20328
|
+
var df = Ut && Ut.$$typeof;
|
|
20322
20329
|
switch (df) {
|
|
20323
20330
|
case A:
|
|
20324
20331
|
case f:
|
|
@@ -20366,7 +20373,7 @@ function P5() {
|
|
|
20366
20373
|
function K(z) {
|
|
20367
20374
|
return C(z) === i;
|
|
20368
20375
|
}
|
|
20369
|
-
function
|
|
20376
|
+
function _(z) {
|
|
20370
20377
|
return C(z) === s;
|
|
20371
20378
|
}
|
|
20372
20379
|
function re(z) {
|
|
@@ -20375,12 +20382,12 @@ function P5() {
|
|
|
20375
20382
|
function ce(z) {
|
|
20376
20383
|
return C(z) === c;
|
|
20377
20384
|
}
|
|
20378
|
-
ue.AsyncMode = y, ue.ConcurrentMode = w, ue.ContextConsumer = x, ue.ContextProvider = S, ue.Element = P, ue.ForwardRef = E, ue.Fragment = B, ue.Lazy = j, ue.Memo = I, ue.Portal = F, ue.Profiler = Y, ue.StrictMode = G, ue.Suspense = J, ue.isAsyncMode = V, ue.isConcurrentMode = R, ue.isContextConsumer = O, ue.isContextProvider = T, ue.isElement = Q, ue.isForwardRef = M, ue.isFragment = Z, ue.isLazy = W, ue.isMemo = U, ue.isPortal = K, ue.isProfiler =
|
|
20385
|
+
ue.AsyncMode = y, ue.ConcurrentMode = w, ue.ContextConsumer = x, ue.ContextProvider = S, ue.Element = P, ue.ForwardRef = E, ue.Fragment = B, ue.Lazy = j, ue.Memo = I, ue.Portal = F, ue.Profiler = Y, ue.StrictMode = G, ue.Suspense = J, ue.isAsyncMode = V, ue.isConcurrentMode = R, ue.isContextConsumer = O, ue.isContextProvider = T, ue.isElement = Q, ue.isForwardRef = M, ue.isFragment = Z, ue.isLazy = W, ue.isMemo = U, ue.isPortal = K, ue.isProfiler = _, ue.isStrictMode = re, ue.isSuspense = ce, ue.isValidElementType = m, ue.typeOf = C;
|
|
20379
20386
|
}()), ue;
|
|
20380
20387
|
}
|
|
20381
20388
|
var Sc;
|
|
20382
20389
|
function dg() {
|
|
20383
|
-
return Sc || (Sc = 1, process.env.NODE_ENV === "production" ?
|
|
20390
|
+
return Sc || (Sc = 1, process.env.NODE_ENV === "production" ? Ar.exports = S5() : Ar.exports = P5()), Ar.exports;
|
|
20384
20391
|
}
|
|
20385
20392
|
/*
|
|
20386
20393
|
object-assign
|
|
@@ -20548,7 +20555,7 @@ function T5() {
|
|
|
20548
20555
|
function v(R) {
|
|
20549
20556
|
if (process.env.NODE_ENV !== "production")
|
|
20550
20557
|
var O = {}, T = 0;
|
|
20551
|
-
function Q(Z, W, U, K,
|
|
20558
|
+
function Q(Z, W, U, K, _, re, ce) {
|
|
20552
20559
|
if (K = K || l, re = re || U, ce !== i) {
|
|
20553
20560
|
if (o) {
|
|
20554
20561
|
var z = new Error(
|
|
@@ -20563,15 +20570,15 @@ function T5() {
|
|
|
20563
20570
|
), O[dn] = !0, T++);
|
|
20564
20571
|
}
|
|
20565
20572
|
}
|
|
20566
|
-
return W[U] == null ? Z ? W[U] === null ? new p("The " +
|
|
20573
|
+
return W[U] == null ? Z ? W[U] === null ? new p("The " + _ + " `" + re + "` is marked as required " + ("in `" + K + "`, but its value is `null`.")) : new p("The " + _ + " `" + re + "` is marked as required in " + ("`" + K + "`, but its value is `undefined`.")) : null : R(W, U, K, _, re);
|
|
20567
20574
|
}
|
|
20568
20575
|
var M = Q.bind(null, !1);
|
|
20569
20576
|
return M.isRequired = Q.bind(null, !0), M;
|
|
20570
20577
|
}
|
|
20571
20578
|
function k(R) {
|
|
20572
20579
|
function O(T, Q, M, Z, W, U) {
|
|
20573
|
-
var K = T[Q],
|
|
20574
|
-
if (
|
|
20580
|
+
var K = T[Q], _ = G(K);
|
|
20581
|
+
if (_ !== R) {
|
|
20575
20582
|
var re = J(K);
|
|
20576
20583
|
return new p(
|
|
20577
20584
|
"Invalid " + Z + " `" + W + "` of type " + ("`" + re + "` supplied to `" + M + "`, expected ") + ("`" + R + "`."),
|
|
@@ -20594,8 +20601,8 @@ function T5() {
|
|
|
20594
20601
|
var K = G(U);
|
|
20595
20602
|
return new p("Invalid " + Z + " `" + W + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected an array."));
|
|
20596
20603
|
}
|
|
20597
|
-
for (var
|
|
20598
|
-
var re = R(U,
|
|
20604
|
+
for (var _ = 0; _ < U.length; _++) {
|
|
20605
|
+
var re = R(U, _, M, Z, W + "[" + _ + "]", i);
|
|
20599
20606
|
if (re instanceof Error)
|
|
20600
20607
|
return re;
|
|
20601
20608
|
}
|
|
@@ -20644,11 +20651,11 @@ function T5() {
|
|
|
20644
20651
|
for (var U = T[Q], K = 0; K < R.length; K++)
|
|
20645
20652
|
if (g(U, R[K]))
|
|
20646
20653
|
return null;
|
|
20647
|
-
var
|
|
20654
|
+
var _ = JSON.stringify(R, function(ce, z) {
|
|
20648
20655
|
var dn = J(z);
|
|
20649
20656
|
return dn === "symbol" ? String(z) : z;
|
|
20650
20657
|
});
|
|
20651
|
-
return new p("Invalid " + Z + " `" + W + "` of value `" + String(U) + "` " + ("supplied to `" + M + "`, expected one of " +
|
|
20658
|
+
return new p("Invalid " + Z + " `" + W + "` of value `" + String(U) + "` " + ("supplied to `" + M + "`, expected one of " + _ + "."));
|
|
20652
20659
|
}
|
|
20653
20660
|
return v(O);
|
|
20654
20661
|
}
|
|
@@ -20659,9 +20666,9 @@ function T5() {
|
|
|
20659
20666
|
var U = T[Q], K = G(U);
|
|
20660
20667
|
if (K !== "object")
|
|
20661
20668
|
return new p("Invalid " + Z + " `" + W + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected an object."));
|
|
20662
|
-
for (var
|
|
20663
|
-
if (t(U,
|
|
20664
|
-
var re = R(U,
|
|
20669
|
+
for (var _ in U)
|
|
20670
|
+
if (t(U, _)) {
|
|
20671
|
+
var re = R(U, _, M, Z, W + "." + _, i);
|
|
20665
20672
|
if (re instanceof Error)
|
|
20666
20673
|
return re;
|
|
20667
20674
|
}
|
|
@@ -20680,13 +20687,13 @@ function T5() {
|
|
|
20680
20687
|
), a;
|
|
20681
20688
|
}
|
|
20682
20689
|
function Q(M, Z, W, U, K) {
|
|
20683
|
-
for (var
|
|
20690
|
+
for (var _ = [], re = 0; re < R.length; re++) {
|
|
20684
20691
|
var ce = R[re], z = ce(M, Z, W, U, K, i);
|
|
20685
20692
|
if (z == null)
|
|
20686
20693
|
return null;
|
|
20687
|
-
z.data && t(z.data, "expectedType") &&
|
|
20694
|
+
z.data && t(z.data, "expectedType") && _.push(z.data.expectedType);
|
|
20688
20695
|
}
|
|
20689
|
-
var dn =
|
|
20696
|
+
var dn = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
|
|
20690
20697
|
return new p("Invalid " + U + " `" + K + "` supplied to " + ("`" + W + "`" + dn + "."));
|
|
20691
20698
|
}
|
|
20692
20699
|
return v(Q);
|
|
@@ -20707,11 +20714,11 @@ function T5() {
|
|
|
20707
20714
|
var U = T[Q], K = G(U);
|
|
20708
20715
|
if (K !== "object")
|
|
20709
20716
|
return new p("Invalid " + Z + " `" + W + "` of type `" + K + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
20710
|
-
for (var
|
|
20711
|
-
var re = R[
|
|
20717
|
+
for (var _ in R) {
|
|
20718
|
+
var re = R[_];
|
|
20712
20719
|
if (typeof re != "function")
|
|
20713
|
-
return B(M, Z, W,
|
|
20714
|
-
var ce = re(U,
|
|
20720
|
+
return B(M, Z, W, _, J(re));
|
|
20721
|
+
var ce = re(U, _, M, Z, W + "." + _, i);
|
|
20715
20722
|
if (ce)
|
|
20716
20723
|
return ce;
|
|
20717
20724
|
}
|
|
@@ -20724,8 +20731,8 @@ function T5() {
|
|
|
20724
20731
|
var U = T[Q], K = G(U);
|
|
20725
20732
|
if (K !== "object")
|
|
20726
20733
|
return new p("Invalid " + Z + " `" + W + "` of type `" + K + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
20727
|
-
var
|
|
20728
|
-
for (var re in
|
|
20734
|
+
var _ = e({}, T[Q], R);
|
|
20735
|
+
for (var re in _) {
|
|
20729
20736
|
var ce = R[re];
|
|
20730
20737
|
if (t(R, re) && typeof ce != "function")
|
|
20731
20738
|
return B(M, Z, W, re, J(ce));
|
|
@@ -20890,7 +20897,7 @@ gg.prototype = {
|
|
|
20890
20897
|
n.put(this.data.charCodeAt(e), 8);
|
|
20891
20898
|
}
|
|
20892
20899
|
};
|
|
20893
|
-
var R5 = gg,
|
|
20900
|
+
var R5 = gg, or = ug;
|
|
20894
20901
|
function un(n, e) {
|
|
20895
20902
|
this.totalCount = n, this.dataCount = e;
|
|
20896
20903
|
}
|
|
@@ -21111,13 +21118,13 @@ un.getRSBlocks = function(n, e) {
|
|
|
21111
21118
|
};
|
|
21112
21119
|
un.getRsBlockTable = function(n, e) {
|
|
21113
21120
|
switch (e) {
|
|
21114
|
-
case
|
|
21121
|
+
case or.L:
|
|
21115
21122
|
return un.RS_BLOCK_TABLE[(n - 1) * 4 + 0];
|
|
21116
|
-
case
|
|
21123
|
+
case or.M:
|
|
21117
21124
|
return un.RS_BLOCK_TABLE[(n - 1) * 4 + 1];
|
|
21118
|
-
case
|
|
21125
|
+
case or.Q:
|
|
21119
21126
|
return un.RS_BLOCK_TABLE[(n - 1) * 4 + 2];
|
|
21120
|
-
case
|
|
21127
|
+
case or.H:
|
|
21121
21128
|
return un.RS_BLOCK_TABLE[(n - 1) * 4 + 3];
|
|
21122
21129
|
default:
|
|
21123
21130
|
return;
|
|
@@ -21167,7 +21174,7 @@ for (var Oe = 8; Oe < 256; Oe++)
|
|
|
21167
21174
|
for (var Oe = 0; Oe < 255; Oe++)
|
|
21168
21175
|
tn.LOG_TABLE[tn.EXP_TABLE[Oe]] = Oe;
|
|
21169
21176
|
var pg = tn, li = pg;
|
|
21170
|
-
function
|
|
21177
|
+
function Mr(n, e) {
|
|
21171
21178
|
if (n.length == null)
|
|
21172
21179
|
throw new Error(n.length + "/" + e);
|
|
21173
21180
|
for (var i = 0; i < n.length && n[i] == 0; )
|
|
@@ -21176,7 +21183,7 @@ function Tr(n, e) {
|
|
|
21176
21183
|
for (var t = 0; t < n.length - i; t++)
|
|
21177
21184
|
this.num[t] = n[t + i];
|
|
21178
21185
|
}
|
|
21179
|
-
|
|
21186
|
+
Mr.prototype = {
|
|
21180
21187
|
get: function(n) {
|
|
21181
21188
|
return this.num[n];
|
|
21182
21189
|
},
|
|
@@ -21187,7 +21194,7 @@ Tr.prototype = {
|
|
|
21187
21194
|
for (var e = new Array(this.getLength() + n.getLength() - 1), i = 0; i < this.getLength(); i++)
|
|
21188
21195
|
for (var t = 0; t < n.getLength(); t++)
|
|
21189
21196
|
e[i + t] ^= li.gexp(li.glog(this.get(i)) + li.glog(n.get(t)));
|
|
21190
|
-
return new
|
|
21197
|
+
return new Mr(e, 0);
|
|
21191
21198
|
},
|
|
21192
21199
|
mod: function(n) {
|
|
21193
21200
|
if (this.getLength() - n.getLength() < 0)
|
|
@@ -21196,10 +21203,10 @@ Tr.prototype = {
|
|
|
21196
21203
|
i[t] = this.get(t);
|
|
21197
21204
|
for (var t = 0; t < n.getLength(); t++)
|
|
21198
21205
|
i[t] ^= li.gexp(li.glog(n.get(t)) + e);
|
|
21199
|
-
return new
|
|
21206
|
+
return new Mr(i, 0).mod(n);
|
|
21200
21207
|
}
|
|
21201
21208
|
};
|
|
21202
|
-
var vg =
|
|
21209
|
+
var vg = Mr, Xe = hg, Fc = vg, H5 = pg, zn = {
|
|
21203
21210
|
PATTERN000: 0,
|
|
21204
21211
|
PATTERN001: 1,
|
|
21205
21212
|
PATTERN010: 2,
|
|
@@ -21540,7 +21547,7 @@ var U5 = Object.assign || function(n) {
|
|
|
21540
21547
|
Object.prototype.hasOwnProperty.call(i, t) && (n[t] = i[t]);
|
|
21541
21548
|
}
|
|
21542
21549
|
return n;
|
|
21543
|
-
}, X5 = lg, Je = kg(X5), yg = Ye,
|
|
21550
|
+
}, X5 = lg, Je = kg(X5), yg = Ye, fr = kg(yg);
|
|
21544
21551
|
function kg(n) {
|
|
21545
21552
|
return n && n.__esModule ? n : { default: n };
|
|
21546
21553
|
}
|
|
@@ -21561,16 +21568,16 @@ var K5 = {
|
|
|
21561
21568
|
xmlns: Je.default.string
|
|
21562
21569
|
}, af = (0, yg.forwardRef)(function(n, e) {
|
|
21563
21570
|
var i = n.bgColor, t = n.bgD, r = n.fgD, s = n.fgColor, a = n.size, A = n.title, o = n.viewBoxSize, d = n.xmlns, f = d === void 0 ? "http://www.w3.org/2000/svg" : d, c = J5(n, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
|
|
21564
|
-
return
|
|
21571
|
+
return fr.default.createElement(
|
|
21565
21572
|
"svg",
|
|
21566
21573
|
U5({}, c, { height: a, ref: e, viewBox: "0 0 " + o + " " + o, width: a, xmlns: f }),
|
|
21567
|
-
A ?
|
|
21574
|
+
A ? fr.default.createElement(
|
|
21568
21575
|
"title",
|
|
21569
21576
|
null,
|
|
21570
21577
|
A
|
|
21571
21578
|
) : null,
|
|
21572
|
-
|
|
21573
|
-
|
|
21579
|
+
fr.default.createElement("path", { d: t, fill: i }),
|
|
21580
|
+
fr.default.createElement("path", { d: r, fill: s })
|
|
21574
21581
|
);
|
|
21575
21582
|
});
|
|
21576
21583
|
af.displayName = "QRCodeSvg";
|
|
@@ -21587,8 +21594,8 @@ var Z5 = Object.assign || function(n) {
|
|
|
21587
21594
|
Object.prototype.hasOwnProperty.call(i, t) && (n[t] = i[t]);
|
|
21588
21595
|
}
|
|
21589
21596
|
return n;
|
|
21590
|
-
}, _5 = lg, Cn =
|
|
21591
|
-
function
|
|
21597
|
+
}, _5 = lg, Cn = Gt(_5), $5 = ug, e8 = Gt($5), n8 = V5, i8 = Gt(n8), Cg = Ye, t8 = Gt(Cg), r8 = sf, s8 = Gt(r8);
|
|
21598
|
+
function Gt(n) {
|
|
21592
21599
|
return n && n.__esModule ? n : { default: n };
|
|
21593
21600
|
}
|
|
21594
21601
|
function a8(n, e) {
|
|
@@ -21722,7 +21729,7 @@ const xg = N.div`
|
|
|
21722
21729
|
},
|
|
21723
21730
|
children: [
|
|
21724
21731
|
/* @__PURE__ */ u(
|
|
21725
|
-
|
|
21732
|
+
ns,
|
|
21726
21733
|
{
|
|
21727
21734
|
value: `${(t == null ? void 0 : t.qrUrl) || Aa}${e.split("@")[0]}`,
|
|
21728
21735
|
disabled: !0,
|
|
@@ -21960,7 +21967,7 @@ const xg = N.div`
|
|
|
21960
21967
|
rightMenu: /* @__PURE__ */ D(be, { children: [
|
|
21961
21968
|
(l == null ? void 0 : l.type) === "public" && /* @__PURE__ */ u(ae, { EndIcon: /* @__PURE__ */ u(M4, {}), onClick: () => r(!0) }),
|
|
21962
21969
|
l.role === "moderator" && l.type !== "private" && /* @__PURE__ */ u(
|
|
21963
|
-
|
|
21970
|
+
Bt,
|
|
21964
21971
|
{
|
|
21965
21972
|
position: "left",
|
|
21966
21973
|
options: o,
|
|
@@ -22080,7 +22087,7 @@ const xg = N.div`
|
|
|
22080
22087
|
}
|
|
22081
22088
|
),
|
|
22082
22089
|
c.xmppUsername !== m.xmppUsername && l.role === "moderator" && l.type !== "private" && /* @__PURE__ */ u(
|
|
22083
|
-
|
|
22090
|
+
Bt,
|
|
22084
22091
|
{
|
|
22085
22092
|
options: k(m.xmppUsername),
|
|
22086
22093
|
openButton: /* @__PURE__ */ u(
|
|
@@ -22378,7 +22385,7 @@ const x8 = ({
|
|
|
22378
22385
|
flex-direction: column;
|
|
22379
22386
|
gap: 16px;
|
|
22380
22387
|
width: 100%;
|
|
22381
|
-
`,
|
|
22388
|
+
`, St = N.div`
|
|
22382
22389
|
display: flex;
|
|
22383
22390
|
flex-direction: column;
|
|
22384
22391
|
gap: 8px;
|
|
@@ -22434,7 +22441,7 @@ const Zn = N(Ci)`
|
|
|
22434
22441
|
headerTitle: "Blocke Users"
|
|
22435
22442
|
}
|
|
22436
22443
|
),
|
|
22437
|
-
/* @__PURE__ */ D(
|
|
22444
|
+
/* @__PURE__ */ D(St, { children: [
|
|
22438
22445
|
/* @__PURE__ */ u(pn, { children: "Current Document Shares" }),
|
|
22439
22446
|
/* @__PURE__ */ u(Zn, { children: "Listed below are your currently active document sharing links. You can share or delete them." }),
|
|
22440
22447
|
/* @__PURE__ */ u(On, { children: /* @__PURE__ */ u(Xs, { bgColor: (i = e == null ? void 0 : e.colors) == null ? void 0 : i.secondary, children: /* @__PURE__ */ u(Js, { children: "There are no shares yet, or you can add them by clicking the “Add New Share” button" }) }) })
|
|
@@ -22491,7 +22498,7 @@ const Zn = N(Ci)`
|
|
|
22491
22498
|
headerTitle: "Document Shares"
|
|
22492
22499
|
}
|
|
22493
22500
|
),
|
|
22494
|
-
/* @__PURE__ */ u(Wn, { children: /* @__PURE__ */ u(Oi, { children: /* @__PURE__ */ D(
|
|
22501
|
+
/* @__PURE__ */ u(Wn, { children: /* @__PURE__ */ u(Oi, { children: /* @__PURE__ */ D(St, { children: [
|
|
22495
22502
|
/* @__PURE__ */ u(pn, { children: "Current Document Shares" }),
|
|
22496
22503
|
/* @__PURE__ */ u(Zn, { children: "Listed below are your currently active document sharing links. You can share or delete them." }),
|
|
22497
22504
|
/* @__PURE__ */ D(On, { children: [
|
|
@@ -22545,7 +22552,7 @@ const Zn = N(Ci)`
|
|
|
22545
22552
|
] });
|
|
22546
22553
|
};
|
|
22547
22554
|
function j8() {
|
|
22548
|
-
const n =
|
|
22555
|
+
const n = $.getState().chatSettingStore.user.token || "";
|
|
22549
22556
|
return Ee.get("/users/exportData", {
|
|
22550
22557
|
headers: {
|
|
22551
22558
|
Authorization: n,
|
|
@@ -22557,7 +22564,7 @@ function Rc(n) {
|
|
|
22557
22564
|
return Ee.put("/users", n);
|
|
22558
22565
|
}
|
|
22559
22566
|
async function Q8(n) {
|
|
22560
|
-
const e =
|
|
22567
|
+
const e = $.getState().chatSettingStore.user.token || "";
|
|
22561
22568
|
try {
|
|
22562
22569
|
return (await Ee.put("/users", n, {
|
|
22563
22570
|
headers: {
|
|
@@ -22595,7 +22602,7 @@ const F8 = ({
|
|
|
22595
22602
|
),
|
|
22596
22603
|
/* @__PURE__ */ D(Dg, { children: [
|
|
22597
22604
|
/* @__PURE__ */ D(Oi, { children: [
|
|
22598
|
-
/* @__PURE__ */ D(
|
|
22605
|
+
/* @__PURE__ */ D(St, { children: [
|
|
22599
22606
|
/* @__PURE__ */ u(pn, { children: "Download your data" }),
|
|
22600
22607
|
/* @__PURE__ */ u(
|
|
22601
22608
|
Qi,
|
|
@@ -22618,7 +22625,7 @@ const F8 = ({
|
|
|
22618
22625
|
)
|
|
22619
22626
|
] }),
|
|
22620
22627
|
/* @__PURE__ */ D(Oi, { children: [
|
|
22621
|
-
/* @__PURE__ */ D(
|
|
22628
|
+
/* @__PURE__ */ D(St, { children: [
|
|
22622
22629
|
/* @__PURE__ */ u(pn, { children: "Download your data" }),
|
|
22623
22630
|
/* @__PURE__ */ u(Zn, { children: "Use this only if you want to permanently delete your account & data from our system." })
|
|
22624
22631
|
] }),
|
|
@@ -22649,7 +22656,7 @@ const F8 = ({
|
|
|
22649
22656
|
headerTitle: "Profile Shares"
|
|
22650
22657
|
}
|
|
22651
22658
|
),
|
|
22652
|
-
/* @__PURE__ */ u(Wn, { children: /* @__PURE__ */ D(
|
|
22659
|
+
/* @__PURE__ */ u(Wn, { children: /* @__PURE__ */ D(St, { children: [
|
|
22653
22660
|
/* @__PURE__ */ u(pn, { children: "Current Profile Shares" }),
|
|
22654
22661
|
/* @__PURE__ */ u(Zn, { children: "Listed below are your currently active profile sharing links. You can share or delete them." }),
|
|
22655
22662
|
/* @__PURE__ */ u(On, { children: /* @__PURE__ */ u(Xs, { bgColor: (i = e == null ? void 0 : e.colors) == null ? void 0 : i.secondary, children: /* @__PURE__ */ u(Js, { children: "There are no shares yet, or you can add them by clicking the “Add New Share” button" }) }) })
|
|
@@ -22681,7 +22688,7 @@ const F8 = ({
|
|
|
22681
22688
|
/* @__PURE__ */ D(Oi, { style: { width: "100%" }, children: [
|
|
22682
22689
|
/* @__PURE__ */ u(pn, { children: "Your invitation code" }),
|
|
22683
22690
|
/* @__PURE__ */ u(
|
|
22684
|
-
|
|
22691
|
+
ns,
|
|
22685
22692
|
{
|
|
22686
22693
|
color: (i = e == null ? void 0 : e.colors) == null ? void 0 : i.primary,
|
|
22687
22694
|
placeholder: "Your invitation code"
|
|
@@ -22691,7 +22698,7 @@ const F8 = ({
|
|
|
22691
22698
|
/* @__PURE__ */ D(Oi, { style: { width: "100%" }, children: [
|
|
22692
22699
|
/* @__PURE__ */ u(pn, { children: "Or enter your referral code to earn coins" }),
|
|
22693
22700
|
/* @__PURE__ */ u(
|
|
22694
|
-
|
|
22701
|
+
ns,
|
|
22695
22702
|
{
|
|
22696
22703
|
color: (t = e == null ? void 0 : e.colors) == null ? void 0 : t.primary,
|
|
22697
22704
|
placeholder: "Your referral code"
|
|
@@ -22715,12 +22722,12 @@ const Wc = N.div`
|
|
|
22715
22722
|
display: flex;
|
|
22716
22723
|
flex-direction: column;
|
|
22717
22724
|
gap: 6px;
|
|
22718
|
-
`,
|
|
22725
|
+
`, dr = N.label`
|
|
22719
22726
|
display: flex;
|
|
22720
22727
|
align-items: center;
|
|
22721
22728
|
font-size: 14px;
|
|
22722
22729
|
gap: 8px;
|
|
22723
|
-
`,
|
|
22730
|
+
`, cr = N.input`
|
|
22724
22731
|
accent-color: ${({ radioColor: n }) => n || "#0052CD"};
|
|
22725
22732
|
margin: 0px;
|
|
22726
22733
|
`, W8 = N.div`
|
|
@@ -22760,9 +22767,9 @@ const Wc = N.div`
|
|
|
22760
22767
|
/* @__PURE__ */ D(Oi, { children: [
|
|
22761
22768
|
/* @__PURE__ */ u(pn, { children: "Profile Visiblility" }),
|
|
22762
22769
|
/* @__PURE__ */ D(Wc, { children: [
|
|
22763
|
-
/* @__PURE__ */ D(
|
|
22770
|
+
/* @__PURE__ */ D(dr, { children: [
|
|
22764
22771
|
/* @__PURE__ */ u(
|
|
22765
|
-
|
|
22772
|
+
cr,
|
|
22766
22773
|
{
|
|
22767
22774
|
radioColor: (l = t == null ? void 0 : t.colors) == null ? void 0 : l.primary,
|
|
22768
22775
|
type: "radio",
|
|
@@ -22773,9 +22780,9 @@ const Wc = N.div`
|
|
|
22773
22780
|
"Open (default)"
|
|
22774
22781
|
] }),
|
|
22775
22782
|
/* @__PURE__ */ u(Zn, { children: "Your profile can be viewed by anyone who follows your profile link or QR code." }),
|
|
22776
|
-
/* @__PURE__ */ D(
|
|
22783
|
+
/* @__PURE__ */ D(dr, { children: [
|
|
22777
22784
|
/* @__PURE__ */ u(
|
|
22778
|
-
|
|
22785
|
+
cr,
|
|
22779
22786
|
{
|
|
22780
22787
|
radioColor: (h = t == null ? void 0 : t.colors) == null ? void 0 : h.primary,
|
|
22781
22788
|
type: "radio",
|
|
@@ -22791,9 +22798,9 @@ const Wc = N.div`
|
|
|
22791
22798
|
/* @__PURE__ */ D(Oi, { children: [
|
|
22792
22799
|
/* @__PURE__ */ u(pn, { children: "Documents Visibility" }),
|
|
22793
22800
|
/* @__PURE__ */ D(Wc, { children: [
|
|
22794
|
-
/* @__PURE__ */ D(
|
|
22801
|
+
/* @__PURE__ */ D(dr, { children: [
|
|
22795
22802
|
/* @__PURE__ */ u(
|
|
22796
|
-
|
|
22803
|
+
cr,
|
|
22797
22804
|
{
|
|
22798
22805
|
radioColor: (g = t == null ? void 0 : t.colors) == null ? void 0 : g.primary,
|
|
22799
22806
|
type: "radio",
|
|
@@ -22804,9 +22811,9 @@ const Wc = N.div`
|
|
|
22804
22811
|
"Full (default)"
|
|
22805
22812
|
] }),
|
|
22806
22813
|
/* @__PURE__ */ u(Zn, { children: "Show all Documents to those who can see your profile." }),
|
|
22807
|
-
/* @__PURE__ */ D(
|
|
22814
|
+
/* @__PURE__ */ D(dr, { children: [
|
|
22808
22815
|
/* @__PURE__ */ u(
|
|
22809
|
-
|
|
22816
|
+
cr,
|
|
22810
22817
|
{
|
|
22811
22818
|
radioColor: (p = t == null ? void 0 : t.colors) == null ? void 0 : p.primary,
|
|
22812
22819
|
type: "radio",
|
|
@@ -22910,7 +22917,7 @@ const Wc = N.div`
|
|
|
22910
22917
|
},
|
|
22911
22918
|
children: [
|
|
22912
22919
|
/* @__PURE__ */ u(
|
|
22913
|
-
|
|
22920
|
+
Ir,
|
|
22914
22921
|
{
|
|
22915
22922
|
color: (g = i == null ? void 0 : i.colors) == null ? void 0 : g.primary,
|
|
22916
22923
|
placeholder: "First Name",
|
|
@@ -22920,7 +22927,7 @@ const Wc = N.div`
|
|
|
22920
22927
|
}
|
|
22921
22928
|
),
|
|
22922
22929
|
/* @__PURE__ */ u(
|
|
22923
|
-
|
|
22930
|
+
Ir,
|
|
22924
22931
|
{
|
|
22925
22932
|
color: (p = i == null ? void 0 : i.colors) == null ? void 0 : p.primary,
|
|
22926
22933
|
placeholder: "Last Name",
|
|
@@ -22930,7 +22937,7 @@ const Wc = N.div`
|
|
|
22930
22937
|
}
|
|
22931
22938
|
),
|
|
22932
22939
|
/* @__PURE__ */ u(
|
|
22933
|
-
|
|
22940
|
+
Ir,
|
|
22934
22941
|
{
|
|
22935
22942
|
color: (v = i == null ? void 0 : i.colors) == null ? void 0 : v.primary,
|
|
22936
22943
|
placeholder: "About",
|
|
@@ -22951,7 +22958,7 @@ const Wc = N.div`
|
|
|
22951
22958
|
), [A, o] = X(!1), [d, f] = X(!1), c = ie(() => {
|
|
22952
22959
|
e(po()), n();
|
|
22953
22960
|
}, []), l = ie(() => {
|
|
22954
|
-
e(
|
|
22961
|
+
e(Ds()), e(vo());
|
|
22955
22962
|
}, []), h = Ce(
|
|
22956
22963
|
() => [
|
|
22957
22964
|
{
|
|
@@ -22983,7 +22990,7 @@ const Wc = N.div`
|
|
|
22983
22990
|
(s == null ? void 0 : s.userJID) ?? (s == null ? void 0 : s.id)
|
|
22984
22991
|
);
|
|
22985
22992
|
else {
|
|
22986
|
-
const P =
|
|
22993
|
+
const P = zr(r.defaultWallet.walletAddress), E = zr(s.id), j = [P, E].sort().join(".").toLowerCase(), I = [
|
|
22987
22994
|
r.firstName,
|
|
22988
22995
|
(S = (x = s.name) == null ? void 0 : x.split(" ")) == null ? void 0 : S[0]
|
|
22989
22996
|
].sort().join(" and ");
|
|
@@ -23009,7 +23016,7 @@ const Wc = N.div`
|
|
|
23009
23016
|
rightMenu: !s && /* @__PURE__ */ D(be, { children: [
|
|
23010
23017
|
/* @__PURE__ */ u(ae, { onClick: v, children: /* @__PURE__ */ u(Ys, { color: "#8C8C8C" }) }),
|
|
23011
23018
|
/* @__PURE__ */ u(
|
|
23012
|
-
|
|
23019
|
+
Bt,
|
|
23013
23020
|
{
|
|
23014
23021
|
options: h,
|
|
23015
23022
|
position: "left",
|
|
@@ -23179,13 +23186,13 @@ const Wc = N.div`
|
|
|
23179
23186
|
[pe.PROFILE_SHARES]: L8,
|
|
23180
23187
|
[pe.BLOCKED_USERS]: D8,
|
|
23181
23188
|
[pe.FILE_PREVIEW]: B8
|
|
23182
|
-
},
|
|
23189
|
+
}, zt = N.div`
|
|
23183
23190
|
display: flex;
|
|
23184
23191
|
width: 80%;
|
|
23185
23192
|
max-width: 190px;
|
|
23186
23193
|
flex-direction: column;
|
|
23187
23194
|
align-items: flex-start;
|
|
23188
|
-
`,
|
|
23195
|
+
`, qt = N.div`
|
|
23189
23196
|
height: 20px;
|
|
23190
23197
|
font-weight: 600;
|
|
23191
23198
|
white-space: nowrap;
|
|
@@ -23254,8 +23261,8 @@ const Wc = N.div`
|
|
|
23254
23261
|
user: n,
|
|
23255
23262
|
location: e,
|
|
23256
23263
|
originalName: i
|
|
23257
|
-
}) => /* @__PURE__ */ D(
|
|
23258
|
-
/* @__PURE__ */ D(
|
|
23264
|
+
}) => /* @__PURE__ */ D(zt, { children: [
|
|
23265
|
+
/* @__PURE__ */ D(qt, { children: [
|
|
23259
23266
|
n.name || "",
|
|
23260
23267
|
":"
|
|
23261
23268
|
] }),
|
|
@@ -23276,8 +23283,8 @@ const Wc = N.div`
|
|
|
23276
23283
|
]
|
|
23277
23284
|
}
|
|
23278
23285
|
)
|
|
23279
|
-
] }), $8 = ({ user: n, body: e }) => /* @__PURE__ */ D(
|
|
23280
|
-
/* @__PURE__ */ u(
|
|
23286
|
+
] }), $8 = ({ user: n, body: e }) => /* @__PURE__ */ D(zt, { children: [
|
|
23287
|
+
/* @__PURE__ */ u(qt, { children: n.name }),
|
|
23281
23288
|
/* @__PURE__ */ u(ct, { children: e || "Chat created" })
|
|
23282
23289
|
] }), ex = N.div`
|
|
23283
23290
|
position: relative;
|
|
@@ -23293,8 +23300,8 @@ const Wc = N.div`
|
|
|
23293
23300
|
user: n,
|
|
23294
23301
|
locationPreview: e,
|
|
23295
23302
|
originalName: i
|
|
23296
|
-
}) => /* @__PURE__ */ D(
|
|
23297
|
-
/* @__PURE__ */ D(
|
|
23303
|
+
}) => /* @__PURE__ */ D(zt, { children: [
|
|
23304
|
+
/* @__PURE__ */ D(qt, { children: [
|
|
23298
23305
|
n.name || "",
|
|
23299
23306
|
":"
|
|
23300
23307
|
] }),
|
|
@@ -63449,8 +63456,8 @@ const Wc = N.div`
|
|
|
63449
63456
|
const r = Af.emojis[t];
|
|
63450
63457
|
return r ? r.skins[0].native : "";
|
|
63451
63458
|
};
|
|
63452
|
-
return /* @__PURE__ */ D(
|
|
63453
|
-
/* @__PURE__ */ D(
|
|
63459
|
+
return /* @__PURE__ */ D(zt, { children: [
|
|
63460
|
+
/* @__PURE__ */ D(qt, { children: [
|
|
63454
63461
|
n.name || "",
|
|
63455
63462
|
":"
|
|
63456
63463
|
] }),
|
|
@@ -63460,8 +63467,8 @@ const Wc = N.div`
|
|
|
63460
63467
|
user: n,
|
|
63461
63468
|
originalName: e,
|
|
63462
63469
|
locationPreview: i
|
|
63463
|
-
}) => /* @__PURE__ */ D(
|
|
63464
|
-
/* @__PURE__ */ D(
|
|
63470
|
+
}) => /* @__PURE__ */ D(zt, { children: [
|
|
63471
|
+
/* @__PURE__ */ D(qt, { children: [
|
|
63465
63472
|
n.name || "",
|
|
63466
63473
|
":"
|
|
63467
63474
|
] }),
|
|
@@ -63676,7 +63683,7 @@ const Wc = N.div`
|
|
|
63676
63683
|
(w) => l === w.jid,
|
|
63677
63684
|
[l]
|
|
63678
63685
|
), C = ie(async () => {
|
|
63679
|
-
r && (await r.close(), s(null)), f(vo()), f(
|
|
63686
|
+
r && (await r.close(), s(null)), f(vo()), f(Ds());
|
|
63680
63687
|
}, []), y = Ce(
|
|
63681
63688
|
() => [
|
|
63682
63689
|
{
|
|
@@ -63717,7 +63724,7 @@ const Wc = N.div`
|
|
|
63717
63724
|
children: (a || !e) && /* @__PURE__ */ D(B5, { children: [
|
|
63718
63725
|
/* @__PURE__ */ D(E5, { children: [
|
|
63719
63726
|
!(c != null && c.disableRoomMenu) && /* @__PURE__ */ u(
|
|
63720
|
-
|
|
63727
|
+
Bt,
|
|
63721
63728
|
{
|
|
63722
63729
|
options: y
|
|
63723
63730
|
}
|
|
@@ -63780,7 +63787,7 @@ const Wc = N.div`
|
|
|
63780
63787
|
[n]
|
|
63781
63788
|
);
|
|
63782
63789
|
return /* @__PURE__ */ u(
|
|
63783
|
-
|
|
63790
|
+
Bt,
|
|
63784
63791
|
{
|
|
63785
63792
|
position: "left",
|
|
63786
63793
|
options: i,
|
|
@@ -64008,7 +64015,7 @@ const Wc = N.div`
|
|
|
64008
64015
|
if (!(n != null && n.disableSentLogic)) {
|
|
64009
64016
|
const p = `send-translate-message-${Date.now().toString()}`;
|
|
64010
64017
|
t(
|
|
64011
|
-
|
|
64018
|
+
Vr({
|
|
64012
64019
|
roomJID: f,
|
|
64013
64020
|
message: {
|
|
64014
64021
|
user: {
|
|
@@ -64042,7 +64049,7 @@ const Wc = N.div`
|
|
|
64042
64049
|
} else {
|
|
64043
64050
|
const p = `send-text-message-${Date.now().toString()}`;
|
|
64044
64051
|
n != null && n.disableSentLogic || t(
|
|
64045
|
-
|
|
64052
|
+
Vr({
|
|
64046
64053
|
roomJID: f,
|
|
64047
64054
|
message: {
|
|
64048
64055
|
id: p,
|
|
@@ -64136,7 +64143,7 @@ const Wc = N.div`
|
|
|
64136
64143
|
var a;
|
|
64137
64144
|
n(
|
|
64138
64145
|
bo({
|
|
64139
|
-
room:
|
|
64146
|
+
room: Jr(s, (a = t == null ? void 0 : t.xmppSettings) == null ? void 0 : a.conference),
|
|
64140
64147
|
xmpp: i
|
|
64141
64148
|
})
|
|
64142
64149
|
);
|
|
@@ -64215,7 +64222,7 @@ const Wc = N.div`
|
|
|
64215
64222
|
} = Sg(), { sendStartComposing: k, sendEndComposing: b } = xx(), m = ie(
|
|
64216
64223
|
(j) => {
|
|
64217
64224
|
t(
|
|
64218
|
-
|
|
64225
|
+
wr({
|
|
64219
64226
|
chatJID: d,
|
|
64220
64227
|
timestamp: 0
|
|
64221
64228
|
})
|
|
@@ -64244,7 +64251,7 @@ const Wc = N.div`
|
|
|
64244
64251
|
t(ti({ isEdit: !1 }));
|
|
64245
64252
|
};
|
|
64246
64253
|
return de(() => (t(
|
|
64247
|
-
|
|
64254
|
+
wr({
|
|
64248
64255
|
chatJID: d,
|
|
64249
64256
|
timestamp: 0
|
|
64250
64257
|
})
|
|
@@ -64254,7 +64261,7 @@ const Wc = N.div`
|
|
|
64254
64261
|
(/* @__PURE__ */ new Date()).getTime(),
|
|
64255
64262
|
Object.keys(o)
|
|
64256
64263
|
), t(
|
|
64257
|
-
|
|
64264
|
+
wr({
|
|
64258
64265
|
chatJID: d,
|
|
64259
64266
|
timestamp: (/* @__PURE__ */ new Date()).getTime()
|
|
64260
64267
|
})
|
|
@@ -64429,7 +64436,7 @@ function Te(n, e, i, t) {
|
|
|
64429
64436
|
o((t = t.apply(n, e || [])).next());
|
|
64430
64437
|
});
|
|
64431
64438
|
}
|
|
64432
|
-
class
|
|
64439
|
+
class Vt {
|
|
64433
64440
|
constructor() {
|
|
64434
64441
|
this.listeners = {};
|
|
64435
64442
|
}
|
|
@@ -64513,7 +64520,7 @@ const Ix = { fetchBlob: function(n, e, i) {
|
|
|
64513
64520
|
}(t.clone(), e), t.blob();
|
|
64514
64521
|
});
|
|
64515
64522
|
} };
|
|
64516
|
-
class Nx extends
|
|
64523
|
+
class Nx extends Vt {
|
|
64517
64524
|
constructor(e) {
|
|
64518
64525
|
super(), this.isExternalMedia = !1, e.media ? (this.media = e.media, this.isExternalMedia = !0) : this.media = document.createElement("audio"), e.mediaControls && (this.media.controls = !0), e.autoplay && (this.media.autoplay = !0), e.playbackRate != null && this.onMediaEvent("canplay", () => {
|
|
64519
64526
|
e.playbackRate != null && (this.media.playbackRate = e.playbackRate);
|
|
@@ -64597,7 +64604,7 @@ class Nx extends Ut {
|
|
|
64597
64604
|
return this.media.setSinkId(e);
|
|
64598
64605
|
}
|
|
64599
64606
|
}
|
|
64600
|
-
class nt extends
|
|
64607
|
+
class nt extends Vt {
|
|
64601
64608
|
constructor(e, i) {
|
|
64602
64609
|
super(), this.timeouts = [], this.isScrollable = !1, this.audioData = null, this.resizeObserver = null, this.lastContainerWidth = 0, this.isDragging = !1, this.subscriptions = [], this.subscriptions = [], this.options = e;
|
|
64603
64610
|
const t = this.parentFromOptionsContainer(e.container);
|
|
@@ -64983,7 +64990,7 @@ class nt extends Ut {
|
|
|
64983
64990
|
}
|
|
64984
64991
|
}
|
|
64985
64992
|
nt.MAX_CANVAS_WIDTH = 8e3, nt.MAX_NODES = 10;
|
|
64986
|
-
class Sx extends
|
|
64993
|
+
class Sx extends Vt {
|
|
64987
64994
|
constructor() {
|
|
64988
64995
|
super(...arguments), this.unsubscribe = () => {
|
|
64989
64996
|
};
|
|
@@ -65002,7 +65009,7 @@ class Sx extends Ut {
|
|
|
65002
65009
|
this.unsubscribe();
|
|
65003
65010
|
}
|
|
65004
65011
|
}
|
|
65005
|
-
class Vc extends
|
|
65012
|
+
class Vc extends Vt {
|
|
65006
65013
|
constructor(e = new AudioContext()) {
|
|
65007
65014
|
super(), this.bufferNode = null, this.playStartTime = 0, this.playedDuration = 0, this._muted = !1, this._playbackRate = 1, this._duration = void 0, this.buffer = null, this.currentSrc = "", this.paused = !0, this.crossOrigin = null, this.seeking = !1, this.autoplay = !1, this.addEventListener = this.on, this.removeEventListener = this.un, this.audioContext = e, this.gainNode = this.audioContext.createGain(), this.gainNode.connect(this.audioContext.destination);
|
|
65008
65015
|
}
|
|
@@ -65102,9 +65109,9 @@ class Vc extends Ut {
|
|
|
65102
65109
|
}
|
|
65103
65110
|
}
|
|
65104
65111
|
const Px = { waveColor: "#999", progressColor: "#555", cursorWidth: 1, minPxPerSec: 0, fillParent: !0, interact: !0, dragToSeek: !1, autoScroll: !0, autoCenter: !0, sampleRate: 8e3 };
|
|
65105
|
-
class
|
|
65112
|
+
class Pt extends Nx {
|
|
65106
65113
|
static create(e) {
|
|
65107
|
-
return new
|
|
65114
|
+
return new Pt(e);
|
|
65108
65115
|
}
|
|
65109
65116
|
constructor(e) {
|
|
65110
65117
|
const i = e.media || (e.backend === "WebAudio" ? new Vc() : void 0);
|
|
@@ -65321,7 +65328,7 @@ class Ot extends Nx {
|
|
|
65321
65328
|
this.emit("destroy"), (e = this.abortController) === null || e === void 0 || e.abort(), this.plugins.forEach((i) => i.destroy()), this.subscriptions.forEach((i) => i()), this.unsubscribePlayerEvents(), this.timer.destroy(), this.renderer.destroy(), super.destroy();
|
|
65322
65329
|
}
|
|
65323
65330
|
}
|
|
65324
|
-
|
|
65331
|
+
Pt.BasePlugin = class extends Vt {
|
|
65325
65332
|
constructor(n) {
|
|
65326
65333
|
super(), this.subscriptions = [], this.options = n;
|
|
65327
65334
|
}
|
|
@@ -65333,7 +65340,7 @@ Ot.BasePlugin = class extends Ut {
|
|
|
65333
65340
|
destroy() {
|
|
65334
65341
|
this.emit("destroy"), this.subscriptions.forEach((n) => n());
|
|
65335
65342
|
}
|
|
65336
|
-
},
|
|
65343
|
+
}, Pt.dom = Dx;
|
|
65337
65344
|
const Ox = ({ src: n }) => {
|
|
65338
65345
|
var f;
|
|
65339
65346
|
const e = fe(
|
|
@@ -65341,7 +65348,7 @@ const Ox = ({ src: n }) => {
|
|
|
65341
65348
|
), i = me(null), t = me(null), [r, s] = X(!1), [a, A] = X(1);
|
|
65342
65349
|
de(() => {
|
|
65343
65350
|
var c;
|
|
65344
|
-
return t.current =
|
|
65351
|
+
return t.current = Pt.create({
|
|
65345
65352
|
container: i.current,
|
|
65346
65353
|
waveColor: "#C4C4C4",
|
|
65347
65354
|
progressColor: ((c = e == null ? void 0 : e.colors) == null ? void 0 : c.primary) || "#0052CD",
|
|
@@ -65506,7 +65513,7 @@ function Ke(n, e, i) {
|
|
|
65506
65513
|
writable: !0
|
|
65507
65514
|
}) : n[e] = i, n;
|
|
65508
65515
|
}
|
|
65509
|
-
var Ks, ee, jg, yt, Qg, Uc,
|
|
65516
|
+
var Ks, ee, jg, yt, Qg, Uc, fs = {}, Fg = [], jx = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
65510
65517
|
function _n(n, e) {
|
|
65511
65518
|
for (var i in e) n[i] = e[i];
|
|
65512
65519
|
return n;
|
|
@@ -65519,9 +65526,9 @@ function qA(n, e, i) {
|
|
|
65519
65526
|
var t, r, s, a = {};
|
|
65520
65527
|
for (s in e) s == "key" ? t = e[s] : s == "ref" ? r = e[s] : a[s] = e[s];
|
|
65521
65528
|
if (arguments.length > 2 && (a.children = arguments.length > 3 ? Ks.call(arguments, 2) : i), typeof n == "function" && n.defaultProps != null) for (s in n.defaultProps) a[s] === void 0 && (a[s] = n.defaultProps[s]);
|
|
65522
|
-
return
|
|
65529
|
+
return Tr(n, a, t, r, null);
|
|
65523
65530
|
}
|
|
65524
|
-
function
|
|
65531
|
+
function Tr(n, e, i, t, r) {
|
|
65525
65532
|
var s = {
|
|
65526
65533
|
type: n,
|
|
65527
65534
|
props: e,
|
|
@@ -65566,10 +65573,10 @@ function Rg(n) {
|
|
|
65566
65573
|
}
|
|
65567
65574
|
}
|
|
65568
65575
|
function Xc(n) {
|
|
65569
|
-
(!n.__d && (n.__d = !0) && yt.push(n) && !
|
|
65576
|
+
(!n.__d && (n.__d = !0) && yt.push(n) && !ds.__r++ || Uc !== ee.debounceRendering) && ((Uc = ee.debounceRendering) || Qg)(ds);
|
|
65570
65577
|
}
|
|
65571
|
-
function
|
|
65572
|
-
for (var n;
|
|
65578
|
+
function ds() {
|
|
65579
|
+
for (var n; ds.__r = yt.length; ) n = yt.sort(function(e, i) {
|
|
65573
65580
|
return e.__v.__b - i.__v.__b;
|
|
65574
65581
|
}), yt = [], n.some(function(e) {
|
|
65575
65582
|
var i, t, r, s, a, A;
|
|
@@ -65580,9 +65587,9 @@ function cs() {
|
|
|
65580
65587
|
}
|
|
65581
65588
|
function Wg(n, e, i, t, r, s, a, A, o, d) {
|
|
65582
65589
|
var f, c, l, h, g, p, v, k = t && t.__k || Fg, b = k.length;
|
|
65583
|
-
for (i.__k = [], f = 0; f < e.length; f++) if ((h = i.__k[f] = (h = e[f]) == null || typeof h == "boolean" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ?
|
|
65590
|
+
for (i.__k = [], f = 0; f < e.length; f++) if ((h = i.__k[f] = (h = e[f]) == null || typeof h == "boolean" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? Tr(null, h, null, null, h) : Array.isArray(h) ? Tr(it, {
|
|
65584
65591
|
children: h
|
|
65585
|
-
}, null, null, null) : h.__b > 0 ?
|
|
65592
|
+
}, null, null, null) : h.__b > 0 ? Tr(h.type, h.props, h.key, null, h.__v) : h) != null) {
|
|
65586
65593
|
if (h.__ = i, h.__b = i.__b + 1, (l = k[f]) === null || l && h.key == l.key && h.type === l.type) k[f] = void 0;
|
|
65587
65594
|
else for (c = 0; c < b; c++) {
|
|
65588
65595
|
if ((l = k[c]) && h.key == l.key && h.type === l.type) {
|
|
@@ -65591,7 +65598,7 @@ function Wg(n, e, i, t, r, s, a, A, o, d) {
|
|
|
65591
65598
|
}
|
|
65592
65599
|
l = null;
|
|
65593
65600
|
}
|
|
65594
|
-
of(n, h, l = l ||
|
|
65601
|
+
of(n, h, l = l || fs, r, s, a, A, o, d), g = h.__e, (c = h.ref) && l.ref != c && (v || (v = []), l.ref && v.push(l.ref, null, h), v.push(c, h.__c || g, h)), g != null ? (p == null && (p = g), typeof h.type == "function" && h.__k === l.__k ? h.__d = o = Yg(h, o, n) : o = Hg(n, h, l, k, g, o), typeof i.type == "function" && (i.__d = o)) : o && l.__e == o && o.parentNode != n && (o = tt(l));
|
|
65595
65602
|
}
|
|
65596
65603
|
for (i.__e = p, f = b; f--; ) k[f] != null && (typeof i.type == "function" && k[f].__e != null && k[f].__e == i.__d && (i.__d = tt(t, f + 1)), qg(k[f], k[f]));
|
|
65597
65604
|
if (v) for (f = 0; f < v.length; f++) zg(v[f], v[++f], v[++f]);
|
|
@@ -65600,9 +65607,9 @@ function Yg(n, e, i) {
|
|
|
65600
65607
|
for (var t, r = n.__k, s = 0; r && s < r.length; s++) (t = r[s]) && (t.__ = n, e = typeof t.type == "function" ? Yg(t, e, i) : Hg(i, t, t, r, t.__e, e));
|
|
65601
65608
|
return e;
|
|
65602
65609
|
}
|
|
65603
|
-
function
|
|
65610
|
+
function cs(n, e) {
|
|
65604
65611
|
return e = e || [], n == null || typeof n == "boolean" || (Array.isArray(n) ? n.some(function(i) {
|
|
65605
|
-
|
|
65612
|
+
cs(i, e);
|
|
65606
65613
|
}) : e.push(n)), e;
|
|
65607
65614
|
}
|
|
65608
65615
|
function Hg(n, e, i, t, r, s) {
|
|
@@ -65617,13 +65624,13 @@ function Hg(n, e, i, t, r, s) {
|
|
|
65617
65624
|
}
|
|
65618
65625
|
function Qx(n, e, i, t, r) {
|
|
65619
65626
|
var s;
|
|
65620
|
-
for (s in i) s === "children" || s === "key" || s in e ||
|
|
65621
|
-
for (s in e) r && typeof e[s] != "function" || s === "children" || s === "key" || s === "value" || s === "checked" || i[s] === e[s] ||
|
|
65627
|
+
for (s in i) s === "children" || s === "key" || s in e || ls(n, s, null, i[s], t);
|
|
65628
|
+
for (s in e) r && typeof e[s] != "function" || s === "children" || s === "key" || s === "value" || s === "checked" || i[s] === e[s] || ls(n, s, e[s], i[s], t);
|
|
65622
65629
|
}
|
|
65623
65630
|
function Jc(n, e, i) {
|
|
65624
65631
|
e[0] === "-" ? n.setProperty(e, i) : n[e] = i == null ? "" : typeof i != "number" || jx.test(e) ? i : i + "px";
|
|
65625
65632
|
}
|
|
65626
|
-
function
|
|
65633
|
+
function ls(n, e, i, t, r) {
|
|
65627
65634
|
var s;
|
|
65628
65635
|
e: if (e === "style")
|
|
65629
65636
|
if (typeof i == "string") n.style.cssText = i;
|
|
@@ -65702,7 +65709,7 @@ function Fx(n, e, i, t, r, s, a, A) {
|
|
|
65702
65709
|
}
|
|
65703
65710
|
if (h === null) c === l || A && n.data === l || (n.data = l);
|
|
65704
65711
|
else {
|
|
65705
|
-
if (s = s && Ks.call(n.childNodes), d = (c = i.props ||
|
|
65712
|
+
if (s = s && Ks.call(n.childNodes), d = (c = i.props || fs).dangerouslySetInnerHTML, f = l.dangerouslySetInnerHTML, !A) {
|
|
65706
65713
|
if (s != null) for (c = {}, g = 0; g < n.attributes.length; g++) c[n.attributes[g].name] = n.attributes[g].value;
|
|
65707
65714
|
(f || d) && (f && (d && f.__html == d.__html || f.__html === n.innerHTML) || (n.innerHTML = f && f.__html || ""));
|
|
65708
65715
|
}
|
|
@@ -65710,7 +65717,7 @@ function Fx(n, e, i, t, r, s, a, A) {
|
|
|
65710
65717
|
else if (g = e.props.children, Wg(n, Array.isArray(g) ? g : [
|
|
65711
65718
|
g
|
|
65712
65719
|
], e, i, t, r && h !== "foreignObject", s, a, s ? s[0] : i.__k && tt(i, 0), A), s != null) for (g = s.length; g--; ) s[g] != null && Lg(s[g]);
|
|
65713
|
-
A || ("value" in l && (g = l.value) !== void 0 && (g !== c.value || g !== n.value || h === "progress" && !g) &&
|
|
65720
|
+
A || ("value" in l && (g = l.value) !== void 0 && (g !== c.value || g !== n.value || h === "progress" && !g) && ls(n, "value", g, c.value, !1), "checked" in l && (g = l.checked) !== void 0 && g !== n.checked && ls(n, "checked", g, c.checked, !1));
|
|
65714
65721
|
}
|
|
65715
65722
|
return n;
|
|
65716
65723
|
}
|
|
@@ -65741,7 +65748,7 @@ function Vg(n, e, i) {
|
|
|
65741
65748
|
var t, r, s;
|
|
65742
65749
|
ee.__ && ee.__(n, e), r = (t = typeof i == "function") ? null : i && i.__k || e.__k, s = [], of(e, n = (!t && i || e).__k = qA(it, null, [
|
|
65743
65750
|
n
|
|
65744
|
-
]), r ||
|
|
65751
|
+
]), r || fs, fs, e.ownerSVGElement !== void 0, !t && i ? [
|
|
65745
65752
|
i
|
|
65746
65753
|
] : r ? null : e.firstChild ? Ks.call(e.childNodes) : null, s, !t && i ? i : r ? r.__e : e.firstChild, t), Gg(s, n);
|
|
65747
65754
|
}
|
|
@@ -65759,7 +65766,7 @@ Ks = Fg.slice, ee = {
|
|
|
65759
65766
|
i = this.__s != null && this.__s !== this.state ? this.__s : this.__s = _n({}, this.state), typeof n == "function" && (n = n(_n({}, i), this.props)), n && _n(i, n), n != null && this.__v && (e && this.__h.push(e), Xc(this));
|
|
65760
65767
|
}, vn.prototype.forceUpdate = function(n) {
|
|
65761
65768
|
this.__v && (this.__e = !0, n && this.__h.push(n), Xc(this));
|
|
65762
|
-
}, vn.prototype.render = it, yt = [], Qg = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout,
|
|
65769
|
+
}, vn.prototype.render = it, yt = [], Qg = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ds.__r = 0;
|
|
65763
65770
|
var Rx = 0;
|
|
65764
65771
|
function H(n, e, i, t, r) {
|
|
65765
65772
|
var s, a, A = {};
|
|
@@ -66500,7 +66507,7 @@ const tE = {
|
|
|
66500
66507
|
})
|
|
66501
66508
|
})
|
|
66502
66509
|
};
|
|
66503
|
-
var
|
|
66510
|
+
var us = {
|
|
66504
66511
|
categories: tE,
|
|
66505
66512
|
search: rE
|
|
66506
66513
|
};
|
|
@@ -66618,7 +66625,7 @@ function AE() {
|
|
|
66618
66625
|
for (JA.sort(function(e, i) {
|
|
66619
66626
|
return e.__v.__b - i.__v.__b;
|
|
66620
66627
|
}); n = JA.pop(); ) if (n.__P) try {
|
|
66621
|
-
n.__H.__h.forEach(
|
|
66628
|
+
n.__H.__h.forEach(jr), n.__H.__h.forEach(KA), n.__H.__h = [];
|
|
66622
66629
|
} catch (e) {
|
|
66623
66630
|
n.__H.__h = [], ee.__e(e, n.__v);
|
|
66624
66631
|
}
|
|
@@ -66628,7 +66635,7 @@ ee.__b = function(n) {
|
|
|
66628
66635
|
}, ee.__r = function(n) {
|
|
66629
66636
|
il && il(n);
|
|
66630
66637
|
var e = n.__c.__H;
|
|
66631
|
-
e && (e.__h.forEach(
|
|
66638
|
+
e && (e.__h.forEach(jr), e.__h.forEach(KA), e.__h = []);
|
|
66632
66639
|
}, ee.diffed = function(n) {
|
|
66633
66640
|
tl && tl(n);
|
|
66634
66641
|
var e = n.__c;
|
|
@@ -66641,7 +66648,7 @@ ee.__b = function(n) {
|
|
|
66641
66648
|
}, ee.__c = function(n, e) {
|
|
66642
66649
|
e.some(function(i) {
|
|
66643
66650
|
try {
|
|
66644
|
-
i.__h.forEach(
|
|
66651
|
+
i.__h.forEach(jr), i.__h = i.__h.filter(function(t) {
|
|
66645
66652
|
return !t.__ || KA(t);
|
|
66646
66653
|
});
|
|
66647
66654
|
} catch (t) {
|
|
@@ -66655,14 +66662,14 @@ ee.__b = function(n) {
|
|
|
66655
66662
|
var e, i = n.__c;
|
|
66656
66663
|
i && i.__H && (i.__H.__.forEach(function(t) {
|
|
66657
66664
|
try {
|
|
66658
|
-
|
|
66665
|
+
jr(t);
|
|
66659
66666
|
} catch (r) {
|
|
66660
66667
|
e = r;
|
|
66661
66668
|
}
|
|
66662
66669
|
}), e && ee.__e(e, i.__v));
|
|
66663
66670
|
};
|
|
66664
66671
|
var al = typeof requestAnimationFrame == "function";
|
|
66665
|
-
function
|
|
66672
|
+
function jr(n) {
|
|
66666
66673
|
var e = n.__c;
|
|
66667
66674
|
typeof e == "function" && (n.__c = void 0, e());
|
|
66668
66675
|
}
|
|
@@ -66678,10 +66685,10 @@ function Al(n, e) {
|
|
|
66678
66685
|
for (var t in e) if (t !== "__source" && n[t] !== e[t]) return !0;
|
|
66679
66686
|
return !1;
|
|
66680
66687
|
}
|
|
66681
|
-
function
|
|
66688
|
+
function hs(n) {
|
|
66682
66689
|
this.props = n;
|
|
66683
66690
|
}
|
|
66684
|
-
(
|
|
66691
|
+
(hs.prototype = new vn()).isPureReactComponent = !0, hs.prototype.shouldComponentUpdate = function(n, e) {
|
|
66685
66692
|
return Al(this.props, n) || Al(this.state, e);
|
|
66686
66693
|
};
|
|
66687
66694
|
var ol = ee.__b;
|
|
@@ -66703,7 +66710,7 @@ function tm(n) {
|
|
|
66703
66710
|
var e = n.__.__c;
|
|
66704
66711
|
return e && e.__e && e.__e(n);
|
|
66705
66712
|
}
|
|
66706
|
-
function
|
|
66713
|
+
function lr() {
|
|
66707
66714
|
this.u = null, this.o = null;
|
|
66708
66715
|
}
|
|
66709
66716
|
ee.unmount = function(n) {
|
|
@@ -66764,7 +66771,7 @@ var dl = function(n, e, i) {
|
|
|
66764
66771
|
n.u = i = i[2];
|
|
66765
66772
|
}
|
|
66766
66773
|
};
|
|
66767
|
-
(
|
|
66774
|
+
(lr.prototype = new vn()).__e = function(n) {
|
|
66768
66775
|
var e = this, i = tm(e.__v), t = e.o.get(n);
|
|
66769
66776
|
return t[0]++, function(r) {
|
|
66770
66777
|
var s = function() {
|
|
@@ -66772,9 +66779,9 @@ var dl = function(n, e, i) {
|
|
|
66772
66779
|
};
|
|
66773
66780
|
i ? i(s) : s();
|
|
66774
66781
|
};
|
|
66775
|
-
},
|
|
66782
|
+
}, lr.prototype.render = function(n) {
|
|
66776
66783
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
66777
|
-
var e =
|
|
66784
|
+
var e = cs(n.children);
|
|
66778
66785
|
n.revealOrder && n.revealOrder[0] === "b" && e.reverse();
|
|
66779
66786
|
for (var i = e.length; i--; ) this.o.set(e[i], this.u = [
|
|
66780
66787
|
1,
|
|
@@ -66782,7 +66789,7 @@ var dl = function(n, e, i) {
|
|
|
66782
66789
|
this.u
|
|
66783
66790
|
]);
|
|
66784
66791
|
return n.children;
|
|
66785
|
-
},
|
|
66792
|
+
}, lr.prototype.componentDidUpdate = lr.prototype.componentDidMount = function() {
|
|
66786
66793
|
var n = this;
|
|
66787
66794
|
this.o.forEach(function(e, i) {
|
|
66788
66795
|
dl(n, i, e);
|
|
@@ -66836,9 +66843,9 @@ ee.vnode = function(n) {
|
|
|
66836
66843
|
var a = i[s];
|
|
66837
66844
|
lE && s === "children" && e === "noscript" || s === "value" && "defaultValue" in i && a == null || (s === "defaultValue" && "value" in i && i.value == null ? s = "value" : s === "download" && a === !0 ? a = "" : /ondoubleclick/i.test(s) ? s = "ondblclick" : /^onchange(textarea|input)/i.test(s + e) && !uE(i.type) ? s = "oninput" : /^onfocus$/i.test(s) ? s = "onfocusin" : /^onblur$/i.test(s) ? s = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp)/.test(s) ? s = s.toLowerCase() : r && cE.test(s) ? s = s.replace(/[A-Z0-9]/, "-$&").toLowerCase() : a === null && (a = void 0), t[s] = a);
|
|
66838
66845
|
}
|
|
66839
|
-
e == "select" && t.multiple && Array.isArray(t.value) && (t.value =
|
|
66846
|
+
e == "select" && t.multiple && Array.isArray(t.value) && (t.value = cs(i.children).forEach(function(A) {
|
|
66840
66847
|
A.props.selected = t.value.indexOf(A.props.value) != -1;
|
|
66841
|
-
})), e == "select" && t.defaultValue != null && (t.value =
|
|
66848
|
+
})), e == "select" && t.defaultValue != null && (t.value = cs(i.children).forEach(function(A) {
|
|
66842
66849
|
A.props.selected = t.multiple ? t.defaultValue.indexOf(A.props.value) != -1 : t.defaultValue == A.props.value;
|
|
66843
66850
|
})), n.props = t, i.class != i.className && (ll.enumerable = "className" in i, i.className != null && (t.class = i.className), Object.defineProperty(t, "className", ll));
|
|
66844
66851
|
}
|
|
@@ -66852,7 +66859,7 @@ const pE = {
|
|
|
66852
66859
|
light: "outline",
|
|
66853
66860
|
dark: "solid"
|
|
66854
66861
|
};
|
|
66855
|
-
class vE extends
|
|
66862
|
+
class vE extends hs {
|
|
66856
66863
|
renderIcon(e) {
|
|
66857
66864
|
const { icon: i } = e;
|
|
66858
66865
|
if (i) {
|
|
@@ -66866,7 +66873,7 @@ class vE extends gs {
|
|
|
66866
66873
|
src: i.src
|
|
66867
66874
|
});
|
|
66868
66875
|
}
|
|
66869
|
-
const t =
|
|
66876
|
+
const t = us.categories[e.id] || us.categories.custom, r = this.props.icons == "auto" ? pE[this.props.theme] : this.props.icons;
|
|
66870
66877
|
return t[r] || t;
|
|
66871
66878
|
}
|
|
66872
66879
|
render() {
|
|
@@ -66915,7 +66922,7 @@ class vE extends gs {
|
|
|
66915
66922
|
};
|
|
66916
66923
|
}
|
|
66917
66924
|
}
|
|
66918
|
-
class wE extends
|
|
66925
|
+
class wE extends hs {
|
|
66919
66926
|
shouldComponentUpdate(e) {
|
|
66920
66927
|
for (let i in e)
|
|
66921
66928
|
if (i != "children" && e[i] != this.props[i])
|
|
@@ -66926,7 +66933,7 @@ class wE extends gs {
|
|
|
66926
66933
|
return this.props.children;
|
|
66927
66934
|
}
|
|
66928
66935
|
}
|
|
66929
|
-
const
|
|
66936
|
+
const ur = {
|
|
66930
66937
|
rowsPerRender: 10
|
|
66931
66938
|
};
|
|
66932
66939
|
class bE extends vn {
|
|
@@ -67000,7 +67007,7 @@ class bE extends vn {
|
|
|
67000
67007
|
const t = (r, s) => {
|
|
67001
67008
|
const a = [];
|
|
67002
67009
|
a.__categoryId = s.id, a.__index = r.length, this.grid.push(a);
|
|
67003
|
-
const A = this.grid.length - 1, o = A %
|
|
67010
|
+
const A = this.grid.length - 1, o = A % ur.rowsPerRender ? {} : xn();
|
|
67004
67011
|
return o.index = A, o.posinset = this.grid.setsize + 1, r.push(o), a;
|
|
67005
67012
|
};
|
|
67006
67013
|
for (let r of e) {
|
|
@@ -67090,7 +67097,7 @@ class bE extends vn {
|
|
|
67090
67097
|
});
|
|
67091
67098
|
}, {
|
|
67092
67099
|
root: this.refs.scroll.current,
|
|
67093
|
-
rootMargin: `${this.props.emojiButtonSize * (
|
|
67100
|
+
rootMargin: `${this.props.emojiButtonSize * (ur.rowsPerRender + 5)}px 0px ${this.props.emojiButtonSize * ur.rowsPerRender}px`
|
|
67094
67101
|
});
|
|
67095
67102
|
for (const { rows: t } of this.refs.categories.values())
|
|
67096
67103
|
for (const r of t) r.current && i.observe(r.current);
|
|
@@ -67352,7 +67359,7 @@ class bE extends vn {
|
|
|
67352
67359
|
}),
|
|
67353
67360
|
/* @__PURE__ */ H("span", {
|
|
67354
67361
|
class: "icon loupe flex",
|
|
67355
|
-
children:
|
|
67362
|
+
children: us.search.loupe
|
|
67356
67363
|
}),
|
|
67357
67364
|
this.state.searchResults && /* @__PURE__ */ H("button", {
|
|
67358
67365
|
title: "Clear",
|
|
@@ -67361,7 +67368,7 @@ class bE extends vn {
|
|
|
67361
67368
|
class: "icon delete flex",
|
|
67362
67369
|
onClick: this.clearSearch,
|
|
67363
67370
|
onMouseDown: this.preventDefault,
|
|
67364
|
-
children:
|
|
67371
|
+
children: us.search.delete
|
|
67365
67372
|
})
|
|
67366
67373
|
]
|
|
67367
67374
|
}),
|
|
@@ -67428,7 +67435,7 @@ class bE extends vn {
|
|
|
67428
67435
|
height: a.length * this.props.emojiButtonSize
|
|
67429
67436
|
},
|
|
67430
67437
|
children: a.map((A, o) => {
|
|
67431
|
-
const d = A.index - A.index %
|
|
67438
|
+
const d = A.index - A.index % ur.rowsPerRender, f = this.state.visibleRows[d], c = "current" in A ? A : void 0;
|
|
67432
67439
|
if (!f && !c) return null;
|
|
67433
67440
|
const l = o * t, h = l + t, g = r.emojis.slice(l, h);
|
|
67434
67441
|
return g.length < t && g.push(...new Array(t - g.length)), /* @__PURE__ */ H("div", {
|
|
@@ -68498,7 +68505,7 @@ const EE = N.div`
|
|
|
68498
68505
|
display: flex;
|
|
68499
68506
|
flex-direction: column;
|
|
68500
68507
|
gap: 4px;
|
|
68501
|
-
`,
|
|
68508
|
+
`, hr = N.div`
|
|
68502
68509
|
padding: 8px 8px;
|
|
68503
68510
|
cursor: pointer;
|
|
68504
68511
|
&:hover {
|
|
@@ -68563,7 +68570,7 @@ const EE = N.div`
|
|
|
68563
68570
|
] })
|
|
68564
68571
|
]
|
|
68565
68572
|
}
|
|
68566
|
-
),
|
|
68573
|
+
), gr = {
|
|
68567
68574
|
SEND_COINS: "Send coins",
|
|
68568
68575
|
SEND_ITEM: "Send item",
|
|
68569
68576
|
REPLY: "Reply",
|
|
@@ -68571,7 +68578,7 @@ const EE = N.div`
|
|
|
68571
68578
|
EDIT: "Edit",
|
|
68572
68579
|
DELETE: "Delete",
|
|
68573
68580
|
REPORT: "Report"
|
|
68574
|
-
},
|
|
68581
|
+
}, mr = {
|
|
68575
68582
|
SEND_COINS: MA,
|
|
68576
68583
|
SEND_ITEM: DE,
|
|
68577
68584
|
REPLY: I4,
|
|
@@ -68681,29 +68688,29 @@ const EE = N.div`
|
|
|
68681
68688
|
),
|
|
68682
68689
|
/* @__PURE__ */ D(EE, { onClick: p, children: [
|
|
68683
68690
|
!n && /* @__PURE__ */ D(be, { children: [
|
|
68684
|
-
/* @__PURE__ */ D(
|
|
68685
|
-
|
|
68686
|
-
/* @__PURE__ */ u(
|
|
68691
|
+
/* @__PURE__ */ D(hr, { onClick: k, children: [
|
|
68692
|
+
gr.REPLY,
|
|
68693
|
+
/* @__PURE__ */ u(mr.REPLY, {}),
|
|
68687
68694
|
" "
|
|
68688
68695
|
] }),
|
|
68689
68696
|
/* @__PURE__ */ u(Ja, {})
|
|
68690
68697
|
] }),
|
|
68691
|
-
/* @__PURE__ */ D(
|
|
68692
|
-
|
|
68693
|
-
/* @__PURE__ */ u(
|
|
68698
|
+
/* @__PURE__ */ D(hr, { onClick: () => v(i.body), children: [
|
|
68699
|
+
gr.COPY,
|
|
68700
|
+
/* @__PURE__ */ u(mr.COPY, {})
|
|
68694
68701
|
] }),
|
|
68695
68702
|
/* @__PURE__ */ u(Ja, {}),
|
|
68696
68703
|
e && /* @__PURE__ */ D(be, { children: [
|
|
68697
|
-
/* @__PURE__ */ D(
|
|
68698
|
-
|
|
68699
|
-
/* @__PURE__ */ u(
|
|
68704
|
+
/* @__PURE__ */ D(hr, { onClick: A, children: [
|
|
68705
|
+
gr.EDIT,
|
|
68706
|
+
/* @__PURE__ */ u(mr.EDIT, {}),
|
|
68700
68707
|
" "
|
|
68701
68708
|
] }),
|
|
68702
68709
|
/* @__PURE__ */ u(Ja, {})
|
|
68703
68710
|
] }),
|
|
68704
|
-
(e || (d == null ? void 0 : d[f].role) === "moderator") && /* @__PURE__ */ D(
|
|
68705
|
-
|
|
68706
|
-
/* @__PURE__ */ u(
|
|
68711
|
+
(e || (d == null ? void 0 : d[f].role) === "moderator") && /* @__PURE__ */ D(hr, { onClick: b, children: [
|
|
68712
|
+
gr.DELETE,
|
|
68713
|
+
/* @__PURE__ */ u(mr.DELETE, {}),
|
|
68707
68714
|
" "
|
|
68708
68715
|
] })
|
|
68709
68716
|
] })
|
|
@@ -68925,7 +68932,7 @@ const EE = N.div`
|
|
|
68925
68932
|
),
|
|
68926
68933
|
/* @__PURE__ */ u(J1, { children: (d = (o = n.translations) == null ? void 0 : o[t]) == null ? void 0 : d.translatedText })
|
|
68927
68934
|
] });
|
|
68928
|
-
},
|
|
68935
|
+
}, pr = cm(({ message: n, isUser: e, isReply: i }, t) => {
|
|
68929
68936
|
var C, y, w, x, S, P, E, B, j, I;
|
|
68930
68937
|
const { client: r } = $e(), { user: s, config: a, langSource: A } = en(), o = ke(), [d, f] = a != null && a.disableInteractions ? [null, null] : X({
|
|
68931
68938
|
visible: !1,
|
|
@@ -68960,7 +68967,7 @@ const EE = N.div`
|
|
|
68960
68967
|
);
|
|
68961
68968
|
}, k = () => {
|
|
68962
68969
|
o(
|
|
68963
|
-
|
|
68970
|
+
qr({
|
|
68964
68971
|
isDeleteModal: !0,
|
|
68965
68972
|
roomJid: n.roomJid,
|
|
68966
68973
|
messageId: n.id
|
|
@@ -69846,9 +69853,9 @@ const EE = N.div`
|
|
|
69846
69853
|
}, [S, P]), G = (M) => {
|
|
69847
69854
|
P !== M.jid && (b(Fe({ chatJID: M.jid, loading: !0 })), b(ze({ roomJID: M.jid })), b(ti({ isEdit: !1 })), C(!0));
|
|
69848
69855
|
}, J = () => {
|
|
69849
|
-
y.deleteMessageStanza(A.roomJid, A.messageId), b(
|
|
69856
|
+
y.deleteMessageStanza(A.roomJid, A.messageId), b(qr({ isDeleteModal: !1 }));
|
|
69850
69857
|
}, ne = () => {
|
|
69851
|
-
b(
|
|
69858
|
+
b(qr({ isDeleteModal: !1 }));
|
|
69852
69859
|
};
|
|
69853
69860
|
de(() => () => {
|
|
69854
69861
|
y && s.xmppPassword === "" && (console.log("closing client"), y.close(), x(null));
|
|
@@ -69860,7 +69867,7 @@ const EE = N.div`
|
|
|
69860
69867
|
};
|
|
69861
69868
|
de(() => {
|
|
69862
69869
|
(async () => {
|
|
69863
|
-
var Z, W, U, K,
|
|
69870
|
+
var Z, W, U, K, _, re;
|
|
69864
69871
|
(Z = t == null ? void 0 : t.translates) != null && Z.enabled && !((W = t == null ? void 0 : t.translates) != null && W.translations) && b(Pu((U = t == null ? void 0 : t.translates) == null ? void 0 : U.translations)), b(U2(t));
|
|
69865
69872
|
try {
|
|
69866
69873
|
if (!s.xmppUsername)
|
|
@@ -69868,7 +69875,7 @@ const EE = N.div`
|
|
|
69868
69875
|
else if (sB({ roomJID: r, wasAutoSelected: m, config: t, dispatch: b }), y)
|
|
69869
69876
|
t != null && t.newArch && await V(y, !0), f(!0), await y.getChatsPrivateStoreRequestStanza().then(
|
|
69870
69877
|
async (ce) => {
|
|
69871
|
-
|
|
69878
|
+
Kr(ce, b), await Zr(S, y), x(y);
|
|
69872
69879
|
}
|
|
69873
69880
|
), (re = t == null ? void 0 : t.refreshTokens) != null && re.enabled && bA();
|
|
69874
69881
|
else {
|
|
@@ -69881,9 +69888,9 @@ const EE = N.div`
|
|
|
69881
69888
|
).then((z) => z);
|
|
69882
69889
|
B && Object.keys(B).length > 0 ? (f(!0), await v1(ce, B)) : t != null && t.newArch ? (await V(ce), f(!0)) : await ce.getRoomsStanza(), await ce.getChatsPrivateStoreRequestStanza().then(
|
|
69883
69890
|
async (z) => {
|
|
69884
|
-
|
|
69891
|
+
Kr(z, b), await Zr(S, ce), x(ce);
|
|
69885
69892
|
}
|
|
69886
|
-
), (
|
|
69893
|
+
), (_ = t == null ? void 0 : t.refreshTokens) != null && _.enabled && bA();
|
|
69887
69894
|
}
|
|
69888
69895
|
b(Fe({ loading: !1 }));
|
|
69889
69896
|
} catch (ce) {
|
|
@@ -69941,12 +69948,12 @@ const EE = N.div`
|
|
|
69941
69948
|
{
|
|
69942
69949
|
activeMessage: Y,
|
|
69943
69950
|
user: s,
|
|
69944
|
-
customMessageComponent: e ||
|
|
69951
|
+
customMessageComponent: e || pr
|
|
69945
69952
|
}
|
|
69946
69953
|
) : /* @__PURE__ */ u(
|
|
69947
69954
|
Hc,
|
|
69948
69955
|
{
|
|
69949
|
-
CustomMessageComponent: e ||
|
|
69956
|
+
CustomMessageComponent: e || pr,
|
|
69950
69957
|
handleBackClick: C
|
|
69951
69958
|
}
|
|
69952
69959
|
) : null : Y != null && Y.activeMessage ? /* @__PURE__ */ u(
|
|
@@ -69954,12 +69961,12 @@ const EE = N.div`
|
|
|
69954
69961
|
{
|
|
69955
69962
|
activeMessage: Y,
|
|
69956
69963
|
user: s,
|
|
69957
|
-
customMessageComponent: e ||
|
|
69964
|
+
customMessageComponent: e || pr
|
|
69958
69965
|
}
|
|
69959
69966
|
) : /* @__PURE__ */ u(
|
|
69960
69967
|
Hc,
|
|
69961
69968
|
{
|
|
69962
|
-
CustomMessageComponent: e ||
|
|
69969
|
+
CustomMessageComponent: e || pr
|
|
69963
69970
|
}
|
|
69964
69971
|
),
|
|
69965
69972
|
/* @__PURE__ */ u(
|
|
@@ -70058,12 +70065,12 @@ const EE = N.div`
|
|
|
70058
70065
|
}
|
|
70059
70066
|
) : t && t.xmppPassword !== "" ? /* @__PURE__ */ u(aB, { ...n }) : /* @__PURE__ */ u(am, { ...n }) });
|
|
70060
70067
|
};
|
|
70061
|
-
function
|
|
70062
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
70068
|
+
function Qr(n) {
|
|
70069
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Qr = function(i) {
|
|
70063
70070
|
return typeof i;
|
|
70064
|
-
} :
|
|
70071
|
+
} : Qr = function(i) {
|
|
70065
70072
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
|
70066
|
-
},
|
|
70073
|
+
}, Qr(n);
|
|
70067
70074
|
}
|
|
70068
70075
|
function oB(n, e) {
|
|
70069
70076
|
if (!(n instanceof e))
|
|
@@ -70079,14 +70086,14 @@ function dB(n, e, i) {
|
|
|
70079
70086
|
return e && fB(n.prototype, e), n;
|
|
70080
70087
|
}
|
|
70081
70088
|
function cB(n, e) {
|
|
70082
|
-
return e && (
|
|
70089
|
+
return e && (Qr(e) === "object" || typeof e == "function") ? e : Fr(n);
|
|
70083
70090
|
}
|
|
70084
70091
|
function _A(n) {
|
|
70085
70092
|
return _A = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
|
|
70086
70093
|
return i.__proto__ || Object.getPrototypeOf(i);
|
|
70087
70094
|
}, _A(n);
|
|
70088
70095
|
}
|
|
70089
|
-
function
|
|
70096
|
+
function Fr(n) {
|
|
70090
70097
|
if (n === void 0)
|
|
70091
70098
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
70092
70099
|
return n;
|
|
@@ -70101,7 +70108,7 @@ function $A(n, e) {
|
|
|
70101
70108
|
return t.__proto__ = r, t;
|
|
70102
70109
|
}, $A(n, e);
|
|
70103
70110
|
}
|
|
70104
|
-
function
|
|
70111
|
+
function Lr(n, e, i) {
|
|
70105
70112
|
return e in n ? Object.defineProperty(n, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = i, n;
|
|
70106
70113
|
}
|
|
70107
70114
|
var Am = /* @__PURE__ */ function(n) {
|
|
@@ -70111,9 +70118,9 @@ var Am = /* @__PURE__ */ function(n) {
|
|
|
70111
70118
|
oB(this, e);
|
|
70112
70119
|
for (var r = arguments.length, s = new Array(r), a = 0; a < r; a++)
|
|
70113
70120
|
s[a] = arguments[a];
|
|
70114
|
-
return t = cB(this, (i = _A(e)).call.apply(i, [this].concat(s))),
|
|
70121
|
+
return t = cB(this, (i = _A(e)).call.apply(i, [this].concat(s))), Lr(Fr(t), "state", {
|
|
70115
70122
|
bootstrapped: !1
|
|
70116
|
-
}),
|
|
70123
|
+
}), Lr(Fr(t), "_unsubscribe", void 0), Lr(Fr(t), "handlePersistorState", function() {
|
|
70117
70124
|
var A = t.props.persistor, o = A.getState(), d = o.bootstrapped;
|
|
70118
70125
|
d && (t.props.onBeforeLift ? Promise.resolve(t.props.onBeforeLift()).finally(function() {
|
|
70119
70126
|
return t.setState({
|
|
@@ -70141,25 +70148,25 @@ var Am = /* @__PURE__ */ function(n) {
|
|
|
70141
70148
|
}
|
|
70142
70149
|
}]), e;
|
|
70143
70150
|
}(lm);
|
|
70144
|
-
|
|
70151
|
+
Lr(Am, "defaultProps", {
|
|
70145
70152
|
children: null,
|
|
70146
70153
|
loading: null
|
|
70147
70154
|
});
|
|
70148
70155
|
const TB = Ye.memo(
|
|
70149
70156
|
({ ...n }) => {
|
|
70150
70157
|
const e = Ce(() => n.config, [n.config]);
|
|
70151
|
-
return /* @__PURE__ */ u(C3, { store:
|
|
70158
|
+
return /* @__PURE__ */ u(C3, { store: $, children: /* @__PURE__ */ u(Am, { loading: /* @__PURE__ */ u(Rn, {}), persistor: rb, children: /* @__PURE__ */ u(y5, { children: /* @__PURE__ */ u(AB, { config: e, ...n }) }) }) });
|
|
70152
70159
|
}
|
|
70153
70160
|
), jB = () => {
|
|
70154
70161
|
const e = um(
|
|
70155
|
-
(r) =>
|
|
70162
|
+
(r) => $.subscribe(() => {
|
|
70156
70163
|
var o;
|
|
70157
|
-
const A = (o =
|
|
70164
|
+
const A = (o = $.getState().rooms) == null ? void 0 : o.rooms;
|
|
70158
70165
|
A && Object.entries(A).forEach(([d, f]) => {
|
|
70159
70166
|
f.unreadMessages !== void 0 && r();
|
|
70160
70167
|
});
|
|
70161
70168
|
}),
|
|
70162
|
-
() =>
|
|
70169
|
+
() => $.getState().rooms.rooms
|
|
70163
70170
|
), i = {};
|
|
70164
70171
|
let t = 0;
|
|
70165
70172
|
return Object.entries(e).forEach(([r, s]) => {
|
|
@@ -70172,7 +70179,7 @@ const TB = Ye.memo(
|
|
|
70172
70179
|
};
|
|
70173
70180
|
}, QB = {
|
|
70174
70181
|
performLogout: () => {
|
|
70175
|
-
|
|
70182
|
+
$.dispatch(Ds()), $.dispatch(vo());
|
|
70176
70183
|
}
|
|
70177
70184
|
};
|
|
70178
70185
|
export {
|