@axos-web-dev/shared-components 2.0.0-dev.2 → 2.0.0-dev.2-nav-0

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.
Files changed (88) hide show
  1. package/dist/ATMLocator/ATMLocator.js +2 -1
  2. package/dist/Accordion/Accordion.js +3 -3
  3. package/dist/AlertBanner/index.js +1 -1
  4. package/dist/Article/Article.js +1 -1
  5. package/dist/Auth/ErrorAlert.js +2 -1
  6. package/dist/Button/Button.js +2 -1
  7. package/dist/Calculators/AnnualFeeCalculator/index.js +1 -1
  8. package/dist/Calculators/ApyCalculator/index.js +1 -1
  9. package/dist/Calculators/BuyDownCalculator/index.js +1 -1
  10. package/dist/Calculators/Calculator.js +2 -1
  11. package/dist/Calculators/MarginTradingCalculator/index.js +3 -2
  12. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +1 -1
  13. package/dist/Calculators/MaxLoanCalculator/index.js +1 -1
  14. package/dist/Calculators/MonthlyPaymentCalculator/index.js +1 -1
  15. package/dist/Calculators/MonthlyPaymentLVFCalculator/index.js +1 -1
  16. package/dist/Carousel/index.js +3 -2
  17. package/dist/Chevron/index.js +2 -1
  18. package/dist/Comparison/Comparison.js +2 -1
  19. package/dist/ContentBanner/index.js +1 -1
  20. package/dist/ExecutiveBio/ExecutiveBio.js +3 -2
  21. package/dist/ExecutiveBio/ExecutiveBioSet.js +1 -1
  22. package/dist/FaqAccordion/index.js +3 -2
  23. package/dist/FooterDisclosure/FooterDisclosure.js +1 -1
  24. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -1
  25. package/dist/Forms/ApplyNow.js +2 -1
  26. package/dist/Forms/ContactUsBusiness.js +2 -1
  27. package/dist/Forms/ContactUsBusinessNameEmail.js +2 -1
  28. package/dist/Forms/ContactUsNMLSId.js +2 -1
  29. package/dist/Forms/CpraRequest.js +2 -1
  30. package/dist/Forms/CraPublicFile.js +2 -1
  31. package/dist/Forms/EmailOnly.js +2 -1
  32. package/dist/Forms/MortgageRate/MortgageRateForm.js +3 -2
  33. package/dist/Forms/MortgageRate/MortgageRateWatch.js +2 -1
  34. package/dist/Forms/MortgageWarehouseLending.js +2 -1
  35. package/dist/Forms/SuccesForm.js +2 -1
  36. package/dist/HeroBanner/HeroBanner.js +2 -2
  37. package/dist/Hyperlink/index.js +2 -1
  38. package/dist/IconBillboard/IconBillboardSet.js +1 -1
  39. package/dist/ImageBillboard/ImageBillboard.js +1 -1
  40. package/dist/ImageLink/ImageLink.js +2 -1
  41. package/dist/ImageLink/ImageLinkSet.js +2 -1
  42. package/dist/ImageLink/index.js +2 -1
  43. package/dist/Input/Checkbox.js +2 -2
  44. package/dist/Input/DownPaymentInput.js +1 -1
  45. package/dist/Input/Dropdown.js +1 -1
  46. package/dist/Input/Input.js +1 -1
  47. package/dist/Input/InputTextArea.js +1 -1
  48. package/dist/Insight/Featured/CategorySelector.js +2 -1
  49. package/dist/Insight/Featured/Featured.js +4 -3
  50. package/dist/Insight/Featured/Header.js +2 -1
  51. package/dist/LandingPageHeader/LandingPageHeader.js +1 -1
  52. package/dist/Modal/Modal.js +2 -1
  53. package/dist/Modal/contextApi/store.js +1 -1
  54. package/dist/NavigationMenu/AxosALTS/index.js +2 -1
  55. package/dist/NavigationMenu/AxosBank/DropwdownButton.d.ts +7 -0
  56. package/dist/NavigationMenu/AxosBank/DropwdownButton.js +239 -0
  57. package/dist/NavigationMenu/AxosBank/Menu.d.ts +37 -0
  58. package/dist/NavigationMenu/AxosBank/Menu.js +254 -0
  59. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +12 -1
  60. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +180 -160
  61. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +37 -268
  62. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +63 -494
  63. package/dist/NavigationMenu/AxosBank/MobileMenu/mobileReducer.d.ts +36 -0
  64. package/dist/NavigationMenu/AxosBank/MobileMenu/mobileReducer.js +105 -0
  65. package/dist/NavigationMenu/AxosBank/NavBar.module.js +42 -39
  66. package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +6 -1
  67. package/dist/NavigationMenu/AxosBank/SubNavBar.js +117 -3081
  68. package/dist/NavigationMenu/AxosBank/SubNavItem.d.ts +1 -0
  69. package/dist/NavigationMenu/AxosBank/SubNavItem.js +313 -0
  70. package/dist/NavigationMenu/AxosBank/index.d.ts +6 -4
  71. package/dist/NavigationMenu/AxosBank/index.js +85 -363
  72. package/dist/NavigationMenu/LaVictoire/index.js +2 -1
  73. package/dist/NavigationMenu/Navbar.d.ts +4 -1
  74. package/dist/NavigationMenu/Navbar.js +9 -8
  75. package/dist/NavigationMenu/SignInNavButton.js +3 -2
  76. package/dist/NavigationMenu/utils.d.ts +465 -0
  77. package/dist/NavigationMenu/utils.js +112 -0
  78. package/dist/PageNavItem/PageNavItem.js +1 -1
  79. package/dist/SetContainer/SetContainer.js +3 -2
  80. package/dist/SocialMediaBar/iconsRepository.js +2 -1
  81. package/dist/StepItem/StepItem.js +1 -1
  82. package/dist/StepItemSet/StepItemSet.js +1 -1
  83. package/dist/Table/Table.js +1 -1
  84. package/dist/Topic/Topic.js +1 -1
  85. package/dist/VideoTile/VideoTile.js +2 -1
  86. package/dist/VideoWrapper/index.js +2 -1
  87. package/dist/assets/NavigationMenu/AxosBank/NavBar.css +125 -87
  88. package/package.json +1 -1
@@ -1,9 +1,5 @@
1
1
  "use client";
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";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
7
3
  import "../../Accordion/Accordion.js";
8
4
  import "../../Accordion/Accordion.css.js";
9
5
  import "../../icons/ArrowIcon/ArrowIcon.css.js";
@@ -14,16 +10,23 @@ import '../../assets/VideoWrapper/VideoWrapper.css';import '../../assets/Topical
14
10
  /* empty css */
15
11
  /* empty css */
16
12
  /* empty css */
17
- import clsx from "clsx";
13
+ import "clsx";
14
+ import { useState, useRef, useEffect, useCallback } from "react";
18
15
  import "../../Chevron/Chevron.css.js";
19
16
  import "../../AlertBanner/AlertBanner.css.js";
20
17
  import "../../Article/Article.css.js";
21
- import "../../ArticlesSet/ArticlesSet.css.js";
22
18
  import "../../IconBillboard/IconBillboard.css.js";
23
19
  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";
24
28
  import "../../Calculators/calculator.css.js";
25
29
  import "../../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
26
- import { useGlobalContext } from "../../Modal/contextApi/store.js";
27
30
  import "../../Calculators/ApyCalculator/ApyCalculator.css.js";
28
31
  import "../../Table/Table.css.js";
29
32
  import "../../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
@@ -46,13 +49,9 @@ import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
46
49
  import "../../Forms/Forms.css.js";
47
50
  import "../../Forms/HoneyPot/index.js";
48
51
  import "../../Forms/SalesforceFieldsForm.js";
49
- /* empty css */
50
- /* empty css */
51
52
  import "../../Input/RadioButton.css.js";
52
53
  import "../../Input/Checkbox.css.js";
53
54
  import "../../LoadingIndicator/LoadingIndicator.css.js";
54
- /* empty css */
55
- import "../../Interstitial/Interstitial-variants.css.js";
56
55
  import "../../Inputs/Input.css.js";
57
56
  /* empty css */
58
57
  import "../../Hyperlink/Hyperlink.css.js";
@@ -126,34 +125,34 @@ import "../../StepItemSet/StepItemSet.css.js";
126
125
  /* empty css */
127
126
  /* empty css */
128
127
  /* empty css */
128
+ import { DropwdownButton } from "./DropwdownButton.js";
129
129
  import MobileDrawerMenu from "./MobileMenu/MobileMenu.js";
130
- import { logo_variant, main_nav_link, highlight, Sign_in_btn, signin_subheader } from "./NavBar.css.js";
130
+ import { main_nav_link, highlight } from "./NavBar.css.js";
131
131
  import styles from "./NavBar.module.js";
132
- import { getNavItems } from "./NavData.js";
133
132
  import SubNavBar from "./SubNavBar.js";
134
133
  function NavBar({
135
134
  project = "AXB",
136
- withSession = false
135
+ items
137
136
  }) {
138
137
  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];
143
141
  const ref = useRef(null);
144
142
  const toggle = () => setisOpenSignIn(!isOpenSignIn);
145
143
  const handleClick = (index) => setActiveIndex(index);
146
144
  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
- };
154
145
  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
+ };
155
154
  getActiveIndex();
156
- }, [activeIndex]);
155
+ }, [activeIndex, items?.subNavBar, pathname]);
157
156
  useClickAway(ref, (e) => {
158
157
  if (e?.target?.tagName !== "A") {
159
158
  setisOpenSignIn(false);
@@ -161,7 +160,7 @@ function NavBar({
161
160
  });
162
161
  useEffect(() => {
163
162
  appendQueryParams();
164
- }, [lastNavItem]);
163
+ }, []);
165
164
  useEffect(() => {
166
165
  setIsClient(true);
167
166
  }, []);
@@ -180,8 +179,48 @@ function NavBar({
180
179
  }
181
180
  }
182
181
  };
183
- if (withSession) {
184
- console.log("withSession");
182
+ const mainItems = useCallback(
183
+ () => items?.subNavBar?.map((item, i) => {
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;
185
224
  }
186
225
  return /* @__PURE__ */ jsxs("header", { id: "header", children: [
187
226
  /* @__PURE__ */ jsx("div", { className: `${styles.header} bg_white`, children: /* @__PURE__ */ jsxs("div", { className: styles.wrapper, children: [
@@ -191,369 +230,52 @@ function NavBar({
191
230
  /* @__PURE__ */ jsx("div", { className: styles.logo_wrap, children: /* @__PURE__ */ jsx(
192
231
  "a",
193
232
  {
194
- href: project === "AXB" ? "/" : "/invest",
233
+ href: project === "AXI" ? "/invest" : "/",
195
234
  "aria-label": "return to homepage",
196
- children: /* @__PURE__ */ jsxs(
197
- "svg",
235
+ children: /* @__PURE__ */ jsx(
236
+ "img",
198
237
  {
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
- ]
238
+ src: items.logo?.url,
239
+ alt: items.logo?.alt,
240
+ height: 30
261
241
  }
262
242
  )
263
243
  }
264
244
  ) }),
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
- ) }) })
245
+ /* @__PURE__ */ jsx("nav", { className: styles.primary_links, children: /* @__PURE__ */ jsx("ul", { className: "list_unstyled flex_row middle", role: "menubar", children: mainItems() }) })
279
246
  ] }) }),
280
247
  /* @__PURE__ */ jsxs("div", { className: `${styles.mobile_only} ${styles.mobile_logo}`, children: [
281
248
  /* @__PURE__ */ jsx(
282
249
  "a",
283
250
  {
284
- href: project === "AXB" ? "/" : "/invest",
251
+ href: project === "AXI" ? "/invest" : "/",
285
252
  "aria-label": "return to homepage",
286
- children: /* @__PURE__ */ jsxs(
287
- "svg",
253
+ children: /* @__PURE__ */ jsx(
254
+ "img",
288
255
  {
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
- ]
256
+ src: items.logo?.url,
257
+ alt: items.logo?.alt,
258
+ width: 137,
259
+ height: 30
351
260
  }
352
261
  )
353
262
  }
354
263
  ),
355
- /* @__PURE__ */ jsx(MobileDrawerMenu, {})
264
+ /* @__PURE__ */ jsx(MobileDrawerMenu, { menu: items })
356
265
  ] }),
357
- /* @__PURE__ */ jsx("div", { className: styles.signin_wrap, children: /* @__PURE__ */ jsxs(
266
+ /* @__PURE__ */ jsx("div", { className: styles.signin_wrap, children: /* @__PURE__ */ jsx(
358
267
  "div",
359
268
  {
360
269
  className: `${styles.desktop_only} flex_row middle relative`,
361
270
  ref,
362
271
  onKeyDown: handleKeyDownContainer,
363
272
  role: "menubar",
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("{AXOSBANK}/business/login"), children: "Business Banking Login" })
470
- }
471
- ),
472
- /* @__PURE__ */ jsx(
473
- "li",
474
- {
475
- className: `${styles.signin_subheader} ${signin_subheader}`,
476
- children: /* @__PURE__ */ jsx(
477
- "a",
478
- {
479
- href: resolveUrl(
480
- "{AXOSBANK}/business/mwa-business-banking"
481
- ),
482
- children: "MWA Business Banking"
483
- }
484
- )
485
- }
486
- ),
487
- /* @__PURE__ */ jsx(
488
- "li",
489
- {
490
- className: `${styles.signin_subheader} ${signin_subheader}`,
491
- children: /* @__PURE__ */ jsx(
492
- "a",
493
- {
494
- href: resolveUrl(
495
- "{AXOSBANK}/commercial/lending/commercial-portal"
496
- ),
497
- children: "Commercial Portal"
498
- }
499
- )
500
- }
501
- )
502
- ] })
503
- ] }),
504
- /* @__PURE__ */ jsxs("li", { role: "heading", children: [
505
- /* @__PURE__ */ jsx(
506
- "a",
507
- {
508
- href: resolveUrl("{AXOSBANK}/partners"),
509
- className: `${styles.signin_header}`,
510
- children: "Partners"
511
- }
512
- ),
513
- /* @__PURE__ */ jsxs("ul", { className: "list_unstyled", children: [
514
- /* @__PURE__ */ jsx(
515
- "li",
516
- {
517
- className: `${styles.signin_subheader} ${signin_subheader}`,
518
- children: /* @__PURE__ */ jsx("a", { href: "https://thirdpartylending.axosbank.com/index", children: "Wholesale and Correspondent" })
519
- }
520
- ),
521
- /* @__PURE__ */ jsx(
522
- "li",
523
- {
524
- className: `${styles.signin_subheader} ${signin_subheader}`,
525
- children: /* @__PURE__ */ jsx("a", { href: resolveUrl("{ARMS}"), children: "Advisor Login" })
526
- }
527
- )
528
- ] })
529
- ] }),
530
- /* @__PURE__ */ jsxs(
531
- "li",
532
- {
533
- className: `${styles.signin_subheader} ${signin_subheader} ${styles.signin_footer} relative`,
534
- children: [
535
- /* @__PURE__ */ jsx("a", { href: resolveUrl("{AXOSBANK}/customer-support"), children: "Customer Support" }),
536
- /* @__PURE__ */ jsx(
537
- "a",
538
- {
539
- href: resolveUrl("{AXOSBANK}/return-to-application"),
540
- children: "Return to Application"
541
- }
542
- )
543
- ]
544
- }
545
- )
546
- ]
547
- }
548
- ) })
549
- }
550
- )
551
- ]
273
+ children: rightSideItems()
552
274
  }
553
275
  ) })
554
276
  ] })
555
277
  ] }) }),
556
- /* @__PURE__ */ jsx(SubNavBar, {})
278
+ subNavBarItems && /* @__PURE__ */ jsx(SubNavBar, { items: subNavBarItems })
557
279
  ] });
558
280
  }
559
281
  export {
@@ -109,8 +109,9 @@ import "next/navigation.js";
109
109
  /* empty css */
110
110
  /* empty css */
111
111
  /* empty css */
112
- import "next/link.js";
113
112
  /* empty css */
113
+ import "next/link.js";
114
+ import "../AxosBank/Menu.js";
114
115
  /* empty css */
115
116
  /* empty css */
116
117
  /* empty css */
@@ -1,5 +1,8 @@
1
- declare function NavBar({ project, withSession, }: {
1
+ import { Navigation } from './utils';
2
+
3
+ declare function NavBar({ project, withSession, items, }: {
2
4
  project?: string;
3
5
  withSession?: boolean;
6
+ items?: Navigation | null;
4
7
  }): import("react/jsx-runtime").JSX.Element;
5
8
  export default NavBar;
@@ -1,10 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
+ import "../Chevron/Chevron.css.js";
3
4
  import "../Accordion/Accordion.js";
4
5
  import "../Accordion/Accordion.css.js";
5
6
  import "../icons/ArrowIcon/ArrowIcon.css.js";
6
7
  import "../icons/CheckIcon/CheckIcon.css.js";
7
- import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/TopicalNavSet/TopicalNavSet.css';import '../assets/TopicalNavItem/TopicalNavItem.css';import '../assets/Topic/Topic.css';import '../assets/TextBlock/TextBlock.css';import '../assets/SocialMediaBar/SocialMediaBar.css';import '../assets/SecondaryFooter/SecondaryFooter.css';import '../assets/Pagination/Pagination.css';import '../assets/PageNavSet/PageNavigationSet.css';import '../assets/NavigationMenu/LaVictoire/NavBar2.css';import '../assets/NavigationMenu/AxosALTS/NavBar2.css';import '../assets/NavigationMenu/AxosClearing/NavBar2.css';import '../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisorServices/NavBar2.css';import '../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisor/NavBar2.css';import '../assets/Insight/Featured/Header.css';import '../assets/Insight/Featured/CategorySelector.css';import '../assets/Insight/Featured/Featured.css';import '../assets/ImageLink/ImageLink.css';import '../assets/VideoTile/VideoTile.css';import '../assets/HelpArticle/HelpArticle.css';import '../assets/FooterSiteMap/AxosBank/FooterSiteMap.css';import '../assets/FooterDisclosure/LVF/LaVictorieFooter.css';import '../assets/DownloadTile/DownloadTile.css';import '../assets/CollectInformationAlert/CollectInformationAlert.css';import '../assets/Chatbot/ChatWindow.css';import '../assets/Chatbot/Chatbot.css';import '../assets/Chatbot/Bubble.css';import '../assets/Chatbot/AnimatedGradientBorder.css';import '../assets/CallToActionBar/CallToActionBar.css';import '../assets/Insight/Insight.css';import '../assets/AwardsItem/AwardsItem.css';import '../assets/AwardsBanner/AwardsBanner.css';import '../assets/Auth/SignIn.css';import '../assets/Auth/ErrorAlert.css';import '../assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css';import '../assets/Forms/QuickPricer/UserInformation.css';import '../assets/Forms/QuickPricer/QuickPricerResults.css';import '../assets/Modal/Modal.css';import '../assets/BulletItem/BulletItem.css';import '../assets/Typography/Typography.css';import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
8
+ import '../assets/Modal/Modal.css';import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/TopicalNavSet/TopicalNavSet.css';import '../assets/TopicalNavItem/TopicalNavItem.css';import '../assets/Topic/Topic.css';import '../assets/TextBlock/TextBlock.css';import '../assets/SocialMediaBar/SocialMediaBar.css';import '../assets/SecondaryFooter/SecondaryFooter.css';import '../assets/Pagination/Pagination.css';import '../assets/PageNavSet/PageNavigationSet.css';import '../assets/NavigationMenu/LaVictoire/NavBar2.css';import '../assets/NavigationMenu/AxosALTS/NavBar2.css';import '../assets/NavigationMenu/AxosClearing/NavBar2.css';import '../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisorServices/NavBar2.css';import '../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisor/NavBar2.css';import '../assets/Insight/Featured/Header.css';import '../assets/Insight/Featured/CategorySelector.css';import '../assets/Insight/Featured/Featured.css';import '../assets/ImageLink/ImageLink.css';import '../assets/VideoTile/VideoTile.css';import '../assets/HelpArticle/HelpArticle.css';import '../assets/FooterSiteMap/AxosBank/FooterSiteMap.css';import '../assets/FooterDisclosure/LVF/LaVictorieFooter.css';import '../assets/DownloadTile/DownloadTile.css';import '../assets/CollectInformationAlert/CollectInformationAlert.css';import '../assets/Chatbot/ChatWindow.css';import '../assets/Chatbot/Chatbot.css';import '../assets/Chatbot/Bubble.css';import '../assets/Chatbot/AnimatedGradientBorder.css';import '../assets/CallToActionBar/CallToActionBar.css';import '../assets/Insight/Insight.css';import '../assets/AwardsItem/AwardsItem.css';import '../assets/AwardsBanner/AwardsBanner.css';import '../assets/Auth/SignIn.css';import '../assets/Auth/ErrorAlert.css';import '../assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css';import '../assets/Forms/QuickPricer/UserInformation.css';import '../assets/Forms/QuickPricer/QuickPricerResults.css';import '../assets/BulletItem/BulletItem.css';import '../assets/Typography/Typography.css';import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
8
9
  /* empty css */
9
10
  /* empty css */
10
11
  /* empty css */
@@ -12,7 +13,6 @@ import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/TopicalNavSet
12
13
  /* empty css */
13
14
  import "clsx";
14
15
  import { useState, useEffect } from "react";
15
- import "../Chevron/Chevron.css.js";
16
16
  import "../AlertBanner/AlertBanner.css.js";
17
17
  import "../Article/Article.css.js";
18
18
  import "../IconBillboard/IconBillboard.css.js";
@@ -20,13 +20,12 @@ import { appendQueryParams } from "../utils/appendQueryParams.js";
20
20
  /* empty css */
21
21
  /* empty css */
22
22
  import "../Interstitial/Interstitial-variants.css.js";
23
- /* empty css */
24
- import { useGlobalContext } from "../Modal/contextApi/store.js";
25
23
  import "../Button/Button.css.js";
26
24
  import "react-use";
27
25
  import "../ArticlesSet/ArticlesSet.css.js";
28
26
  import "../Calculators/calculator.css.js";
29
27
  import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
28
+ import { useGlobalContext } from "../Modal/contextApi/store.js";
30
29
  import "../Calculators/ApyCalculator/ApyCalculator.css.js";
31
30
  import "../Table/Table.css.js";
32
31
  import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
@@ -108,12 +107,12 @@ import "next/navigation.js";
108
107
  /* empty css */
109
108
  /* empty css */
110
109
  /* empty css */
111
- import MobileDrawerMenu from "./AxosBank/MobileMenu/MobileMenu.js";
112
110
  import { main_nav_link } from "./AxosBank/NavBar.css.js";
113
111
  import styles from "./AxosBank/NavBar.module.js";
114
- import { getNavItems } from "./AxosBank/NavData.js";
112
+ import MobileDrawerMenu from "./AxosBank/MobileMenu/MobileMenu.js";
115
113
  import SubNavBar from "./AxosBank/SubNavBar.js";
116
114
  /* empty css */
115
+ import { getNavItems } from "./AxosALTS/NavData.js";
117
116
  /* empty css */
118
117
  /* empty css */
119
118
  import "next/link.js";
@@ -130,9 +129,11 @@ import "../StepItemSet/StepItemSet.css.js";
130
129
  /* empty css */
131
130
  /* empty css */
132
131
  /* empty css */
132
+ /* empty css */
133
133
  function NavBar({
134
134
  project = "AXB",
135
- withSession = false
135
+ withSession = false,
136
+ items
136
137
  }) {
137
138
  const { resolveUrl } = useGlobalContext();
138
139
  const navItems = getNavItems(resolveUrl);
@@ -190,7 +191,7 @@ function NavBar({
190
191
  "aria-label": "return to homepage"
191
192
  }
192
193
  ),
193
- /* @__PURE__ */ jsx(MobileDrawerMenu, {})
194
+ items && /* @__PURE__ */ jsx(MobileDrawerMenu, { menu: items })
194
195
  ] })
195
196
  ] })
196
197
  ] }) }),