@webex/plugin-meetings 3.12.0 → 3.13.0

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.
Files changed (320) hide show
  1. package/.sdd/manifest.json +1312 -0
  2. package/.sdd/templates/.source.json +30 -0
  3. package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
  4. package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
  5. package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
  6. package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
  7. package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
  8. package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
  9. package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
  10. package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
  11. package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
  12. package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
  13. package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
  14. package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
  15. package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
  16. package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
  17. package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
  18. package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
  19. package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
  20. package/.sdd/templates/component-repo/template-map.json +112 -0
  21. package/AGENTS.md +135 -0
  22. package/ai-docs/ARCHITECTURE.md +208 -0
  23. package/ai-docs/CONTRACTS.md +267 -0
  24. package/ai-docs/DATA_MODEL.md +64 -0
  25. package/ai-docs/GETTING_STARTED.md +73 -0
  26. package/ai-docs/GLOSSARY.md +56 -0
  27. package/ai-docs/REVIEW_CHECKLIST.md +45 -0
  28. package/ai-docs/RULES.md +79 -0
  29. package/ai-docs/SECURITY.md +74 -0
  30. package/ai-docs/SERVICE_STATE.md +59 -0
  31. package/ai-docs/SPEC_INDEX.md +85 -0
  32. package/ai-docs/TEST_INDEX.md +45 -0
  33. package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
  34. package/ai-docs/patterns/defensive-error-propagation.md +55 -0
  35. package/ai-docs/patterns/event-scope-emission.md +46 -0
  36. package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
  37. package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
  38. package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
  39. package/assets/README.md +28 -0
  40. package/assets/e2ee-0.0.1.js +2 -0
  41. package/assets/e2ee-0.0.1.wasm +0 -0
  42. package/dist/aiEnableRequest/index.js +15 -2
  43. package/dist/aiEnableRequest/index.js.map +1 -1
  44. package/dist/annotation/index.js +55 -19
  45. package/dist/annotation/index.js.map +1 -1
  46. package/dist/assets/e2ee-0.0.1.js +2 -0
  47. package/dist/assets/e2ee-0.0.1.wasm +0 -0
  48. package/dist/breakouts/breakout.js +8 -3
  49. package/dist/breakouts/breakout.js.map +1 -1
  50. package/dist/breakouts/events.js +29 -14
  51. package/dist/breakouts/events.js.map +1 -1
  52. package/dist/breakouts/index.js +128 -7
  53. package/dist/breakouts/index.js.map +1 -1
  54. package/dist/common/errors/webex-errors.js +54 -5
  55. package/dist/common/errors/webex-errors.js.map +1 -1
  56. package/dist/config.js +4 -2
  57. package/dist/config.js.map +1 -1
  58. package/dist/constants.js +39 -11
  59. package/dist/constants.js.map +1 -1
  60. package/dist/controls-options-manager/constants.js +11 -1
  61. package/dist/controls-options-manager/constants.js.map +1 -1
  62. package/dist/controls-options-manager/index.js +67 -29
  63. package/dist/controls-options-manager/index.js.map +1 -1
  64. package/dist/controls-options-manager/util.js +91 -0
  65. package/dist/controls-options-manager/util.js.map +1 -1
  66. package/dist/hashTree/constants.js +13 -1
  67. package/dist/hashTree/constants.js.map +1 -1
  68. package/dist/hashTree/hashTreeParser.js +1245 -404
  69. package/dist/hashTree/hashTreeParser.js.map +1 -1
  70. package/dist/hashTree/utils.js +42 -0
  71. package/dist/hashTree/utils.js.map +1 -1
  72. package/dist/index.js +8 -0
  73. package/dist/index.js.map +1 -1
  74. package/dist/interceptors/dataChannelAuthToken.js +58 -16
  75. package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
  76. package/dist/interceptors/locusRetry.js +24 -9
  77. package/dist/interceptors/locusRetry.js.map +1 -1
  78. package/dist/interpretation/index.js +55 -12
  79. package/dist/interpretation/index.js.map +1 -1
  80. package/dist/interpretation/interpretation.types.js +7 -0
  81. package/dist/interpretation/interpretation.types.js.map +1 -0
  82. package/dist/interpretation/siLanguage.js +1 -1
  83. package/dist/locus-info/controlsUtils.js +4 -1
  84. package/dist/locus-info/controlsUtils.js.map +1 -1
  85. package/dist/locus-info/index.js +914 -196
  86. package/dist/locus-info/index.js.map +1 -1
  87. package/dist/locus-info/infoUtils.js +36 -5
  88. package/dist/locus-info/infoUtils.js.map +1 -1
  89. package/dist/locus-info/types.js +20 -0
  90. package/dist/locus-info/types.js.map +1 -1
  91. package/dist/media/MediaConnectionAwaiter.js +229 -166
  92. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  93. package/dist/media/index.js +8 -2
  94. package/dist/media/index.js.map +1 -1
  95. package/dist/media/properties.js +4 -5
  96. package/dist/media/properties.js.map +1 -1
  97. package/dist/meeting/in-meeting-actions.js +5 -1
  98. package/dist/meeting/in-meeting-actions.js.map +1 -1
  99. package/dist/meeting/index.js +1931 -887
  100. package/dist/meeting/index.js.map +1 -1
  101. package/dist/meeting/locusMediaRequest.js +229 -82
  102. package/dist/meeting/locusMediaRequest.js.map +1 -1
  103. package/dist/meeting/muteState.js +10 -1
  104. package/dist/meeting/muteState.js.map +1 -1
  105. package/dist/meeting/request.js +5 -2
  106. package/dist/meeting/request.js.map +1 -1
  107. package/dist/meeting/util.js +42 -3
  108. package/dist/meeting/util.js.map +1 -1
  109. package/dist/meeting/voicea-meeting.js +2 -1
  110. package/dist/meeting/voicea-meeting.js.map +1 -1
  111. package/dist/meeting-info/meeting-info-v2.js +12 -5
  112. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  113. package/dist/meetings/index.js +322 -129
  114. package/dist/meetings/index.js.map +1 -1
  115. package/dist/meetings/meetings.types.js +6 -1
  116. package/dist/meetings/meetings.types.js.map +1 -1
  117. package/dist/meetings/request.js +39 -0
  118. package/dist/meetings/request.js.map +1 -1
  119. package/dist/meetings/util.js +116 -18
  120. package/dist/meetings/util.js.map +1 -1
  121. package/dist/member/index.js +10 -0
  122. package/dist/member/index.js.map +1 -1
  123. package/dist/member/types.js.map +1 -1
  124. package/dist/member/util.js +30 -0
  125. package/dist/member/util.js.map +1 -1
  126. package/dist/members/index.js +101 -43
  127. package/dist/members/index.js.map +1 -1
  128. package/dist/members/util.js +8 -1
  129. package/dist/members/util.js.map +1 -1
  130. package/dist/metrics/constants.js +11 -1
  131. package/dist/metrics/constants.js.map +1 -1
  132. package/dist/multistream/codec/constants.js +63 -0
  133. package/dist/multistream/codec/constants.js.map +1 -0
  134. package/dist/multistream/mediaRequestManager.js +62 -15
  135. package/dist/multistream/mediaRequestManager.js.map +1 -1
  136. package/dist/multistream/receiveSlot.js +9 -0
  137. package/dist/multistream/receiveSlot.js.map +1 -1
  138. package/dist/multistream/remoteMediaManager.js +32 -4
  139. package/dist/multistream/remoteMediaManager.js.map +1 -1
  140. package/dist/multistream/sendSlotManager.js +127 -3
  141. package/dist/multistream/sendSlotManager.js.map +1 -1
  142. package/dist/reachability/clusterReachability.js.map +1 -1
  143. package/dist/reachability/index.js +121 -83
  144. package/dist/reachability/index.js.map +1 -1
  145. package/dist/reachability/reachability.types.js +2 -0
  146. package/dist/reachability/reachability.types.js.map +1 -1
  147. package/dist/reachability/util.js +45 -0
  148. package/dist/reachability/util.js.map +1 -1
  149. package/dist/reactions/reactions.type.js.map +1 -1
  150. package/dist/recording-controller/index.js +1 -3
  151. package/dist/recording-controller/index.js.map +1 -1
  152. package/dist/roap/turnDiscovery.js +8 -1
  153. package/dist/roap/turnDiscovery.js.map +1 -1
  154. package/dist/types/annotation/index.d.ts +19 -0
  155. package/dist/types/common/errors/webex-errors.d.ts +36 -2
  156. package/dist/types/config.d.ts +4 -2
  157. package/dist/types/constants.d.ts +15 -2
  158. package/dist/types/controls-options-manager/constants.d.ts +6 -1
  159. package/dist/types/controls-options-manager/index.d.ts +16 -0
  160. package/dist/types/hashTree/constants.d.ts +2 -0
  161. package/dist/types/hashTree/hashTreeParser.d.ts +230 -18
  162. package/dist/types/hashTree/utils.d.ts +18 -0
  163. package/dist/types/index.d.ts +4 -0
  164. package/dist/types/interceptors/locusRetry.d.ts +4 -4
  165. package/dist/types/interpretation/interpretation.types.d.ts +10 -0
  166. package/dist/types/locus-info/index.d.ts +151 -15
  167. package/dist/types/locus-info/infoUtils.d.ts +8 -0
  168. package/dist/types/locus-info/types.d.ts +28 -1
  169. package/dist/types/media/MediaConnectionAwaiter.d.ts +66 -49
  170. package/dist/types/media/properties.d.ts +6 -2
  171. package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
  172. package/dist/types/meeting/index.d.ts +247 -13
  173. package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
  174. package/dist/types/meeting/request.d.ts +1 -0
  175. package/dist/types/meeting/util.d.ts +12 -1
  176. package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
  177. package/dist/types/meetings/index.d.ts +40 -19
  178. package/dist/types/meetings/meetings.types.d.ts +15 -0
  179. package/dist/types/meetings/request.d.ts +14 -0
  180. package/dist/types/member/index.d.ts +1 -0
  181. package/dist/types/member/types.d.ts +1 -0
  182. package/dist/types/member/util.d.ts +9 -0
  183. package/dist/types/members/index.d.ts +15 -2
  184. package/dist/types/members/util.d.ts +1 -5
  185. package/dist/types/metrics/constants.d.ts +10 -0
  186. package/dist/types/multistream/codec/constants.d.ts +7 -0
  187. package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
  188. package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
  189. package/dist/types/multistream/sendSlotManager.d.ts +28 -2
  190. package/dist/types/reachability/clusterReachability.d.ts +3 -3
  191. package/dist/types/reachability/index.d.ts +10 -3
  192. package/dist/types/reachability/reachability.types.d.ts +7 -0
  193. package/dist/types/reachability/util.d.ts +17 -0
  194. package/dist/types/reactions/reactions.type.d.ts +3 -0
  195. package/dist/webinar/index.js +539 -245
  196. package/dist/webinar/index.js.map +1 -1
  197. package/package.json +26 -24
  198. package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
  199. package/src/aiEnableRequest/index.ts +16 -0
  200. package/src/annotation/ai-docs/annotation-spec.md +236 -0
  201. package/src/annotation/index.ts +61 -29
  202. package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
  203. package/src/breakouts/breakout.ts +3 -1
  204. package/src/breakouts/events.ts +33 -11
  205. package/src/breakouts/index.ts +145 -3
  206. package/src/common/errors/webex-errors.ts +56 -3
  207. package/src/config.ts +8 -3
  208. package/src/constants.ts +23 -4
  209. package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
  210. package/src/controls-options-manager/constants.ts +14 -1
  211. package/src/controls-options-manager/index.ts +87 -28
  212. package/src/controls-options-manager/util.ts +81 -1
  213. package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
  214. package/src/hashTree/constants.ts +16 -0
  215. package/src/hashTree/hashTreeParser.ts +1021 -214
  216. package/src/hashTree/utils.ts +36 -0
  217. package/src/index.ts +7 -0
  218. package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
  219. package/src/interceptors/dataChannelAuthToken.ts +59 -12
  220. package/src/interceptors/locusRetry.ts +26 -5
  221. package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
  222. package/src/interpretation/index.ts +65 -10
  223. package/src/interpretation/interpretation.types.ts +11 -0
  224. package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
  225. package/src/locus-info/controlsUtils.ts +3 -1
  226. package/src/locus-info/index.ts +907 -184
  227. package/src/locus-info/infoUtils.ts +41 -6
  228. package/src/locus-info/types.ts +33 -1
  229. package/src/media/MediaConnectionAwaiter.ts +229 -196
  230. package/src/media/ai-docs/media-spec.md +267 -0
  231. package/src/media/index.ts +10 -1
  232. package/src/media/properties.ts +8 -3
  233. package/src/meeting/ai-docs/meeting-spec.md +404 -0
  234. package/src/meeting/in-meeting-actions.ts +8 -0
  235. package/src/meeting/index.ts +1237 -254
  236. package/src/meeting/locusMediaRequest.ts +106 -6
  237. package/src/meeting/muteState.ts +10 -1
  238. package/src/meeting/request.ts +11 -0
  239. package/src/meeting/util.ts +53 -8
  240. package/src/meeting/voicea-meeting.ts +1 -1
  241. package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
  242. package/src/meeting-info/meeting-info-v2.ts +11 -4
  243. package/src/meetings/ai-docs/meetings-spec.md +296 -0
  244. package/src/meetings/index.ts +224 -80
  245. package/src/meetings/meetings.types.ts +19 -0
  246. package/src/meetings/request.ts +43 -0
  247. package/src/meetings/util.ts +117 -4
  248. package/src/member/ai-docs/member-spec.md +196 -0
  249. package/src/member/index.ts +10 -0
  250. package/src/member/types.ts +1 -0
  251. package/src/member/util.ts +29 -0
  252. package/src/members/ai-docs/members-spec.md +256 -0
  253. package/src/members/index.ts +70 -7
  254. package/src/members/util.ts +12 -4
  255. package/src/metrics/ai-docs/metrics-spec.md +185 -0
  256. package/src/metrics/constants.ts +11 -0
  257. package/src/multistream/ai-docs/multistream-spec.md +295 -0
  258. package/src/multistream/codec/constants.ts +58 -0
  259. package/src/multistream/mediaRequestManager.ts +119 -28
  260. package/src/multistream/receiveSlot.ts +18 -0
  261. package/src/multistream/remoteMediaManager.ts +23 -1
  262. package/src/multistream/sendSlotManager.ts +112 -4
  263. package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
  264. package/src/reachability/ai-docs/reachability-spec.md +261 -0
  265. package/src/reachability/clusterReachability.ts +3 -2
  266. package/src/reachability/index.ts +47 -16
  267. package/src/reachability/reachability.types.ts +11 -0
  268. package/src/reachability/util.ts +36 -0
  269. package/src/reactions/ai-docs/reactions-spec.md +198 -0
  270. package/src/reactions/reactions.type.ts +3 -0
  271. package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
  272. package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
  273. package/src/recording-controller/index.ts +1 -2
  274. package/src/roap/ai-docs/roap-spec.md +241 -0
  275. package/src/roap/turnDiscovery.ts +9 -1
  276. package/src/webinar/ai-docs/webinar-spec.md +243 -0
  277. package/src/webinar/index.ts +333 -73
  278. package/test/unit/spec/aiEnableRequest/index.ts +86 -0
  279. package/test/unit/spec/annotation/index.ts +214 -182
  280. package/test/unit/spec/breakouts/breakout.ts +9 -3
  281. package/test/unit/spec/breakouts/events.ts +120 -2
  282. package/test/unit/spec/breakouts/index.ts +336 -15
  283. package/test/unit/spec/common/errors/webex-errors.ts +78 -0
  284. package/test/unit/spec/controls-options-manager/index.js +244 -29
  285. package/test/unit/spec/controls-options-manager/util.js +165 -0
  286. package/test/unit/spec/hashTree/hashTreeParser.ts +3126 -238
  287. package/test/unit/spec/hashTree/utils.ts +125 -1
  288. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +179 -1
  289. package/test/unit/spec/interceptors/locusRetry.ts +234 -5
  290. package/test/unit/spec/interpretation/index.ts +119 -4
  291. package/test/unit/spec/locus-info/controlsUtils.js +172 -57
  292. package/test/unit/spec/locus-info/index.js +1880 -136
  293. package/test/unit/spec/locus-info/infoUtils.js +184 -1
  294. package/test/unit/spec/media/MediaConnectionAwaiter.ts +479 -17
  295. package/test/unit/spec/media/index.ts +92 -0
  296. package/test/unit/spec/media/properties.ts +26 -26
  297. package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
  298. package/test/unit/spec/meeting/index.js +3697 -501
  299. package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
  300. package/test/unit/spec/meeting/muteState.js +81 -0
  301. package/test/unit/spec/meeting/request.js +12 -0
  302. package/test/unit/spec/meeting/utils.js +206 -16
  303. package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
  304. package/test/unit/spec/meeting-info/meetinginfov2.js +88 -11
  305. package/test/unit/spec/meetings/index.js +586 -53
  306. package/test/unit/spec/meetings/request.js +141 -0
  307. package/test/unit/spec/meetings/utils.js +402 -51
  308. package/test/unit/spec/member/index.js +7 -0
  309. package/test/unit/spec/member/util.js +89 -0
  310. package/test/unit/spec/members/index.js +216 -0
  311. package/test/unit/spec/members/request.js +37 -1
  312. package/test/unit/spec/members/utils.js +63 -0
  313. package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
  314. package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
  315. package/test/unit/spec/multistream/sendSlotManager.ts +165 -38
  316. package/test/unit/spec/reachability/index.ts +128 -46
  317. package/test/unit/spec/reachability/util.ts +31 -0
  318. package/test/unit/spec/recording-controller/index.js +9 -8
  319. package/test/unit/spec/roap/turnDiscovery.ts +20 -0
  320. package/test/unit/spec/webinar/index.ts +982 -328
@@ -14,12 +14,13 @@ _Object$defineProperty(exports, "__esModule", {
14
14
  value: true
15
15
  });
16
16
  exports.default = void 0;
17
+ var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
18
+ var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify"));
17
19
  var _map = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/map"));
18
20
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
19
21
  var _now = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/date/now"));
20
22
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
21
23
  var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values"));
22
- var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
23
24
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/toConsumableArray"));
24
25
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
25
26
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
@@ -29,6 +30,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/he
29
30
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
30
31
  var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
31
32
  var _lodash = require("lodash");
33
+ var _webCapabilities = require("@webex/web-capabilities");
32
34
  require("@webex/internal-plugin-mercury");
33
35
  require("@webex/internal-plugin-conversation");
34
36
  require("@webex/internal-plugin-metrics");
@@ -48,7 +50,7 @@ var _constants = require("../constants");
48
50
  var _constants2 = _interopRequireDefault(require("../metrics/constants"));
49
51
  var _meetingInfo = _interopRequireDefault(require("../meeting-info"));
50
52
  var _meetingInfoV = _interopRequireDefault(require("../meeting-info/meeting-info-v2"));
51
- var _meeting = _interopRequireDefault(require("../meeting"));
53
+ var _meeting = _interopRequireWildcard(require("../meeting"));
52
54
  var _personalMeetingRoom = _interopRequireDefault(require("../personal-meeting-room"));
53
55
  var _reachability = _interopRequireDefault(require("../reachability"));
54
56
  var _request2 = _interopRequireDefault(require("./request"));
@@ -64,7 +66,7 @@ var _noMeetingInfo = _interopRequireDefault(require("../common/errors/no-meeting
64
66
  var _joinForbiddenError = _interopRequireDefault(require("../common/errors/join-forbidden-error"));
65
67
  var _utils = require("../hashTree/utils");
66
68
  var _locusInfo = require("../locus-info");
67
- function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t3 in e) "default" !== _t3 && {}.hasOwnProperty.call(e, _t3) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t3)) && (i.get || i.set) ? o(f, _t3, i) : f[_t3] = e[_t3]); return f; })(e, t); }
69
+ function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t4 in e) "default" !== _t4 && {}.hasOwnProperty.call(e, _t4) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t4)) && (i.get || i.set) ? o(f, _t4, i) : f[_t4] = e[_t4]); return f; })(e, t); }
68
70
  function ownKeys(e, r) { var t = _Object$keys2(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
69
71
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
70
72
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
@@ -204,6 +206,51 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
204
206
  (0, _defineProperty2.default)(_this, "breakoutLocusForHandleLater", void 0);
205
207
  (0, _defineProperty2.default)(_this, "namespace", _constants.MEETINGS);
206
208
  (0, _defineProperty2.default)(_this, "registrationStatus", void 0);
209
+ /**
210
+ * Emits a metric describing how well this browser runs WebAssembly, used to spot browsers
211
+ * where real-time WASM effects (e.g. background noise removal) run poorly.
212
+ *
213
+ * @param {string} correlationId - correlation id to report the result against
214
+ * @returns {void}
215
+ */
216
+ (0, _defineProperty2.default)(_this, "emitWasmRuntimePerformance", (0, _lodash.once)(function (correlationId) {
217
+ // Probe and telemetry failures must not prevent meeting creation.
218
+ _webCapabilities.WasmRuntimeProbe.check().then(function (result) {
219
+ var status = result.status,
220
+ capability = result.capability,
221
+ reason = result.reason,
222
+ measurements = result.measurements;
223
+ var _ref = measurements !== null && measurements !== void 0 ? measurements : {},
224
+ _ref$divRatio = _ref.divRatio,
225
+ divRatio = _ref$divRatio === void 0 ? null : _ref$divRatio,
226
+ _ref$sqrtRatio = _ref.sqrtRatio,
227
+ sqrtRatio = _ref$sqrtRatio === void 0 ? null : _ref$sqrtRatio,
228
+ _ref$addNsPerOp = _ref.addNsPerOp,
229
+ addNsPerOp = _ref$addNsPerOp === void 0 ? null : _ref$addNsPerOp,
230
+ _ref$addMedianMs = _ref.addMedianMs,
231
+ addMedianMs = _ref$addMedianMs === void 0 ? null : _ref$addMedianMs,
232
+ _ref$divMedianMs = _ref.divMedianMs,
233
+ divMedianMs = _ref$divMedianMs === void 0 ? null : _ref$divMedianMs,
234
+ _ref$sqrtMedianMs = _ref.sqrtMedianMs,
235
+ sqrtMedianMs = _ref$sqrtMedianMs === void 0 ? null : _ref$sqrtMedianMs;
236
+ var measurementsLog = (0, _stringify.default)(measurements);
237
+ _loggerProxy.default.logger.log("Meetings:index#emitWasmRuntimePerformance --> WASM runtime performance status: ".concat(status, ", capability: ").concat(capability, ", reason: ").concat(reason, ", measurements: ").concat(measurementsLog));
238
+ return _metrics.default.sendBehavioralMetric(_constants2.default.WASM_RUNTIME_PERFORMANCE, {
239
+ status: status,
240
+ capability: capability,
241
+ reason: reason,
242
+ divRatio: divRatio,
243
+ sqrtRatio: sqrtRatio,
244
+ addNsPerOp: addNsPerOp,
245
+ addMedianMs: addMedianMs,
246
+ divMedianMs: divMedianMs,
247
+ sqrtMedianMs: sqrtMedianMs,
248
+ correlation_id: correlationId
249
+ });
250
+ }).catch(function (error) {
251
+ _loggerProxy.default.logger.error("Meetings:index#emitWasmRuntimePerformance --> ERROR, failed to probe or report WASM runtime performance: ".concat(error.message));
252
+ });
253
+ }));
207
254
  /**
208
255
  * Creates a noise reduction effect
209
256
  *
@@ -213,7 +260,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
213
260
  * @memberof Meetings
214
261
  */
215
262
  (0, _defineProperty2.default)(_this, "createNoiseReductionEffect", /*#__PURE__*/function () {
216
- var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(options) {
263
+ var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(options) {
217
264
  var authToken;
218
265
  return _regenerator.default.wrap(function (_context) {
219
266
  while (1) switch (_context.prev = _context.next) {
@@ -230,7 +277,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
230
277
  }, _callee);
231
278
  }));
232
279
  return function (_x) {
233
- return _ref.apply(this, arguments);
280
+ return _ref2.apply(this, arguments);
234
281
  };
235
282
  }());
236
283
  /**
@@ -242,7 +289,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
242
289
  * @memberof Meetings
243
290
  */
244
291
  (0, _defineProperty2.default)(_this, "createVirtualBackgroundEffect", /*#__PURE__*/function () {
245
- var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
292
+ var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
246
293
  var authToken;
247
294
  return _regenerator.default.wrap(function (_context2) {
248
295
  while (1) switch (_context2.prev = _context2.next) {
@@ -259,7 +306,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
259
306
  }, _callee2);
260
307
  }));
261
308
  return function (_x2) {
262
- return _ref2.apply(this, arguments);
309
+ return _ref3.apply(this, arguments);
263
310
  };
264
311
  }());
265
312
  _this.mediaHelpers = mediaHelpersModule;
@@ -354,11 +401,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
354
401
  return (0, _createClass2.default)(Meetings, [{
355
402
  key: "isNeedHandleMainLocus",
356
403
  value: function isNeedHandleMainLocus(meeting, newLocus) {
357
- var _newLocus$controls, _newLocus$controls$br, _newLocus$self, _newLocus$self2, _newLocus$self3, _breakoutLocus$joined, _newLocus$self4;
404
+ var _newLocus$controls, _newLocus$controls$br, _newLocus$self, _breakoutLocus$joined, _newLocus$self2;
358
405
  var breakoutUrl = (_newLocus$controls = newLocus.controls) === null || _newLocus$controls === void 0 ? void 0 : (_newLocus$controls$br = _newLocus$controls.breakout) === null || _newLocus$controls$br === void 0 ? void 0 : _newLocus$controls$br.url;
359
406
  var breakoutLocus = this.meetingCollection.getActiveBreakoutLocus(breakoutUrl);
360
407
  var isSelfJoined = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self = newLocus.self) === null || _newLocus$self === void 0 ? void 0 : _newLocus$self.state) === _constants._JOINED_;
361
- var isSelfMoved = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self2 = newLocus.self) === null || _newLocus$self2 === void 0 ? void 0 : _newLocus$self2.state) === _constants._LEFT_ && (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self3 = newLocus.self) === null || _newLocus$self3 === void 0 ? void 0 : _newLocus$self3.reason) === _constants._MOVED_;
408
+ var isSelfMoved = _util2.default.isSelfMovedOrBreakoutEnded(newLocus);
362
409
  // @ts-ignore
363
410
  var deviceFromNewLocus = _util2.default.getThisDevice(newLocus, this.webex.internal.device.url);
364
411
  var isResourceMovedOnThisDevice = (deviceFromNewLocus === null || deviceFromNewLocus === void 0 ? void 0 : deviceFromNewLocus.state) === _constants._LEFT_ && (deviceFromNewLocus === null || deviceFromNewLocus === void 0 ? void 0 : deviceFromNewLocus.reason) === _constants._MOVED_;
@@ -383,7 +430,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
383
430
  _loggerProxy.default.logger.log("Meetings:index#isNeedHandleMainLocus --> there is active breakout session and joined on this device, and don't need to handle main session: ".concat(breakoutUrl));
384
431
  return false;
385
432
  }
386
- if (isSelfMoved && (newLocus !== null && newLocus !== void 0 && (_newLocus$self4 = newLocus.self) !== null && _newLocus$self4 !== void 0 && _newLocus$self4.removed || isResourceMovedOnThisDevice)) {
433
+ if (isSelfMoved && (newLocus !== null && newLocus !== void 0 && (_newLocus$self2 = newLocus.self) !== null && _newLocus$self2 !== void 0 && _newLocus$self2.removed || isResourceMovedOnThisDevice)) {
387
434
  _loggerProxy.default.logger.log('Meetings:index#isNeedHandleMainLocus --> self moved main locus with self removed status or with device resource moved, not need to handle');
388
435
  return false;
389
436
  }
@@ -407,15 +454,15 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
407
454
  key: "isNeedHandleLocusDTO",
408
455
  value: function isNeedHandleLocusDTO(meeting, newLocus) {
409
456
  if (newLocus) {
410
- var _newLocus$self5, _newLocus$self6, _newLocus$self7, _newLocus$self7$devic, _newLocus$self7$devic2, _newLocus$self8, _newLocus$self8$devic, _newLocus$self8$devic2;
457
+ var _newLocus$self3, _newLocus$self3$devic, _newLocus$self3$devic2, _newLocus$self4, _newLocus$self4$devic, _newLocus$self4$devic2;
411
458
  var isNewLocusAsBreakout = _util2.default.isBreakoutLocusDTO(newLocus);
412
- var isSelfMoved = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self5 = newLocus.self) === null || _newLocus$self5 === void 0 ? void 0 : _newLocus$self5.state) === _constants._LEFT_ && (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self6 = newLocus.self) === null || _newLocus$self6 === void 0 ? void 0 : _newLocus$self6.reason) === _constants._MOVED_;
413
- var isSelfMovedToLobby = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self7 = newLocus.self) === null || _newLocus$self7 === void 0 ? void 0 : (_newLocus$self7$devic = _newLocus$self7.devices[0]) === null || _newLocus$self7$devic === void 0 ? void 0 : (_newLocus$self7$devic2 = _newLocus$self7$devic.intent) === null || _newLocus$self7$devic2 === void 0 ? void 0 : _newLocus$self7$devic2.reason) === _constants._ON_HOLD_LOBBY_ && (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self8 = newLocus.self) === null || _newLocus$self8 === void 0 ? void 0 : (_newLocus$self8$devic = _newLocus$self8.devices[0]) === null || _newLocus$self8$devic === void 0 ? void 0 : (_newLocus$self8$devic2 = _newLocus$self8$devic.intent) === null || _newLocus$self8$devic2 === void 0 ? void 0 : _newLocus$self8$devic2.type) === _constants._WAIT_;
459
+ var isSelfMoved = _util2.default.isSelfMovedOrBreakoutEnded(newLocus);
460
+ var isSelfMovedToLobby = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self3 = newLocus.self) === null || _newLocus$self3 === void 0 ? void 0 : (_newLocus$self3$devic = _newLocus$self3.devices[0]) === null || _newLocus$self3$devic === void 0 ? void 0 : (_newLocus$self3$devic2 = _newLocus$self3$devic.intent) === null || _newLocus$self3$devic2 === void 0 ? void 0 : _newLocus$self3$devic2.reason) === _constants._ON_HOLD_LOBBY_ && (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self4 = newLocus.self) === null || _newLocus$self4 === void 0 ? void 0 : (_newLocus$self4$devic = _newLocus$self4.devices[0]) === null || _newLocus$self4$devic === void 0 ? void 0 : (_newLocus$self4$devic2 = _newLocus$self4$devic.intent) === null || _newLocus$self4$devic2 === void 0 ? void 0 : _newLocus$self4$devic2.type) === _constants._WAIT_;
414
461
  if (!meeting) {
415
462
  if (isNewLocusAsBreakout) {
416
- var _newLocus$fullState, _newLocus$self9;
463
+ var _newLocus$fullState, _newLocus$self5;
417
464
  _loggerProxy.default.logger.log("Meetings:index#isNeedHandleLocusDTO --> the first breakout session locusDTO active status: ".concat((_newLocus$fullState = newLocus.fullState) === null || _newLocus$fullState === void 0 ? void 0 : _newLocus$fullState.active));
418
- return ((_newLocus$self9 = newLocus.self) === null || _newLocus$self9 === void 0 ? void 0 : _newLocus$self9.state) === _constants._JOINED_;
465
+ return ((_newLocus$self5 = newLocus.self) === null || _newLocus$self5 === void 0 ? void 0 : _newLocus$self5.state) === _constants._JOINED_;
419
466
  }
420
467
  return this.isNeedHandleMainLocus(meeting, newLocus);
421
468
  }
@@ -449,6 +496,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
449
496
  if (existingMeeting) {
450
497
  return existingMeeting;
451
498
  }
499
+ if (data.eventType === _constants.LOCUSEVENT.HASH_TREE_DATA_UPDATED) {
500
+ // need to check if maybe this event indicates a move to/from breakout
501
+ var meetingForHashTreeMessage = (0, _locusInfo.findMeetingForHashTreeMessage)(data === null || data === void 0 ? void 0 : data.stateElementsMessage, this.meetingCollection);
502
+ if (meetingForHashTreeMessage) {
503
+ return meetingForHashTreeMessage;
504
+ }
505
+ }
452
506
 
453
507
  // if that didn't work, fallback to other fields like correlationId, sipUri, etc
454
508
 
@@ -484,6 +538,10 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
484
538
  var _this2 = this;
485
539
  var useRandomDelayForInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
486
540
  var meeting = this.getCorrespondingMeetingByLocus(data);
541
+ // @ts-ignore
542
+ if (this.config.experimental.storeLocusHashTreeEventsForDebugging) {
543
+ (0, _meeting.storeEventForDebugging)('mercury', data);
544
+ }
487
545
 
488
546
  // Special case when locus has got replaced, This only happend once if a replace locus exists
489
547
  // https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-changing-mid-call
@@ -495,7 +553,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
495
553
  meeting = this.meetingCollection.getByKey(_meetings.MEETING_KEY.LOCUS_URL, data.locus.replaces[data.locus.replaces.length - 1].locusUrl);
496
554
  }
497
555
  if (meeting && !_util2.default.isBreakoutLocusDTO(data.locus)) {
498
- meeting.locusInfo.updateMainSessionLocusCache(data.locus);
556
+ meeting.locusInfo.updateMainSessionLocusCache(data.locus); // here data.locus will never be a complete locus
499
557
  }
500
558
  if (!this.isNeedHandleLocusDTO(meeting, data.locus)) {
501
559
  _loggerProxy.default.logger.log("Meetings:index#handleLocusEvent --> doesn't need to process locus event");
@@ -547,7 +605,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
547
605
  return;
548
606
  }
549
607
  this.create(data.locus, _constants.DESTINATION_TYPE.LOCUS_ID, useRandomDelayForInfo).then(/*#__PURE__*/function () {
550
- var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(newMeeting) {
608
+ var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(newMeeting) {
551
609
  var _t;
552
610
  return _regenerator.default.wrap(function (_context3) {
553
611
  while (1) switch (_context3.prev = _context3.next) {
@@ -559,6 +617,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
559
617
  trigger: data.eventType === _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS ? 'get-loci-response' : 'locus-message',
560
618
  locus: data.locus,
561
619
  hashTreeMessage: data.stateElementsMessage
620
+ }, function (locus) {
621
+ meeting.finalizeMeetingAfterInitialLocusSetup(locus);
562
622
  });
563
623
  case 2:
564
624
  _context3.next = 4;
@@ -578,7 +638,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
578
638
  }, _callee3, null, [[1, 3]]);
579
639
  }));
580
640
  return function (_x3) {
581
- return _ref3.apply(this, arguments);
641
+ return _ref4.apply(this, arguments);
582
642
  };
583
643
  }()).catch(function (e) {
584
644
  _loggerProxy.default.logger.error(e);
@@ -670,8 +730,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
670
730
 
671
731
  // @ts-ignore
672
732
  this.webex.internal.mercury.on(_constants.ONLINE, function () {
733
+ // Fire-and-forget sync on socket recovery. Unlike the reconnection manager (which awaits and
734
+ // retries), nothing consumes this promise, so catch its rejection to avoid an unhandled
735
+ // promise rejection (a transient guest classic-sync failure would otherwise crash Node hosts).
673
736
  _this3.syncMeetings({
674
737
  keepOnlyLocusMeetings: false
738
+ }).catch(function (error) {
739
+ _loggerProxy.default.logger.warn("Meetings:index#listenForEvents --> syncMeetings after ONLINE event failed: ".concat(error));
675
740
  });
676
741
  });
677
742
 
@@ -811,46 +876,6 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
811
876
  }
812
877
  }
813
878
 
814
- /**
815
- * API to toggle TCP reachability, needs to be called before webex.meetings.register()
816
- * @param {Boolean} newValue
817
- * @private
818
- * @memberof Meetings
819
- * @returns {undefined}
820
- */
821
- }, {
822
- key: "_toggleTcpReachability",
823
- value: function _toggleTcpReachability(newValue) {
824
- if (typeof newValue !== 'boolean') {
825
- return;
826
- }
827
- // @ts-ignore
828
- if (this.config.experimental.enableTcpReachability !== newValue) {
829
- // @ts-ignore
830
- this.config.experimental.enableTcpReachability = newValue;
831
- }
832
- }
833
-
834
- /**
835
- * API to toggle TLS reachability, needs to be called before webex.meetings.register()
836
- * @param {Boolean} newValue
837
- * @private
838
- * @memberof Meetings
839
- * @returns {undefined}
840
- */
841
- }, {
842
- key: "_toggleTlsReachability",
843
- value: function _toggleTlsReachability(newValue) {
844
- if (typeof newValue !== 'boolean') {
845
- return;
846
- }
847
- // @ts-ignore
848
- if (this.config.experimental.enableTlsReachability !== newValue) {
849
- // @ts-ignore
850
- this.config.experimental.enableTlsReachability = newValue;
851
- }
852
- }
853
-
854
879
  /**
855
880
  * API to toggle backend ipv6 native support config, needs to be called before webex.meetings.register()
856
881
  *
@@ -916,6 +941,29 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
916
941
  }
917
942
  }
918
943
 
944
+ /**
945
+ * API to toggle AV1 codec support for video slides in multistream,
946
+ * needs to be called before webex.meetings.joinWithMedia()
947
+ *
948
+ * @param {Boolean} newValue
949
+ * @private
950
+ * @memberof Meetings
951
+ * @returns {undefined}
952
+ */
953
+ }, {
954
+ key: "_toggleEnableAv1SlidesSupport",
955
+ value: function _toggleEnableAv1SlidesSupport(newValue) {
956
+ if (typeof newValue !== 'boolean') {
957
+ return;
958
+ }
959
+
960
+ // @ts-ignore
961
+ if (this.config.enableAv1SlidesSupport !== newValue) {
962
+ // @ts-ignore
963
+ this.config.enableAv1SlidesSupport = newValue;
964
+ }
965
+ }
966
+
919
967
  /**
920
968
  * API to toggle stopping ICE Candidates Gathering after first relay candidate,
921
969
  * needs to be called before webex.meetings.joinWithMedia()
@@ -1261,6 +1309,31 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1261
1309
  return this.personalMeetingRoom;
1262
1310
  }
1263
1311
 
1312
+ /**
1313
+ * Fetches site preferences for the provided Webex site, or the preferred Webex site.
1314
+ * This is used to determine capabilities of the site, such as whether scheduling a webinar is supported.
1315
+ *
1316
+ * @param {object} [options]
1317
+ * @param {string} [options.siteUrl] - Webex site URL. Defaults to preferredWebexSite, for example "cisco.webex.com".
1318
+ * @param {string} [options.siteName] - Site name query override. Defaults to the site name derived from siteUrl, for example "cisco" for "cisco.webex.com".
1319
+ * @param {SitePreferenceSelectOption[]} [options.selectOptions] - Preference sections to fetch. Defaults to 'scheduling'.
1320
+ * @returns {Promise<SitePreferencesResponse>} site preferences response body
1321
+ * @throws {ParameterError}
1322
+ * @public
1323
+ * @memberof Meetings
1324
+ * @example
1325
+ * const preferences = await webex.meetings.fetchSitePreferencesMeViaSite();
1326
+ * const supportScheduleWebinar = preferences?.scheduling?.supportScheduleWebinar;
1327
+ */
1328
+ }, {
1329
+ key: "fetchSitePreferencesMeViaSite",
1330
+ value: function fetchSitePreferencesMeViaSite() {
1331
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1332
+ return this.request.fetchSitePreferencesMeViaSite(_objectSpread(_objectSpread({}, options), {}, {
1333
+ siteUrl: options.siteUrl || this.preferredWebexSite
1334
+ }));
1335
+ }
1336
+
1264
1337
  /**
1265
1338
  * Returns basic information about a meeting that exists or
1266
1339
  * used to exist in the MeetingCollection
@@ -1285,8 +1358,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1285
1358
  }, {
1286
1359
  key: "destroy",
1287
1360
  value: function destroy(meeting, reason) {
1288
- var _meeting$locusInfo, _meeting$locusInfo2, _meeting$locusInfo2$f, _meeting$locusInfo3, _meeting$locusInfo3$f;
1289
- _util.default.cleanUp(meeting);
1361
+ var _meeting$locusInfo, _meeting$locusInfo2, _meeting$locusInfo3, _meeting$locusInfo3$f, _meeting$locusInfo4, _meeting$locusInfo4$f;
1362
+ _util.default.cleanUp(meeting, {
1363
+ preserveVoiceaChannel: false
1364
+ });
1365
+
1366
+ // Tear down hash tree parsers here (and not in MeetingUtil.cleanUp) so they survive
1367
+ // leave/endMeetingForAll to consume the final sentinel END message from Locus.
1368
+ (_meeting$locusInfo = meeting.locusInfo) === null || _meeting$locusInfo === void 0 ? void 0 : _meeting$locusInfo.cleanUp();
1290
1369
  // keep some basic info about the deleted meeting forever
1291
1370
  this.deletedMeetings.set(meeting.id, {
1292
1371
  id: meeting.id,
@@ -1298,10 +1377,10 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1298
1377
  meetingInfo: (0, _lodash.cloneDeep)(meeting.meetingInfo),
1299
1378
  locusInfo: {
1300
1379
  // locusInfo can be quite big, so keep just the minimal info
1301
- url: (_meeting$locusInfo = meeting.locusInfo) === null || _meeting$locusInfo === void 0 ? void 0 : _meeting$locusInfo.url,
1380
+ url: (_meeting$locusInfo2 = meeting.locusInfo) === null || _meeting$locusInfo2 === void 0 ? void 0 : _meeting$locusInfo2.url,
1302
1381
  fullState: {
1303
- lastActive: (_meeting$locusInfo2 = meeting.locusInfo) === null || _meeting$locusInfo2 === void 0 ? void 0 : (_meeting$locusInfo2$f = _meeting$locusInfo2.fullState) === null || _meeting$locusInfo2$f === void 0 ? void 0 : _meeting$locusInfo2$f.lastActive,
1304
- sessionId: (_meeting$locusInfo3 = meeting.locusInfo) === null || _meeting$locusInfo3 === void 0 ? void 0 : (_meeting$locusInfo3$f = _meeting$locusInfo3.fullState) === null || _meeting$locusInfo3$f === void 0 ? void 0 : _meeting$locusInfo3$f.sessionId
1382
+ lastActive: (_meeting$locusInfo3 = meeting.locusInfo) === null || _meeting$locusInfo3 === void 0 ? void 0 : (_meeting$locusInfo3$f = _meeting$locusInfo3.fullState) === null || _meeting$locusInfo3$f === void 0 ? void 0 : _meeting$locusInfo3$f.lastActive,
1383
+ sessionId: (_meeting$locusInfo4 = meeting.locusInfo) === null || _meeting$locusInfo4 === void 0 ? void 0 : (_meeting$locusInfo4$f = _meeting$locusInfo4.fullState) === null || _meeting$locusInfo4$f === void 0 ? void 0 : _meeting$locusInfo4$f.sessionId
1305
1384
  }
1306
1385
  },
1307
1386
  roles: meeting.roles,
@@ -1456,6 +1535,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1456
1535
  });
1457
1536
  }
1458
1537
  });
1538
+ _this1.emitWasmRuntimePerformance(createdMeeting.correlationId);
1459
1539
  } else {
1460
1540
  _loggerProxy.default.logger.error("Meetings:index#create --> ERROR, meeting does not have on method, will not be destroyed, meeting cleanup impossible for meeting: ".concat(meeting));
1461
1541
  }
@@ -1553,6 +1633,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1553
1633
  isMeetingActive,
1554
1634
  enableUnifiedMeetings,
1555
1635
  meetingInfoOptions,
1636
+ shouldDeferMeetingInfoFetch,
1637
+ isOneOnOneCallLocus,
1556
1638
  meetingAddedType,
1557
1639
  _args4 = arguments,
1558
1640
  _t2;
@@ -1607,16 +1689,18 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1607
1689
  extraParams: infoExtraParams,
1608
1690
  sendCAevents: !!(callStateForMetrics !== null && callStateForMetrics !== void 0 && callStateForMetrics.correlationId) // if client sends correlation id as argument of public create(), then it means that this meeting creation is part of a pre-join intent from user
1609
1691
  };
1692
+ shouldDeferMeetingInfoFetch = type === _constants.DESTINATION_TYPE.LOCUS_ID && !(destination !== null && destination !== void 0 && destination.info);
1693
+ isOneOnOneCallLocus = type === _constants.DESTINATION_TYPE.LOCUS_ID && _util2.default.isOneOnOneCall(destination);
1610
1694
  if (!meetingInfo) {
1611
1695
  _context4.next = 2;
1612
1696
  break;
1613
1697
  }
1614
1698
  meeting.injectMeetingInfo(meetingInfo, meetingInfoOptions, meetingLookupUrl);
1615
- _context4.next = 4;
1699
+ _context4.next = 6;
1616
1700
  break;
1617
1701
  case 2:
1618
- if (!(type !== _constants.DESTINATION_TYPE.ONE_ON_ONE_CALL)) {
1619
- _context4.next = 4;
1702
+ if (!(type !== _constants.DESTINATION_TYPE.ONE_ON_ONE_CALL && !isOneOnOneCallLocus)) {
1703
+ _context4.next = 6;
1620
1704
  break;
1621
1705
  }
1622
1706
  if (!(enableUnifiedMeetings && !isMeetingActive && useRandomDelayForInfo && waitingTime > 0)) {
@@ -1627,41 +1711,54 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1627
1711
  return meeting.fetchMeetingInfo(meetingInfoOptions);
1628
1712
  }, waitingTime);
1629
1713
  meeting.parseMeetingInfo(undefined, destination);
1630
- _context4.next = 4;
1714
+ _context4.next = 6;
1631
1715
  break;
1632
1716
  case 3:
1717
+ if (shouldDeferMeetingInfoFetch) {
1718
+ _context4.next = 5;
1719
+ break;
1720
+ }
1633
1721
  _context4.next = 4;
1634
1722
  return meeting.fetchMeetingInfo(meetingInfoOptions);
1635
1723
  case 4:
1636
- _context4.next = 8;
1724
+ _context4.next = 6;
1637
1725
  break;
1638
1726
  case 5:
1639
- _context4.prev = 5;
1727
+ _loggerProxy.default.logger.info('Meetings:index#createMeeting --> defer fetchMeetingInfo for incomplete locus, will do it after locus initialSetup');
1728
+ case 6:
1729
+ _context4.next = 10;
1730
+ break;
1731
+ case 7:
1732
+ _context4.prev = 7;
1640
1733
  _t2 = _context4["catch"](1);
1641
1734
  if (!(!(_t2 instanceof _captchaError.default) && !(_t2 instanceof _passwordError.default) && !(_t2 instanceof _permission.default) && !(_t2 instanceof _joinWebinarError.default) && !(_t2 instanceof _joinForbiddenError.default))) {
1642
- _context4.next = 7;
1735
+ _context4.next = 9;
1643
1736
  break;
1644
1737
  }
1645
1738
  _loggerProxy.default.logger.info("Meetings:index#createMeeting --> Info Unable to fetch meeting info for ".concat(destination, "."));
1646
1739
  if (!failOnMissingMeetingInfo) {
1647
- _context4.next = 6;
1740
+ _context4.next = 8;
1648
1741
  break;
1649
1742
  }
1650
1743
  _loggerProxy.default.logger.info("Meetings:index#createMeeting --> Destroying meeting due to missing meeting info.");
1651
1744
  // @ts-ignore
1652
1745
  this.destroy(meeting, _constants.MEETING_REMOVED_REASON.MISSING_MEETING_INFO);
1653
1746
  throw new _noMeetingInfo.default();
1654
- case 6:
1747
+ case 8:
1655
1748
  // if there is no meeting info and no error should be thrown then we assume its a 1:1 call or wireless share
1656
1749
  _loggerProxy.default.logger.info('Meetings:index#createMeeting --> Info assuming this destination is a 1:1 or wireless share');
1657
- case 7:
1750
+ case 9:
1658
1751
  _loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(_t2, " fetching /meetingInfo for creation."));
1659
- case 8:
1660
- _context4.prev = 8;
1752
+ case 10:
1753
+ _context4.prev = 10;
1661
1754
  // For type LOCUS_ID we need to parse the locus object to get the information
1662
1755
  // about the caller and callee
1663
1756
  // Meeting Added event will be created in `handleLocusEvent`
1664
- if (type !== _constants.DESTINATION_TYPE.LOCUS_ID) {
1757
+ // Only emit MEETING_ADDED if the meeting still exists in the collection.
1758
+ // If fetchMeetingInfo failed and the meeting was destroyed in the catch block,
1759
+ // skip emitting to prevent orphaned meeting references on the consumer side.
1760
+ // @ts-ignore - getMeetingByType types value as object but accepts strings (same as handleLocusEvent)
1761
+ if (type !== _constants.DESTINATION_TYPE.LOCUS_ID && this.getMeetingByType(_constants._ID_, meeting.id)) {
1665
1762
  if (!meeting.sipUri) {
1666
1763
  meeting.setSipUri(destination);
1667
1764
  }
@@ -1677,14 +1774,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1677
1774
  type: meetingAddedType
1678
1775
  });
1679
1776
  }
1680
- return _context4.finish(8);
1681
- case 9:
1777
+ return _context4.finish(10);
1778
+ case 11:
1682
1779
  return _context4.abrupt("return", meeting);
1683
- case 10:
1780
+ case 12:
1684
1781
  case "end":
1685
1782
  return _context4.stop();
1686
1783
  }
1687
- }, _callee4, this, [[1, 5, 8, 9]]);
1784
+ }, _callee4, this, [[1, 7, 10, 11]]);
1688
1785
  }));
1689
1786
  function createMeeting(_x4) {
1690
1787
  return _createMeeting.apply(this, arguments);
@@ -1719,7 +1816,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1719
1816
  }
1720
1817
 
1721
1818
  /**
1722
- * Syncs all the meetings from server. Does nothing and returns immediately if unverified guest.
1819
+ * Syncs all the meetings from server. For unverified guests it skips the getActiveMeetings() call
1820
+ * (which Locus rejects for them) and instead resyncs each meeting individually via LocusInfo#sync.
1723
1821
  * @param {boolean} keepOnlyLocusMeetings - whether the sync should keep only locus meetings or any other meeting in meetingCollection
1724
1822
  * @returns {Promise<void>}
1725
1823
  * @public
@@ -1727,51 +1825,147 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1727
1825
  */
1728
1826
  }, {
1729
1827
  key: "syncMeetings",
1730
- value: function syncMeetings() {
1731
- var _this11 = this;
1732
- var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
1733
- _ref4$keepOnlyLocusMe = _ref4.keepOnlyLocusMeetings,
1734
- keepOnlyLocusMeetings = _ref4$keepOnlyLocusMe === void 0 ? true : _ref4$keepOnlyLocusMe;
1735
- // @ts-ignore
1736
- if (this.webex.credentials.isUnverifiedGuest) {
1737
- _loggerProxy.default.logger.info('Meetings:index#syncMeetings --> skipping meeting sync as unverified guest');
1738
- return _promise.default.resolve();
1739
- }
1740
- return this.request.getActiveMeetings().then(function (locusArray) {
1741
- var activeLocusUrl = [];
1742
- if (locusArray !== null && locusArray !== void 0 && locusArray.loci && locusArray.loci.length > 0) {
1743
- var lociToUpdate = _this11.sortLocusArrayToUpdate(locusArray.loci);
1744
- lociToUpdate.forEach(function (locus) {
1745
- activeLocusUrl.push(locus.url);
1746
- _this11.handleLocusEvent({
1747
- eventType: _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS,
1748
- locus: locus,
1749
- locusUrl: locus.url
1750
- });
1751
- });
1752
- }
1753
- var meetingsCollection = _this11.meetingCollection.getAll();
1754
- if ((0, _keys.default)(meetingsCollection).length > 0) {
1755
- // Sometimes the mercury events are lost after mercury reconnect
1756
- // Remove any Locus meetings that are not returned by Locus
1757
- // (they had a locusUrl previously but are no longer active) in the sync
1758
- for (var _i = 0, _Object$values = (0, _values.default)(meetingsCollection); _i < _Object$values.length; _i++) {
1759
- var meeting = _Object$values[_i];
1760
- // @ts-ignore
1761
- var locusUrl = meeting.locusUrl;
1762
- if ((keepOnlyLocusMeetings || locusUrl) && !activeLocusUrl.includes(locusUrl)) {
1763
- // destroy function also uploads logs
1828
+ value: (function () {
1829
+ var _syncMeetings = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
1830
+ var _this11 = this;
1831
+ var _ref5,
1832
+ _ref5$keepOnlyLocusMe,
1833
+ keepOnlyLocusMeetings,
1834
+ _ref5$skipHashTreeSyn,
1835
+ skipHashTreeSync,
1836
+ isUnverifiedGuest,
1837
+ locusArray,
1838
+ activeLocusUrl,
1839
+ lociToUpdate,
1840
+ meetingsCollection,
1841
+ _loop,
1842
+ _i,
1843
+ _Object$values,
1844
+ remainingMeetings,
1845
+ syncPromises,
1846
+ _i2,
1847
+ _arr,
1848
+ meeting,
1849
+ _args6 = arguments,
1850
+ _t3;
1851
+ return _regenerator.default.wrap(function (_context6) {
1852
+ while (1) switch (_context6.prev = _context6.next) {
1853
+ case 0:
1854
+ _ref5 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, _ref5$keepOnlyLocusMe = _ref5.keepOnlyLocusMeetings, keepOnlyLocusMeetings = _ref5$keepOnlyLocusMe === void 0 ? true : _ref5$keepOnlyLocusMe, _ref5$skipHashTreeSyn = _ref5.skipHashTreeSync, skipHashTreeSync = _ref5$skipHashTreeSyn === void 0 ? false : _ref5$skipHashTreeSyn;
1764
1855
  // @ts-ignore
1765
- _this11.destroy(meeting, _constants.MEETING_REMOVED_REASON.NO_MEETINGS_TO_SYNC);
1766
- }
1767
- }
1768
- }
1769
- }).catch(function (error) {
1770
- _loggerProxy.default.logger.error("Meetings:index#syncMeetings --> failed to sync meetings, ".concat(error));
1771
- throw new Error(error);
1772
- });
1773
- }
1856
+ isUnverifiedGuest = Boolean(this.webex.credentials.isUnverifiedGuest);
1857
+ if (!isUnverifiedGuest) {
1858
+ _context6.next = 1;
1859
+ break;
1860
+ }
1861
+ _loggerProxy.default.logger.info('Meetings:index#syncMeetings --> user is unverified guest, skipping calling Locus for meeting sync');
1774
1862
 
1863
+ // Locus rejects getActiveMeetings() for unverified guests, so the per-meeting sync below
1864
+ // (with canSyncClassicLocus enabled) resyncs each classic meeting individually instead.
1865
+ _context6.next = 7;
1866
+ break;
1867
+ case 1:
1868
+ _context6.prev = 1;
1869
+ _context6.next = 2;
1870
+ return this.request.getActiveMeetings();
1871
+ case 2:
1872
+ locusArray = _context6.sent;
1873
+ activeLocusUrl = [];
1874
+ if (locusArray !== null && locusArray !== void 0 && locusArray.loci && locusArray.loci.length > 0) {
1875
+ lociToUpdate = this.sortLocusArrayToUpdate(locusArray.loci);
1876
+ lociToUpdate.forEach(function (locus) {
1877
+ activeLocusUrl.push(locus.url);
1878
+ _this11.handleLocusEvent({
1879
+ eventType: _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS,
1880
+ locus: locus,
1881
+ locusUrl: locus.url
1882
+ });
1883
+ });
1884
+ }
1885
+ meetingsCollection = this.meetingCollection.getAll();
1886
+ if (!((0, _keys.default)(meetingsCollection).length > 0)) {
1887
+ _context6.next = 5;
1888
+ break;
1889
+ }
1890
+ _loop = /*#__PURE__*/_regenerator.default.mark(function _loop() {
1891
+ var meeting, locusUrl, locusInfo, _locusInfo$info, _locusArray$loci, globalMeetingId;
1892
+ return _regenerator.default.wrap(function (_context5) {
1893
+ while (1) switch (_context5.prev = _context5.next) {
1894
+ case 0:
1895
+ meeting = _Object$values[_i];
1896
+ // @ts-ignore
1897
+ locusUrl = meeting.locusUrl, locusInfo = meeting.locusInfo;
1898
+ if ((keepOnlyLocusMeetings || locusUrl) && !activeLocusUrl.includes(locusUrl)) {
1899
+ globalMeetingId = locusInfo === null || locusInfo === void 0 ? void 0 : (_locusInfo$info = locusInfo.info) === null || _locusInfo$info === void 0 ? void 0 : _locusInfo$info.globalMeetingId;
1900
+ if (globalMeetingId && locusArray !== null && locusArray !== void 0 && (_locusArray$loci = locusArray.loci) !== null && _locusArray$loci !== void 0 && _locusArray$loci.some(function (locus) {
1901
+ var _locus$info;
1902
+ return ((_locus$info = locus.info) === null || _locus$info === void 0 ? void 0 : _locus$info.globalMeetingId) === globalMeetingId;
1903
+ })) {
1904
+ // don't destroy the meeting as Locus API still returned some Locus that shares
1905
+ // the same globalMeetingId - that happens for example if a webinar user (who hasn't scheduled it)
1906
+ // is in a breakout and gets moved to a different breakout while we were offline
1907
+ } else {
1908
+ // destroy function also uploads logs
1909
+ // @ts-ignore
1910
+ _this11.destroy(meeting, _constants.MEETING_REMOVED_REASON.NO_MEETINGS_TO_SYNC);
1911
+ }
1912
+ }
1913
+ case 1:
1914
+ case "end":
1915
+ return _context5.stop();
1916
+ }
1917
+ }, _loop);
1918
+ });
1919
+ _i = 0, _Object$values = (0, _values.default)(meetingsCollection);
1920
+ case 3:
1921
+ if (!(_i < _Object$values.length)) {
1922
+ _context6.next = 5;
1923
+ break;
1924
+ }
1925
+ return _context6.delegateYield(_loop(), "t0", 4);
1926
+ case 4:
1927
+ _i++;
1928
+ _context6.next = 3;
1929
+ break;
1930
+ case 5:
1931
+ _context6.next = 7;
1932
+ break;
1933
+ case 6:
1934
+ _context6.prev = 6;
1935
+ _t3 = _context6["catch"](1);
1936
+ _loggerProxy.default.logger.error("Meetings:index#syncMeetings --> failed to sync meetings, ".concat(_t3));
1937
+ throw _t3;
1938
+ case 7:
1939
+ // Resync each remaining meeting via LocusInfo#sync, which routes to hash tree or classic. For
1940
+ // signed-in users classic meetings were already synced above, so only the hash tree sync runs.
1941
+ remainingMeetings = this.meetingCollection.getAll();
1942
+ syncPromises = [];
1943
+ for (_i2 = 0, _arr = (0, _values.default)(remainingMeetings); _i2 < _arr.length; _i2++) {
1944
+ meeting = _arr[_i2];
1945
+ if (meeting.locusInfo) {
1946
+ syncPromises.push(meeting.locusInfo.sync(meeting, {
1947
+ canSyncClassicLocus: isUnverifiedGuest,
1948
+ canSyncHashTree: !skipHashTreeSync
1949
+ }));
1950
+ }
1951
+ }
1952
+ if (!(syncPromises.length > 0)) {
1953
+ _context6.next = 8;
1954
+ break;
1955
+ }
1956
+ _context6.next = 8;
1957
+ return _promise.default.all(syncPromises);
1958
+ case 8:
1959
+ case "end":
1960
+ return _context6.stop();
1961
+ }
1962
+ }, _callee5, this, [[1, 6]]);
1963
+ }));
1964
+ function syncMeetings() {
1965
+ return _syncMeetings.apply(this, arguments);
1966
+ }
1967
+ return syncMeetings;
1968
+ }()
1775
1969
  /**
1776
1970
  * sort out locus array for initial creating
1777
1971
  * @param {Array} loci original locus array
@@ -1779,6 +1973,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1779
1973
  * @public
1780
1974
  * @memberof Meetings
1781
1975
  */
1976
+ )
1782
1977
  }, {
1783
1978
  key: "sortLocusArrayToUpdate",
1784
1979
  value: function sortLocusArrayToUpdate(loci) {
@@ -1793,8 +1988,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1793
1988
  var lociToUpdate = (0, _toConsumableArray2.default)(mainLoci);
1794
1989
  breakoutLoci.forEach(function (breakoutLocus) {
1795
1990
  var associateMainLocus = mainLoci.find(function (mainLocus) {
1796
- var _mainLocus$controls, _mainLocus$controls$b, _breakoutLocus$contro, _breakoutLocus$contro2;
1797
- return ((_mainLocus$controls = mainLocus.controls) === null || _mainLocus$controls === void 0 ? void 0 : (_mainLocus$controls$b = _mainLocus$controls.breakout) === null || _mainLocus$controls$b === void 0 ? void 0 : _mainLocus$controls$b.url) === ((_breakoutLocus$contro = breakoutLocus.controls) === null || _breakoutLocus$contro === void 0 ? void 0 : (_breakoutLocus$contro2 = _breakoutLocus$contro.breakout) === null || _breakoutLocus$contro2 === void 0 ? void 0 : _breakoutLocus$contro2.url);
1991
+ return _util2.default.isMainAssociatedWithBreakout(mainLocus, breakoutLocus);
1798
1992
  });
1799
1993
  var existCorrespondingMeeting = _this12.getCorrespondingMeetingByLocus({
1800
1994
  eventType: _constants.LOCUSEVENT.SDK_NO_EVENT,
@@ -1830,15 +2024,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1830
2024
  return;
1831
2025
  }
1832
2026
  var existIndex = this.breakoutLocusForHandleLater.findIndex(function (breakoutLocus) {
1833
- var _breakoutLocus$contro3, _breakoutLocus$contro4, _newCreatedLocus$cont, _newCreatedLocus$cont2;
1834
- return ((_breakoutLocus$contro3 = breakoutLocus.controls) === null || _breakoutLocus$contro3 === void 0 ? void 0 : (_breakoutLocus$contro4 = _breakoutLocus$contro3.breakout) === null || _breakoutLocus$contro4 === void 0 ? void 0 : _breakoutLocus$contro4.url) === ((_newCreatedLocus$cont = newCreatedLocus.controls) === null || _newCreatedLocus$cont === void 0 ? void 0 : (_newCreatedLocus$cont2 = _newCreatedLocus$cont.breakout) === null || _newCreatedLocus$cont2 === void 0 ? void 0 : _newCreatedLocus$cont2.url);
2027
+ return _util2.default.isMainAssociatedWithBreakout(newCreatedLocus, breakoutLocus);
1835
2028
  });
1836
2029
  if (existIndex < 0) {
1837
2030
  return;
1838
2031
  }
1839
2032
  var associateBreakoutLocus = this.breakoutLocusForHandleLater[existIndex];
1840
2033
  this.handleLocusEvent({
1841
- eventType: _constants.LOCUSEVENT.SDK_NO_EVENT,
2034
+ eventType: _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS,
1842
2035
  locus: associateBreakoutLocus,
1843
2036
  locusUrl: associateBreakoutLocus.url
1844
2037
  });