@axos-web-dev/shared-components 2.0.0-dev.34 → 2.0.0-dev.37
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 +21 -89
- package/dist/Auth/ErrorAlert.js +6 -93
- package/dist/Button/Button.js +6 -126
- package/dist/Calculators/ApyCalculator/index.js +13 -3
- package/dist/Calculators/Calculator.d.ts +1 -1
- package/dist/Calculators/Calculator.js +19 -94
- package/dist/Calculators/MarginTradingCalculator/index.js +2 -118
- package/dist/Calculators/SummitApyCalculator/index.js +11 -5
- package/dist/Carousel/index.js +4 -115
- package/dist/Chatbot/Bubble.css.js +0 -1
- package/dist/Chatbot/ChatWindow.css.js +1 -0
- package/dist/Chevron/index.js +5 -121
- package/dist/Comparison/Comparison.js +5 -127
- package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +3 -2
- package/dist/ExecutiveBio/ExecutiveBio.js +4 -132
- package/dist/FaqAccordion/index.js +5 -113
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +4 -115
- package/dist/FooterSiteMap/AxosBank/ServerFooterSiteMap.d.ts +10 -0
- package/dist/FooterSiteMap/AxosBank/ServerFooterSiteMap.js +151 -0
- package/dist/FooterSiteMap/AxosBank/index.d.ts +1 -0
- package/dist/FooterSiteMap/AxosBank/index.js +2 -0
- package/dist/FooterSiteMap/index.js +2 -0
- package/dist/Forms/ApplyNow.js +3 -114
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +5 -107
- package/dist/Forms/ContactUsBusinessNameEmail.js +6 -107
- package/dist/Forms/ContactUsNMLSId.js +5 -107
- package/dist/Forms/CpraRequest.js +2 -101
- package/dist/Forms/CraPublicFile.js +5 -107
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +6 -118
- package/dist/Forms/FormEnums.d.ts +16 -0
- package/dist/Forms/FormEnums.js +27 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.js +33 -108
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +34 -13
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +4 -98
- package/dist/Forms/MortgageWarehouseLending.js +5 -107
- package/dist/Forms/NameAndEmail.d.ts +8 -0
- package/dist/Forms/NameAndEmail.js +165 -0
- package/dist/Forms/NonQMLoans.d.ts +16 -0
- package/dist/Forms/NonQMLoans.js +369 -0
- package/dist/Forms/SuccesForm.js +7 -95
- package/dist/Forms/index.d.ts +2 -0
- package/dist/Forms/index.js +4 -0
- package/dist/Hyperlink/index.js +4 -115
- package/dist/ImageLink/ImageLink.js +8 -113
- package/dist/ImageLink/ImageLinkSet.js +6 -120
- package/dist/ImageLink/index.js +5 -109
- package/dist/ImageToast/index.js +2 -113
- package/dist/Insight/Featured/CategorySelector.css.d.ts +5 -3
- package/dist/Insight/Featured/CategorySelector.css.js +12 -8
- package/dist/Insight/Featured/CategorySelector.d.ts +2 -1
- package/dist/Insight/Featured/CategorySelector.js +76 -145
- package/dist/Insight/Featured/Featured.css.d.ts +13 -4
- package/dist/Insight/Featured/Featured.css.js +37 -18
- package/dist/Insight/Featured/Featured.d.ts +1 -0
- package/dist/Insight/Featured/Featured.js +131 -205
- package/dist/Insight/Featured/Header.css.d.ts +1 -0
- package/dist/Insight/Featured/Header.css.js +9 -6
- package/dist/Insight/Featured/Header.js +14 -132
- package/dist/Insight/Featured/index.js +13 -4
- package/dist/Insight/index.js +13 -4
- package/dist/LandingPageHeader/LandingPageHeader.d.ts +1 -1
- package/dist/LandingPageHeader/WithLogin.js +7 -124
- package/dist/Modal/Modal.js +2 -128
- package/dist/NavigationMenu/AxosALTS/index.js +6 -117
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +4 -114
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +1 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +6 -114
- package/dist/NavigationMenu/AxosBank/index.js +6 -124
- package/dist/NavigationMenu/LaVictoire/index.js +4 -123
- package/dist/NavigationMenu/NavItem/index.js +4 -116
- package/dist/NavigationMenu/ServerNavigation/DropwdownButton.js +4 -123
- package/dist/NavigationMenu/ServerNavigation/Menu.js +4 -121
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileMenu.js +17 -125
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileMenu.module.js +27 -27
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileNavData.d.ts +1 -1
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileNavData.js +3 -3
- package/dist/NavigationMenu/ServerNavigation/NavBar.module.js +40 -40
- package/dist/NavigationMenu/ServerNavigation/SubNavBar.js +5 -115
- package/dist/NavigationMenu/ServerNavigation/SubNavItem.js +4 -116
- package/dist/NavigationMenu/ServerNavigation/index.js +15 -116
- package/dist/NavigationMenu/getPathFromNavUrl.d.ts +3 -0
- package/dist/NavigationMenu/getPathFromNavUrl.js +15 -0
- package/dist/NavigationMenu/index.d.ts +3 -2
- package/dist/NavigationMenu/index.js +8 -7
- package/dist/NavigationMenu/utils.d.ts +0 -3
- package/dist/NavigationMenu/utils.js +0 -13
- package/dist/SetContainer/SetContainer.js +9 -115
- package/dist/SocialMediaBar/iconsRepository.js +0 -130
- package/dist/VideoTile/VideoTile.js +2 -112
- package/dist/VideoWrapper/index.js +7 -116
- package/dist/assets/CallToActionBar/CallToActionBar.css +2 -1
- package/dist/assets/Forms/Forms.css +2 -1
- package/dist/assets/ImageBillboard/ImageBillboard.css +1 -1
- package/dist/assets/Input/Input.css +1 -0
- package/dist/assets/Insight/Featured/CategorySelector.css +60 -38
- package/dist/assets/Insight/Featured/Featured.css +126 -65
- package/dist/assets/Insight/Featured/Header.css +22 -13
- package/dist/assets/NavigationMenu/ServerNavigation/MobileMenu/MobileMenu.css +353 -353
- package/dist/assets/NavigationMenu/ServerNavigation/NavBar.css +483 -483
- package/dist/assets/SetContainer/SetContainer.css +6 -6
- package/dist/assets/TextBlock/TextBlock.css +0 -1
- package/dist/icons/Clock/index.js +1 -0
- package/dist/main.js +28 -10
- package/dist/utils/allowedAxosDomains.d.ts +1 -1
- package/dist/utils/allowedAxosDomains.js +32 -20
- package/dist/utils/createUrlResolver.d.ts +3 -0
- package/dist/utils/createUrlResolver.js +7 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/insightsData.d.ts +1 -1
- package/dist/utils/insightsData.js +1 -6
- package/package.json +1 -1
- package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css +0 -353
|
@@ -129,22 +129,22 @@
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
@media (min-width: 1024px) {
|
|
132
|
-
._18ygy9m5:has(> :nth-child(5):last-child) {
|
|
132
|
+
._18ygy9m5:not(.stacked):has(> :nth-child(5):last-child) {
|
|
133
133
|
grid-template-columns: repeat(4,1fr);
|
|
134
134
|
}
|
|
135
|
-
._18ygy9m5:has(> :nth-child(5):last-child) > * {
|
|
135
|
+
._18ygy9m5:not(.stacked):has(> :nth-child(5):last-child) > * {
|
|
136
136
|
grid-column: span 2;
|
|
137
137
|
}
|
|
138
|
-
._18ygy9m5:has(> :nth-child(5):last-child) > *:last-child {
|
|
138
|
+
._18ygy9m5:not(.stacked):has(> :nth-child(5):last-child) > *:last-child {
|
|
139
139
|
grid-column: 2 / span 2;
|
|
140
140
|
}
|
|
141
|
-
._18ygy9m5:has(> :nth-child(7):last-child) {
|
|
141
|
+
._18ygy9m5:not(.stacked):has(> :nth-child(7):last-child) {
|
|
142
142
|
grid-template-columns: repeat(4,1fr);
|
|
143
143
|
}
|
|
144
|
-
._18ygy9m5:has(> :nth-child(7):last-child) > * {
|
|
144
|
+
._18ygy9m5:not(.stacked):has(> :nth-child(7):last-child) > * {
|
|
145
145
|
grid-column: span 2;
|
|
146
146
|
}
|
|
147
|
-
._18ygy9m5:has(> :nth-child(7):last-child) > *:last-child {
|
|
147
|
+
._18ygy9m5:not(.stacked):has(> :nth-child(7):last-child) > *:last-child {
|
|
148
148
|
grid-column: 2 / span 2;
|
|
149
149
|
}
|
|
150
150
|
}
|
package/dist/main.js
CHANGED
|
@@ -63,6 +63,7 @@ import { LaVictorieFooter } from "./FooterDisclosure/LVF/LaVictorieFooter.js";
|
|
|
63
63
|
import { divider, lvf_footer, lvf_footer_content, lvf_footer_terms, lvf_small_footer } from "./FooterDisclosure/LVF/LaVictorieFooter.css.js";
|
|
64
64
|
import { AxosFooterSiteMap } from "./FooterSiteMap/AxosBank/FooterSiteMap.js";
|
|
65
65
|
import { app_col, footer_mobile, footer_section, footer_wrapper, ft_col, ft_col_header, ft_col_subheader, ft_panel, ft_panel_group, nested_grid } from "./FooterSiteMap/AxosBank/FooterSiteMap.css.js";
|
|
66
|
+
import { AxosServerFooterSiteMap } from "./FooterSiteMap/AxosBank/ServerFooterSiteMap.js";
|
|
66
67
|
import { ApplicationStart } from "./Forms/ApplicationStart.js";
|
|
67
68
|
import { ApplyNow } from "./Forms/ApplyNow.js";
|
|
68
69
|
import { getLink } from "./Forms/applynow-utils.js";
|
|
@@ -108,6 +109,8 @@ import { SuccesFormWrapper } from "./Forms/SuccesForm.js";
|
|
|
108
109
|
import { VendorQuestionnaire } from "./Forms/VendorQuestionnaire.js";
|
|
109
110
|
import { WCPLSurvey } from "./Forms/WcplSurvey.js";
|
|
110
111
|
import { BoatMooringLocation } from "./Forms/BoatMooringLocation.js";
|
|
112
|
+
import { NonQMLoans } from "./Forms/NonQMLoans.js";
|
|
113
|
+
import { NameAndEmail } from "./Forms/NameAndEmail.js";
|
|
111
114
|
import { helpArticle_container, helpArticle_headline, helpArticle_p, insight_headline_2 } from "./HelpArticle/HelpArticle.css.js";
|
|
112
115
|
import { HeroBanner } from "./HeroBanner/HeroBanner.js";
|
|
113
116
|
import { headline_text, heroSupertag, hero_banner, hero_btns, hero_bullet_item, hero_content, hero_embedded_image, hero_img, hero_sub_bullets, hero_text, hero_wrapper, img_contents, logout, reversed, reversed_lg_image, xl } from "./HeroBanner/HeroBanner.css.js";
|
|
@@ -165,7 +168,7 @@ import { DownPaymentInput } from "./Input/DownPaymentInput.js";
|
|
|
165
168
|
import { RadioButton, RadioButtonSet } from "./Input/RadioButton.js";
|
|
166
169
|
import { CategorySelector, InsightItem } from "./Insight/Featured/CategorySelector.js";
|
|
167
170
|
import { Featured, FeaturedItem } from "./Insight/Featured/Featured.js";
|
|
168
|
-
import { featured_center_vertical, featured_grid,
|
|
171
|
+
import { divider_tab, featured_center_vertical, featured_grid, featured_main_wrapper, featured_maingrid, featured_maingrid_img, featured_maingrid_item, featured_maingrid_text, featured_maingrid_title, featured_section, featured_subcontent, featured_subgrid, featured_subgrid_item, featured_subgrid_title, featured_subimage, featured_subouter, featured_subwrap, featured_supertag, featured_title, info_details, onhover, ratio, tab_details } from "./Insight/Featured/Featured.css.js";
|
|
169
172
|
import { BreadcumbHeader } from "./Insight/Featured/Header.js";
|
|
170
173
|
import { article_aside, article_blockquote, article_main_content, article_navigation_link, article_navigation_list, article_navigation_title, article_preview_img, article_preview_wrapper, article_share, article_share_buttons, article_share_icon, article_share_link, article_share_p, article_share_svg, article_spacer, elementSpacer_block, footnotes, insight_header, insight_header_2, insight_header_3, insight_header_4, insight_info__divider, insight_info_row, insight_intro_p, insight_list_item, insight_p } from "./Insight/Insight.css.js";
|
|
171
174
|
import { Interstitial } from "./Interstitial/Interstitial.js";
|
|
@@ -176,13 +179,14 @@ import { Modal } from "./Modal/Modal.js";
|
|
|
176
179
|
import { GlobalContext, GlobalContextProvider, useGlobalContext } from "./Modal/contextApi/store.js";
|
|
177
180
|
import { default as default30 } from "./NavigationMenu/AxosAdvisor/index.js";
|
|
178
181
|
import { default as default31 } from "./NavigationMenu/AxosAdvisorServices/index.js";
|
|
179
|
-
import { default as default32 } from "./NavigationMenu/
|
|
182
|
+
import { default as default32 } from "./NavigationMenu/AxosALTS/index.js";
|
|
180
183
|
import { default as default33 } from "./NavigationMenu/AxosBank/index.js";
|
|
181
184
|
import { default as default34 } from "./NavigationMenu/AxosClearing/index.js";
|
|
182
185
|
import { default as default35 } from "./NavigationMenu/AxosFiduciary/index.js";
|
|
183
|
-
import {
|
|
184
|
-
import { default as
|
|
185
|
-
import {
|
|
186
|
+
import { getPathFromNavUrl } from "./NavigationMenu/getPathFromNavUrl.js";
|
|
187
|
+
import { default as default36 } from "./NavigationMenu/LaVictoire/index.js";
|
|
188
|
+
import { default as default37 } from "./NavigationMenu/ServerNavigation/index.js";
|
|
189
|
+
import { extractChildrenTargets, getFirstLevelMenuItems, getLogo, getNavMenuItems, getQuickLinks } from "./NavigationMenu/utils.js";
|
|
186
190
|
import { pn_btn, pn_link } from "./PageNavItem/PageNavItem.css.js";
|
|
187
191
|
import { PageNavItem } from "./PageNavItem/PageNavItem.js";
|
|
188
192
|
import { PageNavSet } from "./PageNavSet/PageNavSet.js";
|
|
@@ -215,6 +219,7 @@ import { Tab } from "./Tab/Tab.js";
|
|
|
215
219
|
import { TabContainer } from "./Tab/TabContainer.js";
|
|
216
220
|
import { findMoreAxosDomains, getMoreDomains, isAllowedUrl } from "./utils/allowedAxosDomains.js";
|
|
217
221
|
import { appendQueryParams, filterParams, handleAnchorClick } from "./utils/appendQueryParams.js";
|
|
222
|
+
import { createUrlResolver } from "./utils/createUrlResolver.js";
|
|
218
223
|
import { createCachedEmailValidator } from "./utils/emailValidation.js";
|
|
219
224
|
import { associatedEmail } from "./utils/EverestValidity.js";
|
|
220
225
|
import { getVariant, getVariantWithRegex } from "./utils/getVariant.js";
|
|
@@ -254,6 +259,7 @@ export {
|
|
|
254
259
|
AwardsItem,
|
|
255
260
|
AxosFooterSiteMap,
|
|
256
261
|
AxosOneCalculator,
|
|
262
|
+
AxosServerFooterSiteMap,
|
|
257
263
|
default3 as AxosX,
|
|
258
264
|
default4 as AxosXBlue,
|
|
259
265
|
BalanceAPYCalculator,
|
|
@@ -359,14 +365,16 @@ export {
|
|
|
359
365
|
MortgageRate,
|
|
360
366
|
MortgageRateFilters,
|
|
361
367
|
MortgageWarehouseLending,
|
|
362
|
-
|
|
368
|
+
NameAndEmail,
|
|
369
|
+
default37 as NavBar,
|
|
363
370
|
default31 as NavBarAAS,
|
|
364
371
|
default35 as NavBarAFS,
|
|
365
|
-
|
|
372
|
+
default32 as NavBarALT,
|
|
366
373
|
default30 as NavBarAXA,
|
|
367
374
|
default33 as NavBarAXB,
|
|
368
375
|
default34 as NavBarAXC,
|
|
369
|
-
|
|
376
|
+
default36 as NavBarLVF,
|
|
377
|
+
NonQMLoans,
|
|
370
378
|
PageNavItem,
|
|
371
379
|
PageNavSet,
|
|
372
380
|
Pagination,
|
|
@@ -553,12 +561,14 @@ export {
|
|
|
553
561
|
copy,
|
|
554
562
|
createCachedEmailValidator,
|
|
555
563
|
createCachedNMLSValidator,
|
|
564
|
+
createUrlResolver,
|
|
556
565
|
description,
|
|
557
566
|
descriptionField,
|
|
558
567
|
desktop_only,
|
|
559
568
|
details,
|
|
560
569
|
disclosureForm,
|
|
561
570
|
divider,
|
|
571
|
+
divider_tab,
|
|
562
572
|
dp_input,
|
|
563
573
|
dropdown,
|
|
564
574
|
dynPH,
|
|
@@ -582,16 +592,20 @@ export {
|
|
|
582
592
|
feature_title,
|
|
583
593
|
featured_center_vertical,
|
|
584
594
|
featured_grid,
|
|
585
|
-
|
|
595
|
+
featured_main_wrapper,
|
|
586
596
|
featured_maingrid,
|
|
587
597
|
featured_maingrid_img,
|
|
588
598
|
featured_maingrid_item,
|
|
599
|
+
featured_maingrid_text,
|
|
589
600
|
featured_maingrid_title,
|
|
590
601
|
featured_section,
|
|
602
|
+
featured_subcontent,
|
|
591
603
|
featured_subgrid,
|
|
592
|
-
featured_subgrid_divider,
|
|
593
604
|
featured_subgrid_item,
|
|
594
605
|
featured_subgrid_title,
|
|
606
|
+
featured_subimage,
|
|
607
|
+
featured_subouter,
|
|
608
|
+
featured_subwrap,
|
|
595
609
|
featured_supertag,
|
|
596
610
|
featured_title,
|
|
597
611
|
filterParams,
|
|
@@ -686,6 +700,7 @@ export {
|
|
|
686
700
|
imgAlignment,
|
|
687
701
|
img_area,
|
|
688
702
|
img_contents,
|
|
703
|
+
info_details,
|
|
689
704
|
inline_button,
|
|
690
705
|
inline_button_wrapper,
|
|
691
706
|
inline_container,
|
|
@@ -750,6 +765,7 @@ export {
|
|
|
750
765
|
notificationStyle,
|
|
751
766
|
ol,
|
|
752
767
|
one_row,
|
|
768
|
+
onhover,
|
|
753
769
|
order_3,
|
|
754
770
|
overlay,
|
|
755
771
|
padding,
|
|
@@ -772,6 +788,7 @@ export {
|
|
|
772
788
|
rate_container,
|
|
773
789
|
rate_pad,
|
|
774
790
|
rate_table_title,
|
|
791
|
+
ratio,
|
|
775
792
|
related_insight,
|
|
776
793
|
remove_padding,
|
|
777
794
|
resposiveLabel,
|
|
@@ -830,6 +847,7 @@ export {
|
|
|
830
847
|
svg_fill,
|
|
831
848
|
svg_icon,
|
|
832
849
|
svg_logo,
|
|
850
|
+
tab_details,
|
|
833
851
|
table,
|
|
834
852
|
tableCell,
|
|
835
853
|
tableHead,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Resolve a template URL (e.g. "{AXOSBANK}/personal") to an absolute href. */
|
|
2
2
|
export type UrlResolver = (url: string) => string;
|
|
3
3
|
export declare const getMoreDomains: (domains: Record<string, string>) => Record<string, string>;
|
|
4
4
|
export declare const isAllowedUrl: (url: string, domains: Record<string, string>) => boolean;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
const FALLBACK_ORIGIN = "https://www.axosbank.com";
|
|
2
|
+
const parseUrl = (value, base) => {
|
|
3
|
+
if (!value) return null;
|
|
4
|
+
try {
|
|
5
|
+
return new URL(value);
|
|
6
|
+
} catch {
|
|
7
|
+
try {
|
|
8
|
+
return new URL(value, base ?? FALLBACK_ORIGIN);
|
|
9
|
+
} catch {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
1
14
|
const getMoreDomains = (domains) => ({
|
|
2
15
|
"{AXOS}": domains.AXOS_URL || "https://www.axos.com",
|
|
3
16
|
"{AXOSBANK}": domains.AXOS_BANK_URL !== void 0 ? domains.AXOS_BANK_URL : "https://www.axosbank.com",
|
|
@@ -44,37 +57,36 @@ const getMoreDomains = (domains) => ({
|
|
|
44
57
|
"{MERIDIAN}": domains.MERIDIAN_URL || "https://www.axosbank.com/",
|
|
45
58
|
"{ACE}": domains.ACE_URL || "https://ace.axos.com",
|
|
46
59
|
"{SPARK}": domains.SPARK_URL || "https://spark.axosbank.com",
|
|
47
|
-
"{SECUREMORTGAGE}": domains.AXOS_BANK_SECURE_URL || "https://secure.axosbank.com"
|
|
60
|
+
"{SECUREMORTGAGE}": domains.AXOS_BANK_SECURE_URL || "https://secure.axosbank.com",
|
|
61
|
+
"{LVF}": domains.LVF_URL || "https://lavictoirefinance.com",
|
|
62
|
+
"{AXBLP}": domains.AXB_LP_URL || "https://loanpayment.axosbank.com",
|
|
63
|
+
"{AAS_LIBERTY}": domains.AAS_LIBERTY_URL || "https://app.axosadvisorservices.com/liberty"
|
|
48
64
|
});
|
|
49
65
|
const isAllowedUrl = (url, domains) => {
|
|
66
|
+
const uri = parseUrl(url);
|
|
67
|
+
if (!uri) return false;
|
|
50
68
|
const moreDomains = getMoreDomains(domains);
|
|
51
|
-
const uri = new URL(url, location.href);
|
|
52
69
|
for (const key in moreDomains) {
|
|
53
|
-
const
|
|
54
|
-
if (uri.hostname ===
|
|
70
|
+
const allowed = parseUrl(moreDomains[key]);
|
|
71
|
+
if (allowed && uri.hostname === allowed.hostname) return true;
|
|
55
72
|
}
|
|
56
73
|
return false;
|
|
57
74
|
};
|
|
58
75
|
const findMoreAxosDomains = (url, domains) => {
|
|
76
|
+
if (!url) return url;
|
|
59
77
|
const moreDomains = getMoreDomains(domains);
|
|
60
78
|
const regexSearching = /\{[a-xA-Z_-]+\}/;
|
|
61
|
-
if (regexSearching.test(url))
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
if (parsed.pathname === "/" && parsed.hash && !url.includes("/")) {
|
|
71
|
-
return parsed.hash;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return newURL;
|
|
75
|
-
}
|
|
79
|
+
if (!regexSearching.test(url)) return url;
|
|
80
|
+
const domainToReplace = url.match(regexSearching);
|
|
81
|
+
if (!Array.isArray(domainToReplace)) return url;
|
|
82
|
+
const replacement = moreDomains[domainToReplace[0]];
|
|
83
|
+
if (!replacement) return url;
|
|
84
|
+
const newURL = url.replace(regexSearching, replacement);
|
|
85
|
+
const parsed = parseUrl(newURL);
|
|
86
|
+
if (parsed?.pathname === "/" && parsed.hash && !url.includes("/")) {
|
|
87
|
+
return parsed.hash;
|
|
76
88
|
}
|
|
77
|
-
return
|
|
89
|
+
return newURL;
|
|
78
90
|
};
|
|
79
91
|
export {
|
|
80
92
|
findMoreAxosDomains,
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { findMoreAxosDomains, getMoreDomains, isAllowedUrl } from "./allowedAxosDomains.js";
|
|
3
3
|
import { appendQueryParams, filterParams, handleAnchorClick } from "./appendQueryParams.js";
|
|
4
|
+
import { createUrlResolver } from "./createUrlResolver.js";
|
|
4
5
|
import { createCachedEmailValidator } from "./emailValidation.js";
|
|
5
6
|
import { associatedEmail } from "./EverestValidity.js";
|
|
6
7
|
import { getVariant, getVariantWithRegex } from "./getVariant.js";
|
|
@@ -14,6 +15,7 @@ export {
|
|
|
14
15
|
columnValues,
|
|
15
16
|
createCachedEmailValidator,
|
|
16
17
|
createCachedNMLSValidator,
|
|
18
|
+
createUrlResolver,
|
|
17
19
|
filterParams,
|
|
18
20
|
findMoreAxosDomains,
|
|
19
21
|
getMoreDomains,
|
|
@@ -10,7 +10,7 @@ export declare const CATEGORY_DATA: {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
readonly "Axos Invest (AXI)": {
|
|
13
|
-
readonly Invest: readonly ["Investing-Basics", "Investment-Strategies", "
|
|
13
|
+
readonly Invest: readonly ["Investing-Basics", "Investment-Strategies", "Market-Analysis"];
|
|
14
14
|
};
|
|
15
15
|
readonly "Axos Advisor (AXA)": readonly [];
|
|
16
16
|
readonly "Axos Advisor Services (AAS)": readonly ["IBD-Breakaways", "Run-Your-Practice", "Grow-Your-Book"];
|
|
@@ -16,12 +16,7 @@ const CATEGORY_DATA = {
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"Axos Invest (AXI)": {
|
|
19
|
-
Invest: [
|
|
20
|
-
"Investing-Basics",
|
|
21
|
-
"Investment-Strategies",
|
|
22
|
-
"Retirement-Planning",
|
|
23
|
-
"Market-Analysis"
|
|
24
|
-
]
|
|
19
|
+
Invest: ["Investing-Basics", "Investment-Strategies", "Market-Analysis"]
|
|
25
20
|
},
|
|
26
21
|
"Axos Advisor (AXA)": [],
|
|
27
22
|
"Axos Advisor Services (AAS)": [
|