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