@azure/communication-react 1.26.0-alpha-202504080017 → 1.26.0-alpha-202504100018

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 (22) hide show
  1. package/dist/communication-react.d.ts +34 -2
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-B7z_PfOA.js → ChatMessageComponentAsRichTextEditBox-DzVuW5SN.js} +2 -2
  3. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-B7z_PfOA.js.map → ChatMessageComponentAsRichTextEditBox-DzVuW5SN.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BMVBxfQa.js → RichTextSendBoxWrapper-CWem6AxN.js} +2 -2
  5. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-BMVBxfQa.js.map → RichTextSendBoxWrapper-CWem6AxN.js.map} +1 -1
  6. package/dist/dist-cjs/communication-react/{index-BWWxc3Tx.js → index-B61VVYm8.js} +498 -249
  7. package/dist/dist-cjs/communication-react/index-B61VVYm8.js.map +1 -0
  8. package/dist/dist-cjs/communication-react/index.js +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  11. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +16 -4
  12. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  13. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +24 -6
  14. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +77 -41
  15. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  16. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/OnFetchProfileCallback.d.ts +39 -0
  17. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/OnFetchProfileCallback.js +203 -0
  18. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/OnFetchProfileCallback.js.map +1 -0
  19. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +2 -0
  20. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  21. package/package.json +1 -1
  22. package/dist/dist-cjs/communication-react/index-BWWxc3Tx.js.map +0 -1
@@ -187,7 +187,7 @@ function getDefaultExportFromCjs (x) {
187
187
  // Copyright (c) Microsoft Corporation.
188
188
  // Licensed under the MIT License.
189
189
  // GENERATED FILE. DO NOT EDIT MANUALLY.
190
- var telemetryVersion = '1.26.0-alpha-202504080017';
190
+ var telemetryVersion = '1.26.0-alpha-202504100018';
191
191
 
192
192
 
193
193
  var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
@@ -638,7 +638,7 @@ const getTogetherModeCallFeature = (state, props) => { var _a; return (_a = stat
638
638
 
639
639
  // Copyright (c) Microsoft Corporation.
640
640
  // Licensed under the MIT License.
641
- var __awaiter$13 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
641
+ var __awaiter$14 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
642
642
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
643
643
  return new (P || (P = Promise))(function (resolve, reject) {
644
644
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -678,7 +678,7 @@ const _isPreviewOn = (deviceManager) => {
678
678
  *
679
679
  * @private
680
680
  */
681
- const disposeAllLocalPreviewViews = (callClient) => __awaiter$13(undefined, undefined, undefined, function* () {
681
+ const disposeAllLocalPreviewViews = (callClient) => __awaiter$14(undefined, undefined, undefined, function* () {
682
682
  const unparentedViews = callClient.getState().deviceManager.unparentedViews;
683
683
  for (const view of unparentedViews) {
684
684
  yield callClient.disposeView(undefined, undefined, view);
@@ -754,7 +754,7 @@ const maskDisplayNameWithRole = (displayName, localUserRole, participantRole, is
754
754
  * Helper to create a local video stream from the selected camera.
755
755
  * @private
756
756
  */
757
- const createLocalVideoStream = (callClient) => __awaiter$13(undefined, undefined, undefined, function* () {
757
+ const createLocalVideoStream = (callClient) => __awaiter$14(undefined, undefined, undefined, function* () {
758
758
  const camera = yield (callClient === null || callClient === undefined ? undefined : callClient.getState().deviceManager.selectedCamera);
759
759
  if (camera) {
760
760
  return new communicationCalling.LocalVideoStream(camera);
@@ -889,7 +889,7 @@ const holdButtonSelector = reselect__namespace.createSelector([getCallState], (c
889
889
 
890
890
  // Copyright (c) Microsoft Corporation.
891
891
  // Licensed under the MIT License.
892
- var __awaiter$12 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
892
+ var __awaiter$13 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
893
893
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
894
894
  return new (P || (P = Promise))(function (resolve, reject) {
895
895
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -910,7 +910,7 @@ const areStreamsEqual = (prevStream, newStream) => {
910
910
  * @private
911
911
  */
912
912
  const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager, call, options) => {
913
- const onStartLocalVideo = () => __awaiter$12(undefined, undefined, undefined, function* () {
913
+ const onStartLocalVideo = () => __awaiter$13(undefined, undefined, undefined, function* () {
914
914
  // Before the call object creates a stream, dispose of any local preview streams.
915
915
  // @TODO: is there any way to parent the unparented view to the call object instead
916
916
  // of disposing and creating a new stream?
@@ -930,7 +930,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
930
930
  yield call.startVideo(stream);
931
931
  }
932
932
  });
933
- const onStopLocalVideo = (stream) => __awaiter$12(undefined, undefined, undefined, function* () {
933
+ const onStopLocalVideo = (stream) => __awaiter$13(undefined, undefined, undefined, function* () {
934
934
  const callId = call === null || call === undefined ? undefined : call.id;
935
935
  if (!callId) {
936
936
  return;
@@ -939,7 +939,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
939
939
  yield call.stopVideo(stream);
940
940
  }
941
941
  });
942
- const onToggleCamera = (options) => __awaiter$12(undefined, undefined, undefined, function* () {
942
+ const onToggleCamera = (options) => __awaiter$13(undefined, undefined, undefined, function* () {
943
943
  const previewOn = _isPreviewOn(callClient.getState().deviceManager);
944
944
  // the disposal of the unparented views is to workaround: https://skype.visualstudio.com/SPOOL/_workitems/edit/3030558.
945
945
  // The root cause of the issue is caused by never transitioning the unparented view to the
@@ -996,19 +996,19 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
996
996
  }
997
997
  }
998
998
  });
999
- const onSelectMicrophone = (device) => __awaiter$12(undefined, undefined, undefined, function* () {
999
+ const onSelectMicrophone = (device) => __awaiter$13(undefined, undefined, undefined, function* () {
1000
1000
  if (!deviceManager) {
1001
1001
  return;
1002
1002
  }
1003
1003
  return deviceManager.selectMicrophone(device);
1004
1004
  });
1005
- const onSelectSpeaker = (device) => __awaiter$12(undefined, undefined, undefined, function* () {
1005
+ const onSelectSpeaker = (device) => __awaiter$13(undefined, undefined, undefined, function* () {
1006
1006
  if (!deviceManager) {
1007
1007
  return;
1008
1008
  }
1009
1009
  return deviceManager.selectSpeaker(device);
1010
1010
  });
1011
- const onSelectCamera = (device, options) => __awaiter$12(undefined, undefined, undefined, function* () {
1011
+ const onSelectCamera = (device, options) => __awaiter$13(undefined, undefined, undefined, function* () {
1012
1012
  if (!deviceManager) {
1013
1013
  return;
1014
1014
  }
@@ -1047,9 +1047,9 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1047
1047
  }, options);
1048
1048
  }
1049
1049
  });
1050
- const onRaiseHand = () => __awaiter$12(undefined, undefined, undefined, function* () { var _a; return yield ((_a = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.RaiseHand)) === null || _a === undefined ? undefined : _a.raiseHand()); });
1051
- const onLowerHand = () => __awaiter$12(undefined, undefined, undefined, function* () { var _b; return yield ((_b = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.RaiseHand)) === null || _b === undefined ? undefined : _b.lowerHand()); });
1052
- const onToggleRaiseHand = () => __awaiter$12(undefined, undefined, undefined, function* () {
1050
+ const onRaiseHand = () => __awaiter$13(undefined, undefined, undefined, function* () { var _a; return yield ((_a = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.RaiseHand)) === null || _a === undefined ? undefined : _a.raiseHand()); });
1051
+ const onLowerHand = () => __awaiter$13(undefined, undefined, undefined, function* () { var _b; return yield ((_b = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.RaiseHand)) === null || _b === undefined ? undefined : _b.lowerHand()); });
1052
+ const onToggleRaiseHand = () => __awaiter$13(undefined, undefined, undefined, function* () {
1053
1053
  const raiseHandFeature = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.RaiseHand);
1054
1054
  const localUserId = callClient.getState().userId;
1055
1055
  const isLocalRaisedHand = raiseHandFeature === null || raiseHandFeature === undefined ? undefined : raiseHandFeature.getRaisedHands().find((publishedState) => toFlatCommunicationIdentifier(publishedState.identifier) === toFlatCommunicationIdentifier(localUserId));
@@ -1060,7 +1060,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1060
1060
  yield (raiseHandFeature === null || raiseHandFeature === undefined ? undefined : raiseHandFeature.raiseHand());
1061
1061
  }
1062
1062
  });
1063
- const onReactionClick = (reaction) => __awaiter$12(undefined, undefined, undefined, function* () {
1063
+ const onReactionClick = (reaction) => __awaiter$13(undefined, undefined, undefined, function* () {
1064
1064
  var _c;
1065
1065
  if (reaction === 'like' ||
1066
1066
  reaction === 'applause' ||
@@ -1074,18 +1074,18 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1074
1074
  }
1075
1075
  return;
1076
1076
  });
1077
- const onToggleMicrophone = () => __awaiter$12(undefined, undefined, undefined, function* () {
1077
+ const onToggleMicrophone = () => __awaiter$13(undefined, undefined, undefined, function* () {
1078
1078
  if (!call || !(_isInCall(call.state) || _isInLobbyOrConnecting(call.state))) {
1079
1079
  throw new Error(`Please invoke onToggleMicrophone after call is started`);
1080
1080
  }
1081
1081
  return call.isMuted ? yield call.unmute() : yield call.mute();
1082
1082
  });
1083
- const onStartScreenShare = () => __awaiter$12(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.startScreenSharing()); });
1084
- const onStopScreenShare = () => __awaiter$12(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.stopScreenSharing()); });
1085
- const onToggleScreenShare = () => __awaiter$12(undefined, undefined, undefined, function* () { return (call === null || call === undefined ? undefined : call.isScreenSharingOn) ? yield onStopScreenShare() : yield onStartScreenShare(); });
1086
- const onHangUp = (forEveryone) => __awaiter$12(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.hangUp({ forEveryone: forEveryone === true ? true : false })); });
1087
- const onToggleHold = () => __awaiter$12(undefined, undefined, undefined, function* () { return (call === null || call === undefined ? undefined : call.state) === 'LocalHold' ? yield (call === null || call === undefined ? undefined : call.resume()) : yield (call === null || call === undefined ? undefined : call.hold()); });
1088
- const onCreateLocalStreamView = (...args_1) => __awaiter$12(undefined, [...args_1], undefined, function* (options = { scalingMode: 'Crop', isMirrored: true }) {
1083
+ const onStartScreenShare = () => __awaiter$13(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.startScreenSharing()); });
1084
+ const onStopScreenShare = () => __awaiter$13(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.stopScreenSharing()); });
1085
+ const onToggleScreenShare = () => __awaiter$13(undefined, undefined, undefined, function* () { return (call === null || call === undefined ? undefined : call.isScreenSharingOn) ? yield onStopScreenShare() : yield onStartScreenShare(); });
1086
+ const onHangUp = (forEveryone) => __awaiter$13(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.hangUp({ forEveryone: forEveryone === true ? true : false })); });
1087
+ const onToggleHold = () => __awaiter$13(undefined, undefined, undefined, function* () { return (call === null || call === undefined ? undefined : call.state) === 'LocalHold' ? yield (call === null || call === undefined ? undefined : call.resume()) : yield (call === null || call === undefined ? undefined : call.hold()); });
1088
+ const onCreateLocalStreamView = (...args_1) => __awaiter$13(undefined, [...args_1], undefined, function* (options = { scalingMode: 'Crop', isMirrored: true }) {
1089
1089
  if (!call || call.localVideoStreams.length === 0) {
1090
1090
  return;
1091
1091
  }
@@ -1109,7 +1109,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1109
1109
  }
1110
1110
  return (createViewResult === null || createViewResult === undefined ? undefined : createViewResult.view) ? { view: createViewResult === null || createViewResult === undefined ? undefined : createViewResult.view } : undefined;
1111
1111
  });
1112
- const onCreateRemoteStreamView = (userId_1, ...args_2) => __awaiter$12(undefined, [userId_1, ...args_2], undefined, function* (userId, options = { scalingMode: 'Crop' }) {
1112
+ const onCreateRemoteStreamView = (userId_1, ...args_2) => __awaiter$13(undefined, [userId_1, ...args_2], undefined, function* (userId, options = { scalingMode: 'Crop' }) {
1113
1113
  if (!call) {
1114
1114
  return;
1115
1115
  }
@@ -1146,7 +1146,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1146
1146
  }
1147
1147
  return (createViewResult === null || createViewResult === undefined ? undefined : createViewResult.view) ? { view: createViewResult === null || createViewResult === undefined ? undefined : createViewResult.view } : undefined;
1148
1148
  });
1149
- const onDisposeRemoteStreamView = (userId) => __awaiter$12(undefined, undefined, undefined, function* () {
1149
+ const onDisposeRemoteStreamView = (userId) => __awaiter$13(undefined, undefined, undefined, function* () {
1150
1150
  if (!call) {
1151
1151
  return;
1152
1152
  }
@@ -1167,7 +1167,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1167
1167
  callClient.disposeView(call.id, participant.identifier, screenShareStream);
1168
1168
  }
1169
1169
  });
1170
- const onDisposeRemoteVideoStreamView = (userId) => __awaiter$12(undefined, undefined, undefined, function* () {
1170
+ const onDisposeRemoteVideoStreamView = (userId) => __awaiter$13(undefined, undefined, undefined, function* () {
1171
1171
  if (!call) {
1172
1172
  return;
1173
1173
  }
@@ -1186,7 +1186,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1186
1186
  }
1187
1187
  }
1188
1188
  });
1189
- const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$12(undefined, undefined, undefined, function* () {
1189
+ const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$13(undefined, undefined, undefined, function* () {
1190
1190
  if (!call) {
1191
1191
  return;
1192
1192
  }
@@ -1205,7 +1205,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1205
1205
  }
1206
1206
  }
1207
1207
  });
1208
- const onDisposeLocalScreenShareStreamView = () => __awaiter$12(undefined, undefined, undefined, function* () {
1208
+ const onDisposeLocalScreenShareStreamView = () => __awaiter$13(undefined, undefined, undefined, function* () {
1209
1209
  if (!call) {
1210
1210
  return;
1211
1211
  }
@@ -1218,7 +1218,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1218
1218
  callClient.disposeView(call.id, undefined, screenShareStream);
1219
1219
  }
1220
1220
  });
1221
- const onDisposeLocalStreamView = () => __awaiter$12(undefined, undefined, undefined, function* () {
1221
+ const onDisposeLocalStreamView = () => __awaiter$13(undefined, undefined, undefined, function* () {
1222
1222
  // If the user is currently in a call, dispose of the local stream view attached to that call.
1223
1223
  const callState = call && callClient.getState().calls[call.id];
1224
1224
  const localStream = callState === null || callState === undefined ? undefined : callState.localVideoStreams.find((item) => item.mediaStreamType === 'Video');
@@ -1230,17 +1230,17 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1230
1230
  // TODO: we need to remember which LocalVideoStream was used for LocalPreview and dispose that one.
1231
1231
  yield disposeAllLocalPreviewViews(callClient);
1232
1232
  });
1233
- const onSendDtmfTone = (dtmfTone) => __awaiter$12(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.sendDtmf(dtmfTone)); });
1233
+ const onSendDtmfTone = (dtmfTone) => __awaiter$13(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.sendDtmf(dtmfTone)); });
1234
1234
  const notImplemented = () => {
1235
1235
  throw new Error('Not implemented, cannot call a method from an abstract object');
1236
1236
  };
1237
1237
  /* @conditional-compile-remove(call-readiness) */
1238
- const askDevicePermission = (constrain) => __awaiter$12(undefined, undefined, undefined, function* () {
1238
+ const askDevicePermission = (constrain) => __awaiter$13(undefined, undefined, undefined, function* () {
1239
1239
  if (deviceManager) {
1240
1240
  yield (deviceManager === null || deviceManager === undefined ? undefined : deviceManager.askDevicePermission(constrain));
1241
1241
  }
1242
1242
  });
1243
- const onRemoveVideoBackgroundEffects = () => __awaiter$12(undefined, undefined, undefined, function* () {
1243
+ const onRemoveVideoBackgroundEffects = () => __awaiter$13(undefined, undefined, undefined, function* () {
1244
1244
  const stream = (call === null || call === undefined ? undefined : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
1245
1245
  (deviceManager === null || deviceManager === undefined ? undefined : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
1246
1246
  if (stream) {
@@ -1252,7 +1252,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1252
1252
  }
1253
1253
  }
1254
1254
  });
1255
- const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$12(undefined, undefined, undefined, function* () {
1255
+ const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$13(undefined, undefined, undefined, function* () {
1256
1256
  var _d;
1257
1257
  const stream = (call === null || call === undefined ? undefined : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
1258
1258
  (deviceManager === null || deviceManager === undefined ? undefined : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
@@ -1265,7 +1265,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1265
1265
  return createEffect && stream.feature(communicationCalling.Features.VideoEffects).startEffects(createEffect(backgroundBlurConfig));
1266
1266
  }
1267
1267
  });
1268
- const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$12(undefined, undefined, undefined, function* () {
1268
+ const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$13(undefined, undefined, undefined, function* () {
1269
1269
  var _e;
1270
1270
  const stream = (call === null || call === undefined ? undefined : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
1271
1271
  (deviceManager === null || deviceManager === undefined ? undefined : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
@@ -1278,7 +1278,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1278
1278
  return (createEffect && stream.feature(communicationCalling.Features.VideoEffects).startEffects(createEffect(backgroundReplacementConfig)));
1279
1279
  }
1280
1280
  });
1281
- const onStartNoiseSuppressionEffect = () => __awaiter$12(undefined, undefined, undefined, function* () {
1281
+ const onStartNoiseSuppressionEffect = () => __awaiter$13(undefined, undefined, undefined, function* () {
1282
1282
  var _f;
1283
1283
  const audioEffects = (options === null || options === undefined ? undefined : options.onResolveDeepNoiseSuppressionDependency) &&
1284
1284
  ((_f = (yield options.onResolveDeepNoiseSuppressionDependency())) === null || _f === undefined ? undefined : _f.deepNoiseSuppressionEffect);
@@ -1294,7 +1294,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1294
1294
  }
1295
1295
  }
1296
1296
  });
1297
- const onStopNoiseSuppressionEffect = () => __awaiter$12(undefined, undefined, undefined, function* () {
1297
+ const onStopNoiseSuppressionEffect = () => __awaiter$13(undefined, undefined, undefined, function* () {
1298
1298
  const stream = call === null || call === undefined ? undefined : call.localAudioStreams.find((stream) => stream.mediaStreamType === 'Audio');
1299
1299
  if (stream && (options === null || options === undefined ? undefined : options.onResolveDeepNoiseSuppressionDependency)) {
1300
1300
  const audioEffects = {
@@ -1303,42 +1303,42 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1303
1303
  return yield stream.feature(communicationCalling.Features.AudioEffects).stopEffects(audioEffects);
1304
1304
  }
1305
1305
  });
1306
- const onStartCaptions = (options) => __awaiter$12(undefined, undefined, undefined, function* () {
1306
+ const onStartCaptions = (options) => __awaiter$13(undefined, undefined, undefined, function* () {
1307
1307
  const captionsFeature = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Captions).captions;
1308
1308
  yield (captionsFeature === null || captionsFeature === undefined ? undefined : captionsFeature.startCaptions(options));
1309
1309
  });
1310
- const onStopCaptions = () => __awaiter$12(undefined, undefined, undefined, function* () {
1310
+ const onStopCaptions = () => __awaiter$13(undefined, undefined, undefined, function* () {
1311
1311
  const captionsFeature = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Captions).captions;
1312
1312
  yield (captionsFeature === null || captionsFeature === undefined ? undefined : captionsFeature.stopCaptions());
1313
1313
  });
1314
- const onSetSpokenLanguage = (language) => __awaiter$12(undefined, undefined, undefined, function* () {
1314
+ const onSetSpokenLanguage = (language) => __awaiter$13(undefined, undefined, undefined, function* () {
1315
1315
  const captionsFeature = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Captions).captions;
1316
1316
  yield (captionsFeature === null || captionsFeature === undefined ? undefined : captionsFeature.setSpokenLanguage(language));
1317
1317
  });
1318
- const onSetCaptionLanguage = (language) => __awaiter$12(undefined, undefined, undefined, function* () {
1318
+ const onSetCaptionLanguage = (language) => __awaiter$13(undefined, undefined, undefined, function* () {
1319
1319
  const captionsFeature = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Captions).captions;
1320
1320
  yield captionsFeature.setCaptionLanguage(language);
1321
1321
  });
1322
1322
  /* @conditional-compile-remove(rtt) */
1323
- const onSendRealTimeText = (text, isFinalized) => __awaiter$12(undefined, undefined, undefined, function* () {
1323
+ const onSendRealTimeText = (text, isFinalized) => __awaiter$13(undefined, undefined, undefined, function* () {
1324
1324
  const realTimeTextFeature = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.RealTimeText);
1325
1325
  yield (realTimeTextFeature === null || realTimeTextFeature === undefined ? undefined : realTimeTextFeature.sendRealTimeText(text, isFinalized));
1326
1326
  });
1327
- const onSubmitSurvey = (survey) => __awaiter$12(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.CallSurvey).submitSurvey(survey)); });
1328
- const onStartSpotlight = (userIds) => __awaiter$12(undefined, undefined, undefined, function* () {
1327
+ const onSubmitSurvey = (survey) => __awaiter$13(undefined, undefined, undefined, function* () { return yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.CallSurvey).submitSurvey(survey)); });
1328
+ const onStartSpotlight = (userIds) => __awaiter$13(undefined, undefined, undefined, function* () {
1329
1329
  const participants = userIds === null || userIds === undefined ? undefined : userIds.map((userId) => _toCommunicationIdentifier(userId));
1330
1330
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
1331
1331
  });
1332
- const onStopSpotlight = (userIds) => __awaiter$12(undefined, undefined, undefined, function* () {
1332
+ const onStopSpotlight = (userIds) => __awaiter$13(undefined, undefined, undefined, function* () {
1333
1333
  const participants = userIds === null || userIds === undefined ? undefined : userIds.map((userId) => _toCommunicationIdentifier(userId));
1334
1334
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
1335
1335
  });
1336
- const onStopAllSpotlight = () => __awaiter$12(undefined, undefined, undefined, function* () {
1336
+ const onStopAllSpotlight = () => __awaiter$13(undefined, undefined, undefined, function* () {
1337
1337
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Spotlight).stopAllSpotlight());
1338
1338
  });
1339
- const onMuteParticipant = (userId) => __awaiter$12(undefined, undefined, undefined, function* () {
1339
+ const onMuteParticipant = (userId) => __awaiter$13(undefined, undefined, undefined, function* () {
1340
1340
  if (call === null || call === undefined ? undefined : call.remoteParticipants) {
1341
- call === null || call === undefined ? undefined : call.remoteParticipants.forEach((participant) => __awaiter$12(undefined, undefined, undefined, function* () {
1341
+ call === null || call === undefined ? undefined : call.remoteParticipants.forEach((participant) => __awaiter$13(undefined, undefined, undefined, function* () {
1342
1342
  // Using toFlatCommunicationIdentifier to convert the CommunicationIdentifier to string
1343
1343
  // as _toCommunicationIdentifier(userId) comparison to participant.identifier did not work for this case
1344
1344
  if (toFlatCommunicationIdentifier(participant.identifier) === userId) {
@@ -1347,33 +1347,33 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1347
1347
  }));
1348
1348
  }
1349
1349
  });
1350
- const onMuteAllRemoteParticipants = () => __awaiter$12(undefined, undefined, undefined, function* () {
1350
+ const onMuteAllRemoteParticipants = () => __awaiter$13(undefined, undefined, undefined, function* () {
1351
1351
  call === null || call === undefined ? undefined : call.muteAllRemoteParticipants();
1352
1352
  });
1353
1353
  const canStartSpotlight = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Capabilities).capabilities.spotlightParticipant.isPresent;
1354
1354
  const canRemoveSpotlight = call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Capabilities).capabilities.removeParticipantsSpotlight.isPresent;
1355
1355
  const onStartLocalSpotlight = canStartSpotlight
1356
- ? () => __awaiter$12(undefined, undefined, undefined, function* () {
1356
+ ? () => __awaiter$13(undefined, undefined, undefined, function* () {
1357
1357
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Spotlight).startSpotlight());
1358
1358
  })
1359
1359
  : undefined;
1360
- const onStopLocalSpotlight = () => __awaiter$12(undefined, undefined, undefined, function* () {
1360
+ const onStopLocalSpotlight = () => __awaiter$13(undefined, undefined, undefined, function* () {
1361
1361
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Spotlight).stopSpotlight());
1362
1362
  });
1363
1363
  const onStartRemoteSpotlight = canStartSpotlight
1364
- ? (userIds) => __awaiter$12(undefined, undefined, undefined, function* () {
1364
+ ? (userIds) => __awaiter$13(undefined, undefined, undefined, function* () {
1365
1365
  const participants = userIds === null || userIds === undefined ? undefined : userIds.map((userId) => _toCommunicationIdentifier(userId));
1366
1366
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
1367
1367
  })
1368
1368
  : undefined;
1369
1369
  const onStopRemoteSpotlight = canRemoveSpotlight
1370
- ? (userIds) => __awaiter$12(undefined, undefined, undefined, function* () {
1370
+ ? (userIds) => __awaiter$13(undefined, undefined, undefined, function* () {
1371
1371
  const participants = userIds === null || userIds === undefined ? undefined : userIds.map((userId) => _toCommunicationIdentifier(userId));
1372
1372
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
1373
1373
  })
1374
1374
  : undefined;
1375
1375
  /* @conditional-compile-remove(together-mode) */
1376
- const onCreateTogetherModeStreamView = (...args_3) => __awaiter$12(undefined, [...args_3], undefined, function* (options = { scalingMode: 'Fit', isMirrored: false, viewKind: 'main' }) {
1376
+ const onCreateTogetherModeStreamView = (...args_3) => __awaiter$13(undefined, [...args_3], undefined, function* (options = { scalingMode: 'Fit', isMirrored: false, viewKind: 'main' }) {
1377
1377
  if (!call) {
1378
1378
  return;
1379
1379
  }
@@ -1394,7 +1394,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1394
1394
  return togetherModeCreateViewResult;
1395
1395
  });
1396
1396
  /* @conditional-compile-remove(together-mode) */
1397
- const onDisposeTogetherModeStreamView = () => __awaiter$12(undefined, undefined, undefined, function* () {
1397
+ const onDisposeTogetherModeStreamView = () => __awaiter$13(undefined, undefined, undefined, function* () {
1398
1398
  if (!call) {
1399
1399
  return;
1400
1400
  }
@@ -1417,32 +1417,32 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1417
1417
  togetherModeFeature.sceneSize = { width, height };
1418
1418
  }
1419
1419
  };
1420
- const onForbidAudio = (userIds) => __awaiter$12(undefined, undefined, undefined, function* () {
1420
+ const onForbidAudio = (userIds) => __awaiter$13(undefined, undefined, undefined, function* () {
1421
1421
  const participants = userIds === null || userIds === undefined ? undefined : userIds.map((userId) => _toCommunicationIdentifier(userId));
1422
1422
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.MediaAccess).forbidAudio(participants));
1423
1423
  });
1424
- const onPermitAudio = (userIds) => __awaiter$12(undefined, undefined, undefined, function* () {
1424
+ const onPermitAudio = (userIds) => __awaiter$13(undefined, undefined, undefined, function* () {
1425
1425
  const participants = userIds === null || userIds === undefined ? undefined : userIds.map((userId) => _toCommunicationIdentifier(userId));
1426
1426
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.MediaAccess).permitAudio(participants));
1427
1427
  });
1428
- const onForbidOthersAudio = () => __awaiter$12(undefined, undefined, undefined, function* () {
1428
+ const onForbidOthersAudio = () => __awaiter$13(undefined, undefined, undefined, function* () {
1429
1429
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.MediaAccess).forbidOthersAudio());
1430
1430
  });
1431
- const onPermitOthersAudio = () => __awaiter$12(undefined, undefined, undefined, function* () {
1431
+ const onPermitOthersAudio = () => __awaiter$13(undefined, undefined, undefined, function* () {
1432
1432
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.MediaAccess).permitOthersAudio());
1433
1433
  });
1434
- const onForbidVideo = (userIds) => __awaiter$12(undefined, undefined, undefined, function* () {
1434
+ const onForbidVideo = (userIds) => __awaiter$13(undefined, undefined, undefined, function* () {
1435
1435
  const participants = userIds === null || userIds === undefined ? undefined : userIds.map((userId) => _toCommunicationIdentifier(userId));
1436
1436
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.MediaAccess).forbidVideo(participants));
1437
1437
  });
1438
- const onPermitVideo = (userIds) => __awaiter$12(undefined, undefined, undefined, function* () {
1438
+ const onPermitVideo = (userIds) => __awaiter$13(undefined, undefined, undefined, function* () {
1439
1439
  const participants = userIds === null || userIds === undefined ? undefined : userIds.map((userId) => _toCommunicationIdentifier(userId));
1440
1440
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.MediaAccess).permitVideo(participants));
1441
1441
  });
1442
- const onForbidOthersVideo = () => __awaiter$12(undefined, undefined, undefined, function* () {
1442
+ const onForbidOthersVideo = () => __awaiter$13(undefined, undefined, undefined, function* () {
1443
1443
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.MediaAccess).forbidOthersVideo());
1444
1444
  });
1445
- const onPermitOthersVideo = () => __awaiter$12(undefined, undefined, undefined, function* () {
1445
+ const onPermitOthersVideo = () => __awaiter$13(undefined, undefined, undefined, function* () {
1446
1446
  yield (call === null || call === undefined ? undefined : call.feature(communicationCalling.Features.MediaAccess).permitOthersVideo());
1447
1447
  });
1448
1448
  return {
@@ -1518,7 +1518,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1518
1518
 
1519
1519
  // Copyright (c) Microsoft Corporation.
1520
1520
  // Licensed under the MIT License.
1521
- var __awaiter$11 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1521
+ var __awaiter$12 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1522
1522
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1523
1523
  return new (P || (P = Promise))(function (resolve, reject) {
1524
1524
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -1542,7 +1542,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
1542
1542
  // FIXME: onStartCall API should use string, not the underlying SDK types.
1543
1543
  onStartCall: (participants, options) => {
1544
1544
  return callAgent === null || callAgent === undefined ? undefined : callAgent.startCall(participants, options);
1545
- }, onAddParticipant: (userId, options) => __awaiter$11(undefined, undefined, undefined, function* () {
1545
+ }, onAddParticipant: (userId, options) => __awaiter$12(undefined, undefined, undefined, function* () {
1546
1546
  const participant = _toCommunicationIdentifier(userId);
1547
1547
  if (communicationCommon.isPhoneNumberIdentifier(participant)) {
1548
1548
  call === null || call === undefined ? undefined : call.addParticipant(participant, options);
@@ -1550,16 +1550,16 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
1550
1550
  else if (communicationCommon.isCommunicationUserIdentifier(participant) || communicationCommon.isMicrosoftTeamsUserIdentifier(participant)) {
1551
1551
  call === null || call === undefined ? undefined : call.addParticipant(participant);
1552
1552
  }
1553
- }), onRemoveParticipant: (userId) => __awaiter$11(undefined, undefined, undefined, function* () {
1553
+ }), onRemoveParticipant: (userId) => __awaiter$12(undefined, undefined, undefined, function* () {
1554
1554
  const participant = _toCommunicationIdentifier(userId);
1555
1555
  yield (call === null || call === undefined ? undefined : call.removeParticipant(participant));
1556
- }), onAcceptCall: (incomingCallId, useVideo) => __awaiter$11(undefined, undefined, undefined, function* () {
1556
+ }), onAcceptCall: (incomingCallId, useVideo) => __awaiter$12(undefined, undefined, undefined, function* () {
1557
1557
  const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
1558
1558
  const incomingCall = callAgent === null || callAgent === undefined ? undefined : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
1559
1559
  if (incomingCall) {
1560
1560
  yield incomingCall.accept(localVideoStream ? { videoOptions: { localVideoStreams: [localVideoStream] } } : undefined);
1561
1561
  }
1562
- }), onRejectCall: (incomingCallId) => __awaiter$11(undefined, undefined, undefined, function* () {
1562
+ }), onRejectCall: (incomingCallId) => __awaiter$12(undefined, undefined, undefined, function* () {
1563
1563
  const incomingCall = callAgent === null || callAgent === undefined ? undefined : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
1564
1564
  if (incomingCall) {
1565
1565
  yield incomingCall.reject();
@@ -1569,7 +1569,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
1569
1569
 
1570
1570
  // Copyright (c) Microsoft Corporation.
1571
1571
  // Licensed under the MIT License.
1572
- var __awaiter$10 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1572
+ var __awaiter$11 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1573
1573
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1574
1574
  return new (P || (P = Promise))(function (resolve, reject) {
1575
1575
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -1600,7 +1600,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
1600
1600
  return undefined;
1601
1601
  },
1602
1602
  /* @conditional-compile-remove(teams-identity-support-beta) */
1603
- onAddParticipant: (userId, options) => __awaiter$10(undefined, undefined, undefined, function* () {
1603
+ onAddParticipant: (userId, options) => __awaiter$11(undefined, undefined, undefined, function* () {
1604
1604
  const participant = _toCommunicationIdentifier(userId);
1605
1605
  const threadId = options === null || options === undefined ? undefined : options.threadId;
1606
1606
  if (communicationCommon.isCommunicationUserIdentifier(participant)) {
@@ -1613,7 +1613,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
1613
1613
  call === null || call === undefined ? undefined : call.addParticipant(participant, threadId ? { threadId } : undefined);
1614
1614
  }
1615
1615
  call === null || call === undefined ? undefined : call.addParticipant(participant);
1616
- }), onRemoveParticipant: (userId) => __awaiter$10(undefined, undefined, undefined, function* () {
1616
+ }), onRemoveParticipant: (userId) => __awaiter$11(undefined, undefined, undefined, function* () {
1617
1617
  const participant = _toCommunicationIdentifier(userId);
1618
1618
  if (communicationCommon.isCommunicationUserIdentifier(participant)) {
1619
1619
  throw new Error('CommunicationIdentifier in Teams call is not supported!');
@@ -1622,20 +1622,20 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
1622
1622
  throw new Error('Removing Microsoft Teams app identifier is not supported!');
1623
1623
  }
1624
1624
  yield (call === null || call === undefined ? undefined : call.removeParticipant(participant));
1625
- }), onAcceptCall: (incomingCallId, useVideo) => __awaiter$10(undefined, undefined, undefined, function* () {
1625
+ }), onAcceptCall: (incomingCallId, useVideo) => __awaiter$11(undefined, undefined, undefined, function* () {
1626
1626
  const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
1627
1627
  const incomingCall = callAgent === null || callAgent === undefined ? undefined : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
1628
1628
  if (incomingCall) {
1629
1629
  yield incomingCall.accept(localVideoStream ? { videoOptions: { localVideoStreams: [localVideoStream] } } : undefined);
1630
1630
  }
1631
- }), onRejectCall: (incomingCallId) => __awaiter$10(undefined, undefined, undefined, function* () {
1631
+ }), onRejectCall: (incomingCallId) => __awaiter$11(undefined, undefined, undefined, function* () {
1632
1632
  const incomingCall = callAgent === null || callAgent === undefined ? undefined : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
1633
1633
  if (incomingCall) {
1634
1634
  yield incomingCall.reject();
1635
1635
  }
1636
1636
  }),
1637
1637
  /* @conditional-compile-remove(together-mode) */
1638
- onStartTogetherMode: () => __awaiter$10(undefined, undefined, undefined, function* () {
1638
+ onStartTogetherMode: () => __awaiter$11(undefined, undefined, undefined, function* () {
1639
1639
  if (!call) {
1640
1640
  return;
1641
1641
  }
@@ -2089,7 +2089,7 @@ const getRealTimeTextDisplayName = (realTimeText, identifier, remoteParticipants
2089
2089
 
2090
2090
  // Copyright (c) Microsoft Corporation.
2091
2091
  // Licensed under the MIT License.
2092
- var __awaiter$$ = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
2092
+ var __awaiter$10 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
2093
2093
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2094
2094
  return new (P || (P = Promise))(function (resolve, reject) {
2095
2095
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -2170,7 +2170,7 @@ class ProxyDeviceManager {
2170
2170
  }
2171
2171
  }
2172
2172
  };
2173
- this.permissionsApiStateChangeHandler = () => __awaiter$$(this, undefined, undefined, function* () {
2173
+ this.permissionsApiStateChangeHandler = () => __awaiter$10(this, undefined, undefined, function* () {
2174
2174
  yield this.updateDevicePermissionState();
2175
2175
  });
2176
2176
  /**
@@ -2181,13 +2181,13 @@ class ProxyDeviceManager {
2181
2181
  this.selectCamera = (videoDeviceInfo) => {
2182
2182
  this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);
2183
2183
  };
2184
- this.videoDevicesUpdated = () => __awaiter$$(this, undefined, undefined, function* () {
2184
+ this.videoDevicesUpdated = () => __awaiter$10(this, undefined, undefined, function* () {
2185
2185
  // Device Manager always has a camera with '' name if there are no real camera devices available.
2186
2186
  // We don't want to show that in the UI.
2187
2187
  const realCameras = (yield this._deviceManager.getCameras()).filter((c) => !!c.name);
2188
2188
  this._context.setDeviceManagerCameras(dedupeById(realCameras));
2189
2189
  });
2190
- this.audioDevicesUpdated = () => __awaiter$$(this, undefined, undefined, function* () {
2190
+ this.audioDevicesUpdated = () => __awaiter$10(this, undefined, undefined, function* () {
2191
2191
  this._context.setDeviceManagerMicrophones(dedupeById(yield this._deviceManager.getMicrophones()));
2192
2192
  if (this._deviceManager.isSpeakerSelectionAvailable) {
2193
2193
  this._context.setDeviceManagerSpeakers(dedupeById(yield this._deviceManager.getSpeakers()));
@@ -2199,7 +2199,7 @@ class ProxyDeviceManager {
2199
2199
  this.selectedSpeakerChanged = () => {
2200
2200
  this._context.setDeviceManagerSelectedSpeaker(this._deviceManager.selectedSpeaker);
2201
2201
  };
2202
- this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$$(this, undefined, undefined, function* () {
2202
+ this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$10(this, undefined, undefined, function* () {
2203
2203
  let hasCameraPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === undefined ? undefined : sdkDeviceAccessState.video);
2204
2204
  let hasMicPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === undefined ? undefined : sdkDeviceAccessState.audio);
2205
2205
  // Supplement the SDK values with values from the Permissions API to get a better understanding of the device
@@ -2277,7 +2277,7 @@ class ProxyDeviceManager {
2277
2277
  }
2278
2278
  case 'askDevicePermission': {
2279
2279
  return this._context.withAsyncErrorTeedToState((...args) => {
2280
- return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$$(this, undefined, undefined, function* () {
2280
+ return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$10(this, undefined, undefined, function* () {
2281
2281
  yield this.updateDevicePermissionState(deviceAccess);
2282
2282
  return deviceAccess;
2283
2283
  }));
@@ -2703,7 +2703,7 @@ class CallIdHistory {
2703
2703
 
2704
2704
  // Copyright (c) Microsoft Corporation.
2705
2705
  // Licensed under the MIT License.
2706
- var __awaiter$_ = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
2706
+ var __awaiter$$ = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
2707
2707
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2708
2708
  return new (P || (P = Promise))(function (resolve, reject) {
2709
2709
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -3892,7 +3892,7 @@ let CallContext$2 = class CallContext {
3892
3892
  * @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.
3893
3893
  */
3894
3894
  withAsyncErrorTeedToState(action, target) {
3895
- return (...args) => __awaiter$_(this, undefined, undefined, function* () {
3895
+ return (...args) => __awaiter$$(this, undefined, undefined, function* () {
3896
3896
  try {
3897
3897
  return yield action(...args);
3898
3898
  }
@@ -4458,7 +4458,7 @@ function _logStreamEvent(eventName, streamLogInfo, error) {
4458
4458
 
4459
4459
  // Copyright (c) Microsoft Corporation.
4460
4460
  // Licensed under the MIT License.
4461
- var __awaiter$Z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4461
+ var __awaiter$_ = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4462
4462
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4463
4463
  return new (P || (P = Promise))(function (resolve, reject) {
4464
4464
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -4468,7 +4468,7 @@ var __awaiter$Z = (window && window.__awaiter) || function (thisArg, _arguments,
4468
4468
  });
4469
4469
  };
4470
4470
  function createViewVideo(context, internalContext, callId, stream, participantId, options) {
4471
- return __awaiter$Z(this, undefined, undefined, function* () {
4471
+ return __awaiter$_(this, undefined, undefined, function* () {
4472
4472
  // we can only have 3 types of createView
4473
4473
  let streamEventType;
4474
4474
  // we will reuse these for local as well but we need to make sure the remote stream is passed in like before.
@@ -4597,7 +4597,7 @@ function createViewVideo(context, internalContext, callId, stream, participantId
4597
4597
  });
4598
4598
  }
4599
4599
  function createViewUnparentedVideo(context, internalContext, stream, options) {
4600
- return __awaiter$Z(this, undefined, undefined, function* () {
4600
+ return __awaiter$_(this, undefined, undefined, function* () {
4601
4601
  const renderInfo = internalContext.getUnparentedRenderInfo(stream);
4602
4602
  if (renderInfo && renderInfo.status === 'Rendered') {
4603
4603
  console.warn('Unparented LocalVideoStream is already rendered');
@@ -4766,7 +4766,7 @@ function createView$1(context, internalContext, callId, participantId, stream, o
4766
4766
  // Render LocalVideoStream that is not part of a Call
4767
4767
  // Because it is not part of the call we don't tee errors to state naturally (e.g. via a Call Client function such as startVideo).
4768
4768
  // We do not have a startLocalPreviewVideo function, so as a workaround we ensure any errors are propagated here.
4769
- return context.withAsyncErrorTeedToState(() => __awaiter$Z(this, undefined, undefined, function* () { return yield createViewUnparentedVideo(context, internalContext, stream, options); }), 'Call.startVideo')();
4769
+ return context.withAsyncErrorTeedToState(() => __awaiter$_(this, undefined, undefined, function* () { return yield createViewUnparentedVideo(context, internalContext, stream, options); }), 'Call.startVideo')();
4770
4770
  }
4771
4771
  else {
4772
4772
  _logStreamEvent(EventNames.CREATE_STREAM_INVALID_PARAMS, { streamType });
@@ -4962,7 +4962,7 @@ class RecordingSubscriber {
4962
4962
 
4963
4963
  // Copyright (c) Microsoft Corporation.
4964
4964
  // Licensed under the MIT License.
4965
- var __awaiter$Y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4965
+ var __awaiter$Z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4966
4966
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4967
4967
  return new (P || (P = Promise))(function (resolve, reject) {
4968
4968
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -4986,7 +4986,7 @@ class PPTLiveSubscriber {
4986
4986
  this._context.setCallPPTLiveActive(this._callIdRef.callId, this._pptLive.isActive);
4987
4987
  this.checkAndUpdatePPTLiveParticipant();
4988
4988
  };
4989
- this.checkAndUpdatePPTLiveParticipant = () => __awaiter$Y(this, undefined, undefined, function* () {
4989
+ this.checkAndUpdatePPTLiveParticipant = () => __awaiter$Z(this, undefined, undefined, function* () {
4990
4990
  if (!this._pptLive.activePresenterId) {
4991
4991
  return;
4992
4992
  }
@@ -5945,7 +5945,7 @@ class IncomingCallSubscriber {
5945
5945
 
5946
5946
  // Copyright (c) Microsoft Corporation.
5947
5947
  // Licensed under the MIT License.
5948
- var __awaiter$X = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
5948
+ var __awaiter$Y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
5949
5949
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5950
5950
  return new (P || (P = Promise))(function (resolve, reject) {
5951
5951
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -5965,14 +5965,14 @@ class ProxyIncomingCall {
5965
5965
  switch (prop) {
5966
5966
  case 'accept': {
5967
5967
  return this._context.withAsyncErrorTeedToState(function (...args) {
5968
- return __awaiter$X(this, undefined, undefined, function* () {
5968
+ return __awaiter$Y(this, undefined, undefined, function* () {
5969
5969
  return yield target.accept(...args);
5970
5970
  });
5971
5971
  }, 'IncomingCall.accept');
5972
5972
  }
5973
5973
  case 'reject': {
5974
5974
  return this._context.withAsyncErrorTeedToState(function (...args) {
5975
- return __awaiter$X(this, undefined, undefined, function* () {
5975
+ return __awaiter$Y(this, undefined, undefined, function* () {
5976
5976
  return yield target.reject(...args);
5977
5977
  });
5978
5978
  }, 'IncomingCall.reject');
@@ -5994,7 +5994,7 @@ const incomingCallDeclaratify = (incomingCall, context) => {
5994
5994
 
5995
5995
  // Copyright (c) Microsoft Corporation.
5996
5996
  // Licensed under the MIT License.
5997
- var __awaiter$W = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
5997
+ var __awaiter$X = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
5998
5998
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5999
5999
  return new (P || (P = Promise))(function (resolve, reject) {
6000
6000
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6014,14 +6014,14 @@ class ProxyTeamsIncomingCall {
6014
6014
  switch (prop) {
6015
6015
  case 'accept': {
6016
6016
  return this._context.withAsyncErrorTeedToState(function (...args) {
6017
- return __awaiter$W(this, undefined, undefined, function* () {
6017
+ return __awaiter$X(this, undefined, undefined, function* () {
6018
6018
  return yield target.accept(...args);
6019
6019
  });
6020
6020
  }, 'IncomingCall.accept');
6021
6021
  }
6022
6022
  case 'reject': {
6023
6023
  return this._context.withAsyncErrorTeedToState(function (...args) {
6024
- return __awaiter$W(this, undefined, undefined, function* () {
6024
+ return __awaiter$X(this, undefined, undefined, function* () {
6025
6025
  return yield target.reject(...args);
6026
6026
  });
6027
6027
  }, 'IncomingCall.reject');
@@ -6240,7 +6240,7 @@ const clearCallRelatedState = (context, internalContext) => {
6240
6240
 
6241
6241
  // Copyright (c) Microsoft Corporation.
6242
6242
  // Licensed under the MIT License.
6243
- var __awaiter$V = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6243
+ var __awaiter$W = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6244
6244
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6245
6245
  return new (P || (P = Promise))(function (resolve, reject) {
6246
6246
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6266,56 +6266,56 @@ class ProxyCallCommon {
6266
6266
  switch (prop) {
6267
6267
  case 'mute': {
6268
6268
  return this._context.withAsyncErrorTeedToState(function (...args) {
6269
- return __awaiter$V(this, undefined, undefined, function* () {
6269
+ return __awaiter$W(this, undefined, undefined, function* () {
6270
6270
  return yield target.mute(...args);
6271
6271
  });
6272
6272
  }, 'Call.mute');
6273
6273
  }
6274
6274
  case 'unmute': {
6275
6275
  return this._context.withAsyncErrorTeedToState(function (...args) {
6276
- return __awaiter$V(this, undefined, undefined, function* () {
6276
+ return __awaiter$W(this, undefined, undefined, function* () {
6277
6277
  return yield target.unmute(...args);
6278
6278
  });
6279
6279
  }, 'Call.unmute');
6280
6280
  }
6281
6281
  case 'startVideo': {
6282
6282
  return this._context.withAsyncErrorTeedToState(function (...args) {
6283
- return __awaiter$V(this, undefined, undefined, function* () {
6283
+ return __awaiter$W(this, undefined, undefined, function* () {
6284
6284
  return yield target.startVideo(...args);
6285
6285
  });
6286
6286
  }, 'Call.startVideo');
6287
6287
  }
6288
6288
  case 'stopVideo': {
6289
6289
  return this._context.withAsyncErrorTeedToState(function (...args) {
6290
- return __awaiter$V(this, undefined, undefined, function* () {
6290
+ return __awaiter$W(this, undefined, undefined, function* () {
6291
6291
  return yield target.stopVideo(...args);
6292
6292
  });
6293
6293
  }, 'Call.stopVideo');
6294
6294
  }
6295
6295
  case 'startScreenSharing': {
6296
6296
  return this._context.withAsyncErrorTeedToState(function (...args) {
6297
- return __awaiter$V(this, undefined, undefined, function* () {
6297
+ return __awaiter$W(this, undefined, undefined, function* () {
6298
6298
  return yield target.startScreenSharing(...args);
6299
6299
  });
6300
6300
  }, 'Call.startScreenSharing');
6301
6301
  }
6302
6302
  case 'stopScreenSharing': {
6303
6303
  return this._context.withAsyncErrorTeedToState(function (...args) {
6304
- return __awaiter$V(this, undefined, undefined, function* () {
6304
+ return __awaiter$W(this, undefined, undefined, function* () {
6305
6305
  return yield target.stopScreenSharing(...args);
6306
6306
  });
6307
6307
  }, 'Call.stopScreenSharing');
6308
6308
  }
6309
6309
  case 'hold': {
6310
6310
  return this._context.withAsyncErrorTeedToState(function (...args) {
6311
- return __awaiter$V(this, undefined, undefined, function* () {
6311
+ return __awaiter$W(this, undefined, undefined, function* () {
6312
6312
  return yield target.hold(...args);
6313
6313
  });
6314
6314
  }, 'Call.hold');
6315
6315
  }
6316
6316
  case 'resume': {
6317
6317
  return this._context.withAsyncErrorTeedToState(function (...args) {
6318
- return __awaiter$V(this, undefined, undefined, function* () {
6318
+ return __awaiter$W(this, undefined, undefined, function* () {
6319
6319
  return yield target.resume(...args);
6320
6320
  });
6321
6321
  }, 'Call.resume');
@@ -6382,7 +6382,7 @@ class ProxyTeamsCaptions {
6382
6382
  get(target, prop) {
6383
6383
  switch (prop) {
6384
6384
  case 'startCaptions':
6385
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$V(this, undefined, undefined, function* () {
6385
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$W(this, undefined, undefined, function* () {
6386
6386
  var _a, _b;
6387
6387
  this._context.setStartCaptionsInProgress(this._call.id, true);
6388
6388
  try {
@@ -6396,7 +6396,7 @@ class ProxyTeamsCaptions {
6396
6396
  }
6397
6397
  }), 'Call.feature');
6398
6398
  case 'stopCaptions':
6399
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$V(this, undefined, undefined, function* () {
6399
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$W(this, undefined, undefined, function* () {
6400
6400
  const ret = yield target.stopCaptions(...args);
6401
6401
  this._context.setIsCaptionActive(this._call.id, false);
6402
6402
  this._context.setStartCaptionsInProgress(this._call.id, false);
@@ -6404,13 +6404,13 @@ class ProxyTeamsCaptions {
6404
6404
  return ret;
6405
6405
  }), 'Call.feature');
6406
6406
  case 'setSpokenLanguage':
6407
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$V(this, undefined, undefined, function* () {
6407
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$W(this, undefined, undefined, function* () {
6408
6408
  const ret = yield target.setSpokenLanguage(...args);
6409
6409
  this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
6410
6410
  return ret;
6411
6411
  }), 'Call.feature');
6412
6412
  case 'setCaptionLanguage':
6413
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$V(this, undefined, undefined, function* () {
6413
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$W(this, undefined, undefined, function* () {
6414
6414
  const ret = yield target.setCaptionLanguage(...args);
6415
6415
  this._context.setSelectedCaptionLanguage(this._call.id, args[0]);
6416
6416
  return ret;
@@ -6431,7 +6431,7 @@ class ProxyCaptions {
6431
6431
  get(target, prop) {
6432
6432
  switch (prop) {
6433
6433
  case 'startCaptions':
6434
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$V(this, undefined, undefined, function* () {
6434
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$W(this, undefined, undefined, function* () {
6435
6435
  var _a, _b;
6436
6436
  this._context.setStartCaptionsInProgress(this._call.id, true);
6437
6437
  try {
@@ -6445,7 +6445,7 @@ class ProxyCaptions {
6445
6445
  }
6446
6446
  }), 'Call.feature');
6447
6447
  case 'stopCaptions':
6448
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$V(this, undefined, undefined, function* () {
6448
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$W(this, undefined, undefined, function* () {
6449
6449
  const ret = yield target.stopCaptions(...args);
6450
6450
  this._context.setIsCaptionActive(this._call.id, false);
6451
6451
  this._context.setStartCaptionsInProgress(this._call.id, false);
@@ -6453,7 +6453,7 @@ class ProxyCaptions {
6453
6453
  return ret;
6454
6454
  }), 'Call.feature');
6455
6455
  case 'setSpokenLanguage':
6456
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$V(this, undefined, undefined, function* () {
6456
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$W(this, undefined, undefined, function* () {
6457
6457
  const ret = yield target.setSpokenLanguage(...args);
6458
6458
  this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
6459
6459
  return ret;
@@ -6473,12 +6473,12 @@ class ProxySpotlightCallFeature {
6473
6473
  get(target, prop) {
6474
6474
  switch (prop) {
6475
6475
  case 'startSpotlight':
6476
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$V(this, undefined, undefined, function* () {
6476
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$W(this, undefined, undefined, function* () {
6477
6477
  const ret = yield target.startSpotlight(...args);
6478
6478
  return ret;
6479
6479
  }), 'Call.feature');
6480
6480
  case 'stopSpotlight':
6481
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$V(this, undefined, undefined, function* () {
6481
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$W(this, undefined, undefined, function* () {
6482
6482
  const ret = yield target.stopSpotlight(...args);
6483
6483
  return ret;
6484
6484
  }), 'Call.feature');
@@ -6520,7 +6520,7 @@ class ProxyTransferCallFeature {
6520
6520
 
6521
6521
  // Copyright (c) Microsoft Corporation.
6522
6522
  // Licensed under the MIT License.
6523
- var __awaiter$U = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6523
+ var __awaiter$V = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6524
6524
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6525
6525
  return new (P || (P = Promise))(function (resolve, reject) {
6526
6526
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6534,7 +6534,7 @@ class ProxyCall extends ProxyCallCommon {
6534
6534
  switch (prop) {
6535
6535
  case 'addParticipant': {
6536
6536
  return this.getContext().withAsyncErrorTeedToState(function (...args) {
6537
- return __awaiter$U(this, undefined, undefined, function* () {
6537
+ return __awaiter$V(this, undefined, undefined, function* () {
6538
6538
  return yield target.addParticipant(...args);
6539
6539
  });
6540
6540
  }, 'Call.addParticipant');
@@ -6819,7 +6819,7 @@ class InternalCallContext {
6819
6819
 
6820
6820
  // Copyright (c) Microsoft Corporation.
6821
6821
  // Licensed under the MIT License.
6822
- var __awaiter$T = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6822
+ var __awaiter$U = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6823
6823
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6824
6824
  return new (P || (P = Promise))(function (resolve, reject) {
6825
6825
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6834,7 +6834,7 @@ class ProxyTeamsCall extends ProxyCallCommon {
6834
6834
  /* @conditional-compile-remove(teams-identity-support-beta) */
6835
6835
  case 'addParticipant': {
6836
6836
  return this.getContext().withAsyncErrorTeedToState(function (...args) {
6837
- return __awaiter$T(this, undefined, undefined, function* () {
6837
+ return __awaiter$U(this, undefined, undefined, function* () {
6838
6838
  return yield target.addParticipant(...args);
6839
6839
  });
6840
6840
  }, 'TeamsCall.addParticipant');
@@ -6941,7 +6941,7 @@ const teamsCallAgentDeclaratify = (callAgent, context, internalContext) => {
6941
6941
 
6942
6942
  // Copyright (c) Microsoft Corporation.
6943
6943
  // Licensed under the MIT License.
6944
- var __awaiter$S = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6944
+ var __awaiter$T = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6945
6945
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6946
6946
  return new (P || (P = Promise))(function (resolve, reject) {
6947
6947
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6963,7 +6963,7 @@ class ProxyVideoStreamRendererView {
6963
6963
  get(target, prop) {
6964
6964
  switch (prop) {
6965
6965
  case 'updateScalingMode': {
6966
- return (...args) => __awaiter$S(this, undefined, undefined, function* () {
6966
+ return (...args) => __awaiter$T(this, undefined, undefined, function* () {
6967
6967
  yield target.updateScalingMode(...args);
6968
6968
  this._context.setRemoteVideoStreamViewScalingMode(this._callId, this._participantId, this._streamId, args[0]);
6969
6969
  });
@@ -6982,7 +6982,7 @@ const videoStreamRendererViewDeclaratify = (view, context, callId, participantId
6982
6982
  return new Proxy(view, proxyVideoStreamRendererView);
6983
6983
  };
6984
6984
 
6985
- var __awaiter$R = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6985
+ var __awaiter$S = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6986
6986
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6987
6987
  return new (P || (P = Promise))(function (resolve, reject) {
6988
6988
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -7009,7 +7009,7 @@ function createView(context, internalContext, callId, stream, options) {
7009
7009
  /* @conditional-compile-remove(together-mode) */
7010
7010
  // This function is used to create a view for a stream that is part of a call feature.
7011
7011
  function createCallFeatureViewVideo(context, internalContext, callId, stream, options) {
7012
- return __awaiter$R(this, undefined, undefined, function* () {
7012
+ return __awaiter$S(this, undefined, undefined, function* () {
7013
7013
  const streamEventType = 'createViewCallFeature';
7014
7014
  const streamType = stream === null || stream === undefined ? undefined : stream.mediaStreamType;
7015
7015
  const callFeatureStreamId = stream && stream.id;
@@ -7180,7 +7180,7 @@ function isCallFeatureStream(stream) {
7180
7180
 
7181
7181
  // Copyright (c) Microsoft Corporation.
7182
7182
  // Licensed under the MIT License.
7183
- var __awaiter$Q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
7183
+ var __awaiter$R = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
7184
7184
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7185
7185
  return new (P || (P = Promise))(function (resolve, reject) {
7186
7186
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -7202,7 +7202,7 @@ class ProxyCallClient {
7202
7202
  get(target, prop) {
7203
7203
  switch (prop) {
7204
7204
  case 'createCallAgent': {
7205
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Q(this, undefined, undefined, function* () {
7205
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$R(this, undefined, undefined, function* () {
7206
7206
  // createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
7207
7207
  // callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
7208
7208
  // callAgent if the createCallAgent succeeds.
@@ -7215,7 +7215,7 @@ class ProxyCallClient {
7215
7215
  }), 'CallClient.createCallAgent');
7216
7216
  }
7217
7217
  case 'createTeamsCallAgent': {
7218
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Q(this, undefined, undefined, function* () {
7218
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$R(this, undefined, undefined, function* () {
7219
7219
  // createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
7220
7220
  // callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
7221
7221
  // callAgent if the createCallAgent succeeds.
@@ -7228,7 +7228,7 @@ class ProxyCallClient {
7228
7228
  }), 'CallClient.createTeamsCallAgent');
7229
7229
  }
7230
7230
  case 'getDeviceManager': {
7231
- return this._context.withAsyncErrorTeedToState(() => __awaiter$Q(this, undefined, undefined, function* () {
7231
+ return this._context.withAsyncErrorTeedToState(() => __awaiter$R(this, undefined, undefined, function* () {
7232
7232
  // As of writing, the SDK always returns the same instance of DeviceManager so we keep a reference of
7233
7233
  // DeviceManager and if it does not change we return the cached DeclarativeDeviceManager. If it does not we'll
7234
7234
  // throw an error that indicate we need to fix this issue as our implementation has diverged from the SDK.
@@ -7256,7 +7256,7 @@ class ProxyCallClient {
7256
7256
  /**
7257
7257
  * add to this object if we want to proxy anything else off the DebugInfo feature object.
7258
7258
  */
7259
- return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$Q(this, undefined, undefined, function* () {
7259
+ return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$R(this, undefined, undefined, function* () {
7260
7260
  const environmentInfo = yield feature.getEnvironmentInfo();
7261
7261
  this._context.setEnvironmentInfo(environmentInfo);
7262
7262
  return environmentInfo;
@@ -7316,7 +7316,7 @@ const createStatefulCallClientWithDeps = (callClient, context, internalContext)
7316
7316
  });
7317
7317
  Object.defineProperty(callClient, 'createView', {
7318
7318
  configurable: false,
7319
- value: (callId, participantId, stream, options) => __awaiter$Q(undefined, undefined, undefined, function* () {
7319
+ value: (callId, participantId, stream, options) => __awaiter$R(undefined, undefined, undefined, function* () {
7320
7320
  /* @conditional-compile-remove(together-mode) */
7321
7321
  if ('feature' in stream) {
7322
7322
  return yield createView(context, internalContext, callId, stream, options);
@@ -10072,7 +10072,7 @@ const _MentionPopover = (props) => {
10072
10072
 
10073
10073
  // Copyright (c) Microsoft Corporation.
10074
10074
  // Licensed under the MIT License.
10075
- var __awaiter$P = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10075
+ var __awaiter$Q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10076
10076
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10077
10077
  return new (P || (P = Promise))(function (resolve, reject) {
10078
10078
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -10258,7 +10258,7 @@ const TextFieldWithMention = (props) => {
10258
10258
  onSuggestionSelected,
10259
10259
  updateMentionSuggestions
10260
10260
  ]);
10261
- const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$P(undefined, undefined, undefined, function* () {
10261
+ const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$Q(undefined, undefined, undefined, function* () {
10262
10262
  var _a;
10263
10263
  let suggestions = (_a = (yield (mentionLookupOptions === null || mentionLookupOptions === undefined ? undefined : mentionLookupOptions.onQueryUpdated(query)))) !== null && _a !== undefined ? _a : [];
10264
10264
  suggestions = suggestions.filter((suggestion) => suggestion.displayText.trim() !== '');
@@ -10435,7 +10435,7 @@ const TextFieldWithMention = (props) => {
10435
10435
  });
10436
10436
  }
10437
10437
  }, [updateSelectionIndexesWithMentionIfNeeded, setSelectionStartValue, setSelectionEndValue]);
10438
- const handleOnChange = React.useCallback((_b) => __awaiter$P(undefined, [_b], undefined, function* ({ currentSelectionEnd, currentSelectionStart, currentTriggerStartIndex, event, htmlTextValue, inputTextValue, previousSelectionEnd, previousSelectionStart, tagsValue, updatedValue }) {
10438
+ const handleOnChange = React.useCallback((_b) => __awaiter$Q(undefined, [_b], undefined, function* ({ currentSelectionEnd, currentSelectionStart, currentTriggerStartIndex, event, htmlTextValue, inputTextValue, previousSelectionEnd, previousSelectionStart, tagsValue, updatedValue }) {
10439
10439
  var _c;
10440
10440
  debouncedQueryUpdate.cancel();
10441
10441
  if (event.currentTarget === null) {
@@ -10984,7 +10984,7 @@ const ATTACHMENT_CARD_MIN_PROGRESS = 0.05;
10984
10984
 
10985
10985
  // Copyright (c) Microsoft Corporation.
10986
10986
  // Licensed under the MIT License.
10987
- var __awaiter$O = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10987
+ var __awaiter$P = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10988
10988
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10989
10989
  return new (P || (P = Promise))(function (resolve, reject) {
10990
10990
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -11073,7 +11073,7 @@ const MappedMenuItems = (menuActions, attachment, handleOnClickError) => {
11073
11073
  React.createElement(reactComponents.MenuTrigger, null,
11074
11074
  React.createElement(reactComponents.ToolbarButton, { "aria-label": localeStrings.attachmentMoreMenu, role: "button", icon: React.createElement(react.Icon, { iconName: "AttachmentMoreMenu" }) }))),
11075
11075
  React.createElement(reactComponents.MenuPopover, null,
11076
- React.createElement(reactComponents.MenuList, null, menuActions.map((menuItem, index) => (React.createElement(reactComponents.MenuItem, { "aria-label": menuItem.name, key: index, icon: menuItem.icon, onClick: () => __awaiter$O(undefined, undefined, undefined, function* () {
11076
+ React.createElement(reactComponents.MenuList, null, menuActions.map((menuItem, index) => (React.createElement(reactComponents.MenuItem, { "aria-label": menuItem.name, key: index, icon: menuItem.icon, onClick: () => __awaiter$P(undefined, undefined, undefined, function* () {
11077
11077
  try {
11078
11078
  yield menuItem.onClick(attachment);
11079
11079
  }
@@ -11208,7 +11208,7 @@ const _AttachmentUploadCards = (props) => {
11208
11208
 
11209
11209
  // Copyright (c) Microsoft Corporation.
11210
11210
  // Licensed under the MIT License.
11211
- var __awaiter$N = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
11211
+ var __awaiter$O = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
11212
11212
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11213
11213
  return new (P || (P = Promise))(function (resolve, reject) {
11214
11214
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -11257,7 +11257,7 @@ const hasInlineImageContent = (content) => {
11257
11257
  *
11258
11258
  * @returns The updated message content.
11259
11259
  */
11260
- const updateStylesOfInlineImages = (message, initialInlineImages) => __awaiter$N(undefined, undefined, undefined, function* () {
11260
+ const updateStylesOfInlineImages = (message, initialInlineImages) => __awaiter$O(undefined, undefined, undefined, function* () {
11261
11261
  if (message === '') {
11262
11262
  return message;
11263
11263
  }
@@ -11349,7 +11349,7 @@ const toAttachmentMetadata = (attachmentsWithProgress) => {
11349
11349
  /**
11350
11350
  * @internal
11351
11351
  */
11352
- const modifyInlineImagesInContentString = (content, initialInlineImages, onCompleted) => __awaiter$N(undefined, undefined, undefined, function* () {
11352
+ const modifyInlineImagesInContentString = (content, initialInlineImages, onCompleted) => __awaiter$O(undefined, undefined, undefined, function* () {
11353
11353
  let newContent = content;
11354
11354
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
11355
11355
  try {
@@ -12631,7 +12631,7 @@ const removeSingleLocalBlob = (currentLocalBlobMap, imageId) => {
12631
12631
  }
12632
12632
  };
12633
12633
 
12634
- var __awaiter$M = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12634
+ var __awaiter$N = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12635
12635
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12636
12636
  return new (P || (P = Promise))(function (resolve, reject) {
12637
12637
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -12686,7 +12686,7 @@ class CopyPastePlugin {
12686
12686
  onPluginEvent(event) {
12687
12687
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
12688
12688
  if (event.eventType === PluginEventType.BeforeCutCopy) {
12689
- event.clonedRoot.querySelectorAll('img').forEach((image) => __awaiter$M(this, undefined, undefined, function* () {
12689
+ event.clonedRoot.querySelectorAll('img').forEach((image) => __awaiter$N(this, undefined, undefined, function* () {
12690
12690
  if (image.src.startsWith('blob:')) {
12691
12691
  const base64Data = this.imageBase64DataMap[image.id];
12692
12692
  image.src = base64Data || image.src;
@@ -16432,7 +16432,7 @@ class _ErrorBoundary extends React.Component {
16432
16432
  // Copyright (c) Microsoft Corporation.
16433
16433
  // Licensed under the MIT License.
16434
16434
  /* @conditional-compile-remove(rich-text-editor) */
16435
- const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-B7z_PfOA.js'); }));
16435
+ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-DzVuW5SN.js'); }));
16436
16436
  /**
16437
16437
  * @private
16438
16438
  * Use this function to load RoosterJS dependencies early in the lifecycle.
@@ -16440,7 +16440,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
16440
16440
  *
16441
16441
  * @conditional-compile-remove(rich-text-editor)
16442
16442
  */
16443
- const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-B7z_PfOA.js'); });
16443
+ const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-DzVuW5SN.js'); });
16444
16444
  /**
16445
16445
  * @private
16446
16446
  */
@@ -16459,7 +16459,7 @@ const ChatMessageComponentAsEditBoxPicker = (props) => {
16459
16459
 
16460
16460
  // Copyright (c) Microsoft Corporation.
16461
16461
  // Licensed under the MIT License.
16462
- var __awaiter$L = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16462
+ var __awaiter$M = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16463
16463
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16464
16464
  return new (P || (P = Promise))(function (resolve, reject) {
16465
16465
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -16519,7 +16519,7 @@ const ChatMyMessageComponent = (props) => {
16519
16519
  function (text,
16520
16520
  /* @conditional-compile-remove(file-sharing-acs) */
16521
16521
  attachments) {
16522
- return __awaiter$L(this, undefined, undefined, function* () {
16522
+ return __awaiter$M(this, undefined, undefined, function* () {
16523
16523
  /* @conditional-compile-remove(file-sharing-acs) */
16524
16524
  if (`attachments` in message && attachments) {
16525
16525
  message.attachments = attachments;
@@ -16926,7 +16926,7 @@ const fluentChatComponent = (props) => {
16926
16926
 
16927
16927
  // Copyright (c) Microsoft Corporation.
16928
16928
  // Licensed under the MIT License.
16929
- var __awaiter$K = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16929
+ var __awaiter$L = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16930
16930
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16931
16931
  return new (P || (P = Promise))(function (resolve, reject) {
16932
16932
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -17122,7 +17122,7 @@ const MessageThreadWrapper = (props) => {
17122
17122
  loadChatMessageComponentAsRichTextEditBox();
17123
17123
  }
17124
17124
  }, [richTextEditorOptions]);
17125
- const onDeleteMessageCallback = React.useCallback((messageId) => __awaiter$K(undefined, undefined, undefined, function* () {
17125
+ const onDeleteMessageCallback = React.useCallback((messageId) => __awaiter$L(undefined, undefined, undefined, function* () {
17126
17126
  if (!onDeleteMessage) {
17127
17127
  return;
17128
17128
  }
@@ -17203,7 +17203,7 @@ const MessageThreadWrapper = (props) => {
17203
17203
  */
17204
17204
  const clientHeight = (_a = chatThreadRef.current) === null || _a === undefined ? undefined : _a.clientHeight;
17205
17205
  // we try to only send those message status if user is scrolled to the bottom.
17206
- const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$K(undefined, undefined, undefined, function* () {
17206
+ const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$L(undefined, undefined, undefined, function* () {
17207
17207
  if (!isAtBottomOfScrollRef.current ||
17208
17208
  !document.hasFocus() ||
17209
17209
  !messagesRef.current ||
@@ -17254,7 +17254,7 @@ const MessageThreadWrapper = (props) => {
17254
17254
  setIsAtBottomOfScrollRef(atBottom);
17255
17255
  }, [scrollToBottom, sendMessageStatusIfAtBottom]);
17256
17256
  // Infinite scrolling + threadInitialize function
17257
- const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$K(undefined, undefined, undefined, function* () {
17257
+ const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$L(undefined, undefined, undefined, function* () {
17258
17258
  if (!isLoadingChatMessagesRef.current) {
17259
17259
  if (onLoadPreviousChatMessages) {
17260
17260
  isLoadingChatMessagesRef.current = true;
@@ -20846,7 +20846,7 @@ const localVideoTileContainerStyles = {
20846
20846
 
20847
20847
  // Copyright (c) Microsoft Corporation.
20848
20848
  // Licensed under the MIT License.
20849
- var __awaiter$J = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20849
+ var __awaiter$K = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20850
20850
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20851
20851
  return new (P || (P = Promise))(function (resolve, reject) {
20852
20852
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -20863,7 +20863,7 @@ const LocalVideoCameraCycleButton = (props) => {
20863
20863
  const { cameras, selectedCamera, onSelectCamera, label, ariaDescription, size } = props;
20864
20864
  const theme = react.useTheme();
20865
20865
  const [waitForCamera, setWaitForCamera] = React.useState(false);
20866
- const onChangeCameraClick = React.useCallback((device) => __awaiter$J(undefined, undefined, undefined, function* () {
20866
+ const onChangeCameraClick = React.useCallback((device) => __awaiter$K(undefined, undefined, undefined, function* () {
20867
20867
  // Throttle changing camera to prevent too many callbacks
20868
20868
  if (onSelectCamera) {
20869
20869
  setWaitForCamera(true);
@@ -23754,7 +23754,7 @@ const DevicesButton = (props) => {
23754
23754
 
23755
23755
  // Copyright (c) Microsoft Corporation.
23756
23756
  // Licensed under the MIT License.
23757
- var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
23757
+ var __awaiter$J = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
23758
23758
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23759
23759
  return new (P || (P = Promise))(function (resolve, reject) {
23760
23760
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -23805,7 +23805,7 @@ const CameraButton = (props) => {
23805
23805
  setAnnouncerString(strings.tooltipVideoLoadingContent);
23806
23806
  }
23807
23807
  }, [setAnnouncerString, cameraOn, strings.tooltipVideoLoadingContent]);
23808
- const onToggleClick = React.useCallback(() => __awaiter$I(undefined, undefined, undefined, function* () {
23808
+ const onToggleClick = React.useCallback(() => __awaiter$J(undefined, undefined, undefined, function* () {
23809
23809
  // Throttle click on camera, need to await onToggleCamera then allow another click
23810
23810
  if (onToggleCamera) {
23811
23811
  setWaitForCamera(true);
@@ -23823,7 +23823,7 @@ const CameraButton = (props) => {
23823
23823
  onVideoIsLoadingAnnouncementCallback();
23824
23824
  onToggleClick();
23825
23825
  }, [onVideoIsLoadingAnnouncementCallback, onToggleClick]);
23826
- const onChangeCameraClick = React.useCallback((device) => __awaiter$I(undefined, undefined, undefined, function* () {
23826
+ const onChangeCameraClick = React.useCallback((device) => __awaiter$J(undefined, undefined, undefined, function* () {
23827
23827
  // Throttle changing camera to prevent too many callbacks
23828
23828
  if (onSelectCamera) {
23829
23829
  setWaitForCamera(true);
@@ -24038,7 +24038,7 @@ const menupButtonPadding = {
24038
24038
 
24039
24039
  // Copyright (c) Microsoft Corporation.
24040
24040
  // Licensed under the MIT License.
24041
- var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
24041
+ var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
24042
24042
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
24043
24043
  return new (P || (P = Promise))(function (resolve, reject) {
24044
24044
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -24080,7 +24080,7 @@ const MicrophoneButton = (props) => {
24080
24080
  const toggleAnnouncerString = React.useCallback((isMicOn) => {
24081
24081
  setAnnouncerString(!isMicOn ? strings.microphoneActionTurnedOffAnnouncement : strings.microphoneActionTurnedOnAnnouncement);
24082
24082
  }, [strings.microphoneActionTurnedOffAnnouncement, strings.microphoneActionTurnedOnAnnouncement]);
24083
- const onToggleClick = React.useCallback(() => __awaiter$H(undefined, undefined, undefined, function* () {
24083
+ const onToggleClick = React.useCallback(() => __awaiter$I(undefined, undefined, undefined, function* () {
24084
24084
  if (onToggleMicrophone) {
24085
24085
  try {
24086
24086
  yield onToggleMicrophone();
@@ -24106,7 +24106,7 @@ const MicrophoneButton = (props) => {
24106
24106
  splitButtonMenuItems.push({
24107
24107
  key: 'microphoneDNSToggle',
24108
24108
  onRender: () => {
24109
- return (React.createElement(react.Stack, { onClick: () => __awaiter$H(undefined, undefined, undefined, function* () {
24109
+ return (React.createElement(react.Stack, { onClick: () => __awaiter$I(undefined, undefined, undefined, function* () {
24110
24110
  var _a;
24111
24111
  yield ((_a = props.onClickNoiseSuppression) === null || _a === undefined ? undefined : _a.call(props));
24112
24112
  setAnnouncerString(props.isDeepNoiseSuppressionOn
@@ -24973,7 +24973,7 @@ const dtmfFrequencies = {
24973
24973
 
24974
24974
  // Copyright (c) Microsoft Corporation.
24975
24975
  // Licensed under the MIT License.
24976
- var __awaiter$G = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
24976
+ var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
24977
24977
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
24978
24978
  return new (P || (P = Promise))(function (resolve, reject) {
24979
24979
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -25017,10 +25017,10 @@ const DialpadButton = (props) => {
25017
25017
  const [buttonPressed, setButtonPressed] = React.useState(false);
25018
25018
  const dtmfToneSound = React.useRef(new Tone(dtmfToneAudioContext, dtmfFrequencies[digit].f1, dtmfFrequencies[digit].f2));
25019
25019
  const useLongPressProps = React.useMemo(() => ({
25020
- onClick: () => __awaiter$G(undefined, undefined, undefined, function* () {
25020
+ onClick: () => __awaiter$H(undefined, undefined, undefined, function* () {
25021
25021
  onClick(digit, index);
25022
25022
  }),
25023
- onLongPress: () => __awaiter$G(undefined, undefined, undefined, function* () {
25023
+ onLongPress: () => __awaiter$H(undefined, undefined, undefined, function* () {
25024
25024
  onLongPress(digit, index);
25025
25025
  }),
25026
25026
  touchEventsOnly: longPressTrigger === 'touch'
@@ -26570,7 +26570,7 @@ const CaptionsBanner = (props) => {
26570
26570
 
26571
26571
  // Copyright (c) Microsoft Corporation.
26572
26572
  // Licensed under the MIT License.
26573
- var __awaiter$F = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26573
+ var __awaiter$G = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26574
26574
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26575
26575
  return new (P || (P = Promise))(function (resolve, reject) {
26576
26576
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -26601,7 +26601,7 @@ const StartCaptionsButton = (props) => {
26601
26601
  return { spokenLanguage: currentSpokenLanguage === '' ? defaultSpokenLanguage : currentSpokenLanguage };
26602
26602
  }, [currentSpokenLanguage]);
26603
26603
  const [hasSetSpokenLanguage, setHasSetSpokenLanguage] = React.useState(false);
26604
- const onToggleStartCaptions = React.useCallback(() => __awaiter$F(undefined, undefined, undefined, function* () {
26604
+ const onToggleStartCaptions = React.useCallback(() => __awaiter$G(undefined, undefined, undefined, function* () {
26605
26605
  if (props.checked) {
26606
26606
  onStopCaptions();
26607
26607
  }
@@ -26673,7 +26673,7 @@ const _spokenLanguageToCaptionLanguage = {
26673
26673
 
26674
26674
  // Copyright (c) Microsoft Corporation.
26675
26675
  // Licensed under the MIT License.
26676
- var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26676
+ var __awaiter$F = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26677
26677
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26678
26678
  return new (P || (P = Promise))(function (resolve, reject) {
26679
26679
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -26723,7 +26723,7 @@ const CaptionsSettingsModal = (props) => {
26723
26723
  onDismissCaptionsSettings();
26724
26724
  }
26725
26725
  }, [onDismissCaptionsSettings]);
26726
- const onConfirm = React.useCallback(() => __awaiter$E(undefined, undefined, undefined, function* () {
26726
+ const onConfirm = React.useCallback(() => __awaiter$F(undefined, undefined, undefined, function* () {
26727
26727
  const spokenLanguageCode = selectedSpokenLanguage.key;
26728
26728
  const captionLanguageCode = selectedCaptionLanguage.key;
26729
26729
  if (isCaptionsFeatureActive) {
@@ -26820,7 +26820,7 @@ const CaptionsSettingsModal = (props) => {
26820
26820
  React.createElement("span", null, strings === null || strings === undefined ? undefined : strings.captionsSettingsCancelButtonLabel))))));
26821
26821
  };
26822
26822
 
26823
- var __awaiter$D = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26823
+ var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26824
26824
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26825
26825
  return new (P || (P = Promise))(function (resolve, reject) {
26826
26826
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -26844,7 +26844,7 @@ const RealTimeTextModal = (props) => {
26844
26844
  onDismissModal();
26845
26845
  }
26846
26846
  }, [onDismissModal]);
26847
- const onConfirm = React.useCallback(() => __awaiter$D(undefined, undefined, undefined, function* () {
26847
+ const onConfirm = React.useCallback(() => __awaiter$E(undefined, undefined, undefined, function* () {
26848
26848
  if (onStartRealTimeText) {
26849
26849
  yield onStartRealTimeText();
26850
26850
  }
@@ -28289,7 +28289,7 @@ const getImageAttachmentsFromHTMLContent = (content) => {
28289
28289
 
28290
28290
  // Copyright (c) Microsoft Corporation.
28291
28291
  // Licensed under the MIT License.
28292
- var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
28292
+ var __awaiter$D = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
28293
28293
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28294
28294
  return new (P || (P = Promise))(function (resolve, reject) {
28295
28295
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -28315,7 +28315,7 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
28315
28315
  // due to a bug in babel, we can't use arrow function here
28316
28316
  // affecting conditional-compile-remove(attachment-upload)
28317
28317
  onSendMessage: function (content, options) {
28318
- return __awaiter$C(this, undefined, undefined, function* () {
28318
+ return __awaiter$D(this, undefined, undefined, function* () {
28319
28319
  const sendMessageRequest = {
28320
28320
  content,
28321
28321
  senderDisplayName: chatClient.getState().displayName
@@ -28351,14 +28351,14 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
28351
28351
  },
28352
28352
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
28353
28353
  onUploadImage: function (image, imageFilename) {
28354
- return __awaiter$C(this, undefined, undefined, function* () {
28354
+ return __awaiter$D(this, undefined, undefined, function* () {
28355
28355
  const imageResult = yield chatThreadClient.uploadImage(image, imageFilename);
28356
28356
  return imageResult;
28357
28357
  });
28358
28358
  },
28359
28359
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
28360
28360
  onDeleteImage: function (imageId) {
28361
- return __awaiter$C(this, undefined, undefined, function* () {
28361
+ return __awaiter$D(this, undefined, undefined, function* () {
28362
28362
  try {
28363
28363
  yield chatThreadClient.deleteImage(imageId);
28364
28364
  }
@@ -28373,7 +28373,7 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
28373
28373
  onUpdateMessage: function (messageId, content,
28374
28374
  /* @conditional-compile-remove(file-sharing-acs) */
28375
28375
  options) {
28376
- return __awaiter$C(this, undefined, undefined, function* () {
28376
+ return __awaiter$D(this, undefined, undefined, function* () {
28377
28377
  /* @conditional-compile-remove(rich-text-editor-image-upload) */
28378
28378
  const imageAttachments = getImageAttachmentsFromHTMLContent(content);
28379
28379
  const updateMessageOptions = {
@@ -28386,23 +28386,23 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
28386
28386
  yield chatThreadClient.updateMessage(messageId, updateMessageOptions);
28387
28387
  });
28388
28388
  },
28389
- onDeleteMessage: (messageId) => __awaiter$C(undefined, undefined, undefined, function* () {
28389
+ onDeleteMessage: (messageId) => __awaiter$D(undefined, undefined, undefined, function* () {
28390
28390
  yield chatThreadClient.deleteMessage(messageId);
28391
28391
  }),
28392
28392
  // This handler is designed for chatThread to consume
28393
- onMessageSeen: (chatMessageId) => __awaiter$C(undefined, undefined, undefined, function* () {
28393
+ onMessageSeen: (chatMessageId) => __awaiter$D(undefined, undefined, undefined, function* () {
28394
28394
  yield chatThreadClient.sendReadReceipt({ chatMessageId });
28395
28395
  }),
28396
- onTyping: () => __awaiter$C(undefined, undefined, undefined, function* () {
28396
+ onTyping: () => __awaiter$D(undefined, undefined, undefined, function* () {
28397
28397
  yield chatThreadClient.sendTypingNotification();
28398
28398
  }),
28399
- onRemoveParticipant: (userId) => __awaiter$C(undefined, undefined, undefined, function* () {
28399
+ onRemoveParticipant: (userId) => __awaiter$D(undefined, undefined, undefined, function* () {
28400
28400
  yield chatThreadClient.removeParticipant(fromFlatCommunicationIdentifier(userId));
28401
28401
  }),
28402
- updateThreadTopicName: (topicName) => __awaiter$C(undefined, undefined, undefined, function* () {
28402
+ updateThreadTopicName: (topicName) => __awaiter$D(undefined, undefined, undefined, function* () {
28403
28403
  yield chatThreadClient.updateTopic(topicName);
28404
28404
  }),
28405
- onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$C(undefined, undefined, undefined, function* () {
28405
+ onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$D(undefined, undefined, undefined, function* () {
28406
28406
  var _a, _b, _c;
28407
28407
  if (messageIterator === undefined) {
28408
28408
  // Lazy definition so that errors in the method call are reported correctly.
@@ -29335,7 +29335,7 @@ const Constants = {
29335
29335
  */
29336
29336
  const chatStatefulLogger = logger.createClientLogger('communication-react:chat-stateful');
29337
29337
 
29338
- var __awaiter$B = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29338
+ var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29339
29339
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29340
29340
  return new (P || (P = Promise))(function (resolve, reject) {
29341
29341
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -29377,7 +29377,7 @@ class ResourceDownloadQueue {
29377
29377
  this._messagesNeedingResourceRetrieval.push(copy);
29378
29378
  }
29379
29379
  startQueue(threadId, operation, options) {
29380
- return __awaiter$B(this, undefined, undefined, function* () {
29380
+ return __awaiter$C(this, undefined, undefined, function* () {
29381
29381
  if (this.isActive) {
29382
29382
  return;
29383
29383
  }
@@ -29414,7 +29414,7 @@ class ResourceDownloadQueue {
29414
29414
  }
29415
29415
  }
29416
29416
  downloadSingleUrl(message, resourceUrl, operation) {
29417
- return __awaiter$B(this, undefined, undefined, function* () {
29417
+ return __awaiter$C(this, undefined, undefined, function* () {
29418
29418
  const response = { sourceUrl: '' };
29419
29419
  try {
29420
29420
  const abortController = new AbortController();
@@ -29430,7 +29430,7 @@ class ResourceDownloadQueue {
29430
29430
  });
29431
29431
  }
29432
29432
  downloadAllPreviewUrls(message, operation) {
29433
- return __awaiter$B(this, undefined, undefined, function* () {
29433
+ return __awaiter$C(this, undefined, undefined, function* () {
29434
29434
  var _a;
29435
29435
  const attachments = (_a = message.content) === null || _a === undefined ? undefined : _a.attachments;
29436
29436
  if (message.type === 'html' && attachments) {
@@ -29457,7 +29457,7 @@ class ResourceDownloadQueue {
29457
29457
  });
29458
29458
  }
29459
29459
  downloadResource(operation, url, abortController) {
29460
- return __awaiter$B(this, undefined, undefined, function* () {
29460
+ return __awaiter$C(this, undefined, undefined, function* () {
29461
29461
  this._requestsToCancel[url] = { src: url, abortController };
29462
29462
  const blobUrl = yield operation(url, { credential: this._credential, endpoint: this._endpoint }, { abortController });
29463
29463
  delete this._requestsToCancel[url];
@@ -29468,9 +29468,9 @@ class ResourceDownloadQueue {
29468
29468
  /**
29469
29469
  * @private
29470
29470
  */
29471
- const fetchImageSource = (src, authentication, options) => __awaiter$B(undefined, undefined, undefined, function* () {
29471
+ const fetchImageSource = (src, authentication, options) => __awaiter$C(undefined, undefined, undefined, function* () {
29472
29472
  function fetchWithAuthentication(url, token, options) {
29473
- return __awaiter$B(this, undefined, undefined, function* () {
29473
+ return __awaiter$C(this, undefined, undefined, function* () {
29474
29474
  const headers = new Headers();
29475
29475
  headers.append('Authorization', `Bearer ${token}`);
29476
29476
  return yield fetchWithTimeout(url, {
@@ -29481,7 +29481,7 @@ const fetchImageSource = (src, authentication, options) => __awaiter$B(undefined
29481
29481
  });
29482
29482
  }
29483
29483
  function fetchWithTimeout(resource, options) {
29484
- return __awaiter$B(this, undefined, undefined, function* () {
29484
+ return __awaiter$C(this, undefined, undefined, function* () {
29485
29485
  // default timeout is 30 seconds
29486
29486
  const { timeout = 30000, abortController } = options;
29487
29487
  const id = setTimeout(() => {
@@ -29508,7 +29508,7 @@ const fetchImageSource = (src, authentication, options) => __awaiter$B(undefined
29508
29508
 
29509
29509
  // Copyright (c) Microsoft Corporation.
29510
29510
  // Licensed under the MIT License.
29511
- var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29511
+ var __awaiter$B = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29512
29512
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29513
29513
  return new (P || (P = Promise))(function (resolve, reject) {
29514
29514
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -29582,7 +29582,7 @@ let ChatContext$1 = class ChatContext {
29582
29582
  // Any item in queue should be removed.
29583
29583
  }
29584
29584
  downloadResourceToCache(threadId, messageId, resourceUrl) {
29585
- return __awaiter$A(this, undefined, undefined, function* () {
29585
+ return __awaiter$B(this, undefined, undefined, function* () {
29586
29586
  var _a;
29587
29587
  let message = (_a = this.getState().threads[threadId]) === null || _a === undefined ? undefined : _a.chatMessages[messageId];
29588
29588
  if (message && this._fullsizeImageQueue) {
@@ -29861,7 +29861,7 @@ let ChatContext$1 = class ChatContext {
29861
29861
  * @throws ChatError. Exceptions thrown from `f` are tagged with the failed `target.
29862
29862
  */
29863
29863
  withAsyncErrorTeedToState(f, target) {
29864
- return (...args) => __awaiter$A(this, undefined, undefined, function* () {
29864
+ return (...args) => __awaiter$B(this, undefined, undefined, function* () {
29865
29865
  try {
29866
29866
  return yield f(...args);
29867
29867
  }
@@ -29968,7 +29968,7 @@ const convertChatMessage = (message, status = 'delivered', clientMessageId) => {
29968
29968
 
29969
29969
  // Copyright (c) Microsoft Corporation.
29970
29970
  // Licensed under the MIT License.
29971
- var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29971
+ var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29972
29972
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29973
29973
  return new (P || (P = Promise))(function (resolve, reject) {
29974
29974
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -30058,7 +30058,7 @@ class EventSubscriber {
30058
30058
  };
30059
30059
  // This is a temporary fix that no participant message is received for onChatMessageReceived event, which should be handled by JS SDK.
30060
30060
  // Without the temporary fix, there are missing 'participant joined' and 'participant left' system messages in the chat thread.
30061
- this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$z(this, undefined, undefined, function* () {
30061
+ this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$A(this, undefined, undefined, function* () {
30062
30062
  var _a, e_1, _b, _c;
30063
30063
  try {
30064
30064
  for (var _d = true, _e = __asyncValues$1(this.chatClient
@@ -30152,7 +30152,7 @@ class EventSubscriber {
30152
30152
 
30153
30153
  // Copyright (c) Microsoft Corporation.
30154
30154
  // Licensed under the MIT License.
30155
- var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
30155
+ var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
30156
30156
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30157
30157
  return new (P || (P = Promise))(function (resolve, reject) {
30158
30158
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -30174,7 +30174,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
30174
30174
  const threadsIterator = iteratorCreator(...args);
30175
30175
  return {
30176
30176
  next() {
30177
- return __awaiter$y(this, undefined, undefined, function* () {
30177
+ return __awaiter$z(this, undefined, undefined, function* () {
30178
30178
  const result = yield threadsIterator.next();
30179
30179
  if (!result.done && result.value) {
30180
30180
  decorateFn(result.value, context);
@@ -30189,7 +30189,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
30189
30189
  const pages = threadsIterator.byPage(settings);
30190
30190
  return {
30191
30191
  next() {
30192
- return __awaiter$y(this, undefined, undefined, function* () {
30192
+ return __awaiter$z(this, undefined, undefined, function* () {
30193
30193
  const result = yield pages.next();
30194
30194
  const page = result.value;
30195
30195
  if (!result.done && result.value) {
@@ -30276,7 +30276,7 @@ const createDecoratedListParticipants = (chatThreadClient, context) => {
30276
30276
 
30277
30277
  // Copyright (c) Microsoft Corporation.
30278
30278
  // Licensed under the MIT License.
30279
- var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
30279
+ var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
30280
30280
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30281
30281
  return new (P || (P = Promise))(function (resolve, reject) {
30282
30282
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -30295,14 +30295,14 @@ class ProxyChatThreadClient {
30295
30295
  return createDecoratedListMessages(chatThreadClient, this._context);
30296
30296
  }
30297
30297
  case 'getMessage': {
30298
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, undefined, undefined, function* () {
30298
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, undefined, undefined, function* () {
30299
30299
  const message = yield chatThreadClient.getMessage(...args);
30300
30300
  this._context.setChatMessage(chatThreadClient.threadId, convertChatMessage(message));
30301
30301
  return message;
30302
30302
  }), 'ChatThreadClient.getMessage');
30303
30303
  }
30304
30304
  case 'sendMessage': {
30305
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, undefined, undefined, function* () {
30305
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, undefined, undefined, function* () {
30306
30306
  var _a;
30307
30307
  // Retry logic?
30308
30308
  const [request, options] = args;
@@ -30343,7 +30343,7 @@ class ProxyChatThreadClient {
30343
30343
  }), 'ChatThreadClient.sendMessage');
30344
30344
  }
30345
30345
  case 'addParticipants': {
30346
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, undefined, undefined, function* () {
30346
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, undefined, undefined, function* () {
30347
30347
  const result = yield chatThreadClient.addParticipants(...args);
30348
30348
  const [addRequest] = args;
30349
30349
  const participantsToAdd = addRequest.participants;
@@ -30352,7 +30352,7 @@ class ProxyChatThreadClient {
30352
30352
  }), 'ChatThreadClient.addParticipants');
30353
30353
  }
30354
30354
  case 'deleteMessage': {
30355
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, undefined, undefined, function* () {
30355
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, undefined, undefined, function* () {
30356
30356
  // DeleteMessage is able to either delete local one(for failed message) or synced message
30357
30357
  const [messageId] = args;
30358
30358
  if (this._context.deleteLocalMessage(chatThreadClient.threadId, messageId)) {
@@ -30370,12 +30370,12 @@ class ProxyChatThreadClient {
30370
30370
  return createDecoratedListReadReceipts(chatThreadClient, this._context);
30371
30371
  }
30372
30372
  case 'sendTypingNotification': {
30373
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, undefined, undefined, function* () {
30373
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, undefined, undefined, function* () {
30374
30374
  return yield chatThreadClient.sendTypingNotification(...args);
30375
30375
  }), 'ChatThreadClient.sendTypingNotification');
30376
30376
  }
30377
30377
  case 'removeParticipant': {
30378
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, undefined, undefined, function* () {
30378
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, undefined, undefined, function* () {
30379
30379
  const result = yield chatThreadClient.removeParticipant(...args);
30380
30380
  const [removeIdentifier] = args;
30381
30381
  this._context.deleteParticipant(chatThreadClient.threadId, communicationCommon.getIdentifierKind(removeIdentifier));
@@ -30383,7 +30383,7 @@ class ProxyChatThreadClient {
30383
30383
  }), 'ChatThreadClient.removeParticipant');
30384
30384
  }
30385
30385
  case 'updateMessage': {
30386
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, undefined, undefined, function* () {
30386
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, undefined, undefined, function* () {
30387
30387
  const result = yield chatThreadClient.updateMessage(...args);
30388
30388
  const [messageId, updateOption] = args;
30389
30389
  this._context.updateChatMessageContent(chatThreadClient.threadId, messageId, updateOption === null || updateOption === undefined ? undefined : updateOption.content);
@@ -30391,7 +30391,7 @@ class ProxyChatThreadClient {
30391
30391
  }), 'ChatThreadClient.updateMessage');
30392
30392
  }
30393
30393
  case 'updateTopic': {
30394
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, undefined, undefined, function* () {
30394
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, undefined, undefined, function* () {
30395
30395
  const result = yield chatThreadClient.updateTopic(...args);
30396
30396
  const [topic] = args;
30397
30397
  this._context.updateThreadTopic(chatThreadClient.threadId, topic);
@@ -30399,7 +30399,7 @@ class ProxyChatThreadClient {
30399
30399
  }), 'ChatThreadClient.updateTopic');
30400
30400
  }
30401
30401
  case 'getProperties': {
30402
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$x(this, undefined, undefined, function* () {
30402
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$y(this, undefined, undefined, function* () {
30403
30403
  const result = yield chatThreadClient.getProperties(...args);
30404
30404
  this._context.updateThread(chatThreadClient.threadId, result);
30405
30405
  return result;
@@ -30437,7 +30437,7 @@ const createDecoratedListThreads = (chatClient, context) => {
30437
30437
 
30438
30438
  // Copyright (c) Microsoft Corporation.
30439
30439
  // Licensed under the MIT License.
30440
- var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
30440
+ var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
30441
30441
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30442
30442
  return new (P || (P = Promise))(function (resolve, reject) {
30443
30443
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -30456,7 +30456,7 @@ const proxyChatClient = {
30456
30456
  switch (prop) {
30457
30457
  case 'createChatThread': {
30458
30458
  return context.withAsyncErrorTeedToState(function (...args) {
30459
- return __awaiter$w(this, undefined, undefined, function* () {
30459
+ return __awaiter$x(this, undefined, undefined, function* () {
30460
30460
  const result = yield chatClient.createChatThread(...args);
30461
30461
  const thread = result.chatThread;
30462
30462
  if (thread) {
@@ -30469,7 +30469,7 @@ const proxyChatClient = {
30469
30469
  }
30470
30470
  case 'deleteChatThread': {
30471
30471
  return context.withAsyncErrorTeedToState(function (...args) {
30472
- return __awaiter$w(this, undefined, undefined, function* () {
30472
+ return __awaiter$x(this, undefined, undefined, function* () {
30473
30473
  const result = yield chatClient.deleteChatThread(...args);
30474
30474
  context.deleteThread(args[0]);
30475
30475
  return result;
@@ -30489,7 +30489,7 @@ const proxyChatClient = {
30489
30489
  }
30490
30490
  case 'startRealtimeNotifications': {
30491
30491
  return context.withAsyncErrorTeedToState(function (...args) {
30492
- return __awaiter$w(this, undefined, undefined, function* () {
30492
+ return __awaiter$x(this, undefined, undefined, function* () {
30493
30493
  const ret = yield chatClient.startRealtimeNotifications(...args);
30494
30494
  if (!receiver.eventSubscriber) {
30495
30495
  receiver.eventSubscriber = new EventSubscriber(chatClient, context);
@@ -30500,7 +30500,7 @@ const proxyChatClient = {
30500
30500
  }
30501
30501
  case 'stopRealtimeNotifications': {
30502
30502
  return context.withAsyncErrorTeedToState(function (...args) {
30503
- return __awaiter$w(this, undefined, undefined, function* () {
30503
+ return __awaiter$x(this, undefined, undefined, function* () {
30504
30504
  const ret = yield chatClient.stopRealtimeNotifications(...args);
30505
30505
  if (receiver.eventSubscriber) {
30506
30506
  receiver.eventSubscriber.unsubscribe();
@@ -30611,6 +30611,209 @@ const SEND_BOX_UPLOADS_KEY_VALUE = 'send-box';
30611
30611
  */
30612
30612
  const _DEFAULT_INLINE_IMAGE_FILE_NAME = 'image.png';
30613
30613
 
30614
+ // Copyright (c) Microsoft Corporation.
30615
+ // Licensed under the MIT License.
30616
+ var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
30617
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30618
+ return new (P || (P = Promise))(function (resolve, reject) {
30619
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
30620
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30621
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30622
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
30623
+ });
30624
+ };
30625
+ /* @conditional-compile-remove(on-fetch-profile) */
30626
+ /**
30627
+ * @private
30628
+ */
30629
+ const createProfileStateModifier$1 = (onFetchProfile, notifyUpdate) => {
30630
+ const cachedDisplayName = {};
30631
+ return (state) => {
30632
+ var _a;
30633
+ const originalParticipants = (_a = state.thread) === null || _a === undefined ? undefined : _a.participants;
30634
+ (() => __awaiter$w(undefined, undefined, undefined, function* () {
30635
+ let shouldNotifyUpdates = false;
30636
+ if (!originalParticipants) {
30637
+ return;
30638
+ }
30639
+ for (const [key, participant] of Object.entries(originalParticipants)) {
30640
+ if (cachedDisplayName[key]) {
30641
+ continue;
30642
+ }
30643
+ const profile = yield onFetchProfile(key, { displayName: participant.displayName });
30644
+ if ((profile === null || profile === undefined ? undefined : profile.displayName) && participant.displayName !== (profile === null || profile === undefined ? undefined : profile.displayName)) {
30645
+ cachedDisplayName[key] = profile === null || profile === undefined ? undefined : profile.displayName;
30646
+ shouldNotifyUpdates = true;
30647
+ }
30648
+ }
30649
+ // notify update only when there is a change, which most likely will trigger modifier and setState again
30650
+ if (shouldNotifyUpdates) {
30651
+ notifyUpdate();
30652
+ }
30653
+ }))();
30654
+ const participantsModifier = createParticipantModifier$1((id, participant) => {
30655
+ if (cachedDisplayName[id]) {
30656
+ return Object.assign(Object.assign({}, participant), { displayName: cachedDisplayName[id] });
30657
+ }
30658
+ return undefined;
30659
+ });
30660
+ const modifiedParticipantState = participantsModifier(state);
30661
+ const chatMessagesModifier = createChatMessageModifier((id, chatMessage) => {
30662
+ var _a;
30663
+ const originalChatMessage = Object.assign({}, chatMessage);
30664
+ if ((_a = originalChatMessage.content) === null || _a === undefined ? undefined : _a.participants) {
30665
+ const newParticipants = originalChatMessage.content.participants.map((participant) => {
30666
+ if (participant.id) {
30667
+ if ('communicationUserId' in participant.id && cachedDisplayName[participant.id.communicationUserId]) {
30668
+ return Object.assign(Object.assign({}, participant), { displayName: cachedDisplayName[participant.id.communicationUserId] });
30669
+ }
30670
+ else if ('microsoftTeamsUserId' in participant.id &&
30671
+ 'rawId' in participant.id &&
30672
+ participant.id.rawId &&
30673
+ cachedDisplayName[participant.id.rawId]) {
30674
+ return Object.assign(Object.assign({}, participant), { displayName: cachedDisplayName[participant.id.rawId] });
30675
+ }
30676
+ else if ('teamsAppId' in participant.id &&
30677
+ 'rawId' in participant.id &&
30678
+ participant.id.rawId &&
30679
+ cachedDisplayName[participant.id.rawId]) {
30680
+ return Object.assign(Object.assign({}, participant), { displayName: cachedDisplayName[participant.id.rawId] });
30681
+ }
30682
+ else if ('phoneNumber' in participant.id &&
30683
+ 'rawId' in participant.id &&
30684
+ participant.id.rawId &&
30685
+ cachedDisplayName[participant.id.rawId]) {
30686
+ return Object.assign(Object.assign({}, participant), { displayName: cachedDisplayName[participant.id.rawId] });
30687
+ }
30688
+ else if ('id' in participant.id && cachedDisplayName[participant.id.id]) {
30689
+ return Object.assign(Object.assign({}, participant), { displayName: cachedDisplayName[participant.id.id] });
30690
+ }
30691
+ else {
30692
+ return participant;
30693
+ }
30694
+ }
30695
+ return participant;
30696
+ });
30697
+ originalChatMessage.content = Object.assign(Object.assign({}, originalChatMessage.content), { participants: newParticipants });
30698
+ }
30699
+ if (originalChatMessage.sender && originalChatMessage.senderDisplayName) {
30700
+ if (originalChatMessage.sender.kind === 'communicationUser' &&
30701
+ originalChatMessage.sender.communicationUserId &&
30702
+ cachedDisplayName[originalChatMessage.sender.communicationUserId]) {
30703
+ originalChatMessage.senderDisplayName = cachedDisplayName[originalChatMessage.sender.communicationUserId];
30704
+ }
30705
+ else if (originalChatMessage.sender.kind === 'microsoftTeamsUser' &&
30706
+ originalChatMessage.sender.rawId &&
30707
+ cachedDisplayName[originalChatMessage.sender.rawId]) {
30708
+ originalChatMessage.senderDisplayName = cachedDisplayName[originalChatMessage.sender.rawId];
30709
+ }
30710
+ else if (originalChatMessage.sender.kind === 'phoneNumber' &&
30711
+ originalChatMessage.sender.phoneNumber &&
30712
+ cachedDisplayName[originalChatMessage.sender.phoneNumber]) {
30713
+ originalChatMessage.senderDisplayName = cachedDisplayName[originalChatMessage.sender.phoneNumber];
30714
+ }
30715
+ else if (originalChatMessage.sender.kind === 'unknown' &&
30716
+ originalChatMessage.sender.id &&
30717
+ cachedDisplayName[originalChatMessage.sender.id]) {
30718
+ originalChatMessage.senderDisplayName = cachedDisplayName[originalChatMessage.sender.id];
30719
+ }
30720
+ else if (originalChatMessage.sender.kind === 'microsoftTeamsApp' &&
30721
+ originalChatMessage.sender.rawId &&
30722
+ cachedDisplayName[originalChatMessage.sender.rawId]) {
30723
+ originalChatMessage.senderDisplayName = cachedDisplayName[originalChatMessage.sender.rawId];
30724
+ }
30725
+ }
30726
+ return Object.assign({}, originalChatMessage);
30727
+ });
30728
+ return chatMessagesModifier(modifiedParticipantState);
30729
+ };
30730
+ };
30731
+ /* @conditional-compile-remove(on-fetch-profile) */
30732
+ /**
30733
+ * @private
30734
+ * This is the util function to create a participant modifier for remote participantList
30735
+ * It memoize previous original participant items and only update the changed participant
30736
+ * It takes in one modifier function to generate one single participant object, it returns undefined if the object keeps unmodified
30737
+ */
30738
+ const createParticipantModifier$1 = (createModifiedParticipant) => {
30739
+ let previousParticipantState = undefined;
30740
+ let modifiedParticipants = {};
30741
+ const memoizedParticipants = {};
30742
+ return (state) => {
30743
+ var _a, _b, _c, _d;
30744
+ // if root state is the same, we don't need to update the participants
30745
+ if (((_a = state.thread) === null || _a === undefined ? undefined : _a.participants) !== previousParticipantState) {
30746
+ modifiedParticipants = {};
30747
+ const originalParticipants = Object.entries(((_b = state.thread) === null || _b === undefined ? undefined : _b.participants) || {});
30748
+ for (const [key, originalParticipant] of originalParticipants) {
30749
+ const modifiedParticipant = createModifiedParticipant(key, originalParticipant);
30750
+ if (modifiedParticipant === undefined) {
30751
+ modifiedParticipants[key] = originalParticipant;
30752
+ continue;
30753
+ }
30754
+ // Generate the new item if original cached item has been changed
30755
+ if (((_c = memoizedParticipants[key]) === null || _c === undefined ? undefined : _c.originalRef) !== originalParticipant) {
30756
+ memoizedParticipants[key] = {
30757
+ newParticipant: modifiedParticipant,
30758
+ originalRef: originalParticipant
30759
+ };
30760
+ }
30761
+ // the modified participant is always coming from the memoized cache, whether is was refreshed
30762
+ // from the previous closure or not
30763
+ const memoizedParticipant = memoizedParticipants[key];
30764
+ if (!memoizedParticipant) {
30765
+ throw new Error('Participant modifier encountered an unhandled exception.');
30766
+ }
30767
+ modifiedParticipants[key] = memoizedParticipant.newParticipant;
30768
+ }
30769
+ previousParticipantState = (_d = state.thread) === null || _d === undefined ? undefined : _d.participants;
30770
+ }
30771
+ return Object.assign(Object.assign({}, state), { thread: Object.assign(Object.assign({}, state.thread), { participants: modifiedParticipants }) });
30772
+ };
30773
+ };
30774
+ /* @conditional-compile-remove(on-fetch-profile) */
30775
+ /**
30776
+ * @private
30777
+ * This is the util function to create a chat message modifier for remote participantList
30778
+ * It memoize previous original messages and only update the changed sender display name
30779
+ * It takes in one modifier function to generate one single participant object, it returns undefined if the object keeps unmodified
30780
+ */
30781
+ const createChatMessageModifier = (createModifiedChatMessage) => {
30782
+ let previousChatMessages;
30783
+ let modifiedChatMessages;
30784
+ const memoizedChatMessages = {};
30785
+ return (state) => {
30786
+ var _a, _b, _c, _d;
30787
+ if (((_a = state.thread) === null || _a === undefined ? undefined : _a.chatMessages) !== previousChatMessages) {
30788
+ modifiedChatMessages = {};
30789
+ const originalChatMessages = Object.entries(((_b = state.thread) === null || _b === undefined ? undefined : _b.chatMessages) || {});
30790
+ for (const [key, originalChatMessage] of originalChatMessages) {
30791
+ const modifiedChatMessage = createModifiedChatMessage(key, originalChatMessage);
30792
+ if (modifiedChatMessage === undefined) {
30793
+ modifiedChatMessages[key] = originalChatMessage;
30794
+ continue;
30795
+ }
30796
+ // Generate the new item if original cached item has been changed
30797
+ if (((_c = memoizedChatMessages[key]) === null || _c === undefined ? undefined : _c.originalRef) !== originalChatMessage) {
30798
+ memoizedChatMessages[key] = {
30799
+ newChatMessage: modifiedChatMessage,
30800
+ originalRef: originalChatMessage
30801
+ };
30802
+ }
30803
+ // the modified chat message is always coming from the memoized cache, whether is was refreshed
30804
+ // from the previous closure or not
30805
+ const memoizedChatMessage = memoizedChatMessages[key];
30806
+ if (!memoizedChatMessage) {
30807
+ throw new Error('Participant modifier encountered an unhandled exception.');
30808
+ }
30809
+ modifiedChatMessages[key] = memoizedChatMessage.newChatMessage;
30810
+ }
30811
+ previousChatMessages = (_d = state.thread) === null || _d === undefined ? undefined : _d.chatMessages;
30812
+ }
30813
+ return Object.assign(Object.assign({}, state), { thread: Object.assign(Object.assign({}, state.thread), { chatMessages: modifiedChatMessages }) });
30814
+ };
30815
+ };
30816
+
30614
30817
  // Copyright (c) Microsoft Corporation.
30615
30818
  // Licensed under the MIT License.
30616
30819
  var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
@@ -30634,7 +30837,9 @@ var __asyncValues = (window && window.__asyncValues) || function (o) {
30634
30837
  * @private
30635
30838
  */
30636
30839
  class ChatContext {
30637
- constructor(clientState, threadId) {
30840
+ constructor(clientState, threadId,
30841
+ /* @conditional-compile-remove(on-fetch-profile) */
30842
+ chatAdapterOptions) {
30638
30843
  this.emitter = new events.EventEmitter();
30639
30844
  const thread = clientState.threads[threadId];
30640
30845
  this.threadId = threadId;
@@ -30647,6 +30852,12 @@ class ChatContext {
30647
30852
  thread,
30648
30853
  latestErrors: clientState.latestErrors
30649
30854
  };
30855
+ /* @conditional-compile-remove(on-fetch-profile) */
30856
+ this.displayNameModifier = (chatAdapterOptions === null || chatAdapterOptions === undefined ? undefined : chatAdapterOptions.onFetchProfile)
30857
+ ? createProfileStateModifier$1(chatAdapterOptions.onFetchProfile, () => {
30858
+ this.setState(this.getState());
30859
+ })
30860
+ : undefined;
30650
30861
  }
30651
30862
  onStateChange(handler) {
30652
30863
  this.emitter.on('stateChanged', handler);
@@ -30656,6 +30867,8 @@ class ChatContext {
30656
30867
  }
30657
30868
  setState(state) {
30658
30869
  this.state = state;
30870
+ /* @conditional-compile-remove(on-fetch-profile) */
30871
+ this.state = this.displayNameModifier ? this.displayNameModifier(state) : state;
30659
30872
  this.emitter.emit('stateChanged', this.state);
30660
30873
  }
30661
30874
  getState() {
@@ -30684,12 +30897,16 @@ class ChatContext {
30684
30897
  * @private
30685
30898
  */
30686
30899
  class AzureCommunicationChatAdapter {
30687
- constructor(chatClient, chatThreadClient) {
30900
+ constructor(chatClient, chatThreadClient,
30901
+ /* @conditional-compile-remove(on-fetch-profile) */
30902
+ chatAdapterOptions) {
30688
30903
  this.emitter = new events.EventEmitter();
30689
30904
  this.bindAllPublicMethods();
30690
30905
  this.chatClient = chatClient;
30691
30906
  this.chatThreadClient = chatThreadClient;
30692
- this.context = new ChatContext(chatClient.getState(), chatThreadClient.threadId);
30907
+ this.context = new ChatContext(chatClient.getState(), chatThreadClient.threadId,
30908
+ /* @conditional-compile-remove(on-fetch-profile) */
30909
+ chatAdapterOptions);
30693
30910
  const onStateChange = (clientState) => {
30694
30911
  // unsubscribe when the instance gets disposed
30695
30912
  if (!this) {
@@ -30994,54 +31211,70 @@ const convertEventType = (type) => {
30994
31211
  *
30995
31212
  * @public
30996
31213
  */
30997
- const createAzureCommunicationChatAdapter = (_a) => __awaiter$v(undefined, [_a], undefined, function* ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) {
30998
- return _createAzureCommunicationChatAdapterInner(endpointUrl, userId, displayName, credential, threadId);
31214
+ const createAzureCommunicationChatAdapter = (_a) => __awaiter$v(undefined, [_a], undefined, function* ({ endpoint: endpointUrl, userId, displayName, credential, threadId,
31215
+ /* @conditional-compile-remove(on-fetch-profile) */
31216
+ chatAdapterOptions }) {
31217
+ return _createAzureCommunicationChatAdapterInner(endpointUrl, userId, displayName, credential, threadId, 'Chat',
31218
+ /* @conditional-compile-remove(on-fetch-profile) */
31219
+ chatAdapterOptions);
30999
31220
  });
31000
31221
  /**
31001
31222
  * This inner function is used to allow injection of TelemetryImplementationHint without changing the public API.
31002
31223
  *
31003
31224
  * @internal
31004
31225
  */
31005
- const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1) => __awaiter$v(undefined, [endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1], undefined, function* (endpoint, userId, displayName, credential, threadId, telemetryImplementationHint = 'Chat') {
31006
- if (!_isValidIdentifier(userId)) {
31007
- throw new Error('Provided userId is invalid. Please provide valid identifier object.');
31008
- }
31009
- const chatClient = _createStatefulChatClientInner({
31010
- userId,
31011
- displayName,
31012
- endpoint,
31013
- credential
31014
- }, undefined, telemetryImplementationHint);
31015
- const chatThreadClient = yield chatClient.getChatThreadClient(threadId);
31016
- yield chatClient.startRealtimeNotifications();
31017
- const adapter = yield createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient);
31018
- return adapter;
31019
- });
31226
+ const _createAzureCommunicationChatAdapterInner = function (endpoint_1, userId_1, displayName_1, credential_1, threadId_1) {
31227
+ return __awaiter$v(this, arguments, undefined, function* (endpoint, userId, displayName, credential, threadId, telemetryImplementationHint = 'Chat',
31228
+ /* @conditional-compile-remove(on-fetch-profile) */
31229
+ chatAdapterOptions) {
31230
+ if (!_isValidIdentifier(userId)) {
31231
+ throw new Error('Provided userId is invalid. Please provide valid identifier object.');
31232
+ }
31233
+ const chatClient = _createStatefulChatClientInner({
31234
+ userId,
31235
+ displayName,
31236
+ endpoint,
31237
+ credential
31238
+ }, undefined, telemetryImplementationHint);
31239
+ const chatThreadClient = yield chatClient.getChatThreadClient(threadId);
31240
+ yield chatClient.startRealtimeNotifications();
31241
+ const adapter = yield createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient,
31242
+ /* @conditional-compile-remove(on-fetch-profile) */
31243
+ chatAdapterOptions);
31244
+ return adapter;
31245
+ });
31246
+ };
31020
31247
  /**
31021
31248
  * This inner function to create ChatAdapterPromise in case when threadID is not avaialble.
31022
31249
  * ThreadId is a promise to allow for lazy initialization of the adapter.
31023
31250
  * @internal
31024
31251
  */
31025
- const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2) => __awaiter$v(undefined, [endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2], undefined, function* (endpoint, userId, displayName, credential, threadId, telemetryImplementationHint = 'Chat') {
31026
- if (!_isValidIdentifier(userId)) {
31027
- throw new Error('Provided userId is invalid. Please provide valid identifier object.');
31028
- }
31029
- const chatClient = _createStatefulChatClientInner({
31030
- userId,
31031
- displayName,
31032
- endpoint,
31033
- credential
31034
- }, undefined, telemetryImplementationHint);
31035
- return threadId.then((threadId) => __awaiter$v(undefined, undefined, undefined, function* () {
31036
- if (UNSUPPORTED_CHAT_THREAD_TYPE.some((t) => threadId.includes(t))) {
31037
- console.error(`Invalid Chat ThreadId: ${threadId}. Please note with Teams Channel Meetings, only Calling is supported and Chat is not currently supported. Read more: ${TEAMS_LIMITATION_LEARN_MORE}.`);
31252
+ const _createLazyAzureCommunicationChatAdapterInner = function (endpoint_1, userId_1, displayName_1, credential_1, threadId_1) {
31253
+ return __awaiter$v(this, arguments, undefined, function* (endpoint, userId, displayName, credential, threadId, telemetryImplementationHint = 'Chat',
31254
+ /* @conditional-compile-remove(on-fetch-profile) */
31255
+ chatAdapterOptions) {
31256
+ if (!_isValidIdentifier(userId)) {
31257
+ throw new Error('Provided userId is invalid. Please provide valid identifier object.');
31038
31258
  }
31039
- const chatThreadClient = yield chatClient.getChatThreadClient(threadId);
31040
- yield chatClient.startRealtimeNotifications();
31041
- const adapter = yield createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient);
31042
- return adapter;
31043
- }));
31044
- });
31259
+ const chatClient = _createStatefulChatClientInner({
31260
+ userId,
31261
+ displayName,
31262
+ endpoint,
31263
+ credential
31264
+ }, undefined, telemetryImplementationHint);
31265
+ return threadId.then((threadId) => __awaiter$v(this, undefined, undefined, function* () {
31266
+ if (UNSUPPORTED_CHAT_THREAD_TYPE.some((t) => threadId.includes(t))) {
31267
+ console.error(`Invalid Chat ThreadId: ${threadId}. Please note with Teams Channel Meetings, only Calling is supported and Chat is not currently supported. Read more: ${TEAMS_LIMITATION_LEARN_MORE}.`);
31268
+ }
31269
+ const chatThreadClient = yield chatClient.getChatThreadClient(threadId);
31270
+ yield chatClient.startRealtimeNotifications();
31271
+ const adapter = yield createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient,
31272
+ /* @conditional-compile-remove(on-fetch-profile) */
31273
+ chatAdapterOptions);
31274
+ return adapter;
31275
+ }));
31276
+ });
31277
+ };
31045
31278
  /**
31046
31279
  * A custom React hook to simplify the creation of {@link ChatAdapter}.
31047
31280
  *
@@ -31153,9 +31386,13 @@ beforeDispose) => {
31153
31386
  *
31154
31387
  * @public
31155
31388
  */
31156
- function createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient) {
31389
+ function createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient,
31390
+ /* @conditional-compile-remove(on-fetch-profile) */
31391
+ chatAdapterOptions) {
31157
31392
  return __awaiter$v(this, undefined, undefined, function* () {
31158
- return new AzureCommunicationChatAdapter(chatClient, chatThreadClient);
31393
+ return new AzureCommunicationChatAdapter(chatClient, chatThreadClient,
31394
+ /* @conditional-compile-remove(on-fetch-profile) */
31395
+ chatAdapterOptions);
31159
31396
  });
31160
31397
  }
31161
31398
  const isChatError = (e) => {
@@ -32102,7 +32339,7 @@ const AttachmentDownloadErrorBar = (props) => {
32102
32339
  /**
32103
32340
  * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
32104
32341
  */
32105
- const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-BMVBxfQa.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
32342
+ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-CWem6AxN.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
32106
32343
  /**
32107
32344
  * @private
32108
32345
  * Use this function to load RoosterJS dependencies early in the lifecycle.
@@ -32110,7 +32347,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function
32110
32347
  *
32111
32348
  /* @conditional-compile-remove(rich-text-editor-composite-support)
32112
32349
  */
32113
- const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-BMVBxfQa.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
32350
+ const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-CWem6AxN.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
32114
32351
  /**
32115
32352
  * @private
32116
32353
  */
@@ -46639,17 +46876,29 @@ const createAzureCommunicationCallWithChatAdapter = (_a) => __awaiter$4(undefine
46639
46876
  telemetryImplementationHint: 'CallWithChat'
46640
46877
  });
46641
46878
  const chatThreadAdapter = _createChatThreadAdapterInner(locator, callAdapter);
46879
+ /* @conditional-compile-remove(on-fetch-profile) */
46880
+ const chatAdapterOptions = {
46881
+ onFetchProfile: callAdapterOptions === null || callAdapterOptions === undefined ? undefined : callAdapterOptions.onFetchProfile
46882
+ };
46642
46883
  if (chatThreadAdapter.isCallInfoRequired()) {
46643
46884
  const callWithChatAdapter = new AzureCommunicationCallWithChatAdapter(yield callAdapter);
46644
- const chatAdapterPromise = _createLazyAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, chatThreadAdapter.getChatThreadPromise(), 'CallWithChat');
46885
+ const chatAdapterPromise = _createLazyAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, chatThreadAdapter.getChatThreadPromise(), 'CallWithChat',
46886
+ /* @conditional-compile-remove(on-fetch-profile) */
46887
+ chatAdapterOptions);
46645
46888
  callWithChatAdapter.setChatAdapterPromise(chatAdapterPromise);
46646
- callWithChatAdapter.setCreateChatAdapterCallback((threadId) => _createAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, threadId, 'CallWithChat'));
46889
+ callWithChatAdapter.setCreateChatAdapterCallback((threadId) => _createAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, threadId, 'CallWithChat',
46890
+ /* @conditional-compile-remove(on-fetch-profile) */
46891
+ chatAdapterOptions));
46647
46892
  return callWithChatAdapter;
46648
46893
  }
46649
46894
  else {
46650
- const chatAdapter = _createAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, chatThreadAdapter.getChatThread(), 'CallWithChat');
46895
+ const chatAdapter = _createAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, chatThreadAdapter.getChatThread(), 'CallWithChat',
46896
+ /* @conditional-compile-remove(on-fetch-profile) */
46897
+ chatAdapterOptions);
46651
46898
  const callWithChatAdapter = new AzureCommunicationCallWithChatAdapter(yield callAdapter, yield chatAdapter);
46652
- callWithChatAdapter.setCreateChatAdapterCallback((threadId) => _createAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, threadId, 'CallWithChat'));
46899
+ callWithChatAdapter.setCreateChatAdapterCallback((threadId) => _createAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, threadId, 'CallWithChat',
46900
+ /* @conditional-compile-remove(on-fetch-profile) */
46901
+ chatAdapterOptions));
46653
46902
  return callWithChatAdapter;
46654
46903
  }
46655
46904
  });
@@ -47488,4 +47737,4 @@ exports.useTeamsCall = useTeamsCall;
47488
47737
  exports.useTeamsCallAdapter = useTeamsCallAdapter;
47489
47738
  exports.useTeamsCallAgent = useTeamsCallAgent;
47490
47739
  exports.useTheme = useTheme;
47491
- //# sourceMappingURL=index-BWWxc3Tx.js.map
47740
+ //# sourceMappingURL=index-B61VVYm8.js.map