@axos-web-dev/shared-components 0.0.117 → 0.0.119

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 (120) hide show
  1. package/dist/ATMLocator/ATMLocator.js +3 -2
  2. package/dist/ArticlesSet/ArticlesSet.js +1 -1
  3. package/dist/Button/Button.js +3 -2
  4. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +16 -1
  5. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +8 -8
  6. package/dist/Calculators/AnnualFeeCalculator/index.js +7 -4
  7. package/dist/Calculators/Calculator.js +1 -0
  8. package/dist/Calculators/MarginTradingCalculator/index.js +29 -7
  9. package/dist/Calculators/MaxLoanCalculator/index.js +3 -1
  10. package/dist/Calculators/MonthlyPaymentCalculator/index.js +3 -1
  11. package/dist/Calculators/calculator.css.d.ts +1 -0
  12. package/dist/Calculators/calculator.css.js +4 -2
  13. package/dist/Calculators/calculators.js +6 -0
  14. package/dist/Calculators/index.js +2 -1
  15. package/dist/Carousel/Carousel.css.d.ts +1 -0
  16. package/dist/Carousel/Carousel.css.js +13 -11
  17. package/dist/Carousel/index.d.ts +1 -0
  18. package/dist/Carousel/index.js +38 -29
  19. package/dist/Chevron/index.js +2 -1
  20. package/dist/Comparison/Comparison.js +2 -1
  21. package/dist/ContentBanner/ContentBanner.interface.d.ts +2 -1
  22. package/dist/ContentBanner/index.js +3 -2
  23. package/dist/DownloadTile/DownloadTile.css.d.ts +1 -0
  24. package/dist/DownloadTile/DownloadTile.css.js +9 -7
  25. package/dist/DownloadTile/DownloadTile.interface.d.ts +1 -0
  26. package/dist/DownloadTile/index.js +34 -25
  27. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +1 -0
  28. package/dist/ExecutiveBio/ExecutiveBio.css.js +23 -21
  29. package/dist/ExecutiveBio/ExecutiveBio.js +3 -2
  30. package/dist/ExecutiveBio/index.js +2 -1
  31. package/dist/FaqAccordion/FaqAccordion.css.d.ts +1 -0
  32. package/dist/FaqAccordion/FaqAccordion.css.js +7 -5
  33. package/dist/FaqAccordion/index.d.ts +2 -0
  34. package/dist/FaqAccordion/index.js +16 -8
  35. package/dist/FooterDisclosure/FooterDisclosure.d.ts +5 -2
  36. package/dist/FooterDisclosure/FooterDisclosure.js +18 -2
  37. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -1
  38. package/dist/Forms/ApplicationStart.js +105 -113
  39. package/dist/Forms/BlendPurchase.d.ts +11 -0
  40. package/dist/Forms/BlendPurchase.js +215 -0
  41. package/dist/Forms/BlendRefinance.d.ts +11 -0
  42. package/dist/Forms/BlendRefinance.js +215 -0
  43. package/dist/Forms/ClearingForm.js +177 -185
  44. package/dist/Forms/CommercialLending.js +276 -281
  45. package/dist/Forms/ContactCompany.js +107 -115
  46. package/dist/Forms/ContactUs.js +89 -97
  47. package/dist/Forms/ContactUsAAS.js +170 -178
  48. package/dist/Forms/ContactUsBusiness.js +131 -138
  49. package/dist/Forms/ContactUsNMLSId.js +114 -121
  50. package/dist/Forms/CpraRequest.js +592 -600
  51. package/dist/Forms/DealerServices.js +219 -227
  52. package/dist/Forms/EmailOnly.js +51 -58
  53. package/dist/Forms/EmailUs.js +65 -73
  54. package/dist/Forms/ScheduleCall.js +149 -160
  55. package/dist/Forms/ScheduleCallPremier.js +171 -179
  56. package/dist/Forms/SuccesForm.js +2 -1
  57. package/dist/Forms/WcplSurvey.js +102 -110
  58. package/dist/HeroBanner/HeroBanner.js +2 -2
  59. package/dist/Hyperlink/index.js +2 -1
  60. package/dist/IconBillboard/IconBillboard.d.ts +1 -0
  61. package/dist/IconBillboard/IconBillboard.js +6 -4
  62. package/dist/ImageBillboard/ImageBillboard.interface.d.ts +1 -0
  63. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  64. package/dist/ImageBillboard/ImageBillboardSet.js +3 -1
  65. package/dist/ImageLink/ImageLink.css.d.ts +1 -0
  66. package/dist/ImageLink/ImageLink.css.js +5 -1
  67. package/dist/ImageLink/ImageLink.js +3 -2
  68. package/dist/ImageLink/ImageLinkSet.js +5 -3
  69. package/dist/ImageLink/index.js +1 -1
  70. package/dist/Insight/Featured/CategorySelector.js +2 -1
  71. package/dist/Insight/Featured/Featured.js +2 -1
  72. package/dist/MainHTML/index.d.ts +2 -1
  73. package/dist/MainHTML/index.js +10 -2
  74. package/dist/Modal/Modal.js +3 -2
  75. package/dist/NavigationMenu/AxosBank/NavData.js +2 -1
  76. package/dist/NavigationMenu/AxosBank/SubNavBar.js +2 -1
  77. package/dist/NavigationMenu/AxosBank/index.js +3 -2
  78. package/dist/PageNavItem/PageNavItem.js +8 -1
  79. package/dist/PageNavSet/PageNavSet.js +16 -19
  80. package/dist/SetContainer/SetContainer.d.ts +2 -1
  81. package/dist/SetContainer/SetContainer.js +6 -3
  82. package/dist/StepItemSet/StepItemSet.js +1 -1
  83. package/dist/Table/Table.css.d.ts +1 -0
  84. package/dist/Table/Table.css.js +18 -16
  85. package/dist/Table/Table.js +23 -15
  86. package/dist/Table/index.js +2 -1
  87. package/dist/TextBlock/TextBlock.css.d.ts +1 -0
  88. package/dist/TextBlock/TextBlock.css.js +6 -4
  89. package/dist/TextBlock/TextBlock.d.ts +1 -0
  90. package/dist/TextBlock/TextBlock.js +13 -5
  91. package/dist/TextBlock/index.js +3 -2
  92. package/dist/VideoTile/VideoTile.css.d.ts +1 -0
  93. package/dist/VideoTile/VideoTile.css.js +15 -13
  94. package/dist/VideoTile/VideoTile.interface.d.ts +1 -0
  95. package/dist/VideoTile/VideoTile.js +65 -56
  96. package/dist/VideoTile/index.js +2 -1
  97. package/dist/VideoWrapper/VideoWrapper.css.d.ts +1 -0
  98. package/dist/VideoWrapper/VideoWrapper.css.js +6 -4
  99. package/dist/VideoWrapper/index.d.ts +1 -0
  100. package/dist/VideoWrapper/index.js +6 -4
  101. package/dist/assets/ArticlesSet/ArticlesSet.css +1 -1
  102. package/dist/assets/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css +23 -12
  103. package/dist/assets/Calculators/calculator.css +24 -11
  104. package/dist/assets/Carousel/Carousel.css +52 -39
  105. package/dist/assets/Comparison/Comparison.css +2 -3
  106. package/dist/assets/DownloadTile/DownloadTile.css +32 -19
  107. package/dist/assets/ExecutiveBio/ExecutiveBio.css +92 -79
  108. package/dist/assets/FaqAccordion/FaqAccordion.css +24 -11
  109. package/dist/assets/IconBillboard/IconBillboard.css +11 -0
  110. package/dist/assets/ImageBillboard/ImageBillboard.css +9 -0
  111. package/dist/assets/ImageLink/ImageLink.css +13 -0
  112. package/dist/assets/PageNavSet/PageNavigationSet.css +6 -9
  113. package/dist/assets/Table/Table.css +90 -79
  114. package/dist/assets/TextBlock/TextBlock.css +16 -3
  115. package/dist/assets/VideoTile/VideoTile.css +27 -14
  116. package/dist/assets/VideoWrapper/VideoWrapper.css +18 -5
  117. package/dist/main.js +10 -5
  118. package/dist/utils/allowedAxosDomains.js +1 -1
  119. package/package.json +1 -1
  120. package/dist/ImageLink/ImageLink.css.ts.vanilla.css.js +0 -1
@@ -0,0 +1,215 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { zodResolver } from "@hookform/resolvers/zod";
4
+ import { Button } from "../Button/Button.js";
5
+ import "../Button/Button.css.js";
6
+ import "react";
7
+ import "react-use";
8
+ import "../Input/Checkbox.js";
9
+ import "../Input/CurrencyInput.js";
10
+ import "../Input/Dropdown.js";
11
+ /* empty css */
12
+ /* empty css */
13
+ import { Input } from "../Input/Input.js";
14
+ import "../Input/Input.css.js";
15
+ import "../Input/InputAmount.js";
16
+ import { InputPhone } from "../Input/InputPhone.js";
17
+ import "../Input/InputTextArea.js";
18
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
19
+ import SvgAxosX from "../icons/AxosX/index.js";
20
+ import SvgComponent from "../icons/AxosX/Blue.js";
21
+ import "../icons/CheckIcon/CheckIcon.css.js";
22
+ /* empty css */
23
+ /* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
+ import { associatedEmail } from "../utils/EverestValidity.js";
27
+ import "../utils/allowedAxosDomains.js";
28
+ import { getVariant } from "../utils/getVariant.js";
29
+ import clsx from "clsx";
30
+ import { useForm, FormProvider } from "react-hook-form";
31
+ import * as z from "zod";
32
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
33
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
34
+ const BlendPurchase = ({
35
+ icon = false,
36
+ children,
37
+ onSubmit = (values) => {
38
+ console.log(values);
39
+ },
40
+ disclosure,
41
+ variant: fullVariant = "primary",
42
+ headline,
43
+ description,
44
+ callToAction,
45
+ validateEmail,
46
+ id
47
+ }) => {
48
+ const schema = z.object({
49
+ property_Type: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
50
+ Occupancy: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
51
+ SalesPrice: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
52
+ DownPayment: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
53
+ const removeDashes = val.replace(/-/gi, "");
54
+ if (removeDashes.length !== 10) {
55
+ ctx.addIssue({
56
+ code: z.ZodIssueCode.custom,
57
+ message: "Phone must have at least 10 and no more than 10 characters."
58
+ });
59
+ return z.NEVER;
60
+ }
61
+ return removeDashes;
62
+ }),
63
+ CreditScore: z.string(),
64
+ ZipCode: z.string()
65
+ });
66
+ const methods = useForm({
67
+ resolver: zodResolver(schema.merge(SalesforceSchema), {
68
+ async: true
69
+ }),
70
+ mode: "all",
71
+ defaultValues: {}
72
+ });
73
+ const {
74
+ handleSubmit,
75
+ register,
76
+ formState: { errors, isValid, isSubmitting }
77
+ } = methods;
78
+ const submitForm = async (data) => {
79
+ await onSubmit(data);
80
+ };
81
+ const variant = getVariant(fullVariant);
82
+ return /* @__PURE__ */ jsx(
83
+ "section",
84
+ {
85
+ id: `id_${id}`,
86
+ className: clsx(formContainer({ variant })),
87
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
88
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
89
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
90
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
91
+ description && /* @__PURE__ */ jsx(
92
+ "div",
93
+ {
94
+ className: clsx(
95
+ "text_center",
96
+ form,
97
+ descriptionField({ variant })
98
+ ),
99
+ children: description
100
+ }
101
+ )
102
+ ] }),
103
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
104
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
105
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
106
+ Input,
107
+ {
108
+ id: "property_Type",
109
+ ...register("property_Type", { required: true }),
110
+ label: "Property Type",
111
+ sizes: "medium",
112
+ required: true,
113
+ error: !!errors.property_Type,
114
+ helperText: errors.property_Type?.message,
115
+ variant
116
+ }
117
+ ) }),
118
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
119
+ Input,
120
+ {
121
+ id: "Occupancy",
122
+ ...register("Occupancy", { required: true }),
123
+ label: "Property Usage",
124
+ sizes: "medium",
125
+ required: true,
126
+ error: !!errors.Occupancy,
127
+ helperText: errors.Occupancy?.message,
128
+ variant
129
+ }
130
+ ) }),
131
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
132
+ Input,
133
+ {
134
+ id: "SalesPrice",
135
+ ...register("SalesPrice", {
136
+ required: true,
137
+ validate: {
138
+ isValid: associatedEmail
139
+ }
140
+ }),
141
+ label: "Purchase Price",
142
+ sizes: "medium",
143
+ required: true,
144
+ error: !!errors.SalesPrice,
145
+ helperText: errors.SalesPrice?.message,
146
+ variant
147
+ }
148
+ ) }),
149
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
150
+ InputPhone,
151
+ {
152
+ id: "DownPayment",
153
+ ...register("DownPayment", {
154
+ required: true,
155
+ maxLength: 12
156
+ }),
157
+ label: "Down Payment",
158
+ sizes: "medium",
159
+ required: true,
160
+ error: !!errors.DownPayment,
161
+ helperText: errors.DownPayment?.message,
162
+ variant
163
+ }
164
+ ) }),
165
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
166
+ InputPhone,
167
+ {
168
+ id: "CreditScore",
169
+ ...register("CreditScore", {
170
+ required: true,
171
+ maxLength: 12
172
+ }),
173
+ label: "Credit Score",
174
+ sizes: "medium",
175
+ required: true,
176
+ error: !!errors.CreditScore,
177
+ helperText: errors.CreditScore?.message,
178
+ variant
179
+ }
180
+ ) }),
181
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
182
+ InputPhone,
183
+ {
184
+ id: "ZipCode",
185
+ ...register("ZipCode", { required: true, maxLength: 12 }),
186
+ label: "Zip Code",
187
+ sizes: "medium",
188
+ required: true,
189
+ error: !!errors.ZipCode,
190
+ helperText: errors.ZipCode?.message,
191
+ variant
192
+ }
193
+ ) })
194
+ ] }),
195
+ children,
196
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
197
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
198
+ Button,
199
+ {
200
+ color: getVariant(callToAction?.variant),
201
+ as: "button",
202
+ type: "submit",
203
+ disabled: !isValid || isSubmitting,
204
+ children: callToAction?.displayText
205
+ }
206
+ ) })
207
+ ] })
208
+ ] }) })
209
+ },
210
+ id
211
+ );
212
+ };
213
+ export {
214
+ BlendPurchase
215
+ };
@@ -0,0 +1,11 @@
1
+ import { FormProps } from './FormProps';
2
+
3
+ export type BlendPurchaseInputs = {
4
+ property_Type: string;
5
+ Occupancy: string;
6
+ SalesPrice: string;
7
+ DownPayment: string;
8
+ CreditScore: string;
9
+ ZipCode: string;
10
+ };
11
+ export declare const BlendPurchase: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,215 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { zodResolver } from "@hookform/resolvers/zod";
4
+ import { Button } from "../Button/Button.js";
5
+ import "../Button/Button.css.js";
6
+ import "react";
7
+ import "react-use";
8
+ import "../Input/Checkbox.js";
9
+ import "../Input/CurrencyInput.js";
10
+ import "../Input/Dropdown.js";
11
+ /* empty css */
12
+ /* empty css */
13
+ import { Input } from "../Input/Input.js";
14
+ import "../Input/Input.css.js";
15
+ import "../Input/InputAmount.js";
16
+ import { InputPhone } from "../Input/InputPhone.js";
17
+ import "../Input/InputTextArea.js";
18
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
19
+ import SvgAxosX from "../icons/AxosX/index.js";
20
+ import SvgComponent from "../icons/AxosX/Blue.js";
21
+ import "../icons/CheckIcon/CheckIcon.css.js";
22
+ /* empty css */
23
+ /* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
+ import { associatedEmail } from "../utils/EverestValidity.js";
27
+ import "../utils/allowedAxosDomains.js";
28
+ import { getVariant } from "../utils/getVariant.js";
29
+ import clsx from "clsx";
30
+ import { useForm, FormProvider } from "react-hook-form";
31
+ import * as z from "zod";
32
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
33
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
34
+ const BlendPurchase = ({
35
+ icon = false,
36
+ children,
37
+ onSubmit = (values) => {
38
+ console.log(values);
39
+ },
40
+ disclosure,
41
+ variant: fullVariant = "primary",
42
+ headline,
43
+ description,
44
+ callToAction,
45
+ validateEmail,
46
+ id
47
+ }) => {
48
+ const schema = z.object({
49
+ property_Type: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
50
+ Occupancy: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
51
+ SalesPrice: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
52
+ DownPayment: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
53
+ const removeDashes = val.replace(/-/gi, "");
54
+ if (removeDashes.length !== 10) {
55
+ ctx.addIssue({
56
+ code: z.ZodIssueCode.custom,
57
+ message: "Phone must have at least 10 and no more than 10 characters."
58
+ });
59
+ return z.NEVER;
60
+ }
61
+ return removeDashes;
62
+ }),
63
+ CreditScore: z.string(),
64
+ ZipCode: z.string()
65
+ });
66
+ const methods = useForm({
67
+ resolver: zodResolver(schema.merge(SalesforceSchema), {
68
+ async: true
69
+ }),
70
+ mode: "all",
71
+ defaultValues: {}
72
+ });
73
+ const {
74
+ handleSubmit,
75
+ register,
76
+ formState: { errors, isValid, isSubmitting }
77
+ } = methods;
78
+ const submitForm = async (data) => {
79
+ await onSubmit(data);
80
+ };
81
+ const variant = getVariant(fullVariant);
82
+ return /* @__PURE__ */ jsx(
83
+ "section",
84
+ {
85
+ id: `id_${id}`,
86
+ className: clsx(formContainer({ variant })),
87
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
88
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
89
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
90
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
91
+ description && /* @__PURE__ */ jsx(
92
+ "div",
93
+ {
94
+ className: clsx(
95
+ "text_center",
96
+ form,
97
+ descriptionField({ variant })
98
+ ),
99
+ children: description
100
+ }
101
+ )
102
+ ] }),
103
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
104
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
105
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
106
+ Input,
107
+ {
108
+ id: "property_Type",
109
+ ...register("property_Type", { required: true }),
110
+ label: "Property Type",
111
+ sizes: "medium",
112
+ required: true,
113
+ error: !!errors.property_Type,
114
+ helperText: errors.property_Type?.message,
115
+ variant
116
+ }
117
+ ) }),
118
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
119
+ Input,
120
+ {
121
+ id: "Occupancy",
122
+ ...register("Occupancy", { required: true }),
123
+ label: "Property Usage",
124
+ sizes: "medium",
125
+ required: true,
126
+ error: !!errors.Occupancy,
127
+ helperText: errors.Occupancy?.message,
128
+ variant
129
+ }
130
+ ) }),
131
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
132
+ Input,
133
+ {
134
+ id: "SalesPrice",
135
+ ...register("SalesPrice", {
136
+ required: true,
137
+ validate: {
138
+ isValid: associatedEmail
139
+ }
140
+ }),
141
+ label: "Purchase Price",
142
+ sizes: "medium",
143
+ required: true,
144
+ error: !!errors.SalesPrice,
145
+ helperText: errors.SalesPrice?.message,
146
+ variant
147
+ }
148
+ ) }),
149
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
150
+ InputPhone,
151
+ {
152
+ id: "DownPayment",
153
+ ...register("DownPayment", {
154
+ required: true,
155
+ maxLength: 12
156
+ }),
157
+ label: "Down Payment",
158
+ sizes: "medium",
159
+ required: true,
160
+ error: !!errors.DownPayment,
161
+ helperText: errors.DownPayment?.message,
162
+ variant
163
+ }
164
+ ) }),
165
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
166
+ InputPhone,
167
+ {
168
+ id: "CreditScore",
169
+ ...register("CreditScore", {
170
+ required: true,
171
+ maxLength: 12
172
+ }),
173
+ label: "Credit Score",
174
+ sizes: "medium",
175
+ required: true,
176
+ error: !!errors.CreditScore,
177
+ helperText: errors.CreditScore?.message,
178
+ variant
179
+ }
180
+ ) }),
181
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
182
+ InputPhone,
183
+ {
184
+ id: "ZipCode",
185
+ ...register("ZipCode", { required: true, maxLength: 12 }),
186
+ label: "Zip Code",
187
+ sizes: "medium",
188
+ required: true,
189
+ error: !!errors.ZipCode,
190
+ helperText: errors.ZipCode?.message,
191
+ variant
192
+ }
193
+ ) })
194
+ ] }),
195
+ children,
196
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
197
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
198
+ Button,
199
+ {
200
+ color: getVariant(callToAction?.variant),
201
+ as: "button",
202
+ type: "submit",
203
+ disabled: !isValid || isSubmitting,
204
+ children: callToAction?.displayText
205
+ }
206
+ ) })
207
+ ] })
208
+ ] }) })
209
+ },
210
+ id
211
+ );
212
+ };
213
+ export {
214
+ BlendPurchase
215
+ };