@ethora/chat-component 25.5.15 → 25.5.16
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 +335 -338
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var gm = Object.defineProperty;
|
|
2
2
|
var mm = (n, e, i) => e in n ? gm(n, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[e] = i;
|
|
3
3
|
var ke = (n, e, i) => mm(n, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
-
import { jsx as u, jsxs as I, Fragment as
|
|
4
|
+
import { jsx as u, jsxs as I, Fragment as we } from "react/jsx-runtime";
|
|
5
5
|
import * as ra from "react";
|
|
6
6
|
import Qe, { createContext as Dl, useState as J, useEffect as fe, useContext as AA, useRef as ge, useDebugValue as mf, createElement as pm, Fragment as pf, useMemo as Ce, useCallback as ie, forwardRef as vm, PureComponent as wm, useSyncExternalStore as bm } from "react";
|
|
7
7
|
var ze = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof window < "u" ? window : typeof self < "u" ? self : {};
|
|
@@ -82,21 +82,21 @@ function Dm(n) {
|
|
|
82
82
|
var Nl = Number.isNaN || function(e) {
|
|
83
83
|
return e !== e;
|
|
84
84
|
};
|
|
85
|
-
function
|
|
86
|
-
|
|
85
|
+
function pe() {
|
|
86
|
+
pe.init.call(this);
|
|
87
87
|
}
|
|
88
|
-
cA.exports =
|
|
88
|
+
cA.exports = pe;
|
|
89
89
|
cA.exports.once = Pm;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
pe.EventEmitter = pe;
|
|
91
|
+
pe.prototype._events = void 0;
|
|
92
|
+
pe.prototype._eventsCount = 0;
|
|
93
|
+
pe.prototype._maxListeners = void 0;
|
|
94
94
|
var wf = 10;
|
|
95
95
|
function ws(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
|
}
|
|
99
|
-
Object.defineProperty(
|
|
99
|
+
Object.defineProperty(pe, "defaultMaxListeners", {
|
|
100
100
|
enumerable: !0,
|
|
101
101
|
get: function() {
|
|
102
102
|
return wf;
|
|
@@ -107,21 +107,21 @@ Object.defineProperty(ve, "defaultMaxListeners", {
|
|
|
107
107
|
wf = n;
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
|
-
|
|
110
|
+
pe.init = function() {
|
|
111
111
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
pe.prototype.setMaxListeners = function(e) {
|
|
114
114
|
if (typeof e != "number" || e < 0 || Nl(e))
|
|
115
115
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
116
116
|
return this._maxListeners = e, this;
|
|
117
117
|
};
|
|
118
118
|
function Sl(n) {
|
|
119
|
-
return n._maxListeners === void 0 ?
|
|
119
|
+
return n._maxListeners === void 0 ? pe.defaultMaxListeners : n._maxListeners;
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
pe.prototype.getMaxListeners = function() {
|
|
122
122
|
return Sl(this);
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
pe.prototype.emit = function(e) {
|
|
125
125
|
for (var i = [], t = 1; t < arguments.length; t++) i.push(arguments[t]);
|
|
126
126
|
var r = e === "error", s = this._events;
|
|
127
127
|
if (s !== void 0)
|
|
@@ -160,11 +160,11 @@ function Pl(n, e, i, t) {
|
|
|
160
160
|
}
|
|
161
161
|
return n;
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
pe.prototype.addListener = function(e, i) {
|
|
164
164
|
return Pl(this, e, i, !1);
|
|
165
165
|
};
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
pe.prototype.on = pe.prototype.addListener;
|
|
167
|
+
pe.prototype.prependListener = function(e, i) {
|
|
168
168
|
return Pl(this, e, i, !0);
|
|
169
169
|
};
|
|
170
170
|
function Im() {
|
|
@@ -175,13 +175,13 @@ function Ol(n, e, i) {
|
|
|
175
175
|
var t = { fired: !1, wrapFn: void 0, target: n, type: e, listener: i }, r = Im.bind(t);
|
|
176
176
|
return r.listener = i, t.wrapFn = r, r;
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
pe.prototype.once = function(e, i) {
|
|
179
179
|
return ws(i), this.on(e, Ol(this, e, i)), this;
|
|
180
180
|
};
|
|
181
|
-
|
|
181
|
+
pe.prototype.prependOnceListener = function(e, i) {
|
|
182
182
|
return ws(i), this.prependListener(e, Ol(this, e, i)), this;
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
pe.prototype.removeListener = function(e, i) {
|
|
185
185
|
var t, r, s, a, o;
|
|
186
186
|
if (ws(i), r = this._events, r === void 0)
|
|
187
187
|
return this;
|
|
@@ -201,8 +201,8 @@ ve.prototype.removeListener = function(e, i) {
|
|
|
201
201
|
}
|
|
202
202
|
return this;
|
|
203
203
|
};
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
pe.prototype.off = pe.prototype.removeListener;
|
|
205
|
+
pe.prototype.removeAllListeners = function(e) {
|
|
206
206
|
var i, t, r;
|
|
207
207
|
if (t = this._events, t === void 0)
|
|
208
208
|
return this;
|
|
@@ -228,16 +228,16 @@ function Ml(n, e, i) {
|
|
|
228
228
|
var r = t[e];
|
|
229
229
|
return r === void 0 ? [] : typeof r == "function" ? i ? [r.listener || r] : [r] : i ? Sm(r) : jl(r, r.length);
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
pe.prototype.listeners = function(e) {
|
|
232
232
|
return Ml(this, e, !0);
|
|
233
233
|
};
|
|
234
|
-
|
|
234
|
+
pe.prototype.rawListeners = function(e) {
|
|
235
235
|
return Ml(this, e, !1);
|
|
236
236
|
};
|
|
237
|
-
|
|
237
|
+
pe.listenerCount = function(n, e) {
|
|
238
238
|
return typeof n.listenerCount == "function" ? n.listenerCount(e) : Tl.call(n, e);
|
|
239
239
|
};
|
|
240
|
-
|
|
240
|
+
pe.prototype.listenerCount = Tl;
|
|
241
241
|
function Tl(n) {
|
|
242
242
|
var e = this._events;
|
|
243
243
|
if (e !== void 0) {
|
|
@@ -249,7 +249,7 @@ function Tl(n) {
|
|
|
249
249
|
}
|
|
250
250
|
return 0;
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
pe.prototype.eventNames = function() {
|
|
253
253
|
return this._eventsCount > 0 ? br(this._events) : [];
|
|
254
254
|
};
|
|
255
255
|
function jl(n, e) {
|
|
@@ -2347,14 +2347,14 @@ var ou = { exports: {} };
|
|
|
2347
2347
|
P.from && !t.JS_SHA256_NO_BUFFER_FROM ? B = P.from : B = function(D) {
|
|
2348
2348
|
return new P(D);
|
|
2349
2349
|
};
|
|
2350
|
-
var
|
|
2350
|
+
var T = function(D) {
|
|
2351
2351
|
if (typeof D == "string")
|
|
2352
2352
|
return S.createHash(E).update(D, "utf8").digest("hex");
|
|
2353
2353
|
if (D == null)
|
|
2354
2354
|
throw new Error(e);
|
|
2355
2355
|
return D.constructor === ArrayBuffer && (D = new Uint8Array(D)), Array.isArray(D) || ArrayBuffer.isView(D) || D.constructor === P ? S.createHash(E).update(B(D)).digest("hex") : b(D);
|
|
2356
2356
|
};
|
|
2357
|
-
return
|
|
2357
|
+
return T;
|
|
2358
2358
|
}, w = function(b, x) {
|
|
2359
2359
|
return function(S, P) {
|
|
2360
2360
|
return new k(S, x, !0).update(P)[b]();
|
|
@@ -2390,12 +2390,12 @@ var ou = { exports: {} };
|
|
|
2390
2390
|
throw new Error(e);
|
|
2391
2391
|
x = !0;
|
|
2392
2392
|
}
|
|
2393
|
-
for (var P, E = 0, B,
|
|
2393
|
+
for (var P, E = 0, B, T = b.length, D = this.blocks; E < T; ) {
|
|
2394
2394
|
if (this.hashed && (this.hashed = !1, D[0] = this.block, this.block = D[16] = D[1] = D[2] = D[3] = D[4] = D[5] = D[6] = D[7] = D[8] = D[9] = D[10] = D[11] = D[12] = D[13] = D[14] = D[15] = 0), x)
|
|
2395
|
-
for (B = this.start; E <
|
|
2395
|
+
for (B = this.start; E < T && B < 64; ++E)
|
|
2396
2396
|
D[B >>> 2] |= b[E] << d[B++ & 3];
|
|
2397
2397
|
else
|
|
2398
|
-
for (B = this.start; E <
|
|
2398
|
+
for (B = this.start; E < T && B < 64; ++E)
|
|
2399
2399
|
P = b.charCodeAt(E), P < 128 ? D[B >>> 2] |= P << d[B++ & 3] : P < 2048 ? (D[B >>> 2] |= (192 | P >>> 6) << d[B++ & 3], D[B >>> 2] |= (128 | P & 63) << d[B++ & 3]) : P < 55296 || P >= 57344 ? (D[B >>> 2] |= (224 | P >>> 12) << d[B++ & 3], D[B >>> 2] |= (128 | P >>> 6 & 63) << d[B++ & 3], D[B >>> 2] |= (128 | P & 63) << d[B++ & 3]) : (P = 65536 + ((P & 1023) << 10 | b.charCodeAt(++E) & 1023), D[B >>> 2] |= (240 | P >>> 18) << d[B++ & 3], D[B >>> 2] |= (128 | P >>> 12 & 63) << d[B++ & 3], D[B >>> 2] |= (128 | P >>> 6 & 63) << d[B++ & 3], D[B >>> 2] |= (128 | P & 63) << d[B++ & 3]);
|
|
2400
2400
|
this.lastByteIndex = B, this.bytes += B - this.start, B >= 64 ? (this.block = D[16], this.start = B - 64, this.hash(), this.hashed = !0) : this.start = B;
|
|
2401
2401
|
}
|
|
@@ -2408,19 +2408,19 @@ var ou = { exports: {} };
|
|
|
2408
2408
|
b[16] = this.block, b[x >>> 2] |= f[x & 3], this.block = b[16], x >= 56 && (this.hashed || this.hash(), b[0] = this.block, b[16] = b[1] = b[2] = b[3] = b[4] = b[5] = b[6] = b[7] = b[8] = b[9] = b[10] = b[11] = b[12] = b[13] = b[14] = b[15] = 0), b[14] = this.hBytes << 3 | this.bytes >>> 29, b[15] = this.bytes << 3, this.hash();
|
|
2409
2409
|
}
|
|
2410
2410
|
}, p.prototype.hash = function() {
|
|
2411
|
-
var b = this.h0, x = this.h1, S = this.h2, P = this.h3, E = this.h4, B = this.h5,
|
|
2411
|
+
var b = this.h0, x = this.h1, S = this.h2, P = this.h3, E = this.h4, B = this.h5, T = this.h6, D = this.h7, L = this.blocks, W, H, V, ee, U, j, O, M, Q, R, ne;
|
|
2412
2412
|
for (W = 16; W < 64; ++W)
|
|
2413
|
-
|
|
2413
|
+
U = L[W - 15], H = (U >>> 7 | U << 25) ^ (U >>> 18 | U << 14) ^ U >>> 3, U = L[W - 2], V = (U >>> 17 | U << 15) ^ (U >>> 19 | U << 13) ^ U >>> 10, L[W] = L[W - 16] + H + L[W - 7] + V << 0;
|
|
2414
2414
|
for (ne = x & S, W = 0; W < 64; W += 4)
|
|
2415
|
-
this.first ? (this.is224 ? (
|
|
2416
|
-
this.h0 = this.h0 + b << 0, this.h1 = this.h1 + x << 0, this.h2 = this.h2 + S << 0, this.h3 = this.h3 + P << 0, this.h4 = this.h4 + E << 0, this.h5 = this.h5 + B << 0, this.h6 = this.h6 +
|
|
2415
|
+
this.first ? (this.is224 ? (M = 300032, U = L[0] - 1413257819, D = U - 150054599 << 0, P = U + 24177077 << 0) : (M = 704751109, U = L[0] - 210244248, D = U - 1521486534 << 0, P = U + 143694565 << 0), this.first = !1) : (H = (b >>> 2 | b << 30) ^ (b >>> 13 | b << 19) ^ (b >>> 22 | b << 10), V = (E >>> 6 | E << 26) ^ (E >>> 11 | E << 21) ^ (E >>> 25 | E << 7), M = b & x, ee = M ^ b & S ^ ne, O = E & B ^ ~E & T, U = D + V + O + c[W] + L[W], j = H + ee, D = P + U << 0, P = U + j << 0), H = (P >>> 2 | P << 30) ^ (P >>> 13 | P << 19) ^ (P >>> 22 | P << 10), V = (D >>> 6 | D << 26) ^ (D >>> 11 | D << 21) ^ (D >>> 25 | D << 7), Q = P & b, ee = Q ^ P & x ^ M, O = D & E ^ ~D & B, U = T + V + O + c[W + 1] + L[W + 1], j = H + ee, T = S + U << 0, S = U + j << 0, H = (S >>> 2 | S << 30) ^ (S >>> 13 | S << 19) ^ (S >>> 22 | S << 10), V = (T >>> 6 | T << 26) ^ (T >>> 11 | T << 21) ^ (T >>> 25 | T << 7), R = S & P, ee = R ^ S & b ^ Q, O = T & D ^ ~T & E, U = B + V + O + c[W + 2] + L[W + 2], j = H + ee, B = x + U << 0, x = U + j << 0, H = (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10), V = (B >>> 6 | B << 26) ^ (B >>> 11 | B << 21) ^ (B >>> 25 | B << 7), ne = x & S, ee = ne ^ x & P ^ R, O = B & T ^ ~B & D, U = E + V + O + c[W + 3] + L[W + 3], j = H + ee, E = b + U << 0, b = U + j << 0, this.chromeBugWorkAround = !0;
|
|
2416
|
+
this.h0 = this.h0 + b << 0, this.h1 = this.h1 + x << 0, this.h2 = this.h2 + S << 0, this.h3 = this.h3 + P << 0, this.h4 = this.h4 + E << 0, this.h5 = this.h5 + B << 0, this.h6 = this.h6 + T << 0, this.h7 = this.h7 + D << 0;
|
|
2417
2417
|
}, p.prototype.hex = function() {
|
|
2418
2418
|
this.finalize();
|
|
2419
|
-
var b = this.h0, x = this.h1, S = this.h2, P = this.h3, E = this.h4, B = this.h5,
|
|
2419
|
+
var b = this.h0, x = this.h1, S = this.h2, P = this.h3, E = this.h4, B = this.h5, T = this.h6, D = this.h7, L = A[b >>> 28 & 15] + A[b >>> 24 & 15] + A[b >>> 20 & 15] + A[b >>> 16 & 15] + A[b >>> 12 & 15] + A[b >>> 8 & 15] + A[b >>> 4 & 15] + A[b & 15] + A[x >>> 28 & 15] + A[x >>> 24 & 15] + A[x >>> 20 & 15] + A[x >>> 16 & 15] + A[x >>> 12 & 15] + A[x >>> 8 & 15] + A[x >>> 4 & 15] + A[x & 15] + A[S >>> 28 & 15] + A[S >>> 24 & 15] + A[S >>> 20 & 15] + A[S >>> 16 & 15] + A[S >>> 12 & 15] + A[S >>> 8 & 15] + A[S >>> 4 & 15] + A[S & 15] + A[P >>> 28 & 15] + A[P >>> 24 & 15] + A[P >>> 20 & 15] + A[P >>> 16 & 15] + A[P >>> 12 & 15] + A[P >>> 8 & 15] + A[P >>> 4 & 15] + A[P & 15] + A[E >>> 28 & 15] + A[E >>> 24 & 15] + A[E >>> 20 & 15] + A[E >>> 16 & 15] + A[E >>> 12 & 15] + A[E >>> 8 & 15] + A[E >>> 4 & 15] + A[E & 15] + A[B >>> 28 & 15] + A[B >>> 24 & 15] + A[B >>> 20 & 15] + A[B >>> 16 & 15] + A[B >>> 12 & 15] + A[B >>> 8 & 15] + A[B >>> 4 & 15] + A[B & 15] + A[T >>> 28 & 15] + A[T >>> 24 & 15] + A[T >>> 20 & 15] + A[T >>> 16 & 15] + A[T >>> 12 & 15] + A[T >>> 8 & 15] + A[T >>> 4 & 15] + A[T & 15];
|
|
2420
2420
|
return this.is224 || (L += A[D >>> 28 & 15] + A[D >>> 24 & 15] + A[D >>> 20 & 15] + A[D >>> 16 & 15] + A[D >>> 12 & 15] + A[D >>> 8 & 15] + A[D >>> 4 & 15] + A[D & 15]), L;
|
|
2421
2421
|
}, p.prototype.toString = p.prototype.hex, p.prototype.digest = function() {
|
|
2422
2422
|
this.finalize();
|
|
2423
|
-
var b = this.h0, x = this.h1, S = this.h2, P = this.h3, E = this.h4, B = this.h5,
|
|
2423
|
+
var b = this.h0, x = this.h1, S = this.h2, P = this.h3, E = this.h4, B = this.h5, T = this.h6, D = this.h7, L = [
|
|
2424
2424
|
b >>> 24 & 255,
|
|
2425
2425
|
b >>> 16 & 255,
|
|
2426
2426
|
b >>> 8 & 255,
|
|
@@ -2445,10 +2445,10 @@ var ou = { exports: {} };
|
|
|
2445
2445
|
B >>> 16 & 255,
|
|
2446
2446
|
B >>> 8 & 255,
|
|
2447
2447
|
B & 255,
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2448
|
+
T >>> 24 & 255,
|
|
2449
|
+
T >>> 16 & 255,
|
|
2450
|
+
T >>> 8 & 255,
|
|
2451
|
+
T & 255
|
|
2452
2452
|
];
|
|
2453
2453
|
return this.is224 || L.push(D >>> 24 & 255, D >>> 16 & 255, D >>> 8 & 255, D & 255), L;
|
|
2454
2454
|
}, p.prototype.array = p.prototype.digest, p.prototype.arrayBuffer = function() {
|
|
@@ -2459,8 +2459,8 @@ var ou = { exports: {} };
|
|
|
2459
2459
|
function k(b, x, S) {
|
|
2460
2460
|
var P, E = typeof b;
|
|
2461
2461
|
if (E === "string") {
|
|
2462
|
-
var B = [],
|
|
2463
|
-
for (P = 0; P <
|
|
2462
|
+
var B = [], T = b.length, D = 0, L;
|
|
2463
|
+
for (P = 0; P < T; ++P)
|
|
2464
2464
|
L = b.charCodeAt(P), L < 128 ? B[D++] = L : L < 2048 ? (B[D++] = 192 | L >>> 6, B[D++] = 128 | L & 63) : L < 55296 || L >= 57344 ? (B[D++] = 224 | L >>> 12, B[D++] = 128 | L >>> 6 & 63, B[D++] = 128 | L & 63) : (L = 65536 + ((L & 1023) << 10 | b.charCodeAt(++P) & 1023), B[D++] = 240 | L >>> 18, B[D++] = 128 | L >>> 12 & 63, B[D++] = 128 | L >>> 6 & 63, B[D++] = 128 | L & 63);
|
|
2465
2465
|
b = B;
|
|
2466
2466
|
} else if (E === "object") {
|
|
@@ -2475,8 +2475,8 @@ var ou = { exports: {} };
|
|
|
2475
2475
|
b.length > 64 && (b = new p(x, !0).update(b).array());
|
|
2476
2476
|
var W = [], H = [];
|
|
2477
2477
|
for (P = 0; P < 64; ++P) {
|
|
2478
|
-
var
|
|
2479
|
-
W[P] = 92 ^
|
|
2478
|
+
var V = b[P] || 0;
|
|
2479
|
+
W[P] = 92 ^ V, H[P] = 54 ^ V;
|
|
2480
2480
|
}
|
|
2481
2481
|
p.call(this, x, S), this.update(H), this.oKeyPad = W, this.inner = !0, this.sharedMemory = S;
|
|
2482
2482
|
}
|
|
@@ -5693,8 +5693,8 @@ function Ai() {
|
|
|
5693
5693
|
C ? P = t.ceil(P) : P = t.max((P | 0) - this._minBufferSize, 0);
|
|
5694
5694
|
var E = P * x, B = t.min(E * 4, b);
|
|
5695
5695
|
if (E) {
|
|
5696
|
-
for (var
|
|
5697
|
-
this._doProcessBlock(y,
|
|
5696
|
+
for (var T = 0; T < E; T += x)
|
|
5697
|
+
this._doProcessBlock(y, T);
|
|
5698
5698
|
p = y.splice(0, E), k.sigBytes -= B;
|
|
5699
5699
|
}
|
|
5700
5700
|
return new c.init(p, B);
|
|
@@ -5921,8 +5921,8 @@ function Kw() {
|
|
|
5921
5921
|
var C = m + w, p = v[C];
|
|
5922
5922
|
v[C] = (p << 8 | p >>> 24) & 16711935 | (p << 24 | p >>> 8) & 4278255360;
|
|
5923
5923
|
}
|
|
5924
|
-
var k = this._hash.words, y = v[m + 0], b = v[m + 1], x = v[m + 2], S = v[m + 3], P = v[m + 4], E = v[m + 5], B = v[m + 6],
|
|
5925
|
-
O = c(O,
|
|
5924
|
+
var k = this._hash.words, y = v[m + 0], b = v[m + 1], x = v[m + 2], S = v[m + 3], P = v[m + 4], E = v[m + 5], B = v[m + 6], T = v[m + 7], D = v[m + 8], L = v[m + 9], W = v[m + 10], H = v[m + 11], V = v[m + 12], ee = v[m + 13], U = v[m + 14], j = v[m + 15], O = k[0], M = k[1], Q = k[2], R = k[3];
|
|
5925
|
+
O = c(O, M, Q, R, y, 7, f[0]), R = c(R, O, M, Q, b, 12, f[1]), Q = c(Q, R, O, M, x, 17, f[2]), M = c(M, Q, R, O, S, 22, f[3]), O = c(O, M, Q, R, P, 7, f[4]), R = c(R, O, M, Q, E, 12, f[5]), Q = c(Q, R, O, M, B, 17, f[6]), M = c(M, Q, R, O, T, 22, f[7]), O = c(O, M, Q, R, D, 7, f[8]), R = c(R, O, M, Q, L, 12, f[9]), Q = c(Q, R, O, M, W, 17, f[10]), M = c(M, Q, R, O, H, 22, f[11]), O = c(O, M, Q, R, V, 7, f[12]), R = c(R, O, M, Q, ee, 12, f[13]), Q = c(Q, R, O, M, U, 17, f[14]), M = c(M, Q, R, O, j, 22, f[15]), O = l(O, M, Q, R, b, 5, f[16]), R = l(R, O, M, Q, B, 9, f[17]), Q = l(Q, R, O, M, H, 14, f[18]), M = l(M, Q, R, O, y, 20, f[19]), O = l(O, M, Q, R, E, 5, f[20]), R = l(R, O, M, Q, W, 9, f[21]), Q = l(Q, R, O, M, j, 14, f[22]), M = l(M, Q, R, O, P, 20, f[23]), O = l(O, M, Q, R, L, 5, f[24]), R = l(R, O, M, Q, U, 9, f[25]), Q = l(Q, R, O, M, S, 14, f[26]), M = l(M, Q, R, O, D, 20, f[27]), O = l(O, M, Q, R, ee, 5, f[28]), R = l(R, O, M, Q, x, 9, f[29]), Q = l(Q, R, O, M, T, 14, f[30]), M = l(M, Q, R, O, V, 20, f[31]), O = h(O, M, Q, R, E, 4, f[32]), R = h(R, O, M, Q, D, 11, f[33]), Q = h(Q, R, O, M, H, 16, f[34]), M = h(M, Q, R, O, U, 23, f[35]), O = h(O, M, Q, R, b, 4, f[36]), R = h(R, O, M, Q, P, 11, f[37]), Q = h(Q, R, O, M, T, 16, f[38]), M = h(M, Q, R, O, W, 23, f[39]), O = h(O, M, Q, R, ee, 4, f[40]), R = h(R, O, M, Q, y, 11, f[41]), Q = h(Q, R, O, M, S, 16, f[42]), M = h(M, Q, R, O, B, 23, f[43]), O = h(O, M, Q, R, L, 4, f[44]), R = h(R, O, M, Q, V, 11, f[45]), Q = h(Q, R, O, M, j, 16, f[46]), M = h(M, Q, R, O, x, 23, f[47]), O = g(O, M, Q, R, y, 6, f[48]), R = g(R, O, M, Q, T, 10, f[49]), Q = g(Q, R, O, M, U, 15, f[50]), M = g(M, Q, R, O, E, 21, f[51]), O = g(O, M, Q, R, V, 6, f[52]), R = g(R, O, M, Q, S, 10, f[53]), Q = g(Q, R, O, M, W, 15, f[54]), M = g(M, Q, R, O, b, 21, f[55]), O = g(O, M, Q, R, D, 6, f[56]), R = g(R, O, M, Q, j, 10, f[57]), Q = g(Q, R, O, M, B, 15, f[58]), M = g(M, Q, R, O, ee, 21, f[59]), O = g(O, M, Q, R, P, 6, f[60]), R = g(R, O, M, Q, H, 10, f[61]), Q = g(Q, R, O, M, x, 15, f[62]), M = g(M, Q, R, O, L, 21, f[63]), k[0] = k[0] + O | 0, k[1] = k[1] + M | 0, k[2] = k[2] + Q | 0, k[3] = k[3] + R | 0;
|
|
5926
5926
|
},
|
|
5927
5927
|
_doFinalize: function() {
|
|
5928
5928
|
var v = this._data, m = v.words, w = this._nDataBytes * 8, C = v.sigBytes * 8;
|
|
@@ -6207,8 +6207,8 @@ function $w() {
|
|
|
6207
6207
|
*
|
|
6208
6208
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
6209
6209
|
*/
|
|
6210
|
-
init: function(E, B,
|
|
6211
|
-
this.cfg = this.cfg.extend(
|
|
6210
|
+
init: function(E, B, T) {
|
|
6211
|
+
this.cfg = this.cfg.extend(T), this._xformMode = E, this._key = B, this.reset();
|
|
6212
6212
|
},
|
|
6213
6213
|
/**
|
|
6214
6214
|
* Resets this cipher to its initial state.
|
|
@@ -6277,11 +6277,11 @@ function $w() {
|
|
|
6277
6277
|
}
|
|
6278
6278
|
return function(B) {
|
|
6279
6279
|
return {
|
|
6280
|
-
encrypt: function(
|
|
6281
|
-
return E(D).encrypt(B,
|
|
6280
|
+
encrypt: function(T, D, L) {
|
|
6281
|
+
return E(D).encrypt(B, T, D, L);
|
|
6282
6282
|
},
|
|
6283
|
-
decrypt: function(
|
|
6284
|
-
return E(D).decrypt(B,
|
|
6283
|
+
decrypt: function(T, D, L) {
|
|
6284
|
+
return E(D).decrypt(B, T, D, L);
|
|
6285
6285
|
}
|
|
6286
6286
|
};
|
|
6287
6287
|
};
|
|
@@ -6351,9 +6351,9 @@ function $w() {
|
|
|
6351
6351
|
*
|
|
6352
6352
|
* mode.processBlock(data.words, offset);
|
|
6353
6353
|
*/
|
|
6354
|
-
processBlock: function(
|
|
6354
|
+
processBlock: function(T, D) {
|
|
6355
6355
|
var L = this._cipher, W = L.blockSize;
|
|
6356
|
-
B.call(this,
|
|
6356
|
+
B.call(this, T, D, W), L.encryptBlock(T, D), this._prevBlock = T.slice(D, D + W);
|
|
6357
6357
|
}
|
|
6358
6358
|
}), E.Decryptor = E.extend({
|
|
6359
6359
|
/**
|
|
@@ -6366,16 +6366,16 @@ function $w() {
|
|
|
6366
6366
|
*
|
|
6367
6367
|
* mode.processBlock(data.words, offset);
|
|
6368
6368
|
*/
|
|
6369
|
-
processBlock: function(
|
|
6370
|
-
var L = this._cipher, W = L.blockSize, H =
|
|
6371
|
-
L.decryptBlock(
|
|
6369
|
+
processBlock: function(T, D) {
|
|
6370
|
+
var L = this._cipher, W = L.blockSize, H = T.slice(D, D + W);
|
|
6371
|
+
L.decryptBlock(T, D), B.call(this, T, D, W), this._prevBlock = H;
|
|
6372
6372
|
}
|
|
6373
6373
|
});
|
|
6374
|
-
function B(
|
|
6374
|
+
function B(T, D, L) {
|
|
6375
6375
|
var W, H = this._iv;
|
|
6376
6376
|
H ? (W = H, this._iv = t) : W = this._prevBlock;
|
|
6377
|
-
for (var
|
|
6378
|
-
|
|
6377
|
+
for (var V = 0; V < L; V++)
|
|
6378
|
+
T[D + V] ^= W[V];
|
|
6379
6379
|
}
|
|
6380
6380
|
return E;
|
|
6381
6381
|
}(), w = r.pad = {}, C = w.Pkcs7 = {
|
|
@@ -6392,10 +6392,10 @@ function $w() {
|
|
|
6392
6392
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
6393
6393
|
*/
|
|
6394
6394
|
pad: function(E, B) {
|
|
6395
|
-
for (var
|
|
6395
|
+
for (var T = B * 4, D = T - E.sigBytes % T, L = D << 24 | D << 16 | D << 8 | D, W = [], H = 0; H < D; H += 4)
|
|
6396
6396
|
W.push(L);
|
|
6397
|
-
var
|
|
6398
|
-
E.concat(
|
|
6397
|
+
var V = o.create(W, D);
|
|
6398
|
+
E.concat(V);
|
|
6399
6399
|
},
|
|
6400
6400
|
/**
|
|
6401
6401
|
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
@@ -6427,8 +6427,8 @@ function $w() {
|
|
|
6427
6427
|
reset: function() {
|
|
6428
6428
|
var E;
|
|
6429
6429
|
h.reset.call(this);
|
|
6430
|
-
var B = this.cfg,
|
|
6431
|
-
this._xformMode == this._ENC_XFORM_MODE ? E = D.createEncryptor : (E = D.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == E ? this._mode.init(this,
|
|
6430
|
+
var B = this.cfg, T = B.iv, D = B.mode;
|
|
6431
|
+
this._xformMode == this._ENC_XFORM_MODE ? E = D.createEncryptor : (E = D.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == E ? this._mode.init(this, T && T.words) : (this._mode = E.call(D, this, T && T.words), this._mode.__creator = E);
|
|
6432
6432
|
},
|
|
6433
6433
|
_doProcessBlock: function(E, B) {
|
|
6434
6434
|
this._mode.processBlock(E, B);
|
|
@@ -6495,8 +6495,8 @@ function $w() {
|
|
|
6495
6495
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
6496
6496
|
*/
|
|
6497
6497
|
stringify: function(E) {
|
|
6498
|
-
var B,
|
|
6499
|
-
return D ? B = o.create([1398893684, 1701076831]).concat(D).concat(
|
|
6498
|
+
var B, T = E.ciphertext, D = E.salt;
|
|
6499
|
+
return D ? B = o.create([1398893684, 1701076831]).concat(D).concat(T) : B = T, B.toString(d);
|
|
6500
6500
|
},
|
|
6501
6501
|
/**
|
|
6502
6502
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -6512,8 +6512,8 @@ function $w() {
|
|
|
6512
6512
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
6513
6513
|
*/
|
|
6514
6514
|
parse: function(E) {
|
|
6515
|
-
var B,
|
|
6516
|
-
return D[0] == 1398893684 && D[1] == 1701076831 && (B = o.create(D.slice(2, 4)), D.splice(0, 4),
|
|
6515
|
+
var B, T = d.parse(E), D = T.words;
|
|
6516
|
+
return D[0] == 1398893684 && D[1] == 1701076831 && (B = o.create(D.slice(2, 4)), D.splice(0, 4), T.sigBytes -= 16), p.create({ ciphertext: T, salt: B });
|
|
6517
6517
|
}
|
|
6518
6518
|
}, b = s.SerializableCipher = a.extend({
|
|
6519
6519
|
/**
|
|
@@ -6542,12 +6542,12 @@ function $w() {
|
|
|
6542
6542
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
6543
6543
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
6544
6544
|
*/
|
|
6545
|
-
encrypt: function(E, B,
|
|
6545
|
+
encrypt: function(E, B, T, D) {
|
|
6546
6546
|
D = this.cfg.extend(D);
|
|
6547
|
-
var L = E.createEncryptor(
|
|
6547
|
+
var L = E.createEncryptor(T, D), W = L.finalize(B), H = L.cfg;
|
|
6548
6548
|
return p.create({
|
|
6549
6549
|
ciphertext: W,
|
|
6550
|
-
key:
|
|
6550
|
+
key: T,
|
|
6551
6551
|
iv: H.iv,
|
|
6552
6552
|
algorithm: E,
|
|
6553
6553
|
mode: H.mode,
|
|
@@ -6573,9 +6573,9 @@ function $w() {
|
|
|
6573
6573
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
6574
6574
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
6575
6575
|
*/
|
|
6576
|
-
decrypt: function(E, B,
|
|
6576
|
+
decrypt: function(E, B, T, D) {
|
|
6577
6577
|
D = this.cfg.extend(D), B = this._parse(B, D.format);
|
|
6578
|
-
var L = E.createDecryptor(
|
|
6578
|
+
var L = E.createDecryptor(T, D).finalize(B.ciphertext);
|
|
6579
6579
|
return L;
|
|
6580
6580
|
},
|
|
6581
6581
|
/**
|
|
@@ -6614,12 +6614,12 @@ function $w() {
|
|
|
6614
6614
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
6615
6615
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
6616
6616
|
*/
|
|
6617
|
-
execute: function(E, B,
|
|
6617
|
+
execute: function(E, B, T, D, L) {
|
|
6618
6618
|
if (D || (D = o.random(64 / 8)), L)
|
|
6619
|
-
var W = l.create({ keySize: B +
|
|
6619
|
+
var W = l.create({ keySize: B + T, hasher: L }).compute(E, D);
|
|
6620
6620
|
else
|
|
6621
|
-
var W = l.create({ keySize: B +
|
|
6622
|
-
var H = o.create(W.words.slice(B),
|
|
6621
|
+
var W = l.create({ keySize: B + T }).compute(E, D);
|
|
6622
|
+
var H = o.create(W.words.slice(B), T * 4);
|
|
6623
6623
|
return W.sigBytes = B * 4, p.create({ key: W, iv: H, salt: D });
|
|
6624
6624
|
}
|
|
6625
6625
|
}, P = s.PasswordBasedCipher = b.extend({
|
|
@@ -6648,9 +6648,9 @@ function $w() {
|
|
|
6648
6648
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
6649
6649
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
6650
6650
|
*/
|
|
6651
|
-
encrypt: function(E, B,
|
|
6651
|
+
encrypt: function(E, B, T, D) {
|
|
6652
6652
|
D = this.cfg.extend(D);
|
|
6653
|
-
var L = D.kdf.execute(
|
|
6653
|
+
var L = D.kdf.execute(T, E.keySize, E.ivSize, D.salt, D.hasher);
|
|
6654
6654
|
D.iv = L.iv;
|
|
6655
6655
|
var W = b.encrypt.call(this, E, B, L.key, D);
|
|
6656
6656
|
return W.mixIn(L), W;
|
|
@@ -6672,9 +6672,9 @@ function $w() {
|
|
|
6672
6672
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
6673
6673
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
6674
6674
|
*/
|
|
6675
|
-
decrypt: function(E, B,
|
|
6675
|
+
decrypt: function(E, B, T, D) {
|
|
6676
6676
|
D = this.cfg.extend(D), B = this._parse(B, D.format);
|
|
6677
|
-
var L = D.kdf.execute(
|
|
6677
|
+
var L = D.kdf.execute(T, E.keySize, E.ivSize, B.salt, D.hasher);
|
|
6678
6678
|
D.iv = L.iv;
|
|
6679
6679
|
var W = b.decrypt.call(this, E, B, L.key, D);
|
|
6680
6680
|
return W;
|
|
@@ -6708,13 +6708,13 @@ function $w() {
|
|
|
6708
6708
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
6709
6709
|
for (var k = this._keyPriorReset = this._key, y = k.words, b = k.sigBytes / 4, x = this._nRounds = b + 6, S = (x + 1) * 4, P = this._keySchedule = [], E = 0; E < S; E++)
|
|
6710
6710
|
E < b ? P[E] = y[E] : (p = P[E - 1], E % b ? b > 6 && E % b == 4 && (p = o[p >>> 24] << 24 | o[p >>> 16 & 255] << 16 | o[p >>> 8 & 255] << 8 | o[p & 255]) : (p = p << 8 | p >>> 24, p = o[p >>> 24] << 24 | o[p >>> 16 & 255] << 16 | o[p >>> 8 & 255] << 8 | o[p & 255], p ^= w[E / b | 0] << 24), P[E] = P[E - b] ^ p);
|
|
6711
|
-
for (var B = this._invKeySchedule = [],
|
|
6712
|
-
var E = S -
|
|
6713
|
-
if (
|
|
6711
|
+
for (var B = this._invKeySchedule = [], T = 0; T < S; T++) {
|
|
6712
|
+
var E = S - T;
|
|
6713
|
+
if (T % 4)
|
|
6714
6714
|
var p = P[E];
|
|
6715
6715
|
else
|
|
6716
6716
|
var p = P[E - 4];
|
|
6717
|
-
|
|
6717
|
+
T < 4 || E <= 4 ? B[T] = p : B[T] = h[o[p >>> 24]] ^ g[o[p >>> 16 & 255]] ^ v[o[p >>> 8 & 255]] ^ m[o[p & 255]];
|
|
6718
6718
|
}
|
|
6719
6719
|
}
|
|
6720
6720
|
},
|
|
@@ -6728,12 +6728,12 @@ function $w() {
|
|
|
6728
6728
|
p[k + 1] = p[k + 3], p[k + 3] = y;
|
|
6729
6729
|
},
|
|
6730
6730
|
_doCryptBlock: function(p, k, y, b, x, S, P, E) {
|
|
6731
|
-
for (var B = this._nRounds,
|
|
6732
|
-
var ee = b[
|
|
6733
|
-
|
|
6731
|
+
for (var B = this._nRounds, T = p[k] ^ y[0], D = p[k + 1] ^ y[1], L = p[k + 2] ^ y[2], W = p[k + 3] ^ y[3], H = 4, V = 1; V < B; V++) {
|
|
6732
|
+
var ee = b[T >>> 24] ^ x[D >>> 16 & 255] ^ S[L >>> 8 & 255] ^ P[W & 255] ^ y[H++], U = b[D >>> 24] ^ x[L >>> 16 & 255] ^ S[W >>> 8 & 255] ^ P[T & 255] ^ y[H++], j = b[L >>> 24] ^ x[W >>> 16 & 255] ^ S[T >>> 8 & 255] ^ P[D & 255] ^ y[H++], O = b[W >>> 24] ^ x[T >>> 16 & 255] ^ S[D >>> 8 & 255] ^ P[L & 255] ^ y[H++];
|
|
6733
|
+
T = ee, D = U, L = j, W = O;
|
|
6734
6734
|
}
|
|
6735
|
-
var ee = (E[
|
|
6736
|
-
p[k] = ee, p[k + 1] =
|
|
6735
|
+
var ee = (E[T >>> 24] << 24 | E[D >>> 16 & 255] << 16 | E[L >>> 8 & 255] << 8 | E[W & 255]) ^ y[H++], U = (E[D >>> 24] << 24 | E[L >>> 16 & 255] << 16 | E[W >>> 8 & 255] << 8 | E[T & 255]) ^ y[H++], j = (E[L >>> 24] << 24 | E[W >>> 16 & 255] << 16 | E[T >>> 8 & 255] << 8 | E[D & 255]) ^ y[H++], O = (E[W >>> 24] << 24 | E[T >>> 16 & 255] << 16 | E[D >>> 8 & 255] << 8 | E[L & 255]) ^ y[H++];
|
|
6736
|
+
p[k] = ee, p[k + 1] = U, p[k + 2] = j, p[k + 3] = O;
|
|
6737
6737
|
},
|
|
6738
6738
|
keySize: 256 / 32
|
|
6739
6739
|
});
|
|
@@ -9642,13 +9642,13 @@ function C3() {
|
|
|
9642
9642
|
var k = !1, y, b, x = function(B) {
|
|
9643
9643
|
if (!k) {
|
|
9644
9644
|
k = !0, y = B;
|
|
9645
|
-
var
|
|
9645
|
+
var T = l(B);
|
|
9646
9646
|
if (h !== void 0 && v.hasValue) {
|
|
9647
9647
|
var D = v.value;
|
|
9648
|
-
if (h(D,
|
|
9648
|
+
if (h(D, T))
|
|
9649
9649
|
return b = D, D;
|
|
9650
9650
|
}
|
|
9651
|
-
return b =
|
|
9651
|
+
return b = T, T;
|
|
9652
9652
|
}
|
|
9653
9653
|
var L = y, W = b;
|
|
9654
9654
|
if (i(L, B))
|
|
@@ -10923,23 +10923,23 @@ function qk(n, e, i) {
|
|
|
10923
10923
|
var w = new zk(i, l, t ? r.componentStyle : void 0);
|
|
10924
10924
|
function C(k, y) {
|
|
10925
10925
|
return function(b, x, S) {
|
|
10926
|
-
var P = b.attrs, E = b.componentStyle, B = b.defaultProps,
|
|
10926
|
+
var P = b.attrs, E = b.componentStyle, B = b.defaultProps, T = b.foldedComponentIds, D = b.styledComponentId, L = b.target, W = Qe.useContext($1), H = Zd(), V = b.shouldForwardProp || H.shouldForwardProp;
|
|
10927
10927
|
process.env.NODE_ENV !== "production" && mf(D);
|
|
10928
|
-
var ee = ck(x, W, B) || Xi,
|
|
10928
|
+
var ee = ck(x, W, B) || Xi, U = function(ne, Y, X) {
|
|
10929
10929
|
for (var Z, _ = Ye(Ye({}, Y), { className: void 0, theme: X }), ae = 0; ae < ne.length; ae += 1) {
|
|
10930
10930
|
var De = Ji(Z = ne[ae]) ? Z(_) : Z;
|
|
10931
10931
|
for (var q in De) _[q] = q === "className" ? vi(_[q], De[q]) : q === "style" ? Ye(Ye({}, _[q]), De[q]) : De[q];
|
|
10932
10932
|
}
|
|
10933
10933
|
return Y.className && (_.className = vi(_.className, Y.className)), _;
|
|
10934
|
-
}(P, x, ee), j =
|
|
10935
|
-
for (var
|
|
10934
|
+
}(P, x, ee), j = U.as || L, O = {};
|
|
10935
|
+
for (var M in U) U[M] === void 0 || M[0] === "$" || M === "as" || M === "theme" && U.theme === ee || (M === "forwardedAs" ? O.as = U.forwardedAs : V && !V(M, j) || (O[M] = U[M], V || process.env.NODE_ENV !== "development" || G3(M) || $d.has(M) || !Mo.has(j) || ($d.add(M), console.warn('styled-components: it looks like an unknown prop "'.concat(M, '" 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.)')))));
|
|
10936
10936
|
var Q = function(ne, Y) {
|
|
10937
10937
|
var X = Zd(), Z = ne.generateAndInjectStyles(Y, X.styleSheet, X.stylis);
|
|
10938
10938
|
return process.env.NODE_ENV !== "production" && mf(Z), Z;
|
|
10939
|
-
}(E,
|
|
10939
|
+
}(E, U);
|
|
10940
10940
|
process.env.NODE_ENV !== "production" && b.warnTooManyClasses && b.warnTooManyClasses(Q);
|
|
10941
|
-
var R = vi(
|
|
10942
|
-
return Q && (R += " " + Q),
|
|
10941
|
+
var R = vi(T, D);
|
|
10942
|
+
return Q && (R += " " + Q), U.className && (R += " " + U.className), O[Ta(j) && !Mo.has(j) ? "class" : "className"] = R, O.ref = S, pm(j, O);
|
|
10943
10943
|
}(p, k, y);
|
|
10944
10944
|
}
|
|
10945
10945
|
C.displayName = c;
|
|
@@ -11569,7 +11569,7 @@ const f4 = N.div`
|
|
|
11569
11569
|
isUser: A,
|
|
11570
11570
|
isReply: a
|
|
11571
11571
|
}
|
|
11572
|
-
) : /* @__PURE__ */ I(
|
|
11572
|
+
) : /* @__PURE__ */ I(we, { children: [
|
|
11573
11573
|
/* @__PURE__ */ u(_k, { children: f.toLocaleTimeString() }),
|
|
11574
11574
|
/* @__PURE__ */ I(n4, { children: [
|
|
11575
11575
|
e.user.name,
|
|
@@ -12524,7 +12524,7 @@ const f4 = N.div`
|
|
|
12524
12524
|
isReply: s,
|
|
12525
12525
|
activeMessage: a
|
|
12526
12526
|
}) => {
|
|
12527
|
-
var
|
|
12527
|
+
var M, Q, R, ne;
|
|
12528
12528
|
const { composing: o, messages: A } = An(i).room, { user: f } = Je(), [d, c] = J(!1), [l, h] = J(0), [g, v] = J(null), m = ge(A.length), w = ge(null), C = ge({}), p = ge(!0), k = Ce(() => A.map((Y) => ({
|
|
12529
12529
|
...Y,
|
|
12530
12530
|
reply: A.filter(
|
|
@@ -12539,7 +12539,7 @@ const f4 = N.div`
|
|
|
12539
12539
|
[A.length, f.xmppUsername]
|
|
12540
12540
|
), x = ge(null), S = ge(null), P = ge(
|
|
12541
12541
|
y[y.length - 1]
|
|
12542
|
-
), E = ge(!1), B = ge(0),
|
|
12542
|
+
), E = ge(!1), B = ge(0), T = ge(null), D = ge(!0), L = () => {
|
|
12543
12543
|
const Y = x.current;
|
|
12544
12544
|
return Y ? {
|
|
12545
12545
|
top: Y.scrollTop,
|
|
@@ -12587,10 +12587,10 @@ const f4 = N.div`
|
|
|
12587
12587
|
}, [y.length]), fe(() => {
|
|
12588
12588
|
H();
|
|
12589
12589
|
}, [i]);
|
|
12590
|
-
const
|
|
12590
|
+
const V = ie(() => {
|
|
12591
12591
|
const Y = L();
|
|
12592
12592
|
if (!Y || Y.top >= 150 || E.current) return;
|
|
12593
|
-
|
|
12593
|
+
T.current = L();
|
|
12594
12594
|
const [X, Z] = y, _ = (X == null ? void 0 : X.id) === "delimiter-new" ? Z == null ? void 0 : Z.id : X == null ? void 0 : X.id;
|
|
12595
12595
|
_ && (E.current = !0, e(X.roomJid, 30, Number(_)).finally(
|
|
12596
12596
|
() => {
|
|
@@ -12603,16 +12603,16 @@ const f4 = N.div`
|
|
|
12603
12603
|
top: Y.scrollHeight,
|
|
12604
12604
|
behavior: "smooth"
|
|
12605
12605
|
}), c(!1), h(0));
|
|
12606
|
-
}, []),
|
|
12606
|
+
}, []), U = () => {
|
|
12607
12607
|
const Y = x.current;
|
|
12608
12608
|
if (Y) {
|
|
12609
12609
|
const X = Y.scrollHeight - Y.clientHeight <= Y.scrollTop + 100;
|
|
12610
|
-
D.current = X, Y.scrollHeight - Y.clientHeight - Y.scrollTop > 150 ? c(!0) : X && (ee(), c(!1), h(0)), m.current = A.length,
|
|
12610
|
+
D.current = X, Y.scrollHeight - Y.clientHeight - Y.scrollTop > 150 ? c(!0) : X && (ee(), c(!1), h(0)), m.current = A.length, V();
|
|
12611
12611
|
} else
|
|
12612
12612
|
B.current = null;
|
|
12613
12613
|
}, j = () => {
|
|
12614
12614
|
window.clearTimeout(B.current), B.current = window.setTimeout(() => {
|
|
12615
|
-
|
|
12615
|
+
U();
|
|
12616
12616
|
}, 50);
|
|
12617
12617
|
};
|
|
12618
12618
|
fe(() => {
|
|
@@ -12623,11 +12623,11 @@ const f4 = N.div`
|
|
|
12623
12623
|
}, []), fe(() => {
|
|
12624
12624
|
if (y.length > 30) {
|
|
12625
12625
|
const Y = x.current;
|
|
12626
|
-
if (Y &&
|
|
12627
|
-
const X =
|
|
12626
|
+
if (Y && T.current) {
|
|
12627
|
+
const X = T.current.top + (Y.scrollHeight - T.current.height);
|
|
12628
12628
|
Y.scrollTop = X;
|
|
12629
12629
|
}
|
|
12630
|
-
|
|
12630
|
+
T.current = null;
|
|
12631
12631
|
}
|
|
12632
12632
|
}, [y.length, o]), fe(() => {
|
|
12633
12633
|
if (A.length > 0) {
|
|
@@ -12645,7 +12645,7 @@ const f4 = N.div`
|
|
|
12645
12645
|
{
|
|
12646
12646
|
ref: x,
|
|
12647
12647
|
onScroll: j,
|
|
12648
|
-
color: (
|
|
12648
|
+
color: (M = t == null ? void 0 : t.colors) == null ? void 0 : M.primary,
|
|
12649
12649
|
children: [
|
|
12650
12650
|
r && /* @__PURE__ */ u(Rn, { color: (Q = t == null ? void 0 : t.colors) == null ? void 0 : Q.primary }),
|
|
12651
12651
|
a && /* @__PURE__ */ I(Qe.Fragment, { children: [
|
|
@@ -12973,17 +12973,17 @@ const i6 = N.div`
|
|
|
12973
12973
|
editMessage: s,
|
|
12974
12974
|
isLoading: a
|
|
12975
12975
|
}) => {
|
|
12976
|
-
var P, E, B,
|
|
12976
|
+
var P, E, B, T, D, L;
|
|
12977
12977
|
const [o, A] = J(""), [f, d] = J(!1), [c, l] = J([]), h = ge(null), g = ie(() => {
|
|
12978
12978
|
h.current && h.current.click();
|
|
12979
12979
|
}, []), v = ie(
|
|
12980
12980
|
(W) => {
|
|
12981
12981
|
const H = W.target.files;
|
|
12982
12982
|
if (H) {
|
|
12983
|
-
const
|
|
12983
|
+
const V = Array.from(H);
|
|
12984
12984
|
l((ee) => {
|
|
12985
|
-
const
|
|
12986
|
-
(
|
|
12985
|
+
const U = new Set(ee.map((M) => M.name)), j = V.filter(
|
|
12986
|
+
(M) => !U.has(M.name)
|
|
12987
12987
|
);
|
|
12988
12988
|
let O = [...ee, ...j];
|
|
12989
12989
|
return O.length > 5 && (O = O == null ? void 0 : O.slice(0, 5)), O;
|
|
@@ -12997,7 +12997,7 @@ const i6 = N.div`
|
|
|
12997
12997
|
}, w = () => {
|
|
12998
12998
|
t == null || t();
|
|
12999
12999
|
}, C = ie((W) => {
|
|
13000
|
-
l((H) => H.filter((
|
|
13000
|
+
l((H) => H.filter((V) => V !== W));
|
|
13001
13001
|
}, []), p = ie(
|
|
13002
13002
|
(W) => {
|
|
13003
13003
|
A(W.target.value);
|
|
@@ -13020,8 +13020,8 @@ const i6 = N.div`
|
|
|
13020
13020
|
},
|
|
13021
13021
|
[k]
|
|
13022
13022
|
), x = ie((W) => {
|
|
13023
|
-
const H = URL.createObjectURL(W),
|
|
13024
|
-
return
|
|
13023
|
+
const H = URL.createObjectURL(W), V = W.type.split("/")[0];
|
|
13024
|
+
return V === "image" ? /* @__PURE__ */ u(s6, { src: H, alt: W.name }) : V === "video" ? /* @__PURE__ */ u(a6, { src: H, controls: !0 }) : /* @__PURE__ */ u(Xs, { alt: W.name });
|
|
13025
13025
|
}, []), S = Ce(() => c.map(
|
|
13026
13026
|
(W, H) => H < 1 && /* @__PURE__ */ I(r6, { children: [
|
|
13027
13027
|
x(W),
|
|
@@ -13044,7 +13044,7 @@ const i6 = N.div`
|
|
|
13044
13044
|
), [c, x, C]);
|
|
13045
13045
|
return /* @__PURE__ */ I(_4, { children: [
|
|
13046
13046
|
/* @__PURE__ */ I($4, { children: [
|
|
13047
|
-
!f && /* @__PURE__ */ I(
|
|
13047
|
+
!f && /* @__PURE__ */ I(we, { children: [
|
|
13048
13048
|
!(r != null && r.disableMedia) && /* @__PURE__ */ u(
|
|
13049
13049
|
se,
|
|
13050
13050
|
{
|
|
@@ -13067,7 +13067,7 @@ const i6 = N.div`
|
|
|
13067
13067
|
}
|
|
13068
13068
|
)
|
|
13069
13069
|
] }),
|
|
13070
|
-
o || c.length > 0 || r != null && r.disableMedia ? /* @__PURE__ */ I(
|
|
13070
|
+
o || c.length > 0 || r != null && r.disableMedia ? /* @__PURE__ */ I(we, { children: [
|
|
13071
13071
|
((E = r == null ? void 0 : r.secondarySendButton) == null ? void 0 : E.enabled) && /* @__PURE__ */ u(
|
|
13072
13072
|
se,
|
|
13073
13073
|
{
|
|
@@ -13075,7 +13075,7 @@ const i6 = N.div`
|
|
|
13075
13075
|
style: {
|
|
13076
13076
|
color: "white",
|
|
13077
13077
|
borderRadius: "100px",
|
|
13078
|
-
backgroundColor: c.length > 0 ? (B = r == null ? void 0 : r.colors) == null ? void 0 : B.primary : !o || o === "" ? "transparent" : (
|
|
13078
|
+
backgroundColor: c.length > 0 ? (B = r == null ? void 0 : r.colors) == null ? void 0 : B.primary : !o || o === "" ? "transparent" : (T = r == null ? void 0 : r.colors) == null ? void 0 : T.primary,
|
|
13079
13079
|
...r == null ? void 0 : r.secondarySendButton.buttonStyles
|
|
13080
13080
|
},
|
|
13081
13081
|
children: r == null ? void 0 : r.secondarySendButton.buttonText
|
|
@@ -13228,7 +13228,7 @@ const i6 = N.div`
|
|
|
13228
13228
|
return r && document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
13229
13229
|
}, [r]), /* @__PURE__ */ I(b6, { children: [
|
|
13230
13230
|
e ? Qe.cloneElement(e, { ref: o, onClick: f }) : /* @__PURE__ */ u(se, { onClick: f, children: t ?? /* @__PURE__ */ u(q4, {}) }),
|
|
13231
|
-
r && /* @__PURE__ */ u(y6, { ref: a, style: A, children: n.map((d, c) => /* @__PURE__ */ I(
|
|
13231
|
+
r && /* @__PURE__ */ u(y6, { ref: a, style: A, children: n.map((d, c) => /* @__PURE__ */ I(we, { children: [
|
|
13232
13232
|
/* @__PURE__ */ I(
|
|
13233
13233
|
k6,
|
|
13234
13234
|
{
|
|
@@ -14345,23 +14345,23 @@ class s9 {
|
|
|
14345
14345
|
* See the License for the specific language governing permissions and
|
|
14346
14346
|
* limitations under the License.
|
|
14347
14347
|
*/
|
|
14348
|
-
var
|
|
14348
|
+
var ve;
|
|
14349
14349
|
(function(n) {
|
|
14350
14350
|
n[n.DEBUG = 0] = "DEBUG", n[n.VERBOSE = 1] = "VERBOSE", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.SILENT = 5] = "SILENT";
|
|
14351
|
-
})(
|
|
14351
|
+
})(ve || (ve = {}));
|
|
14352
14352
|
const a9 = {
|
|
14353
|
-
debug:
|
|
14354
|
-
verbose:
|
|
14355
|
-
info:
|
|
14356
|
-
warn:
|
|
14357
|
-
error:
|
|
14358
|
-
silent:
|
|
14359
|
-
}, o9 =
|
|
14360
|
-
[
|
|
14361
|
-
[
|
|
14362
|
-
[
|
|
14363
|
-
[
|
|
14364
|
-
[
|
|
14353
|
+
debug: ve.DEBUG,
|
|
14354
|
+
verbose: ve.VERBOSE,
|
|
14355
|
+
info: ve.INFO,
|
|
14356
|
+
warn: ve.WARN,
|
|
14357
|
+
error: ve.ERROR,
|
|
14358
|
+
silent: ve.SILENT
|
|
14359
|
+
}, o9 = ve.INFO, A9 = {
|
|
14360
|
+
[ve.DEBUG]: "log",
|
|
14361
|
+
[ve.VERBOSE]: "log",
|
|
14362
|
+
[ve.INFO]: "info",
|
|
14363
|
+
[ve.WARN]: "warn",
|
|
14364
|
+
[ve.ERROR]: "error"
|
|
14365
14365
|
}, f9 = (n, e, ...i) => {
|
|
14366
14366
|
if (e < n.logLevel)
|
|
14367
14367
|
return;
|
|
@@ -14385,7 +14385,7 @@ class Bh {
|
|
|
14385
14385
|
return this._logLevel;
|
|
14386
14386
|
}
|
|
14387
14387
|
set logLevel(e) {
|
|
14388
|
-
if (!(e in
|
|
14388
|
+
if (!(e in ve))
|
|
14389
14389
|
throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
|
|
14390
14390
|
this._logLevel = e;
|
|
14391
14391
|
}
|
|
@@ -14411,19 +14411,19 @@ class Bh {
|
|
|
14411
14411
|
* The functions below are all based on the `console` interface
|
|
14412
14412
|
*/
|
|
14413
14413
|
debug(...e) {
|
|
14414
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
14414
|
+
this._userLogHandler && this._userLogHandler(this, ve.DEBUG, ...e), this._logHandler(this, ve.DEBUG, ...e);
|
|
14415
14415
|
}
|
|
14416
14416
|
log(...e) {
|
|
14417
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
14417
|
+
this._userLogHandler && this._userLogHandler(this, ve.VERBOSE, ...e), this._logHandler(this, ve.VERBOSE, ...e);
|
|
14418
14418
|
}
|
|
14419
14419
|
info(...e) {
|
|
14420
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
14420
|
+
this._userLogHandler && this._userLogHandler(this, ve.INFO, ...e), this._logHandler(this, ve.INFO, ...e);
|
|
14421
14421
|
}
|
|
14422
14422
|
warn(...e) {
|
|
14423
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
14423
|
+
this._userLogHandler && this._userLogHandler(this, ve.WARN, ...e), this._logHandler(this, ve.WARN, ...e);
|
|
14424
14424
|
}
|
|
14425
14425
|
error(...e) {
|
|
14426
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
14426
|
+
this._userLogHandler && this._userLogHandler(this, ve.ERROR, ...e), this._logHandler(this, ve.ERROR, ...e);
|
|
14427
14427
|
}
|
|
14428
14428
|
}
|
|
14429
14429
|
const d9 = (n, e) => e.some((i) => n instanceof i);
|
|
@@ -15123,10 +15123,10 @@ const fC = Mh, Th = new Lt("auth", "Firebase", Mh());
|
|
|
15123
15123
|
*/
|
|
15124
15124
|
const as = new Bh("@firebase/auth");
|
|
15125
15125
|
function dC(n, ...e) {
|
|
15126
|
-
as.logLevel <=
|
|
15126
|
+
as.logLevel <= ve.WARN && as.warn(`Auth (${Yt}): ${n}`, ...e);
|
|
15127
15127
|
}
|
|
15128
15128
|
function Or(n, ...e) {
|
|
15129
|
-
as.logLevel <=
|
|
15129
|
+
as.logLevel <= ve.ERROR && as.error(`Auth (${Yt}): ${n}`, ...e);
|
|
15130
15130
|
}
|
|
15131
15131
|
/**
|
|
15132
15132
|
* @license
|
|
@@ -19633,7 +19633,7 @@ const Oi = ({
|
|
|
19633
19633
|
size: i
|
|
19634
19634
|
}
|
|
19635
19635
|
) : o || c(),
|
|
19636
|
-
(t == null ? void 0 : t.active) && /* @__PURE__ */ I(
|
|
19636
|
+
(t == null ? void 0 : t.active) && /* @__PURE__ */ I(we, { children: [
|
|
19637
19637
|
/* @__PURE__ */ u(
|
|
19638
19638
|
p4,
|
|
19639
19639
|
{
|
|
@@ -19962,7 +19962,7 @@ const ug = ({
|
|
|
19962
19962
|
], gg = () => {
|
|
19963
19963
|
var W, H;
|
|
19964
19964
|
const n = de(
|
|
19965
|
-
(
|
|
19965
|
+
(V) => V.chatSettingStore.config
|
|
19966
19966
|
), e = be(), { client: i } = nn(), { showToast: t } = qt(), [r, s] = J(!1), [a, o] = J(!1), [A, f] = J("0"), [d, c] = J(""), [l, h] = J(""), [g, v] = J({
|
|
19967
19967
|
name: "Public",
|
|
19968
19968
|
id: "public"
|
|
@@ -19970,24 +19970,24 @@ const ug = ({
|
|
|
19970
19970
|
// () => roomName.length >= 3 && roomDescription.length >= 5,
|
|
19971
19971
|
() => d.length >= 3,
|
|
19972
19972
|
[d, l]
|
|
19973
|
-
), x = (
|
|
19974
|
-
const ee =
|
|
19975
|
-
c(ee), p((
|
|
19976
|
-
...
|
|
19973
|
+
), x = (V) => V.trim().length < 3 ? "Room name must be at least 3 characters." : "", S = (V) => {
|
|
19974
|
+
const ee = V.target.value;
|
|
19975
|
+
c(ee), p((U) => ({
|
|
19976
|
+
...U,
|
|
19977
19977
|
name: x(ee)
|
|
19978
19978
|
}));
|
|
19979
19979
|
}, P = () => s(!0), E = () => {
|
|
19980
19980
|
f("0"), s(!1), c(""), y([]);
|
|
19981
|
-
}, B = async (
|
|
19982
|
-
w(
|
|
19983
|
-
},
|
|
19981
|
+
}, B = async (V) => {
|
|
19982
|
+
w(V);
|
|
19983
|
+
}, T = async () => {
|
|
19984
19984
|
w(null);
|
|
19985
|
-
}, D = async (
|
|
19986
|
-
var
|
|
19985
|
+
}, D = async (V, ee) => {
|
|
19986
|
+
var U;
|
|
19987
19987
|
try {
|
|
19988
19988
|
const j = Ws(
|
|
19989
|
-
|
|
19990
|
-
(
|
|
19989
|
+
V,
|
|
19990
|
+
(U = n == null ? void 0 : n.xmppSettings) == null ? void 0 : U.conference,
|
|
19991
19991
|
ee
|
|
19992
19992
|
);
|
|
19993
19993
|
e(
|
|
@@ -20000,7 +20000,7 @@ const ug = ({
|
|
|
20000
20000
|
console.error("Error handling room creation:", j);
|
|
20001
20001
|
}
|
|
20002
20002
|
}, L = async () => {
|
|
20003
|
-
var
|
|
20003
|
+
var V, ee, U;
|
|
20004
20004
|
if (t({
|
|
20005
20005
|
id: Date.now().toString(),
|
|
20006
20006
|
title: "Room creation",
|
|
@@ -20010,12 +20010,12 @@ const ug = ({
|
|
|
20010
20010
|
}), o(!0), b) {
|
|
20011
20011
|
let j = new FormData();
|
|
20012
20012
|
j.append("files", m);
|
|
20013
|
-
const O = await Af(j),
|
|
20013
|
+
const O = await Af(j), M = (U = (ee = (V = O == null ? void 0 : O.data) == null ? void 0 : V.results) == null ? void 0 : ee[0]) == null ? void 0 : U.location;
|
|
20014
20014
|
if (n != null && n.newArch) {
|
|
20015
20015
|
const Q = k.map((ne) => ne.xmppUsername), R = await Uy({
|
|
20016
20016
|
title: d,
|
|
20017
20017
|
description: l && l !== "" ? l : "No description",
|
|
20018
|
-
picture:
|
|
20018
|
+
picture: M || "",
|
|
20019
20019
|
type: g.id || "public",
|
|
20020
20020
|
members: Q
|
|
20021
20021
|
});
|
|
@@ -20025,8 +20025,8 @@ const ug = ({
|
|
|
20025
20025
|
d,
|
|
20026
20026
|
l && l !== "" ? l : "No description"
|
|
20027
20027
|
);
|
|
20028
|
-
i.getRoomsStanza(), e(Ve({ roomJID: Q })),
|
|
20029
|
-
Tn({ jid: Q, updates: { icon:
|
|
20028
|
+
i.getRoomsStanza(), e(Ve({ roomJID: Q })), M && (i.setRoomImageStanza(Q, M, "icon", "none"), e(
|
|
20029
|
+
Tn({ jid: Q, updates: { icon: M } })
|
|
20030
20030
|
));
|
|
20031
20031
|
}
|
|
20032
20032
|
s(!1), p({ name: "", description: "" }), w(null), c(""), h(""), o(!1), t({
|
|
@@ -20038,7 +20038,7 @@ const ug = ({
|
|
|
20038
20038
|
});
|
|
20039
20039
|
}
|
|
20040
20040
|
};
|
|
20041
|
-
return /* @__PURE__ */ I(
|
|
20041
|
+
return /* @__PURE__ */ I(we, { children: [
|
|
20042
20042
|
/* @__PURE__ */ u(
|
|
20043
20043
|
se,
|
|
20044
20044
|
{
|
|
@@ -20062,7 +20062,7 @@ const ug = ({
|
|
|
20062
20062
|
{
|
|
20063
20063
|
size: 120,
|
|
20064
20064
|
upload: { active: !0, onUpload: B },
|
|
20065
|
-
remove: { enabled: !0, onRemoveClick:
|
|
20065
|
+
remove: { enabled: !0, onRemoveClick: T },
|
|
20066
20066
|
placeholderIcon: /* @__PURE__ */ u(z4, {}),
|
|
20067
20067
|
icon: m,
|
|
20068
20068
|
disableOverlay: !m,
|
|
@@ -20096,7 +20096,7 @@ const ug = ({
|
|
|
20096
20096
|
{
|
|
20097
20097
|
options: j5,
|
|
20098
20098
|
placeholder: "Select your language",
|
|
20099
|
-
onSelect: (
|
|
20099
|
+
onSelect: (V) => v(V),
|
|
20100
20100
|
accentColor: (H = n == null ? void 0 : n.colors) == null ? void 0 : H.primary,
|
|
20101
20101
|
selectedValue: g
|
|
20102
20102
|
}
|
|
@@ -20276,7 +20276,7 @@ const G5 = N.div`
|
|
|
20276
20276
|
rightMenu: i,
|
|
20277
20277
|
leftMenu: t
|
|
20278
20278
|
}) => /* @__PURE__ */ I(E6, { children: [
|
|
20279
|
-
/* @__PURE__ */ u(B6, { children: t || /* @__PURE__ */ I(
|
|
20279
|
+
/* @__PURE__ */ u(B6, { children: t || /* @__PURE__ */ I(we, { children: [
|
|
20280
20280
|
/* @__PURE__ */ u(se, { EndIcon: /* @__PURE__ */ u(dh, {}), onClick: n }),
|
|
20281
20281
|
e ?? "Go back"
|
|
20282
20282
|
] }) }),
|
|
@@ -20406,8 +20406,8 @@ function q5() {
|
|
|
20406
20406
|
}
|
|
20407
20407
|
}
|
|
20408
20408
|
}
|
|
20409
|
-
var y = A, b = f, x = o, S = a, P = e, E = d, B = t,
|
|
20410
|
-
function
|
|
20409
|
+
var y = A, b = f, x = o, S = a, P = e, E = d, B = t, T = g, D = h, L = i, W = s, H = r, V = c, ee = !1;
|
|
20410
|
+
function U(q) {
|
|
20411
20411
|
return ee || (ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), j(q) || k(q) === A;
|
|
20412
20412
|
}
|
|
20413
20413
|
function j(q) {
|
|
@@ -20416,7 +20416,7 @@ function q5() {
|
|
|
20416
20416
|
function O(q) {
|
|
20417
20417
|
return k(q) === o;
|
|
20418
20418
|
}
|
|
20419
|
-
function
|
|
20419
|
+
function M(q) {
|
|
20420
20420
|
return k(q) === a;
|
|
20421
20421
|
}
|
|
20422
20422
|
function Q(q) {
|
|
@@ -20446,7 +20446,7 @@ function q5() {
|
|
|
20446
20446
|
function De(q) {
|
|
20447
20447
|
return k(q) === c;
|
|
20448
20448
|
}
|
|
20449
|
-
le.AsyncMode = y, le.ConcurrentMode = b, le.ContextConsumer = x, le.ContextProvider = S, le.Element = P, le.ForwardRef = E, le.Fragment = B, le.Lazy =
|
|
20449
|
+
le.AsyncMode = y, le.ConcurrentMode = b, le.ContextConsumer = x, le.ContextProvider = S, le.Element = P, le.ForwardRef = E, le.Fragment = B, le.Lazy = T, le.Memo = D, le.Portal = L, le.Profiler = W, le.StrictMode = H, le.Suspense = V, le.isAsyncMode = U, le.isConcurrentMode = j, le.isContextConsumer = O, le.isContextProvider = M, le.isElement = Q, le.isForwardRef = R, le.isFragment = ne, le.isLazy = Y, le.isMemo = X, le.isPortal = Z, le.isProfiler = _, le.isStrictMode = ae, le.isSuspense = De, le.isValidElementType = p, le.typeOf = k;
|
|
20450
20450
|
}()), le;
|
|
20451
20451
|
}
|
|
20452
20452
|
var jc;
|
|
@@ -20606,7 +20606,7 @@ function X5() {
|
|
|
20606
20606
|
objectOf: S,
|
|
20607
20607
|
oneOf: x,
|
|
20608
20608
|
oneOfType: P,
|
|
20609
|
-
shape:
|
|
20609
|
+
shape: T,
|
|
20610
20610
|
exact: D
|
|
20611
20611
|
};
|
|
20612
20612
|
function g(j, O) {
|
|
@@ -20618,7 +20618,7 @@ function X5() {
|
|
|
20618
20618
|
v.prototype = Error.prototype;
|
|
20619
20619
|
function m(j) {
|
|
20620
20620
|
if (process.env.NODE_ENV !== "production")
|
|
20621
|
-
var O = {},
|
|
20621
|
+
var O = {}, M = 0;
|
|
20622
20622
|
function Q(ne, Y, X, Z, _, ae, De) {
|
|
20623
20623
|
if (Z = Z || l, ae = ae || X, De !== i) {
|
|
20624
20624
|
if (A) {
|
|
@@ -20629,9 +20629,9 @@ function X5() {
|
|
|
20629
20629
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
20630
20630
|
var cn = Z + ":" + X;
|
|
20631
20631
|
!O[cn] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
20632
|
-
|
|
20632
|
+
M < 3 && (s(
|
|
20633
20633
|
"You are manually calling a React.PropTypes validation function for the `" + ae + "` prop on `" + Z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
20634
|
-
), O[cn] = !0,
|
|
20634
|
+
), O[cn] = !0, M++);
|
|
20635
20635
|
}
|
|
20636
20636
|
}
|
|
20637
20637
|
return Y[X] == null ? ne ? Y[X] === null ? new v("The " + _ + " `" + ae + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new v("The " + _ + " `" + ae + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : j(Y, X, Z, _, ae);
|
|
@@ -20640,10 +20640,10 @@ function X5() {
|
|
|
20640
20640
|
return R.isRequired = Q.bind(null, !0), R;
|
|
20641
20641
|
}
|
|
20642
20642
|
function w(j) {
|
|
20643
|
-
function O(
|
|
20644
|
-
var Z =
|
|
20643
|
+
function O(M, Q, R, ne, Y, X) {
|
|
20644
|
+
var Z = M[Q], _ = H(Z);
|
|
20645
20645
|
if (_ !== j) {
|
|
20646
|
-
var ae =
|
|
20646
|
+
var ae = V(Z);
|
|
20647
20647
|
return new v(
|
|
20648
20648
|
"Invalid " + ne + " `" + Y + "` of type " + ("`" + ae + "` supplied to `" + R + "`, expected ") + ("`" + j + "`."),
|
|
20649
20649
|
{ expectedType: j }
|
|
@@ -20657,10 +20657,10 @@ function X5() {
|
|
|
20657
20657
|
return m(a);
|
|
20658
20658
|
}
|
|
20659
20659
|
function p(j) {
|
|
20660
|
-
function O(
|
|
20660
|
+
function O(M, Q, R, ne, Y) {
|
|
20661
20661
|
if (typeof j != "function")
|
|
20662
20662
|
return new v("Property `" + Y + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
20663
|
-
var X =
|
|
20663
|
+
var X = M[Q];
|
|
20664
20664
|
if (!Array.isArray(X)) {
|
|
20665
20665
|
var Z = H(X);
|
|
20666
20666
|
return new v("Invalid " + ne + " `" + Y + "` of type " + ("`" + Z + "` supplied to `" + R + "`, expected an array."));
|
|
@@ -20675,8 +20675,8 @@ function X5() {
|
|
|
20675
20675
|
return m(O);
|
|
20676
20676
|
}
|
|
20677
20677
|
function k() {
|
|
20678
|
-
function j(O,
|
|
20679
|
-
var Y = O[
|
|
20678
|
+
function j(O, M, Q, R, ne) {
|
|
20679
|
+
var Y = O[M];
|
|
20680
20680
|
if (!o(Y)) {
|
|
20681
20681
|
var X = H(Y);
|
|
20682
20682
|
return new v("Invalid " + R + " `" + ne + "` of type " + ("`" + X + "` supplied to `" + Q + "`, expected a single ReactElement."));
|
|
@@ -20686,8 +20686,8 @@ function X5() {
|
|
|
20686
20686
|
return m(j);
|
|
20687
20687
|
}
|
|
20688
20688
|
function y() {
|
|
20689
|
-
function j(O,
|
|
20690
|
-
var Y = O[
|
|
20689
|
+
function j(O, M, Q, R, ne) {
|
|
20690
|
+
var Y = O[M];
|
|
20691
20691
|
if (!n.isValidElementType(Y)) {
|
|
20692
20692
|
var X = H(Y);
|
|
20693
20693
|
return new v("Invalid " + R + " `" + ne + "` of type " + ("`" + X + "` supplied to `" + Q + "`, expected a single ReactElement type."));
|
|
@@ -20697,9 +20697,9 @@ function X5() {
|
|
|
20697
20697
|
return m(j);
|
|
20698
20698
|
}
|
|
20699
20699
|
function b(j) {
|
|
20700
|
-
function O(
|
|
20701
|
-
if (!(
|
|
20702
|
-
var X = j.name || l, Z =
|
|
20700
|
+
function O(M, Q, R, ne, Y) {
|
|
20701
|
+
if (!(M[Q] instanceof j)) {
|
|
20702
|
+
var X = j.name || l, Z = U(M[Q]);
|
|
20703
20703
|
return new v("Invalid " + ne + " `" + Y + "` of type " + ("`" + Z + "` supplied to `" + R + "`, expected ") + ("instance of `" + X + "`."));
|
|
20704
20704
|
}
|
|
20705
20705
|
return null;
|
|
@@ -20711,12 +20711,12 @@ function X5() {
|
|
|
20711
20711
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
20712
20712
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
20713
20713
|
) : s("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
20714
|
-
function O(
|
|
20715
|
-
for (var X =
|
|
20714
|
+
function O(M, Q, R, ne, Y) {
|
|
20715
|
+
for (var X = M[Q], Z = 0; Z < j.length; Z++)
|
|
20716
20716
|
if (g(X, j[Z]))
|
|
20717
20717
|
return null;
|
|
20718
20718
|
var _ = JSON.stringify(j, function(De, q) {
|
|
20719
|
-
var cn =
|
|
20719
|
+
var cn = V(q);
|
|
20720
20720
|
return cn === "symbol" ? String(q) : q;
|
|
20721
20721
|
});
|
|
20722
20722
|
return new v("Invalid " + ne + " `" + Y + "` of value `" + String(X) + "` " + ("supplied to `" + R + "`, expected one of " + _ + "."));
|
|
@@ -20724,10 +20724,10 @@ function X5() {
|
|
|
20724
20724
|
return m(O);
|
|
20725
20725
|
}
|
|
20726
20726
|
function S(j) {
|
|
20727
|
-
function O(
|
|
20727
|
+
function O(M, Q, R, ne, Y) {
|
|
20728
20728
|
if (typeof j != "function")
|
|
20729
20729
|
return new v("Property `" + Y + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
20730
|
-
var X =
|
|
20730
|
+
var X = M[Q], Z = H(X);
|
|
20731
20731
|
if (Z !== "object")
|
|
20732
20732
|
return new v("Invalid " + ne + " `" + Y + "` of type " + ("`" + Z + "` supplied to `" + R + "`, expected an object."));
|
|
20733
20733
|
for (var _ in X)
|
|
@@ -20744,10 +20744,10 @@ function X5() {
|
|
|
20744
20744
|
if (!Array.isArray(j))
|
|
20745
20745
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
20746
20746
|
for (var O = 0; O < j.length; O++) {
|
|
20747
|
-
var
|
|
20748
|
-
if (typeof
|
|
20747
|
+
var M = j[O];
|
|
20748
|
+
if (typeof M != "function")
|
|
20749
20749
|
return s(
|
|
20750
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ee(
|
|
20750
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ee(M) + " at index " + O + "."
|
|
20751
20751
|
), a;
|
|
20752
20752
|
}
|
|
20753
20753
|
function Q(R, ne, Y, X, Z) {
|
|
@@ -20763,25 +20763,25 @@ function X5() {
|
|
|
20763
20763
|
return m(Q);
|
|
20764
20764
|
}
|
|
20765
20765
|
function E() {
|
|
20766
|
-
function j(O,
|
|
20767
|
-
return L(O[
|
|
20766
|
+
function j(O, M, Q, R, ne) {
|
|
20767
|
+
return L(O[M]) ? null : new v("Invalid " + R + " `" + ne + "` supplied to " + ("`" + Q + "`, expected a ReactNode."));
|
|
20768
20768
|
}
|
|
20769
20769
|
return m(j);
|
|
20770
20770
|
}
|
|
20771
|
-
function B(j, O,
|
|
20771
|
+
function B(j, O, M, Q, R) {
|
|
20772
20772
|
return new v(
|
|
20773
|
-
(j || "React class") + ": " + O + " type `" +
|
|
20773
|
+
(j || "React class") + ": " + O + " type `" + M + "." + Q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
|
|
20774
20774
|
);
|
|
20775
20775
|
}
|
|
20776
|
-
function
|
|
20777
|
-
function O(
|
|
20778
|
-
var X =
|
|
20776
|
+
function T(j) {
|
|
20777
|
+
function O(M, Q, R, ne, Y) {
|
|
20778
|
+
var X = M[Q], Z = H(X);
|
|
20779
20779
|
if (Z !== "object")
|
|
20780
20780
|
return new v("Invalid " + ne + " `" + Y + "` of type `" + Z + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
20781
20781
|
for (var _ in j) {
|
|
20782
20782
|
var ae = j[_];
|
|
20783
20783
|
if (typeof ae != "function")
|
|
20784
|
-
return B(R, ne, Y, _,
|
|
20784
|
+
return B(R, ne, Y, _, V(ae));
|
|
20785
20785
|
var De = ae(X, _, R, ne, Y + "." + _, i);
|
|
20786
20786
|
if (De)
|
|
20787
20787
|
return De;
|
|
@@ -20791,18 +20791,18 @@ function X5() {
|
|
|
20791
20791
|
return m(O);
|
|
20792
20792
|
}
|
|
20793
20793
|
function D(j) {
|
|
20794
|
-
function O(
|
|
20795
|
-
var X =
|
|
20794
|
+
function O(M, Q, R, ne, Y) {
|
|
20795
|
+
var X = M[Q], Z = H(X);
|
|
20796
20796
|
if (Z !== "object")
|
|
20797
20797
|
return new v("Invalid " + ne + " `" + Y + "` of type `" + Z + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
20798
|
-
var _ = e({},
|
|
20798
|
+
var _ = e({}, M[Q], j);
|
|
20799
20799
|
for (var ae in _) {
|
|
20800
20800
|
var De = j[ae];
|
|
20801
20801
|
if (t(j, ae) && typeof De != "function")
|
|
20802
|
-
return B(R, ne, Y, ae,
|
|
20802
|
+
return B(R, ne, Y, ae, V(De));
|
|
20803
20803
|
if (!De)
|
|
20804
20804
|
return new v(
|
|
20805
|
-
"Invalid " + ne + " `" + Y + "` key `" + ae + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(
|
|
20805
|
+
"Invalid " + ne + " `" + Y + "` key `" + ae + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(M[Q], null, " ") + `
|
|
20806
20806
|
Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
20807
20807
|
);
|
|
20808
20808
|
var q = De(X, ae, R, ne, Y + "." + ae, i);
|
|
@@ -20828,13 +20828,13 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
20828
20828
|
return !0;
|
|
20829
20829
|
var O = c(j);
|
|
20830
20830
|
if (O) {
|
|
20831
|
-
var
|
|
20831
|
+
var M = O.call(j), Q;
|
|
20832
20832
|
if (O !== j.entries) {
|
|
20833
|
-
for (; !(Q =
|
|
20833
|
+
for (; !(Q = M.next()).done; )
|
|
20834
20834
|
if (!L(Q.value))
|
|
20835
20835
|
return !1;
|
|
20836
20836
|
} else
|
|
20837
|
-
for (; !(Q =
|
|
20837
|
+
for (; !(Q = M.next()).done; ) {
|
|
20838
20838
|
var R = Q.value;
|
|
20839
20839
|
if (R && !L(R[1]))
|
|
20840
20840
|
return !1;
|
|
@@ -20853,7 +20853,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
20853
20853
|
var O = typeof j;
|
|
20854
20854
|
return Array.isArray(j) ? "array" : j instanceof RegExp ? "object" : W(O, j) ? "symbol" : O;
|
|
20855
20855
|
}
|
|
20856
|
-
function
|
|
20856
|
+
function V(j) {
|
|
20857
20857
|
if (typeof j > "u" || j === null)
|
|
20858
20858
|
return "" + j;
|
|
20859
20859
|
var O = H(j);
|
|
@@ -20866,7 +20866,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
20866
20866
|
return O;
|
|
20867
20867
|
}
|
|
20868
20868
|
function ee(j) {
|
|
20869
|
-
var O =
|
|
20869
|
+
var O = V(j);
|
|
20870
20870
|
switch (O) {
|
|
20871
20871
|
case "array":
|
|
20872
20872
|
case "object":
|
|
@@ -20879,7 +20879,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
20879
20879
|
return O;
|
|
20880
20880
|
}
|
|
20881
20881
|
}
|
|
20882
|
-
function
|
|
20882
|
+
function U(j) {
|
|
20883
20883
|
return !j.constructor || !j.constructor.name ? l : j.constructor.name;
|
|
20884
20884
|
}
|
|
20885
20885
|
return h.checkPropTypes = r, h.resetWarningCache = r.resetWarningCache, h.PropTypes = h, h;
|
|
@@ -21868,7 +21868,7 @@ const Pg = N.div`
|
|
|
21868
21868
|
const { showToast: n } = qt(), e = be(), [i, t] = J(!1), [r, s] = J(!1), [a, o] = J([]), A = de((l) => OA(l)), f = () => s(!0), d = () => {
|
|
21869
21869
|
s(!1), o([]);
|
|
21870
21870
|
};
|
|
21871
|
-
return /* @__PURE__ */ I(
|
|
21871
|
+
return /* @__PURE__ */ I(we, { children: [
|
|
21872
21872
|
/* @__PURE__ */ u(Yo, { variant: "filled", unstyled: !0, onClick: f, children: "Add more Users" }),
|
|
21873
21873
|
r && /* @__PURE__ */ u(ft, { children: /* @__PURE__ */ I(_i, { children: [
|
|
21874
21874
|
/* @__PURE__ */ u(Si, { onClick: d, style: { fontSize: 24 }, children: "×" }),
|
|
@@ -22050,7 +22050,7 @@ const Pg = N.div`
|
|
|
22050
22050
|
{
|
|
22051
22051
|
handleCloseModal: n,
|
|
22052
22052
|
headerTitle: "Chat Profile",
|
|
22053
|
-
rightMenu: /* @__PURE__ */ I(
|
|
22053
|
+
rightMenu: /* @__PURE__ */ I(we, { children: [
|
|
22054
22054
|
(l == null ? void 0 : l.type) === "public" && /* @__PURE__ */ u(se, { EndIcon: /* @__PURE__ */ u(V4, {}), onClick: () => r(!0) }),
|
|
22055
22055
|
l.role === "moderator" && l.type !== "private" && /* @__PURE__ */ u(
|
|
22056
22056
|
It,
|
|
@@ -22093,7 +22093,7 @@ const Pg = N.div`
|
|
|
22093
22093
|
l.usersCnt > 1 ? "members" : "member"
|
|
22094
22094
|
] })
|
|
22095
22095
|
] }),
|
|
22096
|
-
l.role === "moderator" && l.type === "group" && /* @__PURE__ */ u(
|
|
22096
|
+
l.role === "moderator" && l.type === "group" && /* @__PURE__ */ u(we, { children: /* @__PURE__ */ u(E8, {}) }),
|
|
22097
22097
|
/* @__PURE__ */ I(jn, { children: [
|
|
22098
22098
|
/* @__PURE__ */ u(Ri, { children: "Description" }),
|
|
22099
22099
|
/* @__PURE__ */ u(xi, { children: l == null ? void 0 : l.description })
|
|
@@ -22443,7 +22443,7 @@ const F8 = ({
|
|
|
22443
22443
|
{
|
|
22444
22444
|
handleCloseModal: r,
|
|
22445
22445
|
headerTitle: "File preview",
|
|
22446
|
-
rightMenu: /* @__PURE__ */ u(
|
|
22446
|
+
rightMenu: /* @__PURE__ */ u(we, { children: /* @__PURE__ */ u(se, { onClick: t, children: /* @__PURE__ */ u(K4, {}) }) })
|
|
22447
22447
|
}
|
|
22448
22448
|
),
|
|
22449
22449
|
/* @__PURE__ */ u(
|
|
@@ -22954,7 +22954,7 @@ const qc = N.div`
|
|
|
22954
22954
|
}, h = (w) => {
|
|
22955
22955
|
c(w);
|
|
22956
22956
|
};
|
|
22957
|
-
return /* @__PURE__ */ I(
|
|
22957
|
+
return /* @__PURE__ */ I(we, { children: [
|
|
22958
22958
|
/* @__PURE__ */ u(
|
|
22959
22959
|
tn,
|
|
22960
22960
|
{
|
|
@@ -23108,13 +23108,13 @@ const qc = N.div`
|
|
|
23108
23108
|
);
|
|
23109
23109
|
v(S, 2), y = S.name;
|
|
23110
23110
|
} else {
|
|
23111
|
-
const S = Ur(a.id), B = [Ur(s.defaultWallet.walletAddress), S].sort().join(".").toLowerCase(),
|
|
23111
|
+
const S = Ur(a.id), B = [Ur(s.defaultWallet.walletAddress), S].sort().join(".").toLowerCase(), T = [
|
|
23112
23112
|
s.firstName,
|
|
23113
23113
|
(x = (b = a.name) == null ? void 0 : b.split(" ")) == null ? void 0 : x[0]
|
|
23114
23114
|
].sort().join(" and ");
|
|
23115
23115
|
y = await i.createPrivateRoomStanza(
|
|
23116
|
-
|
|
23117
|
-
`Private chat ${
|
|
23116
|
+
T,
|
|
23117
|
+
`Private chat ${T}`,
|
|
23118
23118
|
B
|
|
23119
23119
|
), y && (await i.inviteRoomRequestStanza(S, y), await i.getRoomsStanza());
|
|
23120
23120
|
}
|
|
@@ -23125,13 +23125,13 @@ const qc = N.div`
|
|
|
23125
23125
|
}, p = Ce(
|
|
23126
23126
|
() => {
|
|
23127
23127
|
var y, b, x;
|
|
23128
|
-
return /* @__PURE__ */ I(
|
|
23128
|
+
return /* @__PURE__ */ I(we, { children: [
|
|
23129
23129
|
/* @__PURE__ */ u(
|
|
23130
23130
|
tn,
|
|
23131
23131
|
{
|
|
23132
23132
|
handleCloseModal: d,
|
|
23133
23133
|
headerTitle: "Profile",
|
|
23134
|
-
rightMenu: !a && /* @__PURE__ */ I(
|
|
23134
|
+
rightMenu: !a && /* @__PURE__ */ I(we, { children: [
|
|
23135
23135
|
/* @__PURE__ */ u(se, { onClick: g, children: /* @__PURE__ */ u(Us, { color: "#8C8C8C" }) }),
|
|
23136
23136
|
/* @__PURE__ */ u(
|
|
23137
23137
|
It,
|
|
@@ -23168,7 +23168,7 @@ const qc = N.div`
|
|
|
23168
23168
|
/* @__PURE__ */ u(xi, { children: "About" }),
|
|
23169
23169
|
/* @__PURE__ */ u(Ri, { children: w != null && w.description && ((x = w == null ? void 0 : w.description) == null ? void 0 : x.length) > 4 ? w.description : "No description" })
|
|
23170
23170
|
] }),
|
|
23171
|
-
a && /* @__PURE__ */ I(
|
|
23171
|
+
a && /* @__PURE__ */ I(we, { children: [
|
|
23172
23172
|
/* @__PURE__ */ u(
|
|
23173
23173
|
Yo,
|
|
23174
23174
|
{
|
|
@@ -23243,7 +23243,7 @@ const qc = N.div`
|
|
|
23243
23243
|
gap: "8px",
|
|
23244
23244
|
boxSizing: "border-box"
|
|
23245
23245
|
},
|
|
23246
|
-
children: e.map((r, s) => /* @__PURE__ */ I(
|
|
23246
|
+
children: e.map((r, s) => /* @__PURE__ */ I(we, { children: [
|
|
23247
23247
|
/* @__PURE__ */ I(
|
|
23248
23248
|
se,
|
|
23249
23249
|
{
|
|
@@ -63784,7 +63784,7 @@ const qc = N.div`
|
|
|
63784
63784
|
return (E = P.name) == null ? void 0 : E.toLowerCase().includes(b);
|
|
63785
63785
|
}
|
|
63786
63786
|
).sort((P, E) => {
|
|
63787
|
-
const B = w(P) ? Number(w(P)) : null,
|
|
63787
|
+
const B = w(P) ? Number(w(P)) : null, T = w(E) ? Number(w(E)) : null, D = P.createdAt ? new Date(P.createdAt).getTime() * 1e3 : null, L = E.createdAt ? new Date(E.createdAt).getTime() * 1e3 : null, W = B !== null ? B : D, H = T !== null ? T : L;
|
|
63788
63788
|
return W === null && H === null ? 0 : W === null ? 1 : H === null ? -1 : H - W;
|
|
63789
63789
|
});
|
|
63790
63790
|
x.set(b, S);
|
|
@@ -63826,7 +63826,7 @@ const qc = N.div`
|
|
|
63826
63826
|
],
|
|
63827
63827
|
[]
|
|
63828
63828
|
);
|
|
63829
|
-
return /* @__PURE__ */ I(
|
|
63829
|
+
return /* @__PURE__ */ I(we, { children: [
|
|
63830
63830
|
e && !a && /* @__PURE__ */ u(R5, { onClick: () => o(!a), children: "☰" }),
|
|
63831
63831
|
/* @__PURE__ */ u(
|
|
63832
63832
|
Q5,
|
|
@@ -63862,7 +63862,7 @@ const qc = N.div`
|
|
|
63862
63862
|
"div",
|
|
63863
63863
|
{
|
|
63864
63864
|
style: { flexGrow: 1, overflowY: "auto", padding: "16px 0px" },
|
|
63865
|
-
children: C.map((b, x) => /* @__PURE__ */ I(
|
|
63865
|
+
children: C.map((b, x) => /* @__PURE__ */ I(we, { children: [
|
|
63866
63866
|
/* @__PURE__ */ u(
|
|
63867
63867
|
Cx,
|
|
63868
63868
|
{
|
|
@@ -63927,77 +63927,73 @@ const Bx = ({
|
|
|
63927
63927
|
currentRoom: n,
|
|
63928
63928
|
handleBackClick: e
|
|
63929
63929
|
}) => {
|
|
63930
|
-
var c;
|
|
63931
63930
|
const i = be(), { client: t } = nn(), { roomsList: r, activeRoomJID: s } = An(n.jid), { composing: a } = An(n.jid).room, { config: o } = Je(), A = () => {
|
|
63932
63931
|
i(Yu({ isOpen: !0 }));
|
|
63933
|
-
}, f = (
|
|
63932
|
+
}, f = (c) => {
|
|
63934
63933
|
i(
|
|
63935
|
-
Tn({ jid:
|
|
63936
|
-
), i(Ve({ roomJID:
|
|
63934
|
+
Tn({ jid: c.jid, updates: { ...c, unreadMessages: 0 } })
|
|
63935
|
+
), i(Ve({ roomJID: c.jid })), i(Le({ chatJID: c.jid, loading: !0 }));
|
|
63937
63936
|
}, d = ie(() => {
|
|
63938
63937
|
if (t.leaveTheRoomStanza(s), i(BA({ jid: s })), Object.keys(r).length < 1 || s === Object.keys(r)[0]) {
|
|
63939
|
-
const
|
|
63940
|
-
window.history.pushState(null, "",
|
|
63938
|
+
const l = `${window.location.pathname}`;
|
|
63939
|
+
window.history.pushState(null, "", l), i(Ve({ roomJID: null }));
|
|
63941
63940
|
return;
|
|
63942
63941
|
}
|
|
63943
|
-
const
|
|
63944
|
-
|
|
63942
|
+
const c = Object.keys(r)[0] || null;
|
|
63943
|
+
c && i(Ve({ roomJID: c }));
|
|
63945
63944
|
}, [s, r, i, t]);
|
|
63946
|
-
return /* @__PURE__ */ I(
|
|
63947
|
-
/* @__PURE__ */ I(
|
|
63948
|
-
|
|
63949
|
-
|
|
63950
|
-
|
|
63951
|
-
{
|
|
63952
|
-
|
|
63953
|
-
|
|
63954
|
-
|
|
63955
|
-
|
|
63956
|
-
|
|
63957
|
-
|
|
63958
|
-
|
|
63959
|
-
|
|
63960
|
-
|
|
63961
|
-
|
|
63962
|
-
|
|
63963
|
-
|
|
63964
|
-
|
|
63965
|
-
|
|
63966
|
-
|
|
63967
|
-
|
|
63968
|
-
children:
|
|
63969
|
-
|
|
63970
|
-
|
|
63945
|
+
return /* @__PURE__ */ I(Vk, { children: [
|
|
63946
|
+
/* @__PURE__ */ I("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
63947
|
+
!(o != null && o.disableRooms) && e && /* @__PURE__ */ u(
|
|
63948
|
+
se,
|
|
63949
|
+
{
|
|
63950
|
+
EndIcon: /* @__PURE__ */ u(dh, {}),
|
|
63951
|
+
onClick: () => e(!1)
|
|
63952
|
+
}
|
|
63953
|
+
),
|
|
63954
|
+
(o == null ? void 0 : o.chatHeaderBurgerMenu) && r && /* @__PURE__ */ u(
|
|
63955
|
+
Zo,
|
|
63956
|
+
{
|
|
63957
|
+
chats: Object.values(r),
|
|
63958
|
+
burgerMenu: !0,
|
|
63959
|
+
onRoomClick: f
|
|
63960
|
+
}
|
|
63961
|
+
),
|
|
63962
|
+
/* @__PURE__ */ I(
|
|
63963
|
+
Uk,
|
|
63964
|
+
{
|
|
63965
|
+
onClick: () => i(Re(me.CHAT_PROFILE)),
|
|
63966
|
+
children: [
|
|
63967
|
+
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(
|
|
63968
|
+
Oi,
|
|
63969
|
+
{
|
|
63970
|
+
name: n.name,
|
|
63971
|
+
size: 40,
|
|
63972
|
+
icon: n == null ? void 0 : n.icon,
|
|
63973
|
+
active: !0
|
|
63974
|
+
}
|
|
63975
|
+
) }),
|
|
63976
|
+
/* @__PURE__ */ I(Xk, { children: [
|
|
63977
|
+
/* @__PURE__ */ u(ic, { children: n == null ? void 0 : n.title }),
|
|
63978
|
+
/* @__PURE__ */ u(
|
|
63979
|
+
ic,
|
|
63971
63980
|
{
|
|
63972
|
-
|
|
63973
|
-
|
|
63974
|
-
icon: n == null ? void 0 : n.icon,
|
|
63975
|
-
active: !0
|
|
63981
|
+
style: { color: "#8C8C8C", fontSize: "14px" },
|
|
63982
|
+
children: a ? /* @__PURE__ */ u(VA, { usersTyping: n == null ? void 0 : n.composingList }) : `${Ex(n == null ? void 0 : n.usersCnt)} ${(n == null ? void 0 : n.usersCnt) === 1 ? "user" : "users"}`
|
|
63976
63983
|
}
|
|
63977
|
-
)
|
|
63978
|
-
|
|
63979
|
-
|
|
63980
|
-
/* @__PURE__ */ u(
|
|
63981
|
-
ic,
|
|
63982
|
-
{
|
|
63983
|
-
style: { color: "#8C8C8C", fontSize: "14px" },
|
|
63984
|
-
children: a ? /* @__PURE__ */ u(VA, { usersTyping: n == null ? void 0 : n.composingList }) : `${Ex(n == null ? void 0 : n.usersCnt)} ${(n == null ? void 0 : n.usersCnt) === 1 ? "user" : "users"}`
|
|
63985
|
-
}
|
|
63986
|
-
)
|
|
63987
|
-
] })
|
|
63988
|
-
]
|
|
63989
|
-
}
|
|
63990
|
-
)
|
|
63991
|
-
] }),
|
|
63992
|
-
/* @__PURE__ */ u("div", { style: { display: "flex", gap: 16 }, children: /* @__PURE__ */ u(
|
|
63993
|
-
xx,
|
|
63994
|
-
{
|
|
63995
|
-
handleLeaveClick: d,
|
|
63996
|
-
handleReportClick: A
|
|
63984
|
+
)
|
|
63985
|
+
] })
|
|
63986
|
+
]
|
|
63997
63987
|
}
|
|
63998
|
-
)
|
|
63988
|
+
)
|
|
63999
63989
|
] }),
|
|
64000
|
-
|
|
63990
|
+
/* @__PURE__ */ u("div", { style: { display: "flex", gap: 16 }, children: /* @__PURE__ */ u(
|
|
63991
|
+
xx,
|
|
63992
|
+
{
|
|
63993
|
+
handleLeaveClick: d,
|
|
63994
|
+
handleReportClick: A
|
|
63995
|
+
}
|
|
63996
|
+
) })
|
|
64001
63997
|
] });
|
|
64002
63998
|
}, Dx = () => /* @__PURE__ */ u(
|
|
64003
63999
|
"div",
|
|
@@ -64336,7 +64332,7 @@ const Bx = ({
|
|
|
64336
64332
|
}, [r]), { sendStartComposing: t, sendEndComposing: r };
|
|
64337
64333
|
}, Za = Qe.memo(
|
|
64338
64334
|
({ CustomMessageComponent: n, handleBackClick: e }) => {
|
|
64339
|
-
var x, S, P, E, B;
|
|
64335
|
+
var x, S, P, E, B, T;
|
|
64340
64336
|
const { client: i } = nn(), t = be(), [r, s] = J(!1), { user: a, config: o } = Je(), {
|
|
64341
64337
|
roomsList: A,
|
|
64342
64338
|
activeRoomJID: f,
|
|
@@ -64349,28 +64345,28 @@ const Bx = ({
|
|
|
64349
64345
|
sendMedia: v,
|
|
64350
64346
|
sendEditMessage: m
|
|
64351
64347
|
} = Rg(), { sendStartComposing: w, sendEndComposing: C } = Lx(), p = ie(
|
|
64352
|
-
(
|
|
64348
|
+
(D) => {
|
|
64353
64349
|
t(
|
|
64354
64350
|
yr({
|
|
64355
64351
|
chatJID: f,
|
|
64356
64352
|
timestamp: 0
|
|
64357
64353
|
})
|
|
64358
|
-
), g(
|
|
64354
|
+
), g(D, f);
|
|
64359
64355
|
},
|
|
64360
64356
|
[f]
|
|
64361
64357
|
), k = ie(
|
|
64362
|
-
(
|
|
64363
|
-
v(
|
|
64358
|
+
(D, L) => {
|
|
64359
|
+
v(D, L, f);
|
|
64364
64360
|
},
|
|
64365
64361
|
[f]
|
|
64366
64362
|
), y = ie(
|
|
64367
|
-
async (
|
|
64368
|
-
var
|
|
64369
|
-
if (!r && !((
|
|
64370
|
-
const
|
|
64371
|
-
A[
|
|
64363
|
+
async (D, L, W) => {
|
|
64364
|
+
var H;
|
|
64365
|
+
if (!r && !((H = A == null ? void 0 : A[D]) != null && H.historyComplete)) {
|
|
64366
|
+
const V = typeof W != "string" ? W : Number(
|
|
64367
|
+
A[D].messages[A[D].messages.length - 2].id
|
|
64372
64368
|
);
|
|
64373
|
-
s(!0), i == null || i.getHistoryStanza(
|
|
64369
|
+
s(!0), i == null || i.getHistoryStanza(D, L, V).then(() => {
|
|
64374
64370
|
s(!1);
|
|
64375
64371
|
});
|
|
64376
64372
|
}
|
|
@@ -64423,7 +64419,8 @@ const Bx = ({
|
|
|
64423
64419
|
handleBackClick: e
|
|
64424
64420
|
}
|
|
64425
64421
|
),
|
|
64426
|
-
|
|
64422
|
+
((P = o == null ? void 0 : o.chatHeaderAdditional) == null ? void 0 : P.enabled) && o.chatHeaderAdditional.element,
|
|
64423
|
+
l || !A[f].historyComplete && A[f].messages.length < 1 ? /* @__PURE__ */ u(Rn, { color: (E = o == null ? void 0 : o.colors) == null ? void 0 : E.primary }) : Object.keys(A).length < 1 || !f ? /* @__PURE__ */ u(oh, {}) : (B = A[f]) != null && B.messages && ((T = A[f]) == null ? void 0 : T.messages.length) < 1 ? /* @__PURE__ */ u(Dx, {}) : /* @__PURE__ */ u(
|
|
64427
64424
|
lh,
|
|
64428
64425
|
{
|
|
64429
64426
|
loadMoreMessages: y,
|
|
@@ -64787,8 +64784,8 @@ class it extends Jt {
|
|
|
64787
64784
|
if (y.preventDefault(), y.stopPropagation(), A && Date.now() - v < o) return;
|
|
64788
64785
|
const b = y.clientX, x = y.clientY, S = b - l, P = x - h;
|
|
64789
64786
|
if (g || Math.abs(S) > s || Math.abs(P) > s) {
|
|
64790
|
-
const E = e.getBoundingClientRect(), { left: B, top:
|
|
64791
|
-
g || (t == null || t(l - B, h -
|
|
64787
|
+
const E = e.getBoundingClientRect(), { left: B, top: T } = E;
|
|
64788
|
+
g || (t == null || t(l - B, h - T), g = !0), i(S, P, b - B, x - T), l = b, h = x;
|
|
64792
64789
|
}
|
|
64793
64790
|
}, w = (y) => {
|
|
64794
64791
|
if (g) {
|
|
@@ -68746,9 +68743,9 @@ const WE = N.div`
|
|
|
68746
68743
|
const S = lf.emojis[x];
|
|
68747
68744
|
return S ? S.skins[0].native : "";
|
|
68748
68745
|
}, b = (x, S) => {
|
|
68749
|
-
const B = window.innerWidth,
|
|
68746
|
+
const B = window.innerWidth, T = window.innerHeight;
|
|
68750
68747
|
let D = x, L = S;
|
|
68751
|
-
return x + 320 > B && (D = B - 320 - 10), S + 435 >
|
|
68748
|
+
return x + 320 > B && (D = B - 320 - 10), S + 435 > T && (L = T - 435 - 10), { adjustedX: D, adjustedY: L };
|
|
68752
68749
|
};
|
|
68753
68750
|
return fe(() => {
|
|
68754
68751
|
const x = () => {
|
|
@@ -68763,7 +68760,7 @@ const WE = N.div`
|
|
|
68763
68760
|
return window.addEventListener("scroll", x), () => {
|
|
68764
68761
|
window.removeEventListener("scroll", x);
|
|
68765
68762
|
};
|
|
68766
|
-
}, [c, t.x, t.y]), h != null && h.disableInteractions || !t.visible ? null : /* @__PURE__ */ u(
|
|
68763
|
+
}, [c, t.x, t.y]), h != null && h.disableInteractions || !t.visible ? null : /* @__PURE__ */ u(we, { children: !i.isDeleted && /* @__PURE__ */ u(YE, { onClick: v, children: /* @__PURE__ */ I(
|
|
68767
68764
|
QE,
|
|
68768
68765
|
{
|
|
68769
68766
|
style: { top: t.y, left: t.x },
|
|
@@ -68816,7 +68813,7 @@ const WE = N.div`
|
|
|
68816
68813
|
}
|
|
68817
68814
|
),
|
|
68818
68815
|
/* @__PURE__ */ I(WE, { onClick: v, children: [
|
|
68819
|
-
!n && /* @__PURE__ */ I(
|
|
68816
|
+
!n && /* @__PURE__ */ I(we, { children: [
|
|
68820
68817
|
/* @__PURE__ */ I(pr, { onClick: w, children: [
|
|
68821
68818
|
vr.REPLY,
|
|
68822
68819
|
/* @__PURE__ */ u(wr.REPLY, {}),
|
|
@@ -68829,7 +68826,7 @@ const WE = N.div`
|
|
|
68829
68826
|
/* @__PURE__ */ u(wr.COPY, {})
|
|
68830
68827
|
] }),
|
|
68831
68828
|
/* @__PURE__ */ u(io, {}),
|
|
68832
|
-
e && /* @__PURE__ */ I(
|
|
68829
|
+
e && /* @__PURE__ */ I(we, { children: [
|
|
68833
68830
|
/* @__PURE__ */ I(pr, { onClick: o, children: [
|
|
68834
68831
|
vr.EDIT,
|
|
68835
68832
|
/* @__PURE__ */ u(wr.EDIT, {}),
|
|
@@ -69050,7 +69047,7 @@ const WE = N.div`
|
|
|
69050
69047
|
langSource: t = "en"
|
|
69051
69048
|
}) => {
|
|
69052
69049
|
var r, s, a, o, A, f;
|
|
69053
|
-
return n.langSource && t && ((s = (r = n.translations) == null ? void 0 : r[t]) == null ? void 0 : s.translatedText) && /* @__PURE__ */ I(
|
|
69050
|
+
return n.langSource && t && ((s = (r = n.translations) == null ? void 0 : r[t]) == null ? void 0 : s.translatedText) && /* @__PURE__ */ I(we, { children: [
|
|
69054
69051
|
/* @__PURE__ */ u(
|
|
69055
69052
|
tB,
|
|
69056
69053
|
{
|
|
@@ -69271,7 +69268,7 @@ const WE = N.div`
|
|
|
69271
69268
|
/* @__PURE__ */ u(dB, { href: n, target: "_blank", rel: "noopener noreferrer", children: o })
|
|
69272
69269
|
] });
|
|
69273
69270
|
}, lB = /(https?:\/\/[\w.-]+(?:\.[\w.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+)/, gt = vm(({ message: n, isUser: e, isReply: i }, t) => {
|
|
69274
|
-
var b, x, S, P, E, B,
|
|
69271
|
+
var b, x, S, P, E, B, T, D, L, W;
|
|
69275
69272
|
const { client: r } = nn(), { user: s, config: a, langSource: o } = Je(), A = be(), [f, d] = a != null && a.disableInteractions ? [null, null] : J({
|
|
69276
69273
|
visible: !1,
|
|
69277
69274
|
x: 0,
|
|
@@ -69287,7 +69284,7 @@ const WE = N.div`
|
|
|
69287
69284
|
const h = (H) => {
|
|
69288
69285
|
if (a != null && a.disableInteractions) return;
|
|
69289
69286
|
H.preventDefault();
|
|
69290
|
-
const
|
|
69287
|
+
const V = 240, ee = 310, U = "touches" in H ? H.touches[0].clientX : H.clientX, j = "touches" in H ? H.touches[0].clientY : H.clientY, O = window.innerWidth, M = window.innerHeight, Q = U + V > O ? U - V : U, R = j + ee > M ? M - ee : j;
|
|
69291
69288
|
d({
|
|
69292
69289
|
visible: !0,
|
|
69293
69290
|
x: Q,
|
|
@@ -69333,7 +69330,7 @@ const WE = N.div`
|
|
|
69333
69330
|
y: null
|
|
69334
69331
|
});
|
|
69335
69332
|
}, y = (H) => {
|
|
69336
|
-
var
|
|
69333
|
+
var V;
|
|
69337
69334
|
if (!n.reaction)
|
|
69338
69335
|
return r.sendMessageReactionStanza(
|
|
69339
69336
|
n.id,
|
|
@@ -69343,7 +69340,7 @@ const WE = N.div`
|
|
|
69343
69340
|
);
|
|
69344
69341
|
if (n.reaction && n.reaction[s.xmppUsername] && n.reaction[s.xmppUsername].emoji.includes(H)) {
|
|
69345
69342
|
const ee = n.reaction[s.xmppUsername].emoji.filter(
|
|
69346
|
-
(
|
|
69343
|
+
(U) => U !== H
|
|
69347
69344
|
);
|
|
69348
69345
|
return r.sendMessageReactionStanza(
|
|
69349
69346
|
n.id,
|
|
@@ -69355,11 +69352,11 @@ const WE = N.div`
|
|
|
69355
69352
|
r.sendMessageReactionStanza(
|
|
69356
69353
|
n.id,
|
|
69357
69354
|
n.roomJid,
|
|
69358
|
-
[...((
|
|
69355
|
+
[...((V = n.reaction[s.xmppUsername]) == null ? void 0 : V.emoji) || [], H],
|
|
69359
69356
|
{ firstName: s.firstName, lastName: s.lastName }
|
|
69360
69357
|
);
|
|
69361
69358
|
};
|
|
69362
|
-
return /* @__PURE__ */ I(
|
|
69359
|
+
return /* @__PURE__ */ I(we, { children: [
|
|
69363
69360
|
/* @__PURE__ */ I(
|
|
69364
69361
|
i4,
|
|
69365
69362
|
{
|
|
@@ -69439,7 +69436,7 @@ const WE = N.div`
|
|
|
69439
69436
|
}
|
|
69440
69437
|
),
|
|
69441
69438
|
/* @__PURE__ */ I(f4, { isUser: e, children: [
|
|
69442
|
-
(
|
|
69439
|
+
(T = n == null ? void 0 : n.reply) != null && T.length && ((D = n == null ? void 0 : n.reply) == null ? void 0 : D.length) > 0 ? /* @__PURE__ */ u(
|
|
69443
69440
|
UE,
|
|
69444
69441
|
{
|
|
69445
69442
|
isUser: e,
|
|
@@ -69640,14 +69637,14 @@ const WE = N.div`
|
|
|
69640
69637
|
loading: o
|
|
69641
69638
|
}
|
|
69642
69639
|
),
|
|
69643
|
-
((C = n == null ? void 0 : n.googleLogin) == null ? void 0 : C.enabled) && /* @__PURE__ */ I(
|
|
69640
|
+
((C = n == null ? void 0 : n.googleLogin) == null ? void 0 : C.enabled) && /* @__PURE__ */ I(we, { children: [
|
|
69644
69641
|
/* @__PURE__ */ u(gB, { children: "or" }),
|
|
69645
69642
|
/* @__PURE__ */ u(
|
|
69646
69643
|
se,
|
|
69647
69644
|
{
|
|
69648
69645
|
onClick: h,
|
|
69649
69646
|
style: { width: "100%", height: "40px" },
|
|
69650
|
-
text: /* @__PURE__ */ u(
|
|
69647
|
+
text: /* @__PURE__ */ u(we, { children: "Login with Google" }),
|
|
69651
69648
|
EndIcon: /* @__PURE__ */ u(R4, { style: { height: "24px" } }),
|
|
69652
69649
|
disabled: o
|
|
69653
69650
|
}
|
|
@@ -69761,13 +69758,13 @@ const WE = N.div`
|
|
|
69761
69758
|
sendMedia: c,
|
|
69762
69759
|
sendEditMessage: l
|
|
69763
69760
|
} = Rg(), [h, g] = J(!1), [v, m] = J(!1), w = ie(
|
|
69764
|
-
async (B,
|
|
69761
|
+
async (B, T, D) => {
|
|
69765
69762
|
var L;
|
|
69766
69763
|
if (!h && !((L = a == null ? void 0 : a[B]) != null && L.historyComplete)) {
|
|
69767
69764
|
const W = typeof D != "string" ? D : Number(
|
|
69768
69765
|
a[B].messages[a[B].messages.length - 2].id
|
|
69769
69766
|
);
|
|
69770
|
-
g(!0), t == null || t.getHistoryStanza(B,
|
|
69767
|
+
g(!0), t == null || t.getHistoryStanza(B, T, W).then(() => {
|
|
69771
69768
|
g(!1);
|
|
69772
69769
|
});
|
|
69773
69770
|
}
|
|
@@ -69785,10 +69782,10 @@ const WE = N.div`
|
|
|
69785
69782
|
},
|
|
69786
69783
|
[n, v]
|
|
69787
69784
|
), p = ie(
|
|
69788
|
-
(B,
|
|
69785
|
+
(B, T) => {
|
|
69789
69786
|
c(
|
|
69790
69787
|
B,
|
|
69791
|
-
|
|
69788
|
+
T,
|
|
69792
69789
|
n.roomJid,
|
|
69793
69790
|
!0,
|
|
69794
69791
|
!0,
|
|
@@ -70241,7 +70238,7 @@ const PB = ({
|
|
|
70241
70238
|
};
|
|
70242
70239
|
return fe(() => {
|
|
70243
70240
|
(async () => {
|
|
70244
|
-
var y, b, x, S, P, E, B,
|
|
70241
|
+
var y, b, x, S, P, E, B, T;
|
|
70245
70242
|
(y = i == null ? void 0 : i.translates) != null && y.enabled && !((b = i == null ? void 0 : i.translates) != null && b.translations) && t(Qu((x = i == null ? void 0 : i.translates) == null ? void 0 : x.translations)), t(ew(i));
|
|
70246
70243
|
try {
|
|
70247
70244
|
if (!m.xmppUsername)
|
|
@@ -70254,7 +70251,7 @@ const PB = ({
|
|
|
70254
70251
|
async (D) => {
|
|
70255
70252
|
_r(D, t), await $r(g, d), l(d);
|
|
70256
70253
|
}
|
|
70257
|
-
), (
|
|
70254
|
+
), (T = i == null ? void 0 : i.refreshTokens) != null && T.enabled && Do();
|
|
70258
70255
|
else {
|
|
70259
70256
|
s(!1), o(!1), console.log("No client, so initing one");
|
|
70260
70257
|
const D = await c(
|
|
@@ -70299,7 +70296,7 @@ const PB = ({
|
|
|
70299
70296
|
config: i,
|
|
70300
70297
|
roomJID: t
|
|
70301
70298
|
}) => {
|
|
70302
|
-
var W, H,
|
|
70299
|
+
var W, H, V, ee, U;
|
|
70303
70300
|
const { user: r, activeModal: s, deleteModal: a } = Je(), [o, A] = J(!1), [f, d] = J(!1), c = (W = i == null ? void 0 : i.xmppSettings) == null ? void 0 : W.conference, l = be(), { wasAutoSelected: h } = DB(
|
|
70304
70301
|
(j) => l(Ve(j)),
|
|
70305
70302
|
c
|
|
@@ -70320,7 +70317,7 @@ const PB = ({
|
|
|
70320
70317
|
var j, O;
|
|
70321
70318
|
if (m)
|
|
70322
70319
|
return (O = (j = v[m]) == null ? void 0 : j.messages) == null ? void 0 : O.find(
|
|
70323
|
-
(
|
|
70320
|
+
(M) => M == null ? void 0 : M.activeMessage
|
|
70324
70321
|
);
|
|
70325
70322
|
}, [v, m]), x = (j) => {
|
|
70326
70323
|
m !== j.jid && (l(Le({ chatJID: j.jid, loading: !0 })), l(Ve({ roomJID: j.jid })), l(si({ isEdit: !1 })), g(!0));
|
|
@@ -70328,7 +70325,7 @@ const PB = ({
|
|
|
70328
70325
|
E.deleteMessageStanza(a.roomJid, a.messageId), l(Xr({ isDeleteModal: !1 }));
|
|
70329
70326
|
}, P = () => {
|
|
70330
70327
|
l(Xr({ isDeleteModal: !1 }));
|
|
70331
|
-
}, { client: E, inited: B, isRetrying:
|
|
70328
|
+
}, { client: E, inited: B, isRetrying: T, showModal: D } = PB({
|
|
70332
70329
|
roomJID: t,
|
|
70333
70330
|
wasAutoSelected: h,
|
|
70334
70331
|
config: i
|
|
@@ -70336,8 +70333,8 @@ const PB = ({
|
|
|
70336
70333
|
async (j, O) => {
|
|
70337
70334
|
try {
|
|
70338
70335
|
return await (E == null ? void 0 : E.getHistoryStanza(j, O));
|
|
70339
|
-
} catch (
|
|
70340
|
-
console.log("Error in loading queue messages",
|
|
70336
|
+
} catch (M) {
|
|
70337
|
+
console.log("Error in loading queue messages", M);
|
|
70341
70338
|
}
|
|
70342
70339
|
},
|
|
70343
70340
|
[k, p, !!E]
|
|
@@ -70348,13 +70345,13 @@ const PB = ({
|
|
|
70348
70345
|
k,
|
|
70349
70346
|
p,
|
|
70350
70347
|
L
|
|
70351
|
-
), (H = i == null ? void 0 : i.enableRoomsRetry) != null && H.enabled &&
|
|
70348
|
+
), (H = i == null ? void 0 : i.enableRoomsRetry) != null && H.enabled && T === "norooms" ? /* @__PURE__ */ u(
|
|
70352
70349
|
Qa,
|
|
70353
70350
|
{
|
|
70354
70351
|
style: { alignItems: "center", flexDirection: "column", gap: "10px" },
|
|
70355
70352
|
children: i.enableRoomsRetry.helperText || "We couldn’t create any chat room."
|
|
70356
70353
|
}
|
|
70357
|
-
) : (
|
|
70354
|
+
) : (V = i == null ? void 0 : i.enableRoomsRetry) != null && V.enabled && T ? /* @__PURE__ */ I(
|
|
70358
70355
|
Qa,
|
|
70359
70356
|
{
|
|
70360
70357
|
style: { alignItems: "center", flexDirection: "column", gap: "10px" },
|
|
@@ -70363,7 +70360,7 @@ const PB = ({
|
|
|
70363
70360
|
y && /* @__PURE__ */ u("div", { children: y })
|
|
70364
70361
|
]
|
|
70365
70362
|
}
|
|
70366
|
-
) : r.xmppPassword === "" && r.xmppUsername === "" ? /* @__PURE__ */ u(um, { config: i }) : /* @__PURE__ */ I(
|
|
70363
|
+
) : r.xmppPassword === "" && r.xmppUsername === "" ? /* @__PURE__ */ u(um, { config: i }) : /* @__PURE__ */ I(we, { children: [
|
|
70367
70364
|
D && /* @__PURE__ */ u(Pg, { children: /* @__PURE__ */ u(Og, { children: "There was an error. Please, refresh the page" }) }),
|
|
70368
70365
|
B ? /* @__PURE__ */ u(
|
|
70369
70366
|
Xc,
|
|
@@ -70440,7 +70437,7 @@ const PB = ({
|
|
|
70440
70437
|
{
|
|
70441
70438
|
style: { alignItems: "center", flexDirection: "column", gap: "10px" },
|
|
70442
70439
|
children: [
|
|
70443
|
-
/* @__PURE__ */ u(Rn, { color: (
|
|
70440
|
+
/* @__PURE__ */ u(Rn, { color: (U = i == null ? void 0 : i.colors) == null ? void 0 : U.primary, style: { margin: "0px" } }),
|
|
70444
70441
|
y && /* @__PURE__ */ u("div", { children: y })
|
|
70445
70442
|
]
|
|
70446
70443
|
}
|
|
@@ -70500,7 +70497,7 @@ const PB = ({
|
|
|
70500
70497
|
}
|
|
70501
70498
|
})(), () => {
|
|
70502
70499
|
};
|
|
70503
|
-
}, []), /* @__PURE__ */ u(
|
|
70500
|
+
}, []), /* @__PURE__ */ u(we, { children: e ? /* @__PURE__ */ I(
|
|
70504
70501
|
"div",
|
|
70505
70502
|
{
|
|
70506
70503
|
style: {
|