@azure/communication-react 1.9.0-alpha-202310201641 → 1.9.0-alpha-202310230329

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.
@@ -177,7 +177,7 @@ const _isValidIdentifier = (identifier) => {
177
177
  // Copyright (c) Microsoft Corporation.
178
178
  // Licensed under the MIT License.
179
179
  // GENERATED FILE. DO NOT EDIT MANUALLY.
180
- var telemetryVersion = '1.9.0-alpha-202310201641';
180
+ var telemetryVersion = '1.9.0-alpha-202310230329';
181
181
 
182
182
  // Copyright (c) Microsoft Corporation.
183
183
  /**
@@ -467,7 +467,7 @@ const getSupportedSpokenLanguages = (state, props) => {
467
467
 
468
468
  // Copyright (c) Microsoft Corporation.
469
469
  // Licensed under the MIT License.
470
- var __awaiter$N = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
470
+ var __awaiter$M = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
471
471
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
472
472
  return new (P || (P = Promise))(function (resolve, reject) {
473
473
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -506,7 +506,7 @@ const _isPreviewOn = (deviceManager) => {
506
506
  *
507
507
  * @private
508
508
  */
509
- const disposeAllLocalPreviewViews = (callClient) => __awaiter$N(void 0, void 0, void 0, function* () {
509
+ const disposeAllLocalPreviewViews = (callClient) => __awaiter$M(void 0, void 0, void 0, function* () {
510
510
  const unparentedViews = callClient.getState().deviceManager.unparentedViews;
511
511
  for (const view of unparentedViews) {
512
512
  yield callClient.disposeView(undefined, undefined, view);
@@ -684,7 +684,7 @@ const holdButtonSelector = reselect__namespace.createSelector([getCallState], (c
684
684
 
685
685
  // Copyright (c) Microsoft Corporation.
686
686
  // Licensed under the MIT License.
687
- var __awaiter$M = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
687
+ var __awaiter$L = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
688
688
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
689
689
  return new (P || (P = Promise))(function (resolve, reject) {
690
690
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -705,7 +705,7 @@ const areStreamsEqual = (prevStream, newStream) => {
705
705
  * @private
706
706
  */
707
707
  const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callClient, deviceManager, call, options) => {
708
- const onStartLocalVideo = () => __awaiter$M(void 0, void 0, void 0, function* () {
708
+ const onStartLocalVideo = () => __awaiter$L(void 0, void 0, void 0, function* () {
709
709
  // Before the call object creates a stream, dispose of any local preview streams.
710
710
  // @TODO: is there any way to parent the unparented view to the call object instead
711
711
  // of disposing and creating a new stream?
@@ -725,7 +725,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
725
725
  yield call.startVideo(stream);
726
726
  }
727
727
  });
728
- const onStopLocalVideo = (stream) => __awaiter$M(void 0, void 0, void 0, function* () {
728
+ const onStopLocalVideo = (stream) => __awaiter$L(void 0, void 0, void 0, function* () {
729
729
  const callId = call === null || call === void 0 ? void 0 : call.id;
730
730
  if (!callId) {
731
731
  return;
@@ -734,7 +734,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
734
734
  yield call.stopVideo(stream);
735
735
  }
736
736
  });
737
- const onToggleCamera = (options) => __awaiter$M(void 0, void 0, void 0, function* () {
737
+ const onToggleCamera = (options) => __awaiter$L(void 0, void 0, void 0, function* () {
738
738
  const previewOn = _isPreviewOn(callClient.getState().deviceManager);
739
739
  if (previewOn && call && call.state === 'Connecting') {
740
740
  // This is to workaround: https://skype.visualstudio.com/SPOOL/_workitems/edit/3030558.
@@ -782,19 +782,19 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
782
782
  }
783
783
  }
784
784
  });
785
- const onSelectMicrophone = (device) => __awaiter$M(void 0, void 0, void 0, function* () {
785
+ const onSelectMicrophone = (device) => __awaiter$L(void 0, void 0, void 0, function* () {
786
786
  if (!deviceManager) {
787
787
  return;
788
788
  }
789
789
  return deviceManager.selectMicrophone(device);
790
790
  });
791
- const onSelectSpeaker = (device) => __awaiter$M(void 0, void 0, void 0, function* () {
791
+ const onSelectSpeaker = (device) => __awaiter$L(void 0, void 0, void 0, function* () {
792
792
  if (!deviceManager) {
793
793
  return;
794
794
  }
795
795
  return deviceManager.selectSpeaker(device);
796
796
  });
797
- const onSelectCamera = (device, options) => __awaiter$M(void 0, void 0, void 0, function* () {
797
+ const onSelectCamera = (device, options) => __awaiter$L(void 0, void 0, void 0, function* () {
798
798
  if (!deviceManager) {
799
799
  return;
800
800
  }
@@ -818,11 +818,11 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
818
818
  }
819
819
  });
820
820
  /* @conditional-compile-remove(raise-hand) */
821
- const onRaiseHand = () => __awaiter$M(void 0, void 0, void 0, function* () { var _a; return yield ((_a = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _a === void 0 ? void 0 : _a.raiseHand()); });
821
+ const onRaiseHand = () => __awaiter$L(void 0, void 0, void 0, function* () { var _a; return yield ((_a = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _a === void 0 ? void 0 : _a.raiseHand()); });
822
822
  /* @conditional-compile-remove(raise-hand) */
823
- const onLowerHand = () => __awaiter$M(void 0, void 0, void 0, function* () { var _b; return yield ((_b = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _b === void 0 ? void 0 : _b.lowerHand()); });
823
+ const onLowerHand = () => __awaiter$L(void 0, void 0, void 0, function* () { var _b; return yield ((_b = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _b === void 0 ? void 0 : _b.lowerHand()); });
824
824
  /* @conditional-compile-remove(raise-hand) */
825
- const onToggleRaiseHand = () => __awaiter$M(void 0, void 0, void 0, function* () {
825
+ const onToggleRaiseHand = () => __awaiter$L(void 0, void 0, void 0, function* () {
826
826
  const raiseHandFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand);
827
827
  const localUserId = callClient.getState().userId;
828
828
  const isLocalRaisedHand = raiseHandFeature === null || raiseHandFeature === void 0 ? void 0 : raiseHandFeature.getRaisedHands().find((publishedState) => toFlatCommunicationIdentifier(publishedState.identifier) === toFlatCommunicationIdentifier(localUserId));
@@ -833,19 +833,19 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
833
833
  yield (raiseHandFeature === null || raiseHandFeature === void 0 ? void 0 : raiseHandFeature.raiseHand());
834
834
  }
835
835
  });
836
- const onToggleMicrophone = () => __awaiter$M(void 0, void 0, void 0, function* () {
836
+ const onToggleMicrophone = () => __awaiter$L(void 0, void 0, void 0, function* () {
837
837
  if (!call || !_isInCall(call.state)) {
838
838
  throw new Error(`Please invoke onToggleMicrophone after call is started`);
839
839
  }
840
840
  return call.isMuted ? yield call.unmute() : yield call.mute();
841
841
  });
842
- const onStartScreenShare = () => __awaiter$M(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.startScreenSharing()); });
843
- const onStopScreenShare = () => __awaiter$M(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.stopScreenSharing()); });
844
- const onToggleScreenShare = () => __awaiter$M(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.isScreenSharingOn) ? yield onStopScreenShare() : yield onStartScreenShare(); });
845
- const onHangUp = (forEveryone) => __awaiter$M(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.hangUp({ forEveryone: forEveryone === true ? true : false })); });
842
+ const onStartScreenShare = () => __awaiter$L(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.startScreenSharing()); });
843
+ const onStopScreenShare = () => __awaiter$L(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.stopScreenSharing()); });
844
+ const onToggleScreenShare = () => __awaiter$L(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.isScreenSharingOn) ? yield onStopScreenShare() : yield onStartScreenShare(); });
845
+ const onHangUp = (forEveryone) => __awaiter$L(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.hangUp({ forEveryone: forEveryone === true ? true : false })); });
846
846
  /* @conditional-compile-remove(PSTN-calls) */
847
- const onToggleHold = () => __awaiter$M(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.state) === 'LocalHold' ? yield (call === null || call === void 0 ? void 0 : call.resume()) : yield (call === null || call === void 0 ? void 0 : call.hold()); });
848
- const onCreateLocalStreamView = (options = { scalingMode: 'Crop', isMirrored: true }) => __awaiter$M(void 0, void 0, void 0, function* () {
847
+ const onToggleHold = () => __awaiter$L(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.state) === 'LocalHold' ? yield (call === null || call === void 0 ? void 0 : call.resume()) : yield (call === null || call === void 0 ? void 0 : call.hold()); });
848
+ const onCreateLocalStreamView = (options = { scalingMode: 'Crop', isMirrored: true }) => __awaiter$L(void 0, void 0, void 0, function* () {
849
849
  var _c;
850
850
  if (!call || call.localVideoStreams.length === 0) {
851
851
  return;
@@ -861,7 +861,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
861
861
  const { view } = (_c = (yield callClient.createView(call.id, undefined, localStream, options))) !== null && _c !== void 0 ? _c : {};
862
862
  return view ? { view } : undefined;
863
863
  });
864
- const onCreateRemoteStreamView = (userId, options = { scalingMode: 'Crop' }) => __awaiter$M(void 0, void 0, void 0, function* () {
864
+ const onCreateRemoteStreamView = (userId, options = { scalingMode: 'Crop' }) => __awaiter$L(void 0, void 0, void 0, function* () {
865
865
  if (!call) {
866
866
  return;
867
867
  }
@@ -892,7 +892,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
892
892
  }
893
893
  return (createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view) ? { view: createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view } : undefined;
894
894
  });
895
- const onDisposeRemoteStreamView = (userId) => __awaiter$M(void 0, void 0, void 0, function* () {
895
+ const onDisposeRemoteStreamView = (userId) => __awaiter$L(void 0, void 0, void 0, function* () {
896
896
  if (!call) {
897
897
  return;
898
898
  }
@@ -913,7 +913,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
913
913
  callClient.disposeView(call.id, participant.identifier, screenShareStream);
914
914
  }
915
915
  });
916
- const onDisposeRemoteVideoStreamView = (userId) => __awaiter$M(void 0, void 0, void 0, function* () {
916
+ const onDisposeRemoteVideoStreamView = (userId) => __awaiter$L(void 0, void 0, void 0, function* () {
917
917
  if (!call) {
918
918
  return;
919
919
  }
@@ -930,7 +930,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
930
930
  callClient.disposeView(call.id, participant.identifier, remoteVideoStream);
931
931
  }
932
932
  });
933
- const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$M(void 0, void 0, void 0, function* () {
933
+ const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$L(void 0, void 0, void 0, function* () {
934
934
  if (!call) {
935
935
  return;
936
936
  }
@@ -947,7 +947,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
947
947
  callClient.disposeView(call.id, participant.identifier, screenShareStream);
948
948
  }
949
949
  });
950
- const onDisposeLocalStreamView = () => __awaiter$M(void 0, void 0, void 0, function* () {
950
+ const onDisposeLocalStreamView = () => __awaiter$L(void 0, void 0, void 0, function* () {
951
951
  // If the user is currently in a call, dispose of the local stream view attached to that call.
952
952
  const callState = call && callClient.getState().calls[call.id];
953
953
  const localStream = callState === null || callState === void 0 ? void 0 : callState.localVideoStreams.find((item) => item.mediaStreamType === 'Video');
@@ -960,18 +960,18 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
960
960
  yield disposeAllLocalPreviewViews(callClient);
961
961
  });
962
962
  /* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */
963
- const onSendDtmfTone = (dtmfTone) => __awaiter$M(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.sendDtmf(dtmfTone)); });
963
+ const onSendDtmfTone = (dtmfTone) => __awaiter$L(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.sendDtmf(dtmfTone)); });
964
964
  const notImplemented = () => {
965
965
  throw new Error('Not implemented, cannot call a method from an abstract object');
966
966
  };
967
967
  /* @conditional-compile-remove(call-readiness) */
968
- const askDevicePermission = (constrain) => __awaiter$M(void 0, void 0, void 0, function* () {
968
+ const askDevicePermission = (constrain) => __awaiter$L(void 0, void 0, void 0, function* () {
969
969
  if (deviceManager) {
970
970
  yield (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.askDevicePermission(constrain));
971
971
  }
972
972
  });
973
973
  /* @conditional-compile-remove(video-background-effects) */
974
- const onRemoveVideoBackgroundEffects = () => __awaiter$M(void 0, void 0, void 0, function* () {
974
+ const onRemoveVideoBackgroundEffects = () => __awaiter$L(void 0, void 0, void 0, function* () {
975
975
  const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
976
976
  (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
977
977
  if (stream) {
@@ -984,7 +984,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
984
984
  }
985
985
  });
986
986
  /* @conditional-compile-remove(video-background-effects) */
987
- const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$M(void 0, void 0, void 0, function* () {
987
+ const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$L(void 0, void 0, void 0, function* () {
988
988
  var _d;
989
989
  const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
990
990
  (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
@@ -998,7 +998,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
998
998
  }
999
999
  });
1000
1000
  /* @conditional-compile-remove(video-background-effects) */
1001
- const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$M(void 0, void 0, void 0, function* () {
1001
+ const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$L(void 0, void 0, void 0, function* () {
1002
1002
  var _e;
1003
1003
  const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
1004
1004
  (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
@@ -1012,22 +1012,22 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
1012
1012
  }
1013
1013
  });
1014
1014
  /* @conditional-compile-remove(close-captions) */
1015
- const onStartCaptions = (options) => __awaiter$M(void 0, void 0, void 0, function* () {
1015
+ const onStartCaptions = (options) => __awaiter$L(void 0, void 0, void 0, function* () {
1016
1016
  const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
1017
1017
  yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.startCaptions(options));
1018
1018
  });
1019
1019
  /* @conditional-compile-remove(close-captions) */
1020
- const onStopCaptions = () => __awaiter$M(void 0, void 0, void 0, function* () {
1020
+ const onStopCaptions = () => __awaiter$L(void 0, void 0, void 0, function* () {
1021
1021
  const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
1022
1022
  yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.stopCaptions());
1023
1023
  });
1024
1024
  /* @conditional-compile-remove(close-captions) */
1025
- const onSetSpokenLanguage = (language) => __awaiter$M(void 0, void 0, void 0, function* () {
1025
+ const onSetSpokenLanguage = (language) => __awaiter$L(void 0, void 0, void 0, function* () {
1026
1026
  const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
1027
1027
  yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.setSpokenLanguage(language));
1028
1028
  });
1029
1029
  /* @conditional-compile-remove(close-captions) */
1030
- const onSetCaptionLanguage = (language) => __awaiter$M(void 0, void 0, void 0, function* () {
1030
+ const onSetCaptionLanguage = (language) => __awaiter$L(void 0, void 0, void 0, function* () {
1031
1031
  const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
1032
1032
  yield captionsFeature.setCaptionLanguage(language);
1033
1033
  });
@@ -1082,7 +1082,7 @@ const createDefaultCommonCallingHandlers = memoizeOne__default["default"]((callC
1082
1082
 
1083
1083
  // Copyright (c) Microsoft Corporation.
1084
1084
  // Licensed under the MIT License.
1085
- var __awaiter$L = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1085
+ var __awaiter$K = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1086
1086
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1087
1087
  return new (P || (P = Promise))(function (resolve, reject) {
1088
1088
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -1110,7 +1110,7 @@ const createDefaultCallingHandlers = memoizeOne__default["default"]((...args) =>
1110
1110
  return callAgent === null || callAgent === void 0 ? void 0 : callAgent.startCall(participants, options);
1111
1111
  },
1112
1112
  /* @conditional-compile-remove(PSTN-calls) */
1113
- onAddParticipant: (userId, options) => __awaiter$L(void 0, void 0, void 0, function* () {
1113
+ onAddParticipant: (userId, options) => __awaiter$K(void 0, void 0, void 0, function* () {
1114
1114
  const participant = _toCommunicationIdentifier(userId);
1115
1115
  if (communicationCommon.isPhoneNumberIdentifier(participant)) {
1116
1116
  call === null || call === void 0 ? void 0 : call.addParticipant(participant, options);
@@ -1118,7 +1118,7 @@ const createDefaultCallingHandlers = memoizeOne__default["default"]((...args) =>
1118
1118
  else if (communicationCommon.isCommunicationUserIdentifier(participant) || communicationCommon.isMicrosoftTeamsUserIdentifier(participant)) {
1119
1119
  call === null || call === void 0 ? void 0 : call.addParticipant(participant);
1120
1120
  }
1121
- }), onRemoveParticipant: (userId) => __awaiter$L(void 0, void 0, void 0, function* () {
1121
+ }), onRemoveParticipant: (userId) => __awaiter$K(void 0, void 0, void 0, function* () {
1122
1122
  const participant = _toCommunicationIdentifier(userId);
1123
1123
  yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
1124
1124
  }) });
@@ -1126,7 +1126,7 @@ const createDefaultCallingHandlers = memoizeOne__default["default"]((...args) =>
1126
1126
 
1127
1127
  // Copyright (c) Microsoft Corporation.
1128
1128
  // Licensed under the MIT License.
1129
- var __awaiter$K = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1129
+ var __awaiter$J = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1130
1130
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1131
1131
  return new (P || (P = Promise))(function (resolve, reject) {
1132
1132
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -1158,7 +1158,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne__default["default"]((callCl
1158
1158
  },
1159
1159
  /* @conditional-compile-remove(teams-identity-support) */
1160
1160
  /* @conditional-compile-remove(PSTN-calls) */
1161
- onAddParticipant: (userId, options) => __awaiter$K(void 0, void 0, void 0, function* () {
1161
+ onAddParticipant: (userId, options) => __awaiter$J(void 0, void 0, void 0, function* () {
1162
1162
  const participant = _toCommunicationIdentifier(userId);
1163
1163
  /* @conditional-compile-remove(teams-identity-support) */
1164
1164
  const threadId = options === null || options === void 0 ? void 0 : options.threadId;
@@ -1174,7 +1174,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne__default["default"]((callCl
1174
1174
  }
1175
1175
  /* @conditional-compile-remove(teams-identity-support) */
1176
1176
  call === null || call === void 0 ? void 0 : call.addParticipant(participant);
1177
- }), onRemoveParticipant: (userId) => __awaiter$K(void 0, void 0, void 0, function* () {
1177
+ }), onRemoveParticipant: (userId) => __awaiter$J(void 0, void 0, void 0, function* () {
1178
1178
  const participant = _toCommunicationIdentifier(userId);
1179
1179
  if (communicationCommon.isCommunicationUserIdentifier(participant)) {
1180
1180
  throw new Error('CommunicationIdentifier in Teams call is not supported!');
@@ -1263,7 +1263,7 @@ const getCaptionsSpeakerIdentifier = (captions) => {
1263
1263
 
1264
1264
  // Copyright (c) Microsoft Corporation.
1265
1265
  // Licensed under the MIT License.
1266
- var __awaiter$J = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1266
+ var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1267
1267
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1268
1268
  return new (P || (P = Promise))(function (resolve, reject) {
1269
1269
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -1312,13 +1312,13 @@ class ProxyDeviceManager {
1312
1312
  this.selectCamera = (videoDeviceInfo) => {
1313
1313
  this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);
1314
1314
  };
1315
- this.videoDevicesUpdated = () => __awaiter$J(this, void 0, void 0, function* () {
1315
+ this.videoDevicesUpdated = () => __awaiter$I(this, void 0, void 0, function* () {
1316
1316
  // Device Manager always has a camera with '' name if there are no real camera devices available.
1317
1317
  // We don't want to show that in the UI.
1318
1318
  const realCameras = (yield this._deviceManager.getCameras()).filter((c) => !!c.name);
1319
1319
  this._context.setDeviceManagerCameras(dedupeById(realCameras));
1320
1320
  });
1321
- this.audioDevicesUpdated = () => __awaiter$J(this, void 0, void 0, function* () {
1321
+ this.audioDevicesUpdated = () => __awaiter$I(this, void 0, void 0, function* () {
1322
1322
  this._context.setDeviceManagerMicrophones(dedupeById(yield this._deviceManager.getMicrophones()));
1323
1323
  this._context.setDeviceManagerSpeakers(dedupeById(yield this._deviceManager.getSpeakers()));
1324
1324
  });
@@ -1708,7 +1708,7 @@ function convertFromSDKToRaisedHandState(raisedHand) {
1708
1708
 
1709
1709
  // Copyright (c) Microsoft Corporation.
1710
1710
  // Licensed under the MIT License.
1711
- var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1711
+ var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
1712
1712
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1713
1713
  return new (P || (P = Promise))(function (resolve, reject) {
1714
1714
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -2464,7 +2464,7 @@ class CallContext$2 {
2464
2464
  * @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.
2465
2465
  */
2466
2466
  withAsyncErrorTeedToState(action, target) {
2467
- return (...args) => __awaiter$I(this, void 0, void 0, function* () {
2467
+ return (...args) => __awaiter$H(this, void 0, void 0, function* () {
2468
2468
  try {
2469
2469
  return yield action(...args);
2470
2470
  }
@@ -2911,7 +2911,7 @@ function _logStreamEvent(eventName, streamLogInfo, error) {
2911
2911
 
2912
2912
  // Copyright (c) Microsoft Corporation.
2913
2913
  // Licensed under the MIT License.
2914
- var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
2914
+ var __awaiter$G = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
2915
2915
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2916
2916
  return new (P || (P = Promise))(function (resolve, reject) {
2917
2917
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -2921,7 +2921,7 @@ var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments,
2921
2921
  });
2922
2922
  };
2923
2923
  function createViewVideo(context, internalContext, callId, stream, participantId, options) {
2924
- return __awaiter$H(this, void 0, void 0, function* () {
2924
+ return __awaiter$G(this, void 0, void 0, function* () {
2925
2925
  // we can only have 3 types of createView
2926
2926
  let streamEventType;
2927
2927
  // we will reuse these for local as well but we need to make sure the remote stream is passed in like before.
@@ -3043,7 +3043,7 @@ function createViewVideo(context, internalContext, callId, stream, participantId
3043
3043
  });
3044
3044
  }
3045
3045
  function createViewUnparentedVideo(context, internalContext, stream, options) {
3046
- return __awaiter$H(this, void 0, void 0, function* () {
3046
+ return __awaiter$G(this, void 0, void 0, function* () {
3047
3047
  const renderInfo = internalContext.getUnparentedRenderInfo(stream);
3048
3048
  if (renderInfo && renderInfo.status === 'Rendered') {
3049
3049
  console.warn('Unparented LocalVideoStream is already rendered');
@@ -3211,7 +3211,7 @@ function createView(context, internalContext, callId, participantId, stream, opt
3211
3211
  // Render LocalVideoStream that is not part of a Call
3212
3212
  // 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).
3213
3213
  // We do not have a startLocalPreviewVideo function, so as a workaround we ensure any errors are propagated here.
3214
- return context.withAsyncErrorTeedToState(() => __awaiter$H(this, void 0, void 0, function* () { return yield createViewUnparentedVideo(context, internalContext, stream, options); }), 'Call.startVideo')();
3214
+ return context.withAsyncErrorTeedToState(() => __awaiter$G(this, void 0, void 0, function* () { return yield createViewUnparentedVideo(context, internalContext, stream, options); }), 'Call.startVideo')();
3215
3215
  }
3216
3216
  else {
3217
3217
  _logStreamEvent(EventNames.CREATE_STREAM_INVALID_PARAMS, { streamType });
@@ -3771,7 +3771,7 @@ class CallSubscriber {
3771
3771
 
3772
3772
  // Copyright (c) Microsoft Corporation.
3773
3773
  // Licensed under the MIT License.
3774
- var __awaiter$G = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
3774
+ var __awaiter$F = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
3775
3775
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3776
3776
  return new (P || (P = Promise))(function (resolve, reject) {
3777
3777
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -3791,14 +3791,14 @@ class ProxyIncomingCall {
3791
3791
  switch (prop) {
3792
3792
  case 'accept': {
3793
3793
  return this._context.withAsyncErrorTeedToState(function (...args) {
3794
- return __awaiter$G(this, void 0, void 0, function* () {
3794
+ return __awaiter$F(this, void 0, void 0, function* () {
3795
3795
  return yield target.accept(...args);
3796
3796
  });
3797
3797
  }, 'IncomingCall.accept');
3798
3798
  }
3799
3799
  case 'reject': {
3800
3800
  return this._context.withAsyncErrorTeedToState(function (...args) {
3801
- return __awaiter$G(this, void 0, void 0, function* () {
3801
+ return __awaiter$F(this, void 0, void 0, function* () {
3802
3802
  return yield target.reject(...args);
3803
3803
  });
3804
3804
  }, 'IncomingCall.reject');
@@ -4039,7 +4039,7 @@ const clearCallRelatedState = (context, internalContext) => {
4039
4039
 
4040
4040
  // Copyright (c) Microsoft Corporation.
4041
4041
  // Licensed under the MIT License.
4042
- var __awaiter$F = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4042
+ var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4043
4043
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4044
4044
  return new (P || (P = Promise))(function (resolve, reject) {
4045
4045
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -4065,56 +4065,56 @@ class ProxyCallCommon {
4065
4065
  switch (prop) {
4066
4066
  case 'mute': {
4067
4067
  return this._context.withAsyncErrorTeedToState(function (...args) {
4068
- return __awaiter$F(this, void 0, void 0, function* () {
4068
+ return __awaiter$E(this, void 0, void 0, function* () {
4069
4069
  return yield target.mute(...args);
4070
4070
  });
4071
4071
  }, 'Call.mute');
4072
4072
  }
4073
4073
  case 'unmute': {
4074
4074
  return this._context.withAsyncErrorTeedToState(function (...args) {
4075
- return __awaiter$F(this, void 0, void 0, function* () {
4075
+ return __awaiter$E(this, void 0, void 0, function* () {
4076
4076
  return yield target.unmute(...args);
4077
4077
  });
4078
4078
  }, 'Call.unmute');
4079
4079
  }
4080
4080
  case 'startVideo': {
4081
4081
  return this._context.withAsyncErrorTeedToState(function (...args) {
4082
- return __awaiter$F(this, void 0, void 0, function* () {
4082
+ return __awaiter$E(this, void 0, void 0, function* () {
4083
4083
  return yield target.startVideo(...args);
4084
4084
  });
4085
4085
  }, 'Call.startVideo');
4086
4086
  }
4087
4087
  case 'stopVideo': {
4088
4088
  return this._context.withAsyncErrorTeedToState(function (...args) {
4089
- return __awaiter$F(this, void 0, void 0, function* () {
4089
+ return __awaiter$E(this, void 0, void 0, function* () {
4090
4090
  return yield target.stopVideo(...args);
4091
4091
  });
4092
4092
  }, 'Call.stopVideo');
4093
4093
  }
4094
4094
  case 'startScreenSharing': {
4095
4095
  return this._context.withAsyncErrorTeedToState(function (...args) {
4096
- return __awaiter$F(this, void 0, void 0, function* () {
4096
+ return __awaiter$E(this, void 0, void 0, function* () {
4097
4097
  return yield target.startScreenSharing(...args);
4098
4098
  });
4099
4099
  }, 'Call.startScreenSharing');
4100
4100
  }
4101
4101
  case 'stopScreenSharing': {
4102
4102
  return this._context.withAsyncErrorTeedToState(function (...args) {
4103
- return __awaiter$F(this, void 0, void 0, function* () {
4103
+ return __awaiter$E(this, void 0, void 0, function* () {
4104
4104
  return yield target.stopScreenSharing(...args);
4105
4105
  });
4106
4106
  }, 'Call.stopScreenSharing');
4107
4107
  }
4108
4108
  case 'hold': {
4109
4109
  return this._context.withAsyncErrorTeedToState(function (...args) {
4110
- return __awaiter$F(this, void 0, void 0, function* () {
4110
+ return __awaiter$E(this, void 0, void 0, function* () {
4111
4111
  return yield target.hold(...args);
4112
4112
  });
4113
4113
  }, 'Call.hold');
4114
4114
  }
4115
4115
  case 'resume': {
4116
4116
  return this._context.withAsyncErrorTeedToState(function (...args) {
4117
- return __awaiter$F(this, void 0, void 0, function* () {
4117
+ return __awaiter$E(this, void 0, void 0, function* () {
4118
4118
  return yield target.resume(...args);
4119
4119
  });
4120
4120
  }, 'Call.resume');
@@ -4154,7 +4154,7 @@ class ProxyTeamsCaptions {
4154
4154
  get(target, prop) {
4155
4155
  switch (prop) {
4156
4156
  case 'startCaptions':
4157
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$F(this, void 0, void 0, function* () {
4157
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$E(this, void 0, void 0, function* () {
4158
4158
  var _a, _b;
4159
4159
  this._context.setStartCaptionsInProgress(this._call.id, true);
4160
4160
  const ret = yield target.startCaptions(...args);
@@ -4162,7 +4162,7 @@ class ProxyTeamsCaptions {
4162
4162
  return ret;
4163
4163
  }), 'Call.feature');
4164
4164
  case 'stopCaptions':
4165
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$F(this, void 0, void 0, function* () {
4165
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$E(this, void 0, void 0, function* () {
4166
4166
  const ret = yield target.stopCaptions(...args);
4167
4167
  this._context.setIsCaptionActive(this._call.id, false);
4168
4168
  this._context.setStartCaptionsInProgress(this._call.id, false);
@@ -4170,13 +4170,13 @@ class ProxyTeamsCaptions {
4170
4170
  return ret;
4171
4171
  }), 'Call.feature');
4172
4172
  case 'setSpokenLanguage':
4173
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$F(this, void 0, void 0, function* () {
4173
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$E(this, void 0, void 0, function* () {
4174
4174
  const ret = yield target.setSpokenLanguage(...args);
4175
4175
  this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
4176
4176
  return ret;
4177
4177
  }), 'Call.feature');
4178
4178
  case 'setCaptionLanguage':
4179
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$F(this, void 0, void 0, function* () {
4179
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$E(this, void 0, void 0, function* () {
4180
4180
  const ret = yield target.setCaptionLanguage(...args);
4181
4181
  this._context.setSelectedCaptionLanguage(this._call.id, args[0]);
4182
4182
  return ret;
@@ -4224,7 +4224,7 @@ class ProxyTransferCallFeature {
4224
4224
 
4225
4225
  // Copyright (c) Microsoft Corporation.
4226
4226
  // Licensed under the MIT License.
4227
- var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4227
+ var __awaiter$D = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4228
4228
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4229
4229
  return new (P || (P = Promise))(function (resolve, reject) {
4230
4230
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -4238,7 +4238,7 @@ class ProxyCall extends ProxyCallCommon {
4238
4238
  switch (prop) {
4239
4239
  case 'addParticipant': {
4240
4240
  return this.getContext().withAsyncErrorTeedToState(function (...args) {
4241
- return __awaiter$E(this, void 0, void 0, function* () {
4241
+ return __awaiter$D(this, void 0, void 0, function* () {
4242
4242
  return yield target.addParticipant(...args);
4243
4243
  });
4244
4244
  }, 'Call.addParticipant');
@@ -4459,7 +4459,7 @@ class InternalCallContext {
4459
4459
 
4460
4460
  // Copyright (c) Microsoft Corporation.
4461
4461
  // Licensed under the MIT License.
4462
- var __awaiter$D = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4462
+ var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4463
4463
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4464
4464
  return new (P || (P = Promise))(function (resolve, reject) {
4465
4465
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -4474,7 +4474,7 @@ class ProxyTeamsCall extends ProxyCallCommon {
4474
4474
  switch (prop) {
4475
4475
  case 'addParticipant': {
4476
4476
  return this.getContext().withAsyncErrorTeedToState(function (...args) {
4477
- return __awaiter$D(this, void 0, void 0, function* () {
4477
+ return __awaiter$C(this, void 0, void 0, function* () {
4478
4478
  return yield target.addParticipant(...args);
4479
4479
  });
4480
4480
  }, 'TeamsCall.addParticipant');
@@ -4590,7 +4590,7 @@ const teamsCallAgentDeclaratify = (callAgent, context, internalContext) => {
4590
4590
 
4591
4591
  // Copyright (c) Microsoft Corporation.
4592
4592
  // Licensed under the MIT License.
4593
- var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4593
+ var __awaiter$B = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4594
4594
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4595
4595
  return new (P || (P = Promise))(function (resolve, reject) {
4596
4596
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -4612,7 +4612,7 @@ class ProxyVideoStreamRendererView {
4612
4612
  get(target, prop) {
4613
4613
  switch (prop) {
4614
4614
  case 'updateScalingMode': {
4615
- return (...args) => __awaiter$C(this, void 0, void 0, function* () {
4615
+ return (...args) => __awaiter$B(this, void 0, void 0, function* () {
4616
4616
  yield target.updateScalingMode(...args);
4617
4617
  this._context.setRemoteVideoStreamViewScalingMode(this._callId, this._participantId, this._streamId, args[0]);
4618
4618
  });
@@ -4633,7 +4633,7 @@ const videoStreamRendererViewDeclaratify = (view, context, callId, participantId
4633
4633
 
4634
4634
  // Copyright (c) Microsoft Corporation.
4635
4635
  // Licensed under the MIT License.
4636
- var __awaiter$B = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4636
+ var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
4637
4637
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4638
4638
  return new (P || (P = Promise))(function (resolve, reject) {
4639
4639
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -4655,7 +4655,7 @@ class ProxyCallClient {
4655
4655
  get(target, prop) {
4656
4656
  switch (prop) {
4657
4657
  case 'createCallAgent': {
4658
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$B(this, void 0, void 0, function* () {
4658
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$A(this, void 0, void 0, function* () {
4659
4659
  // createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
4660
4660
  // callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
4661
4661
  // callAgent if the createCallAgent succeeds.
@@ -4668,7 +4668,7 @@ class ProxyCallClient {
4668
4668
  }), 'CallClient.createCallAgent');
4669
4669
  }
4670
4670
  case 'createTeamsCallAgent': {
4671
- /* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$B(this, void 0, void 0, function* () {
4671
+ /* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$A(this, void 0, void 0, function* () {
4672
4672
  // createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
4673
4673
  // callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
4674
4674
  // callAgent if the createCallAgent succeeds.
@@ -4681,7 +4681,7 @@ class ProxyCallClient {
4681
4681
  }), 'CallClient.createTeamsCallAgent');
4682
4682
  }
4683
4683
  case 'getDeviceManager': {
4684
- return this._context.withAsyncErrorTeedToState(() => __awaiter$B(this, void 0, void 0, function* () {
4684
+ return this._context.withAsyncErrorTeedToState(() => __awaiter$A(this, void 0, void 0, function* () {
4685
4685
  // As of writing, the SDK always returns the same instance of DeviceManager so we keep a reference of
4686
4686
  // DeviceManager and if it does not change we return the cached DeclarativeDeviceManager. If it does not we'll
4687
4687
  // throw an error that indicate we need to fix this issue as our implementation has diverged from the SDK.
@@ -4710,7 +4710,7 @@ class ProxyCallClient {
4710
4710
  /**
4711
4711
  * add to this object if we want to proxy anything else off the DebugInfo feature object.
4712
4712
  */
4713
- return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$B(this, void 0, void 0, function* () {
4713
+ return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$A(this, void 0, void 0, function* () {
4714
4714
  const environmentInfo = yield feature.getEnvironmentInfo();
4715
4715
  this._context.setEnvironmentInfo(environmentInfo);
4716
4716
  return environmentInfo;
@@ -4763,7 +4763,7 @@ const createStatefulCallClientWithDeps = (callClient, context, internalContext)
4763
4763
  });
4764
4764
  Object.defineProperty(callClient, 'createView', {
4765
4765
  configurable: false,
4766
- value: (callId, participantId, stream, options) => __awaiter$B(void 0, void 0, void 0, function* () {
4766
+ value: (callId, participantId, stream, options) => __awaiter$A(void 0, void 0, void 0, function* () {
4767
4767
  const participantIdKind = participantId ? communicationCommon.getIdentifierKind(participantId) : undefined;
4768
4768
  const result = yield createView(context, internalContext, callId, participantIdKind, stream, options);
4769
4769
  // We only need to declaratify the VideoStreamRendererView object for remote participants. Because the updateScalingMode only needs to be called on remote participant stream views.
@@ -7306,7 +7306,7 @@ const _MentionPopover = (props) => {
7306
7306
 
7307
7307
  // Copyright (c) Microsoft Corporation.
7308
7308
  // Licensed under the MIT License.
7309
- var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
7309
+ var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
7310
7310
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7311
7311
  return new (P || (P = Promise))(function (resolve, reject) {
7312
7312
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -7481,7 +7481,7 @@ const TextFieldWithMention = (props) => {
7481
7481
  onSuggestionSelected,
7482
7482
  updateMentionSuggestions
7483
7483
  ]);
7484
- const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$A(void 0, void 0, void 0, function* () {
7484
+ const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$z(void 0, void 0, void 0, function* () {
7485
7485
  var _a;
7486
7486
  let suggestions = (_a = (yield (mentionLookupOptions === null || mentionLookupOptions === void 0 ? void 0 : mentionLookupOptions.onQueryUpdated(query)))) !== null && _a !== void 0 ? _a : [];
7487
7487
  suggestions = suggestions.filter((suggestion) => suggestion.displayText.trim() !== '');
@@ -7658,7 +7658,7 @@ const TextFieldWithMention = (props) => {
7658
7658
  });
7659
7659
  }
7660
7660
  }, [updateSelectionIndexesWithMentionIfNeeded, setSelectionStartValue, setSelectionEndValue]);
7661
- const handleOnChange = React.useCallback(({ currentSelectionEnd, currentSelectionStart, currentTriggerStartIndex, event, htmlTextValue, inputTextValue, previousSelectionEnd, previousSelectionStart, tagsValue, updatedValue }) => __awaiter$A(void 0, void 0, void 0, function* () {
7661
+ const handleOnChange = React.useCallback(({ currentSelectionEnd, currentSelectionStart, currentTriggerStartIndex, event, htmlTextValue, inputTextValue, previousSelectionEnd, previousSelectionStart, tagsValue, updatedValue }) => __awaiter$z(void 0, void 0, void 0, function* () {
7662
7662
  var _b;
7663
7663
  debouncedQueryUpdate.cancel();
7664
7664
  if (event.currentTarget === null) {
@@ -9675,7 +9675,7 @@ const chatMessageActionMenuProps = (menuProps) => {
9675
9675
 
9676
9676
  // Copyright (c) Microsoft Corporation.
9677
9677
  // Licensed under the MIT License.
9678
- var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9678
+ var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9679
9679
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9680
9680
  return new (P || (P = Promise))(function (resolve, reject) {
9681
9681
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9718,7 +9718,7 @@ const _FileDownloadCards = (props) => {
9718
9718
  fileCount: `${fileMetadata.filter(isFileSharingAttachment).length}`
9719
9719
  });
9720
9720
  }, [(_b = props.strings) === null || _b === void 0 ? void 0 : _b.fileCardGroupMessage, localeStrings.fileCardGroupMessage, fileMetadata, isFileSharingAttachment]);
9721
- const fileDownloadHandler = React.useCallback((userId, file) => __awaiter$z(void 0, void 0, void 0, function* () {
9721
+ const fileDownloadHandler = React.useCallback((userId, file) => __awaiter$y(void 0, void 0, void 0, function* () {
9722
9722
  if (!props.downloadHandler) {
9723
9723
  window.open(file.url, '_blank', 'noopener,noreferrer');
9724
9724
  }
@@ -9806,7 +9806,7 @@ function createStyleFromV8Style(v8Style) {
9806
9806
 
9807
9807
  // Copyright (c) Microsoft Corporation.
9808
9808
  // Licensed under the MIT License.
9809
- var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9809
+ var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9810
9810
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9811
9811
  return new (P || (P = Promise))(function (resolve, reject) {
9812
9812
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9898,7 +9898,7 @@ const MessageBubble = (props) => {
9898
9898
  return undefined;
9899
9899
  }, [editedOn, message.messageType, messageStatus, strings.editedTag, strings.failToSendTag, theme]);
9900
9900
  /* @conditional-compile-remove(image-gallery) */
9901
- const handleOnInlineImageClicked = React.useCallback((attachmentId) => __awaiter$y(void 0, void 0, void 0, function* () {
9901
+ const handleOnInlineImageClicked = React.useCallback((attachmentId) => __awaiter$x(void 0, void 0, void 0, function* () {
9902
9902
  if (onInlineImageClicked === undefined) {
9903
9903
  return;
9904
9904
  }
@@ -10011,7 +10011,7 @@ const ChatMessageComponentAsMessageBubble = React__default["default"].memo(Messa
10011
10011
 
10012
10012
  // Copyright (c) Microsoft Corporation.
10013
10013
  // Licensed under the MIT License.
10014
- var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10014
+ var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10015
10015
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10016
10016
  return new (P || (P = Promise))(function (resolve, reject) {
10017
10017
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -10044,7 +10044,7 @@ const ChatMessageComponent = (props) => {
10044
10044
  onSendMessage && onSendMessage(content !== undefined ? content : '');
10045
10045
  }, [clientMessageId, content, onSendMessage, onDeleteMessage]);
10046
10046
  if (isEditing && message.messageType === 'chat') {
10047
- return (React__default["default"].createElement(ChatMessageComponentAsEditBox, { message: message, strings: props.strings, onSubmit: (text, metadata, options) => __awaiter$x(void 0, void 0, void 0, function* () {
10047
+ return (React__default["default"].createElement(ChatMessageComponentAsEditBox, { message: message, strings: props.strings, onSubmit: (text, metadata, options) => __awaiter$w(void 0, void 0, void 0, function* () {
10048
10048
  props.onUpdateMessage &&
10049
10049
  message.messageId &&
10050
10050
  (yield props.onUpdateMessage(message.messageId, text, metadata, options));
@@ -10585,7 +10585,7 @@ const LiveAnnouncer = (props) => {
10585
10585
 
10586
10586
  // Copyright (c) Microsoft Corporation.
10587
10587
  // Licensed under the MIT License.
10588
- var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10588
+ var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10589
10589
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10590
10590
  return new (P || (P = Promise))(function (resolve, reject) {
10591
10591
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -10839,7 +10839,7 @@ const MessageThreadWrapper = (props) => {
10839
10839
  /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
10840
10840
  const [inlineAttachments, setInlineAttachments] = React.useState({});
10841
10841
  /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
10842
- const onFetchInlineAttachment = React.useCallback((attachment) => __awaiter$w(void 0, void 0, void 0, function* () {
10842
+ const onFetchInlineAttachment = React.useCallback((attachment) => __awaiter$v(void 0, void 0, void 0, function* () {
10843
10843
  if (!onFetchAttachments || attachment.attachmentType !== 'inlineImage' || attachment.id in inlineAttachments) {
10844
10844
  return;
10845
10845
  }
@@ -10894,7 +10894,7 @@ const MessageThreadWrapper = (props) => {
10894
10894
  */
10895
10895
  const clientHeight = (_a = chatThreadRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight;
10896
10896
  // we try to only send those message status if user is scrolled to the bottom.
10897
- const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$w(void 0, void 0, void 0, function* () {
10897
+ const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$v(void 0, void 0, void 0, function* () {
10898
10898
  if (!isAtBottomOfScrollRef.current ||
10899
10899
  !document.hasFocus() ||
10900
10900
  !messagesRef.current ||
@@ -10945,7 +10945,7 @@ const MessageThreadWrapper = (props) => {
10945
10945
  setIsAtBottomOfScrollRef(atBottom);
10946
10946
  }, [scrollToBottom, sendMessageStatusIfAtBottom]);
10947
10947
  // Infinite scrolling + threadInitialize function
10948
- const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$w(void 0, void 0, void 0, function* () {
10948
+ const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$v(void 0, void 0, void 0, function* () {
10949
10949
  if (!isLoadingChatMessagesRef.current) {
10950
10950
  if (onLoadPreviousChatMessages) {
10951
10951
  isLoadingChatMessagesRef.current = true;
@@ -15980,7 +15980,7 @@ const DevicesButton = (props) => {
15980
15980
 
15981
15981
  // Copyright (c) Microsoft Corporation.
15982
15982
  // Licensed under the MIT License.
15983
- var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
15983
+ var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
15984
15984
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15985
15985
  return new (P || (P = Promise))(function (resolve, reject) {
15986
15986
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -16018,7 +16018,7 @@ const CameraButton = (props) => {
16018
16018
  const toggleAnnouncerString = React.useCallback((isCameraOn) => {
16019
16019
  setAnnouncerString(!isCameraOn ? strings.cameraActionTurnedOffAnnouncement : strings.cameraActionTurnedOnAnnouncement);
16020
16020
  }, [strings.cameraActionTurnedOffAnnouncement, strings.cameraActionTurnedOnAnnouncement]);
16021
- const onToggleClick = React.useCallback(() => __awaiter$v(void 0, void 0, void 0, function* () {
16021
+ const onToggleClick = React.useCallback(() => __awaiter$u(void 0, void 0, void 0, function* () {
16022
16022
  // Throttle click on camera, need to await onToggleCamera then allow another click
16023
16023
  if (onToggleCamera) {
16024
16024
  setWaitForCamera(true);
@@ -16186,7 +16186,7 @@ const lightThemeCallButtonStyles = {
16186
16186
 
16187
16187
  // Copyright (c) Microsoft Corporation.
16188
16188
  // Licensed under the MIT License.
16189
- var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16189
+ var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16190
16190
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16191
16191
  return new (P || (P = Promise))(function (resolve, reject) {
16192
16192
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -16227,7 +16227,7 @@ const MicrophoneButton = (props) => {
16227
16227
  const toggleAnnouncerString = React.useCallback((isMicOn) => {
16228
16228
  setAnnouncerString(!isMicOn ? strings.microphoneActionTurnedOffAnnouncement : strings.microphoneActionTurnedOnAnnouncement);
16229
16229
  }, [strings.microphoneActionTurnedOffAnnouncement, strings.microphoneActionTurnedOnAnnouncement]);
16230
- const onToggleClick = React.useCallback(() => __awaiter$u(void 0, void 0, void 0, function* () {
16230
+ const onToggleClick = React.useCallback(() => __awaiter$t(void 0, void 0, void 0, function* () {
16231
16231
  if (onToggleMicrophone) {
16232
16232
  try {
16233
16233
  yield onToggleMicrophone();
@@ -17157,7 +17157,7 @@ const formatPhoneNumber = (phoneNumber) => {
17157
17157
 
17158
17158
  // Copyright (c) Microsoft Corporation.
17159
17159
  // Licensed under the MIT License.
17160
- var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
17160
+ var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
17161
17161
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17162
17162
  return new (P || (P = Promise))(function (resolve, reject) {
17163
17163
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -17199,10 +17199,10 @@ const DialpadButton = (props) => {
17199
17199
  const theme = react.useTheme();
17200
17200
  const { digit, index, onClick, onLongPress, isMobile = false } = props;
17201
17201
  const useLongPressProps = React__default["default"].useMemo(() => ({
17202
- onClick: () => __awaiter$t(void 0, void 0, void 0, function* () {
17202
+ onClick: () => __awaiter$s(void 0, void 0, void 0, function* () {
17203
17203
  onClick(digit, index);
17204
17204
  }),
17205
- onLongPress: () => __awaiter$t(void 0, void 0, void 0, function* () {
17205
+ onLongPress: () => __awaiter$s(void 0, void 0, void 0, function* () {
17206
17206
  onLongPress(digit, index);
17207
17207
  }),
17208
17208
  touchEventsOnly: isMobile
@@ -18043,7 +18043,7 @@ const _spokenLanguageToCaptionLanguage = {
18043
18043
 
18044
18044
  // Copyright (c) Microsoft Corporation.
18045
18045
  // Licensed under the MIT License.
18046
- var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
18046
+ var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
18047
18047
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18048
18048
  return new (P || (P = Promise))(function (resolve, reject) {
18049
18049
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -18086,7 +18086,7 @@ const _CaptionsSettingsModal = (props) => {
18086
18086
  onDismissCaptionsSettings();
18087
18087
  }
18088
18088
  }, [onDismissCaptionsSettings]);
18089
- const onConfirm = React.useCallback(() => __awaiter$s(void 0, void 0, void 0, function* () {
18089
+ const onConfirm = React.useCallback(() => __awaiter$r(void 0, void 0, void 0, function* () {
18090
18090
  const spokenLanguageCode = selectedSpokenLanguage.key.toString();
18091
18091
  const captionLanguageCode = selectedCaptionLanguage.key.toString();
18092
18092
  if (isCaptionsFeatureActive) {
@@ -19016,7 +19016,7 @@ const findConditionalCompiledSelector = (component) => {
19016
19016
 
19017
19017
  // Copyright (c) Microsoft Corporation.
19018
19018
  // Licensed under the MIT License.
19019
- var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
19019
+ var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
19020
19020
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19021
19021
  return new (P || (P = Promise))(function (resolve, reject) {
19022
19022
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -19039,35 +19039,35 @@ const createDefaultChatHandlers = memoizeOne__default["default"]((chatClient, ch
19039
19039
  let messageIterator = undefined;
19040
19040
  let readReceiptIterator = undefined;
19041
19041
  return {
19042
- onSendMessage: (content, options) => __awaiter$r(void 0, void 0, void 0, function* () {
19042
+ onSendMessage: (content, options) => __awaiter$q(void 0, void 0, void 0, function* () {
19043
19043
  const sendMessageRequest = {
19044
19044
  content,
19045
19045
  senderDisplayName: chatClient.getState().displayName
19046
19046
  };
19047
19047
  yield chatThreadClient.sendMessage(sendMessageRequest, options);
19048
19048
  }),
19049
- onUpdateMessage: (messageId, content, metadata, options) => __awaiter$r(void 0, void 0, void 0, function* () {
19049
+ onUpdateMessage: (messageId, content, metadata, options) => __awaiter$q(void 0, void 0, void 0, function* () {
19050
19050
  const updatedMetadata = metadata ? Object.assign({}, metadata) : {};
19051
19051
  updatedMetadata['fileSharingMetadata'] = JSON.stringify((options === null || options === void 0 ? void 0 : options.attachedFilesMetadata) || []);
19052
19052
  yield chatThreadClient.updateMessage(messageId, { content, metadata: updatedMetadata });
19053
19053
  }),
19054
- onDeleteMessage: (messageId) => __awaiter$r(void 0, void 0, void 0, function* () {
19054
+ onDeleteMessage: (messageId) => __awaiter$q(void 0, void 0, void 0, function* () {
19055
19055
  yield chatThreadClient.deleteMessage(messageId);
19056
19056
  }),
19057
19057
  // This handler is designed for chatThread to consume
19058
- onMessageSeen: (chatMessageId) => __awaiter$r(void 0, void 0, void 0, function* () {
19058
+ onMessageSeen: (chatMessageId) => __awaiter$q(void 0, void 0, void 0, function* () {
19059
19059
  yield chatThreadClient.sendReadReceipt({ chatMessageId });
19060
19060
  }),
19061
- onTyping: () => __awaiter$r(void 0, void 0, void 0, function* () {
19061
+ onTyping: () => __awaiter$q(void 0, void 0, void 0, function* () {
19062
19062
  yield chatThreadClient.sendTypingNotification();
19063
19063
  }),
19064
- onRemoveParticipant: (userId) => __awaiter$r(void 0, void 0, void 0, function* () {
19064
+ onRemoveParticipant: (userId) => __awaiter$q(void 0, void 0, void 0, function* () {
19065
19065
  yield chatThreadClient.removeParticipant(fromFlatCommunicationIdentifier(userId));
19066
19066
  }),
19067
- updateThreadTopicName: (topicName) => __awaiter$r(void 0, void 0, void 0, function* () {
19067
+ updateThreadTopicName: (topicName) => __awaiter$q(void 0, void 0, void 0, function* () {
19068
19068
  yield chatThreadClient.updateTopic(topicName);
19069
19069
  }),
19070
- onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$r(void 0, void 0, void 0, function* () {
19070
+ onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$q(void 0, void 0, void 0, function* () {
19071
19071
  var _a, _b, _c;
19072
19072
  if (messageIterator === undefined) {
19073
19073
  // Lazy definition so that errors in the method call are reported correctly.
@@ -19934,7 +19934,7 @@ const chatStatefulLogger = logger.createClientLogger('communication-react:chat-s
19934
19934
 
19935
19935
  // Copyright (c) Microsoft Corporation.
19936
19936
  // Licensed under the MIT License.
19937
- var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
19937
+ var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
19938
19938
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19939
19939
  return new (P || (P = Promise))(function (resolve, reject) {
19940
19940
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -20209,7 +20209,7 @@ class ChatContext$1 {
20209
20209
  * @throws ChatError. Exceptions thrown from `f` are tagged with the failed `target.
20210
20210
  */
20211
20211
  withAsyncErrorTeedToState(f, target) {
20212
- return (...args) => __awaiter$q(this, void 0, void 0, function* () {
20212
+ return (...args) => __awaiter$p(this, void 0, void 0, function* () {
20213
20213
  try {
20214
20214
  return yield f(...args);
20215
20215
  }
@@ -20321,7 +20321,7 @@ const convertChatMessage = (message, status = 'delivered', clientMessageId) => {
20321
20321
 
20322
20322
  // Copyright (c) Microsoft Corporation.
20323
20323
  // Licensed under the MIT License.
20324
- var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20324
+ var __awaiter$o = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20325
20325
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20326
20326
  return new (P || (P = Promise))(function (resolve, reject) {
20327
20327
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -20410,7 +20410,7 @@ class EventSubscriber {
20410
20410
  };
20411
20411
  // This is a temporary fix that no participant message is received for onChatMessageReceived event, which should be handled by JS SDK.
20412
20412
  // Without the temporary fix, there are missing 'participant joined' and 'participant left' system messages in the chat thread.
20413
- this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$p(this, void 0, void 0, function* () {
20413
+ this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$o(this, void 0, void 0, function* () {
20414
20414
  var e_1, _a;
20415
20415
  try {
20416
20416
  for (var _b = __asyncValues$1(this.chatClient
@@ -20502,7 +20502,7 @@ class EventSubscriber {
20502
20502
 
20503
20503
  // Copyright (c) Microsoft Corporation.
20504
20504
  // Licensed under the MIT License.
20505
- var __awaiter$o = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20505
+ var __awaiter$n = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20506
20506
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20507
20507
  return new (P || (P = Promise))(function (resolve, reject) {
20508
20508
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -20524,7 +20524,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
20524
20524
  const threadsIterator = iteratorCreator(...args);
20525
20525
  return {
20526
20526
  next() {
20527
- return __awaiter$o(this, void 0, void 0, function* () {
20527
+ return __awaiter$n(this, void 0, void 0, function* () {
20528
20528
  const result = yield threadsIterator.next();
20529
20529
  if (!result.done && result.value) {
20530
20530
  decorateFn(result.value, context);
@@ -20539,7 +20539,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
20539
20539
  const pages = threadsIterator.byPage(settings);
20540
20540
  return {
20541
20541
  next() {
20542
- return __awaiter$o(this, void 0, void 0, function* () {
20542
+ return __awaiter$n(this, void 0, void 0, function* () {
20543
20543
  const result = yield pages.next();
20544
20544
  const page = result.value;
20545
20545
  if (!result.done && result.value) {
@@ -20623,7 +20623,7 @@ const createDecoratedListParticipants = (chatThreadClient, context) => {
20623
20623
 
20624
20624
  // Copyright (c) Microsoft Corporation.
20625
20625
  // Licensed under the MIT License.
20626
- var __awaiter$n = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20626
+ var __awaiter$m = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20627
20627
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20628
20628
  return new (P || (P = Promise))(function (resolve, reject) {
20629
20629
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -20642,14 +20642,14 @@ class ProxyChatThreadClient {
20642
20642
  return createDecoratedListMessages(chatThreadClient, this._context);
20643
20643
  }
20644
20644
  case 'getMessage': {
20645
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$n(this, void 0, void 0, function* () {
20645
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$m(this, void 0, void 0, function* () {
20646
20646
  const message = yield chatThreadClient.getMessage(...args);
20647
20647
  this._context.setChatMessage(chatThreadClient.threadId, convertChatMessage(message));
20648
20648
  return message;
20649
20649
  }), 'ChatThreadClient.getMessage');
20650
20650
  }
20651
20651
  case 'sendMessage': {
20652
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$n(this, void 0, void 0, function* () {
20652
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$m(this, void 0, void 0, function* () {
20653
20653
  var _a;
20654
20654
  // Retry logic?
20655
20655
  const [request, options] = args;
@@ -20690,7 +20690,7 @@ class ProxyChatThreadClient {
20690
20690
  }), 'ChatThreadClient.sendMessage');
20691
20691
  }
20692
20692
  case 'addParticipants': {
20693
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$n(this, void 0, void 0, function* () {
20693
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$m(this, void 0, void 0, function* () {
20694
20694
  const result = yield chatThreadClient.addParticipants(...args);
20695
20695
  const [addRequest] = args;
20696
20696
  const participantsToAdd = addRequest.participants;
@@ -20699,7 +20699,7 @@ class ProxyChatThreadClient {
20699
20699
  }), 'ChatThreadClient.addParticipants');
20700
20700
  }
20701
20701
  case 'deleteMessage': {
20702
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$n(this, void 0, void 0, function* () {
20702
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$m(this, void 0, void 0, function* () {
20703
20703
  // DeleteMessage is able to either delete local one(for failed message) or synced message
20704
20704
  const [messageId] = args;
20705
20705
  if (this._context.deleteLocalMessage(chatThreadClient.threadId, messageId)) {
@@ -20717,12 +20717,12 @@ class ProxyChatThreadClient {
20717
20717
  return createDecoratedListReadReceipts(chatThreadClient, this._context);
20718
20718
  }
20719
20719
  case 'sendTypingNotification': {
20720
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$n(this, void 0, void 0, function* () {
20720
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$m(this, void 0, void 0, function* () {
20721
20721
  return yield chatThreadClient.sendTypingNotification(...args);
20722
20722
  }), 'ChatThreadClient.sendTypingNotification');
20723
20723
  }
20724
20724
  case 'removeParticipant': {
20725
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$n(this, void 0, void 0, function* () {
20725
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$m(this, void 0, void 0, function* () {
20726
20726
  const result = yield chatThreadClient.removeParticipant(...args);
20727
20727
  const [removeIdentifier] = args;
20728
20728
  this._context.deleteParticipant(chatThreadClient.threadId, communicationCommon.getIdentifierKind(removeIdentifier));
@@ -20730,7 +20730,7 @@ class ProxyChatThreadClient {
20730
20730
  }), 'ChatThreadClient.removeParticipant');
20731
20731
  }
20732
20732
  case 'updateMessage': {
20733
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$n(this, void 0, void 0, function* () {
20733
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$m(this, void 0, void 0, function* () {
20734
20734
  const result = yield chatThreadClient.updateMessage(...args);
20735
20735
  const [messageId, updateOption] = args;
20736
20736
  this._context.updateChatMessageContent(chatThreadClient.threadId, messageId, updateOption === null || updateOption === void 0 ? void 0 : updateOption.content);
@@ -20738,7 +20738,7 @@ class ProxyChatThreadClient {
20738
20738
  }), 'ChatThreadClient.updateMessage');
20739
20739
  }
20740
20740
  case 'updateTopic': {
20741
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$n(this, void 0, void 0, function* () {
20741
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$m(this, void 0, void 0, function* () {
20742
20742
  const result = yield chatThreadClient.updateTopic(...args);
20743
20743
  const [topic] = args;
20744
20744
  this._context.updateThreadTopic(chatThreadClient.threadId, topic);
@@ -20746,7 +20746,7 @@ class ProxyChatThreadClient {
20746
20746
  }), 'ChatThreadClient.updateTopic');
20747
20747
  }
20748
20748
  case 'getProperties': {
20749
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$n(this, void 0, void 0, function* () {
20749
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$m(this, void 0, void 0, function* () {
20750
20750
  const result = yield chatThreadClient.getProperties(...args);
20751
20751
  this._context.updateThread(chatThreadClient.threadId, result);
20752
20752
  return result;
@@ -20783,7 +20783,7 @@ const createDecoratedListThreads = (chatClient, context) => {
20783
20783
 
20784
20784
  // Copyright (c) Microsoft Corporation.
20785
20785
  // Licensed under the MIT License.
20786
- var __awaiter$m = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20786
+ var __awaiter$l = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
20787
20787
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20788
20788
  return new (P || (P = Promise))(function (resolve, reject) {
20789
20789
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -20802,7 +20802,7 @@ const proxyChatClient = {
20802
20802
  switch (prop) {
20803
20803
  case 'createChatThread': {
20804
20804
  return context.withAsyncErrorTeedToState(function (...args) {
20805
- return __awaiter$m(this, void 0, void 0, function* () {
20805
+ return __awaiter$l(this, void 0, void 0, function* () {
20806
20806
  const result = yield chatClient.createChatThread(...args);
20807
20807
  const thread = result.chatThread;
20808
20808
  if (thread) {
@@ -20815,7 +20815,7 @@ const proxyChatClient = {
20815
20815
  }
20816
20816
  case 'deleteChatThread': {
20817
20817
  return context.withAsyncErrorTeedToState(function (...args) {
20818
- return __awaiter$m(this, void 0, void 0, function* () {
20818
+ return __awaiter$l(this, void 0, void 0, function* () {
20819
20819
  const result = yield chatClient.deleteChatThread(...args);
20820
20820
  context.deleteThread(args[0]);
20821
20821
  return result;
@@ -20835,7 +20835,7 @@ const proxyChatClient = {
20835
20835
  }
20836
20836
  case 'startRealtimeNotifications': {
20837
20837
  return context.withAsyncErrorTeedToState(function (...args) {
20838
- return __awaiter$m(this, void 0, void 0, function* () {
20838
+ return __awaiter$l(this, void 0, void 0, function* () {
20839
20839
  const ret = yield chatClient.startRealtimeNotifications(...args);
20840
20840
  if (!receiver.eventSubscriber) {
20841
20841
  receiver.eventSubscriber = new EventSubscriber(chatClient, context);
@@ -20846,7 +20846,7 @@ const proxyChatClient = {
20846
20846
  }
20847
20847
  case 'stopRealtimeNotifications': {
20848
20848
  return context.withAsyncErrorTeedToState(function (...args) {
20849
- return __awaiter$m(this, void 0, void 0, function* () {
20849
+ return __awaiter$l(this, void 0, void 0, function* () {
20850
20850
  const ret = yield chatClient.stopRealtimeNotifications(...args);
20851
20851
  if (receiver.eventSubscriber) {
20852
20852
  receiver.eventSubscriber.unsubscribe();
@@ -21305,7 +21305,7 @@ const convertObservableFileUploadToFileUploadsUiState = (fileUploads) => {
21305
21305
 
21306
21306
  // Copyright (c) Microsoft Corporation.
21307
21307
  // Licensed under the MIT License.
21308
- var __awaiter$l = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
21308
+ var __awaiter$k = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
21309
21309
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21310
21310
  return new (P || (P = Promise))(function (resolve, reject) {
21311
21311
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -21440,9 +21440,9 @@ class AzureCommunicationChatAdapter {
21440
21440
  this.unsubscribeAllEvents();
21441
21441
  }
21442
21442
  fetchInitialData() {
21443
- return __awaiter$l(this, void 0, void 0, function* () {
21443
+ return __awaiter$k(this, void 0, void 0, function* () {
21444
21444
  // If get properties fails we dont want to try to get the participants after.
21445
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21445
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21446
21446
  var e_1, _a;
21447
21447
  yield this.chatThreadClient.getProperties();
21448
21448
  try {
@@ -21476,8 +21476,8 @@ class AzureCommunicationChatAdapter {
21476
21476
  this.context.offStateChange(handler);
21477
21477
  }
21478
21478
  sendMessage(content, options = {}) {
21479
- return __awaiter$l(this, void 0, void 0, function* () {
21480
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21479
+ return __awaiter$k(this, void 0, void 0, function* () {
21480
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21481
21481
  /* @conditional-compile-remove(file-sharing) */
21482
21482
  options.metadata = Object.assign(Object.assign({}, options.metadata), convertFileUploadsUiStateToMessageMetadata(this.context.getState().fileUploads));
21483
21483
  /* @conditional-compile-remove(file-sharing) */
@@ -21494,51 +21494,51 @@ class AzureCommunicationChatAdapter {
21494
21494
  });
21495
21495
  }
21496
21496
  sendReadReceipt(chatMessageId) {
21497
- return __awaiter$l(this, void 0, void 0, function* () {
21498
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21497
+ return __awaiter$k(this, void 0, void 0, function* () {
21498
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21499
21499
  yield this.handlers.onMessageSeen(chatMessageId);
21500
21500
  }));
21501
21501
  });
21502
21502
  }
21503
21503
  sendTypingIndicator() {
21504
- return __awaiter$l(this, void 0, void 0, function* () {
21505
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21504
+ return __awaiter$k(this, void 0, void 0, function* () {
21505
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21506
21506
  yield this.handlers.onTyping();
21507
21507
  }));
21508
21508
  });
21509
21509
  }
21510
21510
  removeParticipant(userId) {
21511
- return __awaiter$l(this, void 0, void 0, function* () {
21512
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21511
+ return __awaiter$k(this, void 0, void 0, function* () {
21512
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21513
21513
  yield this.handlers.onRemoveParticipant(userId);
21514
21514
  }));
21515
21515
  });
21516
21516
  }
21517
21517
  setTopic(topicName) {
21518
- return __awaiter$l(this, void 0, void 0, function* () {
21519
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21518
+ return __awaiter$k(this, void 0, void 0, function* () {
21519
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21520
21520
  yield this.handlers.updateThreadTopicName(topicName);
21521
21521
  }));
21522
21522
  });
21523
21523
  }
21524
21524
  loadPreviousChatMessages(messagesToLoad) {
21525
- return __awaiter$l(this, void 0, void 0, function* () {
21526
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21525
+ return __awaiter$k(this, void 0, void 0, function* () {
21526
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21527
21527
  return yield this.handlers.onLoadPreviousChatMessages(messagesToLoad);
21528
21528
  }));
21529
21529
  });
21530
21530
  }
21531
21531
  updateMessage(messageId, content, metadata, options) {
21532
- return __awaiter$l(this, void 0, void 0, function* () {
21533
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21532
+ return __awaiter$k(this, void 0, void 0, function* () {
21533
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21534
21534
  /* @conditional-compile-remove(file-sharing) */
21535
21535
  return yield this.handlers.onUpdateMessage(messageId, content, metadata, options);
21536
21536
  }));
21537
21537
  });
21538
21538
  }
21539
21539
  deleteMessage(messageId) {
21540
- return __awaiter$l(this, void 0, void 0, function* () {
21541
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21540
+ return __awaiter$k(this, void 0, void 0, function* () {
21541
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21542
21542
  return yield this.handlers.onDeleteMessage(messageId);
21543
21543
  }));
21544
21544
  });
@@ -21573,8 +21573,8 @@ class AzureCommunicationChatAdapter {
21573
21573
  }
21574
21574
  /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21575
21575
  downloadAttachments(options) {
21576
- return __awaiter$l(this, void 0, void 0, function* () {
21577
- return this.asyncTeeErrorToEventEmitter(() => __awaiter$l(this, void 0, void 0, function* () {
21576
+ return __awaiter$k(this, void 0, void 0, function* () {
21577
+ return this.asyncTeeErrorToEventEmitter(() => __awaiter$k(this, void 0, void 0, function* () {
21578
21578
  if (this.credential === undefined) {
21579
21579
  const e = new Error();
21580
21580
  e['target'] = 'ChatThreadClient.getMessage';
@@ -21594,9 +21594,9 @@ class AzureCommunicationChatAdapter {
21594
21594
  }
21595
21595
  /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21596
21596
  downloadAuthenticatedFile(accessToken, options) {
21597
- return __awaiter$l(this, void 0, void 0, function* () {
21597
+ return __awaiter$k(this, void 0, void 0, function* () {
21598
21598
  function fetchWithAuthentication(url, token) {
21599
- return __awaiter$l(this, void 0, void 0, function* () {
21599
+ return __awaiter$k(this, void 0, void 0, function* () {
21600
21600
  const headers = new Headers();
21601
21601
  headers.append('Authorization', `Bearer ${token}`);
21602
21602
  try {
@@ -21668,7 +21668,7 @@ class AzureCommunicationChatAdapter {
21668
21668
  this.emitter.off(event, listener);
21669
21669
  }
21670
21670
  asyncTeeErrorToEventEmitter(f) {
21671
- return __awaiter$l(this, void 0, void 0, function* () {
21671
+ return __awaiter$k(this, void 0, void 0, function* () {
21672
21672
  try {
21673
21673
  return yield f();
21674
21674
  }
@@ -21710,7 +21710,7 @@ const convertEventType = (type) => {
21710
21710
  *
21711
21711
  * @public
21712
21712
  */
21713
- const createAzureCommunicationChatAdapter = ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) => __awaiter$l(void 0, void 0, void 0, function* () {
21713
+ const createAzureCommunicationChatAdapter = ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) => __awaiter$k(void 0, void 0, void 0, function* () {
21714
21714
  if (!_isValidIdentifier(userId)) {
21715
21715
  throw new Error('Provided userId is invalid. Please provide valid identifier object.');
21716
21716
  }
@@ -21779,7 +21779,7 @@ beforeDispose) => {
21779
21779
  if (!credential || !displayName || !endpoint || !threadId || !userId) {
21780
21780
  return;
21781
21781
  }
21782
- (() => __awaiter$l(void 0, void 0, void 0, function* () {
21782
+ (() => __awaiter$k(void 0, void 0, void 0, function* () {
21783
21783
  if (adapterRef.current) {
21784
21784
  // Dispose the old adapter when a new one is created.
21785
21785
  //
@@ -21811,7 +21811,7 @@ beforeDispose) => {
21811
21811
  // Dispose any existing adapter when the component unmounts.
21812
21812
  React.useEffect(() => {
21813
21813
  return () => {
21814
- (() => __awaiter$l(void 0, void 0, void 0, function* () {
21814
+ (() => __awaiter$k(void 0, void 0, void 0, function* () {
21815
21815
  if (adapterRef.current) {
21816
21816
  if (beforeDisposeRef.current) {
21817
21817
  yield beforeDisposeRef.current(adapterRef.current);
@@ -21835,7 +21835,7 @@ beforeDispose) => {
21835
21835
  function createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient,
21836
21836
  /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
21837
21837
  options) {
21838
- return __awaiter$l(this, void 0, void 0, function* () {
21838
+ return __awaiter$k(this, void 0, void 0, function* () {
21839
21839
  return new AzureCommunicationChatAdapter(chatClient, chatThreadClient,
21840
21840
  /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */ options);
21841
21841
  });
@@ -22048,7 +22048,7 @@ const sendboxContainerStyles = {
22048
22048
 
22049
22049
  // Copyright (c) Microsoft Corporation.
22050
22050
  // Licensed under the MIT License.
22051
- var __awaiter$k = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
22051
+ var __awaiter$j = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
22052
22052
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22053
22053
  return new (P || (P = Promise))(function (resolve, reject) {
22054
22054
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -22069,7 +22069,7 @@ const AvatarPersona = (props) => {
22069
22069
  const { userId, dataProvider, text, imageUrl, imageInitials, initialsColor, initialsTextColor, showOverflowTooltip } = props;
22070
22070
  const [data, setData] = React.useState();
22071
22071
  React.useEffect(() => {
22072
- (() => __awaiter$k(void 0, void 0, void 0, function* () {
22072
+ (() => __awaiter$j(void 0, void 0, void 0, function* () {
22073
22073
  if (dataProvider && userId) {
22074
22074
  const newData = yield dataProvider(userId);
22075
22075
  if (avatarDeepDifferenceCheck(data, newData)) {
@@ -22446,7 +22446,7 @@ const FileDownloadErrorBar = (props) => {
22446
22446
 
22447
22447
  // Copyright (c) Microsoft Corporation.
22448
22448
  // Licensed under the MIT License.
22449
- var __awaiter$j = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
22449
+ var __awaiter$i = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
22450
22450
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22451
22451
  return new (P || (P = Promise))(function (resolve, reject) {
22452
22452
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -22473,7 +22473,7 @@ const ChatScreen = (props) => {
22473
22473
  const theme = useTheme();
22474
22474
  React.useEffect(() => {
22475
22475
  // Initial data should be always fetched by the composite(or external caller) instead of the adapter
22476
- const fetchData = () => __awaiter$j(void 0, void 0, void 0, function* () {
22476
+ const fetchData = () => __awaiter$i(void 0, void 0, void 0, function* () {
22477
22477
  // Fetch initial data for adapter
22478
22478
  yield adapter.fetchInitialData();
22479
22479
  // Fetch initial set of messages. Without fetching messages here, if the Composite's adapter is changed the message thread does not load new messages.
@@ -22507,7 +22507,7 @@ const ChatScreen = (props) => {
22507
22507
  setDownloadErrorMessage(errorMessage);
22508
22508
  } })), [fileSharing === null || fileSharing === void 0 ? void 0 : fileSharing.downloadHandler]);
22509
22509
  /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
22510
- const onRenderInlineAttachment = React.useCallback((attachment) => __awaiter$j(void 0, void 0, void 0, function* () {
22510
+ const onRenderInlineAttachment = React.useCallback((attachment) => __awaiter$i(void 0, void 0, void 0, function* () {
22511
22511
  if (attachment.attachmentType === 'inlineImage' && attachment.previewUrl) {
22512
22512
  const blob = yield adapter.downloadAttachments({ attachmentUrls: [attachment.previewUrl] });
22513
22513
  return blob;
@@ -22515,7 +22515,7 @@ const ChatScreen = (props) => {
22515
22515
  return [{ blobUrl: '' }];
22516
22516
  }), [adapter]);
22517
22517
  /* @conditional-compile-remove(image-gallery) */
22518
- const onInlineImageClicked = React.useCallback((attachmentId, messageId) => __awaiter$j(void 0, void 0, void 0, function* () {
22518
+ const onInlineImageClicked = React.useCallback((attachmentId, messageId) => __awaiter$i(void 0, void 0, void 0, function* () {
22519
22519
  var _a, _b;
22520
22520
  const messages = (_a = messageThreadProps.messages) === null || _a === void 0 ? void 0 : _a.filter((message) => {
22521
22521
  return message.messageId === messageId;
@@ -22820,7 +22820,7 @@ const END_CALL_PAGES = [
22820
22820
 
22821
22821
  // Copyright (c) Microsoft Corporation.
22822
22822
  // Licensed under the MIT License.
22823
- var __awaiter$i = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
22823
+ var __awaiter$h = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
22824
22824
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22825
22825
  return new (P || (P = Promise))(function (resolve, reject) {
22826
22826
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -23050,7 +23050,7 @@ const isDisabled$3 = (option) => {
23050
23050
  /**
23051
23051
  * @returns Permissions state for the camera.
23052
23052
  */
23053
- const queryCameraPermissionFromPermissionsAPI = () => __awaiter$i(void 0, void 0, void 0, function* () {
23053
+ const queryCameraPermissionFromPermissionsAPI = () => __awaiter$h(void 0, void 0, void 0, function* () {
23054
23054
  try {
23055
23055
  return (yield navigator.permissions.query({ name: 'camera' })).state;
23056
23056
  }
@@ -23063,7 +23063,7 @@ const queryCameraPermissionFromPermissionsAPI = () => __awaiter$i(void 0, void 0
23063
23063
  /**
23064
23064
  * @returns Permissions state for the microphone.
23065
23065
  */
23066
- const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$i(void 0, void 0, void 0, function* () {
23066
+ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$h(void 0, void 0, void 0, function* () {
23067
23067
  try {
23068
23068
  return (yield navigator.permissions.query({ name: 'microphone' })).state;
23069
23069
  }
@@ -23080,7 +23080,7 @@ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$i(void 0, vo
23080
23080
  * If permission API is not supported on this browser, permission state is set to unsupported.
23081
23081
  * @private
23082
23082
  */
23083
- const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$i(void 0, void 0, void 0, function* () {
23083
+ const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$h(void 0, void 0, void 0, function* () {
23084
23084
  const [cameraResult, microphoneResult] = yield Promise.all([
23085
23085
  queryCameraPermissionFromPermissionsAPI(),
23086
23086
  queryMicrophonePermissionFromPermissionsAPI()
@@ -23158,7 +23158,7 @@ const getSelectedCameraFromAdapterState = (state) => state.devices.selectedCamer
23158
23158
 
23159
23159
  // Copyright (c) Microsoft Corporation.
23160
23160
  // Licensed under the MIT License.
23161
- var __awaiter$h = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
23161
+ var __awaiter$g = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
23162
23162
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23163
23163
  return new (P || (P = Promise))(function (resolve, reject) {
23164
23164
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -23177,127 +23177,127 @@ _component) => {
23177
23177
  return createCompositeHandlers(useAdapter());
23178
23178
  };
23179
23179
  const createCompositeHandlers = memoizeOne__default["default"]((adapter) => ({
23180
- onCreateLocalStreamView: (options) => __awaiter$h(void 0, void 0, void 0, function* () {
23180
+ onCreateLocalStreamView: (options) => __awaiter$g(void 0, void 0, void 0, function* () {
23181
23181
  return yield adapter.createStreamView(undefined, options);
23182
23182
  }),
23183
- onCreateRemoteStreamView: (userId, options) => __awaiter$h(void 0, void 0, void 0, function* () {
23183
+ onCreateRemoteStreamView: (userId, options) => __awaiter$g(void 0, void 0, void 0, function* () {
23184
23184
  return yield adapter.createStreamView(userId, options);
23185
23185
  }),
23186
- onHangUp: (forEveryone) => __awaiter$h(void 0, void 0, void 0, function* () {
23186
+ onHangUp: (forEveryone) => __awaiter$g(void 0, void 0, void 0, function* () {
23187
23187
  yield adapter.leaveCall(forEveryone);
23188
23188
  }),
23189
23189
  /* @conditional-compile-remove(PSTN-calls) */
23190
- onToggleHold: () => __awaiter$h(void 0, void 0, void 0, function* () {
23190
+ onToggleHold: () => __awaiter$g(void 0, void 0, void 0, function* () {
23191
23191
  var _a;
23192
23192
  return ((_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold' ? yield adapter.resumeCall() : yield adapter.holdCall();
23193
23193
  }),
23194
23194
  /* @conditional-compile-remove(PSTN-calls) */
23195
- onAddParticipant: (participant, options) => __awaiter$h(void 0, void 0, void 0, function* () {
23195
+ onAddParticipant: (participant, options) => __awaiter$g(void 0, void 0, void 0, function* () {
23196
23196
  return yield adapter.addParticipant(participant, options);
23197
23197
  }),
23198
23198
  /* @conditional-compile-remove(PSTN-calls) */
23199
- onSendDtmfTone: (dtmfTone) => __awaiter$h(void 0, void 0, void 0, function* () {
23199
+ onSendDtmfTone: (dtmfTone) => __awaiter$g(void 0, void 0, void 0, function* () {
23200
23200
  yield adapter.sendDtmfTone(dtmfTone);
23201
23201
  }),
23202
- onRemoveParticipant: (userId) => __awaiter$h(void 0, void 0, void 0, function* () {
23202
+ onRemoveParticipant: (userId) => __awaiter$g(void 0, void 0, void 0, function* () {
23203
23203
  yield adapter.removeParticipant(userId);
23204
23204
  }),
23205
23205
  /* @conditional-compile-remove(raise-hand) */
23206
- onRaiseHand: () => __awaiter$h(void 0, void 0, void 0, function* () {
23206
+ onRaiseHand: () => __awaiter$g(void 0, void 0, void 0, function* () {
23207
23207
  yield adapter.raiseHand();
23208
23208
  }),
23209
23209
  /* @conditional-compile-remove(raise-hand) */
23210
- onLowerHand: () => __awaiter$h(void 0, void 0, void 0, function* () {
23210
+ onLowerHand: () => __awaiter$g(void 0, void 0, void 0, function* () {
23211
23211
  yield adapter.lowerHand();
23212
23212
  }),
23213
23213
  /* @conditional-compile-remove(raise-hand) */
23214
- onToggleRaiseHand: () => __awaiter$h(void 0, void 0, void 0, function* () {
23214
+ onToggleRaiseHand: () => __awaiter$g(void 0, void 0, void 0, function* () {
23215
23215
  var _b;
23216
23216
  ((_b = adapter.getState().call) === null || _b === void 0 ? void 0 : _b.raiseHand.localParticipantRaisedHand)
23217
23217
  ? yield adapter.lowerHand()
23218
23218
  : yield adapter.raiseHand();
23219
23219
  }),
23220
- onSelectCamera: (deviceInfo, options) => __awaiter$h(void 0, void 0, void 0, function* () {
23220
+ onSelectCamera: (deviceInfo, options) => __awaiter$g(void 0, void 0, void 0, function* () {
23221
23221
  yield adapter.setCamera(deviceInfo, options);
23222
23222
  }),
23223
- onSelectMicrophone: (deviceInfo) => __awaiter$h(void 0, void 0, void 0, function* () {
23223
+ onSelectMicrophone: (deviceInfo) => __awaiter$g(void 0, void 0, void 0, function* () {
23224
23224
  yield adapter.setMicrophone(deviceInfo);
23225
23225
  }),
23226
- onSelectSpeaker: (deviceInfo) => __awaiter$h(void 0, void 0, void 0, function* () {
23226
+ onSelectSpeaker: (deviceInfo) => __awaiter$g(void 0, void 0, void 0, function* () {
23227
23227
  yield adapter.setSpeaker(deviceInfo);
23228
23228
  }),
23229
23229
  onStartCall: (participants, options) => {
23230
23230
  const rawIds = participants.map((participant) => toFlatCommunicationIdentifier(participant));
23231
23231
  return adapter.startCall(rawIds, options);
23232
23232
  },
23233
- onStartScreenShare: () => __awaiter$h(void 0, void 0, void 0, function* () {
23233
+ onStartScreenShare: () => __awaiter$g(void 0, void 0, void 0, function* () {
23234
23234
  yield adapter.startScreenShare();
23235
23235
  }),
23236
- onStopScreenShare: () => __awaiter$h(void 0, void 0, void 0, function* () {
23236
+ onStopScreenShare: () => __awaiter$g(void 0, void 0, void 0, function* () {
23237
23237
  yield adapter.stopScreenShare();
23238
23238
  }),
23239
- onToggleCamera: (options) => __awaiter$h(void 0, void 0, void 0, function* () {
23239
+ onToggleCamera: (options) => __awaiter$g(void 0, void 0, void 0, function* () {
23240
23240
  isCameraOn(adapter.getState()) ? yield adapter.stopCamera() : yield adapter.startCamera(options);
23241
23241
  }),
23242
- onToggleMicrophone: () => __awaiter$h(void 0, void 0, void 0, function* () {
23242
+ onToggleMicrophone: () => __awaiter$g(void 0, void 0, void 0, function* () {
23243
23243
  var _c;
23244
23244
  return ((_c = adapter.getState().call) === null || _c === void 0 ? void 0 : _c.isMuted) ? yield adapter.unmute() : yield adapter.mute();
23245
23245
  }),
23246
- onToggleScreenShare: () => __awaiter$h(void 0, void 0, void 0, function* () {
23246
+ onToggleScreenShare: () => __awaiter$g(void 0, void 0, void 0, function* () {
23247
23247
  var _d;
23248
23248
  return ((_d = adapter.getState().call) === null || _d === void 0 ? void 0 : _d.isScreenSharingOn)
23249
23249
  ? yield adapter.stopScreenShare()
23250
23250
  : yield adapter.startScreenShare();
23251
23251
  }),
23252
- onStartLocalVideo: () => __awaiter$h(void 0, void 0, void 0, function* () {
23252
+ onStartLocalVideo: () => __awaiter$g(void 0, void 0, void 0, function* () {
23253
23253
  if (adapter.getState().call) {
23254
23254
  return adapter.startCamera();
23255
23255
  }
23256
23256
  }),
23257
- onDisposeLocalStreamView: () => __awaiter$h(void 0, void 0, void 0, function* () {
23257
+ onDisposeLocalStreamView: () => __awaiter$g(void 0, void 0, void 0, function* () {
23258
23258
  return adapter.disposeLocalVideoStreamView();
23259
23259
  }),
23260
- onDisposeRemoteStreamView: (userId) => __awaiter$h(void 0, void 0, void 0, function* () {
23260
+ onDisposeRemoteStreamView: (userId) => __awaiter$g(void 0, void 0, void 0, function* () {
23261
23261
  return adapter.disposeStreamView(userId);
23262
23262
  }),
23263
- onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$h(void 0, void 0, void 0, function* () {
23263
+ onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$g(void 0, void 0, void 0, function* () {
23264
23264
  return adapter.disposeScreenShareStreamView(userId);
23265
23265
  }),
23266
- onDisposeRemoteVideoStreamView: (userId) => __awaiter$h(void 0, void 0, void 0, function* () {
23266
+ onDisposeRemoteVideoStreamView: (userId) => __awaiter$g(void 0, void 0, void 0, function* () {
23267
23267
  return adapter.disposeRemoteVideoStreamView(userId);
23268
23268
  }),
23269
23269
  /* @conditional-compile-remove(call-readiness) */
23270
- askDevicePermission: (constrain) => __awaiter$h(void 0, void 0, void 0, function* () {
23270
+ askDevicePermission: (constrain) => __awaiter$g(void 0, void 0, void 0, function* () {
23271
23271
  return adapter.askDevicePermission(constrain);
23272
23272
  }),
23273
23273
  /* @conditional-compile-remove(video-background-effects) */
23274
- onRemoveVideoBackgroundEffects: () => __awaiter$h(void 0, void 0, void 0, function* () {
23274
+ onRemoveVideoBackgroundEffects: () => __awaiter$g(void 0, void 0, void 0, function* () {
23275
23275
  return yield adapter.stopVideoBackgroundEffects();
23276
23276
  }),
23277
23277
  /* @conditional-compile-remove(video-background-effects) */
23278
- onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$h(void 0, void 0, void 0, function* () {
23278
+ onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$g(void 0, void 0, void 0, function* () {
23279
23279
  const blurConfig = Object.assign({ effectName: 'blur' }, backgroundBlurConfig);
23280
23280
  return yield adapter.startVideoBackgroundEffect(blurConfig);
23281
23281
  }),
23282
23282
  /* @conditional-compile-remove(video-background-effects) */
23283
- onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$h(void 0, void 0, void 0, function* () {
23283
+ onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$g(void 0, void 0, void 0, function* () {
23284
23284
  const replacementConfig = Object.assign({ effectName: 'replacement' }, backgroundReplacementConfig);
23285
23285
  return yield adapter.startVideoBackgroundEffect(replacementConfig);
23286
23286
  }),
23287
23287
  /* @conditional-compile-remove(close-captions) */
23288
- onStartCaptions: (options) => __awaiter$h(void 0, void 0, void 0, function* () {
23288
+ onStartCaptions: (options) => __awaiter$g(void 0, void 0, void 0, function* () {
23289
23289
  yield adapter.startCaptions(options);
23290
23290
  }),
23291
23291
  /* @conditional-compile-remove(close-captions) */
23292
- onStopCaptions: () => __awaiter$h(void 0, void 0, void 0, function* () {
23292
+ onStopCaptions: () => __awaiter$g(void 0, void 0, void 0, function* () {
23293
23293
  yield adapter.stopCaptions();
23294
23294
  }),
23295
23295
  /* @conditional-compile-remove(close-captions) */
23296
- onSetSpokenLanguage: (language) => __awaiter$h(void 0, void 0, void 0, function* () {
23296
+ onSetSpokenLanguage: (language) => __awaiter$g(void 0, void 0, void 0, function* () {
23297
23297
  yield adapter.setSpokenLanguage(language);
23298
23298
  }),
23299
23299
  /* @conditional-compile-remove(close-captions) */
23300
- onSetCaptionLanguage: (language) => __awaiter$h(void 0, void 0, void 0, function* () {
23300
+ onSetCaptionLanguage: (language) => __awaiter$g(void 0, void 0, void 0, function* () {
23301
23301
  yield adapter.setCaptionLanguage(language);
23302
23302
  })
23303
23303
  }));
@@ -23438,7 +23438,7 @@ const MoreButton = (props) => {
23438
23438
 
23439
23439
  // Copyright (c) Microsoft Corporation.
23440
23440
  // Licensed under the MIT License.
23441
- var __awaiter$g = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
23441
+ var __awaiter$f = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
23442
23442
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23443
23443
  return new (P || (P = Promise))(function (resolve, reject) {
23444
23444
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -23466,7 +23466,7 @@ const CaptionsBannerMoreButton = (props) => {
23466
23466
  /* @conditional-compile-remove(close-captions) */
23467
23467
  const moreButtonContextualMenuItems = [];
23468
23468
  /* @conditional-compile-remove(close-captions) */
23469
- const startCaptions = React.useCallback(() => __awaiter$g(void 0, void 0, void 0, function* () {
23469
+ const startCaptions = React.useCallback(() => __awaiter$f(void 0, void 0, void 0, function* () {
23470
23470
  yield startCaptionsButtonHandlers.onStartCaptions({
23471
23471
  spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
23472
23472
  });
@@ -24496,7 +24496,7 @@ const useCallWithChatCompositeStrings = () => {
24496
24496
 
24497
24497
  // Copyright (c) Microsoft Corporation.
24498
24498
  // Licensed under the MIT License.
24499
- var __awaiter$f = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
24499
+ var __awaiter$e = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
24500
24500
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
24501
24501
  return new (P || (P = Promise))(function (resolve, reject) {
24502
24502
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -24520,7 +24520,7 @@ const DesktopMoreButton = (props) => {
24520
24520
  /* @conditional-compile-remove(close-captions) */
24521
24521
  const startCaptionsButtonHandlers = useHandlers();
24522
24522
  /* @conditional-compile-remove(close-captions) */
24523
- const startCaptions = React.useCallback(() => __awaiter$f(void 0, void 0, void 0, function* () {
24523
+ const startCaptions = React.useCallback(() => __awaiter$e(void 0, void 0, void 0, function* () {
24524
24524
  yield startCaptionsButtonHandlers.onStartCaptions({
24525
24525
  spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
24526
24526
  });
@@ -25260,7 +25260,7 @@ const themedToggleButtonStyle = (theme, checked) => {
25260
25260
 
25261
25261
  // Copyright (c) Microsoft Corporation.
25262
25262
  // Licensed under the MIT License.
25263
- var __awaiter$e = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
25263
+ var __awaiter$d = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
25264
25264
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
25265
25265
  return new (P || (P = Promise))(function (resolve, reject) {
25266
25266
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -25490,7 +25490,7 @@ const MoreDrawer = (props) => {
25490
25490
  ? captionSettingsProp.currentCaptionLanguage
25491
25491
  : _spokenLanguageToCaptionLanguage[currentSpokenLanguage]);
25492
25492
  /* @conditional-compile-remove(close-captions) */
25493
- const onToggleChange = React.useCallback(() => __awaiter$e(void 0, void 0, void 0, function* () {
25493
+ const onToggleChange = React.useCallback(() => __awaiter$d(void 0, void 0, void 0, function* () {
25494
25494
  if (!captionSettingsProp.isCaptionsFeatureActive) {
25495
25495
  yield startCaptionsButtonHandlers.onStartCaptions({
25496
25496
  spokenLanguage: currentSpokenLanguage
@@ -26209,7 +26209,7 @@ const AddPeopleButton = (props) => {
26209
26209
 
26210
26210
  // Copyright (c) Microsoft Corporation.
26211
26211
  // Licensed under the MIT License.
26212
- var __awaiter$d = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26212
+ var __awaiter$c = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26213
26213
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26214
26214
  return new (P || (P = Promise))(function (resolve, reject) {
26215
26215
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -26231,11 +26231,11 @@ const PeoplePaneContent = (props) => {
26231
26231
  return localeStrings.strings.call;
26232
26232
  };
26233
26233
  const strings = getStrings();
26234
- const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$d(void 0, void 0, void 0, function* () {
26234
+ const removeParticipantFromCall = React.useCallback((participantId) => __awaiter$c(void 0, void 0, void 0, function* () {
26235
26235
  yield adapter.removeParticipant(participantId);
26236
26236
  }), [adapter]);
26237
26237
  /* @conditional-compile-remove(PSTN-calls) */
26238
- const addParticipantToCall = React.useCallback((participant, options) => __awaiter$d(void 0, void 0, void 0, function* () {
26238
+ const addParticipantToCall = React.useCallback((participant, options) => __awaiter$c(void 0, void 0, void 0, function* () {
26239
26239
  yield adapter.addParticipant(participant, options);
26240
26240
  }), [adapter]);
26241
26241
  /* @conditional-compile-remove(PSTN-calls) */
@@ -26262,7 +26262,7 @@ const PeoplePaneContent = (props) => {
26262
26262
  setDrawerMenuItems
26263
26263
  ]);
26264
26264
  const participantListProps = React.useMemo(() => {
26265
- const onRemoveAParticipant = (participantId) => __awaiter$d(void 0, void 0, void 0, function* () { return removeParticipantFromCall(participantId); });
26265
+ const onRemoveAParticipant = (participantId) => __awaiter$c(void 0, void 0, void 0, function* () { return removeParticipantFromCall(participantId); });
26266
26266
  return Object.assign(Object.assign({}, participantListDefaultProps), {
26267
26267
  // Passing undefined callback for mobile to avoid context menus for participants in ParticipantList are clicked
26268
26268
  onRemoveParticipant: props.mobileView ? undefined : onRemoveAParticipant,
@@ -26395,7 +26395,7 @@ const localVideoSelector = reselect__namespace.createSelector([callStatusSelecto
26395
26395
 
26396
26396
  // Copyright (c) Microsoft Corporation.
26397
26397
  // Licensed under the MIT License.
26398
- var __awaiter$c = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26398
+ var __awaiter$b = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
26399
26399
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26400
26400
  return new (P || (P = Promise))(function (resolve, reject) {
26401
26401
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -26464,7 +26464,7 @@ const VideoEffectsPaneContent = (props) => {
26464
26464
  return videoEffects;
26465
26465
  }, [strings, adapter]);
26466
26466
  /* @conditional-compile-remove(video-background-effects) */
26467
- const onEffectChange = React.useCallback((effectKey) => __awaiter$c(void 0, void 0, void 0, function* () {
26467
+ const onEffectChange = React.useCallback((effectKey) => __awaiter$b(void 0, void 0, void 0, function* () {
26468
26468
  if (effectKey === 'blur') {
26469
26469
  const blurEffect = {
26470
26470
  effectName: effectKey
@@ -28230,7 +28230,7 @@ const localPreviewButtonStyle = {
28230
28230
 
28231
28231
  // Copyright (c) Microsoft Corporation.
28232
28232
  // Licensed under the MIT License.
28233
- var __awaiter$b = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
28233
+ var __awaiter$a = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
28234
28234
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28235
28235
  return new (P || (P = Promise))(function (resolve, reject) {
28236
28236
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -28250,7 +28250,7 @@ const LocalPreview = (props) => {
28250
28250
  const { audio: microphonePermissionGranted, video: cameraPermissionGranted } = useSelector$1(devicePermissionSelector);
28251
28251
  const isLocalMicrophoneEnabled = useSelector$1(getLocalMicrophoneEnabled);
28252
28252
  const adapter = useAdapter();
28253
- const onToggleMic = React.useCallback(() => __awaiter$b(void 0, void 0, void 0, function* () {
28253
+ const onToggleMic = React.useCallback(() => __awaiter$a(void 0, void 0, void 0, function* () {
28254
28254
  isLocalMicrophoneEnabled ? adapter.mute() : adapter.unmute();
28255
28255
  }), [adapter, isLocalMicrophoneEnabled]);
28256
28256
  const hasNoDevices = devicesButtonProps.cameras.length === 0 &&
@@ -28518,7 +28518,7 @@ const CallReadinessModalFallBack = (props) => {
28518
28518
 
28519
28519
  // Copyright (c) Microsoft Corporation.
28520
28520
  // Licensed under the MIT License.
28521
- var __awaiter$a = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
28521
+ var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
28522
28522
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28523
28523
  return new (P || (P = Promise))(function (resolve, reject) {
28524
28524
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -28627,7 +28627,7 @@ const ConfigurationPage = (props) => {
28627
28627
  const forceShowingCheckPermissions = !minimumFallbackTimerElapsed;
28628
28628
  /* @conditional-compile-remove(video-background-effects) */
28629
28629
  const { toggleVideoEffectsPane, closeVideoEffectsPane, isVideoEffectsPaneOpen } = useVideoEffectsPane(props.updateSidePaneRenderer, mobileView, props.latestErrors, props.onDismissError);
28630
- const startCall = React.useCallback(() => __awaiter$a(void 0, void 0, void 0, function* () {
28630
+ const startCall = React.useCallback(() => __awaiter$9(void 0, void 0, void 0, function* () {
28631
28631
  /* @conditional-compile-remove(video-background-effects) */
28632
28632
  closeVideoEffectsPane();
28633
28633
  startCallHandler();
@@ -29114,7 +29114,7 @@ const holdPaneContentStyles = {
29114
29114
 
29115
29115
  // Copyright (c) Microsoft Corporation.
29116
29116
  // Licensed under the MIT License.
29117
- var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29117
+ var __awaiter$8 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29118
29118
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29119
29119
  return new (P || (P = Promise))(function (resolve, reject) {
29120
29120
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -29149,7 +29149,7 @@ const HoldPane = () => {
29149
29149
  React__default["default"].createElement(react.Stack, { horizontal: true, styles: holdPaneContentStyles },
29150
29150
  React__default["default"].createElement(react.Text, { styles: holdPaneTimerStyles }, elapsedTime),
29151
29151
  React__default["default"].createElement(react.Text, { styles: holdPaneLabelStyles }, strings.holdScreenLabel),
29152
- React__default["default"].createElement(react.PrimaryButton, { text: !resumingCall ? strings.resumeCallButtonLabel : strings.resumingCallButtonLabel, ariaLabel: !resumingCall ? strings.resumeCallButtonAriaLabel : strings.resumingCallButtonAriaLabel, styles: resumeButtonStyles, disabled: resumingCall, onClick: () => __awaiter$9(void 0, void 0, void 0, function* () {
29152
+ React__default["default"].createElement(react.PrimaryButton, { text: !resumingCall ? strings.resumeCallButtonLabel : strings.resumingCallButtonLabel, ariaLabel: !resumingCall ? strings.resumeCallButtonAriaLabel : strings.resumingCallButtonAriaLabel, styles: resumeButtonStyles, disabled: resumingCall, onClick: () => __awaiter$8(void 0, void 0, void 0, function* () {
29153
29153
  setResumingCall(true);
29154
29154
  try {
29155
29155
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
@@ -29381,7 +29381,7 @@ const updateLatestCapabilityChangedNotificationMap = (capabilitiesChangedInfoAnd
29381
29381
 
29382
29382
  // Copyright (c) Microsoft Corporation.
29383
29383
  // Licensed under the MIT License.
29384
- var __awaiter$8 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29384
+ var __awaiter$7 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29385
29385
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29386
29386
  return new (P || (P = Promise))(function (resolve, reject) {
29387
29387
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -29400,7 +29400,7 @@ const MainScreen = (props) => {
29400
29400
  const hasCameras = camerasCount > 0;
29401
29401
  const hasMicrophones = microphonesCount > 0;
29402
29402
  React.useEffect(() => {
29403
- (() => __awaiter$8(void 0, void 0, void 0, function* () {
29403
+ (() => __awaiter$7(void 0, void 0, void 0, function* () {
29404
29404
  var _a;
29405
29405
  const constrain = getQueryOptions({
29406
29406
  /* @conditional-compile-remove(rooms) */ role: (_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.role
@@ -29731,7 +29731,7 @@ options) {
29731
29731
 
29732
29732
  // Copyright (c) Microsoft Corporation.
29733
29733
  // Licensed under the MIT License.
29734
- var __awaiter$7 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29734
+ var __awaiter$6 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29735
29735
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29736
29736
  return new (P || (P = Promise))(function (resolve, reject) {
29737
29737
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -29748,7 +29748,7 @@ const createProfileStateModifier = (onFetchProfile, notifyUpdate) => {
29748
29748
  return (state) => {
29749
29749
  var _a;
29750
29750
  const originalParticipants = (_a = state.call) === null || _a === void 0 ? void 0 : _a.remoteParticipants;
29751
- (() => __awaiter$7(void 0, void 0, void 0, function* () {
29751
+ (() => __awaiter$6(void 0, void 0, void 0, function* () {
29752
29752
  let shouldNotifyUpdates = false;
29753
29753
  for (const key in originalParticipants) {
29754
29754
  if (cachedDisplayName[key]) {
@@ -29775,7 +29775,7 @@ const createProfileStateModifier = (onFetchProfile, notifyUpdate) => {
29775
29775
 
29776
29776
  // Copyright (c) Microsoft Corporation.
29777
29777
  // Licensed under the MIT License.
29778
- var __awaiter$6 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29778
+ var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
29779
29779
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29780
29780
  return new (P || (P = Promise))(function (resolve, reject) {
29781
29781
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -30125,9 +30125,9 @@ class AzureCommunicationCallAdapter {
30125
30125
  this.callAgent.dispose();
30126
30126
  }
30127
30127
  queryCameras() {
30128
- return __awaiter$6(this, void 0, void 0, function* () {
30128
+ return __awaiter$5(this, void 0, void 0, function* () {
30129
30129
  const startTime = new Date().getTime();
30130
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30130
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30131
30131
  const cameras = yield this.deviceManager.getCameras();
30132
30132
  const endTime = new Date().getTime();
30133
30133
  compositeLogger.info('time to query cameras', endTime - startTime, 'ms');
@@ -30136,9 +30136,9 @@ class AzureCommunicationCallAdapter {
30136
30136
  });
30137
30137
  }
30138
30138
  queryMicrophones() {
30139
- return __awaiter$6(this, void 0, void 0, function* () {
30139
+ return __awaiter$5(this, void 0, void 0, function* () {
30140
30140
  const startTime = new Date().getTime();
30141
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30141
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30142
30142
  const microphones = yield this.deviceManager.getMicrophones();
30143
30143
  const endTime = new Date().getTime();
30144
30144
  compositeLogger.info('time to query microphones', endTime - startTime, 'ms');
@@ -30147,9 +30147,9 @@ class AzureCommunicationCallAdapter {
30147
30147
  });
30148
30148
  }
30149
30149
  querySpeakers() {
30150
- return __awaiter$6(this, void 0, void 0, function* () {
30150
+ return __awaiter$5(this, void 0, void 0, function* () {
30151
30151
  const startTime = new Date().getTime();
30152
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30152
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30153
30153
  const speakers = (yield this.deviceManager.isSpeakerSelectionAvailable) ? this.deviceManager.getSpeakers() : [];
30154
30154
  const endTime = new Date().getTime();
30155
30155
  compositeLogger.info('time to query speakers', endTime - startTime, 'ms');
@@ -30158,9 +30158,9 @@ class AzureCommunicationCallAdapter {
30158
30158
  });
30159
30159
  }
30160
30160
  askDevicePermission(constrain) {
30161
- return __awaiter$6(this, void 0, void 0, function* () {
30161
+ return __awaiter$5(this, void 0, void 0, function* () {
30162
30162
  const startTime = new Date().getTime();
30163
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30163
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30164
30164
  yield this.deviceManager.askDevicePermission(constrain);
30165
30165
  const endTime = new Date().getTime();
30166
30166
  compositeLogger.info('time to query askDevicePermissions', endTime - startTime, 'ms');
@@ -30251,7 +30251,7 @@ class AzureCommunicationCallAdapter {
30251
30251
  });
30252
30252
  }
30253
30253
  createStreamView(remoteUserId, options) {
30254
- return __awaiter$6(this, void 0, void 0, function* () {
30254
+ return __awaiter$5(this, void 0, void 0, function* () {
30255
30255
  if (remoteUserId === undefined) {
30256
30256
  return yield this.handlers.onCreateLocalStreamView(options);
30257
30257
  }
@@ -30261,7 +30261,7 @@ class AzureCommunicationCallAdapter {
30261
30261
  });
30262
30262
  }
30263
30263
  disposeStreamView(remoteUserId) {
30264
- return __awaiter$6(this, void 0, void 0, function* () {
30264
+ return __awaiter$5(this, void 0, void 0, function* () {
30265
30265
  if (remoteUserId === undefined) {
30266
30266
  yield this.handlers.onDisposeLocalStreamView();
30267
30267
  }
@@ -30271,22 +30271,22 @@ class AzureCommunicationCallAdapter {
30271
30271
  });
30272
30272
  }
30273
30273
  disposeScreenShareStreamView(remoteUserId) {
30274
- return __awaiter$6(this, void 0, void 0, function* () {
30274
+ return __awaiter$5(this, void 0, void 0, function* () {
30275
30275
  yield this.handlers.onDisposeRemoteScreenShareStreamView(remoteUserId);
30276
30276
  });
30277
30277
  }
30278
30278
  disposeRemoteVideoStreamView(remoteUserId) {
30279
- return __awaiter$6(this, void 0, void 0, function* () {
30279
+ return __awaiter$5(this, void 0, void 0, function* () {
30280
30280
  yield this.handlers.onDisposeRemoteVideoStreamView(remoteUserId);
30281
30281
  });
30282
30282
  }
30283
30283
  disposeLocalVideoStreamView() {
30284
- return __awaiter$6(this, void 0, void 0, function* () {
30284
+ return __awaiter$5(this, void 0, void 0, function* () {
30285
30285
  yield this.handlers.onDisposeLocalStreamView();
30286
30286
  });
30287
30287
  }
30288
30288
  leaveCall(forEveryone) {
30289
- return __awaiter$6(this, void 0, void 0, function* () {
30289
+ return __awaiter$5(this, void 0, void 0, function* () {
30290
30290
  yield this.handlers.onHangUp(forEveryone);
30291
30291
  this.unsubscribeCallEvents();
30292
30292
  this.handlers = createHandlers(this.callClient, this.callAgent, this.deviceManager, undefined,
@@ -30301,29 +30301,29 @@ class AzureCommunicationCallAdapter {
30301
30301
  });
30302
30302
  }
30303
30303
  setCamera(device, options) {
30304
- return __awaiter$6(this, void 0, void 0, function* () {
30305
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30304
+ return __awaiter$5(this, void 0, void 0, function* () {
30305
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30306
30306
  yield this.handlers.onSelectCamera(device, options);
30307
30307
  }));
30308
30308
  });
30309
30309
  }
30310
30310
  setMicrophone(device) {
30311
- return __awaiter$6(this, void 0, void 0, function* () {
30312
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30311
+ return __awaiter$5(this, void 0, void 0, function* () {
30312
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30313
30313
  yield this.handlers.onSelectMicrophone(device);
30314
30314
  }));
30315
30315
  });
30316
30316
  }
30317
30317
  setSpeaker(device) {
30318
- return __awaiter$6(this, void 0, void 0, function* () {
30319
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30318
+ return __awaiter$5(this, void 0, void 0, function* () {
30319
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30320
30320
  yield this.handlers.onSelectSpeaker(device);
30321
30321
  }));
30322
30322
  });
30323
30323
  }
30324
30324
  startCamera(options) {
30325
- return __awaiter$6(this, void 0, void 0, function* () {
30326
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30325
+ return __awaiter$5(this, void 0, void 0, function* () {
30326
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30327
30327
  if (!isCameraOn(this.getState())) {
30328
30328
  // First kick off the effect on the local device before starting the camera in the call.
30329
30329
  // This prevents the effect not being applied for a brief moment when the camera is started.
@@ -30348,8 +30348,8 @@ class AzureCommunicationCallAdapter {
30348
30348
  });
30349
30349
  }
30350
30350
  stopCamera() {
30351
- return __awaiter$6(this, void 0, void 0, function* () {
30352
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30351
+ return __awaiter$5(this, void 0, void 0, function* () {
30352
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30353
30353
  if (isCameraOn(this.getState())) {
30354
30354
  yield this.handlers.onToggleCamera();
30355
30355
  }
@@ -30357,8 +30357,8 @@ class AzureCommunicationCallAdapter {
30357
30357
  });
30358
30358
  }
30359
30359
  mute() {
30360
- return __awaiter$6(this, void 0, void 0, function* () {
30361
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30360
+ return __awaiter$5(this, void 0, void 0, function* () {
30361
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30362
30362
  var _a, _b;
30363
30363
  this.context.setIsLocalMicrophoneEnabled(false);
30364
30364
  if (_isInCall((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) && !((_b = this.call) === null || _b === void 0 ? void 0 : _b.isMuted)) {
@@ -30368,8 +30368,8 @@ class AzureCommunicationCallAdapter {
30368
30368
  });
30369
30369
  }
30370
30370
  unmute() {
30371
- return __awaiter$6(this, void 0, void 0, function* () {
30372
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30371
+ return __awaiter$5(this, void 0, void 0, function* () {
30372
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30373
30373
  var _a, _b;
30374
30374
  this.context.setIsLocalMicrophoneEnabled(true);
30375
30375
  if (_isInCall((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) && ((_b = this.call) === null || _b === void 0 ? void 0 : _b.isMuted)) {
@@ -30379,8 +30379,8 @@ class AzureCommunicationCallAdapter {
30379
30379
  });
30380
30380
  }
30381
30381
  startScreenShare() {
30382
- return __awaiter$6(this, void 0, void 0, function* () {
30383
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30382
+ return __awaiter$5(this, void 0, void 0, function* () {
30383
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30384
30384
  var _a;
30385
30385
  if (!((_a = this.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn)) {
30386
30386
  yield this.handlers.onToggleScreenShare();
@@ -30389,8 +30389,8 @@ class AzureCommunicationCallAdapter {
30389
30389
  });
30390
30390
  }
30391
30391
  stopScreenShare() {
30392
- return __awaiter$6(this, void 0, void 0, function* () {
30393
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30392
+ return __awaiter$5(this, void 0, void 0, function* () {
30393
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30394
30394
  var _a;
30395
30395
  if ((_a = this.call) === null || _a === void 0 ? void 0 : _a.isScreenSharingOn) {
30396
30396
  yield this.handlers.onToggleScreenShare();
@@ -30400,16 +30400,16 @@ class AzureCommunicationCallAdapter {
30400
30400
  }
30401
30401
  /* @conditional-compile-remove(raise-hand) */
30402
30402
  raiseHand() {
30403
- return __awaiter$6(this, void 0, void 0, function* () {
30404
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30403
+ return __awaiter$5(this, void 0, void 0, function* () {
30404
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30405
30405
  yield this.handlers.onToggleRaiseHand();
30406
30406
  }));
30407
30407
  });
30408
30408
  }
30409
30409
  /* @conditional-compile-remove(raise-hand) */
30410
30410
  lowerHand() {
30411
- return __awaiter$6(this, void 0, void 0, function* () {
30412
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$6(this, void 0, void 0, function* () {
30411
+ return __awaiter$5(this, void 0, void 0, function* () {
30412
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$5(this, void 0, void 0, function* () {
30413
30413
  yield this.handlers.onToggleRaiseHand();
30414
30414
  }));
30415
30415
  });
@@ -30421,7 +30421,7 @@ class AzureCommunicationCallAdapter {
30421
30421
  }
30422
30422
  /* @conditional-compile-remove(video-background-effects) */
30423
30423
  startVideoBackgroundEffect(videoBackgroundEffect) {
30424
- return __awaiter$6(this, void 0, void 0, function* () {
30424
+ return __awaiter$5(this, void 0, void 0, function* () {
30425
30425
  if (this.isBlurEffect(videoBackgroundEffect)) {
30426
30426
  const blurConfig = videoBackgroundEffect;
30427
30427
  yield this.handlers.onBlurVideoBackground(blurConfig);
@@ -30434,7 +30434,7 @@ class AzureCommunicationCallAdapter {
30434
30434
  }
30435
30435
  /* @conditional-compile-remove(video-background-effects) */
30436
30436
  stopVideoBackgroundEffects() {
30437
- return __awaiter$6(this, void 0, void 0, function* () {
30437
+ return __awaiter$5(this, void 0, void 0, function* () {
30438
30438
  yield this.handlers.onRemoveVideoBackgroundEffects();
30439
30439
  });
30440
30440
  }
@@ -30497,7 +30497,7 @@ class AzureCommunicationCallAdapter {
30497
30497
  return effect.effectName === 'replacement';
30498
30498
  }
30499
30499
  removeParticipant(userId) {
30500
- return __awaiter$6(this, void 0, void 0, function* () {
30500
+ return __awaiter$5(this, void 0, void 0, function* () {
30501
30501
  let participant = userId;
30502
30502
  /* @conditional-compile-remove(PSTN-calls) */
30503
30503
  participant = _toCommunicationIdentifier(userId);
@@ -30506,7 +30506,7 @@ class AzureCommunicationCallAdapter {
30506
30506
  }
30507
30507
  /* @conditional-compile-remove(PSTN-calls) */
30508
30508
  addParticipant(participant, options) {
30509
- return __awaiter$6(this, void 0, void 0, function* () {
30509
+ return __awaiter$5(this, void 0, void 0, function* () {
30510
30510
  if (communicationCommon.isPhoneNumberIdentifier(participant) && options) {
30511
30511
  this.handlers.onAddParticipant(participant, options);
30512
30512
  }
@@ -30518,7 +30518,7 @@ class AzureCommunicationCallAdapter {
30518
30518
  /* @conditional-compile-remove(PSTN-calls) */
30519
30519
  holdCall() {
30520
30520
  var _a;
30521
- return __awaiter$6(this, void 0, void 0, function* () {
30521
+ return __awaiter$5(this, void 0, void 0, function* () {
30522
30522
  if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) !== 'LocalHold') {
30523
30523
  this.handlers.onToggleHold();
30524
30524
  }
@@ -30527,7 +30527,7 @@ class AzureCommunicationCallAdapter {
30527
30527
  /* @conditional-compile-remove(PSTN-calls) */
30528
30528
  resumeCall() {
30529
30529
  var _a;
30530
- return __awaiter$6(this, void 0, void 0, function* () {
30530
+ return __awaiter$5(this, void 0, void 0, function* () {
30531
30531
  if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold') {
30532
30532
  this.handlers.onToggleHold();
30533
30533
  }
@@ -30535,31 +30535,31 @@ class AzureCommunicationCallAdapter {
30535
30535
  }
30536
30536
  /* @conditional-compile-remove(PSTN-calls) */
30537
30537
  sendDtmfTone(dtmfTone) {
30538
- return __awaiter$6(this, void 0, void 0, function* () {
30538
+ return __awaiter$5(this, void 0, void 0, function* () {
30539
30539
  this.handlers.onSendDtmfTone(dtmfTone);
30540
30540
  });
30541
30541
  }
30542
30542
  /* @conditional-compile-remove(close-captions) */
30543
30543
  startCaptions(options) {
30544
- return __awaiter$6(this, void 0, void 0, function* () {
30544
+ return __awaiter$5(this, void 0, void 0, function* () {
30545
30545
  this.handlers.onStartCaptions(options);
30546
30546
  });
30547
30547
  }
30548
30548
  /* @conditional-compile-remove(close-captions) */
30549
30549
  stopCaptions() {
30550
- return __awaiter$6(this, void 0, void 0, function* () {
30550
+ return __awaiter$5(this, void 0, void 0, function* () {
30551
30551
  this.handlers.onStopCaptions();
30552
30552
  });
30553
30553
  }
30554
30554
  /* @conditional-compile-remove(close-captions) */
30555
30555
  setCaptionLanguage(language) {
30556
- return __awaiter$6(this, void 0, void 0, function* () {
30556
+ return __awaiter$5(this, void 0, void 0, function* () {
30557
30557
  this.handlers.onSetCaptionLanguage(language);
30558
30558
  });
30559
30559
  }
30560
30560
  /* @conditional-compile-remove(close-captions) */
30561
30561
  setSpokenLanguage(language) {
30562
- return __awaiter$6(this, void 0, void 0, function* () {
30562
+ return __awaiter$5(this, void 0, void 0, function* () {
30563
30563
  this.handlers.onSetSpokenLanguage(language);
30564
30564
  });
30565
30565
  }
@@ -30720,7 +30720,7 @@ class AzureCommunicationCallAdapter {
30720
30720
  this.emitter.off(event, listener);
30721
30721
  }
30722
30722
  asyncTeeErrorToEventEmitter(f) {
30723
- return __awaiter$6(this, void 0, void 0, function* () {
30723
+ return __awaiter$5(this, void 0, void 0, function* () {
30724
30724
  try {
30725
30725
  return yield f();
30726
30726
  }
@@ -30755,7 +30755,7 @@ class AzureCommunicationCallAdapter {
30755
30755
  */
30756
30756
  const createAzureCommunicationCallAdapter = ({ userId, displayName, credential, locator,
30757
30757
  /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId,
30758
- /* @conditional-compile-remove(video-background-effects) */ options }) => __awaiter$6(void 0, void 0, void 0, function* () {
30758
+ /* @conditional-compile-remove(video-background-effects) */ options }) => __awaiter$5(void 0, void 0, void 0, function* () {
30759
30759
  if (!_isValidIdentifier(userId)) {
30760
30760
  throw new Error('Invalid identifier. Please provide valid identifier object.');
30761
30761
  }
@@ -30774,7 +30774,7 @@ const createAzureCommunicationCallAdapter = ({ userId, displayName, credential,
30774
30774
  /**
30775
30775
  * @beta
30776
30776
  */
30777
- const createTeamsCallAdapter = ({ userId, credential, locator, options }) => __awaiter$6(void 0, void 0, void 0, function* () {
30777
+ const createTeamsCallAdapter = ({ userId, credential, locator, options }) => __awaiter$5(void 0, void 0, void 0, function* () {
30778
30778
  const callClient = createStatefulCallClient({
30779
30779
  userId
30780
30780
  });
@@ -30814,7 +30814,7 @@ const useAzureCommunicationCallAdapterGeneric = (args, afterCreate, beforeDispos
30814
30814
  if (adapterKind === 'AzureCommunication' && !displayName) {
30815
30815
  return;
30816
30816
  }
30817
- (() => __awaiter$6(void 0, void 0, void 0, function* () {
30817
+ (() => __awaiter$5(void 0, void 0, void 0, function* () {
30818
30818
  if (adapterRef.current) {
30819
30819
  // Dispose the old adapter when a new one is created.
30820
30820
  //
@@ -30893,7 +30893,7 @@ const useAzureCommunicationCallAdapterGeneric = (args, afterCreate, beforeDispos
30893
30893
  // Dispose any existing adapter when the component unmounts.
30894
30894
  React.useEffect(() => {
30895
30895
  return () => {
30896
- (() => __awaiter$6(void 0, void 0, void 0, function* () {
30896
+ (() => __awaiter$5(void 0, void 0, void 0, function* () {
30897
30897
  if (adapterRef.current) {
30898
30898
  if (beforeDisposeRef.current) {
30899
30899
  yield beforeDisposeRef.current(adapterRef.current);
@@ -30987,7 +30987,7 @@ beforeDispose) => {
30987
30987
  *
30988
30988
  * @public
30989
30989
  */
30990
- const createAzureCommunicationCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$6(void 0, void 0, void 0, function* () {
30990
+ const createAzureCommunicationCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$5(void 0, void 0, void 0, function* () {
30991
30991
  const deviceManager = (yield callClient.getDeviceManager());
30992
30992
  yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
30993
30993
  if (deviceManager.isSpeakerSelectionAvailable) {
@@ -31007,7 +31007,7 @@ const createAzureCommunicationCallAdapterFromClient = (callClient, callAgent, lo
31007
31007
  *
31008
31008
  * @beta
31009
31009
  */
31010
- const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$6(void 0, void 0, void 0, function* () {
31010
+ const createTeamsCallAdapterFromClient = (callClient, callAgent, locator, options) => __awaiter$5(void 0, void 0, void 0, function* () {
31011
31011
  const deviceManager = (yield callClient.getDeviceManager());
31012
31012
  yield Promise.all([deviceManager.getCameras(), deviceManager.getMicrophones()]);
31013
31013
  if (deviceManager.isSpeakerSelectionAvailable) {
@@ -31026,258 +31026,6 @@ const isOutboundCall = (callLocator) => {
31026
31026
  return 'participantIds' in callLocator;
31027
31027
  };
31028
31028
 
31029
- // Copyright (c) Microsoft Corporation.
31030
- // Licensed under the MIT License.
31031
- var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
31032
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
31033
- return new (P || (P = Promise))(function (resolve, reject) {
31034
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31035
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
31036
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31037
- step((generator = generator.apply(thisArg, _arguments || [])).next());
31038
- });
31039
- };
31040
- /**
31041
- * Temporary copy of the packages/react-composites/tests/browser/call/app/mocks/MockCallAdapter.ts
31042
- * @internal
31043
- */
31044
- // TODO: Remove this simplified copy of the MockCallAdapter when the original MockCallAdapter is moved to fake-backends package and can be imported
31045
- class _MockCallAdapter {
31046
- constructor(testState) {
31047
- this.emitter = new EventEmitter.EventEmitter();
31048
- this.state = Object.assign({}, createDefaultCallAdapterState(/* @conditional-compile-remove(rooms) */ testState.localParticipantRole));
31049
- if (testState.askDevicePermission) {
31050
- this.askDevicePermission = testState.askDevicePermission;
31051
- }
31052
- }
31053
- setState(state) {
31054
- this.state = state;
31055
- this.emitter.emit('stateChanged', state);
31056
- }
31057
- addParticipant() {
31058
- throw Error('addParticipant not implemented');
31059
- }
31060
- onStateChange(handler) {
31061
- this.emitter.addListener('stateChanged', handler);
31062
- }
31063
- offStateChange(handler) {
31064
- this.emitter.removeListener('stateChanged', handler);
31065
- }
31066
- allowUnsupportedBrowserVersion() {
31067
- throw Error('allowWithUnsupportedBrowserVersion not implemented');
31068
- }
31069
- getState() {
31070
- return this.state;
31071
- }
31072
- dispose() {
31073
- throw Error('dispose not implemented');
31074
- }
31075
- joinCall() {
31076
- throw Error('joinCall not implemented');
31077
- }
31078
- leaveCall() {
31079
- throw Error('leaveCall not implemented');
31080
- }
31081
- startCamera() {
31082
- throw Error('leaveCall not implemented');
31083
- }
31084
- stopCamera() {
31085
- throw Error('stopCamera not implemented');
31086
- }
31087
- mute() {
31088
- throw Error('mute not implemented');
31089
- }
31090
- unmute() {
31091
- throw Error('unmute not implemented');
31092
- }
31093
- startCall() {
31094
- throw Error('startCall not implemented');
31095
- }
31096
- holdCall() {
31097
- return Promise.resolve();
31098
- }
31099
- resumeCall() {
31100
- return Promise.resolve();
31101
- }
31102
- startScreenShare() {
31103
- throw Error('startScreenShare not implemented');
31104
- }
31105
- stopScreenShare() {
31106
- throw Error('stopScreenShare not implemented');
31107
- }
31108
- /* @conditional-compile-remove(raise-hand) */
31109
- raiseHand() {
31110
- throw Error('raiseHand not implemented');
31111
- }
31112
- /* @conditional-compile-remove(raise-hand) */
31113
- lowerHand() {
31114
- throw Error('lowerHand not implemented');
31115
- }
31116
- removeParticipant() {
31117
- throw Error('removeParticipant not implemented');
31118
- }
31119
- createStreamView() {
31120
- throw Error('createStreamView not implemented');
31121
- }
31122
- disposeStreamView() {
31123
- return Promise.resolve();
31124
- }
31125
- disposeScreenShareStreamView() {
31126
- return Promise.resolve();
31127
- }
31128
- disposeLocalVideoStreamView() {
31129
- return Promise.resolve();
31130
- }
31131
- disposeRemoteVideoStreamView() {
31132
- return Promise.resolve();
31133
- }
31134
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
31135
- askDevicePermission(constrain) {
31136
- throw Error('askDevicePermission not implemented');
31137
- }
31138
- queryCameras() {
31139
- return __awaiter$5(this, void 0, void 0, function* () {
31140
- return [];
31141
- });
31142
- }
31143
- queryMicrophones() {
31144
- return __awaiter$5(this, void 0, void 0, function* () {
31145
- return [];
31146
- });
31147
- }
31148
- querySpeakers() {
31149
- return __awaiter$5(this, void 0, void 0, function* () {
31150
- return [];
31151
- });
31152
- }
31153
- setCamera() {
31154
- throw Error('setCamera not implemented');
31155
- }
31156
- setMicrophone() {
31157
- throw Error('setMicrophone not implemented');
31158
- }
31159
- setSpeaker() {
31160
- throw Error('setSpeaker not implemented');
31161
- }
31162
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
31163
- sendDtmfTone(dtmfTone) {
31164
- throw Error('sendDtmfTone not implemented');
31165
- }
31166
- on() {
31167
- throw Error('on not implemented');
31168
- }
31169
- off() {
31170
- throw Error('off not implemented');
31171
- }
31172
- /* @conditional-compile-remove(PSTN-calls) */
31173
- getEnvironmentInfo() {
31174
- throw Error('getEnvironmentInfo not implemented');
31175
- }
31176
- /* @conditional-compile-remove(close-captions) */
31177
- startCaptions() {
31178
- throw Error('start captions not implemented');
31179
- }
31180
- /* @conditional-compile-remove(close-captions) */
31181
- setCaptionLanguage() {
31182
- throw Error('setCaptionLanguage not implemented');
31183
- }
31184
- /* @conditional-compile-remove(close-captions) */
31185
- setSpokenLanguage() {
31186
- throw Error('setSpokenLanguage not implemented');
31187
- }
31188
- /* @conditional-compile-remove(close-captions) */
31189
- stopCaptions() {
31190
- throw Error('stopCaptions not implemented');
31191
- }
31192
- /* @conditional-compile-remove(video-background-effects) */
31193
- startVideoBackgroundEffect() {
31194
- throw new Error('startVideoBackgroundEffect not implemented.');
31195
- }
31196
- /* @conditional-compile-remove(video-background-effects) */
31197
- stopVideoBackgroundEffects() {
31198
- throw new Error('stopVideoBackgroundEffects not implemented.');
31199
- }
31200
- /* @conditional-compile-remove(video-background-effects) */
31201
- updateBackgroundPickerImages() {
31202
- throw new Error('updateBackgroundPickerImages not implemented.');
31203
- }
31204
- /* @conditional-compile-remove(video-background-effects) */
31205
- updateSelectedVideoBackgroundEffect() {
31206
- throw new Error('updateSelectedVideoBackgroundEffect not implemented.');
31207
- }
31208
- }
31209
- /**
31210
- * Default call adapter state that the {@link _MockCallAdapter} class is initialized with an optional role.
31211
- */
31212
- const createDefaultCallAdapterState = (role) => {
31213
- return {
31214
- displayName: 'Agnes Thompson',
31215
- isLocalPreviewMicrophoneEnabled: true,
31216
- page: 'call',
31217
- call: {
31218
- id: 'call1',
31219
- /* @conditional-compile-remove(teams-identity-support) */
31220
- kind: communicationCalling.CallKind.Call,
31221
- callerInfo: { displayName: 'caller', identifier: { kind: 'communicationUser', communicationUserId: '1' } },
31222
- direction: 'Incoming',
31223
- transcription: { isTranscriptionActive: false },
31224
- recording: { isRecordingActive: false },
31225
- startTime: new Date(500000000000),
31226
- endTime: new Date(500000000000),
31227
- diagnostics: { network: { latest: {} }, media: { latest: {} } },
31228
- state: 'Connected',
31229
- localVideoStreams: [],
31230
- isMuted: false,
31231
- isScreenSharingOn: false,
31232
- remoteParticipants: {},
31233
- remoteParticipantsEnded: {},
31234
- /* @conditional-compile-remove(raise-hand) */
31235
- raiseHand: { raisedHands: [] },
31236
- /* @conditional-compile-remove(rooms) */
31237
- role,
31238
- /* @conditional-compile-remove(close-captions) */
31239
- captionsFeature: {
31240
- captions: [],
31241
- supportedSpokenLanguages: [],
31242
- supportedCaptionLanguages: [],
31243
- currentCaptionLanguage: '',
31244
- currentSpokenLanguage: '',
31245
- isCaptionsFeatureActive: false,
31246
- startCaptionsInProgress: false
31247
- },
31248
- /* @conditional-compile-remove(call-transfer) */
31249
- transfer: {
31250
- acceptedTransfers: {}
31251
- },
31252
- /* @conditional-compile-remove(optimal-video-count) */
31253
- optimalVideoCount: {
31254
- maxRemoteVideoStreams: 4
31255
- }
31256
- },
31257
- userId: { kind: 'communicationUser', communicationUserId: '1' },
31258
- devices: {
31259
- isSpeakerSelectionAvailable: true,
31260
- selectedCamera: { id: 'camera1', name: '1st Camera', deviceType: 'UsbCamera' },
31261
- cameras: [{ id: 'camera1', name: '1st Camera', deviceType: 'UsbCamera' }],
31262
- selectedMicrophone: {
31263
- id: 'microphone1',
31264
- name: '1st Microphone',
31265
- deviceType: 'Microphone',
31266
- isSystemDefault: true
31267
- },
31268
- microphones: [{ id: 'microphone1', name: '1st Microphone', deviceType: 'Microphone', isSystemDefault: true }],
31269
- selectedSpeaker: { id: 'speaker1', name: '1st Speaker', deviceType: 'Speaker', isSystemDefault: true },
31270
- speakers: [{ id: 'speaker1', name: '1st Speaker', deviceType: 'Speaker', isSystemDefault: true }],
31271
- unparentedViews: [],
31272
- deviceAccess: { video: true, audio: true }
31273
- },
31274
- isTeamsCall: false,
31275
- /* @conditional-compile-remove(rooms) */
31276
- isRoomsCall: false,
31277
- latestErrors: {}
31278
- };
31279
- };
31280
-
31281
31029
  // Copyright (c) Microsoft Corporation.
31282
31030
  /**
31283
31031
  * @private
@@ -33361,7 +33109,6 @@ exports.UnsupportedOperatingSystem = UnsupportedOperatingSystem$k;
33361
33109
  exports.VideoGallery = VideoGallery;
33362
33110
  exports.VideoTile = VideoTile;
33363
33111
  exports._IdentifierProvider = _IdentifierProvider;
33364
- exports._MockCallAdapter = _MockCallAdapter;
33365
33112
  exports.createAzureCommunicationCallAdapter = createAzureCommunicationCallAdapter;
33366
33113
  exports.createAzureCommunicationCallAdapterFromClient = createAzureCommunicationCallAdapterFromClient;
33367
33114
  exports.createAzureCommunicationCallWithChatAdapter = createAzureCommunicationCallWithChatAdapter;