@axos-web-dev/shared-components 0.0.105 → 0.0.107
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 +3 -2
- package/dist/Accordion/Accordion.css.d.ts +9 -9
- package/dist/BulletItem/BulletItem.d.ts +1 -1
- package/dist/BulletItem/BulletItem.js +5 -39
- package/dist/Button/Button.js +1 -0
- package/dist/Calculators/Calculator.js +3 -2
- package/dist/Carousel/index.js +3 -2
- package/dist/Chevron/index.js +1 -0
- package/dist/Comparison/Comparison.css.js +1 -0
- package/dist/Comparison/Comparison.js +1 -0
- package/dist/Comparison/ComparisonSet.d.ts +1 -1
- package/dist/Comparison/ComparisonSet.js +7 -119
- package/dist/DownloadTile/index.js +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -1
- package/dist/Forms/ApplicationStart.js +1 -0
- package/dist/Forms/CommercialLending.js +1 -0
- package/dist/Forms/ContactCompany.js +1 -0
- package/dist/Forms/ContactUs.js +1 -0
- package/dist/Forms/ContactUsAAS.js +1 -0
- package/dist/Forms/ContactUsBusiness.js +1 -0
- package/dist/Forms/ContactUsNMLSId.js +1 -0
- package/dist/Forms/DealerServices.js +1 -0
- package/dist/Forms/EmailOnly.js +1 -0
- package/dist/Forms/FormEnums.d.ts +14 -0
- package/dist/Forms/FormEnums.js +94 -0
- package/dist/Forms/Forms.css.d.ts +17 -0
- package/dist/Forms/Forms.css.js +7 -0
- package/dist/Forms/QuickPricer.d.ts +30 -0
- package/dist/Forms/QuickPricer.js +759 -0
- package/dist/Forms/SalesforceFieldsForm.d.ts +0 -1
- package/dist/Forms/ScheduleCall.js +5 -1
- package/dist/Forms/ScheduleCallPremier.js +1 -0
- package/dist/Forms/SuccesForm.js +1 -0
- package/dist/Forms/WcplSurvey.js +1 -0
- package/dist/Forms/index.d.ts +1 -0
- package/dist/Forms/index.js +5 -1
- package/dist/Hyperlink/index.js +3 -2
- package/dist/ImageBillboard/ImageBillboard.js +1 -0
- package/dist/ImageBillboard/ImageBillboardSet.js +1 -0
- package/dist/ImageLink/ImageLink.js +2 -1
- package/dist/ImageLink/ImageLinkSet.js +3 -2
- package/dist/ImageLink/index.js +2 -1
- package/dist/Input/Checkbox.d.ts +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/Datepicker.d.ts +3 -0
- package/dist/Input/Datepicker.js +47 -0
- package/dist/Input/InputAmount.d.ts +3 -0
- package/dist/Input/InputAmount.js +31 -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 +6 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Input/index.js +2 -0
- package/dist/Interstitial/Interstitial.js +1 -1
- package/dist/Modal/Modal.js +1 -0
- package/dist/NavigationMenu/AxosAdvisorServices/NavData.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/index.js +1 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +2 -1
- package/dist/SetContainer/SetContainer.js +3 -2
- package/dist/Table/Table.d.ts +13 -13
- package/dist/assets/CallToActionBar/CallToActionBar.css +0 -4
- package/dist/assets/Comparison/Comparison.css +6 -0
- package/dist/assets/Forms/Forms.css +39 -0
- package/dist/assets/Input/DatePicker.css +95 -0
- package/dist/assets/Input/InputDate.css +39 -0
- package/dist/assets/SetContainer/SetContainer.css +1 -1
- package/dist/assets/Table/Table.css +2 -2
- package/dist/assets/themes/axos.css +2 -0
- package/dist/assets/themes/premier.css +2 -0
- package/dist/icons/CheckCircle.d.ts +2 -1
- package/dist/icons/CheckCircle.js +2 -0
- package/dist/main.js +7 -1
- package/dist/themes/axos.css.d.ts +4 -0
- package/dist/themes/axos.css.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
4
|
+
import { Button } from "../Button/Button.js";
|
|
5
|
+
import "../Button/Button.css.js";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
import "react-use";
|
|
8
|
+
import { Checkbox } from "../Input/Checkbox.js";
|
|
9
|
+
import "../Input/CurrencyInput.js";
|
|
10
|
+
import { Dropdown } from "../Input/Dropdown.js";
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
|
+
import { Input } from "../Input/Input.js";
|
|
14
|
+
import "../Input/Input.css.js";
|
|
15
|
+
import { InputAmount } from "../Input/InputAmount.js";
|
|
16
|
+
import { InputPhone } from "../Input/InputPhone.js";
|
|
17
|
+
import "../Input/InputTextArea.js";
|
|
18
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
|
+
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
|
+
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
21
|
+
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
import { associatedEmail } from "../utils/EverestValidity.js";
|
|
27
|
+
import "../utils/allowedAxosDomains.js";
|
|
28
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
29
|
+
import clsx from "clsx";
|
|
30
|
+
import { useForm, FormProvider } from "react-hook-form";
|
|
31
|
+
import * as z from "zod";
|
|
32
|
+
import { Purposes, RepresentativesFico, DocType, Citizenship, MortgageLates, HousingEventType, HousingEventHistory, BankruptcyType, BankruptcySeasoning, PropertyType, Occupancy, NumberOfUnits, PrepaymentPenalty } from "./FormEnums.js";
|
|
33
|
+
import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, one_row, section_title, checkbox_group, disclosureForm, actions } from "./Forms.css.js";
|
|
34
|
+
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
35
|
+
const QuickPricer = ({
|
|
36
|
+
icon = false,
|
|
37
|
+
children,
|
|
38
|
+
onSubmit = (values) => {
|
|
39
|
+
console.log(values);
|
|
40
|
+
},
|
|
41
|
+
disclosure,
|
|
42
|
+
variant: fullVariant = "primary",
|
|
43
|
+
headline,
|
|
44
|
+
callToAction,
|
|
45
|
+
id,
|
|
46
|
+
description,
|
|
47
|
+
validateEmail
|
|
48
|
+
}) => {
|
|
49
|
+
const [refiCashOut, setRefiCashOut] = useState(false);
|
|
50
|
+
const schema = z.object({
|
|
51
|
+
base_Loan_Amount: z.coerce.number({ message: "Please provide a valid loan amount" }).min(149999, {
|
|
52
|
+
message: "Please enter a value greater than or equal to 149999"
|
|
53
|
+
}),
|
|
54
|
+
appraised_Value: z.coerce.number({ message: "Please provide a valid property value" }).min(149999, {
|
|
55
|
+
message: "Please enter a value greater than or equal to 149999"
|
|
56
|
+
}),
|
|
57
|
+
loan_Purpose: z.string().min(1, { message: "Purpose is required" }).refine((val) => Purposes.includes(val), {
|
|
58
|
+
message: "Purpose is required"
|
|
59
|
+
}),
|
|
60
|
+
Cash_Out_Amount: z.coerce.number({
|
|
61
|
+
message: "Please provide a valid property value"
|
|
62
|
+
}).min(1, { message: "Cash Out is required" }),
|
|
63
|
+
CblInterestOnly: z.coerce.string(),
|
|
64
|
+
representative_FICO: z.string().min(1, { message: "Representative FICO is required" }).refine((val) => RepresentativesFico.includes(val), {
|
|
65
|
+
message: "Representative FICO is required"
|
|
66
|
+
}),
|
|
67
|
+
months_Reserves: z.coerce.number({
|
|
68
|
+
message: "Please provide a valid months of reserves"
|
|
69
|
+
}).min(1, { message: "Months of reserves is required" }),
|
|
70
|
+
underwriting_Document_Type: z.string().min(1, { message: "Underwriting / Doc Type is required" }).refine((val) => DocType.includes(val), {
|
|
71
|
+
message: "Underwriting / Doc Type is required"
|
|
72
|
+
}),
|
|
73
|
+
citizenship: z.string().min(1, { message: "Citizenship is required" }).refine((val) => Citizenship.includes(val), {
|
|
74
|
+
message: "Citizenship is required"
|
|
75
|
+
}),
|
|
76
|
+
Mortgage_Lates_12: z.string().min(1, { message: "Mortgage history is required" }).refine((val) => MortgageLates.includes(val), {
|
|
77
|
+
message: "Mortgage history is required"
|
|
78
|
+
}),
|
|
79
|
+
Mortgage_Lates_24: z.string().min(1, { message: "Mortgage history is required" }).refine((val) => MortgageLates.includes(val), {
|
|
80
|
+
message: "Mortgage history is required"
|
|
81
|
+
}),
|
|
82
|
+
HousingEventType: z.string().min(1, { message: "Housing event type is required" }).refine((val) => HousingEventType.includes(val), {
|
|
83
|
+
message: "Housing event type is required"
|
|
84
|
+
}),
|
|
85
|
+
housingEventSeasoning: z.string().min(1, { message: "Housing event history is required" }).refine((val) => HousingEventHistory.includes(val), {
|
|
86
|
+
message: "Housing event history is required"
|
|
87
|
+
}),
|
|
88
|
+
BankruptcyType: z.string().min(1, { message: "Bankruptcy type is required" }).refine((val) => BankruptcyType.includes(val), {
|
|
89
|
+
message: "Bankruptcy type is required"
|
|
90
|
+
}),
|
|
91
|
+
Number_of_Properties_Financed: z.coerce.number({ message: "Please provide a valid # of Properties" }).min(1, {
|
|
92
|
+
message: "Please provide a valid # of Properties"
|
|
93
|
+
}),
|
|
94
|
+
BankruptcySeasoning: z.string().min(1, { message: "Bankruptcy seasoning is required" }).refine((val) => BankruptcySeasoning.includes(val), {
|
|
95
|
+
message: "Bankruptcy seasoning is required"
|
|
96
|
+
}),
|
|
97
|
+
zip: z.string().trim().max(20).min(1, { message: "Zip code is required." }),
|
|
98
|
+
property_Type: z.string().min(1, { message: "Property type is required" }).refine((val) => PropertyType.includes(val), {
|
|
99
|
+
message: "Property type is required"
|
|
100
|
+
}),
|
|
101
|
+
occupance: z.string().min(1, { message: "Occupancy is required" }).refine((val) => Occupancy.includes(val), {
|
|
102
|
+
message: "Occupancy is required"
|
|
103
|
+
}),
|
|
104
|
+
Units: z.string().min(1, { message: "# of Units is required" }).refine((val) => NumberOfUnits.includes(val), {
|
|
105
|
+
message: "# of Units is required"
|
|
106
|
+
}),
|
|
107
|
+
Prepayment_Penalty: z.string().min(1, { message: "Prepayment penalty is required" }).refine((val) => PrepaymentPenalty.includes(val), {
|
|
108
|
+
message: "Prepayment penalty is required"
|
|
109
|
+
}),
|
|
110
|
+
broker_Compensation: z.string().min(1, { message: "Broker compensation is required" }).refine((val) => PrepaymentPenalty.includes(val), {
|
|
111
|
+
message: "Broker compensation is required"
|
|
112
|
+
}),
|
|
113
|
+
NMLS_ID__c: z.string().min(6).max(7),
|
|
114
|
+
email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
|
|
115
|
+
phone: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
|
|
116
|
+
const removeDashes = val.replace(/-/gi, "");
|
|
117
|
+
if (removeDashes.length !== 10) {
|
|
118
|
+
ctx.addIssue({
|
|
119
|
+
code: z.ZodIssueCode.custom,
|
|
120
|
+
message: "Phone must have at least 10 and no more than 10 characters."
|
|
121
|
+
});
|
|
122
|
+
return z.NEVER;
|
|
123
|
+
}
|
|
124
|
+
return removeDashes;
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
const methods = useForm({
|
|
128
|
+
resolver: zodResolver(schema.merge(SalesforceSchema), {
|
|
129
|
+
async: true
|
|
130
|
+
}),
|
|
131
|
+
mode: "all",
|
|
132
|
+
defaultValues: {
|
|
133
|
+
months_Reserves: 0
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
console.log(methods, "methooooods");
|
|
137
|
+
const {
|
|
138
|
+
handleSubmit,
|
|
139
|
+
register,
|
|
140
|
+
formState: { errors, isValid },
|
|
141
|
+
setValue
|
|
142
|
+
} = methods;
|
|
143
|
+
const submitForm = async (data) => {
|
|
144
|
+
await onSubmit(data);
|
|
145
|
+
};
|
|
146
|
+
const variant = getVariant(fullVariant);
|
|
147
|
+
return /* @__PURE__ */ jsx(
|
|
148
|
+
"section",
|
|
149
|
+
{
|
|
150
|
+
id: `id_${id}`,
|
|
151
|
+
className: clsx(formContainer({ variant })),
|
|
152
|
+
children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
153
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
154
|
+
/* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
|
|
155
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
156
|
+
description && /* @__PURE__ */ jsx(
|
|
157
|
+
"div",
|
|
158
|
+
{
|
|
159
|
+
className: clsx(
|
|
160
|
+
"text_center",
|
|
161
|
+
form,
|
|
162
|
+
descriptionField({ variant })
|
|
163
|
+
),
|
|
164
|
+
children: description
|
|
165
|
+
}
|
|
166
|
+
)
|
|
167
|
+
] }),
|
|
168
|
+
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
169
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
170
|
+
/* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Loan Details" }) }),
|
|
171
|
+
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
172
|
+
InputAmount,
|
|
173
|
+
{
|
|
174
|
+
id: "base_Loan_Amount",
|
|
175
|
+
...register("base_Loan_Amount", {
|
|
176
|
+
required: true,
|
|
177
|
+
minLength: 149999,
|
|
178
|
+
maxLength: 999999999
|
|
179
|
+
}),
|
|
180
|
+
label: "Loan Amount",
|
|
181
|
+
sizes: "medium",
|
|
182
|
+
required: true,
|
|
183
|
+
error: !!errors.base_Loan_Amount,
|
|
184
|
+
helperText: errors.base_Loan_Amount?.message,
|
|
185
|
+
variant,
|
|
186
|
+
type: "number"
|
|
187
|
+
}
|
|
188
|
+
) }),
|
|
189
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
190
|
+
InputAmount,
|
|
191
|
+
{
|
|
192
|
+
id: "appraised_Value",
|
|
193
|
+
...register("appraised_Value", {
|
|
194
|
+
required: true,
|
|
195
|
+
minLength: 149999,
|
|
196
|
+
maxLength: 999999999
|
|
197
|
+
}),
|
|
198
|
+
label: "Property Value",
|
|
199
|
+
sizes: "medium",
|
|
200
|
+
required: true,
|
|
201
|
+
error: !!errors.appraised_Value,
|
|
202
|
+
helperText: errors.appraised_Value?.message,
|
|
203
|
+
variant,
|
|
204
|
+
type: "number"
|
|
205
|
+
}
|
|
206
|
+
) }),
|
|
207
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
208
|
+
Dropdown,
|
|
209
|
+
{
|
|
210
|
+
id: "loan_Purpose",
|
|
211
|
+
...register("loan_Purpose", {
|
|
212
|
+
required: true
|
|
213
|
+
}),
|
|
214
|
+
label: "Purpose",
|
|
215
|
+
sizes: "medium",
|
|
216
|
+
required: true,
|
|
217
|
+
error: !!errors.loan_Purpose,
|
|
218
|
+
helperText: errors.loan_Purpose?.message,
|
|
219
|
+
variant,
|
|
220
|
+
defaultValue: "Purpose Loan",
|
|
221
|
+
onChange: (event) => {
|
|
222
|
+
if (event.target.value === "Refi Cashout") {
|
|
223
|
+
setRefiCashOut(true);
|
|
224
|
+
} else {
|
|
225
|
+
setRefiCashOut(false);
|
|
226
|
+
setValue("Cash_Out_Amount", 0);
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
children: [
|
|
230
|
+
/* @__PURE__ */ jsx("option", { value: "Purpose Loan", disabled: true, children: "Select a Purpose Loan" }),
|
|
231
|
+
/* @__PURE__ */ jsx("option", { value: "Purchase", children: "Purchase" }),
|
|
232
|
+
/* @__PURE__ */ jsx("option", { value: "Refi Cashout", children: "Refi Cashout" }),
|
|
233
|
+
/* @__PURE__ */ jsx("option", { value: "Refi Rate-Term/Limited C.O.", children: "Refi Rate-Term/Limited C.O." })
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
) }),
|
|
237
|
+
refiCashOut && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
238
|
+
InputAmount,
|
|
239
|
+
{
|
|
240
|
+
id: "Cash_Out_Amount",
|
|
241
|
+
...register("Cash_Out_Amount", {
|
|
242
|
+
required: true
|
|
243
|
+
}),
|
|
244
|
+
label: "Cash Out",
|
|
245
|
+
sizes: "medium",
|
|
246
|
+
required: true,
|
|
247
|
+
error: !!errors.Cash_Out_Amount,
|
|
248
|
+
helperText: errors.Cash_Out_Amount?.message,
|
|
249
|
+
variant,
|
|
250
|
+
type: "number"
|
|
251
|
+
}
|
|
252
|
+
) }),
|
|
253
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(one_row, checkbox_group), children: [
|
|
254
|
+
/* @__PURE__ */ jsx(
|
|
255
|
+
Checkbox,
|
|
256
|
+
{
|
|
257
|
+
id: "CblInterestOnly",
|
|
258
|
+
...register("CblInterestOnly"),
|
|
259
|
+
sizes: "medium",
|
|
260
|
+
error: !!errors.CblInterestOnly,
|
|
261
|
+
helperText: errors.CblInterestOnly?.message,
|
|
262
|
+
variant,
|
|
263
|
+
value: "Interest Only",
|
|
264
|
+
children: "Interest Only"
|
|
265
|
+
}
|
|
266
|
+
),
|
|
267
|
+
/* @__PURE__ */ jsx(
|
|
268
|
+
Checkbox,
|
|
269
|
+
{
|
|
270
|
+
id: "CblInterestOnly",
|
|
271
|
+
...register("CblInterestOnly"),
|
|
272
|
+
sizes: "medium",
|
|
273
|
+
error: !!errors.CblInterestOnly,
|
|
274
|
+
helperText: errors.CblInterestOnly?.message,
|
|
275
|
+
variant,
|
|
276
|
+
value: "Self Employed",
|
|
277
|
+
children: "Self Employed"
|
|
278
|
+
}
|
|
279
|
+
),
|
|
280
|
+
/* @__PURE__ */ jsx(
|
|
281
|
+
Checkbox,
|
|
282
|
+
{
|
|
283
|
+
id: "CblInterestOnly",
|
|
284
|
+
...register("CblInterestOnly"),
|
|
285
|
+
sizes: "medium",
|
|
286
|
+
error: !!errors.CblInterestOnly,
|
|
287
|
+
helperText: errors.CblInterestOnly?.message,
|
|
288
|
+
variant,
|
|
289
|
+
value: "Pledget Assets",
|
|
290
|
+
children: "Pledget Assets"
|
|
291
|
+
}
|
|
292
|
+
),
|
|
293
|
+
/* @__PURE__ */ jsx(
|
|
294
|
+
Checkbox,
|
|
295
|
+
{
|
|
296
|
+
id: "CblInterestOnly",
|
|
297
|
+
...register("CblInterestOnly"),
|
|
298
|
+
sizes: "medium",
|
|
299
|
+
error: !!errors.CblInterestOnly,
|
|
300
|
+
helperText: errors.CblInterestOnly?.message,
|
|
301
|
+
variant,
|
|
302
|
+
value: "Cross Collateralization",
|
|
303
|
+
children: "Cross Collateralization"
|
|
304
|
+
}
|
|
305
|
+
)
|
|
306
|
+
] }),
|
|
307
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
308
|
+
Dropdown,
|
|
309
|
+
{
|
|
310
|
+
id: "representative_FICO",
|
|
311
|
+
...register("representative_FICO", {
|
|
312
|
+
required: true
|
|
313
|
+
}),
|
|
314
|
+
label: "FICO",
|
|
315
|
+
sizes: "medium",
|
|
316
|
+
required: true,
|
|
317
|
+
error: !!errors.representative_FICO,
|
|
318
|
+
helperText: errors.representative_FICO?.message,
|
|
319
|
+
variant,
|
|
320
|
+
defaultValue: "FICO",
|
|
321
|
+
children: [
|
|
322
|
+
/* @__PURE__ */ jsx("option", { value: "FICO", disabled: true, children: "Select a Representative FICO" }),
|
|
323
|
+
/* @__PURE__ */ jsx("option", { value: "780 +", children: "780 +" }),
|
|
324
|
+
/* @__PURE__ */ jsx("option", { value: "779 - 760", children: "779 - 740" }),
|
|
325
|
+
/* @__PURE__ */ jsx("option", { value: "759 - 760", children: "779 - 740" }),
|
|
326
|
+
/* @__PURE__ */ jsx("option", { value: "739 - 720", children: "739 - 720" }),
|
|
327
|
+
/* @__PURE__ */ jsx("option", { value: "719 - 700", children: "719 - 700" }),
|
|
328
|
+
/* @__PURE__ */ jsx("option", { value: "699 - 680", children: "699 - 680" }),
|
|
329
|
+
/* @__PURE__ */ jsx("option", { value: "679 - 660", children: "679 - 660" }),
|
|
330
|
+
/* @__PURE__ */ jsx("option", { value: "659 - 640", children: "659 - 640" }),
|
|
331
|
+
/* @__PURE__ */ jsx("option", { value: "639 - 620", children: "639 - 620" }),
|
|
332
|
+
/* @__PURE__ */ jsx("option", { value: "Below 620", children: "Below 620" })
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
) }),
|
|
336
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
337
|
+
InputAmount,
|
|
338
|
+
{
|
|
339
|
+
id: "months_Reserves",
|
|
340
|
+
...register("months_Reserves", {
|
|
341
|
+
required: true
|
|
342
|
+
}),
|
|
343
|
+
label: "Property Value",
|
|
344
|
+
sizes: "medium",
|
|
345
|
+
required: true,
|
|
346
|
+
error: !!errors.months_Reserves,
|
|
347
|
+
helperText: errors.months_Reserves?.message,
|
|
348
|
+
variant,
|
|
349
|
+
type: "number"
|
|
350
|
+
}
|
|
351
|
+
) }),
|
|
352
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
353
|
+
Dropdown,
|
|
354
|
+
{
|
|
355
|
+
id: "underwriting_Document_Type",
|
|
356
|
+
...register("underwriting_Document_Type", {
|
|
357
|
+
required: true
|
|
358
|
+
}),
|
|
359
|
+
label: "Underwriting / Doc Type",
|
|
360
|
+
sizes: "medium",
|
|
361
|
+
required: true,
|
|
362
|
+
error: !!errors.underwriting_Document_Type,
|
|
363
|
+
helperText: errors.underwriting_Document_Type?.message,
|
|
364
|
+
variant,
|
|
365
|
+
defaultValue: "Full Doc",
|
|
366
|
+
children: [
|
|
367
|
+
/* @__PURE__ */ jsx("option", { value: "Full Doc", children: "Full Doc" }),
|
|
368
|
+
/* @__PURE__ */ jsx("option", { value: "Asset Depletion", children: "Asset Depletion" }),
|
|
369
|
+
/* @__PURE__ */ jsx("option", { value: "Personal Bank Stmt: 12 Mos", children: "Personal Bank Stmt: 12 Mos" }),
|
|
370
|
+
/* @__PURE__ */ jsx("option", { value: "Business Bank Stmt: 12 Mos", children: "Business Bank Stmt: 12 Mos" }),
|
|
371
|
+
/* @__PURE__ */ jsx("option", { value: "Personal Bank Stmt: 24 Mos", children: "Personal Bank Stmt: 24 Mos" }),
|
|
372
|
+
/* @__PURE__ */ jsx("option", { value: "Business Bank Stmt: 24 Mos", children: "Business Bank Stmt: 24 Mos" }),
|
|
373
|
+
/* @__PURE__ */ jsx("option", { value: "Investor - DSCR", children: "Investor - DSCR" }),
|
|
374
|
+
/* @__PURE__ */ jsx("option", { value: "Investor - DSCR No Ratio", children: "Investor - DSCR No Ratio" }),
|
|
375
|
+
/* @__PURE__ */ jsx("option", { value: "Written VOE", children: "Written VOE" }),
|
|
376
|
+
/* @__PURE__ */ jsx("option", { value: "2 Year Alt Doc", children: "2 Year Alt Doc" }),
|
|
377
|
+
/* @__PURE__ */ jsx("option", { value: "1yr Streamlined Full Doc", children: "1yr Streamlined Full Doc" })
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
) }),
|
|
381
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
382
|
+
Dropdown,
|
|
383
|
+
{
|
|
384
|
+
id: "citizenship",
|
|
385
|
+
...register("citizenship", {
|
|
386
|
+
required: true
|
|
387
|
+
}),
|
|
388
|
+
label: "Citizenship",
|
|
389
|
+
sizes: "medium",
|
|
390
|
+
required: true,
|
|
391
|
+
error: !!errors.citizenship,
|
|
392
|
+
helperText: errors.citizenship?.message,
|
|
393
|
+
variant,
|
|
394
|
+
defaultValue: "U.S. Citizen",
|
|
395
|
+
children: [
|
|
396
|
+
/* @__PURE__ */ jsx("option", { value: "U.S. Citizen", children: "U.S. Citizen" }),
|
|
397
|
+
/* @__PURE__ */ jsx("option", { value: "Perm. Resident Alien", children: "Perm. Resident Alien" }),
|
|
398
|
+
/* @__PURE__ */ jsx("option", { value: "Non-Perm. Resident Alien", children: "Non-Perm. Resident Alien" }),
|
|
399
|
+
/* @__PURE__ */ jsx("option", { value: "Foreign National", children: "Foreign National" })
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
) }),
|
|
403
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
404
|
+
Dropdown,
|
|
405
|
+
{
|
|
406
|
+
id: "Mortgage_Lates_12",
|
|
407
|
+
...register("Mortgage_Lates_12", {
|
|
408
|
+
required: true
|
|
409
|
+
}),
|
|
410
|
+
label: "12 Month Mortgage History",
|
|
411
|
+
sizes: "medium",
|
|
412
|
+
required: true,
|
|
413
|
+
error: !!errors.Mortgage_Lates_12,
|
|
414
|
+
helperText: errors.Mortgage_Lates_12?.message,
|
|
415
|
+
variant,
|
|
416
|
+
defaultValue: "0x30",
|
|
417
|
+
children: [
|
|
418
|
+
/* @__PURE__ */ jsx("option", { value: "0x30", children: "0x30" }),
|
|
419
|
+
/* @__PURE__ */ jsx("option", { value: "1x30", children: "1x30" }),
|
|
420
|
+
/* @__PURE__ */ jsx("option", { value: "2x30", children: "2x30" }),
|
|
421
|
+
/* @__PURE__ */ jsx("option", { value: "3x30", children: "3x30 +" })
|
|
422
|
+
]
|
|
423
|
+
}
|
|
424
|
+
) }),
|
|
425
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
426
|
+
Dropdown,
|
|
427
|
+
{
|
|
428
|
+
id: "Mortgage_Lates_24",
|
|
429
|
+
...register("Mortgage_Lates_24", {
|
|
430
|
+
required: true
|
|
431
|
+
}),
|
|
432
|
+
label: "24 Month Mortgage History",
|
|
433
|
+
sizes: "medium",
|
|
434
|
+
required: true,
|
|
435
|
+
error: !!errors.Mortgage_Lates_24,
|
|
436
|
+
helperText: errors.Mortgage_Lates_24?.message,
|
|
437
|
+
variant,
|
|
438
|
+
defaultValue: "0x30",
|
|
439
|
+
children: [
|
|
440
|
+
/* @__PURE__ */ jsx("option", { value: "0x30", children: "0x30" }),
|
|
441
|
+
/* @__PURE__ */ jsx("option", { value: "1x30", children: "1x30" }),
|
|
442
|
+
/* @__PURE__ */ jsx("option", { value: "2x30", children: "2x30" }),
|
|
443
|
+
/* @__PURE__ */ jsx("option", { value: "3x30", children: "3x30 +" })
|
|
444
|
+
]
|
|
445
|
+
}
|
|
446
|
+
) }),
|
|
447
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
448
|
+
Dropdown,
|
|
449
|
+
{
|
|
450
|
+
id: "HousingEventType",
|
|
451
|
+
...register("HousingEventType", {
|
|
452
|
+
required: true
|
|
453
|
+
}),
|
|
454
|
+
label: "Housing Event Type",
|
|
455
|
+
sizes: "medium",
|
|
456
|
+
required: true,
|
|
457
|
+
error: !!errors.HousingEventType,
|
|
458
|
+
helperText: errors.HousingEventType?.message,
|
|
459
|
+
variant,
|
|
460
|
+
defaultValue: "None",
|
|
461
|
+
children: [
|
|
462
|
+
/* @__PURE__ */ jsx("option", { value: "None", children: "None" }),
|
|
463
|
+
/* @__PURE__ */ jsx("option", { value: "Deed-In-Lieu", children: "Deed-In-Lieu" }),
|
|
464
|
+
/* @__PURE__ */ jsx("option", { value: "Short Sale", children: "Short Sale" }),
|
|
465
|
+
/* @__PURE__ */ jsx("option", { value: "Forbearance", children: "Forbearance" }),
|
|
466
|
+
/* @__PURE__ */ jsx("option", { value: "Foreclosure", children: "Foreclosure" }),
|
|
467
|
+
/* @__PURE__ */ jsx("option", { value: "Modification", children: "Modification" })
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
) }),
|
|
471
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
472
|
+
Dropdown,
|
|
473
|
+
{
|
|
474
|
+
id: "housingEventSeasoning",
|
|
475
|
+
...register("housingEventSeasoning", {
|
|
476
|
+
required: true
|
|
477
|
+
}),
|
|
478
|
+
label: "Housing Event History",
|
|
479
|
+
sizes: "medium",
|
|
480
|
+
required: true,
|
|
481
|
+
error: !!errors.housingEventSeasoning,
|
|
482
|
+
helperText: errors.housingEventSeasoning?.message,
|
|
483
|
+
variant,
|
|
484
|
+
defaultValue: "Not Applicable",
|
|
485
|
+
children: [
|
|
486
|
+
/* @__PURE__ */ jsx("option", { value: "Not Applicable", children: "Not Applicable" }),
|
|
487
|
+
/* @__PURE__ */ jsx("option", { value: "1-12 Months", children: "1-12 Months" }),
|
|
488
|
+
/* @__PURE__ */ jsx("option", { value: "13-24 Months", children: "13-24 Months" }),
|
|
489
|
+
/* @__PURE__ */ jsx("option", { value: "25-36 Months", children: "25-36 Months" }),
|
|
490
|
+
/* @__PURE__ */ jsx("option", { value: "37-48 Months", children: "37-48 Months" }),
|
|
491
|
+
/* @__PURE__ */ jsx("option", { value: "49-60 Months", children: "49-60 Months" }),
|
|
492
|
+
/* @__PURE__ */ jsx("option", { value: "More than 5 Years Ago", children: "More than 5 Years Ago" })
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
) }),
|
|
496
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
497
|
+
Dropdown,
|
|
498
|
+
{
|
|
499
|
+
id: "BankruptcyType",
|
|
500
|
+
...register("BankruptcyType", {
|
|
501
|
+
required: true
|
|
502
|
+
}),
|
|
503
|
+
label: "Bankruptcy Type",
|
|
504
|
+
sizes: "medium",
|
|
505
|
+
required: true,
|
|
506
|
+
error: !!errors.BankruptcyType,
|
|
507
|
+
helperText: errors.BankruptcyType?.message,
|
|
508
|
+
variant,
|
|
509
|
+
defaultValue: "None",
|
|
510
|
+
children: [
|
|
511
|
+
/* @__PURE__ */ jsx("option", { value: "None", children: "None" }),
|
|
512
|
+
/* @__PURE__ */ jsx("option", { value: "Chapter 7", children: "Chapter 7" }),
|
|
513
|
+
/* @__PURE__ */ jsx("option", { value: "Chapter 11", children: "Chapter 11" }),
|
|
514
|
+
/* @__PURE__ */ jsx("option", { value: "Chapter 13", children: "Chapter 13" })
|
|
515
|
+
]
|
|
516
|
+
}
|
|
517
|
+
) }),
|
|
518
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
519
|
+
InputAmount,
|
|
520
|
+
{
|
|
521
|
+
id: "Number_of_Properties_Financed",
|
|
522
|
+
...register("Number_of_Properties_Financed", {
|
|
523
|
+
required: true
|
|
524
|
+
}),
|
|
525
|
+
label: "# of Properties Financed",
|
|
526
|
+
sizes: "medium",
|
|
527
|
+
required: true,
|
|
528
|
+
error: !!errors.Number_of_Properties_Financed,
|
|
529
|
+
helperText: errors.Number_of_Properties_Financed?.message,
|
|
530
|
+
variant,
|
|
531
|
+
type: "number"
|
|
532
|
+
}
|
|
533
|
+
) }),
|
|
534
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
535
|
+
Dropdown,
|
|
536
|
+
{
|
|
537
|
+
id: "BankruptcySeasoning",
|
|
538
|
+
...register("BankruptcySeasoning", {
|
|
539
|
+
required: true
|
|
540
|
+
}),
|
|
541
|
+
label: "Bankruptcy Seasoning",
|
|
542
|
+
sizes: "medium",
|
|
543
|
+
required: true,
|
|
544
|
+
error: !!errors.BankruptcySeasoning,
|
|
545
|
+
helperText: errors.BankruptcySeasoning?.message,
|
|
546
|
+
variant,
|
|
547
|
+
defaultValue: "Not Applicable",
|
|
548
|
+
children: [
|
|
549
|
+
/* @__PURE__ */ jsx("option", { value: "Not Applicable", children: "Not Applicable" }),
|
|
550
|
+
/* @__PURE__ */ jsx("option", { value: "1-12 Months", children: "1-12 Months" }),
|
|
551
|
+
/* @__PURE__ */ jsx("option", { value: "13-24 Months", children: "13-24 Months" }),
|
|
552
|
+
/* @__PURE__ */ jsx("option", { value: "25-36 Months", children: "25-36 Months" }),
|
|
553
|
+
/* @__PURE__ */ jsx("option", { value: "37-48 Months", children: "37-48 Months" }),
|
|
554
|
+
/* @__PURE__ */ jsx("option", { value: "49-60 Months", children: "49-60 Months" }),
|
|
555
|
+
/* @__PURE__ */ jsx("option", { value: "More than 5 Years Ago", children: "More than 5 Years Ago" })
|
|
556
|
+
]
|
|
557
|
+
}
|
|
558
|
+
) }),
|
|
559
|
+
/* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Property Information" }) }),
|
|
560
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
561
|
+
Input,
|
|
562
|
+
{
|
|
563
|
+
id: "zip",
|
|
564
|
+
...register("zip", { required: true }),
|
|
565
|
+
label: "Zip Code",
|
|
566
|
+
sizes: "medium",
|
|
567
|
+
placeholder: "Zip Code",
|
|
568
|
+
required: true,
|
|
569
|
+
error: !!errors.zip,
|
|
570
|
+
helperText: errors.zip?.message,
|
|
571
|
+
variant
|
|
572
|
+
}
|
|
573
|
+
) }),
|
|
574
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
575
|
+
Dropdown,
|
|
576
|
+
{
|
|
577
|
+
id: "property_Type",
|
|
578
|
+
...register("property_Type", {
|
|
579
|
+
required: true
|
|
580
|
+
}),
|
|
581
|
+
label: "Property Type",
|
|
582
|
+
sizes: "medium",
|
|
583
|
+
required: true,
|
|
584
|
+
error: !!errors.property_Type,
|
|
585
|
+
helperText: errors.property_Type?.message,
|
|
586
|
+
variant,
|
|
587
|
+
defaultValue: "Default",
|
|
588
|
+
children: [
|
|
589
|
+
/* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
|
|
590
|
+
/* @__PURE__ */ jsx("option", { value: "Single Family Residence", children: "Single Family Residence" }),
|
|
591
|
+
/* @__PURE__ */ jsx("option", { value: "Condo", children: "Condo" }),
|
|
592
|
+
/* @__PURE__ */ jsx("option", { value: "Co-op", children: "Co-op" }),
|
|
593
|
+
/* @__PURE__ */ jsx("option", { value: "Condotel", children: "Condotel" })
|
|
594
|
+
]
|
|
595
|
+
}
|
|
596
|
+
) }),
|
|
597
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
598
|
+
Dropdown,
|
|
599
|
+
{
|
|
600
|
+
id: "occupance",
|
|
601
|
+
...register("occupance", {
|
|
602
|
+
required: true
|
|
603
|
+
}),
|
|
604
|
+
label: "Occupancy",
|
|
605
|
+
sizes: "medium",
|
|
606
|
+
required: true,
|
|
607
|
+
error: !!errors.occupance,
|
|
608
|
+
helperText: errors.occupance?.message,
|
|
609
|
+
variant,
|
|
610
|
+
defaultValue: "Default",
|
|
611
|
+
children: [
|
|
612
|
+
/* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
|
|
613
|
+
/* @__PURE__ */ jsx("option", { value: "Principal Residence", children: "Principal Residence" }),
|
|
614
|
+
/* @__PURE__ */ jsx("option", { value: "Second Home", children: "Second Home" }),
|
|
615
|
+
/* @__PURE__ */ jsx("option", { value: "Investment", children: "Investment" })
|
|
616
|
+
]
|
|
617
|
+
}
|
|
618
|
+
) }),
|
|
619
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
620
|
+
Dropdown,
|
|
621
|
+
{
|
|
622
|
+
id: "Units",
|
|
623
|
+
...register("Units", {
|
|
624
|
+
required: true
|
|
625
|
+
}),
|
|
626
|
+
label: "# of Units",
|
|
627
|
+
sizes: "medium",
|
|
628
|
+
required: true,
|
|
629
|
+
error: !!errors.Units,
|
|
630
|
+
helperText: errors.Units?.message,
|
|
631
|
+
variant,
|
|
632
|
+
defaultValue: "Default",
|
|
633
|
+
children: [
|
|
634
|
+
/* @__PURE__ */ jsx("option", { value: "1 Unit", children: "1 Unit" }),
|
|
635
|
+
/* @__PURE__ */ jsx("option", { value: "2 Unit", children: "2 Unit" }),
|
|
636
|
+
/* @__PURE__ */ jsx("option", { value: "3 Unit", children: "3 Unit" }),
|
|
637
|
+
/* @__PURE__ */ jsx("option", { value: "4 Unit", children: "4 Unit" })
|
|
638
|
+
]
|
|
639
|
+
}
|
|
640
|
+
) }),
|
|
641
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
642
|
+
Dropdown,
|
|
643
|
+
{
|
|
644
|
+
id: "Prepayment_Penalty",
|
|
645
|
+
...register("Prepayment_Penalty", {
|
|
646
|
+
required: true
|
|
647
|
+
}),
|
|
648
|
+
label: "Prepayment Penalty",
|
|
649
|
+
sizes: "medium",
|
|
650
|
+
required: true,
|
|
651
|
+
error: !!errors.Prepayment_Penalty,
|
|
652
|
+
helperText: errors.Prepayment_Penalty?.message,
|
|
653
|
+
variant,
|
|
654
|
+
defaultValue: "Default",
|
|
655
|
+
children: [
|
|
656
|
+
/* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
|
|
657
|
+
/* @__PURE__ */ jsx("option", { value: "1 Year", children: "1 Year" }),
|
|
658
|
+
/* @__PURE__ */ jsx("option", { value: "2 Year", children: "2 Year" }),
|
|
659
|
+
/* @__PURE__ */ jsx("option", { value: "3 Year", children: "3 Year" }),
|
|
660
|
+
/* @__PURE__ */ jsx("option", { value: "4 Year", children: "4 Year" }),
|
|
661
|
+
/* @__PURE__ */ jsx("option", { value: "5 Year", children: "5 Year" })
|
|
662
|
+
]
|
|
663
|
+
}
|
|
664
|
+
) }),
|
|
665
|
+
/* @__PURE__ */ jsx("div", { className: clsx(one_row, section_title({ variant })), children: /* @__PURE__ */ jsx("h4", { className: "header_4", children: "Broker Information" }) }),
|
|
666
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
667
|
+
Dropdown,
|
|
668
|
+
{
|
|
669
|
+
id: "broker_Compensation",
|
|
670
|
+
...register("broker_Compensation", {
|
|
671
|
+
required: true
|
|
672
|
+
}),
|
|
673
|
+
label: "Broker Compensation",
|
|
674
|
+
sizes: "medium",
|
|
675
|
+
required: true,
|
|
676
|
+
error: !!errors.broker_Compensation,
|
|
677
|
+
helperText: errors.broker_Compensation?.message,
|
|
678
|
+
variant,
|
|
679
|
+
defaultValue: "Default",
|
|
680
|
+
children: [
|
|
681
|
+
/* @__PURE__ */ jsx("option", { value: "Default", disabled: true, children: "Select option" }),
|
|
682
|
+
/* @__PURE__ */ jsx("option", { value: "Borrower Paid", children: "Borrower Paid" }),
|
|
683
|
+
/* @__PURE__ */ jsx("option", { value: "Lender Paid", children: "Lender Paid" })
|
|
684
|
+
]
|
|
685
|
+
}
|
|
686
|
+
) }),
|
|
687
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
688
|
+
Input,
|
|
689
|
+
{
|
|
690
|
+
id: "NMLS_ID__c",
|
|
691
|
+
...register("NMLS_ID__c", {
|
|
692
|
+
required: true,
|
|
693
|
+
min: 6,
|
|
694
|
+
max: 7
|
|
695
|
+
}),
|
|
696
|
+
label: "Company NMLS ID",
|
|
697
|
+
placeholder: "Company NMLS ID",
|
|
698
|
+
sizes: "medium",
|
|
699
|
+
required: true,
|
|
700
|
+
error: !!errors.NMLS_ID__c,
|
|
701
|
+
helperText: errors.NMLS_ID__c?.message,
|
|
702
|
+
variant
|
|
703
|
+
}
|
|
704
|
+
) }),
|
|
705
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
706
|
+
Input,
|
|
707
|
+
{
|
|
708
|
+
id: "email",
|
|
709
|
+
...register("email", {
|
|
710
|
+
required: true,
|
|
711
|
+
validate: {
|
|
712
|
+
isValid: associatedEmail
|
|
713
|
+
}
|
|
714
|
+
}),
|
|
715
|
+
label: "Email",
|
|
716
|
+
sizes: "medium",
|
|
717
|
+
placeholder: "Email",
|
|
718
|
+
required: true,
|
|
719
|
+
error: !!errors.email,
|
|
720
|
+
helperText: errors.email?.message,
|
|
721
|
+
variant
|
|
722
|
+
}
|
|
723
|
+
) }),
|
|
724
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
725
|
+
InputPhone,
|
|
726
|
+
{
|
|
727
|
+
id: "phone",
|
|
728
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
729
|
+
label: "Phone",
|
|
730
|
+
sizes: "medium",
|
|
731
|
+
placeholder: "Phone",
|
|
732
|
+
required: true,
|
|
733
|
+
error: !!errors.phone,
|
|
734
|
+
helperText: errors.phone?.message,
|
|
735
|
+
variant
|
|
736
|
+
}
|
|
737
|
+
) })
|
|
738
|
+
] }),
|
|
739
|
+
children,
|
|
740
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
741
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
742
|
+
Button,
|
|
743
|
+
{
|
|
744
|
+
color: getVariant(callToAction?.variant),
|
|
745
|
+
as: "button",
|
|
746
|
+
type: "submit",
|
|
747
|
+
disabled: !isValid,
|
|
748
|
+
children: callToAction?.displayText
|
|
749
|
+
}
|
|
750
|
+
) })
|
|
751
|
+
] })
|
|
752
|
+
] }) })
|
|
753
|
+
},
|
|
754
|
+
id
|
|
755
|
+
);
|
|
756
|
+
};
|
|
757
|
+
export {
|
|
758
|
+
QuickPricer
|
|
759
|
+
};
|