@axos-web-dev/shared-components 2.1.0 → 2.2.1

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 (260) hide show
  1. package/dist/ATMLocator/ATMLocator.d.ts +1 -1
  2. package/dist/ATMLocator/ATMLocator.js +5 -11
  3. package/dist/Accordion/Accordion.d.ts +3 -3
  4. package/dist/Article/Article.d.ts +1 -1
  5. package/dist/Auth/ErrorAlert.d.ts +1 -1
  6. package/dist/Auth/ErrorAlert.js +7 -13
  7. package/dist/Auth/Logout.d.ts +1 -1
  8. package/dist/Auth/SignInPassword.d.ts +1 -1
  9. package/dist/Auth/SignInPassword.js +0 -1
  10. package/dist/BulletItem/BulletItem.d.ts +1 -1
  11. package/dist/BulletItem/BulletItem.js +0 -1
  12. package/dist/Button/Button.d.ts +1 -1
  13. package/dist/Button/Button.js +6 -13
  14. package/dist/Button/GoBackButton.d.ts +1 -1
  15. package/dist/Calculators/AnnualFeeCalculator/index.js +0 -1
  16. package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +46 -5
  17. package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +72 -19
  18. package/dist/Calculators/ApyCalculator/index.js +585 -293
  19. package/dist/Calculators/AxosOneCalculator/index.js +7 -6
  20. package/dist/Calculators/BalanceAPYCalculator/index.js +0 -1
  21. package/dist/Calculators/BuyDownCalculator/index.js +0 -1
  22. package/dist/Calculators/Calculator.d.ts +1 -1
  23. package/dist/Calculators/Calculator.js +3 -9
  24. package/dist/Calculators/MarginTradingCalculator/index.js +118 -2
  25. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +0 -1
  26. package/dist/Calculators/MaxLoanCalculator/index.js +0 -1
  27. package/dist/Calculators/MonthlyPaymentCalculator/index.js +0 -1
  28. package/dist/Calculators/MonthlyPaymentLVFCalculator/index.js +0 -1
  29. package/dist/Calculators/SummitApyCalculator/index.js +3 -2
  30. package/dist/Carousel/index.d.ts +3 -3
  31. package/dist/Carousel/index.js +5 -11
  32. package/dist/Chatbot/AnimatedGradientBorder.css.d.ts +0 -5
  33. package/dist/Chatbot/AnimatedGradientBorder.css.js +3 -13
  34. package/dist/Chatbot/Bubble.css.js +1 -2
  35. package/dist/Chatbot/Bubble.d.ts +1 -1
  36. package/dist/Chatbot/Bubble.js +12 -3
  37. package/dist/Chatbot/Chat.d.ts +1 -1
  38. package/dist/Chatbot/Chat.js +7 -17
  39. package/dist/Chatbot/ChatWindow.css.d.ts +0 -4
  40. package/dist/Chatbot/ChatWindow.css.js +31 -39
  41. package/dist/Chatbot/ChatWindow.js +77 -133
  42. package/dist/Chatbot/Chatbot.d.ts +1 -1
  43. package/dist/Chatbot/Chatbot.js +20 -56
  44. package/dist/Chatbot/ChatbotMessage.js +159 -209
  45. package/dist/Chatbot/EllipsisAnimation.d.ts +1 -1
  46. package/dist/Chatbot/EllipsisIcon.d.ts +1 -1
  47. package/dist/Chatbot/authenticate.d.ts +3 -0
  48. package/dist/Chatbot/authenticate.js +16 -0
  49. package/dist/Chatbot/index.js +1 -5
  50. package/dist/Chatbot/store/chat.d.ts +0 -5
  51. package/dist/Chatbot/store/chat.js +2 -10
  52. package/dist/Chatbot/useHeadlessChat.js +2 -1
  53. package/dist/Chevron/index.js +5 -12
  54. package/dist/Comparison/Comparison.d.ts +1 -1
  55. package/dist/Comparison/Comparison.js +5 -11
  56. package/dist/Comparison/ComparisonSet.d.ts +1 -1
  57. package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
  58. package/dist/ExecutiveBio/ExecutiveBio.js +3 -9
  59. package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
  60. package/dist/ExecutiveBio/ExecutiveBioSet.js +0 -1
  61. package/dist/ExecutiveBio/Overlay.d.ts +1 -1
  62. package/dist/FaqAccordion/index.d.ts +5 -5
  63. package/dist/FaqAccordion/index.js +5 -11
  64. package/dist/FdicCallout/index.d.ts +1 -1
  65. package/dist/FooterDisclosure/FooterDisclosure.d.ts +4 -4
  66. package/dist/FooterDisclosure/LVF/LaVictorieFooter.d.ts +1 -1
  67. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.d.ts +1 -1
  68. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +108 -208
  69. package/dist/Forms/ApplicationStart.d.ts +1 -1
  70. package/dist/Forms/ApplicationStart.js +0 -1
  71. package/dist/Forms/ApplyNow.d.ts +1 -1
  72. package/dist/Forms/ApplyNow.js +4 -10
  73. package/dist/Forms/BoatMooringLocation.d.ts +1 -1
  74. package/dist/Forms/BoatMooringLocation.js +0 -1
  75. package/dist/Forms/ClearingForm.d.ts +1 -1
  76. package/dist/Forms/ClearingForm.js +0 -1
  77. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  78. package/dist/Forms/CommercialDeposits.js +0 -1
  79. package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +1 -1
  80. package/dist/Forms/CommercialDepositsNoLendingOption.js +0 -1
  81. package/dist/Forms/CommercialLending.d.ts +1 -1
  82. package/dist/Forms/CommercialLending.js +0 -1
  83. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  84. package/dist/Forms/CommercialPremiumFinance.js +0 -1
  85. package/dist/Forms/ConstructionLendingDynamic.d.ts +1 -1
  86. package/dist/Forms/ConstructionLendingDynamic.js +0 -1
  87. package/dist/Forms/ContactCompany.d.ts +1 -1
  88. package/dist/Forms/ContactCompany.js +0 -1
  89. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  90. package/dist/Forms/ContactCompanyTitle.js +0 -1
  91. package/dist/Forms/ContactUs.d.ts +1 -1
  92. package/dist/Forms/ContactUs.js +0 -1
  93. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  94. package/dist/Forms/ContactUsAAS.js +0 -1
  95. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  96. package/dist/Forms/ContactUsBusiness.js +5 -11
  97. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  98. package/dist/Forms/ContactUsBusinessNameEmail.js +5 -11
  99. package/dist/Forms/ContactUsLVF.d.ts +1 -1
  100. package/dist/Forms/ContactUsLVF.js +0 -1
  101. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  102. package/dist/Forms/ContactUsNMLSId.js +5 -11
  103. package/dist/Forms/CpraRequest.d.ts +1 -1
  104. package/dist/Forms/CpraRequest.js +99 -3
  105. package/dist/Forms/CraPublicFile.d.ts +1 -1
  106. package/dist/Forms/CraPublicFile.js +5 -11
  107. package/dist/Forms/DealerServices.d.ts +1 -1
  108. package/dist/Forms/DealerServices.js +0 -1
  109. package/dist/Forms/EmailOnly.d.ts +1 -1
  110. package/dist/Forms/EmailOnly.js +5 -11
  111. package/dist/Forms/EmailUs.d.ts +1 -1
  112. package/dist/Forms/EmailUs.js +0 -1
  113. package/dist/Forms/HoneyPot/index.d.ts +1 -1
  114. package/dist/Forms/HoneyPot/index.js +0 -1
  115. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  116. package/dist/Forms/MortgageRate/MortgageRateForm.js +6 -12
  117. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.d.ts +1 -1
  118. package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +1 -1
  119. package/dist/Forms/MortgageRate/MortgageRateWatch.js +5 -11
  120. package/dist/Forms/MortgageWarehouseLending.d.ts +1 -1
  121. package/dist/Forms/MortgageWarehouseLending.js +5 -11
  122. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  123. package/dist/Forms/QuickPricer/QuickPricerForm.js +0 -1
  124. package/dist/Forms/QuickPricer/UserInformation.d.ts +1 -1
  125. package/dist/Forms/ScheduleCall.d.ts +1 -1
  126. package/dist/Forms/ScheduleCall.js +0 -1
  127. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  128. package/dist/Forms/ScheduleCallPremier.js +0 -1
  129. package/dist/Forms/SuccesForm.d.ts +1 -1
  130. package/dist/Forms/SuccesForm.js +7 -13
  131. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  132. package/dist/Forms/VendorQuestionnaire.js +0 -1
  133. package/dist/Forms/WcplSurvey.d.ts +1 -1
  134. package/dist/Forms/index.js +0 -1
  135. package/dist/HeroBanner/HeroBanner.d.ts +1 -1
  136. package/dist/HeroBanner/HeroVideoPoster.d.ts +1 -1
  137. package/dist/HeroBanner/LargeHeroBanner.d.ts +1 -1
  138. package/dist/Hyperlink/index.js +7 -13
  139. package/dist/IconBillboard/IconBillboard.d.ts +1 -1
  140. package/dist/IconBillboard/IconBillboardSet.d.ts +1 -1
  141. package/dist/IconBillboard/sections/CallToActionSection.d.ts +1 -1
  142. package/dist/IconBillboard/sections/CallToActionSection.js +3 -1
  143. package/dist/IconBillboard/sections/HeaderSection.d.ts +2 -2
  144. package/dist/IconBillboard/sections/IconSection.d.ts +1 -1
  145. package/dist/IconBillboard/sections/ItemsSection.d.ts +1 -1
  146. package/dist/IconBillboard/sections/LayoutSection.d.ts +1 -1
  147. package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +1 -1
  148. package/dist/ImageBillboard/ImageBillboard.d.ts +1 -1
  149. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  150. package/dist/ImageLink/ImageLink.d.ts +1 -1
  151. package/dist/ImageLink/ImageLink.js +5 -11
  152. package/dist/ImageLink/ImageLinkSet.d.ts +1 -1
  153. package/dist/ImageLink/ImageLinkSet.js +5 -11
  154. package/dist/ImageLink/index.js +4 -10
  155. package/dist/ImageWrapper/ImageWrapper.d.ts +1 -1
  156. package/dist/Insight/Featured/CategorySelector.d.ts +2 -2
  157. package/dist/Insight/Featured/CategorySelector.js +4 -10
  158. package/dist/Insight/Featured/Featured.d.ts +2 -2
  159. package/dist/Insight/Featured/Featured.js +5 -11
  160. package/dist/Insight/Featured/Header.d.ts +1 -1
  161. package/dist/Insight/Featured/Header.js +5 -11
  162. package/dist/LandingPageHeader/LandingPageHeader.d.ts +1 -1
  163. package/dist/LoadingIndicator/index.d.ts +1 -1
  164. package/dist/LoadingIndicator/index.js +0 -1
  165. package/dist/MainHTML/index.d.ts +1 -1
  166. package/dist/Modal/Modal.js +4 -10
  167. package/dist/Modal/contextApi/store.d.ts +16 -2
  168. package/dist/Modal/contextApi/store.js +37 -6
  169. package/dist/NavigationMenu/AxosALTS/NavData.d.ts +7 -1
  170. package/dist/NavigationMenu/AxosALTS/NavData.js +6 -137
  171. package/dist/NavigationMenu/AxosALTS/index.d.ts +1 -1
  172. package/dist/NavigationMenu/AxosALTS/index.js +13 -16
  173. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +1 -1
  174. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +0 -1
  175. package/dist/NavigationMenu/AxosAdvisor/index.d.ts +1 -1
  176. package/dist/NavigationMenu/AxosAdvisor/index.js +0 -1
  177. package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.d.ts +1 -1
  178. package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.js +0 -1
  179. package/dist/NavigationMenu/AxosAdvisorServices/index.d.ts +1 -1
  180. package/dist/NavigationMenu/AxosAdvisorServices/index.js +0 -1
  181. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +1 -1
  182. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +127 -4
  183. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +6 -4
  184. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +190 -360
  185. package/dist/NavigationMenu/AxosBank/NavData.d.ts +39 -2
  186. package/dist/NavigationMenu/AxosBank/NavData.js +34 -166
  187. package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +1 -1
  188. package/dist/NavigationMenu/AxosBank/SubNavBar.js +399 -431
  189. package/dist/NavigationMenu/AxosBank/index.d.ts +1 -1
  190. package/dist/NavigationMenu/AxosBank/index.js +26 -71
  191. package/dist/NavigationMenu/AxosClearing/SubNavBar.d.ts +1 -1
  192. package/dist/NavigationMenu/AxosClearing/index.d.ts +1 -1
  193. package/dist/NavigationMenu/AxosClearing/index.js +0 -1
  194. package/dist/NavigationMenu/AxosFiduciary/index.d.ts +1 -1
  195. package/dist/NavigationMenu/LaVictoire/NavData.d.ts +13 -2
  196. package/dist/NavigationMenu/LaVictoire/NavData.js +14 -146
  197. package/dist/NavigationMenu/LaVictoire/SubNavBar.d.ts +1 -1
  198. package/dist/NavigationMenu/LaVictoire/SubNavBar.js +4 -1
  199. package/dist/NavigationMenu/LaVictoire/index.d.ts +1 -1
  200. package/dist/NavigationMenu/LaVictoire/index.js +18 -44
  201. package/dist/NavigationMenu/NavItem/index.d.ts +1 -1
  202. package/dist/NavigationMenu/Navbar.d.ts +1 -1
  203. package/dist/NavigationMenu/Navbar.js +7 -9
  204. package/dist/NavigationMenu/SignInNavButton.d.ts +3 -1
  205. package/dist/NavigationMenu/SignInNavButton.js +18 -27
  206. package/dist/Pagination/Pagination.d.ts +1 -1
  207. package/dist/SecondaryFooter/index.d.ts +1 -1
  208. package/dist/SetContainer/SetContainer.d.ts +1 -1
  209. package/dist/SetContainer/SetContainer.js +5 -11
  210. package/dist/SocialMediaBar/iconsRepository.d.ts +44 -14
  211. package/dist/SocialMediaBar/iconsRepository.js +31 -41
  212. package/dist/SocialMediaBar/index.d.ts +1 -1
  213. package/dist/SocialMediaBar/index.js +3 -1
  214. package/dist/Tab/Tab.d.ts +1 -1
  215. package/dist/Tab/Tab.js +0 -1
  216. package/dist/Tab/TabContainer.d.ts +1 -1
  217. package/dist/Table/Table.d.ts +5 -5
  218. package/dist/Table/Table.js +0 -1
  219. package/dist/TextBlock/TextBlock.d.ts +1 -1
  220. package/dist/Topic/Topic.d.ts +4 -4
  221. package/dist/VideoTile/VideoInit.d.ts +1 -1
  222. package/dist/VideoTile/VideoTile.js +3 -9
  223. package/dist/VideoWrapper/index.js +3 -9
  224. package/dist/WalnutIframe/index.d.ts +1 -1
  225. package/dist/assets/Calculators/ApyCalculator/ApyCalculator.css +350 -64
  226. package/dist/assets/Chatbot/AnimatedGradientBorder.css +12 -99
  227. package/dist/assets/Chatbot/Bubble.css +6 -21
  228. package/dist/assets/Chatbot/ChatWindow.css +71 -108
  229. package/dist/icons/AxosX/Blue.d.ts +1 -1
  230. package/dist/icons/AxosX/index.d.ts +1 -1
  231. package/dist/icons/CheckCircle.d.ts +1 -1
  232. package/dist/icons/CheckCircleLight.d.ts +1 -1
  233. package/dist/icons/CheckIcon/index.d.ts +1 -1
  234. package/dist/icons/ChevronDown.d.ts +1 -1
  235. package/dist/icons/ChevronUp.d.ts +1 -1
  236. package/dist/icons/Clock/index.d.ts +1 -1
  237. package/dist/icons/EqualHousingLender.d.ts +1 -1
  238. package/dist/icons/Logos/AAS.d.ts +1 -1
  239. package/dist/icons/Logos/AFS.d.ts +1 -1
  240. package/dist/icons/Logos/AXA.d.ts +1 -1
  241. package/dist/icons/Logos/AXB.d.ts +1 -1
  242. package/dist/icons/Logos/AXC.d.ts +1 -1
  243. package/dist/icons/Logos/AXI.d.ts +1 -1
  244. package/dist/icons/Logos/AXOS.d.ts +1 -1
  245. package/dist/icons/Logos/GBLVF.d.ts +1 -1
  246. package/dist/icons/Logos/LVF.d.ts +1 -1
  247. package/dist/icons/Logos/LVFText.d.ts +1 -1
  248. package/dist/icons/Logos/SPB.d.ts +1 -1
  249. package/dist/icons/MemberFdicLogo.d.ts +1 -1
  250. package/dist/icons/QuoteIconGrey.d.ts +1 -1
  251. package/dist/icons/QuoteIconWhite.d.ts +1 -1
  252. package/dist/icons/QuoteIconYellow.d.ts +1 -1
  253. package/dist/main.js +3 -6
  254. package/dist/utils/allowedAxosDomains.d.ts +5 -2
  255. package/dist/utils/allowedAxosDomains.js +50 -46
  256. package/dist/utils/index.js +2 -1
  257. package/dist/utils/validateExternalLinks.d.ts +1 -1
  258. package/dist/utils/validateExternalLinks.js +2 -2
  259. package/package.json +2 -2
  260. package/dist/assets/notification.mp3.js +0 -4
@@ -9,7 +9,7 @@ import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import clsx from "clsx";
12
- import { shimmerText, notificationStyle, trMortgageTable, tableCell, tableHead, tableMsg, messageStyle, user_msg, agent_msg, inline_button_wrapper, inline_button, endChatButtonStyle } from "./ChatWindow.css.js";
12
+ import { shimmerText, notificationStyle, messageStyle, user_msg, agent_msg, inline_button_wrapper, inline_button, endChatButtonStyle } from "./ChatWindow.css.js";
13
13
  import { useOpenChat } from "./store/chat.js";
14
14
  function timeAgo(date) {
15
15
  const seconds = Math.floor(((/* @__PURE__ */ new Date()).getTime() - date.getTime()) / 1e3);
@@ -19,31 +19,6 @@ function timeAgo(date) {
19
19
  minute: "2-digit"
20
20
  });
21
21
  }
22
- function convertBulletsToTable(text) {
23
- const lines = text.split("\n");
24
- const header = lines[0];
25
- const bulletLines = lines.filter((line) => line.trim().startsWith("•"));
26
- if (bulletLines.length === 0) return text;
27
- const fields = bulletLines.map((line) => {
28
- const [field] = line.split(":");
29
- const cleanField = field.replace(/•\s*\*\*|\*\*/g, "").trim();
30
- return cleanField;
31
- });
32
- const values = bulletLines.map((line) => {
33
- const [, value] = line.split(":");
34
- return value.trim();
35
- });
36
- const headerRow = `| ${fields.join(" | ")} |`;
37
- const separatorRow = `| ${fields.map(() => "-------").join(" | ")} |`;
38
- const valueRow = `| ${values.join(" | ")} |`;
39
- return `
40
- ### ${header}
41
-
42
- ${headerRow}
43
- ${separatorRow}
44
- ${valueRow}
45
- `;
46
- }
47
22
  const ChatbotMessage = ({
48
23
  msg,
49
24
  showAvatar,
@@ -93,197 +68,172 @@ const ChatbotMessage = ({
93
68
  }
94
69
  );
95
70
  }
96
- const checkInformationMortgage = typeof msg.content == "string" ? convertBulletsToTable(msg.content) : "";
97
- return /* @__PURE__ */ jsxs(
98
- "div",
99
- {
100
- style: {
101
- display: "flex",
102
- flexDirection: "column"
103
- },
104
- children: [
105
- msg.type == "noti" && msg.$userType == "system" && msg.event == "escalationStarted" && /* @__PURE__ */ jsx("div", { className: notificationStyle, children: "We are connecting you with a human agent..." }, msg.$index),
106
- msg.type == "noti" && msg.$userType == "system" && msg.event == "memberLeft" && /* @__PURE__ */ jsxs("div", { className: notificationStyle, children: [
107
- /* @__PURE__ */ jsx("strong", { children: "Virtual Agent" }),
108
- " just left the conversation."
109
- ] }, msg.$index),
110
- msg.type == "noti" && msg.$userType == "system" && msg.event == "escalationAccepted" && /* @__PURE__ */ jsxs("div", { className: notificationStyle, children: [
111
- "You are now connected with a",
71
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
72
+ msg.type == "noti" && msg.$userType == "system" && msg.event == "escalationStarted" && /* @__PURE__ */ jsx("div", { className: notificationStyle, children: "We are connecting you with a human agent..." }, msg.$index),
73
+ msg.type == "noti" && msg.$userType == "system" && msg.event == "memberLeft" && /* @__PURE__ */ jsxs("div", { className: notificationStyle, children: [
74
+ /* @__PURE__ */ jsx("strong", { children: "Virtual Agent" }),
75
+ " just left the conversation."
76
+ ] }, msg.$index),
77
+ msg.type == "noti" && msg.$userType == "system" && msg.event == "escalationAccepted" && /* @__PURE__ */ jsxs("div", { className: notificationStyle, children: [
78
+ "You are now connected with a",
79
+ " ",
80
+ msg.to_agent ? /* @__PURE__ */ jsx("strong", { children: msg?.to_agent?.name }) : "an agent"
81
+ ] }, msg.$index),
82
+ msg.type == "noti" && msg.$userType == "virtual_agent" && msg.event == "escalationDeflected" && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
83
+ "div",
84
+ {
85
+ className: notificationStyle,
86
+ style: { fontSize: 12 },
87
+ children: [
88
+ "Our chat team is available weekdays, 8am-5pm, except federal bank holidays. For immediate assistance you can reach out to us at",
112
89
  " ",
113
- msg.to_agent ? /* @__PURE__ */ jsx("strong", { children: msg?.to_agent?.name }) : "an agent"
114
- ] }, msg.$index),
115
- msg.type == "noti" && msg.$userType == "virtual_agent" && msg.event == "escalationDeflected" && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
116
- "div",
117
- {
118
- className: notificationStyle,
119
- style: { fontSize: 12 },
120
- children: [
121
- "Our chat team is available weekdays, 8am-5pm, except federal bank holidays. For immediate assistance you can reach out to us at",
122
- " ",
123
- /* @__PURE__ */ jsx("a", { href: "tel:1-888-502-2967", children: "1-888-502-2967" }),
124
- "."
125
- ]
126
- },
127
- msg.$index
128
- ) }),
129
- ["text", "markdown_template", "markdown"].includes(msg.type) && /* @__PURE__ */ jsx(
130
- "div",
131
- {
132
- className: clsx(
133
- messageStyle,
134
- msg.$userType == "end_user" ? user_msg : agent_msg
135
- ),
136
- children: /* @__PURE__ */ jsxs(
137
- "div",
138
- {
139
- style: {
140
- fontSize: 14,
141
- display: "flex",
142
- flexDirection: "column",
143
- gap: 4
144
- },
145
- children: [
146
- msg.$userType == "virtual_agent" && /* @__PURE__ */ jsxs(
147
- "div",
148
- {
149
- style: {
150
- display: "flex",
151
- alignItems: "center",
152
- gap: "8px"
153
- },
154
- children: [
155
- showAvatar && /* @__PURE__ */ jsx(
156
- "img",
157
- {
158
- width: 24,
159
- height: 24,
160
- src: virtualAgent?.avatar_url,
161
- alt: "agent avatar"
162
- }
163
- ),
164
- showName && /* @__PURE__ */ jsx("strong", { children: virtualAgent?.name })
165
- ]
166
- }
167
- ),
168
- msg.$userType != "end_user" ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
169
- ReactMarkdown,
170
- {
171
- remarkPlugins: [[remarkGfm, { singleTilde: false }]],
172
- components: {
173
- p: ({ ...props }) => /* @__PURE__ */ jsx(
174
- "p",
175
- {
176
- style: { margin: 0, fontSize: "inherit" },
177
- title: new Date(msg.$timestamp).toLocaleTimeString([], {
178
- hour: "2-digit",
179
- minute: "2-digit"
180
- }),
181
- ...props
182
- }
183
- ),
184
- a: ({ ...props }) => /* @__PURE__ */ jsx("a", { style: { wordBreak: "break-word" }, ...props }),
185
- table: ({ node, ...props }) => /* @__PURE__ */ jsx("div", { style: { overflowX: "auto", marginTop: 4 }, children: /* @__PURE__ */ jsx(
186
- "table",
187
- {
188
- ...props,
189
- className: clsx(tableMsg),
190
- style: { tableLayout: "fixed" }
191
- }
192
- ) }),
193
- th: ({ node, ...props }) => /* @__PURE__ */ jsx("th", { ...props, className: clsx(tableHead) }),
194
- td: ({ node, ...props }) => /* @__PURE__ */ jsx("td", { ...props, className: clsx(tableCell) }),
195
- tr: ({ node, ...props }) => {
196
- return /* @__PURE__ */ jsx("tr", { className: clsx(trMortgageTable), ...props });
197
- }
198
- },
199
- children: msg?.content?.includes("Does this information look correct?") ? checkInformationMortgage : msg.content
200
- }
201
- ) }) : /* @__PURE__ */ jsx(
202
- "div",
203
- {
204
- title: new Date(msg.$timestamp).toLocaleTimeString([], {
205
- hour: "2-digit",
206
- minute: "2-digit"
207
- }),
208
- children: msg.content
209
- }
210
- )
211
- ]
212
- }
213
- )
214
- },
215
- msg.$index
90
+ /* @__PURE__ */ jsx("a", { href: "tel:1-888-502-2967", children: "1-888-502-2967" }),
91
+ "."
92
+ ]
93
+ },
94
+ msg.$index
95
+ ) }),
96
+ ["text", "markdown_template", "markdown"].includes(msg.type) && /* @__PURE__ */ jsx(
97
+ "div",
98
+ {
99
+ className: clsx(
100
+ messageStyle,
101
+ msg.$userType == "end_user" ? user_msg : agent_msg
216
102
  ),
217
- msg.type == "inline_button" && Array.isArray(msg.buttons) && msg.buttons.length > 0 && /* @__PURE__ */ jsx("div", { className: inline_button_wrapper, children: msg.buttons.length !== 0 && Array.isArray(msg.buttons) && msg.buttons.map((button, index) => {
218
- return /* @__PURE__ */ jsx(
219
- "button",
220
- {
221
- className: inline_button,
222
- onClick: () => {
223
- onSend?.(button?.title);
224
- },
225
- children: button.title
226
- },
227
- index
228
- );
229
- }) }),
230
- " ",
231
- msg.event == "chatEnded" && msg.status == "failed" && /* @__PURE__ */ jsxs(Fragment, { children: [
232
- /* @__PURE__ */ jsxs(
233
- "div",
234
- {
235
- title: (/* @__PURE__ */ new Date()).toLocaleString(),
236
- style: {
237
- fontSize: 12,
238
- color: "#888",
239
- marginBottom: 4,
240
- textAlign: "center"
241
- },
242
- children: [
243
- "No team members are online at the moment.",
244
- /* @__PURE__ */ jsx("br", {}),
245
- " Please try again later."
246
- ]
247
- }
248
- ),
249
- /* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx("button", { className: endChatButtonStyle, onClick: onEndChat, children: "End Chat" }) })
250
- ] }),
251
- msg.event == "chatEnded" && msg.status != "failed" && /* @__PURE__ */ jsxs(Fragment, { children: [
252
- /* @__PURE__ */ jsxs(
253
- "div",
254
- {
255
- title: (/* @__PURE__ */ new Date()).toLocaleString(),
256
- style: {
257
- fontSize: 12,
258
- color: "#888",
259
- marginBottom: 4,
260
- textAlign: "center"
261
- },
262
- children: [
263
- "Thank you for chatting!",
264
- /* @__PURE__ */ jsx("br", {}),
265
- " This conversation has ended."
266
- ]
267
- }
268
- ),
269
- /* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx("button", { className: endChatButtonStyle, onClick: onEndChat, children: "End Chat" }) })
270
- ] }),
271
- msg.type == "text" && /* @__PURE__ */ jsx(
103
+ children: /* @__PURE__ */ jsxs(
272
104
  "div",
273
105
  {
274
106
  style: {
275
- textAlign: msg.$userType === "end_user" ? "right" : "left",
276
- fontSize: 12,
277
- color: vars.chatbot.window.timestampColor,
278
- textTransform: "uppercase",
279
- fontFamily: "inherit"
107
+ fontSize: 14,
108
+ display: "flex",
109
+ flexDirection: "column",
110
+ gap: 4
280
111
  },
281
- children: timeText
112
+ children: [
113
+ msg.$userType == "virtual_agent" && /* @__PURE__ */ jsxs(
114
+ "div",
115
+ {
116
+ style: {
117
+ display: "flex",
118
+ alignItems: "center",
119
+ gap: "8px"
120
+ },
121
+ children: [
122
+ showAvatar && /* @__PURE__ */ jsx(
123
+ "img",
124
+ {
125
+ width: 24,
126
+ height: 24,
127
+ src: virtualAgent?.avatar_url,
128
+ alt: "agent avatar"
129
+ }
130
+ ),
131
+ showName && /* @__PURE__ */ jsx("strong", { children: virtualAgent?.name })
132
+ ]
133
+ }
134
+ ),
135
+ msg.$userType != "end_user" ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
136
+ ReactMarkdown,
137
+ {
138
+ remarkPlugins: [[remarkGfm, { singleTilde: false }]],
139
+ components: {
140
+ p: ({ ...props }) => /* @__PURE__ */ jsx(
141
+ "p",
142
+ {
143
+ style: { margin: 0, fontSize: "inherit" },
144
+ title: new Date(msg.$timestamp).toLocaleTimeString([], {
145
+ hour: "2-digit",
146
+ minute: "2-digit"
147
+ }),
148
+ ...props
149
+ }
150
+ ),
151
+ a: ({ ...props }) => /* @__PURE__ */ jsx("a", { style: { wordBreak: "break-word" }, ...props })
152
+ },
153
+ children: msg.content
154
+ }
155
+ ) }) : /* @__PURE__ */ jsx(
156
+ "div",
157
+ {
158
+ title: new Date(msg.$timestamp).toLocaleTimeString([], {
159
+ hour: "2-digit",
160
+ minute: "2-digit"
161
+ }),
162
+ children: msg.content
163
+ }
164
+ )
165
+ ]
282
166
  }
283
167
  )
284
- ]
285
- }
286
- );
168
+ },
169
+ msg.$index
170
+ ),
171
+ msg.type == "inline_button" && Array.isArray(msg.buttons) && msg.buttons.length > 0 && /* @__PURE__ */ jsx("div", { className: inline_button_wrapper, children: msg.buttons.length !== 0 && Array.isArray(msg.buttons) && msg.buttons.map((button, index) => {
172
+ return /* @__PURE__ */ jsx(
173
+ "button",
174
+ {
175
+ className: inline_button,
176
+ onClick: () => {
177
+ onSend?.(button?.title);
178
+ },
179
+ children: button.title
180
+ },
181
+ index
182
+ );
183
+ }) }),
184
+ " ",
185
+ msg.event == "chatEnded" && msg.status == "failed" && /* @__PURE__ */ jsxs(Fragment, { children: [
186
+ /* @__PURE__ */ jsxs(
187
+ "div",
188
+ {
189
+ title: (/* @__PURE__ */ new Date()).toLocaleString(),
190
+ style: {
191
+ fontSize: 12,
192
+ color: "#888",
193
+ marginBottom: 4,
194
+ textAlign: "center"
195
+ },
196
+ children: [
197
+ "No team members are online at the moment.",
198
+ /* @__PURE__ */ jsx("br", {}),
199
+ " Please try again later."
200
+ ]
201
+ }
202
+ ),
203
+ /* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx("button", { className: endChatButtonStyle, onClick: onEndChat, children: "End Chat" }) })
204
+ ] }),
205
+ msg.event == "chatEnded" && msg.status != "failed" && /* @__PURE__ */ jsxs(Fragment, { children: [
206
+ /* @__PURE__ */ jsxs(
207
+ "div",
208
+ {
209
+ title: (/* @__PURE__ */ new Date()).toLocaleString(),
210
+ style: {
211
+ fontSize: 12,
212
+ color: "#888",
213
+ marginBottom: 4,
214
+ textAlign: "center"
215
+ },
216
+ children: [
217
+ "Thank you for chatting!",
218
+ /* @__PURE__ */ jsx("br", {}),
219
+ " This conversation has ended."
220
+ ]
221
+ }
222
+ ),
223
+ /* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx("button", { className: endChatButtonStyle, onClick: onEndChat, children: "End Chat" }) })
224
+ ] }),
225
+ msg.type == "text" && /* @__PURE__ */ jsx(
226
+ "div",
227
+ {
228
+ style: {
229
+ textAlign: msg.$userType === "end_user" ? "right" : "left",
230
+ fontSize: 12,
231
+ color: vars.chatbot.window.timestampColor
232
+ },
233
+ children: timeText
234
+ }
235
+ )
236
+ ] });
287
237
  };
288
238
  export {
289
239
  ChatbotMessage
@@ -1,2 +1,2 @@
1
- declare const EllipsisLoader: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const EllipsisLoader: () => import("react").JSX.Element;
2
2
  export default EllipsisLoader;
@@ -1,4 +1,4 @@
1
1
  export declare const EllipsisIcon: ({ size, color }: {
2
2
  size?: number | undefined;
3
3
  color?: string | undefined;
4
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const authenticate: () => Promise<{
2
+ token: any;
3
+ }>;
@@ -0,0 +1,16 @@
1
+ const AUTH_URL = process.env.AUTH_CHAT_URL || "http://localhost:3000/api/auth/token";
2
+ const authenticate = async () => {
3
+ const res = await fetch(AUTH_URL, {
4
+ method: "GET",
5
+ headers: {
6
+ "Content-Type": "application/json"
7
+ }
8
+ });
9
+ const data = await res.json();
10
+ return {
11
+ token: data.token
12
+ };
13
+ };
14
+ export {
15
+ authenticate
16
+ };
@@ -4,7 +4,7 @@ import { borderHoverGradient, bubbleButton, bubbleText, bubbleWrapper, inner, sv
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 { 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, shimmerText, tableCell, tableHead, tableMsg, thankyou_image, thankyou_message, thankyou_overlay, trMortgageTable, user_msg, 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, shimmerText, 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 {
@@ -43,13 +43,9 @@ export {
43
43
  sendButtonStyle,
44
44
  shimmerText,
45
45
  svgFill,
46
- tableCell,
47
- tableHead,
48
- tableMsg,
49
46
  thankyou_image,
50
47
  thankyou_message,
51
48
  thankyou_overlay,
52
- trMortgageTable,
53
49
  useMessages,
54
50
  useOpenChat,
55
51
  user_msg,
@@ -14,11 +14,6 @@ interface OpenChatState {
14
14
  isBlockedInput?: boolean;
15
15
  blockInput?: () => void;
16
16
  unblockInput?: () => void;
17
- hasStarted: boolean;
18
- setChatStarted: () => void;
19
- resetChatStarted: () => void;
20
- chatStatus: "idle" | "connected" | "connecting" | "ending" | "ended";
21
- setChatStatus: (status: "idle" | "connected" | "connecting" | "ending" | "ended") => void;
22
17
  }
23
18
  export declare const useOpenChat: import('zustand').UseBoundStore<import('zustand').StoreApi<OpenChatState>>;
24
19
  export {};
@@ -4,8 +4,6 @@ const useOpenChat = create((set, get) => ({
4
4
  hasOpenedOnce: false,
5
5
  showThankyouMessage: false,
6
6
  hasEscalated: false,
7
- hasStarted: false,
8
- chatStatus: "idle",
9
7
  toggle: () => set((state) => ({ isOpen: !state.isOpen, hasOpenedOnce: true })),
10
8
  open: () => {
11
9
  const alreadyOpened = get().hasOpenedOnce;
@@ -20,8 +18,7 @@ const useOpenChat = create((set, get) => ({
20
18
  isOpen: false,
21
19
  showThankyouMessage: false,
22
20
  hasEscalated: false,
23
- isBlockedInput: false,
24
- hasStarted: false
21
+ isBlockedInput: false
25
22
  }),
26
23
  displayThankyouMessage: () => set({ showThankyouMessage: true }),
27
24
  toggleThankyouMessage: () => set((state) => ({ showThankyouMessage: !state.showThankyouMessage })),
@@ -29,12 +26,7 @@ const useOpenChat = create((set, get) => ({
29
26
  endEscalation: () => set({ hasEscalated: false }),
30
27
  isBlockedInput: false,
31
28
  blockInput: () => set({ isBlockedInput: true }),
32
- unblockInput: () => set({ isBlockedInput: false }),
33
- setChatStarted: () => set({ hasStarted: true }),
34
- resetChatStarted: () => set({ hasStarted: false }),
35
- setChatStatus: (status) => set({
36
- chatStatus: status
37
- })
29
+ unblockInput: () => set({ isBlockedInput: false })
38
30
  }));
39
31
  export {
40
32
  useOpenChat
@@ -76,7 +76,8 @@ function useHeadlessChat({
76
76
  let chatTimeoutHandler;
77
77
  async function init() {
78
78
  setStatus("connecting");
79
- const { Client } = await import("@ujet/websdk-headless");
79
+ const { Client, Logger, consoleLoggerHandler } = await import("@ujet/websdk-headless");
80
+ if (debug) Logger.addHandler(consoleLoggerHandler);
80
81
  try {
81
82
  clientRef.current = new Client({
82
83
  companyId,
@@ -2,7 +2,7 @@
2
2
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
3
3
  import SvgArrowIcon from "../icons/ArrowIcon/index.js";
4
4
  import "../icons/CheckIcon/CheckIcon.css.js";
5
- import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/TopicalNavSet/TopicalNavSet.css';import '../assets/TopicalNavItem/TopicalNavItem.css';import '../assets/Topic/Topic.css';import '../assets/TextBlock/TextBlock.css';import '../assets/SocialMediaBar/SocialMediaBar.css';import '../assets/SecondaryFooter/SecondaryFooter.css';import '../assets/Pagination/Pagination.css';import '../assets/PageNavSet/PageNavigationSet.css';import '../assets/NavigationMenu/LaVictoire/NavBar2.css';import '../assets/NavigationMenu/AxosALTS/NavBar2.css';import '../assets/NavigationMenu/AxosClearing/NavBar2.css';import '../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../assets/NavigationMenu/AxosBank/NavBar2.css';import '../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisorServices/NavBar2.css';import '../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisor/NavBar2.css';import '../assets/Insight/Featured/Header.css';import '../assets/Insight/Featured/CategorySelector.css';import '../assets/Insight/Featured/Featured.css';import '../assets/ImageLink/ImageLink.css';import '../assets/VideoTile/VideoTile.css';import '../assets/HelpArticle/HelpArticle.css';import '../assets/FooterSiteMap/AxosBank/FooterSiteMap.css';import '../assets/FooterDisclosure/LVF/LaVictorieFooter.css';import '../assets/DownloadTile/DownloadTile.css';import '../assets/CollectInformationAlert/CollectInformationAlert.css';import '../assets/Chatbot/ChatWindow.css';import '../assets/Chatbot/Bubble.css';import '../assets/Chatbot/Chatbot.css';import '../assets/Chatbot/AnimatedGradientBorder.css';import '../assets/CallToActionBar/CallToActionBar.css';import '../assets/Insight/Insight.css';import '../assets/AwardsItem/AwardsItem.css';import '../assets/AwardsBanner/AwardsBanner.css';import '../assets/Auth/SignIn.css';import '../assets/Auth/ErrorAlert.css';import '../assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css';import '../assets/Forms/QuickPricer/UserInformation.css';import '../assets/Forms/QuickPricer/QuickPricerResults.css';import '../assets/BulletItem/BulletItem.css';import '../assets/Typography/Typography.css';import '../assets/Modal/Modal.css';import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
5
+ import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/TopicalNavSet/TopicalNavSet.css';import '../assets/TopicalNavItem/TopicalNavItem.css';import '../assets/Topic/Topic.css';import '../assets/TextBlock/TextBlock.css';import '../assets/SocialMediaBar/SocialMediaBar.css';import '../assets/SecondaryFooter/SecondaryFooter.css';import '../assets/Pagination/Pagination.css';import '../assets/PageNavSet/PageNavigationSet.css';import '../assets/NavigationMenu/LaVictoire/NavBar2.css';import '../assets/NavigationMenu/AxosALTS/NavBar2.css';import '../assets/NavigationMenu/AxosClearing/NavBar2.css';import '../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../assets/NavigationMenu/AxosBank/NavBar2.css';import '../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisorServices/NavBar2.css';import '../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisor/NavBar2.css';import '../assets/Insight/Featured/Header.css';import '../assets/Insight/Featured/CategorySelector.css';import '../assets/Insight/Featured/Featured.css';import '../assets/ImageLink/ImageLink.css';import '../assets/VideoTile/VideoTile.css';import '../assets/HelpArticle/HelpArticle.css';import '../assets/FooterSiteMap/AxosBank/FooterSiteMap.css';import '../assets/FooterDisclosure/LVF/LaVictorieFooter.css';import '../assets/DownloadTile/DownloadTile.css';import '../assets/CollectInformationAlert/CollectInformationAlert.css';import '../assets/Chatbot/ChatWindow.css';import '../assets/Chatbot/Chatbot.css';import '../assets/Chatbot/Bubble.css';import '../assets/Chatbot/AnimatedGradientBorder.css';import '../assets/CallToActionBar/CallToActionBar.css';import '../assets/Insight/Insight.css';import '../assets/AwardsItem/AwardsItem.css';import '../assets/AwardsBanner/AwardsBanner.css';import '../assets/Auth/SignIn.css';import '../assets/Auth/ErrorAlert.css';import '../assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css';import '../assets/Forms/QuickPricer/UserInformation.css';import '../assets/Forms/QuickPricer/QuickPricerResults.css';import '../assets/BulletItem/BulletItem.css';import '../assets/Typography/Typography.css';import '../assets/Modal/Modal.css';import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
@@ -18,8 +18,6 @@ import { Interstitial } from "../Interstitial/Interstitial.js";
18
18
  import { chevron, chevron_wrapper } from "./Chevron.css.js";
19
19
  /* empty css */
20
20
  import { useGlobalContext } from "../Modal/contextApi/store.js";
21
- import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
22
- import { validateLink } from "../utils/validateExternalLinks.js";
23
21
  import clsx from "clsx";
24
22
  import "../Button/Button.css.js";
25
23
  import "react-use";
@@ -27,6 +25,7 @@ import "../ArticlesSet/ArticlesSet.css.js";
27
25
  import "../IconBillboard/IconBillboard.css.js";
28
26
  import "../Calculators/calculator.css.js";
29
27
  import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
28
+ import "next/image.js";
30
29
  import "../Calculators/ApyCalculator/ApyCalculator.css.js";
31
30
  import "../Table/Table.css.js";
32
31
  import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
@@ -74,15 +73,13 @@ import "../Auth/SignInPassword.js";
74
73
  /* empty css */
75
74
  import "../Carousel/index.js";
76
75
  /* empty css */
77
- /* empty css */
78
76
  /* empty css */
79
77
  import "../Chatbot/store/chat.js";
80
- import "../Chatbot/Chatbot.js";
78
+ /* empty css */
81
79
  /* empty css */
82
80
  import "../Chatbot/store/messages.js";
83
81
  /* empty css */
84
82
  import "../Comparison/Comparison.css.js";
85
- import "next/image.js";
86
83
  import "../HeroBanner/LargeBanner.css.js";
87
84
  import "../HeroBanner/HeroBanner.css.js";
88
85
  import "../HeroBanner/SelectionBanner.css.js";
@@ -111,15 +108,11 @@ import "next/navigation.js";
111
108
  /* empty css */
112
109
  /* empty css */
113
110
  import "next/link.js";
114
- import "../NavigationMenu/AxosBank/MobileMenu/MobileNavData.js";
115
111
  /* empty css */
116
- import "../NavigationMenu/AxosBank/NavData.js";
117
112
  /* empty css */
118
113
  /* empty css */
119
- import "../NavigationMenu/AxosALTS/NavData.js";
120
114
  /* empty css */
121
115
  /* empty css */
122
- import "../NavigationMenu/LaVictoire/NavData.js";
123
116
  import "../PageNavItem/PageNavItem.css.js";
124
117
  import "react-slick";
125
118
  /* empty css */
@@ -147,7 +140,7 @@ const Chevron = ({
147
140
  action
148
141
  }) => {
149
142
  variant = getVariant(variant);
150
- const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
143
+ const { setTargetLinkUrl, setOpenModal, validateLink, resolveUrl } = useGlobalContext();
151
144
  const [isOpenMktInterstitial, setIsOpenMktInterstitial] = useState(false);
152
145
  const openMarketingInterstitial = () => {
153
146
  setIsOpenMktInterstitial(true);
@@ -202,7 +195,7 @@ const Chevron = ({
202
195
  {
203
196
  id,
204
197
  tabIndex: 0,
205
- href: !action ? findMoreAxosDomains(targetUrl) : "#!",
198
+ href: !action ? resolveUrl(targetUrl) : "#!",
206
199
  className: `${chevron({ variant })} ${className ? className : ""}`,
207
200
  onClick: action ? action : marketingIntersitial ? openMarketingInterstitial : onClick,
208
201
  target: newTab ? "_blank" : "_self",
@@ -1,3 +1,3 @@
1
1
  import { ComparisonProps } from './Comparison.interface';
2
2
 
3
- export declare const Comparison: ({ id, variant: fullVariant, headline, description, bullets, callToActionRow, keyFeature, keyFeatureDescription, highlightedFeature, index, toggleState, table, }: ComparisonProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Comparison: ({ id, variant: fullVariant, headline, description, bullets, callToActionRow, keyFeature, keyFeatureDescription, highlightedFeature, index, toggleState, table, }: ComparisonProps) => import("react").JSX.Element;