@axos-web-dev/shared-components 1.0.99-dev.2 → 1.0.99-dev.21

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