@axos-web-dev/shared-components 1.0.7 → 1.0.9-9.dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (344) hide show
  1. package/dist/ATMLocator/ATMLocator.js +42 -32
  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 +1 -1
  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/Article/Article.js +3 -13
  10. package/dist/ArticlesSet/ArticlesSet.css.d.ts +16 -16
  11. package/dist/ArticlesSet/ArticlesSet.css.js +1 -1
  12. package/dist/Auth/ErrorAlert.css.d.ts +4 -0
  13. package/dist/Auth/ErrorAlert.css.js +11 -0
  14. package/dist/Auth/ErrorAlert.d.ts +14 -0
  15. package/dist/Auth/ErrorAlert.js +184 -0
  16. package/dist/Auth/Logout.d.ts +3 -0
  17. package/dist/Auth/Logout.js +29 -0
  18. package/dist/Auth/SignIn.css.d.ts +6 -0
  19. package/dist/Auth/SignIn.css.js +18 -0
  20. package/dist/Auth/SignInPassword.d.ts +15 -0
  21. package/dist/Auth/SignInPassword.js +118 -0
  22. package/dist/Auth/index.d.ts +5 -0
  23. package/dist/Auth/index.js +20 -0
  24. package/dist/Avatar/Avatar.module.js +1 -1
  25. package/dist/AwardsBanner/AwardsBanner.css.js +1 -1
  26. package/dist/AwardsItem/AwardsItem.css.js +1 -1
  27. package/dist/Blockquote/Blockquote.module.js +1 -1
  28. package/dist/BulletItem/BulletItem.css.js +1 -1
  29. package/dist/BulletItem/BulletItem.js +1 -1
  30. package/dist/Button/Button.css.d.ts +31 -18
  31. package/dist/Button/Button.css.js +2 -2
  32. package/dist/Button/Button.js +14 -4
  33. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +12 -12
  34. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +1 -1
  35. package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +14 -14
  36. package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +1 -1
  37. package/dist/Calculators/ApyCalculator/index.js +20 -12
  38. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +8 -8
  39. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +1 -1
  40. package/dist/Calculators/AxosOneCalculator/index.js +19 -11
  41. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +22 -22
  42. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +1 -1
  43. package/dist/Calculators/BalanceAPYCalculator/index.js +1 -1
  44. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.d.ts +101 -0
  45. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +56 -0
  46. package/dist/Calculators/BuyDownCalculator/index.d.ts +25 -0
  47. package/dist/Calculators/BuyDownCalculator/index.js +855 -0
  48. package/dist/Calculators/Calculator.js +29 -10
  49. package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.js +1 -1
  50. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
  51. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +1 -1
  52. package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
  53. package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js +1 -1
  54. package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.d.ts +8 -8
  55. package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js +1 -1
  56. package/dist/Calculators/SummitApyCalculator/index.js +1 -1
  57. package/dist/Calculators/calculator.css.d.ts +12 -12
  58. package/dist/Calculators/calculator.css.js +1 -1
  59. package/dist/Calculators/index.d.ts +1 -0
  60. package/dist/Calculators/index.js +2 -0
  61. package/dist/CallToActionBar/CallToActionBar.css.js +1 -1
  62. package/dist/CallToActionBar/index.js +3 -1
  63. package/dist/Carousel/Carousel.css.d.ts +20 -20
  64. package/dist/Carousel/Carousel.css.js +1 -1
  65. package/dist/Carousel/index.js +23 -13
  66. package/dist/Chevron/Chevron.css.d.ts +6 -6
  67. package/dist/Chevron/Chevron.css.js +1 -1
  68. package/dist/Chevron/index.js +14 -4
  69. package/dist/CollectInformationAlert/CollectInformationAlert.css.js +1 -1
  70. package/dist/CollectInformationAlert/index.js +1 -1
  71. package/dist/Comparison/Comparison.css.d.ts +11 -10
  72. package/dist/Comparison/Comparison.css.js +4 -2
  73. package/dist/Comparison/Comparison.js +23 -13
  74. package/dist/Comparison/index.js +2 -1
  75. package/dist/ContentBanner/ContentBanner.css.d.ts +12 -12
  76. package/dist/ContentBanner/ContentBanner.css.js +1 -1
  77. package/dist/DownloadTile/DownloadTile.css.js +1 -1
  78. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +31 -31
  79. package/dist/ExecutiveBio/ExecutiveBio.css.js +1 -1
  80. package/dist/ExecutiveBio/ExecutiveBio.js +16 -22
  81. package/dist/FaqAccordion/FaqAccordion.css.js +1 -1
  82. package/dist/FaqAccordion/index.js +16 -6
  83. package/dist/FdicCallout/FdicCallout.module.js +1 -1
  84. package/dist/FooterDisclosure/FooterDisclosure.css.js +1 -1
  85. package/dist/FooterDisclosure/LVF/LaVictorieFooter.css.js +1 -1
  86. package/dist/FooterDisclosure/LVF/LaVictorieFooter.js +1 -1
  87. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +1 -1
  88. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +14 -4
  89. package/dist/Forms/ApplicationStart.js +22 -5
  90. package/dist/Forms/ApplyNow.js +14 -4
  91. package/dist/Forms/ClearingForm.js +20 -3
  92. package/dist/Forms/CommercialDeposits.js +20 -3
  93. package/dist/Forms/CommercialLending.js +21 -4
  94. package/dist/Forms/CommercialPremiumFinance.d.ts +10 -0
  95. package/dist/Forms/CommercialPremiumFinance.js +212 -0
  96. package/dist/Forms/ContactCompany.js +21 -4
  97. package/dist/Forms/ContactCompanyTitle.js +21 -4
  98. package/dist/Forms/ContactUs.d.ts +1 -1
  99. package/dist/Forms/ContactUs.js +108 -80
  100. package/dist/Forms/ContactUsAAS.js +21 -6
  101. package/dist/Forms/ContactUsBusiness.d.ts +2 -2
  102. package/dist/Forms/ContactUsBusiness.js +45 -19
  103. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +9 -0
  104. package/dist/Forms/ContactUsBusinessNameEmail.js +282 -0
  105. package/dist/Forms/ContactUsLVF.js +21 -4
  106. package/dist/Forms/ContactUsNMLSId.js +35 -9
  107. package/dist/Forms/CpraRequest.d.ts +1 -1
  108. package/dist/Forms/CpraRequest.js +76 -64
  109. package/dist/Forms/CraPublicFile.d.ts +5 -5
  110. package/dist/Forms/CraPublicFile.js +69 -45
  111. package/dist/Forms/DealerServices.js +21 -5
  112. package/dist/Forms/EmailOnly.js +45 -28
  113. package/dist/Forms/EmailUs.js +13 -3
  114. package/dist/Forms/FormEnums.d.ts +21 -0
  115. package/dist/Forms/FormEnums.js +308 -0
  116. package/dist/Forms/FormProps.d.ts +3 -0
  117. package/dist/Forms/Forms.css.d.ts +42 -42
  118. package/dist/Forms/Forms.css.js +1 -1
  119. package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
  120. package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
  121. package/dist/Forms/HoneyPot/index.d.ts +24 -0
  122. package/dist/Forms/HoneyPot/index.js +71 -0
  123. package/dist/Forms/MortgageRate/MortgageRateForm.js +17 -7
  124. package/dist/Forms/MortgageRate/MortgageRateWatch.js +16 -6
  125. package/dist/Forms/QuickPricer/QuickPricerForm.js +20 -21
  126. package/dist/Forms/QuickPricer/QuickPricerResults.css.js +1 -1
  127. package/dist/Forms/QuickPricer/UserInformation.css.js +1 -1
  128. package/dist/Forms/ScheduleCall.js +21 -4
  129. package/dist/Forms/ScheduleCallPremier.js +21 -4
  130. package/dist/Forms/SuccesForm.js +31 -21
  131. package/dist/Forms/VendorQuestionnaire.js +12 -2
  132. package/dist/Forms/WcplSurvey.js +21 -4
  133. package/dist/Forms/index.d.ts +3 -0
  134. package/dist/Forms/index.js +8 -0
  135. package/dist/HelpArticle/HelpArticle.css.d.ts +4 -0
  136. package/dist/HelpArticle/HelpArticle.css.js +12 -0
  137. package/dist/HelpArticle/index.d.ts +1 -0
  138. package/dist/HelpArticle/index.js +7 -0
  139. package/dist/HeroBanner/HeroBanner.css.d.ts +19 -17
  140. package/dist/HeroBanner/HeroBanner.css.js +10 -6
  141. package/dist/HeroBanner/HeroBanner.d.ts +1 -1
  142. package/dist/HeroBanner/HeroBanner.interface.d.ts +3 -0
  143. package/dist/HeroBanner/HeroBanner.js +47 -1
  144. package/dist/HeroBanner/LargeBanner.css.d.ts +20 -20
  145. package/dist/HeroBanner/LargeBanner.css.js +1 -1
  146. package/dist/HeroBanner/SelectionBanner.css.d.ts +8 -8
  147. package/dist/HeroBanner/SelectionBanner.css.js +1 -1
  148. package/dist/HeroBanner/index.js +3 -1
  149. package/dist/Hyperlink/Hyperlink.css.js +1 -1
  150. package/dist/Hyperlink/index.js +17 -7
  151. package/dist/IconBillboard/IconBillboard.css.d.ts +26 -25
  152. package/dist/IconBillboard/IconBillboard.css.js +6 -4
  153. package/dist/IconBillboard/IconBillboard.d.ts +1 -2
  154. package/dist/IconBillboard/IconBillboard.interface.d.ts +1 -0
  155. package/dist/IconBillboard/IconBillboard.js +46 -80
  156. package/dist/IconBillboard/IconBillboardSet.js +1 -1
  157. package/dist/IconBillboard/index.js +3 -3
  158. package/dist/IconBillboard/sections/CallToActionSection.d.ts +12 -0
  159. package/dist/IconBillboard/sections/CallToActionSection.js +101 -0
  160. package/dist/IconBillboard/sections/HeaderSection.d.ts +11 -0
  161. package/dist/IconBillboard/sections/HeaderSection.js +23 -0
  162. package/dist/IconBillboard/sections/IconSection.d.ts +7 -0
  163. package/dist/IconBillboard/sections/IconSection.js +18 -0
  164. package/dist/IconBillboard/sections/ItemsSection.d.ts +11 -0
  165. package/dist/IconBillboard/sections/ItemsSection.js +11 -0
  166. package/dist/IconBillboard/sections/LayoutSection.d.ts +8 -0
  167. package/dist/IconBillboard/sections/LayoutSection.js +6 -0
  168. package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +9 -0
  169. package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.js +85 -0
  170. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.d.ts +5 -0
  171. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +90 -0
  172. package/dist/ImageBillboard/ImageBillboard.css.d.ts +36 -20
  173. package/dist/ImageBillboard/ImageBillboard.css.js +51 -19
  174. package/dist/ImageBillboard/ImageBillboard.interface.d.ts +20 -2
  175. package/dist/ImageBillboard/ImageBillboard.js +1 -1
  176. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  177. package/dist/ImageBillboard/ImageBillboardSet.js +104 -28
  178. package/dist/ImageBillboard/index.js +17 -1
  179. package/dist/ImageLink/ImageLink.css.js +1 -1
  180. package/dist/ImageLink/ImageLink.d.ts +2 -2
  181. package/dist/ImageLink/ImageLink.js +17 -13
  182. package/dist/ImageLink/ImageLinkSet.js +20 -10
  183. package/dist/ImageLink/index.js +17 -7
  184. package/dist/Input/Checkbox.css.js +1 -1
  185. package/dist/Input/Checkbox.js +2 -1
  186. package/dist/Input/Dropdown.css.js +1 -1
  187. package/dist/Input/Input.css.d.ts +16 -16
  188. package/dist/Input/Input.css.js +1 -1
  189. package/dist/Input/Input.js +4 -1
  190. package/dist/Input/PercentageInput.d.ts +3 -0
  191. package/dist/Input/PercentageInput.js +32 -0
  192. package/dist/Input/RadioButton.css.js +1 -1
  193. package/dist/Input/RadioButton.js +12 -3
  194. package/dist/Inputs/Input.css.d.ts +14 -14
  195. package/dist/Inputs/Input.css.js +1 -1
  196. package/dist/Insight/Featured/CategorySelector.css.js +1 -1
  197. package/dist/Insight/Featured/CategorySelector.js +28 -20
  198. package/dist/Insight/Featured/Featured.css.js +1 -1
  199. package/dist/Insight/Featured/Featured.js +75 -58
  200. package/dist/Insight/Featured/Header.css.js +1 -1
  201. package/dist/Insight/Featured/Header.js +22 -12
  202. package/dist/Insight/Insight.css.js +1 -1
  203. package/dist/Interstitial/Interstitial-variants.css.d.ts +2 -2
  204. package/dist/Interstitial/Interstitial-variants.css.js +1 -1
  205. package/dist/Interstitial/Interstitial.module.js +1 -1
  206. package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +3 -3
  207. package/dist/LandingPageHeader/LandingPageHeader.css.js +1 -1
  208. package/dist/LandingPageHeader/LandingPageHeader.js +1 -1
  209. package/dist/LoadingIndicator/LoadingIndicator.css.js +1 -1
  210. package/dist/Modal/Modal.css.js +1 -1
  211. package/dist/Modal/Modal.js +15 -5
  212. package/dist/NavigationMenu/AxosALTS/NavBar.css.js +1 -1
  213. package/dist/NavigationMenu/AxosALTS/NavBar.module.js +1 -1
  214. package/dist/NavigationMenu/AxosALTS/NavData.js +14 -4
  215. package/dist/NavigationMenu/AxosALTS/index.js +14 -4
  216. package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +1 -1
  217. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +1 -1
  218. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +3 -10
  219. package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +1 -1
  220. package/dist/NavigationMenu/AxosAdvisor/index.js +3 -11
  221. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +1 -1
  222. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +1 -1
  223. package/dist/NavigationMenu/AxosAdvisorServices/NavData.js +0 -5
  224. package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +1 -1
  225. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +2 -0
  226. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +345 -0
  227. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +53 -0
  228. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +272 -0
  229. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +664 -0
  230. package/dist/NavigationMenu/AxosBank/NavBar.css.js +1 -1
  231. package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -81
  232. package/dist/NavigationMenu/AxosBank/NavData.js +14 -4
  233. package/dist/NavigationMenu/AxosBank/SubNavBar.js +445 -125
  234. package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +1 -1
  235. package/dist/NavigationMenu/AxosBank/index.d.ts +2 -1
  236. package/dist/NavigationMenu/AxosBank/index.js +104 -533
  237. package/dist/NavigationMenu/AxosClearing/NavBar.css.js +1 -1
  238. package/dist/NavigationMenu/AxosClearing/NavBar.module.js +1 -1
  239. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +1 -1
  240. package/dist/NavigationMenu/LaVictoire/NavBar.css.js +1 -1
  241. package/dist/NavigationMenu/LaVictoire/NavBar.module.js +1 -1
  242. package/dist/NavigationMenu/LaVictoire/NavData.js +14 -4
  243. package/dist/NavigationMenu/LaVictoire/index.js +40 -20
  244. package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
  245. package/dist/NavigationMenu/NavDataJson.js +309 -0
  246. package/dist/NavigationMenu/Navbar.d.ts +5 -0
  247. package/dist/NavigationMenu/Navbar.js +195 -0
  248. package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
  249. package/dist/NavigationMenu/SignInNavButton.js +363 -0
  250. package/dist/PageNavItem/PageNavItem.css.d.ts +2 -2
  251. package/dist/PageNavItem/PageNavItem.css.js +1 -1
  252. package/dist/PageNavSet/PageNavigationSet.css.js +1 -1
  253. package/dist/Pagination/Pagination.css.js +1 -1
  254. package/dist/Pagination/Pagination.js +1 -1
  255. package/dist/SecondaryFooter/SecondaryFooter.css.js +1 -1
  256. package/dist/SetContainer/SetContainer.css.d.ts +17 -18
  257. package/dist/SetContainer/SetContainer.css.js +3 -5
  258. package/dist/SetContainer/SetContainer.d.ts +2 -1
  259. package/dist/SetContainer/SetContainer.js +27 -13
  260. package/dist/SetContainer/index.js +1 -2
  261. package/dist/SocialMediaBar/SocialMediaBar.css.js +1 -1
  262. package/dist/SocialMediaBar/iconsRepository.js +14 -4
  263. package/dist/StepItem/StepItem.css.d.ts +18 -18
  264. package/dist/StepItem/StepItem.css.js +1 -1
  265. package/dist/StepItemSet/StepItemSet.css.d.ts +14 -14
  266. package/dist/StepItemSet/StepItemSet.css.js +1 -1
  267. package/dist/StepItemSet/StepItemSet.js +2 -6
  268. package/dist/Tab/Tab.css.d.ts +12 -12
  269. package/dist/Tab/Tab.css.js +1 -1
  270. package/dist/Table/Table.css.d.ts +25 -25
  271. package/dist/Table/Table.css.js +1 -1
  272. package/dist/Table/Table.d.ts +3 -3
  273. package/dist/Table/Table.js +1 -1
  274. package/dist/TextBlock/TextBlock.css.js +1 -1
  275. package/dist/Topic/Topic.css.d.ts +4 -0
  276. package/dist/Topic/Topic.css.js +12 -0
  277. package/dist/Topic/Topic.d.ts +19 -0
  278. package/dist/Topic/Topic.js +24 -0
  279. package/dist/Topic/index.d.ts +2 -0
  280. package/dist/Topic/index.js +12 -0
  281. package/dist/TopicalNavItem/TopicalNavItem.css.js +1 -1
  282. package/dist/TopicalNavSet/TopicalNavSet.css.js +1 -1
  283. package/dist/Typography/Typography.css.js +1 -1
  284. package/dist/VideoTile/VideoTile.css.js +1 -1
  285. package/dist/VideoTile/VideoTile.interface.d.ts +4 -3
  286. package/dist/VideoTile/VideoTile.js +183 -28
  287. package/dist/VideoWrapper/VideoWrapper.css.js +1 -1
  288. package/dist/VideoWrapper/index.js +15 -5
  289. package/dist/WalnutIframe/index.d.ts +6 -0
  290. package/dist/WalnutIframe/index.js +21 -0
  291. package/dist/WalnutIframe/wrapper.module.js +14 -0
  292. package/dist/assets/Auth/ErrorAlert.css +37 -0
  293. package/dist/assets/Auth/SignIn.css +86 -0
  294. package/dist/assets/Button/Button.css +31 -16
  295. package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +5 -0
  296. package/dist/assets/Calculators/BuyDownCalculator/BuyDownCalculator.css +197 -0
  297. package/dist/assets/Calculators/SummitApyCalculator/BalanceAPYCalculator.css +8 -0
  298. package/dist/assets/CallToActionBar/CallToActionBar.css +4 -0
  299. package/dist/assets/Comparison/Comparison.css +9 -2
  300. package/dist/assets/Forms/HoneyPot/HoneyPot.css +4 -0
  301. package/dist/assets/HelpArticle/HelpArticle.css +70 -0
  302. package/dist/assets/HeroBanner/HeroBanner.css +38 -26
  303. package/dist/assets/HeroBanner/LargeBanner.css +3 -0
  304. package/dist/assets/IconBillboard/IconBillboard.css +43 -36
  305. package/dist/assets/ImageBillboard/ImageBillboard.css +336 -36
  306. package/dist/assets/Insight/Insight.css +12 -0
  307. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -0
  308. package/dist/assets/NavigationMenu/AxosBank/NavBar.css +6 -0
  309. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +114 -301
  310. package/dist/assets/SetContainer/SetContainer.css +44 -22
  311. package/dist/assets/Topic/Topic.css +54 -0
  312. package/dist/assets/WalnutIframe/wrapper.css.css +49 -0
  313. package/dist/assets/globals.css +13 -30
  314. package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -0
  315. package/dist/globals.css.js +1 -1
  316. package/dist/icons/ArrowIcon/ArrowIcon.css.d.ts +3 -3
  317. package/dist/icons/ArrowIcon/ArrowIcon.css.js +1 -1
  318. package/dist/icons/CheckIcon/CheckIcon.css.d.ts +2 -2
  319. package/dist/icons/CheckIcon/CheckIcon.css.js +1 -1
  320. package/dist/icons/DownloadIcon/DownloadIcon.css.js +1 -1
  321. package/dist/icons/FollowIcon/FollowIcon.css.js +1 -1
  322. package/dist/icons/Logos/AXB.d.ts +8 -0
  323. package/dist/icons/Logos/AXB.js +74 -0
  324. package/dist/icons/Star/Star.css.js +1 -1
  325. package/dist/index.css.js +1 -1
  326. package/dist/main.d.ts +5 -0
  327. package/dist/main.js +69 -8
  328. package/dist/themes/axos.css.d.ts +38 -38
  329. package/dist/themes/axos.css.js +1 -1
  330. package/dist/themes/premier.css.js +1 -1
  331. package/dist/themes/victorie.css.js +1 -1
  332. package/dist/utils/allowedAxosDomains.js +19 -3
  333. package/dist/utils/appendQueryParams.js +3 -6
  334. package/dist/utils/{lazyImage/lazyImage.d.ts → optimizeImage/OptimizeImage.d.ts} +3 -2
  335. package/dist/utils/optimizeImage/OptimizeImage.js +46 -0
  336. package/dist/utils/optimizeImage/index.d.ts +1 -0
  337. package/dist/utils/optimizeImage/index.js +4 -0
  338. package/dist/utils/optimizeImage/optimizeImage.module.js +14 -0
  339. package/package.json +133 -130
  340. package/dist/utils/lazyImage/imageObserver.d.ts +0 -9
  341. package/dist/utils/lazyImage/imageObserver.js +0 -29
  342. package/dist/utils/lazyImage/index.d.ts +0 -2
  343. package/dist/utils/lazyImage/index.js +0 -7
  344. package/dist/utils/lazyImage/lazyImage.js +0 -26
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { zodResolver } from "@hookform/resolvers/zod";
4
4
  import { Button } from "../Button/Button.js";
5
5
  import "../Button/Button.css.js";
@@ -16,22 +16,24 @@ import { InputPhone } from "../Input/InputPhone.js";
16
16
  import "../Input/InputTextArea.js";
17
17
  import "../Input/DownPaymentInput.js";
18
18
  import { RadioButtonSet, RadioButton } from "../Input/RadioButton.js";
19
+ import CheckboxGroup from "../Input/CheckboxGroup.js";
19
20
  import "../icons/ArrowIcon/ArrowIcon.css.js";
20
21
  import SvgAxosX from "../icons/AxosX/index.js";
21
22
  import SvgComponent from "../icons/AxosX/Blue.js";
22
23
  import "../icons/CheckIcon/CheckIcon.css.js";
23
- /* empty css */
24
+ 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 */
24
25
  /* empty css */
25
26
  /* empty css */
26
27
  /* empty css */
27
28
  /* empty css */
29
+ import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
30
+ import { associatedEmail } from "../utils/EverestValidity.js";
28
31
  import { getVariant } from "../utils/getVariant.js";
29
32
  import clsx from "clsx";
30
33
  import { useForm, FormProvider } from "react-hook-form";
31
34
  import * as z from "zod";
32
35
  import { iconForm, headerContainer, form, descriptionField, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
33
- import CheckboxGroup from "../Input/CheckboxGroup.js";
34
- import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
36
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
35
37
  const CpraRequest = ({
36
38
  icon = false,
37
39
  children,
@@ -49,21 +51,11 @@ const CpraRequest = ({
49
51
  California_Resident: z.string(),
50
52
  Categories_of_personal_info: z.string(),
51
53
  Pieces_of_personal_information: z.string(),
52
- Request_Correction_of_Information: z.string().optional(),
53
- Corrected_Information: z.string().optional().refine(
54
- (val) => {
55
- if (requestCorrectionOfInfo === "Yes" && !val) {
56
- return false;
57
- }
58
- return true;
59
- },
60
- {
61
- message: "Corrected Information is required."
62
- }
63
- ),
54
+ Request_Correction_of_Information: z.string(),
64
55
  Delete_personal_info: z.string(),
65
56
  Opt_out_of_sale_of_info: z.string(),
66
57
  Current_client: z.string(),
58
+ Former_client: z.string(),
67
59
  Currently_Employed_by_Axos_Financial: z.string(),
68
60
  Previously_Employed_by_Axos_Financial: z.string(),
69
61
  Ever_Applied_for_Employment_with_Axos_Financial: z.string(),
@@ -81,7 +73,7 @@ const CpraRequest = ({
81
73
  message: "Last Name is required."
82
74
  }).trim().min(1, { message: "Last Name is required." }),
83
75
  email: z.string().email({ message: "Email is required." }),
84
- Telephone: z.string().regex(/[\d-]{10}/, { message: "Phone is required." }).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
76
+ Telephone: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, "Invalid phone number.").min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
85
77
  const removeDashes = val.replace(/-/gi, "");
86
78
  if (removeDashes.length !== 10) {
87
79
  ctx.addIssue({
@@ -90,11 +82,26 @@ const CpraRequest = ({
90
82
  });
91
83
  return z.NEVER;
92
84
  }
85
+ if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
86
+ ctx.addIssue({
87
+ code: z.ZodIssueCode.custom,
88
+ message: "Invalid phone number."
89
+ });
90
+ return z.NEVER;
91
+ }
93
92
  return removeDashes;
94
93
  })
95
94
  });
95
+ const gen_schema = schema.merge(honeyPotSchema).superRefine((data, ctx) => {
96
+ if (!isValidHoneyPot(data)) {
97
+ ctx.addIssue({
98
+ code: z.ZodIssueCode.custom,
99
+ message: "fields are not valid."
100
+ });
101
+ }
102
+ });
96
103
  const methods = useForm({
97
- resolver: zodResolver(schema, {
104
+ resolver: zodResolver(gen_schema, {
98
105
  async: true
99
106
  }),
100
107
  mode: "all"
@@ -103,20 +110,12 @@ const CpraRequest = ({
103
110
  handleSubmit,
104
111
  register,
105
112
  setValue,
106
- watch,
107
113
  formState: { errors, isValid, isSubmitting }
108
114
  } = methods;
109
115
  const submitForm = async (data) => {
110
116
  await onSubmit(data);
111
117
  };
112
118
  const variant = getVariant(fullVariant);
113
- const options = [
114
- { label: "Address", value: "Address" },
115
- { label: "Name", value: "Name" },
116
- { label: "Phone Number", value: "Phone Number" },
117
- { label: "Date of Birth", value: "Date of Birth" },
118
- { label: "Email", value: "Email" }
119
- ];
120
119
  const options2 = [
121
120
  { label: "Axos Bank", value: "Axos Bank" },
122
121
  {
@@ -126,15 +125,7 @@ const CpraRequest = ({
126
125
  { label: "UFB Direct", value: "UFB Direct" },
127
126
  { label: "Other", value: "Other" }
128
127
  ];
129
- const [selectedValues, setSelectedValues] = useState([]);
130
128
  const [selectedValues2, setSelectedValues2] = useState([]);
131
- const requestCorrectionOfInfo = watch("Request_Correction_of_Information");
132
- const handleSelectedValues = (updatedValues) => {
133
- if (updatedValues) {
134
- setSelectedValues(updatedValues);
135
- setValue("Corrected_Information", updatedValues.join(";"));
136
- }
137
- };
138
129
  const handleSelectedValues2 = (updatedValues) => {
139
130
  if (updatedValues) {
140
131
  setSelectedValues2(updatedValues);
@@ -252,12 +243,12 @@ const CpraRequest = ({
252
243
  ]
253
244
  }
254
245
  ) }),
255
- /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: "By selecting specific pieces of personal information Axos Financial has collected about you, you are required to sign a declaration, under penalty of perjury, that you are the individual whose information is provided above. We will provide you with the form and instructions at your preferred contact method. If you do not return the completed form, we will not be able to provide you with the specific pieces of personal information Axos Financial has collected about you." }) }),
246
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: "By selecting specific pieces of personal information Axos Financial has collected about you, you are required to sign a declaration, under penalty of perjury, that you are the individual whose information is provided above." }) }),
256
247
  /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
257
248
  RadioButtonSet,
258
249
  {
259
250
  id: "Request_Correction_of_Information",
260
- label: "Request correction of information?",
251
+ label: "* Request correction of information?",
261
252
  sizes: "medium",
262
253
  required: true,
263
254
  error: !!errors.Request_Correction_of_Information,
@@ -285,18 +276,6 @@ const CpraRequest = ({
285
276
  ]
286
277
  }
287
278
  ) }),
288
- requestCorrectionOfInfo === "Yes" && /* @__PURE__ */ jsxs(Fragment, { children: [
289
- /* @__PURE__ */ jsx("div", { className: `${descriptionField({ variant })}`, children: "Please select all that apply." }),
290
- /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
291
- CheckboxGroup,
292
- {
293
- options,
294
- selectedValues,
295
- error: !!errors.Corrected_Information,
296
- onChange: handleSelectedValues
297
- }
298
- ) })
299
- ] }),
300
279
  /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs("div", { className: `${form} ${descriptionField({ variant })}`, children: [
301
280
  /* @__PURE__ */ jsx("u", { children: "Right to Delete:" }),
302
281
  " You have the right to submit a verifiable request asking that Axos Financial delete certain personal information Axos Financial has collected from you, subject to certain exceptions as permitted by law."
@@ -374,7 +353,7 @@ const CpraRequest = ({
374
353
  RadioButtonSet,
375
354
  {
376
355
  id: "Current_client",
377
- label: "* I am a current or former client or customer.",
356
+ label: "* I am a current client or customer.",
378
357
  sizes: "medium",
379
358
  required: true,
380
359
  error: !!errors.Current_client,
@@ -402,6 +381,38 @@ const CpraRequest = ({
402
381
  ]
403
382
  }
404
383
  ) }),
384
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
385
+ RadioButtonSet,
386
+ {
387
+ id: "Former_client",
388
+ label: "* I am a former client or customer.",
389
+ sizes: "medium",
390
+ required: true,
391
+ error: !!errors.Former_client,
392
+ helperText: errors.Former_client?.message,
393
+ variant,
394
+ children: [
395
+ /* @__PURE__ */ jsx(
396
+ RadioButton,
397
+ {
398
+ ...register("Former_client", {}),
399
+ value: "Yes",
400
+ radioText: "Yes",
401
+ groupName: "Former_client"
402
+ }
403
+ ),
404
+ /* @__PURE__ */ jsx(
405
+ RadioButton,
406
+ {
407
+ ...register("Former_client", {}),
408
+ value: "No",
409
+ radioText: "No",
410
+ groupName: "Former_client"
411
+ }
412
+ )
413
+ ]
414
+ }
415
+ ) }),
405
416
  /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
406
417
  RadioButtonSet,
407
418
  {
@@ -506,7 +517,7 @@ const CpraRequest = ({
506
517
  ) }),
507
518
  /* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
508
519
  /* @__PURE__ */ jsx("h2", { className: `header_2 ${descriptionField({ variant })}`, children: "Step 3: Where have you interacted with Axos Financial?" }),
509
- /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: "Please select all that apply." })
520
+ /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: "* Please select all that apply." })
510
521
  ] }),
511
522
  /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
512
523
  CheckboxGroup,
@@ -523,7 +534,7 @@ const CpraRequest = ({
523
534
  {
524
535
  id: "First_Name",
525
536
  ...register("First_Name", { required: true }),
526
- label: "First Name",
537
+ label: "* First Name",
527
538
  sizes: "medium",
528
539
  required: true,
529
540
  error: !!errors.First_Name,
@@ -536,7 +547,7 @@ const CpraRequest = ({
536
547
  {
537
548
  id: "Last_Name",
538
549
  ...register("Last_Name", { required: true }),
539
- label: "Last Name",
550
+ label: "* Last Name",
540
551
  sizes: "medium",
541
552
  required: true,
542
553
  error: !!errors.Last_Name,
@@ -552,7 +563,7 @@ const CpraRequest = ({
552
563
  required: true
553
564
  }),
554
565
  type: "date",
555
- label: "Date of Birth",
566
+ label: "* Date of Birth",
556
567
  sizes: "medium",
557
568
  placeholder: "Date of Birth",
558
569
  required: true,
@@ -566,12 +577,12 @@ const CpraRequest = ({
566
577
  {
567
578
  id: "email",
568
579
  ...register("email", {
569
- required: true
570
- // validate: {
571
- // isValid: associatedEmail,
572
- // },
580
+ required: true,
581
+ validate: {
582
+ isValid: associatedEmail
583
+ }
573
584
  }),
574
- label: "Email",
585
+ label: "* Email",
575
586
  sizes: "medium",
576
587
  required: true,
577
588
  error: !!errors.email,
@@ -584,7 +595,7 @@ const CpraRequest = ({
584
595
  {
585
596
  id: "Telephone",
586
597
  ...register("Telephone", { required: true, maxLength: 12 }),
587
- label: "Preferred Phone",
598
+ label: "* Preferred Phone",
588
599
  sizes: "medium",
589
600
  required: true,
590
601
  error: !!errors.Telephone,
@@ -597,7 +608,7 @@ const CpraRequest = ({
597
608
  {
598
609
  id: "Street_Address",
599
610
  ...register("Street_Address", { required: true }),
600
- label: "Street Address",
611
+ label: "* Street Address",
601
612
  sizes: "medium",
602
613
  required: true,
603
614
  variant
@@ -608,7 +619,7 @@ const CpraRequest = ({
608
619
  {
609
620
  id: "City",
610
621
  ...register("City", { required: true }),
611
- label: "City",
622
+ label: "* City",
612
623
  sizes: "medium",
613
624
  required: true,
614
625
  variant
@@ -621,7 +632,7 @@ const CpraRequest = ({
621
632
  ...register("State_", {
622
633
  required: true
623
634
  }),
624
- label: "State",
635
+ label: "* State",
625
636
  sizes: "medium",
626
637
  required: true,
627
638
  error: !!errors.State_,
@@ -686,7 +697,7 @@ const CpraRequest = ({
686
697
  {
687
698
  id: "Zip_Code",
688
699
  ...register("Zip_Code", { required: true }),
689
- label: "Zip Code",
700
+ label: "* Zip Code",
690
701
  sizes: "medium",
691
702
  required: true,
692
703
  variant
@@ -724,7 +735,8 @@ const CpraRequest = ({
724
735
  )
725
736
  ]
726
737
  }
727
- ) })
738
+ ) }),
739
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
728
740
  ] }),
729
741
  children,
730
742
  /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
@@ -1,10 +1,10 @@
1
1
  import { FormProps } from './FormProps';
2
2
 
3
3
  export type CraPublicFileInputs = {
4
- first_name: string;
5
- last_name: string;
6
- email: string;
7
- phone: string;
8
- comments: string;
4
+ First_Name__c: string;
5
+ Last_Name__c: string;
6
+ Customer_Email__c: string;
7
+ Customer_Phone__c: string;
8
+ description: string;
9
9
  };
10
10
  export declare const CraPublicFile: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -16,7 +16,7 @@ import "../icons/ArrowIcon/ArrowIcon.css.js";
16
16
  import SvgAxosX from "../icons/AxosX/index.js";
17
17
  import SvgComponent from "../icons/AxosX/Blue.js";
18
18
  import "../icons/CheckIcon/CheckIcon.css.js";
19
- /* empty css */
19
+ 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 */
20
20
  /* empty css */
21
21
  /* empty css */
22
22
  /* empty css */
@@ -43,7 +43,8 @@ import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
43
43
  import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
44
44
  import { useForm, FormProvider } from "react-hook-form";
45
45
  import { z } from "zod";
46
- import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
46
+ import { iconForm, headerContainer, headerForm, form, descriptionField, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
47
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
47
48
  import { SalesforceSchema } from "./SalesforceFieldsForm.js";
48
49
  /* empty css */
49
50
  /* empty css */
@@ -53,6 +54,8 @@ import "../LoadingIndicator/LoadingIndicator.css.js";
53
54
  import "../Interstitial/Interstitial-variants.css.js";
54
55
  import "../Inputs/Input.css.js";
55
56
  /* empty css */
57
+ /* empty css */
58
+ import "../Modal/contextApi/store.js";
56
59
  import "../Hyperlink/Hyperlink.css.js";
57
60
  /* empty css */
58
61
  import "iframe-resizer";
@@ -60,6 +63,12 @@ import "iframe-resizer";
60
63
  import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
61
64
  import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
62
65
  import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
66
+ import "../Input/PercentageInput.js";
67
+ import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
68
+ /* empty css */
69
+ import "react-dom";
70
+ /* empty css */
71
+ import "../Auth/SignInPassword.js";
63
72
  /* empty css */
64
73
  /* empty css */
65
74
  /* empty css */
@@ -80,23 +89,25 @@ import "../FaqAccordion/index.js";
80
89
  import "../FooterDisclosure/FooterDisclosure.css.js";
81
90
  /* empty css */
82
91
  /* empty css */
92
+ /* empty css */
83
93
  import "../ImageBillboard/ImageBillboard.css.js";
94
+ import "next/script.js";
95
+ /* empty css */
84
96
  /* empty css */
85
97
  /* empty css */
86
98
  /* empty css */
87
99
  /* empty css */
88
100
  /* empty css */
89
101
  import "../LandingPageHeader/LandingPageHeader.css.js";
90
- /* empty css */
91
- import "../Modal/contextApi/store.js";
92
102
  /* empty css */
93
103
  import "next/navigation.js";
94
104
  /* empty css */
95
105
  /* empty css */
96
106
  /* empty css */
107
+ import "next/link.js";
108
+ import "../NavigationMenu/AxosBank/MobileMenu/MobileNavData.js";
97
109
  /* empty css */
98
110
  import "../NavigationMenu/AxosBank/NavData.js";
99
- import "next/link.js";
100
111
  /* empty css */
101
112
  /* empty css */
102
113
  import "../NavigationMenu/AxosALTS/NavData.js";
@@ -112,10 +123,9 @@ import "react-slick";
112
123
  import "../StepItem/StepItem.css.js";
113
124
  import "../StepItemSet/StepItemSet.css.js";
114
125
  /* empty css */
126
+ /* empty css */
115
127
  /* empty css */
116
128
  /* empty css */
117
- import "next/script.js";
118
- /* empty css */
119
129
  /* empty css */
120
130
  const CraPublicFile = ({
121
131
  icon = false,
@@ -132,10 +142,10 @@ const CraPublicFile = ({
132
142
  id
133
143
  }) => {
134
144
  const schema = z.object({
135
- first_name: z.string().regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g).trim().min(1, { message: "First Name is required." }),
136
- last_name: z.string().regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g).trim().min(1, { message: "Last Name is required." }),
137
- email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
138
- phone: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
145
+ First_Name__c: z.string({ message: "Invalid first name." }).regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g).trim().min(1, { message: "First Name is required." }).optional().or(z.literal("")),
146
+ Last_Name__c: z.string({ message: "Invalid last name." }).regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g).trim().min(1, { message: "Last Name is required." }).optional().or(z.literal("")),
147
+ Customer_Email__c: z.string({ message: "Invalid email." }).email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)).optional().or(z.literal("")),
148
+ Customer_Phone__c: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, "Invalid phone number.").min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
139
149
  const removeDashes = val.replace(/-/gi, "");
140
150
  if (removeDashes.length !== 10) {
141
151
  ctx.addIssue({
@@ -144,13 +154,30 @@ const CraPublicFile = ({
144
154
  });
145
155
  return z.NEVER;
146
156
  }
157
+ if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
158
+ ctx.addIssue({
159
+ code: z.ZodIssueCode.custom,
160
+ message: "Invalid phone number."
161
+ });
162
+ return z.NEVER;
163
+ }
147
164
  return removeDashes;
148
- }),
149
- comments: z.string()
165
+ }).optional().or(z.literal("")),
166
+ description: z.string({ message: "Comments/Questions are required." }).min(10, {
167
+ message: "Comments/Questions should have at least 10 chars."
168
+ })
169
+ });
170
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
171
+ if (!isValidHoneyPot(data)) {
172
+ ctx.addIssue({
173
+ code: z.ZodIssueCode.custom,
174
+ message: "fields are not valid."
175
+ });
176
+ }
150
177
  });
151
178
  const methods = useForm({
152
179
  resolver: zodResolver(
153
- schema.merge(SalesforceSchema),
180
+ gen_schema,
154
181
  {
155
182
  async: true
156
183
  },
@@ -159,13 +186,13 @@ const CraPublicFile = ({
159
186
  mode: "onChange",
160
187
  shouldUnregister: true,
161
188
  defaultValues: {
162
- email: ""
189
+ Customer_Email__c: ""
163
190
  }
164
191
  });
165
192
  const {
166
193
  handleSubmit,
167
194
  register,
168
- formState: { errors, isValid, isSubmitting }
195
+ formState: { errors, isSubmitting }
169
196
  } = methods;
170
197
  const submitForm = async (data) => {
171
198
  await onSubmit(data);
@@ -192,77 +219,74 @@ const CraPublicFile = ({
192
219
  /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
193
220
  Input,
194
221
  {
195
- id: "first_name",
196
- ...register("first_name", { required: true }),
222
+ id: "First_Name__c",
223
+ ...register("First_Name__c"),
197
224
  label: "First Name",
198
225
  sizes: "medium",
199
226
  placeholder: "First Name",
200
- required: true,
201
- error: !!errors.first_name,
202
- helperText: errors.first_name?.message,
227
+ error: !!errors.First_Name__c,
228
+ helperText: errors.First_Name__c?.message,
203
229
  variant
204
230
  }
205
231
  ) }),
206
232
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
207
233
  Input,
208
234
  {
209
- id: "last_name",
210
- ...register("last_name", { required: true }),
235
+ id: "Last_Name__c",
236
+ ...register("Last_Name__c"),
211
237
  label: "Last Name",
212
238
  sizes: "medium",
213
239
  placeholder: "Last Name",
214
- required: true,
215
- error: !!errors.last_name,
216
- helperText: errors.last_name?.message,
240
+ error: !!errors.Last_Name__c,
241
+ helperText: errors.Last_Name__c?.message,
217
242
  variant
218
243
  }
219
244
  ) }),
220
245
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
221
246
  Input,
222
247
  {
223
- id: "email",
224
- ...register("email", {
225
- required: true
226
- }),
248
+ id: "Customer_Email__c",
249
+ ...register("Customer_Email__c"),
227
250
  type: "email",
228
251
  label: "Email",
229
252
  sizes: "medium",
230
253
  placeholder: "Email",
231
- required: true,
232
- error: !!errors.email,
233
- helperText: errors.email?.message,
254
+ error: !!errors.Customer_Email__c,
255
+ helperText: errors.Customer_Email__c?.message,
234
256
  variant
235
257
  }
236
258
  ) }),
237
259
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
238
260
  InputPhone,
239
261
  {
240
- id: "phone",
241
- ...register("phone", { required: true, maxLength: 12 }),
262
+ id: "Customer_Phone__c",
263
+ ...register("Customer_Phone__c", {
264
+ maxLength: 12
265
+ }),
242
266
  label: "Phone",
243
267
  sizes: "medium",
244
268
  placeholder: "Phone",
245
269
  type: "tel",
246
- required: true,
247
- error: !!errors.phone,
248
- helperText: errors.phone?.message,
270
+ error: !!errors.Customer_Phone__c,
271
+ helperText: errors.Customer_Phone__c?.message,
249
272
  variant
250
273
  }
251
274
  ) }),
252
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
275
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
253
276
  InputTextArea,
254
277
  {
255
- id: "comments",
256
- ...register("comments"),
278
+ id: "description",
279
+ ...register("description", { required: true }),
257
280
  label: "Comments/Questions",
258
281
  sizes: "medium",
259
282
  placeholder: "",
260
- error: !!errors.comments,
261
- helperText: errors.comments?.message,
283
+ error: !!errors.description,
284
+ helperText: errors.description?.message,
262
285
  variant,
263
286
  rows: 1
264
287
  }
265
- ) })
288
+ ) }),
289
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
266
290
  ] }),
267
291
  children,
268
292
  /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
@@ -272,7 +296,7 @@ const CraPublicFile = ({
272
296
  color: getVariant(callToAction?.variant),
273
297
  as: "button",
274
298
  type: "submit",
275
- disabled: !isValid || isSubmitting,
299
+ disabled: isSubmitting,
276
300
  children: callToAction?.displayText
277
301
  }
278
302
  ) })
@@ -20,7 +20,7 @@ import "../icons/ArrowIcon/ArrowIcon.css.js";
20
20
  import SvgAxosX from "../icons/AxosX/index.js";
21
21
  import SvgComponent from "../icons/AxosX/Blue.js";
22
22
  import "../icons/CheckIcon/CheckIcon.css.js";
23
- /* empty css */
23
+ 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 */
24
24
  /* empty css */
25
25
  /* empty css */
26
26
  /* empty css */
@@ -32,6 +32,7 @@ import clsx from "clsx";
32
32
  import { useForm, FormProvider } from "react-hook-form";
33
33
  import * as z from "zod";
34
34
  import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
35
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
35
36
  import { SalesforceSchema } from "./SalesforceFieldsForm.js";
36
37
  const DealerServices = ({
37
38
  icon = false,
@@ -51,8 +52,7 @@ const DealerServices = ({
51
52
  first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
52
53
  last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
53
54
  email: z.string().email({ message: "Email is required." }),
54
- // .refine(async (val: string) => await validateEmail(val)),
55
- phone: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
55
+ phone: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, "Invalid phone number.").min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
56
56
  const removeDashes = val.replace(/-/gi, "");
57
57
  if (removeDashes.length !== 10) {
58
58
  ctx.addIssue({
@@ -61,6 +61,13 @@ const DealerServices = ({
61
61
  });
62
62
  return z.NEVER;
63
63
  }
64
+ if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
65
+ ctx.addIssue({
66
+ code: z.ZodIssueCode.custom,
67
+ message: "Invalid phone number."
68
+ });
69
+ return z.NEVER;
70
+ }
64
71
  return removeDashes;
65
72
  }),
66
73
  title: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Title is required." }),
@@ -74,8 +81,16 @@ const DealerServices = ({
74
81
  zip: z.string().trim().max(20).min(1, { message: "Zip code is required." }),
75
82
  description: z.string().trim().max(32e3)
76
83
  });
84
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
85
+ if (!isValidHoneyPot(data)) {
86
+ ctx.addIssue({
87
+ code: z.ZodIssueCode.custom,
88
+ message: "fields are not valid."
89
+ });
90
+ }
91
+ });
77
92
  const methods = useForm({
78
- resolver: zodResolver(schema.merge(SalesforceSchema), {
93
+ resolver: zodResolver(gen_schema, {
79
94
  async: true
80
95
  }),
81
96
  mode: "all",
@@ -299,7 +314,8 @@ const DealerServices = ({
299
314
  variant,
300
315
  rows: 1
301
316
  }
302
- ) })
317
+ ) }),
318
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
303
319
  ] }),
304
320
  children,
305
321
  /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),