@microsoft/omnichannel-chat-components 0.1.0-main.3e712be → 0.1.0-main.3fafc45

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 (131) hide show
  1. package/README.md +1 -0
  2. package/lib/cjs/assets/Icons.js +48 -0
  3. package/lib/cjs/common/Constants.js +11 -6
  4. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +31 -1
  5. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -16
  6. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +0 -12
  7. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +4 -16
  8. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +31 -1
  9. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -4
  10. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -10
  11. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/defaultIncomingCallStyleProps.js +8 -8
  12. package/lib/cjs/components/chatbutton/ChatButton.js +37 -26
  13. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +4 -1
  14. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -4
  15. package/lib/cjs/components/common/commandbutton/CommandButton.js +5 -4
  16. package/lib/cjs/components/confirmationpane/ConfirmationPane.js +12 -10
  17. package/lib/cjs/components/footer/Footer.js +1 -1
  18. package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +5 -13
  19. package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +4 -9
  20. package/lib/cjs/components/header/Header.js +1 -1
  21. package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -4
  22. package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +4 -10
  23. package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -4
  24. package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +48 -18
  25. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -4
  26. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +1 -1
  27. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -4
  28. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -4
  29. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -4
  30. package/lib/cjs/components/postchatsurveypane/PostChatSurveyPane.js +2 -2
  31. package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +5 -4
  32. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -1
  33. package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +17 -15
  34. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -4
  35. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -4
  36. package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +14 -12
  37. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -4
  38. package/lib/cjs/index.js +134 -0
  39. package/lib/cjs/services/BroadcastService.js +31 -7
  40. package/lib/esm/assets/Icons.js +21 -0
  41. package/lib/esm/common/Constants.js +9 -4
  42. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +33 -3
  43. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -10
  44. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +0 -12
  45. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +4 -16
  46. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +33 -3
  47. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -2
  48. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -6
  49. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/defaultIncomingCallStyleProps.js +8 -8
  50. package/lib/esm/components/chatbutton/ChatButton.js +37 -26
  51. package/lib/esm/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +4 -1
  52. package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -2
  53. package/lib/esm/components/common/commandbutton/CommandButton.js +5 -4
  54. package/lib/esm/components/confirmationpane/ConfirmationPane.js +12 -10
  55. package/lib/esm/components/footer/Footer.js +1 -1
  56. package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +5 -8
  57. package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +4 -9
  58. package/lib/esm/components/header/Header.js +1 -1
  59. package/lib/esm/components/header/common/defaultProps/azureHeaderControlProps.js +2 -2
  60. package/lib/esm/components/header/common/defaultProps/customHeaderControlProps.js +4 -6
  61. package/lib/esm/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -2
  62. package/lib/esm/components/inputvalidationpane/InputValidationPane.js +48 -18
  63. package/lib/esm/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -2
  64. package/lib/esm/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +1 -1
  65. package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -2
  66. package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -2
  67. package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -2
  68. package/lib/esm/components/postchatsurveypane/PostChatSurveyPane.js +2 -2
  69. package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +5 -4
  70. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -1
  71. package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +17 -15
  72. package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -2
  73. package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -2
  74. package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +14 -12
  75. package/lib/esm/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -2
  76. package/lib/esm/index.js +3 -1
  77. package/lib/esm/services/BroadcastService.js +29 -7
  78. package/lib/types/assets/Icons.d.ts +21 -0
  79. package/lib/types/common/Constants.d.ts +7 -1
  80. package/lib/types/components/callingcontainer/subcomponents/CurrentCall/interfaces/ICurrentCallStyleProps.d.ts +0 -4
  81. package/lib/types/components/chatbutton/interfaces/IChatButtonControlProps.d.ts +3 -0
  82. package/lib/types/components/prechatsurveypane/interfaces/IPreChatSurveyPaneButtonStyles.d.ts +1 -0
  83. package/lib/types/index.d.ts +2 -0
  84. package/lib/types/services/BroadcastService.d.ts +1 -0
  85. package/package.json +5 -10
  86. package/lib/cjs/assets/assets.d.js +0 -1
  87. package/lib/cjs/assets/imgs/ChatBubble.svg +0 -28
  88. package/lib/cjs/assets/imgs/ChatReconnectPopupIcon.png +0 -0
  89. package/lib/cjs/assets/imgs/Proactive_banner.png +0 -0
  90. package/lib/cjs/assets/imgs/agent.png +0 -0
  91. package/lib/cjs/assets/imgs/callacceptbutton.svg +0 -3
  92. package/lib/cjs/assets/imgs/callrejectbutton.svg +0 -3
  93. package/lib/cjs/assets/imgs/chat.svg +0 -47
  94. package/lib/cjs/assets/imgs/chatIcon.svg +0 -16
  95. package/lib/cjs/assets/imgs/closeButton.svg +0 -3
  96. package/lib/cjs/assets/imgs/closeChatButton.svg +0 -3
  97. package/lib/cjs/assets/imgs/error.svg +0 -3
  98. package/lib/cjs/assets/imgs/lcwAudioOff.svg +0 -3
  99. package/lib/cjs/assets/imgs/lcwAudioOn.svg +0 -3
  100. package/lib/cjs/assets/imgs/loading.gif +0 -0
  101. package/lib/cjs/assets/imgs/minimizeChatButton.svg +0 -3
  102. package/lib/cjs/assets/imgs/transcriptDownloadIcon.svg +0 -4
  103. package/lib/cjs/assets/imgs/transcriptEmailIcon.svg +0 -5
  104. package/lib/cjs/assets/imgs/videocallacceptbutton.svg +0 -3
  105. package/lib/cjs/assets/imgs/videooff.svg +0 -3
  106. package/lib/cjs/assets/imgs/videoon.svg +0 -3
  107. package/lib/cjs/assets/imgs/voiceoff.svg +0 -3
  108. package/lib/cjs/assets/imgs/voiceon.svg +0 -3
  109. package/lib/esm/assets/assets.d.js +0 -0
  110. package/lib/esm/assets/imgs/ChatBubble.svg +0 -28
  111. package/lib/esm/assets/imgs/ChatReconnectPopupIcon.png +0 -0
  112. package/lib/esm/assets/imgs/Proactive_banner.png +0 -0
  113. package/lib/esm/assets/imgs/agent.png +0 -0
  114. package/lib/esm/assets/imgs/callacceptbutton.svg +0 -3
  115. package/lib/esm/assets/imgs/callrejectbutton.svg +0 -3
  116. package/lib/esm/assets/imgs/chat.svg +0 -47
  117. package/lib/esm/assets/imgs/chatIcon.svg +0 -16
  118. package/lib/esm/assets/imgs/closeButton.svg +0 -3
  119. package/lib/esm/assets/imgs/closeChatButton.svg +0 -3
  120. package/lib/esm/assets/imgs/error.svg +0 -3
  121. package/lib/esm/assets/imgs/lcwAudioOff.svg +0 -3
  122. package/lib/esm/assets/imgs/lcwAudioOn.svg +0 -3
  123. package/lib/esm/assets/imgs/loading.gif +0 -0
  124. package/lib/esm/assets/imgs/minimizeChatButton.svg +0 -3
  125. package/lib/esm/assets/imgs/transcriptDownloadIcon.svg +0 -4
  126. package/lib/esm/assets/imgs/transcriptEmailIcon.svg +0 -5
  127. package/lib/esm/assets/imgs/videocallacceptbutton.svg +0 -3
  128. package/lib/esm/assets/imgs/videooff.svg +0 -3
  129. package/lib/esm/assets/imgs/videoon.svg +0 -3
  130. package/lib/esm/assets/imgs/voiceoff.svg +0 -3
  131. package/lib/esm/assets/imgs/voiceon.svg +0 -3
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import * as React from "react";
4
4
  import { Stack, initializeIcons } from "@fluentui/react";
@@ -1,7 +1,4 @@
1
- import lcwAudioOff from "../../../../assets/imgs/lcwAudioOff.svg";
2
- import lcwAudioOn from "../../../../assets/imgs/lcwAudioOn.svg";
3
- import transcriptDownloadIcon from "../../../../assets/imgs/transcriptDownloadIcon.svg";
4
- import transcriptEmailIcon from "../../../../assets/imgs/transcriptEmailIcon.svg";
1
+ import { AudioNotificationOffIconBase64, AudioNotificationOnIconBase64, TranscriptDownloadIconBase64, TranscriptEmailIconBase64 } from "../../../../assets/Icons";
5
2
  export const customFooterControlProps = {
6
3
  id: "oc-lcw-footer",
7
4
  hideDownloadTranscriptButton: false,
@@ -29,7 +26,7 @@ export const customFooterControlProps = {
29
26
  id: "oc-lcw-footer-downloadtranscript-button",
30
27
  type: "icon",
31
28
  imageIconProps: {
32
- src: transcriptDownloadIcon
29
+ src: TranscriptDownloadIconBase64
33
30
  },
34
31
  ariaLabel: "Download chat transcript"
35
32
  },
@@ -37,7 +34,7 @@ export const customFooterControlProps = {
37
34
  id: "oc-lcw-footer-emailtranscript-button",
38
35
  type: "icon",
39
36
  imageIconProps: {
40
- src: transcriptEmailIcon
37
+ src: TranscriptEmailIconBase64
41
38
  },
42
39
  ariaLabel: "Email Transcript"
43
40
  },
@@ -46,10 +43,10 @@ export const customFooterControlProps = {
46
43
  ariaLabel: "Turn sound off",
47
44
  toggleAriaLabel: "Turn sound on",
48
45
  imageIconProps: {
49
- src: lcwAudioOn
46
+ src: AudioNotificationOnIconBase64
50
47
  },
51
48
  imageToggleIconProps: {
52
- src: lcwAudioOff
49
+ src: AudioNotificationOffIconBase64
53
50
  }
54
51
  }
55
52
  };
@@ -11,24 +11,19 @@ function AudioNotificationButton(props) {
11
11
  const iconButtonStyles = {
12
12
  root: props === null || props === void 0 ? void 0 : props.styles,
13
13
  rootHovered: props === null || props === void 0 ? void 0 : props.hoverStyles,
14
- rootFocused: props === null || props === void 0 ? void 0 : props.focusStyles
14
+ rootFocused: props === null || props === void 0 ? void 0 : props.focusStyles,
15
+ rootPressed: props === null || props === void 0 ? void 0 : props.hoverStyles
15
16
  }; //imageIconProps > iconName
16
17
 
17
18
  const volume0Icon = props.imageToggleIconProps ? {
18
19
  imageProps: props === null || props === void 0 ? void 0 : props.imageToggleIconProps
19
20
  } : {
20
- iconName: (props === null || props === void 0 ? void 0 : props.toggleIconName) ?? "Volume0",
21
- styles: {
22
- root: props.styles
23
- }
21
+ iconName: (props === null || props === void 0 ? void 0 : props.toggleIconName) ?? "Volume0"
24
22
  };
25
23
  const volume3Icon = props.imageIconProps ? {
26
24
  imageProps: props === null || props === void 0 ? void 0 : props.imageIconProps
27
25
  } : {
28
- iconName: (props === null || props === void 0 ? void 0 : props.iconName) ?? "Volume3",
29
- styles: {
30
- root: props.styles
31
- }
26
+ iconName: (props === null || props === void 0 ? void 0 : props.iconName) ?? "Volume3"
32
27
  };
33
28
  const handleOnClick = useCallback(() => {
34
29
  setMuted(!muted);
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
1
+ 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); }
2
2
 
3
3
  import * as React from "react";
4
4
  import { Image, Label, Stack, initializeIcons } from "@fluentui/react";
@@ -1,4 +1,4 @@
1
- import chatIcon from "../../../../assets/imgs/chatIcon.svg";
1
+ import { LegacyChatIconBase64 } from "../../../../assets/Icons";
2
2
  export const azureHeaderControlProps = {
3
3
  id: "oc-lcw-header",
4
4
  hideIcon: false,
@@ -31,7 +31,7 @@ export const azureHeaderControlProps = {
31
31
  },
32
32
  headerIconProps: {
33
33
  id: "oc-lcw-header-icon",
34
- src: chatIcon,
34
+ src: LegacyChatIconBase64,
35
35
  alt: "Chat Icon"
36
36
  },
37
37
  headerTitleProps: {
@@ -1,6 +1,4 @@
1
- import chatIcon from "../../../../assets/imgs/chatIcon.svg";
2
- import closeChatButton from "../../../../assets/imgs/closeChatButton.svg";
3
- import minimizeChatButton from "../../../../assets/imgs/minimizeChatButton.svg";
1
+ import { CloseChatButtonIconBase64, LegacyChatIconBase64, MinimizeChatButtonIconBase64 } from "../../../../assets/Icons";
4
2
  export const customHeaderControlProps = {
5
3
  id: "oc-lcw-header",
6
4
  hideIcon: false,
@@ -26,7 +24,7 @@ export const customHeaderControlProps = {
26
24
  id: "oc-lcw-header-minimizebutton",
27
25
  type: "icon",
28
26
  imageIconProps: {
29
- src: minimizeChatButton,
27
+ src: MinimizeChatButtonIconBase64,
30
28
  styles: {
31
29
  image: {
32
30
  height: "16px",
@@ -39,7 +37,7 @@ export const customHeaderControlProps = {
39
37
  id: "oc-lcw-header-closebutton",
40
38
  type: "icon",
41
39
  imageIconProps: {
42
- src: closeChatButton,
40
+ src: CloseChatButtonIconBase64,
43
41
  styles: {
44
42
  image: {
45
43
  height: "16px",
@@ -50,7 +48,7 @@ export const customHeaderControlProps = {
50
48
  },
51
49
  headerIconProps: {
52
50
  id: "oc-lcw-header-icon",
53
- src: chatIcon,
51
+ src: LegacyChatIconBase64,
54
52
  alt: "Chat Icon"
55
53
  },
56
54
  headerTitleProps: {
@@ -1,4 +1,4 @@
1
- import chatIcon from "../../../../assets/imgs/chat.svg";
1
+ import { ModernChatIconBase64 } from "../../../../assets/Icons";
2
2
  export const defaultHeaderControlProps = {
3
3
  id: "oc-lcw-header",
4
4
  hideIcon: false,
@@ -32,7 +32,7 @@ export const defaultHeaderControlProps = {
32
32
  },
33
33
  headerIconProps: {
34
34
  id: "oc-lcw-header-icon",
35
- src: chatIcon,
35
+ src: ModernChatIconBase64,
36
36
  alt: "Chat Icon"
37
37
  },
38
38
  headerTitleProps: {
@@ -19,7 +19,7 @@ import { defaultInputValidationPaneTitleStyles } from "./common/default/defaultS
19
19
  import { generateEventName } from "../../common/utils";
20
20
 
21
21
  function InputValidationPane(props) {
22
- var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$controlProps14, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$styleProps11, _props$styleProps12, _props$controlProps15, _props$styleProps13, _props$styleProps13$c, _props$controlProps16, _props$controlProps17, _props$styleProps14, _props$styleProps14$c, _props$controlProps18, _props$componentOverr, _props$styleProps15, _props$styleProps15$c, _props$controlProps19, _props$controlProps20, _props$componentOverr2, _props$styleProps16, _props$styleProps16$c, _props$controlProps21, _props$controlProps22, _props$componentOverr3, _props$styleProps17, _props$styleProps17$c, _props$controlProps23, _props$controlProps24, _props$componentOverr4, _props$styleProps18, _props$styleProps18$c, _props$controlProps25, _props$controlProps26, _props$controlProps27, _props$styleProps19, _props$styleProps19$c, _props$controlProps28, _props$componentOverr5, _props$styleProps20, _props$styleProps20$c, _props$controlProps29, _props$controlProps30, _props$controlProps31, _props$controlProps32, _props$componentOverr6, _props$styleProps21, _props$styleProps21$c, _props$controlProps33, _props$controlProps34, _props$controlProps35;
22
+ var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$controlProps14, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$styleProps11, _props$styleProps12, _props$styleProps13, _props$styleProps14, _props$styleProps15, _props$styleProps16, _props$controlProps15, _props$styleProps17, _props$styleProps17$c, _props$controlProps16, _props$controlProps17, _props$styleProps18, _props$styleProps18$c, _props$controlProps18, _props$componentOverr, _props$styleProps19, _props$styleProps19$c, _props$controlProps19, _props$controlProps20, _props$componentOverr2, _props$styleProps20, _props$styleProps20$c, _props$controlProps21, _props$controlProps22, _props$componentOverr3, _props$styleProps21, _props$styleProps21$c, _props$controlProps23, _props$controlProps24, _props$componentOverr4, _props$styleProps22, _props$styleProps22$c, _props$controlProps25, _props$controlProps26, _props$controlProps27, _props$styleProps23, _props$styleProps23$c, _props$controlProps28, _props$componentOverr5, _props$styleProps24, _props$styleProps24$c, _props$controlProps29, _props$controlProps30, _props$controlProps31, _props$controlProps32, _props$componentOverr6, _props$styleProps25, _props$styleProps25$c, _props$controlProps33, _props$controlProps34, _props$controlProps35;
23
23
 
24
24
  const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? defaultInputValidationPaneControlProps.id;
25
25
  const [inputValue, setInputValue] = useState("");
@@ -130,27 +130,57 @@ function InputValidationPane(props) {
130
130
  borderStyle: "solid"
131
131
  };
132
132
  const inputStyles = {
133
- root: Object.assign({}, defaultInputValidationPaneInputStyles, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.inputStyleProps)
133
+ root: Object.assign({}, defaultInputValidationPaneInputStyles, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.inputStyleProps),
134
+ field: Object.assign({}, defaultInputValidationPaneInputStyles, (_props$styleProps6 = props.styleProps) === null || _props$styleProps6 === void 0 ? void 0 : _props$styleProps6.inputStyleProps),
135
+ fieldGroup: undefined,
136
+ prefix: undefined,
137
+ suffix: undefined,
138
+ icon: undefined,
139
+ description: undefined,
140
+ wrapper: undefined,
141
+ errorMessage: undefined,
142
+ subComponentStyles: {
143
+ label: {}
144
+ },
145
+ revealButton: undefined,
146
+ revealSpan: undefined,
147
+ revealIcon: undefined
134
148
  };
135
149
  const inputWithErrorMessageStyles = {
136
- root: Object.assign({}, defaultInputValidationPaneInputStyles, redBorderStyles, (_props$styleProps6 = props.styleProps) === null || _props$styleProps6 === void 0 ? void 0 : _props$styleProps6.inputStyleProps)
150
+ root: Object.assign({}, defaultInputValidationPaneInputStyles, redBorderStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.inputStyleProps),
151
+ field: Object.assign({}, defaultInputValidationPaneInputStyles, redBorderStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.inputStyleProps),
152
+ fieldGroup: undefined,
153
+ prefix: undefined,
154
+ suffix: undefined,
155
+ icon: undefined,
156
+ description: undefined,
157
+ wrapper: undefined,
158
+ errorMessage: undefined,
159
+ subComponentStyles: {
160
+ label: {}
161
+ },
162
+ revealButton: undefined,
163
+ revealSpan: undefined,
164
+ revealIcon: undefined
137
165
  };
138
166
  const invalidInputErrorMessageStyles = {
139
- root: Object.assign({}, defaultInputValidationPaneInvalidInputErrorMessageStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.invalidInputErrorMessageStyleProps)
167
+ root: Object.assign({}, defaultInputValidationPaneInvalidInputErrorMessageStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.invalidInputErrorMessageStyleProps)
140
168
  };
141
169
  const buttonGroupStyles = {
142
- root: Object.assign({}, defaultInputValidationPaneButtonGroupStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.buttonGroupStyleProps)
170
+ root: Object.assign({}, defaultInputValidationPaneButtonGroupStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.buttonGroupStyleProps)
143
171
  };
144
172
  const sendButtonStyles = {
145
- root: Object.assign({}, defaultInputValidationPaneSendButtonStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.sendButtonStyleProps),
146
- rootHovered: Object.assign({}, defaultInputValidationPaneSendButtonHoveredStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.sendButtonHoveredStyleProps)
173
+ root: Object.assign({}, defaultInputValidationPaneSendButtonStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.sendButtonStyleProps),
174
+ rootHovered: Object.assign({}, defaultInputValidationPaneSendButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.sendButtonHoveredStyleProps),
175
+ rootPressed: Object.assign({}, defaultInputValidationPaneSendButtonHoveredStyles, (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.sendButtonHoveredStyleProps)
147
176
  };
148
177
  const cancelButtonStyles = {
149
- root: Object.assign({}, defaultInputValidationPaneCancelButtonStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.cancelButtonStyleProps),
150
- rootHovered: Object.assign({}, defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.cancelButtonHoveredStyleProps)
178
+ root: Object.assign({}, defaultInputValidationPaneCancelButtonStyles, (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : _props$styleProps14.cancelButtonStyleProps),
179
+ rootHovered: Object.assign({}, defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 ? void 0 : _props$styleProps15.cancelButtonHoveredStyleProps),
180
+ rootPressed: Object.assign({}, defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps16 = props.styleProps) === null || _props$styleProps16 === void 0 ? void 0 : _props$styleProps16.cancelButtonHoveredStyleProps)
151
181
  };
152
182
  return /*#__PURE__*/React.createElement(React.Fragment, null, !((_props$controlProps15 = props.controlProps) !== null && _props$controlProps15 !== void 0 && _props$controlProps15.hideInputValidationPane) && /*#__PURE__*/React.createElement(Stack, {
153
- className: (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : (_props$styleProps13$c = _props$styleProps13.classNames) === null || _props$styleProps13$c === void 0 ? void 0 : _props$styleProps13$c.containerClassName,
183
+ className: (_props$styleProps17 = props.styleProps) === null || _props$styleProps17 === void 0 ? void 0 : (_props$styleProps17$c = _props$styleProps17.classNames) === null || _props$styleProps17$c === void 0 ? void 0 : _props$styleProps17$c.containerClassName,
154
184
  id: elementId,
155
185
  tabIndex: -1,
156
186
  onKeyDown: handleEscKeyDown,
@@ -158,22 +188,22 @@ function InputValidationPane(props) {
158
188
  "aria-label": ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.inputValidationPaneAriaLabel) || defaultInputValidationPaneControlProps.inputValidationPaneAriaLabel,
159
189
  styles: containerStyles
160
190
  }, /*#__PURE__*/React.createElement(Stack, {
161
- className: (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : (_props$styleProps14$c = _props$styleProps14.classNames) === null || _props$styleProps14$c === void 0 ? void 0 : _props$styleProps14$c.headerGroupClassName,
191
+ className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 ? void 0 : (_props$styleProps18$c = _props$styleProps18.classNames) === null || _props$styleProps18$c === void 0 ? void 0 : _props$styleProps18$c.headerGroupClassName,
162
192
  styles: headerGroupStyles,
163
193
  tabIndex: -1,
164
194
  id: elementId + "-headergroup"
165
195
  }, !((_props$controlProps18 = props.controlProps) !== null && _props$controlProps18 !== void 0 && _props$controlProps18.hideTitle) && (decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.title) || /*#__PURE__*/React.createElement(Label, {
166
- className: (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 ? void 0 : (_props$styleProps15$c = _props$styleProps15.classNames) === null || _props$styleProps15$c === void 0 ? void 0 : _props$styleProps15$c.titleClassName,
196
+ className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 ? void 0 : (_props$styleProps19$c = _props$styleProps19.classNames) === null || _props$styleProps19$c === void 0 ? void 0 : _props$styleProps19$c.titleClassName,
167
197
  styles: titleStyles,
168
198
  tabIndex: -1,
169
199
  id: elementId + "-title"
170
200
  }, ((_props$controlProps19 = props.controlProps) === null || _props$controlProps19 === void 0 ? void 0 : _props$controlProps19.titleText) || defaultInputValidationPaneControlProps.titleText)), !((_props$controlProps20 = props.controlProps) !== null && _props$controlProps20 !== void 0 && _props$controlProps20.hideSubtitle) && (decodeComponentString((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/React.createElement(Label, {
171
- className: (_props$styleProps16 = props.styleProps) === null || _props$styleProps16 === void 0 ? void 0 : (_props$styleProps16$c = _props$styleProps16.classNames) === null || _props$styleProps16$c === void 0 ? void 0 : _props$styleProps16$c.subtitleClassName,
201
+ className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 ? void 0 : (_props$styleProps20$c = _props$styleProps20.classNames) === null || _props$styleProps20$c === void 0 ? void 0 : _props$styleProps20$c.subtitleClassName,
172
202
  styles: subtitleStyles,
173
203
  tabIndex: -1,
174
204
  id: elementId + "-subtitle"
175
205
  }, ((_props$controlProps21 = props.controlProps) === null || _props$controlProps21 === void 0 ? void 0 : _props$controlProps21.subtitleText) || defaultInputValidationPaneControlProps.subtitleText)), !((_props$controlProps22 = props.controlProps) !== null && _props$controlProps22 !== void 0 && _props$controlProps22.hideInput) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.input) || /*#__PURE__*/React.createElement(TextField, {
176
- className: (_props$styleProps17 = props.styleProps) === null || _props$styleProps17 === void 0 ? void 0 : (_props$styleProps17$c = _props$styleProps17.classNames) === null || _props$styleProps17$c === void 0 ? void 0 : _props$styleProps17$c.inputClassName,
206
+ className: (_props$styleProps21 = props.styleProps) === null || _props$styleProps21 === void 0 ? void 0 : (_props$styleProps21$c = _props$styleProps21.classNames) === null || _props$styleProps21$c === void 0 ? void 0 : _props$styleProps21$c.inputClassName,
177
207
  styles: isInvalidInput ? inputWithErrorMessageStyles : inputStyles,
178
208
  tabIndex: 0,
179
209
  value: inputValue ?? defaultInputValidationPaneControlProps.inputInitialText,
@@ -183,7 +213,7 @@ function InputValidationPane(props) {
183
213
  onChange: handleInputChange,
184
214
  onKeyDown: handleInputKeyDown
185
215
  })), isInvalidInput && (decodeComponentString((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.invalidInputErrorMessage) || /*#__PURE__*/React.createElement(Stack, {
186
- className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 ? void 0 : (_props$styleProps18$c = _props$styleProps18.classNames) === null || _props$styleProps18$c === void 0 ? void 0 : _props$styleProps18$c.invalidInputErrorMessageClassName,
216
+ className: (_props$styleProps22 = props.styleProps) === null || _props$styleProps22 === void 0 ? void 0 : (_props$styleProps22$c = _props$styleProps22.classNames) === null || _props$styleProps22$c === void 0 ? void 0 : _props$styleProps22$c.invalidInputErrorMessageClassName,
187
217
  styles: invalidInputErrorMessageStyles,
188
218
  "aria-label": ((_props$controlProps25 = props.controlProps) === null || _props$controlProps25 === void 0 ? void 0 : _props$controlProps25.invalidInputErrorMessageText) || defaultInputValidationPaneControlProps.invalidInputErrorMessageText,
189
219
  tabIndex: -1,
@@ -191,12 +221,12 @@ function InputValidationPane(props) {
191
221
  id: elementId + "-invalidinputerrormessage"
192
222
  }, ((_props$controlProps26 = props.controlProps) === null || _props$controlProps26 === void 0 ? void 0 : _props$controlProps26.invalidInputErrorMessageText) || defaultInputValidationPaneControlProps.invalidInputErrorMessageText))), /*#__PURE__*/React.createElement(Stack, {
193
223
  horizontal: ((_props$controlProps27 = props.controlProps) === null || _props$controlProps27 === void 0 ? void 0 : _props$controlProps27.isButtonGroupHorizontal) ?? defaultInputValidationPaneControlProps.isButtonGroupHorizontal,
194
- className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 ? void 0 : (_props$styleProps19$c = _props$styleProps19.classNames) === null || _props$styleProps19$c === void 0 ? void 0 : _props$styleProps19$c.buttonGroupClassName,
224
+ className: (_props$styleProps23 = props.styleProps) === null || _props$styleProps23 === void 0 ? void 0 : (_props$styleProps23$c = _props$styleProps23.classNames) === null || _props$styleProps23$c === void 0 ? void 0 : _props$styleProps23$c.buttonGroupClassName,
195
225
  styles: buttonGroupStyles,
196
226
  tabIndex: -1,
197
227
  id: elementId + "-buttongroup"
198
228
  }, !((_props$controlProps28 = props.controlProps) !== null && _props$controlProps28 !== void 0 && _props$controlProps28.hideSendButton) && (decodeComponentString((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.sendButton) || /*#__PURE__*/React.createElement(PrimaryButton, {
199
- className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 ? void 0 : (_props$styleProps20$c = _props$styleProps20.classNames) === null || _props$styleProps20$c === void 0 ? void 0 : _props$styleProps20$c.sendButtonClassName,
229
+ className: (_props$styleProps24 = props.styleProps) === null || _props$styleProps24 === void 0 ? void 0 : (_props$styleProps24$c = _props$styleProps24.classNames) === null || _props$styleProps24$c === void 0 ? void 0 : _props$styleProps24$c.sendButtonClassName,
200
230
  styles: sendButtonStyles,
201
231
  title: ((_props$controlProps29 = props.controlProps) === null || _props$controlProps29 === void 0 ? void 0 : _props$controlProps29.sendButtonText) || defaultInputValidationPaneControlProps.sendButtonText,
202
232
  tabIndex: 0,
@@ -206,7 +236,7 @@ function InputValidationPane(props) {
206
236
  id: elementId + "-sendbutton",
207
237
  ariaLabel: ((_props$controlProps31 = props.controlProps) === null || _props$controlProps31 === void 0 ? void 0 : _props$controlProps31.sendButtonAriaLabel) || defaultInputValidationPaneControlProps.sendButtonAriaLabel
208
238
  })), !((_props$controlProps32 = props.controlProps) !== null && _props$controlProps32 !== void 0 && _props$controlProps32.hideCancelButton) && (decodeComponentString((_props$componentOverr6 = props.componentOverrides) === null || _props$componentOverr6 === void 0 ? void 0 : _props$componentOverr6.cancelButton) || /*#__PURE__*/React.createElement(DefaultButton, {
209
- className: (_props$styleProps21 = props.styleProps) === null || _props$styleProps21 === void 0 ? void 0 : (_props$styleProps21$c = _props$styleProps21.classNames) === null || _props$styleProps21$c === void 0 ? void 0 : _props$styleProps21$c.cancelButtonClassName,
239
+ className: (_props$styleProps25 = props.styleProps) === null || _props$styleProps25 === void 0 ? void 0 : (_props$styleProps25$c = _props$styleProps25.classNames) === null || _props$styleProps25$c === void 0 ? void 0 : _props$styleProps25$c.cancelButtonClassName,
210
240
  styles: cancelButtonStyles,
211
241
  title: ((_props$controlProps33 = props.controlProps) === null || _props$controlProps33 === void 0 ? void 0 : _props$controlProps33.cancelButtonText) || defaultInputValidationPaneControlProps.cancelButtonText,
212
242
  tabIndex: 0,
@@ -1,7 +1,7 @@
1
1
  import { ImageFit } from "@fluentui/react";
2
- import chatImg from "../../../../../assets/imgs/chat.svg";
2
+ import { ModernChatIconBase64 } from "../../../../../assets/Icons";
3
3
  export const defaultLoadingPaneIconImageProps = {
4
- src: chatImg,
4
+ src: ModernChatIconBase64,
5
5
  imageFit: ImageFit.center,
6
6
  width: "86px",
7
7
  height: "86px",
@@ -1,7 +1,7 @@
1
1
  export const defaultLoadingPaneIconStyles = {
2
2
  borderRadius: "50%",
3
3
  backgroundColor: "#F1F1F1",
4
- boxShadow: "0px 0px 0.5px 7px #3F75AB",
4
+ boxShadow: "0px 0px 0.5px 7px rgba(196, 196, 196, 0.15)",
5
5
  width: "86px",
6
6
  height: "86px",
7
7
  margin: "0px 0px 20px 0px",
@@ -1,7 +1,7 @@
1
1
  import { ImageFit } from "@fluentui/react";
2
- import chatIcon from "../../../../../assets/imgs/chatIcon.svg";
2
+ import { LegacyChatIconBase64 } from "../../../../../assets/Icons";
3
3
  export const presetThreeLoadingPaneIconImageProps = {
4
- src: chatIcon,
4
+ src: LegacyChatIconBase64,
5
5
  imageFit: ImageFit.center,
6
6
  width: "57px",
7
7
  height: "57px",
@@ -1,11 +1,11 @@
1
- import chatImg from "../../../../../assets/imgs/chat.svg";
1
+ import { ModernChatIconBase64 } from "../../../../../assets/Icons";
2
2
  export const presetTwoLoadingPaneGeneralStyles = {
3
3
  borderStyle: "dotted",
4
4
  borderRadius: "50%",
5
5
  borderWidth: "5px",
6
6
  backgroundColor: "#767676",
7
7
  backgroundSize: "250px",
8
- backgroundImage: `url(${chatImg})`,
8
+ backgroundImage: `url(${ModernChatIconBase64})`,
9
9
  backgroundRepeat: "no-repeat",
10
10
  backgroundPosition: "center",
11
11
  borderColor: "",
@@ -1,11 +1,11 @@
1
- import errorImg from "../../../../../assets/imgs/error.svg";
1
+ import { ErrorIconBase64 } from "../../../../../assets/Icons";
2
2
  export const presetTwoOOOHPaneGeneralStyles = {
3
3
  borderStyle: "dotted solid double dashed",
4
4
  borderRadius: "40%",
5
5
  borderWidth: "5px",
6
6
  backgroundColor: "#FFFFFF",
7
7
  backgroundSize: "200px",
8
- backgroundImage: `url(${errorImg})`,
8
+ backgroundImage: `url(${ErrorIconBase64})`,
9
9
  backgroundRepeat: "no-repeat",
10
10
  backgroundPosition: "center",
11
11
  borderColor: "#F2FFF1",
@@ -14,8 +14,8 @@ function PostChatSurveyPane(props) {
14
14
  };
15
15
  const iframeStyles = {
16
16
  height: "100vh",
17
- width: "100vw",
18
- maxWidth: "100%"
17
+ width: "100%",
18
+ display: "block"
19
19
  };
20
20
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stack, {
21
21
  id: elementId,
@@ -10,7 +10,7 @@ import { defaultPreChatSurveyPaneGeneralStyles } from "./common/defaultProps/def
10
10
  import { defaultPreChatSurveyPaneStyles } from "./common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles";
11
11
 
12
12
  function PreChatSurveyPane(props) {
13
- var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps3$cu, _defaultPreChatSurvey, _props$styleProps4, _props$styleProps4$cu, _defaultPreChatSurvey2, _props$controlProps6, _props$controlProps7, _props$controlProps8;
13
+ var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps3$cu, _defaultPreChatSurvey, _props$styleProps4, _props$styleProps4$cu, _defaultPreChatSurvey2, _props$styleProps5, _props$styleProps5$cu, _defaultPreChatSurvey3, _props$controlProps6, _props$controlProps7, _props$controlProps8;
14
14
 
15
15
  const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? "lcw-components-prechatsurvey-pane";
16
16
  let adpativeCardPayload;
@@ -89,11 +89,12 @@ function PreChatSurveyPane(props) {
89
89
  margin: 2px;
90
90
  height: 48px;
91
91
  border-radius: 5px;
92
+ cursor: pointer;
92
93
  font-weight: bold;
93
94
  font-size: 15px;
94
- cursor: pointer;
95
- color: ${((_props$styleProps3 = props.styleProps) === null || _props$styleProps3 === void 0 ? void 0 : (_props$styleProps3$cu = _props$styleProps3.customButtonStyleProps) === null || _props$styleProps3$cu === void 0 ? void 0 : _props$styleProps3$cu.color) ?? ((_defaultPreChatSurvey = defaultPreChatSurveyPaneStyles.customButtonStyleProps) === null || _defaultPreChatSurvey === void 0 ? void 0 : _defaultPreChatSurvey.color)};
96
- background-color: ${((_props$styleProps4 = props.styleProps) === null || _props$styleProps4 === void 0 ? void 0 : (_props$styleProps4$cu = _props$styleProps4.customButtonStyleProps) === null || _props$styleProps4$cu === void 0 ? void 0 : _props$styleProps4$cu.backgroundColor) ?? ((_defaultPreChatSurvey2 = defaultPreChatSurveyPaneStyles.customButtonStyleProps) === null || _defaultPreChatSurvey2 === void 0 ? void 0 : _defaultPreChatSurvey2.backgroundColor)};
95
+ font-family: ${((_props$styleProps3 = props.styleProps) === null || _props$styleProps3 === void 0 ? void 0 : (_props$styleProps3$cu = _props$styleProps3.customButtonStyleProps) === null || _props$styleProps3$cu === void 0 ? void 0 : _props$styleProps3$cu.fontFamily) ?? ((_defaultPreChatSurvey = defaultPreChatSurveyPaneStyles.customButtonStyleProps) === null || _defaultPreChatSurvey === void 0 ? void 0 : _defaultPreChatSurvey.fontFamily)};
96
+ color: ${((_props$styleProps4 = props.styleProps) === null || _props$styleProps4 === void 0 ? void 0 : (_props$styleProps4$cu = _props$styleProps4.customButtonStyleProps) === null || _props$styleProps4$cu === void 0 ? void 0 : _props$styleProps4$cu.color) ?? ((_defaultPreChatSurvey2 = defaultPreChatSurveyPaneStyles.customButtonStyleProps) === null || _defaultPreChatSurvey2 === void 0 ? void 0 : _defaultPreChatSurvey2.color)};
97
+ background-color: ${((_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : (_props$styleProps5$cu = _props$styleProps5.customButtonStyleProps) === null || _props$styleProps5$cu === void 0 ? void 0 : _props$styleProps5$cu.backgroundColor) ?? ((_defaultPreChatSurvey3 = defaultPreChatSurveyPaneStyles.customButtonStyleProps) === null || _defaultPreChatSurvey3 === void 0 ? void 0 : _defaultPreChatSurvey3.backgroundColor)};
97
98
  }`), !((_props$controlProps6 = props.controlProps) !== null && _props$controlProps6 !== void 0 && _props$controlProps6.hidePreChatSurveyPane) && /*#__PURE__*/React.createElement(Stack, {
98
99
  id: elementId,
99
100
  tabIndex: -1,
@@ -1,4 +1,5 @@
1
1
  export const defaultPreChatSurveyPaneButtonStyles = {
2
2
  backgroundColor: "rgb(49, 95, 162)",
3
- color: "#FFFFFF"
3
+ color: "#FFFFFF",
4
+ fontFamily: "Segoe UI, Arial, sans-serif"
4
5
  };
@@ -19,7 +19,7 @@ import { defaultProactiveChatPaneTitleStyles } from "./common/default/defaultSty
19
19
  import { generateEventName } from "../../common/utils";
20
20
 
21
21
  function ProactiveChatPane(props) {
22
- var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$styleProps11, _props$controlProps6, _props$styleProps12, _props$styleProps12$c, _props$controlProps7, _props$controlProps8, _props$styleProps13, _props$styleProps13$c, _props$styleProps14, _props$styleProps14$c, _props$controlProps9, _props$componentOverr, _props$styleProps15, _props$styleProps15$c, _props$controlProps10, _props$controlProps11, _props$componentOverr2, _props$styleProps16, _props$styleProps16$c, _props$controlProps12, _props$controlProps13, _props$componentOverr3, _props$styleProps17, _props$styleProps17$c, _props$controlProps14, _props$controlProps15, _props$styleProps18, _props$styleProps18$c, _props$controlProps16, _props$componentOverr4, _props$styleProps19, _props$styleProps19$c, _props$controlProps17, _props$controlProps18, _props$componentOverr5, _props$styleProps20, _props$styleProps20$c, _props$controlProps19, _props$controlProps20;
22
+ var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$styleProps11, _props$styleProps12, _props$styleProps13, _props$controlProps6, _props$styleProps14, _props$styleProps14$c, _props$controlProps7, _props$controlProps8, _props$styleProps15, _props$styleProps15$c, _props$styleProps16, _props$styleProps16$c, _props$controlProps9, _props$componentOverr, _props$styleProps17, _props$styleProps17$c, _props$controlProps10, _props$controlProps11, _props$componentOverr2, _props$styleProps18, _props$styleProps18$c, _props$controlProps12, _props$controlProps13, _props$componentOverr3, _props$styleProps19, _props$styleProps19$c, _props$controlProps14, _props$controlProps15, _props$styleProps20, _props$styleProps20$c, _props$controlProps16, _props$componentOverr4, _props$styleProps21, _props$styleProps21$c, _props$controlProps17, _props$controlProps18, _props$componentOverr5, _props$styleProps22, _props$styleProps22$c, _props$controlProps19, _props$controlProps20;
23
23
 
24
24
  const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? defaultProactiveChatPaneControlProps.id;
25
25
 
@@ -85,20 +85,22 @@ function ProactiveChatPane(props) {
85
85
  };
86
86
  const closeButtonStyles = {
87
87
  root: Object.assign({}, defaultProactiveChatPaneCloseButtonStyles, (_props$styleProps6 = props.styleProps) === null || _props$styleProps6 === void 0 ? void 0 : _props$styleProps6.closeButtonStyleProps),
88
- rootHovered: Object.assign({}, defaultProactiveChatPaneCloseButtonHoveredStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.closeButtonHoveredStyleProps)
88
+ rootHovered: Object.assign({}, defaultProactiveChatPaneCloseButtonHoveredStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.closeButtonHoveredStyleProps),
89
+ rootPressed: Object.assign({}, defaultProactiveChatPaneCloseButtonHoveredStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.closeButtonHoveredStyleProps)
89
90
  };
90
91
  const bodyContainerStyles = {
91
- root: Object.assign({}, defaultProactiveChatPaneBodyContainerStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.bodyContainerStyleProps)
92
+ root: Object.assign({}, defaultProactiveChatPaneBodyContainerStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.bodyContainerStyleProps)
92
93
  };
93
94
  const bodyTitleStyles = {
94
- root: Object.assign({}, defaultProactiveChatPaneBodyTitleStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.bodyTitleStyleProps)
95
+ root: Object.assign({}, defaultProactiveChatPaneBodyTitleStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.bodyTitleStyleProps)
95
96
  };
96
97
  const startButtonStyles = {
97
- root: Object.assign({}, defaultProactiveChatPaneStartButtonStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.startButtonStyleProps),
98
- rootHovered: Object.assign({}, defaultProactiveChatPaneStartButtonHoveredStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.startButtonHoveredStyleProps)
98
+ root: Object.assign({}, defaultProactiveChatPaneStartButtonStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.startButtonStyleProps),
99
+ rootHovered: Object.assign({}, defaultProactiveChatPaneStartButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.startButtonHoveredStyleProps),
100
+ rootPressed: Object.assign({}, defaultProactiveChatPaneStartButtonHoveredStyles, (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.startButtonHoveredStyleProps)
99
101
  };
100
102
  return /*#__PURE__*/React.createElement(React.Fragment, null, !((_props$controlProps6 = props.controlProps) !== null && _props$controlProps6 !== void 0 && _props$controlProps6.hideProactiveChatPane) && /*#__PURE__*/React.createElement(Stack, {
101
- className: (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : (_props$styleProps12$c = _props$styleProps12.classNames) === null || _props$styleProps12$c === void 0 ? void 0 : _props$styleProps12$c.containerClassName,
103
+ className: (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : (_props$styleProps14$c = _props$styleProps14.classNames) === null || _props$styleProps14$c === void 0 ? void 0 : _props$styleProps14$c.containerClassName,
102
104
  id: elementId,
103
105
  tabIndex: -1,
104
106
  onKeyDown: handleEscKeyDown,
@@ -107,27 +109,27 @@ function ProactiveChatPane(props) {
107
109
  styles: containerStyles
108
110
  }, /*#__PURE__*/React.createElement(Stack, {
109
111
  horizontal: true,
110
- className: (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : (_props$styleProps13$c = _props$styleProps13.classNames) === null || _props$styleProps13$c === void 0 ? void 0 : _props$styleProps13$c.headerContainerClassName,
112
+ className: (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 ? void 0 : (_props$styleProps15$c = _props$styleProps15.classNames) === null || _props$styleProps15$c === void 0 ? void 0 : _props$styleProps15$c.headerContainerClassName,
111
113
  styles: headerContainerStyles,
112
114
  tabIndex: -1,
113
115
  id: elementId + "-headercontainer"
114
116
  }, /*#__PURE__*/React.createElement(Stack, {
115
- className: (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : (_props$styleProps14$c = _props$styleProps14.classNames) === null || _props$styleProps14$c === void 0 ? void 0 : _props$styleProps14$c.textContainerClassName,
117
+ className: (_props$styleProps16 = props.styleProps) === null || _props$styleProps16 === void 0 ? void 0 : (_props$styleProps16$c = _props$styleProps16.classNames) === null || _props$styleProps16$c === void 0 ? void 0 : _props$styleProps16$c.textContainerClassName,
116
118
  styles: textContainerStyles,
117
119
  tabIndex: -1,
118
120
  id: elementId + "-textcontainer"
119
121
  }, !((_props$controlProps9 = props.controlProps) !== null && _props$controlProps9 !== void 0 && _props$controlProps9.hideTitle) && (decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.title) || /*#__PURE__*/React.createElement(Label, {
120
- className: (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 ? void 0 : (_props$styleProps15$c = _props$styleProps15.classNames) === null || _props$styleProps15$c === void 0 ? void 0 : _props$styleProps15$c.titleClassName,
122
+ className: (_props$styleProps17 = props.styleProps) === null || _props$styleProps17 === void 0 ? void 0 : (_props$styleProps17$c = _props$styleProps17.classNames) === null || _props$styleProps17$c === void 0 ? void 0 : _props$styleProps17$c.titleClassName,
121
123
  styles: titleStyles,
122
124
  tabIndex: -1,
123
125
  id: elementId + "-title"
124
126
  }, ((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.titleText) || defaultProactiveChatPaneControlProps.titleText)), !((_props$controlProps11 = props.controlProps) !== null && _props$controlProps11 !== void 0 && _props$controlProps11.hideSubtitle) && (decodeComponentString((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/React.createElement(Label, {
125
- className: (_props$styleProps16 = props.styleProps) === null || _props$styleProps16 === void 0 ? void 0 : (_props$styleProps16$c = _props$styleProps16.classNames) === null || _props$styleProps16$c === void 0 ? void 0 : _props$styleProps16$c.subtitleClassName,
127
+ className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 ? void 0 : (_props$styleProps18$c = _props$styleProps18.classNames) === null || _props$styleProps18$c === void 0 ? void 0 : _props$styleProps18$c.subtitleClassName,
126
128
  styles: subtitleStyles,
127
129
  tabIndex: -1,
128
130
  id: elementId + "-subtitle"
129
131
  }, ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.subtitleText) || defaultProactiveChatPaneControlProps.subtitleText))), !((_props$controlProps13 = props.controlProps) !== null && _props$controlProps13 !== void 0 && _props$controlProps13.hideCloseButton) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.closeButton) || /*#__PURE__*/React.createElement(IconButton, {
130
- className: (_props$styleProps17 = props.styleProps) === null || _props$styleProps17 === void 0 ? void 0 : (_props$styleProps17$c = _props$styleProps17.classNames) === null || _props$styleProps17$c === void 0 ? void 0 : _props$styleProps17$c.closeButtonClassName,
132
+ className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 ? void 0 : (_props$styleProps19$c = _props$styleProps19.classNames) === null || _props$styleProps19$c === void 0 ? void 0 : _props$styleProps19$c.closeButtonClassName,
131
133
  styles: closeButtonStyles,
132
134
  tabIndex: 0,
133
135
  onClick: handleCloseClick,
@@ -135,17 +137,17 @@ function ProactiveChatPane(props) {
135
137
  "aria-label": ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.closeButtonAriaLabel) || defaultProactiveChatPaneControlProps.closeButtonAriaLabel
136
138
  }))), /*#__PURE__*/React.createElement(Stack, {
137
139
  horizontal: ((_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.isBodyContainerHorizantal) || defaultProactiveChatPaneControlProps.isBodyContainerHorizantal,
138
- className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 ? void 0 : (_props$styleProps18$c = _props$styleProps18.classNames) === null || _props$styleProps18$c === void 0 ? void 0 : _props$styleProps18$c.bodyContainerClassName,
140
+ className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 ? void 0 : (_props$styleProps20$c = _props$styleProps20.classNames) === null || _props$styleProps20$c === void 0 ? void 0 : _props$styleProps20$c.bodyContainerClassName,
139
141
  styles: bodyContainerStyles,
140
142
  tabIndex: -1,
141
143
  id: elementId + "-bodycontainer"
142
144
  }, !((_props$controlProps16 = props.controlProps) !== null && _props$controlProps16 !== void 0 && _props$controlProps16.hideBodyTitle) && (decodeComponentString((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.bodyTitle) || /*#__PURE__*/React.createElement(Label, {
143
- className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 ? void 0 : (_props$styleProps19$c = _props$styleProps19.classNames) === null || _props$styleProps19$c === void 0 ? void 0 : _props$styleProps19$c.bodyTitleClassName,
145
+ className: (_props$styleProps21 = props.styleProps) === null || _props$styleProps21 === void 0 ? void 0 : (_props$styleProps21$c = _props$styleProps21.classNames) === null || _props$styleProps21$c === void 0 ? void 0 : _props$styleProps21$c.bodyTitleClassName,
144
146
  styles: bodyTitleStyles,
145
147
  tabIndex: -1,
146
148
  id: elementId + "-bodytitle"
147
149
  }, ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.bodyTitleText) || defaultProactiveChatPaneControlProps.bodyTitleText)), !((_props$controlProps18 = props.controlProps) !== null && _props$controlProps18 !== void 0 && _props$controlProps18.hideStartButton) && (decodeComponentString((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.startButton) || /*#__PURE__*/React.createElement(DefaultButton, {
148
- className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 ? void 0 : (_props$styleProps20$c = _props$styleProps20.classNames) === null || _props$styleProps20$c === void 0 ? void 0 : _props$styleProps20$c.startButtonClassName,
150
+ className: (_props$styleProps22 = props.styleProps) === null || _props$styleProps22 === void 0 ? void 0 : (_props$styleProps22$c = _props$styleProps22.classNames) === null || _props$styleProps22$c === void 0 ? void 0 : _props$styleProps22$c.startButtonClassName,
149
151
  styles: startButtonStyles,
150
152
  tabIndex: 0,
151
153
  text: ((_props$controlProps19 = props.controlProps) === null || _props$controlProps19 === void 0 ? void 0 : _props$controlProps19.startButtonText) || defaultProactiveChatPaneControlProps.startButtonText,
@@ -1,6 +1,6 @@
1
- import closeImage from "../../../../../assets/imgs/closeChatButton.svg";
1
+ import { CloseChatButtonIconBase64 } from "../../../../../assets/Icons";
2
2
  export const defaultProactiveChatPaneCloseButtonStyles = {
3
- backgroundImage: "url(" + closeImage + ")",
3
+ backgroundImage: `url(${CloseChatButtonIconBase64})`,
4
4
  backgroundPosition: "center",
5
5
  backgroundRepeat: "no-repeat",
6
6
  color: "#605e5c",
@@ -1,7 +1,7 @@
1
- import proactiveBanner from "../../../../../assets/imgs/Proactive_banner.png";
1
+ import { ProactiveChatBannerBase64 } from "../../../../../assets/Icons";
2
2
  export const defaultProactiveChatPaneHeaderContainerStyles = {
3
3
  backgroundColor: "rgb(49, 95, 162)",
4
- backgroundImage: "url(" + proactiveBanner + ")",
4
+ backgroundImage: `url(${ProactiveChatBannerBase64})`,
5
5
  backgroundPosition: "initial",
6
6
  backgroundRepeat: "no-repeat",
7
7
  borderTopLeftRadius: "inherit",