@webex/plugin-meetings 3.8.0-next.74 → 3.8.0-next.75

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.
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
4
+ var _Array$from = require("@babel/runtime-corejs2/core-js/array/from");
5
+ var _Symbol = require("@babel/runtime-corejs2/core-js/symbol");
6
+ var _Symbol$iterator = require("@babel/runtime-corejs2/core-js/symbol/iterator");
7
+ var _Array$isArray2 = require("@babel/runtime-corejs2/core-js/array/is-array");
4
8
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
5
9
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
6
10
  _Object$defineProperty(exports, "__esModule", {
@@ -8,6 +12,7 @@ _Object$defineProperty(exports, "__esModule", {
8
12
  });
9
13
  exports.default = void 0;
10
14
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
15
+ var _isArray = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/array/is-array"));
11
16
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
12
17
  var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
13
18
  var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
@@ -29,6 +34,9 @@ var _mediaSharesUtils = _interopRequireDefault(require("./mediaSharesUtils"));
29
34
  var _parser = _interopRequireDefault(require("./parser"));
30
35
  var _metrics = _interopRequireDefault(require("../metrics"));
31
36
  var _constants2 = _interopRequireDefault(require("../metrics/constants"));
37
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && o[_Symbol$iterator] || o["@@iterator"]; if (!it) { if (_Array$isArray2(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
38
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
39
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
32
40
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
33
41
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
34
42
  /**
@@ -723,6 +731,28 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
723
731
  hostId: this.parsedLocus.host && this.parsedLocus.host.hostId,
724
732
  isReplace: isReplace
725
733
  });
734
+ if (participants && (0, _isArray.default)(participants) && participants.length > 0) {
735
+ var _iterator = _createForOfIteratorHelper(participants),
736
+ _step;
737
+ try {
738
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
739
+ var participant = _step.value;
740
+ if (participant && (participant === null || participant === void 0 ? void 0 : participant.reason) === 'FAILURE') {
741
+ var _participant$person;
742
+ this.emitScoped({
743
+ file: 'locus-info',
744
+ function: 'updateParticipants'
745
+ }, _constants.LOCUSINFO.EVENTS.PARTICIPANT_REASON_CHANGED, {
746
+ displayName: participant === null || participant === void 0 ? void 0 : (_participant$person = participant.person) === null || _participant$person === void 0 ? void 0 : _participant$person.primaryDisplayString
747
+ });
748
+ }
749
+ }
750
+ } catch (err) {
751
+ _iterator.e(err);
752
+ } finally {
753
+ _iterator.f();
754
+ }
755
+ }
726
756
  }
727
757
 
728
758
  /**