@ethora/chat-component 25.7.16 → 25.7.17
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 +383 -386
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as h, jsxs as N, Fragment as ve } from "react/jsx-runtime";
|
|
2
2
|
import * as qe from "react";
|
|
3
|
-
import Me, { createContext as v1, useContext as $A, useState as z, useRef as ce, useEffect as Ae, useDebugValue as nd, createElement as Ig, Fragment as ao, useMemo as Ce, useCallback as
|
|
3
|
+
import Me, { createContext as v1, useContext as $A, useState as z, useRef as ce, useEffect as Ae, useDebugValue as nd, createElement as Ig, Fragment as ao, useMemo as Ce, useCallback as Z, forwardRef as Bg, PureComponent as Dg, useSyncExternalStore as Ng } from "react";
|
|
4
4
|
function Ui(n) {
|
|
5
5
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
6
6
|
}
|
|
@@ -2052,7 +2052,7 @@ function S0() {
|
|
|
2052
2052
|
function k(C = {}) {
|
|
2053
2053
|
const { resource: w, credentials: y, username: g, password: v, ...x } = C, { domain: I, service: D } = x;
|
|
2054
2054
|
!I && D && (x.domain = t(D));
|
|
2055
|
-
const E = new i(x), B = r({ entity: E }), M = s({ entity: E }), T = o({ entity: E }), L = a({ middleware: T }), W = A({ middleware: T, entity: E }), _ = f({ middleware: T, entity: E }),
|
|
2055
|
+
const E = new i(x), B = r({ entity: E }), M = s({ entity: E }), T = o({ entity: E }), L = a({ middleware: T }), W = A({ middleware: T, entity: E }), _ = f({ middleware: T, entity: E }), J = d({ entity: E }), te = l({ streamFeatures: L }, y || { username: g, password: v }), K = m({
|
|
2056
2056
|
streamFeatures: L,
|
|
2057
2057
|
entity: E,
|
|
2058
2058
|
middleware: T
|
|
@@ -2073,7 +2073,7 @@ function S0() {
|
|
|
2073
2073
|
streamFeatures: L,
|
|
2074
2074
|
iqCaller: W,
|
|
2075
2075
|
iqCallee: _,
|
|
2076
|
-
resolve:
|
|
2076
|
+
resolve: J,
|
|
2077
2077
|
sasl: te,
|
|
2078
2078
|
resourceBinding: Q,
|
|
2079
2079
|
sessionEstablishment: R,
|
|
@@ -2613,11 +2613,11 @@ function Y0() {
|
|
|
2613
2613
|
v[16] = this.block, v[x >>> 2] |= f[x & 3], this.block = v[16], x >= 56 && (this.hashed || this.hash(), v[0] = this.block, v[16] = v[1] = v[2] = v[3] = v[4] = v[5] = v[6] = v[7] = v[8] = v[9] = v[10] = v[11] = v[12] = v[13] = v[14] = v[15] = 0), v[14] = this.hBytes << 3 | this.bytes >>> 29, v[15] = this.bytes << 3, this.hash();
|
|
2614
2614
|
}
|
|
2615
2615
|
}, w.prototype.hash = function() {
|
|
2616
|
-
var v = this.h0, x = this.h1, I = this.h2, D = this.h3, E = this.h4, B = this.h5, M = this.h6, T = this.h7, L = this.blocks, W, _,
|
|
2616
|
+
var v = this.h0, x = this.h1, I = this.h2, D = this.h3, E = this.h4, B = this.h5, M = this.h6, T = this.h7, L = this.blocks, W, _, J, te, K, Q, R, P, F, O, G;
|
|
2617
2617
|
for (W = 16; W < 64; ++W)
|
|
2618
|
-
K = L[W - 15], _ = (K >>> 7 | K << 25) ^ (K >>> 18 | K << 14) ^ K >>> 3, K = L[W - 2],
|
|
2618
|
+
K = L[W - 15], _ = (K >>> 7 | K << 25) ^ (K >>> 18 | K << 14) ^ K >>> 3, K = L[W - 2], J = (K >>> 17 | K << 15) ^ (K >>> 19 | K << 13) ^ K >>> 10, L[W] = L[W - 16] + _ + L[W - 7] + J << 0;
|
|
2619
2619
|
for (G = x & I, W = 0; W < 64; W += 4)
|
|
2620
|
-
this.first ? (this.is224 ? (P = 300032, K = L[0] - 1413257819, T = K - 150054599 << 0, D = K + 24177077 << 0) : (P = 704751109, K = L[0] - 210244248, T = K - 1521486534 << 0, D = K + 143694565 << 0), this.first = !1) : (_ = (v >>> 2 | v << 30) ^ (v >>> 13 | v << 19) ^ (v >>> 22 | v << 10),
|
|
2620
|
+
this.first ? (this.is224 ? (P = 300032, K = L[0] - 1413257819, T = K - 150054599 << 0, D = K + 24177077 << 0) : (P = 704751109, K = L[0] - 210244248, T = K - 1521486534 << 0, D = K + 143694565 << 0), this.first = !1) : (_ = (v >>> 2 | v << 30) ^ (v >>> 13 | v << 19) ^ (v >>> 22 | v << 10), J = (E >>> 6 | E << 26) ^ (E >>> 11 | E << 21) ^ (E >>> 25 | E << 7), P = v & x, te = P ^ v & I ^ G, R = E & B ^ ~E & M, K = T + J + R + l[W] + L[W], Q = _ + te, T = D + K << 0, D = K + Q << 0), _ = (D >>> 2 | D << 30) ^ (D >>> 13 | D << 19) ^ (D >>> 22 | D << 10), J = (T >>> 6 | T << 26) ^ (T >>> 11 | T << 21) ^ (T >>> 25 | T << 7), F = D & v, te = F ^ D & x ^ P, R = T & E ^ ~T & B, K = M + J + R + l[W + 1] + L[W + 1], Q = _ + te, M = I + K << 0, I = K + Q << 0, _ = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), J = (M >>> 6 | M << 26) ^ (M >>> 11 | M << 21) ^ (M >>> 25 | M << 7), O = I & D, te = O ^ I & v ^ F, R = M & T ^ ~M & E, K = B + J + R + l[W + 2] + L[W + 2], Q = _ + te, B = x + K << 0, x = K + Q << 0, _ = (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10), J = (B >>> 6 | B << 26) ^ (B >>> 11 | B << 21) ^ (B >>> 25 | B << 7), G = x & I, te = G ^ x & D ^ O, R = B & M ^ ~B & T, K = E + J + R + l[W + 3] + L[W + 3], Q = _ + te, E = v + K << 0, v = K + Q << 0, this.chromeBugWorkAround = !0;
|
|
2621
2621
|
this.h0 = this.h0 + v << 0, this.h1 = this.h1 + x << 0, this.h2 = this.h2 + I << 0, this.h3 = this.h3 + D << 0, this.h4 = this.h4 + E << 0, this.h5 = this.h5 + B << 0, this.h6 = this.h6 + M << 0, this.h7 = this.h7 + T << 0;
|
|
2622
2622
|
}, w.prototype.hex = function() {
|
|
2623
2623
|
this.finalize();
|
|
@@ -2680,8 +2680,8 @@ function Y0() {
|
|
|
2680
2680
|
v.length > 64 && (v = new w(x, !0).update(v).array());
|
|
2681
2681
|
var W = [], _ = [];
|
|
2682
2682
|
for (D = 0; D < 64; ++D) {
|
|
2683
|
-
var
|
|
2684
|
-
W[D] = 92 ^
|
|
2683
|
+
var J = v[D] || 0;
|
|
2684
|
+
W[D] = 92 ^ J, _[D] = 54 ^ J;
|
|
2685
2685
|
}
|
|
2686
2686
|
w.call(this, x, I), this.update(_), this.oKeyPad = W, this.inner = !0, this.sharedMemory = I;
|
|
2687
2687
|
}
|
|
@@ -5253,7 +5253,7 @@ const l2 = (n, e) => e !== 0 ? n.filter((i) => Number(i.id) < e).length : 0, u2
|
|
|
5253
5253
|
setActiveMessage: Mc,
|
|
5254
5254
|
setCloseActiveMessage: b2,
|
|
5255
5255
|
deleteRoom: hf,
|
|
5256
|
-
updateRoom:
|
|
5256
|
+
updateRoom: Ze,
|
|
5257
5257
|
updateUsersSet: sh,
|
|
5258
5258
|
setOpenReportModal: oh,
|
|
5259
5259
|
insertUsers: mf
|
|
@@ -5294,7 +5294,7 @@ const x2 = (n) => (e) => (i) => {
|
|
|
5294
5294
|
(l) => l.id !== "delimiter-new" && new Date(l.date).getTime() > (A.lastViewedTimestamp || 0)
|
|
5295
5295
|
).length;
|
|
5296
5296
|
A.unreadMessages !== d && n.dispatch(
|
|
5297
|
-
|
|
5297
|
+
Ze({
|
|
5298
5298
|
jid: a,
|
|
5299
5299
|
updates: { unreadMessages: d }
|
|
5300
5300
|
})
|
|
@@ -5764,7 +5764,7 @@ const J2 = (n) => (e) => (i) => {
|
|
|
5764
5764
|
return console.error("Invalid action payload for addRoomMessage:", i), e(i);
|
|
5765
5765
|
const t = e(i), s = n.getState().rooms.rooms, { roomJID: o, message: a } = i.payload;
|
|
5766
5766
|
return s[o]?.lastMessageTimestamp <= Number(a.id) && n.dispatch(
|
|
5767
|
-
|
|
5767
|
+
Ze({
|
|
5768
5768
|
jid: o,
|
|
5769
5769
|
updates: { lastMessageTimestamp: Number(a.id) ?? 0 }
|
|
5770
5770
|
})
|
|
@@ -6397,8 +6397,8 @@ function ib() {
|
|
|
6397
6397
|
var C = b + k, w = p[C];
|
|
6398
6398
|
p[C] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360;
|
|
6399
6399
|
}
|
|
6400
|
-
var y = this._hash.words, g = p[b + 0], v = p[b + 1], x = p[b + 2], I = p[b + 3], D = p[b + 4], E = p[b + 5], B = p[b + 6], M = p[b + 7], T = p[b + 8], L = p[b + 9], W = p[b + 10], _ = p[b + 11],
|
|
6401
|
-
R = l(R, P, F, O, g, 7, f[0]), O = l(O, R, P, F, v, 12, f[1]), F = l(F, O, R, P, x, 17, f[2]), P = l(P, F, O, R, I, 22, f[3]), R = l(R, P, F, O, D, 7, f[4]), O = l(O, R, P, F, E, 12, f[5]), F = l(F, O, R, P, B, 17, f[6]), P = l(P, F, O, R, M, 22, f[7]), R = l(R, P, F, O, T, 7, f[8]), O = l(O, R, P, F, L, 12, f[9]), F = l(F, O, R, P, W, 17, f[10]), P = l(P, F, O, R, _, 22, f[11]), R = l(R, P, F, O,
|
|
6400
|
+
var y = this._hash.words, g = p[b + 0], v = p[b + 1], x = p[b + 2], I = p[b + 3], D = p[b + 4], E = p[b + 5], B = p[b + 6], M = p[b + 7], T = p[b + 8], L = p[b + 9], W = p[b + 10], _ = p[b + 11], J = p[b + 12], te = p[b + 13], K = p[b + 14], Q = p[b + 15], R = y[0], P = y[1], F = y[2], O = y[3];
|
|
6401
|
+
R = l(R, P, F, O, g, 7, f[0]), O = l(O, R, P, F, v, 12, f[1]), F = l(F, O, R, P, x, 17, f[2]), P = l(P, F, O, R, I, 22, f[3]), R = l(R, P, F, O, D, 7, f[4]), O = l(O, R, P, F, E, 12, f[5]), F = l(F, O, R, P, B, 17, f[6]), P = l(P, F, O, R, M, 22, f[7]), R = l(R, P, F, O, T, 7, f[8]), O = l(O, R, P, F, L, 12, f[9]), F = l(F, O, R, P, W, 17, f[10]), P = l(P, F, O, R, _, 22, f[11]), R = l(R, P, F, O, J, 7, f[12]), O = l(O, R, P, F, te, 12, f[13]), F = l(F, O, R, P, K, 17, f[14]), P = l(P, F, O, R, Q, 22, f[15]), R = c(R, P, F, O, v, 5, f[16]), O = c(O, R, P, F, B, 9, f[17]), F = c(F, O, R, P, _, 14, f[18]), P = c(P, F, O, R, g, 20, f[19]), R = c(R, P, F, O, E, 5, f[20]), O = c(O, R, P, F, W, 9, f[21]), F = c(F, O, R, P, Q, 14, f[22]), P = c(P, F, O, R, D, 20, f[23]), R = c(R, P, F, O, L, 5, f[24]), O = c(O, R, P, F, K, 9, f[25]), F = c(F, O, R, P, I, 14, f[26]), P = c(P, F, O, R, T, 20, f[27]), R = c(R, P, F, O, te, 5, f[28]), O = c(O, R, P, F, x, 9, f[29]), F = c(F, O, R, P, M, 14, f[30]), P = c(P, F, O, R, J, 20, f[31]), R = u(R, P, F, O, E, 4, f[32]), O = u(O, R, P, F, T, 11, f[33]), F = u(F, O, R, P, _, 16, f[34]), P = u(P, F, O, R, K, 23, f[35]), R = u(R, P, F, O, v, 4, f[36]), O = u(O, R, P, F, D, 11, f[37]), F = u(F, O, R, P, M, 16, f[38]), P = u(P, F, O, R, W, 23, f[39]), R = u(R, P, F, O, te, 4, f[40]), O = u(O, R, P, F, g, 11, f[41]), F = u(F, O, R, P, I, 16, f[42]), P = u(P, F, O, R, B, 23, f[43]), R = u(R, P, F, O, L, 4, f[44]), O = u(O, R, P, F, J, 11, f[45]), F = u(F, O, R, P, Q, 16, f[46]), P = u(P, F, O, R, x, 23, f[47]), R = m(R, P, F, O, g, 6, f[48]), O = m(O, R, P, F, M, 10, f[49]), F = m(F, O, R, P, K, 15, f[50]), P = m(P, F, O, R, E, 21, f[51]), R = m(R, P, F, O, J, 6, f[52]), O = m(O, R, P, F, I, 10, f[53]), F = m(F, O, R, P, W, 15, f[54]), P = m(P, F, O, R, v, 21, f[55]), R = m(R, P, F, O, T, 6, f[56]), O = m(O, R, P, F, Q, 10, f[57]), F = m(F, O, R, P, B, 15, f[58]), P = m(P, F, O, R, te, 21, f[59]), R = m(R, P, F, O, D, 6, f[60]), O = m(O, R, P, F, _, 10, f[61]), F = m(F, O, R, P, x, 15, f[62]), P = m(P, F, O, R, L, 21, f[63]), y[0] = y[0] + R | 0, y[1] = y[1] + P | 0, y[2] = y[2] + F | 0, y[3] = y[3] + O | 0;
|
|
6402
6402
|
},
|
|
6403
6403
|
_doFinalize: function() {
|
|
6404
6404
|
var p = this._data, b = p.words, k = this._nDataBytes * 8, C = p.sigBytes * 8;
|
|
@@ -6850,8 +6850,8 @@ function fb() {
|
|
|
6850
6850
|
function B(M, T, L) {
|
|
6851
6851
|
var W, _ = this._iv;
|
|
6852
6852
|
_ ? (W = _, this._iv = t) : W = this._prevBlock;
|
|
6853
|
-
for (var
|
|
6854
|
-
M[T +
|
|
6853
|
+
for (var J = 0; J < L; J++)
|
|
6854
|
+
M[T + J] ^= W[J];
|
|
6855
6855
|
}
|
|
6856
6856
|
return E;
|
|
6857
6857
|
}(), k = r.pad = {}, C = k.Pkcs7 = {
|
|
@@ -6870,8 +6870,8 @@ function fb() {
|
|
|
6870
6870
|
pad: function(E, B) {
|
|
6871
6871
|
for (var M = B * 4, T = M - E.sigBytes % M, L = T << 24 | T << 16 | T << 8 | T, W = [], _ = 0; _ < T; _ += 4)
|
|
6872
6872
|
W.push(L);
|
|
6873
|
-
var
|
|
6874
|
-
E.concat(
|
|
6873
|
+
var J = a.create(W, T);
|
|
6874
|
+
E.concat(J);
|
|
6875
6875
|
},
|
|
6876
6876
|
/**
|
|
6877
6877
|
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
@@ -7206,7 +7206,7 @@ function cb() {
|
|
|
7206
7206
|
w[y + 1] = w[y + 3], w[y + 3] = g;
|
|
7207
7207
|
},
|
|
7208
7208
|
_doCryptBlock: function(w, y, g, v, x, I, D, E) {
|
|
7209
|
-
for (var B = this._nRounds, M = w[y] ^ g[0], T = w[y + 1] ^ g[1], L = w[y + 2] ^ g[2], W = w[y + 3] ^ g[3], _ = 4,
|
|
7209
|
+
for (var B = this._nRounds, M = w[y] ^ g[0], T = w[y + 1] ^ g[1], L = w[y + 2] ^ g[2], W = w[y + 3] ^ g[3], _ = 4, J = 1; J < B; J++) {
|
|
7210
7210
|
var te = v[M >>> 24] ^ x[T >>> 16 & 255] ^ I[L >>> 8 & 255] ^ D[W & 255] ^ g[_++], K = v[T >>> 24] ^ x[L >>> 16 & 255] ^ I[W >>> 8 & 255] ^ D[M & 255] ^ g[_++], Q = v[L >>> 24] ^ x[W >>> 16 & 255] ^ I[M >>> 8 & 255] ^ D[T & 255] ^ g[_++], R = v[W >>> 24] ^ x[M >>> 16 & 255] ^ I[T >>> 8 & 255] ^ D[L & 255] ^ g[_++];
|
|
7211
7211
|
M = te, T = K, L = Q, W = R;
|
|
7212
7212
|
}
|
|
@@ -7290,7 +7290,7 @@ const gb = /* @__PURE__ */ Ui(pb), at = (n) => new Error(`redux-persist-transfor
|
|
|
7290
7290
|
}
|
|
7291
7291
|
};
|
|
7292
7292
|
n.dispatch(
|
|
7293
|
-
|
|
7293
|
+
Ze({
|
|
7294
7294
|
jid: o,
|
|
7295
7295
|
updates: c
|
|
7296
7296
|
})
|
|
@@ -7298,7 +7298,7 @@ const gb = /* @__PURE__ */ Ui(pb), at = (n) => new Error(`redux-persist-transfor
|
|
|
7298
7298
|
} else {
|
|
7299
7299
|
const c = s[o].messages[s[o].messages.length - 1];
|
|
7300
7300
|
n.dispatch(
|
|
7301
|
-
|
|
7301
|
+
Ze({
|
|
7302
7302
|
jid: o,
|
|
7303
7303
|
updates: {
|
|
7304
7304
|
lastMessageTimestamp: tr(
|
|
@@ -7415,11 +7415,11 @@ function vh(n, e) {
|
|
|
7415
7415
|
const { toString: Sb } = Object.prototype, { getPrototypeOf: bf } = Object, { iterator: Ls, toStringTag: bh } = Symbol, Fs = /* @__PURE__ */ ((n) => (e) => {
|
|
7416
7416
|
const i = Sb.call(e);
|
|
7417
7417
|
return n[i] || (n[i] = i.slice(8, -1).toLowerCase());
|
|
7418
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
7418
|
+
})(/* @__PURE__ */ Object.create(null)), rn = (n) => (n = n.toLowerCase(), (e) => Fs(e) === n), js = (n) => (e) => typeof e === n, { isArray: zi } = Array, Dt = js("undefined");
|
|
7419
7419
|
function Tb(n) {
|
|
7420
7420
|
return n !== null && !Dt(n) && n.constructor !== null && !Dt(n.constructor) && Ge(n.constructor.isBuffer) && n.constructor.isBuffer(n);
|
|
7421
7421
|
}
|
|
7422
|
-
const wh =
|
|
7422
|
+
const wh = rn("ArrayBuffer");
|
|
7423
7423
|
function Mb(n) {
|
|
7424
7424
|
let e;
|
|
7425
7425
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && wh(n.buffer), e;
|
|
@@ -7429,11 +7429,11 @@ const Rb = js("string"), Ge = js("function"), yh = js("number"), Ws = (n) => n !
|
|
|
7429
7429
|
return !1;
|
|
7430
7430
|
const e = bf(n);
|
|
7431
7431
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(bh in n) && !(Ls in n);
|
|
7432
|
-
}, Qb =
|
|
7432
|
+
}, Qb = rn("Date"), Ob = rn("File"), Lb = rn("Blob"), Fb = rn("FileList"), jb = (n) => Ws(n) && Ge(n.pipe), Wb = (n) => {
|
|
7433
7433
|
let e;
|
|
7434
7434
|
return n && (typeof FormData == "function" && n instanceof FormData || Ge(n.append) && ((e = Fs(n)) === "formdata" || // detect form-data instance
|
|
7435
7435
|
e === "object" && Ge(n.toString) && n.toString() === "[object FormData]"));
|
|
7436
|
-
}, Gb =
|
|
7436
|
+
}, Gb = rn("URLSearchParams"), [Yb, _b, qb, Hb] = ["ReadableStream", "Request", "Response", "Headers"].map(rn), Ub = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
7437
7437
|
function Lt(n, e, { allOwnKeys: i = !1 } = {}) {
|
|
7438
7438
|
if (n === null || typeof n > "u")
|
|
7439
7439
|
return;
|
|
@@ -7509,12 +7509,12 @@ const zb = (n, e, i, { allOwnKeys: t } = {}) => (Lt(e, (r, s) => {
|
|
|
7509
7509
|
for (; (i = n.exec(e)) !== null; )
|
|
7510
7510
|
t.push(i);
|
|
7511
7511
|
return t;
|
|
7512
|
-
}, iw =
|
|
7512
|
+
}, iw = rn("HTMLFormElement"), tw = (n) => n.toLowerCase().replace(
|
|
7513
7513
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
7514
7514
|
function(i, t, r) {
|
|
7515
7515
|
return t.toUpperCase() + r;
|
|
7516
7516
|
}
|
|
7517
|
-
), $c = (({ hasOwnProperty: n }) => (e, i) => n.call(e, i))(Object.prototype), rw =
|
|
7517
|
+
), $c = (({ hasOwnProperty: n }) => (e, i) => n.call(e, i))(Object.prototype), rw = rn("RegExp"), xh = (n, e) => {
|
|
7518
7518
|
const i = Object.getOwnPropertyDescriptors(n), t = {};
|
|
7519
7519
|
Lt(i, (r, s) => {
|
|
7520
7520
|
let o;
|
|
@@ -7564,7 +7564,7 @@ const dw = (n) => {
|
|
|
7564
7564
|
return t;
|
|
7565
7565
|
};
|
|
7566
7566
|
return i(n, 0);
|
|
7567
|
-
}, cw =
|
|
7567
|
+
}, cw = rn("AsyncFunction"), lw = (n) => n && (Ws(n) || Ge(n)) && Ge(n.then) && Ge(n.catch), Eh = ((n, e) => n ? setImmediate : e ? ((i, t) => ($n.addEventListener("message", ({ source: r, data: s }) => {
|
|
7568
7568
|
r === $n && s === i && t.length && t.shift()();
|
|
7569
7569
|
}, !1), (r) => {
|
|
7570
7570
|
t.push(r), $n.postMessage(i, "*");
|
|
@@ -7604,7 +7604,7 @@ const dw = (n) => {
|
|
|
7604
7604
|
inherits: Jb,
|
|
7605
7605
|
toFlatObject: Xb,
|
|
7606
7606
|
kindOf: Fs,
|
|
7607
|
-
kindOfTest:
|
|
7607
|
+
kindOfTest: rn,
|
|
7608
7608
|
endsWith: Kb,
|
|
7609
7609
|
toArray: Zb,
|
|
7610
7610
|
forEachEntry: ew,
|
|
@@ -9070,26 +9070,26 @@ function Yh(n) {
|
|
|
9070
9070
|
return Yh(ci(n, r));
|
|
9071
9071
|
}, i;
|
|
9072
9072
|
}
|
|
9073
|
-
const
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9073
|
+
const ye = Yh(Ft);
|
|
9074
|
+
ye.Axios = ti;
|
|
9075
|
+
ye.CanceledError = Vi;
|
|
9076
|
+
ye.CancelToken = ty;
|
|
9077
|
+
ye.isCancel = Rh;
|
|
9078
|
+
ye.VERSION = Wh;
|
|
9079
|
+
ye.toFormData = Gs;
|
|
9080
|
+
ye.AxiosError = re;
|
|
9081
|
+
ye.Cancel = ye.CanceledError;
|
|
9082
|
+
ye.all = function(e) {
|
|
9083
9083
|
return Promise.all(e);
|
|
9084
9084
|
};
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9085
|
+
ye.spread = ry;
|
|
9086
|
+
ye.isAxiosError = sy;
|
|
9087
|
+
ye.mergeConfig = ci;
|
|
9088
|
+
ye.AxiosHeaders = Ye;
|
|
9089
|
+
ye.formToJSON = (n) => Mh(j.isHTMLForm(n) ? new FormData(n) : n);
|
|
9090
|
+
ye.getAdapter = jh.getAdapter;
|
|
9091
|
+
ye.HttpStatusCode = gA;
|
|
9092
|
+
ye.default = ye;
|
|
9093
9093
|
const {
|
|
9094
9094
|
Axios: pI,
|
|
9095
9095
|
AxiosError: gI,
|
|
@@ -9107,9 +9107,9 @@ const {
|
|
|
9107
9107
|
formToJSON: NI,
|
|
9108
9108
|
getAdapter: SI,
|
|
9109
9109
|
mergeConfig: TI
|
|
9110
|
-
} =
|
|
9110
|
+
} = ye, oy = "JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlzVXNlckRhdGFFbmNyeXB0ZWQiOmZhbHNlLCJwYXJlbnRBcHBJZCI6bnVsbCwiaXNBbGxvd2VkTmV3QXBwQ3JlYXRlIjp0cnVlLCJpc0Jhc2VBcHAiOnRydWUsIl9pZCI6IjY0NmNjOGRjOTZkNGE0ZGM4ZjdiMmYyZCIsImRpc3BsYXlOYW1lIjoiRXRob3JhIiwiZG9tYWluTmFtZSI6ImV0aG9yYSIsImNyZWF0b3JJZCI6IjY0NmNjOGQzOTZkNGE0ZGM4ZjdiMmYyNSIsInVzZXJzQ2FuRnJlZSI6dHJ1ZSwiZGVmYXVsdEFjY2Vzc0Fzc2V0c09wZW4iOnRydWUsImRlZmF1bHRBY2Nlc3NQcm9maWxlT3BlbiI6dHJ1ZSwiYnVuZGxlSWQiOiJjb20uZXRob3JhIiwicHJpbWFyeUNvbG9yIjoiIzAwM0U5QyIsInNlY29uZGFyeUNvbG9yIjoiIzI3NzVFQSIsImNvaW5TeW1ib2wiOiJFVE8iLCJjb2luTmFtZSI6IkV0aG9yYSBDb2luIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX0FQSV9LRVkiOiJBSXphU3lEUWRrdnZ4S0t4NC1XcmpMUW9ZZjA4R0ZBUmdpX3FPNGciLCJSRUFDVF9BUFBfRklSRUJBU0VfQVVUSF9ET01BSU4iOiJldGhvcmEtNjY4ZTkuZmlyZWJhc2VhcHAuY29tIiwiUkVBQ1RfQVBQX0ZJUkVCQVNFX1BST0pFQ1RfSUQiOiJldGhvcmEtNjY4ZTkiLCJSRUFDVF9BUFBfRklSRUJBU0VfU1RPUkFHRV9CVUNLRVQiOiJldGhvcmEtNjY4ZTkuYXBwc3BvdC5jb20iLCJSRUFDVF9BUFBfRklSRUJBU0VfTUVTU0FHSU5HX1NFTkRFUl9JRCI6Ijk3MjkzMzQ3MDA1NCIsIlJFQUNUX0FQUF9GSVJFQkFTRV9BUFBfSUQiOiIxOjk3MjkzMzQ3MDA1NDp3ZWI6ZDQ2ODJlNzZlZjAyZmQ5YjljZGFhNyIsIlJFQUNUX0FQUF9GSVJFQkFTRV9NRUFTVVJNRU5UX0lEIjoiRy1XSE03WFJaNEM4IiwiUkVBQ1RfQVBQX1NUUklQRV9QVUJMSVNIQUJMRV9LRVkiOiIiLCJSRUFDVF9BUFBfU1RSSVBFX1NFQ1JFVF9LRVkiOiIiLCJjcmVhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJ1cGRhdGVkQXQiOiIyMDIzLTA1LTIzVDE0OjA4OjI4LjEzNloiLCJfX3YiOjB9LCJpYXQiOjE2ODQ4NTA5MjV9.-IqNVMsf8GyS9Z-_yuNW7hpSmejajjAy-W0J8TadRIM";
|
|
9111
9111
|
let _h = V.getState().chatSettingStore?.config?.baseUrl || "https://api.ethoradev.com/v1";
|
|
9112
|
-
const xe =
|
|
9112
|
+
const xe = ye.create({
|
|
9113
9113
|
baseURL: _h
|
|
9114
9114
|
});
|
|
9115
9115
|
let jt = oy;
|
|
@@ -9505,7 +9505,7 @@ const gy = (n) => [...py(n)].filter(
|
|
|
9505
9505
|
const r = e?.getChildText("first"), s = e?.getChildText("last"), o = Nb(t.attrs.complete), a = Zc(s), A = Zc(r);
|
|
9506
9506
|
V.dispatch(
|
|
9507
9507
|
V.dispatch(
|
|
9508
|
-
|
|
9508
|
+
Ze({
|
|
9509
9509
|
jid: i,
|
|
9510
9510
|
updates: {
|
|
9511
9511
|
messageStats: {
|
|
@@ -10766,7 +10766,7 @@ function $h(n) {
|
|
|
10766
10766
|
function yn(n, e) {
|
|
10767
10767
|
return (n = e.exec(n)) ? n[0] : n;
|
|
10768
10768
|
}
|
|
10769
|
-
function
|
|
10769
|
+
function oe(n, e, i) {
|
|
10770
10770
|
return n.replace(e, i);
|
|
10771
10771
|
}
|
|
10772
10772
|
function Qr(n, e, i) {
|
|
@@ -10813,7 +10813,7 @@ function w3() {
|
|
|
10813
10813
|
function y3() {
|
|
10814
10814
|
return Ee = Je > 0 ? Ie(Ji, --Je) : 0, Ri--, Ee === 10 && (Ri = 1, Us--), Ee;
|
|
10815
10815
|
}
|
|
10816
|
-
function
|
|
10816
|
+
function $e() {
|
|
10817
10817
|
return Ee = Je < nm ? Ie(Ji, Je++) : 0, Ri++, Ee === 10 && (Ri = 1, Us++), Ee;
|
|
10818
10818
|
}
|
|
10819
10819
|
function ri() {
|
|
@@ -10874,16 +10874,16 @@ function wa(n) {
|
|
|
10874
10874
|
}
|
|
10875
10875
|
function x3(n) {
|
|
10876
10876
|
for (; (Ee = ri()) && Ee < 33; )
|
|
10877
|
-
|
|
10877
|
+
$e();
|
|
10878
10878
|
return kA(n) > 2 || kA(Ee) > 3 ? "" : " ";
|
|
10879
10879
|
}
|
|
10880
10880
|
function E3(n, e) {
|
|
10881
|
-
for (; --e &&
|
|
10881
|
+
for (; --e && $e() && !(Ee < 48 || Ee > 102 || Ee > 57 && Ee < 65 || Ee > 70 && Ee < 97); )
|
|
10882
10882
|
;
|
|
10883
|
-
return Vs(n, Or() + (e < 6 && ri() == 32 &&
|
|
10883
|
+
return Vs(n, Or() + (e < 6 && ri() == 32 && $e() == 32));
|
|
10884
10884
|
}
|
|
10885
10885
|
function CA(n) {
|
|
10886
|
-
for (;
|
|
10886
|
+
for (; $e(); )
|
|
10887
10887
|
switch (Ee) {
|
|
10888
10888
|
// ] ) " '
|
|
10889
10889
|
case n:
|
|
@@ -10899,20 +10899,20 @@ function CA(n) {
|
|
|
10899
10899
|
break;
|
|
10900
10900
|
// \
|
|
10901
10901
|
case 92:
|
|
10902
|
-
|
|
10902
|
+
$e();
|
|
10903
10903
|
break;
|
|
10904
10904
|
}
|
|
10905
10905
|
return Je;
|
|
10906
10906
|
}
|
|
10907
10907
|
function I3(n, e) {
|
|
10908
|
-
for (;
|
|
10908
|
+
for (; $e() && n + Ee !== 57; )
|
|
10909
10909
|
if (n + Ee === 84 && ri() === 47)
|
|
10910
10910
|
break;
|
|
10911
|
-
return "/*" + Vs(e, Je - 1) + "*" + Ef(n === 47 ? n :
|
|
10911
|
+
return "/*" + Vs(e, Je - 1) + "*" + Ef(n === 47 ? n : $e());
|
|
10912
10912
|
}
|
|
10913
10913
|
function B3(n) {
|
|
10914
10914
|
for (; !kA(ri()); )
|
|
10915
|
-
|
|
10915
|
+
$e();
|
|
10916
10916
|
return Vs(n, Je);
|
|
10917
10917
|
}
|
|
10918
10918
|
function D3(n) {
|
|
@@ -10920,11 +10920,11 @@ function D3(n) {
|
|
|
10920
10920
|
}
|
|
10921
10921
|
function Lr(n, e, i, t, r, s, o, a, A) {
|
|
10922
10922
|
for (var f = 0, d = 0, l = o, c = 0, u = 0, m = 0, p = 1, b = 1, k = 1, C = 0, w = "", y = r, g = s, v = t, x = w; b; )
|
|
10923
|
-
switch (m = C, C =
|
|
10923
|
+
switch (m = C, C = $e()) {
|
|
10924
10924
|
// (
|
|
10925
10925
|
case 40:
|
|
10926
10926
|
if (m != 108 && Ie(x, l - 1) == 58) {
|
|
10927
|
-
Qr(x +=
|
|
10927
|
+
Qr(x += oe(wa(C), "&", "&\f"), "&\f", Zh(f ? a[f - 1] : 0)) != -1 && (k = -1);
|
|
10928
10928
|
break;
|
|
10929
10929
|
}
|
|
10930
10930
|
// " ' [
|
|
@@ -10949,7 +10949,7 @@ function Lr(n, e, i, t, r, s, o, a, A) {
|
|
|
10949
10949
|
switch (ri()) {
|
|
10950
10950
|
case 42:
|
|
10951
10951
|
case 47:
|
|
10952
|
-
gt(N3(I3(
|
|
10952
|
+
gt(N3(I3($e(), Or()), e, i, A), A);
|
|
10953
10953
|
break;
|
|
10954
10954
|
default:
|
|
10955
10955
|
x += "/";
|
|
@@ -10969,7 +10969,7 @@ function Lr(n, e, i, t, r, s, o, a, A) {
|
|
|
10969
10969
|
b = 0;
|
|
10970
10970
|
// ;
|
|
10971
10971
|
case 59 + d:
|
|
10972
|
-
k == -1 && (x =
|
|
10972
|
+
k == -1 && (x = oe(x, /\f/g, "")), u > 0 && fn(x) - l && gt(u > 32 ? wl(x + ";", t, i, l - 1, A) : wl(oe(x, " ", "") + ";", t, i, l - 2, A), A);
|
|
10973
10973
|
break;
|
|
10974
10974
|
// @ ;
|
|
10975
10975
|
case 59:
|
|
@@ -11015,7 +11015,7 @@ function Lr(n, e, i, t, r, s, o, a, A) {
|
|
|
11015
11015
|
break;
|
|
11016
11016
|
// @
|
|
11017
11017
|
case 64:
|
|
11018
|
-
ri() === 45 && (x += wa(
|
|
11018
|
+
ri() === 45 && (x += wa($e())), c = ri(), d = l = fn(w = x += B3(Or())), C++;
|
|
11019
11019
|
break;
|
|
11020
11020
|
// -
|
|
11021
11021
|
case 45:
|
|
@@ -11027,7 +11027,7 @@ function Lr(n, e, i, t, r, s, o, a, A) {
|
|
|
11027
11027
|
function bl(n, e, i, t, r, s, o, a, A, f, d, l) {
|
|
11028
11028
|
for (var c = r - 1, u = r === 0 ? s : [""], m = em(u), p = 0, b = 0, k = 0; p < t; ++p)
|
|
11029
11029
|
for (var C = 0, w = Mi(n, c + 1, c = Zh(b = o[p])), y = n; C < m; ++C)
|
|
11030
|
-
(y = $h(b > 0 ? u[C] + " " + w :
|
|
11030
|
+
(y = $h(b > 0 ? u[C] + " " + w : oe(w, /&\f/g, u[C]))) && (A[k++] = y);
|
|
11031
11031
|
return zs(n, e, i, r === 0 ? Hs : a, A, f, d, l);
|
|
11032
11032
|
}
|
|
11033
11033
|
function N3(n, e, i, t) {
|
|
@@ -11086,13 +11086,13 @@ function im(n, e, i) {
|
|
|
11086
11086
|
switch (Ie(n, e + 11)) {
|
|
11087
11087
|
// vertical-l(r)
|
|
11088
11088
|
case 114:
|
|
11089
|
-
return he + n + we +
|
|
11089
|
+
return he + n + we + oe(n, /[svh]\w+-[tblr]{2}/, "tb") + n;
|
|
11090
11090
|
// vertical-r(l)
|
|
11091
11091
|
case 108:
|
|
11092
|
-
return he + n + we +
|
|
11092
|
+
return he + n + we + oe(n, /[svh]\w+-[tblr]{2}/, "tb-rl") + n;
|
|
11093
11093
|
// horizontal(-)tb
|
|
11094
11094
|
case 45:
|
|
11095
|
-
return he + n + we +
|
|
11095
|
+
return he + n + we + oe(n, /[svh]\w+-[tblr]{2}/, "lr") + n;
|
|
11096
11096
|
}
|
|
11097
11097
|
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
11098
11098
|
case 6828:
|
|
@@ -11104,35 +11104,35 @@ function im(n, e, i) {
|
|
|
11104
11104
|
return he + n + we + "flex-" + n + n;
|
|
11105
11105
|
// align-items
|
|
11106
11106
|
case 5187:
|
|
11107
|
-
return he + n +
|
|
11107
|
+
return he + n + oe(n, /(\w+).+(:[^]+)/, he + "box-$1$2" + we + "flex-$1$2") + n;
|
|
11108
11108
|
// align-self
|
|
11109
11109
|
case 5443:
|
|
11110
|
-
return he + n + we + "flex-item-" +
|
|
11110
|
+
return he + n + we + "flex-item-" + oe(n, /flex-|-self/g, "") + (yn(n, /flex-|baseline/) ? "" : we + "grid-row-" + oe(n, /flex-|-self/g, "")) + n;
|
|
11111
11111
|
// align-content
|
|
11112
11112
|
case 4675:
|
|
11113
|
-
return he + n + we + "flex-line-pack" +
|
|
11113
|
+
return he + n + we + "flex-line-pack" + oe(n, /align-content|flex-|-self/g, "") + n;
|
|
11114
11114
|
// flex-shrink
|
|
11115
11115
|
case 5548:
|
|
11116
|
-
return he + n + we +
|
|
11116
|
+
return he + n + we + oe(n, "shrink", "negative") + n;
|
|
11117
11117
|
// flex-basis
|
|
11118
11118
|
case 5292:
|
|
11119
|
-
return he + n + we +
|
|
11119
|
+
return he + n + we + oe(n, "basis", "preferred-size") + n;
|
|
11120
11120
|
// flex-grow
|
|
11121
11121
|
case 6060:
|
|
11122
|
-
return he + "box-" +
|
|
11122
|
+
return he + "box-" + oe(n, "-grow", "") + he + n + we + oe(n, "grow", "positive") + n;
|
|
11123
11123
|
// transition
|
|
11124
11124
|
case 4554:
|
|
11125
|
-
return he +
|
|
11125
|
+
return he + oe(n, /([^-])(transform)/g, "$1" + he + "$2") + n;
|
|
11126
11126
|
// cursor
|
|
11127
11127
|
case 6187:
|
|
11128
|
-
return
|
|
11128
|
+
return oe(oe(oe(n, /(zoom-|grab)/, he + "$1"), /(image-set)/, he + "$1"), n, "") + n;
|
|
11129
11129
|
// background, background-image
|
|
11130
11130
|
case 5495:
|
|
11131
11131
|
case 3959:
|
|
11132
|
-
return
|
|
11132
|
+
return oe(n, /(image-set\([^]*)/, he + "$1$`$1");
|
|
11133
11133
|
// justify-content
|
|
11134
11134
|
case 4968:
|
|
11135
|
-
return
|
|
11135
|
+
return oe(oe(n, /(.+:)(flex-)?(.*)/, he + "box-pack:$3" + we + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + he + n + n;
|
|
11136
11136
|
// justify-self
|
|
11137
11137
|
case 4200:
|
|
11138
11138
|
if (!yn(n, /flex-|baseline/)) return we + "grid-column-align" + Mi(n, e) + n;
|
|
@@ -11140,25 +11140,25 @@ function im(n, e, i) {
|
|
|
11140
11140
|
// grid-template-(columns|rows)
|
|
11141
11141
|
case 2592:
|
|
11142
11142
|
case 3360:
|
|
11143
|
-
return we +
|
|
11143
|
+
return we + oe(n, "template-", "") + n;
|
|
11144
11144
|
// grid-(row|column)-start
|
|
11145
11145
|
case 4384:
|
|
11146
11146
|
case 3616:
|
|
11147
11147
|
return i && i.some(function(t, r) {
|
|
11148
11148
|
return e = r, yn(t.props, /grid-\w+-end/);
|
|
11149
|
-
}) ? ~Qr(n + (i = i[e].value), "span", 0) ? n : we +
|
|
11149
|
+
}) ? ~Qr(n + (i = i[e].value), "span", 0) ? n : we + oe(n, "-start", "") + n + we + "grid-row-span:" + (~Qr(i, "span", 0) ? yn(i, /\d+/) : +yn(i, /\d+/) - +yn(n, /\d+/)) + ";" : we + oe(n, "-start", "") + n;
|
|
11150
11150
|
// grid-(row|column)-end
|
|
11151
11151
|
case 4896:
|
|
11152
11152
|
case 4128:
|
|
11153
11153
|
return i && i.some(function(t) {
|
|
11154
11154
|
return yn(t.props, /grid-\w+-start/);
|
|
11155
|
-
}) ? n : we +
|
|
11155
|
+
}) ? n : we + oe(oe(n, "-end", "-span"), "span ", "") + n;
|
|
11156
11156
|
// (margin|padding)-inline-(start|end)
|
|
11157
11157
|
case 4095:
|
|
11158
11158
|
case 3583:
|
|
11159
11159
|
case 4068:
|
|
11160
11160
|
case 2532:
|
|
11161
|
-
return
|
|
11161
|
+
return oe(n, /(.+)-inline(.+)/, he + "$1$2") + n;
|
|
11162
11162
|
// (min|max)?(width|height|inline-size|block-size)
|
|
11163
11163
|
case 8116:
|
|
11164
11164
|
case 7059:
|
|
@@ -11180,32 +11180,32 @@ function im(n, e, i) {
|
|
|
11180
11180
|
break;
|
|
11181
11181
|
// (f)ill-available, (f)it-content
|
|
11182
11182
|
case 102:
|
|
11183
|
-
return
|
|
11183
|
+
return oe(n, /(.+:)(.+)-([^]+)/, "$1" + he + "$2-$3$1" + yt + (Ie(n, e + 3) == 108 ? "$3" : "$2-$3")) + n;
|
|
11184
11184
|
// (s)tretch
|
|
11185
11185
|
case 115:
|
|
11186
|
-
return ~Qr(n, "stretch", 0) ? im(
|
|
11186
|
+
return ~Qr(n, "stretch", 0) ? im(oe(n, "stretch", "fill-available"), e, i) + n : n;
|
|
11187
11187
|
}
|
|
11188
11188
|
break;
|
|
11189
11189
|
// grid-(column|row)
|
|
11190
11190
|
case 5152:
|
|
11191
11191
|
case 5920:
|
|
11192
|
-
return
|
|
11192
|
+
return oe(n, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(t, r, s, o, a, A, f) {
|
|
11193
11193
|
return we + r + ":" + s + f + (o ? we + r + "-span:" + (a ? A : +A - +s) + f : "") + n;
|
|
11194
11194
|
});
|
|
11195
11195
|
// position: sticky
|
|
11196
11196
|
case 4949:
|
|
11197
11197
|
if (Ie(n, e + 6) === 121)
|
|
11198
|
-
return
|
|
11198
|
+
return oe(n, ":", ":" + he) + n;
|
|
11199
11199
|
break;
|
|
11200
11200
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
11201
11201
|
case 6444:
|
|
11202
11202
|
switch (Ie(n, Ie(n, 14) === 45 ? 18 : 11)) {
|
|
11203
11203
|
// (inline-)?fle(x)
|
|
11204
11204
|
case 120:
|
|
11205
|
-
return
|
|
11205
|
+
return oe(n, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + he + (Ie(n, 14) === 45 ? "inline-" : "") + "box$3$1" + he + "$2$3$1" + we + "$2box$3") + n;
|
|
11206
11206
|
// (inline-)?gri(d)
|
|
11207
11207
|
case 100:
|
|
11208
|
-
return
|
|
11208
|
+
return oe(n, ":", ":" + we) + n;
|
|
11209
11209
|
}
|
|
11210
11210
|
break;
|
|
11211
11211
|
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
@@ -11214,7 +11214,7 @@ function im(n, e, i) {
|
|
|
11214
11214
|
case 2135:
|
|
11215
11215
|
case 3927:
|
|
11216
11216
|
case 2391:
|
|
11217
|
-
return
|
|
11217
|
+
return oe(n, "scroll-", "scroll-snap-") + n;
|
|
11218
11218
|
}
|
|
11219
11219
|
return n;
|
|
11220
11220
|
}
|
|
@@ -11259,7 +11259,7 @@ function R3(n, e, i, t) {
|
|
|
11259
11259
|
n.return = im(n.value, n.length, i);
|
|
11260
11260
|
return;
|
|
11261
11261
|
case Kh:
|
|
11262
|
-
return As([Pn(n, { value:
|
|
11262
|
+
return As([Pn(n, { value: oe(n.value, "@", "@" + he) })], t);
|
|
11263
11263
|
case Hs:
|
|
11264
11264
|
if (n.length)
|
|
11265
11265
|
return b3(i = n.props, function(r) {
|
|
@@ -11267,11 +11267,11 @@ function R3(n, e, i, t) {
|
|
|
11267
11267
|
// :read-(only|write)
|
|
11268
11268
|
case ":read-only":
|
|
11269
11269
|
case ":read-write":
|
|
11270
|
-
wi(Pn(n, { props: [
|
|
11270
|
+
wi(Pn(n, { props: [oe(r, /:(read-\w+)/, ":" + yt + "$1")] })), wi(Pn(n, { props: [r] })), yA(n, { props: vl(i, t) });
|
|
11271
11271
|
break;
|
|
11272
11272
|
// :placeholder
|
|
11273
11273
|
case "::placeholder":
|
|
11274
|
-
wi(Pn(n, { props: [
|
|
11274
|
+
wi(Pn(n, { props: [oe(r, /:(plac\w+)/, ":" + he + "input-$1")] })), wi(Pn(n, { props: [oe(r, /:(plac\w+)/, ":" + yt + "$1")] })), wi(Pn(n, { props: [oe(r, /:(plac\w+)/, we + "input-$1")] })), wi(Pn(n, { props: [r] })), yA(n, { props: vl(i, t) });
|
|
11275
11275
|
break;
|
|
11276
11276
|
}
|
|
11277
11277
|
return "";
|
|
@@ -11793,19 +11793,19 @@ function gk(n, e, i) {
|
|
|
11793
11793
|
var k = new pk(i, c, t ? r.componentStyle : void 0);
|
|
11794
11794
|
function C(y, g) {
|
|
11795
11795
|
return function(v, x, I) {
|
|
11796
|
-
var D = v.attrs, E = v.componentStyle, B = v.defaultProps, M = v.foldedComponentIds, T = v.styledComponentId, L = v.target, W = Me.useContext(bm), _ = Nl(),
|
|
11796
|
+
var D = v.attrs, E = v.componentStyle, B = v.defaultProps, M = v.foldedComponentIds, T = v.styledComponentId, L = v.target, W = Me.useContext(bm), _ = Nl(), J = v.shouldForwardProp || _.shouldForwardProp;
|
|
11797
11797
|
process.env.NODE_ENV !== "production" && nd(T);
|
|
11798
|
-
var te = L3(x, W, B) || Pi, K = function(G, U,
|
|
11799
|
-
for (var
|
|
11800
|
-
var
|
|
11801
|
-
for (var H in
|
|
11798
|
+
var te = L3(x, W, B) || Pi, K = function(G, U, X) {
|
|
11799
|
+
for (var $, ie = je(je({}, U), { className: void 0, theme: X }), ae = 0; ae < G.length; ae += 1) {
|
|
11800
|
+
var ke = Qi($ = G[ae]) ? $(ie) : $;
|
|
11801
|
+
for (var H in ke) ie[H] = H === "className" ? ei(ie[H], ke[H]) : H === "style" ? je(je({}, ie[H]), ke[H]) : ke[H];
|
|
11802
11802
|
}
|
|
11803
|
-
return U.className && (
|
|
11803
|
+
return U.className && (ie.className = ei(ie.className, U.className)), ie;
|
|
11804
11804
|
}(D, x, te), Q = K.as || L, R = {};
|
|
11805
|
-
for (var P in K) K[P] === void 0 || P[0] === "$" || P === "as" || P === "theme" && K.theme === te || (P === "forwardedAs" ? R.as = K.forwardedAs :
|
|
11805
|
+
for (var P in K) K[P] === void 0 || P[0] === "$" || P === "as" || P === "theme" && K.theme === te || (P === "forwardedAs" ? R.as = K.forwardedAs : J && !J(P, Q) || (R[P] = K[P], J || process.env.NODE_ENV !== "development" || m3(P) || Tl.has(P) || !xA.has(Q) || (Tl.add(P), console.warn('styled-components: it looks like an unknown prop "'.concat(P, '" 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.)')))));
|
|
11806
11806
|
var F = function(G, U) {
|
|
11807
|
-
var
|
|
11808
|
-
return process.env.NODE_ENV !== "production" && nd(
|
|
11807
|
+
var X = Nl(), $ = G.generateAndInjectStyles(U, X.styleSheet, X.stylis);
|
|
11808
|
+
return process.env.NODE_ENV !== "production" && nd($), $;
|
|
11809
11809
|
}(E, K);
|
|
11810
11810
|
process.env.NODE_ENV !== "production" && v.warnTooManyClasses && v.warnTooManyClasses(F);
|
|
11811
11811
|
var O = ei(M, T);
|
|
@@ -11874,7 +11874,7 @@ var wm = function(n) {
|
|
|
11874
11874
|
xA.forEach(function(n) {
|
|
11875
11875
|
S[n] = wm(n);
|
|
11876
11876
|
});
|
|
11877
|
-
function
|
|
11877
|
+
function sn(n) {
|
|
11878
11878
|
for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
|
|
11879
11879
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
11880
11880
|
var t = IA(Li.apply(void 0, li([n], e, !1))), r = am(t);
|
|
@@ -12259,7 +12259,7 @@ const Qk = S.div`
|
|
|
12259
12259
|
align-items: center;
|
|
12260
12260
|
justify-content: center;
|
|
12261
12261
|
}
|
|
12262
|
-
`, Uk =
|
|
12262
|
+
`, Uk = sn`
|
|
12263
12263
|
0% { transform: rotate(0deg); }
|
|
12264
12264
|
100% { transform: rotate(360deg); }
|
|
12265
12265
|
`, mn = S.div`
|
|
@@ -12275,7 +12275,7 @@ const Qk = S.div`
|
|
|
12275
12275
|
height: ${({ size: n }) => n || 32}px;
|
|
12276
12276
|
animation: ${Uk} 2s linear infinite;
|
|
12277
12277
|
margin: auto;
|
|
12278
|
-
`, zk =
|
|
12278
|
+
`, zk = sn`
|
|
12279
12279
|
0% { opacity: 0.2; }
|
|
12280
12280
|
20% { opacity: 1; }
|
|
12281
12281
|
100% { opacity: 0.2; }
|
|
@@ -12310,11 +12310,11 @@ const Qk = S.div`
|
|
|
12310
12310
|
/* @__PURE__ */ h(xa, { children: "." }),
|
|
12311
12311
|
/* @__PURE__ */ h(xa, { children: "." })
|
|
12312
12312
|
] });
|
|
12313
|
-
}, Xk =
|
|
12313
|
+
}, Xk = sn`
|
|
12314
12314
|
0% { opacity: 0.2; }
|
|
12315
12315
|
20% { opacity: 1; }
|
|
12316
12316
|
100% { opacity: 0.2; }
|
|
12317
|
-
`, Ol =
|
|
12317
|
+
`, Ol = sn`
|
|
12318
12318
|
0% { transform: scale(1); opacity: 0.8; }
|
|
12319
12319
|
50% { transform: scale(1.05); opacity: 1; }
|
|
12320
12320
|
100% { transform: scale(1); opacity: 0.8; }
|
|
@@ -12577,7 +12577,7 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
12577
12577
|
}
|
|
12578
12578
|
)
|
|
12579
12579
|
] }, e.id);
|
|
12580
|
-
},
|
|
12580
|
+
}, tn = (n) => {
|
|
12581
12581
|
const e = de(
|
|
12582
12582
|
(d) => d.rooms.rooms[n && n]
|
|
12583
12583
|
), i = de((d) => d.rooms.rooms), t = de(
|
|
@@ -13518,10 +13518,10 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13518
13518
|
isReply: s,
|
|
13519
13519
|
activeMessage: o
|
|
13520
13520
|
}) => {
|
|
13521
|
-
const { composing: a, messages: A, composingList: f } =
|
|
13521
|
+
const { composing: a, messages: A, composingList: f } = tn(i).room, { user: d } = _e(), [l, c] = z(!1), [u, m] = z(0), [p, b] = z(null), k = ce(A.length), C = ce(null), w = ce({}), y = ce(!0), g = Ce(() => A.map((G) => ({
|
|
13522
13522
|
...G,
|
|
13523
13523
|
reply: A.filter(
|
|
13524
|
-
(
|
|
13524
|
+
(X) => !!X.mainMessage && JSON.parse(X.mainMessage).id === G.id
|
|
13525
13525
|
)
|
|
13526
13526
|
})), [A, A.length]), v = Ce(() => s ? g.filter(
|
|
13527
13527
|
(G) => G.roomJid === i && G.isReply && G.isReply === "true" && G.mainMessage && JSON.parse(G.mainMessage).id === o.id
|
|
@@ -13532,32 +13532,32 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13532
13532
|
[A.length, d.xmppUsername]
|
|
13533
13533
|
), I = ce(null), D = ce(null), E = ce(
|
|
13534
13534
|
v[v.length - 1]
|
|
13535
|
-
), B = ce(!1), M = ce(0), T = ce(null), L = ce(!0), W = ce(!1), _ = ce(!1),
|
|
13535
|
+
), B = ce(!1), M = ce(0), T = ce(null), L = ce(!0), W = ce(!1), _ = ce(!1), J = () => {
|
|
13536
13536
|
const G = I.current;
|
|
13537
13537
|
return G ? {
|
|
13538
13538
|
top: G.scrollTop,
|
|
13539
13539
|
height: G.scrollHeight
|
|
13540
13540
|
} : null;
|
|
13541
|
-
}, te =
|
|
13541
|
+
}, te = Z(() => {
|
|
13542
13542
|
const G = I.current;
|
|
13543
13543
|
if (!G) return Promise.resolve();
|
|
13544
13544
|
const U = G.getElementsByTagName("img");
|
|
13545
13545
|
if (U.length === 0) return Promise.resolve();
|
|
13546
|
-
const
|
|
13547
|
-
|
|
13546
|
+
const X = Array.from(U).map(($) => $.complete ? Promise.resolve() : new Promise((ie) => {
|
|
13547
|
+
$.onload = ie, $.onerror = ie;
|
|
13548
13548
|
}));
|
|
13549
|
-
return Promise.all(
|
|
13550
|
-
}, []), K =
|
|
13549
|
+
return Promise.all(X);
|
|
13550
|
+
}, []), K = Z(async () => {
|
|
13551
13551
|
const G = I.current;
|
|
13552
13552
|
if (G)
|
|
13553
13553
|
if (await te(), y.current)
|
|
13554
13554
|
v.findIndex(
|
|
13555
|
-
(
|
|
13555
|
+
(X) => X.id === "delimiter-new"
|
|
13556
13556
|
) !== -1 ? setTimeout(() => {
|
|
13557
|
-
const
|
|
13558
|
-
(
|
|
13557
|
+
const X = G.querySelectorAll("[data-message-id]"), $ = Array.from(X).find(
|
|
13558
|
+
(ie) => ie.getAttribute("data-message-id") === "delimiter-new"
|
|
13559
13559
|
);
|
|
13560
|
-
|
|
13560
|
+
$ ? $.scrollIntoView({
|
|
13561
13561
|
behavior: "auto",
|
|
13562
13562
|
block: "center"
|
|
13563
13563
|
}) : G.scrollTop = G.scrollHeight;
|
|
@@ -13579,17 +13579,17 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13579
13579
|
}, [v.length]), Ae(() => {
|
|
13580
13580
|
K();
|
|
13581
13581
|
}, [i]);
|
|
13582
|
-
const Q =
|
|
13583
|
-
const G =
|
|
13582
|
+
const Q = Z(() => {
|
|
13583
|
+
const G = J();
|
|
13584
13584
|
if (!G || G.top >= 150 || B.current) return;
|
|
13585
|
-
T.current =
|
|
13586
|
-
const [U,
|
|
13587
|
-
|
|
13585
|
+
T.current = J();
|
|
13586
|
+
const [U, X] = v, $ = U?.id === "delimiter-new" ? X?.id : U?.id;
|
|
13587
|
+
$ && (B.current = !0, e(U.roomJid, 30, Number($)).finally(
|
|
13588
13588
|
() => {
|
|
13589
13589
|
B.current = !1, E.current = v[v.length - 1];
|
|
13590
13590
|
}
|
|
13591
13591
|
));
|
|
13592
|
-
}, [e, v.length]), R =
|
|
13592
|
+
}, [e, v.length]), R = Z(() => {
|
|
13593
13593
|
const G = I.current;
|
|
13594
13594
|
G && (G.scrollTo({
|
|
13595
13595
|
top: G.scrollHeight,
|
|
@@ -13598,8 +13598,8 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13598
13598
|
}, []), P = () => {
|
|
13599
13599
|
const G = I.current;
|
|
13600
13600
|
if (G) {
|
|
13601
|
-
const U = G.scrollTop,
|
|
13602
|
-
L.current =
|
|
13601
|
+
const U = G.scrollTop, X = G.scrollHeight, $ = G.clientHeight, ie = X - $ - U, ae = ie <= 150, ke = ie <= 5;
|
|
13602
|
+
L.current = ke, W.current = !ae, ie > 150 ? c(!0) : ke && (R(), c(!1), m(0)), k.current = A.length, Q();
|
|
13603
13603
|
} else
|
|
13604
13604
|
M.current = null;
|
|
13605
13605
|
}, F = () => {
|
|
@@ -13627,12 +13627,9 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13627
13627
|
G && G.id !== C.current && U && (C.current = G.id, R());
|
|
13628
13628
|
}
|
|
13629
13629
|
}, [A, x]), Ae(() => {
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
f?.length === 0 && _.current, _.current = f?.length > 0;
|
|
13634
|
-
const Z = G.scrollTop, ne = G.scrollHeight, oe = G.clientHeight;
|
|
13635
|
-
(ne - oe - Z <= 150 || Z === 0 && (U || J)) && (U || J) && te().then(() => {
|
|
13630
|
+
if (!I.current) return;
|
|
13631
|
+
const U = v.length > k.current, X = f?.length > 0 && !_.current;
|
|
13632
|
+
f?.length === 0 && _.current, _.current = f?.length > 0, W.current || (U || X) && te().then(() => {
|
|
13636
13633
|
R(), c(!1), m(0);
|
|
13637
13634
|
});
|
|
13638
13635
|
}, [
|
|
@@ -13669,7 +13666,7 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13669
13666
|
)
|
|
13670
13667
|
] }),
|
|
13671
13668
|
v.map((G) => {
|
|
13672
|
-
const U = new Date(G.date).toDateString(),
|
|
13669
|
+
const U = new Date(G.date).toDateString(), X = U !== O;
|
|
13673
13670
|
return O = U, G.id === "delimiter-new" ? /* @__PURE__ */ h(
|
|
13674
13671
|
"div",
|
|
13675
13672
|
{
|
|
@@ -13687,7 +13684,7 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13687
13684
|
config: t,
|
|
13688
13685
|
xmppUsername: d.xmppUsername,
|
|
13689
13686
|
isReply: s,
|
|
13690
|
-
showDateLabel:
|
|
13687
|
+
showDateLabel: X,
|
|
13691
13688
|
"data-message-id": G.id
|
|
13692
13689
|
},
|
|
13693
13690
|
G.id
|
|
@@ -13900,7 +13897,7 @@ const R4 = S.div`
|
|
|
13900
13897
|
!i && e
|
|
13901
13898
|
]
|
|
13902
13899
|
}
|
|
13903
|
-
), j4 =
|
|
13900
|
+
), j4 = sn`
|
|
13904
13901
|
0% {
|
|
13905
13902
|
transform: scale(1);
|
|
13906
13903
|
opacity: 1;
|
|
@@ -13942,15 +13939,15 @@ const R4 = S.div`
|
|
|
13942
13939
|
const [t, r] = z(null), [s, o] = z(0), a = ce(null), A = ce([]), f = ce(null), d = (k) => {
|
|
13943
13940
|
const C = Math.floor(k / 60), w = k % 60;
|
|
13944
13941
|
return `${C.toString().padStart(2, "0")}:${w.toString().padStart(2, "0")}`;
|
|
13945
|
-
}, l =
|
|
13942
|
+
}, l = Z(() => {
|
|
13946
13943
|
f.current = setInterval(() => {
|
|
13947
13944
|
o((k) => k + 1);
|
|
13948
13945
|
}, 1e3);
|
|
13949
|
-
}, []), c =
|
|
13946
|
+
}, []), c = Z(() => {
|
|
13950
13947
|
f.current && clearInterval(f.current);
|
|
13951
13948
|
}, []), u = () => {
|
|
13952
13949
|
r(null), o(0), n(!1), A.current = [], a.current && a.current.stream.getTracks().forEach((k) => k.stop());
|
|
13953
|
-
}, m =
|
|
13950
|
+
}, m = Z(async () => {
|
|
13954
13951
|
const k = await navigator.mediaDevices.getUserMedia({ audio: !0 }), C = new MediaRecorder(k);
|
|
13955
13952
|
a.current = C, C.ondataavailable = (w) => {
|
|
13956
13953
|
A.current.push(w.data);
|
|
@@ -14369,16 +14366,16 @@ const Rf = (n) => {
|
|
|
14369
14366
|
showPreview: l,
|
|
14370
14367
|
previewParser: c
|
|
14371
14368
|
}) => {
|
|
14372
|
-
const [u, m] = z(""), [p, b] = z(!1), [k, C] = z(40), [w, y] = z([]), g = ce(null), v = ce(null), x =
|
|
14369
|
+
const [u, m] = z(""), [p, b] = z(!1), [k, C] = z(40), [w, y] = z([]), g = ce(null), v = ce(null), x = Z(() => {
|
|
14373
14370
|
g.current && g.current.click();
|
|
14374
|
-
}, []), I =
|
|
14371
|
+
}, []), I = Z(
|
|
14375
14372
|
(Q) => {
|
|
14376
14373
|
const R = Q.target.files;
|
|
14377
14374
|
if (R) {
|
|
14378
14375
|
const P = Array.from(R);
|
|
14379
14376
|
y((F) => {
|
|
14380
|
-
const O = new Set(F.map((
|
|
14381
|
-
(
|
|
14377
|
+
const O = new Set(F.map((X) => X.name)), G = P.filter(
|
|
14378
|
+
(X) => !O.has(X.name)
|
|
14382
14379
|
);
|
|
14383
14380
|
let U = [...F, ...G];
|
|
14384
14381
|
return U.length > 5 && (U = U?.slice(0, 5)), U;
|
|
@@ -14391,22 +14388,22 @@ const Rf = (n) => {
|
|
|
14391
14388
|
i?.();
|
|
14392
14389
|
}, E = () => {
|
|
14393
14390
|
t?.();
|
|
14394
|
-
}, B =
|
|
14391
|
+
}, B = Z((Q) => {
|
|
14395
14392
|
y((R) => R.filter((P) => P !== Q));
|
|
14396
|
-
}, []), M =
|
|
14393
|
+
}, []), M = Z(
|
|
14397
14394
|
(Q) => {
|
|
14398
14395
|
if (!f) return 40;
|
|
14399
14396
|
const R = (Q.match(/\n/g) || []).length, P = 40, F = 8, O = 80, G = P + R * F;
|
|
14400
14397
|
return Math.min(Math.max(G, P), O);
|
|
14401
14398
|
},
|
|
14402
14399
|
[f]
|
|
14403
|
-
), T =
|
|
14400
|
+
), T = Z(
|
|
14404
14401
|
(Q) => {
|
|
14405
14402
|
const R = M(Q);
|
|
14406
14403
|
C(R);
|
|
14407
14404
|
},
|
|
14408
14405
|
[M]
|
|
14409
|
-
), L =
|
|
14406
|
+
), L = Z(
|
|
14410
14407
|
(Q) => {
|
|
14411
14408
|
const R = Q.target.value;
|
|
14412
14409
|
m(R), T(R);
|
|
@@ -14416,7 +14413,7 @@ const Rf = (n) => {
|
|
|
14416
14413
|
Ae(() => {
|
|
14417
14414
|
m(s), s && T(s);
|
|
14418
14415
|
}, [s, T]);
|
|
14419
|
-
const W =
|
|
14416
|
+
const W = Z(
|
|
14420
14417
|
(Q) => {
|
|
14421
14418
|
if (w.length > 0)
|
|
14422
14419
|
e(w[0], "media"), b(!1);
|
|
@@ -14429,7 +14426,7 @@ const Rf = (n) => {
|
|
|
14429
14426
|
m(""), y([]), C(40);
|
|
14430
14427
|
},
|
|
14431
14428
|
[w, u, n, e, A]
|
|
14432
|
-
), _ =
|
|
14429
|
+
), _ = Z(() => {
|
|
14433
14430
|
const Q = r.secondarySendButton.messageEdit + u, R = A ? A(Q) : Q;
|
|
14434
14431
|
n(R), m(""), y([]), C(40);
|
|
14435
14432
|
}, [
|
|
@@ -14439,7 +14436,7 @@ const Rf = (n) => {
|
|
|
14439
14436
|
e,
|
|
14440
14437
|
r?.secondarySendButton?.messageEdit,
|
|
14441
14438
|
A
|
|
14442
|
-
]),
|
|
14439
|
+
]), J = Z(
|
|
14443
14440
|
(Q) => {
|
|
14444
14441
|
if (!(Q.key !== "Enter" || !(w.length > 0 || u))) {
|
|
14445
14442
|
if (f) {
|
|
@@ -14457,7 +14454,7 @@ const Rf = (n) => {
|
|
|
14457
14454
|
u,
|
|
14458
14455
|
f
|
|
14459
14456
|
]
|
|
14460
|
-
), te =
|
|
14457
|
+
), te = Z((Q) => {
|
|
14461
14458
|
const R = URL.createObjectURL(Q), P = Q.type.split("/")[0];
|
|
14462
14459
|
return P === "image" ? /* @__PURE__ */ h(O4, { src: R, alt: Q.name }) : P === "video" ? /* @__PURE__ */ h(L4, { src: R, controls: !0 }) : /* @__PURE__ */ h(Zs, { alt: Q.name });
|
|
14463
14460
|
}, []), K = Ce(() => w.map(
|
|
@@ -14498,7 +14495,7 @@ const Rf = (n) => {
|
|
|
14498
14495
|
placeholder: "Type message",
|
|
14499
14496
|
value: u,
|
|
14500
14497
|
onChange: L,
|
|
14501
|
-
onKeyDown:
|
|
14498
|
+
onKeyDown: J,
|
|
14502
14499
|
onFocus: D,
|
|
14503
14500
|
onBlur: E,
|
|
14504
14501
|
disabled: o || a,
|
|
@@ -14511,7 +14508,7 @@ const Rf = (n) => {
|
|
|
14511
14508
|
placeholder: "Type message",
|
|
14512
14509
|
value: u,
|
|
14513
14510
|
onChange: L,
|
|
14514
|
-
onKeyDown:
|
|
14511
|
+
onKeyDown: J,
|
|
14515
14512
|
onFocus: D,
|
|
14516
14513
|
onBlur: E,
|
|
14517
14514
|
disabled: o || a,
|
|
@@ -14719,7 +14716,7 @@ const Rf = (n) => {
|
|
|
14719
14716
|
height: 1px;
|
|
14720
14717
|
width: 100%;
|
|
14721
14718
|
background-color: #0052cd0d;
|
|
14722
|
-
`, J4 =
|
|
14719
|
+
`, J4 = sn`
|
|
14723
14720
|
from {
|
|
14724
14721
|
opacity: 0;
|
|
14725
14722
|
transform: translateY(-10px);
|
|
@@ -14803,7 +14800,7 @@ const Rf = (n) => {
|
|
|
14803
14800
|
font-size: 14px;
|
|
14804
14801
|
margin: 0;
|
|
14805
14802
|
font-weight: 400;
|
|
14806
|
-
`,
|
|
14803
|
+
`, en = S.div`
|
|
14807
14804
|
display: flex;
|
|
14808
14805
|
gap: 32px;
|
|
14809
14806
|
width: 100%;
|
|
@@ -14817,7 +14814,7 @@ const Rf = (n) => {
|
|
|
14817
14814
|
align-items: center;
|
|
14818
14815
|
box-sizing: border-box;
|
|
14819
14816
|
overflow-y: auto;
|
|
14820
|
-
`, n6 = S(
|
|
14817
|
+
`, n6 = S(en)`
|
|
14821
14818
|
position: sticky;
|
|
14822
14819
|
top: 0;
|
|
14823
14820
|
width: 100%;
|
|
@@ -14835,7 +14832,7 @@ const Rf = (n) => {
|
|
|
14835
14832
|
display: flex;
|
|
14836
14833
|
align-items: center;
|
|
14837
14834
|
gap: 16px;
|
|
14838
|
-
`, Sn = S(
|
|
14835
|
+
`, Sn = S(en)`
|
|
14839
14836
|
width: 52.5%;
|
|
14840
14837
|
padding: 16px;
|
|
14841
14838
|
flex-direction: column;
|
|
@@ -16716,7 +16713,7 @@ function Yr(n, ...e) {
|
|
|
16716
16713
|
function pn(n, ...e) {
|
|
16717
16714
|
throw jf(n, ...e);
|
|
16718
16715
|
}
|
|
16719
|
-
function
|
|
16716
|
+
function nn(n, ...e) {
|
|
16720
16717
|
return jf(n, ...e);
|
|
16721
16718
|
}
|
|
16722
16719
|
function Ff(n, e, i) {
|
|
@@ -16744,7 +16741,7 @@ function jf(n, ...e) {
|
|
|
16744
16741
|
}
|
|
16745
16742
|
return $m.create(n, ...e);
|
|
16746
16743
|
}
|
|
16747
|
-
function
|
|
16744
|
+
function ne(n, e, ...i) {
|
|
16748
16745
|
if (!n)
|
|
16749
16746
|
throw jf(e, ...i);
|
|
16750
16747
|
}
|
|
@@ -17106,7 +17103,7 @@ class iC {
|
|
|
17106
17103
|
}
|
|
17107
17104
|
constructor(e) {
|
|
17108
17105
|
this.auth = e, this.timer = null, this.promise = new Promise((i, t) => {
|
|
17109
|
-
this.timer = setTimeout(() => t(
|
|
17106
|
+
this.timer = setTimeout(() => t(nn(
|
|
17110
17107
|
this.auth,
|
|
17111
17108
|
"network-request-failed"
|
|
17112
17109
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -17119,7 +17116,7 @@ function dr(n, e, i) {
|
|
|
17119
17116
|
appName: n.name
|
|
17120
17117
|
};
|
|
17121
17118
|
i.email && (t.email = i.email), i.phoneNumber && (t.phoneNumber = i.phoneNumber);
|
|
17122
|
-
const r =
|
|
17119
|
+
const r = nn(n, e, t);
|
|
17123
17120
|
return r.customData._tokenResponse = i, r;
|
|
17124
17121
|
}
|
|
17125
17122
|
/**
|
|
@@ -17171,7 +17168,7 @@ function Ct(n) {
|
|
|
17171
17168
|
}
|
|
17172
17169
|
async function rC(n, e = !1) {
|
|
17173
17170
|
const i = Zi(n), t = await i.getIdToken(e), r = Yf(t);
|
|
17174
|
-
|
|
17171
|
+
ne(
|
|
17175
17172
|
r && r.exp && r.auth_time && r.iat,
|
|
17176
17173
|
i.auth,
|
|
17177
17174
|
"internal-error"
|
|
@@ -17204,15 +17201,15 @@ function Yf(n) {
|
|
|
17204
17201
|
}
|
|
17205
17202
|
function Kl(n) {
|
|
17206
17203
|
const e = Yf(n);
|
|
17207
|
-
return
|
|
17204
|
+
return ne(
|
|
17208
17205
|
e,
|
|
17209
17206
|
"internal-error"
|
|
17210
17207
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
17211
|
-
),
|
|
17208
|
+
), ne(
|
|
17212
17209
|
typeof e.exp < "u",
|
|
17213
17210
|
"internal-error"
|
|
17214
17211
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
17215
|
-
),
|
|
17212
|
+
), ne(
|
|
17216
17213
|
typeof e.iat < "u",
|
|
17217
17214
|
"internal-error"
|
|
17218
17215
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -17360,7 +17357,7 @@ class WA {
|
|
|
17360
17357
|
async function ps(n) {
|
|
17361
17358
|
var e;
|
|
17362
17359
|
const i = n.auth, t = await n.getIdToken(), r = await Mt(n, ms(i, { idToken: t }));
|
|
17363
|
-
|
|
17360
|
+
ne(
|
|
17364
17361
|
r?.users.length,
|
|
17365
17362
|
i,
|
|
17366
17363
|
"internal-error"
|
|
@@ -17468,15 +17465,15 @@ class Ii {
|
|
|
17468
17465
|
return !this.expirationTime || Date.now() > this.expirationTime - 3e4;
|
|
17469
17466
|
}
|
|
17470
17467
|
updateFromServerResponse(e) {
|
|
17471
|
-
|
|
17468
|
+
ne(
|
|
17472
17469
|
e.idToken,
|
|
17473
17470
|
"internal-error"
|
|
17474
17471
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
17475
|
-
),
|
|
17472
|
+
), ne(
|
|
17476
17473
|
typeof e.idToken < "u",
|
|
17477
17474
|
"internal-error"
|
|
17478
17475
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
17479
|
-
),
|
|
17476
|
+
), ne(
|
|
17480
17477
|
typeof e.refreshToken < "u",
|
|
17481
17478
|
"internal-error"
|
|
17482
17479
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -17485,7 +17482,7 @@ class Ii {
|
|
|
17485
17482
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, i);
|
|
17486
17483
|
}
|
|
17487
17484
|
updateFromIdToken(e) {
|
|
17488
|
-
|
|
17485
|
+
ne(
|
|
17489
17486
|
e.length !== 0,
|
|
17490
17487
|
"internal-error"
|
|
17491
17488
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -17494,7 +17491,7 @@ class Ii {
|
|
|
17494
17491
|
this.updateTokensAndExpiration(e, null, i);
|
|
17495
17492
|
}
|
|
17496
17493
|
async getToken(e, i = !1) {
|
|
17497
|
-
return !i && this.accessToken && !this.isExpired ? this.accessToken : (
|
|
17494
|
+
return !i && this.accessToken && !this.isExpired ? this.accessToken : (ne(
|
|
17498
17495
|
this.refreshToken,
|
|
17499
17496
|
e,
|
|
17500
17497
|
"user-token-expired"
|
|
@@ -17513,11 +17510,11 @@ class Ii {
|
|
|
17513
17510
|
}
|
|
17514
17511
|
static fromJSON(e, i) {
|
|
17515
17512
|
const { refreshToken: t, accessToken: r, expirationTime: s } = i, o = new Ii();
|
|
17516
|
-
return t && (
|
|
17513
|
+
return t && (ne(typeof t == "string", "internal-error", {
|
|
17517
17514
|
appName: e
|
|
17518
|
-
}), o.refreshToken = t), r && (
|
|
17515
|
+
}), o.refreshToken = t), r && (ne(typeof r == "string", "internal-error", {
|
|
17519
17516
|
appName: e
|
|
17520
|
-
}), o.accessToken = r), s && (
|
|
17517
|
+
}), o.accessToken = r), s && (ne(typeof s == "number", "internal-error", {
|
|
17521
17518
|
appName: e
|
|
17522
17519
|
}), o.expirationTime = s), o;
|
|
17523
17520
|
}
|
|
@@ -17555,16 +17552,16 @@ class Ii {
|
|
|
17555
17552
|
* limitations under the License.
|
|
17556
17553
|
*/
|
|
17557
17554
|
function Mn(n, e) {
|
|
17558
|
-
|
|
17555
|
+
ne(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
|
17559
17556
|
}
|
|
17560
|
-
class
|
|
17557
|
+
class Ke {
|
|
17561
17558
|
constructor(e) {
|
|
17562
17559
|
var { uid: i, auth: t, stsTokenManager: r } = e, s = Lf(e, ["uid", "auth", "stsTokenManager"]);
|
|
17563
17560
|
this.providerId = "firebase", this.proactiveRefresh = new oC(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 WA(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
17564
17561
|
}
|
|
17565
17562
|
async getIdToken(e) {
|
|
17566
17563
|
const i = await Mt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
17567
|
-
return
|
|
17564
|
+
return ne(
|
|
17568
17565
|
i,
|
|
17569
17566
|
this.auth,
|
|
17570
17567
|
"internal-error"
|
|
@@ -17578,7 +17575,7 @@ class Ze {
|
|
|
17578
17575
|
return aC(this);
|
|
17579
17576
|
}
|
|
17580
17577
|
_assign(e) {
|
|
17581
|
-
this !== e && (
|
|
17578
|
+
this !== e && (ne(
|
|
17582
17579
|
this.uid === e.uid,
|
|
17583
17580
|
this.auth,
|
|
17584
17581
|
"internal-error"
|
|
@@ -17586,11 +17583,11 @@ class Ze {
|
|
|
17586
17583
|
), this.displayName = e.displayName, this.photoURL = e.photoURL, this.email = e.email, this.emailVerified = e.emailVerified, this.phoneNumber = e.phoneNumber, this.isAnonymous = e.isAnonymous, this.tenantId = e.tenantId, this.providerData = e.providerData.map((i) => Object.assign({}, i)), this.metadata._copy(e.metadata), this.stsTokenManager._assign(e.stsTokenManager));
|
|
17587
17584
|
}
|
|
17588
17585
|
_clone(e) {
|
|
17589
|
-
const i = new
|
|
17586
|
+
const i = new Ke(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
|
|
17590
17587
|
return i.metadata._copy(this.metadata), i;
|
|
17591
17588
|
}
|
|
17592
17589
|
_onReload(e) {
|
|
17593
|
-
|
|
17590
|
+
ne(
|
|
17594
17591
|
!this.reloadListener,
|
|
17595
17592
|
this.auth,
|
|
17596
17593
|
"internal-error"
|
|
@@ -17643,30 +17640,30 @@ class Ze {
|
|
|
17643
17640
|
static _fromJSON(e, i) {
|
|
17644
17641
|
var t, r, s, o, a, A, f, d;
|
|
17645
17642
|
const l = (t = i.displayName) !== null && t !== void 0 ? t : void 0, c = (r = i.email) !== null && r !== void 0 ? r : void 0, u = (s = i.phoneNumber) !== null && s !== void 0 ? s : void 0, m = (o = i.photoURL) !== null && o !== void 0 ? o : void 0, p = (a = i.tenantId) !== null && a !== void 0 ? a : void 0, b = (A = i._redirectEventId) !== null && A !== void 0 ? A : void 0, k = (f = i.createdAt) !== null && f !== void 0 ? f : void 0, C = (d = i.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: w, emailVerified: y, isAnonymous: g, providerData: v, stsTokenManager: x } = i;
|
|
17646
|
-
|
|
17643
|
+
ne(
|
|
17647
17644
|
w && x,
|
|
17648
17645
|
e,
|
|
17649
17646
|
"internal-error"
|
|
17650
17647
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
17651
17648
|
);
|
|
17652
17649
|
const I = Ii.fromJSON(this.name, x);
|
|
17653
|
-
|
|
17650
|
+
ne(
|
|
17654
17651
|
typeof w == "string",
|
|
17655
17652
|
e,
|
|
17656
17653
|
"internal-error"
|
|
17657
17654
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
17658
|
-
), Mn(l, e.name), Mn(c, e.name),
|
|
17655
|
+
), Mn(l, e.name), Mn(c, e.name), ne(
|
|
17659
17656
|
typeof y == "boolean",
|
|
17660
17657
|
e,
|
|
17661
17658
|
"internal-error"
|
|
17662
17659
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
17663
|
-
),
|
|
17660
|
+
), ne(
|
|
17664
17661
|
typeof g == "boolean",
|
|
17665
17662
|
e,
|
|
17666
17663
|
"internal-error"
|
|
17667
17664
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
17668
17665
|
), Mn(u, e.name), Mn(m, e.name), Mn(p, e.name), Mn(b, e.name), Mn(k, e.name), Mn(C, e.name);
|
|
17669
|
-
const D = new
|
|
17666
|
+
const D = new Ke({
|
|
17670
17667
|
uid: w,
|
|
17671
17668
|
auth: e,
|
|
17672
17669
|
email: c,
|
|
@@ -17690,7 +17687,7 @@ class Ze {
|
|
|
17690
17687
|
static async _fromIdTokenResponse(e, i, t = !1) {
|
|
17691
17688
|
const r = new Ii();
|
|
17692
17689
|
r.updateFromServerResponse(i);
|
|
17693
|
-
const s = new
|
|
17690
|
+
const s = new Ke({
|
|
17694
17691
|
uid: i.localId,
|
|
17695
17692
|
auth: e,
|
|
17696
17693
|
stsTokenManager: r,
|
|
@@ -17705,14 +17702,14 @@ class Ze {
|
|
|
17705
17702
|
*/
|
|
17706
17703
|
static async _fromGetAccountInfoResponse(e, i, t) {
|
|
17707
17704
|
const r = i.users[0];
|
|
17708
|
-
|
|
17705
|
+
ne(
|
|
17709
17706
|
r.localId !== void 0,
|
|
17710
17707
|
"internal-error"
|
|
17711
17708
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
17712
17709
|
);
|
|
17713
17710
|
const s = r.providerUserInfo !== void 0 ? tp(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !s?.length, a = new Ii();
|
|
17714
17711
|
a.updateFromIdToken(t);
|
|
17715
|
-
const A = new
|
|
17712
|
+
const A = new Ke({
|
|
17716
17713
|
uid: r.localId,
|
|
17717
17714
|
auth: e,
|
|
17718
17715
|
stsTokenManager: a,
|
|
@@ -17829,9 +17826,9 @@ class Bi {
|
|
|
17829
17826
|
if (typeof e == "string") {
|
|
17830
17827
|
const i = await ms(this.auth, { idToken: e }).catch(() => {
|
|
17831
17828
|
});
|
|
17832
|
-
return i ?
|
|
17829
|
+
return i ? Ke._fromGetAccountInfoResponse(this.auth, i, e) : null;
|
|
17833
17830
|
}
|
|
17834
|
-
return
|
|
17831
|
+
return Ke._fromJSON(this.auth, e);
|
|
17835
17832
|
}
|
|
17836
17833
|
removeCurrentUser() {
|
|
17837
17834
|
return this.persistence._remove(this.fullUserKey);
|
|
@@ -17871,9 +17868,9 @@ class Bi {
|
|
|
17871
17868
|
});
|
|
17872
17869
|
if (!c)
|
|
17873
17870
|
break;
|
|
17874
|
-
l = await
|
|
17871
|
+
l = await Ke._fromGetAccountInfoResponse(e, c, d);
|
|
17875
17872
|
} else
|
|
17876
|
-
l =
|
|
17873
|
+
l = Ke._fromJSON(e, d);
|
|
17877
17874
|
f !== s && (a = l), s = f;
|
|
17878
17875
|
break;
|
|
17879
17876
|
}
|
|
@@ -18218,7 +18215,7 @@ class gC {
|
|
|
18218
18215
|
}
|
|
18219
18216
|
async initializeCurrentUserFromIdToken(e) {
|
|
18220
18217
|
try {
|
|
18221
|
-
const i = await ms(this, { idToken: e }), t = await
|
|
18218
|
+
const i = await ms(this, { idToken: e }), t = await Ke._fromGetAccountInfoResponse(this, i, e);
|
|
18222
18219
|
await this.directlySetCurrentUser(t);
|
|
18223
18220
|
} catch (i) {
|
|
18224
18221
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", i), await this.directlySetCurrentUser(null);
|
|
@@ -18250,7 +18247,7 @@ class gC {
|
|
|
18250
18247
|
}
|
|
18251
18248
|
return r ? this.reloadAndSetCurrentUserOrClear(r) : this.directlySetCurrentUser(null);
|
|
18252
18249
|
}
|
|
18253
|
-
return
|
|
18250
|
+
return ne(
|
|
18254
18251
|
this._popupRedirectResolver,
|
|
18255
18252
|
this,
|
|
18256
18253
|
"argument-error"
|
|
@@ -18285,7 +18282,7 @@ class gC {
|
|
|
18285
18282
|
if (dn(this.app))
|
|
18286
18283
|
return Promise.reject(ai(this));
|
|
18287
18284
|
const i = e ? Zi(e) : null;
|
|
18288
|
-
return i &&
|
|
18285
|
+
return i && ne(
|
|
18289
18286
|
i.auth.config.apiKey === this.config.apiKey,
|
|
18290
18287
|
this,
|
|
18291
18288
|
"invalid-user-token"
|
|
@@ -18294,7 +18291,7 @@ class gC {
|
|
|
18294
18291
|
}
|
|
18295
18292
|
async _updateCurrentUser(e, i = !1) {
|
|
18296
18293
|
if (!this._deleted)
|
|
18297
|
-
return e &&
|
|
18294
|
+
return e && ne(
|
|
18298
18295
|
this.tenantId === e.tenantId,
|
|
18299
18296
|
this,
|
|
18300
18297
|
"tenant-id-mismatch"
|
|
@@ -18389,7 +18386,7 @@ class gC {
|
|
|
18389
18386
|
async getOrInitRedirectPersistenceManager(e) {
|
|
18390
18387
|
if (!this.redirectPersistenceManager) {
|
|
18391
18388
|
const i = e && En(e) || this._popupRedirectResolver;
|
|
18392
|
-
|
|
18389
|
+
ne(
|
|
18393
18390
|
i,
|
|
18394
18391
|
this,
|
|
18395
18392
|
"argument-error"
|
|
@@ -18444,7 +18441,7 @@ class gC {
|
|
|
18444
18441
|
const s = typeof i == "function" ? i : i.next.bind(i);
|
|
18445
18442
|
let o = !1;
|
|
18446
18443
|
const a = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
|
18447
|
-
if (
|
|
18444
|
+
if (ne(
|
|
18448
18445
|
a,
|
|
18449
18446
|
this,
|
|
18450
18447
|
"internal-error"
|
|
@@ -18475,7 +18472,7 @@ class gC {
|
|
|
18475
18472
|
return this.operations = this.operations.then(e, e), this.operations;
|
|
18476
18473
|
}
|
|
18477
18474
|
get assertedPersistence() {
|
|
18478
|
-
return
|
|
18475
|
+
return ne(
|
|
18479
18476
|
this.persistenceManager,
|
|
18480
18477
|
this,
|
|
18481
18478
|
"internal-error"
|
|
@@ -18526,7 +18523,7 @@ class nu {
|
|
|
18526
18523
|
this.auth = e, this.observer = null, this.addObserver = P6((i) => this.observer = i);
|
|
18527
18524
|
}
|
|
18528
18525
|
get next() {
|
|
18529
|
-
return
|
|
18526
|
+
return ne(
|
|
18530
18527
|
this.observer,
|
|
18531
18528
|
this.auth,
|
|
18532
18529
|
"internal-error"
|
|
@@ -18606,7 +18603,7 @@ function CC(n, e) {
|
|
|
18606
18603
|
}
|
|
18607
18604
|
function xC(n, e, i) {
|
|
18608
18605
|
const t = eo(n);
|
|
18609
|
-
|
|
18606
|
+
ne(
|
|
18610
18607
|
/^https?:\/\//.test(e),
|
|
18611
18608
|
t,
|
|
18612
18609
|
"invalid-emulator-scheme"
|
|
@@ -18619,12 +18616,12 @@ function xC(n, e, i) {
|
|
|
18619
18616
|
options: Object.freeze({ disableWarnings: r })
|
|
18620
18617
|
});
|
|
18621
18618
|
if (!t._canInitEmulator) {
|
|
18622
|
-
|
|
18619
|
+
ne(
|
|
18623
18620
|
t.config.emulator && t.emulatorConfig,
|
|
18624
18621
|
t,
|
|
18625
18622
|
"emulator-config-failed"
|
|
18626
18623
|
/* AuthErrorCode.EMULATOR_CONFIG_FAILED */
|
|
18627
|
-
),
|
|
18624
|
+
), ne(
|
|
18628
18625
|
Wi(f, t.config.emulator) && Wi(d, t.emulatorConfig),
|
|
18629
18626
|
t,
|
|
18630
18627
|
"emulator-config-failed"
|
|
@@ -19200,7 +19197,7 @@ class Yi {
|
|
|
19200
19197
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
|
19201
19198
|
}
|
|
19202
19199
|
static async _fromIdTokenResponse(e, i, t, r = !1) {
|
|
19203
|
-
const s = await
|
|
19200
|
+
const s = await Ke._fromIdTokenResponse(e, t, r), o = tu(t);
|
|
19204
19201
|
return new Yi({
|
|
19205
19202
|
user: s,
|
|
19206
19203
|
providerId: o,
|
|
@@ -19288,21 +19285,21 @@ async function NC(n, e, i = !1) {
|
|
|
19288
19285
|
const r = "reauthenticate";
|
|
19289
19286
|
try {
|
|
19290
19287
|
const s = await Mt(n, pp(t, r, e, n), i);
|
|
19291
|
-
|
|
19288
|
+
ne(
|
|
19292
19289
|
s.idToken,
|
|
19293
19290
|
t,
|
|
19294
19291
|
"internal-error"
|
|
19295
19292
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19296
19293
|
);
|
|
19297
19294
|
const o = Yf(s.idToken);
|
|
19298
|
-
|
|
19295
|
+
ne(
|
|
19299
19296
|
o,
|
|
19300
19297
|
t,
|
|
19301
19298
|
"internal-error"
|
|
19302
19299
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19303
19300
|
);
|
|
19304
19301
|
const { sub: a } = o;
|
|
19305
|
-
return
|
|
19302
|
+
return ne(
|
|
19306
19303
|
n.uid === a,
|
|
19307
19304
|
t,
|
|
19308
19305
|
"user-mismatch"
|
|
@@ -20047,7 +20044,7 @@ new _t(3e4, 6e4);
|
|
|
20047
20044
|
* limitations under the License.
|
|
20048
20045
|
*/
|
|
20049
20046
|
function Ep(n, e) {
|
|
20050
|
-
return e ? En(e) : (
|
|
20047
|
+
return e ? En(e) : (ne(
|
|
20051
20048
|
n._popupRedirectResolver,
|
|
20052
20049
|
n,
|
|
20053
20050
|
"argument-error"
|
|
@@ -20105,7 +20102,7 @@ function VC(n) {
|
|
|
20105
20102
|
}
|
|
20106
20103
|
function JC(n) {
|
|
20107
20104
|
const { auth: e, user: i } = n;
|
|
20108
|
-
return
|
|
20105
|
+
return ne(
|
|
20109
20106
|
i,
|
|
20110
20107
|
e,
|
|
20111
20108
|
"internal-error"
|
|
@@ -20114,7 +20111,7 @@ function JC(n) {
|
|
|
20114
20111
|
}
|
|
20115
20112
|
async function XC(n) {
|
|
20116
20113
|
const { auth: e, user: i } = n;
|
|
20117
|
-
return
|
|
20114
|
+
return ne(
|
|
20118
20115
|
i,
|
|
20119
20116
|
e,
|
|
20120
20117
|
"internal-error"
|
|
@@ -20223,7 +20220,7 @@ class Ip {
|
|
|
20223
20220
|
const KC = new _t(2e3, 1e4);
|
|
20224
20221
|
async function ZC(n, e, i) {
|
|
20225
20222
|
if (dn(n.app))
|
|
20226
|
-
return Promise.reject(
|
|
20223
|
+
return Promise.reject(nn(
|
|
20227
20224
|
n,
|
|
20228
20225
|
"operation-not-supported-in-this-environment"
|
|
20229
20226
|
/* AuthErrorCode.OPERATION_NOT_SUPPORTED */
|
|
@@ -20239,7 +20236,7 @@ class ni extends Ip {
|
|
|
20239
20236
|
}
|
|
20240
20237
|
async executeNotNull() {
|
|
20241
20238
|
const e = await this.execute();
|
|
20242
|
-
return
|
|
20239
|
+
return ne(
|
|
20243
20240
|
e,
|
|
20244
20241
|
this.auth,
|
|
20245
20242
|
"internal-error"
|
|
@@ -20258,7 +20255,7 @@ class ni extends Ip {
|
|
|
20258
20255
|
), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((i) => {
|
|
20259
20256
|
this.reject(i);
|
|
20260
20257
|
}), this.resolver._isIframeWebStorageSupported(this.auth, (i) => {
|
|
20261
|
-
i || this.reject(
|
|
20258
|
+
i || this.reject(nn(
|
|
20262
20259
|
this.auth,
|
|
20263
20260
|
"web-storage-unsupported"
|
|
20264
20261
|
/* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
|
|
@@ -20270,7 +20267,7 @@ class ni extends Ip {
|
|
|
20270
20267
|
return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
|
|
20271
20268
|
}
|
|
20272
20269
|
cancel() {
|
|
20273
|
-
this.reject(
|
|
20270
|
+
this.reject(nn(
|
|
20274
20271
|
this.auth,
|
|
20275
20272
|
"cancelled-popup-request"
|
|
20276
20273
|
/* AuthErrorCode.EXPIRED_POPUP_REQUEST */
|
|
@@ -20285,7 +20282,7 @@ class ni extends Ip {
|
|
|
20285
20282
|
if (!((t = (i = this.authWindow) === null || i === void 0 ? void 0 : i.window) === null || t === void 0) && t.closed) {
|
|
20286
20283
|
this.pollId = window.setTimeout(
|
|
20287
20284
|
() => {
|
|
20288
|
-
this.pollId = null, this.reject(
|
|
20285
|
+
this.pollId = null, this.reject(nn(
|
|
20289
20286
|
this.auth,
|
|
20290
20287
|
"popup-closed-by-user"
|
|
20291
20288
|
/* AuthErrorCode.POPUP_CLOSED_BY_USER */
|
|
@@ -20426,7 +20423,7 @@ class a5 {
|
|
|
20426
20423
|
var t;
|
|
20427
20424
|
if (e.error && !Bp(e)) {
|
|
20428
20425
|
const r = ((t = e.error.code) === null || t === void 0 ? void 0 : t.split("auth/")[1]) || "internal-error";
|
|
20429
|
-
i.onError(
|
|
20426
|
+
i.onError(nn(this.auth, r));
|
|
20430
20427
|
} else
|
|
20431
20428
|
i.onAuthEvent(e);
|
|
20432
20429
|
}
|
|
@@ -20559,7 +20556,7 @@ function m5(n) {
|
|
|
20559
20556
|
e(gapi.iframes.getContext());
|
|
20560
20557
|
},
|
|
20561
20558
|
ontimeout: () => {
|
|
20562
|
-
au(), i(
|
|
20559
|
+
au(), i(nn(
|
|
20563
20560
|
n,
|
|
20564
20561
|
"network-request-failed"
|
|
20565
20562
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -20575,7 +20572,7 @@ function m5(n) {
|
|
|
20575
20572
|
else {
|
|
20576
20573
|
const a = yC("iframefcb");
|
|
20577
20574
|
return ln()[a] = () => {
|
|
20578
|
-
gapi.load ? o() : i(
|
|
20575
|
+
gapi.load ? o() : i(nn(
|
|
20579
20576
|
n,
|
|
20580
20577
|
"network-request-failed"
|
|
20581
20578
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -20625,7 +20622,7 @@ const g5 = new _t(5e3, 15e3), v5 = "__/auth/iframe", b5 = "emulator/auth/iframe"
|
|
|
20625
20622
|
]);
|
|
20626
20623
|
function k5(n) {
|
|
20627
20624
|
const e = n.config;
|
|
20628
|
-
|
|
20625
|
+
ne(
|
|
20629
20626
|
e.authDomain,
|
|
20630
20627
|
n,
|
|
20631
20628
|
"auth-domain-config-required"
|
|
@@ -20642,7 +20639,7 @@ function k5(n) {
|
|
|
20642
20639
|
}
|
|
20643
20640
|
async function C5(n) {
|
|
20644
20641
|
const e = await p5(n), i = ln().gapi;
|
|
20645
|
-
return
|
|
20642
|
+
return ne(
|
|
20646
20643
|
i,
|
|
20647
20644
|
n,
|
|
20648
20645
|
"internal-error"
|
|
@@ -20658,7 +20655,7 @@ async function C5(n) {
|
|
|
20658
20655
|
// Prevent iframe from closing on mouse out.
|
|
20659
20656
|
setHideOnLeave: !1
|
|
20660
20657
|
});
|
|
20661
|
-
const o =
|
|
20658
|
+
const o = nn(
|
|
20662
20659
|
n,
|
|
20663
20660
|
"network-request-failed"
|
|
20664
20661
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -20721,7 +20718,7 @@ function N5(n, e, i, t = E5, r = I5) {
|
|
|
20721
20718
|
if (cC(f) && a !== "_self")
|
|
20722
20719
|
return S5(e || "", a), new Au(null);
|
|
20723
20720
|
const l = window.open(e || "", a, d);
|
|
20724
|
-
|
|
20721
|
+
ne(
|
|
20725
20722
|
l,
|
|
20726
20723
|
n,
|
|
20727
20724
|
"popup-blocked"
|
|
@@ -20757,12 +20754,12 @@ function S5(n, e) {
|
|
|
20757
20754
|
*/
|
|
20758
20755
|
const T5 = "__/auth/handler", M5 = "emulator/auth/handler", R5 = encodeURIComponent("fac");
|
|
20759
20756
|
async function fu(n, e, i, t, r, s) {
|
|
20760
|
-
|
|
20757
|
+
ne(
|
|
20761
20758
|
n.config.authDomain,
|
|
20762
20759
|
n,
|
|
20763
20760
|
"auth-domain-config-required"
|
|
20764
20761
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
20765
|
-
),
|
|
20762
|
+
), ne(
|
|
20766
20763
|
n.config.apiKey,
|
|
20767
20764
|
n,
|
|
20768
20765
|
"invalid-api-key"
|
|
@@ -20843,7 +20840,7 @@ class Q5 {
|
|
|
20843
20840
|
}
|
|
20844
20841
|
async initAndGetManager(e) {
|
|
20845
20842
|
const i = await C5(e), t = new a5(e);
|
|
20846
|
-
return i.register("authEvent", (r) => (
|
|
20843
|
+
return i.register("authEvent", (r) => (ne(
|
|
20847
20844
|
r?.authEvent,
|
|
20848
20845
|
e,
|
|
20849
20846
|
"invalid-auth-event"
|
|
@@ -20915,7 +20912,7 @@ class L5 {
|
|
|
20915
20912
|
i && (this.internalListeners.delete(e), i(), this.updateProactiveRefresh());
|
|
20916
20913
|
}
|
|
20917
20914
|
assertAuthConfigured() {
|
|
20918
|
-
|
|
20915
|
+
ne(
|
|
20919
20916
|
this.auth._initializationPromise,
|
|
20920
20917
|
"dependent-sdk-initialized-before-auth"
|
|
20921
20918
|
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
|
@@ -20962,7 +20959,7 @@ function j5(n) {
|
|
|
20962
20959
|
"auth",
|
|
20963
20960
|
(e, { options: i }) => {
|
|
20964
20961
|
const t = e.getProvider("app").getImmediate(), r = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: o, authDomain: a } = t.options;
|
|
20965
|
-
|
|
20962
|
+
ne(o && !o.includes(":"), "invalid-api-key", { appName: t.name });
|
|
20966
20963
|
const A = {
|
|
20967
20964
|
apiKey: o,
|
|
20968
20965
|
authDomain: a,
|
|
@@ -21061,7 +21058,7 @@ vC({
|
|
|
21061
21058
|
return new Promise((e, i) => {
|
|
21062
21059
|
const t = document.createElement("script");
|
|
21063
21060
|
t.setAttribute("src", n), t.onload = e, t.onerror = (r) => {
|
|
21064
|
-
const s =
|
|
21061
|
+
const s = nn(
|
|
21065
21062
|
"internal-error"
|
|
21066
21063
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
21067
21064
|
);
|
|
@@ -21269,14 +21266,14 @@ const pi = ({
|
|
|
21269
21266
|
]
|
|
21270
21267
|
}
|
|
21271
21268
|
);
|
|
21272
|
-
}, $5 =
|
|
21269
|
+
}, $5 = sn`
|
|
21273
21270
|
from {
|
|
21274
21271
|
transform: rotate(0deg);
|
|
21275
21272
|
}
|
|
21276
21273
|
to {
|
|
21277
21274
|
transform: rotate(180deg);
|
|
21278
21275
|
}
|
|
21279
|
-
`, e7 =
|
|
21276
|
+
`, e7 = sn`
|
|
21280
21277
|
from {
|
|
21281
21278
|
transform: rotate(180deg);
|
|
21282
21279
|
}
|
|
@@ -21415,7 +21412,7 @@ const Tp = ({
|
|
|
21415
21412
|
headerElement: t,
|
|
21416
21413
|
filter: r
|
|
21417
21414
|
}) => {
|
|
21418
|
-
const { usersSet: s } =
|
|
21415
|
+
const { usersSet: s } = tn(), [o, a] = z(""), [A, f] = z([]), d = (c) => {
|
|
21419
21416
|
i((u) => u.some((p) => p._id === c._id) ? u.filter((p) => p._id !== c._id) : [...u, c]);
|
|
21420
21417
|
}, l = Ce(
|
|
21421
21418
|
() => c7((c) => {
|
|
@@ -21463,7 +21460,7 @@ const Tp = ({
|
|
|
21463
21460
|
c._id
|
|
21464
21461
|
)) })
|
|
21465
21462
|
] });
|
|
21466
|
-
}, l7 =
|
|
21463
|
+
}, l7 = sn`
|
|
21467
21464
|
from {
|
|
21468
21465
|
opacity: 0;
|
|
21469
21466
|
transform: translateY(10px);
|
|
@@ -21472,7 +21469,7 @@ const Tp = ({
|
|
|
21472
21469
|
opacity: 1;
|
|
21473
21470
|
transform: translateY(0);
|
|
21474
21471
|
}
|
|
21475
|
-
`, u7 =
|
|
21472
|
+
`, u7 = sn`
|
|
21476
21473
|
from {
|
|
21477
21474
|
opacity: 1;
|
|
21478
21475
|
transform: translateY(0);
|
|
@@ -21481,7 +21478,7 @@ const Tp = ({
|
|
|
21481
21478
|
opacity: 0;
|
|
21482
21479
|
transform: translateY(10px);
|
|
21483
21480
|
}
|
|
21484
|
-
`, h7 = (n) =>
|
|
21481
|
+
`, h7 = (n) => sn`
|
|
21485
21482
|
from {
|
|
21486
21483
|
width: 100%;
|
|
21487
21484
|
}
|
|
@@ -21582,8 +21579,8 @@ const Tp = ({
|
|
|
21582
21579
|
[d, c]
|
|
21583
21580
|
), x = (W) => W.trim().length < 3 ? "Room name must be at least 3 characters." : "", I = (W) => {
|
|
21584
21581
|
const _ = W.target.value;
|
|
21585
|
-
l(_), w((
|
|
21586
|
-
...
|
|
21582
|
+
l(_), w((J) => ({
|
|
21583
|
+
...J,
|
|
21587
21584
|
name: x(_)
|
|
21588
21585
|
}));
|
|
21589
21586
|
}, D = () => s(!0), E = () => {
|
|
@@ -21594,19 +21591,19 @@ const Tp = ({
|
|
|
21594
21591
|
k(null);
|
|
21595
21592
|
}, T = async (W, _) => {
|
|
21596
21593
|
try {
|
|
21597
|
-
const
|
|
21594
|
+
const J = qs(
|
|
21598
21595
|
W,
|
|
21599
21596
|
n?.xmppSettings?.conference,
|
|
21600
21597
|
_
|
|
21601
21598
|
);
|
|
21602
21599
|
e(
|
|
21603
21600
|
Qs({
|
|
21604
|
-
room:
|
|
21601
|
+
room: J,
|
|
21605
21602
|
xmpp: i
|
|
21606
21603
|
})
|
|
21607
|
-
), e(We({ roomJID:
|
|
21608
|
-
} catch (
|
|
21609
|
-
console.error("Error handling room creation:",
|
|
21604
|
+
), e(We({ roomJID: J.jid }));
|
|
21605
|
+
} catch (J) {
|
|
21606
|
+
console.error("Error handling room creation:", J);
|
|
21610
21607
|
}
|
|
21611
21608
|
}, L = async () => {
|
|
21612
21609
|
if (t({
|
|
@@ -21618,12 +21615,12 @@ const Tp = ({
|
|
|
21618
21615
|
}), a(!0), v) {
|
|
21619
21616
|
let W = new FormData();
|
|
21620
21617
|
W.append("files", b);
|
|
21621
|
-
const
|
|
21618
|
+
const J = (await Vf(W))?.data?.results?.[0]?.location;
|
|
21622
21619
|
if (n?.newArch) {
|
|
21623
21620
|
const te = y.map((Q) => Q.xmppUsername), K = await dy({
|
|
21624
21621
|
title: d,
|
|
21625
21622
|
description: c && c !== "" ? c : "No description",
|
|
21626
|
-
picture:
|
|
21623
|
+
picture: J || "",
|
|
21627
21624
|
type: m.id || "public",
|
|
21628
21625
|
members: te
|
|
21629
21626
|
});
|
|
@@ -21633,8 +21630,8 @@ const Tp = ({
|
|
|
21633
21630
|
d,
|
|
21634
21631
|
c && c !== "" ? c : "No description"
|
|
21635
21632
|
);
|
|
21636
|
-
i.getRoomsStanza(), e(We({ roomJID: te })),
|
|
21637
|
-
|
|
21633
|
+
i.getRoomsStanza(), e(We({ roomJID: te })), J && (i.setRoomImageStanza(te, J, "icon", "none"), e(
|
|
21634
|
+
Ze({ jid: te, updates: { icon: J } })
|
|
21638
21635
|
));
|
|
21639
21636
|
}
|
|
21640
21637
|
s(!1), w({ name: "", description: "" }), k(null), l(""), u(""), a(!1), t({
|
|
@@ -21678,7 +21675,7 @@ const Tp = ({
|
|
|
21678
21675
|
}
|
|
21679
21676
|
),
|
|
21680
21677
|
/* @__PURE__ */ N(
|
|
21681
|
-
|
|
21678
|
+
en,
|
|
21682
21679
|
{
|
|
21683
21680
|
style: {
|
|
21684
21681
|
flexDirection: "column",
|
|
@@ -21722,7 +21719,7 @@ const Tp = ({
|
|
|
21722
21719
|
children: "Add users"
|
|
21723
21720
|
}
|
|
21724
21721
|
),
|
|
21725
|
-
/* @__PURE__ */ N(
|
|
21722
|
+
/* @__PURE__ */ N(en, { children: [
|
|
21726
21723
|
/* @__PURE__ */ h(
|
|
21727
21724
|
se,
|
|
21728
21725
|
{
|
|
@@ -21750,7 +21747,7 @@ const Tp = ({
|
|
|
21750
21747
|
/* @__PURE__ */ h(hi, { onClick: E, style: { fontSize: 24 }, children: "×" }),
|
|
21751
21748
|
/* @__PURE__ */ h(ji, { children: "Select users to add to Chat" }),
|
|
21752
21749
|
/* @__PURE__ */ h(
|
|
21753
|
-
|
|
21750
|
+
en,
|
|
21754
21751
|
{
|
|
21755
21752
|
style: {
|
|
21756
21753
|
flexDirection: "column",
|
|
@@ -21990,8 +21987,8 @@ function N7() {
|
|
|
21990
21987
|
}
|
|
21991
21988
|
function y(H) {
|
|
21992
21989
|
if (typeof H == "object" && H !== null) {
|
|
21993
|
-
var
|
|
21994
|
-
switch (
|
|
21990
|
+
var on = H.$$typeof;
|
|
21991
|
+
switch (on) {
|
|
21995
21992
|
case e:
|
|
21996
21993
|
var Vt = H.type;
|
|
21997
21994
|
switch (Vt) {
|
|
@@ -22012,15 +22009,15 @@ function N7() {
|
|
|
22012
22009
|
case o:
|
|
22013
22010
|
return ed;
|
|
22014
22011
|
default:
|
|
22015
|
-
return
|
|
22012
|
+
return on;
|
|
22016
22013
|
}
|
|
22017
22014
|
}
|
|
22018
22015
|
case i:
|
|
22019
|
-
return
|
|
22016
|
+
return on;
|
|
22020
22017
|
}
|
|
22021
22018
|
}
|
|
22022
22019
|
}
|
|
22023
|
-
var g = A, v = f, x = a, I = o, D = e, E = d, B = t, M = m, T = u, L = i, W = s, _ = r,
|
|
22020
|
+
var g = A, v = f, x = a, I = o, D = e, E = d, B = t, M = m, T = u, L = i, W = s, _ = r, J = l, te = !1;
|
|
22024
22021
|
function K(H) {
|
|
22025
22022
|
return te || (te = !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.")), Q(H) || y(H) === A;
|
|
22026
22023
|
}
|
|
@@ -22045,22 +22042,22 @@ function N7() {
|
|
|
22045
22042
|
function U(H) {
|
|
22046
22043
|
return y(H) === m;
|
|
22047
22044
|
}
|
|
22048
|
-
function
|
|
22045
|
+
function X(H) {
|
|
22049
22046
|
return y(H) === u;
|
|
22050
22047
|
}
|
|
22051
|
-
function
|
|
22048
|
+
function $(H) {
|
|
22052
22049
|
return y(H) === i;
|
|
22053
22050
|
}
|
|
22054
|
-
function
|
|
22051
|
+
function ie(H) {
|
|
22055
22052
|
return y(H) === s;
|
|
22056
22053
|
}
|
|
22057
|
-
function
|
|
22054
|
+
function ae(H) {
|
|
22058
22055
|
return y(H) === r;
|
|
22059
22056
|
}
|
|
22060
|
-
function
|
|
22057
|
+
function ke(H) {
|
|
22061
22058
|
return y(H) === l;
|
|
22062
22059
|
}
|
|
22063
|
-
ue.AsyncMode = g, ue.ConcurrentMode = v, ue.ContextConsumer = x, ue.ContextProvider = I, ue.Element = D, ue.ForwardRef = E, ue.Fragment = B, ue.Lazy = M, ue.Memo = T, ue.Portal = L, ue.Profiler = W, ue.StrictMode = _, ue.Suspense =
|
|
22060
|
+
ue.AsyncMode = g, ue.ConcurrentMode = v, ue.ContextConsumer = x, ue.ContextProvider = I, ue.Element = D, ue.ForwardRef = E, ue.Fragment = B, ue.Lazy = M, ue.Memo = T, ue.Portal = L, ue.Profiler = W, ue.StrictMode = _, ue.Suspense = J, ue.isAsyncMode = K, ue.isConcurrentMode = Q, ue.isContextConsumer = R, ue.isContextProvider = P, ue.isElement = F, ue.isForwardRef = O, ue.isFragment = G, ue.isLazy = U, ue.isMemo = X, ue.isPortal = $, ue.isProfiler = ie, ue.isStrictMode = ae, ue.isSuspense = ke, ue.isValidElementType = w, ue.typeOf = y;
|
|
22064
22061
|
}()), ue;
|
|
22065
22062
|
}
|
|
22066
22063
|
var gu;
|
|
@@ -22233,33 +22230,33 @@ function M7() {
|
|
|
22233
22230
|
function b(Q) {
|
|
22234
22231
|
if (process.env.NODE_ENV !== "production")
|
|
22235
22232
|
var R = {}, P = 0;
|
|
22236
|
-
function F(G, U,
|
|
22237
|
-
if (
|
|
22233
|
+
function F(G, U, X, $, ie, ae, ke) {
|
|
22234
|
+
if ($ = $ || c, ae = ae || X, ke !== i) {
|
|
22238
22235
|
if (A) {
|
|
22239
22236
|
var H = new Error(
|
|
22240
22237
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
22241
22238
|
);
|
|
22242
22239
|
throw H.name = "Invariant Violation", H;
|
|
22243
22240
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
22244
|
-
var
|
|
22245
|
-
!R[
|
|
22241
|
+
var on = $ + ":" + X;
|
|
22242
|
+
!R[on] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
22246
22243
|
P < 3 && (s(
|
|
22247
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
22248
|
-
), R[
|
|
22244
|
+
"You are manually calling a React.PropTypes validation function for the `" + ae + "` prop on `" + $ + "`. 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."
|
|
22245
|
+
), R[on] = !0, P++);
|
|
22249
22246
|
}
|
|
22250
22247
|
}
|
|
22251
|
-
return U[
|
|
22248
|
+
return U[X] == null ? G ? U[X] === null ? new p("The " + ie + " `" + ae + "` is marked as required " + ("in `" + $ + "`, but its value is `null`.")) : new p("The " + ie + " `" + ae + "` is marked as required in " + ("`" + $ + "`, but its value is `undefined`.")) : null : Q(U, X, $, ie, ae);
|
|
22252
22249
|
}
|
|
22253
22250
|
var O = F.bind(null, !1);
|
|
22254
22251
|
return O.isRequired = F.bind(null, !0), O;
|
|
22255
22252
|
}
|
|
22256
22253
|
function k(Q) {
|
|
22257
|
-
function R(P, F, O, G, U,
|
|
22258
|
-
var
|
|
22259
|
-
if (
|
|
22260
|
-
var
|
|
22254
|
+
function R(P, F, O, G, U, X) {
|
|
22255
|
+
var $ = P[F], ie = _($);
|
|
22256
|
+
if (ie !== Q) {
|
|
22257
|
+
var ae = J($);
|
|
22261
22258
|
return new p(
|
|
22262
|
-
"Invalid " + G + " `" + U + "` of type " + ("`" +
|
|
22259
|
+
"Invalid " + G + " `" + U + "` of type " + ("`" + ae + "` supplied to `" + O + "`, expected ") + ("`" + Q + "`."),
|
|
22263
22260
|
{ expectedType: Q }
|
|
22264
22261
|
);
|
|
22265
22262
|
}
|
|
@@ -22274,15 +22271,15 @@ function M7() {
|
|
|
22274
22271
|
function R(P, F, O, G, U) {
|
|
22275
22272
|
if (typeof Q != "function")
|
|
22276
22273
|
return new p("Property `" + U + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
|
|
22277
|
-
var
|
|
22278
|
-
if (!Array.isArray(
|
|
22279
|
-
var
|
|
22280
|
-
return new p("Invalid " + G + " `" + U + "` of type " + ("`" +
|
|
22274
|
+
var X = P[F];
|
|
22275
|
+
if (!Array.isArray(X)) {
|
|
22276
|
+
var $ = _(X);
|
|
22277
|
+
return new p("Invalid " + G + " `" + U + "` of type " + ("`" + $ + "` supplied to `" + O + "`, expected an array."));
|
|
22281
22278
|
}
|
|
22282
|
-
for (var
|
|
22283
|
-
var
|
|
22284
|
-
if (
|
|
22285
|
-
return
|
|
22279
|
+
for (var ie = 0; ie < X.length; ie++) {
|
|
22280
|
+
var ae = Q(X, ie, O, G, U + "[" + ie + "]", i);
|
|
22281
|
+
if (ae instanceof Error)
|
|
22282
|
+
return ae;
|
|
22286
22283
|
}
|
|
22287
22284
|
return null;
|
|
22288
22285
|
}
|
|
@@ -22292,8 +22289,8 @@ function M7() {
|
|
|
22292
22289
|
function Q(R, P, F, O, G) {
|
|
22293
22290
|
var U = R[P];
|
|
22294
22291
|
if (!a(U)) {
|
|
22295
|
-
var
|
|
22296
|
-
return new p("Invalid " + O + " `" + G + "` of type " + ("`" +
|
|
22292
|
+
var X = _(U);
|
|
22293
|
+
return new p("Invalid " + O + " `" + G + "` of type " + ("`" + X + "` supplied to `" + F + "`, expected a single ReactElement."));
|
|
22297
22294
|
}
|
|
22298
22295
|
return null;
|
|
22299
22296
|
}
|
|
@@ -22303,8 +22300,8 @@ function M7() {
|
|
|
22303
22300
|
function Q(R, P, F, O, G) {
|
|
22304
22301
|
var U = R[P];
|
|
22305
22302
|
if (!n.isValidElementType(U)) {
|
|
22306
|
-
var
|
|
22307
|
-
return new p("Invalid " + O + " `" + G + "` of type " + ("`" +
|
|
22303
|
+
var X = _(U);
|
|
22304
|
+
return new p("Invalid " + O + " `" + G + "` of type " + ("`" + X + "` supplied to `" + F + "`, expected a single ReactElement type."));
|
|
22308
22305
|
}
|
|
22309
22306
|
return null;
|
|
22310
22307
|
}
|
|
@@ -22313,8 +22310,8 @@ function M7() {
|
|
|
22313
22310
|
function v(Q) {
|
|
22314
22311
|
function R(P, F, O, G, U) {
|
|
22315
22312
|
if (!(P[F] instanceof Q)) {
|
|
22316
|
-
var
|
|
22317
|
-
return new p("Invalid " + G + " `" + U + "` of type " + ("`" +
|
|
22313
|
+
var X = Q.name || c, $ = K(P[F]);
|
|
22314
|
+
return new p("Invalid " + G + " `" + U + "` of type " + ("`" + $ + "` supplied to `" + O + "`, expected ") + ("instance of `" + X + "`."));
|
|
22318
22315
|
}
|
|
22319
22316
|
return null;
|
|
22320
22317
|
}
|
|
@@ -22326,14 +22323,14 @@ function M7() {
|
|
|
22326
22323
|
"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])."
|
|
22327
22324
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
22328
22325
|
function R(P, F, O, G, U) {
|
|
22329
|
-
for (var
|
|
22330
|
-
if (m(
|
|
22326
|
+
for (var X = P[F], $ = 0; $ < Q.length; $++)
|
|
22327
|
+
if (m(X, Q[$]))
|
|
22331
22328
|
return null;
|
|
22332
|
-
var
|
|
22333
|
-
var
|
|
22334
|
-
return
|
|
22329
|
+
var ie = JSON.stringify(Q, function(ke, H) {
|
|
22330
|
+
var on = J(H);
|
|
22331
|
+
return on === "symbol" ? String(H) : H;
|
|
22335
22332
|
});
|
|
22336
|
-
return new p("Invalid " + G + " `" + U + "` of value `" + String(
|
|
22333
|
+
return new p("Invalid " + G + " `" + U + "` of value `" + String(X) + "` " + ("supplied to `" + O + "`, expected one of " + ie + "."));
|
|
22337
22334
|
}
|
|
22338
22335
|
return b(R);
|
|
22339
22336
|
}
|
|
@@ -22341,14 +22338,14 @@ function M7() {
|
|
|
22341
22338
|
function R(P, F, O, G, U) {
|
|
22342
22339
|
if (typeof Q != "function")
|
|
22343
22340
|
return new p("Property `" + U + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
|
|
22344
|
-
var
|
|
22345
|
-
if (
|
|
22346
|
-
return new p("Invalid " + G + " `" + U + "` of type " + ("`" +
|
|
22347
|
-
for (var
|
|
22348
|
-
if (t(
|
|
22349
|
-
var
|
|
22350
|
-
if (
|
|
22351
|
-
return
|
|
22341
|
+
var X = P[F], $ = _(X);
|
|
22342
|
+
if ($ !== "object")
|
|
22343
|
+
return new p("Invalid " + G + " `" + U + "` of type " + ("`" + $ + "` supplied to `" + O + "`, expected an object."));
|
|
22344
|
+
for (var ie in X)
|
|
22345
|
+
if (t(X, ie)) {
|
|
22346
|
+
var ae = Q(X, ie, O, G, U + "." + ie, i);
|
|
22347
|
+
if (ae instanceof Error)
|
|
22348
|
+
return ae;
|
|
22352
22349
|
}
|
|
22353
22350
|
return null;
|
|
22354
22351
|
}
|
|
@@ -22364,15 +22361,15 @@ function M7() {
|
|
|
22364
22361
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(P) + " at index " + R + "."
|
|
22365
22362
|
), o;
|
|
22366
22363
|
}
|
|
22367
|
-
function F(O, G, U,
|
|
22368
|
-
for (var
|
|
22369
|
-
var
|
|
22364
|
+
function F(O, G, U, X, $) {
|
|
22365
|
+
for (var ie = [], ae = 0; ae < Q.length; ae++) {
|
|
22366
|
+
var ke = Q[ae], H = ke(O, G, U, X, $, i);
|
|
22370
22367
|
if (H == null)
|
|
22371
22368
|
return null;
|
|
22372
|
-
H.data && t(H.data, "expectedType") &&
|
|
22369
|
+
H.data && t(H.data, "expectedType") && ie.push(H.data.expectedType);
|
|
22373
22370
|
}
|
|
22374
|
-
var
|
|
22375
|
-
return new p("Invalid " +
|
|
22371
|
+
var on = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : "";
|
|
22372
|
+
return new p("Invalid " + X + " `" + $ + "` supplied to " + ("`" + U + "`" + on + "."));
|
|
22376
22373
|
}
|
|
22377
22374
|
return b(F);
|
|
22378
22375
|
}
|
|
@@ -22389,16 +22386,16 @@ function M7() {
|
|
|
22389
22386
|
}
|
|
22390
22387
|
function M(Q) {
|
|
22391
22388
|
function R(P, F, O, G, U) {
|
|
22392
|
-
var
|
|
22393
|
-
if (
|
|
22394
|
-
return new p("Invalid " + G + " `" + U + "` of type `" +
|
|
22395
|
-
for (var
|
|
22396
|
-
var
|
|
22397
|
-
if (typeof
|
|
22398
|
-
return B(O, G, U,
|
|
22399
|
-
var
|
|
22400
|
-
if (
|
|
22401
|
-
return
|
|
22389
|
+
var X = P[F], $ = _(X);
|
|
22390
|
+
if ($ !== "object")
|
|
22391
|
+
return new p("Invalid " + G + " `" + U + "` of type `" + $ + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
22392
|
+
for (var ie in Q) {
|
|
22393
|
+
var ae = Q[ie];
|
|
22394
|
+
if (typeof ae != "function")
|
|
22395
|
+
return B(O, G, U, ie, J(ae));
|
|
22396
|
+
var ke = ae(X, ie, O, G, U + "." + ie, i);
|
|
22397
|
+
if (ke)
|
|
22398
|
+
return ke;
|
|
22402
22399
|
}
|
|
22403
22400
|
return null;
|
|
22404
22401
|
}
|
|
@@ -22406,20 +22403,20 @@ function M7() {
|
|
|
22406
22403
|
}
|
|
22407
22404
|
function T(Q) {
|
|
22408
22405
|
function R(P, F, O, G, U) {
|
|
22409
|
-
var
|
|
22410
|
-
if (
|
|
22411
|
-
return new p("Invalid " + G + " `" + U + "` of type `" +
|
|
22412
|
-
var
|
|
22413
|
-
for (var
|
|
22414
|
-
var
|
|
22415
|
-
if (t(Q,
|
|
22416
|
-
return B(O, G, U,
|
|
22417
|
-
if (!
|
|
22406
|
+
var X = P[F], $ = _(X);
|
|
22407
|
+
if ($ !== "object")
|
|
22408
|
+
return new p("Invalid " + G + " `" + U + "` of type `" + $ + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
22409
|
+
var ie = e({}, P[F], Q);
|
|
22410
|
+
for (var ae in ie) {
|
|
22411
|
+
var ke = Q[ae];
|
|
22412
|
+
if (t(Q, ae) && typeof ke != "function")
|
|
22413
|
+
return B(O, G, U, ae, J(ke));
|
|
22414
|
+
if (!ke)
|
|
22418
22415
|
return new p(
|
|
22419
|
-
"Invalid " + G + " `" + U + "` key `" +
|
|
22416
|
+
"Invalid " + G + " `" + U + "` key `" + ae + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(P[F], null, " ") + `
|
|
22420
22417
|
Valid keys: ` + JSON.stringify(Object.keys(Q), null, " ")
|
|
22421
22418
|
);
|
|
22422
|
-
var H =
|
|
22419
|
+
var H = ke(X, ae, O, G, U + "." + ae, i);
|
|
22423
22420
|
if (H)
|
|
22424
22421
|
return H;
|
|
22425
22422
|
}
|
|
@@ -22467,7 +22464,7 @@ Valid keys: ` + JSON.stringify(Object.keys(Q), null, " ")
|
|
|
22467
22464
|
var R = typeof Q;
|
|
22468
22465
|
return Array.isArray(Q) ? "array" : Q instanceof RegExp ? "object" : W(R, Q) ? "symbol" : R;
|
|
22469
22466
|
}
|
|
22470
|
-
function
|
|
22467
|
+
function J(Q) {
|
|
22471
22468
|
if (typeof Q > "u" || Q === null)
|
|
22472
22469
|
return "" + Q;
|
|
22473
22470
|
var R = _(Q);
|
|
@@ -22480,7 +22477,7 @@ Valid keys: ` + JSON.stringify(Object.keys(Q), null, " ")
|
|
|
22480
22477
|
return R;
|
|
22481
22478
|
}
|
|
22482
22479
|
function te(Q) {
|
|
22483
|
-
var R =
|
|
22480
|
+
var R = J(Q);
|
|
22484
22481
|
switch (R) {
|
|
22485
22482
|
case "array":
|
|
22486
22483
|
case "object":
|
|
@@ -23482,7 +23479,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23482
23479
|
return n && /* @__PURE__ */ h(Ki, { children: /* @__PURE__ */ N(Fi, { children: [
|
|
23483
23480
|
/* @__PURE__ */ h(hi, { onClick: r, style: { fontSize: 24 }, children: "×" }),
|
|
23484
23481
|
/* @__PURE__ */ h(ji, { children: "Delete this chat ?" }),
|
|
23485
|
-
/* @__PURE__ */ N(
|
|
23482
|
+
/* @__PURE__ */ N(en, { children: [
|
|
23486
23483
|
/* @__PURE__ */ h(
|
|
23487
23484
|
se,
|
|
23488
23485
|
{
|
|
@@ -23520,7 +23517,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23520
23517
|
r && /* @__PURE__ */ h(Ki, { children: /* @__PURE__ */ N(Fi, { children: [
|
|
23521
23518
|
/* @__PURE__ */ h(hi, { onClick: d, style: { fontSize: 24 }, children: "×" }),
|
|
23522
23519
|
/* @__PURE__ */ h(
|
|
23523
|
-
|
|
23520
|
+
en,
|
|
23524
23521
|
{
|
|
23525
23522
|
style: {
|
|
23526
23523
|
flexDirection: "column",
|
|
@@ -23544,7 +23541,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23544
23541
|
)
|
|
23545
23542
|
}
|
|
23546
23543
|
),
|
|
23547
|
-
/* @__PURE__ */ N(
|
|
23544
|
+
/* @__PURE__ */ N(en, { children: [
|
|
23548
23545
|
/* @__PURE__ */ h(
|
|
23549
23546
|
se,
|
|
23550
23547
|
{
|
|
@@ -23569,7 +23566,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23569
23566
|
members: u
|
|
23570
23567
|
});
|
|
23571
23568
|
e(
|
|
23572
|
-
|
|
23569
|
+
Ze({
|
|
23573
23570
|
jid: A.jid,
|
|
23574
23571
|
updates: {
|
|
23575
23572
|
members: [...m, ...A.members],
|
|
@@ -23618,7 +23615,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23618
23615
|
w.append("files", C);
|
|
23619
23616
|
const g = (await Vf(w))?.data?.results?.[0]?.location;
|
|
23620
23617
|
g && (d.setRoomImageStanza(c.jid, g, "icon", "none"), f(
|
|
23621
|
-
|
|
23618
|
+
Ze({ jid: c.jid, updates: { icon: g } })
|
|
23622
23619
|
));
|
|
23623
23620
|
} catch (w) {
|
|
23624
23621
|
console.error("File upload failed or location is missing:", w);
|
|
@@ -23629,7 +23626,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23629
23626
|
roomId: c.jid.split("@")[0],
|
|
23630
23627
|
members: [C]
|
|
23631
23628
|
}), f(
|
|
23632
|
-
|
|
23629
|
+
Ze({
|
|
23633
23630
|
jid: c.jid,
|
|
23634
23631
|
updates: {
|
|
23635
23632
|
members: c.members.filter(
|
|
@@ -23652,7 +23649,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23652
23649
|
});
|
|
23653
23650
|
}
|
|
23654
23651
|
}, p = async () => {
|
|
23655
|
-
d.setRoomImageStanza(c.jid, null, "icon", "none"), f(
|
|
23652
|
+
d.setRoomImageStanza(c.jid, null, "icon", "none"), f(Ze({ jid: c.jid, updates: { icon: null } }));
|
|
23656
23653
|
}, b = (C) => {
|
|
23657
23654
|
f(Qe(me.PROFILE)), f(
|
|
23658
23655
|
df({
|
|
@@ -24684,12 +24681,12 @@ const Fu = S.div`
|
|
|
24684
24681
|
handleCloseModal: n
|
|
24685
24682
|
}) => {
|
|
24686
24683
|
const e = Jf(), { client: i } = ze();
|
|
24687
|
-
|
|
24684
|
+
tn();
|
|
24688
24685
|
const { showToast: t } = Ut(), { config: r, user: s, selectedUser: o, langSource: a } = de(
|
|
24689
24686
|
(g) => g.chatSettingStore
|
|
24690
|
-
), [A, f] = z(!1), d =
|
|
24687
|
+
), [A, f] = z(!1), d = Z(() => {
|
|
24691
24688
|
e(df()), n();
|
|
24692
|
-
}, []), l =
|
|
24689
|
+
}, []), l = Z(() => {
|
|
24693
24690
|
e(Rs()), e(uf());
|
|
24694
24691
|
}, []), c = Ce(
|
|
24695
24692
|
() => [
|
|
@@ -24705,7 +24702,7 @@ const Fu = S.div`
|
|
|
24705
24702
|
[]
|
|
24706
24703
|
), u = (g) => {
|
|
24707
24704
|
e(nh(g.id));
|
|
24708
|
-
}, m =
|
|
24705
|
+
}, m = Z(() => {
|
|
24709
24706
|
f(!0);
|
|
24710
24707
|
}, []), p = async (g, v) => {
|
|
24711
24708
|
try {
|
|
@@ -24729,7 +24726,7 @@ const Fu = S.div`
|
|
|
24729
24726
|
} catch (x) {
|
|
24730
24727
|
console.error("Error handling room creation:", x);
|
|
24731
24728
|
}
|
|
24732
|
-
}, b =
|
|
24729
|
+
}, b = Z(async () => {
|
|
24733
24730
|
t({
|
|
24734
24731
|
id: Date.now().toString(),
|
|
24735
24732
|
title: "Room creation",
|
|
@@ -24849,7 +24846,7 @@ const Fu = S.div`
|
|
|
24849
24846
|
// { value: 'Referrals', key: MODAL_TYPES.REFERRALS },
|
|
24850
24847
|
],
|
|
24851
24848
|
[]
|
|
24852
|
-
), i = be(), t =
|
|
24849
|
+
), i = be(), t = Z((r) => {
|
|
24853
24850
|
i(Qe(r));
|
|
24854
24851
|
}, []);
|
|
24855
24852
|
return /* @__PURE__ */ N(vn, { children: [
|
|
@@ -25300,19 +25297,19 @@ const Fu = S.div`
|
|
|
25300
25297
|
onRoomClick: i,
|
|
25301
25298
|
isSmallScreen: t
|
|
25302
25299
|
}) => {
|
|
25303
|
-
const { client: r, setClient: s } = ze(), [o, a] = z(!1), [A, f] = z(""), d = be(), { config: l } = _e(), { activeRoomJID: c } = de((v) => v.rooms), u = ce(null), m =
|
|
25300
|
+
const { client: r, setClient: s } = ze(), [o, a] = z(!1), [A, f] = z(""), d = be(), { config: l } = _e(), { activeRoomJID: c } = de((v) => v.rooms), u = ce(null), m = Z((v) => {
|
|
25304
25301
|
u.current && !u.current.contains(v.target) && a(!1);
|
|
25305
|
-
}, []), p =
|
|
25302
|
+
}, []), p = Z(
|
|
25306
25303
|
(v) => {
|
|
25307
25304
|
v.jid === c && !t || (i?.(v), a(!1));
|
|
25308
25305
|
},
|
|
25309
25306
|
[i]
|
|
25310
|
-
), b =
|
|
25307
|
+
), b = Z(
|
|
25311
25308
|
(v) => {
|
|
25312
25309
|
f(v.target.value);
|
|
25313
25310
|
},
|
|
25314
25311
|
[]
|
|
25315
|
-
), k =
|
|
25312
|
+
), k = Z((v) => (v?.messages?.[v?.messages.length - 1]?.id ?? "").replace(/\D+/g, "").padEnd(16, "0"), []), C = Ce(() => {
|
|
25316
25313
|
const v = A.toLowerCase(), x = /* @__PURE__ */ new Map();
|
|
25317
25314
|
if (!x.has(v)) {
|
|
25318
25315
|
const I = n.filter(
|
|
@@ -25331,10 +25328,10 @@ const Fu = S.div`
|
|
|
25331
25328
|
document.removeEventListener("mousedown", m);
|
|
25332
25329
|
};
|
|
25333
25330
|
}, [e, m]);
|
|
25334
|
-
const w =
|
|
25331
|
+
const w = Z(
|
|
25335
25332
|
(v) => !t && c === v.jid,
|
|
25336
25333
|
[c]
|
|
25337
|
-
), y =
|
|
25334
|
+
), y = Z(async () => {
|
|
25338
25335
|
r && (await r.close(), s(null)), d(uf()), d(Rs());
|
|
25339
25336
|
}, []), g = Ce(
|
|
25340
25337
|
() => [
|
|
@@ -25460,13 +25457,13 @@ const U8 = ({
|
|
|
25460
25457
|
currentRoom: n,
|
|
25461
25458
|
handleBackClick: e
|
|
25462
25459
|
}) => {
|
|
25463
|
-
const i = be(), { client: t } = ze(), { roomsList: r, activeRoomJID: s } =
|
|
25460
|
+
const i = be(), { client: t } = ze(), { roomsList: r, activeRoomJID: s } = tn(n.jid), { composing: o } = tn(n.jid).room, { config: a } = _e(), A = () => {
|
|
25464
25461
|
i(oh({ isOpen: !0 }));
|
|
25465
25462
|
}, f = (l) => {
|
|
25466
25463
|
i(
|
|
25467
|
-
|
|
25464
|
+
Ze({ jid: l.jid, updates: { ...l, unreadMessages: 0 } })
|
|
25468
25465
|
), i(We({ roomJID: l.jid })), i(Le({ chatJID: l.jid, loading: !0 }));
|
|
25469
|
-
}, d =
|
|
25466
|
+
}, d = Z(() => {
|
|
25470
25467
|
if (t.leaveTheRoomStanza(s), i(hf({ jid: s })), Object.keys(r).length < 1 || s === Object.keys(r)[0]) {
|
|
25471
25468
|
const c = `${window.location.pathname}`;
|
|
25472
25469
|
window.history.pushState(null, "", c), i(We({ roomJID: null }));
|
|
@@ -25674,7 +25671,7 @@ function Ur(n, e, i) {
|
|
|
25674
25671
|
return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, rx(t);
|
|
25675
25672
|
}
|
|
25676
25673
|
const Ax = (n) => {
|
|
25677
|
-
const e =
|
|
25674
|
+
const e = Z(
|
|
25678
25675
|
async (r) => {
|
|
25679
25676
|
try {
|
|
25680
25677
|
n?.eventHandlers?.onMessageSent && await n.eventHandlers.onMessageSent(r);
|
|
@@ -25683,7 +25680,7 @@ const Ax = (n) => {
|
|
|
25683
25680
|
}
|
|
25684
25681
|
},
|
|
25685
25682
|
[n]
|
|
25686
|
-
), i =
|
|
25683
|
+
), i = Z(
|
|
25687
25684
|
(r) => {
|
|
25688
25685
|
try {
|
|
25689
25686
|
n?.eventHandlers?.onMessageFailed && n.eventHandlers.onMessageFailed(r), console.error("Message failed details:", {
|
|
@@ -25699,7 +25696,7 @@ const Ax = (n) => {
|
|
|
25699
25696
|
}
|
|
25700
25697
|
},
|
|
25701
25698
|
[n]
|
|
25702
|
-
), t =
|
|
25699
|
+
), t = Z(
|
|
25703
25700
|
(r) => {
|
|
25704
25701
|
try {
|
|
25705
25702
|
n?.eventHandlers?.onMessageEdited && n.eventHandlers.onMessageEdited(r), console.log("Message edited:", {
|
|
@@ -25729,14 +25726,14 @@ const Ax = (n) => {
|
|
|
25729
25726
|
config: m.chatSettingStore.config,
|
|
25730
25727
|
rooms: m.rooms.rooms
|
|
25731
25728
|
})
|
|
25732
|
-
), d =
|
|
25729
|
+
), d = Z(
|
|
25733
25730
|
(m) => {
|
|
25734
25731
|
if (!n?.blockMessageSendingWhenProcessing) return !1;
|
|
25735
25732
|
const p = f[m];
|
|
25736
25733
|
return !p || !p.messages || p.messages.length === 0 ? !1 : p.messages[p.messages.length - 1].user.id === o.xmppUsername;
|
|
25737
25734
|
},
|
|
25738
25735
|
[n?.blockMessageSendingWhenProcessing, f, o.xmppUsername]
|
|
25739
|
-
), l =
|
|
25736
|
+
), l = Z(
|
|
25740
25737
|
async (m, p, b, k, C) => {
|
|
25741
25738
|
if (d(p)) {
|
|
25742
25739
|
console.log("Cannot send message: Last message is still processing");
|
|
@@ -25914,7 +25911,7 @@ const Ax = (n) => {
|
|
|
25914
25911
|
e,
|
|
25915
25912
|
d
|
|
25916
25913
|
]
|
|
25917
|
-
), c =
|
|
25914
|
+
), c = Z(
|
|
25918
25915
|
async (m) => {
|
|
25919
25916
|
try {
|
|
25920
25917
|
i?.editMessageStanza(
|
|
@@ -25941,7 +25938,7 @@ const Ax = (n) => {
|
|
|
25941
25938
|
}
|
|
25942
25939
|
},
|
|
25943
25940
|
[a, i, t, o, r, s]
|
|
25944
|
-
), u =
|
|
25941
|
+
), u = Z(
|
|
25945
25942
|
async (m, p, b, k = !1, C = !1, w = "") => {
|
|
25946
25943
|
if (d(b)) {
|
|
25947
25944
|
console.log("Cannot send media: Last message is still processing");
|
|
@@ -26053,7 +26050,7 @@ const Ax = (n) => {
|
|
|
26053
26050
|
};
|
|
26054
26051
|
}, Vp = () => {
|
|
26055
26052
|
const { client: n } = ze(), e = Jf();
|
|
26056
|
-
return
|
|
26053
|
+
return Z(
|
|
26057
26054
|
async (t, r) => {
|
|
26058
26055
|
const s = await kf();
|
|
26059
26056
|
return s?.items?.forEach((o) => {
|
|
@@ -26098,13 +26095,13 @@ const Ax = (n) => {
|
|
|
26098
26095
|
}
|
|
26099
26096
|
}, [n, Object.keys(e).length]);
|
|
26100
26097
|
}, dx = (n) => {
|
|
26101
|
-
const { client: e } = ze(), { activeRoomJID: i } = de((o) => o.rooms), { user: t } = _e(), r =
|
|
26098
|
+
const { client: e } = ze(), { activeRoomJID: i } = de((o) => o.rooms), { user: t } = _e(), r = Z(() => {
|
|
26102
26099
|
n?.disableTypingIndicator || e && e.sendTypingRequestStanza(
|
|
26103
26100
|
i,
|
|
26104
26101
|
`${t.firstName} ${t.lastName}`,
|
|
26105
26102
|
!0
|
|
26106
26103
|
);
|
|
26107
|
-
}, [i]), s =
|
|
26104
|
+
}, [i]), s = Z(() => {
|
|
26108
26105
|
n?.disableTypingIndicator || e && e.sendTypingRequestStanza(
|
|
26109
26106
|
i,
|
|
26110
26107
|
`${t.firstName} ${t.lastName}`,
|
|
@@ -26126,12 +26123,12 @@ const Ax = (n) => {
|
|
|
26126
26123
|
loading: l,
|
|
26127
26124
|
globalLoading: c,
|
|
26128
26125
|
roomMessages: u
|
|
26129
|
-
} =
|
|
26126
|
+
} = tn(), {
|
|
26130
26127
|
sendMessage: m,
|
|
26131
26128
|
sendMedia: p,
|
|
26132
26129
|
sendEditMessage: b,
|
|
26133
26130
|
isLastMessageFromUserAndProcessing: k
|
|
26134
|
-
} = zp(), { sendStartComposing: C, sendEndComposing: w } = dx(a), y =
|
|
26131
|
+
} = zp(), { sendStartComposing: C, sendEndComposing: w } = dx(a), y = Z(
|
|
26135
26132
|
(I) => {
|
|
26136
26133
|
t(
|
|
26137
26134
|
kr({
|
|
@@ -26141,12 +26138,12 @@ const Ax = (n) => {
|
|
|
26141
26138
|
), m(I, f);
|
|
26142
26139
|
},
|
|
26143
26140
|
[f]
|
|
26144
|
-
), g =
|
|
26141
|
+
), g = Z(
|
|
26145
26142
|
(I, D) => {
|
|
26146
26143
|
p(I, D, f);
|
|
26147
26144
|
},
|
|
26148
26145
|
[f]
|
|
26149
|
-
), v =
|
|
26146
|
+
), v = Z(
|
|
26150
26147
|
async (I, D, E) => {
|
|
26151
26148
|
if (!r && !A?.[I]?.historyComplete) {
|
|
26152
26149
|
const B = typeof E != "string" ? E : Number(
|
|
@@ -30486,7 +30483,7 @@ const cE = S.div`
|
|
|
30486
30483
|
handleEditMessage: a,
|
|
30487
30484
|
handleReactionMessage: A
|
|
30488
30485
|
}) => {
|
|
30489
|
-
const { roomsList: f, activeRoomJID: d } =
|
|
30486
|
+
const { roomsList: f, activeRoomJID: d } = tn(), [l, c] = z(!1), u = de(
|
|
30490
30487
|
(x) => x.chatSettingStore.config
|
|
30491
30488
|
), m = () => {
|
|
30492
30489
|
u?.disableInteractions || r({ visible: !1, x: 0, y: 0 });
|
|
@@ -30857,7 +30854,7 @@ const cE = S.div`
|
|
|
30857
30854
|
const A = async () => {
|
|
30858
30855
|
r(!0), o(null), i(null);
|
|
30859
30856
|
try {
|
|
30860
|
-
const f = "55b9e7f85f2b4e94505e96ef71c55a0e", d = await
|
|
30857
|
+
const f = "55b9e7f85f2b4e94505e96ef71c55a0e", d = await ye.get(
|
|
30861
30858
|
`https://api.linkpreview.net/?key=${f}&q=${encodeURIComponent(n)}`
|
|
30862
30859
|
);
|
|
30863
30860
|
d.data && (d.data.title || d.data.description || d.data.image) ? i({
|
|
@@ -30868,7 +30865,7 @@ const cE = S.div`
|
|
|
30868
30865
|
} catch (f) {
|
|
30869
30866
|
console.error("Error fetching URL preview via linkpreview.net:", f);
|
|
30870
30867
|
let d = "Could not load preview";
|
|
30871
|
-
|
|
30868
|
+
ye.isAxiosError(f) ? d = f.response?.data?.description || f.message || d : f instanceof Error && (d = f.message), o(d), i(null);
|
|
30872
30869
|
} finally {
|
|
30873
30870
|
r(!1);
|
|
30874
30871
|
}
|
|
@@ -30908,11 +30905,11 @@ const cE = S.div`
|
|
|
30908
30905
|
const m = (D) => {
|
|
30909
30906
|
if (o?.disableInteractions) return;
|
|
30910
30907
|
D.preventDefault();
|
|
30911
|
-
const E = 240, B = 310, M = "touches" in D ? D.touches[0].clientX : D.clientX, T = "touches" in D ? D.touches[0].clientY : D.clientY, L = window.innerWidth, W = window.innerHeight, _ = M + E > L ? M - E : M,
|
|
30908
|
+
const E = 240, B = 310, M = "touches" in D ? D.touches[0].clientX : D.clientX, T = "touches" in D ? D.touches[0].clientY : D.clientY, L = window.innerWidth, W = window.innerHeight, _ = M + E > L ? M - E : M, J = T + B > W ? W - B : T;
|
|
30912
30909
|
l({
|
|
30913
30910
|
visible: !0,
|
|
30914
30911
|
x: _,
|
|
30915
|
-
y:
|
|
30912
|
+
y: J
|
|
30916
30913
|
});
|
|
30917
30914
|
}, p = ce(null), b = (D) => {
|
|
30918
30915
|
p.current = setTimeout(() => {
|
|
@@ -31101,7 +31098,7 @@ const cE = S.div`
|
|
|
31101
31098
|
const e = be(), { showToast: i } = Ut(), [t, r] = z(""), [s, o] = z(""), [a, A] = z(!1), [f, d] = z({ email: "", password: "" }), l = () => {
|
|
31102
31099
|
let p = "", b = "";
|
|
31103
31100
|
return /\S+@\S+\.\S+/.test(t) || (p = "Invalid email format"), s.length < 6 && (b = "Password must be at least 6 characters long"), { emailError: p, passwordError: b };
|
|
31104
|
-
}, c =
|
|
31101
|
+
}, c = Z(async () => {
|
|
31105
31102
|
A(!0);
|
|
31106
31103
|
try {
|
|
31107
31104
|
const p = await Dp(t, s);
|
|
@@ -31373,12 +31370,12 @@ const cE = S.div`
|
|
|
31373
31370
|
user: e,
|
|
31374
31371
|
customMessageComponent: i
|
|
31375
31372
|
}) => {
|
|
31376
|
-
const { client: t } = ze(), r = be(), { loading: s, roomsList: o, editAction: a } =
|
|
31373
|
+
const { client: t } = ze(), r = be(), { loading: s, roomsList: o, editAction: a } = tn(), { config: A } = _e(), {
|
|
31377
31374
|
sendMessage: f,
|
|
31378
31375
|
sendMedia: d,
|
|
31379
31376
|
sendEditMessage: l,
|
|
31380
31377
|
isLastMessageFromUserAndProcessing: c
|
|
31381
|
-
} = zp(), [u, m] = z(!1), [p, b] = z(!1), k =
|
|
31378
|
+
} = zp(), [u, m] = z(!1), [p, b] = z(!1), k = Z(
|
|
31382
31379
|
async (I, D, E) => {
|
|
31383
31380
|
if (!u && !o?.[I]?.historyComplete) {
|
|
31384
31381
|
const B = typeof E != "string" ? E : Number(
|
|
@@ -31390,7 +31387,7 @@ const cE = S.div`
|
|
|
31390
31387
|
}
|
|
31391
31388
|
},
|
|
31392
31389
|
[t?.client?.jid]
|
|
31393
|
-
), C =
|
|
31390
|
+
), C = Z(
|
|
31394
31391
|
(I) => {
|
|
31395
31392
|
f(
|
|
31396
31393
|
I,
|
|
@@ -31401,7 +31398,7 @@ const cE = S.div`
|
|
|
31401
31398
|
);
|
|
31402
31399
|
},
|
|
31403
31400
|
[n, p]
|
|
31404
|
-
), w =
|
|
31401
|
+
), w = Z(
|
|
31405
31402
|
(I, D) => {
|
|
31406
31403
|
d(
|
|
31407
31404
|
I,
|
|
@@ -31413,13 +31410,13 @@ const cE = S.div`
|
|
|
31413
31410
|
);
|
|
31414
31411
|
},
|
|
31415
31412
|
[n]
|
|
31416
|
-
), y =
|
|
31413
|
+
), y = Z(() => {
|
|
31417
31414
|
A?.disableTypingIndicator || t.sendTypingRequestStanza(
|
|
31418
31415
|
n.roomJid,
|
|
31419
31416
|
`${e.firstName} ${e.lastName}`,
|
|
31420
31417
|
!0
|
|
31421
31418
|
);
|
|
31422
|
-
}, []), g =
|
|
31419
|
+
}, []), g = Z(() => {
|
|
31423
31420
|
A?.disableTypingIndicator || t.sendTypingRequestStanza(
|
|
31424
31421
|
n.roomJid,
|
|
31425
31422
|
`${e.firstName} ${e.lastName}`,
|
|
@@ -31537,7 +31534,7 @@ const cE = S.div`
|
|
|
31537
31534
|
/* @__PURE__ */ h(hi, { onClick: A, style: { fontSize: 24 }, children: "×" }),
|
|
31538
31535
|
n ? /* @__PURE__ */ h(n, {}) : /* @__PURE__ */ h(ji, { children: e }),
|
|
31539
31536
|
i && /* @__PURE__ */ h(e6, { children: i }),
|
|
31540
|
-
s && /* @__PURE__ */ h(
|
|
31537
|
+
s && /* @__PURE__ */ h(en, { style: { flexDirection: "column", position: "relative" }, children: /* @__PURE__ */ h(
|
|
31541
31538
|
Mm,
|
|
31542
31539
|
{
|
|
31543
31540
|
ref: d,
|
|
@@ -31551,8 +31548,8 @@ const cE = S.div`
|
|
|
31551
31548
|
placeholder: "Additional Details"
|
|
31552
31549
|
}
|
|
31553
31550
|
) }),
|
|
31554
|
-
!t && /* @__PURE__ */ h(
|
|
31555
|
-
/* @__PURE__ */ N(
|
|
31551
|
+
!t && /* @__PURE__ */ h(en, {}),
|
|
31552
|
+
/* @__PURE__ */ N(en, { children: [
|
|
31556
31553
|
/* @__PURE__ */ h(
|
|
31557
31554
|
se,
|
|
31558
31555
|
{
|
|
@@ -31598,17 +31595,17 @@ const cE = S.div`
|
|
|
31598
31595
|
"Personal Details",
|
|
31599
31596
|
"Illegal Drugs"
|
|
31600
31597
|
], _E = () => {
|
|
31601
|
-
const { config: n } = _e(), { activeRoomJID: e } =
|
|
31598
|
+
const { config: n } = _e(), { activeRoomJID: e } = tn(), i = be(), [t, r] = z(""), [s, o] = z({
|
|
31602
31599
|
name: "",
|
|
31603
31600
|
isChoose: !1
|
|
31604
|
-
}), a =
|
|
31601
|
+
}), a = Z(
|
|
31605
31602
|
(d) => {
|
|
31606
31603
|
r(d.target.value);
|
|
31607
31604
|
},
|
|
31608
31605
|
[]
|
|
31609
31606
|
), A = () => {
|
|
31610
31607
|
i(oh({ isOpen: !1 }));
|
|
31611
|
-
}, f =
|
|
31608
|
+
}, f = Z(async () => {
|
|
31612
31609
|
await ly({
|
|
31613
31610
|
chatName: e,
|
|
31614
31611
|
category: s.name,
|
|
@@ -31858,7 +31855,7 @@ const JE = ({
|
|
|
31858
31855
|
wasAutoSelected: e,
|
|
31859
31856
|
config: i
|
|
31860
31857
|
}) => {
|
|
31861
|
-
const t = be(), [r, s] = z(!1), [o, a] = z(!1), [A, f] = z(!1), d = ce(!1), { client: l, initializeClient: c, setClient: u } = ze(), m = Vp(), { rooms: p } = de((y) => y.rooms), { roomsList: b } =
|
|
31858
|
+
const t = be(), [r, s] = z(!1), [o, a] = z(!1), [A, f] = z(!1), d = ce(!1), { client: l, initializeClient: c, setClient: u } = ze(), m = Vp(), { rooms: p } = de((y) => y.rooms), { roomsList: b } = tn(), { user: k } = _e();
|
|
31862
31859
|
Ae(() => () => {
|
|
31863
31860
|
l && k.xmppPassword === "" && (console.log("closing client"), l.close(), u(null));
|
|
31864
31861
|
}, [k.xmppPassword]);
|
|
@@ -31937,7 +31934,7 @@ const JE = ({
|
|
|
31937
31934
|
setShowModal: a
|
|
31938
31935
|
};
|
|
31939
31936
|
}, XE = (n) => {
|
|
31940
|
-
const e = be(), { queue: i } = Cg(), t = ce(!1), r = ce(/* @__PURE__ */ new Map()), s =
|
|
31937
|
+
const e = be(), { queue: i } = Cg(), t = ce(!1), r = ce(/* @__PURE__ */ new Map()), s = Z(async () => {
|
|
31941
31938
|
if (!(!n || i.length === 0)) {
|
|
31942
31939
|
if (!n.presencesReady) {
|
|
31943
31940
|
console.warn("Presences not ready, delaying heap send");
|
|
@@ -32017,7 +32014,7 @@ const JE = ({
|
|
|
32017
32014
|
A(M);
|
|
32018
32015
|
}, { rooms: p, activeRoomJID: b, reportRoom: k } = de(
|
|
32019
32016
|
(M) => M.rooms
|
|
32020
|
-
), { loadingText: C } =
|
|
32017
|
+
), { loadingText: C } = tn(), w = Ce(() => {
|
|
32021
32018
|
if (b)
|
|
32022
32019
|
return p[b]?.messages?.find(
|
|
32023
32020
|
(M) => M?.activeMessage
|
|
@@ -32146,7 +32143,7 @@ const JE = ({
|
|
|
32146
32143
|
k.isOpen && /* @__PURE__ */ h(_E, {})
|
|
32147
32144
|
] });
|
|
32148
32145
|
}, ZE = ({ ...n }) => {
|
|
32149
|
-
const [e, i] = z(!1), { config: t, MainComponentStyles: r } = n, { user: s } = de((A) => A.chatSettingStore), o =
|
|
32146
|
+
const [e, i] = z(!1), { config: t, MainComponentStyles: r } = n, { user: s } = de((A) => A.chatSettingStore), o = Z(async () => {
|
|
32150
32147
|
try {
|
|
32151
32148
|
const A = await Dp(
|
|
32152
32149
|
n?.user?.email || "yukiraze9@gmail.com",
|