@ethora/chat-component 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +3 -0
- package/dist/api.config.d.ts +39 -0
- package/dist/components/AuthForms/LoginAnonym.d.ts +8 -0
- package/dist/components/AuthForms/Register.d.ts +2 -0
- package/dist/components/ExampleComponents/CustomMessage.d.ts +20 -0
- package/dist/components/MainComponents/RoomList.d.ts +10 -0
- package/dist/components/styled/StyledInputComponents/AudioComponents.d.ts +1 -0
- package/dist/components/styled/StyledInputComponents/VideoComponents.d.ts +6 -0
- package/dist/config.d.ts +6 -0
- package/dist/helpers/constants/MESSAGE_INTERACTIONS.d.ts +0 -0
- package/dist/helpers/mockData.d.ts +3 -0
- package/dist/hooks/usePrevious.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/main.js +669 -639
- package/dist/main.js.map +1 -1
- package/dist/networking/apiClient.d.ts +2 -0
- package/dist/types/messages.d.ts +52 -0
- package/dist/types/types.d.ts +123 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -50,23 +50,23 @@ function hf() {
|
|
|
50
50
|
p.current = h;
|
|
51
51
|
} else h = p.current;
|
|
52
52
|
p = i(function() {
|
|
53
|
-
function g(
|
|
53
|
+
function g(S) {
|
|
54
54
|
if (!v) {
|
|
55
|
-
if (v = !0, C =
|
|
55
|
+
if (v = !0, C = S, S = d(S), f !== void 0 && h.hasValue) {
|
|
56
56
|
var T = h.value;
|
|
57
|
-
if (f(T,
|
|
57
|
+
if (f(T, S)) return E = T;
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return E = S;
|
|
60
60
|
}
|
|
61
|
-
if (T =
|
|
62
|
-
var w = d(
|
|
63
|
-
return f !== void 0 && f(T, w) ? T : (C =
|
|
61
|
+
if (T = E, n(C, S)) return T;
|
|
62
|
+
var w = d(S);
|
|
63
|
+
return f !== void 0 && f(T, w) ? T : (C = S, E = w);
|
|
64
64
|
}
|
|
65
|
-
var v = !1, C,
|
|
65
|
+
var v = !1, C, E, b = l === void 0 ? null : l;
|
|
66
66
|
return [function() {
|
|
67
67
|
return g(u());
|
|
68
|
-
},
|
|
69
|
-
return g(
|
|
68
|
+
}, b === null ? void 0 : function() {
|
|
69
|
+
return g(b());
|
|
70
70
|
}];
|
|
71
71
|
}, [u, l, d, f]);
|
|
72
72
|
var m = r(c, p[0], p[1]);
|
|
@@ -102,9 +102,9 @@ function pf() {
|
|
|
102
102
|
value: null
|
|
103
103
|
}, h.current = m) : m = h.current;
|
|
104
104
|
var g = i(function() {
|
|
105
|
-
var
|
|
106
|
-
if (!
|
|
107
|
-
|
|
105
|
+
var b = !1, S, T, w = function(F) {
|
|
106
|
+
if (!b) {
|
|
107
|
+
b = !0, S = F;
|
|
108
108
|
var V = f(F);
|
|
109
109
|
if (p !== void 0 && m.hasValue) {
|
|
110
110
|
var Q = m.value;
|
|
@@ -113,21 +113,21 @@ function pf() {
|
|
|
113
113
|
}
|
|
114
114
|
return T = V, V;
|
|
115
115
|
}
|
|
116
|
-
var xe =
|
|
116
|
+
var xe = S, q = T;
|
|
117
117
|
if (n(xe, F))
|
|
118
118
|
return q;
|
|
119
119
|
var ee = f(F);
|
|
120
|
-
return p !== void 0 && p(q, ee) ? q : (
|
|
121
|
-
},
|
|
120
|
+
return p !== void 0 && p(q, ee) ? q : (S = F, T = ee, ee);
|
|
121
|
+
}, x = d === void 0 ? null : d, I = function() {
|
|
122
122
|
return w(l());
|
|
123
|
-
},
|
|
124
|
-
return w(
|
|
123
|
+
}, O = x === null ? void 0 : function() {
|
|
124
|
+
return w(x());
|
|
125
125
|
};
|
|
126
|
-
return [
|
|
127
|
-
}, [l, d, f, p]), v = g[0], C = g[1],
|
|
126
|
+
return [I, O];
|
|
127
|
+
}, [l, d, f, p]), v = g[0], C = g[1], E = r(u, v, C);
|
|
128
128
|
return o(function() {
|
|
129
|
-
m.hasValue = !0, m.value =
|
|
130
|
-
}, [
|
|
129
|
+
m.hasValue = !0, m.value = E;
|
|
130
|
+
}, [E]), a(E), E;
|
|
131
131
|
}
|
|
132
132
|
hs.useSyncExternalStoreWithSelector = c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
133
133
|
}(), hs;
|
|
@@ -199,13 +199,13 @@ function bf(t = nt) {
|
|
|
199
199
|
...i
|
|
200
200
|
};
|
|
201
201
|
if (C === "always" || C === "once" && f.current) {
|
|
202
|
-
const
|
|
203
|
-
if (!o(g,
|
|
204
|
-
let
|
|
202
|
+
const E = r(m);
|
|
203
|
+
if (!o(g, E)) {
|
|
204
|
+
let b;
|
|
205
205
|
try {
|
|
206
206
|
throw new Error();
|
|
207
|
-
} catch (
|
|
208
|
-
({ stack:
|
|
207
|
+
} catch (S) {
|
|
208
|
+
({ stack: b } = S);
|
|
209
209
|
}
|
|
210
210
|
console.warn(
|
|
211
211
|
"Selector " + (r.name || "unknown") + ` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
@@ -213,23 +213,23 @@ Selectors that return a new reference (such as an object or an array) should be
|
|
|
213
213
|
{
|
|
214
214
|
state: m,
|
|
215
215
|
selected: g,
|
|
216
|
-
selected2:
|
|
217
|
-
stack:
|
|
216
|
+
selected2: E,
|
|
217
|
+
stack: b
|
|
218
218
|
}
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
if ((v === "always" || v === "once" && f.current) && g === m) {
|
|
223
|
-
let
|
|
223
|
+
let E;
|
|
224
224
|
try {
|
|
225
225
|
throw new Error();
|
|
226
|
-
} catch (
|
|
227
|
-
({ stack:
|
|
226
|
+
} catch (b) {
|
|
227
|
+
({ stack: E } = b);
|
|
228
228
|
}
|
|
229
229
|
console.warn(
|
|
230
230
|
"Selector " + (r.name || "unknown") + ` returned the root state when called. This can lead to unnecessary rerenders.
|
|
231
231
|
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,
|
|
232
|
-
{ stack:
|
|
232
|
+
{ stack: E }
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
235
|
f.current && (f.current = !1);
|
|
@@ -523,8 +523,8 @@ function jc(t, e, n) {
|
|
|
523
523
|
if (typeof v != "object" || v === null)
|
|
524
524
|
throw new Error(process.env.NODE_ENV === "production" ? X(11) : `Expected the observer to be an object. Instead, received: '${Je(v)}'`);
|
|
525
525
|
function C() {
|
|
526
|
-
const
|
|
527
|
-
|
|
526
|
+
const b = v;
|
|
527
|
+
b.next && b.next(l());
|
|
528
528
|
}
|
|
529
529
|
return C(), {
|
|
530
530
|
unsubscribe: g(C)
|
|
@@ -1264,43 +1264,43 @@ function Jc(t, ...e) {
|
|
|
1264
1264
|
argsMemoize: p = Do,
|
|
1265
1265
|
argsMemoizeOptions: h = [],
|
|
1266
1266
|
devModeChecks: m = {}
|
|
1267
|
-
} = l, g = Ui(f), v = Ui(h), C = nh(s),
|
|
1267
|
+
} = l, g = Ui(f), v = Ui(h), C = nh(s), E = d(function() {
|
|
1268
1268
|
return o++, u.apply(
|
|
1269
1269
|
null,
|
|
1270
1270
|
arguments
|
|
1271
1271
|
);
|
|
1272
1272
|
}, ...g);
|
|
1273
|
-
let
|
|
1274
|
-
const
|
|
1273
|
+
let b = !0;
|
|
1274
|
+
const S = p(function() {
|
|
1275
1275
|
i++;
|
|
1276
1276
|
const w = $i(
|
|
1277
1277
|
C,
|
|
1278
1278
|
arguments
|
|
1279
1279
|
);
|
|
1280
|
-
if (a =
|
|
1281
|
-
const { identityFunctionCheck:
|
|
1282
|
-
if (
|
|
1280
|
+
if (a = E.apply(null, w), process.env.NODE_ENV !== "production") {
|
|
1281
|
+
const { identityFunctionCheck: x, inputStabilityCheck: I } = rh(b, m);
|
|
1282
|
+
if (x.shouldRun && x.run(
|
|
1283
1283
|
u,
|
|
1284
1284
|
w,
|
|
1285
1285
|
a
|
|
1286
|
-
),
|
|
1287
|
-
const
|
|
1286
|
+
), I.shouldRun) {
|
|
1287
|
+
const O = $i(
|
|
1288
1288
|
C,
|
|
1289
1289
|
arguments
|
|
1290
1290
|
);
|
|
1291
|
-
|
|
1292
|
-
{ inputSelectorResults: w, inputSelectorResultsCopy:
|
|
1291
|
+
I.run(
|
|
1292
|
+
{ inputSelectorResults: w, inputSelectorResultsCopy: O },
|
|
1293
1293
|
{ memoize: d, memoizeOptions: g },
|
|
1294
1294
|
arguments
|
|
1295
1295
|
);
|
|
1296
1296
|
}
|
|
1297
|
-
|
|
1297
|
+
b && (b = !1);
|
|
1298
1298
|
}
|
|
1299
1299
|
return a;
|
|
1300
1300
|
}, ...v);
|
|
1301
|
-
return Object.assign(
|
|
1301
|
+
return Object.assign(S, {
|
|
1302
1302
|
resultFunc: u,
|
|
1303
|
-
memoizedResultFunc:
|
|
1303
|
+
memoizedResultFunc: E,
|
|
1304
1304
|
dependencies: C,
|
|
1305
1305
|
dependencyRecomputations: () => i,
|
|
1306
1306
|
resetDependencyRecomputations: () => {
|
|
@@ -1608,9 +1608,9 @@ Take a look at the logic that dispatched this action: `, p, `
|
|
|
1608
1608
|
if (v) {
|
|
1609
1609
|
const {
|
|
1610
1610
|
keyPath: C,
|
|
1611
|
-
value:
|
|
1611
|
+
value: E
|
|
1612
1612
|
} = v;
|
|
1613
|
-
console.error(`A non-serializable value was detected in the state, in the path: \`${C}\`. Value:`,
|
|
1613
|
+
console.error(`A non-serializable value was detected in the state, in the path: \`${C}\`. Value:`, E, `
|
|
1614
1614
|
Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
1615
1615
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
|
|
1616
1616
|
}
|
|
@@ -1828,91 +1828,91 @@ function Ph({
|
|
|
1828
1828
|
actionCreators: {},
|
|
1829
1829
|
sliceMatchers: []
|
|
1830
1830
|
}, l = {
|
|
1831
|
-
addCase(
|
|
1832
|
-
const
|
|
1833
|
-
if (!
|
|
1831
|
+
addCase(E, b) {
|
|
1832
|
+
const S = typeof E == "string" ? E : E.type;
|
|
1833
|
+
if (!S)
|
|
1834
1834
|
throw new Error(process.env.NODE_ENV === "production" ? M(12) : "`context.addCase` cannot be called with an empty action type");
|
|
1835
|
-
if (
|
|
1836
|
-
throw new Error(process.env.NODE_ENV === "production" ? M(13) : "`context.addCase` cannot be called with two reducers for the same action type: " +
|
|
1837
|
-
return u.sliceCaseReducersByType[
|
|
1835
|
+
if (S in u.sliceCaseReducersByType)
|
|
1836
|
+
throw new Error(process.env.NODE_ENV === "production" ? M(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + S);
|
|
1837
|
+
return u.sliceCaseReducersByType[S] = b, l;
|
|
1838
1838
|
},
|
|
1839
|
-
addMatcher(
|
|
1839
|
+
addMatcher(E, b) {
|
|
1840
1840
|
return u.sliceMatchers.push({
|
|
1841
|
-
matcher:
|
|
1842
|
-
reducer:
|
|
1841
|
+
matcher: E,
|
|
1842
|
+
reducer: b
|
|
1843
1843
|
}), l;
|
|
1844
1844
|
},
|
|
1845
|
-
exposeAction(
|
|
1846
|
-
return u.actionCreators[
|
|
1845
|
+
exposeAction(E, b) {
|
|
1846
|
+
return u.actionCreators[E] = b, l;
|
|
1847
1847
|
},
|
|
1848
|
-
exposeCaseReducer(
|
|
1849
|
-
return u.sliceCaseReducersByName[
|
|
1848
|
+
exposeCaseReducer(E, b) {
|
|
1849
|
+
return u.sliceCaseReducersByName[E] = b, l;
|
|
1850
1850
|
}
|
|
1851
1851
|
};
|
|
1852
|
-
c.forEach((
|
|
1853
|
-
const
|
|
1854
|
-
reducerName:
|
|
1855
|
-
type: Nh(o,
|
|
1852
|
+
c.forEach((E) => {
|
|
1853
|
+
const b = a[E], S = {
|
|
1854
|
+
reducerName: E,
|
|
1855
|
+
type: Nh(o, E),
|
|
1856
1856
|
createNotation: typeof s.reducers == "function"
|
|
1857
1857
|
};
|
|
1858
|
-
jh(
|
|
1858
|
+
jh(b) ? Uh(S, b, l, e) : Mh(S, b, l);
|
|
1859
1859
|
});
|
|
1860
1860
|
function d() {
|
|
1861
1861
|
if (process.env.NODE_ENV !== "production" && typeof s.extraReducers == "object")
|
|
1862
1862
|
throw new Error(process.env.NODE_ENV === "production" ? M(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
1863
|
-
const [
|
|
1864
|
-
...
|
|
1863
|
+
const [E = {}, b = [], S = void 0] = typeof s.extraReducers == "function" ? rl(s.extraReducers) : [s.extraReducers], T = {
|
|
1864
|
+
...E,
|
|
1865
1865
|
...u.sliceCaseReducersByType
|
|
1866
1866
|
};
|
|
1867
1867
|
return kh(s.initialState, (w) => {
|
|
1868
|
-
for (let
|
|
1869
|
-
w.addCase(
|
|
1870
|
-
for (let
|
|
1871
|
-
w.addMatcher(
|
|
1872
|
-
for (let
|
|
1873
|
-
w.addMatcher(
|
|
1874
|
-
|
|
1868
|
+
for (let x in T)
|
|
1869
|
+
w.addCase(x, T[x]);
|
|
1870
|
+
for (let x of u.sliceMatchers)
|
|
1871
|
+
w.addMatcher(x.matcher, x.reducer);
|
|
1872
|
+
for (let x of b)
|
|
1873
|
+
w.addMatcher(x.matcher, x.reducer);
|
|
1874
|
+
S && w.addDefaultCase(S);
|
|
1875
1875
|
});
|
|
1876
1876
|
}
|
|
1877
|
-
const f = (
|
|
1877
|
+
const f = (E) => E, p = /* @__PURE__ */ new Map();
|
|
1878
1878
|
let h;
|
|
1879
|
-
function m(
|
|
1880
|
-
return h || (h = d()), h(
|
|
1879
|
+
function m(E, b) {
|
|
1880
|
+
return h || (h = d()), h(E, b);
|
|
1881
1881
|
}
|
|
1882
1882
|
function g() {
|
|
1883
1883
|
return h || (h = d()), h.getInitialState();
|
|
1884
1884
|
}
|
|
1885
|
-
function v(
|
|
1886
|
-
function
|
|
1887
|
-
let
|
|
1888
|
-
if (typeof
|
|
1889
|
-
if (
|
|
1890
|
-
|
|
1885
|
+
function v(E, b = !1) {
|
|
1886
|
+
function S(w) {
|
|
1887
|
+
let x = w[E];
|
|
1888
|
+
if (typeof x > "u") {
|
|
1889
|
+
if (b)
|
|
1890
|
+
x = g();
|
|
1891
1891
|
else if (process.env.NODE_ENV !== "production")
|
|
1892
1892
|
throw new Error(process.env.NODE_ENV === "production" ? M(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
1893
1893
|
}
|
|
1894
|
-
return
|
|
1894
|
+
return x;
|
|
1895
1895
|
}
|
|
1896
1896
|
function T(w = f) {
|
|
1897
|
-
const
|
|
1897
|
+
const x = Hi(p, b, {
|
|
1898
1898
|
insert: () => /* @__PURE__ */ new WeakMap()
|
|
1899
1899
|
});
|
|
1900
|
-
return Hi(
|
|
1900
|
+
return Hi(x, w, {
|
|
1901
1901
|
insert: () => {
|
|
1902
|
-
const
|
|
1903
|
-
for (const [
|
|
1904
|
-
|
|
1905
|
-
return
|
|
1902
|
+
const I = {};
|
|
1903
|
+
for (const [O, F] of Object.entries(s.selectors ?? {}))
|
|
1904
|
+
I[O] = Dh(F, w, g, b);
|
|
1905
|
+
return I;
|
|
1906
1906
|
}
|
|
1907
1907
|
});
|
|
1908
1908
|
}
|
|
1909
1909
|
return {
|
|
1910
|
-
reducerPath:
|
|
1910
|
+
reducerPath: E,
|
|
1911
1911
|
getSelectors: T,
|
|
1912
1912
|
get selectors() {
|
|
1913
|
-
return T(
|
|
1913
|
+
return T(S);
|
|
1914
1914
|
},
|
|
1915
|
-
selectSlice:
|
|
1915
|
+
selectSlice: S
|
|
1916
1916
|
};
|
|
1917
1917
|
}
|
|
1918
1918
|
const C = {
|
|
@@ -1922,15 +1922,15 @@ function Ph({
|
|
|
1922
1922
|
caseReducers: u.sliceCaseReducersByName,
|
|
1923
1923
|
getInitialState: g,
|
|
1924
1924
|
...v(i),
|
|
1925
|
-
injectInto(
|
|
1926
|
-
reducerPath:
|
|
1927
|
-
...
|
|
1925
|
+
injectInto(E, {
|
|
1926
|
+
reducerPath: b,
|
|
1927
|
+
...S
|
|
1928
1928
|
} = {}) {
|
|
1929
|
-
const T =
|
|
1930
|
-
return
|
|
1929
|
+
const T = b ?? i;
|
|
1930
|
+
return E.inject({
|
|
1931
1931
|
reducerPath: T,
|
|
1932
1932
|
reducer: m
|
|
1933
|
-
},
|
|
1933
|
+
}, S), {
|
|
1934
1934
|
...C,
|
|
1935
1935
|
...v(T, !0)
|
|
1936
1936
|
};
|
|
@@ -2741,39 +2741,39 @@ function mm(t, e, n, r, s, o, i) {
|
|
|
2741
2741
|
var a;
|
|
2742
2742
|
i === void 0 && (i = Z);
|
|
2743
2743
|
var c = ft, u, l, d = null, f = [], p = Object.create(n), h = lm(e, function() {
|
|
2744
|
-
f.push.apply(f, h.getTasks().map(function(
|
|
2745
|
-
return
|
|
2744
|
+
f.push.apply(f, h.getTasks().map(function(S) {
|
|
2745
|
+
return S.meta.name;
|
|
2746
2746
|
}));
|
|
2747
2747
|
}, g);
|
|
2748
2748
|
function m() {
|
|
2749
2749
|
c === ft && (c = Ae, h.cancelAll(), g(At, !1));
|
|
2750
2750
|
}
|
|
2751
|
-
function g(
|
|
2752
|
-
if (!
|
|
2753
|
-
|
|
2751
|
+
function g(b, S) {
|
|
2752
|
+
if (!S)
|
|
2753
|
+
b === At ? c = Ae : c !== Ae && (c = Tl), u = b, d && d.resolve(b);
|
|
2754
2754
|
else {
|
|
2755
2755
|
if (c = Yn, fm({
|
|
2756
2756
|
meta: s,
|
|
2757
2757
|
cancelledTasks: f
|
|
2758
|
-
}),
|
|
2758
|
+
}), E.isRoot) {
|
|
2759
2759
|
var T = pm();
|
|
2760
|
-
kl(), t.onError(
|
|
2760
|
+
kl(), t.onError(b, {
|
|
2761
2761
|
sagaStack: T
|
|
2762
2762
|
});
|
|
2763
2763
|
}
|
|
2764
|
-
l =
|
|
2764
|
+
l = b, d && d.reject(b);
|
|
2765
2765
|
}
|
|
2766
|
-
|
|
2767
|
-
w.cb(
|
|
2768
|
-
}),
|
|
2766
|
+
E.cont(b, S), E.joiners.forEach(function(w) {
|
|
2767
|
+
w.cb(b, S);
|
|
2768
|
+
}), E.joiners = null;
|
|
2769
2769
|
}
|
|
2770
|
-
function v(
|
|
2771
|
-
process.env.NODE_ENV !== "production" && Y(
|
|
2770
|
+
function v(b) {
|
|
2771
|
+
process.env.NODE_ENV !== "production" && Y(b, al, cl("task", b)), jo(p, b);
|
|
2772
2772
|
}
|
|
2773
2773
|
function C() {
|
|
2774
2774
|
return d || (d = jp(), c === Yn ? d.reject(l) : c !== ft && d.resolve(u)), d.promise;
|
|
2775
2775
|
}
|
|
2776
|
-
var
|
|
2776
|
+
var E = (a = {}, a[Kh] = !0, a.id = r, a.meta = s, a.isRoot = o, a.context = p, a.joiners = [], a.queue = h, a.cancel = m, a.cont = i, a.end = g, a.setContext = v, a.toPromise = C, a.isRunning = function() {
|
|
2777
2777
|
return c === ft;
|
|
2778
2778
|
}, a.isCancelled = function() {
|
|
2779
2779
|
return c === Ae || c === ft && e.status === Ae;
|
|
@@ -2784,7 +2784,7 @@ function mm(t, e, n, r, s, o, i) {
|
|
|
2784
2784
|
}, a.error = function() {
|
|
2785
2785
|
return l;
|
|
2786
2786
|
}, a);
|
|
2787
|
-
return
|
|
2787
|
+
return E;
|
|
2788
2788
|
}
|
|
2789
2789
|
function jr(t, e, n, r, s, o, i) {
|
|
2790
2790
|
if (process.env.NODE_ENV !== "production" && e[cp])
|
|
@@ -2840,20 +2840,20 @@ function jr(t, e, n, r, s, o, i) {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
function h(m, g, v, C) {
|
|
2842
2842
|
C === void 0 && (C = "");
|
|
2843
|
-
var
|
|
2843
|
+
var E = xl();
|
|
2844
2844
|
t.sagaMonitor && t.sagaMonitor.effectTriggered({
|
|
2845
|
-
effectId:
|
|
2845
|
+
effectId: E,
|
|
2846
2846
|
parentEffectId: g,
|
|
2847
2847
|
label: C,
|
|
2848
2848
|
effect: m
|
|
2849
2849
|
});
|
|
2850
|
-
var
|
|
2851
|
-
function
|
|
2852
|
-
|
|
2850
|
+
var b;
|
|
2851
|
+
function S(T, w) {
|
|
2852
|
+
b || (b = !0, v.cancel = Z, t.sagaMonitor && (w ? t.sagaMonitor.effectRejected(E, T) : t.sagaMonitor.effectResolved(E, T)), w && hm(m), v(T, w));
|
|
2853
2853
|
}
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
}, a(m,
|
|
2854
|
+
S.cancel = Z, v.cancel = function() {
|
|
2855
|
+
b || (b = !0, S.cancel(), S.cancel = Z, t.sagaMonitor && t.sagaMonitor.effectCancelled(E));
|
|
2856
|
+
}, a(m, E, S);
|
|
2857
2857
|
}
|
|
2858
2858
|
}
|
|
2859
2859
|
var gm = "runSaga(options, saga, ...args)", Ji = gm + ": saga argument must be a Generator function!";
|
|
@@ -2872,26 +2872,26 @@ function ym(t, e) {
|
|
|
2872
2872
|
})), process.env.NODE_ENV !== "production") {
|
|
2873
2873
|
if (Rt(s) && Y(s, H, "dispatch must be a function"), Rt(o) && Y(o, H, "getState must be a function"), Rt(u)) {
|
|
2874
2874
|
var v = "effectMiddlewares must be an array of functions";
|
|
2875
|
-
Y(u, st, v), u.forEach(function(
|
|
2876
|
-
return Y(
|
|
2875
|
+
Y(u, st, v), u.forEach(function(S) {
|
|
2876
|
+
return Y(S, H, v);
|
|
2877
2877
|
});
|
|
2878
2878
|
}
|
|
2879
2879
|
Y(d, H, "onError passed to the redux-saga is not a function!");
|
|
2880
2880
|
}
|
|
2881
2881
|
var C;
|
|
2882
2882
|
if (u) {
|
|
2883
|
-
var
|
|
2883
|
+
var E = gp.apply(void 0, u);
|
|
2884
2884
|
C = function(T) {
|
|
2885
|
-
return function(w,
|
|
2886
|
-
var
|
|
2887
|
-
return T(V,
|
|
2885
|
+
return function(w, x, I) {
|
|
2886
|
+
var O = function(V) {
|
|
2887
|
+
return T(V, x, I);
|
|
2888
2888
|
};
|
|
2889
|
-
return
|
|
2889
|
+
return E(O)(w);
|
|
2890
2890
|
};
|
|
2891
2891
|
};
|
|
2892
2892
|
} else
|
|
2893
2893
|
C = ip;
|
|
2894
|
-
var
|
|
2894
|
+
var b = {
|
|
2895
2895
|
channel: r,
|
|
2896
2896
|
dispatch: mp(s),
|
|
2897
2897
|
getState: o,
|
|
@@ -2900,8 +2900,8 @@ function ym(t, e) {
|
|
|
2900
2900
|
finalizeRunEffect: C
|
|
2901
2901
|
};
|
|
2902
2902
|
return vl(function() {
|
|
2903
|
-
var
|
|
2904
|
-
|
|
2903
|
+
var S = jr(
|
|
2904
|
+
b,
|
|
2905
2905
|
m,
|
|
2906
2906
|
a,
|
|
2907
2907
|
g,
|
|
@@ -2910,7 +2910,7 @@ function ym(t, e) {
|
|
|
2910
2910
|
!0,
|
|
2911
2911
|
void 0
|
|
2912
2912
|
);
|
|
2913
|
-
return c && c.effectResolved(g,
|
|
2913
|
+
return c && c.effectResolved(g, S), S;
|
|
2914
2914
|
});
|
|
2915
2915
|
}
|
|
2916
2916
|
function vm(t) {
|
|
@@ -5009,11 +5009,11 @@ function Ov(t = {}) {
|
|
|
5009
5009
|
}), C = xv(
|
|
5010
5010
|
{ iqCaller: p, streamFeatures: f },
|
|
5011
5011
|
e
|
|
5012
|
-
),
|
|
5012
|
+
), E = Iv({
|
|
5013
5013
|
iqCaller: p,
|
|
5014
5014
|
streamFeatures: f
|
|
5015
|
-
}),
|
|
5016
|
-
[
|
|
5015
|
+
}), b = Object.entries({ plain: Rv, anonymous: Av }).map(([S, T]) => ({
|
|
5016
|
+
[S]: T(g)
|
|
5017
5017
|
}));
|
|
5018
5018
|
return Object.assign(c, {
|
|
5019
5019
|
entity: c,
|
|
@@ -5026,12 +5026,12 @@ function Ov(t = {}) {
|
|
|
5026
5026
|
resolve: m,
|
|
5027
5027
|
sasl: g,
|
|
5028
5028
|
resourceBinding: C,
|
|
5029
|
-
sessionEstablishment:
|
|
5029
|
+
sessionEstablishment: E,
|
|
5030
5030
|
streamManagement: v,
|
|
5031
|
-
mechanisms:
|
|
5031
|
+
mechanisms: b
|
|
5032
5032
|
});
|
|
5033
5033
|
}
|
|
5034
|
-
var
|
|
5034
|
+
var R = Fr.xml = pv;
|
|
5035
5035
|
Fr.jid = mv;
|
|
5036
5036
|
Fr.client = Ov;
|
|
5037
5037
|
function Nv(t) {
|
|
@@ -5124,7 +5124,7 @@ const du = async (t, e, n, r) => {
|
|
|
5124
5124
|
}
|
|
5125
5125
|
}, Dv = (t) => {
|
|
5126
5126
|
var e, n;
|
|
5127
|
-
t.client.send(
|
|
5127
|
+
t.client.send(R("presence")), t.getArchive((n = (e = t.client) == null ? void 0 : e.jid) == null ? void 0 : n.toString()), t.getRooms();
|
|
5128
5128
|
}, Lv = (t) => {
|
|
5129
5129
|
var e, n;
|
|
5130
5130
|
t.attrs.id === "presenceInRoom" && (t.attrs.from.split("/")[0], (n = (e = t == null ? void 0 : t.children[1]) == null ? void 0 : e.children[0]) == null || n.attrs.role);
|
|
@@ -5153,7 +5153,7 @@ class jv {
|
|
|
5153
5153
|
W(this, "unsubscribe", (e) => {
|
|
5154
5154
|
var n, r;
|
|
5155
5155
|
try {
|
|
5156
|
-
const s =
|
|
5156
|
+
const s = R(
|
|
5157
5157
|
"iq",
|
|
5158
5158
|
{
|
|
5159
5159
|
from: (r = (n = this.client) == null ? void 0 : n.jid) == null ? void 0 : r.toString(),
|
|
@@ -5161,7 +5161,7 @@ class jv {
|
|
|
5161
5161
|
type: "set",
|
|
5162
5162
|
id: "unsubscribe"
|
|
5163
5163
|
},
|
|
5164
|
-
|
|
5164
|
+
R("unsubscribe", { xmlns: "urn:xmpp:mucsub:0" })
|
|
5165
5165
|
);
|
|
5166
5166
|
this.client.send(s);
|
|
5167
5167
|
} catch (s) {
|
|
@@ -5171,14 +5171,14 @@ class jv {
|
|
|
5171
5171
|
W(this, "getRooms", () => new Promise((e, n) => {
|
|
5172
5172
|
var r;
|
|
5173
5173
|
try {
|
|
5174
|
-
const s =
|
|
5174
|
+
const s = R(
|
|
5175
5175
|
"iq",
|
|
5176
5176
|
{
|
|
5177
5177
|
type: "get",
|
|
5178
5178
|
from: (r = this.client.jid) == null ? void 0 : r.toString(),
|
|
5179
5179
|
id: "getUserRooms"
|
|
5180
5180
|
},
|
|
5181
|
-
|
|
5181
|
+
R("query", { xmlns: "ns:getrooms" })
|
|
5182
5182
|
);
|
|
5183
5183
|
this.client.send(s).then(() => {
|
|
5184
5184
|
console.log("getRooms successfully sent"), e("Request to get rooms sent successfully");
|
|
@@ -5193,7 +5193,7 @@ class jv {
|
|
|
5193
5193
|
W(this, "leaveTheRoom", (e) => {
|
|
5194
5194
|
var n, r;
|
|
5195
5195
|
try {
|
|
5196
|
-
const s =
|
|
5196
|
+
const s = R("presence", {
|
|
5197
5197
|
from: (n = this.client.jid) == null ? void 0 : n.toString(),
|
|
5198
5198
|
to: e + "/" + ((r = this.client.jid) == null ? void 0 : r.getLocal()),
|
|
5199
5199
|
type: "unavailable"
|
|
@@ -5206,14 +5206,14 @@ class jv {
|
|
|
5206
5206
|
W(this, "presenceInRoom", (e) => new Promise((n, r) => {
|
|
5207
5207
|
var s, o;
|
|
5208
5208
|
try {
|
|
5209
|
-
const i =
|
|
5209
|
+
const i = R(
|
|
5210
5210
|
"presence",
|
|
5211
5211
|
{
|
|
5212
5212
|
from: (s = this.client.jid) == null ? void 0 : s.toString(),
|
|
5213
5213
|
to: `${e}/${(o = this.client.jid) == null ? void 0 : o.getLocal()}`,
|
|
5214
5214
|
id: "presenceInRoom"
|
|
5215
5215
|
},
|
|
5216
|
-
|
|
5216
|
+
R("x", { xmlns: "http://jabber.org/protocol/muc" })
|
|
5217
5217
|
);
|
|
5218
5218
|
this.client.send(i).then(() => {
|
|
5219
5219
|
console.log("Presence in room successfully sent"), n("Presence in room sent successfully");
|
|
@@ -5228,13 +5228,13 @@ class jv {
|
|
|
5228
5228
|
}
|
|
5229
5229
|
}));
|
|
5230
5230
|
W(this, "getArchive", (e) => {
|
|
5231
|
-
const n =
|
|
5231
|
+
const n = R(
|
|
5232
5232
|
"iq",
|
|
5233
5233
|
{ type: "set", id: e },
|
|
5234
|
-
|
|
5234
|
+
R(
|
|
5235
5235
|
"query",
|
|
5236
5236
|
{ xmlns: "urn:xmpp:mam:2", queryid: "userArchive" },
|
|
5237
|
-
|
|
5237
|
+
R("set", { xmlns: "http://jabber.org/protocol/rsm" }, R("before"))
|
|
5238
5238
|
)
|
|
5239
5239
|
);
|
|
5240
5240
|
this.client.send(n);
|
|
@@ -5248,24 +5248,24 @@ class jv {
|
|
|
5248
5248
|
var p, h;
|
|
5249
5249
|
let d = [];
|
|
5250
5250
|
o = (m) => {
|
|
5251
|
-
var v, C,
|
|
5251
|
+
var v, C, E;
|
|
5252
5252
|
const g = m.getChild("result");
|
|
5253
5253
|
if (m.is("message") && m.attrs.from && m.attrs.from.startsWith(e) && g) {
|
|
5254
|
-
const
|
|
5255
|
-
d.push(
|
|
5254
|
+
const b = (v = g.getChild("forwarded")) == null ? void 0 : v.getChild("message");
|
|
5255
|
+
d.push(b);
|
|
5256
5256
|
}
|
|
5257
5257
|
if (m.is("iq") && m.attrs.id === s && m.attrs.type === "result") {
|
|
5258
|
-
let
|
|
5259
|
-
for (const
|
|
5260
|
-
const T = (C =
|
|
5258
|
+
let b = [];
|
|
5259
|
+
for (const S of d) {
|
|
5260
|
+
const T = (C = S.getChild("body")) == null ? void 0 : C.getText();
|
|
5261
5261
|
if (T) {
|
|
5262
5262
|
let w = {};
|
|
5263
|
-
w.text = T, w.from =
|
|
5264
|
-
const
|
|
5265
|
-
if (!
|
|
5263
|
+
w.text = T, w.from = S.attrs.from, w.id = (E = S.getChild("archived")) == null ? void 0 : E.attrs.id, w.created = w.id.slice(0, 13);
|
|
5264
|
+
const x = S.getChild("data");
|
|
5265
|
+
if (!x || !x.attrs)
|
|
5266
5266
|
continue;
|
|
5267
|
-
for (const [
|
|
5268
|
-
w[
|
|
5267
|
+
for (const [I, O] of Object.entries(x.attrs))
|
|
5268
|
+
w[I] = O;
|
|
5269
5269
|
if (w.isReply === "true" && !w.mainMessage)
|
|
5270
5270
|
continue;
|
|
5271
5271
|
if (w.mainMessage)
|
|
@@ -5274,28 +5274,28 @@ class jv {
|
|
|
5274
5274
|
} catch {
|
|
5275
5275
|
continue;
|
|
5276
5276
|
}
|
|
5277
|
-
|
|
5277
|
+
b.push(w);
|
|
5278
5278
|
}
|
|
5279
5279
|
}
|
|
5280
|
-
i(), u(
|
|
5280
|
+
i(), u(b);
|
|
5281
5281
|
}
|
|
5282
5282
|
m.is("iq") && m.attrs.id === s && m.attrs.type === "error" && (i(), l());
|
|
5283
5283
|
}, (p = this.client) == null || p.on("stanza", o);
|
|
5284
|
-
const f =
|
|
5284
|
+
const f = R(
|
|
5285
5285
|
"iq",
|
|
5286
5286
|
{
|
|
5287
5287
|
type: "set",
|
|
5288
5288
|
to: e,
|
|
5289
5289
|
id: s
|
|
5290
5290
|
},
|
|
5291
|
-
|
|
5291
|
+
R(
|
|
5292
5292
|
"query",
|
|
5293
5293
|
{ xmlns: "urn:xmpp:mam:2" },
|
|
5294
|
-
|
|
5294
|
+
R(
|
|
5295
5295
|
"set",
|
|
5296
5296
|
{ xmlns: "http://jabber.org/protocol/rsm" },
|
|
5297
|
-
|
|
5298
|
-
r ?
|
|
5297
|
+
R("max", {}, n.toString()),
|
|
5298
|
+
r ? R("before", {}, r.toString()) : R("before")
|
|
5299
5299
|
)
|
|
5300
5300
|
)
|
|
5301
5301
|
);
|
|
@@ -5309,7 +5309,7 @@ class jv {
|
|
|
5309
5309
|
});
|
|
5310
5310
|
W(this, "getAndReceiveRoomInfo", (e) => {
|
|
5311
5311
|
var r;
|
|
5312
|
-
const n =
|
|
5312
|
+
const n = R(
|
|
5313
5313
|
"iq",
|
|
5314
5314
|
{
|
|
5315
5315
|
from: (r = this.client.jid) == null ? void 0 : r.toString(),
|
|
@@ -5317,7 +5317,7 @@ class jv {
|
|
|
5317
5317
|
to: e,
|
|
5318
5318
|
type: "get"
|
|
5319
5319
|
},
|
|
5320
|
-
|
|
5320
|
+
R("query", { xmlns: "http://jabber.org/protocol/disco#info" })
|
|
5321
5321
|
);
|
|
5322
5322
|
return this.client.sendReceive(n);
|
|
5323
5323
|
});
|
|
@@ -5326,14 +5326,14 @@ class jv {
|
|
|
5326
5326
|
var u;
|
|
5327
5327
|
const c = `send-message:${Date.now().toString()}`;
|
|
5328
5328
|
try {
|
|
5329
|
-
const l =
|
|
5329
|
+
const l = R(
|
|
5330
5330
|
"message",
|
|
5331
5331
|
{
|
|
5332
5332
|
to: e,
|
|
5333
5333
|
type: "groupchat",
|
|
5334
5334
|
id: c
|
|
5335
5335
|
},
|
|
5336
|
-
|
|
5336
|
+
R("data", {
|
|
5337
5337
|
xmlns: `wss://${(this == null ? void 0 : this.devServer) || "xmpp.ethoradev.com:5443"}/ws`,
|
|
5338
5338
|
senderFirstName: n,
|
|
5339
5339
|
senderLastName: r,
|
|
@@ -5347,7 +5347,7 @@ class jv {
|
|
|
5347
5347
|
notDisplayedValue: "",
|
|
5348
5348
|
showInChannel: !0
|
|
5349
5349
|
}),
|
|
5350
|
-
|
|
5350
|
+
R("body", {}, i)
|
|
5351
5351
|
);
|
|
5352
5352
|
this.client.send(l);
|
|
5353
5353
|
} catch (l) {
|
|
@@ -5395,28 +5395,28 @@ class jv {
|
|
|
5395
5395
|
initPresence() {
|
|
5396
5396
|
return new Promise((e, n) => {
|
|
5397
5397
|
try {
|
|
5398
|
-
this.client.send(
|
|
5398
|
+
this.client.send(R("presence")), console.log("Successful presence"), e("Presence sent successfully");
|
|
5399
5399
|
} catch (r) {
|
|
5400
5400
|
console.error("Error sending presence:", r), n(r);
|
|
5401
5401
|
}
|
|
5402
5402
|
});
|
|
5403
5403
|
}
|
|
5404
5404
|
getLastMessageArchive(e) {
|
|
5405
|
-
const n =
|
|
5405
|
+
const n = R(
|
|
5406
5406
|
"iq",
|
|
5407
5407
|
{
|
|
5408
5408
|
type: "set",
|
|
5409
5409
|
to: e,
|
|
5410
5410
|
id: "GetArchive"
|
|
5411
5411
|
},
|
|
5412
|
-
|
|
5412
|
+
R(
|
|
5413
5413
|
"query",
|
|
5414
5414
|
{ xmlns: "urn:xmpp:mam:2" },
|
|
5415
|
-
|
|
5415
|
+
R(
|
|
5416
5416
|
"set",
|
|
5417
5417
|
{ xmlns: "http://jabber.org/protocol/rsm" },
|
|
5418
|
-
|
|
5419
|
-
|
|
5418
|
+
R("max", {}, "1"),
|
|
5419
|
+
R("before")
|
|
5420
5420
|
)
|
|
5421
5421
|
)
|
|
5422
5422
|
);
|
|
@@ -5424,7 +5424,7 @@ class jv {
|
|
|
5424
5424
|
}
|
|
5425
5425
|
deleteMessage(e, n) {
|
|
5426
5426
|
var s;
|
|
5427
|
-
const r =
|
|
5427
|
+
const r = R(
|
|
5428
5428
|
"message",
|
|
5429
5429
|
{
|
|
5430
5430
|
from: (s = this.client.jid) == null ? void 0 : s.toString(),
|
|
@@ -5432,8 +5432,8 @@ class jv {
|
|
|
5432
5432
|
id: "deleteMessageStanza",
|
|
5433
5433
|
type: "groupchat"
|
|
5434
5434
|
},
|
|
5435
|
-
|
|
5436
|
-
|
|
5435
|
+
R("body", "wow"),
|
|
5436
|
+
R("delete", {
|
|
5437
5437
|
id: n
|
|
5438
5438
|
})
|
|
5439
5439
|
);
|
|
@@ -5442,17 +5442,17 @@ class jv {
|
|
|
5442
5442
|
sendTypingRequest(e, n, r) {
|
|
5443
5443
|
var i;
|
|
5444
5444
|
let s = r ? `typing-${Date.now()}` : `stop-typing-${Date.now()}`;
|
|
5445
|
-
const o =
|
|
5445
|
+
const o = R(
|
|
5446
5446
|
"message",
|
|
5447
5447
|
{
|
|
5448
5448
|
type: "groupchat",
|
|
5449
5449
|
id: s,
|
|
5450
5450
|
to: e
|
|
5451
5451
|
},
|
|
5452
|
-
|
|
5452
|
+
R(r ? "composing" : "paused", {
|
|
5453
5453
|
xmlns: "http://jabber.org/protocol/chatstates"
|
|
5454
5454
|
}),
|
|
5455
|
-
|
|
5455
|
+
R("data", {
|
|
5456
5456
|
fullName: n
|
|
5457
5457
|
})
|
|
5458
5458
|
);
|
|
@@ -5473,16 +5473,16 @@ class jv {
|
|
|
5473
5473
|
i(p ? p.attrs.value : null);
|
|
5474
5474
|
}
|
|
5475
5475
|
}, (u = this.client) == null || u.on("stanza", n);
|
|
5476
|
-
const c =
|
|
5476
|
+
const c = R(
|
|
5477
5477
|
"iq",
|
|
5478
5478
|
{
|
|
5479
5479
|
id: e,
|
|
5480
5480
|
type: "get"
|
|
5481
5481
|
},
|
|
5482
|
-
|
|
5482
|
+
R(
|
|
5483
5483
|
"query",
|
|
5484
5484
|
{ xmlns: "jabber:iq:private" },
|
|
5485
|
-
|
|
5485
|
+
R("chatjson", { xmlns: "chatjson:store" })
|
|
5486
5486
|
)
|
|
5487
5487
|
);
|
|
5488
5488
|
(l = this.client) == null || l.send(c);
|
|
@@ -5520,16 +5520,16 @@ class jv {
|
|
|
5520
5520
|
r = (f) => {
|
|
5521
5521
|
f.is("iq") && f.attrs.id === n && a(!0);
|
|
5522
5522
|
}, (l = this.client) == null || l.on("stanza", r);
|
|
5523
|
-
const u =
|
|
5523
|
+
const u = R(
|
|
5524
5524
|
"iq",
|
|
5525
5525
|
{
|
|
5526
5526
|
id: n,
|
|
5527
5527
|
type: "set"
|
|
5528
5528
|
},
|
|
5529
|
-
|
|
5529
|
+
R(
|
|
5530
5530
|
"query",
|
|
5531
5531
|
{ xmlns: "jabber:iq:private" },
|
|
5532
|
-
|
|
5532
|
+
R("chatjson", { xmlns: "chatjson:store", value: e })
|
|
5533
5533
|
)
|
|
5534
5534
|
);
|
|
5535
5535
|
(d = this.client) == null || d.send(u);
|
|
@@ -5538,6 +5538,7 @@ class jv {
|
|
|
5538
5538
|
}
|
|
5539
5539
|
sendMediaMessageStanza(e, n) {
|
|
5540
5540
|
var o, i, a, c, u, l, d;
|
|
5541
|
+
`${Date.now().toString()}`;
|
|
5541
5542
|
const r = {
|
|
5542
5543
|
senderJID: (o = this.client.jid) == null ? void 0 : o.toString(),
|
|
5543
5544
|
senderFirstName: n[0].firstName,
|
|
@@ -5569,7 +5570,7 @@ class jv {
|
|
|
5569
5570
|
roomJid: (l = n[0]) == null ? void 0 : l.roomJid
|
|
5570
5571
|
};
|
|
5571
5572
|
console.log(r);
|
|
5572
|
-
const s =
|
|
5573
|
+
const s = R(
|
|
5573
5574
|
"message",
|
|
5574
5575
|
{
|
|
5575
5576
|
id: "sendMessage",
|
|
@@ -5577,9 +5578,9 @@ class jv {
|
|
|
5577
5578
|
from: (d = this.client.jid) == null ? void 0 : d.toString(),
|
|
5578
5579
|
to: e
|
|
5579
5580
|
},
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5581
|
+
R("body", {}, "media"),
|
|
5582
|
+
R("store", { xmlns: "urn:xmpp:hints" }),
|
|
5583
|
+
R("data", r)
|
|
5583
5584
|
);
|
|
5584
5585
|
this.client.send(s);
|
|
5585
5586
|
}
|
|
@@ -5804,7 +5805,7 @@ function tw(t) {
|
|
|
5804
5805
|
return Xv(tr("", null, null, null, [""], t = Kv(t), 0, [0], t));
|
|
5805
5806
|
}
|
|
5806
5807
|
function tr(t, e, n, r, s, o, i, a, c) {
|
|
5807
|
-
for (var u = 0, l = 0, d = i, f = 0, p = 0, h = 0, m = 1, g = 1, v = 1, C = 0,
|
|
5808
|
+
for (var u = 0, l = 0, d = i, f = 0, p = 0, h = 0, m = 1, g = 1, v = 1, C = 0, E = "", b = s, S = o, T = r, w = E; g; )
|
|
5808
5809
|
switch (h = C, C = pe()) {
|
|
5809
5810
|
case 40:
|
|
5810
5811
|
if (h != 108 && G(w, d - 1) == 58) {
|
|
@@ -5850,22 +5851,22 @@ function tr(t, e, n, r, s, o, i, a, c) {
|
|
|
5850
5851
|
case 59:
|
|
5851
5852
|
w += ";";
|
|
5852
5853
|
default:
|
|
5853
|
-
if (on(T = Ta(w, e, n, u, l, s, a,
|
|
5854
|
+
if (on(T = Ta(w, e, n, u, l, s, a, E, b = [], S = [], d, o), o), C === 123)
|
|
5854
5855
|
if (l === 0)
|
|
5855
|
-
tr(w, e, T, T,
|
|
5856
|
+
tr(w, e, T, T, b, o, d, a, S);
|
|
5856
5857
|
else
|
|
5857
5858
|
switch (f === 99 && G(w, 3) === 110 ? 100 : f) {
|
|
5858
5859
|
case 100:
|
|
5859
5860
|
case 108:
|
|
5860
5861
|
case 109:
|
|
5861
5862
|
case 115:
|
|
5862
|
-
tr(t, T, T, r && on(Ta(t, T, T, 0, 0, s, a,
|
|
5863
|
+
tr(t, T, T, r && on(Ta(t, T, T, 0, 0, s, a, E, s, b = [], d, S), S), s, S, d, a, r ? b : S);
|
|
5863
5864
|
break;
|
|
5864
5865
|
default:
|
|
5865
|
-
tr(w, T, T, T, [""],
|
|
5866
|
+
tr(w, T, T, T, [""], S, 0, a, S);
|
|
5866
5867
|
}
|
|
5867
5868
|
}
|
|
5868
|
-
u = l = p = 0, m = v = 1,
|
|
5869
|
+
u = l = p = 0, m = v = 1, E = w = "", d = i;
|
|
5869
5870
|
break;
|
|
5870
5871
|
case 58:
|
|
5871
5872
|
d = 1 + be(w), p = h;
|
|
@@ -5884,7 +5885,7 @@ function tr(t, e, n, r, s, o, i, a, c) {
|
|
|
5884
5885
|
a[u++] = (be(w) - 1) * v, v = 1;
|
|
5885
5886
|
break;
|
|
5886
5887
|
case 64:
|
|
5887
|
-
yt() === 45 && (w += Is(pe())), f = yt(), l = d = be(
|
|
5888
|
+
yt() === 45 && (w += Is(pe())), f = yt(), l = d = be(E = w += ew(er())), C++;
|
|
5888
5889
|
break;
|
|
5889
5890
|
case 45:
|
|
5890
5891
|
h === 45 && be(w) == 2 && (m = 0);
|
|
@@ -5894,8 +5895,8 @@ function tr(t, e, n, r, s, o, i, a, c) {
|
|
|
5894
5895
|
}
|
|
5895
5896
|
function Ta(t, e, n, r, s, o, i, a, c, u, l, d) {
|
|
5896
5897
|
for (var f = s - 1, p = s === 0 ? o : [""], h = vu(p), m = 0, g = 0, v = 0; m < r; ++m)
|
|
5897
|
-
for (var C = 0,
|
|
5898
|
-
(
|
|
5898
|
+
for (var C = 0, E = Ft(t, f + 1, f = gu(g = i[m])), b = t; C < h; ++C)
|
|
5899
|
+
(b = yu(g > 0 ? p[C] + " " + E : D(E, /&\f/g, p[C]))) && (c[v++] = b);
|
|
5899
5900
|
return Jr(t, e, n, s === 0 ? qr : a, c, u, l, d);
|
|
5900
5901
|
}
|
|
5901
5902
|
function nw(t, e, n, r) {
|
|
@@ -6493,8 +6494,8 @@ function Fw(t) {
|
|
|
6493
6494
|
var g = f.replace(jw, ""), v = tw(h || p ? "".concat(h, " ").concat(p, " { ").concat(g, " }") : g);
|
|
6494
6495
|
i.namespace && (v = Pu(v, i.namespace));
|
|
6495
6496
|
var C = [];
|
|
6496
|
-
return vr(v, sw(l.concat(ow(function(
|
|
6497
|
-
return C.push(
|
|
6497
|
+
return vr(v, sw(l.concat(ow(function(E) {
|
|
6498
|
+
return C.push(E);
|
|
6498
6499
|
})))), C;
|
|
6499
6500
|
};
|
|
6500
6501
|
return d.hash = c.length ? c.reduce(function(f, p) {
|
|
@@ -6597,27 +6598,27 @@ var Bw = Cu(Xr), Hw = function() {
|
|
|
6597
6598
|
ju.Consumer;
|
|
6598
6599
|
var Rs = {}, Ma = /* @__PURE__ */ new Set();
|
|
6599
6600
|
function zw(t, e, n) {
|
|
6600
|
-
var r = si(t), s = t, o = !As(t), i = e.attrs, a = i === void 0 ? Yr : i, c = e.componentId, u = c === void 0 ? function(
|
|
6601
|
-
var T = typeof
|
|
6601
|
+
var r = si(t), s = t, o = !As(t), i = e.attrs, a = i === void 0 ? Yr : i, c = e.componentId, u = c === void 0 ? function(b, S) {
|
|
6602
|
+
var T = typeof b != "string" ? "sc" : ka(b);
|
|
6602
6603
|
Rs[T] = (Rs[T] || 0) + 1;
|
|
6603
6604
|
var w = "".concat(T, "-").concat(Tu(Xr + T + Rs[T]));
|
|
6604
|
-
return
|
|
6605
|
-
}(e.displayName, e.parentComponentId) : c, l = e.displayName, d = l === void 0 ? function(
|
|
6606
|
-
return As(
|
|
6605
|
+
return S ? "".concat(S, "-").concat(w) : w;
|
|
6606
|
+
}(e.displayName, e.parentComponentId) : c, l = e.displayName, d = l === void 0 ? function(b) {
|
|
6607
|
+
return As(b) ? "styled.".concat(b) : "Styled(".concat(xu(b), ")");
|
|
6607
6608
|
}(t) : l, f = e.displayName && e.componentId ? "".concat(ka(e.displayName), "-").concat(e.componentId) : e.componentId || u, p = r && s.attrs ? s.attrs.concat(a).filter(Boolean) : a, h = e.shouldForwardProp;
|
|
6608
6609
|
if (r && s.shouldForwardProp) {
|
|
6609
6610
|
var m = s.shouldForwardProp;
|
|
6610
6611
|
if (e.shouldForwardProp) {
|
|
6611
6612
|
var g = e.shouldForwardProp;
|
|
6612
|
-
h = function(
|
|
6613
|
-
return m(
|
|
6613
|
+
h = function(b, S) {
|
|
6614
|
+
return m(b, S) && g(b, S);
|
|
6614
6615
|
};
|
|
6615
6616
|
} else h = m;
|
|
6616
6617
|
}
|
|
6617
6618
|
var v = new Hw(n, f, r ? s.componentStyle : void 0);
|
|
6618
|
-
function C(
|
|
6619
|
-
return function(T, w,
|
|
6620
|
-
var
|
|
6619
|
+
function C(b, S) {
|
|
6620
|
+
return function(T, w, x) {
|
|
6621
|
+
var I = T.attrs, O = T.componentStyle, F = T.defaultProps, V = T.foldedComponentIds, Q = T.styledComponentId, xe = T.target, q = fe.useContext(ju), ee = Da(), Pn = T.shouldForwardProp || ee.shouldForwardProp;
|
|
6621
6622
|
process.env.NODE_ENV !== "production" && xi(Q);
|
|
6622
6623
|
var Zt = uw(w, q, F) || $t, Ie = function(Dn, tn, Ln) {
|
|
6623
6624
|
for (var xt, at = oe(oe({}, tn), { className: void 0, theme: Ln }), us = 0; us < Dn.length; us += 1) {
|
|
@@ -6625,33 +6626,33 @@ function zw(t, e, n) {
|
|
|
6625
6626
|
for (var ze in Mn) at[ze] = ze === "className" ? pt(at[ze], Mn[ze]) : ze === "style" ? oe(oe({}, at[ze]), Mn[ze]) : Mn[ze];
|
|
6626
6627
|
}
|
|
6627
6628
|
return tn.className && (at.className = pt(at.className, tn.className)), at;
|
|
6628
|
-
}(
|
|
6629
|
+
}(I, w, Zt), Qt = Ie.as || xe, en = {};
|
|
6629
6630
|
for (var ue in Ie) Ie[ue] === void 0 || ue[0] === "$" || ue === "as" || ue === "theme" && Ie.theme === Zt || (ue === "forwardedAs" ? en.as = Ie.forwardedAs : Pn && !Pn(ue, Qt) || (en[ue] = Ie[ue], Pn || process.env.NODE_ENV !== "development" || Bv(ue) || Ma.has(ue) || !co.has(Qt) || (Ma.add(ue), console.warn('styled-components: it looks like an unknown prop "'.concat(ue, '" 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.)')))));
|
|
6630
6631
|
var cs = function(Dn, tn) {
|
|
6631
6632
|
var Ln = Da(), xt = Dn.generateAndInjectStyles(tn, Ln.styleSheet, Ln.stylis);
|
|
6632
6633
|
return process.env.NODE_ENV !== "production" && xi(xt), xt;
|
|
6633
|
-
}(
|
|
6634
|
+
}(O, Ie);
|
|
6634
6635
|
process.env.NODE_ENV !== "production" && T.warnTooManyClasses && T.warnTooManyClasses(cs);
|
|
6635
6636
|
var ls = pt(V, Q);
|
|
6636
|
-
return cs && (ls += " " + cs), Ie.className && (ls += " " + Ie.className), en[As(Qt) && !co.has(Qt) ? "class" : "className"] = ls, en.ref =
|
|
6637
|
-
}(b, S
|
|
6637
|
+
return cs && (ls += " " + cs), Ie.className && (ls += " " + Ie.className), en[As(Qt) && !co.has(Qt) ? "class" : "className"] = ls, en.ref = x, lf(Qt, en);
|
|
6638
|
+
}(E, b, S);
|
|
6638
6639
|
}
|
|
6639
6640
|
C.displayName = d;
|
|
6640
|
-
var
|
|
6641
|
-
return
|
|
6641
|
+
var E = fe.forwardRef(C);
|
|
6642
|
+
return E.attrs = p, E.componentStyle = v, E.displayName = d, E.shouldForwardProp = h, E.foldedComponentIds = r ? pt(s.foldedComponentIds, s.styledComponentId) : "", E.styledComponentId = f, E.target = r ? s.target : t, Object.defineProperty(E, "defaultProps", { get: function() {
|
|
6642
6643
|
return this._foldedDefaultProps;
|
|
6643
|
-
}, set: function(
|
|
6644
|
-
this._foldedDefaultProps = r ? function(
|
|
6644
|
+
}, set: function(b) {
|
|
6645
|
+
this._foldedDefaultProps = r ? function(S) {
|
|
6645
6646
|
for (var T = [], w = 1; w < arguments.length; w++) T[w - 1] = arguments[w];
|
|
6646
|
-
for (var
|
|
6647
|
-
return
|
|
6648
|
-
}({}, s.defaultProps,
|
|
6649
|
-
} }), process.env.NODE_ENV !== "production" && (lw(d, f),
|
|
6647
|
+
for (var x = 0, I = T; x < I.length; x++) fo(S, I[x], !0);
|
|
6648
|
+
return S;
|
|
6649
|
+
}({}, s.defaultProps, b) : b;
|
|
6650
|
+
} }), process.env.NODE_ENV !== "production" && (lw(d, f), E.warnTooManyClasses = /* @__PURE__ */ function(b, S) {
|
|
6650
6651
|
var T = {}, w = !1;
|
|
6651
|
-
return function(
|
|
6652
|
-
if (!w && (T[
|
|
6653
|
-
var
|
|
6654
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(
|
|
6652
|
+
return function(x) {
|
|
6653
|
+
if (!w && (T[x] = !0, Object.keys(T).length >= 200)) {
|
|
6654
|
+
var I = S ? ' with the id of "'.concat(S, '"') : "";
|
|
6655
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(b).concat(I, `.
|
|
6655
6656
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
6656
6657
|
Example:
|
|
6657
6658
|
const Component = styled.div.attrs(props => ({
|
|
@@ -6663,9 +6664,9 @@ Example:
|
|
|
6663
6664
|
<Component />`), w = !0, T = {};
|
|
6664
6665
|
}
|
|
6665
6666
|
};
|
|
6666
|
-
}(d, f)), oi(
|
|
6667
|
-
return ".".concat(
|
|
6668
|
-
}), o && Ru(
|
|
6667
|
+
}(d, f)), oi(E, function() {
|
|
6668
|
+
return ".".concat(E.styledComponentId);
|
|
6669
|
+
}), o && Ru(E, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), E;
|
|
6669
6670
|
}
|
|
6670
6671
|
function ja(t, e) {
|
|
6671
6672
|
for (var n = [t[0]], r = 0, s = e.length; r < s; r += 1) n.push(e[r], t[r + 1]);
|
|
@@ -6694,9 +6695,9 @@ function mo(t, e, n) {
|
|
|
6694
6695
|
}
|
|
6695
6696
|
var Uu = function(t) {
|
|
6696
6697
|
return mo(zw, t);
|
|
6697
|
-
},
|
|
6698
|
+
}, k = Uu;
|
|
6698
6699
|
co.forEach(function(t) {
|
|
6699
|
-
|
|
6700
|
+
k[t] = Uu(t);
|
|
6700
6701
|
});
|
|
6701
6702
|
function $u(t) {
|
|
6702
6703
|
for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
|
|
@@ -6711,7 +6712,7 @@ var Jn = "__sc-".concat(St, "__");
|
|
|
6711
6712
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Jn] || (window[Jn] = 0), window[Jn] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
6712
6713
|
|
|
6713
6714
|
See https://s-c.sh/2BAXzed for more info.`), window[Jn] += 1);
|
|
6714
|
-
const Ww =
|
|
6715
|
+
const Ww = k.div`
|
|
6715
6716
|
display: flex;
|
|
6716
6717
|
flex-direction: column;
|
|
6717
6718
|
height: 100%;
|
|
@@ -6719,7 +6720,7 @@ const Ww = I.div`
|
|
|
6719
6720
|
box-sizing: border-box;
|
|
6720
6721
|
background-color: #f3f6fc;
|
|
6721
6722
|
/* border: 10px solid yellow; */
|
|
6722
|
-
`, qw =
|
|
6723
|
+
`, qw = k.div`
|
|
6723
6724
|
display: flex;
|
|
6724
6725
|
border-radius: 0px 0px 15px 15px;
|
|
6725
6726
|
box-shadow: 1px -1px 10px 0 rgba(0, 0, 0, 0.25);
|
|
@@ -6727,11 +6728,11 @@ const Ww = I.div`
|
|
|
6727
6728
|
background-color: #fff;
|
|
6728
6729
|
z-index: 1;
|
|
6729
6730
|
justify-content: space-between;
|
|
6730
|
-
`, Ua =
|
|
6731
|
+
`, Ua = k.div`
|
|
6731
6732
|
color: #141414;
|
|
6732
6733
|
font-weight: 600;
|
|
6733
6734
|
font-size: 16px;
|
|
6734
|
-
`, Gw =
|
|
6735
|
+
`, Gw = k.div`
|
|
6735
6736
|
position: relative;
|
|
6736
6737
|
height: calc(100%);
|
|
6737
6738
|
|
|
@@ -6763,7 +6764,7 @@ const Ww = I.div`
|
|
|
6763
6764
|
scrollbar-width: thin; /* Make the scrollbar thinner */
|
|
6764
6765
|
scrollbar-color: ${(t) => t != null && t.color ? t == null ? void 0 : t.color : "#0052CD"}
|
|
6765
6766
|
#f0f0f0; /* Color of the thumb and track */
|
|
6766
|
-
`, Jw =
|
|
6767
|
+
`, Jw = k.div`
|
|
6767
6768
|
box-sizing: border-box;
|
|
6768
6769
|
width: 100%;
|
|
6769
6770
|
height: 100%;
|
|
@@ -6771,37 +6772,37 @@ const Ww = I.div`
|
|
|
6771
6772
|
min-height: 1.25em;
|
|
6772
6773
|
position: relative;
|
|
6773
6774
|
color: #000000de;
|
|
6774
|
-
`, Kw =
|
|
6775
|
+
`, Kw = k.div`
|
|
6775
6776
|
font-size: 0.75rem;
|
|
6776
6777
|
color: #666;
|
|
6777
6778
|
margin-bottom: 5px;
|
|
6778
|
-
`, Xw =
|
|
6779
|
+
`, Xw = k.div`
|
|
6779
6780
|
background-color: ${(t) => t.isUser ? "#dcf8c6" : "#f1f1f1"};
|
|
6780
6781
|
padding: 10px;
|
|
6781
6782
|
margin: 10px 0;
|
|
6782
6783
|
border-radius: 8px;
|
|
6783
6784
|
max-width: 60%;
|
|
6784
6785
|
flex-direction: ${(t) => t.isUser ? "row-reverse" : "row"};
|
|
6785
|
-
`, Yw =
|
|
6786
|
+
`, Yw = k.p`
|
|
6786
6787
|
margin: 0;
|
|
6787
|
-
`, Zw =
|
|
6788
|
+
`, Zw = k.span`
|
|
6788
6789
|
font-weight: bold;
|
|
6789
6790
|
`;
|
|
6790
|
-
|
|
6791
|
+
k.div`
|
|
6791
6792
|
display: flex;
|
|
6792
6793
|
border-radius: 15px 15px 0px 0px;
|
|
6793
6794
|
background-color: #fff;
|
|
6794
6795
|
flex-direction: column;
|
|
6795
6796
|
gap: 5px;
|
|
6796
6797
|
`;
|
|
6797
|
-
const $a =
|
|
6798
|
+
const $a = k.input`
|
|
6798
6799
|
flex-grow: 1;
|
|
6799
6800
|
padding: 10px;
|
|
6800
6801
|
border-radius: 8px;
|
|
6801
6802
|
border: none;
|
|
6802
6803
|
margin-right: 10px;
|
|
6803
6804
|
`;
|
|
6804
|
-
|
|
6805
|
+
k.button`
|
|
6805
6806
|
padding: 10px 20px;
|
|
6806
6807
|
border: none;
|
|
6807
6808
|
border-radius: 8px;
|
|
@@ -6814,14 +6815,14 @@ I.button`
|
|
|
6814
6815
|
background-color: #0056b3;
|
|
6815
6816
|
}
|
|
6816
6817
|
`;
|
|
6817
|
-
const Qw =
|
|
6818
|
+
const Qw = k.div`
|
|
6818
6819
|
display: flex;
|
|
6819
6820
|
flex-direction: ${(t) => t.isUser ? "row-reverse" : "row"};
|
|
6820
6821
|
align-items: end;
|
|
6821
6822
|
margin: 10px 0;
|
|
6822
6823
|
gap: 5px;
|
|
6823
6824
|
position: "relative";
|
|
6824
|
-
`, e0 =
|
|
6825
|
+
`, e0 = k.div`
|
|
6825
6826
|
max-width: 60%;
|
|
6826
6827
|
padding: 8px 16px;
|
|
6827
6828
|
border-radius: ${(t) => t.isUser ? "15px 15px 0px 15px" : "15px 15px 15px 0px"};
|
|
@@ -6832,29 +6833,29 @@ const Qw = I.div`
|
|
|
6832
6833
|
flex-direction: column;
|
|
6833
6834
|
background-color: ${(t) => t.isUser ? "#E7EDF9" : "#FFFFFF"};
|
|
6834
6835
|
position: "relative";
|
|
6835
|
-
`, t0 =
|
|
6836
|
+
`, t0 = k.p`
|
|
6836
6837
|
margin: 0px;
|
|
6837
6838
|
word-wrap: break-word;
|
|
6838
|
-
`, n0 =
|
|
6839
|
+
`, n0 = k.span`
|
|
6839
6840
|
font-family: "Open Sans", sans-serif;
|
|
6840
6841
|
font-weight: 600;
|
|
6841
6842
|
font-size: 18px;
|
|
6842
6843
|
color: ${(t) => t.isUser ? t != null && t.color ? t == null ? void 0 : t.color : "#0052CD" : "#0052cd"};
|
|
6843
6844
|
margin-bottom: 8px;
|
|
6844
|
-
`, r0 =
|
|
6845
|
+
`, r0 = k.span`
|
|
6845
6846
|
font-size: 0.75rem;
|
|
6846
6847
|
align-self: flex-end;
|
|
6847
6848
|
color: #8f8f8f;
|
|
6848
|
-
`, s0 =
|
|
6849
|
+
`, s0 = k.img`
|
|
6849
6850
|
width: 40px;
|
|
6850
6851
|
aspect-ratio: 1/1;
|
|
6851
6852
|
display: block;
|
|
6852
6853
|
margin-left: auto;
|
|
6853
6854
|
margin-right: auto;
|
|
6854
6855
|
border-radius: 100px;
|
|
6855
|
-
`, o0 =
|
|
6856
|
+
`, o0 = k.div`
|
|
6856
6857
|
margin: 0;
|
|
6857
|
-
`, i0 =
|
|
6858
|
+
`, i0 = k.div`
|
|
6858
6859
|
text-align: center;
|
|
6859
6860
|
display: flex;
|
|
6860
6861
|
align-items: center;
|
|
@@ -6863,12 +6864,12 @@ const Qw = I.div`
|
|
|
6863
6864
|
background-color: transparent;
|
|
6864
6865
|
gap: 16px;
|
|
6865
6866
|
margin: 8px;
|
|
6866
|
-
`, a0 =
|
|
6867
|
+
`, a0 = k.p`
|
|
6867
6868
|
margin: 0;
|
|
6868
6869
|
color: #000000;
|
|
6869
6870
|
margin: 10px;
|
|
6870
6871
|
white-space: nowrap;
|
|
6871
|
-
`, c0 =
|
|
6872
|
+
`, c0 = k.button`
|
|
6872
6873
|
background: none;
|
|
6873
6874
|
border: none;
|
|
6874
6875
|
cursor: pointer;
|
|
@@ -6878,21 +6879,21 @@ const Qw = I.div`
|
|
|
6878
6879
|
align-items: center;
|
|
6879
6880
|
gap: 5px;
|
|
6880
6881
|
pointer-events: auto;
|
|
6881
|
-
`, Va =
|
|
6882
|
+
`, Va = k.div`
|
|
6882
6883
|
display: flex;
|
|
6883
6884
|
align-items: center;
|
|
6884
6885
|
justify-content: center;
|
|
6885
6886
|
width: 100%;
|
|
6886
6887
|
background-color: transparent;
|
|
6887
6888
|
border: 1px solid var(--colors-background-bg-prymary-5, #0052cd0d);
|
|
6888
|
-
`, l0 = ({ messageText: t }) => /* @__PURE__ */ y(i0, { children: /* @__PURE__ */ y(a0, { children: t }) }), u0 =
|
|
6889
|
+
`, l0 = ({ messageText: t }) => /* @__PURE__ */ y(i0, { children: /* @__PURE__ */ y(a0, { children: t }) }), u0 = k.div`
|
|
6889
6890
|
display: flex;
|
|
6890
6891
|
align-items: center;
|
|
6891
6892
|
justify-content: center;
|
|
6892
6893
|
width: 100%;
|
|
6893
6894
|
background-color: transparent;
|
|
6894
6895
|
gap: 16px;
|
|
6895
|
-
`, d0 =
|
|
6896
|
+
`, d0 = k.div`
|
|
6896
6897
|
margin: 0;
|
|
6897
6898
|
color: ${(t) => t.primary || "#0052cd"};
|
|
6898
6899
|
border-radius: 118px;
|
|
@@ -6927,7 +6928,7 @@ const Qw = I.div`
|
|
|
6927
6928
|
}, f0 = $u`
|
|
6928
6929
|
0% { transform: rotate(0deg); }
|
|
6929
6930
|
100% { transform: rotate(360deg); }
|
|
6930
|
-
`, Zr =
|
|
6931
|
+
`, Zr = k.div`
|
|
6931
6932
|
border: ${({ size: t }) => t ? t / 4 : 4}px solid #f3f3f3;
|
|
6932
6933
|
border-top: ${({ size: t }) => t ? t / 4 : 4}px solid
|
|
6933
6934
|
${({ color: t }) => t || "#3498db"};
|
|
@@ -6968,7 +6969,7 @@ const p0 = $u`
|
|
|
6968
6969
|
0% { opacity: 0.2; }
|
|
6969
6970
|
20% { opacity: 1; }
|
|
6970
6971
|
100% { opacity: 0.2; }
|
|
6971
|
-
`, m0 =
|
|
6972
|
+
`, m0 = k.div`
|
|
6972
6973
|
display: flex;
|
|
6973
6974
|
align-items: center;
|
|
6974
6975
|
font-size: 14px;
|
|
@@ -6977,9 +6978,9 @@ const p0 = $u`
|
|
|
6977
6978
|
position: static;
|
|
6978
6979
|
bottom: 4px;
|
|
6979
6980
|
left: 16px;
|
|
6980
|
-
`, g0 =
|
|
6981
|
+
`, g0 = k.span`
|
|
6981
6982
|
margin-right: 5px;
|
|
6982
|
-
`, Os =
|
|
6983
|
+
`, Os = k.span`
|
|
6983
6984
|
font-size: 24px;
|
|
6984
6985
|
line-height: 0;
|
|
6985
6986
|
animation: ${p0} 1.5s infinite;
|
|
@@ -7012,14 +7013,14 @@ const p0 = $u`
|
|
|
7012
7013
|
)}`
|
|
7013
7014
|
), n = !1);
|
|
7014
7015
|
}), n;
|
|
7015
|
-
}, w0 =
|
|
7016
|
+
}, w0 = k.div`
|
|
7016
7017
|
display: flex;
|
|
7017
7018
|
align-items: center;
|
|
7018
7019
|
justify-content: center;
|
|
7019
7020
|
width: 100%;
|
|
7020
7021
|
background-color: transparent;
|
|
7021
7022
|
gap: 16px;
|
|
7022
|
-
`, b0 =
|
|
7023
|
+
`, b0 = k.div`
|
|
7023
7024
|
margin: 0;
|
|
7024
7025
|
color: ${(t) => t != null && t.color ? t == null ? void 0 : t.color : "#0052CD"};
|
|
7025
7026
|
border-radius: 118px;
|
|
@@ -7042,14 +7043,14 @@ const p0 = $u`
|
|
|
7042
7043
|
room: s,
|
|
7043
7044
|
config: o
|
|
7044
7045
|
}) => {
|
|
7045
|
-
var
|
|
7046
|
+
var S, T;
|
|
7046
7047
|
const i = te(null), a = te(null), c = te(t[t.length - 1]), u = te(!1), l = te(0), d = te(null), { isLoading: f, composing: p, lastViewedTimestamp: h } = Qe(
|
|
7047
7048
|
(w) => w.rooms.rooms[s.jid]
|
|
7048
7049
|
), m = () => {
|
|
7049
7050
|
const w = i.current;
|
|
7050
7051
|
if (w) {
|
|
7051
|
-
const
|
|
7052
|
-
|
|
7052
|
+
const x = w.clientHeight, I = w.scrollHeight;
|
|
7053
|
+
I > x && (w.scrollTop = I - x);
|
|
7053
7054
|
}
|
|
7054
7055
|
}, g = () => {
|
|
7055
7056
|
const w = i.current;
|
|
@@ -7061,12 +7062,12 @@ const p0 = $u`
|
|
|
7061
7062
|
const w = i.current;
|
|
7062
7063
|
w && h0(w);
|
|
7063
7064
|
}, C = () => {
|
|
7064
|
-
var
|
|
7065
|
+
var x;
|
|
7065
7066
|
const w = g();
|
|
7066
7067
|
if (w && w.top < 150 && !u.current) {
|
|
7067
7068
|
d.current = g();
|
|
7068
|
-
const
|
|
7069
|
-
(
|
|
7069
|
+
const I = t[0];
|
|
7070
|
+
(x = I == null ? void 0 : I.user) != null && x.id && (u.current = !0, r(
|
|
7070
7071
|
t[0].roomJID,
|
|
7071
7072
|
30,
|
|
7072
7073
|
Number(t[0].id)
|
|
@@ -7074,14 +7075,14 @@ const p0 = $u`
|
|
|
7074
7075
|
u.current = !1, c.current = t[t.length - 1];
|
|
7075
7076
|
}));
|
|
7076
7077
|
}
|
|
7077
|
-
},
|
|
7078
|
+
}, E = () => {
|
|
7078
7079
|
window.clearTimeout(l.current), l.current = window.setTimeout(() => C(), 50);
|
|
7079
7080
|
};
|
|
7080
7081
|
if (Me(() => {
|
|
7081
7082
|
m(), v();
|
|
7082
7083
|
const w = a.current;
|
|
7083
|
-
return w && w.addEventListener("scroll",
|
|
7084
|
-
w && w.removeEventListener("scroll",
|
|
7084
|
+
return w && w.addEventListener("scroll", E, !0), () => {
|
|
7085
|
+
w && w.removeEventListener("scroll", E, !0);
|
|
7085
7086
|
};
|
|
7086
7087
|
}, []), Me(() => {
|
|
7087
7088
|
(t.length < 30 || c.current.id !== t[t.length - 1].id) && m();
|
|
@@ -7089,37 +7090,37 @@ const p0 = $u`
|
|
|
7089
7090
|
if (t && t.length > 30 && d.current) {
|
|
7090
7091
|
const w = g();
|
|
7091
7092
|
if (w && i.current) {
|
|
7092
|
-
const
|
|
7093
|
-
i.current.scrollTop =
|
|
7093
|
+
const x = d.current.top + (w.height - d.current.height);
|
|
7094
|
+
i.current.scrollTop = x;
|
|
7094
7095
|
}
|
|
7095
7096
|
d.current = null;
|
|
7096
7097
|
}
|
|
7097
7098
|
}, [t, p]), !v0(t))
|
|
7098
7099
|
return console.log("Invalid 'messages' props provided to MessageList."), null;
|
|
7099
|
-
let
|
|
7100
|
+
let b = null;
|
|
7100
7101
|
return /* @__PURE__ */ y(Jw, { ref: a, children: /* @__PURE__ */ N(
|
|
7101
7102
|
Gw,
|
|
7102
7103
|
{
|
|
7103
7104
|
ref: i,
|
|
7104
|
-
onScroll:
|
|
7105
|
-
color: (
|
|
7105
|
+
onScroll: E,
|
|
7106
|
+
color: (S = o == null ? void 0 : o.colors) == null ? void 0 : S.primary,
|
|
7106
7107
|
children: [
|
|
7107
7108
|
f && /* @__PURE__ */ y(Zr, { color: (T = o == null ? void 0 : o.colors) == null ? void 0 : T.primary }),
|
|
7108
7109
|
t.map((w) => {
|
|
7109
7110
|
var Q;
|
|
7110
|
-
const
|
|
7111
|
-
if (F && (
|
|
7111
|
+
const x = w.user.id === n.walletAddress, I = new Date(w.date), O = I.toDateString(), F = O !== b;
|
|
7112
|
+
if (F && (b = O), w.isSystemMessage === "true")
|
|
7112
7113
|
return /* @__PURE__ */ N(fe.Fragment, { children: [
|
|
7113
|
-
F && /* @__PURE__ */ y(Ba, { date:
|
|
7114
|
+
F && /* @__PURE__ */ y(Ba, { date: I, colors: o == null ? void 0 : o.colors }),
|
|
7114
7115
|
/* @__PURE__ */ y(l0, { messageText: w.body })
|
|
7115
7116
|
] }, w.id);
|
|
7116
7117
|
if (w.id === "delimiter-new" && h)
|
|
7117
7118
|
return /* @__PURE__ */ y(E0, { color: (Q = o == null ? void 0 : o.colors) == null ? void 0 : Q.primary });
|
|
7118
7119
|
const V = e || Xw;
|
|
7119
7120
|
return /* @__PURE__ */ N(fe.Fragment, { children: [
|
|
7120
|
-
F && w.id !== "delimiter-new" && /* @__PURE__ */ y(Ba, { date:
|
|
7121
|
-
/* @__PURE__ */ y(V, { message: w, isUser:
|
|
7122
|
-
/* @__PURE__ */ y(Kw, { children:
|
|
7121
|
+
F && w.id !== "delimiter-new" && /* @__PURE__ */ y(Ba, { date: I, colors: o == null ? void 0 : o.colors }),
|
|
7122
|
+
/* @__PURE__ */ y(V, { message: w, isUser: x, children: !e && /* @__PURE__ */ N(je, { children: [
|
|
7123
|
+
/* @__PURE__ */ y(Kw, { children: I.toLocaleTimeString() }),
|
|
7123
7124
|
/* @__PURE__ */ N(Zw, { children: [
|
|
7124
7125
|
w.user.name,
|
|
7125
7126
|
": "
|
|
@@ -7132,7 +7133,7 @@ const p0 = $u`
|
|
|
7132
7133
|
]
|
|
7133
7134
|
}
|
|
7134
7135
|
) });
|
|
7135
|
-
}, S0 =
|
|
7136
|
+
}, S0 = k.div`
|
|
7136
7137
|
display: flex;
|
|
7137
7138
|
flex-direction: column;
|
|
7138
7139
|
border-radius: 15px 15px 0px 0px;
|
|
@@ -7141,13 +7142,13 @@ const p0 = $u`
|
|
|
7141
7142
|
z-index: 1;
|
|
7142
7143
|
box-shadow: 0px 0px 8px -4px #12121908;
|
|
7143
7144
|
box-shadow: 0px 0px 24px -4px #12121914;
|
|
7144
|
-
`, C0 =
|
|
7145
|
+
`, C0 = k.div`
|
|
7145
7146
|
display: flex;
|
|
7146
7147
|
align-items: center;
|
|
7147
7148
|
width: 100%;
|
|
7148
7149
|
max-height: 72px;
|
|
7149
7150
|
gap: 16px;
|
|
7150
|
-
`, T0 =
|
|
7151
|
+
`, T0 = k.input`
|
|
7151
7152
|
flex-grow: 1;
|
|
7152
7153
|
padding: 10px;
|
|
7153
7154
|
border-radius: 12px;
|
|
@@ -7159,9 +7160,9 @@ const p0 = $u`
|
|
|
7159
7160
|
border: 1px solid ${(t) => t.color ? t.color : "#0052CD"};
|
|
7160
7161
|
outline: none;
|
|
7161
7162
|
}
|
|
7162
|
-
`, x0 =
|
|
7163
|
+
`, x0 = k.input`
|
|
7163
7164
|
display: none;
|
|
7164
|
-
`, I0 =
|
|
7165
|
+
`, I0 = k.div`
|
|
7165
7166
|
display: flex;
|
|
7166
7167
|
align-items: center;
|
|
7167
7168
|
justify-content: center;
|
|
@@ -7170,12 +7171,12 @@ const p0 = $u`
|
|
|
7170
7171
|
margin-left: 10px;
|
|
7171
7172
|
color: #000;
|
|
7172
7173
|
`;
|
|
7173
|
-
|
|
7174
|
+
k.canvas`
|
|
7174
7175
|
width: 100%;
|
|
7175
7176
|
height: 40px;
|
|
7176
7177
|
background: #f1f1f1;
|
|
7177
7178
|
`;
|
|
7178
|
-
const k0 =
|
|
7179
|
+
const k0 = k.div`
|
|
7179
7180
|
height: 40px;
|
|
7180
7181
|
display: flex;
|
|
7181
7182
|
flex-direction: row;
|
|
@@ -7183,13 +7184,13 @@ const k0 = I.div`
|
|
|
7183
7184
|
justify-content: space-between;
|
|
7184
7185
|
align-items: center;
|
|
7185
7186
|
width: 100%;
|
|
7186
|
-
`, A0 =
|
|
7187
|
+
`, A0 = k.div`
|
|
7187
7188
|
display: flex;
|
|
7188
7189
|
flex-direction: row;
|
|
7189
7190
|
flex-wrap: wrap;
|
|
7190
7191
|
gap: 10px;
|
|
7191
7192
|
margin-top: 10px;
|
|
7192
|
-
`, R0 =
|
|
7193
|
+
`, R0 = k.div`
|
|
7193
7194
|
position: relative;
|
|
7194
7195
|
display: flex;
|
|
7195
7196
|
flex-direction: column;
|
|
@@ -7201,15 +7202,15 @@ const k0 = I.div`
|
|
|
7201
7202
|
border-radius: 8px;
|
|
7202
7203
|
overflow: hidden;
|
|
7203
7204
|
background-color: #f9f9f9;
|
|
7204
|
-
`, O0 =
|
|
7205
|
+
`, O0 = k.img`
|
|
7205
7206
|
max-width: 80%;
|
|
7206
7207
|
max-height: 80%;
|
|
7207
|
-
`, N0 =
|
|
7208
|
+
`, N0 = k.video`
|
|
7208
7209
|
max-width: 80%;
|
|
7209
7210
|
max-height: 80%;
|
|
7210
|
-
`, P0 =
|
|
7211
|
+
`, P0 = k.button`
|
|
7211
7212
|
border: none;
|
|
7212
|
-
border-radius:
|
|
7213
|
+
border-radius: 16px;
|
|
7213
7214
|
background-size: contain;
|
|
7214
7215
|
cursor: pointer;
|
|
7215
7216
|
height: 40px;
|
|
@@ -7217,6 +7218,20 @@ const k0 = I.div`
|
|
|
7217
7218
|
display: flex;
|
|
7218
7219
|
justify-content: center;
|
|
7219
7220
|
align-items: center;
|
|
7221
|
+
padding: 0;
|
|
7222
|
+
transition: background-color 0.3s, box-shadow 0.3s;
|
|
7223
|
+
background-color: white;
|
|
7224
|
+
|
|
7225
|
+
&:hover {
|
|
7226
|
+
background-color: #cddce7;
|
|
7227
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
7228
|
+
}
|
|
7229
|
+
|
|
7230
|
+
&:disabled {
|
|
7231
|
+
background-color: #bdc3c7;
|
|
7232
|
+
cursor: not-allowed;
|
|
7233
|
+
opacity: 0.6;
|
|
7234
|
+
}
|
|
7220
7235
|
`, Oe = ({
|
|
7221
7236
|
text: t,
|
|
7222
7237
|
EndIcon: e,
|
|
@@ -7558,58 +7573,58 @@ const k0 = I.div`
|
|
|
7558
7573
|
isRecording: e,
|
|
7559
7574
|
handleSendClick: n
|
|
7560
7575
|
}) => {
|
|
7561
|
-
const [r, s] = ne(!1), [o, i] = ne(null), [a, c] = ne(0), u = te(null), l = te([]), d = te(null), f = te(null), p = te(null), h = te(null), m = te(null), g = te(null), v = (
|
|
7562
|
-
const
|
|
7563
|
-
return `${
|
|
7576
|
+
const [r, s] = ne(!1), [o, i] = ne(null), [a, c] = ne(0), u = te(null), l = te([]), d = te(null), f = te(null), p = te(null), h = te(null), m = te(null), g = te(null), v = (I) => {
|
|
7577
|
+
const O = Math.floor(I / 60), F = I % 60;
|
|
7578
|
+
return `${O.toString().padStart(2, "0")}:${F.toString().padStart(2, "0")}`;
|
|
7564
7579
|
}, C = J(() => {
|
|
7565
7580
|
f.current = setInterval(() => {
|
|
7566
|
-
c((
|
|
7581
|
+
c((I) => I + 1);
|
|
7567
7582
|
}, 1e3);
|
|
7568
|
-
}, []),
|
|
7583
|
+
}, []), E = J(() => {
|
|
7569
7584
|
f.current && clearInterval(f.current);
|
|
7570
|
-
}, []),
|
|
7571
|
-
const
|
|
7572
|
-
u.current =
|
|
7573
|
-
const F = p.current.createMediaStreamSource(
|
|
7585
|
+
}, []), b = J(async () => {
|
|
7586
|
+
const I = await navigator.mediaDevices.getUserMedia({ audio: !0 }), O = new MediaRecorder(I);
|
|
7587
|
+
u.current = O, p.current = new AudioContext();
|
|
7588
|
+
const F = p.current.createMediaStreamSource(I), V = p.current.createAnalyser();
|
|
7574
7589
|
F.connect(V), V.fftSize = 256;
|
|
7575
7590
|
const Q = V.frequencyBinCount, xe = new Uint8Array(Q);
|
|
7576
|
-
h.current = V, m.current = xe,
|
|
7591
|
+
h.current = V, m.current = xe, O.ondataavailable = (q) => {
|
|
7577
7592
|
l.current.push(q.data);
|
|
7578
|
-
},
|
|
7593
|
+
}, O.onstop = () => {
|
|
7579
7594
|
const q = new Blob(l.current, {
|
|
7580
7595
|
type: "audio/webm"
|
|
7581
7596
|
}), ee = URL.createObjectURL(q);
|
|
7582
7597
|
i(ee);
|
|
7583
|
-
}, l.current = [],
|
|
7584
|
-
}, [C]),
|
|
7585
|
-
u.current && (r ? (u.current.resume(), C()) : (u.current.pause(),
|
|
7598
|
+
}, l.current = [], O.start(), t(!0), s(!1), C();
|
|
7599
|
+
}, [C]), S = () => {
|
|
7600
|
+
u.current && (r ? (u.current.resume(), C()) : (u.current.pause(), E()), s(!r));
|
|
7586
7601
|
}, T = () => {
|
|
7587
|
-
u.current && (u.current.stop(), t(!1), s(!1),
|
|
7602
|
+
u.current && (u.current.stop(), t(!1), s(!1), E(), g.current && cancelAnimationFrame(g.current)), t(!1), E(), c(0);
|
|
7588
7603
|
}, w = () => {
|
|
7589
|
-
console.log(o), o && (console.log(o),
|
|
7590
|
-
},
|
|
7604
|
+
console.log(o), o && (console.log(o), E(), c(0), n(o), t(!1));
|
|
7605
|
+
}, x = J(() => {
|
|
7591
7606
|
if (!d.current || !h.current || !m.current)
|
|
7592
7607
|
return;
|
|
7593
|
-
const
|
|
7608
|
+
const I = d.current, O = I.getContext("2d"), F = h.current, V = m.current, Q = () => {
|
|
7594
7609
|
if (e) {
|
|
7595
|
-
if (F.getByteTimeDomainData(V),
|
|
7596
|
-
|
|
7597
|
-
const xe =
|
|
7610
|
+
if (F.getByteTimeDomainData(V), O) {
|
|
7611
|
+
O.fillStyle = "rgb(200, 200, 200)", O.fillRect(0, 0, I.width, I.height), O.lineWidth = 2, O.strokeStyle = "rgb(0, 0, 255)", O.beginPath();
|
|
7612
|
+
const xe = I.width * 1 / V.length;
|
|
7598
7613
|
let q = 0;
|
|
7599
7614
|
for (let ee = 0; ee < V.length; ee++) {
|
|
7600
|
-
const Zt = V[ee] / 128 *
|
|
7601
|
-
ee === 0 ?
|
|
7615
|
+
const Zt = V[ee] / 128 * I.height / 2;
|
|
7616
|
+
ee === 0 ? O.moveTo(q, Zt) : O.lineTo(q, Zt), q += xe;
|
|
7602
7617
|
}
|
|
7603
|
-
|
|
7618
|
+
O.lineTo(I.width, I.height / 2), O.stroke();
|
|
7604
7619
|
}
|
|
7605
7620
|
g.current = requestAnimationFrame(Q);
|
|
7606
7621
|
}
|
|
7607
7622
|
};
|
|
7608
7623
|
Q();
|
|
7609
7624
|
}, [e]);
|
|
7610
|
-
return Me(() => (e &&
|
|
7625
|
+
return Me(() => (e && x(), () => {
|
|
7611
7626
|
g.current && cancelAnimationFrame(g.current);
|
|
7612
|
-
}), [e,
|
|
7627
|
+
}), [e, x]), e ? /* @__PURE__ */ N(k0, { children: [
|
|
7613
7628
|
/* @__PURE__ */ y(
|
|
7614
7629
|
Oe,
|
|
7615
7630
|
{
|
|
@@ -7623,7 +7638,7 @@ const k0 = I.div`
|
|
|
7623
7638
|
/* @__PURE__ */ y(
|
|
7624
7639
|
Oe,
|
|
7625
7640
|
{
|
|
7626
|
-
onClick:
|
|
7641
|
+
onClick: S,
|
|
7627
7642
|
disabled: !e,
|
|
7628
7643
|
EndIcon: /* @__PURE__ */ y(L0, {})
|
|
7629
7644
|
}
|
|
@@ -7636,7 +7651,7 @@ const k0 = I.div`
|
|
|
7636
7651
|
EndIcon: /* @__PURE__ */ y(Hu, {})
|
|
7637
7652
|
}
|
|
7638
7653
|
)
|
|
7639
|
-
] }) : /* @__PURE__ */ y(Oe, { onClick:
|
|
7654
|
+
] }) : /* @__PURE__ */ y(Oe, { onClick: b, EndIcon: /* @__PURE__ */ y(M0, {}) });
|
|
7640
7655
|
}, U0 = ({
|
|
7641
7656
|
sendMessage: t,
|
|
7642
7657
|
sendMedia: e,
|
|
@@ -7645,14 +7660,14 @@ const k0 = I.div`
|
|
|
7645
7660
|
config: s,
|
|
7646
7661
|
isLoading: o
|
|
7647
7662
|
}) => {
|
|
7648
|
-
var w,
|
|
7663
|
+
var w, x;
|
|
7649
7664
|
const [i, a] = ne(""), [c, u] = ne(!1), [l, d] = ne([]), f = te(null), p = J(() => {
|
|
7650
7665
|
f.current && f.current.click();
|
|
7651
7666
|
}, []), h = J(
|
|
7652
|
-
(
|
|
7653
|
-
const
|
|
7654
|
-
if (
|
|
7655
|
-
const F = Array.from(
|
|
7667
|
+
(I) => {
|
|
7668
|
+
const O = I.target.files;
|
|
7669
|
+
if (O) {
|
|
7670
|
+
const F = Array.from(O);
|
|
7656
7671
|
d((V) => {
|
|
7657
7672
|
const Q = new Set(V.map((ee) => ee.name)), xe = F.filter(
|
|
7658
7673
|
(ee) => !Q.has(ee.name)
|
|
@@ -7667,38 +7682,38 @@ const k0 = I.div`
|
|
|
7667
7682
|
n == null || n();
|
|
7668
7683
|
}, g = () => {
|
|
7669
7684
|
r == null || r();
|
|
7670
|
-
}, v = J((
|
|
7671
|
-
d((
|
|
7685
|
+
}, v = J((I) => {
|
|
7686
|
+
d((O) => O.filter((F) => F !== I));
|
|
7672
7687
|
}, []), C = J(
|
|
7673
|
-
(
|
|
7674
|
-
a(
|
|
7688
|
+
(I) => {
|
|
7689
|
+
a(I.target.value);
|
|
7675
7690
|
},
|
|
7676
7691
|
[]
|
|
7677
|
-
),
|
|
7678
|
-
(
|
|
7679
|
-
l && l.length > 0 && (console.log(l), console.log("Files sent:", l), e(l), u(!1)),
|
|
7692
|
+
), E = J(
|
|
7693
|
+
(I) => {
|
|
7694
|
+
l && l.length > 0 && (console.log(l), console.log("Files sent:", l), e(l), u(!1)), I ? (e(I), console.log(I), console.log("Audio sent:", I), u(!1)) : (console.log("sending default", i), t(i)), a(""), d([]);
|
|
7680
7695
|
},
|
|
7681
7696
|
[l, i, t, e]
|
|
7682
|
-
),
|
|
7683
|
-
(
|
|
7684
|
-
|
|
7697
|
+
), b = J(
|
|
7698
|
+
(I) => {
|
|
7699
|
+
I.key === "Enter" && (l.length > 0 || i) && E();
|
|
7685
7700
|
},
|
|
7686
|
-
[
|
|
7687
|
-
),
|
|
7688
|
-
const
|
|
7689
|
-
return F === "image" ? /* @__PURE__ */ y(O0, { src:
|
|
7701
|
+
[E]
|
|
7702
|
+
), S = J((I) => {
|
|
7703
|
+
const O = URL.createObjectURL(I), F = I.type.split("/")[0];
|
|
7704
|
+
return F === "image" ? /* @__PURE__ */ y(O0, { src: O, alt: I.name }) : F === "video" ? /* @__PURE__ */ y(N0, { src: O, controls: !0 }) : /* @__PURE__ */ y(je, {});
|
|
7690
7705
|
}, []), T = uf(() => l.map(
|
|
7691
|
-
(
|
|
7692
|
-
|
|
7706
|
+
(I, O) => O < 6 && /* @__PURE__ */ N(R0, { children: [
|
|
7707
|
+
S(I),
|
|
7693
7708
|
/* @__PURE__ */ y(
|
|
7694
7709
|
Oe,
|
|
7695
7710
|
{
|
|
7696
|
-
onClick: () => v(
|
|
7711
|
+
onClick: () => v(I),
|
|
7697
7712
|
EndIcon: /* @__PURE__ */ y(Bu, {})
|
|
7698
7713
|
}
|
|
7699
7714
|
)
|
|
7700
|
-
] },
|
|
7701
|
-
), [l,
|
|
7715
|
+
] }, I.name)
|
|
7716
|
+
), [l, S, v]);
|
|
7702
7717
|
return /* @__PURE__ */ N(S0, { children: [
|
|
7703
7718
|
/* @__PURE__ */ N(C0, { children: [
|
|
7704
7719
|
!c && /* @__PURE__ */ N(je, { children: [
|
|
@@ -7717,7 +7732,7 @@ const k0 = I.div`
|
|
|
7717
7732
|
placeholder: "Type message",
|
|
7718
7733
|
value: i,
|
|
7719
7734
|
onChange: C,
|
|
7720
|
-
onKeyDown:
|
|
7735
|
+
onKeyDown: b,
|
|
7721
7736
|
onFocus: m,
|
|
7722
7737
|
onBlur: g,
|
|
7723
7738
|
disabled: o
|
|
@@ -7727,12 +7742,12 @@ const k0 = I.div`
|
|
|
7727
7742
|
i || l.length > 0 || s != null && s.disableMedia ? /* @__PURE__ */ y(
|
|
7728
7743
|
Oe,
|
|
7729
7744
|
{
|
|
7730
|
-
onClick: () =>
|
|
7745
|
+
onClick: () => E(),
|
|
7731
7746
|
disabled: !i || i === "",
|
|
7732
7747
|
EndIcon: /* @__PURE__ */ y(
|
|
7733
7748
|
Hu,
|
|
7734
7749
|
{
|
|
7735
|
-
color: !i || i === "" ? "#D4D4D8" : (
|
|
7750
|
+
color: !i || i === "" ? "#D4D4D8" : (x = s == null ? void 0 : s.colors) == null ? void 0 : x.primary
|
|
7736
7751
|
}
|
|
7737
7752
|
)
|
|
7738
7753
|
}
|
|
@@ -7741,7 +7756,7 @@ const k0 = I.div`
|
|
|
7741
7756
|
{
|
|
7742
7757
|
setIsRecording: u,
|
|
7743
7758
|
isRecording: c,
|
|
7744
|
-
handleSendClick:
|
|
7759
|
+
handleSendClick: E
|
|
7745
7760
|
}
|
|
7746
7761
|
)
|
|
7747
7762
|
] }),
|
|
@@ -7923,7 +7938,7 @@ const Eb = (t) => {
|
|
|
7923
7938
|
return r;
|
|
7924
7939
|
};
|
|
7925
7940
|
return n(t, 0);
|
|
7926
|
-
}, _b = we("AsyncFunction"), Sb = (t) => t && (ts(t) || de(t)) && de(t.then) && de(t.catch),
|
|
7941
|
+
}, _b = we("AsyncFunction"), Sb = (t) => t && (ts(t) || de(t)) && de(t.then) && de(t.catch), _ = {
|
|
7927
7942
|
isArray: Jt,
|
|
7928
7943
|
isArrayBuffer: Wu,
|
|
7929
7944
|
isBuffer: V0,
|
|
@@ -7984,7 +7999,7 @@ const Eb = (t) => {
|
|
|
7984
7999
|
function P(t, e, n, r, s) {
|
|
7985
8000
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), s && (this.response = s);
|
|
7986
8001
|
}
|
|
7987
|
-
|
|
8002
|
+
_.inherits(P, Error, {
|
|
7988
8003
|
toJSON: function() {
|
|
7989
8004
|
return {
|
|
7990
8005
|
// Standard
|
|
@@ -7999,7 +8014,7 @@ E.inherits(P, Error, {
|
|
|
7999
8014
|
columnNumber: this.columnNumber,
|
|
8000
8015
|
stack: this.stack,
|
|
8001
8016
|
// Axios
|
|
8002
|
-
config:
|
|
8017
|
+
config: _.toJSONObject(this.config),
|
|
8003
8018
|
code: this.code,
|
|
8004
8019
|
status: this.response && this.response.status ? this.response.status : null
|
|
8005
8020
|
};
|
|
@@ -8027,16 +8042,16 @@ Object.defineProperties(P, Qu);
|
|
|
8027
8042
|
Object.defineProperty(Zu, "isAxiosError", { value: !0 });
|
|
8028
8043
|
P.from = (t, e, n, r, s, o) => {
|
|
8029
8044
|
const i = Object.create(Zu);
|
|
8030
|
-
return
|
|
8045
|
+
return _.toFlatObject(t, i, function(c) {
|
|
8031
8046
|
return c !== Error.prototype;
|
|
8032
8047
|
}, (a) => a !== "isAxiosError"), P.call(i, t.message, e, n, r, s), i.cause = t, i.name = t.name, o && Object.assign(i, o), i;
|
|
8033
8048
|
};
|
|
8034
8049
|
const Cb = null;
|
|
8035
8050
|
function yo(t) {
|
|
8036
|
-
return
|
|
8051
|
+
return _.isPlainObject(t) || _.isArray(t);
|
|
8037
8052
|
}
|
|
8038
8053
|
function ed(t) {
|
|
8039
|
-
return
|
|
8054
|
+
return _.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
8040
8055
|
}
|
|
8041
8056
|
function qa(t, e, n) {
|
|
8042
8057
|
return t ? t.concat(e).map(function(s, o) {
|
|
@@ -8044,43 +8059,43 @@ function qa(t, e, n) {
|
|
|
8044
8059
|
}).join(n ? "." : "") : e;
|
|
8045
8060
|
}
|
|
8046
8061
|
function Tb(t) {
|
|
8047
|
-
return
|
|
8062
|
+
return _.isArray(t) && !t.some(yo);
|
|
8048
8063
|
}
|
|
8049
|
-
const xb =
|
|
8064
|
+
const xb = _.toFlatObject(_, {}, null, function(e) {
|
|
8050
8065
|
return /^is[A-Z]/.test(e);
|
|
8051
8066
|
});
|
|
8052
8067
|
function ns(t, e, n) {
|
|
8053
|
-
if (!
|
|
8068
|
+
if (!_.isObject(t))
|
|
8054
8069
|
throw new TypeError("target must be an object");
|
|
8055
|
-
e = e || new FormData(), n =
|
|
8070
|
+
e = e || new FormData(), n = _.toFlatObject(n, {
|
|
8056
8071
|
metaTokens: !0,
|
|
8057
8072
|
dots: !1,
|
|
8058
8073
|
indexes: !1
|
|
8059
8074
|
}, !1, function(m, g) {
|
|
8060
|
-
return !
|
|
8075
|
+
return !_.isUndefined(g[m]);
|
|
8061
8076
|
});
|
|
8062
|
-
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) &&
|
|
8063
|
-
if (!
|
|
8077
|
+
const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && _.isSpecCompliantForm(e);
|
|
8078
|
+
if (!_.isFunction(s))
|
|
8064
8079
|
throw new TypeError("visitor must be a function");
|
|
8065
8080
|
function u(h) {
|
|
8066
8081
|
if (h === null) return "";
|
|
8067
|
-
if (
|
|
8082
|
+
if (_.isDate(h))
|
|
8068
8083
|
return h.toISOString();
|
|
8069
|
-
if (!c &&
|
|
8084
|
+
if (!c && _.isBlob(h))
|
|
8070
8085
|
throw new P("Blob is not supported. Use a Buffer instead.");
|
|
8071
|
-
return
|
|
8086
|
+
return _.isArrayBuffer(h) || _.isTypedArray(h) ? c && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
|
|
8072
8087
|
}
|
|
8073
8088
|
function l(h, m, g) {
|
|
8074
8089
|
let v = h;
|
|
8075
8090
|
if (h && !g && typeof h == "object") {
|
|
8076
|
-
if (
|
|
8091
|
+
if (_.endsWith(m, "{}"))
|
|
8077
8092
|
m = r ? m : m.slice(0, -2), h = JSON.stringify(h);
|
|
8078
|
-
else if (
|
|
8079
|
-
return m = ed(m), v.forEach(function(
|
|
8080
|
-
!(
|
|
8093
|
+
else if (_.isArray(h) && Tb(h) || (_.isFileList(h) || _.endsWith(m, "[]")) && (v = _.toArray(h)))
|
|
8094
|
+
return m = ed(m), v.forEach(function(E, b) {
|
|
8095
|
+
!(_.isUndefined(E) || E === null) && e.append(
|
|
8081
8096
|
// eslint-disable-next-line no-nested-ternary
|
|
8082
|
-
i === !0 ? qa([m],
|
|
8083
|
-
u(
|
|
8097
|
+
i === !0 ? qa([m], b, o) : i === null ? m : m + "[]",
|
|
8098
|
+
u(E)
|
|
8084
8099
|
);
|
|
8085
8100
|
}), !1;
|
|
8086
8101
|
}
|
|
@@ -8092,21 +8107,21 @@ function ns(t, e, n) {
|
|
|
8092
8107
|
isVisitable: yo
|
|
8093
8108
|
});
|
|
8094
8109
|
function p(h, m) {
|
|
8095
|
-
if (!
|
|
8110
|
+
if (!_.isUndefined(h)) {
|
|
8096
8111
|
if (d.indexOf(h) !== -1)
|
|
8097
8112
|
throw Error("Circular reference detected in " + m.join("."));
|
|
8098
|
-
d.push(h),
|
|
8099
|
-
(!(
|
|
8113
|
+
d.push(h), _.forEach(h, function(v, C) {
|
|
8114
|
+
(!(_.isUndefined(v) || v === null) && s.call(
|
|
8100
8115
|
e,
|
|
8101
8116
|
v,
|
|
8102
|
-
|
|
8117
|
+
_.isString(C) ? C.trim() : C,
|
|
8103
8118
|
m,
|
|
8104
8119
|
f
|
|
8105
8120
|
)) === !0 && p(v, m ? m.concat(C) : [C]);
|
|
8106
8121
|
}), d.pop();
|
|
8107
8122
|
}
|
|
8108
8123
|
}
|
|
8109
|
-
if (!
|
|
8124
|
+
if (!_.isObject(t))
|
|
8110
8125
|
throw new TypeError("data must be an object");
|
|
8111
8126
|
return p(t), e;
|
|
8112
8127
|
}
|
|
@@ -8147,7 +8162,7 @@ function nd(t, e, n) {
|
|
|
8147
8162
|
return t;
|
|
8148
8163
|
const r = n && n.encode || Ib, s = n && n.serialize;
|
|
8149
8164
|
let o;
|
|
8150
|
-
if (s ? o = s(e, n) : o =
|
|
8165
|
+
if (s ? o = s(e, n) : o = _.isURLSearchParams(e) ? e.toString() : new ci(e, n).toString(r), o) {
|
|
8151
8166
|
const i = t.indexOf("#");
|
|
8152
8167
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
|
|
8153
8168
|
}
|
|
@@ -8202,7 +8217,7 @@ class Ja {
|
|
|
8202
8217
|
* @returns {void}
|
|
8203
8218
|
*/
|
|
8204
8219
|
forEach(e) {
|
|
8205
|
-
|
|
8220
|
+
_.forEach(this.handlers, function(r) {
|
|
8206
8221
|
r !== null && e(r);
|
|
8207
8222
|
});
|
|
8208
8223
|
}
|
|
@@ -8233,12 +8248,12 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Db
|
|
|
8233
8248
|
function Mb(t, e) {
|
|
8234
8249
|
return ns(t, new me.classes.URLSearchParams(), Object.assign({
|
|
8235
8250
|
visitor: function(n, r, s, o) {
|
|
8236
|
-
return me.isNode &&
|
|
8251
|
+
return me.isNode && _.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
8237
8252
|
}
|
|
8238
8253
|
}, e));
|
|
8239
8254
|
}
|
|
8240
8255
|
function jb(t) {
|
|
8241
|
-
return
|
|
8256
|
+
return _.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
8242
8257
|
}
|
|
8243
8258
|
function Fb(t) {
|
|
8244
8259
|
const e = {}, n = Object.keys(t);
|
|
@@ -8254,20 +8269,20 @@ function sd(t) {
|
|
|
8254
8269
|
let i = n[o++];
|
|
8255
8270
|
if (i === "__proto__") return !0;
|
|
8256
8271
|
const a = Number.isFinite(+i), c = o >= n.length;
|
|
8257
|
-
return i = !i &&
|
|
8272
|
+
return i = !i && _.isArray(s) ? s.length : i, c ? (_.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !_.isObject(s[i])) && (s[i] = []), e(n, r, s[i], o) && _.isArray(s[i]) && (s[i] = Fb(s[i])), !a);
|
|
8258
8273
|
}
|
|
8259
|
-
if (
|
|
8274
|
+
if (_.isFormData(t) && _.isFunction(t.entries)) {
|
|
8260
8275
|
const n = {};
|
|
8261
|
-
return
|
|
8276
|
+
return _.forEachEntry(t, (r, s) => {
|
|
8262
8277
|
e(jb(r), s, n, 0);
|
|
8263
8278
|
}), n;
|
|
8264
8279
|
}
|
|
8265
8280
|
return null;
|
|
8266
8281
|
}
|
|
8267
8282
|
function Ub(t, e, n) {
|
|
8268
|
-
if (
|
|
8283
|
+
if (_.isString(t))
|
|
8269
8284
|
try {
|
|
8270
|
-
return (e || JSON.parse)(t),
|
|
8285
|
+
return (e || JSON.parse)(t), _.trim(t);
|
|
8271
8286
|
} catch (r) {
|
|
8272
8287
|
if (r.name !== "SyntaxError")
|
|
8273
8288
|
throw r;
|
|
@@ -8278,20 +8293,20 @@ const xn = {
|
|
|
8278
8293
|
transitional: rd,
|
|
8279
8294
|
adapter: ["xhr", "http", "fetch"],
|
|
8280
8295
|
transformRequest: [function(e, n) {
|
|
8281
|
-
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o =
|
|
8282
|
-
if (o &&
|
|
8296
|
+
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = _.isObject(e);
|
|
8297
|
+
if (o && _.isHTMLForm(e) && (e = new FormData(e)), _.isFormData(e))
|
|
8283
8298
|
return s ? JSON.stringify(sd(e)) : e;
|
|
8284
|
-
if (
|
|
8299
|
+
if (_.isArrayBuffer(e) || _.isBuffer(e) || _.isStream(e) || _.isFile(e) || _.isBlob(e) || _.isReadableStream(e))
|
|
8285
8300
|
return e;
|
|
8286
|
-
if (
|
|
8301
|
+
if (_.isArrayBufferView(e))
|
|
8287
8302
|
return e.buffer;
|
|
8288
|
-
if (
|
|
8303
|
+
if (_.isURLSearchParams(e))
|
|
8289
8304
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
8290
8305
|
let a;
|
|
8291
8306
|
if (o) {
|
|
8292
8307
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
8293
8308
|
return Mb(e, this.formSerializer).toString();
|
|
8294
|
-
if ((a =
|
|
8309
|
+
if ((a = _.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
|
|
8295
8310
|
const c = this.env && this.env.FormData;
|
|
8296
8311
|
return ns(
|
|
8297
8312
|
a ? { "files[]": e } : e,
|
|
@@ -8304,9 +8319,9 @@ const xn = {
|
|
|
8304
8319
|
}],
|
|
8305
8320
|
transformResponse: [function(e) {
|
|
8306
8321
|
const n = this.transitional || xn.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
8307
|
-
if (
|
|
8322
|
+
if (_.isResponse(e) || _.isReadableStream(e))
|
|
8308
8323
|
return e;
|
|
8309
|
-
if (e &&
|
|
8324
|
+
if (e && _.isString(e) && (r && !this.responseType || s)) {
|
|
8310
8325
|
const i = !(n && n.silentJSONParsing) && s;
|
|
8311
8326
|
try {
|
|
8312
8327
|
return JSON.parse(e);
|
|
@@ -8340,10 +8355,10 @@ const xn = {
|
|
|
8340
8355
|
}
|
|
8341
8356
|
}
|
|
8342
8357
|
};
|
|
8343
|
-
|
|
8358
|
+
_.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
8344
8359
|
xn.headers[t] = {};
|
|
8345
8360
|
});
|
|
8346
|
-
const $b =
|
|
8361
|
+
const $b = _.toObjectSet([
|
|
8347
8362
|
"age",
|
|
8348
8363
|
"authorization",
|
|
8349
8364
|
"content-length",
|
|
@@ -8373,7 +8388,7 @@ function nn(t) {
|
|
|
8373
8388
|
return t && String(t).trim().toLowerCase();
|
|
8374
8389
|
}
|
|
8375
8390
|
function or(t) {
|
|
8376
|
-
return t === !1 || t == null ? t :
|
|
8391
|
+
return t === !1 || t == null ? t : _.isArray(t) ? t.map(or) : String(t);
|
|
8377
8392
|
}
|
|
8378
8393
|
function Bb(t) {
|
|
8379
8394
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -8384,12 +8399,12 @@ function Bb(t) {
|
|
|
8384
8399
|
}
|
|
8385
8400
|
const Hb = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
8386
8401
|
function Ps(t, e, n, r, s) {
|
|
8387
|
-
if (
|
|
8402
|
+
if (_.isFunction(r))
|
|
8388
8403
|
return r.call(this, e, n);
|
|
8389
|
-
if (s && (e = n), !!
|
|
8390
|
-
if (
|
|
8404
|
+
if (s && (e = n), !!_.isString(e)) {
|
|
8405
|
+
if (_.isString(r))
|
|
8391
8406
|
return e.indexOf(r) !== -1;
|
|
8392
|
-
if (
|
|
8407
|
+
if (_.isRegExp(r))
|
|
8393
8408
|
return r.test(e);
|
|
8394
8409
|
}
|
|
8395
8410
|
}
|
|
@@ -8397,7 +8412,7 @@ function zb(t) {
|
|
|
8397
8412
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
|
|
8398
8413
|
}
|
|
8399
8414
|
function Wb(t, e) {
|
|
8400
|
-
const n =
|
|
8415
|
+
const n = _.toCamelCase(" " + e);
|
|
8401
8416
|
["get", "set", "has"].forEach((r) => {
|
|
8402
8417
|
Object.defineProperty(t, r + n, {
|
|
8403
8418
|
value: function(s, o, i) {
|
|
@@ -8417,15 +8432,15 @@ class ie {
|
|
|
8417
8432
|
const l = nn(c);
|
|
8418
8433
|
if (!l)
|
|
8419
8434
|
throw new Error("header name must be a non-empty string");
|
|
8420
|
-
const d =
|
|
8435
|
+
const d = _.findKey(s, l);
|
|
8421
8436
|
(!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || c] = or(a));
|
|
8422
8437
|
}
|
|
8423
|
-
const i = (a, c) =>
|
|
8424
|
-
if (
|
|
8438
|
+
const i = (a, c) => _.forEach(a, (u, l) => o(u, l, c));
|
|
8439
|
+
if (_.isPlainObject(e) || e instanceof this.constructor)
|
|
8425
8440
|
i(e, n);
|
|
8426
|
-
else if (
|
|
8441
|
+
else if (_.isString(e) && (e = e.trim()) && !Hb(e))
|
|
8427
8442
|
i(Vb(e), n);
|
|
8428
|
-
else if (
|
|
8443
|
+
else if (_.isHeaders(e))
|
|
8429
8444
|
for (const [a, c] of e.entries())
|
|
8430
8445
|
o(c, a, r);
|
|
8431
8446
|
else
|
|
@@ -8434,16 +8449,16 @@ class ie {
|
|
|
8434
8449
|
}
|
|
8435
8450
|
get(e, n) {
|
|
8436
8451
|
if (e = nn(e), e) {
|
|
8437
|
-
const r =
|
|
8452
|
+
const r = _.findKey(this, e);
|
|
8438
8453
|
if (r) {
|
|
8439
8454
|
const s = this[r];
|
|
8440
8455
|
if (!n)
|
|
8441
8456
|
return s;
|
|
8442
8457
|
if (n === !0)
|
|
8443
8458
|
return Bb(s);
|
|
8444
|
-
if (
|
|
8459
|
+
if (_.isFunction(n))
|
|
8445
8460
|
return n.call(this, s, r);
|
|
8446
|
-
if (
|
|
8461
|
+
if (_.isRegExp(n))
|
|
8447
8462
|
return n.exec(s);
|
|
8448
8463
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
8449
8464
|
}
|
|
@@ -8451,7 +8466,7 @@ class ie {
|
|
|
8451
8466
|
}
|
|
8452
8467
|
has(e, n) {
|
|
8453
8468
|
if (e = nn(e), e) {
|
|
8454
|
-
const r =
|
|
8469
|
+
const r = _.findKey(this, e);
|
|
8455
8470
|
return !!(r && this[r] !== void 0 && (!n || Ps(this, this[r], r, n)));
|
|
8456
8471
|
}
|
|
8457
8472
|
return !1;
|
|
@@ -8461,11 +8476,11 @@ class ie {
|
|
|
8461
8476
|
let s = !1;
|
|
8462
8477
|
function o(i) {
|
|
8463
8478
|
if (i = nn(i), i) {
|
|
8464
|
-
const a =
|
|
8479
|
+
const a = _.findKey(r, i);
|
|
8465
8480
|
a && (!n || Ps(r, r[a], a, n)) && (delete r[a], s = !0);
|
|
8466
8481
|
}
|
|
8467
8482
|
}
|
|
8468
|
-
return
|
|
8483
|
+
return _.isArray(e) ? e.forEach(o) : o(e), s;
|
|
8469
8484
|
}
|
|
8470
8485
|
clear(e) {
|
|
8471
8486
|
const n = Object.keys(this);
|
|
@@ -8478,8 +8493,8 @@ class ie {
|
|
|
8478
8493
|
}
|
|
8479
8494
|
normalize(e) {
|
|
8480
8495
|
const n = this, r = {};
|
|
8481
|
-
return
|
|
8482
|
-
const i =
|
|
8496
|
+
return _.forEach(this, (s, o) => {
|
|
8497
|
+
const i = _.findKey(r, o);
|
|
8483
8498
|
if (i) {
|
|
8484
8499
|
n[i] = or(s), delete n[o];
|
|
8485
8500
|
return;
|
|
@@ -8493,8 +8508,8 @@ class ie {
|
|
|
8493
8508
|
}
|
|
8494
8509
|
toJSON(e) {
|
|
8495
8510
|
const n = /* @__PURE__ */ Object.create(null);
|
|
8496
|
-
return
|
|
8497
|
-
r != null && r !== !1 && (n[s] = e &&
|
|
8511
|
+
return _.forEach(this, (r, s) => {
|
|
8512
|
+
r != null && r !== !1 && (n[s] = e && _.isArray(r) ? r.join(", ") : r);
|
|
8498
8513
|
}), n;
|
|
8499
8514
|
}
|
|
8500
8515
|
[Symbol.iterator]() {
|
|
@@ -8522,11 +8537,11 @@ class ie {
|
|
|
8522
8537
|
const a = nn(i);
|
|
8523
8538
|
r[a] || (Wb(s, i), r[a] = !0);
|
|
8524
8539
|
}
|
|
8525
|
-
return
|
|
8540
|
+
return _.isArray(e) ? e.forEach(o) : o(e), this;
|
|
8526
8541
|
}
|
|
8527
8542
|
}
|
|
8528
8543
|
ie.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
8529
|
-
|
|
8544
|
+
_.reduceDescriptors(ie.prototype, ({ value: t }, e) => {
|
|
8530
8545
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
8531
8546
|
return {
|
|
8532
8547
|
get: () => t,
|
|
@@ -8535,11 +8550,11 @@ E.reduceDescriptors(ie.prototype, ({ value: t }, e) => {
|
|
|
8535
8550
|
}
|
|
8536
8551
|
};
|
|
8537
8552
|
});
|
|
8538
|
-
|
|
8553
|
+
_.freezeMethods(ie);
|
|
8539
8554
|
function Ds(t, e) {
|
|
8540
8555
|
const n = this || xn, r = e || n, s = ie.from(r.headers);
|
|
8541
8556
|
let o = r.data;
|
|
8542
|
-
return
|
|
8557
|
+
return _.forEach(t, function(a) {
|
|
8543
8558
|
o = a.call(n, o, s.normalize(), e ? e.status : void 0);
|
|
8544
8559
|
}), s.normalize(), o;
|
|
8545
8560
|
}
|
|
@@ -8549,7 +8564,7 @@ function od(t) {
|
|
|
8549
8564
|
function Kt(t, e, n) {
|
|
8550
8565
|
P.call(this, t ?? "canceled", P.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
8551
8566
|
}
|
|
8552
|
-
|
|
8567
|
+
_.inherits(Kt, P, {
|
|
8553
8568
|
__CANCEL__: !0
|
|
8554
8569
|
});
|
|
8555
8570
|
function id(t, e, n) {
|
|
@@ -8631,7 +8646,7 @@ const br = (t, e, n = 3) => {
|
|
|
8631
8646
|
};
|
|
8632
8647
|
}
|
|
8633
8648
|
return r = s(window.location.href), function(i) {
|
|
8634
|
-
const a =
|
|
8649
|
+
const a = _.isString(i) ? s(i) : i;
|
|
8635
8650
|
return a.protocol === r.protocol && a.host === r.host;
|
|
8636
8651
|
};
|
|
8637
8652
|
}()
|
|
@@ -8647,7 +8662,7 @@ const br = (t, e, n = 3) => {
|
|
|
8647
8662
|
{
|
|
8648
8663
|
write(t, e, n, r, s, o) {
|
|
8649
8664
|
const i = [t + "=" + encodeURIComponent(e)];
|
|
8650
|
-
|
|
8665
|
+
_.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), _.isString(r) && i.push("path=" + r), _.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
8651
8666
|
},
|
|
8652
8667
|
read(t) {
|
|
8653
8668
|
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
@@ -8683,21 +8698,21 @@ function Ct(t, e) {
|
|
|
8683
8698
|
e = e || {};
|
|
8684
8699
|
const n = {};
|
|
8685
8700
|
function r(u, l, d) {
|
|
8686
|
-
return
|
|
8701
|
+
return _.isPlainObject(u) && _.isPlainObject(l) ? _.merge.call({ caseless: d }, u, l) : _.isPlainObject(l) ? _.merge({}, l) : _.isArray(l) ? l.slice() : l;
|
|
8687
8702
|
}
|
|
8688
8703
|
function s(u, l, d) {
|
|
8689
|
-
if (
|
|
8690
|
-
if (!
|
|
8704
|
+
if (_.isUndefined(l)) {
|
|
8705
|
+
if (!_.isUndefined(u))
|
|
8691
8706
|
return r(void 0, u, d);
|
|
8692
8707
|
} else return r(u, l, d);
|
|
8693
8708
|
}
|
|
8694
8709
|
function o(u, l) {
|
|
8695
|
-
if (!
|
|
8710
|
+
if (!_.isUndefined(l))
|
|
8696
8711
|
return r(void 0, l);
|
|
8697
8712
|
}
|
|
8698
8713
|
function i(u, l) {
|
|
8699
|
-
if (
|
|
8700
|
-
if (!
|
|
8714
|
+
if (_.isUndefined(l)) {
|
|
8715
|
+
if (!_.isUndefined(u))
|
|
8701
8716
|
return r(void 0, u);
|
|
8702
8717
|
} else return r(void 0, l);
|
|
8703
8718
|
}
|
|
@@ -8738,9 +8753,9 @@ function Ct(t, e) {
|
|
|
8738
8753
|
validateStatus: a,
|
|
8739
8754
|
headers: (u, l) => s(Xa(u), Xa(l), !0)
|
|
8740
8755
|
};
|
|
8741
|
-
return
|
|
8756
|
+
return _.forEach(Object.keys(Object.assign({}, t, e)), function(l) {
|
|
8742
8757
|
const d = c[l] || s, f = d(t[l], e[l], l);
|
|
8743
|
-
|
|
8758
|
+
_.isUndefined(f) && d !== a || (n[l] = f);
|
|
8744
8759
|
}), n;
|
|
8745
8760
|
}
|
|
8746
8761
|
const cd = (t) => {
|
|
@@ -8751,7 +8766,7 @@ const cd = (t) => {
|
|
|
8751
8766
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
8752
8767
|
);
|
|
8753
8768
|
let c;
|
|
8754
|
-
if (
|
|
8769
|
+
if (_.isFormData(n)) {
|
|
8755
8770
|
if (me.hasStandardBrowserEnv || me.hasStandardBrowserWebWorkerEnv)
|
|
8756
8771
|
i.setContentType(void 0);
|
|
8757
8772
|
else if ((c = i.getContentType()) !== !1) {
|
|
@@ -8759,7 +8774,7 @@ const cd = (t) => {
|
|
|
8759
8774
|
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
8760
8775
|
}
|
|
8761
8776
|
}
|
|
8762
|
-
if (me.hasStandardBrowserEnv && (r &&
|
|
8777
|
+
if (me.hasStandardBrowserEnv && (r && _.isFunction(r) && (r = r(e)), r || r !== !1 && Kb(e.url))) {
|
|
8763
8778
|
const u = s && o && Xb.read(o);
|
|
8764
8779
|
u && i.set(s, u);
|
|
8765
8780
|
}
|
|
@@ -8809,9 +8824,9 @@ const cd = (t) => {
|
|
|
8809
8824
|
s,
|
|
8810
8825
|
l
|
|
8811
8826
|
)), l = null;
|
|
8812
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in l &&
|
|
8827
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in l && _.forEach(i.toJSON(), function(h, m) {
|
|
8813
8828
|
l.setRequestHeader(m, h);
|
|
8814
|
-
}),
|
|
8829
|
+
}), _.isUndefined(s.withCredentials) || (l.withCredentials = !!s.withCredentials), a && a !== "json" && (l.responseType = s.responseType), typeof s.onDownloadProgress == "function" && l.addEventListener("progress", br(s.onDownloadProgress, !0)), typeof s.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", br(s.onUploadProgress)), (s.cancelToken || s.signal) && (c = (p) => {
|
|
8815
8830
|
l && (r(!p || p.type ? new Kt(null, t, l) : p), l.abort(), l = null);
|
|
8816
8831
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
8817
8832
|
const f = qb(s.url);
|
|
@@ -8894,7 +8909,7 @@ const cd = (t) => {
|
|
|
8894
8909
|
return t && !e;
|
|
8895
8910
|
})(), Qa = 64 * 1024, wo = ld && !!(() => {
|
|
8896
8911
|
try {
|
|
8897
|
-
return
|
|
8912
|
+
return _.isReadableStream(new Response("").body);
|
|
8898
8913
|
} catch {
|
|
8899
8914
|
}
|
|
8900
8915
|
})(), Er = {
|
|
@@ -8902,7 +8917,7 @@ const cd = (t) => {
|
|
|
8902
8917
|
};
|
|
8903
8918
|
rs && ((t) => {
|
|
8904
8919
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
8905
|
-
!Er[e] && (Er[e] =
|
|
8920
|
+
!Er[e] && (Er[e] = _.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
8906
8921
|
throw new P(`Response type '${e}' is not supported`, P.ERR_NOT_SUPPORT, r);
|
|
8907
8922
|
});
|
|
8908
8923
|
});
|
|
@@ -8910,16 +8925,16 @@ rs && ((t) => {
|
|
|
8910
8925
|
const oE = async (t) => {
|
|
8911
8926
|
if (t == null)
|
|
8912
8927
|
return 0;
|
|
8913
|
-
if (
|
|
8928
|
+
if (_.isBlob(t))
|
|
8914
8929
|
return t.size;
|
|
8915
|
-
if (
|
|
8930
|
+
if (_.isSpecCompliantForm(t))
|
|
8916
8931
|
return (await new Request(t).arrayBuffer()).byteLength;
|
|
8917
|
-
if (
|
|
8932
|
+
if (_.isArrayBufferView(t))
|
|
8918
8933
|
return t.byteLength;
|
|
8919
|
-
if (
|
|
8934
|
+
if (_.isURLSearchParams(t) && (t = t + ""), _.isString(t))
|
|
8920
8935
|
return (await vo(t)).byteLength;
|
|
8921
8936
|
}, iE = async (t, e) => {
|
|
8922
|
-
const n =
|
|
8937
|
+
const n = _.toFiniteNumber(t.getContentLength());
|
|
8923
8938
|
return n ?? oE(e);
|
|
8924
8939
|
}, aE = rs && (async (t) => {
|
|
8925
8940
|
let {
|
|
@@ -8951,12 +8966,12 @@ const oE = async (t) => {
|
|
|
8951
8966
|
body: r,
|
|
8952
8967
|
duplex: "half"
|
|
8953
8968
|
}), w;
|
|
8954
|
-
|
|
8969
|
+
_.isFormData(r) && (w = T.headers.get("content-type")) && l.setContentType(w), T.body && (r = Ya(T.body, Qa, Za(
|
|
8955
8970
|
C,
|
|
8956
8971
|
br(c)
|
|
8957
8972
|
), null, vo));
|
|
8958
8973
|
}
|
|
8959
|
-
|
|
8974
|
+
_.isString(d) || (d = d ? "cors" : "omit"), g = new Request(e, {
|
|
8960
8975
|
...f,
|
|
8961
8976
|
signal: p,
|
|
8962
8977
|
method: n.toUpperCase(),
|
|
@@ -8965,48 +8980,48 @@ const oE = async (t) => {
|
|
|
8965
8980
|
duplex: "half",
|
|
8966
8981
|
withCredentials: d
|
|
8967
8982
|
});
|
|
8968
|
-
let
|
|
8969
|
-
const
|
|
8970
|
-
if (wo && (a ||
|
|
8983
|
+
let E = await fetch(g);
|
|
8984
|
+
const b = wo && (u === "stream" || u === "response");
|
|
8985
|
+
if (wo && (a || b)) {
|
|
8971
8986
|
const T = {};
|
|
8972
|
-
["status", "statusText", "headers"].forEach((
|
|
8973
|
-
T[
|
|
8987
|
+
["status", "statusText", "headers"].forEach((x) => {
|
|
8988
|
+
T[x] = E[x];
|
|
8974
8989
|
});
|
|
8975
|
-
const w =
|
|
8976
|
-
|
|
8977
|
-
Ya(
|
|
8990
|
+
const w = _.toFiniteNumber(E.headers.get("content-length"));
|
|
8991
|
+
E = new Response(
|
|
8992
|
+
Ya(E.body, Qa, a && Za(
|
|
8978
8993
|
w,
|
|
8979
8994
|
br(a, !0)
|
|
8980
|
-
),
|
|
8995
|
+
), b && v, vo),
|
|
8981
8996
|
T
|
|
8982
8997
|
);
|
|
8983
8998
|
}
|
|
8984
8999
|
u = u || "text";
|
|
8985
|
-
let
|
|
8986
|
-
return !
|
|
9000
|
+
let S = await Er[_.findKey(Er, u) || "text"](E, t);
|
|
9001
|
+
return !b && v(), h && h(), await new Promise((T, w) => {
|
|
8987
9002
|
id(T, w, {
|
|
8988
|
-
data:
|
|
8989
|
-
headers: ie.from(
|
|
8990
|
-
status:
|
|
8991
|
-
statusText:
|
|
9003
|
+
data: S,
|
|
9004
|
+
headers: ie.from(E.headers),
|
|
9005
|
+
status: E.status,
|
|
9006
|
+
statusText: E.statusText,
|
|
8992
9007
|
config: t,
|
|
8993
9008
|
request: g
|
|
8994
9009
|
});
|
|
8995
9010
|
});
|
|
8996
|
-
} catch (
|
|
8997
|
-
throw v(),
|
|
9011
|
+
} catch (E) {
|
|
9012
|
+
throw v(), E && E.name === "TypeError" && /fetch/i.test(E.message) ? Object.assign(
|
|
8998
9013
|
new P("Network Error", P.ERR_NETWORK, t, g),
|
|
8999
9014
|
{
|
|
9000
|
-
cause:
|
|
9015
|
+
cause: E.cause || E
|
|
9001
9016
|
}
|
|
9002
|
-
) : P.from(
|
|
9017
|
+
) : P.from(E, E && E.code, t, g);
|
|
9003
9018
|
}
|
|
9004
9019
|
}), bo = {
|
|
9005
9020
|
http: Cb,
|
|
9006
9021
|
xhr: eE,
|
|
9007
9022
|
fetch: aE
|
|
9008
9023
|
};
|
|
9009
|
-
|
|
9024
|
+
_.forEach(bo, (t, e) => {
|
|
9010
9025
|
if (t) {
|
|
9011
9026
|
try {
|
|
9012
9027
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -9015,9 +9030,9 @@ E.forEach(bo, (t, e) => {
|
|
|
9015
9030
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
9016
9031
|
}
|
|
9017
9032
|
});
|
|
9018
|
-
const ec = (t) => `- ${t}`, cE = (t) =>
|
|
9033
|
+
const ec = (t) => `- ${t}`, cE = (t) => _.isFunction(t) || t === null || t === !1, ud = {
|
|
9019
9034
|
getAdapter: (t) => {
|
|
9020
|
-
t =
|
|
9035
|
+
t = _.isArray(t) ? t : [t];
|
|
9021
9036
|
const { length: e } = t;
|
|
9022
9037
|
let n, r;
|
|
9023
9038
|
const s = {};
|
|
@@ -9153,17 +9168,17 @@ class wt {
|
|
|
9153
9168
|
silentJSONParsing: qe.transitional(qe.boolean),
|
|
9154
9169
|
forcedJSONParsing: qe.transitional(qe.boolean),
|
|
9155
9170
|
clarifyTimeoutError: qe.transitional(qe.boolean)
|
|
9156
|
-
}, !1), s != null && (
|
|
9171
|
+
}, !1), s != null && (_.isFunction(s) ? n.paramsSerializer = {
|
|
9157
9172
|
serialize: s
|
|
9158
9173
|
} : Eo.assertOptions(s, {
|
|
9159
9174
|
encode: qe.function,
|
|
9160
9175
|
serialize: qe.function
|
|
9161
9176
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
9162
|
-
let i = o &&
|
|
9177
|
+
let i = o && _.merge(
|
|
9163
9178
|
o.common,
|
|
9164
9179
|
o[n.method]
|
|
9165
9180
|
);
|
|
9166
|
-
o &&
|
|
9181
|
+
o && _.forEach(
|
|
9167
9182
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
9168
9183
|
(h) => {
|
|
9169
9184
|
delete o[h];
|
|
@@ -9211,7 +9226,7 @@ class wt {
|
|
|
9211
9226
|
return nd(n, e.params, e.paramsSerializer);
|
|
9212
9227
|
}
|
|
9213
9228
|
}
|
|
9214
|
-
|
|
9229
|
+
_.forEach(["delete", "get", "head", "options"], function(e) {
|
|
9215
9230
|
wt.prototype[e] = function(n, r) {
|
|
9216
9231
|
return this.request(Ct(r || {}, {
|
|
9217
9232
|
method: e,
|
|
@@ -9220,7 +9235,7 @@ E.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
9220
9235
|
}));
|
|
9221
9236
|
};
|
|
9222
9237
|
});
|
|
9223
|
-
|
|
9238
|
+
_.forEach(["post", "put", "patch"], function(e) {
|
|
9224
9239
|
function n(r) {
|
|
9225
9240
|
return function(o, i, a) {
|
|
9226
9241
|
return this.request(Ct(a || {}, {
|
|
@@ -9308,7 +9323,7 @@ function uE(t) {
|
|
|
9308
9323
|
};
|
|
9309
9324
|
}
|
|
9310
9325
|
function dE(t) {
|
|
9311
|
-
return
|
|
9326
|
+
return _.isObject(t) && t.isAxiosError === !0;
|
|
9312
9327
|
}
|
|
9313
9328
|
const _o = {
|
|
9314
9329
|
Continue: 100,
|
|
@@ -9380,7 +9395,7 @@ Object.entries(_o).forEach(([t, e]) => {
|
|
|
9380
9395
|
});
|
|
9381
9396
|
function fd(t) {
|
|
9382
9397
|
const e = new wt(t), n = zu(wt.prototype.request, e);
|
|
9383
|
-
return
|
|
9398
|
+
return _.extend(n, wt.prototype, e, { allOwnKeys: !0 }), _.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
9384
9399
|
return fd(Ct(t, s));
|
|
9385
9400
|
}, n;
|
|
9386
9401
|
}
|
|
@@ -9400,7 +9415,7 @@ z.spread = uE;
|
|
|
9400
9415
|
z.isAxiosError = dE;
|
|
9401
9416
|
z.mergeConfig = Ct;
|
|
9402
9417
|
z.AxiosHeaders = ie;
|
|
9403
|
-
z.formToJSON = (t) => sd(
|
|
9418
|
+
z.formToJSON = (t) => sd(_.isHTMLForm(t) ? new FormData(t) : t);
|
|
9404
9419
|
z.getAdapter = ud.getAdapter;
|
|
9405
9420
|
z.HttpStatusCode = _o;
|
|
9406
9421
|
z.default = z;
|
|
@@ -11114,7 +11129,7 @@ function mi(t, ...e) {
|
|
|
11114
11129
|
}
|
|
11115
11130
|
return Id.create(t, ...e);
|
|
11116
11131
|
}
|
|
11117
|
-
function
|
|
11132
|
+
function A(t, e, ...n) {
|
|
11118
11133
|
if (!t)
|
|
11119
11134
|
throw mi(e, ...n);
|
|
11120
11135
|
}
|
|
@@ -11533,7 +11548,7 @@ function fn(t) {
|
|
|
11533
11548
|
}
|
|
11534
11549
|
async function Q_(t, e = !1) {
|
|
11535
11550
|
const n = Xt(t), r = await n.getIdToken(e), s = vi(r);
|
|
11536
|
-
|
|
11551
|
+
A(
|
|
11537
11552
|
s && s.exp && s.auth_time && s.iat,
|
|
11538
11553
|
n.auth,
|
|
11539
11554
|
"internal-error"
|
|
@@ -11566,15 +11581,15 @@ function vi(t) {
|
|
|
11566
11581
|
}
|
|
11567
11582
|
function hc(t) {
|
|
11568
11583
|
const e = vi(t);
|
|
11569
|
-
return
|
|
11584
|
+
return A(
|
|
11570
11585
|
e,
|
|
11571
11586
|
"internal-error"
|
|
11572
11587
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11573
|
-
),
|
|
11588
|
+
), A(
|
|
11574
11589
|
typeof e.exp < "u",
|
|
11575
11590
|
"internal-error"
|
|
11576
11591
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11577
|
-
),
|
|
11592
|
+
), A(
|
|
11578
11593
|
typeof e.iat < "u",
|
|
11579
11594
|
"internal-error"
|
|
11580
11595
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -11722,7 +11737,7 @@ class Ao {
|
|
|
11722
11737
|
async function Tr(t) {
|
|
11723
11738
|
var e;
|
|
11724
11739
|
const n = t.auth, r = await t.getIdToken(), s = await bn(t, Od(n, { idToken: r }));
|
|
11725
|
-
|
|
11740
|
+
A(
|
|
11726
11741
|
s == null ? void 0 : s.users.length,
|
|
11727
11742
|
n,
|
|
11728
11743
|
"internal-error"
|
|
@@ -11828,15 +11843,15 @@ class Pt {
|
|
|
11828
11843
|
return !this.expirationTime || Date.now() > this.expirationTime - 3e4;
|
|
11829
11844
|
}
|
|
11830
11845
|
updateFromServerResponse(e) {
|
|
11831
|
-
|
|
11846
|
+
A(
|
|
11832
11847
|
e.idToken,
|
|
11833
11848
|
"internal-error"
|
|
11834
11849
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11835
|
-
),
|
|
11850
|
+
), A(
|
|
11836
11851
|
typeof e.idToken < "u",
|
|
11837
11852
|
"internal-error"
|
|
11838
11853
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
11839
|
-
),
|
|
11854
|
+
), A(
|
|
11840
11855
|
typeof e.refreshToken < "u",
|
|
11841
11856
|
"internal-error"
|
|
11842
11857
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -11845,7 +11860,7 @@ class Pt {
|
|
|
11845
11860
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
11846
11861
|
}
|
|
11847
11862
|
updateFromIdToken(e) {
|
|
11848
|
-
|
|
11863
|
+
A(
|
|
11849
11864
|
e.length !== 0,
|
|
11850
11865
|
"internal-error"
|
|
11851
11866
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -11854,7 +11869,7 @@ class Pt {
|
|
|
11854
11869
|
this.updateTokensAndExpiration(e, null, n);
|
|
11855
11870
|
}
|
|
11856
11871
|
async getToken(e, n = !1) {
|
|
11857
|
-
return !n && this.accessToken && !this.isExpired ? this.accessToken : (
|
|
11872
|
+
return !n && this.accessToken && !this.isExpired ? this.accessToken : (A(
|
|
11858
11873
|
this.refreshToken,
|
|
11859
11874
|
e,
|
|
11860
11875
|
"user-token-expired"
|
|
@@ -11873,11 +11888,11 @@ class Pt {
|
|
|
11873
11888
|
}
|
|
11874
11889
|
static fromJSON(e, n) {
|
|
11875
11890
|
const { refreshToken: r, accessToken: s, expirationTime: o } = n, i = new Pt();
|
|
11876
|
-
return r && (
|
|
11891
|
+
return r && (A(typeof r == "string", "internal-error", {
|
|
11877
11892
|
appName: e
|
|
11878
|
-
}), i.refreshToken = r), s && (
|
|
11893
|
+
}), i.refreshToken = r), s && (A(typeof s == "string", "internal-error", {
|
|
11879
11894
|
appName: e
|
|
11880
|
-
}), i.accessToken = s), o && (
|
|
11895
|
+
}), i.accessToken = s), o && (A(typeof o == "number", "internal-error", {
|
|
11881
11896
|
appName: e
|
|
11882
11897
|
}), i.expirationTime = o), i;
|
|
11883
11898
|
}
|
|
@@ -11915,7 +11930,7 @@ class Pt {
|
|
|
11915
11930
|
* limitations under the License.
|
|
11916
11931
|
*/
|
|
11917
11932
|
function Ge(t, e) {
|
|
11918
|
-
|
|
11933
|
+
A(typeof t == "string" || typeof t > "u", "internal-error", { appName: e });
|
|
11919
11934
|
}
|
|
11920
11935
|
class De {
|
|
11921
11936
|
constructor(e) {
|
|
@@ -11924,7 +11939,7 @@ class De {
|
|
|
11924
11939
|
}
|
|
11925
11940
|
async getIdToken(e) {
|
|
11926
11941
|
const n = await bn(this, this.stsTokenManager.getToken(this.auth, e));
|
|
11927
|
-
return
|
|
11942
|
+
return A(
|
|
11928
11943
|
n,
|
|
11929
11944
|
this.auth,
|
|
11930
11945
|
"internal-error"
|
|
@@ -11938,7 +11953,7 @@ class De {
|
|
|
11938
11953
|
return n1(this);
|
|
11939
11954
|
}
|
|
11940
11955
|
_assign(e) {
|
|
11941
|
-
this !== e && (
|
|
11956
|
+
this !== e && (A(
|
|
11942
11957
|
this.uid === e.uid,
|
|
11943
11958
|
this.auth,
|
|
11944
11959
|
"internal-error"
|
|
@@ -11950,7 +11965,7 @@ class De {
|
|
|
11950
11965
|
return n.metadata._copy(this.metadata), n;
|
|
11951
11966
|
}
|
|
11952
11967
|
_onReload(e) {
|
|
11953
|
-
|
|
11968
|
+
A(
|
|
11954
11969
|
!this.reloadListener,
|
|
11955
11970
|
this.auth,
|
|
11956
11971
|
"internal-error"
|
|
@@ -12002,45 +12017,45 @@ class De {
|
|
|
12002
12017
|
}
|
|
12003
12018
|
static _fromJSON(e, n) {
|
|
12004
12019
|
var r, s, o, i, a, c, u, l;
|
|
12005
|
-
const d = (r = n.displayName) !== null && r !== void 0 ? r : void 0, f = (s = n.email) !== null && s !== void 0 ? s : void 0, p = (o = n.phoneNumber) !== null && o !== void 0 ? o : void 0, h = (i = n.photoURL) !== null && i !== void 0 ? i : void 0, m = (a = n.tenantId) !== null && a !== void 0 ? a : void 0, g = (c = n._redirectEventId) !== null && c !== void 0 ? c : void 0, v = (u = n.createdAt) !== null && u !== void 0 ? u : void 0, C = (l = n.lastLoginAt) !== null && l !== void 0 ? l : void 0, { uid:
|
|
12006
|
-
|
|
12007
|
-
|
|
12020
|
+
const d = (r = n.displayName) !== null && r !== void 0 ? r : void 0, f = (s = n.email) !== null && s !== void 0 ? s : void 0, p = (o = n.phoneNumber) !== null && o !== void 0 ? o : void 0, h = (i = n.photoURL) !== null && i !== void 0 ? i : void 0, m = (a = n.tenantId) !== null && a !== void 0 ? a : void 0, g = (c = n._redirectEventId) !== null && c !== void 0 ? c : void 0, v = (u = n.createdAt) !== null && u !== void 0 ? u : void 0, C = (l = n.lastLoginAt) !== null && l !== void 0 ? l : void 0, { uid: E, emailVerified: b, isAnonymous: S, providerData: T, stsTokenManager: w } = n;
|
|
12021
|
+
A(
|
|
12022
|
+
E && w,
|
|
12008
12023
|
e,
|
|
12009
12024
|
"internal-error"
|
|
12010
12025
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
12011
12026
|
);
|
|
12012
|
-
const
|
|
12013
|
-
|
|
12014
|
-
typeof
|
|
12027
|
+
const x = Pt.fromJSON(this.name, w);
|
|
12028
|
+
A(
|
|
12029
|
+
typeof E == "string",
|
|
12015
12030
|
e,
|
|
12016
12031
|
"internal-error"
|
|
12017
12032
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
12018
|
-
), Ge(d, e.name), Ge(f, e.name),
|
|
12019
|
-
typeof
|
|
12033
|
+
), Ge(d, e.name), Ge(f, e.name), A(
|
|
12034
|
+
typeof b == "boolean",
|
|
12020
12035
|
e,
|
|
12021
12036
|
"internal-error"
|
|
12022
12037
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
12023
|
-
),
|
|
12024
|
-
typeof
|
|
12038
|
+
), A(
|
|
12039
|
+
typeof S == "boolean",
|
|
12025
12040
|
e,
|
|
12026
12041
|
"internal-error"
|
|
12027
12042
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
12028
12043
|
), Ge(p, e.name), Ge(h, e.name), Ge(m, e.name), Ge(g, e.name), Ge(v, e.name), Ge(C, e.name);
|
|
12029
|
-
const
|
|
12030
|
-
uid:
|
|
12044
|
+
const I = new De({
|
|
12045
|
+
uid: E,
|
|
12031
12046
|
auth: e,
|
|
12032
12047
|
email: f,
|
|
12033
|
-
emailVerified:
|
|
12048
|
+
emailVerified: b,
|
|
12034
12049
|
displayName: d,
|
|
12035
|
-
isAnonymous:
|
|
12050
|
+
isAnonymous: S,
|
|
12036
12051
|
photoURL: h,
|
|
12037
12052
|
phoneNumber: p,
|
|
12038
12053
|
tenantId: m,
|
|
12039
|
-
stsTokenManager:
|
|
12054
|
+
stsTokenManager: x,
|
|
12040
12055
|
createdAt: v,
|
|
12041
12056
|
lastLoginAt: C
|
|
12042
12057
|
});
|
|
12043
|
-
return T && Array.isArray(T) && (
|
|
12058
|
+
return T && Array.isArray(T) && (I.providerData = T.map((O) => Object.assign({}, O))), g && (I._redirectEventId = g), I;
|
|
12044
12059
|
}
|
|
12045
12060
|
/**
|
|
12046
12061
|
* Initialize a User from an idToken server response
|
|
@@ -12065,7 +12080,7 @@ class De {
|
|
|
12065
12080
|
*/
|
|
12066
12081
|
static async _fromGetAccountInfoResponse(e, n, r) {
|
|
12067
12082
|
const s = n.users[0];
|
|
12068
|
-
|
|
12083
|
+
A(
|
|
12069
12084
|
s.localId !== void 0,
|
|
12070
12085
|
"internal-error"
|
|
12071
12086
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -12593,7 +12608,7 @@ class f1 {
|
|
|
12593
12608
|
}
|
|
12594
12609
|
return s ? this.reloadAndSetCurrentUserOrClear(s) : this.directlySetCurrentUser(null);
|
|
12595
12610
|
}
|
|
12596
|
-
return
|
|
12611
|
+
return A(
|
|
12597
12612
|
this._popupRedirectResolver,
|
|
12598
12613
|
this,
|
|
12599
12614
|
"argument-error"
|
|
@@ -12628,7 +12643,7 @@ class f1 {
|
|
|
12628
12643
|
if (Ne(this.app))
|
|
12629
12644
|
return Promise.reject(bt(this));
|
|
12630
12645
|
const n = e ? Xt(e) : null;
|
|
12631
|
-
return n &&
|
|
12646
|
+
return n && A(
|
|
12632
12647
|
n.auth.config.apiKey === this.config.apiKey,
|
|
12633
12648
|
this,
|
|
12634
12649
|
"invalid-user-token"
|
|
@@ -12637,7 +12652,7 @@ class f1 {
|
|
|
12637
12652
|
}
|
|
12638
12653
|
async _updateCurrentUser(e, n = !1) {
|
|
12639
12654
|
if (!this._deleted)
|
|
12640
|
-
return e &&
|
|
12655
|
+
return e && A(
|
|
12641
12656
|
this.tenantId === e.tenantId,
|
|
12642
12657
|
this,
|
|
12643
12658
|
"tenant-id-mismatch"
|
|
@@ -12729,7 +12744,7 @@ class f1 {
|
|
|
12729
12744
|
async getOrInitRedirectPersistenceManager(e) {
|
|
12730
12745
|
if (!this.redirectPersistenceManager) {
|
|
12731
12746
|
const n = e && Le(e) || this._popupRedirectResolver;
|
|
12732
|
-
|
|
12747
|
+
A(
|
|
12733
12748
|
n,
|
|
12734
12749
|
this,
|
|
12735
12750
|
"argument-error"
|
|
@@ -12784,7 +12799,7 @@ class f1 {
|
|
|
12784
12799
|
const o = typeof n == "function" ? n : n.next.bind(n);
|
|
12785
12800
|
let i = !1;
|
|
12786
12801
|
const a = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
|
12787
|
-
if (
|
|
12802
|
+
if (A(
|
|
12788
12803
|
a,
|
|
12789
12804
|
this,
|
|
12790
12805
|
"internal-error"
|
|
@@ -12815,7 +12830,7 @@ class f1 {
|
|
|
12815
12830
|
return this.operations = this.operations.then(e, e), this.operations;
|
|
12816
12831
|
}
|
|
12817
12832
|
get assertedPersistence() {
|
|
12818
|
-
return
|
|
12833
|
+
return A(
|
|
12819
12834
|
this.persistenceManager,
|
|
12820
12835
|
this,
|
|
12821
12836
|
"internal-error"
|
|
@@ -12864,7 +12879,7 @@ class yc {
|
|
|
12864
12879
|
this.auth = e, this.observer = null, this.addObserver = NE((n) => this.observer = n);
|
|
12865
12880
|
}
|
|
12866
12881
|
get next() {
|
|
12867
|
-
return
|
|
12882
|
+
return A(
|
|
12868
12883
|
this.observer,
|
|
12869
12884
|
this.auth,
|
|
12870
12885
|
"internal-error"
|
|
@@ -12944,12 +12959,12 @@ function v1(t, e) {
|
|
|
12944
12959
|
}
|
|
12945
12960
|
function w1(t, e, n) {
|
|
12946
12961
|
const r = ss(t);
|
|
12947
|
-
|
|
12962
|
+
A(
|
|
12948
12963
|
r._canInitEmulator,
|
|
12949
12964
|
r,
|
|
12950
12965
|
"emulator-config-failed"
|
|
12951
12966
|
/* AuthErrorCode.EMULATOR_CONFIG_FAILED */
|
|
12952
|
-
),
|
|
12967
|
+
), A(
|
|
12953
12968
|
/^https?:\/\//.test(e),
|
|
12954
12969
|
r,
|
|
12955
12970
|
"invalid-emulator-scheme"
|
|
@@ -13617,21 +13632,21 @@ async function C1(t, e, n = !1) {
|
|
|
13617
13632
|
const s = "reauthenticate";
|
|
13618
13633
|
try {
|
|
13619
13634
|
const o = await bn(t, Wd(r, s, e, t), n);
|
|
13620
|
-
|
|
13635
|
+
A(
|
|
13621
13636
|
o.idToken,
|
|
13622
13637
|
r,
|
|
13623
13638
|
"internal-error"
|
|
13624
13639
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
13625
13640
|
);
|
|
13626
13641
|
const i = vi(o.idToken);
|
|
13627
|
-
|
|
13642
|
+
A(
|
|
13628
13643
|
i,
|
|
13629
13644
|
r,
|
|
13630
13645
|
"internal-error"
|
|
13631
13646
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
13632
13647
|
);
|
|
13633
13648
|
const { sub: a } = i;
|
|
13634
|
-
return
|
|
13649
|
+
return A(
|
|
13635
13650
|
t.uid === a,
|
|
13636
13651
|
r,
|
|
13637
13652
|
"user-mismatch"
|
|
@@ -14376,7 +14391,7 @@ new Rn(3e4, 6e4);
|
|
|
14376
14391
|
* limitations under the License.
|
|
14377
14392
|
*/
|
|
14378
14393
|
function ef(t, e) {
|
|
14379
|
-
return e ? Le(e) : (
|
|
14394
|
+
return e ? Le(e) : (A(
|
|
14380
14395
|
t._popupRedirectResolver,
|
|
14381
14396
|
t,
|
|
14382
14397
|
"argument-error"
|
|
@@ -14434,7 +14449,7 @@ function H1(t) {
|
|
|
14434
14449
|
}
|
|
14435
14450
|
function z1(t) {
|
|
14436
14451
|
const { auth: e, user: n } = t;
|
|
14437
|
-
return
|
|
14452
|
+
return A(
|
|
14438
14453
|
n,
|
|
14439
14454
|
e,
|
|
14440
14455
|
"internal-error"
|
|
@@ -14443,7 +14458,7 @@ function z1(t) {
|
|
|
14443
14458
|
}
|
|
14444
14459
|
async function W1(t) {
|
|
14445
14460
|
const { auth: e, user: n } = t;
|
|
14446
|
-
return
|
|
14461
|
+
return A(
|
|
14447
14462
|
n,
|
|
14448
14463
|
e,
|
|
14449
14464
|
"internal-error"
|
|
@@ -14568,7 +14583,7 @@ class mt extends tf {
|
|
|
14568
14583
|
}
|
|
14569
14584
|
async executeNotNull() {
|
|
14570
14585
|
const e = await this.execute();
|
|
14571
|
-
return
|
|
14586
|
+
return A(
|
|
14572
14587
|
e,
|
|
14573
14588
|
this.auth,
|
|
14574
14589
|
"internal-error"
|
|
@@ -14952,7 +14967,7 @@ const fS = new Rn(5e3, 15e3), hS = "__/auth/iframe", pS = "emulator/auth/iframe"
|
|
|
14952
14967
|
]);
|
|
14953
14968
|
function yS(t) {
|
|
14954
14969
|
const e = t.config;
|
|
14955
|
-
|
|
14970
|
+
A(
|
|
14956
14971
|
e.authDomain,
|
|
14957
14972
|
t,
|
|
14958
14973
|
"auth-domain-config-required"
|
|
@@ -14969,7 +14984,7 @@ function yS(t) {
|
|
|
14969
14984
|
}
|
|
14970
14985
|
async function vS(t) {
|
|
14971
14986
|
const e = await dS(t), n = Se().gapi;
|
|
14972
|
-
return
|
|
14987
|
+
return A(
|
|
14973
14988
|
n,
|
|
14974
14989
|
t,
|
|
14975
14990
|
"internal-error"
|
|
@@ -15048,7 +15063,7 @@ function CS(t, e, n, r = bS, s = ES) {
|
|
|
15048
15063
|
if (i1(u) && a !== "_self")
|
|
15049
15064
|
return TS(e || "", a), new Cc(null);
|
|
15050
15065
|
const d = window.open(e || "", a, l);
|
|
15051
|
-
|
|
15066
|
+
A(
|
|
15052
15067
|
d,
|
|
15053
15068
|
t,
|
|
15054
15069
|
"popup-blocked"
|
|
@@ -15084,12 +15099,12 @@ function TS(t, e) {
|
|
|
15084
15099
|
*/
|
|
15085
15100
|
const xS = "__/auth/handler", IS = "emulator/auth/handler", kS = encodeURIComponent("fac");
|
|
15086
15101
|
async function Tc(t, e, n, r, s, o) {
|
|
15087
|
-
|
|
15102
|
+
A(
|
|
15088
15103
|
t.config.authDomain,
|
|
15089
15104
|
t,
|
|
15090
15105
|
"auth-domain-config-required"
|
|
15091
15106
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
15092
|
-
),
|
|
15107
|
+
), A(
|
|
15093
15108
|
t.config.apiKey,
|
|
15094
15109
|
t,
|
|
15095
15110
|
"invalid-api-key"
|
|
@@ -15170,7 +15185,7 @@ class RS {
|
|
|
15170
15185
|
}
|
|
15171
15186
|
async initAndGetManager(e) {
|
|
15172
15187
|
const n = await vS(e), r = new nS(e);
|
|
15173
|
-
return n.register("authEvent", (s) => (
|
|
15188
|
+
return n.register("authEvent", (s) => (A(
|
|
15174
15189
|
s == null ? void 0 : s.authEvent,
|
|
15175
15190
|
e,
|
|
15176
15191
|
"invalid-auth-event"
|
|
@@ -15242,7 +15257,7 @@ class NS {
|
|
|
15242
15257
|
n && (this.internalListeners.delete(e), n(), this.updateProactiveRefresh());
|
|
15243
15258
|
}
|
|
15244
15259
|
assertAuthConfigured() {
|
|
15245
|
-
|
|
15260
|
+
A(
|
|
15246
15261
|
this.auth._initializationPromise,
|
|
15247
15262
|
"dependent-sdk-initialized-before-auth"
|
|
15248
15263
|
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
|
@@ -15289,7 +15304,7 @@ function DS(t) {
|
|
|
15289
15304
|
"auth",
|
|
15290
15305
|
(e, { options: n }) => {
|
|
15291
15306
|
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), o = e.getProvider("app-check-internal"), { apiKey: i, authDomain: a } = r.options;
|
|
15292
|
-
|
|
15307
|
+
A(i && !i.includes(":"), "invalid-api-key", { appName: r.name });
|
|
15293
15308
|
const c = {
|
|
15294
15309
|
apiKey: i,
|
|
15295
15310
|
authDomain: a,
|
|
@@ -15452,9 +15467,9 @@ const BS = {
|
|
|
15452
15467
|
email: "yukiraze9@gmail.com",
|
|
15453
15468
|
username: ""
|
|
15454
15469
|
}, Hs = {
|
|
15455
|
-
|
|
15470
|
+
jid: "8ef200ac9dffd7b7b6ba0ee5a9df4d8b33c38877eb771ca1f5a3e6966b9d39f0@conference.xmpp.ethoradev.com",
|
|
15456
15471
|
// jid: "61ca3489a54efe5dc1517bc24d5c8982cc369428b333b1f7a14f46d70ac70bfd@conference.xmpp.ethoradev.com",
|
|
15457
|
-
jid: "5f9a4603b2b5bbfa6b228b642127c56d03b778ad594c52b755e605c977303979@conference.xmpp.ethoradev.com",
|
|
15472
|
+
// jid: "5f9a4603b2b5bbfa6b228b642127c56d03b778ad594c52b755e605c977303979@conference.xmpp.ethoradev.com",
|
|
15458
15473
|
name: "tESTcHAT",
|
|
15459
15474
|
users_cnt: "1",
|
|
15460
15475
|
unreadMessages: 0,
|
|
@@ -15498,7 +15513,7 @@ const GS = (t) => new Promise((e, n) => {
|
|
|
15498
15513
|
ur = [];
|
|
15499
15514
|
};
|
|
15500
15515
|
function KS(t, e) {
|
|
15501
|
-
return Be.post("/files", t, {
|
|
15516
|
+
return console.log(t, e), Be.post("/files", t, {
|
|
15502
15517
|
headers: { Authorization: e }
|
|
15503
15518
|
});
|
|
15504
15519
|
}
|
|
@@ -15506,6 +15521,8 @@ Be.interceptors.response.use(
|
|
|
15506
15521
|
(t) => t,
|
|
15507
15522
|
async (t) => {
|
|
15508
15523
|
const e = t.config;
|
|
15524
|
+
if (!t.response || t.response.status !== 401)
|
|
15525
|
+
throw t;
|
|
15509
15526
|
if (e.url === "/users/login/refresh" || e.url === "/users/login")
|
|
15510
15527
|
return Promise.reject(t);
|
|
15511
15528
|
if (e._retry = !0, Xn)
|
|
@@ -15605,60 +15622,68 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15605
15622
|
MainComponentStyles: s,
|
|
15606
15623
|
config: o
|
|
15607
15624
|
}) => {
|
|
15608
|
-
var
|
|
15609
|
-
const [i, a] = ne(e), c = Qe((
|
|
15610
|
-
(
|
|
15611
|
-
var
|
|
15612
|
-
return ((
|
|
15625
|
+
var E;
|
|
15626
|
+
const [i, a] = ne(e), c = Qe((b) => b.rooms.rooms), u = Qe(
|
|
15627
|
+
(b) => {
|
|
15628
|
+
var S;
|
|
15629
|
+
return ((S = b.rooms.rooms[i == null ? void 0 : i.jid]) == null ? void 0 : S.isLoading) || !1;
|
|
15613
15630
|
}
|
|
15614
15631
|
), { client: l } = Zo(), d = Qe(
|
|
15615
|
-
(
|
|
15616
|
-
), { user: f } = Qe((
|
|
15632
|
+
(b) => b.rooms.activeRoom
|
|
15633
|
+
), { user: f } = Qe((b) => b.chatSettingStore), p = En();
|
|
15617
15634
|
Me(() => {
|
|
15618
|
-
const
|
|
15619
|
-
c[
|
|
15620
|
-
}, [
|
|
15621
|
-
const
|
|
15635
|
+
const b = n ? c[n] : e;
|
|
15636
|
+
c[b.jid] || p(km({ roomData: b })), a(b), p(Am({ roomData: b }));
|
|
15637
|
+
}, [p, c, e, n]);
|
|
15638
|
+
const h = J((b) => {
|
|
15622
15639
|
l == null || l.sendMessage(
|
|
15623
15640
|
i.jid,
|
|
15624
15641
|
f.firstName,
|
|
15625
15642
|
f.lastName,
|
|
15626
15643
|
"",
|
|
15627
15644
|
f.walletAddress,
|
|
15628
|
-
|
|
15645
|
+
b
|
|
15629
15646
|
);
|
|
15630
|
-
}, []),
|
|
15647
|
+
}, []), m = J(() => {
|
|
15631
15648
|
console.log(i.jid), l.sendTypingRequest(
|
|
15632
15649
|
i.jid,
|
|
15633
15650
|
`${f.firstName} ${f.lastName}`,
|
|
15634
15651
|
!0
|
|
15635
15652
|
);
|
|
15636
|
-
}, []),
|
|
15653
|
+
}, []), g = J(() => {
|
|
15637
15654
|
l.sendTypingRequest(
|
|
15638
15655
|
i.jid,
|
|
15639
15656
|
`${f.firstName} ${f.lastName}`,
|
|
15640
15657
|
!1
|
|
15641
15658
|
);
|
|
15642
|
-
}, []),
|
|
15643
|
-
async (
|
|
15644
|
-
u || (
|
|
15645
|
-
console.log("getting history by scroll"),
|
|
15659
|
+
}, []), v = J(
|
|
15660
|
+
async (b, S, T) => {
|
|
15661
|
+
u || (p(Xi({ chatJID: b, loading: !0 })), l == null || l.getHistory(b, S, T).then((w) => {
|
|
15662
|
+
console.log("getting history by scroll"), p(Xi({ chatJID: b, loading: !1 }));
|
|
15646
15663
|
}));
|
|
15647
15664
|
},
|
|
15648
15665
|
[l]
|
|
15649
|
-
),
|
|
15650
|
-
async (
|
|
15651
|
-
const
|
|
15652
|
-
|
|
15653
|
-
|
|
15654
|
-
|
|
15655
|
-
|
|
15656
|
-
|
|
15666
|
+
), C = J(
|
|
15667
|
+
async (b) => {
|
|
15668
|
+
const S = new FormData();
|
|
15669
|
+
S.append(
|
|
15670
|
+
"audio",
|
|
15671
|
+
b,
|
|
15672
|
+
`${(/* @__PURE__ */ new Date()).getTime()}-recording-${f.firstName + " " + f.lastName}.webm`
|
|
15673
|
+
), KS(S, f.token).then((T) => {
|
|
15674
|
+
console.log("Upload successful", T);
|
|
15675
|
+
}).catch((T) => {
|
|
15676
|
+
console.error("Upload failed", T);
|
|
15677
|
+
}).then((T) => {
|
|
15678
|
+
console.log(T);
|
|
15679
|
+
let w = "";
|
|
15680
|
+
T.data.results.map(async (x) => {
|
|
15681
|
+
const I = {
|
|
15657
15682
|
firstName: f.firstName,
|
|
15658
15683
|
lastName: f.lastName,
|
|
15659
15684
|
walletAddress: f.walletAddress,
|
|
15660
15685
|
chatName: i.name,
|
|
15661
|
-
userAvatar:
|
|
15686
|
+
userAvatar: w,
|
|
15662
15687
|
createdAt: x.createdAt,
|
|
15663
15688
|
expiresAt: x.expiresAt,
|
|
15664
15689
|
fileName: x.filename,
|
|
@@ -15677,24 +15702,24 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15677
15702
|
wrappable: !0,
|
|
15678
15703
|
roomJid: i
|
|
15679
15704
|
};
|
|
15680
|
-
console.log(
|
|
15705
|
+
console.log(I, "data to send media"), l == null || l.sendMediaMessageStanza(i.jid, I);
|
|
15681
15706
|
});
|
|
15682
|
-
}).catch((
|
|
15683
|
-
console.log(
|
|
15707
|
+
}).catch((T) => {
|
|
15708
|
+
console.log(T);
|
|
15684
15709
|
});
|
|
15685
15710
|
},
|
|
15686
15711
|
[l, i.jid]
|
|
15687
15712
|
);
|
|
15688
15713
|
return Me(() => {
|
|
15689
|
-
var
|
|
15690
|
-
(
|
|
15714
|
+
var b;
|
|
15715
|
+
(b = c[i.jid]) != null && b.messages || setTimeout(() => {
|
|
15691
15716
|
l.initPresence().then(() => l.getRooms()).then(() => l.presenceInRoom(i.jid)).then(async () => {
|
|
15692
|
-
const
|
|
15693
|
-
if (
|
|
15694
|
-
const [
|
|
15695
|
-
console.log(
|
|
15717
|
+
const S = await l.getChatsPrivateStoreRequest(), T = Object.entries(JSON.parse(S));
|
|
15718
|
+
if (T.length > 0) {
|
|
15719
|
+
const [w, x] = T[0];
|
|
15720
|
+
console.log(w, x), p(
|
|
15696
15721
|
Pl({
|
|
15697
|
-
chatJID:
|
|
15722
|
+
chatJID: w,
|
|
15698
15723
|
// @ts-expect-error
|
|
15699
15724
|
timestamp: x
|
|
15700
15725
|
})
|
|
@@ -15704,19 +15729,19 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15704
15729
|
l.getHistory(i.jid, 30);
|
|
15705
15730
|
});
|
|
15706
15731
|
}, 1e3);
|
|
15707
|
-
}, [l,
|
|
15732
|
+
}, [l, f, i.jid, c]), d ? /* @__PURE__ */ N(
|
|
15708
15733
|
Ww,
|
|
15709
15734
|
{
|
|
15710
15735
|
style: { maxHeight: "100vh", overflow: "auto", ...s },
|
|
15711
15736
|
children: [
|
|
15712
15737
|
!(o != null && o.disableHeader) && /* @__PURE__ */ y(QS, { currentRoom: i }),
|
|
15713
|
-
t || !c[d.jid].messages || c[d.jid].messages.length < 1 ? /* @__PURE__ */ y(Zr, { color: (
|
|
15738
|
+
t || !c[d.jid].messages || c[d.jid].messages.length < 1 ? /* @__PURE__ */ y(Zr, { color: (E = o == null ? void 0 : o.colors) == null ? void 0 : E.primary }) : /* @__PURE__ */ y(
|
|
15714
15739
|
_0,
|
|
15715
15740
|
{
|
|
15716
|
-
loadMoreMessages:
|
|
15741
|
+
loadMoreMessages: v,
|
|
15717
15742
|
messages: c[d.jid].messages,
|
|
15718
15743
|
CustomMessage: r,
|
|
15719
|
-
user:
|
|
15744
|
+
user: f,
|
|
15720
15745
|
room: i,
|
|
15721
15746
|
config: o
|
|
15722
15747
|
}
|
|
@@ -15724,11 +15749,11 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15724
15749
|
/* @__PURE__ */ y(
|
|
15725
15750
|
U0,
|
|
15726
15751
|
{
|
|
15727
|
-
sendMessage:
|
|
15728
|
-
sendMedia:
|
|
15752
|
+
sendMessage: h,
|
|
15753
|
+
sendMedia: C,
|
|
15729
15754
|
config: o,
|
|
15730
|
-
onFocus:
|
|
15731
|
-
onBlur:
|
|
15755
|
+
onFocus: m,
|
|
15756
|
+
onBlur: g,
|
|
15732
15757
|
isLoading: t
|
|
15733
15758
|
}
|
|
15734
15759
|
)
|
|
@@ -15736,9 +15761,9 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15736
15761
|
}
|
|
15737
15762
|
) : /* @__PURE__ */ y(je, { children: "No room" });
|
|
15738
15763
|
}
|
|
15739
|
-
), tC =
|
|
15764
|
+
), tC = k.div`
|
|
15740
15765
|
height: 100vh;
|
|
15741
|
-
`, Ci =
|
|
15766
|
+
`, Ci = k.div`
|
|
15742
15767
|
background-color: rgba(0, 0, 0, 0.75);
|
|
15743
15768
|
display: flex;
|
|
15744
15769
|
align-items: center;
|
|
@@ -15749,7 +15774,7 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15749
15774
|
right: 0;
|
|
15750
15775
|
bottom: 0;
|
|
15751
15776
|
z-index: 999;
|
|
15752
|
-
`, Ti =
|
|
15777
|
+
`, Ti = k.div`
|
|
15753
15778
|
display: flex;
|
|
15754
15779
|
align-items: center;
|
|
15755
15780
|
justify-content: center;
|
|
@@ -15761,17 +15786,17 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15761
15786
|
left: 50%;
|
|
15762
15787
|
transform: translate(-50%, -50%);
|
|
15763
15788
|
background: white;
|
|
15764
|
-
`, nC =
|
|
15789
|
+
`, nC = k.div`
|
|
15765
15790
|
margin: 0;
|
|
15766
15791
|
cursor: pointer;
|
|
15767
15792
|
display: flex;
|
|
15768
15793
|
align-items: center;
|
|
15769
15794
|
justify-content: center;
|
|
15770
|
-
`, rC =
|
|
15795
|
+
`, rC = k.img`
|
|
15771
15796
|
width: 100%;
|
|
15772
15797
|
height: 100%;
|
|
15773
15798
|
object-fit: contain;
|
|
15774
|
-
`, sC =
|
|
15799
|
+
`, sC = k.div`
|
|
15775
15800
|
display: flex;
|
|
15776
15801
|
flex-direction: column;
|
|
15777
15802
|
align-items: center;
|
|
@@ -15779,12 +15804,12 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15779
15804
|
width: 100%;
|
|
15780
15805
|
height: 100%;
|
|
15781
15806
|
border-radius: 10px;
|
|
15782
|
-
`, oC =
|
|
15807
|
+
`, oC = k.div`
|
|
15783
15808
|
display: flex;
|
|
15784
15809
|
position: absolute;
|
|
15785
15810
|
top: 8px;
|
|
15786
15811
|
right: 8px;
|
|
15787
|
-
`, Rc =
|
|
15812
|
+
`, Rc = k.button`
|
|
15788
15813
|
background: none;
|
|
15789
15814
|
border: none;
|
|
15790
15815
|
cursor: pointer;
|
|
@@ -15794,7 +15819,7 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15794
15819
|
align-items: center;
|
|
15795
15820
|
gap: 5px;
|
|
15796
15821
|
pointer-events: auto;
|
|
15797
|
-
`, iC =
|
|
15822
|
+
`, iC = k.div`
|
|
15798
15823
|
display: flex;
|
|
15799
15824
|
align-items: center;
|
|
15800
15825
|
justify-content: space-between;
|
|
@@ -15807,7 +15832,7 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15807
15832
|
&:hover {
|
|
15808
15833
|
background-color: #f1f1f1;
|
|
15809
15834
|
}
|
|
15810
|
-
`, aC =
|
|
15835
|
+
`, aC = k.div`
|
|
15811
15836
|
flex-grow: 1;
|
|
15812
15837
|
padding: 0 10px;
|
|
15813
15838
|
color: #333;
|
|
@@ -15869,21 +15894,21 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15869
15894
|
] })
|
|
15870
15895
|
] }) }) })
|
|
15871
15896
|
] });
|
|
15872
|
-
}, fC =
|
|
15897
|
+
}, fC = k.div`
|
|
15873
15898
|
margin: 0;
|
|
15874
15899
|
cursor: pointer;
|
|
15875
15900
|
display: flex;
|
|
15876
15901
|
align-items: center;
|
|
15877
15902
|
justify-content: center;
|
|
15878
|
-
`, hC =
|
|
15903
|
+
`, hC = k.video`
|
|
15879
15904
|
width: 100%;
|
|
15880
15905
|
height: 100%;
|
|
15881
15906
|
object-fit: contain;
|
|
15882
|
-
`, pC =
|
|
15907
|
+
`, pC = k.video`
|
|
15883
15908
|
width: 300px;
|
|
15884
15909
|
height: 200px;
|
|
15885
15910
|
object-fit: cover;
|
|
15886
|
-
`, mC =
|
|
15911
|
+
`, mC = k.div`
|
|
15887
15912
|
display: flex;
|
|
15888
15913
|
flex-direction: column;
|
|
15889
15914
|
align-items: center;
|
|
@@ -15891,12 +15916,12 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15891
15916
|
width: 100%;
|
|
15892
15917
|
height: 100%;
|
|
15893
15918
|
border-radius: 10px;
|
|
15894
|
-
`, gC =
|
|
15919
|
+
`, gC = k.div`
|
|
15895
15920
|
display: flex;
|
|
15896
15921
|
position: absolute;
|
|
15897
15922
|
top: 8px;
|
|
15898
15923
|
right: 8px;
|
|
15899
|
-
`, Oc =
|
|
15924
|
+
`, Oc = k.button`
|
|
15900
15925
|
background: none;
|
|
15901
15926
|
border: none;
|
|
15902
15927
|
cursor: pointer;
|
|
@@ -15953,7 +15978,7 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15953
15978
|
] })
|
|
15954
15979
|
] }) }) })
|
|
15955
15980
|
] });
|
|
15956
|
-
}, wC =
|
|
15981
|
+
}, wC = k.audio`
|
|
15957
15982
|
width: 300px;
|
|
15958
15983
|
`, bC = ({
|
|
15959
15984
|
mimeType: t,
|
|
@@ -15980,7 +16005,7 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15980
16005
|
);
|
|
15981
16006
|
}
|
|
15982
16007
|
return /* @__PURE__ */ y("div", { children: "Unsupported media type" });
|
|
15983
|
-
}, EC =
|
|
16008
|
+
}, EC = k.div`
|
|
15984
16009
|
position: absolute;
|
|
15985
16010
|
z-index: 1000;
|
|
15986
16011
|
background-color: white;
|
|
@@ -15991,7 +16016,7 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
15991
16016
|
display: flex;
|
|
15992
16017
|
flex-direction: column;
|
|
15993
16018
|
gap: 4px;
|
|
15994
|
-
`, kt =
|
|
16019
|
+
`, kt = k.div`
|
|
15995
16020
|
padding: 8px 8px;
|
|
15996
16021
|
cursor: pointer;
|
|
15997
16022
|
&:hover {
|
|
@@ -16000,7 +16025,7 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
16000
16025
|
min-width: 208px;
|
|
16001
16026
|
display: flex;
|
|
16002
16027
|
text-align: start;
|
|
16003
|
-
`, _C =
|
|
16028
|
+
`, _C = k.div`
|
|
16004
16029
|
position: fixed;
|
|
16005
16030
|
top: 0;
|
|
16006
16031
|
left: 0;
|
|
@@ -16008,7 +16033,7 @@ const QS = ({ currentRoom: t }) => /* @__PURE__ */ y(je, { children: /* @__PURE_
|
|
|
16008
16033
|
bottom: 0;
|
|
16009
16034
|
z-index: 999;
|
|
16010
16035
|
background: transparent;
|
|
16011
|
-
`, rn =
|
|
16036
|
+
`, rn = k.div`
|
|
16012
16037
|
border: 1px solid var(--colors-background-bg-prymary-5, #0052cd0d);
|
|
16013
16038
|
`, SC = df(({ message: t, isUser: e }, n) => {
|
|
16014
16039
|
var u;
|
|
@@ -16131,44 +16156,44 @@ const sf = ({ config: t }) => {
|
|
|
16131
16156
|
}
|
|
16132
16157
|
a(!1);
|
|
16133
16158
|
}, [n, s, e]), f = async (g) => {
|
|
16134
|
-
var C,
|
|
16159
|
+
var C, E, b;
|
|
16135
16160
|
a(!0), g.preventDefault();
|
|
16136
16161
|
const v = "google";
|
|
16137
16162
|
try {
|
|
16138
|
-
const
|
|
16163
|
+
const S = await XS();
|
|
16139
16164
|
if (!(await ZS(
|
|
16140
|
-
((C =
|
|
16165
|
+
((C = S.user) == null ? void 0 : C.providerData[0].email) || ""
|
|
16141
16166
|
)).data.success)
|
|
16142
16167
|
try {
|
|
16143
16168
|
await YS(
|
|
16144
|
-
|
|
16145
|
-
((
|
|
16169
|
+
S.idToken || "",
|
|
16170
|
+
((E = S.credential) == null ? void 0 : E.accessToken) || "",
|
|
16146
16171
|
"",
|
|
16147
16172
|
v
|
|
16148
16173
|
);
|
|
16149
16174
|
const w = await Ac(
|
|
16150
|
-
|
|
16151
|
-
((
|
|
16175
|
+
S.idToken || "",
|
|
16176
|
+
((b = S.credential) == null ? void 0 : b.accessToken) || "",
|
|
16152
16177
|
v
|
|
16153
16178
|
);
|
|
16154
16179
|
console.log("google log after register res", w);
|
|
16155
|
-
const
|
|
16156
|
-
e(ln(
|
|
16180
|
+
const x = w.data.user;
|
|
16181
|
+
e(ln(x)), hn("user").set(x);
|
|
16157
16182
|
} catch {
|
|
16158
16183
|
console.log("error registering user viag google");
|
|
16159
16184
|
}
|
|
16160
|
-
if (
|
|
16185
|
+
if (S.idToken && S.credential && S.credential.accessToken) {
|
|
16161
16186
|
const w = await Ac(
|
|
16162
|
-
|
|
16163
|
-
|
|
16187
|
+
S.idToken,
|
|
16188
|
+
S.credential.accessToken,
|
|
16164
16189
|
v
|
|
16165
16190
|
);
|
|
16166
16191
|
console.log("google log res", w);
|
|
16167
|
-
const
|
|
16168
|
-
e(ln(
|
|
16192
|
+
const x = w.data.user;
|
|
16193
|
+
e(ln(x)), hn("user").set(x);
|
|
16169
16194
|
}
|
|
16170
|
-
} catch (
|
|
16171
|
-
console.log(
|
|
16195
|
+
} catch (S) {
|
|
16196
|
+
console.log(S);
|
|
16172
16197
|
}
|
|
16173
16198
|
a(!1);
|
|
16174
16199
|
};
|
|
@@ -16253,7 +16278,7 @@ const sf = ({ config: t }) => {
|
|
|
16253
16278
|
}
|
|
16254
16279
|
)
|
|
16255
16280
|
] }) });
|
|
16256
|
-
}, CC =
|
|
16281
|
+
}, CC = k.div`
|
|
16257
16282
|
display: flex;
|
|
16258
16283
|
flex-direction: column;
|
|
16259
16284
|
justify-content: center;
|
|
@@ -16261,7 +16286,7 @@ const sf = ({ config: t }) => {
|
|
|
16261
16286
|
width: 100%;
|
|
16262
16287
|
height: 100%;
|
|
16263
16288
|
background-color: #f5f5f5;
|
|
16264
|
-
`, TC =
|
|
16289
|
+
`, TC = k.form`
|
|
16265
16290
|
display: flex;
|
|
16266
16291
|
flex-direction: column;
|
|
16267
16292
|
align-items: center;
|
|
@@ -16271,11 +16296,11 @@ const sf = ({ config: t }) => {
|
|
|
16271
16296
|
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
|
16272
16297
|
width: 300px;
|
|
16273
16298
|
gap: 16px;
|
|
16274
|
-
`, Nc =
|
|
16299
|
+
`, Nc = k.span`
|
|
16275
16300
|
color: red;
|
|
16276
16301
|
font-size: 12px;
|
|
16277
16302
|
margin-bottom: 10px;
|
|
16278
|
-
`, xC =
|
|
16303
|
+
`, xC = k.div`
|
|
16279
16304
|
text-align: center;
|
|
16280
16305
|
position: relative;
|
|
16281
16306
|
width: 100%;
|
|
@@ -16310,14 +16335,14 @@ const sf = ({ config: t }) => {
|
|
|
16310
16335
|
var f;
|
|
16311
16336
|
c(Cm(r));
|
|
16312
16337
|
try {
|
|
16313
|
-
!u.defaultWallet || (u == null ? void 0 : u.defaultWallet.walletAddress) === "" ? (a(!0), console.log("Error, no user")) : l || (console.log("No client, so initing one"), d(
|
|
16338
|
+
!u.defaultWallet || (u == null ? void 0 : u.defaultWallet.walletAddress) === "" ? (a(!0), console.log("Error, no user")) : l || (a(!1), console.log("No client, so initing one"), d(
|
|
16314
16339
|
(f = u.defaultWallet) == null ? void 0 : f.walletAddress,
|
|
16315
16340
|
u.xmppPassword
|
|
16316
16341
|
), o(!0));
|
|
16317
16342
|
} catch (p) {
|
|
16318
16343
|
a(!0), console.log(p);
|
|
16319
16344
|
}
|
|
16320
|
-
}, []),
|
|
16345
|
+
}, [u]), Me(() => {
|
|
16321
16346
|
const f = () => {
|
|
16322
16347
|
l && l.actionSetTimestampToPrivateStore(
|
|
16323
16348
|
(n == null ? void 0 : n.jid) || Hs.jid,
|
|
@@ -16334,7 +16359,7 @@ const sf = ({ config: t }) => {
|
|
|
16334
16359
|
return window.addEventListener("blur", p), window.addEventListener("offline", p), () => {
|
|
16335
16360
|
window.removeEventListener("blur", p), window.removeEventListener("offline", p);
|
|
16336
16361
|
};
|
|
16337
|
-
}, [l, n == null ? void 0 : n.jid]), /* @__PURE__ */ N(tC, { children: [
|
|
16362
|
+
}, [l, n == null ? void 0 : n.jid]), u.xmppPassword === "" && u.xmppUsername === "" ? /* @__PURE__ */ y(sf, { config: r }) : /* @__PURE__ */ N(tC, { children: [
|
|
16338
16363
|
i && /* @__PURE__ */ y(Ci, { children: /* @__PURE__ */ y(Ti, { children: "Unsuccessfull login. Try again" }) }),
|
|
16339
16364
|
s ? /* @__PURE__ */ y(
|
|
16340
16365
|
eC,
|
|
@@ -16346,15 +16371,20 @@ const sf = ({ config: t }) => {
|
|
|
16346
16371
|
config: r
|
|
16347
16372
|
}
|
|
16348
16373
|
) : /* @__PURE__ */ y(Zr, {})
|
|
16349
|
-
] })
|
|
16374
|
+
] });
|
|
16350
16375
|
}, kC = ({ ...t }) => {
|
|
16351
16376
|
var s;
|
|
16352
16377
|
const { user: e } = Qe((o) => o.chatSettingStore), n = J(async () => {
|
|
16353
16378
|
try {
|
|
16354
|
-
|
|
16379
|
+
const o = await rf(
|
|
16355
16380
|
e.walletAddress || "yukiraze9@gmail.com",
|
|
16356
16381
|
(e == null ? void 0 : e.xmppPassword) || "Qwerty123"
|
|
16357
|
-
)
|
|
16382
|
+
);
|
|
16383
|
+
return {
|
|
16384
|
+
...o.data.user,
|
|
16385
|
+
token: o.data.token,
|
|
16386
|
+
refreshToken: o.data.refreshToken
|
|
16387
|
+
};
|
|
16358
16388
|
} catch (o) {
|
|
16359
16389
|
return console.error("Login failed:", o), null;
|
|
16360
16390
|
}
|