@axos-web-dev/shared-components 1.0.99-dev-2 → 1.0.99-dev-5

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