@cloudflare/realtimekit 1.2.4-staging.1 → 1.2.4-staging.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/EncryptionManager.d.ts +4 -4
- package/dist/browser.js +1 -1
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.es.js +300 -37
- package/dist/index.es5.js +557 -375
- package/dist/index.rn.js +1 -1
- package/dist/ts3.4/dist/EncryptionManager.d.ts +4 -4
- package/dist/ts3.4/dist/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.es5.js
CHANGED
|
@@ -6020,6 +6020,9 @@ var Hh = 1080, Bh = 1920, LP = function(t, e, r, n, a, i) {
|
|
|
6020
6020
|
}
|
|
6021
6021
|
/**
|
|
6022
6022
|
* Initialize PiP and prepare sources
|
|
6023
|
+
* @param {Object} [options]
|
|
6024
|
+
* @param {number} [options.height]
|
|
6025
|
+
* @param {number} [options.width]
|
|
6023
6026
|
*/
|
|
6024
6027
|
}, { key: "init", value: function() {
|
|
6025
6028
|
var r = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = n.height, i = n.width;
|
|
@@ -6040,9 +6043,15 @@ var Hh = 1080, Bh = 1920, LP = function(t, e, r, n, a, i) {
|
|
|
6040
6043
|
}
|
|
6041
6044
|
} }, { key: "updateMediaSession", value: function(r, n) {
|
|
6042
6045
|
navigator.mediaSession !== void 0 && (r === "CAMERA" && navigator.mediaSession.setCameraActive !== void 0 && navigator.mediaSession.setCameraActive(n), r === "MIC" && navigator.mediaSession.setMicrophoneActive !== void 0 && navigator.mediaSession.setMicrophoneActive(n));
|
|
6043
|
-
} }, {
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
+
} }, {
|
|
6047
|
+
key: "enableSource",
|
|
6048
|
+
value: function(r) {
|
|
6049
|
+
l(this, fr)[fr][r] !== void 0 && (l(this, fr)[fr][r].enabled = !0);
|
|
6050
|
+
}
|
|
6051
|
+
/**
|
|
6052
|
+
* @param {string} source
|
|
6053
|
+
*/
|
|
6054
|
+
}, { key: "disableSource", value: function(r) {
|
|
6046
6055
|
l(this, fr)[fr][r] !== void 0 && (l(this, fr)[fr][r].enabled = !1);
|
|
6047
6056
|
} }, {
|
|
6048
6057
|
key: "generateAvatar",
|
|
@@ -6093,7 +6102,11 @@ var Hh = 1080, Bh = 1920, LP = function(t, e, r, n, a, i) {
|
|
|
6093
6102
|
var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : void 0, u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : void 0, c = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : !1;
|
|
6094
6103
|
this.logger.debug("Pip::AddSource", { pip: { id: r, handRaised: c } }), l(this, fr)[fr][r] = { id: r, element: n, enabled: a, pinned: i, displayText: s ? DP(s) : void 0, imageUrl: u, handRaised: c }, u && this.generateAvatar(r, u);
|
|
6095
6104
|
}
|
|
6096
|
-
/**
|
|
6105
|
+
/**
|
|
6106
|
+
* Update a video source
|
|
6107
|
+
* @param {string} id
|
|
6108
|
+
* @param {any} source
|
|
6109
|
+
*/
|
|
6097
6110
|
}, {
|
|
6098
6111
|
key: "updateSource",
|
|
6099
6112
|
value: function(r, n) {
|
|
@@ -11674,7 +11687,8 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
|
|
|
11674
11687
|
}
|
|
11675
11688
|
)
|
|
11676
11689
|
/**
|
|
11677
|
-
|
|
11690
|
+
* Set the max character limit of a text message
|
|
11691
|
+
* @param {number} limit - Max character limit for a text message.
|
|
11678
11692
|
*/
|
|
11679
11693
|
}, { key: "setMaxTextLimit", value: function(r) {
|
|
11680
11694
|
this.maxTextLimit = r;
|
|
@@ -11836,96 +11850,103 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
|
|
|
11836
11850
|
return e.apply(this, arguments);
|
|
11837
11851
|
}
|
|
11838
11852
|
return r;
|
|
11853
|
+
}() }, { key: "sendFileMessageInternal", value: function() {
|
|
11854
|
+
var e = m(/* @__PURE__ */ h().mark(function n(a, i, s) {
|
|
11855
|
+
var u, c, d, p, v, f, g, k, y, b;
|
|
11856
|
+
return h().wrap(function(T) {
|
|
11857
|
+
for (; ; )
|
|
11858
|
+
switch (T.prev = T.next) {
|
|
11859
|
+
case 0:
|
|
11860
|
+
if (!(i && i.length > 0)) {
|
|
11861
|
+
T.next = 6;
|
|
11862
|
+
break;
|
|
11863
|
+
}
|
|
11864
|
+
if (!(!((d = l(this, z)[z].permissions) !== null && d !== void 0 && d.chatPrivate.canSend) || !((p = l(this, z)[z].permissions) !== null && p !== void 0 && p.chatPrivate.files))) {
|
|
11865
|
+
T.next = 4;
|
|
11866
|
+
break;
|
|
11867
|
+
}
|
|
11868
|
+
return this.logger.error("sendFileMessage::private_chat_permission_denied"), T.abrupt("return");
|
|
11869
|
+
case 4:
|
|
11870
|
+
T.next = 9;
|
|
11871
|
+
break;
|
|
11872
|
+
case 6:
|
|
11873
|
+
if (!(!((u = l(this, z)[z].permissions) !== null && u !== void 0 && (u = u.chatPublic) !== null && u !== void 0 && u.canSend) || !((c = l(this, z)[z].permissions) !== null && c !== void 0 && (c = c.chatPublic) !== null && c !== void 0 && c.files))) {
|
|
11874
|
+
T.next = 9;
|
|
11875
|
+
break;
|
|
11876
|
+
}
|
|
11877
|
+
return this.logger.error("sendFileMessage::permission_denied"), T.abrupt("return");
|
|
11878
|
+
case 9:
|
|
11879
|
+
if (a) {
|
|
11880
|
+
T.next = 12;
|
|
11881
|
+
break;
|
|
11882
|
+
}
|
|
11883
|
+
return this.logger.error("sendFileMessage::required_argument_file_can_not_be_empty"), T.abrupt("return");
|
|
11884
|
+
case 12:
|
|
11885
|
+
return T.prev = 12, v = ht(), T.next = 16, v.getPresignedUrls(a.name, l(this, z)[z].config.viewType);
|
|
11886
|
+
case 16:
|
|
11887
|
+
return f = T.sent, g = f.getLocation, k = f.putLocation, T.next = 21, v.uploadFile(a, k);
|
|
11888
|
+
case 21:
|
|
11889
|
+
if (!s) {
|
|
11890
|
+
T.next = 24;
|
|
11891
|
+
break;
|
|
11892
|
+
}
|
|
11893
|
+
return l(this, $e)[$e].sendMessageToChannel(JSON.stringify({ link: g, name: a.name, size: "size" in a ? a.size : 0 }), St.FILE, s), T.abrupt("return");
|
|
11894
|
+
case 24:
|
|
11895
|
+
y = [], i && i.length > 0 && (i.push(l(this, z)[z].id), y = l(this, Wn)[Wn].joined.toArray().filter(function(S) {
|
|
11896
|
+
return i.includes(S.id);
|
|
11897
|
+
}).map(function(S) {
|
|
11898
|
+
return S.userId;
|
|
11899
|
+
}), y.push(l(this, z)[z].userId)), b = JSON.stringify({ link: g, name: a.name, size: "size" in a ? a.size : 0 }), l(this, $e)[$e].sendMessage(b, St.FILE, i), T.next = 33;
|
|
11900
|
+
break;
|
|
11901
|
+
case 30:
|
|
11902
|
+
throw T.prev = 30, T.t0 = T.catch(12), new j("Error sending file message.", "0500", this.logger);
|
|
11903
|
+
case 33:
|
|
11904
|
+
case "end":
|
|
11905
|
+
return T.stop();
|
|
11906
|
+
}
|
|
11907
|
+
}, n, this, [[12, 30]]);
|
|
11908
|
+
}));
|
|
11909
|
+
function r(n, a, i) {
|
|
11910
|
+
return e.apply(this, arguments);
|
|
11911
|
+
}
|
|
11912
|
+
return r;
|
|
11839
11913
|
}() }, {
|
|
11840
|
-
key: "
|
|
11914
|
+
key: "rateLimits",
|
|
11915
|
+
get: function() {
|
|
11916
|
+
return Nl;
|
|
11917
|
+
}
|
|
11918
|
+
/**
|
|
11919
|
+
* @param {number} num
|
|
11920
|
+
* @param {number} period
|
|
11921
|
+
*/
|
|
11922
|
+
// eslint-disable-next-line class-methods-use-this
|
|
11923
|
+
}, { key: "updateRateLimits", value: function(r, n) {
|
|
11924
|
+
Nl.maxInvocations = r, Nl.period = n;
|
|
11925
|
+
} }, {
|
|
11926
|
+
key: "sendTextMessage",
|
|
11841
11927
|
value: function() {
|
|
11842
|
-
var e = m(/* @__PURE__ */ h().mark(function n(a, i
|
|
11843
|
-
|
|
11844
|
-
return h().wrap(function(T) {
|
|
11928
|
+
var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
|
|
11929
|
+
return h().wrap(function(u) {
|
|
11845
11930
|
for (; ; )
|
|
11846
|
-
switch (
|
|
11931
|
+
switch (u.prev = u.next) {
|
|
11847
11932
|
case 0:
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
break;
|
|
11851
|
-
}
|
|
11852
|
-
if (!(!((d = l(this, z)[z].permissions) !== null && d !== void 0 && d.chatPrivate.canSend) || !((p = l(this, z)[z].permissions) !== null && p !== void 0 && p.chatPrivate.files))) {
|
|
11853
|
-
T.next = 4;
|
|
11854
|
-
break;
|
|
11855
|
-
}
|
|
11856
|
-
return this.logger.error("sendFileMessage::private_chat_permission_denied"), T.abrupt("return");
|
|
11857
|
-
case 4:
|
|
11858
|
-
T.next = 9;
|
|
11859
|
-
break;
|
|
11860
|
-
case 6:
|
|
11861
|
-
if (!(!((u = l(this, z)[z].permissions) !== null && u !== void 0 && (u = u.chatPublic) !== null && u !== void 0 && u.canSend) || !((c = l(this, z)[z].permissions) !== null && c !== void 0 && (c = c.chatPublic) !== null && c !== void 0 && c.files))) {
|
|
11862
|
-
T.next = 9;
|
|
11863
|
-
break;
|
|
11864
|
-
}
|
|
11865
|
-
return this.logger.error("sendFileMessage::permission_denied"), T.abrupt("return");
|
|
11866
|
-
case 9:
|
|
11867
|
-
if (a) {
|
|
11868
|
-
T.next = 12;
|
|
11869
|
-
break;
|
|
11870
|
-
}
|
|
11871
|
-
return this.logger.error("sendFileMessage::required_argument_file_can_not_be_empty"), T.abrupt("return");
|
|
11872
|
-
case 12:
|
|
11873
|
-
return T.prev = 12, v = ht(), T.next = 16, v.getPresignedUrls(a.name, l(this, z)[z].config.viewType);
|
|
11874
|
-
case 16:
|
|
11875
|
-
return f = T.sent, g = f.getLocation, k = f.putLocation, T.next = 21, v.uploadFile(a, k);
|
|
11876
|
-
case 21:
|
|
11877
|
-
if (!s) {
|
|
11878
|
-
T.next = 24;
|
|
11879
|
-
break;
|
|
11880
|
-
}
|
|
11881
|
-
return l(this, $e)[$e].sendMessageToChannel(JSON.stringify({ link: g, name: a.name, size: "size" in a ? a.size : 0 }), St.FILE, s), T.abrupt("return");
|
|
11882
|
-
case 24:
|
|
11883
|
-
y = [], i && i.length > 0 && (i.push(l(this, z)[z].id), y = l(this, Wn)[Wn].joined.toArray().filter(function(S) {
|
|
11884
|
-
return i.includes(S.id);
|
|
11885
|
-
}).map(function(S) {
|
|
11886
|
-
return S.userId;
|
|
11887
|
-
}), y.push(l(this, z)[z].userId)), b = JSON.stringify({ link: g, name: a.name, size: "size" in a ? a.size : 0 }), l(this, $e)[$e].sendMessage(b, St.FILE, i), T.next = 33;
|
|
11888
|
-
break;
|
|
11889
|
-
case 30:
|
|
11890
|
-
throw T.prev = 30, T.t0 = T.catch(12), new j("Error sending file message.", "0500", this.logger);
|
|
11891
|
-
case 33:
|
|
11933
|
+
return u.abrupt("return", this.sendTextMessageInternal(a, i));
|
|
11934
|
+
case 1:
|
|
11892
11935
|
case "end":
|
|
11893
|
-
return
|
|
11936
|
+
return u.stop();
|
|
11894
11937
|
}
|
|
11895
|
-
}, n, this
|
|
11938
|
+
}, n, this);
|
|
11896
11939
|
}));
|
|
11897
|
-
function r(n, a
|
|
11940
|
+
function r(n, a) {
|
|
11898
11941
|
return e.apply(this, arguments);
|
|
11899
11942
|
}
|
|
11900
11943
|
return r;
|
|
11901
11944
|
}()
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
}
|
|
11908
|
-
// eslint-disable-next-line class-methods-use-this
|
|
11909
|
-
}, { key: "updateRateLimits", value: function(r, n) {
|
|
11910
|
-
Nl.maxInvocations = r, Nl.period = n;
|
|
11911
|
-
} }, { key: "sendTextMessage", value: function() {
|
|
11912
|
-
var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
|
|
11913
|
-
return h().wrap(function(u) {
|
|
11914
|
-
for (; ; )
|
|
11915
|
-
switch (u.prev = u.next) {
|
|
11916
|
-
case 0:
|
|
11917
|
-
return u.abrupt("return", this.sendTextMessageInternal(a, i));
|
|
11918
|
-
case 1:
|
|
11919
|
-
case "end":
|
|
11920
|
-
return u.stop();
|
|
11921
|
-
}
|
|
11922
|
-
}, n, this);
|
|
11923
|
-
}));
|
|
11924
|
-
function r(n, a) {
|
|
11925
|
-
return e.apply(this, arguments);
|
|
11926
|
-
}
|
|
11927
|
-
return r;
|
|
11928
|
-
}() }, { key: "sendCustomMessage", value: function() {
|
|
11945
|
+
/**
|
|
11946
|
+
* @param {CustomMessagePayload} message - Custom message payload.
|
|
11947
|
+
* @param {string[]} [peerIds] - Peer ids to send the message to.
|
|
11948
|
+
*/
|
|
11949
|
+
}, { key: "sendCustomMessage", value: function() {
|
|
11929
11950
|
var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
|
|
11930
11951
|
var s, u, c, d = this, p, v, f, g, k, y, b, E, T, S, D;
|
|
11931
11952
|
return h().wrap(function(_) {
|
|
@@ -12267,7 +12288,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
|
|
|
12267
12288
|
}()
|
|
12268
12289
|
/**
|
|
12269
12290
|
* Returns an array of messages sent by a specific userId.
|
|
12270
|
-
* @param userId The user id of the user that sent the message.
|
|
12291
|
+
* @param {string} userId The user id of the user that sent the message.
|
|
12271
12292
|
*/
|
|
12272
12293
|
}, {
|
|
12273
12294
|
key: "getMessagesByUser",
|
|
@@ -12278,7 +12299,9 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
|
|
|
12278
12299
|
}
|
|
12279
12300
|
/**
|
|
12280
12301
|
* Returns an array of 'text', 'image' or 'file' messages.
|
|
12281
|
-
* @param
|
|
12302
|
+
* @param {(
|
|
12303
|
+
* 'text'|'image'|'file'|'custom'|'poll'
|
|
12304
|
+
* )} type 'text', 'image', 'file', 'custom', or 'poll'.
|
|
12282
12305
|
*/
|
|
12283
12306
|
}, {
|
|
12284
12307
|
key: "getMessagesByType",
|
|
@@ -12289,7 +12312,7 @@ var pI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, gt = funct
|
|
|
12289
12312
|
}
|
|
12290
12313
|
/**
|
|
12291
12314
|
* Pins a chat message
|
|
12292
|
-
* @param id ID of the message to be pinned
|
|
12315
|
+
* @param {string} id ID of the message to be pinned
|
|
12293
12316
|
*/
|
|
12294
12317
|
}, { key: "pin", value: function() {
|
|
12295
12318
|
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
@@ -13005,7 +13028,7 @@ var AI = Object.defineProperty, II = Object.getOwnPropertyDescriptor, MI = funct
|
|
|
13005
13028
|
}
|
|
13006
13029
|
/**
|
|
13007
13030
|
* Sets current user as broadcasting tab changes
|
|
13008
|
-
* @param broadcastTabChanges
|
|
13031
|
+
* @param {boolean} broadcastTabChanges
|
|
13009
13032
|
*/
|
|
13010
13033
|
}, {
|
|
13011
13034
|
key: "setBroadcastTabChanges",
|
|
@@ -13016,7 +13039,8 @@ var AI = Object.defineProperty, II = Object.getOwnPropertyDescriptor, MI = funct
|
|
|
13016
13039
|
}
|
|
13017
13040
|
/**
|
|
13018
13041
|
* Sets current active tab for user
|
|
13019
|
-
* @param spotlightTab
|
|
13042
|
+
* @param {ActiveTab} spotlightTab
|
|
13043
|
+
* @param {TabChangeSource} tabChangeSource
|
|
13020
13044
|
*/
|
|
13021
13045
|
}, { key: "setSelfActiveTab", value: function(r, n) {
|
|
13022
13046
|
var a;
|
|
@@ -13061,30 +13085,36 @@ var DI = Object.defineProperty, LI = Object.getOwnPropertyDescriptor, vg = funct
|
|
|
13061
13085
|
function() {
|
|
13062
13086
|
return l(this, lo)[lo].getValue("telemetry");
|
|
13063
13087
|
}
|
|
13064
|
-
) }, {
|
|
13065
|
-
|
|
13066
|
-
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
|
|
13074
|
-
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
+
) }, {
|
|
13089
|
+
key: "getActiveTranscript",
|
|
13090
|
+
value: function() {
|
|
13091
|
+
var e = m(/* @__PURE__ */ h().mark(function n() {
|
|
13092
|
+
var a, i, s;
|
|
13093
|
+
return h().wrap(function(c) {
|
|
13094
|
+
for (; ; )
|
|
13095
|
+
switch (c.prev = c.next) {
|
|
13096
|
+
case 0:
|
|
13097
|
+
return c.prev = 0, a = ht(), c.next = 4, a.getActiveTranscript();
|
|
13098
|
+
case 4:
|
|
13099
|
+
i = c.sent, s = i.transcript, this.transcripts = _i.parseTranscripts(s), c.next = 11;
|
|
13100
|
+
break;
|
|
13101
|
+
case 9:
|
|
13102
|
+
c.prev = 9, c.t0 = c.catch(0);
|
|
13103
|
+
case 11:
|
|
13104
|
+
case "end":
|
|
13105
|
+
return c.stop();
|
|
13106
|
+
}
|
|
13107
|
+
}, n, this, [[0, 9]]);
|
|
13108
|
+
}));
|
|
13109
|
+
function r() {
|
|
13110
|
+
return e.apply(this, arguments);
|
|
13111
|
+
}
|
|
13112
|
+
return r;
|
|
13113
|
+
}()
|
|
13114
|
+
/**
|
|
13115
|
+
* @param {TranscriptionData} transcript - Transcript data received for a participant.
|
|
13116
|
+
*/
|
|
13117
|
+
}, { key: "onTranscript", value: function() {
|
|
13088
13118
|
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
13089
13119
|
var i, s, u;
|
|
13090
13120
|
return h().wrap(function(d) {
|
|
@@ -13140,6 +13170,8 @@ var DI = Object.defineProperty, LI = Object.getOwnPropertyDescriptor, vg = funct
|
|
|
13140
13170
|
}()
|
|
13141
13171
|
/**
|
|
13142
13172
|
* Parse a single line transcript
|
|
13173
|
+
* @param {string} transcriptData - The transcript data to parse
|
|
13174
|
+
* @param {boolean} [isPartialTranscript=false] - Whether the transcript is partial
|
|
13143
13175
|
*/
|
|
13144
13176
|
}, {
|
|
13145
13177
|
key: "parseTranscript",
|
|
@@ -13152,6 +13184,7 @@ var DI = Object.defineProperty, LI = Object.getOwnPropertyDescriptor, vg = funct
|
|
|
13152
13184
|
}
|
|
13153
13185
|
/**
|
|
13154
13186
|
* Parse a multi-line transcript
|
|
13187
|
+
* @param {string} transcriptData - The transcript data to parse
|
|
13155
13188
|
*/
|
|
13156
13189
|
}, { key: "parseTranscripts", value: function(r) {
|
|
13157
13190
|
return r ? r.split(`
|
|
@@ -13455,38 +13488,50 @@ var Zo = {}, za = {
|
|
|
13455
13488
|
return e.apply(this, arguments);
|
|
13456
13489
|
}
|
|
13457
13490
|
return r;
|
|
13458
|
-
}() }, {
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
|
|
13465
|
-
|
|
13466
|
-
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13491
|
+
}() }, {
|
|
13492
|
+
key: "cancelRequestAccess",
|
|
13493
|
+
value: function() {
|
|
13494
|
+
var e = m(/* @__PURE__ */ h().mark(function n() {
|
|
13495
|
+
return h().wrap(function(i) {
|
|
13496
|
+
for (; ; )
|
|
13497
|
+
switch (i.prev = i.next) {
|
|
13498
|
+
case 0:
|
|
13499
|
+
if (l(this, oe)[oe].permissions.stageEnabled) {
|
|
13500
|
+
i.next = 3;
|
|
13501
|
+
break;
|
|
13502
|
+
}
|
|
13503
|
+
throw this.logger.error("Stage::stage_disabled"), new j("Stage is disabled", "2003");
|
|
13504
|
+
case 3:
|
|
13505
|
+
l(this, Qr)[Qr].cancelRequestAccess(), l(this, cs)[cs]("OFF_STAGE");
|
|
13506
|
+
case 5:
|
|
13507
|
+
case "end":
|
|
13508
|
+
return i.stop();
|
|
13509
|
+
}
|
|
13510
|
+
}, n, this);
|
|
13511
|
+
}));
|
|
13512
|
+
function r() {
|
|
13513
|
+
return e.apply(this, arguments);
|
|
13514
|
+
}
|
|
13515
|
+
return r;
|
|
13516
|
+
}()
|
|
13517
|
+
/**
|
|
13518
|
+
* @param {string[]} userIds
|
|
13519
|
+
*/
|
|
13520
|
+
}, {
|
|
13521
|
+
key: "grantAccess",
|
|
13522
|
+
value: function(r) {
|
|
13523
|
+
if (!l(this, oe)[oe].roomJoined)
|
|
13524
|
+
throw new j("Can`t grant for participant without joining room");
|
|
13525
|
+
if (!l(this, oe)[oe].permissions.stageEnabled)
|
|
13526
|
+
throw this.logger.error("Stage::stage_disabled"), new j("Stage is disabled", "2003");
|
|
13527
|
+
if (!l(this, oe)[oe].permissions.acceptStageRequests)
|
|
13528
|
+
throw this.logger.error("Stage::grant_access::permission_denied"), new j("You do not have permission to perform this action", "2001");
|
|
13529
|
+
return l(this, Qr)[Qr].grantAccess(r);
|
|
13479
13530
|
}
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13484
|
-
if (!l(this, oe)[oe].permissions.stageEnabled)
|
|
13485
|
-
throw this.logger.error("Stage::stage_disabled"), new j("Stage is disabled", "2003");
|
|
13486
|
-
if (!l(this, oe)[oe].permissions.acceptStageRequests)
|
|
13487
|
-
throw this.logger.error("Stage::grant_access::permission_denied"), new j("You do not have permission to perform this action", "2001");
|
|
13488
|
-
return l(this, Qr)[Qr].grantAccess(r);
|
|
13489
|
-
} }, {
|
|
13531
|
+
/**
|
|
13532
|
+
* @param {string[]} userIds
|
|
13533
|
+
*/
|
|
13534
|
+
}, {
|
|
13490
13535
|
key: "denyAccess",
|
|
13491
13536
|
value: function(r) {
|
|
13492
13537
|
if (!l(this, oe)[oe].roomJoined)
|
|
@@ -13587,6 +13632,7 @@ var Zo = {}, za = {
|
|
|
13587
13632
|
* Method to kick a user off the stage
|
|
13588
13633
|
*
|
|
13589
13634
|
* `permissions.acceptStageRequests` privilege required
|
|
13635
|
+
* @param {string[]} userIds
|
|
13590
13636
|
*/
|
|
13591
13637
|
}, { key: "kick", value: function() {
|
|
13592
13638
|
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
@@ -13856,12 +13902,18 @@ var JI = Object.defineProperty, KI = Object.getOwnPropertyDescriptor, Sc = funct
|
|
|
13856
13902
|
function() {
|
|
13857
13903
|
return l(this, hn)[hn].getValue("telemetry");
|
|
13858
13904
|
}
|
|
13859
|
-
) }, {
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
|
|
13905
|
+
) }, {
|
|
13906
|
+
key: "sendIframeEvent",
|
|
13907
|
+
value: function(r) {
|
|
13908
|
+
this.iframes.size && this.iframes.forEach(function(n) {
|
|
13909
|
+
var a = n.iframe;
|
|
13910
|
+
a && (navigator.isReactNative ? a.postMessage(JSON.stringify(r)) : a.contentWindow.postMessage(r, "*"));
|
|
13911
|
+
});
|
|
13912
|
+
}
|
|
13913
|
+
/**
|
|
13914
|
+
* @param {PluginIframeMessage} iframeMessage
|
|
13915
|
+
*/
|
|
13916
|
+
}, { key: "handleIframeMessage", value: function() {
|
|
13865
13917
|
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
13866
13918
|
var i, s, u, c, d, p, v, f, g, k, y;
|
|
13867
13919
|
return h().wrap(function(E) {
|
|
@@ -13943,7 +13995,7 @@ var JI = Object.defineProperty, KI = Object.getOwnPropertyDescriptor, Sc = funct
|
|
|
13943
13995
|
/**
|
|
13944
13996
|
* This method is used for cleaning up event listeners attached to an iframe. It must
|
|
13945
13997
|
* be used before the iframe is removed from the DOM.
|
|
13946
|
-
* @param viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
13998
|
+
* @param {string} viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
13947
13999
|
*/
|
|
13948
14000
|
}, {
|
|
13949
14001
|
key: "removePluginView",
|
|
@@ -13954,48 +14006,54 @@ var JI = Object.defineProperty, KI = Object.getOwnPropertyDescriptor, Sc = funct
|
|
|
13954
14006
|
/**
|
|
13955
14007
|
* This method adds the communcation layer between the plugin inside the iframe
|
|
13956
14008
|
* and the core application (meeting object) in the main window.
|
|
13957
|
-
* @param iframe Iframe element to display this plugin.
|
|
13958
|
-
* @param viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
14009
|
+
* @param {(HTMLIFrameElement|ReactNativeWebView)} iframe Iframe element to display this plugin.
|
|
14010
|
+
* @param {string} viewId ID of the view corresponding to this iframe. Default is 'default'.
|
|
13959
14011
|
*/
|
|
13960
|
-
}, {
|
|
13961
|
-
|
|
13962
|
-
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
u.
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
|
|
13976
|
-
|
|
13977
|
-
|
|
13978
|
-
|
|
13979
|
-
|
|
13980
|
-
|
|
13981
|
-
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
|
|
13986
|
-
|
|
13987
|
-
|
|
13988
|
-
|
|
13989
|
-
|
|
13990
|
-
|
|
13991
|
-
|
|
13992
|
-
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
14012
|
+
}, {
|
|
14013
|
+
key: "addPluginView",
|
|
14014
|
+
value: function(r) {
|
|
14015
|
+
var n, a = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default";
|
|
14016
|
+
if (!l(this, ii)[ii])
|
|
14017
|
+
throw this.logger.error("Plugin::addPluginView::no_auth_token_set_for_plugin"), new j("No auth token set for plugin.", "0602");
|
|
14018
|
+
if (!r)
|
|
14019
|
+
throw this.logger.error("Plugin::addPluginView::iframe_was_not_provided"), new j("Iframe was not provided.", "0603");
|
|
14020
|
+
this.removePluginView(i);
|
|
14021
|
+
var s = r, u = new URL(this.baseURL), c = { auth: l(this, ii)[ii], parent: navigator.isReactNative ? this.baseURL : window.location.origin, backend: l(this, hn)[hn].getValue("apiBase"), pluginId: this.id, roomName: (n = l(this, hn)[hn].getValue("meetingId")) !== null && n !== void 0 ? n : "", displayTitle: l(this, si)[si] };
|
|
14022
|
+
if (Object.keys(c).forEach(function(p) {
|
|
14023
|
+
u.searchParams.set(p, c[p]);
|
|
14024
|
+
}), s.src = u.href, s.allow = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", s.title = i, navigator.isReactNative)
|
|
14025
|
+
s.props.onMessage = function(p) {
|
|
14026
|
+
a.handleIframeMessage(JSON.parse(p.nativeEvent.data));
|
|
14027
|
+
}, this.iframes.set(i, { iframe: s });
|
|
14028
|
+
else {
|
|
14029
|
+
var d = /* @__PURE__ */ function() {
|
|
14030
|
+
var p = m(/* @__PURE__ */ h().mark(function v(f) {
|
|
14031
|
+
return h().wrap(function(k) {
|
|
14032
|
+
for (; ; )
|
|
14033
|
+
switch (k.prev = k.next) {
|
|
14034
|
+
case 0:
|
|
14035
|
+
if (f.source !== r.contentWindow) {
|
|
14036
|
+
k.next = 3;
|
|
14037
|
+
break;
|
|
14038
|
+
}
|
|
14039
|
+
return k.next = 3, a.handleIframeMessage(f.data);
|
|
14040
|
+
case 3:
|
|
14041
|
+
case "end":
|
|
14042
|
+
return k.stop();
|
|
14043
|
+
}
|
|
14044
|
+
}, v);
|
|
14045
|
+
}));
|
|
14046
|
+
return function(f) {
|
|
14047
|
+
return p.apply(this, arguments);
|
|
14048
|
+
};
|
|
14049
|
+
}();
|
|
14050
|
+
window.addEventListener("message", d), this.iframes.set(i, { iframe: s, listener: d });
|
|
14051
|
+
}
|
|
13997
14052
|
}
|
|
13998
|
-
|
|
14053
|
+
/**
|
|
14054
|
+
* @param {boolean} active
|
|
14055
|
+
*/
|
|
14056
|
+
}, {
|
|
13999
14057
|
key: "setActive",
|
|
14000
14058
|
value: function(r) {
|
|
14001
14059
|
var n;
|
|
@@ -14213,9 +14271,14 @@ var De = /* @__PURE__ */ C("eventEmitter"), va = /* @__PURE__ */ C("listeners"),
|
|
|
14213
14271
|
for (var a = n > 1 ? void 0 : n ? YI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
14214
14272
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
14215
14273
|
return n && a && zI(e, r, a), a;
|
|
14216
|
-
}, Ud = /* @__PURE__ */ P(
|
|
14217
|
-
|
|
14218
|
-
}
|
|
14274
|
+
}, Ud = /* @__PURE__ */ P(
|
|
14275
|
+
/**
|
|
14276
|
+
* @param {Logger} logger
|
|
14277
|
+
*/
|
|
14278
|
+
function o(t) {
|
|
14279
|
+
w(this, o), this.all = void 0, this.active = void 0, this.all = new hv(t), this.active = new hv(t);
|
|
14280
|
+
}
|
|
14281
|
+
);
|
|
14219
14282
|
Ud = QI([ft("0600")], Ud);
|
|
14220
14283
|
var XI = Object.defineProperty, ZI = Object.getOwnPropertyDescriptor, Ec = function(t, e, r, n) {
|
|
14221
14284
|
for (var a = n > 1 ? void 0 : n ? ZI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
@@ -17571,9 +17634,16 @@ var FM = ol, mv = Un(Np()), Rr = /* @__PURE__ */ C("config"), ba = /* @__PURE__
|
|
|
17571
17634
|
return new o(e);
|
|
17572
17635
|
}
|
|
17573
17636
|
/** @deprecated. Use init() */
|
|
17574
|
-
}, {
|
|
17575
|
-
|
|
17576
|
-
|
|
17637
|
+
}, {
|
|
17638
|
+
key: "default",
|
|
17639
|
+
value: function() {
|
|
17640
|
+
return new o(mv);
|
|
17641
|
+
}
|
|
17642
|
+
/**
|
|
17643
|
+
* @param {PresetV2CamelCased} [preset]
|
|
17644
|
+
* @param {boolean} [useDefault=true]
|
|
17645
|
+
*/
|
|
17646
|
+
}, { key: "init", value: function(e) {
|
|
17577
17647
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
17578
17648
|
return !e || r ? new o(mv) : new o(e);
|
|
17579
17649
|
} }]);
|
|
@@ -17984,15 +18054,26 @@ var KM = Object.defineProperty, zM = Object.getOwnPropertyDescriptor, ul = funct
|
|
|
17984
18054
|
*/
|
|
17985
18055
|
}, { key: "getAll", value: function() {
|
|
17986
18056
|
return l(this, ir)[ir];
|
|
17987
|
-
} }, {
|
|
17988
|
-
|
|
17989
|
-
|
|
18057
|
+
} }, {
|
|
18058
|
+
key: "rateLimits",
|
|
18059
|
+
get: function() {
|
|
18060
|
+
return this.rateLimitConfig;
|
|
18061
|
+
}
|
|
18062
|
+
/**
|
|
18063
|
+
* @param {number} num
|
|
18064
|
+
* @param {number} period
|
|
18065
|
+
*/
|
|
18066
|
+
}, { key: "updateRateLimits", value: function(e, r) {
|
|
17990
18067
|
this.rateLimitConfig.maxInvocations = e, this.rateLimitConfig.period = r;
|
|
17991
18068
|
} }, {
|
|
17992
18069
|
key: "bulkRateLimits",
|
|
17993
18070
|
get: function() {
|
|
17994
18071
|
return this.bulkRateLimitConfig;
|
|
17995
18072
|
}
|
|
18073
|
+
/**
|
|
18074
|
+
* @param {number} num
|
|
18075
|
+
* @param {number} period
|
|
18076
|
+
*/
|
|
17996
18077
|
// eslint-disable-next-line class-methods-use-this
|
|
17997
18078
|
}, {
|
|
17998
18079
|
key: "updateBulkRateLimits",
|
|
@@ -18016,21 +18097,27 @@ var KM = Object.defineProperty, zM = Object.getOwnPropertyDescriptor, ul = funct
|
|
|
18016
18097
|
this.listeners[e] = [r];
|
|
18017
18098
|
}
|
|
18018
18099
|
/**
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
*
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
}, {
|
|
18025
|
-
|
|
18026
|
-
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18100
|
+
* @description Removes all listeners for a key on the store.
|
|
18101
|
+
* @param {string} key - Unique identifier used to store value.
|
|
18102
|
+
* @param {Function} [cb] - Callback to be removed.
|
|
18103
|
+
* @returns {void} void
|
|
18104
|
+
*/
|
|
18105
|
+
}, {
|
|
18106
|
+
key: "unsubscribe",
|
|
18107
|
+
value: function(e, r) {
|
|
18108
|
+
if (r) {
|
|
18109
|
+
var n;
|
|
18110
|
+
this.listeners[e] = ((n = this.listeners[e]) === null || n === void 0 ? void 0 : n.filter(function(a) {
|
|
18111
|
+
return a !== r;
|
|
18112
|
+
})) || [];
|
|
18113
|
+
return;
|
|
18114
|
+
}
|
|
18115
|
+
this.listeners[e] && delete this.listeners[e];
|
|
18031
18116
|
}
|
|
18032
|
-
|
|
18033
|
-
|
|
18117
|
+
/**
|
|
18118
|
+
* @param {StoreData} data
|
|
18119
|
+
*/
|
|
18120
|
+
}, { key: "populate", value: function(e) {
|
|
18034
18121
|
l(this, ir)[ir] = e;
|
|
18035
18122
|
} }]);
|
|
18036
18123
|
}();
|
|
@@ -18181,13 +18268,27 @@ var xM = Object.defineProperty, e_ = Object.getOwnPropertyDescriptor, Go = funct
|
|
|
18181
18268
|
function() {
|
|
18182
18269
|
return l(this, Nr)[Nr].getValue("telemetry");
|
|
18183
18270
|
}
|
|
18184
|
-
) }, {
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
18188
|
-
|
|
18189
|
-
|
|
18190
|
-
|
|
18271
|
+
) }, {
|
|
18272
|
+
key: "setVideoEnabled",
|
|
18273
|
+
value: function(r) {
|
|
18274
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
18275
|
+
this.videoEnabled = r, n && (this.logger.info("Participant::setVideoEnabled::videoUpdate", N({}, Is(this))), this.emit("videoUpdate", { videoEnabled: this.videoEnabled, videoTrack: this.videoTrack }));
|
|
18276
|
+
}
|
|
18277
|
+
/**
|
|
18278
|
+
* @param {boolean} audioEnabled
|
|
18279
|
+
* @param {boolean} [emitEvent=true]
|
|
18280
|
+
*/
|
|
18281
|
+
}, {
|
|
18282
|
+
key: "setAudioEnabled",
|
|
18283
|
+
value: function(r) {
|
|
18284
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
18285
|
+
this.audioEnabled = r, n && (this.logger.info("Participant::setAudioEnabled::audioUpdate", N({}, Is(this))), this.emit("audioUpdate", { audioEnabled: this.audioEnabled, audioTrack: this.audioTrack }));
|
|
18286
|
+
}
|
|
18287
|
+
/**
|
|
18288
|
+
* @param {boolean} screenShareEnabled
|
|
18289
|
+
* @param {boolean} [emitEvent=true]
|
|
18290
|
+
*/
|
|
18291
|
+
}, { key: "setScreenShareEnabled", value: function(r) {
|
|
18191
18292
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
18192
18293
|
this.screenShareEnabled = r, n && this.emit("screenShareUpdate", { screenShareEnabled: this.screenShareEnabled, screenShareTracks: this.screenShareTracks });
|
|
18193
18294
|
} }, {
|
|
@@ -18354,24 +18455,30 @@ var xM = Object.defineProperty, e_ = Object.getOwnPropertyDescriptor, Go = funct
|
|
|
18354
18455
|
return e.apply(this, arguments);
|
|
18355
18456
|
}
|
|
18356
18457
|
return r;
|
|
18357
|
-
}() }, { key: "getPermissions", value: function() {
|
|
18358
|
-
var e = m(/* @__PURE__ */ h().mark(function n() {
|
|
18359
|
-
return h().wrap(function(i) {
|
|
18360
|
-
for (; ; )
|
|
18361
|
-
switch (i.prev = i.next) {
|
|
18362
|
-
case 0:
|
|
18363
|
-
return i.abrupt("return", l(this, co)[co].getUserPermissions(this.userId));
|
|
18364
|
-
case 1:
|
|
18365
|
-
case "end":
|
|
18366
|
-
return i.stop();
|
|
18367
|
-
}
|
|
18368
|
-
}, n, this);
|
|
18369
|
-
}));
|
|
18370
|
-
function r() {
|
|
18371
|
-
return e.apply(this, arguments);
|
|
18372
|
-
}
|
|
18373
|
-
return r;
|
|
18374
18458
|
}() }, {
|
|
18459
|
+
key: "getPermissions",
|
|
18460
|
+
value: function() {
|
|
18461
|
+
var e = m(/* @__PURE__ */ h().mark(function n() {
|
|
18462
|
+
return h().wrap(function(i) {
|
|
18463
|
+
for (; ; )
|
|
18464
|
+
switch (i.prev = i.next) {
|
|
18465
|
+
case 0:
|
|
18466
|
+
return i.abrupt("return", l(this, co)[co].getUserPermissions(this.userId));
|
|
18467
|
+
case 1:
|
|
18468
|
+
case "end":
|
|
18469
|
+
return i.stop();
|
|
18470
|
+
}
|
|
18471
|
+
}, n, this);
|
|
18472
|
+
}));
|
|
18473
|
+
function r() {
|
|
18474
|
+
return e.apply(this, arguments);
|
|
18475
|
+
}
|
|
18476
|
+
return r;
|
|
18477
|
+
}()
|
|
18478
|
+
/**
|
|
18479
|
+
* @param {StageStatus} stageStatus
|
|
18480
|
+
*/
|
|
18481
|
+
}, {
|
|
18375
18482
|
key: "setStageStatus",
|
|
18376
18483
|
value: function(r) {
|
|
18377
18484
|
l(this, pi)[pi] = r, this.emit("stageStatusUpdate", this);
|
|
@@ -18381,15 +18488,26 @@ var xM = Object.defineProperty, e_ = Object.getOwnPropertyDescriptor, Go = funct
|
|
|
18381
18488
|
*/
|
|
18382
18489
|
}, { key: "isPinned", get: function() {
|
|
18383
18490
|
return l(this, di)[di];
|
|
18384
|
-
} }, {
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18491
|
+
} }, {
|
|
18492
|
+
key: "registerVideoElement",
|
|
18493
|
+
value: (
|
|
18494
|
+
/**
|
|
18495
|
+
* @param {HTMLVideoElement} videoElem
|
|
18496
|
+
*/
|
|
18497
|
+
function(r) {
|
|
18498
|
+
var n, a = this, i, s;
|
|
18499
|
+
if (r) {
|
|
18500
|
+
var u;
|
|
18501
|
+
(n = l(this, gn)[gn].get(r)) === null || n === void 0 || (n = n.observer) === null || n === void 0 || n.disconnect(), "ResizeObserver" in window && (u = new ResizeObserver(function() {
|
|
18502
|
+
return l(a, vl)[vl](r);
|
|
18503
|
+
}), u.observe(r)), l(this, gn)[gn].set(r, { observer: u }), this.updateVideo(r), (i = l(this, Zn)[Zn]) === null || i === void 0 || i.addSource(this.id, r, this.videoEnabled, this.isPinned, this.name, this.picture, (s = this.raised) !== null && s !== void 0 ? s : !1);
|
|
18504
|
+
}
|
|
18505
|
+
}
|
|
18506
|
+
)
|
|
18507
|
+
/**
|
|
18508
|
+
* @param {HTMLVideoElement} [videoElem]
|
|
18509
|
+
*/
|
|
18510
|
+
}, { key: "deregisterVideoElement", value: function(r) {
|
|
18393
18511
|
var n, a;
|
|
18394
18512
|
if (!r) {
|
|
18395
18513
|
var i;
|
|
@@ -18400,6 +18518,7 @@ var xM = Object.defineProperty, e_ = Object.getOwnPropertyDescriptor, Go = funct
|
|
|
18400
18518
|
} }, { key: "updateVideo", value: (
|
|
18401
18519
|
/**
|
|
18402
18520
|
* Internal method, do not use
|
|
18521
|
+
* @param {HTMLVideoElement} e
|
|
18403
18522
|
*/
|
|
18404
18523
|
function(r) {
|
|
18405
18524
|
if (this.videoEnabled) {
|
|
@@ -18465,13 +18584,28 @@ var lu = /* @__PURE__ */ function(o) {
|
|
|
18465
18584
|
var n = r != null ? r : {}, a = n.onAddEvent, i = a === void 0 ? "participantJoined" : a, s = n.onDeleteEvent, u = s === void 0 ? "participantLeft" : s, c = n.onClearEvent, d = c === void 0 ? "participantsCleared" : c;
|
|
18466
18585
|
return R(this, t, [{ onAddEvent: i, onDeleteEvent: u, onClearEvent: d }, e]);
|
|
18467
18586
|
}
|
|
18468
|
-
return A(t, o), P(t, [{
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18587
|
+
return A(t, o), P(t, [{
|
|
18588
|
+
key: "add",
|
|
18589
|
+
value: function(r) {
|
|
18590
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
18591
|
+
return this.has(r.id) && Object.is(this.get(r.id), r) === !1 && this.delete(r.id), Ce(t, "add", this, 3)([r, n]);
|
|
18592
|
+
}
|
|
18593
|
+
/**
|
|
18594
|
+
* @param {boolean} [emitEvent=true]
|
|
18595
|
+
* @param {boolean} [removeListeners=false]
|
|
18596
|
+
*/
|
|
18597
|
+
}, {
|
|
18598
|
+
key: "clear",
|
|
18599
|
+
value: function() {
|
|
18600
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
18601
|
+
return Ce(t, "clear", this, 3)([r, n]);
|
|
18602
|
+
}
|
|
18603
|
+
/**
|
|
18604
|
+
* @param {string} participantId
|
|
18605
|
+
* @param {boolean} [emitEvent=true]
|
|
18606
|
+
* @param {boolean} [removeListeners=false]
|
|
18607
|
+
*/
|
|
18608
|
+
}, { key: "delete", value: function(r) {
|
|
18475
18609
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
18476
18610
|
return Ce(t, "delete", this, 3)([r, n, a]);
|
|
18477
18611
|
} }]);
|
|
@@ -18615,7 +18749,7 @@ var lu = /* @__PURE__ */ function(o) {
|
|
|
18615
18749
|
* Updates the maximum number of participants that are populated in
|
|
18616
18750
|
* the active map.
|
|
18617
18751
|
*
|
|
18618
|
-
* @param limit
|
|
18752
|
+
* @param {number} limit Updated max limit
|
|
18619
18753
|
*/
|
|
18620
18754
|
}, {
|
|
18621
18755
|
key: "setMaxActiveParticipantsCount",
|
|
@@ -18642,7 +18776,7 @@ var lu = /* @__PURE__ */ function(o) {
|
|
|
18642
18776
|
/**
|
|
18643
18777
|
* Accepts requests from waitlisted participants if user
|
|
18644
18778
|
* has appropriate permissions.
|
|
18645
|
-
* @param id peerId or userId of the waitlisted participant.
|
|
18779
|
+
* @param {string} id peerId or userId of the waitlisted participant.
|
|
18646
18780
|
*/
|
|
18647
18781
|
}, {
|
|
18648
18782
|
key: "acceptWaitingRoomRequest",
|
|
@@ -18657,6 +18791,7 @@ var lu = /* @__PURE__ */ function(o) {
|
|
|
18657
18791
|
* We need a new event for socket service events
|
|
18658
18792
|
* since if we send them all together, sequence of events
|
|
18659
18793
|
* can be unreliable
|
|
18794
|
+
* @param {string[]} userIds
|
|
18660
18795
|
*/
|
|
18661
18796
|
}, { key: "acceptAllWaitingRoomRequest", value: function() {
|
|
18662
18797
|
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
@@ -18703,39 +18838,46 @@ var lu = /* @__PURE__ */ function(o) {
|
|
|
18703
18838
|
return e.apply(this, arguments);
|
|
18704
18839
|
}
|
|
18705
18840
|
return r;
|
|
18706
|
-
}() }, {
|
|
18707
|
-
|
|
18708
|
-
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18726
|
-
|
|
18727
|
-
|
|
18728
|
-
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
|
|
18732
|
-
|
|
18733
|
-
|
|
18734
|
-
|
|
18735
|
-
|
|
18736
|
-
|
|
18737
|
-
|
|
18738
|
-
|
|
18841
|
+
}() }, {
|
|
18842
|
+
key: "setViewMode",
|
|
18843
|
+
value: function() {
|
|
18844
|
+
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
18845
|
+
var i;
|
|
18846
|
+
return h().wrap(function(u) {
|
|
18847
|
+
for (; ; )
|
|
18848
|
+
switch (u.prev = u.next) {
|
|
18849
|
+
case 0:
|
|
18850
|
+
if (this.logger.info("Participants::set_view_mode", { pageNavigation: { viewMode: a, currentPage: this.currentPage, pageCount: this.pageCount, maxActiveParticipantsCount: this.maxActiveParticipantsCount } }), i = function(d) {
|
|
18851
|
+
return g_.includes(d);
|
|
18852
|
+
}, i(a)) {
|
|
18853
|
+
u.next = 5;
|
|
18854
|
+
break;
|
|
18855
|
+
}
|
|
18856
|
+
throw this.logger.error("Participants::setViewMode::invalid_view_mode", { pageNavigation: { viewMode: a, currentPage: this.currentPage, pageCount: this.pageCount, maxActiveParticipantsCount: this.maxActiveParticipantsCount } }), new j("Invalid view mode: ".concat(a, ". Try ACTIVE_GRID, PAGINATED or MANUAL."), "1207");
|
|
18857
|
+
case 5:
|
|
18858
|
+
if (this.viewMode !== a) {
|
|
18859
|
+
u.next = 8;
|
|
18860
|
+
break;
|
|
18861
|
+
}
|
|
18862
|
+
return this.logger.info("Participants::setViewMode::view_mode_same_as_previous"), u.abrupt("return");
|
|
18863
|
+
case 8:
|
|
18864
|
+
this.viewMode = a, a === "PAGINATED" ? (this.currentPage = 1, l(this, ye)[ye].getValue("peerSessionStore").emit(F.UPDATE_ACTIVE, { viewMode: a, page: this.currentPage })) : a === "ACTIVE_GRID" ? (this.currentPage = 0, l(this, ye)[ye].getValue("peerSessionStore").emit(F.UPDATE_ACTIVE, { viewMode: a, page: this.currentPage })) : a === "MANUAL" && (this.currentPage = 0, l(this, ye)[ye].getValue("peerSessionStore").emit(F.UPDATE_ACTIVE, { viewMode: a, page: this.currentPage })), this.emit("viewModeChanged", { viewMode: a, currentPage: this.currentPage, pageCount: this.pageCount });
|
|
18865
|
+
case 11:
|
|
18866
|
+
case "end":
|
|
18867
|
+
return u.stop();
|
|
18868
|
+
}
|
|
18869
|
+
}, n, this);
|
|
18870
|
+
}));
|
|
18871
|
+
function r(n) {
|
|
18872
|
+
return e.apply(this, arguments);
|
|
18873
|
+
}
|
|
18874
|
+
return r;
|
|
18875
|
+
}()
|
|
18876
|
+
/**
|
|
18877
|
+
* @param {string[]} peerIds
|
|
18878
|
+
* @param {Array.<('audio'|'video'|'screenshareAudio'|'screenshareVideo')>} [kinds]
|
|
18879
|
+
*/
|
|
18880
|
+
}, { key: "subscribe", value: function() {
|
|
18739
18881
|
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
18740
18882
|
var i = this, s, u = arguments;
|
|
18741
18883
|
return h().wrap(function(d) {
|
|
@@ -19023,27 +19165,34 @@ var lu = /* @__PURE__ */ function(o) {
|
|
|
19023
19165
|
return e.apply(this, arguments);
|
|
19024
19166
|
}
|
|
19025
19167
|
return r;
|
|
19026
|
-
}() }, {
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
|
-
|
|
19035
|
-
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19046
|
-
|
|
19168
|
+
}() }, {
|
|
19169
|
+
key: "getAllJoinedPeers",
|
|
19170
|
+
value: function() {
|
|
19171
|
+
var e = m(/* @__PURE__ */ h().mark(function n(a, i, s) {
|
|
19172
|
+
var u;
|
|
19173
|
+
return h().wrap(function(d) {
|
|
19174
|
+
for (; ; )
|
|
19175
|
+
switch (d.prev = d.next) {
|
|
19176
|
+
case 0:
|
|
19177
|
+
return d.next = 2, l(this, wr)[wr].getRoomPeers(a, i, s);
|
|
19178
|
+
case 2:
|
|
19179
|
+
return u = d.sent, d.abrupt("return", u.peers.map(Ya.formatSocketPeerMessage));
|
|
19180
|
+
case 4:
|
|
19181
|
+
case "end":
|
|
19182
|
+
return d.stop();
|
|
19183
|
+
}
|
|
19184
|
+
}, n, this);
|
|
19185
|
+
}));
|
|
19186
|
+
function r(n, a, i) {
|
|
19187
|
+
return e.apply(this, arguments);
|
|
19188
|
+
}
|
|
19189
|
+
return r;
|
|
19190
|
+
}()
|
|
19191
|
+
/**
|
|
19192
|
+
* @param {string[]} participantIds
|
|
19193
|
+
* @param {PresetUpdates} permissions
|
|
19194
|
+
*/
|
|
19195
|
+
}, { key: "updatePermissions", value: function() {
|
|
19047
19196
|
var e = m(/* @__PURE__ */ h().mark(function n(a, i) {
|
|
19048
19197
|
var s, u;
|
|
19049
19198
|
return h().wrap(function(d) {
|
|
@@ -20427,10 +20576,21 @@ var jr = /* @__PURE__ */ C("context"), Ag = /* @__PURE__ */ function(o) {
|
|
|
20427
20576
|
return e.apply(this, arguments);
|
|
20428
20577
|
}
|
|
20429
20578
|
return r;
|
|
20430
|
-
}() }, {
|
|
20431
|
-
|
|
20432
|
-
|
|
20433
|
-
|
|
20579
|
+
}() }, {
|
|
20580
|
+
key: "peerId",
|
|
20581
|
+
get: function() {
|
|
20582
|
+
var r;
|
|
20583
|
+
return (r = l(this, jr)[jr]) === null || r === void 0 ? void 0 : r.getValue("peerId");
|
|
20584
|
+
}
|
|
20585
|
+
/**
|
|
20586
|
+
* @param {Object} options
|
|
20587
|
+
* @param {boolean} [options.video]
|
|
20588
|
+
* @param {boolean} [options.audio]
|
|
20589
|
+
* @param {MediaConstraints} [options.constraints]
|
|
20590
|
+
* @param {boolean} [skipAwaits=false]
|
|
20591
|
+
* @param {Context} [context=null]
|
|
20592
|
+
*/
|
|
20593
|
+
}, { key: "init", value: function() {
|
|
20434
20594
|
var e = m(/* @__PURE__ */ h().mark(function n() {
|
|
20435
20595
|
var a = this, i, s, u, c, d, p, v, f, g, k, y, b, E, T, S = arguments;
|
|
20436
20596
|
return h().wrap(function(I) {
|
|
@@ -20570,6 +20730,7 @@ var jr = /* @__PURE__ */ C("context"), Ag = /* @__PURE__ */ function(o) {
|
|
|
20570
20730
|
* If there are more than 1 audio middlewares,
|
|
20571
20731
|
* they will be executed in the sequence they were added in.
|
|
20572
20732
|
* If you want the sequence to be altered, please remove all previous middlewares and re-add.
|
|
20733
|
+
* @param {AudioMiddleware} audioMiddleware
|
|
20573
20734
|
*/
|
|
20574
20735
|
}, { key: "addAudioMiddleware", value: function() {
|
|
20575
20736
|
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
@@ -20640,6 +20801,7 @@ var jr = /* @__PURE__ */ C("context"), Ag = /* @__PURE__ */ function(o) {
|
|
|
20640
20801
|
* If there are more than 1 video middlewares,
|
|
20641
20802
|
* they will be executed in the sequence they were added in.
|
|
20642
20803
|
* If you want the sequence to be altered, please remove all previous middlewares and re-add.
|
|
20804
|
+
* @param {VideoMiddleware} videoMiddleware
|
|
20643
20805
|
*/
|
|
20644
20806
|
}, { key: "addVideoMiddleware", value: function() {
|
|
20645
20807
|
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
@@ -20930,7 +21092,8 @@ var jr = /* @__PURE__ */ C("context"), Ag = /* @__PURE__ */ function(o) {
|
|
|
20930
21092
|
}
|
|
20931
21093
|
/**
|
|
20932
21094
|
* Change the current media device that is being used by the local participant.
|
|
20933
|
-
* @param device The device that is to be used.
|
|
21095
|
+
* @param {MediaDeviceInfo} device The device that is to be used.
|
|
21096
|
+
* A device of the same `kind` will be replaced.
|
|
20934
21097
|
* the primary stream.
|
|
20935
21098
|
*/
|
|
20936
21099
|
}, { key: "setDevice", value: function() {
|
|
@@ -21207,7 +21370,7 @@ var jr = /* @__PURE__ */ C("context"), Ag = /* @__PURE__ */ function(o) {
|
|
|
21207
21370
|
* The name of the user can be set by calling this method.
|
|
21208
21371
|
* This will get reflected to other participants ONLY if
|
|
21209
21372
|
* this method is called before the room is joined.
|
|
21210
|
-
* @param name Name of the user.
|
|
21373
|
+
* @param {string} name Name of the user.
|
|
21211
21374
|
*/
|
|
21212
21375
|
function(r) {
|
|
21213
21376
|
if (!r)
|
|
@@ -29142,6 +29305,7 @@ var MD = /* @__PURE__ */ function() {
|
|
|
29142
29305
|
}()
|
|
29143
29306
|
/**
|
|
29144
29307
|
* create connected meetings
|
|
29308
|
+
* @param {Array.<{ title: string }>} request
|
|
29145
29309
|
*/
|
|
29146
29310
|
}, { key: "createMeetings", value: function() {
|
|
29147
29311
|
var e = m(/* @__PURE__ */ h().mark(function n(a) {
|
|
@@ -29732,59 +29896,68 @@ var Ma = /* @__PURE__ */ C("trackMap"), BD = /* @__PURE__ */ function(o) {
|
|
|
29732
29896
|
function o(t, e) {
|
|
29733
29897
|
w(this, o), Object.defineProperty(this, Ue, { writable: !0, value: void 0 }), Object.defineProperty(this, sa, { writable: !0, value: void 0 }), l(this, sa)[sa] = t, l(this, Ue)[Ue] = e;
|
|
29734
29898
|
}
|
|
29735
|
-
return P(o, [{
|
|
29736
|
-
|
|
29737
|
-
|
|
29738
|
-
|
|
29739
|
-
var n;
|
|
29740
|
-
return h().wrap(function(i) {
|
|
29741
|
-
for (; ; )
|
|
29742
|
-
switch (i.prev = i.next) {
|
|
29743
|
-
case 0:
|
|
29744
|
-
if (n = l(this, Ue)[Ue].selfController, !n.self.roomJoined) {
|
|
29745
|
-
i.next = 3;
|
|
29746
|
-
break;
|
|
29747
|
-
}
|
|
29748
|
-
return i.abrupt("return", null);
|
|
29749
|
-
case 3:
|
|
29750
|
-
return i.abrupt("return", n.joinRoom());
|
|
29751
|
-
case 4:
|
|
29752
|
-
case "end":
|
|
29753
|
-
return i.stop();
|
|
29754
|
-
}
|
|
29755
|
-
}, r, this);
|
|
29756
|
-
}));
|
|
29757
|
-
function e() {
|
|
29758
|
-
return t.apply(this, arguments);
|
|
29899
|
+
return P(o, [{
|
|
29900
|
+
key: "peerId",
|
|
29901
|
+
get: function() {
|
|
29902
|
+
return l(this, sa)[sa].getValue("peerId");
|
|
29759
29903
|
}
|
|
29760
|
-
|
|
29761
|
-
|
|
29762
|
-
|
|
29904
|
+
/**
|
|
29905
|
+
* @param {Object} [options]
|
|
29906
|
+
* @param {boolean} [options.video]
|
|
29907
|
+
* @param {boolean} [options.audio]
|
|
29908
|
+
* @param {MediaConstraints} [options.constraints]
|
|
29909
|
+
* @param {boolean} [skipAwaits=false]
|
|
29910
|
+
* @param {CachedUserDetails} [cachedUserDetails]
|
|
29911
|
+
*/
|
|
29912
|
+
}, {
|
|
29913
|
+
key: "join",
|
|
29763
29914
|
value: function() {
|
|
29764
|
-
var t = m(/* @__PURE__ */ h().mark(function r(
|
|
29765
|
-
var
|
|
29766
|
-
return h().wrap(function(
|
|
29915
|
+
var t = m(/* @__PURE__ */ h().mark(function r() {
|
|
29916
|
+
var n;
|
|
29917
|
+
return h().wrap(function(i) {
|
|
29767
29918
|
for (; ; )
|
|
29768
|
-
switch (
|
|
29919
|
+
switch (i.prev = i.next) {
|
|
29769
29920
|
case 0:
|
|
29770
|
-
|
|
29921
|
+
if (n = l(this, Ue)[Ue].selfController, !n.self.roomJoined) {
|
|
29922
|
+
i.next = 3;
|
|
29923
|
+
break;
|
|
29924
|
+
}
|
|
29925
|
+
return i.abrupt("return", null);
|
|
29926
|
+
case 3:
|
|
29927
|
+
return i.abrupt("return", n.joinRoom());
|
|
29771
29928
|
case 4:
|
|
29772
29929
|
case "end":
|
|
29773
|
-
return
|
|
29930
|
+
return i.stop();
|
|
29774
29931
|
}
|
|
29775
29932
|
}, r, this);
|
|
29776
29933
|
}));
|
|
29777
|
-
function e(
|
|
29934
|
+
function e() {
|
|
29778
29935
|
return t.apply(this, arguments);
|
|
29779
29936
|
}
|
|
29780
29937
|
return e;
|
|
29781
29938
|
}()
|
|
29782
29939
|
/**
|
|
29783
|
-
*
|
|
29784
|
-
* `waitlisted`, `joined`, `active`, `pinned`. The maps are indexed by
|
|
29785
|
-
* `peerId`s, and the values are the corresponding participant objects.
|
|
29940
|
+
* @param {LeaveRoomState} [state]
|
|
29786
29941
|
*/
|
|
29787
|
-
}, {
|
|
29942
|
+
}, { key: "leave", value: function() {
|
|
29943
|
+
var t = m(/* @__PURE__ */ h().mark(function r(n) {
|
|
29944
|
+
var a;
|
|
29945
|
+
return h().wrap(function(s) {
|
|
29946
|
+
for (; ; )
|
|
29947
|
+
switch (s.prev = s.next) {
|
|
29948
|
+
case 0:
|
|
29949
|
+
return Av.cleanup(), l(this, sa)[sa].getValue("peerSessionStore").reset(), a = l(this, Ue)[Ue].selfController, s.abrupt("return", a.leaveRoom(n));
|
|
29950
|
+
case 4:
|
|
29951
|
+
case "end":
|
|
29952
|
+
return s.stop();
|
|
29953
|
+
}
|
|
29954
|
+
}, r, this);
|
|
29955
|
+
}));
|
|
29956
|
+
function e(r) {
|
|
29957
|
+
return t.apply(this, arguments);
|
|
29958
|
+
}
|
|
29959
|
+
return e;
|
|
29960
|
+
}() }, {
|
|
29788
29961
|
key: "participants",
|
|
29789
29962
|
get: function() {
|
|
29790
29963
|
var e;
|
|
@@ -29949,28 +30122,37 @@ var Ma = /* @__PURE__ */ C("trackMap"), BD = /* @__PURE__ */ function(o) {
|
|
|
29949
30122
|
return t.apply(this, arguments);
|
|
29950
30123
|
}
|
|
29951
30124
|
return e;
|
|
29952
|
-
}() }, {
|
|
29953
|
-
|
|
29954
|
-
|
|
29955
|
-
|
|
29956
|
-
|
|
29957
|
-
|
|
29958
|
-
|
|
29959
|
-
|
|
30125
|
+
}() }, {
|
|
30126
|
+
key: "init",
|
|
30127
|
+
value: function() {
|
|
30128
|
+
var t = m(/* @__PURE__ */ h().mark(function r(n) {
|
|
30129
|
+
var a, i, s, u, c, d, p, v, f, g, k, y, b, E, T, S, D, I, _, V;
|
|
30130
|
+
return h().wrap(function($) {
|
|
30131
|
+
for (; ; )
|
|
30132
|
+
switch ($.prev = $.next) {
|
|
30133
|
+
case 0:
|
|
30134
|
+
return br.init(), v = (a = n.defaults) !== null && a !== void 0 ? a : {}, f = v.mediaHandler, g = (f == null ? void 0 : f.peerId) || ((i = n == null || (s = n.cachedUserDetails) === null || s === void 0 ? void 0 : s.peerId) !== null && i !== void 0 ? i : Ks()), k = n.authToken, y = n.baseURI, b = jD(k, y), E = b.meetingId, T = cc(b, rm), window.__zone_symbol__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION = !0, S = Oi.setupContext(g, n, E, T), D = S.getValue("telemetry"), I = S.getValue("logger"), bm(I), Av.init(I), D.init(S, { roomName: E, userId: T.participantId, organizationId: T.orgId, peerId: g }, (u = (c = n.modules) === null || c === void 0 ? void 0 : c.tracing) !== null && u !== void 0 ? u : !0), I.init(S), I.info("Client::init::options", { clientInitOptions: N(N({}, n), {}, { authToken: "".concat((d = n.authToken) === null || d === void 0 ? void 0 : d.slice(0, 10), `...
|
|
29960
30135
|
`).concat((p = n.authToken) === null || p === void 0 ? void 0 : p.slice(-10)) }) }), $.next = 16, dl.init(S);
|
|
29961
|
-
|
|
29962
|
-
|
|
29963
|
-
|
|
29964
|
-
|
|
29965
|
-
|
|
29966
|
-
|
|
29967
|
-
|
|
29968
|
-
|
|
29969
|
-
|
|
29970
|
-
|
|
29971
|
-
|
|
29972
|
-
|
|
29973
|
-
|
|
30136
|
+
case 16:
|
|
30137
|
+
return _ = $.sent, V = new Oi(S, _), S.setValue("meeting", V), $.abrupt("return", V);
|
|
30138
|
+
case 20:
|
|
30139
|
+
case "end":
|
|
30140
|
+
return $.stop();
|
|
30141
|
+
}
|
|
30142
|
+
}, r);
|
|
30143
|
+
}));
|
|
30144
|
+
function e(r) {
|
|
30145
|
+
return t.apply(this, arguments);
|
|
30146
|
+
}
|
|
30147
|
+
return e;
|
|
30148
|
+
}()
|
|
30149
|
+
/**
|
|
30150
|
+
* @param {string} peerId
|
|
30151
|
+
* @param {ClientOptions} options
|
|
30152
|
+
* @param {string} meetingId
|
|
30153
|
+
* @param {any} args
|
|
30154
|
+
*/
|
|
30155
|
+
}, { key: "setupContext", value: function(e, r, n, a) {
|
|
29974
30156
|
var i, s, u = Ba.createContext(e, r), c = N(N({}, TP), r == null ? void 0 : r.modules), d = r.defaults || { audio: !0, video: !0 };
|
|
29975
30157
|
return u.setValue("options", r), u.setValue("peerId", e), u.setValue("modules", c), u.setValue("sdkName", "web-core"), u.setValue("meetingId", n), u.setValue("apiBase", a.apiBase), u.setValue("baseURI", a.baseURI), u.setValue("userId", a.participantId), u.setValue("organizationId", a.orgId), u.setValue("authToken", r.authToken), u.setValue("overrides", (i = r.overrides) !== null && i !== void 0 ? i : {}), u.setValue("env", wP({ baseURI: a.baseURI })), u.setValue("defaults", d), u.setValue("onError", r.onError || function() {
|
|
29976
30158
|
}), u.setValue("cachedUserDetails", Un(r.cachedUserDetails)), u.setValue("sdkVersion", "VERSION_PLACEHOLDER"), (s = r.modules) !== null && s !== void 0 && s.experimentalAudioPlayback && u.setValue("audioPlayback", new BD()), u;
|