@axos-web-dev/shared-components 1.0.100-dev.52 → 1.0.100-dev.53-chat-revamp
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 +2 -1
- package/dist/Accordion/Accordion.css.js +2 -1
- package/dist/Accordion/Accordion.js +2 -1
- package/dist/AlertBanner/index.js +2 -1
- package/dist/Article/Article.css.js +2 -1
- package/dist/ArticlesSet/ArticlesSet.css.js +2 -1
- package/dist/Auth/ErrorAlert.js +2 -1
- package/dist/Auth/SignIn.css.js +2 -1
- package/dist/AwardsBanner/AwardsBanner.css.js +2 -1
- package/dist/BulletItem/BulletItem.js +2 -1
- package/dist/Button/Button.css.js +2 -1
- package/dist/Button/Button.js +2 -1
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +2 -1
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +2 -1
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +2 -1
- package/dist/Calculators/AxosOneCalculator/index.js +2 -1
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +2 -1
- package/dist/Calculators/BalanceAPYCalculator/index.js +2 -1
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +2 -1
- package/dist/Calculators/Calculator.js +2 -1
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -1
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js +2 -1
- package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js +2 -1
- package/dist/Calculators/SummitApyCalculator/index.js +2 -1
- package/dist/Calculators/calculator.css.js +2 -1
- package/dist/CallToActionBar/CallToActionBar.css.js +2 -1
- package/dist/Carousel/Carousel.css.js +2 -1
- package/dist/Carousel/index.js +2 -1
- package/dist/Chatbot/Bubble.css.d.ts +5 -0
- package/dist/Chatbot/Bubble.css.js +17 -3
- package/dist/Chatbot/Bubble.js +25 -19
- package/dist/Chatbot/ChatWindow.css.d.ts +16 -0
- package/dist/Chatbot/ChatWindow.css.js +43 -17
- package/dist/Chatbot/ChatWindow.d.ts +3 -0
- package/dist/Chatbot/ChatWindow.js +341 -162
- package/dist/Chatbot/Chatbot.js +16 -3
- package/dist/Chatbot/ThankYouMessage.d.ts +9 -0
- package/dist/Chatbot/ThankYouMessage.js +510 -0
- package/dist/Chatbot/index.js +18 -2
- package/dist/Chatbot/store/chat.d.ts +3 -0
- package/dist/Chatbot/store/chat.js +4 -1
- package/dist/Chevron/Chevron.css.js +2 -1
- package/dist/Chevron/index.js +2 -1
- package/dist/CollectInformationAlert/CollectInformationAlert.css.js +2 -1
- package/dist/CollectInformationAlert/index.js +2 -1
- package/dist/Comparison/Comparison.css.js +2 -1
- package/dist/Comparison/Comparison.js +2 -1
- package/dist/ContentBanner/ContentBanner.css.js +2 -1
- package/dist/DownloadTile/DownloadTile.css.js +2 -1
- package/dist/ExecutiveBio/ExecutiveBio.css.js +2 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +2 -1
- package/dist/FaqAccordion/FaqAccordion.css.js +2 -1
- package/dist/FaqAccordion/index.js +2 -1
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.css.js +2 -1
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.js +2 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +2 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -1
- package/dist/Forms/ApplicationStart.js +2 -1
- package/dist/Forms/ApplyNow.js +2 -1
- package/dist/Forms/ClearingForm.js +2 -1
- package/dist/Forms/CommercialDeposits.js +2 -1
- package/dist/Forms/CommercialDepositsNoLendingOption.js +2 -1
- package/dist/Forms/CommercialLending.js +2 -1
- package/dist/Forms/CommercialPremiumFinance.js +2 -1
- package/dist/Forms/ContactCompany.js +2 -1
- package/dist/Forms/ContactCompanyTitle.js +2 -1
- package/dist/Forms/ContactUs.js +2 -1
- package/dist/Forms/ContactUsAAS.js +2 -1
- package/dist/Forms/ContactUsBusiness.js +2 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +2 -1
- package/dist/Forms/ContactUsLVF.js +2 -1
- package/dist/Forms/ContactUsNMLSId.js +2 -1
- package/dist/Forms/CpraRequest.js +2 -1
- package/dist/Forms/CraPublicFile.js +2 -1
- package/dist/Forms/DealerServices.js +2 -1
- package/dist/Forms/EmailOnly.js +2 -1
- package/dist/Forms/EmailUs.js +2 -1
- package/dist/Forms/Forms.css.js +2 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +2 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +2 -1
- package/dist/Forms/MortgageWarehouseLending.js +2 -1
- package/dist/Forms/QuickPricer/QuickPricerForm.js +2 -1
- package/dist/Forms/QuickPricer/UserInformation.css.js +2 -1
- package/dist/Forms/ScheduleCall.js +2 -1
- package/dist/Forms/ScheduleCallPremier.js +2 -1
- package/dist/Forms/SuccesForm.js +2 -1
- package/dist/Forms/WcplSurvey.js +2 -1
- package/dist/HeroBanner/HeroBanner.css.js +2 -1
- package/dist/HeroBanner/HeroBanner.js +2 -1
- package/dist/HeroBanner/LargeBanner.css.js +2 -1
- package/dist/HeroBanner/SelectionBanner.css.js +2 -1
- package/dist/Hyperlink/Hyperlink.css.js +2 -1
- package/dist/Hyperlink/index.js +2 -1
- package/dist/IconBillboard/IconBillboard.css.js +2 -1
- package/dist/ImageBillboard/ImageBillboard.css.js +2 -1
- package/dist/ImageBillboard/ImageBillboard.js +2 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +2 -1
- package/dist/ImageLink/ImageLink.js +2 -1
- package/dist/ImageLink/ImageLinkSet.js +2 -1
- package/dist/ImageLink/index.js +2 -1
- package/dist/Input/Input.css.js +2 -1
- package/dist/Inputs/Input.css.js +2 -1
- package/dist/Insight/Featured/CategorySelector.css.js +2 -1
- package/dist/Insight/Featured/CategorySelector.js +2 -1
- package/dist/Insight/Featured/Featured.js +2 -1
- package/dist/Insight/Featured/Header.js +2 -1
- package/dist/Interstitial/Interstitial-variants.css.js +2 -1
- package/dist/LandingPageHeader/LandingPageHeader.css.js +2 -1
- package/dist/LandingPageHeader/LandingPageHeader.js +2 -1
- package/dist/MainHTML/index.d.ts +1 -1
- package/dist/MainHTML/index.js +3 -1
- package/dist/Modal/Modal.css.js +2 -1
- package/dist/Modal/Modal.js +2 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.css.js +2 -1
- package/dist/NavigationMenu/AxosALTS/NavData.js +2 -1
- package/dist/NavigationMenu/AxosALTS/index.js +2 -1
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +2 -1
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +2 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +2 -1
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +2 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +2 -1
- package/dist/NavigationMenu/AxosBank/NavBar.css.js +2 -1
- package/dist/NavigationMenu/AxosBank/NavData.js +2 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +2 -1
- package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +2 -1
- package/dist/NavigationMenu/AxosBank/index.js +2 -1
- package/dist/NavigationMenu/LaVictoire/NavData.js +2 -1
- package/dist/NavigationMenu/LaVictoire/index.js +2 -1
- package/dist/NavigationMenu/NavDataJson.js +2 -1
- package/dist/NavigationMenu/Navbar.js +2 -1
- package/dist/NavigationMenu/SignInNavButton.js +2 -1
- package/dist/PageNavItem/PageNavItem.css.js +2 -1
- package/dist/Pagination/Pagination.js +2 -1
- package/dist/SecondaryFooter/SecondaryFooter.css.js +2 -1
- package/dist/SetContainer/SetContainer.css.js +2 -1
- package/dist/SetContainer/SetContainer.js +2 -1
- package/dist/SocialMediaBar/iconsRepository.js +2 -1
- package/dist/StepItem/StepItem.css.js +2 -1
- package/dist/StepItemSet/StepItemSet.css.js +2 -1
- package/dist/StepItemSet/StepItemSet.js +2 -1
- package/dist/Tab/Tab.css.js +2 -1
- package/dist/Table/Table.css.js +2 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/Table.js +2 -1
- package/dist/TextBlock/TextBlock.css.js +2 -1
- package/dist/VideoTile/VideoTile.css.js +2 -1
- package/dist/VideoTile/VideoTile.js +2 -1
- package/dist/VideoWrapper/index.js +2 -1
- package/dist/assets/Chatbot/Bubble.css +62 -21
- package/dist/assets/Chatbot/ChatWindow.css +179 -76
- package/dist/assets/Insight/Insight.css +2 -2
- package/dist/assets/themes/axos.css +10 -0
- package/dist/assets/themes/premier.css +10 -0
- package/dist/assets/themes/ufb.css +50 -0
- package/dist/assets/themes/victorie.css +10 -0
- package/dist/icons/ArrowIcon/ArrowIcon.css.js +2 -1
- package/dist/icons/CheckIcon/CheckIcon.css.js +2 -1
- package/dist/icons/DownloadIcon/DownloadIcon.css.js +2 -1
- package/dist/icons/FollowIcon/FollowIcon.css.js +2 -1
- package/dist/main.js +20 -2
- package/dist/themes/axos.css.d.ts +16 -0
- package/dist/themes/axos.css.js +1 -1
- package/dist/themes/index.d.ts +1 -0
- package/dist/themes/index.js +2 -0
- package/dist/themes/ufb.css.d.ts +1 -0
- package/dist/themes/ufb.css.js +6 -0
- package/package.json +1 -1
package/dist/Chatbot/Chatbot.js
CHANGED
|
@@ -209,9 +209,13 @@ const Chatbot = ({
|
|
|
209
209
|
chatRef.current = null;
|
|
210
210
|
console.log("Chat ended");
|
|
211
211
|
setHasStarted(false);
|
|
212
|
-
reset();
|
|
213
212
|
}
|
|
214
213
|
};
|
|
214
|
+
const onEndAndStartNewChat = async () => {
|
|
215
|
+
console.log("Ending current chat and starting a new one");
|
|
216
|
+
await onEndChat();
|
|
217
|
+
await startChat();
|
|
218
|
+
};
|
|
215
219
|
useMount(async () => {
|
|
216
220
|
console.log("Chatbot mounted");
|
|
217
221
|
if (isMountedRef.current) return;
|
|
@@ -221,7 +225,6 @@ const Chatbot = ({
|
|
|
221
225
|
useEffect(() => {
|
|
222
226
|
if (menusLoaded && pendingStart && !hasStarted) {
|
|
223
227
|
startChat();
|
|
224
|
-
setHasStarted(true);
|
|
225
228
|
setPendingStart(false);
|
|
226
229
|
}
|
|
227
230
|
}, [menusLoaded, pendingStart, hasStarted]);
|
|
@@ -238,6 +241,13 @@ const Chatbot = ({
|
|
|
238
241
|
clientRef.current?.destroyChat();
|
|
239
242
|
clientRef.current = null;
|
|
240
243
|
});
|
|
244
|
+
const onClose = () => {
|
|
245
|
+
toggle();
|
|
246
|
+
};
|
|
247
|
+
const onCloseAfterThankYou = () => {
|
|
248
|
+
reset();
|
|
249
|
+
setHasStarted(false);
|
|
250
|
+
};
|
|
241
251
|
return /* @__PURE__ */ jsxs("div", { className: project === "ufb" ? chatbotUFB : chatbotAXB, children: [
|
|
242
252
|
/* @__PURE__ */ jsx(Bubble, { onClick: handleClick }),
|
|
243
253
|
/* @__PURE__ */ jsx(
|
|
@@ -247,7 +257,10 @@ const Chatbot = ({
|
|
|
247
257
|
virtualAgent: agent_virtual.current,
|
|
248
258
|
messages,
|
|
249
259
|
onSend: onSendMessage,
|
|
250
|
-
endChat: onEndChat
|
|
260
|
+
endChat: onEndChat,
|
|
261
|
+
onClose,
|
|
262
|
+
onNewChat: onEndAndStartNewChat,
|
|
263
|
+
onCloseAfterThankYou
|
|
251
264
|
}
|
|
252
265
|
)
|
|
253
266
|
] });
|
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { vars } from "../themes/axos.css.js";
|
|
3
|
+
import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { thankyou_image, endChatButtonStyle, noAnswerButton, chatFinishDialog, thankyou_message, chatEndDialogOverlay, thankyou_overlay } from "./ChatWindow.css.js";
|
|
9
|
+
const ThankYouMessage = ({
|
|
10
|
+
showEndChatDialog = false,
|
|
11
|
+
onClose,
|
|
12
|
+
onStart
|
|
13
|
+
}) => {
|
|
14
|
+
return showEndChatDialog && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15
|
+
/* @__PURE__ */ jsx(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
style: {
|
|
19
|
+
background: "#00000080",
|
|
20
|
+
position: "fixed",
|
|
21
|
+
top: 0,
|
|
22
|
+
left: 0,
|
|
23
|
+
right: 0,
|
|
24
|
+
bottom: 0,
|
|
25
|
+
zIndex: 999
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
"dialog",
|
|
31
|
+
{
|
|
32
|
+
open: showEndChatDialog,
|
|
33
|
+
className: clsx(chatEndDialogOverlay, thankyou_overlay),
|
|
34
|
+
children: /* @__PURE__ */ jsxs(
|
|
35
|
+
"form",
|
|
36
|
+
{
|
|
37
|
+
method: "dialog",
|
|
38
|
+
className: clsx(chatFinishDialog, thankyou_message),
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ jsx("div", { className: clsx(thankyou_image), style: {}, children: /* @__PURE__ */ jsxs(
|
|
41
|
+
"svg",
|
|
42
|
+
{
|
|
43
|
+
viewBox: "0 0 327 327",
|
|
44
|
+
fill: "none",
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(
|
|
48
|
+
"path",
|
|
49
|
+
{
|
|
50
|
+
d: "M73.1817 54.4287C74.4276 54.4287 75.4376 53.4202 75.4376 52.1762C75.4376 50.9322 74.4276 49.9237 73.1817 49.9237C71.9358 49.9237 70.9258 50.9322 70.9258 52.1762C70.9258 53.4202 71.9358 54.4287 73.1817 54.4287Z",
|
|
51
|
+
fill: "#87B9D7"
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ jsx(
|
|
55
|
+
"path",
|
|
56
|
+
{
|
|
57
|
+
d: "M73.1817 70.3694C74.4276 70.3694 75.4376 69.3609 75.4376 68.1169C75.4376 66.8729 74.4276 65.8644 73.1817 65.8644C71.9358 65.8644 70.9258 66.8729 70.9258 68.1169C70.9258 69.3609 71.9358 70.3694 73.1817 70.3694Z",
|
|
58
|
+
fill: "#87B9D7"
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ jsx(
|
|
62
|
+
"path",
|
|
63
|
+
{
|
|
64
|
+
d: "M73.1817 86.3098C74.4276 86.3098 75.4376 85.3013 75.4376 84.0573C75.4376 82.8133 74.4276 81.8048 73.1817 81.8048C71.9358 81.8048 70.9258 82.8133 70.9258 84.0573C70.9258 85.3013 71.9358 86.3098 73.1817 86.3098Z",
|
|
65
|
+
fill: "#87B9D7"
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
"path",
|
|
70
|
+
{
|
|
71
|
+
d: "M73.1817 102.251C74.4276 102.251 75.4376 101.242 75.4376 99.9985C75.4376 98.7544 74.4276 97.746 73.1817 97.746C71.9358 97.746 70.9258 98.7544 70.9258 99.9985C70.9258 101.242 71.9358 102.251 73.1817 102.251Z",
|
|
72
|
+
fill: "#87B9D7"
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsx(
|
|
76
|
+
"path",
|
|
77
|
+
{
|
|
78
|
+
d: "M58.086 54.4287C59.3319 54.4287 60.3419 53.4202 60.3419 52.1762C60.3419 50.9322 59.3319 49.9237 58.086 49.9237C56.8401 49.9237 55.8301 50.9322 55.8301 52.1762C55.8301 53.4202 56.8401 54.4287 58.086 54.4287Z",
|
|
79
|
+
fill: "#87B9D7"
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ jsx(
|
|
83
|
+
"path",
|
|
84
|
+
{
|
|
85
|
+
d: "M58.086 70.3694C59.3319 70.3694 60.3419 69.3609 60.3419 68.1169C60.3419 66.8729 59.3319 65.8644 58.086 65.8644C56.8401 65.8644 55.8301 66.8729 55.8301 68.1169C55.8301 69.3609 56.8401 70.3694 58.086 70.3694Z",
|
|
86
|
+
fill: "#87B9D7"
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ jsx(
|
|
90
|
+
"path",
|
|
91
|
+
{
|
|
92
|
+
d: "M58.086 86.3098C59.3319 86.3098 60.3419 85.3013 60.3419 84.0573C60.3419 82.8133 59.3319 81.8048 58.086 81.8048C56.8401 81.8048 55.8301 82.8133 55.8301 84.0573C55.8301 85.3013 56.8401 86.3098 58.086 86.3098Z",
|
|
93
|
+
fill: "#87B9D7"
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
/* @__PURE__ */ jsx(
|
|
97
|
+
"path",
|
|
98
|
+
{
|
|
99
|
+
d: "M58.086 102.251C59.3319 102.251 60.3419 101.242 60.3419 99.9985C60.3419 98.7544 59.3319 97.746 58.086 97.746C56.8401 97.746 55.8301 98.7544 55.8301 99.9985C55.8301 101.242 56.8401 102.251 58.086 102.251Z",
|
|
100
|
+
fill: "#87B9D7"
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ jsx(
|
|
104
|
+
"path",
|
|
105
|
+
{
|
|
106
|
+
d: "M43.0762 54.4287C44.3222 54.4287 45.3322 53.4202 45.3322 52.1762C45.3322 50.9322 44.3222 49.9237 43.0762 49.9237C41.8303 49.9237 40.8203 50.9322 40.8203 52.1762C40.8203 53.4202 41.8303 54.4287 43.0762 54.4287Z",
|
|
107
|
+
fill: "#87B9D7"
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ jsx(
|
|
111
|
+
"path",
|
|
112
|
+
{
|
|
113
|
+
d: "M43.0762 70.3694C44.3222 70.3694 45.3322 69.3609 45.3322 68.1169C45.3322 66.8729 44.3222 65.8644 43.0762 65.8644C41.8303 65.8644 40.8203 66.8729 40.8203 68.1169C40.8203 69.3609 41.8303 70.3694 43.0762 70.3694Z",
|
|
114
|
+
fill: "#87B9D7"
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ jsx(
|
|
118
|
+
"path",
|
|
119
|
+
{
|
|
120
|
+
d: "M43.0762 86.3098C44.3222 86.3098 45.3322 85.3013 45.3322 84.0573C45.3322 82.8133 44.3222 81.8048 43.0762 81.8048C41.8303 81.8048 40.8203 82.8133 40.8203 84.0573C40.8203 85.3013 41.8303 86.3098 43.0762 86.3098Z",
|
|
121
|
+
fill: "#87B9D7"
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
/* @__PURE__ */ jsx(
|
|
125
|
+
"path",
|
|
126
|
+
{
|
|
127
|
+
d: "M43.0762 102.251C44.3222 102.251 45.3322 101.242 45.3322 99.9985C45.3322 98.7544 44.3222 97.746 43.0762 97.746C41.8303 97.746 40.8203 98.7544 40.8203 99.9985C40.8203 101.242 41.8303 102.251 43.0762 102.251Z",
|
|
128
|
+
fill: "#87B9D7"
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
/* @__PURE__ */ jsx(
|
|
132
|
+
"path",
|
|
133
|
+
{
|
|
134
|
+
d: "M28.0643 54.4287C29.3102 54.4287 30.3202 53.4202 30.3202 52.1762C30.3202 50.9322 29.3102 49.9237 28.0643 49.9237C26.8184 49.9237 25.8083 50.9322 25.8083 52.1762C25.8083 53.4202 26.8184 54.4287 28.0643 54.4287Z",
|
|
135
|
+
fill: "#87B9D7"
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
/* @__PURE__ */ jsx(
|
|
139
|
+
"path",
|
|
140
|
+
{
|
|
141
|
+
d: "M28.0643 70.3694C29.3102 70.3694 30.3202 69.3609 30.3202 68.1169C30.3202 66.8729 29.3102 65.8644 28.0643 65.8644C26.8184 65.8644 25.8083 66.8729 25.8083 68.1169C25.8083 69.3609 26.8184 70.3694 28.0643 70.3694Z",
|
|
142
|
+
fill: "#87B9D7"
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
/* @__PURE__ */ jsx(
|
|
146
|
+
"path",
|
|
147
|
+
{
|
|
148
|
+
d: "M28.0643 86.3098C29.3102 86.3098 30.3202 85.3013 30.3202 84.0573C30.3202 82.8133 29.3102 81.8048 28.0643 81.8048C26.8184 81.8048 25.8083 82.8133 25.8083 84.0573C25.8083 85.3013 26.8184 86.3098 28.0643 86.3098Z",
|
|
149
|
+
fill: "#87B9D7"
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
/* @__PURE__ */ jsx(
|
|
153
|
+
"path",
|
|
154
|
+
{
|
|
155
|
+
d: "M28.0643 102.251C29.3102 102.251 30.3202 101.242 30.3202 99.9985C30.3202 98.7544 29.3102 97.746 28.0643 97.746C26.8184 97.746 25.8083 98.7544 25.8083 99.9985C25.8083 101.242 26.8184 102.251 28.0643 102.251Z",
|
|
156
|
+
fill: "#87B9D7"
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ jsx(
|
|
160
|
+
"path",
|
|
161
|
+
{
|
|
162
|
+
d: "M12.9669 54.4287C14.2128 54.4287 15.2228 53.4202 15.2228 52.1762C15.2228 50.9322 14.2128 49.9237 12.9669 49.9237C11.721 49.9237 10.7109 50.9322 10.7109 52.1762C10.7109 53.4202 11.721 54.4287 12.9669 54.4287Z",
|
|
163
|
+
fill: "#87B9D7"
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
"path",
|
|
168
|
+
{
|
|
169
|
+
d: "M12.9669 70.3694C14.2128 70.3694 15.2228 69.3609 15.2228 68.1169C15.2228 66.8729 14.2128 65.8644 12.9669 65.8644C11.721 65.8644 10.7109 66.8729 10.7109 68.1169C10.7109 69.3609 11.721 70.3694 12.9669 70.3694Z",
|
|
170
|
+
fill: "#87B9D7"
|
|
171
|
+
}
|
|
172
|
+
),
|
|
173
|
+
/* @__PURE__ */ jsx(
|
|
174
|
+
"path",
|
|
175
|
+
{
|
|
176
|
+
d: "M12.9669 86.3098C14.2128 86.3098 15.2228 85.3013 15.2228 84.0573C15.2228 82.8133 14.2128 81.8048 12.9669 81.8048C11.721 81.8048 10.7109 82.8133 10.7109 84.0573C10.7109 85.3013 11.721 86.3098 12.9669 86.3098Z",
|
|
177
|
+
fill: "#87B9D7"
|
|
178
|
+
}
|
|
179
|
+
),
|
|
180
|
+
/* @__PURE__ */ jsx(
|
|
181
|
+
"path",
|
|
182
|
+
{
|
|
183
|
+
d: "M12.9669 102.251C14.2128 102.251 15.2228 101.242 15.2228 99.9985C15.2228 98.7544 14.2128 97.746 12.9669 97.746C11.721 97.746 10.7109 98.7544 10.7109 99.9985C10.7109 101.242 11.721 102.251 12.9669 102.251Z",
|
|
184
|
+
fill: "#87B9D7"
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
/* @__PURE__ */ jsx(
|
|
188
|
+
"path",
|
|
189
|
+
{
|
|
190
|
+
fillRule: "evenodd",
|
|
191
|
+
clipRule: "evenodd",
|
|
192
|
+
d: "M191.025 249.283H238.459V256.619H191.025V249.283ZM192.559 250.815V255.088H236.925V250.815H192.559Z",
|
|
193
|
+
fill: "#87B9D7"
|
|
194
|
+
}
|
|
195
|
+
),
|
|
196
|
+
/* @__PURE__ */ jsx(
|
|
197
|
+
"path",
|
|
198
|
+
{
|
|
199
|
+
fillRule: "evenodd",
|
|
200
|
+
clipRule: "evenodd",
|
|
201
|
+
d: "M288.37 134.12L293.923 140.271L298.993 134.741L300.124 135.775L293.914 142.548L288.361 136.397L283.292 141.926L282.16 140.892L288.37 134.12Z",
|
|
202
|
+
fill: "#FAA74A"
|
|
203
|
+
}
|
|
204
|
+
),
|
|
205
|
+
/* @__PURE__ */ jsx(
|
|
206
|
+
"path",
|
|
207
|
+
{
|
|
208
|
+
fillRule: "evenodd",
|
|
209
|
+
clipRule: "evenodd",
|
|
210
|
+
d: "M35.0938 241.312H73.8785V242.844H35.0938V241.312Z",
|
|
211
|
+
fill: "#FAA74A"
|
|
212
|
+
}
|
|
213
|
+
),
|
|
214
|
+
/* @__PURE__ */ jsx(
|
|
215
|
+
"path",
|
|
216
|
+
{
|
|
217
|
+
fillRule: "evenodd",
|
|
218
|
+
clipRule: "evenodd",
|
|
219
|
+
d: "M64.2458 254.568H91.7509V256.099H64.2458V254.568Z",
|
|
220
|
+
fill: "#FAA74A"
|
|
221
|
+
}
|
|
222
|
+
),
|
|
223
|
+
/* @__PURE__ */ jsx(
|
|
224
|
+
"path",
|
|
225
|
+
{
|
|
226
|
+
fillRule: "evenodd",
|
|
227
|
+
clipRule: "evenodd",
|
|
228
|
+
d: "M229.797 66.6303H174.006V65.0988H229.797V66.6303Z",
|
|
229
|
+
fill: "#DEF4FF"
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
/* @__PURE__ */ jsx(
|
|
233
|
+
"path",
|
|
234
|
+
{
|
|
235
|
+
fillRule: "evenodd",
|
|
236
|
+
clipRule: "evenodd",
|
|
237
|
+
d: "M136.956 55.1942H111.881V53.6627H136.956V55.1942Z",
|
|
238
|
+
fill: "#DEF4FF"
|
|
239
|
+
}
|
|
240
|
+
),
|
|
241
|
+
/* @__PURE__ */ jsx(
|
|
242
|
+
"path",
|
|
243
|
+
{
|
|
244
|
+
d: "M148.495 236.881H289.578C294.697 236.881 298.862 232.722 298.862 227.611V160.469C298.862 155.358 294.697 151.199 289.578 151.199H148.495C143.376 151.199 139.211 155.358 139.211 160.469V227.611C139.211 232.809 143.376 236.881 148.495 236.881Z",
|
|
245
|
+
fill: "#87B9D7"
|
|
246
|
+
}
|
|
247
|
+
),
|
|
248
|
+
/* @__PURE__ */ jsx(
|
|
249
|
+
"path",
|
|
250
|
+
{
|
|
251
|
+
fillRule: "evenodd",
|
|
252
|
+
clipRule: "evenodd",
|
|
253
|
+
d: "M152.4 172.178H284.98V174.058H152.4V172.178Z",
|
|
254
|
+
fill: "#4D85B0"
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
/* @__PURE__ */ jsx(
|
|
258
|
+
"path",
|
|
259
|
+
{
|
|
260
|
+
fillRule: "evenodd",
|
|
261
|
+
clipRule: "evenodd",
|
|
262
|
+
d: "M152.4 186.213H284.98V188.093H152.4V186.213Z",
|
|
263
|
+
fill: "#4D85B0"
|
|
264
|
+
}
|
|
265
|
+
),
|
|
266
|
+
/* @__PURE__ */ jsx(
|
|
267
|
+
"path",
|
|
268
|
+
{
|
|
269
|
+
fillRule: "evenodd",
|
|
270
|
+
clipRule: "evenodd",
|
|
271
|
+
d: "M152.4 200.161H284.98V202.041H152.4V200.161Z",
|
|
272
|
+
fill: "#4D85B0"
|
|
273
|
+
}
|
|
274
|
+
),
|
|
275
|
+
/* @__PURE__ */ jsx(
|
|
276
|
+
"path",
|
|
277
|
+
{
|
|
278
|
+
fillRule: "evenodd",
|
|
279
|
+
clipRule: "evenodd",
|
|
280
|
+
d: "M152.4 214.109H284.98V215.989H152.4V214.109Z",
|
|
281
|
+
fill: "#4D85B0"
|
|
282
|
+
}
|
|
283
|
+
),
|
|
284
|
+
/* @__PURE__ */ jsx(
|
|
285
|
+
"path",
|
|
286
|
+
{
|
|
287
|
+
d: "M279.862 255.074V231.509H248.973L274.742 257.24C276.564 259.146 279.862 257.76 279.862 255.074Z",
|
|
288
|
+
fill: "#87B9D7"
|
|
289
|
+
}
|
|
290
|
+
),
|
|
291
|
+
/* @__PURE__ */ jsx(
|
|
292
|
+
"path",
|
|
293
|
+
{
|
|
294
|
+
d: "M247.67 193.824H47.8465C42.7273 193.824 38.5625 189.665 38.5625 184.554V85.8774C38.5625 80.766 42.7273 76.6075 47.8465 76.6075H247.67C252.789 76.6075 256.954 80.766 256.954 85.8774V184.554C256.954 189.665 252.789 193.824 247.67 193.824Z",
|
|
295
|
+
fill: "#1E3860"
|
|
296
|
+
}
|
|
297
|
+
),
|
|
298
|
+
/* @__PURE__ */ jsx(
|
|
299
|
+
"path",
|
|
300
|
+
{
|
|
301
|
+
fillRule: "evenodd",
|
|
302
|
+
clipRule: "evenodd",
|
|
303
|
+
d: "M238.994 107.869H149.277V105.297H238.994V107.869Z",
|
|
304
|
+
fill: "#2F5B88"
|
|
305
|
+
}
|
|
306
|
+
),
|
|
307
|
+
/* @__PURE__ */ jsx(
|
|
308
|
+
"path",
|
|
309
|
+
{
|
|
310
|
+
fillRule: "evenodd",
|
|
311
|
+
clipRule: "evenodd",
|
|
312
|
+
d: "M238.994 127.015H149.277V124.444H238.994V127.015Z",
|
|
313
|
+
fill: "#2F5B88"
|
|
314
|
+
}
|
|
315
|
+
),
|
|
316
|
+
/* @__PURE__ */ jsx(
|
|
317
|
+
"path",
|
|
318
|
+
{
|
|
319
|
+
fillRule: "evenodd",
|
|
320
|
+
clipRule: "evenodd",
|
|
321
|
+
d: "M238.994 146.074H149.277V143.503H238.994V146.074Z",
|
|
322
|
+
fill: "#2F5B88"
|
|
323
|
+
}
|
|
324
|
+
),
|
|
325
|
+
/* @__PURE__ */ jsx(
|
|
326
|
+
"path",
|
|
327
|
+
{
|
|
328
|
+
fillRule: "evenodd",
|
|
329
|
+
clipRule: "evenodd",
|
|
330
|
+
d: "M238.994 165.134H149.277V162.563H238.994V165.134Z",
|
|
331
|
+
fill: "#2F5B88"
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
/* @__PURE__ */ jsx(
|
|
335
|
+
"path",
|
|
336
|
+
{
|
|
337
|
+
d: "M64.5938 218.688V186.373H106.849L71.6218 221.547C69.0188 224.146 64.5938 222.326 64.5938 218.688Z",
|
|
338
|
+
fill: "#1E3860"
|
|
339
|
+
}
|
|
340
|
+
),
|
|
341
|
+
/* @__PURE__ */ jsx(
|
|
342
|
+
"path",
|
|
343
|
+
{
|
|
344
|
+
d: "M139.214 277.339C155.171 277.339 168.107 264.422 168.107 248.489C168.107 232.556 155.171 219.64 139.214 219.64C123.256 219.64 110.32 232.556 110.32 248.489C110.32 264.422 123.256 277.339 139.214 277.339Z",
|
|
345
|
+
fill: "#DEF4FF"
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
/* @__PURE__ */ jsx(
|
|
349
|
+
"path",
|
|
350
|
+
{
|
|
351
|
+
fillRule: "evenodd",
|
|
352
|
+
clipRule: "evenodd",
|
|
353
|
+
d: "M131.924 247.363C135.394 247.363 138.258 244.504 138.258 241.039C138.258 237.574 135.394 234.715 131.924 234.715C128.453 234.715 125.59 237.574 125.59 241.039C125.59 244.504 128.453 247.363 131.924 247.363ZM131.924 244.504C133.833 244.504 135.394 242.945 135.394 241.039C135.394 239.133 133.833 237.574 131.924 237.574C130.015 237.574 128.453 239.133 128.453 241.039C128.453 242.945 130.015 244.504 131.924 244.504Z",
|
|
354
|
+
fill: "#2F5B88"
|
|
355
|
+
}
|
|
356
|
+
),
|
|
357
|
+
/* @__PURE__ */ jsx(
|
|
358
|
+
"path",
|
|
359
|
+
{
|
|
360
|
+
d: "M153.269 237.141L127.933 262.438L125.938 260.445L151.273 235.148L153.269 237.141Z",
|
|
361
|
+
fill: "#2F5B88"
|
|
362
|
+
}
|
|
363
|
+
),
|
|
364
|
+
/* @__PURE__ */ jsx(
|
|
365
|
+
"path",
|
|
366
|
+
{
|
|
367
|
+
fillRule: "evenodd",
|
|
368
|
+
clipRule: "evenodd",
|
|
369
|
+
d: "M153.703 256.46C153.703 259.925 150.84 262.784 147.369 262.784C143.898 262.784 141.035 259.925 141.035 256.46C141.035 252.994 143.898 250.135 147.369 250.135C150.84 250.135 153.703 252.994 153.703 256.46ZM150.927 256.46C150.927 258.366 149.365 259.925 147.456 259.925C145.547 259.925 143.985 258.366 143.985 256.46C143.985 254.554 145.547 252.994 147.456 252.994C149.365 252.994 150.927 254.554 150.927 256.46Z",
|
|
370
|
+
fill: "#2F5B88"
|
|
371
|
+
}
|
|
372
|
+
),
|
|
373
|
+
/* @__PURE__ */ jsx(
|
|
374
|
+
"path",
|
|
375
|
+
{
|
|
376
|
+
d: "M269.709 127.981C281.545 127.981 291.14 118.401 291.14 106.583C291.14 94.7646 281.545 85.1841 269.709 85.1841C257.872 85.1841 248.277 94.7646 248.277 106.583C248.277 118.401 257.872 127.981 269.709 127.981Z",
|
|
377
|
+
fill: "#87B9D7"
|
|
378
|
+
}
|
|
379
|
+
),
|
|
380
|
+
/* @__PURE__ */ jsx(
|
|
381
|
+
"path",
|
|
382
|
+
{
|
|
383
|
+
d: "M269.71 120.877C271.099 120.877 272.226 119.752 272.226 118.365C272.226 116.977 271.099 115.853 269.71 115.853C268.32 115.853 267.193 116.977 267.193 118.365C267.193 119.752 268.32 120.877 269.71 120.877Z",
|
|
384
|
+
fill: "#1E3860"
|
|
385
|
+
}
|
|
386
|
+
),
|
|
387
|
+
/* @__PURE__ */ jsx(
|
|
388
|
+
"path",
|
|
389
|
+
{
|
|
390
|
+
d: "M269.709 93.7606C273.787 93.7606 276.564 96.7928 276.564 100.605C276.564 102.511 275.87 103.637 273.961 105.543L273.44 106.063L272.659 106.842C271.792 107.795 271.445 108.315 271.358 108.835V109.095V112.474H267.974V109.095V108.662C268.061 107.016 268.842 105.889 270.49 104.157L271.011 103.637L271.792 102.857C272.746 101.818 273.093 101.211 273.093 100.605C273.093 98.6121 271.792 97.226 269.709 97.226C267.974 97.226 266.499 98.872 266.325 100.345V100.691H262.941V100.258C263.115 97.0527 265.978 93.7606 269.709 93.7606Z",
|
|
391
|
+
fill: "#1E3860"
|
|
392
|
+
}
|
|
393
|
+
),
|
|
394
|
+
/* @__PURE__ */ jsx(
|
|
395
|
+
"path",
|
|
396
|
+
{
|
|
397
|
+
d: "M93.5731 147.647C104.332 147.647 113.529 154.058 117.694 163.242C125.59 156.484 130.622 146.434 130.622 135.172C130.622 114.726 114.05 98.2659 93.6599 98.2659C73.2697 98.2659 56.6973 114.813 56.6973 135.172C56.6973 146.348 61.7297 156.397 69.6255 163.242C73.53 154.058 82.814 147.647 93.5731 147.647ZM93.5731 110.828C102.337 110.828 109.365 117.932 109.365 126.595C109.365 135.345 102.25 142.363 93.5731 142.363C84.8097 142.363 77.7816 135.259 77.7816 126.595C77.6948 117.845 84.8097 110.828 93.5731 110.828Z",
|
|
398
|
+
fill: "#DEF4FF"
|
|
399
|
+
}
|
|
400
|
+
),
|
|
401
|
+
/* @__PURE__ */ jsx(
|
|
402
|
+
"path",
|
|
403
|
+
{
|
|
404
|
+
d: "M93.5728 142.362C102.294 142.362 109.364 135.303 109.364 126.595C109.364 117.887 102.294 110.827 93.5728 110.827C84.8514 110.827 77.7812 117.887 77.7812 126.595C77.7812 135.303 84.8514 142.362 93.5728 142.362Z",
|
|
405
|
+
fill: "#4D85B0"
|
|
406
|
+
}
|
|
407
|
+
),
|
|
408
|
+
/* @__PURE__ */ jsx(
|
|
409
|
+
"path",
|
|
410
|
+
{
|
|
411
|
+
d: "M117.608 163.241C113.529 154.058 104.245 147.647 93.4864 147.647C82.7273 147.647 73.53 154.058 69.3652 163.241C75.8727 168.786 84.2891 172.165 93.4864 172.165C102.684 172.165 111.187 168.872 117.608 163.241Z",
|
|
412
|
+
fill: "#4D85B0"
|
|
413
|
+
}
|
|
414
|
+
),
|
|
415
|
+
/* @__PURE__ */ jsx(
|
|
416
|
+
"path",
|
|
417
|
+
{
|
|
418
|
+
d: "M316.304 226.571C316.304 226.225 316.39 225.878 316.39 225.618C316.39 220.767 312.833 216.868 308.321 216.868C305.024 216.868 302.248 218.947 301.033 221.979C300.425 221.72 299.731 221.546 298.95 221.546C296 221.546 293.658 223.712 293.311 226.571H316.304Z",
|
|
419
|
+
fill: "#4D85B0"
|
|
420
|
+
}
|
|
421
|
+
),
|
|
422
|
+
/* @__PURE__ */ jsx(
|
|
423
|
+
"path",
|
|
424
|
+
{
|
|
425
|
+
d: "M23.7274 169.566C23.7274 169.219 23.6406 168.786 23.6406 168.439C23.6406 162.808 27.8922 158.216 33.0982 158.216C36.9159 158.216 40.2131 160.729 41.6881 164.281C42.469 164.021 43.2499 163.848 44.1176 163.848C47.5015 163.848 50.3648 166.36 50.7118 169.652H23.7274V169.566Z",
|
|
426
|
+
fill: "#87B9D7"
|
|
427
|
+
}
|
|
428
|
+
),
|
|
429
|
+
/* @__PURE__ */ jsx(
|
|
430
|
+
"path",
|
|
431
|
+
{
|
|
432
|
+
d: "M285.067 68.1168C285.067 67.7703 284.98 67.5104 284.98 67.1639C284.98 62.4856 288.451 58.6737 292.789 58.6737C295.913 58.6737 298.69 60.7529 299.904 63.6985C300.512 63.4386 301.206 63.352 301.9 63.352C304.763 63.352 307.019 65.4312 307.366 68.2035H285.067V68.1168Z",
|
|
433
|
+
fill: "#DEF4FF"
|
|
434
|
+
}
|
|
435
|
+
)
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
) }),
|
|
439
|
+
/* @__PURE__ */ jsx(
|
|
440
|
+
"div",
|
|
441
|
+
{
|
|
442
|
+
style: {
|
|
443
|
+
fontSize: 16,
|
|
444
|
+
marginTop: 8,
|
|
445
|
+
fontWeight: 500,
|
|
446
|
+
color: vars.chatbot.window.headerText
|
|
447
|
+
},
|
|
448
|
+
children: "Thanks for chatting!"
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
/* @__PURE__ */ jsx(
|
|
452
|
+
"div",
|
|
453
|
+
{
|
|
454
|
+
style: {
|
|
455
|
+
fontSize: 14,
|
|
456
|
+
color: vars.chatbot.window.headerText,
|
|
457
|
+
textAlign: "center",
|
|
458
|
+
maxWidth: 280
|
|
459
|
+
},
|
|
460
|
+
children: "I'll be here in the future if you have more questions!"
|
|
461
|
+
}
|
|
462
|
+
),
|
|
463
|
+
" ",
|
|
464
|
+
/* @__PURE__ */ jsxs(
|
|
465
|
+
"div",
|
|
466
|
+
{
|
|
467
|
+
style: {
|
|
468
|
+
display: "flex",
|
|
469
|
+
gap: "1rem",
|
|
470
|
+
marginTop: "1.125rem",
|
|
471
|
+
flexDirection: "column",
|
|
472
|
+
marginBottom: 24,
|
|
473
|
+
width: "100%"
|
|
474
|
+
},
|
|
475
|
+
children: [
|
|
476
|
+
/* @__PURE__ */ jsx(
|
|
477
|
+
"button",
|
|
478
|
+
{
|
|
479
|
+
className: endChatButtonStyle,
|
|
480
|
+
type: "submit",
|
|
481
|
+
onClick: () => {
|
|
482
|
+
onStart?.();
|
|
483
|
+
},
|
|
484
|
+
children: "Start a New Conversation"
|
|
485
|
+
}
|
|
486
|
+
),
|
|
487
|
+
/* @__PURE__ */ jsx(
|
|
488
|
+
"button",
|
|
489
|
+
{
|
|
490
|
+
className: clsx(endChatButtonStyle, noAnswerButton),
|
|
491
|
+
type: "button",
|
|
492
|
+
onClick: () => {
|
|
493
|
+
onClose?.();
|
|
494
|
+
},
|
|
495
|
+
children: "Close Chat"
|
|
496
|
+
}
|
|
497
|
+
)
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
)
|
|
501
|
+
]
|
|
502
|
+
}
|
|
503
|
+
)
|
|
504
|
+
}
|
|
505
|
+
)
|
|
506
|
+
] });
|
|
507
|
+
};
|
|
508
|
+
export {
|
|
509
|
+
ThankYouMessage
|
|
510
|
+
};
|
package/dist/Chatbot/index.js
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Bubble } from "./Bubble.js";
|
|
3
|
-
import { bubbleWrapper, svgFill } from "./Bubble.css.js";
|
|
3
|
+
import { angle, borderHoverGradient, bubbleButton, bubbleText, bubbleWrapper, inner, svgFill } from "./Bubble.css.js";
|
|
4
4
|
import { Chatbot } from "./Chatbot.js";
|
|
5
5
|
import { chatbotAXB, chatbotUFB } from "./Chatbot.css.js";
|
|
6
6
|
import { ChatWindow } from "./ChatWindow.js";
|
|
7
|
-
import { arrowFill, autoResize, button_reset, chatFinishDialog, chatNetworkStatus, chat_title, chatbotMenu, chatbotMenuItem, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, messageStyle, messagesContainerStyle, notificationStyle, sendButtonStyle, windowBarStyle, windowOpenStyle, windowStyle } from "./ChatWindow.css.js";
|
|
7
|
+
import { agent_msg, arrowFill, autoResize, button_bar, button_reset, buttonss_section, chatEndCircle, chatEndDialogOverlay, chatFinishDialog, chatNetworkStatus, chat_title, chatbotMenu, chatbotMenuItem, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, left_bar_section, messageStyle, messagesContainerStyle, noAnswerButton, notificationStyle, sendButtonStyle, thankyou_image, thankyou_message, thankyou_overlay, user_msg, windowBarStyle, windowOpenStyle, windowStyle } from "./ChatWindow.css.js";
|
|
8
8
|
import { useOpenChat } from "./store/chat.js";
|
|
9
9
|
import { useMessages } from "./store/messages.js";
|
|
10
10
|
export {
|
|
11
11
|
Bubble,
|
|
12
12
|
ChatWindow,
|
|
13
13
|
Chatbot,
|
|
14
|
+
agent_msg,
|
|
15
|
+
angle,
|
|
14
16
|
arrowFill,
|
|
15
17
|
autoResize,
|
|
18
|
+
borderHoverGradient,
|
|
19
|
+
bubbleButton,
|
|
20
|
+
bubbleText,
|
|
16
21
|
bubbleWrapper,
|
|
22
|
+
button_bar,
|
|
17
23
|
button_reset,
|
|
24
|
+
buttonss_section,
|
|
25
|
+
chatEndCircle,
|
|
26
|
+
chatEndDialogOverlay,
|
|
18
27
|
chatFinishDialog,
|
|
19
28
|
chatNetworkStatus,
|
|
20
29
|
chat_title,
|
|
@@ -25,14 +34,21 @@ export {
|
|
|
25
34
|
endChatButtonStyle,
|
|
26
35
|
inline_button,
|
|
27
36
|
inline_button_wrapper,
|
|
37
|
+
inner,
|
|
28
38
|
inputStyle,
|
|
39
|
+
left_bar_section,
|
|
29
40
|
messageStyle,
|
|
30
41
|
messagesContainerStyle,
|
|
42
|
+
noAnswerButton,
|
|
31
43
|
notificationStyle,
|
|
32
44
|
sendButtonStyle,
|
|
33
45
|
svgFill,
|
|
46
|
+
thankyou_image,
|
|
47
|
+
thankyou_message,
|
|
48
|
+
thankyou_overlay,
|
|
34
49
|
useMessages,
|
|
35
50
|
useOpenChat,
|
|
51
|
+
user_msg,
|
|
36
52
|
windowBarStyle,
|
|
37
53
|
windowOpenStyle,
|
|
38
54
|
windowStyle
|
|
@@ -5,6 +5,9 @@ interface OpenChatState {
|
|
|
5
5
|
open: () => void;
|
|
6
6
|
close: () => void;
|
|
7
7
|
reset: () => void;
|
|
8
|
+
showThankyouMessage: boolean;
|
|
9
|
+
displayThankyouMessage: () => void;
|
|
10
|
+
toggleThankyouMessage?: () => void;
|
|
8
11
|
}
|
|
9
12
|
export declare const useOpenChat: import('zustand').UseBoundStore<import('zustand').StoreApi<OpenChatState>>;
|
|
10
13
|
export {};
|
|
@@ -2,6 +2,7 @@ import { create } from "zustand";
|
|
|
2
2
|
const useOpenChat = create((set, get) => ({
|
|
3
3
|
isOpen: false,
|
|
4
4
|
hasOpenedOnce: false,
|
|
5
|
+
showThankyouMessage: false,
|
|
5
6
|
toggle: () => set((state) => ({ isOpen: !state.isOpen, hasOpenedOnce: true })),
|
|
6
7
|
open: () => {
|
|
7
8
|
const alreadyOpened = get().hasOpenedOnce;
|
|
@@ -11,7 +12,9 @@ const useOpenChat = create((set, get) => ({
|
|
|
11
12
|
});
|
|
12
13
|
},
|
|
13
14
|
close: () => set({ isOpen: false }),
|
|
14
|
-
reset: () => set({ hasOpenedOnce: false, isOpen: false })
|
|
15
|
+
reset: () => set({ hasOpenedOnce: false, isOpen: false, showThankyouMessage: false }),
|
|
16
|
+
displayThankyouMessage: () => set({ showThankyouMessage: true }),
|
|
17
|
+
toggleThankyouMessage: () => set((state) => ({ showThankyouMessage: !state.showThankyouMessage }))
|
|
15
18
|
}));
|
|
16
19
|
export {
|
|
17
20
|
useOpenChat
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import '../assets/Chevron/Chevron.css';import '../assets/themes/victorie.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';import '../assets/Typography/Typography.css';/* empty css */
|
|
1
|
+
import '../assets/Chevron/Chevron.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';import '../assets/Typography/Typography.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
+
/* empty css */
|
|
4
5
|
/* empty css */
|
|
5
6
|
/* empty css */
|
|
6
7
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|