@webex/widgets 1.20.5 → 1.20.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/webexWidgets.css +1 -1
- package/dist/webexWidgets.esm.js +828 -664
- package/dist/webexWidgets.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/webexWidgets.esm.js
CHANGED
@@ -4300,7 +4300,7 @@ function X(e) {
|
|
4300
4300
|
};
|
4301
4301
|
}
|
4302
4302
|
|
4303
|
-
var
|
4303
|
+
var K = function (r) {
|
4304
4304
|
_inherits(i, R);
|
4305
4305
|
var a = X(i);
|
4306
4306
|
|
@@ -4319,16 +4319,16 @@ var J = function (r) {
|
|
4319
4319
|
}]), i;
|
4320
4320
|
}();
|
4321
4321
|
|
4322
|
-
function
|
4322
|
+
function J(e, t) {
|
4323
4323
|
for (var n = e, r = 0, a = Object.entries(t); r < a.length; r++) {
|
4324
4324
|
var i = _slicedToArray(a[r], 2),
|
4325
4325
|
o = i[0],
|
4326
4326
|
s = i[1];
|
4327
|
-
(null == s ? void 0 : s.constructor) === Object ?
|
4327
|
+
(null == s ? void 0 : s.constructor) === Object ? J(n[o], s) : n[o] = s;
|
4328
4328
|
}
|
4329
4329
|
}
|
4330
4330
|
|
4331
|
-
var
|
4331
|
+
var Q = function t(n, r) {
|
4332
4332
|
_classCallCheck(this, t), this.adapter = n, this.ID = r;
|
4333
4333
|
};
|
4334
4334
|
|
@@ -4359,7 +4359,7 @@ function $(e) {
|
|
4359
4359
|
}
|
4360
4360
|
|
4361
4361
|
var ee = function (r) {
|
4362
|
-
_inherits(i,
|
4362
|
+
_inherits(i, Q);
|
4363
4363
|
var a = $(i);
|
4364
4364
|
|
4365
4365
|
function i() {
|
@@ -4409,7 +4409,7 @@ function te(e) {
|
|
4409
4409
|
}
|
4410
4410
|
|
4411
4411
|
var ne = function (r) {
|
4412
|
-
_inherits(i,
|
4412
|
+
_inherits(i, Q);
|
4413
4413
|
var a = te(i);
|
4414
4414
|
|
4415
4415
|
function i() {
|
@@ -4459,7 +4459,7 @@ function re(e) {
|
|
4459
4459
|
}
|
4460
4460
|
|
4461
4461
|
var ae = function (r) {
|
4462
|
-
_inherits(o,
|
4462
|
+
_inherits(o, Q);
|
4463
4463
|
var a,
|
4464
4464
|
i = re(o);
|
4465
4465
|
|
@@ -4537,7 +4537,7 @@ function ie(e) {
|
|
4537
4537
|
}
|
4538
4538
|
|
4539
4539
|
var oe = function (r) {
|
4540
|
-
_inherits(s,
|
4540
|
+
_inherits(s, Q);
|
4541
4541
|
var a,
|
4542
4542
|
i = ie(s);
|
4543
4543
|
|
@@ -4605,7 +4605,7 @@ function se(e) {
|
|
4605
4605
|
}
|
4606
4606
|
|
4607
4607
|
var ce = function (r) {
|
4608
|
-
_inherits(o,
|
4608
|
+
_inherits(o, Q);
|
4609
4609
|
var a,
|
4610
4610
|
i = se(o);
|
4611
4611
|
|
@@ -4685,7 +4685,7 @@ function le(e) {
|
|
4685
4685
|
}
|
4686
4686
|
|
4687
4687
|
var ue = function (r) {
|
4688
|
-
_inherits(o,
|
4688
|
+
_inherits(o, Q);
|
4689
4689
|
var a,
|
4690
4690
|
i = le(o);
|
4691
4691
|
|
@@ -4764,7 +4764,7 @@ function me(e) {
|
|
4764
4764
|
}
|
4765
4765
|
|
4766
4766
|
var pe = function (r) {
|
4767
|
-
_inherits(o,
|
4767
|
+
_inherits(o, Q);
|
4768
4768
|
var a,
|
4769
4769
|
i = me(o);
|
4770
4770
|
|
@@ -4843,7 +4843,7 @@ function de(e) {
|
|
4843
4843
|
}
|
4844
4844
|
|
4845
4845
|
var fe = function (r) {
|
4846
|
-
_inherits(o,
|
4846
|
+
_inherits(o, Q);
|
4847
4847
|
var a,
|
4848
4848
|
i = de(o);
|
4849
4849
|
|
@@ -4922,7 +4922,7 @@ function he(e) {
|
|
4922
4922
|
}
|
4923
4923
|
|
4924
4924
|
var ve = function (r) {
|
4925
|
-
_inherits(o,
|
4925
|
+
_inherits(o, Q);
|
4926
4926
|
var a,
|
4927
4927
|
i = he(o);
|
4928
4928
|
|
@@ -5027,7 +5027,7 @@ function Ce(e) {
|
|
5027
5027
|
}
|
5028
5028
|
|
5029
5029
|
var we = function (r) {
|
5030
|
-
_inherits(l,
|
5030
|
+
_inherits(l, Q);
|
5031
5031
|
var a,
|
5032
5032
|
i = Ce(l);
|
5033
5033
|
|
@@ -5151,7 +5151,7 @@ function xe(e) {
|
|
5151
5151
|
}
|
5152
5152
|
|
5153
5153
|
var Ne = function (r) {
|
5154
|
-
_inherits(l,
|
5154
|
+
_inherits(l, Q);
|
5155
5155
|
var a,
|
5156
5156
|
i = xe(l);
|
5157
5157
|
|
@@ -5352,7 +5352,7 @@ function Re(e) {
|
|
5352
5352
|
}
|
5353
5353
|
|
5354
5354
|
var je = function (r) {
|
5355
|
-
_inherits(l,
|
5355
|
+
_inherits(l, Q);
|
5356
5356
|
var a,
|
5357
5357
|
i = Re(l);
|
5358
5358
|
|
@@ -6522,7 +6522,7 @@ var Ve = {
|
|
6522
6522
|
return r = this.fetchMeeting(t), e.next = 3, n(r);
|
6523
6523
|
|
6524
6524
|
case 3:
|
6525
|
-
a = e.sent,
|
6525
|
+
a = e.sent, J(r, a), document.dispatchEvent(new CustomEvent("meeting:update", {
|
6526
6526
|
detail: r
|
6527
6527
|
}));
|
6528
6528
|
|
@@ -6803,7 +6803,7 @@ function Xe(e) {
|
|
6803
6803
|
|
6804
6804
|
function i(t) {
|
6805
6805
|
var n;
|
6806
|
-
return _classCallCheck(this, i), (n = a.call(this, t)).activitiesAdapter = new
|
6806
|
+
return _classCallCheck(this, i), (n = a.call(this, t)).activitiesAdapter = new K(t.activities), n.meetingsAdapter = new He(t.meetings), n.membershipsAdapter = new Ue(t.memberships), n.organizationsAdapter = new Fe(t.organizations), n.peopleAdapter = new Ye(t.people), n.roomsAdapter = new _e(t.rooms), n;
|
6807
6807
|
}
|
6808
6808
|
|
6809
6809
|
return _createClass(i, [{
|
@@ -6819,7 +6819,7 @@ function Xe(e) {
|
|
6819
6819
|
}]), i;
|
6820
6820
|
})();
|
6821
6821
|
|
6822
|
-
function
|
6822
|
+
function Je(e) {
|
6823
6823
|
var t = e.size,
|
6824
6824
|
n = e.className,
|
6825
6825
|
r = e.style;
|
@@ -6835,7 +6835,7 @@ function Qe(e) {
|
|
6835
6835
|
}));
|
6836
6836
|
}
|
6837
6837
|
|
6838
|
-
function
|
6838
|
+
function Qe(e) {
|
6839
6839
|
var t = e.size,
|
6840
6840
|
n = e.className,
|
6841
6841
|
r = e.style;
|
@@ -7541,19 +7541,19 @@ function Pt(e) {
|
|
7541
7541
|
}));
|
7542
7542
|
}
|
7543
7543
|
|
7544
|
-
|
7544
|
+
Je.propTypes = {
|
7545
7545
|
size: T.number,
|
7546
7546
|
className: T.string,
|
7547
7547
|
style: T.shape()
|
7548
|
-
},
|
7548
|
+
}, Je.defaultProps = {
|
7549
7549
|
size: 26,
|
7550
7550
|
className: "",
|
7551
7551
|
style: {}
|
7552
|
-
},
|
7552
|
+
}, Qe.propTypes = {
|
7553
7553
|
size: T.number,
|
7554
7554
|
className: T.string,
|
7555
7555
|
style: T.shape()
|
7556
|
-
},
|
7556
|
+
}, Qe.defaultProps = {
|
7557
7557
|
size: 16,
|
7558
7558
|
className: "",
|
7559
7559
|
style: {}
|
@@ -7815,8 +7815,8 @@ Qe.propTypes = {
|
|
7815
7815
|
style: {}
|
7816
7816
|
};
|
7817
7817
|
var Lt = {
|
7818
|
-
"arrow-down":
|
7819
|
-
"arrow-left":
|
7818
|
+
"arrow-down": Je,
|
7819
|
+
"arrow-left": Qe,
|
7820
7820
|
"arrow-up": $e,
|
7821
7821
|
check: nt,
|
7822
7822
|
camera: at,
|
@@ -7969,24 +7969,24 @@ var Ht,
|
|
7969
7969
|
Gt = /auto|scroll/,
|
7970
7970
|
_t = /^tb|vertical/,
|
7971
7971
|
Xt = /msie|trident/i.test(Wt.navigator && Wt.navigator.userAgent),
|
7972
|
-
|
7972
|
+
Kt = function (e) {
|
7973
7973
|
return parseFloat(e || "0");
|
7974
7974
|
},
|
7975
|
-
|
7975
|
+
Jt = function (e, t, n) {
|
7976
7976
|
return void 0 === e && (e = 0), void 0 === t && (t = 0), void 0 === n && (n = !1), Object.freeze({
|
7977
7977
|
inlineSize: (n ? t : e) || 0,
|
7978
7978
|
blockSize: (n ? e : t) || 0
|
7979
7979
|
});
|
7980
7980
|
},
|
7981
|
-
|
7982
|
-
devicePixelContentBoxSize:
|
7983
|
-
borderBoxSize:
|
7984
|
-
contentBoxSize:
|
7981
|
+
Qt = Object.freeze({
|
7982
|
+
devicePixelContentBoxSize: Jt(),
|
7983
|
+
borderBoxSize: Jt(),
|
7984
|
+
contentBoxSize: Jt(),
|
7985
7985
|
contentRect: new qt(0, 0, 0, 0)
|
7986
7986
|
}),
|
7987
7987
|
$t = function (e, t) {
|
7988
7988
|
if (void 0 === t && (t = !1), Yt.has(e) && !t) return Yt.get(e);
|
7989
|
-
if (Zt(e)) return Yt.set(e,
|
7989
|
+
if (Zt(e)) return Yt.set(e, Qt), Qt;
|
7990
7990
|
|
7991
7991
|
var n = getComputedStyle(e),
|
7992
7992
|
r = Ut(e) && e.ownerSVGElement && e.getBBox(),
|
@@ -7994,29 +7994,29 @@ var Ht,
|
|
7994
7994
|
i = _t.test(n.writingMode || ""),
|
7995
7995
|
o = !r && Gt.test(n.overflowY || ""),
|
7996
7996
|
s = !r && Gt.test(n.overflowX || ""),
|
7997
|
-
c = r ? 0 :
|
7998
|
-
l = r ? 0 :
|
7999
|
-
u = r ? 0 :
|
8000
|
-
m = r ? 0 :
|
8001
|
-
p = r ? 0 :
|
8002
|
-
d = r ? 0 :
|
8003
|
-
f = r ? 0 :
|
7997
|
+
c = r ? 0 : Kt(n.paddingTop),
|
7998
|
+
l = r ? 0 : Kt(n.paddingRight),
|
7999
|
+
u = r ? 0 : Kt(n.paddingBottom),
|
8000
|
+
m = r ? 0 : Kt(n.paddingLeft),
|
8001
|
+
p = r ? 0 : Kt(n.borderTopWidth),
|
8002
|
+
d = r ? 0 : Kt(n.borderRightWidth),
|
8003
|
+
f = r ? 0 : Kt(n.borderBottomWidth),
|
8004
8004
|
h = m + l,
|
8005
8005
|
v = c + u,
|
8006
|
-
g = (r ? 0 :
|
8006
|
+
g = (r ? 0 : Kt(n.borderLeftWidth)) + d,
|
8007
8007
|
y = p + f,
|
8008
8008
|
C = s ? e.offsetHeight - y - e.clientHeight : 0,
|
8009
8009
|
w = o ? e.offsetWidth - g - e.clientWidth : 0,
|
8010
8010
|
b = a ? h + g : 0,
|
8011
8011
|
E = a ? v + y : 0,
|
8012
|
-
x = r ? r.width :
|
8013
|
-
N = r ? r.height :
|
8012
|
+
x = r ? r.width : Kt(n.width) - b - w,
|
8013
|
+
N = r ? r.height : Kt(n.height) - E - C,
|
8014
8014
|
k = x + h + w + g,
|
8015
8015
|
O = N + v + C + y,
|
8016
8016
|
D = Object.freeze({
|
8017
|
-
devicePixelContentBoxSize:
|
8018
|
-
borderBoxSize:
|
8019
|
-
contentBoxSize:
|
8017
|
+
devicePixelContentBoxSize: Jt(Math.round(x * devicePixelRatio), Math.round(N * devicePixelRatio), i),
|
8018
|
+
borderBoxSize: Jt(k, O, i),
|
8019
|
+
contentBoxSize: Jt(x, N, i),
|
8020
8020
|
contentRect: new qt(m, c, x, N)
|
8021
8021
|
});
|
8022
8022
|
|
@@ -8259,23 +8259,8 @@ var Ht,
|
|
8259
8259
|
}, e;
|
8260
8260
|
}();
|
8261
8261
|
|
8262
|
-
function En() {
|
8263
|
-
var
|
8264
|
-
t,
|
8265
|
-
n,
|
8266
|
-
r,
|
8267
|
-
a = (e = useState(0), t = _slicedToArray(e, 2), n = t[0], r = t[1], function () {
|
8268
|
-
return r(n + 1);
|
8269
|
-
}),
|
8270
|
-
i = useCallback(function (e) {
|
8271
|
-
i.current = e, a();
|
8272
|
-
}, []);
|
8273
|
-
return i;
|
8274
|
-
}
|
8275
|
-
|
8276
|
-
function xn() {
|
8277
|
-
var e = En(),
|
8278
|
-
t = useState(0),
|
8262
|
+
function En(e) {
|
8263
|
+
var t = useState(0),
|
8279
8264
|
n = _slicedToArray(t, 2),
|
8280
8265
|
r = n[0],
|
8281
8266
|
a = n[1],
|
@@ -8297,13 +8282,13 @@ function xn() {
|
|
8297
8282
|
}
|
8298
8283
|
|
8299
8284
|
return t;
|
8300
|
-
}, [e.current]),
|
8285
|
+
}, [e.current]), {
|
8301
8286
|
height: r,
|
8302
8287
|
width: s
|
8303
|
-
}
|
8288
|
+
};
|
8304
8289
|
}
|
8305
8290
|
|
8306
|
-
function
|
8291
|
+
function xn() {
|
8307
8292
|
var e = useState({}),
|
8308
8293
|
t = _slicedToArray(e, 2),
|
8309
8294
|
n = t[0],
|
@@ -8319,7 +8304,7 @@ function Nn() {
|
|
8319
8304
|
}, []), n;
|
8320
8305
|
}
|
8321
8306
|
|
8322
|
-
function
|
8307
|
+
function Nn(e, t) {
|
8323
8308
|
var n = Object.keys(e);
|
8324
8309
|
|
8325
8310
|
if (Object.getOwnPropertySymbols) {
|
@@ -8332,12 +8317,12 @@ function kn(e, t) {
|
|
8332
8317
|
return n;
|
8333
8318
|
}
|
8334
8319
|
|
8335
|
-
function
|
8320
|
+
function kn(e) {
|
8336
8321
|
for (var t = 1; t < arguments.length; t++) {
|
8337
8322
|
var n = null != arguments[t] ? arguments[t] : {};
|
8338
|
-
t % 2 ?
|
8323
|
+
t % 2 ? Nn(Object(n), !0).forEach(function (t) {
|
8339
8324
|
_defineProperty(e, t, n[t]);
|
8340
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
8325
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nn(Object(n)).forEach(function (t) {
|
8341
8326
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
8342
8327
|
});
|
8343
8328
|
}
|
@@ -8345,7 +8330,7 @@ function On(e) {
|
|
8345
8330
|
return e;
|
8346
8331
|
}
|
8347
8332
|
|
8348
|
-
var
|
8333
|
+
var On = {
|
8349
8334
|
ID: null,
|
8350
8335
|
title: null,
|
8351
8336
|
localAudio: {
|
@@ -8369,8 +8354,8 @@ var Dn = {
|
|
8369
8354
|
error: null
|
8370
8355
|
};
|
8371
8356
|
|
8372
|
-
function
|
8373
|
-
var t = useState(
|
8357
|
+
function Dn(e) {
|
8358
|
+
var t = useState(On),
|
8374
8359
|
n = _slicedToArray(t, 2),
|
8375
8360
|
r = n[0],
|
8376
8361
|
a = n[1],
|
@@ -8381,9 +8366,9 @@ function Mn(e) {
|
|
8381
8366
|
|
8382
8367
|
if (e && o) {
|
8383
8368
|
var n = o.getMeeting(e).subscribe(function (e) {
|
8384
|
-
a(
|
8369
|
+
a(kn({}, e));
|
8385
8370
|
}, function (e) {
|
8386
|
-
a(
|
8371
|
+
a(kn(kn({}, On), {}, {
|
8387
8372
|
error: e
|
8388
8373
|
})), console.log(e);
|
8389
8374
|
});
|
@@ -8391,13 +8376,13 @@ function Mn(e) {
|
|
8391
8376
|
t = function () {
|
8392
8377
|
n.unsubscribe();
|
8393
8378
|
};
|
8394
|
-
} else a(
|
8379
|
+
} else a(kn({}, On)), t = void 0;
|
8395
8380
|
|
8396
8381
|
return t;
|
8397
8382
|
}, [o, e]), r;
|
8398
8383
|
}
|
8399
8384
|
|
8400
|
-
function
|
8385
|
+
function Mn(e, t) {
|
8401
8386
|
var n = useState({}),
|
8402
8387
|
r = _slicedToArray(n, 2),
|
8403
8388
|
a = r[0],
|
@@ -8423,7 +8408,7 @@ function Tn(e, t) {
|
|
8423
8408
|
}, a] : [function () {}, {}];
|
8424
8409
|
}
|
8425
8410
|
|
8426
|
-
function
|
8411
|
+
function Tn(e, t) {
|
8427
8412
|
var n = Object.keys(e);
|
8428
8413
|
|
8429
8414
|
if (Object.getOwnPropertySymbols) {
|
@@ -8436,12 +8421,12 @@ function Pn(e, t) {
|
|
8436
8421
|
return n;
|
8437
8422
|
}
|
8438
8423
|
|
8439
|
-
function
|
8424
|
+
function Pn(e) {
|
8440
8425
|
for (var t = 1; t < arguments.length; t++) {
|
8441
8426
|
var n = null != arguments[t] ? arguments[t] : {};
|
8442
|
-
t % 2 ?
|
8427
|
+
t % 2 ? Tn(Object(n), !0).forEach(function (t) {
|
8443
8428
|
_defineProperty(e, t, n[t]);
|
8444
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
8429
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tn(Object(n)).forEach(function (t) {
|
8445
8430
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
8446
8431
|
});
|
8447
8432
|
}
|
@@ -8449,7 +8434,7 @@ function Ln(e) {
|
|
8449
8434
|
return e;
|
8450
8435
|
}
|
8451
8436
|
|
8452
|
-
var
|
8437
|
+
var Ln = {
|
8453
8438
|
title: null,
|
8454
8439
|
localShare: {
|
8455
8440
|
stream: null
|
@@ -8465,8 +8450,8 @@ var In = {
|
|
8465
8450
|
state: null
|
8466
8451
|
};
|
8467
8452
|
|
8468
|
-
function
|
8469
|
-
var t = useState(
|
8453
|
+
function In(e) {
|
8454
|
+
var t = useState(Ln),
|
8470
8455
|
n = _slicedToArray(t, 2),
|
8471
8456
|
r = n[0],
|
8472
8457
|
a = n[1],
|
@@ -8499,9 +8484,9 @@ function Sn(e) {
|
|
8499
8484
|
};
|
8500
8485
|
});
|
8501
8486
|
})).subscribe(function (e) {
|
8502
|
-
a(
|
8487
|
+
a(Pn({}, e)), n = e;
|
8503
8488
|
}, function (e) {
|
8504
|
-
a(
|
8489
|
+
a(Pn(Pn({}, Ln), {}, {
|
8505
8490
|
error: e
|
8506
8491
|
})), console.log(e);
|
8507
8492
|
}),
|
@@ -8514,13 +8499,13 @@ function Sn(e) {
|
|
8514
8499
|
var e;
|
8515
8500
|
null !== (e = n) && void 0 !== e && e.ID && s.leaveMeeting(n.ID), c && (window.removeEventListener("beforeunload", c), c = void 0), i.unsubscribe();
|
8516
8501
|
};
|
8517
|
-
} else a(
|
8502
|
+
} else a(Pn({}, Ln)), t = void 0;
|
8518
8503
|
|
8519
8504
|
return t;
|
8520
8505
|
}, [s, e]), r;
|
8521
8506
|
}
|
8522
8507
|
|
8523
|
-
function
|
8508
|
+
function Sn(e, t) {
|
8524
8509
|
var n = useState([]),
|
8525
8510
|
r = _slicedToArray(n, 2),
|
8526
8511
|
a = r[0],
|
@@ -8538,7 +8523,7 @@ function Rn(e, t) {
|
|
8538
8523
|
}, [o, e, t]), a;
|
8539
8524
|
}
|
8540
8525
|
|
8541
|
-
function
|
8526
|
+
function Rn(e, t) {
|
8542
8527
|
var n = Object.keys(e);
|
8543
8528
|
|
8544
8529
|
if (Object.getOwnPropertySymbols) {
|
@@ -8551,7 +8536,7 @@ function jn(e, t) {
|
|
8551
8536
|
return n;
|
8552
8537
|
}
|
8553
8538
|
|
8554
|
-
function
|
8539
|
+
function jn(e) {
|
8555
8540
|
var t = useState({}),
|
8556
8541
|
n = _slicedToArray(t, 2),
|
8557
8542
|
r = n[0],
|
@@ -8565,9 +8550,9 @@ function zn(e) {
|
|
8565
8550
|
a(function (e) {
|
8566
8551
|
for (var t = 1; t < arguments.length; t++) {
|
8567
8552
|
var n = null != arguments[t] ? arguments[t] : {};
|
8568
|
-
t % 2 ?
|
8553
|
+
t % 2 ? Rn(Object(n), !0).forEach(function (t) {
|
8569
8554
|
_defineProperty(e, t, n[t]);
|
8570
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
8555
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Rn(Object(n)).forEach(function (t) {
|
8571
8556
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
8572
8557
|
});
|
8573
8558
|
}
|
@@ -8587,6 +8572,15 @@ function zn(e) {
|
|
8587
8572
|
}, [e]), r;
|
8588
8573
|
}
|
8589
8574
|
|
8575
|
+
function zn() {
|
8576
|
+
var e = useState(),
|
8577
|
+
t = _slicedToArray(e, 2)[1],
|
8578
|
+
n = useCallback(function (e) {
|
8579
|
+
n.current = e, t(e);
|
8580
|
+
}, []);
|
8581
|
+
return n;
|
8582
|
+
}
|
8583
|
+
|
8590
8584
|
function An(e, t) {
|
8591
8585
|
var n = Object.keys(e);
|
8592
8586
|
|
@@ -8764,7 +8758,7 @@ function Xn(e) {
|
|
8764
8758
|
return t.setSeconds(0, 0), 6e4 * n + (n > 0 ? (6e4 + _n(t)) % 6e4 : _n(t));
|
8765
8759
|
}
|
8766
8760
|
|
8767
|
-
function
|
8761
|
+
function Jn(e) {
|
8768
8762
|
Zn(1, arguments);
|
8769
8763
|
var t = Fn(e);
|
8770
8764
|
return !isNaN(t);
|
@@ -10014,7 +10008,7 @@ function Yr(e, t, n) {
|
|
10014
10008
|
if (!i.localize) throw new RangeError("locale must contain localize property");
|
10015
10009
|
if (!i.formatLong) throw new RangeError("locale must contain formatLong property");
|
10016
10010
|
var p = Fn(e);
|
10017
|
-
if (!
|
10011
|
+
if (!Jn(p)) throw new RangeError("Invalid time value");
|
10018
10012
|
var d = Xn(p),
|
10019
10013
|
f = sr(p, d),
|
10020
10014
|
h = {
|
@@ -10156,52 +10150,50 @@ function la(e) {
|
|
10156
10150
|
r = e.mediaType,
|
10157
10151
|
a = e.meetingID,
|
10158
10152
|
i = e.style,
|
10159
|
-
o =
|
10160
|
-
s =
|
10161
|
-
c =
|
10162
|
-
l =
|
10163
|
-
u =
|
10164
|
-
m =
|
10165
|
-
p =
|
10166
|
-
d =
|
10167
|
-
f = Nn().ID,
|
10168
|
-
h = En();
|
10153
|
+
o = zn(),
|
10154
|
+
s = En(o).width,
|
10155
|
+
c = Dn(a),
|
10156
|
+
l = c.localVideo,
|
10157
|
+
u = c.localShare,
|
10158
|
+
m = c.settings,
|
10159
|
+
p = xn().ID,
|
10160
|
+
d = zn();
|
10169
10161
|
|
10170
10162
|
switch (r) {
|
10171
10163
|
case "video":
|
10172
|
-
t =
|
10164
|
+
t = l.stream;
|
10173
10165
|
break;
|
10174
10166
|
|
10175
10167
|
case "screen":
|
10176
|
-
t = null ==
|
10168
|
+
t = null == u ? void 0 : u.stream;
|
10177
10169
|
break;
|
10178
10170
|
|
10179
10171
|
case "preview":
|
10180
|
-
t =
|
10172
|
+
t = m.preview.video;
|
10181
10173
|
}
|
10182
10174
|
|
10183
|
-
Vn(
|
10184
|
-
var
|
10185
|
-
desktop:
|
10175
|
+
Vn(d, t);
|
10176
|
+
var f = Pe("local-media", n, {
|
10177
|
+
desktop: s >= 425,
|
10186
10178
|
"no-media": !t
|
10187
10179
|
}),
|
10188
|
-
|
10189
|
-
|
10190
|
-
|
10191
|
-
|
10192
|
-
personID:
|
10180
|
+
h = _slicedToArray(f, 2),
|
10181
|
+
v = h[0],
|
10182
|
+
g = h[1],
|
10183
|
+
y = p ? x.createElement(qn, {
|
10184
|
+
personID: p,
|
10193
10185
|
displayStatus: !1
|
10194
10186
|
}) : x.createElement(ca, null);
|
10195
10187
|
return x.createElement("div", {
|
10196
|
-
ref:
|
10197
|
-
className:
|
10188
|
+
ref: o,
|
10189
|
+
className: v,
|
10198
10190
|
style: i
|
10199
10191
|
}, t ? x.createElement("video", {
|
10200
|
-
className:
|
10201
|
-
ref:
|
10192
|
+
className: g("video"),
|
10193
|
+
ref: d,
|
10202
10194
|
playsInline: !0,
|
10203
10195
|
autoPlay: !0
|
10204
|
-
}) :
|
10196
|
+
}) : y);
|
10205
10197
|
}
|
10206
10198
|
|
10207
10199
|
function ua(e) {
|
@@ -10233,53 +10225,51 @@ function pa(e) {
|
|
10233
10225
|
var t = e.className,
|
10234
10226
|
n = e.meetingID,
|
10235
10227
|
r = e.style,
|
10236
|
-
a =
|
10228
|
+
a = Dn(n),
|
10237
10229
|
i = a.remoteAudio,
|
10238
10230
|
o = a.remoteVideo,
|
10239
10231
|
s = a.remoteShare,
|
10240
10232
|
c = a.error,
|
10241
10233
|
l = a.speakerID,
|
10242
|
-
u =
|
10243
|
-
m =
|
10244
|
-
p =
|
10245
|
-
d =
|
10234
|
+
u = Sn(n, "meeting"),
|
10235
|
+
m = zn(),
|
10236
|
+
p = zn(),
|
10237
|
+
d = zn(),
|
10238
|
+
f = zn();
|
10246
10239
|
Vn(m, i), Vn(p, o), Vn(d, s), function (e, t) {
|
10247
10240
|
var n = e.current;
|
10248
10241
|
useEffect(function () {
|
10249
10242
|
n && (n.setSinkId ? n.setSinkId(t) : console.error("useSpeakers: setSinkId() not supported on this element", n));
|
10250
10243
|
}, [n, t]);
|
10251
10244
|
}(m, l);
|
10252
|
-
var
|
10253
|
-
|
10254
|
-
|
10255
|
-
g = v[0],
|
10256
|
-
y = v[1].width,
|
10257
|
-
C = u.filter(function (e) {
|
10245
|
+
var h,
|
10246
|
+
v = En(f).width,
|
10247
|
+
g = u.filter(function (e) {
|
10258
10248
|
return e.inMeeting;
|
10259
10249
|
}).length > 1,
|
10260
|
-
|
10261
|
-
|
10262
|
-
tablet:
|
10263
|
-
desktop:
|
10264
|
-
"desktop-xl":
|
10250
|
+
y = !!(i || o || s),
|
10251
|
+
C = Pe("remote-media", t, {
|
10252
|
+
tablet: v >= 768 && v < 1024,
|
10253
|
+
desktop: v >= 1024 && v < 1440,
|
10254
|
+
"desktop-xl": v >= 1440,
|
10265
10255
|
"remote-video-n-share": o && s
|
10266
10256
|
}),
|
10267
|
-
|
10268
|
-
|
10269
|
-
|
10270
|
-
return
|
10271
|
-
className:
|
10257
|
+
w = _slicedToArray(C, 2),
|
10258
|
+
E = w[0],
|
10259
|
+
N = w[1];
|
10260
|
+
return h = c ? x.createElement("div", {
|
10261
|
+
className: N("media-error")
|
10272
10262
|
}, x.createElement(It, {
|
10273
10263
|
name: "error",
|
10274
|
-
className:
|
10275
|
-
}), x.createElement("div", null, "Having trouble joining the meeting?"), x.createElement("div", null, "Please check your connection.")) :
|
10276
|
-
className: "".concat(
|
10264
|
+
className: N("error-icon")
|
10265
|
+
}), x.createElement("div", null, "Having trouble joining the meeting?"), x.createElement("div", null, "Please check your connection.")) : y && g ? x.createElement(x.Fragment, null, o && x.createElement("video", {
|
10266
|
+
className: "".concat(N("video"), " ").concat(N("remote-video")),
|
10277
10267
|
ref: p,
|
10278
10268
|
muted: !0,
|
10279
10269
|
playsInline: !0,
|
10280
10270
|
autoPlay: !0
|
10281
10271
|
}), s && x.createElement("video", {
|
10282
|
-
className: "".concat(
|
10272
|
+
className: "".concat(N("video"), " ").concat(N("remote-share")),
|
10283
10273
|
ref: d,
|
10284
10274
|
muted: !0,
|
10285
10275
|
playsInline: !0,
|
@@ -10287,67 +10277,65 @@ function pa(e) {
|
|
10287
10277
|
}), i && x.createElement("audio", {
|
10288
10278
|
ref: m,
|
10289
10279
|
autoPlay: !0
|
10290
|
-
})) :
|
10280
|
+
})) : y && !g ? x.createElement(ma, {
|
10291
10281
|
type: "subsection"
|
10292
10282
|
}, "Waiting for others to join...") : x.createElement(ua, {
|
10293
|
-
className:
|
10283
|
+
className: N("connecting-badge")
|
10294
10284
|
}, x.createElement(ca, {
|
10295
10285
|
size: 14,
|
10296
|
-
className:
|
10286
|
+
className: N("connecting-spinner")
|
10297
10287
|
}), x.createElement("span", null, "Connecting")), x.createElement("div", {
|
10298
|
-
ref:
|
10299
|
-
className:
|
10288
|
+
ref: f,
|
10289
|
+
className: E,
|
10300
10290
|
style: r
|
10301
|
-
},
|
10291
|
+
}, h);
|
10302
10292
|
}
|
10303
10293
|
|
10304
10294
|
function da(e) {
|
10305
10295
|
var t = e.className,
|
10306
10296
|
n = e.meetingID,
|
10307
10297
|
r = e.style,
|
10308
|
-
a =
|
10298
|
+
a = Dn(n),
|
10309
10299
|
i = a.remoteShare,
|
10310
10300
|
o = a.localShare,
|
10311
|
-
s =
|
10312
|
-
c =
|
10313
|
-
l = c
|
10314
|
-
u = c
|
10315
|
-
m =
|
10316
|
-
p =
|
10317
|
-
d =
|
10318
|
-
f =
|
10319
|
-
h =
|
10320
|
-
v =
|
10321
|
-
|
10322
|
-
|
10323
|
-
|
10324
|
-
desktop: m >= 1024 && m < 1440,
|
10325
|
-
"desktop-xl": m >= 1440,
|
10301
|
+
s = zn(),
|
10302
|
+
c = En(s),
|
10303
|
+
l = c.width,
|
10304
|
+
u = c.height,
|
10305
|
+
m = useState("none"),
|
10306
|
+
p = _slicedToArray(m, 2),
|
10307
|
+
d = p[0],
|
10308
|
+
f = p[1],
|
10309
|
+
h = null != o && o.stream ? "screen" : "video",
|
10310
|
+
v = Pe("in-meeting", t, {
|
10311
|
+
tablet: l >= 768 && l < 1024,
|
10312
|
+
desktop: l >= 1024 && l < 1440,
|
10313
|
+
"desktop-xl": l >= 1440,
|
10326
10314
|
"remote-sharing": null !== i
|
10327
10315
|
}),
|
10328
|
-
|
10329
|
-
|
10330
|
-
|
10316
|
+
g = _slicedToArray(v, 2),
|
10317
|
+
y = g[0],
|
10318
|
+
C = g[1];
|
10331
10319
|
return useEffect(function () {
|
10332
|
-
|
10333
|
-
}, [
|
10334
|
-
ref:
|
10335
|
-
className:
|
10320
|
+
f(u ? 16 * u / 9 : "none");
|
10321
|
+
}, [u]), x.createElement("div", {
|
10322
|
+
ref: s,
|
10323
|
+
className: y,
|
10336
10324
|
style: r
|
10337
10325
|
}, x.createElement("div", {
|
10338
10326
|
style: {
|
10339
|
-
maxWidth:
|
10327
|
+
maxWidth: d
|
10340
10328
|
},
|
10341
|
-
className:
|
10329
|
+
className: C("media-container")
|
10342
10330
|
}, x.createElement(pa, {
|
10343
|
-
className:
|
10331
|
+
className: C("remote-media-in-meeting"),
|
10344
10332
|
meetingID: n
|
10345
10333
|
}), x.createElement(la, {
|
10346
|
-
className:
|
10334
|
+
className: C("local-media-in-meeting"),
|
10347
10335
|
meetingID: n,
|
10348
|
-
mediaType:
|
10336
|
+
mediaType: h
|
10349
10337
|
}), (null == o ? void 0 : o.stream) && x.createElement(oa, {
|
10350
|
-
className:
|
10338
|
+
className: C("share-banner")
|
10351
10339
|
}, "You're sharing your screen")));
|
10352
10340
|
}
|
10353
10341
|
|
@@ -10359,40 +10347,38 @@ function fa(e) {
|
|
10359
10347
|
i = e.className,
|
10360
10348
|
o = e.meetingID,
|
10361
10349
|
s = e.style,
|
10362
|
-
c =
|
10350
|
+
c = Dn(o),
|
10363
10351
|
l = c.ID,
|
10364
10352
|
u = c.startTime,
|
10365
10353
|
m = c.endTime,
|
10366
10354
|
p = c.title,
|
10367
|
-
d =
|
10368
|
-
f =
|
10369
|
-
h =
|
10370
|
-
|
10371
|
-
|
10372
|
-
tablet: v >= 768 && v < 1024,
|
10373
|
-
desktop: v >= 1024
|
10355
|
+
d = zn(),
|
10356
|
+
f = En(d).width,
|
10357
|
+
h = Pe("meeting-info", i, {
|
10358
|
+
tablet: f >= 768 && f < 1024,
|
10359
|
+
desktop: f >= 1024
|
10374
10360
|
}),
|
10375
|
-
|
10376
|
-
|
10377
|
-
|
10378
|
-
|
10361
|
+
v = _slicedToArray(h, 2),
|
10362
|
+
g = v[0],
|
10363
|
+
y = v[1],
|
10364
|
+
C = x.createElement(ca, {
|
10379
10365
|
size: 36
|
10380
10366
|
});
|
10381
10367
|
|
10382
10368
|
if (l) {
|
10383
|
-
var
|
10384
|
-
|
10385
|
-
className:
|
10386
|
-
},
|
10387
|
-
className:
|
10369
|
+
var w = p || "No Meeting Information";
|
10370
|
+
C = x.createElement(x.Fragment, null, x.createElement("h2", {
|
10371
|
+
className: y("title")
|
10372
|
+
}, w), u && m && x.createElement("h3", {
|
10373
|
+
className: y("time")
|
10388
10374
|
}, (t = new Date(u), n = new Date(m), r = Yr(t, "p"), a = Yr(n, "p"), "".concat(r, " - ").concat(a))));
|
10389
10375
|
}
|
10390
10376
|
|
10391
10377
|
return x.createElement("div", {
|
10392
|
-
ref:
|
10393
|
-
className:
|
10378
|
+
ref: d,
|
10379
|
+
className: g,
|
10394
10380
|
style: s
|
10395
|
-
},
|
10381
|
+
}, C);
|
10396
10382
|
}
|
10397
10383
|
|
10398
10384
|
function ha(e) {
|
@@ -10403,36 +10389,34 @@ function ha(e) {
|
|
10403
10389
|
i = _slicedToArray(a, 2),
|
10404
10390
|
o = i[0],
|
10405
10391
|
s = i[1],
|
10406
|
-
c =
|
10407
|
-
l =
|
10408
|
-
u =
|
10409
|
-
m =
|
10410
|
-
p =
|
10411
|
-
d =
|
10412
|
-
f =
|
10413
|
-
h = d[1],
|
10414
|
-
v = Mn(n).localVideo;
|
10392
|
+
c = zn(),
|
10393
|
+
l = En(c).height,
|
10394
|
+
u = useState("none"),
|
10395
|
+
m = _slicedToArray(u, 2),
|
10396
|
+
p = m[0],
|
10397
|
+
d = m[1],
|
10398
|
+
f = Dn(n).localVideo;
|
10415
10399
|
return useEffect(function () {
|
10416
|
-
|
10417
|
-
}, [
|
10400
|
+
d(l ? 16 * l / 9 - 1 : "none");
|
10401
|
+
}, [l]), x.createElement("div", {
|
10418
10402
|
className: o,
|
10419
10403
|
style: r
|
10420
10404
|
}, n ? x.createElement("div", {
|
10421
10405
|
style: {
|
10422
|
-
maxWidth:
|
10406
|
+
maxWidth: p
|
10423
10407
|
},
|
10424
10408
|
className: s("media-container")
|
10425
10409
|
}, x.createElement(fa, {
|
10426
10410
|
className: s("info"),
|
10427
10411
|
meetingID: n
|
10428
10412
|
}), x.createElement("div", {
|
10429
|
-
ref:
|
10413
|
+
ref: c,
|
10430
10414
|
className: s("interstitial-media-container")
|
10431
10415
|
}, x.createElement(la, {
|
10432
10416
|
className: s("media"),
|
10433
10417
|
meetingID: n,
|
10434
10418
|
mediaType: "video"
|
10435
|
-
}),
|
10419
|
+
}), f.stream && x.createElement(oa, null, "My preview"))) : x.createElement(ca, null));
|
10436
10420
|
}
|
10437
10421
|
|
10438
10422
|
la.propTypes = {
|
@@ -10620,7 +10604,7 @@ function Ea(e) {
|
|
10620
10604
|
f = e.type,
|
10621
10605
|
h = Pe("button", i, (_defineProperty(t = {}, "".concat(f), !0), _defineProperty(t, "pressed", c), t)),
|
10622
10606
|
v = _slicedToArray(h, 1)[0],
|
10623
|
-
g =
|
10607
|
+
g = zn();
|
10624
10608
|
return zt(g, r), x.createElement(x.Fragment, null, x.createElement("button", {
|
10625
10609
|
className: v,
|
10626
10610
|
disabled: o,
|
@@ -10662,7 +10646,7 @@ function xa(e) {
|
|
10662
10646
|
C = _slicedToArray(y, 2),
|
10663
10647
|
w = C[0],
|
10664
10648
|
E = C[1],
|
10665
|
-
k =
|
10649
|
+
k = zn();
|
10666
10650
|
return zt(k, p), x.createElement("div", {
|
10667
10651
|
className: v,
|
10668
10652
|
style: n
|
@@ -10723,31 +10707,29 @@ function Na(e) {
|
|
10723
10707
|
i = e.otherClassName,
|
10724
10708
|
o = e.title,
|
10725
10709
|
s = e.ariaLabel,
|
10726
|
-
c =
|
10727
|
-
l =
|
10728
|
-
|
10729
|
-
m = Pe("modal", n, {
|
10730
|
-
"centered-modal": l[1].width > 768
|
10710
|
+
c = zn(),
|
10711
|
+
l = Pe("modal", n, {
|
10712
|
+
"centered-modal": En(c).width > 768
|
10731
10713
|
}),
|
10732
|
-
|
10733
|
-
|
10734
|
-
|
10714
|
+
u = _slicedToArray(l, 2),
|
10715
|
+
m = u[0],
|
10716
|
+
p = u[1];
|
10735
10717
|
return x.createElement("div", {
|
10736
|
-
ref:
|
10737
|
-
className:
|
10718
|
+
ref: c,
|
10719
|
+
className: m,
|
10738
10720
|
onKeyUp: function (e) {
|
10739
10721
|
"Escape" !== e.key && "Esc" !== e.key || a();
|
10740
10722
|
},
|
10741
10723
|
role: "dialog",
|
10742
10724
|
"aria-label": s || o
|
10743
10725
|
}, x.createElement("div", {
|
10744
|
-
className: "".concat(
|
10726
|
+
className: "".concat(p("content"), " ").concat(i)
|
10745
10727
|
}, x.createElement("div", {
|
10746
|
-
className:
|
10728
|
+
className: p("header")
|
10747
10729
|
}, r && x.createElement(Ea, {
|
10748
10730
|
tabIndex: 198,
|
10749
10731
|
type: "ghost",
|
10750
|
-
className:
|
10732
|
+
className: p("back"),
|
10751
10733
|
size: 28,
|
10752
10734
|
onClick: r,
|
10753
10735
|
ariaLabel: "Return to the previous screen"
|
@@ -10755,10 +10737,10 @@ function Na(e) {
|
|
10755
10737
|
name: "arrow-left",
|
10756
10738
|
size: "13"
|
10757
10739
|
})), o && x.createElement("h3", {
|
10758
|
-
className:
|
10740
|
+
className: p("title")
|
10759
10741
|
}, o), a && x.createElement(Ea, {
|
10760
10742
|
tabIndex: 199,
|
10761
|
-
className:
|
10743
|
+
className: p("close"),
|
10762
10744
|
type: "ghost",
|
10763
10745
|
size: 28,
|
10764
10746
|
ariaLabel: "Close dialog",
|
@@ -10767,71 +10749,86 @@ function Na(e) {
|
|
10767
10749
|
name: "cancel",
|
10768
10750
|
size: 16
|
10769
10751
|
}))), x.createElement("div", {
|
10770
|
-
className:
|
10752
|
+
className: p("body")
|
10771
10753
|
}, t)));
|
10772
10754
|
}
|
10773
10755
|
|
10774
10756
|
function ka(e) {
|
10775
|
-
var t = e.
|
10757
|
+
var t = e.autoFocus,
|
10776
10758
|
n = e.className,
|
10777
|
-
r = e.
|
10759
|
+
r = e.onMouseEnter,
|
10778
10760
|
a = e.onSelect,
|
10761
|
+
i = e.option,
|
10762
|
+
o = e.selected,
|
10763
|
+
s = e.tabIndex,
|
10764
|
+
c = zn(),
|
10765
|
+
l = Pe("option", n),
|
10766
|
+
u = _slicedToArray(l, 2),
|
10767
|
+
m = u[0],
|
10768
|
+
p = u[1];
|
10769
|
+
zt(c, t);
|
10770
|
+
return x.createElement("li", {
|
10771
|
+
"aria-label": "object" !== _typeof(i.label) ? i.label : i.value,
|
10772
|
+
"aria-selected": o === i.value,
|
10773
|
+
className: m,
|
10774
|
+
key: i.value,
|
10775
|
+
role: "option",
|
10776
|
+
ref: c,
|
10777
|
+
onClick: function () {
|
10778
|
+
return a(i, !1);
|
10779
|
+
},
|
10780
|
+
onKeyDown: function (e) {
|
10781
|
+
var t;
|
10782
|
+
"ArrowUp" === e.key ? t = c.current.previousElementSibling : "ArrowDown" === e.key ? t = c.current.nextElementSibling : "Enter" === e.key && a(i, !0), t && t.focus();
|
10783
|
+
},
|
10784
|
+
onMouseEnter: r,
|
10785
|
+
tabIndex: s,
|
10786
|
+
title: "object" !== _typeof(i.label) ? i.label : void 0
|
10787
|
+
}, i.icon && x.createElement(It, {
|
10788
|
+
name: i.icon
|
10789
|
+
}), x.createElement("span", {
|
10790
|
+
className: p("label")
|
10791
|
+
}, i.label), o && x.createElement(It, {
|
10792
|
+
className: De(p("check"), _defineProperty({}, p("check--invisible"), o !== i.value)),
|
10793
|
+
size: 16,
|
10794
|
+
name: "check"
|
10795
|
+
}));
|
10796
|
+
}
|
10797
|
+
|
10798
|
+
function Oa(e) {
|
10799
|
+
var t = e.className,
|
10800
|
+
n = e.onBlur,
|
10801
|
+
r = e.onSelect,
|
10802
|
+
a = e.options,
|
10779
10803
|
i = e.selected,
|
10780
10804
|
o = e.tabIndex,
|
10781
|
-
s =
|
10782
|
-
c =
|
10783
|
-
l = c
|
10784
|
-
u =
|
10785
|
-
m =
|
10786
|
-
zt(m, !0);
|
10787
|
-
var p = useState(0),
|
10788
|
-
f = _slicedToArray(p, 2),
|
10789
|
-
h = f[0],
|
10790
|
-
v = f[1];
|
10805
|
+
s = e.withKey,
|
10806
|
+
c = Pe("options-list", t),
|
10807
|
+
l = _slicedToArray(c, 2),
|
10808
|
+
u = l[0],
|
10809
|
+
m = l[1];
|
10791
10810
|
return x.createElement("div", {
|
10792
|
-
className:
|
10811
|
+
className: u
|
10793
10812
|
}, x.createElement("ul", {
|
10794
10813
|
role: "menu",
|
10795
|
-
className:
|
10796
|
-
onKeyDown: function (e) {
|
10797
|
-
if ("ArrowUp" === e.key) {
|
10798
|
-
var n = (h + t.length - 1) % t.length;
|
10799
|
-
v(n);
|
10800
|
-
} else if ("ArrowDown" === e.key) {
|
10801
|
-
var r = (h + 1) % t.length;
|
10802
|
-
v(r);
|
10803
|
-
} else "Enter" === e.key && a(t[h]);
|
10804
|
-
},
|
10814
|
+
className: m("list"),
|
10805
10815
|
tabIndex: o,
|
10806
|
-
|
10807
|
-
|
10808
|
-
|
10809
|
-
|
10810
|
-
|
10816
|
+
onKeyDown: function (e) {
|
10817
|
+
"Tab" === e.key && n();
|
10818
|
+
}
|
10819
|
+
}, a.map(function (e, t) {
|
10820
|
+
return x.createElement(ka, {
|
10811
10821
|
key: e.value,
|
10812
|
-
|
10813
|
-
|
10814
|
-
|
10815
|
-
|
10816
|
-
|
10817
|
-
|
10818
|
-
"aria-hidden": "true",
|
10819
|
-
role: "option",
|
10820
|
-
"aria-selected": i === e.value,
|
10821
|
-
title: "object" !== _typeof(e.label) && e.label
|
10822
|
-
}, e.icon && x.createElement(It, {
|
10823
|
-
name: e.icon
|
10824
|
-
}), x.createElement("span", {
|
10825
|
-
className: u("label")
|
10826
|
-
}, e.label), i && x.createElement(It, {
|
10827
|
-
className: De(u("check"), _defineProperty({}, u("check--invisible"), i !== e.value)),
|
10828
|
-
size: 16,
|
10829
|
-
name: "check"
|
10830
|
-
}));
|
10822
|
+
autoFocus: s && (e.value === i || 0 === t),
|
10823
|
+
onSelect: r,
|
10824
|
+
option: e,
|
10825
|
+
selected: i,
|
10826
|
+
tabIndex: o
|
10827
|
+
});
|
10831
10828
|
})));
|
10832
10829
|
}
|
10833
10830
|
|
10834
|
-
function
|
10831
|
+
function Da(e) {
|
10835
10832
|
var t,
|
10836
10833
|
n = e.className,
|
10837
10834
|
r = e.value,
|
@@ -10841,7 +10838,7 @@ function Oa(e) {
|
|
10841
10838
|
s = e.tooltip,
|
10842
10839
|
c = e.ariaLabel,
|
10843
10840
|
l = e.tabIndex,
|
10844
|
-
u = useState(
|
10841
|
+
u = useState(void 0),
|
10845
10842
|
m = _slicedToArray(u, 2),
|
10846
10843
|
p = m[0],
|
10847
10844
|
d = m[1],
|
@@ -10854,11 +10851,14 @@ function Oa(e) {
|
|
10854
10851
|
y = null == a || null === (t = a.find(function (e) {
|
10855
10852
|
return e.value === r;
|
10856
10853
|
})) || void 0 === t ? void 0 : t.label,
|
10857
|
-
C =
|
10858
|
-
o || d(!p);
|
10859
|
-
},
|
10854
|
+
C = zn(),
|
10860
10855
|
w = function () {
|
10861
|
-
return d(
|
10856
|
+
return d(void 0);
|
10857
|
+
},
|
10858
|
+
E = function (e) {
|
10859
|
+
return d({
|
10860
|
+
withKey: e
|
10861
|
+
});
|
10862
10862
|
};
|
10863
10863
|
|
10864
10864
|
return useEffect(function () {
|
@@ -10872,28 +10872,33 @@ function Oa(e) {
|
|
10872
10872
|
className: v
|
10873
10873
|
}, x.createElement("div", {
|
10874
10874
|
className: "".concat(g("selected-option"), " ").concat(p ? g("expanded") : ""),
|
10875
|
-
onClick:
|
10875
|
+
onClick: function () {
|
10876
|
+
return e = !1, void (o || d(p ? void 0 : {
|
10877
|
+
withKey: e
|
10878
|
+
}));
|
10879
|
+
var e;
|
10880
|
+
},
|
10876
10881
|
"aria-hidden": "true",
|
10877
10882
|
role: "button",
|
10878
10883
|
tabIndex: l,
|
10879
10884
|
title: s,
|
10880
10885
|
"aria-label": "".concat(y ? "".concat(y, ". ") : "").concat(c),
|
10881
10886
|
onKeyDown: function (e) {
|
10882
|
-
"Enter" !== e.key && " " !== e.key || e.target !== e.currentTarget
|
10883
|
-
}
|
10887
|
+
"Enter" !== e.key && " " !== e.key || e.target !== e.currentTarget ? "Tab" === e.key ? w() : "ArrowDown" !== e.key && "ArrowUp" !== e.key || E(!0) : E(!0);
|
10888
|
+
},
|
10889
|
+
ref: C
|
10884
10890
|
}, x.createElement("span", {
|
10885
10891
|
className: g("label")
|
10886
10892
|
}, y || r), x.createElement(It, {
|
10887
10893
|
name: p ? "arrow-up" : "arrow-down",
|
10888
10894
|
size: 13
|
10889
|
-
})), p && x.createElement(
|
10895
|
+
})), p && x.createElement(Oa, {
|
10890
10896
|
className: g("options-list"),
|
10891
10897
|
options: a,
|
10892
10898
|
onSelect: function (e) {
|
10893
|
-
|
10894
|
-
d(!1), i(e.value);
|
10895
|
-
}(e);
|
10899
|
+
w(), i(e.value), C.current.focus();
|
10896
10900
|
},
|
10901
|
+
withKey: p.withKey,
|
10897
10902
|
selected: r,
|
10898
10903
|
tabIndex: l,
|
10899
10904
|
onBlur: w
|
@@ -10915,7 +10920,7 @@ Ca.propTypes = {
|
|
10915
10920
|
children: T.node.isRequired,
|
10916
10921
|
className: T.string,
|
10917
10922
|
isDisabled: T.bool,
|
10918
|
-
onClick: T.func
|
10923
|
+
onClick: T.func,
|
10919
10924
|
pressed: T.bool,
|
10920
10925
|
style: T.shape(),
|
10921
10926
|
size: T.oneOfType([T.number, T.string]),
|
@@ -10927,6 +10932,7 @@ Ca.propTypes = {
|
|
10927
10932
|
autoFocus: !1,
|
10928
10933
|
className: "",
|
10929
10934
|
isDisabled: !1,
|
10935
|
+
onClick: void 0,
|
10930
10936
|
pressed: !1,
|
10931
10937
|
style: {},
|
10932
10938
|
size: 32,
|
@@ -10977,23 +10983,43 @@ Ca.propTypes = {
|
|
10977
10983
|
title: "",
|
10978
10984
|
ariaLabel: void 0
|
10979
10985
|
}, ka.propTypes = {
|
10986
|
+
className: T.string,
|
10987
|
+
autoFocus: T.bool,
|
10988
|
+
onMouseEnter: T.func,
|
10989
|
+
onSelect: T.func.isRequired,
|
10990
|
+
option: T.shape({
|
10991
|
+
value: T.string,
|
10992
|
+
label: T.node,
|
10993
|
+
icon: T.string
|
10994
|
+
}).isRequired,
|
10995
|
+
selected: T.string,
|
10996
|
+
tabIndex: T.number
|
10997
|
+
}, ka.defaultProps = {
|
10998
|
+
className: "",
|
10999
|
+
autoFocus: void 0,
|
11000
|
+
onMouseEnter: void 0,
|
11001
|
+
selected: void 0,
|
11002
|
+
tabIndex: void 0
|
11003
|
+
}, Oa.propTypes = {
|
10980
11004
|
className: T.string,
|
10981
11005
|
onBlur: T.func,
|
11006
|
+
onSelect: T.func.isRequired,
|
10982
11007
|
options: T.arrayOf(T.shape({
|
10983
11008
|
value: T.string,
|
10984
11009
|
label: T.node,
|
10985
11010
|
icon: T.string
|
10986
11011
|
})),
|
10987
|
-
onSelect: T.func.isRequired,
|
10988
11012
|
selected: T.string,
|
10989
|
-
tabIndex: T.number
|
10990
|
-
|
11013
|
+
tabIndex: T.number,
|
11014
|
+
withKey: T.bool
|
11015
|
+
}, Oa.defaultProps = {
|
10991
11016
|
className: "",
|
10992
11017
|
onBlur: void 0,
|
10993
11018
|
options: [],
|
10994
11019
|
selected: "",
|
10995
|
-
tabIndex: void 0
|
10996
|
-
|
11020
|
+
tabIndex: void 0,
|
11021
|
+
withKey: !1
|
11022
|
+
}, Da.propTypes = {
|
10997
11023
|
className: T.string,
|
10998
11024
|
value: T.string,
|
10999
11025
|
options: T.arrayOf(T.shape({
|
@@ -11005,7 +11031,7 @@ Ca.propTypes = {
|
|
11005
11031
|
tooltip: T.string,
|
11006
11032
|
ariaLabel: T.string,
|
11007
11033
|
tabIndex: T.number
|
11008
|
-
},
|
11034
|
+
}, Da.defaultProps = {
|
11009
11035
|
className: "",
|
11010
11036
|
value: "",
|
11011
11037
|
options: [],
|
@@ -11014,7 +11040,7 @@ Ca.propTypes = {
|
|
11014
11040
|
ariaLabel: void 0,
|
11015
11041
|
tabIndex: void 0
|
11016
11042
|
};
|
11017
|
-
var
|
11043
|
+
var Ma = {
|
11018
11044
|
camera: {
|
11019
11045
|
icon: "camera-bold",
|
11020
11046
|
title: "Allow access to camera",
|
@@ -11037,19 +11063,19 @@ var Da = {
|
|
11037
11063
|
}
|
11038
11064
|
};
|
11039
11065
|
|
11040
|
-
function
|
11066
|
+
function Ta(e) {
|
11041
11067
|
var t = e.className,
|
11042
11068
|
n = e.logo,
|
11043
11069
|
r = e.media,
|
11044
11070
|
a = e.meetingID,
|
11045
11071
|
i = e.style,
|
11046
|
-
o =
|
11072
|
+
o = Ma[r],
|
11047
11073
|
s = Pe("media-access", t),
|
11048
11074
|
c = _slicedToArray(s, 2),
|
11049
11075
|
l = c[0],
|
11050
11076
|
u = c[1],
|
11051
11077
|
m = useContext(Rt),
|
11052
|
-
p =
|
11078
|
+
p = Dn(a).ID;
|
11053
11079
|
return x.createElement("div", {
|
11054
11080
|
className: l,
|
11055
11081
|
style: i
|
@@ -11076,19 +11102,19 @@ function Ma(e) {
|
|
11076
11102
|
}, o.buttonLabel));
|
11077
11103
|
}
|
11078
11104
|
|
11079
|
-
|
11105
|
+
Ta.propTypes = {
|
11080
11106
|
className: T.string,
|
11081
11107
|
logo: T.node,
|
11082
11108
|
media: T.oneOf(["camera", "microphone"]),
|
11083
11109
|
meetingID: T.string.isRequired,
|
11084
11110
|
style: T.shape()
|
11085
|
-
},
|
11111
|
+
}, Ta.defaultProps = {
|
11086
11112
|
className: "",
|
11087
11113
|
logo: void 0,
|
11088
11114
|
media: "camera",
|
11089
11115
|
style: void 0
|
11090
11116
|
};
|
11091
|
-
var
|
11117
|
+
var Pa = {
|
11092
11118
|
JOIN: "join",
|
11093
11119
|
CANCEL: "cancel",
|
11094
11120
|
CLOSE: "ghost",
|
@@ -11096,7 +11122,7 @@ var Ta = {
|
|
11096
11122
|
TOGGLE: "toggle"
|
11097
11123
|
};
|
11098
11124
|
|
11099
|
-
function
|
11125
|
+
function La(e) {
|
11100
11126
|
var t,
|
11101
11127
|
n = e.asItem,
|
11102
11128
|
r = e.autoFocus,
|
@@ -11105,7 +11131,7 @@ function Pa(e) {
|
|
11105
11131
|
o = e.showText,
|
11106
11132
|
s = e.style,
|
11107
11133
|
c = e.tabIndex,
|
11108
|
-
l =
|
11134
|
+
l = Mn(e.type, i),
|
11109
11135
|
u = _slicedToArray(l, 2),
|
11110
11136
|
m = u[0],
|
11111
11137
|
p = u[1],
|
@@ -11121,7 +11147,7 @@ function Pa(e) {
|
|
11121
11147
|
s = n.selected,
|
11122
11148
|
c = n.tooltip,
|
11123
11149
|
l = n.hint;
|
11124
|
-
return x.createElement(
|
11150
|
+
return x.createElement(Da, {
|
11125
11151
|
className: e("control-select"),
|
11126
11152
|
style: r,
|
11127
11153
|
value: s || "",
|
@@ -11160,7 +11186,7 @@ function Pa(e) {
|
|
11160
11186
|
className: e("item-button-text")
|
11161
11187
|
}, u)) : x.createElement(Ea, {
|
11162
11188
|
className: e("control-button"),
|
11163
|
-
type:
|
11189
|
+
type: Pa[l] || "default",
|
11164
11190
|
size: 48,
|
11165
11191
|
isDisabled: d,
|
11166
11192
|
onClick: t,
|
@@ -11180,7 +11206,7 @@ function Pa(e) {
|
|
11180
11206
|
}, t);
|
11181
11207
|
}
|
11182
11208
|
|
11183
|
-
|
11209
|
+
La.propTypes = {
|
11184
11210
|
asItem: T.bool,
|
11185
11211
|
autoFocus: T.bool,
|
11186
11212
|
className: T.string,
|
@@ -11189,7 +11215,7 @@ Pa.propTypes = {
|
|
11189
11215
|
style: T.shape(),
|
11190
11216
|
tabIndex: T.number,
|
11191
11217
|
type: T.string.isRequired
|
11192
|
-
},
|
11218
|
+
}, La.defaultProps = {
|
11193
11219
|
asItem: !1,
|
11194
11220
|
autoFocus: !1,
|
11195
11221
|
className: "",
|
@@ -11198,140 +11224,152 @@ Pa.propTypes = {
|
|
11198
11224
|
tabIndex: void 0
|
11199
11225
|
};
|
11200
11226
|
|
11201
|
-
var
|
11227
|
+
var Ia = function (e) {
|
11202
11228
|
return !!e;
|
11203
11229
|
};
|
11204
11230
|
|
11205
|
-
function
|
11206
|
-
for (var t = e.className, n = e.collapseRangeStart, r = e.collapseRangeEnd, a = e.controls, i = e.meetingID, o = e.style, s = e.tabIndexes, c = useContext(Rt).meetingsAdapter, l =
|
11207
|
-
var
|
11208
|
-
|
11209
|
-
|
11210
|
-
|
11211
|
-
|
11212
|
-
|
11213
|
-
ae = re[0],
|
11214
|
-
ie = re[1].width,
|
11215
|
-
oe = Q < L;
|
11216
|
-
G[Q] = oe && ee, _[Q] = oe && ae, X[Q] = oe && te + 10, J[Q] = oe && ie + 10;
|
11231
|
+
function Sa(e) {
|
11232
|
+
for (var t = e.className, n = e.collapseRangeStart, r = e.collapseRangeEnd, a = e.controls, i = e.meetingID, o = e.style, s = e.tabIndexes, c = useContext(Rt).meetingsAdapter, l = Dn(i).state, u = zn(), m = zn(), p = zn(), d = En(u).width, f = En(p).width, h = l === V, v = Pe("meeting-control-bar", t), g = _slicedToArray(v, 2), y = g[0], C = g[1], w = a(h), D = s(h), M = w.length, T = useState(), P = _slicedToArray(T, 2), L = P[0], I = P[1], S = useState([0, 0]), R = _slicedToArray(S, 2), j = _slicedToArray(R[0], 2), z = j[0], A = j[1], B = R[1], H = useState(void 0), q = _slicedToArray(H, 2), U = q[0], Z = q[1], F = [], W = [], Y = [], G = [], _ = 0; _ < 20; _ += 1) {
|
11233
|
+
var X = zn(),
|
11234
|
+
K = zn(),
|
11235
|
+
J = En(X).width,
|
11236
|
+
Q = En(K).width,
|
11237
|
+
$ = _ < M;
|
11238
|
+
F[_] = $ && X, W[_] = $ && K, Y[_] = $ && J + 10, G[_] = $ && Q + 10;
|
11217
11239
|
}
|
11218
11240
|
|
11241
|
+
var ee = function () {
|
11242
|
+
return Z(void 0);
|
11243
|
+
};
|
11244
|
+
|
11219
11245
|
useEffect(function () {
|
11220
|
-
if (
|
11221
|
-
for (var e =
|
11246
|
+
if (Y.splice(M), G.splice(M), d && f && Y.every(Ia) && G.every(Ia)) {
|
11247
|
+
for (var e = G.reduce(function (e, t) {
|
11222
11248
|
return e + t;
|
11223
|
-
}, 0), t =
|
11249
|
+
}, 0), t = G.map(function () {
|
11224
11250
|
return !0;
|
11225
|
-
}), a =
|
11251
|
+
}), a = M - 1; a >= 0 && e > d; a -= 1) e -= G[a] - Y[a], t[a] = !1;
|
11226
11252
|
|
11227
|
-
if (
|
11228
|
-
var i = (n +
|
11229
|
-
o = (r +
|
11230
|
-
e +=
|
11253
|
+
if (I(t), e <= d) B([0, 0]), ee();else {
|
11254
|
+
var i = (n + M) % M,
|
11255
|
+
o = (r + M) % M;
|
11256
|
+
e += f + 10;
|
11231
11257
|
|
11232
|
-
for (var s = o, c = o - 1; c >= i && e > d; c -= 1) e -=
|
11258
|
+
for (var s = o, c = o - 1; c >= i && e > d; c -= 1) e -= Y[c], s = c;
|
11233
11259
|
|
11234
|
-
|
11260
|
+
B([s, o]);
|
11235
11261
|
}
|
11236
11262
|
}
|
11237
|
-
}, [d,
|
11263
|
+
}, [d, f, n, r, M].concat(Y, G));
|
11238
11264
|
|
11239
|
-
var
|
11240
|
-
|
11265
|
+
var te,
|
11266
|
+
ne = function (e, t) {
|
11241
11267
|
return function (e, t) {
|
11242
|
-
return Array(t - e).fill().map(function (t, n) {
|
11268
|
+
return Array(Math.max(0, t - e)).fill().map(function (t, n) {
|
11243
11269
|
return e + n;
|
11244
11270
|
});
|
11245
11271
|
}(e, t).map(function (e) {
|
11246
|
-
return x.createElement(
|
11247
|
-
key:
|
11248
|
-
type:
|
11272
|
+
return x.createElement(La, {
|
11273
|
+
key: w[e],
|
11274
|
+
type: w[e],
|
11249
11275
|
meetingID: i,
|
11250
|
-
showText:
|
11251
|
-
autoFocus:
|
11252
|
-
tabIndex:
|
11276
|
+
showText: L[e],
|
11277
|
+
autoFocus: D[e] === Math.min.apply(Math, _toConsumableArray(D)) || !1,
|
11278
|
+
tabIndex: D[e]
|
11253
11279
|
});
|
11254
11280
|
});
|
11255
11281
|
},
|
11256
|
-
|
11257
|
-
return Y(!W);
|
11258
|
-
},
|
11259
|
-
ue = function (e, t, n, r) {
|
11282
|
+
re = function (e, t, n, r) {
|
11260
11283
|
return x.createElement("div", {
|
11261
11284
|
ref: n,
|
11262
11285
|
key: "collapse-button",
|
11263
|
-
className:
|
11286
|
+
className: C("collapse-button")
|
11264
11287
|
}, x.createElement(Ea, {
|
11265
11288
|
onClick: t,
|
11266
11289
|
type: "toggle",
|
11267
11290
|
size: 48,
|
11268
|
-
pressed: e,
|
11291
|
+
pressed: !!e,
|
11269
11292
|
tabIndex: r,
|
11270
11293
|
tooltip: "More options",
|
11271
11294
|
ariaLabel: e ? "Collapse additional controls" : "Expand additional controls"
|
11272
11295
|
}, x.createElement(It, {
|
11273
11296
|
name: e ? "more-adr" : "more"
|
11274
11297
|
})));
|
11275
|
-
},
|
11276
|
-
me = function () {
|
11277
|
-
return Y(!1);
|
11278
11298
|
};
|
11279
11299
|
|
11280
11300
|
return useEffect(function () {
|
11281
11301
|
var e;
|
11282
|
-
|
11283
|
-
|
11284
|
-
|
11285
|
-
|
11286
|
-
|
11287
|
-
|
11288
|
-
|
11289
|
-
|
11302
|
+
|
11303
|
+
if (U) {
|
11304
|
+
var t = function () {
|
11305
|
+
return ee();
|
11306
|
+
};
|
11307
|
+
|
11308
|
+
setTimeout(function () {
|
11309
|
+
return document.addEventListener("click", t);
|
11310
|
+
}), e = function () {
|
11311
|
+
return document.removeEventListener("click", t);
|
11312
|
+
};
|
11313
|
+
}
|
11314
|
+
|
11315
|
+
return e;
|
11316
|
+
}, [U]), x.createElement("div", {
|
11317
|
+
ref: u,
|
11318
|
+
className: y,
|
11290
11319
|
style: o
|
11291
|
-
},
|
11320
|
+
}, U && (te = w.slice(z, A).map(function (e) {
|
11292
11321
|
return {
|
11293
11322
|
value: e,
|
11294
|
-
label: x.createElement(
|
11323
|
+
label: x.createElement(La, {
|
11295
11324
|
key: e,
|
11296
11325
|
type: e,
|
11297
11326
|
meetingID: i,
|
11298
11327
|
asItem: !0
|
11299
11328
|
})
|
11300
11329
|
};
|
11301
|
-
}), x.createElement(
|
11302
|
-
className:
|
11303
|
-
options:
|
11330
|
+
}), x.createElement(Oa, {
|
11331
|
+
className: C("collapsed-controls"),
|
11332
|
+
options: te,
|
11304
11333
|
onSelect: function (e) {
|
11305
|
-
c.meetingControls[e.value].action(i),
|
11334
|
+
c.meetingControls[e.value].action(i), ee(), m.current.focus();
|
11306
11335
|
},
|
11307
|
-
|
11308
|
-
|
11309
|
-
|
11310
|
-
}
|
11311
|
-
className:
|
11336
|
+
onBlur: ee,
|
11337
|
+
withKey: U.withKey,
|
11338
|
+
tabIndex: D[z]
|
11339
|
+
})), L && x.createElement("div", {
|
11340
|
+
className: C("controls")
|
11341
|
+
}, ne(0, z), z < A && re(U, function (e) {
|
11342
|
+
return t = !e.detail, void Z(function (e) {
|
11343
|
+
return e ? void 0 : {
|
11344
|
+
withKey: t
|
11345
|
+
};
|
11346
|
+
});
|
11347
|
+
var t;
|
11348
|
+
}, m, D[z]), ne(A, M)), x.createElement("div", {
|
11349
|
+
className: "".concat(C("controls"), " ").concat(C("controls--control-refs")),
|
11312
11350
|
"aria-hidden": "true"
|
11313
|
-
},
|
11351
|
+
}, w.map(function (e, t) {
|
11314
11352
|
return x.createElement(x.Fragment, {
|
11315
11353
|
key: e
|
11316
11354
|
}, x.createElement("div", {
|
11317
|
-
ref:
|
11355
|
+
ref: F[t],
|
11318
11356
|
key: "icon"
|
11319
|
-
}, x.createElement(
|
11357
|
+
}, x.createElement(La, {
|
11320
11358
|
type: e,
|
11321
11359
|
meetingID: i,
|
11322
11360
|
showText: !1
|
11323
11361
|
})), x.createElement("div", {
|
11324
|
-
ref:
|
11362
|
+
ref: W[t],
|
11325
11363
|
key: "text"
|
11326
|
-
}, x.createElement(
|
11364
|
+
}, x.createElement(La, {
|
11327
11365
|
type: e,
|
11328
11366
|
meetingID: i,
|
11329
11367
|
showText: !0
|
11330
11368
|
})));
|
11331
|
-
}),
|
11369
|
+
}), re(U, function () {}, p)));
|
11332
11370
|
}
|
11333
11371
|
|
11334
|
-
|
11372
|
+
Sa.propTypes = {
|
11335
11373
|
className: T.string,
|
11336
11374
|
collapseRangeStart: T.number,
|
11337
11375
|
collapseRangeEnd: T.number,
|
@@ -11339,7 +11377,7 @@ Ia.propTypes = {
|
|
11339
11377
|
meetingID: T.string.isRequired,
|
11340
11378
|
style: T.shape(),
|
11341
11379
|
tabIndexes: T.func
|
11342
|
-
},
|
11380
|
+
}, Sa.defaultProps = {
|
11343
11381
|
className: "",
|
11344
11382
|
collapseRangeStart: 0,
|
11345
11383
|
collapseRangeEnd: -1,
|
@@ -11351,13 +11389,13 @@ Ia.propTypes = {
|
|
11351
11389
|
},
|
11352
11390
|
style: void 0
|
11353
11391
|
};
|
11354
|
-
var
|
11355
|
-
|
11356
|
-
|
11357
|
-
|
11358
|
-
|
11392
|
+
var Ra = "Webex by Cisco logo",
|
11393
|
+
ja = "Your name appears in the participant list. Skip this optional field to use the name provided by the system.",
|
11394
|
+
za = "The password is provided in the invitation for a scheduled meeting, or from the host.",
|
11395
|
+
Aa = "Start meeting. Start the meeting after entering the required information.",
|
11396
|
+
Ba = "Click to go to a new screen where the meeting host can enter the host key.";
|
11359
11397
|
|
11360
|
-
function
|
11398
|
+
function Va(e) {
|
11361
11399
|
var t = e.className,
|
11362
11400
|
n = e.meetingID,
|
11363
11401
|
r = e.style,
|
@@ -11374,7 +11412,7 @@ function Ba(e) {
|
|
11374
11412
|
f = _slicedToArray(d, 2),
|
11375
11413
|
h = f[0],
|
11376
11414
|
v = f[1],
|
11377
|
-
g =
|
11415
|
+
g = Dn(n),
|
11378
11416
|
y = g.ID,
|
11379
11417
|
C = g.invalidPassword,
|
11380
11418
|
w = useState(!1),
|
@@ -11382,35 +11420,33 @@ function Ba(e) {
|
|
11382
11420
|
O = E[0],
|
11383
11421
|
D = E[1],
|
11384
11422
|
M = useContext(Rt),
|
11385
|
-
T =
|
11386
|
-
P =
|
11387
|
-
|
11388
|
-
I = Pe("meeting-guest-authentication", t, {
|
11389
|
-
phone: P[1].width <= 425
|
11423
|
+
T = zn(),
|
11424
|
+
P = Pe("meeting-guest-authentication", t, {
|
11425
|
+
phone: En(T).width <= 425
|
11390
11426
|
}),
|
11391
|
-
|
11392
|
-
|
11393
|
-
|
11394
|
-
|
11395
|
-
|
11427
|
+
L = _slicedToArray(P, 2),
|
11428
|
+
I = L[0],
|
11429
|
+
S = L[1],
|
11430
|
+
R = h || !m || C || O,
|
11431
|
+
j = "Enter meeting information to join";
|
11396
11432
|
return x.createElement("div", {
|
11397
|
-
ref:
|
11398
|
-
className:
|
11433
|
+
ref: T,
|
11434
|
+
className: I,
|
11399
11435
|
style: r
|
11400
11436
|
}, x.createElement("div", {
|
11401
|
-
className:
|
11437
|
+
className: S("header")
|
11402
11438
|
}, x.createElement("div", {
|
11403
|
-
className:
|
11404
|
-
"aria-label":
|
11439
|
+
className: S("logo"),
|
11440
|
+
"aria-label": Ra
|
11405
11441
|
}), x.createElement("div", {
|
11406
|
-
className:
|
11407
|
-
title:
|
11408
|
-
},
|
11409
|
-
className:
|
11442
|
+
className: S("title"),
|
11443
|
+
title: j
|
11444
|
+
}, j)), x.createElement("form", {
|
11445
|
+
className: S("form-content")
|
11410
11446
|
}, x.createElement("label", {
|
11411
|
-
className:
|
11447
|
+
className: S("label")
|
11412
11448
|
}, x.createElement("span", {
|
11413
|
-
className:
|
11449
|
+
className: S("label-text")
|
11414
11450
|
}, "Your name"), x.createElement(xa, {
|
11415
11451
|
type: "text",
|
11416
11452
|
name: "name",
|
@@ -11423,13 +11459,13 @@ function Ba(e) {
|
|
11423
11459
|
},
|
11424
11460
|
disabled: O,
|
11425
11461
|
error: h,
|
11426
|
-
ariaLabel:
|
11462
|
+
ariaLabel: ja,
|
11427
11463
|
autoFocus: !0,
|
11428
11464
|
tabIndex: 101
|
11429
11465
|
})), x.createElement("label", {
|
11430
|
-
className:
|
11466
|
+
className: S("label")
|
11431
11467
|
}, x.createElement("span", {
|
11432
|
-
className:
|
11468
|
+
className: S("label-text")
|
11433
11469
|
}, "Meeting password (required)"), x.createElement(xa, {
|
11434
11470
|
type: "password",
|
11435
11471
|
name: "password",
|
@@ -11439,11 +11475,11 @@ function Ba(e) {
|
|
11439
11475
|
},
|
11440
11476
|
disabled: O,
|
11441
11477
|
error: C ? "Incorrect password. Try again." : "",
|
11442
|
-
ariaLabel:
|
11478
|
+
ariaLabel: za,
|
11443
11479
|
tabIndex: 102
|
11444
11480
|
})), x.createElement(Ea, {
|
11445
11481
|
type: "primary",
|
11446
|
-
className:
|
11482
|
+
className: S("start-button"),
|
11447
11483
|
size: 28,
|
11448
11484
|
onClick: function () {
|
11449
11485
|
D(!0), M.meetingsAdapter.joinMeeting(y, {
|
@@ -11453,40 +11489,40 @@ function Ba(e) {
|
|
11453
11489
|
return D(!1);
|
11454
11490
|
});
|
11455
11491
|
},
|
11456
|
-
isDisabled:
|
11457
|
-
ariaLabel:
|
11492
|
+
isDisabled: R,
|
11493
|
+
ariaLabel: Aa,
|
11458
11494
|
tabIndex: 103
|
11459
11495
|
}, O && x.createElement(ca, {
|
11460
|
-
className:
|
11496
|
+
className: S("start-button-spinner"),
|
11461
11497
|
size: 16
|
11462
11498
|
}), O ? "Starting meeting..." : "Start meeting")), x.createElement("div", {
|
11463
|
-
className:
|
11499
|
+
className: S("host-text")
|
11464
11500
|
}, "Hosting the meeting?", " ", x.createElement("a", {
|
11465
11501
|
href: "#",
|
11466
11502
|
tabIndex: 104,
|
11467
|
-
className:
|
11503
|
+
className: S("host-hyperlink"),
|
11468
11504
|
onClick: function (e) {
|
11469
11505
|
e.preventDefault(), a();
|
11470
11506
|
},
|
11471
|
-
"aria-label":
|
11507
|
+
"aria-label": Ba
|
11472
11508
|
}, "Enter host key.")));
|
11473
11509
|
}
|
11474
11510
|
|
11475
|
-
|
11511
|
+
Va.propTypes = {
|
11476
11512
|
className: T.string,
|
11477
11513
|
meetingID: T.string.isRequired,
|
11478
11514
|
style: T.shape(),
|
11479
11515
|
switchToHostModal: T.func
|
11480
|
-
},
|
11516
|
+
}, Va.defaultProps = {
|
11481
11517
|
className: "",
|
11482
11518
|
style: void 0,
|
11483
11519
|
switchToHostModal: void 0
|
11484
11520
|
};
|
11485
|
-
var
|
11486
|
-
|
11487
|
-
|
11521
|
+
var Ha = "Webex by Cisco logo",
|
11522
|
+
qa = "The host key is generated when a meeting is scheduled.",
|
11523
|
+
Ua = "Start meeting. Start the meeting for all participants after entering the required information.";
|
11488
11524
|
|
11489
|
-
function
|
11525
|
+
function Za(e) {
|
11490
11526
|
var t = e.className,
|
11491
11527
|
n = e.meetingID,
|
11492
11528
|
r = e.style,
|
@@ -11494,7 +11530,7 @@ function Ua(e) {
|
|
11494
11530
|
i = _slicedToArray(a, 2),
|
11495
11531
|
o = i[0],
|
11496
11532
|
s = i[1],
|
11497
|
-
c =
|
11533
|
+
c = Dn(n),
|
11498
11534
|
l = c.ID,
|
11499
11535
|
u = c.invalidHostKey,
|
11500
11536
|
m = useState(!1),
|
@@ -11502,38 +11538,36 @@ function Ua(e) {
|
|
11502
11538
|
d = p[0],
|
11503
11539
|
f = p[1],
|
11504
11540
|
h = useContext(Rt),
|
11505
|
-
v =
|
11506
|
-
g =
|
11507
|
-
|
11508
|
-
C = Pe("meeting-host-authentication", t, {
|
11509
|
-
phone: g[1].width <= 425
|
11541
|
+
v = zn(),
|
11542
|
+
g = Pe("meeting-host-authentication", t, {
|
11543
|
+
phone: En(v).width <= 425
|
11510
11544
|
}),
|
11511
|
-
|
11512
|
-
|
11513
|
-
|
11514
|
-
|
11515
|
-
|
11545
|
+
y = _slicedToArray(g, 2),
|
11546
|
+
C = y[0],
|
11547
|
+
w = y[1],
|
11548
|
+
E = !o || u || d,
|
11549
|
+
O = "Enter host information to join";
|
11516
11550
|
return x.createElement("div", {
|
11517
|
-
ref:
|
11518
|
-
className:
|
11551
|
+
ref: v,
|
11552
|
+
className: C,
|
11519
11553
|
style: r
|
11520
11554
|
}, x.createElement("div", {
|
11521
|
-
className:
|
11555
|
+
className: w("header")
|
11522
11556
|
}, x.createElement("div", {
|
11523
|
-
className:
|
11524
|
-
"aria-label":
|
11557
|
+
className: w("logo"),
|
11558
|
+
"aria-label": Ha
|
11525
11559
|
}), x.createElement("div", {
|
11526
|
-
className:
|
11527
|
-
title:
|
11528
|
-
},
|
11529
|
-
className:
|
11560
|
+
className: w("title"),
|
11561
|
+
title: O
|
11562
|
+
}, O)), x.createElement("form", {
|
11563
|
+
className: w("form-content"),
|
11530
11564
|
onSubmit: function (e) {
|
11531
11565
|
e.preventDefault();
|
11532
11566
|
}
|
11533
11567
|
}, x.createElement("label", {
|
11534
|
-
className:
|
11568
|
+
className: w("label")
|
11535
11569
|
}, x.createElement("span", {
|
11536
|
-
className:
|
11570
|
+
className: w("label-text")
|
11537
11571
|
}, "Host key (required)"), x.createElement(xa, {
|
11538
11572
|
type: "password",
|
11539
11573
|
name: "password",
|
@@ -11543,12 +11577,12 @@ function Ua(e) {
|
|
11543
11577
|
s(e), h.meetingsAdapter.clearInvalidHostKeyFlag(l);
|
11544
11578
|
},
|
11545
11579
|
error: u ? "Incorrect host key. Try again." : "",
|
11546
|
-
ariaLabel:
|
11580
|
+
ariaLabel: qa,
|
11547
11581
|
autoFocus: !0,
|
11548
11582
|
tabIndex: 101
|
11549
11583
|
})), x.createElement(Ea, {
|
11550
11584
|
type: "primary",
|
11551
|
-
className:
|
11585
|
+
className: w("start-button"),
|
11552
11586
|
size: 28,
|
11553
11587
|
onClick: function () {
|
11554
11588
|
f(!0), h.meetingsAdapter.joinMeeting(l, {
|
@@ -11557,16 +11591,16 @@ function Ua(e) {
|
|
11557
11591
|
return f(!1);
|
11558
11592
|
});
|
11559
11593
|
},
|
11560
|
-
isDisabled:
|
11561
|
-
ariaLabel:
|
11594
|
+
isDisabled: E,
|
11595
|
+
ariaLabel: Ua,
|
11562
11596
|
tabIndex: 102
|
11563
11597
|
}, d && x.createElement(ca, {
|
11564
|
-
className:
|
11598
|
+
className: w("start-button-spinner"),
|
11565
11599
|
size: 16
|
11566
11600
|
}), d ? "Starting meeting..." : "Start meeting")));
|
11567
11601
|
}
|
11568
11602
|
|
11569
|
-
function
|
11603
|
+
function Fa(e) {
|
11570
11604
|
var t,
|
11571
11605
|
n = e.className,
|
11572
11606
|
r = e.destinationID,
|
@@ -11578,11 +11612,11 @@ function Za(e) {
|
|
11578
11612
|
l = c.displayName,
|
11579
11613
|
u = c.orgID,
|
11580
11614
|
m = c.emails,
|
11581
|
-
p =
|
11582
|
-
d =
|
11615
|
+
p = xn(),
|
11616
|
+
d = Sn(r, a).find(function (e) {
|
11583
11617
|
return e.ID === o;
|
11584
11618
|
}),
|
11585
|
-
f =
|
11619
|
+
f = jn(u),
|
11586
11620
|
h = null == d ? void 0 : d.muted,
|
11587
11621
|
v = null == d ? void 0 : d.speaking,
|
11588
11622
|
g = void 0 !== u && void 0 !== p.orgID && p.orgID !== u,
|
@@ -11633,14 +11667,14 @@ function Za(e) {
|
|
11633
11667
|
}));
|
11634
11668
|
}
|
11635
11669
|
|
11636
|
-
function
|
11670
|
+
function Wa(e) {
|
11637
11671
|
var t = e.className,
|
11638
11672
|
n = e.destinationID,
|
11639
11673
|
r = e.destinationType,
|
11640
11674
|
a = e.style,
|
11641
11675
|
i = e.onClose,
|
11642
|
-
o =
|
11643
|
-
s =
|
11676
|
+
o = Sn(n, r),
|
11677
|
+
s = xn().orgID,
|
11644
11678
|
c = Pe("member-roster", t),
|
11645
11679
|
l = _slicedToArray(c, 2),
|
11646
11680
|
u = l[0],
|
@@ -11648,7 +11682,7 @@ function Fa(e) {
|
|
11648
11682
|
p = function (e) {
|
11649
11683
|
return e.map(function (e) {
|
11650
11684
|
var t = e.ID;
|
11651
|
-
return x.createElement(
|
11685
|
+
return x.createElement(Fa, {
|
11652
11686
|
destinationType: r,
|
11653
11687
|
destinationID: n,
|
11654
11688
|
personID: t,
|
@@ -11699,7 +11733,7 @@ function Fa(e) {
|
|
11699
11733
|
}), "Not in the meeting"))));
|
11700
11734
|
}
|
11701
11735
|
|
11702
|
-
function
|
11736
|
+
function Ya(e) {
|
11703
11737
|
var t = e.className,
|
11704
11738
|
n = e.onSelect,
|
11705
11739
|
r = e.selected,
|
@@ -11715,7 +11749,9 @@ function Wa(e) {
|
|
11715
11749
|
m = l[1],
|
11716
11750
|
p = (i || []).findIndex(function (e) {
|
11717
11751
|
return e.key === r;
|
11718
|
-
})
|
11752
|
+
}),
|
11753
|
+
d = zn();
|
11754
|
+
zt(d, !0);
|
11719
11755
|
return x.createElement("div", {
|
11720
11756
|
className: u,
|
11721
11757
|
style: a
|
@@ -11732,7 +11768,8 @@ function Wa(e) {
|
|
11732
11768
|
}
|
11733
11769
|
},
|
11734
11770
|
"aria-label": "Use arrow keys to navigate between setting options",
|
11735
|
-
role: "tablist"
|
11771
|
+
role: "tablist",
|
11772
|
+
ref: d
|
11736
11773
|
}, i.map(function (e, t) {
|
11737
11774
|
return x.createElement("li", {
|
11738
11775
|
className: De(m("tab"), r === e.key && m("tab--active")),
|
@@ -11751,103 +11788,103 @@ function Wa(e) {
|
|
11751
11788
|
}, s()));
|
11752
11789
|
}
|
11753
11790
|
|
11754
|
-
|
11791
|
+
Za.propTypes = {
|
11755
11792
|
className: T.string,
|
11756
11793
|
meetingID: T.string.isRequired,
|
11757
11794
|
style: T.shape()
|
11758
|
-
},
|
11795
|
+
}, Za.defaultProps = {
|
11759
11796
|
className: "",
|
11760
11797
|
style: void 0
|
11761
|
-
},
|
11798
|
+
}, Fa.propTypes = {
|
11762
11799
|
className: T.string,
|
11763
11800
|
destinationID: T.string.isRequired,
|
11764
11801
|
destinationType: T.string.isRequired,
|
11765
11802
|
displayStatus: T.bool,
|
11766
11803
|
personID: T.string.isRequired,
|
11767
11804
|
style: T.shape()
|
11768
|
-
},
|
11805
|
+
}, Fa.defaultProps = {
|
11769
11806
|
className: "",
|
11770
11807
|
displayStatus: !1,
|
11771
11808
|
style: void 0
|
11772
|
-
},
|
11809
|
+
}, Wa.propTypes = {
|
11773
11810
|
className: T.string,
|
11774
11811
|
destinationID: T.string.isRequired,
|
11775
11812
|
destinationType: T.string.isRequired,
|
11776
11813
|
style: T.shape(),
|
11777
11814
|
onClose: T.func
|
11778
|
-
},
|
11815
|
+
}, Wa.defaultProps = {
|
11779
11816
|
className: "",
|
11780
11817
|
style: void 0,
|
11781
11818
|
onClose: void 0
|
11782
|
-
},
|
11819
|
+
}, Ya.propTypes = {
|
11783
11820
|
className: T.string,
|
11784
11821
|
onSelect: T.func.isRequired,
|
11785
11822
|
selected: T.string.isRequired,
|
11786
11823
|
style: T.shape(),
|
11787
11824
|
tabs: T.arrayOf(T.object).isRequired,
|
11788
11825
|
tabIndex: T.number
|
11789
|
-
},
|
11826
|
+
}, Ya.defaultProps = {
|
11790
11827
|
className: "",
|
11791
11828
|
style: void 0,
|
11792
11829
|
tabIndex: -1
|
11793
11830
|
};
|
11794
|
-
var
|
11795
|
-
|
11796
|
-
|
11831
|
+
var Ga = Pe("no-media"),
|
11832
|
+
_a = _slicedToArray(Ga, 2)[1],
|
11833
|
+
Xa = {
|
11797
11834
|
microphone: {
|
11798
11835
|
icon: "microphone-issue",
|
11799
11836
|
title: "Can't access microphone",
|
11800
11837
|
message: x.createElement(x.Fragment, null, x.createElement("p", {
|
11801
|
-
className:
|
11838
|
+
className: _a("indications")
|
11802
11839
|
}, "Reload this page and select ", x.createElement("b", {
|
11803
|
-
className:
|
11840
|
+
className: _a("accent")
|
11804
11841
|
}, "Allow"), " when your browser asks."), x.createElement("p", {
|
11805
|
-
className:
|
11842
|
+
className: _a("indications")
|
11806
11843
|
}, x.createElement("div", null, x.createElement("b", {
|
11807
|
-
className:
|
11844
|
+
className: _a("accent")
|
11808
11845
|
}, "Still not working?")), "You may need to update your webpage permissions. Go to your ", x.createElement("b", {
|
11809
|
-
className:
|
11846
|
+
className: _a("accent")
|
11810
11847
|
}, "browser settings"), ", look for website settings, select ", x.createElement("b", {
|
11811
|
-
className:
|
11848
|
+
className: _a("accent")
|
11812
11849
|
}, "Allow for Microphone"), ", then reload this page."))
|
11813
11850
|
},
|
11814
11851
|
camera: {
|
11815
11852
|
icon: "camera-issue",
|
11816
11853
|
title: "Can't access camera",
|
11817
11854
|
message: x.createElement(x.Fragment, null, x.createElement("p", {
|
11818
|
-
className:
|
11855
|
+
className: _a("indications")
|
11819
11856
|
}, "Reload this page and select ", x.createElement("b", {
|
11820
|
-
className:
|
11857
|
+
className: _a("accent")
|
11821
11858
|
}, "Allow"), " when your browser asks."), x.createElement("p", {
|
11822
|
-
className:
|
11859
|
+
className: _a("indications")
|
11823
11860
|
}, x.createElement("div", null, x.createElement("b", {
|
11824
|
-
className:
|
11861
|
+
className: _a("accent")
|
11825
11862
|
}, "Still not working?")), "You may need to update your webpage permissions. Go to your ", x.createElement("b", {
|
11826
|
-
className:
|
11863
|
+
className: _a("accent")
|
11827
11864
|
}, "browser settings"), ", look for website settings, select ", x.createElement("b", {
|
11828
|
-
className:
|
11865
|
+
className: _a("accent")
|
11829
11866
|
}, "Allow for Camera"), ", then reload this page."))
|
11830
11867
|
}
|
11831
11868
|
};
|
11832
11869
|
|
11833
|
-
function
|
11870
|
+
function Ka(e) {
|
11834
11871
|
var t = e.className,
|
11835
11872
|
n = e.style,
|
11836
11873
|
r = e.media,
|
11837
11874
|
a = Pe("no-media", t),
|
11838
11875
|
i = _slicedToArray(a, 1)[0],
|
11839
|
-
o =
|
11876
|
+
o = Xa[r];
|
11840
11877
|
return x.createElement("div", {
|
11841
11878
|
className: i,
|
11842
11879
|
style: n
|
11843
11880
|
}, x.createElement(It, {
|
11844
|
-
className:
|
11881
|
+
className: _a("icon-media-issue"),
|
11845
11882
|
name: o.icon
|
11846
11883
|
}), x.createElement(ma, {
|
11847
11884
|
type: "subsection",
|
11848
|
-
className:
|
11885
|
+
className: _a("title")
|
11849
11886
|
}, o.title), x.createElement("div", {
|
11850
|
-
className:
|
11887
|
+
className: _a("body")
|
11851
11888
|
}, o.message));
|
11852
11889
|
}
|
11853
11890
|
|
@@ -11860,24 +11897,24 @@ function Ja(e) {
|
|
11860
11897
|
o = _slicedToArray(i, 2),
|
11861
11898
|
s = o[0],
|
11862
11899
|
c = o[1],
|
11863
|
-
l =
|
11900
|
+
l = Mn("switch-microphone", r),
|
11864
11901
|
u = _slicedToArray(l, 2)[1];
|
11865
11902
|
return x.createElement("div", {
|
11866
11903
|
className: s,
|
11867
11904
|
style: a
|
11868
11905
|
}, 0 !== (null === (t = u.options) || void 0 === t ? void 0 : t.length) ? x.createElement(x.Fragment, null, x.createElement(ma, {
|
11869
11906
|
type: "subsection"
|
11870
|
-
}, "Speaker"), x.createElement(
|
11907
|
+
}, "Speaker"), x.createElement(La, {
|
11871
11908
|
type: "switch-speaker",
|
11872
11909
|
meetingID: r,
|
11873
11910
|
tabIndex: 102
|
11874
11911
|
}), x.createElement(ma, {
|
11875
11912
|
type: "subsection"
|
11876
|
-
}, "Microphone"), x.createElement(
|
11913
|
+
}, "Microphone"), x.createElement(La, {
|
11877
11914
|
type: "switch-microphone",
|
11878
11915
|
meetingID: r,
|
11879
11916
|
tabIndex: 103
|
11880
|
-
})) : x.createElement(
|
11917
|
+
})) : x.createElement(Ka, {
|
11881
11918
|
media: "microphone",
|
11882
11919
|
className: c("no-media")
|
11883
11920
|
}));
|
@@ -11892,14 +11929,14 @@ function Qa(e) {
|
|
11892
11929
|
o = _slicedToArray(i, 2),
|
11893
11930
|
s = o[0],
|
11894
11931
|
c = o[1],
|
11895
|
-
l =
|
11932
|
+
l = Mn("switch-camera", n),
|
11896
11933
|
u = _slicedToArray(l, 2)[1];
|
11897
11934
|
return x.createElement("div", {
|
11898
11935
|
className: s,
|
11899
11936
|
style: a
|
11900
11937
|
}, 0 !== (null === (t = u.options) || void 0 === t ? void 0 : t.length) ? x.createElement(x.Fragment, null, x.createElement(ma, {
|
11901
11938
|
type: "subsection"
|
11902
|
-
}, "Camera"), x.createElement(
|
11939
|
+
}, "Camera"), x.createElement(La, {
|
11903
11940
|
type: "switch-camera",
|
11904
11941
|
meetingID: n,
|
11905
11942
|
tabIndex: 102
|
@@ -11910,13 +11947,13 @@ function Qa(e) {
|
|
11910
11947
|
meetingID: n
|
11911
11948
|
}), x.createElement(oa, {
|
11912
11949
|
type: "bottom"
|
11913
|
-
}, "Preview"))) : x.createElement(
|
11950
|
+
}, "Preview"))) : x.createElement(Ka, {
|
11914
11951
|
media: "camera",
|
11915
11952
|
className: c("no-media")
|
11916
11953
|
}));
|
11917
11954
|
}
|
11918
11955
|
|
11919
|
-
function
|
11956
|
+
function $a(e) {
|
11920
11957
|
var t = e.meetingID,
|
11921
11958
|
n = e.className,
|
11922
11959
|
r = e.style,
|
@@ -11948,7 +11985,7 @@ function Ka(e) {
|
|
11948
11985
|
return x.createElement("div", {
|
11949
11986
|
className: i,
|
11950
11987
|
style: r
|
11951
|
-
}, x.createElement(
|
11988
|
+
}, x.createElement(Ya, {
|
11952
11989
|
tabs: u,
|
11953
11990
|
selected: c,
|
11954
11991
|
onSelect: l,
|
@@ -11956,7 +11993,7 @@ function Ka(e) {
|
|
11956
11993
|
}));
|
11957
11994
|
}
|
11958
11995
|
|
11959
|
-
function
|
11996
|
+
function ei(e) {
|
11960
11997
|
var t = e.className,
|
11961
11998
|
n = e.meetingID,
|
11962
11999
|
r = e.style,
|
@@ -11965,7 +12002,7 @@ function $a(e) {
|
|
11965
12002
|
o = i[0],
|
11966
12003
|
s = i[1],
|
11967
12004
|
c = useContext(Rt),
|
11968
|
-
l =
|
12005
|
+
l = Dn(n).ID;
|
11969
12006
|
return x.createElement("div", {
|
11970
12007
|
className: o,
|
11971
12008
|
style: r
|
@@ -11998,7 +12035,7 @@ function $a(e) {
|
|
11998
12035
|
}));
|
11999
12036
|
}
|
12000
12037
|
|
12001
|
-
function
|
12038
|
+
function ti(e) {
|
12002
12039
|
var t = e.className,
|
12003
12040
|
n = e.controls,
|
12004
12041
|
r = e.controlsCollapseRangeStart,
|
@@ -12007,7 +12044,7 @@ function ei(e) {
|
|
12007
12044
|
o = e.logo,
|
12008
12045
|
s = e.meetingID,
|
12009
12046
|
c = e.style,
|
12010
|
-
l =
|
12047
|
+
l = Dn(s),
|
12011
12048
|
u = l.ID,
|
12012
12049
|
m = l.localAudio,
|
12013
12050
|
p = l.localVideo,
|
@@ -12019,59 +12056,55 @@ function ei(e) {
|
|
12019
12056
|
y = B,
|
12020
12057
|
C = H,
|
12021
12058
|
w = useContext(Rt),
|
12022
|
-
E =
|
12023
|
-
D =
|
12024
|
-
M =
|
12025
|
-
|
12026
|
-
P = Pe("meeting", t, {
|
12027
|
-
"roster-only": f && T <= 425
|
12059
|
+
E = zn(),
|
12060
|
+
D = En(E).width,
|
12061
|
+
M = Pe("meeting", t, {
|
12062
|
+
"roster-only": f && D <= 425
|
12028
12063
|
}),
|
12029
|
-
|
12030
|
-
|
12031
|
-
|
12032
|
-
|
12033
|
-
|
12034
|
-
|
12035
|
-
|
12036
|
-
|
12037
|
-
|
12038
|
-
|
12039
|
-
|
12040
|
-
|
12064
|
+
T = _slicedToArray(M, 2),
|
12065
|
+
P = T[0],
|
12066
|
+
L = T[1],
|
12067
|
+
I = useState(!1),
|
12068
|
+
S = _slicedToArray(I, 2),
|
12069
|
+
R = S[0],
|
12070
|
+
j = S[1],
|
12071
|
+
z = zn(),
|
12072
|
+
A = useState("guest"),
|
12073
|
+
q = _slicedToArray(A, 2),
|
12074
|
+
Z = q[0],
|
12075
|
+
F = q[1];
|
12041
12076
|
useEffect(function () {
|
12042
|
-
return d && d !== C && (
|
12043
|
-
|
12077
|
+
return d && d !== C && (j(!0), z.current = setTimeout(function () {
|
12078
|
+
j(!1);
|
12044
12079
|
}, 3e3)), function () {
|
12045
|
-
return clearTimeout(
|
12080
|
+
return clearTimeout(z.current);
|
12046
12081
|
};
|
12047
12082
|
}, [m.stream, p.stream, d, C]);
|
12048
|
-
|
12049
|
-
|
12050
|
-
_ = "".concat(m.stream ? "Unmuted" : "Muted", ", ").concat(p.stream ? "Camera on" : "Camera off");
|
12051
|
-
|
12083
|
+
var W,
|
12084
|
+
Y = "".concat(m.stream ? "Unmuted" : "Muted", ", ").concat(p.stream ? "Camera on" : "Camera off");
|
12052
12085
|
if (d) {
|
12053
|
-
if (d === C)
|
12086
|
+
if (d === C) W = x.createElement(ma, {
|
12054
12087
|
type: "subsection",
|
12055
|
-
className:
|
12088
|
+
className: L("centered")
|
12056
12089
|
}, "You've successfully left the meeting");else {
|
12057
|
-
var
|
12058
|
-
|
12059
|
-
className:
|
12060
|
-
}, x.createElement(
|
12090
|
+
var G;
|
12091
|
+
G = d === g ? da : d === y ? ha : ei, W = x.createElement(x.Fragment, null, x.createElement("div", {
|
12092
|
+
className: L("body")
|
12093
|
+
}, x.createElement(G, {
|
12061
12094
|
meetingID: u,
|
12062
|
-
className:
|
12063
|
-
}), f && x.createElement(
|
12095
|
+
className: L("inner-meeting")
|
12096
|
+
}), f && x.createElement(Wa, {
|
12064
12097
|
destinationID: u,
|
12065
12098
|
destinationType: U,
|
12066
|
-
className:
|
12099
|
+
className: L("member-roster"),
|
12067
12100
|
onClose: function () {
|
12068
12101
|
return w.meetingsAdapter.toggleRoster(u);
|
12069
12102
|
}
|
12070
|
-
}),
|
12071
|
-
className:
|
12072
|
-
},
|
12103
|
+
}), R && x.createElement(ua, {
|
12104
|
+
className: L("media-state-toast")
|
12105
|
+
}, Y)), x.createElement(Sa, {
|
12073
12106
|
meetingID: u,
|
12074
|
-
className:
|
12107
|
+
className: L("control-bar"),
|
12075
12108
|
controls: n,
|
12076
12109
|
collapseRangeStart: r,
|
12077
12110
|
collapseRangeEnd: a,
|
@@ -12080,46 +12113,46 @@ function ei(e) {
|
|
12080
12113
|
onClose: function () {
|
12081
12114
|
return w.meetingsAdapter.toggleSettings(u);
|
12082
12115
|
},
|
12083
|
-
otherClassName:
|
12116
|
+
otherClassName: L("settings"),
|
12084
12117
|
title: "Settings",
|
12085
12118
|
ariaLabel: "Meeting settings window"
|
12086
|
-
}, x.createElement(
|
12119
|
+
}, x.createElement($a, {
|
12087
12120
|
meetingID: u
|
12088
12121
|
})), v && d === y && x.createElement(Na, {
|
12089
12122
|
onClose: function () {
|
12090
12123
|
return w.meetingsAdapter.clearPasswordRequiredFlag(u);
|
12091
12124
|
},
|
12092
|
-
otherClassName: [
|
12093
|
-
onBack: "host" ===
|
12094
|
-
return
|
12125
|
+
otherClassName: [L("authentication")],
|
12126
|
+
onBack: "host" === Z && function () {
|
12127
|
+
return F("guest");
|
12095
12128
|
},
|
12096
|
-
ariaLabel: "guest" ===
|
12097
|
-
}, "guest" ===
|
12129
|
+
ariaLabel: "guest" === Z ? "Meeting guest authentication" : "Meeting host authentication"
|
12130
|
+
}, "guest" === Z ? x.createElement(Va, {
|
12098
12131
|
meetingID: u,
|
12099
|
-
className:
|
12132
|
+
className: L("authentication-guest"),
|
12100
12133
|
switchToHostModal: function () {
|
12101
|
-
return
|
12134
|
+
return F("host");
|
12102
12135
|
}
|
12103
|
-
}) : x.createElement(
|
12136
|
+
}) : x.createElement(Za, {
|
12104
12137
|
meetingID: u,
|
12105
|
-
className:
|
12138
|
+
className: L("authentication-host")
|
12106
12139
|
})));
|
12107
12140
|
}
|
12108
|
-
} else
|
12109
|
-
className:
|
12141
|
+
} else W = x.createElement("div", {
|
12142
|
+
className: L("loading-logo")
|
12110
12143
|
});
|
12111
12144
|
return x.createElement("div", {
|
12112
|
-
className:
|
12145
|
+
className: P,
|
12113
12146
|
style: c,
|
12114
|
-
ref:
|
12147
|
+
ref: E
|
12115
12148
|
}, o && x.createElement("div", {
|
12116
|
-
className:
|
12117
|
-
}, o),
|
12149
|
+
className: L("logo")
|
12150
|
+
}, o), W);
|
12118
12151
|
}
|
12119
12152
|
|
12120
|
-
function
|
12153
|
+
function ni(e) {
|
12121
12154
|
function t(t) {
|
12122
|
-
var n =
|
12155
|
+
var n = In(t.meetingDestination);
|
12123
12156
|
return x.createElement(e, _extends({
|
12124
12157
|
meeting: n
|
12125
12158
|
}, t));
|
@@ -12130,7 +12163,7 @@ function ti(e) {
|
|
12130
12163
|
}, t;
|
12131
12164
|
}
|
12132
12165
|
|
12133
|
-
function
|
12166
|
+
function ri(e, t) {
|
12134
12167
|
var n = Object.keys(e);
|
12135
12168
|
|
12136
12169
|
if (Object.getOwnPropertySymbols) {
|
@@ -12143,12 +12176,12 @@ function ni(e, t) {
|
|
12143
12176
|
return n;
|
12144
12177
|
}
|
12145
12178
|
|
12146
|
-
function
|
12179
|
+
function ai(e) {
|
12147
12180
|
for (var t = 1; t < arguments.length; t++) {
|
12148
12181
|
var n = null != arguments[t] ? arguments[t] : {};
|
12149
|
-
t % 2 ?
|
12182
|
+
t % 2 ? ri(Object(n), !0).forEach(function (t) {
|
12150
12183
|
_defineProperty(e, t, n[t]);
|
12151
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
12184
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ri(Object(n)).forEach(function (t) {
|
12152
12185
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
12153
12186
|
});
|
12154
12187
|
}
|
@@ -12156,7 +12189,7 @@ function ri(e) {
|
|
12156
12189
|
return e;
|
12157
12190
|
}
|
12158
12191
|
|
12159
|
-
function
|
12192
|
+
function ii(e, t) {
|
12160
12193
|
function n(n) {
|
12161
12194
|
var r = useState(!1),
|
12162
12195
|
a = _slicedToArray(r, 2),
|
@@ -12214,7 +12247,7 @@ function ai(e, t) {
|
|
12214
12247
|
}();
|
12215
12248
|
}), e;
|
12216
12249
|
}, [l]);
|
12217
|
-
var d =
|
12250
|
+
var d = ai(ai({}, n), {}, {
|
12218
12251
|
adapterConnected: i
|
12219
12252
|
}),
|
12220
12253
|
f = x.createElement(e, d);
|
@@ -12227,11 +12260,11 @@ function ai(e, t) {
|
|
12227
12260
|
return n.displayName = "WithAdapter(".concat((r = e).displayName || r.name || "Component", ")"), n;
|
12228
12261
|
}
|
12229
12262
|
|
12230
|
-
|
12263
|
+
Ka.propTypes = {
|
12231
12264
|
className: T.string,
|
12232
12265
|
style: T.shape(),
|
12233
12266
|
media: T.oneOf(["camera", "microphone"]).isRequired
|
12234
|
-
},
|
12267
|
+
}, Ka.defaultProps = {
|
12235
12268
|
className: void 0,
|
12236
12269
|
style: void 0
|
12237
12270
|
}, Ja.propTypes = {
|
@@ -12248,21 +12281,21 @@ Xa.propTypes = {
|
|
12248
12281
|
}, Qa.defaultProps = {
|
12249
12282
|
className: "",
|
12250
12283
|
style: void 0
|
12251
|
-
},
|
12284
|
+
}, $a.propTypes = {
|
12252
12285
|
className: T.string,
|
12253
12286
|
meetingID: T.string.isRequired,
|
12254
12287
|
style: T.shape()
|
12255
|
-
},
|
12288
|
+
}, $a.defaultProps = {
|
12256
12289
|
className: "",
|
12257
12290
|
style: void 0
|
12258
|
-
},
|
12291
|
+
}, ei.propTypes = {
|
12259
12292
|
className: T.string,
|
12260
12293
|
meetingID: T.string.isRequired,
|
12261
12294
|
style: T.shape()
|
12262
|
-
},
|
12295
|
+
}, ei.defaultProps = {
|
12263
12296
|
className: "",
|
12264
12297
|
style: void 0
|
12265
|
-
},
|
12298
|
+
}, ti.propTypes = {
|
12266
12299
|
className: T.string,
|
12267
12300
|
controls: T.func,
|
12268
12301
|
controlsCollapseRangeStart: T.number,
|
@@ -12271,7 +12304,7 @@ Xa.propTypes = {
|
|
12271
12304
|
logo: T.node,
|
12272
12305
|
meetingID: T.string,
|
12273
12306
|
style: T.shape()
|
12274
|
-
},
|
12307
|
+
}, ti.defaultProps = {
|
12275
12308
|
className: "",
|
12276
12309
|
controls: function (e) {
|
12277
12310
|
return e ? ["mute-audio", "mute-video", "share-screen", "member-roster", "settings", "leave-meeting"] : ["mute-audio", "mute-video", "settings", "join-meeting"];
|
@@ -12800,38 +12833,54 @@ class AudioControl extends MeetingControl {
|
|
12800
12833
|
logger.debug('MEETING', meetingID, 'AudioControl::display()', ['called with', {
|
12801
12834
|
meetingID
|
12802
12835
|
}]);
|
12803
|
-
const
|
12836
|
+
const common = {
|
12804
12837
|
ID: this.ID,
|
12805
|
-
type: 'BUTTON'
|
12806
|
-
icon: 'microphone-muted',
|
12807
|
-
tooltip: 'Unmute audio',
|
12808
|
-
state: i.ACTIVE,
|
12809
|
-
text: 'Unmute'
|
12838
|
+
type: 'BUTTON'
|
12810
12839
|
};
|
12811
|
-
const
|
12812
|
-
|
12813
|
-
|
12814
|
-
|
12815
|
-
|
12816
|
-
|
12817
|
-
|
12818
|
-
|
12819
|
-
|
12820
|
-
|
12821
|
-
|
12822
|
-
|
12823
|
-
|
12824
|
-
|
12840
|
+
const STATES = {
|
12841
|
+
muted: {
|
12842
|
+
icon: 'microphone-muted',
|
12843
|
+
tooltip: 'Unmute audio',
|
12844
|
+
state: i.ACTIVE,
|
12845
|
+
text: 'Unmute'
|
12846
|
+
},
|
12847
|
+
unmuted: {
|
12848
|
+
icon: 'microphone',
|
12849
|
+
tooltip: 'Mute audio',
|
12850
|
+
state: i.INACTIVE,
|
12851
|
+
text: 'Mute'
|
12852
|
+
},
|
12853
|
+
muting: {
|
12854
|
+
icon: 'microphone',
|
12855
|
+
tooltip: 'Muting audio',
|
12856
|
+
state: i.DISABLED,
|
12857
|
+
text: 'Muting...'
|
12858
|
+
},
|
12859
|
+
unmuting: {
|
12860
|
+
icon: 'microphone-muted',
|
12861
|
+
tooltip: 'Unmuting audio',
|
12862
|
+
state: i.DISABLED,
|
12863
|
+
text: 'Unmuting...'
|
12864
|
+
},
|
12865
|
+
noMicrophone: {
|
12866
|
+
icon: 'microphone-muted',
|
12867
|
+
tooltip: 'No microphone available',
|
12868
|
+
state: i.DISABLED,
|
12869
|
+
text: 'No microphone'
|
12870
|
+
}
|
12825
12871
|
};
|
12826
12872
|
return this.adapter.getMeeting(meetingID).pipe(map(_ref => {
|
12827
12873
|
let {
|
12828
12874
|
localAudio: {
|
12829
|
-
stream
|
12875
|
+
stream,
|
12876
|
+
muting
|
12830
12877
|
},
|
12831
12878
|
disabledLocalAudio
|
12832
12879
|
} = _ref;
|
12833
|
-
return stream && unmuted || disabledLocalAudio && muted ||
|
12834
|
-
}), distinctUntilChanged(),
|
12880
|
+
return muting === true && STATES.muting || muting === false && STATES.unmuting || stream && STATES.unmuted || disabledLocalAudio && STATES.muted || STATES.noMicrophone;
|
12881
|
+
}), distinctUntilChanged(), map(state => ({ ...common,
|
12882
|
+
...state
|
12883
|
+
})), tap(display => logger.debug('MEETING', meetingID, 'AudioControl::display()', ['emitting', display])));
|
12835
12884
|
}
|
12836
12885
|
|
12837
12886
|
}
|
@@ -13372,38 +13421,54 @@ class VideoControl extends MeetingControl {
|
|
13372
13421
|
logger.debug('MEETING', meetingID, 'VideoControl::display()', ['called with', {
|
13373
13422
|
meetingID
|
13374
13423
|
}]);
|
13375
|
-
const
|
13376
|
-
ID: this.ID,
|
13377
|
-
type: 'BUTTON',
|
13378
|
-
icon: 'camera-muted',
|
13379
|
-
tooltip: 'Start video',
|
13380
|
-
state: i.ACTIVE,
|
13381
|
-
text: 'Start video'
|
13382
|
-
};
|
13383
|
-
const unmuted = {
|
13424
|
+
const common = {
|
13384
13425
|
ID: this.ID,
|
13385
|
-
type: 'BUTTON'
|
13386
|
-
icon: 'camera',
|
13387
|
-
tooltip: 'Stop video',
|
13388
|
-
state: i.INACTIVE,
|
13389
|
-
text: 'Stop video'
|
13426
|
+
type: 'BUTTON'
|
13390
13427
|
};
|
13391
|
-
const
|
13392
|
-
|
13393
|
-
|
13394
|
-
|
13395
|
-
|
13396
|
-
|
13428
|
+
const STATES = {
|
13429
|
+
muted: {
|
13430
|
+
icon: 'camera-muted',
|
13431
|
+
tooltip: 'Start video',
|
13432
|
+
state: i.ACTIVE,
|
13433
|
+
text: 'Start video'
|
13434
|
+
},
|
13435
|
+
unmuted: {
|
13436
|
+
icon: 'camera',
|
13437
|
+
tooltip: 'Stop video',
|
13438
|
+
state: i.INACTIVE,
|
13439
|
+
text: 'Stop video'
|
13440
|
+
},
|
13441
|
+
muting: {
|
13442
|
+
icon: 'camera',
|
13443
|
+
tooltip: 'Stopping video',
|
13444
|
+
state: i.DISABLED,
|
13445
|
+
text: 'Stopping...'
|
13446
|
+
},
|
13447
|
+
unmuting: {
|
13448
|
+
icon: 'camera-muted',
|
13449
|
+
tooltip: 'Starting video',
|
13450
|
+
state: i.DISABLED,
|
13451
|
+
text: 'Starting...'
|
13452
|
+
},
|
13453
|
+
noCamera: {
|
13454
|
+
icon: 'camera-muted',
|
13455
|
+
tooltip: 'No camera available',
|
13456
|
+
state: i.DISABLED,
|
13457
|
+
text: 'No camera'
|
13458
|
+
}
|
13397
13459
|
};
|
13398
13460
|
return this.adapter.getMeeting(meetingID).pipe(map(_ref => {
|
13399
13461
|
let {
|
13400
13462
|
localVideo: {
|
13401
|
-
stream
|
13463
|
+
stream,
|
13464
|
+
muting
|
13402
13465
|
},
|
13403
13466
|
disabledLocalVideo
|
13404
13467
|
} = _ref;
|
13405
|
-
return stream && unmuted || disabledLocalVideo && muted ||
|
13406
|
-
}), distinctUntilChanged(),
|
13468
|
+
return muting === true && STATES.muting || muting === false && STATES.unmuting || stream && STATES.unmuted || disabledLocalVideo && STATES.muted || STATES.noCamera;
|
13469
|
+
}), distinctUntilChanged(), map(state => ({ ...common,
|
13470
|
+
...state
|
13471
|
+
})), tap(display => logger.debug('MEETING', meetingID, 'VideoControl::display()', ['emitting', display])));
|
13407
13472
|
}
|
13408
13473
|
|
13409
13474
|
}
|
@@ -14033,13 +14098,12 @@ class MeetingsSDKAdapter extends d {
|
|
14033
14098
|
});
|
14034
14099
|
logger.info('MEETING', ID, 'JOIN', 'Joining meeting');
|
14035
14100
|
} catch (error) {
|
14036
|
-
if (error.
|
14101
|
+
if (error.joinIntentRequired) {
|
14037
14102
|
logger.info('MEETING', ID, 'joinMeeting()', 'Meeting requires authentication');
|
14038
|
-
const opts = error.joinOptions || {};
|
14039
14103
|
this.updateMeeting(ID, () => ({
|
14040
14104
|
passwordRequired: true,
|
14041
|
-
invalidPassword: !!
|
14042
|
-
invalidHostKey: !!
|
14105
|
+
invalidPassword: !!options.password,
|
14106
|
+
invalidHostKey: !!options.hostKey
|
14043
14107
|
}));
|
14044
14108
|
} else {
|
14045
14109
|
logger.error('MEETING', ID, 'joinMeeting()', 'Unable to join', error);
|
@@ -14069,6 +14133,35 @@ class MeetingsSDKAdapter extends d {
|
|
14069
14133
|
logger.error('MEETING', ID, 'leaveMeeting()', 'Unable to leave', error);
|
14070
14134
|
}
|
14071
14135
|
}
|
14136
|
+
/**
|
14137
|
+
* Returns the status of the specified local media (audio or video) in the form of an object
|
14138
|
+
* with the following mutually exclusive boolean properties:
|
14139
|
+
* - `unmuted` - the media is unmuted
|
14140
|
+
* - `muted` - the media is muted
|
14141
|
+
* - `muting` - the media is currently being muted
|
14142
|
+
* - `unmuting` - the media is currently being unmuted
|
14143
|
+
* - `disabled` - the media is disabled (there is no available media device)
|
14144
|
+
*
|
14145
|
+
* @param {object} localMedia The local media object from the meeting
|
14146
|
+
* @param {MediaStream|null} disabledLocalMedia The disabled media stream
|
14147
|
+
* @returns {{muting: boolean}|{unmuting: boolean}|{unmuted: boolean}|{muted: boolean}|{disabled: boolean}} The local media state
|
14148
|
+
*/
|
14149
|
+
// eslint-disable-next-line class-methods-use-this
|
14150
|
+
|
14151
|
+
|
14152
|
+
getLocalMediaState(localMedia, disabledLocalMedia) {
|
14153
|
+
return localMedia.muting === true && {
|
14154
|
+
muting: true
|
14155
|
+
} || localMedia.muting === false && {
|
14156
|
+
unmuting: true
|
14157
|
+
} || localMedia.stream && {
|
14158
|
+
unmuted: true
|
14159
|
+
} || disabledLocalMedia && {
|
14160
|
+
muted: true
|
14161
|
+
} || {
|
14162
|
+
disabled: true
|
14163
|
+
};
|
14164
|
+
}
|
14072
14165
|
/**
|
14073
14166
|
* Attempts to mute the microphone of the given meeting ID.
|
14074
14167
|
* If the microphone is successfully muted, an audio mute event is dispatched.
|
@@ -14082,15 +14175,42 @@ class MeetingsSDKAdapter extends d {
|
|
14082
14175
|
logger.debug('MEETING', ID, 'handleLocalAudio()', ['called with', {
|
14083
14176
|
ID
|
14084
14177
|
}]);
|
14178
|
+
let state; // local audio state
|
14179
|
+
// sanity checks and "(un)muting in-progress" state
|
14180
|
+
|
14181
|
+
await this.updateMeeting(ID, meeting => {
|
14182
|
+
let updates;
|
14183
|
+
state = this.getLocalMediaState(meeting.localAudio, meeting.disabledLocalAudio);
|
14184
|
+
|
14185
|
+
if (state.disabled) {
|
14186
|
+
throw new Error('Can\'t mute/unmute disabled audio');
|
14187
|
+
} else if (state.muting) {
|
14188
|
+
throw new Error('Already muting audio');
|
14189
|
+
} else if (state.unmuting) {
|
14190
|
+
throw new Error('Already unmuting audio');
|
14191
|
+
} else if (state.unmuted) {
|
14192
|
+
updates = {
|
14193
|
+
localAudio: {
|
14194
|
+
muting: true
|
14195
|
+
}
|
14196
|
+
};
|
14197
|
+
} else if (state.muted) {
|
14198
|
+
updates = {
|
14199
|
+
localAudio: {
|
14200
|
+
muting: false
|
14201
|
+
}
|
14202
|
+
};
|
14203
|
+
}
|
14204
|
+
|
14205
|
+
return updates;
|
14206
|
+
});
|
14085
14207
|
|
14086
14208
|
try {
|
14087
14209
|
await this.updateMeeting(ID, async (meeting, sdkMeeting) => {
|
14088
14210
|
const isInSession = !!meeting.remoteAudio;
|
14089
|
-
const audioDisabled = !!this.meetings[ID].disabledLocalAudio;
|
14090
|
-
const audioEnabled = !!meeting.localAudio.stream;
|
14091
14211
|
let updates;
|
14092
14212
|
|
14093
|
-
if (
|
14213
|
+
if (state.unmuted) {
|
14094
14214
|
// Mute the audio only if there is an active meeting
|
14095
14215
|
if (isInSession) {
|
14096
14216
|
logger.debug('MEETING', ID, 'handleLocalAudio()', 'calling sdkMeeting.muteAudio()');
|
@@ -14102,10 +14222,11 @@ class MeetingsSDKAdapter extends d {
|
|
14102
14222
|
updates = {
|
14103
14223
|
disabledLocalAudio: meeting.localAudio.stream,
|
14104
14224
|
localAudio: {
|
14105
|
-
stream: null
|
14225
|
+
stream: null,
|
14226
|
+
muting: undefined
|
14106
14227
|
}
|
14107
14228
|
};
|
14108
|
-
} else if (
|
14229
|
+
} else if (state.muted) {
|
14109
14230
|
// Unmute the audio only if there is an active meeting
|
14110
14231
|
if (isInSession) {
|
14111
14232
|
logger.debug('MEETING', ID, 'handleLocalAudio()', 'calling sdkMeeting.unmuteAudio()');
|
@@ -14117,7 +14238,8 @@ class MeetingsSDKAdapter extends d {
|
|
14117
14238
|
updates = {
|
14118
14239
|
disabledLocalAudio: null,
|
14119
14240
|
localAudio: {
|
14120
|
-
stream: meeting.disabledLocalAudio
|
14241
|
+
stream: meeting.disabledLocalAudio,
|
14242
|
+
muting: undefined
|
14121
14243
|
}
|
14122
14244
|
};
|
14123
14245
|
}
|
@@ -14129,6 +14251,11 @@ class MeetingsSDKAdapter extends d {
|
|
14129
14251
|
});
|
14130
14252
|
} catch (error) {
|
14131
14253
|
logger.error('MEETING', ID, 'handleLocalAudio()', 'Unable to update local audio settings', error);
|
14254
|
+
this.updateMeeting(ID, () => ({
|
14255
|
+
localAudio: {
|
14256
|
+
muting: undefined
|
14257
|
+
}
|
14258
|
+
}));
|
14132
14259
|
}
|
14133
14260
|
}
|
14134
14261
|
/**
|
@@ -14144,15 +14271,42 @@ class MeetingsSDKAdapter extends d {
|
|
14144
14271
|
logger.debug('MEETING', ID, 'handleLocalVideo()', ['called with', {
|
14145
14272
|
ID
|
14146
14273
|
}]);
|
14274
|
+
let state; // local video state
|
14275
|
+
// sanity checks and "(un)muting in-progress" state
|
14276
|
+
|
14277
|
+
await this.updateMeeting(ID, meeting => {
|
14278
|
+
let updates;
|
14279
|
+
state = this.getLocalMediaState(meeting.localVideo, meeting.disabledLocalVideo);
|
14280
|
+
|
14281
|
+
if (state.disabled) {
|
14282
|
+
throw new Error('Can\'t mute/unmute disabled video');
|
14283
|
+
} else if (state.muting) {
|
14284
|
+
throw new Error('Already muting video');
|
14285
|
+
} else if (state.unmuting) {
|
14286
|
+
throw new Error('Already unmuting video');
|
14287
|
+
} else if (state.unmuted) {
|
14288
|
+
updates = {
|
14289
|
+
localVideo: {
|
14290
|
+
muting: true
|
14291
|
+
}
|
14292
|
+
};
|
14293
|
+
} else if (state.muted) {
|
14294
|
+
updates = {
|
14295
|
+
localVideo: {
|
14296
|
+
muting: false
|
14297
|
+
}
|
14298
|
+
};
|
14299
|
+
}
|
14300
|
+
|
14301
|
+
return updates;
|
14302
|
+
});
|
14147
14303
|
|
14148
14304
|
try {
|
14149
14305
|
await this.updateMeeting(ID, async (meeting, sdkMeeting) => {
|
14150
14306
|
const isInSession = !!meeting.remoteVideo;
|
14151
|
-
const videoEnabled = !!meeting.localVideo.stream;
|
14152
|
-
const videoDisabled = !!meeting.disabledLocalVideo;
|
14153
14307
|
let updates;
|
14154
14308
|
|
14155
|
-
if (
|
14309
|
+
if (state.unmuted) {
|
14156
14310
|
// Mute the video only if there is an active meeting
|
14157
14311
|
if (isInSession) {
|
14158
14312
|
logger.debug('MEETING', ID, 'handleLocalVideo()', 'calling sdkMeeting.muteVideo()');
|
@@ -14162,12 +14316,13 @@ class MeetingsSDKAdapter extends d {
|
|
14162
14316
|
|
14163
14317
|
|
14164
14318
|
updates = {
|
14319
|
+
disabledLocalVideo: meeting.localVideo.stream,
|
14165
14320
|
localVideo: {
|
14166
|
-
stream: null
|
14167
|
-
|
14168
|
-
|
14321
|
+
stream: null,
|
14322
|
+
muting: undefined
|
14323
|
+
}
|
14169
14324
|
};
|
14170
|
-
} else if (
|
14325
|
+
} else if (state.muted) {
|
14171
14326
|
// Unmute the video only if there is an active meeting
|
14172
14327
|
if (isInSession) {
|
14173
14328
|
logger.debug('MEETING', ID, 'handleLocalVideo()', 'calling sdkMeeting.unmuteVideo()');
|
@@ -14177,10 +14332,11 @@ class MeetingsSDKAdapter extends d {
|
|
14177
14332
|
|
14178
14333
|
|
14179
14334
|
updates = {
|
14335
|
+
disabledLocalVideo: null,
|
14180
14336
|
localVideo: {
|
14181
|
-
stream: meeting.disabledLocalVideo
|
14182
|
-
|
14183
|
-
|
14337
|
+
stream: meeting.disabledLocalVideo,
|
14338
|
+
muting: undefined
|
14339
|
+
}
|
14184
14340
|
};
|
14185
14341
|
}
|
14186
14342
|
|
@@ -14191,6 +14347,11 @@ class MeetingsSDKAdapter extends d {
|
|
14191
14347
|
});
|
14192
14348
|
} catch (error) {
|
14193
14349
|
logger.error('MEETING', ID, 'handleLocalVideo()', 'Unable to update local video settings', error);
|
14350
|
+
this.updateMeeting(ID, () => ({
|
14351
|
+
localVideo: {
|
14352
|
+
muting: undefined
|
14353
|
+
}
|
14354
|
+
}));
|
14194
14355
|
}
|
14195
14356
|
}
|
14196
14357
|
/**
|
@@ -14341,16 +14502,21 @@ class MeetingsSDKAdapter extends d {
|
|
14341
14502
|
};
|
14342
14503
|
|
14343
14504
|
if (meeting.state === s.JOINED) {
|
14344
|
-
|
14345
|
-
|
14346
|
-
|
14347
|
-
|
14348
|
-
|
14349
|
-
|
14350
|
-
|
14351
|
-
|
14352
|
-
|
14353
|
-
|
14505
|
+
if (meeting.settings.preview.video) {
|
14506
|
+
await sdkMeeting.updateVideo({
|
14507
|
+
stream: meeting.settings.preview.video,
|
14508
|
+
receiveVideo: mediaSettings.receiveVideo,
|
14509
|
+
sendVideo: mediaSettings.sendVideo
|
14510
|
+
});
|
14511
|
+
}
|
14512
|
+
|
14513
|
+
if (meeting.settings.preview.audio) {
|
14514
|
+
await sdkMeeting.updateAudio({
|
14515
|
+
stream: meeting.settings.preview.audio,
|
14516
|
+
receiveAudio: mediaSettings.receiveAudio,
|
14517
|
+
sendAudio: mediaSettings.sendAudio
|
14518
|
+
});
|
14519
|
+
}
|
14354
14520
|
}
|
14355
14521
|
}
|
14356
14522
|
|
@@ -14393,7 +14559,7 @@ class MeetingsSDKAdapter extends d {
|
|
14393
14559
|
updates = {
|
14394
14560
|
settings: {
|
14395
14561
|
preview: {
|
14396
|
-
stream
|
14562
|
+
video: stream
|
14397
14563
|
}
|
14398
14564
|
},
|
14399
14565
|
cameraID: deviceId
|
@@ -14577,15 +14743,14 @@ class MeetingsSDKAdapter extends d {
|
|
14577
14743
|
if (!(ID in this.getMeetingObservables)) {
|
14578
14744
|
const sdkMeeting = this.fetchMeeting(ID);
|
14579
14745
|
const getMeeting$ = Observable.create(observer => {
|
14580
|
-
if (this.meetings[ID]) {
|
14746
|
+
if (sdkMeeting && this.meetings[ID]) {
|
14581
14747
|
logger.debug('MEETING', ID, 'getMeeting()', ['initial meeting object', this.meetings[ID]]);
|
14582
14748
|
observer.next(this.meetings[ID]);
|
14749
|
+
observer.complete();
|
14583
14750
|
} else {
|
14584
14751
|
logger.error('MEETING', ID, 'getMeeting()', `Could not find meeting with ID "${ID}"`);
|
14585
14752
|
observer.error(new Error(`Could not find meeting with ID "${ID}"`));
|
14586
14753
|
}
|
14587
|
-
|
14588
|
-
observer.complete();
|
14589
14754
|
});
|
14590
14755
|
const meetingUpdateEvent$ = fromEvent(sdkMeeting, EVENT_MEETING_UPDATED).pipe(tap(() => logger.debug('MEETING', ID, 'getMeeting()', ['received', EVENT_MEETING_UPDATED, 'event'])), tap(meeting => {
|
14591
14756
|
this.meetings[ID] = meeting;
|
@@ -15082,7 +15247,7 @@ var defineProperty = defineProperty$1;
|
|
15082
15247
|
})(constants);
|
15083
15248
|
|
15084
15249
|
var name = "@webex/sdk-component-adapter";
|
15085
|
-
var version = "1.
|
15250
|
+
var version = "1.93.0";
|
15086
15251
|
const LOG_ARGS$1 = ['SDK-MEMBERSHIPS', `${name}-${version}`]; // max parameter value must be greater than 0 and less than or equal to 1000
|
15087
15252
|
|
15088
15253
|
const MAX_MEMBERSHIPS = 1000; // TODO: Figure out how to import JS Doc definitions and remove duplication.
|
@@ -15143,7 +15308,7 @@ function sortRoomMembers(memberships, myID) {
|
|
15143
15308
|
/* eslint-enable no-nested-ternary, indent */
|
15144
15309
|
}
|
15145
15310
|
/**
|
15146
|
-
*
|
15311
|
+
* Maps SDK members to adapter members
|
15147
15312
|
*
|
15148
15313
|
* @private
|
15149
15314
|
* @param {object} sdkMembers Members object from sdk meeting, keyed by ID
|
@@ -15156,7 +15321,6 @@ function getMembers(sdkMembers) {
|
|
15156
15321
|
sdkMembers
|
15157
15322
|
}]);
|
15158
15323
|
let members = Object.values(sdkMembers || {});
|
15159
|
-
members = members.filter(member => member.isUser);
|
15160
15324
|
members = sortMeetingMembers(members);
|
15161
15325
|
return members.map(member => ({
|
15162
15326
|
ID: member.participant && member.participant.person && constructHydraId(constants.hydraTypes.PEOPLE, member.participant.person.id),
|
@@ -16060,21 +16224,21 @@ var WebexMeetingWidget = /*#__PURE__*/function (_Component) {
|
|
16060
16224
|
var content;
|
16061
16225
|
|
16062
16226
|
if (audioPermission === 'ASKING') {
|
16063
|
-
content = /*#__PURE__*/x.createElement(
|
16227
|
+
content = /*#__PURE__*/x.createElement(Ta, {
|
16064
16228
|
className: "webex-meeting-widget__content",
|
16065
16229
|
meetingID: meeting.ID,
|
16066
16230
|
media: "microphone",
|
16067
16231
|
logo: logo
|
16068
16232
|
});
|
16069
16233
|
} else if (videoPermission === 'ASKING') {
|
16070
|
-
content = /*#__PURE__*/x.createElement(
|
16234
|
+
content = /*#__PURE__*/x.createElement(Ta, {
|
16071
16235
|
className: "webex-meeting-widget__content",
|
16072
16236
|
meetingID: meeting.ID,
|
16073
16237
|
media: "camera",
|
16074
16238
|
logo: logo
|
16075
16239
|
});
|
16076
16240
|
} else {
|
16077
|
-
content = /*#__PURE__*/x.createElement(
|
16241
|
+
content = /*#__PURE__*/x.createElement(ti, {
|
16078
16242
|
className: "webex-meeting-widget__content",
|
16079
16243
|
meetingID: meeting.ID,
|
16080
16244
|
logo: logo,
|
@@ -16111,14 +16275,14 @@ WebexMeetingWidget.defaultProps = {
|
|
16111
16275
|
style: {}
|
16112
16276
|
};
|
16113
16277
|
var appName = process.env.NODE_ENV === 'production' ? 'webex-widgets-meeting' : 'webex-widgets-meeting-dev';
|
16114
|
-
var WebexMeeting =
|
16278
|
+
var WebexMeeting = ii(ni(WebexMeetingWidget), function (props) {
|
16115
16279
|
var webex = new Webex({
|
16116
16280
|
credentials: {
|
16117
16281
|
access_token: props.accessToken
|
16118
16282
|
},
|
16119
16283
|
config: {
|
16120
16284
|
appName: appName,
|
16121
|
-
appVersion: "1.20.
|
16285
|
+
appVersion: "1.20.8"
|
16122
16286
|
}
|
16123
16287
|
});
|
16124
16288
|
return new WebexSDKAdapter(webex);
|