@beterdichtbij/component-library 0.72.5-beta.0 → 0.72.5-beta.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/bd-component-lib.cjs.js +10 -10
- package/dist/bd-component-lib.es.js +249 -226
- package/dist/bd-component-lib.umd.js +18 -18
- package/package.json +3 -3
|
@@ -1294,13 +1294,13 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
var Ko = /\{([0-9a-zA-Z]+)\}/g;
|
|
1296
1296
|
function qo(e, ...t) {
|
|
1297
|
-
return t.length === 1 &&
|
|
1297
|
+
return t.length === 1 && bs(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Ko, (e, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
1298
1298
|
}
|
|
1299
1299
|
var Jo = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Yo = (e, t, n) => Xo({
|
|
1300
1300
|
l: e,
|
|
1301
1301
|
k: t,
|
|
1302
1302
|
s: n
|
|
1303
|
-
}), Xo = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Zo = (e) => typeof e == "number" && isFinite(e), Qo = (e) =>
|
|
1303
|
+
}), Xo = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Zo = (e) => typeof e == "number" && isFinite(e), Qo = (e) => Cs(e) === "[object Date]", $o = (e) => Cs(e) === "[object RegExp]", es = (e) => B(e) && Object.keys(e).length === 0, ts = Object.assign, ns = Object.create, rs = (e = null) => ns(e), is, as = () => is ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : rs();
|
|
1304
1304
|
function ss(e) {
|
|
1305
1305
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
1306
1306
|
}
|
|
@@ -1341,7 +1341,7 @@ var hs = Object.prototype.hasOwnProperty;
|
|
|
1341
1341
|
function gs(e, t) {
|
|
1342
1342
|
return hs.call(e, t);
|
|
1343
1343
|
}
|
|
1344
|
-
var _s = Array.isArray, vs = (e) => typeof e == "function", z = (e) => typeof e == "string", ys = (e) => typeof e == "boolean",
|
|
1344
|
+
var _s = Array.isArray, vs = (e) => typeof e == "function", z = (e) => typeof e == "string", ys = (e) => typeof e == "boolean", bs = (e) => typeof e == "object" && !!e, xs = (e) => bs(e) && vs(e.then) && vs(e.catch), Ss = Object.prototype.toString, Cs = (e) => Ss.call(e), B = (e) => Cs(e) === "[object Object]", ws = (e) => e == null ? "" : _s(e) || B(e) && e.toString === Ss ? JSON.stringify(e, null, 2) : String(e);
|
|
1345
1345
|
function Ts(e, t = "") {
|
|
1346
1346
|
return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
|
|
1347
1347
|
}
|
|
@@ -1386,7 +1386,7 @@ function Os() {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
1388
|
}
|
|
1389
|
-
var ks = (e) => !
|
|
1389
|
+
var ks = (e) => !bs(e) || _s(e);
|
|
1390
1390
|
function As(e, t) {
|
|
1391
1391
|
if (ks(e) || ks(t)) throw Error("Invalid value");
|
|
1392
1392
|
let n = [{
|
|
@@ -1396,7 +1396,7 @@ function As(e, t) {
|
|
|
1396
1396
|
for (; n.length;) {
|
|
1397
1397
|
let { src: e, des: t } = n.pop();
|
|
1398
1398
|
Object.keys(e).forEach((r) => {
|
|
1399
|
-
r !== "__proto__" && (
|
|
1399
|
+
r !== "__proto__" && (bs(e[r]) && !bs(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : rs()), ks(t[r]) || ks(e[r]) ? t[r] = e[r] : n.push({
|
|
1400
1400
|
src: e[r],
|
|
1401
1401
|
des: t[r]
|
|
1402
1402
|
}));
|
|
@@ -2178,7 +2178,7 @@ function vc() {
|
|
|
2178
2178
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (as().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (as().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
2179
2179
|
}
|
|
2180
2180
|
function yc(e) {
|
|
2181
|
-
return
|
|
2181
|
+
return bs(e) && kc(e) === 0 && (gs(e, "b") || gs(e, "body"));
|
|
2182
2182
|
}
|
|
2183
2183
|
var bc = ["b", "body"];
|
|
2184
2184
|
function xc(e) {
|
|
@@ -2361,13 +2361,13 @@ function al(e) {
|
|
|
2361
2361
|
if (e.resolvedOnce && il != null) return il;
|
|
2362
2362
|
if (e.constructor.name === "Function") {
|
|
2363
2363
|
let t = e();
|
|
2364
|
-
if (
|
|
2364
|
+
if (xs(t)) throw tl(el.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
2365
2365
|
return il = t;
|
|
2366
2366
|
} else throw tl(el.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
2367
2367
|
} else throw tl(el.NOT_SUPPORT_LOCALE_TYPE);
|
|
2368
2368
|
}
|
|
2369
2369
|
function ol(e, t, n) {
|
|
2370
|
-
return [...new Set([n, ..._s(t) ? t :
|
|
2370
|
+
return [...new Set([n, ..._s(t) ? t : bs(t) ? Object.keys(t) : z(t) ? [t] : [n]])];
|
|
2371
2371
|
}
|
|
2372
2372
|
function sl(e, t, n) {
|
|
2373
2373
|
let r = z(n) ? n : Tl, i = e;
|
|
@@ -2377,7 +2377,7 @@ function sl(e, t, n) {
|
|
|
2377
2377
|
a = [];
|
|
2378
2378
|
let e = [n];
|
|
2379
2379
|
for (; _s(e);) e = cl(a, e, t);
|
|
2380
|
-
let o = _s(t) || !
|
|
2380
|
+
let o = _s(t) || !B(t) ? t : t.default ? t.default : null;
|
|
2381
2381
|
e = z(o) ? [o] : o, _s(e) && cl(a, e, !1), i.__localeChainCache.set(r, a);
|
|
2382
2382
|
}
|
|
2383
2383
|
return a;
|
|
@@ -2402,7 +2402,7 @@ function ul(e, t, n) {
|
|
|
2402
2402
|
if (!e.includes(t) && (r = !0, t)) {
|
|
2403
2403
|
r = t[t.length - 1] !== "!";
|
|
2404
2404
|
let i = t.replace(/!/g, "");
|
|
2405
|
-
e.push(i), (_s(n) ||
|
|
2405
|
+
e.push(i), (_s(n) || B(n)) && n[i] && (r = n[i]);
|
|
2406
2406
|
}
|
|
2407
2407
|
return r;
|
|
2408
2408
|
}
|
|
@@ -2503,16 +2503,16 @@ function _l(e) {
|
|
|
2503
2503
|
}
|
|
2504
2504
|
var vl = /* @__PURE__ */ new Map();
|
|
2505
2505
|
function yl(e, t) {
|
|
2506
|
-
return
|
|
2506
|
+
return bs(e) ? e[t] : null;
|
|
2507
2507
|
}
|
|
2508
2508
|
function bl(e, t) {
|
|
2509
|
-
if (!
|
|
2509
|
+
if (!bs(e)) return null;
|
|
2510
2510
|
let n = vl.get(t);
|
|
2511
2511
|
if (n || (n = _l(t), n && vl.set(t, n)), !n) return null;
|
|
2512
2512
|
let r = n.length, i = e, a = 0;
|
|
2513
2513
|
for (; a < r;) {
|
|
2514
2514
|
let e = n[a];
|
|
2515
|
-
if (Lc.includes(e) && yc(i) || !
|
|
2515
|
+
if (Lc.includes(e) && yc(i) || !bs(i) || !gs(i, e)) return null;
|
|
2516
2516
|
let t = i[e];
|
|
2517
2517
|
if (t === void 0 || vs(i)) return null;
|
|
2518
2518
|
i = t, a++;
|
|
@@ -2546,9 +2546,9 @@ function Cl(e, ...t) {
|
|
|
2546
2546
|
var wl = "11.4.5", Tl = "en-US", El = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
2547
2547
|
function Dl() {
|
|
2548
2548
|
return {
|
|
2549
|
-
upper: (e, t) => t === "text" && z(e) ? e.toUpperCase() : t === "vnode" &&
|
|
2550
|
-
lower: (e, t) => t === "text" && z(e) ? e.toLowerCase() : t === "vnode" &&
|
|
2551
|
-
capitalize: (e, t) => t === "text" && z(e) ? El(e) : t === "vnode" &&
|
|
2549
|
+
upper: (e, t) => t === "text" && z(e) ? e.toUpperCase() : t === "vnode" && bs(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
2550
|
+
lower: (e, t) => t === "text" && z(e) ? e.toLowerCase() : t === "vnode" && bs(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
2551
|
+
capitalize: (e, t) => t === "text" && z(e) ? El(e) : t === "vnode" && bs(e) && "__v_isVNode" in e ? El(e.children) : e
|
|
2552
2552
|
};
|
|
2553
2553
|
}
|
|
2554
2554
|
var Ol;
|
|
@@ -2567,9 +2567,9 @@ var Pl = null, Fl = /* @__NO_SIDE_EFFECTS__ */ () => Pl, Il = null, Ll = (e) =>
|
|
|
2567
2567
|
Il = e;
|
|
2568
2568
|
}, Rl = () => Il, zl = 0;
|
|
2569
2569
|
function Bl(e = {}) {
|
|
2570
|
-
let t = vs(e.onWarn) ? e.onWarn : Bo, n = z(e.version) ? e.version : wl, r = z(e.locale) || vs(e.locale) ? e.locale : Tl, i = vs(r) ? Tl : r, a = _s(e.fallbackLocale) ||
|
|
2570
|
+
let t = vs(e.onWarn) ? e.onWarn : Bo, n = z(e.version) ? e.version : wl, r = z(e.locale) || vs(e.locale) ? e.locale : Tl, i = vs(r) ? Tl : r, a = _s(e.fallbackLocale) || B(e.fallbackLocale) || z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = B(e.messages) ? e.messages : Vl(i), s = B(e.datetimeFormats) ? e.datetimeFormats : Vl(i), c = B(e.numberFormats) ? e.numberFormats : Vl(i), l = ts(rs(), e.modifiers, Dl()), u = e.pluralRules || rs(), d = vs(e.missing) ? e.missing : null, f = ys(e.missingWarn) || $o(e.missingWarn) ? e.missingWarn : !0, p = ys(e.fallbackWarn) || $o(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, h = !!e.unresolving, g = vs(e.postTranslation) ? e.postTranslation : null, _ = B(e.processor) ? e.processor : null, v = ys(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, b = vs(e.messageCompiler) ? e.messageCompiler : Ol;
|
|
2571
2571
|
process.env.NODE_ENV !== "production" && vs(e.messageCompiler) && Ho(Cl(xl.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
2572
|
-
let x = vs(e.messageResolver) ? e.messageResolver : Al || yl, S = vs(e.localeFallbacker) ? e.localeFallbacker : Ml || ol, C =
|
|
2572
|
+
let x = vs(e.messageResolver) ? e.messageResolver : Al || yl, S = vs(e.localeFallbacker) ? e.localeFallbacker : Ml || ol, C = bs(e.fallbackContext) ? e.fallbackContext : void 0, w = e, T = bs(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), E = bs(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), D = bs(w.__meta) ? w.__meta : {};
|
|
2573
2573
|
zl++;
|
|
2574
2574
|
let O = {
|
|
2575
2575
|
version: n,
|
|
@@ -2664,10 +2664,10 @@ function Xl(e, ...t) {
|
|
|
2664
2664
|
groupId: `${S}:${c}`
|
|
2665
2665
|
});
|
|
2666
2666
|
}
|
|
2667
|
-
if (_ = n[v] || {}, y = _[c],
|
|
2667
|
+
if (_ = n[v] || {}, y = _[c], B(y)) break;
|
|
2668
2668
|
Wl(e, c, v, f, S), b = x;
|
|
2669
2669
|
}
|
|
2670
|
-
if (!
|
|
2670
|
+
if (!B(y) || !z(v)) return r ? -1 : c;
|
|
2671
2671
|
let C = `${v}__${c}`;
|
|
2672
2672
|
es(d) || (C = `${C}__${JSON.stringify(d)}`);
|
|
2673
2673
|
let w = s.get(C);
|
|
@@ -2712,9 +2712,9 @@ function Ql(...e) {
|
|
|
2712
2712
|
s = t;
|
|
2713
2713
|
} else if (Zo(t)) s = t;
|
|
2714
2714
|
else throw tl(el.INVALID_ARGUMENT);
|
|
2715
|
-
return z(n) ? a.key = n :
|
|
2715
|
+
return z(n) ? a.key = n : B(n) && Object.keys(n).forEach((e) => {
|
|
2716
2716
|
Zl.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
2717
|
-
}), z(r) ? a.locale = r :
|
|
2717
|
+
}), z(r) ? a.locale = r : B(r) && (o = r), B(i) && (o = i), [
|
|
2718
2718
|
a.key || "",
|
|
2719
2719
|
s,
|
|
2720
2720
|
a,
|
|
@@ -2752,10 +2752,10 @@ function eu(e, ...t) {
|
|
|
2752
2752
|
groupId: `${S}:${c}`
|
|
2753
2753
|
});
|
|
2754
2754
|
}
|
|
2755
|
-
if (_ = n[v] || {}, y = _[c],
|
|
2755
|
+
if (_ = n[v] || {}, y = _[c], B(y)) break;
|
|
2756
2756
|
Wl(e, c, v, f, S), b = x;
|
|
2757
2757
|
}
|
|
2758
|
-
if (!
|
|
2758
|
+
if (!B(y) || !z(v)) return r ? -1 : c;
|
|
2759
2759
|
let C = `${v}__${c}`;
|
|
2760
2760
|
es(d) || (C = `${C}__${JSON.stringify(d)}`);
|
|
2761
2761
|
let w = s.get(C);
|
|
@@ -2787,9 +2787,9 @@ function nu(...e) {
|
|
|
2787
2787
|
let [t, n, r, i] = e, a = rs(), o = rs();
|
|
2788
2788
|
if (!Zo(t)) throw tl(el.INVALID_ARGUMENT);
|
|
2789
2789
|
let s = t;
|
|
2790
|
-
return z(n) ? a.key = n :
|
|
2790
|
+
return z(n) ? a.key = n : B(n) && Object.keys(n).forEach((e) => {
|
|
2791
2791
|
tu.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
2792
|
-
}), z(r) ? a.locale = r :
|
|
2792
|
+
}), z(r) ? a.locale = r : B(r) && (o = r), B(i) && (o = i), [
|
|
2793
2793
|
a.key || "",
|
|
2794
2794
|
s,
|
|
2795
2795
|
a,
|
|
@@ -2816,7 +2816,7 @@ function du(e = {}) {
|
|
|
2816
2816
|
Zo(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
2817
2817
|
let l = (e) => c[e];
|
|
2818
2818
|
function u(t, n) {
|
|
2819
|
-
return (vs(e.messages) ? e.messages(t, !!n) :
|
|
2819
|
+
return (vs(e.messages) ? e.messages(t, !!n) : bs(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : au);
|
|
2820
2820
|
}
|
|
2821
2821
|
let d = (t) => e.modifiers ? e.modifiers[t] : iu, f = vs(e.processor?.normalize) ? e.processor.normalize : su, p = vs(e.processor?.interpolate) ? e.processor.interpolate : cu, m = {
|
|
2822
2822
|
list: s,
|
|
@@ -2824,7 +2824,7 @@ function du(e = {}) {
|
|
|
2824
2824
|
plural: a,
|
|
2825
2825
|
linked: (e, ...t) => {
|
|
2826
2826
|
let [n, r] = t, i = "text", a = "";
|
|
2827
|
-
t.length === 1 ?
|
|
2827
|
+
t.length === 1 ? bs(n) ? (a = n.modifier || a, i = n.type || i) : z(n) && (a = n || a) : t.length === 2 && (z(n) && (a = n || a), z(r) && (i = r || i));
|
|
2828
2828
|
let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" && _s(s) && a ? s[0] : s;
|
|
2829
2829
|
return a ? d(a)(c, i) : c;
|
|
2830
2830
|
},
|
|
@@ -2865,7 +2865,7 @@ function mu(e, ...t) {
|
|
|
2865
2865
|
return T;
|
|
2866
2866
|
}
|
|
2867
2867
|
function hu(e) {
|
|
2868
|
-
_s(e.list) ? e.list = e.list.map((e) => z(e) ? ss(e) : e) :
|
|
2868
|
+
_s(e.list) ? e.list = e.list.map((e) => z(e) ? ss(e) : e) : bs(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2869
2869
|
z(e.named[t]) && (e.named[t] = ss(e.named[t]));
|
|
2870
2870
|
});
|
|
2871
2871
|
}
|
|
@@ -2951,7 +2951,7 @@ function yu(...e) {
|
|
|
2951
2951
|
let [t, n, r] = e, i = rs();
|
|
2952
2952
|
if (!z(t) && !Zo(t) && !pu(t) && !yc(t)) throw tl(el.INVALID_ARGUMENT);
|
|
2953
2953
|
let a = Zo(t) ? String(t) : (pu(t), t);
|
|
2954
|
-
return Zo(n) ? i.plural = n : z(n) ? i.default = n :
|
|
2954
|
+
return Zo(n) ? i.plural = n : z(n) ? i.default = n : B(n) && !es(n) ? i.named = n : _s(n) && (i.list = n), Zo(r) ? i.plural = r : z(r) ? i.default = r : B(r) && ts(i, r), [a, i];
|
|
2955
2955
|
}
|
|
2956
2956
|
function bu(e, t, n, r, i, a) {
|
|
2957
2957
|
return {
|
|
@@ -3140,13 +3140,13 @@ function Yu(e, ...t) {
|
|
|
3140
3140
|
return qo(Ju[e], ...t);
|
|
3141
3141
|
}
|
|
3142
3142
|
function Xu(e) {
|
|
3143
|
-
if (!
|
|
3144
|
-
for (let t in e) if (gs(e, t)) if (!t.includes("."))
|
|
3143
|
+
if (!bs(e) || yc(e)) return e;
|
|
3144
|
+
for (let t in e) if (gs(e, t)) if (!t.includes(".")) bs(e[t]) && Xu(e[t]);
|
|
3145
3145
|
else {
|
|
3146
3146
|
let n = t.split("."), r = n.length - 1, i = e, a = !1;
|
|
3147
3147
|
for (let e = 0; e < r; e++) {
|
|
3148
3148
|
if (n[e] === "__proto__") throw Error(`unsafe key: ${n[e]}`);
|
|
3149
|
-
if (n[e] in i || (i[n[e]] = rs()), !
|
|
3149
|
+
if (n[e] in i || (i[n[e]] = rs()), !bs(i[n[e]])) {
|
|
3150
3150
|
process.env.NODE_ENV !== "production" && Bo(Yu(qu.IGNORE_OBJ_FLATTEN, { key: n[e] })), a = !0;
|
|
3151
3151
|
break;
|
|
3152
3152
|
}
|
|
@@ -3154,13 +3154,13 @@ function Xu(e) {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
if (a || (yc(i) ? Lc.includes(n[r]) || delete e[t] : (i[n[r]] = e[t], delete e[t])), !yc(i)) {
|
|
3156
3156
|
let e = i[n[r]];
|
|
3157
|
-
|
|
3157
|
+
bs(e) && Xu(e);
|
|
3158
3158
|
}
|
|
3159
3159
|
}
|
|
3160
3160
|
return e;
|
|
3161
3161
|
}
|
|
3162
3162
|
function Zu(e, t) {
|
|
3163
|
-
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o =
|
|
3163
|
+
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = B(n) ? n : _s(r) ? rs() : { [e]: rs() };
|
|
3164
3164
|
if (_s(r) && r.forEach((e) => {
|
|
3165
3165
|
if ("locale" in e && "resource" in e) {
|
|
3166
3166
|
let { locale: t, resource: n } = e;
|
|
@@ -3173,7 +3173,7 @@ function Qu(e) {
|
|
|
3173
3173
|
return e.type;
|
|
3174
3174
|
}
|
|
3175
3175
|
function $u(e, t, n) {
|
|
3176
|
-
let r =
|
|
3176
|
+
let r = bs(t.messages) ? t.messages : rs();
|
|
3177
3177
|
"__i18nGlobal" in n && (r = Zu(e.locale.value, {
|
|
3178
3178
|
messages: r,
|
|
3179
3179
|
__i18n: n.__i18nGlobal
|
|
@@ -3181,13 +3181,13 @@ function $u(e, t, n) {
|
|
|
3181
3181
|
let i = Object.keys(r);
|
|
3182
3182
|
if (i.length && i.forEach((t) => {
|
|
3183
3183
|
e.mergeLocaleMessage(t, r[t]);
|
|
3184
|
-
}),
|
|
3184
|
+
}), bs(t.datetimeFormats)) {
|
|
3185
3185
|
let n = Object.keys(t.datetimeFormats);
|
|
3186
3186
|
n.length && n.forEach((n) => {
|
|
3187
3187
|
e.mergeDateTimeFormat(n, t.datetimeFormats[n]);
|
|
3188
3188
|
});
|
|
3189
3189
|
}
|
|
3190
|
-
if (
|
|
3190
|
+
if (bs(t.numberFormats)) {
|
|
3191
3191
|
let n = Object.keys(t.numberFormats);
|
|
3192
3192
|
n.length && n.forEach((n) => {
|
|
3193
3193
|
e.mergeNumberFormat(n, t.numberFormats[n]);
|
|
@@ -3206,7 +3206,7 @@ function ad(e) {
|
|
|
3206
3206
|
return ((t, n, r, i) => e(n, r, td() || void 0, i));
|
|
3207
3207
|
}
|
|
3208
3208
|
function od(e = {}) {
|
|
3209
|
-
let { __root: t, __injectWithOption: n } = e, r = t === void 0, i = e.flatJson, o = Uo ? j : ue, s = ys(e.inheritLocale) ? e.inheritLocale : !0, c = o(t && s ? t.locale.value : z(e.locale) ? e.locale : Tl), l = o(t && s ? t.fallbackLocale.value : z(e.fallbackLocale) || _s(e.fallbackLocale) ||
|
|
3209
|
+
let { __root: t, __injectWithOption: n } = e, r = t === void 0, i = e.flatJson, o = Uo ? j : ue, s = ys(e.inheritLocale) ? e.inheritLocale : !0, c = o(t && s ? t.locale.value : z(e.locale) ? e.locale : Tl), l = o(t && s ? t.fallbackLocale.value : z(e.fallbackLocale) || _s(e.fallbackLocale) || B(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value), u = o(Zu(c.value, e)), d = o(B(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(B(e.numberFormats) ? e.numberFormats : { [c.value]: {} }), p = t ? t.missingWarn : ys(e.missingWarn) || $o(e.missingWarn) ? e.missingWarn : !0, m = t ? t.fallbackWarn : ys(e.fallbackWarn) || $o(e.fallbackWarn) ? e.fallbackWarn : !0, h = t ? t.fallbackRoot : ys(e.fallbackRoot) ? e.fallbackRoot : !0, g = !!e.fallbackFormat, _ = vs(e.missing) ? e.missing : null, v = vs(e.missing) ? ad(e.missing) : null, y = vs(e.postTranslation) ? e.postTranslation : null, b = t ? t.warnHtmlMessage : ys(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, x = !!e.escapeParameter, S = t ? t.modifiers : B(e.modifiers) ? e.modifiers : {}, C = e.pluralRules || t && t.pluralRules, w;
|
|
3210
3210
|
w = (() => {
|
|
3211
3211
|
r && Ll(null);
|
|
3212
3212
|
let t = {
|
|
@@ -3228,7 +3228,7 @@ function od(e = {}) {
|
|
|
3228
3228
|
messageCompiler: e.messageCompiler,
|
|
3229
3229
|
__meta: { framework: "vue" }
|
|
3230
3230
|
};
|
|
3231
|
-
t.datetimeFormats = d.value, t.numberFormats = f.value, t.__datetimeFormatters =
|
|
3231
|
+
t.datetimeFormats = d.value, t.numberFormats = f.value, t.__datetimeFormatters = B(w) ? w.__datetimeFormatters : void 0, t.__numberFormatters = B(w) ? w.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (t.__v_emitter = B(w) ? w.__v_emitter : void 0);
|
|
3232
3232
|
let n = Bl(t);
|
|
3233
3233
|
return r && Ll(n), n;
|
|
3234
3234
|
})(), Gl(w, c.value, l.value);
|
|
@@ -3300,7 +3300,7 @@ function od(e = {}) {
|
|
|
3300
3300
|
}
|
|
3301
3301
|
function M(...e) {
|
|
3302
3302
|
let [t, n, r] = e;
|
|
3303
|
-
if (r && !
|
|
3303
|
+
if (r && !bs(r)) throw Lu(Iu.INVALID_ARGUMENT);
|
|
3304
3304
|
return oe(t, n, ts({ resolvedMessage: !0 }, r || {}));
|
|
3305
3305
|
}
|
|
3306
3306
|
function N(...e) {
|
|
@@ -3588,7 +3588,7 @@ function gd(e) {
|
|
|
3588
3588
|
let t = {};
|
|
3589
3589
|
return Object.keys(e).forEach((n) => {
|
|
3590
3590
|
let r = e[n];
|
|
3591
|
-
vs(r) && "source" in r ? t[n] = bd(r) : yc(r) && r.loc && r.loc.source ? t[n] = r.loc.source :
|
|
3591
|
+
vs(r) && "source" in r ? t[n] = bd(r) : yc(r) && r.loc && r.loc.source ? t[n] = r.loc.source : bs(r) ? t[n] = gd(r) : t[n] = r;
|
|
3592
3592
|
}), t;
|
|
3593
3593
|
}
|
|
3594
3594
|
var _d = {
|
|
@@ -3717,12 +3717,12 @@ function Dd(e, t) {
|
|
|
3717
3717
|
let n = Cd(e.nodeId, t);
|
|
3718
3718
|
if (n) {
|
|
3719
3719
|
let [t] = e.path;
|
|
3720
|
-
t === "locale" && z(e.state.value) ? n.locale.value = e.state.value : t === "fallbackLocale" && (z(e.state.value) || _s(e.state.value) ||
|
|
3720
|
+
t === "locale" && z(e.state.value) ? n.locale.value = e.state.value : t === "fallbackLocale" && (z(e.state.value) || _s(e.state.value) || bs(e.state.value)) ? n.fallbackLocale.value = e.state.value : t === "inheritLocale" && ys(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3721
3721
|
}
|
|
3722
3722
|
}
|
|
3723
3723
|
function Od(e) {
|
|
3724
|
-
let t = z(e.locale) ? e.locale : Tl, n = z(e.fallbackLocale) || _s(e.fallbackLocale) ||
|
|
3725
|
-
if (
|
|
3724
|
+
let t = z(e.locale) ? e.locale : Tl, n = z(e.fallbackLocale) || _s(e.fallbackLocale) || B(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = vs(e.missing) ? e.missing : void 0, i = ys(e.silentTranslationWarn) || $o(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, a = ys(e.silentFallbackWarn) || $o(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = ys(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, c = B(e.modifiers) ? e.modifiers : {}, l = e.pluralizationRules, u = vs(e.postTranslation) ? e.postTranslation : void 0, d = z(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, f = !!e.escapeParameterHtml, p = ys(e.sync) ? e.sync : !0, m = e.messages;
|
|
3725
|
+
if (B(e.sharedMessages)) {
|
|
3726
3726
|
let t = e.sharedMessages;
|
|
3727
3727
|
m = Object.keys(t).reduce((e, n) => (ts(e[n] || (e[n] = {}), t[n]), e), m || {});
|
|
3728
3728
|
}
|
|
@@ -3986,8 +3986,8 @@ var Fd = /* @__PURE__ */ g({
|
|
|
3986
3986
|
e.locale && (a.locale = e.locale), e.plural !== void 0 && (a.plural = z(e.plural) ? +e.plural : e.plural);
|
|
3987
3987
|
let o = Nd(t, r);
|
|
3988
3988
|
return i[zu](e.keypath, o, a);
|
|
3989
|
-
}, o = ts(rs(), r), s = z(e.tag) ||
|
|
3990
|
-
return
|
|
3989
|
+
}, o = ts(rs(), r), s = z(e.tag) || bs(e.tag) ? e.tag : Pd();
|
|
3990
|
+
return bs(s) ? x(s, o, { default: a }) : x(s, o, a());
|
|
3991
3991
|
};
|
|
3992
3992
|
}
|
|
3993
3993
|
});
|
|
@@ -3999,7 +3999,7 @@ function Ld(e, t, n, r) {
|
|
|
3999
3999
|
return () => {
|
|
4000
4000
|
let t = () => {
|
|
4001
4001
|
let t = { part: !0 }, a = rs();
|
|
4002
|
-
e.locale && (t.locale = e.locale), z(e.format) ? t.key = e.format :
|
|
4002
|
+
e.locale && (t.locale = e.locale), z(e.format) ? t.key = e.format : bs(e.format) && (z(e.format.key) && (t.key = e.format.key), a = Object.keys(e.format).reduce((t, r) => n.includes(r) ? ts(rs(), t, { [r]: e.format[r] }) : t, rs()));
|
|
4003
4003
|
let o = r(e.value, t, a), s = [t.key];
|
|
4004
4004
|
return _s(o) ? s = o.map((e, t) => {
|
|
4005
4005
|
let n = i[e.type], r = n ? n({
|
|
@@ -4009,8 +4009,8 @@ function Ld(e, t, n, r) {
|
|
|
4009
4009
|
}) : [e.value];
|
|
4010
4010
|
return Id(r) && (r[0].key = `${e.type}-${t}`), r;
|
|
4011
4011
|
}) : z(o) && (s = [o]), s;
|
|
4012
|
-
}, o = ts(rs(), a), s = z(e.tag) ||
|
|
4013
|
-
return
|
|
4012
|
+
}, o = ts(rs(), a), s = z(e.tag) || bs(e.tag) ? e.tag : Pd();
|
|
4013
|
+
return bs(s) ? x(s, o, { default: t }) : x(s, o, t());
|
|
4014
4014
|
};
|
|
4015
4015
|
}
|
|
4016
4016
|
var Rd = /* @__PURE__ */ g({
|
|
@@ -4071,7 +4071,7 @@ function Bd(e) {
|
|
|
4071
4071
|
}
|
|
4072
4072
|
function Vd(e) {
|
|
4073
4073
|
if (z(e)) return { path: e };
|
|
4074
|
-
if (
|
|
4074
|
+
if (B(e)) {
|
|
4075
4075
|
if (!("path" in e)) throw Lu(Iu.REQUIRED_VALUE, "path");
|
|
4076
4076
|
return e;
|
|
4077
4077
|
} else throw Lu(Iu.INVALID_VALUE);
|
|
@@ -4085,7 +4085,7 @@ function Hd(e) {
|
|
|
4085
4085
|
];
|
|
4086
4086
|
}
|
|
4087
4087
|
function Ud(e, t, ...n) {
|
|
4088
|
-
let r =
|
|
4088
|
+
let r = B(n[0]) ? n[0] : {};
|
|
4089
4089
|
(!ys(r.globalInstall) || r.globalInstall) && ([Fd.name, "I18nT"].forEach((t) => e.component(t, Fd)), [Rd.name, "I18nN"].forEach((t) => e.component(t, Rd)), [rf.name, "I18nD"].forEach((t) => e.component(t, rf))), e.directive("t", Bd(t));
|
|
4090
4090
|
}
|
|
4091
4091
|
var Wd = /* #__PURE__*/ Jo("global-vue-i18n");
|
|
@@ -4107,7 +4107,7 @@ function Gd(e = {}) {
|
|
|
4107
4107
|
return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
|
|
4108
4108
|
},
|
|
4109
4109
|
async install(e, ...r) {
|
|
4110
|
-
if (process.env.NODE_ENV !== "production" && (e.__VUE_I18N__ = u), e.__VUE_I18N_SYMBOL__ = o, e.provide(e.__VUE_I18N_SYMBOL__, u),
|
|
4110
|
+
if (process.env.NODE_ENV !== "production" && (e.__VUE_I18N__ = u), e.__VUE_I18N_SYMBOL__ = o, e.provide(e.__VUE_I18N_SYMBOL__, u), B(r[0])) {
|
|
4111
4111
|
let e = r[0];
|
|
4112
4112
|
u.__composerExtend = e.__composerExtend, u.__vueI18nExtend = e.__vueI18nExtend;
|
|
4113
4113
|
}
|
|
@@ -32143,19 +32143,19 @@ var mX = ["src", "alt"], hX = {
|
|
|
32143
32143
|
deviceManager: null,
|
|
32144
32144
|
incomingCall: null,
|
|
32145
32145
|
call: null
|
|
32146
|
-
}), ce = j(null), le = j(null), ue = j(null), de = j(null), fe = j(null), F = j(
|
|
32147
|
-
switch (
|
|
32148
|
-
case 0: return
|
|
32149
|
-
case 1: return
|
|
32150
|
-
default: return
|
|
32146
|
+
}), ce = j(null), le = j(null), ue = j(null), de = j(null), fe = j(null), F = j(null), pe = j(!1), me = j(0), he = j(0), ge = j(null), _e = j(!1), ve = j(""), ye = j(""), be = j(null), xe = j(null), Se = null, Ce = null, we = null, Te = a(() => {
|
|
32147
|
+
switch (me.value) {
|
|
32148
|
+
case 0: return L.value.hasNoAvailableCamera;
|
|
32149
|
+
case 1: return L.value.hasOneAvailableCamera;
|
|
32150
|
+
default: return L.value.hasMultipleAvailableCameras;
|
|
32151
32151
|
}
|
|
32152
|
-
}),
|
|
32152
|
+
}), Ee = a(() => {
|
|
32153
32153
|
let e = navigator.userAgent;
|
|
32154
32154
|
return /Mobi/.test(e) && !D.value;
|
|
32155
|
-
}),
|
|
32155
|
+
}), De = a(() => {
|
|
32156
32156
|
let e = navigator.userAgent, t = e.indexOf("Android") !== -1, n = /Mobi/.test(e), r = /iPad|iPhone|iPod/.test(e) && !window.MSStream;
|
|
32157
32157
|
return !(t && n || r);
|
|
32158
|
-
}),
|
|
32158
|
+
}), Oe = a(() => !ae.value?.video && He.value), ke = a(() => !ae.value?.audio && He.value), Ae = a(() => oe.value === i.Declined ? "incoming--declined" : "incoming--loading");
|
|
32159
32159
|
a(() => {
|
|
32160
32160
|
switch (ne.value) {
|
|
32161
32161
|
case 0: return "weak";
|
|
@@ -32171,183 +32171,195 @@ var mX = ["src", "alt"], hX = {
|
|
|
32171
32171
|
default: return null;
|
|
32172
32172
|
}
|
|
32173
32173
|
});
|
|
32174
|
-
let
|
|
32175
|
-
function
|
|
32174
|
+
let je = a(() => E.value.videoCallTemplate || E.value), Me = a(() => je.value.actions || je.value), Ne = a(() => je.value.help || je.value), Pe = a(() => je.value.permissions || je.value), L = a(() => je.value.cameraAvailability || je.value), Fe = a(() => D.value ? Me.value.stopSharingScreen : Me.value.shareScreen), Ie = a(() => Ne.value.placeholderSettingsHelpTitle), Le = a(() => Ne.value.placeholderSettingsHelpMessage), Re = a(() => oe.value === i.Declined), ze = a(() => oe.value === i.HangedUp), Be = a(() => oe.value === i.Connected), Ve = a(() => !Be.value), He = a(() => oe.value === i.DevicePermissionDenied), Ue = a(() => je.value.statusTextMessage || je.value), We = a(() => je.value.statusDetailMessage || je.value), Ge = a(() => b.participantRole);
|
|
32175
|
+
function Ke(e) {
|
|
32176
32176
|
if (typeof e != "string") return e;
|
|
32177
|
-
let t = e.replaceAll("{participantRole}",
|
|
32177
|
+
let t = e.replaceAll("{participantRole}", Ge.value);
|
|
32178
32178
|
return t && t.charAt(0).toLocaleUpperCase() + t.slice(1);
|
|
32179
32179
|
}
|
|
32180
|
-
let
|
|
32180
|
+
let qe = a(() => {
|
|
32181
32181
|
switch (oe.value) {
|
|
32182
|
-
case i.Initializing: return
|
|
32183
|
-
case i.Dialing: return
|
|
32184
|
-
case i.Ringing: return
|
|
32185
|
-
case i.Answered: return
|
|
32186
|
-
case i.Connected: return
|
|
32187
|
-
case i.Declined: return
|
|
32188
|
-
case i.HangedUp: return
|
|
32189
|
-
case i.DevicePermissionDenied: return
|
|
32190
|
-
}
|
|
32191
|
-
}),
|
|
32182
|
+
case i.Initializing: return Ke(Ue.value.initializing);
|
|
32183
|
+
case i.Dialing: return Ke(Ue.value.dialing);
|
|
32184
|
+
case i.Ringing: return Ke(Ue.value.ringing);
|
|
32185
|
+
case i.Answered: return Ke(Ue.value.answered);
|
|
32186
|
+
case i.Connected: return Ke(Ue.value.connected);
|
|
32187
|
+
case i.Declined: return Ke(Ue.value.videoCallDeclined);
|
|
32188
|
+
case i.HangedUp: return Ke(Ue.value.videoCallHangedUp);
|
|
32189
|
+
case i.DevicePermissionDenied: return Ke(Ue.value.devicePermissionDenied);
|
|
32190
|
+
}
|
|
32191
|
+
}), Je = a(() => ve.value || qe.value), Ye = a(() => ye.value), Xe = a(() => ee.value ? ".incoming__screenshare" : ".incoming__video");
|
|
32192
32192
|
te(() => {
|
|
32193
|
-
|
|
32193
|
+
Pt(), Qe(), xe.value = window.setInterval(ct, 5e3);
|
|
32194
32194
|
}), re(() => {
|
|
32195
|
-
|
|
32195
|
+
ge.value && window.clearInterval(ge.value), xe.value && window.clearInterval(xe.value), bt(), Ze(), Mt();
|
|
32196
32196
|
});
|
|
32197
|
-
function
|
|
32198
|
-
|
|
32199
|
-
}
|
|
32200
|
-
function
|
|
32201
|
-
|
|
32202
|
-
oe.value === i.Initializing && (
|
|
32203
|
-
}, 3e4) : oe.value === i.Dialing ?
|
|
32204
|
-
oe.value === i.Dialing && (
|
|
32205
|
-
}, 1e4) : oe.value === i.Connected && (
|
|
32206
|
-
oe.value === i.Connected && (
|
|
32197
|
+
function Ze() {
|
|
32198
|
+
Se &&= (window.clearTimeout(Se), null), Ce &&= (window.clearTimeout(Ce), null), we &&= (window.clearTimeout(we), null);
|
|
32199
|
+
}
|
|
32200
|
+
function Qe() {
|
|
32201
|
+
Ze(), oe.value === i.Initializing ? Se = window.setTimeout(() => {
|
|
32202
|
+
oe.value === i.Initializing && (ve.value = Ke(Ue.value.callNotDelivered), ye.value = Ke(We.value.callNotDeliveredDetail));
|
|
32203
|
+
}, 3e4) : oe.value === i.Dialing ? Ce = window.setTimeout(() => {
|
|
32204
|
+
oe.value === i.Dialing && (ve.value = "", ye.value = Ke(We.value.notAnsweredDetail));
|
|
32205
|
+
}, 1e4) : oe.value === i.Connected && (we = window.setTimeout(() => {
|
|
32206
|
+
oe.value === i.Connected && (ye.value = Ke(We.value.noVideoHint));
|
|
32207
32207
|
}, 5e3));
|
|
32208
32208
|
}
|
|
32209
|
-
function
|
|
32209
|
+
function $e(e) {
|
|
32210
32210
|
[
|
|
32211
32211
|
i.Declined,
|
|
32212
32212
|
i.HangedUp,
|
|
32213
32213
|
i.DevicePermissionDenied
|
|
32214
|
-
].includes(oe.value) || (oe.value = e,
|
|
32215
|
-
}
|
|
32216
|
-
function Qe() {
|
|
32217
|
-
Ze(i.Declined);
|
|
32218
|
-
}
|
|
32219
|
-
function $e() {
|
|
32220
|
-
Ze(i.Answered);
|
|
32214
|
+
].includes(oe.value) || (oe.value = e, ve.value = "", ye.value = "", Qe());
|
|
32221
32215
|
}
|
|
32222
32216
|
function et() {
|
|
32223
|
-
|
|
32217
|
+
$e(i.Declined);
|
|
32224
32218
|
}
|
|
32225
32219
|
function tt() {
|
|
32226
|
-
|
|
32220
|
+
$e(i.Answered);
|
|
32227
32221
|
}
|
|
32228
|
-
|
|
32229
|
-
|
|
32222
|
+
function nt() {
|
|
32223
|
+
oe.value !== i.Connected && $e(i.Dialing);
|
|
32230
32224
|
}
|
|
32231
|
-
function rt(
|
|
32232
|
-
|
|
32225
|
+
function rt() {
|
|
32226
|
+
oe.value !== i.DevicePermissionDenied && !b.isCallee && ft();
|
|
32233
32227
|
}
|
|
32234
|
-
function it() {
|
|
32235
|
-
|
|
32228
|
+
async function it() {
|
|
32229
|
+
$e(i.HangedUp), ae.value.video && At();
|
|
32236
32230
|
}
|
|
32237
|
-
function at() {
|
|
32238
|
-
|
|
32231
|
+
function at(e) {
|
|
32232
|
+
$e(i.HangedUp), ye.value = yt(e);
|
|
32239
32233
|
}
|
|
32240
32234
|
function ot() {
|
|
32241
|
-
|
|
32242
|
-
let e = /* @__PURE__ */ new Date(), t = new Date(ve.value), n = Math.abs(e.getTime() - t.getTime()), r = Math.ceil(n / 1e3);
|
|
32243
|
-
r >= 40 ? (ge.value = Ve.value.connectionIssues, _e.value = He.value.connectionIssuesStrong, ne.value = 0) : r > 20 && (ge.value = Ve.value.connectionIssues, _e.value = He.value.connectionIssuesMedium, ne.value = 1);
|
|
32235
|
+
ve.value = Ke(Ue.value.signalHold), ye.value = Ke(We.value.signalHoldDetail);
|
|
32244
32236
|
}
|
|
32245
|
-
|
|
32246
|
-
|
|
32237
|
+
function st() {
|
|
32238
|
+
be.value = /* @__PURE__ */ new Date();
|
|
32239
|
+
}
|
|
32240
|
+
function ct() {
|
|
32241
|
+
if (!be.value || oe.value === i.HangedUp) return;
|
|
32242
|
+
let e = /* @__PURE__ */ new Date(), t = new Date(be.value), n = Math.abs(e.getTime() - t.getTime()), r = Math.ceil(n / 1e3);
|
|
32243
|
+
r >= 40 ? (ve.value = Ue.value.connectionIssues, ye.value = We.value.connectionIssuesStrong, ne.value = 0) : r > 20 && (ve.value = Ue.value.connectionIssues, ye.value = We.value.connectionIssuesMedium, ne.value = 1);
|
|
32244
|
+
}
|
|
32245
|
+
async function lt(e) {
|
|
32246
|
+
await Nt(), N.client = w(new f());
|
|
32247
32247
|
let t = new y(e);
|
|
32248
32248
|
if (N.agent = w(await N.client.createCallAgent(t)), N.deviceManager = await N.client.getDeviceManager(), ae.value = await N.deviceManager.askDevicePermission({
|
|
32249
32249
|
video: !0,
|
|
32250
32250
|
audio: !0
|
|
32251
|
-
}), (await N.deviceManager.getCameras()).length || (ae.value.video = !1),
|
|
32252
|
-
|
|
32251
|
+
}), (await N.deviceManager.getCameras()).length || (ae.value.video = !1), ge.value = window.setInterval(At, 5e3), !ae.value.audio || !ae.value.video) {
|
|
32252
|
+
$e(i.DevicePermissionDenied);
|
|
32253
32253
|
return;
|
|
32254
32254
|
}
|
|
32255
|
-
N.agent.on("incomingCall",
|
|
32255
|
+
N.agent.on("incomingCall", ut), b.isCallee ? x("ready") : x("start-call");
|
|
32256
32256
|
}
|
|
32257
|
-
async function
|
|
32258
|
-
if (!
|
|
32259
|
-
|
|
32257
|
+
async function ut(e) {
|
|
32258
|
+
if (!_e.value) try {
|
|
32259
|
+
_e.value = !0, N.incomingCall = e.incomingCall, await pt();
|
|
32260
32260
|
} catch (e) {
|
|
32261
32261
|
console.log("error occured during starting call", e);
|
|
32262
32262
|
} finally {
|
|
32263
|
-
|
|
32263
|
+
_e.value = !1;
|
|
32264
32264
|
}
|
|
32265
32265
|
}
|
|
32266
|
-
async function
|
|
32267
|
-
let e = await
|
|
32266
|
+
async function dt() {
|
|
32267
|
+
let e = await mt();
|
|
32268
32268
|
return e ? { localVideoStreams: [e] } : void 0;
|
|
32269
32269
|
}
|
|
32270
|
-
async function
|
|
32270
|
+
async function ft() {
|
|
32271
32271
|
try {
|
|
32272
|
-
|
|
32273
|
-
let e = { videoOptions: await
|
|
32274
|
-
N.call = N.agent.startCall(t, e),
|
|
32272
|
+
$e(i.Dialing);
|
|
32273
|
+
let e = { videoOptions: await dt() }, t = [{ communicationUserId: b.participant.videoCallIdentityId }];
|
|
32274
|
+
N.call = N.agent.startCall(t, e), gt(), ht();
|
|
32275
32275
|
} catch (e) {
|
|
32276
32276
|
console.error(e);
|
|
32277
32277
|
}
|
|
32278
32278
|
}
|
|
32279
|
-
async function
|
|
32280
|
-
let e = await
|
|
32279
|
+
async function pt() {
|
|
32280
|
+
let e = await dt();
|
|
32281
32281
|
try {
|
|
32282
32282
|
N.call = await N.incomingCall.accept({ videoOptions: e });
|
|
32283
32283
|
} catch (e) {
|
|
32284
32284
|
console.error("Error occurred during accepting call", e);
|
|
32285
32285
|
}
|
|
32286
|
-
|
|
32286
|
+
gt(), ht();
|
|
32287
32287
|
}
|
|
32288
|
-
async function
|
|
32288
|
+
async function mt() {
|
|
32289
32289
|
let e = (await N.deviceManager.getCameras())[0];
|
|
32290
32290
|
if (e) return new g(e);
|
|
32291
32291
|
console.error("No camera device found on the system");
|
|
32292
32292
|
}
|
|
32293
|
-
function
|
|
32294
|
-
N.call.on("stateChanged",
|
|
32295
|
-
e.added.forEach(
|
|
32296
|
-
}), N.call.remoteParticipants.forEach(
|
|
32297
|
-
e.added.forEach(
|
|
32293
|
+
function ht() {
|
|
32294
|
+
N.call.on("stateChanged", vt), N.call.on("localVideoStreamsUpdated", (e) => {
|
|
32295
|
+
e.added.forEach(St), e.removed.forEach(xt);
|
|
32296
|
+
}), N.call.remoteParticipants.forEach(wt), N.call.on("remoteParticipantsUpdated", (e) => {
|
|
32297
|
+
e.added.forEach(wt);
|
|
32298
32298
|
}), N.call.on("isScreenSharingOnChanged", () => {
|
|
32299
32299
|
D.value = N.call.isScreenSharingOn;
|
|
32300
32300
|
});
|
|
32301
32301
|
}
|
|
32302
|
-
function
|
|
32303
|
-
M.value = N.call.feature(_.UserFacingDiagnostics), M.value.media.on("diagnosticChanged",
|
|
32302
|
+
function gt() {
|
|
32303
|
+
M.value = N.call.feature(_.UserFacingDiagnostics), M.value.media.on("diagnosticChanged", _t), M.value.network.on("diagnosticChanged", _t);
|
|
32304
32304
|
}
|
|
32305
|
-
function
|
|
32305
|
+
function _t(e) {
|
|
32306
32306
|
(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);
|
|
32307
32307
|
}
|
|
32308
|
-
function
|
|
32308
|
+
function vt() {
|
|
32309
32309
|
switch (N.call.state) {
|
|
32310
32310
|
case "EarlyMedia":
|
|
32311
|
-
|
|
32311
|
+
$e(i.Dialing);
|
|
32312
32312
|
break;
|
|
32313
32313
|
case "Ringing":
|
|
32314
|
-
|
|
32314
|
+
$e(i.Ringing);
|
|
32315
32315
|
break;
|
|
32316
32316
|
case "Connected":
|
|
32317
|
-
|
|
32317
|
+
$e(i.Connected);
|
|
32318
32318
|
break;
|
|
32319
32319
|
case "Disconnected":
|
|
32320
32320
|
let e = N.call.callEndReason;
|
|
32321
|
-
console.log("Call end reason:", e), console.log("Code:", e?.code), console.log("SubCode:", e?.subCode),
|
|
32321
|
+
console.log("Call end reason:", e), console.log("Code:", e?.code), console.log("SubCode:", e?.subCode), it();
|
|
32322
32322
|
break;
|
|
32323
32323
|
}
|
|
32324
32324
|
}
|
|
32325
|
-
function
|
|
32325
|
+
function yt(e) {
|
|
32326
32326
|
let t = String(e);
|
|
32327
|
-
return
|
|
32327
|
+
return Ke(je.value.endReasons?.[t] || "");
|
|
32328
32328
|
}
|
|
32329
|
-
function
|
|
32330
|
-
fe.value?.dispose(), fe.value = null, de.value = null;
|
|
32329
|
+
function bt() {
|
|
32330
|
+
fe.value?.dispose(), fe.value = null, de.value = null, F.value = null;
|
|
32331
32331
|
}
|
|
32332
|
-
async function
|
|
32333
|
-
if (!e || e.mediaStreamType !== "ScreenSharing" ||
|
|
32334
|
-
|
|
32332
|
+
async function xt(e) {
|
|
32333
|
+
if (!e || e.mediaStreamType !== "ScreenSharing" || F.value !== e) return;
|
|
32334
|
+
bt();
|
|
32335
32335
|
let t = document.querySelector(".outgoing__screenshare");
|
|
32336
32336
|
t.replaceChildren(), t.style.display = "none";
|
|
32337
32337
|
let n = document.querySelector(".outgoing__video");
|
|
32338
32338
|
n.style.display = "flex";
|
|
32339
32339
|
}
|
|
32340
|
-
async function
|
|
32340
|
+
async function St(e) {
|
|
32341
32341
|
if (!e || e.mediaStreamType !== "ScreenSharing") return;
|
|
32342
|
-
|
|
32343
|
-
let t =
|
|
32344
|
-
|
|
32345
|
-
|
|
32346
|
-
|
|
32347
|
-
|
|
32348
|
-
|
|
32342
|
+
bt();
|
|
32343
|
+
let t = w(new h(e));
|
|
32344
|
+
F.value = e, fe.value = t;
|
|
32345
|
+
try {
|
|
32346
|
+
let n = await t.createView();
|
|
32347
|
+
if (F.value !== e) {
|
|
32348
|
+
t.dispose();
|
|
32349
|
+
return;
|
|
32350
|
+
}
|
|
32351
|
+
de.value = n;
|
|
32352
|
+
let r = document.querySelector(".outgoing__screenshare");
|
|
32353
|
+
r.replaceChildren(n.target), r.style.display = "flex";
|
|
32354
|
+
let i = document.querySelector(".outgoing__video");
|
|
32355
|
+
i.style.display = "none";
|
|
32356
|
+
let a = r.querySelector("video");
|
|
32357
|
+
a.style.objectFit = "contain";
|
|
32358
|
+
} catch (e) {
|
|
32359
|
+
fe.value === t ? bt() : t.dispose(), console.error("Failed to render local screen share", e);
|
|
32360
|
+
}
|
|
32349
32361
|
}
|
|
32350
|
-
async function
|
|
32362
|
+
async function Ct(e) {
|
|
32351
32363
|
if (e && e.source && ce.value && ce.value.source && ce.value.source.id == e.source.id) return !0;
|
|
32352
32364
|
try {
|
|
32353
32365
|
le.value = new h(e);
|
|
@@ -32358,60 +32370,60 @@ var mX = ["src", "alt"], hX = {
|
|
|
32358
32370
|
}
|
|
32359
32371
|
return ce.value = e, !0;
|
|
32360
32372
|
}
|
|
32361
|
-
async function
|
|
32362
|
-
e.videoStreams.forEach(
|
|
32363
|
-
e.added.forEach(
|
|
32373
|
+
async function wt(e) {
|
|
32374
|
+
e.videoStreams.forEach(Tt), e.on("videoStreamsUpdated", (e) => {
|
|
32375
|
+
e.added.forEach(Tt);
|
|
32364
32376
|
});
|
|
32365
32377
|
}
|
|
32366
|
-
async function
|
|
32367
|
-
if (e.mediaStreamType === "Video" && (await
|
|
32378
|
+
async function Tt(e) {
|
|
32379
|
+
if (e.mediaStreamType === "Video" && (await Et(e), e.on("isAvailableChanged", async () => await Et(e))), e.mediaStreamType === "ScreenSharing" && e.on("isAvailableChanged", Ot), e.mediaStreamType === "ScreenSharing" && e.isAvailable) {
|
|
32368
32380
|
ue.value = new h(e);
|
|
32369
32381
|
let t = await ue.value.createView(), n = document.querySelector(".incoming__screenshare");
|
|
32370
|
-
|
|
32382
|
+
Dt(!0), ee.value = !0, jt(".incoming__screenshare"), n.replaceChildren(t.target);
|
|
32371
32383
|
}
|
|
32372
32384
|
}
|
|
32373
|
-
async function
|
|
32385
|
+
async function Et(e) {
|
|
32374
32386
|
if (!e.isAvailable) return;
|
|
32375
32387
|
ue.value = new h(e);
|
|
32376
32388
|
let t = await ue.value.createView(), n = document.querySelector(".incoming__video");
|
|
32377
|
-
n.hidden = !1, n.replaceChildren(t.target),
|
|
32389
|
+
n.hidden = !1, n.replaceChildren(t.target), jt(".incoming__video"), Dt(!1);
|
|
32378
32390
|
}
|
|
32379
|
-
function
|
|
32391
|
+
function Dt(e) {
|
|
32380
32392
|
let t = document.querySelector(".incoming__video"), n = document.querySelector(".incoming__screenshare");
|
|
32381
32393
|
t.style.display = e ? "none" : "block", n.style.display = e ? "flex" : "none";
|
|
32382
32394
|
}
|
|
32383
|
-
function
|
|
32384
|
-
ee.value = !1,
|
|
32395
|
+
function Ot() {
|
|
32396
|
+
ee.value = !1, Dt(!1);
|
|
32385
32397
|
}
|
|
32386
|
-
async function
|
|
32387
|
-
|
|
32398
|
+
async function kt() {
|
|
32399
|
+
At(!0);
|
|
32388
32400
|
}
|
|
32389
|
-
async function
|
|
32401
|
+
async function At(e = !1) {
|
|
32390
32402
|
let t = N.call?.state;
|
|
32391
32403
|
if (t === "Connecting" || t === "EarlyMedia") return;
|
|
32392
32404
|
let n = (await N.deviceManager.getCameras()).filter((e) => e.name != "OBS Virtual Camera");
|
|
32393
|
-
|
|
32394
|
-
for (let t = 0; t <
|
|
32395
|
-
(e || t != 0) && (
|
|
32396
|
-
let r = n[
|
|
32397
|
-
if (await
|
|
32405
|
+
me.value = n.length;
|
|
32406
|
+
for (let t = 0; t < me.value; t++) {
|
|
32407
|
+
(e || t != 0) && (he.value = (he.value + 1) % me.value);
|
|
32408
|
+
let r = n[he.value];
|
|
32409
|
+
if (await Ct(new g(r))) break;
|
|
32398
32410
|
}
|
|
32399
32411
|
}
|
|
32400
|
-
function
|
|
32412
|
+
function jt(e) {
|
|
32401
32413
|
let t = document.querySelector(e);
|
|
32402
32414
|
if (!t) return;
|
|
32403
32415
|
let n = t.querySelector("video");
|
|
32404
32416
|
n && (n.style.objectFit = "contain", n.disablePictureInPicture = !1);
|
|
32405
32417
|
}
|
|
32406
|
-
async function
|
|
32418
|
+
async function Mt() {
|
|
32407
32419
|
N.call && N.call.state !== "Disconnected" && (await N.call.hangUp({ forEveryone: !0 }), await N.agent.dispose()), x("end-call", C.value);
|
|
32408
32420
|
}
|
|
32409
|
-
async function
|
|
32421
|
+
async function Nt() {
|
|
32410
32422
|
return o ||= Promise.all([import("@azure/communication-calling"), import("@azure/communication-common")]).then(([e, t]) => {
|
|
32411
32423
|
f = e.CallClient, h = e.VideoStreamRenderer, g = e.LocalVideoStream, _ = e.Features, v = e.DiagnosticQuality, y = t.AzureCommunicationTokenCredential;
|
|
32412
32424
|
}), o;
|
|
32413
32425
|
}
|
|
32414
|
-
async function
|
|
32426
|
+
async function Pt() {
|
|
32415
32427
|
d ||= import("./browser-aFX0ImH2.js");
|
|
32416
32428
|
let { AzureLogger: e, setLogLevel: t } = await d;
|
|
32417
32429
|
e.log = (...e) => console.log(...e), t("info"), e.log = (...e) => {
|
|
@@ -32419,26 +32431,36 @@ var mX = ["src", "alt"], hX = {
|
|
|
32419
32431
|
C.value = C.value.splice(1 - cZ).concat(t);
|
|
32420
32432
|
};
|
|
32421
32433
|
}
|
|
32422
|
-
function
|
|
32423
|
-
document.querySelector(
|
|
32434
|
+
function Ft() {
|
|
32435
|
+
document.querySelector(Xe.value).querySelector("video").requestFullscreen();
|
|
32424
32436
|
}
|
|
32425
|
-
function
|
|
32426
|
-
let e = document.querySelector(
|
|
32437
|
+
function It() {
|
|
32438
|
+
let e = document.querySelector(Xe.value).querySelector("video");
|
|
32427
32439
|
document.pictureInPictureElement ? e.exitPictureInPicture() : document.pictureInPictureEnabled && e.requestPictureInPicture();
|
|
32428
32440
|
}
|
|
32429
|
-
async function
|
|
32430
|
-
|
|
32441
|
+
async function Lt() {
|
|
32442
|
+
let e = N.call;
|
|
32443
|
+
if (!(!e || pe.value)) {
|
|
32444
|
+
pe.value = !0;
|
|
32445
|
+
try {
|
|
32446
|
+
e.isScreenSharingOn ? await e.stopScreenSharing() : await e.startScreenSharing();
|
|
32447
|
+
} catch (t) {
|
|
32448
|
+
D.value = e.isScreenSharingOn, console.error("Failed to change screen sharing state", t);
|
|
32449
|
+
} finally {
|
|
32450
|
+
pe.value = !1;
|
|
32451
|
+
}
|
|
32452
|
+
}
|
|
32431
32453
|
}
|
|
32432
32454
|
return n({
|
|
32433
|
-
CallDeclined:
|
|
32434
|
-
CallAnswered:
|
|
32435
|
-
CallForDataReceived:
|
|
32436
|
-
CallClosedWithStatusCode:
|
|
32437
|
-
CallHeartbeatReceived:
|
|
32438
|
-
CallSignalHoldDetected:
|
|
32439
|
-
CallStartVideoCall:
|
|
32440
|
-
CallHangUp:
|
|
32441
|
-
InitializeAcsConnection:
|
|
32455
|
+
CallDeclined: et,
|
|
32456
|
+
CallAnswered: tt,
|
|
32457
|
+
CallForDataReceived: nt,
|
|
32458
|
+
CallClosedWithStatusCode: at,
|
|
32459
|
+
CallHeartbeatReceived: st,
|
|
32460
|
+
CallSignalHoldDetected: ot,
|
|
32461
|
+
CallStartVideoCall: rt,
|
|
32462
|
+
CallHangUp: it,
|
|
32463
|
+
InitializeAcsConnection: lt
|
|
32442
32464
|
}), (e, n) => {
|
|
32443
32465
|
let r = se("BDLoader");
|
|
32444
32466
|
return A(), l("div", BX, [m(Xq, null, {
|
|
@@ -32451,23 +32473,23 @@ var mX = ["src", "alt"], hX = {
|
|
|
32451
32473
|
}), m(Zq, null, {
|
|
32452
32474
|
default: I(() => [m(Yq, {
|
|
32453
32475
|
sm: "12",
|
|
32454
|
-
lg:
|
|
32476
|
+
lg: Re.value ? "12" : "8"
|
|
32455
32477
|
}, {
|
|
32456
|
-
default: I(() => [u("div", { class: O(["incoming",
|
|
32478
|
+
default: I(() => [u("div", { class: O(["incoming", Ae.value]) }, [Ve.value ? (A(), l("div", VX, [
|
|
32457
32479
|
m(r, {
|
|
32458
32480
|
size: "lg",
|
|
32459
|
-
message:
|
|
32460
|
-
stopAnimation:
|
|
32481
|
+
message: qe.value,
|
|
32482
|
+
stopAnimation: Re.value || ze.value || He.value
|
|
32461
32483
|
}, null, 8, ["message", "stopAnimation"]),
|
|
32462
|
-
|
|
32463
|
-
|
|
32464
|
-
|
|
32484
|
+
ke.value ? (A(), l("div", HX, [u("div", UX, [m(Ri, { class: "icon-xl icon-state-error" })]), u("span", null, P(Pe.value.permissionDeniedForAudio), 1)])) : c("", !0),
|
|
32485
|
+
Oe.value ? (A(), l("div", WX, [u("div", GX, [m(oo, { class: "icon-xl icon-state-error" })]), u("span", null, P(Pe.value.permissionDeniedForVideo), 1)])) : c("", !0),
|
|
32486
|
+
Re.value || ze.value || He.value ? (A(), s(R, {
|
|
32465
32487
|
key: 2,
|
|
32466
32488
|
variant: "primary",
|
|
32467
32489
|
class: "text-center",
|
|
32468
|
-
onClick:
|
|
32490
|
+
onClick: Mt
|
|
32469
32491
|
}, {
|
|
32470
|
-
default: I(() => [p(P(
|
|
32492
|
+
default: I(() => [p(P(Me.value.closeWindow), 1)]),
|
|
32471
32493
|
_: 1
|
|
32472
32494
|
})) : c("", !0)
|
|
32473
32495
|
])) : (A(), l("div", KX, [
|
|
@@ -32476,68 +32498,69 @@ var mX = ["src", "alt"], hX = {
|
|
|
32476
32498
|
u("div", qX, [m(R, {
|
|
32477
32499
|
variant: "primary",
|
|
32478
32500
|
class: "text-center",
|
|
32479
|
-
onClick:
|
|
32501
|
+
onClick: Ft
|
|
32480
32502
|
}, {
|
|
32481
|
-
default: I(() => [m(xa), u("span", null, P(
|
|
32503
|
+
default: I(() => [m(xa), u("span", null, P(Me.value.fullScreen), 1)]),
|
|
32482
32504
|
_: 1
|
|
32483
32505
|
}), !T && !k.value ? (A(), s(R, {
|
|
32484
32506
|
key: 0,
|
|
32485
32507
|
variant: "primary",
|
|
32486
32508
|
class: "text-center",
|
|
32487
|
-
onClick:
|
|
32509
|
+
onClick: It
|
|
32488
32510
|
}, {
|
|
32489
|
-
default: I(() => [m(xa), u("span", null, P(
|
|
32511
|
+
default: I(() => [m(xa), u("span", null, P(Me.value.miniPlayer), 1)]),
|
|
32490
32512
|
_: 1
|
|
32491
32513
|
})) : c("", !0)])
|
|
32492
32514
|
]))], 2)]),
|
|
32493
32515
|
_: 1
|
|
32494
|
-
}, 8, ["lg"]),
|
|
32516
|
+
}, 8, ["lg"]), Re.value ? c("", !0) : (A(), s(Yq, {
|
|
32495
32517
|
key: 0,
|
|
32496
32518
|
sm: "12",
|
|
32497
32519
|
lg: "4"
|
|
32498
32520
|
}, {
|
|
32499
32521
|
default: I(() => [u("div", JX, [u("div", null, [
|
|
32500
32522
|
u("div", YX, [u("div", XX, [
|
|
32501
|
-
|
|
32523
|
+
He.value ? c("", !0) : (A(), l("div", ZX)),
|
|
32502
32524
|
n[2] ||= u("div", { class: "outgoing__screenshare" }, null, -1),
|
|
32503
|
-
|
|
32525
|
+
De.value && !He.value && !k.value && !Ve.value ? (A(), s(R, {
|
|
32504
32526
|
key: 1,
|
|
32505
32527
|
variant: D.value ? "danger" : "primary",
|
|
32506
32528
|
class: "text-center",
|
|
32507
|
-
onClick:
|
|
32529
|
+
onClick: Lt,
|
|
32530
|
+
disabled: pe.value
|
|
32508
32531
|
}, {
|
|
32509
|
-
default: I(() => [m(xa), u("span", null, P(
|
|
32532
|
+
default: I(() => [m(xa), u("span", null, P(Fe.value), 1)]),
|
|
32510
32533
|
_: 1
|
|
32511
|
-
}, 8, ["variant"])) : c("", !0),
|
|
32512
|
-
|
|
32534
|
+
}, 8, ["variant", "disabled"])) : c("", !0),
|
|
32535
|
+
Ee.value ? (A(), l(t, { key: 2 }, [m(R, {
|
|
32513
32536
|
class: "text-center",
|
|
32514
|
-
onClick:
|
|
32537
|
+
onClick: kt
|
|
32515
32538
|
}, {
|
|
32516
|
-
default: I(() => [p(P(
|
|
32539
|
+
default: I(() => [p(P(Me.value.switchCamera), 1)]),
|
|
32517
32540
|
_: 1
|
|
32518
|
-
}), u("p", QX, P(
|
|
32519
|
-
|
|
32541
|
+
}), u("p", QX, P(Te.value), 1)], 64)) : c("", !0),
|
|
32542
|
+
Oe.value ? (A(), l("div", $X, [u("div", eZ, [m(oo, { class: "icon-xxl icon-state-error" })]), u("span", null, P(Pe.value.permissionDeniedForVideo), 1)])) : c("", !0)
|
|
32520
32543
|
])]),
|
|
32521
|
-
!
|
|
32544
|
+
!ze.value && !He.value ? (A(), s(R, {
|
|
32522
32545
|
key: 0,
|
|
32523
32546
|
variant: "danger",
|
|
32524
32547
|
class: "end-call-button text-center w-100",
|
|
32525
|
-
onClick:
|
|
32548
|
+
onClick: Mt
|
|
32526
32549
|
}, {
|
|
32527
|
-
default: I(() => [m(zn), u("span", null, P(
|
|
32550
|
+
default: I(() => [m(zn), u("span", null, P(Me.value.endCall), 1)]),
|
|
32528
32551
|
_: 1
|
|
32529
32552
|
})) : c("", !0),
|
|
32530
|
-
u("div", tZ, [u("div", nZ, [u("p", rZ, P(
|
|
32531
|
-
u("p", null, [u("b", null, P(
|
|
32532
|
-
u("p", null, P(
|
|
32553
|
+
u("div", tZ, [u("div", nZ, [u("p", rZ, P(Je.value), 1), Ye.value ? (A(), l("small", iZ, P(Ye.value), 1)) : c("", !0)]), u("div", aZ, [
|
|
32554
|
+
u("p", null, [u("b", null, P(Ie.value), 1)]),
|
|
32555
|
+
u("p", null, P(Le.value), 1),
|
|
32533
32556
|
u("p", null, [
|
|
32534
32557
|
u("a", {
|
|
32535
32558
|
href: b.videoTestUrl,
|
|
32536
32559
|
target: "_blank",
|
|
32537
32560
|
rel: "noopener noreferrer"
|
|
32538
|
-
}, P(
|
|
32561
|
+
}, P(Me.value.testCall), 9, oZ),
|
|
32539
32562
|
n[3] ||= p(" • ", -1),
|
|
32540
|
-
u("a", sZ, P(
|
|
32563
|
+
u("a", sZ, P(Me.value.serviceDesk), 1)
|
|
32541
32564
|
])
|
|
32542
32565
|
])])
|
|
32543
32566
|
])])]),
|