bhl-forms 0.6.12 → 0.6.14

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.
@@ -0,0 +1,4462 @@
1
+ function merge() {
2
+ return Object.assign({}, ...arguments)
3
+ }
4
+
5
+ function LegalRedirectUrl() {
6
+ return 'https://listings.ziplawyer.com/api/v1/redirect?zone_id=4&vertical=Legal&category=${properties.Type_Of_Legal_Problem}&Degree_Of_Interest=${properties.Degree_Of_Interest}&zip_code=${properties.Zip}&sub_id=${properties.vid}'
7
+ }
8
+
9
+ var TCPA_LANGUAGE = "By checking this box, I a) agree to the Terms of Use, and b) consent to be contacted by lawyers, lawyer networks, and partners of this website using live, autodialed, pre-recorded, or artificial voice calls, as well as text messages. Your consent is not required as a condition of purchasing any goods or services. To submit this request without this consent, call 878-213-4937.";
10
+
11
+ const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
12
+ const DEFAULT_COMMENTS_LABEL = 'Please briefly describe your legal issue in a few words:';
13
+ const DEFAULT_FINAL_HEADLINE = 'Submit Your Case';
14
+ const DEFAULT_FINAL_HEADLINE_DYNAMIC = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
15
+ const DEFAULT_FINAL_SUBHEADLINE = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
16
+ const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
17
+
18
+ // ------ Common Base Settings
19
+
20
+ const checkbox = (updates) => {
21
+ if (updates.name && !updates.id) {
22
+ updates.id = updates.name;
23
+ }
24
+ return merge({
25
+ $formkit: 'checkbox',
26
+ validation: 'required',
27
+ validationMessages: {
28
+ required: 'Field is required'
29
+ }
30
+ }, updates)
31
+ };
32
+
33
+ const verticalCheckbox = (updates) => {
34
+ if (!updates || !updates.legendClass) {
35
+ updates.legendClass = 'required';
36
+ }
37
+ updates.fieldsetClass = '$reset';
38
+ updates.optionsClass = 't-pl-2 t-pt-3';
39
+ updates.innerClass = 't-items-center';
40
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
41
+ return checkbox(updates)
42
+ };
43
+
44
+ const sbsCheckbox = (updates) => {
45
+ updates.legendClass = 'legend-left required';
46
+ updates.fieldsetClass = '$reset side-by-side';
47
+ updates.optionsClass = 't-pl-1';
48
+ updates.innerClass = 't-flex t-items-center';
49
+ updates.wrapperClass = 't-mb-3';
50
+ return checkbox(updates)
51
+ };
52
+
53
+ const col2Checkbox = (updates) => {
54
+ if (!updates || !updates.legendClass) {
55
+ updates.legendClass = 'required';
56
+ }
57
+ updates.fieldsetClass = '$reset';
58
+ updates.optionsClass = 't-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
59
+ updates.innerClass = 't-items-start';
60
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
61
+ return checkbox(updates)
62
+ };
63
+
64
+ const verticalCol2Checkbox = (updates) => {
65
+ if (!updates || !updates.legendClass) {
66
+ updates.legendClass = 'required';
67
+ }
68
+ updates.fieldsetClass = '$reset t-flex t-justify-center';
69
+ updates.optionClass = 't-mx-5';
70
+ updates.optionsClass = 't-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
71
+ updates.innerClass = 't-items-center';
72
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
73
+ updates.messagesClass = 't-flex t-justify-center';
74
+ return checkbox(updates)
75
+ };
76
+
77
+ const radio = (updates) => {
78
+ if (updates.name && !updates.id) {
79
+ updates.id = updates.name;
80
+ }
81
+ return merge({
82
+ $formkit: 'radio',
83
+ validation: 'required',
84
+ validationMessages: {
85
+ required: 'Field is required'
86
+ },
87
+ optionsClass: 't-pt-3 t-pl-1',
88
+ legendClass: 'required'
89
+ }, updates)
90
+ };
91
+
92
+ const col2RadioCenter = (updates) => {
93
+ updates.legendClass = 'required t-w-[100%] t-text-center';
94
+ if (typeof updates.fieldsetClass === 'undefined') {
95
+ updates.fieldsetClass = '$reset t-flex t-justify-center';
96
+ }
97
+ updates.optionsClass = 't-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2';
98
+ updates.innerClass = 't-items-start';
99
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
100
+ updates.optionClass = 't-pl-4 md:t-pl-8 md:t-min-w-[200px]';
101
+ updates.messagesClass = 't-flex t-justify-center';
102
+ updates.helpClass = 't-mt-0 t-mb-4 !t-text-sm t-text-center';
103
+ return radio(updates)
104
+ };
105
+
106
+ const sbs2ColRadio = (updates) => {
107
+ updates.legendClass = 'legend-left-flex md:t-max-w-[40%] required';
108
+ updates.fieldsetClass = '$reset side-by-side-flex';
109
+ updates.optionsClass = 'md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125';
110
+ updates.innerClass = 't-flex t-items-start';
111
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
112
+ return radio(updates)
113
+ };
114
+
115
+ const sbs2ItemRadio = (updates) => {
116
+ updates.legendClass = 'legend-left t-pb-1 required';
117
+ updates.fieldsetClass = '$reset side-by-side t-items-center';
118
+ updates.optionsClass = 't-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center';
119
+ updates.innerClass = 't-flex t-items-center';
120
+ updates.optionClass = 't-pr-1';
121
+ return radio(updates)
122
+ };
123
+
124
+ const sbsYesNoRadio = (updates) => {
125
+ updates.options = ['Yes', 'No'];
126
+ return sbs2ItemRadio(updates)
127
+ };
128
+
129
+ const verticalButtonRadio = (updates) => {
130
+ updates.legendClass = 'legend-left';
131
+ updates.fieldsetClass = '$reset t-flex t-justify-center t-flex-col-reverse t-items-center';
132
+ if (typeof updates.optionsClass === 'undefined') {
133
+ updates.optionsClass = 't-flex t-flex-col sm:t-flex-row t-justify-center t-my-3';
134
+ }
135
+ updates.optionClass = 'radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5';
136
+ updates.wrapperClass = '$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]';
137
+ updates.labelClass = 't-font-semibold t-text-[#1e448f] t-w-[100%]';
138
+ updates.decoratorIcon = false;
139
+ updates.messagesClass = 't-flex t-justify-center';
140
+ updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
141
+ return radio(updates)
142
+ };
143
+
144
+ const verticalYesNoRadio = (updates) => {
145
+ updates.options = ['Yes', 'No'];
146
+ updates.optionsClass = 't-flex t-justify-center t-my-3';
147
+ return verticalButtonRadio(updates)
148
+ };
149
+
150
+ const verticalRadio = (updates) => {
151
+ updates.legendClass = 'required';
152
+ updates.fieldsetClass = '$reset t-flex t-justify-center';
153
+ updates.optionsClass = 't-pl-2 t-pt-3';
154
+ updates.innerClass = 't-items-center';
155
+ updates.wrapperClass = '$reset t-flex t-cursor-pointer t-mb-3';
156
+ updates.optionClass = 't-pl-4 md:t-pl-12';
157
+ updates.messagesClass = 't-flex t-justify-center';
158
+ return radio(updates)
159
+ };
160
+
161
+ const select = (updates) => {
162
+ if (updates.name && !updates.id) {
163
+ updates.id = updates.name;
164
+ }
165
+ return merge({
166
+ $formkit: 'select',
167
+ placeholder: "Please Select",
168
+ validation: 'required',
169
+ validationMessages: {
170
+ required: 'Field is required'
171
+ },
172
+ inputClass: 't-bg-white',
173
+ labelClass: 'required'
174
+ }, updates)
175
+ };
176
+
177
+ const sbsSelect = (updates) => {
178
+ updates.labelClass = 'required';
179
+ updates.wrapperClass = 'side-by-side t-items-center';
180
+ updates.innerClass = 'select-height-content';
181
+ updates.helpClass = 't-mt-2.5 md:t-text-right md:t-mt-[-5px]';
182
+ return select(updates)
183
+ };
184
+
185
+ const verticalSelect = (updates) => {
186
+ updates.labelClass = 'required';
187
+ updates.wrapperClass = 't-flex t-justify-center';
188
+ updates.messagesClass = 't-flex t-justify-center';
189
+ updates.inputClass = 't-min-w-[150px] t-bg-white';
190
+ updates.helpClass = 't-mt-2.5 t-text-center';
191
+ return select(updates)
192
+ };
193
+
194
+ const text = (updates) => {
195
+ if (updates.name && !updates.id) {
196
+ updates.id = updates.name;
197
+ }
198
+ return merge({
199
+ $formkit: 'text',
200
+ validation: 'required',
201
+ validationMessages: {
202
+ required: 'Field is required'
203
+ },
204
+ labelClass: 'required'
205
+ }, updates)
206
+ };
207
+
208
+ const sbsText = (updates) => {
209
+ updates.wrapperClass = 'side-by-side t-items-center';
210
+ return text(updates)
211
+ };
212
+
213
+ const verticalText = (updates) => {
214
+ updates.wrapperClass = 't-flex t-justify-center';
215
+ updates.messagesClass = 't-flex t-justify-center';
216
+ updates.inputClass = 't-text-center';
217
+ return text(updates)
218
+ };
219
+
220
+ const textArea = (updates) => {
221
+ if (updates.name && !updates.id) {
222
+ updates.id = updates.name;
223
+ }
224
+ return merge({
225
+ $formkit: 'textarea',
226
+ rows: 5,
227
+ maxlength: 500,
228
+ validation: 'required',
229
+ validationMessages: {
230
+ required: 'Field is required'
231
+ },
232
+ innerClass: 't-max-w-xl',
233
+ labelClass: 'required'
234
+ }, updates)
235
+ };
236
+
237
+ const date = (updates) => {
238
+ if (updates.name && !updates.id) {
239
+ updates.id = updates.name;
240
+ }
241
+ return merge({
242
+ $formkit: 'DatePicker',
243
+ validation: 'required',
244
+ validationMessages: {
245
+ required: 'Field is required'
246
+ },
247
+ labelClass: 'required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500',
248
+ innerClass: 't-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500'
249
+ }, updates)
250
+ };
251
+
252
+ const sbsDate = (updates) => {
253
+ updates.wrapperClass = 'side-by-side t-items-center';
254
+ return date(updates)
255
+ };
256
+
257
+ const verticalDate = (updates) => {
258
+ updates.wrapperClass = 't-flex t-justify-center';
259
+ updates.inputClass = 't-text-center';
260
+ updates.messagesClass = 't-flex t-justify-center';
261
+ return date(updates)
262
+ };
263
+
264
+ const amountPaymentsPastDueCenter = () => verticalSelect({
265
+ name: 'Amount_Payments_Past_Due',
266
+ options: [
267
+ "$0 - $499",
268
+ "$500 - $999",
269
+ "$1,000 - $2,499",
270
+ "$2,500 - $4,999",
271
+ "$5,000 - $9,999",
272
+ "$10,000 - $24,999",
273
+ "$25,000 - $49,999",
274
+ "$50,000 - $99,999",
275
+ "More than $100,000"
276
+ ]
277
+ });
278
+
279
+ const applicantOccupationCenter = (scope) => verticalText({
280
+ name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
281
+ placeholder: "Occupation"
282
+ });
283
+
284
+ const applicantAge$1 = (scope) => sbsText({
285
+ name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
286
+ label: 'Age of Applicant?',
287
+ placeholder: 'Age between 18 and 65',
288
+ maxlength: 2,
289
+ inputmode: "numeric",
290
+ validation: "required|min:18,max:65",
291
+ validationMessages: {
292
+ required: 'Applicant Age is required',
293
+ min: 'Invalid Age - must be between 18 and 65',
294
+ max: 'Invalid Age - must be between 18 and 65',
295
+ }
296
+ });
297
+
298
+ const applicantAgeCenter = (scope) => verticalText({
299
+ name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
300
+ value: "50",
301
+ placeholder: 'Age between 18 and 65',
302
+ maxlength: 2,
303
+ inputmode: "numeric",
304
+ validation: "required|min:18,max:65",
305
+ validationMessages: {
306
+ required: 'Applicant Age is required',
307
+ min: 'Invalid Age - must be between 18 and 65',
308
+ max: 'Invalid Age - must be between 18 and 65',
309
+ },
310
+ });
311
+
312
+ const applicantDisabilityHowObtainCenter = (scope) => verticalButtonRadio({
313
+ name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
314
+ options: [
315
+ "Employer",
316
+ "Self",
317
+ "Other"
318
+ ]
319
+ });
320
+
321
+ const applicantPreviouslyAppliedLtdBenefitsCenter = (scope) => verticalRadio({
322
+ name: scope ? scope + ':' + 'Applicant_Previously_Apply_Ltd_Benefits' : 'Applicant_Previously_Apply_Ltd_Benefits',
323
+ options: [
324
+ "Yes, claim pending",
325
+ "Yes, claim denied",
326
+ "No"
327
+ ]
328
+ });
329
+
330
+ const applicantMonthlySalaryCenter = (scope) => verticalSelect({
331
+ name: scope ? scope + ':' + 'Applicant_Monthly_Salary' : 'Applicant_Monthly_Salary',
332
+ options: [
333
+ "< $1,000",
334
+ "$1,000 - $2,000",
335
+ "$2,000 - $3,000",
336
+ "$3,000 - $4,000",
337
+ "$4,000 - $5,000",
338
+ "$5,000 - $6,000",
339
+ "$6,000 - $7,000",
340
+ "$7,000 - $8,000",
341
+ "$8,000 - $9,000",
342
+ "$9,000 - $10,000",
343
+ ">$10,000"
344
+ ]
345
+ });
346
+
347
+ const applicantReceivedDisabilityBenefitsCenter = (scope) => verticalRadio({
348
+ name: scope ? scope + ':' + 'Applicant_Received_Disability_Benefits' : 'Applicant_Received_Disability_Benefits',
349
+ options: [
350
+ "Yes, currently receiving",
351
+ "Yes, appealing a decision to stop payment of benefits",
352
+ "No"
353
+ ]
354
+ });
355
+
356
+ const applicantLTDisabilityPolicyCenter = (scope) => verticalYesNoRadio({
357
+ name: scope ? scope + ':' + 'Applicant_Lt_Disability_Policy' : 'Applicant_Lt_Disability_Policy',
358
+ });
359
+
360
+ const atFault$1 = (scope) => sbsYesNoRadio({
361
+ name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
362
+ label: 'Were You at Fault?'
363
+ });
364
+
365
+ const atFaultCenter = (scope) => verticalYesNoRadio({
366
+ name: scope ? scope + ':' + 'At_Fault' : 'At_Fault',
367
+ });
368
+
369
+ const bankruptcyCrossSell = () => sbsCheckbox({
370
+ label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
371
+ help: "Note: you will be contacted separately by a bankruptcy/debt expert",
372
+ name: 'CrossSell_Bankruptcy',
373
+ id: 'CrossSell_Bankruptcy',
374
+ if: '$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',
375
+ validation: null,
376
+ helpClass: "!t-text-sm"
377
+ });
378
+
379
+ const bloodContentAlcoholTest$1 = (scope) => sbsSelect({
380
+ name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
381
+ label: 'Blood Alcohol Content Measured by Test:',
382
+ options: [
383
+ "No Test",
384
+ "0.00% - 0.04%",
385
+ "0.05% - 0.08%",
386
+ "0.09% - 0.12%",
387
+ "0.13% - 0.16%",
388
+ "0.17% - 0.20%",
389
+ "More than 0.20%",
390
+ "Don't know"
391
+ ]
392
+ });
393
+
394
+ const bloodContentAlcoholTestCenter = (scope) => verticalSelect({
395
+ name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
396
+ options: [
397
+ "No Test",
398
+ "0.00% - 0.04%",
399
+ "0.05% - 0.08%",
400
+ "0.09% - 0.12%",
401
+ "0.13% - 0.16%",
402
+ "0.17% - 0.20%",
403
+ "More than 0.20%",
404
+ "Don't know"
405
+ ]
406
+ });
407
+
408
+ const businessServicesCenter = () => col2RadioCenter({
409
+ id: 'Business_Services',
410
+ name: 'Business_Services',
411
+ options: [
412
+ "Business Formation",
413
+ "Contracts",
414
+ "Insurance and Liability",
415
+ "Mergers and Acquisition",
416
+ "Regulatory Compliance",
417
+ "Employee Dispute",
418
+ "Other"
419
+ ]
420
+ });
421
+
422
+ const businessTypeCenter = () => verticalButtonRadio({
423
+ name: 'Business_Type',
424
+ options: [
425
+ "Public",
426
+ "Private"
427
+ ]
428
+ });
429
+
430
+ const causeOfInjury$1 = (scope) => sbsSelect({
431
+ name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
432
+ label: 'Cause of Injury:',
433
+ options: [
434
+ "Traumatic Physical Injury (Accident)",
435
+ "Repeated Trauma Injury",
436
+ "Mental Injury",
437
+ "Occupational Disease",
438
+ "Not Sure"
439
+ ]
440
+ });
441
+
442
+ const causeOfInjuryCenter = (scope) => col2RadioCenter({
443
+ name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
444
+ options: [
445
+ "Traumatic Physical Injury (Accident)",
446
+ "Repeated Trauma Injury",
447
+ "Mental Injury",
448
+ "Occupational Disease",
449
+ "Not Sure"
450
+ ]
451
+ });
452
+
453
+ const causeOfDeathCenter = () => col2RadioCenter({
454
+ name: 'Cause_Of_Death',
455
+ options: [
456
+ "Vehicle Accident",
457
+ "Negligent/Careless Act",
458
+ "Reckless Act",
459
+ "Other"
460
+ ]
461
+ });
462
+
463
+ const civilLawsuitTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
464
+ name: 'Type_Of_Legal_Problem_Display',
465
+ options: [
466
+ 'Automobile Accident',
467
+ 'Contract Disputes',
468
+ 'Defamation and Slander',
469
+ 'Dog Bite',
470
+ 'Employment and Workplace',
471
+ 'Fraud',
472
+ 'Medical Malpractice',
473
+ 'Personal Injury',
474
+ 'Property Damage',
475
+ 'Small Claims',
476
+ 'Real Estate',
477
+ 'Not Sure or Other'
478
+ ]
479
+ }, updates));
480
+
481
+ const civilRightsTypeCenter = () => col2RadioCenter({
482
+ name: 'Civil_Rights_Type',
483
+ options: [
484
+ "Age",
485
+ "Disability",
486
+ "Gender",
487
+ "Race",
488
+ "Religion",
489
+ "Other"
490
+ ]
491
+ });
492
+
493
+ const childHome$1 = (scope) => sbsSelect({
494
+ name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
495
+ label: 'With Whom Do the Children Currently Live?',
496
+ options: [
497
+ 'Mother',
498
+ 'Father',
499
+ 'Grandparents',
500
+ 'Other'
501
+ ]
502
+ });
503
+
504
+ const childHomeCenter = (scope) => col2RadioCenter({
505
+ name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
506
+ options: [
507
+ 'Mother',
508
+ 'Father',
509
+ 'Grandparents',
510
+ 'Other'
511
+ ]
512
+ });
513
+
514
+ const childPrimaryCaregiver$1 = (scope) => sbsSelect({
515
+ name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
516
+ label: 'Who is the Primary Caregiver?',
517
+ options: [
518
+ 'Mother',
519
+ 'Father',
520
+ 'Other'
521
+ ]
522
+ });
523
+
524
+ const childPrimaryCaregiverCenter = (scope) => verticalButtonRadio({
525
+ name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
526
+ options: [
527
+ 'Mother',
528
+ 'Father',
529
+ 'Other'
530
+ ]
531
+ });
532
+
533
+ const childRelationship$1 = (scope) => sbsSelect({
534
+ name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
535
+ label: 'Your Relationship to Child(ren):',
536
+ options: [
537
+ 'Father',
538
+ 'Mother',
539
+ 'Grandparent',
540
+ 'Aunt/Uncle',
541
+ 'Other'
542
+ ]
543
+ });
544
+
545
+ const childRelationshipCenter = (scope) => col2RadioCenter({
546
+ name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
547
+ options: [
548
+ 'Father',
549
+ 'Mother',
550
+ 'Grandparent',
551
+ 'Aunt/Uncle',
552
+ 'Other'
553
+ ]
554
+ });
555
+
556
+ const claimStatus$1 = (scope) => sbsSelect({
557
+ name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
558
+ label: "Status of Claim:",
559
+ options: [
560
+ "No action taken yet",
561
+ "Demand for compensation made",
562
+ "Lawsuit filed",
563
+ "Other"
564
+ ]
565
+ });
566
+
567
+ const claimStatusCenter = (scope) => col2RadioCenter({
568
+ name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
569
+ options: [
570
+ "No action taken yet",
571
+ "Demand for compensation made",
572
+ "Lawsuit filed",
573
+ "Other"
574
+ ]
575
+ });
576
+
577
+ const comments = (updates, scope) => textArea(
578
+ merge({
579
+ name: scope ? scope + ':' + 'Comments' : 'Comments',
580
+ label: 'Please briefly describe your situation in a few words:',
581
+ placeholder: 'For Example: "I would like help with child support payments" or "I need help with visitation rights"'
582
+ }, updates)
583
+ );
584
+
585
+ const consumerLawyerTypeCenter = () => verticalSelect({
586
+ name: 'Consumer_Lawyer_Type',
587
+ options: [
588
+ "Unsafe Environment",
589
+ "Unsafe Products",
590
+ "Auto Fraud",
591
+ "Credit Reporting Issues",
592
+ "Debt Collection Abuse",
593
+ "Identity Theft",
594
+ "Lemon Law",
595
+ "Military Consumer Rights",
596
+ "Predatory Lending",
597
+ "Student Loans",
598
+ "Other"
599
+ ]
600
+ });
601
+
602
+ const countryOfCitizenshipCenter = (scope) => verticalSelect({
603
+ name: scope ? scope + ':' + 'Country_Of_Citizenship' : 'Country_Of_Citizenship',
604
+ options: [
605
+ "Afghanistan",
606
+ "Albania",
607
+ "Algeria",
608
+ "Andorra",
609
+ "Angola",
610
+ "Antigua and Barbuda",
611
+ "Argentina",
612
+ "Armenia",
613
+ "Australia",
614
+ "Austria",
615
+ "Azerbaijan",
616
+ "Bahamas",
617
+ "The Bahrain",
618
+ "Bangladesh",
619
+ "Barbados",
620
+ "Belarus",
621
+ "Belgium",
622
+ "Belize",
623
+ "Benin",
624
+ "Bhutan",
625
+ "Bolivia",
626
+ "Bosnia and Herzegovina",
627
+ "Botswana",
628
+ "Brazil",
629
+ "Brunei",
630
+ "Bulgaria",
631
+ "Burkina Faso",
632
+ "Burundi",
633
+ "Cambodia",
634
+ "Cameroon",
635
+ "Canada",
636
+ "Cape Verde",
637
+ "Central African Republic",
638
+ "Chad",
639
+ "Chile",
640
+ "China",
641
+ "Colombia",
642
+ "Comoros",
643
+ "Congo (Congoâ Kinshasa)",
644
+ "Congo (Congoâ Brazzaville)",
645
+ "Costa Rica",
646
+ "Coted'Ivoire (Ivory Coast)",
647
+ "Croatia",
648
+ "Cuba",
649
+ "Cyprus",
650
+ "Czech Republic",
651
+ "Denmark",
652
+ "Djibouti",
653
+ "Dominica",
654
+ "Dominican Republic",
655
+ "Ecuador",
656
+ "Egypt",
657
+ "El Salvador",
658
+ "Equatorial Guinea",
659
+ "Eritrea",
660
+ "Estonia",
661
+ "Ethiopia",
662
+ "Fiji",
663
+ "Finland",
664
+ "France",
665
+ "Gabon",
666
+ "Gambia",
667
+ "Georgia",
668
+ "Germany",
669
+ "Ghana",
670
+ "Greece",
671
+ "Grenada",
672
+ "Guatemala",
673
+ "Guinea",
674
+ "Guinea-Bissau",
675
+ "Guyana",
676
+ "Haiti",
677
+ "Honduras",
678
+ "Hungary",
679
+ "Iceland",
680
+ "India",
681
+ "Indonesia",
682
+ "Iran",
683
+ "Iraq",
684
+ "Ireland",
685
+ "Israel",
686
+ "Italy",
687
+ "Jamaica",
688
+ "Japan",
689
+ "Jordan",
690
+ "Kazakhstan",
691
+ "Kenya",
692
+ "Kiribati",
693
+ "Korea (North Korea)",
694
+ "Korea (South Korea)",
695
+ "Kuwait",
696
+ "Kyrgyzstan",
697
+ "Laos",
698
+ "Latvia",
699
+ "Lebanon",
700
+ "Lesotho",
701
+ "Liberia",
702
+ "Libya",
703
+ "Liechtenstein",
704
+ "Lithuania",
705
+ "Luxembourg",
706
+ "Macedonia",
707
+ "Madagascar",
708
+ "Malawi",
709
+ "Malaysia",
710
+ "Maldives",
711
+ "Mali",
712
+ "Malta",
713
+ "Marshall Islands",
714
+ "Mauritania",
715
+ "Mauritius",
716
+ "Mexico",
717
+ "Micronesia",
718
+ "Moldova",
719
+ "Monaco",
720
+ "Mongolia",
721
+ "Montenegro",
722
+ "Morocco",
723
+ "Mozambique",
724
+ "Myanmar (Burma)",
725
+ "Namibia",
726
+ "Nauru",
727
+ "Nepal",
728
+ "Netherlands",
729
+ "New Zealand",
730
+ "Nicaragua",
731
+ "Niger",
732
+ "Nigeria",
733
+ "Norway",
734
+ "Oman",
735
+ "Pakistan",
736
+ "Palau",
737
+ "Panama",
738
+ "Papua New Guinea",
739
+ "Paraguay",
740
+ "Peru",
741
+ "Philippines",
742
+ "Poland",
743
+ "Portugal",
744
+ "Qatar",
745
+ "Romania",
746
+ "Russia",
747
+ "Rwanda",
748
+ "Saint Kitts and Nevis",
749
+ "SaintLucia",
750
+ "Saint Vincent and the Grenadines",
751
+ "Samoa",
752
+ "San Marino",
753
+ "Sao Tome and Principe",
754
+ "Saudi Arabia",
755
+ "Senegal",
756
+ "Serbia",
757
+ "Seychelles",
758
+ "Sierra Leone",
759
+ "Singapore",
760
+ "Slovakia",
761
+ "Slovenia",
762
+ "Solomon Islands",
763
+ "Somalia",
764
+ "South Africa",
765
+ "Spain",
766
+ "SriLanka",
767
+ "Sudan",
768
+ "Suriname",
769
+ "Swaziland",
770
+ "Sweden",
771
+ "Switzerland",
772
+ "Syria",
773
+ "Tajikistan",
774
+ "Tanzania",
775
+ "Thailand",
776
+ "Timor-Leste (East Timor)",
777
+ "Togo",
778
+ "Tonga",
779
+ "Trinidad and Tobago",
780
+ "Tunisia",
781
+ "Turkey",
782
+ "Turkmenistan",
783
+ "Tuvalu",
784
+ "Uganda",
785
+ "Ukraine",
786
+ "United Arab Emirates",
787
+ "United Kingdom",
788
+ "United States",
789
+ "Uruguay",
790
+ "Uzbekistan",
791
+ "Vanuatu",
792
+ "Vatican City",
793
+ "Venezuela",
794
+ "Vietnam",
795
+ "Yemen",
796
+ "Zambia",
797
+ "Zimbabwe"
798
+ ]
799
+ });
800
+
801
+ const crimeCommittedDateCenter = () => verticalDate({
802
+ name: 'Crime_Committed_Date'
803
+ });
804
+
805
+ const criminalChargeTypeCenter = () => col2RadioCenter({
806
+ name: 'Criminal_Charge_Type',
807
+ options: [
808
+ "Felony",
809
+ "Misdemeanor",
810
+ "Juvenile",
811
+ "Other"
812
+ ]
813
+ });
814
+
815
+ const criminalChargesFiledCenter = () => verticalRadio({
816
+ name: 'Criminal_Charges_Filed',
817
+ options: [
818
+ "Yes",
819
+ "No",
820
+ "Not Sure"
821
+ ]
822
+ });
823
+
824
+ const degreeOfInterest$1 = (scope, help) => sbsSelect({
825
+ name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
826
+ id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
827
+ label: 'How Likely Are You to Pay if Your Issue Could be Resolved?',
828
+ help: help,
829
+ options: [
830
+ 'Definitely',
831
+ 'Probably',
832
+ 'Maybe',
833
+ "Absolutely Can't Afford"
834
+ ]
835
+ });
836
+
837
+ const degreeOfInterestCenter = (scope, help) => col2RadioCenter({
838
+ name: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
839
+ id: scope ? scope + ':' + 'Degree_Of_Interest' : 'Degree_Of_Interest',
840
+ help: help,
841
+ options: [
842
+ 'Definitely',
843
+ 'Probably',
844
+ 'Maybe',
845
+ "Absolutely Can't Afford"
846
+ ]
847
+ });
848
+
849
+ const defaultNoticeCenter = () => verticalYesNoRadio({
850
+ name: 'Default_Notice',
851
+ });
852
+
853
+ const degreeOfInterestHelp = (scope) => degreeOfInterest$1(scope, 'No payment necessary to speak with lawyers.');
854
+
855
+ const disabilityConditionStopWork$1 = (scope) => sbsYesNoRadio({
856
+ name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
857
+ label: 'Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?'
858
+ });
859
+
860
+ const disabilityConditionStopWorkCenter = (scope) => verticalYesNoRadio({
861
+ name: scope ? scope + ':' + 'Disability_Condition_Stop_Work' : 'Disability_Condition_Stop_Work',
862
+ });
863
+
864
+ const disabilityWorkHistory$1 = (scope) => sbsYesNoRadio({
865
+ name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
866
+ label: 'Have You Had a Full-Time Job Within the Past 5 Years?'
867
+ });
868
+
869
+ const disabilityWorkHistoryCenter = (scope) => verticalYesNoRadio({
870
+ name: scope ? scope + ':' + 'Disability_Work_History' : 'Disability_Work_History',
871
+ });
872
+
873
+ const doctorTreatment$1 = (scope) => sbsYesNoRadio({
874
+ name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
875
+ label: 'Have You Recently Been Treated by a Doctor, Hospital or Clinic?',
876
+ });
877
+
878
+ const doctorTreatmentCenter = (scope) => verticalYesNoRadio({
879
+ name: scope ? scope + ':' + 'Doctor_Treatment' : 'Doctor_Treatment',
880
+ });
881
+
882
+ const driversLicenseTypeCenter = () => verticalButtonRadio({
883
+ name: 'Drivers_License_Type',
884
+ options: [
885
+ "Private",
886
+ "Commercial"
887
+ ]
888
+ });
889
+
890
+ const email = (scope) => sbsText({
891
+ $formkit: 'email',
892
+ name: scope ? scope + ':' + 'Email' : 'Email',
893
+ label: 'Email Address:',
894
+ placeholder: 'email@domain.com',
895
+ autocomplete: 'email',
896
+ 'data-tf-sensitive': 'false',
897
+ validation: 'required|email',
898
+ validationMessages: {
899
+ required: 'Email is required',
900
+ email: 'Invalid Email'
901
+ }
902
+ });
903
+
904
+ const employerTypeCenter = () => col2RadioCenter({
905
+ name: 'Employer_Type',
906
+ options: [
907
+ "Sole proprietorship (mom and pop)",
908
+ "Partnership",
909
+ "Franchise",
910
+ "Privately held company",
911
+ "Public corporation",
912
+ "Government Agency",
913
+ "Don't know"
914
+ ]
915
+ });
916
+
917
+ const employeeAtCompanyCenter = (scope) => verticalYesNoRadio({
918
+ name: scope ? scope + ':' + 'Employee_At_Company' : 'Employee_At_Company',
919
+ });
920
+
921
+ const employmentAndWorkplaceTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
922
+ name: 'Type_Of_Legal_Problem_Display',
923
+ options: [
924
+ 'Workplace Harassment',
925
+ 'Workplace Discrimination',
926
+ 'Wrongful Termination',
927
+ 'Payment Disputes',
928
+ 'Workers Compensation',
929
+ 'Personal Injury',
930
+ 'Unemployment',
931
+ 'Other Workplace Issues'
932
+ ]
933
+ }, updates));
934
+
935
+ const estateLegalServicesNeeded$1 = (scope) => sbsSelect({
936
+ name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
937
+ label: "Legal Services Needed for Your Estate:",
938
+ options: [
939
+ "Charitable Giving",
940
+ "Contested Wills",
941
+ "Drafting Wills or Trust",
942
+ "Estate Administration",
943
+ "Asset Protection",
944
+ "Other"
945
+ ]
946
+ });
947
+
948
+ const estateLegalServicesNeededCenter = (scope) => col2RadioCenter({
949
+ name: scope ? scope + ':' + 'Estate_Legal_Services_Needed' : 'Estate_Legal_Services_Needed',
950
+ options: [
951
+ "Charitable Giving",
952
+ "Contested Wills",
953
+ "Drafting Wills or Trust",
954
+ "Estate Administration",
955
+ "Asset Protection",
956
+ "Other"
957
+ ]
958
+ });
959
+
960
+ const firstName = (scope) => sbsText({
961
+ $formkit: 'text',
962
+ label: 'First Name:',
963
+ placeholder: 'First',
964
+ name: scope ? scope + ':' + 'First_Name' : 'First_Name',
965
+ autocomplete: "given-name",
966
+ validationMessages: {
967
+ required: 'First Name is required'
968
+ }
969
+ });
970
+
971
+ const TOLPOptions = [
972
+ 'Adoption',
973
+ 'Asbestos and Mesothelioma',
974
+ 'Auto and Car Accidents',
975
+ 'Bankruptcy',
976
+ 'Birth Certificate and Name Change',
977
+ 'Business Lawyers',
978
+ 'Child Custody',
979
+ 'Child Support',
980
+ 'Civil Rights and Discrimination',
981
+ 'Consumer Lawyers',
982
+ 'Copyrights and Trademarks',
983
+ 'Criminal and Felony',
984
+ 'Debt and Collections',
985
+ 'Defend a Lawsuit',
986
+ 'Divorce and Separation',
987
+ 'DUI and DWI',
988
+ 'Elder Law',
989
+ 'Employment and Workplace',
990
+ 'Expungement',
991
+ 'Family Issues',
992
+ 'File a Lawsuit',
993
+ 'Foreclosure',
994
+ 'Guardianship',
995
+ 'Harassment and Discrimination',
996
+ 'Identity Theft',
997
+ 'Immigration and Visas',
998
+ 'Insurance',
999
+ 'Landlord and Tenant',
1000
+ 'Lemon Law',
1001
+ 'Long Term Disability',
1002
+ 'Medical Malpractice',
1003
+ 'Non-Workplace Discrimination',
1004
+ 'Non-Workplace Harassment',
1005
+ 'Patents and Intellectual Property',
1006
+ 'Personal Injury',
1007
+ 'Power of Attorney',
1008
+ 'Probate and Estates',
1009
+ 'Product Liability',
1010
+ 'Property Damage',
1011
+ 'Real Estate',
1012
+ 'Sexual Harassment',
1013
+ 'Social Security Disability and Insurance',
1014
+ 'Tax and IRS',
1015
+ 'Traffic and Tickets',
1016
+ 'Unemployment',
1017
+ 'Victim of a Crime',
1018
+ 'Wills and Trusts',
1019
+ 'Workers Compensation',
1020
+ 'Workplace Discrimination',
1021
+ 'Workplace Harassment',
1022
+ 'Wrongful Death',
1023
+ 'Wrongful Termination',
1024
+ 'Not Sure or Other'
1025
+ ];
1026
+
1027
+ const generalTOLPCenter = (updates) => verticalSelect(merge({
1028
+ name: 'Type_Of_Legal_Problem',
1029
+ id: 'Type_Of_Legal_Problem',
1030
+ options: TOLPOptions,
1031
+ }, updates));
1032
+
1033
+ const haveAttorney$1 = (scope) => sbsYesNoRadio({
1034
+ name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
1035
+ label: 'Already Working with An Attorney?'
1036
+ });
1037
+
1038
+ const haveAttorneyCenter = (scope) => verticalYesNoRadio({
1039
+ name: scope ? scope + ':' + 'Have_Attorney' : 'Have_Attorney',
1040
+ });
1041
+
1042
+ const haveChildren$1 = (scope) => sbsYesNoRadio({
1043
+ name: scope ? scope + ':' + 'Have_Children' : 'Have_Children',
1044
+ label: 'Do You Have Children?'
1045
+ });
1046
+
1047
+ const haveChildrenCenter = (scope) => verticalYesNoRadio({
1048
+ name: scope ? scope + ':' + 'Have_Children' : 'Have_Children'
1049
+ });
1050
+
1051
+
1052
+ const haveCourtDateCenter = () => verticalYesNoRadio({
1053
+ name: 'Have_Court_Date',
1054
+ });
1055
+
1056
+ const immigrationDetailsCenter = (scope) => verticalSelect({
1057
+ name: scope ? scope + ':' + 'Immigration_Details' : 'Immigration_Details',
1058
+ options: [
1059
+ "In the USA with proper documentation",
1060
+ "In the USA without proper documentation",
1061
+ "Not in the USA",
1062
+ "In Deportation/Removal Proceedings",
1063
+ "Currently Detained (friend or family submitting this request)",
1064
+ "Out on Bond",
1065
+ "None Apply"
1066
+ ]
1067
+ });
1068
+
1069
+ const immigrationEntryCenter = (scope) => verticalSelect({
1070
+ name: scope ? scope + ':' + 'Immigration_Entry' : 'Immigration_Entry',
1071
+ options: [
1072
+ "With Proper Documents/Visa and Inspection through Customs Border Patrol",
1073
+ "Illegally",
1074
+ "No Entry",
1075
+ "Other"
1076
+ ]
1077
+ });
1078
+
1079
+ const immigrationLocationCenter = (scope) => col2RadioCenter({
1080
+ name: scope ? scope + ':' + 'Immigration_Location' : 'Immigration_Location',
1081
+ options: [
1082
+ "In the USA",
1083
+ "Outside the USA"
1084
+ ]
1085
+ });
1086
+
1087
+ const immigrationTypeCenter = (scope) => verticalSelect({
1088
+ name: scope ? scope + ':' + 'Immigration_Type' : 'Immigration_Type',
1089
+ options: [
1090
+ "Citizenship (for current green card holders)",
1091
+ "Permanent Visa Family Based (green cards)",
1092
+ "Permanent Visa Business Based (green cards)",
1093
+ "Temporary Business Visa",
1094
+ "Temporary Tourist Visa",
1095
+ "Investor",
1096
+ "Asylum",
1097
+ "Self Petition (violence & abuse victims)",
1098
+ "Removal/Deportation Proceeding",
1099
+ "Other"
1100
+ ]
1101
+ });
1102
+
1103
+ const immigrationStatusCenter = (scope) => verticalSelect({
1104
+ name: scope ? scope + ':' + 'Immigration_Status' : 'Immigration_Status',
1105
+ options: [
1106
+ "Out of Status (overstayed my visa)",
1107
+ "Current Visa Holder (in status)",
1108
+ "Lawful Permanent Resident (green card)",
1109
+ "Not Applicable (outside the USA)",
1110
+ "Other"
1111
+ ]
1112
+ });
1113
+
1114
+ const incidentDate$1 = (scope) => sbsDate({
1115
+ name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
1116
+ label: 'Date of Incident:',
1117
+ });
1118
+
1119
+ const incidentDateCenter = (scope) => verticalDate({
1120
+ name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
1121
+ });
1122
+
1123
+ const lastName = (scope) => sbsText({
1124
+ $formkit: 'text',
1125
+ label: 'Last Name:',
1126
+ placeholder: 'Last',
1127
+ name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
1128
+ autocomplete: "family-name",
1129
+ validationMessages: {
1130
+ required: 'Last Name is required'
1131
+ }
1132
+ });
1133
+
1134
+ const landlordTenantPartyCenter = () => verticalButtonRadio({
1135
+ name: 'Landlord_Tenant_Party',
1136
+ options: [
1137
+ "Landlord",
1138
+ "Tenant",
1139
+ "Other"
1140
+ ]
1141
+ });
1142
+
1143
+ const landlordTenantIssueRadioCenter = () => col2RadioCenter({
1144
+ id: 'Landlord_Tenant_Issue',
1145
+ name: 'Landlord_Tenant_Issue',
1146
+ options: [
1147
+ "Eviction",
1148
+ "Repairs and Maintenance",
1149
+ "Lease and Rental Agreements",
1150
+ "Discrimination",
1151
+ "Right of Entry and Privacy",
1152
+ "Screening and Applications",
1153
+ "Environmental Hazards",
1154
+ "Other Dispute"
1155
+ ]
1156
+ });
1157
+
1158
+ const lawsuitOtherPartyCenter = () => col2RadioCenter({
1159
+ name: 'Lawsuit_Other_Party',
1160
+ options: [
1161
+ "Individual",
1162
+ "Small Business",
1163
+ "Large Corporation",
1164
+ "Government Entity"
1165
+ ]
1166
+ });
1167
+
1168
+ const lawyerPaymentMethod$1 = (scope) => sbsSelect({
1169
+ name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
1170
+ label: 'How Will You Pay for Legal Fees if You Hire a Lawyer?',
1171
+ help: 'No payment necessary to speak with lawyers.',
1172
+ options: [
1173
+ 'Cash',
1174
+ 'Check',
1175
+ 'Credit Card',
1176
+ 'Friend',
1177
+ 'Family',
1178
+ 'Other'
1179
+ ]
1180
+ });
1181
+
1182
+ const lawyerPaymentMethodCenter = (scope) => col2RadioCenter({
1183
+ name: scope ? scope + ':' + 'Lawyer_Payment_Method' : 'Lawyer_Payment_Method',
1184
+ help: 'No payment necessary to start a consultation.',
1185
+ options: {
1186
+ 'Cash': 'Cash',
1187
+ 'Credit Card': 'Credit Card',
1188
+ 'Family': 'Family or Friend',
1189
+ 'Other': 'Other'
1190
+ },
1191
+ fieldsetClass: '$reset t-flex t-flex-col t-items-center'
1192
+ });
1193
+
1194
+ const legalCrossSells$1 = () => col2Checkbox({
1195
+ id: 'Legal_CrossSells',
1196
+ name: 'Legal_CrossSells',
1197
+ help: 'Just hit "Next" if none apply',
1198
+ helpClass: 't-text-center !t-text-sm',
1199
+ validation: null,
1200
+ options: {
1201
+ if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Auto and Car Accidents"',
1202
+ then: {
1203
+ 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
1204
+ 'Wills and Trusts': 'Need a Will or Trust',
1205
+ 'Workers Compensation': 'Workplace Injury',
1206
+ 'Power of Attorney': 'Update Power of Attorney',
1207
+ 'Divorce and Separation': 'Need a Divorce or Separation',
1208
+ 'Child Custody': 'Need help with Child Custody',
1209
+ },
1210
+ else: {
1211
+ if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Personal Injury" || $getVal($get(form), "Type_Of_Legal_Problem") === "Workers Compensation"',
1212
+ then: {
1213
+ 'DUI and DWI': 'Involved in a DUI/DWI',
1214
+ 'Wills and Trusts': 'Need a Will or Trust',
1215
+ 'Power of Attorney': 'Update Power of Attorney',
1216
+ 'Divorce and Separation': 'Need a Divorce or Separation',
1217
+ 'Child Custody': 'Need help with Child Custody',
1218
+ // TODO add one more?
1219
+ },
1220
+ else: {
1221
+ if: '$getVal($get(form), "Type_Of_Legal_Problem") === "DUI and DWI"',
1222
+ then: {
1223
+ 'Personal Injury': 'Personal or Workplace Injury',
1224
+ 'Wills and Trusts': 'Need a Will or Trust',
1225
+ 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
1226
+ 'Power of Attorney': 'Update Power of Attorney',
1227
+ 'Divorce and Separation': 'Need a Divorce or Separation',
1228
+ 'Child Custody': 'Need help with Child Custody',
1229
+ },
1230
+ else: {
1231
+ if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Wills and Trusts" || $getVal($get(form), "Type_Of_Legal_Problem") === "Probate and Estates" || $getVal($get(form), "Type_Of_Legal_Problem") === "Power of Attorney"',
1232
+ then: {
1233
+ 'Auto and Car Accidents': 'Injured in a Car Accident',
1234
+ 'Personal Injury': 'Personal or Workplace Injury',
1235
+ 'DUI and DWI': 'Involved in a DUI/DWI',
1236
+ 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
1237
+ 'Divorce and Separation': 'Need a Divorce or Separation',
1238
+ 'Child Custody': 'Need help with Child Custody',
1239
+ },
1240
+ else: {
1241
+ if: '$getVal($get(form), "Type_Of_Legal_Problem") === "Long Term Disability" || $getVal($get(form), "Type_Of_Legal_Problem") === "Social Security Disability and Insurance"',
1242
+ then: {
1243
+ 'Auto and Car Accidents': 'Injured in a Car Accident',
1244
+ 'DUI and DWI': 'Involved in a DUI/DWI',
1245
+ 'Wills and Trusts': 'Need a Will or Trust',
1246
+ 'Power of Attorney': 'Update Power of Attorney',
1247
+ 'Divorce and Separation': 'Need a Divorce or Separation',
1248
+ 'Child Custody': 'Need help with Child Custody',
1249
+ },
1250
+ else: {
1251
+ 'Auto and Car Accidents': 'Injured in a Car Accident',
1252
+ 'Personal Injury': 'Personal or Workplace Injury',
1253
+ 'DUI and DWI': 'Involved in a DUI/DWI',
1254
+ 'Wills and Trusts': 'Need a Will or Trust',
1255
+ 'Power of Attorney': 'Update Power of Attorney',
1256
+ 'Social Security Disability and Insurance': 'Interest in Disability Benefits',
1257
+ }
1258
+ }
1259
+ }
1260
+ }
1261
+ }
1262
+ }
1263
+ });
1264
+
1265
+ const loanAmountCenter = () => verticalSelect({
1266
+ name: 'Loan_Amount',
1267
+ options: [
1268
+ "Less than $10,000",
1269
+ "$10,000 - $24,999",
1270
+ "$25,000 - $49,999",
1271
+ "$50,000 - $99,999",
1272
+ "$100,000 - $199,999",
1273
+ "$200,000 - $299,999",
1274
+ "$300,000 - $399,999",
1275
+ "$400,000 - $499,999",
1276
+ "$500,000 - $599,999",
1277
+ "More than $600,000"
1278
+ ]
1279
+ });
1280
+
1281
+ const maritalStatus$1 = (scope) => sbsSelect({
1282
+ name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
1283
+ label: 'Marital Status:',
1284
+ options: [
1285
+ 'Unmarried, Living Together',
1286
+ 'Unmarried, Do Not Live Together',
1287
+ 'Married, Living Together',
1288
+ 'Separated',
1289
+ 'Divorced',
1290
+ 'Other'
1291
+ ]
1292
+ });
1293
+
1294
+ const maritalStatusCenter = (scope) => col2RadioCenter({
1295
+ name: scope ? scope + ':' + 'Marital_Status' : 'Marital_Status',
1296
+ options: [
1297
+ 'Unmarried, Living Together',
1298
+ 'Unmarried, Do Not Live Together',
1299
+ 'Married, Living Together',
1300
+ 'Separated',
1301
+ 'Divorced',
1302
+ 'Other'
1303
+ ]
1304
+ });
1305
+
1306
+ const medicalMalpracticeInjuriesCenter = () => verticalSelect({
1307
+ name: 'Medical_Malpractice_Injuries',
1308
+ options: [
1309
+ "No Injury",
1310
+ "Minor Injury",
1311
+ "Disfigurement or cosmetic injury",
1312
+ "Short term loss of physical ability",
1313
+ "Long term loss of physical injury",
1314
+ "Possibility of future harm",
1315
+ "Death of Patient"
1316
+ ]
1317
+ });
1318
+
1319
+ const numEmployeesOfBusinessCenter = () => col2RadioCenter({
1320
+ name: 'Num_Employees_Of_Business',
1321
+ options: [
1322
+ "1-5",
1323
+ "6-20",
1324
+ "21-50",
1325
+ "51-100",
1326
+ "101-500",
1327
+ "501-1,000",
1328
+ "More than 1,000"
1329
+ ]
1330
+ });
1331
+
1332
+ const ownRealEstateCenter = () => verticalYesNoRadio({
1333
+ name: 'Own_Real_Estate',
1334
+ });
1335
+
1336
+ const patentAssistanceTypeCenter = () => verticalSelect({
1337
+ name: 'Patent_Assistance_Type',
1338
+ options: [
1339
+ "Obtaining a Patent",
1340
+ "Avoiding Patent Infringement",
1341
+ "Suing for Patent Infringement",
1342
+ "Defending Against a Claim of Patent Infringement",
1343
+ "Other"
1344
+ ]
1345
+ });
1346
+
1347
+ const patentForCenter = () => col2RadioCenter({
1348
+ name: 'Patent_For',
1349
+ options: [
1350
+ "Product or Machine",
1351
+ "Process",
1352
+ "Computer Software",
1353
+ "Living Organism or Plant",
1354
+ "Ornamental Design",
1355
+ "Other"
1356
+ ]
1357
+ });
1358
+
1359
+ const pendingCharges$1 = (scope) => sbsYesNoRadio({
1360
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1361
+ label: 'Do you currently have any pending charges?'
1362
+ });
1363
+
1364
+ const pendingChargesCenter = (scope) => verticalYesNoRadio({
1365
+ name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
1366
+ });
1367
+
1368
+ const phone = (scope) => sbsText({
1369
+ $formkit: 'tel',
1370
+ name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
1371
+ label: 'Phone Number:',
1372
+ placeholder: '###-###-####',
1373
+ maxlength: 12,
1374
+ help: '10-digit phone number, hyphens optional',
1375
+ autocomplete: 'tel-national',
1376
+ 'data-tf-sensitive': 'false',
1377
+ validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
1378
+ validationMessages: {
1379
+ required: 'Field is required',
1380
+ matches: 'Invalid Phone Format, use ###-###-####',
1381
+ valid_phone: 'Invalid Phone Number'
1382
+ },
1383
+ helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
1384
+ });
1385
+
1386
+ const primaryInjury$1 = (scope) => sbs2ColRadio({
1387
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1388
+ label: 'Primary Injury:',
1389
+ options: [
1390
+ "Anxiety",
1391
+ "Back or Neck Pain",
1392
+ "Broken Bones",
1393
+ "Cuts and Bruises",
1394
+ "Headaches",
1395
+ "Memory Loss",
1396
+ "Loss of Limb",
1397
+ "Not Sure or Other"
1398
+ ]
1399
+ });
1400
+
1401
+ const primaryInjuryCenter = (scope) => col2RadioCenter({
1402
+ name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
1403
+ options: [
1404
+ "Anxiety",
1405
+ "Back or Neck Pain",
1406
+ "Broken Bones",
1407
+ "Cuts and Bruises",
1408
+ "Headaches",
1409
+ "Memory Loss",
1410
+ "Loss of Limb",
1411
+ "Not Sure or Other"
1412
+ ]
1413
+ });
1414
+
1415
+ const priorAlcoholOffenses$1 = (scope) => sbsYesNoRadio({
1416
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1417
+ label: 'Any Prior Alcohol Related Offenses?'
1418
+ });
1419
+
1420
+ const priorAlcoholOffensesCenter = (scope) => verticalYesNoRadio({
1421
+ name: scope ? scope + ':' + 'Prior_Alcohol_Offenses' : 'Prior_Alcohol_Offenses',
1422
+ });
1423
+
1424
+ const policeReportFiled$1 = (scope) => sbsYesNoRadio({
1425
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1426
+ label: 'Was a Police Report Filed?'
1427
+ });
1428
+
1429
+ const policeReportFiledCenter = (scope) => verticalYesNoRadio({
1430
+ name: scope ? scope + ':' + 'Police_Report_Filed' : 'Police_Report_Filed',
1431
+ });
1432
+
1433
+ const realEstateAreaCenter = () => col2RadioCenter({
1434
+ name: 'Real_Estate_Area',
1435
+ options: [
1436
+ "Condos and Coops",
1437
+ "Construction Disputes",
1438
+ "Purchase/Sale Contract",
1439
+ "Refinancing Agreement",
1440
+ "Title and Boundary Disputes",
1441
+ "Zoning, Planning and Land Use",
1442
+ "Property Deeds and Transfers",
1443
+ "Liens",
1444
+ "Other"
1445
+ ]
1446
+ });
1447
+
1448
+ const realEstateTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
1449
+ name: 'Type_Of_Legal_Problem_Display',
1450
+ options: [
1451
+ 'Contracts and Agreements',
1452
+ 'Deeds, Liens, and Titles',
1453
+ 'Foreclosure',
1454
+ 'Insurance',
1455
+ 'Landlord and Tenant',
1456
+ 'Loans and Mortgages',
1457
+ 'Wills, Trusts, and Estates',
1458
+ 'Property Damage',
1459
+ 'Not Sure or Other'
1460
+ ]
1461
+ }, updates));
1462
+
1463
+ const relationshipToVictimCenter = () => col2RadioCenter({
1464
+ name: 'Relationship_To_Victim',
1465
+ options: [
1466
+ "Parent",
1467
+ "Spouse",
1468
+ "Sibling",
1469
+ "Friend",
1470
+ "Other"
1471
+ ]
1472
+ });
1473
+
1474
+ const roleInMatterCriminalCenter = () => verticalRadio({
1475
+ name: 'Role_In_Matter_Criminal',
1476
+ options: [
1477
+ "I have been accused",
1478
+ "I am acting on behalf of someone who has been accused",
1479
+ "Other"
1480
+ ]
1481
+ });
1482
+
1483
+ const roleInMatterProbate$1 = (scope) => sbsSelect({
1484
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1485
+ label: "What Is Your Role in this Matter?",
1486
+ options: [
1487
+ "Preparing My Will",
1488
+ "Executor",
1489
+ "Heir",
1490
+ "Other"
1491
+ ]
1492
+ });
1493
+
1494
+ const roleInMatterProbateCenter = (scope) => col2RadioCenter({
1495
+ name: scope ? scope + ':' + 'Role_In_Matter_Probate' : 'Role_In_Matter_Probate',
1496
+ options: [
1497
+ "Preparing My Will",
1498
+ "Executor",
1499
+ "Heir",
1500
+ "Other"
1501
+ ]
1502
+ });
1503
+
1504
+ const socialSecurityDisabilityReceivingBenefits$1 = (scope) => sbsYesNoRadio({
1505
+ name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
1506
+ label: 'Are You Currently Receiving Social Security Disability Benefits?'
1507
+ });
1508
+
1509
+ const socialSecurityDisabilityReceivingBenefitsCenter = (scope) => verticalYesNoRadio({
1510
+ name: scope ? scope + ':' + 'Social_Security_Disability_Receiving_Benefits' : 'Social_Security_Disability_Receiving_Benefits',
1511
+ });
1512
+
1513
+ const taxLevelCenter = () => col2RadioCenter({
1514
+ name: 'Tax_Level',
1515
+ options: [
1516
+ "Federal",
1517
+ "State",
1518
+ "Local"
1519
+ ]
1520
+ });
1521
+
1522
+ const taxIssueTypeCenter = () => col2RadioCenter({
1523
+ name: 'Tax_Issue_Type',
1524
+ options: [
1525
+ "Income",
1526
+ "Property",
1527
+ "Corporate"
1528
+ ]
1529
+ });
1530
+
1531
+ const taxProblemDetailsCenter = () => verticalSelect({
1532
+ name: 'Tax_Problem_Details',
1533
+ options: [
1534
+ "Assets Seized",
1535
+ "Bank Account Levied",
1536
+ "Cannot Pay Taxes",
1537
+ "Innocent Spouse",
1538
+ "Lien Filed",
1539
+ "Received Audit Notice",
1540
+ "Unpaid Interest",
1541
+ "Wage Garnishment",
1542
+ "Other"
1543
+ ]
1544
+ });
1545
+
1546
+ const totalDebtCenter = () => col2RadioCenter({
1547
+ name: 'Total_Debt',
1548
+ options: [
1549
+ "Less than 5K",
1550
+ "5K to 10K",
1551
+ "10K to 20K",
1552
+ "20K to 50K",
1553
+ "More than 50K"
1554
+ ]
1555
+ });
1556
+
1557
+ const totalMonthlyIncomeCenter = () => verticalSelect({
1558
+ name: 'Total_Monthly_Income',
1559
+ options: [
1560
+ "Less than 1K",
1561
+ "1K to 2K",
1562
+ "2K to 3K",
1563
+ "3K to 4K",
1564
+ "4K to 5K",
1565
+ "5K to 7K",
1566
+ "7K to 10K",
1567
+ "10K to 15K",
1568
+ "More than 15K"
1569
+ ]
1570
+ });
1571
+
1572
+ const TCPAConsent = (scope) => ({
1573
+ $formkit: 'checkbox',
1574
+ label: '$meta.tcpaLanguage',
1575
+ name: scope ? scope + ':' + 'TCPA_Opt_In' : 'TCPA_Opt_In',
1576
+ 'data-tf-sensitive': 'false',
1577
+ validation: 'required|accepted',
1578
+ validationMessages: {
1579
+ required: 'Consent is required',
1580
+ accepted: 'Consent is required'
1581
+ },
1582
+ classes: {
1583
+ label: "t-text-xs t-text-slate-500 t-font-normal"
1584
+ }
1585
+ });
1586
+
1587
+ const typeOfAlcoholTest$1 = (scope) => sbsSelect({
1588
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1589
+ label: 'Type of Alcohol Test Performed?',
1590
+ options: [
1591
+ "No Test",
1592
+ "Refused Test",
1593
+ "Breath Test",
1594
+ "Blood Test",
1595
+ "Urine Test",
1596
+ "Don't Know"
1597
+ ]
1598
+ });
1599
+
1600
+ const typeOfAlcoholTestCenter = (scope) => col2RadioCenter({
1601
+ name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
1602
+ options: [
1603
+ "No Test",
1604
+ "Refused Test",
1605
+ "Breath Test",
1606
+ "Blood Test",
1607
+ "Urine Test",
1608
+ "Don't Know"
1609
+ ]
1610
+ });
1611
+
1612
+ const typeOfAssets$1 = (scope) => col2Checkbox({
1613
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1614
+ label: 'Type of Assets:',
1615
+ options: [
1616
+ "Business Interests",
1617
+ "Cash",
1618
+ "Life Insurance Policies",
1619
+ "Pensions/Retirement",
1620
+ "Personal Possessions",
1621
+ "Property",
1622
+ "Stock/Bonds"
1623
+ ]
1624
+ });
1625
+
1626
+ const typeOfAssetsCenter = (scope) => verticalCol2Checkbox({
1627
+ name: scope ? scope + ':' + 'Type_Of_Assets' : 'Type_Of_Assets',
1628
+ options: [
1629
+ "Business Interests",
1630
+ "Cash",
1631
+ "Life Insurance Policies",
1632
+ "Pensions/Retirement",
1633
+ "Personal Possessions",
1634
+ "Property",
1635
+ "Stock/Bonds"
1636
+ ]
1637
+ });
1638
+
1639
+ const typeOfPropertyCenter = () => col2RadioCenter({
1640
+ name: 'Type_Of_Property',
1641
+ options: [
1642
+ "Residential",
1643
+ "Commercial",
1644
+ "Industrial",
1645
+ "Agricultural",
1646
+ "Recreational",
1647
+ "Other"
1648
+ ]
1649
+ });
1650
+
1651
+ const trafficViolationsCenter = () => verticalSelect({
1652
+ name: 'Traffic_Violations',
1653
+ options: [
1654
+ "Disregarding a Red Light",
1655
+ "Disregarding a Stop Sign",
1656
+ "DMV Letter About License",
1657
+ "DUI/DWI",
1658
+ "Failure to Appear in Court",
1659
+ "License Suspended/Revoked",
1660
+ "Minor in Possession of Alcohol",
1661
+ "No Child Safety Seat",
1662
+ "No Liability Insurance",
1663
+ "No Seat Belt",
1664
+ "Open Container of Alcohol",
1665
+ "Parking Ticket",
1666
+ "Racing",
1667
+ "Speeding",
1668
+ "Unpaid Traffic Tickets",
1669
+ "Warrant Issue for Arrest",
1670
+ "Other Violation"
1671
+ ]
1672
+ });
1673
+
1674
+ const valueOfAssets$1 = (scope) => sbsSelect({
1675
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
1676
+ label: 'Value of Your Assets?',
1677
+ options: [
1678
+ "Less than 50K",
1679
+ "50K to 100K",
1680
+ "100K to 250K",
1681
+ "250K to 500K",
1682
+ "500K to 1M",
1683
+ "More than 1M"
1684
+ ]
1685
+ });
1686
+
1687
+ const valueOfAssetsCenter = (scope) => col2RadioCenter({
1688
+ name: scope ? scope + ':' + 'Value_Of_Assets' : 'Value_Of_Assets',
1689
+ options: [
1690
+ "Less than 50K",
1691
+ "50K to 100K",
1692
+ "100K to 250K",
1693
+ "250K to 500K",
1694
+ "500K to 1M",
1695
+ "More than 1M"
1696
+ ]
1697
+ });
1698
+
1699
+ const veteransDisabilityAppliedCenter = () => verticalSelect({
1700
+ name: 'Veterans_Disability_Applied',
1701
+ options: [
1702
+ "Yes, Claim filed and awaiting decision",
1703
+ "Yes, Claim denied",
1704
+ "Yes, Claim on appeal",
1705
+ "Yes, Claim approved",
1706
+ "Yes, Benefits awarded",
1707
+ "No, Claim has not been filed"
1708
+ ]
1709
+ });
1710
+
1711
+ const veteransDisabilityConditionsCenter = () => verticalCheckbox({
1712
+ label: 'What Service Connected Conditions Does the Applicant Have? (select all that apply)',
1713
+ name: 'Veterans_Disability_Conditions',
1714
+ options: [
1715
+ "Traumatic Physical Injury (broken bones, loss of limb)",
1716
+ "Mental Injury",
1717
+ "Occupational Disease",
1718
+ "Repeated Trauma Injury",
1719
+ "Other"
1720
+ ]
1721
+ });
1722
+
1723
+ const veteransDisabilityRelationshipCenter = () => verticalSelect({
1724
+ name: 'Veterans_Disability_Relationship',
1725
+ options: [
1726
+ "Self, Active Duty",
1727
+ "Self, Active Reserve",
1728
+ "Self, Discharged from Active Duty",
1729
+ "Self, Discharged as Reservist",
1730
+ "Surviving Family Member",
1731
+ "Other"
1732
+ ]
1733
+ });
1734
+
1735
+ const veteransDisabilityInjuredCenter = () => verticalYesNoRadio({
1736
+ name: 'Veterans_Disability_Injured',
1737
+ });
1738
+
1739
+ const wouldLikeLawyerToCenter = () => verticalRadio({
1740
+ name: 'Would_Like_Lawyer_To',
1741
+ options: [
1742
+ "Give me general advice to protect my interests",
1743
+ "Act as my agent in the transaction",
1744
+ "Assist me in the remaining stages of the transaction",
1745
+ "Bring a lawsuit against another party",
1746
+ "Defend against a lawsuit filed by another party",
1747
+ "Other"
1748
+ ]
1749
+ });
1750
+
1751
+ const zipcodeCenter = (updates = {}, scope) => text({
1752
+ placeholder: '#####',
1753
+ help: updates.help ?? "We try to match you with local legal help",
1754
+ name: scope ? scope + ':' + 'Zip' : 'Zip',
1755
+ maxlength: 5,
1756
+ inputmode: "numeric",
1757
+ autocomplete: 'postal-code',
1758
+ validation: 'required|matches:/^[0-9]{5}$/',
1759
+ validationMessages: {
1760
+ required: 'Zip Code is required',
1761
+ matches: 'Invalid Zip Code'
1762
+ },
1763
+ wrapperClass: 't-flex t-justify-center',
1764
+ messagesClass: 't-flex t-justify-center',
1765
+ inputClass: 't-text-center',
1766
+ helpClass: 't-mt-2.5 !t-text-sm t-text-center'
1767
+ });
1768
+
1769
+
1770
+ // ------ Question Groups
1771
+
1772
+ // NOTE: name must be unique within a form!
1773
+ const group = (name, updates) => {
1774
+ return merge({
1775
+ $cmp: 'FormKit',
1776
+ props: {
1777
+ type: 'group',
1778
+ key: name,
1779
+ id: name,
1780
+ name: name
1781
+ }
1782
+ }, updates)
1783
+ };
1784
+
1785
+ const AutoAndCarAccidentsQuestions = (condition, scope) => group(
1786
+ 'AutoAndCarAccidentsQuestions',
1787
+ {
1788
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
1789
+ children: [
1790
+ haveAttorney$1(scope),
1791
+ incidentDate$1(scope),
1792
+ atFault$1(scope),
1793
+ primaryInjury$1(scope),
1794
+ doctorTreatment$1(scope),
1795
+ policeReportFiled$1(scope)
1796
+ ]
1797
+ }
1798
+ );
1799
+
1800
+ const ChildCustodyQuestions = (condition, scope) => group(
1801
+ 'ChildCustodyQuestions',
1802
+ {
1803
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
1804
+ children: [
1805
+ haveAttorney$1(scope),
1806
+ childRelationship$1(scope),
1807
+ childHome$1(scope),
1808
+ childPrimaryCaregiver$1(scope),
1809
+ degreeOfInterest$1(scope),
1810
+ lawyerPaymentMethod$1(scope)
1811
+ ]
1812
+ }
1813
+ );
1814
+
1815
+ const criminalTOLPDisplayCenter = (updates) => col2RadioCenter(merge({
1816
+ name: 'Type_Of_Legal_Problem_Display',
1817
+ options: [
1818
+ 'Criminal Defense',
1819
+ 'Victim of a Crime',
1820
+ 'DUI and DWI',
1821
+ 'Expungement',
1822
+ 'Harassment',
1823
+ 'Not Sure or Other',
1824
+ ]
1825
+ }, updates));
1826
+
1827
+ const DivorceQuestions = (condition, scope) => group(
1828
+ 'DivorceQuestions',
1829
+ {
1830
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"'),
1831
+ children: [
1832
+ haveAttorney$1(scope),
1833
+ maritalStatus$1(scope),
1834
+ haveChildren$1(scope),
1835
+ degreeOfInterest$1(scope),
1836
+ lawyerPaymentMethod$1(scope)
1837
+ ]
1838
+ }
1839
+ );
1840
+
1841
+ const DUIAndDWIQuestions = (condition, scope) => group(
1842
+ 'DUIAndDWIQuestions',
1843
+ {
1844
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
1845
+ children: [
1846
+ haveAttorney$1(scope),
1847
+ incidentDate$1(scope),
1848
+ priorAlcoholOffenses$1(scope),
1849
+ typeOfAlcoholTest$1(scope),
1850
+ bloodContentAlcoholTest$1(scope),
1851
+ pendingCharges$1(scope),
1852
+ degreeOfInterestHelp(scope)
1853
+ ]
1854
+ }
1855
+ );
1856
+
1857
+ const PersonalInjuryQuestions = (condition, scope) => group(
1858
+ 'PersonalInjuryQuestions',
1859
+ {
1860
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
1861
+ children: [
1862
+ haveAttorney$1(scope),
1863
+ incidentDate$1(scope),
1864
+ claimStatus$1(scope),
1865
+ atFault$1(scope),
1866
+ primaryInjury$1(scope),
1867
+ doctorTreatment$1(scope)
1868
+ ]
1869
+ }
1870
+ );
1871
+
1872
+ const PowerofAttorneyQuestions = (condition, scope) => group(
1873
+ 'PowerofAttorneyQuestions',
1874
+ {
1875
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"'),
1876
+ children: [
1877
+ haveAttorney$1(scope),
1878
+ degreeOfInterestHelp(scope)
1879
+ ]
1880
+ }
1881
+ );
1882
+
1883
+ const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) => group(
1884
+ 'SocialSecurityDisabilityAndInsuranceQuestions',
1885
+ {
1886
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
1887
+ children: [
1888
+ haveAttorney$1(scope),
1889
+ applicantAge$1(scope),
1890
+ disabilityConditionStopWork$1(scope),
1891
+ disabilityWorkHistory$1(scope),
1892
+ socialSecurityDisabilityReceivingBenefits$1(scope),
1893
+ doctorTreatment$1(scope)
1894
+ ]
1895
+ }
1896
+ );
1897
+
1898
+ const WillsAndTrustsQuestions = (condition, scope) => group(
1899
+ 'WillsAndTrustsQuestions',
1900
+ {
1901
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
1902
+ children: [
1903
+ haveAttorney$1(scope),
1904
+ valueOfAssets$1(scope),
1905
+ typeOfAssets$1(scope),
1906
+ roleInMatterProbate$1(scope),
1907
+ estateLegalServicesNeeded$1(scope),
1908
+ degreeOfInterestHelp(scope)
1909
+ ]
1910
+ }
1911
+ );
1912
+
1913
+ const WorkersCompensationQuestions = (condition, scope) => group(
1914
+ 'WorkersCompensationQuestions',
1915
+ {
1916
+ if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
1917
+ children: [
1918
+ haveAttorney$1(scope),
1919
+ incidentDate$1(scope),
1920
+ claimStatus$1(scope),
1921
+ primaryInjury$1(scope),
1922
+ causeOfInjury$1(scope),
1923
+ doctorTreatment$1(scope)
1924
+ ]
1925
+ }
1926
+ );
1927
+
1928
+ const NEXT_ON_ENTER = '$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
1929
+ const NEXT_ON_INPUT = '$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))';
1930
+
1931
+ const isInput = (n) => { return (n.type !== 'group' && n.type !== 'section' && n.type !== 'form' && n.$formkit !== 'hidden' && !n.children) };
1932
+
1933
+ const findLastInput = (n) => {
1934
+ if (isInput(n)) {
1935
+ return n
1936
+ }
1937
+ for (var i = n.children.length - 1; i >= 0; i--) {
1938
+ if (typeof n.children === 'string') {
1939
+ continue
1940
+ }
1941
+ const child = n.children[i];
1942
+ if (isInput(child)) {
1943
+ return child
1944
+ }
1945
+ const res = findLastInput(child);
1946
+ if (res) {
1947
+ return res
1948
+ }
1949
+ }
1950
+ return null
1951
+ };
1952
+
1953
+ const secureIconDefault = {
1954
+ $el: 'div',
1955
+ if: '$activeStep === $lastStep()',
1956
+ attrs: {
1957
+ class: 't-flex t-justify-center t-items-center t-text-sm t-text-gray-500'
1958
+ },
1959
+ children: [
1960
+ {
1961
+ $el: 'img',
1962
+ attrs: {
1963
+ loading: 'lazy',
1964
+ alt: '',
1965
+ style: {
1966
+ border: 0
1967
+ },
1968
+ width: '25',
1969
+ height: '25',
1970
+ src: 'https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg',
1971
+ }
1972
+ },
1973
+ {
1974
+ $el: 'span',
1975
+ children: 'Secure & Encrypted',
1976
+ attrs: {
1977
+ class: 't-pl-2 t-pt-1 t-font-medium'
1978
+ }
1979
+ }
1980
+ ]
1981
+ };
1982
+
1983
+ function secureIcon(updates) {
1984
+ return merge(
1985
+ secureIconDefault,
1986
+ updates
1987
+ )
1988
+ }
1989
+
1990
+ function crossSellQuestionsStepHeadline(updates) {
1991
+ return {
1992
+ $el: 'h3',
1993
+ children: updates.headline || 'Tell Us About Your Situation',
1994
+ attrs: {
1995
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1'
1996
+ }
1997
+ }
1998
+ }
1999
+
2000
+ function crossSellQuestionsStepSubHeadline(updates) {
2001
+ return {
2002
+ $el: 'h5',
2003
+ children: updates.subheadline || 'Tell us about your situation:',
2004
+ attrs: {
2005
+ class: 't-flex t-justify-center t-text-dark t-text-center !t-text-lg t-font-semibold t-pb-4 t-pt-0 t-px-3'
2006
+ }
2007
+ }
2008
+ }
2009
+
2010
+ function verticalStepHeadline(updates) {
2011
+ return {
2012
+ $el: 'h3',
2013
+ children: updates.headline || 'Tell Us About Your Situation',
2014
+ attrs: {
2015
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2016
+ }
2017
+ }
2018
+ }
2019
+
2020
+ function verticalStepSubHeadline(updates) {
2021
+ return {
2022
+ $el: 'h5',
2023
+ children: updates.subheadline || '',
2024
+ attrs: {
2025
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.subheadlineClass || '')
2026
+ }
2027
+ }
2028
+ }
2029
+
2030
+ function commentsStepHeadline(updates) {
2031
+ return {
2032
+ $el: 'h3',
2033
+ children: updates.headline || 'Additional Case Details',
2034
+ attrs: {
2035
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2036
+ }
2037
+ }
2038
+ }
2039
+
2040
+ function firstAndLastStepHeadline(updates) {
2041
+ return {
2042
+ $el: 'h3',
2043
+ children: updates.headline || 'Please Provide a Contact Name',
2044
+ attrs: {
2045
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2046
+ }
2047
+ }
2048
+ }
2049
+
2050
+ function legalCrossSellsStepHeadline(updates) {
2051
+ return {
2052
+ $el: 'h3',
2053
+ children: updates.headline || 'Do any of the following situations apply?',
2054
+ attrs: {
2055
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-5 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2056
+ }
2057
+ }
2058
+ }
2059
+
2060
+ function contactStepHeadline(updates) {
2061
+ return {
2062
+ $el: 'h3',
2063
+ children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC,
2064
+ attrs: {
2065
+ class: 't-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-3 t-pt-0 t-px-1' + ' ' + (updates.headlineClass || '')
2066
+ }
2067
+ }
2068
+ }
2069
+
2070
+ function contactStepSubHeadline(updates) {
2071
+ return {
2072
+ $el: 'h5',
2073
+ children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC,
2074
+ attrs: {
2075
+ class: 't-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3' + ' ' + (updates.subheadlineClass || '')
2076
+ }
2077
+ }
2078
+ }
2079
+
2080
+ const TRUSTED_FORM_JS = `(function() {
2081
+ if (window.xxTrustedFormLoaded) {
2082
+ return
2083
+ }
2084
+ var vid = '';
2085
+ if (typeof window.zar !== 'undefined') {
2086
+ vid = window.zar.getVID();
2087
+ }
2088
+ window.xxTrustedFormLoaded = true;
2089
+ var sandbox = document.location.hostname.indexOf('localhost') > -1 ? 'true' : 'false'
2090
+ var tf = document.createElement('script');
2091
+ tf.type = 'text/javascript'; tf.async = true;
2092
+ tf.src = ("https:" == document.location.protocol ? 'https' : 'http') + "://api.trustedform.com/trustedform.js?field=xxTrustedFormCertUrl&identifier=" + vid + "&ping_field=xxTrustedFormPingUrl&provideReferrer=false&invert_field_sensitivity=true&sandbox=" + sandbox + "&l=" + new Date().getTime() + Math.random();
2093
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s);
2094
+ })();`;
2095
+
2096
+ function trustedFormScript() {
2097
+ return {
2098
+ $el: 'script',
2099
+ if: '$activeStep === $lastStep()',
2100
+ children: TRUSTED_FORM_JS
2101
+ }
2102
+ }
2103
+
2104
+ const stepDefaults = (step, stepKey) => ({
2105
+ $el: 'section',
2106
+ if: '$stepEnabled("' + step + '")',
2107
+ attrs: {
2108
+ hidden: '$activeStep !== "' + step + '"',
2109
+ key: stepKey ? stepKey : step
2110
+ }
2111
+ });
2112
+
2113
+ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = undefined, nextStepMap = undefined, autoFocus = undefined) {
2114
+ if (typeof nextOnEnter === 'undefined') {
2115
+ nextOnEnter = true;
2116
+ }
2117
+ if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
2118
+ const lastInput = findLastInput(inputs[inputs.length - 1]);
2119
+ if (lastInput && nextOnEnter === true) {
2120
+ lastInput.onKeypress = NEXT_ON_ENTER;
2121
+ }
2122
+ if (lastInput && nextOnInput === true) {
2123
+ lastInput.onInput = NEXT_ON_INPUT;
2124
+ }
2125
+ }
2126
+
2127
+ return merge(
2128
+ stepDefaults(name, stepKey),
2129
+ {
2130
+ children: [
2131
+ {
2132
+ $formkit: 'group',
2133
+ id: name,
2134
+ name: name,
2135
+ nextStepMap: nextStepMap,
2136
+ autoFocus: autoFocus,
2137
+ children: inputs
2138
+ }
2139
+ ]
2140
+ }
2141
+ )
2142
+ }
2143
+
2144
+ // Single question step
2145
+ function sqstep(name, input, defaultHeadline, updates = {}) {
2146
+ return step(
2147
+ name,
2148
+ [
2149
+ verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
2150
+ ...Array.isArray(input) ? input : [input],
2151
+ ],
2152
+ updates.nextOnEnter,
2153
+ typeof updates.nextOnInput === 'undefined' ? true : updates.nextOnInput,
2154
+ updates.stepKey,
2155
+ updates.nextStepMap
2156
+ )
2157
+ }
2158
+
2159
+ function commentsWithBankruptcy(updates = {}) {
2160
+ return step(
2161
+ 'commentsWithBankruptcy',
2162
+ [
2163
+ commentsStepHeadline(updates),
2164
+ comments({
2165
+ label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL : updates.label,
2166
+ placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
2167
+ inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
2168
+ }, updates.scope),
2169
+ // TODO: needs scope support
2170
+ bankruptcyCrossSell(),
2171
+ {
2172
+ $el: 'div',
2173
+ if: '$get(CrossSell_Bankruptcy).value == true',
2174
+ children: [
2175
+ comments({
2176
+ label: 'Bankruptcy or debt details:',
2177
+ placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
2178
+ inputClass: '!t-h-16'
2179
+ }, 'CrossSell:Bankruptcy')
2180
+ ],
2181
+ }
2182
+ ],
2183
+ false // nextOnEnter
2184
+ )
2185
+ }
2186
+
2187
+ function contactInfo(updates = {}) {
2188
+ return step(
2189
+ 'contactInfo',
2190
+ [
2191
+ contactStepHeadline(updates),
2192
+ contactStepSubHeadline(updates),
2193
+ trustedFormScript(),
2194
+ email(updates.scope),
2195
+ phone(updates.scope),
2196
+ TCPAConsent(updates.scope),
2197
+ secureIcon()
2198
+ ],
2199
+ false, // nextOnEnter
2200
+ )
2201
+ }
2202
+
2203
+ function firstAndLastV3(updates = {}, scope) {
2204
+ return step(
2205
+ 'firstAndLast',
2206
+ [
2207
+ firstAndLastStepHeadline({
2208
+ headline: updates.headline ?? 'Who is looking for help?',
2209
+ headlineClass: updates.headlineClass
2210
+ }),
2211
+ verticalStepSubHeadline({
2212
+ subheadline: updates.subheadline ?? 'Note: we never share info without consent',
2213
+ subheadlineClass: '!t-text-sm !t-text-gray-500'
2214
+ }),
2215
+ firstName(scope),
2216
+ lastName(scope)
2217
+ ],
2218
+ updates.nextOnEnter
2219
+ )
2220
+ }
2221
+
2222
+
2223
+ function autoAndCarAccidentCrossSellQuestions(updates = {}) {
2224
+ return step(
2225
+ 'autoAndCarAccidentCrossSellQuestions',
2226
+ [
2227
+ crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
2228
+ crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your accident:' }),
2229
+ AutoAndCarAccidentsQuestions("true", 'CrossSell:Auto_and_Car_Accidents'),
2230
+ comments(
2231
+ {
2232
+ label: 'Accident Description:',
2233
+ placeholder: 'Please describe your accident in a few words...',
2234
+ inputClass: '!t-h-16'
2235
+ },
2236
+ 'CrossSell:Auto_and_Car_Accidents'
2237
+ )
2238
+ ],
2239
+ updates.nextOnEnter
2240
+ )
2241
+ }
2242
+
2243
+ function childCustodyCrossSellQuestions(updates = {}) {
2244
+ return step(
2245
+ 'childCustodyCrossSellQuestions',
2246
+ [
2247
+ crossSellQuestionsStepHeadline({ headline: 'Child Custody Information' }),
2248
+ ChildCustodyQuestions("true", 'CrossSell:Child_Custody'),
2249
+ comments(
2250
+ {
2251
+ label: 'Description:',
2252
+ placeholder: 'Please describe your situation in a few words...',
2253
+ inputClass: '!t-h-16'
2254
+ },
2255
+ 'CrossSell:Child_Custody'
2256
+ )
2257
+ ],
2258
+ updates.nextOnEnter
2259
+ )
2260
+ }
2261
+
2262
+ function divorceAndSeparationCrossSellQuestions(updates = {}) {
2263
+ return step(
2264
+ 'divorceAndSeparationCrossSellQuestions',
2265
+ [
2266
+ crossSellQuestionsStepHeadline({ headline: 'Divorce or Separation Information' }),
2267
+ DivorceQuestions("true", 'CrossSell:Divorce_and_Separation'),
2268
+ comments(
2269
+ {
2270
+ label: 'Description:',
2271
+ placeholder: 'Please describe your situation in a few words...',
2272
+ inputClass: '!t-h-16'
2273
+ },
2274
+ 'CrossSell:Divorce_and_Separation'
2275
+ )
2276
+ ],
2277
+ updates.nextOnEnter
2278
+ )
2279
+ }
2280
+
2281
+ function duiAndDWICrossSellQuestions(updates = {}) {
2282
+ return step(
2283
+ 'duiAndDWICrossSellQuestions',
2284
+ [
2285
+ crossSellQuestionsStepHeadline({ headline: 'About Your DUI/DWI' }),
2286
+ DUIAndDWIQuestions("true", 'CrossSell:DUI_and_DWI'),
2287
+ comments(
2288
+ {
2289
+ label: 'Incident Description:',
2290
+ placeholder: 'Please describe your incident in a few words...',
2291
+ inputClass: '!t-h-16'
2292
+ },
2293
+ 'CrossSell:DUI_and_DWI'
2294
+ )
2295
+ ],
2296
+ updates.nextOnEnter
2297
+ )
2298
+ }
2299
+
2300
+ function ssdiCrossSellQuestions(updates = {}) {
2301
+ return step(
2302
+ 'ssdiCrossSellQuestions',
2303
+ [
2304
+ crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
2305
+ crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your disability:' }),
2306
+ SocialSecurityDisabilityAndInsuranceQuestions("true", 'CrossSell:Social_Security_Disability_and_Insurance'),
2307
+ comments(
2308
+ {
2309
+ label: 'Description:',
2310
+ placeholder: 'Please describe your situation in a few words...',
2311
+ inputClass: '!t-h-16'
2312
+ },
2313
+ 'CrossSell:Social_Security_Disability_and_Insurance'
2314
+ )
2315
+ ],
2316
+ updates.nextOnEnter
2317
+ )
2318
+ }
2319
+
2320
+ function personalInjuryCrossSellQuestions(updates = {}) {
2321
+ return step(
2322
+ 'personalInjuryCrossSellQuestions',
2323
+ [
2324
+ crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Compensation' }),
2325
+ crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
2326
+ PersonalInjuryQuestions("true", 'CrossSell:Personal_Injury'),
2327
+ comments(
2328
+ {
2329
+ label: 'Injury Description:',
2330
+ placeholder: 'Please describe your injury in a few words...',
2331
+ inputClass: '!t-h-16'
2332
+ },
2333
+ 'CrossSell:Personal_Injury'
2334
+ )
2335
+ ],
2336
+ updates.nextOnEnter
2337
+ )
2338
+ }
2339
+
2340
+ function powerOfAttorneyCrossSellQuestions(updates = {}) {
2341
+ return step(
2342
+ 'powerOfAttorneyCrossSellQuestions',
2343
+ [
2344
+ crossSellQuestionsStepHeadline({ headline: 'Power of Attorney Information' }),
2345
+ PowerofAttorneyQuestions("true", 'CrossSell:Power_of_Attorney'),
2346
+ comments(
2347
+ {
2348
+ label: 'Description:',
2349
+ placeholder: 'Please describe your situation in a few words...',
2350
+ inputClass: '!t-h-16'
2351
+ },
2352
+ 'CrossSell:Power_of_Attorney'
2353
+ )
2354
+ ],
2355
+ updates.nextOnEnter
2356
+ )
2357
+ }
2358
+
2359
+ function willsAndTrustsCrossSellQuestions(updates = {}) {
2360
+ return step(
2361
+ 'willsAndTrustsCrossSellQuestions',
2362
+ [
2363
+ crossSellQuestionsStepHeadline({ headline: 'Will or Trust Information' }),
2364
+ WillsAndTrustsQuestions("true", 'CrossSell:Wills_and_Trusts'),
2365
+ comments(
2366
+ {
2367
+ label: 'Description:',
2368
+ placeholder: 'Please describe your situation in a few words...',
2369
+ inputClass: '!t-h-16'
2370
+ },
2371
+ 'CrossSell:Wills_and_Trusts'
2372
+ )
2373
+ ],
2374
+ updates.nextOnEnter
2375
+ )
2376
+ }
2377
+
2378
+ function workersCompensationCrossSellQuestions(updates = {}) {
2379
+ return step(
2380
+ 'workersCompensationCrossSellQuestions',
2381
+ [
2382
+ crossSellQuestionsStepHeadline({ headline: 'You May Be Entitled To Benefits' }),
2383
+ crossSellQuestionsStepSubHeadline({ subheadline: 'Tell us about your injury:' }),
2384
+ WorkersCompensationQuestions("true", 'CrossSell:Workers_Compensation'),
2385
+ comments(
2386
+ {
2387
+ label: 'Injury Description:',
2388
+ placeholder: 'Please describe your injury in a few words...',
2389
+ inputClass: '!t-h-16'
2390
+ },
2391
+ 'CrossSell:Workers_Compensation'
2392
+ )
2393
+ ],
2394
+ updates.nextOnEnter
2395
+ )
2396
+ }
2397
+
2398
+ function legalCrossSells(updates = {}) {
2399
+ return step(
2400
+ 'legalCrossSells',
2401
+ [
2402
+ legalCrossSellsStepHeadline(updates),
2403
+ legalCrossSells$1(),
2404
+ ],
2405
+ updates.nextOnEnter,
2406
+ false,
2407
+ // Note: we should probably scope this stepKey to this step name
2408
+ '$get(Type_Of_Legal_Problem).value'
2409
+ )
2410
+ }
2411
+
2412
+ function generalTOLP(updates = {}) {
2413
+ return step(
2414
+ 'generalTOLP',
2415
+ [
2416
+ generalTOLPCenter(updates.input),
2417
+ ],
2418
+ updates.nextOnEnter,
2419
+ updates.nextOnInput,
2420
+ updates.stepKey,
2421
+ updates.nextStepMap
2422
+ )
2423
+ }
2424
+
2425
+ function zipcode(updates = {}) {
2426
+ return sqstep(
2427
+ 'zipcode',
2428
+ zipcodeCenter(updates, updates.scope),
2429
+ 'Please verify your Zip Code',
2430
+ updates
2431
+ )
2432
+ }
2433
+
2434
+ function maritalStatus(updates = {}) {
2435
+ return sqstep(
2436
+ 'maritalStatus',
2437
+ maritalStatusCenter(),
2438
+ 'What is your marital status?',
2439
+ updates
2440
+ )
2441
+ }
2442
+
2443
+ function civilLawsuitTOLPDisplay(updates = {}) {
2444
+ return sqstep(
2445
+ 'civilLawsuitTOLPDisplay',
2446
+ civilLawsuitTOLPDisplayCenter(),
2447
+ 'What type of lawsuit would you like to file?',
2448
+ updates
2449
+ )
2450
+ }
2451
+
2452
+ function criminalTOLPDisplay(updates = {}) {
2453
+ return sqstep(
2454
+ 'criminalTOLPDisplay',
2455
+ criminalTOLPDisplayCenter(),
2456
+ 'Which type of criminal issue?',
2457
+ updates
2458
+ )
2459
+ }
2460
+
2461
+ function employmentAndWorkplaceTOLPDisplay(updates = {}) {
2462
+ return sqstep(
2463
+ 'employmentAndWorkplaceTOLPDisplay',
2464
+ employmentAndWorkplaceTOLPDisplayCenter(),
2465
+ 'What type of workplace issue?',
2466
+ updates
2467
+ )
2468
+ }
2469
+
2470
+ function landlordTenantIssue(updates = {}) {
2471
+ return sqstep(
2472
+ 'landlordTenantIssue',
2473
+ landlordTenantIssueRadioCenter(),
2474
+ 'What is the landlord / tenant issue?',
2475
+ updates
2476
+ )
2477
+ }
2478
+
2479
+ function realEstateTOLPDisplay(updates = {}) {
2480
+ return sqstep(
2481
+ 'realEstateTOLPDisplay',
2482
+ realEstateTOLPDisplayCenter(),
2483
+ 'What type of real estate issue?',
2484
+ updates
2485
+ )
2486
+ }
2487
+
2488
+ function haveChildren(updates = {}) {
2489
+ return sqstep(
2490
+ 'haveChildren',
2491
+ haveChildrenCenter(),
2492
+ 'Do you have children?',
2493
+ updates
2494
+ )
2495
+ }
2496
+
2497
+ function childRelationship(updates = {}) {
2498
+ return sqstep(
2499
+ 'childRelationship',
2500
+ childRelationshipCenter(),
2501
+ 'Your relationship to the children:',
2502
+ updates
2503
+ )
2504
+ }
2505
+
2506
+ function childHome(updates = {}) {
2507
+ return sqstep(
2508
+ 'childHome',
2509
+ childHomeCenter(),
2510
+ 'Who do the children currently live with?',
2511
+ updates
2512
+ )
2513
+ }
2514
+
2515
+ function childPrimaryCaregiver(updates = {}) {
2516
+ return sqstep(
2517
+ 'childPrimaryCaregiver',
2518
+ childPrimaryCaregiverCenter(),
2519
+ 'Who is the primary caregiver?',
2520
+ updates
2521
+ )
2522
+ }
2523
+
2524
+ function haveAttorney(updates = {}) {
2525
+ return sqstep(
2526
+ 'haveAttorney',
2527
+ haveAttorneyCenter(updates.scope),
2528
+ 'Already working with an attorney?',
2529
+ updates
2530
+ )
2531
+ }
2532
+
2533
+ function degreeOfInterest(updates = {}) {
2534
+ return sqstep(
2535
+ 'degreeOfInterest',
2536
+ degreeOfInterestCenter(),
2537
+ 'Could you pay if your issue could be resolved?',
2538
+ updates
2539
+ )
2540
+ }
2541
+
2542
+ function lawyerPaymentMethod(updates = {}) {
2543
+ return sqstep(
2544
+ 'lawyerPaymentMethod',
2545
+ lawyerPaymentMethodCenter(),
2546
+ 'How would you pay if a solution required it?',
2547
+ updates
2548
+ )
2549
+ }
2550
+
2551
+ function incidentDate(updates = {}) {
2552
+ return sqstep(
2553
+ 'incidentDate',
2554
+ incidentDateCenter(updates.scope),
2555
+ 'When did the incident occur?',
2556
+ updates
2557
+ )
2558
+ }
2559
+
2560
+ function doctorTreatment(updates = {}) {
2561
+ return sqstep(
2562
+ 'doctorTreatment',
2563
+ doctorTreatmentCenter(updates.scope),
2564
+ 'Have you seen a doctor about this?',
2565
+ updates
2566
+ )
2567
+ }
2568
+
2569
+ function medicalMalpracticeInjuries(updates = {}) {
2570
+ return sqstep(
2571
+ 'medicalMalpracticeInjuries',
2572
+ medicalMalpracticeInjuriesCenter(),
2573
+ 'What injuries did you suffer?',
2574
+ updates
2575
+ )
2576
+ }
2577
+
2578
+ function atFault(updates = {}) {
2579
+ return sqstep(
2580
+ 'atFault',
2581
+ atFaultCenter(updates.scope),
2582
+ 'Were you at fault?',
2583
+ updates
2584
+ )
2585
+ }
2586
+
2587
+ function primaryInjury(updates = {}) {
2588
+ return sqstep(
2589
+ 'primaryInjury',
2590
+ primaryInjuryCenter(updates.scope),
2591
+ 'What was the primary injury?',
2592
+ updates
2593
+ )
2594
+ }
2595
+
2596
+ function policeReportFiled(updates = {}) {
2597
+ return sqstep(
2598
+ 'policeReportFiled',
2599
+ policeReportFiledCenter(updates.scope),
2600
+ 'Was a police report filed?',
2601
+ updates
2602
+ )
2603
+ }
2604
+
2605
+ function totalMonthlyIncome(updates = {}) {
2606
+ return sqstep(
2607
+ 'totalMonthlyIncome',
2608
+ totalMonthlyIncomeCenter(),
2609
+ 'What is your total monthly income?',
2610
+ updates
2611
+ )
2612
+ }
2613
+
2614
+ function totalDebt(updates = {}) {
2615
+ return sqstep(
2616
+ 'totalDebt',
2617
+ totalDebtCenter(),
2618
+ 'What is your total debt?',
2619
+ updates
2620
+ )
2621
+ }
2622
+
2623
+ function ownRealEstate(updates = {}) {
2624
+ return sqstep(
2625
+ 'ownRealEstate',
2626
+ ownRealEstateCenter(),
2627
+ 'Do you own real estate?',
2628
+ updates
2629
+ )
2630
+ }
2631
+
2632
+ function valueOfAssets(updates = {}) {
2633
+ return sqstep(
2634
+ 'valueOfAssets',
2635
+ valueOfAssetsCenter(),
2636
+ 'What is the value of your assets?',
2637
+ updates
2638
+ )
2639
+ }
2640
+
2641
+ function businessServices(updates = {}) {
2642
+ return sqstep(
2643
+ 'businessServices',
2644
+ businessServicesCenter(),
2645
+ 'What legal services do you need?',
2646
+ updates
2647
+ )
2648
+ }
2649
+
2650
+ function businessType(updates = {}) {
2651
+ return sqstep(
2652
+ 'businessType',
2653
+ businessTypeCenter(),
2654
+ 'Is the business public or private?',
2655
+ updates
2656
+ )
2657
+ }
2658
+
2659
+ function employerType(updates = {}) {
2660
+ return sqstep(
2661
+ 'employerType',
2662
+ employerTypeCenter(),
2663
+ 'What type of employer is it?',
2664
+ updates
2665
+ )
2666
+ }
2667
+
2668
+ function employeeAtCompany(updates = {}) {
2669
+ return sqstep(
2670
+ 'employeeAtCompany',
2671
+ employeeAtCompanyCenter(),
2672
+ 'Do you/they still work at the company?',
2673
+ updates
2674
+ )
2675
+ }
2676
+
2677
+ function numEmployeesOfBusiness(updates = {}) {
2678
+ return sqstep(
2679
+ 'numEmployeesOfBusiness',
2680
+ numEmployeesOfBusinessCenter(),
2681
+ 'How many employees does the business have?',
2682
+ updates
2683
+ )
2684
+ }
2685
+
2686
+ function civilRightsType(updates = {}) {
2687
+ return sqstep(
2688
+ 'civilRightsType',
2689
+ civilRightsTypeCenter(),
2690
+ 'How were your rights violated?',
2691
+ updates
2692
+ )
2693
+ }
2694
+
2695
+ function lawsuitOtherParty(updates = {}) {
2696
+ return sqstep(
2697
+ 'lawsuitOtherParty',
2698
+ lawsuitOtherPartyCenter(),
2699
+ 'What describes the other party in the lawsuit?',
2700
+ updates
2701
+ )
2702
+ }
2703
+
2704
+ function crimeCommittedDate(updates = {}) {
2705
+ return sqstep(
2706
+ 'crimeCommittedDate',
2707
+ crimeCommittedDateCenter(),
2708
+ 'When was the alleged crime?',
2709
+ updates
2710
+ )
2711
+ }
2712
+
2713
+ function roleInMatterCriminal(updates = {}) {
2714
+ return sqstep(
2715
+ 'roleInMatterCriminal',
2716
+ roleInMatterCriminalCenter(),
2717
+ 'What is your role in this matter?',
2718
+ updates
2719
+ )
2720
+ }
2721
+
2722
+ function pendingCharges(updates = {}) {
2723
+ return sqstep(
2724
+ 'pendingCharges',
2725
+ pendingChargesCenter(),
2726
+ 'Do you have any pending charges?',
2727
+ updates
2728
+ )
2729
+ }
2730
+
2731
+ function consumerLawyerType(updates = {}) {
2732
+ return sqstep(
2733
+ 'consumerLawyerType',
2734
+ consumerLawyerTypeCenter(),
2735
+ 'What best describes your issue?',
2736
+ updates
2737
+ )
2738
+ }
2739
+
2740
+ function bloodContentAlcoholTest(updates = {}) {
2741
+ return sqstep(
2742
+ 'bloodContentAlcoholTest',
2743
+ bloodContentAlcoholTestCenter(),
2744
+ 'What was your blood alcohol content?',
2745
+ updates
2746
+ )
2747
+ }
2748
+
2749
+ function priorAlcoholOffenses(updates = {}) {
2750
+ return sqstep(
2751
+ 'priorAlcoholOffenses',
2752
+ priorAlcoholOffensesCenter(),
2753
+ 'Do you have prior alcohol offenses?',
2754
+ updates
2755
+ )
2756
+ }
2757
+
2758
+ function typeOfAlcoholTest(updates = {}) {
2759
+ return sqstep(
2760
+ 'typeOfAlcoholTest',
2761
+ typeOfAlcoholTestCenter(),
2762
+ 'What type of alcohol test was performed?',
2763
+ updates
2764
+ )
2765
+ }
2766
+
2767
+ function driversLicenseType(updates = {}) {
2768
+ return sqstep(
2769
+ 'driversLicenseType',
2770
+ driversLicenseTypeCenter(),
2771
+ 'What type of license do you have?',
2772
+ updates
2773
+ )
2774
+ }
2775
+
2776
+ function trafficViolations(updates = {}) {
2777
+ return sqstep(
2778
+ 'trafficViolations',
2779
+ trafficViolationsCenter(),
2780
+ 'What type of traffic violation?',
2781
+ updates
2782
+ )
2783
+ }
2784
+
2785
+ function haveCourtDate(updates = {}) {
2786
+ return sqstep(
2787
+ 'haveCourtDate',
2788
+ haveCourtDateCenter(),
2789
+ 'Do you have a court date?',
2790
+ updates
2791
+ )
2792
+ }
2793
+
2794
+ function applicantOccupation(updates = {}) {
2795
+ return sqstep(
2796
+ 'applicantOccupation',
2797
+ applicantOccupationCenter(),
2798
+ 'What is the applicant\'s occupation?',
2799
+ updates
2800
+ )
2801
+ }
2802
+
2803
+ function applicantAge(updates = {}) {
2804
+ return sqstep(
2805
+ 'applicantAge',
2806
+ applicantAgeCenter(),
2807
+ 'What is the applicant\'s age?',
2808
+ updates
2809
+ )
2810
+ }
2811
+
2812
+ function applicantLTDisabilityPolicy(updates = {}) {
2813
+ return sqstep(
2814
+ 'applicantLTDisabilityPolicy',
2815
+ applicantLTDisabilityPolicyCenter(),
2816
+ 'Does the applicant have a disability policy?',
2817
+ updates
2818
+ )
2819
+ }
2820
+
2821
+ function applicantDisabilityHowObtain(updates = {}) {
2822
+ return sqstep(
2823
+ 'applicantDisabilityHowObtain',
2824
+ applicantDisabilityHowObtainCenter(),
2825
+ 'How did the applicant obtain the disability policy?',
2826
+ updates
2827
+ )
2828
+ }
2829
+
2830
+ function applicantPreviouslyAppliedLtdBenefits(updates = {}) {
2831
+ return sqstep(
2832
+ 'applicantPreviouslyAppliedLtdBenefits',
2833
+ applicantPreviouslyAppliedLtdBenefitsCenter(),
2834
+ 'Has the applicant previously applied for long-term disability benefits?',
2835
+ updates
2836
+ )
2837
+ }
2838
+
2839
+ function applicantReceivedDisabilityBenefits(updates = {}) {
2840
+ return sqstep(
2841
+ 'applicantReceivedDisabilityBenefits',
2842
+ applicantReceivedDisabilityBenefitsCenter(),
2843
+ 'Has the applicant received disability benefits for this claim?',
2844
+ updates
2845
+ )
2846
+ }
2847
+
2848
+ function applicantMonthlySalary(updates = {}) {
2849
+ return sqstep(
2850
+ 'applicantMonthlySalary',
2851
+ applicantMonthlySalaryCenter(),
2852
+ 'Applicant\'s monthly pay when last working:',
2853
+ updates
2854
+ )
2855
+ }
2856
+
2857
+ function claimStatus(updates = {}) {
2858
+ return sqstep(
2859
+ 'claimStatus',
2860
+ claimStatusCenter(),
2861
+ 'What is the status of the claim?',
2862
+ updates
2863
+ )
2864
+ }
2865
+
2866
+ function disabilityConditionStopWork(updates = {}) {
2867
+ return sqstep(
2868
+ 'disabilityConditionStopWork',
2869
+ disabilityConditionStopWorkCenter(),
2870
+ 'Do you expect to be out of work for at least a year?',
2871
+ updates
2872
+ )
2873
+ }
2874
+
2875
+ function disabilityWorkHistory(updates = {}) {
2876
+ return sqstep(
2877
+ 'disabilityWorkHistory',
2878
+ disabilityWorkHistoryCenter(),
2879
+ 'Have you had a full-time job in the past 5 years?',
2880
+ updates
2881
+ )
2882
+ }
2883
+
2884
+ function socialSecurityDisabilityReceivingBenefits(updates = {}) {
2885
+ return sqstep(
2886
+ 'socialSecurityDisabilityReceivingBenefits',
2887
+ socialSecurityDisabilityReceivingBenefitsCenter(),
2888
+ 'Are you receiving Social Security Disability benefits?',
2889
+ updates
2890
+ )
2891
+ }
2892
+
2893
+ function typeOfAssets(updates = {}) {
2894
+ if (typeof updates.nextOnInput === 'undefined') {
2895
+ updates.nextOnInput = false;
2896
+ }
2897
+ return sqstep(
2898
+ 'typeOfAssets',
2899
+ typeOfAssetsCenter(),
2900
+ 'What type of assets are involved?',
2901
+ updates
2902
+ )
2903
+ }
2904
+
2905
+ function roleInMatterProbate(updates = {}) {
2906
+ return sqstep(
2907
+ 'roleInMatterProbate',
2908
+ roleInMatterProbateCenter(),
2909
+ 'What is your role in this matter?',
2910
+ updates
2911
+ )
2912
+ }
2913
+
2914
+ function estateLegalServicesNeeded(updates = {}) {
2915
+ return sqstep(
2916
+ 'estateLegalServicesNeeded',
2917
+ estateLegalServicesNeededCenter(),
2918
+ 'What legal services are needed?',
2919
+ updates
2920
+ )
2921
+ }
2922
+
2923
+ function realEstateArea(updates = {}) {
2924
+ return sqstep(
2925
+ 'realEstateArea',
2926
+ realEstateAreaCenter(),
2927
+ 'What area of real estate?',
2928
+ updates
2929
+ )
2930
+ }
2931
+
2932
+ function typeOfProperty(updates = {}) {
2933
+ return sqstep(
2934
+ 'typeOfProperty',
2935
+ typeOfPropertyCenter(),
2936
+ 'What type of property is involved?',
2937
+ updates
2938
+ )
2939
+ }
2940
+
2941
+ function amountPaymentsPastDue(updates = {}) {
2942
+ return sqstep(
2943
+ 'amountPaymentsPastDue',
2944
+ amountPaymentsPastDueCenter(),
2945
+ 'Total amount of payments past due:',
2946
+ updates
2947
+ )
2948
+ }
2949
+
2950
+ function loanAmount(updates = {}) {
2951
+ return sqstep(
2952
+ 'loanAmount',
2953
+ loanAmountCenter(),
2954
+ 'Total amount of the loan:',
2955
+ updates
2956
+ )
2957
+ }
2958
+
2959
+ function defaultNotice(updates = {}) {
2960
+ return sqstep(
2961
+ 'defaultNotice',
2962
+ defaultNoticeCenter(),
2963
+ 'Have you received a default notice from the lender?',
2964
+ updates
2965
+ )
2966
+ }
2967
+
2968
+ function wouldLikeLawyerTo(updates = {}) {
2969
+ return sqstep(
2970
+ 'wouldLikeLawyerTo',
2971
+ wouldLikeLawyerToCenter(),
2972
+ 'I would like the lawyer to:',
2973
+ updates
2974
+ )
2975
+ }
2976
+
2977
+ function countryOfCitizenship(updates = {}) {
2978
+ return sqstep(
2979
+ 'countryOfCitizenship',
2980
+ countryOfCitizenshipCenter(),
2981
+ 'What is your current country of citizenship?',
2982
+ updates
2983
+ )
2984
+ }
2985
+
2986
+ function immigrationLocation(updates = {}) {
2987
+ return sqstep(
2988
+ 'immigrationLocation',
2989
+ immigrationLocationCenter(),
2990
+ 'Where are you migrating to?',
2991
+ updates
2992
+ )
2993
+ }
2994
+
2995
+ function immigrationEntry(updates = {}) {
2996
+ return sqstep(
2997
+ 'immigrationEntry',
2998
+ immigrationEntryCenter(),
2999
+ 'How are you trying to enter the country?',
3000
+ updates
3001
+ )
3002
+ }
3003
+
3004
+ function immigrationType(updates = {}) {
3005
+ return sqstep(
3006
+ 'immigrationType',
3007
+ immigrationTypeCenter(),
3008
+ 'What type of immigration issue?',
3009
+ updates
3010
+ )
3011
+ }
3012
+
3013
+ function immigrationStatus(updates = {}) {
3014
+ return sqstep(
3015
+ 'immigrationStatus',
3016
+ immigrationStatusCenter(),
3017
+ 'Current statue of the immigration case:',
3018
+ updates
3019
+ )
3020
+ }
3021
+
3022
+ function immigrationDetails(updates = {}) {
3023
+ return sqstep(
3024
+ 'immigrationDetails',
3025
+ immigrationDetailsCenter(),
3026
+ 'Where is the person seeking immigration located?',
3027
+ updates
3028
+ )
3029
+ }
3030
+
3031
+ function landlordTenantParty(updates = {}) {
3032
+ return sqstep(
3033
+ 'landlordTenantParty',
3034
+ landlordTenantPartyCenter(),
3035
+ 'I am the:',
3036
+ updates
3037
+ )
3038
+ }
3039
+
3040
+ function patentAssistanceType(updates = {}) {
3041
+ return sqstep(
3042
+ 'patentAssistanceType',
3043
+ patentAssistanceTypeCenter(),
3044
+ 'What type of assistance do you need?',
3045
+ updates
3046
+ )
3047
+ }
3048
+
3049
+ function patentFor(updates = {}) {
3050
+ return sqstep(
3051
+ 'patentFor',
3052
+ patentForCenter(),
3053
+ 'What is the patent for?',
3054
+ updates
3055
+ )
3056
+ }
3057
+
3058
+ function veteransDisabilityRelationship(updates = {}) {
3059
+ return sqstep(
3060
+ 'veteransDisabilityRelationship',
3061
+ veteransDisabilityRelationshipCenter(),
3062
+ 'What is your relationship to the applicant?',
3063
+ updates
3064
+ )
3065
+ }
3066
+
3067
+ function veteransDisabilityInjured(updates = {}) {
3068
+ return sqstep(
3069
+ 'veteransDisabilityInjured',
3070
+ veteransDisabilityInjuredCenter(),
3071
+ 'Is the condition or injury related to military service?',
3072
+ updates
3073
+ )
3074
+ }
3075
+
3076
+ function veteransDisabilityConditions(updates = {}) {
3077
+ return sqstep(
3078
+ 'veteransDisabilityConditions',
3079
+ veteransDisabilityConditionsCenter(),
3080
+ 'What conditions or injuries are applicable?',
3081
+ updates
3082
+ )
3083
+ }
3084
+
3085
+ function veteransDisabilityApplied(updates = {}) {
3086
+ return sqstep(
3087
+ 'veteransDisabilityApplied',
3088
+ veteransDisabilityAppliedCenter(),
3089
+ 'Has the applicant applied for VA disability benefits?',
3090
+ updates
3091
+ )
3092
+ }
3093
+
3094
+ function criminalChargeType(updates = {}) {
3095
+ return sqstep(
3096
+ 'criminalChargeType',
3097
+ criminalChargeTypeCenter(),
3098
+ 'What type of criminal charge?',
3099
+ updates
3100
+ )
3101
+ }
3102
+
3103
+ function taxProblemDetails(updates = {}) {
3104
+ return sqstep(
3105
+ 'taxProblemDetails',
3106
+ taxProblemDetailsCenter(),
3107
+ 'Details of the tax problem:',
3108
+ updates
3109
+ )
3110
+ }
3111
+
3112
+ function taxLevel(updates = {}) {
3113
+ return sqstep(
3114
+ 'taxLevel',
3115
+ taxLevelCenter(),
3116
+ 'What level of tax issue?',
3117
+ updates
3118
+ )
3119
+ }
3120
+
3121
+ function taxIssueType(updates = {}) {
3122
+ return sqstep(
3123
+ 'taxIssueType',
3124
+ taxIssueTypeCenter(),
3125
+ 'What type of tax issue?',
3126
+ updates
3127
+ )
3128
+ }
3129
+
3130
+ function causeOfInjury(updates = {}) {
3131
+ return sqstep(
3132
+ 'causeOfInjury',
3133
+ causeOfInjuryCenter(),
3134
+ 'What was the cause of the injury?',
3135
+ updates
3136
+ )
3137
+ }
3138
+
3139
+ function causeOfDeath(updates = {}) {
3140
+ return sqstep(
3141
+ 'causeOfDeath',
3142
+ causeOfDeathCenter(),
3143
+ 'What was the cause of death?',
3144
+ updates
3145
+ )
3146
+ }
3147
+
3148
+ function relationshipToVictim(updates = {}) {
3149
+ return sqstep(
3150
+ 'relationshipToVictim',
3151
+ relationshipToVictimCenter(),
3152
+ 'What is your relationship to the victim?',
3153
+ updates
3154
+ )
3155
+ }
3156
+
3157
+ function criminalChargesFiled(updates = {}) {
3158
+ return sqstep(
3159
+ 'criminalChargesFiled',
3160
+ criminalChargesFiledCenter(),
3161
+ 'Have criminal charges been filed?',
3162
+ updates
3163
+ )
3164
+ }
3165
+
3166
+ const formNavigation = (updates = {}) => ({
3167
+ $el: 'div',
3168
+ attrs: {
3169
+ class: 'step-nav'
3170
+ },
3171
+ children: [
3172
+ {
3173
+ $formkit: 'button',
3174
+ name: 'back_button',
3175
+ onClick: '$setPreviousStep($prevStepFunc($get(form)))',
3176
+ children: 'Back',
3177
+ style: {
3178
+ if: '$activeStep === $firstStep()',
3179
+ then: 'visibility: hidden;'
3180
+ }
3181
+ },
3182
+ {
3183
+ $formkit: 'button',
3184
+ name: 'next_button',
3185
+ onClick: '$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))',
3186
+ children: {
3187
+ if: '$activeStep === $firstStep()',
3188
+ then: 'Start',
3189
+ else: 'Next'
3190
+ },
3191
+ outerClass: {
3192
+ if: '$activeStep === $lastStep()',
3193
+ then: 't-hidden',
3194
+ else: ''
3195
+ },
3196
+ style: {
3197
+ if: '$activeStep === $lastStep()',
3198
+ then: 'display: none;'
3199
+ }
3200
+ },
3201
+ {
3202
+ $formkit: 'submit',
3203
+ name: 'submit_button',
3204
+ label: updates.submitLabel || 'Submit',
3205
+ if: '$activeStep === $lastStep()',
3206
+ style: {
3207
+ if: '$activeStep !== $lastStep()',
3208
+ then: 'display: none;'
3209
+ }
3210
+ }
3211
+ ]
3212
+ });
3213
+
3214
+ const formDetails = () => ({
3215
+ $el: 'pre',
3216
+ if: '$urlParam("fdbg", "") == 1',
3217
+ children: [
3218
+ {
3219
+ $el: 'pre',
3220
+ children: '$stringify( $get(form).value )',
3221
+ attrs: {
3222
+ class: 't-text-xs',
3223
+ style: 'overflow: scroll'
3224
+ }
3225
+ },
3226
+ {
3227
+ $el: 'pre',
3228
+ children: ['activeStep: ', '$activeStep'],
3229
+ attrs: {
3230
+ class: 't-text-xs',
3231
+ style: 'overflow: scroll'
3232
+ }
3233
+ },
3234
+ {
3235
+ $el: 'pre',
3236
+ children: ['stepHistory: ', '$stepHistory'],
3237
+ attrs: {
3238
+ class: 't-text-xs',
3239
+ style: 'overflow: scroll'
3240
+ }
3241
+ },
3242
+ {
3243
+ $el: 'pre',
3244
+ children: ['stepQueue: ', '$stepQueue'],
3245
+ attrs: {
3246
+ class: 't-text-xs',
3247
+ style: 'overflow: scroll'
3248
+ }
3249
+ },
3250
+ {
3251
+ $el: 'pre',
3252
+ children: ['steps: ', '$stepKeys()'],
3253
+ attrs: {
3254
+ class: 't-text-xs',
3255
+ style: 'overflow: scroll'
3256
+ }
3257
+ }
3258
+ ]
3259
+ });
3260
+
3261
+ const formPropDefaults = {
3262
+ type: 'form',
3263
+ id: 'form',
3264
+ config: { validationVisibility: 'submit' },
3265
+ onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
3266
+ plugins: '$plugins',
3267
+ actions: false,
3268
+ anchorElement: 'form-anchor',
3269
+ useLocalStorage: true,
3270
+ prepop: {
3271
+ fromURL: true
3272
+ },
3273
+ errorCodes: {
3274
+ 403: { message: "An Error Occurred", abort: false },
3275
+ 409: { abort: false },
3276
+ 429: "An Error Occurred",
3277
+ 504: { message: "An Error Occurred", abort: false },
3278
+ },
3279
+ formClass: '!t-max-w-[40rem]'
3280
+ };
3281
+
3282
+ function filterMapByKey(obj, keyList) {
3283
+ return Object.fromEntries(
3284
+ Object.entries(obj).filter(([key]) => keyList.includes(key))
3285
+ );
3286
+ }
3287
+
3288
+ // export function filteredNextStepsMapLegal(keyList) {
3289
+ // const res = { Type_Of_Legal_Problem: filterMapByKey(nextStepsMapGeneralLegal["Type_Of_Legal_Problem"], keyList) }
3290
+ // res["*"] = nextStepsMapGeneralLegal["*"]
3291
+ // return res
3292
+ // }
3293
+
3294
+ function formProps(updates) {
3295
+ const props = merge(
3296
+ formPropDefaults,
3297
+ updates
3298
+ );
3299
+ if (props.formId && !props.name) {
3300
+ props.name = props.formId;
3301
+ }
3302
+ return props
3303
+ }
3304
+
3305
+ const metaDefaults = {
3306
+ tcpaLanguage: TCPA_LANGUAGE
3307
+ };
3308
+
3309
+ function metaProps(updates) {
3310
+ const data = merge(
3311
+ metaDefaults,
3312
+ updates
3313
+ );
3314
+ return {
3315
+ type: 'meta',
3316
+ data
3317
+ }
3318
+ }
3319
+
3320
+ function defaultMetaProps(tolps = null) {
3321
+ let commentsPlaceholders = TOLPCommentsPlaceholders;
3322
+ let finalHeadlines = TOLPFinalHeadlines;
3323
+ let finalSubHeadlines = TOLPFinalSubHeadlines;
3324
+ if (tolps) {
3325
+ commentsPlaceholders = filterMapByKey(TOLPCommentsPlaceholders, tolps);
3326
+ finalHeadlines = filterMapByKey(TOLPFinalHeadlines, tolps);
3327
+ finalSubHeadlines = filterMapByKey(TOLPFinalSubHeadlines, tolps);
3328
+ }
3329
+ return metaProps({
3330
+ defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC,
3331
+ commentsPlaceholders: commentsPlaceholders,
3332
+ defaultFinalHeadline: DEFAULT_FINAL_HEADLINE,
3333
+ finalHeadlines: finalHeadlines,
3334
+ defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE,
3335
+ finalSubHeadlines: finalSubHeadlines,
3336
+ })
3337
+ }
3338
+
3339
+ function dynamicSchemaNode(field = 'Type_Of_Legal_Problem') {
3340
+ return {
3341
+ $cmp: 'FormKitSchema',
3342
+ if: '$get(' + field + ').value',
3343
+ props: {
3344
+ schema: '$meta.dynamicSchema',
3345
+ data: '$buildData($meta)'
3346
+ }
3347
+ }
3348
+ }
3349
+
3350
+ const formAnchorDefaults = {
3351
+ $el: 'div',
3352
+ children: [
3353
+ {
3354
+ $el: 'div',
3355
+ attrs: {
3356
+ id: 'form-anchor',
3357
+ class: 't-absolute',
3358
+ style: { top: '-30px', left: 0 }
3359
+ }
3360
+ }
3361
+ ],
3362
+ attrs: {
3363
+ class: 't-relative'
3364
+ }
3365
+ };
3366
+
3367
+ function formAnchor(updates) {
3368
+ return merge(
3369
+ formAnchorDefaults,
3370
+ updates
3371
+ )
3372
+ }
3373
+
3374
+ const progressBarDefaults = {
3375
+ $el: 'div',
3376
+ attrs: {
3377
+ class: 't-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center',
3378
+ style: {
3379
+ if: '$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())',
3380
+ then: 'display: none'
3381
+ },
3382
+ },
3383
+ children: [
3384
+ {
3385
+ $el: 'div',
3386
+ attrs: {
3387
+ class: 't-flex t-justify-center'
3388
+ },
3389
+ children: [
3390
+ {
3391
+ $el: 'span',
3392
+ attrs: {
3393
+ id: 'progress-bar-text',
3394
+ class: 't-text-sm t-mb-1'
3395
+ },
3396
+ children: [
3397
+ "0% Complete"
3398
+ ]
3399
+ },
3400
+ ]
3401
+ },
3402
+ {
3403
+ $el: 'div',
3404
+ attrs: {
3405
+ class: 't-bg-gray-100 t-w-9/12 t-rounded'
3406
+ },
3407
+ children: [
3408
+ {
3409
+ $el: 'div',
3410
+ attrs: {
3411
+ id: 'progress-bar',
3412
+ class: 't-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]',
3413
+ style: {
3414
+ transition: 'width 0.5s ease'
3415
+ },
3416
+ },
3417
+ }
3418
+ ]
3419
+ }
3420
+ ]
3421
+ };
3422
+
3423
+ function progressBar(updates) {
3424
+ return merge(
3425
+ progressBarDefaults,
3426
+ updates
3427
+ )
3428
+ }
3429
+
3430
+ function headlineDefaults(updates = {}) {
3431
+ return {
3432
+ $el: 'h1',
3433
+ attrs: {
3434
+ class: 't-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3' + ' ' + (updates.headlineClass || '')
3435
+ }
3436
+ }
3437
+ }
3438
+
3439
+ function headline(updates = {}) {
3440
+ return merge(
3441
+ headlineDefaults(updates),
3442
+ updates
3443
+ )
3444
+ }
3445
+
3446
+ function subHeadlineDefaults(updates = {}) {
3447
+ return {
3448
+ $el: 'h3',
3449
+ attrs: {
3450
+ class: 't-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10' + ' ' + (updates.subheadlineClass || '')
3451
+ }
3452
+ }
3453
+ }
3454
+
3455
+ function subHeadline(updates = {}) {
3456
+ return merge(
3457
+ subHeadlineDefaults(updates),
3458
+ updates
3459
+ )
3460
+ }
3461
+
3462
+ function defaultSubHeadline() {
3463
+ return subHeadline({
3464
+ children: '$urlParam("shl", "Our Service is Fast and Free!")',
3465
+ if: '$activeStep === $firstStep()'
3466
+ })
3467
+ }
3468
+
3469
+ const hiddenInputsBase = [
3470
+ {
3471
+ $formkit: 'hidden',
3472
+ name: "gclid",
3473
+ value: null
3474
+ },
3475
+ {
3476
+ $formkit: 'hidden',
3477
+ name: "campaignid",
3478
+ value: null
3479
+ },
3480
+ {
3481
+ $formkit: 'hidden',
3482
+ name: "s",
3483
+ value: null
3484
+ }
3485
+ ];
3486
+
3487
+ const hiddenInputsLegal = [
3488
+ {
3489
+ $formkit: 'hidden',
3490
+ name: "vertical",
3491
+ value: "Legal"
3492
+ },
3493
+ {
3494
+ $formkit: 'hidden',
3495
+ name: "TCPA_Language",
3496
+ value: "$meta.tcpaLanguage"
3497
+ },
3498
+ ...hiddenInputsBase
3499
+ ];
3500
+
3501
+ const legalRedirectMapDefaults = {
3502
+ '*': LegalRedirectUrl()
3503
+ };
3504
+
3505
+
3506
+ function legalRedirectMap(updates) {
3507
+ return merge(
3508
+ legalRedirectMapDefaults,
3509
+ updates
3510
+ )
3511
+ }
3512
+
3513
+ const businessServicesOverrideMap = {
3514
+ 'Business_Services_Display': {
3515
+ "Business Formation": {
3516
+ 'Business_Services': 'Business Formation'
3517
+ },
3518
+ "Contracts": {
3519
+ 'Business_Services': 'Contracts'
3520
+ },
3521
+ "Insurance and Liability": {
3522
+ 'Business_Services': 'Insurance and Liability'
3523
+ },
3524
+ "Mergers and Acquisition": {
3525
+ 'Business_Services': 'Mergers and Acquisition'
3526
+ },
3527
+ "Regulatory Compliance": {
3528
+ 'Business_Services': 'Regulatory Compliance'
3529
+ },
3530
+ "Employee Dispute": {
3531
+ 'Business_Services': 'Employee Dispute'
3532
+ },
3533
+ "Advice and Consulting": {
3534
+ 'Business_Services': 'Other',
3535
+ },
3536
+ "Other": {
3537
+ 'Business_Services': 'Other'
3538
+ }
3539
+ },
3540
+ };
3541
+
3542
+ const patentsAndIPTOLPDisplayOverrideMap = {
3543
+ 'Copyrights': {
3544
+ 'Type_Of_Legal_Problem': 'Copyrights and Trademarks'
3545
+ },
3546
+ 'Trademarks': {
3547
+ 'Type_Of_Legal_Problem': 'Copyrights and Trademarks'
3548
+ },
3549
+ 'Patents': {
3550
+ 'Type_Of_Legal_Problem': 'Patents and Intellectual Property'
3551
+ },
3552
+ 'Business Lawyers': {
3553
+ 'Type_Of_Legal_Problem': 'Business Lawyers'
3554
+ },
3555
+ 'Business Consulting': {
3556
+ 'Type_Of_Legal_Problem': 'Business Lawyers'
3557
+ },
3558
+ 'Not Sure or Other': {
3559
+ 'Type_Of_Legal_Problem': 'Not Sure or Other'
3560
+ },
3561
+ };
3562
+
3563
+ const legalAllValueOverrideMap = {
3564
+ 'Civil_Defense': {
3565
+ 'Yes': {
3566
+ 'Type_Of_Legal_Problem': 'Defend a Lawsuit'
3567
+ },
3568
+ 'No': {
3569
+ 'Type_Of_Legal_Problem': 'File a Lawsuit'
3570
+ }
3571
+ },
3572
+ businessServicesOverrideMap,
3573
+ 'Type_Of_Legal_Problem_Display': {
3574
+ ...patentsAndIPTOLPDisplayOverrideMap,
3575
+ // Accidents and PI
3576
+ 'Auto Accident': {
3577
+ 'Type_Of_Legal_Problem': 'Auto and Car Accidents'
3578
+ },
3579
+ 'Dog Bite': {
3580
+ 'Type_Of_Legal_Problem': 'Personal Injury'
3581
+ },
3582
+ 'Slip and Fall': {
3583
+ 'Type_Of_Legal_Problem': 'Personal Injury'
3584
+ },
3585
+ 'Workplace Injury': {
3586
+ 'Type_Of_Legal_Problem': 'Workers Compensation'
3587
+ },
3588
+ 'Trucking Accident': {
3589
+ 'Type_Of_Legal_Problem': 'Auto and Car Accidents'
3590
+ },
3591
+ 'Motorcycle Accident': {
3592
+ 'Type_Of_Legal_Problem': 'Auto and Car Accidents',
3593
+ },
3594
+ 'Other Accidents or Injuries': {
3595
+ 'Type_Of_Legal_Problem': 'Personal Injury'
3596
+ },
3597
+ // Civil
3598
+ 'Automobile Accident': {
3599
+ 'Type_Of_Legal_Problem': 'Auto and Car Accidents'
3600
+ },
3601
+ 'Contract Disputes': {
3602
+ 'Type_Of_Legal_Problem': 'Business Lawyers'
3603
+ },
3604
+ 'Defamation and Slander': {
3605
+ 'Type_Of_Legal_Problem': 'File a Lawsuit'
3606
+ },
3607
+ 'Dog Bite': {
3608
+ 'Type_Of_Legal_Problem': 'Personal Injury'
3609
+ },
3610
+ 'Employment and Workplace': {
3611
+ 'Type_Of_Legal_Problem': 'Employment and Workplace'
3612
+ },
3613
+ 'Fraud': {
3614
+ 'Type_Of_Legal_Problem': 'Consumer Lawyers'
3615
+ },
3616
+ 'Medical Malpractice': {
3617
+ 'Type_Of_Legal_Problem': 'Medical Malpractice'
3618
+ },
3619
+ 'Personal Injury': {
3620
+ 'Type_Of_Legal_Problem': 'Personal Injury'
3621
+ },
3622
+ 'Property Damage': {
3623
+ 'Type_Of_Legal_Problem': 'Property Damage'
3624
+ },
3625
+ 'Small Claims': {
3626
+ 'Type_Of_Legal_Problem': 'File a Lawsuit'
3627
+ },
3628
+ 'Real Estate': {
3629
+ 'Type_Of_Legal_Problem': 'Real Estate'
3630
+ },
3631
+ 'Other (describe on next page)': {
3632
+ 'Type_Of_Legal_Problem': 'Not Sure or Other'
3633
+ },
3634
+ // Contracts
3635
+ 'Contract Creation': {
3636
+ 'Type_Of_Legal_Problem': 'Business Lawyers',
3637
+ 'Business_Services': 'Contracts'
3638
+ },
3639
+ 'Contract Enforcement': {
3640
+ 'Type_Of_Legal_Problem': 'Business Lawyers',
3641
+ 'Business_Services': 'Contracts'
3642
+ },
3643
+ 'Contract Cancellation': {
3644
+ 'Type_Of_Legal_Problem': 'Business Lawyers',
3645
+ 'Business_Services': 'Contracts'
3646
+ },
3647
+ 'Contract Fraud': {
3648
+ 'Type_Of_Legal_Problem': 'Business Lawyers',
3649
+ 'Business_Services': 'Contracts'
3650
+ },
3651
+ 'Breach of Contract': {
3652
+ 'Type_Of_Legal_Problem': 'Business Lawyers',
3653
+ 'Business_Services': 'Contracts'
3654
+ },
3655
+ 'Other Contract Issues': {
3656
+ 'Type_Of_Legal_Problem': 'Business Lawyers',
3657
+ 'Business_Services': 'Contracts'
3658
+ },
3659
+ // Criminal
3660
+ 'Criminal Defense': {
3661
+ 'Type_Of_Legal_Problem': 'Criminal and Felony'
3662
+ },
3663
+ 'Victim of a Crime': {
3664
+ 'Type_Of_Legal_Problem': 'Victim of a Crime'
3665
+ },
3666
+ 'DUI and DWI': {
3667
+ 'Type_Of_Legal_Problem': 'DUI and DWI'
3668
+ },
3669
+ 'Expungement': {
3670
+ 'Type_Of_Legal_Problem': 'Expungement'
3671
+ },
3672
+ 'Harassment': {
3673
+ 'Type_Of_Legal_Problem': 'Criminal and Felony'
3674
+ },
3675
+ 'Not Sure or Other': {
3676
+ 'Type_Of_Legal_Problem': 'Not Sure or Other'
3677
+ },
3678
+ // Employment and Workplace
3679
+ 'Workplace Harassment': {
3680
+ 'Type_Of_Legal_Problem': 'Workplace Harassment'
3681
+ },
3682
+ 'Workplace Discrimination': {
3683
+ 'Type_Of_Legal_Problem': 'Workplace Discrimination'
3684
+ },
3685
+ 'Wrongful Termination': {
3686
+ 'Type_Of_Legal_Problem': 'Wrongful Termination'
3687
+ },
3688
+ 'Payment Disputes': {
3689
+ 'Type_Of_Legal_Problem': 'Employment and Workplace'
3690
+ },
3691
+ 'Workers Compensation': {
3692
+ 'Type_Of_Legal_Problem': 'Workers Compensation'
3693
+ },
3694
+ 'Unemployment': {
3695
+ 'Type_Of_Legal_Problem': 'Unemployment'
3696
+ },
3697
+ 'Other Workplace Issues': {
3698
+ 'Type_Of_Legal_Problem': 'Employment and Workplace'
3699
+ },
3700
+ // Malpractice
3701
+ 'Attorney Malpractice': {
3702
+ 'Type_Of_Legal_Problem': 'Civil Lawsuit'
3703
+ },
3704
+ 'Other Malpractice Issues': {
3705
+ 'Type_Of_Legal_Problem': 'Not Sure or Other'
3706
+ },
3707
+ // Repossession
3708
+ 'Vehicle Repossession': {
3709
+ 'Type_Of_Legal_Problem': 'Bankruptcy'
3710
+ },
3711
+ 'Property Repossession': {
3712
+ 'Type_Of_Legal_Problem': 'Bankruptcy'
3713
+ },
3714
+ 'Other Repossession Issues': {
3715
+ 'Type_Of_Legal_Problem': 'Not Sure or Other'
3716
+ },
3717
+ // Real Estate
3718
+ 'Contracts and Agreements': {
3719
+ 'Type_Of_Legal_Problem': 'Real Estate'
3720
+ },
3721
+ 'Deeds, Liens, and Titles': {
3722
+ 'Type_Of_Legal_Problem': 'Real Estate'
3723
+ },
3724
+ 'Foreclosure': {
3725
+ 'Type_Of_Legal_Problem': 'Foreclosure'
3726
+ },
3727
+ 'Insurance': {
3728
+ 'Type_Of_Legal_Problem': 'Insurance'
3729
+ },
3730
+ 'Landlord and Tenant': {
3731
+ 'Type_Of_Legal_Problem': 'Landlord and Tenant',
3732
+ },
3733
+ 'Loans and Mortgages': {
3734
+ 'Type_Of_Legal_Problem': 'Real Estate',
3735
+ },
3736
+ 'Wills, Trusts, and Estates': {
3737
+ 'Type_Of_Legal_Problem': 'Wills and Trusts'
3738
+ },
3739
+ 'Property Damage': {
3740
+ 'Type_Of_Legal_Problem': 'Property Damage'
3741
+ },
3742
+ 'Other Real Estate Issues': {
3743
+ 'Type_Of_Legal_Problem': 'Real Estate'
3744
+ }
3745
+ }
3746
+ };
3747
+
3748
+ const TOLPCommentsPlaceholders = {
3749
+ 'Adoption': 'Example: "I need help with adoption forms"',
3750
+ 'Asbestos and Mesothelioma': 'Example: "I was exposed to asbestos at work and would like to file a claim"',
3751
+ 'Auto and Car Accidents': 'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
3752
+ 'Bankruptcy': 'Example: "I need help filing for bankruptcy"',
3753
+ 'Birth Certificate and Name Change': 'Example: "Just married and would like to change my last name"',
3754
+ 'Business Lawyers': 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
3755
+ 'Child Custody and Support': 'Example: "Need help getting custody" or "Issues with child support payments"',
3756
+ 'Child Custody': 'Example: "Need help getting custody"',
3757
+ 'Child Support': 'Example: "Issues with child support payments"',
3758
+ 'Civil Rights and Discrimination': 'Example: "Police brutality" or "Coworker keeps harassing me"',
3759
+ 'Civil Lawsuit': 'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
3760
+ 'File a Lawsuit': 'Example: "A contractor took my money and never completed the job"',
3761
+ 'Defend a Lawsuit': 'Example: "I am being sued by a neighbor"',
3762
+ 'Consumer Lawyers': 'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
3763
+ 'Copyrights and Trademarks': 'Example: "I would like to register a trademark or copyright a name"',
3764
+ 'Criminal and Felony': 'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
3765
+ 'Debt and Collections': 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
3766
+ 'Divorce and Separation': 'Example: "I would like to file for an uncontested divorce"',
3767
+ 'DUI and DWI': 'Example: "I was arrested for DUI and need legal defense"',
3768
+ 'Elder Law': 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
3769
+ 'Employment and Workplace': 'Example: "I was injured while on the job" or "My company is discriminating against me"',
3770
+ 'Expungement': 'Example: "I would like to file for an expungement and clear my record"',
3771
+ 'Family Issues': 'Example: "I need help with guardianship" or "I need a simple will created"',
3772
+ 'Foreclosure': 'Example: "I need help to avoid foreclosure on my house"',
3773
+ 'Guardianship': 'Example: "I need help with guardianship documents"',
3774
+ 'Harassment and Discrimination': 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
3775
+ 'Sexual Harassment': 'Example: "I am being sexually harassed by a coworker"',
3776
+ 'Workplace Harassment': 'Example: "My coworker is being aggressive towards me"',
3777
+ 'Non-Workplace Harassment': 'Example: "My neighbor is harassing me"',
3778
+ 'Workplace Discrimination': 'Example: "I am being discriminated at work based on my age"',
3779
+ 'Non-Workplace Discrimination': 'Example: "I am being discriminated against by a local official"',
3780
+ 'Identity Theft': 'Example: "Someone stole my identity and I need help fixing the issue"',
3781
+ 'Immigration and Visas': 'Example: "I need help filing for a visa" or "Help with a green card"',
3782
+ 'Insurance': 'Example: "I need help filing an insurance claim for damage to my house"',
3783
+ 'Landlord and Tenant': 'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
3784
+ 'Lemon Law': 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
3785
+ 'Long Term Disability': 'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
3786
+ 'Medical Malpractice': 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
3787
+ 'Patents and Intellectual Property': 'Example: "I would like to file for a patent" or "I need to copyright a name"',
3788
+ 'Personal Injury': 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
3789
+ 'Power of Attorney': 'Example: "I need help with a limited or general power of attorney"',
3790
+ 'Probate and Estates': 'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
3791
+ 'Product Liability': 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
3792
+ 'Property Damage': 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
3793
+ 'Real Estate': 'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
3794
+ 'Social Security Disability and Insurance': 'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',
3795
+ 'Tax and IRS': 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
3796
+ 'Traffic and Tickets': 'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
3797
+ 'Unemployment': 'Example: "I need help filing for unemployment benefits"',
3798
+ 'Victim of a Crime': 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
3799
+ 'Wills and Trusts': 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
3800
+ 'Workers Compensation': 'Example: "I was injured at work and would like to file for workers compensation benefits"',
3801
+ 'Wrongful Death': 'Example: "A family member was killed on the job and we need legal representation"',
3802
+ 'Wrongful Termination': 'Example: "I was fired by my employer without cause"',
3803
+ 'Not Sure or Other': 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"'
3804
+ };
3805
+
3806
+ const TOLPFinalHeadlines = {
3807
+ // 'Adoption': '',
3808
+ };
3809
+
3810
+ const TOLPFinalSubHeadlines = {
3811
+ 'Adoption': 'You may benefit from speaking with an adoption professional. Please verify your contact information.',
3812
+ // 'Asbestos and Mesothelioma': '',
3813
+ 'Auto and Car Accidents': 'You may benefit from speaking with an accident professional. Please verify your contact information.',
3814
+ 'Bankruptcy': 'You may benefit from speaking with a bankruptcy professional. Please verify your contact information.',
3815
+ // 'Birth Certificate and Name Change': '',
3816
+ // 'Business Lawyers': '',
3817
+ // 'Child Custody and Support': '',
3818
+ // 'Civil Rights and Discrimination': '',
3819
+ // 'Civil Lawsuit': '',
3820
+ // 'Consumer Lawyers': '',
3821
+ 'Copyrights and Trademarks': 'You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.',
3822
+ // 'Criminal and Felony': '',
3823
+ // 'Debt and Collections': '',
3824
+ 'Divorce and Separation': 'You may benefit from speaking with a divorce professional. Please verify your contact information.',
3825
+ 'DUI and DWI': 'You may benefit from speaking with a DUI professional. Please verify your contact information.',
3826
+ 'Elder Law': 'You may benefit from speaking with an elder law professional. Please verify your contact information.',
3827
+ // 'Employment and Workplace': '',
3828
+ // 'Expungement': '',
3829
+ // 'Family Issues': '',
3830
+ 'Foreclosure': 'You may benefit from speaking with a foreclosure professional. Please verify your contact information.',
3831
+ 'Guardianship': 'You may benefit from speaking with a guardianship professional. Please verify your contact information.',
3832
+ // 'Harassment and Discrimination': '',
3833
+ // 'Identity Theft': '',
3834
+ 'Immigration and Visas': 'You may benefit from speaking with a immigration professional. Please verify your contact information.',
3835
+ // 'Insurance': '',
3836
+ 'Landlord and Tenant': 'You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.',
3837
+ // 'Lemon Law': '',
3838
+ 'Long Term Disability': 'You may benefit from speaking with a disability legal professional. Please verify your contact information.',
3839
+ 'Medical Malpractice': 'You may benefit from speaking with a malpractice professional. Please verify your contact information.',
3840
+ 'Patents and Intellectual Property': 'You may benefit from speaking with a patent professional. Please verify your contact information.',
3841
+ 'Personal Injury': 'You may benefit from speaking with a personal injury professional. Please verify your contact information.',
3842
+ // 'Power of Attorney': '',
3843
+ 'Probate and Estates': 'You may benefit from speaking with a probate and estate professional. Please verify your contact information.',
3844
+ // 'Product Liability': '',
3845
+ // 'Property Damage': '',
3846
+ 'Real Estate': 'You may benefit from speaking with a real estate professional. Please verify your contact information.',
3847
+ 'Social Security Disability and Insurance': 'You may benefit from speaking with an SSDI professional. Please verify your contact information.',
3848
+ 'Tax and IRS': 'You may benefit from speaking with a tax professional. Please verify your contact information.',
3849
+ // 'Traffic and Tickets': '',
3850
+ 'Unemployment': 'You may benefit from speaking with an unemployment professional. Please verify your contact information.',
3851
+ // 'Victim of a Crime': '',
3852
+ // 'Wills and Trusts': '',
3853
+ 'Workers Compensation': 'You may benefit from speaking with a workers compensation professional. Please verify your contact information.',
3854
+ // 'Wrongful Death': '',
3855
+ // 'Wrongful Termination': '',
3856
+ // 'Not Sure or Other': ''
3857
+ // 'Sexual Harassment': '',
3858
+ // 'Workplace Harassment': '',
3859
+ // 'Non-Workplace Harassment': '',
3860
+ // 'Workplace Discrimination': '',
3861
+ // 'Non-Workplace Discrimination': '',
3862
+ };
3863
+
3864
+ const nextStepsLegalDefault = [
3865
+ 'haveAttorney',
3866
+ 'degreeOfInterest',
3867
+ 'commentsWithBankruptcy',
3868
+ 'zipcode',
3869
+ 'legalCrossSells',
3870
+ 'firstAndLast',
3871
+ 'contactInfo',
3872
+ ];
3873
+
3874
+ const nextStepsLegalDefaultLPM = [
3875
+ 'haveAttorney',
3876
+ 'degreeOfInterest',
3877
+ 'lawyerPaymentMethod',
3878
+ 'commentsWithBankruptcy',
3879
+ 'zipcode',
3880
+ 'legalCrossSells',
3881
+ 'firstAndLast',
3882
+ 'contactInfo',
3883
+ ];
3884
+
3885
+ const nextStepsLegalNoDOI = [
3886
+ 'haveAttorney',
3887
+ 'commentsWithBankruptcy',
3888
+ 'zipcode',
3889
+ 'legalCrossSells',
3890
+ 'firstAndLast',
3891
+ 'contactInfo',
3892
+ ];
3893
+
3894
+ const nextStepsLegalNoHA = [
3895
+ 'degreeOfInterest',
3896
+ 'commentsWithBankruptcy',
3897
+ 'zipcode',
3898
+ 'legalCrossSells',
3899
+ 'firstAndLast',
3900
+ 'contactInfo',
3901
+ ];
3902
+
3903
+ const nextStepsMapGeneralLegal = {
3904
+ 'Type_Of_Legal_Problem': {
3905
+ 'Adoption': [
3906
+ 'maritalStatus',
3907
+ 'haveChildren',
3908
+ ...nextStepsLegalDefaultLPM
3909
+ ],
3910
+ 'Asbestos and Mesothelioma': [
3911
+ 'incidentDate',
3912
+ 'doctorTreatment',
3913
+ ...nextStepsLegalDefault
3914
+ ],
3915
+ 'Auto and Car Accidents': [
3916
+ 'incidentDate',
3917
+ 'atFault',
3918
+ 'primaryInjury',
3919
+ 'doctorTreatment',
3920
+ 'policeReportFiled',
3921
+ ...nextStepsLegalNoDOI
3922
+ ],
3923
+ 'Bankruptcy': [
3924
+ 'totalMonthlyIncome',
3925
+ 'totalDebt',
3926
+ 'ownRealEstate',
3927
+ 'valueOfAssets',
3928
+ ...nextStepsLegalDefault
3929
+ ],
3930
+ 'Business Lawyers': [
3931
+ 'businessServices',
3932
+ 'businessType',
3933
+ 'numEmployeesOfBusiness',
3934
+ ...nextStepsLegalDefault
3935
+ ],
3936
+ 'Child Custody': [
3937
+ 'childRelationship',
3938
+ 'childHome',
3939
+ 'childPrimaryCaregiver',
3940
+ ...nextStepsLegalDefaultLPM
3941
+ ],
3942
+ 'Child Support': [
3943
+ 'childRelationship',
3944
+ 'childHome',
3945
+ 'childPrimaryCaregiver',
3946
+ ...nextStepsLegalDefaultLPM
3947
+ ],
3948
+ 'Civil Rights and Discrimination': [
3949
+ 'civilRightsType',
3950
+ ...nextStepsLegalDefault
3951
+ ],
3952
+ 'Civil Lawsuit': [
3953
+ 'civilDefense',
3954
+ 'lawsuitOtherParty',
3955
+ ...nextStepsLegalDefault
3956
+ ],
3957
+ 'File a Lawsuit': [
3958
+ 'civilLawsuitTOLPDisplay',
3959
+ 'lawsuitOtherParty',
3960
+ ...nextStepsLegalDefault
3961
+ ],
3962
+ 'Defend a Lawsuit': [
3963
+ 'lawsuitOtherParty',
3964
+ ...nextStepsLegalDefault
3965
+ ],
3966
+ 'Consumer Lawyers': [
3967
+ 'consumerLawyerType',
3968
+ 'incidentDate',
3969
+ 'lawsuitOtherParty',
3970
+ ...nextStepsLegalDefault
3971
+ ],
3972
+ 'Criminal and Felony': [
3973
+ 'criminalTOLPDisplay',
3974
+ 'crimeCommittedDate',
3975
+ 'roleInMatterCriminal',
3976
+ 'pendingCharges',
3977
+ ...nextStepsLegalDefaultLPM
3978
+ ],
3979
+ 'Debt and Collections': [
3980
+ 'totalMonthlyIncome',
3981
+ 'totalDebt',
3982
+ 'ownRealEstate',
3983
+ 'valueOfAssets',
3984
+ ...nextStepsLegalDefault
3985
+ ],
3986
+ 'Divorce and Separation': [
3987
+ 'maritalStatus',
3988
+ 'haveChildren',
3989
+ ...nextStepsLegalDefaultLPM
3990
+ ],
3991
+ 'DUI and DWI': [
3992
+ 'incidentDate',
3993
+ 'priorAlcoholOffenses',
3994
+ 'typeOfAlcoholTest',
3995
+ 'bloodContentAlcoholTest',
3996
+ 'pendingCharges',
3997
+ ...nextStepsLegalDefault
3998
+ ],
3999
+ 'Employment and Workplace': [
4000
+ 'employmentAndWorkplaceTOLPDisplay',
4001
+ 'numEmployeesOfBusiness',
4002
+ 'employerType',
4003
+ 'employeeAtCompany',
4004
+ ...nextStepsLegalDefault
4005
+ ],
4006
+ 'Expungement': [
4007
+ 'incidentDate',
4008
+ 'criminalChargeType',
4009
+ ...nextStepsLegalDefaultLPM
4010
+ ],
4011
+ 'Family Issues': [
4012
+ 'maritalStatus',
4013
+ 'haveChildren',
4014
+ ...nextStepsLegalDefaultLPM
4015
+ ],
4016
+ 'Foreclosure': [
4017
+ 'ownRealEstate',
4018
+ 'typeOfProperty',
4019
+ 'amountPaymentsPastDue',
4020
+ 'loanAmount',
4021
+ 'defaultNotice',
4022
+ ...nextStepsLegalDefault
4023
+ ],
4024
+ 'Guardianship': [
4025
+ 'maritalStatus',
4026
+ 'haveChildren',
4027
+ ...nextStepsLegalDefaultLPM
4028
+ ],
4029
+ 'Immigration and Visas': [
4030
+ 'countryOfCitizenship',
4031
+ 'immigrationLocation',
4032
+ 'immigrationEntry',
4033
+ 'immigrationType',
4034
+ 'immigrationStatus',
4035
+ 'immigrationDetails',
4036
+ ...nextStepsLegalDefault
4037
+ ],
4038
+ 'Landlord and Tenant': [
4039
+ 'landlordTenantIssue',
4040
+ 'landlordTenantParty',
4041
+ ...nextStepsLegalDefault
4042
+ ],
4043
+ 'Lemon Law': [
4044
+ 'incidentDate',
4045
+ 'lawsuitOtherParty',
4046
+ ...nextStepsLegalDefault
4047
+ ],
4048
+ 'Long Term Disability': [
4049
+ 'applicantOccupation',
4050
+ 'applicantAge',
4051
+ 'applicantLTDisabilityPolicy',
4052
+ 'applicantDisabilityHowObtain',
4053
+ 'applicantPreviouslyAppliedLtdBenefits',
4054
+ 'applicantReceivedDisabilityBenefits',
4055
+ 'applicantMonthlySalary',
4056
+ ...nextStepsLegalNoDOI
4057
+ ],
4058
+ 'Medical Malpractice': [
4059
+ 'incidentDate',
4060
+ 'claimStatus',
4061
+ 'doctorTreatment',
4062
+ 'medicalMalpracticeInjuries',
4063
+ ...nextStepsLegalDefault
4064
+ ],
4065
+ 'Patents and Intellectual Property': [
4066
+ 'patentAssistanceType',
4067
+ 'patentFor',
4068
+ ...nextStepsLegalDefault
4069
+ ],
4070
+ 'Personal Injury': [
4071
+ 'incidentDate',
4072
+ 'claimStatus',
4073
+ 'atFault',
4074
+ 'primaryInjury',
4075
+ 'doctorTreatment',
4076
+ ...nextStepsLegalNoDOI
4077
+ ],
4078
+ 'Probate and Estates': [
4079
+ 'valueOfAssets',
4080
+ 'typeOfAssets',
4081
+ 'roleInMatterProbate',
4082
+ 'estateLegalServicesNeeded',
4083
+ ...nextStepsLegalDefault
4084
+ ],
4085
+ 'Property Damage': [
4086
+ 'realEstateArea',
4087
+ 'wouldLikeLawyerTo',
4088
+ ...nextStepsLegalDefault
4089
+ ],
4090
+ 'Real Estate': [
4091
+ 'realEstateTOLPDisplay',
4092
+ 'realEstateArea',
4093
+ 'wouldLikeLawyerTo',
4094
+ ...nextStepsLegalDefault
4095
+ ],
4096
+ 'Social Security Disability and Insurance': [
4097
+ 'applicantAge',
4098
+ 'disabilityConditionStopWork',
4099
+ 'disabilityWorkHistory',
4100
+ 'socialSecurityDisabilityReceivingBenefits',
4101
+ 'doctorTreatment',
4102
+ ...nextStepsLegalNoDOI
4103
+ ],
4104
+ 'Tax and IRS': [
4105
+ 'totalDebt',
4106
+ 'taxProblemDetails',
4107
+ 'taxLevel',
4108
+ 'taxIssueType',
4109
+ ...nextStepsLegalDefault
4110
+ ],
4111
+ 'Traffic and Tickets': [
4112
+ 'driversLicenseType',
4113
+ 'trafficViolations',
4114
+ 'haveCourtDate',
4115
+ ...nextStepsLegalDefault
4116
+ ],
4117
+ 'Unemployment': [
4118
+ 'numEmployeesOfBusiness',
4119
+ 'employerType',
4120
+ ...nextStepsLegalNoHA
4121
+ ],
4122
+ 'Victim of a Crime': [
4123
+ 'crimeCommittedDate',
4124
+ 'roleInMatterCriminal',
4125
+ 'pendingCharges',
4126
+ ...nextStepsLegalDefaultLPM
4127
+ ],
4128
+ 'Wills and Trusts': [
4129
+ 'valueOfAssets',
4130
+ 'typeOfAssets',
4131
+ 'roleInMatterProbate',
4132
+ 'estateLegalServicesNeeded',
4133
+ ...nextStepsLegalDefault
4134
+ ],
4135
+ 'Workers Compensation': [
4136
+ 'incidentDate',
4137
+ 'claimStatus',
4138
+ 'primaryInjury',
4139
+ 'causeOfInjury',
4140
+ 'doctorTreatment',
4141
+ ...nextStepsLegalNoDOI
4142
+ ],
4143
+ 'Workplace Harassment': [
4144
+ 'numEmployeesOfBusiness',
4145
+ 'employerType',
4146
+ 'employeeAtCompany',
4147
+ ...nextStepsLegalDefault
4148
+ ],
4149
+ 'Workplace Discrimination': [
4150
+ 'numEmployeesOfBusiness',
4151
+ 'employerType',
4152
+ 'employeeAtCompany',
4153
+ ...nextStepsLegalDefault
4154
+ ],
4155
+ 'Wrongful Death': [
4156
+ 'incidentDate',
4157
+ 'relationshipToVictim',
4158
+ 'criminalChargesFiled',
4159
+ 'causeOfDeath',
4160
+ ...nextStepsLegalNoDOI
4161
+ ],
4162
+ 'Wrongful Termination': [
4163
+ 'numEmployeesOfBusiness',
4164
+ 'employerType',
4165
+ ...nextStepsLegalDefault
4166
+ ],
4167
+ },
4168
+ '*': nextStepsLegalDefault
4169
+ };
4170
+
4171
+ const TOLPNextSteps = nextStepsMapGeneralLegal["Type_Of_Legal_Problem"];
4172
+
4173
+ ({
4174
+ 'Type_Of_Legal_Problem': {
4175
+ 'Child Custody': TOLPNextSteps["Child Custody"],
4176
+ 'Child Support': TOLPNextSteps["Child Support"],
4177
+ 'Not Sure or Other': nextStepsMapGeneralLegal["*"],
4178
+ },
4179
+ '*': TOLPNextSteps["Family Issues"]
4180
+ });
4181
+
4182
+ ({
4183
+ 'Type_Of_Legal_Problem_Display': {
4184
+ 'Alimony or Child Support': TOLPNextSteps["Child Support"],
4185
+ 'Child Custody': TOLPNextSteps["Child Custody"],
4186
+ 'Not Sure or Other': nextStepsMapGeneralLegal["*"],
4187
+ },
4188
+ '*': TOLPNextSteps["Divorce and Separation"]
4189
+ });
4190
+
4191
+ ({
4192
+ 'Civil_Defense': {
4193
+ 'Yes': TOLPNextSteps["Defend a Lawsuit"],
4194
+ 'No': TOLPNextSteps["File a Lawsuit"],
4195
+ },
4196
+ '*': [
4197
+ 'lawsuitOtherParty',
4198
+ ...nextStepsLegalDefault
4199
+ ]
4200
+ });
4201
+
4202
+ ({
4203
+ 'Type_Of_Legal_Problem': {
4204
+ 'Defend a Lawsuit': TOLPNextSteps["Defend a Lawsuit"],
4205
+ 'File a Lawsuit': TOLPNextSteps["File a Lawsuit"],
4206
+ },
4207
+ '*': [
4208
+ 'lawsuitOtherParty',
4209
+ ...nextStepsLegalDefault
4210
+ ]
4211
+ });
4212
+
4213
+ const nextStepsMapCivilTOLPDisplay = {
4214
+ 'Type_Of_Legal_Problem_Display': {
4215
+ 'Automobile Accident': TOLPNextSteps["Auto and Car Accidents"],
4216
+ 'Contract Disputes': TOLPNextSteps["Business Lawyers"],
4217
+ 'Dog Bite': TOLPNextSteps["Personal Injury"],
4218
+ 'Employment and Workplace': TOLPNextSteps["Employment and Workplace"],
4219
+ 'Fraud': TOLPNextSteps["Consumer Lawyers"],
4220
+ 'Medical Malpractice': TOLPNextSteps["Medical Malpractice"],
4221
+ 'Personal Injury': TOLPNextSteps["Personal Injury"],
4222
+ 'Property Damage': TOLPNextSteps["Property Damage"],
4223
+ 'Real Estate': TOLPNextSteps["Real Estate"],
4224
+ 'Not Sure or Other': nextStepsMapGeneralLegal["*"],
4225
+ },
4226
+ '*': [
4227
+ 'lawsuitOtherParty',
4228
+ ...nextStepsLegalDefault
4229
+ ]
4230
+ };
4231
+
4232
+ const nextStepsMapCriminalTOLPDisplay = {
4233
+ 'Type_Of_Legal_Problem_Display': {
4234
+ 'Victim of a Crime': TOLPNextSteps["Victim of a Crime"],
4235
+ 'DUI and DWI': TOLPNextSteps["DUI and DWI"],
4236
+ 'Expungement': TOLPNextSteps["Expungement"],
4237
+ 'Not Sure or Other': nextStepsMapGeneralLegal["*"],
4238
+ },
4239
+ '*': [
4240
+ 'crimeCommittedDate',
4241
+ 'roleInMatterCriminal',
4242
+ 'pendingCharges',
4243
+ ...nextStepsLegalDefaultLPM
4244
+ ]
4245
+ };
4246
+
4247
+ const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
4248
+ 'Type_Of_Legal_Problem_Display': {
4249
+ 'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
4250
+ 'Workers Compensation': TOLPNextSteps["Workers Compensation"],
4251
+ 'Personal Injury': TOLPNextSteps["Personal Injury"],
4252
+ 'Unemployment': TOLPNextSteps["Unemployment"],
4253
+ },
4254
+ '*': [
4255
+ 'numEmployeesOfBusiness',
4256
+ 'employerType',
4257
+ 'employeeAtCompany',
4258
+ ...nextStepsLegalDefault
4259
+ ]
4260
+ };
4261
+
4262
+ ({
4263
+ 'Type_Of_Legal_Problem_Display': {
4264
+ 'Patents': TOLPNextSteps["Patents and Intellectual Property"],
4265
+ 'Business Lawyers': TOLPNextSteps["Business Lawyers"],
4266
+ 'Business Consulting': TOLPNextSteps["Business Lawyers"],
4267
+ },
4268
+ '*': nextStepsMapGeneralLegal["*"],
4269
+ });
4270
+
4271
+ const nextStepsMapRealEstateTOLPDisplay = {
4272
+ 'Type_Of_Legal_Problem_Display': {
4273
+ 'Foreclosure': TOLPNextSteps["Foreclosure"],
4274
+ 'Landlord and Tenant': TOLPNextSteps["Landlord and Tenant"],
4275
+ 'Wills, Trusts, and Estates': TOLPNextSteps["Wills and Trusts"],
4276
+ 'Property Damage': TOLPNextSteps['Property Damage'],
4277
+ },
4278
+ '*': [
4279
+ 'realEstateArea',
4280
+ 'wouldLikeLawyerTo',
4281
+ ...nextStepsLegalDefault
4282
+ ]
4283
+ };
4284
+
4285
+ const meta = defaultMetaProps();
4286
+
4287
+ meta.data.dynamicSchema = [
4288
+ amountPaymentsPastDue(),
4289
+ applicantAge(),
4290
+ applicantDisabilityHowObtain(),
4291
+ applicantLTDisabilityPolicy(),
4292
+ applicantMonthlySalary(),
4293
+ applicantOccupation({
4294
+ nextOnInput: false
4295
+ }),
4296
+ applicantPreviouslyAppliedLtdBenefits(),
4297
+ applicantReceivedDisabilityBenefits(),
4298
+ atFault(),
4299
+ bloodContentAlcoholTest(),
4300
+ businessServices(),
4301
+ businessType(),
4302
+ causeOfDeath(),
4303
+ causeOfInjury(),
4304
+ childHome(),
4305
+ childPrimaryCaregiver(),
4306
+ childRelationship(),
4307
+ // We removed Civil Lawsuit from TOLP dropdown for now
4308
+ // steps.civilDefense({
4309
+ // nextStepMap: forms.nextStepsMapCivilDefense,
4310
+ // }),
4311
+ civilLawsuitTOLPDisplay({
4312
+ nextStepMap: nextStepsMapCivilTOLPDisplay
4313
+ }),
4314
+ civilRightsType(),
4315
+ claimStatus(),
4316
+ consumerLawyerType(),
4317
+ countryOfCitizenship(),
4318
+ crimeCommittedDate({
4319
+ nextOnInput: false
4320
+ }),
4321
+ criminalChargeType(),
4322
+ criminalChargesFiled(),
4323
+ criminalTOLPDisplay({
4324
+ nextStepMap: nextStepsMapCriminalTOLPDisplay
4325
+ }),
4326
+ defaultNotice(),
4327
+ degreeOfInterest(),
4328
+ disabilityConditionStopWork(),
4329
+ disabilityWorkHistory(),
4330
+ doctorTreatment(),
4331
+ driversLicenseType(),
4332
+ estateLegalServicesNeeded(),
4333
+ employerType(),
4334
+ employeeAtCompany(),
4335
+ employmentAndWorkplaceTOLPDisplay({
4336
+ nextStepMap: nextStepsMapEmploymentAndWorkplaceTOLPDisplay
4337
+ }),
4338
+ haveAttorney(),
4339
+ haveChildren(),
4340
+ haveCourtDate(),
4341
+ immigrationDetails(),
4342
+ immigrationEntry(),
4343
+ immigrationLocation(),
4344
+ immigrationStatus(),
4345
+ immigrationType(),
4346
+ incidentDate({
4347
+ nextOnInput: false
4348
+ }),
4349
+ landlordTenantIssue(),
4350
+ landlordTenantParty(),
4351
+ lawsuitOtherParty(),
4352
+ lawyerPaymentMethod(),
4353
+ loanAmount(),
4354
+ maritalStatus(),
4355
+ medicalMalpracticeInjuries(),
4356
+ numEmployeesOfBusiness(),
4357
+ ownRealEstate(),
4358
+ patentAssistanceType(),
4359
+ patentFor(),
4360
+ pendingCharges(),
4361
+ policeReportFiled(),
4362
+ primaryInjury(),
4363
+ priorAlcoholOffenses(),
4364
+ realEstateArea(),
4365
+ realEstateTOLPDisplay({
4366
+ nextStepMap: nextStepsMapRealEstateTOLPDisplay
4367
+ }),
4368
+ relationshipToVictim(),
4369
+ roleInMatterCriminal(),
4370
+ roleInMatterProbate(),
4371
+ socialSecurityDisabilityReceivingBenefits(),
4372
+ taxIssueType(),
4373
+ taxLevel(),
4374
+ taxProblemDetails(),
4375
+ totalDebt(),
4376
+ totalMonthlyIncome(),
4377
+ trafficViolations(),
4378
+ typeOfAlcoholTest(),
4379
+ typeOfAssets(),
4380
+ typeOfProperty(),
4381
+ valueOfAssets(),
4382
+ veteransDisabilityApplied(),
4383
+ veteransDisabilityConditions(),
4384
+ veteransDisabilityInjured(),
4385
+ veteransDisabilityRelationship(),
4386
+ wouldLikeLawyerTo(),
4387
+ zipcode(),
4388
+ commentsWithBankruptcy({
4389
+ label: null,
4390
+ headline: 'Please briefly describe your situation:',
4391
+ headlineClass: '!t-text-dark',
4392
+ }),
4393
+ legalCrossSells({
4394
+ headlineClass: '!t-text-dark'
4395
+ }),
4396
+ autoAndCarAccidentCrossSellQuestions(),
4397
+ personalInjuryCrossSellQuestions(),
4398
+ workersCompensationCrossSellQuestions(),
4399
+ duiAndDWICrossSellQuestions(),
4400
+ ssdiCrossSellQuestions(),
4401
+ powerOfAttorneyCrossSellQuestions(),
4402
+ willsAndTrustsCrossSellQuestions(),
4403
+ divorceAndSeparationCrossSellQuestions(),
4404
+ childCustodyCrossSellQuestions(),
4405
+ firstAndLastV3({
4406
+ headlineClass: '!t-text-dark'
4407
+ }),
4408
+ ];
4409
+
4410
+ const schema = [
4411
+ meta,
4412
+ formAnchor(),
4413
+ {
4414
+ $cmp: 'FormKit',
4415
+ props: formProps({
4416
+ formId: 'generalLegalSingle',
4417
+ redirectMap: legalRedirectMap(),
4418
+ valueOverrideMap: legalAllValueOverrideMap,
4419
+ }),
4420
+ children: [
4421
+ progressBar(),
4422
+ headline({
4423
+ children: '$urlParam("hl", "Need Legal Help? Start Here!")',
4424
+ if: '$activeStep === $firstStep()'
4425
+ }),
4426
+ defaultSubHeadline(),
4427
+ ...hiddenInputsLegal,
4428
+ {
4429
+ $el: 'div',
4430
+ attrs: {
4431
+ class: 'form-body'
4432
+ },
4433
+ children: [
4434
+ generalTOLP({
4435
+ nextOnInput: false,
4436
+ nextStepMap: nextStepsMapGeneralLegal,
4437
+ headlineClass: 't-text-lg',
4438
+ input: {
4439
+ placeholder: 'Select a Category',
4440
+ innerClass: '!t-max-w-[275px] md:!t-max-w-xl'
4441
+ }
4442
+ }),
4443
+ dynamicSchemaNode(),
4444
+ contactInfo(),
4445
+ formNavigation(),
4446
+ formDetails()
4447
+ ]
4448
+ }
4449
+ ]
4450
+ }
4451
+ ];
4452
+
4453
+ const formKitNode = schema.find(item => item.$cmp === "FormKit");
4454
+
4455
+ // HACK: need to update both to mimic formProps behavior
4456
+ formKitNode.props.name = 'generalLegalThankYouConsultation.js';
4457
+ formKitNode.props.formId = 'generalLegalThankYouConsultation.js';
4458
+ formKitNode.props.redirectMap = {
4459
+ '*': '/thank-you-consultation'
4460
+ };
4461
+
4462
+ export { schema as default };