@axos-web-dev/shared-components 0.0.110 → 0.0.112

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 (41) hide show
  1. package/dist/ATMLocator/ATMLocator.js +1 -0
  2. package/dist/Button/Button.js +6 -2
  3. package/dist/Calculators/Calculator.js +1 -0
  4. package/dist/Carousel/index.js +1 -0
  5. package/dist/Chevron/index.js +1 -0
  6. package/dist/Comparison/Comparison.js +1 -0
  7. package/dist/FaqAccordion/index.js +1 -0
  8. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +95 -72
  9. package/dist/Forms/ClearingForm.js +26 -12
  10. package/dist/Forms/ContactUsBusiness.js +1 -0
  11. package/dist/Forms/ContactUsNMLSId.js +1 -0
  12. package/dist/Forms/CpraRequest.d.ts +27 -0
  13. package/dist/Forms/CpraRequest.js +733 -0
  14. package/dist/Forms/EmailOnly.js +1 -0
  15. package/dist/Forms/Forms.css.d.ts +1 -0
  16. package/dist/Forms/Forms.css.js +2 -0
  17. package/dist/Forms/SuccesForm.js +1 -0
  18. package/dist/Forms/index.d.ts +1 -0
  19. package/dist/Forms/index.js +4 -1
  20. package/dist/HeroBanner/HeroBanner.css.d.ts +1 -0
  21. package/dist/Hyperlink/index.js +1 -0
  22. package/dist/ImageLink/ImageLink.js +1 -0
  23. package/dist/ImageLink/ImageLinkSet.js +1 -0
  24. package/dist/ImageLink/index.js +1 -0
  25. package/dist/Input/CheckboxGroup.js +1 -2
  26. package/dist/Insight/Featured/CategorySelector.js +1 -0
  27. package/dist/Insight/Featured/Featured.js +1 -0
  28. package/dist/Modal/Modal.js +1 -0
  29. package/dist/NavigationMenu/AxosBank/NavData.d.ts +2 -36
  30. package/dist/NavigationMenu/AxosBank/NavData.js +133 -33
  31. package/dist/NavigationMenu/AxosBank/SubNavBar.js +369 -166
  32. package/dist/NavigationMenu/AxosBank/index.js +268 -28
  33. package/dist/NavigationMenu/AxosClearing/NavBar.module.js +49 -31
  34. package/dist/NavigationMenu/AxosClearing/NavData.js +1 -1
  35. package/dist/NavigationMenu/AxosClearing/index.js +119 -12
  36. package/dist/SetContainer/SetContainer.js +1 -0
  37. package/dist/assets/Forms/Forms.css +4 -0
  38. package/dist/assets/HeroBanner/HeroBanner.css +1 -0
  39. package/dist/assets/NavigationMenu/AxosClearing/NavBar.css.css +133 -82
  40. package/dist/main.js +4 -1
  41. package/package.json +1 -1
@@ -0,0 +1,733 @@
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 { useState } from "react";
7
+ import "react-use";
8
+ import "../Input/Checkbox.js";
9
+ import "../Input/CurrencyInput.js";
10
+ import { Dropdown } from "../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 { getVariant } from "../utils/getVariant.js";
27
+ import clsx from "clsx";
28
+ import { useForm, FormProvider } from "react-hook-form";
29
+ import * as z from "zod";
30
+ import { formContainer, iconForm, headerContainer, form, descriptionField, formWrapper, fullRowForm, disclosureForm, actions } from "./Forms.css.js";
31
+ import { RadioButtonSet, RadioButton } from "../Input/RadioButton.js";
32
+ import CheckboxGroup from "../Input/CheckboxGroup.js";
33
+ const CpraRequest = ({
34
+ icon = false,
35
+ children,
36
+ onSubmit = (values) => {
37
+ console.log(values);
38
+ },
39
+ disclosure,
40
+ variant: fullVariant = "primary",
41
+ headline,
42
+ description,
43
+ callToAction,
44
+ id
45
+ }) => {
46
+ const schema = z.object({
47
+ California_Resident: z.string(),
48
+ Categories_of_personal_info: z.string(),
49
+ Pieces_of_personal_information: z.string(),
50
+ Request_Correction_of_Information: z.string(),
51
+ Corrected_Information: z.string(),
52
+ Delete_personal_info: z.string(),
53
+ Opt_out_of_sale_of_info: z.string(),
54
+ Current_client: z.string(),
55
+ Currently_Employed_by_Axos_Financial: z.string(),
56
+ Previously_Employed_by_Axos_Financial: z.string(),
57
+ Ever_Applied_for_Employment_with_Axos_Financial: z.string(),
58
+ Axos_Financial_interaction_outlet: z.string(),
59
+ "Street Address": z.string(),
60
+ City: z.string(),
61
+ State: z.string(),
62
+ "Zip Code": z.string().regex(/^\d{5}(-\d{4})?$/, { message: "Invalid Zip Code format." }),
63
+ Contact_Method: z.string(),
64
+ DOB: z.string(),
65
+ First_Name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
66
+ Last_Name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
67
+ email: z.string().email({ message: "Email is required." }),
68
+ Telephone: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
69
+ const removeDashes = val.replace(/-/gi, "");
70
+ if (removeDashes.length !== 10) {
71
+ ctx.addIssue({
72
+ code: z.ZodIssueCode.custom,
73
+ message: "Phone must have at least 10 and no more than 10 characters."
74
+ });
75
+ return z.NEVER;
76
+ }
77
+ return removeDashes;
78
+ })
79
+ });
80
+ const methods = useForm({
81
+ resolver: zodResolver(schema, {
82
+ async: true
83
+ }),
84
+ mode: "all"
85
+ });
86
+ const {
87
+ handleSubmit,
88
+ register,
89
+ setValue,
90
+ watch,
91
+ formState: { errors, isValid, isSubmitting }
92
+ } = methods;
93
+ const submitForm = async (data) => {
94
+ await onSubmit(data);
95
+ };
96
+ const variant = getVariant(fullVariant);
97
+ const options = [
98
+ { label: "Address", value: "Address" },
99
+ { label: "Name", value: "Name" },
100
+ { label: "Phone Number", value: "Phone Number" },
101
+ { label: "Date of Birth", value: "Date of Birth" },
102
+ { label: "Email", value: "Email" }
103
+ ];
104
+ const options2 = [
105
+ { label: "Axos Bank", value: "Axos Bank" },
106
+ {
107
+ label: "Nationwide banking services provided by Axos Bank",
108
+ value: "Nationwide banking services provided by Axos Bank"
109
+ },
110
+ { label: "UFB Direct", value: "UFB Direct" },
111
+ { label: "Other", value: "Other" }
112
+ ];
113
+ const [selectedValues, setSelectedValues] = useState([]);
114
+ const [selectedValues2, setSelectedValues2] = useState([]);
115
+ const requestCorrectionOfInfo = watch("Request_Correction_of_Information");
116
+ const handleSelectedValues = (updatedValues) => {
117
+ if (updatedValues) {
118
+ setSelectedValues(updatedValues);
119
+ setValue("Corrected_Information", updatedValues.join(";"));
120
+ }
121
+ };
122
+ const handleSelectedValues2 = (updatedValues) => {
123
+ if (updatedValues) {
124
+ setSelectedValues2(updatedValues);
125
+ setValue("Axos_Financial_interaction_outlet", updatedValues.join(";"));
126
+ }
127
+ };
128
+ return /* @__PURE__ */ jsx(
129
+ "section",
130
+ {
131
+ id: `id_${id}`,
132
+ className: clsx(formContainer({ variant })),
133
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
134
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
135
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer}`, children: [
136
+ /* @__PURE__ */ jsx("h2", { className: `header_2 ${form} ${descriptionField({ variant })}`, children: headline }),
137
+ description && /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: description })
138
+ ] }),
139
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer}`, children: [
140
+ /* @__PURE__ */ jsx("h2", { className: `header_2 ${form} ${descriptionField({ variant })}`, children: "Step 1: Please identify which privacy right(s) you would like to exercise." }),
141
+ /* @__PURE__ */ jsxs("div", { className: `${form} ${descriptionField({ variant })}`, children: [
142
+ /* @__PURE__ */ jsx("u", { children: "Right to Access:" }),
143
+ " You have the right to send Axos Financial a verifiable request, twice in a 12-month period, asking that we disclose to you the personal information Axos Financial has collected, used, disclosed and sold about you during the past 12 months. Please check the box below relating to the information you would like Axos Financial to disclose to you:"
144
+ ] })
145
+ ] }),
146
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
147
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
148
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
149
+ RadioButtonSet,
150
+ {
151
+ id: "California_Resident",
152
+ label: "* Are you a California resident?",
153
+ sizes: "medium",
154
+ required: true,
155
+ error: !!errors.California_Resident,
156
+ helperText: errors.California_Resident?.message,
157
+ variant,
158
+ children: [
159
+ /* @__PURE__ */ jsx(
160
+ RadioButton,
161
+ {
162
+ ...register("California_Resident", {}),
163
+ value: "Yes",
164
+ radioText: "Yes",
165
+ groupName: "California_Resident"
166
+ }
167
+ ),
168
+ /* @__PURE__ */ jsx(
169
+ RadioButton,
170
+ {
171
+ ...register("California_Resident", {}),
172
+ value: "No",
173
+ radioText: "No",
174
+ groupName: "California_Resident"
175
+ }
176
+ )
177
+ ]
178
+ }
179
+ ) }),
180
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
181
+ RadioButtonSet,
182
+ {
183
+ id: "Categories_of_personal_info",
184
+ label: "* The categories of personal information Axos Financial has collected about you.",
185
+ sizes: "medium",
186
+ required: true,
187
+ error: !!errors.Categories_of_personal_info,
188
+ helperText: errors.Categories_of_personal_info?.message,
189
+ variant,
190
+ children: [
191
+ /* @__PURE__ */ jsx(
192
+ RadioButton,
193
+ {
194
+ ...register("Categories_of_personal_info", {}),
195
+ value: "Yes",
196
+ radioText: "Yes",
197
+ groupName: "Categories_of_personal_info"
198
+ }
199
+ ),
200
+ /* @__PURE__ */ jsx(
201
+ RadioButton,
202
+ {
203
+ ...register("Categories_of_personal_info", {}),
204
+ value: "No",
205
+ radioText: "No",
206
+ groupName: "Categories_of_personal_info"
207
+ }
208
+ )
209
+ ]
210
+ }
211
+ ) }),
212
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
213
+ RadioButtonSet,
214
+ {
215
+ id: "Pieces_of_personal_information",
216
+ label: "* The specific pieces of personal information Axos Financial has collected about you.",
217
+ sizes: "medium",
218
+ required: true,
219
+ error: !!errors.Pieces_of_personal_information,
220
+ helperText: errors.Pieces_of_personal_information?.message,
221
+ variant,
222
+ children: [
223
+ /* @__PURE__ */ jsx(
224
+ RadioButton,
225
+ {
226
+ ...register("Pieces_of_personal_information", {}),
227
+ value: "Yes",
228
+ radioText: "Yes",
229
+ groupName: "Pieces_of_personal_information"
230
+ }
231
+ ),
232
+ /* @__PURE__ */ jsx(
233
+ RadioButton,
234
+ {
235
+ ...register("Pieces_of_personal_information", {}),
236
+ value: "No",
237
+ radioText: "No",
238
+ groupName: "Pieces_of_personal_information"
239
+ }
240
+ )
241
+ ]
242
+ }
243
+ ) }),
244
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField({ variant })}`, children: "By selecting specific pieces of personal information Axos Financial has collected about you, you are required to sign a declaration, under penalty of perjury, that you are the individual whose information is provided above. We will provide you with the form and instructions at your preferred contact method. If you do not return the completed form, we will not be able to provide you with the specific pieces of personal information Axos Financial has collected about you." }) }),
245
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
246
+ RadioButtonSet,
247
+ {
248
+ id: "Request_Correction_of_Information",
249
+ label: "Request correction of information?",
250
+ sizes: "medium",
251
+ required: true,
252
+ error: !!errors.Request_Correction_of_Information,
253
+ helperText: errors.Request_Correction_of_Information?.message,
254
+ variant,
255
+ children: [
256
+ /* @__PURE__ */ jsx(
257
+ RadioButton,
258
+ {
259
+ ...register("Request_Correction_of_Information", {}),
260
+ value: "Yes",
261
+ radioText: "Yes",
262
+ groupName: "Request_Correction_of_Information"
263
+ }
264
+ ),
265
+ /* @__PURE__ */ jsx(
266
+ RadioButton,
267
+ {
268
+ ...register("Request_Correction_of_Information", {}),
269
+ value: "No",
270
+ radioText: "No",
271
+ groupName: "Request_Correction_of_Information"
272
+ }
273
+ )
274
+ ]
275
+ }
276
+ ) }),
277
+ requestCorrectionOfInfo === "Yes" && /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
278
+ CheckboxGroup,
279
+ {
280
+ options,
281
+ selectedValues,
282
+ error: !!errors.Corrected_Information,
283
+ onChange: handleSelectedValues
284
+ }
285
+ ) }),
286
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs("div", { className: `${form} ${descriptionField({ variant })}`, children: [
287
+ /* @__PURE__ */ jsx("u", { children: "Right to Delete:" }),
288
+ " You have the right to submit a verifiable request asking that Axos Financial delete certain personal information Axos Financial has collected from you, subject to certain exceptions as permitted by law."
289
+ ] }) }),
290
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
291
+ RadioButtonSet,
292
+ {
293
+ id: "Delete_personal_info",
294
+ label: "* Would you like Axos Financial to delete the personal information we have collected from you?",
295
+ sizes: "medium",
296
+ required: true,
297
+ error: !!errors.Delete_personal_info,
298
+ helperText: errors.Delete_personal_info?.message,
299
+ variant,
300
+ children: [
301
+ /* @__PURE__ */ jsx(
302
+ RadioButton,
303
+ {
304
+ ...register("Delete_personal_info", {}),
305
+ value: "Yes",
306
+ radioText: "Yes",
307
+ groupName: "Delete_personal_info"
308
+ }
309
+ ),
310
+ /* @__PURE__ */ jsx(
311
+ RadioButton,
312
+ {
313
+ ...register("Delete_personal_info", {}),
314
+ value: "No",
315
+ radioText: "No",
316
+ groupName: "Delete_personal_info"
317
+ }
318
+ )
319
+ ]
320
+ }
321
+ ) }),
322
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs("div", { className: `${form} ${descriptionField({ variant })}`, children: [
323
+ /* @__PURE__ */ jsx("u", { children: "Right to Opt-Out of Sale:" }),
324
+ " You have the right to opt-out of the sale of your personal information we collect on our websites, such as to enhance the ability to serve you content and advertisements that may be of interest to you."
325
+ ] }) }),
326
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
327
+ RadioButtonSet,
328
+ {
329
+ id: "Opt_out_of_sale_of_info",
330
+ label: "* Would you like to opt out of the sale of your personal information by Axos Financial?",
331
+ sizes: "medium",
332
+ required: true,
333
+ error: !!errors.Opt_out_of_sale_of_info,
334
+ helperText: errors.Opt_out_of_sale_of_info?.message,
335
+ variant,
336
+ children: [
337
+ /* @__PURE__ */ jsx(
338
+ RadioButton,
339
+ {
340
+ ...register("Opt_out_of_sale_of_info", {}),
341
+ value: "Yes",
342
+ radioText: "Yes",
343
+ groupName: "Opt_out_of_sale_of_info"
344
+ }
345
+ ),
346
+ /* @__PURE__ */ jsx(
347
+ RadioButton,
348
+ {
349
+ ...register("Opt_out_of_sale_of_info", {}),
350
+ value: "No",
351
+ radioText: "No",
352
+ groupName: "Opt_out_of_sale_of_info"
353
+ }
354
+ )
355
+ ]
356
+ }
357
+ ) }),
358
+ /* @__PURE__ */ jsx("div", { className: `${headerContainer} ${fullRowForm}`, children: /* @__PURE__ */ jsx("h2", { className: `header_2 ${descriptionField({ variant })}`, children: "Step 2: Please provide the following information so that we can verify your identity and respond to your request." }) }),
359
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
360
+ RadioButtonSet,
361
+ {
362
+ id: "Current_client",
363
+ label: "* I am a current or former client or customer.",
364
+ sizes: "medium",
365
+ required: true,
366
+ error: !!errors.Current_client,
367
+ helperText: errors.Current_client?.message,
368
+ variant,
369
+ children: [
370
+ /* @__PURE__ */ jsx(
371
+ RadioButton,
372
+ {
373
+ ...register("Current_client", {}),
374
+ value: "Yes",
375
+ radioText: "Yes",
376
+ groupName: "Current_client"
377
+ }
378
+ ),
379
+ /* @__PURE__ */ jsx(
380
+ RadioButton,
381
+ {
382
+ ...register("Current_client", {}),
383
+ value: "No",
384
+ radioText: "No",
385
+ groupName: "Current_client"
386
+ }
387
+ )
388
+ ]
389
+ }
390
+ ) }),
391
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
392
+ RadioButtonSet,
393
+ {
394
+ id: "Currently_Employed_by_Axos_Financial",
395
+ label: "* Are you currently employed by Axos Financial?",
396
+ sizes: "medium",
397
+ required: true,
398
+ error: !!errors.Currently_Employed_by_Axos_Financial,
399
+ helperText: errors.Currently_Employed_by_Axos_Financial?.message,
400
+ variant,
401
+ children: [
402
+ /* @__PURE__ */ jsx(
403
+ RadioButton,
404
+ {
405
+ ...register("Currently_Employed_by_Axos_Financial", {}),
406
+ value: "Yes",
407
+ radioText: "Yes",
408
+ groupName: "Currently_Employed_by_Axos_Financial"
409
+ }
410
+ ),
411
+ /* @__PURE__ */ jsx(
412
+ RadioButton,
413
+ {
414
+ ...register("Currently_Employed_by_Axos_Financial", {}),
415
+ value: "No",
416
+ radioText: "No",
417
+ groupName: "Currently_Employed_by_Axos_Financial"
418
+ }
419
+ )
420
+ ]
421
+ }
422
+ ) }),
423
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
424
+ RadioButtonSet,
425
+ {
426
+ id: "Previously_Employed_by_Axos_Financial",
427
+ label: "* Have you previously been employed by Axos Financial?",
428
+ sizes: "medium",
429
+ required: true,
430
+ error: !!errors.Previously_Employed_by_Axos_Financial,
431
+ helperText: errors.Previously_Employed_by_Axos_Financial?.message,
432
+ variant,
433
+ children: [
434
+ /* @__PURE__ */ jsx(
435
+ RadioButton,
436
+ {
437
+ ...register("Previously_Employed_by_Axos_Financial", {}),
438
+ value: "Yes",
439
+ radioText: "Yes",
440
+ groupName: "Previously_Employed_by_Axos_Financial"
441
+ }
442
+ ),
443
+ /* @__PURE__ */ jsx(
444
+ RadioButton,
445
+ {
446
+ ...register("Previously_Employed_by_Axos_Financial", {}),
447
+ value: "No",
448
+ radioText: "No",
449
+ groupName: "Previously_Employed_by_Axos_Financial"
450
+ }
451
+ )
452
+ ]
453
+ }
454
+ ) }),
455
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
456
+ RadioButtonSet,
457
+ {
458
+ id: "Ever_Applied_for_Employment_with_Axos_Financial",
459
+ label: "* Have you ever applied for employment with Axos Financial?",
460
+ sizes: "medium",
461
+ required: true,
462
+ error: !!errors.Ever_Applied_for_Employment_with_Axos_Financial,
463
+ helperText: errors.Ever_Applied_for_Employment_with_Axos_Financial?.message,
464
+ variant,
465
+ children: [
466
+ /* @__PURE__ */ jsx(
467
+ RadioButton,
468
+ {
469
+ ...register(
470
+ "Ever_Applied_for_Employment_with_Axos_Financial",
471
+ {}
472
+ ),
473
+ value: "Yes",
474
+ radioText: "Yes",
475
+ groupName: "Ever_Applied_for_Employment_with_Axos_Financial"
476
+ }
477
+ ),
478
+ /* @__PURE__ */ jsx(
479
+ RadioButton,
480
+ {
481
+ ...register(
482
+ "Ever_Applied_for_Employment_with_Axos_Financial",
483
+ {}
484
+ ),
485
+ value: "No",
486
+ radioText: "No",
487
+ groupName: "Ever_Applied_for_Employment_with_Axos_Financial"
488
+ }
489
+ )
490
+ ]
491
+ }
492
+ ) }),
493
+ /* @__PURE__ */ jsx("div", { className: `${headerContainer} ${fullRowForm}`, children: /* @__PURE__ */ jsx("h2", { className: `header_2 ${descriptionField({ variant })}`, children: "Step 3: Where have you interacted with Axos Financial?" }) }),
494
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
495
+ CheckboxGroup,
496
+ {
497
+ options: options2,
498
+ selectedValues: selectedValues2,
499
+ error: !!errors.Axos_Financial_interaction_outlet,
500
+ onChange: handleSelectedValues2
501
+ }
502
+ ) }),
503
+ /* @__PURE__ */ jsx("div", { className: `${headerContainer} ${fullRowForm}`, children: /* @__PURE__ */ jsx("h2", { className: `header_2 ${descriptionField({ variant })}`, children: "Step 4: Please provide your contact details." }) }),
504
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
505
+ Input,
506
+ {
507
+ id: "First_Name",
508
+ ...register("First_Name", { required: true }),
509
+ label: "First Name",
510
+ sizes: "medium",
511
+ placeholder: "First Name",
512
+ required: true,
513
+ error: !!errors.First_Name,
514
+ helperText: errors.First_Name?.message,
515
+ variant
516
+ }
517
+ ) }),
518
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
519
+ Input,
520
+ {
521
+ id: "Last_Name",
522
+ ...register("Last_Name", { required: true }),
523
+ label: "Last Name",
524
+ sizes: "medium",
525
+ required: true,
526
+ error: !!errors.Last_Name,
527
+ helperText: errors.Last_Name?.message,
528
+ variant
529
+ }
530
+ ) }),
531
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
532
+ Input,
533
+ {
534
+ id: "DOB",
535
+ ...register("DOB", {
536
+ required: true
537
+ }),
538
+ type: "date",
539
+ label: "Date of Birth",
540
+ sizes: "medium",
541
+ placeholder: "Date of Birth",
542
+ required: true,
543
+ error: !!errors.DOB,
544
+ helperText: errors.DOB?.message,
545
+ variant
546
+ }
547
+ ) }),
548
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
549
+ Input,
550
+ {
551
+ id: "email",
552
+ ...register("email", {
553
+ required: true
554
+ // validate: {
555
+ // isValid: associatedEmail,
556
+ // },
557
+ }),
558
+ label: "Email",
559
+ sizes: "medium",
560
+ required: true,
561
+ error: !!errors.email,
562
+ helperText: errors.email?.message,
563
+ variant
564
+ }
565
+ ) }),
566
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
567
+ InputPhone,
568
+ {
569
+ id: "Telephone",
570
+ ...register("Telephone", { required: true, maxLength: 12 }),
571
+ label: "Preferred Phone",
572
+ sizes: "medium",
573
+ required: true,
574
+ error: !!errors.Telephone,
575
+ helperText: errors.Telephone?.message,
576
+ variant
577
+ }
578
+ ) }),
579
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
580
+ Input,
581
+ {
582
+ id: "Street_Address",
583
+ ...register("Street Address", { required: true }),
584
+ label: "Street Address",
585
+ sizes: "medium",
586
+ required: true,
587
+ variant
588
+ }
589
+ ) }),
590
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
591
+ Input,
592
+ {
593
+ id: "City",
594
+ ...register("City", { required: true }),
595
+ label: "City",
596
+ sizes: "medium",
597
+ required: true,
598
+ variant
599
+ }
600
+ ) }),
601
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
602
+ Dropdown,
603
+ {
604
+ id: "State",
605
+ ...register("State", {
606
+ required: true
607
+ }),
608
+ label: "Assets Under Management",
609
+ sizes: "medium",
610
+ required: true,
611
+ error: !!errors.State,
612
+ helperText: errors.State?.message,
613
+ variant,
614
+ children: [
615
+ /* @__PURE__ */ jsx("option", { value: "Alabama - AL", children: "Alabama - AL" }),
616
+ /* @__PURE__ */ jsx("option", { value: "Alaska - AK", children: "Alaska - AK" }),
617
+ /* @__PURE__ */ jsx("option", { value: "Arizona - AZ", children: "Arizona - AZ" }),
618
+ /* @__PURE__ */ jsx("option", { value: "Arkansas - AR", children: "Arkansas - AR" }),
619
+ /* @__PURE__ */ jsx("option", { value: "California - CA", children: "California - CA" }),
620
+ /* @__PURE__ */ jsx("option", { value: "Colorado - CO", children: "Colorado - CO" }),
621
+ /* @__PURE__ */ jsx("option", { value: "Connecticut - CT", children: "Connecticut - CT" }),
622
+ /* @__PURE__ */ jsx("option", { value: "Delaware - DE", children: "Delaware - DE" }),
623
+ /* @__PURE__ */ jsx("option", { value: "Florida - FL", children: "Florida - FL" }),
624
+ /* @__PURE__ */ jsx("option", { value: "Georgia - GA", children: "Georgia - GA" }),
625
+ /* @__PURE__ */ jsx("option", { value: "Hawaii - HI", children: "Hawaii - HI" }),
626
+ /* @__PURE__ */ jsx("option", { value: "Idaho - ID", children: "Idaho - ID" }),
627
+ /* @__PURE__ */ jsx("option", { value: "Illinois - IL", children: "Illinois - IL" }),
628
+ /* @__PURE__ */ jsx("option", { value: "Indiana - IN", children: "Indiana - IN" }),
629
+ /* @__PURE__ */ jsx("option", { value: "Iowa - IA", children: "Iowa - IA" }),
630
+ /* @__PURE__ */ jsx("option", { value: "Kansas - KS", children: "Kansas - KS" }),
631
+ /* @__PURE__ */ jsx("option", { value: "Kentucky - KY", children: "Kentucky - KY" }),
632
+ /* @__PURE__ */ jsx("option", { value: "Louisiana - LA", children: "Louisiana - LA" }),
633
+ /* @__PURE__ */ jsx("option", { value: "Maine - ME", children: "Maine - ME" }),
634
+ /* @__PURE__ */ jsx("option", { value: "Maryland - MD", children: "Maryland - MD" }),
635
+ /* @__PURE__ */ jsx("option", { value: "Massachusetts - MA", children: "Massachusetts - MA" }),
636
+ /* @__PURE__ */ jsx("option", { value: "Michigan - MI", children: "Michigan - MI" }),
637
+ /* @__PURE__ */ jsx("option", { value: "Minnesota - MN", children: "Minnesota - MN" }),
638
+ /* @__PURE__ */ jsx("option", { value: "Mississippi - MS", children: "Mississippi - MS" }),
639
+ /* @__PURE__ */ jsx("option", { value: "Missouri - MO", children: "Missouri - MO" }),
640
+ /* @__PURE__ */ jsx("option", { value: "Montana - MT", children: "Montana - MT" }),
641
+ /* @__PURE__ */ jsx("option", { value: "Nebraska - NE", children: "Nebraska - NE" }),
642
+ /* @__PURE__ */ jsx("option", { value: "Nevada - NV", children: "Nevada - NV" }),
643
+ /* @__PURE__ */ jsx("option", { value: "New Hampshire - NH", children: "New Hampshire - NH" }),
644
+ /* @__PURE__ */ jsx("option", { value: "New Jersey - NJ", children: "New Jersey - NJ" }),
645
+ /* @__PURE__ */ jsx("option", { value: "New Mexico - NM", children: "New Mexico - NM" }),
646
+ /* @__PURE__ */ jsx("option", { value: "New York - NY", children: "New York - NY" }),
647
+ /* @__PURE__ */ jsx("option", { value: "North Carolina - NC", children: "North Carolina - NC" }),
648
+ /* @__PURE__ */ jsx("option", { value: "North Dakota - ND", children: "North Dakota - ND" }),
649
+ /* @__PURE__ */ jsx("option", { value: "Ohio - OH", children: "Ohio - OH" }),
650
+ /* @__PURE__ */ jsx("option", { value: "Oklahoma - OK", children: "Oklahoma - OK" }),
651
+ /* @__PURE__ */ jsx("option", { value: "Oregon - OR", children: "Oregon - OR" }),
652
+ /* @__PURE__ */ jsx("option", { value: "Pennsylvania - PA", children: "Pennsylvania - PA" }),
653
+ /* @__PURE__ */ jsx("option", { value: "Rhode Island - RI", children: "Rhode Island - RI" }),
654
+ /* @__PURE__ */ jsx("option", { value: "South Carolina - SC", children: "South Carolina - SC" }),
655
+ /* @__PURE__ */ jsx("option", { value: "South Dakota - SD", children: "South Dakota - SD" }),
656
+ /* @__PURE__ */ jsx("option", { value: "Tennessee - TN", children: "Tennessee - TN" }),
657
+ /* @__PURE__ */ jsx("option", { value: "Texas - TX", children: "Texas - TX" }),
658
+ /* @__PURE__ */ jsx("option", { value: "Utah - UT", children: "Utah - UT" }),
659
+ /* @__PURE__ */ jsx("option", { value: "Vermont - VT", children: "Vermont - VT" }),
660
+ /* @__PURE__ */ jsx("option", { value: "Virginia - VA", children: "Virginia - VA" }),
661
+ /* @__PURE__ */ jsx("option", { value: "Washington - WA", children: "Washington - WA" }),
662
+ /* @__PURE__ */ jsx("option", { value: "West Virginia - WV", children: "West Virginia - WV" }),
663
+ /* @__PURE__ */ jsx("option", { value: "Wisconsin - WI", children: "Wisconsin - WI" }),
664
+ /* @__PURE__ */ jsx("option", { value: "Wyoming - WY", children: "Wyoming - WY" })
665
+ ]
666
+ }
667
+ ) }),
668
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsx(
669
+ Input,
670
+ {
671
+ id: "Zip_Code",
672
+ ...register("Zip Code", { required: true }),
673
+ label: "Zip Code",
674
+ sizes: "medium",
675
+ required: true,
676
+ variant
677
+ }
678
+ ) }),
679
+ /* @__PURE__ */ jsx("div", { className: `${headerContainer} ${fullRowForm}`, children: /* @__PURE__ */ jsx("h2", { className: `header_2 ${descriptionField({ variant })}`, children: "Step 5: Please select how you would like to receive our response." }) }),
680
+ /* @__PURE__ */ jsx("div", { className: `${fullRowForm}`, children: /* @__PURE__ */ jsxs(
681
+ RadioButtonSet,
682
+ {
683
+ id: "Contact_Method",
684
+ label: "* We will contact you using the information provided above:",
685
+ sizes: "medium",
686
+ required: true,
687
+ error: !!errors.Contact_Method,
688
+ helperText: errors.Contact_Method?.message,
689
+ variant,
690
+ children: [
691
+ /* @__PURE__ */ jsx(
692
+ RadioButton,
693
+ {
694
+ ...register("Contact_Method", {}),
695
+ value: "Email",
696
+ radioText: "Email",
697
+ groupName: "Contact_Method"
698
+ }
699
+ ),
700
+ /* @__PURE__ */ jsx(
701
+ RadioButton,
702
+ {
703
+ ...register("Contact_Method", {}),
704
+ value: "Postal Mail",
705
+ radioText: "Postal Mail",
706
+ groupName: "Contact_Method"
707
+ }
708
+ )
709
+ ]
710
+ }
711
+ ) })
712
+ ] }),
713
+ children,
714
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
715
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
716
+ Button,
717
+ {
718
+ color: getVariant(callToAction?.variant),
719
+ as: "button",
720
+ type: "submit",
721
+ disabled: !isValid || isSubmitting,
722
+ children: callToAction?.displayText
723
+ }
724
+ ) })
725
+ ] })
726
+ ] }) })
727
+ },
728
+ id
729
+ );
730
+ };
731
+ export {
732
+ CpraRequest
733
+ };