@axos-web-dev/shared-components 2.0.0-dev.enableCTA2 → 2.0.0-dev.insights.11

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 (90) hide show
  1. package/dist/ATMLocator/ATMLocator.js +1 -1
  2. package/dist/Auth/ErrorAlert.js +1 -1
  3. package/dist/Button/Button.js +1 -1
  4. package/dist/Calculators/ApyCalculator/index.js +5 -78
  5. package/dist/Calculators/Calculator.js +1 -1
  6. package/dist/Calculators/MarginTradingCalculator/index.js +1 -1
  7. package/dist/Carousel/index.js +1 -1
  8. package/dist/Chatbot/Bubble.css.js +0 -1
  9. package/dist/Chatbot/ChatWindow.d.ts +0 -1
  10. package/dist/Chatbot/ChatWindow.js +10 -5
  11. package/dist/Chatbot/Chatbot.css.js +1 -0
  12. package/dist/Chatbot/Chatbot.js +42 -75
  13. package/dist/Chatbot/ChatbotMessage.d.ts +0 -1
  14. package/dist/Chatbot/ChatbotMessage.js +1 -2
  15. package/dist/Chatbot/store/messages.d.ts +1 -6
  16. package/dist/Chatbot/store/messages.js +3 -62
  17. package/dist/Chevron/index.js +1 -1
  18. package/dist/Comparison/Comparison.js +1 -1
  19. package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
  20. package/dist/FaqAccordion/index.js +1 -1
  21. package/dist/FdicCallout/index.js +1 -1
  22. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
  23. package/dist/Forms/ApplyNow.js +1 -1
  24. package/dist/Forms/ContactUsBusiness.js +1 -1
  25. package/dist/Forms/ContactUsBusinessNameEmail.js +1 -1
  26. package/dist/Forms/ContactUsNMLSId.js +1 -1
  27. package/dist/Forms/CpraRequest.js +1 -1
  28. package/dist/Forms/CraPublicFile.js +1 -1
  29. package/dist/Forms/EmailOnly.js +2 -12
  30. package/dist/Forms/FormEnums.d.ts +0 -16
  31. package/dist/Forms/FormEnums.js +0 -27
  32. package/dist/Forms/MortgageRate/MortgageRateForm.js +9 -27
  33. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +11 -33
  34. package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +1 -1
  35. package/dist/Forms/MortgageRate/MortgageRateWatch.js +18 -91
  36. package/dist/Forms/MortgageWarehouseLending.js +1 -1
  37. package/dist/Forms/SuccesForm.js +1 -1
  38. package/dist/Forms/index.d.ts +0 -1
  39. package/dist/Forms/index.js +0 -2
  40. package/dist/Hyperlink/index.js +1 -1
  41. package/dist/ImageLink/ImageLink.js +1 -1
  42. package/dist/ImageLink/ImageLinkSet.js +1 -1
  43. package/dist/ImageLink/index.js +1 -1
  44. package/dist/ImageToast/index.js +1 -1
  45. package/dist/Input/DownPaymentInput.js +0 -1
  46. package/dist/Insight/Featured/CategorySelector.css.d.ts +5 -3
  47. package/dist/Insight/Featured/CategorySelector.css.js +12 -8
  48. package/dist/Insight/Featured/CategorySelector.d.ts +1 -0
  49. package/dist/Insight/Featured/CategorySelector.js +75 -35
  50. package/dist/Insight/Featured/Featured.css.d.ts +13 -4
  51. package/dist/Insight/Featured/Featured.css.js +37 -18
  52. package/dist/Insight/Featured/Featured.d.ts +1 -0
  53. package/dist/Insight/Featured/Featured.js +130 -94
  54. package/dist/Insight/Featured/Header.css.d.ts +1 -0
  55. package/dist/Insight/Featured/Header.css.js +9 -6
  56. package/dist/Insight/Featured/Header.js +11 -18
  57. package/dist/Insight/Featured/index.js +13 -4
  58. package/dist/Insight/index.js +13 -4
  59. package/dist/LandingPageHeader/WithLogin.js +1 -1
  60. package/dist/Modal/Modal.js +1 -1
  61. package/dist/NavigationMenu/AxosALTS/index.js +1 -1
  62. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +1 -1
  63. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +1 -1
  64. package/dist/NavigationMenu/AxosBank/SubNavBar.js +2 -2
  65. package/dist/NavigationMenu/AxosBank/index.js +1 -1
  66. package/dist/NavigationMenu/LaVictoire/index.js +1 -1
  67. package/dist/NavigationMenu/NavItem/index.js +1 -1
  68. package/dist/NavigationMenu/ServerNavigation/DropwdownButton.js +1 -1
  69. package/dist/NavigationMenu/ServerNavigation/Menu.js +1 -1
  70. package/dist/NavigationMenu/ServerNavigation/MobileMenu/MobileMenu.js +14 -12
  71. package/dist/NavigationMenu/ServerNavigation/SubNavBar.js +1 -1
  72. package/dist/NavigationMenu/ServerNavigation/SubNavItem.js +1 -1
  73. package/dist/NavigationMenu/ServerNavigation/index.js +1 -1
  74. package/dist/SetContainer/SetContainer.js +1 -1
  75. package/dist/SocialMediaBar/iconsRepository.js +1 -1
  76. package/dist/VideoTile/VideoTile.js +1 -1
  77. package/dist/VideoWrapper/index.js +1 -1
  78. package/dist/assets/CallToActionBar/CallToActionBar.css +2 -1
  79. package/dist/assets/Forms/Forms.css +2 -1
  80. package/dist/assets/Input/Input.css +1 -0
  81. package/dist/assets/Insight/Featured/CategorySelector.css +60 -38
  82. package/dist/assets/Insight/Featured/Featured.css +126 -65
  83. package/dist/assets/Insight/Featured/Header.css +22 -13
  84. package/dist/assets/TextBlock/TextBlock.css +1 -0
  85. package/dist/icons/Clock/index.js +1 -0
  86. package/dist/main.js +12 -5
  87. package/dist/utils/allowedAxosDomains.js +3 -2
  88. package/package.json +4 -5
  89. package/dist/Forms/NonQMLoans.d.ts +0 -16
  90. package/dist/Forms/NonQMLoans.js +0 -471
@@ -1,471 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import z__default from "zod";
4
- import { associatedEmail } from "../utils/EverestValidity.js";
5
- import { getVariant } from "../utils/getVariant.js";
6
- import { useCachedEmailValidator } from "../utils/useCachedValidators.js";
7
- import { CreditScore, PropertyIntendedUse, LoanTypeDetails, LoanPurposes } from "./FormEnums.js";
8
- import { useForm, FormProvider } from "react-hook-form";
9
- import { zodResolver } from "@hookform/resolvers/zod";
10
- import { HoneyPot } from "./HoneyPot/index.js";
11
- import { SalesforceSchema } from "./SalesforceFieldsForm.js";
12
- import clsx from "clsx";
13
- import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
14
- import "../icons/ArrowIcon/ArrowIcon.css.js";
15
- import SvgAxosX from "../icons/AxosX/index.js";
16
- import SvgComponent from "../icons/AxosX/Blue.js";
17
- import "../icons/CheckIcon/CheckIcon.css.js";
18
- 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/NavBar2.css';import '../assets/NavigationMenu/AxosALTS/NavBar2.css';import '../assets/NavigationMenu/AxosClearing/NavBar2.css';import '../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../assets/NavigationMenu/ServerNavigation/NavigationBar.css';import '../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisorServices/NavBar2.css';import '../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisor/NavBar2.css';import '../assets/NavigationMenu/AxosBank/NavBar2.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/Chatbot/ChatWindow.css';import '../assets/Chatbot/Bubble.css';import '../assets/Chatbot/AnimatedGradientBorder.css';import '../assets/CallToActionBar/CallToActionBar.css';import '../assets/Insight/Insight.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/ImageToast/ImageToast.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/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
19
- /* empty css */
20
- /* empty css */
21
- /* empty css */
22
- /* empty css */
23
- /* empty css */
24
- import "../Input/Checkbox.js";
25
- import { CurrencyInput } from "../Input/CurrencyInput.js";
26
- import { Dropdown } from "../Input/Dropdown.js";
27
- import "../Input/Dropdown.css.js";
28
- import { Input } from "../Input/Input.js";
29
- import "../Input/Input.css.js";
30
- import "../Input/InputAmount.js";
31
- import { InputPhone } from "../Input/InputPhone.js";
32
- import "../Input/InputTextArea.js";
33
- import "../Input/DownPaymentInput.js";
34
- import "../Input/RadioButton.js";
35
- import "../Accordion/Accordion.js";
36
- import "../Accordion/Accordion.css.js";
37
- import "react";
38
- import "../Chevron/Chevron.css.js";
39
- import "../AlertBanner/AlertBanner.css.js";
40
- import "../Article/Article.css.js";
41
- import { Button } from "../Button/Button.js";
42
- import "../Button/Button.css.js";
43
- import "react-use";
44
- import "../ArticlesSet/ArticlesSet.css.js";
45
- import "../IconBillboard/IconBillboard.css.js";
46
- import "../Calculators/calculator.css.js";
47
- import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
48
- import "../Modal/contextApi/store.js";
49
- import "next/image.js";
50
- import "../Calculators/ApyCalculator/ApyCalculator.css.js";
51
- import "../Calculators/ApyCalculatorUserTest/ApyCalculatorUserTest.css.js";
52
- import "../HeroBanner/LargeBanner.css.js";
53
- import "../HeroBanner/HeroBanner.css.js";
54
- import "../HeroBanner/SelectionBanner.css.js";
55
- /* empty css */
56
- /* empty css */
57
- /* empty css */
58
- import "../SetContainer/SetContainer.css.js";
59
- import "../Table/Table.css.js";
60
- import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
61
- import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
62
- import "../Input/PercentageInput.js";
63
- import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
64
- import "../Input/RadioButton.css.js";
65
- import "../Input/Checkbox.css.js";
66
- import "../LoadingIndicator/LoadingIndicator.css.js";
67
- /* empty css */
68
- import "../Interstitial/Interstitial-variants.css.js";
69
- import "../Inputs/Input.css.js";
70
- /* empty css */
71
- import "../Hyperlink/Hyperlink.css.js";
72
- /* empty css */
73
- import "iframe-resizer";
74
- /* empty css */
75
- import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
76
- import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
77
- import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
78
- /* empty css */
79
- import "react-dom";
80
- /* empty css */
81
- import "../Auth/SignInPassword.js";
82
- /* empty css */
83
- /* empty css */
84
- /* empty css */
85
- /* empty css */
86
- import "../Carousel/index.js";
87
- /* empty css */
88
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
89
- /* empty css */
90
- import "../Chatbot/store/chat.js";
91
- import "../Chatbot/Chatbot.js";
92
- /* empty css */
93
- import "../Chatbot/store/messages.js";
94
- /* empty css */
95
- import "../Comparison/Comparison.css.js";
96
- import "../Tab/Tab.css.js";
97
- import "../icons/Star/Star.css.js";
98
- import "../ContentBanner/ContentBanner.css.js";
99
- /* empty css */
100
- import "../ExecutiveBio/ExecutiveBio.css.js";
101
- import "../FaqAccordion/index.js";
102
- import "../FooterDisclosure/FooterDisclosure.css.js";
103
- /* empty css */
104
- /* empty css */
105
- /* empty css */
106
- import "../ImageBillboard/ImageBillboard.css.js";
107
- import "next/script.js";
108
- /* empty css */
109
- /* empty css */
110
- /* empty css */
111
- /* empty css */
112
- /* empty css */
113
- import "../LandingPageHeader/LandingPageHeader.css.js";
114
- import "next/link.js";
115
- /* empty css */
116
- /* empty css */
117
- import "next/navigation.js";
118
- /* empty css */
119
- /* empty css */
120
- /* empty css */
121
- /* empty css */
122
- import "../NavigationMenu/ServerNavigation/Menu.js";
123
- import "../NavigationMenu/ServerNavigation/SubNavbar.css.js";
124
- /* empty css */
125
- /* empty css */
126
- /* empty css */
127
- /* empty css */
128
- import "../PageNavItem/PageNavItem.css.js";
129
- import "react-slick";
130
- /* empty css */
131
- /* empty css */
132
- /* empty css */
133
- /* empty css */
134
- import "../StepItem/StepItem.css.js";
135
- import "../StepItemSet/StepItemSet.css.js";
136
- /* empty css */
137
- /* empty css */
138
- /* empty css */
139
- /* empty css */
140
- /* empty css */
141
- import { honeyPotSchema, isValidHoneyPot } from "./HoneyPot/honeyPotValidation.js";
142
- const NonQMLoans = ({
143
- icon = false,
144
- children,
145
- onSubmit = (values) => {
146
- console.log(values);
147
- },
148
- disclosure,
149
- variant: fullVariant = "primary",
150
- headline,
151
- description,
152
- callToAction,
153
- validateEmail,
154
- onValidate,
155
- id
156
- }) => {
157
- const cachedEmailValidator = useCachedEmailValidator(validateEmail);
158
- const schema = z__default.object({
159
- first_name: z__default.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
160
- last_name: z__default.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
161
- phone: z__default.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) => {
162
- const removeDashes = val.replace(/-/gi, "");
163
- if (removeDashes.length !== 10) {
164
- ctx.addIssue({
165
- code: z__default.ZodIssueCode.custom,
166
- message: "Phone must have at least 10 and no more than 10 characters."
167
- });
168
- return z__default.NEVER;
169
- }
170
- if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
171
- ctx.addIssue({
172
- code: z__default.ZodIssueCode.custom,
173
- message: "Invalid phone number."
174
- });
175
- return z__default.NEVER;
176
- }
177
- return removeDashes;
178
- }),
179
- email: z__default.string().email({ message: "Email is required." }).refine(cachedEmailValidator, { message: "Invalid email address." }),
180
- Loan__c: z__default.string().min(1, { message: "Purpose is required" }).refine((val) => LoanPurposes.map((item) => item.value).includes(val), {
181
- message: "Loan Purpose is required"
182
- }),
183
- Loan_Type: z__default.string().min(1, { message: "Loan Type is required" }).refine(
184
- (val) => LoanTypeDetails.map((item) => item.value).includes(val),
185
- {
186
- message: "Loan Type is required"
187
- }
188
- ),
189
- Loan_Amount__c: z__default.preprocess(
190
- (val) => {
191
- if (typeof val !== "string") return val;
192
- const cleaned = val.replace(/[$ ,]/g, "");
193
- return cleaned === "" ? void 0 : parseInt(cleaned, 10);
194
- },
195
- z__default.number({
196
- required_error: "Loan amount is required",
197
- invalid_type_error: "Please provide a valid loan amount"
198
- }).min(15e4, "Please enter a value between $150,000 and $30,000,000.").max(3e7, "Please enter a value between $150,000 and $30,000,000.")
199
- ),
200
- Property_Value__c: z__default.string({
201
- message: "Please provide a valid property value"
202
- }).min(1, "Property value is required").transform((val) => {
203
- const property_value = val.replace(/[$ ]/gi, "");
204
- const new_property_value = property_value.replaceAll(",", "");
205
- return parseInt(new_property_value);
206
- }),
207
- Property_Intended_Use__c: z__default.string().min(1, { message: "Intended use is required" }).refine(
208
- (val) => PropertyIntendedUse.map((item) => item.value).includes(val),
209
- {
210
- message: "Intended use is required"
211
- }
212
- ),
213
- zip: z__default.string().trim().min(1, { message: "Zip Code is required." }).regex(/^\d{5}$/, { message: "ZIP code must be 5 digits." }),
214
- Credit_Score_OB__c: z__default.string().min(1, { message: "Credit Score is required" }).refine((val) => CreditScore.map((item) => item.value).includes(val), {
215
- message: "Credit Score is required"
216
- })
217
- });
218
- const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
219
- if (!isValidHoneyPot(data)) {
220
- ctx.addIssue({
221
- code: z__default.ZodIssueCode.custom,
222
- message: "fields are not valid."
223
- });
224
- }
225
- });
226
- const methods = useForm({
227
- resolver: zodResolver(gen_schema),
228
- mode: "all"
229
- });
230
- const {
231
- handleSubmit,
232
- register,
233
- formState: { errors, isValid, isSubmitting }
234
- } = methods;
235
- const submitForm = async (data) => {
236
- await onSubmit(data);
237
- };
238
- const variant = getVariant(fullVariant);
239
- return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
240
- icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
241
- /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
242
- /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
243
- description && /* @__PURE__ */ jsx(
244
- "div",
245
- {
246
- className: `${form} ${descriptionField({ variant })} text_center`,
247
- children: description
248
- }
249
- )
250
- ] }),
251
- /* @__PURE__ */ jsxs(
252
- "form",
253
- {
254
- className: form,
255
- onSubmit: async (e) => {
256
- onValidate && onValidate(e);
257
- await handleSubmit(submitForm)(e);
258
- e.preventDefault();
259
- },
260
- children: [
261
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
262
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
263
- Input,
264
- {
265
- id: "first_name",
266
- ...register("first_name", { required: true }),
267
- label: "First Name",
268
- sizes: "medium",
269
- placeholder: "First Name",
270
- required: true,
271
- error: !!errors.first_name,
272
- helperText: errors.first_name?.message,
273
- variant
274
- }
275
- ) }),
276
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
277
- Input,
278
- {
279
- id: "last_name",
280
- ...register("last_name", { required: true }),
281
- label: "Last Name",
282
- sizes: "medium",
283
- placeholder: "Last Name",
284
- required: true,
285
- error: !!errors.last_name,
286
- helperText: errors.last_name?.message,
287
- variant
288
- }
289
- ) }),
290
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
291
- InputPhone,
292
- {
293
- id: "phone",
294
- ...register("phone", { required: true, maxLength: 12 }),
295
- label: "Phone number",
296
- sizes: "medium",
297
- placeholder: "Phone",
298
- required: true,
299
- error: !!errors.phone,
300
- helperText: errors.phone?.message,
301
- variant
302
- }
303
- ) }),
304
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
305
- Input,
306
- {
307
- id: "email",
308
- ...register("email", {
309
- required: true,
310
- validate: {
311
- isValid: associatedEmail
312
- }
313
- }),
314
- label: "Email",
315
- sizes: "medium",
316
- placeholder: "Email",
317
- required: true,
318
- error: !!errors.email,
319
- helperText: errors.email?.message,
320
- variant
321
- }
322
- ) }),
323
- /* @__PURE__ */ jsxs(
324
- Dropdown,
325
- {
326
- id: "Loan__c",
327
- ...register("Loan__c", {
328
- required: true
329
- }),
330
- label: "Loan purpose",
331
- sizes: "medium",
332
- required: true,
333
- error: !!errors.Loan__c,
334
- helperText: errors.Loan__c?.message,
335
- variant,
336
- defaultValue: "",
337
- children: [
338
- /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
339
- LoanPurposes.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
340
- ]
341
- }
342
- ),
343
- /* @__PURE__ */ jsxs(
344
- Dropdown,
345
- {
346
- id: "Loan_Type",
347
- ...register("Loan_Type", {
348
- required: true
349
- }),
350
- label: "Loan type",
351
- sizes: "medium",
352
- required: true,
353
- error: !!errors.Loan_Type,
354
- helperText: errors.Loan_Type?.message,
355
- variant,
356
- defaultValue: "",
357
- children: [
358
- /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
359
- LoanTypeDetails.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
360
- ]
361
- }
362
- ),
363
- /* @__PURE__ */ jsx(
364
- CurrencyInput,
365
- {
366
- id: "Loan_Amount__c",
367
- ...register("Loan_Amount__c", {
368
- required: true
369
- }),
370
- label: "Estimated loan amount",
371
- sizes: "medium",
372
- required: true,
373
- error: !!errors.Loan_Amount__c,
374
- helperText: errors.Loan_Amount__c?.message,
375
- variant,
376
- maxfractiondigits: 0,
377
- minfractiondigits: 0
378
- }
379
- ),
380
- /* @__PURE__ */ jsx(
381
- CurrencyInput,
382
- {
383
- id: "Property_Value__c",
384
- ...register("Property_Value__c", {
385
- required: true
386
- }),
387
- label: "Property value",
388
- sizes: "medium",
389
- required: true,
390
- error: !!errors.Property_Value__c,
391
- helperText: errors.Property_Value__c?.message,
392
- variant,
393
- maxfractiondigits: 0,
394
- minfractiondigits: 0
395
- }
396
- ),
397
- /* @__PURE__ */ jsxs(
398
- Dropdown,
399
- {
400
- id: "Property_Intended_Use__c",
401
- ...register("Property_Intended_Use__c", {
402
- required: true
403
- }),
404
- label: "Property usage",
405
- sizes: "medium",
406
- required: true,
407
- error: !!errors.Property_Intended_Use__c,
408
- helperText: errors.Property_Intended_Use__c?.message,
409
- variant,
410
- defaultValue: "",
411
- children: [
412
- /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
413
- PropertyIntendedUse.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
414
- ]
415
- }
416
- ),
417
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
418
- Input,
419
- {
420
- id: "zip",
421
- ...register("zip", { required: true }),
422
- label: "Zip code",
423
- sizes: "medium",
424
- required: true,
425
- error: !!errors.zip,
426
- helperText: errors.zip?.message,
427
- variant
428
- }
429
- ) }),
430
- /* @__PURE__ */ jsxs(
431
- Dropdown,
432
- {
433
- id: "Credit_Score_OB__c",
434
- ...register("Credit_Score_OB__c", {
435
- required: true
436
- }),
437
- label: "Credit score",
438
- sizes: "medium",
439
- required: true,
440
- error: !!errors.Credit_Score_OB__c,
441
- helperText: errors.Credit_Score_OB__c?.message,
442
- variant,
443
- defaultValue: "",
444
- children: [
445
- /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
446
- CreditScore.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
447
- ]
448
- }
449
- ),
450
- /* @__PURE__ */ jsx(HoneyPot, { register, variant })
451
- ] }),
452
- children,
453
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
454
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
455
- Button,
456
- {
457
- color: getVariant(callToAction?.variant),
458
- as: "button",
459
- type: "submit",
460
- disabled: !isValid || isSubmitting,
461
- children: callToAction?.displayText
462
- }
463
- ) })
464
- ]
465
- }
466
- )
467
- ] }) }) }, id);
468
- };
469
- export {
470
- NonQMLoans
471
- };