@axos-web-dev/shared-components 1.0.99-sectionSpacerRemoved → 1.0.99-sectionSpacerRemoved.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/Auth/ErrorAlert.js +2 -2
- package/dist/Button/Button.js +2 -2
- package/dist/Calculators/Calculator.js +14 -2
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
- package/dist/Calculators/index.d.ts +2 -1
- package/dist/Calculators/index.js +3 -1
- package/dist/Carousel/index.js +2 -2
- package/dist/Chevron/index.js +2 -2
- package/dist/Comparison/Comparison.js +2 -2
- package/dist/ExecutiveBio/ExecutiveBio.js +2 -2
- package/dist/FaqAccordion/index.js +2 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -2
- package/dist/Forms/ApplyNow.d.ts +2 -2
- package/dist/Forms/ApplyNow.js +170 -145
- package/dist/Forms/ContactUsBusiness.js +2 -2
- package/dist/Forms/ContactUsBusinessNameEmail.js +2 -2
- package/dist/Forms/ContactUsLVF.d.ts +3 -1
- package/dist/Forms/ContactUsLVF.js +9 -5
- package/dist/Forms/ContactUsNMLSId.js +2 -2
- package/dist/Forms/CraPublicFile.js +2 -2
- package/dist/Forms/EmailOnly.js +2 -2
- package/dist/Forms/Forms.css.d.ts +18 -0
- package/dist/Forms/Forms.css.js +44 -38
- package/dist/Forms/MortgageRate/MortgageRateForm.js +2 -2
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +2 -2
- package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
- package/dist/Forms/MortgageWarehouseLending.js +338 -0
- package/dist/Forms/SuccesForm.js +5 -5
- package/dist/Forms/applynow-utils.d.ts +1 -0
- package/dist/Forms/applynow-utils.js +48 -0
- package/dist/Forms/index.d.ts +2 -0
- package/dist/Forms/index.js +8 -2
- package/dist/Hyperlink/index.js +2 -2
- package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
- package/dist/ImageLink/ImageLink.js +2 -2
- package/dist/ImageLink/ImageLinkSet.js +2 -2
- package/dist/ImageLink/index.js +2 -2
- package/dist/Insight/Featured/CategorySelector.js +2 -2
- package/dist/Insight/Featured/Featured.js +2 -2
- package/dist/Insight/Featured/Header.js +2 -2
- package/dist/Modal/Modal.js +2 -2
- package/dist/NavigationMenu/AxosALTS/NavData.js +2 -2
- package/dist/NavigationMenu/AxosALTS/index.js +2 -2
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +14 -6
- package/dist/NavigationMenu/AxosBank/NavData.js +2 -2
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +15 -7
- package/dist/NavigationMenu/AxosBank/index.js +2 -2
- package/dist/NavigationMenu/LaVictoire/NavData.js +2 -2
- package/dist/NavigationMenu/LaVictoire/index.js +2 -2
- package/dist/NavigationMenu/NavDataJson.js +2 -2
- package/dist/NavigationMenu/Navbar.js +2 -2
- package/dist/NavigationMenu/SignInNavButton.js +2 -2
- package/dist/SetContainer/SetContainer.js +2 -2
- package/dist/SocialMediaBar/iconsRepository.js +2 -2
- package/dist/VideoTile/VideoTile.js +2 -2
- package/dist/VideoWrapper/index.js +2 -2
- package/dist/WalnutIframe/wrapper.module.js +3 -3
- package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
- package/dist/assets/Forms/Forms.css +135 -105
- package/dist/assets/IconBillboard/IconBillboard.css +0 -3
- package/dist/assets/SetContainer/SetContainer.css +3 -0
- package/dist/assets/WalnutIframe/wrapper.css.css +49 -49
- package/dist/main.js +11 -3
- package/dist/utils/allowedAxosDomains.js +1 -1
- package/package.json +133 -133
package/dist/Forms/ApplyNow.js
CHANGED
|
@@ -44,10 +44,13 @@ import "../Input/InputPhone.js";
|
|
|
44
44
|
import "../Input/InputTextArea.js";
|
|
45
45
|
import "../Input/DownPaymentInput.js";
|
|
46
46
|
import "../Input/RadioButton.js";
|
|
47
|
+
import "../Input/PercentageInput.js";
|
|
47
48
|
import "react-hook-form";
|
|
48
|
-
import
|
|
49
|
+
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
50
|
+
import { iconForm, headerForm, form, descriptionField, axosHeader, headerContainer, apply_now_form, formWrapper, step_title_apply_now, form_nav_apply_now, iconbillboards_option_apply_now, show_options, hide_options, back_btn_apply_now, disclosureForm, formContainer } from "./Forms.css.js";
|
|
49
51
|
import "./HoneyPot/index.js";
|
|
50
52
|
import "./SalesforceFieldsForm.js";
|
|
53
|
+
import { getLink } from "./applynow-utils.js";
|
|
51
54
|
import "../Input/RadioButton.css.js";
|
|
52
55
|
import "../Input/Checkbox.css.js";
|
|
53
56
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
@@ -61,8 +64,6 @@ import "iframe-resizer";
|
|
|
61
64
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
62
65
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
63
66
|
import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
|
|
64
|
-
import "../Input/PercentageInput.js";
|
|
65
|
-
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
66
67
|
/* empty css */
|
|
67
68
|
import "react-dom";
|
|
68
69
|
/* empty css */
|
|
@@ -135,21 +136,46 @@ const ApplyNow = ({
|
|
|
135
136
|
headline,
|
|
136
137
|
description,
|
|
137
138
|
id,
|
|
138
|
-
gbf = false
|
|
139
|
+
gbf = false,
|
|
140
|
+
project = "lvf"
|
|
139
141
|
}) => {
|
|
142
|
+
const headers = [
|
|
143
|
+
"Choose the boat loan that fits your needs.",
|
|
144
|
+
"How are you going to use your boat?",
|
|
145
|
+
"Will you hold your boat in LLC or personally own it?"
|
|
146
|
+
];
|
|
140
147
|
const reducer = (state, action) => {
|
|
141
148
|
if (action.type == "back") {
|
|
142
149
|
return {
|
|
143
150
|
...state,
|
|
144
151
|
step: state.selection.includes("Inventory Finance") ? 1 : state.step > 0 ? state.step - 1 : 1,
|
|
145
|
-
selection: state.selection.includes("Inventory Finance") ? [] : state.selection.slice(0, -1)
|
|
152
|
+
selection: state.selection.includes("Inventory Finance") ? [] : state.selection.slice(0, -1),
|
|
153
|
+
title: headers[state.step - 2] || headers[0]
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
if (action.type == "Initial") {
|
|
157
|
+
return {
|
|
158
|
+
...state,
|
|
159
|
+
step: 1,
|
|
160
|
+
selection: [],
|
|
161
|
+
title: "Choose the boat loan that fits your needs."
|
|
146
162
|
};
|
|
147
163
|
}
|
|
148
164
|
if (action.type == "Term") {
|
|
149
|
-
return {
|
|
165
|
+
return {
|
|
166
|
+
...state,
|
|
167
|
+
step: 2,
|
|
168
|
+
selection: ["Term"],
|
|
169
|
+
title: "How are you going to use your boat?"
|
|
170
|
+
};
|
|
150
171
|
}
|
|
151
172
|
if (action.type == "Credit Line") {
|
|
152
|
-
return {
|
|
173
|
+
return {
|
|
174
|
+
...state,
|
|
175
|
+
step: 2,
|
|
176
|
+
selection: ["Credit Line"],
|
|
177
|
+
title: "How are you going to use your boat?"
|
|
178
|
+
};
|
|
153
179
|
}
|
|
154
180
|
if (action.type == "Inventory Finance") {
|
|
155
181
|
return { ...state, step: 4, selection: ["Inventory Finance"] };
|
|
@@ -158,31 +184,40 @@ const ApplyNow = ({
|
|
|
158
184
|
return {
|
|
159
185
|
...state,
|
|
160
186
|
step: 3,
|
|
161
|
-
selection: [...state.selection, "Limited Charter"]
|
|
187
|
+
selection: [...state.selection, "Limited Charter"],
|
|
188
|
+
title: "Will you hold your boat in LLC or personally own it?"
|
|
162
189
|
};
|
|
163
190
|
}
|
|
164
191
|
if (action.type == "Personal Use") {
|
|
165
192
|
return {
|
|
166
193
|
...state,
|
|
167
194
|
step: 3,
|
|
168
|
-
selection: [...state.selection, "Personal Use"]
|
|
195
|
+
selection: [...state.selection, "Personal Use"],
|
|
196
|
+
title: "Will you hold your boat in LLC or personally own it?"
|
|
169
197
|
};
|
|
170
198
|
}
|
|
171
199
|
if (action.type == "Full-time Charter") {
|
|
172
200
|
return {
|
|
173
201
|
...state,
|
|
174
202
|
step: 3,
|
|
175
|
-
selection: [...state.selection, "Full-time Charter"]
|
|
203
|
+
selection: [...state.selection, "Full-time Charter"],
|
|
204
|
+
title: "Will you hold your boat in LLC or personally own it?"
|
|
176
205
|
};
|
|
177
206
|
}
|
|
178
207
|
if (action.type == "LLC") {
|
|
179
|
-
return {
|
|
208
|
+
return {
|
|
209
|
+
...state,
|
|
210
|
+
step: 4,
|
|
211
|
+
selection: [...state.selection, "LLC"],
|
|
212
|
+
title: "Get ready to start your application."
|
|
213
|
+
};
|
|
180
214
|
}
|
|
181
215
|
if (action.type == "Personal") {
|
|
182
216
|
return {
|
|
183
217
|
...state,
|
|
184
218
|
step: 4,
|
|
185
|
-
selection: [...state.selection, "Personal"]
|
|
219
|
+
selection: [...state.selection, "Personal"],
|
|
220
|
+
title: "Get ready to start your application."
|
|
186
221
|
};
|
|
187
222
|
}
|
|
188
223
|
if (action.type == "URL") {
|
|
@@ -197,26 +232,39 @@ const ApplyNow = ({
|
|
|
197
232
|
const [stateRed, dispatch] = useReducer(reducer, {
|
|
198
233
|
url: "",
|
|
199
234
|
selection: [],
|
|
200
|
-
step: 1
|
|
235
|
+
step: 1,
|
|
236
|
+
title: "Choose the boat loan that fits your needs."
|
|
201
237
|
});
|
|
202
238
|
const variant = getVariant(fullVariant);
|
|
239
|
+
const backButtonVariant = ["tertiary", "quaternary"].includes(variant) && project !== "lvf" ? "tertiary" : "primary";
|
|
203
240
|
return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
204
241
|
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
205
|
-
/* @__PURE__ */ jsxs(
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
242
|
+
/* @__PURE__ */ jsxs(
|
|
243
|
+
"div",
|
|
244
|
+
{
|
|
245
|
+
className: clsx(
|
|
246
|
+
project === "lvf" ? axosHeader : "",
|
|
247
|
+
`${headerContainer} text_center`,
|
|
248
|
+
headerForm({ variant })
|
|
249
|
+
),
|
|
250
|
+
children: [
|
|
251
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: stateRed.title ?? headline }),
|
|
252
|
+
/* @__PURE__ */ jsx(
|
|
253
|
+
"div",
|
|
254
|
+
{
|
|
255
|
+
className: clsx(
|
|
256
|
+
"text_center",
|
|
257
|
+
form,
|
|
258
|
+
descriptionField({ variant }),
|
|
259
|
+
project === "axos" && stateRed.step > 1 ? "hide" : ""
|
|
260
|
+
),
|
|
261
|
+
children: description
|
|
262
|
+
}
|
|
263
|
+
)
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
),
|
|
267
|
+
/* @__PURE__ */ jsxs("form", { className: project === "lvf" ? form : apply_now_form, children: [
|
|
220
268
|
/* @__PURE__ */ jsx(
|
|
221
269
|
"div",
|
|
222
270
|
{
|
|
@@ -235,30 +283,48 @@ const ApplyNow = ({
|
|
|
235
283
|
stateRed.step == 1 ? show_options : hide_options
|
|
236
284
|
),
|
|
237
285
|
children: [
|
|
238
|
-
/* @__PURE__ */ jsx(
|
|
239
|
-
"
|
|
286
|
+
/* @__PURE__ */ jsx(
|
|
287
|
+
"div",
|
|
240
288
|
{
|
|
241
289
|
className: clsx(
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
step_title_apply_now
|
|
290
|
+
form_nav_apply_now,
|
|
291
|
+
project !== "lvf" ? "hide" : ""
|
|
245
292
|
),
|
|
246
|
-
children:
|
|
293
|
+
children: /* @__PURE__ */ jsx(
|
|
294
|
+
"p",
|
|
295
|
+
{
|
|
296
|
+
className: clsx(
|
|
297
|
+
"header_2",
|
|
298
|
+
headerForm({ variant }),
|
|
299
|
+
step_title_apply_now
|
|
300
|
+
),
|
|
301
|
+
children: "Step One"
|
|
302
|
+
}
|
|
303
|
+
)
|
|
247
304
|
}
|
|
248
|
-
)
|
|
305
|
+
),
|
|
249
306
|
/* @__PURE__ */ jsxs("div", { className: clsx(iconbillboards_option_apply_now), children: [
|
|
250
307
|
/* @__PURE__ */ jsx(
|
|
251
308
|
IconBillboard,
|
|
252
309
|
{
|
|
253
310
|
headline: "Term Loans",
|
|
254
|
-
body:
|
|
311
|
+
body: project === "lvf" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
312
|
+
"I am buying a new or used boat ",
|
|
313
|
+
/* @__PURE__ */ jsx("strong", { children: "or" }),
|
|
314
|
+
" I am looking for a Preapproval."
|
|
315
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
316
|
+
"I'm ready to begin a boat loan application",
|
|
317
|
+
" ",
|
|
318
|
+
/* @__PURE__ */ jsx("strong", { children: "or" }),
|
|
319
|
+
" get preapproved."
|
|
320
|
+
] }),
|
|
255
321
|
callToActionRow: [
|
|
256
322
|
{
|
|
257
323
|
id: "Term",
|
|
258
324
|
targetUrl: "#",
|
|
259
|
-
displayText: "Select",
|
|
260
|
-
variant: "secondary",
|
|
261
|
-
type: "Button",
|
|
325
|
+
displayText: project === "lvf" ? "Select" : "Get Started",
|
|
326
|
+
variant: project === "lvf" ? "secondary" : "primary",
|
|
327
|
+
type: project === "lvf" ? "Button" : "Chevron",
|
|
262
328
|
as: "button",
|
|
263
329
|
onClick: () => {
|
|
264
330
|
dispatch({ type: "Term" });
|
|
@@ -270,48 +336,50 @@ const ApplyNow = ({
|
|
|
270
336
|
variant: "primary"
|
|
271
337
|
}
|
|
272
338
|
),
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
339
|
+
project === "lvf" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
340
|
+
gbf && /* @__PURE__ */ jsx(
|
|
341
|
+
IconBillboard,
|
|
342
|
+
{
|
|
343
|
+
headline: "Credit Line",
|
|
344
|
+
body: "I want to make improvements on my boat.",
|
|
345
|
+
callToActionRow: [
|
|
346
|
+
{
|
|
347
|
+
id: "Credit Line",
|
|
348
|
+
targetUrl: "#",
|
|
349
|
+
displayText: "Select",
|
|
350
|
+
variant: "secondary",
|
|
351
|
+
type: "Button",
|
|
352
|
+
as: "button",
|
|
353
|
+
onClick: () => {
|
|
354
|
+
dispatch({ type: "Credit Line" });
|
|
355
|
+
dispatch({ type: "URL" });
|
|
356
|
+
}
|
|
289
357
|
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
)
|
|
358
|
+
],
|
|
359
|
+
id: "Credit Line",
|
|
360
|
+
variant: "primary"
|
|
361
|
+
}
|
|
362
|
+
),
|
|
363
|
+
!gbf && /* @__PURE__ */ jsx(
|
|
364
|
+
IconBillboard,
|
|
365
|
+
{
|
|
366
|
+
headline: "Inventory Finance",
|
|
367
|
+
body: "I am a boat dealer purchasing multiple boats in the future.",
|
|
368
|
+
callToActionRow: [
|
|
369
|
+
{
|
|
370
|
+
id: "Inventory Finance",
|
|
371
|
+
targetUrl: "/contact-us",
|
|
372
|
+
displayText: "Select",
|
|
373
|
+
variant: "secondary",
|
|
374
|
+
type: "Button",
|
|
375
|
+
as: "a"
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
id: "billboard-term",
|
|
379
|
+
variant: "primary"
|
|
380
|
+
}
|
|
381
|
+
)
|
|
382
|
+
] })
|
|
315
383
|
] })
|
|
316
384
|
]
|
|
317
385
|
}
|
|
@@ -332,8 +400,9 @@ const ApplyNow = ({
|
|
|
332
400
|
action: () => {
|
|
333
401
|
dispatch({ type: "back" });
|
|
334
402
|
dispatch({ type: "URL" });
|
|
403
|
+
dispatch({ type: "Initial" });
|
|
335
404
|
},
|
|
336
|
-
variant:
|
|
405
|
+
variant: backButtonVariant,
|
|
337
406
|
targetUrl: "#",
|
|
338
407
|
displayText: "Back",
|
|
339
408
|
leftArrow: true,
|
|
@@ -347,7 +416,8 @@ const ApplyNow = ({
|
|
|
347
416
|
className: clsx(
|
|
348
417
|
"header_2",
|
|
349
418
|
headerForm({ variant }),
|
|
350
|
-
step_title_apply_now
|
|
419
|
+
step_title_apply_now,
|
|
420
|
+
project !== "lvf" ? "hide" : ""
|
|
351
421
|
),
|
|
352
422
|
children: "Step Two"
|
|
353
423
|
}
|
|
@@ -364,8 +434,8 @@ const ApplyNow = ({
|
|
|
364
434
|
id: "Full-time Charter",
|
|
365
435
|
targetUrl: "#",
|
|
366
436
|
displayText: "Select",
|
|
367
|
-
variant: "secondary",
|
|
368
|
-
type: "Button",
|
|
437
|
+
variant: project === "lvf" ? "secondary" : "primary",
|
|
438
|
+
type: project === "lvf" ? "Button" : "Chevron",
|
|
369
439
|
as: "button",
|
|
370
440
|
onClick: () => {
|
|
371
441
|
dispatch({ type: "Full-time Charter" });
|
|
@@ -387,8 +457,8 @@ const ApplyNow = ({
|
|
|
387
457
|
id: "Limited-charter",
|
|
388
458
|
targetUrl: "#",
|
|
389
459
|
displayText: "Select",
|
|
390
|
-
variant: "secondary",
|
|
391
|
-
type: "Button",
|
|
460
|
+
variant: project === "lvf" ? "secondary" : "primary",
|
|
461
|
+
type: project === "lvf" ? "Button" : "Chevron",
|
|
392
462
|
as: "button",
|
|
393
463
|
onClick: () => {
|
|
394
464
|
dispatch({ type: "Limited Charter" });
|
|
@@ -410,8 +480,8 @@ const ApplyNow = ({
|
|
|
410
480
|
id: "personal-use",
|
|
411
481
|
targetUrl: "#",
|
|
412
482
|
displayText: "Select",
|
|
413
|
-
variant: "secondary",
|
|
414
|
-
type: "Button",
|
|
483
|
+
variant: project === "lvf" ? "secondary" : "primary",
|
|
484
|
+
type: project === "lvf" ? "Button" : "Chevron",
|
|
415
485
|
as: "button",
|
|
416
486
|
onClick: () => {
|
|
417
487
|
dispatch({ type: "Personal Use" });
|
|
@@ -444,7 +514,7 @@ const ApplyNow = ({
|
|
|
444
514
|
dispatch({ type: "back" });
|
|
445
515
|
dispatch({ type: "URL" });
|
|
446
516
|
},
|
|
447
|
-
variant:
|
|
517
|
+
variant: backButtonVariant,
|
|
448
518
|
targetUrl: "",
|
|
449
519
|
displayText: "Back",
|
|
450
520
|
leftArrow: true,
|
|
@@ -458,7 +528,8 @@ const ApplyNow = ({
|
|
|
458
528
|
className: clsx(
|
|
459
529
|
"header_2",
|
|
460
530
|
headerForm({ variant }),
|
|
461
|
-
step_title_apply_now
|
|
531
|
+
step_title_apply_now,
|
|
532
|
+
project !== "lvf" ? "hide" : ""
|
|
462
533
|
),
|
|
463
534
|
children: "Step Three"
|
|
464
535
|
}
|
|
@@ -475,8 +546,8 @@ const ApplyNow = ({
|
|
|
475
546
|
id: "llc",
|
|
476
547
|
targetUrl: "#",
|
|
477
548
|
displayText: "Select",
|
|
478
|
-
variant: "secondary",
|
|
479
|
-
type: "Button",
|
|
549
|
+
variant: project === "lvf" ? "secondary" : "primary",
|
|
550
|
+
type: project === "lvf" ? "Button" : "Chevron",
|
|
480
551
|
as: "button",
|
|
481
552
|
onClick: () => {
|
|
482
553
|
dispatch({ type: "LLC" });
|
|
@@ -498,8 +569,8 @@ const ApplyNow = ({
|
|
|
498
569
|
id: "personal",
|
|
499
570
|
targetUrl: "#",
|
|
500
571
|
displayText: "Select",
|
|
501
|
-
variant: "secondary",
|
|
502
|
-
type: "Button",
|
|
572
|
+
variant: project === "lvf" ? "secondary" : "primary",
|
|
573
|
+
type: project === "lvf" ? "Button" : "Chevron",
|
|
503
574
|
as: "button",
|
|
504
575
|
onClick: () => {
|
|
505
576
|
dispatch({ type: "Personal" });
|
|
@@ -532,8 +603,8 @@ const ApplyNow = ({
|
|
|
532
603
|
dispatch({ type: "back" });
|
|
533
604
|
dispatch({ type: "URL" });
|
|
534
605
|
},
|
|
535
|
-
variant:
|
|
536
|
-
targetUrl: "
|
|
606
|
+
variant: backButtonVariant,
|
|
607
|
+
targetUrl: "#",
|
|
537
608
|
displayText: "Back",
|
|
538
609
|
leftArrow: true,
|
|
539
610
|
classNameWrapper: clsx(back_btn_apply_now),
|
|
@@ -567,8 +638,8 @@ const ApplyNow = ({
|
|
|
567
638
|
{
|
|
568
639
|
id: "Inventory Finance",
|
|
569
640
|
targetUrl: stateRed.url,
|
|
570
|
-
displayText: "Select",
|
|
571
|
-
variant: "secondary",
|
|
641
|
+
displayText: project === "lvf" ? "Select" : "Start Application",
|
|
642
|
+
variant: project === "lvf" ? "secondary" : "primary",
|
|
572
643
|
type: "Button",
|
|
573
644
|
as: "a"
|
|
574
645
|
}
|
|
@@ -586,52 +657,6 @@ const ApplyNow = ({
|
|
|
586
657
|
] })
|
|
587
658
|
] }) }) }, id);
|
|
588
659
|
};
|
|
589
|
-
const getLink = (selection) => {
|
|
590
|
-
const formSelection = selection.join(" | ");
|
|
591
|
-
let url = "{LVFMYSITE}/Portal/nPortal__SelfRegistration?core=es5";
|
|
592
|
-
switch (formSelection) {
|
|
593
|
-
case "Term | Full-time Charter | LLC":
|
|
594
|
-
url += "&product=a0u5e000001XiAo";
|
|
595
|
-
break;
|
|
596
|
-
case "Term | Limited Charter | LLC":
|
|
597
|
-
url += "&product=a0u5e000001XiAp";
|
|
598
|
-
break;
|
|
599
|
-
case "Term | Personal Use | LLC":
|
|
600
|
-
url += "&product=a0u5e000001XiB3";
|
|
601
|
-
break;
|
|
602
|
-
case "Term | Full-time Charter | Personal":
|
|
603
|
-
url += "&product=a0u5e000001Wfd5";
|
|
604
|
-
break;
|
|
605
|
-
case "Term | Limited Charter | Personal":
|
|
606
|
-
url += "&product=a0u5e000001WfdA";
|
|
607
|
-
break;
|
|
608
|
-
case "Term | Personal Use | Personal":
|
|
609
|
-
url += "&product=a0u5e000001WfdB";
|
|
610
|
-
break;
|
|
611
|
-
case "Credit Line | Full-time Charter | LLC":
|
|
612
|
-
url += "&product=a0u8W00002DhceX";
|
|
613
|
-
break;
|
|
614
|
-
case "Credit Line | Limited Charter | LLC":
|
|
615
|
-
url += "&product=a0u8W00002DhceY";
|
|
616
|
-
break;
|
|
617
|
-
case "Credit Line | Personal Use | LLC":
|
|
618
|
-
url += "&product=a0u8W00002DhceZ";
|
|
619
|
-
break;
|
|
620
|
-
case "Credit Line | Full-time Charter | Personal":
|
|
621
|
-
url += "&product=a0u8W00002DhceS";
|
|
622
|
-
break;
|
|
623
|
-
case "Credit Line | Limited Charter | Personal":
|
|
624
|
-
url += "&product=a0u8W00002DhceT";
|
|
625
|
-
break;
|
|
626
|
-
case "Credit Line | Personal Use | Personal":
|
|
627
|
-
url += "&product=a0u8W00002DhceU";
|
|
628
|
-
break;
|
|
629
|
-
default:
|
|
630
|
-
url += "&product=a0u5e000000hzHz";
|
|
631
|
-
}
|
|
632
|
-
return url;
|
|
633
|
-
};
|
|
634
660
|
export {
|
|
635
|
-
ApplyNow
|
|
636
|
-
getLink
|
|
661
|
+
ApplyNow
|
|
637
662
|
};
|
|
@@ -41,8 +41,10 @@ import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
|
41
41
|
import "../Table/Table.css.js";
|
|
42
42
|
import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
|
|
43
43
|
import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
44
|
+
import "../Input/PercentageInput.js";
|
|
44
45
|
import { useForm, FormProvider } from "react-hook-form";
|
|
45
46
|
import { z } from "zod";
|
|
47
|
+
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
46
48
|
import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
47
49
|
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
48
50
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
@@ -63,8 +65,6 @@ import "iframe-resizer";
|
|
|
63
65
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
64
66
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
65
67
|
import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
|
|
66
|
-
import "../Input/PercentageInput.js";
|
|
67
|
-
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
68
68
|
/* empty css */
|
|
69
69
|
import "react-dom";
|
|
70
70
|
/* empty css */
|
|
@@ -41,8 +41,10 @@ import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
|
41
41
|
import "../Table/Table.css.js";
|
|
42
42
|
import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
|
|
43
43
|
import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
44
|
+
import "../Input/PercentageInput.js";
|
|
44
45
|
import { useForm, FormProvider } from "react-hook-form";
|
|
45
46
|
import { z } from "zod";
|
|
47
|
+
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
46
48
|
import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
47
49
|
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
48
50
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
@@ -63,8 +65,6 @@ import "iframe-resizer";
|
|
|
63
65
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
64
66
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
65
67
|
import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
|
|
66
|
-
import "../Input/PercentageInput.js";
|
|
67
|
-
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
68
68
|
/* empty css */
|
|
69
69
|
import "react-dom";
|
|
70
70
|
/* empty css */
|
|
@@ -8,4 +8,6 @@ export type ContactUsLaVictoireInputs = {
|
|
|
8
8
|
message: string;
|
|
9
9
|
checkbox: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare const ContactUsLVF: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps
|
|
11
|
+
export declare const ContactUsLVF: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, dealerCheckbox, }: FormProps & {
|
|
12
|
+
dealerCheckbox?: boolean;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -46,7 +46,8 @@ const ContactUsLVF = ({
|
|
|
46
46
|
callToAction,
|
|
47
47
|
validateEmail,
|
|
48
48
|
onValidate,
|
|
49
|
-
id
|
|
49
|
+
id,
|
|
50
|
+
dealerCheckbox = true
|
|
50
51
|
}) => {
|
|
51
52
|
const schema = z.object({
|
|
52
53
|
firstname: z.string().regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g, {
|
|
@@ -89,7 +90,10 @@ const ContactUsLVF = ({
|
|
|
89
90
|
resolver: zodResolver(gen_schema, {
|
|
90
91
|
async: true
|
|
91
92
|
}),
|
|
92
|
-
mode: "all"
|
|
93
|
+
mode: "all",
|
|
94
|
+
defaultValues: {
|
|
95
|
+
checkbox: false
|
|
96
|
+
}
|
|
93
97
|
});
|
|
94
98
|
const {
|
|
95
99
|
handleSubmit,
|
|
@@ -122,7 +126,8 @@ const ContactUsLVF = ({
|
|
|
122
126
|
await onSubmit({
|
|
123
127
|
fields: formattedFieldsData,
|
|
124
128
|
context: contextData,
|
|
125
|
-
legalConsentOptions: legalConsentData
|
|
129
|
+
legalConsentOptions: legalConsentData,
|
|
130
|
+
form: "contactUSLVF"
|
|
126
131
|
});
|
|
127
132
|
};
|
|
128
133
|
const variant = getVariant(fullVariant);
|
|
@@ -218,8 +223,7 @@ const ContactUsLVF = ({
|
|
|
218
223
|
variant
|
|
219
224
|
}
|
|
220
225
|
) }),
|
|
221
|
-
|
|
222
|
-
/* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
|
|
226
|
+
dealerCheckbox && /* @__PURE__ */ jsx("div", { className: clsx(fullRowForm), children: /* @__PURE__ */ jsx(
|
|
223
227
|
Checkbox,
|
|
224
228
|
{
|
|
225
229
|
id: "checkbox",
|
|
@@ -41,8 +41,10 @@ import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
|
41
41
|
import "../Table/Table.css.js";
|
|
42
42
|
import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
|
|
43
43
|
import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
44
|
+
import "../Input/PercentageInput.js";
|
|
44
45
|
import { useForm, FormProvider } from "react-hook-form";
|
|
45
46
|
import { z } from "zod";
|
|
47
|
+
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
46
48
|
import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
47
49
|
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
48
50
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
@@ -63,8 +65,6 @@ import "iframe-resizer";
|
|
|
63
65
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
64
66
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
65
67
|
import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
|
|
66
|
-
import "../Input/PercentageInput.js";
|
|
67
|
-
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
68
68
|
/* empty css */
|
|
69
69
|
import "react-dom";
|
|
70
70
|
/* empty css */
|
|
@@ -41,8 +41,10 @@ import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
|
41
41
|
import "../Table/Table.css.js";
|
|
42
42
|
import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
|
|
43
43
|
import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
44
|
+
import "../Input/PercentageInput.js";
|
|
44
45
|
import { useForm, FormProvider } from "react-hook-form";
|
|
45
46
|
import { z } from "zod";
|
|
47
|
+
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
46
48
|
import { iconForm, headerContainer, headerForm, form, descriptionField, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
47
49
|
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
48
50
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
@@ -63,8 +65,6 @@ import "iframe-resizer";
|
|
|
63
65
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
64
66
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
65
67
|
import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
|
|
66
|
-
import "../Input/PercentageInput.js";
|
|
67
|
-
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
68
68
|
/* empty css */
|
|
69
69
|
import "react-dom";
|
|
70
70
|
/* empty css */
|
package/dist/Forms/EmailOnly.js
CHANGED
|
@@ -42,8 +42,10 @@ import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
|
42
42
|
import "../Table/Table.css.js";
|
|
43
43
|
import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
|
|
44
44
|
import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
45
|
+
import "../Input/PercentageInput.js";
|
|
45
46
|
import { useForm, FormProvider } from "react-hook-form";
|
|
46
47
|
import { z } from "zod";
|
|
48
|
+
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
47
49
|
import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
48
50
|
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
49
51
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
@@ -64,8 +66,6 @@ import "iframe-resizer";
|
|
|
64
66
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
65
67
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
66
68
|
import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
|
|
67
|
-
import "../Input/PercentageInput.js";
|
|
68
|
-
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
69
69
|
/* empty css */
|
|
70
70
|
import "react-dom";
|
|
71
71
|
/* empty css */
|