@beterdichtbij/component-library 0.71.0-alpha.8 → 0.71.0-alpha.9
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.
|
@@ -11375,23 +11375,27 @@ var Fb = {
|
|
|
11375
11375
|
endCall: "End call",
|
|
11376
11376
|
placeholderSettingsHelpTitle: "Connection issues?",
|
|
11377
11377
|
placeholderSettingsHelpMessage: "End the call and try again.",
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11378
|
+
statusTextMessage: {
|
|
11379
|
+
initializing: "Initializing...",
|
|
11380
|
+
dialing: "Calling...",
|
|
11381
|
+
ringing: "Phone is ringing",
|
|
11382
|
+
answered: "Call answered",
|
|
11383
|
+
connected: "Connected",
|
|
11384
|
+
videoCallDeclined: "The call could not be answered right now.",
|
|
11385
|
+
videoCallHangedUp: "Call has ended.",
|
|
11386
|
+
devicePermissionDenied: "A call cannot be started",
|
|
11387
|
+
callNotDelivered: "The video call does not arrive on the patient's mobile phone or tablet.",
|
|
11388
|
+
signalHold: "Video call connection with patient's phone/tablet could not be established",
|
|
11389
|
+
connectionIssues: "Connection issues"
|
|
11390
|
+
},
|
|
11391
|
+
statusDetailMessage: {
|
|
11392
|
+
notAnsweredDetail: "Patient does not appear to answer.",
|
|
11393
|
+
noVideoHint: "No video? Run the video call test.",
|
|
11394
|
+
callNotDeliveredDetail: "Asking the patient to log in again in the BeterDichtbij app often resolves this.",
|
|
11395
|
+
connectionIssuesMedium: "The connection is unstable.",
|
|
11396
|
+
connectionIssuesStrong: "The connection seems lost. Check internet connection and try again.",
|
|
11397
|
+
signalHoldDetail: "Run the video call test."
|
|
11398
|
+
},
|
|
11395
11399
|
permissionDeniedForVideo: "No access to camera",
|
|
11396
11400
|
permissionDeniedForAudio: "No access to microphone",
|
|
11397
11401
|
closeWindow: "Close window",
|
|
@@ -11531,23 +11535,27 @@ var Fb = {
|
|
|
11531
11535
|
endCall: "Gesprek beëindigen",
|
|
11532
11536
|
placeholderSettingsHelpTitle: "Problemen met de verbinding?",
|
|
11533
11537
|
placeholderSettingsHelpMessage: "Sluit het gesprek en probeer opnieuw te bellen.",
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11538
|
+
statusTextMessage: {
|
|
11539
|
+
initializing: "Bezig met opstarten...",
|
|
11540
|
+
dialing: "Bellen...",
|
|
11541
|
+
ringing: "Telefoon gaat over",
|
|
11542
|
+
answered: "Er is opgenomen",
|
|
11543
|
+
connected: "Verbonden",
|
|
11544
|
+
videoCallDeclined: "Er kon op dit moment niet worden opgenomen.",
|
|
11545
|
+
videoCallHangedUp: "Er is opgehangen.",
|
|
11546
|
+
devicePermissionDenied: "Er kan geen gesprek worden gestart",
|
|
11547
|
+
callNotDelivered: "Beeldbelgesprek komt niet aan op de mobiele telefoon of tablet van de patiënt.",
|
|
11548
|
+
signalHold: "Beeldbel verbinding met patiënt zijn telefoon/tablet komt niet tot stand",
|
|
11549
|
+
connectionIssues: "Connectie problemen"
|
|
11550
|
+
},
|
|
11551
|
+
statusDetailMessage: {
|
|
11552
|
+
notAnsweredDetail: "Patiënt lijkt niet op te nemen.",
|
|
11553
|
+
noVideoHint: "Geen beeld? Doe de beeldbel kwaliteit test.",
|
|
11554
|
+
callNotDeliveredDetail: "De patiënt opnieuw laten inloggen in de BeterDichtbij app lost het probleem vaak op.",
|
|
11555
|
+
connectionIssuesMedium: "De verbinding is instabiel.",
|
|
11556
|
+
connectionIssuesStrong: "De verbinding lijkt verbroken. Controleer internetverbinding en probeer opnieuw.",
|
|
11557
|
+
signalHoldDetail: "Doe de beeldbel kwaliteit test."
|
|
11558
|
+
},
|
|
11551
11559
|
permissionDeniedForVideo: "Geen toegang beschikbaar tot de camera",
|
|
11552
11560
|
permissionDeniedForAudio: "Er is geen toegang beschikbaar tot uw microfoon",
|
|
11553
11561
|
closeWindow: "Venster sluiten",
|
|
@@ -32282,32 +32290,33 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32282
32290
|
}), he = a(() => {
|
|
32283
32291
|
let e = navigator.userAgent, t = e.indexOf("Android") !== -1, n = /Mobi/.test(e), r = /iPad|iPhone|iPod/.test(e) && !window.MSStream;
|
|
32284
32292
|
return !(t && n || r);
|
|
32285
|
-
}), ge = a(() => !S.value?.video &&
|
|
32293
|
+
}), ge = a(() => !S.value?.video && Me.value), _e = a(() => !S.value?.audio && Me.value), ve = a(() => C.value === i.Declined ? "incoming--declined" : "incoming--loading");
|
|
32294
|
+
a(() => {
|
|
32286
32295
|
switch (x.value) {
|
|
32287
32296
|
case 0: return "weak";
|
|
32288
32297
|
case 1: return "steady";
|
|
32289
32298
|
case 2: return "strong";
|
|
32290
32299
|
default: return null;
|
|
32291
32300
|
}
|
|
32292
|
-
}),
|
|
32301
|
+
}), a(() => {
|
|
32293
32302
|
switch (x.value) {
|
|
32294
32303
|
case 0: return _.value.signalStrength.weak;
|
|
32295
32304
|
case 1: return _.value.signalStrength.steady;
|
|
32296
32305
|
case 2: return _.value.signalStrength.strong;
|
|
32297
32306
|
default: return null;
|
|
32298
32307
|
}
|
|
32299
|
-
})
|
|
32300
|
-
|
|
32301
|
-
|
|
32302
|
-
case i.
|
|
32303
|
-
case i.
|
|
32304
|
-
case i.
|
|
32305
|
-
case i.
|
|
32306
|
-
case i.
|
|
32307
|
-
case i.
|
|
32308
|
-
case i.
|
|
32309
|
-
|
|
32310
|
-
|
|
32308
|
+
});
|
|
32309
|
+
let ye = a(() => v.value ? _.value.stopSharingScreen : _.value.shareScreen), be = a(() => _.value.placeholderSettingsHelpTitle), xe = a(() => _.value.placeholderSettingsHelpMessage), Se = a(() => C.value === i.Declined), Ce = a(() => C.value === i.HangedUp), Ae = a(() => C.value === i.Connected), je = a(() => !Ae.value), Me = a(() => C.value === i.DevicePermissionDenied), Ne = a(() => _.value.statusTextMessage || _.value), Pe = a(() => _.value.statusDetailMessage || _.value), Fe = a(() => {
|
|
32310
|
+
switch (C.value) {
|
|
32311
|
+
case i.Initializing: return Ne.value.initializing;
|
|
32312
|
+
case i.Dialing: return Ne.value.dialing;
|
|
32313
|
+
case i.Ringing: return Ne.value.ringing;
|
|
32314
|
+
case i.Answered: return Ne.value.answered;
|
|
32315
|
+
case i.Connected: return Ne.value.connected;
|
|
32316
|
+
case i.Declined: return Ne.value.videoCallDeclined;
|
|
32317
|
+
case i.HangedUp: return Ne.value.videoCallHangedUp;
|
|
32318
|
+
case i.DevicePermissionDenied: return Ne.value.devicePermissionDenied;
|
|
32319
|
+
}
|
|
32311
32320
|
}), Ie = a(() => ce.value || Fe.value), Le = a(() => P.value), Re = a(() => b.value ? ".incoming__screenshare" : ".incoming__video");
|
|
32312
32321
|
te(() => {
|
|
32313
32322
|
bt(), ue.value = window.setInterval(Ye, 5e3);
|
|
@@ -32319,15 +32328,15 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32319
32328
|
}
|
|
32320
32329
|
function R() {
|
|
32321
32330
|
ze(), C.value === i.Dialing && (de = window.setTimeout(() => {
|
|
32322
|
-
C.value === i.Dialing && (ce.value =
|
|
32331
|
+
C.value === i.Dialing && (ce.value = Ne.value.callNotDelivered, P.value = Pe.value.callNotDeliveredDetail);
|
|
32323
32332
|
}, 3e4)), C.value === i.Ringing && (I = window.setTimeout(() => {
|
|
32324
|
-
C.value === i.Ringing && (ce.value = "", P.value =
|
|
32333
|
+
C.value === i.Ringing && (ce.value = "", P.value = Pe.value.notAnsweredDetail);
|
|
32325
32334
|
}, 5e3)), C.value === i.Connected && (fe = window.setTimeout(() => {
|
|
32326
|
-
C.value === i.Connected && (P.value =
|
|
32335
|
+
C.value === i.Connected && (P.value = Pe.value.noVideoHint);
|
|
32327
32336
|
}, 5e3));
|
|
32328
32337
|
}
|
|
32329
32338
|
function Be(e) {
|
|
32330
|
-
|
|
32339
|
+
C.value = e, ce.value = "", P.value = "", R();
|
|
32331
32340
|
}
|
|
32332
32341
|
function Ve() {
|
|
32333
32342
|
Be(i.Declined);
|
|
@@ -32348,7 +32357,7 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32348
32357
|
Be(i.HangedUp), P.value = ot(e);
|
|
32349
32358
|
}
|
|
32350
32359
|
function qe() {
|
|
32351
|
-
ce.value =
|
|
32360
|
+
ce.value = Ne.value.signalHold, P.value = Pe.value.signalHoldDetail;
|
|
32352
32361
|
}
|
|
32353
32362
|
function Je() {
|
|
32354
32363
|
le.value = /* @__PURE__ */ new Date();
|
|
@@ -32356,7 +32365,7 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32356
32365
|
function Ye() {
|
|
32357
32366
|
if (!le.value || C.value === i.HangedUp) return;
|
|
32358
32367
|
let e = /* @__PURE__ */ new Date(), t = new Date(le.value), n = Math.abs(e.getTime() - t.getTime()), r = Math.ceil(n / 1e3);
|
|
32359
|
-
r >= 40 ? (ce.value =
|
|
32368
|
+
r >= 40 ? (ce.value = Ne.value.connectionIssues, P.value = Pe.value.connectionIssuesStrong, x.value = 0) : r > 20 && (ce.value = Ne.value.connectionIssues, P.value = Pe.value.connectionIssuesMedium, x.value = 1);
|
|
32360
32369
|
}
|
|
32361
32370
|
async function Xe(e) {
|
|
32362
32371
|
E.client = w(new we());
|
|
@@ -32364,10 +32373,10 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32364
32373
|
E.agent = w(await E.client.createCallAgent(t)), E.deviceManager = await E.client.getDeviceManager(), S.value = await E.deviceManager.askDevicePermission({
|
|
32365
32374
|
video: !0,
|
|
32366
32375
|
audio: !0
|
|
32367
|
-
}), M.value = window.setInterval(gt, 5e3), (!S.value.audio || !S.value.video) && Be(i.DevicePermissionDenied),
|
|
32376
|
+
}), M.value = window.setInterval(gt, 5e3), (!S.value.audio || !S.value.video) && Be(i.DevicePermissionDenied), E.agent.on("incomingCall", Ze), o.isCallee ? d("ready") : d("start-call");
|
|
32368
32377
|
}
|
|
32369
32378
|
async function Ze(e) {
|
|
32370
|
-
if (
|
|
32379
|
+
if (!N.value) try {
|
|
32371
32380
|
N.value = !0, E.incomingCall = e.incomingCall, await et();
|
|
32372
32381
|
} catch (e) {
|
|
32373
32382
|
console.log("error occured during starting call", e);
|
|
@@ -32380,7 +32389,6 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32380
32389
|
return e ? { localVideoStreams: [e] } : void 0;
|
|
32381
32390
|
}
|
|
32382
32391
|
async function $e() {
|
|
32383
|
-
console.log("Starting call...");
|
|
32384
32392
|
try {
|
|
32385
32393
|
Be(i.Dialing);
|
|
32386
32394
|
let e = { videoOptions: await Qe() }, t = [{ communicationUserId: o.participant.videoCallIdentityId }];
|
|
@@ -32390,7 +32398,6 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32390
32398
|
}
|
|
32391
32399
|
}
|
|
32392
32400
|
async function et() {
|
|
32393
|
-
console.log("Accepting incoming call...");
|
|
32394
32401
|
let e = await Qe();
|
|
32395
32402
|
try {
|
|
32396
32403
|
E.call = await E.incomingCall.accept({ videoOptions: e });
|
|
@@ -32405,7 +32412,7 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32405
32412
|
console.error("No camera device found on the system");
|
|
32406
32413
|
}
|
|
32407
32414
|
function nt() {
|
|
32408
|
-
|
|
32415
|
+
E.call.on("stateChanged", at), E.call.on("localVideoStreamsUpdated", (e) => {
|
|
32409
32416
|
e.added.forEach(ct), e.removed.forEach(st);
|
|
32410
32417
|
}), E.call.remoteParticipants.forEach(ut), E.call.on("remoteParticipantsUpdated", (e) => {
|
|
32411
32418
|
e.added.forEach(ut);
|
|
@@ -32420,7 +32427,7 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32420
32427
|
(e.diagnostic === "networkReceiveQuality" || e.diagnostic === "networkSendQuality") && (e.value === Te.Bad ? (console.error(`${e.diagnostic} is bad quality`), x.value = 0) : e.value === Te.Poor ? (console.error(`${e.diagnostic} is poor quality`), x.value = 1) : x.value = 2);
|
|
32421
32428
|
}
|
|
32422
32429
|
function at() {
|
|
32423
|
-
switch (
|
|
32430
|
+
switch (E.call.state) {
|
|
32424
32431
|
case "EarlyMedia":
|
|
32425
32432
|
Be(i.Dialing);
|
|
32426
32433
|
break;
|
|
@@ -32561,17 +32568,17 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32561
32568
|
}), m(rJ, null, {
|
|
32562
32569
|
default: L(() => [m(tJ, {
|
|
32563
32570
|
sm: "12",
|
|
32564
|
-
lg:
|
|
32571
|
+
lg: Se.value ? "12" : "8"
|
|
32565
32572
|
}, {
|
|
32566
|
-
default: L(() => [u("div", { class: O(["incoming", ve.value]) }, [
|
|
32573
|
+
default: L(() => [u("div", { class: O(["incoming", ve.value]) }, [je.value ? (A(), l("div", gZ, [
|
|
32567
32574
|
m(r, {
|
|
32568
32575
|
size: "lg",
|
|
32569
32576
|
message: Fe.value,
|
|
32570
|
-
stopAnimation:
|
|
32577
|
+
stopAnimation: Se.value || Ce.value || Me.value
|
|
32571
32578
|
}, null, 8, ["message", "stopAnimation"]),
|
|
32572
32579
|
_e.value ? (A(), l("div", _Z, [u("div", vZ, [m(Ui, { class: "icon-xl icon-state-error" })]), u("span", null, F(_.value.permissionDeniedForAudio), 1)])) : c("", !0),
|
|
32573
32580
|
ge.value ? (A(), l("div", yZ, [u("div", bZ, [m(fo, { class: "icon-xl icon-state-error" })]), u("span", null, F(_.value.permissionDeniedForVideo), 1)])) : c("", !0),
|
|
32574
|
-
|
|
32581
|
+
Se.value || Ce.value || Me.value ? (A(), s(z, {
|
|
32575
32582
|
key: 2,
|
|
32576
32583
|
variant: "primary",
|
|
32577
32584
|
class: "text-center",
|
|
@@ -32601,21 +32608,21 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32601
32608
|
})) : c("", !0)])
|
|
32602
32609
|
]))], 2)]),
|
|
32603
32610
|
_: 1
|
|
32604
|
-
}, 8, ["lg"]),
|
|
32611
|
+
}, 8, ["lg"]), Se.value ? c("", !0) : (A(), s(tJ, {
|
|
32605
32612
|
key: 0,
|
|
32606
32613
|
sm: "12",
|
|
32607
32614
|
lg: "4"
|
|
32608
32615
|
}, {
|
|
32609
32616
|
default: L(() => [u("div", CZ, [u("div", null, [u("div", wZ, [u("div", TZ, [
|
|
32610
|
-
|
|
32617
|
+
Me.value ? c("", !0) : (A(), l("div", EZ)),
|
|
32611
32618
|
n[2] ||= u("div", { class: "outgoing__screenshare" }, null, -1),
|
|
32612
|
-
he.value && !
|
|
32619
|
+
he.value && !Me.value && !y.value && !je.value ? (A(), s(z, {
|
|
32613
32620
|
key: 1,
|
|
32614
32621
|
variant: v.value ? "danger" : "primary",
|
|
32615
32622
|
class: "text-center",
|
|
32616
32623
|
onClick: Ct
|
|
32617
32624
|
}, {
|
|
32618
|
-
default: L(() => [m(Ea), u("span", null, F(
|
|
32625
|
+
default: L(() => [m(Ea), u("span", null, F(ye.value), 1)]),
|
|
32619
32626
|
_: 1
|
|
32620
32627
|
}, 8, ["variant"])) : c("", !0),
|
|
32621
32628
|
me.value ? (A(), l(t, { key: 2 }, [m(z, {
|
|
@@ -32626,27 +32633,19 @@ var hZ = { class: "video-call-template" }, gZ = {
|
|
|
32626
32633
|
_: 1
|
|
32627
32634
|
}), u("p", DZ, F(pe.value), 1)], 64)) : c("", !0),
|
|
32628
32635
|
ge.value ? (A(), l("div", OZ, [u("div", kZ, [m(fo, { class: "icon-xxl icon-state-error" })]), u("span", null, F(_.value.permissionDeniedForVideo), 1)])) : c("", !0)
|
|
32629
|
-
])]), u("div", AZ, [
|
|
32630
|
-
u("
|
|
32631
|
-
u("
|
|
32632
|
-
|
|
32633
|
-
u("
|
|
32634
|
-
|
|
32635
|
-
|
|
32636
|
-
|
|
32637
|
-
|
|
32638
|
-
|
|
32639
|
-
u("
|
|
32640
|
-
u("a", {
|
|
32641
|
-
href: o.videoTestUrl,
|
|
32642
|
-
target: "blank",
|
|
32643
|
-
rel: "noopener noreferrer"
|
|
32644
|
-
}, F(_.value.testCall), 9, FZ),
|
|
32645
|
-
n[4] ||= p(" • ", -1),
|
|
32646
|
-
u("a", IZ, F(_.value.serviceDesk), 1)
|
|
32647
|
-
])
|
|
32636
|
+
])]), u("div", AZ, [u("div", jZ, [u("p", MZ, F(Ie.value), 1), Le.value ? (A(), l("small", NZ, F(Le.value), 1)) : c("", !0)]), u("div", PZ, [
|
|
32637
|
+
u("p", null, [u("b", null, F(be.value), 1)]),
|
|
32638
|
+
u("p", null, F(xe.value), 1),
|
|
32639
|
+
u("p", null, [
|
|
32640
|
+
u("a", {
|
|
32641
|
+
href: o.videoTestUrl,
|
|
32642
|
+
target: "blank",
|
|
32643
|
+
rel: "noopener noreferrer"
|
|
32644
|
+
}, F(_.value.testCall), 9, FZ),
|
|
32645
|
+
n[3] ||= p(" • ", -1),
|
|
32646
|
+
u("a", IZ, F(_.value.serviceDesk), 1)
|
|
32648
32647
|
])
|
|
32649
|
-
])]), !
|
|
32648
|
+
])])]), !Ce.value && !Me.value ? (A(), s(z, {
|
|
32650
32649
|
key: 0,
|
|
32651
32650
|
variant: "danger",
|
|
32652
32651
|
class: "text-center w-100",
|