hx-live-client-plus 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hx-live-client-plus.css +1 -1
- package/lib/hx-live-client-plus.js +490 -483
- package/lib/hx-live-client-plus.umd.cjs +15 -15
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as A, readonly as Lm, unref as Y, getCurrentScope as Am, onScopeDispose as od, getCurrentInstance as Rn, onMounted as mt, nextTick as Ae, watch as Ve, defineComponent as ot, createElementBlock as V, openBlock as O, createElementVNode as k, warn as Um, computed as se, watchEffect as sd, onBeforeUnmount as Cn, inject as Gt, isRef as cd, shallowRef as la, provide as qs, renderSlot as Ut, mergeProps as dr, toRef as Ma, onUnmounted as $m, useAttrs as jm, useSlots as ud, createCommentVNode as
|
1
|
+
import { ref as A, readonly as Lm, unref as Y, getCurrentScope as Am, onScopeDispose as od, getCurrentInstance as Rn, onMounted as mt, nextTick as Ae, watch as Ve, defineComponent as ot, createElementBlock as V, openBlock as O, createElementVNode as k, warn as Um, computed as se, watchEffect as sd, onBeforeUnmount as Cn, inject as Gt, isRef as cd, shallowRef as la, provide as qs, renderSlot as Ut, mergeProps as dr, toRef as Ma, onUnmounted as $m, useAttrs as jm, useSlots as ud, createCommentVNode as ge, Fragment as He, normalizeClass as me, createBlock as Te, withCtx as be, resolveDynamicComponent as sn, withModifiers as Fn, createVNode as de, toDisplayString as Se, normalizeStyle as Ft, Transition as zs, withDirectives as In, vShow as Bn, Text as Fm, reactive as Bt, h as Bm, shallowReactive as Vm, isVNode as Xa, render as Ia, markRaw as Kc, toRefs as Hm, resolveComponent as Oe, withKeys as ji, createTextVNode as pr, renderList as dt, pushScopeId as yt, popScopeId as kt, Teleport as gi, toValue as qm } from "vue";
|
2
2
|
const ld = (t) => {
|
3
3
|
let i, e, n, r = Math.floor(t % 3600);
|
4
4
|
return Math.floor(t / 3600) > 0 ? i = Math.floor(t / 3600) <= 9 ? "0" + Math.floor(t / 3600) : Math.floor(t / 3600) : i = "00", Math.floor(r / 60) > 0 ? e = Math.floor(r / 60) <= 9 ? "0" + Math.floor(r / 60) : Math.floor(r / 60) : e = "00", Math.floor(r % 60) > 0 ? n = Math.floor(r % 60) <= 9 ? "0" + Math.floor(r % 60) : Math.floor(r % 60) : n = "00", `${i}:${e}:${n}`;
|
@@ -1746,15 +1746,15 @@ const hy = Jn({
|
|
1746
1746
|
e("change", re.target.value);
|
1747
1747
|
}, {
|
1748
1748
|
isComposing: Ee,
|
1749
|
-
handleCompositionStart:
|
1749
|
+
handleCompositionStart: Ke,
|
1750
1750
|
handleCompositionUpdate: Tt,
|
1751
1751
|
handleCompositionEnd: L
|
1752
|
-
} = Zb({ emit: e, afterComposition: ct }),
|
1752
|
+
} = Zb({ emit: e, afterComposition: ct }), ve = () => {
|
1753
1753
|
T.value = !T.value, _e();
|
1754
1754
|
}, _e = async () => {
|
1755
1755
|
var re;
|
1756
1756
|
await Ae(), (re = E.value) == null || re.focus();
|
1757
|
-
},
|
1757
|
+
}, Ye = () => {
|
1758
1758
|
var re;
|
1759
1759
|
return (re = E.value) == null ? void 0 : re.blur();
|
1760
1760
|
}, ae = (re) => {
|
@@ -1763,7 +1763,7 @@ const hy = Jn({
|
|
1763
1763
|
y.value = !0, e("mouseenter", re);
|
1764
1764
|
}, pe = (re) => {
|
1765
1765
|
e("keydown", re);
|
1766
|
-
},
|
1766
|
+
}, Qe = () => {
|
1767
1767
|
var re;
|
1768
1768
|
(re = E.value) == null || re.select();
|
1769
1769
|
}, $e = () => {
|
@@ -1784,8 +1784,8 @@ const hy = Jn({
|
|
1784
1784
|
autosize: Ma(n, "autosize"),
|
1785
1785
|
isComposing: Ee,
|
1786
1786
|
focus: _e,
|
1787
|
-
blur:
|
1788
|
-
select:
|
1787
|
+
blur: Ye,
|
1788
|
+
select: Qe,
|
1789
1789
|
clear: $e,
|
1790
1790
|
resizeTextarea: Le
|
1791
1791
|
}), (re, ze) => (O(), V("div", dr(Y(o), {
|
@@ -1801,21 +1801,21 @@ const hy = Jn({
|
|
1801
1801
|
onMouseenter: xe,
|
1802
1802
|
onMouseleave: ae
|
1803
1803
|
}), [
|
1804
|
-
|
1804
|
+
ge(" input "),
|
1805
1805
|
re.type !== "textarea" ? (O(), V(He, { key: 0 }, [
|
1806
|
-
|
1806
|
+
ge(" prepend slot "),
|
1807
1807
|
re.$slots.prepend ? (O(), V("div", {
|
1808
1808
|
key: 0,
|
1809
1809
|
class: me(Y(m).be("group", "prepend"))
|
1810
1810
|
}, [
|
1811
1811
|
Ut(re.$slots, "prepend")
|
1812
|
-
], 2)) :
|
1812
|
+
], 2)) : ge("v-if", !0),
|
1813
1813
|
k("div", {
|
1814
1814
|
ref_key: "wrapperRef",
|
1815
1815
|
ref: _,
|
1816
1816
|
class: me(Y(c))
|
1817
1817
|
}, [
|
1818
|
-
|
1818
|
+
ge(" prefix slot "),
|
1819
1819
|
re.$slots.prefix || re.prefixIcon ? (O(), V("span", {
|
1820
1820
|
key: 0,
|
1821
1821
|
class: me(Y(m).e("prefix"))
|
@@ -1828,13 +1828,13 @@ const hy = Jn({
|
|
1828
1828
|
key: 0,
|
1829
1829
|
class: me(Y(m).e("icon"))
|
1830
1830
|
}, {
|
1831
|
-
default:
|
1831
|
+
default: be(() => [
|
1832
1832
|
(O(), Te(sn(re.prefixIcon)))
|
1833
1833
|
]),
|
1834
1834
|
_: 1
|
1835
|
-
}, 8, ["class"])) :
|
1835
|
+
}, 8, ["class"])) : ge("v-if", !0)
|
1836
1836
|
], 2)
|
1837
|
-
], 2)) :
|
1837
|
+
], 2)) : ge("v-if", !0),
|
1838
1838
|
k("input", dr({
|
1839
1839
|
id: Y(b),
|
1840
1840
|
ref_key: "input",
|
@@ -1853,14 +1853,14 @@ const hy = Jn({
|
|
1853
1853
|
style: re.inputStyle,
|
1854
1854
|
form: re.form,
|
1855
1855
|
autofocus: re.autofocus,
|
1856
|
-
onCompositionstart: Y(
|
1856
|
+
onCompositionstart: Y(Ke),
|
1857
1857
|
onCompositionupdate: Y(Tt),
|
1858
1858
|
onCompositionend: Y(L),
|
1859
1859
|
onInput: ct,
|
1860
1860
|
onChange: ue,
|
1861
1861
|
onKeydown: pe
|
1862
1862
|
}), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
|
1863
|
-
|
1863
|
+
ge(" suffix slot "),
|
1864
1864
|
Y(Z) ? (O(), V("span", {
|
1865
1865
|
key: 1,
|
1866
1866
|
class: me(Y(m).e("suffix"))
|
@@ -1874,33 +1874,33 @@ const hy = Jn({
|
|
1874
1874
|
key: 0,
|
1875
1875
|
class: me(Y(m).e("icon"))
|
1876
1876
|
}, {
|
1877
|
-
default:
|
1877
|
+
default: be(() => [
|
1878
1878
|
(O(), Te(sn(re.suffixIcon)))
|
1879
1879
|
]),
|
1880
1880
|
_: 1
|
1881
|
-
}, 8, ["class"])) :
|
1882
|
-
], 64)) :
|
1881
|
+
}, 8, ["class"])) : ge("v-if", !0)
|
1882
|
+
], 64)) : ge("v-if", !0),
|
1883
1883
|
Y(M) ? (O(), Te(Y(Nn), {
|
1884
1884
|
key: 1,
|
1885
1885
|
class: me([Y(m).e("icon"), Y(m).e("clear")]),
|
1886
1886
|
onMousedown: Fn(Y(fr), ["prevent"]),
|
1887
1887
|
onClick: $e
|
1888
1888
|
}, {
|
1889
|
-
default:
|
1889
|
+
default: be(() => [
|
1890
1890
|
de(Y(_d))
|
1891
1891
|
]),
|
1892
1892
|
_: 1
|
1893
|
-
}, 8, ["class", "onMousedown"])) :
|
1893
|
+
}, 8, ["class", "onMousedown"])) : ge("v-if", !0),
|
1894
1894
|
Y(D) ? (O(), Te(Y(Nn), {
|
1895
1895
|
key: 2,
|
1896
1896
|
class: me([Y(m).e("icon"), Y(m).e("password")]),
|
1897
|
-
onClick:
|
1897
|
+
onClick: ve
|
1898
1898
|
}, {
|
1899
|
-
default:
|
1899
|
+
default: be(() => [
|
1900
1900
|
(O(), Te(sn(Y(te))))
|
1901
1901
|
]),
|
1902
1902
|
_: 1
|
1903
|
-
}, 8, ["class"])) :
|
1903
|
+
}, 8, ["class"])) : ge("v-if", !0),
|
1904
1904
|
Y(q) ? (O(), V("span", {
|
1905
1905
|
key: 3,
|
1906
1906
|
class: me(Y(m).e("count"))
|
@@ -1908,7 +1908,7 @@ const hy = Jn({
|
|
1908
1908
|
k("span", {
|
1909
1909
|
class: me(Y(m).e("count-inner"))
|
1910
1910
|
}, Se(Y(Q)) + " / " + Se(re.maxlength), 3)
|
1911
|
-
], 2)) :
|
1911
|
+
], 2)) : ge("v-if", !0),
|
1912
1912
|
Y(G) && Y(X) && Y(B) ? (O(), Te(Y(Nn), {
|
1913
1913
|
key: 4,
|
1914
1914
|
class: me([
|
@@ -1917,23 +1917,23 @@ const hy = Jn({
|
|
1917
1917
|
Y(m).is("loading", Y(G) === "validating")
|
1918
1918
|
])
|
1919
1919
|
}, {
|
1920
|
-
default:
|
1920
|
+
default: be(() => [
|
1921
1921
|
(O(), Te(sn(Y(X))))
|
1922
1922
|
]),
|
1923
1923
|
_: 1
|
1924
|
-
}, 8, ["class"])) :
|
1924
|
+
}, 8, ["class"])) : ge("v-if", !0)
|
1925
1925
|
], 2)
|
1926
|
-
], 2)) :
|
1926
|
+
], 2)) : ge("v-if", !0)
|
1927
1927
|
], 2),
|
1928
|
-
|
1928
|
+
ge(" append slot "),
|
1929
1929
|
re.$slots.append ? (O(), V("div", {
|
1930
1930
|
key: 1,
|
1931
1931
|
class: me(Y(m).be("group", "append"))
|
1932
1932
|
}, [
|
1933
1933
|
Ut(re.$slots, "append")
|
1934
|
-
], 2)) :
|
1934
|
+
], 2)) : ge("v-if", !0)
|
1935
1935
|
], 64)) : (O(), V(He, { key: 1 }, [
|
1936
|
-
|
1936
|
+
ge(" textarea "),
|
1937
1937
|
k("textarea", dr({
|
1938
1938
|
id: Y(b),
|
1939
1939
|
ref_key: "textarea",
|
@@ -1952,7 +1952,7 @@ const hy = Jn({
|
|
1952
1952
|
form: re.form,
|
1953
1953
|
autofocus: re.autofocus,
|
1954
1954
|
rows: re.rows,
|
1955
|
-
onCompositionstart: Y(
|
1955
|
+
onCompositionstart: Y(Ke),
|
1956
1956
|
onCompositionupdate: Y(Tt),
|
1957
1957
|
onCompositionend: Y(L),
|
1958
1958
|
onInput: ct,
|
@@ -1963,7 +1963,7 @@ const hy = Jn({
|
|
1963
1963
|
key: 0,
|
1964
1964
|
style: Ft(x.value),
|
1965
1965
|
class: me(Y(m).e("count"))
|
1966
|
-
}, Se(Y(Q)) + " / " + Se(re.maxlength), 7)) :
|
1966
|
+
}, Se(Y(Q)) + " / " + Se(re.maxlength), 7)) : ge("v-if", !0)
|
1967
1967
|
], 64))
|
1968
1968
|
], 16, ["role"]));
|
1969
1969
|
}
|
@@ -2245,7 +2245,7 @@ const Ry = Jn({
|
|
2245
2245
|
name: `${Y(n).namespace.value}-zoom-in-center`,
|
2246
2246
|
persisted: ""
|
2247
2247
|
}, {
|
2248
|
-
default:
|
2248
|
+
default: be(() => [
|
2249
2249
|
In(k("sup", {
|
2250
2250
|
class: me([
|
2251
2251
|
Y(n).e("content"),
|
@@ -2942,29 +2942,29 @@ const nk = ot({
|
|
2942
2942
|
style: Y(r),
|
2943
2943
|
onClick: Y(b)
|
2944
2944
|
}), {
|
2945
|
-
default:
|
2945
|
+
default: be(() => [
|
2946
2946
|
h.loading ? (O(), V(He, { key: 0 }, [
|
2947
2947
|
h.$slots.loading ? Ut(h.$slots, "loading", { key: 0 }) : (O(), Te(Y(Nn), {
|
2948
2948
|
key: 1,
|
2949
2949
|
class: me(Y(a).is("loading"))
|
2950
2950
|
}, {
|
2951
|
-
default:
|
2951
|
+
default: be(() => [
|
2952
2952
|
(O(), Te(sn(h.loadingIcon)))
|
2953
2953
|
]),
|
2954
2954
|
_: 1
|
2955
2955
|
}, 8, ["class"]))
|
2956
2956
|
], 64)) : h.icon || h.$slots.icon ? (O(), Te(Y(Nn), { key: 1 }, {
|
2957
|
-
default:
|
2957
|
+
default: be(() => [
|
2958
2958
|
h.icon ? (O(), Te(sn(h.icon), { key: 0 })) : Ut(h.$slots, "icon", { key: 1 })
|
2959
2959
|
]),
|
2960
2960
|
_: 3
|
2961
|
-
})) :
|
2961
|
+
})) : ge("v-if", !0),
|
2962
2962
|
h.$slots.default ? (O(), V("span", {
|
2963
2963
|
key: 2,
|
2964
2964
|
class: me({ [Y(a).em("text", "expand")]: Y(d) })
|
2965
2965
|
}, [
|
2966
2966
|
Ut(h.$slots, "default")
|
2967
|
-
], 2)) :
|
2967
|
+
], 2)) : ge("v-if", !0)
|
2968
2968
|
]),
|
2969
2969
|
_: 3
|
2970
2970
|
}, 16, ["class", "style", "onClick"]));
|
@@ -3149,17 +3149,17 @@ function dk() {
|
|
3149
3149
|
}, K.format = function(N) {
|
3150
3150
|
var M = this, D = this.$locale();
|
3151
3151
|
if (!this.isValid()) return D.invalidDate || m;
|
3152
|
-
var q = N || "YYYY-MM-DDTHH:mm:ssZ", Q = G.z(this), $ = this.$H, Z = this.$m, ce = this.$M, Ce = D.weekdays, Le = D.months, Me = D.meridiem, qe = function(ue, Ee,
|
3153
|
-
return ue && (ue[Ee] || ue(M, q)) ||
|
3152
|
+
var q = N || "YYYY-MM-DDTHH:mm:ssZ", Q = G.z(this), $ = this.$H, Z = this.$m, ce = this.$M, Ce = D.weekdays, Le = D.months, Me = D.meridiem, qe = function(ue, Ee, Ke, Tt) {
|
3153
|
+
return ue && (ue[Ee] || ue(M, q)) || Ke[Ee].slice(0, Tt);
|
3154
3154
|
}, st = function(ue) {
|
3155
3155
|
return G.s($ % 12 || 12, ue, "0");
|
3156
|
-
}, ct = Me || function(ue, Ee,
|
3156
|
+
}, ct = Me || function(ue, Ee, Ke) {
|
3157
3157
|
var Tt = ue < 12 ? "AM" : "PM";
|
3158
|
-
return
|
3158
|
+
return Ke ? Tt.toLowerCase() : Tt;
|
3159
3159
|
};
|
3160
3160
|
return q.replace(f, function(ue, Ee) {
|
3161
|
-
return Ee || function(
|
3162
|
-
switch (
|
3161
|
+
return Ee || function(Ke) {
|
3162
|
+
switch (Ke) {
|
3163
3163
|
case "YY":
|
3164
3164
|
return String(M.$y).slice(-2);
|
3165
3165
|
case "YYYY":
|
@@ -3494,7 +3494,7 @@ const bk = gk, ep = ["success", "info", "warning", "error"], Rt = Ld({
|
|
3494
3494
|
onAfterLeave: (I) => E.$emit("destroy"),
|
3495
3495
|
persisted: ""
|
3496
3496
|
}, {
|
3497
|
-
default:
|
3497
|
+
default: be(() => [
|
3498
3498
|
In(k("div", {
|
3499
3499
|
id: E.id,
|
3500
3500
|
ref_key: "messageRef",
|
@@ -3517,19 +3517,19 @@ const bk = gk, ep = ["success", "info", "warning", "error"], Rt = Ld({
|
|
3517
3517
|
value: E.repeatNum,
|
3518
3518
|
type: Y(b),
|
3519
3519
|
class: me(Y(r).e("badge"))
|
3520
|
-
}, null, 8, ["value", "type", "class"])) :
|
3520
|
+
}, null, 8, ["value", "type", "class"])) : ge("v-if", !0),
|
3521
3521
|
Y(h) ? (O(), Te(Y(Nn), {
|
3522
3522
|
key: 1,
|
3523
3523
|
class: me([Y(r).e("icon"), Y(g)])
|
3524
3524
|
}, {
|
3525
|
-
default:
|
3525
|
+
default: be(() => [
|
3526
3526
|
(O(), Te(sn(Y(h))))
|
3527
3527
|
]),
|
3528
3528
|
_: 1
|
3529
|
-
}, 8, ["class"])) :
|
3529
|
+
}, 8, ["class"])) : ge("v-if", !0),
|
3530
3530
|
Ut(E.$slots, "default", {}, () => [
|
3531
3531
|
E.dangerouslyUseHTMLString ? (O(), V(He, { key: 1 }, [
|
3532
|
-
|
3532
|
+
ge(" Caution here, message could've been compromised, never use user's input as message "),
|
3533
3533
|
k("p", {
|
3534
3534
|
class: me(Y(r).e("content")),
|
3535
3535
|
innerHTML: E.message
|
@@ -3544,11 +3544,11 @@ const bk = gk, ep = ["success", "info", "warning", "error"], Rt = Ld({
|
|
3544
3544
|
class: me(Y(r).e("closeBtn")),
|
3545
3545
|
onClick: Fn(x, ["stop"])
|
3546
3546
|
}, {
|
3547
|
-
default:
|
3547
|
+
default: be(() => [
|
3548
3548
|
de(Y(n))
|
3549
3549
|
]),
|
3550
3550
|
_: 1
|
3551
|
-
}, 8, ["class", "onClick"])) :
|
3551
|
+
}, 8, ["class", "onClick"])) : ge("v-if", !0)
|
3552
3552
|
], 46, ["id"]), [
|
3553
3553
|
[Bn, u.value]
|
3554
3554
|
])
|
@@ -3826,13 +3826,13 @@ function Ok(t, i, e, n, r, a) {
|
|
3826
3826
|
onAfterLeave: (b) => t.$emit("vanish"),
|
3827
3827
|
persisted: ""
|
3828
3828
|
}, {
|
3829
|
-
default:
|
3829
|
+
default: be(() => [
|
3830
3830
|
In(de(d, {
|
3831
3831
|
"z-index": t.zIndex,
|
3832
3832
|
"overlay-class": [t.ns.is("message-box"), t.modalClass],
|
3833
3833
|
mask: t.modal
|
3834
3834
|
}, {
|
3835
|
-
default:
|
3835
|
+
default: be(() => [
|
3836
3836
|
k("div", {
|
3837
3837
|
role: "dialog",
|
3838
3838
|
"aria-label": t.title,
|
@@ -3850,7 +3850,7 @@ function Ok(t, i, e, n, r, a) {
|
|
3850
3850
|
"focus-start-el": t.focusStartRef,
|
3851
3851
|
onReleaseRequested: t.onCloseRequested
|
3852
3852
|
}, {
|
3853
|
-
default:
|
3853
|
+
default: be(() => [
|
3854
3854
|
k("div", {
|
3855
3855
|
ref: "rootRef",
|
3856
3856
|
class: me([
|
@@ -3876,11 +3876,11 @@ function Ok(t, i, e, n, r, a) {
|
|
3876
3876
|
key: 0,
|
3877
3877
|
class: me([t.ns.e("status"), t.typeClass])
|
3878
3878
|
}, {
|
3879
|
-
default:
|
3879
|
+
default: be(() => [
|
3880
3880
|
(O(), Te(sn(t.iconComponent)))
|
3881
3881
|
]),
|
3882
3882
|
_: 1
|
3883
|
-
}, 8, ["class"])) :
|
3883
|
+
}, 8, ["class"])) : ge("v-if", !0),
|
3884
3884
|
k("span", null, Se(t.title), 1)
|
3885
3885
|
], 2),
|
3886
3886
|
t.showClose ? (O(), V("button", {
|
@@ -3894,13 +3894,13 @@ function Ok(t, i, e, n, r, a) {
|
|
3894
3894
|
de(o, {
|
3895
3895
|
class: me(t.ns.e("close"))
|
3896
3896
|
}, {
|
3897
|
-
default:
|
3897
|
+
default: be(() => [
|
3898
3898
|
de(s)
|
3899
3899
|
]),
|
3900
3900
|
_: 1
|
3901
3901
|
}, 8, ["class"])
|
3902
|
-
], 42, ["aria-label", "onClick", "onKeydown"])) :
|
3903
|
-
], 2)) :
|
3902
|
+
], 42, ["aria-label", "onClick", "onKeydown"])) : ge("v-if", !0)
|
3903
|
+
], 2)) : ge("v-if", !0),
|
3904
3904
|
k("div", {
|
3905
3905
|
id: t.contentId,
|
3906
3906
|
class: me(t.ns.e("content"))
|
@@ -3912,11 +3912,11 @@ function Ok(t, i, e, n, r, a) {
|
|
3912
3912
|
key: 0,
|
3913
3913
|
class: me([t.ns.e("status"), t.typeClass])
|
3914
3914
|
}, {
|
3915
|
-
default:
|
3915
|
+
default: be(() => [
|
3916
3916
|
(O(), Te(sn(t.iconComponent)))
|
3917
3917
|
]),
|
3918
3918
|
_: 1
|
3919
|
-
}, 8, ["class"])) :
|
3919
|
+
}, 8, ["class"])) : ge("v-if", !0),
|
3920
3920
|
t.hasMessage ? (O(), V("div", {
|
3921
3921
|
key: 1,
|
3922
3922
|
class: me(t.ns.e("message"))
|
@@ -3930,13 +3930,13 @@ function Ok(t, i, e, n, r, a) {
|
|
3930
3930
|
key: 0,
|
3931
3931
|
for: t.showInput ? t.inputId : void 0
|
3932
3932
|
}, {
|
3933
|
-
default:
|
3933
|
+
default: be(() => [
|
3934
3934
|
pr(Se(t.dangerouslyUseHTMLString ? "" : t.message), 1)
|
3935
3935
|
]),
|
3936
3936
|
_: 1
|
3937
3937
|
}, 8, ["for"]))
|
3938
3938
|
])
|
3939
|
-
], 2)) :
|
3939
|
+
], 2)) : ge("v-if", !0)
|
3940
3940
|
], 2),
|
3941
3941
|
In(k("div", {
|
3942
3942
|
class: me(t.ns.e("input"))
|
@@ -3975,11 +3975,11 @@ function Ok(t, i, e, n, r, a) {
|
|
3975
3975
|
onClick: (b) => t.handleAction("cancel"),
|
3976
3976
|
onKeydown: ji(Fn((b) => t.handleAction("cancel"), ["prevent"]), ["enter"])
|
3977
3977
|
}, {
|
3978
|
-
default:
|
3978
|
+
default: be(() => [
|
3979
3979
|
pr(Se(t.cancelButtonText || t.t("el.messagebox.cancel")), 1)
|
3980
3980
|
]),
|
3981
3981
|
_: 1
|
3982
|
-
}, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) :
|
3982
|
+
}, 8, ["loading", "loading-icon", "class", "round", "size", "onClick", "onKeydown"])) : ge("v-if", !0),
|
3983
3983
|
In(de(u, {
|
3984
3984
|
ref: "confirmRef",
|
3985
3985
|
type: "primary",
|
@@ -3992,7 +3992,7 @@ function Ok(t, i, e, n, r, a) {
|
|
3992
3992
|
onClick: (b) => t.handleAction("confirm"),
|
3993
3993
|
onKeydown: ji(Fn((b) => t.handleAction("confirm"), ["prevent"]), ["enter"])
|
3994
3994
|
}, {
|
3995
|
-
default:
|
3995
|
+
default: be(() => [
|
3996
3996
|
pr(Se(t.confirmButtonText || t.t("el.messagebox.confirm")), 1)
|
3997
3997
|
]),
|
3998
3998
|
_: 1
|
@@ -5983,7 +5983,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
5983
5983
|
disabled: "",
|
5984
5984
|
clearable: ""
|
5985
5985
|
}, {
|
5986
|
-
suffix:
|
5986
|
+
suffix: be(() => [
|
5987
5987
|
k("img", {
|
5988
5988
|
class: "del-icon",
|
5989
5989
|
src: _C,
|
@@ -6095,7 +6095,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6095
6095
|
]);
|
6096
6096
|
};
|
6097
6097
|
}
|
6098
|
-
}, XC = /* @__PURE__ */ pt(QC, [["__scopeId", "data-v-380eda98"]]), It = (t) => (yt("data-v-
|
6098
|
+
}, XC = /* @__PURE__ */ pt(QC, [["__scopeId", "data-v-380eda98"]]), It = (t) => (yt("data-v-1f28a99d"), t = t(), kt(), t), ZC = { class: "point-meeting-top" }, e1 = { class: "top-group" }, t1 = /* @__PURE__ */ It(() => /* @__PURE__ */ k("div", { class: "duration-icon" }, null, -1)), n1 = { class: "point-meeting-wrapper" }, i1 = {
|
6099
6099
|
key: 0,
|
6100
6100
|
class: "waiting-mask-video"
|
6101
6101
|
}, r1 = /* @__PURE__ */ It(() => /* @__PURE__ */ k("div", { class: "icon" }, null, -1)), a1 = /* @__PURE__ */ It(() => /* @__PURE__ */ k("div", { class: "title" }, "麦克风", -1)), o1 = [
|
@@ -6160,15 +6160,15 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6160
6160
|
const o = t, s = i, c = A(), u = A(""), l = A(""), d = A(""), b = A(null), g = A([]);
|
6161
6161
|
A([]);
|
6162
6162
|
const h = A([]), m = A(!1), p = A(!1), f = A(!1), v = A(!1), y = A(!0), T = A(!1), x = A(!1), S = A(0), E = A(!0), _ = A(!1), I = A(3), B = se(() => h.value.length), G = se(() => ld(S.value)), X = {
|
6163
|
-
mounted: (L,
|
6164
|
-
|
6163
|
+
mounted: (L, ve) => {
|
6164
|
+
ve.value && (L.style.cursor = "move", L.onmousedown = (_e) => {
|
6165
6165
|
_e.stopPropagation(), _e.preventDefault();
|
6166
|
-
const
|
6167
|
-
let pe = Jm(
|
6166
|
+
const Ye = document.getElementById("point-meeting"), ae = /^matrix3d\((?:[-\d.]+,\s*){12}([-\d.]+),\s*([-\d.]+)(?:,\s*[-\d.]+){2}\)/, xe = /^matrix\((?:[-\d.]+,\s*){4}([-\d.]+),\s*([-\d.]+)\)$/;
|
6167
|
+
let pe = Jm(Ye, "transform"), Qe = pe.match(ae) || pe.match(xe), $e = _e.clientX, re = _e.clientY, ze = Qe[1], Ht = Qe[2], ut = $e - ze, ln = re - Ht;
|
6168
6168
|
L.onmousemove = function(Yt) {
|
6169
6169
|
Yt.stopPropagation(), Yt.preventDefault();
|
6170
6170
|
let Ln = Yt.clientX - ut, yo = Yt.clientY - ln;
|
6171
|
-
|
6171
|
+
Ye.style.transform = `translate(${Ln}px, ${yo}px)`;
|
6172
6172
|
}, L.onmouseup = function(Yt) {
|
6173
6173
|
L.onmousemove = null, L.onmouseup = null;
|
6174
6174
|
}, window.onmouseup = function(Yt) {
|
@@ -6177,9 +6177,12 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6177
6177
|
});
|
6178
6178
|
}
|
6179
6179
|
};
|
6180
|
-
Ve(
|
6181
|
-
|
6182
|
-
|
6180
|
+
Ve(
|
6181
|
+
() => I.value,
|
6182
|
+
(L) => {
|
6183
|
+
L <= 0 && (_.value = !1, r && clearInterval(r));
|
6184
|
+
}
|
6185
|
+
);
|
6183
6186
|
async function te() {
|
6184
6187
|
a && await a.createRoom();
|
6185
6188
|
}
|
@@ -6231,17 +6234,17 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6231
6234
|
function Ce() {
|
6232
6235
|
if (!T.value)
|
6233
6236
|
return;
|
6234
|
-
const L = document.querySelector("#point-meeting-contain .layout-blur"),
|
6237
|
+
const L = document.querySelector("#point-meeting-contain .layout-blur"), ve = document.querySelector("#point-meeting-contain .layout-normal");
|
6235
6238
|
if (y.value) {
|
6236
6239
|
if (L.hasChildNodes) {
|
6237
6240
|
const _e = L.firstElementChild;
|
6238
6241
|
if (_e.id === `participant-${u.value}`)
|
6239
6242
|
L.style.visibility = "hidden", y.value = !1;
|
6240
|
-
else if (
|
6241
|
-
const
|
6242
|
-
L.appendChild(
|
6243
|
+
else if (ve.hasChildNodes) {
|
6244
|
+
const Ye = ve.firstElementChild;
|
6245
|
+
L.appendChild(Ye), ve.appendChild(_e), L.style.visibility = "hidden", y.value = !1;
|
6243
6246
|
} else
|
6244
|
-
|
6247
|
+
ve.appendChild(_e), L.style.visibility = "hidden", y.value = !1;
|
6245
6248
|
}
|
6246
6249
|
} else if (v.value) {
|
6247
6250
|
e.message("error", "当前正在共享屏幕,无法开启预览");
|
@@ -6267,17 +6270,17 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6267
6270
|
if (o.inviteWays === "phoneCall")
|
6268
6271
|
o.meetingType === "video" || o.meetingType === "voice" ? a.makeCall(o.invitePhone, o.invitePhone).then(() => {
|
6269
6272
|
e.message("success", "外呼邀请发送成功"), x.value = !0;
|
6270
|
-
}).catch((
|
6271
|
-
e.message("error", "外呼邀请发送失败"), console.error(
|
6273
|
+
}).catch((ve) => {
|
6274
|
+
e.message("error", "外呼邀请发送失败"), console.error(ve);
|
6272
6275
|
}) : o.meetingType === "miniLink" && (s("miniLinkSend", {
|
6273
6276
|
roomNum: d.value,
|
6274
6277
|
phone: o.invitePhone
|
6275
6278
|
}), x.value = !0);
|
6276
6279
|
else if (o.inviteWays === "identity") {
|
6277
|
-
const
|
6280
|
+
const ve = JSON.stringify({
|
6278
6281
|
meetingType: o.meetingType
|
6279
6282
|
});
|
6280
|
-
a.inviteThirdParty(o.inviteIdentity, a.org,
|
6283
|
+
a.inviteThirdParty(o.inviteIdentity, a.org, ve).then(() => {
|
6281
6284
|
e.message("success", "PC邀请发送成功");
|
6282
6285
|
}).catch(() => {
|
6283
6286
|
e.message("error", "PC邀请发送失败");
|
@@ -6295,7 +6298,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6295
6298
|
messsage: "屏幕共享已关闭"
|
6296
6299
|
});
|
6297
6300
|
}), a.on("videoCallRender", (L) => {
|
6298
|
-
K("videoCallRender"),
|
6301
|
+
K("videoCallRender"), Ke(L);
|
6299
6302
|
}), a.on("audioCallRender", (L) => {
|
6300
6303
|
K("audioCallRender"), Tt(L);
|
6301
6304
|
}), a.on("roomDisconnected", () => {
|
@@ -6316,30 +6319,31 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6316
6319
|
document.fullscreenElement || document.msFullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement ? document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitCancelFullScreen ? document.webkitCancelFullScreen() : document.msExitFullscreen && document.msExitFullscreen() : (await Ae(), c.value.requestFullscreen && c.value.requestFullscreen());
|
6317
6320
|
}
|
6318
6321
|
function ct(L) {
|
6319
|
-
|
6322
|
+
const ve = /^(sip_)+?/;
|
6323
|
+
return /^(sip_0)+?/.test(L) ? L === "sip_0" + o.invitePhone : ve.test(L) ? L === "sip_" + o.invitePhone : L === o.invitePhone;
|
6320
6324
|
}
|
6321
6325
|
function ue(L) {
|
6322
6326
|
if (B.value <= 0)
|
6323
6327
|
h.value.push(L);
|
6324
6328
|
else {
|
6325
|
-
const
|
6326
|
-
|
6329
|
+
const ve = h.value.findIndex((_e) => _e.identity === L.identity);
|
6330
|
+
ve !== -1 ? h.value.splice(ve, 1, L) : h.value.push(L);
|
6327
6331
|
}
|
6328
6332
|
}
|
6329
6333
|
function Ee(L) {
|
6330
6334
|
if (!(B.value <= 0)) {
|
6331
|
-
const
|
6332
|
-
|
6335
|
+
const ve = h.value.findIndex((_e) => _e.identity === L.identity);
|
6336
|
+
ve !== -1 && h.value.splice(ve, 1);
|
6333
6337
|
}
|
6334
6338
|
}
|
6335
|
-
function
|
6339
|
+
function Ke(L) {
|
6336
6340
|
if (console.log("视频通话渲染" + L.identity + ":", L), L.isLocal) {
|
6337
6341
|
const ut = JSON.parse(L.metadata);
|
6338
6342
|
p.value = L.isCameraEnabled, m.value = L.isMicrophoneEnabled, v.value = L.isScreenShareEnabled, f.value = !ut.isDeafness, u.value = L.identity, l.value = L.name;
|
6339
6343
|
}
|
6340
|
-
const
|
6341
|
-
let _e = document.getElementById(`participant-${L.identity}`),
|
6342
|
-
if (
|
6344
|
+
const ve = document.getElementById("point-meeting-contain");
|
6345
|
+
let _e = document.getElementById(`participant-${L.identity}`), Ye = document.querySelector("#point-meeting-contain .layout-blur"), ae = document.querySelector("#point-meeting-contain .layout-normal");
|
6346
|
+
if (Ye || (Ye = document.createElement("div"), Ye.className = "layout-blur", ve.appendChild(Ye)), ae || (ae = document.createElement("div"), ae.className = "layout-normal", ve.insertBefore(ae, ve.firstElementChild ?? null)), !ve) {
|
6343
6347
|
e.message("error", "会议容器不存在");
|
6344
6348
|
return;
|
6345
6349
|
}
|
@@ -6369,19 +6373,19 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6369
6373
|
</div>
|
6370
6374
|
</div>
|
6371
6375
|
`, L.isLocal) {
|
6372
|
-
if (
|
6376
|
+
if (Ye.hasChildNodes) {
|
6373
6377
|
let ut = null;
|
6374
|
-
for (; ut =
|
6378
|
+
for (; ut = Ye.firstElementChild; )
|
6375
6379
|
ae.insertBefore(ut, ae.firstElementChild ?? null);
|
6376
6380
|
}
|
6377
|
-
|
6381
|
+
Ye.appendChild(_e);
|
6378
6382
|
} else {
|
6379
6383
|
if (B.value >= 2)
|
6380
6384
|
return;
|
6381
6385
|
if (ae.hasChildNodes) {
|
6382
6386
|
let ut = null;
|
6383
6387
|
for (; ut = ae.firstElementChild; )
|
6384
|
-
|
6388
|
+
Ye.appendChild(ut);
|
6385
6389
|
}
|
6386
6390
|
ae.appendChild(_e);
|
6387
6391
|
}
|
@@ -6393,7 +6397,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6393
6397
|
return;
|
6394
6398
|
}
|
6395
6399
|
o.joinType === "launch" && !L.isLocal && (o.meetingType === "miniLink" ? ct(L.identity) && (x.value = !1) : ct(L.identity) && (L != null && L.audioTrack) && (x.value = !1));
|
6396
|
-
let pe = document.getElementById(`describe-${L.identity}`),
|
6400
|
+
let pe = document.getElementById(`describe-${L.identity}`), Qe = document.getElementById(`board-${L.identity}`), $e = document.getElementById(`microphone-${L.identity}`);
|
6397
6401
|
const re = () => {
|
6398
6402
|
a.changeParticipantMicrophoneStatus(L.identity, !0);
|
6399
6403
|
}, ze = () => {
|
@@ -6409,7 +6413,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6409
6413
|
} else
|
6410
6414
|
ut.appendChild(Ln);
|
6411
6415
|
};
|
6412
|
-
if (_e && (_e.onclick = Ht), L.isScreenShareEnabled || L.isCameraEnabled ? (
|
6416
|
+
if (_e && (_e.onclick = Ht), L.isScreenShareEnabled || L.isCameraEnabled ? (Qe && (_e.removeChild(Qe), Qe = null), pe || (pe = document.createElement("div"), pe.className = "describe", pe.id = `describe-${L.identity}`, pe.innerHTML = `
|
6413
6417
|
<div class="describe-left">
|
6414
6418
|
<div class="avatar"></div>
|
6415
6419
|
<div id="${L.identity}" class="identity">${L.isLocal ? L.name + "(我)" : L.name}</div>
|
@@ -6417,13 +6421,13 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6417
6421
|
<div class="tools">
|
6418
6422
|
<div id="microphone-${L.identity}" class="microphone"></div>
|
6419
6423
|
</div>
|
6420
|
-
`, _e.appendChild(pe))) : (pe && (_e.removeChild(pe), pe = null),
|
6424
|
+
`, _e.appendChild(pe))) : (pe && (_e.removeChild(pe), pe = null), Qe || (Qe = document.createElement("div"), Qe.className = "board", Qe.id = `board-${L.identity}`, Qe.innerHTML = `
|
6421
6425
|
<div class="board-icon"></div>
|
6422
6426
|
<div class="board-title">
|
6423
6427
|
<span class="board-title-text">${L.name}</span>
|
6424
6428
|
<div id="microphone-${L.identity}" class="microphone"></div>
|
6425
6429
|
</div>
|
6426
|
-
`,
|
6430
|
+
`, Qe && _e.appendChild(Qe))), $e = document.getElementById(`microphone-${L.identity}`), $e && L.isMicrophoneEnabled ? ($e.className = "microphone microphone-active", $e.onclick = re) : $e && !L.isMicrophoneEnabled && ($e.className = "microphone microphone-inactive", $e.onclick = ze), L.videoTrack && L.videoTrack.attach(xe), L.isLocal || L.audioTrack && L.audioTrack.attach(xe), ue(L), h.value.length >= 1) {
|
6427
6431
|
const ut = JSON.parse(a.room.metadata);
|
6428
6432
|
E.value && (n && (clearInterval(n), n = null), n = setInterval(() => {
|
6429
6433
|
new Date(ut.roomStartTime).getTime() > 0 ? (S.value = Math.floor(
|
@@ -6434,42 +6438,45 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6434
6438
|
}
|
6435
6439
|
function Tt(L) {
|
6436
6440
|
if (console.log("语音通话渲染" + L.identity + ":", L), L.isLocal) {
|
6437
|
-
const
|
6438
|
-
m.value = L.isMicrophoneEnabled, f.value = !
|
6441
|
+
const ve = JSON.parse(L.metadata);
|
6442
|
+
m.value = L.isMicrophoneEnabled, f.value = !ve.isDeafness, u.value = L.identity, l.value = L.name;
|
6439
6443
|
}
|
6440
|
-
|
6441
|
-
|
6442
|
-
|
6443
|
-
|
6444
|
-
|
6445
|
-
}
|
6446
|
-
if (!_e && !L.remove) {
|
6447
|
-
if (o.joinType === "launch" && !L.isLocal && !ct(L.identity)) {
|
6448
|
-
a.moveoutParticipant(L.identity);
|
6444
|
+
if (!L.isLocal) {
|
6445
|
+
const ve = document.getElementById("point-meeting-contain");
|
6446
|
+
let _e = document.getElementById(`participant-${L.identity}`);
|
6447
|
+
if (!ve) {
|
6448
|
+
e.message("error", "会议容器不存在");
|
6449
6449
|
return;
|
6450
6450
|
}
|
6451
|
-
|
6451
|
+
if (!_e && !L.remove) {
|
6452
|
+
if (o.joinType === "launch" && !ct(L.identity)) {
|
6453
|
+
a.moveoutParticipant(L.identity);
|
6454
|
+
return;
|
6455
|
+
}
|
6456
|
+
_e = document.createElement("div"), _e.id = `participant-${L.identity}`, _e.className = L.isLocal ? "participant local" : "participant", _e.innerHTML = `
|
6452
6457
|
<audio id="audio-${L.identity}" class="p-audio" autoplay></audio>
|
6453
6458
|
<div class="participant-icon"></div>
|
6454
6459
|
<div class="participant-title">
|
6455
6460
|
<span class="participant-title-text">${L.name}</span>
|
6456
6461
|
<div id="microphone-${L.identity}" class="microphone"></div>
|
6457
6462
|
</div>
|
6458
|
-
`, L.isLocal ?
|
6463
|
+
`, L.isLocal ? ve.insertBefore(_e, ve.firstChild ?? null) : ve.appendChild(_e), ue(L);
|
6464
|
+
}
|
6465
|
+
let Ye = document.getElementById(`audio=${L.identity}`);
|
6466
|
+
L.remove && (Ye && (Ye.srcObject = null, Ye.src = "", Ye.remove()), _e && _e.remove(), Ee(L), L.audioTrack && L.audioTrack.detach()), o.joinType === "launch" && ct(L.identity) && L != null && L.audioTrack && (x.value = !1);
|
6467
|
+
let ae = document.getElementById(`microphone-${L.identity}`);
|
6468
|
+
const xe = () => {
|
6469
|
+
a.changeParticipantMicrophoneStatus(L.identity, !0);
|
6470
|
+
}, pe = () => {
|
6471
|
+
a.changeParticipantMicrophoneStatus(L.identity, !1);
|
6472
|
+
};
|
6473
|
+
ae && L.isMicrophoneEnabled ? (ae.className = "microphone microphone-active", ae.onclick = xe) : ae && !L.isMicrophoneEnabled && (ae.className = "microphone microphone-inactive", ae.onclick = pe), L.audioTrack && L.audioTrack.attach(Ye);
|
6459
6474
|
}
|
6460
|
-
|
6461
|
-
|
6462
|
-
|
6463
|
-
|
6464
|
-
|
6465
|
-
}, pe = () => {
|
6466
|
-
a.changeParticipantMicrophoneStatus(L.identity, !1);
|
6467
|
-
};
|
6468
|
-
if (ae && L.isMicrophoneEnabled ? (ae.className = "microphone microphone-active", ae.onclick = xe) : ae && !L.isMicrophoneEnabled && (ae.className = "microphone microphone-inactive", ae.onclick = pe), L.isLocal || L.audioTrack && L.audioTrack.attach(Qe), ue(L), h.value.length >= 1) {
|
6469
|
-
const Je = JSON.parse(a.room.metadata);
|
6470
|
-
console.log("metadata2222:", Je), E.value && (n && (clearInterval(n), n = null), n = setInterval(() => {
|
6471
|
-
new Date(Je.roomStartTime).getTime() > 0 ? (S.value = Math.floor(
|
6472
|
-
(Date.now() - new Date(Je.roomStartTime).getTime()) / 1e3
|
6475
|
+
if (ue(L), h.value.length >= 1) {
|
6476
|
+
const ve = JSON.parse(a.room.metadata);
|
6477
|
+
console.log("metadata2222:", ve), E.value && (n && (clearInterval(n), n = null), n = setInterval(() => {
|
6478
|
+
new Date(ve.roomStartTime).getTime() > 0 ? (S.value = Math.floor(
|
6479
|
+
(Date.now() - new Date(ve.roomStartTime).getTime()) / 1e3
|
6473
6480
|
), E.value = !1) : S.value++;
|
6474
6481
|
}, 1e3));
|
6475
6482
|
}
|
@@ -6478,7 +6485,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6478
6485
|
a = window.liveClient, console.log("liveClient", a), Le(), o.joinType === "launch" ? (o.meetingType === "video" || o.meetingType === "miniLink" ? a.roomMode = "auto" : o.meetingType === "voice" && (a.roomMode = "audio"), te()) : (o.meetingType === "video" || o.meetingType === "miniLink" ? a.roomMode = "auto" : o.meetingType === "voice" && (a.roomMode = "audio"), ie()), ce(4);
|
6479
6486
|
}), Cn(() => {
|
6480
6487
|
T.value && qe(), N();
|
6481
|
-
}), (L,
|
6488
|
+
}), (L, ve) => (O(), V("div", {
|
6482
6489
|
ref_key: "rootElm",
|
6483
6490
|
ref: c,
|
6484
6491
|
class: "point-meeting",
|
@@ -6510,9 +6517,9 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6510
6517
|
"meeting-contain",
|
6511
6518
|
t.meetingType === "video" || t.meetingType === "miniLink" ? "meeting-contain-video" : "meeting-contain-audio"
|
6512
6519
|
]),
|
6513
|
-
onMousemove:
|
6520
|
+
onMousemove: ve[0] || (ve[0] = (_e) => ce(4))
|
6514
6521
|
}, [
|
6515
|
-
x.value ? (O(), V("div", i1, "呼叫中...")) :
|
6522
|
+
x.value ? (O(), V("div", i1, "呼叫中...")) : ge("", !0)
|
6516
6523
|
], 34)
|
6517
6524
|
]),
|
6518
6525
|
k("div", {
|
@@ -6537,7 +6544,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6537
6544
|
class: "point-meeting-foot-btn cam-off",
|
6538
6545
|
onClick: D
|
6539
6546
|
}, m1))
|
6540
|
-
], 64)) :
|
6547
|
+
], 64)) : ge("", !0),
|
6541
6548
|
f.value ? (O(), V("div", {
|
6542
6549
|
key: 3,
|
6543
6550
|
class: "point-meeting-foot-btn speaker-on",
|
@@ -6562,7 +6569,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6562
6569
|
T1,
|
6563
6570
|
k("div", x1, Se(y.value ? "关闭预览" : "开启预览"), 1)
|
6564
6571
|
])
|
6565
|
-
], 64)) :
|
6572
|
+
], 64)) : ge("", !0),
|
6566
6573
|
k("div", {
|
6567
6574
|
class: "point-meeting-foot-btn cancel",
|
6568
6575
|
onClick: qe
|
@@ -6570,7 +6577,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6570
6577
|
], 2)
|
6571
6578
|
], 4));
|
6572
6579
|
}
|
6573
|
-
}, Va = /* @__PURE__ */ pt(N1, [["__scopeId", "data-v-
|
6580
|
+
}, Va = /* @__PURE__ */ pt(N1, [["__scopeId", "data-v-1f28a99d"]]), hs = {
|
6574
6581
|
__name: "LivePoint",
|
6575
6582
|
props: {
|
6576
6583
|
isCallBoardShow: {
|
@@ -6651,7 +6658,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6651
6658
|
onVideoCall: d,
|
6652
6659
|
onMiniCall: b,
|
6653
6660
|
onCallBoardClose: v[0] || (v[0] = (y) => f.$emit("callBoardClose"))
|
6654
|
-
}, null, 8, ["default-call-num"])) :
|
6661
|
+
}, null, 8, ["default-call-num"])) : ge("", !0)
|
6655
6662
|
])),
|
6656
6663
|
(O(), Te(gi, { to: "body" }, [
|
6657
6664
|
t.isInviteReceiveShow ? (O(), Te(XC, {
|
@@ -6661,7 +6668,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6661
6668
|
onReceiveBoardClose: f.inviteReceiveClose,
|
6662
6669
|
onAcceptInviteCall: g,
|
6663
6670
|
onRefuseInviteCall: h
|
6664
|
-
}, null, 8, ["meetingType", "inviteData", "onReceiveBoardClose"])) :
|
6671
|
+
}, null, 8, ["meetingType", "inviteData", "onReceiveBoardClose"])) : ge("", !0)
|
6665
6672
|
])),
|
6666
6673
|
(O(), Te(gi, { to: "body" }, [
|
6667
6674
|
o.value ? (O(), Te(Va, {
|
@@ -6675,7 +6682,7 @@ const yC = (t = {}, { baseUrl: i, token: e } = {}) => Vt.get("/api/conferenceRoo
|
|
6675
6682
|
isDraggable: t.isDraggable,
|
6676
6683
|
onMeetingDialogClose: p,
|
6677
6684
|
onMiniLinkSend: m
|
6678
|
-
}, null, 8, ["joinType", "meetingNum", "meetingType", "invitePhone", "inviteWays", "inviteIdentity", "isDraggable"])) :
|
6685
|
+
}, null, 8, ["joinType", "meetingNum", "meetingType", "invitePhone", "inviteWays", "inviteIdentity", "isDraggable"])) : ge("", !0)
|
6679
6686
|
]))
|
6680
6687
|
]));
|
6681
6688
|
}
|
@@ -6728,7 +6735,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6728
6735
|
class: "telephoneInvit",
|
6729
6736
|
width: "460"
|
6730
6737
|
}, {
|
6731
|
-
header:
|
6738
|
+
header: be(() => [
|
6732
6739
|
k("div", U1, [
|
6733
6740
|
$1,
|
6734
6741
|
k("div", {
|
@@ -6737,7 +6744,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6737
6744
|
})
|
6738
6745
|
])
|
6739
6746
|
]),
|
6740
|
-
default:
|
6747
|
+
default: be(() => [
|
6741
6748
|
k("div", j1, [
|
6742
6749
|
de(g, {
|
6743
6750
|
model: a,
|
@@ -6748,12 +6755,12 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6748
6755
|
"label-width": "70",
|
6749
6756
|
class: "customForm"
|
6750
6757
|
}, {
|
6751
|
-
default:
|
6758
|
+
default: be(() => [
|
6752
6759
|
de(b, {
|
6753
6760
|
label: "姓名",
|
6754
6761
|
prop: "name"
|
6755
6762
|
}, {
|
6756
|
-
default:
|
6763
|
+
default: be(() => [
|
6757
6764
|
de(d, {
|
6758
6765
|
modelValue: a.name,
|
6759
6766
|
"onUpdate:modelValue": l[1] || (l[1] = (m) => a.name = m)
|
@@ -6765,7 +6772,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6765
6772
|
label: "电话",
|
6766
6773
|
prop: "phone"
|
6767
6774
|
}, {
|
6768
|
-
default:
|
6775
|
+
default: be(() => [
|
6769
6776
|
de(d, {
|
6770
6777
|
modelValue: a.phone,
|
6771
6778
|
"onUpdate:modelValue": l[2] || (l[2] = (m) => a.phone = m)
|
@@ -6774,7 +6781,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6774
6781
|
_: 1
|
6775
6782
|
}),
|
6776
6783
|
de(b, { "label-width": "0" }, {
|
6777
|
-
default:
|
6784
|
+
default: be(() => [
|
6778
6785
|
k("div", { class: "isokmul" }, [
|
6779
6786
|
k("div", { onClick: s }, "取消"),
|
6780
6787
|
k("div", { onClick: c }, "确定")
|
@@ -6834,7 +6841,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6834
6841
|
class: "telephoneInvit",
|
6835
6842
|
width: "460"
|
6836
6843
|
}, {
|
6837
|
-
header:
|
6844
|
+
header: be(() => [
|
6838
6845
|
k("div", H1, [
|
6839
6846
|
q1,
|
6840
6847
|
k("div", {
|
@@ -6843,7 +6850,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6843
6850
|
})
|
6844
6851
|
])
|
6845
6852
|
]),
|
6846
|
-
default:
|
6853
|
+
default: be(() => [
|
6847
6854
|
k("div", z1, [
|
6848
6855
|
de(h, {
|
6849
6856
|
model: a,
|
@@ -6854,12 +6861,12 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6854
6861
|
"label-width": "70",
|
6855
6862
|
class: "customForm"
|
6856
6863
|
}, {
|
6857
|
-
default:
|
6864
|
+
default: be(() => [
|
6858
6865
|
de(b, {
|
6859
6866
|
label: "分组名",
|
6860
6867
|
prop: "name"
|
6861
6868
|
}, {
|
6862
|
-
default:
|
6869
|
+
default: be(() => [
|
6863
6870
|
de(d, {
|
6864
6871
|
modelValue: a.name,
|
6865
6872
|
"onUpdate:modelValue": l[1] || (l[1] = (p) => a.name = p)
|
@@ -6871,7 +6878,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6871
6878
|
label: "排序",
|
6872
6879
|
prop: "sort"
|
6873
6880
|
}, {
|
6874
|
-
default:
|
6881
|
+
default: be(() => [
|
6875
6882
|
de(g, {
|
6876
6883
|
modelValue: a.sort,
|
6877
6884
|
"onUpdate:modelValue": l[2] || (l[2] = (p) => a.sort = p),
|
@@ -6883,7 +6890,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6883
6890
|
_: 1
|
6884
6891
|
}),
|
6885
6892
|
de(b, { "label-width": "0" }, {
|
6886
|
-
default:
|
6893
|
+
default: be(() => [
|
6887
6894
|
k("div", { class: "isokmul" }, [
|
6888
6895
|
k("div", { onClick: s }, "取消"),
|
6889
6896
|
k("div", { onClick: c }, "确定")
|
@@ -6944,7 +6951,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6944
6951
|
class: "telephoneInvit",
|
6945
6952
|
width: "460"
|
6946
6953
|
}, {
|
6947
|
-
header:
|
6954
|
+
header: be(() => [
|
6948
6955
|
k("div", K1, [
|
6949
6956
|
Y1,
|
6950
6957
|
k("div", {
|
@@ -6953,7 +6960,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6953
6960
|
})
|
6954
6961
|
])
|
6955
6962
|
]),
|
6956
|
-
default:
|
6963
|
+
default: be(() => [
|
6957
6964
|
k("div", Q1, [
|
6958
6965
|
de(m, {
|
6959
6966
|
model: a,
|
@@ -6964,12 +6971,12 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6964
6971
|
"label-width": "70",
|
6965
6972
|
class: "customForm"
|
6966
6973
|
}, {
|
6967
|
-
default:
|
6974
|
+
default: be(() => [
|
6968
6975
|
de(g, {
|
6969
6976
|
label: "分组名",
|
6970
6977
|
prop: "name"
|
6971
6978
|
}, {
|
6972
|
-
default:
|
6979
|
+
default: be(() => [
|
6973
6980
|
de(b, {
|
6974
6981
|
modelValue: a.name,
|
6975
6982
|
"onUpdate:modelValue": d[1] || (d[1] = (f) => a.name = f)
|
@@ -6981,7 +6988,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6981
6988
|
label: "排序",
|
6982
6989
|
prop: "sort"
|
6983
6990
|
}, {
|
6984
|
-
default:
|
6991
|
+
default: be(() => [
|
6985
6992
|
de(h, {
|
6986
6993
|
modelValue: a.sort,
|
6987
6994
|
"onUpdate:modelValue": d[2] || (d[2] = (f) => a.sort = f),
|
@@ -6993,7 +7000,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
6993
7000
|
_: 1
|
6994
7001
|
}),
|
6995
7002
|
de(g, { "label-width": "0" }, {
|
6996
|
-
default:
|
7003
|
+
default: be(() => [
|
6997
7004
|
k("div", { class: "isokmul" }, [
|
6998
7005
|
k("div", { onClick: c }, "取消"),
|
6999
7006
|
k("div", { onClick: u }, "确定")
|
@@ -7238,7 +7245,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7238
7245
|
class: "addresslogClass",
|
7239
7246
|
width: "878"
|
7240
7247
|
}, {
|
7241
|
-
header:
|
7248
|
+
header: be(() => [
|
7242
7249
|
k("div", tS, [
|
7243
7250
|
k("div", nS, [
|
7244
7251
|
(O(), V(He, null, dt(n, (Me) => k("div", {
|
@@ -7253,7 +7260,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7253
7260
|
})
|
7254
7261
|
])
|
7255
7262
|
]),
|
7256
|
-
default:
|
7263
|
+
default: be(() => [
|
7257
7264
|
rS,
|
7258
7265
|
k("div", aS, [
|
7259
7266
|
k("div", oS, [
|
@@ -7263,7 +7270,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7263
7270
|
"onUpdate:modelValue": Z[1] || (Z[1] = (Me) => c.value = Me),
|
7264
7271
|
placeholder: "请输入名称进行搜索"
|
7265
7272
|
}, {
|
7266
|
-
suffix:
|
7273
|
+
suffix: be(() => [
|
7267
7274
|
sS
|
7268
7275
|
]),
|
7269
7276
|
_: 1
|
@@ -7278,7 +7285,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7278
7285
|
onCheck: I,
|
7279
7286
|
"filter-node-method": E
|
7280
7287
|
}, {
|
7281
|
-
default:
|
7288
|
+
default: be(({ node: Me, data: qe }) => [
|
7282
7289
|
k("span", cS, [
|
7283
7290
|
qe.children ? (O(), V("span", {
|
7284
7291
|
key: 0,
|
@@ -7307,7 +7314,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7307
7314
|
onCheck: B,
|
7308
7315
|
"filter-node-method": E
|
7309
7316
|
}, {
|
7310
|
-
default:
|
7317
|
+
default: be(({ node: Me, data: qe }) => [
|
7311
7318
|
k("span", fS, [
|
7312
7319
|
qe.children ? (O(), V("div", hS, [
|
7313
7320
|
k("span", {
|
@@ -7323,7 +7330,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7323
7330
|
class: "node-option",
|
7324
7331
|
onClick: (st) => M(qe)
|
7325
7332
|
}, "删除", 8, bS)
|
7326
|
-
])) :
|
7333
|
+
])) : ge("", !0)
|
7327
7334
|
])) : (O(), V("span", yS, [
|
7328
7335
|
kS,
|
7329
7336
|
k("span", {
|
@@ -7792,9 +7799,9 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7792
7799
|
"label-position": "right",
|
7793
7800
|
class: "customForm"
|
7794
7801
|
}, {
|
7795
|
-
default:
|
7802
|
+
default: be(() => [
|
7796
7803
|
de(S, { label: "会议主题" }, {
|
7797
|
-
default:
|
7804
|
+
default: be(() => [
|
7798
7805
|
de(x, {
|
7799
7806
|
modelValue: a.roomName,
|
7800
7807
|
"onUpdate:modelValue": T[1] || (T[1] = (te) => a.roomName = te),
|
@@ -7805,7 +7812,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7805
7812
|
_: 1
|
7806
7813
|
}),
|
7807
7814
|
de(S, { label: "会场名称" }, {
|
7808
|
-
default:
|
7815
|
+
default: be(() => [
|
7809
7816
|
de(x, {
|
7810
7817
|
modelValue: a.venueName,
|
7811
7818
|
"onUpdate:modelValue": T[2] || (T[2] = (te) => a.venueName = te),
|
@@ -7816,7 +7823,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7816
7823
|
_: 1
|
7817
7824
|
}),
|
7818
7825
|
de(S, { label: "组会单位" }, {
|
7819
|
-
default:
|
7826
|
+
default: be(() => [
|
7820
7827
|
de(x, {
|
7821
7828
|
modelValue: a.organizingUnit,
|
7822
7829
|
"onUpdate:modelValue": T[3] || (T[3] = (te) => a.organizingUnit = te),
|
@@ -7853,7 +7860,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7853
7860
|
])
|
7854
7861
|
]),
|
7855
7862
|
de(S, { label: "开始时间" }, {
|
7856
|
-
default:
|
7863
|
+
default: be(() => [
|
7857
7864
|
k("div", ZS, [
|
7858
7865
|
de(E, {
|
7859
7866
|
modelValue: a.beginDate,
|
@@ -7899,14 +7906,14 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7899
7906
|
_: 1
|
7900
7907
|
}),
|
7901
7908
|
de(S, { label: "时区" }, {
|
7902
|
-
default:
|
7909
|
+
default: be(() => [
|
7903
7910
|
de(B, {
|
7904
7911
|
modelValue: a.timeZone,
|
7905
7912
|
"onUpdate:modelValue": T[8] || (T[8] = (te) => a.timeZone = te),
|
7906
7913
|
disabled: n.previewType === "detail",
|
7907
7914
|
placeholder: "请选择"
|
7908
7915
|
}, {
|
7909
|
-
default:
|
7916
|
+
default: be(() => [
|
7910
7917
|
(O(!0), V(He, null, dt(s.value, (te) => (O(), Te(I, {
|
7911
7918
|
key: te.value,
|
7912
7919
|
label: te.label,
|
@@ -7919,7 +7926,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7919
7926
|
_: 1
|
7920
7927
|
}),
|
7921
7928
|
de(S, { label: "会前提醒" }, {
|
7922
|
-
default:
|
7929
|
+
default: be(() => [
|
7923
7930
|
k("div", tw, [
|
7924
7931
|
k("div", nw, [
|
7925
7932
|
(O(!0), V(He, null, dt(c.value, (te, ie) => (O(), V("div", {
|
@@ -7942,7 +7949,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7942
7949
|
placeholder: "请选择",
|
7943
7950
|
style: { width: "68px", "margin-right": "10px" }
|
7944
7951
|
}, {
|
7945
|
-
default:
|
7952
|
+
default: be(() => [
|
7946
7953
|
(O(!0), V(He, null, dt(u.value, (K) => (O(), Te(I, {
|
7947
7954
|
key: K.value,
|
7948
7955
|
label: K.label,
|
@@ -7955,7 +7962,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7955
7962
|
key: 0,
|
7956
7963
|
class: "del-btn",
|
7957
7964
|
onClick: (K) => b(ie)
|
7958
|
-
}, " 删除 ", 8, iw)) :
|
7965
|
+
}, " 删除 ", 8, iw)) : ge("", !0)
|
7959
7966
|
]))), 128))
|
7960
7967
|
]),
|
7961
7968
|
n.previewType !== "detail" ? (O(), V("div", {
|
@@ -7968,7 +7975,7 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
7968
7975
|
_: 1
|
7969
7976
|
}),
|
7970
7977
|
de(S, { label: "会议设置" }, {
|
7971
|
-
default:
|
7978
|
+
default: be(() => [
|
7972
7979
|
k("div", aw, [
|
7973
7980
|
de(G, {
|
7974
7981
|
modelValue: a.joinBeforeHostEnabled,
|
@@ -8010,13 +8017,13 @@ const M1 = "/assets/img/multi/launch_icon.png", I1 = "/assets/img/entry/icon_dat
|
|
8010
8017
|
key: 0,
|
8011
8018
|
class: "btn btn-confirm",
|
8012
8019
|
onClick: p
|
8013
|
-
}, " 预约会议 ")) :
|
8020
|
+
}, " 预约会议 ")) : ge("", !0),
|
8014
8021
|
n.previewType === "edit" ? (O(), V("div", {
|
8015
8022
|
key: 1,
|
8016
8023
|
class: "btn btn-confirm",
|
8017
8024
|
onClick: f
|
8018
|
-
}, " 修改预约 ")) :
|
8019
|
-
])) :
|
8025
|
+
}, " 修改预约 ")) : ge("", !0)
|
8026
|
+
])) : ge("", !0)
|
8020
8027
|
])
|
8021
8028
|
])
|
8022
8029
|
], 4)
|
@@ -8291,12 +8298,12 @@ function Ip(t) {
|
|
8291
8298
|
}(t, "string");
|
8292
8299
|
return typeof i == "symbol" ? i : String(i);
|
8293
8300
|
}
|
8294
|
-
function
|
8295
|
-
return
|
8301
|
+
function ke(t) {
|
8302
|
+
return ke = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(i) {
|
8296
8303
|
return typeof i;
|
8297
8304
|
} : function(i) {
|
8298
8305
|
return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
|
8299
|
-
},
|
8306
|
+
}, ke(t);
|
8300
8307
|
}
|
8301
8308
|
function Gu(t, i, e, n, r, a, o) {
|
8302
8309
|
try {
|
@@ -8393,7 +8400,7 @@ function Ue() {
|
|
8393
8400
|
}
|
8394
8401
|
}, Ue.apply(this, arguments);
|
8395
8402
|
}
|
8396
|
-
function
|
8403
|
+
function We(t, i) {
|
8397
8404
|
return function(e) {
|
8398
8405
|
if (Array.isArray(e)) return e;
|
8399
8406
|
}(t) || function(e, n) {
|
@@ -8523,15 +8530,15 @@ function ht(t, i) {
|
|
8523
8530
|
}
|
8524
8531
|
var dw = 34028234663852886e22, pw = -34028234663852886e22, fw = 4294967295, hw = 2147483647, mw = -2147483648;
|
8525
8532
|
function ga(t) {
|
8526
|
-
if (typeof t != "number") throw new Error("invalid int 32: " +
|
8533
|
+
if (typeof t != "number") throw new Error("invalid int 32: " + ke(t));
|
8527
8534
|
if (!Number.isInteger(t) || t > hw || mw > t) throw new Error("invalid int 32: " + t);
|
8528
8535
|
}
|
8529
8536
|
function vs(t) {
|
8530
|
-
if (typeof t != "number") throw new Error("invalid uint 32: " +
|
8537
|
+
if (typeof t != "number") throw new Error("invalid uint 32: " + ke(t));
|
8531
8538
|
if (!Number.isInteger(t) || t > fw || 0 > t) throw new Error("invalid uint 32: " + t);
|
8532
8539
|
}
|
8533
8540
|
function Dp(t) {
|
8534
|
-
if (typeof t != "number") throw new Error("invalid float 32: " +
|
8541
|
+
if (typeof t != "number") throw new Error("invalid float 32: " + ke(t));
|
8535
8542
|
if (Number.isFinite(t) && (t > dw || pw > t)) throw new Error("invalid float 32: " + t);
|
8536
8543
|
}
|
8537
8544
|
var Lp = Symbol("@bufbuild/protobuf/enum-type");
|
@@ -8694,7 +8701,7 @@ function yw() {
|
|
8694
8701
|
}
|
8695
8702
|
var ee, ai, gt, at = function() {
|
8696
8703
|
var t = new DataView(new ArrayBuffer(8));
|
8697
|
-
if (typeof BigInt == "function" && typeof t.getBigInt64 == "function" && typeof t.getBigUint64 == "function" && typeof t.setBigInt64 == "function" && typeof t.setBigUint64 == "function" && ((typeof process > "u" ? "undefined" :
|
8704
|
+
if (typeof BigInt == "function" && typeof t.getBigInt64 == "function" && typeof t.getBigUint64 == "function" && typeof t.setBigInt64 == "function" && typeof t.setBigUint64 == "function" && ((typeof process > "u" ? "undefined" : ke(process)) != "object" || ke(process.env) != "object" || process.env.BUF_BIGINT_DISABLE !== "1")) {
|
8698
8705
|
var i = BigInt("-9223372036854775808"), e = BigInt("9223372036854775807"), n = BigInt("0"), r = BigInt("18446744073709551615");
|
8699
8706
|
return { zero: BigInt(0), supported: !0, parse: function(s) {
|
8700
8707
|
var c = typeof s == "bigint" ? s : BigInt(s);
|
@@ -8884,7 +8891,7 @@ var kw = function() {
|
|
8884
8891
|
break;
|
8885
8892
|
case gt.StartGroup:
|
8886
8893
|
for (; ; ) {
|
8887
|
-
var a =
|
8894
|
+
var a = We(this.tag(), 2), o = a[0], s = a[1];
|
8888
8895
|
if (s === gt.EndGroup) {
|
8889
8896
|
if (e !== void 0 && o !== e) throw new Error("invalid end group tag");
|
8890
8897
|
break;
|
@@ -8908,10 +8915,10 @@ var kw = function() {
|
|
8908
8915
|
} }, { key: "uint64", value: function() {
|
8909
8916
|
return at.uDec.apply(at, an(this.varint64()));
|
8910
8917
|
} }, { key: "sint64", value: function() {
|
8911
|
-
var i =
|
8918
|
+
var i = We(this.varint64(), 2), e = i[0], n = i[1], r = -(1 & e);
|
8912
8919
|
return e = (e >>> 1 | (1 & n) << 31) ^ r, n = n >>> 1 ^ r, at.dec(e, n);
|
8913
8920
|
} }, { key: "bool", value: function() {
|
8914
|
-
var i =
|
8921
|
+
var i = We(this.varint64(), 2), e = i[0], n = i[1];
|
8915
8922
|
return e !== 0 || n !== 0;
|
8916
8923
|
} }, { key: "fixed32", value: function() {
|
8917
8924
|
return this.view.getUint32((this.pos += 4) - 4, !0);
|
@@ -9012,7 +9019,7 @@ function Sw(t, i, e) {
|
|
9012
9019
|
return d.filter(function(h) {
|
9013
9020
|
return h.no === b.no;
|
9014
9021
|
});
|
9015
|
-
}(t.getType().runtime.bin.listUnknownFields(t), i.field), o =
|
9022
|
+
}(t.getType().runtime.bin.listUnknownFields(t), i.field), o = We(Bp(i), 2), s = o[0], c = o[1], u = Ie(a);
|
9016
9023
|
try {
|
9017
9024
|
for (u.s(); !(n = u.n()).done; ) {
|
9018
9025
|
var l = n.value;
|
@@ -9048,7 +9055,7 @@ function ww(t, i, e, n) {
|
|
9048
9055
|
var l = a.writerFactory(), d = i.field;
|
9049
9056
|
d.opt || d.repeated || d.kind != "enum" && d.kind != "scalar" || (d = Object.assign(Object.assign({}, i.field), { opt: !0 })), i.runtime.bin.writeField(d, e, l, a);
|
9050
9057
|
for (var b = r.readerFactory(l.finish()); b.pos < b.len; ) {
|
9051
|
-
var g =
|
9058
|
+
var g = We(b.tag(), 2), h = g[0], m = g[1], p = b.skip(m, h);
|
9052
9059
|
t.getType().runtime.bin.onUnknownField(t, h, m, p);
|
9053
9060
|
}
|
9054
9061
|
}
|
@@ -9095,7 +9102,7 @@ function el(t, i) {
|
|
9095
9102
|
}
|
9096
9103
|
}
|
9097
9104
|
function ki(t, i) {
|
9098
|
-
if (t === null ||
|
9105
|
+
if (t === null || ke(t) != "object" || !Object.getOwnPropertyNames(pc.prototype).every(function(n) {
|
9099
9106
|
return n in t && typeof t[n] == "function";
|
9100
9107
|
})) return !1;
|
9101
9108
|
var e = t.getType();
|
@@ -9115,7 +9122,7 @@ function xw(t) {
|
|
9115
9122
|
var za = Symbol(), ya = Symbol();
|
9116
9123
|
function En(t) {
|
9117
9124
|
if (t === null) return "null";
|
9118
|
-
switch (
|
9125
|
+
switch (ke(t)) {
|
9119
9126
|
case "object":
|
9120
9127
|
return Array.isArray(t) ? "array" : "object";
|
9121
9128
|
case "string":
|
@@ -9159,9 +9166,9 @@ function il(t, i, e, n, r) {
|
|
9159
9166
|
}
|
9160
9167
|
} else if (e.kind == "map") {
|
9161
9168
|
if (i === null) return;
|
9162
|
-
if (
|
9169
|
+
if (ke(i) != "object" || Array.isArray(i)) throw new Error("cannot decode field ".concat(r.typeName, ".").concat(e.name, " from JSON: ").concat(En(i)));
|
9163
9170
|
for (var b = t[a], g = 0, h = Object.entries(i); g < h.length; g++) {
|
9164
|
-
var m =
|
9171
|
+
var m = We(h[g], 2), p = m[0], f = m[1];
|
9165
9172
|
if (f === null) throw new Error("cannot decode field ".concat(r.typeName, ".").concat(e.name, " from JSON: map value null"));
|
9166
9173
|
var v = void 0;
|
9167
9174
|
try {
|
@@ -9288,7 +9295,7 @@ function mr(t, i, e, n) {
|
|
9288
9295
|
}
|
9289
9296
|
function Fo(t, i, e, n) {
|
9290
9297
|
if (i === null) return t.typeName == "google.protobuf.NullValue" ? 0 : n ? t.values[0].no : za;
|
9291
|
-
switch (
|
9298
|
+
switch (ke(i)) {
|
9292
9299
|
case "number":
|
9293
9300
|
if (Number.isInteger(i)) return i;
|
9294
9301
|
break;
|
@@ -9305,14 +9312,14 @@ function _w(t) {
|
|
9305
9312
|
}
|
9306
9313
|
function rl(t, i, e) {
|
9307
9314
|
if (t.kind == "map") {
|
9308
|
-
ht(
|
9315
|
+
ht(ke(i) == "object" && i != null);
|
9309
9316
|
var n = {}, r = Object.entries(i);
|
9310
9317
|
switch (t.V.kind) {
|
9311
9318
|
case "scalar":
|
9312
9319
|
var a, o = Ie(r);
|
9313
9320
|
try {
|
9314
9321
|
for (o.s(); !(a = o.n()).done; ) {
|
9315
|
-
var s =
|
9322
|
+
var s = We(a.value, 2), c = s[0], u = s[1];
|
9316
9323
|
n[c.toString()] = ka(t.V.T, u);
|
9317
9324
|
}
|
9318
9325
|
} catch (I) {
|
@@ -9325,7 +9332,7 @@ function rl(t, i, e) {
|
|
9325
9332
|
var l, d = Ie(r);
|
9326
9333
|
try {
|
9327
9334
|
for (d.s(); !(l = d.n()).done; ) {
|
9328
|
-
var b =
|
9335
|
+
var b = We(l.value, 2), g = b[0], h = b[1];
|
9329
9336
|
n[g.toString()] = h.toJson(e);
|
9330
9337
|
}
|
9331
9338
|
} catch (I) {
|
@@ -9338,7 +9345,7 @@ function rl(t, i, e) {
|
|
9338
9345
|
var m, p = t.V.T, f = Ie(r);
|
9339
9346
|
try {
|
9340
9347
|
for (f.s(); !(m = f.n()).done; ) {
|
9341
|
-
var v =
|
9348
|
+
var v = We(m.value, 2), y = v[0], T = v[1];
|
9342
9349
|
n[y.toString()] = Bo(p, T, e.enumAsInteger);
|
9343
9350
|
}
|
9344
9351
|
} catch (I) {
|
@@ -9437,7 +9444,7 @@ function sl(t, i, e, n, r) {
|
|
9437
9444
|
case "map":
|
9438
9445
|
var b = function(p, f, v) {
|
9439
9446
|
for (var y, T, x = f.uint32(), S = f.pos + x; f.pos < S; )
|
9440
|
-
switch (
|
9447
|
+
switch (We(f.tag(), 1)[0]) {
|
9441
9448
|
case 1:
|
9442
9449
|
y = Ca(f, p.K);
|
9443
9450
|
break;
|
@@ -9467,7 +9474,7 @@ function sl(t, i, e, n, r) {
|
|
9467
9474
|
break;
|
9468
9475
|
}
|
9469
9476
|
return [y, T];
|
9470
|
-
}(e, i, r), g =
|
9477
|
+
}(e, i, r), g = We(b, 2), h = g[0], m = g[1];
|
9471
9478
|
t[o][h] = m;
|
9472
9479
|
break;
|
9473
9480
|
}
|
@@ -9524,7 +9531,7 @@ function cl(t, i, e, n) {
|
|
9524
9531
|
if (r) if (ht(Array.isArray(i)), t.packed) (function(h, m, p, f) {
|
9525
9532
|
if (f.length) {
|
9526
9533
|
h.tag(p, gt.LengthDelimited).fork();
|
9527
|
-
for (var v =
|
9534
|
+
for (var v = We(Jp(m), 2)[1], y = 0; y < f.length; y++) h[v](f[y]);
|
9528
9535
|
h.join();
|
9529
9536
|
}
|
9530
9537
|
})(e, a, t.no, i);
|
@@ -9558,9 +9565,9 @@ function cl(t, i, e, n) {
|
|
9558
9565
|
} else ul(e, n, t, i);
|
9559
9566
|
break;
|
9560
9567
|
case "map":
|
9561
|
-
ht(
|
9568
|
+
ht(ke(i) == "object" && i != null);
|
9562
9569
|
for (var d = 0, b = Object.entries(i); d < b.length; d++) {
|
9563
|
-
var g =
|
9570
|
+
var g = We(b[d], 2);
|
9564
9571
|
Iw(e, n, t, g[0], g[1]);
|
9565
9572
|
}
|
9566
9573
|
break;
|
@@ -9600,7 +9607,7 @@ function ul(t, i, e, n) {
|
|
9600
9607
|
}
|
9601
9608
|
function vr(t, i, e, n) {
|
9602
9609
|
ht(n !== void 0);
|
9603
|
-
var r =
|
9610
|
+
var r = We(Jp(i), 2), a = r[0], o = r[1];
|
9604
9611
|
t.tag(e, a)[o](n);
|
9605
9612
|
}
|
9606
9613
|
function Jp(t) {
|
@@ -9796,10 +9803,10 @@ var Dw = /* @__PURE__ */ new Set(["constructor", "toString", "toJSON", "valueOf"
|
|
9796
9803
|
e.f();
|
9797
9804
|
}
|
9798
9805
|
}, { syntax: "proto3", json: { makeReadOptions: Tw, makeWriteOptions: xw, readMessage: function(t, i, e, n) {
|
9799
|
-
if (i == null || Array.isArray(i) ||
|
9806
|
+
if (i == null || Array.isArray(i) || ke(i) != "object") throw new Error("cannot decode message ".concat(t.typeName, " from JSON: ").concat(En(i)));
|
9800
9807
|
n = n ?? new t();
|
9801
9808
|
for (var r = /* @__PURE__ */ new Map(), a = e.typeRegistry, o = 0, s = Object.entries(i); o < s.length; o++) {
|
9802
|
-
var c =
|
9809
|
+
var c = We(s[o], 2), u = c[0], l = c[1], d = t.fields.findJsonName(u);
|
9803
9810
|
if (d) {
|
9804
9811
|
if (d.oneof) {
|
9805
9812
|
if (l === null && d.kind == "scalar") continue;
|
@@ -9814,7 +9821,7 @@ var Dw = /* @__PURE__ */ new Set(["constructor", "toString", "toJSON", "valueOf"
|
|
9814
9821
|
var h = a.findExtension(u.substring(1, u.length - 1));
|
9815
9822
|
if (h && h.extendee.typeName == t.typeName) {
|
9816
9823
|
g = !0;
|
9817
|
-
var m =
|
9824
|
+
var m = We(Bp(h), 2), p = m[0], f = m[1];
|
9818
9825
|
il(p, l, h.field, e, h), ww(n, h, f(), e);
|
9819
9826
|
}
|
9820
9827
|
}
|
@@ -9891,7 +9898,7 @@ var Dw = /* @__PURE__ */ new Set(["constructor", "toString", "toJSON", "valueOf"
|
|
9891
9898
|
Array.isArray(r[Ri]) || (r[Ri] = []), r[Ri].push({ no: i, wireType: e, data: n });
|
9892
9899
|
}, readMessage: function(t, i, e, n, r) {
|
9893
9900
|
for (var a, o, s = t.getType(), c = r ? i.len : i.pos + e; i.pos < c; ) {
|
9894
|
-
var u =
|
9901
|
+
var u = We(i.tag(), 2);
|
9895
9902
|
if (a = u[0], o = u[1], r === !0 && o == gt.EndGroup) break;
|
9896
9903
|
var l = s.fields.find(a);
|
9897
9904
|
if (l) sl(t, i, l, o, n);
|
@@ -9941,7 +9948,7 @@ var Dw = /* @__PURE__ */ new Set(["constructor", "toString", "toJSON", "valueOf"
|
|
9941
9948
|
case "scalar":
|
9942
9949
|
case "enum":
|
9943
9950
|
if (a.V.T === ee.BYTES) for (var g = 0, h = Object.entries(c[o]); g < h.length; g++) {
|
9944
|
-
var m =
|
9951
|
+
var m = We(h[g], 2), p = m[0], f = m[1];
|
9945
9952
|
s[o][p] = or(f);
|
9946
9953
|
}
|
9947
9954
|
else Object.assign(s[o], c[o]);
|
@@ -10044,7 +10051,7 @@ var Dw = /* @__PURE__ */ new Set(["constructor", "toString", "toJSON", "valueOf"
|
|
10044
10051
|
else if (o.kind == "map") {
|
10045
10052
|
c = r[o.localName];
|
10046
10053
|
for (var u = 0, l = Object.entries(s); u < l.length; u++) {
|
10047
|
-
var d =
|
10054
|
+
var d = We(l[u], 2), b = d[0], g = d[1];
|
10048
10055
|
c[b] = ea(g);
|
10049
10056
|
}
|
10050
10057
|
} else c = o.kind == "oneof" ? o.findField(s.case) ? { case: s.case, value: ea(s.value) } : { case: void 0 } : ea(s);
|
@@ -10286,7 +10293,7 @@ function xT(t) {
|
|
10286
10293
|
}
|
10287
10294
|
var hl, Vo = { exports: {} }, ml, vl, Ho, Ss, kn, vo = (hl || (hl = 1, vl = Vo.exports, Ho = function() {
|
10288
10295
|
var t = function() {
|
10289
|
-
}, i = "undefined", e = (typeof window > "u" ? "undefined" :
|
10296
|
+
}, i = "undefined", e = (typeof window > "u" ? "undefined" : ke(window)) !== i && ke(window.navigator) !== i && /Trident\/|MSIE /.test(window.navigator.userAgent), n = ["trace", "debug", "info", "warn", "error"], r = {}, a = null;
|
10290
10297
|
function o(g, h) {
|
10291
10298
|
var m = g[h];
|
10292
10299
|
if (typeof m.bind == "function") return m.bind(g);
|
@@ -10306,28 +10313,28 @@ var hl, Vo = { exports: {} }, ml, vl, Ho, Ss, kn, vo = (hl || (hl = 1, vl = Vo.e
|
|
10306
10313
|
var m = n[h];
|
10307
10314
|
this[m] = g > h ? t : this.methodFactory(m, g, this.name);
|
10308
10315
|
}
|
10309
|
-
if (this.log = this.debug, (typeof console > "u" ? "undefined" :
|
10316
|
+
if (this.log = this.debug, (typeof console > "u" ? "undefined" : ke(console)) === i && g < this.levels.SILENT) return "No console available for logging";
|
10310
10317
|
}
|
10311
10318
|
function u(g) {
|
10312
10319
|
return function() {
|
10313
|
-
(typeof console > "u" ? "undefined" :
|
10320
|
+
(typeof console > "u" ? "undefined" : ke(console)) !== i && (c.call(this), this[g].apply(this, arguments));
|
10314
10321
|
};
|
10315
10322
|
}
|
10316
10323
|
function l(g, h, m) {
|
10317
10324
|
return function(p) {
|
10318
|
-
return p === "debug" && (p = "log"), (typeof console > "u" ? "undefined" :
|
10325
|
+
return p === "debug" && (p = "log"), (typeof console > "u" ? "undefined" : ke(console)) !== i && (p === "trace" && e ? s : console[p] !== void 0 ? o(console, p) : console.log !== void 0 ? o(console, "log") : t);
|
10319
10326
|
}(g) || u.apply(this, arguments);
|
10320
10327
|
}
|
10321
10328
|
function d(g, h) {
|
10322
10329
|
var m, p, f, v = this, y = "loglevel";
|
10323
10330
|
function T() {
|
10324
10331
|
var E;
|
10325
|
-
if ((typeof window > "u" ? "undefined" :
|
10332
|
+
if ((typeof window > "u" ? "undefined" : ke(window)) !== i && y) {
|
10326
10333
|
try {
|
10327
10334
|
E = window.localStorage[y];
|
10328
10335
|
} catch {
|
10329
10336
|
}
|
10330
|
-
if (
|
10337
|
+
if (ke(E) === i) try {
|
10331
10338
|
var _ = window.document.cookie, I = encodeURIComponent(y), B = _.indexOf(I + "=");
|
10332
10339
|
B !== -1 && (E = /^([^;]+)/.exec(_.slice(B + I.length + 1))[1]);
|
10333
10340
|
} catch {
|
@@ -10340,12 +10347,12 @@ var hl, Vo = { exports: {} }, ml, vl, Ho, Ss, kn, vo = (hl || (hl = 1, vl = Vo.e
|
|
10340
10347
|
if (typeof _ == "string" && v.levels[_.toUpperCase()] !== void 0 && (_ = v.levels[_.toUpperCase()]), typeof _ != "number" || 0 > _ || _ > v.levels.SILENT) throw new TypeError("log.setLevel() called with invalid level: " + E);
|
10341
10348
|
return _;
|
10342
10349
|
}
|
10343
|
-
typeof g == "string" ? y += ":" + g :
|
10350
|
+
typeof g == "string" ? y += ":" + g : ke(g) === "symbol" && (y = void 0), v.name = g, v.levels = { TRACE: 0, DEBUG: 1, INFO: 2, WARN: 3, ERROR: 4, SILENT: 5 }, v.methodFactory = h || l, v.getLevel = function() {
|
10344
10351
|
return f ?? p ?? m;
|
10345
10352
|
}, v.setLevel = function(E, _) {
|
10346
10353
|
return f = x(E), _ !== !1 && function(I) {
|
10347
10354
|
var B = (n[I] || "silent").toUpperCase();
|
10348
|
-
if ((typeof window > "u" ? "undefined" :
|
10355
|
+
if ((typeof window > "u" ? "undefined" : ke(window)) !== i && y) {
|
10349
10356
|
try {
|
10350
10357
|
return void (window.localStorage[y] = B);
|
10351
10358
|
} catch {
|
@@ -10360,7 +10367,7 @@ var hl, Vo = { exports: {} }, ml, vl, Ho, Ss, kn, vo = (hl || (hl = 1, vl = Vo.e
|
|
10360
10367
|
p = x(E), T() || v.setLevel(E, !1);
|
10361
10368
|
}, v.resetLevel = function() {
|
10362
10369
|
f = null, function() {
|
10363
|
-
if ((typeof window > "u" ? "undefined" :
|
10370
|
+
if ((typeof window > "u" ? "undefined" : ke(window)) !== i && y) {
|
10364
10371
|
try {
|
10365
10372
|
window.localStorage.removeItem(y);
|
10366
10373
|
} catch {
|
@@ -10382,13 +10389,13 @@ var hl, Vo = { exports: {} }, ml, vl, Ho, Ss, kn, vo = (hl || (hl = 1, vl = Vo.e
|
|
10382
10389
|
S != null && (f = x(S)), c.call(v);
|
10383
10390
|
}
|
10384
10391
|
(a = new d()).getLogger = function(g) {
|
10385
|
-
if (
|
10392
|
+
if (ke(g) !== "symbol" && typeof g != "string" || g === "") throw new TypeError("You must supply a name when creating a logger.");
|
10386
10393
|
var h = r[g];
|
10387
10394
|
return h || (h = r[g] = new d(g, a.methodFactory)), h;
|
10388
10395
|
};
|
10389
|
-
var b = (typeof window > "u" ? "undefined" :
|
10396
|
+
var b = (typeof window > "u" ? "undefined" : ke(window)) !== i ? window.log : void 0;
|
10390
10397
|
return a.noConflict = function() {
|
10391
|
-
return (typeof window > "u" ? "undefined" :
|
10398
|
+
return (typeof window > "u" ? "undefined" : ke(window)) !== i && window.log === a && (window.log = b), a;
|
10392
10399
|
}, a.getLoggers = function() {
|
10393
10400
|
return r;
|
10394
10401
|
}, a.default = a, a;
|
@@ -10398,14 +10405,14 @@ var hl, Vo = { exports: {} }, ml, vl, Ho, Ss, kn, vo = (hl || (hl = 1, vl = Vo.e
|
|
10398
10405
|
})(Ss || (Ss = {})), function(t) {
|
10399
10406
|
t.Default = "livekit", t.Room = "livekit-room", t.Participant = "livekit-participant", t.Track = "livekit-track", t.Publication = "livekit-track-publication", t.Engine = "livekit-engine", t.Signal = "livekit-signal", t.PCManager = "livekit-pc-manager", t.PCTransport = "livekit-pc-transport", t.E2EE = "lk-e2ee";
|
10400
10407
|
}(kn || (kn = {}));
|
10401
|
-
var
|
10408
|
+
var Je = vo.getLogger("livekit");
|
10402
10409
|
function Hn(t) {
|
10403
10410
|
var i = vo.getLogger(t);
|
10404
|
-
return i.setDefaultLevel(
|
10411
|
+
return i.setDefaultLevel(Je.getLevel()), i;
|
10405
10412
|
}
|
10406
10413
|
Object.values(kn).map(function(t) {
|
10407
10414
|
return vo.getLogger(t);
|
10408
|
-
}),
|
10415
|
+
}), Je.setDefaultLevel(Ss.info);
|
10409
10416
|
var ET = vo.getLogger("lk-e2ee"), sr = 7e3, _T = [0, 300, 1200, 2700, 4800, sr, sr, sr, sr, sr], PT = function() {
|
10410
10417
|
function t(i) {
|
10411
10418
|
Re(this, t), this._retryDelays = i !== void 0 ? an(i) : _T;
|
@@ -10470,7 +10477,7 @@ function $i(t) {
|
|
10470
10477
|
var gl, ta = { exports: {} }, Ni = function() {
|
10471
10478
|
if (gl) return ta.exports;
|
10472
10479
|
gl = 1;
|
10473
|
-
var t, i = (typeof Reflect > "u" ? "undefined" :
|
10480
|
+
var t, i = (typeof Reflect > "u" ? "undefined" : ke(Reflect)) === "object" ? Reflect : null, e = i && typeof i.apply == "function" ? i.apply : function(m, p, f) {
|
10474
10481
|
return Function.prototype.apply.call(m, p, f);
|
10475
10482
|
};
|
10476
10483
|
t = i && typeof i.ownKeys == "function" ? i.ownKeys : Object.getOwnPropertySymbols ? function(m) {
|
@@ -10499,7 +10506,7 @@ var gl, ta = { exports: {} }, Ni = function() {
|
|
10499
10506
|
}, r.EventEmitter = r, r.prototype._events = void 0, r.prototype._eventsCount = 0, r.prototype._maxListeners = void 0;
|
10500
10507
|
var a = 10;
|
10501
10508
|
function o(m) {
|
10502
|
-
if (typeof m != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' +
|
10509
|
+
if (typeof m != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + ke(m));
|
10503
10510
|
}
|
10504
10511
|
function s(m) {
|
10505
10512
|
return m._maxListeners === void 0 ? r.defaultMaxListeners : m._maxListeners;
|
@@ -10546,7 +10553,7 @@ var gl, ta = { exports: {} }, Ni = function() {
|
|
10546
10553
|
function h(m, p, f, v) {
|
10547
10554
|
if (typeof m.on == "function") v.once ? m.once(p, f) : m.on(p, f);
|
10548
10555
|
else {
|
10549
|
-
if (typeof m.addEventListener != "function") throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' +
|
10556
|
+
if (typeof m.addEventListener != "function") throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + ke(m));
|
10550
10557
|
m.addEventListener(p, function y(T) {
|
10551
10558
|
v.once && m.removeEventListener(p, y), f(T);
|
10552
10559
|
});
|
@@ -10659,13 +10666,13 @@ function Mi(t, i, e) {
|
|
10659
10666
|
}
|
10660
10667
|
}
|
10661
10668
|
function MT(t) {
|
10662
|
-
return typeof t != "boolean" ? new Error("Argument type: " +
|
10669
|
+
return typeof t != "boolean" ? new Error("Argument type: " + ke(t) + ". Please use a boolean.") : (mf = t, t ? "adapter.js logging disabled" : "adapter.js logging enabled");
|
10663
10670
|
}
|
10664
10671
|
function IT(t) {
|
10665
|
-
return typeof t != "boolean" ? new Error("Argument type: " +
|
10672
|
+
return typeof t != "boolean" ? new Error("Argument type: " + ke(t) + ". Please use a boolean.") : "adapter.js deprecation warnings " + (t ? "disabled" : "enabled");
|
10666
10673
|
}
|
10667
10674
|
function vf() {
|
10668
|
-
typeof window > "u" ||
|
10675
|
+
typeof window > "u" || ke(window);
|
10669
10676
|
}
|
10670
10677
|
function bl(t) {
|
10671
10678
|
return Object.prototype.toString.call(t) === "[object Object]";
|
@@ -10700,11 +10707,11 @@ function bf(t, i) {
|
|
10700
10707
|
var e = t && t.navigator;
|
10701
10708
|
if (e.mediaDevices) {
|
10702
10709
|
var n = function(s) {
|
10703
|
-
if (
|
10710
|
+
if (ke(s) !== "object" || s.mandatory || s.optional) return s;
|
10704
10711
|
var c = {};
|
10705
10712
|
return Object.keys(s).forEach(function(u) {
|
10706
10713
|
if (u !== "require" && u !== "advanced" && u !== "mediaSource") {
|
10707
|
-
var l =
|
10714
|
+
var l = ke(s[u]) === "object" ? s[u] : { ideal: s[u] };
|
10708
10715
|
l.exact !== void 0 && typeof l.exact == "number" && (l.min = l.max = l.exact);
|
10709
10716
|
var d = function(g, h) {
|
10710
10717
|
return g ? g + h.charAt(0).toUpperCase() + h.slice(1) : h === "deviceId" ? "sourceId" : h;
|
@@ -10721,15 +10728,15 @@ function bf(t, i) {
|
|
10721
10728
|
}), s.advanced && (c.optional = (c.optional || []).concat(s.advanced)), c;
|
10722
10729
|
}, r = function(s, c) {
|
10723
10730
|
if (i.version >= 61) return c(s);
|
10724
|
-
if ((s = JSON.parse(JSON.stringify(s))) &&
|
10731
|
+
if ((s = JSON.parse(JSON.stringify(s))) && ke(s.audio) === "object") {
|
10725
10732
|
var u = function(g, h, m) {
|
10726
10733
|
h in g && !(m in g) && (g[m] = g[h], delete g[h]);
|
10727
10734
|
};
|
10728
10735
|
u((s = JSON.parse(JSON.stringify(s))).audio, "autoGainControl", "googAutoGainControl"), u(s.audio, "noiseSuppression", "googNoiseSuppression"), s.audio = n(s.audio);
|
10729
10736
|
}
|
10730
|
-
if (s &&
|
10737
|
+
if (s && ke(s.video) === "object") {
|
10731
10738
|
var l = s.video.facingMode;
|
10732
|
-
l = l && (
|
10739
|
+
l = l && (ke(l) === "object" ? l : { ideal: l });
|
10733
10740
|
var d, b = 66 > i.version;
|
10734
10741
|
if (l && (l.exact === "user" || l.exact === "environment" || l.ideal === "user" || l.ideal === "environment") && (!e.mediaDevices.getSupportedConstraints || !e.mediaDevices.getSupportedConstraints().facingMode || b) && (delete s.video.facingMode, l.exact === "environment" || l.ideal === "environment" ? d = ["back", "rear"] : l.exact !== "user" && l.ideal !== "user" || (d = ["front"]), d)) return e.mediaDevices.enumerateDevices().then(function(g) {
|
10735
10742
|
var h = (g = g.filter(function(m) {
|
@@ -10776,7 +10783,7 @@ function yf(t) {
|
|
10776
10783
|
t.MediaStream = t.MediaStream || t.webkitMediaStream;
|
10777
10784
|
}
|
10778
10785
|
function kf(t) {
|
10779
|
-
if (
|
10786
|
+
if (ke(t) === "object" && t.RTCPeerConnection && !("ontrack" in t.RTCPeerConnection.prototype)) {
|
10780
10787
|
Object.defineProperty(t.RTCPeerConnection.prototype, "ontrack", { get: function() {
|
10781
10788
|
return this._ontrack;
|
10782
10789
|
}, set: function(e) {
|
@@ -10808,7 +10815,7 @@ function kf(t) {
|
|
10808
10815
|
});
|
10809
10816
|
}
|
10810
10817
|
function Cf(t) {
|
10811
|
-
if (
|
10818
|
+
if (ke(t) === "object" && t.RTCPeerConnection && !("getSenders" in t.RTCPeerConnection.prototype) && "createDTMFSender" in t.RTCPeerConnection.prototype) {
|
10812
10819
|
var i = function(s, c) {
|
10813
10820
|
return { track: c, get dtmf() {
|
10814
10821
|
return this._dtmf === void 0 && (c.kind === "audio" ? this._dtmf = s.createDTMFSender(c) : this._dtmf = null), this._dtmf;
|
@@ -10847,7 +10854,7 @@ function Cf(t) {
|
|
10847
10854
|
l && c._senders.splice(c._senders.indexOf(l), 1);
|
10848
10855
|
});
|
10849
10856
|
};
|
10850
|
-
} else if (
|
10857
|
+
} else if (ke(t) === "object" && t.RTCPeerConnection && "getSenders" in t.RTCPeerConnection.prototype && "createDTMFSender" in t.RTCPeerConnection.prototype && t.RTCRtpSender && !("dtmf" in t.RTCRtpSender.prototype)) {
|
10851
10858
|
var o = t.RTCPeerConnection.prototype.getSenders;
|
10852
10859
|
t.RTCPeerConnection.prototype.getSenders = function() {
|
10853
10860
|
var s = this, c = o.apply(this, []);
|
@@ -10860,7 +10867,7 @@ function Cf(t) {
|
|
10860
10867
|
}
|
10861
10868
|
}
|
10862
10869
|
function Sf(t) {
|
10863
|
-
if (
|
10870
|
+
if (ke(t) === "object" && t.RTCPeerConnection && t.RTCRtpSender && t.RTCRtpReceiver) {
|
10864
10871
|
if (!("getStats" in t.RTCRtpSender.prototype)) {
|
10865
10872
|
var i = t.RTCPeerConnection.prototype.getSenders;
|
10866
10873
|
i && (t.RTCPeerConnection.prototype.getSenders = function() {
|
@@ -11074,7 +11081,7 @@ function Ef(t, i) {
|
|
11074
11081
|
u in c && !(l in c) && (c[l] = c[u], delete c[u]);
|
11075
11082
|
}, a = e.mediaDevices.getUserMedia.bind(e.mediaDevices);
|
11076
11083
|
if (e.mediaDevices.getUserMedia = function(c) {
|
11077
|
-
return
|
11084
|
+
return ke(c) === "object" && ke(c.audio) === "object" && (c = JSON.parse(JSON.stringify(c)), r(c.audio, "autoGainControl", "mozAutoGainControl"), r(c.audio, "noiseSuppression", "mozNoiseSuppression")), a(c);
|
11078
11085
|
}, n && n.prototype.getSettings) {
|
11079
11086
|
var o = n.prototype.getSettings;
|
11080
11087
|
n.prototype.getSettings = function() {
|
@@ -11085,18 +11092,18 @@ function Ef(t, i) {
|
|
11085
11092
|
if (n && n.prototype.applyConstraints) {
|
11086
11093
|
var s = n.prototype.applyConstraints;
|
11087
11094
|
n.prototype.applyConstraints = function(c) {
|
11088
|
-
return this.kind === "audio" &&
|
11095
|
+
return this.kind === "audio" && ke(c) === "object" && (c = JSON.parse(JSON.stringify(c)), r(c, "autoGainControl", "mozAutoGainControl"), r(c, "noiseSuppression", "mozNoiseSuppression")), s.apply(this, [c]);
|
11089
11096
|
};
|
11090
11097
|
}
|
11091
11098
|
}
|
11092
11099
|
}
|
11093
11100
|
function _f(t) {
|
11094
|
-
|
11101
|
+
ke(t) === "object" && t.RTCTrackEvent && "receiver" in t.RTCTrackEvent.prototype && !("transceiver" in t.RTCTrackEvent.prototype) && Object.defineProperty(t.RTCTrackEvent.prototype, "transceiver", { get: function() {
|
11095
11102
|
return { receiver: this.receiver };
|
11096
11103
|
} });
|
11097
11104
|
}
|
11098
11105
|
function xs(t, i) {
|
11099
|
-
if (
|
11106
|
+
if (ke(t) === "object" && (t.RTCPeerConnection || t.mozRTCPeerConnection)) {
|
11100
11107
|
!t.RTCPeerConnection && t.mozRTCPeerConnection && (t.RTCPeerConnection = t.mozRTCPeerConnection), 53 > i.version && ["setLocalDescription", "setRemoteDescription", "addIceCandidate"].forEach(function(r) {
|
11101
11108
|
var a = t.RTCPeerConnection.prototype[r], o = $r({}, r, function() {
|
11102
11109
|
return arguments[0] = new (r === "addIceCandidate" ? t.RTCIceCandidate : t.RTCSessionDescription)(arguments[0]), a.apply(this, arguments);
|
@@ -11123,7 +11130,7 @@ function xs(t, i) {
|
|
11123
11130
|
}
|
11124
11131
|
}
|
11125
11132
|
function Pf(t) {
|
11126
|
-
if (
|
11133
|
+
if (ke(t) === "object" && t.RTCPeerConnection && t.RTCRtpSender && (!t.RTCRtpSender || !("getStats" in t.RTCRtpSender.prototype))) {
|
11127
11134
|
var i = t.RTCPeerConnection.prototype.getSenders;
|
11128
11135
|
i && (t.RTCPeerConnection.prototype.getSenders = function() {
|
11129
11136
|
var n = this, r = i.apply(this, []);
|
@@ -11141,7 +11148,7 @@ function Pf(t) {
|
|
11141
11148
|
}
|
11142
11149
|
}
|
11143
11150
|
function Nf(t) {
|
11144
|
-
if (
|
11151
|
+
if (ke(t) === "object" && t.RTCPeerConnection && t.RTCRtpSender && (!t.RTCRtpSender || !("getStats" in t.RTCRtpReceiver.prototype))) {
|
11145
11152
|
var i = t.RTCPeerConnection.prototype.getReceivers;
|
11146
11153
|
i && (t.RTCPeerConnection.prototype.getReceivers = function() {
|
11147
11154
|
var e = this, n = i.apply(this, []);
|
@@ -11167,7 +11174,7 @@ function If(t) {
|
|
11167
11174
|
t.DataChannel && !t.RTCDataChannel && (t.RTCDataChannel = t.DataChannel);
|
11168
11175
|
}
|
11169
11176
|
function Of(t) {
|
11170
|
-
if (
|
11177
|
+
if (ke(t) === "object" && t.RTCPeerConnection) {
|
11171
11178
|
var i = t.RTCPeerConnection.prototype.addTransceiver;
|
11172
11179
|
i && (t.RTCPeerConnection.prototype.addTransceiver = function() {
|
11173
11180
|
this.setParametersPromises = [];
|
@@ -11194,7 +11201,7 @@ function Of(t) {
|
|
11194
11201
|
}
|
11195
11202
|
}
|
11196
11203
|
function Rf(t) {
|
11197
|
-
if (
|
11204
|
+
if (ke(t) === "object" && t.RTCRtpSender) {
|
11198
11205
|
var i = t.RTCRtpSender.prototype.getParameters;
|
11199
11206
|
i && (t.RTCRtpSender.prototype.getParameters = function() {
|
11200
11207
|
var e = i.apply(this, arguments);
|
@@ -11203,7 +11210,7 @@ function Rf(t) {
|
|
11203
11210
|
}
|
11204
11211
|
}
|
11205
11212
|
function Df(t) {
|
11206
|
-
if (
|
11213
|
+
if (ke(t) === "object" && t.RTCPeerConnection) {
|
11207
11214
|
var i = t.RTCPeerConnection.prototype.createOffer;
|
11208
11215
|
t.RTCPeerConnection.prototype.createOffer = function() {
|
11209
11216
|
var e = arguments, n = this;
|
@@ -11216,7 +11223,7 @@ function Df(t) {
|
|
11216
11223
|
}
|
11217
11224
|
}
|
11218
11225
|
function Lf(t) {
|
11219
|
-
if (
|
11226
|
+
if (ke(t) === "object" && t.RTCPeerConnection) {
|
11220
11227
|
var i = t.RTCPeerConnection.prototype.createAnswer;
|
11221
11228
|
t.RTCPeerConnection.prototype.createAnswer = function() {
|
11222
11229
|
var e = arguments, n = this;
|
@@ -11238,7 +11245,7 @@ var Sl = Object.freeze({ __proto__: null, shimAddTransceiver: Of, shimCreateAnsw
|
|
11238
11245
|
});
|
11239
11246
|
}, shimGetParameters: Rf, shimGetUserMedia: Ef, shimOnTrack: _f, shimPeerConnection: xs, shimRTCDataChannel: If, shimReceiverGetStats: Nf, shimRemoveStream: Mf, shimSenderGetStats: Pf });
|
11240
11247
|
function Af(t) {
|
11241
|
-
if (
|
11248
|
+
if (ke(t) === "object" && t.RTCPeerConnection) {
|
11242
11249
|
if ("getLocalStreams" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.getLocalStreams = function() {
|
11243
11250
|
return this._localStreams || (this._localStreams = []), this._localStreams;
|
11244
11251
|
}), !("addStream" in t.RTCPeerConnection.prototype)) {
|
@@ -11272,7 +11279,7 @@ function Af(t) {
|
|
11272
11279
|
}
|
11273
11280
|
}
|
11274
11281
|
function Uf(t) {
|
11275
|
-
if (
|
11282
|
+
if (ke(t) === "object" && t.RTCPeerConnection && ("getRemoteStreams" in t.RTCPeerConnection.prototype || (t.RTCPeerConnection.prototype.getRemoteStreams = function() {
|
11276
11283
|
return this._remoteStreams ? this._remoteStreams : [];
|
11277
11284
|
}), !("onaddstream" in t.RTCPeerConnection.prototype))) {
|
11278
11285
|
Object.defineProperty(t.RTCPeerConnection.prototype, "onaddstream", { get: function() {
|
@@ -11305,7 +11312,7 @@ function Uf(t) {
|
|
11305
11312
|
}
|
11306
11313
|
}
|
11307
11314
|
function $f(t) {
|
11308
|
-
if (
|
11315
|
+
if (ke(t) === "object" && t.RTCPeerConnection) {
|
11309
11316
|
var i = t.RTCPeerConnection.prototype, e = i.createOffer, n = i.createAnswer, r = i.setLocalDescription, a = i.setRemoteDescription, o = i.addIceCandidate;
|
11310
11317
|
i.createOffer = function(c, u) {
|
11311
11318
|
var l = 2 > arguments.length ? arguments[0] : arguments[2], d = e.apply(this, [l]);
|
@@ -11360,7 +11367,7 @@ function Bf(t) {
|
|
11360
11367
|
}
|
11361
11368
|
}
|
11362
11369
|
function Vf(t) {
|
11363
|
-
|
11370
|
+
ke(t) === "object" && t.RTCTrackEvent && "receiver" in t.RTCTrackEvent.prototype && !("transceiver" in t.RTCTrackEvent.prototype) && Object.defineProperty(t.RTCTrackEvent.prototype, "transceiver", { get: function() {
|
11364
11371
|
return { receiver: this.receiver };
|
11365
11372
|
} });
|
11366
11373
|
}
|
@@ -11382,7 +11389,7 @@ function Hf(t) {
|
|
11382
11389
|
};
|
11383
11390
|
}
|
11384
11391
|
function qf(t) {
|
11385
|
-
|
11392
|
+
ke(t) !== "object" || t.AudioContext || (t.AudioContext = t.webkitAudioContext);
|
11386
11393
|
}
|
11387
11394
|
var wl, Tl = Object.freeze({ __proto__: null, shimAudioContext: qf, shimCallbacksAPI: $f, shimConstraints: Ff, shimCreateOfferLegacy: Hf, shimGetUserMedia: jf, shimLocalStreamsAPI: Af, shimRTCIceServerUrls: Bf, shimRemoteStreamsAPI: Uf, shimTrackEventTransceiver: Vf }), xl = { exports: {} }, zf = (wl || (wl = 1, function(t) {
|
11388
11395
|
var i = { generateIdentifier: function() {
|
@@ -11501,7 +11508,7 @@ m=`).map(function(n, r) {
|
|
11501
11508
|
var n = e.substring(9).split(" ");
|
11502
11509
|
return { tag: parseInt(n[0], 10), cryptoSuite: n[1], keyParams: n[2], sessionParams: n.slice(3) };
|
11503
11510
|
}, i.writeCryptoLine = function(e) {
|
11504
|
-
return "a=crypto:" + e.tag + " " + e.cryptoSuite + " " + (
|
11511
|
+
return "a=crypto:" + e.tag + " " + e.cryptoSuite + " " + (ke(e.keyParams) === "object" ? i.writeCryptoKeyParams(e.keyParams) : e.keyParams) + (e.sessionParams ? " " + e.sessionParams.join(" ") : "") + `\r
|
11505
11512
|
`;
|
11506
11513
|
}, i.parseCryptoKeyParams = function(e) {
|
11507
11514
|
if (e.indexOf("inline:") !== 0) return null;
|
@@ -11667,7 +11674,7 @@ function Sa(t) {
|
|
11667
11674
|
if (!(!t.RTCIceCandidate || t.RTCIceCandidate && "foundation" in t.RTCIceCandidate.prototype)) {
|
11668
11675
|
var i = t.RTCIceCandidate;
|
11669
11676
|
t.RTCIceCandidate = function(e) {
|
11670
|
-
if (
|
11677
|
+
if (ke(e) === "object" && e.candidate && e.candidate.indexOf("a=") === 0 && ((e = JSON.parse(JSON.stringify(e))).candidate = e.candidate.substring(2)), e.candidate && e.candidate.length) {
|
11671
11678
|
var n = new i(e), r = qi.parseCandidate(e.candidate);
|
11672
11679
|
for (var a in r) a in n || Object.defineProperty(n, a, { value: r[a] });
|
11673
11680
|
return n.toJSON = function() {
|
@@ -11802,7 +11809,7 @@ function Ea(t, i) {
|
|
11802
11809
|
var e = t.RTCPeerConnection.prototype.setLocalDescription;
|
11803
11810
|
e && e.length !== 0 && (t.RTCPeerConnection.prototype.setLocalDescription = function() {
|
11804
11811
|
var n = this, r = arguments[0] || {};
|
11805
|
-
if (
|
11812
|
+
if (ke(r) !== "object" || r.type && r.sdp) return e.apply(this, arguments);
|
11806
11813
|
if (!(r = { type: r.type, sdp: r.sdp }).type) switch (this.signalingState) {
|
11807
11814
|
case "stable":
|
11808
11815
|
case "have-local-offer":
|
@@ -11883,7 +11890,7 @@ var jt, Ii = function(t) {
|
|
11883
11890
|
(function(t) {
|
11884
11891
|
t[t.NotAllowed = 0] = "NotAllowed", t[t.ServerUnreachable = 1] = "ServerUnreachable", t[t.InternalError = 2] = "InternalError", t[t.Cancelled = 3] = "Cancelled", t[t.LeaveRequest = 4] = "LeaveRequest";
|
11885
11892
|
})(jt || (jt = {}));
|
11886
|
-
var ra, Pl, oe, fe,
|
11893
|
+
var ra, Pl, oe, fe, ye, le, rt = function(t) {
|
11887
11894
|
function i(e, n, r) {
|
11888
11895
|
var a;
|
11889
11896
|
return Re(this, i), (a = et(this, i, [1, e])).status = r, a.reason = n, a;
|
@@ -11970,7 +11977,7 @@ function Cc(t, i, e) {
|
|
11970
11977
|
t.TrackPublished = "trackPublished", t.TrackSubscribed = "trackSubscribed", t.TrackSubscriptionFailed = "trackSubscriptionFailed", t.TrackUnpublished = "trackUnpublished", t.TrackUnsubscribed = "trackUnsubscribed", t.TrackMuted = "trackMuted", t.TrackUnmuted = "trackUnmuted", t.LocalTrackPublished = "localTrackPublished", t.LocalTrackUnpublished = "localTrackUnpublished", t.ParticipantMetadataChanged = "participantMetadataChanged", t.ParticipantNameChanged = "participantNameChanged", t.DataReceived = "dataReceived", t.SipDTMFReceived = "sipDTMFReceived", t.TranscriptionReceived = "transcriptionReceived", t.IsSpeakingChanged = "isSpeakingChanged", t.ConnectionQualityChanged = "connectionQualityChanged", t.TrackStreamStateChanged = "trackStreamStateChanged", t.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", t.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", t.MediaDevicesError = "mediaDevicesError", t.AudioStreamAcquired = "audioStreamAcquired", t.ParticipantPermissionsChanged = "participantPermissionsChanged", t.PCTrackAdded = "pcTrackAdded", t.AttributesChanged = "attributesChanged", t.LocalTrackSubscribed = "localTrackSubscribed", t.ChatMessage = "chatMessage";
|
11971
11978
|
}(fe || (fe = {})), function(t) {
|
11972
11979
|
t.TransportsCreated = "transportsCreated", t.Connected = "connected", t.Disconnected = "disconnected", t.Resuming = "resuming", t.Resumed = "resumed", t.Restarting = "restarting", t.Restarted = "restarted", t.SignalResumed = "signalResumed", t.SignalRestarted = "signalRestarted", t.Closing = "closing", t.MediaTrackAdded = "mediaTrackAdded", t.ActiveSpeakersUpdate = "activeSpeakersUpdate", t.DataPacketReceived = "dataPacketReceived", t.RTPVideoMapUpdate = "rtpVideoMapUpdate", t.DCBufferStatusChanged = "dcBufferStatusChanged", t.ParticipantUpdate = "participantUpdate", t.RoomUpdate = "roomUpdate", t.SpeakersChanged = "speakersChanged", t.StreamStateChanged = "streamStateChanged", t.ConnectionQualityUpdate = "connectionQualityUpdate", t.SubscriptionError = "subscriptionError", t.SubscriptionPermissionUpdate = "subscriptionPermissionUpdate", t.RemoteMute = "remoteMute", t.SubscribedQualityUpdate = "subscribedQualityUpdate", t.LocalTrackUnpublished = "localTrackUnpublished", t.LocalTrackSubscribed = "localTrackSubscribed", t.Offline = "offline", t.SignalRequestResponse = "signalRequestResponse";
|
11973
|
-
}(
|
11980
|
+
}(ye || (ye = {})), function(t) {
|
11974
11981
|
t.Message = "message", t.Muted = "muted", t.Unmuted = "unmuted", t.Restarted = "restarted", t.Ended = "ended", t.Subscribed = "subscribed", t.Unsubscribed = "unsubscribed", t.UpdateSettings = "updateSettings", t.UpdateSubscription = "updateSubscription", t.AudioPlaybackStarted = "audioPlaybackStarted", t.AudioPlaybackFailed = "audioPlaybackFailed", t.AudioSilenceDetected = "audioSilenceDetected", t.VisibilityChanged = "visibilityChanged", t.VideoDimensionsChanged = "videoDimensionsChanged", t.VideoPlaybackStarted = "videoPlaybackStarted", t.VideoPlaybackFailed = "videoPlaybackFailed", t.ElementAttached = "elementAttached", t.ElementDetached = "elementDetached", t.UpstreamPaused = "upstreamPaused", t.UpstreamResumed = "upstreamResumed", t.SubscriptionPermissionChanged = "subscriptionPermissionChanged", t.SubscriptionStatusChanged = "subscriptionStatusChanged", t.SubscriptionFailed = "subscriptionFailed", t.TrackProcessorUpdate = "trackProcessorUpdate", t.AudioTrackFeatureUpdate = "audioTrackFeatureUpdate", t.TranscriptionReceived = "transcriptionReceived", t.TimeSyncUpdate = "timeSyncUpdate";
|
11975
11982
|
}(le || (le = {}));
|
11976
11983
|
var qo, AT = /version\/(\d+(\.?_?\d+)+)/i;
|
@@ -12015,7 +12022,7 @@ Nt.setTimeout = function() {
|
|
12015
12022
|
};
|
12016
12023
|
var Is, Ze = function() {
|
12017
12024
|
function t(i, e, n, r, a) {
|
12018
|
-
if (Re(this, t),
|
12025
|
+
if (Re(this, t), ke(i) === "object") this.width = i.width, this.height = i.height, this.aspectRatio = i.aspectRatio, this.encoding = { maxBitrate: i.maxBitrate, maxFramerate: i.maxFramerate, priority: i.priority };
|
12019
12026
|
else {
|
12020
12027
|
if (e === void 0 || n === void 0) throw new TypeError("Unsupported options: provide at least width, height and maxBitrate");
|
12021
12028
|
this.width = i, this.height = e, this.aspectRatio = i / e, this.encoding = { maxBitrate: n, maxFramerate: r, priority: a };
|
@@ -12042,7 +12049,7 @@ var ne = function(t) {
|
|
12042
12049
|
var r;
|
12043
12050
|
Re(this, i);
|
12044
12051
|
var a, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
12045
|
-
return (r = et(this, i)).attachedElements = [], r.isMuted = !1, r.streamState = i.StreamState.Active, r.isInBackground = !1, r._currentBitrate = 0, r.log =
|
12052
|
+
return (r = et(this, i)).attachedElements = [], r.isMuted = !1, r.streamState = i.StreamState.Active, r.isInBackground = !1, r._currentBitrate = 0, r.log = Je, r.appVisibilityChangedListener = function() {
|
12046
12053
|
r.backgroundTimeout && clearTimeout(r.backgroundTimeout), document.visibilityState === "hidden" ? r.backgroundTimeout = setTimeout(function() {
|
12047
12054
|
return r.handleAppVisibilityChanged();
|
12048
12055
|
}, 5e3) : r.handleAppVisibilityChanged();
|
@@ -12068,7 +12075,7 @@ var ne = function(t) {
|
|
12068
12075
|
return e.play().then(function() {
|
12069
12076
|
n.emit(o ? le.AudioPlaybackStarted : le.VideoPlaybackStarted);
|
12070
12077
|
}).catch(function(s) {
|
12071
|
-
s.name === "NotAllowedError" ? n.emit(o ? le.AudioPlaybackFailed : le.VideoPlaybackFailed, s) : s.name === "AbortError" ?
|
12078
|
+
s.name === "NotAllowedError" ? n.emit(o ? le.AudioPlaybackFailed : le.VideoPlaybackFailed, s) : s.name === "AbortError" ? Je.debug("".concat(o ? "audio" : "video", " playback aborted, likely due to new play request")) : Je.warn("could not playback ".concat(o ? "audio" : "video"), s), o && e && a.some(function(c) {
|
12072
12079
|
return c.kind === "video";
|
12073
12080
|
}) && s.name === "NotAllowedError" && (e.muted = !0, e.play().catch(function() {
|
12074
12081
|
}));
|
@@ -12157,7 +12164,7 @@ function Rs(t, i) {
|
|
12157
12164
|
}
|
12158
12165
|
function go(t) {
|
12159
12166
|
var i = {};
|
12160
|
-
if (t.video) if (
|
12167
|
+
if (t.video) if (ke(t.video) === "object") {
|
12161
12168
|
var e = {}, n = e, r = t.video;
|
12162
12169
|
Object.keys(r).forEach(function(a) {
|
12163
12170
|
switch (a) {
|
@@ -12170,7 +12177,7 @@ function go(t) {
|
|
12170
12177
|
}), i.video = e;
|
12171
12178
|
} else i.video = t.video;
|
12172
12179
|
else i.video = !1;
|
12173
|
-
return t.audio ?
|
12180
|
+
return t.audio ? ke(t.audio) === "object" ? i.audio = t.audio : i.audio = !0 : i.audio = !1, i;
|
12174
12181
|
}
|
12175
12182
|
function FT(t) {
|
12176
12183
|
return j(this, arguments, void 0, function(i) {
|
@@ -12438,7 +12445,7 @@ function Ll() {
|
|
12438
12445
|
r.width = t, r.height = i;
|
12439
12446
|
var a = r.getContext("2d");
|
12440
12447
|
a == null || a.fillRect(0, 0, r.width, r.height), n && a && (a.beginPath(), a.arc(t / 2, i / 2, 50, 0, 2 * Math.PI, !0), a.closePath(), a.fillStyle = "grey", a.fill());
|
12441
|
-
var o =
|
12448
|
+
var o = We(r.captureStream().getTracks(), 1)[0];
|
12442
12449
|
if (!o) throw Error("Could not get empty media stream video track");
|
12443
12450
|
return o.enabled = e, o;
|
12444
12451
|
}
|
@@ -12448,7 +12455,7 @@ function Wo() {
|
|
12448
12455
|
e.gain.setValueAtTime(0, 0);
|
12449
12456
|
var n = t.createMediaStreamDestination();
|
12450
12457
|
i.connect(e), e.connect(n), i.start();
|
12451
|
-
var r =
|
12458
|
+
var r = We(n.stream.getAudioTracks(), 1);
|
12452
12459
|
if (!(aa = r[0])) throw Error("Could not get empty media stream audio track");
|
12453
12460
|
aa.enabled = !1;
|
12454
12461
|
}
|
@@ -12523,7 +12530,7 @@ var Ko = "default", Mn = function() {
|
|
12523
12530
|
l.next = 15;
|
12524
12531
|
break;
|
12525
12532
|
}
|
12526
|
-
if (
|
12533
|
+
if (Je.debug("awaiting getUserMedia promise"), l.prev = 2, !e) {
|
12527
12534
|
l.next = 8;
|
12528
12535
|
break;
|
12529
12536
|
}
|
@@ -12537,7 +12544,7 @@ var Ko = "default", Mn = function() {
|
|
12537
12544
|
l.next = 15;
|
12538
12545
|
break;
|
12539
12546
|
case 12:
|
12540
|
-
l.prev = 12, l.t0 = l.catch(2),
|
12547
|
+
l.prev = 12, l.t0 = l.catch(2), Je.warn("error waiting for media permissons");
|
12541
12548
|
case 15:
|
12542
12549
|
return l.next = 17, navigator.mediaDevices.enumerateDevices();
|
12543
12550
|
case 17:
|
@@ -12592,7 +12599,7 @@ var Ko = "default", Mn = function() {
|
|
12592
12599
|
c.next = 9;
|
12593
12600
|
break;
|
12594
12601
|
}
|
12595
|
-
return
|
12602
|
+
return Je.warn("could not reliably determine default device"), c.abrupt("return", void 0);
|
12596
12603
|
case 9:
|
12597
12604
|
if (s = a.find(function(u) {
|
12598
12605
|
return u.deviceId !== Ko && u.groupId === (n ?? o.groupId);
|
@@ -12600,7 +12607,7 @@ var Ko = "default", Mn = function() {
|
|
12600
12607
|
c.next = 13;
|
12601
12608
|
break;
|
12602
12609
|
}
|
12603
|
-
return
|
12610
|
+
return Je.warn("could not reliably determine default device"), c.abrupt("return", void 0);
|
12604
12611
|
case 13:
|
12605
12612
|
return c.abrupt("return", s == null ? void 0 : s.deviceId);
|
12606
12613
|
case 14:
|
@@ -13076,7 +13083,7 @@ var yr, Ji = function(t) {
|
|
13076
13083
|
var a, o, s = r.data, c = s.kind, u = s.data;
|
13077
13084
|
switch (c) {
|
13078
13085
|
case "error":
|
13079
|
-
|
13086
|
+
Je.error(u.error.message), n.emit(ni.EncryptionError, u.error);
|
13080
13087
|
break;
|
13081
13088
|
case "initAck":
|
13082
13089
|
u.enabled && n.keyProvider.getKeys().forEach(function(d) {
|
@@ -13098,23 +13105,23 @@ var yr, Ji = function(t) {
|
|
13098
13105
|
break;
|
13099
13106
|
}
|
13100
13107
|
}, n.onWorkerError = function(r) {
|
13101
|
-
|
13108
|
+
Je.error("e2ee worker encountered an error:", { error: r.error }), n.emit(ni.EncryptionError, r.error);
|
13102
13109
|
}, n.keyProvider = e.keyProvider, n.worker = e.worker, n.encryptionEnabled = !1, n;
|
13103
13110
|
}
|
13104
13111
|
return tt(i, Ni.EventEmitter), De(i, [{ key: "setup", value: function(e) {
|
13105
13112
|
if (!DT()) throw new kc("tried to setup end-to-end encryption on an unsupported browser");
|
13106
|
-
if (
|
13113
|
+
if (Je.info("setting up e2ee"), e !== this.room) {
|
13107
13114
|
this.room = e, this.setupEventListeners(e, this.keyProvider);
|
13108
13115
|
var n = { kind: "init", data: { keyProviderOptions: this.keyProvider.getOptions(), loglevel: ET.getLevel() } };
|
13109
|
-
this.worker && (
|
13116
|
+
this.worker && (Je.info("initializing worker", { worker: this.worker }), this.worker.onmessage = this.onWorkerMessage, this.worker.onerror = this.onWorkerError, this.worker.postMessage(n));
|
13110
13117
|
}
|
13111
13118
|
} }, { key: "setParticipantCryptorEnabled", value: function(e, n) {
|
13112
|
-
|
13119
|
+
Je.debug("set e2ee to ".concat(e, " for participant ").concat(n)), this.postEnable(e, n);
|
13113
13120
|
} }, { key: "setSifTrailer", value: function(e) {
|
13114
|
-
e && e.length !== 0 ? this.postSifTrailer(e) :
|
13121
|
+
e && e.length !== 0 ? this.postSifTrailer(e) : Je.warn("ignoring server sent trailer as it's empty");
|
13115
13122
|
} }, { key: "setupEngine", value: function(e) {
|
13116
13123
|
var n = this;
|
13117
|
-
e.on(
|
13124
|
+
e.on(ye.RTPVideoMapUpdate, function(r) {
|
13118
13125
|
n.postRTPMap(r);
|
13119
13126
|
});
|
13120
13127
|
} }, { key: "setupEventListeners", value: function(e, n) {
|
@@ -13183,7 +13190,7 @@ var yr, Ji = function(t) {
|
|
13183
13190
|
this.handleReceiver(e.receiver, e.mediaStreamID, n, e.kind === "video" ? Pa(r.mimeType) : void 0);
|
13184
13191
|
}
|
13185
13192
|
} }, { key: "setupE2EESender", value: function(e, n) {
|
13186
|
-
e instanceof Ji && n ? this.handleSender(n, e.mediaStreamID, void 0) : n ||
|
13193
|
+
e instanceof Ji && n ? this.handleSender(n, e.mediaStreamID, void 0) : n || Je.warn("early return because sender is not ready");
|
13187
13194
|
} }, { key: "handleReceiver", value: function(e, n, r, a) {
|
13188
13195
|
return j(this, void 0, void 0, w().mark(function o() {
|
13189
13196
|
var s, c, u, l, d, b;
|
@@ -13223,11 +13230,11 @@ var yr, Ji = function(t) {
|
|
13223
13230
|
if (!(ia in e) && this.worker) {
|
13224
13231
|
if (!(!((a = this.room) === null || a === void 0) && a.localParticipant.identity) || this.room.localParticipant.identity === "") throw TypeError("local identity needs to be known in order to set up encrypted sender");
|
13225
13232
|
if (Ns()) {
|
13226
|
-
|
13233
|
+
Je.info("initialize script transform");
|
13227
13234
|
var o = { kind: "encode", participantIdentity: this.room.localParticipant.identity, trackId: n, codec: r };
|
13228
13235
|
e.transform = new RTCRtpScriptTransform(this.worker, o);
|
13229
13236
|
} else {
|
13230
|
-
|
13237
|
+
Je.info("initialize encoded streams");
|
13231
13238
|
var s = e.createEncodedStreams(), c = { kind: "encode", data: { readableStream: s.readable, writableStream: s.writable, codec: r, trackId: n, participantIdentity: this.room.localParticipant.identity } };
|
13232
13239
|
this.worker.postMessage(c, [s.readable, s.writable]);
|
13233
13240
|
}
|
@@ -13290,7 +13297,7 @@ var lt, WT = function() {
|
|
13290
13297
|
}(), KT = ["syncState", "trickle", "offer", "answer", "simulate", "leave"];
|
13291
13298
|
function YT(t) {
|
13292
13299
|
var i = KT.indexOf(t.case) >= 0;
|
13293
|
-
return
|
13300
|
+
return Je.trace("request allowed to bypass queue:", { canPass: i, req: t }), i;
|
13294
13301
|
}
|
13295
13302
|
(function(t) {
|
13296
13303
|
t[t.CONNECTING = 0] = "CONNECTING", t[t.CONNECTED = 1] = "CONNECTED", t[t.RECONNECTING = 2] = "RECONNECTING", t[t.DISCONNECTING = 3] = "DISCONNECTING", t[t.DISCONNECTED = 4] = "DISCONNECTED";
|
@@ -13300,7 +13307,7 @@ var QT = function() {
|
|
13300
13307
|
var i = this;
|
13301
13308
|
Re(this, t);
|
13302
13309
|
var e, n = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
13303
|
-
this.rtt = 0, this.state = lt.DISCONNECTED, this.log =
|
13310
|
+
this.rtt = 0, this.state = lt.DISCONNECTED, this.log = Je, this._requestId = 0, this.resetCallbacks = function() {
|
13304
13311
|
i.onAnswer = void 0, i.onLeave = void 0, i.onLocalTrackPublished = void 0, i.onLocalTrackUnpublished = void 0, i.onNegotiateRequested = void 0, i.onOffer = void 0, i.onRemoteMuteChanged = void 0, i.onSubscribedQualityUpdate = void 0, i.onTokenRefresh = void 0, i.onTrickle = void 0, i.onClose = void 0;
|
13305
13312
|
}, this.log = Hn((e = r.loggerName) !== null && e !== void 0 ? e : kn.Signal), this.loggerContextCb = r.loggerContextCb, this.useJSON = n, this.requestQueue = new WT(), this.queuedRequests = [], this.closingLock = new Zt(), this.connectionLock = new Zt(), this.state = lt.DISCONNECTED;
|
13306
13313
|
}
|
@@ -13447,7 +13454,7 @@ var QT = function() {
|
|
13447
13454
|
S = fl.fromBinary(new Uint8Array(f.data)), I.next = 11;
|
13448
13455
|
break;
|
13449
13456
|
case 9:
|
13450
|
-
return this.log.error("could not decode websocket message: ".concat(
|
13457
|
+
return this.log.error("could not decode websocket message: ".concat(ke(f.data)), this.logContext), I.abrupt("return");
|
13451
13458
|
case 11:
|
13452
13459
|
if (this.state === lt.CONNECTED) {
|
13453
13460
|
I.next = 16;
|
@@ -13847,7 +13854,7 @@ var Zn = function() {
|
|
13847
13854
|
var n;
|
13848
13855
|
Re(this, i);
|
13849
13856
|
var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
13850
|
-
return (n = et(this, i)).log =
|
13857
|
+
return (n = et(this, i)).log = Je, n.pendingCandidates = [], n.restartingIce = !1, n.renegotiate = !1, n.trackBitrates = [], n.remoteStereoMids = [], n.remoteNackMids = [], n.negotiate = Cc(function(o) {
|
13851
13858
|
return j(je(n), void 0, void 0, w().mark(function s() {
|
13852
13859
|
return w().wrap(function(c) {
|
13853
13860
|
for (; ; ) switch (c.prev = c.next) {
|
@@ -14237,7 +14244,7 @@ var ft, $s = "vp8", nx = { audioPreset: Is.music, dtx: !0, red: !0, forceStereo:
|
|
14237
14244
|
var rx = function() {
|
14238
14245
|
function t(i, e, n) {
|
14239
14246
|
var r, a = this;
|
14240
|
-
Re(this, t), this.peerConnectionTimeout = wc.peerConnectionTimeout, this.log =
|
14247
|
+
Re(this, t), this.peerConnectionTimeout = wc.peerConnectionTimeout, this.log = Je, this.updateState = function() {
|
14241
14248
|
var o, s = a.state, c = a.requiredTransports.map(function(u) {
|
14242
14249
|
return u.getConnectionState();
|
14243
14250
|
});
|
@@ -14792,7 +14799,7 @@ function Fs(t, i, e, n) {
|
|
14792
14799
|
break;
|
14793
14800
|
}
|
14794
14801
|
return I;
|
14795
|
-
}(t, i, e, u),
|
14802
|
+
}(t, i, e, u), Je.debug("using video encoding", o));
|
14796
14803
|
var l = new Ze(i, e, o.maxBitrate, o.maxFramerate, o.priority);
|
14797
14804
|
if (c && br(u)) {
|
14798
14805
|
var d = new oh(c), b = [];
|
@@ -14802,13 +14809,13 @@ function Fs(t, i, e, n) {
|
|
14802
14809
|
for (var h = d.suffix == "h" ? 2 : 3, m = 0; m < d.spatial; m += 1) b.push({ rid: js[2 - m], maxBitrate: o.maxBitrate / Math.pow(h, m), maxFramerate: l.encoding.maxFramerate });
|
14803
14810
|
b[0].scalabilityMode = c;
|
14804
14811
|
} else b.push({ maxBitrate: o.maxBitrate, maxFramerate: l.encoding.maxFramerate, scalabilityMode: c });
|
14805
|
-
return l.encoding.priority && (b[0].priority = l.encoding.priority, b[0].networkPriority = l.encoding.priority),
|
14812
|
+
return l.encoding.priority && (b[0].priority = l.encoding.priority, b[0].networkPriority = l.encoding.priority), Je.debug("using svc encoding", { encodings: b }), b;
|
14806
14813
|
}
|
14807
14814
|
if (!s) return [o];
|
14808
14815
|
var p, f = [];
|
14809
14816
|
if ((f = t ? (r = Jl(n == null ? void 0 : n.screenShareSimulcastLayers)) !== null && r !== void 0 ? r : zl(t, l) : (a = Jl(n == null ? void 0 : n.videoSimulcastLayers)) !== null && a !== void 0 ? a : zl(t, l)).length > 0) {
|
14810
14817
|
var v = f[0];
|
14811
|
-
f.length > 1 && (p =
|
14818
|
+
f.length > 1 && (p = We(f, 2)[1]);
|
14812
14819
|
var y = Math.max(i, e);
|
14813
14820
|
if (y >= 960 && p) return Xo(i, e, [v, p, l]);
|
14814
14821
|
if (y >= 480) return Xo(i, e, [v, l]);
|
@@ -14818,7 +14825,7 @@ function Fs(t, i, e, n) {
|
|
14818
14825
|
function dx(t, i, e) {
|
14819
14826
|
var n, r, a, o;
|
14820
14827
|
if (e.backupCodec && e.backupCodec !== !0 && e.backupCodec.codec !== e.videoCodec) {
|
14821
|
-
i !== e.backupCodec.codec &&
|
14828
|
+
i !== e.backupCodec.codec && Je.warn("requested a different codec than specified as backup", { serverRequested: i, backup: e.backupCodec.codec }), e.videoCodec = i, e.videoEncoding = e.backupCodec.encoding;
|
14822
14829
|
var s = t.mediaStreamTrack.getSettings(), c = (n = s.width) !== null && n !== void 0 ? n : (r = t.dimensions) === null || r === void 0 ? void 0 : r.width, u = (a = s.height) !== null && a !== void 0 ? a : (o = t.dimensions) === null || o === void 0 ? void 0 : o.height;
|
14823
14830
|
return Fs(t.source === ne.Source.ScreenShare, c, u, e);
|
14824
14831
|
}
|
@@ -14845,7 +14852,7 @@ function Xo(t, i, e) {
|
|
14845
14852
|
var a = !0;
|
14846
14853
|
n.forEach(function(o) {
|
14847
14854
|
var s;
|
14848
|
-
o.maxFramerate != r && (a && (a = !1,
|
14855
|
+
o.maxFramerate != r && (a && (a = !1, Je.info("Simulcast on iOS React-Native requires all encodings to share the same framerate.")), Je.info('Setting framerate of encoding "'.concat((s = o.rid) !== null && s !== void 0 ? s : "", '" to ').concat(r)), o.maxFramerate = r);
|
14849
14856
|
});
|
14850
14857
|
}
|
14851
14858
|
return n;
|
@@ -15509,7 +15516,7 @@ var hn, Kl = "_lossy", Yl = "_reliable", Zo = "leave-reconnect";
|
|
15509
15516
|
var fx = function(t) {
|
15510
15517
|
function i(e) {
|
15511
15518
|
var n, r;
|
15512
|
-
return Re(this, i), (n = et(this, i)).options = e, n.rtcConfig = {}, n.peerConnectionTimeout = wc.peerConnectionTimeout, n.fullReconnectOnNext = !1, n.subscriberPrimary = !1, n.pcState = hn.New, n._isClosed = !0, n.pendingTrackResolvers = {}, n.reconnectAttempts = 0, n.reconnectStart = 0, n.attemptingReconnect = !1, n.joinAttempts = 0, n.maxJoinAttempts = 1, n.shouldFailNext = !1, n.log =
|
15519
|
+
return Re(this, i), (n = et(this, i)).options = e, n.rtcConfig = {}, n.peerConnectionTimeout = wc.peerConnectionTimeout, n.fullReconnectOnNext = !1, n.subscriberPrimary = !1, n.pcState = hn.New, n._isClosed = !0, n.pendingTrackResolvers = {}, n.reconnectAttempts = 0, n.reconnectStart = 0, n.attemptingReconnect = !1, n.joinAttempts = 0, n.maxJoinAttempts = 1, n.shouldFailNext = !1, n.log = Je, n.handleDataChannel = function(a) {
|
15513
15520
|
return j(je(n), [a], void 0, function(o) {
|
15514
15521
|
var s = this, c = o.channel;
|
15515
15522
|
return w().mark(function u() {
|
@@ -15572,7 +15579,7 @@ var fx = function(t) {
|
|
15572
15579
|
case 14:
|
15573
15580
|
return this.log.error("unsupported data type", Object.assign(Object.assign({}, this.logContext), { data: a.data })), b.abrupt("return");
|
15574
15581
|
case 16:
|
15575
|
-
d = lr.fromBinary(new Uint8Array(l)), ((s = d.value) === null || s === void 0 ? void 0 : s.case) === "speaker" ? this.emit(
|
15582
|
+
d = lr.fromBinary(new Uint8Array(l)), ((s = d.value) === null || s === void 0 ? void 0 : s.case) === "speaker" ? this.emit(ye.ActiveSpeakersUpdate, d.value.value.speakers) : (((c = d.value) === null || c === void 0 ? void 0 : c.case) === "user" && hx(d, d.value.value), this.emit(ye.DataPacketReceived, d));
|
15576
15583
|
case 18:
|
15577
15584
|
return b.prev = 18, u(), b.finish(18);
|
15578
15585
|
case 21:
|
@@ -15599,22 +15606,22 @@ var fx = function(t) {
|
|
15599
15606
|
return n.reconnectTimeout = void 0;
|
15600
15607
|
});
|
15601
15608
|
}, c)) : function(u) {
|
15602
|
-
n.log.warn("could not recover connection after ".concat(n.reconnectAttempts, " attempts, ").concat(u, "ms. giving up"), n.logContext), n.emit(
|
15609
|
+
n.log.warn("could not recover connection after ".concat(n.reconnectAttempts, " attempts, ").concat(u, "ms. giving up"), n.logContext), n.emit(ye.Disconnected), n.close();
|
15603
15610
|
}(s);
|
15604
15611
|
}
|
15605
15612
|
}, n.waitForRestarted = function() {
|
15606
15613
|
return new Promise(function(a, o) {
|
15607
15614
|
n.pcState === hn.Connected && a();
|
15608
15615
|
var s = function() {
|
15609
|
-
n.off(
|
15616
|
+
n.off(ye.Disconnected, c), a();
|
15610
15617
|
}, c = function() {
|
15611
|
-
n.off(
|
15618
|
+
n.off(ye.Restarted, s), o();
|
15612
15619
|
};
|
15613
|
-
n.once(
|
15620
|
+
n.once(ye.Restarted, s), n.once(ye.Disconnected, c);
|
15614
15621
|
});
|
15615
15622
|
}, n.updateAndEmitDCBufferStatus = function(a) {
|
15616
15623
|
var o = n.isBufferStatusLow(a);
|
15617
|
-
o !== void 0 && o !== n.dcBufferStatus.get(a) && (n.dcBufferStatus.set(a, o), n.emit(
|
15624
|
+
o !== void 0 && o !== n.dcBufferStatus.get(a) && (n.dcBufferStatus.set(a, o), n.emit(ye.DCBufferStatusChanged, o, a));
|
15618
15625
|
}, n.isBufferStatusLow = function(a) {
|
15619
15626
|
var o = n.dataChannelForKind(a);
|
15620
15627
|
if (o) return o.bufferedAmount <= o.bufferedAmountLowThreshold;
|
@@ -15623,21 +15630,21 @@ var fx = function(t) {
|
|
15623
15630
|
}, n.log = Hn((r = e.loggerName) !== null && r !== void 0 ? r : kn.Engine), n.loggerOptions = { loggerName: e.loggerName, loggerContextCb: function() {
|
15624
15631
|
return n.logContext;
|
15625
15632
|
} }, n.client = new QT(void 0, n.loggerOptions), n.client.signalLatency = n.options.expSignalLatency, n.reconnectPolicy = n.options.reconnectPolicy, n.registerOnLineListener(), n.closingLock = new Zt(), n.dataProcessLock = new Zt(), n.dcBufferStatus = /* @__PURE__ */ new Map([[St.LOSSY, !0], [St.RELIABLE, !0]]), n.client.onParticipantUpdate = function(a) {
|
15626
|
-
return n.emit(
|
15633
|
+
return n.emit(ye.ParticipantUpdate, a);
|
15627
15634
|
}, n.client.onConnectionQuality = function(a) {
|
15628
|
-
return n.emit(
|
15635
|
+
return n.emit(ye.ConnectionQualityUpdate, a);
|
15629
15636
|
}, n.client.onRoomUpdate = function(a) {
|
15630
|
-
return n.emit(
|
15637
|
+
return n.emit(ye.RoomUpdate, a);
|
15631
15638
|
}, n.client.onSubscriptionError = function(a) {
|
15632
|
-
return n.emit(
|
15639
|
+
return n.emit(ye.SubscriptionError, a);
|
15633
15640
|
}, n.client.onSubscriptionPermissionUpdate = function(a) {
|
15634
|
-
return n.emit(
|
15641
|
+
return n.emit(ye.SubscriptionPermissionUpdate, a);
|
15635
15642
|
}, n.client.onSpeakersChanged = function(a) {
|
15636
|
-
return n.emit(
|
15643
|
+
return n.emit(ye.SpeakersChanged, a);
|
15637
15644
|
}, n.client.onStreamStateUpdate = function(a) {
|
15638
|
-
return n.emit(
|
15645
|
+
return n.emit(ye.StreamStateChanged, a);
|
15639
15646
|
}, n.client.onRequestResponse = function(a) {
|
15640
|
-
return n.emit(
|
15647
|
+
return n.emit(ye.SignalRequestResponse, a);
|
15641
15648
|
}, n;
|
15642
15649
|
}
|
15643
15650
|
return tt(i, Ni.EventEmitter), De(i, [{ key: "isClosed", get: function() {
|
@@ -15698,7 +15705,7 @@ var fx = function(t) {
|
|
15698
15705
|
}
|
15699
15706
|
return n(), r.abrupt("return");
|
15700
15707
|
case 6:
|
15701
|
-
return r.prev = 6, this._isClosed = !0, this.emit(
|
15708
|
+
return r.prev = 6, this._isClosed = !0, this.emit(ye.Closing), this.removeAllListeners(), this.deregisterOnLineListener(), this.clearPendingReconnect(), r.next = 14, this.cleanupPeerConnections();
|
15702
15709
|
case 14:
|
15703
15710
|
return r.next = 16, this.cleanupClient();
|
15704
15711
|
case 16:
|
@@ -15796,7 +15803,7 @@ var fx = function(t) {
|
|
15796
15803
|
}
|
15797
15804
|
return c.abrupt("return");
|
15798
15805
|
case 2:
|
15799
|
-
this.participantSid = (r = e.participant) === null || r === void 0 ? void 0 : r.sid, o = this.makeRTCConfiguration(e), this.pcManager = new rx(o, e.subscriberPrimary, this.loggerOptions), this.emit(
|
15806
|
+
this.participantSid = (r = e.participant) === null || r === void 0 ? void 0 : r.sid, o = this.makeRTCConfiguration(e), this.pcManager = new rx(o, e.subscriberPrimary, this.loggerOptions), this.emit(ye.TransportsCreated, this.pcManager.publisher, this.pcManager.subscriber), this.pcManager.onIceCandidate = function(l, d) {
|
15800
15807
|
s.client.sendIceCandidate(l, d);
|
15801
15808
|
}, this.pcManager.onPublisherOffer = function(l) {
|
15802
15809
|
s.client.sendOffer(l);
|
@@ -15806,7 +15813,7 @@ var fx = function(t) {
|
|
15806
15813
|
return w().wrap(function(f) {
|
15807
15814
|
for (; ; ) switch (f.prev = f.next) {
|
15808
15815
|
case 0:
|
15809
|
-
this.log.debug("primary PC state changed ".concat(l), this.logContext), ["closed", "disconnected", "failed"].includes(d) && (this.publisherConnectionPromise = void 0), l === ft.CONNECTED ? (h = this.pcState === hn.New, this.pcState = hn.Connected, h && this.emit(
|
15816
|
+
this.log.debug("primary PC state changed ".concat(l), this.logContext), ["closed", "disconnected", "failed"].includes(d) && (this.publisherConnectionPromise = void 0), l === ft.CONNECTED ? (h = this.pcState === hn.New, this.pcState = hn.Connected, h && this.emit(ye.Connected, e)) : l === ft.FAILED && this.pcState === hn.Connected && (this.pcState = hn.Disconnected, this.handleDisconnect("peerconnection failed", b === "failed" ? Di.RR_SUBSCRIBER_FAILED : Di.RR_PUBLISHER_FAILED)), m = this.client.isDisconnected || this.client.currentState === lt.RECONNECTING, p = [ft.FAILED, ft.CLOSING, ft.CLOSED].includes(l), m && p && !this._isClosed && this.emit(ye.Offline);
|
15810
15817
|
case 6:
|
15811
15818
|
case "end":
|
15812
15819
|
return f.stop();
|
@@ -15814,7 +15821,7 @@ var fx = function(t) {
|
|
15814
15821
|
}, g, this);
|
15815
15822
|
}));
|
15816
15823
|
}, this.pcManager.onTrack = function(l) {
|
15817
|
-
s.emit(
|
15824
|
+
s.emit(ye.MediaTrackAdded, l.track, l.streams[0], l.receiver);
|
15818
15825
|
}, (u = (a = e.serverInfo) === null || a === void 0 ? void 0 : a.protocol) !== void 0 && u > 13 || this.createDataChannels();
|
15819
15826
|
case 12:
|
15820
15827
|
case "end":
|
@@ -15873,21 +15880,21 @@ var fx = function(t) {
|
|
15873
15880
|
delete e.pendingTrackResolvers[n.cid], a(n.track);
|
15874
15881
|
} else e.log.error("missing track resolver for ".concat(n.cid), Object.assign(Object.assign({}, e.logContext), { cid: n.cid }));
|
15875
15882
|
}, this.client.onLocalTrackUnpublished = function(n) {
|
15876
|
-
e.emit(
|
15883
|
+
e.emit(ye.LocalTrackUnpublished, n);
|
15877
15884
|
}, this.client.onLocalTrackSubscribed = function(n) {
|
15878
|
-
e.emit(
|
15885
|
+
e.emit(ye.LocalTrackSubscribed, n);
|
15879
15886
|
}, this.client.onTokenRefresh = function(n) {
|
15880
15887
|
e.token = n;
|
15881
15888
|
}, this.client.onRemoteMuteChanged = function(n, r) {
|
15882
|
-
e.emit(
|
15889
|
+
e.emit(ye.RemoteMute, n, r);
|
15883
15890
|
}, this.client.onSubscribedQualityUpdate = function(n) {
|
15884
|
-
e.emit(
|
15891
|
+
e.emit(ye.SubscribedQualityUpdate, n);
|
15885
15892
|
}, this.client.onClose = function() {
|
15886
15893
|
e.handleDisconnect("signal", Di.RR_SIGNAL_DISCONNECTED);
|
15887
15894
|
}, this.client.onLeave = function(n) {
|
15888
15895
|
switch (e.log.debug("client leave request", Object.assign(Object.assign({}, e.logContext), { reason: n == null ? void 0 : n.reason })), n.regions && e.regionUrlProvider && (e.log.debug("updating regions", e.logContext), e.regionUrlProvider.setServerReportedRegions(n.regions)), n.action) {
|
15889
15896
|
case Hi.DISCONNECT:
|
15890
|
-
e.emit(
|
15897
|
+
e.emit(ye.Disconnected, n == null ? void 0 : n.reason), e.close();
|
15891
15898
|
break;
|
15892
15899
|
case Hi.RECONNECT:
|
15893
15900
|
e.fullReconnectOnNext = !0, e.handleDisconnect(Zo);
|
@@ -16043,7 +16050,7 @@ var fx = function(t) {
|
|
16043
16050
|
c.next = 5;
|
16044
16051
|
break;
|
16045
16052
|
}
|
16046
|
-
return
|
16053
|
+
return Je.warn("already attempting reconnect, returning early", this.logContext), c.abrupt("return");
|
16047
16054
|
case 5:
|
16048
16055
|
if (((r = this.clientConfiguration) === null || r === void 0 ? void 0 : r.resumeConnection) !== Mr.DISABLED && ((o = (a = this.pcManager) === null || a === void 0 ? void 0 : a.currentState) !== null && o !== void 0 ? o : ft.NEW) !== ft.NEW || (this.fullReconnectOnNext = !0), c.prev = 6, this.attemptingReconnect = !0, !this.fullReconnectOnNext) {
|
16049
16056
|
c.next = 13;
|
@@ -16066,7 +16073,7 @@ var fx = function(t) {
|
|
16066
16073
|
this.handleDisconnect("reconnect", Di.RR_UNKNOWN), c.next = 32;
|
16067
16074
|
break;
|
16068
16075
|
case 28:
|
16069
|
-
return this.log.info("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(Date.now() - this.reconnectStart, "ms. giving up"), this.logContext), this.emit(
|
16076
|
+
return this.log.info("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(Date.now() - this.reconnectStart, "ms. giving up"), this.logContext), this.emit(ye.Disconnected), c.next = 32, this.close();
|
16070
16077
|
case 32:
|
16071
16078
|
return c.prev = 32, this.attemptingReconnect = !1, c.finish(32);
|
16072
16079
|
case 35:
|
@@ -16094,7 +16101,7 @@ var fx = function(t) {
|
|
16094
16101
|
}
|
16095
16102
|
throw new wt("could not reconnect, url or token not saved");
|
16096
16103
|
case 3:
|
16097
|
-
if (this.log.info("reconnecting, attempt: ".concat(this.reconnectAttempts), this.logContext), this.emit(
|
16104
|
+
if (this.log.info("reconnecting, attempt: ".concat(this.reconnectAttempts), this.logContext), this.emit(ye.Restarting), this.client.isDisconnected) {
|
16098
16105
|
u.next = 8;
|
16099
16106
|
break;
|
16100
16107
|
}
|
@@ -16129,7 +16136,7 @@ var fx = function(t) {
|
|
16129
16136
|
}
|
16130
16137
|
throw this.shouldFailNext = !1, new Error("simulated failure");
|
16131
16138
|
case 29:
|
16132
|
-
return this.client.setReconnected(), this.emit(
|
16139
|
+
return this.client.setReconnected(), this.emit(ye.SignalRestarted, s), u.next = 33, this.waitForPCReconnected();
|
16133
16140
|
case 33:
|
16134
16141
|
if (this.client.currentState === lt.CONNECTED) {
|
16135
16142
|
u.next = 35;
|
@@ -16137,7 +16144,7 @@ var fx = function(t) {
|
|
16137
16144
|
}
|
16138
16145
|
throw new Li("Signal connection got severed during reconnect");
|
16139
16146
|
case 35:
|
16140
|
-
(r = this.regionUrlProvider) === null || r === void 0 || r.resetAttempts(), this.emit(
|
16147
|
+
(r = this.regionUrlProvider) === null || r === void 0 || r.resetAttempts(), this.emit(ye.Restarted), u.next = 52;
|
16141
16148
|
break;
|
16142
16149
|
case 39:
|
16143
16150
|
return u.prev = 39, u.t1 = u.catch(0), u.next = 43, (a = this.regionUrlProvider) === null || a === void 0 ? void 0 : a.getNextBestRegionUrl();
|
@@ -16175,7 +16182,7 @@ var fx = function(t) {
|
|
16175
16182
|
}
|
16176
16183
|
throw new wt("publisher and subscriber connections unset");
|
16177
16184
|
case 4:
|
16178
|
-
return this.log.info("resuming signal connection, attempt ".concat(this.reconnectAttempts), this.logContext), this.emit(
|
16185
|
+
return this.log.info("resuming signal connection, attempt ".concat(this.reconnectAttempts), this.logContext), this.emit(ye.Resuming), c.prev = 6, this.setupSignalClientCallbacks(), c.next = 10, this.client.reconnect(this.url, this.token, this.participantSid, e);
|
16179
16186
|
case 10:
|
16180
16187
|
a = c.sent, c.next = 22;
|
16181
16188
|
break;
|
@@ -16194,7 +16201,7 @@ var fx = function(t) {
|
|
16194
16201
|
case 21:
|
16195
16202
|
throw new Li(o);
|
16196
16203
|
case 22:
|
16197
|
-
if (this.emit(
|
16204
|
+
if (this.emit(ye.SignalResumed), a ? (s = this.makeRTCConfiguration(a), this.pcManager.updateConfiguration(s)) : this.log.warn("Did not receive reconnect response", this.logContext), !this.shouldFailNext) {
|
16198
16205
|
c.next = 27;
|
16199
16206
|
break;
|
16200
16207
|
}
|
@@ -16210,7 +16217,7 @@ var fx = function(t) {
|
|
16210
16217
|
}
|
16211
16218
|
throw new Li("Signal connection got severed during reconnect");
|
16212
16219
|
case 33:
|
16213
|
-
this.client.setReconnected(), ((r = this.reliableDC) === null || r === void 0 ? void 0 : r.readyState) === "open" && this.reliableDC.id === null && this.createDataChannels(), this.emit(
|
16220
|
+
this.client.setReconnected(), ((r = this.reliableDC) === null || r === void 0 ? void 0 : r.readyState) === "open" && this.reliableDC.id === null && this.createDataChannels(), this.emit(ye.Resumed);
|
16214
16221
|
case 36:
|
16215
16222
|
case "end":
|
16216
16223
|
return c.stop();
|
@@ -16360,12 +16367,12 @@ var fx = function(t) {
|
|
16360
16367
|
case 3:
|
16361
16368
|
return this.pcManager.requirePublisher(), this.pcManager.publisher.getTransceivers().length != 0 || this.lossyDC || this.reliableDC || this.createDataChannels(), c = new AbortController(), u = function() {
|
16362
16369
|
c.abort(), l.log.debug("engine disconnected while negotiation was ongoing", l.logContext), a();
|
16363
|
-
}, this.isClosed && o("cannot negotiate on closed engine"), this.on(
|
16370
|
+
}, this.isClosed && o("cannot negotiate on closed engine"), this.on(ye.Closing, u), this.pcManager.publisher.once(nh, function(b) {
|
16364
16371
|
var g = /* @__PURE__ */ new Map();
|
16365
16372
|
b.forEach(function(h) {
|
16366
16373
|
var m, p = h.codec.toLowerCase();
|
16367
16374
|
m = p, Jf.includes(m) && g.set(h.payload, p);
|
16368
|
-
}), l.emit(
|
16375
|
+
}), l.emit(ye.RTPVideoMapUpdate, g);
|
16369
16376
|
}), d.prev = 10, d.next = 13, this.pcManager.negotiate(c);
|
16370
16377
|
case 13:
|
16371
16378
|
a(), d.next = 21;
|
@@ -16373,7 +16380,7 @@ var fx = function(t) {
|
|
16373
16380
|
case 16:
|
16374
16381
|
d.prev = 16, d.t0 = d.catch(10), d.t0 instanceof Ms && (this.fullReconnectOnNext = !0), this.handleDisconnect("negotiation", Di.RR_UNKNOWN), o(d.t0);
|
16375
16382
|
case 21:
|
16376
|
-
return d.prev = 21, this.off(
|
16383
|
+
return d.prev = 21, this.off(ye.Closing, u), d.finish(21);
|
16377
16384
|
case 24:
|
16378
16385
|
case "end":
|
16379
16386
|
return d.stop();
|
@@ -16471,7 +16478,7 @@ var Ql = function() {
|
|
16471
16478
|
o.next = 14;
|
16472
16479
|
break;
|
16473
16480
|
}
|
16474
|
-
return r = n[0], this.attemptedRegions.push(r),
|
16481
|
+
return r = n[0], this.attemptedRegions.push(r), Je.debug("next region: ".concat(r.region)), o.abrupt("return", r.url);
|
16475
16482
|
case 14:
|
16476
16483
|
return o.abrupt("return", null);
|
16477
16484
|
case 15:
|
@@ -16898,7 +16905,7 @@ function Xl(t) {
|
|
16898
16905
|
var $n = function(t) {
|
16899
16906
|
function i(e, n, r, a) {
|
16900
16907
|
var o, s;
|
16901
|
-
return Re(this, i), (o = et(this, i)).metadataMuted = !1, o.encryption = on.NONE, o.log =
|
16908
|
+
return Re(this, i), (o = et(this, i)).metadataMuted = !1, o.encryption = on.NONE, o.log = Je, o.handleMuted = function() {
|
16902
16909
|
o.emit(le.Muted);
|
16903
16910
|
}, o.handleUnmuted = function() {
|
16904
16911
|
o.emit(le.Unmuted);
|
@@ -17010,7 +17017,7 @@ var ei, Ka = function(t) {
|
|
17010
17017
|
}();
|
17011
17018
|
function uh(t) {
|
17012
17019
|
var i, e;
|
17013
|
-
return
|
17020
|
+
return ke(t.audio) === "object" && t.audio.processor && (i = t.audio.processor), ke(t.video) === "object" && t.video.processor && (e = t.video.processor), { audioProcessor: i, videoProcessor: e };
|
17014
17021
|
}
|
17015
17022
|
function vx(t) {
|
17016
17023
|
return j(this, void 0, void 0, w().mark(function i() {
|
@@ -17068,7 +17075,7 @@ var lh = function(t) {
|
|
17068
17075
|
var s;
|
17069
17076
|
Re(this, i);
|
17070
17077
|
var c, u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Ga.STANDARD;
|
17071
|
-
return (s = et(this, i)).audioLevel = 0, s.isSpeaking = !1, s._connectionQuality = ei.Unknown, s.log =
|
17078
|
+
return (s = et(this, i)).audioLevel = 0, s.isSpeaking = !1, s._connectionQuality = ei.Unknown, s.log = Je, s.log = Hn((c = o == null ? void 0 : o.loggerName) !== null && c !== void 0 ? c : kn.Participant), s.loggerOptions = o, s.setMaxListeners(100), s.sid = e, s.identity = n, s.name = r, s.metadata = a, s.audioTrackPublications = /* @__PURE__ */ new Map(), s.videoTrackPublications = /* @__PURE__ */ new Map(), s.trackPublications = /* @__PURE__ */ new Map(), s._kind = u, s._attributes = {}, s;
|
17072
17079
|
}
|
17073
17080
|
return tt(i, Ni.EventEmitter), De(i, [{ key: "logContext", get: function() {
|
17074
17081
|
var e, n;
|
@@ -17090,7 +17097,7 @@ var lh = function(t) {
|
|
17090
17097
|
var n, r = Ie(this.trackPublications);
|
17091
17098
|
try {
|
17092
17099
|
for (r.s(); !(n = r.n()).done; ) {
|
17093
|
-
var a =
|
17100
|
+
var a = We(n.value, 2)[1];
|
17094
17101
|
if (a.source === e) return a;
|
17095
17102
|
}
|
17096
17103
|
} catch (o) {
|
@@ -17102,7 +17109,7 @@ var lh = function(t) {
|
|
17102
17109
|
var n, r = Ie(this.trackPublications);
|
17103
17110
|
try {
|
17104
17111
|
for (r.s(); !(n = r.n()).done; ) {
|
17105
|
-
var a =
|
17112
|
+
var a = We(n.value, 2)[1];
|
17106
17113
|
if (a.trackName === e) return a;
|
17107
17114
|
}
|
17108
17115
|
} catch (o) {
|
@@ -17403,10 +17410,10 @@ var lh = function(t) {
|
|
17403
17410
|
if (n) return n;
|
17404
17411
|
} }, { key: "setupEngine", value: function(e) {
|
17405
17412
|
var n = this;
|
17406
|
-
this.engine = e, this.engine.on(
|
17413
|
+
this.engine = e, this.engine.on(ye.RemoteMute, function(r, a) {
|
17407
17414
|
var o = n.trackPublications.get(r);
|
17408
17415
|
o && o.track && (a ? o.mute() : o.unmute());
|
17409
|
-
}), this.engine.on(
|
17416
|
+
}), this.engine.on(ye.Connected, this.handleReconnected).on(ye.SignalRestarted, this.handleReconnected).on(ye.SignalResumed, this.handleReconnected).on(ye.Restarting, this.handleReconnecting).on(ye.Resuming, this.handleReconnecting).on(ye.LocalTrackUnpublished, this.handleLocalTrackUnpublished).on(ye.SubscribedQualityUpdate, this.handleSubscribedQualityUpdate).on(ye.Disconnected, this.handleDisconnected).on(ye.SignalRequestResponse, this.handleSignalRequestResponse);
|
17410
17417
|
} }, { key: "setMetadata", value: function(e) {
|
17411
17418
|
return j(this, void 0, void 0, w().mark(function n() {
|
17412
17419
|
return w().wrap(function(r) {
|
@@ -17467,7 +17474,7 @@ var lh = function(t) {
|
|
17467
17474
|
break;
|
17468
17475
|
}
|
17469
17476
|
if (o && this.name !== o || a && this.metadata !== a || s && !Object.entries(s).every(function(T) {
|
17470
|
-
var x =
|
17477
|
+
var x = We(T, 2), S = x[0], E = x[1];
|
17471
17478
|
return v.attributes[S] === E || E === "" && !v.attributes[S];
|
17472
17479
|
})) {
|
17473
17480
|
y.next = 12;
|
@@ -17581,7 +17588,7 @@ var lh = function(t) {
|
|
17581
17588
|
}
|
17582
17589
|
return y.next = 42, Promise.all(b);
|
17583
17590
|
case 42:
|
17584
|
-
p = y.sent, f =
|
17591
|
+
p = y.sent, f = We(p, 1), u = f[0], y.next = 52;
|
17585
17592
|
break;
|
17586
17593
|
case 47:
|
17587
17594
|
throw y.prev = 47, y.t1 = y.catch(20), l == null || l.forEach(function(T) {
|
@@ -18041,7 +18048,7 @@ var lh = function(t) {
|
|
18041
18048
|
if (this.engine.removeTrack(d) && (l = !0), e instanceof Dt) {
|
18042
18049
|
m = Ie(e.simulcastCodecs);
|
18043
18050
|
try {
|
18044
|
-
for (m.s(); !(p = m.n()).done; ) f =
|
18051
|
+
for (m.s(); !(p = m.n()).done; ) f = We(p.value, 2), (v = f[1]).sender && (this.engine.removeTrack(v.sender) && (l = !0), v.sender = void 0);
|
18045
18052
|
} catch (T) {
|
18046
18053
|
m.e(T);
|
18047
18054
|
} finally {
|
@@ -18243,7 +18250,7 @@ var lh = function(t) {
|
|
18243
18250
|
for (; ; ) switch (a.prev = a.next) {
|
18244
18251
|
case 0:
|
18245
18252
|
if (!(r = Array.from(this.pendingPublishPromises.entries()).find(function(o) {
|
18246
|
-
return
|
18253
|
+
return We(o, 1)[0].source === e;
|
18247
18254
|
}))) {
|
18248
18255
|
a.next = 3;
|
18249
18256
|
break;
|
@@ -18436,7 +18443,7 @@ var lh = function(t) {
|
|
18436
18443
|
var td, oa = function(t) {
|
18437
18444
|
function i(e) {
|
18438
18445
|
var n, r, a, o;
|
18439
|
-
return Re(this, i), n = et(this, i), r = je(n), n.state = Xe.Disconnected, n.activeSpeakers = [], n.isE2EEEnabled = !1, n.audioEnabled = !0, n.isVideoPlaybackBlocked = !1, n.log =
|
18446
|
+
return Re(this, i), n = et(this, i), r = je(n), n.state = Xe.Disconnected, n.activeSpeakers = [], n.isE2EEEnabled = !1, n.audioEnabled = !0, n.isVideoPlaybackBlocked = !1, n.log = Je, n.bufferedEvents = [], n.isResuming = !1, n.connect = function(s, c, u) {
|
18440
18447
|
return j(je(n), void 0, void 0, w().mark(function l() {
|
18441
18448
|
var d, b, g, h, m = this;
|
18442
18449
|
return w().wrap(function(p) {
|
@@ -18537,10 +18544,10 @@ var td, oa = function(t) {
|
|
18537
18544
|
return w().wrap(function(y) {
|
18538
18545
|
for (; ; ) switch (y.prev = y.next) {
|
18539
18546
|
case 0:
|
18540
|
-
return y.next = 2, u.join(s, c, { autoSubscribe: l.autoSubscribe, adaptiveStream:
|
18547
|
+
return y.next = 2, u.join(s, c, { autoSubscribe: l.autoSubscribe, adaptiveStream: ke(d.adaptiveStream) === "object" || d.adaptiveStream, maxRetries: l.maxRetries, e2eeEnabled: !!this.e2eeManager, websocketTimeout: l.websocketTimeout }, b.signal);
|
18541
18548
|
case 2:
|
18542
18549
|
if (f = y.sent, (v = f.serverInfo) || (v = { version: f.serverVersion, region: f.serverRegion }), this.serverInfo = v, this.log.debug("connected to Livekit Server ".concat(Object.entries(v).map(function(T) {
|
18543
|
-
var x =
|
18550
|
+
var x = We(T, 2), S = x[0], E = x[1];
|
18544
18551
|
return "".concat(S, ": ").concat(E);
|
18545
18552
|
}).join(", ")), { room: (h = f.room) === null || h === void 0 ? void 0 : h.name, roomSid: (m = f.room) === null || m === void 0 ? void 0 : m.sid, identity: (p = f.participant) === null || p === void 0 ? void 0 : p.identity }), v.version) {
|
18546
18553
|
y.next = 9;
|
@@ -19019,10 +19026,10 @@ var td, oa = function(t) {
|
|
19019
19026
|
case 4:
|
19020
19027
|
return r.abrupt("return", new Promise(function(a, o) {
|
19021
19028
|
var s = function c(u) {
|
19022
|
-
u.sid !== "" && (n.engine.off(
|
19029
|
+
u.sid !== "" && (n.engine.off(ye.RoomUpdate, c), a(u.sid));
|
19023
19030
|
};
|
19024
|
-
n.engine.on(
|
19025
|
-
n.engine.off(
|
19031
|
+
n.engine.on(ye.RoomUpdate, s), n.once(oe.Disconnected, function() {
|
19032
|
+
n.engine.off(ye.RoomUpdate, s), o("Room disconnected before room server id was available");
|
19026
19033
|
});
|
19027
19034
|
}));
|
19028
19035
|
case 5:
|
@@ -19045,21 +19052,21 @@ var td, oa = function(t) {
|
|
19045
19052
|
return (n = (e = this.roomInfo) === null || e === void 0 ? void 0 : e.numPublishers) !== null && n !== void 0 ? n : 0;
|
19046
19053
|
} }, { key: "maybeCreateEngine", value: function() {
|
19047
19054
|
var e = this;
|
19048
|
-
this.engine && !this.engine.isClosed || (this.engine = new fx(this.options), this.engine.on(
|
19055
|
+
this.engine && !this.engine.isClosed || (this.engine = new fx(this.options), this.engine.on(ye.ParticipantUpdate, this.handleParticipantUpdates).on(ye.RoomUpdate, this.handleRoomUpdate).on(ye.SpeakersChanged, this.handleSpeakersChanged).on(ye.StreamStateChanged, this.handleStreamStateUpdate).on(ye.ConnectionQualityUpdate, this.handleConnectionQualityUpdate).on(ye.SubscriptionError, this.handleSubscriptionError).on(ye.SubscriptionPermissionUpdate, this.handleSubscriptionPermissionUpdate).on(ye.MediaTrackAdded, function(n, r, a) {
|
19049
19056
|
e.onTrackAdded(n, r, a);
|
19050
|
-
}).on(
|
19057
|
+
}).on(ye.Disconnected, function(n) {
|
19051
19058
|
e.handleDisconnect(e.options.stopLocalTrackOnUnpublish, n);
|
19052
|
-
}).on(
|
19059
|
+
}).on(ye.ActiveSpeakersUpdate, this.handleActiveSpeakersUpdate).on(ye.DataPacketReceived, this.handleDataPacket).on(ye.Resuming, function() {
|
19053
19060
|
e.clearConnectionReconcile(), e.isResuming = !0, e.log.info("Resuming signal connection", e.logContext), e.setAndEmitConnectionState(Xe.SignalReconnecting) && e.emit(oe.SignalReconnecting);
|
19054
|
-
}).on(
|
19061
|
+
}).on(ye.Resumed, function() {
|
19055
19062
|
e.registerConnectionReconcile(), e.isResuming = !1, e.log.info("Resumed signal connection", e.logContext), e.updateSubscriptions(), e.emitBufferedEvents(), e.setAndEmitConnectionState(Xe.Connected) && e.emit(oe.Reconnected);
|
19056
|
-
}).on(
|
19063
|
+
}).on(ye.SignalResumed, function() {
|
19057
19064
|
e.bufferedEvents = [], (e.state === Xe.Reconnecting || e.isResuming) && e.sendSyncState();
|
19058
|
-
}).on(
|
19065
|
+
}).on(ye.Restarting, this.handleRestarting).on(ye.SignalRestarted, this.handleSignalRestarted).on(ye.Offline, function() {
|
19059
19066
|
e.setAndEmitConnectionState(Xe.Reconnecting) && e.emit(oe.Reconnecting);
|
19060
|
-
}).on(
|
19067
|
+
}).on(ye.DCBufferStatusChanged, function(n, r) {
|
19061
19068
|
e.emit(oe.DCBufferStatusChanged, n, r);
|
19062
|
-
}).on(
|
19069
|
+
}).on(ye.LocalTrackSubscribed, function(n) {
|
19063
19070
|
var r = e.localParticipant.getTrackPublications().find(function(a) {
|
19064
19071
|
return a.trackSid === n;
|
19065
19072
|
});
|
@@ -19336,7 +19343,7 @@ var td, oa = function(t) {
|
|
19336
19343
|
var b, g = Array.from(this.remoteParticipants.values()).find(function(h) {
|
19337
19344
|
return h.sid === u;
|
19338
19345
|
});
|
19339
|
-
g ? (this.options.adaptiveStream && (b =
|
19346
|
+
g ? (this.options.adaptiveStream && (b = ke(this.options.adaptiveStream) === "object" ? this.options.adaptiveStream : {}), g.addSubscribedMediaTrack(e, d, n, r, b)) : this.log.error("Tried to add a track for a participant, that's not present. Sid: ".concat(u), this.logContext);
|
19340
19347
|
} else this.log.warn("tried to create RemoteParticipant for local participant", this.logContext);
|
19341
19348
|
} else this.log.warn("skipping incoming track after Room disconnected", this.logContext);
|
19342
19349
|
} }, { key: "handleDisconnect", value: function() {
|
@@ -19476,7 +19483,7 @@ var td, oa = function(t) {
|
|
19476
19483
|
} }, { key: "emitBufferedEvents", value: function() {
|
19477
19484
|
var e = this;
|
19478
19485
|
this.bufferedEvents.forEach(function(n) {
|
19479
|
-
var r =
|
19486
|
+
var r = We(n, 2), a = r[0], o = r[1];
|
19480
19487
|
e.emit.apply(e, [a].concat(an(o)));
|
19481
19488
|
}), this.bufferedEvents = [];
|
19482
19489
|
} }, { key: "emitWhenConnected", value: function(e) {
|
@@ -19555,7 +19562,7 @@ var td, oa = function(t) {
|
|
19555
19562
|
}();
|
19556
19563
|
function ph(t) {
|
19557
19564
|
return t.map(function(i) {
|
19558
|
-
if (i) return Array.isArray(i) ? ph(i) :
|
19565
|
+
if (i) return Array.isArray(i) ? ph(i) : ke(i) === "object" ? "logContext" in i && i.logContext : i;
|
19559
19566
|
});
|
19560
19567
|
}
|
19561
19568
|
(function(t) {
|
@@ -19819,55 +19826,55 @@ var Yn = /* @__PURE__ */ new WeakMap(), gx = function() {
|
|
19819
19826
|
})), function() {
|
19820
19827
|
return h.apply(this, arguments);
|
19821
19828
|
}) }, { key: "joinRoom", value: (g = _t(w().mark(function p() {
|
19822
|
-
var f, v, y, T, x, S, E, _, I, B, G, X, te, ie, K, N, M, D, q, Q, $, Z, ce, Ce, Le, Me, qe, st, ct, ue, Ee,
|
19823
|
-
return w().wrap(function(
|
19824
|
-
for (; ; ) switch (
|
19829
|
+
var f, v, y, T, x, S, E, _, I, B, G, X, te, ie, K, N, M, D, q, Q, $, Z, ce, Ce, Le, Me, qe, st, ct, ue, Ee, Ke, Tt = this, L = arguments;
|
19830
|
+
return w().wrap(function(ve) {
|
19831
|
+
for (; ; ) switch (ve.prev = ve.next) {
|
19825
19832
|
case 0:
|
19826
19833
|
if (x = (T = L.length > 0 && L[0] !== void 0 ? L[0] : {}).audioDeviceId, S = x === void 0 ? "" : x, E = T.videoDeviceId, _ = E === void 0 ? "" : E, I = T.outputDeviceId, B = I === void 0 ? "" : I, G = T.facingMode, X = G === void 0 ? "user" : G, te = T.autoGainControl, ie = T.echoCancellation, K = T.noiseSuppression, N = T.roomNum, M = T.cameraStatus, D = M === void 0 || M, q = T.microphoneStatus, Q = q === void 0 || q, $ = T.origin, Z = $ === void 0 ? "0" : $, ce = T.videoCodec, N) {
|
19827
|
-
|
19834
|
+
ve.next = 4;
|
19828
19835
|
break;
|
19829
19836
|
}
|
19830
|
-
return this.emit("errorPush", { type: "joinRoom", message: "请输入房间号" }),
|
19837
|
+
return this.emit("errorPush", { type: "joinRoom", message: "请输入房间号" }), ve.abrupt("return");
|
19831
19838
|
case 4:
|
19832
|
-
return Ce = { audioCaptureDefaults: { deviceId: S || "default", autoGainControl: te != null && te, echoCancellation: ie != null && ie, noiseSuppression: K != null && K }, videoCaptureDefaults: {}, stopLocalTrackOnUnpublish: !0, adaptiveStream: !0 }, B && (Ce.audioOutput = { deviceId: B }), Le = { autoSubscribe: !0 }, _ ? Ce.videoCaptureDefaults.deviceId = _ : Ce.videoCaptureDefaults.facingMode = X, ce && typeof ce == "string" && (Me = { videoCodec: ce }, Ce.publishDefaults = Me), this.roomNum = N,
|
19839
|
+
return Ce = { audioCaptureDefaults: { deviceId: S || "default", autoGainControl: te != null && te, echoCancellation: ie != null && ie, noiseSuppression: K != null && K }, videoCaptureDefaults: {}, stopLocalTrackOnUnpublish: !0, adaptiveStream: !0 }, B && (Ce.audioOutput = { deviceId: B }), Le = { autoSubscribe: !0 }, _ ? Ce.videoCaptureDefaults.deviceId = _ : Ce.videoCaptureDefaults.facingMode = X, ce && typeof ce == "string" && (Me = { videoCodec: ce }, Ce.publishDefaults = Me), this.roomNum = N, ve.prev = 10, ve.next = 13, Xt(this, rd, Sx).call(this, this.roomNum, Z);
|
19833
19840
|
case 13:
|
19834
|
-
return qe =
|
19841
|
+
return qe = ve.sent, st = this.baseUrl.split("//")[1], ct = st.split("/ylapi")[0], yi(this, sa, "".concat(this.wshead).concat(ct)), yi(this, ca, qe.token), this.room = new oa(Ce), ve.next = 21, this.room.prepareConnection(qt(this, sa), qt(this, ca));
|
19835
19842
|
case 21:
|
19836
|
-
return Xt(this, ad, wx).call(this),
|
19843
|
+
return Xt(this, ad, wx).call(this), ve.next = 24, this.room.connect(qt(this, sa), qt(this, ca), Le);
|
19837
19844
|
case 24:
|
19838
|
-
|
19845
|
+
ve.next = 30;
|
19839
19846
|
break;
|
19840
19847
|
case 26:
|
19841
|
-
return
|
19848
|
+
return ve.prev = 26, ve.t0 = ve.catch(10), this.emit("joinRoomError", ve.t0), ve.abrupt("return");
|
19842
19849
|
case 30:
|
19843
|
-
if (
|
19844
|
-
|
19850
|
+
if (ve.prev = 30, this.roomMode !== "auto") {
|
19851
|
+
ve.next = 39;
|
19845
19852
|
break;
|
19846
19853
|
}
|
19847
|
-
return
|
19854
|
+
return ve.next = 34, this.room.localParticipant.setCameraEnabled(D);
|
19848
19855
|
case 34:
|
19849
|
-
return
|
19856
|
+
return ve.next = 36, this.room.localParticipant.setMicrophoneEnabled(Q);
|
19850
19857
|
case 36:
|
19851
|
-
Xt(this, ua, es).call(this, "video"),
|
19858
|
+
Xt(this, ua, es).call(this, "video"), ve.next = 44;
|
19852
19859
|
break;
|
19853
19860
|
case 39:
|
19854
|
-
return
|
19861
|
+
return ve.next = 41, this.room.localParticipant.setMicrophoneEnabled(Q);
|
19855
19862
|
case 41:
|
19856
|
-
return
|
19863
|
+
return ve.next = 43, this.room.localParticipant.setCameraEnabled(!1);
|
19857
19864
|
case 43:
|
19858
19865
|
Xt(this, ua, es).call(this, "audio");
|
19859
19866
|
case 44:
|
19860
|
-
|
19867
|
+
ve.next = 49;
|
19861
19868
|
break;
|
19862
19869
|
case 46:
|
19863
|
-
|
19870
|
+
ve.prev = 46, ve.t1 = ve.catch(30);
|
19864
19871
|
case 49:
|
19865
|
-
return ue = (f = this.room.getActiveDevice("audioinput")) !== null && f !== void 0 ? f : "default", Ee = (v = this.room.getActiveDevice("videoinput")) !== null && v !== void 0 ? v : "default",
|
19872
|
+
return ue = (f = this.room.getActiveDevice("audioinput")) !== null && f !== void 0 ? f : "default", Ee = (v = this.room.getActiveDevice("videoinput")) !== null && v !== void 0 ? v : "default", Ke = (y = this.room.getActiveDevice("audiooutput")) !== null && y !== void 0 ? y : "default", this.room.remoteParticipants.forEach(function(_e) {
|
19866
19873
|
Xt(Tt, Na, Bs).call(Tt, _e);
|
19867
|
-
}), Xt(this, Na, Bs).call(this, this.room.localParticipant),
|
19874
|
+
}), Xt(this, Na, Bs).call(this, this.room.localParticipant), ve.abrupt("return", { audioInputDevice: ue, videoInputDevice: Ee, audioOutputDevice: Ke });
|
19868
19875
|
case 55:
|
19869
19876
|
case "end":
|
19870
|
-
return
|
19877
|
+
return ve.stop();
|
19871
19878
|
}
|
19872
19879
|
}, p, this, [[10, 26], [30, 46]]);
|
19873
19880
|
})), function() {
|
@@ -20708,7 +20715,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
20708
20715
|
])
|
20709
20716
|
}, null, 2)
|
20710
20717
|
], 10, Fx))), 128))
|
20711
|
-
])) :
|
20718
|
+
])) : ge("", !0)
|
20712
20719
|
])
|
20713
20720
|
], 4));
|
20714
20721
|
}
|
@@ -20939,7 +20946,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
20939
20946
|
onClose: M[4] || (M[4] = (q) => l.value = !1),
|
20940
20947
|
onChooseAudioInputDevice: X,
|
20941
20948
|
onChooseAudioOutputDevice: te
|
20942
|
-
}, null, 8, ["audioDevices", "outputDevices", "activeDevice"])) :
|
20949
|
+
}, null, 8, ["audioDevices", "outputDevices", "activeDevice"])) : ge("", !0)
|
20943
20950
|
]),
|
20944
20951
|
k("div", nE, [
|
20945
20952
|
k("div", {
|
@@ -20959,7 +20966,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
20959
20966
|
activeDevice: f,
|
20960
20967
|
onClose: M[6] || (M[6] = (q) => d.value = !1),
|
20961
20968
|
onChooseVideoDevice: ie
|
20962
|
-
}, null, 8, ["videoDevices", "activeDevice"])) :
|
20969
|
+
}, null, 8, ["videoDevices", "activeDevice"])) : ge("", !0)
|
20963
20970
|
])
|
20964
20971
|
]),
|
20965
20972
|
t.dialogType === "launch" ? (O(), V("div", {
|
@@ -21070,8 +21077,8 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21070
21077
|
token: r.token
|
21071
21078
|
}
|
21072
21079
|
).then((pe) => {
|
21073
|
-
var
|
21074
|
-
console.log("获取通讯录组织树", pe), ((
|
21080
|
+
var Qe, $e;
|
21081
|
+
console.log("获取通讯录组织树", pe), ((Qe = pe.data) == null ? void 0 : Qe.code) === 0 ? ($e = pe.data) != null && $e.data && (u.value = pe.data.data, ae()) : (n.message("error", "获取通讯录组织数据失败"), xe());
|
21075
21082
|
});
|
21076
21083
|
});
|
21077
21084
|
}
|
@@ -21144,7 +21151,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21144
21151
|
).then((ae) => {
|
21145
21152
|
var xe;
|
21146
21153
|
((xe = ae.data) == null ? void 0 : xe.code) == 0 ? (b.value = [], ae.data.data.length > 0 && (b.value = ae.data.data.map((pe) => {
|
21147
|
-
var
|
21154
|
+
var Qe, $e;
|
21148
21155
|
return {
|
21149
21156
|
roomName: pe.roomAlias,
|
21150
21157
|
roomNum: pe.roomName,
|
@@ -21162,7 +21169,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21162
21169
|
joinMute: pe.joinMute !== 0,
|
21163
21170
|
autoRecord: pe.autoRecord !== 0,
|
21164
21171
|
inviteOthers: pe.inviteOthers !== 0,
|
21165
|
-
venueName: pe != null && pe.metadata && pe.metadata !== "null" ? (
|
21172
|
+
venueName: pe != null && pe.metadata && pe.metadata !== "null" ? (Qe = JSON.parse(pe.metadata)) == null ? void 0 : Qe.venueName : "",
|
21166
21173
|
meetingCompany: pe != null && pe.metadata && pe.metadata !== "null" ? ($e = JSON.parse(pe.metadata)) == null ? void 0 : $e.meetingCompany : "",
|
21167
21174
|
zone: pe.zone
|
21168
21175
|
};
|
@@ -21232,7 +21239,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21232
21239
|
function Ee() {
|
21233
21240
|
ue();
|
21234
21241
|
}
|
21235
|
-
function
|
21242
|
+
function Ke(ae) {
|
21236
21243
|
l.value = ae;
|
21237
21244
|
}
|
21238
21245
|
function Tt() {
|
@@ -21241,13 +21248,13 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21241
21248
|
function L() {
|
21242
21249
|
y.value = "", x.value = "join", T.value = !0;
|
21243
21250
|
}
|
21244
|
-
function
|
21251
|
+
function ve() {
|
21245
21252
|
m.value = "add", p.value = !0;
|
21246
21253
|
}
|
21247
21254
|
function _e(ae) {
|
21248
21255
|
y.value = ae.roomNum, x.value = "join", T.value = !0;
|
21249
21256
|
}
|
21250
|
-
function
|
21257
|
+
function Ye(ae, xe) {
|
21251
21258
|
var pe;
|
21252
21259
|
f.value ? ((pe = g.value) == null ? void 0 : pe.roomNum) === ae.roomNum ? f.value = !1 : (f.value = !1, g.value = ae, v.left = xe.target.offsetLeft - 60 + "px", v.top = xe.target.offsetTop + 24 + "px", f.value = !0) : (g.value = ae, v.left = xe.target.offsetLeft - 60 + "px", v.top = xe.target.offsetTop + 24 + "px", f.value = !0);
|
21253
21260
|
}
|
@@ -21258,7 +21265,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21258
21265
|
}), Cn(() => {
|
21259
21266
|
e && (clearInterval(e), e = null);
|
21260
21267
|
}), (ae, xe) => {
|
21261
|
-
const pe = Oe("el-input"),
|
21268
|
+
const pe = Oe("el-input"), Qe = Oe("el-tree");
|
21262
21269
|
return O(), V("div", {
|
21263
21270
|
class: "live-address-book",
|
21264
21271
|
ref_key: "rootElm",
|
@@ -21290,7 +21297,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21290
21297
|
}, hE),
|
21291
21298
|
k("div", {
|
21292
21299
|
class: "enter-list-item",
|
21293
|
-
onClick:
|
21300
|
+
onClick: ve
|
21294
21301
|
}, gE)
|
21295
21302
|
]),
|
21296
21303
|
k("div", bE, [
|
@@ -21303,13 +21310,13 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21303
21310
|
"onUpdate:modelValue": xe[0] || (xe[0] = ($e) => c.value = $e),
|
21304
21311
|
placeholder: "请输入名称进行搜索"
|
21305
21312
|
}, {
|
21306
|
-
suffix:
|
21313
|
+
suffix: be(() => [
|
21307
21314
|
SE
|
21308
21315
|
]),
|
21309
21316
|
_: 1
|
21310
21317
|
}, 8, ["modelValue"])
|
21311
21318
|
]),
|
21312
|
-
de(
|
21319
|
+
de(Qe, {
|
21313
21320
|
class: "tree-content",
|
21314
21321
|
data: u.value,
|
21315
21322
|
"default-expand-all": !1,
|
@@ -21320,7 +21327,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21320
21327
|
ref: o,
|
21321
21328
|
onCheck: Q
|
21322
21329
|
}, {
|
21323
|
-
default:
|
21330
|
+
default: be(({ node: $e, data: re }) => [
|
21324
21331
|
k("span", wE, [
|
21325
21332
|
re.children ? (O(), V("span", {
|
21326
21333
|
key: 0,
|
@@ -21409,7 +21416,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21409
21416
|
}, "进入会议", 8, n2),
|
21410
21417
|
k("div", {
|
21411
21418
|
class: "more-btn",
|
21412
|
-
onClick: (ze) =>
|
21419
|
+
onClick: (ze) => Ye($e, ze)
|
21413
21420
|
}, null, 8, i2)
|
21414
21421
|
])
|
21415
21422
|
]))), 128)) : (O(), V("div", r2, s2))
|
@@ -21432,7 +21439,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21432
21439
|
onCancelMeeting: Le,
|
21433
21440
|
onEndMeeting: Me,
|
21434
21441
|
onClose: xe[1] || (xe[1] = ($e) => f.value = !1)
|
21435
|
-
}, null, 8, ["previewMeetingData", "optionDialogOffset", "mobile"])) :
|
21442
|
+
}, null, 8, ["previewMeetingData", "optionDialogOffset", "mobile"])) : ge("", !0),
|
21436
21443
|
p.value ? (O(), Te(cw, {
|
21437
21444
|
key: 1,
|
21438
21445
|
width: "540px",
|
@@ -21448,8 +21455,8 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21448
21455
|
onPreviewSuccess: Z,
|
21449
21456
|
onUpdateSuccess: Z,
|
21450
21457
|
onPreviewResetInviteList: Ee,
|
21451
|
-
onPreviewUpdateInviteList:
|
21452
|
-
}, null, 8, ["previewType", "previewMeetingData", "baseUrl", "inviteList", "userData", "org", "token"])) :
|
21458
|
+
onPreviewUpdateInviteList: Ke
|
21459
|
+
}, null, 8, ["previewType", "previewMeetingData", "baseUrl", "inviteList", "userData", "org", "token"])) : ge("", !0),
|
21453
21460
|
T.value ? (O(), Te(yh, {
|
21454
21461
|
key: 2,
|
21455
21462
|
dialogType: x.value,
|
@@ -21457,7 +21464,7 @@ const xc = (t) => (yt("data-v-c12bddcb"), t = t(), kt(), t), Ex = { class: "chec
|
|
21457
21464
|
onClose: D,
|
21458
21465
|
onLaunchMeeting: st,
|
21459
21466
|
onJoinMeeting: ct
|
21460
|
-
}, null, 8, ["dialogType", "tempRoomNum"])) :
|
21467
|
+
}, null, 8, ["dialogType", "tempRoomNum"])) : ge("", !0)
|
21461
21468
|
], 512);
|
21462
21469
|
};
|
21463
21470
|
}
|
@@ -21822,19 +21829,19 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
21822
21829
|
class: "member-manage-contain",
|
21823
21830
|
onTabClick: v
|
21824
21831
|
}, {
|
21825
|
-
default:
|
21832
|
+
default: be(() => [
|
21826
21833
|
de(B, {
|
21827
21834
|
label: "会议中",
|
21828
21835
|
name: "joined"
|
21829
21836
|
}, {
|
21830
|
-
default:
|
21837
|
+
default: be(() => [
|
21831
21838
|
k("div", W2, [
|
21832
21839
|
de(I, {
|
21833
21840
|
modelValue: a.value,
|
21834
21841
|
"onUpdate:modelValue": _[0] || (_[0] = (X) => a.value = X),
|
21835
21842
|
placeholder: "请输入名称查询"
|
21836
21843
|
}, {
|
21837
|
-
suffix:
|
21844
|
+
suffix: be(() => [
|
21838
21845
|
K2
|
21839
21846
|
]),
|
21840
21847
|
_: 1
|
@@ -21847,7 +21854,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
21847
21854
|
k("div", Q2, [
|
21848
21855
|
X2,
|
21849
21856
|
k("span", Z2, Se(X.name), 1),
|
21850
|
-
l(X.identity) ? (O(), V("span", e_, "主持人")) :
|
21857
|
+
l(X.identity) ? (O(), V("span", e_, "主持人")) : ge("", !0)
|
21851
21858
|
]),
|
21852
21859
|
k("div", t_, [
|
21853
21860
|
k("div", {
|
@@ -21890,14 +21897,14 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
21890
21897
|
label: "未入会",
|
21891
21898
|
name: "unJoin"
|
21892
21899
|
}, {
|
21893
|
-
default:
|
21900
|
+
default: be(() => [
|
21894
21901
|
k("div", p_, [
|
21895
21902
|
de(I, {
|
21896
21903
|
modelValue: o.value,
|
21897
21904
|
"onUpdate:modelValue": _[3] || (_[3] = (X) => o.value = X),
|
21898
21905
|
placeholder: "请输入名称查询"
|
21899
21906
|
}, {
|
21900
|
-
suffix:
|
21907
|
+
suffix: be(() => [
|
21901
21908
|
f_
|
21902
21909
|
]),
|
21903
21910
|
_: 1
|
@@ -21910,7 +21917,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
21910
21917
|
k("div", m_, [
|
21911
21918
|
v_,
|
21912
21919
|
k("span", g_, Se(X.userName), 1),
|
21913
|
-
l(X.mobile) ? (O(), V("span", b_, "主持人")) :
|
21920
|
+
l(X.mobile) ? (O(), V("span", b_, "主持人")) : ge("", !0)
|
21914
21921
|
]),
|
21915
21922
|
k("div", y_, [
|
21916
21923
|
k("div", {
|
@@ -21937,7 +21944,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
21937
21944
|
])
|
21938
21945
|
]),
|
21939
21946
|
_: 1
|
21940
|
-
})) :
|
21947
|
+
})) : ge("", !0)
|
21941
21948
|
]),
|
21942
21949
|
_: 1
|
21943
21950
|
}, 8, ["modelValue"])
|
@@ -22273,8 +22280,8 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22273
22280
|
class: "message-image",
|
22274
22281
|
src: _.content,
|
22275
22282
|
alt: ""
|
22276
|
-
}, null, 8, $_)) :
|
22277
|
-
m(_.content) ?
|
22283
|
+
}, null, 8, $_)) : ge("", !0),
|
22284
|
+
m(_.content) ? ge("", !0) : (O(), V("div", j_, [
|
22278
22285
|
k("span", null, Se(_.content), 1)
|
22279
22286
|
]))
|
22280
22287
|
]),
|
@@ -22291,8 +22298,8 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22291
22298
|
class: "message-image",
|
22292
22299
|
src: _.content,
|
22293
22300
|
alt: ""
|
22294
|
-
}, null, 8, z_)) :
|
22295
|
-
m(_.content) ?
|
22301
|
+
}, null, 8, z_)) : ge("", !0),
|
22302
|
+
m(_.content) ? ge("", !0) : (O(), V("div", J_, [
|
22296
22303
|
k("span", null, Se(_.content), 1)
|
22297
22304
|
]))
|
22298
22305
|
])
|
@@ -22309,7 +22316,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22309
22316
|
placeholder: "开始聊天",
|
22310
22317
|
onKeyup: T[2] || (T[2] = ji((_) => h(o.value), ["enter"]))
|
22311
22318
|
}, {
|
22312
|
-
prefix:
|
22319
|
+
prefix: be(() => [
|
22313
22320
|
k("div", W_, [
|
22314
22321
|
de(x, {
|
22315
22322
|
placement: "top",
|
@@ -22317,10 +22324,10 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22317
22324
|
trigger: "hover",
|
22318
22325
|
"popper-class": "custom-popover"
|
22319
22326
|
}, {
|
22320
|
-
reference:
|
22327
|
+
reference: be(() => [
|
22321
22328
|
Q_
|
22322
22329
|
]),
|
22323
|
-
default:
|
22330
|
+
default: be(() => [
|
22324
22331
|
k("div", K_, [
|
22325
22332
|
(O(!0), V(He, null, dt(s.value, (_, I) => (O(), V("a", {
|
22326
22333
|
href: "javascript:void(0);",
|
@@ -22340,14 +22347,14 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22340
22347
|
"on-success": f,
|
22341
22348
|
"before-upload": v
|
22342
22349
|
}, {
|
22343
|
-
default:
|
22350
|
+
default: be(() => [
|
22344
22351
|
X_
|
22345
22352
|
]),
|
22346
22353
|
_: 1
|
22347
22354
|
}, 8, ["action"])
|
22348
22355
|
])
|
22349
22356
|
]),
|
22350
|
-
suffix:
|
22357
|
+
suffix: be(() => [
|
22351
22358
|
k("div", {
|
22352
22359
|
class: "btn btn-send",
|
22353
22360
|
onClick: T[0] || (T[0] = (_) => h(o.value))
|
@@ -22773,7 +22780,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22773
22780
|
class: "telephoneInvit",
|
22774
22781
|
width: "460"
|
22775
22782
|
}, {
|
22776
|
-
header:
|
22783
|
+
header: be(() => [
|
22777
22784
|
k("div", UP, [
|
22778
22785
|
$P,
|
22779
22786
|
k("div", {
|
@@ -22782,7 +22789,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22782
22789
|
})
|
22783
22790
|
])
|
22784
22791
|
]),
|
22785
|
-
default:
|
22792
|
+
default: be(() => [
|
22786
22793
|
k("div", jP, [
|
22787
22794
|
de(h, {
|
22788
22795
|
model: a,
|
@@ -22793,12 +22800,12 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22793
22800
|
"label-width": "100",
|
22794
22801
|
class: "customForm"
|
22795
22802
|
}, {
|
22796
|
-
default:
|
22803
|
+
default: be(() => [
|
22797
22804
|
de(g, {
|
22798
22805
|
label: "与会者名称",
|
22799
22806
|
prop: "name"
|
22800
22807
|
}, {
|
22801
|
-
default:
|
22808
|
+
default: be(() => [
|
22802
22809
|
de(b, {
|
22803
22810
|
modelValue: a.name,
|
22804
22811
|
"onUpdate:modelValue": d[1] || (d[1] = (p) => a.name = p)
|
@@ -22807,7 +22814,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22807
22814
|
_: 1
|
22808
22815
|
}),
|
22809
22816
|
de(g, { "label-width": "110" }, {
|
22810
|
-
default:
|
22817
|
+
default: be(() => [
|
22811
22818
|
k("div", { class: "isokmul" }, [
|
22812
22819
|
k("div", { onClick: c }, "取消"),
|
22813
22820
|
k("div", { onClick: u }, "确定")
|
@@ -22966,9 +22973,9 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
22966
22973
|
audioInputDevice: "",
|
22967
22974
|
audioOutputDevice: "",
|
22968
22975
|
videoDevice: ""
|
22969
|
-
}), E = A([]), _ = A(""), I = A(""), B = A("grid"), G = A("normal"), X = A(["grid", "rightSide"]), te = A(["宫格", "右侧边栏"]), ie = A(0), K = A(!1), N = A(!1), M = A(!1), D = A(!1), q = A(!1), Q = A(!1), $ = A(!1), Z = A(!1), ce = A(!1), Ce = A(!1), Le = A(!1), Me = A(!1), qe = A(null), st = A([]), ct = A([]), ue = A(null), Ee = A(null),
|
22976
|
+
}), E = A([]), _ = A(""), I = A(""), B = A("grid"), G = A("normal"), X = A(["grid", "rightSide"]), te = A(["宫格", "右侧边栏"]), ie = A(0), K = A(!1), N = A(!1), M = A(!1), D = A(!1), q = A(!1), Q = A(!1), $ = A(!1), Z = A(!1), ce = A(!1), Ce = A(!1), Le = A(!1), Me = A(!1), qe = A(null), st = A([]), ct = A([]), ue = A(null), Ee = A(null), Ke = A(!1), Tt = A({}), L = A(""), ve = A(!1), _e = A(3);
|
22970
22977
|
A("测试短信");
|
22971
|
-
const
|
22978
|
+
const Ye = A(!1), ae = A(!1), xe = A(!1), pe = A(!1), Qe = A({}), $e = A(!1), re = A(!1), ze = A({}), Ht = A(null), ut = A(!1), ln = A(""), Yt = A(!0), Ln = A(!1), yo = A(), ko = A(), Ge = new nn();
|
22972
22979
|
let he = null, Br = null, ci = null, dn = null;
|
22973
22980
|
const _h = se(() => ld(ie.value)), xt = se(() => d.value.length), Oi = se(() => u.value.length), Vr = se(() => l.value.length), Ph = se(() => xt.value > 0 ? d.value.findIndex((P) => P.isScreenShareEnabled) : -1), Nh = se(() => G.value === "pointTurn" ? "point-turn" : B.value === "grid" ? xt.value <= 1 ? "grid1" : xt.value <= 2 ? "grid2" : xt.value <= 4 ? "grid3" : xt.value <= 6 ? "grid4" : xt.value <= 9 ? "grid5" : xt.value <= 12 ? "grid6" : xt.value <= 16 ? "grid7" : "grid8" : B.value);
|
22974
22981
|
function Mh(C) {
|
@@ -23071,7 +23078,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23071
23078
|
Tt.value = {
|
23072
23079
|
left: C.clientX - 400 + "px",
|
23073
23080
|
top: C.clientY + 15 + "px"
|
23074
|
-
}, L.value === C.identity &&
|
23081
|
+
}, L.value === C.identity && Ke.value ? Ke.value = !1 : (Ke.value = !1, L.value = C.identity, Ke.value = !0);
|
23075
23082
|
};
|
23076
23083
|
function jh(C) {
|
23077
23084
|
var R;
|
@@ -23118,7 +23125,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23118
23125
|
});
|
23119
23126
|
}
|
23120
23127
|
const Fh = () => {
|
23121
|
-
|
23128
|
+
Ke.value = !1;
|
23122
23129
|
}, Bh = async () => {
|
23123
23130
|
try {
|
23124
23131
|
const { audioDevices: C, videoDevices: P, outputDevices: R } = await vh.getDeviceList();
|
@@ -23133,7 +23140,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23133
23140
|
value: U.deviceId
|
23134
23141
|
}));
|
23135
23142
|
} catch {
|
23136
|
-
|
23143
|
+
Ge.message("error", "获取设备列表失败");
|
23137
23144
|
}
|
23138
23145
|
}, vt = (C) => {
|
23139
23146
|
st.value.indexOf(C) < 0 && st.value.push(C);
|
@@ -23152,12 +23159,12 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23152
23159
|
}, Hr = async () => {
|
23153
23160
|
he && await he.leaveRoom();
|
23154
23161
|
}, zh = (C) => {
|
23155
|
-
ui(m.value) ? pe.value ? pe.value = !1 : (
|
23162
|
+
ui(m.value) ? pe.value ? pe.value = !1 : (Qe.value = {
|
23156
23163
|
left: C.target.offsetLeft - 40 + "px",
|
23157
23164
|
bottom: C.target.offsetTop + 60 + "px"
|
23158
23165
|
}, pe.value = !0) : (ae.value = !1, Hr());
|
23159
23166
|
}, Jh = (C) => {
|
23160
|
-
ui(m.value) ? pe.value ? pe.value = !1 : (
|
23167
|
+
ui(m.value) ? pe.value ? pe.value = !1 : (Qe.value = {
|
23161
23168
|
left: C.target.offsetLeft - 140 + "px",
|
23162
23169
|
bottom: C.target.offsetTop + 60 + "px"
|
23163
23170
|
}, pe.value = !0) : (ae.value = !1, Hr());
|
@@ -23238,7 +23245,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23238
23245
|
break;
|
23239
23246
|
}
|
23240
23247
|
}), Promise.all(P).then(() => {
|
23241
|
-
|
23248
|
+
Ge.message("success", "设备邀请发送成功"), C.forEach((R) => {
|
23242
23249
|
Co(R);
|
23243
23250
|
});
|
23244
23251
|
});
|
@@ -23275,7 +23282,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23275
23282
|
id: P.userId,
|
23276
23283
|
label: P.userName
|
23277
23284
|
};
|
23278
|
-
}), l.value = u.value, console.log("已邀请人员", l.value, u.value)) : (u.value = [], l.value = []) : (
|
23285
|
+
}), l.value = u.value, console.log("已邀请人员", l.value, u.value)) : (u.value = [], l.value = []) : (Ge.message("error", "获取邀请人列表失败"), u.value = [], l.value = []);
|
23279
23286
|
});
|
23280
23287
|
}, Qh = (C) => {
|
23281
23288
|
if (C && (C != null && C.identity)) {
|
@@ -23409,7 +23416,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23409
23416
|
console.log(`与会者渲染 ${C.identity}`, C), C.isLocal && (m.value = C.identity, p.value = C.name, Ce.value = C.isCameraEnabled, ce.value = C.isMicrophoneEnabled, Le.value = C.isScreenShareEnabled), !Ee.value && ui(C.identity) && !C.remove && (Ee.value = C.identity);
|
23410
23417
|
let P = document.getElementById("room");
|
23411
23418
|
if (!P) {
|
23412
|
-
|
23419
|
+
Ge.message("error", "会议容器不存在");
|
23413
23420
|
return;
|
23414
23421
|
}
|
23415
23422
|
let R = document.getElementById(`participant-${C.identity}`);
|
@@ -23430,7 +23437,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23430
23437
|
Tt.value = {
|
23431
23438
|
left: it.clientX - 400 + "px",
|
23432
23439
|
top: it.clientY + 5 + "px"
|
23433
|
-
}, L.value === C.identity &&
|
23440
|
+
}, L.value === C.identity && Ke.value ? Ke.value = !1 : (Ke.value = !1, L.value = C.identity, Ke.value = !0);
|
23434
23441
|
};
|
23435
23442
|
we && C.isMicrophoneEnabled ? (we.className = "microphone microphone-active", we.onclick = Pe) : we && !C.isMicrophoneEnabled && (we.className = "microphone microphone-inactive", we.onclick = Gn), R && (R.onmouseenter = Be, R.onmouseleave = nr), z && (z.onclick = Rm), F && (C.connectionQuality === "excellent" || C.connectionQuality === "good" ? F.className = "signal-icon signal-icon-good" : F.className = "signal-icon signal-icon-poor");
|
23436
23443
|
let rn = document.getElementById(`screenshare-${C.identity}`);
|
@@ -23489,19 +23496,19 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23489
23496
|
}
|
23490
23497
|
}, tm = () => {
|
23491
23498
|
if (!he) {
|
23492
|
-
|
23499
|
+
Ge.message("error", "liveClient初始化失败");
|
23493
23500
|
return;
|
23494
23501
|
}
|
23495
23502
|
he.on("errorPush", (C) => {
|
23496
|
-
vt("errorPush"), console.error("出错位置" + C.type + ":", C.message),
|
23503
|
+
vt("errorPush"), console.error("出错位置" + C.type + ":", C.message), Ge.message("error", C.message);
|
23497
23504
|
}), he.on("socketOpen", () => {
|
23498
|
-
vt("socketOpen"),
|
23505
|
+
vt("socketOpen"), Ge.message("success", "链接建立成功");
|
23499
23506
|
}), he.on("roomCreatedSuccess", async (C) => {
|
23500
|
-
vt("roomCreatedSuccess"),
|
23507
|
+
vt("roomCreatedSuccess"), Ge.message("success", "会议房间创建成功"), s.value = C, await Ac();
|
23501
23508
|
}), he.on("roomCreatedFail", (C) => {
|
23502
|
-
vt("roomCreatedFail"),
|
23509
|
+
vt("roomCreatedFail"), Ge.message("error", "会议房间创建失败");
|
23503
23510
|
}), he.on("joinRoomError", (C) => {
|
23504
|
-
vt("joinRoomError"), console.error("加入房间失败", C),
|
23511
|
+
vt("joinRoomError"), console.error("加入房间失败", C), Ye.value = !1, Ge.message("error", "加入房间失败");
|
23505
23512
|
}), he.on("roomConnected", async (C) => {
|
23506
23513
|
var P, R;
|
23507
23514
|
if (vt("roomConnected"), he.room) {
|
@@ -23598,7 +23605,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23598
23605
|
}
|
23599
23606
|
} else
|
23600
23607
|
Yh();
|
23601
|
-
|
23608
|
+
Ye.value = !0;
|
23602
23609
|
}), he.on("setHostSuccess", async (C) => {
|
23603
23610
|
if (vt("setHostSuccess"), console.log("主持人添加成功", C), Ih(C), Ee.value !== h.value.ownerId) {
|
23604
23611
|
await Ae();
|
@@ -23630,27 +23637,27 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23630
23637
|
}), he.on("roomMetadataChanged", (C) => {
|
23631
23638
|
console.log("roomMetadataChanged", C, JSON.parse(C));
|
23632
23639
|
}), he.on("roomDisconnected", () => {
|
23633
|
-
vt("roomDisconnected"),
|
23640
|
+
vt("roomDisconnected"), Ge.message("info", "房间链接已断开"), Ye.value = !1, Vh(), Hh(), ae.value ? he.deleteRoom(n.userData.mobile).then(() => {
|
23634
23641
|
tr();
|
23635
23642
|
}).catch((C) => {
|
23636
23643
|
tr();
|
23637
23644
|
}) : tr();
|
23638
23645
|
}), he.on("localCameraChange", (C) => {
|
23639
|
-
vt("localCameraChange"), Ce.value = C, Ce.value ?
|
23646
|
+
vt("localCameraChange"), Ce.value = C, Ce.value ? Ge.message("success", "摄像头已开启") : Ge.message("success", "摄像头已关闭");
|
23640
23647
|
}), he.on("localMicrophoneChange", (C) => {
|
23641
|
-
vt("localMicrophoneChange"), ce.value = C, ce.value ?
|
23648
|
+
vt("localMicrophoneChange"), ce.value = C, ce.value ? Ge.message("success", "麦克风已开启") : Ge.message("success", "麦克风已关闭");
|
23642
23649
|
}), he.on("localScreenShareChange", (C) => {
|
23643
|
-
vt("localScreenShareChange"), Le.value = C, Le.value ?
|
23650
|
+
vt("localScreenShareChange"), Le.value = C, Le.value ? Ge.message("success", "屏幕共享已开启") : Ge.message("success", "屏幕共享已关闭");
|
23644
23651
|
}), he.on("startRecording", (C) => {
|
23645
|
-
vt("startRecording"), Me.value = !0, qe.value = C,
|
23652
|
+
vt("startRecording"), Me.value = !0, qe.value = C, Ge.message("success", "开始录制");
|
23646
23653
|
}), he.on("stopRecording", (C) => {
|
23647
|
-
vt("stopRecording"), Me.value = !1,
|
23654
|
+
vt("stopRecording"), Me.value = !1, Ge.message("success", "结束录制");
|
23648
23655
|
}), he.on("requestDeviceOpen", (C) => {
|
23649
|
-
vt("requestDeviceOpen"), C.input == "1" ?
|
23656
|
+
vt("requestDeviceOpen"), C.input == "1" ? Ge.message("info", "房主请求您开启麦克风") : C.input == "2" && Ge.message("info", "房主请求您开启摄像头");
|
23650
23657
|
}), he.on("mediaDeviceChange", (C) => {
|
23651
|
-
vt("mediaDeviceChange"),
|
23658
|
+
vt("mediaDeviceChange"), Ge.message("success", "设备切换成功"), console.log("设备类型" + C.kind, C.deviceId), C.kind == "audioinput" ? S.audioInputDevice = C.deviceId : C.kind == "videoinput" ? S.videoDevice = C.deviceId : S.audioOutputDevice = C.deviceId;
|
23652
23659
|
}), he.on("sendTextFailed", (C) => {
|
23653
|
-
vt("sendTextFailed"),
|
23660
|
+
vt("sendTextFailed"), Ge.message("error", "e");
|
23654
23661
|
}), he.on("sendTextSuccess", async (C) => {
|
23655
23662
|
vt("sendTextSuccess"), await Ae(), ko.value && ko.value.clearInputContent(), console.log("instantRef.value", Ht.value), Ht.value && Ht.value.clearInput();
|
23656
23663
|
}), he.on("messageReceived", (C) => {
|
@@ -23665,7 +23672,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23665
23672
|
}), R >= 0 && Qh(C[R]);
|
23666
23673
|
}
|
23667
23674
|
}), he.on("makeCallSuccess", () => {
|
23668
|
-
vt("makeCallSuccess"),
|
23675
|
+
vt("makeCallSuccess"), Ge.message("success", "外呼邀请发送成功"), re.value = !1;
|
23669
23676
|
});
|
23670
23677
|
}, Uc = () => {
|
23671
23678
|
he = window.liveClient, tm();
|
@@ -23766,7 +23773,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23766
23773
|
To([C]);
|
23767
23774
|
}, xo = async (C, P) => {
|
23768
23775
|
if (!P) {
|
23769
|
-
|
23776
|
+
Ge("error", "设备id不存在");
|
23770
23777
|
return;
|
23771
23778
|
}
|
23772
23779
|
if (C == "audioinput")
|
@@ -23816,11 +23823,11 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23816
23823
|
}, mm = async (C) => {
|
23817
23824
|
if (G.value === "pointTurn") {
|
23818
23825
|
if (Ee.value && Ee.value === C) {
|
23819
|
-
|
23826
|
+
Ge.message("info", "当前与会者已被设置为主持人,暂无法设为焦点");
|
23820
23827
|
return;
|
23821
23828
|
}
|
23822
23829
|
if (ue.value && ue.value === C) {
|
23823
|
-
|
23830
|
+
Ge.message("info", "当前与会者已被设置为焦点");
|
23824
23831
|
return;
|
23825
23832
|
}
|
23826
23833
|
ue.value = C, await Ae();
|
@@ -23841,7 +23848,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23841
23848
|
}
|
23842
23849
|
} else if (B.value === "rightSide") {
|
23843
23850
|
if (ue.value && ue.value === C) {
|
23844
|
-
|
23851
|
+
Ge.message("info", "当前与会者已被设置为焦点");
|
23845
23852
|
return;
|
23846
23853
|
}
|
23847
23854
|
ue.value = C;
|
@@ -23852,7 +23859,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23852
23859
|
H && P && P.appendChild(H);
|
23853
23860
|
R.insertBefore(U, R.firstChild ?? null);
|
23854
23861
|
}
|
23855
|
-
} else B.value === "grid" && (ue.value && ue.value === C ?
|
23862
|
+
} else B.value === "grid" && (ue.value && ue.value === C ? Ge.message("info", "当前与会者已被设置为焦点") : ue.value = C, qr("rightSide"));
|
23856
23863
|
}, vm = () => {
|
23857
23864
|
const C = document.getElementById(`participant-${ue.value}`);
|
23858
23865
|
if (G.value === "pointTurn") {
|
@@ -23893,13 +23900,13 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23893
23900
|
}, xm = async () => {
|
23894
23901
|
document.fullscreenElement || document.msFullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement ? document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitCancelFullScreen ? document.webkitCancelFullScreen() : document.msExitFullscreen && document.msExitFullscreen() : (await Ae(), a.value.requestFullscreen && a.value.requestFullscreen());
|
23895
23902
|
}, Vc = (C = 3, P) => {
|
23896
|
-
_e.value = C,
|
23903
|
+
_e.value = C, ve.value = !0, dn && clearInterval(dn), dn = setInterval(() => {
|
23897
23904
|
_e.value > 0 && _e.value--;
|
23898
23905
|
}, 1e3);
|
23899
23906
|
}, Em = () => {
|
23900
|
-
console.log("点击", dn), dn && clearInterval(dn),
|
23907
|
+
console.log("点击", dn), dn && clearInterval(dn), ve.value = !0;
|
23901
23908
|
}, Hc = (C) => {
|
23902
|
-
console.log("点击事件", C.target.className), C.target.className.includes("meeting-name") || (M.value = !1), C.target.className.includes("exit-btn") || C.target.className.includes("close-meeting-icon") || (pe.value = !1), C.target.className.includes("member-item") || C.target.className.includes("appoint-dialog") || C.target.className.includes("member-list") || C.target.className.includes("control-list-item") || ($e.value = !1), C.target.className.includes("icon-btn-option") || C.target.className.includes("more-icon") || (
|
23909
|
+
console.log("点击事件", C.target.className), C.target.className.includes("meeting-name") || (M.value = !1), C.target.className.includes("exit-btn") || C.target.className.includes("close-meeting-icon") || (pe.value = !1), C.target.className.includes("member-item") || C.target.className.includes("appoint-dialog") || C.target.className.includes("member-list") || C.target.className.includes("control-list-item") || ($e.value = !1), C.target.className.includes("icon-btn-option") || C.target.className.includes("more-icon") || (Ke.value = !1);
|
23903
23910
|
}, _m = (C) => {
|
23904
23911
|
console.log("beforeunload", C), xe.value || C.preventDefault();
|
23905
23912
|
}, Pm = () => {
|
@@ -23939,7 +23946,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
23939
23946
|
token: n.token
|
23940
23947
|
}
|
23941
23948
|
);
|
23942
|
-
|
23949
|
+
Ge.message("success", "成功发送短信链接与语音播报"), re.value = !1;
|
23943
23950
|
} catch (P) {
|
23944
23951
|
console.error("发送语音播报失败", P);
|
23945
23952
|
}
|
@@ -24030,7 +24037,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24030
24037
|
return Ve(
|
24031
24038
|
() => _e.value,
|
24032
24039
|
(C) => {
|
24033
|
-
C <= 0 && (
|
24040
|
+
C <= 0 && (ve.value = !1, dn && clearInterval(dn));
|
24034
24041
|
}
|
24035
24042
|
), Ve(
|
24036
24043
|
() => B.value,
|
@@ -24255,7 +24262,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24255
24262
|
meetingH5Link: _.value,
|
24256
24263
|
meetingWXLink: I.value,
|
24257
24264
|
meetingCreator: c.value
|
24258
|
-
}, null, 8, ["meetingName", "meetingNum", "meetingH5Link", "meetingWXLink", "meetingCreator"])) :
|
24265
|
+
}, null, 8, ["meetingName", "meetingNum", "meetingH5Link", "meetingWXLink", "meetingCreator"])) : ge("", !0)
|
24259
24266
|
]),
|
24260
24267
|
k("div", {
|
24261
24268
|
class: "meeting-signal",
|
@@ -24268,7 +24275,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24268
24275
|
meetingTTL: v.value,
|
24269
24276
|
onMouseenter: P[1] || (P[1] = (R) => D.value = !0),
|
24270
24277
|
onMouseleave: P[2] || (P[2] = (R) => D.value = !1)
|
24271
|
-
}, null, 8, ["meetingQuality", "meetingTTL"])) :
|
24278
|
+
}, null, 8, ["meetingQuality", "meetingTTL"])) : ge("", !0)
|
24272
24279
|
], 32)
|
24273
24280
|
]),
|
24274
24281
|
k("div", GP, [
|
@@ -24290,7 +24297,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24290
24297
|
onSetLayout: Mh,
|
24291
24298
|
onMouseenter: P[5] || (P[5] = (R) => q.value = !0),
|
24292
24299
|
onMouseleave: P[6] || (P[6] = (R) => q.value = !1)
|
24293
|
-
}, null, 8, ["currentLayout", "layoutList", "layoutLabels", "currentRoomMode"])) :
|
24300
|
+
}, null, 8, ["currentLayout", "layoutList", "layoutLabels", "currentRoomMode"])) : ge("", !0)
|
24294
24301
|
], 34),
|
24295
24302
|
k("div", {
|
24296
24303
|
class: "btn full-screen",
|
@@ -24298,7 +24305,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24298
24305
|
}),
|
24299
24306
|
k("div", {
|
24300
24307
|
class: "btn close-meeting-icon",
|
24301
|
-
onClick: P[10] || (P[10] = (R) =>
|
24308
|
+
onClick: P[10] || (P[10] = (R) => Ye.value ? Jh(R) : tr())
|
24302
24309
|
})
|
24303
24310
|
])
|
24304
24311
|
]),
|
@@ -24321,7 +24328,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24321
24328
|
onMessageSend: jc
|
24322
24329
|
}, null, 8, ["message-list"]),
|
24323
24330
|
k("div", {
|
24324
|
-
class: me(["meeting-control-bar", { "meeting-control-bar-show":
|
24331
|
+
class: me(["meeting-control-bar", { "meeting-control-bar-show": ve.value }]),
|
24325
24332
|
onMousemove: Em
|
24326
24333
|
}, [
|
24327
24334
|
k("div", QP, [
|
@@ -24342,7 +24349,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24342
24349
|
activeDevice: S,
|
24343
24350
|
onChooseAudioInputDevice: om,
|
24344
24351
|
onChooseAudioOutputDevice: sm
|
24345
|
-
}, null, 8, ["audioDevices", "outputDevices", "activeDevice"])) :
|
24352
|
+
}, null, 8, ["audioDevices", "outputDevices", "activeDevice"])) : ge("", !0)
|
24346
24353
|
]),
|
24347
24354
|
k("div", tN, [
|
24348
24355
|
k("div", {
|
@@ -24359,7 +24366,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24359
24366
|
activeDevice: S,
|
24360
24367
|
dialogType: "video",
|
24361
24368
|
onChooseVideoDevice: cm
|
24362
|
-
}, null, 8, ["videoDevices", "activeDevice"])) :
|
24369
|
+
}, null, 8, ["videoDevices", "activeDevice"])) : ge("", !0)
|
24363
24370
|
])
|
24364
24371
|
]),
|
24365
24372
|
k("div", rN, [
|
@@ -24375,8 +24382,8 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24375
24382
|
currentRoomMode: G.value,
|
24376
24383
|
dialogType: "other",
|
24377
24384
|
onChooseOtherItem: um
|
24378
|
-
}, null, 8, ["currentRoomMode"])) :
|
24379
|
-
])) :
|
24385
|
+
}, null, 8, ["currentRoomMode"])) : ge("", !0)
|
24386
|
+
])) : ge("", !0),
|
24380
24387
|
Le.value ? (O(), V("div", {
|
24381
24388
|
key: 2,
|
24382
24389
|
class: "t-btn",
|
@@ -24409,12 +24416,12 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24409
24416
|
onCloseCallBoard: P[17] || (P[17] = (R) => re.value = !1),
|
24410
24417
|
onPhoneCall: Eo,
|
24411
24418
|
onMiniCall: Im
|
24412
|
-
}, null, 8, ["position"])) :
|
24413
|
-
])) :
|
24419
|
+
}, null, 8, ["position"])) : ge("", !0)
|
24420
|
+
])) : ge("", !0)
|
24414
24421
|
]),
|
24415
24422
|
k("div", {
|
24416
24423
|
class: "exit-btn",
|
24417
|
-
onClick: P[19] || (P[19] = (R) =>
|
24424
|
+
onClick: P[19] || (P[19] = (R) => Ye.value ? zh(R) : tr())
|
24418
24425
|
}, " 结束会议 ")
|
24419
24426
|
], 34),
|
24420
24427
|
$e.value ? (O(), Te(fP, {
|
@@ -24423,7 +24430,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24423
24430
|
meetingHost: h.value,
|
24424
24431
|
onAppointHost: Wh,
|
24425
24432
|
onCloseDialog: P[20] || (P[20] = (R) => $e.value = !1)
|
24426
|
-
}, null, 8, ["participants", "meetingHost"])) :
|
24433
|
+
}, null, 8, ["participants", "meetingHost"])) : ge("", !0)
|
24427
24434
|
], 2),
|
24428
24435
|
k("div", TN, [
|
24429
24436
|
K.value ? (O(), Te(M_, {
|
@@ -24439,7 +24446,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24439
24446
|
meetingName: o.value,
|
24440
24447
|
meetingHost: h.value,
|
24441
24448
|
onClose: P[21] || (P[21] = (R) => {
|
24442
|
-
K.value = !1,
|
24449
|
+
K.value = !1, Ke.value = !1;
|
24443
24450
|
}),
|
24444
24451
|
onCloseMoreDialog: Fh,
|
24445
24452
|
onParticipantCameraSwitch: Fc,
|
@@ -24450,7 +24457,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24450
24457
|
onAppendMemberInvite: am,
|
24451
24458
|
onRemoveUnjoinItem: jh,
|
24452
24459
|
onFilterJoinedList: Rh
|
24453
|
-
}, null, 8, ["joinedList", "participants", "localIdentity", "tempInvitedList", "inviteList", "meetingNum", "meetingName", "meetingHost"])) :
|
24460
|
+
}, null, 8, ["joinedList", "participants", "localIdentity", "tempInvitedList", "inviteList", "meetingNum", "meetingName", "meetingHost"])) : ge("", !0),
|
24454
24461
|
N.value ? (O(), Te(eP, {
|
24455
24462
|
key: 1,
|
24456
24463
|
ref_key: "chatAreaRef",
|
@@ -24461,17 +24468,17 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24461
24468
|
imgUrl: t.imgUrl,
|
24462
24469
|
onClose: P[22] || (P[22] = (R) => N.value = !1),
|
24463
24470
|
onMessageSend: jc
|
24464
|
-
}, null, 8, ["localIdentity", "messageList", "fileUploadUrl", "imgUrl"])) :
|
24471
|
+
}, null, 8, ["localIdentity", "messageList", "fileUploadUrl", "imgUrl"])) : ge("", !0)
|
24465
24472
|
])
|
24466
24473
|
]),
|
24467
24474
|
pe.value ? (O(), Te(aP, {
|
24468
24475
|
key: 0,
|
24469
|
-
position:
|
24476
|
+
position: Qe.value,
|
24470
24477
|
onCancelMeeting: Lc,
|
24471
24478
|
onLeaveMeeting: Gh,
|
24472
24479
|
onOptionClose: P[23] || (P[23] = (R) => pe.value = !1)
|
24473
|
-
}, null, 8, ["position"])) :
|
24474
|
-
|
24480
|
+
}, null, 8, ["position"])) : ge("", !0),
|
24481
|
+
Ke.value ? (O(), Te(vP, {
|
24475
24482
|
key: 1,
|
24476
24483
|
curBlur: ue.value,
|
24477
24484
|
identity: L.value,
|
@@ -24479,7 +24486,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24479
24486
|
localIdentity: m.value,
|
24480
24487
|
meetingHost: h.value,
|
24481
24488
|
participants: d.value,
|
24482
|
-
onClose: P[24] || (P[24] = (R) =>
|
24489
|
+
onClose: P[24] || (P[24] = (R) => Ke.value = !1),
|
24483
24490
|
onSetToBlur: mm,
|
24484
24491
|
onRemoveFromBlur: vm,
|
24485
24492
|
onCloseMicro: gm,
|
@@ -24489,7 +24496,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24489
24496
|
onCancelDeafness: Cm,
|
24490
24497
|
onUpdateName: Sm,
|
24491
24498
|
onRemove: Tm
|
24492
|
-
}, null, 8, ["curBlur", "identity", "optionDialogOffset", "localIdentity", "meetingHost", "participants"])) :
|
24499
|
+
}, null, 8, ["curBlur", "identity", "optionDialogOffset", "localIdentity", "meetingHost", "participants"])) : ge("", !0),
|
24493
24500
|
de(Mp, {
|
24494
24501
|
baseUrl: t.baseUrl,
|
24495
24502
|
token: t.token,
|
@@ -24624,7 +24631,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24624
24631
|
onQuickLaunch: a,
|
24625
24632
|
onLaunchMeeting: o,
|
24626
24633
|
onJoinMeeting: s
|
24627
|
-
}, null, 8, ["baseUrl", "userData", "org", "token"])) :
|
24634
|
+
}, null, 8, ["baseUrl", "userData", "org", "token"])) : ge("", !0)
|
24628
24635
|
])),
|
24629
24636
|
(O(), Te(gi, { to: "body" }, [
|
24630
24637
|
n.value ? (O(), Te(Dr, {
|
@@ -24654,7 +24661,7 @@ const kh = "/assets/img/meeting/share.png", u2 = "/assets/img/meeting/chat.png",
|
|
24654
24661
|
onMultiMeetingClose: c,
|
24655
24662
|
onMiniInviteSend: u,
|
24656
24663
|
onInviteMessageSend: l
|
24657
|
-
}, null, 8, ["baseUrl", "token", "meetingUrl", "org", "userData", "tempMeetingName", "tempMeetingNum", "tempCameraStatus", "tempMicroStatus", "tempActiveDevice", "joinType", "tempInviteList", "fileUploadUrl", "imgUrl", "h5Url", "isCustomizeMiniInvitations", "miniPagePath", "defaultInviteWay"])) :
|
24664
|
+
}, null, 8, ["baseUrl", "token", "meetingUrl", "org", "userData", "tempMeetingName", "tempMeetingNum", "tempCameraStatus", "tempMicroStatus", "tempActiveDevice", "joinType", "tempInviteList", "fileUploadUrl", "imgUrl", "h5Url", "isCustomizeMiniInvitations", "miniPagePath", "defaultInviteWay"])) : ge("", !0)
|
24658
24665
|
]))
|
24659
24666
|
]));
|
24660
24667
|
}
|
@@ -24796,7 +24803,7 @@ const Hs = {
|
|
24796
24803
|
onLaunchMeeting: c,
|
24797
24804
|
onJoinMeeting: u,
|
24798
24805
|
onClose: d
|
24799
|
-
}, null, 8, ["dialogType", "tempRoomNum"])) :
|
24806
|
+
}, null, 8, ["dialogType", "tempRoomNum"])) : ge("", !0)
|
24800
24807
|
])),
|
24801
24808
|
(O(), Te(gi, { to: "body" }, [
|
24802
24809
|
o.value ? (O(), Te(Dr, {
|
@@ -24828,7 +24835,7 @@ const Hs = {
|
|
24828
24835
|
onMultiMeetingClose: b,
|
24829
24836
|
onMiniInviteSend: g,
|
24830
24837
|
onInviteMessageSend: h
|
24831
|
-
}, null, 8, ["baseUrl", "token", "meetingUrl", "org", "userData", "tempMeetingName", "tempMeetingNum", "tempCameraStatus", "tempMicroStatus", "tempActiveDevice", "joinType", "tempInviteList", "fileUploadUrl", "imgUrl", "h5Url", "isCustomizeMiniInvitations", "miniPagePath", "defaultInviteWay"])) :
|
24838
|
+
}, null, 8, ["baseUrl", "token", "meetingUrl", "org", "userData", "tempMeetingName", "tempMeetingNum", "tempCameraStatus", "tempMicroStatus", "tempActiveDevice", "joinType", "tempInviteList", "fileUploadUrl", "imgUrl", "h5Url", "isCustomizeMiniInvitations", "miniPagePath", "defaultInviteWay"])) : ge("", !0)
|
24832
24839
|
]))
|
24833
24840
|
]));
|
24834
24841
|
}
|