@axos-web-dev/shared-components 0.0.154 → 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.
- package/dist/ATMLocator/ATMLocator.js +35 -32
- package/dist/Accordion/Accordion.css.js +4 -4
- package/dist/Accordion/Accordion.js +3 -3
- package/dist/AlertBanner/AlertBanner.css.js +1 -1
- package/dist/AlertBanner/index.js +3 -3
- package/dist/Article/Article.css.js +4 -4
- package/dist/ArticlesSet/ArticlesSet.css.js +4 -4
- package/dist/AwardsBanner/AwardsBanner.css.js +1 -1
- package/dist/AwardsItem/AwardsItem.css.js +2 -2
- package/dist/Blockquote/Blockquote.module.js +3 -3
- package/dist/BulletItem/BulletItem.css.js +2 -2
- package/dist/BulletItem/BulletItem.js +3 -3
- package/dist/Button/Button.css.js +4 -4
- package/dist/Button/Button.js +36 -33
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +3 -3
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +3 -3
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +4 -4
- package/dist/Calculators/AxosOneCalculator/index.js +3 -3
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +4 -4
- package/dist/Calculators/BalanceAPYCalculator/index.js +3 -3
- package/dist/Calculators/Calculator.js +34 -31
- package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.js +1 -1
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +3 -3
- package/dist/Calculators/calculator.css.js +4 -4
- package/dist/CallToActionBar/CallToActionBar.css.js +3 -3
- package/dist/Carousel/Carousel.css.js +3 -3
- package/dist/Carousel/index.js +36 -33
- package/dist/Chevron/Chevron.css.js +4 -4
- package/dist/Chevron/index.js +36 -33
- package/dist/CollectInformationAlert/CollectInformationAlert.css.js +4 -4
- package/dist/CollectInformationAlert/index.js +3 -3
- package/dist/Comparison/Comparison.css.js +7 -7
- package/dist/Comparison/Comparison.js +35 -32
- package/dist/ContentBanner/ContentBanner.css.js +4 -4
- package/dist/DownloadTile/DownloadTile.css.js +3 -3
- package/dist/ExecutiveBio/ExecutiveBio.css.js +4 -4
- package/dist/FaqAccordion/FaqAccordion.css.js +4 -4
- package/dist/FaqAccordion/index.js +36 -33
- package/dist/FooterDisclosure/FooterDisclosure.css.js +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +2 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +35 -32
- package/dist/Forms/ApplicationStart.js +5 -4
- package/dist/Forms/ClearingForm.js +5 -4
- package/dist/Forms/CommercialDeposits.js +5 -4
- package/dist/Forms/CommercialLending.js +5 -4
- package/dist/Forms/ContactCompany.js +5 -4
- package/dist/Forms/ContactUs.js +5 -4
- package/dist/Forms/ContactUsAAS.js +4 -3
- package/dist/Forms/ContactUsBusiness.js +36 -33
- package/dist/Forms/ContactUsNMLSId.js +36 -33
- package/dist/Forms/CpraRequest.js +4 -3
- package/dist/Forms/DealerServices.js +5 -4
- package/dist/Forms/EmailOnly.js +37 -34
- package/dist/Forms/EmailUs.js +4 -4
- package/dist/Forms/FormEnums.d.ts +57 -13
- package/dist/Forms/FormEnums.js +81 -63
- package/dist/Forms/FormProps.d.ts +1 -0
- package/dist/Forms/Forms.css.js +7 -7
- package/dist/Forms/MortgageRate/MortgageRateForm.js +37 -34
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +1 -0
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +36 -33
- package/dist/Forms/{QuickPricer.d.ts → QuickPricer/QuickPricerForm.d.ts} +24 -12
- package/dist/Forms/{QuickPricer.js → QuickPricer/QuickPricerForm.js} +179 -220
- package/dist/Forms/QuickPricer/QuickPricerResults.css.d.ts +2 -0
- package/dist/Forms/QuickPricer/QuickPricerResults.css.js +7 -0
- package/dist/Forms/QuickPricer/UserInformation.css.d.ts +7 -0
- package/dist/Forms/QuickPricer/UserInformation.css.js +19 -0
- package/dist/Forms/QuickPricer/UserInformation.d.ts +10 -0
- package/dist/Forms/QuickPricer/UserInformation.js +59 -0
- package/dist/Forms/QuickPricer/index.d.ts +4 -0
- package/dist/Forms/QuickPricer/index.js +18 -0
- package/dist/Forms/ScheduleCall.js +20 -5
- package/dist/Forms/ScheduleCallPremier.js +5 -4
- package/dist/Forms/SuccesForm.js +35 -32
- package/dist/Forms/WcplSurvey.js +4 -3
- package/dist/Forms/index.d.ts +5 -6
- package/dist/Forms/index.js +22 -8
- package/dist/HeroBanner/HeroBanner.css.js +5 -5
- package/dist/HeroBanner/LargeBanner.css.js +4 -4
- package/dist/HeroBanner/SelectionBanner.css.js +4 -4
- package/dist/Hyperlink/Hyperlink.css.js +1 -1
- package/dist/Hyperlink/index.js +35 -32
- package/dist/IconBillboard/IconBillboard.css.js +4 -4
- package/dist/ImageBillboard/ImageBillboard.css.js +4 -4
- package/dist/ImageBillboard/ImageBillboard.js +3 -3
- package/dist/ImageBillboard/ImageBillboardSet.js +3 -3
- package/dist/ImageLink/ImageLink.css.js +1 -1
- package/dist/ImageLink/ImageLink.js +35 -32
- package/dist/ImageLink/ImageLinkSet.js +35 -32
- package/dist/ImageLink/index.js +34 -31
- package/dist/Input/Checkbox.css.js +1 -1
- package/dist/Input/CurrencyInput.js +1 -0
- package/dist/Input/DatePicker.css.d.ts +1 -0
- package/dist/Input/DatePicker.css.js +6 -0
- package/dist/Input/DatePicker2.d.ts +21 -0
- package/dist/Input/DatePicker2.js +103 -0
- package/dist/Input/DatePickerComponents/DatePicker.d.ts +11 -0
- package/dist/Input/DatePickerComponents/DatePicker.js +13 -0
- package/dist/Input/DatePickerComponents/InputDate.d.ts +15 -0
- package/dist/Input/DatePickerComponents/InputDate.js +66 -0
- package/dist/Input/DatePickerComponents/index.d.ts +2 -0
- package/dist/Input/DatePickerComponents/index.js +6 -0
- package/dist/Input/Datepicker.d.ts +3 -0
- package/dist/Input/Datepicker.js +47 -0
- package/dist/Input/Dropdown.css.js +2 -2
- package/dist/Input/Input.css.js +4 -4
- package/dist/Input/InputAmount.js +1 -0
- package/dist/Input/InputDate.css.d.ts +6 -0
- package/dist/Input/InputDate.css.js +15 -0
- package/dist/Input/InputDate.d.ts +3 -0
- package/dist/Input/InputDate.js +47 -0
- package/dist/Input/InputPhone.js +1 -0
- package/dist/Input/InputProps.d.ts +5 -0
- package/dist/Input/RadioButton.css.js +1 -1
- package/dist/Input/index.d.ts +1 -0
- package/dist/Input/index.js +2 -0
- package/dist/Inputs/Input.css.js +3 -3
- package/dist/Insight/Featured/CategorySelector.css.js +5 -5
- package/dist/Insight/Featured/CategorySelector.js +34 -31
- package/dist/Insight/Featured/Featured.css.js +2 -2
- package/dist/Insight/Featured/Featured.js +36 -33
- package/dist/Insight/Featured/Header.css.js +1 -1
- package/dist/Insight/Featured/Header.js +35 -32
- package/dist/Insight/Insight.css.js +2 -2
- package/dist/Interstitial/Interstitial-variants.css.js +4 -4
- package/dist/LandingPageHeader/LandingPageHeader.css.js +3 -3
- package/dist/LandingPageHeader/LandingPageHeader.js +3 -3
- package/dist/LoadingIndicator/LoadingIndicator.css.js +1 -1
- package/dist/Modal/Modal.css.js +3 -3
- package/dist/Modal/Modal.js +35 -32
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +3 -3
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +3 -3
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +3 -3
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +3 -3
- package/dist/NavigationMenu/AxosBank/NavBar.css.js +3 -3
- package/dist/NavigationMenu/AxosBank/NavData.js +36 -33
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +35 -32
- package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +3 -3
- package/dist/NavigationMenu/AxosBank/index.js +34 -31
- package/dist/NavigationMenu/AxosClearing/NavBar.css.js +1 -1
- package/dist/PageNavItem/PageNavItem.css.js +4 -4
- package/dist/PageNavSet/PageNavigationSet.css.js +1 -1
- package/dist/SecondaryFooter/SecondaryFooter.css.js +3 -3
- package/dist/SetContainer/SetContainer.css.js +3 -3
- package/dist/SetContainer/SetContainer.js +36 -33
- package/dist/SocialMediaBar/SocialMediaBar.css.js +1 -1
- package/dist/StepItem/StepItem.css.js +3 -3
- package/dist/StepItemSet/StepItemSet.css.js +3 -3
- package/dist/Tab/Tab.css.js +3 -3
- package/dist/Table/Table.css.js +3 -3
- package/dist/Table/Table.d.ts +2 -1
- package/dist/Table/Table.interface.d.ts +1 -0
- package/dist/Table/Table.js +5 -3
- package/dist/TextBlock/TextBlock.css.js +3 -3
- package/dist/TopicalNavItem/TopicalNavItem.css.js +1 -1
- package/dist/TopicalNavSet/TopicalNavSet.css.js +1 -1
- package/dist/Typography/Typography.css.js +1 -1
- package/dist/VideoTile/VideoTile.css.js +4 -4
- package/dist/VideoTile/VideoTile.js +3 -3
- package/dist/VideoWrapper/VideoWrapper.css.js +1 -1
- package/dist/VideoWrapper/index.js +4 -4
- package/dist/assets/Blockquote/Blockquote.css.css +16 -17
- package/dist/assets/Forms/QuickPricer/QuickPricerResults.css +12 -0
- package/dist/assets/Forms/QuickPricer/UserInformation.css +70 -0
- package/dist/assets/Input/DatePicker.css +95 -0
- package/dist/assets/Input/InputDate.css +39 -0
- package/dist/assets/Insight/Insight.css +14 -0
- package/dist/assets/globals.css +3 -0
- package/dist/assets/node_modules/react-date-range/dist/styles.css.css +194 -0
- package/dist/assets/node_modules/react-date-range/dist/theme/default.css.css +385 -0
- package/dist/globals.css.js +2 -2
- package/dist/icons/ArrowIcon/ArrowIcon.css.js +3 -3
- package/dist/icons/CalendarIcon/CalendarIcon.d.ts +3 -0
- package/dist/icons/CalendarIcon/CalendarIcon.js +17 -0
- package/dist/icons/CalendarIcon/index.d.ts +1 -0
- package/dist/icons/CalendarIcon/index.js +4 -0
- package/dist/icons/CheckIcon/CheckIcon.css.js +3 -3
- package/dist/icons/DownloadIcon/DownloadIcon.css.js +3 -3
- package/dist/icons/FollowIcon/FollowIcon.css.js +3 -3
- package/dist/icons/Star/Star.css.js +1 -1
- package/dist/index.css.js +3 -3
- package/dist/main.js +24 -9
- package/dist/themes/axos.css.js +1 -1
- package/dist/themes/premier.css.js +2 -2
- package/dist/types/icon.d.ts +3 -0
- package/dist/types/icon.js +1 -0
- package/dist/types/popover.d.ts +8 -0
- package/dist/types/popover.js +1 -0
- package/dist/utils/constants/format.d.ts +1 -0
- package/dist/utils/constants/format.js +4 -0
- package/dist/utils/constants/popper.d.ts +6 -0
- package/dist/utils/constants/popper.js +10 -0
- package/dist/utils/hooks/usePopover.d.ts +25 -0
- package/dist/utils/hooks/usePopover.js +64 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
|
@@ -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 "
|
|
5
|
-
import "
|
|
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 "
|
|
9
|
-
import "
|
|
10
|
-
import
|
|
11
|
-
import "
|
|
12
|
-
import
|
|
13
|
-
import "
|
|
14
|
-
import "
|
|
15
|
-
import
|
|
16
|
-
import "
|
|
17
|
-
import "
|
|
18
|
-
import "
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import "
|
|
22
|
-
|
|
23
|
-
/* empty css
|
|
24
|
-
/* empty css
|
|
25
|
-
/* empty css
|
|
26
|
-
|
|
27
|
-
import "
|
|
28
|
-
import {
|
|
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 "
|
|
33
|
-
import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, one_row, section_title, checkbox_group, disclosureForm, actions } from "
|
|
34
|
-
import { SalesforceSchema } from "
|
|
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(
|
|
77
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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: "
|
|
282
|
+
defaultValue: "",
|
|
252
283
|
onChange: (event) => {
|
|
253
|
-
if (event.target.value === "
|
|
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: "
|
|
262
|
-
/* @__PURE__ */ jsx("option", { value:
|
|
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:
|
|
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__ */
|
|
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: "
|
|
416
|
+
defaultValue: "FullDoc",
|
|
397
417
|
onChange: (event) => {
|
|
398
|
-
if (event.target.value === "
|
|
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__ */
|
|
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: "
|
|
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__ */
|
|
505
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
504
506
|
Dropdown,
|
|
505
507
|
{
|
|
506
|
-
id: "
|
|
507
|
-
...register("
|
|
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.
|
|
514
|
-
helperText: errors.
|
|
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("
|
|
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__ */
|
|
530
|
+
houseEventHistory && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
536
531
|
Dropdown,
|
|
537
532
|
{
|
|
538
|
-
id: "
|
|
539
|
-
...register("
|
|
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.
|
|
546
|
-
helperText: errors.
|
|
540
|
+
error: !!errors.housingEventSeasoning__c,
|
|
541
|
+
helperText: errors.housingEventSeasoning__c?.message,
|
|
547
542
|
variant,
|
|
548
|
-
defaultValue: "
|
|
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__ */
|
|
547
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
561
548
|
Dropdown,
|
|
562
549
|
{
|
|
563
|
-
id: "
|
|
564
|
-
...register("
|
|
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.
|
|
571
|
-
helperText: errors.
|
|
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("
|
|
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: "
|
|
594
|
-
...register("
|
|
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.
|
|
601
|
-
helperText: errors.
|
|
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__ */
|
|
588
|
+
bankruptcySeasoning && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
607
589
|
Dropdown,
|
|
608
590
|
{
|
|
609
|
-
id: "
|
|
610
|
-
...register("
|
|
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.
|
|
617
|
-
helperText: errors.
|
|
598
|
+
error: !!errors.bankruptcySeasoning__c,
|
|
599
|
+
helperText: errors.bankruptcySeasoning__c?.message,
|
|
618
600
|
variant,
|
|
619
|
-
defaultValue: "
|
|
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: "
|
|
636
|
-
...register("
|
|
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.
|
|
642
|
-
helperText: errors.
|
|
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 === "
|
|
635
|
+
if (event.target.value === "SingleFamily") {
|
|
662
636
|
setNumberOfUnits(true);
|
|
663
637
|
} else {
|
|
664
638
|
setNumberOfUnits(false);
|
|
665
|
-
setValue("Units__c", "
|
|
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:
|
|
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:
|
|
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__ */
|
|
676
|
+
numberOfUnits && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
708
677
|
Dropdown,
|
|
709
678
|
{
|
|
710
|
-
id: "
|
|
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: "
|
|
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__ */
|
|
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: "
|
|
758
|
-
...register("
|
|
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.
|
|
765
|
-
helperText: errors.
|
|
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:
|
|
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: "
|
|
779
|
-
...register("
|
|
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.
|
|
789
|
-
helperText: errors.
|
|
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: "
|
|
797
|
-
...register("
|
|
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: "
|
|
759
|
+
label: "Email_Address__c",
|
|
804
760
|
sizes: "medium",
|
|
805
761
|
placeholder: "Email",
|
|
806
762
|
required: true,
|
|
807
|
-
error: !!errors.
|
|
808
|
-
helperText: errors.
|
|
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: "
|
|
817
|
-
...register("
|
|
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.
|
|
823
|
-
helperText: errors.
|
|
781
|
+
error: !!errors.Cell_Phone__c,
|
|
782
|
+
helperText: errors.Cell_Phone__c?.message,
|
|
824
783
|
variant
|
|
825
784
|
}
|
|
826
785
|
) })
|