@beterdichtbij/component-library 0.72.7-alpha.0 → 0.72.7
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/README.md +12 -12
- package/dist/bd-component-lib.cjs.js +56 -56
- package/dist/bd-component-lib.css +1 -1
- package/dist/bd-component-lib.es.js +242 -266
- package/dist/bd-component-lib.umd.js +67 -67
- package/dist/locales/en.json +79 -79
- package/dist/locales/nl.json +180 -180
- package/dist/scss/_active-filters.scss +65 -65
- package/dist/scss/_alert.scss +16 -11
- package/dist/scss/_article.scss +31 -31
- package/dist/scss/_assign-conversation-modal.scss +13 -13
- package/dist/scss/_attachments.scss +107 -107
- package/dist/scss/_badge.scss +18 -18
- package/dist/scss/_button.scss +80 -80
- package/dist/scss/_card.scss +67 -62
- package/dist/scss/_chatcloud.scss +104 -99
- package/dist/scss/_collapsable-card.scss +103 -103
- package/dist/scss/_content-library-card-message-template.scss +136 -136
- package/dist/scss/_content-library-card.scss +158 -158
- package/dist/scss/_content-library-modal.scss +8 -8
- package/dist/scss/_content-library-overview.scss +4 -4
- package/dist/scss/_content-library-split-button.scss +23 -23
- package/dist/scss/_conversation-to-text-modal.scss +36 -36
- package/dist/scss/_dropdown.scss +113 -113
- package/dist/scss/_extern.scss +1 -1
- package/dist/scss/_file-upload-preview.scss +53 -53
- package/dist/scss/_file-upload.scss +26 -26
- package/dist/scss/_filter-card.scss +64 -64
- package/dist/scss/_form-field.scss +12 -12
- package/dist/scss/_form-multiple-checkbox.scss +51 -51
- package/dist/scss/_forms.scss +3 -3
- package/dist/scss/_header.scss +170 -170
- package/dist/scss/_icon-luscii-logo.scss +31 -31
- package/dist/scss/_icons.scss +38 -38
- package/dist/scss/_image-attachment-modal.scss +91 -91
- package/dist/scss/_input-group.scss +2 -2
- package/dist/scss/_loader.scss +59 -59
- package/dist/scss/_markdown-editor.scss +127 -114
- package/dist/scss/_message-template-form-modal.scss +32 -47
- package/dist/scss/_mixins.scss +78 -78
- package/dist/scss/_mobile-menu.scss +91 -91
- package/dist/scss/_modal.scss +182 -182
- package/dist/scss/_notification-button.scss +29 -29
- package/dist/scss/_pagination.scss +56 -56
- package/dist/scss/_phone-number-edit-modal.scss +35 -35
- package/dist/scss/_pill-container.scss +26 -26
- package/dist/scss/_pill.scss +63 -63
- package/dist/scss/_profile-image.scss +34 -34
- package/dist/scss/_table-sort-header.scss +13 -13
- package/dist/scss/_table.scss +16 -16
- package/dist/scss/_templates.scss +264 -264
- package/dist/scss/_toast.scss +69 -69
- package/dist/scss/_user-information.scss +34 -34
- package/dist/scss/_user.scss +21 -21
- package/dist/scss/_video-call-toast.scss +100 -100
- package/dist/scss/_zoomslider.scss +77 -77
- package/dist/scss/base/variables.scss +210 -210
- package/dist/scss/extern/_bootstrap.scss +14 -14
- package/dist/scss/extern/_prime-vue.scss +551 -551
- package/dist/scss/forms/_form-check.scss +16 -16
- package/dist/scss/forms/_form-input.scss +9 -9
- package/dist/scss/forms/_form-select.scss +4 -4
- package/dist/scss/main.scss +52 -52
- package/dist/scss/templates/_change-password-template.scss +8 -8
- package/dist/scss/templates/_content-library-template.scss +135 -135
- package/dist/scss/templates/_not-found-template.scss +35 -35
- package/dist/scss/templates/_video-call-template.scss +225 -225
- package/dist/stores/SessionTimeOutStore.ts +46 -46
- package/package.json +133 -133
|
@@ -244,7 +244,7 @@ var nn = /*#__PURE__*/ L($t, [["render", tn]]), rn = {}, an = {
|
|
|
244
244
|
class: "icon icon-common-file-empty"
|
|
245
245
|
};
|
|
246
246
|
function on(e, t) {
|
|
247
|
-
return A(), l("svg", an, [...t[0] ||= [u("title", null, "common-file-empty", -1), u("g", null, [u("path", { d: "M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883\
|
|
247
|
+
return A(), l("svg", an, [...t[0] ||= [u("title", null, "common-file-empty", -1), u("g", null, [u("path", { d: "M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883\n c0.431,0.422,0.678,1.009,0.678,1.611V21.75c0,1.241-1.009,2.25-2.25,2.25H3.023z M3.023,1.5c-0.414,0-0.75,0.336-0.75,0.75v19.5\n c0,0.414,0.336,0.75,0.75,0.75h17.954c0.414,0,0.75-0.336,0.75-0.75V5.133c0-0.201-0.082-0.397-0.226-0.537l-2.955-2.883\n C18.406,1.576,18.22,1.5,18.023,1.5H3.023z" })], -1)]]);
|
|
248
248
|
}
|
|
249
249
|
var sn = /*#__PURE__*/ L(rn, [["render", on]]), cn = {}, ln = {
|
|
250
250
|
version: "1.1",
|
|
@@ -264,9 +264,9 @@ function un(e, t) {
|
|
|
264
264
|
cy: "20.625",
|
|
265
265
|
r: "1.125"
|
|
266
266
|
}),
|
|
267
|
-
u("path", { d: "M17.249,18.75c-0.414,0-0.75-0.336-0.75-0.75v-3c0-0.414,0.336-0.75,0.75-0.75s0.75,0.336,0.75,0.75v3\
|
|
268
|
-
u("path", { d: "M13.023,24c-1.391,0-2.524-1.132-2.525-2.523c0-0.39,0.092-0.781,0.267-1.131l4.226-8.451\
|
|
269
|
-
u("path", { d: "M2.249,21c-1.241,0-2.25-1.009-2.25-2.25V2.25c0-1.241,1.009-2.25,2.25-2.25h10.629c0.601,0,1.165,0.234,1.59,0.658\
|
|
267
|
+
u("path", { d: "M17.249,18.75c-0.414,0-0.75-0.336-0.75-0.75v-3c0-0.414,0.336-0.75,0.75-0.75s0.75,0.336,0.75,0.75v3\n C17.999,18.414,17.663,18.75,17.249,18.75z" }),
|
|
268
|
+
u("path", { d: "M13.023,24c-1.391,0-2.524-1.132-2.525-2.523c0-0.39,0.092-0.781,0.267-1.131l4.226-8.451\n c0.43-0.861,1.297-1.396,2.262-1.396c0.393,0,0.771,0.089,1.124,0.266c0.486,0.243,0.887,0.644,1.13,1.13l4.226,8.451\n c0.623,1.244,0.117,2.764-1.127,3.386C22.256,23.908,21.865,24,21.475,24H13.023z M17.252,12c-0.392,0-0.744,0.217-0.918,0.567\n l-4.226,8.451c-0.071,0.142-0.109,0.3-0.109,0.459c0,0.565,0.46,1.024,1.024,1.024h8.452c0.158,0,0.317-0.038,0.46-0.109\n c0.504-0.252,0.709-0.869,0.457-1.374l-4.226-8.451c-0.099-0.197-0.261-0.36-0.458-0.459C17.564,12.036,17.41,12,17.252,12z" }),
|
|
269
|
+
u("path", { d: "M2.249,21c-1.241,0-2.25-1.009-2.25-2.25V2.25c0-1.241,1.009-2.25,2.25-2.25h10.629c0.601,0,1.165,0.234,1.59,0.658\n l2.872,2.872c0.425,0.425,0.659,0.99,0.659,1.59V8.25c0,0.414-0.336,0.75-0.75,0.75s-0.75-0.336-0.75-0.75V5.121\n c0-0.197-0.08-0.39-0.219-0.53l-2.872-2.872c-0.142-0.141-0.33-0.219-0.53-0.219H2.249c-0.414,0-0.75,0.336-0.75,0.75v16.5\n c0,0.414,0.336,0.75,0.75,0.75h6c0.414,0,0.75,0.336,0.75,0.75S8.663,21,8.249,21H2.249z" })
|
|
270
270
|
], -1)]]);
|
|
271
271
|
}
|
|
272
272
|
var dn = /*#__PURE__*/ L(cn, [["render", un]]), fn = {}, pn = {
|
|
@@ -402,7 +402,7 @@ var tr = /*#__PURE__*/ L(Qn, [["render", er]]), nr = {}, rr = {
|
|
|
402
402
|
class: "icon icon-file"
|
|
403
403
|
};
|
|
404
404
|
function ir(e, t) {
|
|
405
|
-
return A(), l("svg", rr, [...t[0] ||= [u("title", null, "common-file-empty", -1), u("g", null, [u("path", { d: "M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883\
|
|
405
|
+
return A(), l("svg", rr, [...t[0] ||= [u("title", null, "common-file-empty", -1), u("g", null, [u("path", { d: "M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883\n c0.431,0.422,0.678,1.009,0.678,1.611V21.75c0,1.241-1.009,2.25-2.25,2.25H3.023z M3.023,1.5c-0.414,0-0.75,0.336-0.75,0.75v19.5\n c0,0.414,0.336,0.75,0.75,0.75h17.954c0.414,0,0.75-0.336,0.75-0.75V5.133c0-0.201-0.082-0.397-0.226-0.537l-2.955-2.883\n C18.406,1.576,18.22,1.5,18.023,1.5H3.023z" })], -1)]]);
|
|
406
406
|
}
|
|
407
407
|
var ar = /*#__PURE__*/ L(nr, [["render", ir]]), or = {}, sr = {
|
|
408
408
|
class: "icon icon-file-added",
|
|
@@ -490,9 +490,9 @@ var xr = /*#__PURE__*/ L(vr, [["render", br]]), Sr = {}, Cr = {
|
|
|
490
490
|
};
|
|
491
491
|
function wr(e, t) {
|
|
492
492
|
return A(), l("svg", Cr, [...t[0] ||= [u("title", null, "image-file-landscape", -1), u("g", null, [
|
|
493
|
-
u("path", { d: "M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883\
|
|
494
|
-
u("path", { d: "M8.273,10.5c-1.654,0-3-1.346-3-3s1.346-3,3-3s3,1.346,3,3S9.927,10.5,8.273,10.5z M8.273,6c-0.827,0-1.5,0.673-1.5,1.5\
|
|
495
|
-
u("path", { d: "M18.813,18.95c-0.252,0-0.485-0.125-0.625-0.334l-3.925-5.888c-0.049-0.073-0.131-0.117-0.219-0.117\
|
|
493
|
+
u("path", { d: "M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883\n c0.431,0.422,0.678,1.009,0.678,1.611V21.75c0,1.241-1.009,2.25-2.25,2.25H3.023z M3.023,1.5c-0.414,0-0.75,0.336-0.75,0.75v19.5\n c0,0.414,0.336,0.75,0.75,0.75h17.954c0.414,0,0.75-0.336,0.75-0.75V5.133c0-0.201-0.082-0.397-0.226-0.537l-2.955-2.883\n C18.406,1.576,18.22,1.5,18.023,1.5H3.023z" }),
|
|
494
|
+
u("path", { d: "M8.273,10.5c-1.654,0-3-1.346-3-3s1.346-3,3-3s3,1.346,3,3S9.927,10.5,8.273,10.5z M8.273,6c-0.827,0-1.5,0.673-1.5,1.5\n S7.446,9,8.273,9s1.5-0.673,1.5-1.5S9.1,6,8.273,6z" }),
|
|
495
|
+
u("path", { d: "M18.813,18.95c-0.252,0-0.485-0.125-0.625-0.334l-3.925-5.888c-0.049-0.073-0.131-0.117-0.219-0.117\n c-0.051,0-0.101,0.015-0.144,0.043c-0.027,0.018-0.05,0.041-0.069,0.068l-2.692,3.846c-0.118,0.169-0.303,0.283-0.508,0.312\n c-0.037,0.005-0.072,0.008-0.106,0.008c-0.171,0-0.338-0.059-0.47-0.165l-1.668-1.338c-0.047-0.037-0.102-0.057-0.161-0.057\n c-0.01,0-0.02,0.001-0.03,0.002c-0.071,0.008-0.131,0.041-0.175,0.096l-2.125,3.19c-0.139,0.209-0.373,0.334-0.625,0.334\n c-0.148,0-0.292-0.043-0.415-0.125c-0.344-0.229-0.438-0.696-0.209-1.04l2.111-3.171c0.028-0.042,0.059-0.085,0.093-0.127\n c0.293-0.366,0.713-0.597,1.18-0.648c0.066-0.007,0.132-0.011,0.198-0.011c0.401,0,0.78,0.134,1.096,0.387l1.044,0.837l2.232-3.189\n c0.126-0.181,0.284-0.335,0.468-0.458c0.289-0.193,0.625-0.294,0.973-0.294c0.593,0,1.142,0.294,1.469,0.786l3.925,5.887\n c0.111,0.167,0.151,0.367,0.112,0.563c-0.04,0.197-0.153,0.366-0.32,0.477C19.105,18.906,18.961,18.95,18.813,18.95L18.813,18.95z" })
|
|
496
496
|
], -1)]]);
|
|
497
497
|
}
|
|
498
498
|
var Tr = /*#__PURE__*/ L(Sr, [["render", wr]]), Er = {}, Dr = {
|
|
@@ -508,7 +508,7 @@ var Tr = /*#__PURE__*/ L(Sr, [["render", wr]]), Er = {}, Dr = {
|
|
|
508
508
|
class: "icon icon-image-file-warning"
|
|
509
509
|
};
|
|
510
510
|
function Or(e, t) {
|
|
511
|
-
return A(), l("svg", Dr, [...t[0] ||= [f("<title>image-file-warning</title><g><circle cx=\"17.249\" cy=\"20.625\" r=\"1.125\"></circle><path d=\"M17.249,18.75c-0.414,0-0.75-0.336-0.75-0.75v-3c0-0.414,0.336-0.75,0.75-0.75s0.75,0.336,0.75,0.75v3\
|
|
511
|
+
return A(), l("svg", Dr, [...t[0] ||= [f("<title>image-file-warning</title><g><circle cx=\"17.249\" cy=\"20.625\" r=\"1.125\"></circle><path d=\"M17.249,18.75c-0.414,0-0.75-0.336-0.75-0.75v-3c0-0.414,0.336-0.75,0.75-0.75s0.75,0.336,0.75,0.75v3\n C17.999,18.414,17.663,18.75,17.249,18.75z\"></path><path d=\"M13.023,24c-1.391,0-2.524-1.132-2.525-2.523c0-0.39,0.092-0.781,0.267-1.131l4.226-8.451\n c0.43-0.861,1.297-1.396,2.262-1.396c0.393,0,0.771,0.089,1.124,0.266c0.486,0.243,0.887,0.644,1.13,1.13l4.226,8.451\n c0.623,1.244,0.117,2.764-1.127,3.386C22.256,23.908,21.865,24,21.475,24H13.023z M17.252,12c-0.392,0-0.744,0.217-0.918,0.567\n l-4.226,8.451c-0.071,0.142-0.109,0.3-0.109,0.459c0,0.565,0.46,1.024,1.024,1.024h8.452c0.158,0,0.317-0.038,0.46-0.109\n c0.504-0.252,0.709-0.869,0.457-1.374l-4.226-8.451c-0.099-0.197-0.261-0.36-0.458-0.459C17.564,12.036,17.41,12,17.252,12z\"></path><path d=\"M2.249,21c-1.241,0-2.25-1.009-2.25-2.25V2.25c0-1.241,1.009-2.25,2.25-2.25h10.629c0.601,0,1.165,0.234,1.59,0.658\n l2.872,2.872c0.425,0.425,0.659,0.99,0.659,1.59V8.25c0,0.414-0.336,0.75-0.75,0.75s-0.75-0.336-0.75-0.75V5.121\n c0-0.197-0.08-0.39-0.219-0.53l-2.872-2.872c-0.142-0.141-0.33-0.219-0.53-0.219H2.249c-0.414,0-0.75,0.336-0.75,0.75v16.5\n c0,0.414,0.336,0.75,0.75,0.75h5.25c0.414,0,0.75,0.336,0.75,0.75S7.913,21,7.499,21H2.249z\"></path><circle cx=\"5.249\" cy=\"6\" r=\"1.125\"></circle><path d=\"M3.749,15c-0.26,0-0.498-0.132-0.636-0.352c-0.138-0.221-0.153-0.492-0.038-0.726l1.937-3.981\n c0.015-0.03,0.031-0.058,0.049-0.085c0.025-0.038,0.051-0.073,0.078-0.107C5.426,9.39,5.853,9.186,6.311,9.186\n c0.339,0,0.672,0.117,0.937,0.329l0.608,0.487l1.541-2.197C9.505,7.651,9.639,7.52,9.796,7.416c0.246-0.163,0.532-0.25,0.828-0.25\n c0.504,0,0.972,0.25,1.25,0.669l1.618,2.588c0.219,0.351,0.112,0.814-0.239,1.033c-0.12,0.075-0.257,0.114-0.397,0.114\n c-0.26,0-0.498-0.132-0.636-0.352l-1.606-2.57l-1.988,2.87c-0.118,0.169-0.304,0.283-0.508,0.312\n c-0.036,0.005-0.071,0.007-0.106,0.007c-0.17,0-0.337-0.059-0.469-0.165L6.316,10.69L4.948,13.5h4.801\n c0.414,0,0.75,0.336,0.75,0.75S10.163,15,9.749,15H3.749z\"></path></g>", 2)]]);
|
|
512
512
|
}
|
|
513
513
|
var kr = /*#__PURE__*/ L(Er, [["render", Or]]), Ar = {}, jr = {
|
|
514
514
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -602,7 +602,7 @@ var ri = /*#__PURE__*/ L(ei, [["render", ni]]), ii = {}, ai = {
|
|
|
602
602
|
"xml:space": "preserve"
|
|
603
603
|
};
|
|
604
604
|
function oi(e, t) {
|
|
605
|
-
return A(), l("svg", ai, [...t[0] ||= [f("<g><path class=\"st0\" d=\"M182.51,146.67l34.45-34.45l-0.02-0.01c4.39-4.3,7.13-10.28,7.13-16.91c0-13.07-10.6-23.67-23.67-23.67\
|
|
605
|
+
return A(), l("svg", ai, [...t[0] ||= [f("<g><path class=\"st0\" d=\"M182.51,146.67l34.45-34.45l-0.02-0.01c4.39-4.3,7.13-10.28,7.13-16.91c0-13.07-10.6-23.67-23.67-23.67\n c-7.19,0-13.61,3.22-17.95,8.27c-4.34-5.06-10.77-8.27-17.95-8.27c-13.07,0-23.67,10.6-23.67,23.67c0,6.36,2.51,12.13,6.58,16.38\n L182.51,146.67z\"></path><g><path class=\"st1\" d=\"M182.52,146.67C182.52,146.66,182.53,146.66,182.52,146.67l-0.07-0.08\n C182.48,146.61,182.5,146.64,182.52,146.67z\"></path><linearGradient id=\"SVGID_1_\" gradientUnits=\"userSpaceOnUse\" x1=\"0.1062\" y1=\"200.7396\" x2=\"182.5212\" y2=\"200.7396\"><stop offset=\"0\" style=\"stop-color:#9AD0BC;\"></stop><stop offset=\"3.045450e-03\" style=\"stop-color:#9AD0BC;\"></stop><stop offset=\"0.9441\" style=\"stop-color:#61BBA1;\"></stop><stop offset=\"1\" style=\"stop-color:#61BBA1;\"></stop></linearGradient><path class=\"st2\" d=\"M182.52,146.67c-0.02-0.03-0.04-0.05-0.07-0.08l-28.65-28.57c-28.32,22.4-64.09,35.82-103,35.82\n c-17.69,0-34.71-2.79-50.7-7.9c2.22,76.33,64.76,137.54,141.63,137.54c3.2,0,6.36-0.14,9.51-0.35\n c-2.36-11.16-3.63-22.73-3.63-34.59C147.61,210.13,160.66,174.81,182.52,146.67z\"></path><path class=\"st3\" d=\"M152.09,116.3l-4.64-4.63c-4.08-4.25-6.58-10.02-6.58-16.38c0-13.07,10.6-23.67,23.67-23.67\n c2.26,0,4.42,0.35,6.49,0.94c-12.8-21.48-20.92-46.08-22.88-72.4c-2.12-0.09-4.25-0.16-6.4-0.16C83.01,0,32.63,35.71,11.12,86.6\n c12.72-3.12,26-4.8,39.68-4.8C88.95,81.79,124.04,94.7,152.09,116.3z\"></path><path class=\"st4\" d=\"M153.81,118.01l-1.72-1.71C124.04,94.7,88.95,81.79,50.81,81.79c-13.68,0-26.96,1.69-39.68,4.8\n C3.96,103.55,0,122.18,0,141.73c0,1.41,0.07,2.8,0.11,4.2c15.99,5.12,33.02,7.9,50.7,7.9\n C89.72,153.83,125.49,140.42,153.81,118.01z\"></path><path class=\"st5\" d=\"M200.44,71.63c13.07,0,23.67,10.6,23.67,23.67c0,6.63-2.73,12.62-7.13,16.91l0.02,0.01l-5.09,5.09\n c17.75-13.81,38.33-24.15,60.78-29.87c-11.79-28.41-32.56-52.14-58.77-67.68c-3.73,19-10.7,36.83-20.31,52.91\n C195.76,72.01,198.05,71.63,200.44,71.63z\"></path><path class=\"st6\" d=\"M182.48,79.9c2.9-3.38,6.74-5.91,11.11-7.23c9.61-16.08,16.58-33.91,20.31-52.91\n C194.48,8.24,172.09,1.23,148.13,0.16c1.97,26.33,10.08,50.92,22.88,72.4C175.53,73.86,179.51,76.43,182.48,79.9z\"></path><path class=\"st7\" d=\"M182.54,146.67L182.54,146.67c-0.01-0.01-0.01,0-0.02,0c21.62,28.06,34.51,63.19,34.51,101.35\n c0,4.78-0.25,9.5-0.64,14.18c37.8-23.48,63.72-64.24,66.74-111.25c-26.87-5.02-51.45-16.5-72.1-32.78L182.54,146.67z\"></path><path class=\"st8\" d=\"M182.52,146.67c-21.86,28.14-34.91,63.46-34.91,101.86c0,11.86,1.27,23.43,3.63,34.59\n c23.8-1.58,46-9.02,65.15-20.91c0.4-4.68,0.64-9.4,0.64-14.18C217.04,209.86,204.14,174.73,182.52,146.67z\"></path><path class=\"st9\" d=\"M272.67,87.44c-22.45,5.72-43.03,16.06-60.78,29.87l-0.86,0.86c20.64,16.28,45.23,27.76,72.1,32.78\n c0.2-3.05,0.33-6.12,0.33-9.22C283.46,122.5,279.61,104.17,272.67,87.44z\"></path></g></g>", 1)]]);
|
|
606
606
|
}
|
|
607
607
|
var si = /*#__PURE__*/ L(ii, [["render", oi]]), ci = {}, li = {
|
|
608
608
|
class: "icon icon-luscii-open luscii-open",
|
|
@@ -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 && B(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) => Ss(e) === "[object Date]", $o = (e) => Ss(e) === "[object RegExp]", es = (e) => Cs(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", B = (e) => typeof e == "object" && !!e, bs = (e) => B(e) && vs(e.then) && vs(e.catch), xs = Object.prototype.toString, Ss = (e) => xs.call(e), Cs = (e) => Ss(e) === "[object Object]", ws = (e) => e == null ? "" : _s(e) || Cs(e) && e.toString === xs ? 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) => !B(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__" && (B(e[r]) && !B(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 B(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 (bs(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 : B(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) || !Cs(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) || Cs(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 B(e) ? e[t] : null;
|
|
2507
2507
|
}
|
|
2508
2508
|
function bl(e, t) {
|
|
2509
|
-
if (!
|
|
2509
|
+
if (!B(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) || !B(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" && B(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
2550
|
+
lower: (e, t) => t === "text" && z(e) ? e.toLowerCase() : t === "vnode" && B(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
2551
|
+
capitalize: (e, t) => t === "text" && z(e) ? El(e) : t === "vnode" && B(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) || Cs(e.fallbackLocale) || z(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = Cs(e.messages) ? e.messages : Vl(i), s = Cs(e.datetimeFormats) ? e.datetimeFormats : Vl(i), c = Cs(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, _ = Cs(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 = B(e.fallbackContext) ? e.fallbackContext : void 0, w = e, T = B(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), E = B(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), D = B(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], Cs(y)) break;
|
|
2668
2668
|
Wl(e, c, v, f, S), b = x;
|
|
2669
2669
|
}
|
|
2670
|
-
if (!
|
|
2670
|
+
if (!Cs(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 : Cs(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 : Cs(r) && (o = r), Cs(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], Cs(y)) break;
|
|
2756
2756
|
Wl(e, c, v, f, S), b = x;
|
|
2757
2757
|
}
|
|
2758
|
-
if (!
|
|
2758
|
+
if (!Cs(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 : Cs(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 : Cs(r) && (o = r), Cs(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) : B(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 ? B(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) : B(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 : Cs(n) && !es(n) ? i.named = n : _s(n) && (i.list = n), Zo(r) ? i.plural = r : z(r) ? i.default = r : Cs(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 (!B(e) || yc(e)) return e;
|
|
3144
|
+
for (let t in e) if (gs(e, t)) if (!t.includes(".")) B(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()), !B(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
|
+
B(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 = Cs(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 = B(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
|
+
}), B(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 (B(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) || Cs(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value), u = o(Zu(c.value, e)), d = o(Cs(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(Cs(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 : Cs(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 = Cs(w) ? w.__datetimeFormatters : void 0, t.__numberFormatters = Cs(w) ? w.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (t.__v_emitter = Cs(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 && !B(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 : B(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) || B(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) || Cs(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 = Cs(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 (Cs(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) || B(e.tag) ? e.tag : Pd();
|
|
3990
|
+
return B(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 : B(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) || B(e.tag) ? e.tag : Pd();
|
|
4013
|
+
return B(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 (Cs(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 = Cs(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), Cs(r[0])) {
|
|
4111
4111
|
let e = r[0];
|
|
4112
4112
|
u.__composerExtend = e.__composerExtend, u.__vueI18nExtend = e.__vueI18nExtend;
|
|
4113
4113
|
}
|
|
@@ -30744,7 +30744,7 @@ var WJ = /* @__PURE__ */ hJ(AJ, [["render", UJ]]), GJ = (e) => typeof e == "numb
|
|
|
30744
30744
|
_: 1
|
|
30745
30745
|
})]));
|
|
30746
30746
|
}
|
|
30747
|
-
}, [["__scopeId", "data-v-
|
|
30747
|
+
}, [["__scopeId", "data-v-bbef8bea"]]), yY = {
|
|
30748
30748
|
name: "TimesCircleIcon",
|
|
30749
30749
|
extends: Im
|
|
30750
30750
|
};
|
|
@@ -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(
|
|
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(0), F = j(0), pe = j(null), me = j(!1), he = j(""), ge = j(""), _e = j(null), ve = j(null), ye = null, be = null, xe = null, Se = a(() => {
|
|
32147
|
+
switch (fe.value) {
|
|
32148
|
+
case 0: return Me.value.hasNoAvailableCamera;
|
|
32149
|
+
case 1: return Me.value.hasOneAvailableCamera;
|
|
32150
|
+
default: return Me.value.hasMultipleAvailableCameras;
|
|
32151
32151
|
}
|
|
32152
|
-
}),
|
|
32152
|
+
}), Ce = a(() => {
|
|
32153
32153
|
let e = navigator.userAgent;
|
|
32154
32154
|
return /Mobi/.test(e) && !D.value;
|
|
32155
|
-
}),
|
|
32155
|
+
}), we = 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
|
+
}), Te = a(() => !ae.value?.video && ze.value), Ee = a(() => !ae.value?.audio && ze.value), De = a(() => oe.value === i.Declined ? "incoming--declined" : "incoming--loading");
|
|
32159
32159
|
a(() => {
|
|
32160
32160
|
switch (ne.value) {
|
|
32161
32161
|
case 0: return "weak";
|
|
@@ -32171,254 +32171,244 @@ var mX = ["src", "alt"], hX = {
|
|
|
32171
32171
|
default: return null;
|
|
32172
32172
|
}
|
|
32173
32173
|
});
|
|
32174
|
-
let
|
|
32175
|
-
function
|
|
32174
|
+
let Oe = a(() => E.value.videoCallTemplate || E.value), ke = a(() => Oe.value.actions || Oe.value), Ae = a(() => Oe.value.help || Oe.value), je = a(() => Oe.value.permissions || Oe.value), Me = a(() => Oe.value.cameraAvailability || Oe.value), Ne = a(() => D.value ? ke.value.stopSharingScreen : ke.value.shareScreen), Pe = a(() => Ae.value.placeholderSettingsHelpTitle), L = a(() => Ae.value.placeholderSettingsHelpMessage), Fe = a(() => oe.value === i.Declined), Ie = a(() => oe.value === i.HangedUp), Le = a(() => oe.value === i.Connected), Re = a(() => !Le.value), ze = a(() => oe.value === i.DevicePermissionDenied), Be = a(() => Oe.value.statusTextMessage || Oe.value), Ve = a(() => Oe.value.statusDetailMessage || Oe.value), He = a(() => b.participantRole);
|
|
32175
|
+
function Ue(e) {
|
|
32176
32176
|
if (typeof e != "string") return e;
|
|
32177
|
-
let t = e.replaceAll("{participantRole}",
|
|
32177
|
+
let t = e.replaceAll("{participantRole}", He.value);
|
|
32178
32178
|
return t && t.charAt(0).toLocaleUpperCase() + t.slice(1);
|
|
32179
32179
|
}
|
|
32180
|
-
let
|
|
32180
|
+
let We = 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 Ue(Be.value.initializing);
|
|
32183
|
+
case i.Dialing: return Ue(Be.value.dialing);
|
|
32184
|
+
case i.Ringing: return Ue(Be.value.ringing);
|
|
32185
|
+
case i.Answered: return Ue(Be.value.answered);
|
|
32186
|
+
case i.Connected: return Ue(Be.value.connected);
|
|
32187
|
+
case i.Declined: return Ue(Be.value.videoCallDeclined);
|
|
32188
|
+
case i.HangedUp: return Ue(Be.value.videoCallHangedUp);
|
|
32189
|
+
case i.DevicePermissionDenied: return Ue(Be.value.devicePermissionDenied);
|
|
32190
|
+
}
|
|
32191
|
+
}), Ge = a(() => he.value || We.value), Ke = a(() => ge.value), qe = a(() => ee.value ? ".incoming__screenshare" : ".incoming__video");
|
|
32192
32192
|
te(() => {
|
|
32193
|
-
|
|
32193
|
+
At(), Ye(), ve.value = window.setInterval(at, 5e3);
|
|
32194
32194
|
}), re(() => {
|
|
32195
|
-
|
|
32195
|
+
pe.value && window.clearInterval(pe.value), ve.value && window.clearInterval(ve.value), Je(), Ot();
|
|
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 Je() {
|
|
32198
|
+
ye &&= (window.clearTimeout(ye), null), be &&= (window.clearTimeout(be), null), xe &&= (window.clearTimeout(xe), null);
|
|
32199
|
+
}
|
|
32200
|
+
function Ye() {
|
|
32201
|
+
Je(), oe.value === i.Initializing ? ye = window.setTimeout(() => {
|
|
32202
|
+
oe.value === i.Initializing && (he.value = Ue(Be.value.callNotDelivered), ge.value = Ue(Ve.value.callNotDeliveredDetail));
|
|
32203
|
+
}, 3e4) : oe.value === i.Dialing ? be = window.setTimeout(() => {
|
|
32204
|
+
oe.value === i.Dialing && (he.value = "", ge.value = Ue(Ve.value.notAnsweredDetail));
|
|
32205
|
+
}, 1e4) : oe.value === i.Connected && (xe = window.setTimeout(() => {
|
|
32206
|
+
oe.value === i.Connected && (ge.value = Ue(Ve.value.noVideoHint));
|
|
32207
32207
|
}, 5e3));
|
|
32208
32208
|
}
|
|
32209
|
-
function
|
|
32209
|
+
function Xe(e) {
|
|
32210
32210
|
[
|
|
32211
32211
|
i.Declined,
|
|
32212
32212
|
i.HangedUp,
|
|
32213
32213
|
i.DevicePermissionDenied
|
|
32214
|
-
].includes(oe.value) || (oe.value = e,
|
|
32214
|
+
].includes(oe.value) || (oe.value = e, he.value = "", ge.value = "", Ye());
|
|
32215
32215
|
}
|
|
32216
|
-
function
|
|
32217
|
-
|
|
32216
|
+
function Ze() {
|
|
32217
|
+
Xe(i.Declined);
|
|
32218
32218
|
}
|
|
32219
|
-
function
|
|
32220
|
-
|
|
32219
|
+
function Qe() {
|
|
32220
|
+
Xe(i.Answered);
|
|
32221
32221
|
}
|
|
32222
|
-
function
|
|
32223
|
-
oe.value !== i.Connected &&
|
|
32222
|
+
function $e() {
|
|
32223
|
+
oe.value !== i.Connected && Xe(i.Dialing);
|
|
32224
32224
|
}
|
|
32225
|
-
function
|
|
32226
|
-
oe.value !== i.DevicePermissionDenied && !b.isCallee &&
|
|
32225
|
+
function et() {
|
|
32226
|
+
oe.value !== i.DevicePermissionDenied && !b.isCallee && lt();
|
|
32227
32227
|
}
|
|
32228
|
-
async function
|
|
32229
|
-
|
|
32228
|
+
async function tt() {
|
|
32229
|
+
Xe(i.HangedUp), ae.value.video && Et();
|
|
32230
32230
|
}
|
|
32231
|
-
function
|
|
32232
|
-
|
|
32231
|
+
function nt(e) {
|
|
32232
|
+
Xe(i.HangedUp), ge.value = gt(e);
|
|
32233
32233
|
}
|
|
32234
|
-
function
|
|
32235
|
-
|
|
32234
|
+
function rt() {
|
|
32235
|
+
he.value = Ue(Be.value.signalHold), ge.value = Ue(Ve.value.signalHoldDetail);
|
|
32236
32236
|
}
|
|
32237
|
-
function
|
|
32238
|
-
|
|
32237
|
+
function it() {
|
|
32238
|
+
_e.value = /* @__PURE__ */ new Date();
|
|
32239
32239
|
}
|
|
32240
|
-
function
|
|
32241
|
-
if (!
|
|
32242
|
-
let e = /* @__PURE__ */ new Date(), t = new Date(
|
|
32243
|
-
r >= 40 ? (
|
|
32240
|
+
function at() {
|
|
32241
|
+
if (!_e.value || oe.value === i.HangedUp) return;
|
|
32242
|
+
let e = /* @__PURE__ */ new Date(), t = new Date(_e.value), n = Math.abs(e.getTime() - t.getTime()), r = Math.ceil(n / 1e3);
|
|
32243
|
+
r >= 40 ? (he.value = Be.value.connectionIssues, ge.value = Ve.value.connectionIssuesStrong, ne.value = 0) : r > 20 && (he.value = Be.value.connectionIssues, ge.value = Ve.value.connectionIssuesMedium, ne.value = 1);
|
|
32244
32244
|
}
|
|
32245
|
-
async function
|
|
32246
|
-
await
|
|
32245
|
+
async function ot(e) {
|
|
32246
|
+
await kt(), 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), pe.value = window.setInterval(Et, 5e3), !ae.value.audio || !ae.value.video) {
|
|
32252
|
+
Xe(i.DevicePermissionDenied);
|
|
32253
32253
|
return;
|
|
32254
32254
|
}
|
|
32255
|
-
N.agent.on("incomingCall",
|
|
32255
|
+
N.agent.on("incomingCall", st), b.isCallee ? x("ready") : x("start-call");
|
|
32256
32256
|
}
|
|
32257
|
-
async function
|
|
32258
|
-
if (!
|
|
32259
|
-
|
|
32257
|
+
async function st(e) {
|
|
32258
|
+
if (!me.value) try {
|
|
32259
|
+
me.value = !0, N.incomingCall = e.incomingCall, await ut();
|
|
32260
32260
|
} catch (e) {
|
|
32261
32261
|
console.log("error occured during starting call", e);
|
|
32262
32262
|
} finally {
|
|
32263
|
-
|
|
32263
|
+
me.value = !1;
|
|
32264
32264
|
}
|
|
32265
32265
|
}
|
|
32266
|
-
async function
|
|
32267
|
-
let e = await
|
|
32266
|
+
async function ct() {
|
|
32267
|
+
let e = await dt();
|
|
32268
32268
|
return e ? { localVideoStreams: [e] } : void 0;
|
|
32269
32269
|
}
|
|
32270
|
-
async function
|
|
32270
|
+
async function lt() {
|
|
32271
32271
|
try {
|
|
32272
|
-
|
|
32273
|
-
let e = { videoOptions: await
|
|
32274
|
-
N.call = N.agent.startCall(t, e),
|
|
32272
|
+
Xe(i.Dialing);
|
|
32273
|
+
let e = { videoOptions: await ct() }, t = [{ communicationUserId: b.participant.videoCallIdentityId }];
|
|
32274
|
+
N.call = N.agent.startCall(t, e), pt(), ft();
|
|
32275
32275
|
} catch (e) {
|
|
32276
32276
|
console.error(e);
|
|
32277
32277
|
}
|
|
32278
32278
|
}
|
|
32279
|
-
async function
|
|
32280
|
-
let e = await
|
|
32279
|
+
async function ut() {
|
|
32280
|
+
let e = await ct();
|
|
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
|
+
pt(), ft();
|
|
32287
32287
|
}
|
|
32288
|
-
async function
|
|
32288
|
+
async function dt() {
|
|
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 ft() {
|
|
32294
|
+
N.call.on("stateChanged", ht), N.call.on("localVideoStreamsUpdated", (e) => {
|
|
32295
|
+
e.added.forEach(vt), e.removed.forEach(_t);
|
|
32296
|
+
}), N.call.remoteParticipants.forEach(bt), N.call.on("remoteParticipantsUpdated", (e) => {
|
|
32297
|
+
e.added.forEach(bt);
|
|
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 pt() {
|
|
32303
|
+
M.value = N.call.feature(_.UserFacingDiagnostics), M.value.media.on("diagnosticChanged", mt), M.value.network.on("diagnosticChanged", mt);
|
|
32304
32304
|
}
|
|
32305
|
-
function
|
|
32305
|
+
function mt(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 ht() {
|
|
32309
32309
|
switch (N.call.state) {
|
|
32310
32310
|
case "EarlyMedia":
|
|
32311
|
-
|
|
32311
|
+
Xe(i.Dialing);
|
|
32312
32312
|
break;
|
|
32313
32313
|
case "Ringing":
|
|
32314
|
-
|
|
32314
|
+
Xe(i.Ringing);
|
|
32315
32315
|
break;
|
|
32316
32316
|
case "Connected":
|
|
32317
|
-
|
|
32317
|
+
Xe(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), tt();
|
|
32322
32322
|
break;
|
|
32323
32323
|
}
|
|
32324
32324
|
}
|
|
32325
|
-
function
|
|
32325
|
+
function gt(e) {
|
|
32326
32326
|
let t = String(e);
|
|
32327
|
-
return
|
|
32327
|
+
return Ue(Oe.value.endReasons?.[t] || "");
|
|
32328
32328
|
}
|
|
32329
|
-
function
|
|
32330
|
-
|
|
32331
|
-
|
|
32332
|
-
async function xt(e) {
|
|
32333
|
-
if (console.log("Removing local screen share stream", e), !e || e.mediaStreamType !== "ScreenSharing") return;
|
|
32334
|
-
bt();
|
|
32329
|
+
async function _t(e) {
|
|
32330
|
+
if (!e || e.mediaStreamType !== "ScreenSharing" || !de.value) return;
|
|
32331
|
+
de.value.dispose();
|
|
32335
32332
|
let t = document.querySelector(".outgoing__screenshare");
|
|
32336
|
-
t.
|
|
32333
|
+
t.style.display = "none";
|
|
32337
32334
|
let n = document.querySelector(".outgoing__video");
|
|
32338
|
-
n.style.display = "flex"
|
|
32335
|
+
n.style.display = "flex";
|
|
32339
32336
|
}
|
|
32340
|
-
async function
|
|
32341
|
-
if (
|
|
32342
|
-
|
|
32343
|
-
let t =
|
|
32344
|
-
|
|
32345
|
-
|
|
32346
|
-
|
|
32347
|
-
|
|
32348
|
-
|
|
32349
|
-
let n = e.querySelector("video");
|
|
32350
|
-
n.style.objectFit = "contain", e.style.display = "flex";
|
|
32351
|
-
let r = document.querySelector(".outgoing__video");
|
|
32352
|
-
r.style.display = "none", console.log("local screen share displayed");
|
|
32353
|
-
} catch (e) {
|
|
32354
|
-
de.value === t ? bt() : t.dispose(), console.error("Failed to render local screen share", e);
|
|
32355
|
-
}
|
|
32337
|
+
async function vt(e) {
|
|
32338
|
+
if (!e || e.mediaStreamType !== "ScreenSharing") return;
|
|
32339
|
+
de.value = await new h(e).createView();
|
|
32340
|
+
let t = document.querySelector(".outgoing__screenshare");
|
|
32341
|
+
t.replaceChildren(de.value.target), t.style.display = "flex";
|
|
32342
|
+
let n = document.querySelector(".outgoing__video");
|
|
32343
|
+
n.style.display = "none";
|
|
32344
|
+
let r = t.querySelector("video");
|
|
32345
|
+
r.style.objectFit = "contain";
|
|
32356
32346
|
}
|
|
32357
|
-
async function
|
|
32358
|
-
if (
|
|
32347
|
+
async function yt(e) {
|
|
32348
|
+
if (e && e.source && ce.value && ce.value.source && ce.value.source.id == e.source.id) return !0;
|
|
32359
32349
|
try {
|
|
32360
32350
|
le.value = new h(e);
|
|
32361
32351
|
let t = await le.value.createView(), n = document.querySelector(".outgoing__video");
|
|
32362
|
-
n.
|
|
32352
|
+
n.querySelector("video") && (n.innerHTML = ""), n.hidden = !1, n.replaceChildren(t.target);
|
|
32363
32353
|
} catch {
|
|
32364
32354
|
return !1;
|
|
32365
32355
|
}
|
|
32366
|
-
return ce.value = e,
|
|
32356
|
+
return ce.value = e, !0;
|
|
32367
32357
|
}
|
|
32368
|
-
async function
|
|
32369
|
-
e.videoStreams.forEach(
|
|
32370
|
-
e.added.forEach(
|
|
32358
|
+
async function bt(e) {
|
|
32359
|
+
e.videoStreams.forEach(xt), e.on("videoStreamsUpdated", (e) => {
|
|
32360
|
+
e.added.forEach(xt);
|
|
32371
32361
|
});
|
|
32372
32362
|
}
|
|
32373
|
-
async function
|
|
32374
|
-
if (e.mediaStreamType === "Video" && (await
|
|
32363
|
+
async function xt(e) {
|
|
32364
|
+
if (e.mediaStreamType === "Video" && (await St(e), e.on("isAvailableChanged", async () => await St(e))), e.mediaStreamType === "ScreenSharing" && e.on("isAvailableChanged", wt), e.mediaStreamType === "ScreenSharing" && e.isAvailable) {
|
|
32375
32365
|
ue.value = new h(e);
|
|
32376
32366
|
let t = await ue.value.createView(), n = document.querySelector(".incoming__screenshare");
|
|
32377
|
-
|
|
32367
|
+
Ct(!0), ee.value = !0, Dt(".incoming__screenshare"), n.replaceChildren(t.target);
|
|
32378
32368
|
}
|
|
32379
32369
|
}
|
|
32380
|
-
async function
|
|
32370
|
+
async function St(e) {
|
|
32381
32371
|
if (!e.isAvailable) return;
|
|
32382
32372
|
ue.value = new h(e);
|
|
32383
32373
|
let t = await ue.value.createView(), n = document.querySelector(".incoming__video");
|
|
32384
|
-
n.hidden = !1, n.replaceChildren(t.target),
|
|
32374
|
+
n.hidden = !1, n.replaceChildren(t.target), Dt(".incoming__video"), Ct(!1);
|
|
32385
32375
|
}
|
|
32386
|
-
function
|
|
32376
|
+
function Ct(e) {
|
|
32387
32377
|
let t = document.querySelector(".incoming__video"), n = document.querySelector(".incoming__screenshare");
|
|
32388
32378
|
t.style.display = e ? "none" : "block", n.style.display = e ? "flex" : "none";
|
|
32389
32379
|
}
|
|
32390
|
-
function
|
|
32391
|
-
ee.value = !1,
|
|
32380
|
+
function wt() {
|
|
32381
|
+
ee.value = !1, Ct(!1);
|
|
32392
32382
|
}
|
|
32393
|
-
async function
|
|
32394
|
-
|
|
32383
|
+
async function Tt() {
|
|
32384
|
+
Et(!0);
|
|
32395
32385
|
}
|
|
32396
|
-
async function
|
|
32386
|
+
async function Et(e = !1) {
|
|
32397
32387
|
let t = N.call?.state;
|
|
32398
32388
|
if (t === "Connecting" || t === "EarlyMedia") return;
|
|
32399
32389
|
let n = (await N.deviceManager.getCameras()).filter((e) => e.name != "OBS Virtual Camera");
|
|
32400
|
-
|
|
32401
|
-
for (let t = 0; t <
|
|
32402
|
-
(e || t != 0) && (
|
|
32403
|
-
let r = n[
|
|
32404
|
-
if (await
|
|
32390
|
+
fe.value = n.length;
|
|
32391
|
+
for (let t = 0; t < fe.value; t++) {
|
|
32392
|
+
(e || t != 0) && (F.value = (F.value + 1) % fe.value);
|
|
32393
|
+
let r = n[F.value];
|
|
32394
|
+
if (await yt(new g(r))) break;
|
|
32405
32395
|
}
|
|
32406
32396
|
}
|
|
32407
|
-
function
|
|
32397
|
+
function Dt(e) {
|
|
32408
32398
|
let t = document.querySelector(e);
|
|
32409
32399
|
if (!t) return;
|
|
32410
32400
|
let n = t.querySelector("video");
|
|
32411
32401
|
n && (n.style.objectFit = "contain", n.disablePictureInPicture = !1);
|
|
32412
32402
|
}
|
|
32413
|
-
async function
|
|
32403
|
+
async function Ot() {
|
|
32414
32404
|
N.call && N.call.state !== "Disconnected" && (await N.call.hangUp({ forEveryone: !0 }), await N.agent.dispose()), x("end-call", C.value);
|
|
32415
32405
|
}
|
|
32416
|
-
async function
|
|
32406
|
+
async function kt() {
|
|
32417
32407
|
return o ||= Promise.all([import("@azure/communication-calling"), import("@azure/communication-common")]).then(([e, t]) => {
|
|
32418
32408
|
f = e.CallClient, h = e.VideoStreamRenderer, g = e.LocalVideoStream, _ = e.Features, v = e.DiagnosticQuality, y = t.AzureCommunicationTokenCredential;
|
|
32419
32409
|
}), o;
|
|
32420
32410
|
}
|
|
32421
|
-
async function
|
|
32411
|
+
async function At() {
|
|
32422
32412
|
d ||= import("./browser-aFX0ImH2.js");
|
|
32423
32413
|
let { AzureLogger: e, setLogLevel: t } = await d;
|
|
32424
32414
|
e.log = (...e) => console.log(...e), t("info"), e.log = (...e) => {
|
|
@@ -32426,39 +32416,26 @@ var mX = ["src", "alt"], hX = {
|
|
|
32426
32416
|
C.value = C.value.splice(1 - cZ).concat(t);
|
|
32427
32417
|
};
|
|
32428
32418
|
}
|
|
32429
|
-
function
|
|
32430
|
-
document.querySelector(
|
|
32419
|
+
function jt() {
|
|
32420
|
+
document.querySelector(qe.value).querySelector("video").requestFullscreen();
|
|
32431
32421
|
}
|
|
32432
|
-
function
|
|
32433
|
-
let e = document.querySelector(
|
|
32422
|
+
function Mt() {
|
|
32423
|
+
let e = document.querySelector(qe.value).querySelector("video");
|
|
32434
32424
|
document.pictureInPictureElement ? e.exitPictureInPicture() : document.pictureInPictureEnabled && e.requestPictureInPicture();
|
|
32435
32425
|
}
|
|
32436
|
-
async function
|
|
32437
|
-
|
|
32438
|
-
if (!(!e || pe.value)) {
|
|
32439
|
-
pe.value = !0;
|
|
32440
|
-
try {
|
|
32441
|
-
e.isScreenSharingOn ? await e.stopScreenSharing() : (console.log({
|
|
32442
|
-
isScreenSharingOn: e.isScreenSharingOn,
|
|
32443
|
-
localVideoStreams: e.localVideoStreams.map((e) => e.mediaStreamType)
|
|
32444
|
-
}), await e.startScreenSharing());
|
|
32445
|
-
} catch (t) {
|
|
32446
|
-
D.value = e.isScreenSharingOn, console.error("Failed to change screen sharing state", t);
|
|
32447
|
-
} finally {
|
|
32448
|
-
pe.value = !1;
|
|
32449
|
-
}
|
|
32450
|
-
}
|
|
32426
|
+
async function Nt() {
|
|
32427
|
+
N.call && N.call.isScreenSharingOn ? await N.call.stopScreenSharing() : await N.call.startScreenSharing();
|
|
32451
32428
|
}
|
|
32452
32429
|
return n({
|
|
32453
|
-
CallDeclined:
|
|
32454
|
-
CallAnswered:
|
|
32455
|
-
CallForDataReceived:
|
|
32456
|
-
CallClosedWithStatusCode:
|
|
32457
|
-
CallHeartbeatReceived:
|
|
32458
|
-
CallSignalHoldDetected:
|
|
32459
|
-
CallStartVideoCall:
|
|
32460
|
-
CallHangUp:
|
|
32461
|
-
InitializeAcsConnection:
|
|
32430
|
+
CallDeclined: Ze,
|
|
32431
|
+
CallAnswered: Qe,
|
|
32432
|
+
CallForDataReceived: $e,
|
|
32433
|
+
CallClosedWithStatusCode: nt,
|
|
32434
|
+
CallHeartbeatReceived: it,
|
|
32435
|
+
CallSignalHoldDetected: rt,
|
|
32436
|
+
CallStartVideoCall: et,
|
|
32437
|
+
CallHangUp: tt,
|
|
32438
|
+
InitializeAcsConnection: ot
|
|
32462
32439
|
}), (e, n) => {
|
|
32463
32440
|
let r = se("BDLoader");
|
|
32464
32441
|
return A(), l("div", BX, [m(Xq, null, {
|
|
@@ -32471,23 +32448,23 @@ var mX = ["src", "alt"], hX = {
|
|
|
32471
32448
|
}), m(Zq, null, {
|
|
32472
32449
|
default: I(() => [m(Yq, {
|
|
32473
32450
|
sm: "12",
|
|
32474
|
-
lg:
|
|
32451
|
+
lg: Fe.value ? "12" : "8"
|
|
32475
32452
|
}, {
|
|
32476
|
-
default: I(() => [u("div", { class: O(["incoming",
|
|
32453
|
+
default: I(() => [u("div", { class: O(["incoming", De.value]) }, [Re.value ? (A(), l("div", VX, [
|
|
32477
32454
|
m(r, {
|
|
32478
32455
|
size: "lg",
|
|
32479
|
-
message:
|
|
32480
|
-
stopAnimation:
|
|
32456
|
+
message: We.value,
|
|
32457
|
+
stopAnimation: Fe.value || Ie.value || ze.value
|
|
32481
32458
|
}, null, 8, ["message", "stopAnimation"]),
|
|
32482
|
-
|
|
32483
|
-
|
|
32484
|
-
|
|
32459
|
+
Ee.value ? (A(), l("div", HX, [u("div", UX, [m(Ri, { class: "icon-xl icon-state-error" })]), u("span", null, P(je.value.permissionDeniedForAudio), 1)])) : c("", !0),
|
|
32460
|
+
Te.value ? (A(), l("div", WX, [u("div", GX, [m(oo, { class: "icon-xl icon-state-error" })]), u("span", null, P(je.value.permissionDeniedForVideo), 1)])) : c("", !0),
|
|
32461
|
+
Fe.value || Ie.value || ze.value ? (A(), s(R, {
|
|
32485
32462
|
key: 2,
|
|
32486
32463
|
variant: "primary",
|
|
32487
32464
|
class: "text-center",
|
|
32488
|
-
onClick:
|
|
32465
|
+
onClick: Ot
|
|
32489
32466
|
}, {
|
|
32490
|
-
default: I(() => [p(P(
|
|
32467
|
+
default: I(() => [p(P(ke.value.closeWindow), 1)]),
|
|
32491
32468
|
_: 1
|
|
32492
32469
|
})) : c("", !0)
|
|
32493
32470
|
])) : (A(), l("div", KX, [
|
|
@@ -32496,69 +32473,68 @@ var mX = ["src", "alt"], hX = {
|
|
|
32496
32473
|
u("div", qX, [m(R, {
|
|
32497
32474
|
variant: "primary",
|
|
32498
32475
|
class: "text-center",
|
|
32499
|
-
onClick:
|
|
32476
|
+
onClick: jt
|
|
32500
32477
|
}, {
|
|
32501
|
-
default: I(() => [m(xa), u("span", null, P(
|
|
32478
|
+
default: I(() => [m(xa), u("span", null, P(ke.value.fullScreen), 1)]),
|
|
32502
32479
|
_: 1
|
|
32503
32480
|
}), !T && !k.value ? (A(), s(R, {
|
|
32504
32481
|
key: 0,
|
|
32505
32482
|
variant: "primary",
|
|
32506
32483
|
class: "text-center",
|
|
32507
|
-
onClick:
|
|
32484
|
+
onClick: Mt
|
|
32508
32485
|
}, {
|
|
32509
|
-
default: I(() => [m(xa), u("span", null, P(
|
|
32486
|
+
default: I(() => [m(xa), u("span", null, P(ke.value.miniPlayer), 1)]),
|
|
32510
32487
|
_: 1
|
|
32511
32488
|
})) : c("", !0)])
|
|
32512
32489
|
]))], 2)]),
|
|
32513
32490
|
_: 1
|
|
32514
|
-
}, 8, ["lg"]),
|
|
32491
|
+
}, 8, ["lg"]), Fe.value ? c("", !0) : (A(), s(Yq, {
|
|
32515
32492
|
key: 0,
|
|
32516
32493
|
sm: "12",
|
|
32517
32494
|
lg: "4"
|
|
32518
32495
|
}, {
|
|
32519
32496
|
default: I(() => [u("div", JX, [u("div", null, [
|
|
32520
32497
|
u("div", YX, [u("div", XX, [
|
|
32521
|
-
|
|
32498
|
+
ze.value ? c("", !0) : (A(), l("div", ZX)),
|
|
32522
32499
|
n[2] ||= u("div", { class: "outgoing__screenshare" }, null, -1),
|
|
32523
|
-
|
|
32500
|
+
we.value && !ze.value && !k.value && !Re.value ? (A(), s(R, {
|
|
32524
32501
|
key: 1,
|
|
32525
32502
|
variant: D.value ? "danger" : "primary",
|
|
32526
32503
|
class: "text-center",
|
|
32527
|
-
onClick:
|
|
32528
|
-
disabled: pe.value
|
|
32504
|
+
onClick: Nt
|
|
32529
32505
|
}, {
|
|
32530
|
-
default: I(() => [m(xa), u("span", null, P(
|
|
32506
|
+
default: I(() => [m(xa), u("span", null, P(Ne.value), 1)]),
|
|
32531
32507
|
_: 1
|
|
32532
|
-
}, 8, ["variant"
|
|
32533
|
-
|
|
32508
|
+
}, 8, ["variant"])) : c("", !0),
|
|
32509
|
+
Ce.value ? (A(), l(t, { key: 2 }, [m(R, {
|
|
32534
32510
|
class: "text-center",
|
|
32535
|
-
onClick:
|
|
32511
|
+
onClick: Tt
|
|
32536
32512
|
}, {
|
|
32537
|
-
default: I(() => [p(P(
|
|
32513
|
+
default: I(() => [p(P(ke.value.switchCamera), 1)]),
|
|
32538
32514
|
_: 1
|
|
32539
|
-
}), u("p", QX, P(
|
|
32540
|
-
|
|
32515
|
+
}), u("p", QX, P(Se.value), 1)], 64)) : c("", !0),
|
|
32516
|
+
Te.value ? (A(), l("div", $X, [u("div", eZ, [m(oo, { class: "icon-xxl icon-state-error" })]), u("span", null, P(je.value.permissionDeniedForVideo), 1)])) : c("", !0)
|
|
32541
32517
|
])]),
|
|
32542
|
-
!
|
|
32518
|
+
!Ie.value && !ze.value ? (A(), s(R, {
|
|
32543
32519
|
key: 0,
|
|
32544
32520
|
variant: "danger",
|
|
32545
32521
|
class: "end-call-button text-center w-100",
|
|
32546
|
-
onClick:
|
|
32522
|
+
onClick: Ot
|
|
32547
32523
|
}, {
|
|
32548
|
-
default: I(() => [m(zn), u("span", null, P(
|
|
32524
|
+
default: I(() => [m(zn), u("span", null, P(ke.value.endCall), 1)]),
|
|
32549
32525
|
_: 1
|
|
32550
32526
|
})) : c("", !0),
|
|
32551
|
-
u("div", tZ, [u("div", nZ, [u("p", rZ, P(
|
|
32552
|
-
u("p", null, [u("b", null, P(
|
|
32553
|
-
u("p", null, P(
|
|
32527
|
+
u("div", tZ, [u("div", nZ, [u("p", rZ, P(Ge.value), 1), Ke.value ? (A(), l("small", iZ, P(Ke.value), 1)) : c("", !0)]), u("div", aZ, [
|
|
32528
|
+
u("p", null, [u("b", null, P(Pe.value), 1)]),
|
|
32529
|
+
u("p", null, P(L.value), 1),
|
|
32554
32530
|
u("p", null, [
|
|
32555
32531
|
u("a", {
|
|
32556
32532
|
href: b.videoTestUrl,
|
|
32557
32533
|
target: "_blank",
|
|
32558
32534
|
rel: "noopener noreferrer"
|
|
32559
|
-
}, P(
|
|
32535
|
+
}, P(ke.value.testCall), 9, oZ),
|
|
32560
32536
|
n[3] ||= p(" • ", -1),
|
|
32561
|
-
u("a", sZ, P(
|
|
32537
|
+
u("a", sZ, P(ke.value.serviceDesk), 1)
|
|
32562
32538
|
])
|
|
32563
32539
|
])])
|
|
32564
32540
|
])])]),
|