@ethora/chat-component 25.1.12 → 25.1.14
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 +150 -143
- package/dist/main.js.map +1 -1
- package/dist/roomStore/roomsSlice.d.ts +2 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2234,7 +2234,7 @@ const ps = (t) => {
|
|
|
2234
2234
|
setConfig: P1,
|
|
2235
2235
|
refreshTokens: fu,
|
|
2236
2236
|
logout: ai,
|
|
2237
|
-
setActiveModal:
|
|
2237
|
+
setActiveModal: Ke,
|
|
2238
2238
|
setDeleteModal: pn,
|
|
2239
2239
|
setSelectedUser: hu,
|
|
2240
2240
|
updateUser: T1,
|
|
@@ -2368,7 +2368,7 @@ const M1 = {
|
|
|
2368
2368
|
},
|
|
2369
2369
|
setCurrentRoom: (t, e) => {
|
|
2370
2370
|
const { roomJID: A } = e.payload;
|
|
2371
|
-
|
|
2371
|
+
t.activeRoomJID = A;
|
|
2372
2372
|
},
|
|
2373
2373
|
setLogoutState: (t) => {
|
|
2374
2374
|
t.rooms = {}, t.activeRoomJID = null, t.isLoading = !1;
|
|
@@ -2401,7 +2401,7 @@ const M1 = {
|
|
|
2401
2401
|
setIsLoading: tA,
|
|
2402
2402
|
setLastViewedTimestamp: lo,
|
|
2403
2403
|
setRoomNoMessages: iE,
|
|
2404
|
-
setCurrentRoom:
|
|
2404
|
+
setCurrentRoom: Xe,
|
|
2405
2405
|
setRoomRole: W1,
|
|
2406
2406
|
setLogoutState: wu,
|
|
2407
2407
|
setActiveMessage: ya,
|
|
@@ -4427,7 +4427,7 @@ const Rg = /* @__PURE__ */ ti(kg), GA = (t) => new Error(`redux-persist-transfor
|
|
|
4427
4427
|
}
|
|
4428
4428
|
}).concat(X1).concat(Mg)
|
|
4429
4429
|
}), Gg = yg(le);
|
|
4430
|
-
var Ln = {}, Mn = {},
|
|
4430
|
+
var Ln = {}, Mn = {}, Ze = {}, hi = class extends Error {
|
|
4431
4431
|
constructor(e) {
|
|
4432
4432
|
super(e), this.name = "TimeoutError";
|
|
4433
4433
|
}
|
|
@@ -4697,12 +4697,12 @@ var Qn = pi.exports, A0 = function() {
|
|
|
4697
4697
|
});
|
|
4698
4698
|
};
|
|
4699
4699
|
const r0 = qg, n0 = Bu, s0 = hi, o0 = Jg, i0 = Qn, a0 = A0;
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4700
|
+
Ze.EventEmitter = i0;
|
|
4701
|
+
Ze.timeout = r0;
|
|
4702
|
+
Ze.delay = n0;
|
|
4703
|
+
Ze.TimeoutError = s0;
|
|
4704
|
+
Ze.promise = o0;
|
|
4705
|
+
Ze.Deferred = a0;
|
|
4706
4706
|
var Ct = { exports: {} }, dr = {};
|
|
4707
4707
|
dr.detect = function(e) {
|
|
4708
4708
|
return !(!e || e.replace(/\\20/g, "").replace(/\\22/g, "").replace(/\\26/g, "").replace(/\\27/g, "").replace(/\\2f/g, "").replace(/\\3a/g, "").replace(/\\3c/g, "").replace(/\\3e/g, "").replace(/\\40/g, "").replace(/\\5c/g, "").search(/[ "&'/:<>@\\]/g) === -1);
|
|
@@ -5267,7 +5267,7 @@ var O0 = B0, Ju = { exports: {} };
|
|
|
5267
5267
|
Object.assign(t.exports, { parseURI: e, parseHost: A, parseService: r });
|
|
5268
5268
|
})(Ju);
|
|
5269
5269
|
var S0 = Ju.exports;
|
|
5270
|
-
const { EventEmitter: P0, promise: qt } =
|
|
5270
|
+
const { EventEmitter: P0, promise: qt } = Ze, T0 = Hn, Ss = ct, k0 = O0, { parseHost: R0, parseService: L0 } = S0, M0 = "urn:ietf:params:xml:ns:xmpp-streams", j0 = "http://etherx.jabber.org/streams";
|
|
5271
5271
|
let Yn = class extends P0 {
|
|
5272
5272
|
constructor(e = {}) {
|
|
5273
5273
|
super(), this.jid = null, this.timeout = 2e3, this.options = e, this.socketListeners = /* @__PURE__ */ Object.create(null), this.parserListeners = /* @__PURE__ */ Object.create(null), this.status = "offline", this.socket = null, this.parser = null, this.root = null;
|
|
@@ -5541,7 +5541,7 @@ Mn.jid = W0;
|
|
|
5541
5541
|
var z0 = function(e) {
|
|
5542
5542
|
return (e.split("://")[1] || e).split(":")[0].split("/")[0];
|
|
5543
5543
|
};
|
|
5544
|
-
const { EventEmitter: G0 } =
|
|
5544
|
+
const { EventEmitter: G0 } = Ze;
|
|
5545
5545
|
class V0 extends G0 {
|
|
5546
5546
|
constructor(e) {
|
|
5547
5547
|
super(), this.delay = 1e3, this.entity = e, this._timeout = null;
|
|
@@ -5768,7 +5768,7 @@ let xm = class extends Cm {
|
|
|
5768
5768
|
}
|
|
5769
5769
|
};
|
|
5770
5770
|
var Em = xm;
|
|
5771
|
-
const Dm = ym, Im = Em, { Deferred: Nm } =
|
|
5771
|
+
const Dm = ym, Im = Em, { Deferred: Nm } = Ze, Bm = Ze.timeout, Om = ct;
|
|
5772
5772
|
function Sm({ name: t, type: e }) {
|
|
5773
5773
|
return !(t !== "iq" || e !== "error" && e !== "result");
|
|
5774
5774
|
}
|
|
@@ -5924,7 +5924,7 @@ Wn.exports = function(...e) {
|
|
|
5924
5924
|
gn.resolve && (Wn.exports.dns = gn);
|
|
5925
5925
|
Wn.exports.http = rd;
|
|
5926
5926
|
var Vm = Wn.exports;
|
|
5927
|
-
const Xm = Vm, { promise: qm } =
|
|
5927
|
+
const Xm = Vm, { promise: qm } = Ze;
|
|
5928
5928
|
async function Um(t) {
|
|
5929
5929
|
const e = await Xm(t, {
|
|
5930
5930
|
srv: [
|
|
@@ -7209,7 +7209,7 @@ const nw = async (t) => {
|
|
|
7209
7209
|
}, hw = (t, e) => {
|
|
7210
7210
|
t.attrs.id;
|
|
7211
7211
|
}, pw = (t, e) => {
|
|
7212
|
-
le.dispatch(
|
|
7212
|
+
le.dispatch(Xe({ roomJID: t.attrs.from })), e.getRoomsStanza();
|
|
7213
7213
|
}, gw = (t, e) => {
|
|
7214
7214
|
var A, r;
|
|
7215
7215
|
t.attrs.id === "getUserRooms" && Array.isArray((A = t.getChild("query")) == null ? void 0 : A.children) && ((r = t.getChild("query")) == null || r.children.forEach(async (n) => {
|
|
@@ -7234,7 +7234,7 @@ const nw = async (t) => {
|
|
|
7234
7234
|
unreadMessages: 0,
|
|
7235
7235
|
lastViewedTimestamp: 0
|
|
7236
7236
|
};
|
|
7237
|
-
le.dispatch(H1({ roomData: { ...v } })), le.getState().rooms.activeRoomJID || le.dispatch(
|
|
7237
|
+
le.dispatch(H1({ roomData: { ...v } })), le.getState().rooms.activeRoomJID || le.dispatch(Xe({ roomJID: v.jid })), v.jid && e.presenceInRoomStanza(v.jid);
|
|
7238
7238
|
} catch {
|
|
7239
7239
|
}
|
|
7240
7240
|
}));
|
|
@@ -7502,7 +7502,7 @@ const fd = qh(null), Cw = ({ children: t }) => {
|
|
|
7502
7502
|
children: t
|
|
7503
7503
|
}
|
|
7504
7504
|
);
|
|
7505
|
-
},
|
|
7505
|
+
}, _e = () => {
|
|
7506
7506
|
const t = Fl(fd);
|
|
7507
7507
|
if (!t)
|
|
7508
7508
|
throw new Error("useXmppClient must be used within an XmppProvider");
|
|
@@ -7564,7 +7564,7 @@ function xe(t, e) {
|
|
|
7564
7564
|
function BA(t, e, A) {
|
|
7565
7565
|
return t.slice(e, A);
|
|
7566
7566
|
}
|
|
7567
|
-
function
|
|
7567
|
+
function tt(t) {
|
|
7568
7568
|
return t.length;
|
|
7569
7569
|
}
|
|
7570
7570
|
function wd(t) {
|
|
@@ -7599,7 +7599,7 @@ function Pw() {
|
|
|
7599
7599
|
function Tw() {
|
|
7600
7600
|
return ve = ze > 0 ? xe(jA, --ze) : 0, OA--, ve === 10 && (OA = 1, Gn--), ve;
|
|
7601
7601
|
}
|
|
7602
|
-
function
|
|
7602
|
+
function qe() {
|
|
7603
7603
|
return ve = ze < bd ? xe(jA, ze++) : 0, OA++, ve === 10 && (OA = 1, Gn++), ve;
|
|
7604
7604
|
}
|
|
7605
7605
|
function AA() {
|
|
@@ -7644,7 +7644,7 @@ function xo(t) {
|
|
|
7644
7644
|
return 0;
|
|
7645
7645
|
}
|
|
7646
7646
|
function kw(t) {
|
|
7647
|
-
return Gn = OA = 1, bd =
|
|
7647
|
+
return Gn = OA = 1, bd = tt(jA = t), ze = 0, [];
|
|
7648
7648
|
}
|
|
7649
7649
|
function Rw(t) {
|
|
7650
7650
|
return jA = "", t;
|
|
@@ -7654,16 +7654,16 @@ function ks(t) {
|
|
|
7654
7654
|
}
|
|
7655
7655
|
function Lw(t) {
|
|
7656
7656
|
for (; (ve = AA()) && ve < 33; )
|
|
7657
|
-
|
|
7657
|
+
qe();
|
|
7658
7658
|
return xo(t) > 2 || xo(ve) > 3 ? "" : " ";
|
|
7659
7659
|
}
|
|
7660
7660
|
function Mw(t, e) {
|
|
7661
|
-
for (; --e &&
|
|
7661
|
+
for (; --e && qe() && !(ve < 48 || ve > 102 || ve > 57 && ve < 65 || ve > 70 && ve < 97); )
|
|
7662
7662
|
;
|
|
7663
|
-
return Xn(t, Jr() + (e < 6 && AA() == 32 &&
|
|
7663
|
+
return Xn(t, Jr() + (e < 6 && AA() == 32 && qe() == 32));
|
|
7664
7664
|
}
|
|
7665
7665
|
function Eo(t) {
|
|
7666
|
-
for (;
|
|
7666
|
+
for (; qe(); )
|
|
7667
7667
|
switch (ve) {
|
|
7668
7668
|
case t:
|
|
7669
7669
|
return ze;
|
|
@@ -7675,20 +7675,20 @@ function Eo(t) {
|
|
|
7675
7675
|
t === 41 && Eo(t);
|
|
7676
7676
|
break;
|
|
7677
7677
|
case 92:
|
|
7678
|
-
|
|
7678
|
+
qe();
|
|
7679
7679
|
break;
|
|
7680
7680
|
}
|
|
7681
7681
|
return ze;
|
|
7682
7682
|
}
|
|
7683
7683
|
function jw(t, e) {
|
|
7684
|
-
for (;
|
|
7684
|
+
for (; qe() && t + ve !== 57; )
|
|
7685
7685
|
if (t + ve === 84 && AA() === 47)
|
|
7686
7686
|
break;
|
|
7687
|
-
return "/*" + Xn(e, ze - 1) + "*" + Ei(t === 47 ? t :
|
|
7687
|
+
return "/*" + Xn(e, ze - 1) + "*" + Ei(t === 47 ? t : qe());
|
|
7688
7688
|
}
|
|
7689
7689
|
function Qw(t) {
|
|
7690
7690
|
for (; !xo(AA()); )
|
|
7691
|
-
|
|
7691
|
+
qe();
|
|
7692
7692
|
return Xn(t, ze);
|
|
7693
7693
|
}
|
|
7694
7694
|
function Hw(t) {
|
|
@@ -7696,7 +7696,7 @@ function Hw(t) {
|
|
|
7696
7696
|
}
|
|
7697
7697
|
function Kr(t, e, A, r, n, s, o, i, a) {
|
|
7698
7698
|
for (var c = 0, l = 0, u = o, f = 0, h = 0, p = 0, v = 1, b = 1, y = 1, w = 0, g = "", x = n, C = s, m = r, E = g; b; )
|
|
7699
|
-
switch (p = w, w =
|
|
7699
|
+
switch (p = w, w = qe()) {
|
|
7700
7700
|
case 40:
|
|
7701
7701
|
if (p != 108 && xe(E, u - 1) == 58) {
|
|
7702
7702
|
Ur(E += _(ks(w), "&", "&\f"), "&\f", gd(c ? i[c - 1] : 0)) != -1 && (y = -1);
|
|
@@ -7720,14 +7720,14 @@ function Kr(t, e, A, r, n, s, o, i, a) {
|
|
|
7720
7720
|
switch (AA()) {
|
|
7721
7721
|
case 42:
|
|
7722
7722
|
case 47:
|
|
7723
|
-
qA(Yw(jw(
|
|
7723
|
+
qA(Yw(jw(qe(), Jr()), e, A, a), a);
|
|
7724
7724
|
break;
|
|
7725
7725
|
default:
|
|
7726
7726
|
E += "/";
|
|
7727
7727
|
}
|
|
7728
7728
|
break;
|
|
7729
7729
|
case 123 * v:
|
|
7730
|
-
i[c++] =
|
|
7730
|
+
i[c++] = tt(E) * y;
|
|
7731
7731
|
case 125 * v:
|
|
7732
7732
|
case 59:
|
|
7733
7733
|
case 0:
|
|
@@ -7736,7 +7736,7 @@ function Kr(t, e, A, r, n, s, o, i, a) {
|
|
|
7736
7736
|
case 125:
|
|
7737
7737
|
b = 0;
|
|
7738
7738
|
case 59 + l:
|
|
7739
|
-
y == -1 && (E = _(E, /\f/g, "")), h > 0 &&
|
|
7739
|
+
y == -1 && (E = _(E, /\f/g, "")), h > 0 && tt(E) - u && qA(h > 32 ? fc(E + ";", r, A, u - 1, a) : fc(_(E, " ", "") + ";", r, A, u - 2, a), a);
|
|
7740
7740
|
break;
|
|
7741
7741
|
case 59:
|
|
7742
7742
|
E += ";";
|
|
@@ -7759,7 +7759,7 @@ function Kr(t, e, A, r, n, s, o, i, a) {
|
|
|
7759
7759
|
c = l = h = 0, v = y = 1, g = E = "", u = o;
|
|
7760
7760
|
break;
|
|
7761
7761
|
case 58:
|
|
7762
|
-
u = 1 +
|
|
7762
|
+
u = 1 + tt(E), h = p;
|
|
7763
7763
|
default:
|
|
7764
7764
|
if (v < 1) {
|
|
7765
7765
|
if (w == 123)
|
|
@@ -7772,13 +7772,13 @@ function Kr(t, e, A, r, n, s, o, i, a) {
|
|
|
7772
7772
|
y = l > 0 ? 1 : (E += "\f", -1);
|
|
7773
7773
|
break;
|
|
7774
7774
|
case 44:
|
|
7775
|
-
i[c++] = (
|
|
7775
|
+
i[c++] = (tt(E) - 1) * y, y = 1;
|
|
7776
7776
|
break;
|
|
7777
7777
|
case 64:
|
|
7778
|
-
AA() === 45 && (E += ks(
|
|
7778
|
+
AA() === 45 && (E += ks(qe())), f = AA(), l = u = tt(g = E += Qw(Jr())), w++;
|
|
7779
7779
|
break;
|
|
7780
7780
|
case 45:
|
|
7781
|
-
p === 45 &&
|
|
7781
|
+
p === 45 && tt(E) == 2 && (v = 0);
|
|
7782
7782
|
}
|
|
7783
7783
|
}
|
|
7784
7784
|
return s;
|
|
@@ -7902,7 +7902,7 @@ function vd(t, e, A) {
|
|
|
7902
7902
|
case 5789:
|
|
7903
7903
|
case 5021:
|
|
7904
7904
|
case 4765:
|
|
7905
|
-
if (
|
|
7905
|
+
if (tt(t) - 1 - e > 6)
|
|
7906
7906
|
switch (xe(t, e + 1)) {
|
|
7907
7907
|
case 109:
|
|
7908
7908
|
if (xe(t, e + 4) !== 45)
|
|
@@ -7956,9 +7956,9 @@ function Fw(t, e, A, r) {
|
|
|
7956
7956
|
case pd:
|
|
7957
7957
|
return t.return = t.value + "{" + mn(t.children, r) + "}";
|
|
7958
7958
|
case zn:
|
|
7959
|
-
if (!
|
|
7959
|
+
if (!tt(t.value = t.props.join(","))) return "";
|
|
7960
7960
|
}
|
|
7961
|
-
return
|
|
7961
|
+
return tt(A = mn(t.children, r)) ? t.return = t.value + "{" + A + "}" : "";
|
|
7962
7962
|
}
|
|
7963
7963
|
function Ww(t) {
|
|
7964
7964
|
var e = wd(t);
|
|
@@ -8872,6 +8872,7 @@ const bn = S.div`
|
|
|
8872
8872
|
font-weight: bold;
|
|
8873
8873
|
cursor: ${({ isClickable: t }) => t ? "pointer" : "default"};
|
|
8874
8874
|
overflow: hidden;
|
|
8875
|
+
line-height: 16px;
|
|
8875
8876
|
`, _b = S.img`
|
|
8876
8877
|
width: 100%;
|
|
8877
8878
|
height: 100%;
|
|
@@ -10659,6 +10660,7 @@ const Cv = S.div`
|
|
|
10659
10660
|
font-size: 1.5em;
|
|
10660
10661
|
margin: 0;
|
|
10661
10662
|
font-weight: 400;
|
|
10663
|
+
color: #141414;
|
|
10662
10664
|
`, iy = S.p`
|
|
10663
10665
|
font-size: 14px;
|
|
10664
10666
|
margin: 0;
|
|
@@ -12477,7 +12479,7 @@ function $r(t, ...e) {
|
|
|
12477
12479
|
function at(t, ...e) {
|
|
12478
12480
|
throw Mi(t, ...e);
|
|
12479
12481
|
}
|
|
12480
|
-
function
|
|
12482
|
+
function Ue(t, ...e) {
|
|
12481
12483
|
return Mi(t, ...e);
|
|
12482
12484
|
}
|
|
12483
12485
|
function Li(t, e, A) {
|
|
@@ -12856,7 +12858,7 @@ function xf(t, e, A, r) {
|
|
|
12856
12858
|
class AC {
|
|
12857
12859
|
constructor(e) {
|
|
12858
12860
|
this.auth = e, this.timer = null, this.promise = new Promise((A, r) => {
|
|
12859
|
-
this.timer = setTimeout(() => r(
|
|
12861
|
+
this.timer = setTimeout(() => r(Ue(
|
|
12860
12862
|
this.auth,
|
|
12861
12863
|
"network-request-failed"
|
|
12862
12864
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -12872,7 +12874,7 @@ function Lr(t, e, A) {
|
|
|
12872
12874
|
appName: t.name
|
|
12873
12875
|
};
|
|
12874
12876
|
A.email && (r.email = A.email), A.phoneNumber && (r.phoneNumber = A.phoneNumber);
|
|
12875
|
-
const n =
|
|
12877
|
+
const n = Ue(t, e, r);
|
|
12876
12878
|
return n.customData._tokenResponse = A, n;
|
|
12877
12879
|
}
|
|
12878
12880
|
/**
|
|
@@ -14706,7 +14708,7 @@ St.PROVIDER_ID = "facebook.com";
|
|
|
14706
14708
|
* See the License for the specific language governing permissions and
|
|
14707
14709
|
* limitations under the License.
|
|
14708
14710
|
*/
|
|
14709
|
-
class
|
|
14711
|
+
class At extends mr {
|
|
14710
14712
|
constructor() {
|
|
14711
14713
|
super(
|
|
14712
14714
|
"google.com"
|
|
@@ -14728,8 +14730,8 @@ class tt extends mr {
|
|
|
14728
14730
|
*/
|
|
14729
14731
|
static credential(e, A) {
|
|
14730
14732
|
return uA._fromParams({
|
|
14731
|
-
providerId:
|
|
14732
|
-
signInMethod:
|
|
14733
|
+
providerId: At.PROVIDER_ID,
|
|
14734
|
+
signInMethod: At.GOOGLE_SIGN_IN_METHOD,
|
|
14733
14735
|
idToken: e,
|
|
14734
14736
|
accessToken: A
|
|
14735
14737
|
});
|
|
@@ -14740,7 +14742,7 @@ class tt extends mr {
|
|
|
14740
14742
|
* @param userCredential - The user credential.
|
|
14741
14743
|
*/
|
|
14742
14744
|
static credentialFromResult(e) {
|
|
14743
|
-
return
|
|
14745
|
+
return At.credentialFromTaggedObject(e);
|
|
14744
14746
|
}
|
|
14745
14747
|
/**
|
|
14746
14748
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -14749,7 +14751,7 @@ class tt extends mr {
|
|
|
14749
14751
|
* @param userCredential - The user credential.
|
|
14750
14752
|
*/
|
|
14751
14753
|
static credentialFromError(e) {
|
|
14752
|
-
return
|
|
14754
|
+
return At.credentialFromTaggedObject(e.customData || {});
|
|
14753
14755
|
}
|
|
14754
14756
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
14755
14757
|
if (!e)
|
|
@@ -14758,14 +14760,14 @@ class tt extends mr {
|
|
|
14758
14760
|
if (!A && !r)
|
|
14759
14761
|
return null;
|
|
14760
14762
|
try {
|
|
14761
|
-
return
|
|
14763
|
+
return At.credential(A, r);
|
|
14762
14764
|
} catch {
|
|
14763
14765
|
return null;
|
|
14764
14766
|
}
|
|
14765
14767
|
}
|
|
14766
14768
|
}
|
|
14767
|
-
|
|
14768
|
-
|
|
14769
|
+
At.GOOGLE_SIGN_IN_METHOD = "google.com";
|
|
14770
|
+
At.PROVIDER_ID = "google.com";
|
|
14769
14771
|
/**
|
|
14770
14772
|
* @license
|
|
14771
14773
|
* Copyright 2020 Google LLC
|
|
@@ -15943,7 +15945,7 @@ class Uf {
|
|
|
15943
15945
|
const ZC = new gr(2e3, 1e4);
|
|
15944
15946
|
async function _C(t, e, A) {
|
|
15945
15947
|
if (pt(t.app))
|
|
15946
|
-
return Promise.reject(
|
|
15948
|
+
return Promise.reject(Ue(
|
|
15947
15949
|
t,
|
|
15948
15950
|
"operation-not-supported-in-this-environment"
|
|
15949
15951
|
/* AuthErrorCode.OPERATION_NOT_SUPPORTED */
|
|
@@ -15978,7 +15980,7 @@ class $t extends Uf {
|
|
|
15978
15980
|
), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((A) => {
|
|
15979
15981
|
this.reject(A);
|
|
15980
15982
|
}), this.resolver._isIframeWebStorageSupported(this.auth, (A) => {
|
|
15981
|
-
A || this.reject(
|
|
15983
|
+
A || this.reject(Ue(
|
|
15982
15984
|
this.auth,
|
|
15983
15985
|
"web-storage-unsupported"
|
|
15984
15986
|
/* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
|
|
@@ -15990,7 +15992,7 @@ class $t extends Uf {
|
|
|
15990
15992
|
return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
|
|
15991
15993
|
}
|
|
15992
15994
|
cancel() {
|
|
15993
|
-
this.reject(
|
|
15995
|
+
this.reject(Ue(
|
|
15994
15996
|
this.auth,
|
|
15995
15997
|
"cancelled-popup-request"
|
|
15996
15998
|
/* AuthErrorCode.EXPIRED_POPUP_REQUEST */
|
|
@@ -16005,7 +16007,7 @@ class $t extends Uf {
|
|
|
16005
16007
|
if (!((r = (A = this.authWindow) === null || A === void 0 ? void 0 : A.window) === null || r === void 0) && r.closed) {
|
|
16006
16008
|
this.pollId = window.setTimeout(
|
|
16007
16009
|
() => {
|
|
16008
|
-
this.pollId = null, this.reject(
|
|
16010
|
+
this.pollId = null, this.reject(Ue(
|
|
16009
16011
|
this.auth,
|
|
16010
16012
|
"popup-closed-by-user"
|
|
16011
16013
|
/* AuthErrorCode.POPUP_CLOSED_BY_USER */
|
|
@@ -16146,7 +16148,7 @@ class i7 {
|
|
|
16146
16148
|
var r;
|
|
16147
16149
|
if (e.error && !Jf(e)) {
|
|
16148
16150
|
const n = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
|
|
16149
|
-
A.onError(
|
|
16151
|
+
A.onError(Ue(this.auth, n));
|
|
16150
16152
|
} else
|
|
16151
16153
|
A.onAuthEvent(e);
|
|
16152
16154
|
}
|
|
@@ -16279,7 +16281,7 @@ function p7(t) {
|
|
|
16279
16281
|
e(gapi.iframes.getContext());
|
|
16280
16282
|
},
|
|
16281
16283
|
ontimeout: () => {
|
|
16282
|
-
Jc(), A(
|
|
16284
|
+
Jc(), A(Ue(
|
|
16283
16285
|
t,
|
|
16284
16286
|
"network-request-failed"
|
|
16285
16287
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -16295,7 +16297,7 @@ function p7(t) {
|
|
|
16295
16297
|
else {
|
|
16296
16298
|
const i = yC("iframefcb");
|
|
16297
16299
|
return ot()[i] = () => {
|
|
16298
|
-
gapi.load ? o() : A(
|
|
16300
|
+
gapi.load ? o() : A(Ue(
|
|
16299
16301
|
t,
|
|
16300
16302
|
"network-request-failed"
|
|
16301
16303
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -16376,7 +16378,7 @@ async function x7(t) {
|
|
|
16376
16378
|
// Prevent iframe from closing on mouse out.
|
|
16377
16379
|
setHideOnLeave: !1
|
|
16378
16380
|
});
|
|
16379
|
-
const o =
|
|
16381
|
+
const o = Ue(
|
|
16380
16382
|
t,
|
|
16381
16383
|
"network-request-failed"
|
|
16382
16384
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -16779,7 +16781,7 @@ wC({
|
|
|
16779
16781
|
return new Promise((e, A) => {
|
|
16780
16782
|
const r = document.createElement("script");
|
|
16781
16783
|
r.setAttribute("src", t), r.onload = e, r.onerror = (n) => {
|
|
16782
|
-
const s =
|
|
16784
|
+
const s = Ue(
|
|
16783
16785
|
"internal-error"
|
|
16784
16786
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
16785
16787
|
);
|
|
@@ -16829,11 +16831,11 @@ function Kf(t, e) {
|
|
|
16829
16831
|
const { toString: J7 } = Object.prototype, { getPrototypeOf: Vi } = Object, es = /* @__PURE__ */ ((t) => (e) => {
|
|
16830
16832
|
const A = J7.call(e);
|
|
16831
16833
|
return t[A] || (t[A] = A.slice(8, -1).toLowerCase());
|
|
16832
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
16834
|
+
})(/* @__PURE__ */ Object.create(null)), $e = (t) => (t = t.toLowerCase(), (e) => es(e) === t), ts = (t) => (e) => typeof e === t, { isArray: WA } = Array, ar = ts("undefined");
|
|
16833
16835
|
function K7(t) {
|
|
16834
16836
|
return t !== null && !ar(t) && t.constructor !== null && !ar(t.constructor) && We(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
16835
16837
|
}
|
|
16836
|
-
const Zf =
|
|
16838
|
+
const Zf = $e("ArrayBuffer");
|
|
16837
16839
|
function Z7(t) {
|
|
16838
16840
|
let e;
|
|
16839
16841
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Zf(t.buffer), e;
|
|
@@ -16843,11 +16845,11 @@ const _7 = ts("string"), We = ts("function"), _f = ts("number"), As = (t) => t !
|
|
|
16843
16845
|
return !1;
|
|
16844
16846
|
const e = Vi(t);
|
|
16845
16847
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
16846
|
-
}, e4 =
|
|
16848
|
+
}, e4 = $e("Date"), t4 = $e("File"), A4 = $e("Blob"), r4 = $e("FileList"), n4 = (t) => As(t) && We(t.pipe), s4 = (t) => {
|
|
16847
16849
|
let e;
|
|
16848
16850
|
return t && (typeof FormData == "function" && t instanceof FormData || We(t.append) && ((e = es(t)) === "formdata" || // detect form-data instance
|
|
16849
16851
|
e === "object" && We(t.toString) && t.toString() === "[object FormData]"));
|
|
16850
|
-
}, o4 =
|
|
16852
|
+
}, o4 = $e("URLSearchParams"), [i4, a4, c4, l4] = ["ReadableStream", "Request", "Response", "Headers"].map($e), u4 = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
16851
16853
|
function br(t, e, { allOwnKeys: A = !1 } = {}) {
|
|
16852
16854
|
if (t === null || typeof t > "u")
|
|
16853
16855
|
return;
|
|
@@ -16923,12 +16925,12 @@ const d4 = (t, e, A, { allOwnKeys: r } = {}) => (br(e, (n, s) => {
|
|
|
16923
16925
|
for (; (A = t.exec(e)) !== null; )
|
|
16924
16926
|
r.push(A);
|
|
16925
16927
|
return r;
|
|
16926
|
-
}, y4 =
|
|
16928
|
+
}, y4 = $e("HTMLFormElement"), C4 = (t) => t.toLowerCase().replace(
|
|
16927
16929
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
16928
16930
|
function(A, r, n) {
|
|
16929
16931
|
return r.toUpperCase() + n;
|
|
16930
16932
|
}
|
|
16931
|
-
), tl = (({ hasOwnProperty: t }) => (e, A) => t.call(e, A))(Object.prototype), x4 =
|
|
16933
|
+
), tl = (({ hasOwnProperty: t }) => (e, A) => t.call(e, A))(Object.prototype), x4 = $e("RegExp"), Ah = (t, e) => {
|
|
16932
16934
|
const A = Object.getOwnPropertyDescriptors(t), r = {};
|
|
16933
16935
|
br(A, (n, s) => {
|
|
16934
16936
|
let o;
|
|
@@ -16988,7 +16990,7 @@ const S4 = (t) => {
|
|
|
16988
16990
|
return r;
|
|
16989
16991
|
};
|
|
16990
16992
|
return A(t, 0);
|
|
16991
|
-
}, P4 =
|
|
16993
|
+
}, P4 = $e("AsyncFunction"), T4 = (t) => t && (As(t) || We(t)) && We(t.then) && We(t.catch), M = {
|
|
16992
16994
|
isArray: WA,
|
|
16993
16995
|
isArrayBuffer: Zf,
|
|
16994
16996
|
isBuffer: K7,
|
|
@@ -17021,7 +17023,7 @@ const S4 = (t) => {
|
|
|
17021
17023
|
inherits: h4,
|
|
17022
17024
|
toFlatObject: p4,
|
|
17023
17025
|
kindOf: es,
|
|
17024
|
-
kindOfTest:
|
|
17026
|
+
kindOfTest: $e,
|
|
17025
17027
|
endsWith: g4,
|
|
17026
17028
|
toArray: m4,
|
|
17027
17029
|
forEachEntry: b4,
|
|
@@ -17291,14 +17293,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", z4
|
|
|
17291
17293
|
hasStandardBrowserEnv: F4,
|
|
17292
17294
|
hasStandardBrowserWebWorkerEnv: W4,
|
|
17293
17295
|
origin: z4
|
|
17294
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
17296
|
+
}, Symbol.toStringTag, { value: "Module" })), Je = {
|
|
17295
17297
|
...G4,
|
|
17296
17298
|
...Y4
|
|
17297
17299
|
};
|
|
17298
17300
|
function V4(t, e) {
|
|
17299
|
-
return rs(t, new
|
|
17301
|
+
return rs(t, new Je.classes.URLSearchParams(), Object.assign({
|
|
17300
17302
|
visitor: function(A, r, n, s) {
|
|
17301
|
-
return
|
|
17303
|
+
return Je.isNode && M.isBuffer(A) ? (this.append(r, A.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
17302
17304
|
}
|
|
17303
17305
|
}, e));
|
|
17304
17306
|
}
|
|
@@ -17392,8 +17394,8 @@ const vr = {
|
|
|
17392
17394
|
maxContentLength: -1,
|
|
17393
17395
|
maxBodyLength: -1,
|
|
17394
17396
|
env: {
|
|
17395
|
-
FormData:
|
|
17396
|
-
Blob:
|
|
17397
|
+
FormData: Je.classes.FormData,
|
|
17398
|
+
Blob: Je.classes.Blob
|
|
17397
17399
|
},
|
|
17398
17400
|
validateStatus: function(e) {
|
|
17399
17401
|
return e >= 200 && e < 300;
|
|
@@ -17676,7 +17678,7 @@ const Nn = (t, e, A = 3) => {
|
|
|
17676
17678
|
};
|
|
17677
17679
|
u[e ? "download" : "upload"] = !0, t(u);
|
|
17678
17680
|
}, A);
|
|
17679
|
-
}, n9 =
|
|
17681
|
+
}, n9 = Je.hasStandardBrowserEnv ? (
|
|
17680
17682
|
// Standard browser envs have full support of the APIs needed to test
|
|
17681
17683
|
// whether the request URL is of the same origin as current location.
|
|
17682
17684
|
function() {
|
|
@@ -17707,7 +17709,7 @@ const Nn = (t, e, A = 3) => {
|
|
|
17707
17709
|
return !0;
|
|
17708
17710
|
};
|
|
17709
17711
|
}()
|
|
17710
|
-
), s9 =
|
|
17712
|
+
), s9 = Je.hasStandardBrowserEnv ? (
|
|
17711
17713
|
// Standard browser envs support document.cookie
|
|
17712
17714
|
{
|
|
17713
17715
|
write(t, e, A, r, n, s) {
|
|
@@ -17817,14 +17819,14 @@ const hh = (t) => {
|
|
|
17817
17819
|
);
|
|
17818
17820
|
let a;
|
|
17819
17821
|
if (M.isFormData(A)) {
|
|
17820
|
-
if (
|
|
17822
|
+
if (Je.hasStandardBrowserEnv || Je.hasStandardBrowserWebWorkerEnv)
|
|
17821
17823
|
o.setContentType(void 0);
|
|
17822
17824
|
else if ((a = o.getContentType()) !== !1) {
|
|
17823
17825
|
const [c, ...l] = a ? a.split(";").map((u) => u.trim()).filter(Boolean) : [];
|
|
17824
17826
|
o.setContentType([c || "multipart/form-data", ...l].join("; "));
|
|
17825
17827
|
}
|
|
17826
17828
|
}
|
|
17827
|
-
if (
|
|
17829
|
+
if (Je.hasStandardBrowserEnv && (r && M.isFunction(r) && (r = r(e)), r || r !== !1 && n9(e.url))) {
|
|
17828
17830
|
const c = n && s && s9.read(s);
|
|
17829
17831
|
c && o.set(n, c);
|
|
17830
17832
|
}
|
|
@@ -17880,7 +17882,7 @@ const hh = (t) => {
|
|
|
17880
17882
|
l && (r(!h || h.type ? new zA(null, t, l) : h), l.abort(), l = null);
|
|
17881
17883
|
}, n.cancelToken && n.cancelToken.subscribe(a), n.signal && (n.signal.aborted ? a() : n.signal.addEventListener("abort", a)));
|
|
17882
17884
|
const f = t9(n.url);
|
|
17883
|
-
if (f &&
|
|
17885
|
+
if (f && Je.protocols.indexOf(f) === -1) {
|
|
17884
17886
|
r(new K("Unsupported protocol " + f + ":", K.ERR_BAD_REQUEST, t));
|
|
17885
17887
|
return;
|
|
17886
17888
|
}
|
|
@@ -17949,7 +17951,7 @@ const hh = (t) => {
|
|
|
17949
17951
|
}));
|
|
17950
17952
|
}, ns = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ph = ns && typeof ReadableStream == "function", Go = ns && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), f9 = ph && (() => {
|
|
17951
17953
|
let t = !1;
|
|
17952
|
-
const e = new Request(
|
|
17954
|
+
const e = new Request(Je.origin, {
|
|
17953
17955
|
body: new ReadableStream(),
|
|
17954
17956
|
method: "POST",
|
|
17955
17957
|
get duplex() {
|
|
@@ -18586,10 +18588,10 @@ async function I9(t) {
|
|
|
18586
18588
|
}
|
|
18587
18589
|
const N9 = async () => {
|
|
18588
18590
|
var A;
|
|
18589
|
-
const t = z7(U7), e = new
|
|
18591
|
+
const t = z7(U7), e = new At();
|
|
18590
18592
|
e.addScope("https://www.googleapis.com/auth/userinfo.email"), e.addScope("https://www.googleapis.com/auth/userinfo.profile");
|
|
18591
18593
|
try {
|
|
18592
|
-
const r = await _C(t, e), n = r.user, s = await ((A = t == null ? void 0 : t.currentUser) == null ? void 0 : A.getIdToken()), o =
|
|
18594
|
+
const r = await _C(t, e), n = r.user, s = await ((A = t == null ? void 0 : t.currentUser) == null ? void 0 : A.getIdToken()), o = At.credentialFromResult(r);
|
|
18593
18595
|
return {
|
|
18594
18596
|
user: n,
|
|
18595
18597
|
idToken: s,
|
|
@@ -18709,7 +18711,7 @@ const fA = ({
|
|
|
18709
18711
|
var E;
|
|
18710
18712
|
const t = ne(
|
|
18711
18713
|
(O) => O.chatSettingStore.config
|
|
18712
|
-
), e = be(), { client: A } =
|
|
18714
|
+
), e = be(), { client: A } = _e(), [r, n] = X(!1), [s, o] = X(""), [i, a] = X(""), [c, l] = X(null), [u, f] = X({ name: "", description: "" }), h = Ee(
|
|
18713
18715
|
() => s.length >= 3 && i.length >= 5,
|
|
18714
18716
|
[s, i]
|
|
18715
18717
|
), p = (O) => O.trim().length < 3 ? "Room name must be at least 3 characters." : "", v = (O) => O.trim().length < 5 ? "Room description must be at least 5 characters." : "", b = (O) => {
|
|
@@ -18742,7 +18744,7 @@ const fA = ({
|
|
|
18742
18744
|
s,
|
|
18743
18745
|
i
|
|
18744
18746
|
);
|
|
18745
|
-
A.getRoomsStanza(), e(
|
|
18747
|
+
A.getRoomsStanza(), e(Xe({ roomJID: H })), D && (A.setRoomImageStanza(H, D, "icon", "none"), e(IA({ jid: H, updates: { icon: D } }))), n(!1), f({ name: "", description: "" }), o(""), a("");
|
|
18746
18748
|
}
|
|
18747
18749
|
};
|
|
18748
18750
|
return /* @__PURE__ */ P(pe, { children: [
|
|
@@ -18885,6 +18887,7 @@ const fA = ({
|
|
|
18885
18887
|
&:hover {
|
|
18886
18888
|
background-color: ${({ active: t, bg: e }) => t ? Zd(e || "#0052CD") : "rgba(0, 0, 0, 0.05)"};
|
|
18887
18889
|
}
|
|
18890
|
+
color: #141414;
|
|
18888
18891
|
`, P9 = S.div`
|
|
18889
18892
|
display: flex;
|
|
18890
18893
|
gap: 16px;
|
|
@@ -19029,8 +19032,8 @@ function Q9() {
|
|
|
19029
19032
|
}
|
|
19030
19033
|
function x(W) {
|
|
19031
19034
|
if (typeof W == "object" && W !== null) {
|
|
19032
|
-
var
|
|
19033
|
-
switch (
|
|
19035
|
+
var et = W.$$typeof;
|
|
19036
|
+
switch (et) {
|
|
19034
19037
|
case e:
|
|
19035
19038
|
var xr = W.type;
|
|
19036
19039
|
switch (xr) {
|
|
@@ -19051,11 +19054,11 @@ function Q9() {
|
|
|
19051
19054
|
case o:
|
|
19052
19055
|
return ea;
|
|
19053
19056
|
default:
|
|
19054
|
-
return
|
|
19057
|
+
return et;
|
|
19055
19058
|
}
|
|
19056
19059
|
}
|
|
19057
19060
|
case A:
|
|
19058
|
-
return
|
|
19061
|
+
return et;
|
|
19059
19062
|
}
|
|
19060
19063
|
}
|
|
19061
19064
|
}
|
|
@@ -19280,11 +19283,11 @@ function F9() {
|
|
|
19280
19283
|
);
|
|
19281
19284
|
throw W.name = "Invariant Violation", W;
|
|
19282
19285
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
19283
|
-
var
|
|
19284
|
-
!T[
|
|
19286
|
+
var et = $ + ":" + Z;
|
|
19287
|
+
!T[et] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
19285
19288
|
R < 3 && (s(
|
|
19286
19289
|
"You are manually calling a React.PropTypes validation function for the `" + re + "` 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."
|
|
19287
|
-
), T[
|
|
19290
|
+
), T[et] = !0, R++);
|
|
19288
19291
|
}
|
|
19289
19292
|
}
|
|
19290
19293
|
return U[Z] == null ? J ? U[Z] === null ? new v("The " + Ae + " `" + re + "` is marked as required " + ("in `" + $ + "`, but its value is `null`.")) : new v("The " + Ae + " `" + re + "` is marked as required in " + ("`" + $ + "`, but its value is `undefined`.")) : null : Q(U, Z, $, Ae, re);
|
|
@@ -19369,8 +19372,8 @@ function F9() {
|
|
|
19369
19372
|
if (p(Z, Q[$]))
|
|
19370
19373
|
return null;
|
|
19371
19374
|
var Ae = JSON.stringify(Q, function(Ce, W) {
|
|
19372
|
-
var
|
|
19373
|
-
return
|
|
19375
|
+
var et = V(W);
|
|
19376
|
+
return et === "symbol" ? String(W) : W;
|
|
19374
19377
|
});
|
|
19375
19378
|
return new v("Invalid " + J + " `" + U + "` of value `" + String(Z) + "` " + ("supplied to `" + L + "`, expected one of " + Ae + "."));
|
|
19376
19379
|
}
|
|
@@ -19410,8 +19413,8 @@ function F9() {
|
|
|
19410
19413
|
return null;
|
|
19411
19414
|
W.data && r(W.data, "expectedType") && Ae.push(W.data.expectedType);
|
|
19412
19415
|
}
|
|
19413
|
-
var
|
|
19414
|
-
return new v("Invalid " + Z + " `" + $ + "` supplied to " + ("`" + U + "`" +
|
|
19416
|
+
var et = Ae.length > 0 ? ", expected one of type [" + Ae.join(", ") + "]" : "";
|
|
19417
|
+
return new v("Invalid " + Z + " `" + $ + "` supplied to " + ("`" + U + "`" + et + "."));
|
|
19415
19418
|
}
|
|
19416
19419
|
return b(j);
|
|
19417
19420
|
}
|
|
@@ -19615,10 +19618,10 @@ Nh.prototype = {
|
|
|
19615
19618
|
}
|
|
19616
19619
|
};
|
|
19617
19620
|
var X9 = Nh, Qr = Dh;
|
|
19618
|
-
function
|
|
19621
|
+
function rt(t, e) {
|
|
19619
19622
|
this.totalCount = t, this.dataCount = e;
|
|
19620
19623
|
}
|
|
19621
|
-
|
|
19624
|
+
rt.RS_BLOCK_TABLE = [
|
|
19622
19625
|
// L
|
|
19623
19626
|
// M
|
|
19624
19627
|
// Q
|
|
@@ -19824,30 +19827,30 @@ At.RS_BLOCK_TABLE = [
|
|
|
19824
19827
|
[34, 54, 24, 34, 55, 25],
|
|
19825
19828
|
[20, 45, 15, 61, 46, 16]
|
|
19826
19829
|
];
|
|
19827
|
-
|
|
19828
|
-
var A =
|
|
19830
|
+
rt.getRSBlocks = function(t, e) {
|
|
19831
|
+
var A = rt.getRsBlockTable(t, e);
|
|
19829
19832
|
if (A == null)
|
|
19830
19833
|
throw new Error("bad rs block @ typeNumber:" + t + "/errorCorrectLevel:" + e);
|
|
19831
19834
|
for (var r = A.length / 3, n = new Array(), s = 0; s < r; s++)
|
|
19832
19835
|
for (var o = A[s * 3 + 0], i = A[s * 3 + 1], a = A[s * 3 + 2], c = 0; c < o; c++)
|
|
19833
|
-
n.push(new
|
|
19836
|
+
n.push(new rt(i, a));
|
|
19834
19837
|
return n;
|
|
19835
19838
|
};
|
|
19836
|
-
|
|
19839
|
+
rt.getRsBlockTable = function(t, e) {
|
|
19837
19840
|
switch (e) {
|
|
19838
19841
|
case Qr.L:
|
|
19839
|
-
return
|
|
19842
|
+
return rt.RS_BLOCK_TABLE[(t - 1) * 4 + 0];
|
|
19840
19843
|
case Qr.M:
|
|
19841
|
-
return
|
|
19844
|
+
return rt.RS_BLOCK_TABLE[(t - 1) * 4 + 1];
|
|
19842
19845
|
case Qr.Q:
|
|
19843
|
-
return
|
|
19846
|
+
return rt.RS_BLOCK_TABLE[(t - 1) * 4 + 2];
|
|
19844
19847
|
case Qr.H:
|
|
19845
|
-
return
|
|
19848
|
+
return rt.RS_BLOCK_TABLE[(t - 1) * 4 + 3];
|
|
19846
19849
|
default:
|
|
19847
19850
|
return;
|
|
19848
19851
|
}
|
|
19849
19852
|
};
|
|
19850
|
-
var q9 =
|
|
19853
|
+
var q9 = rt;
|
|
19851
19854
|
function Bh() {
|
|
19852
19855
|
this.buffer = new Array(), this.length = 0;
|
|
19853
19856
|
}
|
|
@@ -20093,10 +20096,10 @@ var Sh = sn, Ye = Ih, El = Sh, J9 = Oh, Nt = {
|
|
|
20093
20096
|
return A += u * 10, A;
|
|
20094
20097
|
}
|
|
20095
20098
|
}, K9 = De, Z9 = X9, Ph = q9, Th = U9, Gt = K9, _9 = Sh;
|
|
20096
|
-
function
|
|
20099
|
+
function nt(t, e) {
|
|
20097
20100
|
this.typeNumber = t, this.errorCorrectLevel = e, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
|
|
20098
20101
|
}
|
|
20099
|
-
var He =
|
|
20102
|
+
var He = nt.prototype;
|
|
20100
20103
|
He.addData = function(t) {
|
|
20101
20104
|
var e = new Z9(t);
|
|
20102
20105
|
this.dataList.push(e), this.dataCache = null;
|
|
@@ -20133,7 +20136,7 @@ He.makeImpl = function(t, e) {
|
|
|
20133
20136
|
for (var r = 0; r < this.moduleCount; r++)
|
|
20134
20137
|
this.modules[A][r] = null;
|
|
20135
20138
|
}
|
|
20136
|
-
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(t, e), this.typeNumber >= 7 && this.setupTypeNumber(t), this.dataCache == null && (this.dataCache =
|
|
20139
|
+
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(t, e), this.typeNumber >= 7 && this.setupTypeNumber(t), this.dataCache == null && (this.dataCache = nt.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, e);
|
|
20137
20140
|
};
|
|
20138
20141
|
He.setupPositionProbePattern = function(t, e) {
|
|
20139
20142
|
for (var A = -1; A <= 7; A++)
|
|
@@ -20212,9 +20215,9 @@ He.mapData = function(t, e) {
|
|
|
20212
20215
|
}
|
|
20213
20216
|
}
|
|
20214
20217
|
};
|
|
20215
|
-
|
|
20216
|
-
|
|
20217
|
-
|
|
20218
|
+
nt.PAD0 = 236;
|
|
20219
|
+
nt.PAD1 = 17;
|
|
20220
|
+
nt.createData = function(t, e, A) {
|
|
20218
20221
|
for (var r = Ph.getRSBlocks(t, e), n = new Th(), s = 0; s < A.length; s++) {
|
|
20219
20222
|
var o = A[s];
|
|
20220
20223
|
n.put(o.mode, 4), n.put(o.getLength(), Gt.getLengthInBits(o.mode, t)), o.write(n);
|
|
@@ -20225,11 +20228,11 @@ rt.createData = function(t, e, A) {
|
|
|
20225
20228
|
throw new Error("code length overflow. (" + n.getLengthInBits() + ">" + i * 8 + ")");
|
|
20226
20229
|
for (n.getLengthInBits() + 4 <= i * 8 && n.put(0, 4); n.getLengthInBits() % 8 != 0; )
|
|
20227
20230
|
n.putBit(!1);
|
|
20228
|
-
for (; !(n.getLengthInBits() >= i * 8 || (n.put(
|
|
20229
|
-
n.put(
|
|
20230
|
-
return
|
|
20231
|
+
for (; !(n.getLengthInBits() >= i * 8 || (n.put(nt.PAD0, 8), n.getLengthInBits() >= i * 8)); )
|
|
20232
|
+
n.put(nt.PAD1, 8);
|
|
20233
|
+
return nt.createBytes(n, r);
|
|
20231
20234
|
};
|
|
20232
|
-
|
|
20235
|
+
nt.createBytes = function(t, e) {
|
|
20233
20236
|
for (var A = 0, r = 0, n = 0, s = new Array(e.length), o = new Array(e.length), i = 0; i < e.length; i++) {
|
|
20234
20237
|
var a = e[i].dataCount, c = e[i].totalCount - a;
|
|
20235
20238
|
r = Math.max(r, a), n = Math.max(n, c), s[i] = new Array(a);
|
|
@@ -20253,7 +20256,7 @@ rt.createBytes = function(t, e) {
|
|
|
20253
20256
|
l < o[i].length && (b[y++] = o[i][l]);
|
|
20254
20257
|
return b;
|
|
20255
20258
|
};
|
|
20256
|
-
var $9 =
|
|
20259
|
+
var $9 = nt, _i = {};
|
|
20257
20260
|
Object.defineProperty(_i, "__esModule", {
|
|
20258
20261
|
value: !0
|
|
20259
20262
|
});
|
|
@@ -20468,7 +20471,7 @@ const Mh = S.div`
|
|
|
20468
20471
|
var l, u;
|
|
20469
20472
|
const [e, A] = X(!1), [r, n] = X(!1), s = be();
|
|
20470
20473
|
ne((f) => f.chatSettingStore);
|
|
20471
|
-
const { client: o } =
|
|
20474
|
+
const { client: o } = _e(), i = ne((f) => zg(f));
|
|
20472
20475
|
ge(() => {
|
|
20473
20476
|
var f;
|
|
20474
20477
|
return A(!0), o.getRoomMembersStanza(i.jid), ((f = i.roomMembers) == null ? void 0 : f.length) > 0 && A(!1), () => {
|
|
@@ -20699,7 +20702,7 @@ const D5 = ({
|
|
|
20699
20702
|
mimetype: A
|
|
20700
20703
|
}) => {
|
|
20701
20704
|
const r = be(), n = (s) => {
|
|
20702
|
-
r(kn({ fileName: t, fileURL: e, mimetype: A })), r(
|
|
20705
|
+
r(kn({ fileName: t, fileURL: e, mimetype: A })), r(Ke(fe.FILE_PREVIEW)), s.preventDefault(), s.stopPropagation();
|
|
20703
20706
|
};
|
|
20704
20707
|
return /* @__PURE__ */ d(C5, { children: /* @__PURE__ */ d(
|
|
20705
20708
|
E5,
|
|
@@ -21486,7 +21489,7 @@ const Nl = S.div`
|
|
|
21486
21489
|
}, $5 = ({
|
|
21487
21490
|
handleCloseModal: t
|
|
21488
21491
|
}) => {
|
|
21489
|
-
const e = be(), { client: A } =
|
|
21492
|
+
const e = be(), { client: A } = _e(), { config: r, user: n, selectedUser: s, langSource: o } = ne(
|
|
21490
21493
|
(m) => m.chatSettingStore
|
|
21491
21494
|
), [i, a] = X(!1), [c, l] = X(!1), u = ee(() => {
|
|
21492
21495
|
e(hu()), t();
|
|
@@ -21525,7 +21528,7 @@ const Nl = S.div`
|
|
|
21525
21528
|
`Private chat ${N}`,
|
|
21526
21529
|
B
|
|
21527
21530
|
);
|
|
21528
|
-
I && (await A.inviteRoomRequestStanza(E, I), await A.getRoomsStanza()), l(!1), e(
|
|
21531
|
+
I && (await A.inviteRoomRequestStanza(E, I), await A.getRoomsStanza()), l(!1), e(Xe({ roomJID: I })), e(Ke());
|
|
21529
21532
|
}, [s]), w = s ?? n, g = () => {
|
|
21530
21533
|
if (o)
|
|
21531
21534
|
return p.find((m) => m.id === o);
|
|
@@ -21614,7 +21617,7 @@ const Nl = S.div`
|
|
|
21614
21617
|
],
|
|
21615
21618
|
[]
|
|
21616
21619
|
), A = be(), r = ee((n) => {
|
|
21617
|
-
A(
|
|
21620
|
+
A(Ke(n));
|
|
21618
21621
|
}, []);
|
|
21619
21622
|
return /* @__PURE__ */ P(lt, { children: [
|
|
21620
21623
|
/* @__PURE__ */ d(
|
|
@@ -21891,7 +21894,7 @@ const Nl = S.div`
|
|
|
21891
21894
|
onRoomClick: A,
|
|
21892
21895
|
isSmallScreen: r
|
|
21893
21896
|
}) => {
|
|
21894
|
-
const { client: n, setClient: s } =
|
|
21897
|
+
const { client: n, setClient: s } = _e(), [o, i] = X(!1), [a, c] = X(""), l = be(), { config: u } = Vt(), { activeRoomJID: f } = ne((C) => C.rooms), h = we(null), p = ee((C) => {
|
|
21895
21898
|
h.current && !h.current.contains(C.target) && i(!1);
|
|
21896
21899
|
}, []), v = ee(
|
|
21897
21900
|
(C) => {
|
|
@@ -21933,14 +21936,14 @@ const Nl = S.div`
|
|
|
21933
21936
|
label: "Profile",
|
|
21934
21937
|
icon: null,
|
|
21935
21938
|
onClick: () => {
|
|
21936
|
-
l(
|
|
21939
|
+
l(Ke(fe.PROFILE)), console.log("Profile clicked");
|
|
21937
21940
|
}
|
|
21938
21941
|
},
|
|
21939
21942
|
{
|
|
21940
21943
|
label: "Settings",
|
|
21941
21944
|
icon: null,
|
|
21942
21945
|
onClick: () => {
|
|
21943
|
-
l(
|
|
21946
|
+
l(Ke(fe.SETTINGS)), console.log("Settings clicked");
|
|
21944
21947
|
}
|
|
21945
21948
|
},
|
|
21946
21949
|
{
|
|
@@ -22046,12 +22049,16 @@ const Nl = S.div`
|
|
|
22046
22049
|
currentRoom: t,
|
|
22047
22050
|
handleBackClick: e
|
|
22048
22051
|
}) => {
|
|
22049
|
-
const A = be(), { client: r } =
|
|
22050
|
-
A(
|
|
22052
|
+
const A = be(), { client: r } = _e(), { roomsList: n, activeRoomJID: s } = lA(t.jid), { composing: o } = lA(t.jid).room, { config: i } = Vt(), a = (l) => {
|
|
22053
|
+
A(Xe({ roomJID: l.jid })), A(tA({ chatJID: l.jid, loading: !0 }));
|
|
22051
22054
|
}, c = ee(() => {
|
|
22052
|
-
r.leaveTheRoomStanza(s), A(G1({ jid: s }))
|
|
22055
|
+
if (r.leaveTheRoomStanza(s), A(G1({ jid: s })), Object.keys(n).length < 1 || s === Object.keys(n)[0]) {
|
|
22056
|
+
const u = `${window.location.pathname}`;
|
|
22057
|
+
window.history.pushState(null, "", u), A(Xe({ roomJID: null }));
|
|
22058
|
+
return;
|
|
22059
|
+
}
|
|
22053
22060
|
const l = Object.keys(n)[0] || null;
|
|
22054
|
-
l && A(
|
|
22061
|
+
l && A(Xe({ roomJID: l }));
|
|
22055
22062
|
}, [s, n, A, r]);
|
|
22056
22063
|
return /* @__PURE__ */ P(Ob, { children: [
|
|
22057
22064
|
/* @__PURE__ */ P("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
@@ -22073,7 +22080,7 @@ const Nl = S.div`
|
|
|
22073
22080
|
/* @__PURE__ */ P(
|
|
22074
22081
|
Sb,
|
|
22075
22082
|
{
|
|
22076
|
-
onClick: () => A(
|
|
22083
|
+
onClick: () => A(Ke(fe.CHAT_PROFILE)),
|
|
22077
22084
|
children: [
|
|
22078
22085
|
/* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(
|
|
22079
22086
|
fA,
|
|
@@ -22207,7 +22214,7 @@ const Nl = S.div`
|
|
|
22207
22214
|
o.set("chatId", s);
|
|
22208
22215
|
const i = `${window.location.pathname}?${o.toString()}`;
|
|
22209
22216
|
window.history.pushState(null, "", i);
|
|
22210
|
-
} else !t && Object.values(e).length > 0 && r(
|
|
22217
|
+
} else !t && Object.values(e).length > 0 && r(Xe({ roomJID: (n = e[0]) == null ? void 0 : n.jid }));
|
|
22211
22218
|
return () => {
|
|
22212
22219
|
if (A != null && A.setRoomJidInPath) {
|
|
22213
22220
|
const s = new URLSearchParams(window.location.search);
|
|
@@ -22218,7 +22225,7 @@ const Nl = S.div`
|
|
|
22218
22225
|
};
|
|
22219
22226
|
}, [t, e == null ? void 0 : e.length]);
|
|
22220
22227
|
}, Yh = () => {
|
|
22221
|
-
const { config: t, langSource: e } = Vt(), { client: A } =
|
|
22228
|
+
const { config: t, langSource: e } = Vt(), { client: A } = _e(), r = be(), {
|
|
22222
22229
|
user: n,
|
|
22223
22230
|
// activeRoomJID,
|
|
22224
22231
|
editAction: s
|
|
@@ -22315,7 +22322,7 @@ const Nl = S.div`
|
|
|
22315
22322
|
sendEditMessage: i
|
|
22316
22323
|
};
|
|
22317
22324
|
}, gx = (t, e, A, r) => {
|
|
22318
|
-
const { client: n } =
|
|
22325
|
+
const { client: n } = _e(), s = be();
|
|
22319
22326
|
ge(() => {
|
|
22320
22327
|
var a;
|
|
22321
22328
|
const o = async () => {
|
|
@@ -22328,7 +22335,7 @@ const Nl = S.div`
|
|
|
22328
22335
|
}), n.getRoomsStanza(), o());
|
|
22329
22336
|
}, [t, Object.keys(e).length]);
|
|
22330
22337
|
}, mx = () => {
|
|
22331
|
-
const { client: t } =
|
|
22338
|
+
const { client: t } = _e(), { activeRoomJID: e } = ne((s) => s.rooms), { user: A } = Vt(), r = ee(() => {
|
|
22332
22339
|
t.sendTypingRequestStanza(
|
|
22333
22340
|
e,
|
|
22334
22341
|
`${A.firstName} ${A.lastName}`,
|
|
@@ -22350,7 +22357,7 @@ const Nl = S.div`
|
|
|
22350
22357
|
}, Ol = Le.memo(
|
|
22351
22358
|
({ CustomMessageComponent: t, handleBackClick: e }) => {
|
|
22352
22359
|
var E, O, B, N;
|
|
22353
|
-
const { client: A } =
|
|
22360
|
+
const { client: A } = _e(), r = be(), [n, s] = X(!1), { user: o, config: i } = Vt(), {
|
|
22354
22361
|
roomsList: a,
|
|
22355
22362
|
activeRoomJID: c,
|
|
22356
22363
|
editAction: l,
|
|
@@ -22467,7 +22474,7 @@ const Nl = S.div`
|
|
|
22467
22474
|
}) => {
|
|
22468
22475
|
const r = be();
|
|
22469
22476
|
return /* @__PURE__ */ d(v5, { onClick: () => {
|
|
22470
|
-
r(kn({ fileName: t, fileURL: e, mimetype: A })), r(
|
|
22477
|
+
r(kn({ fileName: t, fileURL: e, mimetype: A })), r(Ke(fe.FILE_PREVIEW));
|
|
22471
22478
|
}, children: /* @__PURE__ */ d(y5, { children: t }) });
|
|
22472
22479
|
}, bx = ({
|
|
22473
22480
|
fileURL: t,
|
|
@@ -22475,7 +22482,7 @@ const Nl = S.div`
|
|
|
22475
22482
|
mimetype: A
|
|
22476
22483
|
}) => {
|
|
22477
22484
|
const r = be(), n = () => {
|
|
22478
|
-
r(kn({ fileName: e, fileURL: t, mimetype: A })), r(
|
|
22485
|
+
r(kn({ fileName: e, fileURL: t, mimetype: A })), r(Ke(fe.FILE_PREVIEW));
|
|
22479
22486
|
};
|
|
22480
22487
|
return /* @__PURE__ */ d(w5, { children: t ? /* @__PURE__ */ d(
|
|
22481
22488
|
"img",
|
|
@@ -23848,7 +23855,7 @@ const Dx = ({ src: t }) => {
|
|
|
23848
23855
|
}, f = () => {
|
|
23849
23856
|
l.current && (clearTimeout(l.current), l.current = null);
|
|
23850
23857
|
}, h = (m) => {
|
|
23851
|
-
n(
|
|
23858
|
+
n(Ke(fe.PROFILE)), n(hu(m));
|
|
23852
23859
|
}, p = () => {
|
|
23853
23860
|
if (n(Ht({ isEdit: !1 })), !A && t.mainMessage) {
|
|
23854
23861
|
const m = JSON.parse(t.mainMessage);
|
|
@@ -24203,7 +24210,7 @@ const Dx = ({ src: t }) => {
|
|
|
24203
24210
|
right: 0;
|
|
24204
24211
|
}
|
|
24205
24212
|
`, Gx = ({ children: t, modal: e, setOpenModal: A }) => {
|
|
24206
|
-
const r = be(), n = () => A(), s = () => r(
|
|
24213
|
+
const r = be(), n = () => A(), s = () => r(Ke(fe.SETTINGS));
|
|
24207
24214
|
return e && /* @__PURE__ */ P(Pi, { id: "modal-background", style: { position: "absolute" }, children: [
|
|
24208
24215
|
(() => {
|
|
24209
24216
|
const i = tx[e];
|
|
@@ -24239,7 +24246,7 @@ const Dx = ({ src: t }) => {
|
|
|
24239
24246
|
customMessageComponent: A
|
|
24240
24247
|
}) => {
|
|
24241
24248
|
var E, O;
|
|
24242
|
-
const { client: r } =
|
|
24249
|
+
const { client: r } = _e(), n = be(), { loading: s, roomsList: o, editAction: i } = lA(), { config: a } = Vt(), {
|
|
24243
24250
|
sendMessage: c,
|
|
24244
24251
|
sendMedia: l,
|
|
24245
24252
|
sendEditMessage: u
|
|
@@ -24543,7 +24550,7 @@ const Dx = ({ src: t }) => {
|
|
|
24543
24550
|
}, [window.innerWidth]);
|
|
24544
24551
|
const b = (Y) => {
|
|
24545
24552
|
h(Y);
|
|
24546
|
-
}, y = be(), { client: w, initializeClient: g, setClient: x } =
|
|
24553
|
+
}, y = be(), { client: w, initializeClient: g, setClient: x } = _e(), { rooms: C, activeRoomJID: m } = ne(
|
|
24547
24554
|
(Y) => Y.rooms
|
|
24548
24555
|
), E = Ee(() => {
|
|
24549
24556
|
var Y, V;
|
|
@@ -24552,7 +24559,7 @@ const Dx = ({ src: t }) => {
|
|
|
24552
24559
|
(te) => te == null ? void 0 : te.activeMessage
|
|
24553
24560
|
);
|
|
24554
24561
|
}, [C, m]), O = (Y) => {
|
|
24555
|
-
y(
|
|
24562
|
+
y(Xe({ roomJID: Y.jid })), m !== Y.jid && y(tA({ chatJID: Y.jid, loading: !0 })), y(Ht({ isEdit: !1 })), b(!0);
|
|
24556
24563
|
}, B = () => {
|
|
24557
24564
|
w.deleteMessageStanza(i.roomJid, i.messageId), y(pn({ isDeleteModal: !1 }));
|
|
24558
24565
|
}, N = () => {
|
|
@@ -24564,10 +24571,10 @@ const Dx = ({ src: t }) => {
|
|
|
24564
24571
|
const Y = window.location.href, G = new URL(Y).searchParams.get("chatId");
|
|
24565
24572
|
if (G) {
|
|
24566
24573
|
const Q = G.split("@")[0];
|
|
24567
|
-
y(
|
|
24574
|
+
y(Xe({ roomJID: Q + yi }));
|
|
24568
24575
|
}
|
|
24569
24576
|
}, []), ge(() => {
|
|
24570
|
-
n && y(
|
|
24577
|
+
n && y(Xe({ roomJID: n })), (async () => {
|
|
24571
24578
|
var V, te, G;
|
|
24572
24579
|
y(P1(r));
|
|
24573
24580
|
try {
|
|
@@ -24671,7 +24678,7 @@ const Dx = ({ src: t }) => {
|
|
|
24671
24678
|
Gx,
|
|
24672
24679
|
{
|
|
24673
24680
|
modal: o,
|
|
24674
|
-
setOpenModal: (Y) => y(
|
|
24681
|
+
setOpenModal: (Y) => y(Ke(Y))
|
|
24675
24682
|
}
|
|
24676
24683
|
)
|
|
24677
24684
|
]
|