@axos-web-dev/shared-components 1.0.8 → 1.0.9-9.dev.1
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 +42 -32
- package/dist/Accordion/Accordion.css.d.ts +1 -1
- package/dist/Article/Article.css.d.ts +41 -41
- package/dist/Article/Article.js +3 -13
- package/dist/ArticlesSet/ArticlesSet.css.d.ts +16 -16
- package/dist/Auth/ErrorAlert.css.d.ts +4 -0
- package/dist/Auth/ErrorAlert.css.js +11 -0
- package/dist/Auth/ErrorAlert.d.ts +14 -0
- package/dist/Auth/ErrorAlert.js +184 -0
- package/dist/Auth/Logout.d.ts +3 -0
- package/dist/Auth/Logout.js +29 -0
- package/dist/Auth/SignIn.css.d.ts +6 -0
- package/dist/Auth/SignIn.css.js +18 -0
- package/dist/Auth/SignInPassword.d.ts +15 -0
- package/dist/Auth/SignInPassword.js +118 -0
- package/dist/Auth/index.d.ts +5 -0
- package/dist/Auth/index.js +20 -0
- package/dist/Button/Button.css.d.ts +31 -18
- package/dist/Button/Button.css.js +1 -1
- package/dist/Button/Button.js +14 -4
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +12 -12
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +14 -14
- package/dist/Calculators/ApyCalculator/index.js +20 -12
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +8 -8
- package/dist/Calculators/AxosOneCalculator/index.js +18 -10
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +22 -22
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.d.ts +101 -0
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +56 -0
- package/dist/Calculators/BuyDownCalculator/index.d.ts +25 -0
- package/dist/Calculators/BuyDownCalculator/index.js +855 -0
- package/dist/Calculators/Calculator.js +29 -10
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
- package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.d.ts +8 -8
- package/dist/Calculators/calculator.css.d.ts +12 -12
- package/dist/Calculators/index.d.ts +1 -0
- package/dist/Calculators/index.js +2 -0
- package/dist/CallToActionBar/index.js +3 -1
- package/dist/Carousel/Carousel.css.d.ts +20 -20
- package/dist/Carousel/index.js +23 -13
- package/dist/Chevron/Chevron.css.d.ts +6 -6
- package/dist/Chevron/index.js +14 -4
- package/dist/Comparison/Comparison.css.d.ts +11 -10
- package/dist/Comparison/Comparison.css.js +3 -1
- package/dist/Comparison/Comparison.js +23 -13
- package/dist/Comparison/index.js +2 -1
- package/dist/ContentBanner/ContentBanner.css.d.ts +12 -12
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +31 -31
- package/dist/ExecutiveBio/ExecutiveBio.js +16 -22
- package/dist/FaqAccordion/index.js +16 -6
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +14 -4
- package/dist/Forms/ApplicationStart.js +21 -4
- package/dist/Forms/ApplyNow.js +14 -4
- package/dist/Forms/ClearingForm.js +19 -2
- package/dist/Forms/CommercialDeposits.js +19 -2
- package/dist/Forms/CommercialLending.js +20 -3
- package/dist/Forms/CommercialPremiumFinance.d.ts +10 -0
- package/dist/Forms/CommercialPremiumFinance.js +212 -0
- package/dist/Forms/ContactCompany.js +20 -3
- package/dist/Forms/ContactCompanyTitle.js +20 -3
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUs.js +107 -79
- package/dist/Forms/ContactUsAAS.js +20 -5
- package/dist/Forms/ContactUsBusiness.d.ts +2 -2
- package/dist/Forms/ContactUsBusiness.js +45 -19
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +9 -0
- package/dist/Forms/ContactUsBusinessNameEmail.js +282 -0
- package/dist/Forms/ContactUsLVF.js +20 -3
- package/dist/Forms/ContactUsNMLSId.js +35 -9
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +75 -63
- package/dist/Forms/CraPublicFile.d.ts +5 -5
- package/dist/Forms/CraPublicFile.js +69 -45
- package/dist/Forms/DealerServices.js +20 -4
- package/dist/Forms/EmailOnly.js +45 -28
- package/dist/Forms/EmailUs.js +12 -2
- package/dist/Forms/FormEnums.d.ts +21 -0
- package/dist/Forms/FormEnums.js +308 -0
- package/dist/Forms/FormProps.d.ts +3 -0
- package/dist/Forms/Forms.css.d.ts +42 -42
- package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
- package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
- package/dist/Forms/HoneyPot/index.d.ts +24 -0
- package/dist/Forms/HoneyPot/index.js +71 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.js +17 -7
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +16 -6
- package/dist/Forms/QuickPricer/QuickPricerForm.js +19 -20
- package/dist/Forms/ScheduleCall.js +20 -3
- package/dist/Forms/ScheduleCallPremier.js +20 -3
- package/dist/Forms/SuccesForm.js +31 -21
- package/dist/Forms/VendorQuestionnaire.js +12 -2
- package/dist/Forms/WcplSurvey.js +20 -3
- package/dist/Forms/index.d.ts +3 -0
- package/dist/Forms/index.js +8 -0
- package/dist/HelpArticle/HelpArticle.css.d.ts +4 -0
- package/dist/HelpArticle/HelpArticle.css.js +12 -0
- package/dist/HelpArticle/index.d.ts +1 -0
- package/dist/HelpArticle/index.js +7 -0
- package/dist/HeroBanner/HeroBanner.css.d.ts +19 -17
- package/dist/HeroBanner/HeroBanner.css.js +9 -5
- package/dist/HeroBanner/HeroBanner.d.ts +1 -1
- package/dist/HeroBanner/HeroBanner.interface.d.ts +3 -0
- package/dist/HeroBanner/HeroBanner.js +47 -1
- package/dist/HeroBanner/LargeBanner.css.d.ts +20 -20
- package/dist/HeroBanner/SelectionBanner.css.d.ts +8 -8
- package/dist/HeroBanner/index.js +3 -1
- package/dist/Hyperlink/index.js +17 -7
- package/dist/IconBillboard/IconBillboard.css.d.ts +26 -25
- package/dist/IconBillboard/IconBillboard.css.js +5 -3
- package/dist/IconBillboard/IconBillboard.d.ts +1 -2
- package/dist/IconBillboard/IconBillboard.interface.d.ts +1 -0
- package/dist/IconBillboard/IconBillboard.js +46 -80
- package/dist/IconBillboard/IconBillboardSet.js +1 -1
- package/dist/IconBillboard/index.js +3 -3
- package/dist/IconBillboard/sections/CallToActionSection.d.ts +12 -0
- package/dist/IconBillboard/sections/CallToActionSection.js +101 -0
- package/dist/IconBillboard/sections/HeaderSection.d.ts +11 -0
- package/dist/IconBillboard/sections/HeaderSection.js +23 -0
- package/dist/IconBillboard/sections/IconSection.d.ts +7 -0
- package/dist/IconBillboard/sections/IconSection.js +18 -0
- package/dist/IconBillboard/sections/ItemsSection.d.ts +11 -0
- package/dist/IconBillboard/sections/ItemsSection.js +11 -0
- package/dist/IconBillboard/sections/LayoutSection.d.ts +8 -0
- package/dist/IconBillboard/sections/LayoutSection.js +6 -0
- package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +9 -0
- package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.js +85 -0
- package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.d.ts +5 -0
- package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +90 -0
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +36 -20
- package/dist/ImageBillboard/ImageBillboard.css.js +50 -18
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +20 -2
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +104 -28
- package/dist/ImageBillboard/index.js +17 -1
- package/dist/ImageLink/ImageLink.d.ts +2 -2
- package/dist/ImageLink/ImageLink.js +17 -13
- package/dist/ImageLink/ImageLinkSet.js +20 -10
- package/dist/ImageLink/index.js +17 -7
- package/dist/Input/Checkbox.js +2 -1
- package/dist/Input/Input.css.d.ts +16 -16
- package/dist/Input/Input.js +4 -1
- package/dist/Input/PercentageInput.d.ts +3 -0
- package/dist/Input/PercentageInput.js +32 -0
- package/dist/Input/RadioButton.js +12 -3
- package/dist/Inputs/Input.css.d.ts +14 -14
- package/dist/Insight/Featured/CategorySelector.js +28 -20
- package/dist/Insight/Featured/Featured.js +75 -58
- package/dist/Insight/Featured/Header.js +22 -12
- package/dist/Interstitial/Interstitial-variants.css.d.ts +2 -2
- package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +3 -3
- package/dist/Modal/Modal.js +15 -5
- package/dist/NavigationMenu/AxosALTS/NavData.js +14 -4
- package/dist/NavigationMenu/AxosALTS/index.js +14 -4
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +3 -10
- package/dist/NavigationMenu/AxosAdvisor/index.js +3 -11
- package/dist/NavigationMenu/AxosAdvisorServices/NavData.js +0 -5
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +2 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +345 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +53 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +272 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +664 -0
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -81
- package/dist/NavigationMenu/AxosBank/NavData.js +14 -4
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +432 -108
- package/dist/NavigationMenu/AxosBank/index.d.ts +2 -1
- package/dist/NavigationMenu/AxosBank/index.js +104 -533
- package/dist/NavigationMenu/LaVictoire/NavData.js +14 -4
- package/dist/NavigationMenu/LaVictoire/index.js +40 -20
- package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
- package/dist/NavigationMenu/NavDataJson.js +309 -0
- package/dist/NavigationMenu/Navbar.d.ts +5 -0
- package/dist/NavigationMenu/Navbar.js +195 -0
- package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
- package/dist/NavigationMenu/SignInNavButton.js +363 -0
- package/dist/PageNavItem/PageNavItem.css.d.ts +2 -2
- package/dist/SetContainer/SetContainer.css.d.ts +17 -18
- package/dist/SetContainer/SetContainer.css.js +2 -4
- package/dist/SetContainer/SetContainer.d.ts +2 -1
- package/dist/SetContainer/SetContainer.js +27 -13
- package/dist/SetContainer/index.js +1 -2
- package/dist/SocialMediaBar/iconsRepository.js +14 -4
- package/dist/StepItem/StepItem.css.d.ts +18 -18
- package/dist/StepItemSet/StepItemSet.css.d.ts +14 -14
- package/dist/StepItemSet/StepItemSet.js +2 -6
- package/dist/Tab/Tab.css.d.ts +12 -12
- package/dist/Table/Table.css.d.ts +25 -25
- package/dist/Table/Table.d.ts +3 -3
- package/dist/Topic/Topic.css.d.ts +4 -0
- package/dist/Topic/Topic.css.js +12 -0
- package/dist/Topic/Topic.d.ts +19 -0
- package/dist/Topic/Topic.js +24 -0
- package/dist/Topic/index.d.ts +2 -0
- package/dist/Topic/index.js +12 -0
- package/dist/VideoTile/VideoTile.interface.d.ts +4 -3
- package/dist/VideoTile/VideoTile.js +183 -28
- package/dist/VideoWrapper/index.js +15 -5
- package/dist/WalnutIframe/index.d.ts +6 -0
- package/dist/WalnutIframe/index.js +21 -0
- package/dist/WalnutIframe/wrapper.module.js +14 -0
- package/dist/assets/Auth/ErrorAlert.css +37 -0
- package/dist/assets/Auth/SignIn.css +86 -0
- package/dist/assets/Button/Button.css +31 -16
- package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +5 -0
- package/dist/assets/Calculators/BuyDownCalculator/BuyDownCalculator.css +197 -0
- package/dist/assets/Calculators/SummitApyCalculator/BalanceAPYCalculator.css +8 -0
- package/dist/assets/CallToActionBar/CallToActionBar.css +4 -0
- package/dist/assets/Comparison/Comparison.css +9 -2
- package/dist/assets/Forms/HoneyPot/HoneyPot.css +4 -0
- package/dist/assets/HelpArticle/HelpArticle.css +70 -0
- package/dist/assets/HeroBanner/HeroBanner.css +38 -26
- package/dist/assets/HeroBanner/LargeBanner.css +3 -0
- package/dist/assets/IconBillboard/IconBillboard.css +43 -36
- package/dist/assets/ImageBillboard/ImageBillboard.css +336 -36
- package/dist/assets/Insight/Insight.css +12 -0
- package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -0
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css +6 -0
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +473 -661
- package/dist/assets/SetContainer/SetContainer.css +44 -22
- package/dist/assets/Topic/Topic.css +54 -0
- package/dist/assets/WalnutIframe/wrapper.css.css +49 -0
- package/dist/assets/globals.css +13 -30
- package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -0
- package/dist/icons/ArrowIcon/ArrowIcon.css.d.ts +3 -3
- package/dist/icons/CheckIcon/CheckIcon.css.d.ts +2 -2
- package/dist/icons/Logos/AXB.d.ts +8 -0
- package/dist/icons/Logos/AXB.js +74 -0
- package/dist/main.d.ts +5 -0
- package/dist/main.js +69 -8
- package/dist/themes/axos.css.d.ts +38 -38
- package/dist/utils/allowedAxosDomains.js +19 -3
- package/dist/utils/appendQueryParams.js +3 -6
- package/dist/utils/{lazyImage/lazyImage.d.ts → optimizeImage/OptimizeImage.d.ts} +3 -2
- package/dist/utils/optimizeImage/OptimizeImage.js +46 -0
- package/dist/utils/optimizeImage/index.d.ts +1 -0
- package/dist/utils/optimizeImage/index.js +4 -0
- package/dist/utils/optimizeImage/optimizeImage.module.js +14 -0
- package/package.json +11 -8
- package/dist/utils/lazyImage/imageObserver.d.ts +0 -9
- package/dist/utils/lazyImage/imageObserver.js +0 -29
- package/dist/utils/lazyImage/index.d.ts +0 -2
- package/dist/utils/lazyImage/index.js +0 -7
- package/dist/utils/lazyImage/lazyImage.js +0 -26
|
@@ -16,7 +16,7 @@ import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
|
16
16
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
17
17
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
18
18
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
19
|
-
import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/
|
|
19
|
+
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/NavBar.css';import '../assets/NavigationMenu/AxosALTS/NavBar.css';import '../assets/NavigationMenu/AxosClearing/NavBar.css';import '../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../assets/NavigationMenu/AxosBank/NavBar.css';import '../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisorServices/NavBar.css';import '../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisor/NavBar.css';import '../assets/Insight/Insight.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/CallToActionBar/CallToActionBar.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/Modal/Modal.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/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
20
20
|
/* empty css */
|
|
21
21
|
/* empty css */
|
|
22
22
|
/* empty css */
|
|
@@ -44,6 +44,7 @@ import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
|
44
44
|
import { useForm, FormProvider } from "react-hook-form";
|
|
45
45
|
import { z } from "zod";
|
|
46
46
|
import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
47
|
+
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
47
48
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
48
49
|
/* empty css */
|
|
49
50
|
/* empty css */
|
|
@@ -53,6 +54,8 @@ import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
|
53
54
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
54
55
|
import "../Inputs/Input.css.js";
|
|
55
56
|
/* empty css */
|
|
57
|
+
/* empty css */
|
|
58
|
+
import "../Modal/contextApi/store.js";
|
|
56
59
|
import "../Hyperlink/Hyperlink.css.js";
|
|
57
60
|
/* empty css */
|
|
58
61
|
import "iframe-resizer";
|
|
@@ -60,6 +63,12 @@ import "iframe-resizer";
|
|
|
60
63
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
61
64
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
62
65
|
import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
|
|
66
|
+
import "../Input/PercentageInput.js";
|
|
67
|
+
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
68
|
+
/* empty css */
|
|
69
|
+
import "react-dom";
|
|
70
|
+
/* empty css */
|
|
71
|
+
import "../Auth/SignInPassword.js";
|
|
63
72
|
/* empty css */
|
|
64
73
|
/* empty css */
|
|
65
74
|
/* empty css */
|
|
@@ -80,23 +89,25 @@ import "../FaqAccordion/index.js";
|
|
|
80
89
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
81
90
|
/* empty css */
|
|
82
91
|
/* empty css */
|
|
92
|
+
/* empty css */
|
|
83
93
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
94
|
+
import "next/script.js";
|
|
95
|
+
/* empty css */
|
|
84
96
|
/* empty css */
|
|
85
97
|
/* empty css */
|
|
86
98
|
/* empty css */
|
|
87
99
|
/* empty css */
|
|
88
100
|
/* empty css */
|
|
89
101
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
90
|
-
/* empty css */
|
|
91
|
-
import "../Modal/contextApi/store.js";
|
|
92
102
|
/* empty css */
|
|
93
103
|
import "next/navigation.js";
|
|
94
104
|
/* empty css */
|
|
95
105
|
/* empty css */
|
|
96
106
|
/* empty css */
|
|
107
|
+
import "next/link.js";
|
|
108
|
+
import "../NavigationMenu/AxosBank/MobileMenu/MobileNavData.js";
|
|
97
109
|
/* empty css */
|
|
98
110
|
import "../NavigationMenu/AxosBank/NavData.js";
|
|
99
|
-
import "next/link.js";
|
|
100
111
|
/* empty css */
|
|
101
112
|
/* empty css */
|
|
102
113
|
import "../NavigationMenu/AxosALTS/NavData.js";
|
|
@@ -112,10 +123,9 @@ import "react-slick";
|
|
|
112
123
|
import "../StepItem/StepItem.css.js";
|
|
113
124
|
import "../StepItemSet/StepItemSet.css.js";
|
|
114
125
|
/* empty css */
|
|
126
|
+
/* empty css */
|
|
115
127
|
/* empty css */
|
|
116
128
|
/* empty css */
|
|
117
|
-
import "next/script.js";
|
|
118
|
-
/* empty css */
|
|
119
129
|
/* empty css */
|
|
120
130
|
const ContactUsNMLSId = ({
|
|
121
131
|
icon = false,
|
|
@@ -135,7 +145,7 @@ const ContactUsNMLSId = ({
|
|
|
135
145
|
first_name: z.string().regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g).trim().min(1, { message: "First Name is required." }),
|
|
136
146
|
last_name: z.string().regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g).trim().min(1, { message: "Last Name is required." }),
|
|
137
147
|
email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
|
|
138
|
-
phone: z.string().regex(/[\d-]{10}
|
|
148
|
+
phone: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, "Invalid phone number.").min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
|
|
139
149
|
const removeDashes = val.replace(/-/gi, "");
|
|
140
150
|
if (removeDashes.length !== 10) {
|
|
141
151
|
ctx.addIssue({
|
|
@@ -144,13 +154,28 @@ const ContactUsNMLSId = ({
|
|
|
144
154
|
});
|
|
145
155
|
return z.NEVER;
|
|
146
156
|
}
|
|
157
|
+
if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
|
|
158
|
+
ctx.addIssue({
|
|
159
|
+
code: z.ZodIssueCode.custom,
|
|
160
|
+
message: "Invalid phone number."
|
|
161
|
+
});
|
|
162
|
+
return z.NEVER;
|
|
163
|
+
}
|
|
147
164
|
return removeDashes;
|
|
148
165
|
}),
|
|
149
166
|
NMLS_ID__c: z.string().min(6).max(7)
|
|
150
167
|
});
|
|
168
|
+
const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
|
|
169
|
+
if (!isValidHoneyPot(data)) {
|
|
170
|
+
ctx.addIssue({
|
|
171
|
+
code: z.ZodIssueCode.custom,
|
|
172
|
+
message: "fields are not valid."
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
});
|
|
151
176
|
const methods = useForm({
|
|
152
177
|
resolver: zodResolver(
|
|
153
|
-
|
|
178
|
+
gen_schema,
|
|
154
179
|
{
|
|
155
180
|
async: true
|
|
156
181
|
},
|
|
@@ -266,7 +291,8 @@ const ContactUsNMLSId = ({
|
|
|
266
291
|
helperText: errors.NMLS_ID__c?.message,
|
|
267
292
|
variant
|
|
268
293
|
}
|
|
269
|
-
) })
|
|
294
|
+
) }),
|
|
295
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
|
|
270
296
|
] }),
|
|
271
297
|
children,
|
|
272
298
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -5,10 +5,10 @@ export type CpraInputs = {
|
|
|
5
5
|
Categories_of_personal_info: "Yes" | "No";
|
|
6
6
|
Pieces_of_personal_information: "Yes" | "No";
|
|
7
7
|
Request_Correction_of_Information: "Yes" | "No";
|
|
8
|
-
Corrected_Information: string;
|
|
9
8
|
Delete_personal_info: "Yes" | "No";
|
|
10
9
|
Opt_out_of_sale_of_info: "Yes" | "No";
|
|
11
10
|
Current_client: "Yes" | "No";
|
|
11
|
+
Former_client: "Yes" | "No";
|
|
12
12
|
Currently_Employed_by_Axos_Financial: "Yes" | "No";
|
|
13
13
|
Previously_Employed_by_Axos_Financial: "Yes" | "No";
|
|
14
14
|
Ever_Applied_for_Employment_with_Axos_Financial: "Yes" | "No";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
4
4
|
import { Button } from "../Button/Button.js";
|
|
5
5
|
import "../Button/Button.css.js";
|
|
@@ -16,6 +16,7 @@ import { InputPhone } from "../Input/InputPhone.js";
|
|
|
16
16
|
import "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
18
|
import { RadioButtonSet, RadioButton } from "../Input/RadioButton.js";
|
|
19
|
+
import CheckboxGroup from "../Input/CheckboxGroup.js";
|
|
19
20
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
20
21
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
21
22
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -25,13 +26,14 @@ import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/Downl
|
|
|
25
26
|
/* empty css */
|
|
26
27
|
/* empty css */
|
|
27
28
|
/* empty css */
|
|
29
|
+
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
30
|
+
import { associatedEmail } from "../utils/EverestValidity.js";
|
|
28
31
|
import { getVariant } from "../utils/getVariant.js";
|
|
29
32
|
import clsx from "clsx";
|
|
30
33
|
import { useForm, FormProvider } from "react-hook-form";
|
|
31
34
|
import * as z from "zod";
|
|
32
35
|
import { iconForm, headerContainer, form, descriptionField, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
33
|
-
import
|
|
34
|
-
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
36
|
+
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
35
37
|
const CpraRequest = ({
|
|
36
38
|
icon = false,
|
|
37
39
|
children,
|
|
@@ -49,21 +51,11 @@ const CpraRequest = ({
|
|
|
49
51
|
California_Resident: z.string(),
|
|
50
52
|
Categories_of_personal_info: z.string(),
|
|
51
53
|
Pieces_of_personal_information: z.string(),
|
|
52
|
-
Request_Correction_of_Information: z.string()
|
|
53
|
-
Corrected_Information: z.string().optional().refine(
|
|
54
|
-
(val) => {
|
|
55
|
-
if (requestCorrectionOfInfo === "Yes" && !val) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
return true;
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
message: "Corrected Information is required."
|
|
62
|
-
}
|
|
63
|
-
),
|
|
54
|
+
Request_Correction_of_Information: z.string(),
|
|
64
55
|
Delete_personal_info: z.string(),
|
|
65
56
|
Opt_out_of_sale_of_info: z.string(),
|
|
66
57
|
Current_client: z.string(),
|
|
58
|
+
Former_client: z.string(),
|
|
67
59
|
Currently_Employed_by_Axos_Financial: z.string(),
|
|
68
60
|
Previously_Employed_by_Axos_Financial: z.string(),
|
|
69
61
|
Ever_Applied_for_Employment_with_Axos_Financial: z.string(),
|
|
@@ -81,7 +73,7 @@ const CpraRequest = ({
|
|
|
81
73
|
message: "Last Name is required."
|
|
82
74
|
}).trim().min(1, { message: "Last Name is required." }),
|
|
83
75
|
email: z.string().email({ message: "Email is required." }),
|
|
84
|
-
Telephone: z.string().regex(/[\d-]{10}/,
|
|
76
|
+
Telephone: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, "Invalid phone number.").min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
|
|
85
77
|
const removeDashes = val.replace(/-/gi, "");
|
|
86
78
|
if (removeDashes.length !== 10) {
|
|
87
79
|
ctx.addIssue({
|
|
@@ -90,11 +82,26 @@ const CpraRequest = ({
|
|
|
90
82
|
});
|
|
91
83
|
return z.NEVER;
|
|
92
84
|
}
|
|
85
|
+
if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
|
|
86
|
+
ctx.addIssue({
|
|
87
|
+
code: z.ZodIssueCode.custom,
|
|
88
|
+
message: "Invalid phone number."
|
|
89
|
+
});
|
|
90
|
+
return z.NEVER;
|
|
91
|
+
}
|
|
93
92
|
return removeDashes;
|
|
94
93
|
})
|
|
95
94
|
});
|
|
95
|
+
const gen_schema = schema.merge(honeyPotSchema).superRefine((data, ctx) => {
|
|
96
|
+
if (!isValidHoneyPot(data)) {
|
|
97
|
+
ctx.addIssue({
|
|
98
|
+
code: z.ZodIssueCode.custom,
|
|
99
|
+
message: "fields are not valid."
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
});
|
|
96
103
|
const methods = useForm({
|
|
97
|
-
resolver: zodResolver(
|
|
104
|
+
resolver: zodResolver(gen_schema, {
|
|
98
105
|
async: true
|
|
99
106
|
}),
|
|
100
107
|
mode: "all"
|
|
@@ -103,20 +110,12 @@ const CpraRequest = ({
|
|
|
103
110
|
handleSubmit,
|
|
104
111
|
register,
|
|
105
112
|
setValue,
|
|
106
|
-
watch,
|
|
107
113
|
formState: { errors, isValid, isSubmitting }
|
|
108
114
|
} = methods;
|
|
109
115
|
const submitForm = async (data) => {
|
|
110
116
|
await onSubmit(data);
|
|
111
117
|
};
|
|
112
118
|
const variant = getVariant(fullVariant);
|
|
113
|
-
const options = [
|
|
114
|
-
{ label: "Address", value: "Address" },
|
|
115
|
-
{ label: "Name", value: "Name" },
|
|
116
|
-
{ label: "Phone Number", value: "Phone Number" },
|
|
117
|
-
{ label: "Date of Birth", value: "Date of Birth" },
|
|
118
|
-
{ label: "Email", value: "Email" }
|
|
119
|
-
];
|
|
120
119
|
const options2 = [
|
|
121
120
|
{ label: "Axos Bank", value: "Axos Bank" },
|
|
122
121
|
{
|
|
@@ -126,15 +125,7 @@ const CpraRequest = ({
|
|
|
126
125
|
{ label: "UFB Direct", value: "UFB Direct" },
|
|
127
126
|
{ label: "Other", value: "Other" }
|
|
128
127
|
];
|
|
129
|
-
const [selectedValues, setSelectedValues] = useState([]);
|
|
130
128
|
const [selectedValues2, setSelectedValues2] = useState([]);
|
|
131
|
-
const requestCorrectionOfInfo = watch("Request_Correction_of_Information");
|
|
132
|
-
const handleSelectedValues = (updatedValues) => {
|
|
133
|
-
if (updatedValues) {
|
|
134
|
-
setSelectedValues(updatedValues);
|
|
135
|
-
setValue("Corrected_Information", updatedValues.join(";"));
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
129
|
const handleSelectedValues2 = (updatedValues) => {
|
|
139
130
|
if (updatedValues) {
|
|
140
131
|
setSelectedValues2(updatedValues);
|
|
@@ -252,12 +243,12 @@ const CpraRequest = ({
|
|
|
252
243
|
]
|
|
253
244
|
}
|
|
254
245
|
) }),
|
|
255
|
-
/* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: "By selecting specific pieces of personal information Axos Financial has collected about you, you are required to sign a declaration, under penalty of perjury, that you are the individual whose information is provided above.
|
|
246
|
+
/* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: "By selecting specific pieces of personal information Axos Financial has collected about you, you are required to sign a declaration, under penalty of perjury, that you are the individual whose information is provided above." }) }),
|
|
256
247
|
/* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
|
|
257
248
|
RadioButtonSet,
|
|
258
249
|
{
|
|
259
250
|
id: "Request_Correction_of_Information",
|
|
260
|
-
label: "Request correction of information?",
|
|
251
|
+
label: "* Request correction of information?",
|
|
261
252
|
sizes: "medium",
|
|
262
253
|
required: true,
|
|
263
254
|
error: !!errors.Request_Correction_of_Information,
|
|
@@ -285,18 +276,6 @@ const CpraRequest = ({
|
|
|
285
276
|
]
|
|
286
277
|
}
|
|
287
278
|
) }),
|
|
288
|
-
requestCorrectionOfInfo === "Yes" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
289
|
-
/* @__PURE__ */ jsx("div", { className: `${descriptionField({ variant })}`, children: "Please select all that apply." }),
|
|
290
|
-
/* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
|
|
291
|
-
CheckboxGroup,
|
|
292
|
-
{
|
|
293
|
-
options,
|
|
294
|
-
selectedValues,
|
|
295
|
-
error: !!errors.Corrected_Information,
|
|
296
|
-
onChange: handleSelectedValues
|
|
297
|
-
}
|
|
298
|
-
) })
|
|
299
|
-
] }),
|
|
300
279
|
/* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs("div", { className: `${form} ${descriptionField({ variant })}`, children: [
|
|
301
280
|
/* @__PURE__ */ jsx("u", { children: "Right to Delete:" }),
|
|
302
281
|
" You have the right to submit a verifiable request asking that Axos Financial delete certain personal information Axos Financial has collected from you, subject to certain exceptions as permitted by law."
|
|
@@ -374,7 +353,7 @@ const CpraRequest = ({
|
|
|
374
353
|
RadioButtonSet,
|
|
375
354
|
{
|
|
376
355
|
id: "Current_client",
|
|
377
|
-
label: "* I am a current
|
|
356
|
+
label: "* I am a current client or customer.",
|
|
378
357
|
sizes: "medium",
|
|
379
358
|
required: true,
|
|
380
359
|
error: !!errors.Current_client,
|
|
@@ -402,6 +381,38 @@ const CpraRequest = ({
|
|
|
402
381
|
]
|
|
403
382
|
}
|
|
404
383
|
) }),
|
|
384
|
+
/* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
|
|
385
|
+
RadioButtonSet,
|
|
386
|
+
{
|
|
387
|
+
id: "Former_client",
|
|
388
|
+
label: "* I am a former client or customer.",
|
|
389
|
+
sizes: "medium",
|
|
390
|
+
required: true,
|
|
391
|
+
error: !!errors.Former_client,
|
|
392
|
+
helperText: errors.Former_client?.message,
|
|
393
|
+
variant,
|
|
394
|
+
children: [
|
|
395
|
+
/* @__PURE__ */ jsx(
|
|
396
|
+
RadioButton,
|
|
397
|
+
{
|
|
398
|
+
...register("Former_client", {}),
|
|
399
|
+
value: "Yes",
|
|
400
|
+
radioText: "Yes",
|
|
401
|
+
groupName: "Former_client"
|
|
402
|
+
}
|
|
403
|
+
),
|
|
404
|
+
/* @__PURE__ */ jsx(
|
|
405
|
+
RadioButton,
|
|
406
|
+
{
|
|
407
|
+
...register("Former_client", {}),
|
|
408
|
+
value: "No",
|
|
409
|
+
radioText: "No",
|
|
410
|
+
groupName: "Former_client"
|
|
411
|
+
}
|
|
412
|
+
)
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
) }),
|
|
405
416
|
/* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
|
|
406
417
|
RadioButtonSet,
|
|
407
418
|
{
|
|
@@ -506,7 +517,7 @@ const CpraRequest = ({
|
|
|
506
517
|
) }),
|
|
507
518
|
/* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
|
|
508
519
|
/* @__PURE__ */ jsx("h2", { className: `header_2 ${descriptionField({ variant })}`, children: "Step 3: Where have you interacted with Axos Financial?" }),
|
|
509
|
-
/* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: "Please select all that apply." })
|
|
520
|
+
/* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: "* Please select all that apply." })
|
|
510
521
|
] }),
|
|
511
522
|
/* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
|
|
512
523
|
CheckboxGroup,
|
|
@@ -523,7 +534,7 @@ const CpraRequest = ({
|
|
|
523
534
|
{
|
|
524
535
|
id: "First_Name",
|
|
525
536
|
...register("First_Name", { required: true }),
|
|
526
|
-
label: "First Name",
|
|
537
|
+
label: "* First Name",
|
|
527
538
|
sizes: "medium",
|
|
528
539
|
required: true,
|
|
529
540
|
error: !!errors.First_Name,
|
|
@@ -536,7 +547,7 @@ const CpraRequest = ({
|
|
|
536
547
|
{
|
|
537
548
|
id: "Last_Name",
|
|
538
549
|
...register("Last_Name", { required: true }),
|
|
539
|
-
label: "Last Name",
|
|
550
|
+
label: "* Last Name",
|
|
540
551
|
sizes: "medium",
|
|
541
552
|
required: true,
|
|
542
553
|
error: !!errors.Last_Name,
|
|
@@ -552,7 +563,7 @@ const CpraRequest = ({
|
|
|
552
563
|
required: true
|
|
553
564
|
}),
|
|
554
565
|
type: "date",
|
|
555
|
-
label: "Date of Birth",
|
|
566
|
+
label: "* Date of Birth",
|
|
556
567
|
sizes: "medium",
|
|
557
568
|
placeholder: "Date of Birth",
|
|
558
569
|
required: true,
|
|
@@ -566,12 +577,12 @@ const CpraRequest = ({
|
|
|
566
577
|
{
|
|
567
578
|
id: "email",
|
|
568
579
|
...register("email", {
|
|
569
|
-
required: true
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
580
|
+
required: true,
|
|
581
|
+
validate: {
|
|
582
|
+
isValid: associatedEmail
|
|
583
|
+
}
|
|
573
584
|
}),
|
|
574
|
-
label: "Email",
|
|
585
|
+
label: "* Email",
|
|
575
586
|
sizes: "medium",
|
|
576
587
|
required: true,
|
|
577
588
|
error: !!errors.email,
|
|
@@ -584,7 +595,7 @@ const CpraRequest = ({
|
|
|
584
595
|
{
|
|
585
596
|
id: "Telephone",
|
|
586
597
|
...register("Telephone", { required: true, maxLength: 12 }),
|
|
587
|
-
label: "Preferred Phone",
|
|
598
|
+
label: "* Preferred Phone",
|
|
588
599
|
sizes: "medium",
|
|
589
600
|
required: true,
|
|
590
601
|
error: !!errors.Telephone,
|
|
@@ -597,7 +608,7 @@ const CpraRequest = ({
|
|
|
597
608
|
{
|
|
598
609
|
id: "Street_Address",
|
|
599
610
|
...register("Street_Address", { required: true }),
|
|
600
|
-
label: "Street Address",
|
|
611
|
+
label: "* Street Address",
|
|
601
612
|
sizes: "medium",
|
|
602
613
|
required: true,
|
|
603
614
|
variant
|
|
@@ -608,7 +619,7 @@ const CpraRequest = ({
|
|
|
608
619
|
{
|
|
609
620
|
id: "City",
|
|
610
621
|
...register("City", { required: true }),
|
|
611
|
-
label: "City",
|
|
622
|
+
label: "* City",
|
|
612
623
|
sizes: "medium",
|
|
613
624
|
required: true,
|
|
614
625
|
variant
|
|
@@ -621,7 +632,7 @@ const CpraRequest = ({
|
|
|
621
632
|
...register("State_", {
|
|
622
633
|
required: true
|
|
623
634
|
}),
|
|
624
|
-
label: "State",
|
|
635
|
+
label: "* State",
|
|
625
636
|
sizes: "medium",
|
|
626
637
|
required: true,
|
|
627
638
|
error: !!errors.State_,
|
|
@@ -686,7 +697,7 @@ const CpraRequest = ({
|
|
|
686
697
|
{
|
|
687
698
|
id: "Zip_Code",
|
|
688
699
|
...register("Zip_Code", { required: true }),
|
|
689
|
-
label: "Zip Code",
|
|
700
|
+
label: "* Zip Code",
|
|
690
701
|
sizes: "medium",
|
|
691
702
|
required: true,
|
|
692
703
|
variant
|
|
@@ -724,7 +735,8 @@ const CpraRequest = ({
|
|
|
724
735
|
)
|
|
725
736
|
]
|
|
726
737
|
}
|
|
727
|
-
) })
|
|
738
|
+
) }),
|
|
739
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
|
|
728
740
|
] }),
|
|
729
741
|
children,
|
|
730
742
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FormProps } from './FormProps';
|
|
2
2
|
|
|
3
3
|
export type CraPublicFileInputs = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
First_Name__c: string;
|
|
5
|
+
Last_Name__c: string;
|
|
6
|
+
Customer_Email__c: string;
|
|
7
|
+
Customer_Phone__c: string;
|
|
8
|
+
description: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const CraPublicFile: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|