@axos-web-dev/shared-components 2.2.7 → 2.2.8

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 (192) hide show
  1. package/dist/ATMLocator/ATMLocator.d.ts +1 -1
  2. package/dist/ATMLocator/ATMLocator.js +1 -1
  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 +1 -1
  7. package/dist/Auth/Logout.d.ts +1 -1
  8. package/dist/Auth/SignInPassword.d.ts +1 -1
  9. package/dist/BulletItem/BulletItem.d.ts +1 -1
  10. package/dist/Button/Button.d.ts +1 -1
  11. package/dist/Button/Button.js +17 -1
  12. package/dist/Button/GoBackButton.d.ts +1 -1
  13. package/dist/Calculators/Calculator.d.ts +1 -1
  14. package/dist/Calculators/Calculator.js +1 -1
  15. package/dist/Calculators/MarginTradingCalculator/index.js +1 -1
  16. package/dist/Carousel/index.d.ts +3 -3
  17. package/dist/Carousel/index.js +1 -1
  18. package/dist/Chatbot/Bubble.css.js +0 -1
  19. package/dist/Chatbot/Bubble.d.ts +1 -1
  20. package/dist/Chatbot/ChatWindow.js +0 -4
  21. package/dist/Chatbot/Chatbot.css.js +1 -0
  22. package/dist/Chatbot/Chatbot.d.ts +1 -1
  23. package/dist/Chatbot/Chatbot.js +41 -7
  24. package/dist/Chatbot/EllipsisAnimation.d.ts +1 -1
  25. package/dist/Chatbot/EllipsisIcon.d.ts +1 -1
  26. package/dist/Chevron/index.js +1 -1
  27. package/dist/Comparison/Comparison.d.ts +1 -1
  28. package/dist/Comparison/Comparison.js +1 -1
  29. package/dist/Comparison/ComparisonSet.d.ts +1 -1
  30. package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
  31. package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
  32. package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
  33. package/dist/ExecutiveBio/Overlay.d.ts +1 -1
  34. package/dist/FaqAccordion/index.d.ts +5 -5
  35. package/dist/FaqAccordion/index.js +1 -1
  36. package/dist/FdicCallout/index.d.ts +1 -1
  37. package/dist/FooterDisclosure/FooterDisclosure.d.ts +4 -4
  38. package/dist/FooterDisclosure/LVF/LaVictorieFooter.d.ts +1 -1
  39. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.d.ts +1 -1
  40. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
  41. package/dist/Forms/ApplicationStart.d.ts +1 -1
  42. package/dist/Forms/ApplyNow.d.ts +1 -1
  43. package/dist/Forms/ApplyNow.js +1 -1
  44. package/dist/Forms/BoatMooringLocation.d.ts +1 -1
  45. package/dist/Forms/ClearingForm.d.ts +1 -1
  46. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  47. package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +1 -1
  48. package/dist/Forms/CommercialLending.d.ts +1 -1
  49. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  50. package/dist/Forms/ConstructionLendingDynamic.d.ts +1 -1
  51. package/dist/Forms/ContactCompany.d.ts +1 -1
  52. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  53. package/dist/Forms/ContactUs.d.ts +1 -1
  54. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  55. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  56. package/dist/Forms/ContactUsBusiness.js +1 -1
  57. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  58. package/dist/Forms/ContactUsBusinessNameEmail.js +1 -1
  59. package/dist/Forms/ContactUsLVF.d.ts +1 -1
  60. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  61. package/dist/Forms/ContactUsNMLSId.js +1 -1
  62. package/dist/Forms/ContactUsSchwabAAS.d.ts +1 -1
  63. package/dist/Forms/CpraRequest.d.ts +1 -1
  64. package/dist/Forms/CpraRequest.js +1 -1
  65. package/dist/Forms/CraPublicFile.d.ts +1 -1
  66. package/dist/Forms/CraPublicFile.js +1 -1
  67. package/dist/Forms/DealerServices.d.ts +1 -1
  68. package/dist/Forms/EmailOnly.d.ts +1 -1
  69. package/dist/Forms/EmailOnly.js +1 -1
  70. package/dist/Forms/EmailUs.d.ts +1 -1
  71. package/dist/Forms/HoneyPot/index.d.ts +1 -1
  72. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  73. package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -1
  74. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.d.ts +1 -1
  75. package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +1 -1
  76. package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -1
  77. package/dist/Forms/MortgageWarehouseLending.d.ts +1 -1
  78. package/dist/Forms/MortgageWarehouseLending.js +1 -1
  79. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  80. package/dist/Forms/QuickPricer/UserInformation.d.ts +1 -1
  81. package/dist/Forms/ScheduleCall.d.ts +1 -1
  82. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  83. package/dist/Forms/SuccesForm.d.ts +1 -1
  84. package/dist/Forms/SuccesForm.js +1 -1
  85. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  86. package/dist/Forms/WcplSurvey.d.ts +1 -1
  87. package/dist/HeroBanner/HeroBanner.d.ts +1 -1
  88. package/dist/HeroBanner/HeroVideoPoster.d.ts +1 -1
  89. package/dist/HeroBanner/LargeHeroBanner.d.ts +1 -1
  90. package/dist/Hyperlink/index.js +1 -1
  91. package/dist/IconBillboard/IconBillboard.d.ts +1 -1
  92. package/dist/IconBillboard/IconBillboardSet.d.ts +1 -1
  93. package/dist/IconBillboard/sections/CallToActionSection.d.ts +1 -1
  94. package/dist/IconBillboard/sections/HeaderSection.d.ts +2 -2
  95. package/dist/IconBillboard/sections/IconSection.d.ts +1 -1
  96. package/dist/IconBillboard/sections/ItemsSection.d.ts +1 -1
  97. package/dist/IconBillboard/sections/LayoutSection.d.ts +1 -1
  98. package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +1 -1
  99. package/dist/ImageBillboard/ImageBillboard.d.ts +1 -1
  100. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  101. package/dist/ImageLink/ImageLink.d.ts +1 -1
  102. package/dist/ImageLink/ImageLink.js +1 -1
  103. package/dist/ImageLink/ImageLinkSet.d.ts +1 -1
  104. package/dist/ImageLink/ImageLinkSet.js +1 -1
  105. package/dist/ImageLink/index.js +1 -1
  106. package/dist/ImageWrapper/ImageWrapper.d.ts +1 -1
  107. package/dist/Insight/Featured/CategorySelector.d.ts +2 -2
  108. package/dist/Insight/Featured/CategorySelector.js +1 -1
  109. package/dist/Insight/Featured/Featured.d.ts +2 -2
  110. package/dist/Insight/Featured/Featured.js +1 -1
  111. package/dist/Insight/Featured/Header.d.ts +1 -1
  112. package/dist/Insight/Featured/Header.js +1 -1
  113. package/dist/LandingPageHeader/LandingPageHeader.d.ts +1 -1
  114. package/dist/LoadingIndicator/index.d.ts +1 -1
  115. package/dist/MainHTML/index.d.ts +1 -1
  116. package/dist/Modal/Modal.js +1 -1
  117. package/dist/Modal/contextApi/store.d.ts +1 -1
  118. package/dist/NavigationMenu/AxosALTS/index.d.ts +1 -1
  119. package/dist/NavigationMenu/AxosALTS/index.js +1 -1
  120. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +1 -1
  121. package/dist/NavigationMenu/AxosAdvisor/index.d.ts +1 -1
  122. package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.d.ts +1 -1
  123. package/dist/NavigationMenu/AxosAdvisorServices/index.d.ts +1 -1
  124. package/dist/NavigationMenu/AxosAdvisorServices/index.js +0 -1
  125. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +1 -1
  126. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +1 -1
  127. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -1
  128. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +3 -3
  129. package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +1 -1
  130. package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -1
  131. package/dist/NavigationMenu/AxosBank/index.d.ts +1 -1
  132. package/dist/NavigationMenu/AxosBank/index.js +15 -17
  133. package/dist/NavigationMenu/AxosClearing/SubNavBar.d.ts +1 -1
  134. package/dist/NavigationMenu/AxosClearing/index.d.ts +1 -1
  135. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +40 -43
  136. package/dist/NavigationMenu/AxosFiduciary/index.d.ts +1 -1
  137. package/dist/NavigationMenu/AxosFiduciary/index.js +0 -1
  138. package/dist/NavigationMenu/LaVictoire/SubNavBar.d.ts +1 -1
  139. package/dist/NavigationMenu/LaVictoire/index.d.ts +1 -1
  140. package/dist/NavigationMenu/LaVictoire/index.js +1 -1
  141. package/dist/NavigationMenu/NavItem/index.d.ts +1 -1
  142. package/dist/NavigationMenu/Navbar.d.ts +1 -1
  143. package/dist/NavigationMenu/Navbar.js +1 -1
  144. package/dist/NavigationMenu/SignInNavButton.d.ts +3 -1
  145. package/dist/NavigationMenu/SignInNavButton.js +1 -1
  146. package/dist/Pagination/Pagination.d.ts +1 -1
  147. package/dist/SecondaryFooter/index.d.ts +1 -1
  148. package/dist/SetContainer/SetContainer.d.ts +1 -1
  149. package/dist/SetContainer/SetContainer.js +1 -1
  150. package/dist/SocialMediaBar/iconsRepository.d.ts +14 -14
  151. package/dist/SocialMediaBar/iconsRepository.js +1 -1
  152. package/dist/SocialMediaBar/index.d.ts +1 -1
  153. package/dist/Tab/Tab.d.ts +1 -1
  154. package/dist/Tab/TabContainer.d.ts +1 -1
  155. package/dist/Table/Table.d.ts +5 -5
  156. package/dist/TextBlock/TextBlock.d.ts +1 -1
  157. package/dist/Topic/Topic.d.ts +4 -4
  158. package/dist/VideoTile/VideoInit.d.ts +1 -1
  159. package/dist/VideoTile/VideoTile.js +1 -1
  160. package/dist/VideoWrapper/index.js +1 -1
  161. package/dist/WalnutIframe/index.d.ts +1 -1
  162. package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css +82 -82
  163. package/dist/assets/TopicalNavSet/TopicalNavSet.css +1 -1
  164. package/dist/icons/AxosX/Blue.d.ts +1 -1
  165. package/dist/icons/AxosX/index.d.ts +1 -1
  166. package/dist/icons/CheckCircle.d.ts +1 -1
  167. package/dist/icons/CheckCircleLight.d.ts +1 -1
  168. package/dist/icons/CheckIcon/index.d.ts +1 -1
  169. package/dist/icons/ChevronDown.d.ts +1 -1
  170. package/dist/icons/ChevronUp.d.ts +1 -1
  171. package/dist/icons/Clock/index.d.ts +1 -1
  172. package/dist/icons/EqualHousingLender.d.ts +1 -1
  173. package/dist/icons/Logos/AAS.d.ts +1 -1
  174. package/dist/icons/Logos/AFS.d.ts +1 -1
  175. package/dist/icons/Logos/AXA.d.ts +1 -1
  176. package/dist/icons/Logos/AXB.d.ts +1 -1
  177. package/dist/icons/Logos/AXC.d.ts +1 -1
  178. package/dist/icons/Logos/AXI.d.ts +1 -1
  179. package/dist/icons/Logos/AXOS.d.ts +1 -1
  180. package/dist/icons/Logos/GBLVF.d.ts +1 -1
  181. package/dist/icons/Logos/LVF.d.ts +1 -1
  182. package/dist/icons/Logos/LVFText.d.ts +1 -1
  183. package/dist/icons/Logos/SPB.d.ts +1 -1
  184. package/dist/icons/MemberFdicLogo.d.ts +1 -1
  185. package/dist/icons/QuoteIconGrey.d.ts +1 -1
  186. package/dist/icons/QuoteIconWhite.d.ts +1 -1
  187. package/dist/icons/QuoteIconYellow.d.ts +1 -1
  188. package/package.json +147 -147
  189. package/dist/Chatbot/Chat.d.ts +0 -1
  190. package/dist/Chatbot/Chat.js +0 -158
  191. package/dist/Chatbot/useHeadlessChat.d.ts +0 -27
  192. package/dist/Chatbot/useHeadlessChat.js +0 -240
@@ -1,4 +1,4 @@
1
1
  import { CalculatorProps } from '../Calculators';
2
2
 
3
3
  export type ATMLocatorProps = CalculatorProps;
4
- export declare const ATMLocator: (props: CalculatorProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const ATMLocator: (props: CalculatorProps) => import("react").JSX.Element;
@@ -68,10 +68,10 @@ import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js"
68
68
  /* empty css */
69
69
  import "../Carousel/index.js";
70
70
  /* empty css */
71
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
72
71
  /* empty css */
73
72
  import "../Chatbot/store/chat.js";
74
73
  import "../Chatbot/Chatbot.js";
74
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
75
75
  /* empty css */
76
76
  import "../Chatbot/store/messages.js";
77
77
  /* empty css */
@@ -7,6 +7,6 @@ export declare const AccordionCtx: React.Context<{
7
7
  isOpen: boolean;
8
8
  onclick: () => void;
9
9
  }>;
10
- export declare const AccordionHeader: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
11
- export declare const AccordionDetails: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
12
- export declare const Accordion: (props: Accordion & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const AccordionHeader: (props: PropsWithChildren) => React.JSX.Element;
11
+ export declare const AccordionDetails: ({ children }: PropsWithChildren) => React.JSX.Element;
12
+ export declare const Accordion: (props: Accordion & PropsWithChildren) => React.JSX.Element;
@@ -12,4 +12,4 @@ export interface ArticleProps {
12
12
  variant?: QuaternaryTypes;
13
13
  useChevron?: boolean | false;
14
14
  }
15
- export declare const Article: ({ id, image, itemType, title, description, targetUrl, variant: fullVariant, useChevron, }: ArticleProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const Article: ({ id, image, itemType, title, description, targetUrl, variant: fullVariant, useChevron, }: ArticleProps) => import("react").JSX.Element;
@@ -10,5 +10,5 @@ type Props = {
10
10
  onClose?: () => void;
11
11
  modalRef?: React.RefObject<HTMLDivElement>;
12
12
  };
13
- export declare const ErrorAlert: ({ variant: fullVariant, modalRef, onClose, }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ErrorAlert: ({ variant: fullVariant, modalRef, onClose, }: Props) => import("react").JSX.Element;
14
14
  export {};
@@ -63,10 +63,10 @@ import "./SignInPassword.js";
63
63
  /* empty css */
64
64
  import "../Carousel/index.js";
65
65
  /* empty css */
66
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
67
66
  /* empty css */
68
67
  import "../Chatbot/store/chat.js";
69
68
  import "../Chatbot/Chatbot.js";
69
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
70
70
  import "../LoadingIndicator/LoadingIndicator.css.js";
71
71
  /* empty css */
72
72
  import "../Chatbot/store/messages.js";
@@ -1,3 +1,3 @@
1
1
  export declare const Logout: ({ action, }: {
2
2
  action: (prev: unknown, formData: FormData) => void;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => import("react").JSX.Element;
@@ -12,4 +12,4 @@ export type Credentials = {
12
12
  username: string;
13
13
  password: string;
14
14
  };
15
- export declare const SignIn: (props: SignIn) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const SignIn: (props: SignIn) => import("react").JSX.Element;
@@ -12,4 +12,4 @@ export interface BulletItemProps extends PropsWithChildren {
12
12
  subBullet?: boolean;
13
13
  className?: string;
14
14
  }
15
- export declare const BulletItem: (props: BulletItemProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const BulletItem: (props: BulletItemProps) => import("react").JSX.Element;
@@ -18,4 +18,4 @@ export type ButtonAsLink = ButtonBase & Omit<AnchorHTMLAttributes<HTMLAnchorElem
18
18
  as?: "a";
19
19
  };
20
20
  export type ButtonProps = ButtonAsButton | ButtonAsLink;
21
- export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, square, marketingIntersitial, ...rest }: ButtonProps & ButtonVariants) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, square, marketingIntersitial, ...rest }: ButtonProps & ButtonVariants) => import("react").JSX.Element;
@@ -71,10 +71,10 @@ import "../Auth/SignInPassword.js";
71
71
  /* empty css */
72
72
  import "../Carousel/index.js";
73
73
  /* empty css */
74
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
75
74
  /* empty css */
76
75
  import "../Chatbot/store/chat.js";
77
76
  import "../Chatbot/Chatbot.js";
77
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
78
78
  /* empty css */
79
79
  import "../Chatbot/store/messages.js";
80
80
  /* empty css */
@@ -160,9 +160,24 @@ const Button = ({
160
160
  e.preventDefault();
161
161
  setOpenModal(external_link);
162
162
  setTargetLinkUrl(targetUrl);
163
+ return;
164
+ }
165
+ e.preventDefault();
166
+ const resolved = resolveUrl(targetUrl);
167
+ if (newTab) {
168
+ window.open(resolved, "_blank");
169
+ } else {
170
+ window.location.href = resolved;
163
171
  }
164
172
  }
165
173
  };
174
+ const handleMouseDown = (e) => {
175
+ if (!targetUrl) return;
176
+ if (e.button === 1 || e.metaKey || e.ctrlKey) {
177
+ const el = e.currentTarget;
178
+ el.href = resolveUrl(targetUrl);
179
+ }
180
+ };
166
181
  return /* @__PURE__ */ jsxs(Fragment, { children: [
167
182
  createElement(
168
183
  as,
@@ -176,6 +191,7 @@ const Button = ({
176
191
  id,
177
192
  target: newTab ? "_blank" : "_self",
178
193
  onClick: marketingIntersitial ? openMarketingInterstitial : action ?? onClick,
194
+ onMouseDown: handleMouseDown,
179
195
  disabled: disabled ?? false
180
196
  },
181
197
  children
@@ -1,4 +1,4 @@
1
1
  import { ButtonProps } from './Button';
2
2
  import { ButtonVariants } from './Button.css';
3
3
 
4
- export declare const GoBackButton: (props: ButtonProps & ButtonVariants) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const GoBackButton: (props: ButtonProps & ButtonVariants) => import("react").JSX.Element;
@@ -16,4 +16,4 @@ export interface CalculatorProps {
16
16
  initialBalance?: number;
17
17
  callToActionRow?: ChevronProps[];
18
18
  }
19
- export declare const Calculator: (props: CalculatorProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const Calculator: (props: CalculatorProps) => React.JSX.Element;
@@ -50,10 +50,10 @@ import { SummitApyCalculator } from "./SummitApyCalculator/index.js";
50
50
  /* empty css */
51
51
  import "../Carousel/index.js";
52
52
  /* empty css */
53
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
54
53
  /* empty css */
55
54
  import "../Chatbot/store/chat.js";
56
55
  import "../Chatbot/Chatbot.js";
56
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
57
57
  import "../LoadingIndicator/LoadingIndicator.css.js";
58
58
  import "react-use";
59
59
  /* empty css */
@@ -72,10 +72,10 @@ import "../../Auth/SignInPassword.js";
72
72
  /* empty css */
73
73
  import "../../Carousel/index.js";
74
74
  /* empty css */
75
- import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
76
75
  /* empty css */
77
76
  import "../../Chatbot/store/chat.js";
78
77
  import "../../Chatbot/Chatbot.js";
78
+ import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
79
  /* empty css */
80
80
  import "../../Chatbot/store/messages.js";
81
81
  /* empty css */
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
1
+ import { default as React, PropsWithChildren, ReactNode } from 'react';
2
2
  import { carouselVariants } from './Carousel.css';
3
3
 
4
4
  export interface SlideProps extends PropsWithChildren {
@@ -17,5 +17,5 @@ export interface CarouselProps extends PropsWithChildren {
17
17
  description?: ReactNode;
18
18
  internalName?: string;
19
19
  }
20
- export declare const CarouselSlide: (props: SlideProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
21
- export declare const Carousel: (props: CarouselProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const CarouselSlide: (props: SlideProps & carouselVariants) => React.JSX.Element;
21
+ export declare const Carousel: (props: CarouselProps & carouselVariants) => React.JSX.Element;
@@ -73,10 +73,10 @@ import "../Auth/SignInPassword.js";
73
73
  /* empty css */
74
74
  /* empty css */
75
75
  /* empty css */
76
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
77
76
  /* empty css */
78
77
  import "../Chatbot/store/chat.js";
79
78
  import "../Chatbot/Chatbot.js";
79
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
80
80
  /* empty css */
81
81
  import "../Chatbot/store/messages.js";
82
82
  /* empty css */
@@ -2,7 +2,6 @@ import '../assets/Chatbot/Bubble.css';import '../assets/themes/victorie.css';imp
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import "./Chatbot.css.ts.vanilla.css.js";
6
5
  /* empty css */
7
6
  var borderHoverGradient = "_7u9pv31";
8
7
  var bubbleWrapper = "_7u9pv32";
@@ -3,4 +3,4 @@ import { PropsWithChildren } from 'react';
3
3
  export declare const Bubble: ({ children, onClick, }: PropsWithChildren & {
4
4
  onClick?: () => void;
5
5
  project: "axos" | "ufb" | "Axos" | "Ufb";
6
- }) => import("react/jsx-runtime").JSX.Element;
6
+ }) => import("react").JSX.Element;
@@ -136,7 +136,6 @@ const ChatWindow = ({
136
136
  height: "17",
137
137
  viewBox: "0 0 20 17",
138
138
  fill: "none",
139
- "aria-hidden": "true",
140
139
  children: [
141
140
  /* @__PURE__ */ jsx(
142
141
  "path",
@@ -183,8 +182,6 @@ const ChatWindow = ({
183
182
  alignContent: "center",
184
183
  background: menuOpen ? "#0000000f" : void 0
185
184
  },
186
- "aria-label": "end chat with evo ai",
187
- title: "end chat",
188
185
  children: /* @__PURE__ */ jsx(EllipsisIcon, { color: vars.chatbot.window.headerText })
189
186
  }
190
187
  ),
@@ -563,7 +560,6 @@ const ChatWindow = ({
563
560
  onFocus: () => setFocused(() => true),
564
561
  onBlur: () => setFocused(() => false),
565
562
  placeholder: "Ask anything...",
566
- "aria-label": "Ask anything...",
567
563
  className: clsx(inputStyle, autoResize),
568
564
  autoFocus: true,
569
565
  disabled: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected,
@@ -1,3 +1,4 @@
1
+ import "./Chatbot.css.ts.vanilla.css.js";
1
2
  var chatbotAXB = "_1hpv6vm0";
2
3
  var chatbotUFB = "_1hpv6vm1";
3
4
  export {
@@ -17,5 +17,5 @@ export declare const Chatbot: ({ project, projectEnv, menuOption, config, }: {
17
17
  menuOption?: "Support Virtual Agent" | string;
18
18
  debug?: boolean;
19
19
  config: InitalizeChatbot;
20
- }) => false | import("react/jsx-runtime").JSX.Element;
20
+ }) => false | import("react").JSX.Element;
21
21
  export {};
@@ -2,7 +2,7 @@
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { usePageVisibility } from "../utils/useVisibility.js";
4
4
  import { useRef, useState, useEffect } from "react";
5
- import { useLocation, useMount, useUnmount } from "react-use";
5
+ import { useMount, useUnmount } from "react-use";
6
6
  import notificationSound from "../assets/notification.mp3.js";
7
7
  import AudioManager from "./AudioManager.js";
8
8
  import { Bubble } from "./Bubble.js";
@@ -13,6 +13,9 @@ import { useMessages } from "./store/messages.js";
13
13
  const audioManager = new AudioManager();
14
14
  audioManager.installUjetAudioOverride(notificationSound);
15
15
  audioManager.setSoundEnabled(false);
16
+ function isChat(obj) {
17
+ return obj !== null && typeof obj === "object" && "id" in obj && "agent" in obj && typeof obj.connect === "function";
18
+ }
16
19
  const Chatbot = ({
17
20
  project = "axos",
18
21
  projectEnv = "dev",
@@ -37,7 +40,6 @@ const Chatbot = ({
37
40
  hideDisplayThankyouMessage
38
41
  } = useOpenChat();
39
42
  const isVisible = usePageVisibility();
40
- const location = useLocation();
41
43
  const { addMessage, addMessages, clearMessages, messages } = useMessages();
42
44
  const clientRef = useRef(null);
43
45
  const menuRef = useRef(null);
@@ -75,7 +77,7 @@ const Chatbot = ({
75
77
  $index: -10,
76
78
  $userId: 0
77
79
  };
78
- const custom_data = {
80
+ const custom_data = () => ({
79
81
  unsigned: {
80
82
  facingBrandId: {
81
83
  label: "facingBrandId",
@@ -95,10 +97,10 @@ const Chatbot = ({
95
97
  },
96
98
  url: {
97
99
  label: "url",
98
- value: location.href
100
+ value: window.location.href
99
101
  }
100
102
  }
101
- };
103
+ });
102
104
  const onReadyHandler = async () => {
103
105
  console.log("Chat client is ready");
104
106
  if (clientRef.current) {
@@ -314,8 +316,10 @@ const Chatbot = ({
314
316
  if (!foundMenu) {
315
317
  throw new Error("Menu not found: " + menuOption);
316
318
  }
317
- const newChat = await client.createChat(menuId, { custom_data });
318
- if (newChat !== null) {
319
+ const newChat = await client.createChat(menuId, {
320
+ custom_data: custom_data()
321
+ });
322
+ if (newChat && typeof newChat === "object" && isChat(newChat)) {
319
323
  chatRef.current = newChat;
320
324
  agent_virtual.current = newChat.agent;
321
325
  console.log("Chat created id:", newChat.id);
@@ -440,6 +444,36 @@ const Chatbot = ({
440
444
  }
441
445
  }
442
446
  }, [isOpen, isVisible]);
447
+ useMount(() => {
448
+ const hasParams = () => {
449
+ return window.location.search.includes("utm_");
450
+ };
451
+ const tryStart = () => {
452
+ if (hasParams()) {
453
+ startChat("utm-ready");
454
+ return true;
455
+ }
456
+ return false;
457
+ };
458
+ if (tryStart()) return;
459
+ const original = history.replaceState;
460
+ history.replaceState = function(...args) {
461
+ original.apply(this, args);
462
+ if (tryStart()) {
463
+ history.replaceState = original;
464
+ }
465
+ };
466
+ const interval = setInterval(() => {
467
+ if (tryStart()) {
468
+ clearInterval(interval);
469
+ history.replaceState = original;
470
+ }
471
+ }, 100);
472
+ return () => {
473
+ clearInterval(interval);
474
+ history.replaceState = original;
475
+ };
476
+ });
443
477
  return menusLoaded && /* @__PURE__ */ jsxs(
444
478
  "div",
445
479
  {
@@ -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;
@@ -72,10 +72,10 @@ import "../Auth/SignInPassword.js";
72
72
  /* empty css */
73
73
  import "../Carousel/index.js";
74
74
  /* empty css */
75
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
76
75
  /* empty css */
77
76
  import "../Chatbot/store/chat.js";
78
77
  import "../Chatbot/Chatbot.js";
78
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
79
  /* empty css */
80
80
  import "../Chatbot/store/messages.js";
81
81
  /* empty css */
@@ -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;
@@ -73,10 +73,10 @@ import "../Auth/SignInPassword.js";
73
73
  /* empty css */
74
74
  import "../Carousel/index.js";
75
75
  /* empty css */
76
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
77
76
  /* empty css */
78
77
  import "../Chatbot/store/chat.js";
79
78
  import "../Chatbot/Chatbot.js";
79
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
80
80
  /* empty css */
81
81
  import "../Chatbot/store/messages.js";
82
82
  /* empty css */
@@ -1,3 +1,3 @@
1
1
  import { ComparisonSetProps } from './Comparison.interface';
2
2
 
3
- export declare const ComparisonSet: ({ headline, variant, id, additionalDetails, icon, eyebrow, bodyCopy, comparisonElements, }: ComparisonSetProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ComparisonSet: ({ headline, variant, id, additionalDetails, icon, eyebrow, bodyCopy, comparisonElements, }: ComparisonSetProps) => import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { ExecutiveBioProps as Props } from './ExecutiveBio.interface';
2
2
 
3
- export declare const ExecutiveBio: ({ id, hasParentH2, executiveName, executiveTitle, executiveBodyCopy, executiveEmailAddress, executivePhoneNumber, executiveLinkedIn, executiveWebsite, executiveHeadshot, variant: fullVariant, bannerType, executiveTwitter, executiveFacebook, bullets, bulletsTitle, quote, backgroundOverlay, }: Props) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ExecutiveBio: ({ id, hasParentH2, executiveName, executiveTitle, executiveBodyCopy, executiveEmailAddress, executivePhoneNumber, executiveLinkedIn, executiveWebsite, executiveHeadshot, variant: fullVariant, bannerType, executiveTwitter, executiveFacebook, bullets, bulletsTitle, quote, backgroundOverlay, }: Props) => import("react").JSX.Element;
@@ -74,10 +74,10 @@ import "../Auth/SignInPassword.js";
74
74
  /* empty css */
75
75
  import "../Carousel/index.js";
76
76
  /* empty css */
77
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
78
77
  /* empty css */
79
78
  import "../Chatbot/store/chat.js";
80
79
  import "../Chatbot/Chatbot.js";
80
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
81
81
  /* empty css */
82
82
  import "../Chatbot/store/messages.js";
83
83
  /* empty css */
@@ -1,3 +1,3 @@
1
1
  import { ExecutiveBioSetProps as Props } from './ExecutiveBio.interface';
2
2
 
3
- export declare const ExecutiveBioSet: ({ id, title, description, executiveBios, additionalDetails, variant: fullVariant, numberOfColumns, }: Props) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ExecutiveBioSet: ({ id, title, description, executiveBios, additionalDetails, variant: fullVariant, numberOfColumns, }: Props) => import("react").JSX.Element;
@@ -4,5 +4,5 @@ interface OverlayProps {
4
4
  className?: string;
5
5
  variant?: QuaternaryTypes;
6
6
  }
7
- export declare const Overlay: ({ className, variant }: OverlayProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Overlay: ({ className, variant }: OverlayProps) => import("react").JSX.Element;
8
8
  export {};
@@ -4,19 +4,19 @@ import { PropsWithChildren, ReactNode } from 'react';
4
4
  export interface AccordionItemProps extends PropsWithChildren {
5
5
  id: string;
6
6
  }
7
- export declare const AccordionItem: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const AccordionItem: (props: AccordionItemProps) => import("react").JSX.Element;
8
8
  export declare const AccordionItemSummary: (props: {
9
9
  id: string;
10
10
  level: string;
11
- } & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
11
+ } & PropsWithChildren) => import("react").JSX.Element;
12
12
  export declare const AccordionCtas: (props: {
13
13
  callToActionRow: ChevronProps;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
- export declare const AccordionItemContent: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
14
+ }) => import("react").JSX.Element;
15
+ export declare const AccordionItemContent: (props: PropsWithChildren) => import("react").JSX.Element;
16
16
  export declare const FaqAccordion: (props: {
17
17
  header?: string;
18
18
  accordionEmbedLevel?: string;
19
19
  internalName?: string;
20
20
  id?: string;
21
21
  additionalDetails?: ReactNode | string;
22
- } & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
22
+ } & PropsWithChildren) => import("react").JSX.Element;
@@ -74,10 +74,10 @@ import "../Auth/SignInPassword.js";
74
74
  /* empty css */
75
75
  import "../Carousel/index.js";
76
76
  /* empty css */
77
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
78
77
  /* empty css */
79
78
  import "../Chatbot/store/chat.js";
80
79
  import "../Chatbot/Chatbot.js";
80
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
81
81
  /* empty css */
82
82
  import "../Chatbot/store/messages.js";
83
83
  /* empty css */
@@ -1 +1 @@
1
- export declare const FdicBanner: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const FdicBanner: () => import("react").JSX.Element;
@@ -7,8 +7,8 @@ type WithStyles = {
7
7
  type WithId = {
8
8
  id?: string;
9
9
  };
10
- export declare const FooterContent: (props: PropsWithChildren & WithStyles & WithId) => import("react/jsx-runtime").JSX.Element;
11
- export declare const FooterParagraph: (props: PropsWithChildren & WithStyles & WithId) => import("react/jsx-runtime").JSX.Element;
12
- export declare const FooterIcons: (props: PropsWithChildren & WithStyles) => import("react/jsx-runtime").JSX.Element;
13
- export declare const FooterDisclosure: (props: PropsWithChildren & WithStyles) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const FooterContent: (props: PropsWithChildren & WithStyles & WithId) => import("react").JSX.Element;
11
+ export declare const FooterParagraph: (props: PropsWithChildren & WithStyles & WithId) => import("react").JSX.Element;
12
+ export declare const FooterIcons: (props: PropsWithChildren & WithStyles) => import("react").JSX.Element;
13
+ export declare const FooterDisclosure: (props: PropsWithChildren & WithStyles) => import("react").JSX.Element;
14
14
  export {};
@@ -6,4 +6,4 @@ export declare const LaVictorieFooter: ({ footerLinks, logo, gbf, }: {
6
6
  }>;
7
7
  logo: "full" | "text";
8
8
  gbf?: boolean;
9
- }) => import("react/jsx-runtime").JSX.Element;
9
+ }) => import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export declare const AxosFooterSiteMap: ({ showButtons, }: {
2
2
  showButtons?: boolean;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => import("react").JSX.Element;
@@ -70,10 +70,10 @@ import "../../Auth/SignInPassword.js";
70
70
  /* empty css */
71
71
  import "../../Carousel/index.js";
72
72
  /* empty css */
73
- import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
74
73
  /* empty css */
75
74
  import "../../Chatbot/store/chat.js";
76
75
  import "../../Chatbot/Chatbot.js";
76
+ import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
77
77
  /* empty css */
78
78
  import "../../Chatbot/store/messages.js";
79
79
  /* empty css */
@@ -9,4 +9,4 @@ export type ApplicationStartInputs = {
9
9
  Send_SMS__c: boolean;
10
10
  DoNotCall: boolean;
11
11
  };
12
- export declare const ApplicationStart: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const ApplicationStart: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
@@ -3,4 +3,4 @@ import { FormProps } from './FormProps';
3
3
  export declare const ApplyNow: ({ icon, children, disclosure, variant: fullVariant, headline, description, id, gbf, project, }: Omit<FormProps & {
4
4
  gbf?: boolean;
5
5
  project?: string;
6
- }, "callToAction" | "validateEmail" | "onSubmit">) => import("react/jsx-runtime").JSX.Element;
6
+ }, "callToAction" | "validateEmail" | "onSubmit">) => import("react").JSX.Element;
@@ -75,10 +75,10 @@ import "../Auth/SignInPassword.js";
75
75
  /* empty css */
76
76
  import "../Carousel/index.js";
77
77
  /* empty css */
78
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
78
  /* empty css */
80
79
  import "../Chatbot/store/chat.js";
81
80
  import "../Chatbot/Chatbot.js";
81
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
82
82
  /* empty css */
83
83
  import "../Chatbot/store/messages.js";
84
84
  /* empty css */
@@ -27,4 +27,4 @@ export type BoatMooringLocationInputs = {
27
27
  insurancePolicyExpirationDate: string;
28
28
  insuranceContactEmailAddress: string;
29
29
  };
30
- export declare const BoatMooringLocation: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
30
+ export declare const BoatMooringLocation: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react").JSX.Element;
@@ -11,4 +11,4 @@ export type ClearingInputs = {
11
11
  Memo__c: string;
12
12
  business_type_selection: string;
13
13
  };
14
- export declare const ClearingForm: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const ClearingForm: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
@@ -14,4 +14,4 @@ export type CommercialDepositsInputs = {
14
14
  Others_Detail__c: string;
15
15
  Product_and_servicing_needs__c: string;
16
16
  };
17
- export declare const CommercialDeposits: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const CommercialDeposits: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
@@ -13,4 +13,4 @@ export type CommercialDepositsNoLendingOptionInputs = {
13
13
  Others_Detail__c: string;
14
14
  Product_and_servicing_needs__c: string;
15
15
  };
16
- export declare const CommercialDepositsNoLendingOption: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const CommercialDepositsNoLendingOption: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
@@ -16,4 +16,4 @@ export type CommercialLendingInputs = {
16
16
  Loan__c: string;
17
17
  Requested_loan_amount_and_leverage__c: string;
18
18
  };
19
- export declare const CommercialLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const CommercialLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react").JSX.Element;
@@ -7,4 +7,4 @@ export type CommercialPremiumFinanceInputs = {
7
7
  Insurance_Company__c: string;
8
8
  Type_of_Policy__c: string;
9
9
  };
10
- export declare const CommercialPremiumFinance: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CommercialPremiumFinance: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react").JSX.Element;
@@ -9,4 +9,4 @@ export type ConstructionLendingDynamicInputs = {
9
9
  description: string;
10
10
  Company_NMLS_ID__c: string;
11
11
  };
12
- export declare const ConstructionLendingDynamic: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const ConstructionLendingDynamic: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react").JSX.Element;
@@ -7,4 +7,4 @@ export type ContactCompanyInputs = {
7
7
  phone: string;
8
8
  company: string;
9
9
  };
10
- export declare const ContactCompany: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const ContactCompany: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;