@axos-web-dev/shared-components 0.0.75 → 0.0.77
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.d.ts +2 -0
- package/dist/ATMLocator/ATMLocator.js +22 -0
- package/dist/ATMLocator/index.d.ts +1 -0
- package/dist/ATMLocator/index.js +4 -0
- package/dist/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +34 -0
- package/dist/AnnualFeeCalculator/AnnualFeeCalculator.css.js +34 -0
- package/dist/AnnualFeeCalculator/index.d.ts +10 -0
- package/dist/AnnualFeeCalculator/index.js +143 -0
- package/dist/ApyCalculator/ApyCalculator.css.d.ts +68 -3
- package/dist/ApyCalculator/ApyCalculator.css.js +29 -22
- package/dist/ApyCalculator/index.d.ts +7 -1
- package/dist/ApyCalculator/index.js +106 -87
- package/dist/ArticlesSet/ArticlesSet.js +2 -2
- package/dist/Calculators/Calculator.d.ts +2 -0
- package/dist/Calculators/Calculator.js +79 -34
- package/dist/Calculators/calculators.js +6 -0
- package/dist/Carousel/index.js +6 -4
- package/dist/Chevron/index.js +7 -5
- package/dist/Comparison/Comparison.js +4 -2
- package/dist/Comparison/ComparisonSet.js +6 -4
- package/dist/ExecutiveBio/ExecutiveBio.js +2 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +7 -5
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialLending.js +16 -2
- package/dist/Forms/ContactUsAAS.js +6 -4
- package/dist/Forms/ContactUsBusiness.js +6 -4
- package/dist/Forms/ContactUsNMLSId.d.ts +10 -0
- package/dist/Forms/ContactUsNMLSId.js +263 -0
- package/dist/Forms/EmailOnly.js +6 -4
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/EmailUs.js +16 -2
- package/dist/Forms/SuccesForm.js +5 -3
- package/dist/Forms/index.d.ts +1 -0
- package/dist/Forms/index.js +2 -0
- package/dist/HeroBanner/HeroBanner.js +22 -4
- package/dist/HeroBanner/SelectionBanner.css.d.ts +10 -1
- package/dist/HeroBanner/SelectionBanner.css.js +1 -1
- package/dist/Hyperlink/index.js +7 -5
- package/dist/IconBillboard/IconBillboard.css.d.ts +2 -0
- package/dist/IconBillboard/IconBillboard.js +1 -1
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +1 -0
- package/dist/ImageLink/ImageLink.js +5 -3
- package/dist/ImageLink/ImageLinkSet.js +4 -2
- package/dist/ImageLink/index.js +7 -5
- package/dist/Modal/Modal.js +6 -4
- package/dist/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +27 -0
- package/dist/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +22 -0
- package/dist/MonthlyPaymentCalculator/index.d.ts +8 -0
- package/dist/MonthlyPaymentCalculator/index.js +212 -0
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +53 -53
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +31 -18
- package/dist/NavigationMenu/NavItem/index.js +1 -2
- package/dist/SetContainer/SetContainer.js +6 -4
- package/dist/SocialMediaBar/iconsRepository.js +34 -34
- package/dist/StepItemSet/StepItemSet.js +2 -2
- package/dist/assets/AnnualFeeCalculator/AnnualFeeCalculator.css +125 -0
- package/dist/assets/ApyCalculator/ApyCalculator.css +77 -98
- package/dist/assets/CallToActionBar/CallToActionBar.css +4 -0
- package/dist/assets/HeroBanner/SelectionBanner.css +10 -4
- package/dist/assets/IconBillboard/IconBillboard.css +4 -0
- package/dist/assets/ImageBillboard/ImageBillboard.css +1 -0
- package/dist/assets/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +67 -0
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +154 -150
- package/dist/assets/SetContainer/SetContainer.css +3 -0
- package/dist/assets/Tab/Tab.css +1 -1
- package/dist/assets/globals.css +3 -0
- package/dist/main.d.ts +3 -2
- package/dist/main.js +61 -57
- package/package.json +1 -1
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { calc_container, container, inputs_container, input_container, input_box, error_message, calculation_header, payment_results } from "./MonthlyPaymentCalculator.css.js";
|
|
5
|
+
import { button } from "../Button/Button.css.js";
|
|
6
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
7
|
+
import { title } from "../IconBillboard/IconBillboard.css.js";
|
|
8
|
+
const MonthlyPaymentCalculator = ({
|
|
9
|
+
variant,
|
|
10
|
+
header
|
|
11
|
+
}) => {
|
|
12
|
+
const [loanAmountDisplay, setLoanAmountDisplay] = useState("");
|
|
13
|
+
const [loanAmount, setLoanAmount] = useState(void 0);
|
|
14
|
+
const [loanDuration, setLoanDuration] = useState(60);
|
|
15
|
+
const [interestRateDisplay, setInterestRateDisplay] = useState("");
|
|
16
|
+
const [interestRate, setInterestRate] = useState("");
|
|
17
|
+
const [estimatedPayment, setEstimatedPayment] = useState(0);
|
|
18
|
+
const [loanAmountError, setLoanAmountError] = useState(null);
|
|
19
|
+
const [interestRateError, setInterestRateError] = useState(
|
|
20
|
+
null
|
|
21
|
+
);
|
|
22
|
+
const formatToCurrency = (value) => {
|
|
23
|
+
const numericValue = parseFloat(value.replace(/[^0-9.]/g, ""));
|
|
24
|
+
if (isNaN(numericValue)) {
|
|
25
|
+
return "";
|
|
26
|
+
}
|
|
27
|
+
return numericValue.toLocaleString("en-US", {
|
|
28
|
+
style: "currency",
|
|
29
|
+
currency: "USD",
|
|
30
|
+
minimumFractionDigits: 0,
|
|
31
|
+
maximumFractionDigits: 0
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const validateInputs = () => {
|
|
35
|
+
let isValid = true;
|
|
36
|
+
if (!loanAmount || isNaN(loanAmount) || loanAmount < 1e4 || loanAmount > 9e4) {
|
|
37
|
+
setLoanAmountError("Please enter an amount between $10,000 and $90,000.");
|
|
38
|
+
isValid = false;
|
|
39
|
+
} else {
|
|
40
|
+
setLoanAmountError(null);
|
|
41
|
+
}
|
|
42
|
+
if (!interestRate || isNaN(parseFloat(interestRate))) {
|
|
43
|
+
setInterestRateError("Please enter an Interest Rate.");
|
|
44
|
+
isValid = false;
|
|
45
|
+
} else {
|
|
46
|
+
setInterestRateError(null);
|
|
47
|
+
}
|
|
48
|
+
return isValid;
|
|
49
|
+
};
|
|
50
|
+
const handleLoanAmountChange = (event) => {
|
|
51
|
+
const value = event.target.value;
|
|
52
|
+
const formattedValue = formatToCurrency(value);
|
|
53
|
+
setLoanAmountDisplay(formattedValue);
|
|
54
|
+
const numericValue = parseFloat(value.replace(/[^0-9.]/g, ""));
|
|
55
|
+
setLoanAmount(isNaN(numericValue) ? void 0 : numericValue);
|
|
56
|
+
};
|
|
57
|
+
const handleLoanDurationChange = (event) => {
|
|
58
|
+
setLoanDuration(Number(event.target.value));
|
|
59
|
+
};
|
|
60
|
+
const formatToPercentage = (value) => {
|
|
61
|
+
const numericValue = value.replace(/[^0-9.]/g, "");
|
|
62
|
+
if (numericValue === "") {
|
|
63
|
+
return "";
|
|
64
|
+
} else if (numericValue.endsWith("%")) {
|
|
65
|
+
return numericValue;
|
|
66
|
+
} else {
|
|
67
|
+
return numericValue.substring(0, numericValue.length - 2) + numericValue.substring(numericValue.length - 2) + "%";
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const handleInterestRateChange = (event) => {
|
|
71
|
+
let value = event.target.value;
|
|
72
|
+
if (value.length < interestRateDisplay.length) {
|
|
73
|
+
if (interestRateDisplay.length > 1 && interestRateDisplay.endsWith("%")) {
|
|
74
|
+
value = interestRateDisplay.substring(0, interestRateDisplay.length - 2) + "%";
|
|
75
|
+
} else if (interestRateDisplay.length === 1) {
|
|
76
|
+
value = "";
|
|
77
|
+
} else {
|
|
78
|
+
value = interestRateDisplay.substring(
|
|
79
|
+
0,
|
|
80
|
+
interestRateDisplay.length - 1
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
value = formatToPercentage(value);
|
|
85
|
+
}
|
|
86
|
+
setInterestRateDisplay(value);
|
|
87
|
+
setInterestRate(value.replace(/[^0-9.]/g, ""));
|
|
88
|
+
};
|
|
89
|
+
const calculateMonthlyPayment = () => {
|
|
90
|
+
const numericInterestRate = parseFloat(interestRate);
|
|
91
|
+
const monthlyInterestRate = numericInterestRate / 100 / 12;
|
|
92
|
+
const months = loanDuration;
|
|
93
|
+
if (!isNaN(loanAmount || 0) && !isNaN(numericInterestRate)) {
|
|
94
|
+
const monthlyPayment = (loanAmount || 0) * monthlyInterestRate / (1 - Math.pow(1 + monthlyInterestRate, -months));
|
|
95
|
+
setEstimatedPayment(monthlyPayment);
|
|
96
|
+
} else {
|
|
97
|
+
setEstimatedPayment(0);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const handleCalculate = () => {
|
|
101
|
+
if (validateInputs()) {
|
|
102
|
+
calculateMonthlyPayment();
|
|
103
|
+
} else {
|
|
104
|
+
setEstimatedPayment(0);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
return /* @__PURE__ */ jsx("section", { className: `section_spacer`, children: /* @__PURE__ */ jsx("div", { className: "containment", children: /* @__PURE__ */ jsxs(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
className: `rounded ${calc_container} ${container({ variant: getVariant(variant) })}`,
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
113
|
+
"h2",
|
|
114
|
+
{
|
|
115
|
+
className: `text_center ${title({ variant: getVariant(variant) })}`,
|
|
116
|
+
children: header
|
|
117
|
+
}
|
|
118
|
+
) }),
|
|
119
|
+
/* @__PURE__ */ jsxs(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
className: `flex center text_center push_up_32 bottom ${inputs_container}`,
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ jsxs("div", { className: `flex flex_col ${input_container}`, children: [
|
|
125
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "loanAmount", id: "amount1", children: "Loan Amount ($10,000 - $90,000)" }),
|
|
126
|
+
/* @__PURE__ */ jsx(
|
|
127
|
+
"input",
|
|
128
|
+
{
|
|
129
|
+
className: `text_center bordered ${input_box}`,
|
|
130
|
+
id: "loanAmount",
|
|
131
|
+
maxLength: 10,
|
|
132
|
+
name: "loanAmount",
|
|
133
|
+
type: "text",
|
|
134
|
+
placeholder: "$0",
|
|
135
|
+
value: loanAmountDisplay,
|
|
136
|
+
onChange: handleLoanAmountChange
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
loanAmountError && /* @__PURE__ */ jsx("span", { className: error_message, children: loanAmountError })
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ jsxs("div", { className: `flex flex_col ${input_container}`, children: [
|
|
142
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "loanDuration", children: "Loan Duration (Months)" }),
|
|
143
|
+
/* @__PURE__ */ jsxs(
|
|
144
|
+
"select",
|
|
145
|
+
{
|
|
146
|
+
className: `text_center bordered ${input_box}`,
|
|
147
|
+
id: "loanDuration",
|
|
148
|
+
name: "loanDuration",
|
|
149
|
+
value: loanDuration,
|
|
150
|
+
onChange: handleLoanDurationChange,
|
|
151
|
+
children: [
|
|
152
|
+
/* @__PURE__ */ jsx("option", { value: "12", children: "12" }),
|
|
153
|
+
/* @__PURE__ */ jsx("option", { value: "24", children: "24" }),
|
|
154
|
+
/* @__PURE__ */ jsx("option", { value: "36", children: "36" }),
|
|
155
|
+
/* @__PURE__ */ jsx("option", { value: "48", children: "48" }),
|
|
156
|
+
/* @__PURE__ */ jsx("option", { value: "60", children: "60" }),
|
|
157
|
+
/* @__PURE__ */ jsx("option", { value: "72", children: "72" }),
|
|
158
|
+
/* @__PURE__ */ jsx("option", { value: "84", children: "84" }),
|
|
159
|
+
/* @__PURE__ */ jsx("option", { value: "96", children: "96" })
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
] }),
|
|
164
|
+
/* @__PURE__ */ jsxs("div", { className: `flex flex_col ${input_container}`, children: [
|
|
165
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "interestRate", children: "Interest Rate" }),
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
"input",
|
|
168
|
+
{
|
|
169
|
+
className: `text_center bordered ${input_box}`,
|
|
170
|
+
id: "interestRate",
|
|
171
|
+
maxLength: 6,
|
|
172
|
+
name: "interestRate",
|
|
173
|
+
type: "text",
|
|
174
|
+
placeholder: "0.00%",
|
|
175
|
+
value: interestRateDisplay,
|
|
176
|
+
onChange: handleInterestRateChange
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
interestRateError && /* @__PURE__ */ jsx("span", { className: error_message, children: interestRateError })
|
|
180
|
+
] })
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
185
|
+
/* @__PURE__ */ jsx("div", { className: `flex center middle push_up_32`, children: /* @__PURE__ */ jsx(
|
|
186
|
+
"input",
|
|
187
|
+
{
|
|
188
|
+
className: `${button({
|
|
189
|
+
color: "primary",
|
|
190
|
+
size: "medium",
|
|
191
|
+
rounded: "medium"
|
|
192
|
+
})} center`,
|
|
193
|
+
type: "button",
|
|
194
|
+
value: "Calculate",
|
|
195
|
+
onClick: handleCalculate
|
|
196
|
+
}
|
|
197
|
+
) }),
|
|
198
|
+
/* @__PURE__ */ jsxs("div", { className: "text_center flex flex_col center middle push_up_32", children: [
|
|
199
|
+
/* @__PURE__ */ jsx("span", { className: calculation_header, children: "Estimated Monthly Payment:" }),
|
|
200
|
+
/* @__PURE__ */ jsxs("span", { id: "estimatedPayment", className: payment_results, children: [
|
|
201
|
+
"$",
|
|
202
|
+
estimatedPayment.toFixed(2)
|
|
203
|
+
] })
|
|
204
|
+
] })
|
|
205
|
+
] })
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
) }) });
|
|
209
|
+
};
|
|
210
|
+
export {
|
|
211
|
+
MonthlyPaymentCalculator
|
|
212
|
+
};
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
const header = "
|
|
2
|
-
const wrapper = "
|
|
3
|
-
const header_main_row = "
|
|
4
|
-
const mobile_header = "
|
|
5
|
-
const logo_wrap = "
|
|
6
|
-
const primary_links = "
|
|
7
|
-
const main_nav_link = "
|
|
8
|
-
const sub_nav_link = "
|
|
9
|
-
const signin_wrap = "
|
|
10
|
-
const signin_btn = "
|
|
11
|
-
const sub_nav = "
|
|
12
|
-
const header_sub_row = "
|
|
13
|
-
const signin_dropdown = "
|
|
14
|
-
const shadow = "
|
|
15
|
-
const signin_header = "
|
|
16
|
-
const signin_subheader = "
|
|
17
|
-
const opacity = "
|
|
18
|
-
const fadeInDown = "
|
|
19
|
-
const signin_footer = "
|
|
20
|
-
const open = "
|
|
21
|
-
const dd_wrapper = "
|
|
22
|
-
const dd_media = "
|
|
23
|
-
const dd_media_img = "
|
|
24
|
-
const dd_site_navs = "
|
|
25
|
-
const dd_media_header = "
|
|
26
|
-
const mt_8 = "
|
|
27
|
-
const mt_16 = "
|
|
28
|
-
const ml_8 = "
|
|
29
|
-
const dd_media_cta = "
|
|
30
|
-
const reversed_row = "
|
|
31
|
-
const headline = "
|
|
32
|
-
const nav_anchor = "
|
|
33
|
-
const headline_cta = "
|
|
34
|
-
const site_lists = "
|
|
35
|
-
const hamburger = "
|
|
36
|
-
const mobile_only = "
|
|
37
|
-
const mobile_logo = "
|
|
38
|
-
const highlight = "
|
|
39
|
-
const mobile_nav = "
|
|
40
|
-
const mobile_opened = "
|
|
41
|
-
const mobile_nav_item = "
|
|
42
|
-
const has_dropdown = "
|
|
43
|
-
const icon_wrap = "
|
|
44
|
-
const mobile_footer = "
|
|
45
|
-
const mobile_footer_content = "
|
|
46
|
-
const mobile_footer_media = "
|
|
47
|
-
const footer_cta = "
|
|
48
|
-
const inner_wrapper = "
|
|
49
|
-
const btn = "
|
|
50
|
-
const sub_menu = "
|
|
51
|
-
const main = "
|
|
52
|
-
const dd_footer = "
|
|
53
|
-
const desktop_only = "
|
|
1
|
+
const header = "_header_gpru8_1";
|
|
2
|
+
const wrapper = "_wrapper_gpru8_5";
|
|
3
|
+
const header_main_row = "_header_main_row_gpru8_11";
|
|
4
|
+
const mobile_header = "_mobile_header_gpru8_12";
|
|
5
|
+
const logo_wrap = "_logo_wrap_gpru8_18";
|
|
6
|
+
const primary_links = "_primary_links_gpru8_22";
|
|
7
|
+
const main_nav_link = "_main_nav_link_gpru8_26";
|
|
8
|
+
const sub_nav_link = "_sub_nav_link_gpru8_45";
|
|
9
|
+
const signin_wrap = "_signin_wrap_gpru8_47";
|
|
10
|
+
const signin_btn = "_signin_btn_gpru8_48";
|
|
11
|
+
const sub_nav = "_sub_nav_gpru8_45";
|
|
12
|
+
const header_sub_row = "_header_sub_row_gpru8_94";
|
|
13
|
+
const signin_dropdown = "_signin_dropdown_gpru8_117";
|
|
14
|
+
const shadow = "_shadow_gpru8_127";
|
|
15
|
+
const signin_header = "_signin_header_gpru8_135";
|
|
16
|
+
const signin_subheader = "_signin_subheader_gpru8_142";
|
|
17
|
+
const opacity = "_opacity_gpru8_164";
|
|
18
|
+
const fadeInDown = "_fadeInDown_gpru8_1";
|
|
19
|
+
const signin_footer = "_signin_footer_gpru8_170";
|
|
20
|
+
const open = "_open_gpru8_191";
|
|
21
|
+
const dd_wrapper = "_dd_wrapper_gpru8_203";
|
|
22
|
+
const dd_media = "_dd_media_gpru8_211";
|
|
23
|
+
const dd_media_img = "_dd_media_img_gpru8_216";
|
|
24
|
+
const dd_site_navs = "_dd_site_navs_gpru8_220";
|
|
25
|
+
const dd_media_header = "_dd_media_header_gpru8_227";
|
|
26
|
+
const mt_8 = "_mt_8_gpru8_237";
|
|
27
|
+
const mt_16 = "_mt_16_gpru8_241";
|
|
28
|
+
const ml_8 = "_ml_8_gpru8_245";
|
|
29
|
+
const dd_media_cta = "_dd_media_cta_gpru8_249";
|
|
30
|
+
const reversed_row = "_reversed_row_gpru8_281";
|
|
31
|
+
const headline = "_headline_gpru8_291";
|
|
32
|
+
const nav_anchor = "_nav_anchor_gpru8_298";
|
|
33
|
+
const headline_cta = "_headline_cta_gpru8_306";
|
|
34
|
+
const site_lists = "_site_lists_gpru8_321";
|
|
35
|
+
const hamburger = "_hamburger_gpru8_359";
|
|
36
|
+
const mobile_only = "_mobile_only_gpru8_373";
|
|
37
|
+
const mobile_logo = "_mobile_logo_gpru8_379";
|
|
38
|
+
const highlight = "_highlight_gpru8_384";
|
|
39
|
+
const mobile_nav = "_mobile_nav_gpru8_411";
|
|
40
|
+
const mobile_opened = "_mobile_opened_gpru8_422";
|
|
41
|
+
const mobile_nav_item = "_mobile_nav_item_gpru8_430";
|
|
42
|
+
const has_dropdown = "_has_dropdown_gpru8_445";
|
|
43
|
+
const icon_wrap = "_icon_wrap_gpru8_466";
|
|
44
|
+
const mobile_footer = "_mobile_footer_gpru8_471";
|
|
45
|
+
const mobile_footer_content = "_mobile_footer_content_gpru8_476";
|
|
46
|
+
const mobile_footer_media = "_mobile_footer_media_gpru8_490";
|
|
47
|
+
const footer_cta = "_footer_cta_gpru8_496";
|
|
48
|
+
const inner_wrapper = "_inner_wrapper_gpru8_524";
|
|
49
|
+
const btn = "_btn_gpru8_529";
|
|
50
|
+
const sub_menu = "_sub_menu_gpru8_534";
|
|
51
|
+
const main = "_main_gpru8_26";
|
|
52
|
+
const dd_footer = "_dd_footer_gpru8_559";
|
|
53
|
+
const desktop_only = "_desktop_only_gpru8_588";
|
|
54
54
|
const styles = {
|
|
55
55
|
header,
|
|
56
56
|
wrapper,
|
|
@@ -10,20 +10,21 @@ import "../../icons/CheckIcon/CheckIcon.css.js";
|
|
|
10
10
|
/* empty css */
|
|
11
11
|
import "../../Chevron/Chevron.css.js";
|
|
12
12
|
import "../../AlertBanner/AlertBanner.css.js";
|
|
13
|
+
import "../../Button/Button.css.js";
|
|
14
|
+
import { useState } from "react";
|
|
15
|
+
import "../../ApyCalculator/ApyCalculator.css.js";
|
|
13
16
|
import "../../Modal/contextApi/store.js";
|
|
14
17
|
import { findMoreAxosDomains } from "../../utils/allowedAxosDomains.js";
|
|
15
18
|
import "clsx";
|
|
16
|
-
import { useState } from "react";
|
|
17
|
-
import "../../Button/Button.css.js";
|
|
18
19
|
import { useLocation } from "react-use";
|
|
19
|
-
|
|
20
|
+
import "../../IconBillboard/IconBillboard.css.js";
|
|
20
21
|
import "../../Article/Article.css.js";
|
|
21
22
|
import "../../ArticlesSet/ArticlesSet.css.js";
|
|
22
23
|
/* empty css */
|
|
23
24
|
/* empty css */
|
|
24
25
|
/* empty css */
|
|
25
|
-
import "../../IconBillboard/IconBillboard.css.js";
|
|
26
26
|
/* empty css */
|
|
27
|
+
import "../../AnnualFeeCalculator/AnnualFeeCalculator.css.js";
|
|
27
28
|
import "@hookform/resolvers/zod";
|
|
28
29
|
import "../../Input/Checkbox.js";
|
|
29
30
|
import "../../Input/CurrencyInput.js";
|
|
@@ -38,6 +39,7 @@ import "../../Forms/Forms.css.js";
|
|
|
38
39
|
import "../../Forms/SalesforceFieldsForm.js";
|
|
39
40
|
import "../../LoadingIndicator/LoadingIndicator.css.js";
|
|
40
41
|
import "../../Input/RadioButton.js";
|
|
42
|
+
import "../../MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
41
43
|
import "iframe-resizer";
|
|
42
44
|
import "../../Calculators/calculator.css.js";
|
|
43
45
|
/* empty css */
|
|
@@ -59,12 +61,12 @@ import "../../FooterDisclosure/FooterDisclosure.css.js";
|
|
|
59
61
|
import "../../ImageBillboard/ImageBillboard.css.js";
|
|
60
62
|
import "../../LandingPageHeader/LandingPageHeader.css.js";
|
|
61
63
|
/* empty css */
|
|
62
|
-
import Link from "next/link.js";
|
|
63
64
|
/* empty css */
|
|
64
65
|
/* empty css */
|
|
65
66
|
/* empty css */
|
|
66
67
|
/* empty css */
|
|
67
68
|
import Image from "next/image.js";
|
|
69
|
+
import Link from "next/link.js";
|
|
68
70
|
/* empty css */
|
|
69
71
|
import styles from "./NavBar.module.js";
|
|
70
72
|
import { subNavItems } from "./NavData.js";
|
|
@@ -327,6 +329,7 @@ function SubNavBar() {
|
|
|
327
329
|
href: `https://lavictoirefinance.com/dealers`,
|
|
328
330
|
id: "partNav1",
|
|
329
331
|
role: "menuitem",
|
|
332
|
+
onMouseEnter: handleMouseLeave,
|
|
330
333
|
children: "New! Marine Dealer Floorplan Finance"
|
|
331
334
|
}
|
|
332
335
|
) }),
|
|
@@ -398,6 +401,7 @@ function SubNavBar() {
|
|
|
398
401
|
href: `https://www.axosadvisor.com`,
|
|
399
402
|
id: "partNav4",
|
|
400
403
|
role: "menuitem",
|
|
404
|
+
onMouseEnter: handleMouseLeave,
|
|
401
405
|
children: "Financial Advisors"
|
|
402
406
|
}
|
|
403
407
|
) }),
|
|
@@ -436,7 +440,7 @@ function SubNavBar() {
|
|
|
436
440
|
Link,
|
|
437
441
|
{
|
|
438
442
|
href: `/partners/strategic-partnerships`,
|
|
439
|
-
id: "
|
|
443
|
+
id: "partNav6",
|
|
440
444
|
role: "menuitem",
|
|
441
445
|
children: "Strategic Partnerships"
|
|
442
446
|
}
|
|
@@ -919,6 +923,15 @@ function SubNavBar() {
|
|
|
919
923
|
),
|
|
920
924
|
children: "Make a Payment"
|
|
921
925
|
}
|
|
926
|
+
) }),
|
|
927
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
928
|
+
Link,
|
|
929
|
+
{
|
|
930
|
+
href: findMoreAxosDomains(
|
|
931
|
+
"{AXOSBANK}/personal/mortgages/rate-watch"
|
|
932
|
+
),
|
|
933
|
+
children: "Rate Watch"
|
|
934
|
+
}
|
|
922
935
|
) })
|
|
923
936
|
] })
|
|
924
937
|
] }),
|
|
@@ -1176,7 +1189,7 @@ function SubNavBar() {
|
|
|
1176
1189
|
/* @__PURE__ */ jsx(
|
|
1177
1190
|
Image,
|
|
1178
1191
|
{
|
|
1179
|
-
src: `https://images.axos.com/o9ov1v03uwqk/1plPiU22JsVdZW6B6XkBi9/
|
|
1192
|
+
src: `https://images.axos.com/o9ov1v03uwqk/1plPiU22JsVdZW6B6XkBi9/14d55691945fba0ba77a7433c6dae988/nav-submenu-mp-icon.svg`,
|
|
1180
1193
|
alt: "",
|
|
1181
1194
|
width: 20,
|
|
1182
1195
|
height: 20
|
|
@@ -1285,7 +1298,7 @@ function SubNavBar() {
|
|
|
1285
1298
|
/* @__PURE__ */ jsx(
|
|
1286
1299
|
Image,
|
|
1287
1300
|
{
|
|
1288
|
-
src: `https://images.axos.com/o9ov1v03uwqk/1enbU0rQRzTsm4mVsSNaso/
|
|
1301
|
+
src: `https://images.axos.com/o9ov1v03uwqk/1enbU0rQRzTsm4mVsSNaso/1cd6f813063d71515a09ee338250215a/nav-submenu-retirement-icon.svg`,
|
|
1289
1302
|
alt: "",
|
|
1290
1303
|
width: 20,
|
|
1291
1304
|
height: 20
|
|
@@ -1776,7 +1789,7 @@ function SubNavBar() {
|
|
|
1776
1789
|
/* @__PURE__ */ jsx(
|
|
1777
1790
|
Image,
|
|
1778
1791
|
{
|
|
1779
|
-
src: `https://images.axos.com/o9ov1v03uwqk/3Nfbmfh8GeqQ05IBe9Jrmu/
|
|
1792
|
+
src: `https://images.axos.com/o9ov1v03uwqk/3Nfbmfh8GeqQ05IBe9Jrmu/45369b473bdd3b280748ceee566542dc/nav-submenu-services-icon.svg`,
|
|
1780
1793
|
alt: "",
|
|
1781
1794
|
width: 20,
|
|
1782
1795
|
height: 20
|
|
@@ -1844,7 +1857,7 @@ function SubNavBar() {
|
|
|
1844
1857
|
/* @__PURE__ */ jsx(
|
|
1845
1858
|
Image,
|
|
1846
1859
|
{
|
|
1847
|
-
src: `https://images.axos.com/o9ov1v03uwqk/5gl7pjl2PM7tFJpCaIl4RC/
|
|
1860
|
+
src: `https://images.axos.com/o9ov1v03uwqk/5gl7pjl2PM7tFJpCaIl4RC/456ef17e517ab221895716596da8760a/nav-submenu-other-icon.svg`,
|
|
1848
1861
|
alt: "",
|
|
1849
1862
|
width: 20,
|
|
1850
1863
|
height: 20
|
|
@@ -2082,7 +2095,7 @@ function SubNavBar() {
|
|
|
2082
2095
|
/* @__PURE__ */ jsx(
|
|
2083
2096
|
Image,
|
|
2084
2097
|
{
|
|
2085
|
-
src: `https://images.axos.com/o9ov1v03uwqk/3Nfbmfh8GeqQ05IBe9Jrmu/
|
|
2098
|
+
src: `https://images.axos.com/o9ov1v03uwqk/3Nfbmfh8GeqQ05IBe9Jrmu/45369b473bdd3b280748ceee566542dc/nav-submenu-services-icon.svg`,
|
|
2086
2099
|
alt: "",
|
|
2087
2100
|
width: 20,
|
|
2088
2101
|
height: 20
|
|
@@ -2146,7 +2159,7 @@ function SubNavBar() {
|
|
|
2146
2159
|
/* @__PURE__ */ jsx(
|
|
2147
2160
|
Image,
|
|
2148
2161
|
{
|
|
2149
|
-
src: `https://images.axos.com/o9ov1v03uwqk/5gl7pjl2PM7tFJpCaIl4RC/
|
|
2162
|
+
src: `https://images.axos.com/o9ov1v03uwqk/5gl7pjl2PM7tFJpCaIl4RC/456ef17e517ab221895716596da8760a/nav-submenu-other-icon.svg`,
|
|
2150
2163
|
alt: "",
|
|
2151
2164
|
width: 20,
|
|
2152
2165
|
height: 20
|
|
@@ -2305,7 +2318,7 @@ function SubNavBar() {
|
|
|
2305
2318
|
/* @__PURE__ */ jsx(
|
|
2306
2319
|
Image,
|
|
2307
2320
|
{
|
|
2308
|
-
src: `https
|
|
2321
|
+
src: `https://images.axos.com/o9ov1v03uwqk/cHRJYycmvcbYj6ppcTQvg/ea375c834b0ced5ba646d1e88bb7828e/nav-submenu-lending-icon.svg`,
|
|
2309
2322
|
alt: "",
|
|
2310
2323
|
width: 20,
|
|
2311
2324
|
height: 20
|
|
@@ -2389,7 +2402,7 @@ function SubNavBar() {
|
|
|
2389
2402
|
/* @__PURE__ */ jsx(
|
|
2390
2403
|
Image,
|
|
2391
2404
|
{
|
|
2392
|
-
src: `https://images.axos.com/o9ov1v03uwqk/5gl7pjl2PM7tFJpCaIl4RC/
|
|
2405
|
+
src: `https://images.axos.com/o9ov1v03uwqk/5gl7pjl2PM7tFJpCaIl4RC/456ef17e517ab221895716596da8760a/nav-submenu-other-icon.svg`,
|
|
2393
2406
|
alt: "",
|
|
2394
2407
|
width: 20,
|
|
2395
2408
|
height: 20
|
|
@@ -2518,7 +2531,7 @@ function SubNavBar() {
|
|
|
2518
2531
|
/* @__PURE__ */ jsx(
|
|
2519
2532
|
Image,
|
|
2520
2533
|
{
|
|
2521
|
-
src: `https://images.axos.com/o9ov1v03uwqk/2hdeAHrWhgXNPJRcSVIDSb/
|
|
2534
|
+
src: `https://images.axos.com/o9ov1v03uwqk/2hdeAHrWhgXNPJRcSVIDSb/8f1684584f4bdbf5ca73fea6e913d11a/nav-submenu-wcpl-icon.svg`,
|
|
2522
2535
|
alt: "",
|
|
2523
2536
|
width: 20,
|
|
2524
2537
|
height: 20
|
|
@@ -2577,7 +2590,7 @@ function SubNavBar() {
|
|
|
2577
2590
|
/* @__PURE__ */ jsx(
|
|
2578
2591
|
Image,
|
|
2579
2592
|
{
|
|
2580
|
-
src: `https://images.axos.com/o9ov1v03uwqk/
|
|
2593
|
+
src: `https://images.axos.com/o9ov1v03uwqk/5gl7pjl2PM7tFJpCaIl4RC/456ef17e517ab221895716596da8760a/nav-submenu-other-icon.svg`,
|
|
2581
2594
|
alt: "",
|
|
2582
2595
|
width: 20,
|
|
2583
2596
|
height: 20
|
|
@@ -2657,7 +2670,7 @@ function SubNavBar() {
|
|
|
2657
2670
|
{
|
|
2658
2671
|
className: `${styles.headline} flex_row middle between`,
|
|
2659
2672
|
children: [
|
|
2660
|
-
/* @__PURE__ */ jsx("p", { role: "heading", children: "
|
|
2673
|
+
/* @__PURE__ */ jsx("p", { role: "heading", children: "Diverse portfolio of lending options" }),
|
|
2661
2674
|
/* @__PURE__ */ jsxs("span", { className: "flex_row middle ml_24 w_auto", children: [
|
|
2662
2675
|
/* @__PURE__ */ jsx(
|
|
2663
2676
|
Image,
|
|
@@ -2692,7 +2705,7 @@ function SubNavBar() {
|
|
|
2692
2705
|
/* @__PURE__ */ jsx(
|
|
2693
2706
|
Image,
|
|
2694
2707
|
{
|
|
2695
|
-
src: `https://images.axos.com/o9ov1v03uwqk/
|
|
2708
|
+
src: `https://images.axos.com/o9ov1v03uwqk/1REUyghtG4xnJtAsZDgRbT/89de7055038937a1392d53c3c0ad7340/nav-submenu-sbc-icon.svg`,
|
|
2696
2709
|
alt: "",
|
|
2697
2710
|
width: 20,
|
|
2698
2711
|
height: 20
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import Link from "next/link.js";
|
|
3
2
|
const NavItem = ({
|
|
4
3
|
className,
|
|
5
4
|
url,
|
|
@@ -10,7 +9,7 @@ const NavItem = ({
|
|
|
10
9
|
}) => {
|
|
11
10
|
const handleClick = () => onClick && onClick(index);
|
|
12
11
|
return /* @__PURE__ */ jsx("li", { className, children: /* @__PURE__ */ jsx(
|
|
13
|
-
|
|
12
|
+
"a",
|
|
14
13
|
{
|
|
15
14
|
href: url,
|
|
16
15
|
className: isActive ? "active" : "",
|
|
@@ -16,14 +16,15 @@ import "../icons/CheckIcon/CheckIcon.css.js";
|
|
|
16
16
|
import "../Accordion/Accordion.js";
|
|
17
17
|
import "../Accordion/Accordion.css.js";
|
|
18
18
|
import "../AlertBanner/AlertBanner.css.js";
|
|
19
|
-
|
|
19
|
+
import "../ApyCalculator/ApyCalculator.css.js";
|
|
20
|
+
import { header_section } from "../IconBillboard/IconBillboard.css.js";
|
|
20
21
|
import "../Article/Article.css.js";
|
|
21
22
|
import "../ArticlesSet/ArticlesSet.css.js";
|
|
22
23
|
/* empty css */
|
|
23
24
|
/* empty css */
|
|
24
25
|
/* empty css */
|
|
25
|
-
import { header_section } from "../IconBillboard/IconBillboard.css.js";
|
|
26
26
|
/* empty css */
|
|
27
|
+
import "../AnnualFeeCalculator/AnnualFeeCalculator.css.js";
|
|
27
28
|
import "@hookform/resolvers/zod";
|
|
28
29
|
import "../Input/Checkbox.js";
|
|
29
30
|
import "../Input/CurrencyInput.js";
|
|
@@ -38,6 +39,7 @@ import "../Forms/Forms.css.js";
|
|
|
38
39
|
import "../Forms/SalesforceFieldsForm.js";
|
|
39
40
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
40
41
|
import "../Input/RadioButton.js";
|
|
42
|
+
import "../MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
41
43
|
import "iframe-resizer";
|
|
42
44
|
import "../Calculators/calculator.css.js";
|
|
43
45
|
/* empty css */
|
|
@@ -58,12 +60,12 @@ import "../ImageBillboard/ImageBillboard.css.js";
|
|
|
58
60
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
59
61
|
import "../Chevron/Chevron.css.js";
|
|
60
62
|
/* empty css */
|
|
61
|
-
import "next/link.js";
|
|
62
63
|
/* empty css */
|
|
63
64
|
/* empty css */
|
|
64
65
|
/* empty css */
|
|
65
66
|
/* empty css */
|
|
66
67
|
import "next/image.js";
|
|
68
|
+
import "next/link.js";
|
|
67
69
|
/* empty css */
|
|
68
70
|
/* empty css */
|
|
69
71
|
/* empty css */
|
|
@@ -104,7 +106,7 @@ const SetContainer = ({
|
|
|
104
106
|
style: { ...style },
|
|
105
107
|
children: /* @__PURE__ */ jsxs("div", { className: "containment", children: [
|
|
106
108
|
(headline || bodyCopy || icon) && /* @__PURE__ */ jsxs("div", { className: heading, children: [
|
|
107
|
-
icon && /* @__PURE__ */ jsx("div", { className: "mb_16", children: ["primary", "secondary"].includes(
|
|
109
|
+
icon && /* @__PURE__ */ jsx("div", { className: "mb_16", children: ["primary", "secondary"].includes(container_variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
108
110
|
eyebrow && /* @__PURE__ */ jsx(
|
|
109
111
|
"span",
|
|
110
112
|
{
|