@axos-web-dev/shared-components 1.0.77-patch.5 → 1.0.77-patch.51

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 (360) hide show
  1. package/dist/ATMLocator/ATMLocator.js +11 -4
  2. package/dist/Article/Article.css.d.ts +8 -36
  3. package/dist/ArticlesSet/ArticlesSet.css.d.ts +10 -70
  4. package/dist/ArticlesSet/ArticlesSet.js +1 -1
  5. package/dist/Auth/ErrorAlert.js +12 -5
  6. package/dist/Auth/SignInPassword.js +2 -2
  7. package/dist/Avatar/Avatar.module.js +7 -7
  8. package/dist/AwardsBanner/AwardsBanner.css.js +4 -1
  9. package/dist/AwardsItem/AwardsItem.css.js +1 -2
  10. package/dist/Blockquote/Blockquote.module.js +3 -3
  11. package/dist/BulletItem/BulletItem.js +1 -0
  12. package/dist/Button/Button.css.d.ts +3 -3
  13. package/dist/Button/Button.js +12 -5
  14. package/dist/Calculators/AnnualFeeCalculator/index.js +1 -1
  15. package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +2 -30
  16. package/dist/Calculators/ApyCalculator/index.js +11 -5
  17. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +1 -0
  18. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +3 -1
  19. package/dist/Calculators/AxosOneCalculator/index.d.ts +2 -0
  20. package/dist/Calculators/AxosOneCalculator/index.js +32 -14
  21. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +2 -30
  22. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.d.ts +0 -1
  23. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +2 -4
  24. package/dist/Calculators/BuyDownCalculator/index.d.ts +5 -1
  25. package/dist/Calculators/BuyDownCalculator/index.js +268 -142
  26. package/dist/Calculators/Calculator.d.ts +2 -0
  27. package/dist/Calculators/Calculator.js +30 -9
  28. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
  29. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
  30. package/dist/Calculators/MaxLoanCalculator/index.js +23 -6
  31. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
  32. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
  33. package/dist/Calculators/MonthlyPaymentCalculator/index.js +16 -6
  34. package/dist/Calculators/SummitApyCalculator/index.js +15 -6
  35. package/dist/Calculators/calculator.css.d.ts +2 -8
  36. package/dist/Calculators/index.d.ts +2 -1
  37. package/dist/Calculators/index.js +3 -1
  38. package/dist/CallToActionBar/index.js +1 -1
  39. package/dist/Carousel/Carousel.css.d.ts +8 -19
  40. package/dist/Carousel/index.js +20 -13
  41. package/dist/Chatbot/Bubble.css.d.ts +2 -0
  42. package/dist/Chatbot/Bubble.css.js +7 -0
  43. package/dist/Chatbot/Bubble.d.ts +5 -0
  44. package/dist/Chatbot/Bubble.js +103 -0
  45. package/dist/Chatbot/Chat.d.ts +1 -0
  46. package/dist/Chatbot/Chat.js +165 -0
  47. package/dist/Chatbot/ChatWindow.css.d.ts +19 -0
  48. package/dist/Chatbot/ChatWindow.css.js +42 -0
  49. package/dist/Chatbot/ChatWindow.d.ts +26 -0
  50. package/dist/Chatbot/ChatWindow.js +467 -0
  51. package/dist/Chatbot/Chatbot.css.d.ts +2 -0
  52. package/dist/Chatbot/Chatbot.css.js +6 -0
  53. package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
  54. package/dist/Chatbot/Chatbot.d.ts +10 -0
  55. package/dist/Chatbot/Chatbot.js +257 -0
  56. package/dist/Chatbot/EllipsisAnimation.d.ts +2 -0
  57. package/dist/Chatbot/EllipsisAnimation.js +85 -0
  58. package/dist/Chatbot/EllipsisIcon.d.ts +4 -0
  59. package/dist/Chatbot/EllipsisIcon.js +19 -0
  60. package/dist/Chatbot/authenticate.d.ts +3 -0
  61. package/dist/Chatbot/authenticate.js +16 -0
  62. package/dist/Chatbot/index.d.ts +8 -0
  63. package/dist/Chatbot/index.js +39 -0
  64. package/dist/Chatbot/store/chat.d.ts +10 -0
  65. package/dist/Chatbot/store/chat.js +18 -0
  66. package/dist/Chatbot/store/messages.d.ts +15 -0
  67. package/dist/Chatbot/store/messages.js +13 -0
  68. package/dist/Chatbot/useHeadlessChat.d.ts +27 -0
  69. package/dist/Chatbot/useHeadlessChat.js +240 -0
  70. package/dist/Chevron/Chevron.css.d.ts +2 -2
  71. package/dist/Chevron/index.js +12 -5
  72. package/dist/CollectInformationAlert/index.js +1 -1
  73. package/dist/Comparison/Comparison.js +17 -10
  74. package/dist/Comparison/ComparisonSet.js +33 -24
  75. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +153 -0
  76. package/dist/ExecutiveBio/ExecutiveBio.css.js +50 -0
  77. package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
  78. package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +11 -4
  79. package/dist/ExecutiveBio/ExecutiveBio.js +270 -10
  80. package/dist/ExecutiveBio/Overlay.d.ts +8 -0
  81. package/dist/ExecutiveBio/Overlay.js +589 -0
  82. package/dist/ExecutiveBio/index.js +26 -1
  83. package/dist/FaqAccordion/index.js +12 -5
  84. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +33 -14
  85. package/dist/Forms/ApplicationStart.d.ts +1 -1
  86. package/dist/Forms/ApplicationStart.js +112 -90
  87. package/dist/Forms/ApplyNow.d.ts +2 -2
  88. package/dist/Forms/ApplyNow.js +181 -149
  89. package/dist/Forms/ClearingForm.d.ts +1 -1
  90. package/dist/Forms/ClearingForm.js +185 -163
  91. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  92. package/dist/Forms/CommercialDeposits.js +202 -180
  93. package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +16 -0
  94. package/dist/Forms/CommercialDepositsNoLendingOption.js +330 -0
  95. package/dist/Forms/CommercialLending.d.ts +1 -1
  96. package/dist/Forms/CommercialLending.js +279 -257
  97. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  98. package/dist/Forms/CommercialPremiumFinance.js +128 -106
  99. package/dist/Forms/ContactCompany.d.ts +1 -1
  100. package/dist/Forms/ContactCompany.js +114 -92
  101. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  102. package/dist/Forms/ContactCompanyTitle.js +128 -106
  103. package/dist/Forms/ContactUs.d.ts +1 -1
  104. package/dist/Forms/ContactUs.js +100 -78
  105. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  106. package/dist/Forms/ContactUsAAS.js +181 -159
  107. package/dist/Forms/ContactUsBusiness.d.ts +2 -2
  108. package/dist/Forms/ContactUsBusiness.js +147 -119
  109. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  110. package/dist/Forms/ContactUsBusinessNameEmail.js +115 -87
  111. package/dist/Forms/ContactUsLVF.d.ts +7 -1
  112. package/dist/Forms/ContactUsLVF.js +134 -106
  113. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  114. package/dist/Forms/ContactUsNMLSId.js +129 -101
  115. package/dist/Forms/CpraRequest.d.ts +1 -1
  116. package/dist/Forms/CpraRequest.js +642 -620
  117. package/dist/Forms/CraPublicFile.d.ts +1 -1
  118. package/dist/Forms/CraPublicFile.js +121 -93
  119. package/dist/Forms/DealerServices.d.ts +1 -1
  120. package/dist/Forms/DealerServices.js +226 -205
  121. package/dist/Forms/EmailOnly.d.ts +1 -1
  122. package/dist/Forms/EmailOnly.js +68 -42
  123. package/dist/Forms/EmailUs.d.ts +1 -1
  124. package/dist/Forms/EmailUs.js +76 -54
  125. package/dist/Forms/FormEnums.js +57 -16
  126. package/dist/Forms/FormProps.d.ts +3 -0
  127. package/dist/Forms/Forms.css.d.ts +20 -30
  128. package/dist/Forms/Forms.css.js +44 -38
  129. package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
  130. package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
  131. package/dist/Forms/HoneyPot/index.d.ts +23 -0
  132. package/dist/Forms/HoneyPot/index.js +70 -0
  133. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  134. package/dist/Forms/MortgageRate/MortgageRateForm.js +404 -356
  135. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +11 -5
  136. package/dist/Forms/MortgageRate/MortgageRateWatch.js +12 -5
  137. package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
  138. package/dist/Forms/MortgageWarehouseLending.js +343 -0
  139. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  140. package/dist/Forms/QuickPricer/QuickPricerForm.js +625 -610
  141. package/dist/Forms/SalesforceFieldsForm.d.ts +5 -0
  142. package/dist/Forms/SalesforceFieldsForm.js +11 -1
  143. package/dist/Forms/ScheduleCall.d.ts +1 -1
  144. package/dist/Forms/ScheduleCall.js +157 -135
  145. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  146. package/dist/Forms/ScheduleCallPremier.js +179 -157
  147. package/dist/Forms/SuccesForm.js +17 -10
  148. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  149. package/dist/Forms/VendorQuestionnaire.js +818 -796
  150. package/dist/Forms/WcplSurvey.d.ts +1 -1
  151. package/dist/Forms/WcplSurvey.js +112 -90
  152. package/dist/Forms/applynow-utils.d.ts +1 -0
  153. package/dist/Forms/applynow-utils.js +48 -0
  154. package/dist/Forms/index.d.ts +4 -0
  155. package/dist/Forms/index.js +15 -2
  156. package/dist/HeroBanner/HeroBanner.css.d.ts +7 -17
  157. package/dist/HeroBanner/HeroBanner.css.js +4 -0
  158. package/dist/HeroBanner/HeroBanner.d.ts +1 -1
  159. package/dist/HeroBanner/HeroBanner.interface.d.ts +3 -0
  160. package/dist/HeroBanner/HeroBanner.js +102 -17
  161. package/dist/HeroBanner/SelectionBanner.css.d.ts +1 -19
  162. package/dist/HeroBanner/SelectionBanner.css.js +6 -6
  163. package/dist/HeroBanner/index.js +3 -1
  164. package/dist/Hyperlink/Hyperlink.css.d.ts +4 -4
  165. package/dist/Hyperlink/Hyperlink.css.js +4 -1
  166. package/dist/Hyperlink/index.js +12 -5
  167. package/dist/IconBillboard/IconBillboard.css.d.ts +7 -40
  168. package/dist/IconBillboard/IconBillboard.css.js +2 -0
  169. package/dist/IconBillboard/IconBillboard.d.ts +1 -2
  170. package/dist/IconBillboard/IconBillboard.js +30 -85
  171. package/dist/IconBillboard/index.js +3 -3
  172. package/dist/IconBillboard/sections/CallToActionSection.d.ts +12 -0
  173. package/dist/IconBillboard/sections/CallToActionSection.js +102 -0
  174. package/dist/IconBillboard/sections/HeaderSection.d.ts +11 -0
  175. package/dist/IconBillboard/sections/HeaderSection.js +23 -0
  176. package/dist/IconBillboard/sections/IconSection.d.ts +7 -0
  177. package/dist/IconBillboard/sections/IconSection.js +18 -0
  178. package/dist/IconBillboard/sections/ItemsSection.d.ts +11 -0
  179. package/dist/IconBillboard/sections/ItemsSection.js +11 -0
  180. package/dist/IconBillboard/sections/LayoutSection.d.ts +8 -0
  181. package/dist/IconBillboard/sections/LayoutSection.js +6 -0
  182. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +6 -1
  183. package/dist/ImageBillboard/ImageBillboard.css.d.ts +5 -61
  184. package/dist/ImageBillboard/ImageBillboard.interface.d.ts +7 -0
  185. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  186. package/dist/ImageBillboard/ImageBillboardSet.js +20 -4
  187. package/dist/ImageLink/ImageLink.js +13 -6
  188. package/dist/ImageLink/ImageLinkSet.js +15 -8
  189. package/dist/ImageLink/index.js +12 -5
  190. package/dist/Input/Dropdown.js +1 -0
  191. package/dist/Input/Input.js +3 -1
  192. package/dist/Insight/Featured/CategorySelector.js +13 -6
  193. package/dist/Insight/Featured/Featured.js +20 -13
  194. package/dist/Insight/Featured/Header.js +19 -12
  195. package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +2 -0
  196. package/dist/LandingPageHeader/LandingPageHeader.css.js +6 -2
  197. package/dist/LandingPageHeader/LandingPageHeader.js +18 -9
  198. package/dist/LandingPageHeader/index.js +3 -1
  199. package/dist/LoadingIndicator/LoadingIndicator.css.d.ts +4 -4
  200. package/dist/LoadingIndicator/index.js +1 -0
  201. package/dist/Modal/Modal.css.d.ts +1 -0
  202. package/dist/Modal/Modal.css.js +5 -3
  203. package/dist/Modal/Modal.js +15 -8
  204. package/dist/Modal/contextApi/store.js +1 -1
  205. package/dist/NavigationMenu/AxosALTS/NavData.js +12 -5
  206. package/dist/NavigationMenu/AxosALTS/index.js +12 -5
  207. package/dist/NavigationMenu/AxosAdvisor/NavBar.css.d.ts +2 -0
  208. package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +7 -2
  209. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
  210. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +3 -10
  211. package/dist/NavigationMenu/AxosAdvisor/index.js +42 -32
  212. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.d.ts +2 -0
  213. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +7 -2
  214. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +53 -53
  215. package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.d.ts +1 -1
  216. package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +2 -2
  217. package/dist/NavigationMenu/AxosAdvisorServices/index.js +14 -8
  218. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +2 -2
  219. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +16 -16
  220. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +6 -9
  221. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +32 -20
  222. package/dist/NavigationMenu/AxosBank/NavBar.css.js +2 -1
  223. package/dist/NavigationMenu/AxosBank/NavBar.module.js +41 -41
  224. package/dist/NavigationMenu/AxosBank/NavData.js +12 -5
  225. package/dist/NavigationMenu/AxosBank/SubNavBar.js +84 -109
  226. package/dist/NavigationMenu/AxosBank/SubNavbar.css.d.ts +2 -0
  227. package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +4 -0
  228. package/dist/NavigationMenu/AxosBank/index.js +12 -5
  229. package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
  230. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +41 -41
  231. package/dist/NavigationMenu/LaVictoire/NavData.js +12 -5
  232. package/dist/NavigationMenu/LaVictoire/index.js +12 -5
  233. package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
  234. package/dist/NavigationMenu/NavDataJson.js +315 -0
  235. package/dist/NavigationMenu/Navbar.d.ts +5 -0
  236. package/dist/NavigationMenu/Navbar.js +201 -0
  237. package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
  238. package/dist/NavigationMenu/SignInNavButton.js +369 -0
  239. package/dist/PageNavItem/PageNavItem.css.d.ts +4 -22
  240. package/dist/Pagination/Pagination.js +6 -6
  241. package/dist/SetContainer/SetContainer.js +13 -6
  242. package/dist/SocialMediaBar/iconsRepository.js +12 -5
  243. package/dist/StepItem/StepItem.css.d.ts +8 -36
  244. package/dist/StepItemSet/StepItemSet.css.d.ts +6 -32
  245. package/dist/StepItemSet/StepItemSet.css.js +12 -6
  246. package/dist/StepItemSet/StepItemSet.d.ts +8 -0
  247. package/dist/StepItemSet/StepItemSet.js +38 -14
  248. package/dist/StepItemSet/index.js +4 -2
  249. package/dist/Tab/Tab.js +1 -0
  250. package/dist/Table/Table.css.d.ts +7 -7
  251. package/dist/Table/Table.css.js +5 -5
  252. package/dist/Table/Table.d.ts +1 -1
  253. package/dist/Table/Table.js +1 -1
  254. package/dist/VideoTile/VideoTile.interface.d.ts +4 -3
  255. package/dist/VideoTile/VideoTile.js +189 -28
  256. package/dist/VideoWrapper/index.js +13 -6
  257. package/dist/WalnutIframe/wrapper.module.js +3 -3
  258. package/dist/assets/Accordion/Accordion.css +4 -4
  259. package/dist/assets/Article/Article.css +47 -59
  260. package/dist/assets/ArticlesSet/ArticlesSet.css +26 -56
  261. package/dist/assets/Auth/SignIn.css +12 -12
  262. package/dist/assets/Avatar/Avatar.css.css +10 -10
  263. package/dist/assets/AwardsBanner/AwardsBanner.css +1 -1
  264. package/dist/assets/AwardsItem/AwardsItem.css +3 -4
  265. package/dist/assets/Blockquote/Blockquote.css.css +17 -17
  266. package/dist/assets/Button/Button.css +28 -28
  267. package/dist/assets/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css +8 -8
  268. package/dist/assets/Calculators/ApyCalculator/ApyCalculator.css +12 -21
  269. package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +32 -12
  270. package/dist/assets/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css +22 -34
  271. package/dist/assets/Calculators/BuyDownCalculator/BuyDownCalculator.css +15 -21
  272. package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +12 -9
  273. package/dist/assets/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css +10 -10
  274. package/dist/assets/Calculators/SummitApyCalculator/BalanceAPYCalculator.css +18 -10
  275. package/dist/assets/Calculators/calculator.css +9 -15
  276. package/dist/assets/CallToActionBar/CallToActionBar.css +6 -4
  277. package/dist/assets/Carousel/Carousel.css +27 -41
  278. package/dist/assets/Chatbot/Bubble.css +51 -0
  279. package/dist/assets/Chatbot/ChatWindow.css +225 -0
  280. package/dist/assets/Chevron/Chevron.css +11 -10
  281. package/dist/assets/CollectInformationAlert/CollectInformationAlert.css +4 -3
  282. package/dist/assets/Comparison/Comparison.css +8 -5
  283. package/dist/assets/ContentBanner/ContentBanner.css +8 -8
  284. package/dist/assets/DownloadTile/DownloadTile.css +6 -6
  285. package/dist/assets/ExecutiveBio/ExecutiveBio.css +343 -27
  286. package/dist/assets/FaqAccordion/FaqAccordion.css +5 -5
  287. package/dist/assets/FooterDisclosure/FooterDisclosure.css +1 -1
  288. package/dist/assets/FooterSiteMap/AxosBank/FooterSiteMap.css +3 -8
  289. package/dist/assets/Forms/Forms.css +163 -151
  290. package/dist/assets/Forms/HoneyPot/HoneyPot.css +8 -0
  291. package/dist/assets/Forms/QuickPricer/UserInformation.css +1 -1
  292. package/dist/assets/HeroBanner/HeroBanner.css +92 -75
  293. package/dist/assets/HeroBanner/LargeBanner.css +15 -15
  294. package/dist/assets/HeroBanner/SelectionBanner.css +15 -29
  295. package/dist/assets/Hyperlink/Hyperlink.css +4 -4
  296. package/dist/assets/IconBillboard/IconBillboard.css +53 -49
  297. package/dist/assets/ImageBillboard/ImageBillboard.css +56 -79
  298. package/dist/assets/Input/Input.css +6 -6
  299. package/dist/assets/Inputs/Input.css +4 -4
  300. package/dist/assets/Insight/Featured/CategorySelector.css +1 -1
  301. package/dist/assets/Interstitial/Interstitial-variants.css +3 -3
  302. package/dist/assets/LandingPageHeader/LandingPageHeader.css +37 -4
  303. package/dist/assets/LoadingIndicator/LoadingIndicator.css +5 -5
  304. package/dist/assets/Modal/Modal.css +17 -28
  305. package/dist/assets/NavigationMenu/AxosALTS/NavBar.css +1 -1
  306. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css +25 -2
  307. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +138 -126
  308. package/dist/assets/NavigationMenu/AxosAdvisor/SubNavbar.css +5 -4
  309. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css +25 -2
  310. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css.css +142 -130
  311. package/dist/assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css +22 -4
  312. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +32 -31
  313. package/dist/assets/NavigationMenu/AxosBank/NavBar.css +21 -9
  314. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +120 -148
  315. package/dist/assets/NavigationMenu/AxosBank/SubNavbar.css +35 -1
  316. package/dist/assets/NavigationMenu/AxosClearing/NavBar.css.css +133 -107
  317. package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +84 -83
  318. package/dist/assets/PageNavItem/PageNavItem.css +16 -33
  319. package/dist/assets/Pagination/Pagination.css +1 -1
  320. package/dist/assets/SetContainer/SetContainer.css +5 -5
  321. package/dist/assets/StepItem/StepItem.css +26 -42
  322. package/dist/assets/StepItemSet/StepItemSet.css +50 -41
  323. package/dist/assets/Tab/Tab.css +12 -12
  324. package/dist/assets/Table/Table.css +91 -98
  325. package/dist/assets/TextBlock/TextBlock.css +1 -1
  326. package/dist/assets/TopicalNavItem/TopicalNavItem.css +3 -3
  327. package/dist/assets/TopicalNavSet/TopicalNavSet.css +1 -1
  328. package/dist/assets/VideoTile/VideoTile.css +1 -1
  329. package/dist/assets/WalnutIframe/wrapper.css.css +7 -8
  330. package/dist/assets/globals.css +10 -10
  331. package/dist/assets/icons/ArrowIcon/ArrowIcon.css +3 -3
  332. package/dist/assets/icons/DownloadIcon/DownloadIcon.css +1 -1
  333. package/dist/assets/icons/FollowIcon/FollowIcon.css +1 -1
  334. package/dist/assets/themes/axos.css +32 -32
  335. package/dist/assets/themes/premier.css +31 -31
  336. package/dist/assets/themes/victorie.css +23 -23
  337. package/dist/icons/CheckCircle.js +1 -1
  338. package/dist/icons/CheckCircleLight.js +1 -1
  339. package/dist/icons/CheckIcon/index.js +1 -1
  340. package/dist/icons/Logos/AXB.d.ts +8 -0
  341. package/dist/icons/Logos/AXB.js +74 -0
  342. package/dist/icons/Logos/SPB.d.ts +4 -0
  343. package/dist/icons/Logos/SPB.js +132 -0
  344. package/dist/icons/QuoteIconGrey.js +2 -2
  345. package/dist/icons/index.d.ts +1 -0
  346. package/dist/icons/index.js +2 -0
  347. package/dist/main.d.ts +1 -0
  348. package/dist/main.js +115 -25
  349. package/dist/themes/axos.css.d.ts +12 -12
  350. package/dist/themes/axos.css.js +1 -1
  351. package/dist/utils/allowedAxosDomains.js +4 -2
  352. package/dist/utils/emailValidation.d.ts +1 -0
  353. package/dist/utils/emailValidation.js +31 -0
  354. package/dist/utils/index.d.ts +4 -1
  355. package/dist/utils/index.js +9 -1
  356. package/dist/utils/nmlsValidation.d.ts +1 -0
  357. package/dist/utils/nmlsValidation.js +34 -0
  358. package/dist/utils/useCachedValidators.d.ts +2 -0
  359. package/dist/utils/useCachedValidators.js +22 -0
  360. package/package.json +135 -133
@@ -6,14 +6,16 @@ import SvgArrowIcon from "../../icons/ArrowIcon/index.js";
6
6
  import SvgAxosX from "../../icons/AxosX/index.js";
7
7
  import SvgComponent from "../../icons/AxosX/Blue.js";
8
8
  import "../../icons/CheckIcon/CheckIcon.css.js";
9
- import '../../assets/VideoWrapper/VideoWrapper.css';import '../../assets/VideoTile/VideoTile.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/NavBar.css';import '../../assets/NavigationMenu/AxosALTS/NavBar.css';import '../../assets/NavigationMenu/AxosClearing/NavBar.css';import '../../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../../assets/NavigationMenu/AxosBank/NavBar.css';import '../../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../../assets/NavigationMenu/AxosAdvisorServices/NavBar.css';import '../../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../../assets/NavigationMenu/AxosAdvisor/NavBar.css';import '../../assets/Insight/Insight.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/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/CallToActionBar/CallToActionBar.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/Modal/Modal.css';import '../../assets/Forms/QuickPricer/QuickPricerResults.css';import '../../assets/BulletItem/BulletItem.css';import '../../assets/Typography/Typography.css';import '../../assets/icons/FollowIcon/FollowIcon.css';import '../../assets/icons/DownloadIcon/DownloadIcon.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
9
+ 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/NavBar.css';import '../../assets/NavigationMenu/AxosALTS/NavBar.css';import '../../assets/NavigationMenu/AxosClearing/NavBar.css';import '../../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../../assets/NavigationMenu/AxosBank/NavBar.css';import '../../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../../assets/NavigationMenu/AxosAdvisorServices/NavBar.css';import '../../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../../assets/NavigationMenu/AxosAdvisor/NavBar.css';import '../../assets/Insight/Insight.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/CallToActionBar/CallToActionBar.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/Modal/Modal.css';import '../../assets/Forms/QuickPricer/QuickPricerResults.css';import '../../assets/BulletItem/BulletItem.css';import '../../assets/Typography/Typography.css';import '../../assets/icons/FollowIcon/FollowIcon.css';import '../../assets/icons/DownloadIcon/DownloadIcon.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  import "../../utils/allowedAxosDomains.js";
15
+ import * as z from "zod";
15
16
  import { associatedEmail } from "../../utils/EverestValidity.js";
16
17
  import { getVariant } from "../../utils/getVariant.js";
18
+ import { useCachedEmailValidator } from "../../utils/useCachedValidators.js";
17
19
  import clsx from "clsx";
18
20
  /* empty css */
19
21
  /* empty css */
@@ -41,9 +43,11 @@ import { InputPhone } from "../../Input/InputPhone.js";
41
43
  import "../../Input/InputTextArea.js";
42
44
  import { DownPaymentInput } from "../../Input/DownPaymentInput.js";
43
45
  import "../../Input/RadioButton.js";
46
+ import "../../Input/PercentageInput.js";
44
47
  import { useForm, FormProvider } from "react-hook-form";
45
- import * as z from "zod";
48
+ import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
46
49
  import { iconForm, headerForm, form, descriptionField, headerContainer, fullRowSelect, formWrapper, centerSelect, mt2rem, fullRowForm, disclosureForm, actions, formBtns, na_cursor, formContainer } from "../Forms.css.js";
50
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "../HoneyPot/index.js";
47
51
  import { SalesforceSchema } from "../SalesforceFieldsForm.js";
48
52
  import "../../Input/RadioButton.css.js";
49
53
  import "../../Input/Checkbox.css.js";
@@ -63,8 +67,6 @@ import "iframe-resizer";
63
67
  import "../../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
64
68
  import "../../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
65
69
  import "../../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
66
- import "../../Input/PercentageInput.js";
67
- import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
68
70
  /* empty css */
69
71
  import "react-dom";
70
72
  /* empty css */
@@ -73,6 +75,12 @@ import "../../Auth/SignInPassword.js";
73
75
  /* empty css */
74
76
  /* empty css */
75
77
  import "../../Carousel/index.js";
78
+ /* empty css */
79
+ import "../../Chatbot/store/chat.js";
80
+ import "../../Chatbot/authenticate.js";
81
+ import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
82
+ /* empty css */
83
+ import "../../Chatbot/store/messages.js";
76
84
  /* empty css */
77
85
  import "../../Comparison/Comparison.css.js";
78
86
  import "next/image.js";
@@ -91,6 +99,8 @@ import "../../FooterDisclosure/FooterDisclosure.css.js";
91
99
  /* empty css */
92
100
  /* empty css */
93
101
  import "../../ImageBillboard/ImageBillboard.css.js";
102
+ import "next/script.js";
103
+ /* empty css */
94
104
  /* empty css */
95
105
  /* empty css */
96
106
  /* empty css */
@@ -124,8 +134,6 @@ import "../../StepItemSet/StepItemSet.css.js";
124
134
  /* empty css */
125
135
  /* empty css */
126
136
  /* empty css */
127
- import "next/script.js";
128
- /* empty css */
129
137
  /* empty css */
130
138
  const MortgageRate = ({
131
139
  icon = false,
@@ -140,7 +148,8 @@ const MortgageRate = ({
140
148
  rateWatchOnSubmit,
141
149
  setRateWatchSubmitted,
142
150
  hideModalValue,
143
- showingTables
151
+ showingTables,
152
+ onValidate
144
153
  }) => {
145
154
  const [loanPurpose, setLoanPurpose] = useState(1);
146
155
  const [rateType, setRateType] = useState("Purchase");
@@ -151,6 +160,7 @@ const MortgageRate = ({
151
160
  const [_downPayment, setDownPayment] = useState(0);
152
161
  const [isTypingDownPayment, setIsTypingDownPayment] = useState(false);
153
162
  const [salesPriceVal, setSalesPriceVal] = useState(0);
163
+ const cachedEmailValidator = useCachedEmailValidator(validateEmail);
154
164
  const schema = z.object({
155
165
  firstName: z.string({ message: "First Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
156
166
  message: "First Name is required."
@@ -158,7 +168,7 @@ const MortgageRate = ({
158
168
  lastName: z.string({ message: "Last Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
159
169
  message: "Last Name is required."
160
170
  }).trim().min(1, { message: "Last Name is required." }),
161
- email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
171
+ email: z.string().email({ message: "Email is required." }).refine(cachedEmailValidator, { message: "Invalid email address." }),
162
172
  phone: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, { message: "Phone is required." }).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
163
173
  const removeDashes = val.replace(/-/gi, "");
164
174
  if (removeDashes.length !== 10) {
@@ -197,7 +207,7 @@ const MortgageRate = ({
197
207
  }
198
208
  ),
199
209
  creditScore: z.number({ message: "Credit Score is required." }).positive({ message: "Credit Score is required." }),
200
- zipCode: z.number({ message: "Zip Code is required." }).positive({ message: "Zip Code is required." }),
210
+ zipCode: z.string().trim().min(1, { message: "Zip Code is required." }).regex(/^\d{5}$/, { message: "ZIP code must be 5 digits." }),
201
211
  appraisedValue: z.number({ message: "Home Price is required." }).optional().refine(
202
212
  (val) => {
203
213
  if (loanPurpose === 2 && val == null) {
@@ -205,7 +215,7 @@ const MortgageRate = ({
205
215
  }
206
216
  return true;
207
217
  },
208
- { message: "Appraised Value is required for refinance" }
218
+ { message: "Appraised Value is required for refinance." }
209
219
  ),
210
220
  mortgageBalance: z.number({ message: "Mortgage Balance is required." }).optional().refine(
211
221
  (val) => {
@@ -214,30 +224,50 @@ const MortgageRate = ({
214
224
  }
215
225
  return true;
216
226
  },
217
- { message: "Mortgage Balance is required for refinance" }
227
+ { message: "Mortgage Balance is required for refinance." }
218
228
  ),
219
229
  cashOut: z.number({ message: "Cash Out is required." }).optional(),
220
230
  loanPurpose: z.number({ message: "Loan Purpose is required." })
221
231
  });
232
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
233
+ if (!isValidHoneyPot(data)) {
234
+ ctx.addIssue({
235
+ code: z.ZodIssueCode.custom,
236
+ message: "fields are not valid."
237
+ });
238
+ }
239
+ });
222
240
  const methods = useForm({
223
- resolver: zodResolver(schema.merge(SalesforceSchema), {
241
+ resolver: zodResolver(gen_schema, {
224
242
  async: true
225
243
  }),
226
244
  mode: "all",
227
245
  defaultValues: {
228
- loanPurpose: 1
246
+ loanPurpose: 1,
247
+ AlternativeEmail: "bestbank@axos.com",
248
+ AlternativePhone: ""
229
249
  }
230
250
  });
251
+ const setHoneypotDefaults = () => {
252
+ const { AlternativeEmail, AlternativePhone } = methods.getValues();
253
+ methods.setValue(
254
+ "AlternativeEmail",
255
+ AlternativeEmail || "bestbank@axos.com"
256
+ );
257
+ methods.setValue("AlternativePhone", AlternativePhone || "");
258
+ };
231
259
  useEffect(() => {
232
260
  if (loanPurpose === 1) {
233
261
  methods.reset();
234
262
  methods.setValue("appraisedValue", 0);
235
263
  methods.setValue("mortgageBalance", 0);
264
+ setHoneypotDefaults();
236
265
  } else if (loanPurpose === 2) {
237
266
  methods.reset();
238
267
  methods.setValue("loanPurpose", 2);
239
268
  methods.setValue("salesPrice", 0);
240
269
  methods.setValue("downPayment", 0);
270
+ setHoneypotDefaults();
241
271
  }
242
272
  }, [loanPurpose, methods]);
243
273
  useEffect(() => {
@@ -410,361 +440,379 @@ const MortgageRate = ({
410
440
  children: "Tell us about your property and loan to personalize your rate."
411
441
  }
412
442
  ) }),
413
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
414
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
415
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
416
- Dropdown,
417
- {
418
- id: "propertyType",
419
- ...register("propertyType", {
420
- required: true,
421
- setValueAs: (value) => Number(value)
422
- }),
423
- label: "Property Type",
424
- sizes: "medium",
425
- required: true,
426
- error: !!errors.propertyType,
427
- helperText: errors.propertyType?.message,
428
- variant,
429
- defaultValue: "Select option",
430
- children: [
431
- /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
432
- /* @__PURE__ */ jsx("option", { value: "1", children: "Single Family Home" }),
433
- /* @__PURE__ */ jsx("option", { value: "3", children: "Condo" }),
434
- /* @__PURE__ */ jsx("option", { value: "5", children: "Hi-Rise Condo" }),
435
- /* @__PURE__ */ jsx("option", { value: "2", children: "Co-op" }),
436
- /* @__PURE__ */ jsx("option", { value: "4", children: "2-4 Unit" }),
437
- /* @__PURE__ */ jsx("option", { value: "6", children: "Manufactured" })
438
- ]
439
- }
440
- ) }),
441
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
442
- Dropdown,
443
- {
444
- id: "occupancy",
445
- ...register("occupancy", {
446
- required: true,
447
- setValueAs: (value) => Number(value)
448
- }),
449
- label: "Property Usage",
450
- sizes: "medium",
451
- required: true,
452
- error: !!errors.occupancy,
453
- helperText: errors.occupancy?.message,
454
- variant,
455
- defaultValue: "Select option",
456
- children: [
457
- /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
458
- /* @__PURE__ */ jsx("option", { value: "1", children: "Primary Residence" }),
459
- /* @__PURE__ */ jsx("option", { value: "2", children: "Vacation Home" }),
460
- /* @__PURE__ */ jsx("option", { value: "3", children: "Investment" })
461
- ]
462
- }
463
- ) }),
464
- loanPurpose === 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
465
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
466
- Input,
467
- {
468
- id: "salesPrice",
469
- type: "text",
470
- ...register("salesPrice", {
443
+ /* @__PURE__ */ jsxs(
444
+ "form",
445
+ {
446
+ className: form,
447
+ onSubmit: async (e) => {
448
+ onValidate && onValidate(e);
449
+ await handleSubmit(submitForm)(e);
450
+ e.preventDefault();
451
+ },
452
+ children: [
453
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
454
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
455
+ Dropdown,
456
+ {
457
+ id: "propertyType",
458
+ ...register("propertyType", {
459
+ required: true,
460
+ setValueAs: (value) => Number(value)
461
+ }),
462
+ label: "Property Type",
463
+ sizes: "medium",
471
464
  required: true,
472
- setValueAs: (value) => parseCurrency(value)
473
- }),
474
- label: "Purchase Price",
475
- sizes: "medium",
476
- required: true,
477
- error: !!errors.salesPrice,
478
- helperText: errors.salesPrice?.message,
479
- variant,
480
- onBlur: (e) => {
481
- setIsTypingDownPayment(false);
482
- const rawValue = e.target.value;
483
- const parsedValue = parseCurrency(rawValue);
484
- if (parsedValue === 0) {
485
- methods.setError("salesPrice", {
486
- type: "manual",
487
- message: "Purchase Price is required."
488
- });
489
- } else {
490
- methods.setValue("salesPrice", parsedValue);
465
+ error: !!errors.propertyType,
466
+ helperText: errors.propertyType?.message,
467
+ variant,
468
+ defaultValue: "Select option",
469
+ children: [
470
+ /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
471
+ /* @__PURE__ */ jsx("option", { value: "1", children: "Single Family Home" }),
472
+ /* @__PURE__ */ jsx("option", { value: "3", children: "Condo" }),
473
+ /* @__PURE__ */ jsx("option", { value: "5", children: "Hi-Rise Condo" }),
474
+ /* @__PURE__ */ jsx("option", { value: "2", children: "Co-op" }),
475
+ /* @__PURE__ */ jsx("option", { value: "4", children: "2-4 Unit" }),
476
+ /* @__PURE__ */ jsx("option", { value: "6", children: "Manufactured" })
477
+ ]
478
+ }
479
+ ) }),
480
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
481
+ Dropdown,
482
+ {
483
+ id: "occupancy",
484
+ ...register("occupancy", {
485
+ required: true,
486
+ setValueAs: (value) => Number(value)
487
+ }),
488
+ label: "Property Usage",
489
+ sizes: "medium",
490
+ required: true,
491
+ error: !!errors.occupancy,
492
+ helperText: errors.occupancy?.message,
493
+ variant,
494
+ defaultValue: "Select option",
495
+ children: [
496
+ /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
497
+ /* @__PURE__ */ jsx("option", { value: "1", children: "Primary Residence" }),
498
+ /* @__PURE__ */ jsx("option", { value: "2", children: "Vacation Home" }),
499
+ /* @__PURE__ */ jsx("option", { value: "3", children: "Investment" })
500
+ ]
501
+ }
502
+ ) }),
503
+ loanPurpose === 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
504
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
505
+ Input,
506
+ {
507
+ id: "salesPrice",
508
+ type: "text",
509
+ ...register("salesPrice", {
510
+ required: true,
511
+ setValueAs: (value) => parseCurrency(value)
512
+ }),
513
+ label: "Purchase Price",
514
+ sizes: "medium",
515
+ required: true,
516
+ error: !!errors.salesPrice,
517
+ helperText: errors.salesPrice?.message,
518
+ variant,
519
+ onBlur: (e) => {
520
+ setIsTypingDownPayment(false);
521
+ const rawValue = e.target.value;
522
+ const parsedValue = parseCurrency(rawValue);
523
+ if (parsedValue === 0) {
524
+ methods.setError("salesPrice", {
525
+ type: "manual",
526
+ message: "Purchase Price is required."
527
+ });
528
+ } else {
529
+ methods.setValue("salesPrice", parsedValue);
530
+ e.target.value = formatCurrency(parsedValue);
531
+ }
532
+ methods.trigger("downPayment");
533
+ },
534
+ onFocus: (e) => {
535
+ const currentValue = e.target.value;
536
+ e.target.value = currentValue.replace(/[$,]/g, "");
537
+ }
538
+ }
539
+ ) }),
540
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
541
+ DownPaymentInput,
542
+ {
543
+ id: "downPayment",
544
+ type: "text",
545
+ ...register("downPayment", {
546
+ required: true,
547
+ setValueAs: (value) => parseCurrency(value)
548
+ }),
549
+ salesPrice: watch("salesPrice"),
550
+ downPaymentPercentage,
551
+ setDownPaymentPercentage,
552
+ label: "Down Payment",
553
+ sizes: "medium",
554
+ error: !!errors.downPayment,
555
+ helperText: errors.downPayment?.message,
556
+ onChange: (e) => {
557
+ const value = parseCurrency(e.target.value);
558
+ methods.setValue("downPayment", value);
559
+ },
560
+ variant,
561
+ isTypingDownPayment,
562
+ setIsTypingDownPayment,
563
+ methods
564
+ }
565
+ ) })
566
+ ] }),
567
+ loanPurpose === 2 && /* @__PURE__ */ jsxs(Fragment, { children: [
568
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
569
+ Input,
570
+ {
571
+ id: "appraisedValue",
572
+ type: "text",
573
+ ...register("appraisedValue", {
574
+ required: true,
575
+ setValueAs: (value) => parseCurrency(value)
576
+ }),
577
+ label: "Home Value",
578
+ sizes: "medium",
579
+ required: true,
580
+ error: !!errors.appraisedValue,
581
+ helperText: errors.appraisedValue?.message,
582
+ variant,
583
+ onBlur: (e) => {
584
+ const rawValue = e.target.value;
585
+ const parsedValue = parseCurrency(rawValue);
586
+ methods.setValue("appraisedValue", parsedValue);
587
+ e.target.value = formatCurrency(parsedValue);
588
+ },
589
+ onFocus: (e) => {
590
+ const currentValue = e.target.value;
591
+ e.target.value = currentValue.replace(/[$,]/g, "");
592
+ }
593
+ }
594
+ ) }),
595
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
596
+ Input,
597
+ {
598
+ id: "mortgageBalance",
599
+ type: "text",
600
+ ...register("mortgageBalance", {
601
+ required: true,
602
+ setValueAs: (value) => parseCurrency(value)
603
+ }),
604
+ label: "Mortgage Balance",
605
+ sizes: "medium",
606
+ required: true,
607
+ error: !!errors.mortgageBalance,
608
+ helperText: errors.mortgageBalance?.message,
609
+ variant,
610
+ onBlur: (e) => {
611
+ const rawValue = e.target.value;
612
+ const parsedValue = parseCurrency(rawValue);
613
+ methods.setValue("mortgageBalance", parsedValue);
614
+ e.target.value = formatCurrency(parsedValue);
615
+ },
616
+ onFocus: (e) => {
617
+ const currentValue = e.target.value;
618
+ e.target.value = currentValue.replace(/[$,]/g, "");
619
+ }
620
+ }
621
+ ) })
622
+ ] }),
623
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
624
+ Dropdown,
625
+ {
626
+ id: "creditScore",
627
+ ...register("creditScore", {
628
+ required: true,
629
+ setValueAs: (value) => value === "" ? void 0 : Number(value)
630
+ }),
631
+ label: "Credit Score",
632
+ sizes: "medium",
633
+ required: true,
634
+ error: !!errors.creditScore,
635
+ helperText: errors.creditScore?.message,
636
+ variant,
637
+ defaultValue: "Select option",
638
+ children: [
639
+ /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
640
+ /* @__PURE__ */ jsx("option", { value: "740", children: "740+" }),
641
+ /* @__PURE__ */ jsx("option", { value: "720", children: "739-720" }),
642
+ /* @__PURE__ */ jsx("option", { value: "700", children: "719-700" }),
643
+ /* @__PURE__ */ jsx("option", { value: "680", children: "699-680" }),
644
+ /* @__PURE__ */ jsx("option", { value: "660", children: "679-660" }),
645
+ /* @__PURE__ */ jsx("option", { value: "640", children: "659-640" }),
646
+ /* @__PURE__ */ jsx("option", { value: "620", children: "639-620" }),
647
+ /* @__PURE__ */ jsx("option", { value: "600", children: "Below 620" })
648
+ ]
649
+ }
650
+ ) }),
651
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
652
+ Input,
653
+ {
654
+ id: "zipCode",
655
+ type: "text",
656
+ inputMode: "numeric",
657
+ ...register("zipCode", {
658
+ required: true,
659
+ pattern: /^\d{5}$/
660
+ }),
661
+ label: "Zip Code",
662
+ sizes: "medium",
663
+ required: true,
664
+ error: !!errors.zipCode,
665
+ helperText: errors.zipCode?.message,
666
+ variant,
667
+ maxLength: 5,
668
+ onInput: (e) => {
669
+ const target = e.target;
670
+ target.value = target.value.replace(/\D/g, "");
671
+ }
672
+ }
673
+ ) }),
674
+ loanPurpose === 2 ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
675
+ Input,
676
+ {
677
+ id: "cashOut",
678
+ type: "text",
679
+ ...register("cashOut", {
680
+ required: true,
681
+ setValueAs: (value) => parseCurrency(value)
682
+ }),
683
+ label: "Cash Out (Optional)",
684
+ sizes: "medium",
685
+ error: !!errors.cashOut,
686
+ helperText: errors.cashOut?.message,
687
+ variant,
688
+ onBlur: (e) => {
689
+ const rawValue = e.target.value;
690
+ const parsedValue = parseCurrency(rawValue);
691
+ methods.setValue("cashOut", parsedValue);
491
692
  e.target.value = formatCurrency(parsedValue);
693
+ },
694
+ onFocus: (e) => {
695
+ const currentValue = e.target.value;
696
+ e.target.value = currentValue.replace(/[$,]/g, "");
492
697
  }
493
- methods.trigger("downPayment");
494
- },
495
- onFocus: (e) => {
496
- const currentValue = e.target.value;
497
- e.target.value = currentValue.replace(/[$,]/g, "");
498
698
  }
499
- }
500
- ) }),
501
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
502
- DownPaymentInput,
503
- {
504
- id: "downPayment",
505
- type: "text",
506
- ...register("downPayment", {
699
+ ) }) }) : null,
700
+ /* @__PURE__ */ jsx("div", { className: clsx(fullRowForm, "text_center"), children: /* @__PURE__ */ jsx(
701
+ "div",
702
+ {
703
+ className: clsx(
704
+ descriptionField({ variant }),
705
+ "text_center"
706
+ ),
707
+ children: "Almost there! Please provide your contact information to view rates and sign up for Rate Watch."
708
+ }
709
+ ) }),
710
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
711
+ Input,
712
+ {
713
+ id: "firstName",
714
+ ...register("firstName", {
715
+ required: "First Name is required"
716
+ }),
717
+ label: "First Name",
718
+ sizes: "medium",
507
719
  required: true,
508
- setValueAs: (value) => parseCurrency(value)
509
- }),
510
- salesPrice: watch("salesPrice"),
511
- downPaymentPercentage,
512
- setDownPaymentPercentage,
513
- label: "Down Payment",
514
- sizes: "medium",
515
- error: !!errors.downPayment,
516
- helperText: errors.downPayment?.message,
517
- onChange: (e) => {
518
- const value = parseCurrency(e.target.value);
519
- methods.setValue("downPayment", value);
520
- },
521
- variant,
522
- isTypingDownPayment,
523
- setIsTypingDownPayment,
524
- methods
525
- }
526
- ) })
527
- ] }),
528
- loanPurpose === 2 && /* @__PURE__ */ jsxs(Fragment, { children: [
529
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
530
- Input,
531
- {
532
- id: "appraisedValue",
533
- type: "text",
534
- ...register("appraisedValue", {
720
+ error: !!errors.firstName,
721
+ helperText: errors.firstName?.message,
722
+ variant
723
+ }
724
+ ) }),
725
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
726
+ Input,
727
+ {
728
+ id: "lastName",
729
+ ...register("lastName", { required: true }),
730
+ label: "Last Name",
731
+ sizes: "medium",
535
732
  required: true,
536
- setValueAs: (value) => parseCurrency(value)
537
- }),
538
- label: "Home Value",
539
- sizes: "medium",
540
- required: true,
541
- error: !!errors.appraisedValue,
542
- helperText: errors.appraisedValue?.message,
543
- variant,
544
- onBlur: (e) => {
545
- const rawValue = e.target.value;
546
- const parsedValue = parseCurrency(rawValue);
547
- methods.setValue("appraisedValue", parsedValue);
548
- e.target.value = formatCurrency(parsedValue);
549
- },
550
- onFocus: (e) => {
551
- const currentValue = e.target.value;
552
- e.target.value = currentValue.replace(/[$,]/g, "");
733
+ error: !!errors.lastName,
734
+ helperText: errors.lastName?.message,
735
+ variant
553
736
  }
554
- }
555
- ) }),
556
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
557
- Input,
558
- {
559
- id: "mortgageBalance",
560
- type: "text",
561
- ...register("mortgageBalance", {
737
+ ) }),
738
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
739
+ Input,
740
+ {
741
+ id: "email",
742
+ ...register("email", {
743
+ required: true,
744
+ validate: {
745
+ isValid: associatedEmail
746
+ }
747
+ }),
748
+ label: "Email",
749
+ sizes: "medium",
562
750
  required: true,
563
- setValueAs: (value) => parseCurrency(value)
564
- }),
565
- label: "Mortgage Balance",
566
- sizes: "medium",
567
- required: true,
568
- error: !!errors.mortgageBalance,
569
- helperText: errors.mortgageBalance?.message,
570
- variant,
571
- onBlur: (e) => {
572
- const rawValue = e.target.value;
573
- const parsedValue = parseCurrency(rawValue);
574
- methods.setValue("mortgageBalance", parsedValue);
575
- e.target.value = formatCurrency(parsedValue);
576
- },
577
- onFocus: (e) => {
578
- const currentValue = e.target.value;
579
- e.target.value = currentValue.replace(/[$,]/g, "");
751
+ error: !!errors.email,
752
+ helperText: errors.email?.message,
753
+ variant
580
754
  }
581
- }
582
- ) })
583
- ] }),
584
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
585
- Dropdown,
586
- {
587
- id: "creditScore",
588
- ...register("creditScore", {
589
- required: true,
590
- setValueAs: (value) => value === "" ? void 0 : Number(value)
591
- }),
592
- label: "Credit Score",
593
- sizes: "medium",
594
- required: true,
595
- error: !!errors.creditScore,
596
- helperText: errors.creditScore?.message,
597
- variant,
598
- defaultValue: "Select option",
599
- children: [
600
- /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
601
- /* @__PURE__ */ jsx("option", { value: "740", children: "740+" }),
602
- /* @__PURE__ */ jsx("option", { value: "720", children: "739-720" }),
603
- /* @__PURE__ */ jsx("option", { value: "700", children: "719-700" }),
604
- /* @__PURE__ */ jsx("option", { value: "680", children: "699-680" }),
605
- /* @__PURE__ */ jsx("option", { value: "660", children: "679-660" }),
606
- /* @__PURE__ */ jsx("option", { value: "640", children: "659-640" }),
607
- /* @__PURE__ */ jsx("option", { value: "620", children: "639-620" }),
608
- /* @__PURE__ */ jsx("option", { value: "600", children: "Below 620" })
609
- ]
610
- }
611
- ) }),
612
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
613
- Input,
614
- {
615
- id: "zipCode",
616
- type: "number",
617
- ...register("zipCode", {
618
- required: true,
619
- setValueAs: (value) => Number(value)
620
- }),
621
- label: "Zip Code",
622
- sizes: "medium",
623
- required: true,
624
- error: !!errors.zipCode,
625
- helperText: errors.zipCode?.message,
626
- variant
627
- }
628
- ) }),
629
- loanPurpose === 2 ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
630
- Input,
631
- {
632
- id: "cashOut",
633
- type: "text",
634
- ...register("cashOut", {
635
- required: true,
636
- setValueAs: (value) => parseCurrency(value)
637
- }),
638
- label: "Cash Out (Optional)",
639
- sizes: "medium",
640
- error: !!errors.cashOut,
641
- helperText: errors.cashOut?.message,
642
- variant,
643
- onBlur: (e) => {
644
- const rawValue = e.target.value;
645
- const parsedValue = parseCurrency(rawValue);
646
- methods.setValue("cashOut", parsedValue);
647
- e.target.value = formatCurrency(parsedValue);
648
- },
649
- onFocus: (e) => {
650
- const currentValue = e.target.value;
651
- e.target.value = currentValue.replace(/[$,]/g, "");
652
- }
653
- }
654
- ) }) }) : null,
655
- /* @__PURE__ */ jsx("div", { className: clsx(fullRowForm, "text_center"), children: /* @__PURE__ */ jsx(
656
- "div",
657
- {
658
- className: clsx(
659
- descriptionField({ variant }),
660
- "text_center"
661
- ),
662
- children: "Almost there! Please provide your contact information to view rates and sign up for Rate Watch."
663
- }
664
- ) }),
665
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
666
- Input,
667
- {
668
- id: "firstName",
669
- ...register("firstName", {
670
- required: "First Name is required"
671
- }),
672
- label: "First Name",
673
- sizes: "medium",
674
- required: true,
675
- error: !!errors.firstName,
676
- helperText: errors.firstName?.message,
677
- variant
678
- }
679
- ) }),
680
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
681
- Input,
682
- {
683
- id: "lastName",
684
- ...register("lastName", { required: true }),
685
- label: "Last Name",
686
- sizes: "medium",
687
- required: true,
688
- error: !!errors.lastName,
689
- helperText: errors.lastName?.message,
690
- variant
691
- }
692
- ) }),
693
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
694
- Input,
695
- {
696
- id: "email",
697
- ...register("email", {
698
- required: true,
699
- validate: {
700
- isValid: associatedEmail
755
+ ) }),
756
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
757
+ InputPhone,
758
+ {
759
+ id: "phone",
760
+ ...register("phone", { required: true, maxLength: 12 }),
761
+ label: "Phone Number",
762
+ sizes: "medium",
763
+ required: true,
764
+ error: !!errors.phone,
765
+ helperText: errors.phone?.message,
766
+ variant
701
767
  }
702
- }),
703
- label: "Email",
704
- sizes: "medium",
705
- required: true,
706
- error: !!errors.email,
707
- helperText: errors.email?.message,
708
- variant
709
- }
710
- ) }),
711
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
712
- InputPhone,
713
- {
714
- id: "phone",
715
- ...register("phone", { required: true, maxLength: 12 }),
716
- label: "Phone Number",
717
- sizes: "medium",
718
- required: true,
719
- error: !!errors.phone,
720
- helperText: errors.phone?.message,
721
- variant
722
- }
723
- ) })
724
- ] }),
725
- children,
726
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
727
- /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
728
- LoadingIndicator,
729
- {
730
- style: { marginInline: "auto" },
731
- variant
732
- }
733
- ) : /* @__PURE__ */ jsxs("div", { className: formBtns, children: [
734
- /* @__PURE__ */ jsx(
735
- "button",
736
- {
737
- type: "submit",
738
- disabled: !isValid,
739
- className: button({
740
- color: "secondary",
741
- size: "large",
742
- rounded: "medium",
743
- disabled: !isValid
744
- }),
745
- children: "Get My Rate"
746
- }
747
- ),
748
- /* @__PURE__ */ jsxs("span", { className: `sc__btn ${chevron_wrapper}`, children: [
749
- /* @__PURE__ */ jsx(
750
- "a",
768
+ ) }),
769
+ /* @__PURE__ */ jsx(HoneyPot, { variant, register })
770
+ ] }),
771
+ children,
772
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
773
+ /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
774
+ LoadingIndicator,
751
775
  {
752
- id,
753
- className: `${chevron({ variant })} ${!isValid ? na_cursor : ""}`,
754
- onClick: isValid ? handleSubmit(async (data) => {
755
- await onSubmit(data);
756
- toggleModal();
757
- setHideModal(false);
758
- }) : (e) => {
759
- e.preventDefault();
760
- },
761
- children: "Sign Up For Ratewatch"
776
+ style: { marginInline: "auto" },
777
+ variant
762
778
  }
763
- ),
764
- /* @__PURE__ */ jsx(SvgArrowIcon, { className: "arrow", variant: "tertiary" })
765
- ] })
766
- ] }) })
767
- ] })
779
+ ) : /* @__PURE__ */ jsxs("div", { className: formBtns, children: [
780
+ /* @__PURE__ */ jsx(
781
+ "button",
782
+ {
783
+ type: "submit",
784
+ disabled: !isValid,
785
+ className: button({
786
+ color: "secondary",
787
+ size: "large",
788
+ rounded: "medium",
789
+ disabled: !isValid
790
+ }),
791
+ children: "Get My Rate"
792
+ }
793
+ ),
794
+ /* @__PURE__ */ jsxs("span", { className: `sc__btn ${chevron_wrapper}`, children: [
795
+ /* @__PURE__ */ jsx(
796
+ "a",
797
+ {
798
+ id,
799
+ className: `${chevron({ variant })} ${!isValid ? na_cursor : ""}`,
800
+ onClick: isValid ? handleSubmit(async (data) => {
801
+ await onSubmit(data);
802
+ toggleModal();
803
+ setHideModal(false);
804
+ }) : (e) => {
805
+ e.preventDefault();
806
+ },
807
+ children: "Sign Up For Ratewatch"
808
+ }
809
+ ),
810
+ /* @__PURE__ */ jsx(SvgArrowIcon, { className: "arrow", variant: "tertiary" })
811
+ ] })
812
+ ] }) })
813
+ ]
814
+ }
815
+ )
768
816
  ] }) })
769
817
  },
770
818
  id