@axos-web-dev/shared-components 2.0.0-dev.2-nav-0 → 2.0.0-dev.3
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 +1 -2
- package/dist/Auth/ErrorAlert.js +1 -2
- package/dist/Button/Button.js +1 -2
- package/dist/Calculators/Calculator.js +1 -2
- package/dist/Calculators/MarginTradingCalculator/index.js +1 -2
- package/dist/Carousel/index.js +1 -2
- package/dist/Chevron/index.js +1 -2
- package/dist/Comparison/Comparison.js +1 -2
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -2
- package/dist/FaqAccordion/index.js +1 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -2
- package/dist/Forms/ApplyNow.js +1 -2
- package/dist/Forms/ContactUsBusiness.js +1 -2
- package/dist/Forms/ContactUsBusinessNameEmail.js +1 -2
- package/dist/Forms/ContactUsNMLSId.js +1 -2
- package/dist/Forms/CpraRequest.js +1 -2
- package/dist/Forms/CraPublicFile.js +1 -2
- package/dist/Forms/EmailOnly.js +1 -2
- package/dist/Forms/EmailUs.js +40 -34
- package/dist/Forms/Forms.css.d.ts +3 -0
- package/dist/Forms/Forms.css.js +39 -39
- package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -2
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -2
- package/dist/Forms/MortgageWarehouseLending.js +1 -2
- package/dist/Forms/SuccesForm.js +1 -2
- package/dist/Hyperlink/index.js +1 -2
- package/dist/ImageLink/ImageLink.js +1 -2
- package/dist/ImageLink/ImageLinkSet.js +1 -2
- package/dist/ImageLink/index.js +1 -2
- package/dist/Insight/Featured/CategorySelector.js +1 -2
- package/dist/Insight/Featured/Featured.js +1 -2
- package/dist/Insight/Featured/Header.js +1 -2
- package/dist/Modal/Modal.js +1 -2
- package/dist/NavigationMenu/AxosALTS/index.js +1 -2
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +1 -12
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +160 -180
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +268 -37
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +492 -63
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -42
- package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +1 -6
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +3081 -117
- package/dist/NavigationMenu/AxosBank/index.d.ts +4 -6
- package/dist/NavigationMenu/AxosBank/index.js +355 -85
- package/dist/NavigationMenu/LaVictoire/index.js +1 -2
- package/dist/NavigationMenu/Navbar.d.ts +1 -4
- package/dist/NavigationMenu/Navbar.js +8 -9
- package/dist/NavigationMenu/SignInNavButton.js +2 -3
- package/dist/SetContainer/SetContainer.js +1 -2
- package/dist/SocialMediaBar/iconsRepository.js +1 -2
- package/dist/VideoTile/VideoTile.js +1 -2
- package/dist/VideoWrapper/index.js +1 -2
- package/dist/assets/ExecutiveBio/ExecutiveBio.css +0 -2
- package/dist/assets/Forms/Forms.css +94 -91
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css +87 -125
- package/package.json +148 -148
- package/dist/NavigationMenu/AxosBank/DropwdownButton.d.ts +0 -7
- package/dist/NavigationMenu/AxosBank/DropwdownButton.js +0 -239
- package/dist/NavigationMenu/AxosBank/Menu.d.ts +0 -37
- package/dist/NavigationMenu/AxosBank/Menu.js +0 -254
- package/dist/NavigationMenu/AxosBank/MobileMenu/mobileReducer.d.ts +0 -36
- package/dist/NavigationMenu/AxosBank/MobileMenu/mobileReducer.js +0 -105
- package/dist/NavigationMenu/AxosBank/SubNavItem.d.ts +0 -1
- package/dist/NavigationMenu/AxosBank/SubNavItem.js +0 -313
- package/dist/NavigationMenu/utils.d.ts +0 -465
- package/dist/NavigationMenu/utils.js +0 -112
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
items?: Navigation;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
1
|
+
declare function NavBar({ project, withSession, }: {
|
|
2
|
+
project?: string;
|
|
3
|
+
withSession?: boolean;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
5
|
export default NavBar;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Button } from "../../Button/Button.js";
|
|
4
|
+
import "../../Button/Button.css.js";
|
|
5
|
+
import { useState, useRef, useEffect } from "react";
|
|
6
|
+
import { useClickAway } from "react-use";
|
|
3
7
|
import "../../Accordion/Accordion.js";
|
|
4
8
|
import "../../Accordion/Accordion.css.js";
|
|
5
9
|
import "../../icons/ArrowIcon/ArrowIcon.css.js";
|
|
@@ -10,23 +14,16 @@ import '../../assets/VideoWrapper/VideoWrapper.css';import '../../assets/Topical
|
|
|
10
14
|
/* empty css */
|
|
11
15
|
/* empty css */
|
|
12
16
|
/* empty css */
|
|
13
|
-
import "clsx";
|
|
14
|
-
import { useState, useRef, useEffect, useCallback } from "react";
|
|
17
|
+
import clsx from "clsx";
|
|
15
18
|
import "../../Chevron/Chevron.css.js";
|
|
16
19
|
import "../../AlertBanner/AlertBanner.css.js";
|
|
17
20
|
import "../../Article/Article.css.js";
|
|
21
|
+
import "../../ArticlesSet/ArticlesSet.css.js";
|
|
18
22
|
import "../../IconBillboard/IconBillboard.css.js";
|
|
19
23
|
import { appendQueryParams } from "../../utils/appendQueryParams.js";
|
|
20
|
-
/* empty css */
|
|
21
|
-
/* empty css */
|
|
22
|
-
import "../../Interstitial/Interstitial-variants.css.js";
|
|
23
|
-
/* empty css */
|
|
24
|
-
import { useGlobalContext } from "../../Modal/contextApi/store.js";
|
|
25
|
-
import "../../Button/Button.css.js";
|
|
26
|
-
import { useLocation, useClickAway } from "react-use";
|
|
27
|
-
import "../../ArticlesSet/ArticlesSet.css.js";
|
|
28
24
|
import "../../Calculators/calculator.css.js";
|
|
29
25
|
import "../../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
|
|
26
|
+
import { useGlobalContext } from "../../Modal/contextApi/store.js";
|
|
30
27
|
import "../../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
31
28
|
import "../../Table/Table.css.js";
|
|
32
29
|
import "../../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
|
|
@@ -49,9 +46,13 @@ import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
|
49
46
|
import "../../Forms/Forms.css.js";
|
|
50
47
|
import "../../Forms/HoneyPot/index.js";
|
|
51
48
|
import "../../Forms/SalesforceFieldsForm.js";
|
|
49
|
+
/* empty css */
|
|
50
|
+
/* empty css */
|
|
52
51
|
import "../../Input/RadioButton.css.js";
|
|
53
52
|
import "../../Input/Checkbox.css.js";
|
|
54
53
|
import "../../LoadingIndicator/LoadingIndicator.css.js";
|
|
54
|
+
/* empty css */
|
|
55
|
+
import "../../Interstitial/Interstitial-variants.css.js";
|
|
55
56
|
import "../../Inputs/Input.css.js";
|
|
56
57
|
/* empty css */
|
|
57
58
|
import "../../Hyperlink/Hyperlink.css.js";
|
|
@@ -125,34 +126,34 @@ import "../../StepItemSet/StepItemSet.css.js";
|
|
|
125
126
|
/* empty css */
|
|
126
127
|
/* empty css */
|
|
127
128
|
/* empty css */
|
|
128
|
-
import { DropwdownButton } from "./DropwdownButton.js";
|
|
129
129
|
import MobileDrawerMenu from "./MobileMenu/MobileMenu.js";
|
|
130
|
-
import { main_nav_link, highlight } from "./NavBar.css.js";
|
|
130
|
+
import { logo_variant, main_nav_link, highlight, Sign_in_btn, signin_subheader } from "./NavBar.css.js";
|
|
131
131
|
import styles from "./NavBar.module.js";
|
|
132
|
+
import { getNavItems } from "./NavData.js";
|
|
132
133
|
import SubNavBar from "./SubNavBar.js";
|
|
133
134
|
function NavBar({
|
|
134
135
|
project = "AXB",
|
|
135
|
-
|
|
136
|
+
withSession = false
|
|
136
137
|
}) {
|
|
137
138
|
const { resolveUrl } = useGlobalContext();
|
|
138
|
-
const { pathname } = useLocation();
|
|
139
139
|
const [isOpenSignIn, setisOpenSignIn] = useState(false);
|
|
140
140
|
const [activeIndex, setActiveIndex] = useState();
|
|
141
|
+
const navItems = getNavItems(resolveUrl);
|
|
142
|
+
const lastNavItem = navItems[navItems.length - 1];
|
|
141
143
|
const ref = useRef(null);
|
|
142
144
|
const toggle = () => setisOpenSignIn(!isOpenSignIn);
|
|
143
145
|
const handleClick = (index) => setActiveIndex(index);
|
|
144
146
|
const [isClient, setIsClient] = useState(false);
|
|
147
|
+
const getActiveIndex = () => {
|
|
148
|
+
const pathname = "/" + location.pathname.split("/")[1];
|
|
149
|
+
const index = navItems.findIndex(
|
|
150
|
+
(path) => path.domain === pathname
|
|
151
|
+
);
|
|
152
|
+
pathname == "/commercial" ? setActiveIndex(1) : setActiveIndex(index);
|
|
153
|
+
};
|
|
145
154
|
useEffect(() => {
|
|
146
|
-
const getActiveIndex = () => {
|
|
147
|
-
const index = items?.subNavBar?.findIndex((path) => {
|
|
148
|
-
const regex = /\{[^}]*\}/g;
|
|
149
|
-
const withoutProject = path?.url?.replace(regex, "");
|
|
150
|
-
return withoutProject === pathname;
|
|
151
|
-
});
|
|
152
|
-
pathname == "/commercial" ? setActiveIndex(1) : setActiveIndex(index);
|
|
153
|
-
};
|
|
154
155
|
getActiveIndex();
|
|
155
|
-
}, [activeIndex
|
|
156
|
+
}, [activeIndex]);
|
|
156
157
|
useClickAway(ref, (e) => {
|
|
157
158
|
if (e?.target?.tagName !== "A") {
|
|
158
159
|
setisOpenSignIn(false);
|
|
@@ -160,7 +161,7 @@ function NavBar({
|
|
|
160
161
|
});
|
|
161
162
|
useEffect(() => {
|
|
162
163
|
appendQueryParams();
|
|
163
|
-
}, []);
|
|
164
|
+
}, [lastNavItem]);
|
|
164
165
|
useEffect(() => {
|
|
165
166
|
setIsClient(true);
|
|
166
167
|
}, []);
|
|
@@ -179,48 +180,8 @@ function NavBar({
|
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
182
|
};
|
|
182
|
-
|
|
183
|
-
()
|
|
184
|
-
return !item.rightSide && !!item.displayInNavigation ? /* @__PURE__ */ jsx(
|
|
185
|
-
NavItem,
|
|
186
|
-
{
|
|
187
|
-
className: `${styles.main_nav_link} ${main_nav_link}`,
|
|
188
|
-
onClick: handleClick,
|
|
189
|
-
index: i,
|
|
190
|
-
name: item?.label,
|
|
191
|
-
url: item?.url,
|
|
192
|
-
isActive: activeIndex == i
|
|
193
|
-
},
|
|
194
|
-
item.id
|
|
195
|
-
) : null;
|
|
196
|
-
}),
|
|
197
|
-
[items, activeIndex]
|
|
198
|
-
);
|
|
199
|
-
const rightSideItems = useCallback(
|
|
200
|
-
() => items?.subNavBar?.map((item, i) => {
|
|
201
|
-
if (item.rightSide && item.dropdown)
|
|
202
|
-
return /* @__PURE__ */ jsx(DropwdownButton, { item }, item.id);
|
|
203
|
-
return item.rightSide ? /* @__PURE__ */ jsx(
|
|
204
|
-
NavItem,
|
|
205
|
-
{
|
|
206
|
-
className: `link list_unstyled ${styles.main_nav_link} ${main_nav_link} ${styles.highlight} ${highlight}`,
|
|
207
|
-
onClick: handleClick,
|
|
208
|
-
index: i,
|
|
209
|
-
name: item?.label,
|
|
210
|
-
url: resolveUrl(item?.url),
|
|
211
|
-
isActive: activeIndex == i
|
|
212
|
-
},
|
|
213
|
-
item.id
|
|
214
|
-
) : null;
|
|
215
|
-
}),
|
|
216
|
-
[items?.subNavBar, activeIndex]
|
|
217
|
-
);
|
|
218
|
-
const subNavBarItems = items?.subNavBar?.find((item) => {
|
|
219
|
-
if (pathname == "/") return item.url === "/personal";
|
|
220
|
-
return item.url === pathname;
|
|
221
|
-
});
|
|
222
|
-
if (!items) {
|
|
223
|
-
return null;
|
|
183
|
+
if (withSession) {
|
|
184
|
+
console.log("withSession");
|
|
224
185
|
}
|
|
225
186
|
return /* @__PURE__ */ jsxs("header", { id: "header", children: [
|
|
226
187
|
/* @__PURE__ */ jsx("div", { className: `${styles.header} bg_white`, children: /* @__PURE__ */ jsxs("div", { className: styles.wrapper, children: [
|
|
@@ -230,52 +191,361 @@ function NavBar({
|
|
|
230
191
|
/* @__PURE__ */ jsx("div", { className: styles.logo_wrap, children: /* @__PURE__ */ jsx(
|
|
231
192
|
"a",
|
|
232
193
|
{
|
|
233
|
-
href: project === "
|
|
194
|
+
href: project === "AXB" ? "/" : "/invest",
|
|
234
195
|
"aria-label": "return to homepage",
|
|
235
|
-
children: /* @__PURE__ */
|
|
236
|
-
"
|
|
196
|
+
children: /* @__PURE__ */ jsxs(
|
|
197
|
+
"svg",
|
|
237
198
|
{
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
199
|
+
width: "137",
|
|
200
|
+
height: "30",
|
|
201
|
+
viewBox: "0 0 137 30",
|
|
202
|
+
fill: "none",
|
|
203
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
204
|
+
children: [
|
|
205
|
+
/* @__PURE__ */ jsx(
|
|
206
|
+
"path",
|
|
207
|
+
{
|
|
208
|
+
d: "M40.9059 0.655984C40.3905 0.140561 39.594 0.140561 39.0785 0.655984L38.3288 1.40569C37.8134 1.92112 37.8134 2.71768 38.3288 3.2331L50.1836 15.1347L38.3288 27.0363C37.8134 27.5517 37.8134 28.3483 38.3288 28.8637L39.0785 29.6134C39.594 30.1289 40.3905 30.1289 40.9059 29.6134L55.3378 15.1347L40.9059 0.655984Z",
|
|
209
|
+
fill: "#FAA74A"
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ jsx(
|
|
213
|
+
"path",
|
|
214
|
+
{
|
|
215
|
+
d: "M131.058 2.71769C131.058 1.17142 132.23 0 133.776 0C135.322 0 136.494 1.17142 136.494 2.71769C136.494 4.26396 135.322 5.43538 133.776 5.43538C132.23 5.43538 131.058 4.26396 131.058 2.71769ZM136.166 2.71769C136.166 1.31199 135.182 0.327997 133.776 0.327997C132.37 0.327997 131.386 1.35884 131.386 2.71769C131.386 4.12339 132.37 5.10738 133.776 5.10738C135.135 5.15424 136.166 4.07653 136.166 2.71769ZM133.307 4.07653H132.932V1.26513C133.12 1.21827 133.354 1.21827 133.588 1.21827C134.291 1.21827 134.713 1.54627 134.713 2.15541C134.713 2.62398 134.385 2.90512 134.057 2.99883L134.994 4.12339H134.572L133.729 3.09254H133.354L133.307 4.07653ZM133.307 2.76455H133.635C134.01 2.76455 134.338 2.57712 134.338 2.15541C134.338 1.78055 134.057 1.59313 133.588 1.59313C133.495 1.59313 133.354 1.59313 133.26 1.59313L133.307 2.76455Z",
|
|
216
|
+
fill: "#1E3860",
|
|
217
|
+
className: logo_variant
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
/* @__PURE__ */ jsx(
|
|
221
|
+
"path",
|
|
222
|
+
{
|
|
223
|
+
d: "M120.281 13.4479C120.281 13.4479 118.922 13.1199 118.173 12.8387C115.783 11.9953 113.581 10.7302 113.581 8.4342C113.581 5.76337 115.877 3.93595 119.344 3.93595C121.64 3.93595 123.421 4.59195 124.686 5.85708L125.107 6.27879C125.623 6.79421 126.419 6.79421 126.935 6.27879L127.685 5.52908C128.2 5.01366 128.2 4.21709 127.685 3.70167C127.497 3.46739 127.263 3.27996 127.263 3.27996C125.248 1.35883 122.483 0.327987 119.344 0.327987C116.486 0.327987 114.19 1.07769 112.269 2.67082C110.441 4.21709 109.551 6.13822 109.551 8.48105C109.551 14.1976 114.893 15.6033 119.578 16.8684L119.719 16.9153C123.842 17.8993 125.904 19.5392 125.904 21.7884C125.904 24.6466 123.514 26.3335 119.578 26.3335C117.095 26.3335 114.893 25.49 113.393 23.9906L112.972 23.5689C112.456 23.0535 111.66 23.0535 111.144 23.5689L110.254 24.4592C109.738 24.9746 109.738 25.7712 110.254 26.2866L110.676 26.7083C112.831 28.8169 115.924 29.9883 119.578 29.9883C122.624 29.9883 125.107 29.2386 127.075 27.6923C128.997 26.2397 129.934 24.2249 129.934 21.7415C130.027 16.4467 125.435 14.6193 120.281 13.4479Z",
|
|
224
|
+
fill: "#1E3860",
|
|
225
|
+
className: logo_variant
|
|
226
|
+
}
|
|
227
|
+
),
|
|
228
|
+
/* @__PURE__ */ jsx(
|
|
229
|
+
"path",
|
|
230
|
+
{
|
|
231
|
+
d: "M86.9661 0.281143C78.7661 0.281143 72.1593 6.9348 72.1593 15.1347C72.1593 23.3347 78.7661 29.9883 86.9661 29.9883C95.166 29.9883 101.773 23.3347 101.773 15.1347C101.773 6.9348 95.1191 0.281143 86.9661 0.281143ZM86.9661 3.93597C93.1511 3.93597 98.1648 8.94964 98.1648 15.1347C98.1648 21.3198 93.1511 26.3335 86.9661 26.3335C80.781 26.3335 75.7673 21.3198 75.7673 15.1347C75.7673 8.94964 80.781 3.93597 86.9661 3.93597Z",
|
|
232
|
+
fill: "#1E3860",
|
|
233
|
+
className: logo_variant
|
|
234
|
+
}
|
|
235
|
+
),
|
|
236
|
+
/* @__PURE__ */ jsx(
|
|
237
|
+
"path",
|
|
238
|
+
{
|
|
239
|
+
d: "M67.1924 28.8637L66.4427 29.6134C65.9273 30.1289 65.1308 30.1289 64.6153 29.6134L54.5412 19.5392L57.1183 16.9621L67.1924 27.0363C67.7079 27.5049 67.7079 28.3483 67.1924 28.8637Z",
|
|
240
|
+
fill: "#1E3860",
|
|
241
|
+
className: logo_variant
|
|
242
|
+
}
|
|
243
|
+
),
|
|
244
|
+
/* @__PURE__ */ jsx(
|
|
245
|
+
"path",
|
|
246
|
+
{
|
|
247
|
+
d: "M67.1924 1.40569L66.4427 0.655984C65.9273 0.140561 65.1308 0.140561 64.6153 0.655984L54.5412 10.7302L57.1183 13.3073L67.1924 3.2331C67.7079 2.76454 67.7079 1.92112 67.1924 1.40569Z",
|
|
248
|
+
fill: "#1E3860",
|
|
249
|
+
className: logo_variant
|
|
250
|
+
}
|
|
251
|
+
),
|
|
252
|
+
/* @__PURE__ */ jsx(
|
|
253
|
+
"path",
|
|
254
|
+
{
|
|
255
|
+
d: "M26.0055 15.1816C25.9586 21.3198 20.9449 26.3335 14.8067 26.3335C8.62164 26.3335 3.60797 21.3198 3.60797 15.1347C3.60797 8.94964 8.66849 3.93597 14.8067 3.93597C20.9449 3.93597 25.9586 8.90278 26.0055 15.0879V15.1816ZM28.3483 0.281143H27.2706C26.5678 0.281143 25.9586 0.843424 25.9586 1.59313V5.38853C23.2878 2.24913 19.305 0.281143 14.8067 0.281143C6.6068 0.281143 0 6.9348 0 15.1347C0 23.3347 6.65365 29.9883 14.8067 29.9883C19.2581 29.9883 23.2878 28.0203 26.0055 24.8809V28.6763C26.0055 29.3792 26.5678 29.9883 27.3175 29.9883H28.3952C29.098 29.9883 29.7072 29.426 29.7072 28.6763V1.59313C29.6603 0.890281 29.098 0.281143 28.3483 0.281143Z",
|
|
256
|
+
fill: "#1E3860",
|
|
257
|
+
className: logo_variant
|
|
258
|
+
}
|
|
259
|
+
)
|
|
260
|
+
]
|
|
241
261
|
}
|
|
242
262
|
)
|
|
243
263
|
}
|
|
244
264
|
) }),
|
|
245
|
-
/* @__PURE__ */ jsx("nav", { className: styles.primary_links, children: /* @__PURE__ */ jsx("ul", { className: "list_unstyled flex_row middle", role: "menubar", children:
|
|
265
|
+
/* @__PURE__ */ jsx("nav", { className: styles.primary_links, children: /* @__PURE__ */ jsx("ul", { className: "list_unstyled flex_row middle", role: "menubar", children: navItems.map(
|
|
266
|
+
(item, i, arr) => arr.length - 1 !== i && /* @__PURE__ */ jsx(
|
|
267
|
+
NavItem,
|
|
268
|
+
{
|
|
269
|
+
className: `${styles.main_nav_link} ${main_nav_link}`,
|
|
270
|
+
onClick: handleClick,
|
|
271
|
+
index: i,
|
|
272
|
+
name: item.name,
|
|
273
|
+
url: item.url,
|
|
274
|
+
isActive: activeIndex == i
|
|
275
|
+
},
|
|
276
|
+
i
|
|
277
|
+
)
|
|
278
|
+
) }) })
|
|
246
279
|
] }) }),
|
|
247
280
|
/* @__PURE__ */ jsxs("div", { className: `${styles.mobile_only} ${styles.mobile_logo}`, children: [
|
|
248
281
|
/* @__PURE__ */ jsx(
|
|
249
282
|
"a",
|
|
250
283
|
{
|
|
251
|
-
href: project === "
|
|
284
|
+
href: project === "AXB" ? "/" : "/invest",
|
|
252
285
|
"aria-label": "return to homepage",
|
|
253
|
-
children: /* @__PURE__ */
|
|
254
|
-
"
|
|
286
|
+
children: /* @__PURE__ */ jsxs(
|
|
287
|
+
"svg",
|
|
255
288
|
{
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
289
|
+
width: "137",
|
|
290
|
+
height: "30",
|
|
291
|
+
viewBox: "0 0 137 30",
|
|
292
|
+
fill: "none",
|
|
293
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
294
|
+
children: [
|
|
295
|
+
/* @__PURE__ */ jsx(
|
|
296
|
+
"path",
|
|
297
|
+
{
|
|
298
|
+
d: "M40.9059 0.655984C40.3905 0.140561 39.594 0.140561 39.0785 0.655984L38.3288 1.40569C37.8134 1.92112 37.8134 2.71768 38.3288 3.2331L50.1836 15.1347L38.3288 27.0363C37.8134 27.5517 37.8134 28.3483 38.3288 28.8637L39.0785 29.6134C39.594 30.1289 40.3905 30.1289 40.9059 29.6134L55.3378 15.1347L40.9059 0.655984Z",
|
|
299
|
+
fill: "#FAA74A"
|
|
300
|
+
}
|
|
301
|
+
),
|
|
302
|
+
/* @__PURE__ */ jsx(
|
|
303
|
+
"path",
|
|
304
|
+
{
|
|
305
|
+
d: "M131.058 2.71769C131.058 1.17142 132.23 0 133.776 0C135.322 0 136.494 1.17142 136.494 2.71769C136.494 4.26396 135.322 5.43538 133.776 5.43538C132.23 5.43538 131.058 4.26396 131.058 2.71769ZM136.166 2.71769C136.166 1.31199 135.182 0.327997 133.776 0.327997C132.37 0.327997 131.386 1.35884 131.386 2.71769C131.386 4.12339 132.37 5.10738 133.776 5.10738C135.135 5.15424 136.166 4.07653 136.166 2.71769ZM133.307 4.07653H132.932V1.26513C133.12 1.21827 133.354 1.21827 133.588 1.21827C134.291 1.21827 134.713 1.54627 134.713 2.15541C134.713 2.62398 134.385 2.90512 134.057 2.99883L134.994 4.12339H134.572L133.729 3.09254H133.354L133.307 4.07653ZM133.307 2.76455H133.635C134.01 2.76455 134.338 2.57712 134.338 2.15541C134.338 1.78055 134.057 1.59313 133.588 1.59313C133.495 1.59313 133.354 1.59313 133.26 1.59313L133.307 2.76455Z",
|
|
306
|
+
fill: "#1E3860",
|
|
307
|
+
className: logo_variant
|
|
308
|
+
}
|
|
309
|
+
),
|
|
310
|
+
/* @__PURE__ */ jsx(
|
|
311
|
+
"path",
|
|
312
|
+
{
|
|
313
|
+
d: "M120.281 13.4479C120.281 13.4479 118.922 13.1199 118.173 12.8387C115.783 11.9953 113.581 10.7302 113.581 8.4342C113.581 5.76337 115.877 3.93595 119.344 3.93595C121.64 3.93595 123.421 4.59195 124.686 5.85708L125.107 6.27879C125.623 6.79421 126.419 6.79421 126.935 6.27879L127.685 5.52908C128.2 5.01366 128.2 4.21709 127.685 3.70167C127.497 3.46739 127.263 3.27996 127.263 3.27996C125.248 1.35883 122.483 0.327987 119.344 0.327987C116.486 0.327987 114.19 1.07769 112.269 2.67082C110.441 4.21709 109.551 6.13822 109.551 8.48105C109.551 14.1976 114.893 15.6033 119.578 16.8684L119.719 16.9153C123.842 17.8993 125.904 19.5392 125.904 21.7884C125.904 24.6466 123.514 26.3335 119.578 26.3335C117.095 26.3335 114.893 25.49 113.393 23.9906L112.972 23.5689C112.456 23.0535 111.66 23.0535 111.144 23.5689L110.254 24.4592C109.738 24.9746 109.738 25.7712 110.254 26.2866L110.676 26.7083C112.831 28.8169 115.924 29.9883 119.578 29.9883C122.624 29.9883 125.107 29.2386 127.075 27.6923C128.997 26.2397 129.934 24.2249 129.934 21.7415C130.027 16.4467 125.435 14.6193 120.281 13.4479Z",
|
|
314
|
+
fill: "#1E3860",
|
|
315
|
+
className: logo_variant
|
|
316
|
+
}
|
|
317
|
+
),
|
|
318
|
+
/* @__PURE__ */ jsx(
|
|
319
|
+
"path",
|
|
320
|
+
{
|
|
321
|
+
d: "M86.9661 0.281143C78.7661 0.281143 72.1593 6.9348 72.1593 15.1347C72.1593 23.3347 78.7661 29.9883 86.9661 29.9883C95.166 29.9883 101.773 23.3347 101.773 15.1347C101.773 6.9348 95.1191 0.281143 86.9661 0.281143ZM86.9661 3.93597C93.1511 3.93597 98.1648 8.94964 98.1648 15.1347C98.1648 21.3198 93.1511 26.3335 86.9661 26.3335C80.781 26.3335 75.7673 21.3198 75.7673 15.1347C75.7673 8.94964 80.781 3.93597 86.9661 3.93597Z",
|
|
322
|
+
fill: "#1E3860",
|
|
323
|
+
className: logo_variant
|
|
324
|
+
}
|
|
325
|
+
),
|
|
326
|
+
/* @__PURE__ */ jsx(
|
|
327
|
+
"path",
|
|
328
|
+
{
|
|
329
|
+
d: "M67.1924 28.8637L66.4427 29.6134C65.9273 30.1289 65.1308 30.1289 64.6153 29.6134L54.5412 19.5392L57.1183 16.9621L67.1924 27.0363C67.7079 27.5049 67.7079 28.3483 67.1924 28.8637Z",
|
|
330
|
+
fill: "#1E3860",
|
|
331
|
+
className: logo_variant
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
/* @__PURE__ */ jsx(
|
|
335
|
+
"path",
|
|
336
|
+
{
|
|
337
|
+
d: "M67.1924 1.40569L66.4427 0.655984C65.9273 0.140561 65.1308 0.140561 64.6153 0.655984L54.5412 10.7302L57.1183 13.3073L67.1924 3.2331C67.7079 2.76454 67.7079 1.92112 67.1924 1.40569Z",
|
|
338
|
+
fill: "#1E3860",
|
|
339
|
+
className: logo_variant
|
|
340
|
+
}
|
|
341
|
+
),
|
|
342
|
+
/* @__PURE__ */ jsx(
|
|
343
|
+
"path",
|
|
344
|
+
{
|
|
345
|
+
d: "M26.0055 15.1816C25.9586 21.3198 20.9449 26.3335 14.8067 26.3335C8.62164 26.3335 3.60797 21.3198 3.60797 15.1347C3.60797 8.94964 8.66849 3.93597 14.8067 3.93597C20.9449 3.93597 25.9586 8.90278 26.0055 15.0879V15.1816ZM28.3483 0.281143H27.2706C26.5678 0.281143 25.9586 0.843424 25.9586 1.59313V5.38853C23.2878 2.24913 19.305 0.281143 14.8067 0.281143C6.6068 0.281143 0 6.9348 0 15.1347C0 23.3347 6.65365 29.9883 14.8067 29.9883C19.2581 29.9883 23.2878 28.0203 26.0055 24.8809V28.6763C26.0055 29.3792 26.5678 29.9883 27.3175 29.9883H28.3952C29.098 29.9883 29.7072 29.426 29.7072 28.6763V1.59313C29.6603 0.890281 29.098 0.281143 28.3483 0.281143Z",
|
|
346
|
+
fill: "#1E3860",
|
|
347
|
+
className: logo_variant
|
|
348
|
+
}
|
|
349
|
+
)
|
|
350
|
+
]
|
|
260
351
|
}
|
|
261
352
|
)
|
|
262
353
|
}
|
|
263
354
|
),
|
|
264
|
-
/* @__PURE__ */ jsx(MobileDrawerMenu, {
|
|
355
|
+
/* @__PURE__ */ jsx(MobileDrawerMenu, {})
|
|
265
356
|
] }),
|
|
266
|
-
/* @__PURE__ */ jsx("div", { className: styles.signin_wrap, children: /* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ jsx("div", { className: styles.signin_wrap, children: /* @__PURE__ */ jsxs(
|
|
267
358
|
"div",
|
|
268
359
|
{
|
|
269
360
|
className: `${styles.desktop_only} flex_row middle relative`,
|
|
270
361
|
ref,
|
|
271
362
|
onKeyDown: handleKeyDownContainer,
|
|
272
363
|
role: "menubar",
|
|
273
|
-
children:
|
|
364
|
+
children: [
|
|
365
|
+
lastNavItem && /* @__PURE__ */ jsx(
|
|
366
|
+
NavItem,
|
|
367
|
+
{
|
|
368
|
+
url: lastNavItem.url,
|
|
369
|
+
name: lastNavItem.name,
|
|
370
|
+
className: `link list_unstyled ${styles.main_nav_link} ${main_nav_link} ${styles.highlight} ${highlight}`,
|
|
371
|
+
isActive: activeIndex == navItems.length,
|
|
372
|
+
onClick: handleClick,
|
|
373
|
+
index: navItems.length
|
|
374
|
+
},
|
|
375
|
+
navItems.length + 1
|
|
376
|
+
),
|
|
377
|
+
/* @__PURE__ */ jsxs(
|
|
378
|
+
Button,
|
|
379
|
+
{
|
|
380
|
+
className: clsx(
|
|
381
|
+
styles.signin_btn,
|
|
382
|
+
"flex_row",
|
|
383
|
+
"center",
|
|
384
|
+
"middle",
|
|
385
|
+
isOpenSignIn ? styles.open : "",
|
|
386
|
+
Sign_in_btn
|
|
387
|
+
),
|
|
388
|
+
as: "button",
|
|
389
|
+
type: "button",
|
|
390
|
+
color: "primary",
|
|
391
|
+
id: "signIn",
|
|
392
|
+
action: toggle,
|
|
393
|
+
size: "small",
|
|
394
|
+
"aria-controls": "signin-drop-menu",
|
|
395
|
+
role: "menuitem",
|
|
396
|
+
children: [
|
|
397
|
+
/* @__PURE__ */ jsx("span", { children: "Log in" }),
|
|
398
|
+
/* @__PURE__ */ jsx(
|
|
399
|
+
"svg",
|
|
400
|
+
{
|
|
401
|
+
width: "20",
|
|
402
|
+
height: "12",
|
|
403
|
+
viewBox: "0 0 20 12",
|
|
404
|
+
fill: "none",
|
|
405
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
406
|
+
children: /* @__PURE__ */ jsx(
|
|
407
|
+
"path",
|
|
408
|
+
{
|
|
409
|
+
d: "M0.46875 1.76574L9.99908 11.2961L19.5294 1.76574L18.4687 0.705078L9.99908 9.17491L1.52941 0.705078L0.46875 1.76574Z",
|
|
410
|
+
fill: "white"
|
|
411
|
+
}
|
|
412
|
+
)
|
|
413
|
+
}
|
|
414
|
+
)
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
),
|
|
418
|
+
/* @__PURE__ */ jsx(
|
|
419
|
+
"div",
|
|
420
|
+
{
|
|
421
|
+
className: `${styles.signin_dropdown} ${styles.shadow} rounded bg_white`,
|
|
422
|
+
children: /* @__PURE__ */ jsx("div", { className: styles.opacity, children: /* @__PURE__ */ jsxs(
|
|
423
|
+
"ul",
|
|
424
|
+
{
|
|
425
|
+
className: "list_unstyled",
|
|
426
|
+
"aria-expanded": isOpenSignIn,
|
|
427
|
+
id: "signin-drop-menu",
|
|
428
|
+
children: [
|
|
429
|
+
/* @__PURE__ */ jsxs("li", { role: "heading", children: [
|
|
430
|
+
/* @__PURE__ */ jsx(
|
|
431
|
+
"a",
|
|
432
|
+
{
|
|
433
|
+
className: styles.signin_header,
|
|
434
|
+
href: resolveUrl("{AXOSBANK}/personal"),
|
|
435
|
+
children: "Personal"
|
|
436
|
+
}
|
|
437
|
+
),
|
|
438
|
+
/* @__PURE__ */ jsxs("ul", { className: "list_unstyled", children: [
|
|
439
|
+
/* @__PURE__ */ jsx(
|
|
440
|
+
"li",
|
|
441
|
+
{
|
|
442
|
+
className: `${styles.signin_subheader} ${signin_subheader}`,
|
|
443
|
+
children: /* @__PURE__ */ jsx("a", { href: resolveUrl("{ONLINEBANKING}/auth/Login"), children: "Account Login" })
|
|
444
|
+
}
|
|
445
|
+
),
|
|
446
|
+
/* @__PURE__ */ jsx(
|
|
447
|
+
"li",
|
|
448
|
+
{
|
|
449
|
+
className: `${styles.signin_subheader} ${signin_subheader}`,
|
|
450
|
+
children: /* @__PURE__ */ jsx("a", { href: `https://loanpayment.axosbank.com`, children: "Make a Payment" })
|
|
451
|
+
}
|
|
452
|
+
)
|
|
453
|
+
] })
|
|
454
|
+
] }),
|
|
455
|
+
/* @__PURE__ */ jsxs("li", { role: "heading", children: [
|
|
456
|
+
/* @__PURE__ */ jsx(
|
|
457
|
+
"a",
|
|
458
|
+
{
|
|
459
|
+
className: styles.signin_header,
|
|
460
|
+
href: resolveUrl("{AXOSBANK}/business"),
|
|
461
|
+
children: "Business"
|
|
462
|
+
}
|
|
463
|
+
),
|
|
464
|
+
/* @__PURE__ */ jsxs("ul", { className: "list_unstyled", children: [
|
|
465
|
+
/* @__PURE__ */ jsx(
|
|
466
|
+
"li",
|
|
467
|
+
{
|
|
468
|
+
className: `${styles.signin_subheader} ${signin_subheader}`,
|
|
469
|
+
children: /* @__PURE__ */ jsx("a", { href: resolveUrl("{ONLINEBANKING}/auth/Login"), children: "Business Banking Login" })
|
|
470
|
+
}
|
|
471
|
+
),
|
|
472
|
+
/* @__PURE__ */ jsx(
|
|
473
|
+
"li",
|
|
474
|
+
{
|
|
475
|
+
className: `${styles.signin_subheader} ${signin_subheader}`,
|
|
476
|
+
children: /* @__PURE__ */ jsx("a", { href: resolveUrl("{ONLINEBANKING}/auth/Login"), children: "MWA Business Banking" })
|
|
477
|
+
}
|
|
478
|
+
),
|
|
479
|
+
/* @__PURE__ */ jsx(
|
|
480
|
+
"li",
|
|
481
|
+
{
|
|
482
|
+
className: `${styles.signin_subheader} ${signin_subheader}`,
|
|
483
|
+
children: /* @__PURE__ */ jsx(
|
|
484
|
+
"a",
|
|
485
|
+
{
|
|
486
|
+
href: resolveUrl(
|
|
487
|
+
"{AXOSBANK}/commercial/lending/commercial-portal"
|
|
488
|
+
),
|
|
489
|
+
children: "Commercial Portal"
|
|
490
|
+
}
|
|
491
|
+
)
|
|
492
|
+
}
|
|
493
|
+
)
|
|
494
|
+
] })
|
|
495
|
+
] }),
|
|
496
|
+
/* @__PURE__ */ jsxs("li", { role: "heading", children: [
|
|
497
|
+
/* @__PURE__ */ jsx(
|
|
498
|
+
"a",
|
|
499
|
+
{
|
|
500
|
+
href: resolveUrl("{AXOSBANK}/partners"),
|
|
501
|
+
className: `${styles.signin_header}`,
|
|
502
|
+
children: "Partners"
|
|
503
|
+
}
|
|
504
|
+
),
|
|
505
|
+
/* @__PURE__ */ jsxs("ul", { className: "list_unstyled", children: [
|
|
506
|
+
/* @__PURE__ */ jsx(
|
|
507
|
+
"li",
|
|
508
|
+
{
|
|
509
|
+
className: `${styles.signin_subheader} ${signin_subheader}`,
|
|
510
|
+
children: /* @__PURE__ */ jsx("a", { href: "https://thirdpartylending.axosbank.com/index", children: "Wholesale and Correspondent" })
|
|
511
|
+
}
|
|
512
|
+
),
|
|
513
|
+
/* @__PURE__ */ jsx(
|
|
514
|
+
"li",
|
|
515
|
+
{
|
|
516
|
+
className: `${styles.signin_subheader} ${signin_subheader}`,
|
|
517
|
+
children: /* @__PURE__ */ jsx("a", { href: resolveUrl("{ARMS}"), children: "Advisor Login" })
|
|
518
|
+
}
|
|
519
|
+
)
|
|
520
|
+
] })
|
|
521
|
+
] }),
|
|
522
|
+
/* @__PURE__ */ jsxs(
|
|
523
|
+
"li",
|
|
524
|
+
{
|
|
525
|
+
className: `${styles.signin_subheader} ${signin_subheader} ${styles.signin_footer} relative`,
|
|
526
|
+
children: [
|
|
527
|
+
/* @__PURE__ */ jsx("a", { href: resolveUrl("{AXOSBANK}/customer-support"), children: "Customer Support" }),
|
|
528
|
+
/* @__PURE__ */ jsx(
|
|
529
|
+
"a",
|
|
530
|
+
{
|
|
531
|
+
href: resolveUrl("{AXOSBANK}/return-to-application"),
|
|
532
|
+
children: "Return to Application"
|
|
533
|
+
}
|
|
534
|
+
)
|
|
535
|
+
]
|
|
536
|
+
}
|
|
537
|
+
)
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
) })
|
|
541
|
+
}
|
|
542
|
+
)
|
|
543
|
+
]
|
|
274
544
|
}
|
|
275
545
|
) })
|
|
276
546
|
] })
|
|
277
547
|
] }) }),
|
|
278
|
-
|
|
548
|
+
/* @__PURE__ */ jsx(SubNavBar, {})
|
|
279
549
|
] });
|
|
280
550
|
}
|
|
281
551
|
export {
|
|
@@ -109,9 +109,8 @@ import "next/navigation.js";
|
|
|
109
109
|
/* empty css */
|
|
110
110
|
/* empty css */
|
|
111
111
|
/* empty css */
|
|
112
|
-
/* empty css */
|
|
113
112
|
import "next/link.js";
|
|
114
|
-
|
|
113
|
+
/* empty css */
|
|
115
114
|
/* empty css */
|
|
116
115
|
/* empty css */
|
|
117
116
|
/* empty css */
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare function NavBar({ project, withSession, items, }: {
|
|
1
|
+
declare function NavBar({ project, withSession, }: {
|
|
4
2
|
project?: string;
|
|
5
3
|
withSession?: boolean;
|
|
6
|
-
items?: Navigation | null;
|
|
7
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
5
|
export default NavBar;
|