bhl-forms 0.7.3 → 0.7.5
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 +551 -543
- package/dist/bhl-forms.iife.js +4 -4
- package/dist/bhl-forms.modern.es.js +649 -649
- package/dist/bhl-forms.modern.iife.js +7 -7
- package/dist/bhl-forms.modern.umd.js +7 -7
- package/dist/bhl-forms.umd.js +4 -4
- package/dist/forms/accidentsAndInjuries.es.js +1461 -1151
- package/dist/forms/accidentsAndInjuries.iife.js +1 -1
- package/dist/forms/accidentsAndInjuries.json +1 -1
- package/dist/forms/appraisals.es.js +138 -137
- package/dist/forms/appraisals.iife.js +1 -1
- package/dist/forms/business.es.js +1434 -1149
- package/dist/forms/business.iife.js +1 -1
- package/dist/forms/business.json +1 -1
- package/dist/forms/childAndFamily.es.js +1329 -1043
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/childAndFamilySingle.es.js +1528 -1378
- package/dist/forms/childAndFamilySingle.iife.js +1 -1
- package/dist/forms/childAndFamilySingle.json +1 -1
- package/dist/forms/civilLawsuit.es.js +2000 -1807
- package/dist/forms/civilLawsuit.iife.js +1 -1
- package/dist/forms/civilLawsuit.json +1 -1
- package/dist/forms/coins.es.js +138 -137
- package/dist/forms/coins.iife.js +1 -1
- package/dist/forms/contracts.es.js +1349 -1050
- package/dist/forms/contracts.iife.js +1 -1
- package/dist/forms/contracts.json +1 -1
- package/dist/forms/criminal.es.js +1832 -1711
- package/dist/forms/criminal.iife.js +1 -1
- package/dist/forms/criminal.json +1 -1
- package/dist/forms/divorce.es.js +1541 -1385
- package/dist/forms/divorce.iife.js +1 -1
- package/dist/forms/divorce.json +1 -1
- package/dist/forms/employmentAndWorkplace.es.js +1833 -1678
- package/dist/forms/employmentAndWorkplace.iife.js +1 -1
- package/dist/forms/employmentAndWorkplace.json +1 -1
- package/dist/forms/generalHomeImprovement.es.js +2381 -2010
- package/dist/forms/generalHomeImprovement.iife.js +1 -1
- package/dist/forms/generalHomeImprovement.json +1 -1
- package/dist/forms/generalHomeImprovementThankYou.es.js +1795 -2008
- package/dist/forms/generalHomeImprovementThankYou.iife.js +1 -1
- package/dist/forms/generalHomeImprovementThankYou.json +1 -1
- package/dist/forms/generalLegal.es.js +3037 -2535
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/generalLegalJustAnswer.es.js +3216 -2872
- package/dist/forms/generalLegalJustAnswer.iife.js +1 -1
- package/dist/forms/generalLegalJustAnswer.json +1 -1
- package/dist/forms/generalLegalPopUnder.es.js +3037 -2535
- package/dist/forms/generalLegalPopUnder.iife.js +1 -1
- package/dist/forms/generalLegalPopUnder.json +1 -1
- package/dist/forms/generalLegalPopUnderSingle.es.js +3216 -2872
- package/dist/forms/generalLegalPopUnderSingle.iife.js +1 -1
- package/dist/forms/generalLegalPopUnderSingle.json +1 -1
- package/dist/forms/generalLegalSingle.es.js +3216 -2872
- package/dist/forms/generalLegalSingle.iife.js +1 -1
- package/dist/forms/generalLegalSingle.json +1 -1
- package/dist/forms/generalLegalThankYou.es.js +2825 -2303
- package/dist/forms/generalLegalThankYou.iife.js +1 -1
- package/dist/forms/generalLegalThankYou.json +1 -1
- package/dist/forms/generalLegalThankYouConsultation.es.js +3216 -2872
- package/dist/forms/generalLegalThankYouConsultation.iife.js +1 -1
- package/dist/forms/generalLegalThankYouConsultation.json +1 -1
- package/dist/forms/harassmentAndDiscrimination.es.js +1425 -1120
- package/dist/forms/harassmentAndDiscrimination.iife.js +1 -1
- package/dist/forms/harassmentAndDiscrimination.json +1 -1
- package/dist/forms/landlordTenant.es.js +1395 -1106
- package/dist/forms/landlordTenant.iife.js +1 -1
- package/dist/forms/landlordTenant.json +1 -1
- package/dist/forms/malpractice.es.js +1531 -1223
- package/dist/forms/malpractice.iife.js +1 -1
- package/dist/forms/malpractice.json +1 -1
- package/dist/forms/mechanics.es.js +702 -530
- package/dist/forms/mechanics.iife.js +1 -1
- package/dist/forms/mechanics.json +1 -1
- package/dist/forms/patentsAndIP.es.js +1830 -1652
- package/dist/forms/patentsAndIP.iife.js +1 -1
- package/dist/forms/patentsAndIP.json +1 -1
- package/dist/forms/realEstate.es.js +2852 -2405
- package/dist/forms/realEstate.iife.js +1 -1
- package/dist/forms/realEstate.json +1 -1
- package/dist/forms/repossession.es.js +1568 -1251
- package/dist/forms/repossession.iife.js +1 -1
- package/dist/forms/repossession.json +1 -1
- package/dist/forms/ssdi.es.js +635 -520
- package/dist/forms/ssdi.iife.js +1 -1
- package/dist/forms/ssdi.json +1 -1
- package/dist/forms/testForm.es.js +409 -371
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/forms/testRedirects.es.js +421 -316
- package/dist/forms/testRedirects.iife.js +1 -1
- package/dist/forms/testRedirects.json +1 -1
- package/dist/forms/vets.es.js +138 -137
- package/dist/forms/vets.iife.js +1 -1
- package/dist/forms/willsAndTrusts.es.js +1428 -1112
- package/dist/forms/willsAndTrusts.iife.js +1 -1
- package/dist/forms/willsAndTrusts.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +1 -1
|
@@ -6,96 +6,101 @@ 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
|
-
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL =
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const
|
|
9
|
+
const DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL =
|
|
10
|
+
'$getKey($meta, "commentsPlaceholders." + $get(Type_Of_Legal_Problem).value, $meta.defaultCommentsPlaceholder)';
|
|
11
|
+
const DEFAULT_COMMENTS_LABEL_LEGAL = "Please briefly describe your legal issue in a few words:";
|
|
12
|
+
const DEFAULT_FINAL_HEADLINE_LEGAL = "Submit Your Case";
|
|
13
|
+
const DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL =
|
|
14
|
+
'$getKey($meta, "finalHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalHeadline)';
|
|
15
|
+
const DEFAULT_FINAL_SUBHEADLINE_LEGAL =
|
|
16
|
+
"You may benefit from speaking with a legal professional. Please verify your contact information.";
|
|
17
|
+
const DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL =
|
|
18
|
+
'$getKey($meta, "finalSubHeadlines." + $get(Type_Of_Legal_Problem).value, $meta.defaultFinalSubHeadline)';
|
|
19
|
+
const TCPA_LANGUAGE_LEGAL =
|
|
20
|
+
"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
21
|
const defaultLegalImprovementCrossSells = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
23
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
24
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
25
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
26
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
27
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
23
28
|
};
|
|
24
29
|
const CROSS_SELL_OPTION_MAP_LEGAL = {
|
|
25
30
|
// Values can be a list or a map of value -> display value
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
"Auto and Car Accidents": {
|
|
32
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
33
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
34
|
+
"Workers Compensation": "Workplace Injury",
|
|
35
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
36
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
37
|
+
"Child Custody": "Need help with Child Custody",
|
|
33
38
|
},
|
|
34
39
|
"Personal Injury": {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
41
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
42
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
43
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
44
|
+
"Child Custody": "Need help with Child Custody",
|
|
40
45
|
// TODO add one more?
|
|
41
46
|
},
|
|
42
47
|
"Workers Compensation": {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
49
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
50
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
51
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
52
|
+
"Child Custody": "Need help with Child Custody",
|
|
48
53
|
// TODO add one more?
|
|
49
54
|
},
|
|
50
55
|
"DUI and DWI": {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
57
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
58
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
59
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
60
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
61
|
+
"Child Custody": "Need help with Child Custody",
|
|
57
62
|
},
|
|
58
63
|
"Wills and Trusts": {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
65
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
66
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
67
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
68
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
69
|
+
"Child Custody": "Need help with Child Custody",
|
|
65
70
|
},
|
|
66
71
|
"Probate and Estates": {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
73
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
74
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
75
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
76
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
77
|
+
"Child Custody": "Need help with Child Custody",
|
|
73
78
|
},
|
|
74
79
|
"Power of Attorney": {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
81
|
+
"Personal Injury": "Personal or Workplace Injury",
|
|
82
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
83
|
+
"Social Security Disability and Insurance": "Interest in Disability Benefits",
|
|
84
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
85
|
+
"Child Custody": "Need help with Child Custody",
|
|
81
86
|
},
|
|
82
87
|
"Long Term Disability": {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
89
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
90
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
91
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
92
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
93
|
+
"Child Custody": "Need help with Child Custody",
|
|
89
94
|
},
|
|
90
95
|
"Social Security Disability and Insurance": {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
"Auto and Car Accidents": "Injured in a Car Accident",
|
|
97
|
+
"DUI and DWI": "Involved in a DUI/DWI",
|
|
98
|
+
"Wills and Trusts": "Need a Will or Trust",
|
|
99
|
+
"Power of Attorney": "Update Power of Attorney",
|
|
100
|
+
"Divorce and Separation": "Need a Divorce or Separation",
|
|
101
|
+
"Child Custody": "Need help with Child Custody",
|
|
97
102
|
},
|
|
98
|
-
|
|
103
|
+
"*": defaultLegalImprovementCrossSells,
|
|
99
104
|
};
|
|
100
105
|
|
|
101
106
|
// ------ Common Base Settings
|
|
@@ -104,32 +109,49 @@ const checkbox = (updates) => {
|
|
|
104
109
|
if (updates.name && !updates.id) {
|
|
105
110
|
updates.id = updates.name;
|
|
106
111
|
}
|
|
107
|
-
return merge(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
return merge(
|
|
113
|
+
{
|
|
114
|
+
$formkit: "checkbox",
|
|
115
|
+
validation: "required",
|
|
116
|
+
validationMessages: {
|
|
117
|
+
required: "Field is required",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
updates
|
|
121
|
+
)
|
|
114
122
|
};
|
|
115
123
|
|
|
116
124
|
const sbsCheckbox = (updates) => {
|
|
117
|
-
updates.legendClass =
|
|
118
|
-
updates.fieldsetClass =
|
|
119
|
-
updates.optionsClass =
|
|
120
|
-
updates.innerClass =
|
|
121
|
-
updates.wrapperClass =
|
|
125
|
+
updates.legendClass = "legend-left required";
|
|
126
|
+
updates.fieldsetClass = "$reset side-by-side";
|
|
127
|
+
updates.optionsClass = "t-pl-1";
|
|
128
|
+
updates.innerClass = "t-flex t-items-center";
|
|
129
|
+
updates.wrapperClass = "t-mb-3";
|
|
122
130
|
return checkbox(updates)
|
|
123
131
|
};
|
|
124
132
|
|
|
125
133
|
const col2Checkbox = (updates) => {
|
|
126
134
|
if (!updates || !updates.legendClass) {
|
|
127
|
-
updates.legendClass =
|
|
135
|
+
updates.legendClass = "required";
|
|
128
136
|
}
|
|
129
|
-
updates.fieldsetClass =
|
|
130
|
-
updates.optionsClass =
|
|
131
|
-
updates.innerClass =
|
|
132
|
-
updates.wrapperClass =
|
|
137
|
+
updates.fieldsetClass = "$reset";
|
|
138
|
+
updates.optionsClass = "t-pl-8 md:t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
|
|
139
|
+
updates.innerClass = "t-items-start";
|
|
140
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
141
|
+
return checkbox(updates)
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
const verticalCol2Checkbox = (updates) => {
|
|
145
|
+
if (!updates || !updates.legendClass) {
|
|
146
|
+
updates.legendClass = "required t-w-[100%] t-text-center";
|
|
147
|
+
}
|
|
148
|
+
updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col";
|
|
149
|
+
updates.innerClass = "t-items-start";
|
|
150
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
151
|
+
updates.optionClass = "t-pl-4 md:t-pl-16 md:t-min-w-[200px]";
|
|
152
|
+
updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
|
|
153
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
154
|
+
updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
|
|
133
155
|
return checkbox(updates)
|
|
134
156
|
};
|
|
135
157
|
|
|
@@ -137,83 +159,105 @@ const radio = (updates) => {
|
|
|
137
159
|
if (updates.name && !updates.id) {
|
|
138
160
|
updates.id = updates.name;
|
|
139
161
|
}
|
|
140
|
-
return merge(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
162
|
+
return merge(
|
|
163
|
+
{
|
|
164
|
+
$formkit: "radio",
|
|
165
|
+
validation: "required",
|
|
166
|
+
validationMessages: {
|
|
167
|
+
required: "Field is required",
|
|
168
|
+
},
|
|
169
|
+
optionsClass: "t-pt-3 t-pl-1",
|
|
170
|
+
legendClass: "required",
|
|
145
171
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}, updates)
|
|
172
|
+
updates
|
|
173
|
+
)
|
|
149
174
|
};
|
|
150
175
|
|
|
176
|
+
const col2Radio = (updates) => {
|
|
177
|
+
updates.legendClass = "required";
|
|
178
|
+
updates.fieldsetClass = "$reset";
|
|
179
|
+
updates.optionsClass = "t-pl-2 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
|
|
180
|
+
updates.innerClass = "t-items-start";
|
|
181
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
182
|
+
return radio(updates)
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
// TODO: rename
|
|
151
186
|
const col2RadioCenter = (updates) => {
|
|
152
|
-
updates.legendClass =
|
|
153
|
-
if (typeof updates.fieldsetClass ===
|
|
154
|
-
updates.fieldsetClass =
|
|
187
|
+
updates.legendClass = "required t-w-[100%] t-text-center";
|
|
188
|
+
if (typeof updates.fieldsetClass === "undefined") {
|
|
189
|
+
updates.fieldsetClass = "$reset t-flex t-justify-center";
|
|
155
190
|
}
|
|
156
|
-
updates.
|
|
157
|
-
updates.
|
|
158
|
-
updates.
|
|
159
|
-
updates.
|
|
160
|
-
updates.messagesClass =
|
|
161
|
-
updates.helpClass =
|
|
191
|
+
updates.innerClass = "t-items-start";
|
|
192
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
193
|
+
updates.optionClass = "t-pl-4 md:t-pl-8 md:t-min-w-[200px]";
|
|
194
|
+
updates.optionsClass = "t-pl-4 t-pt-3 t-grid t-grid-cols-1 md:t-grid-cols-2";
|
|
195
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
196
|
+
updates.helpClass = "t-mt-0 t-mb-4 !t-text-sm t-text-center";
|
|
197
|
+
return radio(updates)
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
const sbsRadio = (updates) => {
|
|
201
|
+
updates.legendClass = "legend-left required";
|
|
202
|
+
updates.fieldsetClass = "$reset side-by-side";
|
|
203
|
+
updates.optionsClass = "t-pl-1";
|
|
204
|
+
updates.innerClass = "t-flex t-items-center";
|
|
205
|
+
updates.wrapperClass = "t-mb-3";
|
|
162
206
|
return radio(updates)
|
|
163
207
|
};
|
|
164
208
|
|
|
165
209
|
const sbs2ColRadio = (updates) => {
|
|
166
|
-
updates.legendClass =
|
|
167
|
-
updates.fieldsetClass =
|
|
168
|
-
updates.optionsClass =
|
|
169
|
-
updates.innerClass =
|
|
170
|
-
updates.wrapperClass =
|
|
210
|
+
updates.legendClass = "legend-left-flex md:t-max-w-[40%] required";
|
|
211
|
+
updates.fieldsetClass = "$reset side-by-side-flex";
|
|
212
|
+
updates.optionsClass = "md:t-ml-4 md:t-mt-2 t-grid t-grid-cols-1 md:t-grid-cols-2-125";
|
|
213
|
+
updates.innerClass = "t-flex t-items-start";
|
|
214
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
171
215
|
return radio(updates)
|
|
172
216
|
};
|
|
173
217
|
|
|
174
218
|
const sbs2ItemRadio = (updates) => {
|
|
175
|
-
updates.legendClass =
|
|
176
|
-
updates.fieldsetClass =
|
|
177
|
-
updates.optionsClass =
|
|
178
|
-
updates.innerClass =
|
|
179
|
-
updates.optionClass =
|
|
219
|
+
updates.legendClass = "legend-left t-pb-1 required";
|
|
220
|
+
updates.fieldsetClass = "$reset side-by-side t-items-center";
|
|
221
|
+
updates.optionsClass = "t-mt-1 t-grid t-grid-cols-1 md:t-grid-cols-2-125 t-items-center";
|
|
222
|
+
updates.innerClass = "t-flex t-items-center";
|
|
223
|
+
updates.optionClass = "t-pr-1";
|
|
180
224
|
return radio(updates)
|
|
181
225
|
};
|
|
182
226
|
|
|
183
227
|
const sbsYesNoRadio = (updates) => {
|
|
184
|
-
updates.options = [
|
|
228
|
+
updates.options = ["Yes", "No"];
|
|
185
229
|
return sbs2ItemRadio(updates)
|
|
186
230
|
};
|
|
187
231
|
|
|
188
232
|
const verticalButtonRadio = (updates) => {
|
|
189
|
-
updates.legendClass =
|
|
190
|
-
updates.fieldsetClass =
|
|
191
|
-
if (typeof updates.optionsClass ===
|
|
192
|
-
updates.optionsClass =
|
|
233
|
+
updates.legendClass = "legend-left";
|
|
234
|
+
updates.fieldsetClass = "$reset t-flex t-justify-center t-flex-col-reverse t-items-center";
|
|
235
|
+
if (typeof updates.optionsClass === "undefined") {
|
|
236
|
+
updates.optionsClass = "t-flex t-flex-col sm:t-flex-row t-justify-center t-my-3";
|
|
193
237
|
}
|
|
194
|
-
updates.optionClass =
|
|
195
|
-
updates.wrapperClass =
|
|
196
|
-
updates.labelClass =
|
|
238
|
+
updates.optionClass = "radiobtn t-my-2 sm:t-my-0 t-mx-2 md:t-mx-5";
|
|
239
|
+
updates.wrapperClass = "$reset formkit-wrapper t-mb-0 t-flex t-items-center t-h-[100%]";
|
|
240
|
+
updates.labelClass = "t-font-semibold t-text-[#1e448f] t-w-[100%]";
|
|
197
241
|
updates.decoratorIcon = false;
|
|
198
|
-
updates.messagesClass =
|
|
199
|
-
updates.helpClass =
|
|
242
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
243
|
+
updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
|
|
200
244
|
return radio(updates)
|
|
201
245
|
};
|
|
202
246
|
|
|
203
247
|
const verticalYesNoRadio = (updates) => {
|
|
204
|
-
updates.options = [
|
|
205
|
-
updates.optionsClass =
|
|
248
|
+
updates.options = ["Yes", "No"];
|
|
249
|
+
updates.optionsClass = "t-flex t-justify-center t-my-3";
|
|
206
250
|
return verticalButtonRadio(updates)
|
|
207
251
|
};
|
|
208
252
|
|
|
209
253
|
const verticalRadio = (updates) => {
|
|
210
|
-
updates.legendClass =
|
|
211
|
-
updates.fieldsetClass =
|
|
212
|
-
updates.optionsClass =
|
|
213
|
-
updates.innerClass =
|
|
214
|
-
updates.wrapperClass =
|
|
215
|
-
updates.optionClass =
|
|
216
|
-
updates.messagesClass =
|
|
254
|
+
updates.legendClass = "required";
|
|
255
|
+
updates.fieldsetClass = "$reset t-flex t-justify-center";
|
|
256
|
+
updates.optionsClass = "t-pl-2 t-pt-3";
|
|
257
|
+
updates.innerClass = "t-items-center";
|
|
258
|
+
updates.wrapperClass = "$reset t-flex t-cursor-pointer t-mb-3";
|
|
259
|
+
updates.optionClass = "t-pl-4 md:t-pl-12";
|
|
260
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
217
261
|
return radio(updates)
|
|
218
262
|
};
|
|
219
263
|
|
|
@@ -221,32 +265,35 @@ const select = (updates) => {
|
|
|
221
265
|
if (updates.name && !updates.id) {
|
|
222
266
|
updates.id = updates.name;
|
|
223
267
|
}
|
|
224
|
-
return merge(
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
268
|
+
return merge(
|
|
269
|
+
{
|
|
270
|
+
$formkit: "select",
|
|
271
|
+
placeholder: "Please Select",
|
|
272
|
+
validation: "required",
|
|
273
|
+
validationMessages: {
|
|
274
|
+
required: "Field is required",
|
|
275
|
+
},
|
|
276
|
+
inputClass: "t-bg-white",
|
|
277
|
+
labelClass: "required",
|
|
230
278
|
},
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}, updates)
|
|
279
|
+
updates
|
|
280
|
+
)
|
|
234
281
|
};
|
|
235
282
|
|
|
236
283
|
const sbsSelect = (updates) => {
|
|
237
|
-
updates.labelClass =
|
|
238
|
-
updates.wrapperClass =
|
|
239
|
-
updates.innerClass =
|
|
240
|
-
updates.helpClass =
|
|
284
|
+
updates.labelClass = "required";
|
|
285
|
+
updates.wrapperClass = "side-by-side t-items-center";
|
|
286
|
+
updates.innerClass = "select-height-content";
|
|
287
|
+
updates.helpClass = "t-mt-2.5 md:t-text-right md:t-mt-[-5px]";
|
|
241
288
|
return select(updates)
|
|
242
289
|
};
|
|
243
290
|
|
|
244
291
|
const verticalSelect = (updates) => {
|
|
245
|
-
updates.labelClass =
|
|
246
|
-
updates.wrapperClass =
|
|
247
|
-
updates.messagesClass =
|
|
248
|
-
updates.inputClass =
|
|
249
|
-
updates.helpClass =
|
|
292
|
+
updates.labelClass = "required";
|
|
293
|
+
updates.wrapperClass = "t-flex t-justify-center";
|
|
294
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
295
|
+
updates.inputClass = "t-min-w-[150px] t-bg-white";
|
|
296
|
+
updates.helpClass = "t-mt-2.5 t-text-center";
|
|
250
297
|
return select(updates)
|
|
251
298
|
};
|
|
252
299
|
|
|
@@ -254,26 +301,29 @@ const text = (updates) => {
|
|
|
254
301
|
if (updates.name && !updates.id) {
|
|
255
302
|
updates.id = updates.name;
|
|
256
303
|
}
|
|
257
|
-
return merge(
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
304
|
+
return merge(
|
|
305
|
+
{
|
|
306
|
+
$formkit: "text",
|
|
307
|
+
validation: "required",
|
|
308
|
+
validationMessages: {
|
|
309
|
+
required: "Field is required",
|
|
310
|
+
},
|
|
311
|
+
labelClass: "required",
|
|
262
312
|
},
|
|
263
|
-
|
|
264
|
-
|
|
313
|
+
updates
|
|
314
|
+
)
|
|
265
315
|
};
|
|
266
316
|
|
|
267
317
|
const sbsText = (updates) => {
|
|
268
|
-
updates.wrapperClass =
|
|
318
|
+
updates.wrapperClass = "side-by-side t-items-center";
|
|
269
319
|
return text(updates)
|
|
270
320
|
};
|
|
271
321
|
|
|
272
322
|
const verticalText = (updates) => {
|
|
273
|
-
updates.wrapperClass =
|
|
274
|
-
updates.messagesClass =
|
|
275
|
-
updates.inputClass =
|
|
276
|
-
updates.helpClass =
|
|
323
|
+
updates.wrapperClass = "t-flex t-justify-center";
|
|
324
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
325
|
+
updates.inputClass = "t-text-center";
|
|
326
|
+
updates.helpClass = "t-mt-2.5 !t-text-sm t-text-center";
|
|
277
327
|
return text(updates)
|
|
278
328
|
};
|
|
279
329
|
|
|
@@ -281,603 +331,813 @@ const textArea = (updates) => {
|
|
|
281
331
|
if (updates.name && !updates.id) {
|
|
282
332
|
updates.id = updates.name;
|
|
283
333
|
}
|
|
284
|
-
return merge(
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
334
|
+
return merge(
|
|
335
|
+
{
|
|
336
|
+
$formkit: "textarea",
|
|
337
|
+
rows: 5,
|
|
338
|
+
maxlength: 500,
|
|
339
|
+
validation: "required",
|
|
340
|
+
validationMessages: {
|
|
341
|
+
required: "Field is required",
|
|
342
|
+
},
|
|
343
|
+
innerClass: "t-max-w-xl",
|
|
344
|
+
labelClass: "required",
|
|
291
345
|
},
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}, updates)
|
|
346
|
+
updates
|
|
347
|
+
)
|
|
295
348
|
};
|
|
296
349
|
|
|
297
350
|
const date = (updates) => {
|
|
298
351
|
if (updates.name && !updates.id) {
|
|
299
352
|
updates.id = updates.name;
|
|
300
353
|
}
|
|
301
|
-
return merge(
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
354
|
+
return merge(
|
|
355
|
+
{
|
|
356
|
+
$formkit: "DatePicker",
|
|
357
|
+
validation: "required",
|
|
358
|
+
validationMessages: {
|
|
359
|
+
required: "Field is required",
|
|
360
|
+
},
|
|
361
|
+
labelClass: "required t-block t-mb-3 t-font-semibold t-text-base formkit-invalid:t-text-red-500",
|
|
362
|
+
innerClass:
|
|
363
|
+
"t-border t-border-gray-400 formkit-invalid:t-border-red-500 t-rounded t-mb-1 focus-within:t-border-blue-500",
|
|
306
364
|
},
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}, updates)
|
|
365
|
+
updates
|
|
366
|
+
)
|
|
310
367
|
};
|
|
311
368
|
|
|
312
369
|
const sbsDate = (updates) => {
|
|
313
|
-
updates.wrapperClass =
|
|
370
|
+
updates.wrapperClass = "side-by-side t-items-center";
|
|
314
371
|
return date(updates)
|
|
315
372
|
};
|
|
316
373
|
|
|
317
374
|
const verticalDate = (updates) => {
|
|
318
|
-
updates.wrapperClass =
|
|
319
|
-
updates.inputClass =
|
|
320
|
-
updates.messagesClass =
|
|
375
|
+
updates.wrapperClass = "t-flex t-justify-center";
|
|
376
|
+
updates.inputClass = "t-text-center";
|
|
377
|
+
updates.messagesClass = "t-flex t-justify-center";
|
|
321
378
|
return date(updates)
|
|
322
379
|
};
|
|
323
380
|
|
|
324
|
-
const email = (scope) =>
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
autocomplete: "given-name",
|
|
343
|
-
validationMessages: {
|
|
344
|
-
required: 'First Name is required'
|
|
345
|
-
}
|
|
346
|
-
});
|
|
381
|
+
const email = (scope, vertical, updates = {}) => {
|
|
382
|
+
const func = vertical ? verticalText : sbsText;
|
|
383
|
+
const label = vertical ? updates.label : "Email Address:";
|
|
384
|
+
return func({
|
|
385
|
+
$formkit: "email",
|
|
386
|
+
name: scope ? scope + ":" + "Email" : "Email",
|
|
387
|
+
label,
|
|
388
|
+
placeholder: "email@domain.com",
|
|
389
|
+
autocomplete: "email",
|
|
390
|
+
"data-tf-sensitive": "false",
|
|
391
|
+
validation: "required|email",
|
|
392
|
+
validationMessages: {
|
|
393
|
+
required: "Email is required",
|
|
394
|
+
email: "Invalid Email",
|
|
395
|
+
},
|
|
396
|
+
...updates,
|
|
397
|
+
})
|
|
398
|
+
};
|
|
347
399
|
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
400
|
+
const firstName = (scope, vertical, updates = {}) => {
|
|
401
|
+
const func = vertical ? verticalText : sbsText;
|
|
402
|
+
const label = vertical ? updates.label : "First Name:";
|
|
403
|
+
return func({
|
|
404
|
+
label,
|
|
405
|
+
placeholder: "First",
|
|
406
|
+
name: scope ? scope + ":" + "First_Name" : "First_Name",
|
|
407
|
+
autocomplete: "given-name",
|
|
408
|
+
validationMessages: {
|
|
409
|
+
required: "First Name is required",
|
|
410
|
+
},
|
|
411
|
+
...updates,
|
|
412
|
+
})
|
|
413
|
+
};
|
|
357
414
|
|
|
358
|
-
const
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
},
|
|
373
|
-
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]"
|
|
374
|
-
});
|
|
415
|
+
const lastName = (scope, vertical, updates = {}) => {
|
|
416
|
+
const func = vertical ? verticalText : sbsText;
|
|
417
|
+
const label = vertical ? updates.label : "Last Name:";
|
|
418
|
+
return func({
|
|
419
|
+
label,
|
|
420
|
+
placeholder: "Last",
|
|
421
|
+
name: scope ? scope + ":" + "Last_Name" : "Last_Name",
|
|
422
|
+
autocomplete: "family-name",
|
|
423
|
+
validationMessages: {
|
|
424
|
+
required: "Last Name is required",
|
|
425
|
+
},
|
|
426
|
+
...updates,
|
|
427
|
+
})
|
|
428
|
+
};
|
|
375
429
|
|
|
430
|
+
const phone = (scope, vertical, updates = {}) => {
|
|
431
|
+
const func = vertical ? verticalText : sbsText;
|
|
432
|
+
const label = vertical ? updates.label : "Phone Number:";
|
|
433
|
+
return func({
|
|
434
|
+
$formkit: "tel",
|
|
435
|
+
name: scope ? scope + ":" + "Primary_Phone" : "Primary_Phone",
|
|
436
|
+
label,
|
|
437
|
+
placeholder: "###-###-####",
|
|
438
|
+
maxlength: 12,
|
|
439
|
+
help: "10-digit phone number, hyphens optional",
|
|
440
|
+
autocomplete: "tel-national",
|
|
441
|
+
"data-tf-sensitive": "false",
|
|
442
|
+
validation: "required|matches:/^[0-9]{3}-?[0-9]{3}-?[0-9]{4}$/|valid_phone",
|
|
443
|
+
validationMessages: {
|
|
444
|
+
required: "Phone Number is required",
|
|
445
|
+
matches: "Invalid Phone Format, use ###-###-####",
|
|
446
|
+
valid_phone: "Invalid Phone Number",
|
|
447
|
+
},
|
|
448
|
+
helpClass: "t-mt-2.5 md:t-text-right md:t-mt-[-2px]",
|
|
449
|
+
...updates,
|
|
450
|
+
})
|
|
451
|
+
};
|
|
376
452
|
|
|
377
453
|
const zipcode$1 = (scope, vertical, updates = {}) => {
|
|
378
454
|
const func = vertical ? verticalText : sbsText;
|
|
379
|
-
const label = vertical ?
|
|
380
|
-
const help = vertical ?
|
|
455
|
+
const label = vertical ? updates.label : "Zip Code:";
|
|
456
|
+
const help = vertical ? updates.help ?? "We try to match you with local help" : null;
|
|
381
457
|
return func({
|
|
382
458
|
label,
|
|
383
459
|
help,
|
|
384
|
-
placeholder:
|
|
385
|
-
name: scope ? scope +
|
|
460
|
+
placeholder: "#####",
|
|
461
|
+
name: scope ? scope + ":" + "Zip" : "Zip",
|
|
386
462
|
maxlength: 5,
|
|
387
463
|
inputmode: "numeric",
|
|
388
|
-
autocomplete:
|
|
389
|
-
validation:
|
|
464
|
+
autocomplete: "postal-code",
|
|
465
|
+
validation: "required|matches:/^[0-9]{5}$/",
|
|
390
466
|
validationMessages: {
|
|
391
|
-
required:
|
|
392
|
-
matches:
|
|
467
|
+
required: "Zip Code is required",
|
|
468
|
+
matches: "Invalid Zip Code",
|
|
393
469
|
},
|
|
394
|
-
...updates
|
|
470
|
+
...updates,
|
|
395
471
|
})
|
|
396
472
|
};
|
|
397
473
|
|
|
398
474
|
const applicantAge = (scope, vertical, updates = {}) => {
|
|
399
475
|
const func = vertical ? verticalText : sbsText;
|
|
400
|
-
const label = vertical ?
|
|
401
|
-
const value = vertical ?
|
|
402
|
-
return func(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
476
|
+
const label = vertical ? updates.label : "Age of Applicant?";
|
|
477
|
+
const value = vertical ? updates.value ?? "50" : null;
|
|
478
|
+
return func(
|
|
479
|
+
merge({
|
|
480
|
+
label,
|
|
481
|
+
placeholder: "Age between 18 and 65",
|
|
482
|
+
name: scope ? scope + ":" + "Applicant_Age" : "Applicant_Age",
|
|
483
|
+
value,
|
|
484
|
+
maxlength: 2,
|
|
485
|
+
inputmode: "numeric",
|
|
486
|
+
validation: "required|min:18,max:65",
|
|
487
|
+
validationMessages: {
|
|
488
|
+
required: "Applicant Age is required",
|
|
489
|
+
min: "Invalid Age - must be between 18 and 65",
|
|
490
|
+
max: "Invalid Age - must be between 18 and 65",
|
|
491
|
+
},
|
|
492
|
+
...updates,
|
|
493
|
+
})
|
|
494
|
+
)
|
|
417
495
|
};
|
|
418
496
|
|
|
419
|
-
const atFault = (scope) =>
|
|
420
|
-
|
|
421
|
-
label:
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
});
|
|
433
|
-
|
|
434
|
-
const bloodContentAlcoholTest$1 = (scope) => sbsSelect({
|
|
435
|
-
name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
|
|
436
|
-
label: 'Blood Alcohol Content Measured by Test:',
|
|
437
|
-
options: [
|
|
438
|
-
"No Test",
|
|
439
|
-
"0.00% - 0.04%",
|
|
440
|
-
"0.05% - 0.08%",
|
|
441
|
-
"0.09% - 0.12%",
|
|
442
|
-
"0.13% - 0.16%",
|
|
443
|
-
"0.17% - 0.20%",
|
|
444
|
-
"More than 0.20%",
|
|
445
|
-
"Don't know"
|
|
446
|
-
]
|
|
447
|
-
});
|
|
448
|
-
|
|
449
|
-
const bloodContentAlcoholTestCenter = (scope) => verticalSelect({
|
|
450
|
-
name: scope ? scope + ':' + 'Blood_Alcohol_Content_Test' : 'Blood_Alcohol_Content_Test',
|
|
451
|
-
options: [
|
|
452
|
-
"No Test",
|
|
453
|
-
"0.00% - 0.04%",
|
|
454
|
-
"0.05% - 0.08%",
|
|
455
|
-
"0.09% - 0.12%",
|
|
456
|
-
"0.13% - 0.16%",
|
|
457
|
-
"0.17% - 0.20%",
|
|
458
|
-
"More than 0.20%",
|
|
459
|
-
"Don't know"
|
|
460
|
-
]
|
|
461
|
-
});
|
|
462
|
-
|
|
463
|
-
const causeOfInjury = (scope) => sbsSelect({
|
|
464
|
-
name: scope ? scope + ':' + 'Cause_Of_Injury' : 'Cause_Of_Injury',
|
|
465
|
-
label: 'Cause of Injury:',
|
|
466
|
-
options: [
|
|
467
|
-
"Traumatic Physical Injury (Accident)",
|
|
468
|
-
"Repeated Trauma Injury",
|
|
469
|
-
"Mental Injury",
|
|
470
|
-
"Occupational Disease",
|
|
471
|
-
"Not Sure"
|
|
472
|
-
]
|
|
473
|
-
});
|
|
474
|
-
|
|
475
|
-
const childHome = (scope) => sbsSelect({
|
|
476
|
-
name: scope ? scope + ':' + 'Child_Home' : 'Child_Home',
|
|
477
|
-
label: 'With Whom Do the Children Currently Live?',
|
|
478
|
-
options: [
|
|
479
|
-
'Mother',
|
|
480
|
-
'Father',
|
|
481
|
-
'Grandparents',
|
|
482
|
-
'Other'
|
|
483
|
-
]
|
|
484
|
-
});
|
|
485
|
-
|
|
486
|
-
const childPrimaryCaregiver = (scope) => sbsSelect({
|
|
487
|
-
name: scope ? scope + ':' + 'Child_Primary_Caregiver' : 'Child_Primary_Caregiver',
|
|
488
|
-
label: 'Who is the Primary Caregiver?',
|
|
489
|
-
options: [
|
|
490
|
-
'Mother',
|
|
491
|
-
'Father',
|
|
492
|
-
'Other'
|
|
493
|
-
]
|
|
494
|
-
});
|
|
495
|
-
|
|
496
|
-
const childRelationship = (scope) => sbsSelect({
|
|
497
|
-
name: scope ? scope + ':' + 'Child_Relationship' : 'Child_Relationship',
|
|
498
|
-
label: 'Your Relationship to Child(ren):',
|
|
499
|
-
options: [
|
|
500
|
-
'Father',
|
|
501
|
-
'Mother',
|
|
502
|
-
'Grandparent',
|
|
503
|
-
'Aunt/Uncle',
|
|
504
|
-
'Other'
|
|
505
|
-
]
|
|
506
|
-
});
|
|
507
|
-
|
|
508
|
-
const claimStatus = (scope) => sbsSelect({
|
|
509
|
-
name: scope ? scope + ':' + 'Claim_Status' : 'Claim_Status',
|
|
510
|
-
label: "Status of Claim:",
|
|
511
|
-
options: [
|
|
512
|
-
"No action taken yet",
|
|
513
|
-
"Demand for compensation made",
|
|
514
|
-
"Lawsuit filed",
|
|
515
|
-
"Other"
|
|
516
|
-
]
|
|
517
|
-
});
|
|
497
|
+
const atFault = (scope, vertical, updates = {}) => {
|
|
498
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
499
|
+
const label = vertical ? updates.label : "Were You at Fault?";
|
|
500
|
+
return func(
|
|
501
|
+
merge(
|
|
502
|
+
{
|
|
503
|
+
label,
|
|
504
|
+
name: scope ? scope + ":" + "At_Fault" : "At_Fault",
|
|
505
|
+
},
|
|
506
|
+
updates
|
|
507
|
+
)
|
|
508
|
+
)
|
|
509
|
+
};
|
|
518
510
|
|
|
519
|
-
const
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
)
|
|
511
|
+
const bankruptcyCrossSell = (scope) =>
|
|
512
|
+
sbsCheckbox({
|
|
513
|
+
label: "I'd also like a consult for bankruptcy or debt elimination (optional)",
|
|
514
|
+
help: "Note: you will be contacted separately by a bankruptcy/debt expert",
|
|
515
|
+
name: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
|
|
516
|
+
id: scope ? scope + ":CrossSell_Bankruptcy" : "CrossSell_Bankruptcy",
|
|
517
|
+
if: '$getVal($get(form), "Type_Of_Legal_Problem") != "Bankruptcy" && ($getVal($get(form), "Degree_Of_Interest") == "Absolutely Can\'t Afford" || $getVal($get(form), "Degree_Of_Interest") == "Maybe" || $getVal($get(form), "Degree_Of_Interest") == "Probably")',
|
|
518
|
+
validation: null,
|
|
519
|
+
helpClass: "!t-text-sm",
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
const bloodContentAlcoholTest$1 = (scope, vertical, updates = {}) => {
|
|
523
|
+
const func = vertical ? verticalSelect : sbsSelect;
|
|
524
|
+
const label = vertical ? updates.label : "Blood Alcohol Content Measured by Test:";
|
|
525
|
+
return func(
|
|
526
|
+
merge(
|
|
527
|
+
{
|
|
528
|
+
label,
|
|
529
|
+
name: scope ? scope + ":" + "Blood_Alcohol_Content_Test" : "Blood_Alcohol_Content_Test",
|
|
530
|
+
options: [
|
|
531
|
+
"No Test",
|
|
532
|
+
"0.00% - 0.04%",
|
|
533
|
+
"0.05% - 0.08%",
|
|
534
|
+
"0.09% - 0.12%",
|
|
535
|
+
"0.13% - 0.16%",
|
|
536
|
+
"0.17% - 0.20%",
|
|
537
|
+
"More than 0.20%",
|
|
538
|
+
"Don't know",
|
|
539
|
+
],
|
|
540
|
+
},
|
|
541
|
+
updates
|
|
542
|
+
)
|
|
543
|
+
)
|
|
544
|
+
};
|
|
526
545
|
|
|
527
|
-
const
|
|
528
|
-
|
|
529
|
-
|
|
546
|
+
const causeOfInjury = (scope, vertical, updates = {}) => {
|
|
547
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
548
|
+
const label = vertical ? updates.label : "Cause of Injury:";
|
|
549
|
+
return func(
|
|
550
|
+
merge(
|
|
551
|
+
{
|
|
552
|
+
label,
|
|
553
|
+
name: scope ? scope + ":" + "Cause_Of_Injury" : "Cause_Of_Injury",
|
|
554
|
+
options: [
|
|
555
|
+
"Traumatic Physical Injury (Accident)",
|
|
556
|
+
"Repeated Trauma Injury",
|
|
557
|
+
"Mental Injury",
|
|
558
|
+
"Occupational Disease",
|
|
559
|
+
"Not Sure",
|
|
560
|
+
],
|
|
561
|
+
},
|
|
562
|
+
updates
|
|
563
|
+
)
|
|
564
|
+
)
|
|
565
|
+
};
|
|
530
566
|
|
|
531
|
-
const
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
567
|
+
const childHome = (scope, vertical, updates = {}) => {
|
|
568
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
569
|
+
const label = vertical ? updates.label : "With Whom Do the Children Currently Live?";
|
|
570
|
+
return func(
|
|
571
|
+
merge(
|
|
572
|
+
{
|
|
573
|
+
label,
|
|
574
|
+
name: scope ? scope + ":" + "Child_Home" : "Child_Home",
|
|
575
|
+
options: ["Mother", "Father", "Grandparents", "Other"],
|
|
576
|
+
},
|
|
577
|
+
updates
|
|
578
|
+
)
|
|
579
|
+
)
|
|
580
|
+
};
|
|
540
581
|
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
582
|
+
const childPrimaryCaregiver = (scope, vertical, updates = {}) => {
|
|
583
|
+
const func = vertical ? verticalButtonRadio : sbsSelect;
|
|
584
|
+
const label = vertical ? updates.label : "Who is the Primary Caregiver?";
|
|
585
|
+
return func(
|
|
586
|
+
merge(
|
|
587
|
+
{
|
|
588
|
+
label,
|
|
589
|
+
name: scope ? scope + ":" + "Child_Primary_Caregiver" : "Child_Primary_Caregiver",
|
|
590
|
+
options: ["Mother", "Father", "Other"],
|
|
591
|
+
},
|
|
592
|
+
updates
|
|
593
|
+
)
|
|
594
|
+
)
|
|
595
|
+
};
|
|
549
596
|
|
|
550
|
-
const
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
597
|
+
const childRelationship = (scope, vertical, updates = {}) => {
|
|
598
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
599
|
+
const label = vertical ? updates.label : "Your Relationship to Child(ren):";
|
|
600
|
+
return func(
|
|
601
|
+
merge(
|
|
602
|
+
{
|
|
603
|
+
label,
|
|
604
|
+
name: scope ? scope + ":" + "Child_Relationship" : "Child_Relationship",
|
|
605
|
+
options: ["Father", "Mother", "Grandparent", "Aunt/Uncle", "Other"],
|
|
606
|
+
},
|
|
607
|
+
updates
|
|
608
|
+
)
|
|
609
|
+
)
|
|
610
|
+
};
|
|
562
611
|
|
|
563
|
-
const
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
612
|
+
const claimStatus = (scope, vertical, updates = {}) => {
|
|
613
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
614
|
+
const label = vertical ? updates.label : "Status of Claim:";
|
|
615
|
+
return func(
|
|
616
|
+
merge(
|
|
617
|
+
{
|
|
618
|
+
label,
|
|
619
|
+
name: scope ? scope + ":" + "Claim_Status" : "Claim_Status",
|
|
620
|
+
options: ["No action taken yet", "Demand for compensation made", "Lawsuit filed", "Other"],
|
|
621
|
+
},
|
|
622
|
+
updates
|
|
623
|
+
)
|
|
624
|
+
)
|
|
625
|
+
};
|
|
574
626
|
|
|
575
|
-
|
|
627
|
+
// TODO: vertical not supported yet
|
|
628
|
+
const comments = (scope, vertical, updates) =>
|
|
629
|
+
textArea(
|
|
630
|
+
merge(
|
|
631
|
+
{
|
|
632
|
+
name: scope ? scope + ":" + "Comments" : "Comments",
|
|
633
|
+
label: "Please briefly describe your situation in a few words:",
|
|
634
|
+
placeholder:
|
|
635
|
+
'For Example: "I would like help with child support payments" or "I need help with visitation rights"',
|
|
636
|
+
},
|
|
637
|
+
updates
|
|
638
|
+
)
|
|
639
|
+
);
|
|
576
640
|
|
|
577
|
-
const
|
|
578
|
-
|
|
579
|
-
label
|
|
580
|
-
|
|
641
|
+
const crimeCommittedDate$1 = (scope, vertical, updates = {}) => {
|
|
642
|
+
const func = vertical ? verticalDate : sbsDate;
|
|
643
|
+
const label = vertical ? updates.label : "When was the Alleged Crime?";
|
|
644
|
+
return func(
|
|
645
|
+
merge(
|
|
646
|
+
{
|
|
647
|
+
label,
|
|
648
|
+
name: scope ? scope + ":" + "Crime_Committed_Date" : "Crime_Committed_Date",
|
|
649
|
+
},
|
|
650
|
+
updates
|
|
651
|
+
)
|
|
652
|
+
)
|
|
653
|
+
};
|
|
581
654
|
|
|
582
|
-
const
|
|
583
|
-
|
|
584
|
-
label
|
|
585
|
-
|
|
655
|
+
const criminalChargeType$1 = (scope, vertical, updates = {}) => {
|
|
656
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
657
|
+
const label = vertical ? updates.label : "What Type of Charge?";
|
|
658
|
+
return func(
|
|
659
|
+
merge(
|
|
660
|
+
{
|
|
661
|
+
label,
|
|
662
|
+
name: scope ? scope + ":" + "Criminal_Charge_Type" : "Criminal_Charge_Type",
|
|
663
|
+
options: ["Felony", "Misdemeanor", "Juvenile", "Other"],
|
|
664
|
+
},
|
|
665
|
+
updates
|
|
666
|
+
)
|
|
667
|
+
)
|
|
668
|
+
};
|
|
586
669
|
|
|
587
|
-
const
|
|
588
|
-
|
|
589
|
-
label
|
|
590
|
-
|
|
670
|
+
const criminalChargesFiled$1 = (scope, vertical, updates = {}) => {
|
|
671
|
+
const func = vertical ? verticalRadio : sbsRadio;
|
|
672
|
+
const label = vertical ? updates.label : "Were Criminal Charges Filed?";
|
|
673
|
+
return func(
|
|
674
|
+
merge(
|
|
675
|
+
{
|
|
676
|
+
label,
|
|
677
|
+
name: scope ? scope + ":" + "Criminal_Charges_Filed" : "Criminal_Charges_Filed",
|
|
678
|
+
options: ["Yes", "No", "Not Sure"],
|
|
679
|
+
},
|
|
680
|
+
updates
|
|
681
|
+
)
|
|
682
|
+
)
|
|
683
|
+
};
|
|
591
684
|
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
label: "
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
685
|
+
const degreeOfInterest$1 = (scope, vertical, updates = {}) => {
|
|
686
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
687
|
+
const label = vertical ? updates.label : "How Likely Are You to Pay if Your Issue Could be Resolved?";
|
|
688
|
+
const help = vertical ? updates.help : "No payment necessary to speak with lawyers.";
|
|
689
|
+
return func(
|
|
690
|
+
merge(
|
|
691
|
+
{
|
|
692
|
+
name: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
|
|
693
|
+
id: scope ? scope + ":" + "Degree_Of_Interest" : "Degree_Of_Interest",
|
|
694
|
+
label,
|
|
695
|
+
help,
|
|
696
|
+
options: ["Definitely", "Probably", "Maybe", "Absolutely Can't Afford"],
|
|
697
|
+
},
|
|
698
|
+
updates
|
|
699
|
+
)
|
|
700
|
+
)
|
|
701
|
+
};
|
|
604
702
|
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
label: 'Already Working with An Attorney?'
|
|
608
|
-
});
|
|
703
|
+
const degreeOfInterestHelp = (scope, vertical, updates = {}) =>
|
|
704
|
+
degreeOfInterest$1(scope, vertical, merge(updates, { help: "No payment necessary to speak with lawyers." }));
|
|
609
705
|
|
|
610
|
-
const
|
|
611
|
-
|
|
612
|
-
|
|
706
|
+
const disabilityConditionStopWork = (scope, vertical, updates = {}) => {
|
|
707
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
708
|
+
const label = vertical
|
|
709
|
+
? updates.label
|
|
710
|
+
: "Do You Expect To Be Out Of Work For At Least a Year Due To Your Health?";
|
|
711
|
+
return func(
|
|
712
|
+
merge(
|
|
713
|
+
{
|
|
714
|
+
name: scope ? scope + ":" + "Disability_Condition_Stop_Work" : "Disability_Condition_Stop_Work",
|
|
715
|
+
label,
|
|
716
|
+
},
|
|
717
|
+
updates
|
|
718
|
+
)
|
|
719
|
+
)
|
|
720
|
+
};
|
|
613
721
|
|
|
614
|
-
const
|
|
615
|
-
|
|
616
|
-
label:
|
|
617
|
-
|
|
722
|
+
const disabilityWorkHistory = (scope, vertical, updates = {}) => {
|
|
723
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
724
|
+
const label = vertical ? updates.label : "Have You Had a Full-Time Job Within the Past 5 Years?";
|
|
725
|
+
return func(
|
|
726
|
+
merge(
|
|
727
|
+
{
|
|
728
|
+
name: scope ? scope + ":" + "Disability_Work_History" : "Disability_Work_History",
|
|
729
|
+
label,
|
|
730
|
+
},
|
|
731
|
+
updates
|
|
732
|
+
)
|
|
733
|
+
)
|
|
734
|
+
};
|
|
618
735
|
|
|
619
|
-
const
|
|
620
|
-
|
|
621
|
-
label:
|
|
622
|
-
|
|
736
|
+
const doctorTreatment = (scope, vertical, updates = {}) => {
|
|
737
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
738
|
+
const label = vertical ? updates.label : "Have You Recently Been Treated by a Doctor, Hospital or Clinic?";
|
|
739
|
+
return func(
|
|
740
|
+
merge(
|
|
741
|
+
{
|
|
742
|
+
name: scope ? scope + ":" + "Doctor_Treatment" : "Doctor_Treatment",
|
|
743
|
+
label,
|
|
744
|
+
},
|
|
745
|
+
updates
|
|
746
|
+
)
|
|
747
|
+
)
|
|
748
|
+
};
|
|
623
749
|
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
750
|
+
const estateLegalServicesNeeded = (scope, vertical, updates = {}) => {
|
|
751
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
752
|
+
const label = vertical ? updates.label : "Legal Services Needed for Your Estate:";
|
|
753
|
+
return func(
|
|
754
|
+
merge(
|
|
755
|
+
{
|
|
756
|
+
name: scope ? scope + ":" + "Estate_Legal_Services_Needed" : "Estate_Legal_Services_Needed",
|
|
757
|
+
label,
|
|
758
|
+
options: [
|
|
759
|
+
"Charitable Giving",
|
|
760
|
+
"Contested Wills",
|
|
761
|
+
"Drafting Wills or Trust",
|
|
762
|
+
"Estate Administration",
|
|
763
|
+
"Asset Protection",
|
|
764
|
+
"Other",
|
|
765
|
+
],
|
|
766
|
+
},
|
|
767
|
+
updates
|
|
768
|
+
)
|
|
769
|
+
)
|
|
770
|
+
};
|
|
627
771
|
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
label
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
772
|
+
const haveAttorney$1 = (scope, vertical, updates = {}) => {
|
|
773
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
774
|
+
const label = vertical ? updates.label : "Already Working with An Attorney?";
|
|
775
|
+
return func(
|
|
776
|
+
merge(
|
|
777
|
+
{
|
|
778
|
+
label,
|
|
779
|
+
name: scope ? scope + ":" + "Have_Attorney" : "Have_Attorney",
|
|
780
|
+
},
|
|
781
|
+
updates
|
|
782
|
+
)
|
|
783
|
+
)
|
|
784
|
+
};
|
|
641
785
|
|
|
642
|
-
const
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
786
|
+
const haveChildren = (scope, vertical, updates = {}) => {
|
|
787
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
788
|
+
const label = vertical ? updates.label : "Do You Have Children?";
|
|
789
|
+
return func(
|
|
790
|
+
merge(
|
|
791
|
+
{
|
|
792
|
+
name: scope ? scope + ":" + "Have_Children" : "Have_Children",
|
|
793
|
+
label,
|
|
794
|
+
},
|
|
795
|
+
updates
|
|
796
|
+
)
|
|
797
|
+
)
|
|
798
|
+
};
|
|
653
799
|
|
|
654
|
-
const
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
800
|
+
const incidentDate$1 = (scope, vertical, updates = {}) => {
|
|
801
|
+
const func = vertical ? verticalDate : sbsDate;
|
|
802
|
+
const label = vertical ? updates.label : "Date of Incident:";
|
|
803
|
+
return func(
|
|
804
|
+
merge(
|
|
805
|
+
{
|
|
806
|
+
label,
|
|
807
|
+
name: scope ? scope + ":" + "Incident_Date" : "Incident_Date",
|
|
808
|
+
},
|
|
809
|
+
updates
|
|
810
|
+
)
|
|
811
|
+
)
|
|
812
|
+
};
|
|
662
813
|
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
label:
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
814
|
+
const lawyerPaymentMethod$1 = (scope, vertical, updates = {}) => {
|
|
815
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
816
|
+
const label = vertical ? updates.label : "How Will You Pay for Legal Fees if You Hire a Lawyer?";
|
|
817
|
+
const help = vertical ? updates.help : "No payment necessary to start a consultation.";
|
|
818
|
+
const options = vertical
|
|
819
|
+
? {
|
|
820
|
+
Cash: "Cash",
|
|
821
|
+
"Credit Card": "Credit Card",
|
|
822
|
+
Family: "Family or Friend",
|
|
823
|
+
Other: "Other",
|
|
824
|
+
}
|
|
825
|
+
: ["Cash", "Check", "Credit Card", "Friend", "Family", "Other"];
|
|
826
|
+
return func(
|
|
827
|
+
merge(
|
|
828
|
+
{
|
|
829
|
+
label,
|
|
830
|
+
help,
|
|
831
|
+
name: scope ? scope + ":" + "Lawyer_Payment_Method" : "Lawyer_Payment_Method",
|
|
832
|
+
options,
|
|
833
|
+
fieldsetClass: vertical ? "$reset t-flex t-flex-col t-items-center" : undefined,
|
|
834
|
+
},
|
|
835
|
+
updates
|
|
836
|
+
)
|
|
837
|
+
)
|
|
838
|
+
};
|
|
675
839
|
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
840
|
+
const legalCrossSells$1 = () =>
|
|
841
|
+
col2Checkbox({
|
|
842
|
+
id: "Legal_CrossSells",
|
|
843
|
+
name: "Legal_CrossSells",
|
|
844
|
+
help: 'Just hit "Next" if none apply',
|
|
845
|
+
helpClass: "t-text-center !t-text-sm",
|
|
846
|
+
validation: null,
|
|
847
|
+
options: '$getCrossSellOptions($get(form), $getVal($get(form), "Type_Of_Legal_Problem"))',
|
|
848
|
+
});
|
|
849
|
+
|
|
850
|
+
const maritalStatus = (scope, vertical, updates = {}) => {
|
|
851
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
852
|
+
const label = vertical ? updates.label : "Marital Status:";
|
|
853
|
+
return func(
|
|
854
|
+
merge(
|
|
855
|
+
{
|
|
856
|
+
label,
|
|
857
|
+
name: scope ? scope + ":" + "Marital_Status" : "Marital_Status",
|
|
858
|
+
options: [
|
|
859
|
+
"Unmarried, Living Together",
|
|
860
|
+
"Unmarried, Do Not Live Together",
|
|
861
|
+
"Married, Living Together",
|
|
862
|
+
"Separated",
|
|
863
|
+
"Divorced",
|
|
864
|
+
"Other",
|
|
865
|
+
],
|
|
866
|
+
},
|
|
867
|
+
updates
|
|
868
|
+
)
|
|
869
|
+
)
|
|
870
|
+
};
|
|
680
871
|
|
|
681
|
-
|
|
682
|
-
name: scope ? scope + ':' + 'Pending_Charges' : 'Pending_Charges',
|
|
683
|
-
});
|
|
872
|
+
// XXX HERE
|
|
684
873
|
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
label:
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
});
|
|
874
|
+
const pendingCharges$1 = (scope, vertical, updates = {}) => {
|
|
875
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
876
|
+
const label = vertical ? updates.label : "Do you currently have any pending charges?";
|
|
877
|
+
return func(
|
|
878
|
+
merge(
|
|
879
|
+
{
|
|
880
|
+
name: scope ? scope + ":" + "Pending_Charges" : "Pending_Charges",
|
|
881
|
+
label,
|
|
882
|
+
},
|
|
883
|
+
updates
|
|
884
|
+
)
|
|
885
|
+
)
|
|
886
|
+
};
|
|
699
887
|
|
|
700
|
-
const
|
|
701
|
-
|
|
702
|
-
label
|
|
703
|
-
|
|
888
|
+
const primaryInjury = (scope, vertical, updates = {}) => {
|
|
889
|
+
const func = vertical ? col2RadioCenter : sbs2ColRadio;
|
|
890
|
+
const label = vertical ? updates.label : "Primary Injury:";
|
|
891
|
+
return func(
|
|
892
|
+
merge(
|
|
893
|
+
{
|
|
894
|
+
label,
|
|
895
|
+
name: scope ? scope + ":" + "Primary_Injury" : "Primary_Injury",
|
|
896
|
+
options: [
|
|
897
|
+
"Anxiety",
|
|
898
|
+
"Back or Neck Pain",
|
|
899
|
+
"Broken Bones",
|
|
900
|
+
"Cuts and Bruises",
|
|
901
|
+
"Headaches",
|
|
902
|
+
"Memory Loss",
|
|
903
|
+
"Loss of Limb",
|
|
904
|
+
"Not Sure or Other",
|
|
905
|
+
],
|
|
906
|
+
},
|
|
907
|
+
updates
|
|
908
|
+
)
|
|
909
|
+
)
|
|
910
|
+
};
|
|
704
911
|
|
|
705
|
-
const
|
|
706
|
-
|
|
707
|
-
|
|
912
|
+
const priorAlcoholOffenses$1 = (scope, vertical, updates = {}) => {
|
|
913
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
914
|
+
const label = vertical ? updates.label : "Any Prior Alcohol Related Offenses?";
|
|
915
|
+
return func(
|
|
916
|
+
merge(
|
|
917
|
+
{
|
|
918
|
+
name: scope ? scope + ":" + "Prior_Alcohol_Offenses" : "Prior_Alcohol_Offenses",
|
|
919
|
+
label,
|
|
920
|
+
},
|
|
921
|
+
updates
|
|
922
|
+
)
|
|
923
|
+
)
|
|
924
|
+
};
|
|
708
925
|
|
|
709
|
-
const policeReportFiled = (scope) =>
|
|
710
|
-
|
|
711
|
-
label:
|
|
712
|
-
|
|
926
|
+
const policeReportFiled = (scope, vertical, updates = {}) => {
|
|
927
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
928
|
+
const label = vertical ? updates.label : "Was a Police Report Filed?";
|
|
929
|
+
return func(
|
|
930
|
+
merge(
|
|
931
|
+
{
|
|
932
|
+
name: scope ? scope + ":" + "Police_Report_Filed" : "Police_Report_Filed",
|
|
933
|
+
label,
|
|
934
|
+
},
|
|
935
|
+
updates
|
|
936
|
+
)
|
|
937
|
+
)
|
|
938
|
+
};
|
|
713
939
|
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
940
|
+
const roleInMatterCriminal$1 = (scope, vertical, updates = {}) => {
|
|
941
|
+
const func = vertical ? verticalRadio : sbsRadio;
|
|
942
|
+
const label = vertical ? updates.label : "What is Your Role in this Matter?";
|
|
943
|
+
return func(
|
|
944
|
+
merge(
|
|
945
|
+
{
|
|
946
|
+
label,
|
|
947
|
+
name: scope ? scope + ":" + "Role_In_Matter_Criminal" : "Role_In_Matter_Criminal",
|
|
948
|
+
options: ["I have been accused", "I am acting on behalf of someone who has been accused", "Other"],
|
|
949
|
+
},
|
|
950
|
+
updates
|
|
951
|
+
)
|
|
952
|
+
)
|
|
953
|
+
};
|
|
722
954
|
|
|
723
|
-
const roleInMatterProbate = (scope) =>
|
|
724
|
-
|
|
725
|
-
label: "What
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
}
|
|
955
|
+
const roleInMatterProbate = (scope, vertical, updates = {}) => {
|
|
956
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
957
|
+
const label = vertical ? updates.label : "What is Your Role in this Matter?";
|
|
958
|
+
return func(
|
|
959
|
+
merge(
|
|
960
|
+
{
|
|
961
|
+
label,
|
|
962
|
+
name: scope ? scope + ":" + "Role_In_Matter_Probate" : "Role_In_Matter_Probate",
|
|
963
|
+
options: ["Preparing My Will", "Executor", "Heir", "Other"],
|
|
964
|
+
},
|
|
965
|
+
updates
|
|
966
|
+
)
|
|
967
|
+
)
|
|
968
|
+
};
|
|
733
969
|
|
|
734
|
-
const socialSecurityDisabilityReceivingBenefits = (scope) =>
|
|
735
|
-
|
|
736
|
-
label:
|
|
737
|
-
|
|
970
|
+
const socialSecurityDisabilityReceivingBenefits = (scope, vertical, updates = {}) => {
|
|
971
|
+
const func = vertical ? verticalYesNoRadio : sbsYesNoRadio;
|
|
972
|
+
const label = vertical ? updates.label : "Are You Currently Receiving Social Security Disability Benefits?";
|
|
973
|
+
return func(
|
|
974
|
+
merge(
|
|
975
|
+
{
|
|
976
|
+
name: scope
|
|
977
|
+
? scope + ":" + "Social_Security_Disability_Receiving_Benefits"
|
|
978
|
+
: "Social_Security_Disability_Receiving_Benefits",
|
|
979
|
+
label,
|
|
980
|
+
},
|
|
981
|
+
updates
|
|
982
|
+
)
|
|
983
|
+
)
|
|
984
|
+
};
|
|
738
985
|
|
|
739
986
|
const TCPAConsent = (scope) => ({
|
|
740
|
-
$formkit:
|
|
741
|
-
label:
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
987
|
+
$formkit: "checkbox",
|
|
988
|
+
label: "$meta.tcpaLanguage",
|
|
989
|
+
// Necessary to get links to work in the tcpa language
|
|
990
|
+
__raw__sectionsSchema: {
|
|
991
|
+
label: { attrs: { innerHTML: "$label" } },
|
|
992
|
+
},
|
|
993
|
+
name: scope ? scope + ":" + "TCPA_Opt_In" : "TCPA_Opt_In",
|
|
994
|
+
"data-tf-sensitive": "false",
|
|
995
|
+
validation: "required|accepted",
|
|
745
996
|
validationMessages: {
|
|
746
|
-
required:
|
|
747
|
-
accepted:
|
|
997
|
+
required: "Consent is required",
|
|
998
|
+
accepted: "Consent is required",
|
|
748
999
|
},
|
|
749
1000
|
classes: {
|
|
750
|
-
label: "t-text-xs t-text-slate-500 t-font-normal"
|
|
751
|
-
}
|
|
752
|
-
});
|
|
753
|
-
|
|
754
|
-
const typeOfAlcoholTest$1 = (scope) => sbsSelect({
|
|
755
|
-
name: scope ? scope + ':' + 'Type_Of_Alcohol_Test' : 'Type_Of_Alcohol_Test',
|
|
756
|
-
label: 'Type of Alcohol Test Performed?',
|
|
757
|
-
options: [
|
|
758
|
-
"No Test",
|
|
759
|
-
"Refused Test",
|
|
760
|
-
"Breath Test",
|
|
761
|
-
"Blood Test",
|
|
762
|
-
"Urine Test",
|
|
763
|
-
"Don't Know"
|
|
764
|
-
]
|
|
1001
|
+
label: "t-text-xs t-text-slate-500 t-font-normal",
|
|
1002
|
+
},
|
|
765
1003
|
});
|
|
766
1004
|
|
|
767
|
-
const
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
1005
|
+
const typeOfAlcoholTest$1 = (scope, vertical, updates = {}) => {
|
|
1006
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
1007
|
+
const label = vertical ? updates.label : "Type of Alcohol Test Performed?";
|
|
1008
|
+
return func(
|
|
1009
|
+
merge(
|
|
1010
|
+
{
|
|
1011
|
+
label,
|
|
1012
|
+
name: scope ? scope + ":" + "Type_Of_Alcohol_Test" : "Type_Of_Alcohol_Test",
|
|
1013
|
+
options: ["No Test", "Refused Test", "Breath Test", "Blood Test", "Urine Test", "Don't Know"],
|
|
1014
|
+
},
|
|
1015
|
+
updates
|
|
1016
|
+
)
|
|
1017
|
+
)
|
|
1018
|
+
};
|
|
778
1019
|
|
|
779
|
-
const typeOfAssets = (scope) =>
|
|
780
|
-
|
|
781
|
-
label:
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
1020
|
+
const typeOfAssets = (scope, vertical, updates = {}) => {
|
|
1021
|
+
const func = vertical ? verticalCol2Checkbox : col2Checkbox;
|
|
1022
|
+
const label = vertical ? updates.label : "Type of Assets:";
|
|
1023
|
+
return func(
|
|
1024
|
+
merge(
|
|
1025
|
+
{
|
|
1026
|
+
label,
|
|
1027
|
+
name: scope ? scope + ":" + "Type_Of_Assets" : "Type_Of_Assets",
|
|
1028
|
+
options: [
|
|
1029
|
+
"Business Interests",
|
|
1030
|
+
"Cash",
|
|
1031
|
+
"Life Insurance Policies",
|
|
1032
|
+
"Pensions/Retirement",
|
|
1033
|
+
"Personal Possessions",
|
|
1034
|
+
"Property",
|
|
1035
|
+
"Stock/Bonds",
|
|
1036
|
+
],
|
|
1037
|
+
},
|
|
1038
|
+
updates
|
|
1039
|
+
)
|
|
1040
|
+
)
|
|
1041
|
+
};
|
|
792
1042
|
|
|
793
|
-
const valueOfAssets = (scope) =>
|
|
794
|
-
|
|
795
|
-
label:
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
1043
|
+
const valueOfAssets = (scope, vertical, updates = {}) => {
|
|
1044
|
+
const func = vertical ? col2RadioCenter : sbsSelect;
|
|
1045
|
+
const label = vertical ? updates.label : "Value of Your Assets?";
|
|
1046
|
+
return func(
|
|
1047
|
+
merge(
|
|
1048
|
+
{
|
|
1049
|
+
label,
|
|
1050
|
+
name: scope ? scope + ":" + "Value_Of_Assets" : "Value_Of_Assets",
|
|
1051
|
+
options: ["Less than 50K", "50K to 100K", "100K to 250K", "250K to 500K", "500K to 1M", "More than 1M"],
|
|
1052
|
+
},
|
|
1053
|
+
updates
|
|
1054
|
+
)
|
|
1055
|
+
)
|
|
1056
|
+
};
|
|
805
1057
|
|
|
806
|
-
// ------ Question Groups
|
|
1058
|
+
// ------ Question Groups - TODO: move these go separate file groups.js
|
|
807
1059
|
|
|
808
1060
|
// NOTE: name must be unique within a form!
|
|
809
1061
|
const group = (name, updates) => {
|
|
810
|
-
return merge(
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
1062
|
+
return merge(
|
|
1063
|
+
{
|
|
1064
|
+
$cmp: "FormKit",
|
|
1065
|
+
props: {
|
|
1066
|
+
type: "group",
|
|
1067
|
+
key: name,
|
|
1068
|
+
id: name,
|
|
1069
|
+
name: name,
|
|
1070
|
+
},
|
|
1071
|
+
},
|
|
1072
|
+
updates
|
|
1073
|
+
)
|
|
819
1074
|
};
|
|
820
1075
|
|
|
821
|
-
const AutoAndCarAccidentsQuestions = (condition, scope) =>
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"'),
|
|
1076
|
+
const AutoAndCarAccidentsQuestions = (condition, scope) =>
|
|
1077
|
+
group("AutoAndCarAccidentsQuestions", {
|
|
1078
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Auto and Car Accidents"',
|
|
825
1079
|
children: [
|
|
826
1080
|
haveAttorney$1(scope),
|
|
827
1081
|
incidentDate$1(scope),
|
|
828
1082
|
atFault(scope),
|
|
829
1083
|
primaryInjury(scope),
|
|
830
1084
|
doctorTreatment(scope),
|
|
831
|
-
policeReportFiled(scope)
|
|
832
|
-
]
|
|
833
|
-
}
|
|
834
|
-
);
|
|
1085
|
+
policeReportFiled(scope),
|
|
1086
|
+
],
|
|
1087
|
+
});
|
|
835
1088
|
|
|
836
|
-
const ChildCustodyQuestions = (condition, scope) =>
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"'),
|
|
1089
|
+
const ChildCustodyQuestions = (condition, scope) =>
|
|
1090
|
+
group("ChildCustodyQuestions", {
|
|
1091
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Child Custody"',
|
|
840
1092
|
children: [
|
|
841
1093
|
haveAttorney$1(scope),
|
|
842
1094
|
childRelationship(scope),
|
|
843
1095
|
childHome(scope),
|
|
844
|
-
childPrimaryCaregiver(scope),
|
|
845
|
-
degreeOfInterest$1(scope),
|
|
846
|
-
lawyerPaymentMethod$1(scope)
|
|
847
|
-
]
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
1096
|
+
childPrimaryCaregiver(scope),
|
|
1097
|
+
degreeOfInterest$1(scope),
|
|
1098
|
+
lawyerPaymentMethod$1(scope),
|
|
1099
|
+
],
|
|
1100
|
+
});
|
|
1101
|
+
|
|
1102
|
+
const criminalTOLPDisplay = (scope, vertical, updates = {}) => {
|
|
1103
|
+
const func = vertical ? col2RadioCenter : col2Radio;
|
|
1104
|
+
const label = vertical ? updates.label : "Select The Criminal Issue:";
|
|
1105
|
+
const _if = vertical ? updates.if : '$get(Type_Of_Legal_Problem).value == "Criminal and Felony"';
|
|
1106
|
+
return func(
|
|
1107
|
+
merge(
|
|
1108
|
+
{
|
|
1109
|
+
label,
|
|
1110
|
+
if: _if,
|
|
1111
|
+
name: scope ? scope + ":" + "Type_Of_Legal_Problem_Display" : "Type_Of_Legal_Problem_Display",
|
|
1112
|
+
options: [
|
|
1113
|
+
"Criminal Defense",
|
|
1114
|
+
"Victim of a Crime",
|
|
1115
|
+
"DUI and DWI",
|
|
1116
|
+
"Expungement",
|
|
1117
|
+
"Harassment",
|
|
1118
|
+
"Not Sure or Other",
|
|
1119
|
+
],
|
|
1120
|
+
},
|
|
1121
|
+
updates
|
|
1122
|
+
)
|
|
1123
|
+
)
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
const DivorceQuestions = (condition, scope) =>
|
|
1127
|
+
group("DivorceQuestions", {
|
|
1128
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Divorce and Separation"',
|
|
867
1129
|
children: [
|
|
868
1130
|
haveAttorney$1(scope),
|
|
869
1131
|
maritalStatus(scope),
|
|
870
1132
|
haveChildren(scope),
|
|
871
1133
|
degreeOfInterest$1(scope),
|
|
872
|
-
lawyerPaymentMethod$1(scope)
|
|
873
|
-
]
|
|
874
|
-
}
|
|
875
|
-
);
|
|
1134
|
+
lawyerPaymentMethod$1(scope),
|
|
1135
|
+
],
|
|
1136
|
+
});
|
|
876
1137
|
|
|
877
|
-
const DUIAndDWIQuestions = (condition, scope) =>
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"'),
|
|
1138
|
+
const DUIAndDWIQuestions = (condition, scope) =>
|
|
1139
|
+
group("DUIAndDWIQuestions", {
|
|
1140
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "DUI and DWI"',
|
|
881
1141
|
children: [
|
|
882
1142
|
haveAttorney$1(scope),
|
|
883
1143
|
incidentDate$1(scope),
|
|
@@ -885,93 +1145,81 @@ const DUIAndDWIQuestions = (condition, scope) => group(
|
|
|
885
1145
|
typeOfAlcoholTest$1(scope),
|
|
886
1146
|
bloodContentAlcoholTest$1(scope),
|
|
887
1147
|
pendingCharges$1(scope),
|
|
888
|
-
degreeOfInterestHelp(scope)
|
|
889
|
-
]
|
|
890
|
-
}
|
|
891
|
-
);
|
|
1148
|
+
degreeOfInterestHelp(scope),
|
|
1149
|
+
],
|
|
1150
|
+
});
|
|
892
1151
|
|
|
893
|
-
const PersonalInjuryQuestions = (condition, scope) =>
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"'),
|
|
1152
|
+
const PersonalInjuryQuestions = (condition, scope) =>
|
|
1153
|
+
group("PersonalInjuryQuestions", {
|
|
1154
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Personal Injury"',
|
|
897
1155
|
children: [
|
|
898
1156
|
haveAttorney$1(scope),
|
|
899
1157
|
incidentDate$1(scope),
|
|
900
1158
|
claimStatus(scope),
|
|
901
1159
|
atFault(scope),
|
|
902
1160
|
primaryInjury(scope),
|
|
903
|
-
doctorTreatment(scope)
|
|
904
|
-
]
|
|
905
|
-
}
|
|
906
|
-
);
|
|
1161
|
+
doctorTreatment(scope),
|
|
1162
|
+
],
|
|
1163
|
+
});
|
|
907
1164
|
|
|
908
|
-
const PowerofAttorneyQuestions = (condition, scope) =>
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
haveAttorney$1(scope),
|
|
914
|
-
degreeOfInterestHelp(scope)
|
|
915
|
-
]
|
|
916
|
-
}
|
|
917
|
-
);
|
|
1165
|
+
const PowerofAttorneyQuestions = (condition, scope) =>
|
|
1166
|
+
group("PowerofAttorneyQuestions", {
|
|
1167
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Power of Attorney"',
|
|
1168
|
+
children: [haveAttorney$1(scope), degreeOfInterestHelp(scope)],
|
|
1169
|
+
});
|
|
918
1170
|
|
|
919
|
-
const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) =>
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"'),
|
|
1171
|
+
const SocialSecurityDisabilityAndInsuranceQuestions = (condition, scope) =>
|
|
1172
|
+
group("SocialSecurityDisabilityAndInsuranceQuestions", {
|
|
1173
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Social Security Disability and Insurance"',
|
|
923
1174
|
children: [
|
|
924
1175
|
haveAttorney$1(scope),
|
|
925
1176
|
applicantAge(scope),
|
|
926
1177
|
disabilityConditionStopWork(scope),
|
|
927
1178
|
disabilityWorkHistory(scope),
|
|
928
1179
|
socialSecurityDisabilityReceivingBenefits(scope),
|
|
929
|
-
doctorTreatment(scope)
|
|
930
|
-
]
|
|
931
|
-
}
|
|
932
|
-
);
|
|
1180
|
+
doctorTreatment(scope),
|
|
1181
|
+
],
|
|
1182
|
+
});
|
|
933
1183
|
|
|
934
|
-
const WillsAndTrustsQuestions = (condition, scope) =>
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"'),
|
|
1184
|
+
const WillsAndTrustsQuestions = (condition, scope) =>
|
|
1185
|
+
group("WillsAndTrustsQuestions", {
|
|
1186
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Wills and Trusts"',
|
|
938
1187
|
children: [
|
|
939
1188
|
haveAttorney$1(scope),
|
|
940
1189
|
valueOfAssets(scope),
|
|
941
1190
|
typeOfAssets(scope),
|
|
942
1191
|
roleInMatterProbate(scope),
|
|
943
1192
|
estateLegalServicesNeeded(scope),
|
|
944
|
-
degreeOfInterestHelp(scope)
|
|
945
|
-
]
|
|
946
|
-
}
|
|
947
|
-
);
|
|
1193
|
+
degreeOfInterestHelp(scope),
|
|
1194
|
+
],
|
|
1195
|
+
});
|
|
948
1196
|
|
|
949
|
-
const WorkersCompensationQuestions = (condition, scope) =>
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
if: (condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"'),
|
|
1197
|
+
const WorkersCompensationQuestions = (condition, scope) =>
|
|
1198
|
+
group("WorkersCompensationQuestions", {
|
|
1199
|
+
if: condition || '$get(Type_Of_Legal_Problem).value == "Workers Compensation"',
|
|
953
1200
|
children: [
|
|
954
1201
|
haveAttorney$1(scope),
|
|
955
1202
|
incidentDate$1(scope),
|
|
956
1203
|
claimStatus(scope),
|
|
957
1204
|
primaryInjury(scope),
|
|
958
1205
|
causeOfInjury(scope),
|
|
959
|
-
doctorTreatment(scope)
|
|
960
|
-
]
|
|
961
|
-
}
|
|
962
|
-
);
|
|
1206
|
+
doctorTreatment(scope),
|
|
1207
|
+
],
|
|
1208
|
+
});
|
|
963
1209
|
|
|
964
|
-
const NEXT_ON_ENTER =
|
|
965
|
-
const NEXT_ON_INPUT =
|
|
1210
|
+
const NEXT_ON_ENTER = "$onEnter($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
|
|
1211
|
+
const NEXT_ON_INPUT = "$onInput($setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form))))";
|
|
966
1212
|
|
|
967
|
-
const isInput = (n) => {
|
|
1213
|
+
const isInput = (n) => {
|
|
1214
|
+
return n.type !== "group" && n.type !== "section" && n.type !== "form" && n.$formkit !== "hidden" && !n.children
|
|
1215
|
+
};
|
|
968
1216
|
|
|
969
1217
|
const findLastInput = (n) => {
|
|
970
1218
|
if (isInput(n)) {
|
|
971
1219
|
return n
|
|
972
1220
|
}
|
|
973
1221
|
for (var i = n.children.length - 1; i >= 0; i--) {
|
|
974
|
-
if (typeof n.children ===
|
|
1222
|
+
if (typeof n.children === "string") {
|
|
975
1223
|
continue
|
|
976
1224
|
}
|
|
977
1225
|
const child = n.children[i];
|
|
@@ -987,136 +1235,154 @@ const findLastInput = (n) => {
|
|
|
987
1235
|
};
|
|
988
1236
|
|
|
989
1237
|
const secureIconDefault = {
|
|
990
|
-
$el:
|
|
991
|
-
if:
|
|
1238
|
+
$el: "div",
|
|
1239
|
+
if: "$activeStep === $lastStep()",
|
|
992
1240
|
attrs: {
|
|
993
|
-
class:
|
|
1241
|
+
class: "t-flex t-justify-center t-items-center t-text-sm t-text-gray-500",
|
|
994
1242
|
},
|
|
995
1243
|
children: [
|
|
996
1244
|
{
|
|
997
|
-
$el:
|
|
1245
|
+
$el: "img",
|
|
998
1246
|
attrs: {
|
|
999
|
-
loading:
|
|
1000
|
-
alt:
|
|
1247
|
+
loading: "lazy",
|
|
1248
|
+
alt: "",
|
|
1001
1249
|
style: {
|
|
1002
|
-
border: 0
|
|
1250
|
+
border: 0,
|
|
1003
1251
|
},
|
|
1004
|
-
width:
|
|
1005
|
-
height:
|
|
1006
|
-
src:
|
|
1007
|
-
}
|
|
1252
|
+
width: "25",
|
|
1253
|
+
height: "25",
|
|
1254
|
+
src: "https://d27hmee62k45vz.cloudfront.net/lock_icon_1.jpeg",
|
|
1255
|
+
},
|
|
1008
1256
|
},
|
|
1009
1257
|
{
|
|
1010
|
-
$el:
|
|
1011
|
-
children:
|
|
1258
|
+
$el: "span",
|
|
1259
|
+
children: "Secure & Encrypted",
|
|
1012
1260
|
attrs: {
|
|
1013
|
-
class:
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
]
|
|
1261
|
+
class: "t-pl-2 t-pt-1 t-font-medium",
|
|
1262
|
+
},
|
|
1263
|
+
},
|
|
1264
|
+
],
|
|
1017
1265
|
};
|
|
1018
1266
|
|
|
1019
1267
|
function secureIcon(updates) {
|
|
1020
|
-
return merge(
|
|
1021
|
-
secureIconDefault,
|
|
1022
|
-
updates
|
|
1023
|
-
)
|
|
1268
|
+
return merge(secureIconDefault, updates)
|
|
1024
1269
|
}
|
|
1025
1270
|
|
|
1026
1271
|
function crossSellQuestionsStepHeadline(updates) {
|
|
1027
1272
|
return {
|
|
1028
|
-
$el:
|
|
1029
|
-
children: updates.headline ||
|
|
1273
|
+
$el: "h3",
|
|
1274
|
+
children: updates.headline || "Tell Us About Your Situation",
|
|
1030
1275
|
attrs: {
|
|
1031
|
-
class:
|
|
1032
|
-
}
|
|
1276
|
+
class: "t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-blue-500 t-pb-4 t-pt-0 t-px-1",
|
|
1277
|
+
},
|
|
1033
1278
|
}
|
|
1034
1279
|
}
|
|
1035
1280
|
|
|
1036
1281
|
function crossSellQuestionsStepSubHeadline(updates) {
|
|
1037
1282
|
return {
|
|
1038
|
-
$el:
|
|
1039
|
-
children: updates.subheadline ||
|
|
1283
|
+
$el: "h5",
|
|
1284
|
+
children: updates.subheadline || "Tell us about your situation:",
|
|
1040
1285
|
attrs: {
|
|
1041
|
-
class:
|
|
1042
|
-
}
|
|
1286
|
+
class: "t-flex t-justify-center t-text-dark t-text-center !t-text-lg t-font-semibold t-pb-4 t-pt-0 t-px-3",
|
|
1287
|
+
},
|
|
1043
1288
|
}
|
|
1044
1289
|
}
|
|
1045
1290
|
|
|
1046
1291
|
function verticalStepHeadline(updates) {
|
|
1047
1292
|
return {
|
|
1048
|
-
$el:
|
|
1049
|
-
children: updates.headline ||
|
|
1293
|
+
$el: "h3",
|
|
1294
|
+
children: updates.headline || "Tell Us About Your Situation",
|
|
1050
1295
|
attrs: {
|
|
1051
|
-
class:
|
|
1052
|
-
|
|
1296
|
+
class:
|
|
1297
|
+
"t-flex t-justify-center t-text-center t-text-2xl t-font-bold t-text-dark t-pb-5 t-pt-0 t-px-1" +
|
|
1298
|
+
" " +
|
|
1299
|
+
(updates.headlineClass || ""),
|
|
1300
|
+
},
|
|
1053
1301
|
}
|
|
1054
1302
|
}
|
|
1055
1303
|
|
|
1056
1304
|
function verticalStepSubHeadline(updates) {
|
|
1057
1305
|
return {
|
|
1058
|
-
$el:
|
|
1059
|
-
children: updates.subheadline ||
|
|
1306
|
+
$el: "h5",
|
|
1307
|
+
children: updates.subheadline || "",
|
|
1060
1308
|
attrs: {
|
|
1061
|
-
class:
|
|
1062
|
-
|
|
1309
|
+
class:
|
|
1310
|
+
"t-flex t-justify-center t-text-center !t-text-lg t-font-normal t-text-dark t-pb-5 t-pt-0 t-px-1" +
|
|
1311
|
+
" " +
|
|
1312
|
+
(updates.subheadlineClass || ""),
|
|
1313
|
+
},
|
|
1063
1314
|
}
|
|
1064
1315
|
}
|
|
1065
1316
|
|
|
1066
1317
|
function commentsStepHeadline(updates) {
|
|
1067
1318
|
return {
|
|
1068
|
-
$el:
|
|
1069
|
-
children: updates.headline ||
|
|
1319
|
+
$el: "h3",
|
|
1320
|
+
children: updates.headline || "Additional Details",
|
|
1070
1321
|
attrs: {
|
|
1071
|
-
class:
|
|
1072
|
-
|
|
1322
|
+
class:
|
|
1323
|
+
"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" +
|
|
1324
|
+
" " +
|
|
1325
|
+
(updates.headlineClass || ""),
|
|
1326
|
+
},
|
|
1073
1327
|
}
|
|
1074
1328
|
}
|
|
1075
1329
|
|
|
1076
1330
|
function commentsStepHeadlineLegal(updates) {
|
|
1077
1331
|
return commentsStepHeadline({
|
|
1078
|
-
headline: updates.headline ||
|
|
1079
|
-
headlineClass: updates.headlineClass
|
|
1332
|
+
headline: updates.headline || "Additional Case Details",
|
|
1333
|
+
headlineClass: updates.headlineClass,
|
|
1080
1334
|
})
|
|
1081
1335
|
}
|
|
1082
1336
|
|
|
1083
1337
|
function firstAndLastStepHeadline(updates) {
|
|
1084
1338
|
return {
|
|
1085
|
-
$el:
|
|
1086
|
-
children: updates.headline ||
|
|
1339
|
+
$el: "h3",
|
|
1340
|
+
children: updates.headline || "Please Provide a Contact Name",
|
|
1087
1341
|
attrs: {
|
|
1088
|
-
class:
|
|
1089
|
-
|
|
1342
|
+
class:
|
|
1343
|
+
"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" +
|
|
1344
|
+
" " +
|
|
1345
|
+
(updates.headlineClass || ""),
|
|
1346
|
+
},
|
|
1090
1347
|
}
|
|
1091
1348
|
}
|
|
1092
1349
|
|
|
1093
1350
|
function legalCrossSellsStepHeadline(updates) {
|
|
1094
1351
|
return {
|
|
1095
|
-
$el:
|
|
1096
|
-
children: updates.headline ||
|
|
1352
|
+
$el: "h3",
|
|
1353
|
+
children: updates.headline || "Do any of the following situations apply?",
|
|
1097
1354
|
attrs: {
|
|
1098
|
-
class:
|
|
1099
|
-
|
|
1355
|
+
class:
|
|
1356
|
+
"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" +
|
|
1357
|
+
" " +
|
|
1358
|
+
(updates.headlineClass || ""),
|
|
1359
|
+
},
|
|
1100
1360
|
}
|
|
1101
1361
|
}
|
|
1102
1362
|
|
|
1103
1363
|
function contactStepHeadline(updates) {
|
|
1104
1364
|
return {
|
|
1105
|
-
$el:
|
|
1365
|
+
$el: "h3",
|
|
1106
1366
|
children: updates.headline || DEFAULT_FINAL_HEADLINE_DYNAMIC_LEGAL,
|
|
1107
1367
|
attrs: {
|
|
1108
|
-
class:
|
|
1109
|
-
|
|
1368
|
+
class:
|
|
1369
|
+
"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" +
|
|
1370
|
+
" " +
|
|
1371
|
+
(updates.headlineClass || ""),
|
|
1372
|
+
},
|
|
1110
1373
|
}
|
|
1111
1374
|
}
|
|
1112
1375
|
|
|
1113
1376
|
function contactStepSubHeadline(updates) {
|
|
1114
1377
|
return {
|
|
1115
|
-
$el:
|
|
1378
|
+
$el: "h5",
|
|
1116
1379
|
children: updates.subheadline || DEFAULT_FINAL_SUBHEADLINE_DYNAMIC_LEGAL,
|
|
1117
1380
|
attrs: {
|
|
1118
|
-
class:
|
|
1119
|
-
|
|
1381
|
+
class:
|
|
1382
|
+
"t-flex t-justify-center t-text-center !t-text-lg t-font-semibold t-pb-7 t-pt-0 t-px-3" +
|
|
1383
|
+
" " +
|
|
1384
|
+
(updates.subheadlineClass || ""),
|
|
1385
|
+
},
|
|
1120
1386
|
}
|
|
1121
1387
|
}
|
|
1122
1388
|
|
|
@@ -1138,19 +1404,19 @@ const TRUSTED_FORM_JS = `(function() {
|
|
|
1138
1404
|
|
|
1139
1405
|
function trustedFormScript() {
|
|
1140
1406
|
return {
|
|
1141
|
-
$el:
|
|
1142
|
-
if:
|
|
1143
|
-
children: TRUSTED_FORM_JS
|
|
1407
|
+
$el: "script",
|
|
1408
|
+
if: "$activeStep === $lastStep()",
|
|
1409
|
+
children: TRUSTED_FORM_JS,
|
|
1144
1410
|
}
|
|
1145
1411
|
}
|
|
1146
1412
|
|
|
1147
1413
|
const stepDefaults = (step, stepKey) => ({
|
|
1148
|
-
$el:
|
|
1414
|
+
$el: "section",
|
|
1149
1415
|
if: '$stepEnabled("' + step + '")',
|
|
1150
1416
|
attrs: {
|
|
1151
1417
|
hidden: '$activeStep !== "' + step + '"',
|
|
1152
|
-
key: stepKey ? stepKey : step
|
|
1153
|
-
}
|
|
1418
|
+
key: stepKey ? stepKey : step,
|
|
1419
|
+
},
|
|
1154
1420
|
});
|
|
1155
1421
|
|
|
1156
1422
|
function step(name, inputs, updates = {}) {
|
|
@@ -1173,35 +1439,35 @@ function step(name, inputs, updates = {}) {
|
|
|
1173
1439
|
}
|
|
1174
1440
|
}
|
|
1175
1441
|
|
|
1176
|
-
return merge(
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
]
|
|
1190
|
-
}
|
|
1191
|
-
)
|
|
1442
|
+
return merge(stepDefaults(name, stepKey), {
|
|
1443
|
+
children: [
|
|
1444
|
+
{
|
|
1445
|
+
$formkit: "group",
|
|
1446
|
+
id: name,
|
|
1447
|
+
name: name,
|
|
1448
|
+
nextStepMap: nextStepMap,
|
|
1449
|
+
triggerRedirectMap: triggerRedirectMap,
|
|
1450
|
+
autoFocus: autoFocus,
|
|
1451
|
+
children: inputs,
|
|
1452
|
+
},
|
|
1453
|
+
],
|
|
1454
|
+
})
|
|
1192
1455
|
}
|
|
1193
1456
|
|
|
1194
1457
|
// Single question step
|
|
1195
1458
|
function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
1196
|
-
if (typeof updates.nextOnInput ===
|
|
1459
|
+
if (typeof updates.nextOnInput === "undefined") {
|
|
1197
1460
|
updates.nextOnInput = true;
|
|
1198
1461
|
}
|
|
1199
|
-
|
|
1462
|
+
|
|
1200
1463
|
return step(
|
|
1201
1464
|
name,
|
|
1202
1465
|
[
|
|
1203
|
-
verticalStepHeadline({
|
|
1204
|
-
|
|
1466
|
+
verticalStepHeadline({
|
|
1467
|
+
headline: updates.headline ?? defaultHeadline,
|
|
1468
|
+
headlineClass: updates.headlineClass,
|
|
1469
|
+
}),
|
|
1470
|
+
...(Array.isArray(input) ? input : [input]),
|
|
1205
1471
|
],
|
|
1206
1472
|
updates
|
|
1207
1473
|
)
|
|
@@ -1209,7 +1475,7 @@ function sqstep(name, input, defaultHeadline, updates = {}) {
|
|
|
1209
1475
|
|
|
1210
1476
|
function contactInfo(updates = {}) {
|
|
1211
1477
|
return step(
|
|
1212
|
-
|
|
1478
|
+
"contactInfo",
|
|
1213
1479
|
[
|
|
1214
1480
|
contactStepHeadline(updates),
|
|
1215
1481
|
contactStepSubHeadline(updates),
|
|
@@ -1217,63 +1483,58 @@ function contactInfo(updates = {}) {
|
|
|
1217
1483
|
email(updates.scope),
|
|
1218
1484
|
phone(updates.scope),
|
|
1219
1485
|
TCPAConsent(updates.scope),
|
|
1220
|
-
secureIcon()
|
|
1486
|
+
secureIcon(),
|
|
1221
1487
|
],
|
|
1222
1488
|
{ nextOnEnter: false }
|
|
1223
1489
|
)
|
|
1224
1490
|
}
|
|
1225
1491
|
|
|
1226
|
-
function firstAndLastV3(updates = {}
|
|
1492
|
+
function firstAndLastV3(updates = {}) {
|
|
1227
1493
|
return step(
|
|
1228
|
-
|
|
1494
|
+
"firstAndLast",
|
|
1229
1495
|
[
|
|
1230
1496
|
firstAndLastStepHeadline({
|
|
1231
|
-
headline: updates.headline ??
|
|
1232
|
-
headlineClass: updates.headlineClass
|
|
1497
|
+
headline: updates.headline ?? "Who is looking for help?",
|
|
1498
|
+
headlineClass: updates.headlineClass,
|
|
1233
1499
|
}),
|
|
1234
1500
|
verticalStepSubHeadline({
|
|
1235
|
-
subheadline: updates.subheadline ??
|
|
1236
|
-
subheadlineClass:
|
|
1501
|
+
subheadline: updates.subheadline ?? "Note: we never share info without consent",
|
|
1502
|
+
subheadlineClass: "!t-text-sm !t-text-gray-500",
|
|
1237
1503
|
}),
|
|
1238
|
-
firstName(scope),
|
|
1239
|
-
lastName(scope)
|
|
1504
|
+
firstName(updates.scope),
|
|
1505
|
+
lastName(updates.scope),
|
|
1240
1506
|
],
|
|
1241
1507
|
updates
|
|
1242
1508
|
)
|
|
1243
1509
|
}
|
|
1244
1510
|
|
|
1245
1511
|
function zipcode(updates = {}) {
|
|
1246
|
-
return sqstep(
|
|
1247
|
-
'zipcode',
|
|
1248
|
-
zipcode$1(updates.scope, true, updates),
|
|
1249
|
-
'Please verify your Zip Code',
|
|
1250
|
-
updates
|
|
1251
|
-
)
|
|
1512
|
+
return sqstep("zipcode", zipcode$1(updates.scope, true, updates.input), "Please verify your Zip Code", updates)
|
|
1252
1513
|
}
|
|
1253
1514
|
|
|
1254
1515
|
function commentsWithBankruptcy(updates = {}) {
|
|
1255
1516
|
return step(
|
|
1256
|
-
|
|
1517
|
+
"commentsWithBankruptcy",
|
|
1257
1518
|
[
|
|
1258
1519
|
commentsStepHeadlineLegal(updates),
|
|
1259
|
-
comments({
|
|
1260
|
-
label: typeof updates.label ===
|
|
1520
|
+
comments(updates.scope, false, {
|
|
1521
|
+
label: typeof updates.label === "undefined" ? DEFAULT_COMMENTS_LABEL_LEGAL : updates.label,
|
|
1261
1522
|
placeholder: updates.placeholder || DEFAULT_COMMENTS_PLACEHOLDER_DYNAMIC_LEGAL,
|
|
1262
|
-
inputClass: typeof updates.inputClass ===
|
|
1263
|
-
}
|
|
1523
|
+
inputClass: typeof updates.inputClass === "undefined" ? "!t-h-32" : updates.inputClass,
|
|
1524
|
+
}),
|
|
1264
1525
|
// TODO: needs scope support
|
|
1265
1526
|
bankruptcyCrossSell(),
|
|
1266
1527
|
{
|
|
1267
|
-
$el:
|
|
1268
|
-
if:
|
|
1528
|
+
$el: "div",
|
|
1529
|
+
if: "$get(CrossSell_Bankruptcy).value == true",
|
|
1269
1530
|
children: [
|
|
1270
|
-
comments({
|
|
1271
|
-
label:
|
|
1272
|
-
placeholder:
|
|
1273
|
-
inputClass:
|
|
1274
|
-
},
|
|
1531
|
+
comments("CrossSell:Bankruptcy", false, {
|
|
1532
|
+
label: "Bankruptcy or debt details:",
|
|
1533
|
+
placeholder: "Please describe your bankrtupcy or debt situation in a few words...",
|
|
1534
|
+
inputClass: "!t-h-16",
|
|
1535
|
+
}),
|
|
1275
1536
|
],
|
|
1276
|
-
}
|
|
1537
|
+
},
|
|
1277
1538
|
],
|
|
1278
1539
|
{ nextOnEnter: false }
|
|
1279
1540
|
)
|
|
@@ -1281,15 +1542,15 @@ function commentsWithBankruptcy(updates = {}) {
|
|
|
1281
1542
|
|
|
1282
1543
|
function criminalTOLP(updates = {}) {
|
|
1283
1544
|
return step(
|
|
1284
|
-
|
|
1545
|
+
"criminalTOLP",
|
|
1285
1546
|
[
|
|
1286
1547
|
{
|
|
1287
|
-
$formkit:
|
|
1548
|
+
$formkit: "hidden",
|
|
1288
1549
|
name: "Type_Of_Legal_Problem",
|
|
1289
1550
|
id: "Type_Of_Legal_Problem",
|
|
1290
|
-
value: "Criminal and Felony"
|
|
1551
|
+
value: "Criminal and Felony",
|
|
1291
1552
|
},
|
|
1292
|
-
|
|
1553
|
+
criminalTOLPDisplay(updates.scope, true, updates),
|
|
1293
1554
|
],
|
|
1294
1555
|
updates
|
|
1295
1556
|
)
|
|
@@ -1297,19 +1558,20 @@ function criminalTOLP(updates = {}) {
|
|
|
1297
1558
|
|
|
1298
1559
|
function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
1299
1560
|
return step(
|
|
1300
|
-
|
|
1561
|
+
"autoAndCarAccidentCrossSellQuestions",
|
|
1301
1562
|
[
|
|
1302
|
-
crossSellQuestionsStepHeadline({
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1563
|
+
crossSellQuestionsStepHeadline({
|
|
1564
|
+
headline: "You May Be Entitled To Compensation",
|
|
1565
|
+
}),
|
|
1566
|
+
crossSellQuestionsStepSubHeadline({
|
|
1567
|
+
subheadline: "Tell us about your accident:",
|
|
1568
|
+
}),
|
|
1569
|
+
AutoAndCarAccidentsQuestions("true", "CrossSell:Auto_and_Car_Accidents"),
|
|
1570
|
+
comments("CrossSell:Auto_and_Car_Accidents", false, {
|
|
1571
|
+
label: "Accident Description:",
|
|
1572
|
+
placeholder: "Please describe your accident in a few words...",
|
|
1573
|
+
inputClass: "!t-h-16",
|
|
1574
|
+
}),
|
|
1313
1575
|
],
|
|
1314
1576
|
updates
|
|
1315
1577
|
)
|
|
@@ -1317,18 +1579,15 @@ function autoAndCarAccidentCrossSellQuestions(updates = {}) {
|
|
|
1317
1579
|
|
|
1318
1580
|
function childCustodyCrossSellQuestions(updates = {}) {
|
|
1319
1581
|
return step(
|
|
1320
|
-
|
|
1582
|
+
"childCustodyCrossSellQuestions",
|
|
1321
1583
|
[
|
|
1322
|
-
crossSellQuestionsStepHeadline({ headline:
|
|
1323
|
-
ChildCustodyQuestions("true",
|
|
1324
|
-
comments(
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
},
|
|
1330
|
-
'CrossSell:Child_Custody'
|
|
1331
|
-
)
|
|
1584
|
+
crossSellQuestionsStepHeadline({ headline: "Child Custody Information" }),
|
|
1585
|
+
ChildCustodyQuestions("true", "CrossSell:Child_Custody"),
|
|
1586
|
+
comments("CrossSell:Child_Custody", false, {
|
|
1587
|
+
label: "Description:",
|
|
1588
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1589
|
+
inputClass: "!t-h-16",
|
|
1590
|
+
}),
|
|
1332
1591
|
],
|
|
1333
1592
|
updates
|
|
1334
1593
|
)
|
|
@@ -1336,18 +1595,17 @@ function childCustodyCrossSellQuestions(updates = {}) {
|
|
|
1336
1595
|
|
|
1337
1596
|
function divorceAndSeparationCrossSellQuestions(updates = {}) {
|
|
1338
1597
|
return step(
|
|
1339
|
-
|
|
1598
|
+
"divorceAndSeparationCrossSellQuestions",
|
|
1340
1599
|
[
|
|
1341
|
-
crossSellQuestionsStepHeadline({
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
)
|
|
1600
|
+
crossSellQuestionsStepHeadline({
|
|
1601
|
+
headline: "Divorce or Separation Information",
|
|
1602
|
+
}),
|
|
1603
|
+
DivorceQuestions("true", "CrossSell:Divorce_and_Separation"),
|
|
1604
|
+
comments("CrossSell:Divorce_and_Separation", false, {
|
|
1605
|
+
label: "Description:",
|
|
1606
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1607
|
+
inputClass: "!t-h-16",
|
|
1608
|
+
}),
|
|
1351
1609
|
],
|
|
1352
1610
|
updates
|
|
1353
1611
|
)
|
|
@@ -1355,18 +1613,15 @@ function divorceAndSeparationCrossSellQuestions(updates = {}) {
|
|
|
1355
1613
|
|
|
1356
1614
|
function duiAndDWICrossSellQuestions(updates = {}) {
|
|
1357
1615
|
return step(
|
|
1358
|
-
|
|
1616
|
+
"duiAndDWICrossSellQuestions",
|
|
1359
1617
|
[
|
|
1360
|
-
crossSellQuestionsStepHeadline({ headline:
|
|
1361
|
-
DUIAndDWIQuestions("true",
|
|
1362
|
-
comments(
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
},
|
|
1368
|
-
'CrossSell:DUI_and_DWI'
|
|
1369
|
-
)
|
|
1618
|
+
crossSellQuestionsStepHeadline({ headline: "About Your DUI/DWI" }),
|
|
1619
|
+
DUIAndDWIQuestions("true", "CrossSell:DUI_and_DWI"),
|
|
1620
|
+
comments("CrossSell:DUI_and_DWI", false, {
|
|
1621
|
+
label: "Incident Description:",
|
|
1622
|
+
placeholder: "Please describe your incident in a few words...",
|
|
1623
|
+
inputClass: "!t-h-16",
|
|
1624
|
+
}),
|
|
1370
1625
|
],
|
|
1371
1626
|
updates
|
|
1372
1627
|
)
|
|
@@ -1374,19 +1629,20 @@ function duiAndDWICrossSellQuestions(updates = {}) {
|
|
|
1374
1629
|
|
|
1375
1630
|
function ssdiCrossSellQuestions(updates = {}) {
|
|
1376
1631
|
return step(
|
|
1377
|
-
|
|
1632
|
+
"ssdiCrossSellQuestions",
|
|
1378
1633
|
[
|
|
1379
|
-
crossSellQuestionsStepHeadline({
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1634
|
+
crossSellQuestionsStepHeadline({
|
|
1635
|
+
headline: "You May Be Entitled To Benefits",
|
|
1636
|
+
}),
|
|
1637
|
+
crossSellQuestionsStepSubHeadline({
|
|
1638
|
+
subheadline: "Tell us about your disability:",
|
|
1639
|
+
}),
|
|
1640
|
+
SocialSecurityDisabilityAndInsuranceQuestions("true", "CrossSell:Social_Security_Disability_and_Insurance"),
|
|
1641
|
+
comments("CrossSell:Social_Security_Disability_and_Insurance", false, {
|
|
1642
|
+
label: "Description:",
|
|
1643
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1644
|
+
inputClass: "!t-h-16",
|
|
1645
|
+
}),
|
|
1390
1646
|
],
|
|
1391
1647
|
updates
|
|
1392
1648
|
)
|
|
@@ -1394,19 +1650,20 @@ function ssdiCrossSellQuestions(updates = {}) {
|
|
|
1394
1650
|
|
|
1395
1651
|
function personalInjuryCrossSellQuestions(updates = {}) {
|
|
1396
1652
|
return step(
|
|
1397
|
-
|
|
1653
|
+
"personalInjuryCrossSellQuestions",
|
|
1398
1654
|
[
|
|
1399
|
-
crossSellQuestionsStepHeadline({
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1655
|
+
crossSellQuestionsStepHeadline({
|
|
1656
|
+
headline: "You May Be Entitled To Compensation",
|
|
1657
|
+
}),
|
|
1658
|
+
crossSellQuestionsStepSubHeadline({
|
|
1659
|
+
subheadline: "Tell us about your injury:",
|
|
1660
|
+
}),
|
|
1661
|
+
PersonalInjuryQuestions("true", "CrossSell:Personal_Injury"),
|
|
1662
|
+
comments("CrossSell:Personal_Injury", false, {
|
|
1663
|
+
label: "Injury Description:",
|
|
1664
|
+
placeholder: "Please describe your injury in a few words...",
|
|
1665
|
+
inputClass: "!t-h-16",
|
|
1666
|
+
}),
|
|
1410
1667
|
],
|
|
1411
1668
|
updates
|
|
1412
1669
|
)
|
|
@@ -1414,18 +1671,17 @@ function personalInjuryCrossSellQuestions(updates = {}) {
|
|
|
1414
1671
|
|
|
1415
1672
|
function powerOfAttorneyCrossSellQuestions(updates = {}) {
|
|
1416
1673
|
return step(
|
|
1417
|
-
|
|
1674
|
+
"powerOfAttorneyCrossSellQuestions",
|
|
1418
1675
|
[
|
|
1419
|
-
crossSellQuestionsStepHeadline({
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
)
|
|
1676
|
+
crossSellQuestionsStepHeadline({
|
|
1677
|
+
headline: "Power of Attorney Information",
|
|
1678
|
+
}),
|
|
1679
|
+
PowerofAttorneyQuestions("true", "CrossSell:Power_of_Attorney"),
|
|
1680
|
+
comments("CrossSell:Power_of_Attorney", false, {
|
|
1681
|
+
label: "Description:",
|
|
1682
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1683
|
+
inputClass: "!t-h-16",
|
|
1684
|
+
}),
|
|
1429
1685
|
],
|
|
1430
1686
|
updates
|
|
1431
1687
|
)
|
|
@@ -1433,18 +1689,15 @@ function powerOfAttorneyCrossSellQuestions(updates = {}) {
|
|
|
1433
1689
|
|
|
1434
1690
|
function willsAndTrustsCrossSellQuestions(updates = {}) {
|
|
1435
1691
|
return step(
|
|
1436
|
-
|
|
1692
|
+
"willsAndTrustsCrossSellQuestions",
|
|
1437
1693
|
[
|
|
1438
|
-
crossSellQuestionsStepHeadline({ headline:
|
|
1439
|
-
WillsAndTrustsQuestions("true",
|
|
1440
|
-
comments(
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
},
|
|
1446
|
-
'CrossSell:Wills_and_Trusts'
|
|
1447
|
-
)
|
|
1694
|
+
crossSellQuestionsStepHeadline({ headline: "Will or Trust Information" }),
|
|
1695
|
+
WillsAndTrustsQuestions("true", "CrossSell:Wills_and_Trusts"),
|
|
1696
|
+
comments("CrossSell:Wills_and_Trusts", false, {
|
|
1697
|
+
label: "Description:",
|
|
1698
|
+
placeholder: "Please describe your situation in a few words...",
|
|
1699
|
+
inputClass: "!t-h-16",
|
|
1700
|
+
}),
|
|
1448
1701
|
],
|
|
1449
1702
|
updates
|
|
1450
1703
|
)
|
|
@@ -1452,19 +1705,20 @@ function willsAndTrustsCrossSellQuestions(updates = {}) {
|
|
|
1452
1705
|
|
|
1453
1706
|
function workersCompensationCrossSellQuestions(updates = {}) {
|
|
1454
1707
|
return step(
|
|
1455
|
-
|
|
1708
|
+
"workersCompensationCrossSellQuestions",
|
|
1456
1709
|
[
|
|
1457
|
-
crossSellQuestionsStepHeadline({
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1710
|
+
crossSellQuestionsStepHeadline({
|
|
1711
|
+
headline: "You May Be Entitled To Benefits",
|
|
1712
|
+
}),
|
|
1713
|
+
crossSellQuestionsStepSubHeadline({
|
|
1714
|
+
subheadline: "Tell us about your injury:",
|
|
1715
|
+
}),
|
|
1716
|
+
WorkersCompensationQuestions("true", "CrossSell:Workers_Compensation"),
|
|
1717
|
+
comments("CrossSell:Workers_Compensation", false, {
|
|
1718
|
+
label: "Injury Description:",
|
|
1719
|
+
placeholder: "Please describe your injury in a few words...",
|
|
1720
|
+
inputClass: "!t-h-16",
|
|
1721
|
+
}),
|
|
1468
1722
|
],
|
|
1469
1723
|
updates
|
|
1470
1724
|
)
|
|
@@ -1472,231 +1726,224 @@ function workersCompensationCrossSellQuestions(updates = {}) {
|
|
|
1472
1726
|
|
|
1473
1727
|
function legalCrossSells(updates = {}) {
|
|
1474
1728
|
updates.nextOnInput = false;
|
|
1475
|
-
updates.stepKey =
|
|
1476
|
-
return step(
|
|
1477
|
-
'legalCrossSells',
|
|
1478
|
-
[
|
|
1479
|
-
legalCrossSellsStepHeadline(updates),
|
|
1480
|
-
legalCrossSells$1(),
|
|
1481
|
-
],
|
|
1482
|
-
updates
|
|
1483
|
-
)
|
|
1729
|
+
updates.stepKey = "$get(Type_Of_Legal_Problem).value";
|
|
1730
|
+
return step("legalCrossSells", [legalCrossSellsStepHeadline(updates), legalCrossSells$1()], updates)
|
|
1484
1731
|
}
|
|
1485
1732
|
|
|
1486
1733
|
function haveAttorney(updates = {}) {
|
|
1487
1734
|
return sqstep(
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1735
|
+
"haveAttorney",
|
|
1736
|
+
haveAttorney$1(updates.scope, true, updates.input),
|
|
1737
|
+
"Already working with an attorney?",
|
|
1491
1738
|
updates
|
|
1492
1739
|
)
|
|
1493
1740
|
}
|
|
1494
1741
|
|
|
1495
1742
|
function degreeOfInterest(updates = {}) {
|
|
1496
1743
|
return sqstep(
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1744
|
+
"degreeOfInterest",
|
|
1745
|
+
degreeOfInterest$1(updates.scope, true, updates.input),
|
|
1746
|
+
"Could you pay if your issue could be resolved?",
|
|
1500
1747
|
updates
|
|
1501
1748
|
)
|
|
1502
1749
|
}
|
|
1503
1750
|
|
|
1504
1751
|
function lawyerPaymentMethod(updates = {}) {
|
|
1505
1752
|
return sqstep(
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1753
|
+
"lawyerPaymentMethod",
|
|
1754
|
+
lawyerPaymentMethod$1(updates.scope, true, updates.input),
|
|
1755
|
+
"How would you pay if a solution required it?",
|
|
1509
1756
|
updates
|
|
1510
1757
|
)
|
|
1511
1758
|
}
|
|
1512
1759
|
|
|
1513
1760
|
function incidentDate(updates = {}) {
|
|
1514
1761
|
return sqstep(
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1762
|
+
"incidentDate",
|
|
1763
|
+
incidentDate$1(updates.scope, true, updates.input),
|
|
1764
|
+
"When did the incident occur?",
|
|
1518
1765
|
updates
|
|
1519
1766
|
)
|
|
1520
1767
|
}
|
|
1521
1768
|
|
|
1522
1769
|
function crimeCommittedDate(updates = {}) {
|
|
1523
1770
|
return sqstep(
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1771
|
+
"crimeCommittedDate",
|
|
1772
|
+
crimeCommittedDate$1(updates.scope, true, updates.input),
|
|
1773
|
+
"When was the alleged crime?",
|
|
1527
1774
|
updates
|
|
1528
1775
|
)
|
|
1529
1776
|
}
|
|
1530
1777
|
|
|
1531
1778
|
function roleInMatterCriminal(updates = {}) {
|
|
1532
1779
|
return sqstep(
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1780
|
+
"roleInMatterCriminal",
|
|
1781
|
+
roleInMatterCriminal$1(updates.scope, true, updates.input),
|
|
1782
|
+
"What is your role in this matter?",
|
|
1536
1783
|
updates
|
|
1537
1784
|
)
|
|
1538
1785
|
}
|
|
1539
1786
|
|
|
1540
1787
|
function pendingCharges(updates = {}) {
|
|
1541
1788
|
return sqstep(
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1789
|
+
"pendingCharges",
|
|
1790
|
+
pendingCharges$1(updates.scope, true, updates.input),
|
|
1791
|
+
"Do you have any pending charges?",
|
|
1545
1792
|
updates
|
|
1546
1793
|
)
|
|
1547
1794
|
}
|
|
1548
1795
|
|
|
1549
1796
|
function bloodContentAlcoholTest(updates = {}) {
|
|
1550
1797
|
return sqstep(
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1798
|
+
"bloodContentAlcoholTest",
|
|
1799
|
+
bloodContentAlcoholTest$1(updates.scope, true, updates.input),
|
|
1800
|
+
"What was your blood alcohol content?",
|
|
1554
1801
|
updates
|
|
1555
1802
|
)
|
|
1556
1803
|
}
|
|
1557
1804
|
|
|
1558
1805
|
function priorAlcoholOffenses(updates = {}) {
|
|
1559
1806
|
return sqstep(
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1807
|
+
"priorAlcoholOffenses",
|
|
1808
|
+
priorAlcoholOffenses$1(updates.scope, true, updates.input),
|
|
1809
|
+
"Do you have prior alcohol offenses?",
|
|
1563
1810
|
updates
|
|
1564
1811
|
)
|
|
1565
1812
|
}
|
|
1566
1813
|
|
|
1567
1814
|
function typeOfAlcoholTest(updates = {}) {
|
|
1568
1815
|
return sqstep(
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1816
|
+
"typeOfAlcoholTest",
|
|
1817
|
+
typeOfAlcoholTest$1(updates.scope, true, updates.input),
|
|
1818
|
+
"What type of alcohol test was performed?",
|
|
1572
1819
|
updates
|
|
1573
1820
|
)
|
|
1574
1821
|
}
|
|
1575
1822
|
|
|
1576
1823
|
function criminalChargeType(updates = {}) {
|
|
1577
1824
|
return sqstep(
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1825
|
+
"criminalChargeType",
|
|
1826
|
+
criminalChargeType$1(updates.scope, true, updates.input),
|
|
1827
|
+
"What type of criminal charge?",
|
|
1581
1828
|
updates
|
|
1582
1829
|
)
|
|
1583
1830
|
}
|
|
1584
1831
|
|
|
1585
1832
|
function criminalChargesFiled(updates = {}) {
|
|
1586
1833
|
return sqstep(
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1834
|
+
"criminalChargesFiled",
|
|
1835
|
+
criminalChargesFiled$1(updates.scope, true, updates.input),
|
|
1836
|
+
"Have criminal charges been filed?",
|
|
1590
1837
|
updates
|
|
1591
1838
|
)
|
|
1592
1839
|
}
|
|
1593
1840
|
|
|
1594
1841
|
const formNavigation = (updates = {}) => ({
|
|
1595
|
-
$el:
|
|
1842
|
+
$el: "div",
|
|
1596
1843
|
attrs: {
|
|
1597
|
-
class:
|
|
1844
|
+
class: "step-nav",
|
|
1598
1845
|
},
|
|
1599
1846
|
children: [
|
|
1600
1847
|
{
|
|
1601
|
-
$formkit:
|
|
1602
|
-
name:
|
|
1603
|
-
onClick:
|
|
1604
|
-
children:
|
|
1848
|
+
$formkit: "button",
|
|
1849
|
+
name: "back_button",
|
|
1850
|
+
onClick: "$setPreviousStep($prevStepFunc($get(form)))",
|
|
1851
|
+
children: "Back",
|
|
1605
1852
|
style: {
|
|
1606
|
-
if:
|
|
1607
|
-
then:
|
|
1608
|
-
}
|
|
1853
|
+
if: "$activeStep === $firstStep()",
|
|
1854
|
+
then: "visibility: hidden;",
|
|
1855
|
+
},
|
|
1609
1856
|
},
|
|
1610
1857
|
{
|
|
1611
|
-
$formkit:
|
|
1612
|
-
name:
|
|
1613
|
-
onClick:
|
|
1858
|
+
$formkit: "button",
|
|
1859
|
+
name: "next_button",
|
|
1860
|
+
onClick: "$setNextStep($fireStepEvent($get(form)), $preStepFunc($get(form)))",
|
|
1614
1861
|
children: {
|
|
1615
|
-
if:
|
|
1616
|
-
then:
|
|
1617
|
-
else:
|
|
1862
|
+
if: "$activeStep === $firstStep()",
|
|
1863
|
+
then: "Start",
|
|
1864
|
+
else: "Next",
|
|
1618
1865
|
},
|
|
1619
1866
|
outerClass: {
|
|
1620
|
-
if:
|
|
1621
|
-
then:
|
|
1622
|
-
else:
|
|
1867
|
+
if: "$activeStep === $lastStep()",
|
|
1868
|
+
then: "t-hidden",
|
|
1869
|
+
else: "",
|
|
1623
1870
|
},
|
|
1624
1871
|
style: {
|
|
1625
|
-
if:
|
|
1626
|
-
then:
|
|
1627
|
-
}
|
|
1872
|
+
if: "$activeStep === $lastStep()",
|
|
1873
|
+
then: "display: none;",
|
|
1874
|
+
},
|
|
1628
1875
|
},
|
|
1629
1876
|
{
|
|
1630
|
-
$formkit:
|
|
1631
|
-
name:
|
|
1632
|
-
label: updates.submitLabel ||
|
|
1633
|
-
if:
|
|
1877
|
+
$formkit: "submit",
|
|
1878
|
+
name: "submit_button",
|
|
1879
|
+
label: updates.submitLabel || "Submit",
|
|
1880
|
+
if: "$activeStep === $lastStep()",
|
|
1634
1881
|
style: {
|
|
1635
|
-
if:
|
|
1636
|
-
then:
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
]
|
|
1882
|
+
if: "$activeStep !== $lastStep()",
|
|
1883
|
+
then: "display: none;",
|
|
1884
|
+
},
|
|
1885
|
+
},
|
|
1886
|
+
],
|
|
1640
1887
|
});
|
|
1641
1888
|
|
|
1642
1889
|
const formDetails = () => ({
|
|
1643
|
-
$el:
|
|
1890
|
+
$el: "pre",
|
|
1644
1891
|
if: '$urlParam("fdbg", "") == 1',
|
|
1645
1892
|
children: [
|
|
1646
1893
|
{
|
|
1647
|
-
$el:
|
|
1648
|
-
children:
|
|
1894
|
+
$el: "pre",
|
|
1895
|
+
children: "$stringify( $get(form).value )",
|
|
1649
1896
|
attrs: {
|
|
1650
|
-
class:
|
|
1651
|
-
style:
|
|
1652
|
-
}
|
|
1897
|
+
class: "t-text-xs",
|
|
1898
|
+
style: "overflow: scroll",
|
|
1899
|
+
},
|
|
1653
1900
|
},
|
|
1654
1901
|
{
|
|
1655
|
-
$el:
|
|
1656
|
-
children: [
|
|
1902
|
+
$el: "pre",
|
|
1903
|
+
children: ["activeStep: ", "$activeStep"],
|
|
1657
1904
|
attrs: {
|
|
1658
|
-
class:
|
|
1659
|
-
style:
|
|
1660
|
-
}
|
|
1905
|
+
class: "t-text-xs",
|
|
1906
|
+
style: "overflow: scroll",
|
|
1907
|
+
},
|
|
1661
1908
|
},
|
|
1662
1909
|
{
|
|
1663
|
-
$el:
|
|
1664
|
-
children: [
|
|
1910
|
+
$el: "pre",
|
|
1911
|
+
children: ["stepHistory: ", "$stepHistory"],
|
|
1665
1912
|
attrs: {
|
|
1666
|
-
class:
|
|
1667
|
-
style:
|
|
1668
|
-
}
|
|
1913
|
+
class: "t-text-xs",
|
|
1914
|
+
style: "overflow: scroll",
|
|
1915
|
+
},
|
|
1669
1916
|
},
|
|
1670
1917
|
{
|
|
1671
|
-
$el:
|
|
1672
|
-
children: [
|
|
1918
|
+
$el: "pre",
|
|
1919
|
+
children: ["stepQueue: ", "$stepQueue"],
|
|
1673
1920
|
attrs: {
|
|
1674
|
-
class:
|
|
1675
|
-
style:
|
|
1676
|
-
}
|
|
1921
|
+
class: "t-text-xs",
|
|
1922
|
+
style: "overflow: scroll",
|
|
1923
|
+
},
|
|
1677
1924
|
},
|
|
1678
1925
|
{
|
|
1679
|
-
$el:
|
|
1680
|
-
children: [
|
|
1926
|
+
$el: "pre",
|
|
1927
|
+
children: ["steps: ", "$stepKeys()"],
|
|
1681
1928
|
attrs: {
|
|
1682
|
-
class:
|
|
1683
|
-
style:
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
]
|
|
1929
|
+
class: "t-text-xs",
|
|
1930
|
+
style: "overflow: scroll",
|
|
1931
|
+
},
|
|
1932
|
+
},
|
|
1933
|
+
],
|
|
1687
1934
|
});
|
|
1688
1935
|
|
|
1689
1936
|
const formPropDefaults = {
|
|
1690
|
-
type:
|
|
1691
|
-
id:
|
|
1692
|
-
config: { validationVisibility:
|
|
1937
|
+
type: "form",
|
|
1938
|
+
id: "form",
|
|
1939
|
+
config: { validationVisibility: "submit" },
|
|
1693
1940
|
onSubmit: '$submit($submitUrl, $prepData, $handleRedirect, "text/plain; charset=UTF-8")',
|
|
1694
|
-
plugins:
|
|
1941
|
+
plugins: "$plugins",
|
|
1695
1942
|
actions: false,
|
|
1696
|
-
anchorElement:
|
|
1943
|
+
anchorElement: "form-anchor",
|
|
1697
1944
|
useLocalStorage: true,
|
|
1698
1945
|
prepop: {
|
|
1699
|
-
fromURL: true
|
|
1946
|
+
fromURL: true,
|
|
1700
1947
|
},
|
|
1701
1948
|
errorCodes: {
|
|
1702
1949
|
403: { message: "An Error Occurred", abort: false },
|
|
@@ -1704,13 +1951,11 @@ const formPropDefaults = {
|
|
|
1704
1951
|
429: "An Error Occurred",
|
|
1705
1952
|
504: { message: "An Error Occurred", abort: false },
|
|
1706
1953
|
},
|
|
1707
|
-
formClass:
|
|
1954
|
+
formClass: "!t-max-w-[40rem]",
|
|
1708
1955
|
};
|
|
1709
1956
|
|
|
1710
1957
|
function filterMapByKey(obj, keyList) {
|
|
1711
|
-
return Object.fromEntries(
|
|
1712
|
-
Object.entries(obj).filter(([key]) => keyList.includes(key))
|
|
1713
|
-
);
|
|
1958
|
+
return Object.fromEntries(Object.entries(obj).filter(([key]) => keyList.includes(key)))
|
|
1714
1959
|
}
|
|
1715
1960
|
|
|
1716
1961
|
// export function filteredNextStepsMapLegal(keyList) {
|
|
@@ -1720,10 +1965,7 @@ function filterMapByKey(obj, keyList) {
|
|
|
1720
1965
|
// }
|
|
1721
1966
|
|
|
1722
1967
|
function formProps(updates) {
|
|
1723
|
-
const props = merge(
|
|
1724
|
-
formPropDefaults,
|
|
1725
|
-
updates
|
|
1726
|
-
);
|
|
1968
|
+
const props = merge(formPropDefaults, updates);
|
|
1727
1969
|
if (props.formId && !props.name) {
|
|
1728
1970
|
props.name = props.formId;
|
|
1729
1971
|
}
|
|
@@ -1733,13 +1975,10 @@ function formProps(updates) {
|
|
|
1733
1975
|
const metaDefaults = {};
|
|
1734
1976
|
|
|
1735
1977
|
function metaProps(updates) {
|
|
1736
|
-
const data = merge(
|
|
1737
|
-
metaDefaults,
|
|
1738
|
-
updates
|
|
1739
|
-
);
|
|
1978
|
+
const data = merge(metaDefaults, updates);
|
|
1740
1979
|
return {
|
|
1741
|
-
type:
|
|
1742
|
-
data
|
|
1980
|
+
type: "meta",
|
|
1981
|
+
data,
|
|
1743
1982
|
}
|
|
1744
1983
|
}
|
|
1745
1984
|
|
|
@@ -1759,475 +1998,474 @@ function defaultMetaPropsLegal(tolps = null) {
|
|
|
1759
1998
|
defaultFinalHeadline: DEFAULT_FINAL_HEADLINE_LEGAL,
|
|
1760
1999
|
finalHeadlines: finalHeadlines,
|
|
1761
2000
|
defaultFinalSubHeadline: DEFAULT_FINAL_SUBHEADLINE_LEGAL,
|
|
1762
|
-
finalSubHeadlines: finalSubHeadlines
|
|
2001
|
+
finalSubHeadlines: finalSubHeadlines,
|
|
1763
2002
|
})
|
|
1764
2003
|
}
|
|
1765
2004
|
|
|
1766
|
-
function dynamicSchemaNode(field =
|
|
2005
|
+
function dynamicSchemaNode(field = "Type_Of_Legal_Problem") {
|
|
1767
2006
|
return {
|
|
1768
|
-
$cmp:
|
|
1769
|
-
if:
|
|
2007
|
+
$cmp: "FormKitSchema",
|
|
2008
|
+
if: "$get(" + field + ").value",
|
|
1770
2009
|
props: {
|
|
1771
|
-
schema:
|
|
1772
|
-
data:
|
|
1773
|
-
}
|
|
2010
|
+
schema: "$meta.dynamicSchema",
|
|
2011
|
+
data: "$buildData($meta)",
|
|
2012
|
+
},
|
|
1774
2013
|
}
|
|
1775
2014
|
}
|
|
1776
2015
|
|
|
1777
2016
|
const formAnchorDefaults = {
|
|
1778
|
-
$el:
|
|
2017
|
+
$el: "div",
|
|
1779
2018
|
children: [
|
|
1780
2019
|
{
|
|
1781
|
-
$el:
|
|
2020
|
+
$el: "div",
|
|
1782
2021
|
attrs: {
|
|
1783
|
-
id:
|
|
1784
|
-
class:
|
|
1785
|
-
style: { top:
|
|
1786
|
-
}
|
|
1787
|
-
}
|
|
2022
|
+
id: "form-anchor",
|
|
2023
|
+
class: "t-absolute",
|
|
2024
|
+
style: { top: "-30px", left: 0 },
|
|
2025
|
+
},
|
|
2026
|
+
},
|
|
1788
2027
|
],
|
|
1789
2028
|
attrs: {
|
|
1790
|
-
class:
|
|
1791
|
-
}
|
|
2029
|
+
class: "t-relative",
|
|
2030
|
+
},
|
|
1792
2031
|
};
|
|
1793
2032
|
|
|
1794
2033
|
function formAnchor(updates) {
|
|
1795
|
-
return merge(
|
|
1796
|
-
formAnchorDefaults,
|
|
1797
|
-
updates
|
|
1798
|
-
)
|
|
2034
|
+
return merge(formAnchorDefaults, updates)
|
|
1799
2035
|
}
|
|
1800
2036
|
|
|
1801
2037
|
const progressBarDefaults = {
|
|
1802
|
-
$el:
|
|
2038
|
+
$el: "div",
|
|
1803
2039
|
attrs: {
|
|
1804
|
-
class:
|
|
2040
|
+
class: "t-mt-7 t-mb-5 t-w-full t-flex t-flex-col t-justify-center t-items-center",
|
|
1805
2041
|
style: {
|
|
1806
|
-
if:
|
|
1807
|
-
then:
|
|
2042
|
+
if: "$fns.eq($activeStep, $firstStep()) || $fns.eq($activeStep, $lastStep())",
|
|
2043
|
+
then: "display: none",
|
|
1808
2044
|
},
|
|
1809
2045
|
},
|
|
1810
2046
|
children: [
|
|
1811
2047
|
{
|
|
1812
|
-
$el:
|
|
2048
|
+
$el: "div",
|
|
1813
2049
|
attrs: {
|
|
1814
|
-
class:
|
|
2050
|
+
class: "t-flex t-justify-center",
|
|
1815
2051
|
},
|
|
1816
2052
|
children: [
|
|
1817
2053
|
{
|
|
1818
|
-
$el:
|
|
2054
|
+
$el: "span",
|
|
1819
2055
|
attrs: {
|
|
1820
|
-
id:
|
|
1821
|
-
class:
|
|
2056
|
+
id: "progress-bar-text",
|
|
2057
|
+
class: "t-text-sm t-mb-1",
|
|
1822
2058
|
},
|
|
1823
|
-
children: [
|
|
1824
|
-
"0% Complete"
|
|
1825
|
-
]
|
|
2059
|
+
children: ["0% Complete"],
|
|
1826
2060
|
},
|
|
1827
|
-
]
|
|
2061
|
+
],
|
|
1828
2062
|
},
|
|
1829
2063
|
{
|
|
1830
|
-
$el:
|
|
2064
|
+
$el: "div",
|
|
1831
2065
|
attrs: {
|
|
1832
|
-
class:
|
|
2066
|
+
class: "t-bg-gray-100 t-w-9/12 t-rounded",
|
|
1833
2067
|
},
|
|
1834
2068
|
children: [
|
|
1835
2069
|
{
|
|
1836
|
-
$el:
|
|
2070
|
+
$el: "div",
|
|
1837
2071
|
attrs: {
|
|
1838
|
-
id:
|
|
1839
|
-
class:
|
|
2072
|
+
id: "progress-bar",
|
|
2073
|
+
class:
|
|
2074
|
+
"t-flex t-flex-col t-justify-center t-text-center t-whitespace-nowrap t-w-[10%] t-h-1.5 t-rounded t-text-white t-bg-[#007bff]",
|
|
1840
2075
|
style: {
|
|
1841
|
-
transition:
|
|
2076
|
+
transition: "width 0.5s ease",
|
|
1842
2077
|
},
|
|
1843
2078
|
},
|
|
1844
|
-
}
|
|
1845
|
-
]
|
|
1846
|
-
}
|
|
1847
|
-
]
|
|
2079
|
+
},
|
|
2080
|
+
],
|
|
2081
|
+
},
|
|
2082
|
+
],
|
|
1848
2083
|
};
|
|
1849
2084
|
|
|
1850
2085
|
function progressBar(updates) {
|
|
1851
|
-
return merge(
|
|
1852
|
-
progressBarDefaults,
|
|
1853
|
-
updates
|
|
1854
|
-
)
|
|
2086
|
+
return merge(progressBarDefaults, updates)
|
|
1855
2087
|
}
|
|
1856
2088
|
|
|
1857
2089
|
function headlineDefaults(updates = {}) {
|
|
1858
2090
|
return {
|
|
1859
|
-
$el:
|
|
2091
|
+
$el: "h1",
|
|
1860
2092
|
attrs: {
|
|
1861
|
-
class:
|
|
1862
|
-
|
|
2093
|
+
class:
|
|
2094
|
+
"t-flex t-justify-center t-text-center !t-text-[2rem] t-font-semibold t-pt-5 t-px-7 md:t-px-3" +
|
|
2095
|
+
" " +
|
|
2096
|
+
(updates.headlineClass || ""),
|
|
2097
|
+
},
|
|
1863
2098
|
}
|
|
1864
2099
|
}
|
|
1865
2100
|
|
|
1866
2101
|
function headline(updates = {}) {
|
|
1867
|
-
return merge(
|
|
1868
|
-
headlineDefaults(updates),
|
|
1869
|
-
updates
|
|
1870
|
-
)
|
|
2102
|
+
return merge(headlineDefaults(updates), updates)
|
|
1871
2103
|
}
|
|
1872
2104
|
|
|
1873
2105
|
function defaultHeadline() {
|
|
1874
2106
|
return headline({
|
|
1875
2107
|
children: '$urlParam("hl", "Start Here For a Free Consultation")',
|
|
1876
|
-
if:
|
|
2108
|
+
if: "$activeStep === $firstStep()",
|
|
1877
2109
|
})
|
|
1878
2110
|
}
|
|
1879
2111
|
|
|
1880
2112
|
function subHeadlineDefaults(updates = {}) {
|
|
1881
2113
|
return {
|
|
1882
|
-
$el:
|
|
2114
|
+
$el: "h3",
|
|
1883
2115
|
attrs: {
|
|
1884
|
-
class:
|
|
1885
|
-
|
|
2116
|
+
class:
|
|
2117
|
+
"t-flex t-justify-center t-text-center !t-text-[1.2rem] t-font-medium t-text-blue-500 t-px-10" +
|
|
2118
|
+
" " +
|
|
2119
|
+
(updates.subheadlineClass || ""),
|
|
2120
|
+
},
|
|
1886
2121
|
}
|
|
1887
2122
|
}
|
|
1888
2123
|
|
|
1889
2124
|
function subHeadline(updates = {}) {
|
|
1890
|
-
return merge(
|
|
1891
|
-
subHeadlineDefaults(updates),
|
|
1892
|
-
updates
|
|
1893
|
-
)
|
|
2125
|
+
return merge(subHeadlineDefaults(updates), updates)
|
|
1894
2126
|
}
|
|
1895
2127
|
|
|
1896
2128
|
const hiddenInputsBase = [
|
|
1897
2129
|
{
|
|
1898
|
-
$formkit:
|
|
2130
|
+
$formkit: "hidden",
|
|
1899
2131
|
name: "gclid",
|
|
1900
|
-
value: null
|
|
2132
|
+
value: null,
|
|
1901
2133
|
},
|
|
1902
2134
|
{
|
|
1903
|
-
$formkit:
|
|
2135
|
+
$formkit: "hidden",
|
|
1904
2136
|
name: "campaignid",
|
|
1905
|
-
value: null
|
|
2137
|
+
value: null,
|
|
1906
2138
|
},
|
|
1907
2139
|
{
|
|
1908
|
-
$formkit:
|
|
2140
|
+
$formkit: "hidden",
|
|
1909
2141
|
name: "s",
|
|
1910
|
-
value: null
|
|
1911
|
-
}
|
|
2142
|
+
value: null,
|
|
2143
|
+
},
|
|
1912
2144
|
];
|
|
1913
2145
|
|
|
1914
2146
|
const hiddenInputsLegal = [
|
|
1915
2147
|
{
|
|
1916
|
-
$formkit:
|
|
2148
|
+
$formkit: "hidden",
|
|
1917
2149
|
name: "vertical",
|
|
1918
|
-
value: "Legal"
|
|
2150
|
+
value: "Legal",
|
|
1919
2151
|
},
|
|
1920
2152
|
{
|
|
1921
|
-
$formkit:
|
|
2153
|
+
$formkit: "hidden",
|
|
1922
2154
|
name: "TCPA_Language",
|
|
1923
|
-
value: "$meta.tcpaLanguage"
|
|
2155
|
+
value: "$meta.tcpaLanguage",
|
|
1924
2156
|
},
|
|
1925
|
-
...hiddenInputsBase
|
|
2157
|
+
...hiddenInputsBase,
|
|
1926
2158
|
];
|
|
1927
2159
|
|
|
1928
2160
|
const legalRedirectMapDefaults = {
|
|
1929
|
-
|
|
2161
|
+
"*": LegalRedirectUrl(),
|
|
1930
2162
|
};
|
|
1931
2163
|
|
|
1932
|
-
|
|
1933
2164
|
function legalRedirectMap(updates) {
|
|
1934
|
-
return merge(
|
|
1935
|
-
legalRedirectMapDefaults,
|
|
1936
|
-
updates
|
|
1937
|
-
)
|
|
2165
|
+
return merge(legalRedirectMapDefaults, updates)
|
|
1938
2166
|
}
|
|
1939
2167
|
|
|
1940
2168
|
const businessServicesOverrideMap = {
|
|
1941
|
-
|
|
2169
|
+
Business_Services_Display: {
|
|
1942
2170
|
"Business Formation": {
|
|
1943
|
-
|
|
2171
|
+
Business_Services: "Business Formation",
|
|
1944
2172
|
},
|
|
1945
|
-
|
|
1946
|
-
|
|
2173
|
+
Contracts: {
|
|
2174
|
+
Business_Services: "Contracts",
|
|
1947
2175
|
},
|
|
1948
2176
|
"Insurance and Liability": {
|
|
1949
|
-
|
|
2177
|
+
Business_Services: "Insurance and Liability",
|
|
1950
2178
|
},
|
|
1951
2179
|
"Mergers and Acquisition": {
|
|
1952
|
-
|
|
2180
|
+
Business_Services: "Mergers and Acquisition",
|
|
1953
2181
|
},
|
|
1954
2182
|
"Regulatory Compliance": {
|
|
1955
|
-
|
|
2183
|
+
Business_Services: "Regulatory Compliance",
|
|
1956
2184
|
},
|
|
1957
2185
|
"Employee Dispute": {
|
|
1958
|
-
|
|
2186
|
+
Business_Services: "Employee Dispute",
|
|
1959
2187
|
},
|
|
1960
2188
|
"Advice and Consulting": {
|
|
1961
|
-
|
|
2189
|
+
Business_Services: "Other",
|
|
2190
|
+
},
|
|
2191
|
+
Other: {
|
|
2192
|
+
Business_Services: "Other",
|
|
1962
2193
|
},
|
|
1963
|
-
"Other": {
|
|
1964
|
-
'Business_Services': 'Other'
|
|
1965
|
-
}
|
|
1966
2194
|
},
|
|
1967
2195
|
};
|
|
1968
2196
|
|
|
1969
2197
|
const patentsAndIPTOLPDisplayOverrideMap = {
|
|
1970
|
-
|
|
1971
|
-
|
|
2198
|
+
Copyrights: {
|
|
2199
|
+
Type_Of_Legal_Problem: "Copyrights and Trademarks",
|
|
1972
2200
|
},
|
|
1973
|
-
|
|
1974
|
-
|
|
2201
|
+
Trademarks: {
|
|
2202
|
+
Type_Of_Legal_Problem: "Copyrights and Trademarks",
|
|
1975
2203
|
},
|
|
1976
|
-
|
|
1977
|
-
|
|
2204
|
+
Patents: {
|
|
2205
|
+
Type_Of_Legal_Problem: "Patents and Intellectual Property",
|
|
1978
2206
|
},
|
|
1979
|
-
|
|
1980
|
-
|
|
2207
|
+
"Business Lawyers": {
|
|
2208
|
+
Type_Of_Legal_Problem: "Business Lawyers",
|
|
1981
2209
|
},
|
|
1982
|
-
|
|
1983
|
-
|
|
2210
|
+
"Business Consulting": {
|
|
2211
|
+
Type_Of_Legal_Problem: "Business Lawyers",
|
|
1984
2212
|
},
|
|
1985
|
-
|
|
1986
|
-
|
|
2213
|
+
"Not Sure or Other": {
|
|
2214
|
+
Type_Of_Legal_Problem: "Not Sure or Other",
|
|
1987
2215
|
},
|
|
1988
2216
|
};
|
|
1989
2217
|
|
|
1990
2218
|
const legalAllValueOverrideMap = {
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
2219
|
+
Civil_Defense: {
|
|
2220
|
+
Yes: {
|
|
2221
|
+
Type_Of_Legal_Problem: "Defend a Lawsuit",
|
|
2222
|
+
},
|
|
2223
|
+
No: {
|
|
2224
|
+
Type_Of_Legal_Problem: "File a Lawsuit",
|
|
1994
2225
|
},
|
|
1995
|
-
'No': {
|
|
1996
|
-
'Type_Of_Legal_Problem': 'File a Lawsuit'
|
|
1997
|
-
}
|
|
1998
2226
|
},
|
|
1999
2227
|
businessServicesOverrideMap,
|
|
2000
|
-
|
|
2228
|
+
Type_Of_Legal_Problem_Display: {
|
|
2001
2229
|
...patentsAndIPTOLPDisplayOverrideMap,
|
|
2002
2230
|
// Accidents and PI
|
|
2003
|
-
|
|
2004
|
-
|
|
2231
|
+
"Auto Accident": {
|
|
2232
|
+
Type_Of_Legal_Problem: "Auto and Car Accidents",
|
|
2005
2233
|
},
|
|
2006
|
-
|
|
2007
|
-
|
|
2234
|
+
"Dog Bite": {
|
|
2235
|
+
Type_Of_Legal_Problem: "Personal Injury",
|
|
2008
2236
|
},
|
|
2009
|
-
|
|
2010
|
-
|
|
2237
|
+
"Slip and Fall": {
|
|
2238
|
+
Type_Of_Legal_Problem: "Personal Injury",
|
|
2011
2239
|
},
|
|
2012
|
-
|
|
2013
|
-
|
|
2240
|
+
"Workplace Injury": {
|
|
2241
|
+
Type_Of_Legal_Problem: "Workers Compensation",
|
|
2014
2242
|
},
|
|
2015
|
-
|
|
2016
|
-
|
|
2243
|
+
"Trucking Accident": {
|
|
2244
|
+
Type_Of_Legal_Problem: "Auto and Car Accidents",
|
|
2017
2245
|
},
|
|
2018
|
-
|
|
2019
|
-
|
|
2246
|
+
"Motorcycle Accident": {
|
|
2247
|
+
Type_Of_Legal_Problem: "Auto and Car Accidents",
|
|
2020
2248
|
},
|
|
2021
|
-
|
|
2022
|
-
|
|
2249
|
+
"Other Accidents or Injuries": {
|
|
2250
|
+
Type_Of_Legal_Problem: "Personal Injury",
|
|
2023
2251
|
},
|
|
2024
2252
|
// Civil
|
|
2025
|
-
|
|
2026
|
-
|
|
2253
|
+
"Automobile Accident": {
|
|
2254
|
+
Type_Of_Legal_Problem: "Auto and Car Accidents",
|
|
2027
2255
|
},
|
|
2028
|
-
|
|
2029
|
-
|
|
2256
|
+
"Contract Disputes": {
|
|
2257
|
+
Type_Of_Legal_Problem: "Business Lawyers",
|
|
2030
2258
|
},
|
|
2031
|
-
|
|
2032
|
-
|
|
2259
|
+
"Defamation and Slander": {
|
|
2260
|
+
Type_Of_Legal_Problem: "File a Lawsuit",
|
|
2033
2261
|
},
|
|
2034
|
-
|
|
2035
|
-
|
|
2262
|
+
"Dog Bite": {
|
|
2263
|
+
Type_Of_Legal_Problem: "Personal Injury",
|
|
2036
2264
|
},
|
|
2037
|
-
|
|
2038
|
-
|
|
2265
|
+
"Employment and Workplace": {
|
|
2266
|
+
Type_Of_Legal_Problem: "Employment and Workplace",
|
|
2039
2267
|
},
|
|
2040
|
-
|
|
2041
|
-
|
|
2268
|
+
Fraud: {
|
|
2269
|
+
Type_Of_Legal_Problem: "Consumer Lawyers",
|
|
2042
2270
|
},
|
|
2043
|
-
|
|
2044
|
-
|
|
2271
|
+
"Medical Malpractice": {
|
|
2272
|
+
Type_Of_Legal_Problem: "Medical Malpractice",
|
|
2045
2273
|
},
|
|
2046
|
-
|
|
2047
|
-
|
|
2274
|
+
"Personal Injury": {
|
|
2275
|
+
Type_Of_Legal_Problem: "Personal Injury",
|
|
2048
2276
|
},
|
|
2049
|
-
|
|
2050
|
-
|
|
2277
|
+
"Property Damage": {
|
|
2278
|
+
Type_Of_Legal_Problem: "Property Damage",
|
|
2051
2279
|
},
|
|
2052
|
-
|
|
2053
|
-
|
|
2280
|
+
"Small Claims": {
|
|
2281
|
+
Type_Of_Legal_Problem: "File a Lawsuit",
|
|
2054
2282
|
},
|
|
2055
|
-
|
|
2056
|
-
|
|
2283
|
+
"Real Estate": {
|
|
2284
|
+
Type_Of_Legal_Problem: "Real Estate",
|
|
2057
2285
|
},
|
|
2058
|
-
|
|
2059
|
-
|
|
2286
|
+
"Other (describe on next page)": {
|
|
2287
|
+
Type_Of_Legal_Problem: "Not Sure or Other",
|
|
2060
2288
|
},
|
|
2061
2289
|
// Contracts
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2290
|
+
"Contract Creation": {
|
|
2291
|
+
Type_Of_Legal_Problem: "Business Lawyers",
|
|
2292
|
+
Business_Services: "Contracts",
|
|
2065
2293
|
},
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2294
|
+
"Contract Enforcement": {
|
|
2295
|
+
Type_Of_Legal_Problem: "Business Lawyers",
|
|
2296
|
+
Business_Services: "Contracts",
|
|
2069
2297
|
},
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2298
|
+
"Contract Cancellation": {
|
|
2299
|
+
Type_Of_Legal_Problem: "Business Lawyers",
|
|
2300
|
+
Business_Services: "Contracts",
|
|
2073
2301
|
},
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2302
|
+
"Contract Fraud": {
|
|
2303
|
+
Type_Of_Legal_Problem: "Business Lawyers",
|
|
2304
|
+
Business_Services: "Contracts",
|
|
2077
2305
|
},
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2306
|
+
"Breach of Contract": {
|
|
2307
|
+
Type_Of_Legal_Problem: "Business Lawyers",
|
|
2308
|
+
Business_Services: "Contracts",
|
|
2081
2309
|
},
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2310
|
+
"Other Contract Issues": {
|
|
2311
|
+
Type_Of_Legal_Problem: "Business Lawyers",
|
|
2312
|
+
Business_Services: "Contracts",
|
|
2085
2313
|
},
|
|
2086
2314
|
// Criminal
|
|
2087
|
-
|
|
2088
|
-
|
|
2315
|
+
"Criminal Defense": {
|
|
2316
|
+
Type_Of_Legal_Problem: "Criminal and Felony",
|
|
2089
2317
|
},
|
|
2090
|
-
|
|
2091
|
-
|
|
2318
|
+
"Victim of a Crime": {
|
|
2319
|
+
Type_Of_Legal_Problem: "Victim of a Crime",
|
|
2092
2320
|
},
|
|
2093
|
-
|
|
2094
|
-
|
|
2321
|
+
"DUI and DWI": {
|
|
2322
|
+
Type_Of_Legal_Problem: "DUI and DWI",
|
|
2095
2323
|
},
|
|
2096
|
-
|
|
2097
|
-
|
|
2324
|
+
Expungement: {
|
|
2325
|
+
Type_Of_Legal_Problem: "Expungement",
|
|
2098
2326
|
},
|
|
2099
|
-
|
|
2100
|
-
|
|
2327
|
+
Harassment: {
|
|
2328
|
+
Type_Of_Legal_Problem: "Criminal and Felony",
|
|
2101
2329
|
},
|
|
2102
|
-
|
|
2103
|
-
|
|
2330
|
+
"Not Sure or Other": {
|
|
2331
|
+
Type_Of_Legal_Problem: "Not Sure or Other",
|
|
2104
2332
|
},
|
|
2105
2333
|
// Employment and Workplace
|
|
2106
|
-
|
|
2107
|
-
|
|
2334
|
+
"Workplace Harassment": {
|
|
2335
|
+
Type_Of_Legal_Problem: "Workplace Harassment",
|
|
2108
2336
|
},
|
|
2109
|
-
|
|
2110
|
-
|
|
2337
|
+
"Workplace Discrimination": {
|
|
2338
|
+
Type_Of_Legal_Problem: "Workplace Discrimination",
|
|
2111
2339
|
},
|
|
2112
|
-
|
|
2113
|
-
|
|
2340
|
+
"Wrongful Termination": {
|
|
2341
|
+
Type_Of_Legal_Problem: "Wrongful Termination",
|
|
2114
2342
|
},
|
|
2115
|
-
|
|
2116
|
-
|
|
2343
|
+
"Payment Disputes": {
|
|
2344
|
+
Type_Of_Legal_Problem: "Employment and Workplace",
|
|
2117
2345
|
},
|
|
2118
|
-
|
|
2119
|
-
|
|
2346
|
+
"Workers Compensation": {
|
|
2347
|
+
Type_Of_Legal_Problem: "Workers Compensation",
|
|
2120
2348
|
},
|
|
2121
|
-
|
|
2122
|
-
|
|
2349
|
+
Unemployment: {
|
|
2350
|
+
Type_Of_Legal_Problem: "Unemployment",
|
|
2123
2351
|
},
|
|
2124
|
-
|
|
2125
|
-
|
|
2352
|
+
"Other Workplace Issues": {
|
|
2353
|
+
Type_Of_Legal_Problem: "Employment and Workplace",
|
|
2126
2354
|
},
|
|
2127
2355
|
// Malpractice
|
|
2128
|
-
|
|
2129
|
-
|
|
2356
|
+
"Attorney Malpractice": {
|
|
2357
|
+
Type_Of_Legal_Problem: "Civil Lawsuit",
|
|
2130
2358
|
},
|
|
2131
|
-
|
|
2132
|
-
|
|
2359
|
+
"Other Malpractice Issues": {
|
|
2360
|
+
Type_Of_Legal_Problem: "Not Sure or Other",
|
|
2133
2361
|
},
|
|
2134
2362
|
// Repossession
|
|
2135
|
-
|
|
2136
|
-
|
|
2363
|
+
"Vehicle Repossession": {
|
|
2364
|
+
Type_Of_Legal_Problem: "Bankruptcy",
|
|
2137
2365
|
},
|
|
2138
|
-
|
|
2139
|
-
|
|
2366
|
+
"Property Repossession": {
|
|
2367
|
+
Type_Of_Legal_Problem: "Bankruptcy",
|
|
2140
2368
|
},
|
|
2141
|
-
|
|
2142
|
-
|
|
2369
|
+
"Other Repossession Issues": {
|
|
2370
|
+
Type_Of_Legal_Problem: "Not Sure or Other",
|
|
2143
2371
|
},
|
|
2144
2372
|
// Real Estate
|
|
2145
|
-
|
|
2146
|
-
|
|
2373
|
+
"Contracts and Agreements": {
|
|
2374
|
+
Type_Of_Legal_Problem: "Real Estate",
|
|
2147
2375
|
},
|
|
2148
|
-
|
|
2149
|
-
|
|
2376
|
+
"Deeds, Liens, and Titles": {
|
|
2377
|
+
Type_Of_Legal_Problem: "Real Estate",
|
|
2150
2378
|
},
|
|
2151
|
-
|
|
2152
|
-
|
|
2379
|
+
Foreclosure: {
|
|
2380
|
+
Type_Of_Legal_Problem: "Foreclosure",
|
|
2153
2381
|
},
|
|
2154
|
-
|
|
2155
|
-
|
|
2382
|
+
Insurance: {
|
|
2383
|
+
Type_Of_Legal_Problem: "Insurance",
|
|
2156
2384
|
},
|
|
2157
|
-
|
|
2158
|
-
|
|
2385
|
+
"Landlord and Tenant": {
|
|
2386
|
+
Type_Of_Legal_Problem: "Landlord and Tenant",
|
|
2159
2387
|
},
|
|
2160
|
-
|
|
2161
|
-
|
|
2388
|
+
"Loans and Mortgages": {
|
|
2389
|
+
Type_Of_Legal_Problem: "Real Estate",
|
|
2162
2390
|
},
|
|
2163
|
-
|
|
2164
|
-
|
|
2391
|
+
"Wills, Trusts, and Estates": {
|
|
2392
|
+
Type_Of_Legal_Problem: "Wills and Trusts",
|
|
2165
2393
|
},
|
|
2166
|
-
|
|
2167
|
-
|
|
2394
|
+
"Property Damage": {
|
|
2395
|
+
Type_Of_Legal_Problem: "Property Damage",
|
|
2168
2396
|
},
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2397
|
+
"Other Real Estate Issues": {
|
|
2398
|
+
Type_Of_Legal_Problem: "Real Estate",
|
|
2399
|
+
},
|
|
2400
|
+
},
|
|
2173
2401
|
};
|
|
2174
2402
|
|
|
2175
2403
|
const TOLPCommentsPlaceholders = {
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2404
|
+
Adoption: 'Example: "I need help with adoption forms"',
|
|
2405
|
+
"Asbestos and Mesothelioma": 'Example: "I was exposed to asbestos at work and would like to file a claim"',
|
|
2406
|
+
"Auto and Car Accidents":
|
|
2407
|
+
'Example: "A truck crashed into my car on the highway" or "I\'ve been involved in a hit and run accident"',
|
|
2408
|
+
Bankruptcy: 'Example: "I need help filing for bankruptcy"',
|
|
2409
|
+
"Birth Certificate and Name Change": 'Example: "Just married and would like to change my last name"',
|
|
2410
|
+
"Business Lawyers": 'Example: "I need help incorporating a business" or "I would like a legal contract reviewed"',
|
|
2411
|
+
"Child Custody and Support": 'Example: "Need help getting custody" or "Issues with child support payments"',
|
|
2412
|
+
"Child Custody": 'Example: "Need help getting custody"',
|
|
2413
|
+
"Child Support": 'Example: "Issues with child support payments"',
|
|
2414
|
+
"Civil Rights and Discrimination": 'Example: "Police brutality" or "Coworker keeps harassing me"',
|
|
2415
|
+
"Civil Lawsuit":
|
|
2416
|
+
'Example: "A contractor took my money and never completed the job" or "I am being sued by a neighbor"',
|
|
2417
|
+
"File a Lawsuit": 'Example: "A contractor took my money and never completed the job"',
|
|
2418
|
+
"Defend a Lawsuit": 'Example: "I am being sued by a neighbor"',
|
|
2419
|
+
"Consumer Lawyers":
|
|
2420
|
+
'Example: "Someone committed fraud against me" or "A contractor took my money and never completed the job"',
|
|
2421
|
+
"Copyrights and Trademarks": 'Example: "I would like to register a trademark or copyright a name"',
|
|
2422
|
+
"Criminal and Felony":
|
|
2423
|
+
'Example: "I was arrested for DUI and need legal defense" or "I am being charged with assault"',
|
|
2424
|
+
"Debt and Collections": 'Example: "I would like to consolidate my debt" or "A collection agency is harassing me"',
|
|
2425
|
+
"Divorce and Separation": 'Example: "I would like to file for an uncontested divorce"',
|
|
2426
|
+
"DUI and DWI": 'Example: "I was arrested for DUI and need legal defense"',
|
|
2427
|
+
"Elder Law": 'Example: "I would like help with Estate Planning" or "I need help with a guardianship"',
|
|
2428
|
+
"Employment and Workplace": 'Example: "I was injured while on the job" or "My company is discriminating against me"',
|
|
2429
|
+
Expungement: 'Example: "I would like to file for an expungement and clear my record"',
|
|
2430
|
+
"Family Issues": 'Example: "I need help with guardianship" or "I need a simple will created"',
|
|
2431
|
+
Foreclosure: 'Example: "I need help to avoid foreclosure on my house"',
|
|
2432
|
+
Guardianship: 'Example: "I need help with guardianship documents"',
|
|
2433
|
+
"Harassment and Discrimination": 'Example: "I am being discriminated at work" or "My neighbor is harassing me"',
|
|
2434
|
+
"Sexual Harassment": 'Example: "I am being sexually harassed by a coworker"',
|
|
2435
|
+
"Workplace Harassment": 'Example: "My coworker is being aggressive towards me"',
|
|
2436
|
+
"Non-Workplace Harassment": 'Example: "My neighbor is harassing me"',
|
|
2437
|
+
"Workplace Discrimination": 'Example: "I am being discriminated at work based on my age"',
|
|
2438
|
+
"Non-Workplace Discrimination": 'Example: "I am being discriminated against by a local official"',
|
|
2439
|
+
"Identity Theft": 'Example: "Someone stole my identity and I need help fixing the issue"',
|
|
2440
|
+
"Immigration and Visas": 'Example: "I need help filing for a visa" or "Help with a green card"',
|
|
2441
|
+
Insurance: 'Example: "I need help filing an insurance claim for damage to my house"',
|
|
2442
|
+
"Landlord and Tenant":
|
|
2443
|
+
'Example: "I need help to fight an eviction" or "I would like a lawyer to review a rental contract"',
|
|
2444
|
+
"Lemon Law": 'Example: "I purchased a new vehicle that broke down already and seller will not assist"',
|
|
2445
|
+
"Long Term Disability":
|
|
2446
|
+
'Example: "I was injured on the job and would like to file for benefits" or "I need help filing for disability benefits"',
|
|
2447
|
+
"Medical Malpractice": 'Example: "A doctor performed surgery on the wrong limb and I would like to file a lawsuit"',
|
|
2448
|
+
"Patents and Intellectual Property": 'Example: "I would like to file for a patent" or "I need to copyright a name"',
|
|
2449
|
+
"Personal Injury": 'Example: "I was bit by the neighbor\'s dog" or "I fell in the icy grocery store parking lot"',
|
|
2450
|
+
"Power of Attorney": 'Example: "I need help with a limited or general power of attorney"',
|
|
2451
|
+
"Probate and Estates":
|
|
2452
|
+
'Example: "I need help with planning for my estate" or "A family member passed without a will in place"',
|
|
2453
|
+
"Product Liability": 'Example: "My car battery caught on fire" or "I purchased a faulty product"',
|
|
2454
|
+
"Property Damage": 'Example: "The neighbor\'s tree fell on my fence" or "My car was hit in the parking lot"',
|
|
2455
|
+
"Real Estate":
|
|
2456
|
+
'Example: "I need help with a quitclaim deed" or "I need a lawyer to review a purchase and sales agreement"',
|
|
2457
|
+
"Social Security Disability and Insurance":
|
|
2458
|
+
'Example: "I would like help filing for disability benefits" or "I\'ve been denied for SSDI and would like to appeal"',
|
|
2459
|
+
"Tax and IRS": 'Example: "I need help fighting an IRS tax claim" or "I need audit defense"',
|
|
2460
|
+
"Traffic and Tickets":
|
|
2461
|
+
'Example: "I need help reinstating a supsended license" or "I would like to fight a traffic ticket"',
|
|
2462
|
+
Unemployment: 'Example: "I need help filing for unemployment benefits"',
|
|
2463
|
+
"Victim of a Crime": 'Example: "I was assaulted in the store" or "I am being discriminated against at work"',
|
|
2464
|
+
"Wills and Trusts": 'Example: "I need a simple will created" or "I would like guidance on creating a trust fund"',
|
|
2465
|
+
"Workers Compensation": 'Example: "I was injured at work and would like to file for workers compensation benefits"',
|
|
2466
|
+
"Wrongful Death": 'Example: "A family member was killed on the job and we need legal representation"',
|
|
2467
|
+
"Wrongful Termination": 'Example: "I was fired by my employer without cause"',
|
|
2468
|
+
"Not Sure or Other": 'Example: "I was involved in a car accident" or "I need help setting up power of attorney"',
|
|
2231
2469
|
};
|
|
2232
2470
|
|
|
2233
2471
|
const TOLPFinalHeadlines = {
|
|
@@ -2235,49 +2473,64 @@ const TOLPFinalHeadlines = {
|
|
|
2235
2473
|
};
|
|
2236
2474
|
|
|
2237
2475
|
const TOLPFinalSubHeadlines = {
|
|
2238
|
-
|
|
2476
|
+
Adoption: "You may benefit from speaking with an adoption professional. Please verify your contact information.",
|
|
2239
2477
|
// 'Asbestos and Mesothelioma': '',
|
|
2240
|
-
|
|
2241
|
-
|
|
2478
|
+
"Auto and Car Accidents":
|
|
2479
|
+
"You may benefit from speaking with an accident professional. Please verify your contact information.",
|
|
2480
|
+
Bankruptcy: "You may benefit from speaking with a bankruptcy professional. Please verify your contact information.",
|
|
2242
2481
|
// 'Birth Certificate and Name Change': '',
|
|
2243
2482
|
// 'Business Lawyers': '',
|
|
2244
2483
|
// 'Child Custody and Support': '',
|
|
2245
2484
|
// 'Civil Rights and Discrimination': '',
|
|
2246
2485
|
// 'Civil Lawsuit': '',
|
|
2247
2486
|
// 'Consumer Lawyers': '',
|
|
2248
|
-
|
|
2487
|
+
"Copyrights and Trademarks":
|
|
2488
|
+
"You may benefit from speaking with a copyright and trademark professional. Please verify your contact information.",
|
|
2249
2489
|
// 'Criminal and Felony': '',
|
|
2250
2490
|
// 'Debt and Collections': '',
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2491
|
+
"Divorce and Separation":
|
|
2492
|
+
"You may benefit from speaking with a divorce professional. Please verify your contact information.",
|
|
2493
|
+
"DUI and DWI": "You may benefit from speaking with a DUI professional. Please verify your contact information.",
|
|
2494
|
+
"Elder Law": "You may benefit from speaking with an elder law professional. Please verify your contact information.",
|
|
2254
2495
|
// 'Employment and Workplace': '',
|
|
2255
2496
|
// 'Expungement': '',
|
|
2256
2497
|
// 'Family Issues': '',
|
|
2257
|
-
|
|
2258
|
-
|
|
2498
|
+
Foreclosure: "You may benefit from speaking with a foreclosure professional. Please verify your contact information.",
|
|
2499
|
+
Guardianship:
|
|
2500
|
+
"You may benefit from speaking with a guardianship professional. Please verify your contact information.",
|
|
2259
2501
|
// 'Harassment and Discrimination': '',
|
|
2260
2502
|
// 'Identity Theft': '',
|
|
2261
|
-
|
|
2503
|
+
"Immigration and Visas":
|
|
2504
|
+
"You may benefit from speaking with a immigration professional. Please verify your contact information.",
|
|
2262
2505
|
// 'Insurance': '',
|
|
2263
|
-
|
|
2506
|
+
"Landlord and Tenant":
|
|
2507
|
+
"You may benefit from speaking with a landlord and tenant legal professional. Please verify your contact information.",
|
|
2264
2508
|
// 'Lemon Law': '',
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2509
|
+
"Long Term Disability":
|
|
2510
|
+
"You may benefit from speaking with a disability legal professional. Please verify your contact information.",
|
|
2511
|
+
"Medical Malpractice":
|
|
2512
|
+
"You may benefit from speaking with a malpractice professional. Please verify your contact information.",
|
|
2513
|
+
"Patents and Intellectual Property":
|
|
2514
|
+
"You may benefit from speaking with a patent professional. Please verify your contact information.",
|
|
2515
|
+
"Personal Injury":
|
|
2516
|
+
"You may benefit from speaking with a personal injury professional. Please verify your contact information.",
|
|
2269
2517
|
// 'Power of Attorney': '',
|
|
2270
|
-
|
|
2518
|
+
"Probate and Estates":
|
|
2519
|
+
"You may benefit from speaking with a probate and estate professional. Please verify your contact information.",
|
|
2271
2520
|
// 'Product Liability': '',
|
|
2272
2521
|
// 'Property Damage': '',
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2522
|
+
"Real Estate":
|
|
2523
|
+
"You may benefit from speaking with a real estate professional. Please verify your contact information.",
|
|
2524
|
+
"Social Security Disability and Insurance":
|
|
2525
|
+
"You may benefit from speaking with an SSDI professional. Please verify your contact information.",
|
|
2526
|
+
"Tax and IRS": "You may benefit from speaking with a tax professional. Please verify your contact information.",
|
|
2276
2527
|
// 'Traffic and Tickets': '',
|
|
2277
|
-
|
|
2528
|
+
Unemployment:
|
|
2529
|
+
"You may benefit from speaking with an unemployment professional. Please verify your contact information.",
|
|
2278
2530
|
// 'Victim of a Crime': '',
|
|
2279
2531
|
// 'Wills and Trusts': '',
|
|
2280
|
-
|
|
2532
|
+
"Workers Compensation":
|
|
2533
|
+
"You may benefit from speaking with a workers compensation professional. Please verify your contact information.",
|
|
2281
2534
|
// 'Wrongful Death': '',
|
|
2282
2535
|
// 'Wrongful Termination': '',
|
|
2283
2536
|
// 'Not Sure or Other': ''
|
|
@@ -2289,434 +2542,302 @@ const TOLPFinalSubHeadlines = {
|
|
|
2289
2542
|
};
|
|
2290
2543
|
|
|
2291
2544
|
const nextStepsLegalDefault = [
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2545
|
+
"haveAttorney",
|
|
2546
|
+
"degreeOfInterest",
|
|
2547
|
+
"commentsWithBankruptcy",
|
|
2548
|
+
"zipcode",
|
|
2549
|
+
"legalCrossSells",
|
|
2550
|
+
"firstAndLast",
|
|
2551
|
+
"contactInfo",
|
|
2299
2552
|
];
|
|
2300
2553
|
|
|
2301
2554
|
const nextStepsLegalDefaultLPM = [
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2555
|
+
"haveAttorney",
|
|
2556
|
+
"degreeOfInterest",
|
|
2557
|
+
"lawyerPaymentMethod",
|
|
2558
|
+
"commentsWithBankruptcy",
|
|
2559
|
+
"zipcode",
|
|
2560
|
+
"legalCrossSells",
|
|
2561
|
+
"firstAndLast",
|
|
2562
|
+
"contactInfo",
|
|
2310
2563
|
];
|
|
2311
2564
|
|
|
2312
2565
|
const nextStepsLegalNoDOI = [
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2566
|
+
"haveAttorney",
|
|
2567
|
+
"commentsWithBankruptcy",
|
|
2568
|
+
"zipcode",
|
|
2569
|
+
"legalCrossSells",
|
|
2570
|
+
"firstAndLast",
|
|
2571
|
+
"contactInfo",
|
|
2319
2572
|
];
|
|
2320
2573
|
|
|
2321
2574
|
const nextStepsLegalNoHA = [
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2575
|
+
"degreeOfInterest",
|
|
2576
|
+
"commentsWithBankruptcy",
|
|
2577
|
+
"zipcode",
|
|
2578
|
+
"legalCrossSells",
|
|
2579
|
+
"firstAndLast",
|
|
2580
|
+
"contactInfo",
|
|
2328
2581
|
];
|
|
2329
2582
|
|
|
2330
2583
|
const nextStepsMapGeneralLegal = {
|
|
2331
2584
|
values: {
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
...
|
|
2342
|
-
],
|
|
2343
|
-
'Auto and Car Accidents': [
|
|
2344
|
-
'incidentDate',
|
|
2345
|
-
'atFault',
|
|
2346
|
-
'primaryInjury',
|
|
2347
|
-
'doctorTreatment',
|
|
2348
|
-
'policeReportFiled',
|
|
2349
|
-
...nextStepsLegalNoDOI
|
|
2350
|
-
],
|
|
2351
|
-
'Bankruptcy': [
|
|
2352
|
-
'totalMonthlyIncome',
|
|
2353
|
-
'totalDebt',
|
|
2354
|
-
'ownRealEstate',
|
|
2355
|
-
'valueOfAssets',
|
|
2356
|
-
...nextStepsLegalDefault
|
|
2357
|
-
],
|
|
2358
|
-
'Business Lawyers': [
|
|
2359
|
-
'businessServices',
|
|
2360
|
-
'businessType',
|
|
2361
|
-
'numEmployeesOfBusiness',
|
|
2362
|
-
...nextStepsLegalDefault
|
|
2363
|
-
],
|
|
2364
|
-
'Child Custody': [
|
|
2365
|
-
'childRelationship',
|
|
2366
|
-
'childHome',
|
|
2367
|
-
'childPrimaryCaregiver',
|
|
2368
|
-
...nextStepsLegalDefaultLPM
|
|
2369
|
-
],
|
|
2370
|
-
'Child Support': [
|
|
2371
|
-
'childRelationship',
|
|
2372
|
-
'childHome',
|
|
2373
|
-
'childPrimaryCaregiver',
|
|
2374
|
-
...nextStepsLegalDefaultLPM
|
|
2375
|
-
],
|
|
2376
|
-
'Civil Rights and Discrimination': [
|
|
2377
|
-
'civilRightsType',
|
|
2378
|
-
...nextStepsLegalDefault
|
|
2379
|
-
],
|
|
2380
|
-
'Civil Lawsuit': [
|
|
2381
|
-
'civilDefense',
|
|
2382
|
-
'lawsuitOtherParty',
|
|
2383
|
-
...nextStepsLegalDefault
|
|
2384
|
-
],
|
|
2385
|
-
'File a Lawsuit': [
|
|
2386
|
-
'civilLawsuitTOLPDisplay',
|
|
2387
|
-
'lawsuitOtherParty',
|
|
2388
|
-
...nextStepsLegalDefault
|
|
2389
|
-
],
|
|
2390
|
-
'Defend a Lawsuit': [
|
|
2391
|
-
'lawsuitOtherParty',
|
|
2392
|
-
...nextStepsLegalDefault
|
|
2393
|
-
],
|
|
2394
|
-
'Consumer Lawyers': [
|
|
2395
|
-
'consumerLawyerType',
|
|
2396
|
-
'incidentDate',
|
|
2397
|
-
'lawsuitOtherParty',
|
|
2398
|
-
...nextStepsLegalDefault
|
|
2399
|
-
],
|
|
2400
|
-
'Criminal and Felony': [
|
|
2401
|
-
'criminalTOLPDisplay',
|
|
2402
|
-
'crimeCommittedDate',
|
|
2403
|
-
'roleInMatterCriminal',
|
|
2404
|
-
'pendingCharges',
|
|
2405
|
-
...nextStepsLegalDefaultLPM
|
|
2406
|
-
],
|
|
2407
|
-
'Debt and Collections': [
|
|
2408
|
-
'totalMonthlyIncome',
|
|
2409
|
-
'totalDebt',
|
|
2410
|
-
'ownRealEstate',
|
|
2411
|
-
'valueOfAssets',
|
|
2412
|
-
...nextStepsLegalDefault
|
|
2413
|
-
],
|
|
2414
|
-
'Divorce and Separation': [
|
|
2415
|
-
'maritalStatus',
|
|
2416
|
-
'haveChildren',
|
|
2417
|
-
...nextStepsLegalDefaultLPM
|
|
2418
|
-
],
|
|
2419
|
-
'DUI and DWI': [
|
|
2420
|
-
'incidentDate',
|
|
2421
|
-
'priorAlcoholOffenses',
|
|
2422
|
-
'typeOfAlcoholTest',
|
|
2423
|
-
'bloodContentAlcoholTest',
|
|
2424
|
-
'pendingCharges',
|
|
2425
|
-
...nextStepsLegalDefault
|
|
2426
|
-
],
|
|
2427
|
-
'Employment and Workplace': [
|
|
2428
|
-
'employmentAndWorkplaceTOLPDisplay',
|
|
2429
|
-
'numEmployeesOfBusiness',
|
|
2430
|
-
'employerType',
|
|
2431
|
-
'employeeAtCompany',
|
|
2432
|
-
...nextStepsLegalDefault
|
|
2433
|
-
],
|
|
2434
|
-
'Expungement': [
|
|
2435
|
-
'incidentDate',
|
|
2436
|
-
'criminalChargeType',
|
|
2437
|
-
...nextStepsLegalDefaultLPM
|
|
2585
|
+
Type_Of_Legal_Problem: {
|
|
2586
|
+
Adoption: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
|
|
2587
|
+
"Asbestos and Mesothelioma": ["incidentDate", "doctorTreatment", ...nextStepsLegalDefault],
|
|
2588
|
+
"Auto and Car Accidents": [
|
|
2589
|
+
"incidentDate",
|
|
2590
|
+
"atFault",
|
|
2591
|
+
"primaryInjury",
|
|
2592
|
+
"doctorTreatment",
|
|
2593
|
+
"policeReportFiled",
|
|
2594
|
+
...nextStepsLegalNoDOI,
|
|
2438
2595
|
],
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2596
|
+
Bankruptcy: ["totalMonthlyIncome", "totalDebt", "ownRealEstate", "valueOfAssets", ...nextStepsLegalDefault],
|
|
2597
|
+
"Business Lawyers": ["businessServices", "businessType", "numEmployeesOfBusiness", ...nextStepsLegalDefault],
|
|
2598
|
+
"Child Custody": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
|
|
2599
|
+
"Child Support": ["childRelationship", "childHome", "childPrimaryCaregiver", ...nextStepsLegalDefaultLPM],
|
|
2600
|
+
"Civil Rights and Discrimination": ["civilRightsType", ...nextStepsLegalDefault],
|
|
2601
|
+
"Civil Lawsuit": ["civilDefense", "lawsuitOtherParty", ...nextStepsLegalDefault],
|
|
2602
|
+
"File a Lawsuit": ["civilLawsuitTOLPDisplay", "lawsuitOtherParty", ...nextStepsLegalDefault],
|
|
2603
|
+
"Defend a Lawsuit": ["lawsuitOtherParty", ...nextStepsLegalDefault],
|
|
2604
|
+
"Consumer Lawyers": ["consumerLawyerType", "incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
|
|
2605
|
+
"Criminal and Felony": [
|
|
2606
|
+
"criminalTOLPDisplay",
|
|
2607
|
+
"crimeCommittedDate",
|
|
2608
|
+
"roleInMatterCriminal",
|
|
2609
|
+
"pendingCharges",
|
|
2610
|
+
...nextStepsLegalDefaultLPM,
|
|
2443
2611
|
],
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
...nextStepsLegalDefault
|
|
2612
|
+
"Debt and Collections": [
|
|
2613
|
+
"totalMonthlyIncome",
|
|
2614
|
+
"totalDebt",
|
|
2615
|
+
"ownRealEstate",
|
|
2616
|
+
"valueOfAssets",
|
|
2617
|
+
...nextStepsLegalDefault,
|
|
2451
2618
|
],
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2619
|
+
"Divorce and Separation": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
|
|
2620
|
+
"DUI and DWI": [
|
|
2621
|
+
"incidentDate",
|
|
2622
|
+
"priorAlcoholOffenses",
|
|
2623
|
+
"typeOfAlcoholTest",
|
|
2624
|
+
"bloodContentAlcoholTest",
|
|
2625
|
+
"pendingCharges",
|
|
2626
|
+
...nextStepsLegalDefault,
|
|
2456
2627
|
],
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
'immigrationDetails',
|
|
2464
|
-
...nextStepsLegalDefault
|
|
2628
|
+
"Employment and Workplace": [
|
|
2629
|
+
"employmentAndWorkplaceTOLPDisplay",
|
|
2630
|
+
"numEmployeesOfBusiness",
|
|
2631
|
+
"employerType",
|
|
2632
|
+
"employeeAtCompany",
|
|
2633
|
+
...nextStepsLegalDefault,
|
|
2465
2634
|
],
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2635
|
+
Expungement: ["incidentDate", "criminalChargeType", ...nextStepsLegalDefaultLPM],
|
|
2636
|
+
"Family Issues": ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
|
|
2637
|
+
Foreclosure: [
|
|
2638
|
+
"ownRealEstate",
|
|
2639
|
+
"typeOfProperty",
|
|
2640
|
+
"amountPaymentsPastDue",
|
|
2641
|
+
"loanAmount",
|
|
2642
|
+
"defaultNotice",
|
|
2643
|
+
...nextStepsLegalDefault,
|
|
2470
2644
|
],
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2645
|
+
Guardianship: ["maritalStatus", "haveChildren", ...nextStepsLegalDefaultLPM],
|
|
2646
|
+
"Immigration and Visas": [
|
|
2647
|
+
"countryOfCitizenship",
|
|
2648
|
+
"immigrationLocation",
|
|
2649
|
+
"immigrationEntry",
|
|
2650
|
+
"immigrationType",
|
|
2651
|
+
"immigrationStatus",
|
|
2652
|
+
"immigrationDetails",
|
|
2653
|
+
...nextStepsLegalDefault,
|
|
2475
2654
|
],
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2655
|
+
"Landlord and Tenant": ["landlordTenantIssue", "landlordTenantParty", ...nextStepsLegalDefault],
|
|
2656
|
+
"Lemon Law": ["incidentDate", "lawsuitOtherParty", ...nextStepsLegalDefault],
|
|
2657
|
+
"Long Term Disability": [
|
|
2658
|
+
"applicantOccupation",
|
|
2659
|
+
"applicantAge",
|
|
2660
|
+
"applicantLTDisabilityPolicy",
|
|
2661
|
+
"applicantDisabilityHowObtain",
|
|
2662
|
+
"applicantPreviouslyAppliedLtdBenefits",
|
|
2663
|
+
"applicantReceivedDisabilityBenefits",
|
|
2664
|
+
"applicantMonthlySalary",
|
|
2665
|
+
...nextStepsLegalNoDOI,
|
|
2485
2666
|
],
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
...nextStepsLegalDefault
|
|
2667
|
+
"Medical Malpractice": [
|
|
2668
|
+
"incidentDate",
|
|
2669
|
+
"claimStatus",
|
|
2670
|
+
"doctorTreatment",
|
|
2671
|
+
"medicalMalpracticeInjuries",
|
|
2672
|
+
...nextStepsLegalDefault,
|
|
2492
2673
|
],
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2674
|
+
"Patents and Intellectual Property": ["patentAssistanceType", "patentFor", ...nextStepsLegalDefault],
|
|
2675
|
+
"Personal Injury": [
|
|
2676
|
+
"incidentDate",
|
|
2677
|
+
"claimStatus",
|
|
2678
|
+
"atFault",
|
|
2679
|
+
"primaryInjury",
|
|
2680
|
+
"doctorTreatment",
|
|
2681
|
+
...nextStepsLegalNoDOI,
|
|
2497
2682
|
],
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
...nextStepsLegalNoDOI
|
|
2683
|
+
"Probate and Estates": [
|
|
2684
|
+
"valueOfAssets",
|
|
2685
|
+
"typeOfAssets",
|
|
2686
|
+
"roleInMatterProbate",
|
|
2687
|
+
"estateLegalServicesNeeded",
|
|
2688
|
+
...nextStepsLegalDefault,
|
|
2505
2689
|
],
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2690
|
+
"Property Damage": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
|
|
2691
|
+
"Real Estate": ["realEstateTOLPDisplay", "realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
|
|
2692
|
+
"Social Security Disability and Insurance": [
|
|
2693
|
+
"applicantAge",
|
|
2694
|
+
"disabilityConditionStopWork",
|
|
2695
|
+
"disabilityWorkHistory",
|
|
2696
|
+
"socialSecurityDisabilityReceivingBenefits",
|
|
2697
|
+
"doctorTreatment",
|
|
2698
|
+
...nextStepsLegalNoDOI,
|
|
2512
2699
|
],
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2700
|
+
"Tax and IRS": ["totalDebt", "taxProblemDetails", "taxLevel", "taxIssueType", ...nextStepsLegalDefault],
|
|
2701
|
+
"Traffic and Tickets": ["driversLicenseType", "trafficViolations", "haveCourtDate", ...nextStepsLegalDefault],
|
|
2702
|
+
Unemployment: ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalNoHA],
|
|
2703
|
+
"Victim of a Crime": [
|
|
2704
|
+
"crimeCommittedDate",
|
|
2705
|
+
"roleInMatterCriminal",
|
|
2706
|
+
"pendingCharges",
|
|
2707
|
+
...nextStepsLegalDefaultLPM,
|
|
2517
2708
|
],
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2709
|
+
"Wills and Trusts": [
|
|
2710
|
+
"valueOfAssets",
|
|
2711
|
+
"typeOfAssets",
|
|
2712
|
+
"roleInMatterProbate",
|
|
2713
|
+
"estateLegalServicesNeeded",
|
|
2714
|
+
...nextStepsLegalDefault,
|
|
2523
2715
|
],
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
...nextStepsLegalNoDOI
|
|
2716
|
+
"Workers Compensation": [
|
|
2717
|
+
"incidentDate",
|
|
2718
|
+
"claimStatus",
|
|
2719
|
+
"primaryInjury",
|
|
2720
|
+
"causeOfInjury",
|
|
2721
|
+
"doctorTreatment",
|
|
2722
|
+
...nextStepsLegalNoDOI,
|
|
2531
2723
|
],
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
...nextStepsLegalDefault
|
|
2724
|
+
"Workplace Harassment": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
|
|
2725
|
+
"Workplace Discrimination": [
|
|
2726
|
+
"numEmployeesOfBusiness",
|
|
2727
|
+
"employerType",
|
|
2728
|
+
"employeeAtCompany",
|
|
2729
|
+
...nextStepsLegalDefault,
|
|
2538
2730
|
],
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
'Unemployment': [
|
|
2546
|
-
'numEmployeesOfBusiness',
|
|
2547
|
-
'employerType',
|
|
2548
|
-
...nextStepsLegalNoHA
|
|
2549
|
-
],
|
|
2550
|
-
'Victim of a Crime': [
|
|
2551
|
-
'crimeCommittedDate',
|
|
2552
|
-
'roleInMatterCriminal',
|
|
2553
|
-
'pendingCharges',
|
|
2554
|
-
...nextStepsLegalDefaultLPM
|
|
2555
|
-
],
|
|
2556
|
-
'Wills and Trusts': [
|
|
2557
|
-
'valueOfAssets',
|
|
2558
|
-
'typeOfAssets',
|
|
2559
|
-
'roleInMatterProbate',
|
|
2560
|
-
'estateLegalServicesNeeded',
|
|
2561
|
-
...nextStepsLegalDefault
|
|
2562
|
-
],
|
|
2563
|
-
'Workers Compensation': [
|
|
2564
|
-
'incidentDate',
|
|
2565
|
-
'claimStatus',
|
|
2566
|
-
'primaryInjury',
|
|
2567
|
-
'causeOfInjury',
|
|
2568
|
-
'doctorTreatment',
|
|
2569
|
-
...nextStepsLegalNoDOI
|
|
2570
|
-
],
|
|
2571
|
-
'Workplace Harassment': [
|
|
2572
|
-
'numEmployeesOfBusiness',
|
|
2573
|
-
'employerType',
|
|
2574
|
-
'employeeAtCompany',
|
|
2575
|
-
...nextStepsLegalDefault
|
|
2576
|
-
],
|
|
2577
|
-
'Workplace Discrimination': [
|
|
2578
|
-
'numEmployeesOfBusiness',
|
|
2579
|
-
'employerType',
|
|
2580
|
-
'employeeAtCompany',
|
|
2581
|
-
...nextStepsLegalDefault
|
|
2582
|
-
],
|
|
2583
|
-
'Wrongful Death': [
|
|
2584
|
-
'incidentDate',
|
|
2585
|
-
'relationshipToVictim',
|
|
2586
|
-
'criminalChargesFiled',
|
|
2587
|
-
'causeOfDeath',
|
|
2588
|
-
...nextStepsLegalNoDOI
|
|
2589
|
-
],
|
|
2590
|
-
'Wrongful Termination': [
|
|
2591
|
-
'numEmployeesOfBusiness',
|
|
2592
|
-
'employerType',
|
|
2593
|
-
...nextStepsLegalDefault
|
|
2731
|
+
"Wrongful Death": [
|
|
2732
|
+
"incidentDate",
|
|
2733
|
+
"relationshipToVictim",
|
|
2734
|
+
"criminalChargesFiled",
|
|
2735
|
+
"causeOfDeath",
|
|
2736
|
+
...nextStepsLegalNoDOI,
|
|
2594
2737
|
],
|
|
2738
|
+
"Wrongful Termination": ["numEmployeesOfBusiness", "employerType", ...nextStepsLegalDefault],
|
|
2595
2739
|
},
|
|
2596
|
-
|
|
2597
|
-
}
|
|
2740
|
+
"*": nextStepsLegalDefault,
|
|
2741
|
+
},
|
|
2598
2742
|
};
|
|
2599
2743
|
|
|
2600
2744
|
const TOLPNextSteps = nextStepsMapGeneralLegal["values"]["Type_Of_Legal_Problem"];
|
|
2601
2745
|
|
|
2602
2746
|
({
|
|
2603
2747
|
values: {
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2748
|
+
Civil_Defense: {
|
|
2749
|
+
Yes: TOLPNextSteps["Defend a Lawsuit"],
|
|
2750
|
+
No: TOLPNextSteps["File a Lawsuit"],
|
|
2607
2751
|
},
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
...nextStepsLegalDefault
|
|
2611
|
-
]
|
|
2612
|
-
}
|
|
2752
|
+
"*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
|
|
2753
|
+
},
|
|
2613
2754
|
});
|
|
2614
2755
|
|
|
2615
2756
|
({
|
|
2616
2757
|
values: {
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2758
|
+
Type_Of_Legal_Problem: {
|
|
2759
|
+
"Defend a Lawsuit": TOLPNextSteps["Defend a Lawsuit"],
|
|
2760
|
+
"File a Lawsuit": TOLPNextSteps["File a Lawsuit"],
|
|
2620
2761
|
},
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
...nextStepsLegalDefault
|
|
2624
|
-
]
|
|
2625
|
-
}
|
|
2762
|
+
"*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
|
|
2763
|
+
},
|
|
2626
2764
|
});
|
|
2627
2765
|
|
|
2628
2766
|
({
|
|
2629
2767
|
values: {
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
},
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
...nextStepsLegalDefault
|
|
2645
|
-
]
|
|
2646
|
-
}
|
|
2768
|
+
Type_Of_Legal_Problem_Display: {
|
|
2769
|
+
"Automobile Accident": TOLPNextSteps["Auto and Car Accidents"],
|
|
2770
|
+
"Contract Disputes": TOLPNextSteps["Business Lawyers"],
|
|
2771
|
+
"Dog Bite": TOLPNextSteps["Personal Injury"],
|
|
2772
|
+
"Employment and Workplace": TOLPNextSteps["Employment and Workplace"],
|
|
2773
|
+
Fraud: TOLPNextSteps["Consumer Lawyers"],
|
|
2774
|
+
"Medical Malpractice": TOLPNextSteps["Medical Malpractice"],
|
|
2775
|
+
"Personal Injury": TOLPNextSteps["Personal Injury"],
|
|
2776
|
+
"Property Damage": TOLPNextSteps["Property Damage"],
|
|
2777
|
+
"Real Estate": TOLPNextSteps["Real Estate"],
|
|
2778
|
+
"Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
|
|
2779
|
+
},
|
|
2780
|
+
"*": ["lawsuitOtherParty", ...nextStepsLegalDefault],
|
|
2781
|
+
},
|
|
2647
2782
|
});
|
|
2648
2783
|
|
|
2649
2784
|
const nextStepsMapCriminalTOLPDisplay = {
|
|
2650
2785
|
values: {
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
},
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
'roleInMatterCriminal',
|
|
2660
|
-
'pendingCharges',
|
|
2661
|
-
...nextStepsLegalDefaultLPM
|
|
2662
|
-
]
|
|
2663
|
-
}
|
|
2786
|
+
Type_Of_Legal_Problem_Display: {
|
|
2787
|
+
"Victim of a Crime": TOLPNextSteps["Victim of a Crime"],
|
|
2788
|
+
"DUI and DWI": TOLPNextSteps["DUI and DWI"],
|
|
2789
|
+
Expungement: TOLPNextSteps["Expungement"],
|
|
2790
|
+
"Not Sure or Other": nextStepsMapGeneralLegal["values"]["*"],
|
|
2791
|
+
},
|
|
2792
|
+
"*": ["crimeCommittedDate", "roleInMatterCriminal", "pendingCharges", ...nextStepsLegalDefaultLPM],
|
|
2793
|
+
},
|
|
2664
2794
|
};
|
|
2665
2795
|
|
|
2666
2796
|
({
|
|
2667
2797
|
values: {
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
},
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
'employerType',
|
|
2677
|
-
'employeeAtCompany',
|
|
2678
|
-
...nextStepsLegalDefault
|
|
2679
|
-
]
|
|
2680
|
-
}
|
|
2798
|
+
Type_Of_Legal_Problem_Display: {
|
|
2799
|
+
"Wrongful Termination": TOLPNextSteps["Wrongful Termination"],
|
|
2800
|
+
"Workers Compensation": TOLPNextSteps["Workers Compensation"],
|
|
2801
|
+
"Personal Injury": TOLPNextSteps["Personal Injury"],
|
|
2802
|
+
Unemployment: TOLPNextSteps["Unemployment"],
|
|
2803
|
+
},
|
|
2804
|
+
"*": ["numEmployeesOfBusiness", "employerType", "employeeAtCompany", ...nextStepsLegalDefault],
|
|
2805
|
+
},
|
|
2681
2806
|
});
|
|
2682
2807
|
|
|
2683
2808
|
({
|
|
2684
2809
|
values: {
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
},
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
'wouldLikeLawyerTo',
|
|
2694
|
-
...nextStepsLegalDefault
|
|
2695
|
-
]
|
|
2696
|
-
}
|
|
2810
|
+
Type_Of_Legal_Problem_Display: {
|
|
2811
|
+
Foreclosure: TOLPNextSteps["Foreclosure"],
|
|
2812
|
+
"Landlord and Tenant": TOLPNextSteps["Landlord and Tenant"],
|
|
2813
|
+
"Wills, Trusts, and Estates": TOLPNextSteps["Wills and Trusts"],
|
|
2814
|
+
"Property Damage": TOLPNextSteps["Property Damage"],
|
|
2815
|
+
},
|
|
2816
|
+
"*": ["realEstateArea", "wouldLikeLawyerTo", ...nextStepsLegalDefault],
|
|
2817
|
+
},
|
|
2697
2818
|
});
|
|
2698
2819
|
|
|
2699
2820
|
const nextStepsMapLegalCrossSells = {
|
|
2700
2821
|
values: {
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
},
|
|
2714
|
-
|
|
2822
|
+
Legal_CrossSells: {
|
|
2823
|
+
"Auto and Car Accidents": ["autoAndCarAccidentCrossSellQuestions"],
|
|
2824
|
+
"Personal Injury": ["personalInjuryCrossSellQuestions"],
|
|
2825
|
+
"Workers Compensation": ["workersCompensationCrossSellQuestions"],
|
|
2826
|
+
"DUI and DWI": ["duiAndDWICrossSellQuestions"],
|
|
2827
|
+
"Long Term Disability": ["longTermDisabilityCrossSellQuestions"],
|
|
2828
|
+
"Social Security Disability and Insurance": ["ssdiCrossSellQuestions"],
|
|
2829
|
+
Bankruptcy: ["bankruptcyCrossSellQuestions"],
|
|
2830
|
+
"Power of Attorney": ["powerOfAttorneyCrossSellQuestions"],
|
|
2831
|
+
"Wills and Trusts": ["willsAndTrustsCrossSellQuestions"],
|
|
2832
|
+
"Divorce and Separation": ["divorceAndSeparationCrossSellQuestions"],
|
|
2833
|
+
"Child Custody": ["childCustodyCrossSellQuestions"],
|
|
2834
|
+
},
|
|
2835
|
+
"*": ["firstAndLast", "contactInfo"],
|
|
2715
2836
|
},
|
|
2716
|
-
|
|
2837
|
+
|
|
2717
2838
|
// NOTE: this assumes a certain placement of the cross sell question
|
|
2718
2839
|
// in the form flow.
|
|
2719
|
-
appendSteps: [
|
|
2840
|
+
appendSteps: ["firstAndLast", "contactInfo"],
|
|
2720
2841
|
matchesAllowed: 1,
|
|
2721
2842
|
};
|
|
2722
2843
|
|