bhl-forms 0.6.14 → 0.7.0
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 +278 -215
- 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 +288 -226
- package/dist/forms/business.iife.js +1 -1
- package/dist/forms/business.json +1 -1
- package/dist/forms/childAndFamily.es.js +271 -214
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +614 -545
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +608 -541
- 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 +275 -217
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +631 -562
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/divorce.es.js +614 -545
- package/dist/forms/divorce.iife.js +1 -1
- package/dist/forms/divorce.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +555 -496
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalHomeImprovement.es.js +3224 -0
- package/dist/forms/generalHomeImprovement.iife.js +1 -0
- package/dist/forms/generalHomeImprovement.json +1 -0
- package/dist/forms/generalLegal.es.js +274 -216
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalJustAnswer.es.js +4534 -0
- package/dist/forms/generalLegalJustAnswer.iife.js +1 -0
- package/dist/forms/generalLegalJustAnswer.json +1 -0
- package/dist/forms/generalLegalPopUnder.es.js +275 -217
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +645 -573
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderSingle.json +1 -1
- package/dist/forms/generalLegalSingle.es.js +645 -573
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +137 -130
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYouConsultation.es.js +647 -575
- package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
- package/dist/forms/generalLegalThankYouConsultation.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +271 -214
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/landlordTenant.es.js +287 -230
- package/dist/forms/landlordTenant.iife.js +1 -1
- package/dist/forms/landlordTenant.json +1 -1
- package/dist/forms/malpractice.es.js +276 -217
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +171 -165
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/patentsAndIP.es.js +617 -548
- package/dist/forms/patentsAndIP.iife.js +1 -1
- package/dist/forms/patentsAndIP.json +1 -1
- package/dist/forms/realEstate.es.js +272 -215
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +275 -217
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +139 -138
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +55 -52
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testRedirects.es.js +28 -22
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/vets.es.js +16 -7
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/willsAndTrusts.es.js +272 -213
- 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
|
|
|
@@ -261,6 +344,76 @@ const verticalDate = (updates) => {
|
|
|
261
344
|
return date(updates)
|
|
262
345
|
};
|
|
263
346
|
|
|
347
|
+
const email = (scope) => sbsText({
|
|
348
|
+
$formkit: 'email',
|
|
349
|
+
name: scope ? scope + ':' + 'Email' : 'Email',
|
|
350
|
+
label: 'Email Address:',
|
|
351
|
+
placeholder: 'email@domain.com',
|
|
352
|
+
autocomplete: 'email',
|
|
353
|
+
'data-tf-sensitive': 'false',
|
|
354
|
+
validation: 'required|email',
|
|
355
|
+
validationMessages: {
|
|
356
|
+
required: 'Email is required',
|
|
357
|
+
email: 'Invalid Email'
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
const firstName = (scope) => sbsText({
|
|
362
|
+
label: 'First Name:',
|
|
363
|
+
placeholder: 'First',
|
|
364
|
+
name: scope ? scope + ':' + 'First_Name' : 'First_Name',
|
|
365
|
+
autocomplete: "given-name",
|
|
366
|
+
validationMessages: {
|
|
367
|
+
required: 'First Name is required'
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
const lastName = (scope) => sbsText({
|
|
372
|
+
label: 'Last Name:',
|
|
373
|
+
placeholder: 'Last',
|
|
374
|
+
name: scope ? scope + ':' + 'Last_Name' : 'Last_Name',
|
|
375
|
+
autocomplete: "family-name",
|
|
376
|
+
validationMessages: {
|
|
377
|
+
required: 'Last Name is required'
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
|
|
381
|
+
const phone = (scope) => sbsText({
|
|
382
|
+
$formkit: 'tel',
|
|
383
|
+
name: scope ? scope + ':' + 'Primary_Phone' : 'Primary_Phone',
|
|
384
|
+
label: 'Phone Number:',
|
|
385
|
+
placeholder: '###-###-####',
|
|
386
|
+
maxlength: 12,
|
|
387
|
+
help: '10-digit phone number, hyphens optional',
|
|
388
|
+
autocomplete: 'tel-national',
|
|
389
|
+
'data-tf-sensitive': 'false',
|
|
390
|
+
validation: 'required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone',
|
|
391
|
+
validationMessages: {
|
|
392
|
+
required: 'Field is required',
|
|
393
|
+
matches: 'Invalid Phone Format, use ###-###-####',
|
|
394
|
+
valid_phone: 'Invalid Phone Number'
|
|
395
|
+
},
|
|
396
|
+
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
397
|
+
});
|
|
398
|
+
|
|
399
|
+
const zipcodeCenter = (updates = {}, scope) => text({
|
|
400
|
+
placeholder: '#####',
|
|
401
|
+
help: updates.help ?? "We try to match you with local help",
|
|
402
|
+
name: scope ? scope + ':' + 'Zip' : 'Zip',
|
|
403
|
+
maxlength: 5,
|
|
404
|
+
inputmode: "numeric",
|
|
405
|
+
autocomplete: 'postal-code',
|
|
406
|
+
validation: 'required|matches:/^[0-9]{5}$/',
|
|
407
|
+
validationMessages: {
|
|
408
|
+
required: 'Zip Code is required',
|
|
409
|
+
matches: 'Invalid Zip Code'
|
|
410
|
+
},
|
|
411
|
+
wrapperClass: 't-flex t-justify-center',
|
|
412
|
+
messagesClass: 't-flex t-justify-center',
|
|
413
|
+
inputClass: 't-text-center',
|
|
414
|
+
helpClass: 't-mt-2.5 !t-text-sm t-text-center'
|
|
415
|
+
});
|
|
416
|
+
|
|
264
417
|
const amountPaymentsPastDueCenter = () => verticalSelect({
|
|
265
418
|
name: 'Amount_Payments_Past_Due',
|
|
266
419
|
options: [
|
|
@@ -887,20 +1040,6 @@ const driversLicenseTypeCenter = () => verticalButtonRadio({
|
|
|
887
1040
|
]
|
|
888
1041
|
});
|
|
889
1042
|
|
|
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
1043
|
const employerTypeCenter = () => col2RadioCenter({
|
|
905
1044
|
name: 'Employer_Type',
|
|
906
1045
|
options: [
|
|
@@ -957,16 +1096,6 @@ const estateLegalServicesNeededCenter = (scope) => col2RadioCenter({
|
|
|
957
1096
|
]
|
|
958
1097
|
});
|
|
959
1098
|
|
|
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
1099
|
|
|
971
1100
|
const TOLPOptions = [
|
|
972
1101
|
'Adoption',
|
|
@@ -1120,17 +1249,6 @@ const incidentDateCenter = (scope) => verticalDate({
|
|
|
1120
1249
|
name: scope ? scope + ':' + 'Incident_Date' : 'Incident_Date',
|
|
1121
1250
|
});
|
|
1122
1251
|
|
|
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
1252
|
const landlordTenantPartyCenter = () => verticalButtonRadio({
|
|
1135
1253
|
name: 'Landlord_Tenant_Party',
|
|
1136
1254
|
options: [
|
|
@@ -1197,69 +1315,7 @@ const legalCrossSells$1 = () => col2Checkbox({
|
|
|
1197
1315
|
help: 'Just hit "Next" if none apply',
|
|
1198
1316
|
helpClass: 't-text-center !t-text-sm',
|
|
1199
1317
|
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
|
-
}
|
|
1318
|
+
options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
|
|
1263
1319
|
});
|
|
1264
1320
|
|
|
1265
1321
|
const loanAmountCenter = () => verticalSelect({
|
|
@@ -1365,24 +1421,6 @@ const pendingChargesCenter = (scope) => verticalYesNoRadio({
|
|
|
1365
1421
|
name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
|
|
1366
1422
|
});
|
|
1367
1423
|
|
|
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
1424
|
const primaryInjury$1 = (scope) => sbs2ColRadio({
|
|
1387
1425
|
name: scope ? scope + ':' + 'Primary_Injury' : 'Primary_Injury',
|
|
1388
1426
|
label: 'Primary Injury:',
|
|
@@ -1748,25 +1786,6 @@ const wouldLikeLawyerToCenter = () => verticalRadio({
|
|
|
1748
1786
|
]
|
|
1749
1787
|
});
|
|
1750
1788
|
|
|
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
1789
|
// ------ Question Groups
|
|
1771
1790
|
|
|
1772
1791
|
// NOTE: name must be unique within a form!
|
|
@@ -2030,13 +2049,20 @@ function verticalStepSubHeadline(updates) {
|
|
|
2030
2049
|
function commentsStepHeadline(updates) {
|
|
2031
2050
|
return {
|
|
2032
2051
|
$el: 'h3',
|
|
2033
|
-
children: updates.headline || 'Additional
|
|
2052
|
+
children: updates.headline || 'Additional Details',
|
|
2034
2053
|
attrs: {
|
|
2035
2054
|
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
2055
|
}
|
|
2037
2056
|
}
|
|
2038
2057
|
}
|
|
2039
2058
|
|
|
2059
|
+
function commentsStepHeadlineLegal(updates) {
|
|
2060
|
+
return commentsStepHeadline({
|
|
2061
|
+
headline: updates.headline || 'Additional Case Details',
|
|
2062
|
+
headlineClass: updates.headlineClass
|
|
2063
|
+
})
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2040
2066
|
function firstAndLastStepHeadline(updates) {
|
|
2041
2067
|
return {
|
|
2042
2068
|
$el: 'h3',
|
|
@@ -2060,7 +2086,7 @@ function legalCrossSellsStepHeadline(updates) {
|
|
|
2060
2086
|
function contactStepHeadline(updates) {
|
|
2061
2087
|
return {
|
|
2062
2088
|
$el: 'h3',
|
|
2063
|
-
children: updates.headline ||
|
|
2089
|
+
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
|
|
2064
2090
|
attrs: {
|
|
2065
2091
|
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
2092
|
}
|
|
@@ -2070,7 +2096,7 @@ function contactStepHeadline(updates) {
|
|
|
2070
2096
|
function contactStepSubHeadline(updates) {
|
|
2071
2097
|
return {
|
|
2072
2098
|
$el: 'h5',
|
|
2073
|
-
children: updates.subheadline ||
|
|
2099
|
+
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
|
|
2074
2100
|
attrs: {
|
|
2075
2101
|
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
2102
|
}
|
|
@@ -2110,10 +2136,16 @@ const stepDefaults = (step, stepKey) => ({
|
|
|
2110
2136
|
}
|
|
2111
2137
|
});
|
|
2112
2138
|
|
|
2113
|
-
function step(name, inputs,
|
|
2114
|
-
|
|
2115
|
-
nextOnEnter = true
|
|
2116
|
-
|
|
2139
|
+
function step(name, inputs, updates = {}) {
|
|
2140
|
+
const {
|
|
2141
|
+
nextOnEnter = true,
|
|
2142
|
+
nextOnInput = false,
|
|
2143
|
+
stepKey = undefined,
|
|
2144
|
+
nextStepMap = undefined,
|
|
2145
|
+
triggerRedirectMap = undefined,
|
|
2146
|
+
autoFocus = undefined,
|
|
2147
|
+
} = updates;
|
|
2148
|
+
|
|
2117
2149
|
if (inputs && inputs.length && (nextOnEnter || nextOnInput)) {
|
|
2118
2150
|
const lastInput = findLastInput(inputs[inputs.length - 1]);
|
|
2119
2151
|
if (lastInput && nextOnEnter === true) {
|
|
@@ -2133,6 +2165,7 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
|
|
|
2133
2165
|
id: name,
|
|
2134
2166
|
name: name,
|
|
2135
2167
|
nextStepMap: nextStepMap,
|
|
2168
|
+
triggerRedirectMap: triggerRedirectMap,
|
|
2136
2169
|
autoFocus: autoFocus,
|
|
2137
2170
|
children: inputs
|
|
2138
2171
|
}
|
|
@@ -2143,44 +2176,17 @@ function step(name, inputs, nextOnEnter = true, nextOnInput = false, stepKey = u
|
|
|
2143
2176
|
|
|
2144
2177
|
// Single question step
|
|
2145
2178
|
function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
2179
|
+
if (typeof updates.nextOnInput === 'undefined') {
|
|
2180
|
+
updates.nextOnInput = true;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2146
2183
|
return step(
|
|
2147
2184
|
name,
|
|
2148
2185
|
[
|
|
2149
2186
|
verticalStepHeadline({ headline: updates.headline ?? defaultHeadline, headlineClass: updates.headlineClass }),
|
|
2150
2187
|
...Array.isArray(input) ? input : [input],
|
|
2151
2188
|
],
|
|
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
|
|
2189
|
+
updates
|
|
2184
2190
|
)
|
|
2185
2191
|
}
|
|
2186
2192
|
|
|
@@ -2196,7 +2202,7 @@ function contactInfo(updates = {}) {
|
|
|
2196
2202
|
TCPAConsent(updates.scope),
|
|
2197
2203
|
secureIcon()
|
|
2198
2204
|
],
|
|
2199
|
-
false
|
|
2205
|
+
{ nextOnEnter: false }
|
|
2200
2206
|
)
|
|
2201
2207
|
}
|
|
2202
2208
|
|
|
@@ -2215,10 +2221,46 @@ function firstAndLastV3(updates = {}, scope) {
|
|
|
2215
2221
|
firstName(scope),
|
|
2216
2222
|
lastName(scope)
|
|
2217
2223
|
],
|
|
2218
|
-
updates
|
|
2224
|
+
updates
|
|
2225
|
+
)
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
function zipcode(updates = {}) {
|
|
2229
|
+
return sqstep(
|
|
2230
|
+
'zipcode',
|
|
2231
|
+
zipcodeCenter(updates, updates.scope),
|
|
2232
|
+
'Please verify your Zip Code',
|
|
2233
|
+
updates
|
|
2219
2234
|
)
|
|
2220
2235
|
}
|
|
2221
2236
|
|
|
2237
|
+
function commentsWithBankruptcy(updates = {}) {
|
|
2238
|
+
return step(
|
|
2239
|
+
'commentsWithBankruptcy',
|
|
2240
|
+
[
|
|
2241
|
+
commentsStepHeadlineLegal(updates),
|
|
2242
|
+
comments({
|
|
2243
|
+
label: typeof updates.label === 'undefined' ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
|
|
2244
|
+
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
|
|
2245
|
+
inputClass: typeof updates.inputClass === 'undefined' ? '!t-h-32' : updates.inputClass,
|
|
2246
|
+
}, updates.scope),
|
|
2247
|
+
// TODO: needs scope support
|
|
2248
|
+
bankruptcyCrossSell(),
|
|
2249
|
+
{
|
|
2250
|
+
$el: 'div',
|
|
2251
|
+
if: '$get(CrossSell_Bankruptcy).value == true',
|
|
2252
|
+
children: [
|
|
2253
|
+
comments({
|
|
2254
|
+
label: 'Bankruptcy or debt details:',
|
|
2255
|
+
placeholder: 'Please describe your bankrtupcy or debt situation in a few words...',
|
|
2256
|
+
inputClass: '!t-h-16'
|
|
2257
|
+
}, 'CrossSell:Bankruptcy')
|
|
2258
|
+
],
|
|
2259
|
+
}
|
|
2260
|
+
],
|
|
2261
|
+
{ nextOnEnter: false }
|
|
2262
|
+
)
|
|
2263
|
+
}
|
|
2222
2264
|
|
|
2223
2265
|
function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
2224
2266
|
return step(
|
|
@@ -2236,7 +2278,7 @@ function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
|
2236
2278
|
'CrossSell:Auto_and_Car_Accidents'
|
|
2237
2279
|
)
|
|
2238
2280
|
],
|
|
2239
|
-
updates
|
|
2281
|
+
updates
|
|
2240
2282
|
)
|
|
2241
2283
|
}
|
|
2242
2284
|
|
|
@@ -2255,7 +2297,7 @@ function childCustodyCrossSellQuestions(updates = {}) {
|
|
|
2255
2297
|
'CrossSell:Child_Custody'
|
|
2256
2298
|
)
|
|
2257
2299
|
],
|
|
2258
|
-
updates
|
|
2300
|
+
updates
|
|
2259
2301
|
)
|
|
2260
2302
|
}
|
|
2261
2303
|
|
|
@@ -2274,7 +2316,7 @@ function divorceAndSeparationCrossSellQuestions(updates = {}) {
|
|
|
2274
2316
|
'CrossSell:Divorce_and_Separation'
|
|
2275
2317
|
)
|
|
2276
2318
|
],
|
|
2277
|
-
updates
|
|
2319
|
+
updates
|
|
2278
2320
|
)
|
|
2279
2321
|
}
|
|
2280
2322
|
|
|
@@ -2293,7 +2335,7 @@ function duiAndDWICrossSellQuestions(updates = {}) {
|
|
|
2293
2335
|
'CrossSell:DUI_and_DWI'
|
|
2294
2336
|
)
|
|
2295
2337
|
],
|
|
2296
|
-
updates
|
|
2338
|
+
updates
|
|
2297
2339
|
)
|
|
2298
2340
|
}
|
|
2299
2341
|
|
|
@@ -2313,7 +2355,7 @@ function ssdiCrossSellQuestions(updates = {}) {
|
|
|
2313
2355
|
'CrossSell:Social_Security_Disability_and_Insurance'
|
|
2314
2356
|
)
|
|
2315
2357
|
],
|
|
2316
|
-
updates
|
|
2358
|
+
updates
|
|
2317
2359
|
)
|
|
2318
2360
|
}
|
|
2319
2361
|
|
|
@@ -2333,7 +2375,7 @@ function personalInjuryCrossSellQuestions(updates = {}) {
|
|
|
2333
2375
|
'CrossSell:Personal_Injury'
|
|
2334
2376
|
)
|
|
2335
2377
|
],
|
|
2336
|
-
updates
|
|
2378
|
+
updates
|
|
2337
2379
|
)
|
|
2338
2380
|
}
|
|
2339
2381
|
|
|
@@ -2352,7 +2394,7 @@ function powerOfAttorneyCrossSellQuestions(updates = {}) {
|
|
|
2352
2394
|
'CrossSell:Power_of_Attorney'
|
|
2353
2395
|
)
|
|
2354
2396
|
],
|
|
2355
|
-
updates
|
|
2397
|
+
updates
|
|
2356
2398
|
)
|
|
2357
2399
|
}
|
|
2358
2400
|
|
|
@@ -2371,7 +2413,7 @@ function willsAndTrustsCrossSellQuestions(updates = {}) {
|
|
|
2371
2413
|
'CrossSell:Wills_and_Trusts'
|
|
2372
2414
|
)
|
|
2373
2415
|
],
|
|
2374
|
-
updates
|
|
2416
|
+
updates
|
|
2375
2417
|
)
|
|
2376
2418
|
}
|
|
2377
2419
|
|
|
@@ -2391,21 +2433,20 @@ function workersCompensationCrossSellQuestions(updates = {}) {
|
|
|
2391
2433
|
'CrossSell:Workers_Compensation'
|
|
2392
2434
|
)
|
|
2393
2435
|
],
|
|
2394
|
-
updates
|
|
2436
|
+
updates
|
|
2395
2437
|
)
|
|
2396
2438
|
}
|
|
2397
2439
|
|
|
2398
2440
|
function legalCrossSells(updates = {}) {
|
|
2441
|
+
updates.nextOnInput = false;
|
|
2442
|
+
updates.stepKey = '$get(Type_Of_Legal_Problem).value';
|
|
2399
2443
|
return step(
|
|
2400
2444
|
'legalCrossSells',
|
|
2401
2445
|
[
|
|
2402
2446
|
legalCrossSellsStepHeadline(updates),
|
|
2403
2447
|
legalCrossSells$1(),
|
|
2404
2448
|
],
|
|
2405
|
-
updates
|
|
2406
|
-
false,
|
|
2407
|
-
// Note: we should probably scope this stepKey to this step name
|
|
2408
|
-
'$get(Type_Of_Legal_Problem).value'
|
|
2449
|
+
updates
|
|
2409
2450
|
)
|
|
2410
2451
|
}
|
|
2411
2452
|
|
|
@@ -2415,18 +2456,6 @@ function generalTOLP(updates = {}) {
|
|
|
2415
2456
|
[
|
|
2416
2457
|
generalTOLPCenter(updates.input),
|
|
2417
2458
|
],
|
|
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
2459
|
updates
|
|
2431
2460
|
)
|
|
2432
2461
|
}
|
|
@@ -3302,9 +3331,7 @@ function formProps(updates) {
|
|
|
3302
3331
|
return props
|
|
3303
3332
|
}
|
|
3304
3333
|
|
|
3305
|
-
const metaDefaults = {
|
|
3306
|
-
tcpaLanguage: TCPA_LANGUAGE
|
|
3307
|
-
};
|
|
3334
|
+
const metaDefaults = {};
|
|
3308
3335
|
|
|
3309
3336
|
function metaProps(updates) {
|
|
3310
3337
|
const data = merge(
|
|
@@ -3317,7 +3344,7 @@ function metaProps(updates) {
|
|
|
3317
3344
|
}
|
|
3318
3345
|
}
|
|
3319
3346
|
|
|
3320
|
-
function
|
|
3347
|
+
function defaultMetaPropsLegal(tolps = null) {
|
|
3321
3348
|
let commentsPlaceholders = TOLPCommentsPlaceholders;
|
|
3322
3349
|
let finalHeadlines = TOLPFinalHeadlines;
|
|
3323
3350
|
let finalSubHeadlines = TOLPFinalSubHeadlines;
|
|
@@ -3327,12 +3354,13 @@ function defaultMetaProps(tolps = null) {
|
|
|
3327
3354
|
finalSubHeadlines = filterMapByKey(TOLPFinalSubHeadlines, tolps);
|
|
3328
3355
|
}
|
|
3329
3356
|
return metaProps({
|
|
3330
|
-
|
|
3357
|
+
tcpaLanguage: TCPA_LANGUAGE_LEGAL,
|
|
3358
|
+
defaultCommentsPlaceholder: DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
|
|
3331
3359
|
commentsPlaceholders: commentsPlaceholders,
|
|
3332
|
-
defaultFinalHeadline:
|
|
3360
|
+
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
|
|
3333
3361
|
finalHeadlines: finalHeadlines,
|
|
3334
|
-
defaultFinalSubHeadline:
|
|
3335
|
-
finalSubHeadlines: finalSubHeadlines
|
|
3362
|
+
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
|
|
3363
|
+
finalSubHeadlines: finalSubHeadlines
|
|
3336
3364
|
})
|
|
3337
3365
|
}
|
|
3338
3366
|
|
|
@@ -3901,388 +3929,434 @@ const nextStepsLegalNoHA = [
|
|
|
3901
3929
|
];
|
|
3902
3930
|
|
|
3903
3931
|
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
|
-
|
|
3932
|
+
values: {
|
|
3933
|
+
'Type_Of_Legal_Problem': {
|
|
3934
|
+
'Adoption': [
|
|
3935
|
+
'maritalStatus',
|
|
3936
|
+
'haveChildren',
|
|
3937
|
+
...nextStepsLegalDefaultLPM
|
|
3938
|
+
],
|
|
3939
|
+
'Asbestos and Mesothelioma': [
|
|
3940
|
+
'incidentDate',
|
|
3941
|
+
'doctorTreatment',
|
|
3942
|
+
...nextStepsLegalDefault
|
|
3943
|
+
],
|
|
3944
|
+
'Auto and Car Accidents': [
|
|
3945
|
+
'incidentDate',
|
|
3946
|
+
'atFault',
|
|
3947
|
+
'primaryInjury',
|
|
3948
|
+
'doctorTreatment',
|
|
3949
|
+
'policeReportFiled',
|
|
3950
|
+
...nextStepsLegalNoDOI
|
|
3951
|
+
],
|
|
3952
|
+
'Bankruptcy': [
|
|
3953
|
+
'totalMonthlyIncome',
|
|
3954
|
+
'totalDebt',
|
|
3955
|
+
'ownRealEstate',
|
|
3956
|
+
'valueOfAssets',
|
|
3957
|
+
...nextStepsLegalDefault
|
|
3958
|
+
],
|
|
3959
|
+
'Business Lawyers': [
|
|
3960
|
+
'businessServices',
|
|
3961
|
+
'businessType',
|
|
3962
|
+
'numEmployeesOfBusiness',
|
|
3963
|
+
...nextStepsLegalDefault
|
|
3964
|
+
],
|
|
3965
|
+
'Child Custody': [
|
|
3966
|
+
'childRelationship',
|
|
3967
|
+
'childHome',
|
|
3968
|
+
'childPrimaryCaregiver',
|
|
3969
|
+
...nextStepsLegalDefaultLPM
|
|
3970
|
+
],
|
|
3971
|
+
'Child Support': [
|
|
3972
|
+
'childRelationship',
|
|
3973
|
+
'childHome',
|
|
3974
|
+
'childPrimaryCaregiver',
|
|
3975
|
+
...nextStepsLegalDefaultLPM
|
|
3976
|
+
],
|
|
3977
|
+
'Civil Rights and Discrimination': [
|
|
3978
|
+
'civilRightsType',
|
|
3979
|
+
...nextStepsLegalDefault
|
|
3980
|
+
],
|
|
3981
|
+
'Civil Lawsuit': [
|
|
3982
|
+
'civilDefense',
|
|
3983
|
+
'lawsuitOtherParty',
|
|
3984
|
+
...nextStepsLegalDefault
|
|
3985
|
+
],
|
|
3986
|
+
'File a Lawsuit': [
|
|
3987
|
+
'civilLawsuitTOLPDisplay',
|
|
3988
|
+
'lawsuitOtherParty',
|
|
3989
|
+
...nextStepsLegalDefault
|
|
3990
|
+
],
|
|
3991
|
+
'Defend a Lawsuit': [
|
|
3992
|
+
'lawsuitOtherParty',
|
|
3993
|
+
...nextStepsLegalDefault
|
|
3994
|
+
],
|
|
3995
|
+
'Consumer Lawyers': [
|
|
3996
|
+
'consumerLawyerType',
|
|
3997
|
+
'incidentDate',
|
|
3998
|
+
'lawsuitOtherParty',
|
|
3999
|
+
...nextStepsLegalDefault
|
|
4000
|
+
],
|
|
4001
|
+
'Criminal and Felony': [
|
|
4002
|
+
'criminalTOLPDisplay',
|
|
4003
|
+
'crimeCommittedDate',
|
|
4004
|
+
'roleInMatterCriminal',
|
|
4005
|
+
'pendingCharges',
|
|
4006
|
+
...nextStepsLegalDefaultLPM
|
|
4007
|
+
],
|
|
4008
|
+
'Debt and Collections': [
|
|
4009
|
+
'totalMonthlyIncome',
|
|
4010
|
+
'totalDebt',
|
|
4011
|
+
'ownRealEstate',
|
|
4012
|
+
'valueOfAssets',
|
|
4013
|
+
...nextStepsLegalDefault
|
|
4014
|
+
],
|
|
4015
|
+
'Divorce and Separation': [
|
|
4016
|
+
'maritalStatus',
|
|
4017
|
+
'haveChildren',
|
|
4018
|
+
...nextStepsLegalDefaultLPM
|
|
4019
|
+
],
|
|
4020
|
+
'DUI and DWI': [
|
|
4021
|
+
'incidentDate',
|
|
4022
|
+
'priorAlcoholOffenses',
|
|
4023
|
+
'typeOfAlcoholTest',
|
|
4024
|
+
'bloodContentAlcoholTest',
|
|
4025
|
+
'pendingCharges',
|
|
4026
|
+
...nextStepsLegalDefault
|
|
4027
|
+
],
|
|
4028
|
+
'Employment and Workplace': [
|
|
4029
|
+
'employmentAndWorkplaceTOLPDisplay',
|
|
4030
|
+
'numEmployeesOfBusiness',
|
|
4031
|
+
'employerType',
|
|
4032
|
+
'employeeAtCompany',
|
|
4033
|
+
...nextStepsLegalDefault
|
|
4034
|
+
],
|
|
4035
|
+
'Expungement': [
|
|
4036
|
+
'incidentDate',
|
|
4037
|
+
'criminalChargeType',
|
|
4038
|
+
...nextStepsLegalDefaultLPM
|
|
4039
|
+
],
|
|
4040
|
+
'Family Issues': [
|
|
4041
|
+
'maritalStatus',
|
|
4042
|
+
'haveChildren',
|
|
4043
|
+
...nextStepsLegalDefaultLPM
|
|
4044
|
+
],
|
|
4045
|
+
'Foreclosure': [
|
|
4046
|
+
'ownRealEstate',
|
|
4047
|
+
'typeOfProperty',
|
|
4048
|
+
'amountPaymentsPastDue',
|
|
4049
|
+
'loanAmount',
|
|
4050
|
+
'defaultNotice',
|
|
4051
|
+
...nextStepsLegalDefault
|
|
4052
|
+
],
|
|
4053
|
+
'Guardianship': [
|
|
4054
|
+
'maritalStatus',
|
|
4055
|
+
'haveChildren',
|
|
4056
|
+
...nextStepsLegalDefaultLPM
|
|
4057
|
+
],
|
|
4058
|
+
'Immigration and Visas': [
|
|
4059
|
+
'countryOfCitizenship',
|
|
4060
|
+
'immigrationLocation',
|
|
4061
|
+
'immigrationEntry',
|
|
4062
|
+
'immigrationType',
|
|
4063
|
+
'immigrationStatus',
|
|
4064
|
+
'immigrationDetails',
|
|
4065
|
+
...nextStepsLegalDefault
|
|
4066
|
+
],
|
|
4067
|
+
'Landlord and Tenant': [
|
|
4068
|
+
'landlordTenantIssue',
|
|
4069
|
+
'landlordTenantParty',
|
|
4070
|
+
...nextStepsLegalDefault
|
|
4071
|
+
],
|
|
4072
|
+
'Lemon Law': [
|
|
4073
|
+
'incidentDate',
|
|
4074
|
+
'lawsuitOtherParty',
|
|
4075
|
+
...nextStepsLegalDefault
|
|
4076
|
+
],
|
|
4077
|
+
'Long Term Disability': [
|
|
4078
|
+
'applicantOccupation',
|
|
4079
|
+
'applicantAge',
|
|
4080
|
+
'applicantLTDisabilityPolicy',
|
|
4081
|
+
'applicantDisabilityHowObtain',
|
|
4082
|
+
'applicantPreviouslyAppliedLtdBenefits',
|
|
4083
|
+
'applicantReceivedDisabilityBenefits',
|
|
4084
|
+
'applicantMonthlySalary',
|
|
4085
|
+
...nextStepsLegalNoDOI
|
|
4086
|
+
],
|
|
4087
|
+
'Medical Malpractice': [
|
|
4088
|
+
'incidentDate',
|
|
4089
|
+
'claimStatus',
|
|
4090
|
+
'doctorTreatment',
|
|
4091
|
+
'medicalMalpracticeInjuries',
|
|
4092
|
+
...nextStepsLegalDefault
|
|
4093
|
+
],
|
|
4094
|
+
'Patents and Intellectual Property': [
|
|
4095
|
+
'patentAssistanceType',
|
|
4096
|
+
'patentFor',
|
|
4097
|
+
...nextStepsLegalDefault
|
|
4098
|
+
],
|
|
4099
|
+
'Personal Injury': [
|
|
4100
|
+
'incidentDate',
|
|
4101
|
+
'claimStatus',
|
|
4102
|
+
'atFault',
|
|
4103
|
+
'primaryInjury',
|
|
4104
|
+
'doctorTreatment',
|
|
4105
|
+
...nextStepsLegalNoDOI
|
|
4106
|
+
],
|
|
4107
|
+
'Probate and Estates': [
|
|
4108
|
+
'valueOfAssets',
|
|
4109
|
+
'typeOfAssets',
|
|
4110
|
+
'roleInMatterProbate',
|
|
4111
|
+
'estateLegalServicesNeeded',
|
|
4112
|
+
...nextStepsLegalDefault
|
|
4113
|
+
],
|
|
4114
|
+
'Property Damage': [
|
|
4115
|
+
'realEstateArea',
|
|
4116
|
+
'wouldLikeLawyerTo',
|
|
4117
|
+
...nextStepsLegalDefault
|
|
4118
|
+
],
|
|
4119
|
+
'Real Estate': [
|
|
4120
|
+
'realEstateTOLPDisplay',
|
|
4121
|
+
'realEstateArea',
|
|
4122
|
+
'wouldLikeLawyerTo',
|
|
4123
|
+
...nextStepsLegalDefault
|
|
4124
|
+
],
|
|
4125
|
+
'Social Security Disability and Insurance': [
|
|
4126
|
+
'applicantAge',
|
|
4127
|
+
'disabilityConditionStopWork',
|
|
4128
|
+
'disabilityWorkHistory',
|
|
4129
|
+
'socialSecurityDisabilityReceivingBenefits',
|
|
4130
|
+
'doctorTreatment',
|
|
4131
|
+
...nextStepsLegalNoDOI
|
|
4132
|
+
],
|
|
4133
|
+
'Tax and IRS': [
|
|
4134
|
+
'totalDebt',
|
|
4135
|
+
'taxProblemDetails',
|
|
4136
|
+
'taxLevel',
|
|
4137
|
+
'taxIssueType',
|
|
4138
|
+
...nextStepsLegalDefault
|
|
4139
|
+
],
|
|
4140
|
+
'Traffic and Tickets': [
|
|
4141
|
+
'driversLicenseType',
|
|
4142
|
+
'trafficViolations',
|
|
4143
|
+
'haveCourtDate',
|
|
4144
|
+
...nextStepsLegalDefault
|
|
4145
|
+
],
|
|
4146
|
+
'Unemployment': [
|
|
4147
|
+
'numEmployeesOfBusiness',
|
|
4148
|
+
'employerType',
|
|
4149
|
+
...nextStepsLegalNoHA
|
|
4150
|
+
],
|
|
4151
|
+
'Victim of a Crime': [
|
|
4152
|
+
'crimeCommittedDate',
|
|
4153
|
+
'roleInMatterCriminal',
|
|
4154
|
+
'pendingCharges',
|
|
4155
|
+
...nextStepsLegalDefaultLPM
|
|
4156
|
+
],
|
|
4157
|
+
'Wills and Trusts': [
|
|
4158
|
+
'valueOfAssets',
|
|
4159
|
+
'typeOfAssets',
|
|
4160
|
+
'roleInMatterProbate',
|
|
4161
|
+
'estateLegalServicesNeeded',
|
|
4162
|
+
...nextStepsLegalDefault
|
|
4163
|
+
],
|
|
4164
|
+
'Workers Compensation': [
|
|
4165
|
+
'incidentDate',
|
|
4166
|
+
'claimStatus',
|
|
4167
|
+
'primaryInjury',
|
|
4168
|
+
'causeOfInjury',
|
|
4169
|
+
'doctorTreatment',
|
|
4170
|
+
...nextStepsLegalNoDOI
|
|
4171
|
+
],
|
|
4172
|
+
'Workplace Harassment': [
|
|
4173
|
+
'numEmployeesOfBusiness',
|
|
4174
|
+
'employerType',
|
|
4175
|
+
'employeeAtCompany',
|
|
4176
|
+
...nextStepsLegalDefault
|
|
4177
|
+
],
|
|
4178
|
+
'Workplace Discrimination': [
|
|
4179
|
+
'numEmployeesOfBusiness',
|
|
4180
|
+
'employerType',
|
|
4181
|
+
'employeeAtCompany',
|
|
4182
|
+
...nextStepsLegalDefault
|
|
4183
|
+
],
|
|
4184
|
+
'Wrongful Death': [
|
|
4185
|
+
'incidentDate',
|
|
4186
|
+
'relationshipToVictim',
|
|
4187
|
+
'criminalChargesFiled',
|
|
4188
|
+
'causeOfDeath',
|
|
4189
|
+
...nextStepsLegalNoDOI
|
|
4190
|
+
],
|
|
4191
|
+
'Wrongful Termination': [
|
|
4192
|
+
'numEmployeesOfBusiness',
|
|
4193
|
+
'employerType',
|
|
4194
|
+
...nextStepsLegalDefault
|
|
4195
|
+
],
|
|
4196
|
+
},
|
|
4197
|
+
'*': nextStepsLegalDefault
|
|
4198
|
+
}
|
|
4169
4199
|
};
|
|
4170
4200
|
|
|
4171
|
-
const TOLPNextSteps = nextStepsMapGeneralLegal["Type_Of_Legal_Problem"];
|
|
4201
|
+
const TOLPNextSteps = nextStepsMapGeneralLegal["values"]["Type_Of_Legal_Problem"];
|
|
4172
4202
|
|
|
4173
4203
|
({
|
|
4174
|
-
|
|
4175
|
-
'
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4204
|
+
values: {
|
|
4205
|
+
'Type_Of_Legal_Problem': {
|
|
4206
|
+
'Child Custody': TOLPNextSteps["Child Custody"],
|
|
4207
|
+
'Child Support': TOLPNextSteps["Child Support"],
|
|
4208
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
|
|
4209
|
+
},
|
|
4210
|
+
'*': TOLPNextSteps["Family Issues"]
|
|
4211
|
+
}
|
|
4180
4212
|
});
|
|
4181
4213
|
|
|
4182
4214
|
({
|
|
4183
|
-
|
|
4184
|
-
'
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4215
|
+
values: {
|
|
4216
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4217
|
+
'Alimony or Child Support': TOLPNextSteps["Child Support"],
|
|
4218
|
+
'Child Custody': TOLPNextSteps["Child Custody"],
|
|
4219
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
|
|
4220
|
+
},
|
|
4221
|
+
'*': TOLPNextSteps["Divorce and Separation"]
|
|
4222
|
+
}
|
|
4189
4223
|
});
|
|
4190
4224
|
|
|
4191
4225
|
({
|
|
4192
|
-
|
|
4193
|
-
'
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
'
|
|
4198
|
-
|
|
4199
|
-
|
|
4226
|
+
values: {
|
|
4227
|
+
'Civil_Defense': {
|
|
4228
|
+
'Yes': TOLPNextSteps["Defend a Lawsuit"],
|
|
4229
|
+
'No': TOLPNextSteps["File a Lawsuit"],
|
|
4230
|
+
},
|
|
4231
|
+
'*': [
|
|
4232
|
+
'lawsuitOtherParty',
|
|
4233
|
+
...nextStepsLegalDefault
|
|
4234
|
+
]
|
|
4235
|
+
}
|
|
4200
4236
|
});
|
|
4201
4237
|
|
|
4202
4238
|
({
|
|
4203
|
-
|
|
4204
|
-
'
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
'
|
|
4209
|
-
|
|
4210
|
-
|
|
4239
|
+
values: {
|
|
4240
|
+
'Type_Of_Legal_Problem': {
|
|
4241
|
+
'Defend a Lawsuit': TOLPNextSteps["Defend a Lawsuit"],
|
|
4242
|
+
'File a Lawsuit': TOLPNextSteps["File a Lawsuit"],
|
|
4243
|
+
},
|
|
4244
|
+
'*': [
|
|
4245
|
+
'lawsuitOtherParty',
|
|
4246
|
+
...nextStepsLegalDefault
|
|
4247
|
+
]
|
|
4248
|
+
}
|
|
4211
4249
|
});
|
|
4212
4250
|
|
|
4213
4251
|
const nextStepsMapCivilTOLPDisplay = {
|
|
4214
|
-
|
|
4215
|
-
'
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
'
|
|
4228
|
-
|
|
4229
|
-
|
|
4252
|
+
values: {
|
|
4253
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4254
|
+
'Automobile Accident': TOLPNextSteps["Auto and Car Accidents"],
|
|
4255
|
+
'Contract Disputes': TOLPNextSteps["Business Lawyers"],
|
|
4256
|
+
'Dog Bite': TOLPNextSteps["Personal Injury"],
|
|
4257
|
+
'Employment and Workplace': TOLPNextSteps["Employment and Workplace"],
|
|
4258
|
+
'Fraud': TOLPNextSteps["Consumer Lawyers"],
|
|
4259
|
+
'Medical Malpractice': TOLPNextSteps["Medical Malpractice"],
|
|
4260
|
+
'Personal Injury': TOLPNextSteps["Personal Injury"],
|
|
4261
|
+
'Property Damage': TOLPNextSteps["Property Damage"],
|
|
4262
|
+
'Real Estate': TOLPNextSteps["Real Estate"],
|
|
4263
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
|
|
4264
|
+
},
|
|
4265
|
+
'*': [
|
|
4266
|
+
'lawsuitOtherParty',
|
|
4267
|
+
...nextStepsLegalDefault
|
|
4268
|
+
]
|
|
4269
|
+
}
|
|
4230
4270
|
};
|
|
4231
4271
|
|
|
4232
4272
|
const nextStepsMapCriminalTOLPDisplay = {
|
|
4233
|
-
|
|
4234
|
-
'
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
'
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4273
|
+
values: {
|
|
4274
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4275
|
+
'Victim of a Crime': TOLPNextSteps["Victim of a Crime"],
|
|
4276
|
+
'DUI and DWI': TOLPNextSteps["DUI and DWI"],
|
|
4277
|
+
'Expungement': TOLPNextSteps["Expungement"],
|
|
4278
|
+
'Not Sure or Other': nextStepsMapGeneralLegal["values"]["*"],
|
|
4279
|
+
},
|
|
4280
|
+
'*': [
|
|
4281
|
+
'crimeCommittedDate',
|
|
4282
|
+
'roleInMatterCriminal',
|
|
4283
|
+
'pendingCharges',
|
|
4284
|
+
...nextStepsLegalDefaultLPM
|
|
4285
|
+
]
|
|
4286
|
+
}
|
|
4245
4287
|
};
|
|
4246
4288
|
|
|
4247
4289
|
const nextStepsMapEmploymentAndWorkplaceTOLPDisplay = {
|
|
4248
|
-
|
|
4249
|
-
'
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
'
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4290
|
+
values: {
|
|
4291
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4292
|
+
'Wrongful Termination': TOLPNextSteps["Wrongful Termination"],
|
|
4293
|
+
'Workers Compensation': TOLPNextSteps["Workers Compensation"],
|
|
4294
|
+
'Personal Injury': TOLPNextSteps["Personal Injury"],
|
|
4295
|
+
'Unemployment': TOLPNextSteps["Unemployment"],
|
|
4296
|
+
},
|
|
4297
|
+
'*': [
|
|
4298
|
+
'numEmployeesOfBusiness',
|
|
4299
|
+
'employerType',
|
|
4300
|
+
'employeeAtCompany',
|
|
4301
|
+
...nextStepsLegalDefault
|
|
4302
|
+
]
|
|
4303
|
+
}
|
|
4260
4304
|
};
|
|
4261
4305
|
|
|
4262
4306
|
({
|
|
4263
|
-
|
|
4264
|
-
'
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4307
|
+
values: {
|
|
4308
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4309
|
+
'Patents': TOLPNextSteps["Patents and Intellectual Property"],
|
|
4310
|
+
'Business Lawyers': TOLPNextSteps["Business Lawyers"],
|
|
4311
|
+
'Business Consulting': TOLPNextSteps["Business Lawyers"],
|
|
4312
|
+
},
|
|
4313
|
+
'*': nextStepsMapGeneralLegal["values"]["*"],
|
|
4314
|
+
}
|
|
4269
4315
|
});
|
|
4270
4316
|
|
|
4271
4317
|
const nextStepsMapRealEstateTOLPDisplay = {
|
|
4272
|
-
|
|
4273
|
-
'
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4318
|
+
values: {
|
|
4319
|
+
'Type_Of_Legal_Problem_Display': {
|
|
4320
|
+
'Foreclosure': TOLPNextSteps["Foreclosure"],
|
|
4321
|
+
'Landlord and Tenant': TOLPNextSteps["Landlord and Tenant"],
|
|
4322
|
+
'Wills, Trusts, and Estates': TOLPNextSteps["Wills and Trusts"],
|
|
4323
|
+
'Property Damage': TOLPNextSteps['Property Damage'],
|
|
4324
|
+
},
|
|
4325
|
+
'*': [
|
|
4326
|
+
'realEstateArea',
|
|
4327
|
+
'wouldLikeLawyerTo',
|
|
4328
|
+
...nextStepsLegalDefault
|
|
4329
|
+
]
|
|
4330
|
+
}
|
|
4331
|
+
};
|
|
4332
|
+
|
|
4333
|
+
const nextStepsMapLegalCrossSells = {
|
|
4334
|
+
values: {
|
|
4335
|
+
'Legal_CrossSells': {
|
|
4336
|
+
'Auto and Car Accidents': ['autoAndCarAccidentCrossSellQuestions'],
|
|
4337
|
+
'Personal Injury': ['personalInjuryCrossSellQuestions'],
|
|
4338
|
+
'Workers Compensation': ['workersCompensationCrossSellQuestions'],
|
|
4339
|
+
'DUI and DWI': ['duiAndDWICrossSellQuestions'],
|
|
4340
|
+
'Long Term Disability': ['longTermDisabilityCrossSellQuestions'],
|
|
4341
|
+
'Social Security Disability and Insurance': ['ssdiCrossSellQuestions'],
|
|
4342
|
+
'Bankruptcy': ['bankruptcyCrossSellQuestions'],
|
|
4343
|
+
'Power of Attorney': ['powerOfAttorneyCrossSellQuestions'],
|
|
4344
|
+
'Wills and Trusts': ['willsAndTrustsCrossSellQuestions'],
|
|
4345
|
+
'Divorce and Separation': ['divorceAndSeparationCrossSellQuestions'],
|
|
4346
|
+
'Child Custody': ['childCustodyCrossSellQuestions'],
|
|
4347
|
+
},
|
|
4348
|
+
'*': ['firstAndLast', 'contactInfo'],
|
|
4277
4349
|
},
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4350
|
+
|
|
4351
|
+
// NOTE: this assumes a certain placement of the cross sell question
|
|
4352
|
+
// in the form flow.
|
|
4353
|
+
appendSteps: ['firstAndLast', 'contactInfo'],
|
|
4354
|
+
matchesAllowed: 1,
|
|
4283
4355
|
};
|
|
4284
4356
|
|
|
4285
|
-
const
|
|
4357
|
+
const legalCrossSellOptionMap = CROSS_SELL_OPTION_MAP_LEGAL;
|
|
4358
|
+
|
|
4359
|
+
const meta = defaultMetaPropsLegal();
|
|
4286
4360
|
|
|
4287
4361
|
meta.data.dynamicSchema = [
|
|
4288
4362
|
amountPaymentsPastDue(),
|
|
@@ -4304,10 +4378,6 @@ meta.data.dynamicSchema = [
|
|
|
4304
4378
|
childHome(),
|
|
4305
4379
|
childPrimaryCaregiver(),
|
|
4306
4380
|
childRelationship(),
|
|
4307
|
-
// We removed Civil Lawsuit from TOLP dropdown for now
|
|
4308
|
-
// steps.civilDefense({
|
|
4309
|
-
// nextStepMap: forms.nextStepsMapCivilDefense,
|
|
4310
|
-
// }),
|
|
4311
4381
|
civilLawsuitTOLPDisplay({
|
|
4312
4382
|
nextStepMap: nextStepsMapCivilTOLPDisplay
|
|
4313
4383
|
}),
|
|
@@ -4391,7 +4461,8 @@ meta.data.dynamicSchema = [
|
|
|
4391
4461
|
headlineClass: '!t-text-dark',
|
|
4392
4462
|
}),
|
|
4393
4463
|
legalCrossSells({
|
|
4394
|
-
headlineClass: '!t-text-dark'
|
|
4464
|
+
headlineClass: '!t-text-dark',
|
|
4465
|
+
nextStepMap: nextStepsMapLegalCrossSells,
|
|
4395
4466
|
}),
|
|
4396
4467
|
autoAndCarAccidentCrossSellQuestions(),
|
|
4397
4468
|
personalInjuryCrossSellQuestions(),
|
|
@@ -4416,6 +4487,7 @@ const schema = [
|
|
|
4416
4487
|
formId: 'generalLegalSingle',
|
|
4417
4488
|
redirectMap: legalRedirectMap(),
|
|
4418
4489
|
valueOverrideMap: legalAllValueOverrideMap,
|
|
4490
|
+
crossSellOptionMap: legalCrossSellOptionMap
|
|
4419
4491
|
}),
|
|
4420
4492
|
children: [
|
|
4421
4493
|
progressBar(),
|
|
@@ -4453,8 +4525,8 @@ const schema = [
|
|
|
4453
4525
|
const formKitNode = schema.find(item => item.$cmp === "FormKit");
|
|
4454
4526
|
|
|
4455
4527
|
// HACK: need to update both to mimic formProps behavior
|
|
4456
|
-
formKitNode.props.name = 'generalLegalThankYouConsultation
|
|
4457
|
-
formKitNode.props.formId = 'generalLegalThankYouConsultation
|
|
4528
|
+
formKitNode.props.name = 'generalLegalThankYouConsultation';
|
|
4529
|
+
formKitNode.props.formId = 'generalLegalThankYouConsultation';
|
|
4458
4530
|
formKitNode.props.redirectMap = {
|
|
4459
4531
|
'*': '/thank-you-consultation'
|
|
4460
4532
|
};
|