@axos-web-dev/shared-components 1.0.77-patch.4 → 1.0.77-patch.40
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 +10 -3
- package/dist/Auth/ErrorAlert.js +12 -5
- package/dist/Button/Button.js +12 -5
- package/dist/Calculators/ApyCalculator/index.js +11 -5
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +1 -0
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +3 -1
- package/dist/Calculators/AxosOneCalculator/index.d.ts +2 -0
- package/dist/Calculators/AxosOneCalculator/index.js +38 -20
- package/dist/Calculators/Calculator.d.ts +2 -0
- package/dist/Calculators/Calculator.js +29 -8
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
- package/dist/Calculators/MaxLoanCalculator/index.js +22 -5
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +15 -5
- package/dist/Calculators/SummitApyCalculator/index.js +15 -6
- package/dist/Calculators/index.d.ts +2 -1
- package/dist/Calculators/index.js +3 -1
- package/dist/Carousel/index.js +20 -13
- package/dist/Chatbot/Bubble.css.d.ts +2 -0
- package/dist/Chatbot/Bubble.css.js +7 -0
- package/dist/Chatbot/Bubble.d.ts +5 -0
- package/dist/Chatbot/Bubble.js +103 -0
- package/dist/Chatbot/Chat.d.ts +1 -0
- package/dist/Chatbot/Chat.js +165 -0
- package/dist/Chatbot/ChatWindow.css.d.ts +18 -0
- package/dist/Chatbot/ChatWindow.css.js +39 -0
- package/dist/Chatbot/ChatWindow.d.ts +26 -0
- package/dist/Chatbot/ChatWindow.js +446 -0
- package/dist/Chatbot/Chatbot.css.d.ts +2 -0
- package/dist/Chatbot/Chatbot.css.js +7 -0
- package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
- package/dist/Chatbot/Chatbot.d.ts +10 -0
- package/dist/Chatbot/Chatbot.js +222 -0
- package/dist/Chatbot/EllipsisAnimation.d.ts +2 -0
- package/dist/Chatbot/EllipsisAnimation.js +85 -0
- package/dist/Chatbot/EllipsisIcon.d.ts +4 -0
- package/dist/Chatbot/EllipsisIcon.js +19 -0
- package/dist/Chatbot/authenticate.d.ts +3 -0
- package/dist/Chatbot/authenticate.js +16 -0
- package/dist/Chatbot/index.d.ts +8 -0
- package/dist/Chatbot/index.js +38 -0
- package/dist/Chatbot/store/chat.d.ts +10 -0
- package/dist/Chatbot/store/chat.js +18 -0
- package/dist/Chatbot/store/messages.d.ts +15 -0
- package/dist/Chatbot/store/messages.js +13 -0
- package/dist/Chatbot/useHeadlessChat.d.ts +27 -0
- package/dist/Chatbot/useHeadlessChat.js +240 -0
- package/dist/Chevron/index.js +12 -5
- package/dist/Comparison/Comparison.js +16 -9
- package/dist/Comparison/ComparisonSet.js +33 -24
- package/dist/ExecutiveBio/ExecutiveBio.js +12 -5
- package/dist/FaqAccordion/index.js +12 -5
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +30 -9
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplicationStart.js +111 -89
- package/dist/Forms/ApplyNow.d.ts +2 -2
- package/dist/Forms/ApplyNow.js +180 -148
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/ClearingForm.js +184 -162
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.js +201 -179
- package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +16 -0
- package/dist/Forms/CommercialDepositsNoLendingOption.js +330 -0
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialLending.js +278 -256
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.js +128 -106
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompany.js +113 -91
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.js +127 -105
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUs.js +99 -77
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.js +180 -158
- package/dist/Forms/ContactUsBusiness.d.ts +2 -2
- package/dist/Forms/ContactUsBusiness.js +146 -118
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +114 -86
- package/dist/Forms/ContactUsLVF.d.ts +7 -1
- package/dist/Forms/ContactUsLVF.js +133 -105
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +128 -100
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +641 -619
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +120 -92
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/DealerServices.js +225 -203
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +67 -41
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/EmailUs.js +75 -53
- package/dist/Forms/FormProps.d.ts +3 -0
- package/dist/Forms/Forms.css.d.ts +18 -0
- package/dist/Forms/Forms.css.js +44 -38
- 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 +23 -0
- package/dist/Forms/HoneyPot/index.js +69 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.js +12 -5
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +12 -5
- package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
- package/dist/Forms/MortgageWarehouseLending.js +343 -0
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/QuickPricerForm.js +624 -609
- package/dist/Forms/SalesforceFieldsForm.d.ts +5 -0
- package/dist/Forms/SalesforceFieldsForm.js +11 -1
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCall.js +156 -134
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.js +178 -156
- package/dist/Forms/SuccesForm.js +16 -9
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/VendorQuestionnaire.js +817 -795
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/Forms/WcplSurvey.js +112 -90
- package/dist/Forms/applynow-utils.d.ts +1 -0
- package/dist/Forms/applynow-utils.js +48 -0
- package/dist/Forms/index.d.ts +4 -0
- package/dist/Forms/index.js +14 -2
- package/dist/HeroBanner/HeroBanner.css.d.ts +2 -0
- package/dist/HeroBanner/HeroBanner.css.js +4 -0
- package/dist/HeroBanner/HeroBanner.d.ts +1 -1
- package/dist/HeroBanner/HeroBanner.interface.d.ts +3 -0
- package/dist/HeroBanner/HeroBanner.js +90 -3
- package/dist/HeroBanner/index.js +3 -1
- package/dist/Hyperlink/index.js +12 -5
- package/dist/IconBillboard/IconBillboard.css.d.ts +1 -0
- package/dist/IconBillboard/IconBillboard.css.js +2 -0
- package/dist/IconBillboard/IconBillboard.d.ts +1 -2
- package/dist/IconBillboard/IconBillboard.js +30 -85
- package/dist/IconBillboard/index.js +3 -3
- package/dist/IconBillboard/sections/CallToActionSection.d.ts +12 -0
- package/dist/IconBillboard/sections/CallToActionSection.js +102 -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/useExitIntentModal.js +6 -1
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +7 -0
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +20 -4
- package/dist/ImageLink/ImageLink.js +12 -5
- package/dist/ImageLink/ImageLinkSet.js +15 -8
- package/dist/ImageLink/index.js +12 -5
- package/dist/Insight/Featured/CategorySelector.js +13 -6
- package/dist/Insight/Featured/Featured.js +20 -13
- package/dist/Insight/Featured/Header.js +19 -12
- package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +2 -0
- package/dist/LandingPageHeader/LandingPageHeader.css.js +6 -2
- package/dist/LandingPageHeader/LandingPageHeader.js +18 -9
- package/dist/LandingPageHeader/index.js +3 -1
- package/dist/Modal/Modal.js +12 -5
- package/dist/NavigationMenu/AxosALTS/NavData.js +12 -5
- package/dist/NavigationMenu/AxosALTS/index.js +12 -5
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +3 -10
- package/dist/NavigationMenu/AxosAdvisor/index.js +3 -11
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +3 -4
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +29 -13
- package/dist/NavigationMenu/AxosBank/NavData.js +12 -5
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +67 -63
- package/dist/NavigationMenu/AxosBank/index.js +12 -5
- package/dist/NavigationMenu/LaVictoire/NavData.js +12 -5
- package/dist/NavigationMenu/LaVictoire/index.js +12 -5
- package/dist/SetContainer/SetContainer.js +12 -5
- package/dist/SocialMediaBar/iconsRepository.js +12 -5
- package/dist/StepItemSet/StepItemSet.css.d.ts +1 -0
- package/dist/StepItemSet/StepItemSet.css.js +9 -5
- package/dist/StepItemSet/StepItemSet.d.ts +6 -0
- package/dist/StepItemSet/StepItemSet.js +22 -3
- package/dist/StepItemSet/index.js +2 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/VideoTile/VideoTile.interface.d.ts +4 -3
- package/dist/VideoTile/VideoTile.js +189 -28
- package/dist/VideoWrapper/index.js +13 -6
- package/dist/WalnutIframe/wrapper.module.js +3 -3
- package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +12 -0
- package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
- package/dist/assets/Chatbot/Bubble.css +51 -0
- package/dist/assets/Chatbot/ChatWindow.css +213 -0
- package/dist/assets/Comparison/Comparison.css +3 -1
- package/dist/assets/Forms/Forms.css +135 -105
- package/dist/assets/Forms/HoneyPot/HoneyPot.css +8 -0
- package/dist/assets/HeroBanner/HeroBanner.css +12 -0
- package/dist/assets/IconBillboard/IconBillboard.css +21 -1
- package/dist/assets/ImageBillboard/ImageBillboard.css +26 -15
- package/dist/assets/LandingPageHeader/LandingPageHeader.css +36 -3
- package/dist/assets/StepItemSet/StepItemSet.css +27 -10
- package/dist/assets/TopicalNavItem/TopicalNavItem.css +2 -2
- package/dist/assets/WalnutIframe/wrapper.css.css +7 -8
- package/dist/icons/Logos/SPB.d.ts +4 -0
- package/dist/icons/Logos/SPB.js +132 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +2 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +79 -23
- package/dist/utils/allowedAxosDomains.js +4 -2
- package/package.json +3 -1
|
@@ -3,7 +3,7 @@ import "../../Accordion/Accordion.js";
|
|
|
3
3
|
import "../../Accordion/Accordion.css.js";
|
|
4
4
|
import "../../icons/ArrowIcon/ArrowIcon.css.js";
|
|
5
5
|
import "../../icons/CheckIcon/CheckIcon.css.js";
|
|
6
|
-
import '../../assets/VideoWrapper/VideoWrapper.css';import '../../assets/
|
|
6
|
+
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/FooterDisclosure/LVF/LaVictorieFooter.css';import '../../assets/DownloadTile/DownloadTile.css';import '../../assets/CollectInformationAlert/CollectInformationAlert.css';import '../../assets/Chatbot/ChatWindow.css';import '../../assets/Chatbot/Bubble.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/Forms/QuickPricer/QuickPricerResults.css';import '../../assets/Modal/Modal.css';import '../../assets/BulletItem/BulletItem.css';import '../../assets/Typography/Typography.css';import '../../assets/icons/FollowIcon/FollowIcon.css';import '../../assets/icons/DownloadIcon/DownloadIcon.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
@@ -41,8 +41,11 @@ import "../../Input/InputPhone.js";
|
|
|
41
41
|
import "../../Input/InputTextArea.js";
|
|
42
42
|
import "../../Input/DownPaymentInput.js";
|
|
43
43
|
import "../../Input/RadioButton.js";
|
|
44
|
+
import "../../Input/PercentageInput.js";
|
|
44
45
|
import "react-hook-form";
|
|
46
|
+
import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
45
47
|
import "../../Forms/Forms.css.js";
|
|
48
|
+
import "../../Forms/HoneyPot/index.js";
|
|
46
49
|
import "../../Forms/SalesforceFieldsForm.js";
|
|
47
50
|
import "../../Input/RadioButton.css.js";
|
|
48
51
|
import "../../Input/Checkbox.css.js";
|
|
@@ -56,8 +59,6 @@ import "iframe-resizer";
|
|
|
56
59
|
import "../../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
57
60
|
import "../../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
58
61
|
import "../../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
|
|
59
|
-
import "../../Input/PercentageInput.js";
|
|
60
|
-
import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
61
62
|
/* empty css */
|
|
62
63
|
import "react-dom";
|
|
63
64
|
/* empty css */
|
|
@@ -66,6 +67,12 @@ import "../../Auth/SignInPassword.js";
|
|
|
66
67
|
/* empty css */
|
|
67
68
|
/* empty css */
|
|
68
69
|
import "../../Carousel/index.js";
|
|
70
|
+
/* empty css */
|
|
71
|
+
import "../../Chatbot/store/chat.js";
|
|
72
|
+
import "../../Chatbot/authenticate.js";
|
|
73
|
+
import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
|
|
74
|
+
/* empty css */
|
|
75
|
+
import "../../Chatbot/store/messages.js";
|
|
69
76
|
/* empty css */
|
|
70
77
|
import "../../Comparison/Comparison.css.js";
|
|
71
78
|
import "next/image.js";
|
|
@@ -84,6 +91,8 @@ import "../../FooterDisclosure/FooterDisclosure.css.js";
|
|
|
84
91
|
import { footer_section, footer_wrapper, ft_col, ft_col_header, ft_col_subheader, nested_grid, app_col, footer_mobile, ft_panel_group, ft_panel } from "./FooterSiteMap.css.js";
|
|
85
92
|
/* empty css */
|
|
86
93
|
import "../../ImageBillboard/ImageBillboard.css.js";
|
|
94
|
+
import "next/script.js";
|
|
95
|
+
/* empty css */
|
|
87
96
|
/* empty css */
|
|
88
97
|
/* empty css */
|
|
89
98
|
/* empty css */
|
|
@@ -117,8 +126,6 @@ import "../../StepItemSet/StepItemSet.css.js";
|
|
|
117
126
|
/* empty css */
|
|
118
127
|
/* empty css */
|
|
119
128
|
/* empty css */
|
|
120
|
-
import "next/script.js";
|
|
121
|
-
/* empty css */
|
|
122
129
|
/* empty css */
|
|
123
130
|
const AxosFooterSiteMap = ({
|
|
124
131
|
showButtons = false
|
|
@@ -207,7 +214,15 @@ const AxosFooterSiteMap = ({
|
|
|
207
214
|
children: "Auto Loans"
|
|
208
215
|
}
|
|
209
216
|
) }),
|
|
210
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
217
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
218
|
+
"a",
|
|
219
|
+
{
|
|
220
|
+
href: findMoreAxosDomains(
|
|
221
|
+
"{AXOSBANK}/personal/borrow/marine-loans"
|
|
222
|
+
),
|
|
223
|
+
children: "Marine Loans"
|
|
224
|
+
}
|
|
225
|
+
) })
|
|
211
226
|
] }),
|
|
212
227
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
213
228
|
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
@@ -424,7 +439,6 @@ const AxosFooterSiteMap = ({
|
|
|
424
439
|
/* @__PURE__ */ jsxs("div", { className: ft_col, children: [
|
|
425
440
|
/* @__PURE__ */ jsx("h2", { className: ft_col_header, children: /* @__PURE__ */ jsx("a", { href: findMoreAxosDomains("{AXOSBANK}/partners"), children: "Partners" }) }),
|
|
426
441
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
427
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: "https://lavictoirefinance.com/dealers", children: "Marine Dealer Floorplan Finance" }) }),
|
|
428
442
|
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
429
443
|
"a",
|
|
430
444
|
{
|
|
@@ -615,7 +629,15 @@ const AxosFooterSiteMap = ({
|
|
|
615
629
|
children: "Auto Loans"
|
|
616
630
|
}
|
|
617
631
|
) }),
|
|
618
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
632
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
633
|
+
"a",
|
|
634
|
+
{
|
|
635
|
+
href: findMoreAxosDomains(
|
|
636
|
+
"{AXOSBANK}/personal/borrow/marine-loans"
|
|
637
|
+
),
|
|
638
|
+
children: "Marine Loans"
|
|
639
|
+
}
|
|
640
|
+
) })
|
|
619
641
|
] }),
|
|
620
642
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
621
643
|
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
@@ -870,7 +892,6 @@ const AxosFooterSiteMap = ({
|
|
|
870
892
|
)
|
|
871
893
|
] }),
|
|
872
894
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
873
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: "https://lavictoirefinance.com/dealers", children: "Marine Dealer Floorplan Finance" }) }),
|
|
874
895
|
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
875
896
|
"a",
|
|
876
897
|
{
|
|
@@ -9,4 +9,4 @@ export type ApplicationStartInputs = {
|
|
|
9
9
|
Send_SMS__c: boolean;
|
|
10
10
|
DoNotCall: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const ApplicationStart: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const ApplicationStart: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,6 +32,7 @@ import clsx from "clsx";
|
|
|
32
32
|
import { useForm, FormProvider } from "react-hook-form";
|
|
33
33
|
import * as z from "zod";
|
|
34
34
|
import { iconForm, headerContainer, headerForm, form, descriptionField, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
35
|
+
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
35
36
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
36
37
|
const ApplicationStart = ({
|
|
37
38
|
icon = false,
|
|
@@ -45,6 +46,7 @@ const ApplicationStart = ({
|
|
|
45
46
|
description,
|
|
46
47
|
callToAction,
|
|
47
48
|
validateEmail,
|
|
49
|
+
onValidate,
|
|
48
50
|
id
|
|
49
51
|
}) => {
|
|
50
52
|
const schema = z.object({
|
|
@@ -71,8 +73,16 @@ const ApplicationStart = ({
|
|
|
71
73
|
}),
|
|
72
74
|
checkbox__c: z.boolean()
|
|
73
75
|
});
|
|
76
|
+
const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
|
|
77
|
+
if (!isValidHoneyPot(data)) {
|
|
78
|
+
ctx.addIssue({
|
|
79
|
+
code: z.ZodIssueCode.custom,
|
|
80
|
+
message: "fields are not valid."
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
});
|
|
74
84
|
const methods = useForm({
|
|
75
|
-
resolver: zodResolver(
|
|
85
|
+
resolver: zodResolver(gen_schema, {
|
|
76
86
|
async: true
|
|
77
87
|
}),
|
|
78
88
|
mode: "all",
|
|
@@ -110,95 +120,107 @@ const ApplicationStart = ({
|
|
|
110
120
|
}
|
|
111
121
|
)
|
|
112
122
|
] }),
|
|
113
|
-
/* @__PURE__ */ jsxs(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
placeholder: "Last Name",
|
|
137
|
-
required: true,
|
|
138
|
-
error: !!errors.last_name,
|
|
139
|
-
helperText: errors.last_name?.message,
|
|
140
|
-
variant
|
|
141
|
-
}
|
|
142
|
-
) }),
|
|
143
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
144
|
-
Input,
|
|
145
|
-
{
|
|
146
|
-
id: "email",
|
|
147
|
-
...register("email", {
|
|
148
|
-
required: true,
|
|
149
|
-
validate: {
|
|
150
|
-
isValid: associatedEmail
|
|
123
|
+
/* @__PURE__ */ jsxs(
|
|
124
|
+
"form",
|
|
125
|
+
{
|
|
126
|
+
className: form,
|
|
127
|
+
onSubmit: async (e) => {
|
|
128
|
+
onValidate && onValidate(e);
|
|
129
|
+
await handleSubmit(submitForm)(e);
|
|
130
|
+
e.preventDefault();
|
|
131
|
+
},
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
134
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
135
|
+
Input,
|
|
136
|
+
{
|
|
137
|
+
id: "first_name",
|
|
138
|
+
...register("first_name", { required: true }),
|
|
139
|
+
label: "First Name",
|
|
140
|
+
sizes: "medium",
|
|
141
|
+
placeholder: "First Name",
|
|
142
|
+
required: true,
|
|
143
|
+
error: !!errors.first_name,
|
|
144
|
+
helperText: errors.first_name?.message,
|
|
145
|
+
variant
|
|
151
146
|
}
|
|
152
|
-
}),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
147
|
+
) }),
|
|
148
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
149
|
+
Input,
|
|
150
|
+
{
|
|
151
|
+
id: "last_name",
|
|
152
|
+
...register("last_name", { required: true }),
|
|
153
|
+
label: "Last Name",
|
|
154
|
+
sizes: "medium",
|
|
155
|
+
placeholder: "Last Name",
|
|
156
|
+
required: true,
|
|
157
|
+
error: !!errors.last_name,
|
|
158
|
+
helperText: errors.last_name?.message,
|
|
159
|
+
variant
|
|
160
|
+
}
|
|
161
|
+
) }),
|
|
162
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
163
|
+
Input,
|
|
164
|
+
{
|
|
165
|
+
id: "email",
|
|
166
|
+
...register("email", {
|
|
167
|
+
required: true,
|
|
168
|
+
validate: {
|
|
169
|
+
isValid: associatedEmail
|
|
170
|
+
}
|
|
171
|
+
}),
|
|
172
|
+
label: "Email",
|
|
173
|
+
sizes: "medium",
|
|
174
|
+
placeholder: "Email",
|
|
175
|
+
required: true,
|
|
176
|
+
error: !!errors.email,
|
|
177
|
+
helperText: errors.email?.message,
|
|
178
|
+
variant
|
|
179
|
+
}
|
|
180
|
+
) }),
|
|
181
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
182
|
+
InputPhone,
|
|
183
|
+
{
|
|
184
|
+
id: "phone",
|
|
185
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
186
|
+
label: "Phone",
|
|
187
|
+
sizes: "medium",
|
|
188
|
+
placeholder: "Phone",
|
|
189
|
+
required: true,
|
|
190
|
+
error: !!errors.phone,
|
|
191
|
+
helperText: errors.phone?.message,
|
|
192
|
+
variant
|
|
193
|
+
}
|
|
194
|
+
) }),
|
|
195
|
+
/* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
|
|
196
|
+
Checkbox,
|
|
197
|
+
{
|
|
198
|
+
id: "checkbox__c",
|
|
199
|
+
...register("checkbox__c"),
|
|
200
|
+
sizes: "medium",
|
|
201
|
+
error: !!errors.checkbox__c,
|
|
202
|
+
helperText: errors.checkbox__c?.message,
|
|
203
|
+
variant,
|
|
204
|
+
children: "By providing your phone number and selecting the checkbox, you have agreed to these Terms and Conditions, and you have agreed to receive automated text messages, calls, and emails for any purpose including but not limited to marketing of products and services by Axos Bank. You understand and agree that such messages may be sent via Automatic Telephone Dialing System and/or artificial or pre-recorded voice, and that such consent is not a condition of receipt of any good or service. Mobile carrier messages and data rates may apply. You may opt out at any time."
|
|
205
|
+
}
|
|
206
|
+
) }),
|
|
207
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
208
|
+
] }),
|
|
209
|
+
children,
|
|
210
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
211
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
212
|
+
Button,
|
|
213
|
+
{
|
|
214
|
+
color: getVariant(callToAction?.variant),
|
|
215
|
+
as: "button",
|
|
216
|
+
type: "submit",
|
|
217
|
+
disabled: !isValid || isSubmitting,
|
|
218
|
+
children: callToAction?.displayText
|
|
219
|
+
}
|
|
220
|
+
) })
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
)
|
|
202
224
|
] }) }) }, id);
|
|
203
225
|
};
|
|
204
226
|
export {
|
package/dist/Forms/ApplyNow.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormProps } from './FormProps';
|
|
2
2
|
|
|
3
|
-
export declare const ApplyNow: ({ icon, children, disclosure, variant: fullVariant, headline, description, id, gbf, }: Omit<FormProps & {
|
|
3
|
+
export declare const ApplyNow: ({ icon, children, disclosure, variant: fullVariant, headline, description, id, gbf, project, }: Omit<FormProps & {
|
|
4
4
|
gbf?: boolean;
|
|
5
|
+
project?: string;
|
|
5
6
|
}, "callToAction" | "validateEmail" | "onSubmit">) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const getLink: (selection: Array<string>) => string;
|