@axos-web-dev/shared-components 1.0.99-sectionSpacerRemoved → 1.0.99-sectionSpacerRemoved.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/Auth/ErrorAlert.js +2 -2
  2. package/dist/Button/Button.js +2 -2
  3. package/dist/Calculators/Calculator.js +14 -2
  4. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
  5. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
  6. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
  7. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
  8. package/dist/Calculators/index.d.ts +2 -1
  9. package/dist/Calculators/index.js +3 -1
  10. package/dist/Carousel/index.js +2 -2
  11. package/dist/Chevron/index.js +2 -2
  12. package/dist/Comparison/Comparison.js +2 -2
  13. package/dist/ExecutiveBio/ExecutiveBio.js +2 -2
  14. package/dist/FaqAccordion/index.js +2 -2
  15. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -2
  16. package/dist/Forms/ApplyNow.d.ts +2 -2
  17. package/dist/Forms/ApplyNow.js +170 -145
  18. package/dist/Forms/ContactUsBusiness.js +2 -2
  19. package/dist/Forms/ContactUsBusinessNameEmail.js +2 -2
  20. package/dist/Forms/ContactUsLVF.d.ts +3 -1
  21. package/dist/Forms/ContactUsLVF.js +9 -5
  22. package/dist/Forms/ContactUsNMLSId.js +2 -2
  23. package/dist/Forms/CraPublicFile.js +2 -2
  24. package/dist/Forms/EmailOnly.js +2 -2
  25. package/dist/Forms/Forms.css.d.ts +18 -0
  26. package/dist/Forms/Forms.css.js +44 -38
  27. package/dist/Forms/MortgageRate/MortgageRateForm.js +2 -2
  28. package/dist/Forms/MortgageRate/MortgageRateWatch.js +2 -2
  29. package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
  30. package/dist/Forms/MortgageWarehouseLending.js +338 -0
  31. package/dist/Forms/SuccesForm.js +5 -5
  32. package/dist/Forms/applynow-utils.d.ts +1 -0
  33. package/dist/Forms/applynow-utils.js +48 -0
  34. package/dist/Forms/index.d.ts +2 -0
  35. package/dist/Forms/index.js +8 -2
  36. package/dist/Hyperlink/index.js +2 -2
  37. package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
  38. package/dist/ImageLink/ImageLink.js +2 -2
  39. package/dist/ImageLink/ImageLinkSet.js +2 -2
  40. package/dist/ImageLink/index.js +2 -2
  41. package/dist/Insight/Featured/CategorySelector.js +2 -2
  42. package/dist/Insight/Featured/Featured.js +2 -2
  43. package/dist/Insight/Featured/Header.js +2 -2
  44. package/dist/Modal/Modal.js +2 -2
  45. package/dist/NavigationMenu/AxosALTS/NavData.js +2 -2
  46. package/dist/NavigationMenu/AxosALTS/index.js +2 -2
  47. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +14 -6
  48. package/dist/NavigationMenu/AxosBank/NavData.js +2 -2
  49. package/dist/NavigationMenu/AxosBank/SubNavBar.js +15 -7
  50. package/dist/NavigationMenu/AxosBank/index.js +2 -2
  51. package/dist/NavigationMenu/LaVictoire/NavData.js +2 -2
  52. package/dist/NavigationMenu/LaVictoire/index.js +2 -2
  53. package/dist/NavigationMenu/NavDataJson.js +2 -2
  54. package/dist/NavigationMenu/Navbar.js +2 -2
  55. package/dist/NavigationMenu/SignInNavButton.js +2 -2
  56. package/dist/SetContainer/SetContainer.js +2 -2
  57. package/dist/SocialMediaBar/iconsRepository.js +2 -2
  58. package/dist/VideoTile/VideoTile.js +2 -2
  59. package/dist/VideoWrapper/index.js +2 -2
  60. package/dist/WalnutIframe/wrapper.module.js +3 -3
  61. package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
  62. package/dist/assets/Forms/Forms.css +135 -105
  63. package/dist/assets/IconBillboard/IconBillboard.css +0 -3
  64. package/dist/assets/SetContainer/SetContainer.css +3 -0
  65. package/dist/assets/WalnutIframe/wrapper.css.css +49 -49
  66. package/dist/main.js +11 -3
  67. package/dist/utils/allowedAxosDomains.js +1 -1
  68. package/package.json +133 -133
@@ -20,6 +20,23 @@ export declare const formContainer: import('@vanilla-extract/recipes').RuntimeFn
20
20
  }>;
21
21
  export declare const iconForm: string;
22
22
  export declare const headerContainer: string;
23
+ export declare const axosHeader: string;
24
+ export declare const headerF: import('@vanilla-extract/recipes').RuntimeFn<{
25
+ variant: {
26
+ primary: {
27
+ color: `var(--${string})`;
28
+ };
29
+ secondary: {
30
+ color: `var(--${string})`;
31
+ };
32
+ tertiary: {
33
+ color: `var(--${string})`;
34
+ };
35
+ quaternary: {
36
+ color: `var(--${string})`;
37
+ };
38
+ };
39
+ }>;
23
40
  export declare const headerForm: import('@vanilla-extract/recipes').RuntimeFn<{
24
41
  variant: {
25
42
  primary: {
@@ -111,6 +128,7 @@ export declare const disclosureForm: import('@vanilla-extract/recipes').RuntimeF
111
128
  };
112
129
  }>;
113
130
  export declare const form: string;
131
+ export declare const apply_now_form: string;
114
132
  export declare const success_wrap: import('@vanilla-extract/recipes').RuntimeFn<{
115
133
  variant: {
116
134
  primary: {
@@ -11,46 +11,51 @@ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
11
11
  var formContainer = createRuntimeFn({ defaultClassName: "tfms6a0", variantClassNames: { variant: { primary: "tfms6a1", secondary: "tfms6a2", tertiary: "tfms6a3", quaternary: "tfms6a4" } }, defaultVariants: {}, compoundVariants: [] });
12
12
  var iconForm = "tfms6a5";
13
13
  var headerContainer = "tfms6a6";
14
- var headerForm = createRuntimeFn({ defaultClassName: "tfms6a7", variantClassNames: { variant: { primary: "tfms6a8", secondary: "tfms6a9", tertiary: "tfms6aa", quaternary: "tfms6ab" } }, defaultVariants: {}, compoundVariants: [] });
15
- var formWrapper = createRuntimeFn({ defaultClassName: "tfms6ac", variantClassNames: { variant: { primary: "tfms6ad", secondary: "tfms6ae", tertiary: "tfms6af", quaternary: "tfms6ag" }, formType: { email: "tfms6ah", questionnaire: "tfms6ai", "default": "tfms6aj" } }, defaultVariants: {}, compoundVariants: [] });
16
- var form_row = "tfms6ak";
17
- var actions = "tfms6al";
18
- var disclosureForm = createRuntimeFn({ defaultClassName: "tfms6am", variantClassNames: { variant: { primary: "tfms6an", secondary: "tfms6ao", tertiary: "tfms6ap", quaternary: "tfms6aq" } }, defaultVariants: {}, compoundVariants: [] });
19
- var form = "tfms6ar";
20
- var success_wrap = createRuntimeFn({ defaultClassName: "tfms6au", variantClassNames: { variant: { primary: "tfms6av", secondary: "tfms6aw", tertiary: "tfms6ax", quaternary: "tfms6ay" } }, defaultVariants: {}, compoundVariants: [] });
21
- var success_icon = "tfms6az";
22
- var succes_check_mark = "tfms6a10";
23
- var success_circle = createRuntimeFn({ defaultClassName: "tfms6a11", variantClassNames: { variant: { primary: "tfms6a12", secondary: "tfms6a13", tertiary: "tfms6a14", quaternary: "tfms6a15" } }, defaultVariants: {}, compoundVariants: [] });
24
- var descriptionField = createRuntimeFn({ defaultClassName: "tfms6a16", variantClassNames: { variant: { primary: "tfms6a17", secondary: "tfms6a18", tertiary: "tfms6a19", quaternary: "tfms6a1a" }, formType: { questionnaire: "tfms6a1b" } }, defaultVariants: {}, compoundVariants: [] });
25
- var fullRowForm = "tfms6a1c";
26
- var one_row = "tfms6a1d";
27
- var section_title = createRuntimeFn({ defaultClassName: "tfms6a1e", variantClassNames: { variant: { primary: "tfms6a1f", secondary: "tfms6a1g", tertiary: "tfms6a1h", quaternary: "tfms6a1i" } }, defaultVariants: {}, compoundVariants: [] });
28
- var checkbox_group = "tfms6a1j";
29
- var ro_input = "tfms6a1k";
30
- var pl_label = "tfms6a1l";
31
- var x_input = "tfms6a1m";
32
- var xc_input = "tfms6a1n";
33
- var fullRowSelect = "tfms6a1o";
34
- var mt2rem = "tfms6a1p";
35
- var centerSelect = "tfms6a1q";
36
- var formBtns = "tfms6a1r";
37
- var modalCheckboxContainer = "tfms6a1s";
38
- var threeColRow = "tfms6a1t";
39
- var mt1Rem = "tfms6a1u";
40
- var mw24 = "tfms6a1v";
41
- var modalMobile = "tfms6a1w";
42
- var resposiveLabel = "tfms6a1x";
43
- var dropdown = "tfms6a1y";
44
- var dynPH = "tfms6a1z";
45
- var na_cursor = "tfms6a20";
46
- var show_options = "tfms6a21";
47
- var hide_options = "tfms6a22";
48
- var back_btn_apply_now = "tfms6a23";
49
- var iconbillboards_option_apply_now = "tfms6a24";
50
- var form_nav_apply_now = "tfms6a25";
51
- var step_title_apply_now = "tfms6a26";
14
+ var axosHeader = "tfms6a7";
15
+ var headerF = createRuntimeFn({ defaultClassName: "tfms6a8", variantClassNames: { variant: { primary: "tfms6a9", secondary: "tfms6aa", tertiary: "tfms6ab", quaternary: "tfms6ac" } }, defaultVariants: {}, compoundVariants: [] });
16
+ var headerForm = createRuntimeFn({ defaultClassName: "tfms6ad", variantClassNames: { variant: { primary: "tfms6ae", secondary: "tfms6af", tertiary: "tfms6ag", quaternary: "tfms6ah" } }, defaultVariants: {}, compoundVariants: [] });
17
+ var formWrapper = createRuntimeFn({ defaultClassName: "tfms6ai", variantClassNames: { variant: { primary: "tfms6aj", secondary: "tfms6ak", tertiary: "tfms6al", quaternary: "tfms6am" }, formType: { email: "tfms6an", questionnaire: "tfms6ao", "default": "tfms6ap" } }, defaultVariants: {}, compoundVariants: [] });
18
+ var form_row = "tfms6aq";
19
+ var actions = "tfms6ar";
20
+ var disclosureForm = createRuntimeFn({ defaultClassName: "tfms6as", variantClassNames: { variant: { primary: "tfms6at", secondary: "tfms6au", tertiary: "tfms6av", quaternary: "tfms6aw" } }, defaultVariants: {}, compoundVariants: [] });
21
+ var form = "tfms6ax";
22
+ var apply_now_form = "tfms6ay";
23
+ var success_wrap = createRuntimeFn({ defaultClassName: "tfms6a11", variantClassNames: { variant: { primary: "tfms6a12", secondary: "tfms6a13", tertiary: "tfms6a14", quaternary: "tfms6a15" } }, defaultVariants: {}, compoundVariants: [] });
24
+ var success_icon = "tfms6a16";
25
+ var succes_check_mark = "tfms6a17";
26
+ var success_circle = createRuntimeFn({ defaultClassName: "tfms6a18", variantClassNames: { variant: { primary: "tfms6a19", secondary: "tfms6a1a", tertiary: "tfms6a1b", quaternary: "tfms6a1c" } }, defaultVariants: {}, compoundVariants: [] });
27
+ var descriptionField = createRuntimeFn({ defaultClassName: "tfms6a1d", variantClassNames: { variant: { primary: "tfms6a1e", secondary: "tfms6a1f", tertiary: "tfms6a1g", quaternary: "tfms6a1h" }, formType: { questionnaire: "tfms6a1i" } }, defaultVariants: {}, compoundVariants: [] });
28
+ var fullRowForm = "tfms6a1j";
29
+ var one_row = "tfms6a1k";
30
+ var section_title = createRuntimeFn({ defaultClassName: "tfms6a1l", variantClassNames: { variant: { primary: "tfms6a1m", secondary: "tfms6a1n", tertiary: "tfms6a1o", quaternary: "tfms6a1p" } }, defaultVariants: {}, compoundVariants: [] });
31
+ var checkbox_group = "tfms6a1q";
32
+ var ro_input = "tfms6a1r";
33
+ var pl_label = "tfms6a1s";
34
+ var x_input = "tfms6a1t";
35
+ var xc_input = "tfms6a1u";
36
+ var fullRowSelect = "tfms6a1v";
37
+ var mt2rem = "tfms6a1w";
38
+ var centerSelect = "tfms6a1x";
39
+ var formBtns = "tfms6a1y";
40
+ var modalCheckboxContainer = "tfms6a1z";
41
+ var threeColRow = "tfms6a20";
42
+ var mt1Rem = "tfms6a21";
43
+ var mw24 = "tfms6a22";
44
+ var modalMobile = "tfms6a23";
45
+ var resposiveLabel = "tfms6a24";
46
+ var dropdown = "tfms6a25";
47
+ var dynPH = "tfms6a26";
48
+ var na_cursor = "tfms6a27";
49
+ var show_options = "tfms6a28";
50
+ var hide_options = "tfms6a29";
51
+ var back_btn_apply_now = "tfms6a2a";
52
+ var iconbillboards_option_apply_now = "tfms6a2b";
53
+ var form_nav_apply_now = "tfms6a2c";
54
+ var step_title_apply_now = "tfms6a2d";
52
55
  export {
53
56
  actions,
57
+ apply_now_form,
58
+ axosHeader,
54
59
  back_btn_apply_now,
55
60
  centerSelect,
56
61
  checkbox_group,
@@ -67,6 +72,7 @@ export {
67
72
  fullRowForm,
68
73
  fullRowSelect,
69
74
  headerContainer,
75
+ headerF,
70
76
  headerForm,
71
77
  hide_options,
72
78
  iconForm,
@@ -41,8 +41,10 @@ import { InputPhone } from "../../Input/InputPhone.js";
41
41
  import "../../Input/InputTextArea.js";
42
42
  import { DownPaymentInput } from "../../Input/DownPaymentInput.js";
43
43
  import "../../Input/RadioButton.js";
44
+ import "../../Input/PercentageInput.js";
44
45
  import { useForm, FormProvider } from "react-hook-form";
45
46
  import * as z from "zod";
47
+ import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
46
48
  import { iconForm, headerForm, form, descriptionField, headerContainer, fullRowSelect, formWrapper, centerSelect, mt2rem, fullRowForm, disclosureForm, actions, formBtns, na_cursor, formContainer } from "../Forms.css.js";
47
49
  import { HoneyPot } from "../HoneyPot/index.js";
48
50
  import { SalesforceSchema } from "../SalesforceFieldsForm.js";
@@ -64,8 +66,6 @@ import "iframe-resizer";
64
66
  import "../../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
65
67
  import "../../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
66
68
  import "../../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
67
- import "../../Input/PercentageInput.js";
68
- import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
69
69
  /* empty css */
70
70
  import "react-dom";
71
71
  /* empty css */
@@ -44,6 +44,8 @@ import "../../Calculators/ApyCalculator/ApyCalculator.css.js";
44
44
  import "../../Table/Table.css.js";
45
45
  import "../../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
46
46
  import "../../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
47
+ import "../../Input/PercentageInput.js";
48
+ import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
47
49
  import "../HoneyPot/index.js";
48
50
  import "../SalesforceFieldsForm.js";
49
51
  import "react-use";
@@ -60,8 +62,6 @@ import "iframe-resizer";
60
62
  import "../../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
61
63
  import "../../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
62
64
  import "../../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
63
- import "../../Input/PercentageInput.js";
64
- import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
65
65
  /* empty css */
66
66
  import "react-dom";
67
67
  /* empty css */
@@ -0,0 +1,11 @@
1
+ import { FormProps } from './FormProps';
2
+
3
+ export type MortgageWarehouseLendingInputs = {
4
+ first_name: string;
5
+ last_name: string;
6
+ email: string;
7
+ phone: string;
8
+ Company_NMLS_ID__c: string;
9
+ Business_Name__c: string;
10
+ };
11
+ export declare const MortgageWarehouseLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,338 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { zodResolver } from "@hookform/resolvers/zod";
4
+ import "../Input/Checkbox.js";
5
+ import "../Input/CurrencyInput.js";
6
+ import "../Input/Dropdown.js";
7
+ import "../Input/Dropdown.css.js";
8
+ import { Input } from "../Input/Input.js";
9
+ import "../Input/Input.css.js";
10
+ import "../Input/InputAmount.js";
11
+ import { InputPhone } from "../Input/InputPhone.js";
12
+ import "../Input/InputTextArea.js";
13
+ import "../Input/DownPaymentInput.js";
14
+ import "../Input/RadioButton.js";
15
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
16
+ import SvgAxosX from "../icons/AxosX/index.js";
17
+ import SvgComponent from "../icons/AxosX/Blue.js";
18
+ import "../icons/CheckIcon/CheckIcon.css.js";
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
+ /* empty css */
21
+ /* empty css */
22
+ /* empty css */
23
+ /* empty css */
24
+ import "../Accordion/Accordion.js";
25
+ import "../Accordion/Accordion.css.js";
26
+ import { getVariant } from "../utils/getVariant.js";
27
+ import clsx from "clsx";
28
+ import "react";
29
+ import "../Chevron/Chevron.css.js";
30
+ import "../AlertBanner/AlertBanner.css.js";
31
+ import "../Article/Article.css.js";
32
+ import { Button } from "../Button/Button.js";
33
+ import "../Button/Button.css.js";
34
+ import "react-use";
35
+ import "../ArticlesSet/ArticlesSet.css.js";
36
+ import "../IconBillboard/IconBillboard.css.js";
37
+ import "../utils/allowedAxosDomains.js";
38
+ import "../Calculators/calculator.css.js";
39
+ import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
40
+ import "../Calculators/ApyCalculator/ApyCalculator.css.js";
41
+ import "../Table/Table.css.js";
42
+ import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
43
+ import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
44
+ import "../Input/PercentageInput.js";
45
+ import { useForm, FormProvider } from "react-hook-form";
46
+ import { z } from "zod";
47
+ import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
48
+ import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
49
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
50
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
51
+ /* empty css */
52
+ /* empty css */
53
+ import "../Input/RadioButton.css.js";
54
+ import "../Input/Checkbox.css.js";
55
+ import "../LoadingIndicator/LoadingIndicator.css.js";
56
+ import "../Interstitial/Interstitial-variants.css.js";
57
+ import "../Inputs/Input.css.js";
58
+ /* empty css */
59
+ /* empty css */
60
+ import "../Modal/contextApi/store.js";
61
+ import "../Hyperlink/Hyperlink.css.js";
62
+ /* empty css */
63
+ import "iframe-resizer";
64
+ /* empty css */
65
+ import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
66
+ import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
67
+ import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
68
+ /* empty css */
69
+ import "react-dom";
70
+ /* empty css */
71
+ import "../Auth/SignInPassword.js";
72
+ /* empty css */
73
+ /* empty css */
74
+ /* empty css */
75
+ import "../Carousel/index.js";
76
+ /* empty css */
77
+ import "../Comparison/Comparison.css.js";
78
+ import "next/image.js";
79
+ import "../HeroBanner/HeroBanner.css.js";
80
+ import "../HeroBanner/LargeBanner.css.js";
81
+ import "../HeroBanner/SelectionBanner.css.js";
82
+ import "../SetContainer/SetContainer.css.js";
83
+ import "../Tab/Tab.css.js";
84
+ import "../icons/Star/Star.css.js";
85
+ import "../ContentBanner/ContentBanner.css.js";
86
+ /* empty css */
87
+ import "../ExecutiveBio/ExecutiveBio.css.js";
88
+ import "../FaqAccordion/index.js";
89
+ import "../FooterDisclosure/FooterDisclosure.css.js";
90
+ /* empty css */
91
+ /* empty css */
92
+ /* empty css */
93
+ import "../ImageBillboard/ImageBillboard.css.js";
94
+ import "next/script.js";
95
+ /* empty css */
96
+ /* empty css */
97
+ /* empty css */
98
+ /* empty css */
99
+ /* empty css */
100
+ /* empty css */
101
+ import "../LandingPageHeader/LandingPageHeader.css.js";
102
+ /* empty css */
103
+ import "next/navigation.js";
104
+ /* empty css */
105
+ /* empty css */
106
+ /* empty css */
107
+ import "next/link.js";
108
+ import "../NavigationMenu/AxosBank/MobileMenu/MobileNavData.js";
109
+ /* empty css */
110
+ import "../NavigationMenu/AxosBank/NavData.js";
111
+ /* empty css */
112
+ /* empty css */
113
+ import "../NavigationMenu/AxosALTS/NavData.js";
114
+ /* empty css */
115
+ /* empty css */
116
+ import "../NavigationMenu/LaVictoire/NavData.js";
117
+ import "../PageNavItem/PageNavItem.css.js";
118
+ import "react-slick";
119
+ /* empty css */
120
+ /* empty css */
121
+ /* empty css */
122
+ /* empty css */
123
+ import "../StepItem/StepItem.css.js";
124
+ import "../StepItemSet/StepItemSet.css.js";
125
+ /* empty css */
126
+ /* empty css */
127
+ /* empty css */
128
+ /* empty css */
129
+ /* empty css */
130
+ const MortgageWarehouseLending = ({
131
+ icon = false,
132
+ children,
133
+ onSubmit = (values) => {
134
+ console.log(values);
135
+ },
136
+ disclosure,
137
+ variant: fullVariant = "primary",
138
+ headline,
139
+ description,
140
+ callToAction,
141
+ validateEmail,
142
+ onValidate,
143
+ id
144
+ }) => {
145
+ const schema = z.object({
146
+ first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
147
+ last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
148
+ email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
149
+ 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) => {
150
+ const removeDashes = val.replace(/-/gi, "");
151
+ if (removeDashes.length !== 10) {
152
+ ctx.addIssue({
153
+ code: z.ZodIssueCode.custom,
154
+ message: "Phone must have at least 10 and no more than 10 characters."
155
+ });
156
+ return z.NEVER;
157
+ }
158
+ if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
159
+ ctx.addIssue({
160
+ code: z.ZodIssueCode.custom,
161
+ message: "Invalid phone number."
162
+ });
163
+ return z.NEVER;
164
+ }
165
+ return removeDashes;
166
+ }),
167
+ Company_NMLS_ID__c: z.string().min(6).max(7),
168
+ Business_Name__c: z.string().min(1)
169
+ });
170
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
171
+ if (!isValidHoneyPot(data)) {
172
+ ctx.addIssue({
173
+ code: z.ZodIssueCode.custom,
174
+ message: "fields are not valid."
175
+ });
176
+ }
177
+ });
178
+ const methods = useForm({
179
+ resolver: zodResolver(
180
+ gen_schema,
181
+ {
182
+ async: true
183
+ },
184
+ { mode: "async" }
185
+ ),
186
+ mode: "onChange",
187
+ shouldUnregister: true,
188
+ defaultValues: {
189
+ email: ""
190
+ }
191
+ });
192
+ const {
193
+ handleSubmit,
194
+ register,
195
+ formState: { errors, isValid, isSubmitting }
196
+ } = methods;
197
+ const submitForm = async (data) => {
198
+ await onSubmit(data);
199
+ };
200
+ const variant = getVariant(fullVariant);
201
+ return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
202
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
203
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
204
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
205
+ description && /* @__PURE__ */ jsx(
206
+ "div",
207
+ {
208
+ className: clsx(
209
+ "text_center",
210
+ form,
211
+ descriptionField({ variant })
212
+ ),
213
+ children: description
214
+ }
215
+ )
216
+ ] }),
217
+ /* @__PURE__ */ jsxs(
218
+ "form",
219
+ {
220
+ className: form,
221
+ onSubmit: async (e) => {
222
+ onValidate && onValidate(e);
223
+ await handleSubmit(submitForm)(e);
224
+ e.preventDefault();
225
+ },
226
+ children: [
227
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
228
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
229
+ Input,
230
+ {
231
+ id: "first_name",
232
+ ...register("first_name", { required: true }),
233
+ label: "First Name",
234
+ sizes: "medium",
235
+ required: true,
236
+ error: !!errors.first_name,
237
+ helperText: errors.first_name?.message,
238
+ variant
239
+ }
240
+ ) }),
241
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
242
+ Input,
243
+ {
244
+ id: "last_name",
245
+ ...register("last_name", { required: true }),
246
+ label: "Last Name",
247
+ sizes: "medium",
248
+ required: true,
249
+ error: !!errors.last_name,
250
+ helperText: errors.last_name?.message,
251
+ variant
252
+ }
253
+ ) }),
254
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
255
+ Input,
256
+ {
257
+ id: "email",
258
+ ...register("email", {
259
+ required: true
260
+ }),
261
+ type: "email",
262
+ label: "Business Email",
263
+ sizes: "medium",
264
+ required: true,
265
+ error: !!errors.email,
266
+ helperText: errors.email?.message,
267
+ variant
268
+ }
269
+ ) }),
270
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
271
+ InputPhone,
272
+ {
273
+ id: "phone",
274
+ ...register("phone", { required: true, maxLength: 12 }),
275
+ label: "Business Phone",
276
+ sizes: "medium",
277
+ type: "tel",
278
+ required: true,
279
+ error: !!errors.phone,
280
+ helperText: errors.phone?.message,
281
+ variant
282
+ }
283
+ ) }),
284
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
285
+ Input,
286
+ {
287
+ id: "Company_NMLS_ID__c",
288
+ ...register("Company_NMLS_ID__c", {
289
+ required: true,
290
+ min: 6,
291
+ max: 7
292
+ }),
293
+ label: "Company NMLS ID",
294
+ sizes: "medium",
295
+ required: true,
296
+ error: !!errors.Company_NMLS_ID__c,
297
+ helperText: errors.Company_NMLS_ID__c?.message,
298
+ variant
299
+ }
300
+ ) }),
301
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
302
+ Input,
303
+ {
304
+ id: "Business_Name__c",
305
+ ...register("Business_Name__c", {
306
+ required: true
307
+ }),
308
+ type: "text",
309
+ label: "Business Name",
310
+ sizes: "medium",
311
+ required: true,
312
+ error: !!errors.Business_Name__c,
313
+ helperText: errors.Business_Name__c?.message,
314
+ variant
315
+ }
316
+ ) }),
317
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
318
+ ] }),
319
+ children,
320
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
321
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
322
+ Button,
323
+ {
324
+ color: getVariant(callToAction?.variant),
325
+ as: "button",
326
+ type: "submit",
327
+ disabled: !isValid || isSubmitting,
328
+ children: callToAction?.displayText
329
+ }
330
+ ) })
331
+ ]
332
+ }
333
+ )
334
+ ] }) }) }, id);
335
+ };
336
+ export {
337
+ MortgageWarehouseLending
338
+ };
@@ -26,11 +26,6 @@ import "../Calculators/ApyCalculator/ApyCalculator.css.js";
26
26
  import "../Table/Table.css.js";
27
27
  import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
28
28
  import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
29
- import "iframe-resizer";
30
- /* empty css */
31
- import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
32
- import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
33
- import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
34
29
  import "../Input/Checkbox.js";
35
30
  import "../Input/CurrencyInput.js";
36
31
  import "../Input/Dropdown.js";
@@ -45,6 +40,11 @@ import "../Input/RadioButton.js";
45
40
  import "../Input/PercentageInput.js";
46
41
  import "react-hook-form";
47
42
  import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
43
+ import "iframe-resizer";
44
+ /* empty css */
45
+ import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
46
+ import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
47
+ import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
48
48
  import "../Chevron/Chevron.css.js";
49
49
  /* empty css */
50
50
  import "../Modal/contextApi/store.js";
@@ -0,0 +1 @@
1
+ export declare const getLink: (selection: Array<string>) => string;
@@ -0,0 +1,48 @@
1
+ const getLink = (selection) => {
2
+ const formSelection = selection.join(" | ");
3
+ let url = "{LVFMYSITE}/Portal/nPortal__SelfRegistration?core=es5";
4
+ switch (formSelection) {
5
+ case "Term | Full-time Charter | LLC":
6
+ url += "&product=a0u5e000001XiAo";
7
+ break;
8
+ case "Term | Limited Charter | LLC":
9
+ url += "&product=a0u5e000001XiAp";
10
+ break;
11
+ case "Term | Personal Use | LLC":
12
+ url += "&product=a0u5e000001XiB3";
13
+ break;
14
+ case "Term | Full-time Charter | Personal":
15
+ url += "&product=a0u5e000001Wfd5";
16
+ break;
17
+ case "Term | Limited Charter | Personal":
18
+ url += "&product=a0u5e000001WfdA";
19
+ break;
20
+ case "Term | Personal Use | Personal":
21
+ url += "&product=a0u5e000001WfdB";
22
+ break;
23
+ case "Credit Line | Full-time Charter | LLC":
24
+ url += "&product=a0u8W00002DhceX";
25
+ break;
26
+ case "Credit Line | Limited Charter | LLC":
27
+ url += "&product=a0u8W00002DhceY";
28
+ break;
29
+ case "Credit Line | Personal Use | LLC":
30
+ url += "&product=a0u8W00002DhceZ";
31
+ break;
32
+ case "Credit Line | Full-time Charter | Personal":
33
+ url += "&product=a0u8W00002DhceS";
34
+ break;
35
+ case "Credit Line | Limited Charter | Personal":
36
+ url += "&product=a0u8W00002DhceT";
37
+ break;
38
+ case "Credit Line | Personal Use | Personal":
39
+ url += "&product=a0u8W00002DhceU";
40
+ break;
41
+ default:
42
+ url += "&product=a0u5e000000hzHz";
43
+ }
44
+ return url;
45
+ };
46
+ export {
47
+ getLink
48
+ };
@@ -1,5 +1,6 @@
1
1
  export * from './ApplicationStart';
2
2
  export * from './ApplyNow';
3
+ export * from './applynow-utils';
3
4
  export * from './ClearingForm';
4
5
  export * from './CommercialDeposits';
5
6
  export * from './CommercialLending';
@@ -24,6 +25,7 @@ export * from './MortgageRate/MortgageRateForm';
24
25
  export * from './MortgageRate/MortgageRateModal';
25
26
  export * from './MortgageRate/MortgageRateQuoteFilters';
26
27
  export * from './MortgageRate/MortgageRateWatch';
28
+ export * from './MortgageWarehouseLending';
27
29
  export * from './QuickPricer';
28
30
  export * from './SalesforceFieldsForm';
29
31
  export * from './ScheduleCall';