@axos-web-dev/shared-components 0.0.147 → 0.0.148
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 +5 -3
- package/dist/Button/Button.js +5 -2
- package/dist/Calculators/Calculator.js +3 -1
- package/dist/Carousel/index.js +3 -1
- package/dist/Chevron/index.js +5 -2
- package/dist/Comparison/Comparison.js +6 -4
- package/dist/FaqAccordion/index.js +6 -4
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +3 -1
- package/dist/Forms/ApplicationStart.js +2 -2
- package/dist/Forms/ClearingForm.js +2 -2
- package/dist/Forms/CommercialDeposits.js +2 -2
- package/dist/Forms/CommercialLending.js +2 -2
- package/dist/Forms/ContactCompany.js +2 -2
- package/dist/Forms/ContactUs.js +2 -2
- package/dist/Forms/ContactUsAAS.js +2 -2
- package/dist/Forms/ContactUsBusiness.js +5 -3
- package/dist/Forms/ContactUsNMLSId.js +5 -3
- package/dist/Forms/CpraRequest.js +2 -2
- package/dist/Forms/DealerServices.js +2 -2
- package/dist/Forms/EmailOnly.js +5 -3
- package/dist/Forms/Forms.css.d.ts +13 -0
- package/dist/Forms/Forms.css.js +26 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +26 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.js +735 -0
- package/dist/Forms/MortgageRate/MortgageRateModal.d.ts +16 -0
- package/dist/Forms/MortgageRate/MortgageRateModal.js +65 -0
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.d.ts +16 -0
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +428 -0
- package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +28 -0
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +484 -0
- package/dist/Forms/QuickPricer.js +2 -2
- package/dist/Forms/ScheduleCall.js +2 -2
- package/dist/Forms/ScheduleCallPremier.js +2 -2
- package/dist/Forms/SuccesForm.js +3 -1
- package/dist/Forms/WcplSurvey.js +2 -2
- package/dist/Forms/index.d.ts +4 -0
- package/dist/Forms/index.js +24 -1
- package/dist/Hyperlink/index.js +3 -1
- package/dist/ImageLink/ImageLink.js +5 -3
- package/dist/ImageLink/ImageLinkSet.js +5 -3
- package/dist/ImageLink/index.js +3 -1
- package/dist/Input/CurrencyInput.js +2 -2
- package/dist/Input/DownPaymentInput.d.ts +12 -0
- package/dist/Input/DownPaymentInput.js +123 -0
- package/dist/Input/Dropdown.css.d.ts +5 -0
- package/dist/Input/Dropdown.css.js +3 -0
- package/dist/Input/Input.js +3 -1
- package/dist/Input/InputAmount.js +2 -2
- package/dist/Input/InputPhone.js +2 -2
- package/dist/Input/InputProps.d.ts +3 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Input/index.js +4 -1
- package/dist/Insight/Featured/CategorySelector.js +3 -1
- package/dist/Insight/Featured/Featured.js +3 -1
- package/dist/Interstitial/Interstitial.module.js +14 -11
- package/dist/Modal/Modal.js +5 -3
- package/dist/NavigationMenu/AxosBank/NavData.js +3 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +3 -1
- package/dist/NavigationMenu/AxosBank/index.js +5 -3
- package/dist/SetContainer/SetContainer.js +5 -3
- package/dist/Table/Table.css.d.ts +1 -0
- package/dist/Table/Table.css.js +2 -0
- package/dist/Table/index.js +2 -1
- package/dist/assets/Forms/Forms.css +81 -3
- package/dist/assets/Input/Dropdown.css +3 -0
- package/dist/assets/Interstitial/Interstitial.css.css +141 -137
- package/dist/assets/Table/Table.css +6 -0
- package/dist/main.js +29 -5
- package/package.json +124 -124
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
4
|
+
import "../../Input/Checkbox.js";
|
|
5
|
+
import "../../Input/CurrencyInput.js";
|
|
6
|
+
import { Dropdown } from "../../Input/Dropdown.js";
|
|
7
|
+
import "../../Input/Dropdown.css.js";
|
|
8
|
+
import { Input } from "../../Input/Input.js";
|
|
9
|
+
import "../../Input/Input.css.js";
|
|
10
|
+
import "../../Input/InputAmount.js";
|
|
11
|
+
import "../../Input/InputPhone.js";
|
|
12
|
+
import "../../Input/InputTextArea.js";
|
|
13
|
+
import "../../Input/DownPaymentInput.js";
|
|
14
|
+
import { useForm, FormProvider } from "react-hook-form";
|
|
15
|
+
import * as z from "zod";
|
|
16
|
+
import clsx from "clsx";
|
|
17
|
+
import { LoadingIndicator } from "../../LoadingIndicator/index.js";
|
|
18
|
+
import { useState, useEffect } from "react";
|
|
19
|
+
import CheckboxGroup from "../../Input/CheckboxGroup.js";
|
|
20
|
+
import { dropdown, mt1Rem, threeColRow, resposiveLabel, dynPH, modalCheckboxContainer, mw24 } from "../Forms.css.js";
|
|
21
|
+
import { input } from "../../Inputs/Input.css.js";
|
|
22
|
+
import { checkbox } from "../../Input/Checkbox.css.js";
|
|
23
|
+
import "../../IconBillboard/IconBillboard.css.js";
|
|
24
|
+
import "../../icons/ArrowIcon/ArrowIcon.css.js";
|
|
25
|
+
import "../../icons/CheckIcon/CheckIcon.css.js";
|
|
26
|
+
/* empty css */
|
|
27
|
+
/* empty css */
|
|
28
|
+
/* empty css */
|
|
29
|
+
/* empty css */
|
|
30
|
+
import "../../utils/allowedAxosDomains.js";
|
|
31
|
+
/* empty css */
|
|
32
|
+
/* empty css */
|
|
33
|
+
import "../../Accordion/Accordion.js";
|
|
34
|
+
import "../../Accordion/Accordion.css.js";
|
|
35
|
+
import "../../AlertBanner/AlertBanner.css.js";
|
|
36
|
+
import "../../Article/Article.css.js";
|
|
37
|
+
import "../../ArticlesSet/ArticlesSet.css.js";
|
|
38
|
+
import "../../Calculators/calculator.css.js";
|
|
39
|
+
import "../../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
|
|
40
|
+
import { button } from "../../Button/Button.css.js";
|
|
41
|
+
import "../../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
42
|
+
import "../../Table/Table.css.js";
|
|
43
|
+
import "../../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
|
|
44
|
+
import "../../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
45
|
+
import "../SalesforceFieldsForm.js";
|
|
46
|
+
import "react-use";
|
|
47
|
+
import "../../Input/RadioButton.js";
|
|
48
|
+
import "../../Chevron/Chevron.css.js";
|
|
49
|
+
import "../../Interstitial/Interstitial-variants.css.js";
|
|
50
|
+
import "iframe-resizer";
|
|
51
|
+
/* empty css */
|
|
52
|
+
import "../../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
53
|
+
/* empty css */
|
|
54
|
+
/* empty css */
|
|
55
|
+
/* empty css */
|
|
56
|
+
import "../../Carousel/index.js";
|
|
57
|
+
import "../../Hyperlink/Hyperlink.css.js";
|
|
58
|
+
/* empty css */
|
|
59
|
+
import "../../Comparison/Comparison.css.js";
|
|
60
|
+
import "../../HeroBanner/HeroBanner.css.js";
|
|
61
|
+
import "../../HeroBanner/LargeBanner.css.js";
|
|
62
|
+
import "../../HeroBanner/SelectionBanner.css.js";
|
|
63
|
+
import "../../SetContainer/SetContainer.css.js";
|
|
64
|
+
import "../../Tab/Tab.css.js";
|
|
65
|
+
import "../../icons/Star/Star.css.js";
|
|
66
|
+
import "../../ContentBanner/ContentBanner.css.js";
|
|
67
|
+
/* empty css */
|
|
68
|
+
import "../../ExecutiveBio/ExecutiveBio.css.js";
|
|
69
|
+
import "../../FaqAccordion/index.js";
|
|
70
|
+
import "../../FooterDisclosure/FooterDisclosure.css.js";
|
|
71
|
+
/* empty css */
|
|
72
|
+
import "../../ImageBillboard/ImageBillboard.css.js";
|
|
73
|
+
/* empty css */
|
|
74
|
+
import "react-wrap-balancer";
|
|
75
|
+
/* empty css */
|
|
76
|
+
/* empty css */
|
|
77
|
+
/* empty css */
|
|
78
|
+
import "../../LandingPageHeader/LandingPageHeader.css.js";
|
|
79
|
+
/* empty css */
|
|
80
|
+
import "../../Modal/contextApi/store.js";
|
|
81
|
+
/* empty css */
|
|
82
|
+
/* empty css */
|
|
83
|
+
/* empty css */
|
|
84
|
+
/* empty css */
|
|
85
|
+
/* empty css */
|
|
86
|
+
import "../../NavigationMenu/AxosBank/NavData.js";
|
|
87
|
+
import "next/navigation.js";
|
|
88
|
+
import "next/image.js";
|
|
89
|
+
import "next/link.js";
|
|
90
|
+
/* empty css */
|
|
91
|
+
/* empty css */
|
|
92
|
+
import "../../PageNavItem/PageNavItem.css.js";
|
|
93
|
+
import "react-slick";
|
|
94
|
+
/* empty css */
|
|
95
|
+
/* empty css */
|
|
96
|
+
/* empty css */
|
|
97
|
+
import "../../StepItem/StepItem.css.js";
|
|
98
|
+
import "../../StepItemSet/StepItemSet.css.js";
|
|
99
|
+
/* empty css */
|
|
100
|
+
/* empty css */
|
|
101
|
+
/* empty css */
|
|
102
|
+
import "next/script.js";
|
|
103
|
+
/* empty css */
|
|
104
|
+
/* empty css */
|
|
105
|
+
const RateWatchForm = ({
|
|
106
|
+
email,
|
|
107
|
+
lastName,
|
|
108
|
+
rateWatchOnSubmit,
|
|
109
|
+
toggleModal
|
|
110
|
+
}) => {
|
|
111
|
+
const [updateType, setUpdateType] = useState(
|
|
112
|
+
"Target Rate"
|
|
113
|
+
);
|
|
114
|
+
const schema = z.object({
|
|
115
|
+
updateType: z.string().min(1, { message: "Update type is required." }),
|
|
116
|
+
updateCadence: z.string().optional().refine((val) => !(updateType === "Frequency" && !val), {
|
|
117
|
+
message: "Frequency is required."
|
|
118
|
+
}),
|
|
119
|
+
loanTerms: z.string().optional().refine((val) => !(updateType === "Frequency" && !val), {
|
|
120
|
+
message: "Program is required."
|
|
121
|
+
}),
|
|
122
|
+
hasSmsConsent: z.boolean().refine((val) => val === true, {
|
|
123
|
+
message: "You must agree to receive SMS messages."
|
|
124
|
+
}),
|
|
125
|
+
tR1DesiredRate: z.string().optional().refine(
|
|
126
|
+
(val) => {
|
|
127
|
+
if (val && updateType === "Target Rate") {
|
|
128
|
+
const numericValue = +val;
|
|
129
|
+
return !val || numericValue >= 2 && numericValue <= 10;
|
|
130
|
+
}
|
|
131
|
+
return true;
|
|
132
|
+
},
|
|
133
|
+
{ message: "Desired Rate must be between 2 and 10." }
|
|
134
|
+
),
|
|
135
|
+
tR1DiscountPoints: z.string().optional().refine((val) => updateType === "Target Rate" ? !!val : true, {
|
|
136
|
+
message: "Discount Points is required."
|
|
137
|
+
}),
|
|
138
|
+
tR1LoanTerm: z.string().optional().refine((val) => updateType === "Target Rate" ? !!val : true, {
|
|
139
|
+
message: "Loan Type is required."
|
|
140
|
+
}),
|
|
141
|
+
tR2DesiredRate: z.string().optional().refine(
|
|
142
|
+
(val) => {
|
|
143
|
+
if (val && updateType === "Target Rate") {
|
|
144
|
+
const numericValue = +val;
|
|
145
|
+
return !val || numericValue >= 2 && numericValue <= 10;
|
|
146
|
+
}
|
|
147
|
+
return true;
|
|
148
|
+
},
|
|
149
|
+
{ message: "Desired Rate must be between 2 and 10." }
|
|
150
|
+
),
|
|
151
|
+
tR2DiscountPoints: z.string().optional(),
|
|
152
|
+
tR2LoanTerm: z.string().optional(),
|
|
153
|
+
tR3DesiredRate: z.string().optional().refine(
|
|
154
|
+
(val) => {
|
|
155
|
+
if (val && updateType === "Target Rate") {
|
|
156
|
+
const numericValue = +val;
|
|
157
|
+
return !val || numericValue >= 2 && numericValue <= 10;
|
|
158
|
+
}
|
|
159
|
+
return true;
|
|
160
|
+
},
|
|
161
|
+
{ message: "Desired Rate must be between 2 and 10." }
|
|
162
|
+
),
|
|
163
|
+
tR3DiscountPoints: z.string().optional(),
|
|
164
|
+
tR3LoanTerm: z.string().optional()
|
|
165
|
+
});
|
|
166
|
+
const methods = useForm({
|
|
167
|
+
resolver: zodResolver(schema),
|
|
168
|
+
mode: "all",
|
|
169
|
+
defaultValues: {
|
|
170
|
+
email
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
const {
|
|
174
|
+
handleSubmit,
|
|
175
|
+
register,
|
|
176
|
+
formState: { errors, isSubmitting, isValid },
|
|
177
|
+
setValue,
|
|
178
|
+
clearErrors
|
|
179
|
+
} = methods;
|
|
180
|
+
const submitForm = async (data) => {
|
|
181
|
+
const processedData = {
|
|
182
|
+
...data,
|
|
183
|
+
tR1DesiredRate: data.tR1DesiredRate ? `${data.tR1DesiredRate}` : "",
|
|
184
|
+
tR1DiscountPoints: data.tR1DiscountPoints ? `${data.tR1DiscountPoints}` : "",
|
|
185
|
+
tR2DesiredRate: data.tR2DesiredRate ? `${data.tR2DesiredRate}` : "",
|
|
186
|
+
tR2DiscountPoints: data.tR2DiscountPoints ? `${data.tR2DiscountPoints}` : "",
|
|
187
|
+
tR3DesiredRate: data.tR3DesiredRate ? `${data.tR3DesiredRate}` : "",
|
|
188
|
+
tR3DiscountPoints: data.tR3DiscountPoints ? `${data.tR3DiscountPoints}` : "",
|
|
189
|
+
email,
|
|
190
|
+
lastName
|
|
191
|
+
};
|
|
192
|
+
if (rateWatchOnSubmit) {
|
|
193
|
+
try {
|
|
194
|
+
await rateWatchOnSubmit(processedData);
|
|
195
|
+
} catch (error) {
|
|
196
|
+
console.error("Error submitting form:", error);
|
|
197
|
+
}
|
|
198
|
+
} else {
|
|
199
|
+
console.error("rateWatchOnSubmit function is not defined");
|
|
200
|
+
}
|
|
201
|
+
toggleModal();
|
|
202
|
+
};
|
|
203
|
+
const options = [
|
|
204
|
+
{ label: "30 Year Fixed", value: "30" },
|
|
205
|
+
{ label: "20 Year Fixed", value: "20" },
|
|
206
|
+
{ label: "15 Year Fixed", value: "15" },
|
|
207
|
+
{ label: "10 Year Fixed", value: "10" }
|
|
208
|
+
];
|
|
209
|
+
const [selectedValues, setSelectedValues] = useState([]);
|
|
210
|
+
const handleProgramsChange = (updatedValues) => {
|
|
211
|
+
if (updatedValues) {
|
|
212
|
+
setSelectedValues(updatedValues);
|
|
213
|
+
setValue("loanTerms", updatedValues.join(";"));
|
|
214
|
+
clearErrors("loanTerms");
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
const handleTypeChange = (event) => {
|
|
218
|
+
const value = event.target.value;
|
|
219
|
+
setUpdateType(value);
|
|
220
|
+
};
|
|
221
|
+
const handleSubmitClick = () => {
|
|
222
|
+
handleSubmit(submitForm)();
|
|
223
|
+
};
|
|
224
|
+
useEffect(() => {
|
|
225
|
+
methods.reset();
|
|
226
|
+
}, [updateType]);
|
|
227
|
+
return /* @__PURE__ */ jsx("section", { className: clsx("rate-watch-form"), children: /* @__PURE__ */ jsx(FormProvider, { ...methods, children: /* @__PURE__ */ jsxs("form", { children: [
|
|
228
|
+
/* @__PURE__ */ jsx("input", { type: "hidden", ...register("email") }),
|
|
229
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
230
|
+
Dropdown,
|
|
231
|
+
{
|
|
232
|
+
...register("updateType"),
|
|
233
|
+
label: "Update Type",
|
|
234
|
+
error: !!errors.updateType,
|
|
235
|
+
helperText: errors.updateType?.message,
|
|
236
|
+
value: updateType,
|
|
237
|
+
onChange: handleTypeChange,
|
|
238
|
+
className: dropdown,
|
|
239
|
+
children: [
|
|
240
|
+
/* @__PURE__ */ jsx("option", { value: "Target Rate", children: "Send an email when rates reach my target" }),
|
|
241
|
+
/* @__PURE__ */ jsx("option", { value: "Frequency", children: "Send me information about current rates on a regular basis" })
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
) }),
|
|
245
|
+
updateType === "Frequency" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
246
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
247
|
+
Dropdown,
|
|
248
|
+
{
|
|
249
|
+
...register("updateCadence"),
|
|
250
|
+
label: "Set Up Frequency",
|
|
251
|
+
error: !!errors.updateCadence,
|
|
252
|
+
helperText: errors.updateCadence?.message,
|
|
253
|
+
className: dropdown,
|
|
254
|
+
children: [
|
|
255
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "Update Frequency" }),
|
|
256
|
+
/* @__PURE__ */ jsx("option", { value: "Daily", children: "Daily" }),
|
|
257
|
+
/* @__PURE__ */ jsx("option", { value: "Weekly", children: "Weekly" }),
|
|
258
|
+
/* @__PURE__ */ jsx("option", { value: "Monthly", children: "Monthly" })
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
) }),
|
|
262
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
263
|
+
CheckboxGroup,
|
|
264
|
+
{
|
|
265
|
+
label: "Select the loan programs you would like to include in your updates.",
|
|
266
|
+
options,
|
|
267
|
+
selectedValues,
|
|
268
|
+
onChange: handleProgramsChange
|
|
269
|
+
}
|
|
270
|
+
) })
|
|
271
|
+
] }),
|
|
272
|
+
updateType === "Target Rate" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
273
|
+
/* @__PURE__ */ jsx("p", { className: mt1Rem, children: "You can establish up to three different targets with one rate watch." }),
|
|
274
|
+
/* @__PURE__ */ jsxs("div", { className: threeColRow, children: [
|
|
275
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
276
|
+
/* @__PURE__ */ jsx("label", { className: resposiveLabel, children: "Select a Loan Type*" }),
|
|
277
|
+
/* @__PURE__ */ jsxs(
|
|
278
|
+
Dropdown,
|
|
279
|
+
{
|
|
280
|
+
...register("tR1LoanTerm"),
|
|
281
|
+
error: !!errors.tR1LoanTerm,
|
|
282
|
+
helperText: errors.tR1LoanTerm?.message,
|
|
283
|
+
className: dropdown,
|
|
284
|
+
children: [
|
|
285
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "Select a Loan Type" }),
|
|
286
|
+
/* @__PURE__ */ jsx("option", { value: "ThirtyYear", children: "30 Year Fixed" }),
|
|
287
|
+
/* @__PURE__ */ jsx("option", { value: "TwentyYear", children: "20 Year Fixed" }),
|
|
288
|
+
/* @__PURE__ */ jsx("option", { value: "FifteenYear", children: "15 Year Fixed" }),
|
|
289
|
+
/* @__PURE__ */ jsx("option", { value: "TenYear", children: "10 Year Fixed" })
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
)
|
|
293
|
+
] }),
|
|
294
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
295
|
+
/* @__PURE__ */ jsx("label", { className: resposiveLabel, children: "Desired Rate" }),
|
|
296
|
+
/* @__PURE__ */ jsx(
|
|
297
|
+
Input,
|
|
298
|
+
{
|
|
299
|
+
className: dynPH,
|
|
300
|
+
...register("tR1DesiredRate", {
|
|
301
|
+
setValueAs: (value) => value ? `${value}` : ""
|
|
302
|
+
}),
|
|
303
|
+
type: "number",
|
|
304
|
+
placeholder: "Desired Rate",
|
|
305
|
+
error: !!errors.tR1DesiredRate,
|
|
306
|
+
helperText: errors.tR1DesiredRate?.message
|
|
307
|
+
}
|
|
308
|
+
)
|
|
309
|
+
] }),
|
|
310
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
311
|
+
/* @__PURE__ */ jsx("label", { className: resposiveLabel, children: "Discount Points" }),
|
|
312
|
+
/* @__PURE__ */ jsxs(
|
|
313
|
+
Dropdown,
|
|
314
|
+
{
|
|
315
|
+
className: dynPH,
|
|
316
|
+
...register("tR1DiscountPoints"),
|
|
317
|
+
type: "string",
|
|
318
|
+
error: !!errors.tR1DiscountPoints,
|
|
319
|
+
helperText: errors.tR1DiscountPoints?.message,
|
|
320
|
+
children: [
|
|
321
|
+
/* @__PURE__ */ jsx("option", { value: "0", children: "0%" }),
|
|
322
|
+
/* @__PURE__ */ jsx("option", { value: "0.125", children: "0.125%" }),
|
|
323
|
+
/* @__PURE__ */ jsx("option", { value: "0.250", children: "0.250%" }),
|
|
324
|
+
/* @__PURE__ */ jsx("option", { value: "0.375", children: "0.375%" }),
|
|
325
|
+
/* @__PURE__ */ jsx("option", { value: "0.500", children: "0.500%" }),
|
|
326
|
+
/* @__PURE__ */ jsx("option", { value: "0.625", children: "0.625%" }),
|
|
327
|
+
/* @__PURE__ */ jsx("option", { value: "0.750", children: "0.750%" }),
|
|
328
|
+
/* @__PURE__ */ jsx("option", { value: "0.875", children: "0.875%" }),
|
|
329
|
+
/* @__PURE__ */ jsx("option", { value: "1.000", children: "1.000%" })
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
)
|
|
333
|
+
] })
|
|
334
|
+
] }),
|
|
335
|
+
/* @__PURE__ */ jsx("hr", { className: `${mt1Rem}` }),
|
|
336
|
+
/* @__PURE__ */ jsxs("div", { className: `${threeColRow} ${mt1Rem}`, children: [
|
|
337
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
338
|
+
Dropdown,
|
|
339
|
+
{
|
|
340
|
+
...register("tR2LoanTerm"),
|
|
341
|
+
error: !!errors.tR2LoanTerm,
|
|
342
|
+
helperText: errors.tR2LoanTerm?.message,
|
|
343
|
+
className: dropdown,
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "Select a Loan Type" }),
|
|
346
|
+
/* @__PURE__ */ jsx("option", { value: "ThirtyYear", children: "30 Year Fixed" }),
|
|
347
|
+
/* @__PURE__ */ jsx("option", { value: "TwentyYear", children: "20 Year Fixed" }),
|
|
348
|
+
/* @__PURE__ */ jsx("option", { value: "FifteenYear", children: "15 Year Fixed" }),
|
|
349
|
+
/* @__PURE__ */ jsx("option", { value: "TenYear", children: "10 Year Fixed" })
|
|
350
|
+
]
|
|
351
|
+
}
|
|
352
|
+
) }),
|
|
353
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
354
|
+
Input,
|
|
355
|
+
{
|
|
356
|
+
className: dynPH,
|
|
357
|
+
...register("tR2DesiredRate"),
|
|
358
|
+
type: "string",
|
|
359
|
+
placeholder: "Desired Rate"
|
|
360
|
+
}
|
|
361
|
+
) }),
|
|
362
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
363
|
+
Dropdown,
|
|
364
|
+
{
|
|
365
|
+
className: dynPH,
|
|
366
|
+
...register("tR2DiscountPoints"),
|
|
367
|
+
type: "string",
|
|
368
|
+
error: !!errors.tR2DiscountPoints,
|
|
369
|
+
helperText: errors.tR2DiscountPoints?.message,
|
|
370
|
+
children: [
|
|
371
|
+
/* @__PURE__ */ jsx("option", { value: "0", children: "0%" }),
|
|
372
|
+
/* @__PURE__ */ jsx("option", { value: "0.125", children: "0.125%" }),
|
|
373
|
+
/* @__PURE__ */ jsx("option", { value: "0.250", children: "0.250%" }),
|
|
374
|
+
/* @__PURE__ */ jsx("option", { value: "0.375", children: "0.375%" }),
|
|
375
|
+
/* @__PURE__ */ jsx("option", { value: "0.500", children: "0.500%" }),
|
|
376
|
+
/* @__PURE__ */ jsx("option", { value: "0.625", children: "0.625%" }),
|
|
377
|
+
/* @__PURE__ */ jsx("option", { value: "0.750", children: "0.750%" }),
|
|
378
|
+
/* @__PURE__ */ jsx("option", { value: "0.875", children: "0.875%" }),
|
|
379
|
+
/* @__PURE__ */ jsx("option", { value: "1.000", children: "1.000%" })
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
) })
|
|
383
|
+
] }),
|
|
384
|
+
/* @__PURE__ */ jsx("hr", { className: `${mt1Rem}` }),
|
|
385
|
+
/* @__PURE__ */ jsxs("div", { className: `${threeColRow} ${mt1Rem}`, children: [
|
|
386
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
387
|
+
Dropdown,
|
|
388
|
+
{
|
|
389
|
+
...register("tR3LoanTerm"),
|
|
390
|
+
error: !!errors.tR3LoanTerm,
|
|
391
|
+
helperText: errors.tR3LoanTerm?.message,
|
|
392
|
+
className: dropdown,
|
|
393
|
+
children: [
|
|
394
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "Select a Loan Type" }),
|
|
395
|
+
/* @__PURE__ */ jsx("option", { value: "ThirtyYear", children: "30 Year Fixed" }),
|
|
396
|
+
/* @__PURE__ */ jsx("option", { value: "TwentyYear", children: "20 Year Fixed" }),
|
|
397
|
+
/* @__PURE__ */ jsx("option", { value: "FifteenYear", children: "15 Year Fixed" }),
|
|
398
|
+
/* @__PURE__ */ jsx("option", { value: "TenYear", children: "10 Year Fixed" })
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
) }),
|
|
402
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
403
|
+
Input,
|
|
404
|
+
{
|
|
405
|
+
...register("tR3DesiredRate"),
|
|
406
|
+
type: "string",
|
|
407
|
+
placeholder: "Desired Rate",
|
|
408
|
+
className: dynPH
|
|
409
|
+
}
|
|
410
|
+
) }),
|
|
411
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
412
|
+
Dropdown,
|
|
413
|
+
{
|
|
414
|
+
className: dynPH,
|
|
415
|
+
...register("tR3DiscountPoints"),
|
|
416
|
+
type: "string",
|
|
417
|
+
error: !!errors.tR3DiscountPoints,
|
|
418
|
+
helperText: errors.tR3DiscountPoints?.message,
|
|
419
|
+
children: [
|
|
420
|
+
/* @__PURE__ */ jsx("option", { value: "0", children: "0%" }),
|
|
421
|
+
/* @__PURE__ */ jsx("option", { value: "0.125", children: "0.125%" }),
|
|
422
|
+
/* @__PURE__ */ jsx("option", { value: "0.250", children: "0.250%" }),
|
|
423
|
+
/* @__PURE__ */ jsx("option", { value: "0.375", children: "0.375%" }),
|
|
424
|
+
/* @__PURE__ */ jsx("option", { value: "0.500", children: "0.500%" }),
|
|
425
|
+
/* @__PURE__ */ jsx("option", { value: "0.625", children: "0.625%" }),
|
|
426
|
+
/* @__PURE__ */ jsx("option", { value: "0.750", children: "0.750%" }),
|
|
427
|
+
/* @__PURE__ */ jsx("option", { value: "0.875", children: "0.875%" }),
|
|
428
|
+
/* @__PURE__ */ jsx("option", { value: "1.000", children: "1.000%" })
|
|
429
|
+
]
|
|
430
|
+
}
|
|
431
|
+
) })
|
|
432
|
+
] }),
|
|
433
|
+
/* @__PURE__ */ jsx("p", { className: mt1Rem, children: "*The number in Desired Rate must be at least 2% and no more than 10%" })
|
|
434
|
+
] }),
|
|
435
|
+
/* @__PURE__ */ jsxs("div", { className: modalCheckboxContainer, children: [
|
|
436
|
+
/* @__PURE__ */ jsx(
|
|
437
|
+
"input",
|
|
438
|
+
{
|
|
439
|
+
className: clsx(input({ size: "large" }), checkbox({}), mw24),
|
|
440
|
+
type: "checkbox",
|
|
441
|
+
...register("hasSmsConsent")
|
|
442
|
+
}
|
|
443
|
+
),
|
|
444
|
+
/* @__PURE__ */ jsxs("label", { children: [
|
|
445
|
+
"By selecting this checkbox, you have agreed to these",
|
|
446
|
+
" ",
|
|
447
|
+
/* @__PURE__ */ jsx(
|
|
448
|
+
"a",
|
|
449
|
+
{
|
|
450
|
+
href: "https://assets.axos.com/o9ov1v03uwqk/3F4hEsPBjT5z6Kt1AwDd4z/1d9e2e3104af5d92923d042d5d6260cb/SMS_and_MMS_Disclosure_Axos_Bank.pdf",
|
|
451
|
+
target: "_blank",
|
|
452
|
+
children: "Terms and Conditions"
|
|
453
|
+
}
|
|
454
|
+
),
|
|
455
|
+
" ",
|
|
456
|
+
"and you have agreed to receive automated SMS text messages, calls, and emails for any purpose including but not limited to marketing of products and services by Axos Bank. You understand and agree that such messages may be sent via Automatic Telephone Dialing System and/or artificial or pre-recorded voice, and that such consent is not a condition of receipt of any good or service. Mobile carrier messages and data rates may apply. You may opt out at any time."
|
|
457
|
+
] })
|
|
458
|
+
] }),
|
|
459
|
+
/* @__PURE__ */ jsx("div", { children: isSubmitting ? /* @__PURE__ */ jsx(
|
|
460
|
+
LoadingIndicator,
|
|
461
|
+
{
|
|
462
|
+
style: { marginInline: "auto" },
|
|
463
|
+
variant: "primary"
|
|
464
|
+
}
|
|
465
|
+
) : /* @__PURE__ */ jsx(
|
|
466
|
+
"button",
|
|
467
|
+
{
|
|
468
|
+
className: button({
|
|
469
|
+
color: "primary",
|
|
470
|
+
size: "large",
|
|
471
|
+
rounded: "medium",
|
|
472
|
+
disabled: !isValid
|
|
473
|
+
}),
|
|
474
|
+
type: "button",
|
|
475
|
+
onClick: handleSubmitClick,
|
|
476
|
+
disabled: !isValid || isSubmitting,
|
|
477
|
+
children: "Sign Up"
|
|
478
|
+
}
|
|
479
|
+
) })
|
|
480
|
+
] }) }) });
|
|
481
|
+
};
|
|
482
|
+
export {
|
|
483
|
+
RateWatchForm
|
|
484
|
+
};
|
|
@@ -8,13 +8,13 @@ import "react-use";
|
|
|
8
8
|
import { Checkbox } from "../Input/Checkbox.js";
|
|
9
9
|
import "../Input/CurrencyInput.js";
|
|
10
10
|
import { Dropdown } from "../Input/Dropdown.js";
|
|
11
|
-
|
|
12
|
-
/* empty css */
|
|
11
|
+
import "../Input/Dropdown.css.js";
|
|
13
12
|
import { Input } from "../Input/Input.js";
|
|
14
13
|
import "../Input/Input.css.js";
|
|
15
14
|
import "../Input/InputAmount.js";
|
|
16
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
17
16
|
import "../Input/InputTextArea.js";
|
|
17
|
+
import "../Input/DownPaymentInput.js";
|
|
18
18
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
19
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
20
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -8,13 +8,13 @@ import "react-use";
|
|
|
8
8
|
import "../Input/Checkbox.js";
|
|
9
9
|
import "../Input/CurrencyInput.js";
|
|
10
10
|
import { Dropdown } from "../Input/Dropdown.js";
|
|
11
|
-
|
|
12
|
-
/* empty css */
|
|
11
|
+
import "../Input/Dropdown.css.js";
|
|
13
12
|
import { Input } from "../Input/Input.js";
|
|
14
13
|
import "../Input/Input.css.js";
|
|
15
14
|
import "../Input/InputAmount.js";
|
|
16
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
17
16
|
import "../Input/InputTextArea.js";
|
|
17
|
+
import "../Input/DownPaymentInput.js";
|
|
18
18
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
19
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
20
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -8,13 +8,13 @@ import "react-use";
|
|
|
8
8
|
import "../Input/Checkbox.js";
|
|
9
9
|
import { CurrencyInput } from "../Input/CurrencyInput.js";
|
|
10
10
|
import { Dropdown } from "../Input/Dropdown.js";
|
|
11
|
-
|
|
12
|
-
/* empty css */
|
|
11
|
+
import "../Input/Dropdown.css.js";
|
|
13
12
|
import { Input } from "../Input/Input.js";
|
|
14
13
|
import "../Input/Input.css.js";
|
|
15
14
|
import "../Input/InputAmount.js";
|
|
16
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
17
16
|
import "../Input/InputTextArea.js";
|
|
17
|
+
import "../Input/DownPaymentInput.js";
|
|
18
18
|
import { LoadingIndicator } from "../LoadingIndicator/index.js";
|
|
19
19
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
20
20
|
import SvgAxosX from "../icons/AxosX/index.js";
|
package/dist/Forms/SuccesForm.js
CHANGED
|
@@ -52,12 +52,13 @@ import "../ImageBillboard/ImageBillboard.css.js";
|
|
|
52
52
|
import "../Input/Checkbox.js";
|
|
53
53
|
import "../Input/CurrencyInput.js";
|
|
54
54
|
import "../Input/Dropdown.js";
|
|
55
|
-
|
|
55
|
+
import "../Input/Dropdown.css.js";
|
|
56
56
|
import "../Input/Input.js";
|
|
57
57
|
import "../Input/Input.css.js";
|
|
58
58
|
import "../Input/InputAmount.js";
|
|
59
59
|
import "../Input/InputPhone.js";
|
|
60
60
|
import "../Input/InputTextArea.js";
|
|
61
|
+
import "../Input/DownPaymentInput.js";
|
|
61
62
|
import "react-wrap-balancer";
|
|
62
63
|
/* empty css */
|
|
63
64
|
/* empty css */
|
|
@@ -99,6 +100,7 @@ import "./SalesforceFieldsForm.js";
|
|
|
99
100
|
import "../Input/RadioButton.css.js";
|
|
100
101
|
import "../Input/Checkbox.css.js";
|
|
101
102
|
import "../Input/RadioButton.js";
|
|
103
|
+
import "../Inputs/Input.css.js";
|
|
102
104
|
function SuccesFormWrapper({
|
|
103
105
|
children,
|
|
104
106
|
isSubmitted,
|
package/dist/Forms/WcplSurvey.js
CHANGED
|
@@ -8,13 +8,13 @@ import "react-use";
|
|
|
8
8
|
import "../Input/Checkbox.js";
|
|
9
9
|
import "../Input/CurrencyInput.js";
|
|
10
10
|
import "../Input/Dropdown.js";
|
|
11
|
-
|
|
12
|
-
/* empty css */
|
|
11
|
+
import "../Input/Dropdown.css.js";
|
|
13
12
|
import "../Input/Input.js";
|
|
14
13
|
import "../Input/Input.css.js";
|
|
15
14
|
import "../Input/InputAmount.js";
|
|
16
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
17
16
|
import { InputTextArea } from "../Input/InputTextArea.js";
|
|
17
|
+
import "../Input/DownPaymentInput.js";
|
|
18
18
|
import { RadioButtonSet, RadioButton } from "../Input/RadioButton.js";
|
|
19
19
|
import { LoadingIndicator } from "../LoadingIndicator/index.js";
|
|
20
20
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
package/dist/Forms/index.d.ts
CHANGED
|
@@ -20,3 +20,7 @@ export * from './SuccesForm';
|
|
|
20
20
|
export * from './WcplSurvey';
|
|
21
21
|
export * from './CpraRequest';
|
|
22
22
|
export * from './CommercialDeposits';
|
|
23
|
+
export * from './MortgageRate/MortgageRateForm';
|
|
24
|
+
export * from './MortgageRate/MortgageRateQuoteFilters';
|
|
25
|
+
export * from './MortgageRate/MortgageRateModal';
|
|
26
|
+
export * from './MortgageRate/MortgageRateWatch';
|
package/dist/Forms/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { CpraRequest } from "./CpraRequest.js";
|
|
|
10
10
|
import { DealerServices } from "./DealerServices.js";
|
|
11
11
|
import { EmailOnly } from "./EmailOnly.js";
|
|
12
12
|
import { EmailUs } from "./EmailUs.js";
|
|
13
|
-
import { actions, checkbox_group, descriptionField, disclosureForm, form, formContainer, formWrapper, fullRowForm, headerContainer, headerForm, iconForm, one_row, pl_label, ro_input, section_title, succes_check_mark, success_circle, success_icon, success_wrap, x_input, xc_input } from "./Forms.css.js";
|
|
13
|
+
import { actions, centerSelect, checkbox_group, descriptionField, disclosureForm, dropdown, dynPH, form, formBtns, formContainer, formWrapper, fullRowForm, fullRowSelect, headerContainer, headerForm, iconForm, modalCheckboxContainer, modalMobile, mt1Rem, mt2rem, mw24, na_cursor, one_row, pl_label, resposiveLabel, ro_input, section_title, succes_check_mark, success_circle, success_icon, success_wrap, threeColRow, x_input, xc_input } from "./Forms.css.js";
|
|
14
14
|
import { QuickPricer } from "./QuickPricer.js";
|
|
15
15
|
import { SalesforceFieldsForm, SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
16
16
|
import { ScheduleCall } from "./ScheduleCall.js";
|
|
@@ -18,6 +18,13 @@ import { ScheduleCallPremier } from "./ScheduleCallPremier.js";
|
|
|
18
18
|
import { SuccesFormWrapper } from "./SuccesForm.js";
|
|
19
19
|
import { WCPLSurvey } from "./WcplSurvey.js";
|
|
20
20
|
import { CommercialDeposits } from "./CommercialDeposits.js";
|
|
21
|
+
import { MortgageRate } from "./MortgageRate/MortgageRateForm.js";
|
|
22
|
+
import { MortgageRateFilters } from "./MortgageRate/MortgageRateQuoteFilters.js";
|
|
23
|
+
import "react/jsx-runtime";
|
|
24
|
+
import { RateWatchForm } from "./MortgageRate/MortgageRateWatch.js";
|
|
25
|
+
import "../utils/allowedAxosDomains.js";
|
|
26
|
+
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
27
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
21
28
|
export {
|
|
22
29
|
ApplicationStart,
|
|
23
30
|
ClearingForm,
|
|
@@ -32,7 +39,10 @@ export {
|
|
|
32
39
|
DealerServices,
|
|
33
40
|
EmailOnly,
|
|
34
41
|
EmailUs,
|
|
42
|
+
MortgageRate,
|
|
43
|
+
MortgageRateFilters,
|
|
35
44
|
QuickPricer,
|
|
45
|
+
RateWatchForm,
|
|
36
46
|
SalesforceFieldsForm,
|
|
37
47
|
SalesforceSchema,
|
|
38
48
|
ScheduleCall,
|
|
@@ -40,24 +50,37 @@ export {
|
|
|
40
50
|
SuccesFormWrapper,
|
|
41
51
|
WCPLSurvey,
|
|
42
52
|
actions,
|
|
53
|
+
centerSelect,
|
|
43
54
|
checkbox_group,
|
|
44
55
|
descriptionField,
|
|
45
56
|
disclosureForm,
|
|
57
|
+
dropdown,
|
|
58
|
+
dynPH,
|
|
46
59
|
form,
|
|
60
|
+
formBtns,
|
|
47
61
|
formContainer,
|
|
48
62
|
formWrapper,
|
|
49
63
|
fullRowForm,
|
|
64
|
+
fullRowSelect,
|
|
50
65
|
headerContainer,
|
|
51
66
|
headerForm,
|
|
52
67
|
iconForm,
|
|
68
|
+
modalCheckboxContainer,
|
|
69
|
+
modalMobile,
|
|
70
|
+
mt1Rem,
|
|
71
|
+
mt2rem,
|
|
72
|
+
mw24,
|
|
73
|
+
na_cursor,
|
|
53
74
|
one_row,
|
|
54
75
|
pl_label,
|
|
76
|
+
resposiveLabel,
|
|
55
77
|
ro_input,
|
|
56
78
|
section_title,
|
|
57
79
|
succes_check_mark,
|
|
58
80
|
success_circle,
|
|
59
81
|
success_icon,
|
|
60
82
|
success_wrap,
|
|
83
|
+
threeColRow,
|
|
61
84
|
x_input,
|
|
62
85
|
xc_input
|
|
63
86
|
};
|