@trtc/calls-uikit-react 4.5.9 → 4.5.10
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.
|
@@ -1443,12 +1443,12 @@ async function Dn(t, e) {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
const l = Z == null ? void 0 : Z.getData(d.CALL, s.REMOTE_USER_INFO_LIST), c = a.map((I) => I.userID), M = o.map((I) => I.userID);
|
|
1445
1445
|
n = t.map((I) => {
|
|
1446
|
-
var f,
|
|
1447
|
-
const g = Bn(I),
|
|
1448
|
-
let
|
|
1449
|
-
|
|
1450
|
-
const
|
|
1451
|
-
return { ...g, ...
|
|
1446
|
+
var f, p, y, j, z, O, B;
|
|
1447
|
+
const g = Bn(I), A = c.indexOf(I), D = M.indexOf(I);
|
|
1448
|
+
let N = "", T = "", L = "", E = "";
|
|
1449
|
+
A !== -1 && (N = ((f = a[A]) == null ? void 0 : f.remark) || "", T = ((y = (p = a[A]) == null ? void 0 : p.profile) == null ? void 0 : y.nick) || "", L = N || T || g.userId || "", E = ((z = (j = a[A]) == null ? void 0 : j.profile) == null ? void 0 : z.avatar) || ""), D !== -1 && (T = ((O = o[D]) == null ? void 0 : O.nick) || "", L = T || g.userId || "", E = ((B = o[D]) == null ? void 0 : B.avatar) || "");
|
|
1450
|
+
const C = l.find((Y) => Y.userId === I) || {};
|
|
1451
|
+
return { ...g, ...C, remark: N, nick: T, displayUserInfo: L, avatar: E };
|
|
1452
1452
|
});
|
|
1453
1453
|
}
|
|
1454
1454
|
return n;
|
|
@@ -1841,18 +1841,18 @@ const Rt = Jt.getInstance(), xe = {
|
|
|
1841
1841
|
try {
|
|
1842
1842
|
if (e === ee.TUILogin.EVENT.LOGIN_STATE_CHANGED)
|
|
1843
1843
|
if (n === ee.TUILogin.EVENT_SUB_KEY.USER_LOGIN_SUCCESS) {
|
|
1844
|
-
const { chat:
|
|
1845
|
-
await ((a = this._callService) == null ? void 0 : a.init({ tim:
|
|
1844
|
+
const { chat: A, userID: D, userSig: N, SDKAppID: T } = yo.getContext();
|
|
1845
|
+
await ((a = this._callService) == null ? void 0 : a.init({ tim: A, userID: D, userSig: N, sdkAppID: T, isFromChat: !0, component: Fi.TIM_CALL_KIT })), (r = this._callService) == null || r.setIsFromChat(!0), (o = this._callService) == null || o.setLogLevel(ur.NORMAL), this._addListenChatEvent();
|
|
1846
1846
|
} else
|
|
1847
1847
|
n === ee.TUILogin.EVENT_SUB_KEY.USER_LOGOUT_SUCCESS && (this._removeListenChatEvent(), await ((l = this._callService) == null ? void 0 : l.destroyed()));
|
|
1848
1848
|
if ((c = ee.TUIChat) != null && c.EVENT && e === ee.TUIChat.EVENT.CHAT_STATE_CHANGED && n === ee.TUIChat.EVENT_SUB_KEY.CHAT_OPENED) {
|
|
1849
1849
|
if ((M = this._callService) == null || M.setCurrentGroupId((i == null ? void 0 : i.groupID) || ""), Rt.getData(d.CALL, s.CALL_STATUS) !== R.IDLE)
|
|
1850
1850
|
return;
|
|
1851
|
-
const
|
|
1851
|
+
const A = (I = this._callService) == null ? void 0 : I.getCurrentGroupId(), D = A ? await this.getGroupAttributes((g = this._callService) == null ? void 0 : g.getTim(), A) : {};
|
|
1852
1852
|
await this.updateStoreBasedOnGroupAttributes(D);
|
|
1853
1853
|
}
|
|
1854
|
-
} catch (
|
|
1855
|
-
console.error(`${s.PREFIX}TUICore onNotifyEvent failed, error: ${
|
|
1854
|
+
} catch (A) {
|
|
1855
|
+
console.error(`${s.PREFIX}TUICore onNotifyEvent failed, error: ${A}.`);
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
1858
|
// Handling the chat+call scenario, data required for the joinInGroupCall API: update store / clear relevant store data
|
|
@@ -1874,12 +1874,12 @@ const Rt = Jt.getInstance(), xe = {
|
|
|
1874
1874
|
user_list: g
|
|
1875
1875
|
// The default value of the user list returned by the background is null
|
|
1876
1876
|
} = e[s.INNER_ATTR_KIT_INFO] ? JSON.parse(e[s.INNER_ATTR_KIT_INFO]) : {};
|
|
1877
|
-
let
|
|
1878
|
-
|
|
1877
|
+
let A = (g || []).map((N) => N.userid);
|
|
1878
|
+
A.length > 0 && (A = await Dn(A, (r = this._callService) == null ? void 0 : r.getTim()));
|
|
1879
1879
|
const D = {
|
|
1880
1880
|
[s.CALL_ID]: o,
|
|
1881
1881
|
[s.GROUP_ID]: l,
|
|
1882
|
-
[s.GROUP_CALL_MEMBERS]:
|
|
1882
|
+
[s.GROUP_CALL_MEMBERS]: A,
|
|
1883
1883
|
[s.ROOM_ID]: c,
|
|
1884
1884
|
[s.CALL_MEDIA_TYPE]: wo[I],
|
|
1885
1885
|
[s.ROOM_ID_TYPE]: M
|
|
@@ -1909,12 +1909,12 @@ const Rt = Jt.getInstance(), xe = {
|
|
|
1909
1909
|
return (i == null ? void 0 : i.line_busy) === "line_busy" || (i == null ? void 0 : i.line_busy) === "" || ((a = i == null ? void 0 : i.data) == null ? void 0 : a.message) === "lineBusy";
|
|
1910
1910
|
}
|
|
1911
1911
|
async getCallKitMessage(e, n) {
|
|
1912
|
-
var
|
|
1912
|
+
var A, D, N, T;
|
|
1913
1913
|
const i = bn(e.payload.data);
|
|
1914
1914
|
if ((i == null ? void 0 : i.businessID) !== 1)
|
|
1915
1915
|
return {};
|
|
1916
1916
|
let a = "";
|
|
1917
|
-
const r = bn(i == null ? void 0 : i.data), o = r.call_type, l = i.inviteeList, c = (
|
|
1917
|
+
const r = bn(i == null ? void 0 : i.data), o = r.call_type, l = i.inviteeList, c = (A = r == null ? void 0 : r.data) == null ? void 0 : A.inviter, M = Rt.getData(d.CALL, s.LOCAL_USER_INFO).userId, I = c === M, g = (D = r == null ? void 0 : r.data) == null ? void 0 : D.cmd;
|
|
1918
1918
|
switch (i == null ? void 0 : i.actionType) {
|
|
1919
1919
|
case xt.INVITE: {
|
|
1920
1920
|
a = xe[g]({ callDuration: Lr(r == null ? void 0 : r.call_end) });
|
|
@@ -1924,7 +1924,7 @@ const Rt = Jt.getInstance(), xe = {
|
|
|
1924
1924
|
a = I ? "Call Cancel" : "Other Side Cancel";
|
|
1925
1925
|
break;
|
|
1926
1926
|
case xt.ACCEPT_INVITE:
|
|
1927
|
-
["switchToAudio", "switchToVideo"].includes(g) ? a = (
|
|
1927
|
+
["switchToAudio", "switchToVideo"].includes(g) ? a = (N = xe == null ? void 0 : xe[g]) == null ? void 0 : N.call(xe) : a = Ye("Answered");
|
|
1928
1928
|
break;
|
|
1929
1929
|
case xt.REJECT_INVITE:
|
|
1930
1930
|
this.isLineBusy(e) ? a = I ? "Line Busy" : "Other Side Line Busy" : a = I ? "Other Side Decline" : "Decline";
|
|
@@ -1987,23 +1987,23 @@ function Os({ retryFunction: t, settings: e, onError: n, onRetrying: i, onRetryF
|
|
|
1987
1987
|
return function(...o) {
|
|
1988
1988
|
const l = e.retries || 5;
|
|
1989
1989
|
let c = 0, M = -1, I = ms;
|
|
1990
|
-
const g = async (
|
|
1991
|
-
const
|
|
1990
|
+
const g = async (A, D) => {
|
|
1991
|
+
const N = r || this;
|
|
1992
1992
|
try {
|
|
1993
|
-
const T = await t.apply(
|
|
1994
|
-
c = 0,
|
|
1993
|
+
const T = await t.apply(N, o);
|
|
1994
|
+
c = 0, A(T);
|
|
1995
1995
|
} catch (T) {
|
|
1996
|
-
const
|
|
1996
|
+
const L = () => {
|
|
1997
1997
|
clearTimeout(M), c = 0, I = Aa, D(T);
|
|
1998
|
-
},
|
|
1999
|
-
I !== Aa && c < l ? (c++, I = Ss, Qn(i) && i.call(
|
|
1998
|
+
}, E = () => {
|
|
1999
|
+
I !== Aa && c < l ? (c++, I = Ss, Qn(i) && i.call(N, c, L), M = setTimeout(
|
|
2000
2000
|
() => {
|
|
2001
|
-
M = -1, g(
|
|
2001
|
+
M = -1, g(A, D);
|
|
2002
2002
|
},
|
|
2003
2003
|
Pi(e.timeout) ? 1e3 : e.timeout
|
|
2004
|
-
)) : (
|
|
2004
|
+
)) : (L(), Qn(a) && a.call(N, T));
|
|
2005
2005
|
};
|
|
2006
|
-
Qn(n) ? n.call(
|
|
2006
|
+
Qn(n) ? n.call(N, T, E, D, o) : E();
|
|
2007
2007
|
}
|
|
2008
2008
|
};
|
|
2009
2009
|
return new Promise(g);
|
|
@@ -2071,7 +2071,7 @@ const yr = (qe = class {
|
|
|
2071
2071
|
break;
|
|
2072
2072
|
}
|
|
2073
2073
|
case v.NO_RESP: {
|
|
2074
|
-
const { userIDList: l = [] } = me(e), c = i ? Ie.TIMEOUT : Ie.CALL_TIMEOUT, M = l.map((I) => (a.find((
|
|
2074
|
+
const { userIDList: l = [] } = me(e), c = i ? Ie.TIMEOUT : Ie.CALL_TIMEOUT, M = l.map((I) => (a.find((A) => A.userId === I) || {}).displayUserInfo || I);
|
|
2075
2075
|
k.update(d.CALL, s.TOAST_INFO, { content: { key: c, options: { userList: M.join() } } }), l.length > 0 && di(l);
|
|
2076
2076
|
break;
|
|
2077
2077
|
}
|
|
@@ -2092,23 +2092,23 @@ const yr = (qe = class {
|
|
|
2092
2092
|
(o = this._callService) == null || o.executeExternalAfterCalling(), console.error(`${s.PREFIX}_handleError, errorCode: ${n}; errorMessage: ${r || i}.`);
|
|
2093
2093
|
}
|
|
2094
2094
|
async _handleNewInvitationReceived(e) {
|
|
2095
|
-
var
|
|
2095
|
+
var L, E, C, f;
|
|
2096
2096
|
console.log(`${s.PREFIX}onCallReceived event data: ${JSON.stringify(e)}.`);
|
|
2097
|
-
const { callerId: n = "", callMediaType: i, inviteData: a = {}, calleeIdList: r = [], chatGroupID: o = "", roomID: l, strRoomID: c } = me(e), M = k.getData(d.CALL, s.LOCAL_USER_INFO), I = [n, ...r.filter((
|
|
2097
|
+
const { callerId: n = "", callMediaType: i, inviteData: a = {}, calleeIdList: r = [], chatGroupID: o = "", roomID: l, strRoomID: c } = me(e), M = k.getData(d.CALL, s.LOCAL_USER_INFO), I = [n, ...r.filter((p) => p !== M.userId)], g = i || a.callType, A = g === F.AUDIO ? Ie.CALLEE_CALLING_AUDIO_MSG : Ie.CALLEE_CALLING_VIDEO_MSG;
|
|
2098
2098
|
let D = {
|
|
2099
2099
|
[s.CALL_ROLE]: te.CALLEE,
|
|
2100
2100
|
[s.IS_GROUP]: !!o || r.length > 1,
|
|
2101
2101
|
[s.CALL_STATUS]: R.CALLING,
|
|
2102
2102
|
[s.CALL_MEDIA_TYPE]: g,
|
|
2103
|
-
[s.CALL_TIPS]:
|
|
2103
|
+
[s.CALL_TIPS]: A,
|
|
2104
2104
|
[s.CALLER_USER_INFO]: { userId: n },
|
|
2105
2105
|
[s.GROUP_ID]: o
|
|
2106
2106
|
};
|
|
2107
|
-
Cr(l, c), k.updateStore(D, d.CALL), (
|
|
2108
|
-
const
|
|
2109
|
-
|
|
2110
|
-
[s.REMOTE_USER_INFO_LIST]:
|
|
2111
|
-
[s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]:
|
|
2107
|
+
Cr(l, c), k.updateStore(D, d.CALL), (L = this._callService) == null || L.executeExternalBeforeCalling(), (E = this._callService) != null && E.statusChanged && ((C = this._callService) == null || C.statusChanged({ oldStatus: ce.IDLE, newStatus: ce.BE_INVITED }));
|
|
2108
|
+
const N = await Dn(I, (f = this._callService) == null ? void 0 : f.getTim()), [T] = N.filter((p) => p.userId === n);
|
|
2109
|
+
N.length > 0 && k.updateStore({
|
|
2110
|
+
[s.REMOTE_USER_INFO_LIST]: N,
|
|
2111
|
+
[s.REMOTE_USER_INFO_EXCLUDE_VOLUMN_LIST]: N,
|
|
2112
2112
|
[s.CALLER_USER_INFO]: {
|
|
2113
2113
|
userId: n,
|
|
2114
2114
|
nick: (T == null ? void 0 : T.nick) || "",
|
|
@@ -2420,7 +2420,7 @@ var xs = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, ae = (t, e
|
|
|
2420
2420
|
};
|
|
2421
2421
|
const U = hr.getInstance(), h = Jt.getInstance(), st = Hn.getInstance();
|
|
2422
2422
|
st.setTUIStore(h);
|
|
2423
|
-
const Da = "4.5.
|
|
2423
|
+
const Da = "4.5.10", Ta = "react";
|
|
2424
2424
|
var et;
|
|
2425
2425
|
const ne = (et = class {
|
|
2426
2426
|
constructor() {
|
|
@@ -2474,8 +2474,8 @@ const ne = (et = class {
|
|
|
2474
2474
|
if ((o = (r = this._tuiCallEngine) == null ? void 0 : r.reportLog) == null || o.call(r, {
|
|
2475
2475
|
name: "TUICallkit._bellContext.stop"
|
|
2476
2476
|
}), e === R.CONNECTED) {
|
|
2477
|
-
const M = h.getData(d.CALL, s.IS_GROUP), I = h.getData(d.CALL, s.CALL_MEDIA_TYPE), g = h.getData(d.CALL, s.REMOTE_USER_INFO_LIST),
|
|
2478
|
-
h.update(d.CALL, s.CALL_TIPS, ""), this.statusChanged && this.statusChanged({ oldStatus:
|
|
2477
|
+
const M = h.getData(d.CALL, s.IS_GROUP), I = h.getData(d.CALL, s.CALL_MEDIA_TYPE), g = h.getData(d.CALL, s.REMOTE_USER_INFO_LIST), A = M ? ce.DIALING_GROUP : ce.DIALING_C2C;
|
|
2478
|
+
h.update(d.CALL, s.CALL_TIPS, ""), this.statusChanged && this.statusChanged({ oldStatus: A, newStatus: Rn() }), !M && I === F.VIDEO && this.switchScreen(g[0].domId);
|
|
2479
2479
|
}
|
|
2480
2480
|
await ((l = this == null ? void 0 : this._bellContext) == null ? void 0 : l.stop());
|
|
2481
2481
|
}
|
|
@@ -2501,37 +2501,42 @@ const ne = (et = class {
|
|
|
2501
2501
|
await this._wasmReadyPromise, this._isInitialized || (await this._doInit(e), this._isInitialized = !0);
|
|
2502
2502
|
}
|
|
2503
2503
|
async _doInit(e) {
|
|
2504
|
-
var n, i, a, r, o, l, c;
|
|
2504
|
+
var n, i, a, r, o, l, c, M, I;
|
|
2505
2505
|
try {
|
|
2506
2506
|
if (this._tuiCallEngine)
|
|
2507
2507
|
return;
|
|
2508
|
-
let { userID:
|
|
2509
|
-
this._TUICore && (N = this._TUICore.SDKAppID,
|
|
2510
|
-
let
|
|
2511
|
-
|
|
2512
|
-
tim:
|
|
2513
|
-
SDKAppID: N ||
|
|
2508
|
+
let { userID: g, tim: A, userSig: D, sdkAppID: N, SDKAppID: T, isFromChat: L, component: E = Fi.TUI_CALL_KIT } = e;
|
|
2509
|
+
this._TUICore && (N = this._TUICore.SDKAppID, A = this._TUICore.tim), this._tim = A, console.log(`${s.PREFIX}init sdkAppId: ${N || T}, userId: ${g}`);
|
|
2510
|
+
let C = "web";
|
|
2511
|
+
C = `${C}-${Ta}`, this._tuiCallEngine = ui.createInstance({
|
|
2512
|
+
tim: A,
|
|
2513
|
+
SDKAppID: N || T,
|
|
2514
2514
|
// 兼容传入 SDKAppID 的问题
|
|
2515
2515
|
frameWork: Ta,
|
|
2516
2516
|
// @ts-ignore
|
|
2517
2517
|
language: 7,
|
|
2518
2518
|
// @ts-ignore
|
|
2519
2519
|
callkitVersion: Da,
|
|
2520
|
-
isFromChat:
|
|
2521
|
-
component:
|
|
2522
|
-
scene:
|
|
2523
|
-
}), st.setEngineInstance(this._tuiCallEngine), this._addListenTuiCallEngineEvent(), this._bellContext && ((n = this._bellContext) == null || n.destroy()), this._bellContext = new ps(), h.update(d.CALL, s.LOCAL_USER_INFO, { userId:
|
|
2524
|
-
const
|
|
2520
|
+
isFromChat: L || !1,
|
|
2521
|
+
component: E,
|
|
2522
|
+
scene: C
|
|
2523
|
+
}), st.setEngineInstance(this._tuiCallEngine), this._addListenTuiCallEngineEvent(), this._bellContext && ((n = this._bellContext) == null || n.destroy()), this._bellContext = new ps(), h.update(d.CALL, s.LOCAL_USER_INFO, { userId: g }), h.update(d.CALL, s.LOCAL_USER_INFO_EXCLUDE_VOLUMN, { userId: g }), st.updateViewBackgroundUserId("local"), (i = this._aiAssistant) == null || i.bindEvent(), await this._tuiCallEngine.login({ userID: g, userSig: D, assetsPath: "" });
|
|
2524
|
+
const f = h.getData(d.CALL, s.CUSTOM_UI_CONFIG), p = (r = (a = this._tuiCallEngine) == null ? void 0 : a.getTRTCCloudInstance) == null ? void 0 : r.call(a);
|
|
2525
2525
|
p == null || p.callExperimentalAPI(JSON.stringify(
|
|
2526
2526
|
{ api: "enableAutoPlayDialog", params: { enable: 0 } }
|
|
2527
2527
|
)), (o = p == null ? void 0 : p.on) == null || o.call(p, "onAutoPlayFailed", this._handleAutoPlayFailed), (c = (l = this._tuiCallEngine) == null ? void 0 : l.reportLog) == null || c.call(l, {
|
|
2528
2528
|
name: "TUICallkit.init",
|
|
2529
2529
|
data: {
|
|
2530
|
-
uiConfig:
|
|
2530
|
+
uiConfig: f
|
|
2531
2531
|
}
|
|
2532
2532
|
});
|
|
2533
|
-
} catch (
|
|
2534
|
-
throw
|
|
2533
|
+
} catch (g) {
|
|
2534
|
+
throw (I = (M = this._tuiCallEngine) == null ? void 0 : M.reportLog) == null || I.call(M, {
|
|
2535
|
+
name: "TUICallkit.initerror",
|
|
2536
|
+
data: {
|
|
2537
|
+
error: g
|
|
2538
|
+
}
|
|
2539
|
+
}), this._isInitialized = !1, this._tuiCallEngine = null, console.error(`${s.PREFIX}init failed, error: ${g}.`), g;
|
|
2535
2540
|
}
|
|
2536
2541
|
}
|
|
2537
2542
|
// component destroy
|
|
@@ -3182,41 +3187,41 @@ function Ys(t) {
|
|
|
3182
3187
|
message: e = {},
|
|
3183
3188
|
onClick: n
|
|
3184
3189
|
} = t, [i, a] = m(), [r, o] = m(), [l, c] = m([]), [M, I] = m();
|
|
3185
|
-
function g(
|
|
3186
|
-
I(() =>
|
|
3190
|
+
function g(C) {
|
|
3191
|
+
I(() => C);
|
|
3187
3192
|
}
|
|
3188
|
-
const
|
|
3193
|
+
const A = {
|
|
3189
3194
|
[s.TRANSLATE]: g
|
|
3190
3195
|
};
|
|
3191
3196
|
Q(() => (h.watch(
|
|
3192
3197
|
d.CALL,
|
|
3193
|
-
|
|
3198
|
+
A,
|
|
3194
3199
|
{
|
|
3195
3200
|
notifyRangeWhenWatch: s.MYSELF
|
|
3196
3201
|
}
|
|
3197
|
-
), h.watch(d.CALL,
|
|
3198
|
-
h.unwatch(d.CALL,
|
|
3202
|
+
), h.watch(d.CALL, A), () => {
|
|
3203
|
+
h.unwatch(d.CALL, A);
|
|
3199
3204
|
}), []), Q(() => {
|
|
3200
|
-
V.getCallMessage(e).then((
|
|
3201
|
-
const { callMediaType: f, messageCardContent:
|
|
3202
|
-
o(f), a(
|
|
3205
|
+
V.getCallMessage(e).then((C) => {
|
|
3206
|
+
const { callMediaType: f, messageCardContent: p = "", inviteeList: y = [] } = C || {};
|
|
3207
|
+
o(f), a(p), c(y);
|
|
3203
3208
|
});
|
|
3204
3209
|
}, [e]);
|
|
3205
|
-
const D = typeof M == "function" ? M(i) : i,
|
|
3210
|
+
const D = typeof M == "function" ? M(i) : i, N = r === F.AUDIO ? Vs : ks, T = b([
|
|
3206
3211
|
Di["message-c2c-container"],
|
|
3207
3212
|
"c2c"
|
|
3208
|
-
]),
|
|
3213
|
+
]), L = () => {
|
|
3209
3214
|
typeof n == "function" && n({ callMediaType: r, inviteeList: l });
|
|
3210
|
-
},
|
|
3215
|
+
}, E = b([
|
|
3211
3216
|
Di.icon
|
|
3212
3217
|
]);
|
|
3213
3218
|
return /* @__PURE__ */ w(
|
|
3214
3219
|
"div",
|
|
3215
3220
|
{
|
|
3216
3221
|
className: T,
|
|
3217
|
-
onClick:
|
|
3222
|
+
onClick: L,
|
|
3218
3223
|
children: [
|
|
3219
|
-
/* @__PURE__ */ u("div", { className:
|
|
3224
|
+
/* @__PURE__ */ u("div", { className: E, children: /* @__PURE__ */ u(W, { url: N }) }),
|
|
3220
3225
|
/* @__PURE__ */ u("span", { className: Di["call-content"], children: D })
|
|
3221
3226
|
]
|
|
3222
3227
|
}
|
|
@@ -3345,16 +3350,16 @@ function mr(t) {
|
|
|
3345
3350
|
} = t, c = b([
|
|
3346
3351
|
n,
|
|
3347
3352
|
`${G}-overlayer-container`
|
|
3348
|
-
]), [M, I] = m(i || o), [g,
|
|
3353
|
+
]), [M, I] = m(i || o), [g, A] = m({ objectFit: r }), D = { width: "100%", height: "100%" };
|
|
3349
3354
|
Q(() => {
|
|
3350
|
-
|
|
3355
|
+
A({ objectFit: r });
|
|
3351
3356
|
}, [r]);
|
|
3352
|
-
function
|
|
3357
|
+
function N(T) {
|
|
3353
3358
|
l == null || l(T), I(o);
|
|
3354
3359
|
}
|
|
3355
3360
|
return /* @__PURE__ */ w("div", { className: c, children: [
|
|
3356
3361
|
a && /* @__PURE__ */ u("div", { style: e, className: "overlay" }),
|
|
3357
|
-
M && /* @__PURE__ */ u("img", { alt: "bg", style: { ...D, ...g }, src: M, onError:
|
|
3362
|
+
M && /* @__PURE__ */ u("img", { alt: "bg", style: { ...D, ...g }, src: M, onError: N })
|
|
3358
3363
|
] });
|
|
3359
3364
|
}
|
|
3360
3365
|
function Hi(t) {
|
|
@@ -3390,18 +3395,18 @@ const be = Yi((t, e) => {
|
|
|
3390
3395
|
onClick: M = (y) => null,
|
|
3391
3396
|
isStopPropagation: I = !1,
|
|
3392
3397
|
size: g = "middle",
|
|
3393
|
-
direction:
|
|
3398
|
+
direction: A = "vertical",
|
|
3394
3399
|
className: D = "",
|
|
3395
|
-
iconClassName:
|
|
3400
|
+
iconClassName: N = "",
|
|
3396
3401
|
isMobile: T = !1,
|
|
3397
|
-
style:
|
|
3398
|
-
...
|
|
3399
|
-
} = t,
|
|
3402
|
+
style: L,
|
|
3403
|
+
...E
|
|
3404
|
+
} = t, C = (y) => {
|
|
3400
3405
|
I && y.stopPropagation(), !r && (M == null || M(y));
|
|
3401
3406
|
}, f = () => {
|
|
3402
3407
|
const y = b([
|
|
3403
3408
|
`${G}-icon`,
|
|
3404
|
-
|
|
3409
|
+
N,
|
|
3405
3410
|
{
|
|
3406
3411
|
[`${G}-size-s`]: g === "small",
|
|
3407
3412
|
[`${G}-size-m`]: g === "middle",
|
|
@@ -3412,35 +3417,35 @@ const be = Yi((t, e) => {
|
|
|
3412
3417
|
"div",
|
|
3413
3418
|
{
|
|
3414
3419
|
className: y,
|
|
3415
|
-
onClick:
|
|
3420
|
+
onClick: C,
|
|
3416
3421
|
style: i ? { width: i, height: i } : {},
|
|
3417
3422
|
children: r ? /* @__PURE__ */ u(Hi, { showOverlayer: !1 }) : n
|
|
3418
3423
|
}
|
|
3419
3424
|
);
|
|
3420
|
-
},
|
|
3425
|
+
}, p = () => l && /* @__PURE__ */ u("div", { className: `${G}-content`, children: a || o });
|
|
3421
3426
|
return /* @__PURE__ */ w(
|
|
3422
3427
|
"div",
|
|
3423
3428
|
{
|
|
3424
3429
|
ref: e,
|
|
3425
|
-
style:
|
|
3430
|
+
style: L,
|
|
3426
3431
|
className: b([
|
|
3427
3432
|
D,
|
|
3428
3433
|
`${G}-btn-container`,
|
|
3429
3434
|
{
|
|
3430
3435
|
mobile: T,
|
|
3431
3436
|
pc: !T,
|
|
3432
|
-
[`${G}-flex-vertical`]:
|
|
3433
|
-
[`${G}-flex-horizontal`]:
|
|
3437
|
+
[`${G}-flex-vertical`]: A === "vertical",
|
|
3438
|
+
[`${G}-flex-horizontal`]: A === "horizontal",
|
|
3434
3439
|
[`${G}-size-s`]: g === "small",
|
|
3435
3440
|
[`${G}-size-m`]: g === "middle",
|
|
3436
3441
|
[`${G}-size-l`]: g === "large",
|
|
3437
3442
|
[`${G}-ghost`]: c === !0
|
|
3438
3443
|
}
|
|
3439
3444
|
]),
|
|
3440
|
-
...
|
|
3445
|
+
...E,
|
|
3441
3446
|
children: [
|
|
3442
3447
|
n && f(),
|
|
3443
|
-
|
|
3448
|
+
p()
|
|
3444
3449
|
]
|
|
3445
3450
|
}
|
|
3446
3451
|
);
|
|
@@ -3468,52 +3473,52 @@ function Sr() {
|
|
|
3468
3473
|
);
|
|
3469
3474
|
}
|
|
3470
3475
|
function Xt() {
|
|
3471
|
-
const [t, e] = m(!1), [n, i] = m(!1), [a, r] = m([]), o = Ne((
|
|
3476
|
+
const [t, e] = m(!1), [n, i] = m(!1), [a, r] = m([]), o = Ne((A) => A ? A instanceof Map ? Array.from(A.entries()).map(([D, N]) => ({
|
|
3472
3477
|
language: String(D),
|
|
3473
|
-
text: l(
|
|
3474
|
-
})) : typeof
|
|
3478
|
+
text: l(N)
|
|
3479
|
+
})) : typeof A == "object" ? Object.entries(A).map(([D, N]) => ({
|
|
3475
3480
|
language: String(D),
|
|
3476
|
-
text: l(
|
|
3477
|
-
})) : [] : [], []), l = Ne((
|
|
3478
|
-
if (
|
|
3481
|
+
text: l(N)
|
|
3482
|
+
})) : [] : [], []), l = Ne((A) => {
|
|
3483
|
+
if (A == null)
|
|
3479
3484
|
return "";
|
|
3480
|
-
if (typeof
|
|
3481
|
-
return
|
|
3482
|
-
if (typeof
|
|
3485
|
+
if (typeof A == "string")
|
|
3486
|
+
return A;
|
|
3487
|
+
if (typeof A == "object")
|
|
3483
3488
|
try {
|
|
3484
|
-
return JSON.stringify(
|
|
3489
|
+
return JSON.stringify(A);
|
|
3485
3490
|
} catch (D) {
|
|
3486
3491
|
return console.warn("Failed to stringify translation content:", D), "[Invalid Object]";
|
|
3487
3492
|
}
|
|
3488
|
-
return String(
|
|
3489
|
-
}, []), c = Ne((
|
|
3493
|
+
return String(A);
|
|
3494
|
+
}, []), c = Ne((A) => A.map((D) => ({
|
|
3490
3495
|
roundId: D.segmentId,
|
|
3491
3496
|
sender: D.speakerUserId,
|
|
3492
3497
|
nick: "",
|
|
3493
3498
|
text: D.sourceText,
|
|
3494
3499
|
end: D.isCompleted,
|
|
3495
3500
|
translation: o(D.translationTexts)
|
|
3496
|
-
})), [o]), M = Ne((
|
|
3497
|
-
e(
|
|
3498
|
-
}, []), I = Ne((
|
|
3499
|
-
i(
|
|
3500
|
-
}, []), g = Ne((
|
|
3501
|
-
if (
|
|
3502
|
-
const D = c(
|
|
3501
|
+
})), [o]), M = Ne((A) => {
|
|
3502
|
+
e(A || !1);
|
|
3503
|
+
}, []), I = Ne((A) => {
|
|
3504
|
+
i(A || !1);
|
|
3505
|
+
}, []), g = Ne((A) => {
|
|
3506
|
+
if (A && A.length > 0) {
|
|
3507
|
+
const D = c(A);
|
|
3503
3508
|
r(D);
|
|
3504
3509
|
} else
|
|
3505
3510
|
r([]);
|
|
3506
3511
|
}, [c]);
|
|
3507
3512
|
return Q(() => {
|
|
3508
3513
|
try {
|
|
3509
|
-
const
|
|
3510
|
-
|
|
3514
|
+
const A = h.getData(d.CALL, s.IS_AI_TRANSCRIBER_ENABLED), D = h.getData(d.CALL, s.IS_AI_TRANSCRIBER_RUNNING), N = h.getData(d.CALL, s.REALTIME_MESSAGE_LIST);
|
|
3515
|
+
A !== void 0 && e(A), D !== void 0 && i(D), N && g(N), s.IS_AI_TRANSCRIBER_ENABLED && s.IS_AI_TRANSCRIBER_RUNNING && s.REALTIME_MESSAGE_LIST && h.watch(d.CALL, {
|
|
3511
3516
|
[s.IS_AI_TRANSCRIBER_ENABLED]: M,
|
|
3512
3517
|
[s.IS_AI_TRANSCRIBER_RUNNING]: I,
|
|
3513
3518
|
[s.REALTIME_MESSAGE_LIST]: g
|
|
3514
3519
|
});
|
|
3515
|
-
} catch (
|
|
3516
|
-
console.warn("AI Assistant hook initialization failed:",
|
|
3520
|
+
} catch (A) {
|
|
3521
|
+
console.warn("AI Assistant hook initialization failed:", A), e(!0), i(!1);
|
|
3517
3522
|
}
|
|
3518
3523
|
return () => {
|
|
3519
3524
|
try {
|
|
@@ -3522,8 +3527,8 @@ function Xt() {
|
|
|
3522
3527
|
[s.IS_AI_TRANSCRIBER_RUNNING]: I,
|
|
3523
3528
|
[s.REALTIME_MESSAGE_LIST]: g
|
|
3524
3529
|
});
|
|
3525
|
-
} catch (
|
|
3526
|
-
console.warn("AI Assistant hook cleanup failed:",
|
|
3530
|
+
} catch (A) {
|
|
3531
|
+
console.warn("AI Assistant hook cleanup failed:", A);
|
|
3527
3532
|
}
|
|
3528
3533
|
};
|
|
3529
3534
|
}, [M, I, g]), {
|
|
@@ -3534,26 +3539,26 @@ function Xt() {
|
|
|
3534
3539
|
}
|
|
3535
3540
|
const Xs = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxMyAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkuMDYyMTggNi43NUM5LjA2MjE4IDguNDA2ODUgNy43MTkwMyA5Ljc1IDYuMDYyMTggOS43NUM0LjQwNTMyIDkuNzUgMy4wNjIxOCA4LjQwNjg1IDMuMDYyMTggNi43NUMzLjA2MjE4IDUuMDkzMTUgNC40MDUzMiAzLjc1IDYuMDYyMTggMy43NUM3LjcxOTAzIDMuNzUgOS4wNjIxOCA1LjA5MzE1IDkuMDYyMTggNi43NVpNOC4wNjIxOCA2Ljc1QzguMDYyMTggNS42NDU0MyA3LjE2Njc1IDQuNzUgNi4wNjIxOCA0Ljc1QzQuOTU3NjEgNC43NSA0LjA2MjE4IDUuNjQ1NDMgNC4wNjIxOCA2Ljc1QzQuMDYyMTggNy44NTQ1NyA0Ljk1NzYxIDguNzUgNi4wNjIxOCA4Ljc1QzcuMTY2NzUgOC43NSA4LjA2MjE4IDcuODU0NTcgOC4wNjIxOCA2Ljc1WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC43NSIvPgo8cGF0aCBkPSJNNi4wNjIxOCAwTDEyLjEyNDQgMy4zNzVWMTAuMTI1TDYuMDYyMTggMTMuNUwwIDEwLjEyNVYzLjM3NUw2LjA2MjE4IDBaTTEgMy45NjI4VjkuNTM3Mkw2LjA2MjE4IDEyLjM1NTVMMTEuMTI0NCA5LjUzNzJWMy45NjI4TDYuMDYyMTggMS4xNDQ1M0wxIDMuOTYyOFoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNzUiLz4KPC9zdmc+Cg==", Ks = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDYgMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xLjg0NTI5IDkuMzQ0NDhMMS4xNTU4NiA4LjY1NTA1TDMuODExMTQgNS45OTk3N0wxLjE1NTg2IDMuMzQ0NDhMMS44NDUyOSAyLjY1NTA1TDUuMTkgNS45OTk3N0wxLjg0NTI5IDkuMzQ0NDhaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjQyIi8+Cjwvc3ZnPgo=";
|
|
3536
3541
|
const $s = ({ onOpenSettings: t, className: e }) => {
|
|
3537
|
-
const [n, i] = m(!1), a = De(null), { subtitleInfoList: r, isAITranscriberRunning: o } = Xt(), l = !U.isPC, c = l ? Ks : Xs, M = l ? 24 : 20, I = (
|
|
3538
|
-
if (
|
|
3542
|
+
const [n, i] = m(!1), a = De(null), { subtitleInfoList: r, isAITranscriberRunning: o } = Xt(), l = !U.isPC, c = l ? Ks : Xs, M = l ? 24 : 20, I = (N) => {
|
|
3543
|
+
if (N == null)
|
|
3539
3544
|
return { language: "Unknown", text: "" };
|
|
3540
|
-
if (typeof
|
|
3545
|
+
if (typeof N == "string")
|
|
3541
3546
|
try {
|
|
3542
|
-
const T = JSON.parse(
|
|
3547
|
+
const T = JSON.parse(N);
|
|
3543
3548
|
return T && typeof T == "object" ? {
|
|
3544
3549
|
language: T.language || "Unknown",
|
|
3545
|
-
text: T.text ||
|
|
3546
|
-
} : { language: "Unknown", text:
|
|
3550
|
+
text: T.text || N
|
|
3551
|
+
} : { language: "Unknown", text: N };
|
|
3547
3552
|
} catch {
|
|
3548
|
-
return { language: "Unknown", text:
|
|
3553
|
+
return { language: "Unknown", text: N };
|
|
3549
3554
|
}
|
|
3550
|
-
return { language: "Unknown", text: String(
|
|
3551
|
-
}, g = (
|
|
3555
|
+
return { language: "Unknown", text: String(N) };
|
|
3556
|
+
}, g = (N) => I(N).text;
|
|
3552
3557
|
if (Q(() => {
|
|
3553
3558
|
a.current && (a.current.scrollTop = a.current.scrollHeight);
|
|
3554
3559
|
}, [r]), !o || !Array.isArray(r) || r.length === 0)
|
|
3555
3560
|
return null;
|
|
3556
|
-
const
|
|
3561
|
+
const A = () => {
|
|
3557
3562
|
l || i(!0);
|
|
3558
3563
|
}, D = () => {
|
|
3559
3564
|
l || i(!1);
|
|
@@ -3563,7 +3568,7 @@ const $s = ({ onOpenSettings: t, className: e }) => {
|
|
|
3563
3568
|
{
|
|
3564
3569
|
ref: a,
|
|
3565
3570
|
className: `subtitle-content ${l ? "subtitle-content--h5" : ""} ${e || ""}`,
|
|
3566
|
-
onMouseEnter:
|
|
3571
|
+
onMouseEnter: A,
|
|
3567
3572
|
onMouseLeave: D,
|
|
3568
3573
|
children: [
|
|
3569
3574
|
/* @__PURE__ */ u(
|
|
@@ -3583,12 +3588,12 @@ const $s = ({ onOpenSettings: t, className: e }) => {
|
|
|
3583
3588
|
)
|
|
3584
3589
|
}
|
|
3585
3590
|
),
|
|
3586
|
-
r.map((
|
|
3591
|
+
r.map((N, T) => /* @__PURE__ */ w("div", { children: [
|
|
3587
3592
|
T !== 0 && /* @__PURE__ */ u("div", { style: { height: "16px" } }),
|
|
3588
|
-
/* @__PURE__ */ u("div", { className: "sender-name", children: `${(
|
|
3589
|
-
/* @__PURE__ */ u("div", { children:
|
|
3590
|
-
Array.isArray(
|
|
3591
|
-
] },
|
|
3593
|
+
/* @__PURE__ */ u("div", { className: "sender-name", children: `${(N == null ? void 0 : N.nick) || (N == null ? void 0 : N.sender)}:` }),
|
|
3594
|
+
/* @__PURE__ */ u("div", { children: N == null ? void 0 : N.text }),
|
|
3595
|
+
Array.isArray(N == null ? void 0 : N.translation) && N.translation.map((L, E) => /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u("span", { children: g(L == null ? void 0 : L.text) }) }, E))
|
|
3596
|
+
] }, N.roundId))
|
|
3592
3597
|
]
|
|
3593
3598
|
}
|
|
3594
3599
|
);
|
|
@@ -3663,7 +3668,7 @@ const Ti = ({
|
|
|
3663
3668
|
onChange: a
|
|
3664
3669
|
}) => {
|
|
3665
3670
|
const [r, o] = m(!1), l = De(null), c = (() => {
|
|
3666
|
-
const g = e.find((
|
|
3671
|
+
const g = e.find((A) => A.value === t);
|
|
3667
3672
|
return g ? g.label : n;
|
|
3668
3673
|
})(), M = () => {
|
|
3669
3674
|
i || o(!r);
|
|
@@ -3671,8 +3676,8 @@ const Ti = ({
|
|
|
3671
3676
|
a(g), o(!1);
|
|
3672
3677
|
};
|
|
3673
3678
|
return Q(() => {
|
|
3674
|
-
const g = (
|
|
3675
|
-
l.current && !l.current.contains(
|
|
3679
|
+
const g = (A) => {
|
|
3680
|
+
l.current && !l.current.contains(A.target) && o(!1);
|
|
3676
3681
|
};
|
|
3677
3682
|
return document.addEventListener("mousedown", g), () => {
|
|
3678
3683
|
document.removeEventListener("mousedown", g);
|
|
@@ -3754,21 +3759,21 @@ const qs = ({
|
|
|
3754
3759
|
{ value: "ru", label: "Russian (俄语)" }
|
|
3755
3760
|
].filter(
|
|
3756
3761
|
(y) => y.value === "" || y.value !== r
|
|
3757
|
-
),
|
|
3762
|
+
), N = [
|
|
3758
3763
|
{ value: "both", label: i("show-bilingual") },
|
|
3759
3764
|
{ value: "original", label: i("show-original-only") }
|
|
3760
3765
|
], T = () => {
|
|
3761
|
-
|
|
3762
|
-
},
|
|
3766
|
+
L();
|
|
3767
|
+
}, L = () => {
|
|
3763
3768
|
e(!1);
|
|
3764
|
-
},
|
|
3769
|
+
}, E = (y) => {
|
|
3765
3770
|
const j = String(y);
|
|
3766
3771
|
o(j), l === j && c("");
|
|
3767
|
-
},
|
|
3772
|
+
}, C = (y) => {
|
|
3768
3773
|
c(String(y));
|
|
3769
3774
|
}, f = (y) => {
|
|
3770
3775
|
I(String(y));
|
|
3771
|
-
},
|
|
3776
|
+
}, p = async () => {
|
|
3772
3777
|
try {
|
|
3773
3778
|
a.current = {
|
|
3774
3779
|
recognitionLanguage: r,
|
|
@@ -3783,7 +3788,7 @@ const qs = ({
|
|
|
3783
3788
|
recognitionLanguage: r,
|
|
3784
3789
|
translationLanguage: l,
|
|
3785
3790
|
subtitleDisplay: M
|
|
3786
|
-
}),
|
|
3791
|
+
}), L();
|
|
3787
3792
|
} catch (y) {
|
|
3788
3793
|
console.error("Failed to update AI transcriber settings:", y);
|
|
3789
3794
|
}
|
|
@@ -3791,7 +3796,7 @@ const qs = ({
|
|
|
3791
3796
|
return t ? /* @__PURE__ */ u("div", { className: "subtitle-settings-overlay-pc", onClick: T, children: /* @__PURE__ */ w("div", { className: "subtitle-settings-modal-pc", onClick: (y) => y.stopPropagation(), children: [
|
|
3792
3797
|
/* @__PURE__ */ w("div", { className: "modal-header-pc", children: [
|
|
3793
3798
|
/* @__PURE__ */ u("h3", { className: "modal-title-pc", children: i("ai-subtitle-settings") }),
|
|
3794
|
-
/* @__PURE__ */ u("button", { className: "close-btn-pc", onClick:
|
|
3799
|
+
/* @__PURE__ */ u("button", { className: "close-btn-pc", onClick: L, children: /* @__PURE__ */ u("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ u("path", { d: "M12 4L4 12M4 4L12 12", stroke: "#666", strokeWidth: "2", strokeLinecap: "round" }) }) })
|
|
3795
3800
|
] }),
|
|
3796
3801
|
/* @__PURE__ */ w("div", { className: "modal-content-pc", children: [
|
|
3797
3802
|
/* @__PURE__ */ w("div", { className: "setting-item-pc", children: [
|
|
@@ -3801,7 +3806,7 @@ const qs = ({
|
|
|
3801
3806
|
{
|
|
3802
3807
|
value: r,
|
|
3803
3808
|
options: g,
|
|
3804
|
-
onChange:
|
|
3809
|
+
onChange: E
|
|
3805
3810
|
}
|
|
3806
3811
|
)
|
|
3807
3812
|
] }),
|
|
@@ -3812,7 +3817,7 @@ const qs = ({
|
|
|
3812
3817
|
{
|
|
3813
3818
|
value: l,
|
|
3814
3819
|
options: D,
|
|
3815
|
-
onChange:
|
|
3820
|
+
onChange: C
|
|
3816
3821
|
}
|
|
3817
3822
|
)
|
|
3818
3823
|
] }),
|
|
@@ -3822,15 +3827,15 @@ const qs = ({
|
|
|
3822
3827
|
Ti,
|
|
3823
3828
|
{
|
|
3824
3829
|
value: M,
|
|
3825
|
-
options:
|
|
3830
|
+
options: N,
|
|
3826
3831
|
onChange: f
|
|
3827
3832
|
}
|
|
3828
3833
|
)
|
|
3829
3834
|
] })
|
|
3830
3835
|
] }),
|
|
3831
3836
|
/* @__PURE__ */ w("div", { className: "modal-footer-pc", children: [
|
|
3832
|
-
/* @__PURE__ */ u("button", { className: "btn-pc btn-cancel-pc", onClick:
|
|
3833
|
-
/* @__PURE__ */ u("button", { className: "btn-pc btn-confirm-pc", onClick:
|
|
3837
|
+
/* @__PURE__ */ u("button", { className: "btn-pc btn-cancel-pc", onClick: L, children: i("Cancel") }),
|
|
3838
|
+
/* @__PURE__ */ u("button", { className: "btn-pc btn-confirm-pc", onClick: p, children: i("save") })
|
|
3834
3839
|
] })
|
|
3835
3840
|
] }) }) : null;
|
|
3836
3841
|
};
|
|
@@ -3843,14 +3848,14 @@ const el = ({
|
|
|
3843
3848
|
recognitionLanguage: "zh",
|
|
3844
3849
|
translationLanguage: "",
|
|
3845
3850
|
subtitleEnabled: !0
|
|
3846
|
-
}), [r, o] = m("zh"), [l, c] = m(""), [M, I] = m(!0), [g,
|
|
3851
|
+
}), [r, o] = m("zh"), [l, c] = m(""), [M, I] = m(!0), [g, A] = m(!1), [D, N] = m(!1);
|
|
3847
3852
|
Q(() => {
|
|
3848
|
-
t && (o(a.current.recognitionLanguage), c(a.current.translationLanguage), I(a.current.subtitleEnabled),
|
|
3853
|
+
t && (o(a.current.recognitionLanguage), c(a.current.translationLanguage), I(a.current.subtitleEnabled), A(!1), N(!1));
|
|
3849
3854
|
}, [t]);
|
|
3850
3855
|
const T = [
|
|
3851
3856
|
{ value: "zh", label: "中文" },
|
|
3852
3857
|
{ value: "en", label: "English" }
|
|
3853
|
-
],
|
|
3858
|
+
], E = [
|
|
3854
3859
|
{ value: "", label: i("no-translation") },
|
|
3855
3860
|
{ value: "zh", label: "Chinese (中文)" },
|
|
3856
3861
|
{ value: "en", label: "English (英语)" },
|
|
@@ -3869,15 +3874,15 @@ const el = ({
|
|
|
3869
3874
|
{ value: "ru", label: "Russian (俄语)" }
|
|
3870
3875
|
].filter(
|
|
3871
3876
|
(O) => O.value === "" || O.value !== r
|
|
3872
|
-
),
|
|
3873
|
-
const Y = [...T, ...
|
|
3877
|
+
), C = (O) => {
|
|
3878
|
+
const Y = [...T, ...E].find((J) => J.value === O);
|
|
3874
3879
|
return (Y == null ? void 0 : Y.label) || "";
|
|
3875
3880
|
}, f = () => {
|
|
3876
3881
|
e(!1);
|
|
3877
|
-
},
|
|
3878
|
-
o(O),
|
|
3882
|
+
}, p = (O) => {
|
|
3883
|
+
o(O), A(!1), l === O && c("");
|
|
3879
3884
|
}, y = (O) => {
|
|
3880
|
-
c(O),
|
|
3885
|
+
c(O), N(!1);
|
|
3881
3886
|
}, j = () => {
|
|
3882
3887
|
I(!M);
|
|
3883
3888
|
}, z = async () => {
|
|
@@ -3906,17 +3911,17 @@ const el = ({
|
|
|
3906
3911
|
/* @__PURE__ */ u("div", { className: "modal-content", children: /* @__PURE__ */ w("div", { className: "setting-group", children: [
|
|
3907
3912
|
/* @__PURE__ */ u("div", { className: "group-title", children: i("recognition-and-translation-settings") }),
|
|
3908
3913
|
/* @__PURE__ */ w("div", { className: "group-content", children: [
|
|
3909
|
-
/* @__PURE__ */ u("div", { className: "setting-section", children: /* @__PURE__ */ w("div", { className: "section-header", onClick: () =>
|
|
3914
|
+
/* @__PURE__ */ u("div", { className: "setting-section", children: /* @__PURE__ */ w("div", { className: "section-header", onClick: () => A(!0), children: [
|
|
3910
3915
|
/* @__PURE__ */ u("span", { className: "section-title", children: i("recognition-language") }),
|
|
3911
3916
|
/* @__PURE__ */ w("span", { className: "section-value", children: [
|
|
3912
|
-
|
|
3917
|
+
C(r),
|
|
3913
3918
|
/* @__PURE__ */ u("svg", { className: "arrow-icon", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ u("path", { d: "M6 4L10 8L6 12", stroke: "#999", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
3914
3919
|
] })
|
|
3915
3920
|
] }) }),
|
|
3916
|
-
/* @__PURE__ */ u("div", { className: "setting-section", children: /* @__PURE__ */ w("div", { className: "section-header", onClick: () =>
|
|
3921
|
+
/* @__PURE__ */ u("div", { className: "setting-section", children: /* @__PURE__ */ w("div", { className: "section-header", onClick: () => N(!0), children: [
|
|
3917
3922
|
/* @__PURE__ */ u("span", { className: "section-title", children: i("translation-language") }),
|
|
3918
3923
|
/* @__PURE__ */ w("span", { className: "section-value", children: [
|
|
3919
|
-
|
|
3924
|
+
C(l) || i("no-translation"),
|
|
3920
3925
|
/* @__PURE__ */ u("svg", { className: "arrow-icon", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ u("path", { d: "M6 4L10 8L6 12", stroke: "#999", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
3921
3926
|
] })
|
|
3922
3927
|
] }) }),
|
|
@@ -3938,7 +3943,7 @@ const el = ({
|
|
|
3938
3943
|
/* @__PURE__ */ u("button", { className: "btn btn-confirm", onClick: z, children: i("confirm") })
|
|
3939
3944
|
] })
|
|
3940
3945
|
] }),
|
|
3941
|
-
g && /* @__PURE__ */ u("div", { className: "language-selector-overlay", onClick: () =>
|
|
3946
|
+
g && /* @__PURE__ */ u("div", { className: "language-selector-overlay", onClick: () => A(!1), children: /* @__PURE__ */ w("div", { className: "language-selector", onClick: (O) => O.stopPropagation(), children: [
|
|
3942
3947
|
/* @__PURE__ */ w("div", { className: "selector-header", children: [
|
|
3943
3948
|
/* @__PURE__ */ u("h3", { className: "selector-title", children: i("select-recognition-language") }),
|
|
3944
3949
|
/* @__PURE__ */ u("div", { className: "header-placeholder" })
|
|
@@ -3947,18 +3952,18 @@ const el = ({
|
|
|
3947
3952
|
"div",
|
|
3948
3953
|
{
|
|
3949
3954
|
className: `language-item ${r === O.value ? "selected" : ""}`,
|
|
3950
|
-
onClick: () =>
|
|
3955
|
+
onClick: () => p(O.value),
|
|
3951
3956
|
children: /* @__PURE__ */ u("span", { children: O.label })
|
|
3952
3957
|
},
|
|
3953
3958
|
O.value
|
|
3954
3959
|
)) })
|
|
3955
3960
|
] }) }),
|
|
3956
|
-
D && /* @__PURE__ */ u("div", { className: "language-selector-overlay", onClick: () =>
|
|
3961
|
+
D && /* @__PURE__ */ u("div", { className: "language-selector-overlay", onClick: () => N(!1), children: /* @__PURE__ */ w("div", { className: "language-selector", onClick: (O) => O.stopPropagation(), children: [
|
|
3957
3962
|
/* @__PURE__ */ w("div", { className: "selector-header", children: [
|
|
3958
3963
|
/* @__PURE__ */ u("h3", { className: "selector-title", children: i("select-translation-language") }),
|
|
3959
3964
|
/* @__PURE__ */ u("div", { className: "header-placeholder" })
|
|
3960
3965
|
] }),
|
|
3961
|
-
/* @__PURE__ */ u("div", { className: "language-list", children:
|
|
3966
|
+
/* @__PURE__ */ u("div", { className: "language-list", children: E.map((O) => /* @__PURE__ */ u(
|
|
3962
3967
|
"div",
|
|
3963
3968
|
{
|
|
3964
3969
|
className: `language-item ${l === O.value ? "selected" : ""}`,
|
|
@@ -4046,17 +4051,17 @@ function Ur(t) {
|
|
|
4046
4051
|
children: M,
|
|
4047
4052
|
plaintext: I = !1,
|
|
4048
4053
|
onClose: g = () => null
|
|
4049
|
-
} = t,
|
|
4054
|
+
} = t, A = De(void 0), D = b([
|
|
4050
4055
|
c,
|
|
4051
4056
|
`${G}-message-container`,
|
|
4052
4057
|
{ [`${G}-message-plaintext`]: I }
|
|
4053
4058
|
]);
|
|
4054
|
-
Q(() => (
|
|
4059
|
+
Q(() => (A.current && clearTimeout(A.current), i > 0 && (A.current = setTimeout(() => {
|
|
4055
4060
|
g == null || g();
|
|
4056
4061
|
}, i)), () => {
|
|
4057
|
-
|
|
4062
|
+
A && clearTimeout(A.current);
|
|
4058
4063
|
}), [i, g]);
|
|
4059
|
-
const
|
|
4064
|
+
const N = () => e || /* @__PURE__ */ u(Ht, { children: Ml[a] }), T = () => o || /* @__PURE__ */ u(
|
|
4060
4065
|
W,
|
|
4061
4066
|
{
|
|
4062
4067
|
onClick: g,
|
|
@@ -4068,7 +4073,7 @@ function Ur(t) {
|
|
|
4068
4073
|
}
|
|
4069
4074
|
);
|
|
4070
4075
|
return /* @__PURE__ */ w("div", { className: D, style: r, children: [
|
|
4071
|
-
n && !I &&
|
|
4076
|
+
n && !I && N(),
|
|
4072
4077
|
M,
|
|
4073
4078
|
l && !I && T()
|
|
4074
4079
|
] });
|
|
@@ -4079,12 +4084,12 @@ function vr(t) {
|
|
|
4079
4084
|
]);
|
|
4080
4085
|
function g(D) {
|
|
4081
4086
|
if (typeof D == "object") {
|
|
4082
|
-
const { text:
|
|
4083
|
-
a(
|
|
4087
|
+
const { text: N = "", duration: T = 0 } = D;
|
|
4088
|
+
a(N), c(T);
|
|
4084
4089
|
} else
|
|
4085
4090
|
a(D);
|
|
4086
4091
|
}
|
|
4087
|
-
const
|
|
4092
|
+
const A = X(() => {
|
|
4088
4093
|
if (typeof M == "function" && i !== null)
|
|
4089
4094
|
return M(i);
|
|
4090
4095
|
}, [M, i]);
|
|
@@ -4103,7 +4108,7 @@ function vr(t) {
|
|
|
4103
4108
|
[s.CALL_TIPS]: g
|
|
4104
4109
|
}
|
|
4105
4110
|
);
|
|
4106
|
-
}), []), /* @__PURE__ */ u("div", { className: I, style: n, children: r && /* @__PURE__ */ u(Ur, { style: { whiteSpace: "nowrap" }, duration: l, onClose: () => o(!1), plaintext: !0, children:
|
|
4111
|
+
}), []), /* @__PURE__ */ u("div", { className: I, style: n, children: r && /* @__PURE__ */ u(Ur, { style: { whiteSpace: "nowrap" }, duration: l, onClose: () => o(!1), plaintext: !0, children: A }) });
|
|
4107
4112
|
}
|
|
4108
4113
|
const La = {
|
|
4109
4114
|
"top-bar-container": "_top-bar-container_1m8fv_1",
|
|
@@ -4328,13 +4333,13 @@ function Zt(t, e, n) {
|
|
|
4328
4333
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
4329
4334
|
var i = t.getBoundingClientRect(), a = 1, r = 1;
|
|
4330
4335
|
e && we(t) && (a = t.offsetWidth > 0 && Gt(i.width) / t.offsetWidth || 1, r = t.offsetHeight > 0 && Gt(i.height) / t.offsetHeight || 1);
|
|
4331
|
-
var o = ft(t) ? Ce(t) : window, l = o.visualViewport, c = !Vr() && n, M = (i.left + (c && l ? l.offsetLeft : 0)) / a, I = (i.top + (c && l ? l.offsetTop : 0)) / r, g = i.width / a,
|
|
4336
|
+
var o = ft(t) ? Ce(t) : window, l = o.visualViewport, c = !Vr() && n, M = (i.left + (c && l ? l.offsetLeft : 0)) / a, I = (i.top + (c && l ? l.offsetTop : 0)) / r, g = i.width / a, A = i.height / r;
|
|
4332
4337
|
return {
|
|
4333
4338
|
width: g,
|
|
4334
|
-
height:
|
|
4339
|
+
height: A,
|
|
4335
4340
|
top: I,
|
|
4336
4341
|
right: M + g,
|
|
4337
|
-
bottom: I +
|
|
4342
|
+
bottom: I + A,
|
|
4338
4343
|
left: M,
|
|
4339
4344
|
x: M,
|
|
4340
4345
|
y: I
|
|
@@ -4446,7 +4451,7 @@ var Vl = function(e, n) {
|
|
|
4446
4451
|
function Ql(t) {
|
|
4447
4452
|
var e, n = t.state, i = t.name, a = t.options, r = n.elements.arrow, o = n.modifiersData.popperOffsets, l = Be(n.placement), c = ea(l), M = [he, ve].indexOf(l) >= 0, I = M ? "height" : "width";
|
|
4448
4453
|
if (!(!r || !o)) {
|
|
4449
|
-
var g = Vl(a.padding, n),
|
|
4454
|
+
var g = Vl(a.padding, n), A = qi(r), D = c === "y" ? Te : he, N = c === "y" ? Ue : ve, T = n.rects.reference[I] + n.rects.reference[c] - o[c] - n.rects.popper[I], L = o[c] - n.rects.reference[c], E = jn(r), C = E ? c === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, f = T / 2 - L / 2, p = g[D], y = C - A[I] - g[N], j = C / 2 - A[I] / 2 + f, z = Mn(p, j, y), O = c;
|
|
4450
4455
|
n.modifiersData[i] = (e = {}, e[O] = z, e.centerOffset = z - j, e);
|
|
4451
4456
|
}
|
|
4452
4457
|
}
|
|
@@ -4480,19 +4485,19 @@ function Zl(t, e) {
|
|
|
4480
4485
|
};
|
|
4481
4486
|
}
|
|
4482
4487
|
function fa(t) {
|
|
4483
|
-
var e, n = t.popper, i = t.popperRect, a = t.placement, r = t.variation, o = t.offsets, l = t.position, c = t.gpuAcceleration, M = t.adaptive, I = t.roundOffsets, g = t.isFixed,
|
|
4488
|
+
var e, n = t.popper, i = t.popperRect, a = t.placement, r = t.variation, o = t.offsets, l = t.position, c = t.gpuAcceleration, M = t.adaptive, I = t.roundOffsets, g = t.isFixed, A = o.x, D = A === void 0 ? 0 : A, N = o.y, T = N === void 0 ? 0 : N, L = typeof I == "function" ? I({
|
|
4484
4489
|
x: D,
|
|
4485
4490
|
y: T
|
|
4486
4491
|
}) : {
|
|
4487
4492
|
x: D,
|
|
4488
4493
|
y: T
|
|
4489
4494
|
};
|
|
4490
|
-
D =
|
|
4491
|
-
var
|
|
4495
|
+
D = L.x, T = L.y;
|
|
4496
|
+
var E = o.hasOwnProperty("x"), C = o.hasOwnProperty("y"), f = he, p = Te, y = window;
|
|
4492
4497
|
if (M) {
|
|
4493
4498
|
var j = jn(n), z = "clientHeight", O = "clientWidth";
|
|
4494
4499
|
if (j === Ce(n) && (j = It(n), tt(j).position !== "static" && l === "absolute" && (z = "scrollHeight", O = "scrollWidth")), j = j, a === Te || (a === he || a === ve) && r === Tn) {
|
|
4495
|
-
|
|
4500
|
+
p = Ue;
|
|
4496
4501
|
var B = g && j === y && y.visualViewport ? y.visualViewport.height : (
|
|
4497
4502
|
// $FlowFixMe[prop-missing]
|
|
4498
4503
|
j[z]
|
|
@@ -4519,9 +4524,9 @@ function fa(t) {
|
|
|
4519
4524
|
};
|
|
4520
4525
|
if (D = se.x, T = se.y, c) {
|
|
4521
4526
|
var $;
|
|
4522
|
-
return Object.assign({}, J, ($ = {}, $[
|
|
4527
|
+
return Object.assign({}, J, ($ = {}, $[p] = C ? "0" : "", $[f] = E ? "0" : "", $.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + D + "px, " + T + "px)" : "translate3d(" + D + "px, " + T + "px, 0)", $));
|
|
4523
4528
|
}
|
|
4524
|
-
return Object.assign({}, J, (e = {}, e[
|
|
4529
|
+
return Object.assign({}, J, (e = {}, e[p] = C ? T + "px" : "", e[f] = E ? D + "px" : "", e.transform = "", e));
|
|
4525
4530
|
}
|
|
4526
4531
|
function Fl(t) {
|
|
4527
4532
|
var e = t.state, n = t.options, i = n.gpuAcceleration, a = i === void 0 ? !0 : i, r = n.adaptive, o = r === void 0 ? !0 : r, l = n.roundOffsets, c = l === void 0 ? !0 : l, M = {
|
|
@@ -4721,18 +4726,18 @@ function Fr(t) {
|
|
|
4721
4726
|
}
|
|
4722
4727
|
function hn(t, e) {
|
|
4723
4728
|
e === void 0 && (e = {});
|
|
4724
|
-
var n = e, i = n.placement, a = i === void 0 ? t.placement : i, r = n.strategy, o = r === void 0 ? t.strategy : r, l = n.boundary, c = l === void 0 ? Ll : l, M = n.rootBoundary, I = M === void 0 ? _r : M, g = n.elementContext,
|
|
4729
|
+
var n = e, i = n.placement, a = i === void 0 ? t.placement : i, r = n.strategy, o = r === void 0 ? t.strategy : r, l = n.boundary, c = l === void 0 ? Ll : l, M = n.rootBoundary, I = M === void 0 ? _r : M, g = n.elementContext, A = g === void 0 ? on : g, D = n.altBoundary, N = D === void 0 ? !1 : D, T = n.padding, L = T === void 0 ? 0 : T, E = Yr(typeof L != "number" ? L : Gr(L, yn)), C = A === on ? pl : on, f = t.rects.popper, p = t.elements[N ? C : A], y = tc(ft(p) ? p : p.contextElement || It(t.elements.popper), c, I, o), j = Zt(t.elements.reference), z = Fr({
|
|
4725
4730
|
reference: j,
|
|
4726
4731
|
element: f,
|
|
4727
4732
|
strategy: "absolute",
|
|
4728
4733
|
placement: a
|
|
4729
|
-
}), O = Ui(Object.assign({}, f, z)), B =
|
|
4730
|
-
top: y.top - B.top +
|
|
4731
|
-
bottom: B.bottom - y.bottom +
|
|
4732
|
-
left: y.left - B.left +
|
|
4733
|
-
right: B.right - y.right +
|
|
4734
|
+
}), O = Ui(Object.assign({}, f, z)), B = A === on ? O : j, Y = {
|
|
4735
|
+
top: y.top - B.top + E.top,
|
|
4736
|
+
bottom: B.bottom - y.bottom + E.bottom,
|
|
4737
|
+
left: y.left - B.left + E.left,
|
|
4738
|
+
right: B.right - y.right + E.right
|
|
4734
4739
|
}, J = t.modifiersData.offset;
|
|
4735
|
-
if (
|
|
4740
|
+
if (A === on && J) {
|
|
4736
4741
|
var se = J[a];
|
|
4737
4742
|
Object.keys(Y).forEach(function($) {
|
|
4738
4743
|
var je = [ve, Ue].indexOf($) >= 0 ? 1 : -1, fe = [Te, Ue].indexOf($) >= 0 ? "y" : "x";
|
|
@@ -4743,22 +4748,22 @@ function hn(t, e) {
|
|
|
4743
4748
|
}
|
|
4744
4749
|
function nc(t, e) {
|
|
4745
4750
|
e === void 0 && (e = {});
|
|
4746
|
-
var n = e, i = n.placement, a = n.boundary, r = n.rootBoundary, o = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, M = c === void 0 ? kr : c, I = Ft(i), g = I ? l ? ya : ya.filter(function(
|
|
4747
|
-
return Ft(
|
|
4748
|
-
}) : yn,
|
|
4749
|
-
return M.indexOf(
|
|
4751
|
+
var n = e, i = n.placement, a = n.boundary, r = n.rootBoundary, o = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, M = c === void 0 ? kr : c, I = Ft(i), g = I ? l ? ya : ya.filter(function(N) {
|
|
4752
|
+
return Ft(N) === I;
|
|
4753
|
+
}) : yn, A = g.filter(function(N) {
|
|
4754
|
+
return M.indexOf(N) >= 0;
|
|
4750
4755
|
});
|
|
4751
|
-
|
|
4752
|
-
var D =
|
|
4753
|
-
return
|
|
4756
|
+
A.length === 0 && (A = g);
|
|
4757
|
+
var D = A.reduce(function(N, T) {
|
|
4758
|
+
return N[T] = hn(t, {
|
|
4754
4759
|
placement: T,
|
|
4755
4760
|
boundary: a,
|
|
4756
4761
|
rootBoundary: r,
|
|
4757
4762
|
padding: o
|
|
4758
|
-
})[Be(T)],
|
|
4763
|
+
})[Be(T)], N;
|
|
4759
4764
|
}, {});
|
|
4760
|
-
return Object.keys(D).sort(function(
|
|
4761
|
-
return D[
|
|
4765
|
+
return Object.keys(D).sort(function(N, T) {
|
|
4766
|
+
return D[N] - D[T];
|
|
4762
4767
|
});
|
|
4763
4768
|
}
|
|
4764
4769
|
function ic(t) {
|
|
@@ -4770,21 +4775,21 @@ function ic(t) {
|
|
|
4770
4775
|
function ac(t) {
|
|
4771
4776
|
var e = t.state, n = t.options, i = t.name;
|
|
4772
4777
|
if (!e.modifiersData[i]._skip) {
|
|
4773
|
-
for (var a = n.mainAxis, r = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, c = n.fallbackPlacements, M = n.padding, I = n.boundary, g = n.rootBoundary,
|
|
4778
|
+
for (var a = n.mainAxis, r = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, c = n.fallbackPlacements, M = n.padding, I = n.boundary, g = n.rootBoundary, A = n.altBoundary, D = n.flipVariations, N = D === void 0 ? !0 : D, T = n.allowedAutoPlacements, L = e.options.placement, E = Be(L), C = E === L, f = c || (C || !N ? [Yn(L)] : ic(L)), p = [L].concat(f).reduce(function(rt, Ve) {
|
|
4774
4779
|
return rt.concat(Be(Ve) === Ki ? nc(e, {
|
|
4775
4780
|
placement: Ve,
|
|
4776
4781
|
boundary: I,
|
|
4777
4782
|
rootBoundary: g,
|
|
4778
4783
|
padding: M,
|
|
4779
|
-
flipVariations:
|
|
4784
|
+
flipVariations: N,
|
|
4780
4785
|
allowedAutoPlacements: T
|
|
4781
4786
|
}) : Ve);
|
|
4782
|
-
}, []), y = e.rects.reference, j = e.rects.popper, z = /* @__PURE__ */ new Map(), O = !0, B =
|
|
4783
|
-
var J =
|
|
4787
|
+
}, []), y = e.rects.reference, j = e.rects.popper, z = /* @__PURE__ */ new Map(), O = !0, B = p[0], Y = 0; Y < p.length; Y++) {
|
|
4788
|
+
var J = p[Y], se = Be(J), $ = Ft(J) === Yt, je = [Te, Ue].indexOf(se) >= 0, fe = je ? "width" : "height", q = hn(e, {
|
|
4784
4789
|
placement: J,
|
|
4785
4790
|
boundary: I,
|
|
4786
4791
|
rootBoundary: g,
|
|
4787
|
-
altBoundary:
|
|
4792
|
+
altBoundary: A,
|
|
4788
4793
|
padding: M
|
|
4789
4794
|
}), Ee = je ? $ ? ve : he : $ ? Ue : Te;
|
|
4790
4795
|
y[fe] > j[fe] && (Ee = Yn(Ee));
|
|
@@ -4798,8 +4803,8 @@ function ac(t) {
|
|
|
4798
4803
|
z.set(J, Ze);
|
|
4799
4804
|
}
|
|
4800
4805
|
if (O)
|
|
4801
|
-
for (var zt =
|
|
4802
|
-
var gt =
|
|
4806
|
+
for (var zt = N ? 3 : 1, $t = function(Ve) {
|
|
4807
|
+
var gt = p.find(function(Ut) {
|
|
4803
4808
|
var Fe = z.get(Ut);
|
|
4804
4809
|
if (Fe)
|
|
4805
4810
|
return Fe.slice(0, Ve).every(function(qt) {
|
|
@@ -4910,12 +4915,12 @@ function dc(t) {
|
|
|
4910
4915
|
return t === "x" ? "y" : "x";
|
|
4911
4916
|
}
|
|
4912
4917
|
function gc(t) {
|
|
4913
|
-
var e = t.state, n = t.options, i = t.name, a = n.mainAxis, r = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !1 : o, c = n.boundary, M = n.rootBoundary, I = n.altBoundary, g = n.padding,
|
|
4918
|
+
var e = t.state, n = t.options, i = t.name, a = n.mainAxis, r = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !1 : o, c = n.boundary, M = n.rootBoundary, I = n.altBoundary, g = n.padding, A = n.tether, D = A === void 0 ? !0 : A, N = n.tetherOffset, T = N === void 0 ? 0 : N, L = hn(e, {
|
|
4914
4919
|
boundary: c,
|
|
4915
4920
|
rootBoundary: M,
|
|
4916
4921
|
padding: g,
|
|
4917
4922
|
altBoundary: I
|
|
4918
|
-
}),
|
|
4923
|
+
}), E = Be(e.placement), C = Ft(e.placement), f = !C, p = ea(E), y = dc(p), j = e.modifiersData.popperOffsets, z = e.rects.reference, O = e.rects.popper, B = typeof T == "function" ? T(Object.assign({}, e.rects, {
|
|
4919
4924
|
placement: e.placement
|
|
4920
4925
|
})) : T, Y = typeof B == "number" ? {
|
|
4921
4926
|
mainAxis: B,
|
|
@@ -4929,14 +4934,14 @@ function gc(t) {
|
|
|
4929
4934
|
};
|
|
4930
4935
|
if (j) {
|
|
4931
4936
|
if (r) {
|
|
4932
|
-
var $, je =
|
|
4937
|
+
var $, je = p === "y" ? Te : he, fe = p === "y" ? Ue : ve, q = p === "y" ? "height" : "width", Ee = j[p], wt = Ee + L[je], Ze = Ee - L[fe], zt = D ? -O[q] / 2 : 0, $t = C === Yt ? z[q] : O[q], dt = C === Yt ? -O[q] : -z[q], Re = e.elements.arrow, rt = D && Re ? qi(Re) : {
|
|
4933
4938
|
width: 0,
|
|
4934
4939
|
height: 0
|
|
4935
|
-
}, Ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Br(), gt = Ve[je], Ut = Ve[fe], Fe = Mn(0, z[q], rt[q]), qt = f ? z[q] / 2 - zt - Fe - gt - Y.mainAxis : $t - Fe - gt - Y.mainAxis, oi = f ? -z[q] / 2 + zt + Fe + Ut + Y.mainAxis : dt + Fe + Ut + Y.mainAxis, en = e.elements.arrow && jn(e.elements.arrow), si = en ?
|
|
4936
|
-
j[
|
|
4940
|
+
}, Ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Br(), gt = Ve[je], Ut = Ve[fe], Fe = Mn(0, z[q], rt[q]), qt = f ? z[q] / 2 - zt - Fe - gt - Y.mainAxis : $t - Fe - gt - Y.mainAxis, oi = f ? -z[q] / 2 + zt + Fe + Ut + Y.mainAxis : dt + Fe + Ut + Y.mainAxis, en = e.elements.arrow && jn(e.elements.arrow), si = en ? p === "y" ? en.clientTop || 0 : en.clientLeft || 0 : 0, On = ($ = J == null ? void 0 : J[p]) != null ? $ : 0, li = Ee + qt - On - si, wn = Ee + oi - On, zn = Mn(D ? Jn(wt, li) : wt, Ee, D ? jt(Ze, wn) : Ze);
|
|
4941
|
+
j[p] = zn, se[p] = zn - Ee;
|
|
4937
4942
|
}
|
|
4938
4943
|
if (l) {
|
|
4939
|
-
var Un, ci =
|
|
4944
|
+
var Un, ci = p === "x" ? Te : he, Mi = p === "x" ? Ue : ve, Pe = j[y], vt = y === "y" ? "height" : "width", tn = Pe + L[ci], _ = Pe - L[Mi], We = [Te, he].indexOf(E) !== -1, vn = (Un = J == null ? void 0 : J[y]) != null ? Un : 0, nn = We ? tn : Pe - z[vt] - O[vt] - vn + Y.altAxis, sa = We ? Pe + z[vt] + O[vt] - vn - Y.altAxis : _, la = D && We ? kl(nn, Pe, sa) : Mn(D ? nn : tn, Pe, D ? sa : _);
|
|
4940
4945
|
j[y] = la, se[y] = la - Pe;
|
|
4941
4946
|
}
|
|
4942
4947
|
e.modifiersData[i] = se;
|
|
@@ -5056,18 +5061,18 @@ function yc(t) {
|
|
|
5056
5061
|
},
|
|
5057
5062
|
attributes: {},
|
|
5058
5063
|
styles: {}
|
|
5059
|
-
}, g = [],
|
|
5064
|
+
}, g = [], A = !1, D = {
|
|
5060
5065
|
state: I,
|
|
5061
|
-
setOptions: function(
|
|
5062
|
-
var
|
|
5063
|
-
T(), I.options = Object.assign({}, r, I.options,
|
|
5066
|
+
setOptions: function(E) {
|
|
5067
|
+
var C = typeof E == "function" ? E(I.options) : E;
|
|
5068
|
+
T(), I.options = Object.assign({}, r, I.options, C), I.scrollParents = {
|
|
5064
5069
|
reference: ft(l) ? un(l) : l.contextElement ? un(l.contextElement) : [],
|
|
5065
5070
|
popper: un(c)
|
|
5066
5071
|
};
|
|
5067
5072
|
var f = Lc(Cc([].concat(i, I.options.modifiers)));
|
|
5068
|
-
return I.orderedModifiers = f.filter(function(
|
|
5069
|
-
return
|
|
5070
|
-
}),
|
|
5073
|
+
return I.orderedModifiers = f.filter(function(p) {
|
|
5074
|
+
return p.enabled;
|
|
5075
|
+
}), N(), D.update();
|
|
5071
5076
|
},
|
|
5072
5077
|
// Sync update – it will always be executed, even if not necessary. This
|
|
5073
5078
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -5075,21 +5080,21 @@ function yc(t) {
|
|
|
5075
5080
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
5076
5081
|
// prefer the async Popper#update method
|
|
5077
5082
|
forceUpdate: function() {
|
|
5078
|
-
if (!
|
|
5079
|
-
var
|
|
5080
|
-
if (Ua(
|
|
5083
|
+
if (!A) {
|
|
5084
|
+
var E = I.elements, C = E.reference, f = E.popper;
|
|
5085
|
+
if (Ua(C, f)) {
|
|
5081
5086
|
I.rects = {
|
|
5082
|
-
reference: hc(
|
|
5087
|
+
reference: hc(C, jn(f), I.options.strategy === "fixed"),
|
|
5083
5088
|
popper: qi(f)
|
|
5084
5089
|
}, I.reset = !1, I.placement = I.options.placement, I.orderedModifiers.forEach(function(Y) {
|
|
5085
5090
|
return I.modifiersData[Y.name] = Object.assign({}, Y.data);
|
|
5086
5091
|
});
|
|
5087
|
-
for (var
|
|
5092
|
+
for (var p = 0; p < I.orderedModifiers.length; p++) {
|
|
5088
5093
|
if (I.reset === !0) {
|
|
5089
|
-
I.reset = !1,
|
|
5094
|
+
I.reset = !1, p = -1;
|
|
5090
5095
|
continue;
|
|
5091
5096
|
}
|
|
5092
|
-
var y = I.orderedModifiers[
|
|
5097
|
+
var y = I.orderedModifiers[p], j = y.fn, z = y.options, O = z === void 0 ? {} : z, B = y.name;
|
|
5093
5098
|
typeof j == "function" && (I = j({
|
|
5094
5099
|
state: I,
|
|
5095
5100
|
options: O,
|
|
@@ -5103,26 +5108,26 @@ function yc(t) {
|
|
|
5103
5108
|
// Async and optimistically optimized update – it will not be executed if
|
|
5104
5109
|
// not necessary (debounced to run at most once-per-tick)
|
|
5105
5110
|
update: pc(function() {
|
|
5106
|
-
return new Promise(function(
|
|
5107
|
-
D.forceUpdate(),
|
|
5111
|
+
return new Promise(function(L) {
|
|
5112
|
+
D.forceUpdate(), L(I);
|
|
5108
5113
|
});
|
|
5109
5114
|
}),
|
|
5110
5115
|
destroy: function() {
|
|
5111
|
-
T(),
|
|
5116
|
+
T(), A = !0;
|
|
5112
5117
|
}
|
|
5113
5118
|
};
|
|
5114
5119
|
if (!Ua(l, c))
|
|
5115
5120
|
return D;
|
|
5116
|
-
D.setOptions(M).then(function(
|
|
5117
|
-
!
|
|
5121
|
+
D.setOptions(M).then(function(L) {
|
|
5122
|
+
!A && M.onFirstUpdate && M.onFirstUpdate(L);
|
|
5118
5123
|
});
|
|
5119
|
-
function
|
|
5120
|
-
I.orderedModifiers.forEach(function(
|
|
5121
|
-
var
|
|
5122
|
-
if (typeof
|
|
5123
|
-
var y =
|
|
5124
|
+
function N() {
|
|
5125
|
+
I.orderedModifiers.forEach(function(L) {
|
|
5126
|
+
var E = L.name, C = L.options, f = C === void 0 ? {} : C, p = L.effect;
|
|
5127
|
+
if (typeof p == "function") {
|
|
5128
|
+
var y = p({
|
|
5124
5129
|
state: I,
|
|
5125
|
-
name:
|
|
5130
|
+
name: E,
|
|
5126
5131
|
instance: D,
|
|
5127
5132
|
options: f
|
|
5128
5133
|
}), j = function() {
|
|
@@ -5132,8 +5137,8 @@ function yc(t) {
|
|
|
5132
5137
|
});
|
|
5133
5138
|
}
|
|
5134
5139
|
function T() {
|
|
5135
|
-
g.forEach(function(
|
|
5136
|
-
return
|
|
5140
|
+
g.forEach(function(L) {
|
|
5141
|
+
return L();
|
|
5137
5142
|
}), g = [];
|
|
5138
5143
|
}
|
|
5139
5144
|
return D;
|
|
@@ -5244,14 +5249,14 @@ var bc = [], Rc = function(e, n, i) {
|
|
|
5244
5249
|
enabled: !0,
|
|
5245
5250
|
phase: "write",
|
|
5246
5251
|
fn: function(D) {
|
|
5247
|
-
var
|
|
5252
|
+
var N = D.state, T = Object.keys(N.elements);
|
|
5248
5253
|
So.flushSync(function() {
|
|
5249
5254
|
c({
|
|
5250
|
-
styles: pa(T.map(function(
|
|
5251
|
-
return [
|
|
5255
|
+
styles: pa(T.map(function(L) {
|
|
5256
|
+
return [L, N.styles[L] || {}];
|
|
5252
5257
|
})),
|
|
5253
|
-
attributes: pa(T.map(function(
|
|
5254
|
-
return [
|
|
5258
|
+
attributes: pa(T.map(function(L) {
|
|
5259
|
+
return [L, N.attributes[L]];
|
|
5255
5260
|
}))
|
|
5256
5261
|
});
|
|
5257
5262
|
});
|
|
@@ -5259,7 +5264,7 @@ var bc = [], Rc = function(e, n, i) {
|
|
|
5259
5264
|
requires: ["computeStyles"]
|
|
5260
5265
|
};
|
|
5261
5266
|
}, []), I = Et.useMemo(function() {
|
|
5262
|
-
var
|
|
5267
|
+
var A = {
|
|
5263
5268
|
onFirstUpdate: r.onFirstUpdate,
|
|
5264
5269
|
placement: r.placement,
|
|
5265
5270
|
strategy: r.strategy,
|
|
@@ -5268,13 +5273,13 @@ var bc = [], Rc = function(e, n, i) {
|
|
|
5268
5273
|
enabled: !1
|
|
5269
5274
|
}])
|
|
5270
5275
|
};
|
|
5271
|
-
return vc(a.current,
|
|
5276
|
+
return vc(a.current, A) ? a.current || A : (a.current = A, A);
|
|
5272
5277
|
}, [r.onFirstUpdate, r.placement, r.strategy, r.modifiers, M]), g = Et.useRef();
|
|
5273
5278
|
return Ca(function() {
|
|
5274
5279
|
g.current && g.current.setOptions(I);
|
|
5275
5280
|
}, [I]), Ca(function() {
|
|
5276
5281
|
if (!(e == null || n == null)) {
|
|
5277
|
-
var
|
|
5282
|
+
var A = i.createPopper || fc, D = A(e, n, I);
|
|
5278
5283
|
return g.current = D, function() {
|
|
5279
5284
|
D.destroy(), g.current = null;
|
|
5280
5285
|
};
|
|
@@ -5402,8 +5407,8 @@ function Yc({
|
|
|
5402
5407
|
function o(c) {
|
|
5403
5408
|
return n ? {} : {
|
|
5404
5409
|
onClick: (I) => {
|
|
5405
|
-
var g,
|
|
5406
|
-
t === "click" && i(!e), (
|
|
5410
|
+
var g, A;
|
|
5411
|
+
t === "click" && i(!e), (A = (g = c.props) == null ? void 0 : g.onClick) == null || A.call(g, I);
|
|
5407
5412
|
},
|
|
5408
5413
|
onTouchStart: () => {
|
|
5409
5414
|
t === "hover" && i(!0);
|
|
@@ -5432,32 +5437,32 @@ const aa = Yi((t, e) => {
|
|
|
5432
5437
|
trigger: a = "hover",
|
|
5433
5438
|
disabled: r = !1,
|
|
5434
5439
|
teleported: o = !0
|
|
5435
|
-
} = t, [l, c] = m(null), [M, I] = m(null), [g,
|
|
5440
|
+
} = t, [l, c] = m(null), [M, I] = m(null), [g, A] = m(null), D = De(null), N = De(void 0), T = De(null), { styles: L } = Rc(l, M, {
|
|
5436
5441
|
modifiers: [{ name: "arrow", options: { element: g } }],
|
|
5437
5442
|
placement: "top"
|
|
5438
|
-
}), [
|
|
5443
|
+
}), [E, C] = Bc({
|
|
5439
5444
|
props: t,
|
|
5440
5445
|
key: "visible",
|
|
5441
5446
|
onChange: t.onVisibleChange,
|
|
5442
5447
|
defaultOptions: { visible: !1 }
|
|
5443
5448
|
});
|
|
5444
|
-
Qc([T], () =>
|
|
5449
|
+
Qc([T], () => E && C(!1));
|
|
5445
5450
|
const {
|
|
5446
5451
|
getTriggerNode: f,
|
|
5447
|
-
getPopupProps:
|
|
5452
|
+
getPopupProps: p
|
|
5448
5453
|
} = Yc({
|
|
5449
5454
|
trigger: a,
|
|
5450
5455
|
disabled: r,
|
|
5451
|
-
visible:
|
|
5452
|
-
onVisibleChange:
|
|
5456
|
+
visible: E,
|
|
5457
|
+
onVisibleChange: C
|
|
5453
5458
|
}), y = Ne(() => {
|
|
5454
|
-
clearTimeout(
|
|
5459
|
+
clearTimeout(N.current), N.current = setTimeout(() => {
|
|
5455
5460
|
var B;
|
|
5456
5461
|
return (B = M == null ? void 0 : M.update) == null ? void 0 : B.call(M);
|
|
5457
5462
|
}, 0);
|
|
5458
|
-
}, [M,
|
|
5459
|
-
kc(l, y), Q(() => () => clearTimeout(
|
|
5460
|
-
const j = Ae.cloneElement(f(n), { ref: c }), z = /* @__PURE__ */ w("div", { style: { ...
|
|
5463
|
+
}, [M, L]);
|
|
5464
|
+
kc(l, y), Q(() => () => clearTimeout(N.current), []);
|
|
5465
|
+
const j = Ae.cloneElement(f(n), { ref: c }), z = /* @__PURE__ */ w("div", { style: { ...L.popper, paddingBottom: "10px" }, ref: I, ...p(), children: [
|
|
5461
5466
|
/* @__PURE__ */ u(
|
|
5462
5467
|
"div",
|
|
5463
5468
|
{
|
|
@@ -5468,11 +5473,11 @@ const aa = Yi((t, e) => {
|
|
|
5468
5473
|
children: i
|
|
5469
5474
|
}
|
|
5470
5475
|
),
|
|
5471
|
-
/* @__PURE__ */ u("div", { ref: g, style:
|
|
5476
|
+
/* @__PURE__ */ u("div", { ref: g, style: L.arrow, className: `${ze}-popup__arrow` })
|
|
5472
5477
|
] });
|
|
5473
5478
|
return /* @__PURE__ */ w("div", { ref: T, children: [
|
|
5474
5479
|
j,
|
|
5475
|
-
|
|
5480
|
+
E && (o ? /* @__PURE__ */ u(fn, { children: z }) : z)
|
|
5476
5481
|
] });
|
|
5477
5482
|
}), Gc = "_btn_1wi4a_31", Zc = "_select_1wi4a_50", ot = {
|
|
5478
5483
|
"device-selector-container": "_device-selector-container_1wi4a_1",
|
|
@@ -5487,18 +5492,18 @@ function ra(t) {
|
|
|
5487
5492
|
const { deviceType: e, isShowControlBtn: n = !0 } = t, { localUserInfo: i } = x(ye), { isMuteSpeaker: a } = x(H), [{ deviceList: r, currentDeviceId: o }, { setCurrentDeviceId: l }] = ei(e), { t: c } = oe(), M = b([
|
|
5488
5493
|
ot["device-item"],
|
|
5489
5494
|
ot["control-item"]
|
|
5490
|
-
]), I = async (
|
|
5495
|
+
]), I = async (N) => {
|
|
5491
5496
|
try {
|
|
5492
5497
|
await V.switchDevice({
|
|
5493
5498
|
deviceType: e,
|
|
5494
|
-
deviceId:
|
|
5495
|
-
}), l(
|
|
5499
|
+
deviceId: N
|
|
5500
|
+
}), l(N);
|
|
5496
5501
|
} catch (T) {
|
|
5497
5502
|
console.debug(T);
|
|
5498
5503
|
}
|
|
5499
5504
|
}, g = async () => {
|
|
5500
5505
|
e === Me.CAMERA && (i != null && i.isVideoAvailable ? await V.closeCamera() : await V.openCamera("localVideo")), e === Me.MICROPHONE && (i != null && i.isAudioAvailable ? await V.closeMicrophone() : await V.openMicrophone()), e === Me.SPEAKER && (a ? await V.unMuteSpeaker() : await V.muteSpeaker());
|
|
5501
|
-
},
|
|
5506
|
+
}, A = () => {
|
|
5502
5507
|
if (e === Me.CAMERA)
|
|
5503
5508
|
return i != null && i.isVideoAvailable ? c("close camera") : c("open camera");
|
|
5504
5509
|
if (e === Me.MICROPHONE)
|
|
@@ -5507,8 +5512,8 @@ function ra(t) {
|
|
|
5507
5512
|
return c(a ? "open speaker" : "close speaker");
|
|
5508
5513
|
};
|
|
5509
5514
|
function D() {
|
|
5510
|
-
return (r == null ? void 0 : r.length) > 0 ? r == null ? void 0 : r.map((
|
|
5511
|
-
const { deviceId: T, label:
|
|
5515
|
+
return (r == null ? void 0 : r.length) > 0 ? r == null ? void 0 : r.map((N) => {
|
|
5516
|
+
const { deviceId: T, label: L } = N;
|
|
5512
5517
|
return /* @__PURE__ */ u(
|
|
5513
5518
|
"div",
|
|
5514
5519
|
{
|
|
@@ -5517,7 +5522,7 @@ function ra(t) {
|
|
|
5517
5522
|
{ [ot.select]: o === T }
|
|
5518
5523
|
]),
|
|
5519
5524
|
onClick: () => I(T),
|
|
5520
|
-
children:
|
|
5525
|
+
children: L
|
|
5521
5526
|
},
|
|
5522
5527
|
T
|
|
5523
5528
|
);
|
|
@@ -5525,7 +5530,7 @@ function ra(t) {
|
|
|
5525
5530
|
}
|
|
5526
5531
|
return /* @__PURE__ */ w("div", { className: ot["device-selector-container"], children: [
|
|
5527
5532
|
/* @__PURE__ */ u("div", { className: ot["scroll-container"], children: /* @__PURE__ */ u("div", { className: ot["scroll-content"], children: D() }) }),
|
|
5528
|
-
n && /* @__PURE__ */ u("div", { onClick: g, className: M, children:
|
|
5533
|
+
n && /* @__PURE__ */ u("div", { onClick: g, className: M, children: A() })
|
|
5529
5534
|
] });
|
|
5530
5535
|
}
|
|
5531
5536
|
const Fc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00IDE1LjYyNVYxMy43NUg2VjE1LjYyNUM2IDIwLjU5NTYgMTAuMDI5NCAyNC42MjUgMTUgMjQuNjI1QzE5Ljk3MDYgMjQuNjI1IDI0IDIwLjU5NTYgMjQgMTUuNjI1VjEzLjc1SDI2VjE1LjYyNUMyNiAyMS4zNjMgMjEuNjA2NSAyNi4wNzQ5IDE2IDI2LjU4MDJWMzBIMTRWMjYuNTgwMkM4LjM5MzUgMjYuMDc0OSA0IDIxLjM2MyA0IDE1LjYyNVoiIGZpbGw9IiMyMjI2MkUiLz4KPHJlY3QgeD0iOC43NSIgeT0iMS4yNSIgd2lkdGg9IjEyLjUiIGhlaWdodD0iMjAuNjI1IiByeD0iNi4yNSIgZmlsbD0iIzIyMjYyRSIvPgo8L3N2Zz4K", Pc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljc1IDcuNUM4Ljc1IDQuMDQ4MjIgMTEuNTQ4MiAxLjI1IDE1IDEuMjVDMTYuOTc1OCAxLjI1IDE4LjczNzYgMi4xNjY4NiAxOS44ODI5IDMuNTk4MzRMOC44NzI0OCAxNi44NjI0QzguNzkyMTUgMTYuNDYyNCA4Ljc1IDE2LjA0ODYgOC43NSAxNS42MjVWNy41Wk02LjgwNTY3IDE5LjM1MjNDNi4yODgyNSAxOC4yMTY2IDYgMTYuOTU0NCA2IDE1LjYyNVYxMy43NUg0VjE1LjYyNUM0IDE3LjU4ODIgNC41MTQzMSAxOS40MzEzIDUuNDE1NTUgMjEuMDI2OUw2LjgwNTY3IDE5LjM1MjNaTTkuMjExNzcgMjQuOTgwN0wxMC41MDQ0IDIzLjQyMzVDMTEuODI3MiAyNC4xODc3IDEzLjM2MjUgMjQuNjI1IDE1IDI0LjYyNUMxOS45NzA2IDI0LjYyNSAyNCAyMC41OTU2IDI0IDE1LjYyNVYxMy43NUgyNlYxNS42MjVDMjYgMjEuMzYzIDIxLjYwNjUgMjYuMDc0OSAxNiAyNi41ODAyVjMwSDE0VjI2LjU4MDJDMTIuMjU0MyAyNi40MjI4IDEwLjYyNjIgMjUuODU3NyA5LjIxMTc3IDI0Ljk4MDdaTTEyLjI5ODMgMjEuMjYyNUwyMS4yNSAxMC40Nzg0VjE1LjYyNUMyMS4yNSAxOS4wNzY4IDE4LjQ1MTggMjEuODc1IDE1IDIxLjg3NUMxNC4wMzIzIDIxLjg3NSAxMy4xMTYgMjEuNjU1MSAxMi4yOTgzIDIxLjI2MjVaIiBmaWxsPSJ3aGl0ZSIgc3R5bGU9ImZpbGw6d2hpdGU7ZmlsbDp3aGl0ZTtmaWxsLW9wYWNpdHk6MTsiLz4KPHBhdGggZD0iTTYuNDE4OTUgMjQuMDg0TDIyLjA5MzkgNS4yMDkzOCIgc3Ryb2tlPSJ3aGl0ZSIgc3R5bGU9InN0cm9rZTp3aGl0ZTtzdHJva2U6d2hpdGU7c3Ryb2tlLW9wYWNpdHk6MTsiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K";
|
|
@@ -6298,29 +6303,29 @@ function AM(t) {
|
|
|
6298
6303
|
[He.groupcall]: n,
|
|
6299
6304
|
[He["show-panel-background"]]: o
|
|
6300
6305
|
}
|
|
6301
|
-
]), M = () => e.map((
|
|
6302
|
-
const
|
|
6306
|
+
]), M = () => e.map((N, T) => {
|
|
6307
|
+
const L = T === 0 ? N.filter((C) => {
|
|
6303
6308
|
var f;
|
|
6304
|
-
return ((f =
|
|
6305
|
-
}) :
|
|
6309
|
+
return ((f = C == null ? void 0 : C.props) == null ? void 0 : f.show) !== !1;
|
|
6310
|
+
}) : N;
|
|
6306
6311
|
return /* @__PURE__ */ u(
|
|
6307
6312
|
Bt,
|
|
6308
6313
|
{
|
|
6309
6314
|
style: { marginTop: T === 1 ? "2.4vh" : 0 },
|
|
6310
|
-
children: (() =>
|
|
6311
|
-
const
|
|
6315
|
+
children: (() => L.map((C, f) => {
|
|
6316
|
+
const p = L.length > 2 ? f === 0 ? "start" : f === L.length - 1 ? "end" : "center" : "center", { component: y, props: j } = C, z = {};
|
|
6312
6317
|
if ((j == null ? void 0 : j.show) === !1) {
|
|
6313
6318
|
if (T === 0)
|
|
6314
6319
|
return;
|
|
6315
6320
|
z.visibility = "hidden";
|
|
6316
6321
|
}
|
|
6317
|
-
const O = 12 /
|
|
6322
|
+
const O = 12 / L.length, B = Hr(j, "show"), Y = Ae.createElement(y, { isMobile: !0, ...B });
|
|
6318
6323
|
return /* @__PURE__ */ u(
|
|
6319
6324
|
Qe,
|
|
6320
6325
|
{
|
|
6321
6326
|
style: { overflow: "visible", ...j == null ? void 0 : j.style, ...z },
|
|
6322
6327
|
span: O,
|
|
6323
|
-
justify:
|
|
6328
|
+
justify: p,
|
|
6324
6329
|
children: Y
|
|
6325
6330
|
},
|
|
6326
6331
|
`col-${f}`
|
|
@@ -6332,7 +6337,7 @@ function AM(t) {
|
|
|
6332
6337
|
}), I = () => {
|
|
6333
6338
|
r(!a);
|
|
6334
6339
|
}, g = () => {
|
|
6335
|
-
const
|
|
6340
|
+
const N = a ? /* @__PURE__ */ u(W, { url: IM }) : /* @__PURE__ */ u(W, { url: uM });
|
|
6336
6341
|
return /* @__PURE__ */ u(
|
|
6337
6342
|
be,
|
|
6338
6343
|
{
|
|
@@ -6340,28 +6345,28 @@ function AM(t) {
|
|
|
6340
6345
|
He["toggle-panel-btn"],
|
|
6341
6346
|
{ [He.close]: !a }
|
|
6342
6347
|
]),
|
|
6343
|
-
icon:
|
|
6348
|
+
icon: N,
|
|
6344
6349
|
onClick: I
|
|
6345
6350
|
}
|
|
6346
6351
|
);
|
|
6347
|
-
},
|
|
6348
|
-
const
|
|
6349
|
-
return /* @__PURE__ */ u(Bt, { children: (() =>
|
|
6350
|
-
const { component:
|
|
6352
|
+
}, A = () => {
|
|
6353
|
+
const N = e.flat();
|
|
6354
|
+
return /* @__PURE__ */ u(Bt, { children: (() => N.map((L, E) => {
|
|
6355
|
+
const { component: C, props: f } = L;
|
|
6351
6356
|
if ((f == null ? void 0 : f.show) === !1)
|
|
6352
6357
|
return;
|
|
6353
|
-
const
|
|
6358
|
+
const p = Ae.createElement(C, { isMobile: !0, size: "small", showText: !1 }), y = 12 / N.length;
|
|
6354
6359
|
return /* @__PURE__ */ u(
|
|
6355
6360
|
Qe,
|
|
6356
6361
|
{
|
|
6357
6362
|
style: { overflow: "visible" },
|
|
6358
6363
|
span: y,
|
|
6359
|
-
children:
|
|
6364
|
+
children: p
|
|
6360
6365
|
},
|
|
6361
|
-
|
|
6366
|
+
E
|
|
6362
6367
|
);
|
|
6363
6368
|
}))() });
|
|
6364
|
-
}, D = () => n && !a ?
|
|
6369
|
+
}, D = () => n && !a ? A() : M();
|
|
6365
6370
|
return /* @__PURE__ */ w("div", { className: c, children: [
|
|
6366
6371
|
o && g(),
|
|
6367
6372
|
/* @__PURE__ */ u(
|
|
@@ -6387,8 +6392,8 @@ function TM(t) {
|
|
|
6387
6392
|
const { component: c, props: M } = o;
|
|
6388
6393
|
if ((M == null ? void 0 : M.show) === !1)
|
|
6389
6394
|
return;
|
|
6390
|
-
const I = Hr(t, "show"), g = Ae.createElement(c, { ...I }),
|
|
6391
|
-
return /* @__PURE__ */ u(Qe, { style: { justifyContent: "center" }, span:
|
|
6395
|
+
const I = Hr(t, "show"), g = Ae.createElement(c, { ...I }), A = Math.floor(12 / i.length);
|
|
6396
|
+
return /* @__PURE__ */ u(Qe, { style: { justifyContent: "center" }, span: A, children: g }, l);
|
|
6392
6397
|
}))() }, a));
|
|
6393
6398
|
return /* @__PURE__ */ u("div", { className: DM["button-panel-pc-container"], children: n() });
|
|
6394
6399
|
}
|
|
@@ -6443,8 +6448,8 @@ function Jr() {
|
|
|
6443
6448
|
} = x(H), { localUserInfo: r } = x(ye), o = hM(), [
|
|
6444
6449
|
l,
|
|
6445
6450
|
c
|
|
6446
|
-
] = m(h.getData(d.CALL, s.IS_CLICKABLE)), M = X(() => l, [l]), I = (
|
|
6447
|
-
c(
|
|
6451
|
+
] = m(h.getData(d.CALL, s.IS_CLICKABLE)), M = X(() => l, [l]), I = (N) => {
|
|
6452
|
+
c(N);
|
|
6448
6453
|
};
|
|
6449
6454
|
Q(() => (h.watch(
|
|
6450
6455
|
d.CALL,
|
|
@@ -6456,24 +6461,24 @@ function Jr() {
|
|
|
6456
6461
|
{ [s.IS_CLICKABLE]: I }
|
|
6457
6462
|
);
|
|
6458
6463
|
}), []);
|
|
6459
|
-
const g = (
|
|
6460
|
-
const T = In(
|
|
6464
|
+
const g = (N) => {
|
|
6465
|
+
const T = In(N);
|
|
6461
6466
|
return ln(T, "pc.singleCall.video.calling[0][2]", { component: kt, props: {} }), ln(T, "pc.singleCall.video.accept[0][1]", { component: kt, props: {} }), ln(T, "pc.singleCall.video.connected[0][3]", { component: kt, props: {} }), ln(T, "pc.groupCall.video.calling[0][2]", { component: kt, props: {} }), ln(T, "pc.groupCall.video.connected[0][2]", { component: kt, props: {} }), T;
|
|
6462
|
-
},
|
|
6463
|
-
const
|
|
6464
|
-
return T ? (sn(
|
|
6467
|
+
}, A = (N, T, L) => {
|
|
6468
|
+
const E = In(N);
|
|
6469
|
+
return T ? (sn(E, "h5.singleCall.video.connected[1][2].props.show", !0), L && g(E)) : (sn(E, "h5.singleCall.video.connected[1][2].props.show", !1), L && (sn(E, "pc.singleCall.video.connected[0][3].props.show", !1), sn(E, "pc.groupCall.video.connected[0][2].props.show", !1))), E;
|
|
6465
6470
|
}, D = X(() => {
|
|
6466
|
-
var
|
|
6467
|
-
let
|
|
6468
|
-
a && (
|
|
6469
|
-
|
|
6471
|
+
var p, y, j;
|
|
6472
|
+
let N = In(vi);
|
|
6473
|
+
a && (N = g(vi)), t === R.CONNECTED && (N = A(
|
|
6474
|
+
N,
|
|
6470
6475
|
r == null ? void 0 : r.isVideoAvailable,
|
|
6471
6476
|
a
|
|
6472
6477
|
)), o == null || o.forEach((z) => {
|
|
6473
6478
|
const { path: O, value: B } = z;
|
|
6474
|
-
sn(
|
|
6479
|
+
sn(N, O, B);
|
|
6475
6480
|
});
|
|
6476
|
-
const T = U.isPC ? "pc" : "h5",
|
|
6481
|
+
const T = U.isPC ? "pc" : "h5", L = e ? "groupCall" : "singleCall", E = i === F.AUDIO ? "audio" : "video", C = t === R.CALLING ? n === te.CALLER ? "calling" : "accept" : t, f = ((j = (y = (p = N == null ? void 0 : N[T]) == null ? void 0 : p[L]) == null ? void 0 : y[E]) == null ? void 0 : j[C]) || [];
|
|
6477
6482
|
return f.length === 1 && f.unshift([]), f;
|
|
6478
6483
|
}, [
|
|
6479
6484
|
e,
|
|
@@ -6570,15 +6575,15 @@ function Pt(t) {
|
|
|
6570
6575
|
tip: M = "",
|
|
6571
6576
|
volume: I,
|
|
6572
6577
|
isMute: g = !1,
|
|
6573
|
-
showAvatar:
|
|
6578
|
+
showAvatar: A = !0,
|
|
6574
6579
|
showUsername: D = !0,
|
|
6575
|
-
showOverlayer:
|
|
6580
|
+
showOverlayer: N,
|
|
6576
6581
|
showBackground: T = !0,
|
|
6577
|
-
showLoading:
|
|
6578
|
-
showVolumn:
|
|
6579
|
-
style:
|
|
6582
|
+
showLoading: L = !0,
|
|
6583
|
+
showVolumn: E = !1,
|
|
6584
|
+
style: C = {},
|
|
6580
6585
|
showTip: f = !0,
|
|
6581
|
-
background:
|
|
6586
|
+
background: p = "",
|
|
6582
6587
|
fit: y,
|
|
6583
6588
|
onError: j
|
|
6584
6589
|
} = t, { isFloat: z } = x(H), O = b([
|
|
@@ -6591,9 +6596,9 @@ function Pt(t) {
|
|
|
6591
6596
|
]), B = (Y) => {
|
|
6592
6597
|
j == null || j(Y);
|
|
6593
6598
|
};
|
|
6594
|
-
return /* @__PURE__ */ u("div", { className: O, style:
|
|
6599
|
+
return /* @__PURE__ */ u("div", { className: O, style: C, children: /* @__PURE__ */ w(Hi, { showLoading: L, size: 40, theme: o, showOverlayer: !1, children: [
|
|
6595
6600
|
/* @__PURE__ */ w("div", { className: Le["user-info-container"], children: [
|
|
6596
|
-
|
|
6601
|
+
A && /* @__PURE__ */ u(
|
|
6597
6602
|
Xr,
|
|
6598
6603
|
{
|
|
6599
6604
|
className: b([
|
|
@@ -6617,7 +6622,7 @@ function Pt(t) {
|
|
|
6617
6622
|
children: n
|
|
6618
6623
|
}
|
|
6619
6624
|
),
|
|
6620
|
-
|
|
6625
|
+
E && /* @__PURE__ */ u(Kr, { volume: I, close: g, style: { marginLeft: "10px" } })
|
|
6621
6626
|
] }),
|
|
6622
6627
|
f && /* @__PURE__ */ u("div", { className: Le.tip, children: M }),
|
|
6623
6628
|
l
|
|
@@ -6625,9 +6630,9 @@ function Pt(t) {
|
|
|
6625
6630
|
T && /* @__PURE__ */ u(
|
|
6626
6631
|
mr,
|
|
6627
6632
|
{
|
|
6628
|
-
showOverlayer:
|
|
6633
|
+
showOverlayer: N,
|
|
6629
6634
|
className: b({ [Le.blur]: r }),
|
|
6630
|
-
background:
|
|
6635
|
+
background: p,
|
|
6631
6636
|
fit: y,
|
|
6632
6637
|
defaultSrc: de,
|
|
6633
6638
|
onError: B
|
|
@@ -6684,20 +6689,20 @@ function RM(t) {
|
|
|
6684
6689
|
`${G}-togglewindow-container`,
|
|
6685
6690
|
n
|
|
6686
6691
|
]), I = X(() => {
|
|
6687
|
-
const g = [],
|
|
6688
|
-
o && Ae.Children.map(o, (
|
|
6689
|
-
var T,
|
|
6690
|
-
if (((T =
|
|
6692
|
+
const g = [], A = [];
|
|
6693
|
+
o && Ae.Children.map(o, (N) => {
|
|
6694
|
+
var T, L;
|
|
6695
|
+
if (((T = N == null ? void 0 : N.type) == null ? void 0 : T.displayName) === "ToggleWindowItem" && g.length < 2 && (g.push(Ae.cloneElement(N, { isMobile: i, showSmallWindow: a })), A.push((L = N == null ? void 0 : N.props) == null ? void 0 : L.value)), g.length >= 2)
|
|
6691
6696
|
return null;
|
|
6692
6697
|
});
|
|
6693
6698
|
const D = () => {
|
|
6694
|
-
c((
|
|
6695
|
-
const T = bM(
|
|
6699
|
+
c((N) => {
|
|
6700
|
+
const T = bM(A, N);
|
|
6696
6701
|
return r == null || r(T), T;
|
|
6697
6702
|
});
|
|
6698
6703
|
};
|
|
6699
6704
|
return g.map(
|
|
6700
|
-
(
|
|
6705
|
+
(N) => Ae.cloneElement(N, { updateBigWindow: D })
|
|
6701
6706
|
);
|
|
6702
6707
|
}, [o]);
|
|
6703
6708
|
return /* @__PURE__ */ u("div", { className: M, children: /* @__PURE__ */ u($r.Provider, { value: { bigWindow: l }, children: I }) });
|
|
@@ -7241,31 +7246,31 @@ function uo(t, e, n, i, a, r) {
|
|
|
7241
7246
|
var M = r.get(t), I = r.get(e);
|
|
7242
7247
|
if (M && I)
|
|
7243
7248
|
return M == e && I == t;
|
|
7244
|
-
var g = -1,
|
|
7249
|
+
var g = -1, A = !0, D = n & jd ? new Kn() : void 0;
|
|
7245
7250
|
for (r.set(t, e), r.set(e, t); ++g < l; ) {
|
|
7246
|
-
var
|
|
7251
|
+
var N = t[g], T = e[g];
|
|
7247
7252
|
if (i)
|
|
7248
|
-
var
|
|
7249
|
-
if (
|
|
7250
|
-
if (
|
|
7253
|
+
var L = o ? i(T, N, g, e, t, r) : i(N, T, g, t, e, r);
|
|
7254
|
+
if (L !== void 0) {
|
|
7255
|
+
if (L)
|
|
7251
7256
|
continue;
|
|
7252
|
-
|
|
7257
|
+
A = !1;
|
|
7253
7258
|
break;
|
|
7254
7259
|
}
|
|
7255
7260
|
if (D) {
|
|
7256
|
-
if (!pd(e, function(
|
|
7257
|
-
if (!Cd(D,
|
|
7258
|
-
return D.push(
|
|
7261
|
+
if (!pd(e, function(E, C) {
|
|
7262
|
+
if (!Cd(D, C) && (N === E || a(N, E, n, i, r)))
|
|
7263
|
+
return D.push(C);
|
|
7259
7264
|
})) {
|
|
7260
|
-
|
|
7265
|
+
A = !1;
|
|
7261
7266
|
break;
|
|
7262
7267
|
}
|
|
7263
|
-
} else if (!(
|
|
7264
|
-
|
|
7268
|
+
} else if (!(N === T || a(N, T, n, i, r))) {
|
|
7269
|
+
A = !1;
|
|
7265
7270
|
break;
|
|
7266
7271
|
}
|
|
7267
7272
|
}
|
|
7268
|
-
return r.delete(t), r.delete(e),
|
|
7273
|
+
return r.delete(t), r.delete(e), A;
|
|
7269
7274
|
}
|
|
7270
7275
|
function fd(t) {
|
|
7271
7276
|
var e = -1, n = Array(t.size);
|
|
@@ -7321,29 +7326,29 @@ function Fd(t, e, n, i, a, r) {
|
|
|
7321
7326
|
if (c != I && !o)
|
|
7322
7327
|
return !1;
|
|
7323
7328
|
for (var g = c; g--; ) {
|
|
7324
|
-
var
|
|
7325
|
-
if (!(o ?
|
|
7329
|
+
var A = l[g];
|
|
7330
|
+
if (!(o ? A in e : Zd.call(e, A)))
|
|
7326
7331
|
return !1;
|
|
7327
7332
|
}
|
|
7328
|
-
var D = r.get(t),
|
|
7329
|
-
if (D &&
|
|
7330
|
-
return D == e &&
|
|
7333
|
+
var D = r.get(t), N = r.get(e);
|
|
7334
|
+
if (D && N)
|
|
7335
|
+
return D == e && N == t;
|
|
7331
7336
|
var T = !0;
|
|
7332
7337
|
r.set(t, e), r.set(e, t);
|
|
7333
|
-
for (var
|
|
7334
|
-
|
|
7335
|
-
var
|
|
7338
|
+
for (var L = o; ++g < c; ) {
|
|
7339
|
+
A = l[g];
|
|
7340
|
+
var E = t[A], C = e[A];
|
|
7336
7341
|
if (i)
|
|
7337
|
-
var f = o ? i(
|
|
7338
|
-
if (!(f === void 0 ?
|
|
7342
|
+
var f = o ? i(C, E, A, e, t, r) : i(E, C, A, t, e, r);
|
|
7343
|
+
if (!(f === void 0 ? E === C || a(E, C, n, i, r) : f)) {
|
|
7339
7344
|
T = !1;
|
|
7340
7345
|
break;
|
|
7341
7346
|
}
|
|
7342
|
-
|
|
7347
|
+
L || (L = A == "constructor");
|
|
7343
7348
|
}
|
|
7344
|
-
if (T && !
|
|
7345
|
-
var
|
|
7346
|
-
|
|
7349
|
+
if (T && !L) {
|
|
7350
|
+
var p = t.constructor, y = e.constructor;
|
|
7351
|
+
p != y && "constructor" in t && "constructor" in e && !(typeof p == "function" && p instanceof p && typeof y == "function" && y instanceof y) && (T = !1);
|
|
7347
7352
|
}
|
|
7348
7353
|
return r.delete(t), r.delete(e), T;
|
|
7349
7354
|
}
|
|
@@ -7351,22 +7356,22 @@ var Pd = 1, Xa = "[object Arguments]", Ka = "[object Array]", _n = "[object Obje
|
|
|
7351
7356
|
function Hd(t, e, n, i, a, r) {
|
|
7352
7357
|
var o = Xn(t), l = Xn(e), c = o ? Ka : Wa(t), M = l ? Ka : Wa(e);
|
|
7353
7358
|
c = c == Xa ? _n : c, M = M == Xa ? _n : M;
|
|
7354
|
-
var I = c == _n, g = M == _n,
|
|
7355
|
-
if (
|
|
7359
|
+
var I = c == _n, g = M == _n, A = c == M;
|
|
7360
|
+
if (A && _i(t)) {
|
|
7356
7361
|
if (!_i(e))
|
|
7357
7362
|
return !1;
|
|
7358
7363
|
o = !0, I = !1;
|
|
7359
7364
|
}
|
|
7360
|
-
if (
|
|
7365
|
+
if (A && !I)
|
|
7361
7366
|
return r || (r = new ut()), o || Mo(t) ? uo(t, e, n, i, a, r) : Bd(t, e, c, n, i, a, r);
|
|
7362
7367
|
if (!(n & Pd)) {
|
|
7363
|
-
var D = I && $a.call(t, "__wrapped__"),
|
|
7364
|
-
if (D ||
|
|
7365
|
-
var T = D ? t.value() : t,
|
|
7366
|
-
return r || (r = new ut()), a(T,
|
|
7368
|
+
var D = I && $a.call(t, "__wrapped__"), N = g && $a.call(e, "__wrapped__");
|
|
7369
|
+
if (D || N) {
|
|
7370
|
+
var T = D ? t.value() : t, L = N ? e.value() : e;
|
|
7371
|
+
return r || (r = new ut()), a(T, L, n, i, r);
|
|
7367
7372
|
}
|
|
7368
7373
|
}
|
|
7369
|
-
return
|
|
7374
|
+
return A ? (r || (r = new ut()), Fd(t, e, n, i, a, r)) : !1;
|
|
7370
7375
|
}
|
|
7371
7376
|
function Io(t, e, n, i, a) {
|
|
7372
7377
|
return t === e ? !0 : t == null || e == null || !En(t) && !En(e) ? t !== t && e !== e : Hd(t, e, n, i, Io, a);
|
|
@@ -7426,27 +7431,27 @@ function Ao(t) {
|
|
|
7426
7431
|
renderLoading: I,
|
|
7427
7432
|
isLargeView: g = !1
|
|
7428
7433
|
} = t, {
|
|
7429
|
-
domId:
|
|
7434
|
+
domId: A,
|
|
7430
7435
|
isAudioAvailable: D,
|
|
7431
|
-
displayUserInfo:
|
|
7436
|
+
displayUserInfo: N
|
|
7432
7437
|
} = i, T = b([
|
|
7433
7438
|
c,
|
|
7434
7439
|
Jd["player-container"]
|
|
7435
|
-
]),
|
|
7436
|
-
return /* @__PURE__ */ w("div", { id:
|
|
7440
|
+
]), L = X(() => n ? U.isPC ? !0 : !!g : !1, [g, n]);
|
|
7441
|
+
return /* @__PURE__ */ w("div", { id: A, style: o, className: T, children: [
|
|
7437
7442
|
!M && (l == null ? void 0 : l({
|
|
7438
|
-
volume: e[
|
|
7443
|
+
volume: e[A],
|
|
7439
7444
|
isMute: !D
|
|
7440
7445
|
})),
|
|
7441
7446
|
M && (I == null ? void 0 : I()),
|
|
7442
7447
|
a && /* @__PURE__ */ u(
|
|
7443
7448
|
eo,
|
|
7444
7449
|
{
|
|
7445
|
-
volume: e[
|
|
7450
|
+
volume: e[A],
|
|
7446
7451
|
isSpkear: r,
|
|
7447
7452
|
isMute: !D,
|
|
7448
|
-
displayName:
|
|
7449
|
-
showUserName:
|
|
7453
|
+
displayName: N,
|
|
7454
|
+
showUserName: L
|
|
7450
7455
|
}
|
|
7451
7456
|
)
|
|
7452
7457
|
] });
|
|
@@ -7491,31 +7496,31 @@ const Kd = {
|
|
|
7491
7496
|
nick: M,
|
|
7492
7497
|
userId: I,
|
|
7493
7498
|
isAudioAvailable: g,
|
|
7494
|
-
isVideoAvailable:
|
|
7499
|
+
isVideoAvailable: A
|
|
7495
7500
|
}
|
|
7496
|
-
} = x(ye), D = x(Cn), { isGroupCall:
|
|
7501
|
+
} = x(ye), D = x(Cn), { isGroupCall: N } = x(H), T = Xd(), L = X(() => {
|
|
7497
7502
|
if (!T)
|
|
7498
7503
|
return;
|
|
7499
7504
|
const O = T.find((B) => B.userId === I);
|
|
7500
7505
|
return !!(O && O.quality >= 4);
|
|
7501
|
-
}, [T]),
|
|
7506
|
+
}, [T]), E = M || I, C = No(), f = b([
|
|
7502
7507
|
r,
|
|
7503
7508
|
Kd["pusher-container"]
|
|
7504
|
-
]),
|
|
7509
|
+
]), p = X(() => N ? U.isPC ? !0 : !!l : !1, [l, N]), y = !U.isPC && A && N && l && ((z = (j = D == null ? void 0 : D.button) == null ? void 0 : j.switchCamera) == null ? void 0 : z.show) !== !1;
|
|
7505
7510
|
return /* @__PURE__ */ w("div", { id: c, className: f, children: [
|
|
7506
7511
|
!e && (i == null ? void 0 : i()),
|
|
7507
7512
|
e && (n == null ? void 0 : n()),
|
|
7508
7513
|
o && /* @__PURE__ */ u(
|
|
7509
7514
|
eo,
|
|
7510
7515
|
{
|
|
7511
|
-
volume:
|
|
7516
|
+
volume: C[c],
|
|
7512
7517
|
isSpkear: a,
|
|
7513
7518
|
isMute: !g,
|
|
7514
|
-
displayName:
|
|
7519
|
+
displayName: E,
|
|
7515
7520
|
isMe: !0,
|
|
7516
|
-
showUserName:
|
|
7521
|
+
showUserName: p,
|
|
7517
7522
|
showSwitchCamera: y,
|
|
7518
|
-
showNetWorkStatus:
|
|
7523
|
+
showNetWorkStatus: L
|
|
7519
7524
|
}
|
|
7520
7525
|
)
|
|
7521
7526
|
] }, c);
|
|
@@ -7529,14 +7534,14 @@ function $d(t) {
|
|
|
7529
7534
|
userId: r,
|
|
7530
7535
|
classnames: o,
|
|
7531
7536
|
...l
|
|
7532
|
-
} = t, [c, M] = m("hidden"), I = mn(), { callType: g, isFloat:
|
|
7537
|
+
} = t, [c, M] = m("hidden"), I = mn(), { callType: g, isFloat: A } = x(H), D = X(() => g === F.AUDIO, [g]), [N, T] = m(!I[r]), [L, E] = m(I[r] ? "fill" : "cover"), [C, f] = m(I[r] || e), [p, y] = m(!1), j = b([
|
|
7533
7538
|
o
|
|
7534
7539
|
]);
|
|
7535
7540
|
Q(() => {
|
|
7536
|
-
M(D && !i || !D && !a ? "" : "hidden"),
|
|
7537
|
-
}, [
|
|
7541
|
+
M(D && !i || !D && !a ? "" : "hidden"), p || (T((D || !a) && !I[r]), E(I[r] ? "fill" : "cover"), f(I[r] || e || de));
|
|
7542
|
+
}, [A, i, D, a, I]);
|
|
7538
7543
|
const z = () => {
|
|
7539
|
-
y(!0),
|
|
7544
|
+
y(!0), E("cover");
|
|
7540
7545
|
};
|
|
7541
7546
|
return /* @__PURE__ */ u(
|
|
7542
7547
|
Pt,
|
|
@@ -7549,9 +7554,9 @@ function $d(t) {
|
|
|
7549
7554
|
showVolumn: U.isPC && g === F.AUDIO,
|
|
7550
7555
|
isMobile: !U.isPC,
|
|
7551
7556
|
isSmall: i,
|
|
7552
|
-
background:
|
|
7553
|
-
showOverlayer:
|
|
7554
|
-
fit:
|
|
7557
|
+
background: C,
|
|
7558
|
+
showOverlayer: N,
|
|
7559
|
+
fit: L,
|
|
7555
7560
|
style: { visibility: c, zIndex: 1 },
|
|
7556
7561
|
...l,
|
|
7557
7562
|
onError: z
|
|
@@ -7580,13 +7585,13 @@ const eg = "_pc_1hpym_11", tg = "_float_1hpym_27", At = {
|
|
|
7580
7585
|
function ng() {
|
|
7581
7586
|
const { remoteList: t, localUserInfo: e } = x(ye), { callType: n, callStatus: i, isFloat: a } = x(H), [r, o] = qd(), l = X(() => n === F.AUDIO, [n]), [c, M] = m(!1);
|
|
7582
7587
|
Q(() => {
|
|
7583
|
-
var
|
|
7584
|
-
(
|
|
7588
|
+
var N;
|
|
7589
|
+
(N = t == null ? void 0 : t[0]) != null && N.isEnter && M(!l);
|
|
7585
7590
|
}, [t, l]);
|
|
7586
|
-
function I(
|
|
7587
|
-
return /* @__PURE__ */ u($d, { ...
|
|
7591
|
+
function I(N) {
|
|
7592
|
+
return /* @__PURE__ */ u($d, { ...N });
|
|
7588
7593
|
}
|
|
7589
|
-
const g = X(() => a ? "#float" : "#single-container", [a]),
|
|
7594
|
+
const g = X(() => a ? "#float" : "#single-container", [a]), A = U.isPC && i === R.CONNECTED && !l && !a, D = b([
|
|
7590
7595
|
At["single-stream-container"],
|
|
7591
7596
|
{
|
|
7592
7597
|
[At.mobile]: !U.isPC,
|
|
@@ -7607,17 +7612,17 @@ function ng() {
|
|
|
7607
7612
|
{
|
|
7608
7613
|
loading: i === R.CALLING && (n === F.VIDEO ? !(e != null && e.isVideoAvailable) : !0),
|
|
7609
7614
|
renderAudioStream: () => {
|
|
7610
|
-
var
|
|
7615
|
+
var N, T, L;
|
|
7611
7616
|
return I({
|
|
7612
7617
|
isVideoAvailable: e.isVideoAvailable,
|
|
7613
|
-
avatar: l ? (
|
|
7618
|
+
avatar: l ? (N = t == null ? void 0 : t[0]) == null ? void 0 : N.avatar : e.avatar,
|
|
7614
7619
|
username: l ? (T = t == null ? void 0 : t[0]) == null ? void 0 : T.displayUserInfo : e.nick || e.userId,
|
|
7615
7620
|
isSmall: r !== Je.LOCAL,
|
|
7616
|
-
userId: l ? (
|
|
7621
|
+
userId: l ? (L = t == null ? void 0 : t[0]) == null ? void 0 : L.userId : e.userId,
|
|
7617
7622
|
classnames: At["single-call-audio-stream"]
|
|
7618
7623
|
});
|
|
7619
7624
|
},
|
|
7620
|
-
showStreamInfo:
|
|
7625
|
+
showStreamInfo: A
|
|
7621
7626
|
}
|
|
7622
7627
|
) }, Je.LOCAL),
|
|
7623
7628
|
/* @__PURE__ */ u(
|
|
@@ -7628,14 +7633,14 @@ function ng() {
|
|
|
7628
7633
|
children: t.length !== 0 && i === R.CONNECTED && /* @__PURE__ */ u(
|
|
7629
7634
|
Ao,
|
|
7630
7635
|
{
|
|
7631
|
-
renderAudioStream: (
|
|
7636
|
+
renderAudioStream: (N) => I({
|
|
7632
7637
|
isVideoAvailable: t[0].isVideoAvailable,
|
|
7633
7638
|
avatar: t[0].avatar,
|
|
7634
7639
|
username: t[0].displayUserInfo,
|
|
7635
7640
|
isSmall: r !== Je.REMOTE,
|
|
7636
7641
|
userId: t[0].userId,
|
|
7637
7642
|
classnames: At["single-call-audio-stream"],
|
|
7638
|
-
...
|
|
7643
|
+
...N
|
|
7639
7644
|
}),
|
|
7640
7645
|
showStreamInfo: U.isPC && !l && !a,
|
|
7641
7646
|
streamInfo: t[0]
|
|
@@ -7692,11 +7697,11 @@ const ig = "_mobile_1l7n2_12", ag = "_pulldown_1l7n2_1", ji = {
|
|
|
7692
7697
|
"avatar-item": "_avatar-item_1ew1v_43"
|
|
7693
7698
|
};
|
|
7694
7699
|
function sg(t) {
|
|
7695
|
-
const e = mn(), { remoteList: n } = t, { t: i } = oe(), a = x(Or), { avatar: r, userId: o, displayUserInfo: l } = a || {}, [c, M] = m(!e[o]), [I, g] = m(e[o] ? "fill" : "cover"), [
|
|
7700
|
+
const e = mn(), { remoteList: n } = t, { t: i } = oe(), a = x(Or), { avatar: r, userId: o, displayUserInfo: l } = a || {}, [c, M] = m(!e[o]), [I, g] = m(e[o] ? "fill" : "cover"), [A, D] = m(e[o] || r);
|
|
7696
7701
|
Q(() => {
|
|
7697
7702
|
M(!e[o]), g(e[o] ? "fill" : "cover"), D(e[o] || r || de);
|
|
7698
7703
|
}, [e, o]);
|
|
7699
|
-
function
|
|
7704
|
+
function N() {
|
|
7700
7705
|
return /* @__PURE__ */ u(
|
|
7701
7706
|
Pt,
|
|
7702
7707
|
{
|
|
@@ -7713,7 +7718,7 @@ function sg(t) {
|
|
|
7713
7718
|
avatar: r || de,
|
|
7714
7719
|
theme: U.isPC ? "circle" : "dot",
|
|
7715
7720
|
isMobile: !U.isPC,
|
|
7716
|
-
background:
|
|
7721
|
+
background: A,
|
|
7717
7722
|
showOverlayer: c,
|
|
7718
7723
|
fit: I,
|
|
7719
7724
|
children: /* @__PURE__ */ w("div", { className: Dt["groupcall-info"], children: [
|
|
@@ -7722,7 +7727,7 @@ function sg(t) {
|
|
|
7722
7727
|
i("people in the call"),
|
|
7723
7728
|
":"
|
|
7724
7729
|
] }),
|
|
7725
|
-
/* @__PURE__ */ u("div", { className: Dt["avatar-group"], children: n == null ? void 0 : n.map((
|
|
7730
|
+
/* @__PURE__ */ u("div", { className: Dt["avatar-group"], children: n == null ? void 0 : n.map((L) => /* @__PURE__ */ u(Xr, { className: Dt["avatar-item"], image: L.avatar }, L.userId)) })
|
|
7726
7731
|
] })
|
|
7727
7732
|
}
|
|
7728
7733
|
);
|
|
@@ -7738,13 +7743,13 @@ function sg(t) {
|
|
|
7738
7743
|
showAvatar: !U.isPC,
|
|
7739
7744
|
isMobile: !U.isPC,
|
|
7740
7745
|
tip: i("Invited group call"),
|
|
7741
|
-
background:
|
|
7746
|
+
background: A,
|
|
7742
7747
|
showOverlayer: c,
|
|
7743
7748
|
fit: I
|
|
7744
7749
|
}
|
|
7745
7750
|
);
|
|
7746
7751
|
}
|
|
7747
|
-
return U.isPC ? /* @__PURE__ */ u(T, {}) : /* @__PURE__ */ u(
|
|
7752
|
+
return U.isPC ? /* @__PURE__ */ u(T, {}) : /* @__PURE__ */ u(N, {});
|
|
7748
7753
|
}
|
|
7749
7754
|
function lg(t) {
|
|
7750
7755
|
const { isFloat: e } = x(H), n = 100;
|
|
@@ -7758,9 +7763,9 @@ function lg(t) {
|
|
|
7758
7763
|
enableFocus: c = !1,
|
|
7759
7764
|
children: M
|
|
7760
7765
|
} = t;
|
|
7761
|
-
const [I, g] = m(null),
|
|
7762
|
-
const
|
|
7763
|
-
if (
|
|
7766
|
+
const [I, g] = m(null), A = X(() => {
|
|
7767
|
+
const E = M.length;
|
|
7768
|
+
if (E <= 3)
|
|
7764
7769
|
return [{
|
|
7765
7770
|
x: 0,
|
|
7766
7771
|
y: 0,
|
|
@@ -7777,7 +7782,7 @@ function lg(t) {
|
|
|
7777
7782
|
w: 6,
|
|
7778
7783
|
h: 6
|
|
7779
7784
|
}];
|
|
7780
|
-
if (
|
|
7785
|
+
if (E === 4)
|
|
7781
7786
|
return [{
|
|
7782
7787
|
x: 0,
|
|
7783
7788
|
y: 0,
|
|
@@ -7799,85 +7804,85 @@ function lg(t) {
|
|
|
7799
7804
|
w: 6,
|
|
7800
7805
|
h: 6
|
|
7801
7806
|
}];
|
|
7802
|
-
const
|
|
7807
|
+
const C = [{
|
|
7803
7808
|
x: 0,
|
|
7804
7809
|
y: 0,
|
|
7805
7810
|
w: 4,
|
|
7806
7811
|
h: 4
|
|
7807
7812
|
}];
|
|
7808
|
-
for (let f = 1; f <
|
|
7809
|
-
const
|
|
7810
|
-
|
|
7811
|
-
x:
|
|
7812
|
-
y:
|
|
7813
|
+
for (let f = 1; f < E; f++) {
|
|
7814
|
+
const p = C[f - 1].x + 4 === 12;
|
|
7815
|
+
C[f] = {
|
|
7816
|
+
x: C[f - 1].x + 4 === 12 ? 0 : C[f - 1].x + 4,
|
|
7817
|
+
y: C[f - 1].y + (p ? 4 : 0),
|
|
7813
7818
|
w: 4,
|
|
7814
7819
|
h: 4
|
|
7815
7820
|
};
|
|
7816
7821
|
}
|
|
7817
|
-
return o || (
|
|
7822
|
+
return o || (E % 3 === 1 && (C[E - 1].x += 2), E % 3 === 2 && (C[E - 1].x += 2, C[E - 2].x += 2)), C;
|
|
7818
7823
|
}, [M, o]);
|
|
7819
|
-
function D(
|
|
7820
|
-
|
|
7821
|
-
}
|
|
7822
|
-
const
|
|
7823
|
-
i =
|
|
7824
|
-
const T = Object.keys(Array.from({ length:
|
|
7825
|
-
const
|
|
7826
|
-
let
|
|
7824
|
+
function D(E) {
|
|
7825
|
+
E === I ? (g(null), l == null || l(null)) : (g(E), l == null || l(E));
|
|
7826
|
+
}
|
|
7827
|
+
const N = n / 12;
|
|
7828
|
+
i = N;
|
|
7829
|
+
const T = Object.keys(Array.from({ length: A.length })), L = X(() => {
|
|
7830
|
+
const E = JSON.parse(JSON.stringify(A));
|
|
7831
|
+
let C, f;
|
|
7827
7832
|
if (I != null) {
|
|
7828
7833
|
if (T.length < 5) {
|
|
7829
|
-
const
|
|
7830
|
-
|
|
7834
|
+
const p = T.concat();
|
|
7835
|
+
p.splice(I, 1), p.unshift(I);
|
|
7831
7836
|
} else
|
|
7832
|
-
f = I % 3,
|
|
7837
|
+
f = I % 3, C = Math.floor(I / 3);
|
|
7833
7838
|
if (T.length < 5) {
|
|
7834
|
-
for (let y = 0; y <
|
|
7835
|
-
const j =
|
|
7839
|
+
for (let y = 0; y < E.length; y++) {
|
|
7840
|
+
const j = E[y];
|
|
7836
7841
|
y === 0 ? (j.w += 6, j.h += 6) : (j.x = (y - 1) * 4, j.y = 12, j.w = 4, j.h = 4);
|
|
7837
7842
|
}
|
|
7838
|
-
const
|
|
7839
|
-
|
|
7843
|
+
const p = E.shift();
|
|
7844
|
+
E.splice(I, 0, p);
|
|
7840
7845
|
} else {
|
|
7841
|
-
let
|
|
7842
|
-
f === 0 ? (
|
|
7846
|
+
let p;
|
|
7847
|
+
f === 0 ? (E[I + 1] && (E[I + 1].x += 4), E[I + 2] && (E[I + 2].y += 4), p = {
|
|
7843
7848
|
x: 0,
|
|
7844
|
-
y:
|
|
7849
|
+
y: C * 4,
|
|
7845
7850
|
w: 8,
|
|
7846
7851
|
h: 8
|
|
7847
|
-
}) : f === 2 ? (
|
|
7852
|
+
}) : f === 2 ? (p = {
|
|
7848
7853
|
x: 4,
|
|
7849
|
-
y:
|
|
7854
|
+
y: C * 4,
|
|
7850
7855
|
w: 8,
|
|
7851
7856
|
h: 8
|
|
7852
|
-
},
|
|
7857
|
+
}, E[I - 1].x = 0, E[I - 1].y += 4) : f === 1 && (p = {
|
|
7853
7858
|
x: 4,
|
|
7854
|
-
y:
|
|
7859
|
+
y: C * 4,
|
|
7855
7860
|
w: 8,
|
|
7856
7861
|
h: 8
|
|
7857
|
-
},
|
|
7862
|
+
}, E[I + 1] && (E[I + 1].x = 0, E[I + 1].y += 4));
|
|
7858
7863
|
const y = 3 - f;
|
|
7859
|
-
for (let j = I + y; j <
|
|
7860
|
-
const z =
|
|
7864
|
+
for (let j = I + y; j < E.length; j++) {
|
|
7865
|
+
const z = E[j];
|
|
7861
7866
|
z.y += 4;
|
|
7862
7867
|
}
|
|
7863
|
-
|
|
7868
|
+
E[I] = p;
|
|
7864
7869
|
}
|
|
7865
|
-
return
|
|
7870
|
+
return E;
|
|
7866
7871
|
}
|
|
7867
|
-
return
|
|
7868
|
-
}, [I,
|
|
7869
|
-
return /* @__PURE__ */ u("div", { className: r, children: M == null ? void 0 : M.map((
|
|
7872
|
+
return E;
|
|
7873
|
+
}, [I, A]);
|
|
7874
|
+
return /* @__PURE__ */ u("div", { className: r, children: M == null ? void 0 : M.map((E, C) => {
|
|
7870
7875
|
const {
|
|
7871
7876
|
x: f,
|
|
7872
|
-
y:
|
|
7877
|
+
y: p,
|
|
7873
7878
|
w: y,
|
|
7874
7879
|
h: j
|
|
7875
|
-
} =
|
|
7880
|
+
} = L[C];
|
|
7876
7881
|
let z = {
|
|
7877
|
-
width: y *
|
|
7882
|
+
width: y * N + a,
|
|
7878
7883
|
height: j * i + a,
|
|
7879
|
-
left: f *
|
|
7880
|
-
top:
|
|
7884
|
+
left: f * N + a,
|
|
7885
|
+
top: p * i + a,
|
|
7881
7886
|
position: "absolute"
|
|
7882
7887
|
};
|
|
7883
7888
|
return e && (z = {
|
|
@@ -7887,8 +7892,8 @@ function lg(t) {
|
|
|
7887
7892
|
top: "0px",
|
|
7888
7893
|
position: "absolute"
|
|
7889
7894
|
}), Ae.cloneElement(
|
|
7890
|
-
|
|
7891
|
-
{ style: z, updateFocusItem: () => c && D(
|
|
7895
|
+
E,
|
|
7896
|
+
{ style: z, updateFocusItem: () => c && D(C) }
|
|
7892
7897
|
);
|
|
7893
7898
|
}) });
|
|
7894
7899
|
}
|
|
@@ -8017,7 +8022,7 @@ function Tg() {
|
|
|
8017
8022
|
function I(D) {
|
|
8018
8023
|
return /* @__PURE__ */ u(cg, { ...D });
|
|
8019
8024
|
}
|
|
8020
|
-
const g = Ne(() => e.map((D,
|
|
8025
|
+
const g = Ne(() => e.map((D, N) => /* @__PURE__ */ u(Bi, { index: N + 1, children: /* @__PURE__ */ u(
|
|
8021
8026
|
Ao,
|
|
8022
8027
|
{
|
|
8023
8028
|
className: b({
|
|
@@ -8038,9 +8043,9 @@ function Tg() {
|
|
|
8038
8043
|
streamInfo: D,
|
|
8039
8044
|
showStreamInfo: !o,
|
|
8040
8045
|
isSpkear: l.includes(D.domId),
|
|
8041
|
-
isLargeView: a ===
|
|
8046
|
+
isLargeView: a === N + 1
|
|
8042
8047
|
}
|
|
8043
|
-
) }, D.userId)), [e, l, a]),
|
|
8048
|
+
) }, D.userId)), [e, l, a]), A = b([
|
|
8044
8049
|
_e["groupcall-gridplus-container"],
|
|
8045
8050
|
{
|
|
8046
8051
|
[_e.pc]: U.isPC,
|
|
@@ -8064,7 +8069,7 @@ function Tg() {
|
|
|
8064
8069
|
children: /* @__PURE__ */ u(fn, { attach: o ? "#float" : "#group-container", style: { width: "100%", height: "100%", position: "relative" }, children: /* @__PURE__ */ w(
|
|
8065
8070
|
lg,
|
|
8066
8071
|
{
|
|
8067
|
-
className:
|
|
8072
|
+
className: A,
|
|
8068
8073
|
isMobile: !U.isPC,
|
|
8069
8074
|
enableFocus: !U.isPC && !o,
|
|
8070
8075
|
unit: U.isPC ? "%" : "vw",
|
|
@@ -8118,11 +8123,11 @@ function Lg() {
|
|
|
8118
8123
|
avatar: e.avatar || de,
|
|
8119
8124
|
isMobile: !U.isPC
|
|
8120
8125
|
}
|
|
8121
|
-
) : null,
|
|
8126
|
+
) : null, A = b([
|
|
8122
8127
|
qa["group-container"],
|
|
8123
8128
|
{ [qa.mobile]: !U.isPC }
|
|
8124
8129
|
]);
|
|
8125
|
-
return /* @__PURE__ */ u(Ji.Provider, { value: l, children: /* @__PURE__ */ w("div", { className:
|
|
8130
|
+
return /* @__PURE__ */ u(Ji.Provider, { value: l, children: /* @__PURE__ */ w("div", { className: A, children: [
|
|
8126
8131
|
c(),
|
|
8127
8132
|
I(),
|
|
8128
8133
|
(n === te.CALLER || i === R.CONNECTED) && /* @__PURE__ */ u(Tg, {}),
|
|
@@ -8333,15 +8338,15 @@ const zg = {
|
|
|
8333
8338
|
"floating-window-h5-groupcall-container": "_floating-window-h5-groupcall-container_1es4b_1"
|
|
8334
8339
|
};
|
|
8335
8340
|
function Gg(t) {
|
|
8336
|
-
const { hasVideo: e, clickable: n } = t, { isGroupCall: i, callStatus: a } = x(H), { isFloat: r } = x(H), { localUserInfo: { isAudioAvailable: o, isVideoAvailable: l } } = x(ye), c = Xi(), { t: M } = oe(), I = l ? Ug : bg, g = o ? vg : Rg,
|
|
8337
|
-
const
|
|
8341
|
+
const { hasVideo: e, clickable: n } = t, { isGroupCall: i, callStatus: a } = x(H), { isFloat: r } = x(H), { localUserInfo: { isAudioAvailable: o, isVideoAvailable: l } } = x(ye), c = Xi(), { t: M } = oe(), I = l ? Ug : bg, g = o ? vg : Rg, A = () => {
|
|
8342
|
+
const N = b([
|
|
8338
8343
|
ue["video-stream"]
|
|
8339
8344
|
]);
|
|
8340
8345
|
return /* @__PURE__ */ w(Ht, { children: [
|
|
8341
8346
|
/* @__PURE__ */ u(
|
|
8342
8347
|
"div",
|
|
8343
8348
|
{
|
|
8344
|
-
className:
|
|
8349
|
+
className: N,
|
|
8345
8350
|
id: "float"
|
|
8346
8351
|
}
|
|
8347
8352
|
),
|
|
@@ -8373,7 +8378,7 @@ function Gg(t) {
|
|
|
8373
8378
|
[ue.video]: e
|
|
8374
8379
|
}
|
|
8375
8380
|
]),
|
|
8376
|
-
children:
|
|
8381
|
+
children: A()
|
|
8377
8382
|
}
|
|
8378
8383
|
),
|
|
8379
8384
|
i && r && /* @__PURE__ */ w("div", { className: ue["device-status"], children: [
|
|
@@ -8481,32 +8486,32 @@ function Kg(t) {
|
|
|
8481
8486
|
onMoveEnd: a,
|
|
8482
8487
|
onPositionChange: r,
|
|
8483
8488
|
initialPosition: o = { left: "0px", top: "0px" }
|
|
8484
|
-
} = t, l = De(!1), c = De({}), M = De({ left: 0, top: 0 }), [I, g] = m(o), [
|
|
8489
|
+
} = t, l = De(!1), c = De({}), M = De({ left: 0, top: 0 }), [I, g] = m(o), [A, D] = m();
|
|
8485
8490
|
Q(() => () => {
|
|
8486
|
-
e.current && (e.current.ownerDocument.removeEventListener(Tt.move,
|
|
8491
|
+
e.current && (e.current.ownerDocument.removeEventListener(Tt.move, C), e.current.ownerDocument.removeEventListener(Tt.stop, f));
|
|
8487
8492
|
}, [e.current]);
|
|
8488
|
-
const
|
|
8493
|
+
const N = (j) => {
|
|
8489
8494
|
var fe, q;
|
|
8490
8495
|
const { clientX: z, clientY: O } = tr(j), B = z - ((fe = e.current) == null ? void 0 : fe.getBoundingClientRect().left), Y = O - ((q = e.current) == null ? void 0 : q.getBoundingClientRect().top), J = document.documentElement.clientWidth, se = document.documentElement.clientHeight, $ = e.current.offsetWidth, je = e.current.offsetHeight;
|
|
8491
8496
|
return { oW: B, oH: Y, htmlWidth: J, htmlHeight: se, bWidth: $, bHeight: je };
|
|
8492
8497
|
}, T = (j) => {
|
|
8493
8498
|
const { clientX: z, clientY: O } = tr(j), B = z - c.current.oW, Y = O - c.current.oH;
|
|
8494
8499
|
return { left: B, top: Y };
|
|
8495
|
-
}, E = (j) => {
|
|
8496
|
-
l.current = !0, c.current = A(j), M.current = T(j), g({ left: "0px", top: "0px" }), e.current.ownerDocument.addEventListener(Tt.move, p), e.current.ownerDocument.addEventListener(Tt.stop, f);
|
|
8497
8500
|
}, L = (j) => {
|
|
8501
|
+
l.current = !0, c.current = N(j), M.current = T(j), g({ left: "0px", top: "0px" }), e.current.ownerDocument.addEventListener(Tt.move, C), e.current.ownerDocument.addEventListener(Tt.stop, f);
|
|
8502
|
+
}, E = (j) => {
|
|
8498
8503
|
i == null || i();
|
|
8499
8504
|
let { left: z, top: O } = T(j);
|
|
8500
8505
|
z < 0 ? z = 0 : z > c.current.htmlWidth - c.current.bWidth && (z = c.current.htmlWidth - c.current.bWidth), O < 0 ? O = 0 : O > c.current.htmlHeight - c.current.bHeight && (O = c.current.htmlHeight - c.current.bHeight), M.current = { left: z, top: O }, r == null || r({ left: z, top: O }), D({ left: z, top: O });
|
|
8501
|
-
},
|
|
8502
|
-
l.current &&
|
|
8506
|
+
}, C = (j) => {
|
|
8507
|
+
l.current && E(j);
|
|
8503
8508
|
}, f = (j) => {
|
|
8504
8509
|
l.current = !1;
|
|
8505
8510
|
let z = M.current.left;
|
|
8506
8511
|
z < (c.current.htmlWidth - c.current.bWidth) / 2 ? z = 0 : z = c.current.htmlWidth - c.current.bWidth, M.current = U.isH5 ? { left: z, top: M.current.top } : { left: M.current.left, top: M.current.top }, setTimeout(() => {
|
|
8507
8512
|
a == null || a();
|
|
8508
|
-
}, 0), e.current.ownerDocument.removeEventListener(Tt.move,
|
|
8509
|
-
},
|
|
8513
|
+
}, 0), e.current.ownerDocument.removeEventListener(Tt.move, C), e.current.ownerDocument.removeEventListener(Tt.stop, f);
|
|
8514
|
+
}, p = X(
|
|
8510
8515
|
() => `translate(${M.current.left}px, ${M.current.top}px)`,
|
|
8511
8516
|
[M.current]
|
|
8512
8517
|
);
|
|
@@ -8517,11 +8522,11 @@ function Kg(t) {
|
|
|
8517
8522
|
zIndex: 999,
|
|
8518
8523
|
touchAction: "none",
|
|
8519
8524
|
...I,
|
|
8520
|
-
transform:
|
|
8525
|
+
transform: p,
|
|
8521
8526
|
userSelect: "none",
|
|
8522
8527
|
WebkitUserSelect: "none"
|
|
8523
8528
|
},
|
|
8524
|
-
[Tt.start]:
|
|
8529
|
+
[Tt.start]: L
|
|
8525
8530
|
}) });
|
|
8526
8531
|
}
|
|
8527
8532
|
function $g(t) {
|
|
@@ -8593,7 +8598,7 @@ const qg = () => {
|
|
|
8593
8598
|
const { activeModalId: l, modalOpenTime: c, modalData: M } = t;
|
|
8594
8599
|
if (l === null || !c || !M)
|
|
8595
8600
|
return;
|
|
8596
|
-
const I = Date.now(), g = I - c, { userAgent:
|
|
8601
|
+
const I = Date.now(), g = I - c, { userAgent: A, platformCode: D } = nr(), N = {
|
|
8597
8602
|
confirm: 1,
|
|
8598
8603
|
cancel: 2,
|
|
8599
8604
|
timeout: 3,
|
|
@@ -8607,10 +8612,10 @@ const qg = () => {
|
|
|
8607
8612
|
content: M.content,
|
|
8608
8613
|
timestamp: I,
|
|
8609
8614
|
stayDuration: g,
|
|
8610
|
-
closeReasonCode:
|
|
8615
|
+
closeReasonCode: N[o],
|
|
8611
8616
|
sessionId: ir(),
|
|
8612
8617
|
platformCode: D,
|
|
8613
|
-
userAgent:
|
|
8618
|
+
userAgent: A
|
|
8614
8619
|
}), t = {
|
|
8615
8620
|
modalData: null,
|
|
8616
8621
|
activeModalId: null,
|
|
@@ -8683,14 +8688,14 @@ function iN(t) {
|
|
|
8683
8688
|
if (!i || typeof i != "string")
|
|
8684
8689
|
return i;
|
|
8685
8690
|
if (eN.test(i.trim())) {
|
|
8686
|
-
const D = i.trim(),
|
|
8687
|
-
return `<a href="${kn(
|
|
8691
|
+
const D = i.trim(), N = D.startsWith("http") ? D : `https://${D}`;
|
|
8692
|
+
return `<a href="${kn(N)}" target="_blank" rel="noopener noreferrer" class="${re["uikit-modal-link"]}">${kn(D)}</a>`;
|
|
8688
8693
|
}
|
|
8689
8694
|
return i.includes("<a ") || i.includes("<a>") ? tN(i) : rr.test(i) ? kn(i).replace(rr, (D) => `<a href="${D}" target="_blank" rel="noopener noreferrer" class="${re["uikit-modal-link"]}">${D}</a>`) : kn(i);
|
|
8690
8695
|
}, [i]), g = or[e] || or.info;
|
|
8691
8696
|
if (!a)
|
|
8692
8697
|
return null;
|
|
8693
|
-
const
|
|
8698
|
+
const A = /* @__PURE__ */ u(
|
|
8694
8699
|
"div",
|
|
8695
8700
|
{
|
|
8696
8701
|
className: re["uikit-modal-mask"],
|
|
@@ -8736,7 +8741,7 @@ function iN(t) {
|
|
|
8736
8741
|
)
|
|
8737
8742
|
}
|
|
8738
8743
|
);
|
|
8739
|
-
return lr(
|
|
8744
|
+
return lr(A, document.body);
|
|
8740
8745
|
}
|
|
8741
8746
|
function aN(t) {
|
|
8742
8747
|
const { options: e } = t, [n, i] = m(!0), a = Ne((l) => {
|
|
@@ -8797,16 +8802,16 @@ function ri(t) {
|
|
|
8797
8802
|
beforeCalling: l,
|
|
8798
8803
|
afterCalling: c,
|
|
8799
8804
|
onMinimized: M
|
|
8800
|
-
} = t, [I, g] = m(h.getData(d.CALL, s.CALL_STATUS)), [
|
|
8801
|
-
|
|
8805
|
+
} = t, [I, g] = m(h.getData(d.CALL, s.CALL_STATUS)), [A, D] = m(h.getData(d.CALL, s.IS_GROUP)), [
|
|
8806
|
+
N,
|
|
8802
8807
|
T
|
|
8803
8808
|
] = m(h.getData(d.CALL, s.CALLER_USER_INFO)), [
|
|
8804
|
-
|
|
8805
|
-
|
|
8809
|
+
L,
|
|
8810
|
+
E
|
|
8806
8811
|
] = m(h.getData(d.CALL, s.LOCAL_USER_INFO)), [
|
|
8807
|
-
|
|
8812
|
+
C,
|
|
8808
8813
|
f
|
|
8809
|
-
] = m(h.getData(d.CALL, s.REMOTE_USER_INFO_LIST)), [
|
|
8814
|
+
] = m(h.getData(d.CALL, s.REMOTE_USER_INFO_LIST)), [p, y] = m(h.getData(d.CALL, s.CALL_MEDIA_TYPE)), [j, z] = m(h.getData(d.CALL, s.CALL_ROLE)), [O, B] = m(h.getData(d.CALL, s.IS_EAR_PHONE)), [Y, J] = m(!1), [
|
|
8810
8815
|
se,
|
|
8811
8816
|
$
|
|
8812
8817
|
] = m(h.getData(d.CALL, s.ENABLE_VIRTUAL_BACKGROUND)), [
|
|
@@ -8818,9 +8823,9 @@ function ri(t) {
|
|
|
8818
8823
|
] = m(h.getData(d.CALL, s.IS_MUTE_SPEAKER)), wt = To(), Ze = X(() => ({
|
|
8819
8824
|
callStatus: I,
|
|
8820
8825
|
callRole: j,
|
|
8821
|
-
callType:
|
|
8826
|
+
callType: p,
|
|
8822
8827
|
isEarPhone: O,
|
|
8823
|
-
isGroupCall:
|
|
8828
|
+
isGroupCall: A,
|
|
8824
8829
|
isFloat: Y,
|
|
8825
8830
|
allowedMinimized: i,
|
|
8826
8831
|
allowedFullScreen: a,
|
|
@@ -8830,18 +8835,18 @@ function ri(t) {
|
|
|
8830
8835
|
}), [
|
|
8831
8836
|
I,
|
|
8832
8837
|
j,
|
|
8833
|
-
|
|
8838
|
+
p,
|
|
8834
8839
|
O,
|
|
8835
|
-
|
|
8840
|
+
A,
|
|
8836
8841
|
Y,
|
|
8837
8842
|
a,
|
|
8838
8843
|
se,
|
|
8839
8844
|
je,
|
|
8840
8845
|
q
|
|
8841
8846
|
]), zt = X(() => ({
|
|
8842
|
-
localUserInfo:
|
|
8843
|
-
remoteList:
|
|
8844
|
-
}), [
|
|
8847
|
+
localUserInfo: L,
|
|
8848
|
+
remoteList: C
|
|
8849
|
+
}), [L, C]), [
|
|
8845
8850
|
$t,
|
|
8846
8851
|
dt
|
|
8847
8852
|
] = m(h.getData(d.CALL, s.CUSTOM_UI_CONFIG)), [Re, rt] = m({ t: h.getData(d.CALL, s.TRANSLATE) }), Ve = b([
|
|
@@ -8858,7 +8863,7 @@ function ri(t) {
|
|
|
8858
8863
|
}, Fe = (_) => {
|
|
8859
8864
|
T(_);
|
|
8860
8865
|
}, qt = (_) => {
|
|
8861
|
-
|
|
8866
|
+
E(_);
|
|
8862
8867
|
}, oi = (_) => {
|
|
8863
8868
|
f(_);
|
|
8864
8869
|
}, en = (_) => {
|
|
@@ -8938,10 +8943,10 @@ function ri(t) {
|
|
|
8938
8943
|
o,
|
|
8939
8944
|
i,
|
|
8940
8945
|
M
|
|
8941
|
-
]), I !== R.IDLE && /* @__PURE__ */ u(ye.Provider, { value: zt, children: /* @__PURE__ */ u(Or.Provider, { value:
|
|
8946
|
+
]), I !== R.IDLE && /* @__PURE__ */ u(ye.Provider, { value: zt, children: /* @__PURE__ */ u(Or.Provider, { value: N, children: /* @__PURE__ */ u(H.Provider, { value: Ze, children: /* @__PURE__ */ u(Cn.Provider, { value: $t, children: /* @__PURE__ */ w(zr.Provider, { value: Re, children: [
|
|
8942
8947
|
/* @__PURE__ */ w("div", { style: { ...e }, className: Ve, id: "tuicallkit-id", children: [
|
|
8943
|
-
!
|
|
8944
|
-
|
|
8948
|
+
!A && /* @__PURE__ */ u(rg, {}),
|
|
8949
|
+
A && /* @__PURE__ */ u(Lg, {}),
|
|
8945
8950
|
/* @__PURE__ */ u(Cg, {}),
|
|
8946
8951
|
/* @__PURE__ */ u(pg, {})
|
|
8947
8952
|
] }),
|
|
@@ -8949,8 +8954,8 @@ function ri(t) {
|
|
|
8949
8954
|
$g,
|
|
8950
8955
|
{
|
|
8951
8956
|
show: Y,
|
|
8952
|
-
hasVideo:
|
|
8953
|
-
isAudioAvailable:
|
|
8957
|
+
hasVideo: A ? wt.length !== 0 : p === F.VIDEO,
|
|
8958
|
+
isAudioAvailable: L.isAudioAvailable
|
|
8954
8959
|
}
|
|
8955
8960
|
) })
|
|
8956
8961
|
] }) }) }) }) });
|
|
@@ -8963,7 +8968,7 @@ ri.install = MN;
|
|
|
8963
8968
|
const EN = {
|
|
8964
8969
|
AUDIO_CALL: 1,
|
|
8965
8970
|
VIDEO_CALL: 2
|
|
8966
|
-
}, LN = "4.5.
|
|
8971
|
+
}, LN = "4.5.10";
|
|
8967
8972
|
export {
|
|
8968
8973
|
F as CallMediaType,
|
|
8969
8974
|
hN as CallMessage,
|