@axos-web-dev/shared-components 1.0.100-dev.2 → 1.0.100-dev.21

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 (233) hide show
  1. package/dist/ATMLocator/ATMLocator.js +1 -1
  2. package/dist/Article/Article.css.d.ts +8 -36
  3. package/dist/ArticlesSet/ArticlesSet.css.d.ts +10 -70
  4. package/dist/ArticlesSet/ArticlesSet.js +1 -1
  5. package/dist/Auth/ErrorAlert.js +1 -1
  6. package/dist/Avatar/Avatar.module.js +7 -7
  7. package/dist/AwardsBanner/AwardsBanner.css.js +4 -1
  8. package/dist/AwardsItem/AwardsItem.css.js +1 -2
  9. package/dist/Blockquote/Blockquote.module.js +3 -3
  10. package/dist/Button/Button.css.d.ts +3 -3
  11. package/dist/Button/Button.js +1 -1
  12. package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +2 -30
  13. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +1 -0
  14. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +3 -1
  15. package/dist/Calculators/AxosOneCalculator/index.d.ts +3 -0
  16. package/dist/Calculators/AxosOneCalculator/index.js +48 -20
  17. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +2 -30
  18. package/dist/Calculators/BuyDownCalculator/index.d.ts +5 -1
  19. package/dist/Calculators/BuyDownCalculator/index.js +267 -141
  20. package/dist/Calculators/Calculator.d.ts +3 -0
  21. package/dist/Calculators/Calculator.js +8 -4
  22. package/dist/Calculators/calculator.css.d.ts +2 -8
  23. package/dist/CallToActionBar/index.js +1 -1
  24. package/dist/Carousel/Carousel.css.d.ts +8 -19
  25. package/dist/Carousel/index.js +1 -1
  26. package/dist/Chatbot/Bubble.css.d.ts +1 -0
  27. package/dist/Chatbot/Bubble.css.js +3 -1
  28. package/dist/Chatbot/Bubble.js +69 -17
  29. package/dist/Chatbot/ChatWindow.css.d.ts +7 -0
  30. package/dist/Chatbot/ChatWindow.css.js +21 -6
  31. package/dist/Chatbot/ChatWindow.d.ts +6 -0
  32. package/dist/Chatbot/ChatWindow.js +232 -38
  33. package/dist/Chatbot/Chatbot.css.d.ts +2 -1
  34. package/dist/Chatbot/Chatbot.css.js +4 -3
  35. package/dist/Chatbot/Chatbot.d.ts +5 -1
  36. package/dist/Chatbot/Chatbot.js +10 -7
  37. package/dist/Chatbot/EllipsisIcon.d.ts +4 -0
  38. package/dist/Chatbot/EllipsisIcon.js +19 -0
  39. package/dist/Chatbot/index.js +13 -4
  40. package/dist/Chatbot/store/messages.d.ts +1 -0
  41. package/dist/Chatbot/store/messages.js +2 -1
  42. package/dist/Chatbot/useHeadlessChat.d.ts +6 -1
  43. package/dist/Chatbot/useHeadlessChat.js +92 -20
  44. package/dist/Chevron/Chevron.css.d.ts +2 -2
  45. package/dist/Chevron/index.js +1 -1
  46. package/dist/CollectInformationAlert/index.js +1 -1
  47. package/dist/Comparison/Comparison.js +3 -3
  48. package/dist/Comparison/ComparisonSet.js +33 -24
  49. package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
  50. package/dist/FaqAccordion/index.js +1 -1
  51. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +13 -6
  52. package/dist/Forms/ApplyNow.js +1 -1
  53. package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +16 -0
  54. package/dist/Forms/CommercialDepositsNoLendingOption.js +330 -0
  55. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  56. package/dist/Forms/ContactUsBusiness.js +5 -5
  57. package/dist/Forms/ContactUsBusinessNameEmail.js +1 -1
  58. package/dist/Forms/ContactUsLVF.d.ts +5 -1
  59. package/dist/Forms/ContactUsLVF.js +8 -6
  60. package/dist/Forms/ContactUsNMLSId.js +1 -1
  61. package/dist/Forms/CraPublicFile.js +1 -1
  62. package/dist/Forms/EmailOnly.js +1 -1
  63. package/dist/Forms/FormEnums.js +6 -15
  64. package/dist/Forms/Forms.css.d.ts +2 -30
  65. package/dist/Forms/MortgageRate/MortgageRateForm.js +6 -3
  66. package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -1
  67. package/dist/Forms/MortgageWarehouseLending.js +1 -1
  68. package/dist/Forms/QuickPricer/QuickPricerForm.js +1 -1
  69. package/dist/Forms/SalesforceFieldsForm.d.ts +5 -0
  70. package/dist/Forms/SalesforceFieldsForm.js +11 -1
  71. package/dist/Forms/SuccesForm.js +2 -2
  72. package/dist/Forms/index.d.ts +1 -0
  73. package/dist/Forms/index.js +2 -0
  74. package/dist/HeroBanner/HeroBanner.css.d.ts +5 -17
  75. package/dist/HeroBanner/HeroBanner.js +1 -12
  76. package/dist/HeroBanner/SelectionBanner.css.d.ts +1 -19
  77. package/dist/HeroBanner/SelectionBanner.css.js +6 -6
  78. package/dist/Hyperlink/Hyperlink.css.d.ts +4 -4
  79. package/dist/Hyperlink/Hyperlink.css.js +4 -1
  80. package/dist/Hyperlink/index.js +1 -1
  81. package/dist/IconBillboard/IconBillboard.css.d.ts +6 -40
  82. package/dist/ImageBillboard/ImageBillboard.css.d.ts +5 -61
  83. package/dist/ImageLink/ImageLink.js +1 -1
  84. package/dist/ImageLink/ImageLinkSet.js +1 -1
  85. package/dist/ImageLink/index.js +1 -1
  86. package/dist/Input/Dropdown.js +1 -0
  87. package/dist/Insight/Featured/CategorySelector.js +1 -1
  88. package/dist/Insight/Featured/Featured.js +1 -1
  89. package/dist/Insight/Featured/Header.js +1 -1
  90. package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +2 -0
  91. package/dist/LandingPageHeader/LandingPageHeader.css.js +6 -2
  92. package/dist/LandingPageHeader/LandingPageHeader.js +18 -9
  93. package/dist/LandingPageHeader/index.js +3 -1
  94. package/dist/LoadingIndicator/LoadingIndicator.css.d.ts +4 -4
  95. package/dist/Modal/Modal.css.d.ts +1 -0
  96. package/dist/Modal/Modal.css.js +5 -3
  97. package/dist/Modal/Modal.js +4 -4
  98. package/dist/NavigationMenu/AxosALTS/NavData.js +1 -1
  99. package/dist/NavigationMenu/AxosALTS/index.js +1 -1
  100. package/dist/NavigationMenu/AxosAdvisor/NavBar.css.d.ts +2 -0
  101. package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +7 -2
  102. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
  103. package/dist/NavigationMenu/AxosAdvisor/index.js +39 -21
  104. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.d.ts +2 -0
  105. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +7 -2
  106. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +53 -53
  107. package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.d.ts +1 -1
  108. package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +2 -2
  109. package/dist/NavigationMenu/AxosAdvisorServices/index.js +14 -8
  110. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +2 -2
  111. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +16 -16
  112. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -3
  113. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +7 -9
  114. package/dist/NavigationMenu/AxosBank/NavBar.css.js +2 -1
  115. package/dist/NavigationMenu/AxosBank/NavBar.module.js +41 -41
  116. package/dist/NavigationMenu/AxosBank/NavData.js +1 -1
  117. package/dist/NavigationMenu/AxosBank/SubNavBar.js +270 -275
  118. package/dist/NavigationMenu/AxosBank/SubNavbar.css.d.ts +2 -0
  119. package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +4 -0
  120. package/dist/NavigationMenu/AxosBank/index.js +1 -1
  121. package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
  122. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +41 -41
  123. package/dist/NavigationMenu/LaVictoire/NavData.js +1 -1
  124. package/dist/NavigationMenu/LaVictoire/index.js +1 -1
  125. package/dist/NavigationMenu/NavDataJson.js +1 -1
  126. package/dist/NavigationMenu/Navbar.js +1 -1
  127. package/dist/NavigationMenu/SignInNavButton.js +1 -1
  128. package/dist/PageNavItem/PageNavItem.css.d.ts +4 -22
  129. package/dist/Pagination/Pagination.js +6 -6
  130. package/dist/SetContainer/SetContainer.js +1 -1
  131. package/dist/SocialMediaBar/iconsRepository.js +1 -1
  132. package/dist/StepItem/StepItem.css.d.ts +8 -36
  133. package/dist/StepItemSet/StepItemSet.css.d.ts +5 -32
  134. package/dist/StepItemSet/StepItemSet.css.js +9 -5
  135. package/dist/StepItemSet/StepItemSet.d.ts +6 -0
  136. package/dist/StepItemSet/StepItemSet.js +22 -3
  137. package/dist/StepItemSet/index.js +2 -1
  138. package/dist/Table/Table.css.d.ts +4 -3
  139. package/dist/Table/Table.css.js +5 -5
  140. package/dist/Table/Table.js +1 -1
  141. package/dist/VideoTile/VideoTile.js +1 -1
  142. package/dist/VideoWrapper/index.js +1 -1
  143. package/dist/WalnutIframe/wrapper.module.js +3 -3
  144. package/dist/assets/Accordion/Accordion.css +2 -2
  145. package/dist/assets/Article/Article.css +47 -59
  146. package/dist/assets/ArticlesSet/ArticlesSet.css +26 -56
  147. package/dist/assets/Auth/SignIn.css +12 -12
  148. package/dist/assets/Avatar/Avatar.css.css +10 -10
  149. package/dist/assets/AwardsBanner/AwardsBanner.css +1 -1
  150. package/dist/assets/AwardsItem/AwardsItem.css +3 -4
  151. package/dist/assets/Blockquote/Blockquote.css.css +17 -17
  152. package/dist/assets/Button/Button.css +28 -28
  153. package/dist/assets/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css +8 -8
  154. package/dist/assets/Calculators/ApyCalculator/ApyCalculator.css +12 -21
  155. package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +31 -11
  156. package/dist/assets/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css +20 -32
  157. package/dist/assets/Calculators/BuyDownCalculator/BuyDownCalculator.css +14 -14
  158. package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +9 -9
  159. package/dist/assets/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css +9 -9
  160. package/dist/assets/Calculators/SummitApyCalculator/BalanceAPYCalculator.css +18 -10
  161. package/dist/assets/Calculators/calculator.css +9 -15
  162. package/dist/assets/CallToActionBar/CallToActionBar.css +1 -4
  163. package/dist/assets/Carousel/Carousel.css +27 -41
  164. package/dist/assets/Chatbot/Bubble.css +11 -0
  165. package/dist/assets/Chatbot/ChatWindow.css +118 -12
  166. package/dist/assets/Chevron/Chevron.css +11 -10
  167. package/dist/assets/CollectInformationAlert/CollectInformationAlert.css +4 -3
  168. package/dist/assets/Comparison/Comparison.css +8 -5
  169. package/dist/assets/ContentBanner/ContentBanner.css +8 -8
  170. package/dist/assets/DownloadTile/DownloadTile.css +6 -6
  171. package/dist/assets/ExecutiveBio/ExecutiveBio.css +27 -27
  172. package/dist/assets/FaqAccordion/FaqAccordion.css +5 -5
  173. package/dist/assets/FooterDisclosure/FooterDisclosure.css +1 -1
  174. package/dist/assets/FooterSiteMap/AxosBank/FooterSiteMap.css +3 -8
  175. package/dist/assets/Forms/Forms.css +45 -63
  176. package/dist/assets/Forms/QuickPricer/UserInformation.css +1 -1
  177. package/dist/assets/HeroBanner/HeroBanner.css +81 -76
  178. package/dist/assets/HeroBanner/LargeBanner.css +15 -15
  179. package/dist/assets/HeroBanner/SelectionBanner.css +15 -29
  180. package/dist/assets/Hyperlink/Hyperlink.css +4 -4
  181. package/dist/assets/IconBillboard/IconBillboard.css +32 -48
  182. package/dist/assets/ImageBillboard/ImageBillboard.css +31 -64
  183. package/dist/assets/Input/Input.css +6 -6
  184. package/dist/assets/Inputs/Input.css +4 -4
  185. package/dist/assets/Insight/Featured/CategorySelector.css +1 -1
  186. package/dist/assets/Interstitial/Interstitial-variants.css +3 -3
  187. package/dist/assets/LandingPageHeader/LandingPageHeader.css +37 -4
  188. package/dist/assets/LoadingIndicator/LoadingIndicator.css +5 -5
  189. package/dist/assets/Modal/Modal.css +17 -28
  190. package/dist/assets/NavigationMenu/AxosALTS/NavBar.css +1 -1
  191. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css +25 -2
  192. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +138 -126
  193. package/dist/assets/NavigationMenu/AxosAdvisor/SubNavbar.css +5 -4
  194. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css +25 -2
  195. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css.css +142 -130
  196. package/dist/assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css +22 -4
  197. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +32 -31
  198. package/dist/assets/NavigationMenu/AxosBank/NavBar.css +21 -9
  199. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +118 -146
  200. package/dist/assets/NavigationMenu/AxosBank/SubNavbar.css +35 -1
  201. package/dist/assets/NavigationMenu/AxosClearing/NavBar.css.css +133 -107
  202. package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +84 -83
  203. package/dist/assets/PageNavItem/PageNavItem.css +16 -33
  204. package/dist/assets/Pagination/Pagination.css +1 -1
  205. package/dist/assets/SetContainer/SetContainer.css +4 -4
  206. package/dist/assets/StepItem/StepItem.css +26 -42
  207. package/dist/assets/StepItemSet/StepItemSet.css +40 -36
  208. package/dist/assets/Tab/Tab.css +12 -12
  209. package/dist/assets/Table/Table.css +87 -93
  210. package/dist/assets/TextBlock/TextBlock.css +1 -1
  211. package/dist/assets/TopicalNavItem/TopicalNavItem.css +2 -2
  212. package/dist/assets/TopicalNavSet/TopicalNavSet.css +1 -1
  213. package/dist/assets/VideoTile/VideoTile.css +1 -1
  214. package/dist/assets/WalnutIframe/wrapper.css.css +7 -8
  215. package/dist/assets/globals.css +8 -7
  216. package/dist/assets/icons/ArrowIcon/ArrowIcon.css +3 -3
  217. package/dist/assets/icons/DownloadIcon/DownloadIcon.css +1 -1
  218. package/dist/assets/icons/FollowIcon/FollowIcon.css +1 -1
  219. package/dist/assets/themes/axos.css +30 -30
  220. package/dist/assets/themes/premier.css +31 -31
  221. package/dist/assets/themes/victorie.css +23 -23
  222. package/dist/icons/CheckCircle.js +1 -1
  223. package/dist/icons/CheckCircleLight.js +1 -1
  224. package/dist/icons/CheckIcon/index.js +1 -1
  225. package/dist/icons/Logos/SPB.d.ts +4 -0
  226. package/dist/icons/Logos/SPB.js +132 -0
  227. package/dist/icons/QuoteIconGrey.js +2 -2
  228. package/dist/icons/index.d.ts +1 -0
  229. package/dist/icons/index.js +2 -0
  230. package/dist/main.js +36 -20
  231. package/dist/themes/axos.css.d.ts +12 -12
  232. package/dist/themes/axos.css.js +1 -1
  233. package/package.json +136 -136
@@ -0,0 +1,330 @@
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 { Checkbox } from "../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 "../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/premier.css';import '../assets/themes/axos.css';/* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
+ /* empty css */
27
+ /* empty css */
28
+ import "../utils/allowedAxosDomains.js";
29
+ import { associatedEmail } from "../utils/EverestValidity.js";
30
+ import { getVariant } from "../utils/getVariant.js";
31
+ import clsx from "clsx";
32
+ import { useForm, FormProvider } from "react-hook-form";
33
+ import * as z from "zod";
34
+ import { iconForm, headerForm, form, descriptionField, headerContainer, x_input, fullRowForm, pl_label, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
35
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
36
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
37
+ const CommercialDepositsNoLendingOption = ({
38
+ icon = false,
39
+ children,
40
+ onSubmit = (values) => {
41
+ console.log(values);
42
+ },
43
+ disclosure,
44
+ variant: fullVariant = "primary",
45
+ headline,
46
+ description,
47
+ callToAction,
48
+ validateEmail,
49
+ onValidate,
50
+ id
51
+ }) => {
52
+ const schema = z.object({
53
+ first_name: z.string({ message: "First Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
54
+ message: "First Name is required."
55
+ }).trim().min(1, { message: "First Name is required." }),
56
+ last_name: z.string({ message: "Last Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
57
+ message: "Last Name is required."
58
+ }).trim().min(1, { message: "Last Name is required." }),
59
+ email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
60
+ 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) => {
61
+ const removeDashes = val.replace(/-/gi, "");
62
+ if (removeDashes.length !== 10) {
63
+ ctx.addIssue({
64
+ code: z.ZodIssueCode.custom,
65
+ message: "Business Phone must have at least 10 and no more than 10 characters."
66
+ });
67
+ return z.NEVER;
68
+ }
69
+ if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
70
+ ctx.addIssue({
71
+ code: z.ZodIssueCode.custom,
72
+ message: "Invalid phone number."
73
+ });
74
+ return z.NEVER;
75
+ }
76
+ return removeDashes;
77
+ }),
78
+ company: z.string({ message: "Business Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
79
+ message: "Business Name is required"
80
+ }).trim().min(1, { message: "Business Name is required." }),
81
+ Estimated_Gross_Annual_Revenue__c: z.string({
82
+ message: "Estimated gross annual revenue is required"
83
+ }).min(1, { message: "Estimated gross annual revenue is required" }),
84
+ Banking__c: z.boolean(),
85
+ Treasury_Management__c: z.boolean(),
86
+ Others__c: z.boolean().optional(),
87
+ Others_Detail__c: z.string().optional(),
88
+ Product_and_servicing_needs__c: z.string()
89
+ });
90
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
91
+ if (!isValidHoneyPot(data)) {
92
+ ctx.addIssue({
93
+ code: z.ZodIssueCode.custom,
94
+ message: "fields are not valid."
95
+ });
96
+ }
97
+ });
98
+ const methods = useForm({
99
+ resolver: zodResolver(gen_schema, {
100
+ async: true
101
+ }),
102
+ mode: "all"
103
+ });
104
+ const {
105
+ handleSubmit,
106
+ register,
107
+ watch,
108
+ formState: { errors, isValid, isSubmitting }
109
+ } = methods;
110
+ const othersChecked = watch("Others__c");
111
+ const submitForm = async (data) => {
112
+ const processData = {
113
+ ...data,
114
+ Banking__c: data.Banking__c ? true : false
115
+ };
116
+ await onSubmit(processData);
117
+ };
118
+ const variant = getVariant(fullVariant);
119
+ return /* @__PURE__ */ jsx(
120
+ "section",
121
+ {
122
+ id: `id_${id}`,
123
+ className: clsx(formContainer({ variant })),
124
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
125
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
126
+ /* @__PURE__ */ jsxs("div", { className: clsx(headerContainer, "text_center"), children: [
127
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
128
+ description && /* @__PURE__ */ jsx(
129
+ "div",
130
+ {
131
+ className: clsx(
132
+ form,
133
+ descriptionField({ variant }),
134
+ "text_center"
135
+ ),
136
+ children: description
137
+ }
138
+ )
139
+ ] }),
140
+ /* @__PURE__ */ jsxs(
141
+ "form",
142
+ {
143
+ className: form,
144
+ onSubmit: async (e) => {
145
+ onValidate && onValidate(e);
146
+ await handleSubmit(submitForm)(e);
147
+ e.preventDefault();
148
+ },
149
+ children: [
150
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
151
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
152
+ Input,
153
+ {
154
+ id: "first_name",
155
+ ...register("first_name", {
156
+ required: "First Name is required"
157
+ }),
158
+ label: "First Name",
159
+ sizes: "medium",
160
+ required: true,
161
+ error: !!errors.first_name,
162
+ helperText: errors.first_name?.message,
163
+ variant
164
+ }
165
+ ) }),
166
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
167
+ Input,
168
+ {
169
+ id: "last_name",
170
+ ...register("last_name", { required: true }),
171
+ label: "Last Name",
172
+ sizes: "medium",
173
+ required: true,
174
+ error: !!errors.last_name,
175
+ helperText: errors.last_name?.message,
176
+ variant
177
+ }
178
+ ) }),
179
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
180
+ Input,
181
+ {
182
+ id: "company",
183
+ ...register("company", { required: true }),
184
+ label: "Business Name",
185
+ sizes: "medium",
186
+ required: true,
187
+ error: !!errors.company,
188
+ helperText: errors.company?.message,
189
+ variant
190
+ }
191
+ ) }),
192
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
193
+ Input,
194
+ {
195
+ id: "email",
196
+ ...register("email", {
197
+ required: true,
198
+ validate: {
199
+ isValid: associatedEmail
200
+ }
201
+ }),
202
+ label: "Email",
203
+ sizes: "medium",
204
+ required: true,
205
+ error: !!errors.email,
206
+ helperText: errors.email?.message,
207
+ variant
208
+ }
209
+ ) }),
210
+ /* @__PURE__ */ jsx("div", { className: x_input, children: /* @__PURE__ */ jsx(
211
+ InputPhone,
212
+ {
213
+ id: "phone",
214
+ ...register("phone", { required: true, maxLength: 12 }),
215
+ label: "Business Phone",
216
+ sizes: "medium",
217
+ required: true,
218
+ error: !!errors.phone,
219
+ helperText: errors.phone?.message,
220
+ variant
221
+ }
222
+ ) }),
223
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
224
+ Dropdown,
225
+ {
226
+ id: "Estimated_Gross_Annual_Revenue__c",
227
+ ...register("Estimated_Gross_Annual_Revenue__c", {
228
+ required: true
229
+ }),
230
+ label: "Estimated Gross Annual Revenue",
231
+ sizes: "medium",
232
+ required: true,
233
+ error: !!errors.Estimated_Gross_Annual_Revenue__c,
234
+ helperText: errors.Estimated_Gross_Annual_Revenue__c?.message,
235
+ variant,
236
+ defaultValue: "",
237
+ children: [
238
+ /* @__PURE__ */ jsx("option", { disabled: true, value: "", children: "Select Option" }),
239
+ /* @__PURE__ */ jsx("option", { value: "Under $3MM", children: "Under $3MM" }),
240
+ /* @__PURE__ */ jsx("option", { value: "$3MM - $10MM", children: "$3MM - $10MM" }),
241
+ /* @__PURE__ */ jsx("option", { value: "$10MM - $100MM", children: "$10MM - $100MM" }),
242
+ /* @__PURE__ */ jsx("option", { value: "Above $100MM", children: "Above $100MM" })
243
+ ]
244
+ }
245
+ ) }),
246
+ /* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
247
+ /* @__PURE__ */ jsx("div", { className: pl_label, children: "Which products or services apply to your request? Click all that apply." }),
248
+ /* @__PURE__ */ jsx(
249
+ Checkbox,
250
+ {
251
+ id: "Banking__c",
252
+ ...register("Banking__c"),
253
+ sizes: "medium",
254
+ variant,
255
+ children: "Banking"
256
+ }
257
+ ),
258
+ /* @__PURE__ */ jsx(
259
+ Checkbox,
260
+ {
261
+ id: "Treasury_Management__c",
262
+ ...register("Treasury_Management__c"),
263
+ sizes: "medium",
264
+ variant,
265
+ children: "Treasury Management"
266
+ }
267
+ ),
268
+ /* @__PURE__ */ jsx(
269
+ Checkbox,
270
+ {
271
+ id: "Others__c",
272
+ ...register("Others__c"),
273
+ sizes: "medium",
274
+ variant,
275
+ children: "Other"
276
+ }
277
+ ),
278
+ othersChecked && /* @__PURE__ */ jsx(
279
+ Input,
280
+ {
281
+ id: "Others_Detail__c",
282
+ ...register("Others_Detail__c", { required: false }),
283
+ sizes: "medium",
284
+ required: false,
285
+ error: !!errors.Others_Detail__c,
286
+ helperText: errors.Others_Detail__c?.message,
287
+ variant
288
+ }
289
+ )
290
+ ] }),
291
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
292
+ Input,
293
+ {
294
+ id: "Product_and_servicing_needs__c",
295
+ ...register("Product_and_servicing_needs__c", {
296
+ required: false
297
+ }),
298
+ label: "Kindly describe your product and/or servicing needs.",
299
+ sizes: "medium",
300
+ required: false,
301
+ error: !!errors.Product_and_servicing_needs__c,
302
+ helperText: errors.Product_and_servicing_needs__c?.message,
303
+ variant
304
+ }
305
+ ) }),
306
+ /* @__PURE__ */ jsx(HoneyPot, { register, variant })
307
+ ] }),
308
+ children,
309
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
310
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
311
+ Button,
312
+ {
313
+ color: getVariant(callToAction?.variant),
314
+ as: "button",
315
+ type: "submit",
316
+ disabled: !isValid || isSubmitting,
317
+ children: callToAction?.displayText
318
+ }
319
+ ) })
320
+ ]
321
+ }
322
+ )
323
+ ] }) })
324
+ },
325
+ id
326
+ );
327
+ };
328
+ export {
329
+ CommercialDepositsNoLendingOption
330
+ };
@@ -3,7 +3,7 @@ import { FormProps } from './FormProps';
3
3
  export type ContactUsBusinessNmlsIdInputs = {
4
4
  first_name: string;
5
5
  last_name: string;
6
- Company: string;
6
+ company: string;
7
7
  email: string;
8
8
  phone: string;
9
9
  Company_NMLS_ID__c: string;
@@ -76,9 +76,9 @@ import "../Carousel/index.js";
76
76
  /* empty css */
77
77
  import "../Chatbot/store/chat.js";
78
78
  import "../Chatbot/authenticate.js";
79
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
80
  /* empty css */
80
81
  import "../Chatbot/store/messages.js";
81
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
82
82
  /* empty css */
83
83
  import "../Comparison/Comparison.css.js";
84
84
  import "next/image.js";
@@ -170,7 +170,7 @@ const ContactUsBusiness = ({
170
170
  }
171
171
  return removeDashes;
172
172
  }),
173
- Company: z.string().min(1),
173
+ company: z.string().min(1),
174
174
  Company_NMLS_ID__c: z.string().min(6).max(7)
175
175
  });
176
176
  const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
@@ -263,7 +263,7 @@ const ContactUsBusiness = ({
263
263
  Input,
264
264
  {
265
265
  id: "Company",
266
- ...register("Company", {
266
+ ...register("company", {
267
267
  required: true
268
268
  }),
269
269
  type: "text",
@@ -271,8 +271,8 @@ const ContactUsBusiness = ({
271
271
  sizes: "medium",
272
272
  placeholder: "Business Name",
273
273
  required: true,
274
- error: !!errors.Company,
275
- helperText: errors.Company?.message,
274
+ error: !!errors.company,
275
+ helperText: errors.company?.message,
276
276
  variant
277
277
  }
278
278
  ) }),
@@ -76,9 +76,9 @@ import "../Carousel/index.js";
76
76
  /* empty css */
77
77
  import "../Chatbot/store/chat.js";
78
78
  import "../Chatbot/authenticate.js";
79
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
80
  /* empty css */
80
81
  import "../Chatbot/store/messages.js";
81
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
82
82
  /* empty css */
83
83
  import "../Comparison/Comparison.css.js";
84
84
  import "next/image.js";
@@ -8,6 +8,10 @@ export type ContactUsLaVictoireInputs = {
8
8
  message: string;
9
9
  checkbox: boolean;
10
10
  };
11
- export declare const ContactUsLVF: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, dealerCheckbox, }: FormProps & {
11
+ export declare const ContactUsLVF: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, dealerCheckbox, contextData, }: FormProps & {
12
12
  dealerCheckbox?: boolean;
13
+ contextData?: {
14
+ pageName?: string;
15
+ pageUri?: string;
16
+ };
13
17
  }) => import("react/jsx-runtime").JSX.Element;
@@ -33,6 +33,7 @@ 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
35
  import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
36
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
36
37
  const ContactUsLVF = ({
37
38
  icon = false,
38
39
  children,
@@ -47,7 +48,8 @@ const ContactUsLVF = ({
47
48
  validateEmail,
48
49
  onValidate,
49
50
  id,
50
- dealerCheckbox = true
51
+ dealerCheckbox = true,
52
+ contextData
51
53
  }) => {
52
54
  const schema = z.object({
53
55
  firstname: z.string().regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g, {
@@ -78,7 +80,7 @@ const ContactUsLVF = ({
78
80
  message: z.string().min(1, { message: "Please complete this required field." }),
79
81
  checkbox: z.boolean()
80
82
  });
81
- const gen_schema = schema.merge(honeyPotSchema).superRefine((data, ctx) => {
83
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
82
84
  if (!isValidHoneyPot(data)) {
83
85
  ctx.addIssue({
84
86
  code: z.ZodIssueCode.custom,
@@ -106,9 +108,9 @@ const ContactUsLVF = ({
106
108
  return { name: key, value: data[key] };
107
109
  }
108
110
  }).filter((el) => el !== void 0);
109
- const contextData = {
110
- pageName: "La Victoire Finance",
111
- pageUri: "https://lavictoirefinance.com/contact-us"
111
+ const finalContextData = {
112
+ pageName: contextData?.pageName || "La Victoire Finance",
113
+ pageUri: contextData?.pageUri || "https://lavictoirefinance.com/contact-us"
112
114
  };
113
115
  const legalConsentData = {
114
116
  consent: {
@@ -125,7 +127,7 @@ const ContactUsLVF = ({
125
127
  };
126
128
  await onSubmit({
127
129
  fields: formattedFieldsData,
128
- context: contextData,
130
+ context: finalContextData,
129
131
  legalConsentOptions: legalConsentData,
130
132
  form: "contactUSLVF"
131
133
  });
@@ -76,9 +76,9 @@ import "../Carousel/index.js";
76
76
  /* empty css */
77
77
  import "../Chatbot/store/chat.js";
78
78
  import "../Chatbot/authenticate.js";
79
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
80
  /* empty css */
80
81
  import "../Chatbot/store/messages.js";
81
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
82
82
  /* empty css */
83
83
  import "../Comparison/Comparison.css.js";
84
84
  import "next/image.js";
@@ -76,9 +76,9 @@ import "../Carousel/index.js";
76
76
  /* empty css */
77
77
  import "../Chatbot/store/chat.js";
78
78
  import "../Chatbot/authenticate.js";
79
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
80
  /* empty css */
80
81
  import "../Chatbot/store/messages.js";
81
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
82
82
  /* empty css */
83
83
  import "../Comparison/Comparison.css.js";
84
84
  import "next/image.js";
@@ -77,9 +77,9 @@ import "../Carousel/index.js";
77
77
  /* empty css */
78
78
  import "../Chatbot/store/chat.js";
79
79
  import "../Chatbot/authenticate.js";
80
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
80
81
  /* empty css */
81
82
  import "../Chatbot/store/messages.js";
82
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
83
83
  /* empty css */
84
84
  import "../Comparison/Comparison.css.js";
85
85
  import "next/image.js";
@@ -48,7 +48,9 @@ const PurposeOfLoan = ["Bridge", "Construction"];
48
48
  const Purposes = [
49
49
  { value: "Purchase", text: "Purchase" },
50
50
  { value: "RefiCashout", text: "Refi Cashout" },
51
- { value: "RefiRateTermLimitedCO", text: "Refi Rate-Term/Limited C.O." }
51
+ { value: "RefiRateTermLimitedCO", text: "Refi Rate-Term/Limited C.O." },
52
+ { value: "ConstructiontoPerm", text: "Construction to Perm" },
53
+ { value: "InvestorConstruction", text: "Investor Construction" }
52
54
  ];
53
55
  const RepresentativesFico = [
54
56
  { value: "780", text: "780+" },
@@ -65,6 +67,7 @@ const RepresentativesFico = [
65
67
  const DocType = [
66
68
  { value: "FullDoc", text: "Full Doc" },
67
69
  { value: "AssetDepletion", text: "Asset Depletion" },
70
+ { value: "AssetUtilization", text: "Asset Utilization" },
68
71
  { value: "PersonalBankStmt12Mos", text: "Personal Bank Stmt: 12 Mos" },
69
72
  { value: "BusinessBankStmt12Mos", text: "Business Bank Stmt: 12 Mos" },
70
73
  { value: "PersonalBankStmt24Mos", text: "Personal Bank Stmt: 24 Mos" },
@@ -177,20 +180,8 @@ const Fico = [
177
180
  { value: "720-759", text: "720-759" },
178
181
  { value: "700-719", text: "700-719" }
179
182
  ];
180
- const BuydownRate = [
181
- { value: 2.99, text: "2.99%" },
182
- { value: 3.99, text: "3.99%" },
183
- { value: 4.99, text: "4.99%" },
184
- { value: 5.99, text: "5.99%" },
185
- { value: 6.99, text: "6.99%" }
186
- ];
187
- const BuydownTerm = [
188
- { value: 1, text: "1 Year" },
189
- { value: 2, text: "2 Years" },
190
- { value: 3, text: "3 Years" },
191
- { value: 4, text: "4 Years" },
192
- { value: 5, text: "5 Years" }
193
- ];
183
+ const BuydownRate = [{ value: 3.74, text: "3.74%" }];
184
+ const BuydownTerm = [{ value: 3, text: "3 Years" }];
194
185
  const LoanRates = /* @__PURE__ */ new Map([
195
186
  [
196
187
  "3/6 SOFR ARM",
@@ -40,38 +40,10 @@ export declare const headerF: import('@vanilla-extract/recipes').RuntimeFn<{
40
40
  export declare const headerForm: import('@vanilla-extract/recipes').RuntimeFn<{
41
41
  variant: {
42
42
  primary: {
43
- readonly selectors: {
44
- [x: string]: {
45
- WebkitBackgroundClip: string;
46
- backgroundImage: `var(--${string})`;
47
- WebkitTextFillColor: string;
48
- textShadow: string;
49
- color?: undefined;
50
- } | {
51
- color: `var(--${string})`;
52
- WebkitBackgroundClip?: undefined;
53
- backgroundImage?: undefined;
54
- WebkitTextFillColor?: undefined;
55
- textShadow?: undefined;
56
- };
57
- };
43
+ color: `var(--${string})`;
58
44
  };
59
45
  secondary: {
60
- selectors: {
61
- [x: string]: {
62
- WebkitBackgroundClip: "text";
63
- backgroundImage: `var(--${string})`;
64
- WebkitTextFillColor: "transparent";
65
- textShadow: "0px 0px #00000000";
66
- color?: undefined;
67
- } | {
68
- color: `var(--${string})`;
69
- WebkitBackgroundClip?: undefined;
70
- backgroundImage?: undefined;
71
- WebkitTextFillColor?: undefined;
72
- textShadow?: undefined;
73
- };
74
- };
46
+ color: `var(--${string})`;
75
47
  };
76
48
  tertiary: {
77
49
  color: `var(--${string})`;
@@ -77,9 +77,9 @@ import "../../Carousel/index.js";
77
77
  /* empty css */
78
78
  import "../../Chatbot/store/chat.js";
79
79
  import "../../Chatbot/authenticate.js";
80
+ import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
80
81
  /* empty css */
81
82
  import "../../Chatbot/store/messages.js";
82
- import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
83
83
  /* empty css */
84
84
  import "../../Comparison/Comparison.css.js";
85
85
  import "next/image.js";
@@ -239,7 +239,10 @@ const MortgageRate = ({
239
239
  resolver: zodResolver(gen_schema, {
240
240
  async: true
241
241
  }),
242
- mode: "all"
242
+ mode: "all",
243
+ defaultValues: {
244
+ loanPurpose: 1
245
+ }
243
246
  });
244
247
  useEffect(() => {
245
248
  if (loanPurpose === 1) {
@@ -248,6 +251,7 @@ const MortgageRate = ({
248
251
  methods.setValue("mortgageBalance", 0);
249
252
  } else if (loanPurpose === 2) {
250
253
  methods.reset();
254
+ methods.setValue("loanPurpose", 2);
251
255
  methods.setValue("salesPrice", 0);
252
256
  methods.setValue("downPayment", 0);
253
257
  }
@@ -395,7 +399,6 @@ const MortgageRate = ({
395
399
  error: !!errors.loanPurpose,
396
400
  helperText: errors.loanPurpose?.message,
397
401
  variant,
398
- defaultValue: "Select Loan Type",
399
402
  onChange: (e) => {
400
403
  const selectedValue = Number(e.target.value);
401
404
  setLoanPurpose(selectedValue);
@@ -73,9 +73,9 @@ import "../../Carousel/index.js";
73
73
  /* empty css */
74
74
  import "../../Chatbot/store/chat.js";
75
75
  import "../../Chatbot/authenticate.js";
76
+ import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
76
77
  /* empty css */
77
78
  import "../../Chatbot/store/messages.js";
78
- import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
79
  /* empty css */
80
80
  import "../../Comparison/Comparison.css.js";
81
81
  import "next/image.js";
@@ -76,9 +76,9 @@ import "../Carousel/index.js";
76
76
  /* empty css */
77
77
  import "../Chatbot/store/chat.js";
78
78
  import "../Chatbot/authenticate.js";
79
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
80
  /* empty css */
80
81
  import "../Chatbot/store/messages.js";
81
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
82
82
  /* empty css */
83
83
  import "../Comparison/Comparison.css.js";
84
84
  import "next/image.js";
@@ -393,7 +393,7 @@ const QuickPricer = ({
393
393
  helperText: errors.Pledged_Assets__c?.message,
394
394
  variant,
395
395
  value: 1,
396
- children: "Pledget Assets"
396
+ children: "Pledged Assets"
397
397
  }
398
398
  ),
399
399
  /* @__PURE__ */ jsx(