@axos-web-dev/shared-components 1.0.77-patch.6 → 1.0.77-patch.61

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 (438) hide show
  1. package/dist/ATMLocator/ATMLocator.js +14 -5
  2. package/dist/Accordion/Accordion.css.js +2 -1
  3. package/dist/Accordion/Accordion.js +2 -1
  4. package/dist/AlertBanner/index.js +2 -1
  5. package/dist/Article/Article.css.d.ts +9 -36
  6. package/dist/Article/Article.css.js +12 -9
  7. package/dist/Article/Article.d.ts +2 -1
  8. package/dist/Article/Article.js +13 -2
  9. package/dist/Article/index.js +3 -2
  10. package/dist/ArticlesSet/ArticlesSet.css.d.ts +10 -70
  11. package/dist/ArticlesSet/ArticlesSet.css.js +2 -1
  12. package/dist/ArticlesSet/ArticlesSet.js +1 -1
  13. package/dist/Auth/ErrorAlert.js +15 -6
  14. package/dist/Auth/SignIn.css.js +2 -1
  15. package/dist/Auth/SignInPassword.js +2 -2
  16. package/dist/Avatar/Avatar.module.js +7 -7
  17. package/dist/AwardsBanner/AwardsBanner.css.js +5 -1
  18. package/dist/AwardsItem/AwardsItem.css.js +1 -2
  19. package/dist/Blockquote/Blockquote.module.js +3 -3
  20. package/dist/BulletItem/BulletItem.js +3 -1
  21. package/dist/Button/Button.css.d.ts +3 -3
  22. package/dist/Button/Button.css.js +2 -1
  23. package/dist/Button/Button.js +15 -6
  24. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +2 -1
  25. package/dist/Calculators/AnnualFeeCalculator/index.js +1 -1
  26. package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +2 -30
  27. package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +2 -1
  28. package/dist/Calculators/ApyCalculator/index.js +11 -5
  29. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +3 -0
  30. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +10 -2
  31. package/dist/Calculators/AxosOneCalculator/index.d.ts +2 -0
  32. package/dist/Calculators/AxosOneCalculator/index.js +106 -74
  33. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +2 -30
  34. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +2 -1
  35. package/dist/Calculators/BalanceAPYCalculator/index.js +2 -1
  36. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.d.ts +0 -1
  37. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +3 -4
  38. package/dist/Calculators/BuyDownCalculator/index.d.ts +5 -1
  39. package/dist/Calculators/BuyDownCalculator/index.js +268 -142
  40. package/dist/Calculators/Calculator.d.ts +2 -0
  41. package/dist/Calculators/Calculator.js +33 -10
  42. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
  43. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
  44. package/dist/Calculators/MaxLoanCalculator/index.js +23 -6
  45. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
  46. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +4 -1
  47. package/dist/Calculators/MonthlyPaymentCalculator/index.js +16 -6
  48. package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js +2 -1
  49. package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js +2 -1
  50. package/dist/Calculators/SummitApyCalculator/index.js +17 -7
  51. package/dist/Calculators/calculator.css.d.ts +2 -8
  52. package/dist/Calculators/calculator.css.js +2 -1
  53. package/dist/Calculators/index.d.ts +2 -1
  54. package/dist/Calculators/index.js +3 -1
  55. package/dist/CallToActionBar/CallToActionBar.css.d.ts +3 -1
  56. package/dist/CallToActionBar/CallToActionBar.css.js +23 -16
  57. package/dist/CallToActionBar/index.js +4 -3
  58. package/dist/Carousel/Carousel.css.d.ts +8 -19
  59. package/dist/Carousel/Carousel.css.js +2 -1
  60. package/dist/Carousel/index.js +23 -14
  61. package/dist/Chatbot/AnimatedGradientBorder.css.d.ts +3 -0
  62. package/dist/Chatbot/AnimatedGradientBorder.css.js +13 -0
  63. package/dist/Chatbot/Bubble.css.d.ts +6 -0
  64. package/dist/Chatbot/Bubble.css.js +19 -0
  65. package/dist/Chatbot/Bubble.d.ts +5 -0
  66. package/dist/Chatbot/Bubble.js +110 -0
  67. package/dist/Chatbot/Chat.d.ts +1 -0
  68. package/dist/Chatbot/Chat.js +158 -0
  69. package/dist/Chatbot/ChatWindow.css.d.ts +36 -0
  70. package/dist/Chatbot/ChatWindow.css.js +70 -0
  71. package/dist/Chatbot/ChatWindow.d.ts +31 -0
  72. package/dist/Chatbot/ChatWindow.js +519 -0
  73. package/dist/Chatbot/Chatbot.css.d.ts +2 -0
  74. package/dist/Chatbot/Chatbot.css.js +7 -0
  75. package/dist/Chatbot/Chatbot.d.ts +10 -0
  76. package/dist/Chatbot/Chatbot.js +389 -0
  77. package/dist/Chatbot/ChatbotMessage.d.ts +17 -0
  78. package/dist/Chatbot/ChatbotMessage.js +236 -0
  79. package/dist/Chatbot/EllipsisAnimation.d.ts +2 -0
  80. package/dist/Chatbot/EllipsisAnimation.js +85 -0
  81. package/dist/Chatbot/EllipsisIcon.d.ts +4 -0
  82. package/dist/Chatbot/EllipsisIcon.js +19 -0
  83. package/dist/Chatbot/ThankYouMessage.d.ts +9 -0
  84. package/dist/Chatbot/ThankYouMessage.js +510 -0
  85. package/dist/Chatbot/authenticate.d.ts +3 -0
  86. package/dist/Chatbot/authenticate.js +16 -0
  87. package/dist/Chatbot/index.d.ts +8 -0
  88. package/dist/Chatbot/index.js +55 -0
  89. package/dist/Chatbot/store/chat.d.ts +19 -0
  90. package/dist/Chatbot/store/chat.js +33 -0
  91. package/dist/Chatbot/store/messages.d.ts +16 -0
  92. package/dist/Chatbot/store/messages.js +21 -0
  93. package/dist/Chatbot/useHeadlessChat.d.ts +27 -0
  94. package/dist/Chatbot/useHeadlessChat.js +240 -0
  95. package/dist/Chevron/Chevron.css.d.ts +2 -2
  96. package/dist/Chevron/Chevron.css.js +2 -1
  97. package/dist/Chevron/index.js +15 -6
  98. package/dist/CollectInformationAlert/CollectInformationAlert.css.js +2 -1
  99. package/dist/CollectInformationAlert/index.js +3 -2
  100. package/dist/Comparison/Comparison.css.js +2 -1
  101. package/dist/Comparison/Comparison.js +19 -10
  102. package/dist/Comparison/ComparisonSet.js +33 -24
  103. package/dist/ContentBanner/ContentBanner.css.js +3 -1
  104. package/dist/DownloadTile/DownloadTile.css.js +2 -1
  105. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +153 -0
  106. package/dist/ExecutiveBio/ExecutiveBio.css.js +52 -1
  107. package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
  108. package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +11 -4
  109. package/dist/ExecutiveBio/ExecutiveBio.js +273 -11
  110. package/dist/ExecutiveBio/Overlay.d.ts +8 -0
  111. package/dist/ExecutiveBio/Overlay.js +589 -0
  112. package/dist/ExecutiveBio/index.js +26 -1
  113. package/dist/FaqAccordion/FaqAccordion.css.js +2 -1
  114. package/dist/FaqAccordion/index.js +15 -6
  115. package/dist/FooterDisclosure/LVF/LaVictorieFooter.css.js +2 -1
  116. package/dist/FooterDisclosure/LVF/LaVictorieFooter.js +2 -1
  117. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +2 -1
  118. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +37 -34
  119. package/dist/Forms/ApplicationStart.d.ts +1 -1
  120. package/dist/Forms/ApplicationStart.js +117 -92
  121. package/dist/Forms/ApplyNow.d.ts +2 -2
  122. package/dist/Forms/ApplyNow.js +184 -150
  123. package/dist/Forms/ClearingForm.d.ts +1 -1
  124. package/dist/Forms/ClearingForm.js +190 -165
  125. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  126. package/dist/Forms/CommercialDeposits.js +207 -182
  127. package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +16 -0
  128. package/dist/Forms/CommercialDepositsNoLendingOption.js +333 -0
  129. package/dist/Forms/CommercialLending.d.ts +1 -1
  130. package/dist/Forms/CommercialLending.js +284 -259
  131. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  132. package/dist/Forms/CommercialPremiumFinance.js +133 -108
  133. package/dist/Forms/ContactCompany.d.ts +1 -1
  134. package/dist/Forms/ContactCompany.js +119 -94
  135. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  136. package/dist/Forms/ContactCompanyTitle.js +133 -108
  137. package/dist/Forms/ContactUs.d.ts +1 -1
  138. package/dist/Forms/ContactUs.js +105 -80
  139. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  140. package/dist/Forms/ContactUsAAS.js +186 -161
  141. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  142. package/dist/Forms/ContactUsBusiness.js +152 -120
  143. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  144. package/dist/Forms/ContactUsBusinessNameEmail.js +121 -89
  145. package/dist/Forms/ContactUsLVF.d.ts +7 -1
  146. package/dist/Forms/ContactUsLVF.js +139 -108
  147. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  148. package/dist/Forms/ContactUsNMLSId.js +135 -103
  149. package/dist/Forms/CpraRequest.d.ts +1 -1
  150. package/dist/Forms/CpraRequest.js +648 -622
  151. package/dist/Forms/CraPublicFile.d.ts +1 -1
  152. package/dist/Forms/CraPublicFile.js +127 -95
  153. package/dist/Forms/DealerServices.d.ts +1 -1
  154. package/dist/Forms/DealerServices.js +231 -207
  155. package/dist/Forms/EmailOnly.d.ts +1 -1
  156. package/dist/Forms/EmailOnly.js +117 -62
  157. package/dist/Forms/EmailUs.d.ts +1 -1
  158. package/dist/Forms/EmailUs.js +81 -56
  159. package/dist/Forms/FormEnums.js +57 -16
  160. package/dist/Forms/FormProps.d.ts +3 -0
  161. package/dist/Forms/Forms.css.d.ts +26 -31
  162. package/dist/Forms/Forms.css.js +55 -42
  163. package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
  164. package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
  165. package/dist/Forms/HoneyPot/index.d.ts +23 -0
  166. package/dist/Forms/HoneyPot/index.js +70 -0
  167. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  168. package/dist/Forms/MortgageRate/MortgageRateForm.js +407 -357
  169. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +11 -5
  170. package/dist/Forms/MortgageRate/MortgageRateWatch.js +15 -6
  171. package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
  172. package/dist/Forms/MortgageWarehouseLending.js +347 -0
  173. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  174. package/dist/Forms/QuickPricer/QuickPricerForm.js +640 -620
  175. package/dist/Forms/QuickPricer/UserInformation.css.js +2 -1
  176. package/dist/Forms/SalesforceFieldsForm.d.ts +5 -0
  177. package/dist/Forms/SalesforceFieldsForm.js +11 -1
  178. package/dist/Forms/ScheduleCall.d.ts +1 -1
  179. package/dist/Forms/ScheduleCall.js +162 -137
  180. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  181. package/dist/Forms/ScheduleCallPremier.js +184 -159
  182. package/dist/Forms/SuccesForm.js +20 -11
  183. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  184. package/dist/Forms/VendorQuestionnaire.js +823 -797
  185. package/dist/Forms/WcplSurvey.d.ts +1 -1
  186. package/dist/Forms/WcplSurvey.js +114 -91
  187. package/dist/Forms/applynow-utils.d.ts +1 -0
  188. package/dist/Forms/applynow-utils.js +48 -0
  189. package/dist/Forms/index.d.ts +4 -0
  190. package/dist/Forms/index.js +18 -2
  191. package/dist/HeroBanner/HeroBanner.css.d.ts +7 -17
  192. package/dist/HeroBanner/HeroBanner.css.js +7 -1
  193. package/dist/HeroBanner/HeroBanner.d.ts +1 -1
  194. package/dist/HeroBanner/HeroBanner.interface.d.ts +3 -0
  195. package/dist/HeroBanner/HeroBanner.js +103 -17
  196. package/dist/HeroBanner/LargeBanner.css.js +2 -1
  197. package/dist/HeroBanner/SelectionBanner.css.d.ts +1 -19
  198. package/dist/HeroBanner/SelectionBanner.css.js +8 -7
  199. package/dist/HeroBanner/index.js +3 -1
  200. package/dist/Hyperlink/Hyperlink.css.d.ts +4 -4
  201. package/dist/Hyperlink/Hyperlink.css.js +5 -1
  202. package/dist/Hyperlink/index.js +15 -6
  203. package/dist/IconBillboard/IconBillboard.css.d.ts +8 -40
  204. package/dist/IconBillboard/IconBillboard.css.js +14 -9
  205. package/dist/IconBillboard/IconBillboard.d.ts +1 -2
  206. package/dist/IconBillboard/IconBillboard.js +33 -88
  207. package/dist/IconBillboard/index.js +4 -3
  208. package/dist/IconBillboard/sections/CallToActionSection.d.ts +12 -0
  209. package/dist/IconBillboard/sections/CallToActionSection.js +102 -0
  210. package/dist/IconBillboard/sections/HeaderSection.d.ts +11 -0
  211. package/dist/IconBillboard/sections/HeaderSection.js +23 -0
  212. package/dist/IconBillboard/sections/IconSection.d.ts +7 -0
  213. package/dist/IconBillboard/sections/IconSection.js +18 -0
  214. package/dist/IconBillboard/sections/ItemsSection.d.ts +11 -0
  215. package/dist/IconBillboard/sections/ItemsSection.js +11 -0
  216. package/dist/IconBillboard/sections/LayoutSection.d.ts +8 -0
  217. package/dist/IconBillboard/sections/LayoutSection.js +6 -0
  218. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +6 -1
  219. package/dist/ImageBillboard/ImageBillboard.css.d.ts +5 -61
  220. package/dist/ImageBillboard/ImageBillboard.css.js +3 -1
  221. package/dist/ImageBillboard/ImageBillboard.interface.d.ts +7 -0
  222. package/dist/ImageBillboard/ImageBillboard.js +2 -1
  223. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  224. package/dist/ImageBillboard/ImageBillboardSet.js +33 -10
  225. package/dist/ImageLink/ImageLink.js +16 -7
  226. package/dist/ImageLink/ImageLinkSet.js +18 -9
  227. package/dist/ImageLink/index.js +15 -6
  228. package/dist/Input/Dropdown.js +1 -0
  229. package/dist/Input/Input.css.d.ts +1 -0
  230. package/dist/Input/Input.css.js +12 -9
  231. package/dist/Input/Input.js +3 -1
  232. package/dist/Input/index.js +2 -1
  233. package/dist/Inputs/Input.css.js +2 -1
  234. package/dist/Insight/Featured/CategorySelector.css.js +2 -1
  235. package/dist/Insight/Featured/CategorySelector.js +16 -7
  236. package/dist/Insight/Featured/Featured.js +23 -14
  237. package/dist/Insight/Featured/Header.js +22 -13
  238. package/dist/Insight/Insight.css.d.ts +18 -0
  239. package/dist/Insight/Insight.css.js +44 -8
  240. package/dist/Insight/index.js +19 -1
  241. package/dist/Interstitial/Interstitial-variants.css.js +2 -1
  242. package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +2 -0
  243. package/dist/LandingPageHeader/LandingPageHeader.css.js +8 -3
  244. package/dist/LandingPageHeader/LandingPageHeader.js +20 -10
  245. package/dist/LandingPageHeader/index.js +3 -1
  246. package/dist/LoadingIndicator/LoadingIndicator.css.d.ts +4 -4
  247. package/dist/LoadingIndicator/index.js +1 -0
  248. package/dist/MainHTML/index.d.ts +1 -1
  249. package/dist/MainHTML/index.js +3 -1
  250. package/dist/Modal/Modal.css.d.ts +1 -0
  251. package/dist/Modal/Modal.css.js +7 -4
  252. package/dist/Modal/Modal.js +18 -9
  253. package/dist/Modal/contextApi/store.js +2 -2
  254. package/dist/NavigationMenu/AxosALTS/NavBar.css.js +2 -1
  255. package/dist/NavigationMenu/AxosALTS/NavData.js +15 -6
  256. package/dist/NavigationMenu/AxosALTS/index.js +15 -6
  257. package/dist/NavigationMenu/AxosAdvisor/NavBar.css.d.ts +2 -0
  258. package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +8 -2
  259. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
  260. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +3 -10
  261. package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +2 -1
  262. package/dist/NavigationMenu/AxosAdvisor/index.js +42 -32
  263. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.d.ts +2 -0
  264. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +8 -2
  265. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +53 -53
  266. package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.d.ts +1 -1
  267. package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +4 -3
  268. package/dist/NavigationMenu/AxosAdvisorServices/index.js +14 -8
  269. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +216 -72
  270. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +50 -17
  271. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +19 -14
  272. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +64 -32
  273. package/dist/NavigationMenu/AxosBank/NavBar.css.js +3 -1
  274. package/dist/NavigationMenu/AxosBank/NavBar.module.js +41 -41
  275. package/dist/NavigationMenu/AxosBank/NavData.js +15 -6
  276. package/dist/NavigationMenu/AxosBank/SubNavBar.js +88 -120
  277. package/dist/NavigationMenu/AxosBank/SubNavbar.css.d.ts +2 -0
  278. package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +6 -1
  279. package/dist/NavigationMenu/AxosBank/index.js +15 -6
  280. package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
  281. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +41 -41
  282. package/dist/NavigationMenu/LaVictoire/NavData.js +15 -6
  283. package/dist/NavigationMenu/LaVictoire/index.js +15 -6
  284. package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
  285. package/dist/NavigationMenu/NavDataJson.js +317 -0
  286. package/dist/NavigationMenu/Navbar.d.ts +5 -0
  287. package/dist/NavigationMenu/Navbar.js +203 -0
  288. package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
  289. package/dist/NavigationMenu/SignInNavButton.js +371 -0
  290. package/dist/PageNavItem/PageNavItem.css.d.ts +4 -22
  291. package/dist/PageNavItem/PageNavItem.css.js +2 -1
  292. package/dist/Pagination/Pagination.js +8 -7
  293. package/dist/SecondaryFooter/SecondaryFooter.css.js +2 -1
  294. package/dist/SetContainer/SetContainer.css.js +2 -1
  295. package/dist/SetContainer/SetContainer.js +16 -7
  296. package/dist/SocialMediaBar/iconsRepository.js +15 -6
  297. package/dist/StepItem/StepItem.css.d.ts +8 -36
  298. package/dist/StepItem/StepItem.css.js +2 -1
  299. package/dist/StepItemSet/StepItemSet.css.d.ts +6 -32
  300. package/dist/StepItemSet/StepItemSet.css.js +13 -6
  301. package/dist/StepItemSet/StepItemSet.d.ts +8 -0
  302. package/dist/StepItemSet/StepItemSet.js +39 -14
  303. package/dist/StepItemSet/index.js +4 -2
  304. package/dist/Tab/Tab.css.js +2 -1
  305. package/dist/Tab/Tab.js +1 -0
  306. package/dist/Table/Table.css.d.ts +7 -7
  307. package/dist/Table/Table.css.js +7 -6
  308. package/dist/Table/Table.d.ts +1 -1
  309. package/dist/Table/Table.js +3 -2
  310. package/dist/TextBlock/TextBlock.css.js +2 -1
  311. package/dist/Typography/Typography.css.d.ts +0 -6
  312. package/dist/VideoTile/VideoTile.css.js +2 -1
  313. package/dist/VideoTile/VideoTile.interface.d.ts +4 -3
  314. package/dist/VideoTile/VideoTile.js +191 -28
  315. package/dist/VideoWrapper/index.js +16 -7
  316. package/dist/WalnutIframe/wrapper.module.js +3 -3
  317. package/dist/assets/Accordion/Accordion.css +4 -4
  318. package/dist/assets/AlertBanner/AlertBanner.css +4 -1
  319. package/dist/assets/Article/Article.css +87 -86
  320. package/dist/assets/ArticlesSet/ArticlesSet.css +26 -56
  321. package/dist/assets/Auth/SignIn.css +12 -12
  322. package/dist/assets/Avatar/Avatar.css.css +10 -10
  323. package/dist/assets/AwardsBanner/AwardsBanner.css +1 -4
  324. package/dist/assets/AwardsItem/AwardsItem.css +3 -4
  325. package/dist/assets/Blockquote/Blockquote.css.css +72 -68
  326. package/dist/assets/Button/Button.css +28 -28
  327. package/dist/assets/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css +8 -8
  328. package/dist/assets/Calculators/ApyCalculator/ApyCalculator.css +13 -22
  329. package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +72 -14
  330. package/dist/assets/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css +22 -34
  331. package/dist/assets/Calculators/BuyDownCalculator/BuyDownCalculator.css +15 -21
  332. package/dist/assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css +2 -2
  333. package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +12 -9
  334. package/dist/assets/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css +11 -11
  335. package/dist/assets/Calculators/SummitApyCalculator/BalanceAPYCalculator.css +19 -11
  336. package/dist/assets/Calculators/calculator.css +9 -15
  337. package/dist/assets/CallToActionBar/CallToActionBar.css +95 -69
  338. package/dist/assets/Carousel/Carousel.css +28 -42
  339. package/dist/assets/Chatbot/AnimatedGradientBorder.css +38 -0
  340. package/dist/assets/Chatbot/Bubble.css +88 -0
  341. package/dist/assets/Chatbot/ChatWindow.css +359 -0
  342. package/dist/assets/Chatbot/Chatbot.css +3 -0
  343. package/dist/assets/Chevron/Chevron.css +11 -10
  344. package/dist/assets/CollectInformationAlert/CollectInformationAlert.css +4 -3
  345. package/dist/assets/Comparison/Comparison.css +8 -5
  346. package/dist/assets/ContentBanner/ContentBanner.css +14 -8
  347. package/dist/assets/DownloadTile/DownloadTile.css +8 -8
  348. package/dist/assets/ExecutiveBio/ExecutiveBio.css +342 -27
  349. package/dist/assets/FaqAccordion/FaqAccordion.css +5 -5
  350. package/dist/assets/FooterDisclosure/FooterDisclosure.css +1 -1
  351. package/dist/assets/FooterSiteMap/AxosBank/FooterSiteMap.css +3 -8
  352. package/dist/assets/Forms/Forms.css +202 -163
  353. package/dist/assets/Forms/HoneyPot/HoneyPot.css +8 -0
  354. package/dist/assets/Forms/QuickPricer/UserInformation.css +1 -1
  355. package/dist/assets/HelpArticle/HelpArticle.css +2 -2
  356. package/dist/assets/HeroBanner/HeroBanner.css +97 -76
  357. package/dist/assets/HeroBanner/LargeBanner.css +15 -15
  358. package/dist/assets/HeroBanner/SelectionBanner.css +15 -29
  359. package/dist/assets/Hyperlink/Hyperlink.css +4 -4
  360. package/dist/assets/IconBillboard/IconBillboard.css +71 -60
  361. package/dist/assets/ImageBillboard/ImageBillboard.css +104 -98
  362. package/dist/assets/Input/Input.css +54 -47
  363. package/dist/assets/Inputs/Input.css +5 -5
  364. package/dist/assets/Insight/Featured/CategorySelector.css +2 -2
  365. package/dist/assets/Insight/Insight.css +213 -44
  366. package/dist/assets/Interstitial/Interstitial-variants.css +3 -3
  367. package/dist/assets/LandingPageHeader/LandingPageHeader.css +37 -4
  368. package/dist/assets/LoadingIndicator/LoadingIndicator.css +5 -5
  369. package/dist/assets/Modal/Modal.css +17 -28
  370. package/dist/assets/NavigationMenu/AxosALTS/NavBar.css +1 -1
  371. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css +25 -2
  372. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +138 -126
  373. package/dist/assets/NavigationMenu/AxosAdvisor/SubNavbar.css +5 -4
  374. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css +25 -2
  375. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css.css +630 -618
  376. package/dist/assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css +22 -4
  377. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +353 -191
  378. package/dist/assets/NavigationMenu/AxosBank/NavBar.css +21 -9
  379. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +445 -473
  380. package/dist/assets/NavigationMenu/AxosBank/SubNavbar.css +35 -1
  381. package/dist/assets/NavigationMenu/AxosClearing/NavBar.css.css +133 -107
  382. package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +84 -83
  383. package/dist/assets/PageNavItem/PageNavItem.css +16 -33
  384. package/dist/assets/PageNavSet/PageNavigationSet.css +4 -3
  385. package/dist/assets/Pagination/Pagination.css +1 -1
  386. package/dist/assets/SetContainer/SetContainer.css +8 -5
  387. package/dist/assets/StepItem/StepItem.css +26 -42
  388. package/dist/assets/StepItemSet/StepItemSet.css +50 -41
  389. package/dist/assets/Tab/Tab.css +12 -12
  390. package/dist/assets/Table/Table.css +91 -98
  391. package/dist/assets/TextBlock/TextBlock.css +1 -1
  392. package/dist/assets/Topic/Topic.css +1 -1
  393. package/dist/assets/TopicalNavItem/TopicalNavItem.css +3 -3
  394. package/dist/assets/TopicalNavSet/TopicalNavSet.css +3 -3
  395. package/dist/assets/Typography/Typography.css +1 -1
  396. package/dist/assets/VideoTile/VideoTile.css +2 -2
  397. package/dist/assets/WalnutIframe/wrapper.css.css +7 -8
  398. package/dist/assets/globals.css +26 -11
  399. package/dist/assets/icons/ArrowIcon/ArrowIcon.css +3 -3
  400. package/dist/assets/icons/DownloadIcon/DownloadIcon.css +1 -1
  401. package/dist/assets/icons/FollowIcon/FollowIcon.css +1 -1
  402. package/dist/assets/themes/axos.css +44 -32
  403. package/dist/assets/themes/premier.css +43 -31
  404. package/dist/assets/themes/ufb.css +52 -0
  405. package/dist/assets/themes/victorie.css +35 -23
  406. package/dist/icons/ArrowIcon/ArrowIcon.css.js +2 -1
  407. package/dist/icons/CheckCircle.js +1 -1
  408. package/dist/icons/CheckCircleLight.js +1 -1
  409. package/dist/icons/CheckIcon/CheckIcon.css.js +2 -1
  410. package/dist/icons/CheckIcon/index.js +1 -1
  411. package/dist/icons/Clock/index.js +6 -6
  412. package/dist/icons/DownloadIcon/DownloadIcon.css.js +2 -1
  413. package/dist/icons/FollowIcon/FollowIcon.css.js +2 -1
  414. package/dist/icons/Logos/AXB.d.ts +8 -0
  415. package/dist/icons/Logos/AXB.js +74 -0
  416. package/dist/icons/Logos/SPB.d.ts +4 -0
  417. package/dist/icons/Logos/SPB.js +132 -0
  418. package/dist/icons/QuoteIconGrey.js +2 -2
  419. package/dist/icons/index.d.ts +1 -0
  420. package/dist/icons/index.js +2 -0
  421. package/dist/main.d.ts +1 -0
  422. package/dist/main.js +160 -28
  423. package/dist/themes/axos.css.d.ts +30 -12
  424. package/dist/themes/axos.css.js +1 -1
  425. package/dist/themes/index.d.ts +1 -0
  426. package/dist/themes/index.js +2 -0
  427. package/dist/themes/ufb.css.d.ts +1 -0
  428. package/dist/themes/ufb.css.js +6 -0
  429. package/dist/utils/allowedAxosDomains.js +4 -2
  430. package/dist/utils/emailValidation.d.ts +1 -0
  431. package/dist/utils/emailValidation.js +31 -0
  432. package/dist/utils/index.d.ts +4 -1
  433. package/dist/utils/index.js +9 -1
  434. package/dist/utils/nmlsValidation.d.ts +1 -0
  435. package/dist/utils/nmlsValidation.js +34 -0
  436. package/dist/utils/useCachedValidators.d.ts +2 -0
  437. package/dist/utils/useCachedValidators.js +22 -0
  438. package/package.json +135 -133
@@ -20,20 +20,23 @@ 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
- 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 */
23
+ import '../../assets/icons/FollowIcon/FollowIcon.css';import '../../assets/icons/DownloadIcon/DownloadIcon.css';import '../../assets/themes/victorie.css';import '../../assets/themes/ufb.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
24
24
  /* empty css */
25
+ /* empty css */
25
26
  /* empty css */
26
27
  /* empty css */
27
28
  /* empty css */
28
29
  import "../../utils/allowedAxosDomains.js";
30
+ import * as z from "zod";
29
31
  import { associatedEmail } from "../../utils/EverestValidity.js";
30
32
  import { getVariant } from "../../utils/getVariant.js";
33
+ import { useCachedEmailValidator, useCachedNMLSValidator } from "../../utils/useCachedValidators.js";
31
34
  import { format } from "@react-input/number-format";
32
35
  import clsx from "clsx";
33
36
  import { useForm, FormProvider } from "react-hook-form";
34
- import * as z from "zod";
35
37
  import { BrokerConpensation, PrepaymentPenalty, NumberOfUnits, Occupancy, PropertyType, BankruptcySeasoning, BankruptcyType, HousingEventHistory, HousingEventType, MortgageLates24, MortgageLates12, Citizenship, DocType, RepresentativesFico, Purposes } from "../FormEnums.js";
36
38
  import { iconForm, headerContainer, headerForm, form, descriptionField, one_row, section_title, checkbox_group, formWrapper, disclosureForm, actions, formContainer } from "../Forms.css.js";
39
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "../HoneyPot/index.js";
37
40
  import { SalesforceSchema } from "../SalesforceFieldsForm.js";
38
41
  const QuickPricer = ({
39
42
  icon = false,
@@ -50,7 +53,8 @@ const QuickPricer = ({
50
53
  validateEmail,
51
54
  validateNMLS = async () => {
52
55
  return false;
53
- }
56
+ },
57
+ onValidate
54
58
  }) => {
55
59
  const [refiCashOut, setRefiCashOut] = useState(false);
56
60
  const [DSCR_Ratio, setDSCR_Ratio] = useState(false);
@@ -58,6 +62,8 @@ const QuickPricer = ({
58
62
  const [bankruptcySeasoning, setBankruptcySeasoning] = useState(false);
59
63
  const [numberOfUnits, setNumberOfUnits] = useState(false);
60
64
  const [prepaymentPenalty, setPrepaymentPenalty] = useState(false);
65
+ const cachedEmailValidator = useCachedEmailValidator(validateEmail);
66
+ const cachedNMLSValidator = useCachedNMLSValidator(validateNMLS);
61
67
  const schema = z.object({
62
68
  Base_Loan_Amount__c: z.string({
63
69
  message: "Please provide a valid base loan amount"
@@ -131,12 +137,9 @@ const QuickPricer = ({
131
137
  message: "Housing event history is required"
132
138
  }
133
139
  ),
134
- bankruptcyType__c: z.string().min(1, { message: "Bankruptcy type is required" }).refine(
135
- (val) => BankruptcyType.map((item) => item.value).includes(val),
136
- {
137
- message: "Bankruptcy type is required"
138
- }
139
- ),
140
+ bankruptcyType__c: z.string().min(1, { message: "Bankruptcy type is required" }).refine((val) => BankruptcyType.map((item) => item.value).includes(val), {
141
+ message: "Bankruptcy type is required"
142
+ }),
140
143
  Number_of_Properties_Financed__c: z.coerce.number({ message: "Please provide a valid # of Properties" }).min(0, {
141
144
  message: "Please provide a valid # of Properties"
142
145
  }).max(100, {
@@ -155,12 +158,9 @@ const QuickPricer = ({
155
158
  Occupance__c: z.string().min(1, { message: "Occupancy is required" }).refine((val) => Occupancy.map((item) => item.value).includes(val), {
156
159
  message: "Occupancy is required"
157
160
  }),
158
- Units__c: z.string().min(1, { message: "# of Units is required" }).refine(
159
- (val) => NumberOfUnits.map((item) => item.value).includes(val),
160
- {
161
- message: "# of Units is required"
162
- }
163
- ),
161
+ Units__c: z.string().min(1, { message: "# of Units is required" }).refine((val) => NumberOfUnits.map((item) => item.value).includes(val), {
162
+ message: "# of Units is required"
163
+ }),
164
164
  Prepayment_Penalty__c: z.string().min(1, { message: "Prepayment penalty is required" }).refine(
165
165
  (val) => PrepaymentPenalty.map((field) => field.value).includes(val),
166
166
  {
@@ -173,11 +173,8 @@ const QuickPricer = ({
173
173
  message: "Broker compensation is required"
174
174
  }
175
175
  ),
176
- NMLS__c: z.string().min(4, "Valid NMLS should have at least 4 characters").max(15, "Valid NMLS should have at most 15 characters").refine(async (val) => {
177
- const res = await validateNMLS(val);
178
- return res?.body?.data?.records?.length > 0;
179
- }, "NMLS ID is not valid"),
180
- Email_Address__c: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
176
+ NMLS__c: z.string().min(4, "Valid NMLS should have at least 4 characters").max(15, "Valid NMLS should have at most 15 characters").refine(cachedNMLSValidator, "NMLS ID is not valid"),
177
+ Email_Address__c: z.string().email({ message: "Email is required." }).refine(cachedEmailValidator, { message: "Invalid email address." }),
181
178
  Cell_Phone__c: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
182
179
  const removeDashes = val.replace(/-/gi, "");
183
180
  if (removeDashes.length !== 10) {
@@ -189,7 +186,8 @@ const QuickPricer = ({
189
186
  }
190
187
  return removeDashes;
191
188
  })
192
- }).superRefine((values, ctx) => {
189
+ });
190
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((values, ctx) => {
193
191
  if (values.Base_Loan_Amount__c < 149999) {
194
192
  ctx.addIssue({
195
193
  code: z.ZodIssueCode.custom,
@@ -211,12 +209,22 @@ const QuickPricer = ({
211
209
  message: "Loan amount should be lower than property value"
212
210
  });
213
211
  }
212
+ if (!isValidHoneyPot(values)) {
213
+ ctx.addIssue({
214
+ code: z.ZodIssueCode.custom,
215
+ message: "fields are not valid."
216
+ });
217
+ }
214
218
  });
215
219
  const methods = useForm({
216
- resolver: zodResolver(z.intersection(schema, SalesforceSchema), {
217
- async: true
218
- }),
219
- mode: "all",
220
+ resolver: zodResolver(
221
+ gen_schema,
222
+ {
223
+ async: true
224
+ },
225
+ { mode: "async" }
226
+ ),
227
+ mode: "onChange",
220
228
  reValidateMode: "onChange",
221
229
  defaultValues: {
222
230
  Cash_Out_Amount__c: format(0),
@@ -233,7 +241,7 @@ const QuickPricer = ({
233
241
  const {
234
242
  handleSubmit,
235
243
  register,
236
- formState: { errors, isValid },
244
+ formState: { errors, isValid, isValidating },
237
245
  setValue
238
246
  } = methods;
239
247
  const submitForm = async (data) => {
@@ -261,612 +269,624 @@ const QuickPricer = ({
261
269
  }
262
270
  )
263
271
  ] }),
264
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
265
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
266
- /* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Loan Details" }) }),
267
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
268
- CurrencyInput,
269
- {
270
- id: "Base_Loan_Amount__c",
271
- ...register("Base_Loan_Amount__c", {
272
- required: true
273
- }),
274
- label: "Loan Amount",
275
- sizes: "medium",
276
- required: true,
277
- error: !!errors.Base_Loan_Amount__c,
278
- helperText: errors.Base_Loan_Amount__c?.message,
279
- variant,
280
- maxfractiondigits: 0,
281
- minfractiondigits: 0
282
- }
283
- ) }),
284
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
285
- CurrencyInput,
286
- {
287
- id: "Appraised_Value__c",
288
- ...register("Appraised_Value__c", {
289
- required: true,
290
- deps: ["Base_Loan_Amount__c"]
291
- }),
292
- label: "Property Value",
293
- sizes: "medium",
294
- required: true,
295
- error: !!errors.Appraised_Value__c,
296
- helperText: errors.Appraised_Value__c?.message,
297
- variant,
298
- maxfractiondigits: 0,
299
- minfractiondigits: 0
300
- }
301
- ) }),
302
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
303
- Dropdown,
304
- {
305
- id: "Loan_Purpose__c",
306
- ...register("Loan_Purpose__c", {
307
- required: true
308
- }),
309
- label: "Purpose",
310
- sizes: "medium",
311
- required: true,
312
- error: !!errors.Loan_Purpose__c,
313
- helperText: errors.Loan_Purpose__c?.message,
314
- variant,
315
- defaultValue: "",
316
- onChange: (event) => {
317
- if (event.target.value === "RefiCashout") {
318
- setRefiCashOut(true);
319
- } else {
320
- setRefiCashOut(false);
321
- setValue("Cash_Out_Amount__c", format(0));
272
+ /* @__PURE__ */ jsxs(
273
+ "form",
274
+ {
275
+ className: form,
276
+ onSubmit: async (e) => {
277
+ onValidate && onValidate(e);
278
+ await handleSubmit(submitForm)(e);
279
+ e.preventDefault();
280
+ },
281
+ children: [
282
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
283
+ /* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Loan Details" }) }),
284
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
285
+ CurrencyInput,
286
+ {
287
+ id: "Base_Loan_Amount__c",
288
+ ...register("Base_Loan_Amount__c", {
289
+ required: true
290
+ }),
291
+ label: "Loan Amount",
292
+ sizes: "medium",
293
+ required: true,
294
+ error: !!errors.Base_Loan_Amount__c,
295
+ helperText: errors.Base_Loan_Amount__c?.message,
296
+ variant,
297
+ maxfractiondigits: 0,
298
+ minfractiondigits: 0
322
299
  }
323
- },
324
- children: [
325
- /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
326
- Purposes.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
327
- ]
328
- }
329
- ) }),
330
- refiCashOut && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
331
- CurrencyInput,
332
- {
333
- id: "Cash_Out_Amount__c",
334
- ...register("Cash_Out_Amount__c", {
335
- required: true
336
- }),
337
- label: "Cash Out",
338
- sizes: "medium",
339
- required: true,
340
- error: !!errors.Cash_Out_Amount__c,
341
- helperText: errors.Cash_Out_Amount__c?.message,
342
- variant,
343
- maxfractiondigits: 0,
344
- minfractiondigits: 0
345
- }
346
- ) }),
347
- /* @__PURE__ */ jsxs("div", { className: clsx(one_row, checkbox_group), children: [
348
- /* @__PURE__ */ jsx(
349
- Checkbox,
350
- {
351
- id: "Interest_Only__c",
352
- ...register("Interest_Only__c"),
353
- sizes: "medium",
354
- error: !!errors.Interest_Only__c,
355
- helperText: errors.Interest_Only__c?.message,
356
- variant,
357
- value: 1,
358
- children: "Interest Only"
359
- }
360
- ),
361
- /* @__PURE__ */ jsx(
362
- Checkbox,
363
- {
364
- id: "Self_Employed__c",
365
- ...register("Self_Employed__c"),
366
- sizes: "medium",
367
- error: !!errors.Self_Employed__c,
368
- helperText: errors.Self_Employed__c?.message,
369
- variant,
370
- value: 1,
371
- children: "Self Employed"
372
- }
373
- ),
374
- /* @__PURE__ */ jsx(
375
- Checkbox,
376
- {
377
- id: "Pledged_Assets__c",
378
- ...register("Pledged_Assets__c"),
379
- sizes: "medium",
380
- error: !!errors.Pledged_Assets__c,
381
- helperText: errors.Pledged_Assets__c?.message,
382
- variant,
383
- value: 1,
384
- children: "Pledget Assets"
385
- }
386
- ),
387
- /* @__PURE__ */ jsx(
388
- Checkbox,
389
- {
390
- id: "Cross_Collateralization__c",
391
- ...register("Cross_Collateralization__c"),
392
- sizes: "medium",
393
- error: !!errors.Cross_Collateralization__c,
394
- helperText: errors.Cross_Collateralization__c?.message,
395
- variant,
396
- value: 1,
397
- children: "Cross Collateralization"
398
- }
399
- )
400
- ] }),
401
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
402
- Dropdown,
403
- {
404
- id: "Representative_FICO__c",
405
- ...register("Representative_FICO__c", {
406
- required: true
407
- }),
408
- label: "FICO",
409
- sizes: "medium",
410
- required: true,
411
- error: !!errors.Representative_FICO__c,
412
- helperText: errors.Representative_FICO__c?.message,
413
- variant,
414
- defaultValue: "default",
415
- children: [
416
- /* @__PURE__ */ jsx("option", { value: "default", disabled: true, children: "Select option" }),
417
- RepresentativesFico.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
418
- ]
419
- }
420
- ) }),
421
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
422
- Input,
423
- {
424
- id: "Months_Reserves__c",
425
- ...register("Months_Reserves__c", {
426
- required: true,
427
- max: 100,
428
- min: 0
429
- }),
430
- label: "Months of Reserves",
431
- sizes: "medium",
432
- required: true,
433
- error: !!errors.Months_Reserves__c,
434
- helperText: errors.Months_Reserves__c?.message,
435
- variant,
436
- type: "number",
437
- max: 100,
438
- min: 0
439
- }
440
- ) }),
441
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
442
- Dropdown,
443
- {
444
- id: "Underwriting_Document_Type__c",
445
- ...register("Underwriting_Document_Type__c", {
446
- required: true
447
- }),
448
- label: "Underwriting / Doc Type",
449
- sizes: "medium",
450
- required: true,
451
- error: !!errors.Underwriting_Document_Type__c,
452
- helperText: errors.Underwriting_Document_Type__c?.message,
453
- variant,
454
- defaultValue: "default",
455
- onChange: (event) => {
456
- if (event.target.value === "InvestorDscr") {
457
- setDSCR_Ratio(true);
458
- } else {
459
- setDSCR_Ratio(false);
460
- setValue("Debt_To_Income_Ratio__c", 0);
300
+ ) }),
301
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
302
+ CurrencyInput,
303
+ {
304
+ id: "Appraised_Value__c",
305
+ ...register("Appraised_Value__c", {
306
+ required: true,
307
+ deps: ["Base_Loan_Amount__c"]
308
+ }),
309
+ label: "Property Value",
310
+ sizes: "medium",
311
+ required: true,
312
+ error: !!errors.Appraised_Value__c,
313
+ helperText: errors.Appraised_Value__c?.message,
314
+ variant,
315
+ maxfractiondigits: 0,
316
+ minfractiondigits: 0
317
+ }
318
+ ) }),
319
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
320
+ Dropdown,
321
+ {
322
+ id: "Loan_Purpose__c",
323
+ ...register("Loan_Purpose__c", {
324
+ required: true
325
+ }),
326
+ label: "Purpose",
327
+ sizes: "medium",
328
+ required: true,
329
+ error: !!errors.Loan_Purpose__c,
330
+ helperText: errors.Loan_Purpose__c?.message,
331
+ variant,
332
+ defaultValue: "",
333
+ onChange: (event) => {
334
+ if (event.target.value === "RefiCashout") {
335
+ setRefiCashOut(true);
336
+ } else {
337
+ setRefiCashOut(false);
338
+ setValue("Cash_Out_Amount__c", format(0));
339
+ }
340
+ },
341
+ children: [
342
+ /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
343
+ Purposes.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
344
+ ]
345
+ }
346
+ ) }),
347
+ refiCashOut && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
348
+ CurrencyInput,
349
+ {
350
+ id: "Cash_Out_Amount__c",
351
+ ...register("Cash_Out_Amount__c", {
352
+ required: true
353
+ }),
354
+ label: "Cash Out",
355
+ sizes: "medium",
356
+ required: true,
357
+ error: !!errors.Cash_Out_Amount__c,
358
+ helperText: errors.Cash_Out_Amount__c?.message,
359
+ variant,
360
+ maxfractiondigits: 0,
361
+ minfractiondigits: 0
461
362
  }
462
- },
463
- children: [
464
- /* @__PURE__ */ jsx("option", { value: "default", disabled: true, children: "Select option" }),
465
- DocType.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
466
- ]
467
- }
468
- ) }),
469
- DSCR_Ratio && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
470
- Input,
471
- {
472
- id: "Debt_To_Income_Ratio__c",
473
- ...register("Debt_To_Income_Ratio__c", {
474
- required: true
475
- }),
476
- label: "DSCR Ratio",
477
- sizes: "medium",
478
- required: true,
479
- error: !!errors.Debt_To_Income_Ratio__c,
480
- helperText: errors.Debt_To_Income_Ratio__c?.message,
481
- variant,
482
- type: "number",
483
- step: 0.1
484
- }
485
- ) }),
486
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
487
- Dropdown,
488
- {
489
- id: "Citizenship__c",
490
- ...register("Citizenship__c", {
491
- required: true
492
- }),
493
- label: "Citizenship",
494
- sizes: "medium",
495
- required: true,
496
- error: !!errors.Citizenship__c,
497
- helperText: errors.Citizenship__c?.message,
498
- variant,
499
- defaultValue: "default",
500
- children: [
501
- /* @__PURE__ */ jsx("option", { value: "default", disabled: true, children: "Select option" }),
502
- Citizenship.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
503
- ]
504
- }
505
- ) }),
506
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
507
- Dropdown,
508
- {
509
- id: "Mortgage_Lates_12",
510
- ...register("Mortgage_Lates_12", {
511
- required: true
512
- }),
513
- label: "12 Month Mortgage History",
514
- sizes: "medium",
515
- required: true,
516
- error: !!errors.Mortgage_Lates_12,
517
- helperText: errors.Mortgage_Lates_12?.message,
518
- variant,
519
- defaultValue: "0x30",
520
- children: MortgageLates12.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, `${item.value}_12`))
521
- }
522
- ) }),
523
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
524
- Dropdown,
525
- {
526
- id: "Mortgage_Lates_24",
527
- ...register("Mortgage_Lates_24", {
528
- required: true
529
- }),
530
- label: "24 Month Mortgage History",
531
- sizes: "medium",
532
- required: true,
533
- error: !!errors.Mortgage_Lates_24,
534
- helperText: errors.Mortgage_Lates_24?.message,
535
- variant,
536
- defaultValue: "0x30",
537
- children: MortgageLates24.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, `${item.value}_24`))
538
- }
539
- ) }),
540
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
541
- Dropdown,
542
- {
543
- id: "HousingEventType__c",
544
- ...register("HousingEventType__c", {
545
- required: true
546
- }),
547
- label: "Housing Event Type",
548
- sizes: "medium",
549
- required: true,
550
- error: !!errors.HousingEventType__c,
551
- helperText: errors.HousingEventType__c?.message,
552
- variant,
553
- onChange: (event) => {
554
- if (event.target.value !== "None") {
555
- setHouseEventHistory(true);
556
- } else {
557
- setHouseEventHistory(false);
558
- setValue("housingEventSeasoning__c", "NotApplicable");
363
+ ) }),
364
+ /* @__PURE__ */ jsxs("div", { className: clsx(one_row, checkbox_group), children: [
365
+ /* @__PURE__ */ jsx(
366
+ Checkbox,
367
+ {
368
+ id: "Interest_Only__c",
369
+ ...register("Interest_Only__c"),
370
+ sizes: "medium",
371
+ error: !!errors.Interest_Only__c,
372
+ helperText: errors.Interest_Only__c?.message,
373
+ variant,
374
+ value: 1,
375
+ children: "Interest Only"
376
+ }
377
+ ),
378
+ /* @__PURE__ */ jsx(
379
+ Checkbox,
380
+ {
381
+ id: "Self_Employed__c",
382
+ ...register("Self_Employed__c"),
383
+ sizes: "medium",
384
+ error: !!errors.Self_Employed__c,
385
+ helperText: errors.Self_Employed__c?.message,
386
+ variant,
387
+ value: 1,
388
+ children: "Self Employed"
389
+ }
390
+ ),
391
+ /* @__PURE__ */ jsx(
392
+ Checkbox,
393
+ {
394
+ id: "Pledged_Assets__c",
395
+ ...register("Pledged_Assets__c"),
396
+ sizes: "medium",
397
+ error: !!errors.Pledged_Assets__c,
398
+ helperText: errors.Pledged_Assets__c?.message,
399
+ variant,
400
+ value: 1,
401
+ children: "Pledged Assets"
402
+ }
403
+ ),
404
+ /* @__PURE__ */ jsx(
405
+ Checkbox,
406
+ {
407
+ id: "Cross_Collateralization__c",
408
+ ...register("Cross_Collateralization__c"),
409
+ sizes: "medium",
410
+ error: !!errors.Cross_Collateralization__c,
411
+ helperText: errors.Cross_Collateralization__c?.message,
412
+ variant,
413
+ value: 1,
414
+ children: "Cross Collateralization"
415
+ }
416
+ )
417
+ ] }),
418
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
419
+ Dropdown,
420
+ {
421
+ id: "Representative_FICO__c",
422
+ ...register("Representative_FICO__c", {
423
+ required: true
424
+ }),
425
+ label: "FICO",
426
+ sizes: "medium",
427
+ required: true,
428
+ error: !!errors.Representative_FICO__c,
429
+ helperText: errors.Representative_FICO__c?.message,
430
+ variant,
431
+ defaultValue: "default",
432
+ children: [
433
+ /* @__PURE__ */ jsx("option", { value: "default", disabled: true, children: "Select option" }),
434
+ RepresentativesFico.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
435
+ ]
559
436
  }
560
- },
561
- defaultValue: "None",
562
- children: HousingEventType.map((item) => /* @__PURE__ */ jsx(
563
- "option",
437
+ ) }),
438
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
439
+ Input,
564
440
  {
565
- value: item.value,
566
- children: item.text
567
- },
568
- `${item.value}_Housing_Event_Type`
569
- ))
570
- }
571
- ) }),
572
- houseEventHistory && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
573
- Dropdown,
574
- {
575
- id: "housingEventSeasoning__c",
576
- ...register("housingEventSeasoning__c", {
577
- required: true
578
- }),
579
- label: "Housing Event History",
580
- sizes: "medium",
581
- required: true,
582
- error: !!errors.housingEventSeasoning__c,
583
- helperText: errors.housingEventSeasoning__c?.message,
584
- variant,
585
- defaultValue: "NotApplicable",
586
- children: HousingEventHistory.map((item) => /* @__PURE__ */ jsx(
587
- "option",
441
+ id: "Months_Reserves__c",
442
+ ...register("Months_Reserves__c", {
443
+ required: true,
444
+ max: 100,
445
+ min: 0
446
+ }),
447
+ label: "Months of Reserves",
448
+ sizes: "medium",
449
+ required: true,
450
+ error: !!errors.Months_Reserves__c,
451
+ helperText: errors.Months_Reserves__c?.message,
452
+ variant,
453
+ type: "number",
454
+ max: 100,
455
+ min: 0
456
+ }
457
+ ) }),
458
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
459
+ Dropdown,
588
460
  {
589
- value: item.value,
590
- children: item.text
591
- },
592
- `${item.value}_Housing_Event_Seasoning`
593
- ))
594
- }
595
- ) }),
596
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
597
- Dropdown,
598
- {
599
- id: "bankruptcyType__c",
600
- ...register("bankruptcyType__c", {
601
- required: true
602
- }),
603
- label: "Bankruptcy Type",
604
- sizes: "medium",
605
- required: true,
606
- error: !!errors.bankruptcyType__c,
607
- helperText: errors.bankruptcyType__c?.message,
608
- variant,
609
- defaultValue: "None",
610
- onChange: (event) => {
611
- if (event.target.value !== "None") {
612
- setBankruptcySeasoning(true);
613
- } else {
614
- setBankruptcySeasoning(false);
615
- setValue("bankruptcySeasoning__c", "NotApplicable");
461
+ id: "Underwriting_Document_Type__c",
462
+ ...register("Underwriting_Document_Type__c", {
463
+ required: true
464
+ }),
465
+ label: "Underwriting / Doc Type",
466
+ sizes: "medium",
467
+ required: true,
468
+ error: !!errors.Underwriting_Document_Type__c,
469
+ helperText: errors.Underwriting_Document_Type__c?.message,
470
+ variant,
471
+ defaultValue: "default",
472
+ onChange: (event) => {
473
+ if (event.target.value === "InvestorDscr") {
474
+ setDSCR_Ratio(true);
475
+ } else {
476
+ setDSCR_Ratio(false);
477
+ setValue("Debt_To_Income_Ratio__c", 0);
478
+ }
479
+ },
480
+ children: [
481
+ /* @__PURE__ */ jsx("option", { value: "default", disabled: true, children: "Select option" }),
482
+ DocType.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
483
+ ]
616
484
  }
617
- },
618
- children: BankruptcyType.map((item) => /* @__PURE__ */ jsx(
619
- "option",
485
+ ) }),
486
+ DSCR_Ratio && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
487
+ Input,
620
488
  {
621
- value: item.value,
622
- children: item.text
623
- },
624
- `${item.value}_Bankruptcy_Type`
625
- ))
626
- }
627
- ) }),
628
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
629
- Input,
630
- {
631
- id: "Number_of_Properties_Financed__c",
632
- ...register("Number_of_Properties_Financed__c", {
633
- required: true,
634
- max: 100,
635
- min: 0
636
- }),
637
- label: "# of Properties Financed",
638
- sizes: "medium",
639
- required: true,
640
- error: !!errors.Number_of_Properties_Financed__c,
641
- helperText: errors.Number_of_Properties_Financed__c?.message,
642
- variant,
643
- type: "number",
644
- max: 100,
645
- min: 0
646
- }
647
- ) }),
648
- bankruptcySeasoning && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
649
- Dropdown,
650
- {
651
- id: "bankruptcySeasoning__c",
652
- ...register("bankruptcySeasoning__c", {
653
- required: true
654
- }),
655
- label: "Bankruptcy Seasoning",
656
- sizes: "medium",
657
- required: true,
658
- error: !!errors.bankruptcySeasoning__c,
659
- helperText: errors.bankruptcySeasoning__c?.message,
660
- variant,
661
- defaultValue: "NotApplicable",
662
- children: BankruptcySeasoning.map((item) => /* @__PURE__ */ jsx(
663
- "option",
489
+ id: "Debt_To_Income_Ratio__c",
490
+ ...register("Debt_To_Income_Ratio__c", {
491
+ required: true
492
+ }),
493
+ label: "DSCR Ratio",
494
+ sizes: "medium",
495
+ required: true,
496
+ error: !!errors.Debt_To_Income_Ratio__c,
497
+ helperText: errors.Debt_To_Income_Ratio__c?.message,
498
+ variant,
499
+ type: "number",
500
+ step: 0.1
501
+ }
502
+ ) }),
503
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
504
+ Dropdown,
664
505
  {
665
- value: item.value,
666
- children: item.text
667
- },
668
- `${item.value}_Bankruptcy_Seasoning`
669
- ))
670
- }
671
- ) }),
672
- /* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Property Information" }) }),
673
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
674
- Input,
675
- {
676
- id: "Zip__c",
677
- ...register("Zip__c", { required: true }),
678
- label: "Zip Code",
679
- sizes: "medium",
680
- required: true,
681
- error: !!errors.Zip__c,
682
- helperText: errors.Zip__c?.message,
683
- variant
684
- }
685
- ) }),
686
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
687
- Dropdown,
688
- {
689
- id: "Property_Type__c",
690
- ...register("Property_Type__c", {
691
- required: true
692
- }),
693
- label: "Property Type",
694
- sizes: "medium",
695
- required: true,
696
- error: !!errors.Property_Type__c,
697
- helperText: errors.Property_Type__c?.message,
698
- variant,
699
- defaultValue: "Default",
700
- onChange: (event) => {
701
- if (event.target.value === "SingleFamily") {
702
- setNumberOfUnits(true);
703
- } else {
704
- setNumberOfUnits(false);
705
- setValue("Units__c", "OneUnit");
506
+ id: "Citizenship__c",
507
+ ...register("Citizenship__c", {
508
+ required: true
509
+ }),
510
+ label: "Citizenship",
511
+ sizes: "medium",
512
+ required: true,
513
+ error: !!errors.Citizenship__c,
514
+ helperText: errors.Citizenship__c?.message,
515
+ variant,
516
+ defaultValue: "default",
517
+ children: [
518
+ /* @__PURE__ */ jsx("option", { value: "default", disabled: true, children: "Select option" }),
519
+ Citizenship.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
520
+ ]
706
521
  }
707
- },
708
- children: [
709
- /* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
710
- PropertyType.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
711
- ]
712
- }
713
- ) }),
714
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
715
- Dropdown,
716
- {
717
- id: "Occupance__c",
718
- ...register("Occupance__c", {
719
- required: true
720
- }),
721
- label: "Occupancy",
722
- sizes: "medium",
723
- required: true,
724
- error: !!errors.Occupance__c,
725
- helperText: errors.Occupance__c?.message,
726
- variant,
727
- defaultValue: "",
728
- onChange: (event) => {
729
- if (event.target.value === "InvestmentProperty") {
730
- setPrepaymentPenalty(true);
731
- } else {
732
- setPrepaymentPenalty(false);
733
- setValue("Prepayment_Penalty__c", "None");
522
+ ) }),
523
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
524
+ Dropdown,
525
+ {
526
+ id: "Mortgage_Lates_12",
527
+ ...register("Mortgage_Lates_12", {
528
+ required: true
529
+ }),
530
+ label: "12 Month Mortgage History",
531
+ sizes: "medium",
532
+ required: true,
533
+ error: !!errors.Mortgage_Lates_12,
534
+ helperText: errors.Mortgage_Lates_12?.message,
535
+ variant,
536
+ defaultValue: "0x30",
537
+ children: MortgageLates12.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, `${item.value}_12`))
734
538
  }
735
- },
736
- children: [
737
- /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
738
- Occupancy.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
739
- ]
740
- }
741
- ) }),
742
- numberOfUnits && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
743
- Dropdown,
744
- {
745
- id: "Units__c",
746
- ...register("Units__c", {
747
- required: true
748
- }),
749
- label: "# of Units",
750
- sizes: "medium",
751
- required: true,
752
- error: !!errors.Units__c,
753
- helperText: errors.Units__c?.message,
754
- variant,
755
- defaultValue: "OneUnit",
756
- children: NumberOfUnits.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
757
- }
758
- ) }),
759
- prepaymentPenalty && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
760
- Dropdown,
761
- {
762
- id: "Prepayment_Penalty__c",
763
- ...register("Prepayment_Penalty__c", {
764
- required: true
765
- }),
766
- label: "Prepayment Penalty",
767
- sizes: "medium",
768
- required: true,
769
- error: !!errors.Prepayment_Penalty__c,
770
- helperText: errors.Prepayment_Penalty__c?.message,
771
- variant,
772
- defaultValue: "None",
773
- children: PrepaymentPenalty.map((item) => /* @__PURE__ */ jsx(
774
- "option",
539
+ ) }),
540
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
541
+ Dropdown,
775
542
  {
776
- value: item.value,
777
- children: item.text
778
- },
779
- `${item.value}_Prepayment_Penalty`
780
- ))
781
- }
782
- ) }),
783
- /* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Broker Information" }) }),
784
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
785
- Dropdown,
786
- {
787
- id: "Broker_Compensation__c",
788
- ...register("Broker_Compensation__c", {
789
- required: true
790
- }),
791
- label: "Broker Compensation",
792
- sizes: "medium",
793
- required: true,
794
- error: !!errors.Broker_Compensation__c,
795
- helperText: errors.Broker_Compensation__c?.message,
796
- variant,
797
- defaultValue: "Default",
798
- children: [
799
- /* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
800
- BrokerConpensation.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
801
- ]
802
- }
803
- ) }),
804
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
805
- Input,
806
- {
807
- id: "NMLS__c",
808
- ...register("NMLS__c", {
809
- required: true,
810
- min: 4,
811
- max: 15
812
- }),
813
- label: "Individual NMLS ID",
814
- sizes: "medium",
815
- required: true,
816
- error: !!errors.NMLS__c,
817
- helperText: errors.NMLS__c?.message,
818
- variant
819
- }
820
- ) }),
821
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
822
- Input,
823
- {
824
- id: "Email_Address__c",
825
- ...register("Email_Address__c", {
826
- required: true,
827
- validate: {
828
- isValid: associatedEmail
543
+ id: "Mortgage_Lates_24",
544
+ ...register("Mortgage_Lates_24", {
545
+ required: true
546
+ }),
547
+ label: "24 Month Mortgage History",
548
+ sizes: "medium",
549
+ required: true,
550
+ error: !!errors.Mortgage_Lates_24,
551
+ helperText: errors.Mortgage_Lates_24?.message,
552
+ variant,
553
+ defaultValue: "0x30",
554
+ children: MortgageLates24.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, `${item.value}_24`))
829
555
  }
830
- }),
831
- label: "Email Address",
832
- sizes: "medium",
833
- required: true,
834
- error: !!errors.Email_Address__c,
835
- helperText: errors.Email_Address__c?.message,
836
- variant,
837
- type: "email"
838
- }
839
- ) }),
840
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
841
- InputPhone,
842
- {
843
- id: "Cell_Phone__c",
844
- ...register("Cell_Phone__c", {
845
- required: true,
846
- maxLength: 12
847
- }),
848
- label: "Phone",
849
- sizes: "medium",
850
- required: true,
851
- error: !!errors.Cell_Phone__c,
852
- helperText: errors.Cell_Phone__c?.message,
853
- variant
854
- }
855
- ) })
856
- ] }),
857
- children,
858
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
859
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
860
- Button,
861
- {
862
- color: getVariant(callToAction?.variant),
863
- as: "button",
864
- type: "submit",
865
- disabled: !isValid,
866
- children: callToAction?.displayText
867
- }
868
- ) })
869
- ] })
556
+ ) }),
557
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
558
+ Dropdown,
559
+ {
560
+ id: "HousingEventType__c",
561
+ ...register("HousingEventType__c", {
562
+ required: true
563
+ }),
564
+ label: "Housing Event Type",
565
+ sizes: "medium",
566
+ required: true,
567
+ error: !!errors.HousingEventType__c,
568
+ helperText: errors.HousingEventType__c?.message,
569
+ variant,
570
+ onChange: (event) => {
571
+ if (event.target.value !== "None") {
572
+ setHouseEventHistory(true);
573
+ } else {
574
+ setHouseEventHistory(false);
575
+ setValue("housingEventSeasoning__c", "NotApplicable");
576
+ }
577
+ },
578
+ defaultValue: "None",
579
+ children: HousingEventType.map((item) => /* @__PURE__ */ jsx(
580
+ "option",
581
+ {
582
+ value: item.value,
583
+ children: item.text
584
+ },
585
+ `${item.value}_Housing_Event_Type`
586
+ ))
587
+ }
588
+ ) }),
589
+ houseEventHistory && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
590
+ Dropdown,
591
+ {
592
+ id: "housingEventSeasoning__c",
593
+ ...register("housingEventSeasoning__c", {
594
+ required: true
595
+ }),
596
+ label: "Housing Event History",
597
+ sizes: "medium",
598
+ required: true,
599
+ error: !!errors.housingEventSeasoning__c,
600
+ helperText: errors.housingEventSeasoning__c?.message,
601
+ variant,
602
+ defaultValue: "NotApplicable",
603
+ children: HousingEventHistory.map((item) => /* @__PURE__ */ jsx(
604
+ "option",
605
+ {
606
+ value: item.value,
607
+ children: item.text
608
+ },
609
+ `${item.value}_Housing_Event_Seasoning`
610
+ ))
611
+ }
612
+ ) }),
613
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
614
+ Dropdown,
615
+ {
616
+ id: "bankruptcyType__c",
617
+ ...register("bankruptcyType__c", {
618
+ required: true
619
+ }),
620
+ label: "Bankruptcy Type",
621
+ sizes: "medium",
622
+ required: true,
623
+ error: !!errors.bankruptcyType__c,
624
+ helperText: errors.bankruptcyType__c?.message,
625
+ variant,
626
+ defaultValue: "None",
627
+ onChange: (event) => {
628
+ if (event.target.value !== "None") {
629
+ setBankruptcySeasoning(true);
630
+ } else {
631
+ setBankruptcySeasoning(false);
632
+ setValue("bankruptcySeasoning__c", "NotApplicable");
633
+ }
634
+ },
635
+ children: BankruptcyType.map((item) => /* @__PURE__ */ jsx(
636
+ "option",
637
+ {
638
+ value: item.value,
639
+ children: item.text
640
+ },
641
+ `${item.value}_Bankruptcy_Type`
642
+ ))
643
+ }
644
+ ) }),
645
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
646
+ Input,
647
+ {
648
+ id: "Number_of_Properties_Financed__c",
649
+ ...register("Number_of_Properties_Financed__c", {
650
+ required: true,
651
+ max: 100,
652
+ min: 0
653
+ }),
654
+ label: "# of Properties Financed",
655
+ sizes: "medium",
656
+ required: true,
657
+ error: !!errors.Number_of_Properties_Financed__c,
658
+ helperText: errors.Number_of_Properties_Financed__c?.message,
659
+ variant,
660
+ type: "number",
661
+ max: 100,
662
+ min: 0
663
+ }
664
+ ) }),
665
+ bankruptcySeasoning && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
666
+ Dropdown,
667
+ {
668
+ id: "bankruptcySeasoning__c",
669
+ ...register("bankruptcySeasoning__c", {
670
+ required: true
671
+ }),
672
+ label: "Bankruptcy Seasoning",
673
+ sizes: "medium",
674
+ required: true,
675
+ error: !!errors.bankruptcySeasoning__c,
676
+ helperText: errors.bankruptcySeasoning__c?.message,
677
+ variant,
678
+ defaultValue: "NotApplicable",
679
+ children: BankruptcySeasoning.map((item) => /* @__PURE__ */ jsx(
680
+ "option",
681
+ {
682
+ value: item.value,
683
+ children: item.text
684
+ },
685
+ `${item.value}_Bankruptcy_Seasoning`
686
+ ))
687
+ }
688
+ ) }),
689
+ /* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Property Information" }) }),
690
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
691
+ Input,
692
+ {
693
+ id: "Zip__c",
694
+ ...register("Zip__c", { required: true }),
695
+ label: "Zip Code",
696
+ sizes: "medium",
697
+ required: true,
698
+ error: !!errors.Zip__c,
699
+ helperText: errors.Zip__c?.message,
700
+ variant
701
+ }
702
+ ) }),
703
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
704
+ Dropdown,
705
+ {
706
+ id: "Property_Type__c",
707
+ ...register("Property_Type__c", {
708
+ required: true
709
+ }),
710
+ label: "Property Type",
711
+ sizes: "medium",
712
+ required: true,
713
+ error: !!errors.Property_Type__c,
714
+ helperText: errors.Property_Type__c?.message,
715
+ variant,
716
+ defaultValue: "Default",
717
+ onChange: (event) => {
718
+ if (event.target.value === "SingleFamily") {
719
+ setNumberOfUnits(true);
720
+ } else {
721
+ setNumberOfUnits(false);
722
+ setValue("Units__c", "OneUnit");
723
+ }
724
+ },
725
+ children: [
726
+ /* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
727
+ PropertyType.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
728
+ ]
729
+ }
730
+ ) }),
731
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
732
+ Dropdown,
733
+ {
734
+ id: "Occupance__c",
735
+ ...register("Occupance__c", {
736
+ required: true
737
+ }),
738
+ label: "Occupancy",
739
+ sizes: "medium",
740
+ required: true,
741
+ error: !!errors.Occupance__c,
742
+ helperText: errors.Occupance__c?.message,
743
+ variant,
744
+ defaultValue: "",
745
+ onChange: (event) => {
746
+ if (event.target.value === "InvestmentProperty") {
747
+ setPrepaymentPenalty(true);
748
+ } else {
749
+ setPrepaymentPenalty(false);
750
+ setValue("Prepayment_Penalty__c", "None");
751
+ }
752
+ },
753
+ children: [
754
+ /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
755
+ Occupancy.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
756
+ ]
757
+ }
758
+ ) }),
759
+ numberOfUnits && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
760
+ Dropdown,
761
+ {
762
+ id: "Units__c",
763
+ ...register("Units__c", {
764
+ required: true
765
+ }),
766
+ label: "# of Units",
767
+ sizes: "medium",
768
+ required: true,
769
+ error: !!errors.Units__c,
770
+ helperText: errors.Units__c?.message,
771
+ variant,
772
+ defaultValue: "OneUnit",
773
+ children: NumberOfUnits.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
774
+ }
775
+ ) }),
776
+ prepaymentPenalty && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
777
+ Dropdown,
778
+ {
779
+ id: "Prepayment_Penalty__c",
780
+ ...register("Prepayment_Penalty__c", {
781
+ required: true
782
+ }),
783
+ label: "Prepayment Penalty",
784
+ sizes: "medium",
785
+ required: true,
786
+ error: !!errors.Prepayment_Penalty__c,
787
+ helperText: errors.Prepayment_Penalty__c?.message,
788
+ variant,
789
+ defaultValue: "None",
790
+ children: PrepaymentPenalty.map((item) => /* @__PURE__ */ jsx(
791
+ "option",
792
+ {
793
+ value: item.value,
794
+ children: item.text
795
+ },
796
+ `${item.value}_Prepayment_Penalty`
797
+ ))
798
+ }
799
+ ) }),
800
+ /* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Broker Information" }) }),
801
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
802
+ Dropdown,
803
+ {
804
+ id: "Broker_Compensation__c",
805
+ ...register("Broker_Compensation__c", {
806
+ required: true
807
+ }),
808
+ label: "Broker Compensation",
809
+ sizes: "medium",
810
+ required: true,
811
+ error: !!errors.Broker_Compensation__c,
812
+ helperText: errors.Broker_Compensation__c?.message,
813
+ variant,
814
+ defaultValue: "Default",
815
+ children: [
816
+ /* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
817
+ BrokerConpensation.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
818
+ ]
819
+ }
820
+ ) }),
821
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
822
+ Input,
823
+ {
824
+ id: "NMLS__c",
825
+ ...register("NMLS__c", {
826
+ required: true,
827
+ min: 4,
828
+ max: 15
829
+ }),
830
+ label: "Individual NMLS ID",
831
+ sizes: "medium",
832
+ required: true,
833
+ error: !!errors.NMLS__c,
834
+ helperText: errors.NMLS__c?.message,
835
+ variant
836
+ }
837
+ ) }),
838
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
839
+ Input,
840
+ {
841
+ id: "Email_Address__c",
842
+ ...register("Email_Address__c", {
843
+ required: true,
844
+ validate: {
845
+ isValid: associatedEmail
846
+ }
847
+ }),
848
+ label: "Email Address",
849
+ sizes: "medium",
850
+ required: true,
851
+ error: !!errors.Email_Address__c,
852
+ helperText: errors.Email_Address__c?.message,
853
+ variant,
854
+ type: "email"
855
+ }
856
+ ) }),
857
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
858
+ InputPhone,
859
+ {
860
+ id: "Cell_Phone__c",
861
+ ...register("Cell_Phone__c", {
862
+ required: true,
863
+ maxLength: 12
864
+ }),
865
+ label: "Phone",
866
+ sizes: "medium",
867
+ required: true,
868
+ error: !!errors.Cell_Phone__c,
869
+ helperText: errors.Cell_Phone__c?.message,
870
+ variant
871
+ }
872
+ ) }),
873
+ /* @__PURE__ */ jsx(HoneyPot, { register, variant })
874
+ ] }),
875
+ children,
876
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
877
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
878
+ Button,
879
+ {
880
+ color: getVariant(callToAction?.variant),
881
+ as: "button",
882
+ type: "submit",
883
+ disabled: !isValid || isValidating,
884
+ children: callToAction?.displayText
885
+ }
886
+ ) })
887
+ ]
888
+ }
889
+ )
870
890
  ] }) })
871
891
  },
872
892
  id