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