@webex/widgets 1.20.5 → 1.20.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4319,16 +4319,16 @@ var J = function (r) {
4319
4319
  }]), i;
4320
4320
  }();
4321
4321
 
4322
- function Q(e, t) {
4322
+ function K(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 ? Q(n[o], s) : n[o] = s;
4327
+ (null == s ? void 0 : s.constructor) === Object ? K(n[o], s) : n[o] = s;
4328
4328
  }
4329
4329
  }
4330
4330
 
4331
- var K = function t(n, r) {
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, K);
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, K);
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, K);
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, K);
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, K);
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, K);
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, K);
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, K);
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, K);
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, K);
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, K);
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, K);
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, Q(r, a), document.dispatchEvent(new CustomEvent("meeting:update", {
6525
+ a = e.sent, K(r, a), document.dispatchEvent(new CustomEvent("meeting:update", {
6526
6526
  detail: r
6527
6527
  }));
6528
6528
 
@@ -6819,7 +6819,7 @@ function Xe(e) {
6819
6819
  }]), i;
6820
6820
  })();
6821
6821
 
6822
- function Qe(e) {
6822
+ function Ke(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 Ke(e) {
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
- Qe.propTypes = {
7544
+ Ke.propTypes = {
7545
7545
  size: T.number,
7546
7546
  className: T.string,
7547
7547
  style: T.shape()
7548
- }, Qe.defaultProps = {
7548
+ }, Ke.defaultProps = {
7549
7549
  size: 26,
7550
7550
  className: "",
7551
7551
  style: {}
7552
- }, Ke.propTypes = {
7552
+ }, Qe.propTypes = {
7553
7553
  size: T.number,
7554
7554
  className: T.string,
7555
7555
  style: T.shape()
7556
- }, Ke.defaultProps = {
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": Qe,
7819
- "arrow-left": Ke,
7818
+ "arrow-down": Ke,
7819
+ "arrow-left": Qe,
7820
7820
  "arrow-up": $e,
7821
7821
  check: nt,
7822
7822
  camera: at,
@@ -7972,21 +7972,21 @@ var Ht,
7972
7972
  Jt = function (e) {
7973
7973
  return parseFloat(e || "0");
7974
7974
  },
7975
- Qt = function (e, t, n) {
7975
+ Kt = 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
- Kt = Object.freeze({
7982
- devicePixelContentBoxSize: Qt(),
7983
- borderBoxSize: Qt(),
7984
- contentBoxSize: Qt(),
7981
+ Qt = Object.freeze({
7982
+ devicePixelContentBoxSize: Kt(),
7983
+ borderBoxSize: Kt(),
7984
+ contentBoxSize: Kt(),
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, Kt), Kt;
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(),
@@ -8014,9 +8014,9 @@ var Ht,
8014
8014
  k = x + h + w + g,
8015
8015
  O = N + v + C + y,
8016
8016
  D = Object.freeze({
8017
- devicePixelContentBoxSize: Qt(Math.round(x * devicePixelRatio), Math.round(N * devicePixelRatio), i),
8018
- borderBoxSize: Qt(k, O, i),
8019
- contentBoxSize: Qt(x, N, i),
8017
+ devicePixelContentBoxSize: Kt(Math.round(x * devicePixelRatio), Math.round(N * devicePixelRatio), i),
8018
+ borderBoxSize: Kt(k, O, i),
8019
+ contentBoxSize: Kt(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 e,
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]), [e, {
8285
+ }, [e.current]), {
8301
8286
  height: r,
8302
8287
  width: s
8303
- }];
8288
+ };
8304
8289
  }
8305
8290
 
8306
- function Nn() {
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 kn(e, t) {
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 On(e) {
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 ? kn(Object(n), !0).forEach(function (t) {
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)) : kn(Object(n)).forEach(function (t) {
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 Dn = {
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 Mn(e) {
8373
- var t = useState(Dn),
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(On({}, e));
8369
+ a(kn({}, e));
8385
8370
  }, function (e) {
8386
- a(On(On({}, Dn), {}, {
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(On({}, Dn)), t = void 0;
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 Tn(e, t) {
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 Pn(e, t) {
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 Ln(e) {
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 ? Pn(Object(n), !0).forEach(function (t) {
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)) : Pn(Object(n)).forEach(function (t) {
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 In = {
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 Sn(e) {
8469
- var t = useState(In),
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(Ln({}, e)), n = e;
8487
+ a(Pn({}, e)), n = e;
8503
8488
  }, function (e) {
8504
- a(Ln(Ln({}, In), {}, {
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(Ln({}, In)), t = void 0;
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 Rn(e, t) {
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 jn(e, t) {
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 zn(e) {
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 ? jn(Object(n), !0).forEach(function (t) {
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)) : jn(Object(n)).forEach(function (t) {
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,20 @@ function zn(e) {
8587
8572
  }, [e]), r;
8588
8573
  }
8589
8574
 
8575
+ function zn() {
8576
+ var e,
8577
+ t,
8578
+ n,
8579
+ r,
8580
+ a = (e = useState(0), t = _slicedToArray(e, 2), n = t[0], r = t[1], function () {
8581
+ return r(n + 1);
8582
+ }),
8583
+ i = useCallback(function (e) {
8584
+ i.current = e, a();
8585
+ }, []);
8586
+ return i;
8587
+ }
8588
+
8590
8589
  function An(e, t) {
8591
8590
  var n = Object.keys(e);
8592
8591
 
@@ -8764,7 +8763,7 @@ function Xn(e) {
8764
8763
  return t.setSeconds(0, 0), 6e4 * n + (n > 0 ? (6e4 + _n(t)) % 6e4 : _n(t));
8765
8764
  }
8766
8765
 
8767
- function Qn(e) {
8766
+ function Kn(e) {
8768
8767
  Zn(1, arguments);
8769
8768
  var t = Fn(e);
8770
8769
  return !isNaN(t);
@@ -10014,7 +10013,7 @@ function Yr(e, t, n) {
10014
10013
  if (!i.localize) throw new RangeError("locale must contain localize property");
10015
10014
  if (!i.formatLong) throw new RangeError("locale must contain formatLong property");
10016
10015
  var p = Fn(e);
10017
- if (!Qn(p)) throw new RangeError("Invalid time value");
10016
+ if (!Kn(p)) throw new RangeError("Invalid time value");
10018
10017
  var d = Xn(p),
10019
10018
  f = sr(p, d),
10020
10019
  h = {
@@ -10156,52 +10155,50 @@ function la(e) {
10156
10155
  r = e.mediaType,
10157
10156
  a = e.meetingID,
10158
10157
  i = e.style,
10159
- o = xn(),
10160
- s = _slicedToArray(o, 2),
10161
- c = s[0],
10162
- l = s[1].width,
10163
- u = Mn(a),
10164
- m = u.localVideo,
10165
- p = u.localShare,
10166
- d = u.settings,
10167
- f = Nn().ID,
10168
- h = En();
10158
+ o = zn(),
10159
+ s = En(o).width,
10160
+ c = Dn(a),
10161
+ l = c.localVideo,
10162
+ u = c.localShare,
10163
+ m = c.settings,
10164
+ p = xn().ID,
10165
+ d = zn();
10169
10166
 
10170
10167
  switch (r) {
10171
10168
  case "video":
10172
- t = m.stream;
10169
+ t = l.stream;
10173
10170
  break;
10174
10171
 
10175
10172
  case "screen":
10176
- t = null == p ? void 0 : p.stream;
10173
+ t = null == u ? void 0 : u.stream;
10177
10174
  break;
10178
10175
 
10179
10176
  case "preview":
10180
- t = d.preview.video;
10177
+ t = m.preview.video;
10181
10178
  }
10182
10179
 
10183
- Vn(h, t);
10184
- var v = Pe("local-media", n, {
10185
- desktop: l >= 425,
10180
+ Vn(d, t);
10181
+ var f = Pe("local-media", n, {
10182
+ desktop: s >= 425,
10186
10183
  "no-media": !t
10187
10184
  }),
10188
- g = _slicedToArray(v, 2),
10189
- y = g[0],
10190
- C = g[1],
10191
- w = f ? x.createElement(qn, {
10192
- personID: f,
10185
+ h = _slicedToArray(f, 2),
10186
+ v = h[0],
10187
+ g = h[1],
10188
+ y = p ? x.createElement(qn, {
10189
+ personID: p,
10193
10190
  displayStatus: !1
10194
10191
  }) : x.createElement(ca, null);
10195
10192
  return x.createElement("div", {
10196
- ref: c,
10197
- className: y,
10193
+ ref: o,
10194
+ className: v,
10198
10195
  style: i
10199
10196
  }, t ? x.createElement("video", {
10200
- className: C("video"),
10201
- ref: h,
10197
+ className: g("video"),
10198
+ ref: d,
10202
10199
  playsInline: !0,
10203
10200
  autoPlay: !0
10204
- }) : w);
10201
+ }) : y);
10205
10202
  }
10206
10203
 
10207
10204
  function ua(e) {
@@ -10233,53 +10230,51 @@ function pa(e) {
10233
10230
  var t = e.className,
10234
10231
  n = e.meetingID,
10235
10232
  r = e.style,
10236
- a = Mn(n),
10233
+ a = Dn(n),
10237
10234
  i = a.remoteAudio,
10238
10235
  o = a.remoteVideo,
10239
10236
  s = a.remoteShare,
10240
10237
  c = a.error,
10241
10238
  l = a.speakerID,
10242
- u = Rn(n, "meeting"),
10243
- m = En(),
10244
- p = En(),
10245
- d = En();
10239
+ u = Sn(n, "meeting"),
10240
+ m = zn(),
10241
+ p = zn(),
10242
+ d = zn(),
10243
+ f = zn();
10246
10244
  Vn(m, i), Vn(p, o), Vn(d, s), function (e, t) {
10247
10245
  var n = e.current;
10248
10246
  useEffect(function () {
10249
10247
  n && (n.setSinkId ? n.setSinkId(t) : console.error("useSpeakers: setSinkId() not supported on this element", n));
10250
10248
  }, [n, t]);
10251
10249
  }(m, l);
10252
- var f,
10253
- h = xn(),
10254
- v = _slicedToArray(h, 2),
10255
- g = v[0],
10256
- y = v[1].width,
10257
- C = u.filter(function (e) {
10250
+ var h,
10251
+ v = En(f).width,
10252
+ g = u.filter(function (e) {
10258
10253
  return e.inMeeting;
10259
10254
  }).length > 1,
10260
- w = !!(i || o || s),
10261
- E = Pe("remote-media", t, {
10262
- tablet: y >= 768 && y < 1024,
10263
- desktop: y >= 1024 && y < 1440,
10264
- "desktop-xl": y >= 1440,
10255
+ y = !!(i || o || s),
10256
+ C = Pe("remote-media", t, {
10257
+ tablet: v >= 768 && v < 1024,
10258
+ desktop: v >= 1024 && v < 1440,
10259
+ "desktop-xl": v >= 1440,
10265
10260
  "remote-video-n-share": o && s
10266
10261
  }),
10267
- N = _slicedToArray(E, 2),
10268
- k = N[0],
10269
- D = N[1];
10270
- return f = c ? x.createElement("div", {
10271
- className: D("media-error")
10262
+ w = _slicedToArray(C, 2),
10263
+ E = w[0],
10264
+ N = w[1];
10265
+ return h = c ? x.createElement("div", {
10266
+ className: N("media-error")
10272
10267
  }, x.createElement(It, {
10273
10268
  name: "error",
10274
- className: D("error-icon")
10275
- }), x.createElement("div", null, "Having trouble joining the meeting?"), x.createElement("div", null, "Please check your connection.")) : w && C ? x.createElement(x.Fragment, null, o && x.createElement("video", {
10276
- className: "".concat(D("video"), " ").concat(D("remote-video")),
10269
+ className: N("error-icon")
10270
+ }), 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", {
10271
+ className: "".concat(N("video"), " ").concat(N("remote-video")),
10277
10272
  ref: p,
10278
10273
  muted: !0,
10279
10274
  playsInline: !0,
10280
10275
  autoPlay: !0
10281
10276
  }), s && x.createElement("video", {
10282
- className: "".concat(D("video"), " ").concat(D("remote-share")),
10277
+ className: "".concat(N("video"), " ").concat(N("remote-share")),
10283
10278
  ref: d,
10284
10279
  muted: !0,
10285
10280
  playsInline: !0,
@@ -10287,67 +10282,65 @@ function pa(e) {
10287
10282
  }), i && x.createElement("audio", {
10288
10283
  ref: m,
10289
10284
  autoPlay: !0
10290
- })) : w && !C ? x.createElement(ma, {
10285
+ })) : y && !g ? x.createElement(ma, {
10291
10286
  type: "subsection"
10292
10287
  }, "Waiting for others to join...") : x.createElement(ua, {
10293
- className: D("connecting-badge")
10288
+ className: N("connecting-badge")
10294
10289
  }, x.createElement(ca, {
10295
10290
  size: 14,
10296
- className: D("connecting-spinner")
10291
+ className: N("connecting-spinner")
10297
10292
  }), x.createElement("span", null, "Connecting")), x.createElement("div", {
10298
- ref: g,
10299
- className: k,
10293
+ ref: f,
10294
+ className: E,
10300
10295
  style: r
10301
- }, f);
10296
+ }, h);
10302
10297
  }
10303
10298
 
10304
10299
  function da(e) {
10305
10300
  var t = e.className,
10306
10301
  n = e.meetingID,
10307
10302
  r = e.style,
10308
- a = Mn(n),
10303
+ a = Dn(n),
10309
10304
  i = a.remoteShare,
10310
10305
  o = a.localShare,
10311
- s = xn(),
10312
- c = _slicedToArray(s, 2),
10313
- l = c[0],
10314
- u = c[1],
10315
- m = u.width,
10316
- p = u.height,
10317
- d = useState("none"),
10318
- f = _slicedToArray(d, 2),
10319
- h = f[0],
10320
- v = f[1],
10321
- g = null != o && o.stream ? "screen" : "video",
10322
- y = Pe("in-meeting", t, {
10323
- tablet: m >= 768 && m < 1024,
10324
- desktop: m >= 1024 && m < 1440,
10325
- "desktop-xl": m >= 1440,
10306
+ s = zn(),
10307
+ c = En(s),
10308
+ l = c.width,
10309
+ u = c.height,
10310
+ m = useState("none"),
10311
+ p = _slicedToArray(m, 2),
10312
+ d = p[0],
10313
+ f = p[1],
10314
+ h = null != o && o.stream ? "screen" : "video",
10315
+ v = Pe("in-meeting", t, {
10316
+ tablet: l >= 768 && l < 1024,
10317
+ desktop: l >= 1024 && l < 1440,
10318
+ "desktop-xl": l >= 1440,
10326
10319
  "remote-sharing": null !== i
10327
10320
  }),
10328
- C = _slicedToArray(y, 2),
10329
- w = C[0],
10330
- E = C[1];
10321
+ g = _slicedToArray(v, 2),
10322
+ y = g[0],
10323
+ C = g[1];
10331
10324
  return useEffect(function () {
10332
- v(p ? 16 * p / 9 : "none");
10333
- }, [p]), x.createElement("div", {
10334
- ref: l,
10335
- className: w,
10325
+ f(u ? 16 * u / 9 : "none");
10326
+ }, [u]), x.createElement("div", {
10327
+ ref: s,
10328
+ className: y,
10336
10329
  style: r
10337
10330
  }, x.createElement("div", {
10338
10331
  style: {
10339
- maxWidth: h
10332
+ maxWidth: d
10340
10333
  },
10341
- className: E("media-container")
10334
+ className: C("media-container")
10342
10335
  }, x.createElement(pa, {
10343
- className: E("remote-media-in-meeting"),
10336
+ className: C("remote-media-in-meeting"),
10344
10337
  meetingID: n
10345
10338
  }), x.createElement(la, {
10346
- className: E("local-media-in-meeting"),
10339
+ className: C("local-media-in-meeting"),
10347
10340
  meetingID: n,
10348
- mediaType: g
10341
+ mediaType: h
10349
10342
  }), (null == o ? void 0 : o.stream) && x.createElement(oa, {
10350
- className: E("share-banner")
10343
+ className: C("share-banner")
10351
10344
  }, "You're sharing your screen")));
10352
10345
  }
10353
10346
 
@@ -10359,40 +10352,38 @@ function fa(e) {
10359
10352
  i = e.className,
10360
10353
  o = e.meetingID,
10361
10354
  s = e.style,
10362
- c = Mn(o),
10355
+ c = Dn(o),
10363
10356
  l = c.ID,
10364
10357
  u = c.startTime,
10365
10358
  m = c.endTime,
10366
10359
  p = c.title,
10367
- d = xn(),
10368
- f = _slicedToArray(d, 2),
10369
- h = f[0],
10370
- v = f[1].width,
10371
- g = Pe("meeting-info", i, {
10372
- tablet: v >= 768 && v < 1024,
10373
- desktop: v >= 1024
10360
+ d = zn(),
10361
+ f = En(d).width,
10362
+ h = Pe("meeting-info", i, {
10363
+ tablet: f >= 768 && f < 1024,
10364
+ desktop: f >= 1024
10374
10365
  }),
10375
- y = _slicedToArray(g, 2),
10376
- C = y[0],
10377
- w = y[1],
10378
- E = x.createElement(ca, {
10366
+ v = _slicedToArray(h, 2),
10367
+ g = v[0],
10368
+ y = v[1],
10369
+ C = x.createElement(ca, {
10379
10370
  size: 36
10380
10371
  });
10381
10372
 
10382
10373
  if (l) {
10383
- var N = p || "No Meeting Information";
10384
- E = x.createElement(x.Fragment, null, x.createElement("h2", {
10385
- className: w("title")
10386
- }, N), u && m && x.createElement("h3", {
10387
- className: w("time")
10374
+ var w = p || "No Meeting Information";
10375
+ C = x.createElement(x.Fragment, null, x.createElement("h2", {
10376
+ className: y("title")
10377
+ }, w), u && m && x.createElement("h3", {
10378
+ className: y("time")
10388
10379
  }, (t = new Date(u), n = new Date(m), r = Yr(t, "p"), a = Yr(n, "p"), "".concat(r, " - ").concat(a))));
10389
10380
  }
10390
10381
 
10391
10382
  return x.createElement("div", {
10392
- ref: h,
10393
- className: C,
10383
+ ref: d,
10384
+ className: g,
10394
10385
  style: s
10395
- }, E);
10386
+ }, C);
10396
10387
  }
10397
10388
 
10398
10389
  function ha(e) {
@@ -10403,36 +10394,34 @@ function ha(e) {
10403
10394
  i = _slicedToArray(a, 2),
10404
10395
  o = i[0],
10405
10396
  s = i[1],
10406
- c = xn(),
10407
- l = _slicedToArray(c, 2),
10408
- u = l[0],
10409
- m = l[1].height,
10410
- p = useState("none"),
10411
- d = _slicedToArray(p, 2),
10412
- f = d[0],
10413
- h = d[1],
10414
- v = Mn(n).localVideo;
10397
+ c = zn(),
10398
+ l = En(c).height,
10399
+ u = useState("none"),
10400
+ m = _slicedToArray(u, 2),
10401
+ p = m[0],
10402
+ d = m[1],
10403
+ f = Dn(n).localVideo;
10415
10404
  return useEffect(function () {
10416
- h(m ? 16 * m / 9 - 1 : "none");
10417
- }, [m]), x.createElement("div", {
10405
+ d(l ? 16 * l / 9 - 1 : "none");
10406
+ }, [l]), x.createElement("div", {
10418
10407
  className: o,
10419
10408
  style: r
10420
10409
  }, n ? x.createElement("div", {
10421
10410
  style: {
10422
- maxWidth: f
10411
+ maxWidth: p
10423
10412
  },
10424
10413
  className: s("media-container")
10425
10414
  }, x.createElement(fa, {
10426
10415
  className: s("info"),
10427
10416
  meetingID: n
10428
10417
  }), x.createElement("div", {
10429
- ref: u,
10418
+ ref: c,
10430
10419
  className: s("interstitial-media-container")
10431
10420
  }, x.createElement(la, {
10432
10421
  className: s("media"),
10433
10422
  meetingID: n,
10434
10423
  mediaType: "video"
10435
- }), v.stream && x.createElement(oa, null, "My preview"))) : x.createElement(ca, null));
10424
+ }), f.stream && x.createElement(oa, null, "My preview"))) : x.createElement(ca, null));
10436
10425
  }
10437
10426
 
10438
10427
  la.propTypes = {
@@ -10620,7 +10609,7 @@ function Ea(e) {
10620
10609
  f = e.type,
10621
10610
  h = Pe("button", i, (_defineProperty(t = {}, "".concat(f), !0), _defineProperty(t, "pressed", c), t)),
10622
10611
  v = _slicedToArray(h, 1)[0],
10623
- g = En();
10612
+ g = zn();
10624
10613
  return zt(g, r), x.createElement(x.Fragment, null, x.createElement("button", {
10625
10614
  className: v,
10626
10615
  disabled: o,
@@ -10662,7 +10651,7 @@ function xa(e) {
10662
10651
  C = _slicedToArray(y, 2),
10663
10652
  w = C[0],
10664
10653
  E = C[1],
10665
- k = En();
10654
+ k = zn();
10666
10655
  return zt(k, p), x.createElement("div", {
10667
10656
  className: v,
10668
10657
  style: n
@@ -10723,31 +10712,29 @@ function Na(e) {
10723
10712
  i = e.otherClassName,
10724
10713
  o = e.title,
10725
10714
  s = e.ariaLabel,
10726
- c = xn(),
10727
- l = _slicedToArray(c, 2),
10728
- u = l[0],
10729
- m = Pe("modal", n, {
10730
- "centered-modal": l[1].width > 768
10715
+ c = zn(),
10716
+ l = Pe("modal", n, {
10717
+ "centered-modal": En(c).width > 768
10731
10718
  }),
10732
- p = _slicedToArray(m, 2),
10733
- d = p[0],
10734
- f = p[1];
10719
+ u = _slicedToArray(l, 2),
10720
+ m = u[0],
10721
+ p = u[1];
10735
10722
  return x.createElement("div", {
10736
- ref: u,
10737
- className: d,
10723
+ ref: c,
10724
+ className: m,
10738
10725
  onKeyUp: function (e) {
10739
10726
  "Escape" !== e.key && "Esc" !== e.key || a();
10740
10727
  },
10741
10728
  role: "dialog",
10742
10729
  "aria-label": s || o
10743
10730
  }, x.createElement("div", {
10744
- className: "".concat(f("content"), " ").concat(i)
10731
+ className: "".concat(p("content"), " ").concat(i)
10745
10732
  }, x.createElement("div", {
10746
- className: f("header")
10733
+ className: p("header")
10747
10734
  }, r && x.createElement(Ea, {
10748
10735
  tabIndex: 198,
10749
10736
  type: "ghost",
10750
- className: f("back"),
10737
+ className: p("back"),
10751
10738
  size: 28,
10752
10739
  onClick: r,
10753
10740
  ariaLabel: "Return to the previous screen"
@@ -10755,10 +10742,10 @@ function Na(e) {
10755
10742
  name: "arrow-left",
10756
10743
  size: "13"
10757
10744
  })), o && x.createElement("h3", {
10758
- className: f("title")
10745
+ className: p("title")
10759
10746
  }, o), a && x.createElement(Ea, {
10760
10747
  tabIndex: 199,
10761
- className: f("close"),
10748
+ className: p("close"),
10762
10749
  type: "ghost",
10763
10750
  size: 28,
10764
10751
  ariaLabel: "Close dialog",
@@ -10767,11 +10754,45 @@ function Na(e) {
10767
10754
  name: "cancel",
10768
10755
  size: 16
10769
10756
  }))), x.createElement("div", {
10770
- className: f("body")
10757
+ className: p("body")
10771
10758
  }, t)));
10772
10759
  }
10773
10760
 
10774
10761
  function ka(e) {
10762
+ var t = e.className,
10763
+ n = e.focused,
10764
+ r = e.onKeyDown,
10765
+ a = e.onMouseEnter,
10766
+ i = e.onSelect,
10767
+ o = e.option,
10768
+ s = e.sc,
10769
+ c = e.selected,
10770
+ l = e.tabIndex,
10771
+ u = zn();
10772
+ return zt(u, n), x.createElement("li", {
10773
+ "aria-label": "object" !== _typeof(o.label) ? o.label : o.value,
10774
+ "aria-selected": c === o.value,
10775
+ className: t,
10776
+ key: o.value,
10777
+ role: "option",
10778
+ ref: u,
10779
+ onClick: i,
10780
+ onKeyDown: r,
10781
+ onMouseEnter: a,
10782
+ tabIndex: l,
10783
+ title: "object" !== _typeof(o.label) && o.label
10784
+ }, o.icon && x.createElement(It, {
10785
+ name: o.icon
10786
+ }), x.createElement("span", {
10787
+ className: s("label")
10788
+ }, o.label), c && x.createElement(It, {
10789
+ className: De(s("check"), _defineProperty({}, s("check--invisible"), c !== o.value)),
10790
+ size: 16,
10791
+ name: "check"
10792
+ }));
10793
+ }
10794
+
10795
+ function Oa(e) {
10775
10796
  var t = e.options,
10776
10797
  n = e.className,
10777
10798
  r = e.onBlur,
@@ -10782,56 +10803,46 @@ function ka(e) {
10782
10803
  c = _slicedToArray(s, 2),
10783
10804
  l = c[0],
10784
10805
  u = c[1],
10785
- m = En();
10786
- zt(m, !0);
10787
- var p = useState(0),
10788
- f = _slicedToArray(p, 2),
10789
- h = f[0],
10790
- v = f[1];
10806
+ m = useState(0),
10807
+ p = _slicedToArray(m, 2),
10808
+ d = p[0],
10809
+ f = p[1],
10810
+ h = function (e) {
10811
+ if ("ArrowUp" === e.key) {
10812
+ var n = (d + t.length - 1) % t.length;
10813
+ f(n);
10814
+ } else if ("ArrowDown" === e.key) {
10815
+ var i = (d + 1) % t.length;
10816
+ f(i);
10817
+ } else "Enter" === e.key ? a(t[d]) : "Tab" === e.key && r();
10818
+ };
10819
+
10791
10820
  return x.createElement("div", {
10792
10821
  className: l
10793
10822
  }, x.createElement("ul", {
10794
10823
  role: "menu",
10795
10824
  className: u("list"),
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
- },
10805
- tabIndex: o,
10806
- ref: m,
10807
- onBlur: r
10825
+ tabIndex: o
10808
10826
  }, t.map(function (e, t) {
10809
- return x.createElement("li", {
10810
- className: "".concat(u("option"), " ").concat(h === t && u("option--focused")),
10811
- key: e.value,
10812
- onClick: function () {
10813
- return a(e);
10814
- },
10827
+ return x.createElement(ka, {
10828
+ className: "".concat(u("option"), " ").concat(d === t && u("option--focused")),
10829
+ focused: t === d,
10830
+ onKeyDown: h,
10815
10831
  onMouseEnter: function () {
10816
- return v(t);
10832
+ return f(t);
10817
10833
  },
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
- }));
10834
+ onSelect: function () {
10835
+ return a(e);
10836
+ },
10837
+ option: e,
10838
+ sc: u,
10839
+ selected: i,
10840
+ tabIndex: o
10841
+ });
10831
10842
  })));
10832
10843
  }
10833
10844
 
10834
- function Oa(e) {
10845
+ function Da(e) {
10835
10846
  var t,
10836
10847
  n = e.className,
10837
10848
  r = e.value,
@@ -10886,7 +10897,7 @@ function Oa(e) {
10886
10897
  }, y || r), x.createElement(It, {
10887
10898
  name: p ? "arrow-up" : "arrow-down",
10888
10899
  size: 13
10889
- })), p && x.createElement(ka, {
10900
+ })), p && x.createElement(Oa, {
10890
10901
  className: g("options-list"),
10891
10902
  options: a,
10892
10903
  onSelect: function (e) {
@@ -10977,6 +10988,28 @@ Ca.propTypes = {
10977
10988
  title: "",
10978
10989
  ariaLabel: void 0
10979
10990
  }, ka.propTypes = {
10991
+ className: T.string,
10992
+ focused: T.bool,
10993
+ onKeyDown: T.func,
10994
+ onMouseEnter: T.func,
10995
+ onSelect: T.func.isRequired,
10996
+ option: T.objectOf(T.shape({
10997
+ value: T.string,
10998
+ label: T.node,
10999
+ icon: T.string
11000
+ })).isRequired,
11001
+ sc: T.func,
11002
+ selected: T.string,
11003
+ tabIndex: T.number
11004
+ }, ka.defaultProps = {
11005
+ className: "",
11006
+ focused: void 0,
11007
+ onKeyDown: void 0,
11008
+ onMouseEnter: void 0,
11009
+ sc: void 0,
11010
+ selected: void 0,
11011
+ tabIndex: void 0
11012
+ }, Oa.propTypes = {
10980
11013
  className: T.string,
10981
11014
  onBlur: T.func,
10982
11015
  options: T.arrayOf(T.shape({
@@ -10987,13 +11020,13 @@ Ca.propTypes = {
10987
11020
  onSelect: T.func.isRequired,
10988
11021
  selected: T.string,
10989
11022
  tabIndex: T.number
10990
- }, ka.defaultProps = {
11023
+ }, Oa.defaultProps = {
10991
11024
  className: "",
10992
11025
  onBlur: void 0,
10993
11026
  options: [],
10994
11027
  selected: "",
10995
11028
  tabIndex: void 0
10996
- }, Oa.propTypes = {
11029
+ }, Da.propTypes = {
10997
11030
  className: T.string,
10998
11031
  value: T.string,
10999
11032
  options: T.arrayOf(T.shape({
@@ -11005,7 +11038,7 @@ Ca.propTypes = {
11005
11038
  tooltip: T.string,
11006
11039
  ariaLabel: T.string,
11007
11040
  tabIndex: T.number
11008
- }, Oa.defaultProps = {
11041
+ }, Da.defaultProps = {
11009
11042
  className: "",
11010
11043
  value: "",
11011
11044
  options: [],
@@ -11014,7 +11047,7 @@ Ca.propTypes = {
11014
11047
  ariaLabel: void 0,
11015
11048
  tabIndex: void 0
11016
11049
  };
11017
- var Da = {
11050
+ var Ma = {
11018
11051
  camera: {
11019
11052
  icon: "camera-bold",
11020
11053
  title: "Allow access to camera",
@@ -11037,19 +11070,19 @@ var Da = {
11037
11070
  }
11038
11071
  };
11039
11072
 
11040
- function Ma(e) {
11073
+ function Ta(e) {
11041
11074
  var t = e.className,
11042
11075
  n = e.logo,
11043
11076
  r = e.media,
11044
11077
  a = e.meetingID,
11045
11078
  i = e.style,
11046
- o = Da[r],
11079
+ o = Ma[r],
11047
11080
  s = Pe("media-access", t),
11048
11081
  c = _slicedToArray(s, 2),
11049
11082
  l = c[0],
11050
11083
  u = c[1],
11051
11084
  m = useContext(Rt),
11052
- p = Mn(a).ID;
11085
+ p = Dn(a).ID;
11053
11086
  return x.createElement("div", {
11054
11087
  className: l,
11055
11088
  style: i
@@ -11076,19 +11109,19 @@ function Ma(e) {
11076
11109
  }, o.buttonLabel));
11077
11110
  }
11078
11111
 
11079
- Ma.propTypes = {
11112
+ Ta.propTypes = {
11080
11113
  className: T.string,
11081
11114
  logo: T.node,
11082
11115
  media: T.oneOf(["camera", "microphone"]),
11083
11116
  meetingID: T.string.isRequired,
11084
11117
  style: T.shape()
11085
- }, Ma.defaultProps = {
11118
+ }, Ta.defaultProps = {
11086
11119
  className: "",
11087
11120
  logo: void 0,
11088
11121
  media: "camera",
11089
11122
  style: void 0
11090
11123
  };
11091
- var Ta = {
11124
+ var Pa = {
11092
11125
  JOIN: "join",
11093
11126
  CANCEL: "cancel",
11094
11127
  CLOSE: "ghost",
@@ -11096,7 +11129,7 @@ var Ta = {
11096
11129
  TOGGLE: "toggle"
11097
11130
  };
11098
11131
 
11099
- function Pa(e) {
11132
+ function La(e) {
11100
11133
  var t,
11101
11134
  n = e.asItem,
11102
11135
  r = e.autoFocus,
@@ -11105,7 +11138,7 @@ function Pa(e) {
11105
11138
  o = e.showText,
11106
11139
  s = e.style,
11107
11140
  c = e.tabIndex,
11108
- l = Tn(e.type, i),
11141
+ l = Mn(e.type, i),
11109
11142
  u = _slicedToArray(l, 2),
11110
11143
  m = u[0],
11111
11144
  p = u[1],
@@ -11121,7 +11154,7 @@ function Pa(e) {
11121
11154
  s = n.selected,
11122
11155
  c = n.tooltip,
11123
11156
  l = n.hint;
11124
- return x.createElement(Oa, {
11157
+ return x.createElement(Da, {
11125
11158
  className: e("control-select"),
11126
11159
  style: r,
11127
11160
  value: s || "",
@@ -11160,7 +11193,7 @@ function Pa(e) {
11160
11193
  className: e("item-button-text")
11161
11194
  }, u)) : x.createElement(Ea, {
11162
11195
  className: e("control-button"),
11163
- type: Ta[l] || "default",
11196
+ type: Pa[l] || "default",
11164
11197
  size: 48,
11165
11198
  isDisabled: d,
11166
11199
  onClick: t,
@@ -11180,7 +11213,7 @@ function Pa(e) {
11180
11213
  }, t);
11181
11214
  }
11182
11215
 
11183
- Pa.propTypes = {
11216
+ La.propTypes = {
11184
11217
  asItem: T.bool,
11185
11218
  autoFocus: T.bool,
11186
11219
  className: T.string,
@@ -11189,7 +11222,7 @@ Pa.propTypes = {
11189
11222
  style: T.shape(),
11190
11223
  tabIndex: T.number,
11191
11224
  type: T.string.isRequired
11192
- }, Pa.defaultProps = {
11225
+ }, La.defaultProps = {
11193
11226
  asItem: !1,
11194
11227
  autoFocus: !1,
11195
11228
  className: "",
@@ -11198,69 +11231,66 @@ Pa.propTypes = {
11198
11231
  tabIndex: void 0
11199
11232
  };
11200
11233
 
11201
- var La = function (e) {
11234
+ var Ia = function (e) {
11202
11235
  return !!e;
11203
11236
  };
11204
11237
 
11205
- function Ia(e) {
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 = Mn(i).state, u = xn(), m = _slicedToArray(u, 2), p = m[0], d = m[1].width, f = xn(), h = _slicedToArray(f, 2), v = h[0], g = h[1].width, y = l === V, C = Pe("meeting-control-bar", t), w = _slicedToArray(C, 2), D = w[0], M = w[1], T = a(y), P = s(y), L = T.length, I = useState(), S = _slicedToArray(I, 2), R = S[0], j = S[1], z = useState([0, 0]), A = _slicedToArray(z, 2), B = _slicedToArray(A[0], 2), H = B[0], q = B[1], U = A[1], Z = useState(!1), F = _slicedToArray(Z, 2), W = F[0], Y = F[1], G = [], _ = [], X = [], J = [], Q = 0; Q < 20; Q += 1) {
11207
- var K = xn(),
11208
- $ = _slicedToArray(K, 2),
11209
- ee = $[0],
11210
- te = $[1].width,
11211
- ne = xn(),
11212
- re = _slicedToArray(ne, 2),
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;
11238
+ function Sa(e) {
11239
+ 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 = En(u).width, d = En(m).width, f = l === V, h = Pe("meeting-control-bar", t), v = _slicedToArray(h, 2), g = v[0], y = v[1], C = a(f), w = s(f), D = C.length, M = useState(), T = _slicedToArray(M, 2), P = T[0], L = T[1], I = useState([0, 0]), S = _slicedToArray(I, 2), R = _slicedToArray(S[0], 2), j = R[0], z = R[1], A = S[1], B = useState(!1), H = _slicedToArray(B, 2), q = H[0], U = H[1], Z = [], F = [], W = [], Y = [], G = 0; G < 20; G += 1) {
11240
+ var _ = zn(),
11241
+ X = zn(),
11242
+ J = En(_).width,
11243
+ K = En(X).width,
11244
+ Q = G < D;
11245
+
11246
+ Z[G] = Q && _, F[G] = Q && X, W[G] = Q && J + 10, Y[G] = Q && K + 10;
11217
11247
  }
11218
11248
 
11219
11249
  useEffect(function () {
11220
- if (X.splice(L), J.splice(L), d && g && X.every(La) && J.every(La)) {
11221
- for (var e = J.reduce(function (e, t) {
11250
+ if (W.splice(D), Y.splice(D), p && d && W.every(Ia) && Y.every(Ia)) {
11251
+ for (var e = Y.reduce(function (e, t) {
11222
11252
  return e + t;
11223
- }, 0), t = J.map(function () {
11253
+ }, 0), t = Y.map(function () {
11224
11254
  return !0;
11225
- }), a = L - 1; a >= 0 && e > d; a -= 1) e -= J[a] - X[a], t[a] = !1;
11255
+ }), a = D - 1; a >= 0 && e > p; a -= 1) e -= Y[a] - W[a], t[a] = !1;
11226
11256
 
11227
- if (j(t), e <= d) U([0, 0]), Y(!1);else {
11228
- var i = (n + L) % L,
11229
- o = (r + L) % L;
11230
- e += g + 10;
11257
+ if (L(t), e <= p) A([0, 0]), U(!1);else {
11258
+ var i = (n + D) % D,
11259
+ o = (r + D) % D;
11260
+ e += d + 10;
11231
11261
 
11232
- for (var s = o, c = o - 1; c >= i && e > d; c -= 1) e -= X[c], s = c;
11262
+ for (var s = o, c = o - 1; c >= i && e > p; c -= 1) e -= W[c], s = c;
11233
11263
 
11234
- U([s, o]);
11264
+ A([s, o]);
11235
11265
  }
11236
11266
  }
11237
- }, [d, g, n, r, L].concat(X, J));
11267
+ }, [p, d, n, r, D].concat(W, Y));
11238
11268
 
11239
- var se,
11240
- ce = function (e, t) {
11269
+ var $,
11270
+ ee = function (e, t) {
11241
11271
  return function (e, t) {
11242
11272
  return Array(t - e).fill().map(function (t, n) {
11243
11273
  return e + n;
11244
11274
  });
11245
11275
  }(e, t).map(function (e) {
11246
- return x.createElement(Pa, {
11247
- key: T[e],
11248
- type: T[e],
11276
+ return x.createElement(La, {
11277
+ key: C[e],
11278
+ type: C[e],
11249
11279
  meetingID: i,
11250
- showText: R[e],
11251
- autoFocus: P[e] === Math.min.apply(Math, _toConsumableArray(P)) || !1,
11252
- tabIndex: P[e]
11280
+ showText: P[e],
11281
+ autoFocus: w[e] === Math.min.apply(Math, _toConsumableArray(w)) || !1,
11282
+ tabIndex: w[e]
11253
11283
  });
11254
11284
  });
11255
11285
  },
11256
- le = function () {
11257
- return Y(!W);
11286
+ te = function () {
11287
+ return U(!q);
11258
11288
  },
11259
- ue = function (e, t, n, r) {
11289
+ ne = function (e, t, n, r) {
11260
11290
  return x.createElement("div", {
11261
11291
  ref: n,
11262
11292
  key: "collapse-button",
11263
- className: M("collapse-button")
11293
+ className: y("collapse-button")
11264
11294
  }, x.createElement(Ea, {
11265
11295
  onClick: t,
11266
11296
  type: "toggle",
@@ -11273,65 +11303,65 @@ function Ia(e) {
11273
11303
  name: e ? "more-adr" : "more"
11274
11304
  })));
11275
11305
  },
11276
- me = function () {
11277
- return Y(!1);
11306
+ re = function () {
11307
+ return U(!1);
11278
11308
  };
11279
11309
 
11280
11310
  return useEffect(function () {
11281
11311
  var e;
11282
- return W && (setTimeout(function () {
11283
- return document.addEventListener("click", me);
11312
+ return q && (setTimeout(function () {
11313
+ return document.addEventListener("click", re);
11284
11314
  }), e = function () {
11285
- return document.removeEventListener("click", me);
11315
+ return document.removeEventListener("click", re);
11286
11316
  }), e;
11287
- }, [W]), x.createElement("div", {
11288
- ref: p,
11289
- className: D,
11317
+ }, [q]), x.createElement("div", {
11318
+ ref: u,
11319
+ className: g,
11290
11320
  style: o
11291
- }, W && (se = T.slice(H, q).map(function (e) {
11321
+ }, q && ($ = C.slice(j, z).map(function (e) {
11292
11322
  return {
11293
11323
  value: e,
11294
- label: x.createElement(Pa, {
11324
+ label: x.createElement(La, {
11295
11325
  key: e,
11296
11326
  type: e,
11297
11327
  meetingID: i,
11298
11328
  asItem: !0
11299
11329
  })
11300
11330
  };
11301
- }), x.createElement(ka, {
11302
- className: M("collapsed-controls"),
11303
- options: se,
11331
+ }), x.createElement(Oa, {
11332
+ className: y("collapsed-controls"),
11333
+ options: $,
11304
11334
  onSelect: function (e) {
11305
- c.meetingControls[e.value].action(i), le();
11335
+ c.meetingControls[e.value].action(i), te();
11306
11336
  },
11307
- tabIndex: P[H]
11308
- })), R && x.createElement("div", {
11309
- className: M("controls")
11310
- }, ce(0, H), H < q && ue(W, le, void 0, P[H]), ce(q, L)), x.createElement("div", {
11311
- className: "".concat(M("controls"), " ").concat(M("controls--control-refs")),
11337
+ tabIndex: w[j]
11338
+ })), P && x.createElement("div", {
11339
+ className: y("controls")
11340
+ }, ee(0, j), j < z && ne(q, te, void 0, w[j]), ee(z, D)), x.createElement("div", {
11341
+ className: "".concat(y("controls"), " ").concat(y("controls--control-refs")),
11312
11342
  "aria-hidden": "true"
11313
- }, T.map(function (e, t) {
11343
+ }, C.map(function (e, t) {
11314
11344
  return x.createElement(x.Fragment, {
11315
11345
  key: e
11316
11346
  }, x.createElement("div", {
11317
- ref: G[t],
11347
+ ref: Z[t],
11318
11348
  key: "icon"
11319
- }, x.createElement(Pa, {
11349
+ }, x.createElement(La, {
11320
11350
  type: e,
11321
11351
  meetingID: i,
11322
11352
  showText: !1
11323
11353
  })), x.createElement("div", {
11324
- ref: _[t],
11354
+ ref: F[t],
11325
11355
  key: "text"
11326
- }, x.createElement(Pa, {
11356
+ }, x.createElement(La, {
11327
11357
  type: e,
11328
11358
  meetingID: i,
11329
11359
  showText: !0
11330
11360
  })));
11331
- }), ue(W, function () {}, v)));
11361
+ }), ne(q, function () {}, m)));
11332
11362
  }
11333
11363
 
11334
- Ia.propTypes = {
11364
+ Sa.propTypes = {
11335
11365
  className: T.string,
11336
11366
  collapseRangeStart: T.number,
11337
11367
  collapseRangeEnd: T.number,
@@ -11339,7 +11369,7 @@ Ia.propTypes = {
11339
11369
  meetingID: T.string.isRequired,
11340
11370
  style: T.shape(),
11341
11371
  tabIndexes: T.func
11342
- }, Ia.defaultProps = {
11372
+ }, Sa.defaultProps = {
11343
11373
  className: "",
11344
11374
  collapseRangeStart: 0,
11345
11375
  collapseRangeEnd: -1,
@@ -11351,13 +11381,13 @@ Ia.propTypes = {
11351
11381
  },
11352
11382
  style: void 0
11353
11383
  };
11354
- var Sa = "Webex by Cisco logo",
11355
- Ra = "Your name appears in the participant list. Skip this optional field to use the name provided by the system.",
11356
- ja = "The password is provided in the invitation for a scheduled meeting, or from the host.",
11357
- za = "Start meeting. Start the meeting after entering the required information.",
11358
- Aa = "Click to go to a new screen where the meeting host can enter the host key.";
11384
+ var Ra = "Webex by Cisco logo",
11385
+ ja = "Your name appears in the participant list. Skip this optional field to use the name provided by the system.",
11386
+ za = "The password is provided in the invitation for a scheduled meeting, or from the host.",
11387
+ Aa = "Start meeting. Start the meeting after entering the required information.",
11388
+ Ba = "Click to go to a new screen where the meeting host can enter the host key.";
11359
11389
 
11360
- function Ba(e) {
11390
+ function Va(e) {
11361
11391
  var t = e.className,
11362
11392
  n = e.meetingID,
11363
11393
  r = e.style,
@@ -11374,7 +11404,7 @@ function Ba(e) {
11374
11404
  f = _slicedToArray(d, 2),
11375
11405
  h = f[0],
11376
11406
  v = f[1],
11377
- g = Mn(n),
11407
+ g = Dn(n),
11378
11408
  y = g.ID,
11379
11409
  C = g.invalidPassword,
11380
11410
  w = useState(!1),
@@ -11382,35 +11412,33 @@ function Ba(e) {
11382
11412
  O = E[0],
11383
11413
  D = E[1],
11384
11414
  M = useContext(Rt),
11385
- T = xn(),
11386
- P = _slicedToArray(T, 2),
11387
- L = P[0],
11388
- I = Pe("meeting-guest-authentication", t, {
11389
- phone: P[1].width <= 425
11415
+ T = zn(),
11416
+ P = Pe("meeting-guest-authentication", t, {
11417
+ phone: En(T).width <= 425
11390
11418
  }),
11391
- S = _slicedToArray(I, 2),
11392
- R = S[0],
11393
- j = S[1],
11394
- z = h || !m || C || O,
11395
- A = "Enter meeting information to join";
11419
+ L = _slicedToArray(P, 2),
11420
+ I = L[0],
11421
+ S = L[1],
11422
+ R = h || !m || C || O,
11423
+ j = "Enter meeting information to join";
11396
11424
  return x.createElement("div", {
11397
- ref: L,
11398
- className: R,
11425
+ ref: T,
11426
+ className: I,
11399
11427
  style: r
11400
11428
  }, x.createElement("div", {
11401
- className: j("header")
11429
+ className: S("header")
11402
11430
  }, x.createElement("div", {
11403
- className: j("logo"),
11404
- "aria-label": Sa
11431
+ className: S("logo"),
11432
+ "aria-label": Ra
11405
11433
  }), x.createElement("div", {
11406
- className: j("title"),
11407
- title: A
11408
- }, A)), x.createElement("form", {
11409
- className: j("form-content")
11434
+ className: S("title"),
11435
+ title: j
11436
+ }, j)), x.createElement("form", {
11437
+ className: S("form-content")
11410
11438
  }, x.createElement("label", {
11411
- className: j("label")
11439
+ className: S("label")
11412
11440
  }, x.createElement("span", {
11413
- className: j("label-text")
11441
+ className: S("label-text")
11414
11442
  }, "Your name"), x.createElement(xa, {
11415
11443
  type: "text",
11416
11444
  name: "name",
@@ -11423,13 +11451,13 @@ function Ba(e) {
11423
11451
  },
11424
11452
  disabled: O,
11425
11453
  error: h,
11426
- ariaLabel: Ra,
11454
+ ariaLabel: ja,
11427
11455
  autoFocus: !0,
11428
11456
  tabIndex: 101
11429
11457
  })), x.createElement("label", {
11430
- className: j("label")
11458
+ className: S("label")
11431
11459
  }, x.createElement("span", {
11432
- className: j("label-text")
11460
+ className: S("label-text")
11433
11461
  }, "Meeting password (required)"), x.createElement(xa, {
11434
11462
  type: "password",
11435
11463
  name: "password",
@@ -11439,11 +11467,11 @@ function Ba(e) {
11439
11467
  },
11440
11468
  disabled: O,
11441
11469
  error: C ? "Incorrect password. Try again." : "",
11442
- ariaLabel: ja,
11470
+ ariaLabel: za,
11443
11471
  tabIndex: 102
11444
11472
  })), x.createElement(Ea, {
11445
11473
  type: "primary",
11446
- className: j("start-button"),
11474
+ className: S("start-button"),
11447
11475
  size: 28,
11448
11476
  onClick: function () {
11449
11477
  D(!0), M.meetingsAdapter.joinMeeting(y, {
@@ -11453,40 +11481,40 @@ function Ba(e) {
11453
11481
  return D(!1);
11454
11482
  });
11455
11483
  },
11456
- isDisabled: z,
11457
- ariaLabel: za,
11484
+ isDisabled: R,
11485
+ ariaLabel: Aa,
11458
11486
  tabIndex: 103
11459
11487
  }, O && x.createElement(ca, {
11460
- className: j("start-button-spinner"),
11488
+ className: S("start-button-spinner"),
11461
11489
  size: 16
11462
11490
  }), O ? "Starting meeting..." : "Start meeting")), x.createElement("div", {
11463
- className: j("host-text")
11491
+ className: S("host-text")
11464
11492
  }, "Hosting the meeting?", " ", x.createElement("a", {
11465
11493
  href: "#",
11466
11494
  tabIndex: 104,
11467
- className: j("host-hyperlink"),
11495
+ className: S("host-hyperlink"),
11468
11496
  onClick: function (e) {
11469
11497
  e.preventDefault(), a();
11470
11498
  },
11471
- "aria-label": Aa
11499
+ "aria-label": Ba
11472
11500
  }, "Enter host key.")));
11473
11501
  }
11474
11502
 
11475
- Ba.propTypes = {
11503
+ Va.propTypes = {
11476
11504
  className: T.string,
11477
11505
  meetingID: T.string.isRequired,
11478
11506
  style: T.shape(),
11479
11507
  switchToHostModal: T.func
11480
- }, Ba.defaultProps = {
11508
+ }, Va.defaultProps = {
11481
11509
  className: "",
11482
11510
  style: void 0,
11483
11511
  switchToHostModal: void 0
11484
11512
  };
11485
- var Va = "Webex by Cisco logo",
11486
- Ha = "The host key is generated when a meeting is scheduled.",
11487
- qa = "Start meeting. Start the meeting for all participants after entering the required information.";
11513
+ var Ha = "Webex by Cisco logo",
11514
+ qa = "The host key is generated when a meeting is scheduled.",
11515
+ Ua = "Start meeting. Start the meeting for all participants after entering the required information.";
11488
11516
 
11489
- function Ua(e) {
11517
+ function Za(e) {
11490
11518
  var t = e.className,
11491
11519
  n = e.meetingID,
11492
11520
  r = e.style,
@@ -11494,7 +11522,7 @@ function Ua(e) {
11494
11522
  i = _slicedToArray(a, 2),
11495
11523
  o = i[0],
11496
11524
  s = i[1],
11497
- c = Mn(n),
11525
+ c = Dn(n),
11498
11526
  l = c.ID,
11499
11527
  u = c.invalidHostKey,
11500
11528
  m = useState(!1),
@@ -11502,38 +11530,36 @@ function Ua(e) {
11502
11530
  d = p[0],
11503
11531
  f = p[1],
11504
11532
  h = useContext(Rt),
11505
- v = xn(),
11506
- g = _slicedToArray(v, 2),
11507
- y = g[0],
11508
- C = Pe("meeting-host-authentication", t, {
11509
- phone: g[1].width <= 425
11533
+ v = zn(),
11534
+ g = Pe("meeting-host-authentication", t, {
11535
+ phone: En(v).width <= 425
11510
11536
  }),
11511
- w = _slicedToArray(C, 2),
11512
- E = w[0],
11513
- O = w[1],
11514
- D = !o || u || d,
11515
- M = "Enter host information to join";
11537
+ y = _slicedToArray(g, 2),
11538
+ C = y[0],
11539
+ w = y[1],
11540
+ E = !o || u || d,
11541
+ O = "Enter host information to join";
11516
11542
  return x.createElement("div", {
11517
- ref: y,
11518
- className: E,
11543
+ ref: v,
11544
+ className: C,
11519
11545
  style: r
11520
11546
  }, x.createElement("div", {
11521
- className: O("header")
11547
+ className: w("header")
11522
11548
  }, x.createElement("div", {
11523
- className: O("logo"),
11524
- "aria-label": Va
11549
+ className: w("logo"),
11550
+ "aria-label": Ha
11525
11551
  }), x.createElement("div", {
11526
- className: O("title"),
11527
- title: M
11528
- }, M)), x.createElement("form", {
11529
- className: O("form-content"),
11552
+ className: w("title"),
11553
+ title: O
11554
+ }, O)), x.createElement("form", {
11555
+ className: w("form-content"),
11530
11556
  onSubmit: function (e) {
11531
11557
  e.preventDefault();
11532
11558
  }
11533
11559
  }, x.createElement("label", {
11534
- className: O("label")
11560
+ className: w("label")
11535
11561
  }, x.createElement("span", {
11536
- className: O("label-text")
11562
+ className: w("label-text")
11537
11563
  }, "Host key (required)"), x.createElement(xa, {
11538
11564
  type: "password",
11539
11565
  name: "password",
@@ -11543,12 +11569,12 @@ function Ua(e) {
11543
11569
  s(e), h.meetingsAdapter.clearInvalidHostKeyFlag(l);
11544
11570
  },
11545
11571
  error: u ? "Incorrect host key. Try again." : "",
11546
- ariaLabel: Ha,
11572
+ ariaLabel: qa,
11547
11573
  autoFocus: !0,
11548
11574
  tabIndex: 101
11549
11575
  })), x.createElement(Ea, {
11550
11576
  type: "primary",
11551
- className: O("start-button"),
11577
+ className: w("start-button"),
11552
11578
  size: 28,
11553
11579
  onClick: function () {
11554
11580
  f(!0), h.meetingsAdapter.joinMeeting(l, {
@@ -11557,16 +11583,16 @@ function Ua(e) {
11557
11583
  return f(!1);
11558
11584
  });
11559
11585
  },
11560
- isDisabled: D,
11561
- ariaLabel: qa,
11586
+ isDisabled: E,
11587
+ ariaLabel: Ua,
11562
11588
  tabIndex: 102
11563
11589
  }, d && x.createElement(ca, {
11564
- className: O("start-button-spinner"),
11590
+ className: w("start-button-spinner"),
11565
11591
  size: 16
11566
11592
  }), d ? "Starting meeting..." : "Start meeting")));
11567
11593
  }
11568
11594
 
11569
- function Za(e) {
11595
+ function Fa(e) {
11570
11596
  var t,
11571
11597
  n = e.className,
11572
11598
  r = e.destinationID,
@@ -11578,11 +11604,11 @@ function Za(e) {
11578
11604
  l = c.displayName,
11579
11605
  u = c.orgID,
11580
11606
  m = c.emails,
11581
- p = Nn(),
11582
- d = Rn(r, a).find(function (e) {
11607
+ p = xn(),
11608
+ d = Sn(r, a).find(function (e) {
11583
11609
  return e.ID === o;
11584
11610
  }),
11585
- f = zn(u),
11611
+ f = jn(u),
11586
11612
  h = null == d ? void 0 : d.muted,
11587
11613
  v = null == d ? void 0 : d.speaking,
11588
11614
  g = void 0 !== u && void 0 !== p.orgID && p.orgID !== u,
@@ -11633,14 +11659,14 @@ function Za(e) {
11633
11659
  }));
11634
11660
  }
11635
11661
 
11636
- function Fa(e) {
11662
+ function Wa(e) {
11637
11663
  var t = e.className,
11638
11664
  n = e.destinationID,
11639
11665
  r = e.destinationType,
11640
11666
  a = e.style,
11641
11667
  i = e.onClose,
11642
- o = Rn(n, r),
11643
- s = Nn().orgID,
11668
+ o = Sn(n, r),
11669
+ s = xn().orgID,
11644
11670
  c = Pe("member-roster", t),
11645
11671
  l = _slicedToArray(c, 2),
11646
11672
  u = l[0],
@@ -11648,7 +11674,7 @@ function Fa(e) {
11648
11674
  p = function (e) {
11649
11675
  return e.map(function (e) {
11650
11676
  var t = e.ID;
11651
- return x.createElement(Za, {
11677
+ return x.createElement(Fa, {
11652
11678
  destinationType: r,
11653
11679
  destinationID: n,
11654
11680
  personID: t,
@@ -11699,7 +11725,7 @@ function Fa(e) {
11699
11725
  }), "Not in the meeting"))));
11700
11726
  }
11701
11727
 
11702
- function Wa(e) {
11728
+ function Ya(e) {
11703
11729
  var t = e.className,
11704
11730
  n = e.onSelect,
11705
11731
  r = e.selected,
@@ -11751,107 +11777,107 @@ function Wa(e) {
11751
11777
  }, s()));
11752
11778
  }
11753
11779
 
11754
- Ua.propTypes = {
11780
+ Za.propTypes = {
11755
11781
  className: T.string,
11756
11782
  meetingID: T.string.isRequired,
11757
11783
  style: T.shape()
11758
- }, Ua.defaultProps = {
11784
+ }, Za.defaultProps = {
11759
11785
  className: "",
11760
11786
  style: void 0
11761
- }, Za.propTypes = {
11787
+ }, Fa.propTypes = {
11762
11788
  className: T.string,
11763
11789
  destinationID: T.string.isRequired,
11764
11790
  destinationType: T.string.isRequired,
11765
11791
  displayStatus: T.bool,
11766
11792
  personID: T.string.isRequired,
11767
11793
  style: T.shape()
11768
- }, Za.defaultProps = {
11794
+ }, Fa.defaultProps = {
11769
11795
  className: "",
11770
11796
  displayStatus: !1,
11771
11797
  style: void 0
11772
- }, Fa.propTypes = {
11798
+ }, Wa.propTypes = {
11773
11799
  className: T.string,
11774
11800
  destinationID: T.string.isRequired,
11775
11801
  destinationType: T.string.isRequired,
11776
11802
  style: T.shape(),
11777
11803
  onClose: T.func
11778
- }, Fa.defaultProps = {
11804
+ }, Wa.defaultProps = {
11779
11805
  className: "",
11780
11806
  style: void 0,
11781
11807
  onClose: void 0
11782
- }, Wa.propTypes = {
11808
+ }, Ya.propTypes = {
11783
11809
  className: T.string,
11784
11810
  onSelect: T.func.isRequired,
11785
11811
  selected: T.string.isRequired,
11786
11812
  style: T.shape(),
11787
11813
  tabs: T.arrayOf(T.object).isRequired,
11788
11814
  tabIndex: T.number
11789
- }, Wa.defaultProps = {
11815
+ }, Ya.defaultProps = {
11790
11816
  className: "",
11791
11817
  style: void 0,
11792
11818
  tabIndex: -1
11793
11819
  };
11794
- var Ya = Pe("no-media"),
11795
- Ga = _slicedToArray(Ya, 2)[1],
11796
- _a = {
11820
+ var Ga = Pe("no-media"),
11821
+ _a = _slicedToArray(Ga, 2)[1],
11822
+ Xa = {
11797
11823
  microphone: {
11798
11824
  icon: "microphone-issue",
11799
11825
  title: "Can't access microphone",
11800
11826
  message: x.createElement(x.Fragment, null, x.createElement("p", {
11801
- className: Ga("indications")
11827
+ className: _a("indications")
11802
11828
  }, "Reload this page and select ", x.createElement("b", {
11803
- className: Ga("accent")
11829
+ className: _a("accent")
11804
11830
  }, "Allow"), " when your browser asks."), x.createElement("p", {
11805
- className: Ga("indications")
11831
+ className: _a("indications")
11806
11832
  }, x.createElement("div", null, x.createElement("b", {
11807
- className: Ga("accent")
11833
+ className: _a("accent")
11808
11834
  }, "Still not working?")), "You may need to update your webpage permissions. Go to your ", x.createElement("b", {
11809
- className: Ga("accent")
11835
+ className: _a("accent")
11810
11836
  }, "browser settings"), ", look for website settings, select ", x.createElement("b", {
11811
- className: Ga("accent")
11837
+ className: _a("accent")
11812
11838
  }, "Allow for Microphone"), ", then reload this page."))
11813
11839
  },
11814
11840
  camera: {
11815
11841
  icon: "camera-issue",
11816
11842
  title: "Can't access camera",
11817
11843
  message: x.createElement(x.Fragment, null, x.createElement("p", {
11818
- className: Ga("indications")
11844
+ className: _a("indications")
11819
11845
  }, "Reload this page and select ", x.createElement("b", {
11820
- className: Ga("accent")
11846
+ className: _a("accent")
11821
11847
  }, "Allow"), " when your browser asks."), x.createElement("p", {
11822
- className: Ga("indications")
11848
+ className: _a("indications")
11823
11849
  }, x.createElement("div", null, x.createElement("b", {
11824
- className: Ga("accent")
11850
+ className: _a("accent")
11825
11851
  }, "Still not working?")), "You may need to update your webpage permissions. Go to your ", x.createElement("b", {
11826
- className: Ga("accent")
11852
+ className: _a("accent")
11827
11853
  }, "browser settings"), ", look for website settings, select ", x.createElement("b", {
11828
- className: Ga("accent")
11854
+ className: _a("accent")
11829
11855
  }, "Allow for Camera"), ", then reload this page."))
11830
11856
  }
11831
11857
  };
11832
11858
 
11833
- function Xa(e) {
11859
+ function Ja(e) {
11834
11860
  var t = e.className,
11835
11861
  n = e.style,
11836
11862
  r = e.media,
11837
11863
  a = Pe("no-media", t),
11838
11864
  i = _slicedToArray(a, 1)[0],
11839
- o = _a[r];
11865
+ o = Xa[r];
11840
11866
  return x.createElement("div", {
11841
11867
  className: i,
11842
11868
  style: n
11843
11869
  }, x.createElement(It, {
11844
- className: Ga("icon-media-issue"),
11870
+ className: _a("icon-media-issue"),
11845
11871
  name: o.icon
11846
11872
  }), x.createElement(ma, {
11847
11873
  type: "subsection",
11848
- className: Ga("title")
11874
+ className: _a("title")
11849
11875
  }, o.title), x.createElement("div", {
11850
- className: Ga("body")
11876
+ className: _a("body")
11851
11877
  }, o.message));
11852
11878
  }
11853
11879
 
11854
- function Ja(e) {
11880
+ function Ka(e) {
11855
11881
  var t,
11856
11882
  n = e.className,
11857
11883
  r = e.meetingID,
@@ -11860,24 +11886,24 @@ function Ja(e) {
11860
11886
  o = _slicedToArray(i, 2),
11861
11887
  s = o[0],
11862
11888
  c = o[1],
11863
- l = Tn("switch-microphone", r),
11889
+ l = Mn("switch-microphone", r),
11864
11890
  u = _slicedToArray(l, 2)[1];
11865
11891
  return x.createElement("div", {
11866
11892
  className: s,
11867
11893
  style: a
11868
11894
  }, 0 !== (null === (t = u.options) || void 0 === t ? void 0 : t.length) ? x.createElement(x.Fragment, null, x.createElement(ma, {
11869
11895
  type: "subsection"
11870
- }, "Speaker"), x.createElement(Pa, {
11896
+ }, "Speaker"), x.createElement(La, {
11871
11897
  type: "switch-speaker",
11872
11898
  meetingID: r,
11873
11899
  tabIndex: 102
11874
11900
  }), x.createElement(ma, {
11875
11901
  type: "subsection"
11876
- }, "Microphone"), x.createElement(Pa, {
11902
+ }, "Microphone"), x.createElement(La, {
11877
11903
  type: "switch-microphone",
11878
11904
  meetingID: r,
11879
11905
  tabIndex: 103
11880
- })) : x.createElement(Xa, {
11906
+ })) : x.createElement(Ja, {
11881
11907
  media: "microphone",
11882
11908
  className: c("no-media")
11883
11909
  }));
@@ -11892,14 +11918,14 @@ function Qa(e) {
11892
11918
  o = _slicedToArray(i, 2),
11893
11919
  s = o[0],
11894
11920
  c = o[1],
11895
- l = Tn("switch-camera", n),
11921
+ l = Mn("switch-camera", n),
11896
11922
  u = _slicedToArray(l, 2)[1];
11897
11923
  return x.createElement("div", {
11898
11924
  className: s,
11899
11925
  style: a
11900
11926
  }, 0 !== (null === (t = u.options) || void 0 === t ? void 0 : t.length) ? x.createElement(x.Fragment, null, x.createElement(ma, {
11901
11927
  type: "subsection"
11902
- }, "Camera"), x.createElement(Pa, {
11928
+ }, "Camera"), x.createElement(La, {
11903
11929
  type: "switch-camera",
11904
11930
  meetingID: n,
11905
11931
  tabIndex: 102
@@ -11910,13 +11936,13 @@ function Qa(e) {
11910
11936
  meetingID: n
11911
11937
  }), x.createElement(oa, {
11912
11938
  type: "bottom"
11913
- }, "Preview"))) : x.createElement(Xa, {
11939
+ }, "Preview"))) : x.createElement(Ja, {
11914
11940
  media: "camera",
11915
11941
  className: c("no-media")
11916
11942
  }));
11917
11943
  }
11918
11944
 
11919
- function Ka(e) {
11945
+ function $a(e) {
11920
11946
  var t = e.meetingID,
11921
11947
  n = e.className,
11922
11948
  r = e.style,
@@ -11930,7 +11956,7 @@ function Ka(e) {
11930
11956
  key: "audio",
11931
11957
  heading: "Audio",
11932
11958
  content: function () {
11933
- return x.createElement(Ja, {
11959
+ return x.createElement(Ka, {
11934
11960
  meetingID: t
11935
11961
  });
11936
11962
  },
@@ -11948,7 +11974,7 @@ function Ka(e) {
11948
11974
  return x.createElement("div", {
11949
11975
  className: i,
11950
11976
  style: r
11951
- }, x.createElement(Wa, {
11977
+ }, x.createElement(Ya, {
11952
11978
  tabs: u,
11953
11979
  selected: c,
11954
11980
  onSelect: l,
@@ -11956,7 +11982,7 @@ function Ka(e) {
11956
11982
  }));
11957
11983
  }
11958
11984
 
11959
- function $a(e) {
11985
+ function ei(e) {
11960
11986
  var t = e.className,
11961
11987
  n = e.meetingID,
11962
11988
  r = e.style,
@@ -11965,7 +11991,7 @@ function $a(e) {
11965
11991
  o = i[0],
11966
11992
  s = i[1],
11967
11993
  c = useContext(Rt),
11968
- l = Mn(n).ID;
11994
+ l = Dn(n).ID;
11969
11995
  return x.createElement("div", {
11970
11996
  className: o,
11971
11997
  style: r
@@ -11998,7 +12024,7 @@ function $a(e) {
11998
12024
  }));
11999
12025
  }
12000
12026
 
12001
- function ei(e) {
12027
+ function ti(e) {
12002
12028
  var t = e.className,
12003
12029
  n = e.controls,
12004
12030
  r = e.controlsCollapseRangeStart,
@@ -12007,7 +12033,7 @@ function ei(e) {
12007
12033
  o = e.logo,
12008
12034
  s = e.meetingID,
12009
12035
  c = e.style,
12010
- l = Mn(s),
12036
+ l = Dn(s),
12011
12037
  u = l.ID,
12012
12038
  m = l.localAudio,
12013
12039
  p = l.localVideo,
@@ -12019,59 +12045,55 @@ function ei(e) {
12019
12045
  y = B,
12020
12046
  C = H,
12021
12047
  w = useContext(Rt),
12022
- E = xn(),
12023
- D = _slicedToArray(E, 2),
12024
- M = D[0],
12025
- T = D[1].width,
12026
- P = Pe("meeting", t, {
12027
- "roster-only": f && T <= 425
12048
+ E = zn(),
12049
+ D = En(E).width,
12050
+ M = Pe("meeting", t, {
12051
+ "roster-only": f && D <= 425
12028
12052
  }),
12029
- L = _slicedToArray(P, 2),
12030
- I = L[0],
12031
- S = L[1],
12032
- R = useState(!1),
12033
- j = _slicedToArray(R, 2),
12034
- z = j[0],
12035
- A = j[1],
12036
- q = En(),
12037
- Z = useState("guest"),
12038
- F = _slicedToArray(Z, 2),
12039
- W = F[0],
12040
- Y = F[1];
12053
+ T = _slicedToArray(M, 2),
12054
+ P = T[0],
12055
+ L = T[1],
12056
+ I = useState(!1),
12057
+ S = _slicedToArray(I, 2),
12058
+ R = S[0],
12059
+ j = S[1],
12060
+ z = zn(),
12061
+ A = useState("guest"),
12062
+ q = _slicedToArray(A, 2),
12063
+ Z = q[0],
12064
+ F = q[1];
12041
12065
  useEffect(function () {
12042
- return d && d !== C && (A(!0), q.current = setTimeout(function () {
12043
- A(!1);
12066
+ return d && d !== C && (j(!0), z.current = setTimeout(function () {
12067
+ j(!1);
12044
12068
  }, 3e3)), function () {
12045
- return clearTimeout(q.current);
12069
+ return clearTimeout(z.current);
12046
12070
  };
12047
12071
  }, [m.stream, p.stream, d, C]);
12048
-
12049
- var G,
12050
- _ = "".concat(m.stream ? "Unmuted" : "Muted", ", ").concat(p.stream ? "Camera on" : "Camera off");
12051
-
12072
+ var W,
12073
+ Y = "".concat(m.stream ? "Unmuted" : "Muted", ", ").concat(p.stream ? "Camera on" : "Camera off");
12052
12074
  if (d) {
12053
- if (d === C) G = x.createElement(ma, {
12075
+ if (d === C) W = x.createElement(ma, {
12054
12076
  type: "subsection",
12055
- className: S("centered")
12077
+ className: L("centered")
12056
12078
  }, "You've successfully left the meeting");else {
12057
- var X;
12058
- X = d === g ? da : d === y ? ha : $a, G = x.createElement(x.Fragment, null, x.createElement("div", {
12059
- className: S("body")
12060
- }, x.createElement(X, {
12079
+ var G;
12080
+ G = d === g ? da : d === y ? ha : ei, W = x.createElement(x.Fragment, null, x.createElement("div", {
12081
+ className: L("body")
12082
+ }, x.createElement(G, {
12061
12083
  meetingID: u,
12062
- className: S("inner-meeting")
12063
- }), f && x.createElement(Fa, {
12084
+ className: L("inner-meeting")
12085
+ }), f && x.createElement(Wa, {
12064
12086
  destinationID: u,
12065
12087
  destinationType: U,
12066
- className: S("member-roster"),
12088
+ className: L("member-roster"),
12067
12089
  onClose: function () {
12068
12090
  return w.meetingsAdapter.toggleRoster(u);
12069
12091
  }
12070
- }), z && x.createElement(ua, {
12071
- className: S("media-state-toast")
12072
- }, _)), x.createElement(Ia, {
12092
+ }), R && x.createElement(ua, {
12093
+ className: L("media-state-toast")
12094
+ }, Y)), x.createElement(Sa, {
12073
12095
  meetingID: u,
12074
- className: S("control-bar"),
12096
+ className: L("control-bar"),
12075
12097
  controls: n,
12076
12098
  collapseRangeStart: r,
12077
12099
  collapseRangeEnd: a,
@@ -12080,46 +12102,46 @@ function ei(e) {
12080
12102
  onClose: function () {
12081
12103
  return w.meetingsAdapter.toggleSettings(u);
12082
12104
  },
12083
- otherClassName: S("settings"),
12105
+ otherClassName: L("settings"),
12084
12106
  title: "Settings",
12085
12107
  ariaLabel: "Meeting settings window"
12086
- }, x.createElement(Ka, {
12108
+ }, x.createElement($a, {
12087
12109
  meetingID: u
12088
12110
  })), v && d === y && x.createElement(Na, {
12089
12111
  onClose: function () {
12090
12112
  return w.meetingsAdapter.clearPasswordRequiredFlag(u);
12091
12113
  },
12092
- otherClassName: [S("authentication")],
12093
- onBack: "host" === W && function () {
12094
- return Y("guest");
12114
+ otherClassName: [L("authentication")],
12115
+ onBack: "host" === Z && function () {
12116
+ return F("guest");
12095
12117
  },
12096
- ariaLabel: "guest" === W ? "Meeting guest authentication" : "Meeting host authentication"
12097
- }, "guest" === W ? x.createElement(Ba, {
12118
+ ariaLabel: "guest" === Z ? "Meeting guest authentication" : "Meeting host authentication"
12119
+ }, "guest" === Z ? x.createElement(Va, {
12098
12120
  meetingID: u,
12099
- className: S("authentication-guest"),
12121
+ className: L("authentication-guest"),
12100
12122
  switchToHostModal: function () {
12101
- return Y("host");
12123
+ return F("host");
12102
12124
  }
12103
- }) : x.createElement(Ua, {
12125
+ }) : x.createElement(Za, {
12104
12126
  meetingID: u,
12105
- className: S("authentication-host")
12127
+ className: L("authentication-host")
12106
12128
  })));
12107
12129
  }
12108
- } else G = x.createElement("div", {
12109
- className: S("loading-logo")
12130
+ } else W = x.createElement("div", {
12131
+ className: L("loading-logo")
12110
12132
  });
12111
12133
  return x.createElement("div", {
12112
- className: I,
12134
+ className: P,
12113
12135
  style: c,
12114
- ref: M
12136
+ ref: E
12115
12137
  }, o && x.createElement("div", {
12116
- className: S("logo")
12117
- }, o), G);
12138
+ className: L("logo")
12139
+ }, o), W);
12118
12140
  }
12119
12141
 
12120
- function ti(e) {
12142
+ function ni(e) {
12121
12143
  function t(t) {
12122
- var n = Sn(t.meetingDestination);
12144
+ var n = In(t.meetingDestination);
12123
12145
  return x.createElement(e, _extends({
12124
12146
  meeting: n
12125
12147
  }, t));
@@ -12130,7 +12152,7 @@ function ti(e) {
12130
12152
  }, t;
12131
12153
  }
12132
12154
 
12133
- function ni(e, t) {
12155
+ function ri(e, t) {
12134
12156
  var n = Object.keys(e);
12135
12157
 
12136
12158
  if (Object.getOwnPropertySymbols) {
@@ -12143,12 +12165,12 @@ function ni(e, t) {
12143
12165
  return n;
12144
12166
  }
12145
12167
 
12146
- function ri(e) {
12168
+ function ai(e) {
12147
12169
  for (var t = 1; t < arguments.length; t++) {
12148
12170
  var n = null != arguments[t] ? arguments[t] : {};
12149
- t % 2 ? ni(Object(n), !0).forEach(function (t) {
12171
+ t % 2 ? ri(Object(n), !0).forEach(function (t) {
12150
12172
  _defineProperty(e, t, n[t]);
12151
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ni(Object(n)).forEach(function (t) {
12173
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ri(Object(n)).forEach(function (t) {
12152
12174
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
12153
12175
  });
12154
12176
  }
@@ -12156,7 +12178,7 @@ function ri(e) {
12156
12178
  return e;
12157
12179
  }
12158
12180
 
12159
- function ai(e, t) {
12181
+ function ii(e, t) {
12160
12182
  function n(n) {
12161
12183
  var r = useState(!1),
12162
12184
  a = _slicedToArray(r, 2),
@@ -12214,7 +12236,7 @@ function ai(e, t) {
12214
12236
  }();
12215
12237
  }), e;
12216
12238
  }, [l]);
12217
- var d = ri(ri({}, n), {}, {
12239
+ var d = ai(ai({}, n), {}, {
12218
12240
  adapterConnected: i
12219
12241
  }),
12220
12242
  f = x.createElement(e, d);
@@ -12227,18 +12249,18 @@ function ai(e, t) {
12227
12249
  return n.displayName = "WithAdapter(".concat((r = e).displayName || r.name || "Component", ")"), n;
12228
12250
  }
12229
12251
 
12230
- Xa.propTypes = {
12252
+ Ja.propTypes = {
12231
12253
  className: T.string,
12232
12254
  style: T.shape(),
12233
12255
  media: T.oneOf(["camera", "microphone"]).isRequired
12234
- }, Xa.defaultProps = {
12256
+ }, Ja.defaultProps = {
12235
12257
  className: void 0,
12236
12258
  style: void 0
12237
- }, Ja.propTypes = {
12259
+ }, Ka.propTypes = {
12238
12260
  className: T.string,
12239
12261
  meetingID: T.string.isRequired,
12240
12262
  style: T.shape()
12241
- }, Ja.defaultProps = {
12263
+ }, Ka.defaultProps = {
12242
12264
  className: "",
12243
12265
  style: void 0
12244
12266
  }, Qa.propTypes = {
@@ -12248,21 +12270,21 @@ Xa.propTypes = {
12248
12270
  }, Qa.defaultProps = {
12249
12271
  className: "",
12250
12272
  style: void 0
12251
- }, Ka.propTypes = {
12273
+ }, $a.propTypes = {
12252
12274
  className: T.string,
12253
12275
  meetingID: T.string.isRequired,
12254
12276
  style: T.shape()
12255
- }, Ka.defaultProps = {
12277
+ }, $a.defaultProps = {
12256
12278
  className: "",
12257
12279
  style: void 0
12258
- }, $a.propTypes = {
12280
+ }, ei.propTypes = {
12259
12281
  className: T.string,
12260
12282
  meetingID: T.string.isRequired,
12261
12283
  style: T.shape()
12262
- }, $a.defaultProps = {
12284
+ }, ei.defaultProps = {
12263
12285
  className: "",
12264
12286
  style: void 0
12265
- }, ei.propTypes = {
12287
+ }, ti.propTypes = {
12266
12288
  className: T.string,
12267
12289
  controls: T.func,
12268
12290
  controlsCollapseRangeStart: T.number,
@@ -12271,7 +12293,7 @@ Xa.propTypes = {
12271
12293
  logo: T.node,
12272
12294
  meetingID: T.string,
12273
12295
  style: T.shape()
12274
- }, ei.defaultProps = {
12296
+ }, ti.defaultProps = {
12275
12297
  className: "",
12276
12298
  controls: function (e) {
12277
12299
  return e ? ["mute-audio", "mute-video", "share-screen", "member-roster", "settings", "leave-meeting"] : ["mute-audio", "mute-video", "settings", "join-meeting"];
@@ -14341,16 +14363,21 @@ class MeetingsSDKAdapter extends d {
14341
14363
  };
14342
14364
 
14343
14365
  if (meeting.state === s.JOINED) {
14344
- await sdkMeeting.updateVideo({
14345
- stream: meeting.settings.preview.video,
14346
- receiveVideo: mediaSettings.receiveVideo,
14347
- sendVideo: mediaSettings.sendVideo
14348
- });
14349
- await sdkMeeting.updateAudio({
14350
- stream: meeting.settings.preview.audio,
14351
- receiveAudio: mediaSettings.receiveAudio,
14352
- sendAudio: mediaSettings.sendAudio
14353
- });
14366
+ if (meeting.settings.preview.video) {
14367
+ await sdkMeeting.updateVideo({
14368
+ stream: meeting.settings.preview.video,
14369
+ receiveVideo: mediaSettings.receiveVideo,
14370
+ sendVideo: mediaSettings.sendVideo
14371
+ });
14372
+ }
14373
+
14374
+ if (meeting.settings.preview.audio) {
14375
+ await sdkMeeting.updateAudio({
14376
+ stream: meeting.settings.preview.audio,
14377
+ receiveAudio: mediaSettings.receiveAudio,
14378
+ sendAudio: mediaSettings.sendAudio
14379
+ });
14380
+ }
14354
14381
  }
14355
14382
  }
14356
14383
 
@@ -15082,7 +15109,7 @@ var defineProperty = defineProperty$1;
15082
15109
  })(constants);
15083
15110
 
15084
15111
  var name = "@webex/sdk-component-adapter";
15085
- var version = "1.91.0";
15112
+ var version = "1.91.1";
15086
15113
  const LOG_ARGS$1 = ['SDK-MEMBERSHIPS', `${name}-${version}`]; // max parameter value must be greater than 0 and less than or equal to 1000
15087
15114
 
15088
15115
  const MAX_MEMBERSHIPS = 1000; // TODO: Figure out how to import JS Doc definitions and remove duplication.
@@ -16060,21 +16087,21 @@ var WebexMeetingWidget = /*#__PURE__*/function (_Component) {
16060
16087
  var content;
16061
16088
 
16062
16089
  if (audioPermission === 'ASKING') {
16063
- content = /*#__PURE__*/x.createElement(Ma, {
16090
+ content = /*#__PURE__*/x.createElement(Ta, {
16064
16091
  className: "webex-meeting-widget__content",
16065
16092
  meetingID: meeting.ID,
16066
16093
  media: "microphone",
16067
16094
  logo: logo
16068
16095
  });
16069
16096
  } else if (videoPermission === 'ASKING') {
16070
- content = /*#__PURE__*/x.createElement(Ma, {
16097
+ content = /*#__PURE__*/x.createElement(Ta, {
16071
16098
  className: "webex-meeting-widget__content",
16072
16099
  meetingID: meeting.ID,
16073
16100
  media: "camera",
16074
16101
  logo: logo
16075
16102
  });
16076
16103
  } else {
16077
- content = /*#__PURE__*/x.createElement(ei, {
16104
+ content = /*#__PURE__*/x.createElement(ti, {
16078
16105
  className: "webex-meeting-widget__content",
16079
16106
  meetingID: meeting.ID,
16080
16107
  logo: logo,
@@ -16111,14 +16138,14 @@ WebexMeetingWidget.defaultProps = {
16111
16138
  style: {}
16112
16139
  };
16113
16140
  var appName = process.env.NODE_ENV === 'production' ? 'webex-widgets-meeting' : 'webex-widgets-meeting-dev';
16114
- var WebexMeeting = ai(ti(WebexMeetingWidget), function (props) {
16141
+ var WebexMeeting = ii(ni(WebexMeetingWidget), function (props) {
16115
16142
  var webex = new Webex({
16116
16143
  credentials: {
16117
16144
  access_token: props.accessToken
16118
16145
  },
16119
16146
  config: {
16120
16147
  appName: appName,
16121
- appVersion: "1.20.4"
16148
+ appVersion: "1.20.5"
16122
16149
  }
16123
16150
  });
16124
16151
  return new WebexSDKAdapter(webex);