@microsoft/omnichannel-chat-components 1.1.17-0 → 1.1.19

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 (305) hide show
  1. package/lib/cjs/assets/Icons.js +21 -42
  2. package/lib/cjs/common/Constants.js +17 -31
  3. package/lib/cjs/common/decodeComponentString.js +0 -6
  4. package/lib/cjs/common/encodeComponentString.js +0 -2
  5. package/lib/cjs/common/utils.js +22 -56
  6. package/lib/cjs/components/callingcontainer/CallingContainer.js +3 -18
  7. package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +2 -5
  8. package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerProps.js +2 -6
  9. package/lib/cjs/components/callingcontainer/common/defaultStyles/customizedCallingContainerStyles.js +2 -3
  10. package/lib/cjs/components/callingcontainer/common/defaultStyles/defaultCallingContainerStyles.js +2 -3
  11. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +95 -135
  12. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +2 -5
  13. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +2 -6
  14. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallProps.js +2 -6
  15. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +3 -5
  16. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +2 -3
  17. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +2 -3
  18. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +51 -78
  19. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +3 -11
  20. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverridesControlProps.js +2 -7
  21. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +2 -5
  22. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +2 -6
  23. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallProps.js +2 -6
  24. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/componentOverridesStyleProps.js +2 -3
  25. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/defaultIncomingCallStyleProps.js +2 -3
  26. package/lib/cjs/components/callingcontainer/subcomponents/Timer/Timer.js +2 -11
  27. package/lib/cjs/components/chatbutton/ChatButton.js +26 -57
  28. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +2 -5
  29. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonProps.js +2 -6
  30. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonGeneralStyles.js +2 -3
  31. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -5
  32. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonNotificationBubbleStyles.js +2 -3
  33. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonStyleProps.js +2 -10
  34. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +2 -3
  35. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTextContainerStyles.js +2 -3
  36. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +2 -3
  37. package/lib/cjs/components/citationpane/CitationPane.js +19 -46
  38. package/lib/cjs/components/citationpane/ScalingTest.js +2 -8
  39. package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneControlProps.js +2 -3
  40. package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneProps.js +2 -6
  41. package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneStyleProps.js +2 -13
  42. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonFocusedStyles.js +2 -3
  43. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonHoveredStyles.js +2 -3
  44. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +2 -5
  45. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +2 -4
  46. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +2 -4
  47. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneStyles.js +2 -13
  48. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTitleStyles.js +1 -2
  49. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonFocusedStyles.js +2 -3
  50. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonHoveredStyles.js +2 -3
  51. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +2 -4
  52. package/lib/cjs/components/common/commandbutton/CommandButton.js +16 -27
  53. package/lib/cjs/components/common/subcomponents/CloseButton.js +2 -9
  54. package/lib/cjs/components/confirmationpane/ConfirmationPane.js +23 -54
  55. package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +2 -5
  56. package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneProps.js +2 -6
  57. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneButtonGroupStyles.js +2 -3
  58. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonFocusedStyles.js +2 -3
  59. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonHoveredStyles.js +2 -3
  60. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonStyles.js +2 -3
  61. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonFocusedStyles.js +2 -3
  62. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonHoveredStyles.js +2 -3
  63. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonStyles.js +2 -3
  64. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneGeneralStyles.js +2 -3
  65. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneStyles.js +2 -10
  66. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneSubtitleStyles.js +2 -3
  67. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneTitleStyles.js +2 -3
  68. package/lib/cjs/components/footer/Footer.js +9 -28
  69. package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +2 -6
  70. package/lib/cjs/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +2 -11
  71. package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +2 -5
  72. package/lib/cjs/components/footer/common/defaultProps/defaultFooterOverridesProps.js +2 -7
  73. package/lib/cjs/components/footer/common/defaultProps/defaultFooterProps.js +2 -6
  74. package/lib/cjs/components/footer/common/defaultStyles/defaultFooterStyleProps.js +2 -3
  75. package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +13 -23
  76. package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +2 -9
  77. package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +2 -9
  78. package/lib/cjs/components/header/Header.js +11 -29
  79. package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -6
  80. package/lib/cjs/components/header/common/defaultProps/azureHeaderProps.js +2 -7
  81. package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +2 -6
  82. package/lib/cjs/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +3 -13
  83. package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -6
  84. package/lib/cjs/components/header/common/defaultProps/defaultHeaderProps.js +2 -6
  85. package/lib/cjs/components/header/common/defaultProps/overridesDefaultHeaderProps.js +2 -7
  86. package/lib/cjs/components/header/common/defaultStyles/advancedHeaderStyleProps.js +2 -3
  87. package/lib/cjs/components/header/common/defaultStyles/defaultHeaderStyleProps.js +2 -3
  88. package/lib/cjs/components/header/subcomponents/MinimizeButton.js +2 -9
  89. package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +52 -89
  90. package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +2 -5
  91. package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneProps.js +2 -6
  92. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneButtonGroupStyles.js +2 -3
  93. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonHoveredStyles.js +1 -2
  94. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles.js +2 -3
  95. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneGeneralStyles.js +2 -3
  96. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneHeaderGroupStyles.js +2 -3
  97. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInputStyles.js +2 -3
  98. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles.js +2 -3
  99. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonHoveredStyles.js +1 -2
  100. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles.js +2 -3
  101. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneStyles.js +2 -15
  102. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSubtitleStyles.js +2 -3
  103. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneTitleStyles.js +2 -3
  104. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneComponentOverrides.js +3 -8
  105. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +2 -5
  106. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneProps.js +2 -7
  107. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneCancelButtonStyles.js +2 -3
  108. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneHeaderGroupStyles.js +2 -3
  109. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneInputStyles.js +2 -3
  110. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneSendButtonStyles.js +2 -3
  111. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneStyles.js +2 -9
  112. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneTitleStyles.js +2 -3
  113. package/lib/cjs/components/loadingpane/LoadingPane.js +12 -28
  114. package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +2 -5
  115. package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneProps.js +2 -6
  116. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneGeneralStyles.js +2 -3
  117. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -6
  118. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +2 -3
  119. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerStyles.js +2 -3
  120. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerTextStyles.js +2 -3
  121. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneStyles.js +2 -11
  122. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSubtitleStyles.js +2 -3
  123. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneTitleStyles.js +2 -3
  124. package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +3 -5
  125. package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneProps.js +2 -6
  126. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +3 -6
  127. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneProps.js +2 -6
  128. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneGeneralStyles.js +2 -3
  129. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -6
  130. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconStyles.js +2 -3
  131. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerStyles.js +2 -3
  132. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerTextStyles.js +2 -3
  133. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneStyles.js +2 -11
  134. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSubtitleStyles.js +2 -3
  135. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneTitleStyles.js +2 -3
  136. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +3 -6
  137. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneProps.js +2 -6
  138. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -5
  139. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneSpinnerStyles.js +2 -3
  140. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneStyles.js +2 -11
  141. package/lib/cjs/components/notificationpane/NotificationPane.js +3 -15
  142. package/lib/cjs/components/notificationpane/subcomponents/CloseChatButton.js +2 -9
  143. package/lib/cjs/components/notificationpane/subcomponents/DismissButton.js +2 -9
  144. package/lib/cjs/components/outofofficehourspane/OOOHPane.js +5 -17
  145. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +2 -5
  146. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneProps.js +2 -6
  147. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneGeneralStyles.js +2 -3
  148. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneStyles.js +2 -6
  149. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneTitleStyles.js +2 -3
  150. package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +3 -5
  151. package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.js +2 -6
  152. package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +3 -5
  153. package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneProps.js +2 -6
  154. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +3 -5
  155. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneProps.js +2 -6
  156. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -5
  157. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneStyles.js +2 -6
  158. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneTitleStyles.js +2 -3
  159. package/lib/cjs/components/postchatsurveypane/PostChatSurveyPane.js +4 -13
  160. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +2 -5
  161. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneProps.js +2 -6
  162. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneGeneralStyles.js +2 -3
  163. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneStyles.js +2 -5
  164. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +3 -5
  165. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneProps.js +2 -6
  166. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneGeneralStyles.js +2 -3
  167. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneStyles.js +2 -5
  168. package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +35 -56
  169. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +2 -5
  170. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneProps.js +2 -6
  171. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneACContainerStyles.js +2 -3
  172. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -3
  173. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneGeneralStyles.js +2 -3
  174. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultichoiceInputStyles.js +2 -3
  175. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +2 -3
  176. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles.js +2 -11
  177. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +2 -3
  178. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneToggleInputStyles.js +2 -3
  179. package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +3 -5
  180. package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneProps.js +2 -6
  181. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +2 -3
  182. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneProps.js +2 -6
  183. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneACContainerStyles.js +2 -3
  184. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneButtonStyles.js +2 -3
  185. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneGeneralStyles.js +2 -3
  186. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneStyles.js +2 -7
  187. package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +2 -3
  188. package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneProps.js +2 -6
  189. package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +29 -65
  190. package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +2 -5
  191. package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneProps.js +2 -6
  192. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyContainerStyles.js +1 -2
  193. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyTitleStyles.js +2 -3
  194. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
  195. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -3
  196. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneGeneralStyles.js +2 -3
  197. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -5
  198. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  199. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonStyles.js +2 -3
  200. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStyles.js +2 -15
  201. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneSubtitleStyles.js +2 -3
  202. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTextContainerStyles.js +2 -3
  203. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTitleStyles.js +2 -3
  204. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +2 -5
  205. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneProps.js +2 -6
  206. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneBodyTitleStyles.js +2 -3
  207. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
  208. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonStyles.js +2 -3
  209. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  210. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonStyles.js +2 -3
  211. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStyles.js +2 -9
  212. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +2 -5
  213. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneProps.js +2 -6
  214. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneBodyContainerStyles.js +2 -3
  215. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
  216. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonStyles.js +2 -3
  217. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneGeneralStyles.js +2 -3
  218. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneHeaderContainerStyles.js +2 -3
  219. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  220. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonStyles.js +2 -3
  221. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStyles.js +2 -11
  222. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +4 -11
  223. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +2 -5
  224. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneProps.js +2 -7
  225. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneBodyContainerStyles.js +2 -3
  226. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneGeneralStyles.js +2 -3
  227. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneHeaderContainerStyles.js +2 -3
  228. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  229. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonStyles.js +2 -3
  230. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStyles.js +2 -10
  231. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneTextContainerStyles.js +2 -3
  232. package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +33 -69
  233. package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +2 -5
  234. package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneProps.js +2 -6
  235. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneButtonGroupStyles.js +2 -3
  236. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonFocusedStyles.js +2 -3
  237. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonHoveredStyles.js +2 -3
  238. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonStyles.js +2 -3
  239. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneGeneralStyles.js +2 -3
  240. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -5
  241. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartChatButtonFocusedStyles.js +2 -3
  242. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonHoveredStyles.js +2 -3
  243. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonStyles.js +2 -3
  244. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStyles.js +2 -14
  245. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneSubtitleStyles.js +2 -3
  246. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneTitleStyles.js +2 -3
  247. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneWrapperStyles.js +2 -3
  248. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +2 -5
  249. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneProps.js +2 -6
  250. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneButtonGroupStyles.js +2 -3
  251. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneContinueChatButtonStyles.js +2 -3
  252. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneGeneralStyles.js +2 -3
  253. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneStyles.js +2 -9
  254. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneTitleStyles.js +2 -3
  255. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneWrapperStyles.js +2 -3
  256. package/lib/cjs/index.js +1 -24
  257. package/lib/cjs/services/BroadcastService.js +15 -26
  258. package/lib/cjs/services/EventQueue.js +4 -23
  259. package/lib/esm/common/Constants.js +15 -17
  260. package/lib/esm/common/decodeComponentString.js +0 -1
  261. package/lib/esm/common/utils.js +22 -30
  262. package/lib/esm/components/callingcontainer/CallingContainer.js +0 -5
  263. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +86 -109
  264. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +2 -1
  265. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +41 -57
  266. package/lib/esm/components/callingcontainer/subcomponents/Timer/Timer.js +0 -2
  267. package/lib/esm/components/chatbutton/ChatButton.js +24 -37
  268. package/lib/esm/components/citationpane/CitationPane.js +17 -21
  269. package/lib/esm/components/citationpane/ScalingTest.js +1 -1
  270. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +0 -2
  271. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +0 -1
  272. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +0 -1
  273. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +0 -1
  274. package/lib/esm/components/common/commandbutton/CommandButton.js +14 -15
  275. package/lib/esm/components/common/subcomponents/CloseButton.js +0 -2
  276. package/lib/esm/components/confirmationpane/ConfirmationPane.js +21 -27
  277. package/lib/esm/components/footer/Footer.js +6 -10
  278. package/lib/esm/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +0 -2
  279. package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +11 -11
  280. package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +0 -2
  281. package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +0 -2
  282. package/lib/esm/components/header/Header.js +8 -12
  283. package/lib/esm/components/header/subcomponents/MinimizeButton.js +0 -2
  284. package/lib/esm/components/inputvalidationpane/InputValidationPane.js +50 -60
  285. package/lib/esm/components/loadingpane/LoadingPane.js +10 -13
  286. package/lib/esm/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +2 -1
  287. package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +2 -1
  288. package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +2 -1
  289. package/lib/esm/components/notificationpane/NotificationPane.js +1 -5
  290. package/lib/esm/components/notificationpane/subcomponents/CloseChatButton.js +0 -2
  291. package/lib/esm/components/notificationpane/subcomponents/DismissButton.js +0 -2
  292. package/lib/esm/components/outofofficehourspane/OOOHPane.js +3 -6
  293. package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +2 -1
  294. package/lib/esm/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +2 -1
  295. package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +2 -1
  296. package/lib/esm/components/postchatsurveypane/PostChatSurveyPane.js +2 -4
  297. package/lib/esm/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +2 -1
  298. package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +33 -38
  299. package/lib/esm/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +2 -1
  300. package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +26 -35
  301. package/lib/esm/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +1 -1
  302. package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +31 -39
  303. package/lib/esm/services/BroadcastService.js +12 -13
  304. package/lib/esm/services/EventQueue.js +3 -20
  305. package/package.json +16 -14
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultCurrentCallProps = void 0;
7
-
8
7
  var _defaultCurrentCallStyleProps = require("../defaultStyles/defaultCurrentCallStyleProps");
9
-
10
8
  var _defaultCurrentCallControlProps = require("./defaultCurrentCallControlProps");
11
-
12
- const defaultCurrentCallProps = {
9
+ const defaultCurrentCallProps = exports.defaultCurrentCallProps = {
13
10
  controlProps: _defaultCurrentCallControlProps.defaultCurrentCallControlProps,
14
11
  styleProps: _defaultCurrentCallStyleProps.defaultCurrentCallStyleProps
15
- };
16
- exports.defaultCurrentCallProps = defaultCurrentCallProps;
12
+ };
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.componentOverridesStyleProps = void 0;
7
-
8
7
  var _defaultCurrentCallStyleProps = require("./defaultCurrentCallStyleProps");
9
-
10
8
  const componentOverrideStyles = Object.assign({}, _defaultCurrentCallStyleProps.defaultCurrentCallStyleProps);
11
- const componentOverridesStyleProps = { ...componentOverrideStyles,
9
+ const componentOverridesStyleProps = exports.componentOverridesStyleProps = {
10
+ ...componentOverrideStyles,
12
11
  generalStyleProps: {
13
12
  background: "#C8C8C8",
14
13
  padding: "5px",
@@ -16,5 +15,4 @@ const componentOverridesStyleProps = { ...componentOverrideStyles,
16
15
  borderRadius: "4px 4px 4px 4px",
17
16
  width: "80%"
18
17
  }
19
- };
20
- exports.componentOverridesStyleProps = componentOverridesStyleProps;
18
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.customizedCurrentCallStyleProps = void 0;
7
- const customizedCurrentCallStyleProps = {
7
+ const customizedCurrentCallStyleProps = exports.customizedCurrentCallStyleProps = {
8
8
  generalStyleProps: {
9
9
  background: "lightgrey",
10
10
  minHeight: "80px",
@@ -82,5 +82,4 @@ const customizedCurrentCallStyleProps = {
82
82
  itemFocusStyleProps: {
83
83
  border: "2px dotted blue"
84
84
  }
85
- };
86
- exports.customizedCurrentCallStyleProps = customizedCurrentCallStyleProps;
85
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultCurrentCallStyleProps = void 0;
7
- const defaultCurrentCallStyleProps = {
7
+ const defaultCurrentCallStyleProps = exports.defaultCurrentCallStyleProps = {
8
8
  generalStyleProps: {
9
9
  background: "#292828",
10
10
  minHeight: "55px",
@@ -82,5 +82,4 @@ const defaultCurrentCallStyleProps = {
82
82
  itemFocusStyleProps: {
83
83
  outline: "2px solid #fff"
84
84
  }
85
- };
86
- exports.defaultCurrentCallStyleProps = defaultCurrentCallStyleProps;
85
+ };
@@ -4,74 +4,59 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
- var React = _interopRequireWildcard(require("react"));
9
-
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var React = _react;
10
9
  var _react2 = require("@fluentui/react");
11
-
12
10
  var _CommandButton = _interopRequireDefault(require("../../../common/commandbutton/CommandButton"));
13
-
14
11
  var _Constants = require("../../../../common/Constants");
15
-
16
12
  var _decodeComponentString = require("../../../../common/decodeComponentString");
17
-
18
13
  var _defaultIncomingCallProps = require("./common/defaultProps/defaultIncomingCallProps");
19
-
20
14
  var _utils = require("../../../../common/utils");
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
-
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
-
26
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
-
28
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
-
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
17
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
30
18
  function IncomingCall(props) {
31
- var _props$controlProps, _defaultIncomingCallP, _props$controlProps2, _props$controlProps2$, _defaultIncomingCallP2, _defaultIncomingCallP3, _props$controlProps3, _props$controlProps3$, _defaultIncomingCallP4, _defaultIncomingCallP5, _props$controlProps4, _props$controlProps4$, _defaultIncomingCallP6, _defaultIncomingCallP7, _defaultIncomingCallP8, _props$styleProps, _props$controlProps5, _props$controlProps5$, _defaultIncomingCallP9, _defaultIncomingCallP10, _props$controlProps6, _props$controlProps6$, _defaultIncomingCallP11, _defaultIncomingCallP12, _props$controlProps7, _props$controlProps7$, _defaultIncomingCallP13, _defaultIncomingCallP14, _defaultIncomingCallP15, _props$controlProps8, _defaultIncomingCallP16, _props$controlProps9, _defaultIncomingCallP17, _props$controlProps10, _defaultIncomingCallP18, _props$controlProps11, _defaultIncomingCallP19, _props$styleProps2, _defaultIncomingCallP20, _props$styleProps3, _defaultIncomingCallP21, _props$styleProps4, _defaultIncomingCallP22, _props$styleProps5, _defaultIncomingCallP23, _props$styleProps6, _defaultIncomingCallP24, _props$styleProps7, _defaultIncomingCallP25, _props$styleProps8, _defaultIncomingCallP26, _props$styleProps9, _props$styleProps10, _props$controlProps18, _defaultIncomingCallP27, _props$controlProps19, _props$componentOverr, _props$controlProps20, _props$controlProps21, _props$controlProps22, _props$controlProps23, _props$controlProps24, _props$controlProps25, _props$controlProps26, _props$controlProps27, _props$controlProps28;
32
-
19
+ var _props$controlProps, _defaultIncomingCallP, _props$controlProps2, _defaultIncomingCallP2, _props$controlProps3, _defaultIncomingCallP3, _props$controlProps4, _defaultIncomingCallP4, _defaultIncomingCallP5, _props$styleProps, _props$controlProps5, _defaultIncomingCallP6, _props$controlProps6, _defaultIncomingCallP7, _props$controlProps7, _defaultIncomingCallP8, _defaultIncomingCallP9, _props$controlProps8, _defaultIncomingCallP0, _props$controlProps9, _defaultIncomingCallP1, _props$controlProps0, _defaultIncomingCallP10, _props$controlProps1, _defaultIncomingCallP11, _props$styleProps2, _defaultIncomingCallP12, _props$styleProps3, _defaultIncomingCallP13, _props$styleProps4, _defaultIncomingCallP14, _props$styleProps5, _defaultIncomingCallP15, _props$styleProps6, _defaultIncomingCallP16, _props$styleProps7, _defaultIncomingCallP17, _props$styleProps8, _defaultIncomingCallP18, _props$styleProps9, _props$styleProps0, _props$controlProps16, _defaultIncomingCallP19, _props$controlProps17, _props$componentOverr, _props$controlProps18, _props$controlProps19, _props$controlProps20, _props$controlProps21, _props$controlProps22, _props$controlProps23;
33
20
  const incomingCallId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? ((_defaultIncomingCallP = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP === void 0 ? void 0 : _defaultIncomingCallP.id);
34
- const declineCallButtonId = ((_props$controlProps2 = props.controlProps) === null || _props$controlProps2 === void 0 ? void 0 : (_props$controlProps2$ = _props$controlProps2.declineCallButtonProps) === null || _props$controlProps2$ === void 0 ? void 0 : _props$controlProps2$.id) ?? ((_defaultIncomingCallP2 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP2 === void 0 ? void 0 : (_defaultIncomingCallP3 = _defaultIncomingCallP2.declineCallButtonProps) === null || _defaultIncomingCallP3 === void 0 ? void 0 : _defaultIncomingCallP3.id);
35
- const audioCallButtonId = ((_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 ? void 0 : (_props$controlProps3$ = _props$controlProps3.audioCallButtonProps) === null || _props$controlProps3$ === void 0 ? void 0 : _props$controlProps3$.id) ?? ((_defaultIncomingCallP4 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP4 === void 0 ? void 0 : (_defaultIncomingCallP5 = _defaultIncomingCallP4.audioCallButtonProps) === null || _defaultIncomingCallP5 === void 0 ? void 0 : _defaultIncomingCallP5.id);
36
- const videoCallButtonId = ((_props$controlProps4 = props.controlProps) === null || _props$controlProps4 === void 0 ? void 0 : (_props$controlProps4$ = _props$controlProps4.videoCallButtonProps) === null || _props$controlProps4$ === void 0 ? void 0 : _props$controlProps4$.id) ?? ((_defaultIncomingCallP6 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP6 === void 0 ? void 0 : (_defaultIncomingCallP7 = _defaultIncomingCallP6.videoCallButtonProps) === null || _defaultIncomingCallP7 === void 0 ? void 0 : _defaultIncomingCallP7.id);
21
+ const declineCallButtonId = ((_props$controlProps2 = props.controlProps) === null || _props$controlProps2 === void 0 || (_props$controlProps2 = _props$controlProps2.declineCallButtonProps) === null || _props$controlProps2 === void 0 ? void 0 : _props$controlProps2.id) ?? ((_defaultIncomingCallP2 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP2 === void 0 || (_defaultIncomingCallP2 = _defaultIncomingCallP2.declineCallButtonProps) === null || _defaultIncomingCallP2 === void 0 ? void 0 : _defaultIncomingCallP2.id);
22
+ const audioCallButtonId = ((_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 || (_props$controlProps3 = _props$controlProps3.audioCallButtonProps) === null || _props$controlProps3 === void 0 ? void 0 : _props$controlProps3.id) ?? ((_defaultIncomingCallP3 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP3 === void 0 || (_defaultIncomingCallP3 = _defaultIncomingCallP3.audioCallButtonProps) === null || _defaultIncomingCallP3 === void 0 ? void 0 : _defaultIncomingCallP3.id);
23
+ const videoCallButtonId = ((_props$controlProps4 = props.controlProps) === null || _props$controlProps4 === void 0 || (_props$controlProps4 = _props$controlProps4.videoCallButtonProps) === null || _props$controlProps4 === void 0 ? void 0 : _props$controlProps4.id) ?? ((_defaultIncomingCallP4 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP4 === void 0 || (_defaultIncomingCallP4 = _defaultIncomingCallP4.videoCallButtonProps) === null || _defaultIncomingCallP4 === void 0 ? void 0 : _defaultIncomingCallP4.id);
37
24
  const stackStyles = {
38
- root: Object.assign({}, (_defaultIncomingCallP8 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP8 === void 0 ? void 0 : _defaultIncomingCallP8.generalStyleProps, (_props$styleProps = props.styleProps) === null || _props$styleProps === void 0 ? void 0 : _props$styleProps.generalStyleProps)
25
+ root: Object.assign({}, (_defaultIncomingCallP5 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP5 === void 0 ? void 0 : _defaultIncomingCallP5.generalStyleProps, (_props$styleProps = props.styleProps) === null || _props$styleProps === void 0 ? void 0 : _props$styleProps.generalStyleProps)
39
26
  };
40
27
  const leftGroupStackTokens = {
41
- childrenGap: ((_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 ? void 0 : (_props$controlProps5$ = _props$controlProps5.leftGroup) === null || _props$controlProps5$ === void 0 ? void 0 : _props$controlProps5$.gap) ?? ((_defaultIncomingCallP9 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP9 === void 0 ? void 0 : (_defaultIncomingCallP10 = _defaultIncomingCallP9.leftGroup) === null || _defaultIncomingCallP10 === void 0 ? void 0 : _defaultIncomingCallP10.gap)
28
+ childrenGap: ((_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 || (_props$controlProps5 = _props$controlProps5.leftGroup) === null || _props$controlProps5 === void 0 ? void 0 : _props$controlProps5.gap) ?? ((_defaultIncomingCallP6 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP6 === void 0 || (_defaultIncomingCallP6 = _defaultIncomingCallP6.leftGroup) === null || _defaultIncomingCallP6 === void 0 ? void 0 : _defaultIncomingCallP6.gap)
42
29
  };
43
30
  const rightGroupStackTokens = {
44
- childrenGap: ((_props$controlProps6 = props.controlProps) === null || _props$controlProps6 === void 0 ? void 0 : (_props$controlProps6$ = _props$controlProps6.rightGroup) === null || _props$controlProps6$ === void 0 ? void 0 : _props$controlProps6$.gap) ?? ((_defaultIncomingCallP11 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP11 === void 0 ? void 0 : (_defaultIncomingCallP12 = _defaultIncomingCallP11.rightGroup) === null || _defaultIncomingCallP12 === void 0 ? void 0 : _defaultIncomingCallP12.gap)
31
+ childrenGap: ((_props$controlProps6 = props.controlProps) === null || _props$controlProps6 === void 0 || (_props$controlProps6 = _props$controlProps6.rightGroup) === null || _props$controlProps6 === void 0 ? void 0 : _props$controlProps6.gap) ?? ((_defaultIncomingCallP7 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP7 === void 0 || (_defaultIncomingCallP7 = _defaultIncomingCallP7.rightGroup) === null || _defaultIncomingCallP7 === void 0 ? void 0 : _defaultIncomingCallP7.gap)
45
32
  };
46
33
  const middleGroupStackTokens = {
47
- childrenGap: ((_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 ? void 0 : (_props$controlProps7$ = _props$controlProps7.middleGroup) === null || _props$controlProps7$ === void 0 ? void 0 : _props$controlProps7$.gap) ?? ((_defaultIncomingCallP13 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP13 === void 0 ? void 0 : (_defaultIncomingCallP14 = _defaultIncomingCallP13.middleGroup) === null || _defaultIncomingCallP14 === void 0 ? void 0 : _defaultIncomingCallP14.gap)
34
+ childrenGap: ((_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 || (_props$controlProps7 = _props$controlProps7.middleGroup) === null || _props$controlProps7 === void 0 ? void 0 : _props$controlProps7.gap) ?? ((_defaultIncomingCallP8 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP8 === void 0 || (_defaultIncomingCallP8 = _defaultIncomingCallP8.middleGroup) === null || _defaultIncomingCallP8 === void 0 ? void 0 : _defaultIncomingCallP8.gap)
48
35
  };
49
- const declineCallButtonProps = Object.assign({}, (_defaultIncomingCallP15 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP15 === void 0 ? void 0 : _defaultIncomingCallP15.declineCallButtonProps, (_props$controlProps8 = props.controlProps) === null || _props$controlProps8 === void 0 ? void 0 : _props$controlProps8.declineCallButtonProps);
50
- const videoCallButtonProps = Object.assign({}, (_defaultIncomingCallP16 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP16 === void 0 ? void 0 : _defaultIncomingCallP16.videoCallButtonProps, (_props$controlProps9 = props.controlProps) === null || _props$controlProps9 === void 0 ? void 0 : _props$controlProps9.videoCallButtonProps);
51
- const audioCallButtonProps = Object.assign({}, (_defaultIncomingCallP17 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP17 === void 0 ? void 0 : _defaultIncomingCallP17.audioCallButtonProps, (_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.audioCallButtonProps);
52
- const incomingCallTitleProps = Object.assign({}, (_defaultIncomingCallP18 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP18 === void 0 ? void 0 : _defaultIncomingCallP18.incomingCallTitle, (_props$controlProps11 = props.controlProps) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.incomingCallTitle);
53
- const declineCallButtonStyles = Object.assign({}, (_defaultIncomingCallP19 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP19 === void 0 ? void 0 : _defaultIncomingCallP19.declineCallButtonStyleProps, (_props$styleProps2 = props.styleProps) === null || _props$styleProps2 === void 0 ? void 0 : _props$styleProps2.declineCallButtonStyleProps);
54
- const declineCallButtonHoverStyles = Object.assign({}, (_defaultIncomingCallP20 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP20 === void 0 ? void 0 : _defaultIncomingCallP20.declineCallButtonHoverStyleProps, (_props$styleProps3 = props.styleProps) === null || _props$styleProps3 === void 0 ? void 0 : _props$styleProps3.declineCallButtonHoverStyleProps);
55
- const videoCallButtonStyles = Object.assign({}, (_defaultIncomingCallP21 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP21 === void 0 ? void 0 : _defaultIncomingCallP21.videoCallButtonStyleProps, (_props$styleProps4 = props.styleProps) === null || _props$styleProps4 === void 0 ? void 0 : _props$styleProps4.videoCallButtonStyleProps);
56
- const videoCallButtonHoverStyles = Object.assign({}, (_defaultIncomingCallP22 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP22 === void 0 ? void 0 : _defaultIncomingCallP22.videoCallButtonHoverStyleProps, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.videoCallButtonHoverStyleProps);
57
- const audioCallButtonStyles = Object.assign({}, (_defaultIncomingCallP23 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP23 === void 0 ? void 0 : _defaultIncomingCallP23.audioCallButtonStyleProps, (_props$styleProps6 = props.styleProps) === null || _props$styleProps6 === void 0 ? void 0 : _props$styleProps6.audioCallButtonStyleProps);
58
- const audioCallButtonHoverStyles = Object.assign({}, (_defaultIncomingCallP24 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP24 === void 0 ? void 0 : _defaultIncomingCallP24.audioCallButtonHoverStyleProps, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.audioCallButtonHoverStyleProps);
36
+ const declineCallButtonProps = Object.assign({}, (_defaultIncomingCallP9 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP9 === void 0 ? void 0 : _defaultIncomingCallP9.declineCallButtonProps, (_props$controlProps8 = props.controlProps) === null || _props$controlProps8 === void 0 ? void 0 : _props$controlProps8.declineCallButtonProps);
37
+ const videoCallButtonProps = Object.assign({}, (_defaultIncomingCallP0 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP0 === void 0 ? void 0 : _defaultIncomingCallP0.videoCallButtonProps, (_props$controlProps9 = props.controlProps) === null || _props$controlProps9 === void 0 ? void 0 : _props$controlProps9.videoCallButtonProps);
38
+ const audioCallButtonProps = Object.assign({}, (_defaultIncomingCallP1 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP1 === void 0 ? void 0 : _defaultIncomingCallP1.audioCallButtonProps, (_props$controlProps0 = props.controlProps) === null || _props$controlProps0 === void 0 ? void 0 : _props$controlProps0.audioCallButtonProps);
39
+ const incomingCallTitleProps = Object.assign({}, (_defaultIncomingCallP10 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP10 === void 0 ? void 0 : _defaultIncomingCallP10.incomingCallTitle, (_props$controlProps1 = props.controlProps) === null || _props$controlProps1 === void 0 ? void 0 : _props$controlProps1.incomingCallTitle);
40
+ const declineCallButtonStyles = Object.assign({}, (_defaultIncomingCallP11 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP11 === void 0 ? void 0 : _defaultIncomingCallP11.declineCallButtonStyleProps, (_props$styleProps2 = props.styleProps) === null || _props$styleProps2 === void 0 ? void 0 : _props$styleProps2.declineCallButtonStyleProps);
41
+ const declineCallButtonHoverStyles = Object.assign({}, (_defaultIncomingCallP12 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP12 === void 0 ? void 0 : _defaultIncomingCallP12.declineCallButtonHoverStyleProps, (_props$styleProps3 = props.styleProps) === null || _props$styleProps3 === void 0 ? void 0 : _props$styleProps3.declineCallButtonHoverStyleProps);
42
+ const videoCallButtonStyles = Object.assign({}, (_defaultIncomingCallP13 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP13 === void 0 ? void 0 : _defaultIncomingCallP13.videoCallButtonStyleProps, (_props$styleProps4 = props.styleProps) === null || _props$styleProps4 === void 0 ? void 0 : _props$styleProps4.videoCallButtonStyleProps);
43
+ const videoCallButtonHoverStyles = Object.assign({}, (_defaultIncomingCallP14 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP14 === void 0 ? void 0 : _defaultIncomingCallP14.videoCallButtonHoverStyleProps, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.videoCallButtonHoverStyleProps);
44
+ const audioCallButtonStyles = Object.assign({}, (_defaultIncomingCallP15 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP15 === void 0 ? void 0 : _defaultIncomingCallP15.audioCallButtonStyleProps, (_props$styleProps6 = props.styleProps) === null || _props$styleProps6 === void 0 ? void 0 : _props$styleProps6.audioCallButtonStyleProps);
45
+ const audioCallButtonHoverStyles = Object.assign({}, (_defaultIncomingCallP16 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP16 === void 0 ? void 0 : _defaultIncomingCallP16.audioCallButtonHoverStyleProps, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.audioCallButtonHoverStyleProps);
59
46
  const incomingCallTitleStyles = {
60
- root: Object.assign({}, (_defaultIncomingCallP25 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP25 === void 0 ? void 0 : _defaultIncomingCallP25.incomingCallTitleStyleProps, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.incomingCallTitleStyleProps)
47
+ root: Object.assign({}, (_defaultIncomingCallP17 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP17 === void 0 ? void 0 : _defaultIncomingCallP17.incomingCallTitleStyleProps, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.incomingCallTitleStyleProps)
61
48
  };
62
- const incomingCallItemFocusStyles = Object.assign({}, (_defaultIncomingCallP26 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP26 === void 0 ? void 0 : _defaultIncomingCallP26.itemFocusStyleProps, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.itemFocusStyleProps);
49
+ const incomingCallItemFocusStyles = Object.assign({}, (_defaultIncomingCallP18 = _defaultIncomingCallProps.defaultIncomingCallProps.styleProps) === null || _defaultIncomingCallP18 === void 0 ? void 0 : _defaultIncomingCallP18.itemFocusStyleProps, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.itemFocusStyleProps);
63
50
  const declineCustomEvent = {
64
51
  elementType: _Constants.ElementType.IncomingCallDeclineCallButton,
65
52
  elementId: declineCallButtonId,
66
53
  eventName: _Constants.EventNames.IncomingCallEnded
67
54
  };
68
- const handleDeclineCallClick = (0, React.useCallback)(() => {
69
- var _props$controlProps12;
70
-
71
- if ((_props$controlProps12 = props.controlProps) !== null && _props$controlProps12 !== void 0 && _props$controlProps12.onDeclineCallClick) {
72
- var _props$controlProps13;
73
-
74
- (_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.onDeclineCallClick();
55
+ const handleDeclineCallClick = (0, _react.useCallback)(() => {
56
+ var _props$controlProps10;
57
+ if ((_props$controlProps10 = props.controlProps) !== null && _props$controlProps10 !== void 0 && _props$controlProps10.onDeclineCallClick) {
58
+ var _props$controlProps11;
59
+ (_props$controlProps11 = props.controlProps) === null || _props$controlProps11 === void 0 || _props$controlProps11.onDeclineCallClick();
75
60
  }
76
61
  }, []);
77
62
  const videoCustomEvent = {
@@ -79,13 +64,11 @@ function IncomingCall(props) {
79
64
  elementId: videoCallButtonId,
80
65
  eventName: _Constants.EventNames.OnClick
81
66
  };
82
- const handleVideoCallClick = (0, React.useCallback)(() => {
83
- var _props$controlProps14;
84
-
85
- if ((_props$controlProps14 = props.controlProps) !== null && _props$controlProps14 !== void 0 && _props$controlProps14.onVideoCallClick) {
86
- var _props$controlProps15;
87
-
88
- (_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.onVideoCallClick();
67
+ const handleVideoCallClick = (0, _react.useCallback)(() => {
68
+ var _props$controlProps12;
69
+ if ((_props$controlProps12 = props.controlProps) !== null && _props$controlProps12 !== void 0 && _props$controlProps12.onVideoCallClick) {
70
+ var _props$controlProps13;
71
+ (_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 || _props$controlProps13.onVideoCallClick();
89
72
  }
90
73
  }, []);
91
74
  const audioCustomEvent = {
@@ -93,22 +76,17 @@ function IncomingCall(props) {
93
76
  elementId: audioCallButtonId,
94
77
  eventName: _Constants.EventNames.OnClick
95
78
  };
96
- const handleAudioCallClick = (0, React.useCallback)(() => {
97
- var _props$controlProps16;
98
-
99
- if ((_props$controlProps16 = props.controlProps) !== null && _props$controlProps16 !== void 0 && _props$controlProps16.onAudioCallClick) {
100
- var _props$controlProps17;
101
-
102
- (_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.onAudioCallClick();
79
+ const handleAudioCallClick = (0, _react.useCallback)(() => {
80
+ var _props$controlProps14;
81
+ if ((_props$controlProps14 = props.controlProps) !== null && _props$controlProps14 !== void 0 && _props$controlProps14.onAudioCallClick) {
82
+ var _props$controlProps15;
83
+ (_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 || _props$controlProps15.onAudioCallClick();
103
84
  }
104
85
  }, []);
105
- (0, React.useEffect)(() => {
86
+ (0, _react.useEffect)(() => {
106
87
  const declineCallShortcut = e => e.ctrlKey && e.shiftKey && e.key === _Constants.KeyCodes.DeclineCallHotKey;
107
-
108
88
  const acceptAudioCallShortcut = e => e.ctrlKey && e.shiftKey && e.key === _Constants.KeyCodes.AcceptAudioCallHotKey;
109
-
110
89
  const acceptVideoCallShortcut = e => e.ctrlKey && e.shiftKey && e.key === _Constants.KeyCodes.AcceptVideoCallHotKey;
111
-
112
90
  const shortcutKeysHandler = e => {
113
91
  if (declineCallShortcut(e)) {
114
92
  handleDeclineCallClick();
@@ -118,13 +96,11 @@ function IncomingCall(props) {
118
96
  handleVideoCallClick();
119
97
  }
120
98
  };
121
-
122
99
  const ignoreDefault = e => {
123
100
  if (declineCallShortcut(e) || acceptAudioCallShortcut(e) || acceptVideoCallShortcut(e)) {
124
101
  e.preventDefault();
125
102
  }
126
103
  };
127
-
128
104
  window.addEventListener("keyup", shortcutKeysHandler);
129
105
  window.addEventListener("keydown", ignoreDefault);
130
106
  return () => {
@@ -132,12 +108,11 @@ function IncomingCall(props) {
132
108
  window.removeEventListener("keydown", ignoreDefault);
133
109
  };
134
110
  }, []);
135
- (0, React.useEffect)(() => {
111
+ (0, _react.useEffect)(() => {
136
112
  // Setting focus to decline call button when incoming call alert appears
137
113
  if (declineCallButtonId) {
138
114
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
139
115
  const declineCallButton = document.getElementById(declineCallButtonId);
140
-
141
116
  if (declineCallButton) {
142
117
  declineCallButton.focus();
143
118
  }
@@ -145,10 +120,10 @@ function IncomingCall(props) {
145
120
  }, []);
146
121
  return /*#__PURE__*/React.createElement(_react2.Stack, {
147
122
  horizontal: true,
148
- className: (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.className,
123
+ className: (_props$styleProps0 = props.styleProps) === null || _props$styleProps0 === void 0 ? void 0 : _props$styleProps0.className,
149
124
  horizontalAlign: "space-between",
150
125
  styles: stackStyles,
151
- dir: ((_props$controlProps18 = props.controlProps) === null || _props$controlProps18 === void 0 ? void 0 : _props$controlProps18.dir) ?? ((_defaultIncomingCallP27 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP27 === void 0 ? void 0 : _defaultIncomingCallP27.dir),
126
+ dir: ((_props$controlProps16 = props.controlProps) === null || _props$controlProps16 === void 0 ? void 0 : _props$controlProps16.dir) ?? ((_defaultIncomingCallP19 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP19 === void 0 ? void 0 : _defaultIncomingCallP19.dir),
152
127
  role: "alert",
153
128
  "aria-label": incomingCallTitleProps === null || incomingCallTitleProps === void 0 ? void 0 : incomingCallTitleProps.text
154
129
  }, /*#__PURE__*/React.createElement(_react2.Stack, {
@@ -156,35 +131,35 @@ function IncomingCall(props) {
156
131
  id: _Constants.Ids.IncomingCallLeftGroupId,
157
132
  verticalAlign: "center",
158
133
  tokens: leftGroupStackTokens
159
- }, !((_props$controlProps19 = props.controlProps) !== null && _props$controlProps19 !== void 0 && _props$controlProps19.hideIncomingCallTitle) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.incomingCallTitle) || /*#__PURE__*/React.createElement(_react2.Label, _extends({}, incomingCallTitleProps, {
134
+ }, !((_props$controlProps17 = props.controlProps) !== null && _props$controlProps17 !== void 0 && _props$controlProps17.hideIncomingCallTitle) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.incomingCallTitle) || /*#__PURE__*/React.createElement(_react2.Label, _extends({}, incomingCallTitleProps, {
160
135
  id: incomingCallId + "-title",
161
136
  tabIndex: -1,
162
137
  styles: incomingCallTitleStyles
163
- }), incomingCallTitleProps === null || incomingCallTitleProps === void 0 ? void 0 : incomingCallTitleProps.text)), (0, _utils.processCustomComponents)((_props$controlProps20 = props.controlProps) === null || _props$controlProps20 === void 0 ? void 0 : (_props$controlProps21 = _props$controlProps20.leftGroup) === null || _props$controlProps21 === void 0 ? void 0 : _props$controlProps21.children)), /*#__PURE__*/React.createElement(_react2.Stack, {
138
+ }), incomingCallTitleProps === null || incomingCallTitleProps === void 0 ? void 0 : incomingCallTitleProps.text)), (0, _utils.processCustomComponents)((_props$controlProps18 = props.controlProps) === null || _props$controlProps18 === void 0 || (_props$controlProps18 = _props$controlProps18.leftGroup) === null || _props$controlProps18 === void 0 ? void 0 : _props$controlProps18.children)), /*#__PURE__*/React.createElement(_react2.Stack, {
164
139
  horizontal: true,
165
140
  id: _Constants.Ids.IncomingCallMiddleGroupId,
166
141
  verticalAlign: "center",
167
142
  tokens: middleGroupStackTokens
168
- }, (0, _utils.processCustomComponents)((_props$controlProps22 = props.controlProps) === null || _props$controlProps22 === void 0 ? void 0 : (_props$controlProps23 = _props$controlProps22.middleGroup) === null || _props$controlProps23 === void 0 ? void 0 : _props$controlProps23.children)), /*#__PURE__*/React.createElement(_react2.Stack, {
143
+ }, (0, _utils.processCustomComponents)((_props$controlProps19 = props.controlProps) === null || _props$controlProps19 === void 0 || (_props$controlProps19 = _props$controlProps19.middleGroup) === null || _props$controlProps19 === void 0 ? void 0 : _props$controlProps19.children)), /*#__PURE__*/React.createElement(_react2.Stack, {
169
144
  horizontal: true,
170
145
  id: _Constants.Ids.IncomingCallRightGroupId,
171
146
  verticalAlign: "center",
172
147
  tokens: rightGroupStackTokens
173
- }, (0, _utils.processCustomComponents)((_props$controlProps24 = props.controlProps) === null || _props$controlProps24 === void 0 ? void 0 : (_props$controlProps25 = _props$controlProps24.rightGroup) === null || _props$controlProps25 === void 0 ? void 0 : _props$controlProps25.children), !((_props$controlProps26 = props.controlProps) !== null && _props$controlProps26 !== void 0 && _props$controlProps26.hideDeclineCall) && /*#__PURE__*/React.createElement(_CommandButton.default, _extends({}, declineCallButtonProps, {
148
+ }, (0, _utils.processCustomComponents)((_props$controlProps20 = props.controlProps) === null || _props$controlProps20 === void 0 || (_props$controlProps20 = _props$controlProps20.rightGroup) === null || _props$controlProps20 === void 0 ? void 0 : _props$controlProps20.children), !((_props$controlProps21 = props.controlProps) !== null && _props$controlProps21 !== void 0 && _props$controlProps21.hideDeclineCall) && /*#__PURE__*/React.createElement(_CommandButton.default, _extends({}, declineCallButtonProps, {
174
149
  onClick: handleDeclineCallClick,
175
150
  id: declineCallButtonId,
176
151
  styles: declineCallButtonStyles,
177
152
  hoverStyles: declineCallButtonHoverStyles,
178
153
  focusStyles: incomingCallItemFocusStyles,
179
154
  customEvent: declineCustomEvent
180
- })), !((_props$controlProps27 = props.controlProps) !== null && _props$controlProps27 !== void 0 && _props$controlProps27.hideVideoCall) && /*#__PURE__*/React.createElement(_CommandButton.default, _extends({}, videoCallButtonProps, {
155
+ })), !((_props$controlProps22 = props.controlProps) !== null && _props$controlProps22 !== void 0 && _props$controlProps22.hideVideoCall) && /*#__PURE__*/React.createElement(_CommandButton.default, _extends({}, videoCallButtonProps, {
181
156
  onClick: handleVideoCallClick,
182
157
  id: videoCallButtonId,
183
158
  styles: videoCallButtonStyles,
184
159
  hoverStyles: videoCallButtonHoverStyles,
185
160
  focusStyles: incomingCallItemFocusStyles,
186
161
  customEvent: videoCustomEvent
187
- })), !((_props$controlProps28 = props.controlProps) !== null && _props$controlProps28 !== void 0 && _props$controlProps28.hideAudioCall) && /*#__PURE__*/React.createElement(_CommandButton.default, _extends({}, audioCallButtonProps, {
162
+ })), !((_props$controlProps23 = props.controlProps) !== null && _props$controlProps23 !== void 0 && _props$controlProps23.hideAudioCall) && /*#__PURE__*/React.createElement(_CommandButton.default, _extends({}, audioCallButtonProps, {
188
163
  onClick: handleAudioCallClick,
189
164
  id: audioCallButtonId,
190
165
  styles: audioCallButtonStyles,
@@ -193,6 +168,4 @@ function IncomingCall(props) {
193
168
  customEvent: audioCustomEvent
194
169
  }))));
195
170
  }
196
-
197
- var _default = IncomingCall;
198
- exports.default = _default;
171
+ var _default = exports.default = IncomingCall;
@@ -4,17 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.componentOverrideProps = void 0;
7
-
8
7
  var React = _interopRequireWildcard(require("react"));
9
-
10
8
  var _react2 = require("@fluentui/react");
11
-
12
9
  var _Icons = require("../../../../../../assets/Icons");
13
-
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
18
11
  const agentImageStyles = {
19
12
  root: {
20
13
  height: "50px",
@@ -45,7 +38,7 @@ const stackStyles = {
45
38
  paddingLeft: "10px"
46
39
  }
47
40
  };
48
- const componentOverrideProps = {
41
+ const componentOverrideProps = exports.componentOverrideProps = {
49
42
  incomingCallTitle: /*#__PURE__*/React.createElement(_react2.Stack, {
50
43
  horizontal: true
51
44
  }, /*#__PURE__*/React.createElement(_react2.Image, {
@@ -60,5 +53,4 @@ const componentOverrideProps = {
60
53
  }, "Omnichannel Agent 007"), /*#__PURE__*/React.createElement(_react2.Label, {
61
54
  styles: label2Styles
62
55
  }, "Incoming call")))
63
- };
64
- exports.componentOverrideProps = componentOverrideProps;
56
+ };
@@ -4,16 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.componentOverridesControlProps = void 0;
7
-
8
7
  var _defaultIncomingCallControlProps = require("./defaultIncomingCallControlProps");
9
-
10
8
  var _componentOverrideProps = require("./componentOverrideProps");
11
-
12
9
  var _componentOverridesStyleProps = require("../defaultStyles/componentOverridesStyleProps");
13
-
14
- const componentOverridesControlProps = {
10
+ const componentOverridesControlProps = exports.componentOverridesControlProps = {
15
11
  componentOverrides: _componentOverrideProps.componentOverrideProps,
16
12
  controlProps: _defaultIncomingCallControlProps.defaultIncomingCallControlProps,
17
13
  styleProps: _componentOverridesStyleProps.componentOverridesStyleProps
18
- };
19
- exports.componentOverridesControlProps = componentOverridesControlProps;
14
+ };
@@ -4,10 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultIncomingCallControlProps = void 0;
7
-
8
7
  var _Constants = require("../../../../../../common/Constants");
9
-
10
- const defaultIncomingCallControlProps = {
8
+ const defaultIncomingCallControlProps = exports.defaultIncomingCallControlProps = {
11
9
  id: _Constants.Ids.DefaultIncomingCallId,
12
10
  dir: "ltr",
13
11
  ariaLabel: _Constants.AriaLabels.IncomingCallArea,
@@ -61,5 +59,4 @@ const defaultIncomingCallControlProps = {
61
59
  id: _Constants.Ids.IncomingCallTitleId,
62
60
  text: _Constants.Texts.IncomingCallTitle
63
61
  }
64
- };
65
- exports.defaultIncomingCallControlProps = defaultIncomingCallControlProps;
62
+ };
@@ -4,12 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultIncomingCallControlPropsRtl = void 0;
7
-
8
7
  var _Icons = require("../../../../../../assets/Icons");
9
-
10
8
  var _Constants = require("../../../../../../common/Constants");
11
-
12
- const defaultIncomingCallControlPropsRtl = {
9
+ const defaultIncomingCallControlPropsRtl = exports.defaultIncomingCallControlPropsRtl = {
13
10
  id: _Constants.Ids.DefaultIncomingCallPopupId,
14
11
  ariaLabel: _Constants.AriaLabels.IncomingCallArea,
15
12
  hideAudioCall: false,
@@ -87,5 +84,4 @@ const defaultIncomingCallControlPropsRtl = {
87
84
  id: _Constants.Ids.IncomingCallTitleId,
88
85
  text: _Constants.Texts.IncomingCallTitle
89
86
  }
90
- };
91
- exports.defaultIncomingCallControlPropsRtl = defaultIncomingCallControlPropsRtl;
87
+ };
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultIncomingCallProps = void 0;
7
-
8
7
  var _defaultIncomingCallStyleProps = require("../defaultStyles/defaultIncomingCallStyleProps");
9
-
10
8
  var _defaultIncomingCallControlProps = require("./defaultIncomingCallControlProps");
11
-
12
- const defaultIncomingCallProps = {
9
+ const defaultIncomingCallProps = exports.defaultIncomingCallProps = {
13
10
  controlProps: _defaultIncomingCallControlProps.defaultIncomingCallControlProps,
14
11
  styleProps: _defaultIncomingCallStyleProps.defaultIncomingCallStyleProps
15
- };
16
- exports.defaultIncomingCallProps = defaultIncomingCallProps;
12
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.componentOverridesStyleProps = void 0;
7
- const componentOverridesStyleProps = {
7
+ const componentOverridesStyleProps = exports.componentOverridesStyleProps = {
8
8
  generalStyleProps: {
9
9
  background: "#BFB5B5",
10
10
  padding: "5px",
@@ -46,5 +46,4 @@ const componentOverridesStyleProps = {
46
46
  itemFocusStyleProps: {
47
47
  outline: "2px solid #fff"
48
48
  }
49
- };
50
- exports.componentOverridesStyleProps = componentOverridesStyleProps;
49
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultIncomingCallStyleProps = void 0;
7
- const defaultIncomingCallStyleProps = {
7
+ const defaultIncomingCallStyleProps = exports.defaultIncomingCallStyleProps = {
8
8
  generalStyleProps: {
9
9
  background: "#000",
10
10
  padding: "5px",
@@ -57,5 +57,4 @@ const defaultIncomingCallStyleProps = {
57
57
  itemFocusStyleProps: {
58
58
  outline: "2px solid #FFFFFF"
59
59
  }
60
- };
61
- exports.defaultIncomingCallStyleProps = defaultIncomingCallStyleProps;
60
+ };
@@ -4,17 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = require("@fluentui/react");
9
-
10
8
  var _react2 = _interopRequireWildcard(require("react"));
11
-
12
9
  var _utils = require("../../../../common/utils");
13
-
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
-
16
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
-
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
18
11
  function Timer(props) {
19
12
  const [time, setTime] = (0, _react2.useState)(0);
20
13
  const running = true;
@@ -31,6 +24,4 @@ function Timer(props) {
31
24
  styles: timerStyles
32
25
  }, props.showHours && (0, _utils.getHours)(time) + ":", (0, _utils.getMinutes)(time), ":", (0, _utils.getSeconds)(time));
33
26
  }
34
-
35
- var _default = Timer;
36
- exports.default = _default;
27
+ var _default = exports.default = Timer;