bhl-forms 0.6.15 → 0.7.1
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.
- package/dist/bhl-forms.es.js +1757 -1759
- package/dist/bhl-forms.iife.js +4 -4
- package/dist/bhl-forms.modern.es.js +2804 -2811
- package/dist/bhl-forms.modern.iife.js +6 -6
- package/dist/bhl-forms.modern.umd.js +6 -6
- package/dist/bhl-forms.umd.js +4 -4
- package/dist/forms/accidentsAndInjuries.es.js +314 -228
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/appraisals.es.js +16 -7
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/business.es.js +317 -236
- package/dist/forms/business.iife.js +1 -1
- package/dist/forms/business.json +1 -1
- package/dist/forms/childAndFamily.es.js +303 -224
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +643 -555
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +637 -551
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/coins.es.js +16 -7
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/contracts.es.js +307 -227
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +660 -572
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/divorce.es.js +643 -555
- package/dist/forms/divorce.iife.js +1 -1
- package/dist/forms/divorce.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +584 -506
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalHomeImprovement.es.js +3015 -0
- package/dist/forms/generalHomeImprovement.iife.js +1 -0
- package/dist/forms/generalHomeImprovement.json +1 -0
- package/dist/forms/generalLegal.es.js +341 -244
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalJustAnswer.es.js +4542 -0
- package/dist/forms/generalLegalJustAnswer.iife.js +1 -0
- package/dist/forms/generalLegalJustAnswer.json +1 -0
- package/dist/forms/generalLegalPopUnder.es.js +342 -245
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +692 -612
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderSingle.json +1 -1
- package/dist/forms/generalLegalSingle.es.js +692 -612
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +204 -158
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/generalLegalThankYouConsultation.es.js +692 -612
- package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
- package/dist/forms/generalLegalThankYouConsultation.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +303 -224
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/landlordTenant.es.js +316 -240
- package/dist/forms/landlordTenant.iife.js +1 -1
- package/dist/forms/landlordTenant.json +1 -1
- package/dist/forms/malpractice.es.js +308 -227
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +184 -166
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/patentsAndIP.es.js +646 -558
- package/dist/forms/patentsAndIP.iife.js +1 -1
- package/dist/forms/patentsAndIP.json +1 -1
- package/dist/forms/realEstate.es.js +339 -243
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +307 -227
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +156 -140
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +69 -51
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/testRedirects.es.js +43 -22
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/forms/vets.es.js +16 -7
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/willsAndTrusts.es.js +304 -223
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -1
- package/package.json +3 -3
|
@@ -6,14 +6,97 @@ function LegalRedirectUrl() {
|
|
|
6
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
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
9
|
+
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL = '$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
10
|
+
const DEFAULT_COMMENTS_LABEL_LEGAL = 'Please briefly describe your legal issue in a few words:';
|
|
11
|
+
const DEFAULT_FINAL_HEADLINE_LEGAL = 'Submit Your Case';
|
|
12
|
+
const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
13
|
+
const DEFAULT_FINAL_SUBHEADLINE_LEGAL = 'You may benefit from speaking with a legal professional. Please verify your contact information.';
|
|
14
|
+
const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL = '$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
15
|
+
const TCPA_LANGUAGE_LEGAL = "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.";
|
|
16
|
+
const defaultLegalImprovementCrossSells = {
|
|
17
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
18
|
+
'Personal Injury': 'Personal or Workplace Injury',
|
|
19
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
20
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
21
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
22
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
23
|
+
};
|
|
24
|
+
const CROSS_SELL_OPTION_MAP_LEGAL = {
|
|
25
|
+
// Values can be a list or a map of value -> display value
|
|
26
|
+
'Auto and Car Accidents': {
|
|
27
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
28
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
29
|
+
'Workers Compensation': 'Workplace Injury',
|
|
30
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
31
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
32
|
+
'Child Custody': 'Need help with Child Custody',
|
|
33
|
+
},
|
|
34
|
+
"Personal Injury": {
|
|
35
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
36
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
37
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
38
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
39
|
+
'Child Custody': 'Need help with Child Custody',
|
|
40
|
+
// TODO add one more?
|
|
41
|
+
},
|
|
42
|
+
"Workers Compensation": {
|
|
43
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
44
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
45
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
46
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
47
|
+
'Child Custody': 'Need help with Child Custody',
|
|
48
|
+
// TODO add one more?
|
|
49
|
+
},
|
|
50
|
+
"DUI and DWI": {
|
|
51
|
+
'Personal Injury': 'Personal or Workplace Injury',
|
|
52
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
53
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
54
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
55
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
56
|
+
'Child Custody': 'Need help with Child Custody',
|
|
57
|
+
},
|
|
58
|
+
"Wills and Trusts": {
|
|
59
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
60
|
+
'Personal Injury': 'Personal or Workplace Injury',
|
|
61
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
62
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
63
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
64
|
+
'Child Custody': 'Need help with Child Custody',
|
|
65
|
+
},
|
|
66
|
+
"Probate and Estates": {
|
|
67
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
68
|
+
'Personal Injury': 'Personal or Workplace Injury',
|
|
69
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
70
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
71
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
72
|
+
'Child Custody': 'Need help with Child Custody',
|
|
73
|
+
},
|
|
74
|
+
"Power of Attorney": {
|
|
75
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
76
|
+
'Personal Injury': 'Personal or Workplace Injury',
|
|
77
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
78
|
+
'Social Security Disability and Insurance': 'Interest in Disability Benefits',
|
|
79
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
80
|
+
'Child Custody': 'Need help with Child Custody',
|
|
81
|
+
},
|
|
82
|
+
"Long Term Disability": {
|
|
83
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
84
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
85
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
86
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
87
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
88
|
+
'Child Custody': 'Need help with Child Custody',
|
|
89
|
+
},
|
|
90
|
+
"Social Security Disability and Insurance": {
|
|
91
|
+
'Auto and Car Accidents': 'Injured in a Car Accident',
|
|
92
|
+
'DUI and DWI': 'Involved in a DUI/DWI',
|
|
93
|
+
'Wills and Trusts': 'Need a Will or Trust',
|
|
94
|
+
'Power of Attorney': 'Update Power of Attorney',
|
|
95
|
+
'Divorce and Separation': 'Need a Divorce or Separation',
|
|
96
|
+
'Child Custody': 'Need help with Child Custody',
|
|
97
|
+
},
|
|
98
|
+
'*': defaultLegalImprovementCrossSells,
|
|
99
|
+
};
|
|
17
100
|
|
|
18
101
|
// ------ Common Base Settings
|
|
19
102
|
|
|
@@ -214,6 +297,7 @@ const verticalText = (updates) => {
|
|
|
214
297
|
updates.wrapperClass = 't-flex t-justify-center';
|
|
215
298
|
updates.messagesClass = 't-flex t-justify-center';
|
|
216
299
|
updates.inputClass = 't-text-center';
|
|
300
|
+
updates.helpClass = 't-mt-2.5 !t-text-sm t-text-center';
|
|
217
301
|
return text(updates)
|
|
218
302
|
};
|
|
219
303
|
|
|
@@ -261,54 +345,131 @@ const verticalDate = (updates) => {
|
|
|
261
345
|
return date(updates)
|
|
262
346
|
};
|
|
263
347
|
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
]
|
|
348
|
+
const email = (scope) => sbsText({
|
|
349
|
+
$formkit: 'email',
|
|
350
|
+
name: scope ? scope + ':' + 'Email' : 'Email',
|
|
351
|
+
label: 'Email Address:',
|
|
352
|
+
placeholder: 'email@domain.com',
|
|
353
|
+
autocomplete: 'email',
|
|
354
|
+
'data-tf-sensitive': 'false',
|
|
355
|
+
validation: 'required|email',
|
|
356
|
+
validationMessages: {
|
|
357
|
+
required: 'Email is required',
|
|
358
|
+
email: 'Invalid Email'
|
|
359
|
+
}
|
|
277
360
|
});
|
|
278
361
|
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
placeholder:
|
|
362
|
+
const firstName = (scope) => sbsText({
|
|
363
|
+
label: 'First Name:',
|
|
364
|
+
placeholder: 'First',
|
|
365
|
+
name: scope ? scope + ':' + 'First_Name' : 'First_Name',
|
|
366
|
+
autocomplete: "given-name",
|
|
367
|
+
validationMessages: {
|
|
368
|
+
required: 'First Name is required'
|
|
369
|
+
}
|
|
282
370
|
});
|
|
283
371
|
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
inputmode: "numeric",
|
|
290
|
-
validation: "required|min:18,max:65",
|
|
372
|
+
const lastName = (scope) => sbsText({
|
|
373
|
+
label: 'Last Name:',
|
|
374
|
+
placeholder: 'Last',
|
|
375
|
+
name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
|
|
376
|
+
autocomplete: "family-name",
|
|
291
377
|
validationMessages: {
|
|
292
|
-
required: '
|
|
293
|
-
min: 'Invalid Age - must be between 18 and 65',
|
|
294
|
-
max: 'Invalid Age - must be between 18 and 65',
|
|
378
|
+
required: 'Last Name is required'
|
|
295
379
|
}
|
|
296
380
|
});
|
|
297
381
|
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
382
|
+
const phone = (scope) => sbsText({
|
|
383
|
+
$formkit: 'tel',
|
|
384
|
+
name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
|
|
385
|
+
label: 'Phone Number:',
|
|
386
|
+
placeholder: '###-###-####',
|
|
387
|
+
maxlength: 12,
|
|
388
|
+
help: '10-digit phone number, hyphens optional',
|
|
389
|
+
autocomplete: 'tel-national',
|
|
390
|
+
'data-tf-sensitive': 'false',
|
|
391
|
+
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
|
|
305
392
|
validationMessages: {
|
|
306
|
-
required: '
|
|
307
|
-
|
|
308
|
-
|
|
393
|
+
required: 'Field is required',
|
|
394
|
+
matches: 'Invalid Phone Format, use ###-###-####',
|
|
395
|
+
valid_phone: 'Invalid Phone Number'
|
|
309
396
|
},
|
|
397
|
+
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
310
398
|
});
|
|
311
399
|
|
|
400
|
+
|
|
401
|
+
const zipcode$1 = (scope, vertical, updates = {}) => {
|
|
402
|
+
const func = vertical ? verticalText : sbsText;
|
|
403
|
+
const label = vertical ? (updates.label) : 'Zip Code:';
|
|
404
|
+
const help = vertical ? (updates.help ?? "We try to match you with local help") : null;
|
|
405
|
+
return func({
|
|
406
|
+
label,
|
|
407
|
+
help,
|
|
408
|
+
placeholder: '#####',
|
|
409
|
+
name: scope ? scope + ':' + 'Zip' : 'Zip',
|
|
410
|
+
maxlength: 5,
|
|
411
|
+
inputmode: "numeric",
|
|
412
|
+
autocomplete: 'postal-code',
|
|
413
|
+
validation: 'required|matches:/^[0-9]{5}$/',
|
|
414
|
+
validationMessages: {
|
|
415
|
+
required: 'Zip Code is required',
|
|
416
|
+
matches: 'Invalid Zip Code'
|
|
417
|
+
},
|
|
418
|
+
...updates
|
|
419
|
+
})
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
const amountPaymentsPastDue$1 = (scope, vertical, updates = {}) => {
|
|
423
|
+
const func = vertical ? verticalSelect : sbsSelect;
|
|
424
|
+
const label = vertical ? (updates.label) : 'Total Amount of Payments that are Past Due:';
|
|
425
|
+
return func(merge({
|
|
426
|
+
label,
|
|
427
|
+
name: scope ? scope + ':' + 'Amount_Payments_Past_Due' : 'Amount_Payments_Past_Due',
|
|
428
|
+
options: [
|
|
429
|
+
"$0 - $499",
|
|
430
|
+
"$500 - $999",
|
|
431
|
+
"$1,000 - $2,499",
|
|
432
|
+
"$2,500 - $4,999",
|
|
433
|
+
"$5,000 - $9,999",
|
|
434
|
+
"$10,000 - $24,999",
|
|
435
|
+
"$25,000 - $49,999",
|
|
436
|
+
"$50,000 - $99,999",
|
|
437
|
+
"More than $100,000"
|
|
438
|
+
]
|
|
439
|
+
}, updates))
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
const applicantOccupation$1 = (scope, vertical, updates = {}) => {
|
|
443
|
+
const func = vertical ? verticalText : sbsText;
|
|
444
|
+
const label = vertical ? (updates.label) : "What is the Applicant's Occupation?";
|
|
445
|
+
return func(merge({
|
|
446
|
+
label,
|
|
447
|
+
placeholder: "Occupation",
|
|
448
|
+
name: scope ? scope + ':' + 'Applicant_Occupation' : 'Applicant_Occupation',
|
|
449
|
+
}, updates))
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
const applicantAge$1 = (scope, vertical, updates = {}) => {
|
|
453
|
+
const func = vertical ? verticalText : sbsText;
|
|
454
|
+
const label = vertical ? (updates.label) : 'Age of Applicant?';
|
|
455
|
+
const value = vertical ? (updates.value ?? "50") : null;
|
|
456
|
+
return func(merge({
|
|
457
|
+
label,
|
|
458
|
+
placeholder: 'Age between 18 and 65',
|
|
459
|
+
name: scope ? scope + ':' + 'Applicant_Age' : 'Applicant_Age',
|
|
460
|
+
value,
|
|
461
|
+
maxlength: 2,
|
|
462
|
+
inputmode: "numeric",
|
|
463
|
+
validation: "required|min:18,max:65",
|
|
464
|
+
validationMessages: {
|
|
465
|
+
required: 'Applicant Age is required',
|
|
466
|
+
min: 'Invalid Age - must be between 18 and 65',
|
|
467
|
+
max: 'Invalid Age - must be between 18 and 65',
|
|
468
|
+
},
|
|
469
|
+
...updates
|
|
470
|
+
}))
|
|
471
|
+
};
|
|
472
|
+
|
|
312
473
|
const applicantDisabilityHowObtainCenter = (scope) => verticalButtonRadio({
|
|
313
474
|
name: scope ? scope + ':' + 'Applicant_Disability_How_Obtain' : 'Applicant_Disability_How_Obtain',
|
|
314
475
|
options: [
|
|
@@ -887,20 +1048,6 @@ const driversLicenseTypeCenter = () => verticalButtonRadio({
|
|
|
887
1048
|
]
|
|
888
1049
|
});
|
|
889
1050
|
|
|
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
1051
|
const employerTypeCenter = () => col2RadioCenter({
|
|
905
1052
|
name: 'Employer_Type',
|
|
906
1053
|
options: [
|
|
@@ -957,16 +1104,6 @@ const estateLegalServicesNeededCenter = (scope) => col2RadioCenter({
|
|
|
957
1104
|
]
|
|
958
1105
|
});
|
|
959
1106
|
|
|
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
1107
|
|
|
971
1108
|
const TOLPOptions = [
|
|
972
1109
|
'Adoption',
|
|
@@ -1120,17 +1257,6 @@ const incidentDateCenter = (scope) => verticalDate({
|
|
|
1120
1257
|
name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
|
|
1121
1258
|
});
|
|
1122
1259
|
|
|
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
1260
|
const landlordTenantPartyCenter = () => verticalButtonRadio({
|
|
1135
1261
|
name: 'Landlord_Tenant_Party',
|
|
1136
1262
|
options: [
|
|
@@ -1197,69 +1323,7 @@ const legalCrossSells$1 = () => col2Checkbox({
|
|
|
1197
1323
|
help: 'Just hit "Next" if none apply',
|
|
1198
1324
|
helpClass: 't-text-center !t-text-sm',
|
|
1199
1325
|
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
|
-
}
|
|
1326
|
+
options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
|
|
1263
1327
|
});
|
|
1264
1328
|
|
|
1265
1329
|
const loanAmountCenter = () => verticalSelect({
|
|
@@ -1365,24 +1429,6 @@ const pendingChargesCenter = (scope) => verticalYesNoRadio({
|
|
|
1365
1429
|
name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
|
|
1366
1430
|
});
|
|
1367
1431
|
|
|
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
1432
|
const primaryInjury$1 = (scope) => sbs2ColRadio({
|
|
1387
1433
|
name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
|
|
1388
1434
|
label: 'Primary Injury:',
|
|
@@ -1748,25 +1794,6 @@ const wouldLikeLawyerToCenter = () => verticalRadio({
|
|
|
1748
1794
|
]
|
|
1749
1795
|
});
|
|
1750
1796
|
|
|
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
1797
|
// ------ Question Groups
|
|
1771
1798
|
|
|
1772
1799
|
// NOTE: name must be unique within a form!
|
|
@@ -2030,13 +2057,20 @@ function verticalStepSubHeadline(updates) {
|
|
|
2030
2057
|
function commentsStepHeadline(updates) {
|
|
2031
2058
|
return {
|
|
2032
2059
|
$el: 'h3',
|
|
2033
|
-
children: updates.headline || 'Additional
|
|
2060
|
+
children: updates.headline || 'Additional Details',
|
|
2034
2061
|
attrs: {
|
|
2035
2062
|
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
2063
|
}
|
|
2037
2064
|
}
|
|
2038
2065
|
}
|
|
2039
2066
|
|
|
2067
|
+
function commentsStepHeadlineLegal(updates) {
|
|
2068
|
+
return commentsStepHeadline({
|
|
2069
|
+
headline: updates.headline || 'Additional Case Details',
|
|
2070
|
+
headlineClass: updates.headlineClass
|
|
2071
|
+
})
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2040
2074
|
function firstAndLastStepHeadline(updates) {
|
|
2041
2075
|
return {
|
|
2042
2076
|
$el: 'h3',
|
|
@@ -2060,7 +2094,7 @@ function legalCrossSellsStepHeadline(updates) {
|
|
|
2060
2094
|
function contactStepHeadline(updates) {
|
|
2061
2095
|
return {
|
|
2062
2096
|
$el: 'h3',
|
|
2063
|
-
children: updates.headline ||
|
|
2097
|
+
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
|
|
2064
2098
|
attrs: {
|
|
2065
2099
|
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
2100
|
}
|
|
@@ -2070,7 +2104,7 @@ function contactStepHeadline(updates) {
|
|
|
2070
2104
|
function contactStepSubHeadline(updates) {
|
|
2071
2105
|
return {
|
|
2072
2106
|
$el: 'h5',
|
|
2073
|
-
children: updates.subheadline ||
|
|
2107
|
+
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
|
|
2074
2108
|
attrs: {
|
|
2075
2109
|
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
2110
|
}
|
|
@@ -2110,10 +2144,16 @@ const stepDefaults = (step, stepKey) => ({
|
|
|
2110
2144
|
}
|
|
2111
2145
|
});
|
|
2112
2146
|
|
|
2113
|
-
function step(name, inputs,
|
|
2114
|
-
|
|
2115
|
-
nextOnEnter = true
|
|
2116
|
-
|
|
2147
|
+
function step(name, inputs, updates = {}) {
|
|
2148
|
+
const {
|
|
2149
|
+
nextOnEnter = true,
|
|
2150
|
+
nextOnInput = false,
|
|
2151
|
+
stepKey = undefined,
|
|
2152
|
+
nextStepMap = undefined,
|
|
2153
|
+
triggerRedirectMap = undefined,
|
|
2154
|
+
autoFocus = undefined,
|
|
2155
|
+
} = updates;
|
|
2156
|
+
|
|
2117
2157
|
if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
|
|
2118
2158
|
const lastInput = findLastInput(inputs[inputs.length - 1]);
|
|
2119
2159
|
if (lastInput && nextOnEnter === true) {
|
|
@@ -2133,6 +2173,7 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
|
|
|
2133
2173
|
id: name,
|
|
2134
2174
|
name: name,
|
|
2135
2175
|
nextStepMap: nextStepMap,
|
|
2176
|
+
triggerRedirectMap: triggerRedirectMap,
|
|
2136
2177
|
autoFocus: autoFocus,
|
|
2137
2178
|
children: inputs
|
|
2138
2179
|
}
|
|
@@ -2143,44 +2184,17 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
|
|
|
2143
2184
|
|
|
2144
2185
|
// Single question step
|
|
2145
2186
|
function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
2187
|
+
if (typeof updates.nextOnInput === 'undefined') {
|
|
2188
|
+
updates.nextOnInput = true;
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2146
2191
|
return step(
|
|
2147
2192
|
name,
|
|
2148
2193
|
[
|
|
2149
2194
|
verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
|
|
2150
2195
|
...Array.isArray(input) ? input : [input],
|
|
2151
2196
|
],
|
|
2152
|
-
updates
|
|
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
|
|
2197
|
+
updates
|
|
2184
2198
|
)
|
|
2185
2199
|
}
|
|
2186
2200
|
|
|
@@ -2196,7 +2210,7 @@ function contactInfo(updates = {}) {
|
|
|
2196
2210
|
TCPAConsent(updates.scope),
|
|
2197
2211
|
secureIcon()
|
|
2198
2212
|
],
|
|
2199
|
-
false
|
|
2213
|
+
{ nextOnEnter: false }
|
|
2200
2214
|
)
|
|
2201
2215
|
}
|
|
2202
2216
|
|
|
@@ -2215,10 +2229,46 @@ function firstAndLastV3(updates = {}, scope) {
|
|
|
2215
2229
|
firstName(scope),
|
|
2216
2230
|
lastName(scope)
|
|
2217
2231
|
],
|
|
2218
|
-
updates
|
|
2232
|
+
updates
|
|
2219
2233
|
)
|
|
2220
2234
|
}
|
|
2221
2235
|
|
|
2236
|
+
function zipcode(updates = {}) {
|
|
2237
|
+
return sqstep(
|
|
2238
|
+
'zipcode',
|
|
2239
|
+
zipcode$1(updates.scope, true, updates),
|
|
2240
|
+
'Please verify your Zip Code',
|
|
2241
|
+
updates
|
|
2242
|
+
)
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
function commentsWithBankruptcy(updates = {}) {
|
|
2246
|
+
return step(
|
|
2247
|
+
'commentsWithBankruptcy',
|
|
2248
|
+
[
|
|
2249
|
+
commentsStepHeadlineLegal(updates),
|
|
2250
|
+
comments({
|
|
2251
|
+
label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
|
|
2252
|
+
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
|
|
2253
|
+
inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
|
|
2254
|
+
}, updates.scope),
|
|
2255
|
+
// TODO: needs scope support
|
|
2256
|
+
bankruptcyCrossSell(),
|
|
2257
|
+
{
|
|
2258
|
+
$el: 'div',
|
|
2259
|
+
if: '$get(CrossSell_Bankruptcy).value == true',
|
|
2260
|
+
children: [
|
|
2261
|
+
comments({
|
|
2262
|
+
label: 'Bankruptcy or debt details:',
|
|
2263
|
+
placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
|
|
2264
|
+
inputClass: '!t-h-16'
|
|
2265
|
+
}, 'CrossSell:Bankruptcy')
|
|
2266
|
+
],
|
|
2267
|
+
}
|
|
2268
|
+
],
|
|
2269
|
+
{ nextOnEnter: false }
|
|
2270
|
+
)
|
|
2271
|
+
}
|
|
2222
2272
|
|
|
2223
2273
|
function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
2224
2274
|
return step(
|
|
@@ -2236,7 +2286,7 @@ function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
|
2236
2286
|
'CrossSell:Auto_and_Car_Accidents'
|
|
2237
2287
|
)
|
|
2238
2288
|
],
|
|
2239
|
-
updates
|
|
2289
|
+
updates
|
|
2240
2290
|
)
|
|
2241
2291
|
}
|
|
2242
2292
|
|
|
@@ -2255,7 +2305,7 @@ function childCustodyCrossSellQuestions(updates = {}) {
|
|
|
2255
2305
|
'CrossSell:Child_Custody'
|
|
2256
2306
|
)
|
|
2257
2307
|
],
|
|
2258
|
-
updates
|
|
2308
|
+
updates
|
|
2259
2309
|
)
|
|
2260
2310
|
}
|
|
2261
2311
|
|
|
@@ -2274,7 +2324,7 @@ function divorceAndSeparationCrossSellQuestions(updates = {}) {
|
|
|
2274
2324
|
'CrossSell:Divorce_and_Separation'
|
|
2275
2325
|
)
|
|
2276
2326
|
],
|
|
2277
|
-
updates
|
|
2327
|
+
updates
|
|
2278
2328
|
)
|
|
2279
2329
|
}
|
|
2280
2330
|
|
|
@@ -2293,7 +2343,7 @@ function duiAndDWICrossSellQuestions(updates = {}) {
|
|
|
2293
2343
|
'CrossSell:DUI_and_DWI'
|
|
2294
2344
|
)
|
|
2295
2345
|
],
|
|
2296
|
-
updates
|
|
2346
|
+
updates
|
|
2297
2347
|
)
|
|
2298
2348
|
}
|
|
2299
2349
|
|
|
@@ -2313,7 +2363,7 @@ function ssdiCrossSellQuestions(updates = {}) {
|
|
|
2313
2363
|
'CrossSell:Social_Security_Disability_and_Insurance'
|
|
2314
2364
|
)
|
|
2315
2365
|
],
|
|
2316
|
-
updates
|
|
2366
|
+
updates
|
|
2317
2367
|
)
|
|
2318
2368
|
}
|
|
2319
2369
|
|
|
@@ -2333,7 +2383,7 @@ function personalInjuryCrossSellQuestions(updates = {}) {
|
|
|
2333
2383
|
'CrossSell:Personal_Injury'
|
|
2334
2384
|
)
|
|
2335
2385
|
],
|
|
2336
|
-
updates
|
|
2386
|
+
updates
|
|
2337
2387
|
)
|
|
2338
2388
|
}
|
|
2339
2389
|
|
|
@@ -2352,7 +2402,7 @@ function powerOfAttorneyCrossSellQuestions(updates = {}) {
|
|
|
2352
2402
|
'CrossSell:Power_of_Attorney'
|
|
2353
2403
|
)
|
|
2354
2404
|
],
|
|
2355
|
-
updates
|
|
2405
|
+
updates
|
|
2356
2406
|
)
|
|
2357
2407
|
}
|
|
2358
2408
|
|
|
@@ -2371,7 +2421,7 @@ function willsAndTrustsCrossSellQuestions(updates = {}) {
|
|
|
2371
2421
|
'CrossSell:Wills_and_Trusts'
|
|
2372
2422
|
)
|
|
2373
2423
|
],
|
|
2374
|
-
updates
|
|
2424
|
+
updates
|
|
2375
2425
|
)
|
|
2376
2426
|
}
|
|
2377
2427
|
|
|
@@ -2391,21 +2441,20 @@ function workersCompensationCrossSellQuestions(updates = {}) {
|
|
|
2391
2441
|
'CrossSell:Workers_Compensation'
|
|
2392
2442
|
)
|
|
2393
2443
|
],
|
|
2394
|
-
updates
|
|
2444
|
+
updates
|
|
2395
2445
|
)
|
|
2396
2446
|
}
|
|
2397
2447
|
|
|
2398
2448
|
function legalCrossSells(updates = {}) {
|
|
2449
|
+
updates.nextOnInput = false;
|
|
2450
|
+
updates.stepKey = '$get(Type_Of_Legal_Problem).value';
|
|
2399
2451
|
return step(
|
|
2400
2452
|
'legalCrossSells',
|
|
2401
2453
|
[
|
|
2402
2454
|
legalCrossSellsStepHeadline(updates),
|
|
2403
2455
|
legalCrossSells$1(),
|
|
2404
2456
|
],
|
|
2405
|
-
updates
|
|
2406
|
-
false,
|
|
2407
|
-
// Note: we should probably scope this stepKey to this step name
|
|
2408
|
-
'$get(Type_Of_Legal_Problem).value'
|
|
2457
|
+
updates
|
|
2409
2458
|
)
|
|
2410
2459
|
}
|
|
2411
2460
|
|
|
@@ -2415,18 +2464,6 @@ function generalTOLP(updates = {}) {
|
|
|
2415
2464
|
[
|
|
2416
2465
|
generalTOLPCenter(updates.input),
|
|
2417
2466
|
],
|
|
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
2467
|
updates
|
|
2431
2468
|
)
|
|
2432
2469
|
}
|
|
@@ -2794,7 +2831,7 @@ function haveCourtDate(updates = {}) {
|
|
|
2794
2831
|
function applicantOccupation(updates = {}) {
|
|
2795
2832
|
return sqstep(
|
|
2796
2833
|
'applicantOccupation',
|
|
2797
|
-
|
|
2834
|
+
applicantOccupation$1(updates.scope, true, updates),
|
|
2798
2835
|
'What is the applicant\'s occupation?',
|
|
2799
2836
|
updates
|
|
2800
2837
|
)
|
|
@@ -2803,7 +2840,7 @@ function applicantOccupation(updates = {}) {
|
|
|
2803
2840
|
function applicantAge(updates = {}) {
|
|
2804
2841
|
return sqstep(
|
|
2805
2842
|
'applicantAge',
|
|
2806
|
-
|
|
2843
|
+
applicantAge$1(updates.scope, true, updates),
|
|
2807
2844
|
'What is the applicant\'s age?',
|
|
2808
2845
|
updates
|
|
2809
2846
|
)
|
|
@@ -2941,7 +2978,7 @@ function typeOfProperty(updates = {}) {
|
|
|
2941
2978
|
function amountPaymentsPastDue(updates = {}) {
|
|
2942
2979
|
return sqstep(
|
|
2943
2980
|
'amountPaymentsPastDue',
|
|
2944
|
-
|
|
2981
|
+
amountPaymentsPastDue$1(updates.scope, true),
|
|
2945
2982
|
'Total amount of payments past due:',
|
|
2946
2983
|
updates
|
|
2947
2984
|
)
|
|
@@ -3302,9 +3339,7 @@ function formProps(updates) {
|
|
|
3302
3339
|
return props
|
|
3303
3340
|
}
|
|
3304
3341
|
|
|
3305
|
-
const metaDefaults = {
|
|
3306
|
-
tcpaLanguage: TCPA_LANGUAGE
|
|
3307
|
-
};
|
|
3342
|
+
const metaDefaults = {};
|
|
3308
3343
|
|
|
3309
3344
|
function metaProps(updates) {
|
|
3310
3345
|
const data = merge(
|
|
@@ -3317,7 +3352,7 @@ function metaProps(updates) {
|
|
|
3317
3352
|
}
|
|
3318
3353
|
}
|
|
3319
3354
|
|
|
3320
|
-
function
|
|
3355
|
+
function defaultMetaPropsLegal(tolps = null) {
|
|
3321
3356
|
let commentsPlaceholders = TOLPCommentsPlaceholders;
|
|
3322
3357
|
let finalHeadlines = TOLPFinalHeadlines;
|
|
3323
3358
|
let finalSubHeadlines = TOLPFinalSubHeadlines;
|
|
@@ -3327,12 +3362,13 @@ function defaultMetaProps(tolps = null) {
|
|
|
3327
3362
|
finalSubHeadlines = filterMapByKey(TOLPFinalSubHeadlines, tolps);
|
|
3328
3363
|
}
|
|
3329
3364
|
return metaProps({
|
|
3330
|
-
|
|
3365
|
+
tcpaLanguage: TCPA_LANGUAGE_LEGAL,
|
|
3366
|
+
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
|
|
3331
3367
|
commentsPlaceholders: commentsPlaceholders,
|
|
3332
|
-
defaultFinalHeadline:
|
|
3368
|
+
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
|
|
3333
3369
|
finalHeadlines: finalHeadlines,
|
|
3334
|
-
defaultFinalSubHeadline:
|
|
3335
|
-
finalSubHeadlines: finalSubHeadlines
|
|
3370
|
+
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
|
|
3371
|
+
finalSubHeadlines: finalSubHeadlines
|
|
3336
3372
|
})
|
|
3337
3373
|
}
|
|
3338
3374
|
|
|
@@ -3901,388 +3937,434 @@ const nextStepsLegalNoHA = [
|
|
|
3901
3937
|
];
|
|
3902
3938
|
|
|
3903
3939
|
const nextStepsMapGeneralLegal = {
|
|
3904
|
-
|
|
3905
|
-
'
|
|
3906
|
-
'
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
'
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
'
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
'
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
'
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
'
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
'
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
'
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
'
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
'
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
'
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
'
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
'
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
'
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
'
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
'
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
'
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
'
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
'
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
'
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
'
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
'
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
'
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
'
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
'
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
'
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
'
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
'
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
'
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
'
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
'
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
'
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
'
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
'
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
'
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
'
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
'
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
'
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
'
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
'
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
'
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
'
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
3940
|
+
values: {
|
|
3941
|
+
'Type_Of_Legal_Problem': {
|
|
3942
|
+
'Adoption': [
|
|
3943
|
+
'maritalStatus',
|
|
3944
|
+
'haveChildren',
|
|
3945
|
+
...nextStepsLegalDefaultLPM
|
|
3946
|
+
],
|
|
3947
|
+
'Asbestos and Mesothelioma': [
|
|
3948
|
+
'incidentDate',
|
|
3949
|
+
'doctorTreatment',
|
|
3950
|
+
...nextStepsLegalDefault
|
|
3951
|
+
],
|
|
3952
|
+
'Auto and Car Accidents': [
|
|
3953
|
+
'incidentDate',
|
|
3954
|
+
'atFault',
|
|
3955
|
+
'primaryInjury',
|
|
3956
|
+
'doctorTreatment',
|
|
3957
|
+
'policeReportFiled',
|
|
3958
|
+
...nextStepsLegalNoDOI
|
|
3959
|
+
],
|
|
3960
|
+
'Bankruptcy': [
|
|
3961
|
+
'totalMonthlyIncome',
|
|
3962
|
+
'totalDebt',
|
|
3963
|
+
'ownRealEstate',
|
|
3964
|
+
'valueOfAssets',
|
|
3965
|
+
...nextStepsLegalDefault
|
|
3966
|
+
],
|
|
3967
|
+
'Business Lawyers': [
|
|
3968
|
+
'businessServices',
|
|
3969
|
+
'businessType',
|
|
3970
|
+
'numEmployeesOfBusiness',
|
|
3971
|
+
...nextStepsLegalDefault
|
|
3972
|
+
],
|
|
3973
|
+
'Child Custody': [
|
|
3974
|
+
'childRelationship',
|
|
3975
|
+
'childHome',
|
|
3976
|
+
'childPrimaryCaregiver',
|
|
3977
|
+
...nextStepsLegalDefaultLPM
|
|
3978
|
+
],
|
|
3979
|
+
'Child Support': [
|
|
3980
|
+
'childRelationship',
|
|
3981
|
+
'childHome',
|
|
3982
|
+
'childPrimaryCaregiver',
|
|
3983
|
+
...nextStepsLegalDefaultLPM
|
|
3984
|
+
],
|
|
3985
|
+
'Civil Rights and Discrimination': [
|
|
3986
|
+
'civilRightsType',
|
|
3987
|
+
...nextStepsLegalDefault
|
|
3988
|
+
],
|
|
3989
|
+
'Civil Lawsuit': [
|
|
3990
|
+
'civilDefense',
|
|
3991
|
+
'lawsuitOtherParty',
|
|
3992
|
+
...nextStepsLegalDefault
|
|
3993
|
+
],
|
|
3994
|
+
'File a Lawsuit': [
|
|
3995
|
+
'civilLawsuitTOLPDisplay',
|
|
3996
|
+
'lawsuitOtherParty',
|
|
3997
|
+
...nextStepsLegalDefault
|
|
3998
|
+
],
|
|
3999
|
+
'Defend a Lawsuit': [
|
|
4000
|
+
'lawsuitOtherParty',
|
|
4001
|
+
...nextStepsLegalDefault
|
|
4002
|
+
],
|
|
4003
|
+
'Consumer Lawyers': [
|
|
4004
|
+
'consumerLawyerType',
|
|
4005
|
+
'incidentDate',
|
|
4006
|
+
'lawsuitOtherParty',
|
|
4007
|
+
...nextStepsLegalDefault
|
|
4008
|
+
],
|
|
4009
|
+
'Criminal and Felony': [
|
|
4010
|
+
'criminalTOLPDisplay',
|
|
4011
|
+
'crimeCommittedDate',
|
|
4012
|
+
'roleInMatterCriminal',
|
|
4013
|
+
'pendingCharges',
|
|
4014
|
+
...nextStepsLegalDefaultLPM
|
|
4015
|
+
],
|
|
4016
|
+
'Debt and Collections': [
|
|
4017
|
+
'totalMonthlyIncome',
|
|
4018
|
+
'totalDebt',
|
|
4019
|
+
'ownRealEstate',
|
|
4020
|
+
'valueOfAssets',
|
|
4021
|
+
...nextStepsLegalDefault
|
|
4022
|
+
],
|
|
4023
|
+
'Divorce and Separation': [
|
|
4024
|
+
'maritalStatus',
|
|
4025
|
+
'haveChildren',
|
|
4026
|
+
...nextStepsLegalDefaultLPM
|
|
4027
|
+
],
|
|
4028
|
+
'DUI and DWI': [
|
|
4029
|
+
'incidentDate',
|
|
4030
|
+
'priorAlcoholOffenses',
|
|
4031
|
+
'typeOfAlcoholTest',
|
|
4032
|
+
'bloodContentAlcoholTest',
|
|
4033
|
+
'pendingCharges',
|
|
4034
|
+
...nextStepsLegalDefault
|
|
4035
|
+
],
|
|
4036
|
+
'Employment and Workplace': [
|
|
4037
|
+
'employmentAndWorkplaceTOLPDisplay',
|
|
4038
|
+
'numEmployeesOfBusiness',
|
|
4039
|
+
'employerType',
|
|
4040
|
+
'employeeAtCompany',
|
|
4041
|
+
...nextStepsLegalDefault
|
|
4042
|
+
],
|
|
4043
|
+
'Expungement': [
|
|
4044
|
+
'incidentDate',
|
|
4045
|
+
'criminalChargeType',
|
|
4046
|
+
...nextStepsLegalDefaultLPM
|
|
4047
|
+
],
|
|
4048
|
+
'Family Issues': [
|
|
4049
|
+
'maritalStatus',
|
|
4050
|
+
'haveChildren',
|
|
4051
|
+
...nextStepsLegalDefaultLPM
|
|
4052
|
+
],
|
|
4053
|
+
'Foreclosure': [
|
|
4054
|
+
'ownRealEstate',
|
|
4055
|
+
'typeOfProperty',
|
|
4056
|
+
'amountPaymentsPastDue',
|
|
4057
|
+
'loanAmount',
|
|
4058
|
+
'defaultNotice',
|
|
4059
|
+
...nextStepsLegalDefault
|
|
4060
|
+
],
|
|
4061
|
+
'Guardianship': [
|
|
4062
|
+
'maritalStatus',
|
|
4063
|
+
'haveChildren',
|
|
4064
|
+
...nextStepsLegalDefaultLPM
|
|
4065
|
+
],
|
|
4066
|
+
'Immigration and Visas': [
|
|
4067
|
+
'countryOfCitizenship',
|
|
4068
|
+
'immigrationLocation',
|
|
4069
|
+
'immigrationEntry',
|
|
4070
|
+
'immigrationType',
|
|
4071
|
+
'immigrationStatus',
|
|
4072
|
+
'immigrationDetails',
|
|
4073
|
+
...nextStepsLegalDefault
|
|
4074
|
+
],
|
|
4075
|
+
'Landlord and Tenant': [
|
|
4076
|
+
'landlordTenantIssue',
|
|
4077
|
+
'landlordTenantParty',
|
|
4078
|
+
...nextStepsLegalDefault
|
|
4079
|
+
],
|
|
4080
|
+
'Lemon Law': [
|
|
4081
|
+
'incidentDate',
|
|
4082
|
+
'lawsuitOtherParty',
|
|
4083
|
+
...nextStepsLegalDefault
|
|
4084
|
+
],
|
|
4085
|
+
'Long Term Disability': [
|
|
4086
|
+
'applicantOccupation',
|
|
4087
|
+
'applicantAge',
|
|
4088
|
+
'applicantLTDisabilityPolicy',
|
|
4089
|
+
'applicantDisabilityHowObtain',
|
|
4090
|
+
'applicantPreviouslyAppliedLtdBenefits',
|
|
4091
|
+
'applicantReceivedDisabilityBenefits',
|
|
4092
|
+
'applicantMonthlySalary',
|
|
4093
|
+
...nextStepsLegalNoDOI
|
|
4094
|
+
],
|
|
4095
|
+
'Medical Malpractice': [
|
|
4096
|
+
'incidentDate',
|
|
4097
|
+
'claimStatus',
|
|
4098
|
+
'doctorTreatment',
|
|
4099
|
+
'medicalMalpracticeInjuries',
|
|
4100
|
+
...nextStepsLegalDefault
|
|
4101
|
+
],
|
|
4102
|
+
'Patents and Intellectual Property': [
|
|
4103
|
+
'patentAssistanceType',
|
|
4104
|
+
'patentFor',
|
|
4105
|
+
...nextStepsLegalDefault
|
|
4106
|
+
],
|
|
4107
|
+
'Personal Injury': [
|
|
4108
|
+
'incidentDate',
|
|
4109
|
+
'claimStatus',
|
|
4110
|
+
'atFault',
|
|
4111
|
+
'primaryInjury',
|
|
4112
|
+
'doctorTreatment',
|
|
4113
|
+
...nextStepsLegalNoDOI
|
|
4114
|
+
],
|
|
4115
|
+
'Probate and Estates': [
|
|
4116
|
+
'valueOfAssets',
|
|
4117
|
+
'typeOfAssets',
|
|
4118
|
+
'roleInMatterProbate',
|
|
4119
|
+
'estateLegalServicesNeeded',
|
|
4120
|
+
...nextStepsLegalDefault
|
|
4121
|
+
],
|
|
4122
|
+
'Property Damage': [
|
|
4123
|
+
'realEstateArea',
|
|
4124
|
+
'wouldLikeLawyerTo',
|
|
4125
|
+
...nextStepsLegalDefault
|
|
4126
|
+
],
|
|
4127
|
+
'Real Estate': [
|
|
4128
|
+
'realEstateTOLPDisplay',
|
|
4129
|
+
'realEstateArea',
|
|
4130
|
+
'wouldLikeLawyerTo',
|
|
4131
|
+
...nextStepsLegalDefault
|
|
4132
|
+
],
|
|
4133
|
+
'Social Security Disability and Insurance': [
|
|
4134
|
+
'applicantAge',
|
|
4135
|
+
'disabilityConditionStopWork',
|
|
4136
|
+
'disabilityWorkHistory',
|
|
4137
|
+
'socialSecurityDisabilityReceivingBenefits',
|
|
4138
|
+
'doctorTreatment',
|
|
4139
|
+
...nextStepsLegalNoDOI
|
|
4140
|
+
],
|
|
4141
|
+
'Tax and IRS': [
|
|
4142
|
+
'totalDebt',
|
|
4143
|
+
'taxProblemDetails',
|
|
4144
|
+
'taxLevel',
|
|
4145
|
+
'taxIssueType',
|
|
4146
|
+
...nextStepsLegalDefault
|
|
4147
|
+
],
|
|
4148
|
+
'Traffic and Tickets': [
|
|
4149
|
+
'driversLicenseType',
|
|
4150
|
+
'trafficViolations',
|
|
4151
|
+
'haveCourtDate',
|
|
4152
|
+
...nextStepsLegalDefault
|
|
4153
|
+
],
|
|
4154
|
+
'Unemployment': [
|
|
4155
|
+
'numEmployeesOfBusiness',
|
|
4156
|
+
'employerType',
|
|
4157
|
+
...nextStepsLegalNoHA
|
|
4158
|
+
],
|
|
4159
|
+
'Victim of a Crime': [
|
|
4160
|
+
'crimeCommittedDate',
|
|
4161
|
+
'roleInMatterCriminal',
|
|
4162
|
+
'pendingCharges',
|
|
4163
|
+
...nextStepsLegalDefaultLPM
|
|
4164
|
+
],
|
|
4165
|
+
'Wills and Trusts': [
|
|
4166
|
+
'valueOfAssets',
|
|
4167
|
+
'typeOfAssets',
|
|
4168
|
+
'roleInMatterProbate',
|
|
4169
|
+
'estateLegalServicesNeeded',
|
|
4170
|
+
...nextStepsLegalDefault
|
|
4171
|
+
],
|
|
4172
|
+
'Workers Compensation': [
|
|
4173
|
+
'incidentDate',
|
|
4174
|
+
'claimStatus',
|
|
4175
|
+
'primaryInjury',
|
|
4176
|
+
'causeOfInjury',
|
|
4177
|
+
'doctorTreatment',
|
|
4178
|
+
...nextStepsLegalNoDOI
|
|
4179
|
+
],
|
|
4180
|
+
'Workplace Harassment': [
|
|
4181
|
+
'numEmployeesOfBusiness',
|
|
4182
|
+
'employerType',
|
|
4183
|
+
'employeeAtCompany',
|
|
4184
|
+
...nextStepsLegalDefault
|
|
4185
|
+
],
|
|
4186
|
+
'Workplace Discrimination': [
|
|
4187
|
+
'numEmployeesOfBusiness',
|
|
4188
|
+
'employerType',
|
|
4189
|
+
'employeeAtCompany',
|
|
4190
|
+
...nextStepsLegalDefault
|
|
4191
|
+
],
|
|
4192
|
+
'Wrongful Death': [
|
|
4193
|
+
'incidentDate',
|
|
4194
|
+
'relationshipToVictim',
|
|
4195
|
+
'criminalChargesFiled',
|
|
4196
|
+
'causeOfDeath',
|
|
4197
|
+
...nextStepsLegalNoDOI
|
|
4198
|
+
],
|
|
4199
|
+
'Wrongful Termination': [
|
|
4200
|
+
'numEmployeesOfBusiness',
|
|
4201
|
+
'employerType',
|
|
4202
|
+
...nextStepsLegalDefault
|
|
4203
|
+
],
|
|
4204
|
+
},
|
|
4205
|
+
'*': nextStepsLegalDefault
|
|
4206
|
+
}
|
|
4169
4207
|
};
|
|
4170
4208
|
|
|
4171
|
-
const TOLPNextSteps = nextStepsMapGeneralLegal["Type_Of_Legal_Problem"];
|
|
4209
|
+
const TOLPNextSteps = nextStepsMapGeneralLegal["values"]["Type_Of_Legal_Problem"];
|
|
4172
4210
|
|
|
4173
4211
|
({
|
|
4174
|
-
|
|
4175
|
-
'
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4212
|
+
values: {
|
|
4213
|
+
'Type_Of_Legal_Problem': {
|
|
4214
|
+
'Child Custody': TOLPNextSteps["Child Custody"],
|
|
4215
|
+
'Child Support': TOLPNextSteps["Child Support"],
|
|
4216
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
|
|
4217
|
+
},
|
|
4218
|
+
'*': TOLPNextSteps["Family Issues"]
|
|
4219
|
+
}
|
|
4180
4220
|
});
|
|
4181
4221
|
|
|
4182
4222
|
({
|
|
4183
|
-
|
|
4184
|
-
'
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4223
|
+
values: {
|
|
4224
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4225
|
+
'Alimony or Child Support': TOLPNextSteps["Child Support"],
|
|
4226
|
+
'Child Custody': TOLPNextSteps["Child Custody"],
|
|
4227
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
|
|
4228
|
+
},
|
|
4229
|
+
'*': TOLPNextSteps["Divorce and Separation"]
|
|
4230
|
+
}
|
|
4189
4231
|
});
|
|
4190
4232
|
|
|
4191
4233
|
({
|
|
4192
|
-
|
|
4193
|
-
'
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
'
|
|
4198
|
-
|
|
4199
|
-
|
|
4234
|
+
values: {
|
|
4235
|
+
'Civil_Defense': {
|
|
4236
|
+
'Yes': TOLPNextSteps["Defend a Lawsuit"],
|
|
4237
|
+
'No': TOLPNextSteps["File a Lawsuit"],
|
|
4238
|
+
},
|
|
4239
|
+
'*': [
|
|
4240
|
+
'lawsuitOtherParty',
|
|
4241
|
+
...nextStepsLegalDefault
|
|
4242
|
+
]
|
|
4243
|
+
}
|
|
4200
4244
|
});
|
|
4201
4245
|
|
|
4202
4246
|
({
|
|
4203
|
-
|
|
4204
|
-
'
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
'
|
|
4209
|
-
|
|
4210
|
-
|
|
4247
|
+
values: {
|
|
4248
|
+
'Type_Of_Legal_Problem': {
|
|
4249
|
+
'Defend a Lawsuit': TOLPNextSteps["Defend a Lawsuit"],
|
|
4250
|
+
'File a Lawsuit': TOLPNextSteps["File a Lawsuit"],
|
|
4251
|
+
},
|
|
4252
|
+
'*': [
|
|
4253
|
+
'lawsuitOtherParty',
|
|
4254
|
+
...nextStepsLegalDefault
|
|
4255
|
+
]
|
|
4256
|
+
}
|
|
4211
4257
|
});
|
|
4212
4258
|
|
|
4213
4259
|
const nextStepsMapCivilTOLPDisplay = {
|
|
4214
|
-
|
|
4215
|
-
'
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
'
|
|
4228
|
-
|
|
4229
|
-
|
|
4260
|
+
values: {
|
|
4261
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4262
|
+
'Automobile Accident': TOLPNextSteps["Auto and Car Accidents"],
|
|
4263
|
+
'Contract Disputes': TOLPNextSteps["Business Lawyers"],
|
|
4264
|
+
'Dog Bite': TOLPNextSteps["Personal Injury"],
|
|
4265
|
+
'Employment and Workplace': TOLPNextSteps["Employment and Workplace"],
|
|
4266
|
+
'Fraud': TOLPNextSteps["Consumer Lawyers"],
|
|
4267
|
+
'Medical Malpractice': TOLPNextSteps["Medical Malpractice"],
|
|
4268
|
+
'Personal Injury': TOLPNextSteps["Personal Injury"],
|
|
4269
|
+
'Property Damage': TOLPNextSteps["Property Damage"],
|
|
4270
|
+
'Real Estate': TOLPNextSteps["Real Estate"],
|
|
4271
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
|
|
4272
|
+
},
|
|
4273
|
+
'*': [
|
|
4274
|
+
'lawsuitOtherParty',
|
|
4275
|
+
...nextStepsLegalDefault
|
|
4276
|
+
]
|
|
4277
|
+
}
|
|
4230
4278
|
};
|
|
4231
4279
|
|
|
4232
4280
|
const nextStepsMapCriminalTOLPDisplay = {
|
|
4233
|
-
|
|
4234
|
-
'
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
'
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4281
|
+
values: {
|
|
4282
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4283
|
+
'Victim of a Crime': TOLPNextSteps["Victim of a Crime"],
|
|
4284
|
+
'DUI and DWI': TOLPNextSteps["DUI and DWI"],
|
|
4285
|
+
'Expungement': TOLPNextSteps["Expungement"],
|
|
4286
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
|
|
4287
|
+
},
|
|
4288
|
+
'*': [
|
|
4289
|
+
'crimeCommittedDate',
|
|
4290
|
+
'roleInMatterCriminal',
|
|
4291
|
+
'pendingCharges',
|
|
4292
|
+
...nextStepsLegalDefaultLPM
|
|
4293
|
+
]
|
|
4294
|
+
}
|
|
4245
4295
|
};
|
|
4246
4296
|
|
|
4247
4297
|
const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
|
|
4248
|
-
|
|
4249
|
-
'
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
'
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4298
|
+
values: {
|
|
4299
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4300
|
+
'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
|
|
4301
|
+
'Workers Compensation': TOLPNextSteps["Workers Compensation"],
|
|
4302
|
+
'Personal Injury': TOLPNextSteps["Personal Injury"],
|
|
4303
|
+
'Unemployment': TOLPNextSteps["Unemployment"],
|
|
4304
|
+
},
|
|
4305
|
+
'*': [
|
|
4306
|
+
'numEmployeesOfBusiness',
|
|
4307
|
+
'employerType',
|
|
4308
|
+
'employeeAtCompany',
|
|
4309
|
+
...nextStepsLegalDefault
|
|
4310
|
+
]
|
|
4311
|
+
}
|
|
4260
4312
|
};
|
|
4261
4313
|
|
|
4262
4314
|
({
|
|
4263
|
-
|
|
4264
|
-
'
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4315
|
+
values: {
|
|
4316
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4317
|
+
'Patents': TOLPNextSteps["Patents and Intellectual Property"],
|
|
4318
|
+
'Business Lawyers': TOLPNextSteps["Business Lawyers"],
|
|
4319
|
+
'Business Consulting': TOLPNextSteps["Business Lawyers"],
|
|
4320
|
+
},
|
|
4321
|
+
'*': nextStepsMapGeneralLegal["values"]["*"],
|
|
4322
|
+
}
|
|
4269
4323
|
});
|
|
4270
4324
|
|
|
4271
4325
|
const nextStepsMapRealEstateTOLPDisplay = {
|
|
4272
|
-
|
|
4273
|
-
'
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4326
|
+
values: {
|
|
4327
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4328
|
+
'Foreclosure': TOLPNextSteps["Foreclosure"],
|
|
4329
|
+
'Landlord and Tenant': TOLPNextSteps["Landlord and Tenant"],
|
|
4330
|
+
'Wills, Trusts, and Estates': TOLPNextSteps["Wills and Trusts"],
|
|
4331
|
+
'Property Damage': TOLPNextSteps['Property Damage'],
|
|
4332
|
+
},
|
|
4333
|
+
'*': [
|
|
4334
|
+
'realEstateArea',
|
|
4335
|
+
'wouldLikeLawyerTo',
|
|
4336
|
+
...nextStepsLegalDefault
|
|
4337
|
+
]
|
|
4338
|
+
}
|
|
4339
|
+
};
|
|
4340
|
+
|
|
4341
|
+
const nextStepsMapLegalCrossSells = {
|
|
4342
|
+
values: {
|
|
4343
|
+
'Legal_CrossSells': {
|
|
4344
|
+
'Auto and Car Accidents': ['autoAndCarAccidentCrossSellQuestions'],
|
|
4345
|
+
'Personal Injury': ['personalInjuryCrossSellQuestions'],
|
|
4346
|
+
'Workers Compensation': ['workersCompensationCrossSellQuestions'],
|
|
4347
|
+
'DUI and DWI': ['duiAndDWICrossSellQuestions'],
|
|
4348
|
+
'Long Term Disability': ['longTermDisabilityCrossSellQuestions'],
|
|
4349
|
+
'Social Security Disability and Insurance': ['ssdiCrossSellQuestions'],
|
|
4350
|
+
'Bankruptcy': ['bankruptcyCrossSellQuestions'],
|
|
4351
|
+
'Power of Attorney': ['powerOfAttorneyCrossSellQuestions'],
|
|
4352
|
+
'Wills and Trusts': ['willsAndTrustsCrossSellQuestions'],
|
|
4353
|
+
'Divorce and Separation': ['divorceAndSeparationCrossSellQuestions'],
|
|
4354
|
+
'Child Custody': ['childCustodyCrossSellQuestions'],
|
|
4355
|
+
},
|
|
4356
|
+
'*': ['firstAndLast', 'contactInfo'],
|
|
4277
4357
|
},
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4358
|
+
|
|
4359
|
+
// NOTE: this assumes a certain placement of the cross sell question
|
|
4360
|
+
// in the form flow.
|
|
4361
|
+
appendSteps: ['firstAndLast', 'contactInfo'],
|
|
4362
|
+
matchesAllowed: 1,
|
|
4283
4363
|
};
|
|
4284
4364
|
|
|
4285
|
-
const
|
|
4365
|
+
const legalCrossSellOptionMap = CROSS_SELL_OPTION_MAP_LEGAL;
|
|
4366
|
+
|
|
4367
|
+
const meta = defaultMetaPropsLegal();
|
|
4286
4368
|
|
|
4287
4369
|
meta.data.dynamicSchema = [
|
|
4288
4370
|
amountPaymentsPastDue(),
|
|
@@ -4304,10 +4386,6 @@ meta.data.dynamicSchema = [
|
|
|
4304
4386
|
childHome(),
|
|
4305
4387
|
childPrimaryCaregiver(),
|
|
4306
4388
|
childRelationship(),
|
|
4307
|
-
// We removed Civil Lawsuit from TOLP dropdown for now
|
|
4308
|
-
// steps.civilDefense({
|
|
4309
|
-
// nextStepMap: forms.nextStepsMapCivilDefense,
|
|
4310
|
-
// }),
|
|
4311
4389
|
civilLawsuitTOLPDisplay({
|
|
4312
4390
|
nextStepMap: nextStepsMapCivilTOLPDisplay
|
|
4313
4391
|
}),
|
|
@@ -4391,7 +4469,8 @@ meta.data.dynamicSchema = [
|
|
|
4391
4469
|
headlineClass: '!t-text-dark',
|
|
4392
4470
|
}),
|
|
4393
4471
|
legalCrossSells({
|
|
4394
|
-
headlineClass: '!t-text-dark'
|
|
4472
|
+
headlineClass: '!t-text-dark',
|
|
4473
|
+
nextStepMap: nextStepsMapLegalCrossSells,
|
|
4395
4474
|
}),
|
|
4396
4475
|
autoAndCarAccidentCrossSellQuestions(),
|
|
4397
4476
|
personalInjuryCrossSellQuestions(),
|
|
@@ -4416,6 +4495,7 @@ const schema = [
|
|
|
4416
4495
|
formId: 'generalLegalSingle',
|
|
4417
4496
|
redirectMap: legalRedirectMap(),
|
|
4418
4497
|
valueOverrideMap: legalAllValueOverrideMap,
|
|
4498
|
+
crossSellOptionMap: legalCrossSellOptionMap
|
|
4419
4499
|
}),
|
|
4420
4500
|
children: [
|
|
4421
4501
|
progressBar(),
|