@axos-web-dev/shared-components 0.0.155 → 0.0.156

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 (196) hide show
  1. package/dist/ATMLocator/ATMLocator.js +35 -32
  2. package/dist/Accordion/Accordion.css.js +4 -4
  3. package/dist/Accordion/Accordion.js +3 -3
  4. package/dist/AlertBanner/AlertBanner.css.js +1 -1
  5. package/dist/AlertBanner/index.js +3 -3
  6. package/dist/Article/Article.css.js +4 -4
  7. package/dist/ArticlesSet/ArticlesSet.css.js +4 -4
  8. package/dist/AwardsBanner/AwardsBanner.css.js +1 -1
  9. package/dist/AwardsItem/AwardsItem.css.js +2 -2
  10. package/dist/Blockquote/Blockquote.module.js +3 -3
  11. package/dist/BulletItem/BulletItem.css.js +2 -2
  12. package/dist/BulletItem/BulletItem.js +3 -3
  13. package/dist/Button/Button.css.js +4 -4
  14. package/dist/Button/Button.js +36 -33
  15. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +3 -3
  16. package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +3 -3
  17. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +4 -4
  18. package/dist/Calculators/AxosOneCalculator/index.js +3 -3
  19. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +4 -4
  20. package/dist/Calculators/BalanceAPYCalculator/index.js +3 -3
  21. package/dist/Calculators/Calculator.js +34 -31
  22. package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.js +1 -1
  23. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +3 -3
  24. package/dist/Calculators/calculator.css.js +4 -4
  25. package/dist/CallToActionBar/CallToActionBar.css.js +3 -3
  26. package/dist/Carousel/Carousel.css.js +3 -3
  27. package/dist/Carousel/index.js +36 -33
  28. package/dist/Chevron/Chevron.css.js +4 -4
  29. package/dist/Chevron/index.js +36 -33
  30. package/dist/CollectInformationAlert/CollectInformationAlert.css.js +4 -4
  31. package/dist/CollectInformationAlert/index.js +3 -3
  32. package/dist/Comparison/Comparison.css.js +7 -7
  33. package/dist/Comparison/Comparison.js +35 -32
  34. package/dist/ContentBanner/ContentBanner.css.js +4 -4
  35. package/dist/DownloadTile/DownloadTile.css.js +3 -3
  36. package/dist/ExecutiveBio/ExecutiveBio.css.js +4 -4
  37. package/dist/FaqAccordion/FaqAccordion.css.js +4 -4
  38. package/dist/FaqAccordion/index.js +36 -33
  39. package/dist/FooterDisclosure/FooterDisclosure.css.js +1 -1
  40. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +2 -2
  41. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +35 -32
  42. package/dist/Forms/ApplicationStart.js +5 -4
  43. package/dist/Forms/ClearingForm.js +5 -4
  44. package/dist/Forms/CommercialDeposits.js +5 -4
  45. package/dist/Forms/CommercialLending.js +5 -4
  46. package/dist/Forms/ContactCompany.js +5 -4
  47. package/dist/Forms/ContactUs.js +5 -4
  48. package/dist/Forms/ContactUsAAS.js +4 -3
  49. package/dist/Forms/ContactUsBusiness.js +36 -33
  50. package/dist/Forms/ContactUsNMLSId.js +36 -33
  51. package/dist/Forms/CpraRequest.js +4 -3
  52. package/dist/Forms/DealerServices.js +5 -4
  53. package/dist/Forms/EmailOnly.js +37 -34
  54. package/dist/Forms/EmailUs.js +4 -4
  55. package/dist/Forms/FormEnums.d.ts +57 -13
  56. package/dist/Forms/FormEnums.js +81 -63
  57. package/dist/Forms/FormProps.d.ts +1 -0
  58. package/dist/Forms/Forms.css.js +7 -7
  59. package/dist/Forms/MortgageRate/MortgageRateForm.js +37 -34
  60. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +1 -0
  61. package/dist/Forms/MortgageRate/MortgageRateWatch.js +36 -33
  62. package/dist/Forms/{QuickPricer.d.ts → QuickPricer/QuickPricerForm.d.ts} +24 -12
  63. package/dist/Forms/{QuickPricer.js → QuickPricer/QuickPricerForm.js} +179 -220
  64. package/dist/Forms/QuickPricer/QuickPricerResults.css.d.ts +2 -0
  65. package/dist/Forms/QuickPricer/QuickPricerResults.css.js +7 -0
  66. package/dist/Forms/QuickPricer/UserInformation.css.d.ts +7 -0
  67. package/dist/Forms/QuickPricer/UserInformation.css.js +19 -0
  68. package/dist/Forms/QuickPricer/UserInformation.d.ts +10 -0
  69. package/dist/Forms/QuickPricer/UserInformation.js +59 -0
  70. package/dist/Forms/QuickPricer/index.d.ts +4 -0
  71. package/dist/Forms/QuickPricer/index.js +18 -0
  72. package/dist/Forms/ScheduleCall.js +20 -5
  73. package/dist/Forms/ScheduleCallPremier.js +5 -4
  74. package/dist/Forms/SuccesForm.js +35 -32
  75. package/dist/Forms/WcplSurvey.js +4 -3
  76. package/dist/Forms/index.d.ts +5 -6
  77. package/dist/Forms/index.js +22 -8
  78. package/dist/HeroBanner/HeroBanner.css.js +5 -5
  79. package/dist/HeroBanner/LargeBanner.css.js +4 -4
  80. package/dist/HeroBanner/SelectionBanner.css.js +4 -4
  81. package/dist/Hyperlink/Hyperlink.css.js +1 -1
  82. package/dist/Hyperlink/index.js +35 -32
  83. package/dist/IconBillboard/IconBillboard.css.js +4 -4
  84. package/dist/ImageBillboard/ImageBillboard.css.js +4 -4
  85. package/dist/ImageBillboard/ImageBillboard.js +3 -3
  86. package/dist/ImageBillboard/ImageBillboardSet.js +3 -3
  87. package/dist/ImageLink/ImageLink.css.js +1 -1
  88. package/dist/ImageLink/ImageLink.js +35 -32
  89. package/dist/ImageLink/ImageLinkSet.js +35 -32
  90. package/dist/ImageLink/index.js +34 -31
  91. package/dist/Input/Checkbox.css.js +1 -1
  92. package/dist/Input/CurrencyInput.js +1 -0
  93. package/dist/Input/DatePicker.css.d.ts +1 -0
  94. package/dist/Input/DatePicker.css.js +6 -0
  95. package/dist/Input/DatePicker2.d.ts +21 -0
  96. package/dist/Input/DatePicker2.js +103 -0
  97. package/dist/Input/DatePickerComponents/DatePicker.d.ts +11 -0
  98. package/dist/Input/DatePickerComponents/DatePicker.js +13 -0
  99. package/dist/Input/DatePickerComponents/InputDate.d.ts +15 -0
  100. package/dist/Input/DatePickerComponents/InputDate.js +66 -0
  101. package/dist/Input/DatePickerComponents/index.d.ts +2 -0
  102. package/dist/Input/DatePickerComponents/index.js +6 -0
  103. package/dist/Input/Datepicker.d.ts +3 -0
  104. package/dist/Input/Datepicker.js +47 -0
  105. package/dist/Input/Dropdown.css.js +2 -2
  106. package/dist/Input/Input.css.js +4 -4
  107. package/dist/Input/InputAmount.js +1 -0
  108. package/dist/Input/InputDate.css.d.ts +6 -0
  109. package/dist/Input/InputDate.css.js +15 -0
  110. package/dist/Input/InputDate.d.ts +3 -0
  111. package/dist/Input/InputDate.js +47 -0
  112. package/dist/Input/InputPhone.js +1 -0
  113. package/dist/Input/InputProps.d.ts +5 -0
  114. package/dist/Input/RadioButton.css.js +1 -1
  115. package/dist/Input/index.d.ts +1 -0
  116. package/dist/Input/index.js +2 -0
  117. package/dist/Inputs/Input.css.js +3 -3
  118. package/dist/Insight/Featured/CategorySelector.css.js +5 -5
  119. package/dist/Insight/Featured/CategorySelector.js +34 -31
  120. package/dist/Insight/Featured/Featured.css.js +2 -2
  121. package/dist/Insight/Featured/Featured.js +36 -33
  122. package/dist/Insight/Featured/Header.css.js +1 -1
  123. package/dist/Insight/Featured/Header.js +35 -32
  124. package/dist/Insight/Insight.css.js +2 -2
  125. package/dist/Interstitial/Interstitial-variants.css.js +4 -4
  126. package/dist/LandingPageHeader/LandingPageHeader.css.js +3 -3
  127. package/dist/LandingPageHeader/LandingPageHeader.js +3 -3
  128. package/dist/LoadingIndicator/LoadingIndicator.css.js +1 -1
  129. package/dist/Modal/Modal.css.js +3 -3
  130. package/dist/Modal/Modal.js +35 -32
  131. package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +3 -3
  132. package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +3 -3
  133. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +3 -3
  134. package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +3 -3
  135. package/dist/NavigationMenu/AxosBank/NavBar.css.js +3 -3
  136. package/dist/NavigationMenu/AxosBank/NavData.js +36 -33
  137. package/dist/NavigationMenu/AxosBank/SubNavBar.js +35 -32
  138. package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +3 -3
  139. package/dist/NavigationMenu/AxosBank/index.js +34 -31
  140. package/dist/NavigationMenu/AxosClearing/NavBar.css.js +1 -1
  141. package/dist/PageNavItem/PageNavItem.css.js +4 -4
  142. package/dist/PageNavSet/PageNavigationSet.css.js +1 -1
  143. package/dist/SecondaryFooter/SecondaryFooter.css.js +3 -3
  144. package/dist/SetContainer/SetContainer.css.js +3 -3
  145. package/dist/SetContainer/SetContainer.js +36 -33
  146. package/dist/SocialMediaBar/SocialMediaBar.css.js +1 -1
  147. package/dist/StepItem/StepItem.css.js +3 -3
  148. package/dist/StepItemSet/StepItemSet.css.js +3 -3
  149. package/dist/Tab/Tab.css.js +3 -3
  150. package/dist/Table/Table.css.js +3 -3
  151. package/dist/Table/Table.d.ts +2 -1
  152. package/dist/Table/Table.interface.d.ts +1 -0
  153. package/dist/Table/Table.js +5 -3
  154. package/dist/TextBlock/TextBlock.css.js +3 -3
  155. package/dist/TopicalNavItem/TopicalNavItem.css.js +1 -1
  156. package/dist/TopicalNavSet/TopicalNavSet.css.js +1 -1
  157. package/dist/Typography/Typography.css.js +1 -1
  158. package/dist/VideoTile/VideoTile.css.js +4 -4
  159. package/dist/VideoTile/VideoTile.js +3 -3
  160. package/dist/VideoWrapper/VideoWrapper.css.js +1 -1
  161. package/dist/VideoWrapper/index.js +4 -4
  162. package/dist/assets/Blockquote/Blockquote.css.css +68 -68
  163. package/dist/assets/Forms/QuickPricer/QuickPricerResults.css +12 -0
  164. package/dist/assets/Forms/QuickPricer/UserInformation.css +70 -0
  165. package/dist/assets/Input/DatePicker.css +95 -0
  166. package/dist/assets/Input/InputDate.css +39 -0
  167. package/dist/assets/globals.css +3 -0
  168. package/dist/assets/node_modules/react-date-range/dist/styles.css.css +194 -0
  169. package/dist/assets/node_modules/react-date-range/dist/theme/default.css.css +385 -0
  170. package/dist/globals.css.js +2 -2
  171. package/dist/icons/ArrowIcon/ArrowIcon.css.js +3 -3
  172. package/dist/icons/CalendarIcon/CalendarIcon.d.ts +3 -0
  173. package/dist/icons/CalendarIcon/CalendarIcon.js +17 -0
  174. package/dist/icons/CalendarIcon/index.d.ts +1 -0
  175. package/dist/icons/CalendarIcon/index.js +4 -0
  176. package/dist/icons/CheckIcon/CheckIcon.css.js +3 -3
  177. package/dist/icons/DownloadIcon/DownloadIcon.css.js +3 -3
  178. package/dist/icons/FollowIcon/FollowIcon.css.js +3 -3
  179. package/dist/icons/Star/Star.css.js +1 -1
  180. package/dist/index.css.js +3 -3
  181. package/dist/main.js +24 -9
  182. package/dist/themes/axos.css.js +1 -1
  183. package/dist/themes/premier.css.js +2 -2
  184. package/dist/types/icon.d.ts +3 -0
  185. package/dist/types/icon.js +1 -0
  186. package/dist/types/popover.d.ts +8 -0
  187. package/dist/types/popover.js +1 -0
  188. package/dist/utils/constants/format.d.ts +1 -0
  189. package/dist/utils/constants/format.js +4 -0
  190. package/dist/utils/constants/popper.d.ts +6 -0
  191. package/dist/utils/constants/popper.js +10 -0
  192. package/dist/utils/hooks/usePopover.d.ts +25 -0
  193. package/dist/utils/hooks/usePopover.js +64 -0
  194. package/dist/utils/index.d.ts +1 -1
  195. package/dist/utils/index.js +1 -1
  196. package/package.json +124 -124
@@ -1,37 +1,38 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { zodResolver } from "@hookform/resolvers/zod";
4
- import { Button } from "../Button/Button.js";
5
- import "../Button/Button.css.js";
4
+ import { Button } from "../../Button/Button.js";
5
+ import "../../Button/Button.css.js";
6
6
  import { useState } from "react";
7
7
  import "react-use";
8
- import { Checkbox } from "../Input/Checkbox.js";
9
- import "../Input/CurrencyInput.js";
10
- import { Dropdown } from "../Input/Dropdown.js";
11
- import "../Input/Dropdown.css.js";
12
- import { Input } from "../Input/Input.js";
13
- import "../Input/Input.css.js";
14
- import "../Input/InputAmount.js";
15
- import { InputPhone } from "../Input/InputPhone.js";
16
- import "../Input/InputTextArea.js";
17
- import "../Input/DownPaymentInput.js";
18
- import "../icons/ArrowIcon/ArrowIcon.css.js";
19
- import SvgAxosX from "../icons/AxosX/index.js";
20
- import SvgComponent from "../icons/AxosX/Blue.js";
21
- import "../icons/CheckIcon/CheckIcon.css.js";
22
- /* empty css */
23
- /* empty css */
24
- /* empty css */
25
- /* empty css */
26
- import { associatedEmail } from "../utils/EverestValidity.js";
27
- import "../utils/allowedAxosDomains.js";
28
- import { getVariant } from "../utils/getVariant.js";
8
+ import { Checkbox } from "../../Input/Checkbox.js";
9
+ import "../../Input/CurrencyInput.js";
10
+ import "../../Input/DatePicker2.js";
11
+ import { Dropdown } from "../../Input/Dropdown.js";
12
+ import "../../Input/Dropdown.css.js";
13
+ import { Input } from "../../Input/Input.js";
14
+ import "../../Input/Input.css.js";
15
+ import "../../Input/InputAmount.js";
16
+ import { InputPhone } from "../../Input/InputPhone.js";
17
+ import "../../Input/InputTextArea.js";
18
+ import "../../Input/DownPaymentInput.js";
19
+ import "../../icons/ArrowIcon/ArrowIcon.css.js";
20
+ import SvgAxosX from "../../icons/AxosX/index.js";
21
+ import SvgComponent from "../../icons/AxosX/Blue.js";
22
+ import "../../icons/CheckIcon/CheckIcon.css.js";
23
+ /* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
+ /* empty css */
27
+ import "../../utils/allowedAxosDomains.js";
28
+ import { associatedEmail } from "../../utils/EverestValidity.js";
29
+ import { getVariant } from "../../utils/getVariant.js";
29
30
  import clsx from "clsx";
30
31
  import { useForm, FormProvider } from "react-hook-form";
31
32
  import * as z from "zod";
32
- import { Purposes, RepresentativesFico, DocType, Citizenship, MortgageLates, HousingEventType, HousingEventHistory, BankruptcyType, BankruptcySeasoning, PropertyType, Occupancy, NumberOfUnits, PrepaymentPenalty, BrokerConpensation } from "./FormEnums.js";
33
- import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, one_row, section_title, checkbox_group, disclosureForm, actions } from "./Forms.css.js";
34
- import { SalesforceSchema } from "./SalesforceFieldsForm.js";
33
+ import { Purposes, RepresentativesFico, DocType, Citizenship, MortgageLates, HousingEventType, HousingEventHistory, BankruptcyType, BankruptcySeasoning, PropertyType, Occupancy, NumberOfUnits, PrepaymentPenalty, BrokerConpensation } from "../FormEnums.js";
34
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, one_row, section_title, checkbox_group, disclosureForm, actions } from "../Forms.css.js";
35
+ import { SalesforceSchema } from "../SalesforceFieldsForm.js";
35
36
  const QuickPricer = ({
36
37
  icon = false,
37
38
  children,
@@ -44,7 +45,10 @@ const QuickPricer = ({
44
45
  callToAction,
45
46
  id,
46
47
  description,
47
- validateEmail
48
+ validateEmail,
49
+ validateNMLS = async () => {
50
+ return false;
51
+ }
48
52
  }) => {
49
53
  const [refiCashOut, setRefiCashOut] = useState(false);
50
54
  const [DSCR_Ratio, setDSCR_Ratio] = useState(false);
@@ -63,7 +67,7 @@ const QuickPricer = ({
63
67
  }).min(149999, {
64
68
  message: "Please enter a value greater than or equal to 149999"
65
69
  }),
66
- Loan_Purpose__c: z.string().min(1, { message: "Purpose is required" }).refine((val) => Purposes.includes(val), {
70
+ Loan_Purpose__c: z.string().min(1, { message: "Purpose is required" }).refine((val) => Purposes.map((item) => item.value).includes(val), {
67
71
  message: "Purpose is required"
68
72
  }),
69
73
  Cash_Out_Amount__c: z.coerce.number({
@@ -73,19 +77,22 @@ const QuickPricer = ({
73
77
  Self_Employed__c: z.coerce.boolean(),
74
78
  Pledged_Assets__c: z.coerce.boolean(),
75
79
  Cross_Collateralization__c: z.coerce.boolean(),
76
- Representative_FICO__c: z.string().min(1, { message: "Representative FICO is required" }).refine((val) => RepresentativesFico.includes(val), {
77
- message: "Representative FICO is required"
78
- }),
80
+ Representative_FICO__c: z.string().min(1, { message: "Representative FICO is required" }).refine(
81
+ (val) => RepresentativesFico.map((item) => item.value).includes(val),
82
+ {
83
+ message: "Representative FICO is required"
84
+ }
85
+ ),
79
86
  Months_Reserves__c: z.coerce.number({
80
87
  message: "Please provide a valid months of reserves"
81
88
  }).min(0, { message: "Months of reserves is required" }),
82
- Underwriting_Document_Type__c: z.string().min(1, { message: "Underwriting / Doc Type is required" }).refine((val) => DocType.includes(val), {
89
+ Underwriting_Document_Type__c: z.string().min(1, { message: "Underwriting / Doc Type is required" }).refine((val) => DocType.map((item) => item.value).includes(val), {
83
90
  message: "Underwriting / Doc Type is required"
84
91
  }),
85
92
  Debt_To_Income_Ratio__c: z.coerce.number({
86
93
  message: "DCSR Ratio should be between 0.00 and 10.00"
87
94
  }).min(0, { message: "DCSR Ratio is required" }).max(10, { message: "DCSR Ratio should be between 0.00 and 10.00" }),
88
- Citizenship__c: z.string().min(1, { message: "Citizenship is required" }).refine((val) => Citizenship.includes(val), {
95
+ Citizenship__c: z.string().min(1, { message: "Citizenship is required" }).refine((val) => Citizenship.map((item) => item.value).includes(val), {
89
96
  message: "Citizenship is required"
90
97
  }),
91
98
  Mortgage_Lates_12: z.string().min(1, { message: "Mortgage history is required" }).refine((val) => MortgageLates.includes(val), {
@@ -94,40 +101,64 @@ const QuickPricer = ({
94
101
  Mortgage_Lates_24: z.string().min(1, { message: "Mortgage history is required" }).refine((val) => MortgageLates.includes(val), {
95
102
  message: "Mortgage history is required"
96
103
  }),
97
- HousingEventType: z.string().min(1, { message: "Housing event type is required" }).refine((val) => HousingEventType.includes(val), {
98
- message: "Housing event type is required"
99
- }),
100
- housingEventSeasoning: z.string().min(1, { message: "Housing event history is required" }).refine((val) => HousingEventHistory.includes(val), {
101
- message: "Housing event history is required"
102
- }),
103
- BankruptcyType: z.string().min(1, { message: "Bankruptcy type is required" }).refine((val) => BankruptcyType.includes(val), {
104
- message: "Bankruptcy type is required"
105
- }),
106
- Number_of_Properties_Financed: z.coerce.number({ message: "Please provide a valid # of Properties" }).min(0, {
104
+ HousingEventType__c: z.string().min(1, { message: "Housing event type is required" }).refine(
105
+ (val) => HousingEventType.map((item) => item.value).includes(val),
106
+ {
107
+ message: "Housing event type is required"
108
+ }
109
+ ),
110
+ housingEventSeasoning__c: z.string().min(1, { message: "Housing event history is required" }).refine(
111
+ (val) => HousingEventHistory.map((item) => item.value).includes(val),
112
+ {
113
+ message: "Housing event history is required"
114
+ }
115
+ ),
116
+ bankruptcyType__c: z.string().min(1, { message: "Bankruptcy type is required" }).refine(
117
+ (val) => BankruptcyType.map((item) => item.value).includes(val),
118
+ {
119
+ message: "Bankruptcy type is required"
120
+ }
121
+ ),
122
+ Number_of_Properties_Financed__c: z.coerce.number({ message: "Please provide a valid # of Properties" }).min(0, {
107
123
  message: "Please provide a valid # of Properties"
108
124
  }),
109
- BankruptcySeasoning: z.string().min(1, { message: "Bankruptcy seasoning is required" }).refine((val) => BankruptcySeasoning.includes(val), {
110
- message: "Bankruptcy seasoning is required"
111
- }),
112
- zip: z.string().trim().max(20).min(1, { message: "Zip code is required." }),
113
- Property_Type__c: z.string().min(1, { message: "Property type is required" }).refine((val) => PropertyType.includes(val), {
125
+ bankruptcySeasoning__c: z.string().min(1, { message: "Bankruptcy seasoning is required" }).refine(
126
+ (val) => BankruptcySeasoning.map((item) => item.value).includes(val),
127
+ {
128
+ message: "Bankruptcy seasoning is required"
129
+ }
130
+ ),
131
+ Zip__c: z.string().trim().max(20).min(1, { message: "Zip code is required." }),
132
+ Property_Type__c: z.string().min(1, { message: "Property type is required" }).refine((val) => PropertyType.map((item) => item.value).includes(val), {
114
133
  message: "Property type is required"
115
134
  }),
116
- Occupance__c: z.string().min(1, { message: "Occupancy is required" }).refine((val) => Occupancy.includes(val), {
135
+ Occupance__c: z.string().min(1, { message: "Occupancy is required" }).refine((val) => Occupancy.map((item) => item.value).includes(val), {
117
136
  message: "Occupancy is required"
118
137
  }),
119
- Units__c: z.string().min(1, { message: "# of Units is required" }).refine((val) => NumberOfUnits.includes(val), {
120
- message: "# of Units is required"
121
- }),
122
- Prepayment_Penalty__c: z.string().min(1, { message: "Prepayment penalty is required" }).refine((val) => PrepaymentPenalty.includes(val), {
123
- message: "Prepayment penalty is required"
124
- }),
125
- broker_Compensation: z.string().min(1, { message: "Broker compensation is required" }).refine((val) => BrokerConpensation.includes(val), {
126
- message: "Broker compensation is required"
127
- }),
128
- NMLS_ID__c: z.string().min(6).max(7),
129
- email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
130
- phone: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
138
+ Units__c: z.string().min(1, { message: "# of Units is required" }).refine(
139
+ (val) => NumberOfUnits.map((item) => item.value).includes(val),
140
+ {
141
+ message: "# of Units is required"
142
+ }
143
+ ),
144
+ Prepayment_Penalty__c: z.string().min(1, { message: "Prepayment penalty is required" }).refine(
145
+ (val) => PrepaymentPenalty.map((field) => field.value).includes(val),
146
+ {
147
+ message: "Prepayment penalty is required"
148
+ }
149
+ ),
150
+ Broker_Compensation__c: z.string().min(1, { message: "Broker compensation is required" }).refine(
151
+ (val) => BrokerConpensation.map((item) => item.value).includes(val),
152
+ {
153
+ message: "Broker compensation is required"
154
+ }
155
+ ),
156
+ NMLS__c: z.string().min(6).max(7).refine(async (val) => {
157
+ const res = await validateNMLS(val);
158
+ return res?.body?.data?.records?.length > 0;
159
+ }, "NMLS ID is not valid"),
160
+ Email_Address__c: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
161
+ Cell_Phone__c: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
131
162
  const removeDashes = val.replace(/-/gi, "");
132
163
  if (removeDashes.length !== 10) {
133
164
  ctx.addIssue({
@@ -156,12 +187,12 @@ const QuickPricer = ({
156
187
  defaultValues: {
157
188
  Cash_Out_Amount__c: 0,
158
189
  Debt_To_Income_Ratio__c: 0,
159
- Months_Reserves__c: 0,
160
- housingEventSeasoning: "Not Applicable",
161
- BankruptcySeasoning: "Not Applicable",
162
- Number_of_Properties_Financed: 0,
163
- Units__c: "1 Unit",
164
- Prepayment_Penalty__c: ""
190
+ housingEventSeasoning__c: "NotApplicable",
191
+ bankruptcySeasoning__c: "NotApplicable",
192
+ Number_of_Properties_Financed__c: 0,
193
+ Units__c: "OneUnit",
194
+ Prepayment_Penalty__c: "None",
195
+ Months_Reserves__c: 0
165
196
  }
166
197
  });
167
198
  const {
@@ -248,9 +279,9 @@ const QuickPricer = ({
248
279
  error: !!errors.Loan_Purpose__c,
249
280
  helperText: errors.Loan_Purpose__c?.message,
250
281
  variant,
251
- defaultValue: "Purpose Loan",
282
+ defaultValue: "",
252
283
  onChange: (event) => {
253
- if (event.target.value === "Refi Cashout") {
284
+ if (event.target.value === "RefiCashout") {
254
285
  setRefiCashOut(true);
255
286
  } else {
256
287
  setRefiCashOut(false);
@@ -258,10 +289,8 @@ const QuickPricer = ({
258
289
  }
259
290
  },
260
291
  children: [
261
- /* @__PURE__ */ jsx("option", { value: "Purpose Loan", disabled: true, children: "Select a Purpose Loan" }),
262
- /* @__PURE__ */ jsx("option", { value: "Purchase", children: "Purchase" }),
263
- /* @__PURE__ */ jsx("option", { value: "Refi Cashout", children: "Refi Cashout" }),
264
- /* @__PURE__ */ jsx("option", { value: "Refi Rate-Term/Limited C.O.", children: "Refi Rate-Term/Limited C.O." })
292
+ /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select a Purpose Loan" }),
293
+ Purposes.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
265
294
  ]
266
295
  }
267
296
  ) }),
@@ -351,16 +380,7 @@ const QuickPricer = ({
351
380
  defaultValue: "default",
352
381
  children: [
353
382
  /* @__PURE__ */ jsx("option", { value: "default", disabled: true, children: "Select a Representative FICO" }),
354
- /* @__PURE__ */ jsx("option", { value: "780", children: "780+" }),
355
- /* @__PURE__ */ jsx("option", { value: "779 - 760", children: "779 - 760" }),
356
- /* @__PURE__ */ jsx("option", { value: "759 - 740", children: "759 - 740" }),
357
- /* @__PURE__ */ jsx("option", { value: "739 - 720", children: "739 - 720" }),
358
- /* @__PURE__ */ jsx("option", { value: "719 - 700", children: "719 - 700" }),
359
- /* @__PURE__ */ jsx("option", { value: "699 - 680", children: "699 - 680" }),
360
- /* @__PURE__ */ jsx("option", { value: "679 - 660", children: "679 - 660" }),
361
- /* @__PURE__ */ jsx("option", { value: "659 - 640", children: "659 - 640" }),
362
- /* @__PURE__ */ jsx("option", { value: "639 - 620", children: "639 - 620" }),
363
- /* @__PURE__ */ jsx("option", { value: "Below 620", children: "Below 620" })
383
+ RepresentativesFico.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
364
384
  ]
365
385
  }
366
386
  ) }),
@@ -380,7 +400,7 @@ const QuickPricer = ({
380
400
  type: "number"
381
401
  }
382
402
  ) }),
383
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
403
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
384
404
  Dropdown,
385
405
  {
386
406
  id: "Underwriting_Document_Type__c",
@@ -393,29 +413,16 @@ const QuickPricer = ({
393
413
  error: !!errors.Underwriting_Document_Type__c,
394
414
  helperText: errors.Underwriting_Document_Type__c?.message,
395
415
  variant,
396
- defaultValue: "Full Doc",
416
+ defaultValue: "FullDoc",
397
417
  onChange: (event) => {
398
- if (event.target.value === "Investor - DSCR") {
418
+ if (event.target.value === "InvestorDscr") {
399
419
  setDSCR_Ratio(true);
400
420
  } else {
401
421
  setDSCR_Ratio(false);
402
422
  setValue("Debt_To_Income_Ratio__c", 0);
403
423
  }
404
424
  },
405
- children: [
406
- /* @__PURE__ */ jsx("option", { value: "Full Doc", children: "Full Doc" }),
407
- /* @__PURE__ */ jsx("option", { value: "Asset Depletion", children: "Asset Depletion" }),
408
- /* @__PURE__ */ jsx("option", { value: "Personal Bank Stmt: 12 Mos", children: "Personal Bank Stmt: 12 Mos" }),
409
- /* @__PURE__ */ jsx("option", { value: "Business Bank Stmt: 12 Mos", children: "Business Bank Stmt: 12 Mos" }),
410
- /* @__PURE__ */ jsx("option", { value: "Personal Bank Stmt: 24 Mos", children: "Personal Bank Stmt: 24 Mos" }),
411
- /* @__PURE__ */ jsx("option", { value: "Business Bank Stmt: 24 Mos", children: "Business Bank Stmt: 24 Mos" }),
412
- /* @__PURE__ */ jsx("option", { value: "Investor - DSCR", children: "Investor - DSCR" }),
413
- /* @__PURE__ */ jsx("option", { value: "Investor - DSCR No Ratio", children: "Investor - DSCR No Ratio" }),
414
- /* @__PURE__ */ jsx("option", { value: "Written VOE", children: "Written VOE" }),
415
- /* @__PURE__ */ jsx("option", { value: "2 Year Alt Doc", children: "2 Year Alt Doc" }),
416
- /* @__PURE__ */ jsx("option", { value: "1yr Streamlined Full Doc", children: "1yr Streamlined Full Doc" }),
417
- /* @__PURE__ */ jsx("option", { value: "1yr Profit and Loss", children: "1yr Profit and Loss" })
418
- ]
425
+ children: DocType.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
419
426
  }
420
427
  ) }),
421
428
  DSCR_Ratio && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
@@ -434,7 +441,7 @@ const QuickPricer = ({
434
441
  type: "number"
435
442
  }
436
443
  ) }),
437
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
444
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
438
445
  Dropdown,
439
446
  {
440
447
  id: "Citizenship__c",
@@ -447,13 +454,8 @@ const QuickPricer = ({
447
454
  error: !!errors.Citizenship__c,
448
455
  helperText: errors.Citizenship__c?.message,
449
456
  variant,
450
- defaultValue: "U.S. Citizen",
451
- children: [
452
- /* @__PURE__ */ jsx("option", { value: "U.S. Citizen", children: "U.S. Citizen" }),
453
- /* @__PURE__ */ jsx("option", { value: "Perm. Resident Alien", children: "Perm. Resident Alien" }),
454
- /* @__PURE__ */ jsx("option", { value: "Non-Perm. Resident Alien", children: "Non-Perm. Resident Alien" }),
455
- /* @__PURE__ */ jsx("option", { value: "Foreign National", children: "Foreign National" })
456
- ]
457
+ defaultValue: "USCitizen",
458
+ children: Citizenship.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
457
459
  }
458
460
  ) }),
459
461
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
@@ -500,75 +502,60 @@ const QuickPricer = ({
500
502
  ]
501
503
  }
502
504
  ) }),
503
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
505
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
504
506
  Dropdown,
505
507
  {
506
- id: "HousingEventType",
507
- ...register("HousingEventType", {
508
+ id: "HousingEventType__c",
509
+ ...register("HousingEventType__c", {
508
510
  required: true
509
511
  }),
510
512
  label: "Housing Event Type",
511
513
  sizes: "medium",
512
514
  required: true,
513
- error: !!errors.HousingEventType,
514
- helperText: errors.HousingEventType?.message,
515
+ error: !!errors.HousingEventType__c,
516
+ helperText: errors.HousingEventType__c?.message,
515
517
  variant,
516
518
  onChange: (event) => {
517
519
  if (event.target.value !== "None") {
518
520
  setHouseEventHistory(true);
519
521
  } else {
520
522
  setHouseEventHistory(false);
521
- setValue("housingEventSeasoning", "Not Applicable");
523
+ setValue("housingEventSeasoning__c", "NotApplicable");
522
524
  }
523
525
  },
524
526
  defaultValue: "None",
525
- children: [
526
- /* @__PURE__ */ jsx("option", { value: "None", children: "None" }),
527
- /* @__PURE__ */ jsx("option", { value: "Deed-In-Lieu", children: "Deed-In-Lieu" }),
528
- /* @__PURE__ */ jsx("option", { value: "Short Sale", children: "Short Sale" }),
529
- /* @__PURE__ */ jsx("option", { value: "Forbearance", children: "Forbearance" }),
530
- /* @__PURE__ */ jsx("option", { value: "Foreclosure", children: "Foreclosure" }),
531
- /* @__PURE__ */ jsx("option", { value: "Modification", children: "Modification" })
532
- ]
527
+ children: HousingEventType.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
533
528
  }
534
529
  ) }),
535
- houseEventHistory && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
530
+ houseEventHistory && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
536
531
  Dropdown,
537
532
  {
538
- id: "housingEventSeasoning",
539
- ...register("housingEventSeasoning", {
533
+ id: "housingEventSeasoning__c",
534
+ ...register("housingEventSeasoning__c", {
540
535
  required: true
541
536
  }),
542
537
  label: "Housing Event History",
543
538
  sizes: "medium",
544
539
  required: true,
545
- error: !!errors.housingEventSeasoning,
546
- helperText: errors.housingEventSeasoning?.message,
540
+ error: !!errors.housingEventSeasoning__c,
541
+ helperText: errors.housingEventSeasoning__c?.message,
547
542
  variant,
548
- defaultValue: "Not Applicable",
549
- children: [
550
- /* @__PURE__ */ jsx("option", { value: "Not Applicable", children: "Not Applicable" }),
551
- /* @__PURE__ */ jsx("option", { value: "1-12 Months", children: "1-12 Months" }),
552
- /* @__PURE__ */ jsx("option", { value: "13-24 Months", children: "13-24 Months" }),
553
- /* @__PURE__ */ jsx("option", { value: "25-36 Months", children: "25-36 Months" }),
554
- /* @__PURE__ */ jsx("option", { value: "37-48 Months", children: "37-48 Months" }),
555
- /* @__PURE__ */ jsx("option", { value: "49-60 Months", children: "49-60 Months" }),
556
- /* @__PURE__ */ jsx("option", { value: "More than 5 Years Ago", children: "More than 5 Years Ago" })
557
- ]
543
+ defaultValue: "NotApplicable",
544
+ children: HousingEventHistory.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
558
545
  }
559
546
  ) }),
560
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
547
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
561
548
  Dropdown,
562
549
  {
563
- id: "BankruptcyType",
564
- ...register("BankruptcyType", {
550
+ id: "bankruptcyType__c",
551
+ ...register("bankruptcyType__c", {
565
552
  required: true
566
553
  }),
567
554
  label: "Bankruptcy Type",
568
555
  sizes: "medium",
569
556
  required: true,
570
- error: !!errors.BankruptcyType,
571
- helperText: errors.BankruptcyType?.message,
557
+ error: !!errors.bankruptcyType__c,
558
+ helperText: errors.bankruptcyType__c?.message,
572
559
  variant,
573
560
  defaultValue: "None",
574
561
  onChange: (event) => {
@@ -576,70 +563,57 @@ const QuickPricer = ({
576
563
  setBankruptcySeasoning(true);
577
564
  } else {
578
565
  setBankruptcySeasoning(false);
579
- setValue("BankruptcySeasoning", "Not Applicable");
566
+ setValue("bankruptcySeasoning__c", "NotApplicable");
580
567
  }
581
568
  },
582
- children: [
583
- /* @__PURE__ */ jsx("option", { value: "None", children: "None" }),
584
- /* @__PURE__ */ jsx("option", { value: "Chapter 7", children: "Chapter 7" }),
585
- /* @__PURE__ */ jsx("option", { value: "Chapter 11", children: "Chapter 11" }),
586
- /* @__PURE__ */ jsx("option", { value: "Chapter 13", children: "Chapter 13" })
587
- ]
569
+ children: BankruptcyType.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
588
570
  }
589
571
  ) }),
590
572
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
591
573
  Input,
592
574
  {
593
- id: "Number_of_Properties_Financed",
594
- ...register("Number_of_Properties_Financed", {
575
+ id: "Number_of_Properties_Financed__c",
576
+ ...register("Number_of_Properties_Financed__c", {
595
577
  required: true
596
578
  }),
597
579
  label: "# of Properties Financed",
598
580
  sizes: "medium",
599
581
  required: true,
600
- error: !!errors.Number_of_Properties_Financed,
601
- helperText: errors.Number_of_Properties_Financed?.message,
582
+ error: !!errors.Number_of_Properties_Financed__c,
583
+ helperText: errors.Number_of_Properties_Financed__c?.message,
602
584
  variant,
603
585
  type: "number"
604
586
  }
605
587
  ) }),
606
- bankruptcySeasoning && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
588
+ bankruptcySeasoning && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
607
589
  Dropdown,
608
590
  {
609
- id: "BankruptcySeasoning",
610
- ...register("BankruptcySeasoning", {
591
+ id: "bankruptcySeasoning__c",
592
+ ...register("bankruptcySeasoning__c", {
611
593
  required: true
612
594
  }),
613
595
  label: "Bankruptcy Seasoning",
614
596
  sizes: "medium",
615
597
  required: true,
616
- error: !!errors.BankruptcySeasoning,
617
- helperText: errors.BankruptcySeasoning?.message,
598
+ error: !!errors.bankruptcySeasoning__c,
599
+ helperText: errors.bankruptcySeasoning__c?.message,
618
600
  variant,
619
- defaultValue: "Not Applicable",
620
- children: [
621
- /* @__PURE__ */ jsx("option", { value: "Not Applicable", children: "Not Applicable" }),
622
- /* @__PURE__ */ jsx("option", { value: "1-12 Months", children: "1-12 Months" }),
623
- /* @__PURE__ */ jsx("option", { value: "13-24 Months", children: "13-24 Months" }),
624
- /* @__PURE__ */ jsx("option", { value: "25-36 Months", children: "25-36 Months" }),
625
- /* @__PURE__ */ jsx("option", { value: "37-48 Months", children: "37-48 Months" }),
626
- /* @__PURE__ */ jsx("option", { value: "49-60 Months", children: "49-60 Months" }),
627
- /* @__PURE__ */ jsx("option", { value: "More than 5 Years Ago", children: "More than 5 Years Ago" })
628
- ]
601
+ defaultValue: "NotApplicable",
602
+ children: BankruptcySeasoning.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
629
603
  }
630
604
  ) }),
631
605
  /* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Property Information" }) }),
632
606
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
633
607
  Input,
634
608
  {
635
- id: "zip",
636
- ...register("zip", { required: true }),
609
+ id: "Zip__c",
610
+ ...register("Zip__c", { required: true }),
637
611
  label: "Zip Code",
638
612
  sizes: "medium",
639
613
  placeholder: "Zip Code",
640
614
  required: true,
641
- error: !!errors.zip,
642
- helperText: errors.zip?.message,
615
+ error: !!errors.Zip__c,
616
+ helperText: errors.Zip__c?.message,
643
617
  variant
644
618
  }
645
619
  ) }),
@@ -658,19 +632,16 @@ const QuickPricer = ({
658
632
  variant,
659
633
  defaultValue: "Default",
660
634
  onChange: (event) => {
661
- if (event.target.value === "Single Family Residence") {
635
+ if (event.target.value === "SingleFamily") {
662
636
  setNumberOfUnits(true);
663
637
  } else {
664
638
  setNumberOfUnits(false);
665
- setValue("Units__c", "1 Unit");
639
+ setValue("Units__c", "OneUnit");
666
640
  }
667
641
  },
668
642
  children: [
669
643
  /* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
670
- /* @__PURE__ */ jsx("option", { value: "Single Family Residence", children: "Single Family Residence" }),
671
- /* @__PURE__ */ jsx("option", { value: "Condo", children: "Condo" }),
672
- /* @__PURE__ */ jsx("option", { value: "Co-op", children: "Co-op" }),
673
- /* @__PURE__ */ jsx("option", { value: "Condotel", children: "Condotel" })
644
+ PropertyType.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
674
645
  ]
675
646
  }
676
647
  ) }),
@@ -693,21 +664,19 @@ const QuickPricer = ({
693
664
  setPrepaymentPenalty(true);
694
665
  } else {
695
666
  setPrepaymentPenalty(false);
696
- setValue("Prepayment_Penalty__c", "");
667
+ setValue("Prepayment_Penalty__c", "None");
697
668
  }
698
669
  },
699
670
  children: [
700
671
  /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
701
- /* @__PURE__ */ jsx("option", { value: "Principal Residence", children: "Principal Residence" }),
702
- /* @__PURE__ */ jsx("option", { value: "Second Home", children: "Second Home" }),
703
- /* @__PURE__ */ jsx("option", { value: "Investment", children: "Investment" })
672
+ Occupancy.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
704
673
  ]
705
674
  }
706
675
  ) }),
707
- numberOfUnits && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
676
+ numberOfUnits && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
708
677
  Dropdown,
709
678
  {
710
- id: "Units",
679
+ id: "Units__c",
711
680
  ...register("Units__c", {
712
681
  required: true
713
682
  }),
@@ -717,16 +686,11 @@ const QuickPricer = ({
717
686
  error: !!errors.Units__c,
718
687
  helperText: errors.Units__c?.message,
719
688
  variant,
720
- defaultValue: "1 Unit",
721
- children: [
722
- /* @__PURE__ */ jsx("option", { value: "1 Unit", children: "1 Unit" }),
723
- /* @__PURE__ */ jsx("option", { value: "2 Unit", children: "2 Unit" }),
724
- /* @__PURE__ */ jsx("option", { value: "3 Unit", children: "3 Unit" }),
725
- /* @__PURE__ */ jsx("option", { value: "4 Unit", children: "4 Unit" })
726
- ]
689
+ defaultValue: "OneUnit",
690
+ children: NumberOfUnits.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
727
691
  }
728
692
  ) }),
729
- prepaymentPenalty && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
693
+ prepaymentPenalty && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
730
694
  Dropdown,
731
695
  {
732
696
  id: "Prepayment_Penalty__c",
@@ -739,44 +703,36 @@ const QuickPricer = ({
739
703
  error: !!errors.Prepayment_Penalty__c,
740
704
  helperText: errors.Prepayment_Penalty__c?.message,
741
705
  variant,
742
- defaultValue: "",
743
- children: [
744
- /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
745
- /* @__PURE__ */ jsx("option", { value: "1 Year", children: "1 Year" }),
746
- /* @__PURE__ */ jsx("option", { value: "2 Year", children: "2 Year" }),
747
- /* @__PURE__ */ jsx("option", { value: "3 Year", children: "3 Year" }),
748
- /* @__PURE__ */ jsx("option", { value: "4 Year", children: "4 Year" }),
749
- /* @__PURE__ */ jsx("option", { value: "5 Year", children: "5 Year" })
750
- ]
706
+ defaultValue: "None",
707
+ children: PrepaymentPenalty.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
751
708
  }
752
709
  ) }),
753
710
  /* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Broker Information" }) }),
754
711
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
755
712
  Dropdown,
756
713
  {
757
- id: "broker_Compensation",
758
- ...register("broker_Compensation", {
714
+ id: "Broker_Compensation__c",
715
+ ...register("Broker_Compensation__c", {
759
716
  required: true
760
717
  }),
761
718
  label: "Broker Compensation",
762
719
  sizes: "medium",
763
720
  required: true,
764
- error: !!errors.broker_Compensation,
765
- helperText: errors.broker_Compensation?.message,
721
+ error: !!errors.Broker_Compensation__c,
722
+ helperText: errors.Broker_Compensation__c?.message,
766
723
  variant,
767
724
  defaultValue: "Default",
768
725
  children: [
769
726
  /* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
770
- /* @__PURE__ */ jsx("option", { value: "Borrower Paid", children: "Borrower Paid" }),
771
- /* @__PURE__ */ jsx("option", { value: "Lender Paid", children: "Lender Paid" })
727
+ BrokerConpensation.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }))
772
728
  ]
773
729
  }
774
730
  ) }),
775
731
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
776
732
  Input,
777
733
  {
778
- id: "NMLS_ID__c",
779
- ...register("NMLS_ID__c", {
734
+ id: "NMLS__c",
735
+ ...register("NMLS__c", {
780
736
  required: true,
781
737
  min: 6,
782
738
  max: 7
@@ -785,27 +741,27 @@ const QuickPricer = ({
785
741
  placeholder: "Company NMLS ID",
786
742
  sizes: "medium",
787
743
  required: true,
788
- error: !!errors.NMLS_ID__c,
789
- helperText: errors.NMLS_ID__c?.message,
744
+ error: !!errors.NMLS__c,
745
+ helperText: errors.NMLS__c?.message,
790
746
  variant
791
747
  }
792
748
  ) }),
793
749
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
794
750
  Input,
795
751
  {
796
- id: "email",
797
- ...register("email", {
752
+ id: "Email_Address__c",
753
+ ...register("Email_Address__c", {
798
754
  required: true,
799
755
  validate: {
800
756
  isValid: associatedEmail
801
757
  }
802
758
  }),
803
- label: "Email",
759
+ label: "Email_Address__c",
804
760
  sizes: "medium",
805
761
  placeholder: "Email",
806
762
  required: true,
807
- error: !!errors.email,
808
- helperText: errors.email?.message,
763
+ error: !!errors.Email_Address__c,
764
+ helperText: errors.Email_Address__c?.message,
809
765
  variant,
810
766
  type: "email"
811
767
  }
@@ -813,14 +769,17 @@ const QuickPricer = ({
813
769
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
814
770
  InputPhone,
815
771
  {
816
- id: "phone",
817
- ...register("phone", { required: true, maxLength: 12 }),
772
+ id: "Cell_Phone__c",
773
+ ...register("Cell_Phone__c", {
774
+ required: true,
775
+ maxLength: 12
776
+ }),
818
777
  label: "Phone",
819
778
  sizes: "medium",
820
779
  placeholder: "Phone",
821
780
  required: true,
822
- error: !!errors.phone,
823
- helperText: errors.phone?.message,
781
+ error: !!errors.Cell_Phone__c,
782
+ helperText: errors.Cell_Phone__c?.message,
824
783
  variant
825
784
  }
826
785
  ) })