@axos-web-dev/shared-components 1.0.77-patch.17 → 1.0.77-patch.19
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.
|
@@ -207,7 +207,15 @@ const AxosFooterSiteMap = ({
|
|
|
207
207
|
children: "Auto Loans"
|
|
208
208
|
}
|
|
209
209
|
) }),
|
|
210
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
210
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
211
|
+
"a",
|
|
212
|
+
{
|
|
213
|
+
href: findMoreAxosDomains(
|
|
214
|
+
"{AXOSBANK}/personal/borrow/marine-loans"
|
|
215
|
+
),
|
|
216
|
+
children: "Marine Loans"
|
|
217
|
+
}
|
|
218
|
+
) })
|
|
211
219
|
] }),
|
|
212
220
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
213
221
|
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
@@ -615,7 +623,15 @@ const AxosFooterSiteMap = ({
|
|
|
615
623
|
children: "Auto Loans"
|
|
616
624
|
}
|
|
617
625
|
) }),
|
|
618
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
626
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
627
|
+
"a",
|
|
628
|
+
{
|
|
629
|
+
href: findMoreAxosDomains(
|
|
630
|
+
"{AXOSBANK}/personal/borrow/marine-loans"
|
|
631
|
+
),
|
|
632
|
+
children: "Marine Loans"
|
|
633
|
+
}
|
|
634
|
+
) })
|
|
619
635
|
] }),
|
|
620
636
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
621
637
|
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
@@ -8,6 +8,10 @@ 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, id, dealerCheckbox, }: FormProps & {
|
|
11
|
+
export declare const ContactUsLVF: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, dealerCheckbox, contextData, }: FormProps & {
|
|
12
12
|
dealerCheckbox?: boolean;
|
|
13
|
+
contextData?: {
|
|
14
|
+
pageName?: string;
|
|
15
|
+
pageUri?: string;
|
|
16
|
+
};
|
|
13
17
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,6 +32,7 @@ import clsx from "clsx";
|
|
|
32
32
|
import { useForm, FormProvider } from "react-hook-form";
|
|
33
33
|
import * as z from "zod";
|
|
34
34
|
import { iconForm, headerContainer, headerForm, form, descriptionField, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
35
|
+
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
35
36
|
const ContactUsLVF = ({
|
|
36
37
|
icon = false,
|
|
37
38
|
children,
|
|
@@ -45,7 +46,8 @@ const ContactUsLVF = ({
|
|
|
45
46
|
callToAction,
|
|
46
47
|
validateEmail,
|
|
47
48
|
id,
|
|
48
|
-
dealerCheckbox = true
|
|
49
|
+
dealerCheckbox = true,
|
|
50
|
+
contextData
|
|
49
51
|
}) => {
|
|
50
52
|
const schema = z.object({
|
|
51
53
|
firstname: z.string().regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g, {
|
|
@@ -76,8 +78,9 @@ const ContactUsLVF = ({
|
|
|
76
78
|
message: z.string().min(1, { message: "Please complete this required field." }),
|
|
77
79
|
checkbox: z.boolean()
|
|
78
80
|
});
|
|
81
|
+
const gen_schema = schema.merge(SalesforceSchema);
|
|
79
82
|
const methods = useForm({
|
|
80
|
-
resolver: zodResolver(
|
|
83
|
+
resolver: zodResolver(gen_schema, {
|
|
81
84
|
async: true
|
|
82
85
|
}),
|
|
83
86
|
mode: "all",
|
|
@@ -96,9 +99,9 @@ const ContactUsLVF = ({
|
|
|
96
99
|
return { name: key, value: data[key] };
|
|
97
100
|
}
|
|
98
101
|
}).filter((el) => el !== void 0);
|
|
99
|
-
const
|
|
100
|
-
pageName: "La Victoire Finance",
|
|
101
|
-
pageUri: "https://lavictoirefinance.com/contact-us"
|
|
102
|
+
const finalContextData = {
|
|
103
|
+
pageName: contextData?.pageName || "La Victoire Finance",
|
|
104
|
+
pageUri: contextData?.pageUri || "https://lavictoirefinance.com/contact-us"
|
|
102
105
|
};
|
|
103
106
|
const legalConsentData = {
|
|
104
107
|
consent: {
|
|
@@ -115,7 +118,7 @@ const ContactUsLVF = ({
|
|
|
115
118
|
};
|
|
116
119
|
await onSubmit({
|
|
117
120
|
fields: formattedFieldsData,
|
|
118
|
-
context:
|
|
121
|
+
context: finalContextData,
|
|
119
122
|
legalConsentOptions: legalConsentData,
|
|
120
123
|
form: "contactUSLVF"
|
|
121
124
|
});
|
|
@@ -13,8 +13,8 @@ import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/Downl
|
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
15
|
import { getVariant } from "../utils/getVariant.js";
|
|
16
|
-
import Image from "next/image.js";
|
|
17
16
|
import clsx from "clsx";
|
|
17
|
+
import Image from "next/image.js";
|
|
18
18
|
import { logout, hero_banner, hero_wrapper, hero_content, reversed, hero_text, heroSupertag, headline_text, hero_bullet_item, hero_sub_bullets, hero_btns, hero_img, img_contents, reversed_lg_image } from "./HeroBanner.css.js";
|
|
19
19
|
import { lg_hero_banner, lg_hero_content, lg_hero_text, lg_hero_eyebrow, lg_headline_text, lg_hero_img, lg_hero_sizing } from "./LargeBanner.css.js";
|
|
20
20
|
import { selection_section_icon_img, selection_section_icon, selection_section, selection_section_bg, selection_section_content, selection_headline_text } from "./SelectionBanner.css.js";
|
|
@@ -314,7 +314,48 @@ const HeroBanner = ({
|
|
|
314
314
|
children: headline
|
|
315
315
|
}
|
|
316
316
|
),
|
|
317
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ jsxs("div", { className: "push_up", children: [
|
|
318
|
+
/* @__PURE__ */ jsx(Fragment, { children: bodyCopy }),
|
|
319
|
+
bullets && bullets.length > 0 && /* @__PURE__ */ jsx("ul", { className: "list_unstyled mb_0 push_up_24", children: bullets.map(
|
|
320
|
+
({ id: id2, icon, copy, subBullet }) => !subBullet ? /* @__PURE__ */ jsxs(
|
|
321
|
+
"li",
|
|
322
|
+
{
|
|
323
|
+
className: `list_item flex ${hero_bullet_item}`,
|
|
324
|
+
children: [
|
|
325
|
+
/* @__PURE__ */ jsx("div", { className: "img_item", children: getVariant(variant) ? /* @__PURE__ */ jsx(
|
|
326
|
+
SvgCheckIcon,
|
|
327
|
+
{
|
|
328
|
+
variant: getVariant(variant) === "primary" || getVariant(variant) === "secondary" ? "secondary" : "primary"
|
|
329
|
+
}
|
|
330
|
+
) : /* @__PURE__ */ jsx("img", { src: icon?.src, alt: icon?.altText }) }),
|
|
331
|
+
/* @__PURE__ */ jsx("span", { children: copy })
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
id2
|
|
335
|
+
) : /* @__PURE__ */ jsx(
|
|
336
|
+
"ul",
|
|
337
|
+
{
|
|
338
|
+
className: clsx(
|
|
339
|
+
hero_sub_bullets,
|
|
340
|
+
"mb_0",
|
|
341
|
+
"push_up"
|
|
342
|
+
),
|
|
343
|
+
children: /* @__PURE__ */ jsxs("li", { className: "list_item flex", children: [
|
|
344
|
+
/* @__PURE__ */ jsx("div", { className: "img_item", children: /* @__PURE__ */ jsx(
|
|
345
|
+
"img",
|
|
346
|
+
{
|
|
347
|
+
style: { maxWidth: "max-content" },
|
|
348
|
+
src: icon?.src,
|
|
349
|
+
alt: icon?.altText
|
|
350
|
+
}
|
|
351
|
+
) }),
|
|
352
|
+
/* @__PURE__ */ jsx("span", { children: copy })
|
|
353
|
+
] })
|
|
354
|
+
},
|
|
355
|
+
id2
|
|
356
|
+
)
|
|
357
|
+
) })
|
|
358
|
+
] }),
|
|
318
359
|
callToActionRow && callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${hero_btns}`, children: callToActionRow.map(
|
|
319
360
|
({
|
|
320
361
|
id: id2,
|
|
@@ -2074,15 +2074,7 @@ function SubNavBar() {
|
|
|
2074
2074
|
children: "Open an Account"
|
|
2075
2075
|
}
|
|
2076
2076
|
),
|
|
2077
|
-
/* @__PURE__ */ jsx(
|
|
2078
|
-
Link,
|
|
2079
|
-
{
|
|
2080
|
-
href: findMoreAxosDomains(
|
|
2081
|
-
"{AXOSBANK}/business/open-account-return-to-application#AXB----Return-To-My-Application----Icon-Billboard"
|
|
2082
|
-
),
|
|
2083
|
-
children: "Check Application Status"
|
|
2084
|
-
}
|
|
2085
|
-
)
|
|
2077
|
+
/* @__PURE__ */ jsx(Link, { href: findMoreAxosDomains("{SBEAX}/login"), children: "Check Application Status" })
|
|
2086
2078
|
]
|
|
2087
2079
|
}
|
|
2088
2080
|
)
|
package/package.json
CHANGED