@axos-web-dev/shared-components 1.0.99 → 1.0.100-dev.2
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 +8 -1
- package/dist/ArticlesSet/ArticlesSet.js +2 -2
- package/dist/Auth/ErrorAlert.js +10 -3
- package/dist/Blockquote/Blockquote.module.js +3 -3
- package/dist/Button/Button.js +10 -3
- package/dist/Calculators/Calculator.js +22 -3
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
- package/dist/Calculators/MaxLoanCalculator/index.js +22 -5
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +15 -5
- package/dist/Calculators/index.d.ts +2 -1
- package/dist/Calculators/index.js +3 -1
- package/dist/Carousel/index.js +10 -3
- package/dist/Chatbot/Bubble.css.d.ts +1 -0
- package/dist/Chatbot/Bubble.css.js +5 -0
- package/dist/Chatbot/Bubble.d.ts +3 -0
- package/dist/Chatbot/Bubble.js +48 -0
- package/dist/Chatbot/Chat.d.ts +1 -0
- package/dist/Chatbot/Chat.js +165 -0
- package/dist/Chatbot/ChatWindow.css.d.ts +11 -0
- package/dist/Chatbot/ChatWindow.css.js +25 -0
- package/dist/Chatbot/ChatWindow.d.ts +23 -0
- package/dist/Chatbot/ChatWindow.js +202 -0
- package/dist/Chatbot/Chatbot.css.d.ts +1 -0
- package/dist/Chatbot/Chatbot.css.js +5 -0
- package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
- package/dist/Chatbot/Chatbot.d.ts +1 -0
- package/dist/Chatbot/Chatbot.js +39 -0
- package/dist/Chatbot/authenticate.d.ts +3 -0
- package/dist/Chatbot/authenticate.js +16 -0
- package/dist/Chatbot/index.d.ts +9 -0
- package/dist/Chatbot/index.js +31 -0
- package/dist/Chatbot/store/chat.d.ts +9 -0
- package/dist/Chatbot/store/chat.js +11 -0
- package/dist/Chatbot/store/messages.d.ts +14 -0
- package/dist/Chatbot/store/messages.js +12 -0
- package/dist/Chatbot/useHeadlessChat.d.ts +22 -0
- package/dist/Chatbot/useHeadlessChat.js +157 -0
- package/dist/Chevron/index.js +10 -3
- package/dist/Comparison/Comparison.js +10 -3
- package/dist/ExecutiveBio/ExecutiveBio.js +10 -3
- package/dist/FaqAccordion/index.js +10 -3
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +10 -3
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplicationStart.js +111 -89
- package/dist/Forms/ApplyNow.d.ts +2 -2
- package/dist/Forms/ApplyNow.js +178 -146
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/ClearingForm.js +184 -162
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.js +201 -179
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialLending.js +278 -256
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.js +128 -106
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompany.js +113 -91
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.js +127 -105
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUs.js +99 -77
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.js +180 -158
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +143 -115
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +112 -84
- package/dist/Forms/ContactUsLVF.d.ts +3 -1
- package/dist/Forms/ContactUsLVF.js +127 -101
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +126 -98
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +641 -619
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +118 -90
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/DealerServices.js +225 -204
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +65 -39
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/EmailUs.js +75 -53
- package/dist/Forms/FormProps.d.ts +3 -0
- package/dist/Forms/Forms.css.d.ts +18 -0
- package/dist/Forms/Forms.css.js +44 -38
- package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
- package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
- package/dist/Forms/HoneyPot/index.d.ts +23 -0
- package/dist/Forms/HoneyPot/index.js +69 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +376 -348
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +10 -3
- package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
- package/dist/Forms/MortgageWarehouseLending.js +343 -0
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/QuickPricerForm.js +624 -609
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCall.js +156 -134
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.js +178 -156
- package/dist/Forms/SuccesForm.js +13 -6
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/VendorQuestionnaire.js +817 -795
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/Forms/WcplSurvey.js +112 -90
- package/dist/Forms/applynow-utils.d.ts +1 -0
- package/dist/Forms/applynow-utils.js +48 -0
- package/dist/Forms/index.d.ts +3 -0
- package/dist/Forms/index.js +12 -2
- package/dist/HeroBanner/HeroBanner.js +42 -1
- package/dist/Hyperlink/index.js +10 -3
- package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
- package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +6 -1
- package/dist/ImageLink/ImageLink.js +10 -3
- package/dist/ImageLink/ImageLinkSet.js +10 -3
- package/dist/ImageLink/index.js +10 -3
- package/dist/Input/Input.js +3 -1
- package/dist/Insight/Featured/CategorySelector.js +10 -3
- package/dist/Insight/Featured/Featured.js +10 -3
- package/dist/Insight/Featured/Header.js +10 -3
- package/dist/Modal/Modal.js +10 -3
- package/dist/NavigationMenu/AxosALTS/NavData.js +10 -3
- package/dist/NavigationMenu/AxosALTS/index.js +10 -3
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +16 -16
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +25 -7
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
- package/dist/NavigationMenu/AxosBank/NavData.js +10 -3
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +32 -8
- package/dist/NavigationMenu/AxosBank/index.js +10 -3
- package/dist/NavigationMenu/LaVictoire/NavData.js +10 -3
- package/dist/NavigationMenu/LaVictoire/index.js +10 -3
- package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
- package/dist/NavigationMenu/NavDataJson.js +315 -0
- package/dist/NavigationMenu/Navbar.d.ts +5 -0
- package/dist/NavigationMenu/Navbar.js +201 -0
- package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
- package/dist/NavigationMenu/SignInNavButton.js +369 -0
- package/dist/SetContainer/SetContainer.js +10 -3
- package/dist/SocialMediaBar/iconsRepository.js +10 -3
- package/dist/Table/Table.d.ts +1 -1
- package/dist/VideoTile/VideoTile.js +10 -3
- package/dist/VideoWrapper/index.js +10 -3
- package/dist/assets/Blockquote/Blockquote.css.css +68 -68
- package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
- package/dist/assets/Chatbot/Bubble.css +40 -0
- package/dist/assets/Chatbot/ChatWindow.css +107 -0
- package/dist/assets/Forms/Forms.css +135 -105
- package/dist/assets/Forms/HoneyPot/HoneyPot.css +8 -0
- package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -191
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +473 -473
- package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -47
- package/dist/icons/Logos/AXB.d.ts +8 -0
- package/dist/icons/Logos/AXB.js +74 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +43 -3
- package/dist/utils/allowedAxosDomains.js +2 -1
- package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
- package/package.json +136 -133
|
@@ -34,6 +34,7 @@ import { useForm, FormProvider } from "react-hook-form";
|
|
|
34
34
|
import * as z from "zod";
|
|
35
35
|
import { BrokerConpensation, PrepaymentPenalty, NumberOfUnits, Occupancy, PropertyType, BankruptcySeasoning, BankruptcyType, HousingEventHistory, HousingEventType, MortgageLates24, MortgageLates12, Citizenship, DocType, RepresentativesFico, Purposes } from "../FormEnums.js";
|
|
36
36
|
import { iconForm, headerContainer, headerForm, form, descriptionField, one_row, section_title, checkbox_group, formWrapper, disclosureForm, actions, formContainer } from "../Forms.css.js";
|
|
37
|
+
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "../HoneyPot/index.js";
|
|
37
38
|
import { SalesforceSchema } from "../SalesforceFieldsForm.js";
|
|
38
39
|
const QuickPricer = ({
|
|
39
40
|
icon = false,
|
|
@@ -50,7 +51,8 @@ const QuickPricer = ({
|
|
|
50
51
|
validateEmail,
|
|
51
52
|
validateNMLS = async () => {
|
|
52
53
|
return false;
|
|
53
|
-
}
|
|
54
|
+
},
|
|
55
|
+
onValidate
|
|
54
56
|
}) => {
|
|
55
57
|
const [refiCashOut, setRefiCashOut] = useState(false);
|
|
56
58
|
const [DSCR_Ratio, setDSCR_Ratio] = useState(false);
|
|
@@ -131,12 +133,9 @@ const QuickPricer = ({
|
|
|
131
133
|
message: "Housing event history is required"
|
|
132
134
|
}
|
|
133
135
|
),
|
|
134
|
-
bankruptcyType__c: z.string().min(1, { message: "Bankruptcy type is required" }).refine(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
message: "Bankruptcy type is required"
|
|
138
|
-
}
|
|
139
|
-
),
|
|
136
|
+
bankruptcyType__c: z.string().min(1, { message: "Bankruptcy type is required" }).refine((val) => BankruptcyType.map((item) => item.value).includes(val), {
|
|
137
|
+
message: "Bankruptcy type is required"
|
|
138
|
+
}),
|
|
140
139
|
Number_of_Properties_Financed__c: z.coerce.number({ message: "Please provide a valid # of Properties" }).min(0, {
|
|
141
140
|
message: "Please provide a valid # of Properties"
|
|
142
141
|
}).max(100, {
|
|
@@ -155,12 +154,9 @@ const QuickPricer = ({
|
|
|
155
154
|
Occupance__c: z.string().min(1, { message: "Occupancy is required" }).refine((val) => Occupancy.map((item) => item.value).includes(val), {
|
|
156
155
|
message: "Occupancy is required"
|
|
157
156
|
}),
|
|
158
|
-
Units__c: z.string().min(1, { message: "# of Units is required" }).refine(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
message: "# of Units is required"
|
|
162
|
-
}
|
|
163
|
-
),
|
|
157
|
+
Units__c: z.string().min(1, { message: "# of Units is required" }).refine((val) => NumberOfUnits.map((item) => item.value).includes(val), {
|
|
158
|
+
message: "# of Units is required"
|
|
159
|
+
}),
|
|
164
160
|
Prepayment_Penalty__c: z.string().min(1, { message: "Prepayment penalty is required" }).refine(
|
|
165
161
|
(val) => PrepaymentPenalty.map((field) => field.value).includes(val),
|
|
166
162
|
{
|
|
@@ -189,7 +185,8 @@ const QuickPricer = ({
|
|
|
189
185
|
}
|
|
190
186
|
return removeDashes;
|
|
191
187
|
})
|
|
192
|
-
})
|
|
188
|
+
});
|
|
189
|
+
const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((values, ctx) => {
|
|
193
190
|
if (values.Base_Loan_Amount__c < 149999) {
|
|
194
191
|
ctx.addIssue({
|
|
195
192
|
code: z.ZodIssueCode.custom,
|
|
@@ -211,9 +208,15 @@ const QuickPricer = ({
|
|
|
211
208
|
message: "Loan amount should be lower than property value"
|
|
212
209
|
});
|
|
213
210
|
}
|
|
211
|
+
if (!isValidHoneyPot(values)) {
|
|
212
|
+
ctx.addIssue({
|
|
213
|
+
code: z.ZodIssueCode.custom,
|
|
214
|
+
message: "fields are not valid."
|
|
215
|
+
});
|
|
216
|
+
}
|
|
214
217
|
});
|
|
215
218
|
const methods = useForm({
|
|
216
|
-
resolver: zodResolver(
|
|
219
|
+
resolver: zodResolver(gen_schema, {
|
|
217
220
|
async: true
|
|
218
221
|
}),
|
|
219
222
|
mode: "all",
|
|
@@ -261,612 +264,624 @@ const QuickPricer = ({
|
|
|
261
264
|
}
|
|
262
265
|
)
|
|
263
266
|
] }),
|
|
264
|
-
/* @__PURE__ */ jsxs(
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}),
|
|
292
|
-
label: "Property Value",
|
|
293
|
-
sizes: "medium",
|
|
294
|
-
required: true,
|
|
295
|
-
error: !!errors.Appraised_Value__c,
|
|
296
|
-
helperText: errors.Appraised_Value__c?.message,
|
|
297
|
-
variant,
|
|
298
|
-
maxfractiondigits: 0,
|
|
299
|
-
minfractiondigits: 0
|
|
300
|
-
}
|
|
301
|
-
) }),
|
|
302
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
303
|
-
Dropdown,
|
|
304
|
-
{
|
|
305
|
-
id: "Loan_Purpose__c",
|
|
306
|
-
...register("Loan_Purpose__c", {
|
|
307
|
-
required: true
|
|
308
|
-
}),
|
|
309
|
-
label: "Purpose",
|
|
310
|
-
sizes: "medium",
|
|
311
|
-
required: true,
|
|
312
|
-
error: !!errors.Loan_Purpose__c,
|
|
313
|
-
helperText: errors.Loan_Purpose__c?.message,
|
|
314
|
-
variant,
|
|
315
|
-
defaultValue: "",
|
|
316
|
-
onChange: (event) => {
|
|
317
|
-
if (event.target.value === "RefiCashout") {
|
|
318
|
-
setRefiCashOut(true);
|
|
319
|
-
} else {
|
|
320
|
-
setRefiCashOut(false);
|
|
321
|
-
setValue("Cash_Out_Amount__c", format(0));
|
|
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
|
|
322
294
|
}
|
|
323
|
-
},
|
|
324
|
-
children:
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
error: !!errors.Cash_Out_Amount__c,
|
|
341
|
-
helperText: errors.Cash_Out_Amount__c?.message,
|
|
342
|
-
variant,
|
|
343
|
-
maxfractiondigits: 0,
|
|
344
|
-
minfractiondigits: 0
|
|
345
|
-
}
|
|
346
|
-
) }),
|
|
347
|
-
/* @__PURE__ */ jsxs("div", { className: clsx(one_row, checkbox_group), children: [
|
|
348
|
-
/* @__PURE__ */ jsx(
|
|
349
|
-
Checkbox,
|
|
350
|
-
{
|
|
351
|
-
id: "Interest_Only__c",
|
|
352
|
-
...register("Interest_Only__c"),
|
|
353
|
-
sizes: "medium",
|
|
354
|
-
error: !!errors.Interest_Only__c,
|
|
355
|
-
helperText: errors.Interest_Only__c?.message,
|
|
356
|
-
variant,
|
|
357
|
-
value: 1,
|
|
358
|
-
children: "Interest Only"
|
|
359
|
-
}
|
|
360
|
-
),
|
|
361
|
-
/* @__PURE__ */ jsx(
|
|
362
|
-
Checkbox,
|
|
363
|
-
{
|
|
364
|
-
id: "Self_Employed__c",
|
|
365
|
-
...register("Self_Employed__c"),
|
|
366
|
-
sizes: "medium",
|
|
367
|
-
error: !!errors.Self_Employed__c,
|
|
368
|
-
helperText: errors.Self_Employed__c?.message,
|
|
369
|
-
variant,
|
|
370
|
-
value: 1,
|
|
371
|
-
children: "Self Employed"
|
|
372
|
-
}
|
|
373
|
-
),
|
|
374
|
-
/* @__PURE__ */ jsx(
|
|
375
|
-
Checkbox,
|
|
376
|
-
{
|
|
377
|
-
id: "Pledged_Assets__c",
|
|
378
|
-
...register("Pledged_Assets__c"),
|
|
379
|
-
sizes: "medium",
|
|
380
|
-
error: !!errors.Pledged_Assets__c,
|
|
381
|
-
helperText: errors.Pledged_Assets__c?.message,
|
|
382
|
-
variant,
|
|
383
|
-
value: 1,
|
|
384
|
-
children: "Pledget Assets"
|
|
385
|
-
}
|
|
386
|
-
),
|
|
387
|
-
/* @__PURE__ */ jsx(
|
|
388
|
-
Checkbox,
|
|
389
|
-
{
|
|
390
|
-
id: "Cross_Collateralization__c",
|
|
391
|
-
...register("Cross_Collateralization__c"),
|
|
392
|
-
sizes: "medium",
|
|
393
|
-
error: !!errors.Cross_Collateralization__c,
|
|
394
|
-
helperText: errors.Cross_Collateralization__c?.message,
|
|
395
|
-
variant,
|
|
396
|
-
value: 1,
|
|
397
|
-
children: "Cross Collateralization"
|
|
398
|
-
}
|
|
399
|
-
)
|
|
400
|
-
] }),
|
|
401
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
402
|
-
Dropdown,
|
|
403
|
-
{
|
|
404
|
-
id: "Representative_FICO__c",
|
|
405
|
-
...register("Representative_FICO__c", {
|
|
406
|
-
required: true
|
|
407
|
-
}),
|
|
408
|
-
label: "FICO",
|
|
409
|
-
sizes: "medium",
|
|
410
|
-
required: true,
|
|
411
|
-
error: !!errors.Representative_FICO__c,
|
|
412
|
-
helperText: errors.Representative_FICO__c?.message,
|
|
413
|
-
variant,
|
|
414
|
-
defaultValue: "default",
|
|
415
|
-
children: [
|
|
416
|
-
/* @__PURE__ */ jsx("option", { value: "default", disabled: true, children: "Select option" }),
|
|
417
|
-
RepresentativesFico.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
|
|
418
|
-
]
|
|
419
|
-
}
|
|
420
|
-
) }),
|
|
421
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
422
|
-
Input,
|
|
423
|
-
{
|
|
424
|
-
id: "Months_Reserves__c",
|
|
425
|
-
...register("Months_Reserves__c", {
|
|
426
|
-
required: true,
|
|
427
|
-
max: 100,
|
|
428
|
-
min: 0
|
|
429
|
-
}),
|
|
430
|
-
label: "Months of Reserves",
|
|
431
|
-
sizes: "medium",
|
|
432
|
-
required: true,
|
|
433
|
-
error: !!errors.Months_Reserves__c,
|
|
434
|
-
helperText: errors.Months_Reserves__c?.message,
|
|
435
|
-
variant,
|
|
436
|
-
type: "number",
|
|
437
|
-
max: 100,
|
|
438
|
-
min: 0
|
|
439
|
-
}
|
|
440
|
-
) }),
|
|
441
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
442
|
-
Dropdown,
|
|
443
|
-
{
|
|
444
|
-
id: "Underwriting_Document_Type__c",
|
|
445
|
-
...register("Underwriting_Document_Type__c", {
|
|
446
|
-
required: true
|
|
447
|
-
}),
|
|
448
|
-
label: "Underwriting / Doc Type",
|
|
449
|
-
sizes: "medium",
|
|
450
|
-
required: true,
|
|
451
|
-
error: !!errors.Underwriting_Document_Type__c,
|
|
452
|
-
helperText: errors.Underwriting_Document_Type__c?.message,
|
|
453
|
-
variant,
|
|
454
|
-
defaultValue: "default",
|
|
455
|
-
onChange: (event) => {
|
|
456
|
-
if (event.target.value === "InvestorDscr") {
|
|
457
|
-
setDSCR_Ratio(true);
|
|
458
|
-
} else {
|
|
459
|
-
setDSCR_Ratio(false);
|
|
460
|
-
setValue("Debt_To_Income_Ratio__c", 0);
|
|
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
|
|
461
312
|
}
|
|
462
|
-
},
|
|
463
|
-
children:
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
id: "Citizenship__c",
|
|
490
|
-
...register("Citizenship__c", {
|
|
491
|
-
required: true
|
|
492
|
-
}),
|
|
493
|
-
label: "Citizenship",
|
|
494
|
-
sizes: "medium",
|
|
495
|
-
required: true,
|
|
496
|
-
error: !!errors.Citizenship__c,
|
|
497
|
-
helperText: errors.Citizenship__c?.message,
|
|
498
|
-
variant,
|
|
499
|
-
defaultValue: "default",
|
|
500
|
-
children: [
|
|
501
|
-
/* @__PURE__ */ jsx("option", { value: "default", disabled: true, children: "Select option" }),
|
|
502
|
-
Citizenship.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
|
|
503
|
-
]
|
|
504
|
-
}
|
|
505
|
-
) }),
|
|
506
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
507
|
-
Dropdown,
|
|
508
|
-
{
|
|
509
|
-
id: "Mortgage_Lates_12",
|
|
510
|
-
...register("Mortgage_Lates_12", {
|
|
511
|
-
required: true
|
|
512
|
-
}),
|
|
513
|
-
label: "12 Month Mortgage History",
|
|
514
|
-
sizes: "medium",
|
|
515
|
-
required: true,
|
|
516
|
-
error: !!errors.Mortgage_Lates_12,
|
|
517
|
-
helperText: errors.Mortgage_Lates_12?.message,
|
|
518
|
-
variant,
|
|
519
|
-
defaultValue: "0x30",
|
|
520
|
-
children: MortgageLates12.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, `${item.value}_12`))
|
|
521
|
-
}
|
|
522
|
-
) }),
|
|
523
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
524
|
-
Dropdown,
|
|
525
|
-
{
|
|
526
|
-
id: "Mortgage_Lates_24",
|
|
527
|
-
...register("Mortgage_Lates_24", {
|
|
528
|
-
required: true
|
|
529
|
-
}),
|
|
530
|
-
label: "24 Month Mortgage History",
|
|
531
|
-
sizes: "medium",
|
|
532
|
-
required: true,
|
|
533
|
-
error: !!errors.Mortgage_Lates_24,
|
|
534
|
-
helperText: errors.Mortgage_Lates_24?.message,
|
|
535
|
-
variant,
|
|
536
|
-
defaultValue: "0x30",
|
|
537
|
-
children: MortgageLates24.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, `${item.value}_24`))
|
|
538
|
-
}
|
|
539
|
-
) }),
|
|
540
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
541
|
-
Dropdown,
|
|
542
|
-
{
|
|
543
|
-
id: "HousingEventType__c",
|
|
544
|
-
...register("HousingEventType__c", {
|
|
545
|
-
required: true
|
|
546
|
-
}),
|
|
547
|
-
label: "Housing Event Type",
|
|
548
|
-
sizes: "medium",
|
|
549
|
-
required: true,
|
|
550
|
-
error: !!errors.HousingEventType__c,
|
|
551
|
-
helperText: errors.HousingEventType__c?.message,
|
|
552
|
-
variant,
|
|
553
|
-
onChange: (event) => {
|
|
554
|
-
if (event.target.value !== "None") {
|
|
555
|
-
setHouseEventHistory(true);
|
|
556
|
-
} else {
|
|
557
|
-
setHouseEventHistory(false);
|
|
558
|
-
setValue("housingEventSeasoning__c", "NotApplicable");
|
|
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
|
+
]
|
|
559
340
|
}
|
|
560
|
-
},
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
"option",
|
|
341
|
+
) }),
|
|
342
|
+
refiCashOut && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
343
|
+
CurrencyInput,
|
|
564
344
|
{
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}),
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
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,
|
|
588
415
|
{
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
sizes: "medium",
|
|
605
|
-
required: true,
|
|
606
|
-
error: !!errors.bankruptcyType__c,
|
|
607
|
-
helperText: errors.bankruptcyType__c?.message,
|
|
608
|
-
variant,
|
|
609
|
-
defaultValue: "None",
|
|
610
|
-
onChange: (event) => {
|
|
611
|
-
if (event.target.value !== "None") {
|
|
612
|
-
setBankruptcySeasoning(true);
|
|
613
|
-
} else {
|
|
614
|
-
setBankruptcySeasoning(false);
|
|
615
|
-
setValue("bankruptcySeasoning__c", "NotApplicable");
|
|
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
|
+
]
|
|
616
431
|
}
|
|
617
|
-
},
|
|
618
|
-
|
|
619
|
-
|
|
432
|
+
) }),
|
|
433
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
434
|
+
Input,
|
|
620
435
|
{
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
error: !!errors.Number_of_Properties_Financed__c,
|
|
641
|
-
helperText: errors.Number_of_Properties_Financed__c?.message,
|
|
642
|
-
variant,
|
|
643
|
-
type: "number",
|
|
644
|
-
max: 100,
|
|
645
|
-
min: 0
|
|
646
|
-
}
|
|
647
|
-
) }),
|
|
648
|
-
bankruptcySeasoning && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
649
|
-
Dropdown,
|
|
650
|
-
{
|
|
651
|
-
id: "bankruptcySeasoning__c",
|
|
652
|
-
...register("bankruptcySeasoning__c", {
|
|
653
|
-
required: true
|
|
654
|
-
}),
|
|
655
|
-
label: "Bankruptcy Seasoning",
|
|
656
|
-
sizes: "medium",
|
|
657
|
-
required: true,
|
|
658
|
-
error: !!errors.bankruptcySeasoning__c,
|
|
659
|
-
helperText: errors.bankruptcySeasoning__c?.message,
|
|
660
|
-
variant,
|
|
661
|
-
defaultValue: "NotApplicable",
|
|
662
|
-
children: BankruptcySeasoning.map((item) => /* @__PURE__ */ jsx(
|
|
663
|
-
"option",
|
|
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,
|
|
664
455
|
{
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
{
|
|
689
|
-
id: "Property_Type__c",
|
|
690
|
-
...register("Property_Type__c", {
|
|
691
|
-
required: true
|
|
692
|
-
}),
|
|
693
|
-
label: "Property Type",
|
|
694
|
-
sizes: "medium",
|
|
695
|
-
required: true,
|
|
696
|
-
error: !!errors.Property_Type__c,
|
|
697
|
-
helperText: errors.Property_Type__c?.message,
|
|
698
|
-
variant,
|
|
699
|
-
defaultValue: "Default",
|
|
700
|
-
onChange: (event) => {
|
|
701
|
-
if (event.target.value === "SingleFamily") {
|
|
702
|
-
setNumberOfUnits(true);
|
|
703
|
-
} else {
|
|
704
|
-
setNumberOfUnits(false);
|
|
705
|
-
setValue("Units__c", "OneUnit");
|
|
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
|
+
]
|
|
706
479
|
}
|
|
707
|
-
},
|
|
708
|
-
children:
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
required: true,
|
|
724
|
-
error: !!errors.Occupance__c,
|
|
725
|
-
helperText: errors.Occupance__c?.message,
|
|
726
|
-
variant,
|
|
727
|
-
defaultValue: "",
|
|
728
|
-
onChange: (event) => {
|
|
729
|
-
if (event.target.value === "InvestmentProperty") {
|
|
730
|
-
setPrepaymentPenalty(true);
|
|
731
|
-
} else {
|
|
732
|
-
setPrepaymentPenalty(false);
|
|
733
|
-
setValue("Prepayment_Penalty__c", "None");
|
|
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
|
|
734
496
|
}
|
|
735
|
-
},
|
|
736
|
-
children:
|
|
737
|
-
|
|
738
|
-
Occupancy.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
|
|
739
|
-
]
|
|
740
|
-
}
|
|
741
|
-
) }),
|
|
742
|
-
numberOfUnits && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
743
|
-
Dropdown,
|
|
744
|
-
{
|
|
745
|
-
id: "Units__c",
|
|
746
|
-
...register("Units__c", {
|
|
747
|
-
required: true
|
|
748
|
-
}),
|
|
749
|
-
label: "# of Units",
|
|
750
|
-
sizes: "medium",
|
|
751
|
-
required: true,
|
|
752
|
-
error: !!errors.Units__c,
|
|
753
|
-
helperText: errors.Units__c?.message,
|
|
754
|
-
variant,
|
|
755
|
-
defaultValue: "OneUnit",
|
|
756
|
-
children: NumberOfUnits.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
|
|
757
|
-
}
|
|
758
|
-
) }),
|
|
759
|
-
prepaymentPenalty && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
760
|
-
Dropdown,
|
|
761
|
-
{
|
|
762
|
-
id: "Prepayment_Penalty__c",
|
|
763
|
-
...register("Prepayment_Penalty__c", {
|
|
764
|
-
required: true
|
|
765
|
-
}),
|
|
766
|
-
label: "Prepayment Penalty",
|
|
767
|
-
sizes: "medium",
|
|
768
|
-
required: true,
|
|
769
|
-
error: !!errors.Prepayment_Penalty__c,
|
|
770
|
-
helperText: errors.Prepayment_Penalty__c?.message,
|
|
771
|
-
variant,
|
|
772
|
-
defaultValue: "None",
|
|
773
|
-
children: PrepaymentPenalty.map((item) => /* @__PURE__ */ jsx(
|
|
774
|
-
"option",
|
|
497
|
+
) }),
|
|
498
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
499
|
+
Dropdown,
|
|
775
500
|
{
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
label: "Broker Compensation",
|
|
792
|
-
sizes: "medium",
|
|
793
|
-
required: true,
|
|
794
|
-
error: !!errors.Broker_Compensation__c,
|
|
795
|
-
helperText: errors.Broker_Compensation__c?.message,
|
|
796
|
-
variant,
|
|
797
|
-
defaultValue: "Default",
|
|
798
|
-
children: [
|
|
799
|
-
/* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
|
|
800
|
-
BrokerConpensation.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
|
|
801
|
-
]
|
|
802
|
-
}
|
|
803
|
-
) }),
|
|
804
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
805
|
-
Input,
|
|
806
|
-
{
|
|
807
|
-
id: "NMLS__c",
|
|
808
|
-
...register("NMLS__c", {
|
|
809
|
-
required: true,
|
|
810
|
-
min: 4,
|
|
811
|
-
max: 15
|
|
812
|
-
}),
|
|
813
|
-
label: "Individual NMLS ID",
|
|
814
|
-
sizes: "medium",
|
|
815
|
-
required: true,
|
|
816
|
-
error: !!errors.NMLS__c,
|
|
817
|
-
helperText: errors.NMLS__c?.message,
|
|
818
|
-
variant
|
|
819
|
-
}
|
|
820
|
-
) }),
|
|
821
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
822
|
-
Input,
|
|
823
|
-
{
|
|
824
|
-
id: "Email_Address__c",
|
|
825
|
-
...register("Email_Address__c", {
|
|
826
|
-
required: true,
|
|
827
|
-
validate: {
|
|
828
|
-
isValid: associatedEmail
|
|
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
|
+
]
|
|
829
516
|
}
|
|
830
|
-
}),
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
}),
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
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, 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
|
+
)
|
|
870
885
|
] }) })
|
|
871
886
|
},
|
|
872
887
|
id
|