@azure/communication-react 1.3.3-alpha-202208250017.0 → 1.3.3-alpha-202208260016.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/communication-react.d.ts +9 -1
  2. package/dist/dist-cjs/communication-react/index.js +187 -148
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  6. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +8 -0
  7. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  8. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +1 -1
  9. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  10. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +1 -1
  11. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  12. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +31 -7
  13. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +1 -1
  14. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +12 -1
  15. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  16. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +5 -0
  17. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +1 -1
  18. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +1 -0
  19. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +1 -1
  20. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js +1 -0
  21. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +1 -1
  22. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +2 -0
  23. package/package.json +8 -8
@@ -192,7 +192,7 @@ const fromFlatCommunicationIdentifier = (id) => {
192
192
  // Copyright (c) Microsoft Corporation.
193
193
  // Licensed under the MIT license.
194
194
  // GENERATED FILE. DO NOT EDIT MANUALLY.
195
- var telemetryVersion = '1.3.3-alpha-202208250017.0';
195
+ var telemetryVersion = '1.3.3-alpha-202208260016.0';
196
196
 
197
197
  // Copyright (c) Microsoft Corporation.
198
198
  /**
@@ -391,7 +391,7 @@ const getCallState = (state, props) => { var _a; return (_a = state.calls[props.
391
391
 
392
392
  // Copyright (c) Microsoft Corporation.
393
393
  // Licensed under the MIT license.
394
- var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
394
+ var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
395
395
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
396
396
  return new (P || (P = Promise))(function (resolve, reject) {
397
397
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -429,7 +429,7 @@ const _isPreviewOn = (deviceManager) => {
429
429
  *
430
430
  * @private
431
431
  */
432
- const disposeAllLocalPreviewViews = (callClient) => __awaiter$u(void 0, void 0, void 0, function* () {
432
+ const disposeAllLocalPreviewViews = (callClient) => __awaiter$v(void 0, void 0, void 0, function* () {
433
433
  const unparentedViews = callClient.getState().deviceManager.unparentedViews;
434
434
  for (const view of unparentedViews) {
435
435
  yield callClient.disposeView(undefined, undefined, view);
@@ -536,7 +536,7 @@ const holdButtonSelector = reselect__namespace.createSelector([getCallState], (c
536
536
 
537
537
  // Copyright (c) Microsoft Corporation.
538
538
  // Licensed under the MIT license.
539
- var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
539
+ var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
540
540
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
541
541
  return new (P || (P = Promise))(function (resolve, reject) {
542
542
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -560,7 +560,7 @@ const areStreamsEqual = (prevStream, newStream) => {
560
560
  * @public
561
561
  */
562
562
  const createDefaultCallingHandlers = memoizeOne__default['default']((callClient, callAgent, deviceManager, call) => {
563
- const onStartLocalVideo = () => __awaiter$t(void 0, void 0, void 0, function* () {
563
+ const onStartLocalVideo = () => __awaiter$u(void 0, void 0, void 0, function* () {
564
564
  // Before the call object creates a stream, dispose of any local preview streams.
565
565
  // @TODO: is there any way to parent the unparented view to the call object instead
566
566
  // of disposing and creating a new stream?
@@ -580,7 +580,7 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
580
580
  yield call.startVideo(stream);
581
581
  }
582
582
  });
583
- const onStopLocalVideo = (stream) => __awaiter$t(void 0, void 0, void 0, function* () {
583
+ const onStopLocalVideo = (stream) => __awaiter$u(void 0, void 0, void 0, function* () {
584
584
  const callId = call === null || call === void 0 ? void 0 : call.id;
585
585
  if (!callId) {
586
586
  return;
@@ -593,7 +593,7 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
593
593
  });
594
594
  }
595
595
  });
596
- const onToggleCamera = (options) => __awaiter$t(void 0, void 0, void 0, function* () {
596
+ const onToggleCamera = (options) => __awaiter$u(void 0, void 0, void 0, function* () {
597
597
  if (call && _isInCall(call.state)) {
598
598
  const stream = call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video');
599
599
  if (stream) {
@@ -623,19 +623,19 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
623
623
  const onStartCall = (participants, options) => {
624
624
  return callAgent ? callAgent.startCall(participants, options) : undefined;
625
625
  };
626
- const onSelectMicrophone = (device) => __awaiter$t(void 0, void 0, void 0, function* () {
626
+ const onSelectMicrophone = (device) => __awaiter$u(void 0, void 0, void 0, function* () {
627
627
  if (!deviceManager) {
628
628
  return;
629
629
  }
630
630
  return deviceManager.selectMicrophone(device);
631
631
  });
632
- const onSelectSpeaker = (device) => __awaiter$t(void 0, void 0, void 0, function* () {
632
+ const onSelectSpeaker = (device) => __awaiter$u(void 0, void 0, void 0, function* () {
633
633
  if (!deviceManager) {
634
634
  return;
635
635
  }
636
636
  return deviceManager.selectSpeaker(device);
637
637
  });
638
- const onSelectCamera = (device, options) => __awaiter$t(void 0, void 0, void 0, function* () {
638
+ const onSelectCamera = (device, options) => __awaiter$u(void 0, void 0, void 0, function* () {
639
639
  if (!deviceManager) {
640
640
  return;
641
641
  }
@@ -658,19 +658,19 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
658
658
  }, options);
659
659
  }
660
660
  });
661
- const onToggleMicrophone = () => __awaiter$t(void 0, void 0, void 0, function* () {
661
+ const onToggleMicrophone = () => __awaiter$u(void 0, void 0, void 0, function* () {
662
662
  if (!call || !_isInCall(call.state)) {
663
663
  throw new Error(`Please invoke onToggleMicrophone after call is started`);
664
664
  }
665
665
  return call.isMuted ? yield call.unmute() : yield call.mute();
666
666
  });
667
- const onStartScreenShare = () => __awaiter$t(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.startScreenSharing()); });
668
- const onStopScreenShare = () => __awaiter$t(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.stopScreenSharing()); });
669
- const onToggleScreenShare = () => __awaiter$t(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.isScreenSharingOn) ? yield onStopScreenShare() : yield onStartScreenShare(); });
670
- const onHangUp = () => __awaiter$t(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.hangUp()); });
667
+ const onStartScreenShare = () => __awaiter$u(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.startScreenSharing()); });
668
+ const onStopScreenShare = () => __awaiter$u(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.stopScreenSharing()); });
669
+ const onToggleScreenShare = () => __awaiter$u(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.isScreenSharingOn) ? yield onStopScreenShare() : yield onStartScreenShare(); });
670
+ const onHangUp = () => __awaiter$u(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.hangUp()); });
671
671
  /* @conditional-compile-remove(PSTN-calls) */
672
- const onToggleHold = () => __awaiter$t(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()); });
673
- const onCreateLocalStreamView = (options = { scalingMode: 'Crop', isMirrored: true }) => __awaiter$t(void 0, void 0, void 0, function* () {
672
+ const onToggleHold = () => __awaiter$u(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()); });
673
+ const onCreateLocalStreamView = (options = { scalingMode: 'Crop', isMirrored: true }) => __awaiter$u(void 0, void 0, void 0, function* () {
674
674
  var _a;
675
675
  if (!call || call.localVideoStreams.length === 0) {
676
676
  return;
@@ -686,7 +686,7 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
686
686
  const { view } = (_a = (yield callClient.createView(call.id, undefined, localStream, options))) !== null && _a !== void 0 ? _a : {};
687
687
  return view ? { view } : undefined;
688
688
  });
689
- const onCreateRemoteStreamView = (userId, options = { scalingMode: 'Crop' }) => __awaiter$t(void 0, void 0, void 0, function* () {
689
+ const onCreateRemoteStreamView = (userId, options = { scalingMode: 'Crop' }) => __awaiter$u(void 0, void 0, void 0, function* () {
690
690
  if (!call) {
691
691
  return;
692
692
  }
@@ -714,7 +714,7 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
714
714
  }
715
715
  return (createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view) ? { view: createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view } : undefined;
716
716
  });
717
- const onDisposeRemoteStreamView = (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
717
+ const onDisposeRemoteStreamView = (userId) => __awaiter$u(void 0, void 0, void 0, function* () {
718
718
  if (!call) {
719
719
  return;
720
720
  }
@@ -735,7 +735,7 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
735
735
  callClient.disposeView(call.id, participant.identifier, screenShareStream);
736
736
  }
737
737
  });
738
- const onDisposeLocalStreamView = () => __awaiter$t(void 0, void 0, void 0, function* () {
738
+ const onDisposeLocalStreamView = () => __awaiter$u(void 0, void 0, void 0, function* () {
739
739
  // If the user is currently in a call, dispose of the local stream view attached to that call.
740
740
  const callState = call && callClient.getState().calls[call.id];
741
741
  const localStream = callState === null || callState === void 0 ? void 0 : callState.localVideoStreams.find((item) => item.mediaStreamType === 'Video');
@@ -747,11 +747,11 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
747
747
  // TODO: we need to remember which LocalVideoStream was used for LocalPreview and dispose that one.
748
748
  yield disposeAllLocalPreviewViews(callClient);
749
749
  });
750
- const onRemoveParticipant = (userId) => __awaiter$t(void 0, void 0, void 0, function* () {
750
+ const onRemoveParticipant = (userId) => __awaiter$u(void 0, void 0, void 0, function* () {
751
751
  yield (call === null || call === void 0 ? void 0 : call.removeParticipant(fromFlatCommunicationIdentifier(userId)));
752
752
  });
753
753
  /* @conditional-compile-remove(PSTN-calls) */
754
- const onAddParticipant = (participant, options) => __awaiter$t(void 0, void 0, void 0, function* () {
754
+ const onAddParticipant = (participant, options) => __awaiter$u(void 0, void 0, void 0, function* () {
755
755
  if (communicationCommon.isPhoneNumberIdentifier(participant)) {
756
756
  yield (call === null || call === void 0 ? void 0 : call.addParticipant(participant, options));
757
757
  }
@@ -760,7 +760,7 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
760
760
  }
761
761
  });
762
762
  /* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */
763
- const onSendDtmfTone = (dtmfTone) => __awaiter$t(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.sendDtmf(dtmfTone)); });
763
+ const onSendDtmfTone = (dtmfTone) => __awaiter$u(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.sendDtmf(dtmfTone)); });
764
764
  return {
765
765
  onHangUp,
766
766
  /* @conditional-compile-remove(PSTN-calls) */
@@ -3392,7 +3392,7 @@ const chatMessageActionMenuProps = (menuProps) => {
3392
3392
  return actionMenuProps;
3393
3393
  };
3394
3394
 
3395
- var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
3395
+ var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
3396
3396
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3397
3397
  return new (P || (P = Promise))(function (resolve, reject) {
3398
3398
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -3417,7 +3417,7 @@ const _FileDownloadCards = (props) => {
3417
3417
  var _a, _b;
3418
3418
  return (_b = (_a = props.strings) === null || _a === void 0 ? void 0 : _a.downloadFile) !== null && _b !== void 0 ? _b : localeStrings.downloadFile;
3419
3419
  }, [(_a = props.strings) === null || _a === void 0 ? void 0 : _a.downloadFile, localeStrings.downloadFile]);
3420
- const fileDownloadHandler = React.useCallback((userId, file) => __awaiter$s(void 0, void 0, void 0, function* () {
3420
+ const fileDownloadHandler = React.useCallback((userId, file) => __awaiter$t(void 0, void 0, void 0, function* () {
3421
3421
  if (!props.downloadHandler) {
3422
3422
  window.open(file.url, '_blank', 'noopener,noreferrer');
3423
3423
  }
@@ -3565,7 +3565,7 @@ const ChatMessageComponentAsMessageBubble = React__default['default'].memo(Messa
3565
3565
 
3566
3566
  // Copyright (c) Microsoft Corporation.
3567
3567
  // Licensed under the MIT license.
3568
- var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
3568
+ var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
3569
3569
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3570
3570
  return new (P || (P = Promise))(function (resolve, reject) {
3571
3571
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -3599,7 +3599,7 @@ const ChatMessageComponent = (props) => {
3599
3599
  return React__default['default'].createElement(React__default['default'].Fragment, null);
3600
3600
  }
3601
3601
  else if (isEditing) {
3602
- return (React__default['default'].createElement(ChatMessageComponentAsEditBox, { message: message, inlineEditButtons: props.inlineAcceptRejectEditButtons, strings: props.strings, onSubmit: (text, metadata, options) => __awaiter$r(void 0, void 0, void 0, function* () {
3602
+ return (React__default['default'].createElement(ChatMessageComponentAsEditBox, { message: message, inlineEditButtons: props.inlineAcceptRejectEditButtons, strings: props.strings, onSubmit: (text, metadata, options) => __awaiter$s(void 0, void 0, void 0, function* () {
3603
3603
  props.onUpdateMessage &&
3604
3604
  props.message.messageId &&
3605
3605
  (yield props.onUpdateMessage(props.message.messageId, text, metadata, options));
@@ -3698,7 +3698,7 @@ const getParticipantsWhoHaveReadMessage = (message, readReceiptsBySenderId) => {
3698
3698
 
3699
3699
  // Copyright (c) Microsoft Corporation.
3700
3700
  // Licensed under the MIT license.
3701
- var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
3701
+ var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
3702
3702
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3703
3703
  return new (P || (P = Promise))(function (resolve, reject) {
3704
3704
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -3925,7 +3925,7 @@ const MessageThread = (props) => {
3925
3925
  setChatMessagesInitialized(chatMessagesInitialized);
3926
3926
  };
3927
3927
  // we try to only send those message status if user is scrolled to the bottom.
3928
- const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$q(void 0, void 0, void 0, function* () {
3928
+ const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$r(void 0, void 0, void 0, function* () {
3929
3929
  if (!isAtBottomOfScrollRef.current ||
3930
3930
  !document.hasFocus() ||
3931
3931
  !messagesRef.current ||
@@ -3976,7 +3976,7 @@ const MessageThread = (props) => {
3976
3976
  setIsAtBottomOfScrollRef(atBottom);
3977
3977
  }, [scrollToBottom, sendMessageStatusIfAtBottom]);
3978
3978
  // Infinite scrolling + threadInitialize function
3979
- const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$q(void 0, void 0, void 0, function* () {
3979
+ const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$r(void 0, void 0, void 0, function* () {
3980
3980
  if (chatScrollDivRef.current && !isLoadingChatMessagesRef.current) {
3981
3981
  if (onLoadPreviousChatMessages) {
3982
3982
  isLoadingChatMessagesRef.current = true;
@@ -6789,7 +6789,7 @@ const DevicesButton = (props) => {
6789
6789
 
6790
6790
  // Copyright (c) Microsoft Corporation.
6791
6791
  // Licensed under the MIT license.
6792
- var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6792
+ var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6793
6793
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6794
6794
  return new (P || (P = Promise))(function (resolve, reject) {
6795
6795
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6831,7 +6831,7 @@ const CameraButton = (props) => {
6831
6831
  const toggleAnnouncerString = React.useCallback((isCameraOn) => {
6832
6832
  setAnnouncerString(!isCameraOn ? strings.cameraActionTurnedOffAnnouncement : strings.cameraActionTurnedOnAnnouncement);
6833
6833
  }, [strings.cameraActionTurnedOffAnnouncement, strings.cameraActionTurnedOnAnnouncement]);
6834
- const onToggleClick = React.useCallback(() => __awaiter$p(void 0, void 0, void 0, function* () {
6834
+ const onToggleClick = React.useCallback(() => __awaiter$q(void 0, void 0, void 0, function* () {
6835
6835
  // Throttle click on camera, need to await onToggleCamera then allow another click
6836
6836
  if (onToggleCamera) {
6837
6837
  setWaitForCamera(true);
@@ -6963,7 +6963,7 @@ const lightThemeCallButtonStyles = {
6963
6963
 
6964
6964
  // Copyright (c) Microsoft Corporation.
6965
6965
  // Licensed under the MIT license.
6966
- var __awaiter$o = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6966
+ var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
6967
6967
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6968
6968
  return new (P || (P = Promise))(function (resolve, reject) {
6969
6969
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -7006,7 +7006,7 @@ const MicrophoneButton = (props) => {
7006
7006
  const toggleAnnouncerString = React.useCallback((isMicOn) => {
7007
7007
  setAnnouncerString(!isMicOn ? strings.microphoneActionTurnedOffAnnouncement : strings.microphoneActionTurnedOnAnnouncement);
7008
7008
  }, [strings.microphoneActionTurnedOffAnnouncement, strings.microphoneActionTurnedOnAnnouncement]);
7009
- const onToggleClick = React.useCallback(() => __awaiter$o(void 0, void 0, void 0, function* () {
7009
+ const onToggleClick = React.useCallback(() => __awaiter$p(void 0, void 0, void 0, function* () {
7010
7010
  if (onToggleMicrophone) {
7011
7011
  try {
7012
7012
  yield onToggleMicrophone();
@@ -8414,7 +8414,7 @@ const findConditionalCompiledSelector = (component) => {
8414
8414
 
8415
8415
  // Copyright (c) Microsoft Corporation.
8416
8416
  // Licensed under the MIT license.
8417
- var __awaiter$n = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
8417
+ var __awaiter$o = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
8418
8418
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8419
8419
  return new (P || (P = Promise))(function (resolve, reject) {
8420
8420
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -8437,35 +8437,35 @@ const createDefaultChatHandlers = memoizeOne__default['default']((chatClient, ch
8437
8437
  let messageIterator = undefined;
8438
8438
  let readReceiptIterator = undefined;
8439
8439
  return {
8440
- onSendMessage: (content, options) => __awaiter$n(void 0, void 0, void 0, function* () {
8440
+ onSendMessage: (content, options) => __awaiter$o(void 0, void 0, void 0, function* () {
8441
8441
  const sendMessageRequest = {
8442
8442
  content,
8443
8443
  senderDisplayName: chatClient.getState().displayName
8444
8444
  };
8445
8445
  yield chatThreadClient.sendMessage(sendMessageRequest, options);
8446
8446
  }),
8447
- onUpdateMessage: (messageId, content, metadata, options) => __awaiter$n(void 0, void 0, void 0, function* () {
8447
+ onUpdateMessage: (messageId, content, metadata, options) => __awaiter$o(void 0, void 0, void 0, function* () {
8448
8448
  const updatedMetadata = metadata ? Object.assign({}, metadata) : {};
8449
8449
  updatedMetadata['fileSharingMetadata'] = JSON.stringify((options === null || options === void 0 ? void 0 : options.attachedFilesMetadata) || []);
8450
8450
  yield chatThreadClient.updateMessage(messageId, { content, metadata: updatedMetadata });
8451
8451
  }),
8452
- onDeleteMessage: (messageId) => __awaiter$n(void 0, void 0, void 0, function* () {
8452
+ onDeleteMessage: (messageId) => __awaiter$o(void 0, void 0, void 0, function* () {
8453
8453
  yield chatThreadClient.deleteMessage(messageId);
8454
8454
  }),
8455
8455
  // This handler is designed for chatThread to consume
8456
- onMessageSeen: (chatMessageId) => __awaiter$n(void 0, void 0, void 0, function* () {
8456
+ onMessageSeen: (chatMessageId) => __awaiter$o(void 0, void 0, void 0, function* () {
8457
8457
  yield chatThreadClient.sendReadReceipt({ chatMessageId });
8458
8458
  }),
8459
- onTyping: () => __awaiter$n(void 0, void 0, void 0, function* () {
8459
+ onTyping: () => __awaiter$o(void 0, void 0, void 0, function* () {
8460
8460
  yield chatThreadClient.sendTypingNotification();
8461
8461
  }),
8462
- onRemoveParticipant: (userId) => __awaiter$n(void 0, void 0, void 0, function* () {
8462
+ onRemoveParticipant: (userId) => __awaiter$o(void 0, void 0, void 0, function* () {
8463
8463
  yield chatThreadClient.removeParticipant(fromFlatCommunicationIdentifier(userId));
8464
8464
  }),
8465
- updateThreadTopicName: (topicName) => __awaiter$n(void 0, void 0, void 0, function* () {
8465
+ updateThreadTopicName: (topicName) => __awaiter$o(void 0, void 0, void 0, function* () {
8466
8466
  yield chatThreadClient.updateTopic(topicName);
8467
8467
  }),
8468
- onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$n(void 0, void 0, void 0, function* () {
8468
+ onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$o(void 0, void 0, void 0, function* () {
8469
8469
  var _a, _b, _c;
8470
8470
  if (messageIterator === undefined) {
8471
8471
  // Lazy definition so that errors in the method call are reported correctly.
@@ -9156,7 +9156,7 @@ const findSelector = (component) => {
9156
9156
 
9157
9157
  // Copyright (c) Microsoft Corporation.
9158
9158
  // Licensed under the MIT license.
9159
- var __awaiter$m = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9159
+ var __awaiter$n = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9160
9160
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9161
9161
  return new (P || (P = Promise))(function (resolve, reject) {
9162
9162
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9205,10 +9205,10 @@ class ProxyDeviceManager {
9205
9205
  this.selectCamera = (videoDeviceInfo) => {
9206
9206
  this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);
9207
9207
  };
9208
- this.videoDevicesUpdated = () => __awaiter$m(this, void 0, void 0, function* () {
9208
+ this.videoDevicesUpdated = () => __awaiter$n(this, void 0, void 0, function* () {
9209
9209
  this._context.setDeviceManagerCameras(dedupeById(yield this._deviceManager.getCameras()));
9210
9210
  });
9211
- this.audioDevicesUpdated = () => __awaiter$m(this, void 0, void 0, function* () {
9211
+ this.audioDevicesUpdated = () => __awaiter$n(this, void 0, void 0, function* () {
9212
9212
  this._context.setDeviceManagerMicrophones(dedupeById(yield this._deviceManager.getMicrophones()));
9213
9213
  this._context.setDeviceManagerSpeakers(dedupeById(yield this._deviceManager.getSpeakers()));
9214
9214
  });
@@ -9411,7 +9411,7 @@ class CallIdHistory {
9411
9411
 
9412
9412
  // Copyright (c) Microsoft Corporation.
9413
9413
  // Licensed under the MIT license.
9414
- var __awaiter$l = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9414
+ var __awaiter$m = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9415
9415
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9416
9416
  return new (P || (P = Promise))(function (resolve, reject) {
9417
9417
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9896,7 +9896,7 @@ class CallContext$1 {
9896
9896
  * @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.
9897
9897
  */
9898
9898
  withAsyncErrorTeedToState(action, target) {
9899
- return (...args) => __awaiter$l(this, void 0, void 0, function* () {
9899
+ return (...args) => __awaiter$m(this, void 0, void 0, function* () {
9900
9900
  try {
9901
9901
  return yield action(...args);
9902
9902
  }
@@ -9960,7 +9960,7 @@ const findOldestCallEnded = (calls) => {
9960
9960
 
9961
9961
  // Copyright (c) Microsoft Corporation.
9962
9962
  // Licensed under the MIT license.
9963
- var __awaiter$k = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9963
+ var __awaiter$l = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
9964
9964
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9965
9965
  return new (P || (P = Promise))(function (resolve, reject) {
9966
9966
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9980,63 +9980,63 @@ class ProxyCall {
9980
9980
  switch (prop) {
9981
9981
  case 'mute': {
9982
9982
  return this._context.withAsyncErrorTeedToState(function (...args) {
9983
- return __awaiter$k(this, void 0, void 0, function* () {
9983
+ return __awaiter$l(this, void 0, void 0, function* () {
9984
9984
  return yield target.mute(...args);
9985
9985
  });
9986
9986
  }, 'Call.mute');
9987
9987
  }
9988
9988
  case 'unmute': {
9989
9989
  return this._context.withAsyncErrorTeedToState(function (...args) {
9990
- return __awaiter$k(this, void 0, void 0, function* () {
9990
+ return __awaiter$l(this, void 0, void 0, function* () {
9991
9991
  return yield target.unmute(...args);
9992
9992
  });
9993
9993
  }, 'Call.unmute');
9994
9994
  }
9995
9995
  case 'startVideo': {
9996
9996
  return this._context.withAsyncErrorTeedToState(function (...args) {
9997
- return __awaiter$k(this, void 0, void 0, function* () {
9997
+ return __awaiter$l(this, void 0, void 0, function* () {
9998
9998
  return yield target.startVideo(...args);
9999
9999
  });
10000
10000
  }, 'Call.startVideo');
10001
10001
  }
10002
10002
  case 'stopVideo': {
10003
10003
  return this._context.withAsyncErrorTeedToState(function (...args) {
10004
- return __awaiter$k(this, void 0, void 0, function* () {
10004
+ return __awaiter$l(this, void 0, void 0, function* () {
10005
10005
  return yield target.stopVideo(...args);
10006
10006
  });
10007
10007
  }, 'Call.stopVideo');
10008
10008
  }
10009
10009
  case 'startScreenSharing': {
10010
10010
  return this._context.withAsyncErrorTeedToState(function (...args) {
10011
- return __awaiter$k(this, void 0, void 0, function* () {
10011
+ return __awaiter$l(this, void 0, void 0, function* () {
10012
10012
  return yield target.startScreenSharing(...args);
10013
10013
  });
10014
10014
  }, 'Call.startScreenSharing');
10015
10015
  }
10016
10016
  case 'stopScreenSharing': {
10017
10017
  return this._context.withAsyncErrorTeedToState(function (...args) {
10018
- return __awaiter$k(this, void 0, void 0, function* () {
10018
+ return __awaiter$l(this, void 0, void 0, function* () {
10019
10019
  return yield target.stopScreenSharing(...args);
10020
10020
  });
10021
10021
  }, 'Call.stopScreenSharing');
10022
10022
  }
10023
10023
  case 'hold': {
10024
10024
  return this._context.withAsyncErrorTeedToState(function (...args) {
10025
- return __awaiter$k(this, void 0, void 0, function* () {
10025
+ return __awaiter$l(this, void 0, void 0, function* () {
10026
10026
  return yield target.hold(...args);
10027
10027
  });
10028
10028
  }, 'Call.hold');
10029
10029
  }
10030
10030
  case 'resume': {
10031
10031
  return this._context.withAsyncErrorTeedToState(function (...args) {
10032
- return __awaiter$k(this, void 0, void 0, function* () {
10032
+ return __awaiter$l(this, void 0, void 0, function* () {
10033
10033
  return yield target.resume(...args);
10034
10034
  });
10035
10035
  }, 'Call.resume');
10036
10036
  }
10037
10037
  case 'addParticipant': {
10038
10038
  return this._context.withAsyncErrorTeedToState(function (...args) {
10039
- return __awaiter$k(this, void 0, void 0, function* () {
10039
+ return __awaiter$l(this, void 0, void 0, function* () {
10040
10040
  return yield target.addParticipant(...args);
10041
10041
  });
10042
10042
  }, 'Call.addParticipant');
@@ -10244,7 +10244,7 @@ class RemoteVideoStreamSubscriber {
10244
10244
 
10245
10245
  // Copyright (c) Microsoft Corporation.
10246
10246
  // Licensed under the MIT license.
10247
- var __awaiter$j = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10247
+ var __awaiter$k = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
10248
10248
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10249
10249
  return new (P || (P = Promise))(function (resolve, reject) {
10250
10250
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -10254,7 +10254,7 @@ var __awaiter$j = (window && window.__awaiter) || function (thisArg, _arguments,
10254
10254
  });
10255
10255
  };
10256
10256
  function createViewRemoteVideo(context, internalContext, callId, participantId, stream, options) {
10257
- return __awaiter$j(this, void 0, void 0, function* () {
10257
+ return __awaiter$k(this, void 0, void 0, function* () {
10258
10258
  // Render RemoteVideoStream that is part of a Call
10259
10259
  const streamId = stream.id;
10260
10260
  let participantKey;
@@ -10362,7 +10362,7 @@ function createViewRemoteVideo(context, internalContext, callId, participantId,
10362
10362
  });
10363
10363
  }
10364
10364
  function createViewLocalVideo(context, internalContext, callId, options) {
10365
- return __awaiter$j(this, void 0, void 0, function* () {
10365
+ return __awaiter$k(this, void 0, void 0, function* () {
10366
10366
  _logEvent(callingStatefulLogger, {
10367
10367
  name: EventNames.START_LOCAL_STREAM_RENDERING,
10368
10368
  level: 'info',
@@ -10478,7 +10478,7 @@ function createViewLocalVideo(context, internalContext, callId, options) {
10478
10478
  });
10479
10479
  }
10480
10480
  function createViewUnparentedVideo(context, internalContext, stream, options) {
10481
- return __awaiter$j(this, void 0, void 0, function* () {
10481
+ return __awaiter$k(this, void 0, void 0, function* () {
10482
10482
  const renderInfo = internalContext.getUnparentedRenderInfo(stream);
10483
10483
  if (renderInfo && renderInfo.status === 'Rendered') {
10484
10484
  console.warn('Unparented LocalVideoStream is already rendered');
@@ -11106,7 +11106,7 @@ class CallSubscriber {
11106
11106
 
11107
11107
  // Copyright (c) Microsoft Corporation.
11108
11108
  // Licensed under the MIT license.
11109
- var __awaiter$i = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
11109
+ var __awaiter$j = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
11110
11110
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11111
11111
  return new (P || (P = Promise))(function (resolve, reject) {
11112
11112
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -11126,14 +11126,14 @@ class ProxyIncomingCall {
11126
11126
  switch (prop) {
11127
11127
  case 'accept': {
11128
11128
  return this._context.withAsyncErrorTeedToState(function (...args) {
11129
- return __awaiter$i(this, void 0, void 0, function* () {
11129
+ return __awaiter$j(this, void 0, void 0, function* () {
11130
11130
  return yield target.accept(...args);
11131
11131
  });
11132
11132
  }, 'IncomingCall.accept');
11133
11133
  }
11134
11134
  case 'reject': {
11135
11135
  return this._context.withAsyncErrorTeedToState(function (...args) {
11136
- return __awaiter$i(this, void 0, void 0, function* () {
11136
+ return __awaiter$j(this, void 0, void 0, function* () {
11137
11137
  return yield target.reject(...args);
11138
11138
  });
11139
11139
  }, 'IncomingCall.reject');
@@ -11471,7 +11471,7 @@ class InternalCallContext {
11471
11471
 
11472
11472
  // Copyright (c) Microsoft Corporation.
11473
11473
  // Licensed under the MIT license.
11474
- var __awaiter$h = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
11474
+ var __awaiter$i = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
11475
11475
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11476
11476
  return new (P || (P = Promise))(function (resolve, reject) {
11477
11477
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -11493,7 +11493,7 @@ class ProxyCallClient {
11493
11493
  get(target, prop) {
11494
11494
  switch (prop) {
11495
11495
  case 'createCallAgent': {
11496
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$h(this, void 0, void 0, function* () {
11496
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$i(this, void 0, void 0, function* () {
11497
11497
  // createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
11498
11498
  // callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
11499
11499
  // callAgent if the createCallAgent succeeds.
@@ -11506,7 +11506,7 @@ class ProxyCallClient {
11506
11506
  }), 'CallClient.createCallAgent');
11507
11507
  }
11508
11508
  case 'getDeviceManager': {
11509
- return this._context.withAsyncErrorTeedToState(() => __awaiter$h(this, void 0, void 0, function* () {
11509
+ return this._context.withAsyncErrorTeedToState(() => __awaiter$i(this, void 0, void 0, function* () {
11510
11510
  // As of writing, the SDK always returns the same instance of DeviceManager so we keep a reference of
11511
11511
  // DeviceManager and if it does not change we return the cached DeclarativeDeviceManager. If it does not we'll
11512
11512
  // throw an error that indicate we need to fix this issue as our implementation has diverged from the SDK.
@@ -11629,7 +11629,7 @@ const chatStatefulLogger = logger.createClientLogger('communication-react:chat-s
11629
11629
 
11630
11630
  // Copyright (c) Microsoft Corporation.
11631
11631
  // Licensed under the MIT license.
11632
- var __awaiter$g = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
11632
+ var __awaiter$h = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
11633
11633
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11634
11634
  return new (P || (P = Promise))(function (resolve, reject) {
11635
11635
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -11904,7 +11904,7 @@ class ChatContext$1 {
11904
11904
  * @throws ChatError. Exceptions thrown from `f` are tagged with the failed `target.
11905
11905
  */
11906
11906
  withAsyncErrorTeedToState(f, target) {
11907
- return (...args) => __awaiter$g(this, void 0, void 0, function* () {
11907
+ return (...args) => __awaiter$h(this, void 0, void 0, function* () {
11908
11908
  try {
11909
11909
  return yield f(...args);
11910
11910
  }
@@ -12011,7 +12011,7 @@ const convertChatMessage = (message, status = 'delivered', clientMessageId) => {
12011
12011
 
12012
12012
  // Copyright (c) Microsoft Corporation.
12013
12013
  // Licensed under the MIT license.
12014
- var __awaiter$f = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12014
+ var __awaiter$g = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12015
12015
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12016
12016
  return new (P || (P = Promise))(function (resolve, reject) {
12017
12017
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -12095,7 +12095,7 @@ class EventSubscriber {
12095
12095
  this.fetchLastParticipantMessage(event.threadId, 'participantAdded');
12096
12096
  };
12097
12097
  // This is a hot fix that no participant message is received for onChatMessageReceived event, which should be handled by JS SDK
12098
- this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$f(this, void 0, void 0, function* () {
12098
+ this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$g(this, void 0, void 0, function* () {
12099
12099
  var e_1, _a;
12100
12100
  try {
12101
12101
  for (var _b = __asyncValues$1(this.chatClient
@@ -12181,7 +12181,7 @@ class EventSubscriber {
12181
12181
 
12182
12182
  // Copyright (c) Microsoft Corporation.
12183
12183
  // Licensed under the MIT license.
12184
- var __awaiter$e = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12184
+ var __awaiter$f = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12185
12185
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12186
12186
  return new (P || (P = Promise))(function (resolve, reject) {
12187
12187
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -12203,7 +12203,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
12203
12203
  const threadsIterator = iteratorCreator(...args);
12204
12204
  return {
12205
12205
  next() {
12206
- return __awaiter$e(this, void 0, void 0, function* () {
12206
+ return __awaiter$f(this, void 0, void 0, function* () {
12207
12207
  const result = yield threadsIterator.next();
12208
12208
  if (!result.done && result.value) {
12209
12209
  decorateFn(result.value, context);
@@ -12218,7 +12218,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
12218
12218
  const pages = threadsIterator.byPage(settings);
12219
12219
  return {
12220
12220
  next() {
12221
- return __awaiter$e(this, void 0, void 0, function* () {
12221
+ return __awaiter$f(this, void 0, void 0, function* () {
12222
12222
  const result = yield pages.next();
12223
12223
  const page = result.value;
12224
12224
  if (!result.done && result.value) {
@@ -12302,7 +12302,7 @@ const createDecoratedListParticipants = (chatThreadClient, context) => {
12302
12302
 
12303
12303
  // Copyright (c) Microsoft Corporation.
12304
12304
  // Licensed under the MIT license.
12305
- var __awaiter$d = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12305
+ var __awaiter$e = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12306
12306
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12307
12307
  return new (P || (P = Promise))(function (resolve, reject) {
12308
12308
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -12321,14 +12321,14 @@ class ProxyChatThreadClient {
12321
12321
  return createDecoratedListMessages(chatThreadClient, this._context);
12322
12322
  }
12323
12323
  case 'getMessage': {
12324
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$d(this, void 0, void 0, function* () {
12324
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$e(this, void 0, void 0, function* () {
12325
12325
  const message = yield chatThreadClient.getMessage(...args);
12326
12326
  this._context.setChatMessage(chatThreadClient.threadId, convertChatMessage(message));
12327
12327
  return message;
12328
12328
  }), 'ChatThreadClient.getMessage');
12329
12329
  }
12330
12330
  case 'sendMessage': {
12331
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$d(this, void 0, void 0, function* () {
12331
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$e(this, void 0, void 0, function* () {
12332
12332
  // Retry logic?
12333
12333
  const [request, options] = args;
12334
12334
  const { content } = request;
@@ -12368,7 +12368,7 @@ class ProxyChatThreadClient {
12368
12368
  }), 'ChatThreadClient.sendMessage');
12369
12369
  }
12370
12370
  case 'addParticipants': {
12371
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$d(this, void 0, void 0, function* () {
12371
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$e(this, void 0, void 0, function* () {
12372
12372
  const result = yield chatThreadClient.addParticipants(...args);
12373
12373
  const [addRequest] = args;
12374
12374
  const participantsToAdd = addRequest.participants;
@@ -12377,7 +12377,7 @@ class ProxyChatThreadClient {
12377
12377
  }), 'ChatThreadClient.addParticipants');
12378
12378
  }
12379
12379
  case 'deleteMessage': {
12380
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$d(this, void 0, void 0, function* () {
12380
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$e(this, void 0, void 0, function* () {
12381
12381
  // DeleteMessage is able to either delete local one(for failed message) or synced message
12382
12382
  const [messageId] = args;
12383
12383
  if (this._context.deleteLocalMessage(chatThreadClient.threadId, messageId)) {
@@ -12395,7 +12395,7 @@ class ProxyChatThreadClient {
12395
12395
  return createDecoratedListReadReceipts(chatThreadClient, this._context);
12396
12396
  }
12397
12397
  case 'removeParticipant': {
12398
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$d(this, void 0, void 0, function* () {
12398
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$e(this, void 0, void 0, function* () {
12399
12399
  const result = yield chatThreadClient.removeParticipant(...args);
12400
12400
  const [removeIdentifier] = args;
12401
12401
  this._context.deleteParticipant(chatThreadClient.threadId, communicationCommon.getIdentifierKind(removeIdentifier));
@@ -12403,7 +12403,7 @@ class ProxyChatThreadClient {
12403
12403
  }), 'ChatThreadClient.removeParticipant');
12404
12404
  }
12405
12405
  case 'updateMessage': {
12406
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$d(this, void 0, void 0, function* () {
12406
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$e(this, void 0, void 0, function* () {
12407
12407
  const result = yield chatThreadClient.updateMessage(...args);
12408
12408
  const [messageId, updateOption] = args;
12409
12409
  this._context.updateChatMessageContent(chatThreadClient.threadId, messageId, updateOption === null || updateOption === void 0 ? void 0 : updateOption.content);
@@ -12411,7 +12411,7 @@ class ProxyChatThreadClient {
12411
12411
  }), 'ChatThreadClient.updateMessage');
12412
12412
  }
12413
12413
  case 'updateTopic': {
12414
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$d(this, void 0, void 0, function* () {
12414
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$e(this, void 0, void 0, function* () {
12415
12415
  const result = yield chatThreadClient.updateTopic(...args);
12416
12416
  const [topic] = args;
12417
12417
  this._context.updateThreadTopic(chatThreadClient.threadId, topic);
@@ -12419,7 +12419,7 @@ class ProxyChatThreadClient {
12419
12419
  }), 'ChatThreadClient.updateTopic');
12420
12420
  }
12421
12421
  case 'getProperties': {
12422
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter$d(this, void 0, void 0, function* () {
12422
+ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$e(this, void 0, void 0, function* () {
12423
12423
  const result = yield chatThreadClient.getProperties(...args);
12424
12424
  this._context.updateThread(chatThreadClient.threadId, result);
12425
12425
  return result;
@@ -12456,7 +12456,7 @@ const createDecoratedListThreads = (chatClient, context) => {
12456
12456
 
12457
12457
  // Copyright (c) Microsoft Corporation.
12458
12458
  // Licensed under the MIT license.
12459
- var __awaiter$c = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12459
+ var __awaiter$d = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
12460
12460
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12461
12461
  return new (P || (P = Promise))(function (resolve, reject) {
12462
12462
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -12475,7 +12475,7 @@ const proxyChatClient = {
12475
12475
  switch (prop) {
12476
12476
  case 'createChatThread': {
12477
12477
  return context.withAsyncErrorTeedToState(function (...args) {
12478
- return __awaiter$c(this, void 0, void 0, function* () {
12478
+ return __awaiter$d(this, void 0, void 0, function* () {
12479
12479
  const result = yield chatClient.createChatThread(...args);
12480
12480
  const thread = result.chatThread;
12481
12481
  if (thread) {
@@ -12488,7 +12488,7 @@ const proxyChatClient = {
12488
12488
  }
12489
12489
  case 'deleteChatThread': {
12490
12490
  return context.withAsyncErrorTeedToState(function (...args) {
12491
- return __awaiter$c(this, void 0, void 0, function* () {
12491
+ return __awaiter$d(this, void 0, void 0, function* () {
12492
12492
  const result = yield chatClient.deleteChatThread(...args);
12493
12493
  context.deleteThread(args[0]);
12494
12494
  return result;
@@ -12508,7 +12508,7 @@ const proxyChatClient = {
12508
12508
  }
12509
12509
  case 'startRealtimeNotifications': {
12510
12510
  return context.withAsyncErrorTeedToState(function (...args) {
12511
- return __awaiter$c(this, void 0, void 0, function* () {
12511
+ return __awaiter$d(this, void 0, void 0, function* () {
12512
12512
  const ret = yield chatClient.startRealtimeNotifications(...args);
12513
12513
  if (!receiver.eventSubscriber) {
12514
12514
  receiver.eventSubscriber = new EventSubscriber(chatClient, context);
@@ -12519,7 +12519,7 @@ const proxyChatClient = {
12519
12519
  }
12520
12520
  case 'stopRealtimeNotifications': {
12521
12521
  return context.withAsyncErrorTeedToState(function (...args) {
12522
- return __awaiter$c(this, void 0, void 0, function* () {
12522
+ return __awaiter$d(this, void 0, void 0, function* () {
12523
12523
  const ret = yield chatClient.stopRealtimeNotifications(...args);
12524
12524
  if (receiver.eventSubscriber) {
12525
12525
  receiver.eventSubscriber.unsubscribe();
@@ -12706,7 +12706,7 @@ const CallCompositeIcon = (props) => (React__default['default'].createElement(re
12706
12706
  */
12707
12707
  const CallWithChatCompositeIcon = (props) => (React__default['default'].createElement(react.FontIcon, Object.assign({}, props)));
12708
12708
 
12709
- var call$d={cameraLabel:"Camera",cameraPermissionDenied:"Your browser is blocking access to your camera",cameraTurnedOff:"Your camera is turned off",chatButtonLabel:"Chat",close:"Close",complianceBannerNowOnlyRecording:"You are now only recording this meeting.",complianceBannerNowOnlyTranscription:"You are now only transcribing this meeting.",complianceBannerRecordingAndTranscriptionSaved:"Recording and transcription are being saved.",complianceBannerRecordingAndTranscriptionStarted:"Recording and transcription have started.",complianceBannerRecordingAndTranscriptionStopped:"Recording and transcription have stopped.",complianceBannerRecordingSaving:"Recording is being saved.",complianceBannerRecordingStarted:"Recording has started.",complianceBannerRecordingStopped:"Recording has stopped.",complianceBannerTranscriptionStarted:"Transcription has started.",complianceBannerTranscriptionConsent:"By joining, you are giving consent for this meeting to be transcribed.",complianceBannerTranscriptionSaving:"Transcription is being saved.",complianceBannerTranscriptionStopped:"Transcription has stopped.",configurationPageTitle:"Start a call",copyInviteLinkButtonLabel:"Copy invite link",defaultPlaceHolder:"Select an option",dismissSidePaneButtonLabel:"Close",failedToJoinCallDueToNoNetworkMoreDetails:"Call was disconnected due to a network issue. Check your connection and join again.",failedToJoinCallDueToNoNetworkTitle:"Call disconnected",failedToJoinTeamsMeetingReasonAccessDeniedMoreDetails:"You were not granted entry in the call. If this was a mistake, re-join the call.",failedToJoinTeamsMeetingReasonAccessDeniedTitle:"Dismissed from lobby",learnMore:"Learn more",leftCallMoreDetails:"If this was a mistake, re-join the call.",leftCallTitle:"You left the call",lobbyScreenConnectingToCallTitle:"Joining call",lobbyScreenWaitingToBeAdmittedTitle:"Waiting to be admitted",microphonePermissionDenied:"Your browser is blocking access to your microphone",microphoneToggleInLobbyNotAllowed:"Cannot mute or unmute while in lobby.",mutedMessage:"You're muted",networkReconnectMoreDetails:"Looks like something went wrong. We're trying to get back into the call.",networkReconnectTitle:"Hold on",peopleButtonLabel:"People",peoplePaneTitle:"People",peoplePaneSubTitle:"In this call",privacyPolicy:"Privacy policy",rejoinCallButtonLabel:"Re-join call",removedFromCallMoreDetails:"Another participant removed you from the call.",removedFromCallTitle:"You were removed",removeMenuLabel:"Remove",returnToCallButtonAriaDescription:"Return to Call",returnToCallButtonAriaLabel:"Back",soundLabel:"Sound",startCallButtonLabel:"Start call",openDialpadButtonLabel:"Dial phone number",peoplePaneAddPeopleButtonLabel:"Add People",dialpadStartCallButtonLabel:"Call",dialpadModalTitle:"Dial Phone Number",dialpadModalAriaLabel:"Dialpad",dialpadCloseModalButtonAriaLabel:"Close Dialpad",moreButtonCallingLabel:"More",resumeCallButtonLabel:"Resume",resumeCallButtonAriaLabel:"Resume call",holdScreenLabel:"You're on hold",openDtmfDialpadLabel:"Show Dialpad",dtmfDialpadPlaceHolderText:"Enter number"};var chat$d={chatListHeader:"In this chat",uploadFile:"Upload File"};var callWithChat$d={chatButtonLabel:"Chat",chatButtonNewMessageNotificationLabel:"New Message",chatButtonTooltipClosedWithMessageCount:"Show chat ({unreadMessagesCount} unread)",chatButtonTooltipClose:"Hide chat",chatButtonTooltipOpen:"Show chat",chatPaneTitle:"Chat",copyInviteLinkButtonLabel:"Copy invite link",dismissSidePaneButtonLabel:"Close",moreDrawerAudioDeviceMenuTitle:"Audio Device",moreDrawerButtonLabel:"More options",moreDrawerButtonTooltip:"More options",moreDrawerMicrophoneMenuTitle:"Microphone",moreDrawerSpeakerMenuTitle:"Speaker",peopleButtonLabel:"People",peopleButtonTooltipOpen:"Show participants",peopleButtonTooltipClose:"Hide participants",peoplePaneSubTitle:"In this call",peoplePaneTitle:"People",pictureInPictureTileAriaLabel:"Video Feeds. Click to return to call screen.",removeMenuLabel:"Remove",openDialpadButtonLabel:"Dial phone number",returnToCallButtonAriaDescription:"Return to Call",returnToCallButtonAriaLabel:"Back",peoplePaneAddPeopleButtonLabel:"Add People",dialpadStartCallButtonLabel:"Call",dialpadModalTitle:"Dial Phone Number",dialpadModalAriaLabel:"Dialpad",dialpadCloseModalButtonAriaLabel:"Close Dialpad",openDtmfDialpadLabel:"Show Dialpad",dtmfDialpadPlaceHolderText:"Enter number"};var en_US = {call:call$d,chat:chat$d,callWithChat:callWithChat$d};
12709
+ var call$d={cameraLabel:"Camera",cameraPermissionDenied:"Your browser is blocking access to your camera",cameraTurnedOff:"Your camera is turned off",chatButtonLabel:"Chat",close:"Close",complianceBannerNowOnlyRecording:"You are now only recording this meeting.",complianceBannerNowOnlyTranscription:"You are now only transcribing this meeting.",complianceBannerRecordingAndTranscriptionSaved:"Recording and transcription are being saved.",complianceBannerRecordingAndTranscriptionStarted:"Recording and transcription have started.",complianceBannerRecordingAndTranscriptionStopped:"Recording and transcription have stopped.",complianceBannerRecordingSaving:"Recording is being saved.",complianceBannerRecordingStarted:"Recording has started.",complianceBannerRecordingStopped:"Recording has stopped.",complianceBannerTranscriptionStarted:"Transcription has started.",complianceBannerTranscriptionConsent:"By joining, you are giving consent for this meeting to be transcribed.",complianceBannerTranscriptionSaving:"Transcription is being saved.",complianceBannerTranscriptionStopped:"Transcription has stopped.",configurationPageTitle:"Start a call",copyInviteLinkButtonLabel:"Copy invite link",defaultPlaceHolder:"Select an option",dismissSidePaneButtonLabel:"Close",failedToJoinCallDueToNoNetworkMoreDetails:"Call was disconnected due to a network issue. Check your connection and join again.",failedToJoinCallDueToNoNetworkTitle:"Call disconnected",failedToJoinTeamsMeetingReasonAccessDeniedMoreDetails:"You were not granted entry in the call. If this was a mistake, re-join the call.",failedToJoinTeamsMeetingReasonAccessDeniedTitle:"Dismissed from lobby",learnMore:"Learn more",leftCallMoreDetails:"If this was a mistake, re-join the call.",leftCallTitle:"You left the call",lobbyScreenConnectingToCallTitle:"Joining call",lobbyScreenWaitingToBeAdmittedTitle:"Waiting to be admitted",microphonePermissionDenied:"Your browser is blocking access to your microphone",microphoneToggleInLobbyNotAllowed:"Cannot mute or unmute while in lobby.",mutedMessage:"You're muted",networkReconnectMoreDetails:"Looks like something went wrong. We're trying to get back into the call.",networkReconnectTitle:"Hold on",peopleButtonLabel:"People",peoplePaneTitle:"People",peoplePaneSubTitle:"In this call",privacyPolicy:"Privacy policy",rejoinCallButtonLabel:"Re-join call",removedFromCallMoreDetails:"Another participant removed you from the call.",removedFromCallTitle:"You were removed",removeMenuLabel:"Remove",returnToCallButtonAriaDescription:"Return to Call",returnToCallButtonAriaLabel:"Back",soundLabel:"Sound",startCallButtonLabel:"Start call",openDialpadButtonLabel:"Dial phone number",peoplePaneAddPeopleButtonLabel:"Add People",dialpadStartCallButtonLabel:"Call",dialpadModalTitle:"Dial Phone Number",dialpadModalAriaLabel:"Dialpad",dialpadCloseModalButtonAriaLabel:"Close Dialpad",moreButtonCallingLabel:"More",resumeCallButtonLabel:"Resume",resumingCallButtonLabel:"Resuming",resumeCallButtonAriaLabel:"Resume call",resumingCallButtonAriaLabel:"Resume call",holdScreenLabel:"You're on hold",openDtmfDialpadLabel:"Show Dialpad",dtmfDialpadPlaceHolderText:"Enter number"};var chat$d={chatListHeader:"In this chat",uploadFile:"Upload File"};var callWithChat$d={chatButtonLabel:"Chat",chatButtonNewMessageNotificationLabel:"New Message",chatButtonTooltipClosedWithMessageCount:"Show chat ({unreadMessagesCount} unread)",chatButtonTooltipClose:"Hide chat",chatButtonTooltipOpen:"Show chat",chatPaneTitle:"Chat",copyInviteLinkButtonLabel:"Copy invite link",dismissSidePaneButtonLabel:"Close",moreDrawerAudioDeviceMenuTitle:"Audio Device",moreDrawerButtonLabel:"More options",moreDrawerButtonTooltip:"More options",moreDrawerMicrophoneMenuTitle:"Microphone",moreDrawerSpeakerMenuTitle:"Speaker",peopleButtonLabel:"People",peopleButtonTooltipOpen:"Show participants",peopleButtonTooltipClose:"Hide participants",peoplePaneSubTitle:"In this call",peoplePaneTitle:"People",pictureInPictureTileAriaLabel:"Video Feeds. Click to return to call screen.",removeMenuLabel:"Remove",openDialpadButtonLabel:"Dial phone number",returnToCallButtonAriaDescription:"Return to Call",returnToCallButtonAriaLabel:"Back",peoplePaneAddPeopleButtonLabel:"Add People",dialpadStartCallButtonLabel:"Call",dialpadModalTitle:"Dial Phone Number",dialpadModalAriaLabel:"Dialpad",dialpadCloseModalButtonAriaLabel:"Close Dialpad",openDtmfDialpadLabel:"Show Dialpad",dtmfDialpadPlaceHolderText:"Enter number"};var en_US = {call:call$d,chat:chat$d,callWithChat:callWithChat$d};
12710
12710
 
12711
12711
  var call$c={cameraLabel:"Camera",cameraPermissionDenied:"Your browser is blocking access to your camera",cameraTurnedOff:"Your camera is turned off",close:"Close",complianceBannerNowOnlyRecording:"You are now only recording this meeting.",complianceBannerNowOnlyTranscription:"You are now only transcribing this meeting.",complianceBannerRecordingAndTranscriptionSaved:"Recording and transcription are being saved.",complianceBannerRecordingAndTranscriptionStarted:"Recording and transcription have started.",complianceBannerRecordingAndTranscriptionStopped:"Recording and transcription have stopped.",complianceBannerRecordingSaving:"Recording is being saved.",complianceBannerRecordingStarted:"Recording has started.",complianceBannerRecordingStopped:"Recording has stopped.",complianceBannerTranscriptionStarted:"Transcription has started.",complianceBannerTranscriptionConsent:"By joining, you are giving consent for this meeting to be transcribed.",complianceBannerTranscriptionSaving:"Transcription is being saved.",complianceBannerTranscriptionStopped:"Transcription has stopped.",configurationPageTitle:"Start a call",defaultPlaceHolder:"Select an option",failedToJoinCallDueToNoNetworkMoreDetails:"Call was disconnected due to a network issue. Check your connection and join again.",failedToJoinCallDueToNoNetworkTitle:"Call disconnected",failedToJoinTeamsMeetingReasonAccessDeniedMoreDetails:"You were not granted entry in the call. If this was a mistake, re-join the call.",failedToJoinTeamsMeetingReasonAccessDeniedTitle:"Dismissed from lobby",learnMore:"Learn more",leftCallMoreDetails:"If this was a mistake, re-join the call.",leftCallTitle:"You left the call",lobbyScreenConnectingToCallTitle:"Joining call",lobbyScreenWaitingToBeAdmittedTitle:"Waiting to be admitted",microphonePermissionDenied:"Your browser is blocking access to your microphone",mutedMessage:"You're muted",networkReconnectMoreDetails:"Looks like something went wrong. We're trying to get back into the call.",networkReconnectTitle:"Hold on",privacyPolicy:"Privacy policy",rejoinCallButtonLabel:"Re-join call",removedFromCallMoreDetails:"Another participant removed you from the call.",removedFromCallTitle:"You were removed",soundLabel:"Sound",startCallButtonLabel:"Start call",microphoneToggleInLobbyNotAllowed:"Cannot mute or unmute while in lobby."};var chat$c={chatListHeader:"In this chat"};var callWithChat$c={peopleButtonLabel:"People",peopleButtonTooltipOpen:"Show participants",peopleButtonTooltipClose:"Hide participants",chatButtonLabel:"Chat",chatButtonTooltipClosedWithMessageCount:"Show chat ({unreadMessagesCount} unread)",chatButtonTooltipOpen:"Show chat",chatButtonTooltipClose:"Hide chat",moreDrawerAudioDeviceMenuTitle:"Audio Device",moreDrawerMicrophoneMenuTitle:"Microphone",moreDrawerSpeakerMenuTitle:"Speaker",moreDrawerButtonLabel:"More options",moreDrawerButtonTooltip:"More options",peoplePaneTitle:"People",peoplePaneSubTitle:"In this call",chatPaneTitle:"Chat",chatButtonNewMessageNotificationLabel:"New Message",pictureInPictureTileAriaLabel:"Video Feeds. Click to return to call screen.",removeMenuLabel:"Remove",copyInviteLinkButtonLabel:"Copy invite link",dismissSidePaneButton:"Close",returnToCallButtonAriaDescription:"Return to Call",returnToCallButtonAriaLabel:"Back"};var en_GB = {call:call$c,chat:chat$c,callWithChat:callWithChat$c};
12712
12712
 
@@ -13108,7 +13108,7 @@ const convertObservableFileUploadToFileUploadsUiState = (fileUploads) => {
13108
13108
 
13109
13109
  // Copyright (c) Microsoft Corporation.
13110
13110
  // Licensed under the MIT license.
13111
- var __awaiter$b = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
13111
+ var __awaiter$c = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
13112
13112
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13113
13113
  return new (P || (P = Promise))(function (resolve, reject) {
13114
13114
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -13234,9 +13234,9 @@ class AzureCommunicationChatAdapter {
13234
13234
  this.unsubscribeAllEvents();
13235
13235
  }
13236
13236
  fetchInitialData() {
13237
- return __awaiter$b(this, void 0, void 0, function* () {
13237
+ return __awaiter$c(this, void 0, void 0, function* () {
13238
13238
  // If get properties fails we dont want to try to get the participants after.
13239
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
13239
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$c(this, void 0, void 0, function* () {
13240
13240
  var e_1, _a;
13241
13241
  yield this.chatThreadClient.getProperties();
13242
13242
  try {
@@ -13270,8 +13270,8 @@ class AzureCommunicationChatAdapter {
13270
13270
  this.context.offStateChange(handler);
13271
13271
  }
13272
13272
  sendMessage(content, options = {}) {
13273
- return __awaiter$b(this, void 0, void 0, function* () {
13274
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
13273
+ return __awaiter$c(this, void 0, void 0, function* () {
13274
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$c(this, void 0, void 0, function* () {
13275
13275
  /* @conditional-compile-remove(file-sharing) */
13276
13276
  options.metadata = Object.assign(Object.assign({}, options.metadata), convertFileUploadsUiStateToMessageMetadata(this.context.getState().fileUploads));
13277
13277
  /* @conditional-compile-remove(file-sharing) */
@@ -13288,49 +13288,49 @@ class AzureCommunicationChatAdapter {
13288
13288
  });
13289
13289
  }
13290
13290
  sendReadReceipt(chatMessageId) {
13291
- return __awaiter$b(this, void 0, void 0, function* () {
13292
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
13291
+ return __awaiter$c(this, void 0, void 0, function* () {
13292
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$c(this, void 0, void 0, function* () {
13293
13293
  yield this.handlers.onMessageSeen(chatMessageId);
13294
13294
  }));
13295
13295
  });
13296
13296
  }
13297
13297
  sendTypingIndicator() {
13298
- return __awaiter$b(this, void 0, void 0, function* () {
13298
+ return __awaiter$c(this, void 0, void 0, function* () {
13299
13299
  yield this.handlers.onTyping();
13300
13300
  });
13301
13301
  }
13302
13302
  removeParticipant(userId) {
13303
- return __awaiter$b(this, void 0, void 0, function* () {
13304
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
13303
+ return __awaiter$c(this, void 0, void 0, function* () {
13304
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$c(this, void 0, void 0, function* () {
13305
13305
  yield this.handlers.onRemoveParticipant(userId);
13306
13306
  }));
13307
13307
  });
13308
13308
  }
13309
13309
  setTopic(topicName) {
13310
- return __awaiter$b(this, void 0, void 0, function* () {
13311
- yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
13310
+ return __awaiter$c(this, void 0, void 0, function* () {
13311
+ yield this.asyncTeeErrorToEventEmitter(() => __awaiter$c(this, void 0, void 0, function* () {
13312
13312
  yield this.handlers.updateThreadTopicName(topicName);
13313
13313
  }));
13314
13314
  });
13315
13315
  }
13316
13316
  loadPreviousChatMessages(messagesToLoad) {
13317
- return __awaiter$b(this, void 0, void 0, function* () {
13318
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
13317
+ return __awaiter$c(this, void 0, void 0, function* () {
13318
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$c(this, void 0, void 0, function* () {
13319
13319
  return yield this.handlers.onLoadPreviousChatMessages(messagesToLoad);
13320
13320
  }));
13321
13321
  });
13322
13322
  }
13323
13323
  updateMessage(messageId, content, metadata, options) {
13324
- return __awaiter$b(this, void 0, void 0, function* () {
13325
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
13324
+ return __awaiter$c(this, void 0, void 0, function* () {
13325
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$c(this, void 0, void 0, function* () {
13326
13326
  /* @conditional-compile-remove(file-sharing) */
13327
13327
  return yield this.handlers.onUpdateMessage(messageId, content, metadata, options);
13328
13328
  }));
13329
13329
  });
13330
13330
  }
13331
13331
  deleteMessage(messageId) {
13332
- return __awaiter$b(this, void 0, void 0, function* () {
13333
- return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$b(this, void 0, void 0, function* () {
13332
+ return __awaiter$c(this, void 0, void 0, function* () {
13333
+ return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$c(this, void 0, void 0, function* () {
13334
13334
  return yield this.handlers.onDeleteMessage(messageId);
13335
13335
  }));
13336
13336
  });
@@ -13411,7 +13411,7 @@ class AzureCommunicationChatAdapter {
13411
13411
  this.emitter.off(event, listener);
13412
13412
  }
13413
13413
  asyncTeeErrorToEventEmitter(f) {
13414
- return __awaiter$b(this, void 0, void 0, function* () {
13414
+ return __awaiter$c(this, void 0, void 0, function* () {
13415
13415
  try {
13416
13416
  return yield f();
13417
13417
  }
@@ -13453,7 +13453,7 @@ const convertEventType = (type) => {
13453
13453
  *
13454
13454
  * @public
13455
13455
  */
13456
- const createAzureCommunicationChatAdapter = ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) => __awaiter$b(void 0, void 0, void 0, function* () {
13456
+ const createAzureCommunicationChatAdapter = ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) => __awaiter$c(void 0, void 0, void 0, function* () {
13457
13457
  const chatClient = createStatefulChatClient({
13458
13458
  userId,
13459
13459
  displayName,
@@ -13516,7 +13516,7 @@ beforeDispose) => {
13516
13516
  if (!credential || !displayName || !endpoint || !threadId || !userId) {
13517
13517
  return;
13518
13518
  }
13519
- (() => __awaiter$b(void 0, void 0, void 0, function* () {
13519
+ (() => __awaiter$c(void 0, void 0, void 0, function* () {
13520
13520
  if (adapterRef.current) {
13521
13521
  // Dispose the old adapter when a new one is created.
13522
13522
  //
@@ -13548,7 +13548,7 @@ beforeDispose) => {
13548
13548
  // Dispose any existing adapter when the component unmounts.
13549
13549
  React.useEffect(() => {
13550
13550
  return () => {
13551
- (() => __awaiter$b(void 0, void 0, void 0, function* () {
13551
+ (() => __awaiter$c(void 0, void 0, void 0, function* () {
13552
13552
  if (adapterRef.current) {
13553
13553
  if (beforeDisposeRef.current) {
13554
13554
  yield beforeDisposeRef.current(adapterRef.current);
@@ -13569,7 +13569,7 @@ beforeDispose) => {
13569
13569
  *
13570
13570
  * @public
13571
13571
  */
13572
- const createAzureCommunicationChatAdapterFromClient = (chatClient, chatThreadClient) => __awaiter$b(void 0, void 0, void 0, function* () {
13572
+ const createAzureCommunicationChatAdapterFromClient = (chatClient, chatThreadClient) => __awaiter$c(void 0, void 0, void 0, function* () {
13573
13573
  return new AzureCommunicationChatAdapter(chatClient, chatThreadClient);
13574
13574
  });
13575
13575
  const isChatError = (e) => {
@@ -13771,7 +13771,7 @@ const sendboxContainerStyles = {
13771
13771
 
13772
13772
  // Copyright (c) Microsoft Corporation.
13773
13773
  // Licensed under the MIT license.
13774
- var __awaiter$a = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
13774
+ var __awaiter$b = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
13775
13775
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13776
13776
  return new (P || (P = Promise))(function (resolve, reject) {
13777
13777
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -13792,7 +13792,7 @@ const AvatarPersona = (props) => {
13792
13792
  const { userId, dataProvider, text, imageUrl, imageInitials, initialsColor, initialsTextColor, showOverflowTooltip } = props;
13793
13793
  const [data, setData] = React.useState();
13794
13794
  React.useEffect(() => {
13795
- (() => __awaiter$a(void 0, void 0, void 0, function* () {
13795
+ (() => __awaiter$b(void 0, void 0, void 0, function* () {
13796
13796
  if (dataProvider && userId) {
13797
13797
  const newData = yield dataProvider(userId);
13798
13798
  if (avatarDeepDifferenceCheck(data, newData)) {
@@ -14528,7 +14528,7 @@ const disableCallControls = (callControlOptions, disabledControls) => {
14528
14528
 
14529
14529
  // Copyright (c) Microsoft Corporation.
14530
14530
  // Licensed under the MIT license.
14531
- var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
14531
+ var __awaiter$a = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
14532
14532
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14533
14533
  return new (P || (P = Promise))(function (resolve, reject) {
14534
14534
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -14547,72 +14547,72 @@ _component) => {
14547
14547
  return createCompositeHandlers(useAdapter());
14548
14548
  };
14549
14549
  const createCompositeHandlers = memoizeOne__default['default']((adapter) => ({
14550
- onCreateLocalStreamView: (options) => __awaiter$9(void 0, void 0, void 0, function* () {
14550
+ onCreateLocalStreamView: (options) => __awaiter$a(void 0, void 0, void 0, function* () {
14551
14551
  return yield adapter.createStreamView(undefined, options);
14552
14552
  }),
14553
- onCreateRemoteStreamView: (userId, options) => __awaiter$9(void 0, void 0, void 0, function* () {
14553
+ onCreateRemoteStreamView: (userId, options) => __awaiter$a(void 0, void 0, void 0, function* () {
14554
14554
  return yield adapter.createStreamView(userId, options);
14555
14555
  }),
14556
- onHangUp: () => __awaiter$9(void 0, void 0, void 0, function* () {
14556
+ onHangUp: () => __awaiter$a(void 0, void 0, void 0, function* () {
14557
14557
  yield adapter.leaveCall();
14558
14558
  }),
14559
14559
  /* @conditional-compile-remove(PSTN-calls) */
14560
- onToggleHold: () => __awaiter$9(void 0, void 0, void 0, function* () {
14560
+ onToggleHold: () => __awaiter$a(void 0, void 0, void 0, function* () {
14561
14561
  var _a;
14562
14562
  return ((_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold' ? yield adapter.resumeCall() : yield adapter.holdCall();
14563
14563
  }),
14564
14564
  /* @conditional-compile-remove(PSTN-calls) */
14565
- onAddParticipant: (participant, options) => __awaiter$9(void 0, void 0, void 0, function* () {
14565
+ onAddParticipant: (participant, options) => __awaiter$a(void 0, void 0, void 0, function* () {
14566
14566
  return yield adapter.addParticipant(participant, options);
14567
14567
  }),
14568
14568
  /* @conditional-compile-remove(PSTN-calls) */
14569
- onSendDtmfTone: (dtmfTone) => __awaiter$9(void 0, void 0, void 0, function* () {
14569
+ onSendDtmfTone: (dtmfTone) => __awaiter$a(void 0, void 0, void 0, function* () {
14570
14570
  yield adapter.sendDtmfTone(dtmfTone);
14571
14571
  }),
14572
- onRemoveParticipant: (userId) => __awaiter$9(void 0, void 0, void 0, function* () {
14572
+ onRemoveParticipant: (userId) => __awaiter$a(void 0, void 0, void 0, function* () {
14573
14573
  yield adapter.removeParticipant(userId);
14574
14574
  }),
14575
- onSelectCamera: (deviceInfo, options) => __awaiter$9(void 0, void 0, void 0, function* () {
14575
+ onSelectCamera: (deviceInfo, options) => __awaiter$a(void 0, void 0, void 0, function* () {
14576
14576
  yield adapter.setCamera(deviceInfo, options);
14577
14577
  }),
14578
- onSelectMicrophone: (deviceInfo) => __awaiter$9(void 0, void 0, void 0, function* () {
14578
+ onSelectMicrophone: (deviceInfo) => __awaiter$a(void 0, void 0, void 0, function* () {
14579
14579
  yield adapter.setMicrophone(deviceInfo);
14580
14580
  }),
14581
- onSelectSpeaker: (deviceInfo) => __awaiter$9(void 0, void 0, void 0, function* () {
14581
+ onSelectSpeaker: (deviceInfo) => __awaiter$a(void 0, void 0, void 0, function* () {
14582
14582
  yield adapter.setSpeaker(deviceInfo);
14583
14583
  }),
14584
14584
  onStartCall: (participants, options) => {
14585
14585
  const rawIds = participants.map((participant) => toFlatCommunicationIdentifier(participant));
14586
14586
  return adapter.startCall(rawIds, options);
14587
14587
  },
14588
- onStartScreenShare: () => __awaiter$9(void 0, void 0, void 0, function* () {
14588
+ onStartScreenShare: () => __awaiter$a(void 0, void 0, void 0, function* () {
14589
14589
  yield adapter.startScreenShare();
14590
14590
  }),
14591
- onStopScreenShare: () => __awaiter$9(void 0, void 0, void 0, function* () {
14591
+ onStopScreenShare: () => __awaiter$a(void 0, void 0, void 0, function* () {
14592
14592
  yield adapter.stopScreenShare();
14593
14593
  }),
14594
- onToggleCamera: (options) => __awaiter$9(void 0, void 0, void 0, function* () {
14594
+ onToggleCamera: (options) => __awaiter$a(void 0, void 0, void 0, function* () {
14595
14595
  isCameraOn(adapter.getState()) ? yield adapter.stopCamera() : yield adapter.startCamera(options);
14596
14596
  }),
14597
- onToggleMicrophone: () => __awaiter$9(void 0, void 0, void 0, function* () {
14597
+ onToggleMicrophone: () => __awaiter$a(void 0, void 0, void 0, function* () {
14598
14598
  var _b;
14599
14599
  return ((_b = adapter.getState().call) === null || _b === void 0 ? void 0 : _b.isMuted) ? yield adapter.unmute() : yield adapter.mute();
14600
14600
  }),
14601
- onToggleScreenShare: () => __awaiter$9(void 0, void 0, void 0, function* () {
14601
+ onToggleScreenShare: () => __awaiter$a(void 0, void 0, void 0, function* () {
14602
14602
  var _c;
14603
14603
  return ((_c = adapter.getState().call) === null || _c === void 0 ? void 0 : _c.isScreenSharingOn)
14604
14604
  ? yield adapter.stopScreenShare()
14605
14605
  : yield adapter.startScreenShare();
14606
14606
  }),
14607
- onStartLocalVideo: () => __awaiter$9(void 0, void 0, void 0, function* () {
14607
+ onStartLocalVideo: () => __awaiter$a(void 0, void 0, void 0, function* () {
14608
14608
  if (adapter.getState().call) {
14609
14609
  return adapter.startCamera();
14610
14610
  }
14611
14611
  }),
14612
- onDisposeLocalStreamView: () => __awaiter$9(void 0, void 0, void 0, function* () {
14612
+ onDisposeLocalStreamView: () => __awaiter$a(void 0, void 0, void 0, function* () {
14613
14613
  return adapter.disposeStreamView();
14614
14614
  }),
14615
- onDisposeRemoteStreamView: (userId) => __awaiter$9(void 0, void 0, void 0, function* () {
14615
+ onDisposeRemoteStreamView: (userId) => __awaiter$a(void 0, void 0, void 0, function* () {
14616
14616
  return adapter.disposeStreamView(userId);
14617
14617
  })
14618
14618
  }));
@@ -14977,6 +14977,7 @@ const themedDialpadStyle$1 = (isMobile, theme) => ({
14977
14977
  backgroundColor: theme.palette.white,
14978
14978
  fontSize: theme.fonts.large.fontSize,
14979
14979
  padding: '0 0.5rem ',
14980
+ direction: 'rtl',
14980
14981
  textAlign: 'center',
14981
14982
  ':active': {
14982
14983
  padding: '0 0.5rem'
@@ -15651,6 +15652,7 @@ const themedDialpadStyle = (isMobile, theme) => ({
15651
15652
  backgroundColor: theme.palette.white,
15652
15653
  fontSize: theme.fonts.large.fontSize,
15653
15654
  padding: '0 0.5rem',
15655
+ direction: 'rtl',
15654
15656
  textAlign: isMobile ? 'center' : 'left',
15655
15657
  ':active': {
15656
15658
  padding: '0 0.5rem'
@@ -15849,7 +15851,7 @@ const AddPeopleButton = (props) => {
15849
15851
 
15850
15852
  // Copyright (c) Microsoft Corporation.
15851
15853
  // Licensed under the MIT license.
15852
- var __awaiter$8 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
15854
+ var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
15853
15855
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15854
15856
  return new (P || (P = Promise))(function (resolve, reject) {
15855
15857
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -15883,7 +15885,7 @@ const PeoplePaneContent = (props) => {
15883
15885
  setDrawerMenuItems
15884
15886
  ]);
15885
15887
  const participantListProps = React.useMemo(() => {
15886
- const onRemoveAParticipant = (participantId) => __awaiter$8(void 0, void 0, void 0, function* () { return onRemoveParticipant(participantId); });
15888
+ const onRemoveAParticipant = (participantId) => __awaiter$9(void 0, void 0, void 0, function* () { return onRemoveParticipant(participantId); });
15887
15889
  return Object.assign(Object.assign({}, participantListDefaultProps), {
15888
15890
  // Passing undefined callback for mobile to avoid context menus for participants in ParticipantList are clicked
15889
15891
  onRemoveParticipant: props.mobileView ? undefined : onRemoveAParticipant,
@@ -16075,7 +16077,7 @@ const useMinMaxDragPosition = (modalLayerHostId, rtl) => {
16075
16077
  return { minDragPosition: minDragPosition, maxDragPosition: maxDragPosition };
16076
16078
  };
16077
16079
 
16078
- var __awaiter$7 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16080
+ var __awaiter$8 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16079
16081
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16080
16082
  return new (P || (P = Promise))(function (resolve, reject) {
16081
16083
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -16105,11 +16107,11 @@ const CallPane = (props) => {
16105
16107
  /**
16106
16108
  * In a Call Composite when a participant is removed, we must remove them from the call.
16107
16109
  */
16108
- const removeParticipantFromCall = (participantId) => __awaiter$7(void 0, void 0, void 0, function* () {
16110
+ const removeParticipantFromCall = (participantId) => __awaiter$8(void 0, void 0, void 0, function* () {
16109
16111
  yield props.callAdapter.removeParticipant(participantId);
16110
16112
  });
16111
16113
  /* @conditional-compile-remove(PSTN-calls) */
16112
- const addParticipantToCall = (participant, options) => __awaiter$7(void 0, void 0, void 0, function* () {
16114
+ const addParticipantToCall = (participant, options) => __awaiter$8(void 0, void 0, void 0, function* () {
16113
16115
  yield props.callAdapter.addParticipant(participant, options);
16114
16116
  });
16115
16117
  const minMaxDragPosition = useMinMaxDragPosition(props.modalLayerHostId, props.rtl);
@@ -16818,7 +16820,7 @@ const localPreviewTileStyle = {
16818
16820
 
16819
16821
  // Copyright (c) Microsoft Corporation.
16820
16822
  // Licensed under the MIT license.
16821
- var __awaiter$6 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16823
+ var __awaiter$7 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
16822
16824
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16823
16825
  return new (P || (P = Promise))(function (resolve, reject) {
16824
16826
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -16838,7 +16840,7 @@ const LocalPreview = (props) => {
16838
16840
  const { audio: microphonePermissionGranted, video: cameraPermissionGranted } = useSelector$1(devicePermissionSelector);
16839
16841
  const isLocalMicrophoneEnabled = useSelector$1(getLocalMicrophoneEnabled);
16840
16842
  const adapter = useAdapter();
16841
- const onToggleMic = React.useCallback(() => __awaiter$6(void 0, void 0, void 0, function* () {
16843
+ const onToggleMic = React.useCallback(() => __awaiter$7(void 0, void 0, void 0, function* () {
16842
16844
  isLocalMicrophoneEnabled ? adapter.mute() : adapter.unmute();
16843
16845
  }), [adapter, isLocalMicrophoneEnabled]);
16844
16846
  const theme = useTheme();
@@ -16977,6 +16979,15 @@ const ConfigurationPage = (props) => {
16977
16979
  const errorBarProps = usePropsFor$1(ErrorBar);
16978
16980
  const adapter = useAdapter();
16979
16981
  const deviceState = adapter.getState().devices;
16982
+ let disableStartCallButton = !microphonePermissionGranted || ((_a = deviceState.microphones) === null || _a === void 0 ? void 0 : _a.length) === 0;
16983
+ /* @conditional-compile-remove(rooms) */
16984
+ const rolePermissions = _usePermissions();
16985
+ /* @conditional-compile-remove(rooms) */
16986
+ if (!rolePermissions.microphoneButton) {
16987
+ // If user's role permissions do not allow access to the microphone button then DO NOT disable the start call button
16988
+ // because microphone device permission is not needed for the user's role
16989
+ disableStartCallButton = false;
16990
+ }
16980
16991
  const locale = useLocale();
16981
16992
  const title = (React__default['default'].createElement(react.Stack.Item, { className: mobileView ? titleContainerStyleMobile : titleContainerStyleDesktop }, locale.strings.call.configurationPageTitle));
16982
16993
  const callDescription = locale.strings.call.configurationPageCallDetails && (React__default['default'].createElement(react.Stack.Item, { className: mobileView ? callDetailsStyleMobile : callDetailsStyleDesktop }, locale.strings.call.configurationPageCallDetails));
@@ -16995,7 +17006,7 @@ const ConfigurationPage = (props) => {
16995
17006
  callDescription),
16996
17007
  React__default['default'].createElement(LocalDeviceSettings, Object.assign({}, options, localDeviceSettingsHandlers, { cameraPermissionGranted: cameraPermissionGranted, microphonePermissionGranted: microphonePermissionGranted })))),
16997
17008
  React__default['default'].createElement(react.Stack, { styles: mobileView ? startCallButtonContainerStyleMobile : startCallButtonContainerStyleDesktop },
16998
- React__default['default'].createElement(StartCallButton, { className: mobileView ? startCallButtonStyleMobile : undefined, onClick: startCallHandler, disabled: !microphonePermissionGranted || ((_a = deviceState.microphones) === null || _a === void 0 ? void 0 : _a.length) === 0 }))))));
17009
+ React__default['default'].createElement(StartCallButton, { className: mobileView ? startCallButtonStyleMobile : undefined, onClick: startCallHandler, disabled: disableStartCallButton }))))));
16999
17010
  };
17000
17011
 
17001
17012
  // Copyright (c) Microsoft Corporation.
@@ -17148,6 +17159,11 @@ const resumeButtonStyles = {
17148
17159
  fontWeight: 400,
17149
17160
  display: 'flex',
17150
17161
  fontSize: _pxToRem(14)
17162
+ },
17163
+ labelDisabled: {
17164
+ fontWeight: 400,
17165
+ display: 'flex',
17166
+ fontSize: _pxToRem(14)
17151
17167
  }
17152
17168
  };
17153
17169
  /**
@@ -17205,6 +17221,16 @@ const holdPaneContentStyles = {
17205
17221
  };
17206
17222
 
17207
17223
  // Copyright (c) Microsoft Corporation.
17224
+ // Licensed under the MIT license.
17225
+ var __awaiter$6 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
17226
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17227
+ return new (P || (P = Promise))(function (resolve, reject) {
17228
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17229
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17230
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17231
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
17232
+ });
17233
+ };
17208
17234
  /**
17209
17235
  * Hold pane to display when the user places themselves on hold
17210
17236
  *
@@ -17218,6 +17244,7 @@ const HoldPane = () => {
17218
17244
  const [time, setTime] = React.useState(0);
17219
17245
  const elapsedTime = getReadableTime(time);
17220
17246
  const startTime = React.useRef(performance.now());
17247
+ const [resumingCall, setResumingCall] = React.useState(false);
17221
17248
  React__default['default'].useEffect(() => {
17222
17249
  const interval = setInterval(() => {
17223
17250
  setTime(performance.now() - startTime.current);
@@ -17226,14 +17253,24 @@ const HoldPane = () => {
17226
17253
  clearInterval(interval);
17227
17254
  };
17228
17255
  }, [startTime]);
17256
+ const resumeSpinner = () => {
17257
+ return React__default['default'].createElement(react.Spinner, { label: strings.resumingCallButtonLabel, labelPosition: 'right' });
17258
+ };
17229
17259
  return (React__default['default'].createElement(react.Stack, { styles: paneStyles },
17230
17260
  React__default['default'].createElement(react.Stack, { horizontal: true, styles: holdPaneContentStyles },
17231
17261
  React__default['default'].createElement(react.Text, { styles: holdPaneTimerStyles }, elapsedTime),
17232
17262
  React__default['default'].createElement(react.Text, { styles: holdPaneLabelStyles }, strings.holdScreenLabel),
17233
- React__default['default'].createElement(react.PrimaryButton, { text: strings.resumeCallButtonLabel, ariaLabel: strings.resumeCallButtonAriaLabel, styles: resumeButtonStyles, onClick: () => {
17234
- /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
17235
- holdButtonProps.onToggleHold();
17236
- }, "data-ui-id": "hold-page-resume-call-button" }))));
17263
+ React__default['default'].createElement(react.PrimaryButton, { text: !resumingCall ? strings.resumeCallButtonLabel : undefined, ariaLabel: !resumingCall ? strings.resumeCallButtonAriaLabel : strings.resumingCallButtonAriaLabel, styles: resumeButtonStyles, disabled: resumingCall, onClick: () => __awaiter$6(void 0, void 0, void 0, function* () {
17264
+ setResumingCall(true);
17265
+ try {
17266
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
17267
+ yield holdButtonProps.onToggleHold();
17268
+ }
17269
+ catch (e) {
17270
+ setResumingCall(false);
17271
+ throw e;
17272
+ }
17273
+ }), "data-ui-id": "hold-page-resume-call-button" }, resumingCall && resumeSpinner()))));
17237
17274
  };
17238
17275
  const getMinutes = (time) => {
17239
17276
  return Math.floor(getSeconds(time) / 60);
@@ -17258,7 +17295,9 @@ const stringsTrampoline = (locale) => {
17258
17295
  return {
17259
17296
  holdScreenLabel: locale.strings.call.holdScreenLabel,
17260
17297
  resumeCallButtonLabel: locale.strings.call.resumeCallButtonLabel,
17261
- resumeCallButtonAriaLabel: locale.strings.call.resumeCallButtonAriaLabel
17298
+ resumeCallButtonAriaLabel: locale.strings.call.resumeCallButtonAriaLabel,
17299
+ resumingCallButtonLabel: locale.strings.call.resumingCallButtonLabel,
17300
+ resumingCallButtonAriaLabel: locale.strings.call.resumingCallButtonAriaLabel
17262
17301
  };
17263
17302
  };
17264
17303
 
@@ -17720,7 +17759,7 @@ class AzureCommunicationCallAdapter {
17720
17759
  });
17721
17760
  }
17722
17761
  _joinCall(audioOptions, videoOptions) {
17723
- const isTeamsMeeting = 'teamsLink' in this.locator;
17762
+ const isTeamsMeeting = 'meetingLink' in this.locator;
17724
17763
  /* @conditional-compile-remove(rooms) */
17725
17764
  const isRoomsCall = 'roomId' in this.locator;
17726
17765
  if (isTeamsMeeting) {