@ethora/chat-component 26.7.8 → 26.7.9
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/{ChatProfileModal-k4_0ol-1.js → ChatProfileModal-D4B6nVkl.js} +3 -3
- package/dist/{FilePreviewModal-BYoSZ4d1.js → FilePreviewModal-DxXBzYVJ.js} +1 -1
- package/dist/{ManageDataModal-Dje7zTG4.js → ManageDataModal-P_5uJrLo.js} +2 -2
- package/dist/{MarkdownBody-Cm3GPQGA.js → MarkdownBody-DJuU5j5G.js} +1 -1
- package/dist/{SideDrawer-DWeOHKWM.js → SideDrawer-CT108Ag1.js} +1 -1
- package/dist/{UserProfileModal-CUcGYJb9.js → UserProfileModal-BTmSeeuM.js} +3 -3
- package/dist/{UserSettingsModal-LWwOt5TY.js → UserSettingsModal-CjkqSAhD.js} +2 -2
- package/dist/{VideoCallOverlay-Dw_ydJ2K.js → VideoCallOverlay-D2u_n0s-.js} +1 -1
- package/dist/{VisibilityModal-D06gXwjS.js → VisibilityModal-BsbvHoF6.js} +2 -2
- package/dist/{handleCopyClick-BOESIBUL.js → handleCopyClick-CdTri-Fg.js} +1 -1
- package/dist/{main-SdAeI1xI.js → main-BNdWGLpK.js} +72 -66
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as E, jsxs as j, Fragment as gt } from "react/jsx-runtime";
|
|
2
2
|
import ke, { useRef as yt, useState as ee, useMemo as se } from "react";
|
|
3
|
-
import { S as bt, f as qt, b as Tt, D as he, a as pe, e as Ft, g as zt, h as Fe, i as Qt, j as Ht, k as Yt, l as ze } from "./SideDrawer-
|
|
4
|
-
import { h as Wt, P as Gt, a as Kt, c as Xt, D as Jt, d as Vt, e as Qe, f as He } from "./handleCopyClick-
|
|
5
|
-
import { m as Zt, b as Et, n as de, a1 as er, B as te, v as W, a as Ne, u as fe, a2 as $e, D as Ct, w as wt, a3 as Rt, a4 as Pt, a5 as xt, a6 as tr, a7 as Be, a8 as rr, a9 as nr, $ as or, F as _t, X as ar, aa as ir, ab as Ie, ac as sr, ad as ye, ae as St, P as Mt, T as At, t as lr, af as ur, ag as cr, ah as fr, ai as dr, aj as hr, o as Ye, ak as pr, al as vr, am as mr, an as gr, ao as yr, ap as We, aq as br, ar as Tr, U as Er, as as Cr, at as wr, M as Rr, G as Pr, au as Ge } from "./main-
|
|
3
|
+
import { S as bt, f as qt, b as Tt, D as he, a as pe, e as Ft, g as zt, h as Fe, i as Qt, j as Ht, k as Yt, l as ze } from "./SideDrawer-CT108Ag1.js";
|
|
4
|
+
import { h as Wt, P as Gt, a as Kt, c as Xt, D as Jt, d as Vt, e as Qe, f as He } from "./handleCopyClick-CdTri-Fg.js";
|
|
5
|
+
import { m as Zt, b as Et, n as de, a1 as er, B as te, v as W, a as Ne, u as fe, a2 as $e, D as Ct, w as wt, a3 as Rt, a4 as Pt, a5 as xt, a6 as tr, a7 as Be, a8 as rr, a9 as nr, $ as or, F as _t, X as ar, aa as ir, ab as Ie, ac as sr, ad as ye, ae as St, P as Mt, T as At, t as lr, af as ur, ag as cr, ah as fr, ai as dr, aj as hr, o as Ye, ak as pr, al as vr, am as mr, an as gr, ao as yr, ap as We, aq as br, ar as Tr, U as Er, as as Cr, at as wr, M as Rr, G as Pr, au as Ge } from "./main-BNdWGLpK.js";
|
|
6
6
|
var le = {}, ve = { exports: {} }, me = { exports: {} }, k = {};
|
|
7
7
|
var Ke;
|
|
8
8
|
function xr() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, jsxs as B } from "react/jsx-runtime";
|
|
2
2
|
import te, { useState as H, useRef as z, useEffect as O, useMemo as $, useCallback as k } from "react";
|
|
3
|
-
import { n as le, b as pe, aK as we, ab as ve, v as X, B as V, aL as xe, aM as be, av as ye, aN as Ee, aO as Le, aP as ue, aQ as ne, a as Ce, aG as Me, u as q, a2 as Re, aR as re, ap as Pe, al as J, aS as ke, aT as Se, aU as Te, aV as Ae, aW as Ie, aX as Xe, aY as Ye, aZ as ze, a_ as Oe, aw as De, a$ as Fe, b0 as Ne, au as Be, b1 as He, t as Ue } from "./main-
|
|
3
|
+
import { n as le, b as pe, aK as we, ab as ve, v as X, B as V, aL as xe, aM as be, av as ye, aN as Ee, aO as Le, aP as ue, aQ as ne, a as Ce, aG as Me, u as q, a2 as Re, aR as re, ap as Pe, al as J, aS as ke, aT as Se, aU as Te, aV as Ae, aW as Ie, aX as Xe, aY as Ye, aZ as ze, a_ as Oe, aw as De, a$ as Fe, b0 as Ne, au as Be, b1 as He, t as Ue } from "./main-BNdWGLpK.js";
|
|
4
4
|
function oe(t, i) {
|
|
5
5
|
let o;
|
|
6
6
|
return (...E) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, Fragment as T, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useCallback as M } from "react";
|
|
3
|
-
import { av as B, v as t, aw as I, ax as w, B as j, u as z, n as F, F as E, ay as R, J as U, t as x, az as A, aA as $, aB as O, aC as H } from "./main-
|
|
4
|
-
import { S as J, D as f, a as u, b as D, e as v, f as b } from "./SideDrawer-
|
|
3
|
+
import { av as B, v as t, aw as I, ax as w, B as j, u as z, n as F, F as E, ay as R, J as U, t as x, az as A, aA as $, aB as O, aC as H } from "./main-BNdWGLpK.js";
|
|
4
|
+
import { S as J, D as f, a as u, b as D, e as v, f as b } from "./SideDrawer-CT108Ag1.js";
|
|
5
5
|
t(I)`
|
|
6
6
|
display: flex;
|
|
7
7
|
box-sizing: border-box;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as fs, jsx as ie, Fragment as hs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { m as ei } from "./main-
|
|
3
|
+
import { m as ei } from "./main-BNdWGLpK.js";
|
|
4
4
|
function zr(e) {
|
|
5
5
|
const t = [], n = String(e || "");
|
|
6
6
|
let r = n.indexOf(","), u = 0, i = !1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useId as f, useRef as v } from "react";
|
|
3
|
-
import { n as u, w as g, aF as m, aG as w, B as b, aH as y, v as e, aI as D, aJ as k } from "./main-
|
|
3
|
+
import { n as u, w as g, aF as m, aG as w, B as b, aH as y, v as e, aI as D, aJ as k } from "./main-BNdWGLpK.js";
|
|
4
4
|
const c = 767, R = `${c}px`, z = e.div`
|
|
5
5
|
position: relative;
|
|
6
6
|
pointer-events: auto;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as f, Fragment as B, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as me, useState as D, useCallback as S, useImperativeHandle as he, useRef as ee, useMemo as H } from "react";
|
|
3
|
-
import { a as fe, n as J, p as ue, q as ge, t as ve, P as oe, I as M, v as I, w as be, x as ye, y as xe, z as ae, C as we, D as Ce, E as Se, F as De, u as q, G as Ie, J as Ne, L as Ue, K as ke, N as _, o as Q, O as Ae, Q as Pe, R as Re, s as ze, B as X, S as je, T as Fe, U as Be, W as Y, X as F, Y as $e, V as Oe, A as Ee, Z as Te, _ as Le, $ as He, a0 as Me } from "./main-
|
|
4
|
-
import { D as $, a as W, b as Xe, e as We, f as Je, S as Ke } from "./SideDrawer-
|
|
5
|
-
import { P as re, a as Ve, D as Ge, b as qe, h as _e } from "./handleCopyClick-
|
|
3
|
+
import { a as fe, n as J, p as ue, q as ge, t as ve, P as oe, I as M, v as I, w as be, x as ye, y as xe, z as ae, C as we, D as Ce, E as Se, F as De, u as q, G as Ie, J as Ne, L as Ue, K as ke, N as _, o as Q, O as Ae, Q as Pe, R as Re, s as ze, B as X, S as je, T as Fe, U as Be, W as Y, X as F, Y as $e, V as Oe, A as Ee, Z as Te, _ as Le, $ as He, a0 as Me } from "./main-BNdWGLpK.js";
|
|
4
|
+
import { D as $, a as W, b as Xe, e as We, f as Je, S as Ke } from "./SideDrawer-CT108Ag1.js";
|
|
5
|
+
import { P as re, a as Ve, D as Ge, b as qe, h as _e } from "./handleCopyClick-CdTri-Fg.js";
|
|
6
6
|
const Qe = (c, s) => {
|
|
7
7
|
const i = atob(c.split(",")[1]), u = new ArrayBuffer(i.length), e = new Uint8Array(u);
|
|
8
8
|
for (let r = 0; r < i.length; r++)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import m, { useCallback as D, useMemo as h } from "react";
|
|
3
|
-
import { n as g, a as p, o as w, M as r } from "./main-
|
|
4
|
-
import { S as b, D as u, a as k, b as y, c as S, d as f } from "./SideDrawer-
|
|
3
|
+
import { n as g, a as p, o as w, M as r } from "./main-BNdWGLpK.js";
|
|
4
|
+
import { S as b, D as u, a as k, b as y, c as S, d as f } from "./SideDrawer-CT108Ag1.js";
|
|
5
5
|
const T = ({
|
|
6
6
|
handleCloseModal: l
|
|
7
7
|
}) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as z, jsx as M, Fragment as xi } from "react/jsx-runtime";
|
|
2
2
|
import * as F from "react";
|
|
3
3
|
import { useState as zt, useRef as be, useEffect as ge, useMemo as ln, useCallback as mi } from "react";
|
|
4
|
-
import { u as Qi, P as Kn, H as Oi, a as Hd, b as zd, s as po, c as Kd, d as Gd, e as fo, f as Jd, g as Yd, h as mo, i as $d, j as Xd, r as go, k as Qd, l as Zd, A as vo, V as bo, B as eu } from "./main-
|
|
4
|
+
import { u as Qi, P as Kn, H as Oi, a as Hd, b as zd, s as po, c as Kd, d as Gd, e as fo, f as Jd, g as Yd, h as mo, i as $d, j as Xd, r as go, k as Qd, l as Zd, A as vo, V as bo, B as eu } from "./main-BNdWGLpK.js";
|
|
5
5
|
function tu(n, e) {
|
|
6
6
|
return e.forEach(function(t) {
|
|
7
7
|
t && typeof t != "string" && !Array.isArray(t) && Object.keys(t).forEach(function(i) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as b, useEffect as x } from "react";
|
|
3
|
-
import { v as o, a as L, n as P, u as z, aD as D, aE as I } from "./main-
|
|
4
|
-
import { S as N, D as C, a as w, b as O, e as S, f as p } from "./SideDrawer-
|
|
3
|
+
import { v as o, a as L, n as P, u as z, aD as D, aE as I } from "./main-BNdWGLpK.js";
|
|
4
|
+
import { S as N, D as C, a as w, b as O, e as S, f as p } from "./SideDrawer-CT108Ag1.js";
|
|
5
5
|
o.div``;
|
|
6
6
|
o.div`
|
|
7
7
|
font-size: 16px;
|
|
@@ -658,7 +658,7 @@ function Bo() {
|
|
|
658
658
|
const e = d5(), t = Ip(), r = $l(), o = u5(), n = Zo(), i = f5();
|
|
659
659
|
return Lt.EventEmitter = n, Lt.timeout = e, Lt.delay = t, Lt.TimeoutError = r, Lt.promise = o, Lt.Deferred = i, Lt;
|
|
660
660
|
}
|
|
661
|
-
var
|
|
661
|
+
var xt = { exports: {} }, ao = {}, uu;
|
|
662
662
|
function _p() {
|
|
663
663
|
return uu || (uu = 1, ao.detect = function(t) {
|
|
664
664
|
return !(!t || t.replaceAll(String.raw`\20`, "").replaceAll(String.raw`\22`, "").replaceAll(String.raw`\26`, "").replaceAll(String.raw`\27`, "").replaceAll(String.raw`\2f`, "").replaceAll(String.raw`\3a`, "").replaceAll(String.raw`\3c`, "").replaceAll(String.raw`\3e`, "").replaceAll(String.raw`\40`, "").replaceAll(String.raw`\5c`, "").search(/[ "&'/:<>@\\]/g) === -1);
|
|
@@ -753,15 +753,15 @@ function h5() {
|
|
|
753
753
|
}
|
|
754
754
|
var pu;
|
|
755
755
|
function Yi() {
|
|
756
|
-
if (pu) return
|
|
756
|
+
if (pu) return xt.exports;
|
|
757
757
|
pu = 1;
|
|
758
758
|
const e = Dp(), t = _p(), r = h5();
|
|
759
759
|
function o(...n) {
|
|
760
760
|
return !n[1] && !n[2] ? r(...n) : new e(...n);
|
|
761
761
|
}
|
|
762
|
-
return
|
|
762
|
+
return xt.exports = o.bind(), xt.exports.jid = o, xt.exports.JID = e, xt.exports.equal = function(i, s) {
|
|
763
763
|
return i.equals(s);
|
|
764
|
-
},
|
|
764
|
+
}, xt.exports.detectEscape = t.detect, xt.exports.escapeLocal = t.escape, xt.exports.unescapeLocal = t.unescape, xt.exports.parse = r, xt.exports;
|
|
765
765
|
}
|
|
766
766
|
var qs = { exports: {} }, Sr = {}, mu;
|
|
767
767
|
function Fl() {
|
|
@@ -8953,11 +8953,11 @@ function t2(e, t) {
|
|
|
8953
8953
|
const { toString: k8 } = Object.prototype, { getPrototypeOf: ad } = Object, { iterator: ss, toStringTag: r2 } = Symbol, as = /* @__PURE__ */ ((e) => (t) => {
|
|
8954
8954
|
const r = k8.call(t);
|
|
8955
8955
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
8956
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
8956
|
+
})(/* @__PURE__ */ Object.create(null)), bt = (e) => (e = e.toLowerCase(), (t) => as(t) === e), cs = (e) => (t) => typeof t === e, { isArray: Qr } = Array, Hr = cs("undefined");
|
|
8957
8957
|
function nn(e) {
|
|
8958
8958
|
return e !== null && !Hr(e) && e.constructor !== null && !Hr(e.constructor) && ot(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
8959
8959
|
}
|
|
8960
|
-
const o2 =
|
|
8960
|
+
const o2 = bt("ArrayBuffer");
|
|
8961
8961
|
function R8(e) {
|
|
8962
8962
|
let t;
|
|
8963
8963
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && o2(e.buffer), t;
|
|
@@ -8975,7 +8975,7 @@ const T8 = cs("string"), ot = cs("function"), n2 = cs("number"), sn = (e) => e !
|
|
|
8975
8975
|
} catch {
|
|
8976
8976
|
return !1;
|
|
8977
8977
|
}
|
|
8978
|
-
}, M8 =
|
|
8978
|
+
}, M8 = bt("Date"), I8 = bt("File"), _8 = (e) => !!(e && typeof e.uri < "u"), D8 = (e) => e && typeof e.getParts < "u", N8 = bt("Blob"), O8 = bt("FileList"), L8 = (e) => sn(e) && ot(e.pipe);
|
|
8979
8979
|
function $8() {
|
|
8980
8980
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" || typeof window < "u" ? window : {};
|
|
8981
8981
|
}
|
|
@@ -8983,12 +8983,12 @@ const kf = $8(), Rf = typeof kf.FormData < "u" ? kf.FormData : void 0, F8 = (e)
|
|
|
8983
8983
|
let t;
|
|
8984
8984
|
return e && (Rf && e instanceof Rf || ot(e.append) && ((t = as(e)) === "formdata" || // detect form-data instance
|
|
8985
8985
|
t === "object" && ot(e.toString) && e.toString() === "[object FormData]"));
|
|
8986
|
-
}, j8 =
|
|
8986
|
+
}, j8 = bt("URLSearchParams"), [U8, B8, z8, H8] = [
|
|
8987
8987
|
"ReadableStream",
|
|
8988
8988
|
"Request",
|
|
8989
8989
|
"Response",
|
|
8990
8990
|
"Headers"
|
|
8991
|
-
].map(
|
|
8991
|
+
].map(bt), V8 = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
8992
8992
|
function an(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
8993
8993
|
if (e === null || typeof e > "u")
|
|
8994
8994
|
return;
|
|
@@ -9089,9 +9089,9 @@ const q8 = (e, t, r, { allOwnKeys: o } = {}) => (an(
|
|
|
9089
9089
|
for (; (r = e.exec(t)) !== null; )
|
|
9090
9090
|
o.push(r);
|
|
9091
9091
|
return o;
|
|
9092
|
-
}, e7 =
|
|
9092
|
+
}, e7 = bt("HTMLFormElement"), t7 = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(r, o, n) {
|
|
9093
9093
|
return o.toUpperCase() + n;
|
|
9094
|
-
}), Tf = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), r7 =
|
|
9094
|
+
}), Tf = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), r7 = bt("RegExp"), a2 = (e, t) => {
|
|
9095
9095
|
const r = Object.getOwnPropertyDescriptors(e), o = {};
|
|
9096
9096
|
an(r, (n, i) => {
|
|
9097
9097
|
let s;
|
|
@@ -9143,7 +9143,7 @@ const c7 = (e) => {
|
|
|
9143
9143
|
return o;
|
|
9144
9144
|
};
|
|
9145
9145
|
return r(e, 0);
|
|
9146
|
-
}, l7 =
|
|
9146
|
+
}, l7 = bt("AsyncFunction"), d7 = (e) => e && (sn(e) || ot(e)) && ot(e.then) && ot(e.catch), c2 = ((e, t) => e ? setImmediate : t ? ((r, o) => (or.addEventListener(
|
|
9147
9147
|
"message",
|
|
9148
9148
|
({ source: n, data: i }) => {
|
|
9149
9149
|
n === or && i === r && o.length && o.shift()();
|
|
@@ -9187,7 +9187,7 @@ const c7 = (e) => {
|
|
|
9187
9187
|
inherits: J8,
|
|
9188
9188
|
toFlatObject: X8,
|
|
9189
9189
|
kindOf: as,
|
|
9190
|
-
kindOfTest:
|
|
9190
|
+
kindOfTest: bt,
|
|
9191
9191
|
endsWith: G8,
|
|
9192
9192
|
toArray: K8,
|
|
9193
9193
|
forEachEntry: Y8,
|
|
@@ -13991,16 +13991,16 @@ const md = {
|
|
|
13991
13991
|
storageBucket: "ethora-668e9.appspot.com",
|
|
13992
13992
|
messagingSenderId: "972933470054",
|
|
13993
13993
|
appId: "1:972933470054:web:d4682e76ef02fd9b9cdaa7"
|
|
13994
|
-
}, Za = /* @__PURE__ */ new Map(), Xf = /* @__PURE__ */ new Map(),
|
|
13994
|
+
}, Za = /* @__PURE__ */ new Map(), Xf = /* @__PURE__ */ new Map(), St = (e) => (e || "").toString().trim().toLowerCase(), B9 = (e) => Gr.sha256(
|
|
13995
13995
|
[
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
13996
|
+
St(e?.appId),
|
|
13997
|
+
St(e?.projectId),
|
|
13998
|
+
St(e?.messagingSenderId),
|
|
13999
|
+
St(e?.apiKey),
|
|
14000
|
+
St(e?.authDomain),
|
|
14001
|
+
St(e?.storageBucket)
|
|
14002
14002
|
].join("|")
|
|
14003
|
-
).slice(0, 16), z9 = (e) => `ethora-firebase-${B9(e)}`, H9 = (e) => e || md, V9 = (e) => e ?
|
|
14003
|
+
).slice(0, 16), z9 = (e) => `ethora-firebase-${B9(e)}`, H9 = (e) => e || md, V9 = (e) => e ? St(e.apiKey) !== "" && St(e.appId) !== "" && St(e.projectId) !== "" && St(e.messagingSenderId) !== "" : !1, L2 = async (e) => {
|
|
14004
14004
|
try {
|
|
14005
14005
|
const t = H9(e);
|
|
14006
14006
|
if (!V9(t))
|
|
@@ -14351,7 +14351,7 @@ const rb = new tb(), ob = 4, nb = async (e, t, r = ob) => {
|
|
|
14351
14351
|
callerName: ft(t, ["callerName", "callerDisplayName", "senderName", "title"]) || null,
|
|
14352
14352
|
callerXmppUsername: ft(t, ["callerXmppUsername", "callerUsername", "userJid", "senderJid"]).split("@")[0] || null
|
|
14353
14353
|
};
|
|
14354
|
-
}, ms = "ethora-chat-root",
|
|
14354
|
+
}, ms = "ethora-chat-root", Et = "ethora-message-highlight", sb = "ethora-message-notification-container", ab = "ethora-apple-emoji", cb = {};
|
|
14355
14355
|
let go = !1, Cr = null, yo = /* @__PURE__ */ new Set(), vo = null;
|
|
14356
14356
|
const $2 = (e = {}) => {
|
|
14357
14357
|
const { softAsk: t = !1, enabled: r = !1 } = e, o = e.vapidPublicKey || typeof import.meta < "u" && cb?.VITE_VAPID_PUBLIC_KEY || "", n = ae((k) => k.chatSettingStore.user.token), i = ae(
|
|
@@ -14366,7 +14366,7 @@ const $2 = (e = {}) => {
|
|
|
14366
14366
|
const _ = document.querySelector(
|
|
14367
14367
|
`[data-message-id="${k}"]`
|
|
14368
14368
|
);
|
|
14369
|
-
_ && (_.scrollIntoView({ behavior: "smooth", block: "center" }), _.classList.add(
|
|
14369
|
+
_ && (_.scrollIntoView({ behavior: "smooth", block: "center" }), _.classList.add(Et), setTimeout(() => _.classList.remove(Et), 2e3));
|
|
14370
14370
|
}, []), M = G(
|
|
14371
14371
|
(k, _) => {
|
|
14372
14372
|
if (!k) return;
|
|
@@ -15242,7 +15242,7 @@ function qe(e, t) {
|
|
|
15242
15242
|
function Vr(e, t, r) {
|
|
15243
15243
|
return e.slice(t, r);
|
|
15244
15244
|
}
|
|
15245
|
-
function
|
|
15245
|
+
function Ct(e) {
|
|
15246
15246
|
return e.length;
|
|
15247
15247
|
}
|
|
15248
15248
|
function G2(e) {
|
|
@@ -15328,7 +15328,7 @@ function nl(e) {
|
|
|
15328
15328
|
return 0;
|
|
15329
15329
|
}
|
|
15330
15330
|
function zb(e) {
|
|
15331
|
-
return vs = qr = 1, K2 =
|
|
15331
|
+
return vs = qr = 1, K2 = Ct(Yr = e), ht = 0, [];
|
|
15332
15332
|
}
|
|
15333
15333
|
function Hb(e) {
|
|
15334
15334
|
return Yr = "", e;
|
|
@@ -15421,7 +15421,7 @@ function yi(e, t, r, o, n, i, s, a, c) {
|
|
|
15421
15421
|
break;
|
|
15422
15422
|
// {
|
|
15423
15423
|
case 123 * y:
|
|
15424
|
-
a[l++] =
|
|
15424
|
+
a[l++] = Ct(R) * w;
|
|
15425
15425
|
// } ; \0
|
|
15426
15426
|
case 125 * y:
|
|
15427
15427
|
case 59:
|
|
@@ -15433,7 +15433,7 @@ function yi(e, t, r, o, n, i, s, a, c) {
|
|
|
15433
15433
|
v = 0;
|
|
15434
15434
|
// ;
|
|
15435
15435
|
case 59 + d:
|
|
15436
|
-
w == -1 && (R = ye(R, /\f/g, "")), p > 0 &&
|
|
15436
|
+
w == -1 && (R = ye(R, /\f/g, "")), p > 0 && Ct(R) - u && _o(p > 32 ? sh(R + ";", o, r, u - 1, c) : sh(ye(R, " ", "") + ";", o, r, u - 2, c), c);
|
|
15437
15437
|
break;
|
|
15438
15438
|
// @ ;
|
|
15439
15439
|
case 59:
|
|
@@ -15460,7 +15460,7 @@ function yi(e, t, r, o, n, i, s, a, c) {
|
|
|
15460
15460
|
break;
|
|
15461
15461
|
// :
|
|
15462
15462
|
case 58:
|
|
15463
|
-
u = 1 +
|
|
15463
|
+
u = 1 + Ct(R), p = m;
|
|
15464
15464
|
default:
|
|
15465
15465
|
if (y < 1) {
|
|
15466
15466
|
if (S == 123)
|
|
@@ -15475,15 +15475,15 @@ function yi(e, t, r, o, n, i, s, a, c) {
|
|
|
15475
15475
|
break;
|
|
15476
15476
|
// ,
|
|
15477
15477
|
case 44:
|
|
15478
|
-
a[l++] = (
|
|
15478
|
+
a[l++] = (Ct(R) - 1) * w, w = 1;
|
|
15479
15479
|
break;
|
|
15480
15480
|
// @
|
|
15481
15481
|
case 64:
|
|
15482
|
-
cr() === 45 && (R += tc(yt())), f = cr(), d = u =
|
|
15482
|
+
cr() === 45 && (R += tc(yt())), f = cr(), d = u = Ct(g = R += Jb(gi())), S++;
|
|
15483
15483
|
break;
|
|
15484
15484
|
// -
|
|
15485
15485
|
case 45:
|
|
15486
|
-
m === 45 &&
|
|
15486
|
+
m === 45 && Ct(R) == 2 && (y = 0);
|
|
15487
15487
|
}
|
|
15488
15488
|
}
|
|
15489
15489
|
return i;
|
|
@@ -15636,7 +15636,7 @@ function Q2(e, t, r) {
|
|
|
15636
15636
|
case 5789:
|
|
15637
15637
|
case 5021:
|
|
15638
15638
|
case 4765:
|
|
15639
|
-
if (
|
|
15639
|
+
if (Ct(e) - 1 - t > 6)
|
|
15640
15640
|
switch (qe(e, t + 1)) {
|
|
15641
15641
|
// (m)ax-content, (m)in-content
|
|
15642
15642
|
case 109:
|
|
@@ -15699,9 +15699,9 @@ function Kb(e, t, r, o) {
|
|
|
15699
15699
|
case W2:
|
|
15700
15700
|
return e.return = e.value + "{" + Hi(e.children, o) + "}";
|
|
15701
15701
|
case ys:
|
|
15702
|
-
if (!
|
|
15702
|
+
if (!Ct(e.value = e.props.join(","))) return "";
|
|
15703
15703
|
}
|
|
15704
|
-
return
|
|
15704
|
+
return Ct(r = Hi(e.children, o)) ? e.return = e.value + "{" + r + "}" : "";
|
|
15705
15705
|
}
|
|
15706
15706
|
function Qb(e) {
|
|
15707
15707
|
var t = G2(e);
|
|
@@ -16681,7 +16681,7 @@ const ax = Qo(void 0), cx = 3, lx = 3e4, dx = ({ children: e, config: t }) => {
|
|
|
16681
16681
|
}
|
|
16682
16682
|
F && (i(je({ roomJID: F })), setTimeout(() => {
|
|
16683
16683
|
const $ = document.querySelector(`[data-message-id="${B}"]`);
|
|
16684
|
-
$ && ($.scrollIntoView({ behavior: "smooth", block: "center" }), $.classList.add(
|
|
16684
|
+
$ && ($.scrollIntoView({ behavior: "smooth", block: "center" }), $.classList.add(Et), setTimeout(() => $.classList.remove(Et), 2e3));
|
|
16685
16685
|
}, 100));
|
|
16686
16686
|
},
|
|
16687
16687
|
[T, i, f]
|
|
@@ -18536,7 +18536,7 @@ class v0 extends Te.Component {
|
|
|
18536
18536
|
}
|
|
18537
18537
|
}
|
|
18538
18538
|
const Ix = Te.lazy(
|
|
18539
|
-
() => import("./VideoCallOverlay-
|
|
18539
|
+
() => import("./VideoCallOverlay-D2u_n0s-.js").then((e) => ({
|
|
18540
18540
|
default: e.VideoCallOverlay
|
|
18541
18541
|
}))
|
|
18542
18542
|
), b0 = Qo(null), _x = ({ pushNotifications: e }) => ($2({
|
|
@@ -19342,7 +19342,7 @@ const eS = A.div`
|
|
|
19342
19342
|
`, uS = Be`
|
|
19343
19343
|
0% { transform: rotate(0deg); }
|
|
19344
19344
|
100% { transform: rotate(360deg); }
|
|
19345
|
-
`,
|
|
19345
|
+
`, vt = A.div`
|
|
19346
19346
|
border: ${({ size: e }) => e ? e / 4 : 4}px solid #f3f3f3;
|
|
19347
19347
|
border-top: ${({ size: e }) => e ? e / 4 : 4}px solid
|
|
19348
19348
|
${({ color: e }) => e || "#3498db"};
|
|
@@ -21056,7 +21056,7 @@ const gS = (e) => e.length === 0 ? "" : e.length === 1 ? `${e[0]} is typing` : e
|
|
|
21056
21056
|
onScroll: Kt,
|
|
21057
21057
|
color: o?.colors?.primary,
|
|
21058
21058
|
children: [
|
|
21059
|
-
n && /* @__PURE__ */ h(
|
|
21059
|
+
n && /* @__PURE__ */ h(vt, { color: o?.colors?.primary }),
|
|
21060
21060
|
s && /* @__PURE__ */ O(Te.Fragment, { children: [
|
|
21061
21061
|
/* @__PURE__ */ h(
|
|
21062
21062
|
e,
|
|
@@ -21423,7 +21423,7 @@ const iC = A.div`
|
|
|
21423
21423
|
children: [
|
|
21424
21424
|
!r && c,
|
|
21425
21425
|
!r && a,
|
|
21426
|
-
r ? /* @__PURE__ */ h(
|
|
21426
|
+
r ? /* @__PURE__ */ h(vt, { size: 24 }) : e,
|
|
21427
21427
|
!r && t
|
|
21428
21428
|
]
|
|
21429
21429
|
}
|
|
@@ -21773,7 +21773,7 @@ const z0 = [], AC = () => new Promise((e) => {
|
|
|
21773
21773
|
)}">${q0(s)}</mention>${a}`;
|
|
21774
21774
|
}
|
|
21775
21775
|
return o;
|
|
21776
|
-
}, BC = Te.lazy(() => import("./MarkdownBody-
|
|
21776
|
+
}, BC = Te.lazy(() => import("./MarkdownBody-DJuU5j5G.js")), zC = {
|
|
21777
21777
|
fontFamily: 'var(--ethora-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif)',
|
|
21778
21778
|
fontSize: "var(--ethora-font-size, 16px)",
|
|
21779
21779
|
color: "#24292f",
|
|
@@ -22756,15 +22756,15 @@ const Ts = ({
|
|
|
22756
22756
|
(W) => Tt && gt ? W.rooms.drafts?.[gt] ?? "" : ""
|
|
22757
22757
|
), Wd = X(qd);
|
|
22758
22758
|
Wd.current = qd;
|
|
22759
|
-
const
|
|
22760
|
-
|
|
22759
|
+
const wt = X(null), vr = X(null), _s = X(!1), Jd = X(null), Xd = X(!1), wn = G(() => {
|
|
22760
|
+
wt.current && (clearTimeout(wt.current), wt.current = null);
|
|
22761
22761
|
const W = vr.current;
|
|
22762
22762
|
vr.current = null, W && Q($1(W));
|
|
22763
22763
|
}, [Q]), xn = G(() => {
|
|
22764
22764
|
const W = Wd.current || "";
|
|
22765
22765
|
_s.current = !0, b(W), st(W), ue && te.resetMentions(), W && se(W.length);
|
|
22766
22766
|
}, [st, ue, te, se]), oo = G(() => {
|
|
22767
|
-
|
|
22767
|
+
wt.current && (clearTimeout(wt.current), wt.current = null), vr.current = null, !(!Tt || !gt) && Q(dy({ jid: gt }));
|
|
22768
22768
|
}, [Tt, gt, Q]);
|
|
22769
22769
|
Y(() => {
|
|
22770
22770
|
Tt && Jd.current !== (gt ?? null) && (wn(), Jd.current = gt ?? null, !i && xn());
|
|
@@ -22783,8 +22783,8 @@ const Ts = ({
|
|
|
22783
22783
|
_s.current = !1;
|
|
22784
22784
|
return;
|
|
22785
22785
|
}
|
|
22786
|
-
i || (vr.current = { jid: gt, text: g },
|
|
22787
|
-
|
|
22786
|
+
i || (vr.current = { jid: gt, text: g }, wt.current && clearTimeout(wt.current), wt.current = setTimeout(() => {
|
|
22787
|
+
wt.current = null;
|
|
22788
22788
|
const W = vr.current;
|
|
22789
22789
|
vr.current = null, W && Q($1(W));
|
|
22790
22790
|
}, aE));
|
|
@@ -23880,7 +23880,7 @@ const vE = A.div`
|
|
|
23880
23880
|
style: { width: "100%" },
|
|
23881
23881
|
variant: "filled",
|
|
23882
23882
|
disabled: !k || u,
|
|
23883
|
-
EndIcon: u ? /* @__PURE__ */ h(
|
|
23883
|
+
EndIcon: u ? /* @__PURE__ */ h(vt, { size: 16 }) : void 0
|
|
23884
23884
|
}
|
|
23885
23885
|
)
|
|
23886
23886
|
] })
|
|
@@ -27587,7 +27587,7 @@ const pT = (e) => {
|
|
|
27587
27587
|
const t = document.querySelector(
|
|
27588
27588
|
`[data-message-id="${e}"]`
|
|
27589
27589
|
);
|
|
27590
|
-
t && (t.scrollIntoView({ behavior: "smooth", block: "center" }), t.classList.add(
|
|
27590
|
+
t && (t.scrollIntoView({ behavior: "smooth", block: "center" }), t.classList.add(Et), setTimeout(() => t.classList.remove(Et), 2e3));
|
|
27591
27591
|
}, wT = (e, t, r, o) => {
|
|
27592
27592
|
const { client: n } = pt(), i = Me(), s = bg(), a = X(
|
|
27593
27593
|
null
|
|
@@ -27768,7 +27768,7 @@ const pT = (e) => {
|
|
|
27768
27768
|
padding: "var(--ethora-space-4, 16px) 0"
|
|
27769
27769
|
},
|
|
27770
27770
|
children: /* @__PURE__ */ h(
|
|
27771
|
-
|
|
27771
|
+
vt,
|
|
27772
27772
|
{
|
|
27773
27773
|
"data-testid": "chat-room-opening-loader",
|
|
27774
27774
|
color: t?.colors?.primary,
|
|
@@ -27899,7 +27899,13 @@ const pT = (e) => {
|
|
|
27899
27899
|
return Object.keys(u)?.length < 1 && ue ? /* @__PURE__ */ h(Sh, { children: "Couldn't load your chats. Retrying..." }) : Object.keys(u)?.length < 1 && te ? /* @__PURE__ */ O(Sh, { children: [
|
|
27900
27900
|
"No room. Let's create one!",
|
|
27901
27901
|
/* @__PURE__ */ h(ng, {})
|
|
27902
|
-
] }) : !f || !u?.[f] ?
|
|
27902
|
+
] }) : !f || !u?.[f] ? Object.keys(u).length < 1 && !w ? /* @__PURE__ */ h(
|
|
27903
|
+
vt,
|
|
27904
|
+
{
|
|
27905
|
+
"data-testid": "chat-room-rooms-loader",
|
|
27906
|
+
color: d?.colors?.primary
|
|
27907
|
+
}
|
|
27908
|
+
) : /* @__PURE__ */ h(cT, { unavailable: !!f && (te || ue) }) : /* @__PURE__ */ O(
|
|
27903
27909
|
C0,
|
|
27904
27910
|
{
|
|
27905
27911
|
"data-ethora-drop-zone": "",
|
|
@@ -27927,7 +27933,7 @@ const pT = (e) => {
|
|
|
27927
27933
|
loading: $ === "opening"
|
|
27928
27934
|
}
|
|
27929
27935
|
) : $ === "opening" && !N ? /* @__PURE__ */ h(
|
|
27930
|
-
|
|
27936
|
+
vt,
|
|
27931
27937
|
{
|
|
27932
27938
|
"data-testid": "chat-room-opening-loader",
|
|
27933
27939
|
color: d?.colors?.primary
|
|
@@ -30232,22 +30238,22 @@ const HP = A.span`
|
|
|
30232
30238
|
}
|
|
30233
30239
|
`, YP = {
|
|
30234
30240
|
[Le.SETTINGS]: xr(
|
|
30235
|
-
() => import("./UserSettingsModal-
|
|
30241
|
+
() => import("./UserSettingsModal-CjkqSAhD.js")
|
|
30236
30242
|
),
|
|
30237
30243
|
[Le.PROFILE]: xr(
|
|
30238
|
-
() => import("./UserProfileModal-
|
|
30244
|
+
() => import("./UserProfileModal-BTmSeeuM.js")
|
|
30239
30245
|
),
|
|
30240
30246
|
[Le.CHAT_PROFILE]: xr(
|
|
30241
|
-
() => import("./ChatProfileModal-
|
|
30247
|
+
() => import("./ChatProfileModal-D4B6nVkl.js")
|
|
30242
30248
|
),
|
|
30243
30249
|
[Le.MANAGE_DATA]: xr(
|
|
30244
|
-
() => import("./ManageDataModal-
|
|
30250
|
+
() => import("./ManageDataModal-P_5uJrLo.js")
|
|
30245
30251
|
),
|
|
30246
30252
|
[Le.VISIBILITY]: xr(
|
|
30247
|
-
() => import("./VisibilityModal-
|
|
30253
|
+
() => import("./VisibilityModal-BsbvHoF6.js")
|
|
30248
30254
|
),
|
|
30249
30255
|
[Le.FILE_PREVIEW]: xr(
|
|
30250
|
-
() => import("./FilePreviewModal-
|
|
30256
|
+
() => import("./FilePreviewModal-DxXBzYVJ.js")
|
|
30251
30257
|
)
|
|
30252
30258
|
}, Mg = ({ modal: e, setOpenModal: t }) => {
|
|
30253
30259
|
const r = Me(), o = () => t(), n = () => r(Ke(Le.SETTINGS)), i = sg.includes(e), s = X(null), a = X(0);
|
|
@@ -31552,7 +31558,7 @@ const xA = (e) => e?.enabled && e?.translations ? e.translations : void 0, SA =
|
|
|
31552
31558
|
{
|
|
31553
31559
|
style: { alignItems: "center", flexDirection: "column", gap: "10px" },
|
|
31554
31560
|
children: [
|
|
31555
|
-
/* @__PURE__ */ h(
|
|
31561
|
+
/* @__PURE__ */ h(vt, { color: t?.colors?.primary, style: { margin: "0px" } }),
|
|
31556
31562
|
/* @__PURE__ */ h("div", { children: "Connecting..." })
|
|
31557
31563
|
]
|
|
31558
31564
|
}
|
|
@@ -31570,7 +31576,7 @@ const xA = (e) => e?.enabled && e?.translations ? e.translations : void 0, SA =
|
|
|
31570
31576
|
{
|
|
31571
31577
|
style: { alignItems: "center", flexDirection: "column", gap: "10px" },
|
|
31572
31578
|
children: [
|
|
31573
|
-
/* @__PURE__ */ h(
|
|
31579
|
+
/* @__PURE__ */ h(vt, { color: t?.colors?.primary, style: { margin: "0px" } }),
|
|
31574
31580
|
C && /* @__PURE__ */ h("div", { children: C })
|
|
31575
31581
|
]
|
|
31576
31582
|
}
|
|
@@ -31652,7 +31658,7 @@ const xA = (e) => e?.enabled && e?.translations ? e.translations : void 0, SA =
|
|
|
31652
31658
|
{
|
|
31653
31659
|
style: { alignItems: "center", flexDirection: "column", gap: "10px" },
|
|
31654
31660
|
children: [
|
|
31655
|
-
/* @__PURE__ */ h(
|
|
31661
|
+
/* @__PURE__ */ h(vt, { color: t?.colors?.primary, style: { margin: "0px" } }),
|
|
31656
31662
|
/* @__PURE__ */ h("div", { children: C || "Loading chat..." })
|
|
31657
31663
|
]
|
|
31658
31664
|
}
|
|
@@ -31768,7 +31774,7 @@ const xA = (e) => e?.enabled && e?.translations ? e.translations : void 0, SA =
|
|
|
31768
31774
|
Do,
|
|
31769
31775
|
{
|
|
31770
31776
|
style: { alignItems: "center", flexDirection: "column", gap: "10px" },
|
|
31771
|
-
children: /* @__PURE__ */ h(
|
|
31777
|
+
children: /* @__PURE__ */ h(vt, { color: o?.colors?.primary, style: { margin: "0px" } })
|
|
31772
31778
|
}
|
|
31773
31779
|
) : o?.fallbackScreens?.noUser != null ? (
|
|
31774
31780
|
// Host opted out of the built-in Ethora login screen (e.g. they drive
|
|
@@ -31877,8 +31883,8 @@ const LA = () => {
|
|
|
31877
31883
|
o ? (o.scrollIntoView({
|
|
31878
31884
|
behavior: "smooth",
|
|
31879
31885
|
block: "center"
|
|
31880
|
-
}), o.classList.add(
|
|
31881
|
-
o.classList.remove(
|
|
31886
|
+
}), o.classList.add(Et), setTimeout(() => {
|
|
31887
|
+
o.classList.remove(Et);
|
|
31882
31888
|
}, 2e3)) : setTimeout(() => {
|
|
31883
31889
|
const n = document.querySelector(
|
|
31884
31890
|
`[data-message-id="${r}"]`
|
|
@@ -31886,8 +31892,8 @@ const LA = () => {
|
|
|
31886
31892
|
n && (n.scrollIntoView({
|
|
31887
31893
|
behavior: "smooth",
|
|
31888
31894
|
block: "center"
|
|
31889
|
-
}), n.classList.add(
|
|
31890
|
-
n.classList.remove(
|
|
31895
|
+
}), n.classList.add(Et), setTimeout(() => {
|
|
31896
|
+
n.classList.remove(Et);
|
|
31891
31897
|
}, 2e3));
|
|
31892
31898
|
}, 500);
|
|
31893
31899
|
}, 100);
|
|
@@ -32166,7 +32172,7 @@ const JA = { display: "contents" }, XA = () => (LA(), null), GA = ({ config: e }
|
|
|
32166
32172
|
...i.config,
|
|
32167
32173
|
newArch: i.config.newArch ?? !0
|
|
32168
32174
|
} : i.config, [i.config]);
|
|
32169
|
-
return /* @__PURE__ */ h("div", { className: ms, style: JA, children: /* @__PURE__ */ h(Ol, { store: j, children: /* @__PURE__ */ h(v0, { config: s, scope: "chat", children: /* @__PURE__ */ h(Ng, { loading: /* @__PURE__ */ h(
|
|
32175
|
+
return /* @__PURE__ */ h("div", { className: ms, style: JA, children: /* @__PURE__ */ h(Ol, { store: j, children: /* @__PURE__ */ h(v0, { config: s, scope: "chat", children: /* @__PURE__ */ h(Ng, { loading: /* @__PURE__ */ h(vt, {}), persistor: Or, children: /* @__PURE__ */ O(NE, { children: [
|
|
32170
32176
|
/* @__PURE__ */ h(XA, {}),
|
|
32171
32177
|
/* @__PURE__ */ h(KA, { config: s }),
|
|
32172
32178
|
/* @__PURE__ */ h(SR, { config: s }),
|
|
@@ -32321,7 +32327,7 @@ export {
|
|
|
32321
32327
|
oI as aZ,
|
|
32322
32328
|
YM as a_,
|
|
32323
32329
|
Y0 as aa,
|
|
32324
|
-
|
|
32330
|
+
vt as ab,
|
|
32325
32331
|
FM as ac,
|
|
32326
32332
|
it as ad,
|
|
32327
32333
|
Sd as ae,
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b2 as a, b3 as r, b4 as b, b5 as o, b6 as t, b7 as h, b8 as u, b9 as i, ba as p, bb as n, bc as d, J as l, bd as T, be as f, bf as y, bg as I, bh as R, bi as c, bj as g, bk as m, ah as C, ai as k, bl as A, bm as Q } from "./main-
|
|
1
|
+
import { b2 as a, b3 as r, b4 as b, b5 as o, b6 as t, b7 as h, b8 as u, b9 as i, ba as p, bb as n, bc as d, J as l, bd as T, be as f, bf as y, bg as I, bh as R, bi as c, bj as g, bk as m, ah as C, ai as k, bl as A, bm as Q } from "./main-BNdWGLpK.js";
|
|
2
2
|
export {
|
|
3
3
|
a as AuthTestIds,
|
|
4
4
|
r as Chat,
|