@axos-web-dev/shared-components 2.0.0-dev.9-fixdependencies → 2.0.0-dev.login
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/README.md +111 -111
- package/dist/ATMLocator/ATMLocator.d.ts +1 -1
- package/dist/ATMLocator/ATMLocator.js +13 -8
- package/dist/Accordion/Accordion.d.ts +3 -3
- package/dist/Article/Article.css.d.ts +8 -4
- package/dist/Article/Article.d.ts +1 -1
- package/dist/ArticlesSet/ArticlesSet.css.d.ts +23 -1
- package/dist/ArticlesSet/ArticlesSet.css.js +7 -7
- package/dist/ArticlesSet/ArticlesSet.js +3 -4
- package/dist/Auth/ErrorAlert.d.ts +1 -1
- package/dist/Auth/ErrorAlert.js +14 -9
- package/dist/Auth/Logout.d.ts +1 -1
- package/dist/Auth/SignInPassword.d.ts +1 -1
- package/dist/Auth/SignInPassword.js +1 -1
- package/dist/Avatar/Avatar.module.js +7 -7
- package/dist/AwardsItem/AwardsItem.js +2 -2
- package/dist/Blockquote/Blockquote.module.js +3 -3
- package/dist/BulletItem/BulletItem.d.ts +1 -1
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +34 -11
- package/dist/Button/GoBackButton.d.ts +1 -1
- package/dist/Calculators/AnnualFeeCalculator/index.js +1 -1
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +46 -5
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +72 -19
- package/dist/Calculators/ApyCalculator/index.js +583 -293
- package/dist/Calculators/ApyCalculatorUserTest/ApyCalculatorUserTest.css.d.ts +95 -0
- package/dist/Calculators/ApyCalculatorUserTest/ApyCalculatorUserTest.css.js +101 -0
- package/dist/Calculators/ApyCalculatorUserTest/index.d.ts +12 -0
- package/dist/Calculators/ApyCalculatorUserTest/index.js +618 -0
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +3 -1
- package/dist/Calculators/Calculator.d.ts +1 -1
- package/dist/Calculators/Calculator.js +21 -6
- package/dist/Calculators/MarginTradingCalculator/index.js +15 -10
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +1 -1
- package/dist/Calculators/MaxLoanCalculator/index.js +1 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +1 -1
- package/dist/Calculators/calculator.css.d.ts +21 -1
- package/dist/Calculators/calculator.css.js +3 -3
- package/dist/Calculators/index.d.ts +1 -0
- package/dist/Calculators/index.js +2 -0
- package/dist/Carousel/index.d.ts +3 -3
- package/dist/Carousel/index.js +14 -9
- package/dist/Chatbot/AnimatedGradientBorder.css.d.ts +3 -0
- package/dist/Chatbot/AnimatedGradientBorder.css.js +8 -2
- package/dist/Chatbot/AudioManager.d.ts +19 -0
- package/dist/Chatbot/AudioManager.js +61 -0
- package/dist/Chatbot/Bubble.css.js +2 -2
- package/dist/Chatbot/Bubble.d.ts +2 -2
- package/dist/Chatbot/Bubble.js +84 -103
- package/dist/Chatbot/Chat.d.ts +1 -1
- package/dist/Chatbot/Chat.js +17 -7
- package/dist/Chatbot/ChatWindow.css.d.ts +4 -0
- package/dist/Chatbot/ChatWindow.css.js +45 -37
- package/dist/Chatbot/ChatWindow.js +462 -367
- package/dist/Chatbot/Chatbot.css.js +0 -1
- package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
- package/dist/Chatbot/Chatbot.d.ts +13 -2
- package/dist/Chatbot/Chatbot.js +170 -81
- package/dist/Chatbot/ChatbotMessage.js +183 -197
- package/dist/Chatbot/EllipsisAnimation.d.ts +1 -1
- package/dist/Chatbot/EllipsisAnimation.js +0 -6
- package/dist/Chatbot/EllipsisIcon.d.ts +1 -1
- package/dist/Chatbot/ExpandChatToggle.d.ts +8 -0
- package/dist/Chatbot/ExpandChatToggle.js +74 -0
- package/dist/Chatbot/index.js +7 -2
- package/dist/Chatbot/store/chat.d.ts +8 -0
- package/dist/Chatbot/store/chat.js +14 -2
- package/dist/Chatbot/useHeadlessChat.js +1 -2
- package/dist/Chevron/Chevron.interface.d.ts +1 -0
- package/dist/Chevron/index.js +20 -11
- package/dist/Comparison/Comparison.css.d.ts +1 -0
- package/dist/Comparison/Comparison.css.js +16 -16
- package/dist/Comparison/Comparison.d.ts +1 -1
- package/dist/Comparison/Comparison.js +13 -8
- package/dist/Comparison/ComparisonSet.d.ts +1 -1
- package/dist/Comparison/ComparisonSet.js +2 -1
- package/dist/Comparison/index.js +2 -1
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +27 -0
- package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +287 -268
- package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
- package/dist/ExecutiveBio/Overlay.d.ts +1 -1
- package/dist/FaqAccordion/index.d.ts +5 -5
- package/dist/FaqAccordion/index.js +15 -10
- package/dist/FdicCallout/FdicCallout.module.js +2 -2
- package/dist/FdicCallout/index.d.ts +1 -1
- package/dist/FdicCallout/index.js +2 -1
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +4 -4
- package/dist/FooterDisclosure/FooterDisclosure.js +1 -0
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.d.ts +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.d.ts +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +685 -647
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplyNow.d.ts +1 -1
- package/dist/Forms/ApplyNow.js +14 -9
- package/dist/Forms/BoatMooringLocation.d.ts +5 -2
- package/dist/Forms/BoatMooringLocation.js +134 -53
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDepositsACS.d.ts +3 -0
- package/dist/Forms/CommercialDepositsACS.js +278 -0
- package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +1 -1
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/CommercialTrustAndEstate.d.ts +15 -0
- package/dist/Forms/CommercialTrustAndEstate.js +237 -0
- package/dist/Forms/ConstructionLendingDynamic.d.ts +1 -1
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +17 -12
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +17 -12
- package/dist/Forms/ContactUsLVF.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +17 -12
- package/dist/Forms/ContactUsSchwabAAS.d.ts +11 -0
- package/dist/Forms/ContactUsSchwabAAS.js +263 -0
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +16 -11
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +17 -12
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +18 -13
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/FormEnums.js +2 -2
- package/dist/Forms/Forms.css.d.ts +4 -0
- package/dist/Forms/Forms.css.js +3 -1
- package/dist/Forms/HoneyPot/index.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +14 -9
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +14 -9
- package/dist/Forms/MortgageWarehouseLending.d.ts +2 -2
- package/dist/Forms/MortgageWarehouseLending.js +24 -19
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/UserInformation.d.ts +1 -1
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/SuccesForm.d.ts +1 -1
- package/dist/Forms/SuccesForm.js +15 -10
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/Forms/index.d.ts +3 -0
- package/dist/Forms/index.js +8 -1
- package/dist/HeroBanner/HeroBanner.d.ts +1 -1
- package/dist/HeroBanner/HeroBanner.interface.d.ts +2 -0
- package/dist/HeroBanner/HeroBanner.js +33 -28
- package/dist/HeroBanner/HeroVideoPoster.d.ts +1 -1
- package/dist/HeroBanner/LargeHeroBanner.d.ts +1 -1
- package/dist/Hyperlink/index.js +15 -10
- package/dist/IconBillboard/IconBillboard.css.d.ts +16 -0
- package/dist/IconBillboard/IconBillboard.css.js +7 -4
- package/dist/IconBillboard/IconBillboard.d.ts +1 -1
- package/dist/IconBillboard/IconBillboard.interface.d.ts +2 -0
- package/dist/IconBillboard/IconBillboardSet.d.ts +1 -1
- package/dist/IconBillboard/IconBillboardSet.js +68 -62
- package/dist/IconBillboard/index.js +2 -1
- package/dist/IconBillboard/sections/CallToActionSection.d.ts +1 -1
- package/dist/IconBillboard/sections/CallToActionSection.js +3 -1
- package/dist/IconBillboard/sections/HeaderSection.d.ts +2 -2
- package/dist/IconBillboard/sections/IconSection.d.ts +1 -1
- package/dist/IconBillboard/sections/ItemsSection.d.ts +1 -1
- package/dist/IconBillboard/sections/LayoutSection.d.ts +1 -1
- package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboard.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +2 -0
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +28 -20
- package/dist/ImageLink/ImageLink.d.ts +1 -1
- package/dist/ImageLink/ImageLink.js +10 -5
- package/dist/ImageLink/ImageLinkSet.d.ts +1 -1
- package/dist/ImageLink/ImageLinkSet.js +9 -4
- package/dist/ImageLink/index.js +14 -9
- package/dist/ImageToast/ImageToast.css.d.ts +5 -0
- package/dist/ImageToast/ImageToast.css.js +13 -0
- package/dist/ImageToast/index.d.ts +9 -0
- package/dist/{NavigationMenu/Navbar.js → ImageToast/index.js} +88 -99
- package/dist/ImageWrapper/ImageWrapper.d.ts +1 -1
- package/dist/Insight/Featured/CategorySelector.d.ts +3 -3
- package/dist/Insight/Featured/CategorySelector.js +17 -11
- package/dist/Insight/Featured/Featured.d.ts +2 -2
- package/dist/Insight/Featured/Featured.js +14 -9
- package/dist/Insight/Featured/Header.d.ts +2 -3
- package/dist/Insight/Featured/Header.js +14 -9
- package/dist/Interstitial/Interstitial.module.js +10 -10
- package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +1 -0
- package/dist/LandingPageHeader/LandingPageHeader.css.js +2 -0
- package/dist/LandingPageHeader/LandingPageHeader.d.ts +2 -1
- package/dist/LandingPageHeader/LandingPageHeader.js +338 -23
- package/dist/LandingPageHeader/index.js +2 -1
- package/dist/LoadingIndicator/index.d.ts +1 -1
- package/dist/MainHTML/index.d.ts +1 -1
- package/dist/Modal/Modal.js +16 -11
- package/dist/Modal/contextApi/store.d.ts +6 -1
- package/dist/Modal/contextApi/store.js +112 -6
- package/dist/NavigationMenu/AxosALTS/NavBar.module.js +23 -23
- package/dist/NavigationMenu/AxosALTS/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosALTS/index.js +48 -29
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisor/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisor/index.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +53 -53
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/index.js +31 -24
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +12 -7
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +27 -27
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +15 -16
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +35 -42
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
- package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +106 -150
- package/dist/NavigationMenu/AxosBank/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/index.js +83 -54
- package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
- package/dist/NavigationMenu/AxosClearing/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosClearing/SubNavBar.js +6 -6
- package/dist/NavigationMenu/AxosClearing/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosClearing/index.js +31 -16
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +40 -43
- package/dist/NavigationMenu/AxosFiduciary/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosFiduciary/index.js +5 -3
- package/dist/NavigationMenu/LaVictoire/NavBar.module.js +37 -37
- package/dist/NavigationMenu/LaVictoire/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/LaVictoire/index.d.ts +1 -1
- package/dist/NavigationMenu/LaVictoire/index.js +16 -11
- package/dist/NavigationMenu/NavItem/index.d.ts +1 -1
- package/dist/NavigationMenu/NavItem/index.js +141 -1
- package/dist/NavigationMenu/ServerNavigation/DropwdownButton.d.ts +8 -0
- package/dist/NavigationMenu/ServerNavigation/DropwdownButton.js +248 -0
- package/dist/NavigationMenu/ServerNavigation/Menu.d.ts +40 -0
- package/dist/NavigationMenu/ServerNavigation/Menu.js +268 -0
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileMenu.d.ts +13 -0
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileMenu.js +637 -0
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileMenu.module.js +86 -0
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileNavData.d.ts +51 -0
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileNavData.js +96 -0
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/mobileReducer.d.ts +36 -0
- package/dist/NavigationMenu/ServerNavigation/MobileMenu/mobileReducer.js +105 -0
- package/dist/NavigationMenu/ServerNavigation/NavBar.module.js +125 -0
- package/dist/NavigationMenu/ServerNavigation/NavigationBar.css.d.ts +7 -0
- package/dist/NavigationMenu/ServerNavigation/NavigationBar.css.js +22 -0
- package/dist/NavigationMenu/ServerNavigation/SubNavBar.d.ts +6 -0
- package/dist/NavigationMenu/ServerNavigation/SubNavBar.js +281 -0
- package/dist/NavigationMenu/ServerNavigation/SubNavItem.d.ts +1 -0
- package/dist/NavigationMenu/ServerNavigation/SubNavItem.js +317 -0
- package/dist/NavigationMenu/ServerNavigation/SubNavbar.css.d.ts +60 -0
- package/dist/NavigationMenu/ServerNavigation/SubNavbar.css.js +22 -0
- package/dist/NavigationMenu/ServerNavigation/index.d.ts +7 -0
- package/dist/NavigationMenu/ServerNavigation/index.js +297 -0
- package/dist/NavigationMenu/index.d.ts +2 -0
- package/dist/NavigationMenu/index.js +19 -10
- package/dist/NavigationMenu/utils.d.ts +480 -0
- package/dist/NavigationMenu/utils.js +128 -0
- package/dist/PageNavSet/PageNavSet.js +16 -8
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/SecondaryFooter/index.d.ts +1 -1
- package/dist/SecondaryFooter/index.js +8 -1
- package/dist/SetContainer/SetContainer.css.d.ts +4 -0
- package/dist/SetContainer/SetContainer.css.js +5 -3
- package/dist/SetContainer/SetContainer.d.ts +1 -1
- package/dist/SetContainer/SetContainer.js +18 -7
- package/dist/SetContainer/index.js +2 -1
- package/dist/SocialMediaBar/iconsRepository.d.ts +14 -14
- package/dist/SocialMediaBar/iconsRepository.js +14 -9
- package/dist/SocialMediaBar/index.d.ts +1 -1
- package/dist/SocialMediaBar/index.js +1 -1
- package/dist/StepItemSet/StepItemSet.css.d.ts +3 -0
- package/dist/Tab/Tab.d.ts +1 -1
- package/dist/Tab/TabContainer.d.ts +1 -1
- package/dist/Table/Table.css.d.ts +17 -1
- package/dist/Table/Table.css.js +26 -19
- package/dist/Table/Table.d.ts +5 -5
- package/dist/Table/Table.interface.d.ts +5 -8
- package/dist/Table/Table.js +30 -38
- package/dist/Table/index.js +3 -1
- package/dist/TextBlock/TextBlock.d.ts +1 -1
- package/dist/Topic/Topic.d.ts +4 -4
- package/dist/TopicalNavItem/TopicalNavItem.css.d.ts +0 -1
- package/dist/TopicalNavItem/TopicalNavItem.css.js +2 -4
- package/dist/TopicalNavItem/TopicalNavItem.js +11 -33
- package/dist/TopicalNavItem/index.js +1 -2
- package/dist/TopicalNavSet/TopicalNavSet.js +17 -9
- package/dist/VideoTile/VideoInit.d.ts +1 -1
- package/dist/VideoTile/VideoTile.js +13 -8
- package/dist/VideoWrapper/index.js +14 -9
- package/dist/WalnutIframe/index.d.ts +1 -1
- package/dist/WalnutIframe/wrapper.module.js +3 -3
- package/dist/assets/Article/Article.css +8 -4
- package/dist/assets/ArticlesSet/ArticlesSet.css +54 -39
- package/dist/assets/Auth/SignIn.css +2 -1
- package/dist/assets/Avatar/Avatar.css +59 -59
- package/dist/assets/Blockquote/Blockquote.css +72 -72
- package/dist/assets/Calculators/ApyCalculator/ApyCalculator.css +350 -64
- package/dist/assets/Calculators/ApyCalculatorUserTest/ApyCalculatorUserTest.css +424 -0
- package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +2 -2
- package/dist/assets/Calculators/calculator.css +25 -15
- package/dist/assets/CallToActionBar/CallToActionBar.css +2 -0
- package/dist/assets/Chatbot/AnimatedGradientBorder.css +39 -8
- package/dist/assets/Chatbot/Bubble.css +8 -2
- package/dist/assets/Chatbot/ChatWindow.css +166 -99
- package/dist/assets/Comparison/Comparison.css +32 -29
- package/dist/assets/DownloadTile/DownloadTile.css +3 -1
- package/dist/assets/ExecutiveBio/ExecutiveBio.css +55 -17
- package/dist/assets/FaqAccordion/FaqAccordion.css +1 -1
- package/dist/assets/FdicCallout/FdicCallout.css +48 -48
- package/dist/assets/FooterSiteMap/AxosBank/FooterSiteMap.css +2 -2
- package/dist/assets/Forms/Forms.css +9 -3
- package/dist/assets/HeroBanner/HeroBanner.css +1 -0
- package/dist/assets/IconBillboard/IconBillboard.css +64 -13
- package/dist/assets/ImageBillboard/ImageBillboard.css +1 -1
- package/dist/assets/ImageToast/ImageToast.css +39 -0
- package/dist/assets/Insight/Featured/Header.css +4 -2
- package/dist/assets/Interstitial/Interstitial.css +142 -142
- package/dist/assets/LandingPageHeader/LandingPageHeader.css +5 -0
- package/dist/assets/NavigationMenu/AxosALTS/NavBar.css +265 -264
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css +609 -609
- package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css +631 -630
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css +445 -445
- package/dist/assets/NavigationMenu/AxosClearing/NavBar.css +485 -484
- package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css +428 -427
- package/dist/assets/NavigationMenu/LaVictoire/NavBar.css +429 -429
- package/dist/assets/NavigationMenu/{AxosBank → ServerNavigation}/MobileMenu/MobileMenu.css +353 -353
- package/dist/assets/NavigationMenu/ServerNavigation/NavBar.css +483 -0
- package/dist/assets/NavigationMenu/ServerNavigation/NavigationBar.css +40 -0
- package/dist/assets/NavigationMenu/ServerNavigation/SubNavbar.css +87 -0
- package/dist/assets/SetContainer/SetContainer.css +27 -20
- package/dist/assets/SocialMediaBar/SocialMediaBar.css +1 -0
- package/dist/assets/StepItemSet/StepItemSet.css +3 -3
- package/dist/assets/Table/Table.css +112 -78
- package/dist/assets/TextBlock/TextBlock.css +7 -0
- package/dist/assets/TopicalNavItem/TopicalNavItem.css +25 -52
- package/dist/assets/TopicalNavSet/TopicalNavSet.css +28 -6
- package/dist/assets/VideoTile/VideoTile.css +3 -0
- package/dist/assets/WalnutIframe/wrapper.css +48 -48
- package/dist/assets/globals.css +36 -4
- package/dist/assets/themes/axos.css +8 -7
- package/dist/assets/themes/premier.css +9 -8
- package/dist/assets/themes/ufb.css +9 -8
- package/dist/assets/themes/victorie.css +9 -8
- package/dist/assets/utils/optimizeImage/optimizeImage.css +47 -47
- package/dist/globals.css.js +8 -1
- package/dist/icons/AxosX/Blue.d.ts +1 -1
- package/dist/icons/AxosX/index.d.ts +1 -1
- package/dist/icons/CheckCircle.d.ts +1 -1
- package/dist/icons/CheckCircleLight.d.ts +1 -1
- package/dist/icons/CheckIcon/index.d.ts +1 -1
- package/dist/icons/ChevronDown.d.ts +1 -1
- package/dist/icons/ChevronUp.d.ts +1 -1
- package/dist/icons/Clock/index.d.ts +1 -1
- package/dist/icons/EqualHousingLender.d.ts +1 -1
- package/dist/icons/Logos/AAS.d.ts +1 -1
- package/dist/icons/Logos/AFS.d.ts +1 -1
- package/dist/icons/Logos/AXA.d.ts +1 -1
- package/dist/icons/Logos/AXB.d.ts +1 -1
- package/dist/icons/Logos/AXC.d.ts +1 -1
- package/dist/icons/Logos/AXI.d.ts +1 -1
- package/dist/icons/Logos/AXOS.d.ts +1 -1
- package/dist/icons/Logos/GBLVF.d.ts +1 -1
- package/dist/icons/Logos/LVF.d.ts +1 -1
- package/dist/icons/Logos/LVFText.d.ts +1 -1
- package/dist/icons/Logos/SPB.d.ts +1 -1
- package/dist/icons/MemberFdicLogo.d.ts +1 -1
- package/dist/icons/QuoteIconGrey.d.ts +1 -1
- package/dist/icons/QuoteIconGrey.js +1 -0
- package/dist/icons/QuoteIconWhite.d.ts +1 -1
- package/dist/icons/QuoteIconWhite.js +1 -0
- package/dist/icons/QuoteIconYellow.d.ts +1 -1
- package/dist/icons/QuoteIconYellow.js +1 -0
- package/dist/index.css.js +8 -1
- package/dist/main.js +51 -21
- package/dist/themes/axos.css.d.ts +1 -0
- package/dist/themes/axos.css.js +1 -1
- package/dist/utils/allowedAxosDomains.js +8 -13
- package/dist/utils/appendQueryParams.d.ts +3 -1
- package/dist/utils/appendQueryParams.js +66 -66
- package/dist/utils/index.js +3 -1
- package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
- package/dist/utils/tealiumOrganicFallback.d.ts +21 -0
- package/dist/utils/tealiumOrganicFallback.js +26 -0
- package/dist/utils/useVisibility.d.ts +1 -0
- package/dist/utils/useVisibility.js +21 -0
- package/dist/vite-env.d.js +1 -0
- package/package.json +148 -148
- package/dist/Chatbot/authenticate.d.ts +0 -3
- package/dist/Chatbot/authenticate.js +0 -16
- package/dist/NavigationMenu/Navbar.d.ts +0 -5
- package/dist/NavigationMenu/SignInNavButton.d.ts +0 -1
- package/dist/NavigationMenu/SignInNavButton.js +0 -363
- package/dist/assets/Chatbot/Chatbot.css +0 -3
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
4
|
+
import { Button } from "../Button/Button.js";
|
|
5
|
+
import "../Button/Button.css.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-use";
|
|
8
|
+
import "../Input/Checkbox.js";
|
|
9
|
+
import "../Input/CurrencyInput.js";
|
|
10
|
+
import { Dropdown } from "../Input/Dropdown.js";
|
|
11
|
+
import "../Input/Dropdown.css.js";
|
|
12
|
+
import { Input } from "../Input/Input.js";
|
|
13
|
+
import "../Input/Input.css.js";
|
|
14
|
+
import "../Input/InputAmount.js";
|
|
15
|
+
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
|
+
import { InputTextArea } from "../Input/InputTextArea.js";
|
|
17
|
+
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
19
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
20
|
+
import SvgAxosX from "../icons/AxosX/index.js";
|
|
21
|
+
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
22
|
+
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
23
|
+
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 */
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
/* empty css */
|
|
27
|
+
/* empty css */
|
|
28
|
+
/* empty css */
|
|
29
|
+
import * as z from "zod";
|
|
30
|
+
import { associatedEmail } from "../utils/EverestValidity.js";
|
|
31
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
32
|
+
import { useCachedEmailValidator } from "../utils/useCachedValidators.js";
|
|
33
|
+
import clsx from "clsx";
|
|
34
|
+
import { useForm, FormProvider } from "react-hook-form";
|
|
35
|
+
import { iconForm, headerForm, form, descriptionField, headerContainer, x_input, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
36
|
+
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
37
|
+
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
38
|
+
const CommercialDepositsACS = ({
|
|
39
|
+
icon = false,
|
|
40
|
+
children,
|
|
41
|
+
onSubmit = (values) => {
|
|
42
|
+
console.log(values);
|
|
43
|
+
},
|
|
44
|
+
disclosure,
|
|
45
|
+
variant: fullVariant = "primary",
|
|
46
|
+
headline,
|
|
47
|
+
description,
|
|
48
|
+
callToAction,
|
|
49
|
+
validateEmail,
|
|
50
|
+
onValidate,
|
|
51
|
+
id
|
|
52
|
+
}) => {
|
|
53
|
+
const cachedEmailValidator = useCachedEmailValidator(validateEmail);
|
|
54
|
+
const schema = z.object({
|
|
55
|
+
first_name: z.string({ message: "First Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
|
|
56
|
+
message: "First Name is required."
|
|
57
|
+
}).trim().min(1, { message: "First Name is required." }),
|
|
58
|
+
last_name: z.string({ message: "Last Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
|
|
59
|
+
message: "Last Name is required."
|
|
60
|
+
}).trim().min(1, { message: "Last Name is required." }),
|
|
61
|
+
email: z.string().email({ message: "Email is required." }).refine(cachedEmailValidator, { message: "Invalid email address." }),
|
|
62
|
+
phone: z.string({ message: "Business Phone is required." }).regex(/[\d-]{10}/, { message: "Business Phone is required." }).min(10, { message: "Business Phone is required." }).max(12, { message: "Business Phone is required." }).transform((val, ctx) => {
|
|
63
|
+
const removeDashes = val.replace(/-/gi, "");
|
|
64
|
+
if (removeDashes.length !== 10) {
|
|
65
|
+
ctx.addIssue({
|
|
66
|
+
code: z.ZodIssueCode.custom,
|
|
67
|
+
message: "Business Phone must have at least 10 and no more than 10 characters."
|
|
68
|
+
});
|
|
69
|
+
return z.NEVER;
|
|
70
|
+
}
|
|
71
|
+
if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
|
|
72
|
+
ctx.addIssue({
|
|
73
|
+
code: z.ZodIssueCode.custom,
|
|
74
|
+
message: "Invalid phone number."
|
|
75
|
+
});
|
|
76
|
+
return z.NEVER;
|
|
77
|
+
}
|
|
78
|
+
return removeDashes;
|
|
79
|
+
}),
|
|
80
|
+
company: z.string({ message: "Business Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
|
|
81
|
+
message: "Business Name is required"
|
|
82
|
+
}).trim().min(1, { message: "Business Name is required." }),
|
|
83
|
+
Estimated_Gross_Annual_Revenue__c: z.string({
|
|
84
|
+
message: "Estimated gross annual revenue is required"
|
|
85
|
+
}).min(1, { message: "Estimated gross annual revenue is required" }),
|
|
86
|
+
Product_and_servicing_needs__c: z.string()
|
|
87
|
+
});
|
|
88
|
+
const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
|
|
89
|
+
if (!isValidHoneyPot(data)) {
|
|
90
|
+
ctx.addIssue({
|
|
91
|
+
code: z.ZodIssueCode.custom,
|
|
92
|
+
message: "fields are not valid."
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
const methods = useForm({
|
|
97
|
+
resolver: zodResolver(gen_schema),
|
|
98
|
+
mode: "all"
|
|
99
|
+
});
|
|
100
|
+
const {
|
|
101
|
+
handleSubmit,
|
|
102
|
+
register,
|
|
103
|
+
formState: { errors, isValid, isSubmitting }
|
|
104
|
+
} = methods;
|
|
105
|
+
const submitForm = async (data) => {
|
|
106
|
+
const processData = {
|
|
107
|
+
...data
|
|
108
|
+
};
|
|
109
|
+
await onSubmit(processData);
|
|
110
|
+
};
|
|
111
|
+
const variant = getVariant(fullVariant);
|
|
112
|
+
return /* @__PURE__ */ jsx(
|
|
113
|
+
"section",
|
|
114
|
+
{
|
|
115
|
+
id: `id_${id}`,
|
|
116
|
+
className: clsx(formContainer({ variant })),
|
|
117
|
+
children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
118
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
119
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(headerContainer, "text_center"), children: [
|
|
120
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
121
|
+
description && /* @__PURE__ */ jsx(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
className: clsx(
|
|
125
|
+
form,
|
|
126
|
+
descriptionField({ variant }),
|
|
127
|
+
"text_center"
|
|
128
|
+
),
|
|
129
|
+
children: description
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] }),
|
|
133
|
+
/* @__PURE__ */ jsxs(
|
|
134
|
+
"form",
|
|
135
|
+
{
|
|
136
|
+
className: form,
|
|
137
|
+
onSubmit: async (e) => {
|
|
138
|
+
onValidate && onValidate(e);
|
|
139
|
+
await handleSubmit(submitForm)(e);
|
|
140
|
+
e.preventDefault();
|
|
141
|
+
},
|
|
142
|
+
children: [
|
|
143
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
144
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
145
|
+
Input,
|
|
146
|
+
{
|
|
147
|
+
id: "first_name",
|
|
148
|
+
...register("first_name", {
|
|
149
|
+
required: "First Name is required"
|
|
150
|
+
}),
|
|
151
|
+
label: "First Name",
|
|
152
|
+
sizes: "medium",
|
|
153
|
+
required: true,
|
|
154
|
+
error: !!errors.first_name,
|
|
155
|
+
helperText: errors.first_name?.message,
|
|
156
|
+
variant
|
|
157
|
+
}
|
|
158
|
+
) }),
|
|
159
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
160
|
+
Input,
|
|
161
|
+
{
|
|
162
|
+
id: "last_name",
|
|
163
|
+
...register("last_name", { required: true }),
|
|
164
|
+
label: "Last Name",
|
|
165
|
+
sizes: "medium",
|
|
166
|
+
required: true,
|
|
167
|
+
error: !!errors.last_name,
|
|
168
|
+
helperText: errors.last_name?.message,
|
|
169
|
+
variant
|
|
170
|
+
}
|
|
171
|
+
) }),
|
|
172
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
173
|
+
Input,
|
|
174
|
+
{
|
|
175
|
+
id: "company",
|
|
176
|
+
...register("company", { required: true }),
|
|
177
|
+
label: "Business Name",
|
|
178
|
+
sizes: "medium",
|
|
179
|
+
required: true,
|
|
180
|
+
error: !!errors.company,
|
|
181
|
+
helperText: errors.company?.message,
|
|
182
|
+
variant
|
|
183
|
+
}
|
|
184
|
+
) }),
|
|
185
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
186
|
+
Input,
|
|
187
|
+
{
|
|
188
|
+
id: "email",
|
|
189
|
+
...register("email", {
|
|
190
|
+
required: true,
|
|
191
|
+
validate: {
|
|
192
|
+
isValid: associatedEmail
|
|
193
|
+
}
|
|
194
|
+
}),
|
|
195
|
+
label: "Email",
|
|
196
|
+
sizes: "medium",
|
|
197
|
+
required: true,
|
|
198
|
+
error: !!errors.email,
|
|
199
|
+
helperText: errors.email?.message,
|
|
200
|
+
variant
|
|
201
|
+
}
|
|
202
|
+
) }),
|
|
203
|
+
/* @__PURE__ */ jsx("div", { className: x_input, children: /* @__PURE__ */ jsx(
|
|
204
|
+
InputPhone,
|
|
205
|
+
{
|
|
206
|
+
id: "phone",
|
|
207
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
208
|
+
label: "Business Phone",
|
|
209
|
+
sizes: "medium",
|
|
210
|
+
required: true,
|
|
211
|
+
error: !!errors.phone,
|
|
212
|
+
helperText: errors.phone?.message,
|
|
213
|
+
variant
|
|
214
|
+
}
|
|
215
|
+
) }),
|
|
216
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
217
|
+
Dropdown,
|
|
218
|
+
{
|
|
219
|
+
id: "Estimated_Gross_Annual_Revenue__c",
|
|
220
|
+
...register("Estimated_Gross_Annual_Revenue__c", {
|
|
221
|
+
required: true
|
|
222
|
+
}),
|
|
223
|
+
label: "Estimated Credit Line",
|
|
224
|
+
sizes: "medium",
|
|
225
|
+
required: true,
|
|
226
|
+
error: !!errors.Estimated_Gross_Annual_Revenue__c,
|
|
227
|
+
helperText: errors.Estimated_Gross_Annual_Revenue__c?.message,
|
|
228
|
+
variant,
|
|
229
|
+
defaultValue: "",
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ jsx("option", { disabled: true, value: "", children: "Select Option" }),
|
|
232
|
+
/* @__PURE__ */ jsx("option", { value: "Under $3MM", children: "Under $3MM" }),
|
|
233
|
+
/* @__PURE__ */ jsx("option", { value: "$3MM - $10MM", children: "$3MM - $10MM" }),
|
|
234
|
+
/* @__PURE__ */ jsx("option", { value: "$10MM - $100MM", children: "$10MM - $100MM" }),
|
|
235
|
+
/* @__PURE__ */ jsx("option", { value: "Above $100MM", children: "Above $100MM" })
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
) }),
|
|
239
|
+
/* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
|
|
240
|
+
InputTextArea,
|
|
241
|
+
{
|
|
242
|
+
id: "Product_and_servicing_needs__c",
|
|
243
|
+
...register("Product_and_servicing_needs__c", {
|
|
244
|
+
required: false
|
|
245
|
+
}),
|
|
246
|
+
label: "Kindly describe your product and/or servicing needs.",
|
|
247
|
+
sizes: "medium",
|
|
248
|
+
required: false,
|
|
249
|
+
error: !!errors.Product_and_servicing_needs__c,
|
|
250
|
+
helperText: errors.Product_and_servicing_needs__c?.message,
|
|
251
|
+
variant
|
|
252
|
+
}
|
|
253
|
+
) }),
|
|
254
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
255
|
+
] }),
|
|
256
|
+
children,
|
|
257
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
258
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
259
|
+
Button,
|
|
260
|
+
{
|
|
261
|
+
color: getVariant(callToAction?.variant),
|
|
262
|
+
as: "button",
|
|
263
|
+
type: "submit",
|
|
264
|
+
disabled: !isValid || isSubmitting,
|
|
265
|
+
children: callToAction?.displayText
|
|
266
|
+
}
|
|
267
|
+
) })
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
)
|
|
271
|
+
] }) })
|
|
272
|
+
},
|
|
273
|
+
id
|
|
274
|
+
);
|
|
275
|
+
};
|
|
276
|
+
export {
|
|
277
|
+
CommercialDepositsACS
|
|
278
|
+
};
|
|
@@ -13,4 +13,4 @@ export type CommercialDepositsNoLendingOptionInputs = {
|
|
|
13
13
|
Others_Detail__c: string;
|
|
14
14
|
Product_and_servicing_needs__c: string;
|
|
15
15
|
};
|
|
16
|
-
export declare const CommercialDepositsNoLendingOption: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react
|
|
16
|
+
export declare const CommercialDepositsNoLendingOption: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|
|
@@ -16,4 +16,4 @@ export type CommercialLendingInputs = {
|
|
|
16
16
|
Loan__c: string;
|
|
17
17
|
Requested_loan_amount_and_leverage__c: string;
|
|
18
18
|
};
|
|
19
|
-
export declare const CommercialLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react
|
|
19
|
+
export declare const CommercialLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react").JSX.Element;
|
|
@@ -7,4 +7,4 @@ export type CommercialPremiumFinanceInputs = {
|
|
|
7
7
|
Insurance_Company__c: string;
|
|
8
8
|
Type_of_Policy__c: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const CommercialPremiumFinance: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react
|
|
10
|
+
export declare const CommercialPremiumFinance: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormProps } from './FormProps';
|
|
2
|
+
|
|
3
|
+
export type CommercialTrustAndEstateInputs = {
|
|
4
|
+
first_name: string;
|
|
5
|
+
last_name: string;
|
|
6
|
+
title: string;
|
|
7
|
+
email: string;
|
|
8
|
+
phone: string;
|
|
9
|
+
};
|
|
10
|
+
export interface CommercialTrustAndEstateProps extends Omit<FormProps, "onSubmit"> {
|
|
11
|
+
onSubmit?: (values: {
|
|
12
|
+
[index: string]: string | boolean | number | Date | any;
|
|
13
|
+
}) => Promise<boolean | void> | boolean | void;
|
|
14
|
+
}
|
|
15
|
+
export declare const CommercialTrustAndEstate: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: CommercialTrustAndEstateProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
4
|
+
import { Button } from "../Button/Button.js";
|
|
5
|
+
import "../Button/Button.css.js";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
import "react-use";
|
|
8
|
+
import "../Input/Checkbox.js";
|
|
9
|
+
import "../Input/CurrencyInput.js";
|
|
10
|
+
import "../Input/Dropdown.js";
|
|
11
|
+
import "../Input/Dropdown.css.js";
|
|
12
|
+
import { Input } from "../Input/Input.js";
|
|
13
|
+
import "../Input/Input.css.js";
|
|
14
|
+
import "../Input/InputAmount.js";
|
|
15
|
+
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
|
+
import "../Input/InputTextArea.js";
|
|
17
|
+
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
19
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
20
|
+
import SvgAxosX from "../icons/AxosX/index.js";
|
|
21
|
+
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
22
|
+
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
23
|
+
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 */
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
/* empty css */
|
|
27
|
+
/* empty css */
|
|
28
|
+
/* empty css */
|
|
29
|
+
import * as z from "zod";
|
|
30
|
+
import { associatedEmail } from "../utils/EverestValidity.js";
|
|
31
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
32
|
+
import { useCachedEmailValidator } from "../utils/useCachedValidators.js";
|
|
33
|
+
import clsx from "clsx";
|
|
34
|
+
import { useForm, FormProvider } from "react-hook-form";
|
|
35
|
+
import { iconForm, headerForm, form, descriptionField, headerContainer, formWrapper, disclosureForm, submitErrorText, actions, formContainer } from "./Forms.css.js";
|
|
36
|
+
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
37
|
+
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
38
|
+
const CommercialTrustAndEstate = ({
|
|
39
|
+
icon = false,
|
|
40
|
+
children,
|
|
41
|
+
onSubmit = (values) => {
|
|
42
|
+
console.log(values);
|
|
43
|
+
},
|
|
44
|
+
disclosure,
|
|
45
|
+
variant: fullVariant = "primary",
|
|
46
|
+
headline,
|
|
47
|
+
description,
|
|
48
|
+
callToAction,
|
|
49
|
+
validateEmail,
|
|
50
|
+
onValidate,
|
|
51
|
+
id
|
|
52
|
+
}) => {
|
|
53
|
+
const cachedEmailValidator = useCachedEmailValidator(validateEmail);
|
|
54
|
+
const [submitError, setSubmitError] = useState(false);
|
|
55
|
+
const schema = z.object({
|
|
56
|
+
first_name: z.string({ message: "First Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
|
|
57
|
+
message: "First Name is required."
|
|
58
|
+
}).trim().min(1, { message: "First Name is required." }),
|
|
59
|
+
last_name: z.string({ message: "Last Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
|
|
60
|
+
message: "Last Name is required."
|
|
61
|
+
}).trim().min(1, { message: "Last Name is required." }),
|
|
62
|
+
title: z.string({ message: "Title is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
|
|
63
|
+
message: "Invalid title."
|
|
64
|
+
}).trim().min(1, { message: "Title is required." }).max(128, { message: "Title can have at most 128 characters." }),
|
|
65
|
+
email: z.string().email({ message: "Email is required." }).refine(cachedEmailValidator, { message: "Invalid email address." }),
|
|
66
|
+
phone: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, { message: "Phone is required." }).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
|
|
67
|
+
const removeDashes = val.replace(/-/gi, "");
|
|
68
|
+
if (removeDashes.length !== 10) {
|
|
69
|
+
ctx.addIssue({
|
|
70
|
+
code: z.ZodIssueCode.custom,
|
|
71
|
+
message: "Phone must have at least 10 and no more than 10 characters."
|
|
72
|
+
});
|
|
73
|
+
return z.NEVER;
|
|
74
|
+
}
|
|
75
|
+
if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
|
|
76
|
+
ctx.addIssue({
|
|
77
|
+
code: z.ZodIssueCode.custom,
|
|
78
|
+
message: "Invalid phone number."
|
|
79
|
+
});
|
|
80
|
+
return z.NEVER;
|
|
81
|
+
}
|
|
82
|
+
return removeDashes;
|
|
83
|
+
})
|
|
84
|
+
});
|
|
85
|
+
const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
|
|
86
|
+
if (!isValidHoneyPot(data)) {
|
|
87
|
+
ctx.addIssue({
|
|
88
|
+
code: z.ZodIssueCode.custom,
|
|
89
|
+
message: "fields are not valid."
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
const methods = useForm({
|
|
94
|
+
resolver: zodResolver(gen_schema),
|
|
95
|
+
mode: "all"
|
|
96
|
+
});
|
|
97
|
+
const {
|
|
98
|
+
handleSubmit,
|
|
99
|
+
register,
|
|
100
|
+
formState: { errors, isValid, isSubmitting }
|
|
101
|
+
} = methods;
|
|
102
|
+
const submitForm = async (data) => {
|
|
103
|
+
setSubmitError(false);
|
|
104
|
+
const result = await onSubmit(data);
|
|
105
|
+
if (result === false) {
|
|
106
|
+
setSubmitError(true);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
const variant = getVariant(fullVariant);
|
|
110
|
+
return /* @__PURE__ */ jsx(
|
|
111
|
+
"section",
|
|
112
|
+
{
|
|
113
|
+
id: `id_${id}`,
|
|
114
|
+
className: clsx(formContainer({ variant })),
|
|
115
|
+
children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
116
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
117
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(headerContainer, "text_center"), children: [
|
|
118
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
119
|
+
description && /* @__PURE__ */ jsx(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
className: clsx(
|
|
123
|
+
form,
|
|
124
|
+
descriptionField({ variant }),
|
|
125
|
+
"text_center"
|
|
126
|
+
),
|
|
127
|
+
children: description
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ jsxs(
|
|
132
|
+
"form",
|
|
133
|
+
{
|
|
134
|
+
className: form,
|
|
135
|
+
onSubmit: async (e) => {
|
|
136
|
+
onValidate && onValidate(e);
|
|
137
|
+
await handleSubmit(submitForm)(e);
|
|
138
|
+
e.preventDefault();
|
|
139
|
+
},
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
142
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
143
|
+
Input,
|
|
144
|
+
{
|
|
145
|
+
id: "first_name",
|
|
146
|
+
...register("first_name", { required: true }),
|
|
147
|
+
label: "First Name",
|
|
148
|
+
sizes: "medium",
|
|
149
|
+
required: true,
|
|
150
|
+
error: !!errors.first_name,
|
|
151
|
+
helperText: errors.first_name?.message,
|
|
152
|
+
variant
|
|
153
|
+
}
|
|
154
|
+
) }),
|
|
155
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
156
|
+
Input,
|
|
157
|
+
{
|
|
158
|
+
id: "last_name",
|
|
159
|
+
...register("last_name", { required: true }),
|
|
160
|
+
label: "Last Name",
|
|
161
|
+
sizes: "medium",
|
|
162
|
+
required: true,
|
|
163
|
+
error: !!errors.last_name,
|
|
164
|
+
helperText: errors.last_name?.message,
|
|
165
|
+
variant
|
|
166
|
+
}
|
|
167
|
+
) }),
|
|
168
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
169
|
+
Input,
|
|
170
|
+
{
|
|
171
|
+
id: "title",
|
|
172
|
+
...register("title", { required: true }),
|
|
173
|
+
label: "Title",
|
|
174
|
+
sizes: "medium",
|
|
175
|
+
required: true,
|
|
176
|
+
error: !!errors.title,
|
|
177
|
+
helperText: errors.title?.message,
|
|
178
|
+
variant
|
|
179
|
+
}
|
|
180
|
+
) }),
|
|
181
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
182
|
+
Input,
|
|
183
|
+
{
|
|
184
|
+
id: "email",
|
|
185
|
+
...register("email", {
|
|
186
|
+
required: true,
|
|
187
|
+
validate: {
|
|
188
|
+
isValid: associatedEmail
|
|
189
|
+
}
|
|
190
|
+
}),
|
|
191
|
+
label: "Email",
|
|
192
|
+
sizes: "medium",
|
|
193
|
+
required: true,
|
|
194
|
+
error: !!errors.email,
|
|
195
|
+
helperText: errors.email?.message,
|
|
196
|
+
variant
|
|
197
|
+
}
|
|
198
|
+
) }),
|
|
199
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
200
|
+
InputPhone,
|
|
201
|
+
{
|
|
202
|
+
id: "phone",
|
|
203
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
204
|
+
label: "Phone",
|
|
205
|
+
sizes: "medium",
|
|
206
|
+
required: true,
|
|
207
|
+
error: !!errors.phone,
|
|
208
|
+
helperText: errors.phone?.message,
|
|
209
|
+
variant
|
|
210
|
+
}
|
|
211
|
+
) }),
|
|
212
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
213
|
+
] }),
|
|
214
|
+
children,
|
|
215
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
216
|
+
submitError && /* @__PURE__ */ jsx("div", { className: submitErrorText, role: "alert", children: "Something went wrong submitting your request. Please try again." }),
|
|
217
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
218
|
+
Button,
|
|
219
|
+
{
|
|
220
|
+
color: getVariant(callToAction?.variant),
|
|
221
|
+
as: "button",
|
|
222
|
+
type: "submit",
|
|
223
|
+
disabled: !isValid || isSubmitting,
|
|
224
|
+
children: callToAction?.displayText
|
|
225
|
+
}
|
|
226
|
+
) })
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
] }) })
|
|
231
|
+
},
|
|
232
|
+
id
|
|
233
|
+
);
|
|
234
|
+
};
|
|
235
|
+
export {
|
|
236
|
+
CommercialTrustAndEstate
|
|
237
|
+
};
|
|
@@ -9,4 +9,4 @@ export type ConstructionLendingDynamicInputs = {
|
|
|
9
9
|
description: string;
|
|
10
10
|
Company_NMLS_ID__c: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const ConstructionLendingDynamic: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react
|
|
12
|
+
export declare const ConstructionLendingDynamic: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react").JSX.Element;
|
|
@@ -7,4 +7,4 @@ export type ContactCompanyInputs = {
|
|
|
7
7
|
phone: string;
|
|
8
8
|
company: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const ContactCompany: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react
|
|
10
|
+
export declare const ContactCompany: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export type ContactCompanyTitleInputs = {
|
|
|
8
8
|
company: string;
|
|
9
9
|
title: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const ContactCompanyTitle: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react
|
|
11
|
+
export declare const ContactCompanyTitle: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export type Inputs = {
|
|
|
6
6
|
email: string;
|
|
7
7
|
phone: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const ContactUs: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react
|
|
9
|
+
export declare const ContactUs: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|
|
@@ -10,4 +10,4 @@ export type ContactUsAASInputs = {
|
|
|
10
10
|
Role__c: string;
|
|
11
11
|
description: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const ContactUsAAS: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react
|
|
13
|
+
export declare const ContactUsAAS: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export type ContactUsBusinessNmlsIdInputs = {
|
|
|
8
8
|
phone: string;
|
|
9
9
|
Company_NMLS_ID__c: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const ContactUsBusiness: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react
|
|
11
|
+
export declare const ContactUsBusiness: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|