@beterdichtbij/component-library 0.73.1 → 0.73.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.
|
@@ -32182,9 +32182,9 @@ var ZX = /*#__PURE__*/ L(JX, [["render", XX]]), QX = { class: "video-call-templa
|
|
|
32182
32182
|
call: null
|
|
32183
32183
|
}), ce = j(null), le = j(null), ue = j(null), de = j(null), fe = j(0), pe = j(0), me = j(null), he = j(!1), ge = j(""), _e = j(""), ve = j(null), ye = j(null), be = j(!0), xe = j(!1), Ce = j(!1), we = null, Te = null, Ee = null, De = a(() => {
|
|
32184
32184
|
switch (fe.value) {
|
|
32185
|
-
case 0: return
|
|
32186
|
-
case 1: return
|
|
32187
|
-
default: return
|
|
32185
|
+
case 0: return Re.value.hasNoAvailableCamera;
|
|
32186
|
+
case 1: return Re.value.hasOneAvailableCamera;
|
|
32187
|
+
default: return Re.value.hasMultipleAvailableCameras;
|
|
32188
32188
|
}
|
|
32189
32189
|
}), Oe = a(() => {
|
|
32190
32190
|
let e = navigator.userAgent;
|
|
@@ -32192,187 +32192,185 @@ var ZX = /*#__PURE__*/ L(JX, [["render", XX]]), QX = { class: "video-call-templa
|
|
|
32192
32192
|
}), ke = a(() => {
|
|
32193
32193
|
let e = navigator.userAgent, t = e.indexOf("Android") !== -1, n = /Mobi/.test(e), r = /iPad|iPhone|iPod/.test(e) && !window.MSStream;
|
|
32194
32194
|
return !(t && n || r);
|
|
32195
|
-
}), Ae = a(() => !ae.value?.video &&
|
|
32196
|
-
a(() => {
|
|
32195
|
+
}), Ae = a(() => !ae.value?.video && Ke.value), je = a(() => !ae.value?.audio && Ke.value), Me = a(() => oe.value === i.Declined ? "incoming--declined" : "incoming--loading"), Ne = a(() => {
|
|
32197
32196
|
switch (ne.value) {
|
|
32198
32197
|
case 0: return "weak";
|
|
32199
32198
|
case 1: return "steady";
|
|
32200
32199
|
case 2: return "strong";
|
|
32201
32200
|
default: return null;
|
|
32202
32201
|
}
|
|
32203
|
-
}), a(() => {
|
|
32202
|
+
}), Pe = a(() => {
|
|
32204
32203
|
switch (ne.value) {
|
|
32205
32204
|
case 0: return E.value.signalStrength.weak;
|
|
32206
32205
|
case 1: return E.value.signalStrength.steady;
|
|
32207
32206
|
case 2: return E.value.signalStrength.strong;
|
|
32208
32207
|
default: return null;
|
|
32209
32208
|
}
|
|
32210
|
-
});
|
|
32211
|
-
|
|
32212
|
-
function Ze(e) {
|
|
32209
|
+
}), L = a(() => E.value.videoCallTemplate || E.value), Fe = a(() => L.value.actions || L.value), Ie = a(() => L.value.help || L.value), Le = a(() => L.value.permissions || L.value), Re = a(() => L.value.cameraAvailability || L.value), ze = a(() => D.value ? Fe.value.stopSharingScreen : Fe.value.shareScreen), Be = a(() => Ie.value.placeholderSettingsHelpTitle), Ve = a(() => Ie.value.placeholderSettingsHelpMessage), He = a(() => oe.value === i.Declined), Ue = a(() => oe.value === i.HangedUp), We = a(() => oe.value === i.Connected), Ge = a(() => !We.value), Ke = a(() => oe.value === i.DevicePermissionDenied), qe = a(() => L.value.statusTextMessage || L.value), Je = a(() => L.value.statusDetailMessage || L.value), Ye = a(() => b.participantRole), Xe = a(() => Ce.value ? Fe.value.microphoneUnmute : Fe.value.microphoneMute), Ze = a(() => xe.value ? Fe.value.cameraOn : Fe.value.cameraOff), Qe = a(() => be.value ? Fe.value.backgroundBlur : Fe.value.backgroundUnblur);
|
|
32210
|
+
function $e(e) {
|
|
32213
32211
|
if (typeof e != "string") return e;
|
|
32214
|
-
let t = e.replaceAll("{participantRole}",
|
|
32212
|
+
let t = e.replaceAll("{participantRole}", Ye.value);
|
|
32215
32213
|
return t && t.charAt(0).toLocaleUpperCase() + t.slice(1);
|
|
32216
32214
|
}
|
|
32217
|
-
let
|
|
32215
|
+
let et = a(() => {
|
|
32218
32216
|
switch (oe.value) {
|
|
32219
|
-
case i.Initializing: return
|
|
32220
|
-
case i.Dialing: return
|
|
32221
|
-
case i.Ringing: return
|
|
32222
|
-
case i.Answered: return
|
|
32223
|
-
case i.Connected: return
|
|
32224
|
-
case i.Declined: return
|
|
32225
|
-
case i.HangedUp: return
|
|
32226
|
-
case i.DevicePermissionDenied: return
|
|
32227
|
-
}
|
|
32228
|
-
}),
|
|
32217
|
+
case i.Initializing: return $e(qe.value.initializing);
|
|
32218
|
+
case i.Dialing: return $e(qe.value.dialing);
|
|
32219
|
+
case i.Ringing: return $e(qe.value.ringing);
|
|
32220
|
+
case i.Answered: return $e(qe.value.answered);
|
|
32221
|
+
case i.Connected: return $e(qe.value.connected);
|
|
32222
|
+
case i.Declined: return $e(qe.value.videoCallDeclined);
|
|
32223
|
+
case i.HangedUp: return $e(qe.value.videoCallHangedUp);
|
|
32224
|
+
case i.DevicePermissionDenied: return $e(qe.value.devicePermissionDenied);
|
|
32225
|
+
}
|
|
32226
|
+
}), tt = a(() => ge.value || et.value), nt = a(() => _e.value), rt = a(() => ee.value ? ".incoming__screenshare" : ".incoming__video");
|
|
32229
32227
|
te(() => {
|
|
32230
|
-
|
|
32228
|
+
Ut(), at(), ye.value = window.setInterval(vt, 5e3);
|
|
32231
32229
|
}), re(() => {
|
|
32232
|
-
me.value && window.clearInterval(me.value), ye.value && window.clearInterval(ye.value),
|
|
32230
|
+
me.value && window.clearInterval(me.value), ye.value && window.clearInterval(ye.value), it(), Vt();
|
|
32233
32231
|
});
|
|
32234
|
-
function
|
|
32232
|
+
function it() {
|
|
32235
32233
|
we &&= (window.clearTimeout(we), null), Te &&= (window.clearTimeout(Te), null), Ee &&= (window.clearTimeout(Ee), null);
|
|
32236
32234
|
}
|
|
32237
|
-
function
|
|
32238
|
-
|
|
32239
|
-
oe.value === i.Initializing && (ge.value =
|
|
32235
|
+
function at() {
|
|
32236
|
+
it(), oe.value === i.Initializing ? we = window.setTimeout(() => {
|
|
32237
|
+
oe.value === i.Initializing && (ge.value = $e(qe.value.callNotDelivered), _e.value = $e(Je.value.callNotDeliveredDetail));
|
|
32240
32238
|
}, 3e4) : oe.value === i.Dialing ? Te = window.setTimeout(() => {
|
|
32241
|
-
oe.value === i.Dialing && (ge.value = "", _e.value =
|
|
32239
|
+
oe.value === i.Dialing && (ge.value = "", _e.value = $e(Je.value.notAnsweredDetail));
|
|
32242
32240
|
}, 1e4) : oe.value === i.Connected && (Ee = window.setTimeout(() => {
|
|
32243
|
-
oe.value === i.Connected && (_e.value =
|
|
32241
|
+
oe.value === i.Connected && (_e.value = $e(Je.value.noVideoHint));
|
|
32244
32242
|
}, 5e3));
|
|
32245
32243
|
}
|
|
32246
|
-
function
|
|
32244
|
+
function ot(e) {
|
|
32247
32245
|
[
|
|
32248
32246
|
i.Declined,
|
|
32249
32247
|
i.HangedUp,
|
|
32250
32248
|
i.DevicePermissionDenied
|
|
32251
|
-
].includes(oe.value) || (oe.value = e, ge.value = "", _e.value = "",
|
|
32252
|
-
}
|
|
32253
|
-
function at() {
|
|
32254
|
-
Ce.value = !Ce.value, console.log("Microphone toggled");
|
|
32255
|
-
}
|
|
32256
|
-
function ot() {
|
|
32257
|
-
xe.value = !xe.value, console.log("Camera toggled");
|
|
32249
|
+
].includes(oe.value) || (oe.value = e, ge.value = "", _e.value = "", at());
|
|
32258
32250
|
}
|
|
32259
32251
|
function st() {
|
|
32260
|
-
|
|
32252
|
+
Ce.value = !Ce.value, console.log("Microphone toggled");
|
|
32261
32253
|
}
|
|
32262
32254
|
function ct() {
|
|
32263
|
-
|
|
32255
|
+
xe.value = !xe.value, console.log("Camera toggled");
|
|
32264
32256
|
}
|
|
32265
32257
|
function lt() {
|
|
32266
|
-
|
|
32258
|
+
be.value = !be.value, console.log("Background blur toggled");
|
|
32267
32259
|
}
|
|
32268
32260
|
function ut() {
|
|
32269
|
-
|
|
32261
|
+
ot(i.Declined);
|
|
32270
32262
|
}
|
|
32271
32263
|
function dt() {
|
|
32272
|
-
|
|
32264
|
+
ot(i.Answered);
|
|
32273
32265
|
}
|
|
32274
|
-
|
|
32275
|
-
|
|
32266
|
+
function ft() {
|
|
32267
|
+
oe.value !== i.Connected && ot(i.Dialing);
|
|
32276
32268
|
}
|
|
32277
|
-
function pt(
|
|
32278
|
-
|
|
32269
|
+
function pt() {
|
|
32270
|
+
oe.value !== i.DevicePermissionDenied && !b.isCallee && St();
|
|
32279
32271
|
}
|
|
32280
|
-
function mt() {
|
|
32281
|
-
|
|
32272
|
+
async function mt() {
|
|
32273
|
+
ot(i.HangedUp), ae.value.video && zt();
|
|
32282
32274
|
}
|
|
32283
|
-
function ht() {
|
|
32284
|
-
|
|
32275
|
+
function ht(e) {
|
|
32276
|
+
ot(i.HangedUp), _e.value = kt(e);
|
|
32285
32277
|
}
|
|
32286
32278
|
function gt() {
|
|
32279
|
+
ge.value = $e(qe.value.signalHold), _e.value = $e(Je.value.signalHoldDetail);
|
|
32280
|
+
}
|
|
32281
|
+
function _t() {
|
|
32282
|
+
ve.value = /* @__PURE__ */ new Date();
|
|
32283
|
+
}
|
|
32284
|
+
function vt() {
|
|
32287
32285
|
if (!ve.value || oe.value === i.HangedUp) return;
|
|
32288
32286
|
let e = /* @__PURE__ */ new Date(), t = new Date(ve.value), n = Math.abs(e.getTime() - t.getTime()), r = Math.ceil(n / 1e3);
|
|
32289
|
-
r >= 40 ? (ge.value =
|
|
32287
|
+
r >= 40 ? (ge.value = qe.value.connectionIssues, _e.value = Je.value.connectionIssuesStrong, ne.value = 0) : r > 20 && (ge.value = qe.value.connectionIssues, _e.value = Je.value.connectionIssuesMedium, ne.value = 1);
|
|
32290
32288
|
}
|
|
32291
|
-
async function
|
|
32292
|
-
await
|
|
32289
|
+
async function yt(e) {
|
|
32290
|
+
await Ht(), N.client = w(new f());
|
|
32293
32291
|
let t = new y(e);
|
|
32294
32292
|
if (N.agent = w(await N.client.createCallAgent(t)), N.deviceManager = await N.client.getDeviceManager(), ae.value = await N.deviceManager.askDevicePermission({
|
|
32295
32293
|
video: !0,
|
|
32296
32294
|
audio: !0
|
|
32297
|
-
}), (await N.deviceManager.getCameras()).length || (ae.value.video = !1), me.value = window.setInterval(
|
|
32298
|
-
|
|
32295
|
+
}), (await N.deviceManager.getCameras()).length || (ae.value.video = !1), me.value = window.setInterval(zt, 5e3), !ae.value.audio || !ae.value.video) {
|
|
32296
|
+
ot(i.DevicePermissionDenied);
|
|
32299
32297
|
return;
|
|
32300
32298
|
}
|
|
32301
|
-
N.agent.on("incomingCall",
|
|
32299
|
+
N.agent.on("incomingCall", bt), b.isCallee ? x("ready") : x("start-call");
|
|
32302
32300
|
}
|
|
32303
|
-
async function
|
|
32301
|
+
async function bt(e) {
|
|
32304
32302
|
if (!he.value) try {
|
|
32305
|
-
he.value = !0, N.incomingCall = e.incomingCall, await
|
|
32303
|
+
he.value = !0, N.incomingCall = e.incomingCall, await Ct();
|
|
32306
32304
|
} catch (e) {
|
|
32307
32305
|
console.log("error occured during starting call", e);
|
|
32308
32306
|
} finally {
|
|
32309
32307
|
he.value = !1;
|
|
32310
32308
|
}
|
|
32311
32309
|
}
|
|
32312
|
-
async function
|
|
32313
|
-
let e = await
|
|
32310
|
+
async function xt() {
|
|
32311
|
+
let e = await wt();
|
|
32314
32312
|
return e ? { localVideoStreams: [e] } : void 0;
|
|
32315
32313
|
}
|
|
32316
|
-
async function
|
|
32314
|
+
async function St() {
|
|
32317
32315
|
try {
|
|
32318
|
-
|
|
32319
|
-
let e = { videoOptions: await
|
|
32320
|
-
N.call = N.agent.startCall(t, e),
|
|
32316
|
+
ot(i.Dialing);
|
|
32317
|
+
let e = { videoOptions: await xt() }, t = [{ communicationUserId: b.participant.videoCallIdentityId }];
|
|
32318
|
+
N.call = N.agent.startCall(t, e), Et(), Tt();
|
|
32321
32319
|
} catch (e) {
|
|
32322
32320
|
console.error(e);
|
|
32323
32321
|
}
|
|
32324
32322
|
}
|
|
32325
|
-
async function
|
|
32326
|
-
let e = await
|
|
32323
|
+
async function Ct() {
|
|
32324
|
+
let e = await xt();
|
|
32327
32325
|
try {
|
|
32328
32326
|
N.call = await N.incomingCall.accept({ videoOptions: e });
|
|
32329
32327
|
} catch (e) {
|
|
32330
32328
|
console.error("Error occurred during accepting call", e);
|
|
32331
32329
|
}
|
|
32332
|
-
|
|
32330
|
+
Et(), Tt();
|
|
32333
32331
|
}
|
|
32334
|
-
async function
|
|
32332
|
+
async function wt() {
|
|
32335
32333
|
let e = (await N.deviceManager.getCameras())[0];
|
|
32336
32334
|
if (e) return new g(e);
|
|
32337
32335
|
console.error("No camera device found on the system");
|
|
32338
32336
|
}
|
|
32339
|
-
function
|
|
32340
|
-
N.call.on("stateChanged",
|
|
32341
|
-
e.added.forEach(
|
|
32342
|
-
}), N.call.remoteParticipants.forEach(
|
|
32343
|
-
e.added.forEach(
|
|
32337
|
+
function Tt() {
|
|
32338
|
+
N.call.on("stateChanged", Ot), N.call.on("localVideoStreamsUpdated", (e) => {
|
|
32339
|
+
e.added.forEach(jt), e.removed.forEach(At);
|
|
32340
|
+
}), N.call.remoteParticipants.forEach(Nt), N.call.on("remoteParticipantsUpdated", (e) => {
|
|
32341
|
+
e.added.forEach(Nt);
|
|
32344
32342
|
}), N.call.on("isScreenSharingOnChanged", () => {
|
|
32345
32343
|
D.value = N.call.isScreenSharingOn;
|
|
32346
32344
|
});
|
|
32347
32345
|
}
|
|
32348
|
-
function
|
|
32349
|
-
M.value = N.call.feature(_.UserFacingDiagnostics), M.value.media.on("diagnosticChanged",
|
|
32346
|
+
function Et() {
|
|
32347
|
+
M.value = N.call.feature(_.UserFacingDiagnostics), M.value.media.on("diagnosticChanged", Dt), M.value.network.on("diagnosticChanged", Dt);
|
|
32350
32348
|
}
|
|
32351
|
-
function
|
|
32349
|
+
function Dt(e) {
|
|
32352
32350
|
(e.diagnostic === "networkReceiveQuality" || e.diagnostic === "networkSendQuality") && (e.value === v.Bad ? (console.error(`${e.diagnostic} is bad quality`), ne.value = 0) : e.value === v.Poor ? (console.error(`${e.diagnostic} is poor quality`), ne.value = 1) : ne.value = 2);
|
|
32353
32351
|
}
|
|
32354
|
-
function
|
|
32352
|
+
function Ot() {
|
|
32355
32353
|
switch (N.call.state) {
|
|
32356
32354
|
case "EarlyMedia":
|
|
32357
|
-
|
|
32355
|
+
ot(i.Dialing);
|
|
32358
32356
|
break;
|
|
32359
32357
|
case "Ringing":
|
|
32360
|
-
|
|
32358
|
+
ot(i.Ringing);
|
|
32361
32359
|
break;
|
|
32362
32360
|
case "Connected":
|
|
32363
|
-
|
|
32361
|
+
ot(i.Connected);
|
|
32364
32362
|
break;
|
|
32365
32363
|
case "Disconnected":
|
|
32366
32364
|
let e = N.call.callEndReason;
|
|
32367
|
-
console.log("Call end reason:", e), console.log("Code:", e?.code), console.log("SubCode:", e?.subCode),
|
|
32365
|
+
console.log("Call end reason:", e), console.log("Code:", e?.code), console.log("SubCode:", e?.subCode), mt();
|
|
32368
32366
|
break;
|
|
32369
32367
|
}
|
|
32370
32368
|
}
|
|
32371
|
-
function
|
|
32369
|
+
function kt(e) {
|
|
32372
32370
|
let t = String(e);
|
|
32373
|
-
return
|
|
32371
|
+
return $e(L.value.endReasons?.[t] || "");
|
|
32374
32372
|
}
|
|
32375
|
-
async function
|
|
32373
|
+
async function At(e) {
|
|
32376
32374
|
if (!e || e.mediaStreamType !== "ScreenSharing" || !de.value) return;
|
|
32377
32375
|
de.value.dispose();
|
|
32378
32376
|
let t = document.querySelector(".outgoing__screenshare");
|
|
@@ -32380,7 +32378,7 @@ var ZX = /*#__PURE__*/ L(JX, [["render", XX]]), QX = { class: "video-call-templa
|
|
|
32380
32378
|
let n = document.querySelector(".outgoing__video");
|
|
32381
32379
|
n.style.display = "flex";
|
|
32382
32380
|
}
|
|
32383
|
-
async function
|
|
32381
|
+
async function jt(e) {
|
|
32384
32382
|
if (!e || e.mediaStreamType !== "ScreenSharing") return;
|
|
32385
32383
|
de.value = await new h(e).createView();
|
|
32386
32384
|
let t = document.querySelector(".outgoing__screenshare");
|
|
@@ -32390,7 +32388,7 @@ var ZX = /*#__PURE__*/ L(JX, [["render", XX]]), QX = { class: "video-call-templa
|
|
|
32390
32388
|
let r = t.querySelector("video");
|
|
32391
32389
|
r.style.objectFit = "contain";
|
|
32392
32390
|
}
|
|
32393
|
-
async function
|
|
32391
|
+
async function Mt(e) {
|
|
32394
32392
|
if (e && e.source && ce.value && ce.value.source && ce.value.source.id == e.source.id) return !0;
|
|
32395
32393
|
try {
|
|
32396
32394
|
le.value = new h(e);
|
|
@@ -32401,35 +32399,35 @@ var ZX = /*#__PURE__*/ L(JX, [["render", XX]]), QX = { class: "video-call-templa
|
|
|
32401
32399
|
}
|
|
32402
32400
|
return ce.value = e, !0;
|
|
32403
32401
|
}
|
|
32404
|
-
async function
|
|
32405
|
-
e.videoStreams.forEach(
|
|
32406
|
-
e.added.forEach(
|
|
32402
|
+
async function Nt(e) {
|
|
32403
|
+
e.videoStreams.forEach(Pt), e.on("videoStreamsUpdated", (e) => {
|
|
32404
|
+
e.added.forEach(Pt);
|
|
32407
32405
|
});
|
|
32408
32406
|
}
|
|
32409
|
-
async function
|
|
32410
|
-
if (e.mediaStreamType === "Video" && (await
|
|
32407
|
+
async function Pt(e) {
|
|
32408
|
+
if (e.mediaStreamType === "Video" && (await Ft(e), e.on("isAvailableChanged", async () => await Ft(e))), e.mediaStreamType === "ScreenSharing" && e.on("isAvailableChanged", Lt), e.mediaStreamType === "ScreenSharing" && e.isAvailable) {
|
|
32411
32409
|
ue.value = new h(e);
|
|
32412
32410
|
let t = await ue.value.createView(), n = document.querySelector(".incoming__screenshare");
|
|
32413
|
-
|
|
32411
|
+
It(!0), ee.value = !0, Bt(".incoming__screenshare"), n.replaceChildren(t.target);
|
|
32414
32412
|
}
|
|
32415
32413
|
}
|
|
32416
|
-
async function
|
|
32414
|
+
async function Ft(e) {
|
|
32417
32415
|
if (!e.isAvailable) return;
|
|
32418
32416
|
ue.value = new h(e);
|
|
32419
32417
|
let t = await ue.value.createView(), n = document.querySelector(".incoming__video");
|
|
32420
|
-
n.hidden = !1, n.replaceChildren(t.target),
|
|
32418
|
+
n.hidden = !1, n.replaceChildren(t.target), Bt(".incoming__video"), It(!1);
|
|
32421
32419
|
}
|
|
32422
|
-
function
|
|
32420
|
+
function It(e) {
|
|
32423
32421
|
let t = document.querySelector(".incoming__video"), n = document.querySelector(".incoming__screenshare");
|
|
32424
32422
|
t.style.display = e ? "none" : "block", n.style.display = e ? "flex" : "none";
|
|
32425
32423
|
}
|
|
32426
|
-
function
|
|
32427
|
-
ee.value = !1,
|
|
32424
|
+
function Lt() {
|
|
32425
|
+
ee.value = !1, It(!1);
|
|
32428
32426
|
}
|
|
32429
|
-
async function
|
|
32430
|
-
|
|
32427
|
+
async function Rt() {
|
|
32428
|
+
zt(!0);
|
|
32431
32429
|
}
|
|
32432
|
-
async function
|
|
32430
|
+
async function zt(e = !1) {
|
|
32433
32431
|
let t = N.call?.state;
|
|
32434
32432
|
if (t === "Connecting" || t === "EarlyMedia") return;
|
|
32435
32433
|
let n = (await N.deviceManager.getCameras()).filter((e) => e.name != "OBS Virtual Camera");
|
|
@@ -32437,24 +32435,24 @@ var ZX = /*#__PURE__*/ L(JX, [["render", XX]]), QX = { class: "video-call-templa
|
|
|
32437
32435
|
for (let t = 0; t < fe.value; t++) {
|
|
32438
32436
|
(e || t != 0) && (pe.value = (pe.value + 1) % fe.value);
|
|
32439
32437
|
let r = n[pe.value];
|
|
32440
|
-
if (await
|
|
32438
|
+
if (await Mt(new g(r))) break;
|
|
32441
32439
|
}
|
|
32442
32440
|
}
|
|
32443
|
-
function
|
|
32441
|
+
function Bt(e) {
|
|
32444
32442
|
let t = document.querySelector(e);
|
|
32445
32443
|
if (!t) return;
|
|
32446
32444
|
let n = t.querySelector("video");
|
|
32447
32445
|
n && (n.style.objectFit = "contain", n.disablePictureInPicture = !1);
|
|
32448
32446
|
}
|
|
32449
|
-
async function
|
|
32447
|
+
async function Vt() {
|
|
32450
32448
|
N.call && N.call.state !== "Disconnected" && (await N.call.hangUp({ forEveryone: !0 }), await N.agent.dispose()), x("end-call", C.value);
|
|
32451
32449
|
}
|
|
32452
|
-
async function
|
|
32450
|
+
async function Ht() {
|
|
32453
32451
|
return o ||= Promise.all([import("@azure/communication-calling"), import("@azure/communication-common")]).then(([e, t]) => {
|
|
32454
32452
|
f = e.CallClient, h = e.VideoStreamRenderer, g = e.LocalVideoStream, _ = e.Features, v = e.DiagnosticQuality, y = t.AzureCommunicationTokenCredential;
|
|
32455
32453
|
}), o;
|
|
32456
32454
|
}
|
|
32457
|
-
async function
|
|
32455
|
+
async function Ut() {
|
|
32458
32456
|
d ||= import("./browser-aFX0ImH2.js");
|
|
32459
32457
|
let { AzureLogger: e, setLogLevel: t } = await d;
|
|
32460
32458
|
e.log = (...e) => console.log(...e), t("info"), e.log = (...e) => {
|
|
@@ -32462,26 +32460,26 @@ var ZX = /*#__PURE__*/ L(JX, [["render", XX]]), QX = { class: "video-call-templa
|
|
|
32462
32460
|
C.value = C.value.splice(1 - TZ).concat(t);
|
|
32463
32461
|
};
|
|
32464
32462
|
}
|
|
32465
|
-
function
|
|
32466
|
-
document.querySelector(
|
|
32463
|
+
function Wt() {
|
|
32464
|
+
document.querySelector(rt.value).querySelector("video").requestFullscreen();
|
|
32467
32465
|
}
|
|
32468
|
-
function
|
|
32469
|
-
let e = document.querySelector(
|
|
32466
|
+
function Gt() {
|
|
32467
|
+
let e = document.querySelector(rt.value).querySelector("video");
|
|
32470
32468
|
document.pictureInPictureElement ? e.exitPictureInPicture() : document.pictureInPictureEnabled && e.requestPictureInPicture();
|
|
32471
32469
|
}
|
|
32472
|
-
async function
|
|
32470
|
+
async function Kt() {
|
|
32473
32471
|
N.call && N.call.isScreenSharingOn ? await N.call.stopScreenSharing() : await N.call.startScreenSharing();
|
|
32474
32472
|
}
|
|
32475
32473
|
return n({
|
|
32476
|
-
CallDeclined:
|
|
32477
|
-
CallAnswered:
|
|
32478
|
-
CallForDataReceived:
|
|
32479
|
-
CallClosedWithStatusCode:
|
|
32480
|
-
CallHeartbeatReceived:
|
|
32481
|
-
CallSignalHoldDetected:
|
|
32482
|
-
CallStartVideoCall:
|
|
32483
|
-
CallHangUp:
|
|
32484
|
-
InitializeAcsConnection:
|
|
32474
|
+
CallDeclined: ut,
|
|
32475
|
+
CallAnswered: dt,
|
|
32476
|
+
CallForDataReceived: ft,
|
|
32477
|
+
CallClosedWithStatusCode: ht,
|
|
32478
|
+
CallHeartbeatReceived: _t,
|
|
32479
|
+
CallSignalHoldDetected: gt,
|
|
32480
|
+
CallStartVideoCall: pt,
|
|
32481
|
+
CallHangUp: mt,
|
|
32482
|
+
InitializeAcsConnection: yt
|
|
32485
32483
|
}), (e, n) => {
|
|
32486
32484
|
let r = se("BDLoader");
|
|
32487
32485
|
return A(), l("div", QX, [m(Xq, null, {
|
|
@@ -32494,23 +32492,23 @@ var ZX = /*#__PURE__*/ L(JX, [["render", XX]]), QX = { class: "video-call-templa
|
|
|
32494
32492
|
}), m(Zq, null, {
|
|
32495
32493
|
default: I(() => [m(Yq, {
|
|
32496
32494
|
sm: "12",
|
|
32497
|
-
lg:
|
|
32495
|
+
lg: He.value ? "12" : "8"
|
|
32498
32496
|
}, {
|
|
32499
|
-
default: I(() => [u("div", { class: O(["incoming", Me.value]) }, [
|
|
32497
|
+
default: I(() => [u("div", { class: O(["incoming", Me.value]) }, [Ge.value ? (A(), l("div", $X, [
|
|
32500
32498
|
m(r, {
|
|
32501
32499
|
size: "lg",
|
|
32502
|
-
message:
|
|
32503
|
-
stopAnimation:
|
|
32500
|
+
message: et.value,
|
|
32501
|
+
stopAnimation: He.value || Ue.value || Ke.value
|
|
32504
32502
|
}, null, 8, ["message", "stopAnimation"]),
|
|
32505
|
-
je.value ? (A(), l("div", eZ, [u("div", tZ, [m(Ri, { class: "icon-xl icon-state-error" })]), u("span", null, P(
|
|
32506
|
-
Ae.value ? (A(), l("div", nZ, [u("div", rZ, [m(oo, { class: "icon-xl icon-state-error" })]), u("span", null, P(
|
|
32507
|
-
|
|
32503
|
+
je.value ? (A(), l("div", eZ, [u("div", tZ, [m(Ri, { class: "icon-xl icon-state-error" })]), u("span", null, P(Le.value.permissionDeniedForAudio), 1)])) : c("", !0),
|
|
32504
|
+
Ae.value ? (A(), l("div", nZ, [u("div", rZ, [m(oo, { class: "icon-xl icon-state-error" })]), u("span", null, P(Le.value.permissionDeniedForVideo), 1)])) : c("", !0),
|
|
32505
|
+
He.value || Ue.value || Ke.value ? (A(), s(R, {
|
|
32508
32506
|
key: 2,
|
|
32509
32507
|
variant: "primary",
|
|
32510
32508
|
class: "text-center",
|
|
32511
|
-
onClick:
|
|
32509
|
+
onClick: Vt
|
|
32512
32510
|
}, {
|
|
32513
|
-
default: I(() => [p(P(
|
|
32511
|
+
default: I(() => [p(P(Fe.value.closeWindow), 1)]),
|
|
32514
32512
|
_: 1
|
|
32515
32513
|
})) : c("", !0)
|
|
32516
32514
|
])) : (A(), l("div", iZ, [
|
|
@@ -32519,109 +32517,117 @@ var ZX = /*#__PURE__*/ L(JX, [["render", XX]]), QX = { class: "video-call-templa
|
|
|
32519
32517
|
u("div", aZ, [m(R, {
|
|
32520
32518
|
variant: "primary",
|
|
32521
32519
|
class: "text-center",
|
|
32522
|
-
onClick:
|
|
32520
|
+
onClick: Wt
|
|
32523
32521
|
}, {
|
|
32524
|
-
default: I(() => [m(xa), u("span", null, P(
|
|
32522
|
+
default: I(() => [m(xa), u("span", null, P(Fe.value.fullScreen), 1)]),
|
|
32525
32523
|
_: 1
|
|
32526
32524
|
}), !T && !k.value ? (A(), s(R, {
|
|
32527
32525
|
key: 0,
|
|
32528
32526
|
variant: "primary",
|
|
32529
32527
|
class: "text-center",
|
|
32530
|
-
onClick:
|
|
32528
|
+
onClick: Gt
|
|
32531
32529
|
}, {
|
|
32532
|
-
default: I(() => [m(xa), u("span", null, P(
|
|
32530
|
+
default: I(() => [m(xa), u("span", null, P(Fe.value.miniPlayer), 1)]),
|
|
32533
32531
|
_: 1
|
|
32534
32532
|
})) : c("", !0)])
|
|
32535
32533
|
]))], 2)]),
|
|
32536
32534
|
_: 1
|
|
32537
|
-
}, 8, ["lg"]),
|
|
32535
|
+
}, 8, ["lg"]), He.value ? c("", !0) : (A(), s(Yq, {
|
|
32538
32536
|
key: 0,
|
|
32539
32537
|
sm: "12",
|
|
32540
32538
|
lg: "4"
|
|
32541
32539
|
}, {
|
|
32542
32540
|
default: I(() => [u("div", oZ, [u("div", null, [
|
|
32543
32541
|
u("div", sZ, [u("div", cZ, [
|
|
32544
|
-
|
|
32542
|
+
Ke.value ? c("", !0) : (A(), l("div", lZ)),
|
|
32545
32543
|
n[2] ||= u("div", { class: "outgoing__screenshare" }, null, -1),
|
|
32546
32544
|
u("div", uZ, [
|
|
32547
32545
|
Se((A(), s(R, {
|
|
32548
32546
|
class: O({ "btn-danger": Ce.value }),
|
|
32549
|
-
onClick:
|
|
32547
|
+
onClick: st
|
|
32550
32548
|
}, {
|
|
32551
32549
|
default: I(() => [Ce.value ? (A(), l("img", {
|
|
32552
32550
|
key: 0,
|
|
32553
32551
|
src: BX,
|
|
32554
|
-
alt:
|
|
32552
|
+
alt: Xe.value
|
|
32555
32553
|
}, null, 8, dZ)) : (A(), l("img", {
|
|
32556
32554
|
key: 1,
|
|
32557
32555
|
src: VX,
|
|
32558
|
-
alt:
|
|
32556
|
+
alt: Xe.value
|
|
32559
32557
|
}, null, 8, fZ))]),
|
|
32560
32558
|
_: 1
|
|
32561
|
-
}, 8, ["class"])), [[F(wK),
|
|
32559
|
+
}, 8, ["class"])), [[F(wK), Xe.value]]),
|
|
32562
32560
|
Se((A(), s(R, {
|
|
32563
32561
|
class: O({ "btn-danger": xe.value }),
|
|
32564
|
-
onClick:
|
|
32562
|
+
onClick: ct
|
|
32565
32563
|
}, {
|
|
32566
32564
|
default: I(() => [xe.value ? (A(), l("img", {
|
|
32567
32565
|
key: 0,
|
|
32568
32566
|
src: HX,
|
|
32569
|
-
alt:
|
|
32567
|
+
alt: Ze.value
|
|
32570
32568
|
}, null, 8, pZ)) : (A(), l("img", {
|
|
32571
32569
|
key: 1,
|
|
32572
32570
|
src: UX,
|
|
32573
|
-
alt:
|
|
32571
|
+
alt: Ze.value
|
|
32574
32572
|
}, null, 8, mZ))]),
|
|
32575
32573
|
_: 1
|
|
32576
|
-
}, 8, ["class"])), [[F(wK),
|
|
32574
|
+
}, 8, ["class"])), [[F(wK), Ze.value]]),
|
|
32577
32575
|
Se((A(), s(R, {
|
|
32578
32576
|
class: O(["blur-button", { off: be.value }]),
|
|
32579
|
-
onClick:
|
|
32577
|
+
onClick: lt
|
|
32580
32578
|
}, {
|
|
32581
32579
|
default: I(() => [m(ZX), m(qX)]),
|
|
32582
32580
|
_: 1
|
|
32583
|
-
}, 8, ["class"])), [[F(wK),
|
|
32581
|
+
}, 8, ["class"])), [[F(wK), Qe.value]])
|
|
32584
32582
|
]),
|
|
32585
|
-
ke.value && !
|
|
32583
|
+
ke.value && !Ke.value && !k.value && !Ge.value ? (A(), s(R, {
|
|
32586
32584
|
key: 1,
|
|
32587
32585
|
variant: D.value ? "danger" : "primary",
|
|
32588
32586
|
class: "share-button",
|
|
32589
|
-
onClick:
|
|
32587
|
+
onClick: Kt
|
|
32590
32588
|
}, {
|
|
32591
|
-
default: I(() => [m(xa), u("span", null, P(
|
|
32589
|
+
default: I(() => [m(xa), u("span", null, P(ze.value), 1)]),
|
|
32592
32590
|
_: 1
|
|
32593
32591
|
}, 8, ["variant"])) : c("", !0),
|
|
32594
32592
|
Oe.value ? (A(), l(t, { key: 2 }, [m(R, {
|
|
32595
32593
|
class: "text-center",
|
|
32596
|
-
onClick:
|
|
32594
|
+
onClick: Rt
|
|
32597
32595
|
}, {
|
|
32598
|
-
default: I(() => [p(P(
|
|
32596
|
+
default: I(() => [p(P(Fe.value.switchCamera), 1)]),
|
|
32599
32597
|
_: 1
|
|
32600
32598
|
}), u("p", hZ, P(De.value), 1)], 64)) : c("", !0),
|
|
32601
|
-
Ae.value ? (A(), l("div", gZ, [u("div", _Z, [m(oo, { class: "icon-xxl icon-state-error" })]), u("span", null, P(
|
|
32599
|
+
Ae.value ? (A(), l("div", gZ, [u("div", _Z, [m(oo, { class: "icon-xxl icon-state-error" })]), u("span", null, P(Le.value.permissionDeniedForVideo), 1)])) : c("", !0)
|
|
32602
32600
|
])]),
|
|
32603
|
-
!
|
|
32601
|
+
!Ue.value && !Ke.value ? (A(), s(R, {
|
|
32604
32602
|
key: 0,
|
|
32605
32603
|
variant: "danger",
|
|
32606
32604
|
class: "end-call-button text-center w-100",
|
|
32607
|
-
onClick:
|
|
32605
|
+
onClick: Vt
|
|
32608
32606
|
}, {
|
|
32609
|
-
default: I(() => [m(zn), u("span", null, P(
|
|
32607
|
+
default: I(() => [m(zn), u("span", null, P(Fe.value.endCall), 1)]),
|
|
32610
32608
|
_: 1
|
|
32611
32609
|
})) : c("", !0),
|
|
32612
|
-
u("div", vZ, [
|
|
32613
|
-
u("
|
|
32614
|
-
|
|
32615
|
-
|
|
32616
|
-
u("
|
|
32617
|
-
|
|
32618
|
-
|
|
32619
|
-
|
|
32620
|
-
|
|
32621
|
-
|
|
32622
|
-
u("
|
|
32610
|
+
u("div", vZ, [
|
|
32611
|
+
u("div", { class: O(["settings__signal", Ne.value]) }, [n[3] ||= u("ul", { class: "indicator" }, [
|
|
32612
|
+
u("li"),
|
|
32613
|
+
u("li"),
|
|
32614
|
+
u("li")
|
|
32615
|
+
], -1), u("p", null, P(Pe.value), 1)], 2),
|
|
32616
|
+
u("div", yZ, [u("p", bZ, P(tt.value), 1), nt.value ? (A(), l("small", xZ, P(nt.value), 1)) : c("", !0)]),
|
|
32617
|
+
u("div", SZ, [
|
|
32618
|
+
u("p", null, [u("b", null, P(Be.value), 1)]),
|
|
32619
|
+
u("p", null, P(Ve.value), 1),
|
|
32620
|
+
u("p", null, [
|
|
32621
|
+
u("a", {
|
|
32622
|
+
href: b.videoTestUrl,
|
|
32623
|
+
target: "_blank",
|
|
32624
|
+
rel: "noopener noreferrer"
|
|
32625
|
+
}, P(Fe.value.testCall), 9, CZ),
|
|
32626
|
+
n[4] ||= p(" • ", -1),
|
|
32627
|
+
u("a", wZ, P(Fe.value.serviceDesk), 1)
|
|
32628
|
+
])
|
|
32623
32629
|
])
|
|
32624
|
-
])
|
|
32630
|
+
])
|
|
32625
32631
|
])])]),
|
|
32626
32632
|
_: 1
|
|
32627
32633
|
}))]),
|