@azure/communication-react 1.27.0-alpha-202505010020 → 1.27.0-alpha-202505030017

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 (99) hide show
  1. package/dist/communication-react.d.ts +2 -8
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-heshKufx.js → ChatMessageComponentAsRichTextEditBox-dgH1lZ3e.js} +2 -2
  3. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-heshKufx.js.map → ChatMessageComponentAsRichTextEditBox-dgH1lZ3e.js.map} +1 -1
  4. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-U9Kb5aXn.js → RichTextSendBoxWrapper-AlatcZfr.js} +2 -2
  5. package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-U9Kb5aXn.js.map → RichTextSendBoxWrapper-AlatcZfr.js.map} +1 -1
  6. package/dist/dist-cjs/communication-react/{index-l-iOzYiT.js → index-C3FKODFv.js} +92 -168
  7. package/dist/dist-cjs/communication-react/index-C3FKODFv.js.map +1 -0
  8. package/dist/dist-cjs/communication-react/index.js +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  11. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +6 -0
  12. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +7 -2
  13. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +12 -33
  15. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
  16. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +0 -2
  17. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  18. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +2 -0
  19. package/dist/dist-esm/calling-component-bindings/src/index.js +1 -0
  20. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  21. package/dist/dist-esm/calling-component-bindings/src/remoteParticipantsSelector.d.ts +15 -0
  22. package/dist/dist-esm/calling-component-bindings/src/remoteParticipantsSelector.js +13 -0
  23. package/dist/dist-esm/calling-component-bindings/src/remoteParticipantsSelector.js.map +1 -0
  24. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +9 -0
  25. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +16 -0
  26. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  27. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  28. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +0 -5
  29. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  30. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +0 -2
  31. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  32. package/dist/dist-esm/calling-stateful-client/src/Converter.js +0 -2
  33. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  34. package/dist/dist-esm/calling-stateful-client/src/RealTimeTextSubscriber.js +0 -1
  35. package/dist/dist-esm/calling-stateful-client/src/RealTimeTextSubscriber.js.map +1 -1
  36. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  37. package/dist/dist-esm/communication-react/src/index.js +0 -3
  38. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +12 -42
  40. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  41. package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.js +0 -5
  42. package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.js.map +1 -1
  43. package/dist/dist-esm/react-components/src/components/RealTimeText.js +0 -5
  44. package/dist/dist-esm/react-components/src/components/RealTimeText.js.map +1 -1
  45. package/dist/dist-esm/react-components/src/components/RealTimeTextModal.js +0 -6
  46. package/dist/dist-esm/react-components/src/components/RealTimeTextModal.js.map +1 -1
  47. package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.js +0 -5
  48. package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.js.map +1 -1
  49. package/dist/dist-esm/react-components/src/components/index.js +0 -4
  50. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  51. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +0 -6
  52. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
  53. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +1 -1
  54. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  55. package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.js +0 -2
  56. package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.js.map +1 -1
  57. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +4 -0
  58. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
  59. package/dist/dist-esm/react-components/src/components/utils/sortCaptionsAndRealTimeTexts.js +0 -1
  60. package/dist/dist-esm/react-components/src/components/utils/sortCaptionsAndRealTimeTexts.js.map +1 -1
  61. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  62. package/dist/dist-esm/react-components/src/theming/icons.js +0 -4
  63. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  64. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  65. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +0 -5
  66. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  67. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  68. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  69. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +3 -19
  70. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  71. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +0 -1
  72. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  73. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  74. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -2
  75. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  76. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +3 -1
  77. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  78. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +15 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  80. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +0 -4
  81. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  82. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +1 -1
  83. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  84. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +0 -1
  85. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  86. package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.js +1 -13
  87. package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.js.map +1 -1
  88. package/dist/dist-esm/react-composites/src/composites/common/CallingRealTimeTextModal.js +0 -4
  89. package/dist/dist-esm/react-composites/src/composites/common/CallingRealTimeTextModal.js.map +1 -1
  90. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +3 -14
  91. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  92. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +0 -3
  93. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  94. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +1 -10
  95. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  96. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  97. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -7
  98. package/package.json +1 -1
  99. package/dist/dist-cjs/communication-react/index-l-iOzYiT.js.map +0 -1
@@ -187,7 +187,7 @@ function getDefaultExportFromCjs (x) {
187
187
  // Copyright (c) Microsoft Corporation.
188
188
  // Licensed under the MIT License.
189
189
  // GENERATED FILE. DO NOT EDIT MANUALLY.
190
- var telemetryVersion = '1.27.0-alpha-202505010020';
190
+ var telemetryVersion = '1.27.0-alpha-202505030017';
191
191
 
192
192
 
193
193
  var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
@@ -474,6 +474,13 @@ const getRemoteParticipants$1 = (state, props) => {
474
474
  var _a;
475
475
  return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.remoteParticipants;
476
476
  };
477
+ /**
478
+ * @private
479
+ */
480
+ const getRemoteParticipantsEnded = (state, props) => {
481
+ var _a;
482
+ return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.remoteParticipantsEnded;
483
+ };
477
484
  /**
478
485
  * @private
479
486
  */
@@ -618,13 +625,11 @@ const getAssignedBreakoutRoom$1 = (state, props) => {
618
625
  var _a, _b;
619
626
  return (_b = (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.breakoutRooms) === null || _b === void 0 ? void 0 : _b.assignedBreakoutRoom;
620
627
  };
621
- /* @conditional-compile-remove(rtt) */
622
628
  /** @private */
623
629
  const getRealTimeTextStatus = (state, props) => {
624
630
  var _a;
625
631
  return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.realTimeTextFeature.isRealTimeTextFeatureActive;
626
632
  };
627
- /* @conditional-compile-remove(rtt) */
628
633
  /** @private */
629
634
  const getRealTimeText = (state, props) => {
630
635
  var _a;
@@ -702,6 +707,22 @@ const _updateUserDisplayNames = (participants) => {
702
707
  return [];
703
708
  }
704
709
  };
710
+ /**
711
+ * Get the display name of a participant for given userId
712
+ *
713
+ * @internal
714
+ *
715
+ */
716
+ const getRemoteParticipantDisplayName = (participantUserId, remoteParticipants) => {
717
+ let displayName;
718
+ if (remoteParticipants) {
719
+ const participant = remoteParticipants[participantUserId];
720
+ if (participant) {
721
+ displayName = participant.displayName;
722
+ }
723
+ }
724
+ return displayName;
725
+ };
705
726
  const memoizedUpdateDisplayName = memoizeFnAll((participantId, participant) => {
706
727
  if (communicationCommon.isPhoneNumberIdentifier(participant.identifier)) {
707
728
  return Object.assign(Object.assign({}, participant), { displayName: participant.identifier.phoneNumber });
@@ -1319,7 +1340,6 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1319
1340
  const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
1320
1341
  yield captionsFeature.setCaptionLanguage(language);
1321
1342
  });
1322
- /* @conditional-compile-remove(rtt) */
1323
1343
  const onSendRealTimeText = (text, isFinalized) => __awaiter$13(void 0, void 0, void 0, function* () {
1324
1344
  const realTimeTextFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RealTimeText);
1325
1345
  yield (realTimeTextFeature === null || realTimeTextFeature === void 0 ? void 0 : realTimeTextFeature.sendRealTimeText(text, isFinalized));
@@ -1511,7 +1531,6 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
1511
1531
  onPermitVideo,
1512
1532
  onForbidOthersVideo,
1513
1533
  onPermitOthersVideo,
1514
- /* @conditional-compile-remove(rtt) */
1515
1534
  onSendRealTimeText
1516
1535
  };
1517
1536
  });
@@ -1922,6 +1941,17 @@ const incomingCallStackSelector = reselect.createSelector([getIncomingCalls, get
1922
1941
  };
1923
1942
  });
1924
1943
 
1944
+ // Copyright (c) Microsoft Corporation.
1945
+ // Licensed under the MIT License.
1946
+ /**
1947
+ * Selector for all remote participants in a call, active and inactive.
1948
+ * @public
1949
+ */
1950
+ const allRemoteParticipantsSelector = reselect__namespace.createSelector([getRemoteParticipants$1, getRemoteParticipantsEnded], (remoteParticipants, remoteParticipantsEnded) => {
1951
+ // Combine remoteParticipants and remoteParticipantsEnded into a single object
1952
+ return Object.assign(Object.assign({}, remoteParticipants), remoteParticipantsEnded);
1953
+ });
1954
+
1925
1955
  // Copyright (c) Microsoft Corporation.
1926
1956
  // Licensed under the MIT License.
1927
1957
  /**
@@ -1963,20 +1993,14 @@ const captionSettingsSelector = reselect__namespace.createSelector([
1963
1993
  */
1964
1994
  const captionsBannerSelector = reselect__namespace.createSelector([
1965
1995
  getCaptions,
1966
- /* @conditional-compile-remove(rtt) */
1967
1996
  getRealTimeText,
1968
1997
  getCaptionsStatus$1,
1969
- /* @conditional-compile-remove(rtt) */
1970
1998
  getRealTimeTextStatus,
1971
1999
  getStartCaptionsInProgress,
1972
- getRemoteParticipants$1,
2000
+ allRemoteParticipantsSelector,
1973
2001
  getDisplayName$2,
1974
2002
  getIdentifier
1975
- ], (captions,
1976
- /* @conditional-compile-remove(rtt) */
1977
- realTimeTexts, isCaptionsFeatureActive,
1978
- /* @conditional-compile-remove(rtt) */
1979
- isRealTimeTextActive, startCaptionsInProgress, remoteParticipants, displayName, identifier) => {
2003
+ ], (captions, realTimeTexts, isCaptionsFeatureActive, isRealTimeTextActive, startCaptionsInProgress, allRemoteParticipants, displayName, identifier) => {
1980
2004
  var _a, _b;
1981
2005
  const captionsInfo = captions === null || captions === void 0 ? void 0 : captions.map((c, index) => {
1982
2006
  const userId = getCaptionsSpeakerIdentifier(c);
@@ -1984,11 +2008,8 @@ isRealTimeTextActive, startCaptionsInProgress, remoteParticipants, displayName,
1984
2008
  if (userId === identifier) {
1985
2009
  finalDisplayName = displayName;
1986
2010
  }
1987
- else if (remoteParticipants) {
1988
- const participant = remoteParticipants[userId];
1989
- if (participant) {
1990
- finalDisplayName = participant.displayName;
1991
- }
2011
+ else {
2012
+ finalDisplayName = getRemoteParticipantDisplayName(userId, allRemoteParticipants);
1992
2013
  }
1993
2014
  return {
1994
2015
  id: (finalDisplayName !== null && finalDisplayName !== void 0 ? finalDisplayName : 'Unnamed Participant') + index,
@@ -1998,12 +2019,11 @@ isRealTimeTextActive, startCaptionsInProgress, remoteParticipants, displayName,
1998
2019
  createdTimeStamp: c.timestamp
1999
2020
  };
2000
2021
  });
2001
- /* @conditional-compile-remove(rtt) */
2002
2022
  const completedRealTimeTexts = (_a = realTimeTexts === null || realTimeTexts === void 0 ? void 0 : realTimeTexts.completedMessages) === null || _a === void 0 ? void 0 : _a.filter((rtt) => rtt.message !== '').map((rtt) => {
2003
2023
  const userId = getRealTimeTextSpeakerIdentifier(rtt);
2004
2024
  return {
2005
2025
  id: rtt.sequenceId,
2006
- displayName: getRealTimeTextDisplayName(rtt, identifier, remoteParticipants, displayName, userId),
2026
+ displayName: getRealTimeTextDisplayName(rtt, identifier, allRemoteParticipants, displayName, userId),
2007
2027
  message: rtt.message,
2008
2028
  userId,
2009
2029
  isTyping: rtt.resultType === 'Partial',
@@ -2011,12 +2031,11 @@ isRealTimeTextActive, startCaptionsInProgress, remoteParticipants, displayName,
2011
2031
  finalizedTimeStamp: rtt.updatedTimestamp
2012
2032
  };
2013
2033
  });
2014
- /* @conditional-compile-remove(rtt) */
2015
2034
  const inProgressRealTimeTexts = (_b = realTimeTexts === null || realTimeTexts === void 0 ? void 0 : realTimeTexts.currentInProgress) === null || _b === void 0 ? void 0 : _b.filter((rtt) => rtt.message !== '').map((rtt) => {
2016
2035
  const userId = getRealTimeTextSpeakerIdentifier(rtt);
2017
2036
  return {
2018
2037
  id: rtt.sequenceId,
2019
- displayName: getRealTimeTextDisplayName(rtt, identifier, remoteParticipants, displayName, userId),
2038
+ displayName: getRealTimeTextDisplayName(rtt, identifier, allRemoteParticipants, displayName, userId),
2020
2039
  message: rtt.message,
2021
2040
  userId,
2022
2041
  isTyping: rtt.resultType === 'Partial',
@@ -2024,7 +2043,6 @@ isRealTimeTextActive, startCaptionsInProgress, remoteParticipants, displayName,
2024
2043
  finalizedTimeStamp: rtt.updatedTimestamp
2025
2044
  };
2026
2045
  });
2027
- /* @conditional-compile-remove(rtt) */
2028
2046
  const myInProgress = (realTimeTexts === null || realTimeTexts === void 0 ? void 0 : realTimeTexts.myInProgress) && realTimeTexts.myInProgress.message !== ''
2029
2047
  ? {
2030
2048
  id: realTimeTexts.myInProgress.sequenceId,
@@ -2036,10 +2054,8 @@ isRealTimeTextActive, startCaptionsInProgress, remoteParticipants, displayName,
2036
2054
  finalizedTimeStamp: realTimeTexts.myInProgress.updatedTimestamp
2037
2055
  }
2038
2056
  : undefined;
2039
- /* @conditional-compile-remove(rtt) */
2040
2057
  // find the last final local real time text caption if myInProgress is not available
2041
2058
  let latestLocalRealTimeText;
2042
- /* @conditional-compile-remove(rtt) */
2043
2059
  if (!myInProgress) {
2044
2060
  latestLocalRealTimeText =
2045
2061
  realTimeTexts &&
@@ -2051,7 +2067,6 @@ isRealTimeTextActive, startCaptionsInProgress, remoteParticipants, displayName,
2051
2067
  }
2052
2068
  return {
2053
2069
  captions: captionsInfo !== null && captionsInfo !== void 0 ? captionsInfo : [],
2054
- /* @conditional-compile-remove(rtt) */
2055
2070
  realTimeTexts: {
2056
2071
  completedMessages: completedRealTimeTexts,
2057
2072
  currentInProgress: inProgressRealTimeTexts,
@@ -2059,30 +2074,23 @@ isRealTimeTextActive, startCaptionsInProgress, remoteParticipants, displayName,
2059
2074
  },
2060
2075
  isCaptionsOn: isCaptionsFeatureActive !== null && isCaptionsFeatureActive !== void 0 ? isCaptionsFeatureActive : false,
2061
2076
  startCaptionsInProgress: startCaptionsInProgress !== null && startCaptionsInProgress !== void 0 ? startCaptionsInProgress : false,
2062
- /* @conditional-compile-remove(rtt) */
2063
2077
  isRealTimeTextOn: isRealTimeTextActive !== null && isRealTimeTextActive !== void 0 ? isRealTimeTextActive : false,
2064
- /* @conditional-compile-remove(rtt) */
2065
2078
  latestLocalRealTimeText: (myInProgress !== null && myInProgress !== void 0 ? myInProgress : latestLocalRealTimeText)
2066
2079
  };
2067
2080
  });
2068
2081
  const getCaptionsSpeakerIdentifier = (captions) => {
2069
2082
  return captions.speaker.identifier ? toFlatCommunicationIdentifier(captions.speaker.identifier) : '';
2070
2083
  };
2071
- /* @conditional-compile-remove(rtt) */
2072
2084
  const getRealTimeTextSpeakerIdentifier = (realTimeText) => {
2073
2085
  return realTimeText.sender.identifier ? toFlatCommunicationIdentifier(realTimeText.sender.identifier) : '';
2074
2086
  };
2075
- /* @conditional-compile-remove(rtt) */
2076
- const getRealTimeTextDisplayName = (realTimeText, identifier, remoteParticipants, displayName, userId) => {
2087
+ const getRealTimeTextDisplayName = (realTimeText, identifier, allRemoteParticipants, displayName, userId) => {
2077
2088
  let finalDisplayName;
2078
2089
  if (userId === identifier) {
2079
2090
  finalDisplayName = displayName;
2080
2091
  }
2081
- else if (remoteParticipants) {
2082
- const participant = remoteParticipants[userId];
2083
- if (participant) {
2084
- finalDisplayName = participant.displayName;
2085
- }
2092
+ else {
2093
+ finalDisplayName = getRemoteParticipantDisplayName(userId, allRemoteParticipants);
2086
2094
  }
2087
2095
  return finalDisplayName !== null && finalDisplayName !== void 0 ? finalDisplayName : 'Unnamed Participant';
2088
2096
  };
@@ -2496,7 +2504,6 @@ function convertSdkCallToDeclarativeCall(call) {
2496
2504
  startCaptionsInProgress: false,
2497
2505
  captionsKind: _isTeamsCall(call) ? 'TeamsCaptions' : 'Captions'
2498
2506
  },
2499
- /* @conditional-compile-remove(rtt) */
2500
2507
  realTimeTextFeature: {
2501
2508
  realTimeTexts: {},
2502
2509
  isRealTimeTextFeatureActive: false
@@ -2559,7 +2566,6 @@ function convertFromTeamsSDKToCaptionInfoState(caption) {
2559
2566
  function convertFromSDKToCaptionInfoState(caption) {
2560
2567
  return Object.assign({ captionText: caption.spokenText }, caption);
2561
2568
  }
2562
- /* @conditional-compile-remove(rtt) */
2563
2569
  /**
2564
2570
  * @private
2565
2571
  */
@@ -3652,7 +3658,6 @@ let CallContext$2 = class CallContext {
3652
3658
  this._atomicId++;
3653
3659
  return id;
3654
3660
  }
3655
- /* @conditional-compile-remove(rtt) */
3656
3661
  processNewRealTimeText(realTimeTexts, newRealTimeText) {
3657
3662
  var _a, _b, _c, _d, _e;
3658
3663
  // if the new message is final, push it to completed messages
@@ -3704,7 +3709,6 @@ let CallContext$2 = class CallContext {
3704
3709
  realTimeTexts.completedMessages.shift();
3705
3710
  }
3706
3711
  }
3707
- /* @conditional-compile-remove(rtt) */
3708
3712
  findTimeoutRealTimeText(inProgressRealTimeTexts, completedRealTimeTexts) {
3709
3713
  // if inProgressRealTimeTexts is an array
3710
3714
  if (inProgressRealTimeTexts && Array.isArray(inProgressRealTimeTexts)) {
@@ -3793,7 +3797,6 @@ let CallContext$2 = class CallContext {
3793
3797
  }
3794
3798
  });
3795
3799
  }
3796
- /* @conditional-compile-remove(rtt) */
3797
3800
  addRealTimeText(callId, realTimeText) {
3798
3801
  this.modifyState((draft) => {
3799
3802
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -3826,7 +3829,6 @@ let CallContext$2 = class CallContext {
3826
3829
  }
3827
3830
  });
3828
3831
  }
3829
- /* @conditional-compile-remove(rtt) */
3830
3832
  setIsRealTimeTextActive(callId, isRealTimeTextActive) {
3831
3833
  this.modifyState((draft) => {
3832
3834
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -5648,7 +5650,6 @@ class MediaAccessSubscriber {
5648
5650
 
5649
5651
  // Copyright (c) Microsoft Corporation.
5650
5652
  // Licensed under the MIT License.
5651
- /* @conditional-compile-remove(rtt) */
5652
5653
  /**
5653
5654
  * @private
5654
5655
  */
@@ -5755,7 +5756,6 @@ class CallSubscriber {
5755
5756
  this._optimalVideoCountSubscriber.unsubscribe();
5756
5757
  this._pptLiveSubscriber.unsubscribe();
5757
5758
  (_b = this._CaptionsFeatureSubscriber) === null || _b === void 0 ? void 0 : _b.unsubscribe();
5758
- /* @conditional-compile-remove(rtt) */
5759
5759
  if (this._realTimeTextSubscriber) {
5760
5760
  this._realTimeTextSubscriber.unsubscribe();
5761
5761
  }
@@ -8948,11 +8948,8 @@ const DEFAULT_COMPONENT_ICONS = {
8948
8948
  IncomingCallNotificationAcceptWithVideoIcon: React.createElement(reactIcons.Video20Filled, null),
8949
8949
  /* @conditional-compile-remove(together-mode) */
8950
8950
  NotificationBarTogetherModeIcon: React.createElement(reactIcons.PeopleAudience20Regular, null),
8951
- /* @conditional-compile-remove(rtt) */
8952
8951
  RealTimeTextIcon: React.createElement(reactIcons.SlideTextCall20Regular, null),
8953
- /* @conditional-compile-remove(rtt) */
8954
8952
  ExpandIcon: React.createElement(reactIcons.ArrowMaximize20Regular, null),
8955
- /* @conditional-compile-remove(rtt) */
8956
8953
  MinimizeIcon: React.createElement(reactIcons.ArrowMinimize20Regular, null)
8957
8954
  };
8958
8955
 
@@ -8978,7 +8975,7 @@ const inputBoxStyle = react.mergeStyles({
8978
8975
  height: '2.25rem',
8979
8976
  lineHeight: '1.5rem',
8980
8977
  '::-webkit-input-placeholder': {
8981
- fontSize: '0.875rem'
8978
+ fontSize: '1rem' // Prevents screen zooming on iOS
8982
8979
  },
8983
8980
  '::-moz-placeholder': {
8984
8981
  fontSize: '0.875rem'
@@ -12104,6 +12101,10 @@ const ImageOverlay = (props) => {
12104
12101
  const richTextEditorStyle = (props) => {
12105
12102
  return react.mergeStyles({
12106
12103
  border: 'none',
12104
+ fontSize: '0.875rem',
12105
+ '::-webkit-input-placeholder': {
12106
+ fontSize: '1rem' // Prevents screen zooming on iOS
12107
+ },
12107
12108
  overflow: 'auto',
12108
12109
  outline: 'none',
12109
12110
  minHeight: props.minHeight,
@@ -16379,7 +16380,7 @@ class _ErrorBoundary extends React.Component {
16379
16380
  // Copyright (c) Microsoft Corporation.
16380
16381
  // Licensed under the MIT License.
16381
16382
  /* @conditional-compile-remove(rich-text-editor) */
16382
- const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-heshKufx.js'); }));
16383
+ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-dgH1lZ3e.js'); }));
16383
16384
  /**
16384
16385
  * @private
16385
16386
  * Use this function to load RoosterJS dependencies early in the lifecycle.
@@ -16387,7 +16388,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
16387
16388
  *
16388
16389
  * @conditional-compile-remove(rich-text-editor)
16389
16390
  */
16390
- const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-heshKufx.js'); });
16391
+ const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-dgH1lZ3e.js'); });
16391
16392
  /**
16392
16393
  * @private
16393
16394
  */
@@ -25879,14 +25880,12 @@ const displayNameClassName = react.mergeStyles({
25879
25880
  fontSize: _pxToRem(12),
25880
25881
  lineHeight: _pxToRem(16)
25881
25882
  });
25882
- /* @conditional-compile-remove(rtt) */
25883
25883
  /**
25884
25884
  * @private
25885
25885
  */
25886
25886
  const bannerTitleContainerClassName = react.mergeStyles({
25887
25887
  paddingBottom: _pxToRem(10)
25888
25888
  });
25889
- /* @conditional-compile-remove(rtt) */
25890
25889
  /**
25891
25890
  * @private
25892
25891
  */
@@ -25903,7 +25902,6 @@ const isTypingClassName = (theme) => {
25903
25902
  lineHeight: _pxToRem(16)
25904
25903
  });
25905
25904
  };
25906
- /* @conditional-compile-remove(rtt) */
25907
25905
  /**
25908
25906
  * @private
25909
25907
  */
@@ -25912,7 +25910,6 @@ const rttContainerClassName = (theme, isTyping) => {
25912
25910
  borderLeft: isTyping ? `2px solid ${theme.palette.themeLighter}` : 'none'
25913
25911
  });
25914
25912
  };
25915
- /* @conditional-compile-remove(rtt) */
25916
25913
  /**
25917
25914
  * @private
25918
25915
  */
@@ -25922,7 +25919,6 @@ const rttDisclosureBannerClassName = () => {
25922
25919
  paddingTop: '0.5rem'
25923
25920
  });
25924
25921
  };
25925
- /* @conditional-compile-remove(rtt) */
25926
25922
  /**
25927
25923
  * @private
25928
25924
  */
@@ -25935,7 +25931,6 @@ const realTimeTextInputBoxStyles = (theme) => ({
25935
25931
  borderColor: theme.palette.neutralQuaternaryAlt
25936
25932
  }
25937
25933
  });
25938
- /* @conditional-compile-remove(rtt) */
25939
25934
  /**
25940
25935
  * @private
25941
25936
  */
@@ -26075,8 +26070,6 @@ const _Caption = (props) => {
26075
26070
 
26076
26071
  // Copyright (c) Microsoft Corporation.
26077
26072
  // Licensed under the MIT License.
26078
- /* @conditional-compile-remove(rtt) */
26079
- /* @conditional-compile-remove(rtt) */
26080
26073
  /**
26081
26074
  * @public
26082
26075
  * A component for displaying a single line of RealTimeText
@@ -26225,7 +26218,6 @@ const Notification = (props) => {
26225
26218
 
26226
26219
  // Copyright (c) Microsoft Corporation.
26227
26220
  // Licensed under the MIT License.
26228
- /* @conditional-compile-remove(rtt) */
26229
26221
  /**
26230
26222
  * @private
26231
26223
  */
@@ -26239,7 +26231,6 @@ const rttContainerStyles = (theme) => ({
26239
26231
  backgroundColor: theme.palette.white
26240
26232
  }
26241
26233
  });
26242
- /* @conditional-compile-remove(rtt) */
26243
26234
  /**
26244
26235
  * @private
26245
26236
  */
@@ -26252,8 +26243,6 @@ const rttIconStyles = () => ({
26252
26243
 
26253
26244
  // Copyright (c) Microsoft Corporation.
26254
26245
  // Licensed under the MIT License.
26255
- /* @conditional-compile-remove(rtt) */
26256
- /* @conditional-compile-remove(rtt) */
26257
26246
  /**
26258
26247
  * @private
26259
26248
  * Banner to disclose that RTT is enabled for all participants for the entire duration of the meeting.
@@ -26272,7 +26261,6 @@ const _RTTDisclosureBanner = (props) => {
26272
26261
  }, onClickLink: props.onClickLink, styles: { root: rttContainerStyles(theme) } }));
26273
26262
  };
26274
26263
 
26275
- /* @conditional-compile-remove(rtt) */
26276
26264
  /**
26277
26265
  * Sorts the captions and real time texts based on their timestamp.
26278
26266
  *
@@ -26407,23 +26395,13 @@ const SCROLL_OFFSET_ALLOWANCE = 20;
26407
26395
  */
26408
26396
  const CaptionsBanner = (props) => {
26409
26397
  var _a, _b, _c;
26410
- const { captions,
26411
- /* @conditional-compile-remove(rtt) */
26412
- realTimeTexts, isCaptionsOn, startCaptionsInProgress, onRenderAvatar, formFactor = 'default', captionsOptions,
26413
- /* @conditional-compile-remove(rtt) */
26414
- isRealTimeTextOn,
26415
- /* @conditional-compile-remove(rtt) */
26416
- onSendRealTimeText,
26417
- /* @conditional-compile-remove(rtt) */
26418
- latestLocalRealTimeText } = props;
26398
+ const { captions, realTimeTexts, isCaptionsOn, startCaptionsInProgress, onRenderAvatar, formFactor = 'default', captionsOptions, isRealTimeTextOn, onSendRealTimeText, latestLocalRealTimeText } = props;
26419
26399
  const localeStrings = useLocale$1().strings.captionsBanner;
26420
26400
  const strings = Object.assign(Object.assign({}, localeStrings), props.strings);
26421
26401
  const captionsScrollDivRef = React.useRef(null);
26422
26402
  const [isAtBottomOfScroll, setIsAtBottomOfScroll] = React.useState(true);
26423
26403
  const theme = react.useTheme();
26424
- /* @conditional-compile-remove(rtt) */
26425
26404
  const [expandBannerHeight, setExpandBannerHeight] = React.useState(false);
26426
- /* @conditional-compile-remove(rtt) */
26427
26405
  const getTitle = () => {
26428
26406
  var _a, _b, _c;
26429
26407
  if (isCaptionsOn && isRealTimeTextOn) {
@@ -26437,14 +26415,12 @@ const CaptionsBanner = (props) => {
26437
26415
  }
26438
26416
  return '';
26439
26417
  };
26440
- /* @conditional-compile-remove(rtt) */
26441
26418
  // merge realtimetexts and captions into one array based on timestamp
26442
26419
  // Combine captions and realTimeTexts into one list
26443
26420
  const combinedList = React.useMemo(() => {
26444
26421
  var _a;
26445
26422
  return sortCaptionsAndRealTimeTexts(captions, (_a = realTimeTexts === null || realTimeTexts === void 0 ? void 0 : realTimeTexts.completedMessages) !== null && _a !== void 0 ? _a : []);
26446
26423
  }, [captions, realTimeTexts === null || realTimeTexts === void 0 ? void 0 : realTimeTexts.completedMessages]);
26447
- /* @conditional-compile-remove(rtt) */
26448
26424
  const mergedCaptions = React.useMemo(() => {
26449
26425
  var _a;
26450
26426
  return [...combinedList, ...((_a = realTimeTexts === null || realTimeTexts === void 0 ? void 0 : realTimeTexts.currentInProgress) !== null && _a !== void 0 ? _a : []), realTimeTexts === null || realTimeTexts === void 0 ? void 0 : realTimeTexts.myInProgress].slice(-50);
@@ -26468,23 +26444,20 @@ const CaptionsBanner = (props) => {
26468
26444
  return () => {
26469
26445
  captionsScrollDiv === null || captionsScrollDiv === void 0 ? void 0 : captionsScrollDiv.removeEventListener('scroll', handleScrollToTheBottom);
26470
26446
  };
26471
- }, [handleScrollToTheBottom, isCaptionsOn, /* @conditional-compile-remove(rtt) */ isRealTimeTextOn]);
26447
+ }, [handleScrollToTheBottom, isCaptionsOn, isRealTimeTextOn]);
26472
26448
  React.useEffect(() => {
26473
26449
  // only auto scroll to bottom is already is at bottom of scroll before new caption comes in
26474
26450
  if (isAtBottomOfScroll) {
26475
26451
  scrollToBottom();
26476
26452
  }
26477
- }, [captions, /* @conditional-compile-remove(rtt) */ realTimeTexts, isAtBottomOfScroll]);
26478
- /* @conditional-compile-remove(rtt) */
26453
+ }, [captions, realTimeTexts, isAtBottomOfScroll]);
26479
26454
  const [textFieldValue, setTextFieldValue] = React.useState('');
26480
- /* @conditional-compile-remove(rtt) */
26481
26455
  React.useEffect(() => {
26482
26456
  // if the latest real time text sent by myself is final, clear the text field
26483
26457
  if (latestLocalRealTimeText && !latestLocalRealTimeText.isTyping) {
26484
26458
  setTextFieldValue('');
26485
26459
  }
26486
26460
  }, [latestLocalRealTimeText]);
26487
- /* @conditional-compile-remove(rtt) */
26488
26461
  const handleKeyDown = (event) => {
26489
26462
  if (event.key === 'Enter') {
26490
26463
  event.preventDefault();
@@ -26494,14 +26467,12 @@ const CaptionsBanner = (props) => {
26494
26467
  }
26495
26468
  }
26496
26469
  };
26497
- /* @conditional-compile-remove(rtt) */
26498
26470
  const realTimeTextDisclosureBannerStrings = {
26499
26471
  bannerTitle: (_a = strings.realTimeTextBannerTitle) !== null && _a !== void 0 ? _a : '',
26500
26472
  bannerContent: (_b = strings.realTimeTextBannerContent) !== null && _b !== void 0 ? _b : '',
26501
26473
  bannerLinkLabel: (_c = strings.realTimeTextBannerLinkLabel) !== null && _c !== void 0 ? _c : ''
26502
26474
  };
26503
- const captionsTrampoline = () => {
26504
- /* @conditional-compile-remove(rtt) */
26475
+ const captionsAndRealTimeText = () => {
26505
26476
  return (React.createElement(React.Fragment, null, mergedCaptions
26506
26477
  .filter((caption) => caption)
26507
26478
  .map((caption) => {
@@ -26513,22 +26484,22 @@ const CaptionsBanner = (props) => {
26513
26484
  React.createElement(_Caption, Object.assign({}, caption, { onRenderAvatar: onRenderAvatar }))));
26514
26485
  })));
26515
26486
  };
26516
- return (React.createElement(React.Fragment, null, (startCaptionsInProgress || isCaptionsOn || /* @conditional-compile-remove(rtt) */ isRealTimeTextOn) && (React.createElement(react.FocusZone, { shouldFocusOnMount: true, className: captionsContainerClassName, "data-ui-id": "captions-banner" },
26517
- /* @conditional-compile-remove(rtt) */ (isCaptionsOn || isRealTimeTextOn) && formFactor === 'compact' && (React.createElement(react.Stack, { horizontal: true, horizontalAlign: "space-between", verticalAlign: "center", className: bannerTitleContainerClassName },
26487
+ return (React.createElement(React.Fragment, null, (startCaptionsInProgress || isCaptionsOn || isRealTimeTextOn) && (React.createElement(react.FocusZone, { shouldFocusOnMount: true, className: captionsContainerClassName, "data-ui-id": "captions-banner" },
26488
+ (isCaptionsOn || isRealTimeTextOn) && formFactor === 'compact' && (React.createElement(react.Stack, { horizontal: true, horizontalAlign: "space-between", verticalAlign: "center", className: bannerTitleContainerClassName },
26518
26489
  React.createElement(react.Text, { className: titleClassName$2 }, getTitle()),
26519
26490
  React.createElement(react.IconButton, { "data-ui-id": "captions-banner-expand-icon", iconProps: { iconName: expandBannerHeight ? 'MinimizeIcon' : 'ExpandIcon' }, ariaLabel: expandBannerHeight ? strings.minimizeButtonAriaLabel : strings.expandButtonAriaLabel, onClick: () => setExpandBannerHeight(!expandBannerHeight), styles: expandIconClassName(theme) }))),
26520
- (isCaptionsOn || /* @conditional-compile-remove(rtt) */ isRealTimeTextOn) && (React.createElement("ul", { ref: captionsScrollDivRef, className: (captionsOptions === null || captionsOptions === void 0 ? void 0 : captionsOptions.height) === 'full'
26491
+ (isCaptionsOn || isRealTimeTextOn) && (React.createElement("ul", { ref: captionsScrollDivRef, className: (captionsOptions === null || captionsOptions === void 0 ? void 0 : captionsOptions.height) === 'full'
26521
26492
  ? captionsBannerFullHeightClassName(theme)
26522
- : captionsBannerClassName(formFactor, /* @conditional-compile-remove(rtt) */ expandBannerHeight), "data-ui-id": "captions-banner-inner", "data-is-focusable": true },
26523
- /* @conditional-compile-remove(rtt) */ isRealTimeTextOn && (React.createElement("li", null,
26493
+ : captionsBannerClassName(formFactor, expandBannerHeight), "data-ui-id": "captions-banner-inner", "data-is-focusable": true },
26494
+ isRealTimeTextOn && (React.createElement("li", null,
26524
26495
  React.createElement(react.Stack, { className: rttDisclosureBannerClassName() },
26525
26496
  React.createElement(_RTTDisclosureBanner, { strings: realTimeTextDisclosureBannerStrings })))),
26526
- captionsTrampoline())),
26527
- /* @conditional-compile-remove(rtt) */ isRealTimeTextOn && onSendRealTimeText && (React.createElement(react.TextField, { styles: realTimeTextInputBoxStyles(theme), placeholder: strings.realTimeTextInputBoxDefaultText, value: textFieldValue, onKeyDown: handleKeyDown, onChange: (_, newValue) => {
26497
+ captionsAndRealTimeText())),
26498
+ isRealTimeTextOn && onSendRealTimeText && (React.createElement(react.TextField, { styles: realTimeTextInputBoxStyles(theme), placeholder: strings.realTimeTextInputBoxDefaultText, value: textFieldValue, onKeyDown: handleKeyDown, onChange: (_, newValue) => {
26528
26499
  setTextFieldValue(newValue || '');
26529
26500
  onSendRealTimeText(newValue || '', false);
26530
26501
  }, maxLength: 2000, errorMessage: textFieldValue.length >= 2000 ? strings.realTimeTextInputErrorMessage : undefined })),
26531
- !isCaptionsOn && /* @conditional-compile-remove(rtt) */ !isRealTimeTextOn && (React.createElement(react.Stack, { verticalAlign: "center", styles: (captionsOptions === null || captionsOptions === void 0 ? void 0 : captionsOptions.height) === 'full'
26502
+ !isCaptionsOn && !isRealTimeTextOn && (React.createElement(react.Stack, { verticalAlign: "center", styles: (captionsOptions === null || captionsOptions === void 0 ? void 0 : captionsOptions.height) === 'full'
26532
26503
  ? loadingBannerFullHeightStyles(theme)
26533
26504
  : loadingBannerStyles(formFactor), "data-is-focusable": true },
26534
26505
  React.createElement(react.Spinner, { label: strings === null || strings === void 0 ? void 0 : strings.captionsBannerSpinnerText, ariaLive: "assertive", labelPosition: "right" })))))));
@@ -26795,7 +26766,6 @@ var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments,
26795
26766
  step((generator = generator.apply(thisArg, _arguments || [])).next());
26796
26767
  });
26797
26768
  };
26798
- /* @conditional-compile-remove(rtt) */
26799
26769
  /**
26800
26770
  * @public
26801
26771
  * a component for realTimeText modal
@@ -27190,8 +27160,6 @@ const IncomingCallStack = (props) => {
27190
27160
 
27191
27161
  // Copyright (c) Microsoft Corporation.
27192
27162
  // Licensed under the MIT License.
27193
- /* @conditional-compile-remove(rtt) */
27194
- /* @conditional-compile-remove(rtt) */
27195
27163
  /**
27196
27164
  * a button to start RealTimeText
27197
27165
  * based on accessibility requirement, real time text cannot be turned off once it is on
@@ -32302,7 +32270,7 @@ const AttachmentDownloadErrorBar = (props) => {
32302
32270
  /**
32303
32271
  * Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
32304
32272
  */
32305
- const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-U9Kb5aXn.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
32273
+ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-AlatcZfr.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
32306
32274
  /**
32307
32275
  * @private
32308
32276
  * Use this function to load RoosterJS dependencies early in the lifecycle.
@@ -32310,7 +32278,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function
32310
32278
  *
32311
32279
  /* @conditional-compile-remove(rich-text-editor-composite-support)
32312
32280
  */
32313
- const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-U9Kb5aXn.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
32281
+ const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-AlatcZfr.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
32314
32282
  /**
32315
32283
  * @private
32316
32284
  */
@@ -34332,7 +34300,6 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
34332
34300
  onDisposeTogetherModeStreamView: () => __awaiter$q(void 0, void 0, void 0, function* () {
34333
34301
  return yield adapter.disposeTogetherModeStreamView();
34334
34302
  }),
34335
- /* @conditional-compile-remove(rtt) */
34336
34303
  onSendRealTimeText: (text, isFinalized) => __awaiter$q(void 0, void 0, void 0, function* () {
34337
34304
  return yield adapter.sendRealTimeText(text, isFinalized);
34338
34305
  })
@@ -34585,25 +34552,15 @@ const CallingCaptionsBanner = (props) => {
34585
34552
  const strings = useLocale().strings.call;
34586
34553
  const captionsBannerStrings = {
34587
34554
  captionsBannerSpinnerText: strings.captionsBannerSpinnerText,
34588
- /* @conditional-compile-remove(rtt) */
34589
34555
  realTimeTextInputBoxDefaultText: strings.realTimeTextInputBoxDefaultText,
34590
- /* @conditional-compile-remove(rtt) */
34591
34556
  realTimeTextInputErrorMessage: strings.realTimeTextInputErrorMessage,
34592
- /* @conditional-compile-remove(rtt) */
34593
34557
  realTimeTextBannerContent: strings.realTimeTextBannerContent,
34594
- /* @conditional-compile-remove(rtt) */
34595
34558
  realTimeTextBannerTitle: strings.realTimeTextBannerTitle,
34596
- /* @conditional-compile-remove(rtt) */
34597
34559
  realTimeTextBannerLinkLabel: strings.realTimeTextBannerLinkLabel,
34598
- /* @conditional-compile-remove(rtt) */
34599
34560
  captionsOnlyContainerTitle: strings.captionsOnlyContainerTitle,
34600
- /* @conditional-compile-remove(rtt) */
34601
34561
  realTimeTextOnlyContainerTitle: strings.realTimeTextOnlyContainerTitle,
34602
- /* @conditional-compile-remove(rtt) */
34603
34562
  captionsAndRealTimeTextContainerTitle: strings.captionsAndRealTimeTextContainerTitle,
34604
- /* @conditional-compile-remove(rtt) */
34605
34563
  expandButtonAriaLabel: strings.expandButtonAriaLabel,
34606
- /* @conditional-compile-remove(rtt) */
34607
34564
  minimizeButtonAriaLabel: strings.minimizeButtonAriaLabel
34608
34565
  };
34609
34566
  const onRenderAvatar = React.useCallback((userId, options) => {
@@ -34624,9 +34581,7 @@ const CallingCaptionsBanner = (props) => {
34624
34581
  React.createElement("div", { className: containerClassName, role: "region", "aria-label": strings.liveCaptionsLabel },
34625
34582
  React.createElement(react.Stack, { horizontalAlign: "center" },
34626
34583
  React.createElement(react.Stack.Item, { style: { width: props.isMobile ? mobileViewBannerWidth : desktopViewBannerWidth } },
34627
- React.createElement(CaptionsBanner, Object.assign({ captionsOptions: props.captionsOptions, onRenderAvatar: onRenderAvatar, formFactor: props.isMobile ? 'compact' : 'default', strings: captionsBannerStrings }, captionsBannerProps, {
34628
- /* @conditional-compile-remove(rtt) */
34629
- isRealTimeTextOn: props.isRealTimeTextOn || captionsBannerProps.isRealTimeTextOn })))),
34584
+ React.createElement(CaptionsBanner, Object.assign({ captionsOptions: props.captionsOptions, onRenderAvatar: onRenderAvatar, formFactor: props.isMobile ? 'compact' : 'default', strings: captionsBannerStrings }, captionsBannerProps, { isRealTimeTextOn: props.isRealTimeTextOn || captionsBannerProps.isRealTimeTextOn })))),
34630
34585
  !props.isMobile && captionsBannerProps.isCaptionsOn && (React.createElement("div", { className: floatingChildClassName },
34631
34586
  React.createElement(CaptionsBannerMoreButton, { onCaptionsSettingsClick: onClickCaptionsSettings }))))));
34632
34587
  };
@@ -35645,7 +35600,6 @@ const DesktopMoreButton = (props) => {
35645
35600
  const localeStrings = useLocale();
35646
35601
  const holdButtonProps = usePropsFor$1(HoldButton);
35647
35602
  const startCaptionsButtonProps = usePropsFor$1(StartCaptionsButton);
35648
- /* @conditional-compile-remove(rtt) */
35649
35603
  const realTimeTextProps = usePropsFor$1(CaptionsBanner);
35650
35604
  const startCaptions = React.useCallback(() => __awaiter$m(void 0, void 0, void 0, function* () {
35651
35605
  yield startCaptionsButtonProps.onStartCaptions({
@@ -35759,7 +35713,6 @@ const DesktopMoreButton = (props) => {
35759
35713
  }
35760
35714
  }
35761
35715
  //RTT
35762
- /* @conditional-compile-remove(rtt) */
35763
35716
  if (props.isRealTimeTextSupported) {
35764
35717
  const realTimeTextContextualMenuItems = [];
35765
35718
  const rttDisabled = props.disableButtonsForHoldScreen || realTimeTextProps.isRealTimeTextOn || props.startRealTimeTextButtonChecked;
@@ -36304,8 +36257,6 @@ const timerTextStyle = {
36304
36257
 
36305
36258
  // Copyright (c) Microsoft Corporation.
36306
36259
  // Licensed under the MIT License.
36307
- /* @conditional-compile-remove(rtt) */
36308
- /* @conditional-compile-remove(rtt) */
36309
36260
  /** @private */
36310
36261
  const CallingRealTimeTextModal = (props) => {
36311
36262
  const strings = useLocale().strings.call;
@@ -36362,7 +36313,6 @@ const CommonCallControlBar = (props) => {
36362
36313
  const callWithChatStrings = useCallWithChatCompositeStrings();
36363
36314
  const options = inferCommonCallControlOptions(props.mobileView, props.callControls);
36364
36315
  const [showCaptionsSettingsModal, setShowCaptionsSettingsModal] = React.useState(false);
36365
- /* @conditional-compile-remove(rtt) */
36366
36316
  const [showRealTimeTextModal, setShowRealTimeTextModal] = React.useState(false);
36367
36317
  // If the hangup capability is not present, we default to true
36368
36318
  const isHangUpForEveryoneAllowed = (_a = useSelector$1((state) => { var _a, _b; return (_b = (_a = state.call) === null || _a === void 0 ? void 0 : _a.capabilitiesFeature) === null || _b === void 0 ? void 0 : _b.capabilities.hangUpForEveryOne.isPresent; })) !== null && _a !== void 0 ? _a : true;
@@ -36398,11 +36348,9 @@ const CommonCallControlBar = (props) => {
36398
36348
  const openCaptionsSettingsModal = React.useCallback(() => {
36399
36349
  setShowCaptionsSettingsModal(true);
36400
36350
  }, []);
36401
- /* @conditional-compile-remove(rtt) */
36402
36351
  const openRealTimeTextModal = React.useCallback(() => {
36403
36352
  setShowRealTimeTextModal(true);
36404
36353
  }, []);
36405
- /* @conditional-compile-remove(rtt) */
36406
36354
  const onDismissRealTimeTextModal = React.useCallback(() => {
36407
36355
  setShowRealTimeTextModal(false);
36408
36356
  }, []);
@@ -36498,21 +36446,20 @@ const CommonCallControlBar = (props) => {
36498
36446
  const cameraButtonIsEnabled = isEnabled$1(options === null || options === void 0 ? void 0 : options.cameraButton);
36499
36447
  const showExitSpotlightButton = (options === null || options === void 0 ? void 0 : options.exitSpotlightButton) !== false;
36500
36448
  const showCaptionsButton = props.isCaptionsSupported && isEnabled$1(options.captionsButton);
36501
- /* @conditional-compile-remove(rtt) */
36502
36449
  const showRealTimeTextButton = props.isRealTimeTextSupported;
36503
36450
  const showTeamsMeetingPhoneCallButton = isEnabled$1(options === null || options === void 0 ? void 0 : options.teamsMeetingPhoneCallButton);
36504
36451
  const showDesktopMoreButton = isEnabled$1(options === null || options === void 0 ? void 0 : options.moreButton) &&
36505
36452
  (isEnabled$1(options === null || options === void 0 ? void 0 : options.holdButton) ||
36506
36453
  showCaptionsButton ||
36507
36454
  props.onUserSetGalleryLayout ||
36508
- /* @conditional-compile-remove(rtt) */ showRealTimeTextButton);
36455
+ showRealTimeTextButton);
36509
36456
  const role = (_b = props.callAdapter.getState().call) === null || _b === void 0 ? void 0 : _b.role;
36510
36457
  const hideRaiseHandButtonInRoomsCall = props.callAdapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
36511
36458
  const reactionResources = props.callAdapter.getState().reactions;
36512
36459
  return (React.createElement("div", { ref: controlBarSizeRef },
36513
36460
  React.createElement(CallAdapterProvider, { adapter: props.callAdapter },
36514
36461
  showCaptionsSettingsModal && (React.createElement(CallingCaptionsSettingsModal, { showCaptionsSettingsModal: showCaptionsSettingsModal, onDismissCaptionsSettings: onDismissCaptionsSettings, changeCaptionLanguage: props.isCaptionsOn && props.useTeamsCaptions })),
36515
- /* @conditional-compile-remove(rtt) */ showRealTimeTextModal && (React.createElement(CallingRealTimeTextModal, { showModal: showRealTimeTextModal, onDismissModal: onDismissRealTimeTextModal, onStartRealTimeText: props.onStartRealTimeText })),
36462
+ showRealTimeTextModal && (React.createElement(CallingRealTimeTextModal, { showModal: showRealTimeTextModal, onDismissModal: onDismissRealTimeTextModal, onStartRealTimeText: props.onStartRealTimeText })),
36516
36463
  props.teamsMeetingConferenceModalPresent && (React.createElement(MeetingConferencePhoneInfoModal, { conferencePhoneInfoList: (_e = (_d = (_c = props.callAdapter.getState().call) === null || _c === void 0 ? void 0 : _c.meetingConference) === null || _d === void 0 ? void 0 : _d.conferencePhones) !== null && _e !== void 0 ? _e : [], showModal: props.teamsMeetingConferenceModalPresent, onDismissMeetingPhoneInfoSettings: props.onToggleTeamsMeetingConferenceModal }))),
36517
36464
  React.createElement(react.Stack, { horizontal: true, reversed: !props.mobileView && !isOutOfSpace, horizontalAlign: "space-between", className: react.mergeStyles(callControlsContainerStyles, controlBarContainerStyles, controlBarDesktopContainerStyles) },
36518
36465
  React.createElement(react.Stack.Item, { grow: true, className: react.mergeStyles(controlBarWrapperDesktopStyles) },
@@ -36549,13 +36496,7 @@ const CommonCallControlBar = (props) => {
36549
36496
  return (React.createElement(CustomButton, { key: `primary-custom-button-${i}`, styles: commonButtonStyles, showLabel: options.displayType !== 'compact', disableTooltip: props.mobileView }));
36550
36497
  }),
36551
36498
  props.mobileView && (React.createElement(MoreButton, { "data-ui-id": "common-call-composite-more-button", strings: moreButtonStrings, onClick: props.onMoreButtonClicked, disabled: props.disableButtonsForLobbyPage, disableTooltip: props.mobileView })),
36552
- !props.mobileView && showDesktopMoreButton && (React.createElement(DesktopMoreButton, { disableButtonsForHoldScreen: props.disableButtonsForHoldScreen, styles: commonButtonStyles, onClickShowDialpad: props.onClickShowDialpad, callControls: props.callControls, isCaptionsSupported: showCaptionsButton,
36553
- /* @conditional-compile-remove(rtt) */
36554
- isRealTimeTextSupported: showRealTimeTextButton, onCaptionsSettingsClick: openCaptionsSettingsModal,
36555
- /* @conditional-compile-remove(rtt) */
36556
- onStartRealTimeTextClick: openRealTimeTextModal,
36557
- /* @conditional-compile-remove(rtt) */
36558
- startRealTimeTextButtonChecked: props.startRealTimeTextButtonChecked, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayout, userSetGalleryLayout: props.userSetGalleryLayout, dtmfDialerPresent: props.dtmfDialerPresent, onSetDialpadPage: props.onSetDialpadPage, teamsMeetingPhoneCallEnable: showTeamsMeetingPhoneCallButton, onMeetingPhoneInfoClick: props.onToggleTeamsMeetingConferenceModal })),
36499
+ !props.mobileView && showDesktopMoreButton && (React.createElement(DesktopMoreButton, { disableButtonsForHoldScreen: props.disableButtonsForHoldScreen, styles: commonButtonStyles, onClickShowDialpad: props.onClickShowDialpad, callControls: props.callControls, isCaptionsSupported: showCaptionsButton, isRealTimeTextSupported: showRealTimeTextButton, onCaptionsSettingsClick: openCaptionsSettingsModal, onStartRealTimeTextClick: openRealTimeTextModal, startRealTimeTextButtonChecked: props.startRealTimeTextButtonChecked, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayout, userSetGalleryLayout: props.userSetGalleryLayout, dtmfDialerPresent: props.dtmfDialerPresent, onSetDialpadPage: props.onSetDialpadPage, teamsMeetingPhoneCallEnable: showTeamsMeetingPhoneCallButton, onMeetingPhoneInfoClick: props.onToggleTeamsMeetingConferenceModal })),
36559
36500
  React.createElement(EndCall, { displayType: "compact", mobileView: props.mobileView, styles: endCallButtonStyles, enableEndCallMenu: !isBoolean(props.callControls) &&
36560
36501
  !isBoolean((_g = props.callControls) === null || _g === void 0 ? void 0 : _g.endCallButton) &&
36561
36502
  !props.mobileView &&
@@ -36824,19 +36765,15 @@ const MoreDrawer = (props) => {
36824
36765
  const { speakers, onSelectSpeaker, onLightDismiss } = props;
36825
36766
  const localeStrings = useLocale();
36826
36767
  const holdButtonProps = usePropsFor$1(HoldButton);
36827
- /* @conditional-compile-remove(rtt) */
36828
36768
  const realTimeTextProps = usePropsFor$1(CaptionsBanner);
36829
36769
  const callees = useSelector$1(getTargetCallees);
36830
36770
  const participants = useSelector$1(getRemoteParticipantsConnectedSelector);
36831
36771
  const allowDtmfDialer = showDtmfDialer(callees, participants, props.dtmfDialerOptions);
36832
36772
  const [dtmfDialerChecked, setDtmfDialerChecked] = React.useState((_a = props.dtmfDialerPresent) !== null && _a !== void 0 ? _a : false);
36833
- /* @conditional-compile-remove(rtt) */
36834
36773
  const [showRealTimeTextModal, setShowRealTimeTextModal] = React.useState(false);
36835
- /* @conditional-compile-remove(rtt) */
36836
36774
  const openRealTimeTextModal = React.useCallback(() => {
36837
36775
  setShowRealTimeTextModal(true);
36838
36776
  }, []);
36839
- /* @conditional-compile-remove(rtt) */
36840
36777
  const onDismissRealTimeTextModal = React.useCallback(() => {
36841
36778
  setShowRealTimeTextModal(false);
36842
36779
  }, []);
@@ -36861,7 +36798,6 @@ const MoreDrawer = (props) => {
36861
36798
  }, [speakers, onSelectSpeaker, onLightDismiss]);
36862
36799
  const drawerSelectionOptions = inferCallWithChatControlOptions(props.callControls);
36863
36800
  const showCaptionsButton = props.isCaptionsSupported && drawerSelectionOptions !== false && isEnabled(drawerSelectionOptions.captionsButton);
36864
- /* @conditional-compile-remove(rtt) */
36865
36801
  const showRealTimeTextButton = props.isRealTimeTextSupported;
36866
36802
  if (props.reactionResources !== undefined) {
36867
36803
  drawerMenuItems.push({
@@ -37189,10 +37125,8 @@ const MoreDrawer = (props) => {
37189
37125
  });
37190
37126
  }
37191
37127
  }
37192
- /* @conditional-compile-remove(rtt) */
37193
37128
  const rttDisabled = props.disableButtonsForHoldScreen || realTimeTextProps.isRealTimeTextOn || props.startRealTimeTextButtonChecked;
37194
37129
  // rtt
37195
- /* @conditional-compile-remove(rtt) */
37196
37130
  if (showRealTimeTextButton) {
37197
37131
  const realTimeTextDrawerItems = [];
37198
37132
  drawerMenuItems.push({
@@ -37231,7 +37165,7 @@ const MoreDrawer = (props) => {
37231
37165
  drawerMenuItems.push(element);
37232
37166
  });
37233
37167
  return (React.createElement(React.Fragment, null,
37234
- /* @conditional-compile-remove(rtt) */ showRealTimeTextModal && (React.createElement(CallingRealTimeTextModal, { showModal: showRealTimeTextModal, onDismissModal: onDismissRealTimeTextModal, onStartRealTimeText: props.onStartRealTimeText })),
37168
+ showRealTimeTextModal && (React.createElement(CallingRealTimeTextModal, { showModal: showRealTimeTextModal, onDismissModal: onDismissRealTimeTextModal, onStartRealTimeText: props.onStartRealTimeText })),
37235
37169
  isSpokenLanguageDrawerOpen && showCaptionsButton && (React.createElement(SpokenLanguageSettingsDrawer, { onLightDismiss: props.onLightDismiss, selectLanguage: setCurrentSpokenLanguage, setCurrentLanguage: captionSettingsProp.onSetSpokenLanguage, currentLanguage: currentSpokenLanguage, strings: { menuTitle: props.strings.spokenLanguageMenuTitle }, supportedLanguageStrings: supportedSpokenLanguageStrings })),
37236
37170
  isCaptionLanguageDrawerOpen && showCaptionsButton && (React.createElement(CaptionLanguageSettingsDrawer, { onLightDismiss: props.onLightDismiss, selectLanguage: setCurrentCaptionLanguage, setCurrentLanguage: captionSettingsProp.onSetCaptionLanguage, currentLanguage: currentCaptionLanguage, strings: { menuTitle: props.strings.captionLanguageMenuTitle }, supportedLanguageStrings: supportedCaptionLanguageStrings })),
37237
37171
  !isSpokenLanguageDrawerOpen && !isCaptionLanguageDrawerOpen && (React.createElement(_DrawerMenu, { items: drawerMenuItems, onLightDismiss: props.onLightDismiss }))));
@@ -39857,9 +39791,7 @@ const CallArrangement = (props) => {
39857
39791
  ? (latestNotifications !== null && latestNotifications !== void 0 ? latestNotifications : []).filter((notification) => notification.type !== 'assignedBreakoutRoomOpenedPromptJoin')
39858
39792
  : latestNotifications;
39859
39793
  const reactionResources = useSelector$1(getReactionResources);
39860
- /* @conditional-compile-remove(rtt) */
39861
39794
  const [openRealTimeText, setOpenRealTimeText] = React.useState(false);
39862
- /* @conditional-compile-remove(rtt) */
39863
39795
  const onStartRealTimeText = React.useCallback(() => {
39864
39796
  setOpenRealTimeText(true);
39865
39797
  }, []);
@@ -39880,9 +39812,7 @@ const CallArrangement = (props) => {
39880
39812
  props.capabilitiesChangedNotificationBarProps.capabilitiesChangedNotifications.length > 0 && (React.createElement(react.Stack, { styles: bannerNotificationStyles },
39881
39813
  React.createElement(CapabilitiesChangedNotificationBar, Object.assign({}, props.capabilitiesChangedNotificationBarProps, { capabilitiesChangedNotifications: filteredCapabilitesChangedNotifications !== null && filteredCapabilitesChangedNotifications !== void 0 ? filteredCapabilitesChangedNotifications : [] })))))),
39882
39814
  renderGallery && props.onRenderGalleryContent && props.onRenderGalleryContent(),
39883
- !isInLocalHold && (React.createElement(CallingCaptionsBanner, { captionsOptions: props.captionsOptions, isMobile: props.mobileView, onFetchAvatarPersonaData: props.onFetchAvatarPersonaData, useTeamsCaptions: useTeamsCaptions,
39884
- /* @conditional-compile-remove(rtt) */
39885
- isRealTimeTextOn: openRealTimeText }))))),
39815
+ !isInLocalHold && (React.createElement(CallingCaptionsBanner, { captionsOptions: props.captionsOptions, isMobile: props.mobileView, onFetchAvatarPersonaData: props.onFetchAvatarPersonaData, useTeamsCaptions: useTeamsCaptions, isRealTimeTextOn: openRealTimeText }))))),
39886
39816
  React.createElement(SidePane, { mobileView: props.mobileView, maxWidth: isVideoPaneOpen ? `${VIDEO_EFFECTS_SIDE_PANE_WIDTH_REM}rem` : undefined, minWidth: isVideoPaneOpen ? `${VIDEO_EFFECTS_SIDE_PANE_WIDTH_REM}rem` : undefined, updateSidePaneRenderer: props.updateSidePaneRenderer, onPeopleButtonClicked: props.mobileView && !shouldShowPeopleTabHeaderButton(props.callControlProps.options)
39887
39817
  ? undefined
39888
39818
  : togglePeoplePane, disablePeopleButton: typeof props.callControlProps.options !== 'boolean' &&
@@ -39898,21 +39828,9 @@ const CallArrangement = (props) => {
39898
39828
  ((_m = props.callControlProps) === null || _m === void 0 ? void 0 : _m.options) !== false && !isMobileWithActivePane && (React.createElement(react.Stack, { verticalAlign: 'center', className: react.mergeStyles({
39899
39829
  zIndex: CONTROL_BAR_Z_INDEX,
39900
39830
  padding: verticalControlBar ? '0.25rem' : 'unset'
39901
- }) }, isLegacyCallControlEnabled((_o = props.callControlProps) === null || _o === void 0 ? void 0 : _o.options) ? (React.createElement(CallControls, Object.assign({}, props.callControlProps, { containerWidth: containerWidth, containerHeight: containerHeight, isMobile: props.mobileView, peopleButtonChecked: isPeoplePaneOpen, onPeopleButtonClicked: togglePeoplePane, displayVertical: verticalControlBar }))) : (React.createElement(CommonCallControlBar, Object.assign({}, props.callControlProps, { callControls: props.callControlProps.options, callAdapter: adapter, mobileView: props.mobileView, disableButtonsForLobbyPage: isInLobby, disableButtonsForHoldScreen: isInLocalHold, peopleButtonChecked: isPeoplePaneOpen, onPeopleButtonClicked: togglePeoplePane, onMoreButtonClicked: onMoreButtonClicked, isCaptionsSupported: (useTeamsCaptions && hasJoinedCall) || hasJoinedCall,
39902
- /* @conditional-compile-remove(rtt) */
39903
- isRealTimeTextSupported: hasJoinedCall && props.isRTTSupportedCall,
39904
- /* @conditional-compile-remove(rtt) */
39905
- onStartRealTimeText: onStartRealTimeText,
39906
- /* @conditional-compile-remove(rtt) */
39907
- startRealTimeTextButtonChecked: openRealTimeText, useTeamsCaptions: useTeamsCaptions, isCaptionsOn: isCaptionsOn, onClickVideoEffects: onResolveVideoEffectDependency ? openVideoEffectsPane : undefined, displayVertical: verticalControlBar, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout, onSetDialpadPage: props.onSetDialpadPage, dtmfDialerPresent: props.dtmfDialerPresent, peopleButtonRef: peopleButtonRef, cameraButtonRef: cameraButtonRef, onStopLocalSpotlight: !hideSpotlightButtons && localParticipant.spotlight ? onStopLocalSpotlightWithPrompt : undefined, onToggleTeamsMeetingConferenceModal: toggleTeamsMeetingConferenceModal, teamsMeetingConferenceModalPresent: showTeamsMeetingConferenceModal, sidePaneDismissButtonRef: sidePaneDismissButtonRef }))))),
39831
+ }) }, isLegacyCallControlEnabled((_o = props.callControlProps) === null || _o === void 0 ? void 0 : _o.options) ? (React.createElement(CallControls, Object.assign({}, props.callControlProps, { containerWidth: containerWidth, containerHeight: containerHeight, isMobile: props.mobileView, peopleButtonChecked: isPeoplePaneOpen, onPeopleButtonClicked: togglePeoplePane, displayVertical: verticalControlBar }))) : (React.createElement(CommonCallControlBar, Object.assign({}, props.callControlProps, { callControls: props.callControlProps.options, callAdapter: adapter, mobileView: props.mobileView, disableButtonsForLobbyPage: isInLobby, disableButtonsForHoldScreen: isInLocalHold, peopleButtonChecked: isPeoplePaneOpen, onPeopleButtonClicked: togglePeoplePane, onMoreButtonClicked: onMoreButtonClicked, isCaptionsSupported: (useTeamsCaptions && hasJoinedCall) || hasJoinedCall, isRealTimeTextSupported: hasJoinedCall && props.isRTTSupportedCall, onStartRealTimeText: onStartRealTimeText, startRealTimeTextButtonChecked: openRealTimeText, useTeamsCaptions: useTeamsCaptions, isCaptionsOn: isCaptionsOn, onClickVideoEffects: onResolveVideoEffectDependency ? openVideoEffectsPane : undefined, displayVertical: verticalControlBar, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout, onSetDialpadPage: props.onSetDialpadPage, dtmfDialerPresent: props.dtmfDialerPresent, peopleButtonRef: peopleButtonRef, cameraButtonRef: cameraButtonRef, onStopLocalSpotlight: !hideSpotlightButtons && localParticipant.spotlight ? onStopLocalSpotlightWithPrompt : undefined, onToggleTeamsMeetingConferenceModal: toggleTeamsMeetingConferenceModal, teamsMeetingConferenceModalPresent: showTeamsMeetingConferenceModal, sidePaneDismissButtonRef: sidePaneDismissButtonRef }))))),
39908
39832
  ((_p = props.callControlProps) === null || _p === void 0 ? void 0 : _p.options) !== false && showDrawer && (React.createElement(react.Stack, { styles: drawerContainerStylesValue },
39909
- React.createElement(PreparedMoreDrawer, { callControls: props.callControlProps.options, onLightDismiss: closeDrawer, onPeopleButtonClicked: onMoreDrawerPeopleClicked, disableButtonsForHoldScreen: isInLocalHold, isCaptionsSupported: (useTeamsCaptions && hasJoinedCall) || hasJoinedCall,
39910
- /* @conditional-compile-remove(rtt) */
39911
- isRealTimeTextSupported: hasJoinedCall && props.isRTTSupportedCall,
39912
- /* @conditional-compile-remove(rtt) */
39913
- onStartRealTimeText: onStartRealTimeText,
39914
- /* @conditional-compile-remove(rtt) */
39915
- startRealTimeTextButtonChecked: openRealTimeText, useTeamsCaptions: useTeamsCaptions, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout, onSetDialpadPage: props.onSetDialpadPage, dtmfDialerPresent: props.dtmfDialerPresent, dtmfDialerOptions: props.dtmfDialerOptions, reactionResources: reactionResources, onClickMeetingPhoneInfo: onMeetingPhoneInfoClicked })))))));
39833
+ React.createElement(PreparedMoreDrawer, { callControls: props.callControlProps.options, onLightDismiss: closeDrawer, onPeopleButtonClicked: onMoreDrawerPeopleClicked, disableButtonsForHoldScreen: isInLocalHold, isCaptionsSupported: (useTeamsCaptions && hasJoinedCall) || hasJoinedCall, isRealTimeTextSupported: hasJoinedCall && props.isRTTSupportedCall, onStartRealTimeText: onStartRealTimeText, startRealTimeTextButtonChecked: openRealTimeText, useTeamsCaptions: useTeamsCaptions, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout, onSetDialpadPage: props.onSetDialpadPage, dtmfDialerPresent: props.dtmfDialerPresent, dtmfDialerOptions: props.dtmfDialerOptions, reactionResources: reactionResources, onClickMeetingPhoneInfo: onMeetingPhoneInfoClicked })))))));
39916
39834
  };
39917
39835
  const isLegacyCallControlEnabled = (options) => {
39918
39836
  return !!options && options !== true && (options === null || options === void 0 ? void 0 : options.legacyControlBarExperience) === true;
@@ -40807,7 +40725,9 @@ const effectsButtonStyles = (theme, disabled) => {
40807
40725
  rootFocused: disabled
40808
40726
  ? {}
40809
40727
  : {
40810
- color: theme.palette.themePrimary
40728
+ color: theme.palette.themePrimary,
40729
+ outline: '1px solid',
40730
+ outlineOffset: '-2px'
40811
40731
  }
40812
40732
  };
40813
40733
  };
@@ -41170,7 +41090,21 @@ const localPreviewButtonStyle = (isMobile) => {
41170
41090
  outline: 'unset !important'
41171
41091
  }
41172
41092
  }
41173
- }
41093
+ },
41094
+ rootFocused: !isMobile
41095
+ ? {
41096
+ outline: '1px solid',
41097
+ outlineOffset: '-2px'
41098
+ }
41099
+ : {},
41100
+ rootChecked: !isMobile
41101
+ ? {
41102
+ ':focus': {
41103
+ outline: '1px solid',
41104
+ outlineOffset: '-2px'
41105
+ }
41106
+ }
41107
+ : {}
41174
41108
  };
41175
41109
  };
41176
41110
 
@@ -43668,7 +43602,6 @@ class AzureCommunicationCallAdapter {
43668
43602
  this.stopCaptions.bind(this);
43669
43603
  this.setSpokenLanguage.bind(this);
43670
43604
  this.setCaptionLanguage.bind(this);
43671
- /* @conditional-compile-remove(rtt) */
43672
43605
  this.sendRealTimeText.bind(this);
43673
43606
  this.startVideoBackgroundEffect.bind(this);
43674
43607
  this.stopVideoBackgroundEffects.bind(this);
@@ -44183,7 +44116,6 @@ class AzureCommunicationCallAdapter {
44183
44116
  this.handlers.onSetSpokenLanguage(language);
44184
44117
  });
44185
44118
  }
44186
- /* @conditional-compile-remove(rtt) */
44187
44119
  sendRealTimeText(text, isFinalized) {
44188
44120
  return __awaiter$7(this, void 0, void 0, function* () {
44189
44121
  this.handlers.onSendRealTimeText(text, isFinalized);
@@ -44350,7 +44282,6 @@ class AzureCommunicationCallAdapter {
44350
44282
  (_f = this.call) === null || _f === void 0 ? void 0 : _f.feature(communicationCalling.Features.Transfer).on('transferAccepted', this.transferAccepted.bind(this));
44351
44283
  (_g = this.call) === null || _g === void 0 ? void 0 : _g.feature(communicationCalling.Features.Capabilities).on('capabilitiesChanged', this.capabilitiesChanged.bind(this));
44352
44284
  (_h = this.call) === null || _h === void 0 ? void 0 : _h.feature(communicationCalling.Features.Spotlight).on('spotlightChanged', this.spotlightChanged.bind(this));
44353
- /* @conditional-compile-remove(rtt) */
44354
44285
  try {
44355
44286
  (_j = this.call) === null || _j === void 0 ? void 0 : _j.feature(communicationCalling.Features.RealTimeText).on('realTimeTextReceived', this.realTimeTextReceived.bind(this));
44356
44287
  }
@@ -44374,7 +44305,6 @@ class AzureCommunicationCallAdapter {
44374
44305
  (_d = this.call) === null || _d === void 0 ? void 0 : _d.off('idChanged', this.callIdChanged.bind(this));
44375
44306
  (_e = this.call) === null || _e === void 0 ? void 0 : _e.off('roleChanged', this.roleChanged.bind(this));
44376
44307
  this.unsubscribeFromCaptionEvents();
44377
- /* @conditional-compile-remove(rtt) */
44378
44308
  try {
44379
44309
  (_f = this.call) === null || _f === void 0 ? void 0 : _f.feature(communicationCalling.Features.RealTimeText).off('realTimeTextReceived', this.realTimeTextReceived.bind(this));
44380
44310
  }
@@ -44424,7 +44354,6 @@ class AzureCommunicationCallAdapter {
44424
44354
  captionsReceived(captionsInfo) {
44425
44355
  this.emitter.emit('captionsReceived', { captionsInfo });
44426
44356
  }
44427
- /* @conditional-compile-remove(rtt) */
44428
44357
  realTimeTextReceived(realTimeText) {
44429
44358
  this.emitter.emit('realTimeTextReceived', { realTimeText });
44430
44359
  }
@@ -45097,7 +45026,6 @@ class CallWithChatBackedCallAdapter {
45097
45026
  yield this.callWithChatAdapter.setSpokenLanguage(language);
45098
45027
  });
45099
45028
  }
45100
- /* @conditional-compile-remove(rtt) */
45101
45029
  sendRealTimeText(text, isFinalized) {
45102
45030
  return __awaiter$6(this, void 0, void 0, function* () {
45103
45031
  yield this.callWithChatAdapter.sendRealTimeText(text, isFinalized);
@@ -46095,7 +46023,6 @@ class AzureCommunicationCallWithChatAdapter {
46095
46023
  this.stopCaptions.bind(this);
46096
46024
  this.setSpokenLanguage.bind(this);
46097
46025
  this.setCaptionLanguage.bind(this);
46098
- /* @conditional-compile-remove(rtt) */
46099
46026
  this.sendRealTimeText.bind(this);
46100
46027
  this.startVideoBackgroundEffect.bind(this);
46101
46028
  this.stopVideoBackgroundEffects.bind(this);
@@ -46452,7 +46379,6 @@ class AzureCommunicationCallWithChatAdapter {
46452
46379
  yield this.callAdapter.setSpokenLanguage(language);
46453
46380
  });
46454
46381
  }
46455
- /* @conditional-compile-remove(rtt) */
46456
46382
  sendRealTimeText(text, isFinalized) {
46457
46383
  return __awaiter$4(this, void 0, void 0, function* () {
46458
46384
  yield this.callAdapter.sendRealTimeText(text, isFinalized);
@@ -46606,7 +46532,6 @@ class AzureCommunicationCallWithChatAdapter {
46606
46532
  case 'captionsReceived':
46607
46533
  this.callAdapter.on('captionsReceived', listener);
46608
46534
  break;
46609
- /* @conditional-compile-remove(rtt) */
46610
46535
  case 'realTimeTextReceived':
46611
46536
  this.callAdapter.on('realTimeTextReceived', listener);
46612
46537
  break;
@@ -46722,7 +46647,6 @@ class AzureCommunicationCallWithChatAdapter {
46722
46647
  case 'captionsReceived':
46723
46648
  this.callAdapter.off('captionsReceived', listener);
46724
46649
  break;
46725
- /* @conditional-compile-remove(rtt) */
46726
46650
  case 'realTimeTextReceived':
46727
46651
  this.callAdapter.off('realTimeTextReceived', listener);
46728
46652
  break;
@@ -47798,4 +47722,4 @@ exports.useTeamsCall = useTeamsCall;
47798
47722
  exports.useTeamsCallAdapter = useTeamsCallAdapter;
47799
47723
  exports.useTeamsCallAgent = useTeamsCallAgent;
47800
47724
  exports.useTheme = useTheme;
47801
- //# sourceMappingURL=index-l-iOzYiT.js.map
47725
+ //# sourceMappingURL=index-C3FKODFv.js.map