@axos-web-dev/shared-components 2.2.5 → 2.2.6
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.
- package/dist/ATMLocator/ATMLocator.js +1 -0
- package/dist/Auth/ErrorAlert.js +1 -0
- package/dist/Button/Button.js +1 -0
- package/dist/Calculators/Calculator.js +2 -1
- package/dist/Calculators/MarginTradingCalculator/index.js +1 -0
- package/dist/Carousel/index.js +1 -0
- package/dist/Chatbot/AudioManager.d.ts +19 -0
- package/dist/Chatbot/AudioManager.js +61 -0
- package/dist/Chatbot/ChatWindow.css.d.ts +2 -0
- package/dist/Chatbot/ChatWindow.css.js +34 -30
- package/dist/Chatbot/ChatWindow.js +382 -363
- package/dist/Chatbot/Chatbot.d.ts +3 -0
- package/dist/Chatbot/Chatbot.js +24 -1
- package/dist/Chatbot/ExpandChatToggle.d.ts +8 -0
- package/dist/Chatbot/ExpandChatToggle.js +74 -0
- package/dist/Chatbot/index.js +5 -2
- package/dist/Chatbot/store/chat.d.ts +8 -0
- package/dist/Chatbot/store/chat.js +14 -2
- package/dist/Chevron/index.js +1 -0
- package/dist/Comparison/Comparison.js +1 -0
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -0
- package/dist/FaqAccordion/index.js +1 -0
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -0
- package/dist/Forms/ApplyNow.js +1 -0
- package/dist/Forms/ContactUsBusiness.js +1 -0
- package/dist/Forms/ContactUsBusinessNameEmail.js +1 -0
- package/dist/Forms/ContactUsNMLSId.js +1 -0
- package/dist/Forms/CpraRequest.js +1 -0
- package/dist/Forms/CraPublicFile.js +1 -0
- package/dist/Forms/EmailOnly.js +1 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -0
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -0
- package/dist/Forms/MortgageWarehouseLending.js +1 -0
- package/dist/Forms/SuccesForm.js +2 -1
- package/dist/Hyperlink/index.js +1 -0
- package/dist/ImageLink/ImageLink.js +1 -0
- package/dist/ImageLink/ImageLinkSet.js +1 -0
- package/dist/ImageLink/index.js +1 -0
- package/dist/Insight/Featured/CategorySelector.js +1 -0
- package/dist/Insight/Featured/Featured.js +1 -0
- package/dist/Insight/Featured/Header.js +1 -0
- package/dist/Modal/Modal.js +1 -0
- package/dist/NavigationMenu/AxosALTS/index.js +1 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +1 -0
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -0
- package/dist/NavigationMenu/AxosBank/index.js +1 -0
- package/dist/NavigationMenu/LaVictoire/index.js +1 -0
- package/dist/NavigationMenu/Navbar.js +1 -0
- package/dist/NavigationMenu/SignInNavButton.js +1 -0
- package/dist/SetContainer/SetContainer.js +1 -0
- package/dist/SocialMediaBar/iconsRepository.js +1 -0
- package/dist/VideoTile/VideoTile.js +1 -0
- package/dist/VideoWrapper/index.js +1 -0
- package/dist/assets/Chatbot/ChatWindow.css +69 -57
- package/dist/assets/notification.mp3.js +4 -0
- package/dist/main.js +5 -2
- package/dist/utils/useVisibility.d.ts +1 -0
- package/dist/utils/useVisibility.js +18 -0
- package/dist/vite-env.d.js +1 -0
- package/package.json +1 -1
- package/dist/Chatbot/Chat.d.ts +0 -1
- package/dist/Chatbot/Chat.js +0 -158
- package/dist/Chatbot/useHeadlessChat.d.ts +0 -27
- package/dist/Chatbot/useHeadlessChat.js +0 -240
|
@@ -10,8 +10,9 @@ import React, { useRef, useEffect } from "react";
|
|
|
10
10
|
import { useNetworkState, useMount } from "react-use";
|
|
11
11
|
import { gradientFocus } from "./AnimatedGradientBorder.css.js";
|
|
12
12
|
import { ChatbotMessage } from "./ChatbotMessage.js";
|
|
13
|
-
import { windowBarStyle, left_bar_section, chat_title, button_bar, chatbotMenuItem, chatbotMenu, chatEndDialogOverlay, chatFinishDialog, chatEndCircle, endChatButtonStyle, noAnswerButton, arrowFill, button_reset, buttonss_section, chatNetworkStatus, shimmerText, messagesContainerStyle, inputStyle, autoResize, sendButtonStyle, windowStyle, windowOpenStyle } from "./ChatWindow.css.js";
|
|
13
|
+
import { windowBarStyle, left_bar_section, chat_title, button_bar, chatbotMenuItem, chatbotMenu, chatEndDialogOverlay, chatFinishDialog, chatEndCircle, endChatButtonStyle, noAnswerButton, arrowFill, button_reset, buttonss_section, chatNetworkStatus, shimmerText, messagesContainerStyle, inputStyle, autoResize, sendButtonStyle, windowStyle, windowOpenStyle, windowExpandedStyle } from "./ChatWindow.css.js";
|
|
14
14
|
import { EllipsisIcon } from "./EllipsisIcon.js";
|
|
15
|
+
import { ExpandChatToggle } from "./ExpandChatToggle.js";
|
|
15
16
|
import { useOpenChat } from "./store/chat.js";
|
|
16
17
|
import { ThankYouMessage } from "./ThankYouMessage.js";
|
|
17
18
|
const ChatWindow = ({
|
|
@@ -44,7 +45,9 @@ const ChatWindow = ({
|
|
|
44
45
|
hasEscalated,
|
|
45
46
|
isBlockedInput,
|
|
46
47
|
isOpen,
|
|
47
|
-
hasOpenedOnce
|
|
48
|
+
hasOpenedOnce,
|
|
49
|
+
isWindowExpanded,
|
|
50
|
+
toggleWindowExpanded
|
|
48
51
|
} = useOpenChat();
|
|
49
52
|
const [mounted, setMounted] = React.useState(false);
|
|
50
53
|
const [menuOpen, setMenuOpen] = React.useState(false);
|
|
@@ -102,429 +105,445 @@ const ChatWindow = ({
|
|
|
102
105
|
inputRef.current.focus();
|
|
103
106
|
}
|
|
104
107
|
}, [messages]);
|
|
105
|
-
return /* @__PURE__ */ jsxs(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
style: { paddingBlock: "6px", gap: 4 },
|
|
113
|
-
children: [
|
|
114
|
-
/* @__PURE__ */ jsxs(
|
|
115
|
-
"svg",
|
|
116
|
-
{
|
|
117
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
118
|
-
width: "20",
|
|
119
|
-
height: "17",
|
|
120
|
-
viewBox: "0 0 20 17",
|
|
121
|
-
fill: "none",
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ jsx(
|
|
124
|
-
"path",
|
|
125
|
-
{
|
|
126
|
-
d: "M10.5277 2.78937C10.8911 2.78937 11.1852 3.08251 11.1853 3.44452C11.1852 3.80654 10.8911 4.10056 10.5277 4.10056H5.26386C4.5371 4.10064 3.94791 4.68761 3.94789 5.41175V10.6565C3.9479 11.3806 4.5371 11.9676 5.26386 11.9677H6.97488C7.12012 11.9678 7.23818 12.0854 7.23825 12.2301V15.6861L10.8932 12.0445C10.9424 11.9956 11.0092 11.9679 11.0786 11.9677H14.4765C15.2032 11.9676 15.7925 11.3806 15.7925 10.6565V9.27302C15.7925 8.91106 16.0868 8.61721 16.45 8.61697C16.8134 8.61699 17.1084 8.91093 17.1084 9.27302V10.6565C17.1084 12.1048 15.9301 13.2788 14.4765 13.2789H11.5149L8.16901 16.6135C7.33997 17.4393 5.92245 16.8542 5.92229 15.6861V13.2789H5.26386C3.81026 13.2788 2.63193 12.1048 2.63193 10.6565V5.41175C2.63194 3.96341 3.81027 2.78945 5.26386 2.78937H10.5277Z",
|
|
127
|
-
fill: "#1E3860"
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
/* @__PURE__ */ jsx(
|
|
131
|
-
"path",
|
|
132
|
-
{
|
|
133
|
-
d: "M9.21265 0.166102C9.57579 0.166381 9.87012 0.460269 9.87018 0.822142C9.87004 1.18394 9.57574 1.47701 9.21265 1.47729H3.29036C2.20017 1.47729 1.31606 2.35831 1.31596 3.44452V6.72294C1.31577 7.08487 1.02083 7.37808 0.657534 7.37808C0.294361 7.37794 0.000196551 7.08478 0 6.72294V3.44452C9.80773e-05 1.63411 1.47333 0.166102 3.29036 0.166102H9.21265Z",
|
|
134
|
-
fill: "#1E3860"
|
|
135
|
-
}
|
|
136
|
-
),
|
|
137
|
-
/* @__PURE__ */ jsx(
|
|
138
|
-
"path",
|
|
139
|
-
{
|
|
140
|
-
d: "M15.7145 0.475824C15.9558 -0.158638 16.8779 -0.158578 17.1192 0.475824L17.6459 1.8611C17.7218 2.06058 17.8835 2.2175 18.0885 2.29132L19.511 2.80454C20.163 3.03936 20.163 3.93626 19.511 4.17107L18.0885 4.6843C17.8835 4.75812 17.7218 4.91504 17.6459 5.11452L17.1192 6.49979C16.8779 7.1342 15.9558 7.13426 15.7145 6.49979L15.1878 5.11452C15.1119 4.91508 14.9502 4.75811 14.7453 4.6843L13.3227 4.17107C12.6708 3.93622 12.6708 3.0394 13.3227 2.80454L14.7453 2.29132C14.9502 2.21751 15.1119 2.06054 15.1878 1.8611L15.7145 0.475824Z",
|
|
141
|
-
fill: "#1E3860"
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
),
|
|
147
|
-
/* @__PURE__ */ jsx("h2", { className: chat_title, children: "Ask Evo AI" })
|
|
148
|
-
]
|
|
149
|
-
}
|
|
108
|
+
return /* @__PURE__ */ jsxs(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
className: clsx(
|
|
112
|
+
windowStyle,
|
|
113
|
+
isOpen && windowOpenStyle,
|
|
114
|
+
isWindowExpanded && windowExpandedStyle
|
|
150
115
|
),
|
|
151
|
-
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
onClick: () => {
|
|
176
|
-
setShowEndChatDialog(true);
|
|
177
|
-
setMenuOpen(false);
|
|
178
|
-
},
|
|
179
|
-
style: {
|
|
180
|
-
width: "100%",
|
|
181
|
-
display: "flex",
|
|
182
|
-
alignItems: "center",
|
|
183
|
-
gap: "12px"
|
|
184
|
-
},
|
|
185
|
-
children: [
|
|
186
|
-
/* @__PURE__ */ jsx("div", { className: clsx(button_bar), children: /* @__PURE__ */ jsxs(
|
|
187
|
-
"svg",
|
|
188
|
-
{
|
|
189
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
190
|
-
width: "16",
|
|
191
|
-
height: "16",
|
|
192
|
-
viewBox: "0 0 16 16",
|
|
193
|
-
fill: "none",
|
|
194
|
-
children: [
|
|
195
|
-
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_92_1389)", children: [
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ jsxs("div", { className: windowBarStyle, children: [
|
|
118
|
+
/* @__PURE__ */ jsx("div", { className: clsx(left_bar_section), children: /* @__PURE__ */ jsx(
|
|
119
|
+
ExpandChatToggle,
|
|
120
|
+
{
|
|
121
|
+
isExpanded: isWindowExpanded,
|
|
122
|
+
onToggle: toggleWindowExpanded
|
|
123
|
+
}
|
|
124
|
+
) }),
|
|
125
|
+
/* @__PURE__ */ jsxs(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
className: "flex middle center",
|
|
129
|
+
style: { paddingBlock: "6px", gap: 4 },
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ jsxs(
|
|
132
|
+
"svg",
|
|
133
|
+
{
|
|
134
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
135
|
+
width: "20",
|
|
136
|
+
height: "17",
|
|
137
|
+
viewBox: "0 0 20 17",
|
|
138
|
+
fill: "none",
|
|
139
|
+
children: [
|
|
196
140
|
/* @__PURE__ */ jsx(
|
|
197
141
|
"path",
|
|
198
142
|
{
|
|
199
|
-
d: "
|
|
143
|
+
d: "M10.5277 2.78937C10.8911 2.78937 11.1852 3.08251 11.1853 3.44452C11.1852 3.80654 10.8911 4.10056 10.5277 4.10056H5.26386C4.5371 4.10064 3.94791 4.68761 3.94789 5.41175V10.6565C3.9479 11.3806 4.5371 11.9676 5.26386 11.9677H6.97488C7.12012 11.9678 7.23818 12.0854 7.23825 12.2301V15.6861L10.8932 12.0445C10.9424 11.9956 11.0092 11.9679 11.0786 11.9677H14.4765C15.2032 11.9676 15.7925 11.3806 15.7925 10.6565V9.27302C15.7925 8.91106 16.0868 8.61721 16.45 8.61697C16.8134 8.61699 17.1084 8.91093 17.1084 9.27302V10.6565C17.1084 12.1048 15.9301 13.2788 14.4765 13.2789H11.5149L8.16901 16.6135C7.33997 17.4393 5.92245 16.8542 5.92229 15.6861V13.2789H5.26386C3.81026 13.2788 2.63193 12.1048 2.63193 10.6565V5.41175C2.63194 3.96341 3.81027 2.78945 5.26386 2.78937H10.5277Z",
|
|
200
144
|
fill: "#1E3860"
|
|
201
145
|
}
|
|
202
146
|
),
|
|
203
147
|
/* @__PURE__ */ jsx(
|
|
204
148
|
"path",
|
|
205
149
|
{
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
150
|
+
d: "M9.21265 0.166102C9.57579 0.166381 9.87012 0.460269 9.87018 0.822142C9.87004 1.18394 9.57574 1.47701 9.21265 1.47729H3.29036C2.20017 1.47729 1.31606 2.35831 1.31596 3.44452V6.72294C1.31577 7.08487 1.02083 7.37808 0.657534 7.37808C0.294361 7.37794 0.000196551 7.08478 0 6.72294V3.44452C9.80773e-05 1.63411 1.47333 0.166102 3.29036 0.166102H9.21265Z",
|
|
151
|
+
fill: "#1E3860"
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
/* @__PURE__ */ jsx(
|
|
155
|
+
"path",
|
|
156
|
+
{
|
|
157
|
+
d: "M15.7145 0.475824C15.9558 -0.158638 16.8779 -0.158578 17.1192 0.475824L17.6459 1.8611C17.7218 2.06058 17.8835 2.2175 18.0885 2.29132L19.511 2.80454C20.163 3.03936 20.163 3.93626 19.511 4.17107L18.0885 4.6843C17.8835 4.75812 17.7218 4.91504 17.6459 5.11452L17.1192 6.49979C16.8779 7.1342 15.9558 7.13426 15.7145 6.49979L15.1878 5.11452C15.1119 4.91508 14.9502 4.75811 14.7453 4.6843L13.3227 4.17107C12.6708 3.93622 12.6708 3.0394 13.3227 2.80454L14.7453 2.29132C14.9502 2.21751 15.1119 2.06054 15.1878 1.8611L15.7145 0.475824Z",
|
|
209
158
|
fill: "#1E3860"
|
|
210
159
|
}
|
|
211
160
|
)
|
|
212
|
-
]
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/* @__PURE__ */ jsx("span", { children: "End Chat" })
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
) }) }),
|
|
221
|
-
showEndChatDialog && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
222
|
-
/* @__PURE__ */ jsx(
|
|
223
|
-
"div",
|
|
224
|
-
{
|
|
225
|
-
style: {
|
|
226
|
-
background: "#00000080",
|
|
227
|
-
position: "fixed",
|
|
228
|
-
top: 0,
|
|
229
|
-
left: 0,
|
|
230
|
-
right: 0,
|
|
231
|
-
bottom: 0,
|
|
232
|
-
zIndex: 999
|
|
233
|
-
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
/* @__PURE__ */ jsx("h2", { className: chat_title, children: "Ask Evo AI" })
|
|
165
|
+
]
|
|
234
166
|
}
|
|
235
167
|
),
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
/* @__PURE__ */ jsx(
|
|
238
|
-
"
|
|
168
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(buttonss_section), children: [
|
|
169
|
+
/* @__PURE__ */ jsx(
|
|
170
|
+
"button",
|
|
171
|
+
{
|
|
172
|
+
disabled: messages.length === 0,
|
|
173
|
+
onClick: () => {
|
|
174
|
+
setMenuOpen(!menuOpen);
|
|
175
|
+
},
|
|
176
|
+
className: clsx(button_bar),
|
|
177
|
+
style: {
|
|
178
|
+
border: menuOpen ? `1px solid ${vars.chatbot.window.headerText}` : "none",
|
|
179
|
+
cursor: "pointer",
|
|
180
|
+
padding: 0,
|
|
181
|
+
display: "flex",
|
|
182
|
+
alignContent: "center",
|
|
183
|
+
background: menuOpen ? "#0000000f" : void 0
|
|
184
|
+
},
|
|
185
|
+
children: /* @__PURE__ */ jsx(EllipsisIcon, {})
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
menuOpen && /* @__PURE__ */ jsx("ul", { className: clsx(chatbotMenu), children: /* @__PURE__ */ jsx("li", { className: chatbotMenuItem, children: /* @__PURE__ */ jsxs(
|
|
189
|
+
"button",
|
|
239
190
|
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
191
|
+
type: "button",
|
|
192
|
+
onClick: () => {
|
|
193
|
+
setShowEndChatDialog(true);
|
|
194
|
+
setMenuOpen(false);
|
|
195
|
+
},
|
|
196
|
+
style: {
|
|
197
|
+
width: "100%",
|
|
198
|
+
display: "flex",
|
|
199
|
+
alignItems: "center",
|
|
200
|
+
gap: "12px"
|
|
201
|
+
},
|
|
245
202
|
children: [
|
|
246
|
-
/* @__PURE__ */ jsx(
|
|
247
|
-
"
|
|
203
|
+
/* @__PURE__ */ jsx("div", { className: clsx(button_bar), children: /* @__PURE__ */ jsxs(
|
|
204
|
+
"svg",
|
|
248
205
|
{
|
|
249
|
-
|
|
250
|
-
|
|
206
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
207
|
+
width: "16",
|
|
208
|
+
height: "16",
|
|
209
|
+
viewBox: "0 0 16 16",
|
|
210
|
+
fill: "none",
|
|
211
|
+
children: [
|
|
212
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_92_1389)", children: [
|
|
213
|
+
/* @__PURE__ */ jsx(
|
|
214
|
+
"path",
|
|
215
|
+
{
|
|
216
|
+
d: "M11.1236 5.37374L8.60278 7.89457L11.1236 10.4167L10.4166 11.1237L7.89445 8.6029L5.37362 11.1237L4.66658 10.4167L7.18742 7.89457L4.66658 5.37374L5.37362 4.66671L7.89445 7.18754L10.4166 4.66671L11.1236 5.37374Z",
|
|
217
|
+
fill: "#1E3860"
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
/* @__PURE__ */ jsx(
|
|
221
|
+
"path",
|
|
222
|
+
{
|
|
223
|
+
fillRule: "evenodd",
|
|
224
|
+
clipRule: "evenodd",
|
|
225
|
+
d: "M13.3333 0.833374C14.3458 0.833374 15.1666 1.65419 15.1666 2.66671V13.3334C15.1666 14.3459 14.3458 15.1667 13.3333 15.1667H2.66659C1.65406 15.1667 0.833252 14.3459 0.833252 13.3334V2.66671C0.833252 1.65419 1.65406 0.833374 2.66659 0.833374H13.3333ZM2.66659 1.83337C2.20635 1.83337 1.83325 2.20647 1.83325 2.66671V13.3334C1.83325 13.7936 2.20635 14.1667 2.66659 14.1667H13.3333C13.7935 14.1667 14.1666 13.7936 14.1666 13.3334V2.66671C14.1666 2.20647 13.7935 1.83337 13.3333 1.83337H2.66659Z",
|
|
226
|
+
fill: "#1E3860"
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
] }),
|
|
230
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_92_1389", children: /* @__PURE__ */ jsx("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
231
|
+
]
|
|
251
232
|
}
|
|
252
|
-
),
|
|
253
|
-
/* @__PURE__ */ jsx(
|
|
254
|
-
"path",
|
|
255
|
-
{
|
|
256
|
-
d: "M12.0014 16.8953C12.6227 16.8953 13.1264 17.399 13.1264 18.0203C13.1264 18.6416 12.6227 19.1453 12.0014 19.1453C11.3801 19.1453 10.8764 18.6416 10.8764 18.0203C10.8764 17.399 11.3801 16.8953 12.0014 16.8953Z",
|
|
257
|
-
fill: "#D2272F"
|
|
258
|
-
}
|
|
259
|
-
),
|
|
260
|
-
/* @__PURE__ */ jsx(
|
|
261
|
-
"path",
|
|
262
|
-
{
|
|
263
|
-
fillRule: "evenodd",
|
|
264
|
-
clipRule: "evenodd",
|
|
265
|
-
d: "M9.31805 3.51187L2.17215 17.8037C1.1748 19.7984 2.62529 22.1453 4.85543 22.1453H19.1472C21.3774 22.1453 22.8279 19.7984 21.8305 17.8037L14.6846 3.51188C13.579 1.30073 10.4236 1.30073 9.31805 3.51187ZM3.51379 18.4745L10.6597 4.18269C11.2125 3.07712 12.7902 3.07712 13.343 4.1827L20.4889 18.4745C20.9875 19.4718 20.2623 20.6453 19.1472 20.6453H4.85543C3.74036 20.6453 3.01512 19.4718 3.51379 18.4745Z",
|
|
266
|
-
fill: "#D2272F"
|
|
267
|
-
}
|
|
268
|
-
)
|
|
233
|
+
) }),
|
|
234
|
+
/* @__PURE__ */ jsx("span", { children: "End Chat" })
|
|
269
235
|
]
|
|
270
236
|
}
|
|
271
|
-
) }),
|
|
272
|
-
/* @__PURE__ */ jsxs(
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
237
|
+
) }) }),
|
|
238
|
+
showEndChatDialog && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
239
|
+
/* @__PURE__ */ jsx(
|
|
240
|
+
"div",
|
|
241
|
+
{
|
|
242
|
+
style: {
|
|
243
|
+
background: "#00000080",
|
|
244
|
+
position: "fixed",
|
|
245
|
+
top: 0,
|
|
246
|
+
left: 0,
|
|
247
|
+
right: 0,
|
|
248
|
+
bottom: 0,
|
|
249
|
+
zIndex: 999
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
),
|
|
253
|
+
/* @__PURE__ */ jsx("dialog", { open: showEndChatDialog, className: chatEndDialogOverlay, children: /* @__PURE__ */ jsxs("form", { method: "dialog", className: chatFinishDialog, children: [
|
|
254
|
+
/* @__PURE__ */ jsx("div", { className: clsx(button_bar, chatEndCircle), children: /* @__PURE__ */ jsxs(
|
|
255
|
+
"svg",
|
|
256
|
+
{
|
|
257
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
258
|
+
width: "24",
|
|
259
|
+
height: "24",
|
|
260
|
+
viewBox: "0 0 24 24",
|
|
261
|
+
fill: "none",
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ jsx(
|
|
264
|
+
"path",
|
|
265
|
+
{
|
|
266
|
+
d: "M12.7514 7.14531V15.3953H11.2514V7.14531H12.7514Z",
|
|
267
|
+
fill: "#D2272F"
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
/* @__PURE__ */ jsx(
|
|
271
|
+
"path",
|
|
272
|
+
{
|
|
273
|
+
d: "M12.0014 16.8953C12.6227 16.8953 13.1264 17.399 13.1264 18.0203C13.1264 18.6416 12.6227 19.1453 12.0014 19.1453C11.3801 19.1453 10.8764 18.6416 10.8764 18.0203C10.8764 17.399 11.3801 16.8953 12.0014 16.8953Z",
|
|
274
|
+
fill: "#D2272F"
|
|
275
|
+
}
|
|
276
|
+
),
|
|
277
|
+
/* @__PURE__ */ jsx(
|
|
278
|
+
"path",
|
|
279
|
+
{
|
|
280
|
+
fillRule: "evenodd",
|
|
281
|
+
clipRule: "evenodd",
|
|
282
|
+
d: "M9.31805 3.51187L2.17215 17.8037C1.1748 19.7984 2.62529 22.1453 4.85543 22.1453H19.1472C21.3774 22.1453 22.8279 19.7984 21.8305 17.8037L14.6846 3.51188C13.579 1.30073 10.4236 1.30073 9.31805 3.51187ZM3.51379 18.4745L10.6597 4.18269C11.2125 3.07712 12.7902 3.07712 13.343 4.1827L20.4889 18.4745C20.9875 19.4718 20.2623 20.6453 19.1472 20.6453H4.85543C3.74036 20.6453 3.01512 19.4718 3.51379 18.4745Z",
|
|
283
|
+
fill: "#D2272F"
|
|
284
|
+
}
|
|
285
|
+
)
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
) }),
|
|
289
|
+
/* @__PURE__ */ jsxs("p", { children: [
|
|
290
|
+
"Are you sure you want to end",
|
|
291
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
292
|
+
" this chat?"
|
|
293
|
+
] }),
|
|
294
|
+
/* @__PURE__ */ jsxs(
|
|
295
|
+
"div",
|
|
296
|
+
{
|
|
297
|
+
style: {
|
|
298
|
+
display: "flex",
|
|
299
|
+
gap: "1rem",
|
|
300
|
+
marginTop: "1rem",
|
|
301
|
+
flexDirection: "column",
|
|
302
|
+
marginBottom: 24,
|
|
303
|
+
width: "100%"
|
|
304
|
+
},
|
|
305
|
+
children: [
|
|
306
|
+
/* @__PURE__ */ jsx(
|
|
307
|
+
"button",
|
|
308
|
+
{
|
|
309
|
+
className: endChatButtonStyle,
|
|
310
|
+
type: "submit",
|
|
311
|
+
onClick: () => {
|
|
312
|
+
endChat();
|
|
313
|
+
displayThankYouScreen();
|
|
314
|
+
setShowEndChatDialog(false);
|
|
315
|
+
},
|
|
316
|
+
children: "Yes, End Chat"
|
|
317
|
+
}
|
|
318
|
+
),
|
|
319
|
+
/* @__PURE__ */ jsx(
|
|
320
|
+
"button",
|
|
321
|
+
{
|
|
322
|
+
className: clsx(endChatButtonStyle, noAnswerButton),
|
|
323
|
+
type: "button",
|
|
324
|
+
onClick: () => {
|
|
325
|
+
setShowEndChatDialog(false);
|
|
326
|
+
},
|
|
327
|
+
children: "No, Go Back"
|
|
328
|
+
}
|
|
329
|
+
)
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
),
|
|
333
|
+
" "
|
|
334
|
+
] }) })
|
|
276
335
|
] }),
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
|
|
336
|
+
/* @__PURE__ */ jsx(
|
|
337
|
+
ThankYouMessage,
|
|
279
338
|
{
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
339
|
+
showEndChatDialog: showThankyouMessage,
|
|
340
|
+
onStart: onStartChat,
|
|
341
|
+
onClose: onCancelEndChat
|
|
342
|
+
}
|
|
343
|
+
),
|
|
344
|
+
onClose && /* @__PURE__ */ jsxs(
|
|
345
|
+
"button",
|
|
346
|
+
{
|
|
347
|
+
onClick: () => {
|
|
348
|
+
onClose();
|
|
349
|
+
setMenuOpen(false);
|
|
287
350
|
},
|
|
351
|
+
className: clsx(button_reset, button_bar),
|
|
352
|
+
"aria-label": "Close chat window",
|
|
353
|
+
title: "Close",
|
|
288
354
|
children: [
|
|
289
355
|
/* @__PURE__ */ jsx(
|
|
290
|
-
"
|
|
356
|
+
"svg",
|
|
291
357
|
{
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
358
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
359
|
+
width: "24",
|
|
360
|
+
height: "24",
|
|
361
|
+
viewBox: "0 0 24 24",
|
|
362
|
+
fill: "none",
|
|
363
|
+
children: /* @__PURE__ */ jsx(
|
|
364
|
+
"path",
|
|
365
|
+
{
|
|
366
|
+
className: arrowFill,
|
|
367
|
+
d: "M2.46875 7.76574L11.9991 17.2961L21.5294 7.76574L20.4687 6.70508L11.9991 15.1749L3.52941 6.70508L2.46875 7.76574Z",
|
|
368
|
+
color: vars.chatbot.window.headerText
|
|
369
|
+
}
|
|
370
|
+
)
|
|
300
371
|
}
|
|
301
372
|
),
|
|
302
373
|
/* @__PURE__ */ jsx(
|
|
303
|
-
"
|
|
374
|
+
"svg",
|
|
304
375
|
{
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
children:
|
|
376
|
+
width: "15",
|
|
377
|
+
height: "15",
|
|
378
|
+
viewBox: "0 0 15 15",
|
|
379
|
+
fill: "none",
|
|
380
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
381
|
+
children: /* @__PURE__ */ jsx(
|
|
382
|
+
"path",
|
|
383
|
+
{
|
|
384
|
+
d: "M13.2187 0L14.0142 0.795495L7.803 7.0065L14.0142 13.2187L13.2187 14.0142L7.0065 7.803L0.795495 14.0142L0 13.2187L6.21112 7.0065L0 0.795495L0.795495 0L7.0065 6.21112L13.2187 0Z",
|
|
385
|
+
fill: vars.chatbot.window.headerText
|
|
386
|
+
}
|
|
387
|
+
)
|
|
311
388
|
}
|
|
312
389
|
)
|
|
313
390
|
]
|
|
314
391
|
}
|
|
315
|
-
)
|
|
316
|
-
|
|
317
|
-
] }) })
|
|
392
|
+
)
|
|
393
|
+
] })
|
|
318
394
|
] }),
|
|
319
|
-
/* @__PURE__ */ jsx(
|
|
320
|
-
|
|
321
|
-
{
|
|
322
|
-
showEndChatDialog: showThankyouMessage,
|
|
323
|
-
onStart: onStartChat,
|
|
324
|
-
onClose: onCancelEndChat
|
|
325
|
-
}
|
|
326
|
-
),
|
|
327
|
-
onClose && /* @__PURE__ */ jsxs(
|
|
328
|
-
"button",
|
|
395
|
+
mounted && !state.online ? /* @__PURE__ */ jsx("div", { className: clsx(chatNetworkStatus), children: /* @__PURE__ */ jsxs(
|
|
396
|
+
"div",
|
|
329
397
|
{
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
398
|
+
style: {
|
|
399
|
+
color: "#d32f2f",
|
|
400
|
+
textAlign: "center",
|
|
401
|
+
padding: "8px 0",
|
|
402
|
+
fontWeight: 500
|
|
333
403
|
},
|
|
334
|
-
className: clsx(button_reset, button_bar),
|
|
335
|
-
"aria-label": "Close chat window",
|
|
336
|
-
title: "Close",
|
|
337
404
|
children: [
|
|
338
405
|
/* @__PURE__ */ jsx(
|
|
339
|
-
"
|
|
406
|
+
"span",
|
|
340
407
|
{
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
fill: "none",
|
|
346
|
-
children: /* @__PURE__ */ jsx(
|
|
347
|
-
"path",
|
|
348
|
-
{
|
|
349
|
-
className: arrowFill,
|
|
350
|
-
d: "M2.46875 7.76574L11.9991 17.2961L21.5294 7.76574L20.4687 6.70508L11.9991 15.1749L3.52941 6.70508L2.46875 7.76574Z",
|
|
351
|
-
color: vars.chatbot.window.headerText
|
|
352
|
-
}
|
|
353
|
-
)
|
|
408
|
+
role: "img",
|
|
409
|
+
"aria-label": "disconnected",
|
|
410
|
+
style: { marginRight: 6 },
|
|
411
|
+
children: "⚠️"
|
|
354
412
|
}
|
|
355
413
|
),
|
|
356
|
-
|
|
357
|
-
"svg",
|
|
358
|
-
{
|
|
359
|
-
width: "15",
|
|
360
|
-
height: "15",
|
|
361
|
-
viewBox: "0 0 15 15",
|
|
362
|
-
fill: "none",
|
|
363
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
364
|
-
children: /* @__PURE__ */ jsx(
|
|
365
|
-
"path",
|
|
366
|
-
{
|
|
367
|
-
d: "M13.2187 0L14.0142 0.795495L7.803 7.0065L14.0142 13.2187L13.2187 14.0142L7.0065 7.803L0.795495 14.0142L0 13.2187L6.21112 7.0065L0 0.795495L0.795495 0L7.0065 6.21112L13.2187 0Z",
|
|
368
|
-
fill: vars.chatbot.window.headerText
|
|
369
|
-
}
|
|
370
|
-
)
|
|
371
|
-
}
|
|
372
|
-
)
|
|
414
|
+
"You are currently disconnected. Please check your connection."
|
|
373
415
|
]
|
|
374
416
|
}
|
|
375
|
-
)
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
mounted && !state.online ? /* @__PURE__ */ jsx("div", { className: clsx(chatNetworkStatus), children: /* @__PURE__ */ jsxs(
|
|
379
|
-
"div",
|
|
380
|
-
{
|
|
381
|
-
style: {
|
|
382
|
-
color: "#d32f2f",
|
|
383
|
-
textAlign: "center",
|
|
384
|
-
padding: "8px 0",
|
|
385
|
-
fontWeight: 500
|
|
386
|
-
},
|
|
387
|
-
children: [
|
|
388
|
-
/* @__PURE__ */ jsx(
|
|
389
|
-
"span",
|
|
390
|
-
{
|
|
391
|
-
role: "img",
|
|
392
|
-
"aria-label": "disconnected",
|
|
393
|
-
style: { marginRight: 6 },
|
|
394
|
-
children: "⚠️"
|
|
395
|
-
}
|
|
396
|
-
),
|
|
397
|
-
"You are currently disconnected. Please check your connection."
|
|
398
|
-
]
|
|
399
|
-
}
|
|
400
|
-
) }) : null,
|
|
401
|
-
/* @__PURE__ */ jsxs("div", { className: clsx(messagesContainerStyle), children: [
|
|
402
|
-
(status === "idle" && messages.length == 0 || messages.length == 0) && /* @__PURE__ */ jsx(
|
|
403
|
-
"div",
|
|
404
|
-
{
|
|
405
|
-
className: clsx(),
|
|
406
|
-
style: {
|
|
407
|
-
textAlign: "left",
|
|
408
|
-
alignSelf: "flex-start",
|
|
409
|
-
color: "#1e3860",
|
|
410
|
-
borderRadius: 16,
|
|
411
|
-
padding: "8px 8px",
|
|
412
|
-
maxWidth: "80%",
|
|
413
|
-
marginBottom: 2
|
|
414
|
-
},
|
|
415
|
-
children: /* @__PURE__ */ jsx(
|
|
417
|
+
) }) : null,
|
|
418
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(messagesContainerStyle), children: [
|
|
419
|
+
(status === "idle" && messages.length == 0 || messages.length == 0) && /* @__PURE__ */ jsx(
|
|
416
420
|
"div",
|
|
417
421
|
{
|
|
422
|
+
className: clsx(),
|
|
418
423
|
style: {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
424
|
+
textAlign: "left",
|
|
425
|
+
alignSelf: "flex-start",
|
|
426
|
+
color: "#1e3860",
|
|
427
|
+
borderRadius: 16,
|
|
428
|
+
padding: "8px 8px",
|
|
429
|
+
maxWidth: "80%",
|
|
430
|
+
marginBottom: 2
|
|
423
431
|
},
|
|
424
|
-
children: /* @__PURE__ */ jsx(
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
ChatbotMessage,
|
|
435
|
-
{
|
|
436
|
-
msg,
|
|
437
|
-
onSend,
|
|
438
|
-
showAvatar,
|
|
439
|
-
showName,
|
|
440
|
-
virtualAgent,
|
|
441
|
-
onCancelEndChat,
|
|
442
|
-
onEndChat: () => {
|
|
443
|
-
endChat();
|
|
444
|
-
onCloseAfterThankYou();
|
|
445
|
-
},
|
|
446
|
-
inputRef
|
|
447
|
-
},
|
|
448
|
-
msg?.$index
|
|
449
|
-
);
|
|
450
|
-
}),
|
|
451
|
-
showReconnect && /* @__PURE__ */ jsx(
|
|
452
|
-
"button",
|
|
453
|
-
{
|
|
454
|
-
style: { margin: "12px auto", display: "block" },
|
|
455
|
-
onClick: () => {
|
|
456
|
-
},
|
|
457
|
-
children: "Reconnect Chat"
|
|
458
|
-
}
|
|
459
|
-
),
|
|
460
|
-
/* @__PURE__ */ jsx("div", { ref: messagesEndRef })
|
|
461
|
-
] }),
|
|
462
|
-
/* @__PURE__ */ jsx("div", { style: { padding: "16px 16px 24px 16px" }, children: /* @__PURE__ */ jsx("form", { onSubmit: handleSend, className: clsx(gradientFocus), children: /* @__PURE__ */ jsxs(
|
|
463
|
-
"div",
|
|
464
|
-
{
|
|
465
|
-
style: {
|
|
466
|
-
display: "flex",
|
|
467
|
-
padding: "12px 16px",
|
|
468
|
-
background: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected ? "light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3))" : "#ffffff",
|
|
469
|
-
borderRadius: 12
|
|
470
|
-
},
|
|
471
|
-
children: [
|
|
472
|
-
/* @__PURE__ */ jsx(
|
|
473
|
-
"textarea",
|
|
474
|
-
{
|
|
475
|
-
ref: inputRef,
|
|
476
|
-
value: input,
|
|
477
|
-
onChange: (e) => setInput(e.target.value),
|
|
478
|
-
onKeyDown: (e) => {
|
|
479
|
-
if (hasEscalated) {
|
|
480
|
-
previewTyping(e.target?.value);
|
|
481
|
-
}
|
|
482
|
-
if (e.key === "Enter" && !e.shiftKey) {
|
|
483
|
-
handleSend(e);
|
|
432
|
+
children: /* @__PURE__ */ jsx(
|
|
433
|
+
"div",
|
|
434
|
+
{
|
|
435
|
+
style: {
|
|
436
|
+
fontSize: 14,
|
|
437
|
+
display: "flex",
|
|
438
|
+
flexDirection: "column",
|
|
439
|
+
gap: 4
|
|
440
|
+
},
|
|
441
|
+
children: /* @__PURE__ */ jsx("p", { className: shimmerText, children: "Chat connecting..." })
|
|
484
442
|
}
|
|
485
|
-
|
|
486
|
-
placeholder: "Ask anything...",
|
|
487
|
-
className: clsx(inputStyle, autoResize),
|
|
488
|
-
autoFocus: true,
|
|
489
|
-
disabled: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected,
|
|
490
|
-
rows: 1
|
|
443
|
+
)
|
|
491
444
|
}
|
|
492
445
|
),
|
|
493
|
-
|
|
446
|
+
messages?.map((msg) => {
|
|
447
|
+
if (!hasOpenedOnce) {
|
|
448
|
+
return null;
|
|
449
|
+
}
|
|
450
|
+
return /* @__PURE__ */ jsx(
|
|
451
|
+
ChatbotMessage,
|
|
452
|
+
{
|
|
453
|
+
msg,
|
|
454
|
+
onSend,
|
|
455
|
+
showAvatar,
|
|
456
|
+
showName,
|
|
457
|
+
virtualAgent,
|
|
458
|
+
onCancelEndChat,
|
|
459
|
+
onEndChat: () => {
|
|
460
|
+
endChat();
|
|
461
|
+
onCloseAfterThankYou();
|
|
462
|
+
},
|
|
463
|
+
inputRef
|
|
464
|
+
},
|
|
465
|
+
msg?.$index
|
|
466
|
+
);
|
|
467
|
+
}),
|
|
468
|
+
showReconnect && /* @__PURE__ */ jsx(
|
|
494
469
|
"button",
|
|
495
470
|
{
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
471
|
+
style: { margin: "12px auto", display: "block" },
|
|
472
|
+
onClick: () => {
|
|
473
|
+
},
|
|
474
|
+
children: "Reconnect Chat"
|
|
475
|
+
}
|
|
476
|
+
),
|
|
477
|
+
/* @__PURE__ */ jsx("div", { ref: messagesEndRef })
|
|
478
|
+
] }),
|
|
479
|
+
/* @__PURE__ */ jsx("div", { style: { padding: "16px 16px 24px 16px" }, children: /* @__PURE__ */ jsx("form", { onSubmit: handleSend, className: clsx(gradientFocus), children: /* @__PURE__ */ jsxs(
|
|
480
|
+
"div",
|
|
481
|
+
{
|
|
482
|
+
style: {
|
|
483
|
+
display: "flex",
|
|
484
|
+
padding: "12px 16px",
|
|
485
|
+
background: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected ? "light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3))" : "#ffffff",
|
|
486
|
+
borderRadius: 12
|
|
487
|
+
},
|
|
488
|
+
children: [
|
|
489
|
+
/* @__PURE__ */ jsx(
|
|
490
|
+
"textarea",
|
|
491
|
+
{
|
|
492
|
+
ref: inputRef,
|
|
493
|
+
value: input,
|
|
494
|
+
onChange: (e) => setInput(e.target.value),
|
|
495
|
+
onKeyDown: (e) => {
|
|
496
|
+
if (hasEscalated) {
|
|
497
|
+
previewTyping(e.target?.value);
|
|
498
|
+
}
|
|
499
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
500
|
+
handleSend(e);
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
placeholder: "Ask anything...",
|
|
504
|
+
className: clsx(inputStyle, autoResize),
|
|
505
|
+
autoFocus: true,
|
|
506
|
+
disabled: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected,
|
|
507
|
+
rows: 1
|
|
508
|
+
}
|
|
499
509
|
),
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
disabled: isBlockedInput || inputDisabled || status !== "connected" || !input.trim() || messages.length == 0 || escalationDeflected,
|
|
503
|
-
children: /* @__PURE__ */ jsx(
|
|
504
|
-
"svg",
|
|
510
|
+
/* @__PURE__ */ jsx(
|
|
511
|
+
"button",
|
|
505
512
|
{
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
513
|
+
className: clsx(
|
|
514
|
+
sendButtonStyle,
|
|
515
|
+
input.trim().length > 0 && "active"
|
|
516
|
+
),
|
|
517
|
+
type: "submit",
|
|
518
|
+
title: "Send message",
|
|
519
|
+
disabled: isBlockedInput || inputDisabled || status !== "connected" || !input.trim() || messages.length == 0 || escalationDeflected,
|
|
511
520
|
children: /* @__PURE__ */ jsx(
|
|
512
|
-
"
|
|
521
|
+
"svg",
|
|
513
522
|
{
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
523
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
524
|
+
width: "16",
|
|
525
|
+
height: "16",
|
|
526
|
+
viewBox: "0 0 16 16",
|
|
527
|
+
fill: "none",
|
|
528
|
+
children: /* @__PURE__ */ jsx(
|
|
529
|
+
"path",
|
|
530
|
+
{
|
|
531
|
+
fillRule: "evenodd",
|
|
532
|
+
clipRule: "evenodd",
|
|
533
|
+
d: "M0.0030533 5.42479C0.0273417 5.1795 0.193529 4.9714 0.427369 4.89345L15.0114 0.0320896C15.236 -0.0427712 15.4836 0.0156801 15.651 0.183075C15.8184 0.35047 15.8769 0.598075 15.802 0.822659L10.9407 15.4067C10.8627 15.6406 10.6546 15.8068 10.4093 15.8311C10.164 15.8553 9.92737 15.7332 9.80508 15.5192L6.35411 9.47999L0.314925 6.02903C0.100912 5.90673 -0.0212351 5.67008 0.0030533 5.42479ZM7.59169 9.1263L9.64202 12.7144C9.85645 13.0896 10.4138 13.0344 10.5505 12.6244L13.9046 2.56191C14.0349 2.17103 13.6631 1.79916 13.2722 1.92946L3.20969 5.28362C2.79967 5.4203 2.74448 5.97766 3.11973 6.19209L6.70781 8.24242L9.90579 5.04443C10.1499 4.80036 10.5456 4.80036 10.7897 5.04443C11.0337 5.28851 11.0337 5.68424 10.7897 5.92832L7.59169 9.1263Z",
|
|
534
|
+
fill: "#435164"
|
|
535
|
+
}
|
|
536
|
+
)
|
|
518
537
|
}
|
|
519
538
|
)
|
|
520
539
|
}
|
|
521
540
|
)
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
541
|
+
]
|
|
542
|
+
}
|
|
543
|
+
) }) })
|
|
544
|
+
]
|
|
545
|
+
}
|
|
546
|
+
);
|
|
528
547
|
};
|
|
529
548
|
export {
|
|
530
549
|
ChatWindow
|